@beyondwork/wb-cli 0.1.45 → 0.1.46

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bw-workblock
3
- description: Create or edit a Beyond Work workblock that lives on a tenant, from a coding agent session, with `wb-cli`. Use whenever the user asks to create, change, fix, extend, inspect, run or validate a workblock on a tenant, names a Studio URL (https://<tenant>/w/studio/detail/<id> or /w/studio/s/<id>) or a workblock id, wants a change pushed to a workblock version, or has several agents build one workblock and combine their work. Covers credentials, create/clone/checkout/pull/push, validation, unit tests, runs, version branches (which Studio calls versions), merging and resolving conflicts, publishing to another branch, and where the authoring knowledge (skills, docs) lands in the checkout.
3
+ description: Create or edit a Beyond Work workblock that lives on a tenant, from a coding agent session, with `wb-cli`. Use whenever the user asks to create, change, fix, extend, inspect, run or validate a workblock on a tenant, names a Studio URL (https://<tenant>/w/studio/detail/<id> or /w/studio/s/<id>), a Space URL (https://<tenant>/w/spaces/<space>) or a workblock id, wants a Space's menu changed or a workblock added to a Space, wants a change pushed to a workblock version, or has several agents build one workblock and combine their work. Covers credentials, create/clone/checkout/pull/push, validation, unit tests, runs, version branches (which Studio calls versions), merging and resolving conflicts, publishing to another branch, Spaces, and where the authoring knowledge (skills, docs) lands in the checkout.
4
4
  ---
5
5
 
6
6
  # bw-workblock
@@ -199,7 +199,27 @@ The building blocks:
199
199
  - **`main`.** Publish to the target version branch, then report its Studio URL and the checks you ran. The
200
200
  user deploys it from Studio; `wb-cli push --to main` is refused.
201
201
 
202
- ## Spaces and `wb-cli use`
202
+ ## Spaces
203
+
204
+ A Space is a team's menu on a tenant: a rail of groups, each holding entries. An entry shows one
205
+ module of a workblock. It holds `workblock_id`, `module_id`, a display `name`, and an optional `path`,
206
+ a route in the module's UI. `https://<tenant>/w/spaces/<slug-or-id>` opens a Space, and
207
+ `…/app/<module-id>` opens one of its entries.
208
+
209
+ `clone` and `branches` accept the link of an entry and print the workblock's Studio URL. `clone` checks
210
+ out the branch that the Space runs for you. Continue with the loop from there.
211
+
212
+ `wb-cli api list_spaces --tenant <host>` and `wb-cli api get_space '{"slug":"<slug-or-id>"}' --tenant
213
+ <host>` read Spaces. To change a Space, edit the object that `get_space` returns and send all of it to
214
+ `wb-cli api upsert_space - --tenant <host>`. This changes no workblock, so it needs no checkout and no
215
+ version branch. The rail orders groups and entries by `sort_order`, not by their place in the JSON.
216
+ An `icon` is a Lucide icon name.
217
+
218
+ To add a workblock, read `id` and `modules[].id` from its `manifest.yaml` after `wb-cli push`. Add
219
+ only modules that show something: a task UI, or the chat of an agent module. An entry shows a blank
220
+ "Workblock is not running" page when its module shows neither or is not on the branch that the Space
221
+ runs, so a new workblock stays blank in the Space until the user deploys it from Studio or you select
222
+ its version branch with `wb-cli use`, as the next paragraph describes. Report that.
203
223
 
204
224
  A Space module, like any run that you start outside a Studio workspace, runs the branch of the
205
225
  workblock that you chose with `wb-cli use`: `main` or a version branch. It is `main` until you
@@ -208,6 +228,11 @@ it with `wb-cli push --to <name>`, run `wb-cli use <name>` in the checkout, and
208
228
  choice applies only to you: each user makes their own, and a Space cannot name a version branch for
209
229
  a module. `wb-cli use` without a name prints your choice. Run `wb-cli use main` when you are done.
210
230
 
231
+ The `viewer` and `editor` relations of a Space give no access to its workblocks. To open an entry, a
232
+ person also needs start access to the workblock: `starter`, `editor` or `owner`, directly or through a
233
+ group. `permissions_grant` sets these relations. Grant only what the request asks for, and report who
234
+ still lacks access.
235
+
211
236
  ## Other platform requests
212
237
 
213
238
  `wb-cli api <verb> '<json>'` sends one request of the platform's WebSocket API as your user, for