@beyondwork/wb-cli 0.1.48 → 0.1.49
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 +6 -0
- package/README.md +37 -0
- package/out/cli.js +2696 -544
- package/out/extension.js +1 -1
- package/package.json +1 -1
- package/wb-cli/skills/bw-workblock/SKILL.md +24 -10
|
@@ -9,8 +9,13 @@ description: Create or edit a Beyond Work workblock that lives on a tenant, from
|
|
|
9
9
|
files and saves them back to that branch as commits. In the Beyond Work monorepo, call the wrapper by
|
|
10
10
|
its path, `<monorepo>/bin/wb-cli`, wherever this skill says `wb-cli`, and put checkouts outside the
|
|
11
11
|
monorepo. `clone` and `create` write the checkout to the directory you give them. Every other verb
|
|
12
|
-
acts on the checkout that holds the current directory,
|
|
13
|
-
job,
|
|
12
|
+
acts on the checkout that holds the current directory, except `api`, which also accepts `--tenant`.
|
|
13
|
+
The request is the whole job, push and publish included: do not stop to ask. One exception:
|
|
14
|
+
`wb-cli api` refuses an operation that has a warning, such as a deployment to `main`, a deletion,
|
|
15
|
+
or a permission change. It exits with code 3, sends nothing, and prints the warning. Show that
|
|
16
|
+
warning to the user and ask whether to continue. Run the command again with `--yes` only after
|
|
17
|
+
the user agrees. Never pass `--yes` without that answer, even when the request seems to include the
|
|
18
|
+
effect.
|
|
14
19
|
|
|
15
20
|
## Branches and the user's words
|
|
16
21
|
|
|
@@ -40,8 +45,8 @@ branch changes nothing: clone that branch and skip `checkout -b`.
|
|
|
40
45
|
`wb-cli push` saves your work: no other branch changes, and `test` and `run` check what you pushed.
|
|
41
46
|
`wb-cli push --to <target>` publishes your pushed commit to the target: the version branch that the
|
|
42
47
|
request names, such as `integration`, or, when the request names none, your new version branch.
|
|
43
|
-
Report the target
|
|
44
|
-
|
|
48
|
+
Report the target. A deployment to `main` uses Studio or `wb-cli api deploy_workblock_version`;
|
|
49
|
+
follow the confirmation warning above before sending the API request.
|
|
45
50
|
|
|
46
51
|
1. **Get the files.** For a new workblock, `wb-cli create <tenant-host> "<name>" <dir> --new-version
|
|
47
52
|
<name of what you build> -m "<what it is for>"` makes it, on a new version branch with that name.
|
|
@@ -199,13 +204,14 @@ The building blocks:
|
|
|
199
204
|
After `--continue`, validate, test, and run the merged workblock. `wb-cli merge --abort` gives up.
|
|
200
205
|
- **Studio conversations.** Work that a person did not publish is on a conversation. Take it in with
|
|
201
206
|
`wb-cli merge features/<name>@stream/<id> -m "<what you took in>"`. Never push to it.
|
|
202
|
-
- **Version branches you made.** Delete abandoned ones from Studio, where they are versions
|
|
203
|
-
|
|
207
|
+
- **Version branches you made.** Delete abandoned ones from Studio, where they are versions, or
|
|
208
|
+
use `wb-cli api delete_workblock_branch` after the user confirms its warning.
|
|
204
209
|
- **Publishing a snapshot.** `push --to` publishes the checkout's saved commit. Newer changes on
|
|
205
210
|
its source branch or another version branch stay there. To include them, pull your source branch
|
|
206
211
|
or merge the other version branch first.
|
|
207
212
|
- **`main`.** Publish to the target version branch, then report its Studio URL and the checks you ran. The
|
|
208
|
-
user
|
|
213
|
+
user can deploy it from Studio, or confirm `wb-cli api deploy_workblock_version`.
|
|
214
|
+
`wb-cli push --to main` is refused.
|
|
209
215
|
|
|
210
216
|
## Spaces
|
|
211
217
|
|
|
@@ -243,9 +249,17 @@ still lacks access.
|
|
|
243
249
|
|
|
244
250
|
## Other platform requests
|
|
245
251
|
|
|
246
|
-
`wb-cli api <verb> '<json>'`
|
|
247
|
-
|
|
248
|
-
|
|
252
|
+
`wb-cli api <verb> '<json>'` calls any platform WebSocket operation as your user, including
|
|
253
|
+
permissions, schedules, deployments and administration. The server checks your access. Start with
|
|
254
|
+
`wb-cli api` for Studio topics, then `--list --group <topic>` or `--search <words>`. Discovery defaults
|
|
255
|
+
to Studio; add `--all` or `--surface admin` / `--surface spaces` for other areas. These filters do
|
|
256
|
+
not restrict calls. `<verb> --help` shows generated field help and examples; `--describe` returns
|
|
257
|
+
full schemas as JSON.
|
|
258
|
+
|
|
259
|
+
Prefer `push`, `run`, `test` and the other checkout workflows when they fit: raw API calls do not
|
|
260
|
+
update local files or `.bw/workblock.json`. `api` uses the checkout's tenant and, for operations
|
|
261
|
+
that use it, stream. Override these with `--tenant`, `--stream` or `--no-stream`. Body `-` reads
|
|
262
|
+
JSON from stdin.
|
|
249
263
|
|
|
250
264
|
`wb-cli query "<sql>"` reads the rows of the data model's entities in the development data
|
|
251
265
|
environment, at most 1,000 rows; `--env <name>` reads another environment. `--param name=value`
|