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 CHANGED
@@ -1,100 +1,160 @@
1
- # clawpilot
2
-
3
- OpenClaw productivity copilot installer and skill package.
4
-
5
- ## What it does
6
-
7
- `clawpilot` installs a productivity-focused OpenClaw skill with a simple daily loop:
8
- - Morning planning (top 3 tasks)
9
- - Midday progress check
10
- - Evening review and next-step setup
11
-
12
- The installer also:
13
- - Copies `skill/` into `~/.openclaw/skills/clawpilot-productivity`
14
- - Adds or updates `clawpilot-productivity` under `openclaw.json`
15
- - Injects a productivity section into `workspace/SOUL.md` (idempotent)
16
- - Writes a default `workspace/IDENTITY.md`
17
-
18
- ## Install
19
-
20
- ```bash
21
- npx clawpilot@latest
22
- ```
23
-
24
- ## Quick Start
25
-
26
- ```bash
27
- # Install into default ~/.openclaw
28
- npx -y clawpilot@latest install
29
-
30
- # Or install with custom schedule
31
- npx -y clawpilot@latest install --morning 08:30 --midday 13:30 --evening 21:00
32
-
33
- # Validate CLI
34
- npx -y clawpilot@latest --help
35
- ```
36
-
37
- For isolated local verification:
38
-
39
- ```bash
40
- node bin/cli.js install --home ./tmp-openclaw --yes --timezone UTC --force
41
- ```
42
-
43
- Or run locally:
44
-
45
- ```bash
46
- npm install
47
- npm run test
48
- node bin/cli.js install
49
- ```
50
-
51
- ## CLI options
52
-
53
- ```bash
54
- clawpilot install [options]
55
- ```
56
-
57
- Options:
58
- - `--home <path>`: Override OpenClaw home directory
59
- - `--force`: Replace existing skill installation
60
- - `--morning <HH:mm>`: Morning check-in time (default `09:00`)
61
- - `--midday <HH:mm>`: Midday check-in time (default `14:00`)
62
- - `--evening <HH:mm>`: Evening check-in time (default `21:30`)
63
-
64
- ## OpenClaw paths
65
-
66
- By default, the installer writes to:
67
- - `~/.openclaw/skills/clawpilot-productivity/`
68
- - `~/.openclaw/openclaw.json`
69
- - `~/.openclaw/workspace/SOUL.md`
70
- - `~/.openclaw/workspace/IDENTITY.md`
71
-
72
- You can override the target path with:
73
-
74
- ```bash
75
- node bin/cli.js install --home /custom/path
76
- ```
77
-
78
- ## Development
79
-
80
- ```bash
81
- npm test
82
- ```
83
-
84
- ## Publish
85
-
86
- See `docs/PUBLISH_CHECKLIST.md`.
87
-
88
- ## Troubleshooting
89
-
90
- ### npm publish E403 (2FA required)
91
-
92
- If publish fails with:
93
-
94
- `403 Forbidden ... Two-factor authentication or granular access token with bypass 2fa enabled is required`
95
-
96
- Use one of these fixes:
97
-
98
- 1. Enable npm 2FA for publishing and publish with OTP:
99
- - `npm publish --access public --otp=<6-digit-code>`
100
- 2. Use a granular access token with publish permission and bypass 2FA enabled.
1
+ # clawpilot
2
+
3
+ ![npm version](https://img.shields.io/npm/v/clawpilot?label=npm)
4
+ ![node](https://img.shields.io/badge/node-%3E%3D18-3c873a)
5
+ ![license](https://img.shields.io/badge/license-MIT-blue)
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
+ ```