clawborrator-cli 0.0.59 → 0.2.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 +59 -13
- package/dist-bundled/claw.cjs +580 -580
- package/package.json +5 -8
package/README.md
CHANGED
|
@@ -96,6 +96,15 @@ claw session prune --dry-run # find duplicate-routing-name row
|
|
|
96
96
|
claw session delete @backend --hard # permanent (cascades events / op-messages / shares)
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
+
Managed-session control (works against sessions spawned by a desktop daemon):
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
claw session kill @backend # kill the CC process; keep the session row
|
|
103
|
+
claw session restart @backend # kill + respawn; new pid, same session row
|
|
104
|
+
claw session screenshot @backend # one frame of the rendered terminal (vt100 → text)
|
|
105
|
+
claw session input @backend "hello\r" # type bytes into the PTY (escape sequences ok)
|
|
106
|
+
```
|
|
107
|
+
|
|
99
108
|
`<ref>` in any subcommand accepts the session UUID, the `@routingName`
|
|
100
109
|
for sessions you own, or `@owner/routingName` for sessions shared with
|
|
101
110
|
you.
|
|
@@ -187,6 +196,48 @@ Verification recipes for Node + Python and the full event catalog
|
|
|
187
196
|
live at the
|
|
188
197
|
[webhooks reference](https://next.clawborrator.com/demos/webhooks/).
|
|
189
198
|
|
|
199
|
+
### App tokens (SPA OAuth shortcut)
|
|
200
|
+
|
|
201
|
+
Browser SPAs authenticate via the SPA OAuth + PKCE flow and store
|
|
202
|
+
their `cw_app_…` token in `localStorage`. For dev you usually don't
|
|
203
|
+
want to walk the full OAuth round-trip every time — the CLI can mint
|
|
204
|
+
an app token directly off your existing CLI session:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
claw apps mint "my-spa" # mint a cw_app_… app token
|
|
208
|
+
claw apps list # list active app tokens
|
|
209
|
+
claw apps list --all # include revoked
|
|
210
|
+
claw apps revoke <id> # revoke (use --yes to skip the confirm)
|
|
211
|
+
|
|
212
|
+
claw apps test-oauth # walk the SPA OAuth+PKCE flow end-to-end
|
|
213
|
+
# as a debug tool — mints a real app token
|
|
214
|
+
# via the redirect-callback path
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
`apps mint` is the dev shortcut; `apps test-oauth` is the real flow
|
|
218
|
+
exercised end-to-end (useful when the redirect or the exchange step
|
|
219
|
+
is misbehaving). Both produce identical tokens.
|
|
220
|
+
|
|
221
|
+
### Desktop daemons
|
|
222
|
+
|
|
223
|
+
If you (or operators you share with) are running the
|
|
224
|
+
[`clawborrator-supervisor`](https://github.com/clawborrator/desktop_v1)
|
|
225
|
+
desktop daemon, the hub knows about it and you can ask it to spawn
|
|
226
|
+
managed CC sessions remotely:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
claw desktop list # daemons registered for the current user
|
|
230
|
+
claw desktop create-session <machineId> <folder> # spawn CC on that machine in <folder>
|
|
231
|
+
# --routing-name <name> pin the routingName
|
|
232
|
+
# --auto-enter / --no-auto-enter
|
|
233
|
+
# --extra-flag <flag> passed to claude (repeatable)
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The daemon mints the channel token server-side, drops a `.mcp.json`
|
|
237
|
+
into the folder, and spawns CC. Once it registers, it shows up in
|
|
238
|
+
`claw session list` like any other session — and `claw session kill`
|
|
239
|
+
/ `restart` / `screenshot` / `input` operate on it.
|
|
240
|
+
|
|
190
241
|
### Auth
|
|
191
242
|
|
|
192
243
|
```bash
|
|
@@ -200,10 +251,9 @@ claw logout # revokes the session token + cle
|
|
|
200
251
|
|
|
201
252
|
## `claw session attach` — the TUI
|
|
202
253
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
channel that doesn't pollute Claude's context.
|
|
254
|
+
Multiple operators attach to the same Claude Code session, see each
|
|
255
|
+
other's prompts in real time, race on tool-permission approvals, and
|
|
256
|
+
chat in a side channel that stays out of Claude's context.
|
|
207
257
|
|
|
208
258
|
```
|
|
209
259
|
$ claw session attach @backend
|
|
@@ -275,16 +325,12 @@ peer.
|
|
|
275
325
|
|
|
276
326
|
## Where to look next
|
|
277
327
|
|
|
278
|
-
- **Hub home
|
|
279
|
-
- **
|
|
280
|
-
- **WebSocket (AsyncAPI):** <https://next.clawborrator.com/ws-docs>
|
|
281
|
-
- **Webhook reference:** <https://next.clawborrator.com/demos/webhooks/>
|
|
282
|
-
- **A2A bridge reference:** <https://next.clawborrator.com/demos/a2a-docs/>
|
|
283
|
-
- **Source / issues / contributing:** <https://github.com/clawborrator/hub_v1>
|
|
328
|
+
- **Hub home:** <https://next.clawborrator.com/>
|
|
329
|
+
- **CLI source / issues:** <https://github.com/clawborrator/cli_v1>
|
|
284
330
|
|
|
285
|
-
The CLI
|
|
286
|
-
|
|
287
|
-
from
|
|
331
|
+
The CLI is a thin shell over the hub's REST + WebSocket surface — anything
|
|
332
|
+
`claw` does you can do directly from any HTTP client. Wire types live in
|
|
333
|
+
`src/shared/` (vendored from the hub repo's `shared/` workspace).
|
|
288
334
|
|
|
289
335
|
---
|
|
290
336
|
|