@rubytech/create-realagent-code 0.1.581 → 0.1.583

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 (345) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/routine-templates/dist/index.d.ts +1 -1
  3. package/payload/platform/lib/routine-templates/dist/index.d.ts.map +1 -1
  4. package/payload/platform/lib/routine-templates/dist/index.js +5 -1
  5. package/payload/platform/lib/routine-templates/dist/index.js.map +1 -1
  6. package/payload/platform/lib/routine-templates/src/index.ts +4 -0
  7. package/payload/platform/lib/telegram-managed-bot/dist/index.d.ts +269 -0
  8. package/payload/platform/lib/telegram-managed-bot/dist/index.d.ts.map +1 -0
  9. package/payload/platform/lib/telegram-managed-bot/dist/index.js +351 -0
  10. package/payload/platform/lib/telegram-managed-bot/dist/index.js.map +1 -0
  11. package/payload/platform/lib/telegram-managed-bot/src/__tests__/managed-bot.test.ts +251 -0
  12. package/payload/platform/lib/telegram-managed-bot/src/index.ts +529 -0
  13. package/payload/platform/lib/telegram-managed-bot/tsconfig.json +9 -0
  14. package/payload/platform/lib/telegram-managed-bot/vitest.config.ts +9 -0
  15. package/payload/platform/lib/telegram-reach/dist/index.d.ts +80 -0
  16. package/payload/platform/lib/telegram-reach/dist/index.d.ts.map +1 -0
  17. package/payload/platform/lib/telegram-reach/dist/index.js +211 -0
  18. package/payload/platform/lib/telegram-reach/dist/index.js.map +1 -0
  19. package/payload/platform/lib/telegram-reach/src/__tests__/telegram-reach.test.ts +216 -0
  20. package/payload/platform/lib/telegram-reach/src/index.ts +262 -0
  21. package/payload/platform/lib/telegram-reach/tsconfig.json +9 -0
  22. package/payload/platform/lib/telegram-reach/vitest.config.ts +9 -0
  23. package/payload/platform/package.json +2 -2
  24. package/payload/platform/plugins/admin/PLUGIN.md +1 -1
  25. package/payload/platform/plugins/admin/hooks/__tests__/fs-schema-guard.test.sh +9 -0
  26. package/payload/platform/plugins/admin/hooks/__tests__/preference-consult-directive.test.sh +26 -0
  27. package/payload/platform/plugins/admin/hooks/fs-schema-guard.sh +20 -3
  28. package/payload/platform/plugins/admin/hooks/preference-consult-directive.sh +50 -5
  29. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +181 -9
  30. package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +17 -0
  31. package/payload/platform/plugins/contacts/mcp/dist/__tests__/telegram-user-id.test.d.ts +2 -0
  32. package/payload/platform/plugins/contacts/mcp/dist/__tests__/telegram-user-id.test.d.ts.map +1 -0
  33. package/payload/platform/plugins/contacts/mcp/dist/__tests__/telegram-user-id.test.js +100 -0
  34. package/payload/platform/plugins/contacts/mcp/dist/__tests__/telegram-user-id.test.js.map +1 -0
  35. package/payload/platform/plugins/contacts/mcp/dist/index.js +11 -5
  36. package/payload/platform/plugins/contacts/mcp/dist/index.js.map +1 -1
  37. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.d.ts +5 -0
  38. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.d.ts.map +1 -1
  39. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.js +21 -4
  40. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-create.js.map +1 -1
  41. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts +5 -0
  42. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts.map +1 -1
  43. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js +29 -1
  44. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js.map +1 -1
  45. package/payload/platform/plugins/contacts/mcp/vitest.config.ts +14 -0
  46. package/payload/platform/plugins/docs/references/admin-ui.md +20 -4
  47. package/payload/platform/plugins/docs/references/calendar-booking.md +2 -0
  48. package/payload/platform/plugins/docs/references/channel-wake-and-prompt.md +15 -0
  49. package/payload/platform/plugins/docs/references/telegram-guide.md +143 -4
  50. package/payload/platform/plugins/filesystem/PLUGIN.md +2 -2
  51. package/payload/platform/plugins/filesystem/mcp/dist/lib/__tests__/account-schema.test.d.ts +2 -0
  52. package/payload/platform/plugins/filesystem/mcp/dist/lib/__tests__/account-schema.test.d.ts.map +1 -0
  53. package/payload/platform/plugins/filesystem/mcp/dist/lib/__tests__/account-schema.test.js +108 -0
  54. package/payload/platform/plugins/filesystem/mcp/dist/lib/__tests__/account-schema.test.js.map +1 -0
  55. package/payload/platform/plugins/filesystem/mcp/dist/lib/account-schema.d.ts +17 -0
  56. package/payload/platform/plugins/filesystem/mcp/dist/lib/account-schema.d.ts.map +1 -0
  57. package/payload/platform/plugins/filesystem/mcp/dist/lib/account-schema.js +162 -0
  58. package/payload/platform/plugins/filesystem/mcp/dist/lib/account-schema.js.map +1 -0
  59. package/payload/platform/plugins/filesystem/mcp/dist/tools/__tests__/schema-fence.test.d.ts +2 -0
  60. package/payload/platform/plugins/filesystem/mcp/dist/tools/__tests__/schema-fence.test.d.ts.map +1 -0
  61. package/payload/platform/plugins/filesystem/mcp/dist/tools/__tests__/schema-fence.test.js +116 -0
  62. package/payload/platform/plugins/filesystem/mcp/dist/tools/__tests__/schema-fence.test.js.map +1 -0
  63. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-edit.d.ts.map +1 -1
  64. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-edit.js +9 -0
  65. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-edit.js.map +1 -1
  66. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-write.d.ts.map +1 -1
  67. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-write.js +10 -0
  68. package/payload/platform/plugins/filesystem/mcp/dist/tools/file-write.js.map +1 -1
  69. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/label-origin-gate.test.js +64 -1
  70. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/label-origin-gate.test.js.map +1 -1
  71. package/payload/platform/plugins/memory/mcp/dist/lib/label-origin-gate.d.ts +5 -0
  72. package/payload/platform/plugins/memory/mcp/dist/lib/label-origin-gate.d.ts.map +1 -1
  73. package/payload/platform/plugins/memory/mcp/dist/lib/label-origin-gate.js +28 -6
  74. package/payload/platform/plugins/memory/mcp/dist/lib/label-origin-gate.js.map +1 -1
  75. package/payload/platform/plugins/memory/references/schema-knowledge-work.md +1 -1
  76. package/payload/platform/plugins/scheduling/PLUGIN.md +19 -3
  77. package/payload/platform/plugins/scheduling/mcp/dist/index.js +7 -2
  78. package/payload/platform/plugins/scheduling/mcp/dist/index.js.map +1 -1
  79. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/gate-audits.test.js +53 -6
  80. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/gate-audits.test.js.map +1 -1
  81. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/gate.test.js +38 -0
  82. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/gate.test.js.map +1 -1
  83. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/meeting-uid-stamp.test.d.ts +2 -0
  84. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/meeting-uid-stamp.test.d.ts.map +1 -0
  85. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/meeting-uid-stamp.test.js +102 -0
  86. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/meeting-uid-stamp.test.js.map +1 -0
  87. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/schedule-audit.test.js +43 -9
  88. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/schedule-audit.test.js.map +1 -1
  89. package/payload/platform/plugins/scheduling/mcp/dist/lib/booking-reconcile.d.ts +50 -0
  90. package/payload/platform/plugins/scheduling/mcp/dist/lib/booking-reconcile.d.ts.map +1 -1
  91. package/payload/platform/plugins/scheduling/mcp/dist/lib/booking-reconcile.js +47 -1
  92. package/payload/platform/plugins/scheduling/mcp/dist/lib/booking-reconcile.js.map +1 -1
  93. package/payload/platform/plugins/scheduling/mcp/dist/lib/gate.d.ts +5 -3
  94. package/payload/platform/plugins/scheduling/mcp/dist/lib/gate.d.ts.map +1 -1
  95. package/payload/platform/plugins/scheduling/mcp/dist/lib/gate.js +18 -3
  96. package/payload/platform/plugins/scheduling/mcp/dist/lib/gate.js.map +1 -1
  97. package/payload/platform/plugins/scheduling/mcp/dist/lib/schedule-audit.d.ts +40 -0
  98. package/payload/platform/plugins/scheduling/mcp/dist/lib/schedule-audit.d.ts.map +1 -1
  99. package/payload/platform/plugins/scheduling/mcp/dist/lib/schedule-audit.js +132 -41
  100. package/payload/platform/plugins/scheduling/mcp/dist/lib/schedule-audit.js.map +1 -1
  101. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +14 -1
  102. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
  103. package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js +61 -1
  104. package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js.map +1 -1
  105. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-gate-write.test.js +258 -8
  106. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-gate-write.test.js.map +1 -1
  107. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-trash-filter.test.d.ts +2 -0
  108. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-trash-filter.test.d.ts.map +1 -0
  109. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-trash-filter.test.js +67 -0
  110. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-trash-filter.test.js.map +1 -0
  111. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/scheduling-gate.test.js +206 -3
  112. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/scheduling-gate.test.js.map +1 -1
  113. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.d.ts.map +1 -1
  114. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js +8 -1
  115. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js.map +1 -1
  116. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.d.ts +29 -21
  117. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.d.ts.map +1 -1
  118. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.js +94 -14
  119. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-event.js.map +1 -1
  120. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts.map +1 -1
  121. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js +6 -1
  122. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js.map +1 -1
  123. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts.map +1 -1
  124. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js +7 -2
  125. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js.map +1 -1
  126. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.d.ts.map +1 -1
  127. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js +46 -3
  128. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js.map +1 -1
  129. package/payload/platform/plugins/scheduling/mcp/dist/tools/scheduling-gate.d.ts +30 -0
  130. package/payload/platform/plugins/scheduling/mcp/dist/tools/scheduling-gate.d.ts.map +1 -1
  131. package/payload/platform/plugins/scheduling/mcp/dist/tools/scheduling-gate.js +69 -6
  132. package/payload/platform/plugins/scheduling/mcp/dist/tools/scheduling-gate.js.map +1 -1
  133. package/payload/platform/plugins/whatsapp/references/channels-whatsapp.md +12 -0
  134. package/payload/platform/services/claude-session-manager/dist/account-dir-schema-reconcile.d.ts +36 -5
  135. package/payload/platform/services/claude-session-manager/dist/account-dir-schema-reconcile.d.ts.map +1 -1
  136. package/payload/platform/services/claude-session-manager/dist/account-dir-schema-reconcile.js +103 -10
  137. package/payload/platform/services/claude-session-manager/dist/account-dir-schema-reconcile.js.map +1 -1
  138. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  139. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +2 -0
  140. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  141. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
  142. package/payload/platform/services/claude-session-manager/dist/http-server.js +42 -4
  143. package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
  144. package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
  145. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +19 -5
  146. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
  147. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts +9 -0
  148. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  149. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +5 -1
  150. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  151. package/payload/platform/services/telegram-channel/dist/instructions.d.ts.map +1 -1
  152. package/payload/platform/services/telegram-channel/dist/instructions.js +13 -0
  153. package/payload/platform/services/telegram-channel/dist/instructions.js.map +1 -1
  154. package/payload/platform/services/telegram-channel/dist/notification.d.ts +40 -0
  155. package/payload/platform/services/telegram-channel/dist/notification.d.ts.map +1 -1
  156. package/payload/platform/services/telegram-channel/dist/notification.js +41 -4
  157. package/payload/platform/services/telegram-channel/dist/notification.js.map +1 -1
  158. package/payload/platform/services/whatsapp-channel/dist/notification.d.ts +52 -0
  159. package/payload/platform/services/whatsapp-channel/dist/notification.d.ts.map +1 -1
  160. package/payload/platform/services/whatsapp-channel/dist/notification.js +64 -1
  161. package/payload/platform/services/whatsapp-channel/dist/notification.js.map +1 -1
  162. package/payload/platform/services/whatsapp-channel/dist/server.d.ts.map +1 -1
  163. package/payload/platform/services/whatsapp-channel/dist/server.js +14 -2
  164. package/payload/platform/services/whatsapp-channel/dist/server.js.map +1 -1
  165. package/payload/platform/templates/account-schema/SCHEMA.md +17 -10
  166. package/payload/platform/templates/agents/admin/IDENTITY.md +5 -0
  167. package/payload/platform/templates/specialists/agents/data-manager.md +2 -2
  168. package/payload/platform/templates/specialists/agents/personal-assistant.md +1 -1
  169. package/payload/server/{chunk-BFRB2U75.js → chunk-CV6AEMKH.js} +1 -0
  170. package/payload/server/{manager-CTVTF4YB.js → manager-FQSQSSJ3.js} +1 -1
  171. package/payload/server/public/activity.html +6 -6
  172. package/payload/server/public/agents.html +5 -5
  173. package/payload/server/public/assets/{AdminLoginScreens-B1lu4-_F.js → AdminLoginScreens-BLsDYWVi.js} +1 -1
  174. package/payload/server/public/assets/AdminLoginScreens-BLsDYWVi.js.br +0 -0
  175. package/payload/server/public/assets/AdminLoginScreens-BLsDYWVi.js.gz +0 -0
  176. package/payload/server/public/assets/{AdminShell-BMslfZxN.js → AdminShell-BZS8jzFA.js} +1 -1
  177. package/payload/server/public/assets/AdminShell-BZS8jzFA.js.br +0 -0
  178. package/payload/server/public/assets/AdminShell-BZS8jzFA.js.gz +0 -0
  179. package/payload/server/public/assets/{activity-kQ3w70LJ.js → activity-DOjvoLdd.js} +1 -1
  180. package/payload/server/public/assets/activity-DOjvoLdd.js.br +0 -0
  181. package/payload/server/public/assets/activity-DOjvoLdd.js.gz +0 -0
  182. package/payload/server/public/assets/{admin-CkASgYA7.js → admin-JrSNg29g.js} +1 -1
  183. package/payload/server/public/assets/admin-JrSNg29g.js.br +0 -0
  184. package/payload/server/public/assets/admin-JrSNg29g.js.gz +0 -0
  185. package/payload/server/public/assets/{agents-Cn_bZgnD.js → agents--9WMJVLC.js} +1 -1
  186. package/payload/server/public/assets/agents--9WMJVLC.js.br +0 -0
  187. package/payload/server/public/assets/agents--9WMJVLC.js.gz +0 -0
  188. package/payload/server/public/assets/{browser-BE-GDk5-.js → browser-DiiMmTrM.js} +1 -1
  189. package/payload/server/public/assets/browser-DiiMmTrM.js.br +0 -0
  190. package/payload/server/public/assets/browser-DiiMmTrM.js.gz +0 -0
  191. package/payload/server/public/assets/{calendar-Di7BEHHN.js → calendar-CazmCzgO.js} +1 -1
  192. package/payload/server/public/assets/calendar-CazmCzgO.js.br +0 -0
  193. package/payload/server/public/assets/calendar-CazmCzgO.js.gz +0 -0
  194. package/payload/server/public/assets/chat-CB0TcyXX.js +1 -0
  195. package/payload/server/public/assets/chat-CB0TcyXX.js.br +0 -0
  196. package/payload/server/public/assets/chat-CB0TcyXX.js.gz +0 -0
  197. package/payload/server/public/assets/chevron-left-0tVo23Dh.js +1 -0
  198. package/payload/server/public/assets/chevron-left-0tVo23Dh.js.br +0 -0
  199. package/payload/server/public/assets/clock-D2cZ0sge.js +1 -0
  200. package/payload/server/public/assets/clock-D2cZ0sge.js.br +0 -0
  201. package/payload/server/public/assets/clock-D2cZ0sge.js.gz +0 -0
  202. package/payload/server/public/assets/{copy-nkxspu2J.js → copy-C87QIN_o.js} +1 -1
  203. package/payload/server/public/assets/copy-C87QIN_o.js.br +0 -0
  204. package/payload/server/public/assets/copy-C87QIN_o.js.gz +0 -0
  205. package/payload/server/public/assets/data-CK7AMxPt.js +1 -0
  206. package/payload/server/public/assets/data-CK7AMxPt.js.br +0 -0
  207. package/payload/server/public/assets/data-CK7AMxPt.js.gz +0 -0
  208. package/payload/server/public/assets/{field-2rIXxGMt.js → field-C3kQgGWE.js} +1 -1
  209. package/payload/server/public/assets/field-C3kQgGWE.js.br +0 -0
  210. package/payload/server/public/assets/field-C3kQgGWE.js.gz +0 -0
  211. package/payload/server/public/assets/{file-text-CdSqrscg.js → file-text-rWowl9RN.js} +1 -1
  212. package/payload/server/public/assets/file-text-rWowl9RN.js.br +0 -0
  213. package/payload/server/public/assets/file-text-rWowl9RN.js.gz +0 -0
  214. package/payload/server/public/assets/{graph-BfBHHXaC.js → graph-CVJKz1Uo.js} +1 -1
  215. package/payload/server/public/assets/graph-CVJKz1Uo.js.br +0 -0
  216. package/payload/server/public/assets/graph-CVJKz1Uo.js.gz +0 -0
  217. package/payload/server/public/assets/{graph-labels-CHW2aBke.js → graph-labels-kneGnsHB.js} +1 -1
  218. package/payload/server/public/assets/graph-labels-kneGnsHB.js.br +0 -0
  219. package/payload/server/public/assets/graph-labels-kneGnsHB.js.gz +0 -0
  220. package/payload/server/public/assets/{jsx-runtime-D43jgaWP.css → jsx-runtime-rMaiYjNu.css} +1 -1
  221. package/payload/server/public/assets/jsx-runtime-rMaiYjNu.css.br +0 -0
  222. package/payload/server/public/assets/{jsx-runtime-D43jgaWP.css.gz → jsx-runtime-rMaiYjNu.css.gz} +0 -0
  223. package/payload/server/public/assets/{operator-DRn9LITC.js → operator-BGvB4hu4.js} +1 -1
  224. package/payload/server/public/assets/operator-BGvB4hu4.js.br +0 -0
  225. package/payload/server/public/assets/operator-BGvB4hu4.js.gz +0 -0
  226. package/payload/server/public/assets/{page-D_9mPS6W.js → page-DBQLOasI.js} +1 -1
  227. package/payload/server/public/assets/page-DBQLOasI.js.br +0 -0
  228. package/payload/server/public/assets/page-DBQLOasI.js.gz +0 -0
  229. package/payload/server/public/assets/{page-BwqQsoU8.js → page-DyVAu7tm.js} +1 -1
  230. package/payload/server/public/assets/page-DyVAu7tm.js.br +0 -0
  231. package/payload/server/public/assets/page-DyVAu7tm.js.gz +0 -0
  232. package/payload/server/public/assets/play-DgP7vl0r.js +1 -0
  233. package/payload/server/public/assets/play-DgP7vl0r.js.br +0 -0
  234. package/payload/server/public/assets/play-DgP7vl0r.js.gz +0 -0
  235. package/payload/server/public/assets/{public-CrjZYpdW.js → public-BvUQR3hd.js} +1 -1
  236. package/payload/server/public/assets/public-BvUQR3hd.js.br +0 -0
  237. package/payload/server/public/assets/public-BvUQR3hd.js.gz +0 -0
  238. package/payload/server/public/assets/{rotate-ccw-J9f-GWjm.js → rotate-ccw-Dnn7gbPh.js} +1 -1
  239. package/payload/server/public/assets/rotate-ccw-Dnn7gbPh.js.br +0 -0
  240. package/payload/server/public/assets/rotate-ccw-Dnn7gbPh.js.gz +0 -0
  241. package/payload/server/public/assets/{routines-C1AB-3FR.js → routines-N8NmxPOZ.js} +1 -1
  242. package/payload/server/public/assets/routines-N8NmxPOZ.js.br +0 -0
  243. package/payload/server/public/assets/routines-N8NmxPOZ.js.gz +0 -0
  244. package/payload/server/public/assets/{skills-C4EfNKEx.js → skills-B2CRgO-U.js} +1 -1
  245. package/payload/server/public/assets/skills-B2CRgO-U.js.br +0 -0
  246. package/payload/server/public/assets/skills-B2CRgO-U.js.gz +0 -0
  247. package/payload/server/public/assets/{tasks-DszD3aZl.js → tasks-8QLGtlSj.js} +1 -1
  248. package/payload/server/public/assets/tasks-8QLGtlSj.js.br +0 -0
  249. package/payload/server/public/assets/tasks-8QLGtlSj.js.gz +0 -0
  250. package/payload/server/public/assets/{triangle-alert-B5WAyAkC.js → triangle-alert-el772yUQ.js} +1 -1
  251. package/payload/server/public/assets/triangle-alert-el772yUQ.js.br +0 -0
  252. package/payload/server/public/assets/triangle-alert-el772yUQ.js.gz +0 -0
  253. package/payload/server/public/assets/{useCopyFeedback-B2nuNNJw.js → useCopyFeedback-DfNAu8hQ.js} +1 -1
  254. package/payload/server/public/assets/useCopyFeedback-DfNAu8hQ.js.br +0 -0
  255. package/payload/server/public/assets/useCopyFeedback-DfNAu8hQ.js.gz +0 -0
  256. package/payload/server/public/assets/{useMediaQuery-DUPJPHQt.js → useMediaQuery-B469O83-.js} +1 -1
  257. package/payload/server/public/assets/useMediaQuery-B469O83-.js.br +0 -0
  258. package/payload/server/public/assets/useMediaQuery-B469O83-.js.gz +0 -0
  259. package/payload/server/public/assets/useVoiceRecorder-Bb-51cJv.js +2 -0
  260. package/payload/server/public/assets/useVoiceRecorder-Bb-51cJv.js.br +0 -0
  261. package/payload/server/public/assets/useVoiceRecorder-Bb-51cJv.js.gz +0 -0
  262. package/payload/server/public/assets/{wrench-DZJZm17j.js → wrench-Ck4phkdB.js} +1 -1
  263. package/payload/server/public/assets/wrench-Ck4phkdB.js.br +0 -0
  264. package/payload/server/public/assets/wrench-Ck4phkdB.js.gz +0 -0
  265. package/payload/server/public/browser.html +5 -5
  266. package/payload/server/public/calendar.html +8 -8
  267. package/payload/server/public/chat.html +14 -14
  268. package/payload/server/public/data.html +12 -12
  269. package/payload/server/public/field.html +3 -3
  270. package/payload/server/public/graph.html +10 -10
  271. package/payload/server/public/index.html +14 -14
  272. package/payload/server/public/operator.html +15 -15
  273. package/payload/server/public/public.html +14 -14
  274. package/payload/server/public/routines.html +8 -8
  275. package/payload/server/public/skills.html +6 -6
  276. package/payload/server/public/tasks.html +7 -7
  277. package/payload/server/server.js +3777 -1258
  278. package/payload/server/public/assets/AdminLoginScreens-B1lu4-_F.js.br +0 -0
  279. package/payload/server/public/assets/AdminLoginScreens-B1lu4-_F.js.gz +0 -0
  280. package/payload/server/public/assets/AdminShell-BMslfZxN.js.br +0 -0
  281. package/payload/server/public/assets/AdminShell-BMslfZxN.js.gz +0 -0
  282. package/payload/server/public/assets/activity-kQ3w70LJ.js.br +0 -0
  283. package/payload/server/public/assets/activity-kQ3w70LJ.js.gz +0 -0
  284. package/payload/server/public/assets/admin-CkASgYA7.js.br +0 -0
  285. package/payload/server/public/assets/admin-CkASgYA7.js.gz +0 -0
  286. package/payload/server/public/assets/agents-Cn_bZgnD.js.br +0 -0
  287. package/payload/server/public/assets/agents-Cn_bZgnD.js.gz +0 -0
  288. package/payload/server/public/assets/browser-BE-GDk5-.js.br +0 -0
  289. package/payload/server/public/assets/browser-BE-GDk5-.js.gz +0 -0
  290. package/payload/server/public/assets/calendar-Di7BEHHN.js.br +0 -0
  291. package/payload/server/public/assets/calendar-Di7BEHHN.js.gz +0 -0
  292. package/payload/server/public/assets/chat-CKyMT5Ai.js +0 -1
  293. package/payload/server/public/assets/chat-CKyMT5Ai.js.br +0 -1
  294. package/payload/server/public/assets/chat-CKyMT5Ai.js.gz +0 -0
  295. package/payload/server/public/assets/chevron-left-Id9VAZAz.js +0 -1
  296. package/payload/server/public/assets/chevron-left-Id9VAZAz.js.br +0 -0
  297. package/payload/server/public/assets/clock-DKpWWJbJ.js +0 -1
  298. package/payload/server/public/assets/clock-DKpWWJbJ.js.br +0 -0
  299. package/payload/server/public/assets/copy-nkxspu2J.js.br +0 -0
  300. package/payload/server/public/assets/copy-nkxspu2J.js.gz +0 -0
  301. package/payload/server/public/assets/data-1c33cAHp.js +0 -1
  302. package/payload/server/public/assets/data-1c33cAHp.js.br +0 -2
  303. package/payload/server/public/assets/data-1c33cAHp.js.gz +0 -0
  304. package/payload/server/public/assets/field-2rIXxGMt.js.br +0 -0
  305. package/payload/server/public/assets/field-2rIXxGMt.js.gz +0 -0
  306. package/payload/server/public/assets/file-text-CdSqrscg.js.br +0 -0
  307. package/payload/server/public/assets/file-text-CdSqrscg.js.gz +0 -0
  308. package/payload/server/public/assets/graph-BfBHHXaC.js.br +0 -0
  309. package/payload/server/public/assets/graph-BfBHHXaC.js.gz +0 -0
  310. package/payload/server/public/assets/graph-labels-CHW2aBke.js.br +0 -0
  311. package/payload/server/public/assets/graph-labels-CHW2aBke.js.gz +0 -0
  312. package/payload/server/public/assets/jsx-runtime-D43jgaWP.css.br +0 -0
  313. package/payload/server/public/assets/operator-DRn9LITC.js.br +0 -0
  314. package/payload/server/public/assets/operator-DRn9LITC.js.gz +0 -0
  315. package/payload/server/public/assets/page-BwqQsoU8.js.br +0 -0
  316. package/payload/server/public/assets/page-BwqQsoU8.js.gz +0 -0
  317. package/payload/server/public/assets/page-D_9mPS6W.js.br +0 -0
  318. package/payload/server/public/assets/page-D_9mPS6W.js.gz +0 -0
  319. package/payload/server/public/assets/play-7LTxCuLX.js +0 -1
  320. package/payload/server/public/assets/play-7LTxCuLX.js.br +0 -0
  321. package/payload/server/public/assets/play-7LTxCuLX.js.gz +0 -0
  322. package/payload/server/public/assets/public-CrjZYpdW.js.br +0 -0
  323. package/payload/server/public/assets/public-CrjZYpdW.js.gz +0 -0
  324. package/payload/server/public/assets/rotate-ccw-J9f-GWjm.js.br +0 -0
  325. package/payload/server/public/assets/rotate-ccw-J9f-GWjm.js.gz +0 -0
  326. package/payload/server/public/assets/routines-C1AB-3FR.js.br +0 -0
  327. package/payload/server/public/assets/routines-C1AB-3FR.js.gz +0 -0
  328. package/payload/server/public/assets/skills-C4EfNKEx.js.br +0 -0
  329. package/payload/server/public/assets/skills-C4EfNKEx.js.gz +0 -0
  330. package/payload/server/public/assets/tasks-DszD3aZl.js.br +0 -0
  331. package/payload/server/public/assets/tasks-DszD3aZl.js.gz +0 -0
  332. package/payload/server/public/assets/triangle-alert-B5WAyAkC.js.br +0 -4
  333. package/payload/server/public/assets/triangle-alert-B5WAyAkC.js.gz +0 -0
  334. package/payload/server/public/assets/useCopyFeedback-B2nuNNJw.js.br +0 -0
  335. package/payload/server/public/assets/useCopyFeedback-B2nuNNJw.js.gz +0 -0
  336. package/payload/server/public/assets/useMediaQuery-DUPJPHQt.js.br +0 -0
  337. package/payload/server/public/assets/useMediaQuery-DUPJPHQt.js.gz +0 -0
  338. package/payload/server/public/assets/useVoiceRecorder-CCK60d2i.js +0 -2
  339. package/payload/server/public/assets/useVoiceRecorder-CCK60d2i.js.br +0 -0
  340. package/payload/server/public/assets/useVoiceRecorder-CCK60d2i.js.gz +0 -0
  341. package/payload/server/public/assets/wrench-DZJZm17j.js.br +0 -0
  342. package/payload/server/public/assets/wrench-DZJZm17j.js.gz +0 -0
  343. /package/payload/server/public/assets/{jsx-runtime-Cjug_Cyb.js → jsx-runtime-BmNepPEn.js} +0 -0
  344. /package/payload/server/public/assets/{jsx-runtime-Cjug_Cyb.js.br → jsx-runtime-BmNepPEn.js.br} +0 -0
  345. /package/payload/server/public/assets/{jsx-runtime-Cjug_Cyb.js.gz → jsx-runtime-BmNepPEn.js.gz} +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: platform-architecture
