@beyondwork/wb-cli 0.1.48 → 0.1.50
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 +10 -0
- package/README.md +37 -0
- package/out/cli.js +3945 -716
- package/out/extension.js +131 -130
- package/out/headless-host.js +2 -2
- package/package.json +3 -3
- package/wb-cli/skills/bw-workblock/SKILL.md +24 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.50
|
|
4
|
+
|
|
5
|
+
- A change file numbered `0000`, such as `data_model/changes/0000_create_supplier.yaml`, is not a valid change file, as on the platform. `push` refuses it with a local data model error and sends nothing. Change file numbers start at `0001`.
|
|
6
|
+
|
|
7
|
+
## v0.1.49
|
|
8
|
+
|
|
9
|
+
- `api` can call every platform WebSocket operation, including permission changes and deployments. The server enforces access; the CLI no longer maintains a refusal list. An operation that a person must confirm, such as `deploy_workblock_version`, a deletion, or a permission change, has a warning at the top of its `--help`. Without `--yes`, the CLI does not send it: it prints the warning as JSON on stderr and exits with code 3. Generated help groups operations by topic and defaults to Studio discovery, with `--all` and `--surface` for the wider API. Operations introduced after the CLI release remain callable, and wb-cli reads their warning from the tenant's `help`.
|
|
10
|
+
- API failures keep the server error code as JSON on stderr. Raw API calls do not update local checkout state.
|
|
11
|
+
- An operation missing from both bundled and tenant help requires confirmation with `--yes`, including when tenant help fails.
|
|
12
|
+
|
|
3
13
|
## v0.1.48
|
|
4
14
|
|
|
5
15
|
- The skill tells agents to read the commit messages, and the patches of the files they touch, before they change or extend a workblock, and to write each push message as Studio does: what the user requested, with each condition's reason and scope, and what the push changed.
|
package/README.md
CHANGED
|
@@ -67,6 +67,43 @@ In addition to the VS Code extension, this package provides a command-line inter
|
|
|
67
67
|
|
|
68
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
|
+
### Platform API
|
|
71
|
+
|
|
72
|
+
`wb-cli api` exposes every registered platform WebSocket operation. Help and schemas are generated
|
|
73
|
+
from the same Go handler definitions as the platform clients: each request entry of the generated
|
|
74
|
+
API schema carries its description, topic, surface and examples. `clone`, `push`, `run` and the other
|
|
75
|
+
commands remain workflows that also manage local checkout state.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
wb-cli api # Studio topics
|
|
79
|
+
wb-cli api --list --group permissions
|
|
80
|
+
wb-cli api --all --search schedule
|
|
81
|
+
wb-cli api permissions_grant --help
|
|
82
|
+
wb-cli api permissions_grant --describe # complete JSON schemas
|
|
83
|
+
wb-cli api <operation> '<json>' --tenant <host>
|
|
84
|
+
cat request.json | wb-cli api <operation> - --tenant <host>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Discovery defaults to Studio. `--surface spaces`, `--surface admin`, and `--all` expose other areas;
|
|
88
|
+
all operations remain callable regardless of the discovery view. Calls use your existing sign-in
|
|
89
|
+
or API token, and the server enforces permissions and caller restrictions. HTTP authentication,
|
|
90
|
+
blob transfers and browser redirects remain separate from the WebSocket API.
|
|
91
|
+
|
|
92
|
+
Help comes from the API schema that this wb-cli was built with. The server validates each request.
|
|
93
|
+
An operation that this wb-cli does not know is still sent; before it sends one, wb-cli reads that
|
|
94
|
+
operation's warning from the tenant's `help`. If that help is unavailable or does not list the
|
|
95
|
+
operation, wb-cli requires `--yes` after a person confirms its effects.
|
|
96
|
+
|
|
97
|
+
Some operations deploy to `main`, publish, merge, delete data, change access, or terminate a
|
|
98
|
+
workflow. Their `--help` starts with a warning. Without `--yes`, the CLI does not send such an
|
|
99
|
+
operation: it prints the warning as JSON on stderr and exits with code 3. Pass `--yes` only after a
|
|
100
|
+
person confirms the warning.
|
|
101
|
+
|
|
102
|
+
Inside a checkout, calls inherit its tenant and its stream when the operation uses one. Override
|
|
103
|
+
them with `--tenant`, `--stream`, or `--no-stream`. Raw calls do not update checkout files or the
|
|
104
|
+
marker. Calls print JSON to stdout; errors preserve the server code in a JSON object on stderr.
|
|
105
|
+
`--timeout` sets the request deadline in seconds.
|
|
106
|
+
|
|
70
107
|
### Assemble a workblock from a directory
|
|
71
108
|
|
|
72
109
|
```bash
|