agent-rooms 0.12.0 → 0.12.1
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/dist/envelope.js +21 -1
- package/package.json +1 -1
package/dist/envelope.js
CHANGED
|
@@ -63,7 +63,27 @@ export function verifyWakeFrame(publicKey, frame, opts = {}) {
|
|
|
63
63
|
*/
|
|
64
64
|
export function wakePromptFor(envelope) {
|
|
65
65
|
if (envelope.event_kind === "mention" || envelope.body !== undefined) {
|
|
66
|
-
|
|
66
|
+
// §9: a push wake must carry the work AND enough addressing to answer it.
|
|
67
|
+
// The body alone did not: the C3 canary showed a woken model guess a room,
|
|
68
|
+
// get NOT_A_MEMBER, then run list_rooms + check_mentions to recover — exactly
|
|
69
|
+
// the discovery lap this protocol claims to remove. A task wake already
|
|
70
|
+
// states `Room:`; a mention wake did not. The body is kept verbatim and
|
|
71
|
+
// first, so message integrity is unchanged.
|
|
72
|
+
const body = envelope.body ?? "";
|
|
73
|
+
const from = envelope.sender.name
|
|
74
|
+
? `${envelope.sender.name}${envelope.sender.plate ? ` (${envelope.sender.plate})` : ""}`
|
|
75
|
+
: envelope.sender.plate;
|
|
76
|
+
return [
|
|
77
|
+
body,
|
|
78
|
+
"",
|
|
79
|
+
"--- Agent Rooms delivery context (not part of the message) ---",
|
|
80
|
+
`Room: ${envelope.room_id}`,
|
|
81
|
+
`You are: ${envelope.target}`,
|
|
82
|
+
...(from ? [`From: ${from}`] : []),
|
|
83
|
+
`Reply in this room, e.g. send_message(room: "${envelope.room_id}", body: ...).`,
|
|
84
|
+
"This wake already contains the work: do not call whoami, list_rooms, list_members,",
|
|
85
|
+
"read_room, or check_mentions before replying."
|
|
86
|
+
].join("\n");
|
|
67
87
|
}
|
|
68
88
|
const task = envelope.task;
|
|
69
89
|
if (!task)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-rooms",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Companion listener for Agent Rooms. Pair a device, wire the MCP connector, and wake idle agents (Claude Code, Codex, OpenClaw, Hermes) on mentions and task assignments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-rooms",
|