MCPcopy Index your code
hub / github.com/codeaashu/claude-code / call

Function call

src/commands/thinkback-play/thinkback-play.ts:18–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18export 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

Callers

nothing calls this directly

Calls 3

loadInstalledPluginsV2Function · 0.85
playAnimationFunction · 0.85
getPluginIdFunction · 0.70

Tested by

no test coverage detected