@rubytech/create-realagent-code 0.1.264 → 0.1.266

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.
Files changed (201) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/models/dist/index.d.ts +1 -1
  3. package/payload/platform/lib/models/dist/index.d.ts.map +1 -1
  4. package/payload/platform/lib/models/dist/index.js +5 -2
  5. package/payload/platform/lib/models/dist/index.js.map +1 -1
  6. package/payload/platform/lib/models/src/index.ts +5 -2
  7. package/payload/platform/neo4j/schema.cypher +13 -0
  8. package/payload/platform/plugins/admin/.claude-plugin/plugin.json +1 -1
  9. package/payload/platform/plugins/admin/PLUGIN.md +7 -2
  10. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.d.ts +2 -0
  11. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.d.ts.map +1 -0
  12. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.js +106 -0
  13. package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-search.test.js.map +1 -0
  14. package/payload/platform/plugins/admin/mcp/dist/index.js +37 -2
  15. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  16. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts +12 -0
  17. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts.map +1 -1
  18. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js +175 -1
  19. package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js.map +1 -1
  20. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +247 -239
  21. package/payload/platform/plugins/admin/skills/public-agent-manager/SKILL.md +2 -2
  22. package/payload/platform/plugins/admin/skills/superpowers-sprint/SKILL.md +3 -3
  23. package/payload/platform/plugins/admin/skills/upgrade/SKILL.md +2 -2
  24. package/payload/platform/plugins/business-assistant/PLUGIN.md +1 -5
  25. package/payload/platform/plugins/cloudflare/PLUGIN.md +1 -1
  26. package/payload/platform/plugins/cloudflare/references/manual-setup.md +10 -10
  27. package/payload/platform/plugins/cloudflare/references/reset-guide.md +1 -1
  28. package/payload/platform/plugins/docs/.claude-plugin/plugin.json +1 -1
  29. package/payload/platform/plugins/docs/PLUGIN.md +6 -6
  30. package/payload/platform/plugins/docs/references/admin-session.md +1 -1
  31. package/payload/platform/plugins/docs/references/admin-ui.md +3 -3
  32. package/payload/platform/plugins/docs/references/cloudflare.md +1 -1
  33. package/payload/platform/plugins/docs/references/deployment.md +7 -7
  34. package/payload/platform/plugins/docs/references/linkedin-extension.md +4 -4
  35. package/payload/platform/plugins/docs/references/memory-guide.md +2 -2
  36. package/payload/platform/plugins/docs/references/neo4j.md +1 -1
  37. package/payload/platform/plugins/docs/references/outlook-guide.md +1 -1
  38. package/payload/platform/plugins/docs/references/platform.md +2 -2
  39. package/payload/platform/plugins/docs/references/plugins-guide.md +6 -6
  40. package/payload/platform/plugins/docs/references/troubleshooting.md +1 -1
  41. package/payload/platform/plugins/docs/references/voice-mirror-guide.md +9 -1
  42. package/payload/platform/plugins/linkedin-extension/.claude-plugin/plugin.json +1 -1
  43. package/payload/platform/plugins/linkedin-extension/PLUGIN.md +1 -1
  44. package/payload/platform/plugins/linkedin-extension/extension/README.md +4 -4
  45. package/payload/platform/plugins/linkedin-extension/extension/assets/pill.css +1 -1
  46. package/payload/platform/plugins/linkedin-extension/extension/content/profile.js +2 -2
  47. package/payload/platform/plugins/linkedin-extension/extension/content/thread.js +2 -2
  48. package/payload/platform/plugins/linkedin-extension/extension/manifest.json +3 -3
  49. package/payload/platform/plugins/linkedin-extension/extension/options/options.html +3 -3
  50. package/payload/platform/plugins/linkedin-import/.claude-plugin/plugin.json +1 -1
  51. package/payload/platform/plugins/linkedin-import/PLUGIN.md +2 -2
  52. package/payload/platform/plugins/memory/references/graph-primitives.md +1 -1
  53. package/payload/platform/plugins/memory/references/schema-base.md +1 -1
  54. package/payload/platform/plugins/memory/references/schema-construction.md +1 -1
  55. package/payload/platform/plugins/memory/skills/conversation-archive-mcp/SKILL.md +2 -2
  56. package/payload/platform/plugins/notion-import/.claude-plugin/plugin.json +1 -1
  57. package/payload/platform/plugins/notion-import/PLUGIN.md +2 -2
  58. package/payload/platform/plugins/obsidian-import/.claude-plugin/plugin.json +1 -1
  59. package/payload/platform/plugins/obsidian-import/PLUGIN.md +2 -2
  60. package/payload/platform/plugins/obsidian-import/skills/obsidian-import/SKILL.md +1 -1
  61. package/payload/platform/plugins/obsidian-import/skills/obsidian-import/references/attachments.md +1 -1
  62. package/payload/platform/plugins/obsidian-import/skills/obsidian-import/references/daily-notes.md +1 -1
  63. package/payload/platform/plugins/obsidian-import/skills/obsidian-import/references/vault-structure.md +1 -1
  64. package/payload/platform/plugins/obsidian-import/skills/obsidian-import/references/wikilinks.md +1 -1
  65. package/payload/platform/plugins/outlook/mcp/dist/index.js +1 -1
  66. package/payload/platform/plugins/outlook/references/auth.md +2 -2
  67. package/payload/platform/plugins/outlook/skills/outlook/SKILL.md +1 -1
  68. package/payload/platform/plugins/sales/.claude-plugin/plugin.json +1 -1
  69. package/payload/platform/plugins/sales/PLUGIN.md +8 -8
  70. package/payload/platform/plugins/sales/references/comparisons.md +18 -18
  71. package/payload/platform/plugins/sales/references/competitive-positioning.md +5 -5
  72. package/payload/platform/plugins/sales/references/faq.md +22 -22
  73. package/payload/platform/plugins/sales/references/objection-handling.md +3 -3
  74. package/payload/platform/plugins/sales/references/pricing.md +16 -16
  75. package/payload/platform/plugins/slides/PROVENANCE.md +1 -1
  76. package/payload/platform/plugins/substack-import/.claude-plugin/plugin.json +1 -1
  77. package/payload/platform/plugins/substack-import/PLUGIN.md +2 -2
  78. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.d.ts +2 -0
  79. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.d.ts.map +1 -0
  80. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.js +16 -0
  81. package/payload/platform/plugins/whatsapp/mcp/dist/__tests__/format-login-start.test.js.map +1 -0
  82. package/payload/platform/plugins/whatsapp/mcp/dist/format.d.ts +7 -0
  83. package/payload/platform/plugins/whatsapp/mcp/dist/format.d.ts.map +1 -0
  84. package/payload/platform/plugins/whatsapp/mcp/dist/format.js +21 -0
  85. package/payload/platform/plugins/whatsapp/mcp/dist/format.js.map +1 -0
  86. package/payload/platform/plugins/whatsapp/mcp/dist/index.js +11 -19
  87. package/payload/platform/plugins/whatsapp/mcp/dist/index.js.map +1 -1
  88. package/payload/platform/plugins/whatsapp/references/channels-whatsapp.md +1 -1
  89. package/payload/platform/plugins/whatsapp/skills/connect-whatsapp/SKILL.md +15 -13
  90. package/payload/platform/plugins/x-import/.claude-plugin/plugin.json +1 -1
  91. package/payload/platform/plugins/x-import/PLUGIN.md +2 -2
  92. package/payload/platform/scripts/check-skill-frontmatter.mjs +8 -5
  93. package/payload/platform/scripts/wifi-provision-server/server.js +1 -1
  94. package/payload/platform/scripts/wifi-provision.sh +1 -1
  95. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  96. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +1 -0
  97. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  98. package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
  99. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +15 -15
  100. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
  101. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts +10 -0
  102. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  103. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +59 -0
  104. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  105. package/payload/platform/templates/account.json +1 -1
  106. package/payload/platform/templates/agents/admin/IDENTITY.md +3 -3
  107. package/payload/platform/templates/specialists/.claude-plugin/plugin.json +1 -1
  108. package/payload/platform/templates/specialists/agents/content-producer.md +1 -1
  109. package/payload/platform/templates/specialists/agents/librarian.md +1 -1
  110. package/payload/platform/templates/specialists/agents/research-assistant.md +1 -1
  111. package/payload/premium-plugins/real-agent/BUNDLE.md +1 -1
  112. package/payload/premium-plugins/real-agent/agents/negotiator.md +1 -1
  113. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/SKILL.md +1 -1
  114. package/payload/premium-plugins/real-agent/plugins/listings/PLUGIN.md +1 -1
  115. package/payload/premium-plugins/real-agent/plugins/listings/skills/new-instruction/SKILL.md +1 -1
  116. package/payload/premium-plugins/real-agent/plugins/listings/skills/particulars-builder/SKILL.md +2 -2
  117. package/payload/premium-plugins/real-agent/plugins/loop/PLUGIN.md +1 -1
  118. package/payload/premium-plugins/real-agent/plugins/preval/PLUGIN.md +1 -1
  119. package/payload/server/{adminuser-self-heal-YC47O34W.js → adminuser-self-heal-LC7HZAC6.js} +17 -9
  120. package/payload/server/{chunk-HYQNUVGO.js → chunk-PFF6I7KP.js} +1 -8
  121. package/payload/server/{chunk-ZC63DFWF.js → chunk-SOLVVUST.js} +1 -1
  122. package/payload/server/maxy-edge.js +2 -2
  123. package/payload/server/public/assets/{AdminShell-8JLQM1Mz.js → AdminShell-BcHJy_Y2.js} +1 -1
  124. package/payload/server/public/assets/{Checkbox-CuFJh7lI.js → Checkbox-BY2lndUH.js} +1 -1
  125. package/payload/server/public/assets/{admin-D4nsdmKU.js → admin-C364q_-g.js} +1 -1
  126. package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-D-ODjJS5.js → architectureDiagram-Q4EWVU46-B9ik0JyO.js} +1 -1
  127. package/payload/server/public/assets/{blockDiagram-DXYQGD6D-DFuVe8f9.js → blockDiagram-DXYQGD6D-C-w-AMRJ.js} +1 -1
  128. package/payload/server/public/assets/{browser-DIKmvDl5.js → browser-D66JrDpx.js} +1 -1
  129. package/payload/server/public/assets/{c4Diagram-AHTNJAMY-CeVLfznT.js → c4Diagram-AHTNJAMY-BH-b0NZ1.js} +1 -1
  130. package/payload/server/public/assets/channel-5xoW3jfU.js +1 -0
  131. package/payload/server/public/assets/{chunk-336JU56O-BTaLfR3a.js → chunk-336JU56O-CZHLbmJj.js} +2 -2
  132. package/payload/server/public/assets/{chunk-426QAEUC-BzTbm4pP.js → chunk-426QAEUC-Qx6Ggp9s.js} +1 -1
  133. package/payload/server/public/assets/{chunk-4TB4RGXK-SiUyOXVG.js → chunk-4TB4RGXK-J1Raz9l0.js} +1 -1
  134. package/payload/server/public/assets/{chunk-5FUZZQ4R-BcQ33LnT.js → chunk-5FUZZQ4R-D6TFnJVF.js} +1 -1
  135. package/payload/server/public/assets/{chunk-5PVQY5BW-CT7C1Tik.js → chunk-5PVQY5BW-CC5aEdzK.js} +1 -1
  136. package/payload/server/public/assets/{chunk-EDXVE4YY-CK3uI2u6.js → chunk-EDXVE4YY-Bfbcdcbt.js} +1 -1
  137. package/payload/server/public/assets/{chunk-ENJZ2VHE-Ddp8Otnw.js → chunk-ENJZ2VHE-7EKi84Dw.js} +1 -1
  138. package/payload/server/public/assets/{chunk-ICPOFSXX-DHTxymk_.js → chunk-ICPOFSXX-DIH1FT8n.js} +1 -1
  139. package/payload/server/public/assets/{chunk-OYMX7WX6-Heg3hegz.js → chunk-OYMX7WX6-MgP02n7p.js} +1 -1
  140. package/payload/server/public/assets/{chunk-U2HBQHQK-Cw2PR7aJ.js → chunk-U2HBQHQK-Cwmbq3M7.js} +1 -1
  141. package/payload/server/public/assets/{chunk-X2U36JSP-C7vBCAQQ.js → chunk-X2U36JSP-D65N3MkW.js} +1 -1
  142. package/payload/server/public/assets/{chunk-YZCP3GAM-BS8Mybh1.js → chunk-YZCP3GAM-BkCiRhSG.js} +1 -1
  143. package/payload/server/public/assets/{chunk-ZZ45TVLE-DmnbQp47.js → chunk-ZZ45TVLE-3BQY1FWN.js} +1 -1
  144. package/payload/server/public/assets/classDiagram-6PBFFD2Q-DRSNlIL5.js +1 -0
  145. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-CYvRRfMp.js +1 -0
  146. package/payload/server/public/assets/clone-DvQUt_lq.js +1 -0
  147. package/payload/server/public/assets/{dagre-D4i6r8zi.js → dagre-DVhW13RD.js} +1 -1
  148. package/payload/server/public/assets/{dagre-KV5264BT-znWS6Wh2.js → dagre-KV5264BT-CtfjEgDz.js} +1 -1
  149. package/payload/server/public/assets/{data-CHqF4bkS.js → data-uiOcPh8T.js} +1 -1
  150. package/payload/server/public/assets/{diagram-5BDNPKRD-B6tQBN1Y.js → diagram-5BDNPKRD-C8AXEFch.js} +1 -1
  151. package/payload/server/public/assets/{diagram-G4DWMVQ6-t73WpYIY.js → diagram-G4DWMVQ6-B1P8Cwuz.js} +1 -1
  152. package/payload/server/public/assets/{diagram-MMDJMWI5-Cm63UOJm.js → diagram-MMDJMWI5-QBVBnPmO.js} +1 -1
  153. package/payload/server/public/assets/{diagram-TYMM5635-DuTSLjVB.js → diagram-TYMM5635-D2xE8fN8.js} +1 -1
  154. package/payload/server/public/assets/{erDiagram-SMLLAGMA-sbHunitX.js → erDiagram-SMLLAGMA-DMee1Yih.js} +1 -1
  155. package/payload/server/public/assets/{flowDiagram-DWJPFMVM-BWOrPuqz.js → flowDiagram-DWJPFMVM-DAd3JjoB.js} +1 -1
  156. package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-WaLMGard.js → ganttDiagram-T4ZO3ILL-Bs33CmKo.js} +1 -1
  157. package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-CsbIgKDn.js → gitGraphDiagram-UUTBAWPF-NXc8aeps.js} +1 -1
  158. package/payload/server/public/assets/{graph-kwyPyf_b.js → graph-BSHyF267.js} +1 -1
  159. package/payload/server/public/assets/{graph-labels-pX3uIQys.js → graph-labels-D5ecmK-Z.js} +1 -1
  160. package/payload/server/public/assets/{graphlib-B8yKFZvc.js → graphlib-DN7sm5nK.js} +1 -1
  161. package/payload/server/public/assets/{infoDiagram-42DDH7IO-Bd55TzsD.js → infoDiagram-42DDH7IO-D2g5STFr.js} +1 -1
  162. package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-BFdOsA9f.js → ishikawaDiagram-UXIWVN3A-DBgfV-LB.js} +1 -1
  163. package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-CMQ5XWO9.js → journeyDiagram-VCZTEJTY-Chh9lW9P.js} +1 -1
  164. package/payload/server/public/assets/{kanban-definition-6JOO6SKY-_RpNNRN7.js → kanban-definition-6JOO6SKY-buI2AXpi.js} +1 -1
  165. package/payload/server/public/assets/{line-SkFxjGJ8.js → line-C8OFYjrW.js} +1 -1
  166. package/payload/server/public/assets/{mermaid-parser.core-Ddok2IAe.js → mermaid-parser.core-BI5Ythbv.js} +1 -1
  167. package/payload/server/public/assets/{mermaid.core-CihAjXBG.js → mermaid.core-C4dyl1Xw.js} +3 -3
  168. package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-CJsq3hrO.js → mindmap-definition-QFDTVHPH-BbXKSpiv.js} +1 -1
  169. package/payload/server/public/assets/{pieDiagram-DEJITSTG-CSgg8lBB.js → pieDiagram-DEJITSTG-C8-OIoUW.js} +1 -1
  170. package/payload/server/public/assets/{public-BA9P-3ZV.js → public-DGlZwbyw.js} +3 -3
  171. package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-TtHxMQtS.js → quadrantDiagram-34T5L4WZ-HOEtpu4n.js} +1 -1
  172. package/payload/server/public/assets/{requirementDiagram-MS252O5E-DdYupKtL.js → requirementDiagram-MS252O5E-DLxjohCO.js} +1 -1
  173. package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-BVfdyUnO.js → sankeyDiagram-XADWPNL6-E_O_HiFL.js} +1 -1
  174. package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-aFLOua6n.js → sequenceDiagram-FGHM5R23-C3-hhAup.js} +1 -1
  175. package/payload/server/public/assets/{stateDiagram-FHFEXIEX-_3Ix8SPZ.js → stateDiagram-FHFEXIEX-BhAmQ0XX.js} +1 -1
  176. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-Dhrf9hq_.js +1 -0
  177. package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-Bs96WqZ7.js → timeline-definition-GMOUNBTQ-DpfZt7xI.js} +1 -1
  178. package/payload/server/public/assets/{useSelectionMode-L9uAHstA.css → useSelectionMode-98jrB9kD.css} +1 -1
  179. package/payload/server/public/assets/{vennDiagram-DHZGUBPP-DE_SxsN2.js → vennDiagram-DHZGUBPP-Ck2Ago5q.js} +1 -1
  180. package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-DTCdKs6v.js → wardleyDiagram-NUSXRM2D-Dgk8C9kF.js} +1 -1
  181. package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-CNIrxADs.js → xychartDiagram-5P7HB3ND-BRBSl8ID.js} +1 -1
  182. package/payload/server/public/browser.html +4 -4
  183. package/payload/server/public/data.html +5 -5
  184. package/payload/server/public/graph.html +6 -6
  185. package/payload/server/public/index.html +5 -5
  186. package/payload/server/public/public.html +4 -4
  187. package/payload/server/server.js +607 -5064
  188. package/payload/platform/plugins/business-assistant/references/quote-engine.md +0 -122
  189. package/payload/platform/plugins/business-assistant/references/quote-generation.md +0 -94
  190. package/payload/platform/plugins/business-assistant/references/quoting.md +0 -85
  191. package/payload/platform/plugins/business-assistant/skills/pricing-method/SKILL.md +0 -78
  192. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/learning-from-history.md +0 -51
  193. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/maintenance.md +0 -32
  194. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/manual-definition.md +0 -42
  195. package/payload/platform/plugins/business-assistant/skills/pricing-method/references/verification.md +0 -37
  196. package/payload/server/public/assets/channel-Db8J_1Rl.js +0 -1
  197. package/payload/server/public/assets/classDiagram-6PBFFD2Q-DjquNGFr.js +0 -1
  198. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-CcE8sWEP.js +0 -1
  199. package/payload/server/public/assets/clone-xa7JZYoY.js +0 -1
  200. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-eVQQEyxx.js +0 -1
  201. /package/payload/server/public/assets/{useSelectionMode-Da9Glxvu.js → useSelectionMode-80iYuGPa.js} +0 -0
