@bluestep-systems/b6p-cli 1.4.0 → 1.5.0
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 +17 -0
- package/README.md +3 -2
- package/dist/cli.js +339 -334
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.5.0] — 2026-12-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Refreshable tokens** (b6p-core 1.6.0, ClickUp CU-1k5g91btqvt; needs web-global contract 6.24.0 on the gateway's side).
|
|
15
|
+
`b6p auth token rotate --tokenid <alias|id> --days <1-365>` gives a refreshable token's new secret an
|
|
16
|
+
expiry that many days from now; without `--days` the expiry is kept, as before. The rotation stays idempotent: a
|
|
17
|
+
lost answer is retried once under the same Idempotency-Key and the same expiry. `b6p auth token refreshable
|
|
18
|
+
<on|off> --tokenid <alias|id>` turns the flag on or off (a `tokens:self` token may do both), and
|
|
19
|
+
`b6p auth token create --refreshable` mints a token refreshable. Making a token refreshable asks first (Cancel is
|
|
20
|
+
the default), since it can then be kept alive indefinitely; `--yes` goes ahead with a warning, and a token that is
|
|
21
|
+
already refreshable is not asked about. `b6p auth token list`
|
|
22
|
+
gains a `REFRESHABLE` column, and `refreshable` appears in `list`, `create` and `rotate`'s `--json`. A
|
|
23
|
+
`--days` for a token that is not refreshable, an expired token, an expiry past the gateway's 365-day cap, turning
|
|
24
|
+
it on through a token that lacks some of the target's scopes, and a gateway that predates refreshable tokens each
|
|
25
|
+
fail with their own way out.
|
|
26
|
+
|
|
10
27
|
## [1.4.0] — 2026-11-20
|
|
11
28
|
|
|
12
29
|
### Added
|
package/README.md
CHANGED
|
@@ -135,9 +135,10 @@ platform; the verbs beneath it act on that part.
|
|
|
135
135
|
| `b6p auth setup-git --remove` | Take b6p's entries out of your git config |
|
|
136
136
|
| `b6p auth clear` | Clear the stored token |
|
|
137
137
|
| `b6p auth token list` | List your own tokens, expired ones included, marked `(expired)` (the secret is never shown) |
|
|
138
|
-
| `b6p auth token create --alias <a> --scopes <s,…> [--expires <90d\|date\|date-time\|never>]` | Mint a token; the secret is printed once |
|
|
138
|
+
| `b6p auth token create --alias <a> --scopes <s,…> [--expires <90d\|date\|date-time\|never>] [--refreshable]` | Mint a token; the secret is printed once. `--refreshable` mints it refreshable (asks first; `--yes` goes ahead) |
|
|
139
139
|
| `b6p auth token revoke --tokenid <alias\|id>` | Revoke one of your tokens |
|
|
140
|
-
| `b6p auth token rotate --tokenid <alias\|id
|
|
140
|
+
| `b6p auth token rotate --tokenid <alias\|id> [--days <1-365>]` | Replace a token (same alias, scopes and end date); the old one dies at once. `--days` gives a refreshable token a new expiry that many days from now |
|
|
141
|
+
| `b6p auth token refreshable <on\|off> --tokenid <alias\|id>` | Turn a token's refreshable flag on or off (the `REFRESHABLE` column of `list` shows it). Turning it on asks first, since a refreshable token can be kept alive indefinitely; `--yes` goes ahead |
|
|
141
142
|
|
|
142
143
|
`auth token` manages only your **own** tokens and needs the `tokens:self` scope. `create` and `rotate`
|
|
143
144
|
print the new secret **once**, alone on stdout (so `TOKEN=$(b6p auth token create …)` captures it), with
|