patchcord 0.5.86 → 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
|
@@ -6,6 +6,7 @@ type: flow
|
|
|
6
6
|
|
|
7
7
|
```mermaid
|
|
8
8
|
flowchart TD
|
|
9
|
-
A([BEGIN]) --> B[
|
|
10
|
-
B --> C
|
|
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
|
```
|
|
@@ -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' "
|
|
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
|
|