MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / runPlan

Function runPlan

vscode-extension/src/extension.ts:153–164  ·  view source on GitHub ↗

Command 4: plan a change.

()

Source from the content-addressed store, hash-verified

151 term.sendText(`${cfg.executablePath} ${shellQuote(promptText)}`);
152}
153
154/** Command 4: plan a change. */
155async 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

Callers

nothing calls this directly

Calls 4

getConfigFunction · 0.85
getCwdFunction · 0.85
getOrCreateTerminalFunction · 0.85
shellQuoteFunction · 0.70

Tested by

no test coverage detected