@veewo/claw 0.2.3 → 0.2.4
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 +44 -0
- package/dist/cli.js +492 -141
- package/dist/cli.js.map +1 -1
- package/dist/codex-driver.d.ts +2 -2
- package/dist/codex-driver.js +80 -37
- package/dist/codex-driver.js.map +1 -1
- package/dist/codex-host-actions.d.ts +15 -0
- package/dist/codex-host-actions.js +75 -0
- package/dist/codex-host-actions.js.map +1 -0
- package/dist/command-service.d.ts +102 -0
- package/dist/command-service.js +455 -0
- package/dist/command-service.js.map +1 -0
- package/dist/knowledge-hook-preflight.js +37 -5
- package/dist/knowledge-hook-preflight.js.map +1 -1
- package/dist/search-entry.js +3 -1
- package/dist/search-entry.js.map +1 -1
- package/dist/session-daemon-entry.d.ts +1 -0
- package/dist/session-daemon-entry.js +8 -0
- package/dist/session-daemon-entry.js.map +1 -0
- package/dist/session-daemon.d.ts +9 -0
- package/dist/session-daemon.js +363 -0
- package/dist/session-daemon.js.map +1 -0
- package/dist/session-registry-v2.d.ts +66 -0
- package/dist/session-registry-v2.js +292 -0
- package/dist/session-registry-v2.js.map +1 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -53,6 +53,50 @@ In a typical round, the CLI helps land this loop in a project:
|
|
|
53
53
|
|
|
54
54
|
That project-level plan structure helps agents carry longer-running work more cleanly than leaving the task in loose chat state alone.
|
|
55
55
|
|
|
56
|
+
## Persistent sessions
|
|
57
|
+
|
|
58
|
+
Open a persistent terminal with:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
claw session open <dir> <agent-session-id>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The workdir is immutable for the lifetime of that session. Opening another
|
|
65
|
+
directory closes the prior live connection and opens the composite identity
|
|
66
|
+
`(canonical workdir, agent session id)`; two directories with the same agent id
|
|
67
|
+
remain isolated.
|
|
68
|
+
|
|
69
|
+
Inside the terminal, these commands implicitly target `currentPlan`:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
plan show [--simple]
|
|
73
|
+
plan edit ...
|
|
74
|
+
plan wait
|
|
75
|
+
plan done --retrospective "..."
|
|
76
|
+
task add ...
|
|
77
|
+
task edit --id ...
|
|
78
|
+
task done --id ...
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Use `plan resume` to resume the retained current plan, `plan resume <planId>` to
|
|
82
|
+
make a specified resumable plan current, and `plan leave` to enter
|
|
83
|
+
`end.leave` and clear focus. Every `end.*` triggers end-state finalization;
|
|
84
|
+
`end.leave` remains resumable and does not set `completedAt`.
|
|
85
|
+
|
|
86
|
+
`search --dir <dir> <query>` changes only that search operation. It never
|
|
87
|
+
changes the session workdir or current plan.
|
|
88
|
+
|
|
89
|
+
On an interrupted connection, mutations are never replayed automatically.
|
|
90
|
+
Reopen with the exact command returned by the error, then inspect
|
|
91
|
+
`plan show --simple`. Retained v2 state expires seven days after its last
|
|
92
|
+
update. Legacy session caches are not migrated and canonical plans are never
|
|
93
|
+
deleted by v2 cleanup.
|
|
94
|
+
|
|
95
|
+
Host adapters remain compatible with the stateless CLI. They can adopt
|
|
96
|
+
`@veewo/claw-client` incrementally once they consume the same structured
|
|
97
|
+
post-commit effects; opening a persistent session does not change existing
|
|
98
|
+
adapter behavior.
|
|
99
|
+
|
|
56
100
|
Codex startup workflow should rely on the session hook or startup recovery path instead of treating any extra manual recovery step as required after plan creation.
|
|
57
101
|
|
|
58
102
|
## Search and recall
|