patchcord 0.5.77 → 0.5.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.77",
3
+ "version": "0.5.78",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -20,5 +20,5 @@ Shell:
20
20
 
21
21
  - `command: patchcord subscribe 5` — polls inbox every **5 seconds**
22
22
  - `timeout: 86400` — runs for **24 hours** (maximum). Always 86400, never anything else.
23
- - One-shot: exits when messages found, triggers Kimi auto-run
23
+ - One-shot: exits with code 2 when messages found, triggering Kimi auto-run
24
24
  - Must re-arm after every `inbox()` or `wait_for_message()` call by running the exact same command again
@@ -95,7 +95,10 @@ while true; do
95
95
  # Write notification file so the agent sees context on wake
96
96
  echo "PATCHCORD: ${COUNT} message(s) waiting" > "$NOTIFY_FILE"
97
97
  echo "PATCHCORD: ${COUNT} message(s) waiting — exiting to trigger auto-run"
98
- exit 0
98
+ # Kimi v1.44.0 background tasks trigger auto-run on exit 2 (BLOCK),
99
+ # same as Stop hooks. stderr becomes the wake-up message.
100
+ printf '%s\n' "📬 Patchcord: You have ${COUNT} pending message(s). Call inbox() to read and reply." >&2
101
+ exit 2
99
102
  fi
100
103
 
101
104
  sleep "$INTERVAL"