MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getPromptForCommand

Function getPromptForCommand

src/commands/createMovedToPluginCommand.ts:40–63  ·  view source on GitHub ↗
(
      args: string,
      context: ToolUseContext,
    )

Source from the content-addressed store, hash-verified

38 },
39 source: 'builtin',
40 async getPromptForCommand(
41 args: string,
42 context: ToolUseContext,
43 ): Promise<ContentBlockParam[]> {
44 if (process.env.USER_TYPE === 'ant') {
45 return [
46 {
47 type: 'text',
48 text: `This command has been moved to a plugin. Tell the user:
49
501. To install the plugin, run:
51 claude plugin install ${pluginName}@claude-code-marketplace
52
532. After installation, use /${pluginName}:${pluginCommand} to run this command
54
553. For more information, see: https://github.com/anthropics/claude-code-marketplace/blob/main/${pluginName}/README.md
56
57Do not attempt to run the command. Simply inform the user about the plugin installation.`,
58 },
59 ]
60 }
61
62 return getPromptWhileMarketplaceIsPrivate(args, context)
63 },
64 }
65}
66

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected