@0dai-dev/cli 3.2.0 → 3.2.1
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/0dai.js +5 -5
- package/package.json +1 -1
package/bin/0dai.js
CHANGED
|
@@ -444,9 +444,9 @@ async function cmdInit(target, args = []) {
|
|
|
444
444
|
// Detect agent auth status for smart onboarding hints
|
|
445
445
|
const { execFileSync: _ef } = require("child_process");
|
|
446
446
|
const agents = [];
|
|
447
|
-
try { _ef("claude", ["--version"], { timeout:
|
|
448
|
-
try { _ef("codex", ["--version"], { timeout:
|
|
449
|
-
try { _ef("gemini", ["--version"], { timeout:
|
|
447
|
+
try { _ef("claude", ["--version"], { timeout: 8000 }); agents.push("claude"); } catch {}
|
|
448
|
+
try { _ef("codex", ["--version"], { timeout: 8000 }); agents.push("codex"); } catch {}
|
|
449
|
+
try { _ef("gemini", ["--version"], { timeout: 8000 }); agents.push("gemini"); } catch {}
|
|
450
450
|
|
|
451
451
|
// Next steps — guide user to first value
|
|
452
452
|
console.log(`\n ${T}Next steps:${R}`);
|
|
@@ -828,7 +828,7 @@ function cmdDoctor(target) {
|
|
|
828
828
|
for (const cli of AGENT_CLIS) {
|
|
829
829
|
let installed = false, ver = null;
|
|
830
830
|
try {
|
|
831
|
-
const out = _ef2(cli.bin, ["--version"], { timeout:
|
|
831
|
+
const out = _ef2(cli.bin, ["--version"], { timeout: 8000 }).toString().trim();
|
|
832
832
|
installed = true;
|
|
833
833
|
const m = out.match(/(\d+\.\d+\.\d+)/);
|
|
834
834
|
if (m) ver = m[1];
|
|
@@ -957,7 +957,7 @@ function cmdUpdate(args) {
|
|
|
957
957
|
for (const cli of CLIS) {
|
|
958
958
|
let installed = false, ver = null;
|
|
959
959
|
try {
|
|
960
|
-
const out = _ef3(cli.bin, ["--version"], { timeout:
|
|
960
|
+
const out = _ef3(cli.bin, ["--version"], { timeout: 8000 }).toString().trim();
|
|
961
961
|
installed = true;
|
|
962
962
|
const m = out.match(/(\d+\.\d+\.\d+)/);
|
|
963
963
|
if (m) ver = m[1];
|