@bluestep-systems/b6p-cli 1.0.0 → 1.1.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 +9 -0
- package/README.md +10 -0
- package/dist/cli.js +257 -213
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to `@bluestep-systems/b6p-cli` will be documented in this fi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.0] — 2026-11-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`b6p kb create <name>` and `b6p kb set <name>`** register a global knowledge base and change its title, live
|
|
13
|
+
branch or access (`public` or `private`), in one request each. Needs `kb:manage` to write (`kb set` reads with `kb:read`) and b6p-core 1.2.0. Making a knowledge
|
|
14
|
+
base public asks first, naming it and warning that every commit reachable from the live branch, files since
|
|
15
|
+
deleted included, becomes publicly readable (Cancel is the default); `--confirm-public` goes ahead, and the global `--yes` alone never makes it public. ClickUp 1k5g91bqhx6.
|
|
16
|
+
|
|
8
17
|
## [1.0.0] — 2026-11-17
|
|
9
18
|
|
|
10
19
|
### Fixed
|
package/README.md
CHANGED
|
@@ -137,11 +137,20 @@ A new token can never outlive the token that creates it: an explicit `--expires`
|
|
|
137
137
|
| `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) |
|
|
138
138
|
| `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 |
|
|
139
139
|
| `b6p kb push [dir]` | Push a clone (default: the current folder, or the clone that contains it) to the knowledge base's live branch |
|
|
140
|
+
| `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 |
|
|
141
|
+
| `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 |
|
|
140
142
|
|
|
141
143
|
`<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
|
|
142
144
|
overwrite local changes (the dirty paths are listed) and pushes are fast-forward only: if the knowledge
|
|
143
145
|
base moved on, pull first. Pushing needs push rights on that knowledge base as well as the `kb:push` scope.
|
|
144
146
|
|
|
147
|
+
`kb create` and `kb set` are for super users and need the `kb:manage` scope to write (`kb set` reads the knowledge base first, which needs `kb:read`, to find
|
|
148
|
+
the knowledge base). `--access public` lets anyone on the internet read the knowledge base with no sign-in, and that covers every commit reachable from the live branch, files since deleted included, so b6p asks
|
|
149
|
+
first, naming the knowledge base (Cancel is the default). `--confirm-public` goes ahead without asking, and says so; the global `--yes`
|
|
150
|
+
alone never makes a knowledge base public (it refuses). A knowledge base that
|
|
151
|
+
is already public is left alone. `--json` prints `{ knowledgeBase, changed }` (`kb set`) or `{ knowledgeBase }`
|
|
152
|
+
(`kb create`). Only global knowledge bases can be created or changed; a tenant's cannot.
|
|
153
|
+
|
|
145
154
|
### `b6p marketplace` — marketplace repositories
|
|
146
155
|
|
|
147
156
|
| Command | Purpose |
|
|
@@ -161,6 +170,7 @@ the scopes you need:
|
|
|
161
170
|
|---|---|
|
|
162
171
|
| `kb:read` | `kb list`, `kb pull` |
|
|
163
172
|
| `kb:push` | `kb push` |
|
|
173
|
+
| `kb:manage` | `kb create`, and the change in `kb set` (super users) |
|
|
164
174
|
| `registry:read` | `marketplace list`, `marketplace pull` |
|
|
165
175
|
| `tokens:self` | `auth token …` |
|
|
166
176
|
| `kb:rewrite` | rewriting a knowledge base's history (not a `b6p` command); mintable and rotatable here only if the token b6p uses holds it |
|