@christang/keel 5.164.0 → 5.165.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 +12 -9
- package/src/core/shift.js +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.165.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.165.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.165.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.165.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.165.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.165.0"
|
|
53
|
+
PROTOCOL_VERSION = "5.165.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
|
|
@@ -8241,8 +8241,8 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8241
8241
|
retires it (stop, rename by resuming it with `/rename`, stop) and starts a
|
|
8242
8242
|
new session in the role's worktree that runs `keel shift resume`. `keel
|
|
8243
8243
|
tick` carries out a queued hand-off too, and the two start one session. A
|
|
8244
|
-
session that is busy, or blocked on a question
|
|
8245
|
-
|
|
8244
|
+
session that is busy, or waiting for input (blocked on a question), is left
|
|
8245
|
+
alone; its job state is not read (#393). `keel shift status` shows the queue, and a
|
|
8246
8246
|
failed start is a patrol risk.
|
|
8247
8247
|
"""
|
|
8248
8248
|
label = "shift-cli-self-shift:"
|
|
@@ -8280,6 +8280,8 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8280
8280
|
row = {"kind": "background", "name": name, "sessionId": OLD, "id": OLD[:8], "pid": os.getpid(), "state": state, "cwd": str(verify)}
|
|
8281
8281
|
if status:
|
|
8282
8282
|
row["status"] = status
|
|
8283
|
+
if status == "waiting":
|
|
8284
|
+
row["waitingFor"] = "input needed"
|
|
8283
8285
|
agents.write_text(json.dumps([row]))
|
|
8284
8286
|
|
|
8285
8287
|
def rows() -> list[dict]:
|
|
@@ -8321,7 +8323,7 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8321
8323
|
report(f"{label} the note does not record the CLI session.")
|
|
8322
8324
|
return 1
|
|
8323
8325
|
|
|
8324
|
-
# A busy session, and one blocked on a question, are left alone.
|
|
8326
|
+
# A busy session, and one blocked on a question (measured: status waiting, state blocked), are left alone.
|
|
8325
8327
|
time.sleep(1.0)
|
|
8326
8328
|
if acted():
|
|
8327
8329
|
report(f"{label} the hand-over acted while the old session was busy: {acted()!r}")
|
|
@@ -8329,14 +8331,15 @@ def validate_shift_cli_self_shift_scenario() -> int:
|
|
|
8329
8331
|
if "pending" not in status_text():
|
|
8330
8332
|
report(f"{label} shift status does not show the pending hand-off: {status_text()!r}")
|
|
8331
8333
|
return 1
|
|
8332
|
-
agents_row("
|
|
8334
|
+
agents_row("waiting", "blocked")
|
|
8333
8335
|
time.sleep(1.0)
|
|
8334
8336
|
if acted():
|
|
8335
|
-
report(f"{label} the hand-over cut off a session blocked on a question (
|
|
8337
|
+
report(f"{label} the hand-over cut off a session blocked on a question (status waiting): {acted()!r}")
|
|
8336
8338
|
return 1
|
|
8337
8339
|
|
|
8338
|
-
# Finished:
|
|
8339
|
-
|
|
8340
|
+
# Finished: idle, though its state still labels its last message `working` (#393, keel-maint's
|
|
8341
|
+
# ended turn). The waiter retires it and starts the next, with no tick.
|
|
8342
|
+
agents_row("idle", "working")
|
|
8340
8343
|
if not wait_for(lambda: len(starts()) >= 1):
|
|
8341
8344
|
report(f"{label} the waiter did not hand over without a tick: {acted()!r}")
|
|
8342
8345
|
return 1
|
package/src/core/shift.js
CHANGED
|
@@ -503,13 +503,13 @@ function handOffs(where) {
|
|
|
503
503
|
|
|
504
504
|
const SHIFT_START_TEXT = (role) => `${role}: your new shift starts now. Run keel context, then keel shift resume.`;
|
|
505
505
|
|
|
506
|
-
// The old session has finished when it is gone,
|
|
507
|
-
//
|
|
508
|
-
//
|
|
506
|
+
// The old session has finished when it is gone, stopped (no status), or idle.
|
|
507
|
+
// `busy` and `waiting` (blocked on a question to the owner, measured) wait, and
|
|
508
|
+
// so does anything unknown. The job `state` labels the last message, not the
|
|
509
|
+
// turn: an ended turn that described pending work stayed `working` (#393).
|
|
509
510
|
function finished(row) {
|
|
510
|
-
if (!row) return true;
|
|
511
|
-
|
|
512
|
-
return !row.state || ["done", "idle", "stopped"].includes(row.state);
|
|
511
|
+
if (!row || !row.status) return true;
|
|
512
|
+
return row.status === "idle";
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
function listAgents(claude) {
|