@beyondwork/wb-cli 0.1.37 → 0.1.39
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 +12 -0
- package/out/cli.js +1125 -195
- package/out/extension.js +97 -97
- package/package.json +1 -1
- package/wb-cli/skills/bw-workblock/SKILL.md +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.39
|
|
4
|
+
|
|
5
|
+
- `clone` and `pull` write the data model folder of a Workblock as files: the change files in `data_model/changes/` and the generated `data_model/model.json`. Before, the folder landed inside `manifest.yaml`. `push` sends the folder as it is on disk. When you delete the whole folder while data models are on for the tenant, `push` removes it, and the platform puts back the deployed change files.
|
|
6
|
+
- `push` refuses to send an edited `data_model/model.json` (`model_file_edited`) or an edited deployed change file (`deployed_file_changed`), and a file in `data_model/` that is neither `model.json` nor under `changes/` (`unexpected_file`). Nothing is saved, and your files stay as they are, so you can move the change into a pending change file. A deployed change file is one that is on `main`; wb-cli learns which ones from the tenant at `clone`, `pull` and `push`. Deleting `model.json` or a deployed change file is not refused: the platform writes them again, and `push` writes them back into the checkout.
|
|
7
|
+
- The VS Code extension refuses the same two edits when it saves a Workblock that has a data model, and shows them as errors on the files. Nothing is saved. To learn which change files are deployed, each such save first reads the Workblock of the workspace.
|
|
8
|
+
- After `push`, the checkout holds the `model.json` that the platform generated from your change files.
|
|
9
|
+
- Data model errors print as `<file> [<code>] <path>: <message>`, such as `error: data_model/changes/0001_create_procurement.json [unknown_value] /entities/Supplier/add_properties/country/type: value must be one of ...`.
|
|
10
|
+
|
|
11
|
+
## v0.1.38
|
|
12
|
+
|
|
13
|
+
- wb-cli waits 95 seconds longer for the answer to a request before it reports "Request timed out". A request without a time limit now fails after 125 seconds instead of 30 seconds. A devenv tenant stops its Python and TypeScript runners when nobody used them for more than about 1 hour. The next request that needs a runner can wait up to 90 seconds for a runner to start, before the request's own time limit starts. Before this version, wb-cli stopped waiting after 30 seconds, or 5 seconds after the request's time limit, and reported "Request timed out" while the tenant still ran the request.
|
|
14
|
+
|
|
3
15
|
## v0.1.37
|
|
4
16
|
|
|
5
17
|
- `login <host>` signs you in to a tenant in your browser, and stores the sign-in in `credentials.json` instead of an API token. The sign-in uses OAuth: an authorization code with PKCE, sent back to a loopback address on your machine. wb-cli renews the access token, which expires after 15 minutes, with the stored refresh token. You sign in again when the refresh token expires after 30 days, or after you revoke the sign-in under Settings → Profile → Connected applications. When the browser runs on another machine than wb-cli, paste the address that the browser ended on at the prompt. `--no-browser` prints the sign-in address and does not open a browser. `login` needs a tenant whose platform release has the Beyond Work CLI OAuth client. On an older tenant, store an API token with `add-tenant`.
|