3
3
  description: Use when grounding any documented-surface claim about what Real Agent ships — plugins, skills, specialists, install/deploy flows, internals. This is the install catalogue, not evidence of what is enabled on the current account. For install state on this account, call `capabilities-here`; for documented surface, cite the `Source:` URL inline.
4
- content-hash: sha256:60be7ab1389cfd76fa7d342e058dcd1cb72e418ec01b25aa02558bb03c7449b0
4
+ content-hash: sha256:8994bfc27989b0255dd286327b6a7bb0127110ed1285b7c6daff4ddf264e2609
5
5
  brand: realagent-code
6
6
  product-name: Real Agent
7
7
  ---
@@ -2042,6 +2042,21 @@ for that door alone.
2042
2042
  census prints every cycle, including when the counts agree: an absent line means
2043
2043
  the census stopped, never that delivery is healthy.
2044
2044
 
2045
+ ## Which channels can start a conversation
2046
+
2047
+ Answering an inbound and starting a new conversation are different powers, and
2048
+ only the first is available on every door.
2049
+
2050
+ | Channel | Can start a conversation with | Cannot |
2051
+ |---|---|---|
2052
+ | WhatsApp | a registered admin phone, a registered account manager, or a registered party, through `whatsapp-send-admin` | any other number. The cold-send tools were removed after one such send tripped WhatsApp's anti-automation enforcement and restricted the account, and no setting re-enables them. |
2053
+ | Telegram | any chat that has already messaged the bot | a chat that has not. Telegram itself refuses it. |
2054
+ | Email | any address, once a mailbox is attached | nothing, once a mailbox is attached |
2055
+ | Admin webchat | nobody. It is a browser chat the operator opens | anything outbound |
2056
+
2057
+ The admin identity carries the same rule under its `## Channel reality` section,
2058
+ so an agent that has loaded no plugin skill still knows it. The two must agree.
2059
+
2045
2060
  ## Which door an answer reaches
