@romiluz/clawmongo 2026.3.26 → 2026.3.28

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 (507) hide show
  1. package/README.md +84 -49
  2. package/dist/{accounts-boH28BFM.js → accounts-lL2y51Ag.js} +46 -46
  3. package/dist/{acp-cli-DLaTb29R.js → acp-cli-BZvVHRY8.js} +46 -46
  4. package/dist/{action-runtime-Bk-7pvN2.js → action-runtime-DMYRUL4q.js} +10 -10
  5. package/dist/{actions.runtime-Y529miLb.js → actions.runtime-Bd-NMAq6.js} +46 -46
  6. package/dist/{actions.runtime-DVQ4pmcp.js → actions.runtime-gPSeXscW.js} +49 -49
  7. package/dist/{agent-scope-BROpmzKv.js → agent-scope-DXZH506l.js} +1 -1
  8. package/dist/{agents-DZqtbDMD.js → agents-Bt25bmDR.js} +13 -13
  9. package/dist/{agents-BbO-i90j.js → agents-CyJmttnS.js} +114 -114
  10. package/dist/{agents.config-CDS6iAat.js → agents.config-BWm70Hr6.js} +2 -2
  11. package/dist/{agents.config-iY500LY-.js → agents.config-UsCw0kOR.js} +4 -4
  12. package/dist/{audit-Cmj7BNcZ.js → audit-Dg8ZiJrJ.js} +9 -9
  13. package/dist/{audit-DmXeao7s.js → audit-DhXhWoiv.js} +1 -1
  14. package/dist/{audit-channel.collect.runtime-DhP09fjv.js → audit-channel.collect.runtime-CvPUHy1X.js} +2 -2
  15. package/dist/{audit-channel.runtime-C-watgwg.js → audit-channel.runtime-B6ZnOPFc.js} +46 -46
  16. package/dist/{audit-extra.async-B-7dzgcz.js → audit-extra.async-826UZZhJ.js} +3 -3
  17. package/dist/{audit-membership-runtime-CbLi3-5b.js → audit-membership-runtime-DLQrV7Rr.js} +46 -46
  18. package/dist/{audit.deep.runtime-D5VgrTOT.js → audit.deep.runtime-DQDtV7Bc.js} +4 -4
  19. package/dist/{audit.nondeep.runtime-B7M0-7FZ.js → audit.nondeep.runtime-H6B-2xal.js} +4 -4
  20. package/dist/{audit.runtime-BUknqGaP.js → audit.runtime-D2ZRC2A_.js} +47 -47
  21. package/dist/{auth-choice-DfJRosb4.js → auth-choice-CEowrO66.js} +57 -57
  22. package/dist/{auth-choice-CpB99A-L.js → auth-choice-DiufM1b8.js} +55 -55
  23. package/dist/{auth-choice-Bnnngmkx.js → auth-choice-YrGxwB9A.js} +5 -5
  24. package/dist/{auth-choice-options-DvqJHFOp.js → auth-choice-options-n3_uFdT5.js} +2 -2
  25. package/dist/{auth-choice-prompt-DtTjWfPT.js → auth-choice-prompt-DYFzoWa6.js} +50 -50
  26. package/dist/{auth-choice-prompt-Cxz8du6E.js → auth-choice-prompt-sLET2Bkw.js} +1 -1
  27. package/dist/{auth-choice.apply-helpers-Bm5p2ZX7.js → auth-choice.apply-helpers-GU6nZntg.js} +1 -1
  28. package/dist/{auth-choice.plugin-providers.runtime-Dsu6-vb8.js → auth-choice.plugin-providers.runtime-BNqOEEtb.js} +47 -47
  29. package/dist/{auth-profiles-2-OV37OF.js → auth-profiles-BWBQJ6X_.js} +67 -76
  30. package/dist/{auth-profiles.runtime-HcQMBs3K.js → auth-profiles.runtime-DfKRAmQR.js} +46 -46
  31. package/dist/{backend-config-avgzgS5Z.js → backend-config--L236wE2.js} +26 -1
  32. package/dist/{backup-create-B9F0M7-J.js → backup-create-Bll6DgoT.js} +2 -2
  33. package/dist/{base-session-key-DyLtSGkj.js → base-session-key-CA4SoGLF.js} +1 -1
  34. package/dist/{bluebubbles-BTR7u4zE.js → bluebubbles-BsX68JOY.js} +6 -6
  35. package/dist/{browser-cli-tmytvFaa.js → browser-cli-B5euA0cQ.js} +8 -8
  36. package/dist/build-info.json +3 -3
  37. package/dist/bundled/boot-md/handler.js +46 -46
  38. package/dist/bundled/bootstrap-extra-files/handler.js +1 -1
  39. package/dist/bundled/session-memory/handler.js +47 -47
  40. package/dist/{call-Cqem-bCB.js → call-C-_XQxw5.js} +1 -1
  41. package/dist/{call-CxVOiYz-.js → call-lPTaDgAg.js} +6 -6
  42. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  43. package/dist/{channel-Br8MF00M.js → channel-5o-oIU2B.js} +1 -1
  44. package/dist/{channel-BvRm4jSj.js → channel-C1zZg_8b.js} +2 -2
  45. package/dist/{channel-CqkxOhz2.js → channel-CEytBPH-.js} +4 -4
  46. package/dist/{channel-D_h7IfYK.js → channel-Cm65A1lo.js} +7 -7
  47. package/dist/{channel-ngZRDeE3.js → channel-D4K0MVgr.js} +5 -5
  48. package/dist/{channel-account-context-DZhZw4oo.js → channel-account-context-CNZZPDSe.js} +1 -1
  49. package/dist/{channel-plugin-resolution-CXm5HIcm.js → channel-plugin-resolution-WWO690RK.js} +3 -3
  50. package/dist/{channel-reply-pipeline-DdDsf-Lc.js → channel-reply-pipeline-B17-tBLU.js} +1 -1
  51. package/dist/{channel-shared-VIRIADYn.js → channel-shared-RH6YsZ0I.js} +1 -1
  52. package/dist/{channel-summary-BTJxLPN8.js → channel-summary-Cy7WDRjQ.js} +7 -7
  53. package/dist/{channel-summary-DdJtHlvH.js → channel-summary-DV4_b3HZ.js} +2 -2
  54. package/dist/{channel-tFDEkWt9.js → channel-yCiI29Ju.js} +6 -6
  55. package/dist/{channel.runtime-DGnRryi2.js → channel.runtime-C3m1vacV.js} +47 -47
  56. package/dist/{channel.runtime-CdPEA_wb.js → channel.runtime-CUSE7Dn0.js} +47 -47
  57. package/dist/{channel.runtime-0n3_Hz_Y.js → channel.runtime-CtWi36oj.js} +49 -49
  58. package/dist/{channel.runtime-CkHcsWQ3.js → channel.runtime-LUpQZiWg.js} +49 -49
  59. package/dist/{channel.runtime-msXRrVzC.js → channel.runtime-QOkM4mJV.js} +51 -51
  60. package/dist/{channel.runtime-khqV1QRG.js → channel.runtime-rYuUs2po.js} +4 -4
  61. package/dist/{channels-DNza27NY.js → channels-4VTbN2Gt.js} +103 -103
  62. package/dist/{channels-CLZoq3SY.js → channels-BUMnLXLQ.js} +1 -1
  63. package/dist/{channels-cli-Bhsnjsix.js → channels-cli-BYmLj8zw.js} +55 -55
  64. package/dist/{clawbot-cli-9YJNF9pF.js → clawbot-cli-CIYY1u-6.js} +47 -47
  65. package/dist/cli/daemon-cli.js +1 -1
  66. package/dist/{cli-FF5823nM.js → cli-DUA0FvhM.js} +46 -46
  67. package/dist/{command-registry-Dw-TONf0.js → command-registry-B1ECZip_.js} +13 -13
  68. package/dist/{command-registry-TeN0aKPi.js → command-registry-DOAwIs0Y.js} +2 -2
  69. package/dist/{command-secret-gateway-CzHSHmXG.js → command-secret-gateway-Big-n6JY.js} +46 -46
  70. package/dist/{compact.runtime-Bye-pm7Z.js → compact.runtime-BKnPPv9X.js} +46 -46
  71. package/dist/{completion-cli-D08RAGPz.js → completion-cli-BeLNvVTI.js} +3 -3
  72. package/dist/{completion-cli-C0mwyiAb.js → completion-cli-CHwHDPuI.js} +2 -2
  73. package/dist/{config-Ca7pLyBD.js → config-BOWZMmDA.js} +1 -1
  74. package/dist/{config-GKOWhVMv.js → config-C68iwvDj.js} +5 -5
  75. package/dist/{config-cli-CxPspN-S.js → config-cli-BnC336Lu.js} +48 -48
  76. package/dist/{config-guard-BK2hWyPi.js → config-guard-Bn6rZnzK.js} +6 -6
  77. package/dist/{config-validation-DO6o_Kt_.js → config-validation-BBuJZ-WH.js} +2 -2
  78. package/dist/{configure-CODqvxU-.js → configure-CHJDsjOD.js} +120 -120
  79. package/dist/{configure-Dg65gBEw.js → configure-Cctw7tyJ.js} +19 -23
  80. package/dist/{connection-auth-zhL6PVn0.js → connection-auth-C2XaPpF5.js} +1 -1
  81. package/dist/{control-ui-shared-_VwcOcc_.js → control-ui-shared-BC-g150y.js} +1 -1
  82. package/dist/{core-CzwQmKcn.js → core-Cb3XxL6S.js} +1 -1
  83. package/dist/{cron-cli-Dp_EQt2v.js → cron-cli-C10feOtH.js} +7 -7
  84. package/dist/{daemon-cli-Dgpv6Y0R.js → daemon-cli-Ds8mu2VZ.js} +4 -4
  85. package/dist/{daemon-install-Dq1Ix-FO.js → daemon-install-B__sP_7j.js} +49 -49
  86. package/dist/{delegate-BVapk4rY.js → delegate-ByCLviVI.js} +1 -1
  87. package/dist/{deliver-runtime-DPzMjhNU.js → deliver-Co7G5ubS.js} +46 -46
  88. package/dist/{deliver-C32Gg-xU.js → deliver-runtime-2svrtAf1.js} +46 -46
  89. package/dist/{devices-cli-3WN_wB1C.js → devices-cli-CH8nWgcU.js} +6 -6
  90. package/dist/{diagnostic-BbXfhLMi.js → diagnostic-DHTG43d_.js} +1 -1
  91. package/dist/{directory-cli-D_5BYdXm.js → directory-cli-B0REFlKo.js} +48 -48
  92. package/dist/{directory.static-CsajbHw1.js → directory.static-wnw_R8dE.js} +1 -1
  93. package/dist/{discord-C-4y9vOT.js → discord-Cws9MsXn.js} +4 -4
  94. package/dist/{discord-B3mmVXuG.js → discord-b8Ff_BKB.js} +46 -46
  95. package/dist/{dns-cli-CdAnUzRi.js → dns-cli-aRTleL5e.js} +5 -5
  96. package/dist/{doctor-completion-BnqTtLhL.js → doctor-completion-KQWBMnEi.js} +1 -1
  97. package/dist/{doctor-config-preflight-BJ0lGLTO.js → doctor-config-preflight-BDYe5di1.js} +2 -2
  98. package/dist/{doctor-config-preflight-D32oVOWD.js → doctor-config-preflight-Dn5a_Dbr.js} +6 -6
  99. package/dist/{doctor-state-migrations-BklDIib1.js → doctor-state-migrations-BI6HzFyq.js} +47 -47
  100. package/dist/{doctor-state-migrations-Cdk3ep_f.js → doctor-state-migrations-DUPe9zNr.js} +2 -2
  101. package/dist/entry.js +1 -1
  102. package/dist/{exec-approvals-D8OOtgGc.js → exec-approvals-CZz2LqIW.js} +1 -1
  103. package/dist/{exec-approvals-cli-dGISWHE3.js → exec-approvals-cli-KbFpgd-p.js} +9 -9
  104. package/dist/extensionAPI.js +46 -46
  105. package/dist/extensions/amazon-bedrock/index.js +46 -46
  106. package/dist/extensions/anthropic/index.js +46 -46
  107. package/dist/extensions/bluebubbles/index.js +50 -50
  108. package/dist/extensions/bluebubbles/setup-entry.js +48 -48
  109. package/dist/extensions/byteplus/index.js +46 -46
  110. package/dist/extensions/chutes/index.js +48 -48
  111. package/dist/extensions/cloudflare-ai-gateway/index.js +47 -47
  112. package/dist/extensions/device-pair/index.js +46 -46
  113. package/dist/extensions/discord/index.js +48 -48
  114. package/dist/extensions/discord/node_modules/.package-lock.json +3 -3
  115. package/dist/extensions/discord/node_modules/hono/dist/adapter/service-worker/index.js +1 -3
  116. package/dist/extensions/discord/node_modules/hono/dist/cjs/adapter/service-worker/index.js +1 -3
  117. package/dist/extensions/discord/node_modules/hono/dist/cjs/helper/ssg/ssg.js +1 -1
  118. package/dist/extensions/discord/node_modules/hono/dist/cjs/middleware/cors/index.js +5 -2
  119. package/dist/extensions/discord/node_modules/hono/dist/cjs/request.js +1 -1
  120. package/dist/extensions/discord/node_modules/hono/dist/helper/ssg/ssg.js +1 -1
  121. package/dist/extensions/discord/node_modules/hono/dist/middleware/cors/index.js +5 -2
  122. package/dist/extensions/discord/node_modules/hono/dist/request.js +1 -1
  123. package/dist/extensions/discord/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
  124. package/dist/extensions/discord/node_modules/hono/dist/types/client/index.d.ts +1 -1
  125. package/dist/extensions/discord/node_modules/hono/dist/types/client/types.d.ts +20 -0
  126. package/dist/extensions/discord/node_modules/hono/dist/types/request.d.ts +1 -3
  127. package/dist/extensions/discord/node_modules/hono/package.json +1 -1
  128. package/dist/extensions/discord/setup-entry.js +48 -48
  129. package/dist/extensions/elevenlabs/index.js +46 -46
  130. package/dist/extensions/fal/index.js +46 -46
  131. package/dist/extensions/feishu/index.js +55 -55
  132. package/dist/extensions/feishu/setup-entry.js +51 -51
  133. package/dist/extensions/firecrawl/index.js +46 -46
  134. package/dist/extensions/github-copilot/index.js +47 -47
  135. package/dist/extensions/google/index.js +46 -46
  136. package/dist/extensions/huggingface/index.js +47 -47
  137. package/dist/extensions/imessage/index.js +49 -49
  138. package/dist/extensions/imessage/setup-entry.js +49 -49
  139. package/dist/extensions/irc/index.js +49 -49
  140. package/dist/extensions/irc/setup-entry.js +48 -48
  141. package/dist/extensions/kilocode/index.js +47 -47
  142. package/dist/extensions/kimi-coding/index.js +47 -47
  143. package/dist/extensions/line/index.js +9 -9
  144. package/dist/extensions/line/setup-entry.js +8 -8
  145. package/dist/extensions/llm-task/index.js +46 -46
  146. package/dist/extensions/lobster/index.js +5 -5
  147. package/dist/extensions/mattermost/index.js +49 -49
  148. package/dist/extensions/mattermost/setup-entry.js +48 -48
  149. package/dist/extensions/microsoft/index.js +46 -46
  150. package/dist/extensions/minimax/index.js +48 -48
  151. package/dist/extensions/mistral/index.js +47 -47
  152. package/dist/extensions/modelstudio/index.js +47 -47
  153. package/dist/extensions/moonshot/index.js +46 -46
  154. package/dist/extensions/nextcloud-talk/index.js +50 -50
  155. package/dist/extensions/nextcloud-talk/setup-entry.js +49 -49
  156. package/dist/extensions/ollama/index.js +5 -5
  157. package/dist/extensions/openai/index.js +47 -47
  158. package/dist/extensions/opencode/index.js +47 -47
  159. package/dist/extensions/opencode-go/index.js +47 -47
  160. package/dist/extensions/openrouter/index.js +47 -47
  161. package/dist/extensions/openshell/index.js +46 -46
  162. package/dist/extensions/qianfan/index.js +47 -47
  163. package/dist/extensions/qwen-portal-auth/index.js +47 -47
  164. package/dist/extensions/sglang/index.js +46 -46
  165. package/dist/extensions/signal/index.js +49 -49
  166. package/dist/extensions/signal/setup-entry.js +49 -49
  167. package/dist/extensions/slack/index.js +50 -50
  168. package/dist/extensions/slack/setup-entry.js +50 -50
  169. package/dist/extensions/synology-chat/index.js +9 -9
  170. package/dist/extensions/synology-chat/setup-entry.js +8 -8
  171. package/dist/extensions/synthetic/index.js +47 -47
  172. package/dist/extensions/talk-voice/index.js +46 -46
  173. package/dist/extensions/tavily/index.js +46 -46
  174. package/dist/extensions/telegram/index.js +48 -48
  175. package/dist/extensions/telegram/setup-entry.js +48 -48
  176. package/dist/extensions/together/index.js +47 -47
  177. package/dist/extensions/venice/index.js +47 -47
  178. package/dist/extensions/vercel-ai-gateway/index.js +47 -47
  179. package/dist/extensions/vllm/index.js +46 -46
  180. package/dist/extensions/voice-call/index.js +46 -46
  181. package/dist/extensions/volcengine/index.js +46 -46
  182. package/dist/extensions/xai/index.js +46 -46
  183. package/dist/extensions/xiaomi/index.js +47 -47
  184. package/dist/extensions/zai/index.js +47 -47
  185. package/dist/extensions/zalo/index.js +49 -49
  186. package/dist/extensions/zalo/setup-entry.js +48 -48
  187. package/dist/{feishu-C637DYYe.js → feishu-D2fuiOiy.js} +4 -4
  188. package/dist/{gateway-cli-Cuk9d7J2.js → gateway-cli-nOgyXtih.js} +72 -106
  189. package/dist/{gateway-install-token-DlcVm1rP.js → gateway-install-token-nvsTK8KN.js} +4 -4
  190. package/dist/{gateway-rpc-siKa8KpM.js → gateway-rpc-DrH142-v.js} +1 -1
  191. package/dist/{gateway-runtime-roiTaOKO.js → gateway-runtime-CQXKGzrv.js} +2 -2
  192. package/dist/{github-copilot-auth-DJljh3gq.js → github-copilot-auth-C4z2AAd8.js} +3 -3
  193. package/dist/{health-DU_pBiid.js → health-DEgLPyA9.js} +7 -7
  194. package/dist/{health-B1OK1kJg.js → health-H5nbiXvA.js} +48 -48
  195. package/dist/{heartbeat-summary-CMwt9qam.js → heartbeat-summary-CNCptWmA.js} +1 -1
  196. package/dist/{hooks-cli-D42hQEUb.js → hooks-cli-jBhsJaOg.js} +46 -46
  197. package/dist/{identity-file-8MUyIAOy.js → identity-file-CYQnH12I.js} +1 -1
  198. package/dist/{imessage-zqZjecTU.js → imessage-DYqgZpLc.js} +6 -6
  199. package/dist/{imessage-CZb_pS8U.js → imessage-Dau6WdE3.js} +46 -46
  200. package/dist/{inbound-reply-dispatch-B73AkQh4.js → inbound-reply-dispatch-BFE3xy1S.js} +2 -2
  201. package/dist/index.js +2 -2
  202. package/dist/{internal-Bg_k56Pk.js → internal-DLE9baj7.js} +0 -24
  203. package/dist/{io-DE9vm7Eo.js → io-Du0b8gMO.js} +2 -2
  204. package/dist/{io-B7rO2wud.js → io-dJgqp8U8.js} +4 -4
  205. package/dist/{irc-BWzsfr2V.js → irc-BRaOVUse.js} +2 -2
  206. package/dist/{kb-cli-BOPGkNfJ.js → kb-cli-Cdif_vwn.js} +12 -12
  207. package/dist/{library-i-2ymInt.js → library-BwjFIWw3.js} +46 -46
  208. package/dist/{lifecycle-core-DwIo1PfK.js → lifecycle-core-DNO4MItg.js} +1 -1
  209. package/dist/line/send.js +6 -6
  210. package/dist/{line-DbTKdVgY.js → line-BCXUGrVz.js} +2 -2
  211. package/dist/{llm-slug-generator-Dm30OM2W.js → llm-slug-generator-B55FZ1aG.js} +3 -3
  212. package/dist/llm-slug-generator.js +47 -47
  213. package/dist/{logging-BM4mQ53W.js → logging-BvOzg0cM.js} +1 -1
  214. package/dist/{logging-0tvlVvFG.js → logging-nWyKsj9d.js} +5 -5
  215. package/dist/{login-qr-DQPSabxI.js → login-qr-C0QA3j4x.js} +46 -46
  216. package/dist/{logs-cli-ZnHk5eku.js → logs-cli-thlXBA9n.js} +7 -7
  217. package/dist/{manager.runtime-D3vjUOZF.js → manager.runtime-SoTq-tT4.js} +46 -46
  218. package/dist/{matrix-migration-snapshot-CRKiHq6Y.js → matrix-migration-snapshot-_6Rg-iLO.js} +2 -2
  219. package/dist/{mattermost-Bqn7Fd5U.js → mattermost-2nv5O_jQ.js} +2 -2
  220. package/dist/{mcp-cli-7aN2vJv-.js → mcp-cli-1vpy_yti.js} +5 -5
  221. package/dist/{mcp-config-NVrqojpu.js → mcp-config-Bmi2GUum.js} +1 -1
  222. package/dist/{media-understanding.runtime-DesF8Xhs.js → media-understanding.runtime-Wh-_SFK_.js} +46 -46
  223. package/dist/{memory-cli-CWqIJQS5.js → memory-cli-COJRHkaJ.js} +46 -46
  224. package/dist/{memory-search-DyxoUpq2.js → memory-search-CGmdrdM1.js} +1 -1
  225. package/dist/{memory-search-CgoWYj0V.js → memory-search-Cy36nO15.js} +3 -3
  226. package/dist/{model-picker-DX9P5pDr.js → model-picker-CYWvoS3z.js} +48 -48
  227. package/dist/{model-picker-Ds7-VqDS.js → model-picker-_32ihKqK.js} +4 -4
  228. package/dist/{model-picker.runtime-DqDt4s3S.js → model-picker.runtime-DBT5uEFi.js} +49 -49
  229. package/dist/{model-selection-DXFVauys.js → model-selection-014eeYCV.js} +1 -1
  230. package/dist/{model-suppression.runtime-8mU0VJs6.js → model-suppression.runtime-GTI9Rm85.js} +46 -46
  231. package/dist/{models-GXQSWyBX.js → models-Be9EWpVm.js} +54 -54
  232. package/dist/{models-CVG-VMBa.js → models-CX35daXC.js} +14 -14
  233. package/dist/{models-cli-Cvy8rGqU.js → models-cli-BYjac3oq.js} +54 -54
  234. package/dist/{models-config-BdanqM9X.js → models-config-Agv-ThDH.js} +46 -46
  235. package/dist/{models-config.providers.discovery-BHZ3WglC.js → models-config.providers.discovery-BJwjDHsg.js} +1 -1
  236. package/dist/{mongodb-analytics-BszyEhsq.js → mongodb-analytics-HJKYeseb.js} +2 -2
  237. package/dist/{mongodb-analytics-CcSYo_ae.js → mongodb-analytics-mnKJih5x.js} +1 -1
  238. package/dist/{mongodb-auto-setup-QcwgZSN9.js → mongodb-auto-setup-CCElSwNy.js} +2 -2
  239. package/dist/{mongodb-kb-C-VmGOq7.js → mongodb-kb-1tSOXXb9.js} +3 -3
  240. package/dist/{mongodb-kb-BotgVda9.js → mongodb-kb-CdSvNe3w.js} +2 -2
  241. package/dist/{mongodb-kb-search-CoIAFX8n.js → mongodb-kb-search-Dq6E746K.js} +1 -1
  242. package/dist/{mongodb-kb-search-BBYY_d_r.js → mongodb-kb-search-DvsXIUy6.js} +3 -3
  243. package/dist/{mongodb-manager-BVfTfpHf.js → mongodb-manager-DEZIQXuo.js} +10 -10
  244. package/dist/{mongodb-manager-BJ0PAYF_.js → mongodb-manager-NkerSpvH.js} +1183 -331
  245. package/dist/{mongodb-procedures-DNPmmW5r.js → mongodb-procedures-DI-_Dakz.js} +7 -3
  246. package/dist/{mongodb-procedures-D3M2Ph8E.js → mongodb-procedures-tjhGdBV7.js} +3 -3
  247. package/dist/{mongodb-schema-JpDXcAUV.js → mongodb-schema-DN3aspLa.js} +1 -1
  248. package/dist/{mongodb-schema-BI4Ze_ZV.js → mongodb-schema-Dt6jxcPL.js} +298 -4
  249. package/dist/{mongodb-search-VFKd72IZ.js → mongodb-search-DMsUyfpa.js} +2 -2
  250. package/dist/{mongodb-structured-memory-DnwUJ6SA.js → mongodb-structured-memory-D-3SEfTu.js} +58 -2
  251. package/dist/{mongodb-structured-memory-BySGexcm.js → mongodb-structured-memory-lpyyW0kn.js} +3 -3
  252. package/dist/{monitor-DGE0bx3s.js → monitor-BZFy1RTb.js} +47 -47
  253. package/dist/{monitor-Dfc0KXMD.js → monitor-DPYGxeY_.js} +5 -5
  254. package/dist/{monitor-CZZlkQUU.js → monitor-Duykki-j.js} +51 -51
  255. package/dist/{monitor-B61bVnMW.js → monitor-gq31SALd.js} +8 -8
  256. package/dist/{nextcloud-talk-CnwOv1rG.js → nextcloud-talk-C_-LfGeq.js} +2 -2
  257. package/dist/{node-cli-Avub0RKe.js → node-cli-NpJzvfQW.js} +12 -12
  258. package/dist/{nodes-cli-qSE-cmgX.js → nodes-cli-O5HciXeP.js} +10 -10
  259. package/dist/{nodes-screen-DQw8F5rA.js → nodes-screen-BIwiB35h.js} +1 -1
  260. package/dist/{oauth.runtime-825pMCgB.js → oauth.runtime-BxjW8DFO.js} +46 -46
  261. package/dist/{oauth.runtime-BCwH9-Yl.js → oauth.runtime-DKU2STuA.js} +46 -46
  262. package/dist/{oauth.runtime-BSddaUzc.js → oauth.runtime-mFizWM72.js} +46 -46
  263. package/dist/{onboard-CUbnVxXL.js → onboard-B6H0qDtg.js} +1 -1
  264. package/dist/{onboard-BwC0LbCx.js → onboard-C1AmXQ6f.js} +8 -8
  265. package/dist/{onboard-Cw65XmEU.js → onboard-DPdj0IBu.js} +2 -2
  266. package/dist/{onboard-channels-BYNDTtRI.js → onboard-channels-Cmj_5qXQ.js} +24 -24
  267. package/dist/{onboard-channels-CIR1ZSii.js → onboard-channels-Wf3nY9Bf.js} +97 -97
  268. package/dist/{onboard-custom-FImARgQC.js → onboard-custom-DILgXkiq.js} +50 -50
  269. package/dist/{onboard-custom-C4qOVxtG.js → onboard-custom-DlDCjvIw.js} +4 -4
  270. package/dist/{onboard-helpers-DW9Mskds.js → onboard-helpers-CqpD9TVU.js} +48 -48
  271. package/dist/{onboard-helpers-D3xV_T96.js → onboard-helpers-D-PLdtHT.js} +3 -3
  272. package/dist/{onboard-hooks-B0gJVtBY.js → onboard-hooks-MQ8QOguv.js} +2 -2
  273. package/dist/{onboard-remote-BMLo6WKH.js → onboard-remote-BZKWgKVw.js} +50 -50
  274. package/dist/{onboard-remote-XUah3N3G.js → onboard-remote-Bnad5LMv.js} +2 -2
  275. package/dist/{onboard-search-DHCzqxgq.js → onboard-search-Dyv1IuQ4.js} +46 -46
  276. package/dist/{onboard-skills-LXCIpyir.js → onboard-skills-DdCu1_hE.js} +1 -1
  277. package/dist/{onboard-skills-CH6q90Pf.js → onboard-skills-W_252asS.js} +49 -49
  278. package/dist/{onboarding-memory-BWEsBe08.js → onboarding-memory-BRHSmwx3.js} +24 -15
  279. package/dist/{outbound-media-CqfP0r4a.js → outbound-media-CHc08Sj8.js} +1 -1
  280. package/dist/{pairing-cli-BdCkQG2S.js → pairing-cli-oNWkjwCt.js} +5 -5
  281. package/dist/{persistent-dedupe-DNnh7hrR.js → persistent-dedupe-CS_uyVoq.js} +1 -1
  282. package/dist/{pi-model-discovery-runtime-DyT9C3Ap.js → pi-model-discovery-runtime-BJVREOXf.js} +46 -46
  283. package/dist/{pi-tools.before-tool-call.runtime-CA2js1Ig.js → pi-tools.before-tool-call.runtime-w-Q4HA_S.js} +6 -6
  284. package/dist/{plugin-install-DgvJfz7X.js → plugin-install-BysMw7Sl.js} +47 -47
  285. package/dist/{plugin-install-BKuy_--2.js → plugin-install-EyES0vGP.js} +2 -2
  286. package/dist/{plugin-registry-D-6OBqUU.js → plugin-registry-BenF9SYR.js} +47 -47
  287. package/dist/{plugin-registry-Dsx_6z3N.js → plugin-registry-CRV_Bc8K.js} +3 -3
  288. package/dist/plugin-sdk/account-resolution.js +46 -46
  289. package/dist/plugin-sdk/acp-runtime.js +46 -46
  290. package/dist/plugin-sdk/agent-runtime.js +46 -46
  291. package/dist/plugin-sdk/channel-inbound.js +46 -46
  292. package/dist/plugin-sdk/channel-reply-pipeline.js +3 -3
  293. package/dist/plugin-sdk/channel-runtime.js +46 -46
  294. package/dist/plugin-sdk/channel-setup.js +1 -1
  295. package/dist/plugin-sdk/command-auth.js +46 -46
  296. package/dist/plugin-sdk/compat.js +5 -5
  297. package/dist/plugin-sdk/config-runtime.js +46 -46
  298. package/dist/plugin-sdk/conversation-runtime.js +46 -46
  299. package/dist/plugin-sdk/core.js +5 -5
  300. package/dist/plugin-sdk/directory-runtime.js +1 -1
  301. package/dist/plugin-sdk/discord.js +46 -46
  302. package/dist/plugin-sdk/gateway-runtime.js +8 -8
  303. package/dist/plugin-sdk/image-generation.js +46 -46
  304. package/dist/plugin-sdk/index.js +46 -46
  305. package/dist/plugin-sdk/infra-runtime.js +46 -46
  306. package/dist/plugin-sdk/llm-task.js +46 -46
  307. package/dist/plugin-sdk/matrix-runtime-heavy.js +50 -50
  308. package/dist/plugin-sdk/media-runtime.js +46 -46
  309. package/dist/plugin-sdk/media-understanding-runtime.js +46 -46
  310. package/dist/plugin-sdk/media-understanding.js +46 -46
  311. package/dist/plugin-sdk/ollama-setup.js +8 -8
  312. package/dist/plugin-sdk/plugin-runtime.js +46 -46
  313. package/dist/plugin-sdk/provider-auth-api-key.js +46 -46
  314. package/dist/plugin-sdk/provider-auth-login.js +1 -1
  315. package/dist/plugin-sdk/provider-auth.js +46 -46
  316. package/dist/plugin-sdk/provider-models.js +5 -5
  317. package/dist/plugin-sdk/provider-onboard.js +5 -5
  318. package/dist/plugin-sdk/provider-setup.js +49 -49
  319. package/dist/plugin-sdk/provider-stream.js +46 -46
  320. package/dist/plugin-sdk/provider-usage.js +4 -4
  321. package/dist/plugin-sdk/reply-history.js +3 -3
  322. package/dist/plugin-sdk/reply-runtime.js +46 -46
  323. package/dist/plugin-sdk/routing.js +3 -3
  324. package/dist/plugin-sdk/sandbox.js +46 -46
  325. package/dist/plugin-sdk/self-hosted-provider-setup.js +48 -48
  326. package/dist/plugin-sdk/setup-runtime.js +1 -1
  327. package/dist/plugin-sdk/setup.js +1 -1
  328. package/dist/plugin-sdk/speech-runtime.js +46 -46
  329. package/dist/plugin-sdk/speech.js +46 -46
  330. package/dist/plugin-sdk/src/agents/workspace.d.ts +1 -3
  331. package/dist/plugin-sdk/src/config/types.memory.d.ts +44 -0
  332. package/dist/plugin-sdk/src/memory/backend-config.d.ts +24 -0
  333. package/dist/plugin-sdk/src/memory/index.d.ts +12 -4
  334. package/dist/plugin-sdk/src/memory/mongodb-entity-extractor.d.ts +33 -0
  335. package/dist/plugin-sdk/src/memory/mongodb-episodes.d.ts +16 -0
  336. package/dist/plugin-sdk/src/memory/mongodb-events.d.ts +9 -0
  337. package/dist/plugin-sdk/src/memory/mongodb-graph.d.ts +30 -3
  338. package/dist/plugin-sdk/src/memory/mongodb-manager.d.ts +18 -0
  339. package/dist/plugin-sdk/src/memory/mongodb-mutations.d.ts +38 -0
  340. package/dist/plugin-sdk/src/memory/mongodb-procedures.d.ts +32 -0
  341. package/dist/plugin-sdk/src/memory/mongodb-profile.d.ts +71 -0
  342. package/dist/plugin-sdk/src/memory/mongodb-query-cache.d.ts +68 -0
  343. package/dist/plugin-sdk/src/memory/mongodb-query-rewriter.d.ts +39 -0
  344. package/dist/plugin-sdk/src/memory/mongodb-reranker.d.ts +32 -0
  345. package/dist/plugin-sdk/src/memory/mongodb-schema.d.ts +3 -0
  346. package/dist/plugin-sdk/src/memory/mongodb-telemetry.d.ts +69 -0
  347. package/dist/plugin-sdk/text-runtime.js +6 -6
  348. package/dist/plugin-sdk/web-media.js +3 -3
  349. package/dist/plugin-sdk/zalo.js +47 -47
  350. package/dist/plugin-sdk/zalouser.js +47 -47
  351. package/dist/plugins/build-smoke-entry.js +46 -46
  352. package/dist/plugins/runtime/index.js +46 -46
  353. package/dist/{plugins-cli-C6wGAkD9.js → plugins-cli-BUiP4x7l.js} +46 -46
  354. package/dist/{policy-CcgojW9R.js → policy-DnUfJkOZ.js} +1 -1
  355. package/dist/{preflight-audio.runtime-Cyz9Zu89.js → preflight-audio.runtime-D3_iaSgF.js} +46 -46
  356. package/dist/{probe-auth-BmluVNJZ.js → probe-auth-BbNdYwb0.js} +1 -1
  357. package/dist/{probe-auth-DrgTJ7ki.js → probe-auth-CB9y2dLl.js} +7 -7
  358. package/dist/{program-CHFcfOlC.js → program-uHYlUP3c.js} +4 -4
  359. package/dist/{prompt-select-styled-Ck38XMb3.js → prompt-select-styled-DoTAWghe.js} +25 -51
  360. package/dist/{provider-api-key-auth.runtime-AT16DTa8.js → provider-api-key-auth.runtime-B3H0dODg.js} +46 -46
  361. package/dist/{provider-auth-choice-UhIkLc6q.js → provider-auth-choice-HRfxXEHk.js} +6 -6
  362. package/dist/{provider-auth-choice-helpers-CXWmWOdR.js → provider-auth-choice-helpers-2jZnBKMm.js} +1 -1
  363. package/dist/{provider-auth-choice-preference-TgulgKlz.js → provider-auth-choice-preference-CqKryjBB.js} +6 -6
  364. package/dist/{provider-auth-choice.runtime-FTNgi8Yh.js → provider-auth-choice.runtime-BaFSZgQG.js} +48 -48
  365. package/dist/{provider-auth-choice.runtime-CP91b3vK.js → provider-auth-choice.runtime-DPHuj1_l.js} +2 -2
  366. package/dist/{provider-auth-choices-BfWvatIg.js → provider-auth-choices-CqFh00uK.js} +1 -1
  367. package/dist/{provider-auth-guidance-D4-q7IHl.js → provider-auth-guidance-DmdBoDfS.js} +2 -2
  368. package/dist/{provider-auth-input-DnQ-RiX5.js → provider-auth-input-FZYEJh19.js} +46 -46
  369. package/dist/{provider-auth-login-D7eLUZwy.js → provider-auth-login-B-XedaK5.js} +1 -1
  370. package/dist/{provider-auth-login.runtime-BG_qqxZk.js → provider-auth-login.runtime-f9dxfJUB.js} +49 -49
  371. package/dist/{provider-model-allowlist-CC0lIQ6w.js → provider-model-allowlist-C16pn0B8.js} +1 -1
  372. package/dist/{provider-models-DbK6xrje.js → provider-models-PaymKOme.js} +1 -1
  373. package/dist/{provider-ollama-setup-B4RWr9oj.js → provider-ollama-setup-k5ozCUi2.js} +3 -3
  374. package/dist/{provider-onboarding-config-W5sF0oD8.js → provider-onboarding-config-qCltsaVl.js} +1 -1
  375. package/dist/{provider-runtime.runtime-Cva8S4wx.js → provider-runtime.runtime-CzVe0WBb.js} +46 -46
  376. package/dist/{provider-self-hosted-setup-jAzqLaqv.js → provider-self-hosted-setup-zxYnIftX.js} +3 -3
  377. package/dist/{provider-usage-CEgSCMW4.js → provider-usage-C9KdAhuS.js} +46 -46
  378. package/dist/{provider-usage-CCIC3SdY.js → provider-usage-DexJNI_0.js} +1 -1
  379. package/dist/{provider-wizard-DQd5eYhX.js → provider-wizard-D4RbMR2D.js} +2 -2
  380. package/dist/{push-apns-DQN5pcl6.js → push-apns-BAc0-Jy5.js} +1 -1
  381. package/dist/{pw-ai-BiXz8un2.js → pw-ai-C8v0s5wH.js} +6 -6
  382. package/dist/{qr-cli-B8bBpCd2.js → qr-cli-BpqLcmYC.js} +47 -47
  383. package/dist/{qr-cli-DOuhqzho.js → qr-cli-D0zqiQMl.js} +4 -4
  384. package/dist/{reactions-BkyHqIw4.js → reactions-CjJbniYK.js} +1 -1
  385. package/dist/{read-only-account-inspect-Cfaj7PFb.js → read-only-account-inspect-CEJ1r7AW.js} +3 -3
  386. package/dist/{read-only-account-inspect.discord.runtime-kreMwVgq.js → read-only-account-inspect.discord.runtime-C1n8r_Kj.js} +46 -46
  387. package/dist/{read-only-account-inspect.slack.runtime-DgV5VZ-n.js → read-only-account-inspect.slack.runtime-DAOzA9ke.js} +46 -46
  388. package/dist/{read-only-account-inspect.telegram.runtime-BQaHHCIS.js → read-only-account-inspect.telegram.runtime-CfNlnogC.js} +46 -46
  389. package/dist/{redact-snapshot-PisBVQFW.js → redact-snapshot-qQFn3bz8.js} +3 -3
  390. package/dist/{register.agent-CXTssAWM.js → register.agent-DC5QbIE7.js} +114 -114
  391. package/dist/{register.backup-MRTb86c6.js → register.backup-BRxspFkM.js} +6 -6
  392. package/dist/{register.configure-BfE3p-3h.js → register.configure-B7zhRBla.js} +120 -120
  393. package/dist/{register.maintenance-D_Gn-ZDc.js → register.maintenance-CCmppLW1.js} +65 -65
  394. package/dist/{register.message-s1z2QSP2.js → register.message-DSBPJS4x.js} +47 -47
  395. package/dist/{register.onboard-Cd-OV7xm.js → register.onboard-C4D9pjf7.js} +54 -54
  396. package/dist/{register.setup-DclQVR9m.js → register.setup-C4pDa0HW.js} +52 -52
  397. package/dist/{register.status-health-sessions-D-Xp8ae7.js → register.status-health-sessions-ClxLTjC5.js} +55 -55
  398. package/dist/{register.subclis-pcAQ13jU.js → register.subclis-BauDruMA.js} +30 -30
  399. package/dist/{register.subclis-BCvQmGkr.js → register.subclis-WyYRaoa-.js} +1 -1
  400. package/dist/{replies-DQwDaTBP.js → replies-CZGcXYVE.js} +1 -1
  401. package/dist/{reply-history-DVLrt4Es.js → reply-history-1yT9Tzib.js} +1 -1
  402. package/dist/{routes-CBWjQBhD.js → routes-D8CYDLDF.js} +5 -5
  403. package/dist/{rpc-O719GSVf.js → rpc-D8I_Qzen.js} +1 -1
  404. package/dist/{run-main-C_W2kjf-.js → run-main-BwEbDjI-.js} +19 -19
  405. package/dist/{runtime-COpSaRtb.js → runtime-CmSMHqwN.js} +1 -1
  406. package/dist/{runtime-PbP8BVEV.js → runtime-DQaeo-1L.js} +2 -2
  407. package/dist/{runtime-discord-ops.runtime-CmStqYK4.js → runtime-discord-ops.runtime-8w-055sR.js} +46 -46
  408. package/dist/{runtime-slack-ops.runtime-Cm1935hR.js → runtime-slack-ops.runtime-XJJrByCY.js} +48 -48
  409. package/dist/{runtime-telegram-ops.runtime-CKozoVxf.js → runtime-telegram-ops.runtime-wOdrd2eH.js} +46 -46
  410. package/dist/{sandbox-cli-BIyJ-1r-.js → sandbox-cli-CvFmY6Kq.js} +46 -46
  411. package/dist/{search-manager-BVE1EPHv.js → search-manager-ZNiamJHa.js} +6 -6
  412. package/dist/{search-manager-DMTYqpmg.js → search-manager-zaZ4tAYz.js} +5 -5
  413. package/dist/{secrets-cli-CMMtWzst.js → secrets-cli-D5a_lvAP.js} +47 -47
  414. package/dist/{security-cli-Bw4cVkTN.js → security-cli-DJovxmST.js} +47 -47
  415. package/dist/{send-CfI8y11o.js → send-C3KhjjcU.js} +1 -1
  416. package/dist/{send-C8HDmafP.js → send-CIkS5fLj.js} +2 -2
  417. package/dist/{server-0n2tu0ff.js → server-B1z10Ohi.js} +6 -6
  418. package/dist/{server-node-events-J5-mGOea.js → server-node-events-D3_b2nU-.js} +47 -47
  419. package/dist/{server-startup-matrix-migration-CMBUtdN2.js → server-startup-matrix-migration-DDRaKUPQ.js} +3 -3
  420. package/dist/{session-cost-usage-CrPCO4HN.js → session-cost-usage-BwIud0lY.js} +46 -46
  421. package/dist/{sessions-n_Z6bcbr.js → sessions-B5Pffwj6.js} +3 -3
  422. package/dist/{sessions-BK_M3Nu1.js → sessions-ClamZkvP.js} +47 -47
  423. package/dist/{setup-OCrVlmv7.js → setup-B8gsbmH4.js} +18 -18
  424. package/dist/{setup-core-BVBCTInv.js → setup-core-B6csKf5s.js} +2 -2
  425. package/dist/{setup-core-z8Q1sgUU.js → setup-core-DkgiVKzw.js} +2 -2
  426. package/dist/{setup-entry-CvuaW-4I.js → setup-entry-C8XH3da9.js} +2 -2
  427. package/dist/{setup-entry-Jf6V23s6.js → setup-entry-CMSlnfft.js} +3 -3
  428. package/dist/{setup-entry-Bo3chgoG.js → setup-entry-CZVAwPKZ.js} +2 -2
  429. package/dist/{setup-entry-Co-YP41_.js → setup-entry-Duh-ewBV.js} +3 -3
  430. package/dist/{setup-entry-BnSZlMP1.js → setup-entry-ksUWY45r.js} +2 -2
  431. package/dist/{setup-entry-BNSYJMzp.js → setup-entry-vQgAuveW.js} +2 -2
  432. package/dist/{setup-group-access-BYV3O8yu.js → setup-group-access-CTlnq-M9.js} +1 -1
  433. package/dist/{setup-surface-B6XBqyMJ.js → setup-surface-B7uYEI9F.js} +2 -2
  434. package/dist/{setup-surface-fixjWejm.js → setup-surface-CMgQr2R9.js} +5 -5
  435. package/dist/{setup-surface-CzzV3QV6.js → setup-surface-Yd-YLGfa.js} +46 -46
  436. package/dist/{setup-wizard-proxy-DFDQV7FN.js → setup-wizard-proxy-CHGAY6ob.js} +1 -1
  437. package/dist/{setup.finalize-WT9kXSLX.js → setup.finalize-C2bq4D8j.js} +58 -58
  438. package/dist/{setup.gateway-config-Bp50kjo3.js → setup.gateway-config-BGgVOvQf.js} +48 -48
  439. package/dist/{shared-CyR3Ki--.js → shared-BEMZg0vb.js} +5 -5
  440. package/dist/{shared-DXzPv5D7.js → shared-BYRyVoVx.js} +5 -5
  441. package/dist/{shared-DCOVJ3QB.js → shared-Bj3fwdyM.js} +4 -4
  442. package/dist/{shared-B8_JHpU2.js → shared-CSydqOgE.js} +4 -4
  443. package/dist/{shared-C3fKAUbw.js → shared-DLAg-pKT.js} +3 -3
  444. package/dist/{signal-D16eMrBf.js → signal-Dh6z2uaT.js} +5 -5
  445. package/dist/{signal-oGrspg1k.js → signal-FEtxekyc.js} +46 -46
  446. package/dist/{skills-cli-CY6lUTRv.js → skills-cli-9NuRJd3Z.js} +5 -5
  447. package/dist/{slack-ueYeeNF7.js → slack-Ci1VArkq.js} +48 -48
  448. package/dist/{slack-B1GgT1_u.js → slack-CjslLjTc.js} +5 -5
  449. package/dist/{slash-commands.runtime-1q-llUpe.js → slash-commands.runtime-COXzcGjL.js} +46 -46
  450. package/dist/{slash-dispatch.runtime-BqJ1FZZ6.js → slash-dispatch.runtime-D5j8d7dg.js} +47 -47
  451. package/dist/{slash-skill-commands.runtime-D-BEZgQ1.js → slash-skill-commands.runtime-6U65Nany.js} +46 -46
  452. package/dist/{status-CnKcjD2h.js → status-BWUft8B5.js} +16 -16
  453. package/dist/{status-C1BR9Hft.js → status-BjV1ysoW.js} +50 -50
  454. package/dist/{status-D_1nxvoi.js → status-CM77XYRR.js} +4 -4
  455. package/dist/{status-Dp3OriYl.js → status-D7XHAzLz.js} +46 -46
  456. package/dist/{status-DoSH4nEL.js → status-DwO4xEHI.js} +54 -54
  457. package/dist/{status-json-DwNPzoCk.js → status-json-BYDBfkr3.js} +19 -19
  458. package/dist/{status-B45v-A8b.js → status-yoA_KX2O.js} +1 -1
  459. package/dist/{status.link-channel-Cz8GoHZ2.js → status.link-channel-DkISMfW8.js} +2 -2
  460. package/dist/{status.scan.deps.runtime-BQGei2B_.js → status.scan.deps.runtime-B6__B0kL.js} +14 -14
  461. package/dist/{status.scan.runtime-D4HkKTZu.js → status.scan.runtime-BAkcX3vO.js} +2 -2
  462. package/dist/{status.summary-Dxo5qDuD.js → status.summary-DNaMhaXy.js} +8 -8
  463. package/dist/{subagent-orphan-recovery-BPa7yoId.js → subagent-orphan-recovery-DtK8inah.js} +46 -46
  464. package/dist/{subagent-registry-runtime-B6homy_H.js → subagent-registry-runtime-02s7QJo3.js} +46 -46
  465. package/dist/{synology-chat-DY8xNv_g.js → synology-chat-QURTpvMf.js} +2 -2
  466. package/dist/{system-cli-CkWRbLu4.js → system-cli-BXd7evEt.js} +7 -7
  467. package/dist/{system-run-command-jY6Is_ri.js → system-run-command-CQCx0f24.js} +1 -1
  468. package/dist/telegram/audit.js +1 -1
  469. package/dist/telegram/token.js +46 -46
  470. package/dist/{telegram-uQdpyLeS.js → telegram-Btwvg0PX.js} +46 -46
  471. package/dist/{telegram-Bnigf1Qe.js → telegram-Dh5gM1mc.js} +7 -7
  472. package/dist/{tool-policy-match-BLASiL8y.js → tool-policy-match-B6J0bSfQ.js} +1 -1
  473. package/dist/{tui-Dj52JiFV.js → tui-CKGcNyM8.js} +6 -6
  474. package/dist/{tui-cli-B4SN4wzX.js → tui-cli-D3CLnnB9.js} +47 -47
  475. package/dist/{update-cli-CEAEBCp2.js → update-cli-DQ4j_nIh.js} +69 -69
  476. package/dist/{update-offset-store-Bp1RjZK2.js → update-offset-store-RxVdgbyo.js} +46 -46
  477. package/dist/{upsert-with-lock-CFIy4b7I.js → upsert-with-lock-BqkAnFym.js} +1 -1
  478. package/dist/{web-media-BJ-azd7j.js → web-media-BM1Mg6AN.js} +1 -1
  479. package/dist/{webhook-shared-DYKTXPVw.js → webhook-shared-UDKLpQnU.js} +1 -1
  480. package/dist/{webhooks-cli-CEBJbLqS.js → webhooks-cli-Ca3PlK8h.js} +5 -5
  481. package/dist/{whatsapp-63jqHVrE.js → whatsapp-CHEvDa2g.js} +46 -46
  482. package/dist/{with-timeout-CvaBvNie.js → with-timeout-CvBH67nj.js} +2 -2
  483. package/dist/{workspace-DuH1agxz.js → workspace-uCYzunu4.js} +5 -33
  484. package/dist/{zalo-CTrI2C4i.js → zalo-Dr4ysJLW.js} +1 -1
  485. package/dist/{zalo-Sw_XHo3-.js → zalo-keqX1Wnx.js} +2 -2
  486. package/docs/concepts/agent-workspace.md +0 -5
  487. package/docs/concepts/memory.md +6 -12
  488. package/docs/plans/2026-03-22-semantic-cache-telemetry-docs-plan.md +1431 -0
  489. package/docs/plans/2026-03-22-supermemory-steals-plan.md +1679 -0
  490. package/docs/plans/2026-03-23-almost-perfect-sprint-plan.md +1080 -0
  491. package/docs/plans/2026-03-23-master-steal-list.md +224 -0
  492. package/docs/plans/2026-03-23-memory-md-deprecation-plan.md +632 -0
  493. package/docs/plans/2026-03-23-production-readiness-e2e-plan.md +659 -0
  494. package/docs/plans/2026-03-23-supermemory-audit-fixes-plan.md +1291 -0
  495. package/docs/reference/clawmongo-vs-default-memory.md +2 -2
  496. package/docs/reference/heart-brain-boundary.md +8 -10
  497. package/docs/reference/memory-config.md +3 -4
  498. package/docs/reference/mongodb-capabilities.md +246 -9
  499. package/docs/reference/templates/AGENTS.md +5 -10
  500. package/docs/research/2026-03-22-atlas-local-preview-web.md +41 -31
  501. package/docs/research/2026-03-23-agent-management-ui-github.md +482 -0
  502. package/docs/research/2026-03-23-almost-perfect-mongodb-docs.md +255 -0
  503. package/docs/research/2026-03-23-company-os-agent-ui-web.md +511 -0
  504. package/docs/research/2026-03-23-supermemory-audit-fixes-mongodb-research.md +995 -0
  505. package/docs/start/clawmongo-getting-started.md +1 -1
  506. package/package.json +1 -1
  507. /package/dist/{memory-BAVM2Jxh.js → memory-CcbELE82.js} +0 -0
