patchcord 0.5.34 → 0.5.36

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.34",
3
+ "version": "0.5.36",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -1,28 +1,32 @@
1
1
  ---
2
2
  name: patchcord:subscribe
3
3
  description: >
4
- Start a background listener that wakes Claude the moment a new Patchcord
5
- message arrives for this agent. Uses Supabase Realtime over WebSocket —
6
- zero polling. Use when the user says "subscribe", "listen for patchcord
7
- messages", "wake me when messages arrive", or runs /patchcord:subscribe.
4
+ Start a persistent background WebSocket listener (Supabase Realtime) that
5
+ wakes Claude when new Patchcord messages arrive. Survives across turns
6
+ until the user kills it or closes the session. Use ONLY when the user
7
+ explicitly runs /patchcord:subscribe.
8
8
  ---
9
9
 
10
+ User invoked /patchcord:subscribe — do NOT substitute `wait_for_message()`. Spawn the listener.
11
+
10
12
  # Start
11
13
 
12
- Spawn under Monitor (not Bash with run_in_background Monitor turns each stdout line into a notification):
14
+ 1. **Drain the inbox first.** Call `mcp__patchcord__inbox`. If anything is pending, process it per the patchcord:inbox skill before continuing. Backlog can accumulate while no listener was up; subscribe must catch it.
15
+
16
+ 2. **Spawn the listener under Monitor** (not Bash with run_in_background — Monitor turns each stdout line into a notification):
13
17
 
14
- ```
15
- Monitor(
16
- description: "patchcord realtime listener",
17
- persistent: true,
18
- timeout_ms: 3600000,
19
- command: "exec npx patchcord subscribe"
20
- )
21
- ```
18
+ ```
19
+ Monitor(
20
+ description: "patchcord realtime listener",
21
+ persistent: true,
22
+ timeout_ms: 3600000,
23
+ command: "exec npx patchcord subscribe"
24
+ )
25
+ ```
22
26
 
23
- `subscribe.mjs` handles its own pidfile guard — if another listener is already active for this agent it exits with code 2 and stderr `already running (pid N)`. Monitor catches the stream-end event; read the output file and report.
27
+ `subscribe.mjs` handles its own pidfile guard — if another listener is already active for this agent it exits with code 2 and stderr `already running (pid N)`. Monitor catches the stream-end event; read the output file and report.
24
28
 
25
- Then one line to the user: *"Patchcord listener active — I'll pick up new messages as they arrive."*
29
+ 3. **Tell the user one line:** *"Patchcord listener active — I'll pick up new messages as they arrive."*
26
30
 
27
31
  # When a notification fires
28
32
 
@@ -1,13 +1,16 @@
1
1
  ---
2
2
  name: patchcord:wait
3
3
  description: >
4
- Enter listening mode - wait for incoming patchcord messages. Use when user
5
- says "wait", "listen", "stand by", or wants the agent to stay responsive
6
- to other agents.
4
+ Block this turn for up to 5 minutes waiting for one incoming Patchcord
5
+ message via the wait_for_message MCP tool. Single blocking call, no
6
+ background process. Use ONLY when the user explicitly runs
7
+ /patchcord:wait.
7
8
  ---
8
9
  # patchcord:wait
9
10
 
10
- Enter listening mode. Call `wait_for_message()` to block until a message arrives (up to 5 minutes).
11
+ User invoked /patchcord:wait do NOT substitute /patchcord:subscribe or spawn any background listener. Use `wait_for_message()` only.
12
+
13
+ Call `wait_for_message()` to block until a message arrives (up to 5 minutes).
11
14
 
12
15
  When a message arrives:
13
16