@rubytech/create-maxy-code 0.1.292 → 0.1.293

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 (154) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/package-lock.json +18 -1
  3. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +4 -2
  4. package/payload/platform/plugins/docs/references/admin-ui.md +2 -0
  5. package/payload/platform/plugins/docs/references/platform.md +1 -1
  6. package/payload/platform/services/claude-session-manager/dist/public-agent-reachability.d.ts +1 -1
  7. package/payload/platform/services/claude-session-manager/dist/public-agent-reachability.d.ts.map +1 -1
  8. package/payload/platform/services/claude-session-manager/dist/public-agent-reachability.js +1 -1
  9. package/payload/platform/services/claude-session-manager/dist/public-agent-reachability.js.map +1 -1
  10. package/payload/platform/services/webchat-channel/dist/server.d.ts +37 -1
  11. package/payload/platform/services/webchat-channel/dist/server.d.ts.map +1 -1
  12. package/payload/platform/services/webchat-channel/dist/server.js +43 -13
  13. package/payload/platform/services/webchat-channel/dist/server.js.map +1 -1
  14. package/payload/platform/services/whatsapp-channel/dist/server.d.ts +37 -1
  15. package/payload/platform/services/whatsapp-channel/dist/server.d.ts.map +1 -1
  16. package/payload/platform/services/whatsapp-channel/dist/server.js +43 -13
  17. package/payload/platform/services/whatsapp-channel/dist/server.js.map +1 -1
  18. package/payload/server/{chunk-QDCBAHPI.js → chunk-7H4KMTMC.js} +1 -1
  19. package/payload/server/maxy-edge.js +1 -1
  20. package/payload/server/public/assets/AdminShell-7xqVmEF0.js +1 -0
  21. package/payload/server/public/assets/{Checkbox-hYA5LjZ5.js → Checkbox-xIFPRr-Y.js} +1 -1
  22. package/payload/server/public/assets/{Transcript-BaC574J0.js → Transcript-siyY9S7_.js} +1 -1
  23. package/payload/server/public/assets/admin-DVyRE7og.js +1 -0
  24. package/payload/server/public/assets/{arc-yRinR5h4.js → arc-iu3VNUKX.js} +1 -1
  25. package/payload/server/public/assets/architecture-YZFGNWBL-HsK_v-AH.js +1 -0
  26. package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-d4iT6VnY.js → architectureDiagram-Q4EWVU46-un5y1Pav.js} +1 -1
  27. package/payload/server/public/assets/{blockDiagram-DXYQGD6D-o5Tjd8VR.js → blockDiagram-DXYQGD6D-CrT4y-Ve.js} +1 -1
  28. package/payload/server/public/assets/browser-CWFHESdi.js +1 -0
  29. package/payload/server/public/assets/{c4Diagram-AHTNJAMY-B8IQ2a83.js → c4Diagram-AHTNJAMY-BTNlRxRe.js} +1 -1
  30. package/payload/server/public/assets/channel-B3X2ELTx.js +1 -0
  31. package/payload/server/public/assets/chat-CoZ5hSiK.js +1 -0
  32. package/payload/server/public/assets/{chunk-2KRD3SAO-DAJbbBPY.js → chunk-2KRD3SAO-DjQJDvnb.js} +1 -1
  33. package/payload/server/public/assets/{chunk-336JU56O-1-fVU2_7.js → chunk-336JU56O-CWAQPaQW.js} +2 -2
  34. package/payload/server/public/assets/chunk-426QAEUC-CYsbwfwG.js +1 -0
  35. package/payload/server/public/assets/{chunk-4BX2VUAB-BTCTbhtf.js → chunk-4BX2VUAB-B2BREWGj.js} +1 -1
  36. package/payload/server/public/assets/{chunk-4TB4RGXK-k-V-xUC9.js → chunk-4TB4RGXK-CWOel6yZ.js} +1 -1
  37. package/payload/server/public/assets/{chunk-55IACEB6-BY026nUv.js → chunk-55IACEB6-8_6mlBoL.js} +1 -1
  38. package/payload/server/public/assets/{chunk-5FUZZQ4R-DMLY3acx.js → chunk-5FUZZQ4R-CcBL3hEb.js} +1 -1
  39. package/payload/server/public/assets/{chunk-5PVQY5BW-Dw-Sd9tl.js → chunk-5PVQY5BW-DpqQNCTE.js} +1 -1
  40. package/payload/server/public/assets/{chunk-67CJDMHE-Dl7bLJGe.js → chunk-67CJDMHE-D-EZpLie.js} +1 -1
  41. package/payload/server/public/assets/{chunk-7N4EOEYR-CFBOyqnD.js → chunk-7N4EOEYR-C9Ely26O.js} +1 -1
  42. package/payload/server/public/assets/{chunk-AA7GKIK3-BnnqjSlh.js → chunk-AA7GKIK3-DZZsYrza.js} +1 -1
  43. package/payload/server/public/assets/{chunk-BSJP7CBP-DKCTDAZE.js → chunk-BSJP7CBP-B_1DfG3d.js} +1 -1
  44. package/payload/server/public/assets/{chunk-CIAEETIT-jjeAEkQy.js → chunk-CIAEETIT-Osq5Xgsl.js} +1 -1
  45. package/payload/server/public/assets/{chunk-EDXVE4YY-DtpX8vYJ.js → chunk-EDXVE4YY-ecraT_D1.js} +1 -1
  46. package/payload/server/public/assets/{chunk-ENJZ2VHE-TxT7_-ER.js → chunk-ENJZ2VHE-D2_uycym.js} +1 -1
  47. package/payload/server/public/assets/{chunk-FMBD7UC4-B0zglVlf.js → chunk-FMBD7UC4-CpPyTbk9.js} +1 -1
  48. package/payload/server/public/assets/{chunk-FOC6F5B3-COVX_UuK.js → chunk-FOC6F5B3-BBUjlBL-.js} +1 -1
  49. package/payload/server/public/assets/{chunk-ICPOFSXX-CPrjaFl6.js → chunk-ICPOFSXX-BG-5Z4Qz.js} +2 -2
  50. package/payload/server/public/assets/{chunk-K5T4RW27-Bav1KRIS.js → chunk-K5T4RW27-BQfKdYtk.js} +1 -1
  51. package/payload/server/public/assets/{chunk-KGLVRYIC-nj7A12cJ.js → chunk-KGLVRYIC-D1pxYesN.js} +1 -1
  52. package/payload/server/public/assets/{chunk-LIHQZDEY-BmMkL9jD.js → chunk-LIHQZDEY-CwDi08BU.js} +1 -1
  53. package/payload/server/public/assets/{chunk-ORNJ4GCN-BvGwrI3j.js → chunk-ORNJ4GCN-Dy-V9ZFU.js} +1 -1
  54. package/payload/server/public/assets/{chunk-OYMX7WX6-CmoWgYtj.js → chunk-OYMX7WX6-Be3df9Kc.js} +1 -1
  55. package/payload/server/public/assets/chunk-QZHKN3VN-CitInsDb.js +1 -0
  56. package/payload/server/public/assets/{chunk-U2HBQHQK-stvjyyuR.js → chunk-U2HBQHQK-B1lsc9BA.js} +1 -1
  57. package/payload/server/public/assets/{chunk-X2U36JSP-qAuy5Y44.js → chunk-X2U36JSP-lSzO6qYV.js} +1 -1
  58. package/payload/server/public/assets/{chunk-XPW4576I-DpLw5_cw.js → chunk-XPW4576I-BvIgWKZQ.js} +1 -1
  59. package/payload/server/public/assets/{chunk-YZCP3GAM-Vk12yILs.js → chunk-YZCP3GAM-Bb60_vDO.js} +1 -1
  60. package/payload/server/public/assets/{chunk-ZZ45TVLE-WJVrlWz_.js → chunk-ZZ45TVLE-Bny6wiCL.js} +1 -1
  61. package/payload/server/public/assets/classDiagram-6PBFFD2Q-B8ZHYEIL.js +1 -0
  62. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-D7TgEwXH.js +1 -0
  63. package/payload/server/public/assets/clone-C-K4Yq8V.js +1 -0
  64. package/payload/server/public/assets/{cose-bilkent-S5V4N54A-bCIQHniJ.js → cose-bilkent-S5V4N54A-DsO6VRrT.js} +1 -1
  65. package/payload/server/public/assets/{dagre--B-g8MLT.js → dagre-DTQyvF-b.js} +1 -1
  66. package/payload/server/public/assets/{dagre-KV5264BT-BHFfoLq0.js → dagre-KV5264BT-Bd45zu30.js} +1 -1
  67. package/payload/server/public/assets/data-Dex0L_hs.js +1 -0
  68. package/payload/server/public/assets/{diagram-5BDNPKRD-TvCFSaXd.js → diagram-5BDNPKRD-B3GfgObm.js} +1 -1
  69. package/payload/server/public/assets/{diagram-G4DWMVQ6-8flGaFB_.js → diagram-G4DWMVQ6-Ccy_YcB0.js} +1 -1
  70. package/payload/server/public/assets/{diagram-MMDJMWI5-Dag0WBhV.js → diagram-MMDJMWI5-uOEKrHYy.js} +1 -1
  71. package/payload/server/public/assets/{diagram-TYMM5635-u7wh2Nwj.js → diagram-TYMM5635-BAWSU1wH.js} +1 -1
  72. package/payload/server/public/assets/{erDiagram-SMLLAGMA-DBTHDFh_.js → erDiagram-SMLLAGMA-C5SNsoHU.js} +1 -1
  73. package/payload/server/public/assets/{flatten-CpKIi5d2.js → flatten-ya0TqRLc.js} +1 -1
  74. package/payload/server/public/assets/{flowDiagram-DWJPFMVM-C4bd2cb-.js → flowDiagram-DWJPFMVM-eGUNT0jC.js} +1 -1
  75. package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-DrfpI4Gl.js → ganttDiagram-T4ZO3ILL-ChQD_MQS.js} +1 -1
  76. package/payload/server/public/assets/gitGraph-7Q5UKJZL-CP3pxYZ8.js +1 -0
  77. package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-a_WyzWRQ.js → gitGraphDiagram-UUTBAWPF-CK5hWyS_.js} +1 -1
  78. package/payload/server/public/assets/{graph-labels-DznU92XA.js → graph-labels-J48HJ3as.js} +1 -1
  79. package/payload/server/public/assets/graph-nPeTW1V_.js +51 -0
  80. package/payload/server/public/assets/{graphlib-B85zmy3s.js → graphlib-DbSkkysa.js} +1 -1
  81. package/payload/server/public/assets/info-OMHHGYJF-DUz8FRjp.js +1 -0
  82. package/payload/server/public/assets/infoDiagram-42DDH7IO-CoLeR6OP.js +2 -0
  83. package/payload/server/public/assets/{isEmpty-C3Vxk1It.js → isEmpty-h-wRi_o9.js} +1 -1
  84. package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-3jXIqGtb.js → ishikawaDiagram-UXIWVN3A-DR685OiM.js} +1 -1
  85. package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-BXrBb8KE.js → journeyDiagram-VCZTEJTY-DYgyVIQE.js} +1 -1
  86. package/payload/server/public/assets/{kanban-definition-6JOO6SKY-Dc5vZnuT.js → kanban-definition-6JOO6SKY-BbOYz3ft.js} +1 -1
  87. package/payload/server/public/assets/{line-x0RuVReA.js → line-BmJuH1ci.js} +1 -1
  88. package/payload/server/public/assets/{linear-Cdt0EBMa.js → linear-HbmXARXu.js} +1 -1
  89. package/payload/server/public/assets/{mermaid-parser.core-CBRGDK2w.js → mermaid-parser.core-B9dlRmr6.js} +2 -2
  90. package/payload/server/public/assets/{mermaid.core-DeYYeYyM.js → mermaid.core-CA_tMkuh.js} +3 -3
  91. package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-Bw-hRp-Y.js → mindmap-definition-QFDTVHPH-DNfGKB3j.js} +1 -1
  92. package/payload/server/public/assets/{ordinal-BLrOss5K.js → ordinal-Dwxksj1B.js} +1 -1
  93. package/payload/server/public/assets/packet-4T2RLAQJ-C-0PIYwM.js +1 -0
  94. package/payload/server/public/assets/pie-ZZUOXDRM-DUWx5LLr.js +1 -0
  95. package/payload/server/public/assets/{pieDiagram-DEJITSTG-C2DTjmdf.js → pieDiagram-DEJITSTG-4nplxyR3.js} +1 -1
  96. package/payload/server/public/assets/{public-tk3PfPWF.js → public-C7o23SFC.js} +3 -3
  97. package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-Ffhnv5Ih.js → quadrantDiagram-34T5L4WZ-BuRxivWl.js} +1 -1
  98. package/payload/server/public/assets/radar-PYXPWWZC-BPW6Hewb.js +1 -0
  99. package/payload/server/public/assets/{reduce-C5tBOlxC.js → reduce-BUuWaDl2.js} +1 -1
  100. package/payload/server/public/assets/{requirementDiagram-MS252O5E-y7-gOSmI.js → requirementDiagram-MS252O5E-CX0JWzZW.js} +1 -1
  101. package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-CMwArh7T.js → sankeyDiagram-XADWPNL6-BPbfY-tX.js} +1 -1
  102. package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-C8obTGl1.js → sequenceDiagram-FGHM5R23-BgDVnY5n.js} +1 -1
  103. package/payload/server/public/assets/{stateDiagram-FHFEXIEX-BZHsj7kJ.js → stateDiagram-FHFEXIEX-DZzcTY8N.js} +1 -1
  104. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-Bk-yVe98.js +1 -0
  105. package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-D-fo_L7-.js → timeline-definition-GMOUNBTQ-LRc4oAIn.js} +1 -1
  106. package/payload/server/public/assets/treeView-SZITEDCU-CfxoEICI.js +1 -0
  107. package/payload/server/public/assets/treemap-W4RFUUIX-BFC84eoy.js +1 -0
  108. package/payload/server/public/assets/{useSelectionMode-CQBRZjvc.css → useSelectionMode-s7AH5v9J.css} +1 -1
  109. package/payload/server/public/assets/{vennDiagram-DHZGUBPP--aEWsS70.js → vennDiagram-DHZGUBPP-D285XuiE.js} +1 -1
  110. package/payload/server/public/assets/wardley-RL74JXVD-C-mQV2If.js +1 -0
  111. package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-DFWrB0Kk.js → wardleyDiagram-NUSXRM2D-55WTCJwx.js} +1 -1
  112. package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-DZsTZHC6.js → xychartDiagram-5P7HB3ND-mBKutlt4.js} +1 -1
  113. package/payload/server/public/browser.html +4 -5
  114. package/payload/server/public/chat.html +5 -5
  115. package/payload/server/public/data.html +5 -6
  116. package/payload/server/public/graph.html +6 -7
  117. package/payload/server/public/index.html +6 -7
  118. package/payload/server/public/public.html +4 -4
  119. package/payload/server/server.js +321 -246
  120. package/payload/server/public/assets/AdminShell-CpRQprdb.js +0 -1
  121. package/payload/server/public/assets/SidebarSplitter-D0mErwLL.js +0 -1
  122. package/payload/server/public/assets/admin-BVasculM.js +0 -1
  123. package/payload/server/public/assets/architecture-YZFGNWBL-B2UAw-4R.js +0 -1
  124. package/payload/server/public/assets/browser-CwU2ReNI.js +0 -1
  125. package/payload/server/public/assets/channel-CizJU0ud.js +0 -1
  126. package/payload/server/public/assets/chat-NxS8JsVQ.js +0 -1
  127. package/payload/server/public/assets/chunk-426QAEUC-CAPR5ZG1.js +0 -1
  128. package/payload/server/public/assets/chunk-QZHKN3VN-COXR_N4N.js +0 -1
  129. package/payload/server/public/assets/classDiagram-6PBFFD2Q-kzz9ab1y.js +0 -1
  130. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-NFfOmc0C.js +0 -1
  131. package/payload/server/public/assets/clone-C15qvnbX.js +0 -1
  132. package/payload/server/public/assets/data-CebDWao6.js +0 -1
  133. package/payload/server/public/assets/gitGraph-7Q5UKJZL-CwwaM7ed.js +0 -1
  134. package/payload/server/public/assets/graph-qR6IbCv1.js +0 -51
  135. package/payload/server/public/assets/info-OMHHGYJF-CiiU112m.js +0 -1
  136. package/payload/server/public/assets/infoDiagram-42DDH7IO-g9Re1Ubl.js +0 -2
  137. package/payload/server/public/assets/packet-4T2RLAQJ-Bq_zPNb3.js +0 -1
  138. package/payload/server/public/assets/pie-ZZUOXDRM-R-cewHYM.js +0 -1
  139. package/payload/server/public/assets/radar-PYXPWWZC-CZpBUjmo.js +0 -1
  140. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-fK1TrvKX.js +0 -1
  141. package/payload/server/public/assets/treeView-SZITEDCU-CjsdVrjr.js +0 -1
  142. package/payload/server/public/assets/treemap-W4RFUUIX-BZ8peN4O.js +0 -1
  143. package/payload/server/public/assets/wardley-RL74JXVD-BYLmRSDV.js +0 -1
  144. /package/payload/server/public/assets/{_baseFor-WfS9pKAn.js → _baseFor-Dn4GSmI6.js} +0 -0
  145. /package/payload/server/public/assets/{array-HeX70jSN.js → array-DJN9YAVf.js} +0 -0
  146. /package/payload/server/public/assets/{cytoscape.esm-CDZo0kst.js → cytoscape.esm-BcJTl1re.js} +0 -0
  147. /package/payload/server/public/assets/{defaultLocale-GJwWH1Jr.js → defaultLocale-B4F_XsBB.js} +0 -0
  148. /package/payload/server/public/assets/{dist-ePW3hz19.js → dist-B7zzC2xF.js} +0 -0
  149. /package/payload/server/public/assets/{init-BPLPMQ3Y.js → init-DX0Y1qU4.js} +0 -0
  150. /package/payload/server/public/assets/{katex-CKZ-HWMQ.js → katex-CjHJ1D7d.js} +0 -0
  151. /package/payload/server/public/assets/{path-YdFzr2W6.js → path-7vUsG-o2.js} +0 -0
  152. /package/payload/server/public/assets/{rough.esm-HAx67Hnb.js → rough.esm-NLRoWnq-.js} +0 -0
  153. /package/payload/server/public/assets/{src-DssjGmtU.js → src-CpjuOYjb.js} +0 -0
  154. /package/payload/server/public/assets/{useSelectionMode-CJ2UADOe.js → useSelectionMode-CFisDuuw.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.292",
3
+ "version": "0.1.293",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -129,6 +129,10 @@
129
129
  "resolved": "plugins/url-get/mcp",
130
130
  "link": true
131
131
  },
