@beyondwork/wb-cli 0.1.38 → 0.1.40

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.40
4
+
5
+ - `ui <module|task>` shows a task UI in a headless browser on this machine, so a coding agent can see and use it without the user's browser. A task shows a preview of its UI with the data of `--data <file>`, or with the data that the task showed in the workspace's latest run. Submit in a preview records the data and sends nothing. A UI-only module shows its UI as a Space does. The tenant builds the UI from the workspace's last commit. A preview takes the runtime and the CSP of the task's UI from the latest run; `--runtime`, `--csp` and `--asset` set them. The UI's task calls and collaborative documents go to the tenant on the workspace; `ui` refuses every other request of the page.
6
+ - `ui` serves the page on 127.0.0.1 under a random secret path until Ctrl-C, for Playwright MCP or the agent's own browser tool. `--exec <script>` instead runs a Playwright script against the page and prints what it returns, and `--screenshot <file>` writes a PNG. Both load Playwright from your environment and name the install command when it is missing. `ui` prints JSON lines: the URL when the page is ready, then the submits and errors that the page reports.
7
+ - `ui <module|task> --in-run` opens the task UI that waits in the workspace's run, with the run's data. The UI's task calls run in the run, and Submit and the actions `continue` and `continue_next` continue the run, as in Studio. The `ready` line names the run and the task run, and a `submit` event in a run reports `sent`.
8
+ - The `bw-workblock` skill checks task UIs with `wb-cli ui`, and finishes a run that waits at a UI with `wb-cli ui --in-run`, or with `wb-cli api continue_ui`. The skill no longer ships `browser-run.sh` and `validate-ui.mjs`. The agent's browser tool in the user's signed-in browser stays the route for the full Studio flow from Start to the result.
9
+
10
+ ## v0.1.39
11
+
12
+ - `clone` and `pull` write the data model folder of a Workblock as files: the change files in `data_model/changes/` and the generated `data_model/model.json`. Before, the folder landed inside `manifest.yaml`. `push` sends the folder as it is on disk. When you delete the whole folder while data models are on for the tenant, `push` removes it, and the platform puts back the deployed change files.
13
+ - `push` refuses to send an edited `data_model/model.json` (`model_file_edited`) or an edited deployed change file (`deployed_file_changed`), and a file in `data_model/` that is neither `model.json` nor under `changes/` (`unexpected_file`). Nothing is saved, and your files stay as they are, so you can move the change into a pending change file. A deployed change file is one that is on `main`; wb-cli learns which ones from the tenant at `clone`, `pull` and `push`. Deleting `model.json` or a deployed change file is not refused: the platform writes them again, and `push` writes them back into the checkout.
14
+ - The VS Code extension refuses the same two edits when it saves a Workblock that has a data model, and shows them as errors on the files. Nothing is saved. To learn which change files are deployed, each such save first reads the Workblock of the workspace.
15
+ - After `push`, the checkout holds the `model.json` that the platform generated from your change files.
16
+ - Data model errors print as `<file> [<code>] <path>: <message>`, such as `error: data_model/changes/0001_create_procurement.json [unknown_value] /entities/Supplier/add_properties/country/type: value must be one of ...`.
17
+
3
18
  ## v0.1.38
4
19
 
5
20
  - wb-cli waits 95 seconds longer for the answer to a request before it reports "Request timed out". A request without a time limit now fails after 125 seconds instead of 30 seconds. A devenv tenant stops its Python and TypeScript runners when nobody used them for more than about 1 hour. The next request that needs a runner can wait up to 90 seconds for a runner to start, before the request's own time limit starts. Before this version, wb-cli stopped waiting after 30 seconds, or 5 seconds after the request's time limit, and reported "Request timed out" while the tenant still ran the request.