@christang/keel 5.159.0 → 5.160.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/.claude-plugin/plugin.json +1 -1
- package/assets/bootstrap/AGENTS.md +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/keel/.claude-plugin/plugin.json +1 -1
- package/plugins/keel/.codex-plugin/plugin.json +1 -1
- package/scripts/validate_plugin.py +8 -2
- package/src/core/chat/store.js +13 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.160.0",
|
|
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.160.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.
|
|
9
|
+
"version": "5.160.0",
|
|
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.
|
|
3
|
+
"version": "5.160.0",
|
|
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.
|
|
3
|
+
"version": "5.160.0",
|
|
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",
|
|
@@ -49,8 +49,8 @@ REQUIRED_SCRIPTS = [
|
|
|
49
49
|
"scripts/validate_plugin.py",
|
|
50
50
|
]
|
|
51
51
|
|
|
52
|
-
PACKAGE_VERSION = "5.
|
|
53
|
-
PROTOCOL_VERSION = "5.
|
|
52
|
+
PACKAGE_VERSION = "5.160.0"
|
|
53
|
+
PROTOCOL_VERSION = "5.160.0"
|
|
54
54
|
LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
|
|
55
55
|
OPENSPEC_SCHEMA_NAME = "keel-spec-driven"
|
|
56
56
|
# Mirrors KEEL_PACKAGE_NAME in scripts/install_to_repo.py, one of the two
|
|
@@ -2675,6 +2675,8 @@ def validate_chat_role_rename_scenario() -> int:
|
|
|
2675
2675
|
run_keel(rtl2, "chat", "post", "soc", "first", env=env2)
|
|
2676
2676
|
run_keel(verify2, "chat", "read", env=env2)
|
|
2677
2677
|
run_keel(rtl2, "chat", "group", "add", "soc", "check", env=env2)
|
|
2678
|
+
# kaiwu-ip's order: the new name joined, then the old one was removed.
|
|
2679
|
+
run_keel(rtl2, "chat", "group", "remove", "soc", "verify", env=env2)
|
|
2678
2680
|
run_keel(rtl2, "chat", "post", "soc", "second", env=env2)
|
|
2679
2681
|
run_keel(verify2, "chat", "role", "--set", "check", env=env2)
|
|
2680
2682
|
run_keel(verify2, "chat", "read", env=env2)
|
|
@@ -2682,6 +2684,10 @@ def validate_chat_role_rename_scenario() -> int:
|
|
|
2682
2684
|
if merged.returncode != 0:
|
|
2683
2685
|
report(f"{label} keel chat role --rename was refused onto an existing role: {merged.stdout!r} {merged.stderr!r}")
|
|
2684
2686
|
return 1
|
|
2687
|
+
groups2 = json.loads(run_keel(verify2, "chat", "group", "list", "--json", env=env2).stdout)["groups"]
|
|
2688
|
+
if "check" not in next((g["members"] for g in groups2 if g["name"] == "soc"), []):
|
|
2689
|
+
report(f"{label} the old name's leave after the new one joined removed check from soc: {groups2!r}")
|
|
2690
|
+
return 1
|
|
2685
2691
|
left = json.loads(run_keel(verify2, "chat", "unread", "--json", env=env2).stdout)
|
|
2686
2692
|
if "second" in json.dumps(left):
|
|
2687
2693
|
report(f"{label} check's later cursor was not kept: {left!r}")
|
package/src/core/chat/store.js
CHANGED
|
@@ -218,7 +218,9 @@ function mapRecord(record, renames) {
|
|
|
218
218
|
record.from = map(record.from);
|
|
219
219
|
if (record.assignee) record.assignee = map(record.assignee);
|
|
220
220
|
if (Array.isArray(record.mentions)) record.mentions = [...new Set(record.mentions.map(map))];
|
|
221
|
-
|
|
221
|
+
// A join or leave keeps the name it was written for; `member` is the role
|
|
222
|
+
// it now means, applied once membership is computed (groupState).
|
|
223
|
+
if ((record.kind === "join" || record.kind === "leave") && record.target) record.member = map(record.target);
|
|
222
224
|
if (record.group && isDirect(record.group)) record.direct = [...new Set(directMembers(record.group).map(map))];
|
|
223
225
|
return record;
|
|
224
226
|
}
|
|
@@ -457,7 +459,16 @@ function groupState(records) {
|
|
|
457
459
|
}
|
|
458
460
|
if (record.kind === "archive") archived = true;
|
|
459
461
|
}
|
|
460
|
-
|
|
462
|
+
// Renamed names (#376): membership is computed under the names the records
|
|
463
|
+
// were written for, so an old name's leave after the new name joined does
|
|
464
|
+
// not remove the new one; the result is then read through the renames. A
|
|
465
|
+
// merged role is listen-only only when every name it merges was.
|
|
466
|
+
const meant = new Map(records.filter((r) => r.member).map((r) => [r.target, r.member]));
|
|
467
|
+
if (!meant.size) return { members, listeners, archived, exists: records.length > 0 };
|
|
468
|
+
const as = (name) => meant.get(name) || name;
|
|
469
|
+
const mapped = new Set([...members].map(as));
|
|
470
|
+
const speaking = new Set([...members].filter((name) => !listeners.has(name)).map(as));
|
|
471
|
+
return { members: mapped, listeners: new Set([...mapped].filter((name) => !speaking.has(name))), archived, exists: records.length > 0 };
|
|
461
472
|
}
|
|
462
473
|
|
|
463
474
|
function isDirect(group) {
|