@bluestep-systems/b6p-cli 1.4.0 → 1.6.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 +30 -0
- package/README.md +6 -5
- package/dist/cli.js +340 -334
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.6.0] — 2026-12-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Internal knowledge-base access** (b6p-core 1.7.0). `b6p kb create` and `b6p kb set` take `--access fleet-supers`
|
|
15
|
+
(BlueStep staff, the fleet supers, only) and `--access supers` (BlueStep staff and reseller supers), besides
|
|
16
|
+
`public` and `private`; the value is matched exactly, in lower case. They need no extra confirmation. The gateway
|
|
17
|
+
accepts them only at create and refuses a change to one on an existing knowledge base; b6p shows that refusal as it
|
|
18
|
+
is. `kb create` and `kb set` print the new kinds by name, and an access this version does not know prints as
|
|
19
|
+
`unknown`. Do not set these kinds until the gateway in that environment enforces them.
|
|
20
|
+
- A refused access leads with the server's own message and adds a conditional hint to update the gateway. A 503 from
|
|
21
|
+
web-global on an access change says it is not known whether the change was made, and how to check.
|
|
22
|
+
|
|
23
|
+
## [1.5.0] — 2026-12-04
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **Refreshable tokens** (b6p-core 1.6.0, ClickUp CU-1k5g91btqvt; needs web-global contract 6.24.0 on the gateway's side).
|
|
28
|
+
`b6p auth token rotate --tokenid <alias|id> --days <1-365>` gives a refreshable token's new secret an
|
|
29
|
+
expiry that many days from now; without `--days` the expiry is kept, as before. The rotation stays idempotent: a
|
|
30
|
+
lost answer is retried once under the same Idempotency-Key and the same expiry. `b6p auth token refreshable
|
|
31
|
+
<on|off> --tokenid <alias|id>` turns the flag on or off (a `tokens:self` token may do both), and
|
|
32
|
+
`b6p auth token create --refreshable` mints a token refreshable. Making a token refreshable asks first (Cancel is
|
|
33
|
+
the default), since it can then be kept alive indefinitely; `--yes` goes ahead with a warning, and a token that is
|
|
34
|
+
already refreshable is not asked about. `b6p auth token list`
|
|
35
|
+
gains a `REFRESHABLE` column, and `refreshable` appears in `list`, `create` and `rotate`'s `--json`. A
|
|
36
|
+
`--days` for a token that is not refreshable, an expired token, an expiry past the gateway's 365-day cap, turning
|
|
37
|
+
it on through a token that lacks some of the target's scopes, and a gateway that predates refreshable tokens each
|
|
38
|
+
fail with their own way out.
|
|
39
|
+
|
|
10
40
|
## [1.4.0] — 2026-11-20
|
|
11
41
|
|
|
12
42
|
### 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
|
|
@@ -162,8 +163,8 @@ A new token can never outlive the token that creates it: an explicit `--expires`
|
|
|
162
163
|
| `b6p kb list [--scope global\|tenant] [--tenant U…]` | List the knowledge bases you may read, whether you may push, and each one's STATUS (`ok`, `branch-mismatch`, `repo-only`, `row-only`, `unconfirmed`, `undescribed`; a note under the table explains each one present) |
|
|
163
164
|
| `b6p kb pull <ref> [dir]` | Clone a knowledge base into a folder (default `./<name>`, or `./<tenant>-<name>` for a tenant's), or fast-forward an existing clone |
|
|
164
165
|
| `b6p kb push [dir]` | Push a clone (default: the current folder, or the clone that contains it) to the knowledge base's live branch |
|
|
165
|
-
| `b6p kb create <name> [--title <t>] [--live-branch <b>] [--access public\|private] [--confirm-public]` | Register a global knowledge base (and its repository). Defaults: title = name, branch `main`, private |
|
|
166
|
-
| `b6p kb set <name> [--title <t>] [--live-branch <b>] [--access public\|private] [--confirm-public]` | Change a global knowledge base's title, live branch or access, in one request; at least one option is required |
|
|
166
|
+
| `b6p kb create <name> [--title <t>] [--live-branch <b>] [--access public\|private\|fleet-supers\|supers] [--confirm-public]` | Register a global knowledge base (and its repository). Defaults: title = name, branch `main`, private. `fleet-supers` is for BlueStep staff (fleet supers) only; `supers` is for BlueStep staff and reseller supers |
|
|
167
|
+
| `b6p kb set <name> [--title <t>] [--live-branch <b>] [--access public\|private\|fleet-supers\|supers] [--confirm-public]` | Change a global knowledge base's title, live branch or access, in one request; at least one option is required |
|
|
167
168
|
|
|
168
169
|
`<ref>` is `<name>` for a global knowledge base or `U<number>/<name>` for a tenant's; names and the tenant match in any letter case, and the local folder uses the canonical name. Pulls never
|
|
169
170
|
overwrite local changes (the dirty paths are listed) and pushes are fast-forward only: if the knowledge
|
|
@@ -174,7 +175,7 @@ the knowledge base). `--access public` lets anyone on the internet read the know
|
|
|
174
175
|
first, naming the knowledge base (Cancel is the default). `--confirm-public` goes ahead without asking, and says so; the global `--yes`
|
|
175
176
|
alone never makes a knowledge base public (it refuses). A knowledge base that
|
|
176
177
|
is already public is left alone. `--json` prints `{ knowledgeBase, changed }` (`kb set`) or `{ knowledgeBase }`
|
|
177
|
-
(`kb create`). Only global knowledge bases can be created or changed; a tenant's cannot.
|
|
178
|
+
(`kb create`). `--access` is matched exactly, in lower case. `fleet-supers` and `supers` narrow access, so they need no confirmation, but the gateway accepts them only when the knowledge base is created and refuses a change to one on an existing knowledge base; b6p shows the gateway's refusal as it is. Do not set them until the gateway in that environment enforces them: an older gateway refuses them (b6p shows its message, then a hint to update the gateway) or may not enforce them. Only global knowledge bases can be created or changed; a tenant's cannot.
|
|
178
179
|
|
|
179
180
|
### `b6p marketplace` — marketplace repositories
|
|
180
181
|
|