@rubytech/create-sitedesk-code 0.1.531 → 0.1.533

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 (188) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +10 -7
  3. package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +12 -0
  4. package/payload/platform/plugins/docs/references/calendar-booking.md +9 -6
  5. package/payload/platform/plugins/scheduling/PLUGIN.md +1 -1
  6. package/payload/platform/plugins/whatsapp/PLUGIN.md +4 -2
  7. package/payload/platform/plugins/whatsapp/mcp/dist/index.js +35 -6
  8. package/payload/platform/plugins/whatsapp/mcp/dist/index.js.map +1 -1
  9. package/payload/platform/plugins/whatsapp/references/channels-whatsapp.md +12 -4
  10. package/payload/platform/plugins/whatsapp/skills/manage-whatsapp-config/SKILL.md +11 -1
  11. package/payload/server/{chunk-SVB5NZ64.js → chunk-AJC3SQSF.js} +114 -18
  12. package/payload/server/{manager-4Q3DTLXO.js → manager-PLRHVALC.js} +1 -1
  13. package/payload/server/public/activity.html +5 -5
  14. package/payload/server/public/agents.html +4 -4
  15. package/payload/server/public/assets/{AdminLoginScreens-7Czw3MAC.js → AdminLoginScreens-CGRty7xT.js} +1 -1
  16. package/payload/server/public/assets/AdminLoginScreens-CGRty7xT.js.br +0 -0
  17. package/payload/server/public/assets/AdminLoginScreens-CGRty7xT.js.gz +0 -0
  18. package/payload/server/public/assets/{AdminShell-D5GApZ_n.js → AdminShell-BQy9Ob22.js} +1 -1
  19. package/payload/server/public/assets/AdminShell-BQy9Ob22.js.br +0 -0
  20. package/payload/server/public/assets/AdminShell-BQy9Ob22.js.gz +0 -0
  21. package/payload/server/public/assets/{CdpScreencastSurface-BbekDUFw.js → CdpScreencastSurface-BrDZji8F.js} +1 -1
  22. package/payload/server/public/assets/CdpScreencastSurface-BrDZji8F.js.br +0 -0
  23. package/payload/server/public/assets/CdpScreencastSurface-BrDZji8F.js.gz +0 -0
  24. package/payload/server/public/assets/{activity-ClI-RgJu.js → activity-0IcMRF5a.js} +1 -1
  25. package/payload/server/public/assets/activity-0IcMRF5a.js.br +0 -0
  26. package/payload/server/public/assets/activity-0IcMRF5a.js.gz +0 -0
  27. package/payload/server/public/assets/{admin-svtCmBPk.js → admin-CKy-bmrs.js} +1 -1
  28. package/payload/server/public/assets/admin-CKy-bmrs.js.br +0 -0
  29. package/payload/server/public/assets/admin-CKy-bmrs.js.gz +0 -0
  30. package/payload/server/public/assets/{agents-BO8YBj8d.js → agents-xjw-fJjo.js} +1 -1
  31. package/payload/server/public/assets/agents-xjw-fJjo.js.br +0 -0
  32. package/payload/server/public/assets/agents-xjw-fJjo.js.gz +0 -0
  33. package/payload/server/public/assets/{browser-Bj8oTG5R.js → browser-ByWKTnUQ.js} +1 -1
  34. package/payload/server/public/assets/browser-ByWKTnUQ.js.br +0 -0
  35. package/payload/server/public/assets/browser-ByWKTnUQ.js.gz +0 -0
  36. package/payload/server/public/assets/calendar-DX2tE1B2.js +1 -0
  37. package/payload/server/public/assets/calendar-DX2tE1B2.js.br +0 -0
  38. package/payload/server/public/assets/calendar-DX2tE1B2.js.gz +0 -0
  39. package/payload/server/public/assets/chat-DkNDthRg.js +1 -0
  40. package/payload/server/public/assets/chat-DkNDthRg.js.br +0 -0
  41. package/payload/server/public/assets/chat-DkNDthRg.js.gz +0 -0
  42. package/payload/server/public/assets/chevron-left-CPwk14nY.js +1 -0
  43. package/payload/server/public/assets/chevron-right-Bz6INVTF.js +1 -0
  44. package/payload/server/public/assets/chevron-right-Bz6INVTF.js.br +0 -0
  45. package/payload/server/public/assets/clock-3YLNejcB.js +1 -0
  46. package/payload/server/public/assets/clock-3YLNejcB.js.br +0 -0
  47. package/payload/server/public/assets/clock-3YLNejcB.js.gz +0 -0
  48. package/payload/server/public/assets/data-DiDeaOUN.js +1 -0
  49. package/payload/server/public/assets/data-DiDeaOUN.js.br +0 -0
  50. package/payload/server/public/assets/data-DiDeaOUN.js.gz +0 -0
  51. package/payload/server/public/assets/{file-download-Di_s0_4w.js → file-download-ChX5qAB2.js} +1 -1
  52. package/payload/server/public/assets/file-download-ChX5qAB2.js.br +0 -0
  53. package/payload/server/public/assets/file-download-ChX5qAB2.js.gz +0 -0
  54. package/payload/server/public/assets/{file-text-CP1KIrJV.js → file-text-DziWy8hF.js} +1 -1
  55. package/payload/server/public/assets/file-text-DziWy8hF.js.br +0 -0
  56. package/payload/server/public/assets/file-text-DziWy8hF.js.gz +0 -0
  57. package/payload/server/public/assets/{graph-BCMscnCV.js → graph-Ci8RmSp3.js} +1 -1
  58. package/payload/server/public/assets/graph-Ci8RmSp3.js.br +0 -0
  59. package/payload/server/public/assets/{graph-BCMscnCV.js.gz → graph-Ci8RmSp3.js.gz} +0 -0
  60. package/payload/server/public/assets/{graph-labels-CgP17xHK.js → graph-labels-JkRVzaVL.js} +1 -1
  61. package/payload/server/public/assets/graph-labels-JkRVzaVL.js.br +0 -0
  62. package/payload/server/public/assets/graph-labels-JkRVzaVL.js.gz +0 -0
  63. package/payload/server/public/assets/{maximize-2-DkQzDv-g.js → maximize-2-DnINkTp0.js} +1 -1
  64. package/payload/server/public/assets/maximize-2-DnINkTp0.js.br +0 -0
  65. package/payload/server/public/assets/maximize-2-DnINkTp0.js.gz +0 -0
  66. package/payload/server/public/assets/{operator-CLbCar9e.js → operator-CFOJBXCH.js} +1 -1
  67. package/payload/server/public/assets/operator-CFOJBXCH.js.br +0 -0
  68. package/payload/server/public/assets/operator-CFOJBXCH.js.gz +0 -0
  69. package/payload/server/public/assets/{page-CPVUAwb8.js → page-BGv8bLm5.js} +1 -1
  70. package/payload/server/public/assets/page-BGv8bLm5.js.br +0 -0
  71. package/payload/server/public/assets/page-BGv8bLm5.js.gz +0 -0
  72. package/payload/server/public/assets/{page-CNJl3tWT.js → page-DXTCBZRa.js} +1 -1
  73. package/payload/server/public/assets/page-DXTCBZRa.js.br +0 -0
  74. package/payload/server/public/assets/page-DXTCBZRa.js.gz +0 -0
  75. package/payload/server/public/assets/{public-DQea3Ybz.js → public-yBY2wTJN.js} +1 -1
  76. package/payload/server/public/assets/public-yBY2wTJN.js.br +0 -0
  77. package/payload/server/public/assets/public-yBY2wTJN.js.gz +0 -0
  78. package/payload/server/public/assets/{rotate-ccw-DPw0vXC0.js → rotate-ccw-CfaIgRAI.js} +1 -1
  79. package/payload/server/public/assets/rotate-ccw-CfaIgRAI.js.br +0 -0
  80. package/payload/server/public/assets/rotate-ccw-CfaIgRAI.js.gz +0 -0
  81. package/payload/server/public/assets/{routines-CwiiYpfK.js → routines-BIlcD8sn.js} +1 -1
  82. package/payload/server/public/assets/routines-BIlcD8sn.js.br +0 -0
  83. package/payload/server/public/assets/routines-BIlcD8sn.js.gz +0 -0
  84. package/payload/server/public/assets/{skills-0FOjKUM-.js → skills-DGID2WqF.js} +1 -1
  85. package/payload/server/public/assets/skills-DGID2WqF.js.br +0 -0
  86. package/payload/server/public/assets/skills-DGID2WqF.js.gz +0 -0
  87. package/payload/server/public/assets/{tasks-BUVsPEGm.js → tasks-BukjwR7A.js} +1 -1
  88. package/payload/server/public/assets/tasks-BukjwR7A.js.br +0 -0
  89. package/payload/server/public/assets/tasks-BukjwR7A.js.gz +0 -0
  90. package/payload/server/public/assets/{time-entry-format-B6fX_19a.js → time-entry-format-DNl35lg9.js} +1 -1
  91. package/payload/server/public/assets/time-entry-format-DNl35lg9.js.br +0 -0
  92. package/payload/server/public/assets/time-entry-format-DNl35lg9.js.gz +0 -0
  93. package/payload/server/public/assets/{triangle-alert-vAaSDhVq.js → triangle-alert-DI_VASJO.js} +1 -1
  94. package/payload/server/public/assets/triangle-alert-DI_VASJO.js.br +0 -0
  95. package/payload/server/public/assets/triangle-alert-DI_VASJO.js.gz +0 -0
  96. package/payload/server/public/assets/{useCopyFeedback-BvIRgs7W.js → useCopyFeedback-Bu0ZQZQM.js} +1 -1
  97. package/payload/server/public/assets/useCopyFeedback-Bu0ZQZQM.js.br +0 -0
  98. package/payload/server/public/assets/useCopyFeedback-Bu0ZQZQM.js.gz +0 -0
  99. package/payload/server/public/assets/{useSubAccountSwitcher-DM5Y9eio.css → useSubAccountSwitcher-CZBZ3iV8.css} +1 -1
  100. package/payload/server/public/assets/useSubAccountSwitcher-CZBZ3iV8.css.br +0 -0
  101. package/payload/server/public/assets/{useSubAccountSwitcher-DM5Y9eio.css.gz → useSubAccountSwitcher-CZBZ3iV8.css.gz} +0 -0
  102. package/payload/server/public/assets/{useVoiceRecorder-CiDOh8PG.js → useVoiceRecorder-CbVwXEjY.js} +1 -1
  103. package/payload/server/public/assets/useVoiceRecorder-CbVwXEjY.js.br +0 -0
  104. package/payload/server/public/assets/useVoiceRecorder-CbVwXEjY.js.gz +0 -0
  105. package/payload/server/public/assets/{wrench-BNBtwT2p.js → wrench-p4gW_ImW.js} +1 -1
  106. package/payload/server/public/assets/wrench-p4gW_ImW.js.br +0 -0
  107. package/payload/server/public/assets/wrench-p4gW_ImW.js.gz +0 -0
  108. package/payload/server/public/browser.html +5 -5
  109. package/payload/server/public/calendar.html +7 -7
  110. package/payload/server/public/chat.html +13 -13
  111. package/payload/server/public/data.html +12 -12
  112. package/payload/server/public/graph.html +9 -9
  113. package/payload/server/public/index.html +16 -16
  114. package/payload/server/public/operator.html +15 -15
  115. package/payload/server/public/public.html +13 -13
  116. package/payload/server/public/routines.html +7 -7
  117. package/payload/server/public/skills.html +5 -5
  118. package/payload/server/public/tasks.html +6 -6
  119. package/payload/server/server.js +1230 -886
  120. package/payload/server/public/assets/AdminLoginScreens-7Czw3MAC.js.br +0 -0
  121. package/payload/server/public/assets/AdminLoginScreens-7Czw3MAC.js.gz +0 -0
  122. package/payload/server/public/assets/AdminShell-D5GApZ_n.js.br +0 -0
  123. package/payload/server/public/assets/AdminShell-D5GApZ_n.js.gz +0 -0
  124. package/payload/server/public/assets/CdpScreencastSurface-BbekDUFw.js.br +0 -0
  125. package/payload/server/public/assets/CdpScreencastSurface-BbekDUFw.js.gz +0 -0
  126. package/payload/server/public/assets/activity-ClI-RgJu.js.br +0 -0
  127. package/payload/server/public/assets/activity-ClI-RgJu.js.gz +0 -0
  128. package/payload/server/public/assets/admin-svtCmBPk.js.br +0 -0
  129. package/payload/server/public/assets/admin-svtCmBPk.js.gz +0 -0
  130. package/payload/server/public/assets/agents-BO8YBj8d.js.br +0 -0
  131. package/payload/server/public/assets/agents-BO8YBj8d.js.gz +0 -0
  132. package/payload/server/public/assets/browser-Bj8oTG5R.js.br +0 -0
  133. package/payload/server/public/assets/browser-Bj8oTG5R.js.gz +0 -0
  134. package/payload/server/public/assets/calendar-CrkSY8U7.js +0 -1
  135. package/payload/server/public/assets/calendar-CrkSY8U7.js.br +0 -0
  136. package/payload/server/public/assets/calendar-CrkSY8U7.js.gz +0 -0
  137. package/payload/server/public/assets/chat-Bvxoni2e.js +0 -1
  138. package/payload/server/public/assets/chat-Bvxoni2e.js.br +0 -0
  139. package/payload/server/public/assets/chat-Bvxoni2e.js.gz +0 -0
  140. package/payload/server/public/assets/chevron-left-CdUzxzeB.js +0 -1
  141. package/payload/server/public/assets/chevron-left-CdUzxzeB.js.br +0 -0
  142. package/payload/server/public/assets/chevron-right-CKGwd-M0.js +0 -1
  143. package/payload/server/public/assets/chevron-right-CKGwd-M0.js.br +0 -0
  144. package/payload/server/public/assets/clock-Cf8Oe9qi.js +0 -1
  145. package/payload/server/public/assets/clock-Cf8Oe9qi.js.br +0 -0
  146. package/payload/server/public/assets/clock-Cf8Oe9qi.js.gz +0 -0
  147. package/payload/server/public/assets/data-DF0Pstdp.js +0 -1
  148. package/payload/server/public/assets/data-DF0Pstdp.js.br +0 -1
  149. package/payload/server/public/assets/data-DF0Pstdp.js.gz +0 -0
  150. package/payload/server/public/assets/file-download-Di_s0_4w.js.br +0 -0
  151. package/payload/server/public/assets/file-download-Di_s0_4w.js.gz +0 -0
  152. package/payload/server/public/assets/file-text-CP1KIrJV.js.br +0 -1
  153. package/payload/server/public/assets/file-text-CP1KIrJV.js.gz +0 -0
  154. package/payload/server/public/assets/graph-BCMscnCV.js.br +0 -0
  155. package/payload/server/public/assets/graph-labels-CgP17xHK.js.br +0 -0
  156. package/payload/server/public/assets/graph-labels-CgP17xHK.js.gz +0 -0
  157. package/payload/server/public/assets/maximize-2-DkQzDv-g.js.br +0 -0
  158. package/payload/server/public/assets/maximize-2-DkQzDv-g.js.gz +0 -0
  159. package/payload/server/public/assets/operator-CLbCar9e.js.br +0 -0
  160. package/payload/server/public/assets/operator-CLbCar9e.js.gz +0 -0
  161. package/payload/server/public/assets/page-CNJl3tWT.js.br +0 -0
  162. package/payload/server/public/assets/page-CNJl3tWT.js.gz +0 -0
  163. package/payload/server/public/assets/page-CPVUAwb8.js.br +0 -0
  164. package/payload/server/public/assets/page-CPVUAwb8.js.gz +0 -0
  165. package/payload/server/public/assets/public-DQea3Ybz.js.br +0 -0
  166. package/payload/server/public/assets/public-DQea3Ybz.js.gz +0 -0
  167. package/payload/server/public/assets/rotate-ccw-DPw0vXC0.js.br +0 -0
  168. package/payload/server/public/assets/rotate-ccw-DPw0vXC0.js.gz +0 -0
  169. package/payload/server/public/assets/routines-CwiiYpfK.js.br +0 -0
  170. package/payload/server/public/assets/routines-CwiiYpfK.js.gz +0 -0
  171. package/payload/server/public/assets/skills-0FOjKUM-.js.br +0 -0
  172. package/payload/server/public/assets/skills-0FOjKUM-.js.gz +0 -0
  173. package/payload/server/public/assets/tasks-BUVsPEGm.js.br +0 -0
  174. package/payload/server/public/assets/tasks-BUVsPEGm.js.gz +0 -0
  175. package/payload/server/public/assets/time-entry-format-B6fX_19a.js.br +0 -0
  176. package/payload/server/public/assets/time-entry-format-B6fX_19a.js.gz +0 -0
  177. package/payload/server/public/assets/triangle-alert-vAaSDhVq.js.br +0 -0
  178. package/payload/server/public/assets/triangle-alert-vAaSDhVq.js.gz +0 -0
  179. package/payload/server/public/assets/useCopyFeedback-BvIRgs7W.js.br +0 -0
  180. package/payload/server/public/assets/useCopyFeedback-BvIRgs7W.js.gz +0 -0
  181. package/payload/server/public/assets/useSubAccountSwitcher-DM5Y9eio.css.br +0 -0
  182. package/payload/server/public/assets/useVoiceRecorder-CiDOh8PG.js.br +0 -0
  183. package/payload/server/public/assets/useVoiceRecorder-CiDOh8PG.js.gz +0 -0
  184. package/payload/server/public/assets/wrench-BNBtwT2p.js.br +0 -0
  185. package/payload/server/public/assets/wrench-BNBtwT2p.js.gz +0 -0
  186. /package/payload/server/public/assets/{useSubAccountSwitcher-BEwQMRMo.js → useSubAccountSwitcher-B6Ns2Z43.js} +0 -0
  187. /package/payload/server/public/assets/{useSubAccountSwitcher-BEwQMRMo.js.br → useSubAccountSwitcher-B6Ns2Z43.js.br} +0 -0
  188. /package/payload/server/public/assets/{useSubAccountSwitcher-BEwQMRMo.js.gz → useSubAccountSwitcher-B6Ns2Z43.js.gz} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-sitedesk-code",