@@ -1,68 +1,68 @@
1
- # Maxy FAQ
1
+ # Real Agent FAQ
2
2
 
3
- ## What is Maxy?
3
+ ## What is Real Agent?
4
4
 
5
- Maxy is your Operations Manager — an operations layer, not a productivity tool. It doesn't help you work faster. It does the work that otherwise doesn't get done.
5
+ Real Agent is your Operations Manager — an operations layer, not a productivity tool. It doesn't help you work faster. It does the work that otherwise doesn't get done.
6
6
 
7
- Most people know they should be using a CRM, a task manager, a follow-up system. Most don't — because every tool demands a new habit on top of an already full day. Maxy removes that cost entirely. You just talk, and the organisation happens.
7
+ Most people know they should be using a CRM, a task manager, a follow-up system. Most don't — because every tool demands a new habit on top of an already full day. Real Agent removes that cost entirely. You just talk, and the organisation happens.
8
8
 
9
- Maxy plays four roles: it follows through on your commitments, responds to your customers at any hour, handles your finances (quotes, invoices, chasing), and manages your picture — what's overdue, what's at risk, what needs a decision. It runs on a device on your premises, so your data never leaves.
9
+ Real Agent plays four roles: it follows through on your commitments, responds to your customers at any hour, handles your finances (quotes, invoices, chasing), and manages your picture — what's overdue, what's at risk, what needs a decision. It runs on a device on your premises, so your data never leaves.
10
10
 
