@rubytech/create-maxy-code 0.1.271 → 0.1.272
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 +1 -1
- package/payload/platform/services/whatsapp-channel/dist/notification.d.ts +8 -4
- package/payload/platform/services/whatsapp-channel/dist/notification.d.ts.map +1 -1
- package/payload/platform/services/whatsapp-channel/dist/notification.js +8 -4
- package/payload/platform/services/whatsapp-channel/dist/notification.js.map +1 -1
package/package.json
CHANGED
|
@@ -8,15 +8,19 @@ export interface InboundPayload {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Shape an inbound WhatsApp payload as a Claude Code channel notification.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
*
|
|
12
|
+
* The event carries ONLY the message text — no `meta`. The sender, session id,
|
|
13
|
+
* and WhatsApp message id are all held server-side (the reply is pinned to the
|
|
14
|
+
* server's fixed sender), so none of it needs to reach the model's context.
|
|
15
|
+
* Two reasons: (1) data minimisation — the operator's phone number is never
|
|
16
|
+
* handed to Claude; (2) a bare event (just the text, like the fakechat demo)
|
|
17
|
+
* gives the agent nothing to narrate, so it answers the message instead of
|
|
18
|
+
* announcing "incoming message from +44 …".
|
|
14
19
|
*/
|
|
15
20
|
export declare function buildInboundNotification(p: InboundPayload): {
|
|
16
21
|
method: "notifications/claude/channel";
|
|
17
22
|
params: {
|
|
18
23
|
content: string;
|
|
19
|
-
meta: Record<string, string>;
|
|
20
24
|
};
|
|
21
25
|
};
|
|
22
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAA;IACZ,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAA;IACZ,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,cAAc;;;;;EAOzD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAEvG"}
|
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
// transport wiring (server.ts) stays separable from its message shaping.
|
|
4
4
|
/**
|
|
5
5
|
* Shape an inbound WhatsApp payload as a Claude Code channel notification.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* The event carries ONLY the message text — no `meta`. The sender, session id,
|
|
8
|
+
* and WhatsApp message id are all held server-side (the reply is pinned to the
|
|
9
|
+
* server's fixed sender), so none of it needs to reach the model's context.
|
|
10
|
+
* Two reasons: (1) data minimisation — the operator's phone number is never
|
|
11
|
+
* handed to Claude; (2) a bare event (just the text, like the fakechat demo)
|
|
12
|
+
* gives the agent nothing to narrate, so it answers the message instead of
|
|
13
|
+
* announcing "incoming message from +44 …".
|
|
9
14
|
*/
|
|
10
15
|
export function buildInboundNotification(p) {
|
|
11
16
|
return {
|
|
12
17
|
method: 'notifications/claude/channel',
|
|
13
18
|
params: {
|
|
14
19
|
content: p.text,
|
|
15
|
-
meta: { sender_id: p.senderId, wa_message_id: p.waMessageId },
|
|
16
20
|
},
|
|
17
21
|
};
|
|
18
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,yEAAyE;AAWzE
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,yEAAyE;AAWzE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,wBAAwB,CAAC,CAAiB;IACxD,OAAO;QACL,MAAM,EAAE,8BAAuC;QAC/C,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,CAAC,IAAI;SAChB;KACF,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,UAAkB,EAAE,CAAuB;IACvE,OAAO,CAAC,CAAC,QAAQ,KAAK,UAAU,CAAA;AAClC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,UAAkB,EAAE,IAAY;IACjE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA;AACvC,CAAC"}
|