@beyondwork/wb-cli 0.1.40 → 0.1.44
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 +33 -0
- package/out/cli.js +1232 -199
- package/out/extension.js +142 -141
- package/out/headless-host.js +20 -20
- package/package.json +6 -7
- package/wb-cli/skills/bw-workblock/SKILL.md +154 -63
- package/wb-cli/skills/bw-workblock/references/browser-validation.md +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.44
|
|
4
|
+
|
|
5
|
+
- Data model change files use YAML: `data_model/changes/NNNN_<name>.yaml`.
|
|
6
|
+
- The generated model is `data_model/model.yaml`. It remains read-only, like deployed change files.
|
|
7
|
+
|
|
8
|
+
## v0.1.43
|
|
9
|
+
|
|
10
|
+
Agents and people can work on separate branches and combine their work without silently replacing concurrent saves.
|
|
11
|
+
|
|
12
|
+
- `checkout -b <name>` creates a version and Studio conversation at the checkout's commit, then moves the checkout onto that conversation. It refuses an existing name and replaces `push --new-version`. Use a separate checkout directory and version for each agent.
|
|
13
|
+
- `push` that saves edits needs a commit message: `-m "<what>" -m "<why>"`, as with `git commit`. Studio and `log [branch]` show the message. `create -m` gives the first commit a message.
|
|
14
|
+
- `merge <branch>` brings `main`, a version, or a Studio conversation into the checkout. A clean merge uses the current source branch; the server refuses to overwrite a concurrent destination save. Conflicts wait under `.bw/merge/files`; `merge --continue` sends the resolved files with both checked branch commits. The server refuses the resolution if either branch changed. `--keep` and `--take` settle a binary, deleted, or renamed file by side. `merge --abort` gives up the pending resolution.
|
|
15
|
+
- `push --to <version>` publishes the checkout's pushed commit only when it contains the target's history. Publication runs server validation on the saved commit and refuses errors. `push --to` refuses data-model changes because this API cannot validate them; `push --update` still validates and publishes them to the checkout's own version. The server changes the target only if its head still matches the one checked. If the target advanced, merge it and retry. Run the relevant checks before publication; publication does not require stored test results.
|
|
16
|
+
- Deployment to `main` and branch deletion stay in Studio. The CLI does not offer these operations until the server can protect them against concurrent changes.
|
|
17
|
+
- `test`, `run` and `ui` refuse unpushed edits, an unfinished merge, or a workspace at a different commit. `test` and `run` name the commit they checked. A single-task `run` refuses `--inputs` that the latest run's tasks produced, because the run would ignore those inputs.
|
|
18
|
+
- New modules, tasks, and tests receive IDs derived from their names, so independent additions with different names do not collide. `manifest.yaml` keeps long lines unfolded.
|
|
19
|
+
- Merge and guarded publication require a server that returns checked branch commits. An older server can still serve other commands; these operations refuse before changing a branch.
|
|
20
|
+
- The `bw-workblock` skill uses git terms: a version is a version branch (`features/<name>`), and a Studio conversation is a conversation branch. It describes merge and publication by their guarantees and leaves the choice of flow to the agent.
|
|
21
|
+
|
|
22
|
+
## v0.1.42
|
|
23
|
+
|
|
24
|
+
- `clone` and `pull` write the query files in `data_model/queries/` and the generated repository files in `data_model/repositories/`. The platform generates a Python and a TypeScript file for each repository from the change files and the query files.
|
|
25
|
+
- `push` sends the query files as they are on disk. A query file is an author file: you can edit it, add it and delete it.
|
|
26
|
+
- `push` refuses an edited or added file in `data_model/repositories/` with `model_file_edited`, as it refuses an edited `model.json`. Nothing is saved, and your files stay as they are. Put the change in a change file or a query file.
|
|
27
|
+
- When the platform no longer generates a repository file, for example because you removed its entity, `pull` and `push` remove the file from the checkout.
|
|
28
|
+
|
|
29
|
+
## v0.1.41
|
|
30
|
+
|
|
31
|
+
- Carry the generated `data_model/types.ts` like `model.json`. `clone` and `pull` write the TypeScript row types and table/query descriptors. The platform generates the file from the change files, next to `model.json`.
|
|
32
|
+
- `push` sends `types.ts` back as it is on disk. `push` refuses an edited `types.ts` with `model_file_edited`, as it refuses an edited `model.json`. Nothing is saved, and your files stay as they are. `push` no longer reports `types.ts` as an `unexpected_file`.
|
|
33
|
+
- When you delete `types.ts`, `push` does not refuse it. The platform writes the file again, and `push` writes it back into the checkout.
|
|
34
|
+
- Carry the generated `data_model/types.py` the same way: the Python row types and table/query descriptors.
|
|
35
|
+
|
|
3
36
|
## v0.1.40
|
|
4
37
|
|
|
5
38
|
- `ui <module|task>` shows a task UI in a headless browser on this machine, so a coding agent can see and use it without the user's browser. A task shows a preview of its UI with the data of `--data <file>`, or with the data that the task showed in the workspace's latest run. Submit in a preview records the data and sends nothing. A UI-only module shows its UI as a Space does. The tenant builds the UI from the workspace's last commit. A preview takes the runtime and the CSP of the task's UI from the latest run; `--runtime`, `--csp` and `--asset` set them. The UI's task calls and collaborative documents go to the tenant on the workspace; `ui` refuses every other request of the page.
|