@christang/keel 5.127.0 → 5.128.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.
@@ -1,4 +1,4 @@
1
- <!-- keel:start version=5.127.0 -->
1
+ <!-- keel:start version=5.128.0 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the only durable authority — never native memory, goals, or transcripts.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.127.0",
3
+ "version": "5.128.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.127.0",
9
+ "version": "5.128.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fission-ai/openspec": "^1.4.1"
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.127.0",
5
+ "version": "5.128.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.127.0",
3
+ "version": "5.128.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.127.0",
3
+ "version": "5.128.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",
@@ -47,8 +47,8 @@ REQUIRED_SCRIPTS = [
47
47
  "scripts/validate_plugin.py",
48
48
  ]
49
49
 
50
- PACKAGE_VERSION = "5.127.0"
51
- PROTOCOL_VERSION = "5.127.0"
50
+ PACKAGE_VERSION = "5.128.0"
51
+ PROTOCOL_VERSION = "5.128.0"
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
@@ -6811,7 +6811,10 @@ def validate_shift_desktop_wake_scenario() -> int:
6811
6811
  if "Desktop session: local_test-319" not in note.read_text(encoding="utf-8"):
6812
6812
  report(f"{label} the note does not record the desktop session id.")
6813
6813
  return 1
6814
- for needle in ("create_scheduled_task", "send_message", "local_test-319", "set_remote_control", "mcp__ccd_session_mgmt__set_remote_control"):
6814
+ # The clear must not wait for approval, or the wake lands first and the
6815
+ # app refuses the clear (#319 comment 6138487679).
6816
+ for needle in ("create_scheduled_task", "send_message", "local_test-319", "set_remote_control",
6817
+ "mcp__ccd_session_mgmt__set_remote_control", "mcp__ccd_session_mgmt__clear_session", "refuses"):
6815
6818
  if needle not in armed.stdout:
6816
6819
  report(f"{label} the desktop clear hint does not name {needle}: {armed.stdout.strip()}")
6817
6820
  return 1
@@ -6833,7 +6836,7 @@ def validate_shift_desktop_wake_scenario() -> int:
6833
6836
  if "The wake is armed" not in plain.stdout:
6834
6837
  report(f"{label} outside the desktop app the clear hint no longer says the wake is armed: {plain.stdout.strip()}")
6835
6838
  return 1
6836
- for needle in ("send_message", "create_scheduled_task"):
6839
+ for needle in ("send_message", "create_scheduled_task", "mcp__ccd_session_mgmt__clear_session"):
6837
6840
  if needle in plain.stdout:
6838
6841
  report(f"{label} outside the desktop app the clear hint names {needle}: {plain.stdout.strip()}")
6839
6842
  return 1
@@ -6847,7 +6850,7 @@ def validate_shift_desktop_wake_scenario() -> int:
6847
6850
 
6848
6851
  for relative in ("docs/shift-change.md", "docs/shift-change.zh-CN.md"):
6849
6852
  text = (ROOT / relative).read_text(encoding="utf-8")
6850
- for needle in ("send_message", "set_remote_control"):
6853
+ for needle in ("send_message", "set_remote_control", "mcp__ccd_session_mgmt__clear_session"):
6851
6854
  if needle not in text:
6852
6855
  report(f"{label} {relative} does not name {needle} for the desktop app.")
6853
6856
  return 1
package/src/core/shift.js CHANGED
@@ -748,7 +748,8 @@ function clearHint(result) {
748
748
  + "Before you clear, create a one-shot scheduled task with the host's `create_scheduled_task`, firing a few minutes after the clear, "
749
749
  + `whose prompt calls \`send_message\` to session \`${result.desktop}\` with: "${result.role}: your new shift starts now. `
750
750
  + 'First turn Remote Control back on with set_remote_control("self", true), then run `keel context` and `keel shift resume`." '
751
- + "Keel creates no task. Turning Remote Control back on unattended needs `mcp__ccd_session_mgmt__set_remote_control` in `permissions.allow`.";
751
+ + "Keel creates no task. Unattended, this needs two `permissions.allow` entries: `mcp__ccd_session_mgmt__set_remote_control` to turn Remote Control back on, "
752
+ + "and `mcp__ccd_session_mgmt__clear_session`, because a clear left waiting for approval lets the wake arrive first and the app then refuses it.";
752
753
  } else if (result.waiter) {
753
754
  last = `The wake is armed: once ${result.role}'s next session starts (after a clear or a fresh start), it gets one message to run \`keel shift resume\`. The waiter gives up after two hours.`;
754
755
  } else if (result.closed.length) last = "The coordinator's `keel shift start` then wakes the new shift.";