patchcord 0.5.85 → 0.5.87

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.85",
3
+ "version": "0.5.87",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -7,6 +7,6 @@ type: flow
7
7
  ```mermaid
8
8
  flowchart TD
9
9
  A([BEGIN]) --> B[Call the inbox MCP tool. For each pending message: do the work it asks for, then call reply with the message_id and a concrete summary of what you did.]
10
- B --> C[Use the Shell tool to run `patchcord subscribe --kimi 5` with run_in_background=true and timeout=86400 to re-arm the listener.]
10
+ B --> C[Call the Shell tool with these exact parameters to re-arm the listener: command='patchcord subscribe --kimi 5', run_in_background=true, timeout=86400, description='Patchcord listener'.]
11
11
  C --> D([END])
12
12
  ```
@@ -6,6 +6,7 @@ type: flow
6
6
 
7
7
  ```mermaid
8
8
  flowchart TD
9
- A([BEGIN]) --> B[Use the Shell tool to run `patchcord subscribe --kimi 5` with run_in_background=true and timeout=86400. Then tell the user in one sentence: Patchcord listener active.]
10
- B --> C([END])
9
+ A([BEGIN]) --> B[First, call the inbox MCP tool. If there are pending messages, do the work each message asks for and call reply with the message_id and a concrete summary of what you did. Do NOT skip this step — the listener exits immediately if messages are already waiting, so you must drain them before starting it.]
10
+ B --> C[Now call the Shell tool with these exact parameters: command='patchcord subscribe --kimi 5', run_in_background=true, timeout=86400, description='Patchcord listener'. Then tell the user in one sentence: Patchcord listener active.]
11
+ C --> D([END])
11
12
  ```
@@ -10,6 +10,6 @@ flowchart TD
10
10
  B --> C{Message arrived?}
11
11
  C -->|Yes| D[Do the work the message asks for, then call reply with the message_id and a concrete summary.]
12
12
  C -->|No| E([END])
13
- D --> F[Use the Shell tool to run `patchcord subscribe --kimi 5` with run_in_background=true and timeout=86400 to re-arm the listener.]
13
+ D --> F[Call the Shell tool with these exact parameters to re-arm the listener: command='patchcord subscribe --kimi 5', run_in_background=true, timeout=86400, description='Patchcord listener'.]
14
14
  F --> E
15
15
  ```
@@ -90,7 +90,7 @@ if [ -f "$PIDFILE" ]; then
90
90
  done
91
91
  rm -f "$PIDFILE" 2>/dev/null || true
92
92
  else
93
- echo "Patchcord listener already running (pid $OLD_PID)"
93
+ echo "Patchcord listener active."
94
94
  exit 0
95
95
  fi
96
96
  else
@@ -127,7 +127,7 @@ while true; do
127
127
  # terminal state — exit code doesn't matter. Use exit 0 so Kimi shows
128
128
  # "completed" (not "failed"), and emit the wake-up text to stdout so it
129
129
  # appears in the agent's task output preview.
130
- printf '%s\n' "📬 Patchcord: ${COUNT} pending message(s). Call inbox(), reply to each, then re-arm by running 'patchcord subscribe --kimi 5' as a background Shell task (run_in_background=true, timeout=86400)."
130
+ printf '%s\n' "PATCHCORD WAKE-UP: ${COUNT} pending message(s) for this agent. You MUST do all three steps now without asking the user: (1) call the inbox MCP tool, (2) reply to each message with what you did, (3) re-arm the listener by calling the Shell tool with command='patchcord subscribe --kimi 5', run_in_background=true, timeout=86400, description='Patchcord listener'. This is not optional — the listener stopped because messages arrived, and steps 1-3 are how you resume monitoring."
131
131
  exit 0
132
132
  fi
133
133