@askexenow/exe-os 0.9.142 → 0.9.144
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/{active-agent-OTOFSYIV.js → active-agent-NVYSMA2V.js} +5 -5
- package/dist/{active-agent-PNV6PKJK.js → active-agent-Q3IKFOF6.js} +5 -5
- package/dist/{agentic-ontology-GYJZMRNB.js → agentic-ontology-Q3OVWKAK.js} +1 -1
- package/dist/{backfill-metadata-EDLDTB2G.js → backfill-metadata-GZIPWZAJ.js} +7 -9
- package/dist/{background-jobs-TBUOKMJR.js → background-jobs-LS6PTJKF.js} +3 -3
- package/dist/{behaviors-GE4RY2HA.js → behaviors-A4W3CBE5.js} +5 -5
- package/dist/bin/age-ontology-load.js +3 -3
- package/dist/bin/agentic-ontology-backfill.js +9 -9
- package/dist/bin/agentic-reflection-backfill.js +10 -10
- package/dist/bin/agentic-semantic-label.js +9 -9
- package/dist/bin/backfill-conversations.js +9 -9
- package/dist/bin/backfill-responses.js +9 -9
- package/dist/bin/backfill-vectors.js +11 -11
- package/dist/bin/bulk-sync-postgres.js +10 -10
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +11 -11
- package/dist/bin/cli.js +18 -18
- package/dist/bin/exe-agent-config.js +5 -5
- package/dist/bin/exe-agent.js +6 -6
- package/dist/bin/exe-assign.js +11 -11
- package/dist/bin/exe-boot.js +19 -19
- package/dist/bin/exe-call.js +6 -6
- package/dist/bin/exe-cloud.js +9 -9
- package/dist/bin/exe-dispatch.js +11 -11
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +10 -10
- package/dist/bin/exe-forget.js +9 -9
- package/dist/bin/exe-gateway.js +8 -8
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +11 -11
- package/dist/bin/exe-kill.js +9 -9
- package/dist/bin/exe-launch-agent.js +29 -24
- package/dist/bin/exe-new-employee.js +9 -9
- package/dist/bin/exe-pending-messages.js +12 -12
- package/dist/bin/exe-pending-notifications.js +11 -11
- package/dist/bin/exe-pending-reviews.js +11 -11
- package/dist/bin/exe-rename.js +6 -6
- package/dist/bin/exe-review.js +14 -14
- package/dist/bin/exe-search.js +8 -8
- package/dist/bin/exe-session-cleanup.js +17 -17
- package/dist/bin/exe-settings.js +8 -8
- package/dist/bin/exe-start-codex.js +15 -15
- package/dist/bin/exe-start-opencode.js +11 -11
- package/dist/bin/exe-status.js +12 -12
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +5 -5
- package/dist/bin/git-sweep.js +11 -11
- package/dist/bin/graph-backfill.js +9 -9
- package/dist/bin/graph-export.js +8 -8
- package/dist/bin/install.js +9 -9
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +5 -5
- package/dist/bin/postgres-agentic-semantic-backfill.js +4 -4
- package/dist/bin/scan-tasks.js +11 -11
- package/dist/bin/setup.js +4 -4
- package/dist/bin/shard-migrate.js +8 -8
- package/dist/bin/stack-update.js +3 -3
- package/dist/{branding-EKI27T6K.js → branding-ZOKU45NY.js} +2 -2
- package/dist/{capacity-monitor-D3RGDLMN.js → capacity-monitor-7VX6NW5J.js} +12 -12
- package/dist/{catchup-brief-LD2QLE2D.js → catchup-brief-HLGROPH6.js} +14 -14
- package/dist/{chunk-RZK7BZHP.js → chunk-2RCYI7O4.js} +1 -1
- package/dist/{chunk-UYNFWD54.js → chunk-37RJAKHZ.js} +3 -3
- package/dist/{chunk-SFURTBMT.js → chunk-3RT5V3M4.js} +1 -1
- package/dist/{chunk-CQX2WDI5.js → chunk-3XUWTXNC.js} +1 -1
- package/dist/{chunk-JSVRX6IW.js → chunk-47MZMRQZ.js} +7 -7
- package/dist/{chunk-OI3REUP5.js → chunk-4C3NEI64.js} +1 -1
- package/dist/{chunk-GOCW7Z6D.js → chunk-52LCN4JK.js} +1 -1
- package/dist/{chunk-5UCBVXKO.js → chunk-53JBNNU3.js} +1 -1
- package/dist/{chunk-6V6UTSOP.js → chunk-5JIVAJJU.js} +1 -1
- package/dist/{chunk-NMG76472.js → chunk-67WOKLTZ.js} +3 -3
- package/dist/{chunk-XRPIVNFS.js → chunk-76HPWZJC.js} +1 -1
- package/dist/{chunk-32Z4GK25.js → chunk-76R35J76.js} +6 -6
- package/dist/{chunk-DU4ZN7VF.js → chunk-7PJP3TZV.js} +1 -1
- package/dist/{chunk-LFVL3R6H.js → chunk-7YZJUTQ4.js} +2 -2
- package/dist/{chunk-GIGLGGYL.js → chunk-A46SAHYB.js} +1 -1
- package/dist/{chunk-GLVF7ENO.js → chunk-AFEXRICE.js} +1 -1
- package/dist/{chunk-25QUV6FU.js → chunk-AV4RLRM2.js} +64 -14
- package/dist/{chunk-4CBBN2XD.js → chunk-AV77PUPD.js} +122 -68
- package/dist/{chunk-EZUWMBWA.js → chunk-AYUYBWGD.js} +1 -1
- package/dist/{chunk-NFX6MDEO.js → chunk-BNH4LWKE.js} +1 -1
- package/dist/{chunk-CK5ZAMWX.js → chunk-C54PGWHV.js} +3 -3
- package/dist/{chunk-N5MH3CN2.js → chunk-CNNT4QSN.js} +3 -3
- package/dist/{chunk-4AZYVT6A.js → chunk-DSVN3QRR.js} +1 -1
- package/dist/{chunk-Q53ZYTIU.js → chunk-DUXNECD3.js} +2 -2
- package/dist/{chunk-MRX42FAS.js → chunk-EHF676BW.js} +3 -3
- package/dist/{chunk-TJI7DMBT.js → chunk-EOWQ6DMH.js} +7 -7
- package/dist/{chunk-7M3DNYMR.js → chunk-EVP2WD5S.js} +1 -1
- package/dist/{chunk-U3Q3WNGY.js → chunk-EYRQWVPQ.js} +2 -2
- package/dist/{chunk-2NWMGMNH.js → chunk-EZY3BNIW.js} +9 -9
- package/dist/{chunk-JAFHOB5P.js → chunk-FCNKI3SH.js} +1 -1
- package/dist/{chunk-EENNKZMN.js → chunk-GPCQRSAR.js} +2 -2
- package/dist/{chunk-NMT6QFEE.js → chunk-HHKKLWAI.js} +1 -1
- package/dist/{chunk-CBSUVFZ7.js → chunk-HLYXFVVT.js} +2 -2
- package/dist/{chunk-EAVACBVO.js → chunk-IUQL3KZV.js} +2 -2
- package/dist/{chunk-SDYBAMPW.js → chunk-KKYDUT2Z.js} +2 -2
- package/dist/{chunk-4GA5XZWY.js → chunk-KVM3XRPC.js} +2 -2
- package/dist/{chunk-KCLL5ECT.js → chunk-KX3KLDG7.js} +1 -1
- package/dist/{chunk-BSSSCUQJ.js → chunk-LT55GKEK.js} +3 -3
- package/dist/{chunk-DH6N5G4T.js → chunk-LXX2UDWL.js} +1 -1
- package/dist/{chunk-BI3GMMTP.js → chunk-MAA3266Q.js} +1 -1
- package/dist/{chunk-LR3QFARI.js → chunk-MI4RRRX5.js} +24 -15
- package/dist/{chunk-LCZRXRB7.js → chunk-NCVFW4JS.js} +2 -2
- package/dist/{chunk-UYFPFO6Q.js → chunk-OCYP6VU6.js} +6 -6
- package/dist/{chunk-DKWTDULH.js → chunk-PNLYLN6K.js} +2 -2
- package/dist/{chunk-VA42PIIY.js → chunk-QASVYG2B.js} +1 -1
- package/dist/{chunk-MQB2BE3I.js → chunk-QC34Z6ZI.js} +1 -1
- package/dist/{chunk-NWUWTV7B.js → chunk-QLQCSJC4.js} +1 -1
- package/dist/{chunk-F4OU2ETP.js → chunk-QUPRWJKI.js} +91 -39
- package/dist/{chunk-5PZ3HSGP.js → chunk-ROTT6N5K.js} +19 -40
- package/dist/{chunk-4YSDLTCT.js → chunk-SCP545OR.js} +4 -4
- package/dist/{chunk-U7M7ZURS.js → chunk-SI5TLMB6.js} +2 -2
- package/dist/{chunk-S3FDCJNF.js → chunk-SRQXDGUO.js} +6 -6
- package/dist/{chunk-4OHIVMHS.js → chunk-T2WBLUN7.js} +1 -1
- package/dist/{chunk-AJOZXJLJ.js → chunk-TBO4RYRU.js} +1 -1
- package/dist/{chunk-DUDPJVAC.js → chunk-TGR3H3DM.js} +3 -3
- package/dist/{chunk-UB7E2FEB.js → chunk-TLXIKKEG.js} +3 -3
- package/dist/{chunk-UKCSMGNM.js → chunk-UAAOJHVR.js} +2 -2
- package/dist/{chunk-AOJHEMHE.js → chunk-V3YNF3JK.js} +49 -62
- package/dist/{chunk-2OG5NAO2.js → chunk-V6O4GN5M.js} +1 -13
- package/dist/{chunk-FZ23OZL3.js → chunk-VAOAI6DS.js} +6 -0
- package/dist/{chunk-TSPBIMZV.js → chunk-VH2CK32C.js} +1 -1
- package/dist/{chunk-BKEJSHDE.js → chunk-VISRYICE.js} +1 -1
- package/dist/{chunk-SOHGHGWU.js → chunk-VTQRACP7.js} +2 -2
- package/dist/{chunk-E2KEN3PG.js → chunk-WDN5IY66.js} +1 -1
- package/dist/{chunk-55LEDLDE.js → chunk-WLW7QV2C.js} +3 -3
- package/dist/{chunk-P2YTTKPR.js → chunk-XCTQO7TN.js} +1 -1
- package/dist/{chunk-LGPTAJZC.js → chunk-XMAP37LE.js} +1 -1
- package/dist/{chunk-CHXX73NX.js → chunk-XSF6G7O2.js} +3 -3
- package/dist/{chunk-ITJMONDK.js → chunk-YEXCXJRS.js} +1 -1
- package/dist/{chunk-4JZNDVZH.js → chunk-YGHMRSH5.js} +4 -5
- package/dist/{chunk-7BPUBHGW.js → chunk-YPQMQWA2.js} +2 -2
- package/dist/{chunk-JMMY24KD.js → chunk-YRLMCI3J.js} +4 -4
- package/dist/{chunk-LD6WE7DK.js → chunk-YSRJHKHL.js} +2 -2
- package/dist/{chunk-6EZRMPDA.js → chunk-ZCYQZQTA.js} +1 -1
- package/dist/{chunk-LNX37VPO.js → chunk-ZK3WQY7Q.js} +2 -2
- package/dist/{code-context-index-XCX6HB3T.js → code-context-index-WCJ6RWCY.js} +5 -5
- package/dist/{conversation-entity-extractor-FJNOZ4DO.js → conversation-entity-extractor-7S4JFUOM.js} +1 -1
- package/dist/{conversation-wiki-populator-HAW3EQD5.js → conversation-wiki-populator-H6WM5SFU.js} +1 -1
- package/dist/{crdt-sync-WXVYQ5ZO.js → crdt-sync-WYAIMNUX.js} +1 -1
- package/dist/{crm-webhook-HGUHXI6W.js → crm-webhook-PIFEQH7A.js} +2 -2
- package/dist/{cto-delegation-gate-RJ5EVOY3.js → cto-delegation-gate-MKIVEDB4.js} +10 -10
- package/dist/{daemon-auth-VXM7MOF4.js → daemon-auth-5WZWXJWL.js} +3 -3
- package/dist/{daemon-orchestration-3E3BIK7E.js → daemon-orchestration-RZLIILS6.js} +14 -14
- package/dist/{db-backup-YHDR4SXR.js → db-backup-K2M7HENN.js} +3 -3
- package/dist/{exe-drift-DBY7PC3H.js → exe-drift-2LL7OCRF.js} +5 -5
- package/dist/{exe-export-FQPQCBDA.js → exe-export-TQZ6FVKC.js} +8 -8
- package/dist/{exe-import-7CML2REU.js → exe-import-PB3VIFF7.js} +8 -8
- package/dist/{exe-key-KNR4LT2L.js → exe-key-BZTGYI2O.js} +5 -5
- package/dist/{exe-org-QKK7M6FR.js → exe-org-7ZJNIBL2.js} +3 -3
- package/dist/{fast-db-init-ADRYLHUA.js → fast-db-init-TLDOE64G.js} +1 -1
- package/dist/gateway/index.js +9 -9
- package/dist/{gateway-client-CJNSI4GG.js → gateway-client-E4UWC45R.js} +1 -1
- package/dist/{git-staleness-OL7J5CXL.js → git-staleness-QXWQPH74.js} +4 -4
- package/dist/{git-task-sweep-O4OIPQB3.js → git-task-sweep-HELKXKNQ.js} +11 -11
- package/dist/{global-procedures-L7AN2A5W.js → global-procedures-4BN6BD4N.js} +5 -5
- package/dist/{graph-rag-V3JU7GYG.js → graph-rag-73U3RTBB.js} +1 -1
- package/dist/{hook-integrity-HESSTSAK.js → hook-integrity-LAWB6YQH.js} +1 -1
- package/dist/hooks/bug-report-worker.js +13 -13
- package/dist/hooks/codex-stop-task-finalizer.js +13 -13
- package/dist/hooks/commit-complete.js +13 -13
- package/dist/hooks/error-recall.js +9 -9
- package/dist/hooks/exe-heartbeat-hook.js +5 -5
- package/dist/hooks/ingest-worker.js +6 -6
- package/dist/hooks/ingest.js +13 -13
- package/dist/hooks/instructions-loaded.js +6 -6
- package/dist/hooks/notification.js +6 -6
- package/dist/hooks/post-compact.js +12 -12
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +17 -17
- package/dist/hooks/pre-tool-use.js +16 -16
- package/dist/hooks/prompt-submit.js +48 -31
- package/dist/hooks/session-end.js +21 -21
- package/dist/hooks/session-start.js +8 -8
- package/dist/hooks/stop.js +39 -18
- package/dist/hooks/subagent-stop.js +12 -12
- package/dist/hooks/summary-worker.js +21 -21
- package/dist/index.js +18 -18
- package/dist/{installer-JF7ARD2O.js → installer-2O362XY7.js} +8 -8
- package/dist/{installer-4YA7JGL4.js → installer-BIDJSBAP.js} +8 -8
- package/dist/{installer-ZF7VAXAE.js → installer-OYGB6GAI.js} +8 -8
- package/dist/{key-backup-status-M4W77D3P.js → key-backup-status-2CMNBKEM.js} +2 -2
- package/dist/lib/agent-config.js +3 -3
- package/dist/lib/cloud-sync.js +7 -7
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +8 -8
- package/dist/lib/database.js +4 -4
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db.js +4 -4
- package/dist/lib/device-registry.js +2 -2
- package/dist/lib/embedder.js +5 -5
- package/dist/lib/employee-templates.js +6 -6
- package/dist/lib/employees.js +4 -4
- package/dist/lib/exe-daemon-client.js +4 -4
- package/dist/lib/exe-daemon.js +157 -84
- package/dist/lib/hybrid-search.js +8 -8
- package/dist/lib/identity.js +4 -4
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +11 -11
- package/dist/lib/reminders.js +5 -5
- package/dist/lib/schedules.js +8 -8
- package/dist/lib/skill-learning.js +6 -6
- package/dist/lib/store.js +7 -7
- package/dist/lib/task-router.js +5 -5
- package/dist/lib/tasks.js +12 -12
- package/dist/lib/tmux-routing.js +10 -10
- package/dist/lib/token-spend.js +5 -5
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-P6NDW4Z3.js → license-gate-PAW5WWP6.js} +4 -4
- package/dist/mcp/register-tools.js +61 -61
- package/dist/mcp/server.js +64 -64
- package/dist/mcp/tools/complete-reminder.js +6 -6
- package/dist/mcp/tools/create-reminder.js +6 -6
- package/dist/mcp/tools/create-task.js +14 -14
- package/dist/mcp/tools/deactivate-behavior.js +7 -7
- package/dist/mcp/tools/list-reminders.js +6 -6
- package/dist/mcp/tools/list-tasks.js +14 -14
- package/dist/mcp/tools/send-message.js +13 -13
- package/dist/mcp/tools/update-task.js +13 -13
- package/dist/{mcp-http-config-TIY7CLWB.js → mcp-http-config-GLSLF2OL.js} +5 -5
- package/dist/{memory-cards-MQBULX5V.js → memory-cards-PCZ2KWMN.js} +4 -4
- package/dist/{memory-poisoning-defense-EHSL5PZW.js → memory-poisoning-defense-JY4NU3AY.js} +4 -4
- package/dist/{memory-queue-6YCGHJLQ.js → memory-queue-7N7ZEY2K.js} +3 -3
- package/dist/memory-queue-client-W63JO34U.js +14 -0
- package/dist/{memory-reflection-OTJBCQWK.js → memory-reflection-IVHZRUQQ.js} +4 -4
- package/dist/{notifications-APKWB63A.js → notifications-FCTKUQAU.js} +10 -10
- package/dist/oauth-server-S45RTRRF.js +437 -0
- package/dist/{orchestration-phase-365P32CD.js → orchestration-phase-NTQZNPAZ.js} +3 -3
- package/dist/{orchestrator-W62CLQLP.js → orchestrator-VQL47YQP.js} +12 -12
- package/dist/{plan-limits-BO2HMJ6S.js → plan-limits-TK4424RV.js} +6 -6
- package/dist/{preferences-M7KQYRR2.js → preferences-5YRRHGXS.js} +2 -2
- package/dist/{projection-worker-6TGUPMLY.js → projection-worker-YIJ7Q66A.js} +3 -3
- package/dist/{push-notifications-2SBCAIA2.js → push-notifications-66EQCPHZ.js} +3 -3
- package/dist/{reranker-LV5BQIF4.js → reranker-2BSQ2V5M.js} +3 -3
- package/dist/runtime/index.js +13 -13
- package/dist/{session-events-SR2WX2X4.js → session-events-JZPK3UUM.js} +11 -11
- package/dist/{session-kill-telemetry-N2IKZK33.js → session-kill-telemetry-2IB6IQSS.js} +5 -5
- package/dist/{session-scope-S5DODJU4.js → session-scope-QPBPO5XV.js} +11 -11
- package/dist/setup-wizard-UFLDL2QP.js +12 -0
- package/dist/{shard-manager-3MDFLDOZ.js → shard-manager-IIII7AAS.js} +3 -3
- package/dist/{task-enforcement-L7EGD6LJ.js → task-enforcement-VDCQ5H3H.js} +10 -10
- package/dist/{task-scope-QNRAYD7S.js → task-scope-YIPIPEVK.js} +10 -10
- package/dist/{tasks-crud-JHHIROCS.js → tasks-crud-E4B3ORQX.js} +10 -10
- package/dist/{tasks-review-TXMVOOFN.js → tasks-review-6Y7IB572.js} +10 -10
- package/dist/token-budget-VX5ZTLAG.js +85 -0
- package/dist/{tool-capability-index-7OF3LF4X.js → tool-capability-index-JBS2FDIG.js} +1 -1
- package/dist/{tool-telemetry-QPGPBV5R.js → tool-telemetry-ASYRVRIY.js} +1 -1
- package/dist/tui/App.js +36 -29
- package/dist/{tui-data-65WM7L5Q.js → tui-data-UHFRO64P.js} +10 -10
- package/dist/{worker-gate-WM2RGEZE.js → worker-gate-CVWHVSX3.js} +3 -3
- package/dist/{workflow-engine-PK2TC7UE.js → workflow-engine-2XZK77ZX.js} +2 -2
- package/dist/{worktree-XQM3YNKR.js → worktree-O2DKCB33.js} +1 -1
- package/package.json +1 -1
- package/release-notes.json +158 -154
- package/dist/memory-queue-client-SZZDOZXE.js +0 -14
- package/dist/setup-wizard-H4TZHU36.js +0 -12
- /package/dist/{chunk-JZB67O4M.js → chunk-5OANXJSV.js} +0 -0
- /package/dist/{chunk-267IKUT5.js → chunk-CO7XAJJ2.js} +0 -0
- /package/dist/{chunk-NGAZPQQY.js → chunk-E3ZIGQH4.js} +0 -0
- /package/dist/{chunk-HBV3HSER.js → chunk-GGFH5MTN.js} +0 -0
- /package/dist/{chunk-72O7CSKA.js → chunk-QBLI377G.js} +0 -0
- /package/dist/{chunk-7A2YCQNM.js → chunk-TDIUACZ6.js} +0 -0
- /package/dist/{chunk-NSA2JWNP.js → chunk-V2UBYCSC.js} +0 -0
- /package/dist/{chunk-XIIVMIS4.js → chunk-VKFBVBAN.js} +0 -0
- /package/dist/{core-memory-N74JWH4M.js → core-memory-N2SN7CF5.js} +0 -0
- /package/dist/{entity-boost-27ENEPYC.js → entity-boost-62SBVNCD.js} +0 -0
- /package/dist/{message-queue-client-2YTGEB5H.js → message-queue-client-3RWYNZIR.js} +0 -0
- /package/dist/{webhook-pipe-VOUF2Y43.js → webhook-pipe-B6Z2QMRY.js} +0 -0
- /package/dist/{wiki-acl-BIEVKTJC.js → wiki-acl-OSBQJD2E.js} +0 -0
- /package/dist/{wiki-client-NGWOSMCV.js → wiki-client-TDZ74RHN.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCachedLicenseGate
|
|
3
|
+
} from "./chunk-LXX2UDWL.js";
|
|
1
4
|
import {
|
|
2
5
|
getToolUsageStats
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VKFBVBAN.js";
|
|
4
7
|
import {
|
|
5
8
|
AUTO_WAKE_MAX_RETRIES
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YRLMCI3J.js";
|
|
7
10
|
import {
|
|
8
11
|
getToolCapabilityIndex
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getCachedLicenseGate
|
|
12
|
-
} from "./chunk-DH6N5G4T.js";
|
|
12
|
+
} from "./chunk-CO7XAJJ2.js";
|
|
13
13
|
import {
|
|
14
14
|
isRerankerAvailable,
|
|
15
15
|
rerankWithScores
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TBO4RYRU.js";
|
|
17
17
|
import {
|
|
18
18
|
getEntityByName,
|
|
19
19
|
getEntityNeighbors,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-E6ORBQHP.js";
|
|
29
29
|
import {
|
|
30
30
|
listRecentSessionEvents
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KX3KLDG7.js";
|
|
32
32
|
import {
|
|
33
33
|
analyzeBlastRadius,
|
|
34
34
|
buildCodeContextIndex,
|
|
@@ -37,68 +37,68 @@ import {
|
|
|
37
37
|
searchCodeContext,
|
|
38
38
|
searchCodeContextSemantic,
|
|
39
39
|
traceCodeSymbol
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EYRQWVPQ.js";
|
|
41
41
|
import {
|
|
42
42
|
runDriftProbes
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EVP2WD5S.js";
|
|
44
44
|
import {
|
|
45
45
|
exportOrchestration,
|
|
46
46
|
importOrchestration,
|
|
47
47
|
validatePackage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DUXNECD3.js";
|
|
49
49
|
import {
|
|
50
50
|
loadOrchestrationPhase,
|
|
51
51
|
setOrchestrationPhase
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-A46SAHYB.js";
|
|
53
53
|
import {
|
|
54
54
|
createOrRefreshResumeTask,
|
|
55
55
|
init_capacity_monitor
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-TLXIKKEG.js";
|
|
57
57
|
import {
|
|
58
58
|
registerCompleteReminder
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XMAP37LE.js";
|
|
60
60
|
import {
|
|
61
61
|
registerDeactivateBehavior
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-TGR3H3DM.js";
|
|
63
63
|
import {
|
|
64
64
|
registerSendMessage
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7YZJUTQ4.js";
|
|
66
66
|
import {
|
|
67
67
|
registerCreateTask
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-AV4RLRM2.js";
|
|
69
69
|
import {
|
|
70
70
|
registerListTasks
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-C54PGWHV.js";
|
|
72
72
|
import {
|
|
73
73
|
registerUpdateTask
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-76R35J76.js";
|
|
75
75
|
import {
|
|
76
76
|
registerCreateReminder
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5JIVAJJU.js";
|
|
78
78
|
import {
|
|
79
79
|
registerListReminders
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-VH2CK32C.js";
|
|
81
81
|
import {
|
|
82
82
|
completeReminder,
|
|
83
83
|
createReminder,
|
|
84
84
|
listReminders
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-VISRYICE.js";
|
|
86
86
|
import {
|
|
87
87
|
status
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-EHF676BW.js";
|
|
89
89
|
import {
|
|
90
90
|
TOKENS_PER_IDLE_MINUTE,
|
|
91
91
|
countKillsSince,
|
|
92
92
|
init_session_kill_telemetry,
|
|
93
93
|
sumTokensSavedSince
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-AYUYBWGD.js";
|
|
95
95
|
import {
|
|
96
96
|
getAgentSpend
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-3RT5V3M4.js";
|
|
98
98
|
import {
|
|
99
99
|
createSchedule,
|
|
100
100
|
parseHumanCron
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-ZK3WQY7Q.js";
|
|
102
102
|
import {
|
|
103
103
|
exportGraphHTML,
|
|
104
104
|
generateGraphReport
|
|
@@ -106,44 +106,44 @@ import {
|
|
|
106
106
|
import {
|
|
107
107
|
entityId,
|
|
108
108
|
mergeEntities
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-QUPRWJKI.js";
|
|
110
110
|
import {
|
|
111
111
|
formatReport,
|
|
112
112
|
runAudit
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-SRQXDGUO.js";
|
|
114
114
|
import {
|
|
115
115
|
runHealthCheck
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-NCVFW4JS.js";
|
|
117
117
|
import {
|
|
118
118
|
hasFailures,
|
|
119
119
|
runHealth,
|
|
120
120
|
runTest
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-IUQL3KZV.js";
|
|
122
122
|
import {
|
|
123
123
|
findSimilarTrajectories,
|
|
124
124
|
hashSignature,
|
|
125
125
|
init_skill_learning
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-CNNT4QSN.js";
|
|
127
127
|
import {
|
|
128
128
|
deactivateBehavior,
|
|
129
129
|
init_behaviors,
|
|
130
130
|
listBehaviorsByDomain,
|
|
131
131
|
storeBehavior
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-BNH4LWKE.js";
|
|
133
133
|
import {
|
|
134
134
|
countUnconsolidated,
|
|
135
135
|
groupMemories,
|
|
136
136
|
runConsolidation,
|
|
137
137
|
selectUnconsolidated
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-SI5TLMB6.js";
|
|
139
139
|
import {
|
|
140
140
|
renderClientCOOTemplate
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-ZCYQZQTA.js";
|
|
142
142
|
import {
|
|
143
143
|
deactivateGlobalProcedure,
|
|
144
144
|
loadGlobalProcedures,
|
|
145
145
|
storeGlobalProcedure
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-52LCN4JK.js";
|
|
147
147
|
import {
|
|
148
148
|
PLATFORM_PROCEDURES
|
|
149
149
|
} from "./chunk-WZDI6UJ6.js";
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
cloudSync,
|
|
153
153
|
getCloudReuploadRequired,
|
|
154
154
|
markCloudReuploadRequired
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-ROTT6N5K.js";
|
|
156
156
|
import {
|
|
157
157
|
crypto_exports,
|
|
158
158
|
init_crypto
|
|
@@ -163,22 +163,22 @@ import {
|
|
|
163
163
|
import {
|
|
164
164
|
embed,
|
|
165
165
|
init_embedder
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-T2WBLUN7.js";
|
|
167
167
|
import {
|
|
168
168
|
readMcpHttpEvents,
|
|
169
169
|
summarizeMcpTransport,
|
|
170
170
|
writeMcpTransportSummary
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-HHKKLWAI.js";
|
|
172
172
|
import {
|
|
173
173
|
init_tasks,
|
|
174
174
|
updateTask
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-47MZMRQZ.js";
|
|
176
176
|
import {
|
|
177
177
|
fastDbInit
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-TDIUACZ6.js";
|
|
179
179
|
import {
|
|
180
180
|
MAX_CONCURRENT_WORKERS
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-3XUWTXNC.js";
|
|
182
182
|
import {
|
|
183
183
|
getProjectName,
|
|
184
184
|
init_project_name
|
|
@@ -186,10 +186,10 @@ import {
|
|
|
186
186
|
import {
|
|
187
187
|
hybridSearch,
|
|
188
188
|
recentRecords
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-EZY3BNIW.js";
|
|
190
190
|
import {
|
|
191
191
|
getActiveAgent
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-HLYXFVVT.js";
|
|
193
193
|
import {
|
|
194
194
|
attachDocumentMetadata,
|
|
195
195
|
flushBatch,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
reserveVersions,
|
|
198
198
|
vectorToBlob,
|
|
199
199
|
writeMemory
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-MI4RRRX5.js";
|
|
201
201
|
import {
|
|
202
202
|
init_task_scope,
|
|
203
203
|
init_tasks_crud,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
tmux_routing_exports,
|
|
210
210
|
updateTaskStatus,
|
|
211
211
|
writeCheckpoint
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-V3YNF3JK.js";
|
|
213
213
|
import {
|
|
214
214
|
init_session_registry,
|
|
215
215
|
listSessions
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
init_agent_config,
|
|
223
223
|
loadAgentConfig,
|
|
224
224
|
setAgentRuntime
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-VTQRACP7.js";
|
|
226
226
|
import {
|
|
227
227
|
DEFAULT_RUNTIME,
|
|
228
228
|
init_runtime_table
|
|
@@ -233,7 +233,7 @@ import {
|
|
|
233
233
|
assertFeature,
|
|
234
234
|
assertMemoryLimit,
|
|
235
235
|
init_plan_limits
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-67WOKLTZ.js";
|
|
237
237
|
import {
|
|
238
238
|
getAccountByName,
|
|
239
239
|
getDefaultAccount
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
createNewTrigger,
|
|
243
243
|
isScheduledTrigger,
|
|
244
244
|
loadTriggers
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-QBLI377G.js";
|
|
246
246
|
import {
|
|
247
247
|
pushConversationToCRM
|
|
248
248
|
} from "./chunk-GCNWCYJI.js";
|
|
@@ -264,10 +264,10 @@ import {
|
|
|
264
264
|
loadEmployeesSync,
|
|
265
265
|
saveEmployees,
|
|
266
266
|
updateIdentity
|
|
267
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-WLW7QV2C.js";
|
|
268
268
|
import {
|
|
269
269
|
getMasterKey
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-YGHMRSH5.js";
|
|
271
271
|
import {
|
|
272
272
|
checkForUpdate
|
|
273
273
|
} from "./chunk-MZIGUUDQ.js";
|
|
@@ -281,12 +281,12 @@ import {
|
|
|
281
281
|
readCachedLicenseToken,
|
|
282
282
|
saveLicense,
|
|
283
283
|
validateLicense
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-AFEXRICE.js";
|
|
285
285
|
import {
|
|
286
286
|
EXE_AI_DIR,
|
|
287
287
|
init_config,
|
|
288
288
|
loadConfig
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-QASVYG2B.js";
|
|
290
290
|
import {
|
|
291
291
|
__toCommonJS
|
|
292
292
|
} from "./chunk-KFQGP6VL.js";
|
|
@@ -880,7 +880,7 @@ async function searchConversations(query, limit) {
|
|
|
880
880
|
}
|
|
881
881
|
async function searchWiki(query, limit) {
|
|
882
882
|
try {
|
|
883
|
-
const { createWikiClient, chatInWorkspace, listWorkspaces } = await import("./wiki-client-
|
|
883
|
+
const { createWikiClient, chatInWorkspace, listWorkspaces } = await import("./wiki-client-TDZ74RHN.js");
|
|
884
884
|
const client = await createWikiClient();
|
|
885
885
|
if (!client) return [];
|
|
886
886
|
const workspaces = await listWorkspaces(client);
|
|
@@ -1425,7 +1425,7 @@ async function handleSupersede(input) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
try {
|
|
1427
1427
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
1428
|
-
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-
|
|
1428
|
+
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-NVYSMA2V.js");
|
|
1429
1429
|
const { writeMemory: writeMemory2, flushBatch: flushBatch2 } = await import("./lib/store.js");
|
|
1430
1430
|
const { randomUUID: randomUUID2 } = await import("crypto");
|
|
1431
1431
|
const client = getClient2();
|
|
@@ -1534,9 +1534,9 @@ function registerMemory(server) {
|
|
|
1534
1534
|
return handleSupersede(input);
|
|
1535
1535
|
}
|
|
1536
1536
|
if (action === "core_get" || action === "core_set" || action === "core_delete") {
|
|
1537
|
-
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-
|
|
1537
|
+
const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-NVYSMA2V.js");
|
|
1538
1538
|
const { agentId } = getActiveAgent2();
|
|
1539
|
-
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-
|
|
1539
|
+
const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-N2SN7CF5.js");
|
|
1540
1540
|
if (action === "core_get") {
|
|
1541
1541
|
const entries = await getCoreMemory(agentId);
|
|
1542
1542
|
const block = formatCoreMemoryBlock(entries);
|
|
@@ -2144,7 +2144,7 @@ function registerResumeEmployee(server) {
|
|
|
2144
2144
|
};
|
|
2145
2145
|
}
|
|
2146
2146
|
try {
|
|
2147
|
-
const { isTmuxSessionAlive } = await import("./tasks-crud-
|
|
2147
|
+
const { isTmuxSessionAlive } = await import("./tasks-crud-E4B3ORQX.js");
|
|
2148
2148
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2149
2149
|
for (const row of openTasks.rows) {
|
|
2150
2150
|
const status2 = String(row.status);
|
|
@@ -3003,8 +3003,8 @@ function registerIngestDocument(server) {
|
|
|
3003
3003
|
},
|
|
3004
3004
|
async (input) => {
|
|
3005
3005
|
try {
|
|
3006
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
3007
|
-
const { assertMemoryLimit: assertMemoryLimit2 } = await import("./plan-limits-
|
|
3006
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-TK4424RV.js");
|
|
3007
|
+
const { assertMemoryLimit: assertMemoryLimit2 } = await import("./plan-limits-TK4424RV.js");
|
|
3008
3008
|
await assertFeature2("wiki");
|
|
3009
3009
|
await assertMemoryLimit2();
|
|
3010
3010
|
const result3 = await ingestDocument(input);
|
|
@@ -3518,11 +3518,13 @@ function formatUnifiedResponse(data, opts) {
|
|
|
3518
3518
|
source: opts.source
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
|
+
var SAFE_COLUMN_RE = /^[a-zA-Z_][a-zA-Z0-9_.]*$/;
|
|
3521
3522
|
function buildStructuredFilterClauses(filters, columnMapping) {
|
|
3522
3523
|
if (!filters) return [];
|
|
3523
3524
|
const clauses = [];
|
|
3524
3525
|
for (const [field, value] of Object.entries(filters)) {
|
|
3525
3526
|
const column = columnMapping?.[field] ?? field;
|
|
3527
|
+
if (!SAFE_COLUMN_RE.test(column)) continue;
|
|
3526
3528
|
if (value === null || value === void 0) continue;
|
|
3527
3529
|
if (typeof value === "object" && !Array.isArray(value)) {
|
|
3528
3530
|
const filter = value;
|
|
@@ -5137,7 +5139,7 @@ async function getAgentSessionLoad() {
|
|
|
5137
5139
|
return { sessions: [], totalLive: 0, busySessions: 0, idleSessions: 0 };
|
|
5138
5140
|
}
|
|
5139
5141
|
const { getClient: getClient2 } = await import("./lib/database.js");
|
|
5140
|
-
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-
|
|
5142
|
+
const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-YIPIPEVK.js");
|
|
5141
5143
|
const client = getClient2();
|
|
5142
5144
|
const scope = sessionScopeFilter2();
|
|
5143
5145
|
for (const s of liveAgentSessions) {
|
|
@@ -5387,7 +5389,7 @@ async function cloudStatusText() {
|
|
|
5387
5389
|
args: [lastPushedMemoryVersion]
|
|
5388
5390
|
});
|
|
5389
5391
|
pendingMemoryCount = Number(pending.rows[0]?.cnt ?? 0);
|
|
5390
|
-
} catch (
|
|
5392
|
+
} catch (_err) {
|
|
5391
5393
|
pendingMemoryCount = -1;
|
|
5392
5394
|
}
|
|
5393
5395
|
const lines = [];
|
|
@@ -6739,7 +6741,7 @@ function registerCreateTrigger(server) {
|
|
|
6739
6741
|
}
|
|
6740
6742
|
},
|
|
6741
6743
|
async ({ name, event, conditions, actions, project, enabled, schedule, query }) => {
|
|
6742
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
6744
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-TK4424RV.js");
|
|
6743
6745
|
const gatedActions = {
|
|
6744
6746
|
send_whatsapp: "external_agents",
|
|
6745
6747
|
update_wiki: "wiki"
|
|
@@ -7643,7 +7645,7 @@ function registerConfig(server) {
|
|
|
7643
7645
|
const existing = loadEmployeesSync2();
|
|
7644
7646
|
if (existing.some((e) => e.name === employeeName)) return errorResult8(`Employee "${employeeName}" already exists.`);
|
|
7645
7647
|
try {
|
|
7646
|
-
const { assertEmployeeLimit: assertEmployeeLimit2 } = await import("./plan-limits-
|
|
7648
|
+
const { assertEmployeeLimit: assertEmployeeLimit2 } = await import("./plan-limits-TK4424RV.js");
|
|
7647
7649
|
await assertEmployeeLimit2();
|
|
7648
7650
|
} catch (e) {
|
|
7649
7651
|
return errorResult8(e instanceof Error ? e.message : "Employee limit reached.");
|
|
@@ -7684,7 +7686,7 @@ You are ${employeeName}. Role: ${role}.`, "utf-8");
|
|
|
7684
7686
|
}
|
|
7685
7687
|
try {
|
|
7686
7688
|
const { generateSessionWrappers } = await import("./lib/session-wrappers.js");
|
|
7687
|
-
const { resolvePackageRoot } = await import("./installer-
|
|
7689
|
+
const { resolvePackageRoot } = await import("./installer-2O362XY7.js");
|
|
7688
7690
|
generateSessionWrappers(resolvePackageRoot());
|
|
7689
7691
|
} catch {
|
|
7690
7692
|
}
|
|
@@ -7720,7 +7722,7 @@ function registerListWikiPages(server) {
|
|
|
7720
7722
|
}
|
|
7721
7723
|
},
|
|
7722
7724
|
async ({ workspace, folder }) => {
|
|
7723
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
7725
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-TK4424RV.js");
|
|
7724
7726
|
await assertFeature2("wiki");
|
|
7725
7727
|
const apiUrl = process.env.EXE_WIKI_API_URL;
|
|
7726
7728
|
const apiKey = process.env.EXE_WIKI_API_KEY;
|
|
@@ -7820,7 +7822,7 @@ function registerGetWikiPage(server) {
|
|
|
7820
7822
|
}
|
|
7821
7823
|
},
|
|
7822
7824
|
async ({ workspace, document_id, title }) => {
|
|
7823
|
-
const { assertFeature: assertFeature2 } = await import("./plan-limits-
|
|
7825
|
+
const { assertFeature: assertFeature2 } = await import("./plan-limits-TK4424RV.js");
|
|
7824
7826
|
await assertFeature2("wiki");
|
|
7825
7827
|
const apiUrl = process.env.EXE_WIKI_API_URL;
|
|
7826
7828
|
const apiKey = process.env.EXE_WIKI_API_KEY;
|
|
@@ -8015,7 +8017,7 @@ function registerWiki(server) {
|
|
|
8015
8017
|
if (!legacyToolName) return errorResult9(`Unknown wiki action: ${String(input.action)}`);
|
|
8016
8018
|
const { action: _action, user_id, ...legacyArgs } = input;
|
|
8017
8019
|
if (user_id && legacyArgs.workspace) {
|
|
8018
|
-
const { checkWikiAccess } = await import("./wiki-acl-
|
|
8020
|
+
const { checkWikiAccess } = await import("./wiki-acl-OSBQJD2E.js");
|
|
8019
8021
|
const { allowed } = await checkWikiAccess(
|
|
8020
8022
|
String(user_id),
|
|
8021
8023
|
String(legacyArgs.workspace),
|
|
@@ -9182,7 +9184,7 @@ function registerWorkflowTool(server) {
|
|
|
9182
9184
|
getWorkflowInstance,
|
|
9183
9185
|
listWorkflowInstances,
|
|
9184
9186
|
approveWorkflowStep
|
|
9185
|
-
} = await import("./workflow-engine-
|
|
9187
|
+
} = await import("./workflow-engine-2XZK77ZX.js");
|
|
9186
9188
|
try {
|
|
9187
9189
|
switch (input.action) {
|
|
9188
9190
|
case "create_workflow": {
|
|
@@ -10910,13 +10912,64 @@ async function handleDrift(input) {
|
|
|
10910
10912
|
};
|
|
10911
10913
|
}
|
|
10912
10914
|
|
|
10915
|
+
// src/mcp/rate-limiter.ts
|
|
10916
|
+
var DEFAULT_MAX_CALLS_PER_MINUTE = 100;
|
|
10917
|
+
var WINDOW_MS = 6e4;
|
|
10918
|
+
var windows = /* @__PURE__ */ new Map();
|
|
10919
|
+
var McpRateLimitError = class extends Error {
|
|
10920
|
+
constructor(toolName, limit) {
|
|
10921
|
+
super(
|
|
10922
|
+
`Rate limit exceeded: tool "${toolName}" called more than ${limit} times in the last minute. This usually indicates an agent loop. Wait 60 seconds or check for stuck loops.`
|
|
10923
|
+
);
|
|
10924
|
+
this.name = "McpRateLimitError";
|
|
10925
|
+
}
|
|
10926
|
+
};
|
|
10927
|
+
function checkRateLimit(toolName, agentId = "unknown", maxCalls = DEFAULT_MAX_CALLS_PER_MINUTE) {
|
|
10928
|
+
const key = `${agentId}::${toolName}`;
|
|
10929
|
+
const now = Date.now();
|
|
10930
|
+
const cutoff = now - WINDOW_MS;
|
|
10931
|
+
let timestamps = windows.get(key);
|
|
10932
|
+
if (!timestamps) {
|
|
10933
|
+
timestamps = [];
|
|
10934
|
+
windows.set(key, timestamps);
|
|
10935
|
+
}
|
|
10936
|
+
const firstValid = timestamps.findIndex((t) => t > cutoff);
|
|
10937
|
+
if (firstValid > 0) {
|
|
10938
|
+
timestamps.splice(0, firstValid);
|
|
10939
|
+
} else if (firstValid === -1) {
|
|
10940
|
+
timestamps.length = 0;
|
|
10941
|
+
}
|
|
10942
|
+
if (timestamps.length >= maxCalls) {
|
|
10943
|
+
throw new McpRateLimitError(toolName, maxCalls);
|
|
10944
|
+
}
|
|
10945
|
+
timestamps.push(now);
|
|
10946
|
+
}
|
|
10947
|
+
var mcpRateLimiter = {
|
|
10948
|
+
check: checkRateLimit,
|
|
10949
|
+
/** Reset all windows — useful for tests. */
|
|
10950
|
+
reset() {
|
|
10951
|
+
windows.clear();
|
|
10952
|
+
}
|
|
10953
|
+
};
|
|
10954
|
+
|
|
10913
10955
|
// src/mcp/register-tools.ts
|
|
10956
|
+
function resolveAgentIdForRateLimit() {
|
|
10957
|
+
return process.env.AGENT_ID || "unknown";
|
|
10958
|
+
}
|
|
10914
10959
|
var ALWAYS_ALLOWED = /* @__PURE__ */ new Set([
|
|
10915
10960
|
"registerMcpPing",
|
|
10916
10961
|
"registerGetLicenseStatus",
|
|
10917
10962
|
"registerActivateLicense"
|
|
10918
10963
|
]);
|
|
10919
10964
|
function registerAllTools(server, license, hasKey) {
|
|
10965
|
+
const originalRegisterTool = server.registerTool.bind(server);
|
|
10966
|
+
server.registerTool = (toolName, config, handler) => {
|
|
10967
|
+
const wrappedHandler = handler ? (args, extra) => {
|
|
10968
|
+
mcpRateLimiter.check(toolName, resolveAgentIdForRateLimit());
|
|
10969
|
+
return handler(args, extra);
|
|
10970
|
+
} : void 0;
|
|
10971
|
+
return originalRegisterTool(toolName, config, wrappedHandler);
|
|
10972
|
+
};
|
|
10920
10973
|
const gate = (name, fn) => {
|
|
10921
10974
|
if (!isToolAllowed(name)) return;
|
|
10922
10975
|
if (hasKey === false && !ALWAYS_ALLOWED.has(name)) return;
|
|
@@ -11149,6 +11202,7 @@ function registerAllTools(server, license, hasKey) {
|
|
|
11149
11202
|
gate("registerWorkflowTool", registerWorkflowTool);
|
|
11150
11203
|
}
|
|
11151
11204
|
gate("registerFileCopy", registerFileCopy);
|
|
11205
|
+
server.registerTool = originalRegisterTool;
|
|
11152
11206
|
}
|
|
11153
11207
|
|
|
11154
11208
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_tasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-47MZMRQZ.js";
|
|
4
4
|
import {
|
|
5
5
|
getProjectName,
|
|
6
6
|
init_project_name
|
|
7
7
|
} from "./chunk-TOR5ZPKF.js";
|
|
8
8
|
import {
|
|
9
9
|
getActiveAgent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HLYXFVVT.js";
|
|
11
11
|
import {
|
|
12
12
|
listTasks
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V3YNF3JK.js";
|
|
14
14
|
|
|
15
15
|
// src/mcp/tools/list-tasks.ts
|
|
16
16
|
init_tasks();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_behaviors,
|
|
3
3
|
storeBehavior
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BNH4LWKE.js";
|
|
5
5
|
import {
|
|
6
6
|
getClient,
|
|
7
7
|
init_database
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WLW7QV2C.js";
|
|
9
9
|
import {
|
|
10
10
|
init_config,
|
|
11
11
|
loadConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QASVYG2B.js";
|
|
13
13
|
import {
|
|
14
14
|
__esm
|
|
15
15
|
} from "./chunk-KFQGP6VL.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
init_identity,
|
|
9
9
|
listIdentities,
|
|
10
10
|
updateIdentity
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WLW7QV2C.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteJsonSync,
|
|
14
14
|
init_secure_files
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VAOAI6DS.js";
|
|
16
16
|
|
|
17
17
|
// src/lib/orchestration-package.ts
|
|
18
18
|
init_secure_files();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fastDbInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TDIUACZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
init_task_scope,
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V3YNF3JK.js";
|
|
8
8
|
import {
|
|
9
9
|
formatStatusAll,
|
|
10
10
|
formatStatusDeep,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
init_employees,
|
|
19
19
|
isCoordinatorRole,
|
|
20
20
|
loadEmployees
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WLW7QV2C.js";
|
|
22
22
|
import {
|
|
23
23
|
isMainModule
|
|
24
24
|
} from "./chunk-6Y4B3QF6.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
listWorkflowDefinitions,
|
|
3
3
|
runWorkflow,
|
|
4
4
|
startWorkflow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WDN5IY66.js";
|
|
6
6
|
import {
|
|
7
7
|
initCRMBridge
|
|
8
8
|
} from "./chunk-GCNWCYJI.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
getClient,
|
|
15
15
|
init_database
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WLW7QV2C.js";
|
|
17
17
|
|
|
18
18
|
// src/gateway/router.ts
|
|
19
19
|
function matchesPlatform(msgPlatform, matchPlatform) {
|
|
@@ -334,12 +334,12 @@ async function sinkCRM(msg, agentResponse, agentName) {
|
|
|
334
334
|
}
|
|
335
335
|
async function sinkWiki(msg, agentResponse) {
|
|
336
336
|
try {
|
|
337
|
-
const { createWikiClient } = await import("./wiki-client-
|
|
337
|
+
const { createWikiClient } = await import("./wiki-client-TDZ74RHN.js");
|
|
338
338
|
const client = await createWikiClient();
|
|
339
339
|
if (!client) return false;
|
|
340
340
|
const content = msg.text ?? "";
|
|
341
341
|
if (content.length < 50) return false;
|
|
342
|
-
const { chatInWorkspace } = await import("./wiki-client-
|
|
342
|
+
const { chatInWorkspace } = await import("./wiki-client-TDZ74RHN.js");
|
|
343
343
|
const ingestText = [
|
|
344
344
|
`[${msg.platform}] Message from ${msg.senderName ?? msg.senderId} (${msg.timestamp}):`,
|
|
345
345
|
content,
|
|
@@ -358,8 +358,8 @@ Agent response: ${agentResponse}` : ""
|
|
|
358
358
|
}
|
|
359
359
|
async function sinkEntityExtraction(msg, agentResponse, agentName) {
|
|
360
360
|
try {
|
|
361
|
-
const { extractFromConversation } = await import("./conversation-entity-extractor-
|
|
362
|
-
const { storeExtraction } = await import("./graph-rag-
|
|
361
|
+
const { extractFromConversation } = await import("./conversation-entity-extractor-7S4JFUOM.js");
|
|
362
|
+
const { storeExtraction } = await import("./graph-rag-73U3RTBB.js");
|
|
363
363
|
if ((msg.text?.length ?? 0) < 20) return false;
|
|
364
364
|
if (msg.isHistorical) return false;
|
|
365
365
|
const extraction = await extractFromConversation(msg, agentResponse, agentName);
|
|
@@ -367,7 +367,7 @@ async function sinkEntityExtraction(msg, agentResponse, agentName) {
|
|
|
367
367
|
const client = getClient();
|
|
368
368
|
const memoryId = `conv:${msg.messageId}`;
|
|
369
369
|
await storeExtraction(client, extraction, memoryId, msg.timestamp);
|
|
370
|
-
import("./conversation-wiki-populator-
|
|
370
|
+
import("./conversation-wiki-populator-H6WM5SFU.js").then(
|
|
371
371
|
({ populateWikiFromExtraction }) => populateWikiFromExtraction(extraction, msg, agentResponse, agentName)
|
|
372
372
|
).catch((err) => {
|
|
373
373
|
process.stderr.write(
|