11
11
  ## Can this actually run my business?
12
12
 
13
- Yes. Maxy handles the operations layer — the work that keeps a business running but isn't the work you went into business to do. Scheduling, customer enquiries, quoting, invoicing, document creation, follow-ups, workflows, CRM updates, proactive briefings. A 2-person business with the operational capacity of a 20-person operation — because Maxy provides both the admin nobody sees and the customer-facing team everyone does.
13
+ Yes. Real Agent handles the operations layer — the work that keeps a business running but isn't the work you went into business to do. Scheduling, customer enquiries, quoting, invoicing, document creation, follow-ups, workflows, CRM updates, proactive briefings. A 2-person business with the operational capacity of a 20-person operation — because Real Agent provides both the admin nobody sees and the customer-facing team everyone does.
14
14
 
15
- ## How is Maxy different from ChatGPT / Siri / Alexa?
15
+ ## How is Real Agent different from ChatGPT / Siri / Alexa?
16
16
 
17
- ChatGPT helps you think and write. Siri and Alexa respond to commands. Maxy runs your operation. It notices your calendar clash and fixes it, creates and delivers documents to clients, answers customer enquiries on your website at 3am, runs workflows you described once in conversation, and generates your morning briefing before you've opened your laptop. It also runs locally on your device, so your data isn't stored in someone else's cloud.
17
+ ChatGPT helps you think and write. Siri and Alexa respond to commands. Real Agent runs your operation. It notices your calendar clash and fixes it, creates and delivers documents to clients, answers customer enquiries on your website at 3am, runs workflows you described once in conversation, and generates your morning briefing before you've opened your laptop. It also runs locally on your device, so your data isn't stored in someone else's cloud.
18
18
 
