feat: Implement skill management functionality
- Added skill scope helpers and CRUD operations for skills in opencodeConfig.ts. - Introduced API endpoints for skill management in main.tsx and index.js. - Enhanced server-side logic to support skill discovery, creation, updating, and deletion. - Implemented supporting file operations for skills, including reading, writing, and deleting files. - Updated package.json to use the latest version of @opencode-ai/sdk.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export type ConfigChangeScope = "agents" | "providers" | "commands" | "all";
|
||||
export type ConfigChangeScope = "agents" | "providers" | "commands" | "skills" | "all";
|
||||
|
||||
export interface ConfigChangeEvent {
|
||||
scopes: ConfigChangeScope[];
|
||||
|
||||
@@ -148,6 +148,14 @@ export const TOOL_METADATA: Record<string, ToolMetadata> = {
|
||||
category: 'system',
|
||||
outputLanguage: 'json',
|
||||
inputFields: []
|
||||
},
|
||||
skill: {
|
||||
displayName: 'Load Skill',
|
||||
category: 'ai',
|
||||
outputLanguage: 'markdown',
|
||||
inputFields: [
|
||||
{ key: 'name', label: 'Skill Name', type: 'text' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user