@beyondwork/wb-cli 0.1.28 → 0.1.29

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +6 -14
  3. package/out/cli.js +257 -556
  4. package/out/extension.js +193 -861
  5. package/package.json +15 -11
  6. package/wb-cli/skills/bw-workblock/SKILL.md +67 -0
  7. package/wb-cli/skills/bw-workblock/references/browser-run.sh +95 -0
  8. package/wb-cli/skills/bw-workblock/references/browser-validation.md +44 -0
  9. package/wb-cli/skills/bw-workblock/references/validate-ui.mjs +208 -0
  10. package/out/auth.js +0 -75
  11. package/out/auth.js.map +0 -1
  12. package/out/cli.js.map +0 -1
  13. package/out/client.js +0 -117
  14. package/out/client.js.map +0 -1
  15. package/out/connection_feedback.js +0 -45
  16. package/out/connection_feedback.js.map +0 -1
  17. package/out/extension.js.map +0 -1
  18. package/out/lib/branches.js +0 -138
  19. package/out/lib/branches.js.map +0 -1
  20. package/out/lib/branches.test.js +0 -185
  21. package/out/lib/branches.test.js.map +0 -1
  22. package/out/lib/index.js +0 -29
  23. package/out/lib/index.js.map +0 -1
  24. package/out/lib/logger.js +0 -28
  25. package/out/lib/logger.js.map +0 -1
  26. package/out/lib/workblock.js +0 -470
  27. package/out/lib/workblock.js.map +0 -1
  28. package/out/lib/workblock.test.js +0 -607
  29. package/out/lib/workblock.test.js.map +0 -1
  30. package/out/lib/workspace.js +0 -282
  31. package/out/lib/workspace.js.map +0 -1
  32. package/out/lib/workspace.test.js +0 -666
  33. package/out/lib/workspace.test.js.map +0 -1
  34. package/out/lib/ws-client.test.js +0 -188
  35. package/out/lib/ws-client.test.js.map +0 -1
  36. package/out/tree_data_provider.js +0 -274
  37. package/out/tree_data_provider.js.map +0 -1
  38. package/out/types.js +0 -25
  39. package/out/types.js.map +0 -1
  40. package/out/ws-client.js +0 -466
  41. package/out/ws-client.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.29
4
+
5
+ - Checkout verbs for authoring a tenant's workblock as local files, usable from coding agents: `login` (checks the per-tenant token that you paste into `~/.config/beyondwork/credentials.json`, and adds an empty entry for a new tenant), `clone <studio-url>` (git layout plus `AGENTS.md`, the tenant's authoring skills in `.skills/` and the docs bundle in `.docs/`), `create <tenant> <name>` (a new workblock with a version, a workspace and a placeholder task, checked out the same way), `clone <workspace-url>` (that workspace's branch, bound to it), `branches [studio-url]` (no checkout needed; workspace URLs and unpublished-work hints), `pull` (puts edits that are not pushed back on top, like `git pull --autostash`; the checkout is a git repository whose HEAD is the server's form, so `git diff` shows them), `push` (fenced by the last-read commit; `--new-version` creates a version and a Studio workspace, `--update` publishes to the version), `validate`, `status`, `test [module]` (a module's unit tests, as Studio's run_unit_test), `run <module|task>` (states, outputs, failed-task logs). Deploying a version to `main` stays in Studio. The `bw-workblock` skill for coding agents ships beside the CLI in `wb-cli/skills/`.
6
+
3
7
  ## v0.1.28
4
8
 
5
9
  - Restore `assemble -o <file>` and `submit <directory>` for paths outside the current working directory (absolute paths, `../`). v0.1.27 rejected them with `Invalid output path` / `Invalid path`; that check came from an automated security autofix (#10499) and had no place in a local CLI.
package/README.md CHANGED
@@ -63,24 +63,14 @@ Base dir/
63
63
 
64
64
  ## CLI Tool
65
65
 
66
- In addition to the VS Code extension, this package provides a command-line interface (CLI) for working with Beyond Work workblocks.
66
+ In addition to the VS Code extension, this package provides a command-line interface (CLI) for working with Beyond Work workblocks. In the monorepo it is `bin/wb-cli`; elsewhere install it as `@beyondwork/wb-cli`.
67
67
 
68
- ### Installation as a CLI tool
68
+ Its main use is letting a coding agent (Claude Code, Codex) author a tenant's workblock as local files: 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
- ```bash
71
- npm install -g beyondwork
72
- # or
73
- yarn global add beyondwork
74
- # or
75
- pnpm add -g beyondwork
76
- ```
77
-
78
- ### CLI Usage
79
-
80
- #### Assemble a workblock from a directory
70
+ ### Assemble a workblock from a directory
81
71
 
82
72
  ```bash
83
- beyondwork assemble /path/to/workblock/dir [--output output.json]
73
+ wb-cli assemble /path/to/workblock/dir [--output output.json]
84
74
  ```
85
75
 
86
76
  This command takes a directory containing workblock files and assembles them into a complete workblock JSON object. The structure follows the Beyond Work format:
@@ -95,6 +85,8 @@ Base dir/
95
85
  manifest.yaml
96
86
  ```
97
87
 
88
+ `import`, `export`, `submit`, `publish-changed-workblocks` and `list-changed-workblocks` remain for CI pipelines and one-off transfers; see `wb-cli --help`.
89
+
98
90
  ## Programmatic Usage
99
91
 
100
92
  You can also use the library programmatically: