@beyondwork/wb-cli 0.1.35 → 0.1.37

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 CHANGED
@@ -1,8 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.37
4
+
5
+ - `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`.
6
+ - Parallel commands renew a sign-in once. A lock file next to `credentials.json` keeps two commands from using the same refresh token, because the tenant ends a sign-in whose refresh token is used twice.
7
+ - `logout <host>`, an alias of `remove-tenant`, revokes the sign-in on the tenant and removes the tenant from `credentials.json`. If the revocation fails, the command says so and names the page where you can revoke the sign-in.
8
+ - `add-tenant` stays for tenants that no person signs in to, such as a devenv tenant that an agent uses. `tenants` shows whether each tenant has a sign-in or an API token (`credential` in `--json`).
9
+ - The `bw-workblock` skill tells the agent to ask the user to run `login`, and to use `add-tenant` only for tenants that no person signs in to.
10
+
11
+ ## v0.1.36
12
+
13
+ - `run <module>/<task>` calls an invokable task (or an agent's tool task) without a run, with `invoke_workblock_task` at the workspace's commit, as a UI or an API client calls it. The report shows the task's outputs, but no run id and no logs. No run is started, the workspace's active run is not canceled, and no run history is written. This also works on a workspace that has no run yet; before, the command refused there. `--json` sets `invoked_without_run`. A task that is not invokable still runs inside a run. On a workspace with no run, the refusal now says that only an invokable task runs without one.
14
+
3
15
  ## v0.1.35
4
16
 
5
17
  - `clone`, `create` and `pull` exit with code 1 when the tenant does not return the Authoring workblock, so the checkout has no authoring skills. Before, they printed the error and exited with code 0. The checkout is still complete. The message tells you not to run the command again and to run `pull` when the skills are available. `--json` adds `skillsUnavailable` with the full reason.
18
+ - `use <version>` sets which version of the checkout's workblock you run outside a Studio workspace, in Spaces among them. It takes a version name, `features/<name>`, or `main` to go back to the deployed version. It refuses a version that the workblock does not have, because the platform would silently run `main` instead. It notes when the checkout's workspace differs from the version, because a Space runs the published version. `use` without a version prints the one you run. The setting applies only to you.
19
+ - The `bw-workblock` skill tells the agent how to try a version in a Space.
6
20
 
7
21
  ## v0.1.34
8
22