19
- The comparison that matters isn't Maxy vs ChatGPT. It's Maxy vs hiring someone — or vs doing it all yourself.
19
+ The comparison that matters isn't Real Agent vs ChatGPT. It's Real Agent vs hiring someone — or vs doing it all yourself.
20
20
 
21
- ## Can Maxy create documents?
21
+ ## Can Real Agent create documents?
22
22
 
23
- Yes. Describe what you need — a quote, a proposal, an invoice, a report, a flyer, a compliance document — and Maxy generates it as a professional A4 PDF. Review it in the conversation, download it, or deliver it directly to a customer via WhatsApp or email. Quotes, proposals, invoices, reports, marketing materials, compliance documents — all created through conversation.
23
+ Yes. Describe what you need — a quote, a proposal, an invoice, a report, a flyer, a compliance document — and Real Agent generates it as a professional A4 PDF. Review it in the conversation, download it, or deliver it directly to a customer via WhatsApp or email. Quotes, proposals, invoices, reports, marketing materials, compliance documents — all created through conversation.
24
24
 
25
25
  ## How does it work technically?
26
26
 
27
- Maxy runs on a Raspberry Pi (the Maxy Pi) or any Linux computer on your premises. It uses Claude as its AI backbone. Your personal data — calendar entries, messages, memories, preferences — stays on the device. Maxy connects to external services via APIs but processes everything locally.
27
+ Real Agent runs on a Raspberry Pi (the Real Agent Pi) or any Linux computer on your premises. It uses Claude as its AI backbone. Your personal data — calendar entries, messages, memories, preferences — stays on the device. Real Agent connects to external services via APIs but processes everything locally.
28
28
 
29
29
  ## What about privacy?
30
30
 
31
- Privacy is the architecture, not a feature. Your data lives on a device you own, on your premises. Maxy doesn't upload personal information to cloud servers. When Maxy uses Claude for reasoning, it sends only what's needed for the current task — not your entire history.
31
+ Privacy is the architecture, not a feature. Your data lives on a device you own, on your premises. Real Agent doesn't upload personal information to cloud servers. When Real Agent uses Claude for reasoning, it sends only what's needed for the current task — not your entire history.
32
32
 
33
33
  ## How do I set it up?
34
34
 
35
- 1. Get a Maxy device (from £250 for a pre-configured Raspberry Pi, or use your own Linux machine)
35
+ 1. Get a Real Agent device (from £250 for a pre-configured Raspberry Pi, or use your own Linux machine)
36
36
  2. Plug it in and connect to Wi-Fi
37
37
  3. Open your browser, set a PIN, and connect your Claude subscription
38
- 4. Start talking — Maxy walks you through the rest
38
+ 4. Start talking — Real Agent walks you through the rest
39
39
 
40
40
  Fully operational in under 15 minutes. No software to install, no configuration, no training.
41
41
 
42
- ## What can Maxy actually do?
42
+ ## What can Real Agent actually do?
43
43
 
44
44
  Core capabilities (included in every plan):
45
45
  - **Scheduling** — appointments, recurring events, daily briefings, proactive reminders
46
46
  - **Contact management** — CRM, pipeline tracking, customer history
47
- - **Workflow automation** — describe a process once, Maxy runs it forever
47
+ - **Workflow automation** — describe a process once, Real Agent runs it forever
48
48
  - **Document creation** — quotes, proposals, invoices, reports, marketing materials — generated and delivered
49
49
  - **Customer-facing agents** — sales, support, booking agents on your website or messaging apps
50
50
  - **Message handling** — WhatsApp, Telegram, and email integration
51
51
  - **Memory** — remembers your preferences, past conversations, and context across sessions
52
52
 
53
- With skill packs, Maxy adds depth in specific areas: finance, wellness, professional productivity, family coordination, home management, and travel.
53
+ With skill packs, Real Agent adds depth in specific areas: finance, wellness, professional productivity, family coordination, home management, and travel.
54
54
 
55
55
  ## Do I need the hardware?
56
56
 
57
- Yes. Maxy runs on a device on your premises. This is what keeps your data private and local. There is no cloud-only option — the local-first architecture is fundamental to how Maxy works.
57
+ Yes. Real Agent runs on a device on your premises. This is what keeps your data private and local. There is no cloud-only option — the local-first architecture is fundamental to how Real Agent works.
58
58
 
59
59
  ## Can multiple family members use it?
60
60
 
61
- Yes, with the Family plan (£999/year). Each family member gets their own profile with individual privacy. Maxy understands shared context (family calendar, household tasks) while keeping personal information separate.
61
+ Yes, with the Family plan (£999/year). Each family member gets their own profile with individual privacy. Real Agent understands shared context (family calendar, household tasks) while keeping personal information separate.
62
62
 
63
63
  ## What if I need help?
