@beyondwork/wb-cli 0.1.29 → 0.1.31
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 +18 -0
- package/README.md +1 -1
- package/out/cli.js +12847 -170
- package/out/extension.js +73 -73
- package/package.json +1 -1
- package/wb-cli/skills/bw-workblock/SKILL.md +33 -24
- package/wb-cli/skills/bw-workblock/references/browser-run.sh +8 -0
- package/wb-cli/skills/bw-workblock/references/browser-validation.md +53 -10
- package/wb-cli/skills/bw-workblock/references/validate-ui.mjs +77 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.31
|
|
4
|
+
|
|
5
|
+
- `validate` and `push` name the file of each finding and the manifest entry it concerns, such as `main/fetch_orders/fetch_orders.py (task "Main/Fetch Orders")`, instead of `task[0/3]` or raw JSON. `--json` adds `paths` and `label` to each finding.
|
|
6
|
+
- `validate` and `push` warn when UI code calls `invokeTask` with a task name or id that no task in the workblock has (`local` in `--json`).
|
|
7
|
+
- `push` refuses when a task directory holds task code that no task in `manifest.yaml` claims (any `.py` in a module the manifest has, or `<module>/<task>/<task>.py` elsewhere), because the save would remove that task from the workblock or never add it.
|
|
8
|
+
- `run` shows outputs as a UI's `invokeTask` receives them: an output that the platform moved to a blob (its JSON over 4096 bytes) is fetched and shown instead of its `::bw:data:` key. A task you ran comes first (also as `target` in `--json`). Tasks carried over from the previous run are listed on one line without their outputs. The report adds the run's own error, the error stack of a failed task, and the last log lines of every task that ran, not only of failed ones, or why they could not be read. The text report shows the first 100 items of a long list; `--json` keeps every item.
|
|
9
|
+
- `api <verb> [json]` sends one request of the platform's WebSocket API and prints the result: schedules, triggers, permissions, spaces, run data, LLM calls and the other requests that have no verb. `api --list [filter]` lists the verbs and `api <verb> --describe` prints a verb's request and response schema. It refuses the verbs that change a branch, deploy, publish or apply destructive changes.
|
|
10
|
+
- The `bw-workblock` skill's browser check works outside the monorepo: the agent drives Studio's Start and each task UI with its own browser tool, such as Claude in Chrome or the ChatGPT browser extension, in a browser where the user is signed in to the tenant, and reads the run's outputs with `run --wait-for latest`. The skill limits the agent to the workspace, Start, the task UIs and Submit, and says to keep the browser window visible, because a hidden tab loses the input sent into a task UI. The Playwright script stays the route from the monorepo on dev-eu1. The docs page "Claude Code and Codex" has a setup step for the browser.
|
|
11
|
+
|
|
12
|
+
## v0.1.30
|
|
13
|
+
|
|
14
|
+
- The `bw-workblock` skill calls the CLI `wb-cli`, as npm installs it, instead of the monorepo's `bin/wb-cli`, so Claude Code and Codex can follow it outside the monorepo. The product docs page "Claude Code and Codex" shows how to install the CLI and the skill.
|
|
15
|
+
- `install-skill` links the `bw-workblock` skill that comes with wb-cli into `~/.claude/skills` and `~/.agents/skills`, where Claude Code and Codex load it. It refuses when a real directory has the skill's name.
|
|
16
|
+
- The checkout's `AGENTS.md` has a Files section: where task UIs, their npm packages, the shared theme, shared Python and module tests live.
|
|
17
|
+
- The `bw-workblock` skill says that a module test gets a task's code as a pytest fixture named after the task. The import form that it gave before fails on the platform with `ModuleNotFoundError`.
|
|
18
|
+
- After a run ends, the browser check saves `result-*.png`: the run's graph, and the module's outputs as Studio shows them.
|
|
19
|
+
- Publishes the fixes that merged after 0.1.29: `push --new-version` compares the checkout with the branch that the server forks from; `push` refuses a file that still holds pull conflict markers; the skill and `status` point to `git status` and `git diff HEAD`; the browser check sees a UI close its own iframe.
|
|
20
|
+
|
|
3
21
|
## v0.1.29
|
|
4
22
|
|
|
5
23
|
- Checkout verbs for authoring a tenant's workblock as local files, usable from coding agents: `login` (checks the per-tenant token that you paste into `~/.config/beyondwork/credentials.json`, and adds an empty entry for a new tenant), `clone <studio-url>` (git layout plus `AGENTS.md`, the tenant's authoring skills in `.skills/` and the docs bundle in `.docs/`), `create <tenant> <name>` (a new workblock with a version, a workspace and a placeholder task, checked out the same way), `clone <workspace-url>` (that workspace's branch, bound to it), `branches [studio-url]` (no checkout needed; workspace URLs and unpublished-work hints), `pull` (puts edits that are not pushed back on top, like `git pull --autostash`; the checkout is a git repository whose HEAD is the server's form, so `git diff` shows them), `push` (fenced by the last-read commit; `--new-version` creates a version and a Studio workspace, `--update` publishes to the version), `validate`, `status`, `test [module]` (a module's unit tests, as Studio's run_unit_test), `run <module|task>` (states, outputs, failed-task logs). Deploying a version to `main` stays in Studio. The `bw-workblock` skill for coding agents ships beside the CLI in `wb-cli/skills/`.
|
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ Base dir/
|
|
|
65
65
|
|
|
66
66
|
In addition to the VS Code extension, this package provides a command-line interface (CLI) for working with Beyond Work workblocks. In the monorepo it is `bin/wb-cli`; elsewhere install it as `@beyondwork/wb-cli`.
|
|
67
67
|
|
|
68
|
-
Its main use is letting a coding agent (Claude Code, Codex) author a tenant's workblock as local files: see [wb-cli/README.md](./wb-cli/README.md) for the three commands a user needs, and the `bw-workblock` skill in [wb-cli/skills/bw-workblock/SKILL.md](./wb-cli/skills/bw-workblock/SKILL.md) for what the agent does.
|
|
68
|
+
Its main use is letting a coding agent (Claude Code, Codex) author a tenant's workblock as local files. To set this up from npm, follow **Tools > Claude Code and Codex** in your tenant's docs: select **Docs** in the app, or open `https://<tenant>/docs`. In the monorepo, see [wb-cli/README.md](./wb-cli/README.md) for the three commands a user needs, and the `bw-workblock` skill in [wb-cli/skills/bw-workblock/SKILL.md](./wb-cli/skills/bw-workblock/SKILL.md) for what the agent does.
|
|
69
69
|
|
|
70
70
|
### Assemble a workblock from a directory
|
|
71
71
|
|