cannbot-preflight 2.0.5 → 2.0.6
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/README.md +3 -5
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ End-user documentation — install, login, sessions, groups, commands, shortcuts
|
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
|
-
Pre-release account test (package `cannbot-preflight`, version from the root manifest;
|
|
16
|
+
Pre-release account test (package `cannbot-preflight`, version from the root manifest; the installed command is still `cannbot`):
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npm install -g cannbot-preflight
|
|
@@ -40,7 +40,7 @@ The npm package ships standalone executables per platform. Supported platforms:
|
|
|
40
40
|
| macOS x64 (AVX2 baseline) | `darwin-x64-baseline` |
|
|
41
41
|
| macOS arm64 | `darwin-arm64` |
|
|
42
42
|
|
|
43
|
-
The 12 suffixes map one-to-one to the built-in cannbot-cli variants. Platform sub-packages are scoped and configured in the root manifest: `cannbot.platformScope` is `@cannbot-release` and `cannbot.platformPrefix` is `preflight` during the account test, so the
|
|
43
|
+
The 12 suffixes map one-to-one to the built-in cannbot-cli variants. Platform sub-packages are scoped and configured in the root manifest: `cannbot.platformScope` is `@cannbot-release` and `cannbot.platformPrefix` is `preflight` during the account test, so the platform package for each variant is `@cannbot-release/preflight-<suffix>`. After promotion the prefix is removed and the platform package becomes `@cannbot-release/<suffix>`. Scoped platform names deliberately avoid the unscoped `cannbot-<suffix>` names already taken on npm by another account. The launcher detects AVX2 and musl at startup and picks the matching variant, falling back to the other same-platform variants if the first choice is missing.
|
|
44
44
|
|
|
45
45
|
Notes:
|
|
46
46
|
|
|
@@ -134,7 +134,7 @@ It also bundles **cannbot-cli** from a local `cannbot-cli` checkout. All twelve
|
|
|
134
134
|
|
|
135
135
|
## Maintainer release runbook
|
|
136
136
|
|
|
137
|
-
Releases are published **manually by the maintainer** to <https://registry.npmjs.org/>. The current release is a pre-release account test using `cannbot-preflight` (version from the root manifest)
|
|
137
|
+
Releases are published **manually by the maintainer** to <https://registry.npmjs.org/>. The current release is a pre-release account test using `cannbot-preflight` (version from the root manifest) and the same 13-package flow as an official release. Platform packages are named from the root manifest's `cannbot` block (`platformScope` `@cannbot-release` plus `platformPrefix` `preflight`), so they are `@cannbot-release/preflight-<suffix>`; after the account test the root `name` switches to the official `cannbot` and `cannbot.platformPrefix` is removed, which turns them into `@cannbot-release/<suffix>`, and the same 13-package flow is repeated. AI assistants and other automation must not run a real release — they may only read release files, run checks/tests/builds, and use `--dry-run`.
|
|
138
138
|
|
|
139
139
|
1. Set `version` to the target release version and keep `name` as `cannbot-preflight` plus `cannbot.platformScope`/`cannbot.platformPrefix` for the account test (single source of truth); the official `cannbot` switch is handled by a subsequent change. The script never bumps the version or creates git tags for you. Make sure a local `cannbot-cli` checkout has the twelve prebuilt artifacts under `packages/opencode/dist/`, each with its `package.json` `version` set to the same target release version, and is reachable as `../cannbot-cli` / `../../cannbot-cli`, or pass `--cannbot-cli-dir <dir>`.
|
|
140
140
|
2. `npm login` with an account that holds publish rights for the account-test name / official name.
|
|
@@ -149,8 +149,6 @@ Releases are published **manually by the maintainer** to <https://registry.npmjs
|
|
|
149
149
|
|
|
150
150
|
### Release script options
|
|
151
151
|
|
|
152
|
-
- `--sub-packages <list>` - publish only the main package plus the listed platform sub-packages (comma-separated suffixes such as `windows-x64`, or full derived names). Used for the pre-release account test; omit it for the full 13-package release. The plan summary, confirmation prompt and registry check all describe the partial release.
|
|
153
|
-
|
|
154
152
|
- `--dry-run` — plan, check, build, and pack without uploading or confirming.
|
|
155
153
|
- `--yes` — skip the interactive confirmation. Only for rehearsals or explicitly authorized automation; a real release without a TTY is rejected unless this flag is present.
|
|
156
154
|
- `--no-build` / `--skip-checks` — reuse existing artifacts / skip typecheck and tests (use with care).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cannbot-preflight",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cannbot": "bin/cannbot.js"
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@cannbot-release/preflight-windows-x64": "2.0.
|
|
14
|
-
"@cannbot-release/preflight-windows-x64-baseline": "2.0.
|
|
15
|
-
"@cannbot-release/preflight-windows-arm64": "2.0.
|
|
16
|
-
"@cannbot-release/preflight-linux-x64": "2.0.
|
|
17
|
-
"@cannbot-release/preflight-linux-x64-baseline": "2.0.
|
|
18
|
-
"@cannbot-release/preflight-linux-arm64": "2.0.
|
|
19
|
-
"@cannbot-release/preflight-linux-x64-musl": "2.0.
|
|
20
|
-
"@cannbot-release/preflight-linux-x64-baseline-musl": "2.0.
|
|
21
|
-
"@cannbot-release/preflight-linux-arm64-musl": "2.0.
|
|
22
|
-
"@cannbot-release/preflight-darwin-x64": "2.0.
|
|
23
|
-
"@cannbot-release/preflight-darwin-x64-baseline": "2.0.
|
|
24
|
-
"@cannbot-release/preflight-darwin-arm64": "2.0.
|
|
13
|
+
"@cannbot-release/preflight-windows-x64": "2.0.6",
|
|
14
|
+
"@cannbot-release/preflight-windows-x64-baseline": "2.0.6",
|
|
15
|
+
"@cannbot-release/preflight-windows-arm64": "2.0.6",
|
|
16
|
+
"@cannbot-release/preflight-linux-x64": "2.0.6",
|
|
17
|
+
"@cannbot-release/preflight-linux-x64-baseline": "2.0.6",
|
|
18
|
+
"@cannbot-release/preflight-linux-arm64": "2.0.6",
|
|
19
|
+
"@cannbot-release/preflight-linux-x64-musl": "2.0.6",
|
|
20
|
+
"@cannbot-release/preflight-linux-x64-baseline-musl": "2.0.6",
|
|
21
|
+
"@cannbot-release/preflight-linux-arm64-musl": "2.0.6",
|
|
22
|
+
"@cannbot-release/preflight-darwin-x64": "2.0.6",
|
|
23
|
+
"@cannbot-release/preflight-darwin-x64-baseline": "2.0.6",
|
|
24
|
+
"@cannbot-release/preflight-darwin-arm64": "2.0.6"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"registry": "https://registry.npmjs.org/",
|