diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-11-22 21:04:00 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-11-22 21:04:00 -0800 |
| commit | d749c620b57686b5781667d373bc42dab10924ff (patch) | |
| tree | ca6669dc47187168aaf6dec8fd7ffa3a9b9c7606 /.opencode/plugin | |
| parent | aa1fe045c65a8ced46f7cc59525cf29616728032 (diff) | |
fix: use tool object instead of tools array per opencode api
Diffstat (limited to '.opencode/plugin')
| -rw-r--r-- | .opencode/plugin/superpowers.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/.opencode/plugin/superpowers.js b/.opencode/plugin/superpowers.js index 6f33e4e..ffc6733 100644 --- a/.opencode/plugin/superpowers.js +++ b/.opencode/plugin/superpowers.js @@ -23,9 +23,8 @@ export const SuperpowersPlugin = async ({ project, client, $, directory, worktre const promptFile = path.join(promptsDir, 'superpowers.txt'); return { - tools: [ - { - name: 'use_skill', + tool: { + use_skill: { description: 'Load and read a specific skill to guide your work. Skills contain proven workflows, mandatory processes, and expert techniques.', schema: z.object({ skill_name: z.string().describe('Name of the skill to load (e.g., "superpowers:brainstorming" or "my-custom-skill")') @@ -50,8 +49,7 @@ export const SuperpowersPlugin = async ({ project, client, $, directory, worktre ${content}`; } }, - { - name: 'find_skills', + find_skills: { description: 'List all available skills in the superpowers and personal skill libraries.', schema: z.object({}), execute: async () => { @@ -79,6 +77,6 @@ ${content}`; return output; } } - ] + } }; }; |
