()
| 16 | } |
| 17 | |
| 18 | export async function call(): Promise<LocalCommandResult> { |
| 19 | // Get skill directory from installed plugins config |
| 20 | const v2Data = loadInstalledPluginsV2() |
| 21 | const pluginId = getPluginId() |
| 22 | const installations = v2Data.plugins[pluginId] |
| 23 | |
| 24 | if (!installations || installations.length === 0) { |
| 25 | return { |
| 26 | type: 'text' as const, |
| 27 | value: |
| 28 | 'Thinkback plugin not installed. Run /think-back first to install it.', |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | const firstInstall = installations[0] |
| 33 | if (!firstInstall?.installPath) { |
| 34 | return { |
| 35 | type: 'text' as const, |
| 36 | value: 'Thinkback plugin installation path not found.', |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | const skillDir = join(firstInstall.installPath, 'skills', SKILL_NAME) |
| 41 | const result = await playAnimation(skillDir) |
| 42 | return { type: 'text' as const, value: result.message } |
| 43 | } |
| 44 | |
| 45 |
nothing calls this directly
no test coverage detected