64
64
 
65
- Maxy itself can answer most questions about its own capabilities. For technical issues or account questions, support is available via the Maxy app and email.
65
+ Real Agent itself can answer most questions about its own capabilities. For technical issues or account questions, support is available via the Real Agent app and email.
66
66
 
67
67
  ## Is there a trial or money-back guarantee?
68
68
 
@@ -70,4 +70,4 @@ Details on trial availability will be confirmed at launch. Share your name and e
70
70
 
71
71
  ## How is this different from just using multiple apps?
72
72
 
73
- Multiple apps don't talk to each other. Your calendar doesn't know about your emails. Your reminders don't know about your calendar. Your document tool doesn't know about your CRM. Maxy connects everything into a single graph — meetings connected to people, people connected to deals, deals connected to history. That context is what makes the four roles possible. No isolated app can replicate this — because isolation is their fundamental constraint. One Operations Manager instead of twelve apps.
73
+ Multiple apps don't talk to each other. Your calendar doesn't know about your emails. Your reminders don't know about your calendar. Your document tool doesn't know about your CRM. Real Agent connects everything into a single graph — meetings connected to people, people connected to deals, deals connected to history. That context is what makes the four roles possible. No isolated app can replicate this — because isolation is their fundamental constraint. One Operations Manager instead of twelve apps.
@@ -42,7 +42,7 @@ The universal objection-handling pattern. Works for price and almost any other c
42
42
  > "I understand how you feel — it's a significant investment. Many people felt the same way initially. However, most found that within the first month, the time saved more than covered the cost."
43
43
 
44
44
  *Unsure about value:*
45
- > "I get how you feel — it's hard to know if it's worth it before you've tried it. Others felt the same. What they found was that once Maxy started managing their calendar and messages proactively, they couldn't go back."
45
+ > "I get how you feel — it's hard to know if it's worth it before you've tried it. Others felt the same. What they found was that once Real Agent started managing their calendar and messages proactively, they couldn't go back."
46
46
 
47
47
  *Comparing to cheaper option:*
48
48
  > "I understand how you feel — the price difference is noticeable. Others have felt the same and tried the cheaper option first. What they found was it couldn't act proactively or connect their services together, and they ended up coming back."
@@ -115,9 +115,9 @@ This is a legitimate blocker.
115
115
  ### Trust: "How do I know it actually works?"
116
116
 
117
117
  1. Offer to walk them through specifics relevant to their use case
118
- 2. Reference the early-access programme — being honest about where Maxy is builds trust
118
+ 2. Reference the early-access programme — being honest about where Real Agent is builds trust
119
119
  3. Emphasise the local-first privacy model — data stays in their home
120
- 4. Be honest: "We're early — the best way to see is to try it. That's why we're building a small group of early adopters who want to shape what Maxy becomes."
120
+ 4. Be honest: "We're early — the best way to see is to try it. That's why we're building a small group of early adopters who want to shape what Real Agent becomes."
121
121
 
122
122
  ## Concession Strategy
123
123
 
@@ -1,4 +1,4 @@
1
- # Maxy Pricing
1
+ # Real Agent Pricing
2
2
 
3
3
  ## Subscription Plans
4
4
 
@@ -14,7 +14,7 @@ Includes:
14
14
  - Memory and context across conversations
15
15
  - Your data stays on your device. Always.
16
16
 
17
- Hardware required: Maxy Pi (from £250, one-time purchase) or your own Linux machine
17
+ Hardware required: Real Agent Pi (from £250, one-time purchase) or your own Linux machine
18
18
 
19
19
  ### Family — £999/year
20
20
  All four roles, shared across a household. Your household Operations Manager.
@@ -27,7 +27,7 @@ Includes:
27
27
  - One public agent per member
28
28
  - Private by default, shared by choice
29
29
 
30
- Hardware required: Maxy Pi (from £250, one-time purchase) or your own Linux machine
30
+ Hardware required: Real Agent Pi (from £250, one-time purchase) or your own Linux machine
31
31
 
32
32
  ### Pro — £1,999/year
33
33
  All four roles, at business scale. Your Operations Manager — the team member who brings a team. For 1–10 staff.
@@ -40,14 +40,14 @@ Includes:
40
40
  - Multi-admin roles — right access for the right people
41
41
  - Your own branded domain via Cloudflare Tunnel
42
42
 
43
- Hardware required: Maxy Pi (from £250, one-time purchase) or your own Linux machine
43
+ Hardware required: Real Agent Pi (from £250, one-time purchase) or your own Linux machine
44
44
 
45
45
  ## Founding 20 — £5,000 one-time, lifetime
46
46
 
47
- Twenty seats. Lifetime Maxy subscription — no annual renewal, ever.
47
+ Twenty seats. Lifetime Real Agent subscription — no annual renewal, ever.
48
48
 
49
49
  Includes:
50
- - Lifetime Maxy subscription — never pay again
50
+ - Lifetime Real Agent subscription — never pay again
51
51
  - Raspberry Pi 5 included, shipped configured and ready
52
52
  - Direct line to shape the product — your feedback steers the roadmap
53
53
 
@@ -71,31 +71,31 @@ Modular capabilities you add based on what you need. Buy once, own forever. No r
71
71
  ### Beagle — Separate Product
72
72
  Beagle is a premium booking agent for local services. It finds, compares, and books local service providers (plumbers, cleaners, electricians, etc.) on your behalf.
73
73
 
74
- Beagle is a separate product with its own pricing — not included in the Maxy subscription or skill pack bundles.
74
+ Beagle is a separate product with its own pricing — not included in the Real Agent subscription or skill pack bundles.
75
75
 
76
76
  ## Hardware
77
77
 
78
- ### Maxy Pi — from £250
79
- Raspberry Pi-based home hub. Runs Maxy locally. Your data stays on your premises.
78
+ ### Real Agent Pi — from £250
79
+ Raspberry Pi-based home hub. Runs Real Agent locally. Your data stays on your premises.
80
80
 
81
81
  - Built on the Raspberry Pi 5 with 16 GB RAM
82
82
  - Pre-configured and shipped ready to go
83
83
  - One-time purchase, no rental or lease
84
84
 
85
- ### Maxy Mini — from £370
86
- Reachy Mini robot form factor. Physical presence in the home. Same Maxy brain, embodied.
85
+ ### Real Agent Mini — from £370
86
+ Reachy Mini robot form factor. Physical presence in the home. Same Real Agent brain, embodied.
87
87
 
88
88
  - Desktop companion with camera, expressive movements, and personality
89
89
  - Everything the Pi does, plus it sees you, reacts, and feels present
90
- - Premium hardware option for those who want Maxy to feel more tangible
90
+ - Premium hardware option for those who want Real Agent to feel more tangible
91
91
 
92
92
  ### Your own device — from £0
