@beyondwork/wb-cli 0.1.55 → 0.1.57
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 +14 -0
- package/out/cli.js +2500 -352
- package/out/extension.js +117 -117
- package/package.json +2 -2
- package/wb-cli/skills/bw-workblock/SKILL.md +15 -12
- package/wb-cli/skills/bw-workblock/references/browser-validation.md +161 -119
- package/out/headless-host.js +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.57
|
|
4
|
+
|
|
5
|
+
- `use --workblock <workblock>` sets or prints the version that you run of a workblock that you have no checkout of. It takes the workblock's Studio URL, a Studio workspace URL, a Space module URL, or `<tenant>/<id>`, as `branches` does.
|
|
6
|
+
- `use` takes a conversation branch, `<version>@stream/<workspace-id>`, next to a version name and `main`, as `clone --branch` does. It refuses a conversation branch that the workblock does not have.
|
|
7
|
+
|
|
8
|
+
## v0.1.56
|
|
9
|
+
|
|
10
|
+
- `ui` opens the checkout's workspace in Studio on the tenant, instead of a local copy of Studio's task UI page. Every `bw.*` call of a task UI behaves as it does for a person in Studio, file uploads included. `ui` takes no module or task id: start the module in Studio, or with `wb-cli run`, and use the task UIs that the run shows.
|
|
11
|
+
- `ui url` checks that the workspace is at the checkout's commit and prints its Studio URL, for a browser tool in your own browser. `ui playwright exec <script>` and `ui playwright screenshot <file>` open Studio in Chromium through your Playwright. The script gets `{ page, context, ui, url }`, where `ui` is the task UI on screen. `ui` without a command prints its help and exits with code 2.
|
|
12
|
+
- The `bw-workblock` skill lists the test ids of the Studio controls that a script uses: Start, the list of modules, Stop, Submit, the buttons of `bw.setActions`, and the toast of a rejected Submit. `page.getByTestId("start-module")` finds Start in every language of Studio. `ui` finds the task UI by the test id `task-ui-frame`, and the wait for Studio uses the test ids of the toolbar, the loader image and the Read Only button. On a tenant whose Studio has no test ids yet, wb-cli finds these elements by their markup.
|
|
13
|
+
- `ui playwright sign-in` opens a browser window on the tenant and keeps the session after you sign in, in `~/.config/beyondwork/browser/<host>.json`. `--storage-state <file>` uses a Playwright storage state instead. Without a session, `exec` and `screenshot` exit with code 3.
|
|
14
|
+
- When Playwright or Chromium is missing or does not start, `ui playwright` also names the other way: open the workspace URL in a browser where you are signed in.
|
|
15
|
+
- `ui --exec <script>` is now `ui playwright exec <script>`, and `ui --screenshot <file>` is now `ui playwright screenshot <file>`. `ui --in-run`, `--data`, `--asset`, `--runtime`, `--csp` and `--port` are gone. To show one task's UI, run the task with `wb-cli run <task-id>`. It takes the outputs of the module's latest run, and `--inputs '{...}'` gives only what no task of that run produced.
|
|
16
|
+
|
|
3
17
|
## v0.1.55
|
|
4
18
|
|
|
5
19
|
- `test --by-file` sends one request for each test file instead of one for each module, and each request has the limit of 180 seconds. A module whose tests take longer than 180 seconds together can run this way, and a lost request costs one file. Without the option, `test` sends one request for each module, as before.
|