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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { BundledCodingSkillId } from './coding-skills';
|
||||
import type { CodingSkillId } from './coding-skills';
|
||||
|
||||
export type CodingProjectFileStatus =
|
||||
| 'added'
|
||||
@@ -53,10 +53,12 @@ export interface ConversationChangesSnapshot {
|
||||
}
|
||||
|
||||
export interface ProductCodingSkill {
|
||||
id: BundledCodingSkillId;
|
||||
id: CodingSkillId;
|
||||
name: string;
|
||||
description: string;
|
||||
selected: boolean;
|
||||
available: boolean;
|
||||
effective: boolean;
|
||||
location: string;
|
||||
content: string;
|
||||
entries: Array<{ path: string; type: 'file' | 'directory' }>;
|
||||
@@ -67,7 +69,7 @@ export interface ProductCodingCommand {
|
||||
title: string;
|
||||
description: string;
|
||||
source: 'makelore' | 'pi' | 'skill';
|
||||
skillId?: BundledCodingSkillId;
|
||||
skillId?: CodingSkillId;
|
||||
}
|
||||
|
||||
export interface ProductPiCommandInput {
|
||||
|
||||
Reference in New Issue
Block a user