@0dai-dev/cli 3.1.3 → 3.1.4

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.
Files changed (2) hide show
  1. package/bin/0dai.js +16 -1
  2. package/package.json +1 -1
package/bin/0dai.js CHANGED
@@ -424,10 +424,25 @@ async function cmdInit(target, args = []) {
424
424
  log(`initialized (${result.file_count || "?"} files)`);
425
425
  console.log(" skills: /build /review /status /feedback /bugfix /delegate");
426
426
 
427
+ // Detect agent auth status for smart onboarding hints
428
+ const { execFileSync: _ef } = require("child_process");
429
+ const agents = [];
430
+ try { _ef("claude", ["--version"], { timeout: 3000 }); agents.push("claude"); } catch {}
431
+ try { _ef("codex", ["--version"], { timeout: 3000 }); agents.push("codex"); } catch {}
432
+ try { _ef("gemini", ["--version"], { timeout: 3000 }); agents.push("gemini"); } catch {}
433
+
427
434
  // Next steps — guide user to first value
428
435
  console.log(`\n ${T}Next steps:${R}`);
429
436
  console.log(` ${D}1.${R} Check health: ${D}0dai doctor${R}`);
430
- console.log(` ${D}2.${R} Try delegation: ${D}0dai run "write tests for auth"${R}`);
437
+ if (agents.length > 0) {
438
+ const a = agents[0];
439
+ console.log(` ${D}2.${R} Try delegation: ${D}0dai run "write tests for auth"${R}`);
440
+ console.log(` ${D}(${agents.join(", ")} detected — delegation will use ${a} by default)${R}`);
441
+ } else {
442
+ console.log(` ${D}2.${R} Install an agent CLI to enable delegation:`);
443
+ console.log(` ${D}claude:${R} npm i -g @anthropic-ai/claude-code ${D}(or Pro subscription)${R}`);
444
+ console.log(` ${D}codex:${R} npm i -g @openai/codex ${D}(or ChatGPT Pro)${R}`);
445
+ }
431
446
  console.log(` ${D}3.${R} Open dashboard: ${D}https://0dai.dev/dashboard${R}`);
432
447
 
433
448
  // Send anonymous usage ping
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0dai-dev/cli",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "One config layer for 5 AI agent CLIs — Claude Code, Codex, OpenCode, Gemini, Aider",
5
5
  "bin": {
6
6
  "0dai": "./bin/0dai.js"