Command 4: plan a change.
()
| 151 | term.sendText(`${cfg.executablePath} ${shellQuote(promptText)}`); |
| 152 | } |
| 153 | |
| 154 | /** Command 4: plan a change. */ |
| 155 | async function runPlan(): Promise<void> { |
| 156 | const what = await vscode.window.showInputBox({ |
| 157 | prompt: 'Describe the change you want QodeX to plan', |
| 158 | placeHolder: 'e.g. add user authentication with JWT', |
| 159 | }); |
| 160 | if (!what) return; |
| 161 | const cfg = getConfig(); |
| 162 | const cwd = getCwd(); |
| 163 | const term = getOrCreateTerminal(cwd); |
| 164 | // Use --plan flag (drops QodeX into plan mode which restricts to read-only tools) |
| 165 | term.sendText(`${cfg.executablePath} --plan ${shellQuote(what)}`); |
| 166 | } |
| 167 |
nothing calls this directly
no test coverage detected