@christang/keel 5.90.0 → 5.90.1
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.90.
|
|
3
|
+
"version": "5.90.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.90.
|
|
9
|
+
"version": "5.90.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fission-ai/openspec": "^1.4.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.90.
|
|
3
|
+
"version": "5.90.1",
|
|
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.90.
|
|
3
|
+
"version": "5.90.1",
|
|
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",
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
// The plugin tree Anthropic's plugin directory lists (#175).
|
|
5
5
|
//
|
|
6
|
+
// It is the npm package less the scripts only development uses, with the
|
|
7
|
+
// manifest renamed and given a homepage, plus an icon.
|
|
8
|
+
//
|
|
6
9
|
// The directory reads `.claude-plugin/plugin.json` from a branch of a GitHub
|
|
7
10
|
// repository and scans every file it finds there. The name `keel` belongs to
|
|
8
11
|
// another directory listing, and the whole repository is more than the
|
|
@@ -23,6 +26,11 @@ const { spawnSync } = require("child_process");
|
|
|
23
26
|
|
|
24
27
|
const ROOT = path.resolve(__dirname, "..");
|
|
25
28
|
const DIRECTORY_NAME = "keel-openspec";
|
|
29
|
+
const HOMEPAGE = "https://github.com/TanglmChris/keel";
|
|
30
|
+
// The scripts the shipped code runs. The rest of `scripts/` is for developing
|
|
31
|
+
// Keel — the test suite, the release helpers, this builder — and only adds
|
|
32
|
+
// files a reviewer must read for a plugin that never runs them.
|
|
33
|
+
const RUNTIME_SCRIPTS = new Set(["run_python.js", "install_to_repo.py"]);
|
|
26
34
|
const ICON = path.join(ROOT, "assets", "directory", "icon.png");
|
|
27
35
|
|
|
28
36
|
function fail(message) {
|
|
@@ -58,10 +66,16 @@ function build(out) {
|
|
|
58
66
|
} finally {
|
|
59
67
|
fs.rmSync(temp, { recursive: true, force: true });
|
|
60
68
|
}
|
|
69
|
+
for (const entry of fs.readdirSync(path.join(target, "scripts"))) {
|
|
70
|
+
if (!RUNTIME_SCRIPTS.has(entry)) {
|
|
71
|
+
fs.rmSync(path.join(target, "scripts", entry), { recursive: true, force: true });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
61
74
|
const manifest = JSON.parse(
|
|
62
75
|
fs.readFileSync(path.join(ROOT, ".claude-plugin", "plugin.json"), "utf8")
|
|
63
76
|
);
|
|
64
77
|
manifest.name = DIRECTORY_NAME;
|
|
78
|
+
manifest.homepage = HOMEPAGE;
|
|
65
79
|
fs.mkdirSync(path.join(target, ".claude-plugin"), { recursive: true });
|
|
66
80
|
fs.writeFileSync(
|
|
67
81
|
path.join(target, ".claude-plugin", "plugin.json"),
|
|
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
|
|
|
47
47
|
"scripts/validate_plugin.py",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
|
-
PACKAGE_VERSION = "5.90.
|
|
51
|
-
PROTOCOL_VERSION = "5.90.
|
|
50
|
+
PACKAGE_VERSION = "5.90.1"
|
|
51
|
+
PROTOCOL_VERSION = "5.90.1"
|
|
52
52
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
53
53
|
OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
|
|
54
54
|
# Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
|
|
@@ -19511,18 +19511,42 @@ def validate_directory_tree_is_the_package_renamed_scenario() -> int:
|
|
|
19511
19511
|
report(f"{label} the build failed: {built.stdout}{built.stderr}")
|
|
19512
19512
|
return 1
|
|
19513
19513
|
files = {p.relative_to(tree).as_posix() for p in tree.rglob("*") if p.is_file()}
|
|
19514
|
-
|
|
19514
|
+
runtime_scripts = {"scripts/run_python.js", "scripts/install_to_repo.py"}
|
|
19515
|
+
expected = {p for p in npm_pack_paths() if not p.startswith("scripts/") or p in runtime_scripts}
|
|
19516
|
+
expected |= {".claude-plugin/plugin.json", ".claude-plugin/icon.png"}
|
|
19515
19517
|
if files != expected:
|
|
19516
|
-
report(f"{label} the tree is not the npm package
|
|
19517
|
-
f"extra={sorted(files - expected)!r} missing={sorted(expected - files)!r}")
|
|
19518
|
+
report(f"{label} the tree is not the npm package less development scripts, plus the "
|
|
19519
|
+
f"manifest and icon: extra={sorted(files - expected)!r} missing={sorted(expected - files)!r}")
|
|
19518
19520
|
return 1
|
|
19519
19521
|
root_manifest = json.loads((ROOT / ".claude-plugin/plugin.json").read_text(encoding="utf-8"))
|
|
19520
19522
|
manifest = json.loads((tree / ".claude-plugin/plugin.json").read_text(encoding="utf-8"))
|
|
19521
19523
|
if manifest.get("name") != "keel-openspec":
|
|
19522
19524
|
report(f"{label} the tree manifest is named {manifest.get('name')!r}, not keel-openspec.")
|
|
19523
19525
|
return 1
|
|
19524
|
-
if
|
|
19525
|
-
report(f"{label} the tree manifest
|
|
19526
|
+
if manifest.get("homepage") != "https://github.com/TanglmChris/keel":
|
|
19527
|
+
report(f"{label} the tree manifest's homepage is {manifest.get('homepage')!r}.")
|
|
19528
|
+
return 1
|
|
19529
|
+
renamed = {k: v for k, v in manifest.items() if k not in ("name", "homepage")}
|
|
19530
|
+
if renamed != {k: v for k, v in root_manifest.items() if k not in ("name", "homepage")}:
|
|
19531
|
+
report(f"{label} the tree manifest differs from the root manifest beyond name and homepage.")
|
|
19532
|
+
return 1
|
|
19533
|
+
version = json.loads((ROOT / "package.json").read_text(encoding="utf-8"))["version"]
|
|
19534
|
+
cli = subprocess.run(["node", str(tree / "bin/keel.js"), "--version"], text=True,
|
|
19535
|
+
capture_output=True, check=False)
|
|
19536
|
+
if cli.returncode != 0:
|
|
19537
|
+
report(f"{label} the tree's CLI does not run: exit={cli.returncode} {cli.stderr}")
|
|
19538
|
+
return 1
|
|
19539
|
+
if version not in cli.stdout:
|
|
19540
|
+
report(f"{label} the tree's CLI reports {cli.stdout.strip()!r}, not {version}.")
|
|
19541
|
+
return 1
|
|
19542
|
+
consumer = Path(raw) / "consumer"
|
|
19543
|
+
consumer.mkdir()
|
|
19544
|
+
subprocess.run(["git", "init", "-q", str(consumer)], check=True)
|
|
19545
|
+
install = subprocess.run(["node", str(tree / "bin/keel.js"), "--install", "--target", "claude",
|
|
19546
|
+
"--dry-run"], cwd=consumer, text=True, capture_output=True, check=False)
|
|
19547
|
+
if install.returncode != 0:
|
|
19548
|
+
report(f"{label} the tree's CLI cannot plan an install: exit={install.returncode} "
|
|
19549
|
+
f"{install.stdout[-400:]}{install.stderr[-400:]}")
|
|
19526
19550
|
return 1
|
|
19527
19551
|
if root_manifest.get("name") != "keel":
|
|
19528
19552
|
report(f"{label} the repository's root manifest no longer names keel: {root_manifest.get('name')!r}")
|