132
+ "node_modules/@maxy/webchat-channel": {
133
+ "resolved": "services/webchat-channel",
134
+ "link": true
135
+ },
132
136
  "node_modules/@maxy/whatsapp": {
133
137
  "resolved": "plugins/whatsapp/mcp",
134
138
  "link": true
@@ -3876,7 +3880,8 @@
3876
3880
  "devDependencies": {
3877
3881
  "@types/node": "^22.0.0",
3878
3882
  "@types/nodemailer": "^6.4.17",
3879
- "typescript": "^5.7.0"
3883
+ "typescript": "^5.7.0",
3884
+ "vitest": "^4.1.7"
3880
3885
  }
3881
3886
  },
3882
3887
  "plugins/graph-viewer/mcp": {
@@ -4060,6 +4065,18 @@
4060
4065
  "vitest": "^4.1.2"
4061
4066
  }
4062
4067
  },
4068
+ "services/webchat-channel": {
4069
+ "name": "@maxy/webchat-channel",
4070
+ "version": "0.1.0",
4071
+ "dependencies": {
4072
+ "@modelcontextprotocol/sdk": "^1.0.0"
4073
+ },
4074
+ "devDependencies": {
4075
+ "@types/node": "^22.0.0",
4076
+ "typescript": "^5.7.0",
4077
+ "vitest": "^4.1.2"
4078
+ }
4079
+ },
4063
4080
  "services/whatsapp-channel": {
4064
4081
  "name": "@maxy/whatsapp-channel",
4065
4082
  "version": "0.1.0",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: platform-architecture
3
3
  description: Use when grounding any documented-surface claim about what Maxy 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:edae39c038e88d2b4f86c7bfb6f9710a825515ef8ddbc1fd24ea501f38dd0dbe
4
+ content-hash: sha256:516d6fb2a0a7f45c4e8799c5ae4b3bf1009793c296a8b0882d11ea2eff79245a
5
5
  brand: maxy-code
6
6
  product-name: Maxy
7
7
  ---
@@ -196,7 +196,7 @@ There is no dashboard, no settings panel, no menus. Everything is done through c
196
196
 
197
197
  The chat input auto-grows as you type — it expands to fit your message and shrinks back when you delete text. You can also drag the resize handle above the input to set a custom height.
198
198
 
199
- The admin interface is a three-pane layout: a sidebar on the left with navigation (Sessions, People, Agents, Projects, Tasks, Artefacts) and your recent conversations; the chat in the middle; and an artefact pane on the right that opens when you select a document, click a project, or open Browser, Data, or Graph from the menu, holding the surface side-by-side with the conversation so the chat stays live while you work in it. At the very top of the sidebar — above the nav rows — a borderless row holds two controls: a "+ New session" button on the left that spawns a fresh Claude Code session, and a Mode trigger on the right showing the current permission mode (Ask, Accept edits, Plan, or Auto). The sidebar's vertical order is: new-session strip first, then the nav (Sessions, People, Agents, Projects, Tasks, Artefacts), then the sessions list, then the footer. Both controls render as plain text-plus-icon affordances with no surrounding rectangle. The "+ New session" button is a text-width hit target — its clickable area is exactly the icon plus label, not the whole row — and shows no hover fill; the only hover feedback is the pointer cursor. The Mode trigger is pushed flush to the right edge of the row. Clicking the Mode trigger opens a popover downward from the row whose header reads "Mode" and lists the four permission modes with the current selection check-marked. The sidebar's nav rows swap the list view in place: Sessions shows recent conversations, Projects shows your active work projects, and Artefacts lists every KnowledgeDocument plus this account's agent templates (your admin agent's IDENTITY, SOUL, and KNOWLEDGE files plus one entry per enabled specialist). Each recent session row carries a three-state indicator: three pulsing dots when the session is busy (currently processing a turn), a solid sage dot when it is idle (live PTY waiting for input), and a hollow ring when it is archived (PTY exited, JSONL on disk for audit). The list itself splits into three views via a segmented control above the rows: **Active** shows every live session, **Archived** shows every JSONL on disk whose PTY has exited, and **All** shows both. The view choice persists across reloads. An "Include subagents" toggle inside the Active view surfaces specialist spawns (database-operator, premium-plugin agents, anything spawned with a `--agent` flag) which are hidden by default so the list reflects what you started directly. Each row also carries a small uppercase badge — `admin` for operator-driven sessions, the specialist name (for example `db-op`) for background work — so the source of any row is unambiguous at a glance. The People, Agents, and Tasks rows are graph shortcuts: clicking each opens the artefact-pane Graph filtered to every Person, every public Agent, or every Task in your account respectively, with no side-list, because the graph itself is the result. Public agents become first-class graph entities the moment you create them, with edges to their IDENTITY/SOUL/KNOWLEDGE files, edges to every knowledge document they have access to, and edges from every conversation they have handled, so a single Agents click reveals the whole shape of who knows what and who has been talking to whom. Click an artefact row to open the document. KnowledgeDocuments and your admin agent's templates are editable: type in the document and changes save automatically; specialist agent templates are read-only because they ship with Maxy and your edits would be overwritten on the next install. PDF artefacts render inline so you can read them without leaving the pane. If your browser doesn't have a built-in PDF viewer, a Download button appears instead. Artefacts that have no readable file backing them (orphan rows, files removed from disk, unsupported content types) show a one-line banner explaining the skip instead of opening to a blank pane. Click a project row to open the Graph view focused on that project's neighbourhood; clicking a second project swaps the focus rather than stacking on top. The sidebar's right edge is drag-resizable on every admin page (Sessions root, Graph, and Data): drag the handle to widen or narrow the sidebar, and your chosen width is remembered across reloads and shared across all three pages. The drag handle is mounted by each AdminShell consumer rather than by AdminShell itself, so any new admin route must include `<SidebarSplitter />` as a direct child of its `<AdminShell>` to pick up the shared width. The chat and artefact divider is also drag-resizable: drag the line between the columns to make either side wider; double-click it to reset to half of the available width (viewport minus sidebar), clamped to the chat and artefact min-width floors. Your chosen width is remembered across reloads. On wider screens (>1280px) all three panes are visible. The sidebar narrows at 1280px, the artefact pane hides at 1080px (Browser, Data, and Graph then open as full-window pages instead), and the sidebar collapses to a 56px icon rail at 820px. On every viewport the chat header reads left to right as a triptych: a dedicated sidebar toggle (the panel-right icon, which swaps to panel-right-open when the sidebar is showing), the brand mark next to the title in the centre, and the menu burger on the right. This header toggle is the sole sidebar-toggle button; the sidebar itself no longer carries a duplicate. The burger opens the navigation flyout: Dashboard, Data, Graph, Browser, and Chat at the top — Dashboard routes back to `/`, so every satellite page keeps a one-click way home, and the Chat item carries the Claude mark rather than a generic icon — then Public (the agents list) between the two dividers, and below the second divider the version row, Disconnect Claude account, and Log out. Tap the sidebar toggle to show or hide the sidebar: on phones (<720px) it slides the drawer in or out, on wider screens it collapses or expands the sidebar column. The brand mark in the centre is decorative; clicks go through the dedicated toggle so the affordance is unambiguous. The drawer animation only fires on tap (220ms slide in or out); resizing your window across the 720px boundary snaps the layout without animation, so you never see a half-open flash. At ≤640px the session metadata pane stacks each label above its value instead of the desktop two-column grid, and the row of action buttons (Open in new tab / Download JSONL / View JSONL / Rename / Pin / Archive / End or Purge) collapses behind a single Actions trigger that opens a popover upward from the foot of the pane. Breakpoint summary: >1280px = full sidebar + chat + artefact pane (drag-resizable divider); 1280px→1080px = sidebar narrows; 1080px→820px = artefact pane hides (Browser/Data/Graph open as full-window pages instead); 820px→720px = sidebar collapses to 56px icon rail; ≤720px = sidebar becomes off-canvas drawer (vertical stack of nav, recents list, foot, the same shape as the desktop sidebar, just on top of the chat instead of beside it).
199
+ The admin interface is a three-pane layout: a sidebar on the left with navigation (Sessions, People, Agents, Projects, Tasks, Artefacts) and your recent conversations; the chat in the middle; and an artefact pane on the right that opens when you select a document, click a project, or open Browser, Data, or Graph from the menu, holding the surface side-by-side with the conversation so the chat stays live while you work in it. At the very top of the sidebar — above the nav rows — a borderless row holds two controls: a "+ New session" button on the left that spawns a fresh Claude Code session, and a Mode trigger on the right showing the current permission mode (Ask, Accept edits, Plan, or Auto). The sidebar's vertical order is: new-session strip first, then the nav (Sessions, People, Agents, Projects, Tasks, Artefacts), then the sessions list, then the footer. Both controls render as plain text-plus-icon affordances with no surrounding rectangle. The "+ New session" button is a text-width hit target — its clickable area is exactly the icon plus label, not the whole row — and shows no hover fill; the only hover feedback is the pointer cursor. The Mode trigger is pushed flush to the right edge of the row. Clicking the Mode trigger opens a popover downward from the row whose header reads "Mode" and lists the four permission modes with the current selection check-marked. The sidebar's nav rows swap the list view in place: Sessions shows recent conversations, Projects shows your active work projects, and Artefacts lists every KnowledgeDocument plus this account's agent templates (your admin agent's IDENTITY, SOUL, and KNOWLEDGE files plus one entry per enabled specialist). Each recent session row carries a three-state indicator: three pulsing dots when the session is busy (currently processing a turn), a solid sage dot when it is idle (live PTY waiting for input), and a hollow ring when it is archived (PTY exited, JSONL on disk for audit). The list itself splits into three views via a segmented control above the rows: **Active** shows every live session, **Archived** shows every JSONL on disk whose PTY has exited, and **All** shows both. The view choice persists across reloads. An "Include subagents" toggle inside the Active view surfaces specialist spawns (database-operator, premium-plugin agents, anything spawned with a `--agent` flag) which are hidden by default so the list reflects what you started directly. Each row also carries a small uppercase badge — `admin` for operator-driven sessions, the specialist name (for example `db-op`) for background work — so the source of any row is unambiguous at a glance. The People, Agents, and Tasks rows are graph shortcuts: clicking each opens the artefact-pane Graph filtered to every Person, every public Agent, or every Task in your account respectively, with no side-list, because the graph itself is the result. Public agents become first-class graph entities the moment you create them, with edges to their IDENTITY/SOUL/KNOWLEDGE files, edges to every knowledge document they have access to, and edges from every conversation they have handled, so a single Agents click reveals the whole shape of who knows what and who has been talking to whom. Click an artefact row to open the document. KnowledgeDocuments and your admin agent's templates are editable: type in the document and changes save automatically; specialist agent templates are read-only because they ship with Maxy and your edits would be overwritten on the next install. PDF artefacts render inline so you can read them without leaving the pane. If your browser doesn't have a built-in PDF viewer, a Download button appears instead. Artefacts that have no readable file backing them (orphan rows, files removed from disk, unsupported content types) show a one-line banner explaining the skip instead of opening to a blank pane. Click a project row to open the Graph view focused on that project's neighbourhood; clicking a second project swaps the focus rather than stacking on top. The sidebar's right edge is drag-resizable on every shell-hosted admin page (Sessions root, Chat, Graph, Browser, and Data): drag the handle to widen or narrow the sidebar, and your chosen width is remembered across reloads and shared across all of them. AdminShell mounts the drag handle itself, so every route that wraps its content in `<AdminShell>` gets sidebar resize for free; the handle does not render in the mobile drawer. The chat and artefact divider is also drag-resizable: drag the line between the columns to make either side wider; double-click it to reset to half of the available width (viewport minus sidebar), clamped to the chat and artefact min-width floors. Your chosen width is remembered across reloads. On wider screens (>1280px) all three panes are visible. The sidebar narrows at 1280px, the artefact pane hides at 1080px (Browser, Data, and Graph then open as full-window pages instead), and the sidebar collapses to a 56px icon rail at 820px. On every viewport the chat header reads left to right as a triptych: a dedicated sidebar toggle (the panel-right icon, which swaps to panel-right-open when the sidebar is showing), the brand mark next to the title in the centre, and the menu burger on the right. This header toggle is the sole sidebar-toggle button; the sidebar itself no longer carries a duplicate. The burger opens the navigation flyout: Dashboard, Data, Graph, Browser, and Chat at the top — Dashboard routes back to `/`, so every satellite page keeps a one-click way home, and the Chat item carries the Claude mark rather than a generic icon — then Public (the agents list) between the two dividers, and below the second divider the version row, Disconnect Claude account, and Log out. Tap the sidebar toggle to show or hide the sidebar: on phones (<720px) it slides the drawer in or out, on wider screens it collapses or expands the sidebar column. The brand mark in the centre is decorative; clicks go through the dedicated toggle so the affordance is unambiguous. The drawer animation only fires on tap (220ms slide in or out); resizing your window across the 720px boundary snaps the layout without animation, so you never see a half-open flash. At ≤640px the session metadata pane stacks each label above its value instead of the desktop two-column grid, and the row of action buttons (Open in new tab / Download JSONL / View JSONL / Rename / Pin / Archive / End or Purge) collapses behind a single Actions trigger that opens a popover upward from the foot of the pane. Breakpoint summary: >1280px = full sidebar + chat + artefact pane (drag-resizable divider); 1280px→1080px = sidebar narrows; 1080px→820px = artefact pane hides (Browser/Data/Graph open as full-window pages instead); 820px→720px = sidebar collapses to 56px icon rail; ≤720px = sidebar becomes off-canvas drawer (vertical stack of nav, recents list, foot, the same shape as the desktop sidebar, just on top of the chat instead of beside it).
200
200
 