@@ -0,0 +1,632 @@
1
+ # MEMORY.md Full Deprecation Plan
2
+
3
+ > **For Claude:** REQUIRED: Follow this plan task-by-task using TDD.
4
+ > **Context:** MEMORY.md is a vestigial file-based memory artifact from the pre-MongoDB era. MongoDB is the sole memory backend. This plan removes all seeding, injection, and references to MEMORY.md from the runtime.
5
+
6
+ **Goal:** Stop creating, reading, and injecting MEMORY.md so MongoDB is the unambiguous sole memory source. Existing user MEMORY.md files become inert (not deleted).
7
+
8
+ **Architecture:** Remove MEMORY.md constants, seeding logic, bootstrap injection, system-prompt references, safety guards, and doctor checks. The `memory/` subdirectory and session-memory hook exports remain (those are separate from MEMORY.md). Other bootstrap files (AGENTS.md, SOUL.md, TOOLS.md, HEARTBEAT.md) are unchanged.
9
+
10
+ **Tech Stack:** TypeScript ESM, Vitest
11
+
12
+ **Prerequisites:** None (all MongoDB infrastructure already in place)
13
+
14
+ ---
15
+
16
+ ## Relevant Codebase Files
17
+
18
+ ### Production Files to Modify
19
+
20
+ - `src/agents/workspace.ts` (lines 36-37, 144-145, 181-183, 471-489, 528-531, 560-563, 589) -- MEMORY constants, bootstrap type, resolveMemoryBootstrapEntry, loadWorkspaceBootstrapFiles memory lookup, PRIVATE_MEMORY_BOOTSTRAP_FILES filter
21
+ - `src/wizard/onboarding-memory.ts` (lines 2, 380-434) -- MONGODB_MEMORY_SEED constant, customizeWorkspaceForMongoDB MEMORY.md write
22
+ - `src/agents/system-prompt.ts` (lines 55-58) -- buildMongoDBBridgeSection MEMORY.md lines
23
+ - `src/auto-reply/reply/memory-flush.ts` (lines 14-24, 126-131, 153-161) -- MEMORY_FLUSH_APPEND_ONLY_HINT, MEMORY_FLUSH_READ_ONLY_HINT, MEMORY_FLUSH_REQUIRED_HINTS, ensureMemoryFlushSafetyHints
24
+ - `src/memory/internal.ts` (lines 74-87, 119-186, 188-255) -- isMemoryPath, isLegacyMarkdownMemoryPath, listMemoryFiles MEMORY.md lookup, listLegacyMarkdownMemoryFiles
25
+ - `src/commands/doctor-workspace.ts` (lines 6-38) -- MEMORY_SYSTEM_PROMPT, shouldSuggestMemorySystem
26
+ - `src/commands/doctor.ts` (lines 63, 370-372) -- shouldSuggestMemorySystem import and call
27
+ - `src/cli/memory-cli.ts` (line 13, 829) -- listLegacyMarkdownMemoryFiles import and usage
28
+ - `src/agents/tools/memory-tool.ts` (lines 106, 159, 413) -- description strings mentioning MEMORY.md as bridge note
29
+ - `src/config/schema.help.ts` (lines 776, 780) -- help text referencing MEMORY.md
30
+ - `src/commands/configure.wizard.ts` (line 465) -- "MEMORY.md" in workspace indicators
31
+ - `src/gateway/server-methods/agents.ts` (lines 13-14, 64, 308-345) -- MEMORY_FILE_NAMES constant, gateway file-listing API includes MEMORY.md lookup
32
+ - `src/agents/prompt-composition-scenarios.ts` (lines 561, 573, 594) -- test fixture scenario content referencing MEMORY.md
33
+
34
+ ### Test Files to Update (13 total — verified by grep)
35
+
36
+ - `src/agents/workspace.test.ts` -- Tests for MEMORY.md bootstrap loading, PRIVATE_MEMORY filter
37
+ - `src/agents/system-prompt-mongodb.test.ts` -- Assertions checking for "MEMORY.md" in prompt
38
+ - `src/auto-reply/reply/memory-flush.test.ts` -- Assertion checking MEMORY.md in flush prompt
39
+ - `src/memory/internal.test.ts` -- Tests for isMemoryPath (EXISTS — earlier claim of "none" was wrong)
40
+ - `src/wizard/onboarding-memory.test.ts` -- Tests for customizeWorkspaceForMongoDB
41
+ - `src/wizard/setup.test.ts` -- May reference workspace customization
42
+ - `src/auto-reply/reply/reply-state.test.ts` -- 4 assertions: `.toContain("MEMORY.md")` on flush prompt/systemPrompt (lines 207-240)
43
+ - `src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts` -- 4 assertions: `.toContain("MEMORY.md")` on flush calls (lines 1691-1821)
44
+ - `src/memory/mongodb-watcher.test.ts` -- Expects MEMORY.md in watchPaths array (line 199)
45
+ - `src/memory/runtime-write.e2e.test.ts` -- Creates MEMORY.md as test fixture, asserts path in results (lines 572-619)
46
+ - `src/agents/tools/memory-tool.citations.test.ts` -- Uses "MEMORY.md" as fixture path in citation test data (lines 31, 55-56, 113)
47
+ - `src/auto-reply/reply/agent-runner-memory.dedup.test.ts` -- Comment only (line 5) — NO CHANGE NEEDED
48
+ - `src/agents/pi-tools.read.host-edit-recovery.test.ts` -- Creates MEMORY.md as generic test file (line 50) — LIKELY NO CHANGE (file name is incidental)
49
+
50
+ ### Doc Files to Update (content-only changes)
51
+
52
+ - `docs/reference/memory-config.md`
53
+ - `docs/concepts/memory.md`
54
+ - `docs/reference/heart-brain-boundary.md`
55
+ - `docs/concepts/agent-workspace.md`
56
+ - `docs/start/clawmongo-getting-started.md`
57
+ - `docs/reference/templates/AGENTS.md`
58
+
59
+ ### Files NOT Modified (Out of Scope)
60
+
61
+ - `docs/zh-CN/**` -- Generated; will be rebuilt by i18n pipeline
62
+ - `src/hooks/bundled/session-memory/HOOK.md` -- Hook docs, not runtime
63
+ - `src/hooks/bundled/bootstrap-extra-files/HOOK.md` -- Hook docs, not runtime
64
+ - `src/memory/mongodb-manager.ts` -- **HAS RUNTIME CODE**: watchPaths Set at lines 2025-2026 includes MEMORY.md (moved to Phase 1 Task 1.5)
65
+ - `memory/` subdirectory handling -- Stays (session-memory hooks use `memory/*.md` files)
66
+
67
+ ---
68
+
69
+ ## Phase 1: Remove MEMORY.md Constants and Bootstrap Injection
70
+
71
+ > **Exit Criteria:** New workspaces no longer get MEMORY.md. Existing MEMORY.md files are no longer loaded as bootstrap files. Tests pass.
72
+ >
73
+ > **IMPORTANT: Tasks 1.1 and 1.4 both modify `src/agents/workspace.ts`. Apply ALL workspace.ts changes (from Tasks 1.1 + 1.4) as a single atomic edit to avoid intermediate build breakage. Do NOT build between these two tasks.**
74
+
75
+ ### Task 1.1: Remove MEMORY.md constants from workspace.ts
76
+
77
+ **Files:**
78
+
79
+ - Modify: `src/agents/workspace.ts`
80
+
81
+ **Changes:**
82
+
83
+ 1. Remove `DEFAULT_MEMORY_FILENAME` export (line 36)
84
+ 2. Remove `DEFAULT_MEMORY_ALT_FILENAME` export (line 37)
85
+ 3. Remove both from `WorkspaceBootstrapFileName` type union (lines 144-145)
86
+ 4. Remove both from `VALID_BOOTSTRAP_NAMES` set (lines 181-182)
87
+ 5. Remove `PRIVATE_MEMORY_BOOTSTRAP_FILES` set (lines 560-563)
88
+ 6. Remove `resolveMemoryBootstrapEntry()` function (lines 471-489)
89
+ 7. Remove the memory entry lookup and push in `loadWorkspaceBootstrapFiles()` (lines 528-531)
90
+ 8. Remove the `PRIVATE_MEMORY_BOOTSTRAP_FILES` filter in `filterBootstrapFilesForSession()` (line 589)
91
+ 9. In `ensureAgentWorkspace()`:
92
+ - Line 365: Remove `path.join(dir, DEFAULT_MEMORY_FILENAME)` from the `userContentPaths` array inside `isBrandNewWorkspace`. Keep `path.join(dir, "memory")` and `path.join(dir, ".git")`.
93
+ - Line 423: Remove `path.join(dir, DEFAULT_MEMORY_FILENAME)` from the `indicators` array inside `hasUserContent`. Keep `path.join(dir, "memory")` and `path.join(dir, ".git")`.
94
+ - **Rationale:** MEMORY.md presence alone should NOT prevent a workspace from being treated as "brand new". Only the `memory/` directory (session exports) and `.git` (user project) are meaningful signals.
95
+
96
+ **Note:** Other files that import `DEFAULT_MEMORY_FILENAME` (like `onboarding-memory.ts`, `doctor-workspace.ts`) will be updated in subsequent tasks.
97
+
98
+ **Validation:**
99
+
100
+ ```bash
101
+ pnpm build
102
+ ```
103
+
104
+ Expected: Build passes (some test files may reference removed exports -- those are updated in Phase 2).
105
+
106
+ ### Task 1.2: Remove MEMORY.md seeding from onboarding
107
+
108
+ **Files:**
109
+
110
+ - Modify: `src/wizard/onboarding-memory.ts`
111
+
112
+ **Changes:**
113
+
114
+ 1. Remove `DEFAULT_MEMORY_FILENAME` import from workspace.js (line 2)
115
+ 2. Remove `MONGODB_MEMORY_SEED` constant (lines 395-403)
116
+ 3. In `customizeWorkspaceForMongoDB()`: remove the `memoryPath` variable and the entire "MEMORY.md: seed" block (lines 412, 424-433). Keep the AGENTS.md append block.
117
+ 4. Update the `MONGODB_AGENTS_SECTION` constant: remove the line mentioning MEMORY.md (line 389: `- **MEMORY.md**: Keep as a human-authored bridge note only -- NOT agent-written runtime memory`). Replace with a line stating MongoDB is the sole memory store.
118
+
119
+ **Validation:**
120
+
121
+ ```bash
122
+ pnpm test -- src/wizard/onboarding-memory.test.ts
123
+ ```
124
+
125
+ ### Task 1.3: Remove MEMORY.md from gateway file-listing API
126
+
127
+ **Files:**
128
+
129
+ - Modify: `src/gateway/server-methods/agents.ts`
130
+
131
+ **Changes:**
132
+
133
+ 1. Remove `DEFAULT_MEMORY_FILENAME` and `DEFAULT_MEMORY_ALT_FILENAME` imports (lines 13-14).
134
+ 2. Remove `MEMORY_FILE_NAMES` constant (line 64).
135
+ 3. Remove `...MEMORY_FILE_NAMES` from the `ALLOWED_FILE_NAMES` set (line 66). The set should only contain `...BOOTSTRAP_FILE_NAMES`.
136
+ 4. Remove the entire MEMORY.md file-listing block in the files-list handler (lines 308-345 approx). This block checks for MEMORY.md, falls back to memory.md, then pushes a missing entry. Remove it entirely -- the gateway file listing should only return bootstrap files.
137
+
138
+ **Note:** The gateway file-listing API is used by the web UI and potentially other clients. After this change, MEMORY.md will no longer appear in the file list. This is the desired behavior -- MongoDB is the sole memory source, not workspace files.
139
+
140
+ **Validation:**
141
+
142
+ ```bash
143
+ pnpm build
144
+ ```
145
+
146
+ ### Task 1.4: Remove MEMORY.md from configure wizard workspace detection
147
+
148
+ **Files:**
149
+
150
+ - Modify: `src/commands/configure.wizard.ts`
151
+
152
+ **Changes:**
153
+
154
+ 1. In the workspace indicators array (line 465), remove `"MEMORY.md"` from the list. Keep `"memory"` and `".git"`.
155
+
156
+ **Validation:**
157
+
158
+ ```bash
159
+ pnpm build
160
+ ```
161
+
162
+ ### Task 1.5: Remove MEMORY.md from mongodb-manager.ts watchPaths
163
+
164
+ **Files:**
165
+
166
+ - Modify: `src/memory/mongodb-manager.ts`
167
+
168
+ **Changes:**
169
+
170
+ 1. In the `watchPaths` Set constructor (lines 2024-2029), remove:
171
+ - `path.join(this.workspaceDir, "MEMORY.md")` (line 2025)
172
+ - `path.join(this.workspaceDir, "memory.md")` (line 2026)
173
+ 2. Keep `path.join(this.workspaceDir, "memory")` (line 2027) — the `memory/` directory is still valid for session exports.
174
+ 3. Keep `...this.extraMemoryPaths` (line 2028).
175
+
176
+ **Validation:**
177
+
178
+ ```bash
179
+ pnpm test -- src/memory/mongodb-watcher.test.ts
180
+ ```
181
+
182
+ ---
183
+
184
+ ## Phase 2: Remove System Prompt and Tool Description References
185
+
186
+ > **Exit Criteria:** System prompt no longer mentions MEMORY.md. Tool descriptions no longer reference MEMORY.md as bridge note. Tests pass.
187
+
188
+ ### Task 2.1: Clean MEMORY.md from MongoDB bridge section
189
+
190
+ **Files:**
191
+
192
+ - Modify: `src/agents/system-prompt.ts`
193
+
194
+ **Changes:**
195
+
196
+ 1. In `buildMongoDBBridgeSection()` (lines 55-58), remove the two lines:
197
+ - `"- MEMORY.md is retrieval guidance only, not a runtime knowledge store"`
198
+ - `"- Treat MEMORY.md and memory/*.md as human-authored bridge notes, not agent-written durable memory"`
199
+
200
+ **Validation:**
201
+
202
+ ```bash
203
+ pnpm test -- src/agents/system-prompt-mongodb.test.ts
204
+ ```
205
+
206
+ ### Task 2.2: Clean MEMORY.md from tool descriptions
207
+
208
+ **Files:**
209
+
210
+ - Modify: `src/agents/tools/memory-tool.ts`
211
+
212
+ **Changes:**
213
+
214
+ 1. In `createMemoryWriteTool()` description (line 413): remove the clause `treat MEMORY.md as a human-authored bridge note, not the runtime memory store`. Replace with: `do not write runtime memory to workspace files`.
215
+ 2. In `createMemorySearchTool()` description (line 106): no MEMORY.md reference found in the current description -- confirm and skip.
216
+ 3. In `createMemoryGetTool()` description (line 159): no MEMORY.md reference found -- confirm and skip.
217
+
218
+ **Validation:**
219
+
220
+ ```bash
221
+ pnpm test -- src/agents/tools/memory-tool.citations.test.ts
222
+ ```
223
+
224
+ ### Task 2.3: Clean config schema help text
225
+
226
+ **Files:**
227
+
228
+ - Modify: `src/config/schema.help.ts`
229
+
230
+ **Changes:**
231
+
232
+ 1. Line 776: Change `"Vector search over MEMORY.md and memory/*.md"` to `"MongoDB-backed vector search over runtime memory sources"`.
233
+ 2. Line 780: Change `'"memory" reads MEMORY.md + memory files'` to `'"memory" reads workspace memory files'` (or remove the now-inaccurate file reference).
234
+
235
+ **Validation:**
236
+
237
+ ```bash
238
+ pnpm build
239
+ ```
240
+
241
+ ---
242
+
243
+ ## Phase 3: Remove Memory Flush Safety Guards
244
+
245
+ > **Exit Criteria:** Memory flush prompts no longer contain MEMORY.md-specific safety hints. The `ensureMemoryFlushSafetyHints()` function is simplified. Tests pass.
246
+
247
+ ### Task 3.1: Simplify memory flush safety hints
248
+
249
+ **Files:**
250
+
251
+ - Modify: `src/auto-reply/reply/memory-flush.ts`
252
+
253
+ **Changes:**
254
+
255
+ 1. Remove `MEMORY_FLUSH_APPEND_ONLY_HINT` constant (line 17). This guard existed solely to prevent the LLM from writing to MEMORY.md.
256
+ 2. Simplify `MEMORY_FLUSH_READ_ONLY_HINT` (line 18-19): change from `"Treat workspace bootstrap/reference files such as MEMORY.md, SOUL.md, TOOLS.md, and AGENTS.md as read-only"` to `"Treat workspace bootstrap files (SOUL.md, TOOLS.md, AGENTS.md) as read-only during this flush; never overwrite, replace, or edit them."` (MEMORY.md removed from the list).
257
+ 3. Remove `MEMORY_FLUSH_APPEND_ONLY_HINT` from `MEMORY_FLUSH_REQUIRED_HINTS` array (line 20-24). Keep the target hint and the simplified read-only hint.
258
+ 4. Update `DEFAULT_MEMORY_FLUSH_PROMPT` (lines 26-34): remove the `MEMORY_FLUSH_APPEND_ONLY_HINT` line. Remove `"do not overwrite or replace bridge note files."` (line 31) since the read-only hint already covers this.
259
+ 5. Update `DEFAULT_MEMORY_FLUSH_SYSTEM_PROMPT` (lines 36-43): remove the `MEMORY_FLUSH_APPEND_ONLY_HINT` line.
260
+ 6. The `ensureMemoryFlushSafetyHints()` function (lines 153-161) stays but operates on the reduced `MEMORY_FLUSH_REQUIRED_HINTS` array (now 2 items instead of 3).
261
+
262
+ **Validation:**
263
+
264
+ ```bash
265
+ pnpm test -- src/auto-reply/reply/memory-flush.test.ts
266
+ ```
267
+
268
+ ---
269
+
270
+ ## Phase 4: Remove Doctor Check and Legacy Internal Functions
271
+
272
+ > **Exit Criteria:** Doctor no longer suggests MEMORY.md setup. Legacy internal.ts functions cleaned. Memory CLI migrate-markdown still works (uses `memory/` directory files). Tests pass.
273
+
274
+ ### Task 4.1: Remove doctor MEMORY.md suggestion
275
+
276
+ **Files:**
277
+
278
+ - Modify: `src/commands/doctor-workspace.ts`
279
+ - Modify: `src/commands/doctor.ts`
280
+
281
+ **Changes in `doctor-workspace.ts`:**
282
+
283
+ 1. Remove `MEMORY_SYSTEM_PROMPT` constant (lines 6-13)
284
+ 2. Remove `shouldSuggestMemorySystem()` function (lines 15-38)
285
+
286
+ **Changes in `doctor.ts`:**
287
+
288
+ 1. Remove the import of `MEMORY_SYSTEM_PROMPT` and `shouldSuggestMemorySystem` from `./doctor-workspace.js` (line 63)
289
+ 2. Remove the block at lines 370-372 that calls `shouldSuggestMemorySystem` and shows the note
290
+
291
+ **Validation:**
292
+
293
+ ```bash
294
+ pnpm test -- src/commands/doctor-memory-search.test.ts
295
+ ```
296
+
297
+ ### Task 4.2: Clean internal.ts legacy functions
298
+
299
+ **Files:**
300
+
301
+ - Modify: `src/memory/internal.ts`
302
+
303
+ **Changes:**
304
+
305
+ 1. `isMemoryPath()` (lines 74-83): Remove the check for `"MEMORY.md"` and `"memory.md"`. Keep only the `normalized.startsWith("memory/")` check. The function still serves `memory/*.md` subdirectory paths.
306
+ 2. `listMemoryFiles()` (lines 119-186): Remove the `memoryFile` and `altMemoryFile` variables and their `addMarkdownFile()` calls (lines 125-126, 142-143). Keep the `memoryDir` walk and `extraPaths` handling.
307
+ 3. `listLegacyMarkdownMemoryFiles()` (lines 188-255): Same treatment -- remove MEMORY.md and memory.md file lookups (lines 193-194, 210-211). Keep `memoryDir` walk and extra paths.
308
+
309
+ **Behavioral Note:** After this change, `listLegacyMarkdownMemoryFiles()` and `listMemoryFiles()` will no longer find root `MEMORY.md` or `memory.md` files. The `openclaw memory migrate-markdown` CLI command will only import files from the `memory/` subdirectory, NOT root MEMORY.md. This is the intended behavior — root MEMORY.md was never meant to be migrated (it's a human note, not agent memory).
310
+
311
+ **Validation:**
312
+
313
+ ```bash
314
+ pnpm test -- src/memory/internal.test.ts
315
+ pnpm test -- src/cli/memory-cli.ts # migrate-markdown still works for memory/ directory files
316
+ ```
317
+
318
+ ---
319
+
320
+ ## Phase 5: Update Tests
321
+
322
+ > **Exit Criteria:** All modified test files pass. No test references MEMORY.md as injected bootstrap content. Full test suite green (modulo pre-existing baseline).
323
+
324
+ ### Task 5.1: Update workspace.test.ts
325
+
326
+ **Files:**
327
+
328
+ - Modify: `src/agents/workspace.test.ts`
329
+
330
+ **Changes:**
331
+
332
+ 1. Remove imports of `DEFAULT_MEMORY_FILENAME` and `DEFAULT_MEMORY_ALT_FILENAME`.
333
+ 2. Update the `"includes MEMORY.md when present"` test -- remove or convert to a test that confirms MEMORY.md is NOT loaded.
334
+ 3. Update the `"includes memory.md when MEMORY.md is absent"` test -- remove or convert to confirm memory.md is NOT loaded.
335
+ 4. Update the `PRIVATE_MEMORY_BOOTSTRAP_FILES` filter test -- remove since the filter no longer exists.
336
+ 5. Update the mock bootstrap file lists that include `MEMORY.md` entries (line 257).
337
+ 6. In the legacy detection test that writes MEMORY.md (line 130), change the assertion: the file should still exist (we don't delete it) but `ensureAgentWorkspace` should no longer use it as a detection signal. Update `isBrandNewWorkspace` detection test accordingly -- MEMORY.md presence should NOT trigger legacy detection by itself (only `memory/` directory or `.git` should).
338
+
339
+ **Validation:**
340
+
341
+ ```bash
342
+ pnpm test -- src/agents/workspace.test.ts
343
+ ```
344
+
345
+ ### Task 5.2: Update system-prompt-mongodb.test.ts
346
+
347
+ **Files:**
348
+
349
+ - Modify: `src/agents/system-prompt-mongodb.test.ts`
350
+
351
+ **Changes:**
352
+
353
+ 1. Line ~15: Change `expect(prompt).toContain("MEMORY.md")` to `expect(prompt).not.toContain("MEMORY.md")`.
354
+ 2. Line ~110: Change `expect(prompt).toContain("MEMORY.md is retrieval guidance only")` to `expect(prompt).not.toContain("MEMORY.md")`.
355
+
356
+ **Validation:**
357
+
358
+ ```bash
359
+ pnpm test -- src/agents/system-prompt-mongodb.test.ts
360
+ ```
361
+
362
+ ### Task 5.3: Update memory-flush.test.ts
363
+
364
+ **Files:**
365
+
366
+ - Modify: `src/auto-reply/reply/memory-flush.test.ts`
367
+
368
+ **Changes:**
369
+
370
+ 1. Line ~60: Change `expect(DEFAULT_MEMORY_FLUSH_PROMPT).toContain("MEMORY.md")` to `expect(DEFAULT_MEMORY_FLUSH_PROMPT).not.toContain("MEMORY.md")`.
371
+ 2. Keep the assertion about "read-only" since the simplified hint still includes read-only guidance.
372
+ 3. Remove the assertion about "human-authored bridge notes" if that exact phrase was removed from the prompt.
373
+
374
+ **Validation:**
375
+
376
+ ```bash
377
+ pnpm test -- src/auto-reply/reply/memory-flush.test.ts
378
+ ```
379
+
380
+ ### Task 5.4: Update prompt-composition-scenarios.ts (production fixture file, not a test)
381
+
382
+ **Files:**
383
+
384
+ - Modify: `src/agents/prompt-composition-scenarios.ts` (production file that exports test fixture data)
385
+
386
+ **Changes:**
387
+
388
+ 1. Lines 561, 573, 594: These are test fixture scenario strings that embed "MEMORY.md" in simulated AGENTS.md content and flush prompts. Update to remove MEMORY.md references from the fixture content. The AGENTS.md fixture at line 561 should change `"Read AGENTS.md and MEMORY.md before responding."` to `"Read AGENTS.md before responding."`. The flush prompt fixture at line 573 should be updated to match the new `MEMORY_FLUSH_READ_ONLY_HINT` (without MEMORY.md in the list). The embedded AGENTS.md at line 594 should be updated similarly.
389
+
390
+ **Validation:**
391
+
392
+ ```bash
393
+ pnpm test -- src/agents/prompt-composition-scenarios.ts
394
+ ```
395
+
396
+ (This file is imported by test files; run the consuming tests.)
397
+
398
+ ### Task 5.5: Update onboarding-memory.test.ts
399
+
400
+ **Files:**
401
+
402
+ - Modify: `src/wizard/onboarding-memory.test.ts`
403
+
404
+ **Changes:**
405
+
406
+ 1. Remove any tests that assert MEMORY.md file creation by `customizeWorkspaceForMongoDB`.
407
+ 2. Keep tests for AGENTS.md MongoDB section append (that stays).
408
+
409
+ **Validation:**
410
+
411
+ ```bash
412
+ pnpm test -- src/wizard/onboarding-memory.test.ts
413
+ ```
414
+
415
+ ### Task 5.6: Update setup.test.ts (if needed)
416
+
417
+ **Files:**
418
+
419
+ - Modify: `src/wizard/setup.test.ts`
420
+
421
+ **Changes:**
422
+
423
+ 1. If any assertions reference MEMORY.md creation during workspace setup, update them.
424
+
425
+ **Validation:**
426
+
427
+ ```bash
428
+ pnpm test -- src/wizard/setup.test.ts
429
+ ```
430
+
431
+ ### Task 5.7: Update reply-state.test.ts (HIGH — 4 assertions)
432
+
433
+ **Files:**
434
+
435
+ - Modify: `src/auto-reply/reply/reply-state.test.ts`
436
+
437
+ **Changes:**
438
+
439
+ 1. Lines 207, 209, 238, 240: Change `expect(settings?.prompt).toContain("MEMORY.md")` and `expect(settings?.systemPrompt).toContain("MEMORY.md")` to `.not.toContain("MEMORY.md")`.
440
+
441
+ **Validation:**
442
+
443
+ ```bash
444
+ pnpm test -- src/auto-reply/reply/reply-state.test.ts
445
+ ```
446
+
447
+ ### Task 5.8: Update agent-runner.runreplyagent.e2e.test.ts (HIGH — 4 assertions)
448
+
449
+ **Files:**
450
+
451
+ - Modify: `src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts`
452
+
453
+ **Changes:**
454
+
455
+ 1. Lines 1691, 1696, 1819, 1821: Change `expect(flushCall?.prompt).toContain("MEMORY.md")` and `expect(flushCall?.extraSystemPrompt).toContain("MEMORY.md")` to `.not.toContain("MEMORY.md")`.
456
+
457
+ **Validation:**
458
+
459
+ ```bash
460
+ pnpm test -- src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts
461
+ ```
462
+
463
+ ### Task 5.9: Update mongodb-watcher.test.ts (HIGH — watchPaths assertion)
464
+
465
+ **Files:**
466
+
467
+ - Modify: `src/memory/mongodb-watcher.test.ts`
468
+
469
+ **Changes:**
470
+
471
+ 1. Line 199: Remove `"/workspace/MEMORY.md"` and `"/workspace/memory.md"` from the `expect.arrayContaining([...])` assertion. Keep `"/workspace/memory"`.
472
+
473
+ **Validation:**
474
+
475
+ ```bash
476
+ pnpm test -- src/memory/mongodb-watcher.test.ts
477
+ ```
478
+
479
+ ### Task 5.10: Update runtime-write.e2e.test.ts (MEDIUM — fixture paths)
480
+
481
+ **Files:**
482
+
483
+ - Modify: `src/memory/runtime-write.e2e.test.ts`
484
+
485
+ **Changes:**
486
+
487
+ 1. Lines 572, 577: Remove `path.join(workspace, "MEMORY.md")` from test fixtures that create MEMORY.md files for the watcher.
488
+ 2. Lines 618-619: Remove `expect(results.some((result) => result.path === "MEMORY.md")).toBe(true)` assertions.
489
+
490
+ **Validation:**
491
+
492
+ ```bash
493
+ pnpm test -- src/memory/runtime-write.e2e.test.ts
494
+ ```
495
+
496
+ ### Task 5.11: Review memory-tool.citations.test.ts (LOW — fixture data)
497
+
498
+ **Files:**
499
+
500
+ - Modify: `src/agents/tools/memory-tool.citations.test.ts`
501
+
502
+ **Changes:**
503
+
504
+ 1. Lines 31, 55-56, 113: These use `"MEMORY.md"` as a fixture path in citation test data. This is test fixture data (mocking what MongoDB search returns), NOT runtime behavior. **Consider keeping as-is** — the citation paths are valid historical data. OR replace with another file path like `"memory/2026-03-01.md"` for consistency.
505
+
506
+ **Validation:**
507
+
508
+ ```bash
509
+ pnpm test -- src/agents/tools/memory-tool.citations.test.ts
510
+ ```
511
+
512
+ ### Task 5.12: Verify no-change files
513
+
514
+ **Files that contain MEMORY.md but need NO changes:**
515
+
516
+ - `src/auto-reply/reply/agent-runner-memory.dedup.test.ts` — Comment only (line 5), no assertion
517
+ - `src/agents/pi-tools.read.host-edit-recovery.test.ts` — Generic test file creation (line 50), filename incidental
518
+
519
+ **Validation:** Run both to confirm they still pass:
520
+
521
+ ```bash
522
+ pnpm test -- src/auto-reply/reply/agent-runner-memory.dedup.test.ts
523
+ pnpm test -- src/agents/pi-tools.read.host-edit-recovery.test.ts
524
+ ```
525
+
526
+ ---
527
+
528
+ ## Phase 6: Update Documentation
529
+
530
+ > **Exit Criteria:** Docs no longer describe MEMORY.md as part of the memory system. MongoDB is presented as the sole memory store.
531
+
532
+ ### Task 6.1: Update core memory docs
533
+
534
+ **Files:**
535
+
536
+ - Modify: `docs/reference/memory-config.md`
537
+ - Modify: `docs/concepts/memory.md`
538
+ - Modify: `docs/reference/heart-brain-boundary.md`
539
+ - Modify: `docs/concepts/agent-workspace.md`
540
+
541
+ **Changes:**
542
+
543
+ 1. Remove references to MEMORY.md as a memory source.
544
+ 2. Clarify that MongoDB is the sole runtime memory backend.
545
+ 3. Keep mentions of `memory/` subdirectory if they refer to session-memory hook logs.
546
+ 4. In agent-workspace.md, remove MEMORY.md from the list of workspace bootstrap files.
547
+
548
+ ### Task 6.2: Update getting-started and templates
549
+
550
+ **Files:**
551
+
552
+ - Modify: `docs/start/clawmongo-getting-started.md`
553
+ - Modify: `docs/reference/templates/AGENTS.md`
554
+
555
+ **Changes:**
556
+
557
+ 1. Remove instructions to create or edit MEMORY.md.
558
+ 2. Update AGENTS.md template to remove MEMORY.md references.
559
+
560
+ **Validation:**
561
+
562
+ ```bash
563
+ pnpm build # Ensure docs compile
564
+ ```
565
+
566
+ ---
567
+
568
+ ## Phase 7: Final Validation
569
+
570
+ > **Exit Criteria:** Full test suite passes. Build passes. No MEMORY.md references in production code (docs/test files may retain historical context).
571
+
572
+ ### Task 7.1: Full regression run
573
+
574
+ **Steps:**
575
+
576
+ 1. Run full test suite:
577
+
578
+ ```bash
579
+ pnpm test
580
+ ```
581
+
582
+ Expected: All tests pass (modulo pre-existing baseline failures).
583
+
584
+ 2. Run build:
585
+
586
+ ```bash
587
+ pnpm build
588
+ ```
589
+
590
+ Expected: Exit 0.
591
+
592
+ 3. Run lint/format:
593
+
594
+ ```bash
595
+ pnpm check
596
+ ```
597
+
598
+ Expected: Clean (modulo pre-existing).
599
+
600
+ 4. Verify no stale MEMORY.md references in production code:
601
+
602
+ ```bash
603
+ grep -r "MEMORY\.md" src/ --include="*.ts" -l | grep -v test | grep -v ".test." | grep -v "prompt-composition-scenarios"
604
+ ```
605
+
606
+ Expected: Zero matches (or only in non-actionable comments).
607
+
608
+ ---
609
+
610
+ ## Risks
611
+
612
+ | Risk | P | I | Score | Mitigation |
613
+ | ------------------------------------------------------ | --- | --- | ----- | ------------------------------------------------------------------------------------------------------- |
614
+ | Breaking import in downstream consumer | 2 | 3 | 6 | `DEFAULT_MEMORY_FILENAME` was exported but unlikely consumed externally; ClawMongo is the only consumer |
615
+ | Existing MEMORY.md in user workspaces causes confusion | 2 | 2 | 4 | File becomes inert; `migrate-markdown` CLI command still available to import content to MongoDB |
616
+ | Test assertions on MEMORY.md in prompt composition | 3 | 2 | 6 | Phase 5 systematically updates all test assertions |
617
+ | `memory/` subdirectory files stop being indexed | 1 | 4 | 4 | Explicitly preserved in internal.ts; only MEMORY.md root file removed |
618
+
619
+ ---
620
+
621
+ ## Success Criteria
622
+
623
+ - [ ] `pnpm build` passes
624
+ - [ ] `pnpm test` passes (modulo pre-existing baseline)
625
+ - [ ] `pnpm check` clean (modulo pre-existing)
626
+ - [ ] Zero production .ts files reference MEMORY.md as an active runtime artifact
627
+ - [ ] New workspaces get no MEMORY.md file
628
+ - [ ] Existing MEMORY.md files remain on disk (not deleted)
629
+ - [ ] `memory/` subdirectory session-memory still works
630
+ - [ ] `openclaw memory migrate-markdown` still imports `memory/*.md` files
631
+ - [ ] System prompt contains zero MEMORY.md mentions
632
+ - [ ] Doctor does not suggest MEMORY.md setup