(args)
| 450 | allowedTools: ['Read'], |
| 451 | userInvocable: true, |
| 452 | async getPromptForCommand(args) { |
| 453 | if (args.startsWith('[hooks-only]')) { |
| 454 | const req = args.slice('[hooks-only]'.length).trim() |
| 455 | let prompt = HOOKS_DOCS + '\n\n' + HOOK_VERIFICATION_FLOW |
| 456 | if (req) { |
| 457 | prompt += `\n\n## Task\n\n${req}` |
| 458 | } |
| 459 | return [{ type: 'text', text: prompt }] |
| 460 | } |
| 461 | |
| 462 | // Generate schema dynamically to stay in sync with types |
| 463 | const jsonSchema = generateSettingsSchema() |
| 464 | |
| 465 | let prompt = UPDATE_CONFIG_PROMPT |
| 466 | prompt += `\n\n## Full Settings JSON Schema\n\n\`\`\`json\n${jsonSchema}\n\`\`\`` |
| 467 | |
| 468 | if (args) { |
| 469 | prompt += `\n\n## User Request\n\n${args}` |
| 470 | } |
| 471 | |
| 472 | return [{ type: 'text', text: prompt }] |
| 473 | }, |
| 474 | }) |
| 475 | } |
| 476 |
nothing calls this directly
no test coverage detected