patchcord 0.3.78 → 0.3.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/patchcord.mjs +19 -2
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -381,6 +381,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
381
381
|
const identityStr = existingIdentity ? ` (${bold}${existingIdentity}${r}${dim})` : "";
|
|
382
382
|
console.log(`\n ${dim}${existingToolName} agent is already configured in this project${identityStr}${r}`);
|
|
383
383
|
|
|
384
|
+
if (rl) rl.close();
|
|
384
385
|
const { createInterface: createRLU } = await import("readline");
|
|
385
386
|
const rlU = createRLU({ input: process.stdin, output: process.stdout });
|
|
386
387
|
const askU = (q) => new Promise((resolve) => rlU.question(q, resolve));
|
|
@@ -413,8 +414,24 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
413
414
|
console.log(` ${yellow}⚠${r} Token expired or invalid. Starting fresh setup.`);
|
|
414
415
|
token = "";
|
|
415
416
|
}
|
|
416
|
-
//
|
|
417
|
-
|
|
417
|
+
// Show tool picker
|
|
418
|
+
if (token) {
|
|
419
|
+
const { createInterface: createRL4 } = await import("readline");
|
|
420
|
+
const rl4 = createRL4({ input: process.stdin, output: process.stdout });
|
|
421
|
+
const ask4 = (q) => new Promise((resolve) => rl4.question(q, resolve));
|
|
422
|
+
console.log(`\n${bold}Which agent are you adding?${r}\n`);
|
|
423
|
+
console.log(` ${cyan}1.${r} Claude Code ${cyan}5.${r} Gemini CLI`);
|
|
424
|
+
console.log(` ${cyan}2.${r} Codex CLI ${cyan}6.${r} VS Code`);
|
|
425
|
+
console.log(` ${cyan}3.${r} Cursor ${cyan}7.${r} Zed`);
|
|
426
|
+
console.log(` ${cyan}4.${r} Windsurf ${cyan}8.${r} OpenCode`);
|
|
427
|
+
console.log(` ${cyan}9.${r} OpenClaw\n`);
|
|
428
|
+
choice = (await ask4(`${dim}Choose (1-9):${r} `)).trim();
|
|
429
|
+
rl4.close();
|
|
430
|
+
if (!["1","2","3","4","5","6","7","8","9"].includes(choice)) {
|
|
431
|
+
console.error("Invalid choice.");
|
|
432
|
+
process.exit(1);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
418
435
|
}
|
|
419
436
|
}
|
|
420
437
|
}
|