93
- Maxy runs on any Linux machine with 16 GB or more of RAM. Your own hardware or a dedicated mini PC like the Star Labs Byte (from £560).
93
+ Real Agent runs on any Linux machine with 16 GB or more of RAM. Your own hardware or a dedicated mini PC like the Star Labs Byte (from £560).
94
94
 
95
95
  ## Pricing Principles
96
96
 
97
97
  - **Never apologise for the price.** The value is real. Frame cost as investment in operational capacity.
98
- - **Always show what's included.** The Claude subscription alone costs $200–$2,400/year — Maxy wraps that in a complete operations layer.
98
+ - **Always show what's included.** The Claude subscription alone costs $200–$2,400/year — Real Agent wraps that in a complete operations layer.
99
99
  - **Lead with the plan, not the hardware.** Annual subscription is the ongoing relationship. Hardware is the one-time setup cost.
100
- - **The comparison is hiring, not software.** A part-time admin costs £18,000–£25,000/year. Maxy replaces the operational workload at a fraction of the cost.
101
- - **Skill packs are optional, not barriers.** Core Maxy works without skill packs. Packs add depth in specific areas.
100
+ - **The comparison is hiring, not software.** A part-time admin costs £18,000–£25,000/year. Real Agent replaces the operational workload at a fraction of the cost.
101
+ - **Skill packs are optional, not barriers.** Core Real Agent works without skill packs. Packs add depth in specific areas.
@@ -21,7 +21,7 @@ pinned commit, plus the upstream `LICENSE`.
21
21
 
22
22
  The upstream `.claude-plugin/plugin.json` was **not** copied — platform plugins
23
23
  generate their `plugin.json` from `PLUGIN.md` at bundle time. `PLUGIN.md` is a
24
- Maxy-platform addition, not upstream.
24
+ Real Agent-platform addition, not upstream.
25
25
 
26
26
  Upstream keeps a second copy of the theme templates at the repo root and some
27
27
  instructions read them from there (`../../deck.html`). The vendored plugin has no
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substack-import",
3
- "description": "Import a Substack 'Export your data' archive into the Maxy Neo4j graph. Skill-only plugin owned by the archive-ingest-operator specialist. Opt-in per brand — not enabled by default.",
3
+ "description": "Import a Substack 'Export your data' archive into the Real Agent Neo4j graph. Skill-only plugin owned by the archive-ingest-operator specialist. Opt-in per brand — not enabled by default.",
4
4
  "version": "0.1.0",
5
5
  "author": {
6
6
  "name": "Rubytech LLC"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: substack-import
3
- description: "Import a Substack 'Export your data' archive into the Maxy Neo4j graph. Skill-only plugin owned by the archive-ingest-operator specialist. Opt-in per brand — not enabled by default."
3
+ description: "Import a Substack 'Export your data' archive into the Real Agent Neo4j graph. Skill-only plugin owned by the archive-ingest-operator specialist. Opt-in per brand — not enabled by default."
4
4
  tools: []
5
5
  always: false
6
6
  embed: false
@@ -10,7 +10,7 @@ metadata: {"platform":{"optional":true,"pluginKey":"substack-import"}}
10
10
 
11
11
  # Substack Import
12
12
 
13
- Ingests a Substack "Export your data" archive (extracted directory or zip — `posts.csv` + per-post HTML bodies under `posts/`, `subscribers.csv`, an engagement events file when present, and an `images/` tree referenced from post bodies) into the Maxy Neo4j graph. Skill-only plugin — no MCP server, no admin tools added. The skill runs under the `specialists:archive-ingest-operator` specialist, which owns bulk external-archive ingestion.
13
+ Ingests a Substack "Export your data" archive (extracted directory or zip — `posts.csv` + per-post HTML bodies under `posts/`, `subscribers.csv`, an engagement events file when present, and an `images/` tree referenced from post bodies) into the Real Agent Neo4j graph. Skill-only plugin — no MCP server, no admin tools added. The skill runs under the `specialists:archive-ingest-operator` specialist, which owns bulk external-archive ingestion.
14
14
 
15
15
  ## When this applies
16
16
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=format-login-start.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-login-start.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/format-login-start.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { describe, it, expect } from "vitest";
2
+ import { buildLoginStartText } from "../format.js";
3
+ describe("buildLoginStartText", () => {
4
+ it("renders the pairing code and the phone-side steps", () => {
5
+ const text = buildLoginStartText({ message: "msg", pairingCode: "ABCD1234" });
6
+ expect(text).toContain("ABCD1234");
7
+ expect(text).toContain("Link with phone number instead");
8
+ expect(text).toContain("whatsapp-login-wait");
9
+ });
10
+ it("falls back to the message when no code is present", () => {
11
+ const text = buildLoginStartText({ message: "WhatsApp already linked (+44...)." });
12
+ expect(text).toContain("already linked");
13
+ expect(text).not.toContain("Link with phone number instead");
14
+ });
15
+ });
16
+ //# sourceMappingURL=format-login-start.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-login-start.test.js","sourceRoot":"","sources":["../../src/__tests__/format-login-start.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,IAAI,GAAG,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC;QAC9E,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,IAAI,GAAG,mBAAmB,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC,CAAC;QACnF,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Pure formatters for WhatsApp MCP tool results (testable without booting the server). */
2
+ export declare function buildLoginStartText(result: {
3
+ message?: string;
4
+ pairingCode?: string;
5
+ selfPhone?: string;
6
+ }): string;
7
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE3F,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,MAAM,CAkBT"}
@@ -0,0 +1,21 @@
1
+ /** Pure formatters for WhatsApp MCP tool results (testable without booting the server). */
2
+ export function buildLoginStartText(result) {
3
+ let response = result.message ?? "";
4
+ if (result.pairingCode) {
5
+ response = [
6
+ `WhatsApp pairing code: ${result.pairingCode}`,
7
+ "",
8
+ "Tell the operator, on the phone whose number this is:",
9
+ "1. Open WhatsApp → Settings → Linked Devices → Link a Device",
10
+ '2. Tap "Link with phone number instead"',
11
+ `3. Enter this code: ${result.pairingCode}`,
12
+ "",
13
+ "Then call whatsapp-login-wait to poll for completion.",
14
+ ].join("\n");
15
+ }
16
+ if (result.selfPhone) {
17
+ response += `\nLinked phone: ${result.selfPhone}`;
18
+ }
19
+ return response;
20
+ }
21
+ //# sourceMappingURL=format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE3F,MAAM,UAAU,mBAAmB,CAAC,MAInC;IACC,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;IACpC,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACvB,QAAQ,GAAG;YACT,0BAA0B,MAAM,CAAC,WAAW,EAAE;YAC9C,EAAE;YACF,uDAAuD;YACvD,8DAA8D;YAC9D,yCAAyC;YACzC,uBAAuB,MAAM,CAAC,WAAW,EAAE;YAC3C,EAAE;YACF,uDAAuD;SACxD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,QAAQ,IAAI,mBAAmB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpD,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -10,6 +10,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
10
10
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
11
11
  import { z } from "zod";
12
12
  import { callApi as rawCallApi } from "./call-api.js";
13
+ import { buildLoginStartText } from "./format.js";
13
14
  import { requirePortEnv } from "../../../../lib/require-port-env/dist/index.js";
14
15
  // Task 142 — PLATFORM_PORT is the internal loopback port, stamped on
15
16
  // the claude-session-manager systemd unit and forwarded by the
@@ -49,36 +50,23 @@ function textResult(text, isError = false) {
49
50
  };
50
51
  }
