@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.
- package/README.md +84 -49
- package/dist/{accounts-boH28BFM.js → accounts-lL2y51Ag.js} +46 -46
- package/dist/{acp-cli-DLaTb29R.js → acp-cli-BZvVHRY8.js} +46 -46
- package/dist/{action-runtime-Bk-7pvN2.js → action-runtime-DMYRUL4q.js} +10 -10
- package/dist/{actions.runtime-Y529miLb.js → actions.runtime-Bd-NMAq6.js} +46 -46
- package/dist/{actions.runtime-DVQ4pmcp.js → actions.runtime-gPSeXscW.js} +49 -49
- package/dist/{agent-scope-BROpmzKv.js → agent-scope-DXZH506l.js} +1 -1
- package/dist/{agents-DZqtbDMD.js → agents-Bt25bmDR.js} +13 -13
- package/dist/{agents-BbO-i90j.js → agents-CyJmttnS.js} +114 -114
- package/dist/{agents.config-CDS6iAat.js → agents.config-BWm70Hr6.js} +2 -2
- package/dist/{agents.config-iY500LY-.js → agents.config-UsCw0kOR.js} +4 -4
- package/dist/{audit-Cmj7BNcZ.js → audit-Dg8ZiJrJ.js} +9 -9
- package/dist/{audit-DmXeao7s.js → audit-DhXhWoiv.js} +1 -1
- package/dist/{audit-channel.collect.runtime-DhP09fjv.js → audit-channel.collect.runtime-CvPUHy1X.js} +2 -2
- package/dist/{audit-channel.runtime-C-watgwg.js → audit-channel.runtime-B6ZnOPFc.js} +46 -46
- package/dist/{audit-extra.async-B-7dzgcz.js → audit-extra.async-826UZZhJ.js} +3 -3
- package/dist/{audit-membership-runtime-CbLi3-5b.js → audit-membership-runtime-DLQrV7Rr.js} +46 -46
- package/dist/{audit.deep.runtime-D5VgrTOT.js → audit.deep.runtime-DQDtV7Bc.js} +4 -4
- package/dist/{audit.nondeep.runtime-B7M0-7FZ.js → audit.nondeep.runtime-H6B-2xal.js} +4 -4
- package/dist/{audit.runtime-BUknqGaP.js → audit.runtime-D2ZRC2A_.js} +47 -47
- package/dist/{auth-choice-DfJRosb4.js → auth-choice-CEowrO66.js} +57 -57
- package/dist/{auth-choice-CpB99A-L.js → auth-choice-DiufM1b8.js} +55 -55
- package/dist/{auth-choice-Bnnngmkx.js → auth-choice-YrGxwB9A.js} +5 -5
- package/dist/{auth-choice-options-DvqJHFOp.js → auth-choice-options-n3_uFdT5.js} +2 -2
- package/dist/{auth-choice-prompt-DtTjWfPT.js → auth-choice-prompt-DYFzoWa6.js} +50 -50
- package/dist/{auth-choice-prompt-Cxz8du6E.js → auth-choice-prompt-sLET2Bkw.js} +1 -1
- package/dist/{auth-choice.apply-helpers-Bm5p2ZX7.js → auth-choice.apply-helpers-GU6nZntg.js} +1 -1
- package/dist/{auth-choice.plugin-providers.runtime-Dsu6-vb8.js → auth-choice.plugin-providers.runtime-BNqOEEtb.js} +47 -47
- package/dist/{auth-profiles-2-OV37OF.js → auth-profiles-BWBQJ6X_.js} +67 -76
- package/dist/{auth-profiles.runtime-HcQMBs3K.js → auth-profiles.runtime-DfKRAmQR.js} +46 -46
- package/dist/{backend-config-avgzgS5Z.js → backend-config--L236wE2.js} +26 -1
- package/dist/{backup-create-B9F0M7-J.js → backup-create-Bll6DgoT.js} +2 -2
- package/dist/{base-session-key-DyLtSGkj.js → base-session-key-CA4SoGLF.js} +1 -1
- package/dist/{bluebubbles-BTR7u4zE.js → bluebubbles-BsX68JOY.js} +6 -6
- package/dist/{browser-cli-tmytvFaa.js → browser-cli-B5euA0cQ.js} +8 -8
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +46 -46
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +47 -47
- package/dist/{call-Cqem-bCB.js → call-C-_XQxw5.js} +1 -1
- package/dist/{call-CxVOiYz-.js → call-lPTaDgAg.js} +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-Br8MF00M.js → channel-5o-oIU2B.js} +1 -1
- package/dist/{channel-BvRm4jSj.js → channel-C1zZg_8b.js} +2 -2
- package/dist/{channel-CqkxOhz2.js → channel-CEytBPH-.js} +4 -4
- package/dist/{channel-D_h7IfYK.js → channel-Cm65A1lo.js} +7 -7
- package/dist/{channel-ngZRDeE3.js → channel-D4K0MVgr.js} +5 -5
- package/dist/{channel-account-context-DZhZw4oo.js → channel-account-context-CNZZPDSe.js} +1 -1
- package/dist/{channel-plugin-resolution-CXm5HIcm.js → channel-plugin-resolution-WWO690RK.js} +3 -3
- package/dist/{channel-reply-pipeline-DdDsf-Lc.js → channel-reply-pipeline-B17-tBLU.js} +1 -1
- package/dist/{channel-shared-VIRIADYn.js → channel-shared-RH6YsZ0I.js} +1 -1
- package/dist/{channel-summary-BTJxLPN8.js → channel-summary-Cy7WDRjQ.js} +7 -7
- package/dist/{channel-summary-DdJtHlvH.js → channel-summary-DV4_b3HZ.js} +2 -2
- package/dist/{channel-tFDEkWt9.js → channel-yCiI29Ju.js} +6 -6
- package/dist/{channel.runtime-DGnRryi2.js → channel.runtime-C3m1vacV.js} +47 -47
- package/dist/{channel.runtime-CdPEA_wb.js → channel.runtime-CUSE7Dn0.js} +47 -47
- package/dist/{channel.runtime-0n3_Hz_Y.js → channel.runtime-CtWi36oj.js} +49 -49
- package/dist/{channel.runtime-CkHcsWQ3.js → channel.runtime-LUpQZiWg.js} +49 -49
- package/dist/{channel.runtime-msXRrVzC.js → channel.runtime-QOkM4mJV.js} +51 -51
- package/dist/{channel.runtime-khqV1QRG.js → channel.runtime-rYuUs2po.js} +4 -4
- package/dist/{channels-DNza27NY.js → channels-4VTbN2Gt.js} +103 -103
- package/dist/{channels-CLZoq3SY.js → channels-BUMnLXLQ.js} +1 -1
- package/dist/{channels-cli-Bhsnjsix.js → channels-cli-BYmLj8zw.js} +55 -55
- package/dist/{clawbot-cli-9YJNF9pF.js → clawbot-cli-CIYY1u-6.js} +47 -47
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-FF5823nM.js → cli-DUA0FvhM.js} +46 -46
- package/dist/{command-registry-Dw-TONf0.js → command-registry-B1ECZip_.js} +13 -13
- package/dist/{command-registry-TeN0aKPi.js → command-registry-DOAwIs0Y.js} +2 -2
- package/dist/{command-secret-gateway-CzHSHmXG.js → command-secret-gateway-Big-n6JY.js} +46 -46
- package/dist/{compact.runtime-Bye-pm7Z.js → compact.runtime-BKnPPv9X.js} +46 -46
- package/dist/{completion-cli-D08RAGPz.js → completion-cli-BeLNvVTI.js} +3 -3
- package/dist/{completion-cli-C0mwyiAb.js → completion-cli-CHwHDPuI.js} +2 -2
- package/dist/{config-Ca7pLyBD.js → config-BOWZMmDA.js} +1 -1
- package/dist/{config-GKOWhVMv.js → config-C68iwvDj.js} +5 -5
- package/dist/{config-cli-CxPspN-S.js → config-cli-BnC336Lu.js} +48 -48
- package/dist/{config-guard-BK2hWyPi.js → config-guard-Bn6rZnzK.js} +6 -6
- package/dist/{config-validation-DO6o_Kt_.js → config-validation-BBuJZ-WH.js} +2 -2
- package/dist/{configure-CODqvxU-.js → configure-CHJDsjOD.js} +120 -120
- package/dist/{configure-Dg65gBEw.js → configure-Cctw7tyJ.js} +19 -23
- package/dist/{connection-auth-zhL6PVn0.js → connection-auth-C2XaPpF5.js} +1 -1
- package/dist/{control-ui-shared-_VwcOcc_.js → control-ui-shared-BC-g150y.js} +1 -1
- package/dist/{core-CzwQmKcn.js → core-Cb3XxL6S.js} +1 -1
- package/dist/{cron-cli-Dp_EQt2v.js → cron-cli-C10feOtH.js} +7 -7
- package/dist/{daemon-cli-Dgpv6Y0R.js → daemon-cli-Ds8mu2VZ.js} +4 -4
- package/dist/{daemon-install-Dq1Ix-FO.js → daemon-install-B__sP_7j.js} +49 -49
- package/dist/{delegate-BVapk4rY.js → delegate-ByCLviVI.js} +1 -1
- package/dist/{deliver-runtime-DPzMjhNU.js → deliver-Co7G5ubS.js} +46 -46
- package/dist/{deliver-C32Gg-xU.js → deliver-runtime-2svrtAf1.js} +46 -46
- package/dist/{devices-cli-3WN_wB1C.js → devices-cli-CH8nWgcU.js} +6 -6
- package/dist/{diagnostic-BbXfhLMi.js → diagnostic-DHTG43d_.js} +1 -1
- package/dist/{directory-cli-D_5BYdXm.js → directory-cli-B0REFlKo.js} +48 -48
- package/dist/{directory.static-CsajbHw1.js → directory.static-wnw_R8dE.js} +1 -1
- package/dist/{discord-C-4y9vOT.js → discord-Cws9MsXn.js} +4 -4
- package/dist/{discord-B3mmVXuG.js → discord-b8Ff_BKB.js} +46 -46
- package/dist/{dns-cli-CdAnUzRi.js → dns-cli-aRTleL5e.js} +5 -5
- package/dist/{doctor-completion-BnqTtLhL.js → doctor-completion-KQWBMnEi.js} +1 -1
- package/dist/{doctor-config-preflight-BJ0lGLTO.js → doctor-config-preflight-BDYe5di1.js} +2 -2
- package/dist/{doctor-config-preflight-D32oVOWD.js → doctor-config-preflight-Dn5a_Dbr.js} +6 -6
- package/dist/{doctor-state-migrations-BklDIib1.js → doctor-state-migrations-BI6HzFyq.js} +47 -47
- package/dist/{doctor-state-migrations-Cdk3ep_f.js → doctor-state-migrations-DUPe9zNr.js} +2 -2
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-D8OOtgGc.js → exec-approvals-CZz2LqIW.js} +1 -1
- package/dist/{exec-approvals-cli-dGISWHE3.js → exec-approvals-cli-KbFpgd-p.js} +9 -9
- package/dist/extensionAPI.js +46 -46
- package/dist/extensions/amazon-bedrock/index.js +46 -46
- package/dist/extensions/anthropic/index.js +46 -46
- package/dist/extensions/bluebubbles/index.js +50 -50
- package/dist/extensions/bluebubbles/setup-entry.js +48 -48
- package/dist/extensions/byteplus/index.js +46 -46
- package/dist/extensions/chutes/index.js +48 -48
- package/dist/extensions/cloudflare-ai-gateway/index.js +47 -47
- package/dist/extensions/device-pair/index.js +46 -46
- package/dist/extensions/discord/index.js +48 -48
- package/dist/extensions/discord/node_modules/.package-lock.json +3 -3
- package/dist/extensions/discord/node_modules/hono/dist/adapter/service-worker/index.js +1 -3
- package/dist/extensions/discord/node_modules/hono/dist/cjs/adapter/service-worker/index.js +1 -3
- package/dist/extensions/discord/node_modules/hono/dist/cjs/helper/ssg/ssg.js +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/cjs/middleware/cors/index.js +5 -2
- package/dist/extensions/discord/node_modules/hono/dist/cjs/request.js +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/helper/ssg/ssg.js +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/middleware/cors/index.js +5 -2
- package/dist/extensions/discord/node_modules/hono/dist/request.js +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/types/client/index.d.ts +1 -1
- package/dist/extensions/discord/node_modules/hono/dist/types/client/types.d.ts +20 -0
- package/dist/extensions/discord/node_modules/hono/dist/types/request.d.ts +1 -3
- package/dist/extensions/discord/node_modules/hono/package.json +1 -1
- package/dist/extensions/discord/setup-entry.js +48 -48
- package/dist/extensions/elevenlabs/index.js +46 -46
- package/dist/extensions/fal/index.js +46 -46
- package/dist/extensions/feishu/index.js +55 -55
- package/dist/extensions/feishu/setup-entry.js +51 -51
- package/dist/extensions/firecrawl/index.js +46 -46
- package/dist/extensions/github-copilot/index.js +47 -47
- package/dist/extensions/google/index.js +46 -46
- package/dist/extensions/huggingface/index.js +47 -47
- package/dist/extensions/imessage/index.js +49 -49
- package/dist/extensions/imessage/setup-entry.js +49 -49
- package/dist/extensions/irc/index.js +49 -49
- package/dist/extensions/irc/setup-entry.js +48 -48
- package/dist/extensions/kilocode/index.js +47 -47
- package/dist/extensions/kimi-coding/index.js +47 -47
- package/dist/extensions/line/index.js +9 -9
- package/dist/extensions/line/setup-entry.js +8 -8
- package/dist/extensions/llm-task/index.js +46 -46
- package/dist/extensions/lobster/index.js +5 -5
- package/dist/extensions/mattermost/index.js +49 -49
- package/dist/extensions/mattermost/setup-entry.js +48 -48
- package/dist/extensions/microsoft/index.js +46 -46
- package/dist/extensions/minimax/index.js +48 -48
- package/dist/extensions/mistral/index.js +47 -47
- package/dist/extensions/modelstudio/index.js +47 -47
- package/dist/extensions/moonshot/index.js +46 -46
- package/dist/extensions/nextcloud-talk/index.js +50 -50
- package/dist/extensions/nextcloud-talk/setup-entry.js +49 -49
- package/dist/extensions/ollama/index.js +5 -5
- package/dist/extensions/openai/index.js +47 -47
- package/dist/extensions/opencode/index.js +47 -47
- package/dist/extensions/opencode-go/index.js +47 -47
- package/dist/extensions/openrouter/index.js +47 -47
- package/dist/extensions/openshell/index.js +46 -46
- package/dist/extensions/qianfan/index.js +47 -47
- package/dist/extensions/qwen-portal-auth/index.js +47 -47
- package/dist/extensions/sglang/index.js +46 -46
- package/dist/extensions/signal/index.js +49 -49
- package/dist/extensions/signal/setup-entry.js +49 -49
- package/dist/extensions/slack/index.js +50 -50
- package/dist/extensions/slack/setup-entry.js +50 -50
- package/dist/extensions/synology-chat/index.js +9 -9
- package/dist/extensions/synology-chat/setup-entry.js +8 -8
- package/dist/extensions/synthetic/index.js +47 -47
- package/dist/extensions/talk-voice/index.js +46 -46
- package/dist/extensions/tavily/index.js +46 -46
- package/dist/extensions/telegram/index.js +48 -48
- package/dist/extensions/telegram/setup-entry.js +48 -48
- package/dist/extensions/together/index.js +47 -47
- package/dist/extensions/venice/index.js +47 -47
- package/dist/extensions/vercel-ai-gateway/index.js +47 -47
- package/dist/extensions/vllm/index.js +46 -46
- package/dist/extensions/voice-call/index.js +46 -46
- package/dist/extensions/volcengine/index.js +46 -46
- package/dist/extensions/xai/index.js +46 -46
- package/dist/extensions/xiaomi/index.js +47 -47
- package/dist/extensions/zai/index.js +47 -47
- package/dist/extensions/zalo/index.js +49 -49
- package/dist/extensions/zalo/setup-entry.js +48 -48
- package/dist/{feishu-C637DYYe.js → feishu-D2fuiOiy.js} +4 -4
- package/dist/{gateway-cli-Cuk9d7J2.js → gateway-cli-nOgyXtih.js} +72 -106
- package/dist/{gateway-install-token-DlcVm1rP.js → gateway-install-token-nvsTK8KN.js} +4 -4
- package/dist/{gateway-rpc-siKa8KpM.js → gateway-rpc-DrH142-v.js} +1 -1
- package/dist/{gateway-runtime-roiTaOKO.js → gateway-runtime-CQXKGzrv.js} +2 -2
- package/dist/{github-copilot-auth-DJljh3gq.js → github-copilot-auth-C4z2AAd8.js} +3 -3
- package/dist/{health-DU_pBiid.js → health-DEgLPyA9.js} +7 -7
- package/dist/{health-B1OK1kJg.js → health-H5nbiXvA.js} +48 -48
- package/dist/{heartbeat-summary-CMwt9qam.js → heartbeat-summary-CNCptWmA.js} +1 -1
- package/dist/{hooks-cli-D42hQEUb.js → hooks-cli-jBhsJaOg.js} +46 -46
- package/dist/{identity-file-8MUyIAOy.js → identity-file-CYQnH12I.js} +1 -1
- package/dist/{imessage-zqZjecTU.js → imessage-DYqgZpLc.js} +6 -6
- package/dist/{imessage-CZb_pS8U.js → imessage-Dau6WdE3.js} +46 -46
- package/dist/{inbound-reply-dispatch-B73AkQh4.js → inbound-reply-dispatch-BFE3xy1S.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{internal-Bg_k56Pk.js → internal-DLE9baj7.js} +0 -24
- package/dist/{io-DE9vm7Eo.js → io-Du0b8gMO.js} +2 -2
- package/dist/{io-B7rO2wud.js → io-dJgqp8U8.js} +4 -4
- package/dist/{irc-BWzsfr2V.js → irc-BRaOVUse.js} +2 -2
- package/dist/{kb-cli-BOPGkNfJ.js → kb-cli-Cdif_vwn.js} +12 -12
- package/dist/{library-i-2ymInt.js → library-BwjFIWw3.js} +46 -46
- package/dist/{lifecycle-core-DwIo1PfK.js → lifecycle-core-DNO4MItg.js} +1 -1
- package/dist/line/send.js +6 -6
- package/dist/{line-DbTKdVgY.js → line-BCXUGrVz.js} +2 -2
- package/dist/{llm-slug-generator-Dm30OM2W.js → llm-slug-generator-B55FZ1aG.js} +3 -3
- package/dist/llm-slug-generator.js +47 -47
- package/dist/{logging-BM4mQ53W.js → logging-BvOzg0cM.js} +1 -1
- package/dist/{logging-0tvlVvFG.js → logging-nWyKsj9d.js} +5 -5
- package/dist/{login-qr-DQPSabxI.js → login-qr-C0QA3j4x.js} +46 -46
- package/dist/{logs-cli-ZnHk5eku.js → logs-cli-thlXBA9n.js} +7 -7
- package/dist/{manager.runtime-D3vjUOZF.js → manager.runtime-SoTq-tT4.js} +46 -46
- package/dist/{matrix-migration-snapshot-CRKiHq6Y.js → matrix-migration-snapshot-_6Rg-iLO.js} +2 -2
- package/dist/{mattermost-Bqn7Fd5U.js → mattermost-2nv5O_jQ.js} +2 -2
- package/dist/{mcp-cli-7aN2vJv-.js → mcp-cli-1vpy_yti.js} +5 -5
- package/dist/{mcp-config-NVrqojpu.js → mcp-config-Bmi2GUum.js} +1 -1
- package/dist/{media-understanding.runtime-DesF8Xhs.js → media-understanding.runtime-Wh-_SFK_.js} +46 -46
- package/dist/{memory-cli-CWqIJQS5.js → memory-cli-COJRHkaJ.js} +46 -46
- package/dist/{memory-search-DyxoUpq2.js → memory-search-CGmdrdM1.js} +1 -1
- package/dist/{memory-search-CgoWYj0V.js → memory-search-Cy36nO15.js} +3 -3
- package/dist/{model-picker-DX9P5pDr.js → model-picker-CYWvoS3z.js} +48 -48
- package/dist/{model-picker-Ds7-VqDS.js → model-picker-_32ihKqK.js} +4 -4
- package/dist/{model-picker.runtime-DqDt4s3S.js → model-picker.runtime-DBT5uEFi.js} +49 -49
- package/dist/{model-selection-DXFVauys.js → model-selection-014eeYCV.js} +1 -1
- package/dist/{model-suppression.runtime-8mU0VJs6.js → model-suppression.runtime-GTI9Rm85.js} +46 -46
- package/dist/{models-GXQSWyBX.js → models-Be9EWpVm.js} +54 -54
- package/dist/{models-CVG-VMBa.js → models-CX35daXC.js} +14 -14
- package/dist/{models-cli-Cvy8rGqU.js → models-cli-BYjac3oq.js} +54 -54
- package/dist/{models-config-BdanqM9X.js → models-config-Agv-ThDH.js} +46 -46
- package/dist/{models-config.providers.discovery-BHZ3WglC.js → models-config.providers.discovery-BJwjDHsg.js} +1 -1
- package/dist/{mongodb-analytics-BszyEhsq.js → mongodb-analytics-HJKYeseb.js} +2 -2
- package/dist/{mongodb-analytics-CcSYo_ae.js → mongodb-analytics-mnKJih5x.js} +1 -1
- package/dist/{mongodb-auto-setup-QcwgZSN9.js → mongodb-auto-setup-CCElSwNy.js} +2 -2
- package/dist/{mongodb-kb-C-VmGOq7.js → mongodb-kb-1tSOXXb9.js} +3 -3
- package/dist/{mongodb-kb-BotgVda9.js → mongodb-kb-CdSvNe3w.js} +2 -2
- package/dist/{mongodb-kb-search-CoIAFX8n.js → mongodb-kb-search-Dq6E746K.js} +1 -1
- package/dist/{mongodb-kb-search-BBYY_d_r.js → mongodb-kb-search-DvsXIUy6.js} +3 -3
- package/dist/{mongodb-manager-BVfTfpHf.js → mongodb-manager-DEZIQXuo.js} +10 -10
- package/dist/{mongodb-manager-BJ0PAYF_.js → mongodb-manager-NkerSpvH.js} +1183 -331
- package/dist/{mongodb-procedures-DNPmmW5r.js → mongodb-procedures-DI-_Dakz.js} +7 -3
- package/dist/{mongodb-procedures-D3M2Ph8E.js → mongodb-procedures-tjhGdBV7.js} +3 -3
- package/dist/{mongodb-schema-JpDXcAUV.js → mongodb-schema-DN3aspLa.js} +1 -1
- package/dist/{mongodb-schema-BI4Ze_ZV.js → mongodb-schema-Dt6jxcPL.js} +298 -4
- package/dist/{mongodb-search-VFKd72IZ.js → mongodb-search-DMsUyfpa.js} +2 -2
- package/dist/{mongodb-structured-memory-DnwUJ6SA.js → mongodb-structured-memory-D-3SEfTu.js} +58 -2
- package/dist/{mongodb-structured-memory-BySGexcm.js → mongodb-structured-memory-lpyyW0kn.js} +3 -3
- package/dist/{monitor-DGE0bx3s.js → monitor-BZFy1RTb.js} +47 -47
- package/dist/{monitor-Dfc0KXMD.js → monitor-DPYGxeY_.js} +5 -5
- package/dist/{monitor-CZZlkQUU.js → monitor-Duykki-j.js} +51 -51
- package/dist/{monitor-B61bVnMW.js → monitor-gq31SALd.js} +8 -8
- package/dist/{nextcloud-talk-CnwOv1rG.js → nextcloud-talk-C_-LfGeq.js} +2 -2
- package/dist/{node-cli-Avub0RKe.js → node-cli-NpJzvfQW.js} +12 -12
- package/dist/{nodes-cli-qSE-cmgX.js → nodes-cli-O5HciXeP.js} +10 -10
- package/dist/{nodes-screen-DQw8F5rA.js → nodes-screen-BIwiB35h.js} +1 -1
- package/dist/{oauth.runtime-825pMCgB.js → oauth.runtime-BxjW8DFO.js} +46 -46
- package/dist/{oauth.runtime-BCwH9-Yl.js → oauth.runtime-DKU2STuA.js} +46 -46
- package/dist/{oauth.runtime-BSddaUzc.js → oauth.runtime-mFizWM72.js} +46 -46
- package/dist/{onboard-CUbnVxXL.js → onboard-B6H0qDtg.js} +1 -1
- package/dist/{onboard-BwC0LbCx.js → onboard-C1AmXQ6f.js} +8 -8
- package/dist/{onboard-Cw65XmEU.js → onboard-DPdj0IBu.js} +2 -2
- package/dist/{onboard-channels-BYNDTtRI.js → onboard-channels-Cmj_5qXQ.js} +24 -24
- package/dist/{onboard-channels-CIR1ZSii.js → onboard-channels-Wf3nY9Bf.js} +97 -97
- package/dist/{onboard-custom-FImARgQC.js → onboard-custom-DILgXkiq.js} +50 -50
- package/dist/{onboard-custom-C4qOVxtG.js → onboard-custom-DlDCjvIw.js} +4 -4
- package/dist/{onboard-helpers-DW9Mskds.js → onboard-helpers-CqpD9TVU.js} +48 -48
- package/dist/{onboard-helpers-D3xV_T96.js → onboard-helpers-D-PLdtHT.js} +3 -3
- package/dist/{onboard-hooks-B0gJVtBY.js → onboard-hooks-MQ8QOguv.js} +2 -2
- package/dist/{onboard-remote-BMLo6WKH.js → onboard-remote-BZKWgKVw.js} +50 -50
- package/dist/{onboard-remote-XUah3N3G.js → onboard-remote-Bnad5LMv.js} +2 -2
- package/dist/{onboard-search-DHCzqxgq.js → onboard-search-Dyv1IuQ4.js} +46 -46
- package/dist/{onboard-skills-LXCIpyir.js → onboard-skills-DdCu1_hE.js} +1 -1
- package/dist/{onboard-skills-CH6q90Pf.js → onboard-skills-W_252asS.js} +49 -49
- package/dist/{onboarding-memory-BWEsBe08.js → onboarding-memory-BRHSmwx3.js} +24 -15
- package/dist/{outbound-media-CqfP0r4a.js → outbound-media-CHc08Sj8.js} +1 -1
- package/dist/{pairing-cli-BdCkQG2S.js → pairing-cli-oNWkjwCt.js} +5 -5
- package/dist/{persistent-dedupe-DNnh7hrR.js → persistent-dedupe-CS_uyVoq.js} +1 -1
- package/dist/{pi-model-discovery-runtime-DyT9C3Ap.js → pi-model-discovery-runtime-BJVREOXf.js} +46 -46
- package/dist/{pi-tools.before-tool-call.runtime-CA2js1Ig.js → pi-tools.before-tool-call.runtime-w-Q4HA_S.js} +6 -6
- package/dist/{plugin-install-DgvJfz7X.js → plugin-install-BysMw7Sl.js} +47 -47
- package/dist/{plugin-install-BKuy_--2.js → plugin-install-EyES0vGP.js} +2 -2
- package/dist/{plugin-registry-D-6OBqUU.js → plugin-registry-BenF9SYR.js} +47 -47
- package/dist/{plugin-registry-Dsx_6z3N.js → plugin-registry-CRV_Bc8K.js} +3 -3
- package/dist/plugin-sdk/account-resolution.js +46 -46
- package/dist/plugin-sdk/acp-runtime.js +46 -46
- package/dist/plugin-sdk/agent-runtime.js +46 -46
- package/dist/plugin-sdk/channel-inbound.js +46 -46
- package/dist/plugin-sdk/channel-reply-pipeline.js +3 -3
- package/dist/plugin-sdk/channel-runtime.js +46 -46
- package/dist/plugin-sdk/channel-setup.js +1 -1
- package/dist/plugin-sdk/command-auth.js +46 -46
- package/dist/plugin-sdk/compat.js +5 -5
- package/dist/plugin-sdk/config-runtime.js +46 -46
- package/dist/plugin-sdk/conversation-runtime.js +46 -46
- package/dist/plugin-sdk/core.js +5 -5
- package/dist/plugin-sdk/directory-runtime.js +1 -1
- package/dist/plugin-sdk/discord.js +46 -46
- package/dist/plugin-sdk/gateway-runtime.js +8 -8
- package/dist/plugin-sdk/image-generation.js +46 -46
- package/dist/plugin-sdk/index.js +46 -46
- package/dist/plugin-sdk/infra-runtime.js +46 -46
- package/dist/plugin-sdk/llm-task.js +46 -46
- package/dist/plugin-sdk/matrix-runtime-heavy.js +50 -50
- package/dist/plugin-sdk/media-runtime.js +46 -46
- package/dist/plugin-sdk/media-understanding-runtime.js +46 -46
- package/dist/plugin-sdk/media-understanding.js +46 -46
- package/dist/plugin-sdk/ollama-setup.js +8 -8
- package/dist/plugin-sdk/plugin-runtime.js +46 -46
- package/dist/plugin-sdk/provider-auth-api-key.js +46 -46
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth.js +46 -46
- package/dist/plugin-sdk/provider-models.js +5 -5
- package/dist/plugin-sdk/provider-onboard.js +5 -5
- package/dist/plugin-sdk/provider-setup.js +49 -49
- package/dist/plugin-sdk/provider-stream.js +46 -46
- package/dist/plugin-sdk/provider-usage.js +4 -4
- package/dist/plugin-sdk/reply-history.js +3 -3
- package/dist/plugin-sdk/reply-runtime.js +46 -46
- package/dist/plugin-sdk/routing.js +3 -3
- package/dist/plugin-sdk/sandbox.js +46 -46
- package/dist/plugin-sdk/self-hosted-provider-setup.js +48 -48
- package/dist/plugin-sdk/setup-runtime.js +1 -1
- package/dist/plugin-sdk/setup.js +1 -1
- package/dist/plugin-sdk/speech-runtime.js +46 -46
- package/dist/plugin-sdk/speech.js +46 -46
- package/dist/plugin-sdk/src/agents/workspace.d.ts +1 -3
- package/dist/plugin-sdk/src/config/types.memory.d.ts +44 -0
- package/dist/plugin-sdk/src/memory/backend-config.d.ts +24 -0
- package/dist/plugin-sdk/src/memory/index.d.ts +12 -4
- package/dist/plugin-sdk/src/memory/mongodb-entity-extractor.d.ts +33 -0
- package/dist/plugin-sdk/src/memory/mongodb-episodes.d.ts +16 -0
- package/dist/plugin-sdk/src/memory/mongodb-events.d.ts +9 -0
- package/dist/plugin-sdk/src/memory/mongodb-graph.d.ts +30 -3
- package/dist/plugin-sdk/src/memory/mongodb-manager.d.ts +18 -0
- package/dist/plugin-sdk/src/memory/mongodb-mutations.d.ts +38 -0
- package/dist/plugin-sdk/src/memory/mongodb-procedures.d.ts +32 -0
- package/dist/plugin-sdk/src/memory/mongodb-profile.d.ts +71 -0
- package/dist/plugin-sdk/src/memory/mongodb-query-cache.d.ts +68 -0
- package/dist/plugin-sdk/src/memory/mongodb-query-rewriter.d.ts +39 -0
- package/dist/plugin-sdk/src/memory/mongodb-reranker.d.ts +32 -0
- package/dist/plugin-sdk/src/memory/mongodb-schema.d.ts +3 -0
- package/dist/plugin-sdk/src/memory/mongodb-telemetry.d.ts +69 -0
- package/dist/plugin-sdk/text-runtime.js +6 -6
- package/dist/plugin-sdk/web-media.js +3 -3
- package/dist/plugin-sdk/zalo.js +47 -47
- package/dist/plugin-sdk/zalouser.js +47 -47
- package/dist/plugins/build-smoke-entry.js +46 -46
- package/dist/plugins/runtime/index.js +46 -46
- package/dist/{plugins-cli-C6wGAkD9.js → plugins-cli-BUiP4x7l.js} +46 -46
- package/dist/{policy-CcgojW9R.js → policy-DnUfJkOZ.js} +1 -1
- package/dist/{preflight-audio.runtime-Cyz9Zu89.js → preflight-audio.runtime-D3_iaSgF.js} +46 -46
- package/dist/{probe-auth-BmluVNJZ.js → probe-auth-BbNdYwb0.js} +1 -1
- package/dist/{probe-auth-DrgTJ7ki.js → probe-auth-CB9y2dLl.js} +7 -7
- package/dist/{program-CHFcfOlC.js → program-uHYlUP3c.js} +4 -4
- package/dist/{prompt-select-styled-Ck38XMb3.js → prompt-select-styled-DoTAWghe.js} +25 -51
- package/dist/{provider-api-key-auth.runtime-AT16DTa8.js → provider-api-key-auth.runtime-B3H0dODg.js} +46 -46
- package/dist/{provider-auth-choice-UhIkLc6q.js → provider-auth-choice-HRfxXEHk.js} +6 -6
- package/dist/{provider-auth-choice-helpers-CXWmWOdR.js → provider-auth-choice-helpers-2jZnBKMm.js} +1 -1
- package/dist/{provider-auth-choice-preference-TgulgKlz.js → provider-auth-choice-preference-CqKryjBB.js} +6 -6
- package/dist/{provider-auth-choice.runtime-FTNgi8Yh.js → provider-auth-choice.runtime-BaFSZgQG.js} +48 -48
- package/dist/{provider-auth-choice.runtime-CP91b3vK.js → provider-auth-choice.runtime-DPHuj1_l.js} +2 -2
- package/dist/{provider-auth-choices-BfWvatIg.js → provider-auth-choices-CqFh00uK.js} +1 -1
- package/dist/{provider-auth-guidance-D4-q7IHl.js → provider-auth-guidance-DmdBoDfS.js} +2 -2
- package/dist/{provider-auth-input-DnQ-RiX5.js → provider-auth-input-FZYEJh19.js} +46 -46
- package/dist/{provider-auth-login-D7eLUZwy.js → provider-auth-login-B-XedaK5.js} +1 -1
- package/dist/{provider-auth-login.runtime-BG_qqxZk.js → provider-auth-login.runtime-f9dxfJUB.js} +49 -49
- package/dist/{provider-model-allowlist-CC0lIQ6w.js → provider-model-allowlist-C16pn0B8.js} +1 -1
- package/dist/{provider-models-DbK6xrje.js → provider-models-PaymKOme.js} +1 -1
- package/dist/{provider-ollama-setup-B4RWr9oj.js → provider-ollama-setup-k5ozCUi2.js} +3 -3
- package/dist/{provider-onboarding-config-W5sF0oD8.js → provider-onboarding-config-qCltsaVl.js} +1 -1
- package/dist/{provider-runtime.runtime-Cva8S4wx.js → provider-runtime.runtime-CzVe0WBb.js} +46 -46
- package/dist/{provider-self-hosted-setup-jAzqLaqv.js → provider-self-hosted-setup-zxYnIftX.js} +3 -3
- package/dist/{provider-usage-CEgSCMW4.js → provider-usage-C9KdAhuS.js} +46 -46
- package/dist/{provider-usage-CCIC3SdY.js → provider-usage-DexJNI_0.js} +1 -1
- package/dist/{provider-wizard-DQd5eYhX.js → provider-wizard-D4RbMR2D.js} +2 -2
- package/dist/{push-apns-DQN5pcl6.js → push-apns-BAc0-Jy5.js} +1 -1
- package/dist/{pw-ai-BiXz8un2.js → pw-ai-C8v0s5wH.js} +6 -6
- package/dist/{qr-cli-B8bBpCd2.js → qr-cli-BpqLcmYC.js} +47 -47
- package/dist/{qr-cli-DOuhqzho.js → qr-cli-D0zqiQMl.js} +4 -4
- package/dist/{reactions-BkyHqIw4.js → reactions-CjJbniYK.js} +1 -1
- package/dist/{read-only-account-inspect-Cfaj7PFb.js → read-only-account-inspect-CEJ1r7AW.js} +3 -3
- package/dist/{read-only-account-inspect.discord.runtime-kreMwVgq.js → read-only-account-inspect.discord.runtime-C1n8r_Kj.js} +46 -46
- package/dist/{read-only-account-inspect.slack.runtime-DgV5VZ-n.js → read-only-account-inspect.slack.runtime-DAOzA9ke.js} +46 -46
- package/dist/{read-only-account-inspect.telegram.runtime-BQaHHCIS.js → read-only-account-inspect.telegram.runtime-CfNlnogC.js} +46 -46
- package/dist/{redact-snapshot-PisBVQFW.js → redact-snapshot-qQFn3bz8.js} +3 -3
- package/dist/{register.agent-CXTssAWM.js → register.agent-DC5QbIE7.js} +114 -114
- package/dist/{register.backup-MRTb86c6.js → register.backup-BRxspFkM.js} +6 -6
- package/dist/{register.configure-BfE3p-3h.js → register.configure-B7zhRBla.js} +120 -120
- package/dist/{register.maintenance-D_Gn-ZDc.js → register.maintenance-CCmppLW1.js} +65 -65
- package/dist/{register.message-s1z2QSP2.js → register.message-DSBPJS4x.js} +47 -47
- package/dist/{register.onboard-Cd-OV7xm.js → register.onboard-C4D9pjf7.js} +54 -54
- package/dist/{register.setup-DclQVR9m.js → register.setup-C4pDa0HW.js} +52 -52
- package/dist/{register.status-health-sessions-D-Xp8ae7.js → register.status-health-sessions-ClxLTjC5.js} +55 -55
- package/dist/{register.subclis-pcAQ13jU.js → register.subclis-BauDruMA.js} +30 -30
- package/dist/{register.subclis-BCvQmGkr.js → register.subclis-WyYRaoa-.js} +1 -1
- package/dist/{replies-DQwDaTBP.js → replies-CZGcXYVE.js} +1 -1
- package/dist/{reply-history-DVLrt4Es.js → reply-history-1yT9Tzib.js} +1 -1
- package/dist/{routes-CBWjQBhD.js → routes-D8CYDLDF.js} +5 -5
- package/dist/{rpc-O719GSVf.js → rpc-D8I_Qzen.js} +1 -1
- package/dist/{run-main-C_W2kjf-.js → run-main-BwEbDjI-.js} +19 -19
- package/dist/{runtime-COpSaRtb.js → runtime-CmSMHqwN.js} +1 -1
- package/dist/{runtime-PbP8BVEV.js → runtime-DQaeo-1L.js} +2 -2
- package/dist/{runtime-discord-ops.runtime-CmStqYK4.js → runtime-discord-ops.runtime-8w-055sR.js} +46 -46
- package/dist/{runtime-slack-ops.runtime-Cm1935hR.js → runtime-slack-ops.runtime-XJJrByCY.js} +48 -48
- package/dist/{runtime-telegram-ops.runtime-CKozoVxf.js → runtime-telegram-ops.runtime-wOdrd2eH.js} +46 -46
- package/dist/{sandbox-cli-BIyJ-1r-.js → sandbox-cli-CvFmY6Kq.js} +46 -46
- package/dist/{search-manager-BVE1EPHv.js → search-manager-ZNiamJHa.js} +6 -6
- package/dist/{search-manager-DMTYqpmg.js → search-manager-zaZ4tAYz.js} +5 -5
- package/dist/{secrets-cli-CMMtWzst.js → secrets-cli-D5a_lvAP.js} +47 -47
- package/dist/{security-cli-Bw4cVkTN.js → security-cli-DJovxmST.js} +47 -47
- package/dist/{send-CfI8y11o.js → send-C3KhjjcU.js} +1 -1
- package/dist/{send-C8HDmafP.js → send-CIkS5fLj.js} +2 -2
- package/dist/{server-0n2tu0ff.js → server-B1z10Ohi.js} +6 -6
- package/dist/{server-node-events-J5-mGOea.js → server-node-events-D3_b2nU-.js} +47 -47
- package/dist/{server-startup-matrix-migration-CMBUtdN2.js → server-startup-matrix-migration-DDRaKUPQ.js} +3 -3
- package/dist/{session-cost-usage-CrPCO4HN.js → session-cost-usage-BwIud0lY.js} +46 -46
- package/dist/{sessions-n_Z6bcbr.js → sessions-B5Pffwj6.js} +3 -3
- package/dist/{sessions-BK_M3Nu1.js → sessions-ClamZkvP.js} +47 -47
- package/dist/{setup-OCrVlmv7.js → setup-B8gsbmH4.js} +18 -18
- package/dist/{setup-core-BVBCTInv.js → setup-core-B6csKf5s.js} +2 -2
- package/dist/{setup-core-z8Q1sgUU.js → setup-core-DkgiVKzw.js} +2 -2
- package/dist/{setup-entry-CvuaW-4I.js → setup-entry-C8XH3da9.js} +2 -2
- package/dist/{setup-entry-Jf6V23s6.js → setup-entry-CMSlnfft.js} +3 -3
- package/dist/{setup-entry-Bo3chgoG.js → setup-entry-CZVAwPKZ.js} +2 -2
- package/dist/{setup-entry-Co-YP41_.js → setup-entry-Duh-ewBV.js} +3 -3
- package/dist/{setup-entry-BnSZlMP1.js → setup-entry-ksUWY45r.js} +2 -2
- package/dist/{setup-entry-BNSYJMzp.js → setup-entry-vQgAuveW.js} +2 -2
- package/dist/{setup-group-access-BYV3O8yu.js → setup-group-access-CTlnq-M9.js} +1 -1
- package/dist/{setup-surface-B6XBqyMJ.js → setup-surface-B7uYEI9F.js} +2 -2
- package/dist/{setup-surface-fixjWejm.js → setup-surface-CMgQr2R9.js} +5 -5
- package/dist/{setup-surface-CzzV3QV6.js → setup-surface-Yd-YLGfa.js} +46 -46
- package/dist/{setup-wizard-proxy-DFDQV7FN.js → setup-wizard-proxy-CHGAY6ob.js} +1 -1
- package/dist/{setup.finalize-WT9kXSLX.js → setup.finalize-C2bq4D8j.js} +58 -58
- package/dist/{setup.gateway-config-Bp50kjo3.js → setup.gateway-config-BGgVOvQf.js} +48 -48
- package/dist/{shared-CyR3Ki--.js → shared-BEMZg0vb.js} +5 -5
- package/dist/{shared-DXzPv5D7.js → shared-BYRyVoVx.js} +5 -5
- package/dist/{shared-DCOVJ3QB.js → shared-Bj3fwdyM.js} +4 -4
- package/dist/{shared-B8_JHpU2.js → shared-CSydqOgE.js} +4 -4
- package/dist/{shared-C3fKAUbw.js → shared-DLAg-pKT.js} +3 -3
- package/dist/{signal-D16eMrBf.js → signal-Dh6z2uaT.js} +5 -5
- package/dist/{signal-oGrspg1k.js → signal-FEtxekyc.js} +46 -46
- package/dist/{skills-cli-CY6lUTRv.js → skills-cli-9NuRJd3Z.js} +5 -5
- package/dist/{slack-ueYeeNF7.js → slack-Ci1VArkq.js} +48 -48
- package/dist/{slack-B1GgT1_u.js → slack-CjslLjTc.js} +5 -5
- package/dist/{slash-commands.runtime-1q-llUpe.js → slash-commands.runtime-COXzcGjL.js} +46 -46
- package/dist/{slash-dispatch.runtime-BqJ1FZZ6.js → slash-dispatch.runtime-D5j8d7dg.js} +47 -47
- package/dist/{slash-skill-commands.runtime-D-BEZgQ1.js → slash-skill-commands.runtime-6U65Nany.js} +46 -46
- package/dist/{status-CnKcjD2h.js → status-BWUft8B5.js} +16 -16
- package/dist/{status-C1BR9Hft.js → status-BjV1ysoW.js} +50 -50
- package/dist/{status-D_1nxvoi.js → status-CM77XYRR.js} +4 -4
- package/dist/{status-Dp3OriYl.js → status-D7XHAzLz.js} +46 -46
- package/dist/{status-DoSH4nEL.js → status-DwO4xEHI.js} +54 -54
- package/dist/{status-json-DwNPzoCk.js → status-json-BYDBfkr3.js} +19 -19
- package/dist/{status-B45v-A8b.js → status-yoA_KX2O.js} +1 -1
- package/dist/{status.link-channel-Cz8GoHZ2.js → status.link-channel-DkISMfW8.js} +2 -2
- package/dist/{status.scan.deps.runtime-BQGei2B_.js → status.scan.deps.runtime-B6__B0kL.js} +14 -14
- package/dist/{status.scan.runtime-D4HkKTZu.js → status.scan.runtime-BAkcX3vO.js} +2 -2
- package/dist/{status.summary-Dxo5qDuD.js → status.summary-DNaMhaXy.js} +8 -8
- package/dist/{subagent-orphan-recovery-BPa7yoId.js → subagent-orphan-recovery-DtK8inah.js} +46 -46
- package/dist/{subagent-registry-runtime-B6homy_H.js → subagent-registry-runtime-02s7QJo3.js} +46 -46
- package/dist/{synology-chat-DY8xNv_g.js → synology-chat-QURTpvMf.js} +2 -2
- package/dist/{system-cli-CkWRbLu4.js → system-cli-BXd7evEt.js} +7 -7
- package/dist/{system-run-command-jY6Is_ri.js → system-run-command-CQCx0f24.js} +1 -1
- package/dist/telegram/audit.js +1 -1
- package/dist/telegram/token.js +46 -46
- package/dist/{telegram-uQdpyLeS.js → telegram-Btwvg0PX.js} +46 -46
- package/dist/{telegram-Bnigf1Qe.js → telegram-Dh5gM1mc.js} +7 -7
- package/dist/{tool-policy-match-BLASiL8y.js → tool-policy-match-B6J0bSfQ.js} +1 -1
- package/dist/{tui-Dj52JiFV.js → tui-CKGcNyM8.js} +6 -6
- package/dist/{tui-cli-B4SN4wzX.js → tui-cli-D3CLnnB9.js} +47 -47
- package/dist/{update-cli-CEAEBCp2.js → update-cli-DQ4j_nIh.js} +69 -69
- package/dist/{update-offset-store-Bp1RjZK2.js → update-offset-store-RxVdgbyo.js} +46 -46
- package/dist/{upsert-with-lock-CFIy4b7I.js → upsert-with-lock-BqkAnFym.js} +1 -1
- package/dist/{web-media-BJ-azd7j.js → web-media-BM1Mg6AN.js} +1 -1
- package/dist/{webhook-shared-DYKTXPVw.js → webhook-shared-UDKLpQnU.js} +1 -1
- package/dist/{webhooks-cli-CEBJbLqS.js → webhooks-cli-Ca3PlK8h.js} +5 -5
- package/dist/{whatsapp-63jqHVrE.js → whatsapp-CHEvDa2g.js} +46 -46
- package/dist/{with-timeout-CvaBvNie.js → with-timeout-CvBH67nj.js} +2 -2
- package/dist/{workspace-DuH1agxz.js → workspace-uCYzunu4.js} +5 -33
- package/dist/{zalo-CTrI2C4i.js → zalo-Dr4ysJLW.js} +1 -1
- package/dist/{zalo-Sw_XHo3-.js → zalo-keqX1Wnx.js} +2 -2
- package/docs/concepts/agent-workspace.md +0 -5
- package/docs/concepts/memory.md +6 -12
- package/docs/plans/2026-03-22-semantic-cache-telemetry-docs-plan.md +1431 -0
- package/docs/plans/2026-03-22-supermemory-steals-plan.md +1679 -0
- package/docs/plans/2026-03-23-almost-perfect-sprint-plan.md +1080 -0
- package/docs/plans/2026-03-23-master-steal-list.md +224 -0
- package/docs/plans/2026-03-23-memory-md-deprecation-plan.md +632 -0
- package/docs/plans/2026-03-23-production-readiness-e2e-plan.md +659 -0
- package/docs/plans/2026-03-23-supermemory-audit-fixes-plan.md +1291 -0
- package/docs/reference/clawmongo-vs-default-memory.md +2 -2
- package/docs/reference/heart-brain-boundary.md +8 -10
- package/docs/reference/memory-config.md +3 -4
- package/docs/reference/mongodb-capabilities.md +246 -9
- package/docs/reference/templates/AGENTS.md +5 -10
- package/docs/research/2026-03-22-atlas-local-preview-web.md +41 -31
- package/docs/research/2026-03-23-agent-management-ui-github.md +482 -0
- package/docs/research/2026-03-23-almost-perfect-mongodb-docs.md +255 -0
- package/docs/research/2026-03-23-company-os-agent-ui-web.md +511 -0
- package/docs/research/2026-03-23-supermemory-audit-fixes-mongodb-research.md +995 -0
- package/docs/start/clawmongo-getting-started.md +1 -1
- package/package.json +1 -1
- /package/dist/{memory-BAVM2Jxh.js → memory-CcbELE82.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-VzQeL-96.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as proceduresCollection, y as procedureRevisionsCollection } from "./mongodb-schema-Dt6jxcPL.js";
|
|
3
3
|
import { t as resolveScopeRef } from "./mongodb-scope-0bwP6Q3D.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as summarizeExplain, n as buildVectorSearchStage, t as MONGODB_MAX_NUM_CANDIDATES } from "./mongodb-search-DMsUyfpa.js";
|
|
5
5
|
//#region src/memory/mongodb-procedures.ts
|
|
6
6
|
const log = createSubsystemLogger("memory:mongodb:procedures");
|
|
7
7
|
function arraysEqual(left, right) {
|
|
@@ -99,7 +99,11 @@ async function writeProcedure(params) {
|
|
|
99
99
|
},
|
|
100
100
|
$setOnInsert: {
|
|
101
101
|
createdAt: now,
|
|
102
|
-
openedCount: 0
|
|
102
|
+
openedCount: 0,
|
|
103
|
+
version: 1,
|
|
104
|
+
successCount: 0,
|
|
105
|
+
failCount: 0,
|
|
106
|
+
evolutionHistory: []
|
|
103
107
|
}
|
|
104
108
|
}, {
|
|
105
109
|
upsert: true,
|
|
@@ -5,7 +5,7 @@ import "./theme-CdOoMzRk.js";
|
|
|
5
5
|
import "./globals-41sdSaKv.js";
|
|
6
6
|
import "./subsystem-VzQeL-96.js";
|
|
7
7
|
import "./ansi-BEJF8NKS.js";
|
|
8
|
-
import "./mongodb-schema-
|
|
9
|
-
import "./mongodb-search-
|
|
10
|
-
import { n as writeProcedure } from "./mongodb-procedures-
|
|
8
|
+
import "./mongodb-schema-Dt6jxcPL.js";
|
|
9
|
+
import "./mongodb-search-DMsUyfpa.js";
|
|
10
|
+
import { n as writeProcedure } from "./mongodb-procedures-DI-_Dakz.js";
|
|
11
11
|
export { writeProcedure };
|
|
@@ -5,5 +5,5 @@ import "./theme-CdOoMzRk.js";
|
|
|
5
5
|
import "./globals-41sdSaKv.js";
|
|
6
6
|
import "./subsystem-VzQeL-96.js";
|
|
7
7
|
import "./ansi-BEJF8NKS.js";
|
|
8
|
-
import { a as ensureCollections, c as ensureStandardIndexes, h as kbChunksCollection, r as detectCapabilities } from "./mongodb-schema-
|
|
8
|
+
import { a as ensureCollections, c as ensureStandardIndexes, h as kbChunksCollection, r as detectCapabilities } from "./mongodb-schema-Dt6jxcPL.js";
|
|
9
9
|
export { detectCapabilities, ensureCollections, ensureStandardIndexes, kbChunksCollection };
|
|
@@ -64,6 +64,15 @@ function ingestRunsCollection(db, prefix) {
|
|
|
64
64
|
function projectionRunsCollection(db, prefix) {
|
|
65
65
|
return col(db, prefix, "projection_runs");
|
|
66
66
|
}
|
|
67
|
+
function queryCacheCollection(db, prefix) {
|
|
68
|
+
return col(db, prefix, "query_cache");
|
|
69
|
+
}
|
|
70
|
+
function telemetryCollection(db, prefix) {
|
|
71
|
+
return col(db, prefix, "memory_telemetry");
|
|
72
|
+
}
|
|
73
|
+
function mutationsCollection(db, prefix) {
|
|
74
|
+
return col(db, prefix, "memory_mutations");
|
|
75
|
+
}
|
|
67
76
|
const KB_SCHEMA = { $jsonSchema: {
|
|
68
77
|
bsonType: "object",
|
|
69
78
|
required: [
|
|
@@ -416,6 +425,34 @@ const PROCEDURES_SCHEMA = { $jsonSchema: {
|
|
|
416
425
|
minimum: 0
|
|
417
426
|
},
|
|
418
427
|
lastUsedAt: { bsonType: "date" },
|
|
428
|
+
version: {
|
|
429
|
+
bsonType: "number",
|
|
430
|
+
minimum: 1,
|
|
431
|
+
description: "Current version number"
|
|
432
|
+
},
|
|
433
|
+
successCount: {
|
|
434
|
+
bsonType: "number",
|
|
435
|
+
minimum: 0
|
|
436
|
+
},
|
|
437
|
+
failCount: {
|
|
438
|
+
bsonType: "number",
|
|
439
|
+
minimum: 0
|
|
440
|
+
},
|
|
441
|
+
lastSuccessAt: { bsonType: "date" },
|
|
442
|
+
lastFailureAt: { bsonType: "date" },
|
|
443
|
+
evolutionHistory: {
|
|
444
|
+
bsonType: "array",
|
|
445
|
+
items: {
|
|
446
|
+
bsonType: "object",
|
|
447
|
+
properties: {
|
|
448
|
+
version: { bsonType: "number" },
|
|
449
|
+
changeType: { bsonType: "string" },
|
|
450
|
+
changeDescription: { bsonType: "string" },
|
|
451
|
+
timestamp: { bsonType: "date" }
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
description: "Capped at 20 entries via $push + $slice: -20"
|
|
455
|
+
},
|
|
419
456
|
createdAt: { bsonType: "date" },
|
|
420
457
|
updatedAt: { bsonType: "date" }
|
|
421
458
|
}
|
|
@@ -510,7 +547,15 @@ const CHUNKS_SCHEMA = { $jsonSchema: {
|
|
|
510
547
|
endLine: { bsonType: "number" },
|
|
511
548
|
embedding: { bsonType: "array" },
|
|
512
549
|
model: { bsonType: "string" },
|
|
513
|
-
updatedAt: { bsonType: "date" }
|
|
550
|
+
updatedAt: { bsonType: "date" },
|
|
551
|
+
status: {
|
|
552
|
+
enum: [
|
|
553
|
+
"active",
|
|
554
|
+
"archived",
|
|
555
|
+
"deleted"
|
|
556
|
+
],
|
|
557
|
+
description: "Lifecycle status (default: active)"
|
|
558
|
+
}
|
|
514
559
|
}
|
|
515
560
|
} };
|
|
516
561
|
const RELEVANCE_RUNS_SCHEMA = { $jsonSchema: {
|
|
@@ -729,6 +774,14 @@ const VALIDATED_COLLECTIONS = {
|
|
|
729
774
|
bsonType: "number",
|
|
730
775
|
minimum: 0,
|
|
731
776
|
maximum: 1
|
|
777
|
+
},
|
|
778
|
+
extractedAt: {
|
|
779
|
+
bsonType: "date",
|
|
780
|
+
description: "When this entity was extracted"
|
|
781
|
+
},
|
|
782
|
+
sourceRole: {
|
|
783
|
+
enum: ["user", "assistant"],
|
|
784
|
+
description: "Role of the event that produced this entity"
|
|
732
785
|
}
|
|
733
786
|
}
|
|
734
787
|
} },
|
|
@@ -859,6 +912,14 @@ const VALIDATED_COLLECTIONS = {
|
|
|
859
912
|
tags: {
|
|
860
913
|
bsonType: "array",
|
|
861
914
|
items: { bsonType: "string" }
|
|
915
|
+
},
|
|
916
|
+
status: {
|
|
917
|
+
enum: [
|
|
918
|
+
"active",
|
|
919
|
+
"archived",
|
|
920
|
+
"deleted"
|
|
921
|
+
],
|
|
922
|
+
description: "Lifecycle status (default: active)"
|
|
862
923
|
}
|
|
863
924
|
}
|
|
864
925
|
} },
|
|
@@ -923,6 +984,123 @@ const VALIDATED_COLLECTIONS = {
|
|
|
923
984
|
durationMs: { bsonType: "number" },
|
|
924
985
|
ts: { bsonType: "date" }
|
|
925
986
|
}
|
|
987
|
+
} },
|
|
988
|
+
query_cache: { $jsonSchema: {
|
|
989
|
+
bsonType: "object",
|
|
990
|
+
required: [
|
|
991
|
+
"queryHash",
|
|
992
|
+
"queryNorm",
|
|
993
|
+
"agentId",
|
|
994
|
+
"scope",
|
|
995
|
+
"scopeRef",
|
|
996
|
+
"results",
|
|
997
|
+
"pathUsed",
|
|
998
|
+
"sourceScope",
|
|
999
|
+
"createdAt",
|
|
1000
|
+
"expiresAt",
|
|
1001
|
+
"hitCount",
|
|
1002
|
+
"lastHitAt"
|
|
1003
|
+
],
|
|
1004
|
+
properties: {
|
|
1005
|
+
queryHash: {
|
|
1006
|
+
bsonType: "string",
|
|
1007
|
+
description: "SHA-256 of normalized query"
|
|
1008
|
+
},
|
|
1009
|
+
queryNorm: {
|
|
1010
|
+
bsonType: "string",
|
|
1011
|
+
description: "Normalized query text (autoEmbed source)"
|
|
1012
|
+
},
|
|
1013
|
+
agentId: {
|
|
1014
|
+
bsonType: "string",
|
|
1015
|
+
description: "Agent that generated this cache entry"
|
|
1016
|
+
},
|
|
1017
|
+
scope: {
|
|
1018
|
+
enum: SCOPE_ENUM,
|
|
1019
|
+
description: "Memory scope"
|
|
1020
|
+
},
|
|
1021
|
+
scopeRef: {
|
|
1022
|
+
bsonType: "string",
|
|
1023
|
+
description: "Resolved scope namespace"
|
|
1024
|
+
},
|
|
1025
|
+
results: {
|
|
1026
|
+
bsonType: "array",
|
|
1027
|
+
description: "Cached MemorySearchResult[]"
|
|
1028
|
+
},
|
|
1029
|
+
pathUsed: {
|
|
1030
|
+
bsonType: "string",
|
|
1031
|
+
description: "Retrieval path that produced results"
|
|
1032
|
+
},
|
|
1033
|
+
sourceScope: {
|
|
1034
|
+
bsonType: "string",
|
|
1035
|
+
description: "Source scope for cache partitioning"
|
|
1036
|
+
},
|
|
1037
|
+
createdAt: { bsonType: "date" },
|
|
1038
|
+
expiresAt: {
|
|
1039
|
+
bsonType: "date",
|
|
1040
|
+
description: "Per-document TTL expiry"
|
|
1041
|
+
},
|
|
1042
|
+
hitCount: {
|
|
1043
|
+
bsonType: "number",
|
|
1044
|
+
minimum: 0
|
|
1045
|
+
},
|
|
1046
|
+
lastHitAt: { bsonType: "date" }
|
|
1047
|
+
}
|
|
1048
|
+
} },
|
|
1049
|
+
memory_mutations: { $jsonSchema: {
|
|
1050
|
+
bsonType: "object",
|
|
1051
|
+
required: [
|
|
1052
|
+
"mutationId",
|
|
1053
|
+
"collectionName",
|
|
1054
|
+
"documentId",
|
|
1055
|
+
"operation",
|
|
1056
|
+
"agentId",
|
|
1057
|
+
"timestamp"
|
|
1058
|
+
],
|
|
1059
|
+
properties: {
|
|
1060
|
+
mutationId: {
|
|
1061
|
+
bsonType: "string",
|
|
1062
|
+
description: "Unique mutation identifier"
|
|
1063
|
+
},
|
|
1064
|
+
collectionName: {
|
|
1065
|
+
bsonType: "string",
|
|
1066
|
+
description: "Target collection (structured_mem, entities, relations, procedures)"
|
|
1067
|
+
},
|
|
1068
|
+
documentId: {
|
|
1069
|
+
bsonType: "string",
|
|
1070
|
+
description: "_id or entityId of the modified document"
|
|
1071
|
+
},
|
|
1072
|
+
operation: {
|
|
1073
|
+
enum: [
|
|
1074
|
+
"create",
|
|
1075
|
+
"update",
|
|
1076
|
+
"delete"
|
|
1077
|
+
],
|
|
1078
|
+
description: "Mutation operation type"
|
|
1079
|
+
},
|
|
1080
|
+
agentId: {
|
|
1081
|
+
bsonType: "string",
|
|
1082
|
+
description: "Agent that performed the mutation"
|
|
1083
|
+
},
|
|
1084
|
+
oldValue: { description: "Document state before mutation (null for creates)" },
|
|
1085
|
+
newValue: { description: "Document state after mutation (null for deletes)" },
|
|
1086
|
+
changedFields: {
|
|
1087
|
+
bsonType: "array",
|
|
1088
|
+
items: { bsonType: "string" },
|
|
1089
|
+
description: "Field names that changed (for updates)"
|
|
1090
|
+
},
|
|
1091
|
+
timestamp: {
|
|
1092
|
+
bsonType: "date",
|
|
1093
|
+
description: "When the mutation occurred"
|
|
1094
|
+
},
|
|
1095
|
+
actorRole: {
|
|
1096
|
+
enum: [
|
|
1097
|
+
"user",
|
|
1098
|
+
"assistant",
|
|
1099
|
+
"system"
|
|
1100
|
+
],
|
|
1101
|
+
description: "Role of the actor that triggered the mutation"
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
926
1104
|
} }
|
|
927
1105
|
};
|
|
928
1106
|
async function ensureCollections(db, prefix) {
|
|
@@ -947,7 +1125,9 @@ async function ensureCollections(db, prefix) {
|
|
|
947
1125
|
"entity_links",
|
|
948
1126
|
"episodes",
|
|
949
1127
|
"ingest_runs",
|
|
950
|
-
"projection_runs"
|
|
1128
|
+
"projection_runs",
|
|
1129
|
+
"query_cache",
|
|
1130
|
+
"memory_mutations"
|
|
951
1131
|
].map((n) => `${prefix}${n}`);
|
|
952
1132
|
for (const name of needed) if (!existing.has(name)) {
|
|
953
1133
|
const validator = VALIDATED_COLLECTIONS[name.slice(prefix.length)];
|
|
@@ -959,6 +1139,21 @@ async function ensureCollections(db, prefix) {
|
|
|
959
1139
|
else await db.createCollection(name);
|
|
960
1140
|
log.info(`created collection ${name}`);
|
|
961
1141
|
}
|
|
1142
|
+
const telemetryName = `${prefix}memory_telemetry`;
|
|
1143
|
+
if (!existing.has(telemetryName)) try {
|
|
1144
|
+
await db.createCollection(telemetryName, {
|
|
1145
|
+
timeseries: {
|
|
1146
|
+
timeField: "ts",
|
|
1147
|
+
metaField: "meta",
|
|
1148
|
+
granularity: "seconds"
|
|
1149
|
+
},
|
|
1150
|
+
expireAfterSeconds: 604800
|
|
1151
|
+
});
|
|
1152
|
+
log.info(`created time series collection ${telemetryName}`);
|
|
1153
|
+
} catch (err) {
|
|
1154
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
1155
|
+
if (!msg.includes("already exists") && !msg.includes("Collection already exists")) log.warn(`time series collection creation failed: ${msg}`);
|
|
1156
|
+
}
|
|
962
1157
|
await ensureSchemaValidation(db, prefix);
|
|
963
1158
|
}
|
|
964
1159
|
/**
|
|
@@ -1265,6 +1460,13 @@ async function ensureStandardIndexes(db, prefix, ttlOpts) {
|
|
|
1265
1460
|
scopeRef: 1
|
|
1266
1461
|
}, { name: "idx_relations_agent_scope_scoperef" });
|
|
1267
1462
|
applied++;
|
|
1463
|
+
await relations.createIndex({
|
|
1464
|
+
toEntityId: 1,
|
|
1465
|
+
agentId: 1,
|
|
1466
|
+
scope: 1,
|
|
1467
|
+
scopeRef: 1
|
|
1468
|
+
}, { name: "idx_relations_to_entity_scope" });
|
|
1469
|
+
applied++;
|
|
1268
1470
|
const entityLinks = entityLinksCollection(db, prefix);
|
|
1269
1471
|
await entityLinks.createIndex({
|
|
1270
1472
|
agentId: 1,
|
|
@@ -1372,6 +1574,61 @@ async function ensureStandardIndexes(db, prefix, ttlOpts) {
|
|
|
1372
1574
|
revision: -1
|
|
1373
1575
|
}, { name: "idx_procedure_revisions_identity_revision" });
|
|
1374
1576
|
applied++;
|
|
1577
|
+
const queryCache = queryCacheCollection(db, prefix);
|
|
1578
|
+
await queryCache.createIndex({
|
|
1579
|
+
queryHash: 1,
|
|
1580
|
+
agentId: 1,
|
|
1581
|
+
scope: 1,
|
|
1582
|
+
scopeRef: 1
|
|
1583
|
+
}, {
|
|
1584
|
+
name: "uq_query_cache_hash_agent_scope_scoperef",
|
|
1585
|
+
unique: true
|
|
1586
|
+
});
|
|
1587
|
+
applied++;
|
|
1588
|
+
await queryCache.createIndex({ expiresAt: 1 }, {
|
|
1589
|
+
name: "idx_query_cache_ttl",
|
|
1590
|
+
expireAfterSeconds: 0
|
|
1591
|
+
});
|
|
1592
|
+
applied++;
|
|
1593
|
+
await queryCache.createIndex({
|
|
1594
|
+
agentId: 1,
|
|
1595
|
+
hitCount: -1
|
|
1596
|
+
}, { name: "idx_query_cache_agent_hitcount" });
|
|
1597
|
+
applied++;
|
|
1598
|
+
const telemetry = telemetryCollection(db, prefix);
|
|
1599
|
+
try {
|
|
1600
|
+
await telemetry.createIndex({
|
|
1601
|
+
"meta.agentId": 1,
|
|
1602
|
+
ts: -1
|
|
1603
|
+
}, { name: "idx_telemetry_agent_ts" });
|
|
1604
|
+
applied++;
|
|
1605
|
+
await telemetry.createIndex({
|
|
1606
|
+
"meta.operation": 1,
|
|
1607
|
+
ts: -1
|
|
1608
|
+
}, { name: "idx_telemetry_op_ts" });
|
|
1609
|
+
applied++;
|
|
1610
|
+
} catch (err) {
|
|
1611
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
1612
|
+
log.warn(`telemetry index creation skipped: ${msg}`);
|
|
1613
|
+
}
|
|
1614
|
+
const mutations = mutationsCollection(db, prefix);
|
|
1615
|
+
await mutations.createIndex({
|
|
1616
|
+
agentId: 1,
|
|
1617
|
+
collectionName: 1,
|
|
1618
|
+
timestamp: -1
|
|
1619
|
+
}, { name: "idx_mutations_agent_collection_ts" });
|
|
1620
|
+
applied++;
|
|
1621
|
+
await mutations.createIndex({ timestamp: 1 }, {
|
|
1622
|
+
name: "idx_mutations_ttl",
|
|
1623
|
+
expireAfterSeconds: 7776e3
|
|
1624
|
+
});
|
|
1625
|
+
applied++;
|
|
1626
|
+
await mutations.createIndex({
|
|
1627
|
+
documentId: 1,
|
|
1628
|
+
collectionName: 1,
|
|
1629
|
+
timestamp: -1
|
|
1630
|
+
}, { name: "idx_mutations_doc_collection_ts" });
|
|
1631
|
+
applied++;
|
|
1375
1632
|
log.info(`ensured ${applied} standard indexes`);
|
|
1376
1633
|
return applied;
|
|
1377
1634
|
}
|
|
@@ -1386,7 +1643,7 @@ function hasServerVersionAtLeast(versionArray, minimumMajor, minimumMinor) {
|
|
|
1386
1643
|
return major > minimumMajor || major === minimumMajor && minor >= minimumMinor;
|
|
1387
1644
|
}
|
|
1388
1645
|
async function ensureSearchIndexes(db, prefix, profile, embeddingMode, quantization = "none", numDimensions = 1024) {
|
|
1389
|
-
const budget = assertIndexBudget(profile,
|
|
1646
|
+
const budget = assertIndexBudget(profile, 9);
|
|
1390
1647
|
const reducedBudget = !budget.withinBudget && typeof budget.budget === "number" && budget.budget >= 2;
|
|
1391
1648
|
if (!budget.withinBudget && !reducedBudget) {
|
|
1392
1649
|
log.warn(`search index budget exceeded: planned=${budget.plannedSearchIndexes} budget=${budget.budget} profile=${profile}`);
|
|
@@ -1711,6 +1968,43 @@ async function ensureSearchIndexes(db, prefix, profile, embeddingMode, quantizat
|
|
|
1711
1968
|
}
|
|
1712
1969
|
if (!msg.includes("already exists") && !msg.includes("duplicate")) log.warn(`procedures vector search index creation failed: ${msg}`);
|
|
1713
1970
|
}
|
|
1971
|
+
const queryCache = queryCacheCollection(db, prefix);
|
|
1972
|
+
try {
|
|
1973
|
+
await queryCache.createSearchIndex({
|
|
1974
|
+
name: `${prefix}query_cache_vector`,
|
|
1975
|
+
type: "vectorSearch",
|
|
1976
|
+
definition: { fields: [
|
|
1977
|
+
{
|
|
1978
|
+
type: "autoEmbed",
|
|
1979
|
+
modality: "text",
|
|
1980
|
+
path: "queryNorm",
|
|
1981
|
+
model: "voyage-4-large"
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
type: "filter",
|
|
1985
|
+
path: "agentId"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
type: "filter",
|
|
1989
|
+
path: "scope"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
type: "filter",
|
|
1993
|
+
path: "scopeRef"
|
|
1994
|
+
}
|
|
1995
|
+
] }
|
|
1996
|
+
});
|
|
1997
|
+
} catch (err) {
|
|
1998
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
1999
|
+
if (isSearchIndexManagementUnavailable(msg)) {
|
|
2000
|
+
log.warn(`search index management unavailable: ${msg}`);
|
|
2001
|
+
return {
|
|
2002
|
+
text: textCreated,
|
|
2003
|
+
vector: vectorCreated
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
if (!msg.includes("already exists") && !msg.includes("duplicate")) log.warn(`query_cache vector search index creation failed: ${msg}`);
|
|
2007
|
+
}
|
|
1714
2008
|
return {
|
|
1715
2009
|
text: textCreated,
|
|
1716
2010
|
vector: vectorCreated
|
|
@@ -1780,4 +2074,4 @@ async function detectCapabilities(db, probeCollectionName) {
|
|
|
1780
2074
|
return result;
|
|
1781
2075
|
}
|
|
1782
2076
|
//#endregion
|
|
1783
|
-
export {
|
|
2077
|
+
export { relationsCollection as C, structuredMemCollection as D, relevanceRunsCollection as E, structuredMemRevisionsCollection as O, queryCacheCollection as S, relevanceRegressionsCollection as T, metaCollection as _, ensureCollections as a, proceduresCollection as b, ensureStandardIndexes as c, episodesCollection as d, eventsCollection as f, kbCollection as g, kbChunksCollection as h, embeddingCacheCollection as i, telemetryCollection as k, entitiesCollection as l, ingestRunsCollection as m, chunksCollection as n, ensureSchemaValidation as o, filesCollection as p, detectCapabilities as r, ensureSearchIndexes as s, assertIndexBudget as t, entityLinksCollection as u, mutationsCollection as v, relevanceArtifactsCollection as w, projectionRunsCollection as x, procedureRevisionsCollection as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-VzQeL-96.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as relevanceRunsCollection, T as relevanceRegressionsCollection, w as relevanceArtifactsCollection } from "./mongodb-schema-Dt6jxcPL.js";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/memory/mongodb-relevance.ts
|
|
@@ -971,4 +971,4 @@ async function mongoSearch(collection, query, queryVector, opts) {
|
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
//#endregion
|
|
974
|
-
export { normalizeSearchResults as a, splitAtlasSearchFilter as i, buildVectorSearchStage as n,
|
|
974
|
+
export { normalizeSearchResults as a, summarizeExplain as c, splitAtlasSearchFilter as i, buildVectorSearchStage as n, rrfScore as o, mongoSearch as r, MongoDBRelevanceRuntime as s, MONGODB_MAX_NUM_CANDIDATES as t };
|
package/dist/{mongodb-structured-memory-DnwUJ6SA.js → mongodb-structured-memory-D-3SEfTu.js}
RENAMED
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-VzQeL-96.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as structuredMemCollection, O as structuredMemRevisionsCollection, v as mutationsCollection } from "./mongodb-schema-Dt6jxcPL.js";
|
|
3
3
|
import { t as resolveScopeRef } from "./mongodb-scope-0bwP6Q3D.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as summarizeExplain, n as buildVectorSearchStage, t as MONGODB_MAX_NUM_CANDIDATES } from "./mongodb-search-DMsUyfpa.js";
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
//#region src/memory/mongodb-mutations.ts
|
|
7
|
+
const log$1 = createSubsystemLogger("memory:mongodb:mutations");
|
|
8
|
+
/**
|
|
9
|
+
* Insert an audit record into the memory_mutations collection.
|
|
10
|
+
* Fire-and-forget safe: callers can use Promise.allSettled to avoid blocking.
|
|
11
|
+
*/
|
|
12
|
+
async function recordMutation(params) {
|
|
13
|
+
const { db, prefix, mutation } = params;
|
|
14
|
+
const mutationId = randomUUID();
|
|
15
|
+
const doc = {
|
|
16
|
+
...mutation,
|
|
17
|
+
mutationId,
|
|
18
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
19
|
+
};
|
|
20
|
+
try {
|
|
21
|
+
await mutationsCollection(db, prefix).insertOne(doc);
|
|
22
|
+
return { mutationId };
|
|
23
|
+
} catch (err) {
|
|
24
|
+
log$1.warn("recordMutation failed", {
|
|
25
|
+
mutationId,
|
|
26
|
+
error: err
|
|
27
|
+
});
|
|
28
|
+
throw err;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
5
32
|
//#region src/memory/mongodb-structured-memory.ts
|
|
6
33
|
const log = createSubsystemLogger("memory:mongodb:structured");
|
|
34
|
+
function computeChangedFields(oldDoc, newDoc) {
|
|
35
|
+
const fields = /* @__PURE__ */ new Set();
|
|
36
|
+
const allKeys = new Set([...Object.keys(oldDoc), ...Object.keys(newDoc)]);
|
|
37
|
+
for (const key of allKeys) {
|
|
38
|
+
if (key === "_id" || key === "updatedAt" || key === "createdAt") continue;
|
|
39
|
+
if (JSON.stringify(oldDoc[key] ?? null) !== JSON.stringify(newDoc[key] ?? null)) fields.add(key);
|
|
40
|
+
}
|
|
41
|
+
return Array.from(fields);
|
|
42
|
+
}
|
|
7
43
|
function arraysEqual(left, right) {
|
|
8
44
|
const a = left ?? [];
|
|
9
45
|
const b = right ?? [];
|
|
@@ -149,8 +185,10 @@ async function writeStructuredMemory(params) {
|
|
|
149
185
|
type: entry.type,
|
|
150
186
|
key: entry.key
|
|
151
187
|
};
|
|
188
|
+
let existingBeforeWrite = null;
|
|
152
189
|
const persist = async (session) => {
|
|
153
190
|
const existing = await collection.findOne(identityFilter, session ? { session } : void 0);
|
|
191
|
+
existingBeforeWrite = existing;
|
|
154
192
|
if (!existing) {
|
|
155
193
|
const result = await collection.updateOne(identityFilter, {
|
|
156
194
|
$set: {
|
|
@@ -248,6 +286,24 @@ async function writeStructuredMemory(params) {
|
|
|
248
286
|
}
|
|
249
287
|
})() : await persist();
|
|
250
288
|
log.info(`structured memory ${outcome.upserted ? "created" : "updated"}: type=${entry.type} key=${entry.key} revision=${outcome.revision}`);
|
|
289
|
+
const oldSnapshot = existingBeforeWrite;
|
|
290
|
+
const changedFields = oldSnapshot != null ? computeChangedFields(oldSnapshot, setDoc) : void 0;
|
|
291
|
+
Promise.allSettled([recordMutation({
|
|
292
|
+
db,
|
|
293
|
+
prefix,
|
|
294
|
+
mutation: {
|
|
295
|
+
collectionName: "structured_mem",
|
|
296
|
+
documentId: entry.key,
|
|
297
|
+
operation: oldSnapshot == null ? "create" : "update",
|
|
298
|
+
agentId: entry.agentId,
|
|
299
|
+
oldValue: oldSnapshot ?? null,
|
|
300
|
+
newValue: setDoc,
|
|
301
|
+
changedFields,
|
|
302
|
+
actorRole: "system"
|
|
303
|
+
}
|
|
304
|
+
})]).catch((err) => {
|
|
305
|
+
log.warn(`structured memory audit failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
306
|
+
});
|
|
251
307
|
return {
|
|
252
308
|
upserted: outcome.upserted,
|
|
253
309
|
id: outcome.id
|
package/dist/{mongodb-structured-memory-BySGexcm.js → mongodb-structured-memory-lpyyW0kn.js}
RENAMED
|
@@ -5,7 +5,7 @@ import "./theme-CdOoMzRk.js";
|
|
|
5
5
|
import "./globals-41sdSaKv.js";
|
|
6
6
|
import "./subsystem-VzQeL-96.js";
|
|
7
7
|
import "./ansi-BEJF8NKS.js";
|
|
8
|
-
import "./mongodb-schema-
|
|
9
|
-
import "./mongodb-
|
|
10
|
-
import
|
|
8
|
+
import "./mongodb-schema-Dt6jxcPL.js";
|
|
9
|
+
import { n as writeStructuredMemory } from "./mongodb-structured-memory-D-3SEfTu.js";
|
|
10
|
+
import "./mongodb-search-DMsUyfpa.js";
|
|
11
11
|
export { writeStructuredMemory };
|