@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.271",
3
+ "version": "0.1.272",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -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
- * `content` becomes the `<channel>` body; each `meta` entry becomes a tag
12
- * attribute, so keys must be identifier-safe ([A-Za-z0-9_])hyphenated
13
- * keys are silently dropped by Claude Code.
11
+ *
12
+ * The event carries ONLY the message textno `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;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,cAAc;;;;cAKa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;EAG5F;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"}
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
- * `content` becomes the `<channel>` body; each `meta` entry becomes a tag
7
- * attribute, so keys must be identifier-safe ([A-Za-z0-9_])hyphenated
8
- * keys are silently dropped by Claude Code.
6
+ *
7
+ * The event carries ONLY the message textno `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;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,CAAiB;IACxD,OAAO;QACL,MAAM,EAAE,8BAAuC;QAC/C,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,CAAC,IAAI;YACf,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC,WAAW,EAA4B;SACxF;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"}
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"}