@beyondwork/wb-cli 0.1.51 → 0.1.53

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publisher": "beyondwork",
4
4
  "displayName": "Beyond Work",
5
5
  "description": "Tool for interacting with Beyond Work workblocks from VS Code and CLI.",
6
- "version": "0.1.51",
6
+ "version": "0.1.53",
7
7
  "vsce": {
8
8
  "baseContentUrl": "https://github.com/bwllaming/code/blob/HEAD/src/vscode/beyondwork",
9
9
  "baseImagesUrl": "https://github.com/bwllaming/code/raw/HEAD/src/vscode/beyondwork"
@@ -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>), 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.
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, chats with agent modules, 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
@@ -88,17 +88,23 @@ follow the confirmation warning above before sending the API request.
88
88
  intent from its message, in `git log`, `wb-cli log` and Studio. Studio's own messages use the
89
89
  same shape.
90
90
  7. **Prove it.** `wb-cli test` and `wb-cli run` check only what you pushed, and print the commit they
91
- ran on. Run `wb-cli test [<module>]` when the module has tests, then `wb-cli run <module>`, or
92
- `wb-cli run <module>/<task> --inputs '{...}'`, for what you changed. Since wb-cli 0.1.36, `wb-cli
93
- run <module>/<task>` calls an invokable task without a run. It returns no run id and no logs, and
91
+ ran on. They, `wb-cli ui` and `wb-cli chat` name a module or task by its `id` in `manifest.yaml`,
92
+ never by name. Run `wb-cli test [<module-id>]` when the module has tests, then `wb-cli run
93
+ <module-id>`, or `wb-cli run <task-id> --inputs '{...}'`, for what you changed. `wb-cli run
94
+ <task-id>` calls an invokable task without a run. It returns no run id and no logs, and
94
95
  the active run stays unchanged. A single task takes the outputs of the module's latest run, and
95
96
  `--inputs` gives only what no task of that run produced.
96
- A run stops at a task UI. Check each task UI that you changed with `wb-cli ui <module>/<task>`,
97
+ A run stops at a task UI. Check each task UI that you changed with `wb-cli ui <task-id>`,
97
98
  which shows it in a headless browser with Playwright. Look at its screenshots. To go through a
98
- run, open each waiting UI with `wb-cli ui <module>/<task> --in-run` and press Submit.
99
+ run, open each waiting UI with `wb-cli ui <task-id> --in-run` and press Submit.
99
100
  `references/browser-validation.md` describes both. Studio's Start and its "Configure & Run
100
- module" form need a browser tool in the user's signed-in browser. What you did not see run,
101
- report as not checked.
101
+ module" form need a browser tool in the user's signed-in browser.
102
+ An agent module acts only when someone chats with it. Prove it with `wb-cli chat <module-id> "<what
103
+ a user would write>"` (`--persona <id>` picks one of its `agent_configs`): the agent loads your pushed branch, and the command prints its reply, each
104
+ tool it called with the arguments and result, and the conversation id. Follow up with `wb-cli chat
105
+ -c <conversation> "<message>"`. A conversation's agent keeps the definition that it loaded for
106
+ the conversation's first message, so after a push, start a new conversation. `wb-cli chat -c
107
+ <conversation>` shows the whole conversation. What you did not see run, report as not checked.
102
108
  8. **Publish** with `wb-cli push --to <target>`. It moves the target to your pushed commit. When the
103
109
  target has commits that you lack, it refuses: run `wb-cli merge <target> -m "<what you took in>"`,
104
110
  settle any conflicts (see Working beside others), prove the merged commit again as step 7 says,
@@ -19,9 +19,9 @@ Check the UI in these cases:
19
19
 
20
20
  | Target | Mode | The page shows | Data |
21
21
  | --- | --- | --- | --- |
22
- | `<module>/<task>` | `preview` | The task's UI, with Submit and the UI's action buttons below it. | The JSON file of `--data <file>`. Without `--data`: the data that the task showed in the workspace's latest run. |
23
- | `<module>` | `detached` | The UI of a UI-only module, as a Space shows it. | The data that the module gives its UI. |
24
- | `<module>/<task> --in-run`, or `<module> --in-run` | `run` | The task UI that waits in the workspace's run, as Studio shows it, with Submit and the UI's action buttons below it. | The data of that run. |
22
+ | `<task-id>` | `preview` | The task's UI, with Submit and the UI's action buttons below it. | The JSON file of `--data <file>`. Without `--data`: the data that the task showed in the workspace's latest run. |
23
+ | `<module-id>` | `detached` | The UI of a UI-only module, as a Space shows it. | The data that the module gives its UI. |
24
+ | `<task-id> --in-run`, or `<module-id> --in-run` | `run` | The task UI that waits in the workspace's run, as Studio shows it, with Submit and the UI's action buttons below it. | The data of that run. |
25
25
 
26
26
  - The tenant builds the UI from the workspace's last commit, not from your files. Push first. The command
27
27
  refuses unpushed edits, an unfinished merge, or a workspace at a different commit.
@@ -61,9 +61,9 @@ Run each command from inside the checkout. `wb-cli ui` prints one JSON object pe
61
61
 
62
62
  | Route | Command | It ends |
63
63
  | --- | --- | --- |
64
- | A screenshot | `wb-cli ui <target> --screenshot ../shots/review.png` | After the PNG is written. |
65
- | A Playwright script | `wb-cli ui <target> --exec ../drive.mjs` | After the script returns. Exit 1 when it throws. |
66
- | Playwright MCP, or your own browser tool | `wb-cli ui <target>` in the background, then open the URL of the `ready` line. | On Ctrl-C (SIGINT) or SIGTERM. Exit 1 when the tenant closes the connection. |
64
+ | A screenshot | `wb-cli ui <id> --screenshot ../shots/review.png` | After the PNG is written. |
65
+ | A Playwright script | `wb-cli ui <id> --exec ../drive.mjs` | After the script returns. Exit 1 when it throws. |
66
+ | Playwright MCP, or your own browser tool | `wb-cli ui <id>` in the background, then open the URL of the `ready` line. | On Ctrl-C (SIGINT) or SIGTERM. Exit 1 when the tenant closes the connection. |
67
67
 
68
68
  `--exec` and `--screenshot` can go together: the script runs first. The screenshot shows the whole
69
69
  UI, up to 8000 px high.
@@ -114,9 +114,9 @@ Compare each `submit` with the outputs that the request asks for.
114
114
 
115
115
  `wb-cli ui` without `--in-run` never continues a run. To finish a run that waits at a task UI:
116
116
 
117
- 1. Start the run with `wb-cli run <module>`. It reports `waiting` when a task UI waits.
117
+ 1. Start the run with `wb-cli run <module-id>`. It reports `waiting` when a task UI waits.
118
118
  2. Open that UI in the run and press Submit, as a person would:
119
- `wb-cli ui <module>/<task> --in-run --exec ../submit.mjs`. The script fills the UI and clicks
119
+ `wb-cli ui <task-id> --in-run --exec ../submit.mjs`. The script fills the UI and clicks
120
120
  `page.getByRole("button", { name: "Submit" })`. The `submit` event shows `sent: true` when the run
121
121
  received the data.
122
122
  3. Run `wb-cli run --wait-for latest`. It prints the state and the outputs of every task. Compare the