(args)
| 108 | userInvocable: true, |
| 109 | disableModelInvocation: true, |
| 110 | async getPromptForCommand(args) { |
| 111 | const instruction = args.trim() |
| 112 | if (!instruction) { |
| 113 | return [{ type: 'text', text: MISSING_INSTRUCTION_MESSAGE }] |
| 114 | } |
| 115 | |
| 116 | const isGit = await getIsGit() |
| 117 | if (!isGit) { |
| 118 | return [{ type: 'text', text: NOT_A_GIT_REPO_MESSAGE }] |
| 119 | } |
| 120 | |
| 121 | return [{ type: 'text', text: buildPrompt(instruction) }] |
| 122 | }, |
| 123 | }) |
| 124 | } |
| 125 |
nothing calls this directly
no test coverage detected