@bluestep-systems/b6p-cli 1.3.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 CHANGED
@@ -7,6 +7,48 @@ 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
+
27
+ ## [1.4.0] — 2026-11-20
28
+
29
+ ### Added
30
+
31
+ - **The marketplace repository lifecycle** (b6p-core 1.5.0, ClickUp 1k5g91bqyr2). Needs web-global 26.11.20.02 or later
32
+ on the gateway's side; the routes answer 404 before that.
33
+ - `b6p marketplace get <name>` shows one repository, an empty one just created included (`list` does not show it).
34
+ - `b6p marketplace edit <name> [--description <t>] [--website <url>] [--topic <t>...] [--clear-topics]` changes only
35
+ the options given; `--description ""` and `--website ""` clear those. With no option it is refused.
36
+ - `b6p marketplace archive <name>` and `unarchive <name>`; an archived repository cannot be pushed to, edited or
37
+ renamed, and the error says to unarchive it.
38
+ - `b6p marketplace rename <name> <new-name>` prints the new clone URL and says existing clones keep working through
39
+ a redirect, with the `git remote set-url origin <url>` to update one.
40
+ - `b6p marketplace delete <name>` renames the repository to an archived tombstone (nothing is destroyed) and prints
41
+ its name. It asks you to type the repository name, or takes `--yes`; with no terminal and no `--yes` it refuses.
42
+ - `b6p marketplace tombstones` lists the deleted repositories.
43
+ - `b6p marketplace purge <tombstone>` destroys a tombstone for good. It asks you to type the tombstone name, or
44
+ takes `--confirm-purge` (`--yes` alone never purges, as it never makes a knowledge base public). Needs the
45
+ history-manager grant besides `registry:push` and a fleet super user; the 403 says so.
46
+ - `marketplace list` gains an ARCHIVED column (and `archived` in `--json`).
47
+
48
+ ### Changed
49
+
50
+ - Depends on `@bluestep-systems/b6p-core` 1.5.0 (was 1.4.0).
51
+
10
52
  ## [1.3.0] — 2026-11-20
11
53
 
12
54
  ### 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>` | Replace a token (same alias, scopes and end date); the old one dies at once |
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
@@ -180,9 +181,16 @@ is already public is left alone. `--json` prints `{ knowledgeBase, changed }` (`
180
181
 
181
182
  | Command | Purpose |
182
183
  |---|---|
183
- | `b6p marketplace list` | List repositories with their default branch and tags |
184
+ | `b6p marketplace list` | List repositories with their default branch, tags and whether they are archived |
185
+ | `b6p marketplace get <name>` | Show one repository: description, website, topics, archived, default branch, tags and clone URL. Finds an empty repository just created, which `list` does not |
184
186
  | `b6p marketplace create <name> [--description <t>] [--website <url>] [--topic <t>]...` | Create an empty private repository (or adopt an empty one left by an earlier attempt) and print its clone URL; `--topic` may repeat. Super users only. Push `main` alone first, then its tags |
185
187
  | `b6p marketplace pull <name> [dir] [--ref <tag\|branch>]` | Clone a repository into a folder (default `./<name>`), or fast-forward an existing clone |
188
+ | `b6p marketplace edit <name> [--description <t>] [--website <url>] [--topic <t>]... [--clear-topics]` | Change only the options given (`--topic` replaces the topics; repeat it for several). `--description ""` and `--website ""` clear those; `--clear-topics` clears the topics. With no option it is refused. Super users only; refused while the repository is archived |
189
+ | `b6p marketplace archive <name>` / `unarchive <name>` | Make a repository read-only (clone and fetch work; push, edit and rename are refused) or writable again. Super users only |
190
+ | `b6p marketplace rename <name> <new-name>` | Rename; prints the new clone URL. Clones of the old URL keep working through a redirect; point one at the new URL with `git remote set-url origin <url>`. Super users only; refused while archived |
191
+ | `b6p marketplace delete <name>` | Rename the repository to an archived tombstone `_deleted-<id>-<name>`; nothing is destroyed and the name can be created again. Asks you to type the name, or pass `--yes`. Super users only |
192
+ | `b6p marketplace tombstones` | List deleted repositories: tombstone, original name, id, archived. Super users only |
193
+ | `b6p marketplace purge <tombstone>` | **Irreversible**: destroys a tombstone, its history and tags with it. Asks you to type the tombstone name, or pass `--confirm-purge` (`--yes` alone never purges). Needs `registry:push`, a fleet super user and the history-manager grant |
186
194
 
187
195
  A plain working clone, unrelated to any script. There is no push.
188
196
 
@@ -197,8 +205,8 @@ the scopes you need:
197
205
  | `kb:read` | `kb list`, `kb pull` |
198
206
  | `kb:push` | `kb push` |
199
207
  | `kb:manage` | `kb create`, and the change in `kb set` (super users) |
200
- | `registry:read` | `marketplace list`, `marketplace pull` |
201
- | `registry:push` | `marketplace create` (fleet super users) |
208
+ | `registry:read` | `marketplace list`, `marketplace get`, `marketplace pull` |
209
+ | `registry:push` | `marketplace create`, `edit`, `archive`, `unarchive`, `rename`, `delete`, `tombstones`, `purge` (fleet super users; `purge` also needs the history-manager grant) |
202
210
  | `tokens:self` | `auth token …` |
203
211
  | `kb:rewrite` | rewriting a knowledge base's history (not a `b6p` command); mintable and rotatable here only if the token b6p uses holds it |
204
212