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.
Files changed (2) hide show
  1. package/bin/squidclaw.js +15 -1
  2. 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
- program.parse();
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squidclaw",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "🦑 AI agent platform — human-like agents for WhatsApp, Telegram & more",
5
5
  "main": "lib/engine.js",
6
6
  "bin": {