2046
2061
 
2047
2062
  The door the message arrived on, and no other. A question asked on WhatsApp is
@@ -2816,6 +2831,24 @@ The Telegram plugin connects Real Agent to a Telegram bot. Once set up, you can:
2816
2831
 
2817
2832
  ## Setup
2818
2833
 
2834
+ ### Adding a second bot: no BotFather at all
2835
+
2836
+ Once you have one working admin bot, you never need BotFather again to add another. Tell
2837
+ Real Agent: "create a new Telegram bot." It sends you a single button. Tap it, give the bot a
2838
+ name, and Telegram hands the bot straight to Real Agent — it stores the credentials, locks the
2839
+ bot so only you can reach it, and connects it. No token is shown to anyone and nothing is copied or
2840
+ pasted.
2841
+
2842
+ One thing has to be switched on first, once per managing bot: open @BotFather, go to its Mini App,
2843
+ select your admin bot and turn on management of other bots. Real Agent checks this before
2844
+ sending the button and tells you if it is missing, so you never end up with a button that does
2845
+ nothing.
2846
+
2847
+ A bot made this way arrives switched off: it answers nobody until you tell Real Agent which
2848
+ assistant should run on it.
2849
+
2850
+ Your **first** bot still comes from BotFather, below, and so does any bot you already own.
2851
+
2819
2852
  ### Step 1: Create a Telegram bot
