clawpilot 0.1.2 → 0.2.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/README.md +160 -100
- package/bin/cli.js +591 -214
- package/docs/PUBLISH_CHECKLIST.md +31 -23
- package/docs/plans/2026-02-13-v0.3-clawra-gap-plan.md +199 -0
- package/docs/plans/2026-02-13-v0.3-implementation.md +434 -0
- package/docs/releases/v0.1.2.md +57 -0
- package/docs/releases/v0.2.0-draft.md +24 -0
- package/docs/releases/v0.2.1-draft.md +19 -0
- package/docs/troubleshooting.md +44 -0
- package/package.json +1 -1
- package/skill/SKILL.md +33 -22
- package/src/config/migrations.js +68 -0
- package/src/install.js +248 -181
- package/src/preflight.js +288 -0
- package/src/runtime/index.js +127 -0
- package/src/runtime/openclaw-gateway.js +135 -0
- package/src/runtime/productivity.js +42 -0
- package/src/runtime/role-pack.js +11 -0
- package/src/runtime/social-formatters.js +22 -0
- package/src/runtime/state-store.js +33 -0
- package/src/runtime/template-renderer.js +7 -0
- package/src/runtime/weekly-report.js +19 -0
- package/templates/content/evening.md +7 -0
- package/templates/content/midday.md +8 -0
- package/templates/content/morning.md +8 -0
- package/templates/content/report.md +5 -0
- package/templates/content/social-linkedin.md +8 -0
- package/templates/content/social-telegram.md +8 -0
- package/templates/content/social-x.md +8 -0
- package/templates/role-packs/hana.json +7 -0
- package/templates/role-packs/minji.json +7 -0
- package/templates/soul-injection.md +38 -28
- package/docs/plans/2026-02-12-0.1.2-plan.md +0 -52
- package/docs/plans/2026-02-13-0.1.2-design.md +0 -115
package/README.md
CHANGED
|
@@ -1,100 +1,160 @@
|
|
|
1
|
-
# clawpilot
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
#
|
|
28
|
-
npx -y clawpilot@latest
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
# clawpilot
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Execution-first productivity copilot for OpenClaw: fast install, deterministic workflows, and actionable runtime diagnostics.
|
|
8
|
+
|
|
9
|
+
## Why Clawpilot
|
|
10
|
+
|
|
11
|
+
- Fast first success: `npx` entrypoint with no global install step.
|
|
12
|
+
- Reliability-first installer: preflight checks + explicit existing-install behavior.
|
|
13
|
+
- Runtime observability: structured errors with fix hints for automation and humans.
|
|
14
|
+
- Brand-safe persona strategy: fictional role pack identities only (`hana`, `minji`).
|
|
15
|
+
|
|
16
|
+
## Quick Copy (First Success)
|
|
17
|
+
|
|
18
|
+
`clawpilot` is published on npm, so `npx` can run it directly.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# 1) Check environment only (no writes)
|
|
22
|
+
npx -y clawpilot@latest install --preflight
|
|
23
|
+
|
|
24
|
+
# 2) Install
|
|
25
|
+
npx -y clawpilot@latest install --yes --timezone UTC --on-existing update
|
|
26
|
+
|
|
27
|
+
# 3) First success (dry-run, no send)
|
|
28
|
+
npx -y clawpilot@latest run --command morning --dry-run --timezone UTC
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## What You Get In 5 Minutes
|
|
32
|
+
|
|
33
|
+
- Install a productivity skill into OpenClaw.
|
|
34
|
+
- Run `morning`, `midday`, `evening`, `report` command loops.
|
|
35
|
+
- Store daily state and generate weekly report summaries.
|
|
36
|
+
- Deliver via OpenClaw Gateway when channel is configured.
|
|
37
|
+
|
|
38
|
+
## FAQ
|
|
39
|
+
|
|
40
|
+
**Q: This is `npx` only. Is it actually on npm?**
|
|
41
|
+
Yes. `clawpilot` is published on npm, and `npx -y clawpilot@latest ...` pulls from npm directly.
|
|
42
|
+
|
|
43
|
+
**Q: Why no real celebrity/real-person identity mode?**
|
|
44
|
+
Project policy is fictional role pack only for safer branding and compliance.
|
|
45
|
+
|
|
46
|
+
## Runtime Usage
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Installed binary style
|
|
50
|
+
clawpilot run --command morning --dry-run --timezone UTC --role-pack hana --task "Plan sprint" --task "Fix blocker" --task "Send update"
|
|
51
|
+
clawpilot run --command midday --dry-run --status done --status blocked --status deferred
|
|
52
|
+
clawpilot run --command evening --dry-run
|
|
53
|
+
clawpilot run --command report --dry-run
|
|
54
|
+
|
|
55
|
+
# Local source style
|
|
56
|
+
node bin/cli.js run --command morning --dry-run --timezone UTC --role-pack hana --task "Plan sprint" --task "Fix blocker" --task "Send update"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Install Options
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
clawpilot install [options]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Options:
|
|
66
|
+
- `--home <path>`: override OpenClaw home directory
|
|
67
|
+
- `--force`: replace existing installation
|
|
68
|
+
- `--yes`: non-interactive mode
|
|
69
|
+
- `--timezone <IANA>`: timezone override
|
|
70
|
+
- `--channel <target>`: default delivery channel written to config
|
|
71
|
+
- `--role-pack <name>`: default role pack (`hana|minji`)
|
|
72
|
+
- `--on-existing <mode>`: `error|update|skip|reinstall`
|
|
73
|
+
- `--preflight`: run environment checks only (no install changes)
|
|
74
|
+
- `--json-errors`: emit machine-readable JSON to stdout/stderr
|
|
75
|
+
- `--morning <HH:mm>`: morning check-in time
|
|
76
|
+
- `--midday <HH:mm>`: midday check-in time
|
|
77
|
+
- `--evening <HH:mm>`: evening check-in time
|
|
78
|
+
|
|
79
|
+
## Run Options
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
clawpilot run [options]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Options:
|
|
86
|
+
- `--command <name>`: `morning|midday|evening|report`
|
|
87
|
+
- `--dry-run`: return payload only, do not send
|
|
88
|
+
- `--channel <target>`: OpenClaw channel target
|
|
89
|
+
- `--role-pack <name>`: `hana|minji`
|
|
90
|
+
- `--task <text>`: repeatable task input (morning)
|
|
91
|
+
- `--status <value>`: repeatable status input (midday)
|
|
92
|
+
- `--state-file <path>`: override runtime state file
|
|
93
|
+
- `--timezone <IANA>`: timezone override
|
|
94
|
+
- `--json-errors`: emit machine-readable error JSON to stderr
|
|
95
|
+
|
|
96
|
+
## Delivery Model
|
|
97
|
+
|
|
98
|
+
- Uses OpenClaw Gateway for delivery (`openclaw message send`).
|
|
99
|
+
- Default runtime delivery config:
|
|
100
|
+
- `delivery.mode = openclaw-gateway`
|
|
101
|
+
- `delivery.platform = telegram`
|
|
102
|
+
- Non-dry-run requires valid channel and available OpenClaw CLI/gateway.
|
|
103
|
+
|
|
104
|
+
## Role Pack Policy
|
|
105
|
+
|
|
106
|
+
- Uses fictional role pack identities only (fictional role pack strategy).
|
|
107
|
+
- No real-person celebrity identity is used.
|
|
108
|
+
|
|
109
|
+
## Demo Paths
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Safe path (no real send)
|
|
113
|
+
pwsh ./scripts/demo-safe.ps1 -SkipPreflight -OpenClawHome C:\temp\clawpilot-demo
|
|
114
|
+
|
|
115
|
+
# Send path (requires explicit confirmation)
|
|
116
|
+
pwsh ./scripts/demo-send.ps1 -Channel @your_channel -Confirm -SkipPreflight -OpenClawHome C:\temp\clawpilot-demo
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Preflight
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Check environment only (no writes)
|
|
123
|
+
node bin/cli.js install --preflight
|
|
124
|
+
|
|
125
|
+
# JSON summary for automation
|
|
126
|
+
node bin/cli.js install --preflight --json-errors
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Troubleshooting
|
|
130
|
+
|
|
131
|
+
- Quick diagnostics doc: `docs/troubleshooting.md`
|
|
132
|
+
- Automation-friendly runtime errors:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
node bin/cli.js run --command morning --json-errors
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Example output:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{"code":"channel_required","reason":"Channel is required when sending without --dry-run.","fix":"Use --channel <target> or set delivery.channel in openclaw.json.","docs":"docs/troubleshooting.md"}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## OpenClaw Paths
|
|
145
|
+
|
|
146
|
+
Installer writes to:
|
|
147
|
+
- `~/.openclaw/skills/clawpilot-productivity/`
|
|
148
|
+
- `~/.openclaw/openclaw.json`
|
|
149
|
+
- `~/.openclaw/workspace/SOUL.md`
|
|
150
|
+
- `~/.openclaw/workspace/IDENTITY.md`
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
node bin/cli.js install --home /custom/path --yes --timezone UTC --force
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Development
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm test
|
|
160
|
+
```
|