(_args, context)
| 63 | progressMessage: 'creating commit', |
| 64 | source: 'builtin', |
| 65 | async getPromptForCommand(_args, context) { |
| 66 | const promptContent = getPromptContent() |
| 67 | const finalContent = await executeShellCommandsInPrompt( |
| 68 | promptContent, |
| 69 | { |
| 70 | ...context, |
| 71 | getAppState() { |
| 72 | const appState = context.getAppState() |
| 73 | return { |
| 74 | ...appState, |
| 75 | toolPermissionContext: { |
| 76 | ...appState.toolPermissionContext, |
| 77 | alwaysAllowRules: { |
| 78 | ...appState.toolPermissionContext.alwaysAllowRules, |
| 79 | command: ALLOWED_TOOLS, |
| 80 | }, |
| 81 | }, |
| 82 | } |
| 83 | }, |
| 84 | }, |
| 85 | '/commit', |
| 86 | ) |
| 87 | |
| 88 | return [{ type: 'text', text: finalContent }] |
| 89 | }, |
| 90 | } satisfies Command |
| 91 | |
| 92 | export default command |
nothing calls this directly
no test coverage detected