2820
2853
 
2821
2854
  1. Open Telegram and search for `@BotFather`
@@ -2827,11 +2860,59 @@ The Telegram plugin connects Real Agent to a Telegram bot. Once set up, you can:
2827
2860
 
2828
2861
  Tell Real Agent: "Set up Telegram" or "Configure the Telegram bot." Setup runs entirely in the admin chat — there is no settings page.
2829
2862
 
2830
- Real Agent asks for your bot token, then asks whether this is an **admin bot** (only your numeric Telegram IDs may message it) or a **public bot** (customer-facing, with a DM policy). It verifies the token, registers the bot's webhook on your brand's edge, stores the token under your brand's config (never in a shared system directory), and — for a public bot — sets the agent that will answer. The bot is now connected.
2863
+ Real Agent asks for your bot token, then asks what kind of bot this is:
2864
+
2865
+ - an **admin bot** — only your numeric Telegram IDs may message it, and it answers as your admin agent;
2866
+ - a **public bot** — customer-facing, with a DM policy, answering as one of your account's agents;
2867
+ - a **specialist bot** — bound to one of your own specialists, so messaging it runs that specialist with its own instructions and its own tools rather than your admin agent. You name the specialist and the numeric IDs allowed to reach it. Both are required: there is no open setting for this kind, because the specialist has real tools rather than the reply-only surface a public bot gets.
2868
+
2869
+ It verifies the token, registers the bot's webhook on your brand's edge, stores the token under your brand's config (never in a shared system directory), and sets whichever agent or specialist will answer. The bot is now connected.
2831
2870
 
