clawaid 1.0.0 โ†’ 1.0.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 (3) hide show
  1. package/README.md +23 -100
  2. package/package.json +20 -6
  3. package/web/index.html +1 -1
package/README.md CHANGED
@@ -1,117 +1,40 @@
1
- # ๐Ÿฉบ OpenClaw Doctor
1
+ # ๐Ÿฆž๐Ÿฉน ClawAid
2
2
 
3
3
  AI-powered diagnostic and repair tool for [OpenClaw](https://github.com/openclaw/openclaw).
4
4
 
5
- ## What it does
6
-
7
- 1. **Scans** your OpenClaw installation (read-only, zero risk)
8
- 2. **Analyzes** the system data with Claude Opus (via OpenRouter)
9
- 3. **Shows** you what's wrong and the repair plan
10
- 4. **Fixes** it with one click, in real-time
11
- 5. **Verifies** the fix worked
12
- 6. If not fixed: **meta-thinks** and tries a different approach (up to 9 attempts)
13
-
14
5
  ## Usage
15
6
 
16
7
  ```bash
17
- npx openclaw-doctor
8
+ npx clawaid
18
9
  ```
19
10
 
20
- This opens a clean web interface in your browser. No terminal interaction needed.
11
+ Opens a clean web UI in your browser. No config, no API key needed โ€” just run it.
21
12
 
22
- ## How it works
23
-
24
- ### Three-Layer Loop Architecture
25
-
26
- ```
27
- Initial Diagnosis โ†’ Fix โ†’ Verify
28
- โ†“ (if not fixed)
29
- Meta-Think #1 โ†’ Fix โ†’ Verify
30
- โ†“ (if not fixed)
31
- Meta-Think #2 โ†’ Fix โ†’ Verify
32
- โ†“ (if not fixed)
33
- Meta-Think #3 โ†’ Fix โ†’ Verify
34
- โ†“ (if still not fixed)
35
- Show diagnostic report + ask for help
36
- ```
37
-
38
- Each "Fix" phase runs up to 3 rounds of: Observe โ†’ AI Diagnose โ†’ Execute โ†’ Verify
39
-
40
- Total maximum: 9 automated repair attempts with 3 strategy changes.
41
-
42
- ### AI Integration
43
-
44
- - Uses **Claude Opus** (`anthropic/claude-opus-4-6`) via OpenRouter
45
- - Looks for your OpenRouter API key in `~/.openclaw/openclaw.json` automatically
46
- - If not found, asks you to enter it in the UI (with clear trust indicators)
47
-
48
- ### Real-time Updates
49
-
50
- The web UI receives live progress via SSE (Server-Sent Events). You watch the diagnosis and repair happen in real time.
51
-
52
- ## Trust & Privacy
13
+ ## What it does
53
14
 
54
- - **No data sent to any server except OpenRouter** (for AI analysis)
55
- - **API key used only in-session**, never stored to disk
56
- - **All fixes run locally** on your machine
57
- - **Open source** โ€” you can verify everything
15
+ 1. **Scans** your OpenClaw installation (read-only, zero risk)
16
+ 2. **Analyzes** with AI to find what's wrong
17
+ 3. **Shows** the diagnosis + repair plan clearly
18
+ 4. **Fixes** with one click, in real-time
19
+ 5. **Verifies** the fix worked
20
+ 6. If not fixed: retries with a different strategy (up to 9 attempts)
58
21
 
59
22
  ## What it diagnoses
60
23
 
61
24
  - Gateway not running or crashed
62
- - Port 18789 conflicts
63
- - Config file validation errors (invalid JSON5, unknown fields)
64
- - Missing `gateway.mode: "local"` in config
65
- - LaunchAgent plist with broken Node.js paths (nvm/fnm/volta)
66
- - Proxy environment variables interfering
67
- - Stale launchd service needing reinstall
68
- - Channel connectivity issues
69
- - Log file errors (auth failures, rate limits, etc.)
70
- - And anything else Claude Opus can reason about from system state
71
-
72
- ## Repair Actions (in priority order)
73
-
74
- 1. **Official CLI**: `openclaw gateway restart`, `openclaw doctor --yes`, etc.
75
- 2. **System commands**: `kill`, `lsof`, `launchctl`
76
- 3. **File edits**: Config fixes (always backed up first)
77
-
78
- ## Development
79
-
80
- ```bash
81
- git clone <this-repo>
82
- cd openclaw-doctor
83
- npm install
84
- npm run build # compile TypeScript
85
- npm start # run the compiled version
86
- ```
87
-
88
- For development with auto-recompile:
89
-
90
- ```bash
91
- npm run dev # uses ts-node directly
92
- ```
93
-
94
- ## Structure
95
-
96
- ```
97
- openclaw-doctor/
98
- โ”œโ”€โ”€ src/
99
- โ”‚ โ”œโ”€โ”€ index.ts # Entry: find port, start server, open browser
100
- โ”‚ โ”œโ”€โ”€ server.ts # Express + SSE endpoints
101
- โ”‚ โ”œโ”€โ”€ observe.ts # Read-only system checks
102
- โ”‚ โ”œโ”€โ”€ diagnose.ts # OpenRouter/Claude Opus integration
103
- โ”‚ โ”œโ”€โ”€ execute.ts # Execute repair actions
104
- โ”‚ โ”œโ”€โ”€ verify.ts # Verify fix worked
105
- โ”‚ โ””โ”€โ”€ loop.ts # Three-layer loop controller
106
- โ”œโ”€โ”€ web/
107
- โ”‚ โ””โ”€โ”€ index.html # Single-page UI (inline CSS+JS)
108
- โ”œโ”€โ”€ context/
109
- โ”‚ โ”œโ”€โ”€ openclaw-arch.md # OpenClaw architecture knowledge
110
- โ”‚ โ”œโ”€โ”€ cli-reference.md # CLI commands reference
111
- โ”‚ โ”œโ”€โ”€ log-guide.md # Log locations and formats
112
- โ”‚ โ””โ”€โ”€ config-schema.md # Config file schema
113
- โ””โ”€โ”€ dist/ # Compiled JS (generated by `npm run build`)
114
- ```
25
+ - Port conflicts
26
+ - Config file errors (invalid JSON, unknown fields)
27
+ - Proxy environment variables blocking connections
28
+ - Wrong model IDs causing HTTP 400
29
+ - Stale LaunchAgent needing reinstall
30
+ - And more โ€” AI reasons from real system state
31
+
32
+ ## Privacy
33
+
34
+ - Your OpenClaw config is **partially redacted** before analysis
35
+ - Data sent only to our diagnostic service for analysis, **nothing stored**
36
+ - All fixes run **locally on your machine**
37
+ - Open source โ€” verify everything
115
38
 
116
39
  ## License
117
40
 
package/package.json CHANGED
@@ -1,22 +1,36 @@
1
1
  {
2
2
  "name": "clawaid",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI-powered diagnostic and repair tool for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
- "clawaid": "./dist/index.js"
7
+ "clawaid": "dist/index.js"
8
8
  },
9
9
  "scripts": {
10
10
  "build": "tsc",
11
11
  "start": "node dist/index.js",
12
12
  "dev": "ts-node src/index.ts"
13
13
  },
14
- "keywords": ["openclaw", "diagnostics", "repair", "ai", "clawaid"],
14
+ "keywords": [
15
+ "openclaw",
16
+ "diagnostics",
17
+ "repair",
18
+ "ai",
19
+ "clawaid"
20
+ ],
15
21
  "author": "clawaid",
16
22
  "license": "MIT",
17
- "files": ["dist", "web"],
18
- "engines": { "node": ">=18" },
19
- "repository": { "type": "git", "url": "https://github.com/jjj5666/clawaid" },
23
+ "files": [
24
+ "dist",
25
+ "web"
26
+ ],
27
+ "engines": {
28
+ "node": ">=18"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/jjj5666/clawaid.git"
33
+ },
20
34
  "dependencies": {
21
35
  "express": "^4.18.2",
22
36
  "axios": "^1.6.2",
package/web/index.html CHANGED
@@ -749,7 +749,7 @@
749
749
  </div>
750
750
 
751
751
  <div class="footer">
752
- <p>ClawAid v1.0.0 ยท <a href="https://github.com/openclaw" target="_blank">GitHub</a></p>
752
+ <p>ClawAid v1.0.0 ยท <a href="https://github.com/jjj5666/clawaid" target="_blank">GitHub</a></p>
753
753
  </div>
754
754
 
755
755
  </div>