@agenticmail/enterprise 0.5.324 → 0.5.326
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/dist/{agent-heartbeat-77N4OOQL.js → agent-heartbeat-ZFKA6GMI.js} +2 -2
- package/dist/{agent-tools-BNSTIK4P.js → agent-tools-R6RSBDJQ.js} +25 -25
- package/dist/{agenticmail-EDO5XOTP.js → agenticmail-QMWQNUY2.js} +1 -1
- package/dist/{browser-tool-JF3LNRGX.js → browser-tool-4KWE37RL.js} +4 -4
- package/dist/{chunk-JEGYVXYC.js → chunk-CQV7GGHT.js} +1 -1
- package/dist/{chunk-CQYLRIQ3.js → chunk-DWHJYAV6.js} +143 -26
- package/dist/{chunk-HKCKMCPY.js → chunk-G4YSECQ4.js} +2 -2
- package/dist/{chunk-DM7FTF7W.js → chunk-GNABVGDZ.js} +31 -32
- package/dist/{chunk-DMD24UFZ.js → chunk-HTT6LUPP.js} +19 -19
- package/dist/{chunk-3FMK32KQ.js → chunk-LHQP7QRX.js} +9 -9
- package/dist/{chunk-6C5PKREN.js → chunk-NOAQG5CY.js} +1 -1
- package/dist/{chunk-4EKXYIJF.js → chunk-PAHT4ABL.js} +4 -4
- package/dist/{chunk-JNMDD7JY.js → chunk-RHO7WRVJ.js} +5 -5
- package/dist/{chunk-BQM7MBPS.js → chunk-WYDVMFGJ.js} +5 -5
- package/dist/{chunk-TPLVQFXM.js → chunk-X2YL6KSY.js} +13 -13
- package/dist/{cli-agent-USMKX7WN.js → cli-agent-2NBPF3GN.js} +11 -11
- package/dist/{cli-recover-XEZ2SKPU.js → cli-recover-TTOR7CJR.js} +2 -2
- package/dist/{cli-serve-BDGOOOKQ.js → cli-serve-5VFU4GR4.js} +3 -3
- package/dist/{cli-verify-CZIITRED.js → cli-verify-WICBVLAM.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{connection-manager-KAWEUWUR.js → connection-manager-Y7CCQK4X.js} +1 -1
- package/dist/dashboard/docs/cluster.html +285 -0
- package/dist/dashboard/pages/cluster.js +400 -69
- package/dist/{deployer-3YK4RPUL.js → deployer-7NG7LCJW.js} +1 -1
- package/dist/{factory-JFWXTAWK.js → factory-4V2W4BSV.js} +1 -1
- package/dist/index.js +9 -9
- package/dist/{integrations-TF4EBCJ7.js → integrations-V2WXFDIV.js} +13 -13
- package/dist/{local-6MLIZDKO.js → local-OXFH4V7E.js} +2 -2
- package/dist/{meeting-voice-intelligence-CJLR52YV.js → meeting-voice-intelligence-RZZCAD6G.js} +2 -2
- package/dist/{meetings-FJ453ENF.js → meetings-SQNTB6GD.js} +1 -1
- package/dist/{microsoft-2IIHDLJB.js → microsoft-2PDVV6HX.js} +3 -3
- package/dist/{postgres-WGUVC2S7.js → postgres-USXBPTHX.js} +2 -2
- package/dist/{pw-ai-IBEF6HBF.js → pw-ai-NK5GKBDG.js} +1 -1
- package/dist/{routes-XYR2RNEC.js → routes-T3CDAQTD.js} +4 -4
- package/dist/{runtime-6BULDBR3.js → runtime-X4BTVICL.js} +1 -1
- package/dist/{server-7NT4LMSQ.js → server-WQ6LLYGB.js} +5 -5
- package/dist/{setup-2JBXMUDS.js → setup-6DRKSOMH.js} +2 -2
- package/dist/{skills-FR7I5V7H.js → skills-EL4RTJKK.js} +1 -1
- package/logs/cloudflared-error.log +14 -0
- package/logs/enterprise-out.log +2 -0
- package/package.json +1 -1
- package/src/admin/routes.ts +1 -1
- package/src/agent-tools/tool-resolver.ts +1 -1
- package/src/agent-tools/tools/agenticmail.ts +2 -2
- package/src/agent-tools/tools/browser.ts +1 -1
- package/src/agent-tools/tools/enterprise-code-sandbox.ts +1 -1
- package/src/agent-tools/tools/enterprise-diff.ts +1 -1
- package/src/agent-tools/tools/enterprise-http.ts +1 -3
- package/src/agent-tools/tools/enterprise-security-scan.ts +1 -1
- package/src/agent-tools/tools/google/forms.ts +2 -2
- package/src/agent-tools/tools/google/gmail.ts +1 -1
- package/src/agent-tools/tools/google/maps.ts +2 -2
- package/src/agent-tools/tools/google/meeting-voice.ts +1 -1
- package/src/agent-tools/tools/google/meetings.ts +1 -1
- package/src/agent-tools/tools/google/slides.ts +2 -2
- package/src/agent-tools/tools/grep.ts +1 -1
- package/src/agent-tools/tools/knowledge-search.ts +1 -1
- package/src/agent-tools/tools/local/coding.ts +5 -5
- package/src/agent-tools/tools/microsoft/excel-vba.ts +1 -1
- package/src/agent-tools/tools/microsoft/excel.ts +1 -1
- package/src/agent-tools/tools/microsoft/powerpoint.ts +1 -1
- package/src/agent-tools/tools/visual-memory/index.ts +11 -11
- package/src/agent-tools/tools/visual-memory/similarity.ts +2 -2
- package/src/agent-tools/tools/visual-memory/storage.ts +1 -1
- package/src/agenticmail/providers/imap.ts +2 -2
- package/src/browser/enterprise-compat.ts +1 -1
- package/src/cli-agent.ts +3 -3
- package/src/cli-serve.ts +1 -1
- package/src/dashboard/docs/cluster.html +285 -0
- package/src/dashboard/pages/cluster.js +400 -69
- package/src/database-access/connection-manager.ts +6 -6
- package/src/database-access/routes.ts +0 -1
- package/src/db/dynamodb.ts +1 -1
- package/src/db/postgres.ts +2 -2
- package/src/deploy/fly.ts +4 -4
- package/src/deploy/managed.ts +0 -1
- package/src/engine/agent-config.ts +1 -1
- package/src/engine/agent-heartbeat.ts +1 -1
- package/src/engine/agent-hierarchy.ts +1 -1
- package/src/engine/agent-memory.ts +1 -1
- package/src/engine/agent-routes.ts +2 -2
- package/src/engine/chat-poller.ts +1 -1
- package/src/engine/cluster.ts +14 -1
- package/src/engine/community-registry.ts +2 -2
- package/src/engine/db-adapter.ts +0 -1
- package/src/engine/deployer.ts +8 -8
- package/src/engine/email-poller.ts +1 -1
- package/src/engine/knowledge-contribution.ts +1 -1
- package/src/engine/knowledge-import/import-manager.ts +2 -3
- package/src/engine/knowledge-import/processors/extract-github.ts +1 -1
- package/src/engine/knowledge-import/processors/extract-sharepoint.ts +1 -1
- package/src/engine/knowledge-import/processors/validate.ts +1 -1
- package/src/engine/lifecycle.ts +1 -1
- package/src/engine/meeting-monitor.ts +2 -2
- package/src/engine/meeting-voice-intelligence.ts +3 -3
- package/src/engine/messaging-poller.ts +2 -2
- package/src/engine/org-integration-routes.ts +2 -2
- package/src/engine/org-integrations.ts +1 -1
- package/src/engine/routes.ts +119 -1
- package/src/engine/skills.ts +1 -1
- package/src/engine/tool-catalog.ts +1 -1
- package/src/engine/vault-routes.ts +1 -1
- package/src/engine/vault.ts +1 -1
- package/src/mcp/adapters/adp.adapter.ts +1 -1
- package/src/mcp/adapters/auth0.adapter.ts +1 -1
- package/src/mcp/adapters/clickup.adapter.ts +1 -1
- package/src/mcp/adapters/close.adapter.ts +1 -1
- package/src/mcp/adapters/firebase.adapter.ts +1 -1
- package/src/mcp/adapters/google-ads.adapter.ts +1 -1
- package/src/mcp/adapters/kubernetes.adapter.ts +1 -1
- package/src/mcp/adapters/mixpanel.adapter.ts +1 -1
- package/src/mcp/adapters/recurly.adapter.ts +1 -1
- package/src/mcp/adapters/sap.adapter.ts +2 -2
- package/src/mcp/adapters/shortcut.adapter.ts +1 -1
- package/src/mcp/adapters/snowflake.adapter.ts +1 -1
- package/src/mcp/adapters/stripe.adapter.ts +1 -1
- package/src/mcp/adapters/supabase.adapter.ts +1 -1
- package/src/mcp/adapters/zuora.adapter.ts +1 -1
- package/src/middleware/request-limits.ts +1 -1
- package/src/runtime/agent-loop.ts +3 -3
- package/src/runtime/compaction.ts +2 -2
- package/src/runtime/followup.ts +1 -1
- package/src/runtime/hooks.ts +3 -3
- package/src/runtime/index.ts +5 -6
- package/src/runtime/llm-client.ts +1 -1
- package/src/runtime/subagent.ts +0 -1
- package/src/runtime/types.ts +2 -0
- package/src/security/brute-force.ts +1 -1
- package/src/security/csp.ts +1 -1
- package/src/security/index.ts +3 -3
- package/src/security/input-sanitizer.ts +1 -1
- package/src/security/threat-logger.ts +2 -2
- package/src/server.ts +2 -2
- package/src/setup/database.ts +1 -1
- package/src/setup/index.ts +1 -2
- package/src/setup/provision.ts +1 -1
- package/dist/_seed-data-FQR5PY2W.js +0 -4554
- package/dist/agent-heartbeat-3FWNHZFX.js +0 -510
- package/dist/agent-heartbeat-4RWHZR7H.js +0 -510
- package/dist/agent-heartbeat-6ZGB5ILY.js +0 -510
- package/dist/agent-heartbeat-BBINFNL4.js +0 -510
- package/dist/agent-heartbeat-BIVHLKFM.js +0 -510
- package/dist/agent-heartbeat-HGVIAHS5.js +0 -510
- package/dist/agent-heartbeat-HRKVFK2T.js +0 -510
- package/dist/agent-heartbeat-JC5GWVXD.js +0 -510
- package/dist/agent-heartbeat-K6A4HMHB.js +0 -510
- package/dist/agent-heartbeat-LCDXWFVB.js +0 -510
- package/dist/agent-heartbeat-P7HZCZAQ.js +0 -510
- package/dist/agent-heartbeat-PUIRSNIO.js +0 -510
- package/dist/agent-heartbeat-SN5ILQ6Y.js +0 -510
- package/dist/agent-heartbeat-TW5YTDYC.js +0 -510
- package/dist/agent-heartbeat-YCSWP54H.js +0 -510
- package/dist/agent-heartbeat-Z2QQXROL.js +0 -510
- package/dist/agent-tools-3W7XLUYA.js +0 -13949
- package/dist/agent-tools-54VZGT6L.js +0 -9
- package/dist/agent-tools-AYYDPO27.js +0 -13949
- package/dist/agent-tools-F2X47FKF.js +0 -13949
- package/dist/agent-tools-O6W3QAZL.js +0 -13949
- package/dist/agent-tools-OAWVZBMW.js +0 -9
- package/dist/agent-tools-QCCU74PN.js +0 -13949
- package/dist/agent-tools-QGE26U6R.js +0 -9
- package/dist/chunk-2LHUARN6.js +0 -4929
- package/dist/chunk-2WVCNCYC.js +0 -5087
- package/dist/chunk-3FM6YQUK.js +0 -5087
- package/dist/chunk-46GOWZT4.js +0 -5087
- package/dist/chunk-5KYJAUZV.js +0 -1519
- package/dist/chunk-6ZMLNEHB.js +0 -1519
- package/dist/chunk-7HBGXW7Z.js +0 -4929
- package/dist/chunk-7UCKD25B.js +0 -551
- package/dist/chunk-BDCFOP7O.js +0 -537
- package/dist/chunk-BPZQT5N5.js +0 -25652
- package/dist/chunk-C52OQNNY.js +0 -5087
- package/dist/chunk-C7HGQF4Y.js +0 -25652
- package/dist/chunk-CAHNZGGK.js +0 -25656
- package/dist/chunk-CK7R6UHE.js +0 -4945
- package/dist/chunk-D36RPWB7.js +0 -25652
- package/dist/chunk-DJK2UPFH.js +0 -4891
- package/dist/chunk-DXZGPUAF.js +0 -5087
- package/dist/chunk-F46WB5IL.js +0 -5087
- package/dist/chunk-F5QG5SQH.js +0 -5087
- package/dist/chunk-GYB2WHMN.js +0 -5101
- package/dist/chunk-H7GP733U.js +0 -5087
- package/dist/chunk-HHBXWB5U.js +0 -25640
- package/dist/chunk-HS5YWSGM.js +0 -3206
- package/dist/chunk-IMXS4N6W.js +0 -1519
- package/dist/chunk-JTV5LA47.js +0 -1519
- package/dist/chunk-KN3T3CTD.js +0 -4929
- package/dist/chunk-KV6G7NZX.js +0 -1519
- package/dist/chunk-M6ZIC5H3.js +0 -1370
- package/dist/chunk-MU5MEBIK.js +0 -1519
- package/dist/chunk-NLT5MC7X.js +0 -465
- package/dist/chunk-NVLYIM4J.js +0 -4945
- package/dist/chunk-NZY2BIZH.js +0 -4891
- package/dist/chunk-O42L6G67.js +0 -1519
- package/dist/chunk-OCNERGGM.js +0 -4891
- package/dist/chunk-OJSNHONE.js +0 -1519
- package/dist/chunk-OWTLNV4Q.js +0 -25623
- package/dist/chunk-PCNYEP6T.js +0 -4891
- package/dist/chunk-PI4AQ4Z6.js +0 -25652
- package/dist/chunk-PN3EGTCA.js +0 -194
- package/dist/chunk-PWWV2U5P.js +0 -195
- package/dist/chunk-Q37UKNRC.js +0 -1519
- package/dist/chunk-QXTC6J7H.js +0 -5087
- package/dist/chunk-RF2LGX3E.js +0 -1519
- package/dist/chunk-RH7KPWRQ.js +0 -465
- package/dist/chunk-RKERL5LZ.js +0 -4925
- package/dist/chunk-RVBK2IOX.js +0 -25652
- package/dist/chunk-SAKODCZ5.js +0 -4891
- package/dist/chunk-SALGFC5L.js +0 -4945
- package/dist/chunk-STGWZ2MS.js +0 -1519
- package/dist/chunk-SVSLIQYN.js +0 -1519
- package/dist/chunk-UY3ZVQDP.js +0 -25652
- package/dist/chunk-V6OSD62M.js +0 -5087
- package/dist/chunk-VP6YAHX4.js +0 -1519
- package/dist/chunk-WDYJOEAI.js +0 -5087
- package/dist/chunk-WEAFQNOS.js +0 -195
- package/dist/chunk-XKUSAZGP.js +0 -5087
- package/dist/chunk-YCWOCIPH.js +0 -5101
- package/dist/chunk-ZGE3XAXY.js +0 -1519
- package/dist/cli-agent-33GWIF2D.js +0 -2300
- package/dist/cli-agent-4XK6LVQQ.js +0 -2357
- package/dist/cli-agent-64EOV3ST.js +0 -2300
- package/dist/cli-agent-67WP6KKO.js +0 -2300
- package/dist/cli-agent-7RW5Y7C4.js +0 -2294
- package/dist/cli-agent-7TB2BWS6.js +0 -2370
- package/dist/cli-agent-AKXFFST2.js +0 -2370
- package/dist/cli-agent-C3YSECO4.js +0 -2344
- package/dist/cli-agent-DZTKLITB.js +0 -2357
- package/dist/cli-agent-FNMDJN7T.js +0 -2357
- package/dist/cli-agent-FOF7PFEP.js +0 -2357
- package/dist/cli-agent-FXZ6DJKP.js +0 -2357
- package/dist/cli-agent-H74M2ZYN.js +0 -2357
- package/dist/cli-agent-HG4Y657I.js +0 -2300
- package/dist/cli-agent-HORWVPHB.js +0 -2370
- package/dist/cli-agent-HSZT6SKF.js +0 -2423
- package/dist/cli-agent-ION2W5JF.js +0 -2441
- package/dist/cli-agent-JLUQ4ZU6.js +0 -2424
- package/dist/cli-agent-KBPWY3CB.js +0 -2302
- package/dist/cli-agent-MVCDH4HV.js +0 -2370
- package/dist/cli-agent-NZXOEPJ2.js +0 -2357
- package/dist/cli-agent-OO6H57UQ.js +0 -2300
- package/dist/cli-agent-PADN3QRC.js +0 -2357
- package/dist/cli-agent-QAYEX3BE.js +0 -2441
- package/dist/cli-agent-QT64DT5J.js +0 -2370
- package/dist/cli-agent-TCTRKCHN.js +0 -2300
- package/dist/cli-agent-TFL2M6UK.js +0 -2424
- package/dist/cli-agent-TSOJG7EX.js +0 -2357
- package/dist/cli-agent-UIKXATTD.js +0 -2357
- package/dist/cli-agent-UJN6FYTO.js +0 -2370
- package/dist/cli-agent-VIQAYVY4.js +0 -2357
- package/dist/cli-agent-WNWFVOFM.js +0 -2370
- package/dist/cli-agent-XBQX67VJ.js +0 -2423
- package/dist/cli-agent-ZLSC6FF4.js +0 -2357
- package/dist/cli-agent-ZSHUPBBN.js +0 -2357
- package/dist/cli-recover-T32NABFA.js +0 -487
- package/dist/cli-serve-2IL5DTEY.js +0 -153
- package/dist/cli-serve-3NGBX5ER.js +0 -140
- package/dist/cli-serve-47N5UKKW.js +0 -153
- package/dist/cli-serve-4RS4UDHC.js +0 -140
- package/dist/cli-serve-4XGZFUV2.js +0 -140
- package/dist/cli-serve-53FVANQK.js +0 -260
- package/dist/cli-serve-57225XWV.js +0 -140
- package/dist/cli-serve-63BDPSOP.js +0 -140
- package/dist/cli-serve-657NRUOX.js +0 -140
- package/dist/cli-serve-6ER7QMLR.js +0 -140
- package/dist/cli-serve-6OT3UEAN.js +0 -140
- package/dist/cli-serve-7JQ4FVUQ.js +0 -260
- package/dist/cli-serve-7L6EY5UH.js +0 -153
- package/dist/cli-serve-BFNIW2LF.js +0 -153
- package/dist/cli-serve-C7MN6U5Q.js +0 -153
- package/dist/cli-serve-CQFI3LMK.js +0 -140
- package/dist/cli-serve-CR3OY3IM.js +0 -153
- package/dist/cli-serve-DAJFRWQ7.js +0 -153
- package/dist/cli-serve-DTQLN5UI.js +0 -140
- package/dist/cli-serve-EQS2SGT3.js +0 -140
- package/dist/cli-serve-FW6FHFW4.js +0 -153
- package/dist/cli-serve-GEEOQS77.js +0 -153
- package/dist/cli-serve-H562I3ZK.js +0 -153
- package/dist/cli-serve-HDQZF4C4.js +0 -153
- package/dist/cli-serve-KBJNXWYJ.js +0 -140
- package/dist/cli-serve-LICAOMEB.js +0 -140
- package/dist/cli-serve-LLGYLWFS.js +0 -153
- package/dist/cli-serve-LMZKQ5GX.js +0 -140
- package/dist/cli-serve-LNTT73P2.js +0 -140
- package/dist/cli-serve-MQKBUZ7X.js +0 -140
- package/dist/cli-serve-N3OISDNB.js +0 -153
- package/dist/cli-serve-NBFT7B42.js +0 -140
- package/dist/cli-serve-RTWO3AWY.js +0 -140
- package/dist/cli-serve-SIHTSW5P.js +0 -140
- package/dist/cli-serve-SP6TEURE.js +0 -140
- package/dist/cli-serve-TDKZA6I5.js +0 -140
- package/dist/cli-serve-TF5ZVVXF.js +0 -140
- package/dist/cli-serve-TIZ27EVR.js +0 -153
- package/dist/cli-serve-TUNI2RCN.js +0 -153
- package/dist/cli-serve-WCU66CHX.js +0 -140
- package/dist/cli-serve-WNOZMAWD.js +0 -153
- package/dist/cli-serve-YCCKRRUY.js +0 -140
- package/dist/cli-serve-ZD5V7I6G.js +0 -140
- package/dist/cli-validate-6XDDLVVQ.js +0 -150
- package/dist/cli-verify-I4WGRQNT.js +0 -149
- package/dist/connection-manager-4ZA4XAFA.js +0 -9
- package/dist/db-adapter-IK2EDK2N.js +0 -7
- package/dist/db-adapter-IRHOUMVC.js +0 -7
- package/dist/dependency-manager-G6D2XXNY.js +0 -11
- package/dist/dependency-manager-OCUKF72T.js +0 -543
- package/dist/dependency-manager-YULUXN34.js +0 -511
- package/dist/factory-MQASIPEB.js +0 -11
- package/dist/google-W5AYGNUJ.js +0 -33
- package/dist/integrations-VWANOHQ4.js +0 -43830
- package/dist/local-O2FN57UN.js +0 -1128
- package/dist/local-S7SDOQHN.js +0 -1128
- package/dist/microsoft-HPLA5ZL5.js +0 -2414
- package/dist/microsoft-UFLZBEAC.js +0 -1619
- package/dist/microsoft-VREAZ7M2.js +0 -3955
- package/dist/microsoft-YUT6EIGP.js +0 -3400
- package/dist/postgres-BOTHOPDW.js +0 -875
- package/dist/routes-3MMLQTB6.js +0 -90
- package/dist/routes-4ZUIJ4HE.js +0 -90
- package/dist/routes-5MXHKKH4.js +0 -90
- package/dist/routes-64NJFK3B.js +0 -90
- package/dist/routes-6AKQ2LBV.js +0 -90
- package/dist/routes-CRRBUDO4.js +0 -90
- package/dist/routes-D7SMYOLT.js +0 -90
- package/dist/routes-DIAF3MC3.js +0 -90
- package/dist/routes-KMUNU6CY.js +0 -90
- package/dist/routes-LRRLXIZR.js +0 -90
- package/dist/routes-N647AJYG.js +0 -90
- package/dist/routes-SSSELAAR.js +0 -90
- package/dist/routes-STERVGKJ.js +0 -90
- package/dist/routes-TZMPYLHJ.js +0 -90
- package/dist/routes-XNK2MAVO.js +0 -90
- package/dist/routes-ZEZZACZP.js +0 -90
- package/dist/runtime-4UVCTFNQ.js +0 -45
- package/dist/runtime-5EQN4GFM.js +0 -45
- package/dist/runtime-5LP7PUD4.js +0 -45
- package/dist/runtime-6YEENDN3.js +0 -45
- package/dist/runtime-7LQFRG3B.js +0 -45
- package/dist/runtime-AMXJU2MB.js +0 -45
- package/dist/runtime-D6WSE7FG.js +0 -45
- package/dist/runtime-EYVN7NFJ.js +0 -45
- package/dist/runtime-F6RPWQVW.js +0 -45
- package/dist/runtime-FYMJURFC.js +0 -45
- package/dist/runtime-GGF4P55M.js +0 -45
- package/dist/runtime-H3SAMWWF.js +0 -45
- package/dist/runtime-H7T4I7I7.js +0 -45
- package/dist/runtime-HTIM7GZR.js +0 -45
- package/dist/runtime-JRNBL4O4.js +0 -45
- package/dist/runtime-K4C7NQLW.js +0 -45
- package/dist/runtime-MWWZCPC2.js +0 -45
- package/dist/runtime-N7CM2DYA.js +0 -45
- package/dist/runtime-OM2NIBMI.js +0 -45
- package/dist/runtime-OVGSOTAH.js +0 -45
- package/dist/runtime-QQ6LAY4U.js +0 -45
- package/dist/runtime-QWPVD7CY.js +0 -45
- package/dist/runtime-SX3B5MG3.js +0 -45
- package/dist/runtime-YLIIPTE4.js +0 -45
- package/dist/runtime-YU6P22CG.js +0 -45
- package/dist/runtime-ZOC337DD.js +0 -45
- package/dist/server-3AVWBRIF.js +0 -28
- package/dist/server-5BKJI5OW.js +0 -28
- package/dist/server-6NDO2S52.js +0 -28
- package/dist/server-7TD3M2BW.js +0 -28
- package/dist/server-AMCSXINC.js +0 -28
- package/dist/server-BEJ6RAGL.js +0 -28
- package/dist/server-BFPYDHBG.js +0 -28
- package/dist/server-BKEWXGVX.js +0 -28
- package/dist/server-BMEJZGFG.js +0 -28
- package/dist/server-CU6LVQS4.js +0 -28
- package/dist/server-DFR7FI3Q.js +0 -28
- package/dist/server-DFYGH2CV.js +0 -28
- package/dist/server-DURRN3GJ.js +0 -28
- package/dist/server-EELWOC3X.js +0 -28
- package/dist/server-EN5E2OWQ.js +0 -28
- package/dist/server-EXZC3OJO.js +0 -28
- package/dist/server-GW2HYJYI.js +0 -28
- package/dist/server-J25NCRWJ.js +0 -28
- package/dist/server-JDGNOTFV.js +0 -28
- package/dist/server-KA6U3YNP.js +0 -28
- package/dist/server-L52A2ME4.js +0 -28
- package/dist/server-NE5HD5DJ.js +0 -28
- package/dist/server-NLQAXPOG.js +0 -28
- package/dist/server-NQOT7W77.js +0 -28
- package/dist/server-OHHAA34U.js +0 -28
- package/dist/server-PWE5PQTR.js +0 -28
- package/dist/server-Q2Q32H2B.js +0 -28
- package/dist/server-Q77ME7TL.js +0 -28
- package/dist/server-QDKO6OVO.js +0 -28
- package/dist/server-RR6QJIXM.js +0 -28
- package/dist/server-T3R6BO6A.js +0 -28
- package/dist/server-TRIBAHDV.js +0 -28
- package/dist/server-TXV3ZVVR.js +0 -28
- package/dist/server-VHSFJP3I.js +0 -28
- package/dist/server-VOJF2XGU.js +0 -28
- package/dist/server-W76YHPEC.js +0 -28
- package/dist/server-WLLH4WST.js +0 -28
- package/dist/server-WTUJ2O3F.js +0 -28
- package/dist/server-X4CJTHHF.js +0 -28
- package/dist/server-XK3ILCJC.js +0 -28
- package/dist/server-ZRD3NDJE.js +0 -28
- package/dist/setup-2JYXGTW6.js +0 -20
- package/dist/setup-3XOSZEW5.js +0 -20
- package/dist/setup-44VBAO4J.js +0 -20
- package/dist/setup-4OA7QNJW.js +0 -20
- package/dist/setup-4ONNQBWB.js +0 -20
- package/dist/setup-4OSBXSCL.js +0 -20
- package/dist/setup-4QFGRBLZ.js +0 -20
- package/dist/setup-52US54Z4.js +0 -20
- package/dist/setup-5CY3CKKT.js +0 -20
- package/dist/setup-6766SGAR.js +0 -20
- package/dist/setup-6NUSB4XO.js +0 -20
- package/dist/setup-7FZJEOD4.js +0 -20
- package/dist/setup-7LYYXBUL.js +0 -20
- package/dist/setup-ADSKKBGV.js +0 -20
- package/dist/setup-AMV2WKVH.js +0 -20
- package/dist/setup-AYY24DKM.js +0 -20
- package/dist/setup-B34N4HPU.js +0 -20
- package/dist/setup-CEF4QY4L.js +0 -20
- package/dist/setup-E2YLC2EY.js +0 -20
- package/dist/setup-ER6NXTY5.js +0 -20
- package/dist/setup-FIOAQJ6C.js +0 -20
- package/dist/setup-G76S7X44.js +0 -20
- package/dist/setup-H2AGCBW5.js +0 -20
- package/dist/setup-H4JZUHH5.js +0 -20
- package/dist/setup-ICOZRKCX.js +0 -20
- package/dist/setup-JFTJH7UF.js +0 -20
- package/dist/setup-JJHOT2ZU.js +0 -20
- package/dist/setup-KEAM2BCL.js +0 -20
- package/dist/setup-LW4MLU2N.js +0 -20
- package/dist/setup-NHAZABW4.js +0 -20
- package/dist/setup-PRFNI6YW.js +0 -20
- package/dist/setup-RAHBMYHE.js +0 -20
- package/dist/setup-T6KYFR7O.js +0 -20
- package/dist/setup-TGM6L362.js +0 -20
- package/dist/setup-TNANAH7C.js +0 -20
- package/dist/setup-TXPR5UQX.js +0 -20
- package/dist/setup-UJSNSCLM.js +0 -20
- package/dist/setup-XCJMELVU.js +0 -20
- package/dist/setup-XIYEIFVK.js +0 -20
- package/dist/setup-XP2VGBEU.js +0 -20
- package/dist/setup-Z4PZSHBI.js +0 -20
- package/dist/skills-HCVBA6PK.js +0 -16
- package/dist/skills-HFSW74KZ.js +0 -16
- package/dist/system-prompts-6OUTAMH6.js +0 -41
- package/dist/task-queue-YP2I54IA.js +0 -9
- package/dist/transport-encryption-F2NQYACT.js +0 -25
- package/seed-data.mjs +0 -455
- package/src/agent-tools/tools/integrations/_seed-data.json +0 -4548
- package/src/agent-tools/tools/integrations/_seed-data.ts +0 -4563
- package/src/engine/NOTE.MD +0 -52
|
@@ -586,8 +586,8 @@ var MeetingMonitor = class {
|
|
|
586
586
|
sendChatIndicator;
|
|
587
587
|
flushTimer = null;
|
|
588
588
|
running = false;
|
|
589
|
-
|
|
590
|
-
|
|
589
|
+
_lastCaptionCount = 0;
|
|
590
|
+
_lastChatCount = 0;
|
|
591
591
|
consecutiveEmpty = 0;
|
|
592
592
|
consecutiveSendFailures = 0;
|
|
593
593
|
/** Pending captions accumulated across flush cycles (for debouncing) */
|
|
@@ -631,7 +631,7 @@ var MeetingMonitor = class {
|
|
|
631
631
|
this.flushTimer = null;
|
|
632
632
|
}
|
|
633
633
|
try {
|
|
634
|
-
import("./meeting-voice-intelligence-
|
|
634
|
+
import("./meeting-voice-intelligence-RZZCAD6G.js").then(({ getActiveVoiceIntelligence }) => {
|
|
635
635
|
getActiveVoiceIntelligence(this.agentId)?.stopAll();
|
|
636
636
|
}).catch(() => {
|
|
637
637
|
});
|
|
@@ -761,7 +761,7 @@ var MeetingMonitor = class {
|
|
|
761
761
|
}
|
|
762
762
|
if (bufferData.ended) {
|
|
763
763
|
try {
|
|
764
|
-
const { getActiveVoiceIntelligence, removeVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
764
|
+
const { getActiveVoiceIntelligence, removeVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
765
765
|
const voiceIntel = getActiveVoiceIntelligence(this.agentId);
|
|
766
766
|
if (voiceIntel) voiceIntel.stopAll();
|
|
767
767
|
removeVoiceIntelligence(this.agentId);
|
|
@@ -785,7 +785,7 @@ var MeetingMonitor = class {
|
|
|
785
785
|
}
|
|
786
786
|
if (bufferData.captions.length > 0) {
|
|
787
787
|
try {
|
|
788
|
-
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
788
|
+
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
789
789
|
const voiceIntel = getActiveVoiceIntelligence(this.agentId);
|
|
790
790
|
if (voiceIntel?.shouldDiscardCaptions) {
|
|
791
791
|
this.pendingCaptions = [];
|
|
@@ -840,7 +840,7 @@ var MeetingMonitor = class {
|
|
|
840
840
|
async sendUpdate(captions, chat) {
|
|
841
841
|
if (captions.length > 0) {
|
|
842
842
|
try {
|
|
843
|
-
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
843
|
+
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
844
844
|
const voiceIntel = getActiveVoiceIntelligence(this.agentId);
|
|
845
845
|
if (voiceIntel?.isReady || voiceIntel?.isVoiceDegraded) {
|
|
846
846
|
voiceIntel.playHum().catch(() => {
|
|
@@ -1409,7 +1409,7 @@ Tips:
|
|
|
1409
1409
|
console.log(`[voice:${agentId}] Falling back to chat: ${reason}`);
|
|
1410
1410
|
vcm.recordFailure(agentId);
|
|
1411
1411
|
try {
|
|
1412
|
-
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
1412
|
+
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
1413
1413
|
const voiceIntel = getActiveVoiceIntelligence(agentId);
|
|
1414
1414
|
if (voiceIntel) {
|
|
1415
1415
|
voiceIntel.stopAll();
|
|
@@ -1418,7 +1418,7 @@ Tips:
|
|
|
1418
1418
|
} catch {
|
|
1419
1419
|
}
|
|
1420
1420
|
try {
|
|
1421
|
-
const { ensureBrowser: ensureBrowser3, sendChatMessage: sendChatMessage2 } = await import("./meetings-
|
|
1421
|
+
const { ensureBrowser: ensureBrowser3, sendChatMessage: sendChatMessage2 } = await import("./meetings-SQNTB6GD.js");
|
|
1422
1422
|
const { page } = await ensureBrowser3(false, agentId, false);
|
|
1423
1423
|
if (!vcm._announcedChatFallback?.has(agentId)) {
|
|
1424
1424
|
if (!vcm._announcedChatFallback) vcm._announcedChatFallback = /* @__PURE__ */ new Set();
|
|
@@ -1465,7 +1465,7 @@ Tips:
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
try {
|
|
1468
|
-
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
1468
|
+
const { getActiveVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
1469
1469
|
const voiceIntel = getActiveVoiceIntelligence(agentId);
|
|
1470
1470
|
if (voiceIntel) {
|
|
1471
1471
|
voiceIntel.stopAll();
|
|
@@ -1481,7 +1481,7 @@ Tips:
|
|
|
1481
1481
|
}, agentId);
|
|
1482
1482
|
vcm.recordSuccess(agentId);
|
|
1483
1483
|
try {
|
|
1484
|
-
const { getActiveVoiceIntelligence: getVI } = await import("./meeting-voice-intelligence-
|
|
1484
|
+
const { getActiveVoiceIntelligence: getVI } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
1485
1485
|
getVI(agentId)?.markDoneSpeaking();
|
|
1486
1486
|
} catch {
|
|
1487
1487
|
}
|
|
@@ -1519,7 +1519,7 @@ Tips:
|
|
|
1519
1519
|
});
|
|
1520
1520
|
} catch (fileErr) {
|
|
1521
1521
|
try {
|
|
1522
|
-
const { getActiveVoiceIntelligence: getVI } = await import("./meeting-voice-intelligence-
|
|
1522
|
+
const { getActiveVoiceIntelligence: getVI } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
1523
1523
|
getVI(agentId)?.markDoneSpeaking();
|
|
1524
1524
|
} catch {
|
|
1525
1525
|
}
|
|
@@ -2155,7 +2155,7 @@ function createMeetingTools(config, _options) {
|
|
|
2155
2155
|
const apiKey = await getApiKey();
|
|
2156
2156
|
console.log(`[meeting-join:${agentId}] Voice Intelligence: apiKey=${apiKey ? "present" : "MISSING"}`);
|
|
2157
2157
|
if (apiKey) {
|
|
2158
|
-
const { createMeetingVoiceIntelligence } = await import("./meeting-voice-intelligence-
|
|
2158
|
+
const { createMeetingVoiceIntelligence } = await import("./meeting-voice-intelligence-RZZCAD6G.js");
|
|
2159
2159
|
console.log(`[meeting-join:${agentId}] Creating Voice Intelligence instance...`);
|
|
2160
2160
|
const voiceIntel = createMeetingVoiceIntelligence({
|
|
2161
2161
|
agentId,
|
|
@@ -2178,7 +2178,7 @@ function createMeetingTools(config, _options) {
|
|
|
2178
2178
|
} catch (e) {
|
|
2179
2179
|
console.warn(`[meeting-join:${agentId}] Voice preflight failed: ${e.message}`);
|
|
2180
2180
|
}
|
|
2181
|
-
const
|
|
2181
|
+
const _voiceBlock = voiceStatus ? voiceCapability.buildPromptBlock(agentId) : "\n## Voice: NOT CHECKED\nUse meeting_speak to talk \u2014 it auto-falls back to chat if voice fails.\n";
|
|
2182
2182
|
const hasVoice = voiceStatus?.available === true;
|
|
2183
2183
|
const monitorActive = !!getActiveMonitor(agentId);
|
|
2184
2184
|
const communicationInstructions = hasVoice ? 'You have a VOICE in this meeting. Use meeting_speak(text: "...") to talk out loud \u2014 participants will hear you. Use meeting_action(action: "chat", message: "...") for links/code/long text. meeting_speak auto-falls back to chat if voice fails.' : 'You do NOT have a microphone. Communicate via meeting chat: meeting_action(action: "chat", message: "...").';
|
|
@@ -731,7 +731,7 @@ async function runAgent(_args) {
|
|
|
731
731
|
console.log("\u{1F916} AgenticMail Agent Runtime");
|
|
732
732
|
console.log(` Agent ID: ${AGENT_ID}`);
|
|
733
733
|
console.log(" Connecting to database...");
|
|
734
|
-
const { createAdapter, smartDbConfig } = await import("./factory-
|
|
734
|
+
const { createAdapter, smartDbConfig } = await import("./factory-4V2W4BSV.js");
|
|
735
735
|
const db = await createAdapter(smartDbConfig(DATABASE_URL));
|
|
736
736
|
await db.migrate();
|
|
737
737
|
const { EngineDatabase } = await import("./db-adapter-2T56ORSD.js");
|
|
@@ -762,7 +762,7 @@ async function runAgent(_args) {
|
|
|
762
762
|
const agent = agentRow[0];
|
|
763
763
|
console.log(` Agent: ${agent.display_name || agent.name}`);
|
|
764
764
|
console.log(` State: ${agent.state}`);
|
|
765
|
-
const routes = await import("./routes-
|
|
765
|
+
const routes = await import("./routes-T3CDAQTD.js");
|
|
766
766
|
await routes.lifecycle.setDb(engineDb);
|
|
767
767
|
await routes.lifecycle.loadFromDb();
|
|
768
768
|
routes.lifecycle.standaloneMode = true;
|
|
@@ -820,10 +820,10 @@ async function runAgent(_args) {
|
|
|
820
820
|
}
|
|
821
821
|
} catch {
|
|
822
822
|
}
|
|
823
|
-
const { createAgentRuntime } = await import("./runtime-
|
|
823
|
+
const { createAgentRuntime } = await import("./runtime-X4BTVICL.js");
|
|
824
824
|
let orgIntMgr = null;
|
|
825
825
|
try {
|
|
826
|
-
const { orgIntegrations: oi } = await import("./routes-
|
|
826
|
+
const { orgIntegrations: oi } = await import("./routes-T3CDAQTD.js");
|
|
827
827
|
orgIntMgr = oi;
|
|
828
828
|
} catch {
|
|
829
829
|
}
|
|
@@ -937,7 +937,7 @@ async function runAgent(_args) {
|
|
|
937
937
|
console.warn(`[agent] MCP Process Manager init failed (non-fatal): ${e.message}`);
|
|
938
938
|
}
|
|
939
939
|
try {
|
|
940
|
-
const { DatabaseConnectionManager } = await import("./connection-manager-
|
|
940
|
+
const { DatabaseConnectionManager } = await import("./connection-manager-Y7CCQK4X.js");
|
|
941
941
|
const vault2 = runtime.config?.vault;
|
|
942
942
|
const dbManager = new DatabaseConnectionManager({ vault: vault2 });
|
|
943
943
|
await dbManager.setDb(engineDb);
|
|
@@ -1222,7 +1222,7 @@ Please complete this task now.`,
|
|
|
1222
1222
|
}
|
|
1223
1223
|
if (scope === "all" || scope === "permissions") {
|
|
1224
1224
|
try {
|
|
1225
|
-
const { permissionEngine } = await import("./routes-
|
|
1225
|
+
const { permissionEngine } = await import("./routes-T3CDAQTD.js");
|
|
1226
1226
|
await permissionEngine.setDb(engineDb);
|
|
1227
1227
|
reloaded.push("permissions");
|
|
1228
1228
|
} catch {
|
|
@@ -1262,7 +1262,7 @@ Please complete this task now.`,
|
|
|
1262
1262
|
}
|
|
1263
1263
|
if (scope === "all" || scope === "guardrails") {
|
|
1264
1264
|
try {
|
|
1265
|
-
const { guardrails } = await import("./routes-
|
|
1265
|
+
const { guardrails } = await import("./routes-T3CDAQTD.js");
|
|
1266
1266
|
await guardrails.loadFromDb?.();
|
|
1267
1267
|
reloaded.push("guardrails");
|
|
1268
1268
|
} catch {
|
|
@@ -2016,7 +2016,7 @@ ${identity.personality.slice(0, 800)}` : "";
|
|
|
2016
2016
|
if (managerEmail && emailConfig) {
|
|
2017
2017
|
console.log(`[welcome] Sending introduction email to ${managerEmail}...`);
|
|
2018
2018
|
try {
|
|
2019
|
-
const { createEmailProvider } = await import("./agenticmail-
|
|
2019
|
+
const { createEmailProvider } = await import("./agenticmail-QMWQNUY2.js");
|
|
2020
2020
|
const providerType = emailConfig.provider || (emailConfig.oauthProvider === "google" ? "google" : emailConfig.oauthProvider === "microsoft" ? "microsoft" : "imap");
|
|
2021
2021
|
const emailProvider = createEmailProvider(providerType);
|
|
2022
2022
|
let currentAccessToken = emailConfig.oauthAccessToken;
|
|
@@ -2170,7 +2170,7 @@ Available tools: gmail_send (to, subject, body) or agenticmail_send (to, subject
|
|
|
2170
2170
|
await autonomy.start();
|
|
2171
2171
|
console.log("[autonomy] \u2705 Agent autonomy system started");
|
|
2172
2172
|
global.__autonomyManager = autonomy;
|
|
2173
|
-
const
|
|
2173
|
+
const _origShutdown = process.listeners("SIGTERM");
|
|
2174
2174
|
process.on("SIGTERM", () => autonomy.stop());
|
|
2175
2175
|
process.on("SIGINT", () => autonomy.stop());
|
|
2176
2176
|
} catch (autoErr) {
|
|
@@ -2190,7 +2190,7 @@ Available tools: gmail_send (to, subject, body) or agenticmail_send (to, subject
|
|
|
2190
2190
|
console.log("[guardrails] Disabled via autonomy settings");
|
|
2191
2191
|
}
|
|
2192
2192
|
try {
|
|
2193
|
-
const { AgentHeartbeatManager } = await import("./agent-heartbeat-
|
|
2193
|
+
const { AgentHeartbeatManager } = await import("./agent-heartbeat-ZFKA6GMI.js");
|
|
2194
2194
|
const hbOrgRows = await engineDb.query(`SELECT org_id FROM managed_agents WHERE id = $1`, [AGENT_ID]);
|
|
2195
2195
|
const hbOrgId = hbOrgRows?.[0]?.org_id || "";
|
|
2196
2196
|
const hbManagerEmail = config.managerEmail || (config.manager?.type === "external" ? config.manager.email : null);
|
|
@@ -2244,7 +2244,7 @@ Available tools: gmail_send (to, subject, body) or agenticmail_send (to, subject
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}, 3e3);
|
|
2246
2246
|
}
|
|
2247
|
-
async function startCalendarPolling(agentId, config, runtime,
|
|
2247
|
+
async function startCalendarPolling(agentId, config, runtime, _engineDb, _memoryManager, sessionRouter) {
|
|
2248
2248
|
const emailConfig = config.emailConfig;
|
|
2249
2249
|
if (!emailConfig?.oauthAccessToken) {
|
|
2250
2250
|
console.log("[calendar-poll] No OAuth token, calendar polling disabled");
|
|
@@ -112,7 +112,7 @@ async function runRecover(args) {
|
|
|
112
112
|
const dbType = detectDbType(envDbUrl);
|
|
113
113
|
spinner.start(`Connecting to database (${dbType}, from DATABASE_URL)...`);
|
|
114
114
|
try {
|
|
115
|
-
const { createAdapter } = await import("./factory-
|
|
115
|
+
const { createAdapter } = await import("./factory-4V2W4BSV.js");
|
|
116
116
|
db = await createAdapter({ type: dbType, connectionString: envDbUrl });
|
|
117
117
|
await db.migrate();
|
|
118
118
|
dbConnected = true;
|
|
@@ -161,7 +161,7 @@ async function runRecover(args) {
|
|
|
161
161
|
}]);
|
|
162
162
|
spinner.start(`Connecting to ${dbType} database...`);
|
|
163
163
|
try {
|
|
164
|
-
const { createAdapter } = await import("./factory-
|
|
164
|
+
const { createAdapter } = await import("./factory-4V2W4BSV.js");
|
|
165
165
|
db = await createAdapter({ type: dbType, connectionString: connString.trim() });
|
|
166
166
|
await db.migrate();
|
|
167
167
|
dbConnected = true;
|
|
@@ -80,7 +80,7 @@ async function runServe(_args) {
|
|
|
80
80
|
const PORT = parseInt(process.env.PORT || "8080", 10);
|
|
81
81
|
await ensureSecrets();
|
|
82
82
|
const JWT_SECRET = process.env.JWT_SECRET;
|
|
83
|
-
const
|
|
83
|
+
const _VAULT_KEY = process.env.AGENTICMAIL_VAULT_KEY;
|
|
84
84
|
if (!DATABASE_URL) {
|
|
85
85
|
console.error("ERROR: DATABASE_URL is required.");
|
|
86
86
|
console.error("");
|
|
@@ -93,8 +93,8 @@ async function runServe(_args) {
|
|
|
93
93
|
console.error(" PORT=3200");
|
|
94
94
|
process.exit(1);
|
|
95
95
|
}
|
|
96
|
-
const { createAdapter, smartDbConfig } = await import("./factory-
|
|
97
|
-
const { createServer } = await import("./server-
|
|
96
|
+
const { createAdapter, smartDbConfig } = await import("./factory-4V2W4BSV.js");
|
|
97
|
+
const { createServer } = await import("./server-WQ6LLYGB.js");
|
|
98
98
|
const db = await createAdapter(smartDbConfig(DATABASE_URL));
|
|
99
99
|
await db.migrate();
|
|
100
100
|
const server = createServer({
|
|
@@ -36,7 +36,7 @@ async function runVerifyDomain(args) {
|
|
|
36
36
|
const dbType = detectDbType(envDbUrl);
|
|
37
37
|
const spinner = ora(`Connecting to database (${dbType})...`).start();
|
|
38
38
|
try {
|
|
39
|
-
const { createAdapter } = await import("./factory-
|
|
39
|
+
const { createAdapter } = await import("./factory-4V2W4BSV.js");
|
|
40
40
|
db = await createAdapter({ type: dbType, connectionString: envDbUrl });
|
|
41
41
|
await db.migrate();
|
|
42
42
|
const settings = await db.getSettings();
|
|
@@ -55,7 +55,7 @@ async function runVerifyDomain(args) {
|
|
|
55
55
|
if (dbPath) {
|
|
56
56
|
const spinner = ora(`Connecting to ${dbType} database...`).start();
|
|
57
57
|
try {
|
|
58
|
-
const { createAdapter } = await import("./factory-
|
|
58
|
+
const { createAdapter } = await import("./factory-4V2W4BSV.js");
|
|
59
59
|
db = await createAdapter({ type: dbType, connectionString: dbPath });
|
|
60
60
|
await db.migrate();
|
|
61
61
|
const settings = await db.getSettings();
|
package/dist/cli.js
CHANGED
|
@@ -14,10 +14,10 @@ switch (command) {
|
|
|
14
14
|
import("./cli-submit-skill-SNGAHVB7.js").then((m) => m.runSubmitSkill(args.slice(1))).catch(fatal);
|
|
15
15
|
break;
|
|
16
16
|
case "recover":
|
|
17
|
-
import("./cli-recover-
|
|
17
|
+
import("./cli-recover-TTOR7CJR.js").then((m) => m.runRecover(args.slice(1))).catch(fatal);
|
|
18
18
|
break;
|
|
19
19
|
case "verify-domain":
|
|
20
|
-
import("./cli-verify-
|
|
20
|
+
import("./cli-verify-WICBVLAM.js").then((m) => m.runVerifyDomain(args.slice(1))).catch(fatal);
|
|
21
21
|
break;
|
|
22
22
|
case "reset-password":
|
|
23
23
|
import("./cli-reset-password-SO5Y6MW7.js").then((m) => m.runResetPassword(args.slice(1))).catch(fatal);
|
|
@@ -57,14 +57,14 @@ Skill Development:
|
|
|
57
57
|
break;
|
|
58
58
|
case "serve":
|
|
59
59
|
case "start":
|
|
60
|
-
import("./cli-serve-
|
|
60
|
+
import("./cli-serve-5VFU4GR4.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
61
61
|
break;
|
|
62
62
|
case "agent":
|
|
63
|
-
import("./cli-agent-
|
|
63
|
+
import("./cli-agent-2NBPF3GN.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
64
64
|
break;
|
|
65
65
|
case "setup":
|
|
66
66
|
default:
|
|
67
|
-
import("./setup-
|
|
67
|
+
import("./setup-6DRKSOMH.js").then((m) => m.runSetupWizard()).catch(fatal);
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
70
|
function fatal(err) {
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Cluster Management — AgenticMail Enterprise Docs</title>
|
|
6
|
+
<link rel="stylesheet" href="docs.css">
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div class="docs-container">
|
|
10
|
+
<nav class="docs-nav"><a href="/dashboard">← Back to Dashboard</a></nav>
|
|
11
|
+
|
|
12
|
+
<h1>Cluster Management</h1>
|
|
13
|
+
<p class="docs-subtitle">Scale your AI workforce across multiple machines — Mac Minis, VPS, cloud instances, or any combination.</p>
|
|
14
|
+
|
|
15
|
+
<div class="docs-toc">
|
|
16
|
+
<h4>Contents</h4>
|
|
17
|
+
<ul>
|
|
18
|
+
<li><a href="#overview">Overview</a></li>
|
|
19
|
+
<li><a href="#architecture">Architecture</a></li>
|
|
20
|
+
<li><a href="#adding-nodes">Adding Worker Nodes</a></li>
|
|
21
|
+
<li><a href="#manual">Method 1: Manual Registration</a></li>
|
|
22
|
+
<li><a href="#ssh">Method 2: SSH Deploy</a></li>
|
|
23
|
+
<li><a href="#script">Method 3: Setup Script</a></li>
|
|
24
|
+
<li><a href="#env-vars">Environment Variables</a></li>
|
|
25
|
+
<li><a href="#monitoring">Monitoring & Health</a></li>
|
|
26
|
+
<li><a href="#node-detail">Node Detail & Actions</a></li>
|
|
27
|
+
<li><a href="#load-balancing">Load Balancing</a></li>
|
|
28
|
+
<li><a href="#database">Database Sharing</a></li>
|
|
29
|
+
<li><a href="#networking">Networking Requirements</a></li>
|
|
30
|
+
<li><a href="#security">Security Considerations</a></li>
|
|
31
|
+
<li><a href="#edge-cases">Edge Cases & Troubleshooting</a></li>
|
|
32
|
+
<li><a href="#api">API Reference</a></li>
|
|
33
|
+
</ul>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<h2 id="overview">Overview</h2>
|
|
37
|
+
<p>The Cluster system enables <strong>horizontal scaling</strong> of your AI agent workforce. Instead of running all agents on a single machine, you can distribute them across multiple worker nodes — each running one or more agents that report back to a central dashboard.</p>
|
|
38
|
+
<p>This is useful when:</p>
|
|
39
|
+
<ul>
|
|
40
|
+
<li>You have more agents than a single machine can handle</li>
|
|
41
|
+
<li>You want geographic distribution (agents closer to users)</li>
|
|
42
|
+
<li>You need hardware isolation (GPU nodes for voice, separate machines for browser automation)</li>
|
|
43
|
+
<li>You want fault tolerance (agents survive if one machine goes down)</li>
|
|
44
|
+
<li>You're scaling from a single Mac Mini to a fleet of machines</li>
|
|
45
|
+
</ul>
|
|
46
|
+
|
|
47
|
+
<h2 id="architecture">Architecture</h2>
|
|
48
|
+
<div class="docs-diagram">
|
|
49
|
+
<pre>
|
|
50
|
+
┌─────────────────────────────────────┐
|
|
51
|
+
│ Control Plane │
|
|
52
|
+
│ (Enterprise Dashboard Server) │
|
|
53
|
+
│ │
|
|
54
|
+
│ ┌──────────┐ ┌────────────────┐ │
|
|
55
|
+
│ │ Dashboard │ │ Cluster API │ │
|
|
56
|
+
│ │ (UI) │ │ (REST + SSE) │ │
|
|
57
|
+
│ └──────────┘ └────────────────┘ │
|
|
58
|
+
│ │ │ │
|
|
59
|
+
│ ┌──────────────────────────┐ │
|
|
60
|
+
│ │ Shared Database │ │
|
|
61
|
+
│ │ (Postgres / Supabase) │ │
|
|
62
|
+
│ └──────────────────────────┘ │
|
|
63
|
+
└─────────────┬───────────────────────┘
|
|
64
|
+
│ HTTP (heartbeat, status)
|
|
65
|
+
┌────────┼────────┐
|
|
66
|
+
│ │ │
|
|
67
|
+
┌────┴───┐ ┌──┴───┐ ┌──┴───┐
|
|
68
|
+
│Worker 1│ │Worker│ │Worker│
|
|
69
|
+
│Mac Mini│ │ VPS │ │ AWS │
|
|
70
|
+
│Agent A │ │AgentB│ │AgentC│
|
|
71
|
+
│Agent D │ │AgentE│ │AgentF│
|
|
72
|
+
└────────┘ └──────┘ └──────┘
|
|
73
|
+
</pre>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<h3>Key Concepts</h3>
|
|
77
|
+
<table>
|
|
78
|
+
<tr><th>Term</th><th>Description</th></tr>
|
|
79
|
+
<tr><td><strong>Control Plane</strong></td><td>The central enterprise server running the dashboard, API, and database. One per deployment.</td></tr>
|
|
80
|
+
<tr><td><strong>Worker Node</strong></td><td>Any machine running one or more agent processes. Reports to the control plane via HTTP.</td></tr>
|
|
81
|
+
<tr><td><strong>Node ID</strong></td><td>Unique identifier for each worker node (e.g., "mac-mini-office", "aws-us-east-1").</td></tr>
|
|
82
|
+
<tr><td><strong>Heartbeat</strong></td><td>Periodic HTTP POST from worker to control plane (every 30 seconds). Proves the node is alive.</td></tr>
|
|
83
|
+
<tr><td><strong>Stale Threshold</strong></td><td>If no heartbeat received for 90 seconds, node is marked offline.</td></tr>
|
|
84
|
+
<tr><td><strong>Capabilities</strong></td><td>Tags describing what the node can do: "browser", "voice", "gpu", "docker".</td></tr>
|
|
85
|
+
</table>
|
|
86
|
+
|
|
87
|
+
<h2 id="adding-nodes">Adding Worker Nodes</h2>
|
|
88
|
+
<p>There are <strong>3 ways</strong> to add a worker node, all from the dashboard UI:</p>
|
|
89
|
+
|
|
90
|
+
<h3 id="manual">Method 1: Manual Registration</h3>
|
|
91
|
+
<p>Best for: Machines that already have AgenticMail installed and running.</p>
|
|
92
|
+
<ol>
|
|
93
|
+
<li>Go to <strong>Operations > Cluster</strong> in the sidebar</li>
|
|
94
|
+
<li>Click <strong>Add Worker Node</strong></li>
|
|
95
|
+
<li>Select the <strong>Manual Registration</strong> tab</li>
|
|
96
|
+
<li>Enter the node name, host IP/hostname, and port</li>
|
|
97
|
+
<li>Click <strong>Test Connection</strong> to verify reachability</li>
|
|
98
|
+
<li>Click <strong>Add Node</strong></li>
|
|
99
|
+
</ol>
|
|
100
|
+
<p>The node will appear in the cluster and start receiving heartbeats when the agent process has <code>WORKER_NODE_ID</code> set.</p>
|
|
101
|
+
|
|
102
|
+
<h3 id="ssh">Method 2: SSH Deploy</h3>
|
|
103
|
+
<p>Best for: Fresh machines where you want the dashboard to handle everything.</p>
|
|
104
|
+
<ol>
|
|
105
|
+
<li>Click <strong>Add Worker Node</strong> > <strong>Deploy via SSH</strong> tab</li>
|
|
106
|
+
<li>Enter the SSH host, username, and optionally paste a private key</li>
|
|
107
|
+
<li>Optionally specify which agent IDs to deploy</li>
|
|
108
|
+
<li>Click <strong>Deploy Worker</strong></li>
|
|
109
|
+
</ol>
|
|
110
|
+
<p>The dashboard will SSH into the machine, install Node.js, PM2, and AgenticMail, write the environment file, and start the agent processes. The node auto-registers on startup.</p>
|
|
111
|
+
|
|
112
|
+
<div class="docs-note">
|
|
113
|
+
<strong>Note:</strong> SSH deploy requires the dashboard server to have network access to the target machine on port 22. For cloud instances, make sure the security group allows SSH from the dashboard's IP.
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<h3 id="script">Method 3: Setup Script</h3>
|
|
117
|
+
<p>Best for: Machines you can't SSH into from the dashboard (firewalled, air-gapped, or you prefer manual control).</p>
|
|
118
|
+
<ol>
|
|
119
|
+
<li>Click <strong>Add Worker Node</strong> > <strong>Setup Script</strong> tab</li>
|
|
120
|
+
<li>Enter a name and port</li>
|
|
121
|
+
<li>Click <strong>Generate Setup Script</strong></li>
|
|
122
|
+
<li>Copy the script</li>
|
|
123
|
+
<li>SSH into the target machine yourself and paste/run the script</li>
|
|
124
|
+
<li>Edit <code>~/.agenticmail/worker.env</code> to set your <code>DATABASE_URL</code></li>
|
|
125
|
+
<li>Start agents with <code>pm2 start "agenticmail-enterprise agent --id <ID>"</code></li>
|
|
126
|
+
</ol>
|
|
127
|
+
|
|
128
|
+
<h2 id="env-vars">Environment Variables</h2>
|
|
129
|
+
<p>These environment variables control worker node behavior:</p>
|
|
130
|
+
<table>
|
|
131
|
+
<tr><th>Variable</th><th>Required</th><th>Description</th></tr>
|
|
132
|
+
<tr><td><code>ENTERPRISE_URL</code></td><td>Yes</td><td>Full URL of the control plane (e.g., <code>https://acme.agenticmail.io</code>)</td></tr>
|
|
133
|
+
<tr><td><code>WORKER_NODE_ID</code></td><td>Yes*</td><td>Unique node identifier. Triggers auto-registration on startup. <em>*Required for cluster mode.</em></td></tr>
|
|
134
|
+
<tr><td><code>WORKER_NAME</code></td><td>No</td><td>Human-readable name shown in dashboard. Defaults to system hostname.</td></tr>
|
|
135
|
+
<tr><td><code>WORKER_HOST</code></td><td>No</td><td>IP/hostname the control plane should use to reach this node. Defaults to "localhost".</td></tr>
|
|
136
|
+
<tr><td><code>WORKER_CAPABILITIES</code></td><td>No</td><td>Comma-separated capabilities: "browser,voice,gpu,docker"</td></tr>
|
|
137
|
+
<tr><td><code>DATABASE_URL</code></td><td>Yes</td><td>Same database as the control plane (shared Postgres)</td></tr>
|
|
138
|
+
<tr><td><code>PORT</code></td><td>No</td><td>Agent API port (default: 3101)</td></tr>
|
|
139
|
+
<tr><td><code>LOG_LEVEL</code></td><td>No</td><td>Set to "warn" for production noise suppression</td></tr>
|
|
140
|
+
</table>
|
|
141
|
+
|
|
142
|
+
<h2 id="monitoring">Monitoring & Health</h2>
|
|
143
|
+
<h3>Real-Time Status</h3>
|
|
144
|
+
<p>The Cluster page shows live status for every node via Server-Sent Events (SSE). No polling — updates appear instantly when:</p>
|
|
145
|
+
<ul>
|
|
146
|
+
<li>A node registers or re-registers</li>
|
|
147
|
+
<li>A heartbeat is received (every 30s)</li>
|
|
148
|
+
<li>A node goes offline (no heartbeat for 90s)</li>
|
|
149
|
+
<li>Node agent list changes</li>
|
|
150
|
+
</ul>
|
|
151
|
+
|
|
152
|
+
<h3>Node Statuses</h3>
|
|
153
|
+
<table>
|
|
154
|
+
<tr><th>Status</th><th>Color</th><th>Meaning</th></tr>
|
|
155
|
+
<tr><td>online</td><td style="color: #22c55e;">Green</td><td>Node is reachable and heartbeating normally</td></tr>
|
|
156
|
+
<tr><td>degraded</td><td style="color: #f59e0b;">Orange</td><td>Node is reachable but reporting issues</td></tr>
|
|
157
|
+
<tr><td>offline</td><td style="color: #6b7280;">Gray</td><td>No heartbeat for 90+ seconds</td></tr>
|
|
158
|
+
</table>
|
|
159
|
+
|
|
160
|
+
<h3>Stats Cards</h3>
|
|
161
|
+
<p>The top of the Cluster page shows aggregate stats:</p>
|
|
162
|
+
<ul>
|
|
163
|
+
<li><strong>Total Nodes</strong> — All registered nodes (online + offline)</li>
|
|
164
|
+
<li><strong>Online</strong> — Currently heartbeating nodes</li>
|
|
165
|
+
<li><strong>Running Agents</strong> — Total agents across all online nodes</li>
|
|
166
|
+
<li><strong>Total CPUs</strong> — Aggregate CPU cores across online nodes</li>
|
|
167
|
+
<li><strong>Total Memory</strong> — Aggregate RAM across online nodes</li>
|
|
168
|
+
</ul>
|
|
169
|
+
|
|
170
|
+
<h2 id="node-detail">Node Detail & Actions</h2>
|
|
171
|
+
<p>Click any node card to see full details:</p>
|
|
172
|
+
<ul>
|
|
173
|
+
<li><strong>Platform info</strong> — OS, architecture, CPU count, memory</li>
|
|
174
|
+
<li><strong>Agent list</strong> — All agents running on this node with names and roles</li>
|
|
175
|
+
<li><strong>Capabilities</strong> — What the node supports (browser, voice, etc.)</li>
|
|
176
|
+
<li><strong>Ping</strong> — Test connection from dashboard to node (shows latency)</li>
|
|
177
|
+
<li><strong>Restart Agents</strong> — Send restart signal to all agents on this node</li>
|
|
178
|
+
</ul>
|
|
179
|
+
|
|
180
|
+
<h2 id="load-balancing">Load Balancing</h2>
|
|
181
|
+
<p>When deploying a new agent, the system can automatically select the best node:</p>
|
|
182
|
+
<ul>
|
|
183
|
+
<li><strong>Least-loaded</strong> — Node with fewest running agents</li>
|
|
184
|
+
<li><strong>Capability-matching</strong> — If the agent needs "voice" or "browser", only nodes with those capabilities are considered</li>
|
|
185
|
+
<li><strong>API endpoint</strong>: <code>GET /api/engine/cluster/best-node?capabilities=voice,browser</code></li>
|
|
186
|
+
</ul>
|
|
187
|
+
|
|
188
|
+
<h2 id="database">Database Sharing</h2>
|
|
189
|
+
<p>All worker nodes <strong>must connect to the same database</strong> as the control plane. This is how agents share state, memory, tasks, and configuration.</p>
|
|
190
|
+
<div class="docs-note">
|
|
191
|
+
<strong>Recommended:</strong> Use a cloud-hosted PostgreSQL (Supabase, Neon, AWS RDS) accessible from all nodes. SQLite does NOT work for multi-node clusters.
|
|
192
|
+
</div>
|
|
193
|
+
<p>Connection pool settings are auto-optimized per node via the <code>smartDbConfig()</code> helper. Each node maintains its own small connection pool (3 connections max).</p>
|
|
194
|
+
|
|
195
|
+
<h2 id="networking">Networking Requirements</h2>
|
|
196
|
+
<table>
|
|
197
|
+
<tr><th>Direction</th><th>From</th><th>To</th><th>Port</th><th>Purpose</th></tr>
|
|
198
|
+
<tr><td>Outbound</td><td>Worker Node</td><td>Control Plane</td><td>3100 (or custom)</td><td>Heartbeats, status updates, task webhooks</td></tr>
|
|
199
|
+
<tr><td>Outbound</td><td>Worker Node</td><td>Database</td><td>5432 (Postgres)</td><td>Shared database connection</td></tr>
|
|
200
|
+
<tr><td>Inbound</td><td>Control Plane</td><td>Worker Node</td><td>3101 (or custom)</td><td>Health checks, ping, restart commands</td></tr>
|
|
201
|
+
<tr><td>Outbound</td><td>Control Plane</td><td>Worker Node</td><td>22 (SSH)</td><td>Only for SSH deploy method</td></tr>
|
|
202
|
+
</table>
|
|
203
|
+
<p>If nodes are behind NAT or firewalls, only outbound from worker to control plane is strictly required. The test-connection and restart features need inbound access.</p>
|
|
204
|
+
|
|
205
|
+
<h2 id="security">Security Considerations</h2>
|
|
206
|
+
<ul>
|
|
207
|
+
<li><strong>No authentication on cluster API (yet)</strong> — The heartbeat and status endpoints are unauthenticated for simplicity. Only expose the control plane's API behind a reverse proxy with authentication, or restrict by IP.</li>
|
|
208
|
+
<li><strong>SSH keys</strong> — For SSH deploy, keys are used once and not persisted. Prefer SSH agent forwarding or temporary keys.</li>
|
|
209
|
+
<li><strong>Database credentials</strong> — Each worker node needs <code>DATABASE_URL</code>. Use environment variables, never commit credentials.</li>
|
|
210
|
+
<li><strong>TLS</strong> — Use HTTPS between workers and control plane in production. Set <code>ENTERPRISE_URL=https://...</code>.</li>
|
|
211
|
+
<li><strong>Network segmentation</strong> — Place worker nodes and control plane on the same VPN/VPC for internal traffic.</li>
|
|
212
|
+
</ul>
|
|
213
|
+
|
|
214
|
+
<h2 id="edge-cases">Edge Cases & Troubleshooting</h2>
|
|
215
|
+
|
|
216
|
+
<h3>Node keeps showing "offline"</h3>
|
|
217
|
+
<ul>
|
|
218
|
+
<li>Check <code>ENTERPRISE_URL</code> is correct and reachable from the worker</li>
|
|
219
|
+
<li>Check <code>WORKER_NODE_ID</code> is set in the agent's environment</li>
|
|
220
|
+
<li>Check firewall rules — worker must be able to POST to <code>ENTERPRISE_URL/api/engine/cluster/heartbeat/...</code></li>
|
|
221
|
+
<li>Check agent logs: <code>pm2 logs agent-name</code></li>
|
|
222
|
+
</ul>
|
|
223
|
+
|
|
224
|
+
<h3>Duplicate node IDs</h3>
|
|
225
|
+
<p>If two machines use the same <code>WORKER_NODE_ID</code>, they'll overwrite each other's registration. Use unique IDs per machine.</p>
|
|
226
|
+
|
|
227
|
+
<h3>Agent appears on wrong node</h3>
|
|
228
|
+
<p>Each agent process reports its <code>WORKER_NODE_ID</code> on startup. If you move an agent between machines, restart it on the new machine — it will re-register under the new node.</p>
|
|
229
|
+
|
|
230
|
+
<h3>Control plane restarts</h3>
|
|
231
|
+
<p>All node data is persisted in the <code>cluster_nodes</code> database table. On restart, nodes load from DB as "offline" and transition to "online" when the next heartbeat arrives (within 30s).</p>
|
|
232
|
+
|
|
233
|
+
<h3>Worker restarts</h3>
|
|
234
|
+
<p>PM2 auto-restarts crashed agent processes. On restart, the agent re-registers with the control plane within seconds.</p>
|
|
235
|
+
|
|
236
|
+
<h3>Network partition</h3>
|
|
237
|
+
<p>If a worker loses connectivity to the control plane, it continues running agents normally. It just stops reporting status. When connectivity resumes, the next heartbeat restores the "online" status.</p>
|
|
238
|
+
|
|
239
|
+
<h3>Database failover</h3>
|
|
240
|
+
<p>All nodes connect to the same database. If the database goes down, all nodes are affected. Use a cloud provider with automatic failover (Supabase, Neon, RDS Multi-AZ).</p>
|
|
241
|
+
|
|
242
|
+
<h2 id="api">API Reference</h2>
|
|
243
|
+
<table>
|
|
244
|
+
<tr><th>Method</th><th>Endpoint</th><th>Description</th></tr>
|
|
245
|
+
<tr><td>GET</td><td><code>/api/engine/cluster/nodes</code></td><td>List all nodes + cluster stats</td></tr>
|
|
246
|
+
<tr><td>GET</td><td><code>/api/engine/cluster/nodes/:nodeId</code></td><td>Get specific node</td></tr>
|
|
247
|
+
<tr><td>POST</td><td><code>/api/engine/cluster/register</code></td><td>Register a worker node</td></tr>
|
|
248
|
+
<tr><td>POST</td><td><code>/api/engine/cluster/heartbeat/:nodeId</code></td><td>Worker heartbeat</td></tr>
|
|
249
|
+
<tr><td>DELETE</td><td><code>/api/engine/cluster/nodes/:nodeId</code></td><td>Remove a node</td></tr>
|
|
250
|
+
<tr><td>GET</td><td><code>/api/engine/cluster/best-node</code></td><td>Find best node for deployment</td></tr>
|
|
251
|
+
<tr><td>POST</td><td><code>/api/engine/cluster/test-connection</code></td><td>Test connectivity to a node</td></tr>
|
|
252
|
+
<tr><td>POST</td><td><code>/api/engine/cluster/deploy-via-ssh</code></td><td>Deploy worker via SSH</td></tr>
|
|
253
|
+
<tr><td>POST</td><td><code>/api/engine/cluster/nodes/:nodeId/restart</code></td><td>Restart agents on a node</td></tr>
|
|
254
|
+
<tr><td>GET</td><td><code>/api/engine/cluster/stream</code></td><td>SSE stream of cluster events</td></tr>
|
|
255
|
+
</table>
|
|
256
|
+
|
|
257
|
+
<h3>Register Node (POST /api/engine/cluster/register)</h3>
|
|
258
|
+
<pre>
|
|
259
|
+
{
|
|
260
|
+
"nodeId": "mac-mini-office", // Required, unique, 2-64 chars, alphanumeric + .-_
|
|
261
|
+
"name": "Office Mac Mini", // Optional display name
|
|
262
|
+
"host": "192.168.1.50", // Required, IP or hostname
|
|
263
|
+
"port": 3101, // Required, 1-65535
|
|
264
|
+
"platform": "darwin", // Optional, auto-detected
|
|
265
|
+
"arch": "arm64", // Optional, auto-detected
|
|
266
|
+
"cpuCount": 10, // Optional, auto-detected
|
|
267
|
+
"memoryMb": 16384, // Optional, auto-detected
|
|
268
|
+
"version": "0.5.324", // Optional
|
|
269
|
+
"agents": ["agent-uuid-1"], // Optional, list of agent IDs
|
|
270
|
+
"capabilities": ["browser", "voice"] // Optional
|
|
271
|
+
}
|
|
272
|
+
</pre>
|
|
273
|
+
|
|
274
|
+
<h3>Heartbeat (POST /api/engine/cluster/heartbeat/:nodeId)</h3>
|
|
275
|
+
<pre>
|
|
276
|
+
{
|
|
277
|
+
"agents": ["agent-uuid-1"], // Current agent list
|
|
278
|
+
"cpuUsage": 0.45, // Optional, 0-1
|
|
279
|
+
"memoryUsage": 0.62 // Optional, 0-1
|
|
280
|
+
}
|
|
281
|
+
</pre>
|
|
282
|
+
|
|
283
|
+
</div>
|
|
284
|
+
</body>
|
|
285
|
+
</html>
|