201
201
  Page titles are brand-aware: the browser tab shows your product name (e.g. `Real Agent` instead of `Maxy`) on every shell — chat, graph, and data — so a non-default brand never leaks the default name in tab strips or browser history.
202
202
 
@@ -2280,6 +2280,8 @@ Task 500 — **admin session management moved entirely to claude's own interface
2280
2280
 
2281
2281
  **Row title resolution.** Both the sidebar (`/sidebar-sessions`) and the manager's own row payload resolve a row's title in the same order: operator rename → Claude Code `ai-title` → first non-CLI user message → 8-char sessionId prefix. The operator-rename tier is the on-disk `<accountDir>/session-titles.json` (the manager's `UserTitleStore`), keyed by the CC sessionId — the sidebar reads that same file, so a write to the store lights up both surfaces with one write.
2282
2282
 
2283
+ **Task 785 — `/chat` empty-state greeting panel.** While the admin webchat has no conversation JSONL yet (`GET /api/webchat/session` → `projectDir:null`), `app/chat/page.tsx` renders a "What's up next, {givenName}?" greeting (given name = first whitespace token of the admin session's `userName`) above two read-only lists from `GET /api/webchat/greeting` (`server/routes/webchat-greeting.ts`, `requireAdminSession`-gated, `accountId`-scoped): the next 5 upcoming `:Event` rows (`eventStatus IN ['scheduled','due']`, future `COALESCE(nextRun, startDate)`, soonest first) and the outstanding `:Task` rows (`status IN ['pending','active','running']`, 5 shown + `+N more`). Read failure returns HTTP 200 `{ ok: false }` and the page shows the headline alone — the panel never blocks the composer. Logs: `[webchat:greeting] op=read account=<id8> events=<n> tasks=<n> ms=<n>` / `op=read-failed reason=…`; client warns `[admin-ui] greeting-unavailable …`. The full webchat architecture lives in `.docs/admin-webchat-native-channel.md`.
2284
+
2283
2285
  **Task 624 — maxy title for public sessions.** A `role=public` webchat spawn never produces a useful Claude Code `ai-title` (an anonymous one-line visitor turn), so every public row would otherwise read identically. The webchat route (`chat.ts`) composes a deterministic title — `Web · <senderId[:8]>[ · <personId>] · <UTC YYYY-MM-DD HH:mm>` (personId present only for gated visitors) — and threads it through the bridge (`dispatchOnce` → `managerSpawn`) to the manager `POST /spawn` body as `name`. `/spawn` validates it with `validateUserTitle` and, for `role=public` only, writes it into `UserTitleStore` so it occupies the operator-rename tier and wins over `ai-title`. Admin (`/rc-spawn`) and WhatsApp titling are unchanged. Observability: every public spawn logs `[spawn] role=public … title="…"` (or `title=missing`); the manager's row builder emits `[public-title] sessionId=… unexpected titleSource=<ai|null>` on the next list read for any public row that did not resolve from the user tier.
2284
2286
 
2285
2287
  ### Graph
@@ -53,6 +53,8 @@ Task 500 — **admin session management moved entirely to claude's own interface
53
53
 
54
54
  **Row title resolution.** Both the sidebar (`/sidebar-sessions`) and the manager's own row payload resolve a row's title in the same order: operator rename → Claude Code `ai-title` → first non-CLI user message → 8-char sessionId prefix. The operator-rename tier is the on-disk `<accountDir>/session-titles.json` (the manager's `UserTitleStore`), keyed by the CC sessionId — the sidebar reads that same file, so a write to the store lights up both surfaces with one write.
55
55
 
56
+ **Task 785 — `/chat` empty-state greeting panel.** While the admin webchat has no conversation JSONL yet (`GET /api/webchat/session` → `projectDir:null`), `app/chat/page.tsx` renders a "What's up next, {givenName}?" greeting (given name = first whitespace token of the admin session's `userName`) above two read-only lists from `GET /api/webchat/greeting` (`server/routes/webchat-greeting.ts`, `requireAdminSession`-gated, `accountId`-scoped): the next 5 upcoming `:Event` rows (`eventStatus IN ['scheduled','due']`, future `COALESCE(nextRun, startDate)`, soonest first) and the outstanding `:Task` rows (`status IN ['pending','active','running']`, 5 shown + `+N more`). Read failure returns HTTP 200 `{ ok: false }` and the page shows the headline alone — the panel never blocks the composer. Logs: `[webchat:greeting] op=read account=<id8> events=<n> tasks=<n> ms=<n>` / `op=read-failed reason=…`; client warns `[admin-ui] greeting-unavailable …`. The full webchat architecture lives in `.docs/admin-webchat-native-channel.md`.
57
+
56
58
  **Task 624 — maxy title for public sessions.** A `role=public` webchat spawn never produces a useful Claude Code `ai-title` (an anonymous one-line visitor turn), so every public row would otherwise read identically. The webchat route (`chat.ts`) composes a deterministic title — `Web · <senderId[:8]>[ · <personId>] · <UTC YYYY-MM-DD HH:mm>` (personId present only for gated visitors) — and threads it through the bridge (`dispatchOnce` → `managerSpawn`) to the manager `POST /spawn` body as `name`. `/spawn` validates it with `validateUserTitle` and, for `role=public` only, writes it into `UserTitleStore` so it occupies the operator-rename tier and wins over `ai-title`. Admin (`/rc-spawn`) and WhatsApp titling are unchanged. Observability: every public spawn logs `[spawn] role=public … title="…"` (or `title=missing`); the manager's row builder emits `[public-title] sessionId=… unexpected titleSource=<ai|null>` on the next list read for any public row that did not resolve from the user tier.
57
59
 
58
60
  ### Graph
@@ -82,7 +82,7 @@ There is no dashboard, no settings panel, no menus. Everything is done through c
82
82
 
83
83
  The chat input auto-grows as you type — it expands to fit your message and shrinks back when you delete text. You can also drag the resize handle above the input to set a custom height.
84
84
 
85
- The admin interface is a three-pane layout: a sidebar on the left with navigation (Sessions, People, Agents, Projects, Tasks, Artefacts) and your recent conversations; the chat in the middle; and an artefact pane on the right that opens when you select a document, click a project, or open Browser, Data, or Graph from the menu, holding the surface side-by-side with the conversation so the chat stays live while you work in it. At the very top of the sidebar — above the nav rows — a borderless row holds two controls: a "+ New session" button on the left that spawns a fresh Claude Code session, and a Mode trigger on the right showing the current permission mode (Ask, Accept edits, Plan, or Auto). The sidebar's vertical order is: new-session strip first, then the nav (Sessions, People, Agents, Projects, Tasks, Artefacts), then the sessions list, then the footer. Both controls render as plain text-plus-icon affordances with no surrounding rectangle. The "+ New session" button is a text-width hit target — its clickable area is exactly the icon plus label, not the whole row — and shows no hover fill; the only hover feedback is the pointer cursor. The Mode trigger is pushed flush to the right edge of the row. Clicking the Mode trigger opens a popover downward from the row whose header reads "Mode" and lists the four permission modes with the current selection check-marked. The sidebar's nav rows swap the list view in place: Sessions shows recent conversations, Projects shows your active work projects, and Artefacts lists every KnowledgeDocument plus this account's agent templates (your admin agent's IDENTITY, SOUL, and KNOWLEDGE files plus one entry per enabled specialist). Each recent session row carries a three-state indicator: three pulsing dots when the session is busy (currently processing a turn), a solid sage dot when it is idle (live PTY waiting for input), and a hollow ring when it is archived (PTY exited, JSONL on disk for audit). The list itself splits into three views via a segmented control above the rows: **Active** shows every live session, **Archived** shows every JSONL on disk whose PTY has exited, and **All** shows both. The view choice persists across reloads. An "Include subagents" toggle inside the Active view surfaces specialist spawns (database-operator, premium-plugin agents, anything spawned with a `--agent` flag) which are hidden by default so the list reflects what you started directly. Each row also carries a small uppercase badge — `admin` for operator-driven sessions, the specialist name (for example `db-op`) for background work — so the source of any row is unambiguous at a glance. The People, Agents, and Tasks rows are graph shortcuts: clicking each opens the artefact-pane Graph filtered to every Person, every public Agent, or every Task in your account respectively, with no side-list, because the graph itself is the result. Public agents become first-class graph entities the moment you create them, with edges to their IDENTITY/SOUL/KNOWLEDGE files, edges to every knowledge document they have access to, and edges from every conversation they have handled, so a single Agents click reveals the whole shape of who knows what and who has been talking to whom. Click an artefact row to open the document. KnowledgeDocuments and your admin agent's templates are editable: type in the document and changes save automatically; specialist agent templates are read-only because they ship with Maxy and your edits would be overwritten on the next install. PDF artefacts render inline so you can read them without leaving the pane. If your browser doesn't have a built-in PDF viewer, a Download button appears instead. Artefacts that have no readable file backing them (orphan rows, files removed from disk, unsupported content types) show a one-line banner explaining the skip instead of opening to a blank pane. Click a project row to open the Graph view focused on that project's neighbourhood; clicking a second project swaps the focus rather than stacking on top. The sidebar's right edge is drag-resizable on every admin page (Sessions root, Graph, and Data): drag the handle to widen or narrow the sidebar, and your chosen width is remembered across reloads and shared across all three pages. The drag handle is mounted by each AdminShell consumer rather than by AdminShell itself, so any new admin route must include `<SidebarSplitter />` as a direct child of its `<AdminShell>` to pick up the shared width. The chat and artefact divider is also drag-resizable: drag the line between the columns to make either side wider; double-click it to reset to half of the available width (viewport minus sidebar), clamped to the chat and artefact min-width floors. Your chosen width is remembered across reloads. On wider screens (>1280px) all three panes are visible. The sidebar narrows at 1280px, the artefact pane hides at 1080px (Browser, Data, and Graph then open as full-window pages instead), and the sidebar collapses to a 56px icon rail at 820px. On every viewport the chat header reads left to right as a triptych: a dedicated sidebar toggle (the panel-right icon, which swaps to panel-right-open when the sidebar is showing), the brand mark next to the title in the centre, and the menu burger on the right. This header toggle is the sole sidebar-toggle button; the sidebar itself no longer carries a duplicate. The burger opens the navigation flyout: Dashboard, Data, Graph, Browser, and Chat at the top — Dashboard routes back to `/`, so every satellite page keeps a one-click way home, and the Chat item carries the Claude mark rather than a generic icon — then Public (the agents list) between the two dividers, and below the second divider the version row, Disconnect Claude account, and Log out. Tap the sidebar toggle to show or hide the sidebar: on phones (<720px) it slides the drawer in or out, on wider screens it collapses or expands the sidebar column. The brand mark in the centre is decorative; clicks go through the dedicated toggle so the affordance is unambiguous. The drawer animation only fires on tap (220ms slide in or out); resizing your window across the 720px boundary snaps the layout without animation, so you never see a half-open flash. At ≤640px the session metadata pane stacks each label above its value instead of the desktop two-column grid, and the row of action buttons (Open in new tab / Download JSONL / View JSONL / Rename / Pin / Archive / End or Purge) collapses behind a single Actions trigger that opens a popover upward from the foot of the pane. Breakpoint summary: >1280px = full sidebar + chat + artefact pane (drag-resizable divider); 1280px→1080px = sidebar narrows; 1080px→820px = artefact pane hides (Browser/Data/Graph open as full-window pages instead); 820px→720px = sidebar collapses to 56px icon rail; ≤720px = sidebar becomes off-canvas drawer (vertical stack of nav, recents list, foot, the same shape as the desktop sidebar, just on top of the chat instead of beside it).
85
+ The admin interface is a three-pane layout: a sidebar on the left with navigation (Sessions, People, Agents, Projects, Tasks, Artefacts) and your recent conversations; the chat in the middle; and an artefact pane on the right that opens when you select a document, click a project, or open Browser, Data, or Graph from the menu, holding the surface side-by-side with the conversation so the chat stays live while you work in it. At the very top of the sidebar — above the nav rows — a borderless row holds two controls: a "+ New session" button on the left that spawns a fresh Claude Code session, and a Mode trigger on the right showing the current permission mode (Ask, Accept edits, Plan, or Auto). The sidebar's vertical order is: new-session strip first, then the nav (Sessions, People, Agents, Projects, Tasks, Artefacts), then the sessions list, then the footer. Both controls render as plain text-plus-icon affordances with no surrounding rectangle. The "+ New session" button is a text-width hit target — its clickable area is exactly the icon plus label, not the whole row — and shows no hover fill; the only hover feedback is the pointer cursor. The Mode trigger is pushed flush to the right edge of the row. Clicking the Mode trigger opens a popover downward from the row whose header reads "Mode" and lists the four permission modes with the current selection check-marked. The sidebar's nav rows swap the list view in place: Sessions shows recent conversations, Projects shows your active work projects, and Artefacts lists every KnowledgeDocument plus this account's agent templates (your admin agent's IDENTITY, SOUL, and KNOWLEDGE files plus one entry per enabled specialist). Each recent session row carries a three-state indicator: three pulsing dots when the session is busy (currently processing a turn), a solid sage dot when it is idle (live PTY waiting for input), and a hollow ring when it is archived (PTY exited, JSONL on disk for audit). The list itself splits into three views via a segmented control above the rows: **Active** shows every live session, **Archived** shows every JSONL on disk whose PTY has exited, and **All** shows both. The view choice persists across reloads. An "Include subagents" toggle inside the Active view surfaces specialist spawns (database-operator, premium-plugin agents, anything spawned with a `--agent` flag) which are hidden by default so the list reflects what you started directly. Each row also carries a small uppercase badge — `admin` for operator-driven sessions, the specialist name (for example `db-op`) for background work — so the source of any row is unambiguous at a glance. The People, Agents, and Tasks rows are graph shortcuts: clicking each opens the artefact-pane Graph filtered to every Person, every public Agent, or every Task in your account respectively, with no side-list, because the graph itself is the result. Public agents become first-class graph entities the moment you create them, with edges to their IDENTITY/SOUL/KNOWLEDGE files, edges to every knowledge document they have access to, and edges from every conversation they have handled, so a single Agents click reveals the whole shape of who knows what and who has been talking to whom. Click an artefact row to open the document. KnowledgeDocuments and your admin agent's templates are editable: type in the document and changes save automatically; specialist agent templates are read-only because they ship with Maxy and your edits would be overwritten on the next install. PDF artefacts render inline so you can read them without leaving the pane. If your browser doesn't have a built-in PDF viewer, a Download button appears instead. Artefacts that have no readable file backing them (orphan rows, files removed from disk, unsupported content types) show a one-line banner explaining the skip instead of opening to a blank pane. Click a project row to open the Graph view focused on that project's neighbourhood; clicking a second project swaps the focus rather than stacking on top. The sidebar's right edge is drag-resizable on every shell-hosted admin page (Sessions root, Chat, Graph, Browser, and Data): drag the handle to widen or narrow the sidebar, and your chosen width is remembered across reloads and shared across all of them. AdminShell mounts the drag handle itself, so every route that wraps its content in `<AdminShell>` gets sidebar resize for free; the handle does not render in the mobile drawer. The chat and artefact divider is also drag-resizable: drag the line between the columns to make either side wider; double-click it to reset to half of the available width (viewport minus sidebar), clamped to the chat and artefact min-width floors. Your chosen width is remembered across reloads. On wider screens (>1280px) all three panes are visible. The sidebar narrows at 1280px, the artefact pane hides at 1080px (Browser, Data, and Graph then open as full-window pages instead), and the sidebar collapses to a 56px icon rail at 820px. On every viewport the chat header reads left to right as a triptych: a dedicated sidebar toggle (the panel-right icon, which swaps to panel-right-open when the sidebar is showing), the brand mark next to the title in the centre, and the menu burger on the right. This header toggle is the sole sidebar-toggle button; the sidebar itself no longer carries a duplicate. The burger opens the navigation flyout: Dashboard, Data, Graph, Browser, and Chat at the top — Dashboard routes back to `/`, so every satellite page keeps a one-click way home, and the Chat item carries the Claude mark rather than a generic icon — then Public (the agents list) between the two dividers, and below the second divider the version row, Disconnect Claude account, and Log out. Tap the sidebar toggle to show or hide the sidebar: on phones (<720px) it slides the drawer in or out, on wider screens it collapses or expands the sidebar column. The brand mark in the centre is decorative; clicks go through the dedicated toggle so the affordance is unambiguous. The drawer animation only fires on tap (220ms slide in or out); resizing your window across the 720px boundary snaps the layout without animation, so you never see a half-open flash. At ≤640px the session metadata pane stacks each label above its value instead of the desktop two-column grid, and the row of action buttons (Open in new tab / Download JSONL / View JSONL / Rename / Pin / Archive / End or Purge) collapses behind a single Actions trigger that opens a popover upward from the foot of the pane. Breakpoint summary: >1280px = full sidebar + chat + artefact pane (drag-resizable divider); 1280px→1080px = sidebar narrows; 1080px→820px = artefact pane hides (Browser/Data/Graph open as full-window pages instead); 820px→720px = sidebar collapses to 56px icon rail; ≤720px = sidebar becomes off-canvas drawer (vertical stack of nav, recents list, foot, the same shape as the desktop sidebar, just on top of the chat instead of beside it).
86
86
 
87
87
  Page titles are brand-aware: the browser tab shows your product name (e.g. `Real Agent` instead of `Maxy`) on every shell — chat, graph, and data — so a non-default brand never leaks the default name in tab strips or browser history.
88
88
 
@@ -1,5 +1,5 @@
1
1
  import { type IdentityFilesVerdict } from './agent-identity-locator.js';
2
- export declare const MANAGER_SHADOWED_SLUGS: readonly ["public", "public-chat", "chat", "graph", "sessions", "data"];
2
+ export declare const MANAGER_SHADOWED_SLUGS: readonly ["public", "public-chat", "chat", "graph", "data", "browser"];
3
3
  export type ReachReason = 'ok' | 'shadowed' | 'no-default-and-unrouted' | 'files-missing';
4
4
  export interface ReachVerdict {
5
5
  reachable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"public-agent-reachability.d.ts","sourceRoot":"","sources":["../src/public-agent-reachability.ts"],"names":[],"mappings":"AAcA,OAAO,EAAuD,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAE5H,eAAO,MAAM,sBAAsB,yEAA0E,CAAA;AAI7G,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,UAAU,GAAG,yBAAyB,GAAG,eAAe,CAAA;AACzF,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,WAAW,CAAA;IACnB;iEAC6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAID,MAAM,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3C;;;qCAGqC;AACrC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,aAAa,EAAE,SAAS,MAAM,EAAE,GAC/B,YAAY,CAKd;AAED;;;;;;yDAMyD;AACzD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,KAAK,EAAE,oBAAoB,GAC1B,YAAY,CAKd;AAsBD,MAAM,WAAW,qBAAqB;IACpC,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;IACZ,QAAQ,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CACrD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAA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B,CAuDtF"}
@@ -12,7 +12,7 @@
12
12
  import { existsSync, readFileSync, readdirSync } from 'node:fs';
13
13
  import { join } from 'node:path';
14
14
  import { resolveAgentIdentityDir, publicIdentityFilesPresent } from './agent-identity-locator.js';
15
- export const MANAGER_SHADOWED_SLUGS = ['public', 'public-chat', 'chat', 'graph', 'sessions', 'data'];
15
+ export const MANAGER_SHADOWED_SLUGS = ['public', 'public-chat', 'chat', 'graph', 'data', 'browser'];
16
16
  const SLUG_PATTERN = /^[a-z][a-z0-9-]{2,49}$/;
17
17
  const TAG = '[public-agent-reachability]';
18
18
  /** Pure verdict. Default-first: a slug that is the default is reachable at the
@@ -1 +1 @@
1
- {"version":3,"file":"public-agent-reachability.js","sourceRoot":"","sources":["../src/public-agent-reachability.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,8EAA8E;AAC9E,iFAAiF;AACjF,8EAA8E;AAC9E,8EAA8E;AAC9E,mEAAmE;AACnE,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,oEAAoE;AACpE,6DAA6D;AAE7D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAA6B,MAAM,6BAA6B,CAAA;AAE5H,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAU,CAAA;AAE7G,MAAM,YAAY,GAAG,wBAAwB,CAAA;AAW7C,MAAM,GAAG,GAAG,6BAA6B,CAAA;AAIzC;;;qCAGqC;AACrC,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,YAA2B,EAC3B,aAAgC;IAEhC,IAAI,IAAI,KAAK,YAAY;QAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,C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AAG,IAAI,CAAA;YACd,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -1,3 +1,39 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
+ export declare const mcp: Server<{
4
+ method: string;
5
+ params?: {
6
+ [x: string]: unknown;
7
+ _meta?: {
8
+ [x: string]: unknown;
9
+ progressToken?: string | number | undefined;
10
+ "io.modelcontextprotocol/related-task"?: {
11
+ taskId: string;
12
+ } | undefined;
13
+ } | undefined;
14
+ } | undefined;
15
+ }, {
16
+ method: string;
17
+ params?: {
18
+ [x: string]: unknown;
19
+ _meta?: {
20
+ [x: string]: unknown;
21
+ progressToken?: string | number | undefined;
22
+ "io.modelcontextprotocol/related-task"?: {
23
+ taskId: string;
24
+ } | undefined;
25
+ } | undefined;
26
+ } | undefined;
27
+ }, {
28
+ [x: string]: unknown;
29
+ _meta?: {
30
+ [x: string]: unknown;
31
+ progressToken?: string | number | undefined;
32
+ "io.modelcontextprotocol/related-task"?: {
33
+ taskId: string;
34
+ } | undefined;
35
+ } | undefined;
36
+ }>;
37
+ export declare function subscribeInbound(): Promise<void>;
38
+ export declare function main(): Promise<void>;
3
39
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAiBA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAwClE,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMf,CAAA;AAgED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoFtD;AAED,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAO1C"}
@@ -12,6 +12,8 @@
12
12
  // unit-tested pure helpers in ./notification. Mirrors
13
13
  // whatsapp-channel/server.ts minus the outbound transport (no Baileys, no
14
14
  // reply-document) and minus the Task 753 reframe (operator surface).
15
+ import { realpathSync } from 'node:fs';
16
+ import { pathToFileURL } from 'node:url';
15
17
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
16
18
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
17
19
  import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
@@ -39,10 +41,25 @@ const INSTRUCTIONS = `You are connected to the operator's admin webchat. Every `
39
41
  `reply — the answer is always yes. For every such event: (1) do the work or answer the question, ` +
40
42
  `then (2) call the reply tool with your response so it is delivered to the operator's chat. ` +
41
43
  `Always finish by calling the reply tool; never wait for confirmation before replying.`;
42
- const mcp = new Server({ name: 'webchat', version: '0.1.0' }, {
44
+ export const mcp = new Server({ name: 'webchat', version: '0.1.0' }, {
43
45
  capabilities: { experimental: { 'claude/channel': {} }, tools: {} },
44
46
  instructions: INSTRUCTIONS,
45
47
  });
48
+ // Task 782 — readiness gate. The stdio transport "connecting" only means the
49
+ // pipes exist; the harness can only receive notifications after it completes
50
+ // MCP initialization (client sends notifications/initialized). Gate the
51
+ // /ready POST — and therefore the gateway's cold-start drain and every
52
+ // subsequent emission — on this promise. `op=initialized` is the lifeline
53
+ // anchor: its absence after channel-attached means the harness never became
54
+ // ready.
55
+ let markInitialized;
56
+ const initialized = new Promise((resolve) => {
57
+ markInitialized = resolve;
58
+ });
59
+ mcp.oninitialized = () => {
60
+ console.error('[webchat-channel] op=initialized');
61
+ markInitialized();
62
+ };
46
63
  mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
47
64
  tools: [
48
65
  {
@@ -87,16 +104,22 @@ async function postReady() {
87
104
  body: JSON.stringify({ key: KEY }),
88
105
  }).catch(() => { });
89
106
  }
90
- async function subscribeInbound() {
107
+ export async function subscribeInbound() {
91
108
  const url = `${GATEWAY_URL}/webchat-channel/inbound?key=${encodeURIComponent(KEY)}`;
92
109
  for (;;) {
93
110
  try {
94
111
  const res = await fetch(url, { headers: { accept: 'text/event-stream' } });
95
112
  if (!res.ok || !res.body)
96
113
  throw new Error(`subscribe failed: ${res.status}`);
97
- // The SSE link is established. Only NOW announce readiness, so the
98
- // gateway drains any cold-start queue ONTO this live subscription rather
99
- // than into a stream the channel server is not yet consuming.
114
+ // The SSE link is established AND the harness has completed MCP
115
+ // initialization only NOW announce readiness, so the gateway drains
116
+ // the cold-start queue onto a live subscription whose emissions the
117
+ // harness can actually receive. Frames that arrive while we wait
118
+ // buffer in the SSE body; the read loop below starts strictly after
119
+ // this point, so every emission (and its /received ack) is
120
+ // post-initialization. (Task 782 — SSE-link-up alone raced the
121
+ // harness's channel-handler registration and lost the first message.)
122
+ await initialized;
100
123
  await postReady();
101
124
  const reader = res.body.getReader();
102
125
  const decoder = new TextDecoder();
@@ -165,15 +188,22 @@ async function subscribeInbound() {
165
188
  await new Promise((resolve) => setTimeout(resolve, 2000));
166
189
  }
167
190
  }
168
- async function main() {
191
+ export async function main() {
169
192
  await mcp.connect(new StdioServerTransport());
170
- // Readiness is announced inside subscribeInbound, after the SSE link is up
171
- // never before, or the gateway would drain into a stream this server is not
172
- // yet consuming.
193
+ // Readiness is announced inside subscribeInbound, once the SSE link is up
194
+ // AND the MCP client has completed initialization never before, or the
195
+ // gateway would drain into a stream whose emissions the harness cannot
196
+ // receive yet (Task 782).
173
197
  await subscribeInbound();
174
198
  }
175
- main().catch((err) => {
176
- console.error(`[webchat-channel] fatal: ${err instanceof Error ? err.message : String(err)}`);
177
- process.exit(1);
178
- });
199
+ // Run only when executed directly (node dist/server.js); importable for tests.
200
+ // realpath the argv side: Node's ESM loader resolves the entry to its real
201
+ // path for import.meta.url, so a symlinked invocation path would otherwise
202
+ // silently skip main().
203
+ if (process.argv[1] && import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href) {
204
+ main().catch((err) => {
205
+ console.error(`[webchat-channel] fatal: ${err instanceof Error ? err.message : String(err)}`);
206
+ process.exit(1);
207
+ });
208
+ }
179
209
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,+EAA+E;AAC/E,0EAA0E;AAC1E,eAAe;AACf,2EAA2E;AAC3E,uDAAuD;AACvD,4EAA4E;AAC5E,wEAAwE;AACxE,8EAA8E;AAC9E,EAAE;AACF,oEAAoE;AACpE,sDAAsD;AACtD,0EAA0E;AAC1E,qEAAqE;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAClG,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,aAAa,GAEd,MAAM,mBAAmB,CAAA;AAE1B,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,IAAI,EAAE,CAAC,CAAA;IACxE,OAAO,CAAC,CAAA;AACV,CAAC;AAED,MAAM,GAAG,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAA;AAC7C,MAAM,WAAW,GAAG,UAAU,CAAC,6BAA6B,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;AAEhF,yEAAyE;AACzE,2EAA2E;AAC3E,6EAA6E;AAC7E,MAAM,oBAAoB,GAAG,CAAC,CAAA;AAC9B,MAAM,oBAAoB,GAAG,IAAI,CAAA;AAEjC,+EAA+E;AAC/E,6EAA6E;AAC7E,qDAAqD;AACrD,MAAM,YAAY,GAChB,2DAA2D;IAC3D,kGAAkG;IAClG,+FAA+F;IAC/F,8FAA8F;IAC9F,kGAAkG;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AA4B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QAC7F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,3 +1,39 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
+ export declare const mcp: Server<{
4
+ method: string;
5
+ params?: {
6
+ [x: string]: unknown;
7
+ _meta?: {
8
+ [x: string]: unknown;
9
+ progressToken?: string | number | undefined;
10
+ "io.modelcontextprotocol/related-task"?: {
11
+ taskId: string;
12
+ } | undefined;
13
+ } | undefined;
14
+ } | undefined;
15
+ }, {
16
+ method: string;
17
+ params?: {
18
+ [x: string]: unknown;
19
+ _meta?: {
20
+ [x: string]: unknown;
21
+ progressToken?: string | number | undefined;
22
+ "io.modelcontextprotocol/related-task"?: {
23
+ taskId: string;
24
+ } | undefined;
25
+ } | undefined;
26
+ } | undefined;
27
+ }, {
28
+ [x: string]: unknown;
29
+ _meta?: {
30
+ [x: string]: unknown;
31
+ progressToken?: string | number | undefined;
32
+ "io.modelcontextprotocol/related-task"?: {
33
+ taskId: string;
34
+ } | undefined;
35
+ } | undefined;
36
+ }>;
37
+ export declare function subscribeInbound(): Promise<void>;
38
+ export declare function main(): Promise<void>;
3
39
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAqClE,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMf,CAAA;AA6GD,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoFtD;AAED,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAO1C"}
@@ -9,6 +9,8 @@
9
9
  //
10
10
  // Transport glue only — message shaping and the reply body are the unit-tested
11
11
  // pure helpers in ./notification. Verified end-to-end at deploy (Task 7).
12
+ import { realpathSync } from 'node:fs';
13
+ import { pathToFileURL } from 'node:url';
12
14
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
13
15
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
14
16
  import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
@@ -41,10 +43,25 @@ const INSTRUCTIONS = `You are connected to WhatsApp. Every <channel source="what
41
43
  `When you need to send the operator a file or attachment, call the reply-document tool with the ` +
42
44
  `file path(s) — this is the only surface that delivers a document to WhatsApp. Do NOT rely on ` +
43
45
  `SendUserFile alone for a WhatsApp attachment.`;
44
- const mcp = new Server({ name: 'whatsapp', version: '0.1.0' }, {
46
+ export const mcp = new Server({ name: 'whatsapp', version: '0.1.0' }, {
45
47
  capabilities: { experimental: { 'claude/channel': {} }, tools: {} },
46
48
  instructions: INSTRUCTIONS,
47
49
  });
50
+ // Task 782 — readiness gate. The stdio transport "connecting" only means the
51
+ // pipes exist; the harness can only receive notifications after it completes
52
+ // MCP initialization (client sends notifications/initialized). Gate the
53
+ // /ready POST — and therefore the gateway's cold-start drain and every
54
+ // subsequent emission — on this promise. `op=initialized` is the lifeline
55
+ // anchor: its absence after channel-attached means the harness never became
56
+ // ready.
57
+ let markInitialized;
58
+ const initialized = new Promise((resolve) => {
59
+ markInitialized = resolve;
60
+ });
61
+ mcp.oninitialized = () => {
62
+ console.error('[whatsapp-channel] op=initialized');
63
+ markInitialized();
64
+ };
48
65
  mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
49
66
  tools: [
50
67
  {
@@ -131,16 +148,22 @@ async function postReady() {
131
148
  body: JSON.stringify({ senderId: SENDER_ID }),
132
149
  }).catch(() => { });
133
150
  }
134
- async function subscribeInbound() {
151
+ export async function subscribeInbound() {
135
152
  const url = `${GATEWAY_URL}/wa-channel/inbound?senderId=${encodeURIComponent(SENDER_ID)}`;
136
153
  for (;;) {
137
154
  try {
138
155
  const res = await fetch(url, { headers: { accept: 'text/event-stream' } });
139
156
  if (!res.ok || !res.body)
140
157
  throw new Error(`subscribe failed: ${res.status}`);
141
- // The SSE link is established. Only NOW announce readiness, so the gateway
142
- // drains any cold-start queue ONTO this live subscription rather than into
143
- // a stream the channel server is not yet consuming (the cold-start drop).
158
+ // The SSE link is established AND the harness has completed MCP
159
+ // initialization only NOW announce readiness, so the gateway drains
160
+ // the cold-start queue onto a live subscription whose emissions the
161
+ // harness can actually receive. Frames that arrive while we wait
162
+ // buffer in the SSE body; the read loop below starts strictly after
163
+ // this point, so every emission (and its /received ack) is
164
+ // post-initialization. (Task 782 — SSE-link-up alone raced the
165
+ // harness's channel-handler registration and lost the first message.)
166
+ await initialized;
144
167
  await postReady();
145
168
  const reader = res.body.getReader();
146
169
  const decoder = new TextDecoder();
@@ -209,15 +232,22 @@ async function subscribeInbound() {
209
232
  await new Promise((resolve) => setTimeout(resolve, 2000));
210
233
  }
211
234
  }
212
- async function main() {
235
+ export async function main() {
213
236
  await mcp.connect(new StdioServerTransport());
214
- // Readiness is announced inside subscribeInbound, after the SSE link is up
215
- // never before, or the gateway would drain into a stream this server is not
216
- // yet consuming.
237
+ // Readiness is announced inside subscribeInbound, once the SSE link is up
238
+ // AND the MCP client has completed initialization never before, or the
239
+ // gateway would drain into a stream whose emissions the harness cannot
240
+ // receive yet (Task 782).
217
241
  await subscribeInbound();
218
242
  }
219
- main().catch((err) => {
220
- console.error(`[whatsapp-channel] fatal: ${err instanceof Error ? err.message : String(err)}`);
221
- process.exit(1);
222
- });
243
+ // Run only when executed directly (node dist/server.js); importable for tests.
244
+ // realpath the argv side: Node's ESM loader resolves the entry to its real
245
+ // path for import.meta.url, so a symlinked invocation path would otherwise
246
+ // silently skip main().
247
+ if (process.argv[1] && import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href) {
248
+ main().catch((err) => {
249
+ console.error(`[whatsapp-channel] fatal: ${err instanceof Error ? err.message : String(err)}`);
250
+ process.exit(1);
251
+ });
252
+ }
223
253
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,0EAA0E;AAC1E,0EAA0E;AAC1E,eAAe;AACf,8EAA8E;AAC9E,uDAAuD;AACvD,+EAA+E;AAC/E,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAClG,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,eAAe,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAA;AAElM,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,IAAI,EAAE,CAAC,CAAA;IACzE,OAAO,CAAC,CAAA;AACV,CAAC;AAED,MAAM,SAAS,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;AACpD,MAAM,WAAW,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;AAE3E,yEAAyE;AACzE,2EAA2E;AAC3E,6EAA6E;AAC7E,MAAM,oBAAoB,GAAG,CAAC,CAAA;AAC9B,MAAM,oBAAoB,GAAG,IAAI,CAAA;AAEjC,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AI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,6BAA6B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QAC9F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -3430,7 +3430,7 @@ function parseCookieValue(cookieHeader, name) {
3430
3430
  }
3431
3431
 
3432
3432
  // app/lib/system-path-slugs.ts
3433
- var SYSTEM_PATH_SLUGS = ["public", "public-chat", "chat", "graph", "sessions", "data"];
3433
+ var SYSTEM_PATH_SLUGS = ["public", "public-chat", "chat", "graph", "data", "browser"];
3434
3434
 
3435
3435
  // app/lib/claude-agent/account.ts
3436
3436
  import { resolve as resolve3 } from "path";
@@ -14,7 +14,7 @@ import {
14
14
  sanitizeClientCorrId,
15
15
  vncLog,
16
16
  websockifyLog
17
- } from "./chunk-QDCBAHPI.js";
17
+ } from "./chunk-7H4KMTMC.js";
18
18
  import "./chunk-PFF6I7KP.js";
19
19
 
20
20
  // server/edge.ts