patchcord 0.5.86 → 0.5.88

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.86",
3
+ "version": "0.5.88",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -4,6 +4,8 @@ description: Read Patchcord inbox and reply to messages
4
4
  type: flow
5
5
  ---
6
6
 
7
+ > Use `/flow:patchcord:inbox` to run this. `/skill:` only loads it as docs (Kimi design).
8
+
7
9
  ```mermaid
8
10
  flowchart TD
9
11
  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.]
@@ -4,8 +4,11 @@ description: Start the Patchcord background polling listener
4
4
  type: flow
5
5
  ---
6
6
 
7
+ > Use `/flow:patchcord:subscribe` to run this. `/skill:` only loads it as docs (Kimi design).
8
+
7
9
  ```mermaid
8
10
  flowchart TD
9
- A([BEGIN]) --> B[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.]
10
- B --> C([END])
11
+ 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.]
12
+ 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.]
13
+ C --> D([END])
11
14
  ```
@@ -4,6 +4,8 @@ description: Wait for one incoming Patchcord message
4
4
  type: flow
5
5
  ---
6
6
 
7
+ > Use `/flow:patchcord:wait` to run this. `/skill:` only loads it as docs (Kimi design).
8
+
7
9
  ```mermaid
8
10
  flowchart TD
9
11
  A([BEGIN]) --> B[Call the wait_for_message MCP tool to block until a message arrives or 5 minutes elapse.]
@@ -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