@haposoft/cafekit 0.16.0-rc.5 → 0.16.0-rc.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.
|
@@ -553,7 +553,7 @@ test('sentinel: a corrupted freeze file surfaces as release-preflight exit 2, ne
|
|
|
553
553
|
// package.json wiring: version preserved, reserved paths excluded (real checkout, read-only)
|
|
554
554
|
// ---------------------------------------------------------------------------
|
|
555
555
|
|
|
556
|
-
test('package.json: version stays valid SemVer
|
|
556
|
+
test('package.json: version stays valid SemVer and the npm lifecycle stays unwired while the boot-window is open', () => {
|
|
557
557
|
const pkg = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8'));
|
|
558
558
|
// R1.6 requires the version field preserved, not pinned to one release literal
|
|
559
559
|
// this task happened to land against -- a hard-coded release string would
|
|
@@ -562,8 +562,16 @@ test('package.json: version stays valid SemVer (release-agnostic) and prepack/pr
|
|
|
562
562
|
// is a valid SemVer string (optional prerelease/build metadata included).
|
|
563
563
|
assert.equal(typeof pkg.version, 'string');
|
|
564
564
|
assert.match(pkg.version, /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/);
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
// R0-01 wired prepack/prepublishOnly to release-preflight.mjs while stating
|
|
566
|
+
// it "does not invoke bootstrapBaseline, create a real freeze, or publish
|
|
567
|
+
// (D11/I9 boot-window)". R1-03 bootstrap-activation, which closes that
|
|
568
|
+
// window, never ran and this feature is paused -- so the wiring made every
|
|
569
|
+
// publish exit 2 on a freeze that nothing was allowed to create. The gate
|
|
570
|
+
// stays runnable on its own (`release:freeze`, and the script invoked
|
|
571
|
+
// directly by the tests above); it just no longer sits on npm's lifecycle.
|
|
572
|
+
// Rewire both when R1-03 lands.
|
|
573
|
+
assert.equal(pkg.scripts.prepack, undefined);
|
|
574
|
+
assert.equal(pkg.scripts.prepublishOnly, undefined);
|
|
567
575
|
assert.equal(pkg.scripts['release:freeze'], 'node scripts/benchmark-workflow.mjs freeze');
|
|
568
576
|
// pre-existing scripts untouched
|
|
569
577
|
assert.equal(pkg.scripts.test, 'node scripts/run-skill-self-tests.mjs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haposoft/cafekit",
|
|
3
|
-
"version": "0.16.0-rc.
|
|
3
|
+
"version": "0.16.0-rc.6",
|
|
4
4
|
"description": "Native spec-driven workflows for Claude Code, Codex CLI, and OpenCode. Bundles CafeKit skills, runtime hooks, agents, and installer scaffolding.",
|
|
5
5
|
"author": "Haposoft <nghialt@haposoft.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"test:package": "node --test bin/__tests__/package-inventory.test.js",
|
|
14
14
|
"test:secrets": "node --test bin/__tests__/secret-scanner.test.js",
|
|
15
15
|
"test:policy": "node --test bin/__tests__/develop-contract.test.js",
|
|
16
|
-
"release:freeze": "node scripts/benchmark-workflow.mjs freeze"
|
|
17
|
-
"prepack": "node scripts/release-preflight.mjs",
|
|
18
|
-
"prepublishOnly": "node scripts/release-preflight.mjs"
|
|
16
|
+
"release:freeze": "node scripts/benchmark-workflow.mjs freeze"
|
|
19
17
|
},
|
|
20
18
|
"files": [
|
|
21
19
|
"bin",
|