squidclaw 0.4.0 → 0.4.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/squidclaw.js +15 -1
- package/package.json +1 -1
package/bin/squidclaw.js
CHANGED
|
@@ -560,7 +560,21 @@ program
|
|
|
560
560
|
await hatchTUI(agentId);
|
|
561
561
|
});
|
|
562
562
|
registerUninstallCommand(program);
|
|
563
|
-
|
|
563
|
+
// Auto-hatch on first run (no args)
|
|
564
|
+
if (process.argv.length <= 2) {
|
|
565
|
+
const { existsSync } = await import("fs");
|
|
566
|
+
const { getHome } = await import("../lib/core/config.js");
|
|
567
|
+
const home = getHome();
|
|
568
|
+
if (!existsSync(home + "/config.json")) {
|
|
569
|
+
// First run — auto hatch
|
|
570
|
+
const { setup } = await import("../lib/cli/setup.js");
|
|
571
|
+
await setup();
|
|
572
|
+
} else {
|
|
573
|
+
program.outputHelp();
|
|
574
|
+
}
|
|
575
|
+
} else {
|
|
576
|
+
program.parse();
|
|
577
|
+
}
|
|
564
578
|
|
|
565
579
|
// ── TUI ────────────────────────────────────────────────
|
|
566
580
|
program
|