fix(coding): remediate ML-07 plugin authority
This commit is contained in:
@@ -31,6 +31,12 @@ export interface CodingPluginToolDefinition {
|
||||
inputSchema: Readonly<Record<string, unknown>>;
|
||||
}
|
||||
|
||||
export interface CodingPluginOperationDefinition {
|
||||
capabilityId: string;
|
||||
operation: string;
|
||||
toolName?: string;
|
||||
}
|
||||
|
||||
export interface CodingPluginDefinition {
|
||||
id: string;
|
||||
version: string;
|
||||
@@ -42,6 +48,7 @@ export interface CodingPluginDefinition {
|
||||
requiresBackend: boolean;
|
||||
skills: readonly CodingPluginSkillDefinition[];
|
||||
tools: readonly CodingPluginToolDefinition[];
|
||||
operations: readonly CodingPluginOperationDefinition[];
|
||||
surfaces: Readonly<{
|
||||
projectSettings?: string;
|
||||
previewRuntime?: string;
|
||||
@@ -379,6 +386,18 @@ export const DATA_SERVICE_TOOL_DEFINITIONS = freezeDeep([
|
||||
),
|
||||
] as const satisfies readonly CodingPluginToolDefinition[]);
|
||||
|
||||
export const DATA_SERVICE_OPERATION_DEFINITIONS = freezeDeep([
|
||||
...DATA_SERVICE_TOOL_DEFINITIONS.map(({ capabilityId, operation, name }) => ({
|
||||
capabilityId,
|
||||
operation,
|
||||
toolName: name,
|
||||
})),
|
||||
...['get', 'list', 'put', 'delete'].map((operation) => ({
|
||||
capabilityId: 'data-service.preview',
|
||||
operation,
|
||||
})),
|
||||
] as const satisfies readonly CodingPluginOperationDefinition[]);
|
||||
|
||||
export const DATA_SERVICE_PLUGIN_DEFINITION = freezeDeep({
|
||||
id: DATA_SERVICE_PLUGIN_ID,
|
||||
version: '1.0.0',
|
||||
@@ -396,6 +415,7 @@ export const DATA_SERVICE_PLUGIN_DEFINITION = freezeDeep({
|
||||
},
|
||||
],
|
||||
tools: DATA_SERVICE_TOOL_DEFINITIONS,
|
||||
operations: DATA_SERVICE_OPERATION_DEFINITIONS,
|
||||
surfaces: {
|
||||
projectSettings: DATA_SERVICE_PROJECT_SETTINGS_SURFACE,
|
||||
previewRuntime: DATA_SERVICE_PREVIEW_RUNTIME_SURFACE,
|
||||
|
||||
Reference in New Issue
Block a user