patchcord 0.5.84 → 0.5.85
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
|
@@ -123,11 +123,12 @@ while true; do
|
|
|
123
123
|
if [ "$COUNT" -gt 0 ] 2>/dev/null; then
|
|
124
124
|
# Write notification file so the agent sees context on wake
|
|
125
125
|
echo "PATCHCORD: ${COUNT} message(s) waiting" > "$NOTIFY_FILE"
|
|
126
|
-
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
# Kimi auto-triggers a new agent turn when ANY background task reaches a
|
|
127
|
+
# terminal state — exit code doesn't matter. Use exit 0 so Kimi shows
|
|
128
|
+
# "completed" (not "failed"), and emit the wake-up text to stdout so it
|
|
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)."
|
|
131
|
+
exit 0
|
|
131
132
|
fi
|
|
132
133
|
|
|
133
134
|
sleep "$INTERVAL"
|