@beyondwork/wb-cli 0.1.46 → 0.1.48

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/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.46",
6
+ "version": "0.1.48",
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"
@@ -55,7 +55,12 @@ so that the user can deploy it from Studio.
55
55
  browser checks can publish to it. `.bw/workblock.json` binds the checkout to the platform; do not edit it.
56
56
  2. **Read before writing.** `AGENTS.md`, then the `.skills/` entries for the area you touch, then
57
57
  `.docs/docs.md` for each platform API you call. The platform changes faster than your memory of
58
- it, and validation catches only part of what the docs would have told you.
58
+ it, and validation catches only part of what the docs would have told you. The code shows what
59
+ the workblock does; its history shows what users asked for and why. Before you change or extend
60
+ a workblock that has history, read its commit messages with `git log`, and the patches of the
61
+ files you touch with `git log -p -- <path>`. Skip this only for a request that gives the exact
62
+ new text or styling. A condition from an earlier request stays in effect until a request changes
63
+ it, also in new tasks and as the default of a value that you make configurable.
59
64
  3. **Design the experience** of every new workblock and module before you write code: read
60
65
  `.skills/workblock-architecture`, choose the pattern, and decide who starts each module and what a
61
66
  person sees at the start, during input, while it runs and at the result. A module that a person
@@ -72,8 +77,11 @@ so that the user can deploy it from Studio.
72
77
  fixes to nearby tasks, no tidying of files you did not need to touch, and no tasks beyond the
73
78
  request and the experience of step 3.
74
79
  5. **Validate** with `wb-cli validate` until it reports no errors. Warnings are advisory.
75
- 6. **Push** with `wb-cli push -m "<what changed>" -m "<why>"`. Each push saves one commit, and other
76
- agents and people read its message with `wb-cli log` and in Studio.
80
+ 6. **Push** with `wb-cli push -m "<title: what the user wanted>" -m "Requested: <the user's goal>"
81
+ -m "- <each condition the user stated, with the user's reason and scope>" -m "Changed: <what the
82
+ push does for each condition>"`. Each push saves one commit, and later agents learn the user's
83
+ intent from its message, in `git log`, `wb-cli log` and Studio. Studio's own messages use the
84
+ same shape.
77
85
  7. **Prove it.** `wb-cli test` and `wb-cli run` check only what you pushed, and print the commit they
78
86
  ran on. Run `wb-cli test [<module>]` when the module has tests, then `wb-cli run <module>`, or
79
87
  `wb-cli run <module>/<task> --inputs '{...}'`, for what you changed. Since wb-cli 0.1.36, `wb-cli
@@ -239,6 +247,12 @@ still lacks access.
239
247
  what has no verb of its own: schedules, triggers, permissions, spaces, run data, the LLM calls of a
240
248
  run. `wb-cli api --list <word>` finds the verb; `wb-cli api <verb> --describe` shows its arguments.
241
249
 
250
+ `wb-cli query "<sql>"` reads the rows of the data model's entities in the development data
251
+ environment, at most 1,000 rows; `--env <name>` reads another environment. `--param name=value`
252
+ gives `@name` its value, so you can try the SQL of a query before you save it in a query file.
253
+ `wb-cli query --named Task.find_open --param status=open` runs a named query of the checkout's
254
+ branch as last pushed.
255
+
242
256
  ## Row store
243
257
 
244
258
  Workblock-scoped rows are shared by `main`, every branch and every workspace of the workblock, so a