@christang/keel 5.229.2 → 5.229.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.229.2",
3
+ "version": "5.229.3",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
package/README.md CHANGED
@@ -50,8 +50,9 @@ Node.js `>=20.19.0` (the bundled OpenSpec CLI needs it).
50
50
 
51
51
  **Claude Code** — the plugin is the whole install. It is the npm package `@christang/keel` at the
52
52
  release version, the same package the `keel` CLI comes from, so it carries the CLI along with the
53
- skills and hooks, and Claude installs the pinned OpenSpec from its lockfile when it installs the
54
- plugin (#337). The agent's `keel` commands run the copy the plugin brought:
53
+ skills and hooks. Its manifest explicitly pins the tested OpenSpec release named in its lockfile,
54
+ so registry installs and local-tarball updates select the same release (#534). Claude installs
55
+ that dependency with the plugin (#337). The agent's `keel` commands run the copy the plugin brought:
55
56
 
56
57
  ```bash
57
58
  claude plugin marketplace add TanglmChris/keel
package/README.zh-CN.md CHANGED
@@ -40,7 +40,8 @@ Node.js `>=20.19.0`(内置的 OpenSpec CLI 需要)。
40
40
  ## 安装
41
41
 
42
42
  **Claude Code** —— 装插件就够了。插件就是发布版本的 npm 包 `@christang/keel`,和 `keel` CLI 来自同一个包,
43
- 所以技能和 hook 之外还带着 CLI;安装插件时 Claude 会按锁文件装好锁定版本的 OpenSpec(#337)。
43
+ 所以技能和 hook 之外还带着 CLI。包清单也显式固定锁文件中已经测试的 OpenSpec 版本,
44
+ 让 registry 安装和本地 tarball 更新使用同一版本(#534);Claude 会在安装插件时一并安装它(#337)。
44
45
  agent 运行的 `keel` 命令用的就是插件带来的这一份:
45
46
 
46
47
  ```bash
@@ -1,4 +1,4 @@
1
- <!-- keel:start version=5.229.2 -->
1
+ <!-- keel:start version=5.229.3 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the durable authority, and memory or transcripts may only inform.
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.229.2",
3
+ "version": "5.229.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.229.2",
9
+ "version": "5.229.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@fission-ai/openspec": "^1.4.1"
12
+ "@fission-ai/openspec": "1.14.0"
13
13
  },
14
14
  "bin": {
15
15
  "keel": "bin/keel.js"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@christang/keel",
3
3
  "displayName": "Keel",
4
4
  "description": "Keel OpenSpec execution discipline CLI for Claude Code, Codex, and OpenCode.",
5
- "version": "5.229.2",
5
+ "version": "5.229.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "test": "node scripts/run_python.js scripts/validate_plugin.py --all"
29
29
  },
30
30
  "dependencies": {
31
- "@fission-ai/openspec": "^1.4.1"
31
+ "@fission-ai/openspec": "1.14.0"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=20.19.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.229.2",
3
+ "version": "5.229.3",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.229.2",
3
+ "version": "5.229.3",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
@@ -152,12 +152,13 @@ function prependChangelogEntry(newVersion) {
152
152
  if (!content.startsWith(CHANGELOG_HEADER)) {
153
153
  fail("keel/CHANGELOG.md does not start with the expected header");
154
154
  }
155
+ const openspecPin = JSON.parse(fs.readFileSync(PKG_PATH, "utf8")).dependencies["@fission-ai/openspec"];
155
156
  const entry =
156
157
  `## ${newVersion} - TODO: summarize this release\n\n` +
157
158
  "- TODO: describe the change.\n" +
158
159
  "- Version alignment: the npm package, both native plugin manifests, " +
159
160
  `protocol docs, and this changelog share Keel ${newVersion}; the OpenSpec ` +
160
- "dependency pin stays `^1.4.1`.\n\n";
161
+ `dependency pin stays \`${openspecPin}\`.\n\n`;
161
162
  content = CHANGELOG_HEADER + entry + content.slice(CHANGELOG_HEADER.length);
162
163
  fs.writeFileSync(CHANGELOG_PATH, content);
163
164
  process.stdout.write(" updated keel/CHANGELOG.md (fill in the TODO lines)\n");
@@ -158,11 +158,12 @@ def validate_npm_package(errors: list[str]) -> None:
158
158
  )
159
159
 
160
160
  dependencies = package.get("dependencies")
161
+ locked_openspec = json.loads((ROOT / "npm-shrinkwrap.json").read_text(encoding="utf-8"))["packages"]["node_modules/@fission-ai/openspec"]["version"]
161
162
  if (
162
163
  not isinstance(dependencies, dict)
163
- or dependencies.get("@fission-ai/openspec") != "^1.4.1"
164
+ or dependencies.get("@fission-ai/openspec") != locked_openspec
164
165
  ):
165
- errors.append("package.json must depend on @fission-ai/openspec ^1.4.1")
166
+ errors.append("package.json must pin @fission-ai/openspec to the exact shrinkwrap version")
166
167
 
167
168
  files = package.get("files")
168
169
  if not isinstance(files, list):
@@ -35,10 +35,10 @@ os.environ["KEEL_UPDATE_CLAUDE"] = str(Path(tempfile.gettempdir()) / "keel-suite
35
35
  os.environ["KEEL_UPDATE_CODEX"] = str(Path(tempfile.gettempdir()) / "keel-suite-has-no-codex")
36
36
 
37
37
 
38
- PACKAGE_VERSION = "5.229.2"
38
+ PACKAGE_VERSION = "5.229.3"
39
39
 
40
40
 
41
- PROTOCOL_VERSION = "5.229.2"
41
+ PROTOCOL_VERSION = "5.229.3"
42
42
 
43
43
 
44
44
  LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
@@ -204,9 +204,9 @@ def validate_version_alignment_scenario() -> int:
204
204
  dependencies = package.get("dependencies")
205
205
  if (
206
206
  not isinstance(dependencies, dict)
207
- or dependencies.get("@fission-ai/openspec") != "^1.4.1"
207
+ or dependencies.get("@fission-ai/openspec") != shrinkwrap_openspec_version()
208
208
  ):
209
- report("version-alignment scenario dependency versions changed.")
209
+ report("version-alignment scenario OpenSpec declaration differs from its exact lock.")
210
210
  return 1
211
211
 
212
212
  version_result = run_keel(ROOT, "--version")
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ // Native release acceptance (#534). Registry and local-tarball installs do not
5
+ // treat nested shrinkwrap metadata identically on npm 11. Keep this networked
6
+ // test separate from the ordinary scenario suite, and run it in Full-gate CI.
7
+ const fs = require('node:fs');
8
+ const path = require('node:path');
9
+ const os = require('node:os');
10
+ const assert = require('node:assert/strict');
11
+ const {spawnSync} = require('node:child_process');
12
+ const root = path.resolve(__dirname, '..');
13
+ const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
14
+ const expected = JSON.parse(fs.readFileSync(path.join(root, 'npm-shrinkwrap.json'), 'utf8'))
15
+ .packages['node_modules/@fission-ai/openspec'].version;
16
+ const temp = fs.mkdtempSync(path.join(os.tmpdir(), 'keel-installed-openspec-'));
17
+
18
+ function run(command, args, env = process.env, cwd = root, allowFailure = false) {
19
+ const result = spawnSync(command, args, {
20
+ env, cwd, encoding: 'utf8', timeout: 180000,
21
+ shell: process.platform === 'win32' && command === npm,
22
+ });
23
+ if (!allowFailure && (result.error || result.status !== 0)) {
24
+ throw Error(`${path.basename(command)} ${args[0]} failed: ${result.error?.message || result.stderr || result.stdout}`);
25
+ }
26
+ return result;
27
+ }
28
+
29
+ try {
30
+ const project = path.join(temp, 'project');
31
+ fs.mkdirSync(path.join(project, 'openspec'), {recursive: true});
32
+ fs.cpSync(path.join(root, 'openspec', 'specs'), path.join(project, 'openspec', 'specs'), {recursive: true});
33
+ const packed = JSON.parse(run(npm, ['pack', root, '--pack-destination', temp, '--json']).stdout)[0];
34
+ const tarball = path.join(temp, packed.filename);
35
+ console.log(`installed-openspec: node ${process.version}; npm ${run(npm, ['--version']).stdout.trim()}; expected ${expected}`);
36
+ for (const kind of ['clean-tarball', 'updater']) {
37
+ const env = {
38
+ ...process.env,
39
+ npm_config_prefix: path.join(temp, kind),
40
+ KEEL_UPDATE_CLAUDE: path.join(temp, 'absent-claude'),
41
+ KEEL_UPDATE_CODEX: path.join(temp, 'absent-codex'),
42
+ };
43
+ // This immutable old release has the broad range that exposed #534. Only
44
+ // this disposable prefix is upgraded; host plugin commands stay absent.
45
+ run(npm, ['install', '-g', kind === 'updater' ? '@christang/keel@5.229.2' : tarball], env);
46
+ if (kind === 'updater') {
47
+ run(process.execPath, [path.join(root, 'bin', 'keel.js'), '--update', '--source', tarball], env, project);
48
+ }
49
+ const globalRoot = run(npm, ['root', '-g'], env).stdout.trim();
50
+ const cli = path.join(globalRoot, '@christang', 'keel', 'bin', 'keel.js');
51
+ const version = run(process.execPath, [cli, 'openspec', '--version'], env, project).stdout.trim();
52
+ const strict = run(process.execPath, [cli, 'openspec', 'validate', '--specs', '--strict'], env, project, true);
53
+ console.log(JSON.stringify({case: kind, version, expected, strictExit: strict.status,
54
+ totals: (strict.stdout + strict.stderr).split('\n').filter(line => line.includes('Totals:'))}));
55
+ assert.equal(version, expected, `installed OpenSpec ${version} differs from locked ${expected}`);
56
+ assert.equal(strict.status, 0, `installed strict validation failed: ${(strict.stdout + strict.stderr).slice(-1200)}`);
57
+ }
58
+ console.log('installed-openspec: clean tarball and updater acceptance passed');
59
+ } catch (error) {
60
+ console.error(`installed-openspec: ${error.message}`);
61
+ process.exitCode = 1;
62
+ } finally {
63
+ fs.rmSync(temp, {recursive: true, force: true});
64
+ }