@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 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 targets accept a Board ID or a `.board` path. Every command supports `-h` and `--json`:
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 inspect boards/plan.board --json
233
- cohub -s <spaceId> boards items list <boardId>
234
- cohub -s <spaceId> boards connections list <boardId>
235
- cohub -s <spaceId> boards capabilities <boardId>
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 targeted reads for large Boards:
249
+ Use the filters so a large Board is not read whole:
240
250
 
241
251
  ```bash
242
- cohub -s <spaceId> boards items get <boardId> <itemId> --json
243
- cohub -s <spaceId> boards connections get <boardId> <connectionId> --json
244
- cohub -s <spaceId> boards effects get <boardId> <effectId> --json
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
- Create semantic JSON from an example, then apply it to one resource:
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 item text > item.json
252
- cohub -s <spaceId> boards items create <boardId> --input item.json
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 boards examples composition fade > intro.json
255
- cohub -s <spaceId> boards compositions apply <boardId> --input intro.json
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
- Apply related changes atomically with one request. The batch contains semantic commands, not a full Board snapshot:
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
- ```json
261
- {"commands":[
262
- {"type":"item.patch","itemId":"title","patch":{"props":{"text":"Updated"}}},
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 examples batch basic > changes.json
269
- cohub -s <spaceId> boards batch <boardId> --input changes.json --dry-run
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
- Use `--base-version` and `--mutation-id` for controlled, retry-safe scripts. Use `--dry-run` to validate without writing. Playback is grouped under `playback`:
286
+ Playback commands sit on `boards` directly:
274
287
 
275
288
  ```bash
276
- cohub -s <spaceId> boards playback play <boardId> <compositionId>
277
- cohub -s <spaceId> boards playback seek <boardId> <playbackId> 400
278
- cohub -s <spaceId> boards playback stop <boardId> <playbackId>
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