51
52
  // ─── whatsapp-login-start ──────────────────────────────────────────────
52
- server.tool("whatsapp-login-start", "Start WhatsApp QR code pairing. Initiates a Baileys WebSocket and generates a QR code the user scans with their phone. The tool returns the QR as a scannable ASCII block in its resultshow that block verbatim to the operator so they can scan it.", {
53
+ server.tool("whatsapp-login-start", 'Start WhatsApp pairing. Requires the operator\'s WhatsApp phone number (E.164). Returns an 8-character pairing code the operator types into WhatsApp Linked Devices Link a Device "Link with phone number instead." No QR image this surface is an async chat where a rotating QR cannot be scanned in time.', {
54
+ phone: z.string().describe("WhatsApp phone number in E.164 (e.g. +441234567890) — the number being linked"),
53
55
  accountId: z.string().optional().describe('Account ID (default: "default")'),
54
56
  force: z.boolean().optional().describe("Force re-link even if already connected"),
55
- }, async ({ accountId, force }) => {
57
+ }, async ({ phone, accountId, force }) => {
56
58
  try {
57
- const result = await callApi("whatsapp-login-start", "/api/whatsapp/login/start", "POST", { accountId, force });
59
+ const result = await callApi("whatsapp-login-start", "/api/whatsapp/login/start", "POST", { phone, accountId, force });
58
60
  if (result.error)
59
61
  return textResult(`Login start failed: ${result.error}`, true);
60
- let response = result.message;
61
- if (result.qrTerminal) {
62
- // PTY stdout is the only surface — print the QR as a scannable ASCII
63
- // block (fenced so the operator's terminal renders it monospaced).
64
- // Show this block verbatim to the operator so they can scan it.
65
- response += `\n\nScan this QR in WhatsApp → Linked Devices:\n\n\`\`\`\n${result.qrTerminal}\`\`\``;
66
- response += "\n\nThen call whatsapp-login-wait to poll for scan completion.";
67
- }
68
- else if (result.qrRaw) {
69
- response += "\n\nQR generated but could not be rendered for the terminal. Call whatsapp-login-wait to poll for scan completion.";
70
- }
71
- if (result.selfPhone) {
72
- response += `\nLinked phone: ${result.selfPhone}`;
73
- }
74
- return textResult(response);
62
+ return textResult(buildLoginStartText(result));
75
63
  }
76
64
  catch (err) {
77
65
  return textResult(`Login start failed: ${err instanceof Error ? err.message : String(err)}`, true);
78
66
  }
79
67
  });
80
68
  // ─── whatsapp-login-wait ───────────────────────────────────────────────
81
- server.tool("whatsapp-login-wait", "Wait for WhatsApp QR code to be scanned and connection to be established. Call after whatsapp-login-start. Polls for up to 60 seconds.", {
69
+ server.tool("whatsapp-login-wait", "Wait for the operator to enter the WhatsApp pairing code and the connection to establish. Call after whatsapp-login-start. Polls for up to 60 seconds; the pairing code stays valid and the login stays alive across polls, so call again to keep waiting.", {
82
70
  accountId: z.string().optional().describe('Account ID (default: "default")'),
83
71
  timeoutMs: z.number().optional().describe("Max wait time in ms (default: 60000)"),
84
72
  }, async ({ accountId, timeoutMs }) => {
@@ -107,6 +95,10 @@ server.tool("whatsapp-status", "Get WhatsApp connection status for all linked ac
107
95
  return textResult("No WhatsApp accounts configured. Say \"connect WhatsApp\" to get started.");
108
96
  }
109
97
  const lines = accounts.map((a) => {
98
+ if (a.linkedUnconfigured) {
99
+ const phone = a.selfPhone ? ` (${a.selfPhone})` : "";
100
+ return `${a.accountId}${phone}: ⚠ Linked but config was missing — repaired automatically. Re-run whatsapp-status to confirm it now shows Connected; if not, reconnect with "connect WhatsApp".`;
101
+ }
110
102
  const status = a.connected ? "✓ Connected" : "✗ Disconnected";
111
103
  const phone = a.selfPhone ? ` (${a.selfPhone})` : "";
112
104
  const name = a.accountName ? ` — ${a.accountName}` : "";
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AC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI;YACrF,iBAAiB,MAAM,CAAC,gBAAgB,IAAI;YAC5C,GAAG,KAAK;SACT,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAElB,OAAO,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,6CAA6C,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/G,OAAO,UAAU,CAAC,6BAA6B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC3G,CAAC;AACH,CAAC,CACF,CAAC;AAEF,0EAA0E;AAE1E,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
@@ -91,7 +91,7 @@ The platform enforces this at multiple levels:
91
91
  | **Admin phones** | Phones listed in `adminPhones` in `account.json`. The user's personal phone is auto-registered on QR link; additional phones are added via `whatsapp-config action: "add-admin-phone"`. | `isAdminPhone()` in `access-control.ts` — iterates `adminPhones` |
92
92
  | **Public/unknown** | Any phone that is not self and not in `adminPhones`. Subject to DM policy gating. | Everything else in `checkDmAccess()` |
93
93
 
94
- **Critical distinction:** The *self phone* is the paired device's number (the WhatsApp account Maxy controls). The *admin phone* is the user's personal phone (the phone they message *from*). These are typically different numbers. If the user's personal phone is not in `adminPhones`, their messages route as public — not admin.
94
+ **Critical distinction:** The *self phone* is the paired device's number (the WhatsApp account Real Agent controls). The *admin phone* is the user's personal phone (the phone they message *from*). These are typically different numbers. If the user's personal phone is not in `adminPhones`, their messages route as public — not admin.
95
95
 
96
96
  **`dmPolicy` behaviour (per-account):**
97
97
 
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: connect-whatsapp
3
- description: Guide the user through connecting WhatsApp via QR code pairing, registering admin phones, and selecting the public agent. Complete setup — not just pairing.
3
+ description: Guide the user through connecting WhatsApp via a typed pairing code, registering admin phones, and selecting the public agent. Complete setup — not just pairing.
4
4
  ---
5
5
 
6
6
  # Connect WhatsApp
7
7
 
8
- Conversational flow for linking a WhatsApp account to {{productName}} via Baileys QR pairing, followed by admin phone registration and public agent selection. All three phases are required for a correctly configured WhatsApp channel.
8
+ Conversational flow for linking a WhatsApp account to {{productName}} via a typed WhatsApp pairing code, followed by admin phone registration and public agent selection. All three phases are required for a correctly configured WhatsApp channel.
9
9
 
10
10
  ## When to activate
11
11
 
@@ -17,17 +17,19 @@ Call `whatsapp-status` first to check the current state. If already connected, t
17
17
 
18
18
  ## Flow
19
19
 
20
- ### Phase 1: QR Pairing
20
+ ### Phase 1: Pairing Code
21
21
 
22
- 1. **Initiate pairing** — call `whatsapp-login-start`. If the account is already linked and the user didn't say "relink", inform them and skip to Phase 2.
22
+ 1. **Get the WhatsApp number** — ask the operator for the phone number of the WhatsApp account being linked, in international format (e.g. +44 7700 900123). You need it before starting.
23
23
 
24
- 2. **QR code renders automatically** — the tool delivers the QR image to the chat surface inline. Tell the user: "Open WhatsApp on your phone Settings Linked Devices Link a Device Scan this QR code."
24
+ 2. **Initiate pairing** — call `whatsapp-login-start` with `phone` set to that number. If the account is already linked and the user didn't say "relink", inform them and skip to Phase 2.
25
25
 
26
- 3. **Wait for scan** — call `whatsapp-login-wait`. This polls for up to 60 seconds. While waiting, tell the user you're watching for the scan.
26
+ 3. **Give the operator the code** — the tool returns an 8-character pairing code. Show it and tell the user: "On the phone with that number, open WhatsApp → Settings → Linked Devices → Link a Device → tap 'Link with phone number instead', then enter this code: {code}."
27
27
 
28
- 4. **Confirm connection** — when pairing completes, the tool returns the linked phone number (the *self phone* the WhatsApp account {{productName}} now controls). The platform automatically registers this phone as an admin phone and creates the WhatsApp config in `account.json`. Confirm: "WhatsApp connected as {phone}. Your phone is registered as admin."
28
+ 4. **Wait for the link** — call `whatsapp-login-wait`. It polls for up to 60 seconds. The code stays valid and the connection stays alive across polls, so if it returns still-waiting, call it again do not generate a new code unless the operator asks. While waiting, tell the user you're watching for the link.
29
29
 
30
- 5. **Verify** — call `whatsapp-status` to confirm the connection is live.
30
+ 5. **Confirm connection** — when pairing completes, the tool returns the linked phone number (the *self phone* — the WhatsApp account {{productName}} now controls). The platform persists the WhatsApp config in `account.json` and registers this phone as an admin phone automatically, driven by the connection event (so it lands even when the link finishes after a restart, not only while you are polling). Confirm: "WhatsApp connected as {phone}. Your phone is registered as admin."
31
+
32
+ 6. **Verify** — call `whatsapp-status` and confirm the linked phone shows as Connected. If status reports "Linked but config was missing — repaired automatically," that is the self-heal: call `whatsapp-status` once more to confirm it now shows Connected. It must never report "No accounts configured" while a phone is linked; if it does, reconnect with `whatsapp-login-start force: true`.
31
33
 
32
34
  ### Phase 2: Additional Admin Phones
33
35
 
@@ -60,23 +62,23 @@ If only one public agent exists, confirm it as the choice rather than asking. If
60
62
  ## Relinking
61
63
 
62
64
  If the user says "relink WhatsApp" or the status shows disconnected with a 401 error:
63
- 1. Call `whatsapp-login-start` with `force: true` to clear old credentials and generate a fresh QR
65
+ 1. Call `whatsapp-login-start` with `force: true` and the WhatsApp `phone` to clear old credentials and issue a fresh pairing code
64
66
  2. Follow the same flow from Phase 1
65
67
 
66
68
  Admin phone registration and public agent selection persist across relinks — no need to repeat Phases 2-3 unless the user wants to change them.
67
69
 
68
70
  ## Troubleshooting
69
71
 
70
- - **QR expired** — generate a new one with `whatsapp-login-start`
71
- - **Phone not scanning** — ensure the phone has internet, WhatsApp is updated, and the user is in Linked Devices
72
+ - **Code expired** — generate a new one with `whatsapp-login-start` (with the `phone`)
73
+ - **Code not accepted** — ensure the phone has internet, WhatsApp is updated, and the operator used "Link with phone number instead" (not the camera scanner)
72
74
  - **Keeps disconnecting** — check `whatsapp-status` for error details. A 401 means re-link is needed. Repeated transient errors suggest network issues on the device.
73
75
  - **Messages routing as public** — the user's personal phone is not in `adminPhones`. Call `whatsapp-config` with `action: "add-admin-phone"` and the user's phone number to register it.
74
76
 
75
77
  ## Language
76
78
 
77
79
  Use plain English:
78
- - "QR code" not "Baileys pairing token"
79
- - "Link your phone" not "initiate WebSocket connection"
80
+ - "pairing code" not "Baileys pairing token"
81
+ - "Link your phone with a code" not "initiate WebSocket connection"
80
82
  - "WhatsApp is connected" not "Baileys socket is open"
81
83
  - "admin phone" not "allowFrom entry"
82
84
  - "public agent" not "defaultAgent slug"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-import",
3
- "description": "Import an X (Twitter) archive into the Maxy Neo4j graph. Skill-only plugin owned by the database-operator specialist. Opt-in per brand — not enabled by default.",
3
+ "description": "Import an X (Twitter) archive into the Real Agent Neo4j graph. Skill-only plugin owned by the database-operator specialist. Opt-in per brand — not enabled by default.",
4
4
  "version": "0.1.0",
5
5
  "author": {
6
6
  "name": "Rubytech LLC"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: x-import
3
- description: "Import an X (Twitter) archive into the Maxy Neo4j graph. Skill-only plugin owned by the database-operator specialist. Opt-in per brand — not enabled by default."
3
+ description: "Import an X (Twitter) archive into the Real Agent Neo4j graph. Skill-only plugin owned by the database-operator specialist. Opt-in per brand — not enabled by default."
4
4
  tools: []
5
5
  always: false
6
6
  embed: false
@@ -10,7 +10,7 @@ metadata: {"platform":{"optional":true,"pluginKey":"x-import"}}
10
10
 
11
11
  # X Import
12
12
 
13
- Ingests an X (formerly Twitter) Basic Data Export (extracted ZIP — a directory of `.js` shims plus media subdirectories) into the Maxy Neo4j graph. Skill-only plugin — no MCP server, no admin tools added. The skill runs under the `specialists:database-operator` specialist, which owns bulk external-archive ingestion.
13
+ Ingests an X (formerly Twitter) Basic Data Export (extracted ZIP — a directory of `.js` shims plus media subdirectories) into the Real Agent Neo4j graph. Skill-only plugin — no MCP server, no admin tools added. The skill runs under the `specialists:database-operator` specialist, which owns bulk external-archive ingestion.
14
14
 
15
15
  ## When this applies
16
16