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.
- package/README.md +23 -100
- package/package.json +20 -6
- package/web/index.html +1 -1
package/README.md
CHANGED
|
@@ -1,117 +1,40 @@
|
|
|
1
|
-
#
|
|
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
|
|
8
|
+
npx clawaid
|
|
18
9
|
```
|
|
19
10
|
|
|
20
|
-
|
|
11
|
+
Opens a clean web UI in your browser. No config, no API key needed โ just run it.
|
|
21
12
|
|
|
22
|
-
##
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
|
63
|
-
- Config file
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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.
|
|
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": "
|
|
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": [
|
|
14
|
+
"keywords": [
|
|
15
|
+
"openclaw",
|
|
16
|
+
"diagnostics",
|
|
17
|
+
"repair",
|
|
18
|
+
"ai",
|
|
19
|
+
"clawaid"
|
|
20
|
+
],
|
|
15
21
|
"author": "clawaid",
|
|
16
22
|
"license": "MIT",
|
|
17
|
-
"files": [
|
|
18
|
-
|
|
19
|
-
|
|
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/
|
|
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>
|