@beyondwork/wb-cli 0.1.33 → 0.1.35
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 +9 -0
- package/out/cli.js +921 -235
- package/out/extension.js +93 -93
- package/package.json +1 -1
- package/wb-cli/skills/bw-workblock/SKILL.md +18 -5
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publisher": "beyondwork",
|
|
4
4
|
"displayName": "Beyond Work",
|
|
5
5
|
"description": "Tool for interacting with Beyond Work workblocks from VS Code and CLI.",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.35",
|
|
7
7
|
"vsce": {
|
|
8
8
|
"baseContentUrl": "https://github.com/bwllaming/code/blob/HEAD/src/vscode/beyondwork",
|
|
9
9
|
"baseImagesUrl": "https://github.com/bwllaming/code/raw/HEAD/src/vscode/beyondwork"
|
|
@@ -15,11 +15,12 @@ done from Studio.
|
|
|
15
15
|
|
|
16
16
|
## The loop
|
|
17
17
|
|
|
18
|
-
1. **Get the files.** `wb-cli clone <
|
|
19
|
-
"<name>" <dir>` for a new workblock. The checkout is a
|
|
20
|
-
HEAD is the server's state after the last clone, pull or
|
|
21
|
-
unpushed edits, new files included, and `git diff HEAD` shows
|
|
22
|
-
already had. `.bw/workblock.json` binds it to the platform; do
|
|
18
|
+
1. **Get the files.** Resume an existing workspace with `wb-cli clone <workspace-url> <dir>`.
|
|
19
|
+
Use `wb-cli create <tenant-host> "<name>" <dir>` only for a new workblock. The checkout is a
|
|
20
|
+
git repository that wb-cli commits to: HEAD is the server's state after the last clone, pull or
|
|
21
|
+
push, so `git status` lists your unpushed edits, new files included, and `git diff HEAD` shows
|
|
22
|
+
the edits to files the server already had. `.bw/workblock.json` binds it to the platform; do
|
|
23
|
+
not edit it.
|
|
23
24
|
2. **Read before writing.** `AGENTS.md`, then the `.skills/` entries for the area you touch, then
|
|
24
25
|
`.docs/docs.md` for each platform API you call. The platform changes faster than your memory of
|
|
25
26
|
it, and validation catches only part of what the docs would have told you.
|
|
@@ -67,6 +68,18 @@ own `features/<name>@stream/<workspace-id>`. To continue work someone left in a
|
|
|
67
68
|
workspace URL (`wb-cli branches <studio-url>` lists them); cloning `features/<name>` gives only
|
|
68
69
|
the published state. When the CLI refuses a push or a pull (exit 3), its message names the remedy.
|
|
69
70
|
|
|
71
|
+
- **Stale snapshot.** Run `wb-cli pull` before you retry the push. It puts unpushed edits back on
|
|
72
|
+
top. Resolve any local conflict markers, then validate and push again.
|
|
73
|
+
- **Existing workspace.** Push resumes an accessible workspace on the same branch, including a
|
|
74
|
+
concurrent creation. If it cannot resume safely, run `wb-cli branches <studio-url>` and clone
|
|
75
|
+
the matching workspace URL. Preserve local edits before switching checkouts.
|
|
76
|
+
- **Local merge conflict.** Nothing was saved. Resolve the conflict markers in the named local
|
|
77
|
+
files, then validate and push again.
|
|
78
|
+
- **Publishing merge conflict.** The workspace save succeeded, but the version was not published.
|
|
79
|
+
Resolve the named files in Studio, or clone the version into another directory and reapply the
|
|
80
|
+
edit there. Other failures during `push --update` do not necessarily mean the save succeeded;
|
|
81
|
+
use the command's reported outcome.
|
|
82
|
+
|
|
70
83
|
## Other platform requests
|
|
71
84
|
|
|
72
85
|
`wb-cli api <verb> '<json>'` sends one request of the platform's WebSocket API as your user, for
|