(
args: string,
context: ToolUseContext,
)
| 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 | |
| 50 | 1. To install the plugin, run: |
| 51 | claude plugin install ${pluginName}@claude-code-marketplace |
| 52 | |
| 53 | 2. After installation, use /${pluginName}:${pluginCommand} to run this command |
| 54 | |
| 55 | 3. For more information, see: https://github.com/anthropics/claude-code-marketplace/blob/main/${pluginName}/README.md |
| 56 | |
| 57 | Do 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 |
nothing calls this directly
no test coverage detected