squidclaw 0.4.3 → 0.5.0

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 CHANGED
@@ -529,6 +529,7 @@ program
529
529
  if (!agentId) { console.log('No agents found. Run: squidclaw hatch'); return; }
530
530
  await hatchTUI(agentId);
531
531
  });
532
+ import { registerUninstallCommand } from "../lib/cli/uninstall-cmd.js";
532
533
  registerUninstallCommand(program);
533
534
  // Auto-hatch on first run (no args)
534
535
  if (process.argv.length <= 2) {
package/install.sh ADDED
@@ -0,0 +1,76 @@
1
+ #!/bin/bash
2
+ # 🦑 Squidclaw — One-line installer
3
+ # Usage: curl -fsSL https://squidclaw.dev/install.sh | bash
4
+
5
+ set -e
6
+
7
+ BOLD='\033[1m'
8
+ CYAN='\033[36m'
9
+ GREEN='\033[32m'
10
+ YELLOW='\033[33m'
11
+ RED='\033[31m'
12
+ RESET='\033[0m'
13
+
14
+ echo ""
15
+ echo -e "${CYAN} ╔══════════════════════════════════════╗${RESET}"
16
+ echo -e "${CYAN} ║ 🦑 Squidclaw Installer ║${RESET}"
17
+ echo -e "${CYAN} ╚══════════════════════════════════════╝${RESET}"
18
+ echo ""
19
+
20
+ # Check Node.js
21
+ if ! command -v node &> /dev/null; then
22
+ echo -e "${RED} ✗ Node.js not found${RESET}"
23
+ echo -e " Install it first: ${CYAN}https://nodejs.org${RESET}"
24
+ echo ""
25
+ exit 1
26
+ fi
27
+
28
+ NODE_VERSION=$(node -v | sed 's/v//' | cut -d. -f1)
29
+ if [ "$NODE_VERSION" -lt 20 ]; then
30
+ echo -e "${RED} ✗ Node.js $NODE_VERSION found, need 20+${RESET}"
31
+ echo -e " Update: ${CYAN}https://nodejs.org${RESET}"
32
+ echo ""
33
+ exit 1
34
+ fi
35
+ echo -e "${GREEN} ✓ Node.js $(node -v)${RESET}"
36
+
37
+ # Check npm
38
+ if ! command -v npm &> /dev/null; then
39
+ echo -e "${RED} ✗ npm not found${RESET}"
40
+ exit 1
41
+ fi
42
+ echo -e "${GREEN} ✓ npm $(npm -v)${RESET}"
43
+
44
+ # Install
45
+ echo ""
46
+ echo -e "${YELLOW} Installing Squidclaw...${RESET}"
47
+ npm i -g squidclaw@latest --silent 2>/dev/null
48
+
49
+ if ! command -v squidclaw &> /dev/null; then
50
+ echo -e "${RED} ✗ Installation failed${RESET}"
51
+ echo -e " Try manually: ${CYAN}npm i -g squidclaw${RESET}"
52
+ exit 1
53
+ fi
54
+
55
+ VERSION=$(squidclaw --version 2>/dev/null || echo "unknown")
56
+ echo -e "${GREEN} ✓ Squidclaw v${VERSION} installed${RESET}"
57
+
58
+ echo ""
59
+ echo -e "${GREEN} ════════════════════════════════════${RESET}"
60
+ echo -e "${GREEN} ✅ Installation complete!${RESET}"
61
+ echo -e "${GREEN} ════════════════════════════════════${RESET}"
62
+ echo ""
63
+ echo -e " ${BOLD}Now run:${RESET}"
64
+ echo ""
65
+ echo -e " ${CYAN}squidclaw hatch${RESET}"
66
+ echo ""
67
+ echo -e " This will set up your AI agent, connect"
68
+ echo -e " WhatsApp/Telegram, and bring it to life 🥚→🦑"
69
+ echo ""
70
+
71
+ # Auto-launch hatch
72
+ read -p " Start hatching now? [Y/n] " -n 1 -r
73
+ echo ""
74
+ if [[ $REPLY =~ ^[Yy]$ ]] || [[ -z $REPLY ]]; then
75
+ squidclaw hatch
76
+ fi
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ const CYAN = '\x1b[36m';
4
+ const GREEN = '\x1b[32m';
5
+ const BOLD = '\x1b[1m';
6
+ const RESET = '\x1b[0m';
7
+
8
+ console.log(`
9
+ ${CYAN} ╔══════════════════════════════════════╗
10
+ ║ 🦑 Squidclaw installed! ║
11
+ ╚══════════════════════════════════════╝${RESET}
12
+
13
+ ${BOLD}Get started:${RESET}
14
+
15
+ ${GREEN}squidclaw hatch${RESET}
16
+
17
+ This sets up your AI, creates your agent,
18
+ connects WhatsApp/Telegram, and hatches it 🥚→🦑
19
+ `);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "squidclaw",
3
- "version": "0.4.3",
4
- "description": "🦑 AI agent platform human-like agents for WhatsApp, Telegram & more",
3
+ "version": "0.5.0",
4
+ "description": "\ud83e\udd91 AI agent platform \u2014 human-like agents for WhatsApp, Telegram & more",
5
5
  "main": "lib/engine.js",
6
6
  "bin": {
7
7
  "squidclaw": "./bin/squidclaw.js"
@@ -10,7 +10,8 @@
10
10
  "scripts": {
11
11
  "start": "node lib/engine.js",
12
12
  "test": "vitest",
13
- "dev": "node --watch lib/engine.js"
13
+ "dev": "node --watch lib/engine.js",
14
+ "postinstall": "node lib/postinstall.js"
14
15
  },
15
16
  "keywords": [
16
17
  "ai",
@@ -54,4 +55,4 @@
54
55
  "yaml": "^2.8.2",
55
56
  "zod": "^4.3.6"
56
57
  }
57
- }
58
+ }