2832
2871
  ### Step 3: Start the bot
2833
2872
 
2834
- In Telegram, open your bot and send `/start`, then a message. Real Agent receives it and replies in the same chat. Admin-bot messages from your registered IDs reach the admin agent; public-bot messages reach the public agent you selected.
2873
+ In Telegram, open your bot and send `/start`, then a message. Real Agent receives it and replies in the same chat. Admin-bot messages from your registered IDs reach the admin agent; public-bot messages reach the public agent you selected; specialist-bot messages reach that specialist, in a conversation that stays the same one from one day to the next.
2874
+
2875
+ ### Step 4 (optional): Use the bot in a group
2876
+
2877
+ Only a **public** bot can work in a group. An admin bot added to a group answers nobody, on purpose: it runs your own agent, with your own standing rules and tools, and a group is a room other people read.
2878
+
2879
+ Three things have to be true:
2880
+
2881
+ 1. **Group privacy is on.** In BotFather: `/mybots`, pick the bot, Bot Settings, Group Privacy, Turn on. With privacy on the bot sees only messages that name it — a command, an @mention, or a reply to something it said. It cannot read the rest of the conversation. Real Agent refuses to connect a bot with privacy off and tells you this step.
2882
+ 2. **The bot is in the group.** A group admin adds it, the same way any member is added.
2883
+ 3. **You allowlist the group.** Tell Real Agent: "Let the bot answer in this group," and give it the group's chat ID (see Getting a Chat ID below). Until you do, the bot stays silent there.
2884
+
2885
+ Once a group is allowlisted, **anyone in that group can talk to the bot** — not only the people on your DM allowlist. Allowlisting a room is a decision about the room, not about its members.
2886
+
2887
+ Everyone in the group shares one conversation, and each message tells Real Agent who sent it. If the group uses topics, an answer comes back inside the topic the question was asked in.
2888
+
2889
+ ### Step 5 (optional): Use the bot in a channel
2890
+
2891
+ A channel is a broadcast: a post goes to every subscriber, and it cannot be taken back. So this one
2892
+ is worth reading twice before you set it up.
2893
+
2894
+ Only a **public** bot can work in a channel, for the same reason only a public bot can work in a
2895
+ group.
2896
+
2897
+ Two things have to be true:
2898
+
2899
+ 1. **The bot is a channel admin with permission to post.** A channel admin adds it and ticks "Post
2900
+ Messages". Without that tick the bot can still read the channel but every attempt to post fails
2901
+ quietly.
2902
+ 2. **You allowlist the channel.** Tell Real Agent: "Let the bot use this channel," and give it
2903
+ the channel's chat ID. Until you do, the bot neither reads that channel nor posts to it.
2904
+
2905
+ Unlike a group, allowlisting a channel decides **both directions at once**. Once a channel is on the
2906
+ list, Real Agent can post to it. A channel that is not on the list is refused before anything
2907
+ is sent, and you are told which channel and why.
2908
+
2909
+ Posts in a channel have no author — Telegram does not say who wrote one — so Real Agent sees
2910
+ the post as coming from the channel itself, by name.
2911
+
2912
+ **Comments.** If your channel has a linked discussion group, people can comment under each post.
2913
+ Allowlist that group too (Step 4) and Real Agent can read the comments and answer them under
2914
+ the right post. Somebody who comments anonymously shows up as the group rather than as a person,
2915
+ because that is all Telegram sends.
2835
2916
 
2836
2917
  ## Sending Messages via Real Agent
2837
2918
 
@@ -2843,13 +2924,28 @@ Once connected, tell Real Agent to send messages on your behalf:
2843
2924
 
2844
2925
  Real Agent needs a chat ID or username to target a specific person or group. For groups, you'll need to add the bot to the group first.
2845
2926
 
2927
+ ## Who your bot can message
2928
+
2929
+ Telegram does not let a bot start a conversation. Anyone who has messaged one of your bots can be
2930
+ messaged back at any time; anyone who never has must write to the bot first. That is Telegram's own
2931
+ rule and nothing here can get around it.
2932
+
2933
+ Ask Real Agent: "Who can you reach on Telegram?" It lists every bot you have registered, the
2934
+ people who have messaged each one and when they last wrote, and anyone on a bot's admin list who has
2935
+ never messaged. Being on the admin list is not the same as having opened the chat, so those people
2936
+ are listed separately as not reachable yet.
2937
+
2938
+ If Real Agent ever says a Telegram message cannot be sent, ask it to check that list first.
2939
+
2846
2940
  ## Getting a Chat ID
2847
2941
 
2848
2942
  To message a specific person or group, Real Agent needs their chat ID. The easiest way:
2849
2943
 
2850
2944
  1. Have the person (or yourself) send any message to your bot
2851
- 2. Ask Real Agent: "What chat IDs have messaged the bot recently?"
2852
- 3. Real Agent will look up the message history and show you the IDs
2945
+ 2. Ask Real Agent: "Who can you reach on Telegram?"
2946
+ 3. Real Agent will show you every chat that has messaged, with its ID
2947
+
2948
+ A group's ID is a long negative number, like `-1001234567890`. To find it, @mention the bot once in the group and then ask Real Agent the same question — the group will be in the list even though the bot is not yet allowed to answer there.
2853
2949
 
2854
2950
  ## Message History
2855
2951
 
@@ -2861,6 +2957,10 @@ Ask Real Agent: "What messages has the bot received?" or "Show recent Telegram a
2861
2957
 
2862
2958
  **Can't send to a group:** The bot must be a member of the group. Add it via the group settings in Telegram, then try again.
2863
2959
 
2960
+ **"That channel isn't on the allowlist":** Real Agent refuses to post to a channel or group you haven't allowlisted, and it refuses before anything is sent. Give it the chat ID and say you want the bot to use it. This applies to public bots only — an admin bot cannot post to any channel or group at all.
2961
+
2962
+ **The bot reads a channel but can't post to it:** It is a channel admin without the "Post Messages" permission. Turn that on in the channel's admin settings.
2963
+
2864
2964
  **Messages not arriving:** Make sure the bot hasn't been blocked. Try sending `/start` to the bot directly.
2865
2965
 
2866
2966
  ## Sending from the dashboard
@@ -2902,12 +3002,66 @@ nobody, and a vote was dropped without a trace. A press on a job-sheet card is t
2902
3002
  one exception: the dispatch plugin applies the change and tells the presser
2903
3003
  itself, so Real Agent does not answer a second time.
2904
3004
 
3005
+ The same is now true of most of what Telegram sends. Reply to one of
3006
+ Real Agent's messages and it sees the message you replied to, so "yes, do
3007
+ that one" means something. React to a message with an emoji and it hears the
3008
+ reaction and what it was on. When a poll closes, it hears the final counts. When
3009
+ somebody blocks the bot, that appears in the logs instead of sends quietly
3010
+ failing.
3011
+
3012
+ Two things worth knowing about reactions. Telegram sends them only to a bot that
3013
+ is an administrator of the chat, and a one-to-one chat has no administrator, so a
3014
+ reaction in a private chat may never arrive at all. And a reaction on a message
3015
+ Real Agent itself sent will say the original is not held: it knows the
3016
+ reaction happened, not what it was on.
3017
+
3018
+ Payments now complete. Telegram gives a bot ten seconds to approve a checkout
3019
+ before cancelling it, which is faster than anything that has to think, so
3020
+ Real Agent approves it automatically and then tells you the sale happened,
3021
+ with your own reference on it. If you sell a subscription, a customer cancelling,
3022
+ re-subscribing or failing to pay all reach Real Agent as well.
3023
+
2905
3024
  One limit worth knowing, and it is Telegram's rather than ours. Telegram only
2906
3025
  reports who voted in a poll that is **not** anonymous, and polls are anonymous
2907
3026
  unless you say otherwise. Ask for a poll where you can see who chose what, and
2908
3027
  Real Agent will send it that way; ask for a plain poll and Telegram will tell
2909
3028
  nobody how anyone voted, so no reply is possible.
2910
3029
 
