@bluestep-systems/b6p-cli 1.2.0 → 1.4.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 +39 -0
- package/README.md +11 -2
- package/dist/cli.js +395 -372
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.4.0] — 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **The marketplace repository lifecycle** (b6p-core 1.5.0, ClickUp 1k5g91bqyr2). Needs web-global 26.11.20.02 or later
|
|
15
|
+
on the gateway's side; the routes answer 404 before that.
|
|
16
|
+
- `b6p marketplace get <name>` shows one repository, an empty one just created included (`list` does not show it).
|
|
17
|
+
- `b6p marketplace edit <name> [--description <t>] [--website <url>] [--topic <t>...] [--clear-topics]` changes only
|
|
18
|
+
the options given; `--description ""` and `--website ""` clear those. With no option it is refused.
|
|
19
|
+
- `b6p marketplace archive <name>` and `unarchive <name>`; an archived repository cannot be pushed to, edited or
|
|
20
|
+
renamed, and the error says to unarchive it.
|
|
21
|
+
- `b6p marketplace rename <name> <new-name>` prints the new clone URL and says existing clones keep working through
|
|
22
|
+
a redirect, with the `git remote set-url origin <url>` to update one.
|
|
23
|
+
- `b6p marketplace delete <name>` renames the repository to an archived tombstone (nothing is destroyed) and prints
|
|
24
|
+
its name. It asks you to type the repository name, or takes `--yes`; with no terminal and no `--yes` it refuses.
|
|
25
|
+
- `b6p marketplace tombstones` lists the deleted repositories.
|
|
26
|
+
- `b6p marketplace purge <tombstone>` destroys a tombstone for good. It asks you to type the tombstone name, or
|
|
27
|
+
takes `--confirm-purge` (`--yes` alone never purges, as it never makes a knowledge base public). Needs the
|
|
28
|
+
history-manager grant besides `registry:push` and a fleet super user; the 403 says so.
|
|
29
|
+
- `marketplace list` gains an ARCHIVED column (and `archived` in `--json`).
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Depends on `@bluestep-systems/b6p-core` 1.5.0 (was 1.4.0).
|
|
34
|
+
|
|
35
|
+
## [1.3.0] — 2026-11-20
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- **`b6p marketplace create <name> [--description <t>] [--website <url>] [--topic <t>...]`** (b6p-core 1.4.0, ClickUp
|
|
40
|
+
1k5g91bqxwk) creates an empty, private marketplace repository, or adopts an existing empty one an earlier attempt
|
|
41
|
+
left, and prints its clone URL. Needs `registry:push` and a fleet super user. The repository is not in
|
|
42
|
+
`marketplace list` until its first push; push `main` alone first, then its tags in a second push. Refusals (name in
|
|
43
|
+
use, another change under way, missing scope, not a super user, bad argument, forge unavailable) each say what to do.
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- Depends on `@bluestep-systems/b6p-core` 1.4.0 (was 1.3.0).
|
|
48
|
+
|
|
10
49
|
## [1.2.0] — 2026-11-19
|
|
11
50
|
|
|
12
51
|
### Added
|
package/README.md
CHANGED
|
@@ -180,8 +180,16 @@ is already public is left alone. `--json` prints `{ knowledgeBase, changed }` (`
|
|
|
180
180
|
|
|
181
181
|
| Command | Purpose |
|
|
182
182
|
|---|---|
|
|
183
|
-
| `b6p marketplace list` | List repositories with their default branch and
|
|
183
|
+
| `b6p marketplace list` | List repositories with their default branch, tags and whether they are archived |
|
|
184
|
+
| `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 |
|
|
185
|
+
| `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 |
|
|
184
186
|
| `b6p marketplace pull <name> [dir] [--ref <tag\|branch>]` | Clone a repository into a folder (default `./<name>`), or fast-forward an existing clone |
|
|
187
|
+
| `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 |
|
|
188
|
+
| `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 |
|
|
189
|
+
| `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 |
|
|
190
|
+
| `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 |
|
|
191
|
+
| `b6p marketplace tombstones` | List deleted repositories: tombstone, original name, id, archived. Super users only |
|
|
192
|
+
| `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 |
|
|
185
193
|
|
|
186
194
|
A plain working clone, unrelated to any script. There is no push.
|
|
187
195
|
|
|
@@ -196,7 +204,8 @@ the scopes you need:
|
|
|
196
204
|
| `kb:read` | `kb list`, `kb pull` |
|
|
197
205
|
| `kb:push` | `kb push` |
|
|
198
206
|
| `kb:manage` | `kb create`, and the change in `kb set` (super users) |
|
|
199
|
-
| `registry:read` | `marketplace list`, `marketplace pull` |
|
|
207
|
+
| `registry:read` | `marketplace list`, `marketplace get`, `marketplace pull` |
|
|
208
|
+
| `registry:push` | `marketplace create`, `edit`, `archive`, `unarchive`, `rename`, `delete`, `tombstones`, `purge` (fleet super users; `purge` also needs the history-manager grant) |
|
|
200
209
|
| `tokens:self` | `auth token …` |
|
|
201
210
|
| `kb:rewrite` | rewriting a knowledge base's history (not a `b6p` command); mintable and rotatable here only if the token b6p uses holds it |
|
|
202
211
|
|