3
- "version": "0.1.531",
3
+ "version": "0.1.533",
4
4
  "description": "Install SiteDesk — automated back office for independent building contractors",
5
5
  "bin": {
6
6
  "create-sitedesk-code": "./dist/index.js"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: platform-architecture
3
3
  description: Use when grounding any documented-surface claim about what SiteDesk 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:10987c045e406cec5ecac35344dbae665a350a08b55ef996d2691be4bff0605f
4
+ content-hash: sha256:f91190d8f389cf2175b5cad4d336863a69ae213bcd574ff730d3beb4078ab138
5
5
  brand: sitedesk-code
6
6
  product-name: SiteDesk
7
7
  ---
@@ -2763,15 +2763,18 @@ SiteDesk gives you a calendar of your schedule and a public page where people ca
2763
2763
 
2764
2764
  ## The admin calendar
2765
2765
 
2766
- Open `/calendar` on your SiteDesk address (the same sign-in as the dashboard). It shows your schedule in four views:
2766
+ Open `/calendar` on your SiteDesk address (the same sign-in as the dashboard). It shows your schedule in five views:
2767
2767
 
2768
- - **Day** and **Week** show an hour grid with each timed entry as a block.
2769
- - **Month** shows the familiar month grid with a few entries per day.
2770
- - **Year** shows twelve small months; days with something on them carry a dot, and clicking a month opens it.
2768
+ - **Schedule** is a plain list of what is coming up, thirty days at a time, grouped by day. Every entry shows its time, title, place, who is attending, and what kind of entry it is, all on the row. Days with nothing on them are left out. This is the view the calendar opens on.
2769
+ - **Day** and **Week** show an hour grid with each timed entry as a block. The block always shows the title; it adds the time underneath when the entry is long enough for a second line to fit (about three quarters of an hour in Week, a little over half an hour in Day). The title comes first because the block's position in the grid already tells you when it is.
2770
+ - **Month** shows the familiar month grid with up to three entries per day. Each chip gives its whole width to the title. When a day holds more, **+2 more** is a button that opens that day.
2771
+ - **Year** shows twelve small months. A day with something on it carries the number of entries, and clicking a month opens it.
2771
2772
 
2772
- Use **Today** and the arrows to move around, and the view buttons to switch. The calendar reads everything time-bound in your graph: meetings imported from a calendar export or created by a booking, appointments SiteDesk schedules for you in chat, and tasks that have a due date (shown on their day).
2773
+ Use **Today** and the arrows to move around, and the view buttons to switch. In Schedule the arrows move a whole thirty days, so you can step back into the past as well as forward. The calendar reads everything time-bound in your graph: meetings imported from a calendar export or created by a booking, appointments SiteDesk schedules for you in chat, and tasks that have a due date (shown on their day).
2773
2774
 
2774
- Click any entry to open its details: the full title, time, location, and who is attending, with each attendee on its own line (name, and email beneath it). For a booked meeting you can also edit its title, time, or location, or delete it, and the grid updates straight away. You can **Download** a booked meeting as a calendar file (`.ics`) to add it to Apple, Google, or Outlook calendars; when the meeting has attendees, Download asks whether to include them in the file before it saves, and a meeting with no attendees downloads straight away. The private note is never written into the downloaded file, since the file can travel outside your admin. In the edit view you can add an attendee (give a name, an email, or both) and remove one; adding someone who is already a contact reuses that contact rather than making a duplicate, and removing them takes them off the meeting but keeps the contact. The edit view also has a private note for that meeting, a place for your own reminders that only you and your team ever see; it never appears on the public booking page or anywhere outside your admin. Appointments SiteDesk schedules and due-dated tasks are shown for detail only and are changed where they are created, not here. New meetings are still made by a booking or by asking SiteDesk in chat, not from the calendar.
2775
+ Hover over any entry in Day, Week or Month, or reach it with the Tab key, and a small card shows what the row itself has no room for: the full title, the start and end time, the place, who is attending, and the kind of entry. You do not have to open anything to see this. On the Year view the same card appears, but on hover only, not by keyboard. Schedule needs no card, since its rows already carry all of it.
2776
+
2777
+ Click any entry to open its details, where you can also edit it: the full title, time, location, and who is attending, with each attendee on its own line (name, and email beneath it). For a booked meeting you can also edit its title, time, or location, or delete it, and the grid updates straight away. You can **Download** a booked meeting as a calendar file (`.ics`) to add it to Apple, Google, or Outlook calendars; when the meeting has attendees, Download asks whether to include them in the file before it saves, and a meeting with no attendees downloads straight away. The private note is never written into the downloaded file, since the file can travel outside your admin. In the edit view you can add an attendee (give a name, an email, or both) and remove one; adding someone who is already a contact reuses that contact rather than making a duplicate, and removing them takes them off the meeting but keeps the contact. The edit view also has a private note for that meeting, a place for your own reminders that only you and your team ever see; it never appears on the public booking page or anywhere outside your admin. Appointments SiteDesk schedules and due-dated tasks are shown for detail only and are changed where they are created, not here. New meetings are still made by a booking or by asking SiteDesk in chat, not from the calendar.
2775
2778
 
2776
2779
  Everything on the calendar comes from records the rest of SiteDesk already uses, scoped to your account.
2777
2780
 
@@ -9,6 +9,18 @@ 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-07-31 (0.1.533)
13
+
14
+ - WhatsApp sending now goes out on the account's own connection, and settings changes apply to the account making them rather than always the main one. Each outbound line names the account it went out on.
15
+ - Each account can now hold its own WhatsApp reply policy, with the main account's used only where an account has not set one. Every incoming message records which of the two decided it.
16
+ - A scheduled message is now refused if the event's account does not match where it would be sent, with standing checks for a seat set up under the wrong account.
17
+ - The calendar now shows enough on each entry to recognise it, with a new Schedule view, titles first in the month grid, and a hover card.
18
+
19
+ ## 2026-07-31 (0.1.532)
20
+
21
+ - One phone number can now be both a house admin and an account manager. Which account an incoming message belongs to is decided by the number it was sent to, not by which list the sender happens to be on.
22
+ - Pairing a sub-account's number no longer promotes that handset to a house admin. A standing check reports any sub-account number that ended up on the house admin list.
23
+
12
24
  ## 2026-07-30 (0.1.531)
13
25
 
14
26
  - Each WhatsApp connection is now recorded against the account it actually belongs to, rather than every connection being filed under the main account. A standing check reports any connection whose account has drifted, and an account created since the last restart is no longer mistaken for the main one.
@@ -4,15 +4,18 @@ SiteDesk gives you a calendar of your schedule and a public page where people ca
4
4
 
5
5
  ## The admin calendar
6
6
 
7
- Open `/calendar` on your SiteDesk address (the same sign-in as the dashboard). It shows your schedule in four views:
7
+ Open `/calendar` on your SiteDesk address (the same sign-in as the dashboard). It shows your schedule in five views:
8
8
 
9
- - **Day** and **Week** show an hour grid with each timed entry as a block.
10
- - **Month** shows the familiar month grid with a few entries per day.
11
- - **Year** shows twelve small months; days with something on them carry a dot, and clicking a month opens it.
9
+ - **Schedule** is a plain list of what is coming up, thirty days at a time, grouped by day. Every entry shows its time, title, place, who is attending, and what kind of entry it is, all on the row. Days with nothing on them are left out. This is the view the calendar opens on.
10
+ - **Day** and **Week** show an hour grid with each timed entry as a block. The block always shows the title; it adds the time underneath when the entry is long enough for a second line to fit (about three quarters of an hour in Week, a little over half an hour in Day). The title comes first because the block's position in the grid already tells you when it is.
11
+ - **Month** shows the familiar month grid with up to three entries per day. Each chip gives its whole width to the title. When a day holds more, **+2 more** is a button that opens that day.
12
+ - **Year** shows twelve small months. A day with something on it carries the number of entries, and clicking a month opens it.
12
13
 
13
- Use **Today** and the arrows to move around, and the view buttons to switch. The calendar reads everything time-bound in your graph: meetings imported from a calendar export or created by a booking, appointments SiteDesk schedules for you in chat, and tasks that have a due date (shown on their day).
14
+ Use **Today** and the arrows to move around, and the view buttons to switch. In Schedule the arrows move a whole thirty days, so you can step back into the past as well as forward. The calendar reads everything time-bound in your graph: meetings imported from a calendar export or created by a booking, appointments SiteDesk schedules for you in chat, and tasks that have a due date (shown on their day).
14
15
 
15
- Click any entry to open its details: the full title, time, location, and who is attending, with each attendee on its own line (name, and email beneath it). For a booked meeting you can also edit its title, time, or location, or delete it, and the grid updates straight away. You can **Download** a booked meeting as a calendar file (`.ics`) to add it to Apple, Google, or Outlook calendars; when the meeting has attendees, Download asks whether to include them in the file before it saves, and a meeting with no attendees downloads straight away. The private note is never written into the downloaded file, since the file can travel outside your admin. In the edit view you can add an attendee (give a name, an email, or both) and remove one; adding someone who is already a contact reuses that contact rather than making a duplicate, and removing them takes them off the meeting but keeps the contact. The edit view also has a private note for that meeting, a place for your own reminders that only you and your team ever see; it never appears on the public booking page or anywhere outside your admin. Appointments SiteDesk schedules and due-dated tasks are shown for detail only and are changed where they are created, not here. New meetings are still made by a booking or by asking SiteDesk in chat, not from the calendar.
16
+ Hover over any entry in Day, Week or Month, or reach it with the Tab key, and a small card shows what the row itself has no room for: the full title, the start and end time, the place, who is attending, and the kind of entry. You do not have to open anything to see this. On the Year view the same card appears, but on hover only, not by keyboard. Schedule needs no card, since its rows already carry all of it.
17
+
18
+ Click any entry to open its details, where you can also edit it: the full title, time, location, and who is attending, with each attendee on its own line (name, and email beneath it). For a booked meeting you can also edit its title, time, or location, or delete it, and the grid updates straight away. You can **Download** a booked meeting as a calendar file (`.ics`) to add it to Apple, Google, or Outlook calendars; when the meeting has attendees, Download asks whether to include them in the file before it saves, and a meeting with no attendees downloads straight away. The private note is never written into the downloaded file, since the file can travel outside your admin. In the edit view you can add an attendee (give a name, an email, or both) and remove one; adding someone who is already a contact reuses that contact rather than making a duplicate, and removing them takes them off the meeting but keeps the contact. The edit view also has a private note for that meeting, a place for your own reminders that only you and your team ever see; it never appears on the public booking page or anywhere outside your admin. Appointments SiteDesk schedules and due-dated tasks are shown for detail only and are changed where they are created, not here. New meetings are still made by a booking or by asking SiteDesk in chat, not from the calendar.
16
19
 
17
20
  Everything on the calendar comes from records the rest of SiteDesk already uses, scoped to your account.
18
21
 
@@ -262,7 +262,7 @@ An `action` invokes one pre-encoded MCP tool with no reasoning. When a due event
262
262
  - `destination` — the E.164 phone (WhatsApp) or chat id (Telegram) to run the turn for and reply to. It **must already be a registered admin or account-manager** on that channel; a destination that is not is rejected when the event is created. For WhatsApp the authoritative admin/manager lists are read from the socket-owning **house** account (never the event's own account), and the destination's registered account must match the account that created the schedule: an admin belongs to the house, a manager to its bound sub-account. The house/owner account may target any registered admin or manager; a sub-account is locked to its own manager(s). A refusal names the true reason — `not-registered` (in no house list) or `cross-account` (registered to a different account, naming both accounts).
263
263
  - `prompt` — the instruction the agent runs.
264
264
 
265
- An event carries **either** an `action` **or** an `agentDispatch`, never both — setting one clears the other. Agent dispatch is stored as `agentChannel`, `agentDestination`, `agentPrompt`. Use `schedule-update` with `agentDispatch` to modify or `agentDispatch: null` to clear. On WhatsApp, a destination bound as an account-manager scopes the spawned session to its sub-account; on Telegram the session runs on the house account.
265
+ An event carries **either** an `action` **or** an `agentDispatch`, never both — setting one clears the other. Agent dispatch is stored as `agentChannel`, `agentDestination`, `agentPrompt`. Use `schedule-update` with `agentDispatch` to modify or `agentDispatch: null` to clear. On WhatsApp, a destination bound as an account-manager scopes the spawned session to its sub-account — unless that same phone is also on the house `adminPhones` list, in which case it scopes to the channel account, because the dispatch rides the house socket and so arrives from the house number. On Telegram the session runs on the house account.
266
266
 
267
267
  A WhatsApp `agentDispatch` destination may therefore be an account manager, not only an admin phone — this is the supported way to send a manager a proactive or scheduled WhatsApp message. The reply is delivered over the house's paired line regardless of which sub-account the session is scoped to; socket ownership never restricts which number the dispatch can reach.
268
268
 
@@ -106,7 +106,7 @@ A native admin channel session runs a per-sender `whatsapp-channel` MCP server (
106
106
 
107
107
  ## Agent-initiated admin send
108
108
 
109
- `whatsapp-send-admin` is the one outbound path that does **not** require a bound inbound conversation, so a webchat session or a scheduled run can push a text summary over WhatsApp. It is hard-gated to the cold-send-ban carve-out: the destination must already be a **registered recipient** — on the house `whatsapp.adminPhones` list (managed via `whatsapp-config add-admin-phone`) **or** a registered account manager in `whatsapp.accountManagers` (managed via `whatsapp-config add-account-manager`). Both lists are read from the socket-owning house account (`resolveAccount`), and the send always rides the house's paired socket. A destination in neither list is refused with `[whatsapp:outbound] op=send-refused reason=not-admin-phone` and no send is attempted — never a cold first contact. An **account-manager** phone (in `accountManagers`, disjoint from `adminPhones`) **is** a valid `send-admin` destination regardless of its binding mode: the operator registered it, so it is not a cold stranger. `passive` governs the manager's **inbound** behaviour only (no auto-reply, intake-only) and never gates this outbound send. A successful send logs its admit basis (`op=send-admin-ok via=admin-phone|account-manager`). Delivery reuses `sendTextMessage`, so the sent id is tracked for echo suppression and the send is recorded as outbound activity. Text only; for files use the bound `reply-document` surface.
109
+ `whatsapp-send-admin` is the one outbound path that does **not** require a bound inbound conversation, so a webchat session or a scheduled run can push a text summary over WhatsApp. It is hard-gated to the cold-send-ban carve-out: the destination must already be a **registered recipient** — on the house `whatsapp.adminPhones` list (managed via `whatsapp-config add-admin-phone`) **or** a registered account manager in `whatsapp.accountManagers` (managed via `whatsapp-config add-account-manager`). Both lists are read from the socket-owning house account (`resolveAccount`), and the send rides the **calling session's own** paired socket: a sub-account session transmits on its own line, an unsigned caller falls back to the house line, and a session whose account has no socket gets a 503 naming the key miss rather than a silent fall-back to the house. A destination in neither list is refused with `[whatsapp:outbound] op=send-refused reason=not-admin-phone` and no send is attempted — never a cold first contact. An **account-manager** phone (in `accountManagers`, which may overlap `adminPhones` — a phone can hold both roles, and the number it messaged decides its inbound scope) **is** a valid `send-admin` destination regardless of its binding mode: the operator registered it, so it is not a cold stranger. `passive` governs the manager's **inbound** behaviour only (no auto-reply, intake-only) and never gates this outbound send. A successful send logs its admit basis and both accounts (`op=send-admin-ok via=admin-phone|account-manager callerAccount=… socketAccount=…`), and every `[whatsapp:outbound]` line carries `account=`. A send that carries no caller identity falls back to the house socket, emits `op=outbound-caller-unsigned` at WARN and increments `outboundSocketReconcile.unsignedFallbacks` on `GET /api/whatsapp/status`, because a send on the wrong line is otherwise a successful write with no event. The two accounts on the success line are for a human to read and are deliberately not compared: they are different namespaces, since the house connection's key is the credential dirname while the caller is a platform UUID. Delivery reuses `sendTextMessage`, so the sent id is tracked for echo suppression and the send is recorded as outbound activity. Text only; for files use the bound `reply-document` surface.
110
110
 
111
111
  ## Self-chat command lane
112
112
 
@@ -128,7 +128,9 @@ Every `messages.upsert` event (both `notify` and `append`, both `fromMe` directi
128
128
 
129
129
  **Sub-account recall.** Recall is account-scoped as a read-time projection: a sub-account session sees only the house-store threads whose counterparty is one of its bound account-manager phones (the same filter the operator dashboard uses, shared via `counterpartyBoundToSubAccount`). The write path and the store key are unchanged — messages stay house-keyed; "sub-account scope" is a projection, not a move. `whatsapp-conversation-graph-state` defaults its `accountId` to the calling session's own `ACCOUNT_ID`, so a sub-account recalls its own history with no argument while the house admin may still pass any account id explicitly. Body search is not restored by this projection (it has been absent since the on-disk store cutover).
130
130
 
131
- **Caller-scope enforcement.** The three read tools `whatsapp-conversation-graph-state`, `whatsapp-conversations`, `whatsapp-messages` forward the caller's own account (`ACCOUNT_ID`) and its house-admin scope (`HOUSE_ADMIN_SCOPE`) to the route as headers, distinct from the caller-controlled `accountId` argument. The route enforces caller-scope: a house admin reads any account; any other session (a sub-account, or a specialist under any account) may read only its own account and gets a 403 if it passes a different `accountId`. This closes the override where a sub-account could pass an explicit house or sibling id and read that store. It defends only the loopback route against the agent-controlled argument; the route still trusts localhost, so forging these headers on a direct loopback call remains possible closing that is a separate, tracked follow-up.
131
+ **Config action authority.** The three account-manager actions (`add-account-manager`, `remove-account-manager`, `list-account-managers`) are per-account **bindings** and scope to the caller: any session may bind a phone to its **own** account, `list` returns only that account's bindings, and naming another account is refused 403 with `reason: "binding-account-scope-mismatch"`. Removing a phone that holds no binding is refused for the same reason, because there is no binding value to prove the phone is yours. A house admin is unrestricted and unfiltered on all three. Every other action on this route is install-wide and stays house-only. The bindings are written to the house `account.json` regardless of who wrote them, because that is the file the inbound gate reads and `purgeNonSocketAccountManagersAtBoot` deletes a map written anywhere else.
132
+
133
+ **Caller-scope enforcement.** The three read tools — `whatsapp-conversation-graph-state`, `whatsapp-conversations`, `whatsapp-messages` — and `whatsapp-send-admin` forward the caller's own account (`ACCOUNT_ID`) and its house-admin scope (`HOUSE_ADMIN_SCOPE`) to the route as headers, distinct from the caller-controlled `accountId` argument. The route enforces caller-scope: a house admin reads any account; any other session (a sub-account, or a specialist under any account) may read only its own account and gets a 403 if it passes a different `accountId`. This closes the override where a sub-account could pass an explicit house or sibling id and read that store. It defends only the loopback route against the agent-controlled argument; the route still trusts localhost, so forging these headers on a direct loopback call remains possible — closing that is a separate, tracked follow-up.
132
134
 
133
135
  ## Skills
134
136
 
@@ -178,11 +178,13 @@ lifelineTool(server, "whatsapp-config", [
178
178
  " - update-config (change any WhatsApp config field — pass `fields` as a JSON string of field/value pairs)",
179
179
  " - get-config (return the full current WhatsApp config object)",
180
180
  " - set-dispatch-inbound (turn a paired socket into an OBSERVE socket or back; requires `accountId` and boolean `dispatchInbound`. false = the account's WhatsApp is read-only: messages are stored and readable but never dispatched to an agent. Scoped to your own account.)",
181
+ " - set-account-policy (set THIS account's own inbound policy: pass `policy` with any of `dmPolicy` ('open'|'allowlist'|'disabled'), `adminPhones`, `allowFrom`. Pass every field you want in ONE call — dmPolicy 'open' requires allowFrom to contain '*', checked on the whole object. Scoped to your own account; a house admin may name another. The HOUSE is refused: its three fields are the top-level config, set with update-config.)",
182
+ " - get-account-policy (read this account's three effective inbound policy values and, for each, whether it is the account's own or inherited from the house)",
181
183
  " - schema (return all config field definitions — names, types, defaults, descriptions, constraints)",
182
184
  " - list-groups (return WhatsApp groups the account belongs to — names, JIDs, participant counts)",
183
185
  "Groups are observation-only — the agent never responds in a group, so there is no per-group config. list-groups still lists them for reference.",
184
186
  "Public-agent precedence at routing time (DMs): per-account default → top-level default.",
185
- "A phone is a house admin OR a sub-account manager, never bothadd-account-manager rejects a phone already on the admin list, and vice versa. A manager phone is not reachable by whatsapp-send-admin (message it directly instead).",
187
+ "A phone may be a house admin AND a sub-account manager at the same time both registrations are accepted, and the number the sender messaged decides which scope they get: the house number gives house scope, the sub-account's own number gives that sub-account's scope. A manager bound to a sub-account with no number of its own is reached through the house number. A manager phone is not reachable by whatsapp-send-admin (message it directly instead).",
186
188
  "Phone numbers must be E.164 format (e.g. +441234567890).",
187
189
  ].join("\n"), {
188
190
  action: z.enum([
@@ -198,6 +200,8 @@ lifelineTool(server, "whatsapp-config", [
198
200
  "update-config",
199
201
  "get-config",
200
202
  "set-dispatch-inbound",
203
+ "set-account-policy",
204
+ "get-account-policy",
201
205
  "schema",
202
206
  "list-groups",
203
207
  ]).describe("The config action to perform"),
@@ -206,9 +210,14 @@ lifelineTool(server, "whatsapp-config", [
206
210
  mode: z.enum(["active", "passive"]).optional().describe("Account-manager mode for add-account-manager (default 'active'). 'active' = a full admin session that can reply and manage the sub-account. 'passive' = a constrained requirement-intake agent: it interprets each message, files exactly one task scoped to the sub-account, and never replies."),
207
211
  slug: z.string().optional().describe("Agent slug (required for set-public-agent)"),
208
212
  fields: z.string().optional().describe('JSON string of config fields to update (required for update-config, e.g. \'{"dmPolicy":"open","allowFrom":["*"]}\')'),
209
- accountId: z.string().optional().describe('Account ID. Defaults to the calling session’s own account; the house admin may pass another account id explicitly. Used by list-groups and set-dispatch-inbound.'),
213
+ accountId: z.string().optional().describe('Account ID. Defaults to the calling session’s own account; the house admin may pass another account id explicitly. Used by list-groups, set-dispatch-inbound, set-account-policy and get-account-policy.'),
210
214
  dispatchInbound: z.boolean().optional().describe("For set-dispatch-inbound: false makes the account an observe socket (stored + readable, never dispatched); true restores agent dispatch."),
211
- }, async ({ action, phone, managesAccount, mode, slug, fields, accountId, dispatchInbound }) => {
215
+ policy: z.object({
216
+ dmPolicy: z.enum(["open", "allowlist", "disabled"]).optional(),
217
+ adminPhones: z.array(z.string()).optional(),
218
+ allowFrom: z.array(z.string()).optional(),
219
+ }).optional().describe("For set-account-policy: the fields to set on this account's own inbound policy. At least one required. dmPolicy 'open' requires allowFrom to contain '*' in the same call."),
220
+ }, async ({ action, phone, managesAccount, mode, slug, fields, accountId, dispatchInbound, policy }) => {
212
221
  try {
213
222
  // Parse fields JSON string for update-config
214
223
  let parsedFields;
@@ -220,9 +229,25 @@ lifelineTool(server, "whatsapp-config", [
220
229
  return textResult('Invalid JSON in "fields" parameter. Expected a JSON object, e.g. {"dmPolicy":"open","allowFrom":["*"]}', true);
221
230
  }
222
231
  }
223
- const result = await callApi("whatsapp-config", "/api/whatsapp/config", "POST", { action, phone, managesAccount, mode, slug, fields: parsedFields, accountId, dispatchInbound }, callerScopeHeaders(process.env));
232
+ const result = await callApi("whatsapp-config", "/api/whatsapp/config", "POST", { action, phone, managesAccount, mode, slug, fields: parsedFields, accountId, dispatchInbound, policy }, callerScopeHeaders(process.env));
224
233
  if (!result.ok)
225
234
  return textResult(result.error ?? "Config operation failed.", true);
235
+ // Task 2235 — an inherited value and a chosen one read identically, so the
236
+ // source is rendered beside every value rather than left to the operator.
237
+ if (action === "get-account-policy") {
238
+ const p = result.policy ?? {};
239
+ const s = result.sources ?? {};
240
+ const lines = [
241
+ `Inbound policy for account ${result.key}:`,
242
+ ` dmPolicy: ${p.dmPolicy} (${s.dmPolicy === "account" ? "this account's own" : "inherited from the house"})`,
243
+ ` adminPhones: ${(p.adminPhones ?? []).length === 0 ? "(none)" : (p.adminPhones ?? []).join(", ")} (${s.adminPhones === "account" ? "this account's own" : "inherited from the house"})`,
244
+ ` allowFrom: ${(p.allowFrom ?? []).length === 0 ? "(none)" : (p.allowFrom ?? []).join(", ")} (${s.allowFrom === "account" ? "this account's own" : "inherited from the house"})`,
245
+ ];
246
+ return textResult(lines.join("\n"));
247
+ }
248
+ if (action === "set-account-policy") {
249
+ return textResult(`Inbound policy updated on account slice "${result.key}".`);
250
+ }
226
251
  if (action === "list-admin-phones") {
227
252
  const phones = result.phones ?? [];
228
253
  if (phones.length === 0)
@@ -282,10 +307,14 @@ lifelineTool(server, "whatsapp-config", [
282
307
  lifelineTool(server, "whatsapp-send-admin", "Send a WhatsApp text message to a registered recipient — a phone on this install's admin-phone list, OR a registered account manager. Refuses any other number (the cold-send-ban guard — never cold-contact a stranger). Needs no bound inbound conversation, so use it to push a summary or notification over WhatsApp from a webchat session or a scheduled run. Register a recipient first with whatsapp-config (add-admin-phone or add-account-manager).", {
283
308
  phone: z.string().describe("Destination in E.164 (e.g. +441234567890) — must already be a registered admin phone or account manager"),
284
309
  text: z.string().describe("Message body to send"),
285
- accountId: z.string().optional().describe('Ignored — the send always rides the install\'s single house-owned WhatsApp socket. Present only for backward compatibility.'),
310
+ accountId: z.string().optional().describe('Ignored — the send rides the calling session\'s own WhatsApp socket, resolved from the session identity rather than from this argument. Present only for backward compatibility.'),
286
311
  }, async ({ phone, text, accountId }) => {
287
312
  try {
288
- const result = await callApi("whatsapp-send-admin", "/api/whatsapp/send-admin", "POST", { phone, text, accountId });
313
+ // Task 2233 forward the caller's own account and house-admin scope, as
314
+ // every other write tool here does. The route resolves the TRANSMITTING
315
+ // socket from these headers; without them a sub-account send silently
316
+ // left on the house line.
317
+ const result = await callApi("whatsapp-send-admin", "/api/whatsapp/send-admin", "POST", { phone, text, accountId }, callerScopeHeaders(process.env));
289
318
  if (result.error)
290
319
  return textResult(`Send failed: ${result.error}`, true);
291
320
  return textResult(`Sent to ${phone}${result.messageId ? ` (id ${result.messageId})` : ""}.`);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,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,OAAO,IAAI,UAAU,EAA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AE1E,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
@@ -24,6 +24,14 @@ Outbound on an observe socket is `whatsapp-reply`: reply-only into an existing c
24
24
 
25
25
  The `whatsapp-status` output stamps each account's resolved mode (`<accountId>:up:dispatch` or `<accountId>:down:observe`), so an observe account that came up dispatching, or lost its mode across a boot, is a visible mismatch. A standing safety net at the router logs `[whatsapp:observe] op=BREACH` if any dispatch ever reaches it from an observe account; that line must never appear.
26
26
 
27
+ ## Per-account inbound policy
28
+
29
+ `dmPolicy`, `adminPhones` and `allowFrom` resolve per account: the account's own config slice wins, and the top-level value is the fallback. Set an account's own three fields with `whatsapp-config action: set-account-policy`, passing a `policy` object with any of them, and read them back with `get-account-policy`. A house admin may name any account; every other caller only its own. The HOUSE is refused: those three fields are its top-level config, written by `update-config` and the admin-phone actions, and a per-account slice for the house would be a second home for the same setting with no operator-visible precedence between them.
30
+
31
+ The per-account slice is keyed by the account's **WhatsApp credential directory name**, not its platform account UUID — that is the key the inbound gate reads. The two coincide for a sub-account, whose credential dir is named after its own UUID, and diverge for the house, whose dir is `default`. A target with no credential directory is refused rather than written, because a slice for an account with no socket is one nothing would ever read.
32
+
33
+ Every resolved policy now names where it came from. The `[whatsapp:manager] inbound` verdict line carries `policySource=account|house policyField=<field>` for the field that decided it, and carries neither on the arms that consult no policy field (self-phone, both account-manager arms). `get-account-policy` reports the source of each field, and `whatsapp-status` carries a `policyInheritance` row per account naming all three. Before this, an inherited policy was indistinguishable from a chosen one at every surface, so a house flipped to `disabled` or `allowlist` took every inheriting account dark at once with no event to hang a log line on.
34
+
27
35
  ## Observation-only in groups: the agent
28
36
 
29
37
  The agent **never responds in a group chat.** Every inbound group message is stored, recorded, and persisted to the graph (observation is fully preserved — `list-groups`, `whatsapp-group-info`, conversations, and the `/whatsapp` reader all still work), but it is never dispatched to a responding session and never produces an outbound message into the group. `checkGroupAccess` is a structural observe-only deny — there is no group policy, allowlist, per-group activation, or @mention setting to turn responses on. A belt invariant in the manager's `reply` closure refuses any `@g.us` recipient (`op=group-reply-blocked`), and `admitReply` refuses one at the gateway (`group-send-blocked`).
@@ -119,9 +127,9 @@ The platform enforces this at multiple levels:
119
127
  | Term | Definition | Code |
120
128
  |------|-----------|------|
121
129
  | **Self phone** | The WhatsApp account's own phone number (the phone that scanned the QR code). Self-chat only. | `phonesMatch(senderPhone, selfPhone)` in `access-control.ts` |
122
- | **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"`. Their admin session is scoped to the **house** account. `adminPhones` is authoritative only on the account that owns the WhatsApp paired socket (the house): `add-admin-phone` is refused on any other account, and a list left on a non-socket (sub-)account is inert and purged at boot with `[admin-identity] op=purge-nonsocket-adminphone`. To answer "is this phone a manager?" read the house account's `adminPhones` + `accountManagers` only — never a sub-account's list. | `isAdminPhone()` in `access-control.ts` — iterates `adminPhones` |
123
- | **Account managers** | Phones in the `accountManagers` map (`account.json`, phone → sub-account binding), added via `whatsapp-config action: "add-account-manager"`. Scoped to the **bound sub-account**, not the house. Disjoint from `adminPhones` — a phone is a house admin or a sub-account manager, never both. Each binding has a **mode**: `active` (default) is a full admin session that can reply and manage the sub-account; `passive` is a constrained requirement-intake spawn (only `work-create`, no reply). Like `adminPhones`, the map is authoritative only on the account that owns the paired socket: `add-account-manager` is refused on any other account with `reason: "not-socket-account"` (a binding that also names the house reports `house-account-binding` instead — the value check runs first), and a map left on a non-socket account is inert and purged at boot with `[admin-identity] op=purge-nonsocket-accountmanager`. That boot purge stands down, logging `resolver disagreement`, when the account the manager loads its config from is not the `role:"house"` account, because there the "non-socket" map is the live one. | `managedAccountFor()` in `access-control.ts` resolves the sub-account + mode **once**; `checkDmAccess` returns `effectiveAccountId` + `passive`, and `ensureChannelSession` consumes them without re-resolving |
124
- | **Public/unknown** | Any phone that is not self, not in `adminPhones`, and not in `accountManagers`. Subject to DM policy gating. | Everything else in `checkDmAccess()` |
130
+ | **Admin phones** | Phones listed in `adminPhones` in `account.json`. The user's personal phone is auto-registered on QR link **only when the paired account is the house** — pairing a sub-account's own number adds nothing to this list (`op=selfphone-skipped … reason=non-house`), because an entry here grants house-owner admin scope on the house number. Additional phones are added via `whatsapp-config action: "add-admin-phone"`. Their admin session is scoped to **the account of the number they messaged**: the house number gives house scope, and a sub-account's own number gives that sub-account's scope. `adminPhones` is authoritative only on the account that owns the WhatsApp paired socket (the house): `add-admin-phone` is refused on any other account, and a list left on a non-socket (sub-)account is inert and purged at boot with `[admin-identity] op=purge-nonsocket-adminphone`. To answer "is this phone a manager?" read the house account's `adminPhones` + `accountManagers` only — never a sub-account's list. | `isAdminPhone()` in `access-control.ts` — iterates `adminPhones` |
131
+ | **Account managers** | Phones in the `accountManagers` map (`account.json`, phone → sub-account binding), added via `whatsapp-config action: "add-account-manager"`. Scoped to the **bound sub-account**, not the house. **Not** disjoint from `adminPhones`: a phone may hold both registrations, and the number it messaged decides which scope it gets the house number resolves to the house (`admin-binding`), the bound sub-account's own number resolves to that sub-account (`account-manager`), and a sub-account with no number of its own is still reached through the house number. A manager messaging a sub-account number it is not bound to, and is not a house admin for, gets no admin session there. Each binding has a **mode**: `active` (default) is a full admin session that can reply and manage the sub-account; `passive` is a constrained requirement-intake spawn (only `work-create`, no reply). Like `adminPhones`, the map is authoritative only on the account that owns the paired socket: `add-account-manager` is refused on any other account with `reason: "not-socket-account"` (a binding that also names the house reports `house-account-binding` instead — the value check runs first), and a map left on a non-socket account is inert and purged at boot with `[admin-identity] op=purge-nonsocket-accountmanager`. That boot purge stands down, logging `resolver disagreement`, when the account the manager loads its config from is not the `role:"house"` account, because there the "non-socket" map is the live one. | `managedAccountFor()` in `access-control.ts` resolves the sub-account + mode **once**; `checkDmAccess` returns `effectiveAccountId` + `passive`, and `ensureChannelSession` consumes them without re-resolving |
132
+ | **Public/unknown** | Any phone the four admin arms above do not claim for the number it messaged. That is every phone that is not self and not in `adminPhones`, **plus** a phone in `accountManagers` that messaged a sub-account number it is not bound to (its binding grants nothing there). Subject to DM policy gating. | Everything else in `checkDmAccess()` |
125
133
 
126
134
  **Critical distinction:** The *self phone* is the paired device's number (the WhatsApp account SiteDesk 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` or `accountManagers`, their messages route as public — not admin.
127
135
 
@@ -139,7 +147,7 @@ A passive-bound phone that DMs a requirement gets exactly one `:Task` filed unde
139
147
 
140
148
  **Reader display of a manager's thread — additive, house-stored.** A manager's inbound persists to the message store under the **house** account (the socket owner), not the sub-account it routed to — the write path is house-anchored and unchanged. So the operator Conversations reader, which scopes store rows to the viewed account, would otherwise show a manager's WhatsApp thread only in the **house** view. When a **sub-account** is viewed (`multiAccount` and the viewed account is not the house), the reader additionally lists every house-stored thread whose counterparty phone matches an `accountManagers` entry bound to that sub (`managerPhonesForAccount` + `phonesMatch`, the same match primitive as the gate). These extra rows carry `accountId=<house>`, so opening one streams from the house store file via `/store-stream` exactly as stored. This is **display only and additive**: the thread still appears in the house view (its own store, untouched); nothing is moved. Single-account and house views are unchanged. The join is observable on the reader's pull-based `op=list` line: `houseResolved=<8|null> managerPhonesBound=<n> managedStoreRows=<m>` — `managerPhonesBound>0 managedStoreRows=0` is a phone-format or house-config-read failure, `houseResolved=null` on a `multiAccount=true` list means the house is unresolvable and every sub silently shows none. The agent read tools `whatsapp-conversations`, `whatsapp-messages`, and `whatsapp-conversation-graph-state` project the same way: on a sub-account session they read the durable house store filtered to that sub-account's bound manager phones, so the agent recalls exactly the threads the operator reader shows for that sub-account. Each logs `projected=<bool> storeAccount=<house|self> managerPhonesBound=<n>`.
141
149
 
142
- **HTTP-route caller-scope — reads and the house socket are house-scoped.** The loopback routes decide access from platform-stamped headers the MCP tool forwards from its spawn env (`ACCOUNT_ID` → `x-maxy-caller-account`, `HOUSE_ADMIN_SCOPE` → `x-maxy-house-admin-scope`), never from a caller-controlled body param — the agent cannot forge them, and an absent signal fails closed. Two families share one decision (`authorizeRecallRead`): a house admin (house scope set) is authorised; otherwise the caller's own account must equal the requested account; otherwise denied. **Read routes** (`/conversations`, `/messages`, `/conversation-graph-state`) scope on the requested `accountId`, so a sub-account may read only its own recall and never pass an explicit `accountId=<house>` to read the house store. **The house-scoped routes** — `/config` for every action *except* `set-dispatch-inbound` (`add`/`remove`/`list-account-manager`, `add`/`remove`/`list-admin-phone`, `set`/`get`/`list-public-agent`, `update-config`, `get-config`, `schema`, `list-groups`) — act on the house's own socket and settings, so each resolves the house/sole account and gates against it: a client sub-account session may neither read nor mutate the house WhatsApp config, a house admin may. **The self-or-house routes** — `/login/start`, `/login/wait`, `/disconnect`, `/reconnect`, `/reply`, and `/config action=set-dispatch-inbound` — scope to the TARGET account instead, so a sub-account pairs and manages its own line and only its own. On the four lifecycle routes an omitted `accountId` resolves to the **caller's own account**, and to the literal `default` credential dir when the caller is the house (admin scope set, or the house account's own session). Earlier an omission resolved to `default` for every caller, so a sub-account pairing its own number asked for the house socket and was refused. An explicit `accountId` is never rewritten, so a sub-account naming a foreign account (or `default`) is still refused. **`/status` is projected, not gated**: a house caller reads every account's row plus the install-wide key-space audit, any other signed caller reads exactly its own row with the audit omitted (an account that never paired reads an empty list, HTTP 200), and an unsigned caller is refused. The two internal callers of `/config` both forward these headers: the `whatsapp-config` agent tool, and the operator-only `account_roster` (its house session carries the scope, so the account-manager column keeps resolving). A denial logs `[whatsapp-read-tool] op=authz-deny requested=… caller=…` for a read and `[whatsapp:api] op=authz-deny route=… target=… targetSource=… caller=… houseAdmin=…` for a scoped route, and returns HTTP 403 with no side effect. `targetSource` names **who chose the target** — `explicit` (the body named it), `caller-default` (resolved from the caller's own account), `house-default` (the literal `default`, because the caller is the house). It exists because a denial naming `target=default` read as if a sub-account had asked for the house socket when it had asked for nothing and the route had chosen; `targetSource=house-default` on a caller that is neither house-admin-scoped nor the house account is that defect's signature. `/status` additionally logs `op=status-projection caller=<8> scope=house|self rows=<n>` on every call, so an empty projection is distinguishable from an account that never paired.
150
+ **HTTP-route caller-scope — reads and the house socket are house-scoped.** The loopback routes decide access from platform-stamped headers the MCP tool forwards from its spawn env (`ACCOUNT_ID` → `x-maxy-caller-account`, `HOUSE_ADMIN_SCOPE` → `x-maxy-house-admin-scope`), never from a caller-controlled body param — the agent cannot forge them, and an absent signal fails closed. Two families share one decision (`authorizeRecallRead`): a house admin (house scope set) is authorised; otherwise the caller's own account must equal the requested account; otherwise denied. **Read routes** (`/conversations`, `/messages`, `/conversation-graph-state`) scope on the requested `accountId`, so a sub-account may read only its own recall and never pass an explicit `accountId=<house>` to read the house store. **The house-scoped routes** — `/config` for every action *except* `set-dispatch-inbound`, `set-account-policy` and `get-account-policy` (`add`/`remove`/`list-account-manager`, `add`/`remove`/`list-admin-phone`, `set`/`get`/`list-public-agent`, `update-config`, `get-config`, `schema`, `list-groups`) — act on the house's own socket and settings, so each resolves the house/sole account and gates against it: a client sub-account session may neither read nor mutate the house WhatsApp config, a house admin may. **The self-or-house routes** — `/login/start`, `/login/wait`, `/disconnect`, `/reconnect`, `/reply`, and `/config action=set-dispatch-inbound|set-account-policy|get-account-policy` — scope to the TARGET account instead, so a sub-account pairs and manages its own line and only its own. On the four lifecycle routes an omitted `accountId` resolves to the **caller's own account**, and to the literal `default` credential dir when the caller is the house (admin scope set, or the house account's own session). Earlier an omission resolved to `default` for every caller, so a sub-account pairing its own number asked for the house socket and was refused. An explicit `accountId` is never rewritten, so a sub-account naming a foreign account (or `default`) is still refused. **`/status` is projected, not gated**: a house caller reads every account's row plus the install-wide key-space audit, any other signed caller reads exactly its own row with the audit omitted (an account that never paired reads an empty list, HTTP 200), and an unsigned caller is refused. The two internal callers of `/config` both forward these headers: the `whatsapp-config` agent tool, and the operator-only `account_roster` (its house session carries the scope, so the account-manager column keeps resolving). A denial logs `[whatsapp-read-tool] op=authz-deny requested=… caller=…` for a read and `[whatsapp:api] op=authz-deny route=… target=… targetSource=… caller=… houseAdmin=…` for a scoped route, and returns HTTP 403 with no side effect. `targetSource` names **who chose the target** — `explicit` (the body named it), `caller-default` (resolved from the caller's own account), `house-default` (the literal `default`, because the caller is the house). It exists because a denial naming `target=default` read as if a sub-account had asked for the house socket when it had asked for nothing and the route had chosen; `targetSource=house-default` on a caller that is neither house-admin-scoped nor the house account is that defect's signature. `/status` additionally logs `op=status-projection caller=<8> scope=house|self rows=<n>` on every call, so an empty projection is distinguishable from an account that never paired.
143
151
 
144
152
  **Recall surfaces the attachment, not just the text.** A recalled message that carried media now includes an `attachment` reference on its read-tool row (`whatsapp-messages` and both modes of `whatsapp-conversation-graph-state`): `attachmentId`, `filename`, `mimeType`, a `sizeBytes` (bytes, as stored — the line renders it as KB/MB), an absolute on-disk `path` to the stored bytes, and a `readableTextPath` when an extracted-text sibling exists. The reference resolves against the same store account the route read the thread from (the house account when projecting a sub-account), so the path always points at the house-stored bytes, never the sub-account's own empty uploads dir. The read-tool output renders it as an indented `[attachment: <name> (<mime>, <size>); Read: <path>]` line, and the agent reads that path directly (an image renders when Read). Inbound WhatsApp media runs best-effort text extraction (the earlier `skipDocToText` opt-out was retired): a convertible container (xlsx, docx, ods, and the rest of `CONVERTIBLE_DOC_MIME`) gets an `.extracted.txt` sibling, so `readableTextPath` is populated for those; an image or other non-convertible type has no sibling and surfaces the bytes `path` alone. Observable on each read route's result line as `withAttachments=<n>`; a record that names an attachment whose bytes are missing under the store account logs `[whatsapp-read-tool] op=attachment-miss attachmentId=<8> storeAccount=<id>`, which separates a genuine house-store gap from a sub-account mis-resolution.
145
153
 
@@ -39,7 +39,7 @@ An account manager is a phone bound to a specific sub-account. Its WhatsApp mess
39
39
 
40
40
  Call `whatsapp-config action: list-account-managers` to show the current phone-to-sub-account bindings. Bind a phone with `whatsapp-config action: add-account-manager`, passing `phone` (E.164) and `managesAccount` (the sub-account UUID). Clear a binding with `whatsapp-config action: remove-account-manager`, passing `phone`.
41
41
 
42
- A phone is a house admin or a sub-account manager, never both. Binding a phone that is already on the admin list is refused, and vice versa. To move a house admin to a sub-account, remove it from the admin list first, then add it as an account manager.
42
+ A phone can hold both roles at once. Binding a phone that is already on the admin list succeeds, and so does adding a manager phone to the admin list. Which scope the sender gets is decided by the number they messaged: the house's number gives them the house, and a sub-account's own number gives them that sub-account. A manager bound to a sub-account that has no number of its own reaches it through the house number, as before. Messaging a sub-account number they are not bound to, and are not a house admin for, gives them no admin session there.
43
43
 
44
44
  Replies to an account manager go out over the house's paired WhatsApp device. The house's paired line is the transport for account-manager replies, and it can deliver to any number: which account owns the socket never restricts which numbers a message can reach. Account-manager binding decides only which agent session answers an inbound or runs a scheduled turn, not deliverability.
45
45
 
@@ -61,6 +61,16 @@ This is different from an account manager binding. A binding routes a manager's
61
61
 
62
62
  The agent's outbound on an observe socket is `whatsapp-reply`: reply into an existing conversation only, never a new chat. Cold first-contact stays unavailable, the same as every other WhatsApp surface.
63
63
 
64
+ **Per-account inbound policy:**
65
+
66
+ `dmPolicy`, `adminPhones` and `allowFrom` can be set per account, not just install-wide. An account with none of its own inherits the house's.
67
+
68
+ Read the current position with `whatsapp-config action: get-account-policy` — it returns each of the three values and whether it is the account's own or inherited from the house. Set them with `whatsapp-config action: set-account-policy`, passing a `policy` object containing any of `dmPolicy`, `adminPhones`, `allowFrom`. Pass every field you want in ONE call: `dmPolicy: "open"` requires `allowFrom` to contain `"*"`, and that is checked on the whole object.
69
+
70
+ A sub-account may set only its own; a house admin may set any. The house itself is refused, because its three fields ARE the top-level settings above — use `update-config` (or the admin-phone actions) for those. An account that has never paired is refused too: it has no socket, so it has no policy slice anything would read.
71
+
72
+ Confirm with `whatsapp-status`, which carries a `policyInheritance` row per account naming the source of each field.
73
+
64
74
  **Public agent:**
65
75
 
66
76
  Call `whatsapp-config action: list-public-agents` to get available agents, and `whatsapp-config action: get-public-agent` to get the current selection.