3030
+ ## Checklists and Telegram Business
3031
+
3032
+ Real Agent can send a Telegram checklist, the kind with tick-boxes that anyone in the chat can
3033
+ mark off. Telegram only allows this on behalf of a **business account**, never from a bot on its own,
3034
+ so there is one thing to do first: in Telegram, open Settings, then Business, then Chatbots, and
3035
+ connect your bot there.
3036
+
3037
+ That is the whole setup. Real Agent notices the connection the moment you make it and remembers
3038
+ it, so from then on you can just ask for a checklist. Disconnect the bot and it stops, and
3039
+ Real Agent will tell you that is why rather than failing silently.
3040
+
3041
+ One limit, and it is Telegram's. A message sent on behalf of a business account cannot carry a button
3042
+ that opens a small web page, so a checklist and a job-sheet button arrive as two messages rather than
3043
+ one.
3044
+
3045
+ ## Your customers' messages
3046
+
3047
+ Connecting the bot to your business account does more than unlock checklists. From that moment,
3048
+ messages your customers send to the business account reach Real Agent too, and it can answer
3049
+ them in the customer's own chat.
3050
+
3051
+ Those conversations are kept entirely separate from your own. A customer talking to your business
3052
+ account never lands in the chat you use with Real Agent, even if it is somebody who also
3053
+ messages you directly, and Real Agent answers a customer as your public assistant rather than as
3054
+ your personal one. Your own notes and standing instructions are never visible in a customer's
3055
+ conversation.
3056
+
3057
+ When a customer edits a message, the message you are looking at changes to match. When they delete
3058
+ one, it stays in view but crossed out and marked deleted, so you can still see what was withdrawn.
3059
+
3060
+ **The one thing worth knowing: Telegram gives you 24 hours.** You may reply to a customer only within
3061
+ 24 hours of their last message. After that Telegram closes the door and there is no way to reopen it
3062
+ except for the customer to write again. Real Agent will refuse a late reply and tell you the
3063
+ window has closed, rather than letting it fail silently.
3064
+
2911
3065
  Five of the 185 are deliberately refused, because they would break your own
2912
3066
  inbound messages: setting or deleting the webhook by hand, polling Telegram for
2913
3067
  updates instead, and the two that move the bot off Telegram's cloud servers.
@@ -3338,6 +3492,8 @@ Click any entry to open its details, where you can also edit it: the full title,
3338
3492
 
3339
3493
  Everything on the calendar comes from records the rest of Real Agent already uses, scoped to your account.
3340
3494
 
3495
+ Two things about what Real Agent itself can see and change. A deleted entry no longer comes back when Real Agent lists your diary, so if you or Real Agent removed a duplicate, it stays removed. And every entry Real Agent can see, Real Agent can now also change or cancel. Before, some entries could be read and not touched, and Real Agent would say so rather than act. If you ask Real Agent to record something *about* a meeting rather than the meeting itself, it writes that as a note attached to the meeting.
3496
+
3341
3497
  ## The public booking page
3342
3498
 
3343
3499
  The booking page is a separate, public site on its own web address (for example `book.yourdomain.com`). A visitor sees only open time slots, never the titles or details of your existing meetings. They pick a slot, enter their name, email, and an optional note, and submit. That is the whole flow, like a simple Calendly.
@@ -3923,7 +4079,9 @@ either is a regression.
3923
4079
 
