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:
Bohdan Triapitsyn
2025-12-30 17:36:52 +02:00
parent f3a00bc8f4
commit 2c833cef40
25 changed files with 3587 additions and 15 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export type ConfigChangeScope = "agents" | "providers" | "commands" | "all";
export type ConfigChangeScope = "agents" | "providers" | "commands" | "skills" | "all";
export interface ConfigChangeEvent {
scopes: ConfigChangeScope[];
+8
View File
@@ -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' }
]
}
};