@askexenow/exe-os 0.9.140 → 0.9.142
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-GFBVE3ES.js → active-agent-OTOFSYIV.js} +6 -4
- package/dist/{active-agent-M3ZT74AM.js → active-agent-PNV6PKJK.js} +6 -4
- package/dist/{agentic-ontology-QRNPGDIM.js → agentic-ontology-GYJZMRNB.js} +1 -1
- package/dist/{backfill-metadata-DI7R3MXV.js → backfill-metadata-EDLDTB2G.js} +9 -11
- package/dist/{background-jobs-LUEOBAVF.js → background-jobs-TBUOKMJR.js} +3 -3
- package/dist/{behaviors-KTEEQ3KG.js → behaviors-GE4RY2HA.js} +5 -6
- package/dist/bin/age-ontology-load.js +3 -3
- package/dist/bin/agentic-ontology-backfill.js +9 -10
- package/dist/bin/agentic-reflection-backfill.js +10 -11
- package/dist/bin/agentic-semantic-label.js +9 -10
- package/dist/bin/backfill-conversations.js +11 -13
- package/dist/bin/backfill-responses.js +11 -13
- package/dist/bin/backfill-vectors.js +11 -12
- package/dist/bin/bulk-sync-postgres.js +10 -11
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +11 -12
- package/dist/bin/cli.js +18 -18
- package/dist/bin/exe-agent-config.js +6 -4
- package/dist/bin/exe-agent.js +7 -8
- package/dist/bin/exe-assign.js +12 -13
- package/dist/bin/exe-boot.js +23 -25
- package/dist/bin/exe-call.js +8 -9
- package/dist/bin/exe-cloud.js +9 -10
- package/dist/bin/exe-dispatch.js +11 -12
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +10 -11
- package/dist/bin/exe-forget.js +9 -10
- package/dist/bin/exe-gateway.js +9 -10
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +13 -15
- package/dist/bin/exe-kill.js +9 -10
- package/dist/bin/exe-launch-agent.js +31 -19
- package/dist/bin/exe-new-employee.js +11 -12
- package/dist/bin/exe-pending-messages.js +12 -13
- package/dist/bin/exe-pending-notifications.js +11 -12
- package/dist/bin/exe-pending-reviews.js +11 -12
- package/dist/bin/exe-rename.js +13 -10
- package/dist/bin/exe-review.js +16 -18
- package/dist/bin/exe-search.js +8 -9
- package/dist/bin/exe-session-cleanup.js +16 -17
- package/dist/bin/exe-settings.js +9 -10
- package/dist/bin/exe-start-codex.js +16 -17
- package/dist/bin/exe-start-opencode.js +12 -13
- package/dist/bin/exe-status.js +12 -13
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +7 -9
- package/dist/bin/git-sweep.js +11 -12
- package/dist/bin/graph-backfill.js +10 -10
- package/dist/bin/graph-export.js +8 -9
- package/dist/bin/install.js +10 -8
- 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/pre-publish.js +1 -1
- package/dist/bin/scan-tasks.js +11 -12
- package/dist/bin/setup.js +4 -4
- package/dist/bin/shard-migrate.js +8 -9
- package/dist/bin/stack-update.js +3 -3
- package/dist/{branding-EKPE6CWW.js → branding-EKI27T6K.js} +2 -2
- package/dist/{capacity-monitor-HGD2C6CP.js → capacity-monitor-D3RGDLMN.js} +12 -13
- package/dist/{catchup-brief-OMDCLETB.js → catchup-brief-LD2QLE2D.js} +14 -15
- package/dist/{chunk-2JAEWE7P.js → chunk-25QUV6FU.js} +6 -6
- package/dist/{chunk-OIUPHIN2.js → chunk-2NWMGMNH.js} +9 -9
- package/dist/{chunk-CLIW2CES.js → chunk-32Z4GK25.js} +8 -10
- package/dist/{chunk-3SPQNGRT.js → chunk-4AZYVT6A.js} +1 -1
- package/dist/{chunk-5K3CCPNX.js → chunk-4CBBN2XD.js} +245 -111
- package/dist/{chunk-3WSH4P4Z.js → chunk-4GA5XZWY.js} +2 -2
- package/dist/{chunk-XUHFQHGZ.js → chunk-4JZNDVZH.js} +37 -4
- package/dist/{chunk-CSVYC6HH.js → chunk-4OHIVMHS.js} +1 -1
- package/dist/{chunk-STVJLWSA.js → chunk-4YSDLTCT.js} +4 -4
- package/dist/{chunk-UEWGUOXB.js → chunk-55LEDLDE.js} +499 -27
- package/dist/{chunk-UOCQQHZT.js → chunk-5PZ3HSGP.js} +87 -48
- package/dist/{chunk-7SVGVGE3.js → chunk-5UCBVXKO.js} +1 -1
- package/dist/{chunk-SQLEKC4E.js → chunk-6EZRMPDA.js} +1 -1
- package/dist/{chunk-35FFFDS2.js → chunk-6V6UTSOP.js} +1 -1
- package/dist/{chunk-LPG22IL5.js → chunk-7BPUBHGW.js} +2 -2
- package/dist/{chunk-4YNGDNDI.js → chunk-7M3DNYMR.js} +4 -4
- package/dist/{chunk-H24OVCAN.js → chunk-AJOZXJLJ.js} +1 -1
- package/dist/{chunk-YWCPAQBH.js → chunk-AOJHEMHE.js} +36 -15
- package/dist/{chunk-YYB6HGEY.js → chunk-BI3GMMTP.js} +1 -1
- package/dist/{chunk-3TTJPQAE.js → chunk-BKEJSHDE.js} +1 -1
- package/dist/{chunk-SCGCHM2H.js → chunk-BSSSCUQJ.js} +3 -3
- package/dist/{chunk-XDJWGR2S.js → chunk-CBSUVFZ7.js} +2 -2
- package/dist/{chunk-54MB5TNF.js → chunk-CHXX73NX.js} +2 -2
- package/dist/{chunk-5LJQSXUG.js → chunk-CK5ZAMWX.js} +3 -3
- package/dist/{chunk-VTZ4QOBS.js → chunk-CQX2WDI5.js} +1 -1
- package/dist/{chunk-7HZFWAIR.js → chunk-DH6N5G4T.js} +1 -1
- package/dist/{chunk-QVVV6DHI.js → chunk-DKWTDULH.js} +2 -2
- package/dist/{chunk-GUDCQBRY.js → chunk-DU4ZN7VF.js} +1 -1
- package/dist/{chunk-PS4UUDIG.js → chunk-DUDPJVAC.js} +5 -7
- package/dist/{chunk-5PB6BRLA.js → chunk-E2KEN3PG.js} +1 -1
- package/dist/{chunk-Q3MIJPXM.js → chunk-EAVACBVO.js} +2 -2
- package/dist/{chunk-FCO2K73K.js → chunk-EENNKZMN.js} +3 -3
- package/dist/{chunk-QUG6EMZQ.js → chunk-EZUWMBWA.js} +1 -1
- package/dist/{chunk-YKOW7KMK.js → chunk-F4OU2ETP.js} +23 -7
- package/dist/chunk-FZ23OZL3.js +78 -0
- package/dist/{chunk-KNEH2MGD.js → chunk-GIGLGGYL.js} +5 -5
- package/dist/{chunk-KNS5ETKF.js → chunk-GLVF7ENO.js} +1 -1
- package/dist/{chunk-D7BPHQGX.js → chunk-GOCW7Z6D.js} +2 -2
- package/dist/chunk-GUMRIUI5.js +63 -0
- package/dist/{chunk-HO4C7QMH.js → chunk-ITJMONDK.js} +1 -1
- package/dist/{chunk-OYBQKDV5.js → chunk-JAFHOB5P.js} +1 -1
- package/dist/{chunk-UE3BYGWY.js → chunk-JMMY24KD.js} +30 -15
- package/dist/{chunk-CYCRC2KN.js → chunk-JSVRX6IW.js} +30 -11
- package/dist/{chunk-ABCDEJUD.js → chunk-KCLL5ECT.js} +1 -1
- package/dist/{chunk-SPMZRVXK.js → chunk-LCZRXRB7.js} +2 -2
- package/dist/{chunk-XNWXVGEA.js → chunk-LD6WE7DK.js} +2 -2
- package/dist/{chunk-6EBG7VWN.js → chunk-LFVL3R6H.js} +2 -2
- package/dist/{chunk-RGKPVKUO.js → chunk-LGPTAJZC.js} +1 -1
- package/dist/{chunk-OX6D5AF3.js → chunk-LNX37VPO.js} +2 -2
- package/dist/{chunk-IU3CXV4S.js → chunk-LR3QFARI.js} +11 -11
- package/dist/{chunk-EWGZPTII.js → chunk-MQB2BE3I.js} +1 -1
- package/dist/{chunk-4ITOWLHX.js → chunk-MRX42FAS.js} +4 -6
- package/dist/{chunk-UCNCSKGH.js → chunk-N5MH3CN2.js} +3 -3
- package/dist/{chunk-QCJ3Y52V.js → chunk-NFX6MDEO.js} +1 -1
- package/dist/{chunk-F6PIXTHZ.js → chunk-NMG76472.js} +5 -7
- package/dist/{chunk-LUOLBU54.js → chunk-NMT6QFEE.js} +1 -1
- package/dist/{chunk-DEHYRM3I.js → chunk-NWUWTV7B.js} +1 -1
- package/dist/{chunk-2XUXMKX5.js → chunk-OC7FNHGA.js} +4 -4
- package/dist/{chunk-SPKE5ANC.js → chunk-OI3REUP5.js} +1 -1
- package/dist/{chunk-FLVDAA3Z.js → chunk-P2YTTKPR.js} +1 -1
- package/dist/{chunk-NX4WEVG6.js → chunk-Q53ZYTIU.js} +12 -8
- package/dist/{chunk-NTIWZFOJ.js → chunk-RZK7BZHP.js} +1 -1
- package/dist/{chunk-5WIEDLGY.js → chunk-S3FDCJNF.js} +6 -6
- package/dist/{chunk-SL47NHTE.js → chunk-SDYBAMPW.js} +2 -2
- package/dist/{chunk-2ZWYALO4.js → chunk-SFURTBMT.js} +1 -1
- package/dist/{chunk-HHV26QTD.js → chunk-SOHGHGWU.js} +5 -6
- package/dist/{chunk-73JE5PVU.js → chunk-TJI7DMBT.js} +7 -7
- package/dist/{chunk-O2RVWP3S.js → chunk-TSPBIMZV.js} +1 -1
- package/dist/{chunk-BZHXUKVC.js → chunk-U3Q3WNGY.js} +2 -2
- package/dist/{chunk-Z6BTUUPK.js → chunk-U7M7ZURS.js} +2 -2
- package/dist/{chunk-34O6PRWE.js → chunk-UB7E2FEB.js} +4 -6
- package/dist/{chunk-POU4ZLBM.js → chunk-UKCSMGNM.js} +2 -2
- package/dist/{chunk-BBVMIH76.js → chunk-UYFPFO6Q.js} +8 -8
- package/dist/{chunk-HIOFKHTO.js → chunk-UYNFWD54.js} +3 -3
- package/dist/{chunk-IG5XFUYJ.js → chunk-VA42PIIY.js} +25 -7
- package/dist/{chunk-DMFM77DV.js → chunk-WZDI6UJ6.js} +1 -1
- package/dist/{chunk-6LKDJ5WX.js → chunk-XOVQ43JR.js} +52 -10
- package/dist/{chunk-762FPANW.js → chunk-XRPIVNFS.js} +1 -1
- package/dist/{code-context-index-PIC37JSG.js → code-context-index-XCX6HB3T.js} +5 -5
- package/dist/{conversation-entity-extractor-HKSNDF4L.js → conversation-entity-extractor-FJNOZ4DO.js} +2 -1
- package/dist/{conversation-wiki-populator-7M5YYPXH.js → conversation-wiki-populator-HAW3EQD5.js} +1 -1
- package/dist/{crdt-sync-MDW6THU7.js → crdt-sync-WXVYQ5ZO.js} +1 -1
- package/dist/{crm-webhook-YZKCH7QB.js → crm-webhook-HGUHXI6W.js} +2 -2
- package/dist/{cto-delegation-gate-7SQNLKN7.js → cto-delegation-gate-RJ5EVOY3.js} +12 -14
- package/dist/{daemon-auth-6XMF4JG5.js → daemon-auth-VXM7MOF4.js} +3 -3
- package/dist/{daemon-orchestration-7YUD2H64.js → daemon-orchestration-3E3BIK7E.js} +14 -15
- package/dist/{db-backup-R4DLUO4C.js → db-backup-YHDR4SXR.js} +3 -3
- package/dist/{entity-boost-YQFREESI.js → entity-boost-27ENEPYC.js} +1 -1
- package/dist/{exe-drift-HKJONDA5.js → exe-drift-DBY7PC3H.js} +5 -7
- package/dist/{exe-export-TSZJEMWC.js → exe-export-FQPQCBDA.js} +9 -11
- package/dist/{exe-import-LAKNLCWI.js → exe-import-7CML2REU.js} +9 -11
- package/dist/{exe-key-ODHZVEGR.js → exe-key-KNR4LT2L.js} +5 -6
- package/dist/{exe-org-EVOEZY6H.js → exe-org-QKK7M6FR.js} +3 -3
- package/dist/{fast-db-init-6SRLEIFS.js → fast-db-init-ADRYLHUA.js} +1 -1
- package/dist/gateway/index.js +9 -10
- package/dist/{gateway-client-VFKE2WJX.js → gateway-client-CJNSI4GG.js} +1 -1
- package/dist/{git-staleness-H774CLPX.js → git-staleness-OL7J5CXL.js} +4 -5
- package/dist/{git-task-sweep-FMRECHV7.js → git-task-sweep-O4OIPQB3.js} +11 -12
- package/dist/{global-procedures-PYYMCJIW.js → global-procedures-L7AN2A5W.js} +6 -7
- package/dist/{graph-query-657O5JYJ.js → graph-query-JBQDJJFP.js} +2 -1
- package/dist/{graph-rag-ZE5N7C65.js → graph-rag-V3JU7GYG.js} +2 -1
- package/dist/{hook-integrity-S5EUKBL6.js → hook-integrity-HESSTSAK.js} +1 -1
- package/dist/hooks/bug-report-worker.js +13 -14
- package/dist/hooks/codex-stop-task-finalizer.js +13 -14
- package/dist/hooks/commit-complete.js +13 -14
- package/dist/hooks/error-recall.js +10 -11
- package/dist/hooks/exe-heartbeat-hook.js +6 -4
- package/dist/hooks/ingest-worker.js +6 -6
- package/dist/hooks/ingest.js +14 -12
- package/dist/hooks/instructions-loaded.js +10 -10
- package/dist/hooks/notification.js +7 -5
- package/dist/hooks/post-compact.js +12 -13
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +17 -18
- package/dist/hooks/pre-tool-use.js +34 -17
- package/dist/hooks/prompt-submit.js +22 -23
- package/dist/hooks/session-end.js +21 -22
- package/dist/hooks/session-start.js +8 -8
- package/dist/hooks/stop.js +18 -19
- package/dist/hooks/subagent-stop.js +12 -13
- package/dist/hooks/summary-worker.js +23 -25
- package/dist/index.js +18 -19
- package/dist/{installer-MIBTZDDM.js → installer-4YA7JGL4.js} +9 -7
- package/dist/{installer-3RTZXZ57.js → installer-JF7ARD2O.js} +9 -7
- package/dist/{installer-4G4YDLGY.js → installer-ZF7VAXAE.js} +9 -7
- package/dist/{key-backup-status-6BBOUM2S.js → key-backup-status-M4W77D3P.js} +2 -2
- package/dist/lib/agent-config.js +3 -3
- package/dist/lib/cloud-sync.js +7 -8
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +8 -9
- package/dist/lib/database.js +4 -5
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db.js +4 -5
- package/dist/lib/device-registry.js +2 -2
- package/dist/lib/embedder.js +5 -5
- package/dist/lib/employee-templates.js +7 -8
- package/dist/lib/employees.js +7 -3
- package/dist/lib/exe-daemon-client.js +4 -4
- package/dist/lib/exe-daemon.js +151 -59
- package/dist/lib/hybrid-search.js +8 -9
- package/dist/lib/identity-templates.js +1 -1
- package/dist/lib/identity.js +6 -6
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +11 -12
- package/dist/lib/reminders.js +5 -6
- package/dist/lib/schedules.js +8 -9
- package/dist/lib/skill-learning.js +6 -7
- package/dist/lib/status-brief.js +1 -1
- package/dist/lib/store.js +7 -8
- package/dist/lib/task-router.js +6 -4
- package/dist/lib/tasks.js +12 -13
- package/dist/lib/tmux-routing.js +10 -11
- package/dist/lib/token-spend.js +5 -6
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-746LFKMY.js → license-gate-P6NDW4Z3.js} +4 -4
- package/dist/mcp/register-tools.js +64 -65
- package/dist/mcp/server.js +66 -67
- package/dist/mcp/tools/complete-reminder.js +6 -7
- package/dist/mcp/tools/create-reminder.js +6 -7
- package/dist/mcp/tools/create-task.js +14 -15
- package/dist/mcp/tools/deactivate-behavior.js +7 -8
- package/dist/mcp/tools/list-reminders.js +6 -7
- package/dist/mcp/tools/list-tasks.js +14 -15
- package/dist/mcp/tools/send-message.js +13 -14
- package/dist/mcp/tools/update-task.js +13 -14
- package/dist/{mcp-http-config-RD5MJYJD.js → mcp-http-config-TIY7CLWB.js} +6 -4
- package/dist/{memory-cards-CS3QQQST.js → memory-cards-MQBULX5V.js} +4 -5
- package/dist/{memory-poisoning-defense-XPM34UJQ.js → memory-poisoning-defense-EHSL5PZW.js} +4 -5
- package/dist/{memory-queue-B332RRFX.js → memory-queue-6YCGHJLQ.js} +3 -3
- package/dist/memory-queue-client-SZZDOZXE.js +14 -0
- package/dist/{memory-reflection-GH5BOH7A.js → memory-reflection-OTJBCQWK.js} +4 -5
- package/dist/message-queue-client-2YTGEB5H.js +92 -0
- package/dist/{notifications-WWROKWFT.js → notifications-APKWB63A.js} +10 -11
- package/dist/{orchestration-phase-SBCILK4O.js → orchestration-phase-365P32CD.js} +3 -3
- package/dist/{orchestrator-V3EMR3AU.js → orchestrator-W62CLQLP.js} +12 -13
- package/dist/{plan-limits-AMJUHUCR.js → plan-limits-BO2HMJ6S.js} +6 -7
- package/dist/{preferences-MW3BYTQ5.js → preferences-M7KQYRR2.js} +2 -2
- package/dist/{projection-worker-2YXEQRKI.js → projection-worker-6TGUPMLY.js} +3 -3
- package/dist/{push-notifications-NYQZGUJT.js → push-notifications-2SBCAIA2.js} +3 -3
- package/dist/{reranker-ZU3GWEBG.js → reranker-LV5BQIF4.js} +3 -3
- package/dist/runtime/index.js +13 -14
- package/dist/{session-events-RCAUFPNG.js → session-events-SR2WX2X4.js} +11 -12
- package/dist/{session-kill-telemetry-GUN2M2LJ.js → session-kill-telemetry-N2IKZK33.js} +5 -6
- package/dist/{session-scope-NGLL42BM.js → session-scope-S5DODJU4.js} +11 -12
- package/dist/setup-wizard-H4TZHU36.js +12 -0
- package/dist/{shard-manager-CIDCCPJ4.js → shard-manager-3MDFLDOZ.js} +3 -3
- package/dist/{task-enforcement-YMGIERU4.js → task-enforcement-L7EGD6LJ.js} +10 -11
- package/dist/{task-scope-RMJLXJ7S.js → task-scope-QNRAYD7S.js} +10 -11
- package/dist/{tasks-crud-ZRXPR3UB.js → tasks-crud-JHHIROCS.js} +10 -11
- package/dist/{tasks-review-NQUJR52I.js → tasks-review-TXMVOOFN.js} +10 -11
- package/dist/{tool-capability-index-6EKGND6H.js → tool-capability-index-7OF3LF4X.js} +1 -1
- package/dist/{tool-telemetry-4C6LTIPM.js → tool-telemetry-QPGPBV5R.js} +1 -1
- package/dist/tui/App.js +25 -26
- package/dist/{tui-data-A4GTAXBL.js → tui-data-65WM7L5Q.js} +10 -11
- package/dist/{worker-gate-H43H32OF.js → worker-gate-WM2RGEZE.js} +3 -3
- package/dist/{workflow-engine-EPWKDGHR.js → workflow-engine-PK2TC7UE.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +207 -199
- package/dist/chunk-MQV4UKTS.js +0 -142
- package/dist/chunk-X2IMCCM5.js +0 -49
- package/dist/chunk-ZHJNMC4W.js +0 -292
- package/dist/memory-queue-client-MPJ2B7RU.js +0 -14
- package/dist/setup-wizard-JAFJRWKE.js +0 -12
- /package/dist/{chunk-3RNNTTBH.js → chunk-267IKUT5.js} +0 -0
- /package/dist/{chunk-VEGDNUBO.js → chunk-72O7CSKA.js} +0 -0
- /package/dist/{chunk-ELXPFTBJ.js → chunk-7A2YCQNM.js} +0 -0
- /package/dist/{chunk-NBYMO4RZ.js → chunk-HBV3HSER.js} +0 -0
- /package/dist/{chunk-RCNCUSAF.js → chunk-JZB67O4M.js} +0 -0
- /package/dist/{chunk-OJ6Z2ZS2.js → chunk-NGAZPQQY.js} +0 -0
- /package/dist/{chunk-GSI6OPPH.js → chunk-NSA2JWNP.js} +0 -0
- /package/dist/{chunk-GLGWGMPD.js → chunk-XIIVMIS4.js} +0 -0
- /package/dist/{core-memory-JOTETVSY.js → core-memory-N74JWH4M.js} +0 -0
- /package/dist/{webhook-pipe-AFXVZ6YL.js → webhook-pipe-VOUF2Y43.js} +0 -0
- /package/dist/{wiki-acl-P7WEIMJV.js → wiki-acl-BIEVKTJC.js} +0 -0
- /package/dist/{wiki-client-UFR4R7YH.js → wiki-client-NGWOSMCV.js} +0 -0
package/dist/lib/exe-daemon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_push_notifications,
|
|
3
3
|
push_notifications_exports
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MQB2BE3I.js";
|
|
5
5
|
import {
|
|
6
6
|
deserializeArgs,
|
|
7
7
|
init_daemon_protocol,
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
getMcpToolFamily,
|
|
12
12
|
inferMcpRuntime,
|
|
13
13
|
recordMcpHttpEvent
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-NMT6QFEE.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureDaemonToken,
|
|
17
17
|
init_daemon_auth
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-SDYBAMPW.js";
|
|
19
19
|
import {
|
|
20
20
|
findScopedDuplicate,
|
|
21
21
|
governMemoryRecord,
|
|
22
22
|
schedulePostWriteMemoryHygiene
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-NGAZPQQY.js";
|
|
24
24
|
import {
|
|
25
25
|
init_task_scope,
|
|
26
26
|
init_tmux_routing,
|
|
27
27
|
isExeSession,
|
|
28
28
|
strictSessionScopeFilter,
|
|
29
29
|
tmux_routing_exports
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-AOJHEMHE.js";
|
|
31
31
|
import "../chunk-2OG5NAO2.js";
|
|
32
32
|
import {
|
|
33
33
|
init_intercom_queue,
|
|
@@ -44,36 +44,37 @@ import {
|
|
|
44
44
|
tmux_status_exports
|
|
45
45
|
} from "../chunk-DC4ZD76Y.js";
|
|
46
46
|
import "../chunk-PJHHFJAN.js";
|
|
47
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-SOHGHGWU.js";
|
|
48
48
|
import "../chunk-JT76KRZQ.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-NMG76472.js";
|
|
50
50
|
import "../chunk-HP43GLZ6.js";
|
|
51
51
|
import "../chunk-ELE2C7L4.js";
|
|
52
52
|
import "../chunk-WZQ4CPRG.js";
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-DU4ZN7VF.js";
|
|
54
|
+
import "../chunk-6BFIFI5F.js";
|
|
55
|
+
import {
|
|
56
|
+
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
57
|
+
database_exports,
|
|
58
|
+
employees_exports,
|
|
59
|
+
getCoordinatorName,
|
|
60
|
+
init_database,
|
|
61
|
+
init_employees
|
|
62
|
+
} from "../chunk-55LEDLDE.js";
|
|
54
63
|
import {
|
|
55
64
|
db_backup_exports,
|
|
56
65
|
init_db_backup
|
|
57
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-5UCBVXKO.js";
|
|
58
67
|
import {
|
|
59
68
|
EMBEDDING_DIM,
|
|
60
69
|
init_memory
|
|
61
70
|
} from "../chunk-4NYQAS33.js";
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-6BFIFI5F.js";
|
|
64
|
-
import {
|
|
65
|
-
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
66
|
-
employees_exports,
|
|
67
|
-
getCoordinatorName,
|
|
68
|
-
init_employees
|
|
69
|
-
} from "../chunk-ZHJNMC4W.js";
|
|
70
|
-
import "../chunk-KNS5ETKF.js";
|
|
71
|
+
import "../chunk-GLVF7ENO.js";
|
|
71
72
|
import {
|
|
72
73
|
EXE_AI_DIR,
|
|
73
74
|
MODELS_DIR,
|
|
74
75
|
init_config
|
|
75
|
-
} from "../chunk-
|
|
76
|
-
import "../chunk-
|
|
76
|
+
} from "../chunk-VA42PIIY.js";
|
|
77
|
+
import "../chunk-FZ23OZL3.js";
|
|
77
78
|
import {
|
|
78
79
|
__esm,
|
|
79
80
|
__export,
|
|
@@ -223,20 +224,31 @@ function _resetCpuAlertState() {
|
|
|
223
224
|
_highCpuSamples = 0;
|
|
224
225
|
_highHeapSamples = 0;
|
|
225
226
|
}
|
|
227
|
+
function getHeapSizeLimit() {
|
|
228
|
+
if (_heapSizeLimit !== null) return _heapSizeLimit;
|
|
229
|
+
try {
|
|
230
|
+
const v8 = __require("v8");
|
|
231
|
+
_heapSizeLimit = v8.getHeapStatistics().heap_size_limit;
|
|
232
|
+
} catch {
|
|
233
|
+
_heapSizeLimit = 4 * 1024 * 1024 * 1024;
|
|
234
|
+
}
|
|
235
|
+
return _heapSizeLimit;
|
|
236
|
+
}
|
|
226
237
|
function checkHeapAlert() {
|
|
227
238
|
const mem = process.memoryUsage();
|
|
228
|
-
const
|
|
239
|
+
const limit = getHeapSizeLimit();
|
|
240
|
+
const usedPct = limit > 0 ? mem.heapUsed / limit * 100 : 0;
|
|
229
241
|
if (usedPct >= HEAP_ALERT_THRESHOLD_PCT) {
|
|
230
242
|
_highHeapSamples++;
|
|
231
243
|
if (_highHeapSamples >= HEAP_ALERT_SUSTAINED_SAMPLES) {
|
|
232
|
-
return `V8 heap pressure: ${Math.round(usedPct)}%
|
|
244
|
+
return `V8 heap pressure: ${Math.round(usedPct)}% of limit (${Math.round(mem.heapUsed / 1024 / 1024)}MB / ${Math.round(limit / 1024 / 1024)}MB) for ${_highHeapSamples} samples \u2014 OOM risk`;
|
|
233
245
|
}
|
|
234
246
|
} else {
|
|
235
247
|
_highHeapSamples = 0;
|
|
236
248
|
}
|
|
237
249
|
return null;
|
|
238
250
|
}
|
|
239
|
-
var _lastCpuUsage, _lastCpuTime, CPU_ALERT_THRESHOLD_PCT, CPU_ALERT_SUSTAINED_SAMPLES, _highCpuSamples, HEAP_ALERT_THRESHOLD_PCT, HEAP_ALERT_SUSTAINED_SAMPLES, _highHeapSamples;
|
|
251
|
+
var _lastCpuUsage, _lastCpuTime, CPU_ALERT_THRESHOLD_PCT, CPU_ALERT_SUSTAINED_SAMPLES, _highCpuSamples, HEAP_ALERT_THRESHOLD_PCT, HEAP_ALERT_SUSTAINED_SAMPLES, _highHeapSamples, _heapSizeLimit;
|
|
240
252
|
var init_process_monitor = __esm({
|
|
241
253
|
"src/lib/process-monitor.ts"() {
|
|
242
254
|
"use strict";
|
|
@@ -246,8 +258,9 @@ var init_process_monitor = __esm({
|
|
|
246
258
|
CPU_ALERT_SUSTAINED_SAMPLES = 3;
|
|
247
259
|
_highCpuSamples = 0;
|
|
248
260
|
HEAP_ALERT_THRESHOLD_PCT = 80;
|
|
249
|
-
HEAP_ALERT_SUSTAINED_SAMPLES =
|
|
261
|
+
HEAP_ALERT_SUSTAINED_SAMPLES = 6;
|
|
250
262
|
_highHeapSamples = 0;
|
|
263
|
+
_heapSizeLimit = null;
|
|
251
264
|
}
|
|
252
265
|
});
|
|
253
266
|
|
|
@@ -324,7 +337,7 @@ function createRealDeps(getClient) {
|
|
|
324
337
|
return result.rows;
|
|
325
338
|
},
|
|
326
339
|
createReviewForOrphan: async (task) => {
|
|
327
|
-
const { createReviewForCompletedTask } = await import("../tasks-review-
|
|
340
|
+
const { createReviewForCompletedTask } = await import("../tasks-review-TXMVOOFN.js");
|
|
328
341
|
const cwd = process.cwd();
|
|
329
342
|
await createReviewForCompletedTask(
|
|
330
343
|
task,
|
|
@@ -420,11 +433,9 @@ function initMetrics() {
|
|
|
420
433
|
process.on("beforeExit", flushToDisk);
|
|
421
434
|
process.on("SIGTERM", () => {
|
|
422
435
|
flushToDisk();
|
|
423
|
-
process.exit(0);
|
|
424
436
|
});
|
|
425
437
|
process.on("SIGINT", () => {
|
|
426
438
|
flushToDisk();
|
|
427
|
-
process.exit(0);
|
|
428
439
|
});
|
|
429
440
|
}
|
|
430
441
|
|
|
@@ -557,6 +568,22 @@ function injectRegisterAllTools(fn) {
|
|
|
557
568
|
_injectedRegisterAllTools = fn;
|
|
558
569
|
}
|
|
559
570
|
var MAX_QUEUE_SIZE = 5e3;
|
|
571
|
+
var _tmuxSessionCache = [];
|
|
572
|
+
var _tmuxCacheTimestamp = 0;
|
|
573
|
+
var TMUX_CACHE_TTL_MS = 5e3;
|
|
574
|
+
function getTmuxSessions() {
|
|
575
|
+
const now = Date.now();
|
|
576
|
+
if (now - _tmuxCacheTimestamp < TMUX_CACHE_TTL_MS) return _tmuxSessionCache;
|
|
577
|
+
try {
|
|
578
|
+
const { execFileSync: efs } = __require("child_process");
|
|
579
|
+
_tmuxSessionCache = efs("tmux", ["list-sessions", "-F", "#{session_name}"], { timeout: 3e3 }).toString().trim().split("\n").filter(Boolean);
|
|
580
|
+
_tmuxCacheTimestamp = now;
|
|
581
|
+
} catch {
|
|
582
|
+
_tmuxSessionCache = [];
|
|
583
|
+
_tmuxCacheTimestamp = now;
|
|
584
|
+
}
|
|
585
|
+
return _tmuxSessionCache;
|
|
586
|
+
}
|
|
560
587
|
var highQueue = [];
|
|
561
588
|
var lowQueue = [];
|
|
562
589
|
var _processing = false;
|
|
@@ -715,7 +742,7 @@ async function shutdown() {
|
|
|
715
742
|
}
|
|
716
743
|
}
|
|
717
744
|
try {
|
|
718
|
-
const { createBackup } = await import("../db-backup-
|
|
745
|
+
const { createBackup } = await import("../db-backup-YHDR4SXR.js");
|
|
719
746
|
const backupPath = createBackup("pre-restart");
|
|
720
747
|
if (backupPath) {
|
|
721
748
|
process.stderr.write(`[exed] Pre-restart backup: ${backupPath}
|
|
@@ -735,12 +762,12 @@ async function shutdown() {
|
|
|
735
762
|
`);
|
|
736
763
|
}
|
|
737
764
|
try {
|
|
738
|
-
const { stopProjectionWorker } = await import("../projection-worker-
|
|
765
|
+
const { stopProjectionWorker } = await import("../projection-worker-6TGUPMLY.js");
|
|
739
766
|
stopProjectionWorker();
|
|
740
767
|
} catch {
|
|
741
768
|
}
|
|
742
769
|
try {
|
|
743
|
-
const { disposeShards } = await import("../shard-manager-
|
|
770
|
+
const { disposeShards } = await import("../shard-manager-3MDFLDOZ.js");
|
|
744
771
|
disposeShards();
|
|
745
772
|
} catch {
|
|
746
773
|
}
|
|
@@ -1080,7 +1107,7 @@ async function _writeMemoryRecordInner(entry) {
|
|
|
1080
1107
|
const vRow = await client.execute({ sql: "SELECT version FROM memories WHERE id = ?", args: [id] });
|
|
1081
1108
|
const version = Number(vRow.rows[0]?.version) || 0;
|
|
1082
1109
|
try {
|
|
1083
|
-
const { insertOntologyForMemory } = await import("../agentic-ontology-
|
|
1110
|
+
const { insertOntologyForMemory } = await import("../agentic-ontology-GYJZMRNB.js");
|
|
1084
1111
|
await insertOntologyForMemory({
|
|
1085
1112
|
id,
|
|
1086
1113
|
agent_id: record.agent_id,
|
|
@@ -1108,7 +1135,7 @@ function startMemoryQueueDrain() {
|
|
|
1108
1135
|
fired("memory_queue_drain");
|
|
1109
1136
|
if (!await ensureStoreForPolling()) return;
|
|
1110
1137
|
try {
|
|
1111
|
-
const { ackQueue, claimQueue, retryQueueEntries } = await import("../memory-queue-
|
|
1138
|
+
const { ackQueue, claimQueue, retryQueueEntries } = await import("../memory-queue-6YCGHJLQ.js");
|
|
1112
1139
|
const lease = claimQueue();
|
|
1113
1140
|
if (!lease || lease.entries.length === 0) return;
|
|
1114
1141
|
acted("memory_queue_drain");
|
|
@@ -1148,6 +1175,59 @@ function startMemoryQueueDrain() {
|
|
|
1148
1175
|
process.stderr.write(`[exed] Memory queue drain started (every ${MEMORY_DRAIN_INTERVAL_MS / 1e3}s)
|
|
1149
1176
|
`);
|
|
1150
1177
|
}
|
|
1178
|
+
var MESSAGE_DRAIN_INTERVAL_MS = 3e4;
|
|
1179
|
+
function startMessageQueueDrain() {
|
|
1180
|
+
const drain = async () => {
|
|
1181
|
+
fired("message_queue_drain");
|
|
1182
|
+
if (!await ensureStoreForPolling()) return;
|
|
1183
|
+
try {
|
|
1184
|
+
const { claimMessageQueue, ackMessageQueue } = await import("../message-queue-client-2YTGEB5H.js");
|
|
1185
|
+
const lease = claimMessageQueue();
|
|
1186
|
+
if (!lease || lease.entries.length === 0) return;
|
|
1187
|
+
acted("message_queue_drain");
|
|
1188
|
+
const { getClient: getDbClient } = await import("./database.js");
|
|
1189
|
+
const client = getDbClient();
|
|
1190
|
+
const { sendIntercom, employeeSessionName, resolveExeSession } = await import("./tmux-routing.js");
|
|
1191
|
+
const { randomUUID: randomUUID2 } = await import("crypto");
|
|
1192
|
+
let processed = 0;
|
|
1193
|
+
for (const entry of lease.entries) {
|
|
1194
|
+
try {
|
|
1195
|
+
const now = entry.timestamp || (/* @__PURE__ */ new Date()).toISOString();
|
|
1196
|
+
const id = randomUUID2();
|
|
1197
|
+
await client.execute({
|
|
1198
|
+
sql: `INSERT INTO messages (id, source_agent, target_agent, content, priority, status, created_at)
|
|
1199
|
+
VALUES (?, ?, ?, ?, ?, 'delivered', ?)`,
|
|
1200
|
+
args: [id, entry.source_agent, entry.target_agent, entry.content, entry.priority, now]
|
|
1201
|
+
});
|
|
1202
|
+
const exeSession = resolveExeSession();
|
|
1203
|
+
if (exeSession) {
|
|
1204
|
+
const sessionName = employeeSessionName(entry.target_agent, exeSession);
|
|
1205
|
+
sendIntercom(sessionName, { force: true });
|
|
1206
|
+
}
|
|
1207
|
+
processed++;
|
|
1208
|
+
} catch (err) {
|
|
1209
|
+
process.stderr.write(
|
|
1210
|
+
`[exed] Message queue drain error: ${err instanceof Error ? err.message : String(err)}
|
|
1211
|
+
`
|
|
1212
|
+
);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
ackMessageQueue(lease.leasePath);
|
|
1216
|
+
process.stderr.write(`[exed] Message queue drain: processed ${processed}/${lease.entries.length} messages
|
|
1217
|
+
`);
|
|
1218
|
+
} catch (err) {
|
|
1219
|
+
process.stderr.write(
|
|
1220
|
+
`[exed] Message queue drain error: ${err instanceof Error ? err.message : String(err)}
|
|
1221
|
+
`
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1224
|
+
};
|
|
1225
|
+
void drain();
|
|
1226
|
+
const timer = setInterval(() => void drain(), MESSAGE_DRAIN_INTERVAL_MS);
|
|
1227
|
+
timer.unref();
|
|
1228
|
+
process.stderr.write(`[exed] Message queue drain started (every ${MESSAGE_DRAIN_INTERVAL_MS / 1e3}s)
|
|
1229
|
+
`);
|
|
1230
|
+
}
|
|
1151
1231
|
function startServer() {
|
|
1152
1232
|
mkdirSync2(path3.dirname(SOCKET_PATH), { recursive: true });
|
|
1153
1233
|
try {
|
|
@@ -1414,7 +1494,7 @@ async function startMcpHttpServer() {
|
|
|
1414
1494
|
return;
|
|
1415
1495
|
}
|
|
1416
1496
|
process.stderr.write("[exed] MCP HTTP: DB ready\n");
|
|
1417
|
-
const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-
|
|
1497
|
+
const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-P6NDW4Z3.js");
|
|
1418
1498
|
const gateResult = await initLicenseGate();
|
|
1419
1499
|
if (!gateResult.hasKey) {
|
|
1420
1500
|
process.stderr.write(
|
|
@@ -1427,7 +1507,7 @@ async function startMcpHttpServer() {
|
|
|
1427
1507
|
);
|
|
1428
1508
|
}
|
|
1429
1509
|
Promise.all([
|
|
1430
|
-
import("../tool-capability-index-
|
|
1510
|
+
import("../tool-capability-index-7OF3LF4X.js"),
|
|
1431
1511
|
import("../tool-gates-P6HATVYH.js")
|
|
1432
1512
|
]).then(async ([{ getToolCapabilityIndex }, { TOOL_CATEGORIES }]) => {
|
|
1433
1513
|
const gateState = getCachedLicenseGate();
|
|
@@ -1499,7 +1579,7 @@ async function startMcpHttpServer() {
|
|
|
1499
1579
|
for await (const chunk of req) chunks.push(typeof chunk === "string" ? Buffer.from(chunk) : chunk);
|
|
1500
1580
|
const rawBody = Buffer.concat(chunks);
|
|
1501
1581
|
try {
|
|
1502
|
-
const { loadWebhookConfig, verifyHmac, processWebhook } = await import("../webhook-pipe-
|
|
1582
|
+
const { loadWebhookConfig, verifyHmac, processWebhook } = await import("../webhook-pipe-VOUF2Y43.js");
|
|
1503
1583
|
const webhookConfig = await loadWebhookConfig();
|
|
1504
1584
|
const serviceConfig = webhookConfig[serviceName];
|
|
1505
1585
|
if (!serviceConfig) {
|
|
@@ -1622,12 +1702,18 @@ async function startMcpHttpServer() {
|
|
|
1622
1702
|
});
|
|
1623
1703
|
let parsedBody;
|
|
1624
1704
|
try {
|
|
1625
|
-
const
|
|
1705
|
+
const MAX_HTTP_BODY = 1e7;
|
|
1706
|
+
const body = await new Promise((resolve, reject) => {
|
|
1626
1707
|
let data = "";
|
|
1627
1708
|
req.on("data", (chunk) => {
|
|
1628
1709
|
data += chunk.toString();
|
|
1710
|
+
if (data.length > MAX_HTTP_BODY) {
|
|
1711
|
+
req.destroy(new Error("Request body too large"));
|
|
1712
|
+
reject(new Error("Request body exceeds 10MB limit"));
|
|
1713
|
+
}
|
|
1629
1714
|
});
|
|
1630
1715
|
req.on("end", () => resolve(data));
|
|
1716
|
+
req.on("error", reject);
|
|
1631
1717
|
});
|
|
1632
1718
|
parsedBody = body ? JSON.parse(body) : void 0;
|
|
1633
1719
|
} catch (err) {
|
|
@@ -1699,7 +1785,7 @@ async function startMcpHttpServer() {
|
|
|
1699
1785
|
};
|
|
1700
1786
|
const sessionMcp = new McpServer({ name: "exe-os", version: "1.3.0" });
|
|
1701
1787
|
const gateState = getCachedLicenseGate();
|
|
1702
|
-
const { wrapServerWithTelemetry } = await import("../tool-telemetry-
|
|
1788
|
+
const { wrapServerWithTelemetry } = await import("../tool-telemetry-QPGPBV5R.js");
|
|
1703
1789
|
const wrappedMcp = wrapServerWithTelemetry(sessionMcp);
|
|
1704
1790
|
registerAllTools(wrappedMcp, gateState.license, gateState.hasKey);
|
|
1705
1791
|
await sessionMcp.connect(transport);
|
|
@@ -1941,7 +2027,7 @@ function startSessionTTL() {
|
|
|
1941
2027
|
if (!await ensureStoreForPolling()) return;
|
|
1942
2028
|
try {
|
|
1943
2029
|
const { getClient } = await import("./database.js");
|
|
1944
|
-
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-
|
|
2030
|
+
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-3E3BIK7E.js");
|
|
1945
2031
|
const deps = createSessionTTLRealDeps(getClient);
|
|
1946
2032
|
const killed = await checkSessionTTL(deps);
|
|
1947
2033
|
if (killed.length > 0) acted("session_ttl");
|
|
@@ -1974,7 +2060,7 @@ function startCooAutoRestart() {
|
|
|
1974
2060
|
if (Date.now() - _cooLastSeen < COO_RESTART_COOLDOWN_MS) return;
|
|
1975
2061
|
process.stderr.write("[exed] COO session died \u2014 auto-restarting\n");
|
|
1976
2062
|
acted("coo_restart");
|
|
1977
|
-
const { pushNotifyAsync } = await import("../push-notifications-
|
|
2063
|
+
const { pushNotifyAsync } = await import("../push-notifications-2SBCAIA2.js");
|
|
1978
2064
|
const { listSessions } = await import("./session-registry.js");
|
|
1979
2065
|
const allSessions = listSessions();
|
|
1980
2066
|
const lastCoo = allSessions.filter((s) => isExeSession2(s.windowName)).sort((a, b) => (b.registeredAt ?? "").localeCompare(a.registeredAt ?? ""))[0];
|
|
@@ -2048,7 +2134,7 @@ function startIdleKill() {
|
|
|
2048
2134
|
const { loadConfigSync } = await import("./config.js");
|
|
2049
2135
|
const cfg = loadConfigSync();
|
|
2050
2136
|
const { getClient } = await import("./database.js");
|
|
2051
|
-
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-
|
|
2137
|
+
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-3E3BIK7E.js");
|
|
2052
2138
|
const deps = createIdleKillRealDeps(
|
|
2053
2139
|
getClient,
|
|
2054
2140
|
cfg.sessionLifecycle.idleKillIntercomAckWindowMs
|
|
@@ -2107,7 +2193,7 @@ function startConsolidation() {
|
|
|
2107
2193
|
`);
|
|
2108
2194
|
}
|
|
2109
2195
|
try {
|
|
2110
|
-
const { createBackup } = await import("../db-backup-
|
|
2196
|
+
const { createBackup } = await import("../db-backup-YHDR4SXR.js");
|
|
2111
2197
|
createBackup("pre-consolidation");
|
|
2112
2198
|
} catch (e) {
|
|
2113
2199
|
process.stderr.write("[exe-daemon] pre-consolidation backup: " + (e instanceof Error ? e.message : String(e)) + "\n");
|
|
@@ -2261,7 +2347,7 @@ function startGraphExtraction() {
|
|
|
2261
2347
|
const { isUserIdle } = await import("./consolidation.js");
|
|
2262
2348
|
const idle = await isUserIdle(client, 30);
|
|
2263
2349
|
if (!idle) return;
|
|
2264
|
-
const { extractBatch } = await import("../graph-rag-
|
|
2350
|
+
const { extractBatch } = await import("../graph-rag-V3JU7GYG.js");
|
|
2265
2351
|
const result = await extractBatch(client, 50, config.selfQueryModel);
|
|
2266
2352
|
if (result.processed > 0) {
|
|
2267
2353
|
acted("graph_extraction");
|
|
@@ -2401,7 +2487,7 @@ function startReflectionSweep() {
|
|
|
2401
2487
|
for (const row of agents.rows) {
|
|
2402
2488
|
const agentId = row.agent_id;
|
|
2403
2489
|
try {
|
|
2404
|
-
const { runReflection } = await import("../memory-reflection-
|
|
2490
|
+
const { runReflection } = await import("../memory-reflection-OTJBCQWK.js");
|
|
2405
2491
|
const result = await runReflection(agentId);
|
|
2406
2492
|
totalInsights += result.contradictions + result.patterns + result.summaries;
|
|
2407
2493
|
} catch (e) {
|
|
@@ -2430,7 +2516,7 @@ function startReflectionSweep() {
|
|
|
2430
2516
|
if (memories > 100 && cards < memories * 0.1) {
|
|
2431
2517
|
process.stderr.write(`[exed] Memory cards sparse (${cards} cards / ${memories} memories) \u2014 running backfill...
|
|
2432
2518
|
`);
|
|
2433
|
-
const { insertMemoryCardsForBatch } = await import("../memory-cards-
|
|
2519
|
+
const { insertMemoryCardsForBatch } = await import("../memory-cards-MQBULX5V.js");
|
|
2434
2520
|
const batchSize = 500;
|
|
2435
2521
|
let offset = 0;
|
|
2436
2522
|
let totalCards = 0;
|
|
@@ -2571,7 +2657,7 @@ function startOrphanReaper() {
|
|
|
2571
2657
|
const tick = async () => {
|
|
2572
2658
|
fired("orphan_reaper");
|
|
2573
2659
|
try {
|
|
2574
|
-
const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-
|
|
2660
|
+
const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-3E3BIK7E.js");
|
|
2575
2661
|
const deps = createOrphanReaperRealDeps();
|
|
2576
2662
|
const reaped = await reapOrphanedMcpProcesses(deps);
|
|
2577
2663
|
if (reaped.length > 0) acted("orphan_reaper");
|
|
@@ -2598,7 +2684,7 @@ function startAutoWake() {
|
|
|
2598
2684
|
if (!await ensureStoreForPolling()) return;
|
|
2599
2685
|
try {
|
|
2600
2686
|
const { getClient } = await import("./database.js");
|
|
2601
|
-
const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-
|
|
2687
|
+
const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-3E3BIK7E.js");
|
|
2602
2688
|
const deps = createAutoWakeRealDeps(getClient, process.cwd());
|
|
2603
2689
|
const woken = await pollOrphanedTasks(deps);
|
|
2604
2690
|
if (woken.length > 0) acted("auto_wake");
|
|
@@ -2623,7 +2709,7 @@ function startStuckTaskRelease() {
|
|
|
2623
2709
|
if (!await ensureStoreForPolling()) return;
|
|
2624
2710
|
try {
|
|
2625
2711
|
const { getClient } = await import("./database.js");
|
|
2626
|
-
const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-
|
|
2712
|
+
const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-3E3BIK7E.js");
|
|
2627
2713
|
const deps = createStuckTaskRealDeps(getClient);
|
|
2628
2714
|
const released = await releaseStuckTasks(deps);
|
|
2629
2715
|
if (released.length > 0) {
|
|
@@ -2651,12 +2737,12 @@ function startTaskEnforcementScanner() {
|
|
|
2651
2737
|
const tick = async () => {
|
|
2652
2738
|
fired("task_enforcement");
|
|
2653
2739
|
try {
|
|
2654
|
-
const { runTaskEnforcementTick } = await import("../task-enforcement-
|
|
2740
|
+
const { runTaskEnforcementTick } = await import("../task-enforcement-L7EGD6LJ.js");
|
|
2655
2741
|
const { getTransport } = await import("./transport.js");
|
|
2656
2742
|
const { loadAgentConfig } = await import("./agent-config.js");
|
|
2657
2743
|
const { getClient } = await import("./database.js");
|
|
2658
2744
|
const { loadEmployeesSync } = await import("./employees.js");
|
|
2659
|
-
const { sessionScopeFilter } = await import("../task-scope-
|
|
2745
|
+
const { sessionScopeFilter } = await import("../task-scope-QNRAYD7S.js");
|
|
2660
2746
|
await runTaskEnforcementTick({
|
|
2661
2747
|
transport: getTransport(),
|
|
2662
2748
|
agentConfig: loadAgentConfig(),
|
|
@@ -2734,12 +2820,8 @@ function startApiWatchdog() {
|
|
|
2734
2820
|
if (!cfg.apiWatchdog?.enabled) return;
|
|
2735
2821
|
const cooldownMs = (cfg.apiWatchdog.cooldownMinutes ?? 10) * 6e4;
|
|
2736
2822
|
const { execFileSync } = await import("child_process");
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
sessions = execFileSync("tmux", ["list-sessions", "-F", "#{session_name}"], { timeout: 3e3 }).toString().trim().split("\n").filter(Boolean);
|
|
2740
|
-
} catch {
|
|
2741
|
-
return;
|
|
2742
|
-
}
|
|
2823
|
+
const sessions = getTmuxSessions();
|
|
2824
|
+
if (sessions.length === 0) return;
|
|
2743
2825
|
for (const session of sessions) {
|
|
2744
2826
|
if (!session.includes("-")) continue;
|
|
2745
2827
|
const lastNudge = _apiWatchdogLastNudge.get(session) ?? 0;
|
|
@@ -2785,7 +2867,7 @@ function startBackgroundJobGuardrails() {
|
|
|
2785
2867
|
const tick = async () => {
|
|
2786
2868
|
fired("background_job_guardrails");
|
|
2787
2869
|
try {
|
|
2788
|
-
const { enforceBackgroundJobGuardrails } = await import("../background-jobs-
|
|
2870
|
+
const { enforceBackgroundJobGuardrails } = await import("../background-jobs-TBUOKMJR.js");
|
|
2789
2871
|
const actions = enforceBackgroundJobGuardrails();
|
|
2790
2872
|
if (actions.length > 0) {
|
|
2791
2873
|
acted("background_job_guardrails");
|
|
@@ -2816,6 +2898,16 @@ function handleSignalShutdown() {
|
|
|
2816
2898
|
flushToDisk();
|
|
2817
2899
|
} catch {
|
|
2818
2900
|
}
|
|
2901
|
+
try {
|
|
2902
|
+
const { getClient: gc, isInitialized: ii } = (init_database(), __toCommonJS(database_exports));
|
|
2903
|
+
if (ii()) {
|
|
2904
|
+
const cl = gc();
|
|
2905
|
+
if (typeof cl.executeSync === "function") {
|
|
2906
|
+
cl.executeSync("PRAGMA wal_checkpoint(PASSIVE)");
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
} catch {
|
|
2910
|
+
}
|
|
2819
2911
|
try {
|
|
2820
2912
|
unlinkSync(SOCKET_PATH);
|
|
2821
2913
|
} catch {
|
|
@@ -3082,6 +3174,7 @@ try {
|
|
|
3082
3174
|
startStuckTaskRelease();
|
|
3083
3175
|
startGraphExtraction();
|
|
3084
3176
|
startMemoryQueueDrain();
|
|
3177
|
+
startMessageQueueDrain();
|
|
3085
3178
|
startIntercomQueueDrain();
|
|
3086
3179
|
startConfidenceDecay();
|
|
3087
3180
|
startReflectionSweep();
|
|
@@ -3090,7 +3183,6 @@ try {
|
|
|
3090
3183
|
startSoftDeletePurge();
|
|
3091
3184
|
startAutoUpdateCheck();
|
|
3092
3185
|
startRssWatchdog();
|
|
3093
|
-
startApiWatchdog();
|
|
3094
3186
|
startBackgroundJobGuardrails();
|
|
3095
3187
|
startTaskEnforcementScanner();
|
|
3096
3188
|
const HEALTH_HEARTBEAT_MS = 5 * 60 * 1e3;
|
|
@@ -3103,10 +3195,10 @@ try {
|
|
|
3103
3195
|
message: "MCP HTTP server bound and ready",
|
|
3104
3196
|
data: { port: 48739 }
|
|
3105
3197
|
});
|
|
3106
|
-
const { startToolTelemetryFlush } = await import("../tool-telemetry-
|
|
3198
|
+
const { startToolTelemetryFlush } = await import("../tool-telemetry-QPGPBV5R.js");
|
|
3107
3199
|
startToolTelemetryFlush();
|
|
3108
3200
|
process.stderr.write("[exed] Tool telemetry started (flush every 5m)\n");
|
|
3109
|
-
const { startProjectionWorker } = await import("../projection-worker-
|
|
3201
|
+
const { startProjectionWorker } = await import("../projection-worker-6TGUPMLY.js");
|
|
3110
3202
|
startProjectionWorker();
|
|
3111
3203
|
try {
|
|
3112
3204
|
const { loadConfig } = await import("./config.js");
|
|
@@ -5,17 +5,16 @@ import {
|
|
|
5
5
|
recentRecords,
|
|
6
6
|
rrfMerge,
|
|
7
7
|
rrfMergeMulti
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-2NWMGMNH.js";
|
|
9
|
+
import "../chunk-LR3QFARI.js";
|
|
10
|
+
import "../chunk-NGAZPQQY.js";
|
|
11
11
|
import "../chunk-WZQ4CPRG.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-55LEDLDE.js";
|
|
13
|
+
import "../chunk-5UCBVXKO.js";
|
|
14
14
|
import "../chunk-4NYQAS33.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-X2IMCCM5.js";
|
|
15
|
+
import "../chunk-4JZNDVZH.js";
|
|
16
|
+
import "../chunk-VA42PIIY.js";
|
|
17
|
+
import "../chunk-FZ23OZL3.js";
|
|
19
18
|
import "../chunk-KFQGP6VL.js";
|
|
20
19
|
export {
|
|
21
20
|
estimateCardinality,
|
|
@@ -30,7 +30,7 @@ updated_at: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
|
30
30
|
---
|
|
31
31
|
## Identity
|
|
32
32
|
|
|
33
|
-
You are \${agent_id}
|
|
33
|
+
You are \${agent_id} \u2014 the founder's most reliable teammate in business. You hold the vision, the roadmap, every project and everything the founder thinks about in business, life and beyond. The knowledgeable older sibling who's been through it all.
|
|
34
34
|
|
|
35
35
|
## What you do
|
|
36
36
|
|
package/dist/lib/identity.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getIdentity,
|
|
3
3
|
getIdentityInjection,
|
|
4
4
|
identityPath,
|
|
5
|
+
init_identity,
|
|
5
6
|
listIdentities,
|
|
6
7
|
updateIdentity
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-7SVGVGE3.js";
|
|
8
|
+
} from "../chunk-55LEDLDE.js";
|
|
9
|
+
import "../chunk-5UCBVXKO.js";
|
|
10
10
|
import "../chunk-4NYQAS33.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-X2IMCCM5.js";
|
|
11
|
+
import "../chunk-VA42PIIY.js";
|
|
12
|
+
import "../chunk-FZ23OZL3.js";
|
|
14
13
|
import "../chunk-KFQGP6VL.js";
|
|
14
|
+
init_identity();
|
|
15
15
|
export {
|
|
16
16
|
getIdentity,
|
|
17
17
|
getIdentityInjection,
|
package/dist/lib/keychain.js
CHANGED
package/dist/lib/license.js
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
startLicenseRevalidation,
|
|
15
15
|
stopLicenseRevalidation,
|
|
16
16
|
validateLicense
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-GLVF7ENO.js";
|
|
18
|
+
import "../chunk-VA42PIIY.js";
|
|
19
|
+
import "../chunk-FZ23OZL3.js";
|
|
20
20
|
import "../chunk-KFQGP6VL.js";
|
|
21
21
|
init_license();
|
|
22
22
|
export {
|
package/dist/lib/messaging.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
retryPendingMessages,
|
|
13
13
|
sendMessage,
|
|
14
14
|
setWsClientSend
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-EENNKZMN.js";
|
|
16
|
+
import "../chunk-AOJHEMHE.js";
|
|
17
17
|
import "../chunk-2OG5NAO2.js";
|
|
18
18
|
import "../chunk-NEAHEC5G.js";
|
|
19
19
|
import "../chunk-KRLOFIPI.js";
|
|
@@ -21,21 +21,20 @@ import "../chunk-57HCNSFO.js";
|
|
|
21
21
|
import "../chunk-MBRLA4E3.js";
|
|
22
22
|
import "../chunk-DC4ZD76Y.js";
|
|
23
23
|
import "../chunk-PJHHFJAN.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-SOHGHGWU.js";
|
|
25
25
|
import "../chunk-JT76KRZQ.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-NMG76472.js";
|
|
27
27
|
import "../chunk-HP43GLZ6.js";
|
|
28
28
|
import "../chunk-ELE2C7L4.js";
|
|
29
29
|
import "../chunk-WZQ4CPRG.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-7SVGVGE3.js";
|
|
32
|
-
import "../chunk-4NYQAS33.js";
|
|
33
|
-
import "../chunk-GUDCQBRY.js";
|
|
30
|
+
import "../chunk-DU4ZN7VF.js";
|
|
34
31
|
import "../chunk-6BFIFI5F.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-55LEDLDE.js";
|
|
33
|
+
import "../chunk-5UCBVXKO.js";
|
|
34
|
+
import "../chunk-4NYQAS33.js";
|
|
35
|
+
import "../chunk-GLVF7ENO.js";
|
|
36
|
+
import "../chunk-VA42PIIY.js";
|
|
37
|
+
import "../chunk-FZ23OZL3.js";
|
|
39
38
|
import "../chunk-KFQGP6VL.js";
|
|
40
39
|
export {
|
|
41
40
|
deliverLocalMessage,
|
package/dist/lib/reminders.js
CHANGED
|
@@ -2,13 +2,12 @@ import {
|
|
|
2
2
|
completeReminder,
|
|
3
3
|
createReminder,
|
|
4
4
|
listReminders
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-BKEJSHDE.js";
|
|
6
|
+
import "../chunk-55LEDLDE.js";
|
|
7
|
+
import "../chunk-5UCBVXKO.js";
|
|
8
8
|
import "../chunk-4NYQAS33.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-X2IMCCM5.js";
|
|
9
|
+
import "../chunk-VA42PIIY.js";
|
|
10
|
+
import "../chunk-FZ23OZL3.js";
|
|
12
11
|
import "../chunk-KFQGP6VL.js";
|
|
13
12
|
export {
|
|
14
13
|
completeReminder,
|