3924
4080
  **WhatsApp reader is read/write (WhatsApp-Web surface).** A WhatsApp store conversation in the operator Conversations reader (`OperatorConversations`) and the admin root channel viewer (`app/page.tsx`) no longer opens the plain read-only DM chrome — it opens `app/whatsapp/WhatsappWebConversation.tsx`, a WhatsApp-Web-styled surface: a conversation header, the delivered-only store transcript reskinned green/white under a `.wa-web` root class, and a reply composer (`app/whatsapp/ReplyComposer.tsx`). The operator can type text, insert emoji (a codepoint-data picker — no OS input, so the `check-no-emoji-in-jsx` gate stays green), record a voice note (MediaRecorder → the existing audio send path), attach a file **from device storage** (a modal browsing the DATA_ROOT tree via `GET /api/admin/files`, sent by reference — the OS file dialog is no longer the reader's picker), reply to a specific message (a per-bubble affordance that quotes the original in the composer and threads natively on WhatsApp), and search the loaded transcript (a header control that filters to matching turns and highlights the match). The header carries only that Search control — the former Video / Phone / menu icons are gone, because no call or presence data exists behind them. Sent files honour the webchat allowlist (`SUPPORTED_MIME_SET` / 50 MB / 5 files); a device-file reference is authorised server-side (`authorizeReplyFileRef`) against the send's own account (the conversation owner) **or** the session's pinned account (`getAccountIdForSession` — the exact scope the DeviceFilePicker used to offer it), so a house/managing-admin session can attach a managed-client file the picker listed. Because a reply sends bytes OUT to an external WhatsApp recipient, any other account, a `public` partition, and any install-wide / non-account path are refused fail-closed; the cross-account admission's authority is the session's pinned account, never the caller-supplied body `accountId` (the own-account admission matches the body `accountId`, which the route already trusts via `isValidAccountId` and the existing-conversation guard). A scope refusal returns a distinct HTTP 403 reason (`file-ref-cross-account` / `file-ref-public` / `file-ref-foreign`) and copy, never "device file not found" (reserved for a genuine resolve/stat miss). Per-ref `[wa-manual-send] op=reply-file-ref … via=own|session|deny reason=<…> ok=<bool>` logs the decision before any send; `via=deny ok=true` is the exfiltration signature that must never appear. **Send is reply-only and DM-only:** `POST /api/whatsapp-reader/reply` (`requireAdminSession`) refuses any target with no existing stored conversation (`reason=no-existing-conversation`, HTTP 403) — a cold first-contact send bans the account, so the composer is never a cold-contact path, enforced server-side — and refuses `@g.us` groups (`reason=group-send-blocked`), matching the agent's observe-only group invariant; a group thread shows a read-only note in place of the composer. The endpoint is the sole store writer for a manual send: right after each send resolves it appends the record itself, stamped `origin:'operator-manual'` (attributed "You", distinct from an assistant reply), because the Baileys echo that normally persists the store is gated on message text (`manager.ts:906`) and would leave an uncaptioned media send delivered-but-invisible. The record's `messageId` matches the echo's derivation so the async text echo's own persist dedups to a no-op; the send is confirmed by re-read (`op=recorded present=<bool>`). A sent send does not spawn an assistant turn (echo dispatch stays suppressed). Attachments deliver as WhatsApp media/documents and render **inline** in the store reader (image thumbnail / pdf preview / audio player / download chip), because the manual-send path records the message with the servable `attachmentId`. The `.wa-web` skin is scoped to WhatsApp store threads only, so `/chat`, the admin agent session view, and the public visitor webchat are unchanged; the visitor webchat gains no send capability. The in-bubble delivered-tick is cosmetic (no read-receipt data is stored); inbound bubbles keep their sender name so group threads stay attributable, and both directions carry a WhatsApp callout tail (`.wa-web`-scoped only). Non-WhatsApp reader rows (Telegram/webchat session JSONLs) keep the plain read-only `Transcript`. Observability rides `[wa-manual-send]` lines correlated by a per-request `sendId`. **Composer sizing matches the webchat composer:** the reply textarea auto-grows to fit multi-line content (measured from `scrollHeight`, clamped to a one-row minimum and a `viewport/3` maximum, scrollable past the cap with the scrollbar hidden), and a top-border grab handle drags (pointer) or nudges (ArrowUp/ArrowDown, keyboard-focusable) to an explicit height in the same clamp; a manual drag pins the height and overrides auto-grow until the field is cleared, which releases it back to auto-grow. A completed manual resize logs `[operator-ui] op=wa-composer-resize mode=drag|key h=<px>`; a bare click on the handle (no drag) logs nothing.
3925
4081
 
3926
- **Shared locations show a map.** When someone shares a location on WhatsApp, the conversation shows a small map with a pin on the spot, above the coordinates themselves. Selecting the map opens the full map on OpenStreetMap in a new tab. A location shared as a place name with no coordinates shows the name only, because there is no point to put a pin on. The map images are fetched by your browser from OpenStreetMap, so the shared coordinates reach that service when a location bubble is on screen.
4082
+ **Shared locations show a map.** When someone shares a location on WhatsApp, the conversation shows a small map with a pin on the spot, above the coordinates themselves. A location shared as a place name with no coordinates shows the name only, because there is no point to put a pin on. The map images are fetched by your browser from OpenStreetMap, so the shared coordinates reach that service when a location bubble is on screen.
4083
+
4084
+ **Selecting a map opens one you can move around.** The small map opens a larger one over the conversation: drag to move it, scroll or pinch to zoom in and out, double-click to zoom in, and press Escape or select the backdrop to close it. On a phone it fills the screen. A link at the bottom still opens the same spot on OpenStreetMap in a new tab if you want it there. Someone sharing their live location keeps arriving as they move, and the open map keeps centring on where they are now until you move it yourself; from then on your own view stays put while the trail keeps growing, and a **Follow** button brings it back to following them.
3927
4085
 
3928
4086
  **`/chat` live activity line.** While a turn is in flight the transcript tail shows one ephemeral `ChatActivity` line (mounted only while `busy`, admin/operator only). It tracks real activity, not a timer: while a `Task` subagent runs it shows that subagent's headline (`agentType · description`, prefixed `N agents ·` when ≥2 are concurrent), sourced from `agent-<hex>.meta.json` via named `activity` SSE events the admin reader pushes from the session's `subagents/` dir; with no subagent active it shows a neutral word that advances only on a real turn arrival. The line carries a turn-elapsed clock and flips to a `stalled` state once nothing has been written for 5 minutes (`now − lastEmitAt`), so the operator can tell a wedge from progress without SSH. It is never added to the persisted timeline. Detail and the `[webchat-activity]` observability live in [`admin-webchat-native-channel.md`](../../../.docs/admin-webchat-native-channel.md).
3929
4087
 
@@ -4641,17 +4799,31 @@ another account's directory, for every session including a house-scoped one, and
4641
4799
  the Bash snapshot pair watches the account's own layout. All of them live in the
4642
4800
  account's `.claude/settings.json`, and a hook that is not registered there runs
4643
4801
  never and emits nothing, so the silence reads identical to a clean account. The
4644
- same pass therefore checks the five registrations per account and reports any
4802
+ same pass therefore checks the six registrations per account and reports any
4645
4803
  absence as
4646
4804
  `[fs-reconcile] op=hook-registration account=<id8> missing=<matcher>:<hook>,…`,
4647
4805
  with `hooks-missing=0 hooks-unaudited=0` on the summary line as the per-cycle
4648
4806
  proof the fence is wired everywhere. An account whose settings cannot be read
4649
4807
  counts as unaudited rather than clean, so an install where none of them can be
4650
- read never reports itself as fenced. The refusal itself is agent-facing and lands
4651
- in the session's own child log as
4808
+ read never reports itself as fenced. The sixth row is the per-turn filing
4809
+ directive, whose template entry carries no matcher at all, so that row is
4810
+ reported by its event as `UserPromptSubmit:preference-consult-directive.sh`. The
4811
+ refusal itself is agent-facing and lands in the session's own child log as
4652
4812
  `[fs-guard] blocked path=<abs> reason=cross-account target=<id8>`, not in
4653
4813
  `server.log`.
4654
4814
 
4815
+ The same pass also emits
4816
+ `[fs-reconcile] op=entity-subdirs account=<id8> entities=<n> archive=<m> stray=<s>`
4817
+ for every account on every cycle, not only on drift: `archive/` is the one folder
4818
+ permitted under an entity folder, a write that wrongly succeeds emits nothing,
4819
+ and `stray` above zero is the only signature an over-wide rule leaves.
4820
+ `entities` is on the same line because `stray=0` cannot otherwise be told from a
4821
+ walker that read nothing. The `file-write` and `file-edit` tools carry the same
4822
+ five-reason fence as the native route; their refusals log the same
4823
+ `[fs-guard] blocked` line into `mcp-filesystem-<sessionId>.log`, the plugin
4824
+ server's own tee sink, because `lib/mcp-spawn-tee` mirrors only its
4825
+ `[mcp-helper]` lifecycle lines into `server.log`.
4826
+
4655
4827
  ### Graph
4656
4828
 
4657
4829
  | Mount | Purpose |
@@ -9,6 +9,23 @@ Invoked by the admin agent directly.
9
9
 
10
10
  This is the platform's release timeline, newest first. Each entry shows the date it shipped and the version it shipped in, so you can tell the operator how current their install is. To compare, read the installed version from `capabilities-here` and match it against the versions below. Keep answers high level and in plain English; this is a summary, not a full commit log.
11
11
 
12
+ ## 2026-08-09 (0.1.583)
13
+
14
+ - A connected Telegram Business account can now be answered. Its customer chats were being received and dropped, so the bot could not see or reply to a single one of them.
15
+ - A Telegram bot can work in a group, be set up without going through BotFather, and be tied to a particular specialist. Previously a bot named as a personal assistant still booted the main admin persona, so handing work to a specialist was a request rather than a route — and adding the admin bot to a group would have put the admin persona in a room other people read.
16
+ - The assistant no longer refuses things it can actually do, or offers things it cannot. It recommended sending on WhatsApp, which no tool can start, while refusing a Telegram message that one call would have sent because the chat was invisible to it. Both now match what the channels really support.
17
+ - A standing instruction about where work gets filed now reaches every conversation, not only those arriving over a channel.
18
+ - A Telegram channel works in both directions. A channel post was dropped by a check that insisted on a human sender, and no comment on it could be attributed or answered.
19
+ - When Telegram would do the job better than WhatsApp, the assistant now says so, rather than leaving the weaker channel as the default by saying nothing.
20
+ - Three checks that could not fail have been fixed: one asked the database a question that could only ever answer yes and then discarded the answer; one accepted a prompt that forbade the very thing it was meant to require, because it only looked for the words anywhere in the text; and the mail position marker was case-sensitive on the folder name, so renaming a folder's capitalisation silently restarted it from the beginning.
21
+
22
+ ## 2026-08-09 (0.1.582)
23
+
24
+ - Telegram now understands the full range of what arrives, not a quarter of it. Only four of the twenty-six kinds of update were handled, so a reply reached the assistant without the message it was replying to, a reaction never arrived at all, and a Stars payment could not complete.
25
+ - A Telegram Business connection is now kept rather than announced and thrown away, which is what a native checklist needs in order to be sent.
26
+ - The typing indicator keeps going while a background task runs, instead of stopping the moment the work moved off the main turn.
27
+ - A shared location can be panned and zoomed where it sits. Opening a new browser tab was the only way to move the map.
28
+
12
29
  ## 2026-08-09 (0.1.581)
13
30
 
14
31
  - Pressing a button or voting in a poll on Telegram now reaches the assistant. Only plain text messages ever did, so every other kind of interaction was accepted and then went nowhere.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=telegram-user-id.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telegram-user-id.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/telegram-user-id.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,100 @@
1
+ import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
2
+ const runs = [];
3
+ let records = [];
4
+ vi.mock("../lib/neo4j.js", () => ({
5
+ getSession: () => ({
6
+ run: async (query, params) => {
7
+ runs.push({ query, params });
8
+ return {
9
+ records: records.map((r) => ({ get: (k) => r[k] })),
10
+ };
11
+ },
12
+ close: async () => { },
13
+ }),
14
+ closeDriver: async () => { },
15
+ }));
16
+ const { contactCreate } = await import("../tools/contact-create.js");
17
+ const { contactLookup } = await import("../tools/contact-lookup.js");
18
+ const KIT = 8860040117;
19
+ let errors;
20
+ beforeEach(() => {
21
+ runs.length = 0;
22
+ records = [];
23
+ errors = [];
24
+ vi.spyOn(console, "error").mockImplementation((...a) => {
25
+ errors.push(a.join(" "));
26
+ });
27
+ });
28
+ afterEach(() => {
29
+ vi.restoreAllMocks();
30
+ });
31
+ // Both assertions ride ONE call, on the dedup-hit path. That is deliberate: a
32
+ // dedup MISS runs on into computeEmbedding (a real fetch to Ollama) and
33
+ // writeNodeWithEdges, neither of which this test has any business exercising.
34
+ // The dedup query is the first thing contactCreate runs, so a hit proves both
35
+ // that the condition was built and that the match short-circuits the write.
36
+ describe("contact-create dedupes on telegramUserId", () => {
37
+ it("builds the dedup condition and returns the existing person", async () => {
38
+ records = [{ nodeId: "4:x:9", email: null, telephone: null, telegramUserId: KIT }];
39
+ const out = await contactCreate({
40
+ givenName: "Kit",
41
+ telegramUserId: KIT,
42
+ source: "telegram",
43
+ relationships: [{ type: "KNOWN_VIA", direction: "outgoing", targetNodeId: "4:x:1" }],
44
+ accountId: "acct",
45
+ createdBy: { tool: "contact-create" },
46
+ });
47
+ expect(runs).toHaveLength(1);
48
+ expect(runs[0].query).toContain("p.telegramUserId = $telegramUserId");
49
+ expect(runs[0].params.telegramUserId).toBe(KIT);
50
+ expect(out.alreadyExists).toBe(true);
51
+ expect(out.nodeId).toBe("4:x:9");
52
+ expect(out.identifier).toBe(String(KIT));
53
+ });
54
+ });
55
+ describe("contact-lookup finds by telegramUserId", () => {
56
+ it("matches on the property and logs a hit", async () => {
57
+ records = [
58
+ {
59
+ p: {
60
+ properties: {
61
+ givenName: "Kit",
62
+ source: "telegram",
63
+ status: "active",
64
+ createdOn: "x",
65
+ telegramUserId: KIT,
66
+ },
67
+ },
68
+ nodeId: "4:x:9",
69
+ prefs: [],
70
+ },
71
+ ];
72
+ const out = await contactLookup({ telegramUserId: KIT, accountId: "acct" });
73
+ expect(runs[0].query).toContain("p.telegramUserId = $telegramUserId");
74
+ expect(out).toHaveLength(1);
75
+ expect(out[0].telegramUserId).toBe(KIT);
76
+ expect(errors).toContain("[contacts] op=lookup key=telegramUserId hit=true");
77
+ });
78
+ it("logs a miss when nothing matches", async () => {
79
+ records = [];
80
+ await contactLookup({ telegramUserId: KIT, accountId: "acct" });
81
+ expect(errors).toContain("[contacts] op=lookup key=telegramUserId hit=false");
82
+ });
83
+ it("logs nothing about telegramUserId on a lookup that does not carry it", async () => {
84
+ records = [];
85
+ await contactLookup({ email: "a@b.c", accountId: "acct" });
86
+ expect(errors.join("\n")).not.toContain("key=telegramUserId");
87
+ });
88
+ // Email wins the branch race, so the query never touches telegramUserId. A
89
+ // hit logged here would report the id path as working on the day it broke,
90
+ // which is precisely what this line exists to detect.
91
+ it("logs nothing when the id was supplied but a higher-priority key took the branch", async () => {
92
+ records = [
93
+ { p: { properties: { givenName: "Kit", source: "x", status: "y", createdOn: "z" } }, nodeId: "4:x:9", prefs: [] },
94
+ ];
95
+ await contactLookup({ email: "a@b.c", telegramUserId: KIT, accountId: "acct" });
96
+ expect(runs[0].query).toContain("p.email = $email");
97
+ expect(errors.join("\n")).not.toContain("key=telegramUserId");
98
+ });
99
+ });
100
+ //# sourceMappingURL=telegram-user-id.test.js.map
@@ -0,0 +1 @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AAM,EAAE,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,mDAAmD,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,KAAK,IAAI,EAAE;QACpF,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,2EAA2E;IAC3E,2EAA2E;IAC3E,sDAAsD;IACtD,EAAE,CAAC,iFAAiF,EAAE,KAAK,IAAI,EAAE;QAC/F,OAAO,GAAG;YACR,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;SAClH,CAAC;QACF,MAAM,aAAa,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAChF,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -38,11 +38,16 @@ const sessionId = process.env.SESSION_ID;
38
38
  // Task 476 — boot signal so a stale spawn-env contract is visible at the
39
39
  // first byte of stderr.
40
40
  process.stderr.write(`[contacts] boot accountId=${accountId ?? "-"} sessionId=${sessionId || "-"} agentSlug=${agentSlug || "-"}\n`);
41
- eagerTool(server, "contact-create", "Create a new contact (schema:Person) in the graph. Any single identifying property — name, email, or telephone — suffices; the agent judges what to capture and dedup/conflicts are managed downstream. When email or telephone is supplied, contact-create deduplicates against existing live persons and returns the match instead of writing a duplicate. The new contact must link to at least one existing node (typically a Conversation or Organization) — pass elementIds found via memory-search.", {
41
+ eagerTool(server, "contact-create", "Create a new contact (schema:Person) in the graph. Any single identifying property — name, email, telephone, or Telegram user id — suffices; the agent judges what to capture and dedup/conflicts are managed downstream. When email, telephone or telegramUserId is supplied, contact-create deduplicates against existing live persons and returns the match instead of writing a duplicate. Supply telegramUserId for anyone reached on Telegram, so they can be found by it later. The new contact must link to at least one existing node (typically a Conversation or Organization) — pass elementIds found via memory-search.", {
42
42
  givenName: z.string().optional().describe("First name (optional — supply whichever identifying fields you have)"),
43
43
  familyName: z.string().optional().describe("Last name"),
44
44
  email: z.string().email().optional().describe("Email address — when present, used as the dedup key"),
45
45
  telephone: z.string().min(1).max(30).optional().describe("Phone number — when present, used as the dedup key"),
46
+ telegramUserId: z
47
+ .number()
48
+ .int()
49
+ .optional()
50
+ .describe("Numeric Telegram user id — when present, used as the dedup key. This is the only stable identifier a Telegram chat gives you; telegram-reach reports it for everyone who has messaged one of this account's bots."),
46
51
  jobTitle: z.string().optional().describe("Job title"),
47
52
  source: z
48
53
  .string()
@@ -103,16 +108,17 @@ eagerTool(server, "contact-create", "Create a new contact (schema:Person) in the
103
108
  };
104
109
  }
105
110
  });
106
- eagerTool(server, "contact-lookup", "Search for contacts by email, telephone, name, or list recent contacts. Returns each schema:Person node's open-by-default properties and any preferences attached to it, so a caller can honour contact-level routing (an always-CC or an alternate address) before drafting.", {
111
+ eagerTool(server, "contact-lookup", "Search for contacts by email, telephone, Telegram user id, name, or list recent contacts. Returns each schema:Person node's open-by-default properties and any preferences attached to it, so a caller can honour contact-level routing (an always-CC or an alternate address) before drafting.", {
107
112
  email: z.string().optional().describe("Exact email match"),
108
113
  telephone: z.string().optional().describe("Exact phone number match"),
114
+ telegramUserId: z.number().int().optional().describe("Exact numeric Telegram user id match — use this to put a name to a chat id that telegram-reach reported"),
109
115
  name: z.string().optional().describe("Partial or full name search, matched against the composed givenName + familyName display name"),
110
116
  limit: z.number().int().optional().describe("Max results (default 10)"),
111
- }, async ({ email, telephone, name, limit }) => {
117
+ }, async ({ email, telephone, telegramUserId, name, limit }) => {
112
118
  if (!accountId)
113
119
  return refuseNoAccount("contact-lookup");
114
120
  try {
115
- const results = await contactLookup({ email, telephone, name, accountId, limit });
121
+ const results = await contactLookup({ email, telephone, telegramUserId, name, accountId, limit });
116
122
  if (results.length === 0) {
117
123
  return {
118
124
  content: [
@@ -143,7 +149,7 @@ eagerTool(server, "contact-update", "Update properties of an existing contact. I
143
149
  nodeId: z.string().optional().describe("Find contact by node ID"),
144
150
  updates: z
145
151
  .record(z.string(), z.unknown())
146
- .describe("Properties to update (e.g. status, telephone, jobTitle)"),
152
+ .describe("Properties to update (e.g. status, telephone, jobTitle, telegramUserId — the numeric Telegram user id, which is what makes the contact findable by contact-lookup from a chat id)"),
147
153
  }, async ({ email, telephone, nodeId, updates }) => {
148
154
  if (!accountId)
149
155
  return refuseNoAccount("contact-update");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,aAAa,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+4,11 @@ interface ContactCreateParams {
4
4
  familyName?: string;
5
5
  email?: string;
6
6
  telephone?: string;
7
+ /** Task 2625 — the person's numeric Telegram user id, a dedup key alongside
8
+ * email and telephone. On Telegram it is the ONLY stable identifier a chat
9
+ * hands you, so a contact created from a Telegram conversation previously had
10
+ * nothing it could later be found by. */
11
+ telegramUserId?: number;
7
12
  jobTitle?: string;
8
13
  source: string;
9
14
  status?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contact-create.d.ts","sourceRoot":"","sources":["../../src/tools/contact-create.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,8CAA8C,CAAC;AAqBtD,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CA6H9B"}
1
+ {"version":3,"file":"contact-create.d.ts","sourceRoot":"","sources":["../../src/tools/contact-create.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,8CAA8C,CAAC;AAqBtD,UAAU,mBA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