@neta-art/cohub-cli 9.0.0 → 9.1.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 +41 -28
- package/dist/board-kernel.js +583 -382
- package/dist/commands/boards.js +31 -12
- package/dist/commands/runtime.js +3 -2
- package/dist/commands/sandboxd-binary.d.ts +1 -1
- package/dist/commands/sandboxd-binary.js +2 -23
- package/dist/index.js +1 -1
- package/dist/network-error.d.ts +3 -0
- package/dist/network-error.js +22 -0
- package/dist/output.js +4 -9
- package/dist/runtime/connection.js +2 -1
- package/dist/runtime/launch.d.ts +1 -1
- package/dist/runtime/launch.js +12 -9
- package/dist/runtime/native/execution.js +3 -2
- package/dist/safe-remote-image.d.ts +5 -1
- package/dist/safe-remote-image.js +16 -8
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -115,6 +115,13 @@ cohub runtime down
|
|
|
115
115
|
cohub runtime up -n --name another-project
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
+
On macOS and Linux X11, a new Runtime offers screen sharing by default. The prompt
|
|
119
|
+
explains that collaborators and agents can see and control the screen; Enter accepts,
|
|
120
|
+
and `n` declines. Use `--no-display` to skip sharing, or `--display xvfb[:WIDTHxHEIGHT]`
|
|
121
|
+
for a virtual screen. `--yes` also authorizes default screen sharing. Headless and
|
|
122
|
+
Wayland-only Linux sessions skip the default offer; an existing Runtime keeps its
|
|
123
|
+
screen configuration unless explicitly overridden (configuration changes require a restart).
|
|
124
|
+
|
|
118
125
|
Runtime diagnostics stay as redacted JSONL under the local Runtime state directory and
|
|
119
126
|
are never uploaded automatically. Use `runtime logs --json` to export a failure report;
|
|
120
127
|
events carry the local `runtimeId` plus server `requestId` / `traceparent` when a turn has
|
|
@@ -225,57 +232,63 @@ cohub -s <spaceId> spaces activity 365 --json
|
|
|
225
232
|
|
|
226
233
|
## Boards
|
|
227
234
|
|
|
228
|
-
Board
|
|
235
|
+
A Board is one JSON document with three parts — `board` settings, an `items` map,
|
|
236
|
+
and an `animations` map. Board targets accept a Board ID or a `.board` path. Every
|
|
237
|
+
command supports `-h`, and the global `--json` makes the output machine-readable:
|
|
229
238
|
|
|
230
239
|
```bash
|
|
231
240
|
cohub boards -h
|
|
232
|
-
cohub -s <spaceId> boards
|
|
233
|
-
cohub -s <spaceId> boards
|
|
234
|
-
cohub -s <spaceId> boards
|
|
235
|
-
cohub -s <spaceId> boards
|
|
241
|
+
cohub -s <spaceId> boards get boards/plan.board --json
|
|
242
|
+
cohub -s <spaceId> boards get <boardId> --only items
|
|
243
|
+
cohub -s <spaceId> boards get <boardId> --only board
|
|
244
|
+
cohub -s <spaceId> boards schema
|
|
245
|
+
cohub -s <spaceId> boards history <boardId> --json
|
|
236
246
|
cohub -s <spaceId> boards watch <boardId> --json
|
|
237
247
|
```
|
|
238
248
|
|
|
239
|
-
Use
|
|
249
|
+
Use the filters so a large Board is not read whole:
|
|
240
250
|
|
|
241
251
|
```bash
|
|
242
|
-
cohub -s <spaceId> boards
|
|
243
|
-
cohub -s <spaceId> boards
|
|
244
|
-
cohub -s <spaceId> boards
|
|
245
|
-
cohub -s <spaceId> boards compositions get <boardId> <compositionId> --json
|
|
252
|
+
cohub -s <spaceId> boards get <boardId> --items title,note
|
|
253
|
+
cohub -s <spaceId> boards get <boardId> --within s1
|
|
254
|
+
cohub -s <spaceId> boards get <boardId> --rect 0,0,1600,900
|
|
246
255
|
```
|
|
247
256
|
|
|
248
|
-
|
|
257
|
+
Start from an example and write it with `apply`, a JSON Merge Patch where fields
|
|
258
|
+
merge, `null` deletes, and unmentioned fields stay:
|
|
249
259
|
|
|
250
260
|
```bash
|
|
251
|
-
cohub boards examples
|
|
252
|
-
cohub -s <spaceId> boards
|
|
261
|
+
cohub boards examples workflow > seed.json
|
|
262
|
+
cohub -s <spaceId> boards create boards/plan.board --title "Plan" -i seed.json
|
|
253
263
|
|
|
254
|
-
cohub
|
|
255
|
-
cohub -s <spaceId> boards
|
|
264
|
+
cohub -s <spaceId> boards apply <boardId> '{"items":{"title":{"props":{"text":"Updated"}}}}'
|
|
265
|
+
cohub -s <spaceId> boards apply <boardId> -i changes.json
|
|
256
266
|
```
|
|
257
267
|
|
|
258
|
-
|
|
268
|
+
Group a whole change into one patch so it lands as one version. `--replace` makes
|
|
269
|
+
the document equal to the patch instead of merging; `--cascade` also deletes
|
|
270
|
+
children and the tracks targeting a deleted item:
|
|
259
271
|
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
{"type":"connection.create","connection":{"id":"title-agent","source":{"itemId":"title"},"target":{"itemId":"agent"}}}
|
|
264
|
-
]}
|
|
272
|
+
```bash
|
|
273
|
+
cohub -s <spaceId> boards apply <boardId> -i changes.json --dry-run
|
|
274
|
+
cohub -s <spaceId> boards apply <boardId> -i changes.json --base-version 12 --mutation-id deploy-1
|
|
265
275
|
```
|
|
266
276
|
|
|
277
|
+
Use `--base-version` and `--mutation-id` for controlled, retry-safe scripts, and
|
|
278
|
+
`--dry-run` to validate without writing. `boards preset` prints a preset motion as
|
|
279
|
+
tracks — an apply-ready patch with `--animation`, bare tracks without it:
|
|
280
|
+
|
|
267
281
|
```bash
|
|
268
|
-
cohub boards
|
|
269
|
-
cohub -s <spaceId> boards
|
|
270
|
-
cohub -s <spaceId> boards batch <boardId> --input changes.json
|
|
282
|
+
cohub -s <spaceId> boards preset rise --targets a,b --animation intro | cohub boards apply <boardId> -i -
|
|
283
|
+
cohub -s <spaceId> boards preset float --targets ship > idle-tracks.json
|
|
271
284
|
```
|
|
272
285
|
|
|
273
|
-
|
|
286
|
+
Playback commands sit on `boards` directly:
|
|
274
287
|
|
|
275
288
|
```bash
|
|
276
|
-
cohub -s <spaceId> boards
|
|
277
|
-
cohub -s <spaceId> boards
|
|
278
|
-
cohub -s <spaceId> boards
|
|
289
|
+
cohub -s <spaceId> boards play <boardId> <animationId> --at 2.5s
|
|
290
|
+
cohub -s <spaceId> boards seek <boardId> 12.5s
|
|
291
|
+
cohub -s <spaceId> boards stop <boardId>
|
|
279
292
|
```
|
|
280
293
|
|
|
281
294
|
## Search
|