@askexenow/exe-os 0.9.414 → 0.9.416
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/deploy/compose/.env.customer.example +1 -1
- package/deploy/compose/.env.default +1 -1
- package/deploy/compose/.env.example +1 -1
- package/deploy/compose/docker-compose.yml +1 -1
- package/deploy/stack-manifests/v0.9.json +399 -2
- package/dist/.dist-verified.json +3 -3
- package/dist/{active-agent-3YCLS7GB.js → active-agent-JWICRWAA.js} +7 -6
- package/dist/{active-agent-MHWQDMML.js → active-agent-RPMMKZIG.js} +7 -6
- package/dist/{agent-defs-generator-DNXMO34I.js → agent-defs-generator-2Y5YFAS2.js} +6 -5
- package/dist/{agentic-ontology-RA6CMND6.js → agentic-ontology-C7G2MB5M.js} +1 -1
- package/dist/{artifact-backup-EETHNFFP.js → artifact-backup-EQVE4ROK.js} +3 -3
- package/dist/{backfill-metadata-WYT257VG.js → backfill-metadata-RC2WERVZ.js} +9 -8
- package/dist/{backup-verify-AG54CYGR.js → backup-verify-LPCD7ETV.js} +3 -2
- package/dist/{behavior-injection-G7GAUHGO.js → behavior-injection-LXWODFAO.js} +12 -11
- package/dist/{behavior-promotion-I2DIUFUR.js → behavior-promotion-2NNDBZE7.js} +11 -10
- package/dist/{behaviors-SKVKPCRW.js → behaviors-Q7SJG54Y.js} +10 -9
- package/dist/bin/agentic-ontology-backfill.js +10 -9
- package/dist/bin/agentic-reflection-backfill.js +11 -10
- package/dist/bin/agentic-semantic-label.js +10 -9
- package/dist/bin/backfill-conversations.js +9 -8
- package/dist/bin/backfill-responses.js +9 -8
- package/dist/bin/backfill-vectors.js +9 -8
- package/dist/bin/bulk-sync-postgres.js +18 -17
- package/dist/bin/cc-doctor.js +11 -10
- package/dist/bin/cleanup-stale-review-tasks.js +18 -17
- package/dist/bin/cli.js +60 -36
- package/dist/bin/deferred-daemon-restart.js +106 -105
- package/dist/bin/exe-actions.js +1 -1
- package/dist/bin/exe-agent-config.js +5 -4
- package/dist/bin/exe-agent.js +17 -16
- package/dist/bin/exe-assign.js +10 -9
- package/dist/bin/exe-boot.js +39 -38
- package/dist/bin/exe-call.js +10 -9
- package/dist/bin/exe-cloud.js +19 -18
- package/dist/bin/exe-config-dump.js +5 -4
- package/dist/bin/exe-dispatch.js +19 -18
- package/dist/bin/exe-doctor.js +9 -8
- package/dist/bin/exe-export-behaviors.js +14 -13
- package/dist/bin/exe-forget.js +12 -11
- package/dist/bin/exe-gateway.js +11 -10
- package/dist/bin/exe-grant.js +6 -6
- package/dist/bin/exe-healthcheck.js +11 -10
- package/dist/bin/exe-heartbeat.js +24 -23
- package/dist/bin/exe-kill.js +23 -22
- package/dist/bin/exe-launch-agent.js +66 -33
- package/dist/bin/exe-mcp.js +8 -7
- package/dist/bin/exe-memory-reads.js +9 -8
- package/dist/bin/exe-new-employee.js +14 -13
- package/dist/bin/exe-os-mcp-proxy.js +8 -7
- package/dist/bin/exe-pending-messages.js +19 -18
- package/dist/bin/exe-pending-notifications.js +18 -17
- package/dist/bin/exe-pending-reviews.js +19 -18
- package/dist/bin/exe-rename.js +9 -8
- package/dist/bin/exe-review.js +22 -21
- package/dist/bin/exe-search.js +11 -10
- package/dist/bin/exe-session-cleanup.js +23 -22
- package/dist/bin/exe-settings.js +18 -17
- package/dist/bin/exe-start-codex.js +21 -20
- package/dist/bin/exe-start-opencode.js +19 -18
- package/dist/bin/exe-start.sh +10 -1
- package/dist/bin/exe-status.js +20 -19
- package/dist/bin/exe-support.js +3 -3
- package/dist/bin/exe-team.js +7 -6
- package/dist/bin/exe-telemetry.js +88 -0
- package/dist/bin/exe-watchdog.js +62 -23
- package/dist/bin/git-sweep.js +20 -19
- package/dist/bin/graph-backfill.js +10 -9
- package/dist/bin/graph-export.js +10 -9
- package/dist/bin/hooks-cli.js +1 -1
- package/dist/bin/import-history.js +14 -13
- package/dist/bin/install.js +109 -108
- package/dist/bin/intercom-check.js +5 -5
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +7 -6
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/reconcile-backlog.js +2 -2
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/repair-document-chunks.js +9 -8
- package/dist/bin/scan-tasks.js +19 -18
- package/dist/bin/setup.js +4 -3
- package/dist/bin/shard-migrate.js +10 -9
- package/dist/bin/stack-update.js +4 -4
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-RPJVFAQJ.js → boot-generation-TT4BOFXY.js} +6 -5
- package/dist/{boot-review-sections-FOPPZTJI.js → boot-review-sections-SSWOKMOO.js} +17 -16
- package/dist/{bug-landed-reconciler-FN5KPBRK.js → bug-landed-reconciler-NEL6KXHE.js} +8 -7
- package/dist/build-info.json +3 -3
- package/dist/build-manifest.json +1167 -1142
- package/dist/{capability-cards-YQWBEG7A.js → capability-cards-MKCOJ5S6.js} +5 -4
- package/dist/{capacity-monitor-7SMEJHYG.js → capacity-monitor-5KMDVKVR.js} +19 -18
- package/dist/{catchup-brief-IBQ26LEB.js → catchup-brief-POOPRVFD.js} +24 -23
- package/dist/{chunk-FPF2PJFK.js → chunk-2NGXGHPI.js} +3 -3
- package/dist/{chunk-O3BLL6MY.js → chunk-2WUBVHON.js} +1 -1
- package/dist/{chunk-GL5ZG72X.js → chunk-34GBZEGQ.js} +2 -2
- package/dist/{chunk-XC5OASHV.js → chunk-3IHWQZYF.js} +1 -1
- package/dist/{chunk-HDV2V25K.js → chunk-3NMNSVTE.js} +1 -1
- package/dist/{chunk-W4H2MZAS.js → chunk-3W6D3XED.js} +1 -1
- package/dist/{chunk-A5I2GYVQ.js → chunk-43J5Z6IO.js} +3 -3
- package/dist/{chunk-CRW63CDI.js → chunk-45JIJNHH.js} +1 -1
- package/dist/{chunk-SINIRUYZ.js → chunk-4LCZYKVK.js} +122 -40
- package/dist/{chunk-TS4LSNRI.js → chunk-4W7PBI5U.js} +1 -1
- package/dist/{chunk-X4FHT6ST.js → chunk-552CGKS7.js} +9 -9
- package/dist/{chunk-FSXMKIDO.js → chunk-56T2OSOE.js} +1 -1
- package/dist/{chunk-VAHQOIQY.js → chunk-62KEZOFN.js} +1 -1
- package/dist/{chunk-2BOLFLAU.js → chunk-6A74345E.js} +2 -2
- package/dist/{chunk-XEAZJXMZ.js → chunk-6CJYOPQW.js} +2 -2
- package/dist/{chunk-3N24FV22.js → chunk-6ZBOARHX.js} +1 -1
- package/dist/{chunk-6L4VIYLZ.js → chunk-7MCEYNWK.js} +15 -1
- package/dist/{chunk-4J77TCTX.js → chunk-7TWRCBEN.js} +1 -1
- package/dist/{chunk-L5JFVK5T.js → chunk-7VQ2OCZG.js} +68 -11
- package/dist/{chunk-VS7V5HNO.js → chunk-AH7TTPES.js} +1 -1
- package/dist/{chunk-XQ7BIVLI.js → chunk-AJTNEIFI.js} +9 -9
- package/dist/{chunk-7YX73K2R.js → chunk-ALA7WYZZ.js} +6 -1
- package/dist/{chunk-K2HIXAIF.js → chunk-ALTBD27V.js} +14 -14
- package/dist/{chunk-IHAXXDBH.js → chunk-AROCCYCK.js} +3 -3
- package/dist/{chunk-ZJQ56DZZ.js → chunk-B3W5R5OE.js} +18 -0
- package/dist/{chunk-5DLZJ3MY.js → chunk-B4YW6GSE.js} +1 -1
- package/dist/{chunk-FUDXITKX.js → chunk-BKCQR55G.js} +1 -1
- package/dist/{chunk-CWHTUNJX.js → chunk-BXLNHKVK.js} +2 -2
- package/dist/{chunk-7SHU5MOD.js → chunk-C5FURQRA.js} +1 -1
- package/dist/{chunk-RMC2A6EE.js → chunk-CBNU7ZIP.js} +1 -1
- package/dist/chunk-CCFWKW2D.js +92 -0
- package/dist/{chunk-NCNT2C2P.js → chunk-COJHDMQ4.js} +2 -2
- package/dist/{chunk-N7POJZJT.js → chunk-CRRZAIBC.js} +13 -13
- package/dist/{telemetry-upload-6DR6AL3V.js → chunk-D3IKDHK6.js} +53 -28
- package/dist/{chunk-Z3LGAFMG.js → chunk-DJCUZ65C.js} +1 -1
- package/dist/{chunk-JW5NUXPN.js → chunk-DQSLSKF7.js} +14 -14
- package/dist/{chunk-VBYSAQJD.js → chunk-E3NN4TGB.js} +1 -1
- package/dist/{chunk-DWRULKB3.js → chunk-EKZ5MGJK.js} +2 -2
- package/dist/{chunk-CFFSHBQF.js → chunk-EWKNMFS6.js} +1 -1
- package/dist/{chunk-ZJ6AMC4Y.js → chunk-FRNG2SFK.js} +7 -7
- package/dist/{chunk-HTFM7ZDD.js → chunk-G6E4NA6V.js} +2 -2
- package/dist/{chunk-5BWDUUMH.js → chunk-GRA3UHGQ.js} +3 -3
- package/dist/{chunk-KN5GAVCG.js → chunk-GYRAI7PP.js} +2 -2
- package/dist/{chunk-GM4UEZDE.js → chunk-H372DQD2.js} +43 -30
- package/dist/{chunk-ZZR2WRNW.js → chunk-HETFNI2L.js} +4 -4
- package/dist/{chunk-RIKFXHLE.js → chunk-HJLYDWEM.js} +1 -1
- package/dist/{chunk-LLZUL7M2.js → chunk-HPB5Y6FZ.js} +4 -2
- package/dist/{chunk-EOWJXCYC.js → chunk-HPCCYWDP.js} +1 -1
- package/dist/{chunk-3DXAJVXE.js → chunk-HPUTFKC6.js} +6 -6
- package/dist/{chunk-KEDZRQI3.js → chunk-HVTLHDGA.js} +2 -2
- package/dist/{chunk-Q6KUBP6R.js → chunk-I2T3ZOFM.js} +5 -5
- package/dist/{chunk-2EYVXUGA.js → chunk-IH6YW55P.js} +4 -4
- package/dist/{chunk-7KPZQ65I.js → chunk-IJRHWGOI.js} +3 -3
- package/dist/{chunk-2YFMBXUU.js → chunk-IT4AGRFX.js} +4 -4
- package/dist/{chunk-JTJP4JK7.js → chunk-IXWH4TKR.js} +3 -3
- package/dist/{chunk-GZVFHFO3.js → chunk-IZYGY3ZV.js} +10 -10
- package/dist/{chunk-GATAYYAF.js → chunk-J43YFUSQ.js} +3 -3
- package/dist/{chunk-IPUDXR67.js → chunk-JB5CIPO4.js} +12 -3
- package/dist/{chunk-6PXFF6IV.js → chunk-JF36BVSK.js} +1 -1
- package/dist/{chunk-SO7KTH3Q.js → chunk-JJYL2K7E.js} +1 -1
- package/dist/{chunk-353XF4LU.js → chunk-JTANX2NA.js} +2 -2
- package/dist/{chunk-QOFQY7BJ.js → chunk-JVFXB46L.js} +1 -1
- package/dist/{chunk-QV26G2BF.js → chunk-JYTB2RS4.js} +1 -1
- package/dist/{chunk-T3AM52YT.js → chunk-KDAUJDHM.js} +4 -4
- package/dist/{chunk-OHHZNNUD.js → chunk-KKABI3X6.js} +1 -1
- package/dist/{chunk-5ZMNFSHV.js → chunk-KPWQQVKA.js} +1 -1
- package/dist/{chunk-GHYHNHDL.js → chunk-KRGHRFGA.js} +1 -1
- package/dist/{chunk-BIPTWAEO.js → chunk-KXGAS45V.js} +1 -1
- package/dist/{chunk-PTF5TB6O.js → chunk-LHMBUQX2.js} +9 -9
- package/dist/chunk-LP5USONU.js +125 -0
- package/dist/{chunk-CJ6CS2IH.js → chunk-LXDNPWX7.js} +5 -5
- package/dist/{chunk-HA6BIZ6L.js → chunk-M46ZFCQT.js} +8 -8
- package/dist/{chunk-BE3UETW6.js → chunk-M4AS43GS.js} +3 -3
- package/dist/{chunk-M6SUJLNP.js → chunk-MHUPOTUV.js} +2 -2
- package/dist/{chunk-X2ZHCNNB.js → chunk-MIXW35ES.js} +5 -5
- package/dist/{chunk-PDQGR5LZ.js → chunk-MJOWO352.js} +1 -1
- package/dist/{chunk-JNULO6I5.js → chunk-MQEV5FL6.js} +3 -3
- package/dist/{chunk-VQQPYI4X.js → chunk-NAWW4EKM.js} +2 -2
- package/dist/{chunk-JGBYZTWH.js → chunk-NFTTBVL2.js} +1 -1
- package/dist/{chunk-W7VKGB42.js → chunk-NM4MWWA4.js} +1 -1
- package/dist/{chunk-657I6PUF.js → chunk-NSVBDUZK.js} +3 -3
- package/dist/{chunk-D6NZNUVH.js → chunk-NTKZ47FA.js} +1 -1
- package/dist/{chunk-6777GNWI.js → chunk-OFC5SIIT.js} +19 -8
- package/dist/{chunk-7PDZBPGW.js → chunk-OGWQMQOM.js} +1 -1
- package/dist/{chunk-LBSCOP25.js → chunk-OI4DPXBK.js} +1 -1
- package/dist/{chunk-RHHEYC6H.js → chunk-OVEID5F6.js} +3 -3
- package/dist/{chunk-HUHR5CKJ.js → chunk-OZ6E4FKM.js} +4 -4
- package/dist/{chunk-6HJF7IA3.js → chunk-PGVFGFK7.js} +227 -198
- package/dist/{chunk-RHJOTGEU.js → chunk-PKEZ3JG4.js} +1 -1
- package/dist/{chunk-MZNLQC6W.js → chunk-PWJLLXGK.js} +1 -1
- package/dist/{chunk-7HLAYQRG.js → chunk-PY2E5ZL6.js} +5 -5
- package/dist/{chunk-DHLJZDWI.js → chunk-QEJ2ZX2O.js} +6 -6
- package/dist/{chunk-IC2AONBH.js → chunk-QXKE7T3L.js} +9 -9
- package/dist/chunk-R3ZU4F7M.js +359 -0
- package/dist/{chunk-QSW5DHMZ.js → chunk-R6Q3MB2F.js} +1 -1
- package/dist/{chunk-47YGEM4N.js → chunk-RZUXD47X.js} +1 -1
- package/dist/{chunk-A75TAU2I.js → chunk-SL3T3LY3.js} +141 -17
- package/dist/{chunk-W3ABSZ6G.js → chunk-SW26QLZQ.js} +2 -2
- package/dist/{chunk-FYV2CTKP.js → chunk-TPYGTRYK.js} +1 -1
- package/dist/{chunk-BLTXAUP6.js → chunk-TXWIBXPR.js} +2 -2
- package/dist/{chunk-JAIZCE6W.js → chunk-U6BHVMOM.js} +3 -3
- package/dist/{chunk-O6KQAJCC.js → chunk-U74M7XSZ.js} +3 -3
- package/dist/{chunk-J6U4ZR77.js → chunk-UFZIURF6.js} +2 -2
- package/dist/{chunk-TCBWHLKH.js → chunk-UO5U5AOS.js} +9 -9
- package/dist/{chunk-XDOCXKHW.js → chunk-UXBGEKL6.js} +1 -1
- package/dist/{chunk-TVWYMOZ4.js → chunk-V3RGMCCP.js} +15 -4
- package/dist/{chunk-27NG2NTG.js → chunk-V3Y45JIY.js} +2 -2
- package/dist/{chunk-RYMXD2NT.js → chunk-W375ZRNM.js} +1 -1
- package/dist/{chunk-6DMURUBY.js → chunk-WTNIAVVK.js} +4 -4
- package/dist/{chunk-2YGBJHC2.js → chunk-WZNW66XJ.js} +3 -3
- package/dist/{chunk-6BD6JYR2.js → chunk-XDLC3NRR.js} +3 -3
- package/dist/{chunk-FS7XF7SE.js → chunk-XHJO7XFR.js} +1 -1
- package/dist/{chunk-LQGLGSBY.js → chunk-XJVKDVQN.js} +2 -2
- package/dist/{chunk-JJZZXEAN.js → chunk-XKTCQTDP.js} +2 -2
- package/dist/{chunk-RYYFFCJG.js → chunk-XL7OO7MD.js} +1 -1
- package/dist/{chunk-RJIH7JXM.js → chunk-XUX3EJ3U.js} +4 -4
- package/dist/{chunk-3GGMHSY2.js → chunk-XWDI6NVG.js} +3 -3
- package/dist/{chunk-6J2J3VJS.js → chunk-XZRCLK2N.js} +10 -10
- package/dist/{chunk-SXUABANK.js → chunk-Y5GPRRW2.js} +3 -3
- package/dist/{chunk-CYUUNIEL.js → chunk-Y6LOT7GS.js} +1 -1
- package/dist/{chunk-PYXXL7N7.js → chunk-YQT3JC27.js} +1 -1
- package/dist/{chunk-QJWLQXR7.js → chunk-YX7QSOBB.js} +1 -1
- package/dist/{chunk-M6AX64J2.js → chunk-Z7T7JMBU.js} +20 -8
- package/dist/{chunk-BG6RAOCJ.js → chunk-ZDPOCUBX.js} +3 -3
- package/dist/{chunk-HDQAVAV6.js → chunk-ZHT3SXBU.js} +2 -2
- package/dist/{chunk-EWDBWOCX.js → chunk-ZQSQJ53P.js} +1 -1
- package/dist/{chunk-LSHUX7P4.js → chunk-ZUE3ADBF.js} +16 -16
- package/dist/{cleanup-graph-garbage-SYGPMPUM.js → cleanup-graph-garbage-X4XP3E5O.js} +10 -9
- package/dist/{cli-shutdown-JI7CASE4.js → cli-shutdown-E2YG5CSE.js} +1 -1
- package/dist/{cloud-sync-command-ZV3P5FP6.js → cloud-sync-command-AKTDHKCI.js} +2 -2
- package/dist/{cloud-sync-db-init-RQIHWKV4.js → cloud-sync-db-init-U6IL6YAP.js} +1 -1
- package/dist/{cloud-sync-shutdown-V2N7VLD3.js → cloud-sync-shutdown-BCIU6U3A.js} +5 -4
- package/dist/{co-activation-SRE6DIRX.js → co-activation-HIOU7VAV.js} +5 -4
- package/dist/{co-occurrence-F5TMSEQZ.js → co-occurrence-GW6Z6WAJ.js} +8 -7
- package/dist/{consent-passphrase-MWZRHJRC.js → consent-passphrase-EARJEBUA.js} +2 -2
- package/dist/{conversation-entity-extractor-XMOUHGMT.js → conversation-entity-extractor-VPOH26FG.js} +3 -3
- package/dist/{conversations-retention-XTBFJBUM.js → conversations-retention-HFM2K6ND.js} +33 -12
- package/dist/{crdt-sync-FXEKABM7.js → crdt-sync-5ASUMUPX.js} +4 -4
- package/dist/{crm-webhook-D6IJOPRQ.js → crm-webhook-7PYD36EA.js} +2 -2
- package/dist/{cto-delegation-gate-BU3JRCYN.js → cto-delegation-gate-5RABUXBR.js} +18 -17
- package/dist/{daemon-orchestration-K4NKFYXO.js → daemon-orchestration-2SROQ2N4.js} +24 -23
- package/dist/{doc-graph-extractor-TVK2NGAR.js → doc-graph-extractor-XWLDPVO4.js} +8 -7
- package/dist/{documents-MDZ4VB5X.js → documents-SKJ6XYMW.js} +10 -9
- package/dist/{dreaming-L24PSS35.js → dreaming-7DTEPB4M.js} +22 -21
- package/dist/{employee-boot-brief-GQVL3FQC.js → employee-boot-brief-VJD3F4OB.js} +26 -25
- package/dist/{entity-boost-OMFA5QCG.js → entity-boost-4M7BE7C7.js} +1 -1
- package/dist/{exe-drift-JDDG3OPT.js → exe-drift-7A3GZEUE.js} +6 -5
- package/dist/{exe-export-EEGIE3JP.js → exe-export-3JVH5YIV.js} +11 -10
- package/dist/{exe-import-UJNC5Q2L.js → exe-import-DQ6UEYHN.js} +11 -10
- package/dist/{exe-key-TYEY4W4E.js → exe-key-G5V3HUTJ.js} +106 -105
- package/dist/{exe-org-B3ICTTEV.js → exe-org-NG3ZYJXK.js} +40 -40
- package/dist/{exe-snapshot-VBFBONYN.js → exe-snapshot-IKYR55CZ.js} +25 -24
- package/dist/{fast-db-init-TFRTK6EH.js → fast-db-init-QYF42NZP.js} +1 -1
- package/dist/{founder-context-3X4QUWKD.js → founder-context-XJ6O43OF.js} +2 -2
- package/dist/{founder-monitor-envelope-54UNZNY4.js → founder-monitor-envelope-XT6U5L6M.js} +4 -4
- package/dist/gateway/index.js +19 -18
- package/dist/{gateway-client-OUDO5GGV.js → gateway-client-ARBQBLRK.js} +1 -1
- package/dist/{git-staleness-73YZ5PGU.js → git-staleness-2C2XYDLJ.js} +5 -4
- package/dist/{global-procedures-PYNE2BQG.js → global-procedures-DI4KFCVA.js} +7 -6
- package/dist/{graph-auto-extract-PGUMEEQB.js → graph-auto-extract-F6OKIHQQ.js} +8 -7
- package/dist/{graph-query-7YA3YNKL.js → graph-query-IY7QR2UR.js} +1 -1
- package/dist/{graph-rag-UWOTK4AQ.js → graph-rag-HB5X6YAF.js} +3 -3
- package/dist/{hook-integrity-6MNEPT6W.js → hook-integrity-T3DIELFF.js} +1 -1
- package/dist/{hook-prefetch-JOF6YZSR.js → hook-prefetch-SNDJ2G7Q.js} +18 -17
- package/dist/{hook-tamper-log-HTWEP37U.js → hook-tamper-log-SWQVRDDV.js} +6 -1
- package/dist/hooks/bug-report-worker.js +22 -21
- package/dist/hooks/codex-stop-task-finalizer.js +24 -23
- package/dist/hooks/commit-complete.js +21 -20
- package/dist/hooks/error-recall.js +14 -13
- package/dist/hooks/exe-heartbeat-hook.js +8 -7
- package/dist/hooks/ingest-worker.js +20 -19
- package/dist/hooks/ingest.js +16 -15
- package/dist/hooks/instructions-loaded.js +10 -9
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +9 -8
- package/dist/hooks/post-compact.js +8 -7
- package/dist/hooks/post-tool-combined.js +13 -13
- package/dist/hooks/pre-compact.js +22 -21
- package/dist/hooks/pre-tool-use.js +2 -2
- package/dist/hooks/prompt-submit.js +40 -39
- package/dist/hooks/session-end.js +27 -26
- package/dist/hooks/session-start.js +18 -18
- package/dist/hooks/stop.js +25 -24
- package/dist/hooks/subagent-stop.js +25 -24
- package/dist/hooks/summary-worker.js +25 -24
- package/dist/index.js +32 -31
- package/dist/{installer-7TN36Z7T.js → installer-7QUGM3RZ.js} +9 -8
- package/dist/{installer-356RMQ2K.js → installer-CCINS5Z7.js} +9 -8
- package/dist/{installer-34XZ7JMW.js → installer-Z7ZF2UZL.js} +9 -8
- package/dist/{intercom-queue-ZJ3MNULM.js → intercom-queue-A24ARSCV.js} +17 -16
- package/dist/lib/backup-verify-worker.js +3 -2
- package/dist/lib/cloud-sync.js +18 -17
- package/dist/lib/consolidation.js +11 -10
- package/dist/lib/crypto.js +3 -3
- package/dist/lib/database.js +9 -4
- package/dist/lib/db-backup.js +12 -1
- package/dist/lib/db-checkpoint-worker.js +25 -0
- package/dist/lib/db-read-worker-client.js +155 -26
- package/dist/lib/db-write-worker-client.js +5 -1
- package/dist/lib/db-write-worker.js +9 -8
- package/dist/lib/db.js +9 -4
- package/dist/lib/device-registry.js +1 -1
- package/dist/lib/employee-templates.js +8 -7
- package/dist/lib/employees.js +5 -4
- package/dist/lib/exe-daemon.js +162 -111
- package/dist/lib/file-grep.js +14 -1
- package/dist/lib/hybrid-search.js +11 -10
- package/dist/lib/identity.js +5 -4
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +2 -2
- package/dist/lib/messaging.js +18 -17
- package/dist/lib/post-tool-memory.js +18 -17
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +6 -5
- package/dist/lib/schedules.js +10 -9
- package/dist/lib/session-registry.js +7 -6
- package/dist/lib/session-wrappers.js +1 -1
- package/dist/lib/skill-learning.js +11 -10
- package/dist/lib/store.js +9 -8
- package/dist/lib/task-router.js +6 -5
- package/dist/lib/tasks.js +19 -18
- package/dist/lib/telemetry-consent.js +29 -0
- package/dist/lib/tmux-routing.js +17 -16
- package/dist/lib/tmux-status.js +5 -1
- package/dist/lib/token-spend.js +6 -5
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-4BXUTHLB.js → license-gate-KGSD5NV5.js} +3 -3
- package/dist/{license-recheck-QFPUKISQ.js → license-recheck-M674BGZZ.js} +1 -1
- package/dist/{license-sync-FDEDT4AC.js → license-sync-LV53TSOT.js} +2 -2
- package/dist/{maintenance-worker-OY2E4BM5.js → maintenance-worker-R5N3A2KM.js} +3 -3
- package/dist/mcp/register-tools.js +105 -104
- package/dist/mcp/server.js +107 -106
- package/dist/mcp/tools/complete-reminder.js +7 -6
- package/dist/mcp/tools/create-reminder.js +7 -6
- package/dist/mcp/tools/create-task.js +22 -21
- package/dist/mcp/tools/deactivate-behavior.js +13 -12
- package/dist/mcp/tools/list-reminders.js +7 -6
- package/dist/mcp/tools/list-tasks.js +22 -21
- package/dist/mcp/tools/send-message.js +21 -20
- package/dist/mcp/tools/update-task.js +20 -19
- package/dist/{mcp-http-config-GKP5QGAO.js → mcp-http-config-NLKZQHV6.js} +8 -7
- package/dist/{mcp-session-identity-JHAGRB7B.js → mcp-session-identity-AEYKQELS.js} +17 -16
- package/dist/{memory-cards-O377ETAM.js → memory-cards-3ITTLHOY.js} +9 -8
- package/dist/{memory-graph-extractor-4KJCCUOP.js → memory-graph-extractor-FM7Q4VV6.js} +9 -8
- package/dist/{memory-maintenance-RR5UPRW3.js → memory-maintenance-OYSA36EJ.js} +1 -1
- package/dist/{memory-poisoning-defense-Y5TTKGOP.js → memory-poisoning-defense-7JFJUCKU.js} +5 -4
- package/dist/{memory-pressure-watchdog-NGXTI4HR.js → memory-pressure-watchdog-FROXPH3U.js} +18 -17
- package/dist/{memory-reflection-EXNHRZL7.js → memory-reflection-CTGRQAPC.js} +9 -8
- package/dist/{memory-write-repository-S4TX7WQB.js → memory-write-repository-D2WU2WFY.js} +5 -3
- package/dist/{monitor-grants-57Q4NL25.js → monitor-grants-TYGR4SSC.js} +3 -3
- package/dist/{monitor-identity-3FQ52SYU.js → monitor-identity-P54TAJBA.js} +2 -2
- package/dist/{notification-ledger-O6KQYYGK.js → notification-ledger-MIYYFMHL.js} +18 -17
- package/dist/{notifications-6FCQCJ4P.js → notifications-E7ZUVBUS.js} +17 -16
- package/dist/{orchestration-events-2Z2BMMA5.js → orchestration-events-U6DT373C.js} +6 -5
- package/dist/{orchestrator-AGOSKPHD.js → orchestrator-JUIMX24X.js} +19 -18
- package/dist/{org-brief-session-WJHZVXXJ.js → org-brief-session-YRIV2QSB.js} +17 -16
- package/dist/{org-consent-policy-X43UGTHI.js → org-consent-policy-NQ2KDQDG.js} +5 -5
- package/dist/{org-join-M3UTBMHC.js → org-join-II6F2VJH.js} +11 -11
- package/dist/{org-key-admin-AA2DRHB2.js → org-key-admin-JH6KJB4J.js} +13 -13
- package/dist/{org-key-epoch-Z5UIVUHT.js → org-key-epoch-G6XN6IJM.js} +5 -5
- package/dist/{org-key-pin-FE6YHEZ3.js → org-key-pin-WW5CHAQL.js} +3 -3
- package/dist/{org-membership-3J2MIGE4.js → org-membership-ROYVH7I7.js} +4 -4
- package/dist/{org-partner-config-5HATZYG4.js → org-partner-config-SQULMRXG.js} +8 -8
- package/dist/{org-partner-runtime-UI35IHUC.js → org-partner-runtime-PCGVG3M2.js} +17 -16
- package/dist/{org-row-visibility-TRJERVYP.js → org-row-visibility-USZO6GXN.js} +1 -1
- package/dist/{pipeline-router-EKQ6D7ZA.js → pipeline-router-2UJV527K.js} +6 -5
- package/dist/{plan-limits-3BGHIHX6.js → plan-limits-HBD2B77I.js} +8 -7
- package/dist/{pre-tool-use-impl-7BT5TJVM.js → pre-tool-use-impl-WEZ76RLG.js} +35 -34
- package/dist/{project-name-PGJGUEJY.js → project-name-O37JG2BV.js} +10 -5
- package/dist/{projection-worker-3GEVFPAI.js → projection-worker-HHEYDVMY.js} +2 -2
- package/dist/{prospective-memory-GEN7CN7H.js → prospective-memory-LNZTVL5G.js} +5 -4
- package/dist/{push-notifications-QW4BWRC7.js → push-notifications-QT2KL3GR.js} +18 -17
- package/dist/{reproject-worktree-memories-DIULBEBD.js → reproject-worktree-memories-CYQLKU2R.js} +17 -16
- package/dist/{reranker-LQ6OPJOI.js → reranker-MJUCNQ3B.js} +1 -1
- package/dist/{retrieval-health-XDFYFEOP.js → retrieval-health-MO36P7O3.js} +1 -1
- package/dist/{review-polling-ED33YLFT.js → review-polling-OU7JLEKI.js} +18 -17
- package/dist/runtime/index.js +25 -24
- package/dist/{seat-benefit-YEUQBNCS.js → seat-benefit-SBVGAMMY.js} +2 -2
- package/dist/{session-events-7IJGTBVH.js → session-events-KB7A2PIL.js} +26 -19
- package/dist/{session-kill-telemetry-RUTEARJ3.js → session-kill-telemetry-UNS3QI2G.js} +18 -17
- package/dist/{session-scope-SSYA64L3.js → session-scope-QOR7CVGI.js} +17 -16
- package/dist/{setup-wizard-XD7FZVLJ.js → setup-wizard-MMKIRDM5.js} +4 -3
- package/dist/{shard-manager-FH5JZRSE.js → shard-manager-UM3UYDLV.js} +3 -3
- package/dist/{skill-refinement-UHD4E6GV.js → skill-refinement-4ZND3EZF.js} +6 -5
- package/dist/{skill-retrieval-F6PAJ3I5.js → skill-retrieval-U5F2ZPL6.js} +13 -12
- package/dist/{skill-usage-2MBTF7Y4.js → skill-usage-ECYWEKQG.js} +6 -5
- package/dist/{stack-generate-manifest-MVJDTU4F.js → stack-generate-manifest-HL7QJ5XC.js} +4 -4
- package/dist/{stack-promote-BMGEY6SQ.js → stack-promote-CINVLY2J.js} +4 -4
- package/dist/{stack-release-64UJ6Y4W.js → stack-release-PNGTKMW6.js} +5 -5
- package/dist/{stack-update-EBATTQPP.js → stack-update-QXABQSHS.js} +3 -3
- package/dist/{steward-gate-EWG2BHYQ.js → steward-gate-VBZXP4HY.js} +6 -5
- package/dist/{subagent-brief-injection-YZGSWUEY.js → subagent-brief-injection-63LZHTT3.js} +29 -28
- package/dist/{subagent-spawn-ledger-PDICC43I.js → subagent-spawn-ledger-2XSOIL35.js} +3 -1
- package/dist/{support-bug-actions-RU6WZ3UV.js → support-bug-actions-IPFJ5WEZ.js} +3 -3
- package/dist/{support-inbox-A3S52SPS.js → support-inbox-TUMS347S.js} +15 -14
- package/dist/{task-enforcement-LVAS55AR.js → task-enforcement-ESAMX2ML.js} +18 -17
- package/dist/{task-request-inbox-2TN4ZUH2.js → task-request-inbox-ILFRNPZA.js} +5 -5
- package/dist/{task-scope-NLKUVCP5.js → task-scope-6LIHTVCC.js} +17 -16
- package/dist/{tasks-crud-NQDPLHNZ.js → tasks-crud-NWNW7RDH.js} +21 -16
- package/dist/{tasks-notify-BDM2NEHP.js → tasks-notify-H4CUL7RM.js} +18 -17
- package/dist/{tasks-review-3G7CAW2O.js → tasks-review-F4VW7NOI.js} +17 -16
- package/dist/telemetry-upload-MUIZKQDT.js +42 -0
- package/dist/{token-budget-KNC2WGR7.js → token-budget-H53P6O6O.js} +6 -5
- package/dist/{tool-telemetry-I3SEU5M5.js → tool-telemetry-A7NUFJI4.js} +1 -1
- package/dist/tui/App.js +27 -26
- package/dist/{tui-data-KJDWP4CB.js → tui-data-4TWYXEEA.js} +21 -20
- package/dist/{update-support-UYDYMHVR.js → update-support-4B7GQLUI.js} +14 -13
- package/dist/{whatsapp-5EMPZHF5.js → whatsapp-JHB2BHJE.js} +2 -2
- package/dist/{wiki-acl-M7BTQJBZ.js → wiki-acl-OFOKEUJS.js} +1 -1
- package/dist/{work-claims-5CFMZTML.js → work-claims-36IKRNK6.js} +6 -5
- package/dist/{work-state-heartbeat-7IA2DZ2E.js → work-state-heartbeat-RXQKS4GL.js} +1 -1
- package/dist/{workflow-engine-S5JOE2YR.js → workflow-engine-SJHROL46.js} +2 -2
- package/dist/{worktree-7V4ZMF3D.js → worktree-YIUDLMNS.js} +7 -6
- package/dist/{worktree-sweep-34MXJ7S6.js → worktree-sweep-2MZ7PKEG.js} +8 -7
- package/package.json +2 -1
- package/release-notes.json +25 -21
- package/stack.release.json +3 -3
- package/dist/chunk-PEYQ6MWO.js +0 -175
- /package/dist/{chunk-542FBM5U.js → chunk-2CKQEW4W.js} +0 -0
- /package/dist/{chunk-MOBZTIJQ.js → chunk-43WD6UKN.js} +0 -0
- /package/dist/{chunk-N45FAI6D.js → chunk-4ULAH65G.js} +0 -0
- /package/dist/{chunk-YVWXI2HM.js → chunk-5ZVDEGES.js} +0 -0
- /package/dist/{chunk-QDSNEGJE.js → chunk-ISNY2BGX.js} +0 -0
- /package/dist/{chunk-6D2O5SAH.js → chunk-KM3S64VS.js} +0 -0
- /package/dist/{chunk-J4B4M5PH.js → chunk-LGSXXCE2.js} +0 -0
- /package/dist/{chunk-J635FA7T.js → chunk-N4PRTLUX.js} +0 -0
- /package/dist/{chunk-EULAP6L6.js → chunk-QC3AU6NX.js} +0 -0
- /package/dist/{chunk-CFO47VW4.js → chunk-U6FWH2KA.js} +0 -0
- /package/dist/{chunk-SKSXROKP.js → chunk-UMIELGF2.js} +0 -0
- /package/dist/{chunk-FYSKQPTE.js → chunk-W7A44LSP.js} +0 -0
- /package/dist/{chunk-6NRZLVK3.js → chunk-WKXEOVSN.js} +0 -0
- /package/dist/{core-memory-PZEO3OWH.js → core-memory-EGE6W24K.js} +0 -0
- /package/dist/{memory-isolation-MFNT2ITE.js → memory-isolation-HX6XSKZM.js} +0 -0
- /package/dist/{oauth-server-CBGEWD6H.js → oauth-server-6TE2NW74.js} +0 -0
- /package/dist/{project-boot-VESAYDIH.js → project-boot-2GNHDNUH.js} +0 -0
package/dist/lib/exe-daemon.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLOUD_SYNC_EXIT_PARTIAL
|
|
3
3
|
} from "../chunk-5LQZABW5.js";
|
|
4
|
+
import {
|
|
5
|
+
decideSweepSkip,
|
|
6
|
+
readHostLoadSignal
|
|
7
|
+
} from "../chunk-Y6LOT7GS.js";
|
|
4
8
|
import {
|
|
5
9
|
RESTART_BREAKER_THRESHOLD,
|
|
6
10
|
readBreakerAlert,
|
|
@@ -9,16 +13,12 @@ import {
|
|
|
9
13
|
restartBreakerAlertPath,
|
|
10
14
|
writeDaemonExitBreadcrumb
|
|
11
15
|
} from "../chunk-UNFHKOTF.js";
|
|
12
|
-
import {
|
|
13
|
-
decideSweepSkip,
|
|
14
|
-
readHostLoadSignal
|
|
15
|
-
} from "../chunk-CYUUNIEL.js";
|
|
16
16
|
import {
|
|
17
17
|
isDbVerifyStampFresh
|
|
18
18
|
} from "../chunk-SVFNWBLF.js";
|
|
19
19
|
import {
|
|
20
20
|
pushNotifyAsync
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-TPYGTRYK.js";
|
|
22
22
|
import {
|
|
23
23
|
disposeDbWriteWorker,
|
|
24
24
|
isDbWriteWorkerReady,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
sweepConversationsRetentionInWorker,
|
|
28
28
|
sweepSessionEventsRetentionInWorker,
|
|
29
29
|
writeMemoryInWorker
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-R3ZU4F7M.js";
|
|
31
31
|
import {
|
|
32
32
|
shouldScheduleDaemonRestartHandoff
|
|
33
33
|
} from "../chunk-FXZ6VGFW.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isHostSuspendedWindow,
|
|
42
42
|
totalHostCpuMs,
|
|
43
43
|
updateLoadWindow
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-B3W5R5OE.js";
|
|
45
45
|
import {
|
|
46
46
|
getMcpToolFamily,
|
|
47
47
|
inferMcpRuntime,
|
|
@@ -64,14 +64,15 @@ import {
|
|
|
64
64
|
} from "../chunk-KWOAM7TA.js";
|
|
65
65
|
import {
|
|
66
66
|
governMemoryRecord
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-W7A44LSP.js";
|
|
68
68
|
import "../chunk-5MOYSU5A.js";
|
|
69
69
|
import "../chunk-BYP3DOUU.js";
|
|
70
70
|
import "../chunk-76CJBM36.js";
|
|
71
71
|
import {
|
|
72
72
|
BUSY_PATTERN
|
|
73
|
-
} from "../chunk-
|
|
74
|
-
import "../chunk-
|
|
73
|
+
} from "../chunk-H372DQD2.js";
|
|
74
|
+
import "../chunk-YQT3JC27.js";
|
|
75
|
+
import "../chunk-EIKATSE4.js";
|
|
75
76
|
import {
|
|
76
77
|
currentPauseStartMs,
|
|
77
78
|
isTimerPausedNow,
|
|
@@ -81,22 +82,21 @@ import {
|
|
|
81
82
|
timerPauseIntervalsSince
|
|
82
83
|
} from "../chunk-ZKGWHT56.js";
|
|
83
84
|
import "../chunk-WT4RI36X.js";
|
|
85
|
+
import "../chunk-MJCSEIFI.js";
|
|
84
86
|
import "../chunk-E23LNUWJ.js";
|
|
85
87
|
import "../chunk-TDF2XKLK.js";
|
|
86
|
-
import "../chunk-EIKATSE4.js";
|
|
87
|
-
import "../chunk-MJCSEIFI.js";
|
|
88
88
|
import "../chunk-QDMZ5DX2.js";
|
|
89
89
|
import "../chunk-HME6ITKV.js";
|
|
90
|
-
import "../chunk-
|
|
90
|
+
import "../chunk-R6Q3MB2F.js";
|
|
91
91
|
import "../chunk-VI4ATC6I.js";
|
|
92
92
|
import "../chunk-A27Q27CT.js";
|
|
93
|
-
import "../chunk-
|
|
94
|
-
import "../chunk-JGBYZTWH.js";
|
|
93
|
+
import "../chunk-7MCEYNWK.js";
|
|
95
94
|
import "../chunk-T5SM4RXY.js";
|
|
96
|
-
import "../chunk-
|
|
95
|
+
import "../chunk-EWKNMFS6.js";
|
|
97
96
|
import "../chunk-IVXELUEQ.js";
|
|
98
97
|
import "../chunk-AM7S2TY6.js";
|
|
99
|
-
import "../chunk-
|
|
98
|
+
import "../chunk-NFTTBVL2.js";
|
|
99
|
+
import "../chunk-6A74345E.js";
|
|
100
100
|
import {
|
|
101
101
|
attributeSignalSource,
|
|
102
102
|
consumeRestartIntentDetail,
|
|
@@ -144,12 +144,12 @@ import {
|
|
|
144
144
|
killAttributionLogPath,
|
|
145
145
|
recordKillIntent
|
|
146
146
|
} from "../chunk-DRTJCG6B.js";
|
|
147
|
-
import "../chunk-
|
|
147
|
+
import "../chunk-V3RGMCCP.js";
|
|
148
148
|
import "../chunk-CVYC6DUW.js";
|
|
149
149
|
import "../chunk-GJV3WDWM.js";
|
|
150
150
|
import "../chunk-YRUZK2QA.js";
|
|
151
151
|
import "../chunk-MP2AFCGL.js";
|
|
152
|
-
import "../chunk-
|
|
152
|
+
import "../chunk-7VQ2OCZG.js";
|
|
153
153
|
import {
|
|
154
154
|
logBoot,
|
|
155
155
|
logCrash,
|
|
@@ -158,10 +158,11 @@ import {
|
|
|
158
158
|
logShutdown
|
|
159
159
|
} from "../chunk-BBMTVAE3.js";
|
|
160
160
|
import "../chunk-TKDITWDN.js";
|
|
161
|
-
import "../chunk-SINIRUYZ.js";
|
|
162
|
-
import "../chunk-6777GNWI.js";
|
|
163
|
-
import "../chunk-7FE43JRU.js";
|
|
164
161
|
import "../chunk-5YEUPUV4.js";
|
|
162
|
+
import "../chunk-4LCZYKVK.js";
|
|
163
|
+
import "../chunk-CCFWKW2D.js";
|
|
164
|
+
import "../chunk-OFC5SIIT.js";
|
|
165
|
+
import "../chunk-7FE43JRU.js";
|
|
165
166
|
import {
|
|
166
167
|
isPostgresBackendEnabled
|
|
167
168
|
} from "../chunk-YYB5PMTK.js";
|
|
@@ -186,9 +187,9 @@ import {
|
|
|
186
187
|
EMBEDDING_DIM
|
|
187
188
|
} from "../chunk-C7GHNJPW.js";
|
|
188
189
|
import "../chunk-UWGQNJIE.js";
|
|
189
|
-
import "../chunk-
|
|
190
|
+
import "../chunk-HPCCYWDP.js";
|
|
190
191
|
import "../chunk-3R7UDPVR.js";
|
|
191
|
-
import "../chunk-
|
|
192
|
+
import "../chunk-KM3S64VS.js";
|
|
192
193
|
import "../chunk-A7JYF4RG.js";
|
|
193
194
|
import "../chunk-ARX6TAGN.js";
|
|
194
195
|
import {
|
|
@@ -2683,7 +2684,7 @@ async function loadModel() {
|
|
|
2683
2684
|
void (async () => {
|
|
2684
2685
|
try {
|
|
2685
2686
|
if (_storeInitialized) {
|
|
2686
|
-
const { writeNotification } = await import("../notifications-
|
|
2687
|
+
const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
|
|
2687
2688
|
await writeNotification({
|
|
2688
2689
|
agentId: "exe",
|
|
2689
2690
|
agentRole: "system",
|
|
@@ -2820,7 +2821,7 @@ function disableEmbeddingsForInferenceTimeouts() {
|
|
|
2820
2821
|
void (async () => {
|
|
2821
2822
|
try {
|
|
2822
2823
|
if (_storeInitialized) {
|
|
2823
|
-
const { writeNotification } = await import("../notifications-
|
|
2824
|
+
const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
|
|
2824
2825
|
await writeNotification({
|
|
2825
2826
|
agentId: "exe",
|
|
2826
2827
|
agentRole: "system",
|
|
@@ -2987,7 +2988,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
|
|
|
2987
2988
|
_shuttingDown = true;
|
|
2988
2989
|
_drainingWrites = true;
|
|
2989
2990
|
try {
|
|
2990
|
-
const { stopOrgPartnerRuntime } = await import("../org-partner-runtime-
|
|
2991
|
+
const { stopOrgPartnerRuntime } = await import("../org-partner-runtime-PCGVG3M2.js");
|
|
2991
2992
|
stopOrgPartnerRuntime();
|
|
2992
2993
|
} catch {
|
|
2993
2994
|
}
|
|
@@ -3007,7 +3008,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
|
|
|
3007
3008
|
resetIdleTimer();
|
|
3008
3009
|
flushToDisk();
|
|
3009
3010
|
try {
|
|
3010
|
-
const { stopMaintenanceLane } = await import("../maintenance-worker-
|
|
3011
|
+
const { stopMaintenanceLane } = await import("../maintenance-worker-R5N3A2KM.js");
|
|
3011
3012
|
await stopMaintenanceLane();
|
|
3012
3013
|
} catch {
|
|
3013
3014
|
}
|
|
@@ -3075,7 +3076,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
|
|
|
3075
3076
|
dbBytes = dbPath ? statSync4(dbPath).size : 0;
|
|
3076
3077
|
} catch {
|
|
3077
3078
|
}
|
|
3078
|
-
const { getAvailableMemoryBytesSync } = await import("../memory-pressure-watchdog-
|
|
3079
|
+
const { getAvailableMemoryBytesSync } = await import("../memory-pressure-watchdog-FROXPH3U.js");
|
|
3079
3080
|
const freeBytes = getAvailableMemoryBytesSync();
|
|
3080
3081
|
if (shouldSkipBackupUnderMemoryPressure(freeBytes, dbBytes)) {
|
|
3081
3082
|
memoryGateSkip = true;
|
|
@@ -3128,12 +3129,12 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
|
|
|
3128
3129
|
`);
|
|
3129
3130
|
}
|
|
3130
3131
|
try {
|
|
3131
|
-
const { stopProjectionWorker } = await import("../projection-worker-
|
|
3132
|
+
const { stopProjectionWorker } = await import("../projection-worker-HHEYDVMY.js");
|
|
3132
3133
|
stopProjectionWorker();
|
|
3133
3134
|
} catch {
|
|
3134
3135
|
}
|
|
3135
3136
|
try {
|
|
3136
|
-
const { disposeShards } = await import("../shard-manager-
|
|
3137
|
+
const { disposeShards } = await import("../shard-manager-UM3UYDLV.js");
|
|
3137
3138
|
disposeShards();
|
|
3138
3139
|
} catch {
|
|
3139
3140
|
}
|
|
@@ -3196,7 +3197,7 @@ async function handleHealthCheck(socket, requestId) {
|
|
|
3196
3197
|
let pipelineStatus = "unknown";
|
|
3197
3198
|
if (dbConnected) {
|
|
3198
3199
|
try {
|
|
3199
|
-
await import("../pipeline-router-
|
|
3200
|
+
await import("../pipeline-router-2UJV527K.js");
|
|
3200
3201
|
pipelineStatus = "ok";
|
|
3201
3202
|
} catch {
|
|
3202
3203
|
pipelineStatus = "unavailable";
|
|
@@ -3299,12 +3300,13 @@ async function handleHealthCheck(socket, requestId) {
|
|
|
3299
3300
|
}
|
|
3300
3301
|
var _dbRequestsServed = 0;
|
|
3301
3302
|
async function runDaemonTimerRead(sql, args = []) {
|
|
3303
|
+
const { isDbReadWorkerReady, runReadQueryInWorker, isDbReadWorkerTimeout } = await import("./db-read-worker-client.js");
|
|
3302
3304
|
try {
|
|
3303
|
-
const { isDbReadWorkerReady, runReadQueryInWorker } = await import("./db-read-worker-client.js");
|
|
3304
3305
|
if (isDbReadWorkerReady()) {
|
|
3305
3306
|
return await runReadQueryInWorker(sql, args);
|
|
3306
3307
|
}
|
|
3307
|
-
} catch {
|
|
3308
|
+
} catch (err) {
|
|
3309
|
+
if (isDbReadWorkerTimeout(err)) throw err;
|
|
3308
3310
|
}
|
|
3309
3311
|
const { getClient } = await import("./database.js");
|
|
3310
3312
|
return getClient().execute({ sql, args });
|
|
@@ -3344,7 +3346,9 @@ async function handleDbExecute(socket, requestId, sql, args) {
|
|
|
3344
3346
|
sendResponse(socket, { id: requestId, db: serialized });
|
|
3345
3347
|
return;
|
|
3346
3348
|
}
|
|
3347
|
-
} catch {
|
|
3349
|
+
} catch (err) {
|
|
3350
|
+
const { isDbReadWorkerTimeout } = await import("./db-read-worker-client.js");
|
|
3351
|
+
if (isDbReadWorkerTimeout(err)) throw err;
|
|
3348
3352
|
}
|
|
3349
3353
|
}
|
|
3350
3354
|
const { getClient } = await import("./database.js");
|
|
@@ -3588,7 +3592,7 @@ async function _writeMemoryRecordInner(entry, syncOnly = false) {
|
|
|
3588
3592
|
}
|
|
3589
3593
|
}
|
|
3590
3594
|
const { getClient } = await import("./database.js");
|
|
3591
|
-
const { buildMemoryInsert, readMemoryWriteOutcome } = await import("../memory-write-repository-
|
|
3595
|
+
const { buildMemoryInsert, readMemoryWriteOutcome } = await import("../memory-write-repository-D2WU2WFY.js");
|
|
3592
3596
|
const client = getClient();
|
|
3593
3597
|
const row = {
|
|
3594
3598
|
...record,
|
|
@@ -3609,7 +3613,7 @@ async function _writeMemoryRecordInner(entry, syncOnly = false) {
|
|
|
3609
3613
|
if (Number(inserted.rowsAffected) === 0) return outcome.id;
|
|
3610
3614
|
const version = outcome.version;
|
|
3611
3615
|
try {
|
|
3612
|
-
const { insertOntologyForMemory } = await import("../agentic-ontology-
|
|
3616
|
+
const { insertOntologyForMemory } = await import("../agentic-ontology-C7G2MB5M.js");
|
|
3613
3617
|
await insertOntologyForMemory({
|
|
3614
3618
|
id,
|
|
3615
3619
|
agent_id: record.agent_id,
|
|
@@ -4486,7 +4490,7 @@ async function startMcpHttpServer() {
|
|
|
4486
4490
|
setBootPhase("db_ready");
|
|
4487
4491
|
_storeInitialized = true;
|
|
4488
4492
|
markDbInitCompleted();
|
|
4489
|
-
const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-
|
|
4493
|
+
const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-KGSD5NV5.js");
|
|
4490
4494
|
const gateResult = await initLicenseGate();
|
|
4491
4495
|
if (!gateResult.hasKey) {
|
|
4492
4496
|
process.stderr.write(
|
|
@@ -4498,7 +4502,7 @@ async function startMcpHttpServer() {
|
|
|
4498
4502
|
`
|
|
4499
4503
|
);
|
|
4500
4504
|
}
|
|
4501
|
-
const { startLicenseRecheckTimer, LICENSE_RECHECK_INTERVAL_MS } = await import("../license-recheck-
|
|
4505
|
+
const { startLicenseRecheckTimer, LICENSE_RECHECK_INTERVAL_MS } = await import("../license-recheck-M674BGZZ.js");
|
|
4502
4506
|
startLicenseRecheckTimer();
|
|
4503
4507
|
process.stderr.write(
|
|
4504
4508
|
`[exed] License re-check timer started (every ${LICENSE_RECHECK_INTERVAL_MS / 6e4}m, throttled by cache freshness)
|
|
@@ -4507,7 +4511,7 @@ async function startMcpHttpServer() {
|
|
|
4507
4511
|
let _cachedWrapTelemetry = null;
|
|
4508
4512
|
async function getWrapTelemetry() {
|
|
4509
4513
|
if (!_cachedWrapTelemetry) {
|
|
4510
|
-
const { wrapServerWithTelemetry } = await import("../tool-telemetry-
|
|
4514
|
+
const { wrapServerWithTelemetry } = await import("../tool-telemetry-A7NUFJI4.js");
|
|
4511
4515
|
_cachedWrapTelemetry = wrapServerWithTelemetry;
|
|
4512
4516
|
}
|
|
4513
4517
|
return _cachedWrapTelemetry;
|
|
@@ -4579,7 +4583,7 @@ async function startMcpHttpServer() {
|
|
|
4579
4583
|
const expectedBuf = Buffer.from(_daemonToken);
|
|
4580
4584
|
if (tokenBuf.length === expectedBuf.length && timingSafeEqual(tokenBuf, expectedBuf)) return true;
|
|
4581
4585
|
try {
|
|
4582
|
-
const { verifyAccessToken } = await import("../oauth-server-
|
|
4586
|
+
const { verifyAccessToken } = await import("../oauth-server-6TE2NW74.js");
|
|
4583
4587
|
const result = verifyAccessToken(token);
|
|
4584
4588
|
return result.valid;
|
|
4585
4589
|
} catch {
|
|
@@ -4842,7 +4846,7 @@ async function startMcpHttpServer() {
|
|
|
4842
4846
|
return;
|
|
4843
4847
|
}
|
|
4844
4848
|
try {
|
|
4845
|
-
const { handleOAuthRoute } = await import("../oauth-server-
|
|
4849
|
+
const { handleOAuthRoute } = await import("../oauth-server-6TE2NW74.js");
|
|
4846
4850
|
const handled = await handleOAuthRoute(req, res, url, MCP_HTTP_PORT, _daemonToken);
|
|
4847
4851
|
if (handled) return;
|
|
4848
4852
|
} catch (err) {
|
|
@@ -4970,7 +4974,7 @@ async function startMcpHttpServer() {
|
|
|
4970
4974
|
contextPct: body.context_pct
|
|
4971
4975
|
});
|
|
4972
4976
|
if (body.context_pct !== void 0 && body.context_pct > 70) {
|
|
4973
|
-
void import("../orchestration-events-
|
|
4977
|
+
void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
|
|
4974
4978
|
recordOE({
|
|
4975
4979
|
eventType: "context.pressure",
|
|
4976
4980
|
source: "exe-daemon.heartbeat",
|
|
@@ -5066,7 +5070,7 @@ async function startMcpHttpServer() {
|
|
|
5066
5070
|
let sessionHint = req.headers["x-exe-session-name"] || req.headers["x-exe-session"] || "";
|
|
5067
5071
|
if (sessionHint) {
|
|
5068
5072
|
try {
|
|
5069
|
-
const { sanitizeSessionHintHeader, rejectForgedSessionHint } = await import("../mcp-session-identity-
|
|
5073
|
+
const { sanitizeSessionHintHeader, rejectForgedSessionHint } = await import("../mcp-session-identity-AEYKQELS.js");
|
|
5070
5074
|
const rawHint = sessionHint;
|
|
5071
5075
|
sessionHint = sanitizeSessionHintHeader(sessionHint);
|
|
5072
5076
|
if (!sessionHint) {
|
|
@@ -5105,7 +5109,7 @@ async function startMcpHttpServer() {
|
|
|
5105
5109
|
try {
|
|
5106
5110
|
const liveSessions = await getTmuxSessionsAsync();
|
|
5107
5111
|
const paneCommands = await getPaneCommandsAsync();
|
|
5108
|
-
const { resolveMcpSessionHint } = await import("../mcp-session-identity-
|
|
5112
|
+
const { resolveMcpSessionHint } = await import("../mcp-session-identity-AEYKQELS.js");
|
|
5109
5113
|
let registrySessions = [];
|
|
5110
5114
|
try {
|
|
5111
5115
|
const { listSessions: listRegistrySessions } = await import("./session-registry.js");
|
|
@@ -5242,7 +5246,7 @@ async function startMcpHttpServer() {
|
|
|
5242
5246
|
bindLive = await getTmuxSessionsAsync();
|
|
5243
5247
|
} catch {
|
|
5244
5248
|
}
|
|
5245
|
-
const { isLauncherCorroboratedIdentity } = await import("../mcp-session-identity-
|
|
5249
|
+
const { isLauncherCorroboratedIdentity } = await import("../mcp-session-identity-AEYKQELS.js");
|
|
5246
5250
|
const corroborated = isLauncherCorroboratedIdentity({
|
|
5247
5251
|
agentId,
|
|
5248
5252
|
registrySessions: bindRegistry,
|
|
@@ -5484,7 +5488,7 @@ async function startMcpHttpServer() {
|
|
|
5484
5488
|
}
|
|
5485
5489
|
}
|
|
5486
5490
|
try {
|
|
5487
|
-
const { reconcileHintWithRegistryIdentity } = await import("../mcp-session-identity-
|
|
5491
|
+
const { reconcileHintWithRegistryIdentity } = await import("../mcp-session-identity-AEYKQELS.js");
|
|
5488
5492
|
const { listSessions: listRegistrySessions } = await import("./session-registry.js");
|
|
5489
5493
|
const recon = reconcileHintWithRegistryIdentity({
|
|
5490
5494
|
agentId,
|
|
@@ -5709,7 +5713,17 @@ function clearHealthExitStreak() {
|
|
|
5709
5713
|
}
|
|
5710
5714
|
}
|
|
5711
5715
|
var _lastStoreInitFailureReason = null;
|
|
5716
|
+
var _storeInitInFlight = null;
|
|
5712
5717
|
async function ensureStoreForPolling() {
|
|
5718
|
+
if (_storeInitialized) return true;
|
|
5719
|
+
if (!_storeInitInFlight) {
|
|
5720
|
+
_storeInitInFlight = initStoreForPollingOnce().finally(() => {
|
|
5721
|
+
_storeInitInFlight = null;
|
|
5722
|
+
});
|
|
5723
|
+
}
|
|
5724
|
+
return _storeInitInFlight;
|
|
5725
|
+
}
|
|
5726
|
+
async function initStoreForPollingOnce() {
|
|
5713
5727
|
if (_storeInitialized) return true;
|
|
5714
5728
|
try {
|
|
5715
5729
|
const { initDatabase, initPostgresOnlyDatabase, isInitialized, ensureSchema } = await import("./database.js");
|
|
@@ -5744,9 +5758,9 @@ async function ensureStoreForPolling() {
|
|
|
5744
5758
|
await initDatabase({ dbPath: config.dbPath, encryptionKey: masterKey.toString("hex") });
|
|
5745
5759
|
await ensureSchema();
|
|
5746
5760
|
try {
|
|
5747
|
-
const { isLedgerEnabled } = await import("../notification-ledger-
|
|
5761
|
+
const { isLedgerEnabled } = await import("../notification-ledger-MIYYFMHL.js");
|
|
5748
5762
|
if (isLedgerEnabled()) {
|
|
5749
|
-
const { bumpBootGeneration } = await import("../boot-generation-
|
|
5763
|
+
const { bumpBootGeneration } = await import("../boot-generation-TT4BOFXY.js");
|
|
5750
5764
|
const { setDaemonReadyGeneration } = await import("../daemon-ready-signal-PNDMVKPJ.js");
|
|
5751
5765
|
const generation = await bumpBootGeneration();
|
|
5752
5766
|
setDaemonReadyGeneration(generation);
|
|
@@ -5792,13 +5806,13 @@ async function ensureStoreForPolling() {
|
|
|
5792
5806
|
}
|
|
5793
5807
|
}
|
|
5794
5808
|
async function startReviewPolling() {
|
|
5795
|
-
const polling = await import("../review-polling-
|
|
5809
|
+
const polling = await import("../review-polling-OU7JLEKI.js");
|
|
5796
5810
|
const state = {
|
|
5797
5811
|
lastIntercomSent: /* @__PURE__ */ new Map(),
|
|
5798
5812
|
lastNudgeSent: /* @__PURE__ */ new Map(),
|
|
5799
5813
|
intervalMs: REVIEW_POLL_INTERVAL_MS
|
|
5800
5814
|
};
|
|
5801
|
-
const { pollReviewNudge, createReviewNudgeRealDeps, loadNudgeState } = await import("../daemon-orchestration-
|
|
5815
|
+
const { pollReviewNudge, createReviewNudgeRealDeps, loadNudgeState } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
5802
5816
|
const nudgeState = loadNudgeState();
|
|
5803
5817
|
const tick = async () => traceDaemonTimer("review_polling", async () => {
|
|
5804
5818
|
fired("review_polling");
|
|
@@ -5806,7 +5820,7 @@ async function startReviewPolling() {
|
|
|
5806
5820
|
try {
|
|
5807
5821
|
const { getClient } = await import("./database.js");
|
|
5808
5822
|
const deps = polling.createRealDeps(getClient);
|
|
5809
|
-
const { strictSessionScopeFilter } = await import("../task-scope-
|
|
5823
|
+
const { strictSessionScopeFilter } = await import("../task-scope-6LIHTVCC.js");
|
|
5810
5824
|
const { getCoordinatorName, DEFAULT_COORDINATOR_TEMPLATE_NAME } = await import("./employees.js");
|
|
5811
5825
|
deps.findOrphanedDoneTasks = async (sessionScope) => {
|
|
5812
5826
|
const coordinatorName = getCoordinatorName();
|
|
@@ -5826,7 +5840,7 @@ async function startReviewPolling() {
|
|
|
5826
5840
|
deps.findTieredReviewCandidates = async (sessionScope) => {
|
|
5827
5841
|
let project = null;
|
|
5828
5842
|
try {
|
|
5829
|
-
const { getProjectName } = await import("../project-name-
|
|
5843
|
+
const { getProjectName } = await import("../project-name-O37JG2BV.js");
|
|
5830
5844
|
project = getProjectName() || null;
|
|
5831
5845
|
} catch {
|
|
5832
5846
|
project = null;
|
|
@@ -5885,7 +5899,7 @@ function startSessionTTL() {
|
|
|
5885
5899
|
if (!await ensureStoreForPolling()) return;
|
|
5886
5900
|
if (inPostRestartDestructiveGrace("session_ttl")) return;
|
|
5887
5901
|
const { getClient } = await import("./database.js");
|
|
5888
|
-
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-
|
|
5902
|
+
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
5889
5903
|
const deps = createSessionTTLRealDeps(getClient);
|
|
5890
5904
|
const killed = await checkSessionTTL(deps, _wedgeObservations);
|
|
5891
5905
|
if (killed.length > 0) acted("session_ttl");
|
|
@@ -5945,7 +5959,7 @@ function startIdleKill() {
|
|
|
5945
5959
|
const cfg = await getCachedConfig();
|
|
5946
5960
|
if (!cfg) return;
|
|
5947
5961
|
const { getClient } = await import("./database.js");
|
|
5948
|
-
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-
|
|
5962
|
+
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
5949
5963
|
const { sessions: liveSessions, paneCache, aliveSessions } = await getSharedOrchestrationCaches();
|
|
5950
5964
|
const realDeps = createIdleKillRealDeps(
|
|
5951
5965
|
getClient,
|
|
@@ -6381,7 +6395,7 @@ function startSkillRefinement() {
|
|
|
6381
6395
|
if (!shouldRunHeavyJob("skill_refinement")) return;
|
|
6382
6396
|
try {
|
|
6383
6397
|
if (!await ensureStoreForPolling()) return;
|
|
6384
|
-
const { runSkillRefinement } = await import("../skill-refinement-
|
|
6398
|
+
const { runSkillRefinement } = await import("../skill-refinement-4ZND3EZF.js");
|
|
6385
6399
|
const result = await runSkillRefinement();
|
|
6386
6400
|
if (result.reviewed > 0) {
|
|
6387
6401
|
acted("skill_refinement");
|
|
@@ -6446,7 +6460,7 @@ function startStalledDispatchSweep() {
|
|
|
6446
6460
|
});
|
|
6447
6461
|
const { notifications, nextState } = decideStalledDispatchEscalations(intents, previousState);
|
|
6448
6462
|
if (notifications.length > 0 && _storeInitialized) {
|
|
6449
|
-
const { writeNotification } = await import("../notifications-
|
|
6463
|
+
const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
|
|
6450
6464
|
for (const note of notifications) {
|
|
6451
6465
|
try {
|
|
6452
6466
|
await writeNotification({
|
|
@@ -6496,7 +6510,7 @@ function startStaleBranchSweep() {
|
|
|
6496
6510
|
fired("stale_branch_sweep");
|
|
6497
6511
|
if (sweepStarved("stale_branch_sweep")) return;
|
|
6498
6512
|
try {
|
|
6499
|
-
const { discoverRepoPathsAsync } = await import("../worktree-sweep-
|
|
6513
|
+
const { discoverRepoPathsAsync } = await import("../worktree-sweep-2MZ7PKEG.js");
|
|
6500
6514
|
const { scanUnmergedBranchesCached } = await import("../branch-hygiene-DDXXI6ZA.js");
|
|
6501
6515
|
const { runBudgetedSweep } = await import("../sweep-budget-YGLCNXZZ.js");
|
|
6502
6516
|
const today = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
@@ -6529,7 +6543,7 @@ function startStaleBranchSweep() {
|
|
|
6529
6543
|
if (!_storeInitialized) return;
|
|
6530
6544
|
const stale = scan.branches.filter((b) => b.ageHours >= STALE_BRANCH_HOURS).slice(0, 5).map((b) => `${b.name} (${b.aheadUnknown ? "+? commits" : `+${b.ahead} commits`}, ${(b.ageHours / 24).toFixed(1)}d)`).join("; ");
|
|
6531
6545
|
try {
|
|
6532
|
-
const { writeNotification } = await import("../notifications-
|
|
6546
|
+
const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
|
|
6533
6547
|
await writeNotification({
|
|
6534
6548
|
agentId: "exe",
|
|
6535
6549
|
agentRole: "system",
|
|
@@ -6570,7 +6584,7 @@ function startBugLandedReconcile() {
|
|
|
6570
6584
|
fired("bug_landed_reconcile");
|
|
6571
6585
|
if (sweepStarved("bug_landed_reconcile")) return;
|
|
6572
6586
|
try {
|
|
6573
|
-
const { reconcileLandedBugs } = await import("../bug-landed-reconciler-
|
|
6587
|
+
const { reconcileLandedBugs } = await import("../bug-landed-reconciler-NEL6KXHE.js");
|
|
6574
6588
|
const result = await reconcileLandedBugs();
|
|
6575
6589
|
const { reposScanned, reposErrored, prsScanned, matched, reconciled, skipped, errored } = result.summary;
|
|
6576
6590
|
process.stderr.write(
|
|
@@ -6592,12 +6606,12 @@ function startBugLandedReconcile() {
|
|
|
6592
6606
|
}
|
|
6593
6607
|
async function maybeScheduleBugLandedReconcile() {
|
|
6594
6608
|
try {
|
|
6595
|
-
const { hasSupportAdminAccess } = await import("../support-bug-actions-
|
|
6609
|
+
const { hasSupportAdminAccess } = await import("../support-bug-actions-IPFJ5WEZ.js");
|
|
6596
6610
|
if (!await hasSupportAdminAccess()) {
|
|
6597
6611
|
process.stderr.write("[exed] Bug-landed reconcile: no AskExe support admin token configured \u2014 skipping (customer install)\n");
|
|
6598
6612
|
return;
|
|
6599
6613
|
}
|
|
6600
|
-
const { isGhAvailableAndAuthenticated } = await import("../bug-landed-reconciler-
|
|
6614
|
+
const { isGhAvailableAndAuthenticated } = await import("../bug-landed-reconciler-NEL6KXHE.js");
|
|
6601
6615
|
if (!await isGhAvailableAndAuthenticated()) {
|
|
6602
6616
|
process.stderr.write("[exed] Bug-landed reconcile: gh CLI not available/authenticated \u2014 skipping\n");
|
|
6603
6617
|
return;
|
|
@@ -6636,7 +6650,7 @@ function startWorkStateHeartbeat() {
|
|
|
6636
6650
|
const { getClient } = await import("./database.js");
|
|
6637
6651
|
const { listSessions } = await import("./session-registry.js");
|
|
6638
6652
|
const { isCoordinatorName } = await import("./employees.js");
|
|
6639
|
-
const { runWorkStateTick } = await import("../work-state-heartbeat-
|
|
6653
|
+
const { runWorkStateTick } = await import("../work-state-heartbeat-RXQKS4GL.js");
|
|
6640
6654
|
let liveTmux = null;
|
|
6641
6655
|
const loadLiveTmux = async () => {
|
|
6642
6656
|
if (!liveTmux) liveTmux = await listTmuxSessionNamesAsync();
|
|
@@ -6702,7 +6716,7 @@ function startGraphExtraction() {
|
|
|
6702
6716
|
if (!await ensureStoreForPolling()) return;
|
|
6703
6717
|
const { getClient } = await import("./database.js");
|
|
6704
6718
|
const client = getClient();
|
|
6705
|
-
const { extractBatch } = await import("../graph-rag-
|
|
6719
|
+
const { extractBatch } = await import("../graph-rag-HB5X6YAF.js");
|
|
6706
6720
|
const result = await extractBatch(client, 50, config.selfQueryModel);
|
|
6707
6721
|
if (result.processed > 0) {
|
|
6708
6722
|
acted("graph_extraction");
|
|
@@ -7023,7 +7037,7 @@ async function refreshAgentData() {
|
|
|
7023
7037
|
const decision = evaluateSpendCapAlert(_lastSpendCapLevel, capStatus);
|
|
7024
7038
|
_lastSpendCapLevel = decision.level;
|
|
7025
7039
|
if (decision.shouldAlert && decision.summary) {
|
|
7026
|
-
const { writeNotification } = await import("../notifications-
|
|
7040
|
+
const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
|
|
7027
7041
|
await writeNotification({
|
|
7028
7042
|
agentId: "system",
|
|
7029
7043
|
agentRole: "system",
|
|
@@ -7145,7 +7159,7 @@ function startReflectionSweep() {
|
|
|
7145
7159
|
);
|
|
7146
7160
|
let runReflection;
|
|
7147
7161
|
try {
|
|
7148
|
-
({ runReflection } = await import("../memory-reflection-
|
|
7162
|
+
({ runReflection } = await import("../memory-reflection-CTGRQAPC.js"));
|
|
7149
7163
|
} catch (importErr) {
|
|
7150
7164
|
_reflectionImportFailed = true;
|
|
7151
7165
|
process.stderr.write(`[exed] Reflection module unavailable (stale chunk hash?) \u2014 disabled until daemon restart: ${importErr instanceof Error ? importErr.message : String(importErr)}
|
|
@@ -7186,7 +7200,7 @@ function startReflectionSweep() {
|
|
|
7186
7200
|
if (memories > 100 && cards < memories * 0.1) {
|
|
7187
7201
|
process.stderr.write(`[exed] Memory cards sparse (${cards} cards / ${memories} memories) \u2014 running backfill...
|
|
7188
7202
|
`);
|
|
7189
|
-
const { insertMemoryCardsForBatch } = await import("../memory-cards-
|
|
7203
|
+
const { insertMemoryCardsForBatch } = await import("../memory-cards-3ITTLHOY.js");
|
|
7190
7204
|
const batchSize = 500;
|
|
7191
7205
|
let offset = 0;
|
|
7192
7206
|
let totalCards = 0;
|
|
@@ -7244,8 +7258,16 @@ function startDatabaseBackup() {
|
|
|
7244
7258
|
const tick = async () => {
|
|
7245
7259
|
fired("db_backup");
|
|
7246
7260
|
try {
|
|
7247
|
-
const { createBackupAsync, enforceRetention, hasBackupToday, hasRecentBackup } = await import("./db-backup.js");
|
|
7248
|
-
|
|
7261
|
+
const { createBackupAsync, enforceRetention, hasBackupToday, hasRecentBackup, hasRecentFailedBackupAttempt } = await import("./db-backup.js");
|
|
7262
|
+
const backingOff = (reason) => {
|
|
7263
|
+
if (!hasRecentFailedBackupAttempt(reason, DB_BACKUP_TARGET_WINDOW_MS)) return false;
|
|
7264
|
+
process.stderr.write(
|
|
7265
|
+
`[exed] DB backup (${reason}) backing off: last attempt was quarantined within the ${Math.round(DB_BACKUP_TARGET_WINDOW_MS / 36e5)}h window; next attempt after it elapses.
|
|
7266
|
+
`
|
|
7267
|
+
);
|
|
7268
|
+
return true;
|
|
7269
|
+
};
|
|
7270
|
+
if (!hasRecentBackup("guaranteed", DB_BACKUP_TARGET_WINDOW_MS) && !backingOff("guaranteed")) {
|
|
7249
7271
|
const guaranteedPath = await createBackupAsync("guaranteed");
|
|
7250
7272
|
if (guaranteedPath) {
|
|
7251
7273
|
acted("db_backup");
|
|
@@ -7258,6 +7280,7 @@ function startDatabaseBackup() {
|
|
|
7258
7280
|
}
|
|
7259
7281
|
if (!shouldRunHeavyJob("db_backup_daily")) return;
|
|
7260
7282
|
if (hasBackupToday("daily")) return;
|
|
7283
|
+
if (backingOff("daily")) return;
|
|
7261
7284
|
const backupPath = await createBackupAsync("daily");
|
|
7262
7285
|
if (backupPath) {
|
|
7263
7286
|
acted("db_backup");
|
|
@@ -7267,7 +7290,7 @@ function startDatabaseBackup() {
|
|
|
7267
7290
|
`
|
|
7268
7291
|
);
|
|
7269
7292
|
try {
|
|
7270
|
-
const { maybeVerifyDailyBackup } = await import("../backup-verify-
|
|
7293
|
+
const { maybeVerifyDailyBackup } = await import("../backup-verify-LPCD7ETV.js");
|
|
7271
7294
|
const verdict = await maybeVerifyDailyBackup(backupPath);
|
|
7272
7295
|
if (verdict && !verdict.ok) {
|
|
7273
7296
|
process.stderr.write(
|
|
@@ -7343,7 +7366,7 @@ function startSessionEventsRetention() {
|
|
|
7343
7366
|
fired("session_events_retention");
|
|
7344
7367
|
if (!await ensureStoreForPolling()) return;
|
|
7345
7368
|
try {
|
|
7346
|
-
const { DEFAULT_SESSION_EVENTS_RETENTION_DAYS, sessionEventsRetentionMode } = await import("../session-events-
|
|
7369
|
+
const { DEFAULT_SESSION_EVENTS_RETENTION_DAYS, sessionEventsRetentionMode } = await import("../session-events-KB7A2PIL.js");
|
|
7347
7370
|
const days = SESSION_EVENTS_RETENTION_DAYS ?? DEFAULT_SESSION_EVENTS_RETENTION_DAYS;
|
|
7348
7371
|
const decision = sessionEventsRetentionMode(isWriteWorkerEnabled(), isDbWriteWorkerReady());
|
|
7349
7372
|
if (decision.mode === "skip") {
|
|
@@ -7353,9 +7376,9 @@ function startSessionEventsRetention() {
|
|
|
7353
7376
|
);
|
|
7354
7377
|
return;
|
|
7355
7378
|
}
|
|
7356
|
-
let
|
|
7379
|
+
let swept;
|
|
7357
7380
|
try {
|
|
7358
|
-
|
|
7381
|
+
swept = await sweepSessionEventsRetentionInWorker(days);
|
|
7359
7382
|
} catch (err) {
|
|
7360
7383
|
process.stderr.write(
|
|
7361
7384
|
`[exed] Session-events retention worker failed (${err instanceof Error ? err.message : String(err)}) - skipping this tick
|
|
@@ -7363,10 +7386,10 @@ function startSessionEventsRetention() {
|
|
|
7363
7386
|
);
|
|
7364
7387
|
return;
|
|
7365
7388
|
}
|
|
7366
|
-
if (
|
|
7389
|
+
if (swept.deleted > 0) {
|
|
7367
7390
|
acted("session_events_retention");
|
|
7368
7391
|
process.stderr.write(
|
|
7369
|
-
`[exed] Session-events retention: deleted ${
|
|
7392
|
+
`[exed] Session-events retention: deleted ${swept.deleted} events older than ${days}d in ${swept.batches} batch(es)${swept.drained ? "" : " \u2014 backlog remains, continuing next tick"}${swept.error ? ` (stopped: ${swept.error})` : ""}
|
|
7370
7393
|
`
|
|
7371
7394
|
);
|
|
7372
7395
|
}
|
|
@@ -7394,8 +7417,8 @@ function startConversationsRetention() {
|
|
|
7394
7417
|
fired("conversations_retention");
|
|
7395
7418
|
if (!await ensureStoreForPolling()) return;
|
|
7396
7419
|
try {
|
|
7397
|
-
const { DEFAULT_CONVERSATIONS_RETENTION_DAYS } = await import("../conversations-retention-
|
|
7398
|
-
const { sessionEventsRetentionMode } = await import("../session-events-
|
|
7420
|
+
const { DEFAULT_CONVERSATIONS_RETENTION_DAYS } = await import("../conversations-retention-HFM2K6ND.js");
|
|
7421
|
+
const { sessionEventsRetentionMode } = await import("../session-events-KB7A2PIL.js");
|
|
7399
7422
|
const days = CONVERSATIONS_RETENTION_DAYS ?? DEFAULT_CONVERSATIONS_RETENTION_DAYS;
|
|
7400
7423
|
const decision = sessionEventsRetentionMode(isWriteWorkerEnabled(), isDbWriteWorkerReady());
|
|
7401
7424
|
if (decision.mode === "skip") {
|
|
@@ -7415,11 +7438,11 @@ function startConversationsRetention() {
|
|
|
7415
7438
|
);
|
|
7416
7439
|
return;
|
|
7417
7440
|
}
|
|
7418
|
-
if (swept.deleted > 0) {
|
|
7441
|
+
if (swept.deleted > 0 || swept.purged > 0) {
|
|
7419
7442
|
acted("conversations_retention");
|
|
7420
7443
|
const what = swept.mode === "purge" ? `PERMANENTLY DELETED ${swept.purged}` : `archived ${swept.archived}`;
|
|
7421
7444
|
process.stderr.write(
|
|
7422
|
-
`[exed] Conversations retention: ${what} messages older than ${days}d
|
|
7445
|
+
`[exed] Conversations retention: ${what} messages older than ${days}d in ${swept.batches} batch(es)${swept.drained ? "" : " \u2014 backlog remains, continuing next tick"}${swept.error ? ` (stopped: ${swept.error})` : ""}
|
|
7423
7446
|
`
|
|
7424
7447
|
);
|
|
7425
7448
|
}
|
|
@@ -7444,7 +7467,7 @@ function startIntercomQueueDrain() {
|
|
|
7444
7467
|
const tick = async () => traceDaemonTimer("intercom_queue_drain", async () => {
|
|
7445
7468
|
fired("intercom_queue_drain");
|
|
7446
7469
|
try {
|
|
7447
|
-
const { drainQueueAsync, readQueue } = await import("../intercom-queue-
|
|
7470
|
+
const { drainQueueAsync, readQueue } = await import("../intercom-queue-A24ARSCV.js");
|
|
7448
7471
|
const {
|
|
7449
7472
|
sendIntercomAsync: centralSendIntercomAsync,
|
|
7450
7473
|
countScopedPendingReviews,
|
|
@@ -7576,7 +7599,7 @@ function startLedgerDrain() {
|
|
|
7576
7599
|
const tick = async () => traceDaemonTimer("ledger_drain", async () => {
|
|
7577
7600
|
fired("ledger_drain");
|
|
7578
7601
|
try {
|
|
7579
|
-
const { isLedgerEnabled, drainLedger } = await import("../notification-ledger-
|
|
7602
|
+
const { isLedgerEnabled, drainLedger } = await import("../notification-ledger-MIYYFMHL.js");
|
|
7580
7603
|
if (!isLedgerEnabled()) return;
|
|
7581
7604
|
const result = await drainLedger({
|
|
7582
7605
|
// Shadow "would-deliver": idle target = would-deliver, busy = retry.
|
|
@@ -7616,7 +7639,7 @@ function startOrphanReaper() {
|
|
|
7616
7639
|
fired("orphan_reaper");
|
|
7617
7640
|
if (sweepStarved("orphan_reaper")) return;
|
|
7618
7641
|
try {
|
|
7619
|
-
const { reapOrphanedMcpProcesses, createOrphanReaperRealDepsAsync } = await import("../daemon-orchestration-
|
|
7642
|
+
const { reapOrphanedMcpProcesses, createOrphanReaperRealDepsAsync } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
7620
7643
|
const deps = await createOrphanReaperRealDepsAsync();
|
|
7621
7644
|
const reaped = await reapOrphanedMcpProcesses(deps);
|
|
7622
7645
|
if (reaped.length > 0) acted("orphan_reaper");
|
|
@@ -7642,7 +7665,7 @@ function startZombieAgentReaper() {
|
|
|
7642
7665
|
fired("zombie_agent_reaper");
|
|
7643
7666
|
if (sweepStarved("zombie_agent_reaper")) return;
|
|
7644
7667
|
try {
|
|
7645
|
-
const { reapZombieAgentProcesses, createZombieAgentReaperRealDepsAsync } = await import("../daemon-orchestration-
|
|
7668
|
+
const { reapZombieAgentProcesses, createZombieAgentReaperRealDepsAsync } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
7646
7669
|
const deps = await createZombieAgentReaperRealDepsAsync();
|
|
7647
7670
|
const reaped = reapZombieAgentProcesses(deps);
|
|
7648
7671
|
if (reaped.length > 0) acted("zombie_agent_reaper");
|
|
@@ -7666,7 +7689,7 @@ async function startDaemonMemoryPressureWatchdog() {
|
|
|
7666
7689
|
try {
|
|
7667
7690
|
const cfg = await getCachedConfig();
|
|
7668
7691
|
if (!cfg) return;
|
|
7669
|
-
const { startMemoryPressureWatchdog: startWatchdog, MEMORY_PRESSURE_WATCHDOG_DEFAULTS } = await import("../memory-pressure-watchdog-
|
|
7692
|
+
const { startMemoryPressureWatchdog: startWatchdog, MEMORY_PRESSURE_WATCHDOG_DEFAULTS } = await import("../memory-pressure-watchdog-FROXPH3U.js");
|
|
7670
7693
|
const watchdogCfg = {
|
|
7671
7694
|
...MEMORY_PRESSURE_WATCHDOG_DEFAULTS,
|
|
7672
7695
|
...cfg.memoryPressureWatchdog ?? {}
|
|
@@ -7698,7 +7721,7 @@ function startWorktreeReaper() {
|
|
|
7698
7721
|
fired("worktree_reaper");
|
|
7699
7722
|
if (sweepStarved("worktree_reaper")) return;
|
|
7700
7723
|
try {
|
|
7701
|
-
const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-
|
|
7724
|
+
const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
7702
7725
|
const deps = await createWorktreeReaperRealDeps();
|
|
7703
7726
|
const result = await reapOrphanedWorktrees(deps);
|
|
7704
7727
|
if (result.pruned.length > 0) {
|
|
@@ -7742,8 +7765,8 @@ function startWorktreeReaper() {
|
|
|
7742
7765
|
}
|
|
7743
7766
|
return;
|
|
7744
7767
|
}
|
|
7745
|
-
const { cleanupAgentWorktree } = await import("../worktree-sweep-
|
|
7746
|
-
const { getMainRepoRootAsync } = await import("../worktree-
|
|
7768
|
+
const { cleanupAgentWorktree } = await import("../worktree-sweep-2MZ7PKEG.js");
|
|
7769
|
+
const { getMainRepoRootAsync } = await import("../worktree-YIUDLMNS.js");
|
|
7747
7770
|
const repoRoot = await getMainRepoRootAsync(signal.worktreePath);
|
|
7748
7771
|
if (repoRoot && signal.agentId) {
|
|
7749
7772
|
const notes = await cleanupAgentWorktree(repoRoot, signal.agentId);
|
|
@@ -7780,7 +7803,7 @@ function startAutoWake() {
|
|
|
7780
7803
|
if (!await ensureStoreForPolling()) return;
|
|
7781
7804
|
try {
|
|
7782
7805
|
const { getClient } = await import("./database.js");
|
|
7783
|
-
const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-
|
|
7806
|
+
const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
7784
7807
|
const deps = createAutoWakeRealDeps(getClient, process.cwd(), getTmuxSessionsAsync);
|
|
7785
7808
|
const woken = await pollOrphanedTasks(deps);
|
|
7786
7809
|
if (woken.length > 0) acted("auto_wake");
|
|
@@ -7855,7 +7878,7 @@ function startAutoWake() {
|
|
|
7855
7878
|
if (age > 60 * 60 * 1e3) {
|
|
7856
7879
|
try {
|
|
7857
7880
|
await unlink(signalPath);
|
|
7858
|
-
void import("../orchestration-events-
|
|
7881
|
+
void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
|
|
7859
7882
|
recordOE({ eventType: "signal.stale", source: "exe-daemon.autoWake", severity: "warn", payload: { file, ageMinutes: Math.round(age / 6e4) } });
|
|
7860
7883
|
}).catch(() => {
|
|
7861
7884
|
});
|
|
@@ -8004,7 +8027,7 @@ function startStuckTaskRelease() {
|
|
|
8004
8027
|
createStaleClaimRealDeps,
|
|
8005
8028
|
escalateStuckBlockedTasks,
|
|
8006
8029
|
createStuckBlockedRealDeps
|
|
8007
|
-
} = await import("../daemon-orchestration-
|
|
8030
|
+
} = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
8008
8031
|
const { runBudgetedSweep } = await import("../sweep-budget-YGLCNXZZ.js");
|
|
8009
8032
|
const steps = [
|
|
8010
8033
|
async () => {
|
|
@@ -8116,6 +8139,9 @@ function startExternalRssWatchdog() {
|
|
|
8116
8139
|
const heartbeatPath = String(workerData.heartbeatPath || "");
|
|
8117
8140
|
const stallMs = Number(workerData.stallMs) || 0;
|
|
8118
8141
|
const stallMarkerPath = String(workerData.stallMarkerPath || markerPath);
|
|
8142
|
+
// Bug 7d911bf3 drain-guard marker (starvationSuppressedMarkerPath()), resolved on
|
|
8143
|
+
// the main thread. Empty = do not stamp.
|
|
8144
|
+
const starvationMarkerPath = String(workerData.starvationMarkerPath || "");
|
|
8119
8145
|
const starvationRatio = Number(workerData.starvationRatio);
|
|
8120
8146
|
const cpuCount = cpus().length || 1;
|
|
8121
8147
|
let overCount = 0;
|
|
@@ -8193,12 +8219,28 @@ function startExternalRssWatchdog() {
|
|
|
8193
8219
|
if (ageMs < stallMs) return;
|
|
8194
8220
|
// Starvation-aware (bugs 459b9c5a/9a2e91a5): if the OS is CPU-starved the
|
|
8195
8221
|
// lag is the scheduler, not an internal hang \u2014 restarting would not help and
|
|
8196
|
-
// risks WAL damage. Skip while load/core exceeds the ratio
|
|
8222
|
+
// risks WAL damage. Skip while load/core exceeds the ratio on ANY of the 1-, 5-
|
|
8223
|
+
// or 15-minute averages. The 1-minute one alone is not enough: it drops under
|
|
8224
|
+
// the ratio within seconds of the run queue draining while this daemon is
|
|
8225
|
+
// still frozen (2026-11-16: a 142s block at 1.49 / 2.4 / 5.05 per core).
|
|
8226
|
+
// Cost: a genuinely wedged daemon on a recently overloaded host is restarted
|
|
8227
|
+
// only once the 15-minute average decays under the ratio. starvationRatio<=0
|
|
8197
8228
|
// disables this check (always treat a stale heartbeat as a real wedge).
|
|
8198
8229
|
if (starvationRatio > 0) {
|
|
8199
|
-
const
|
|
8200
|
-
|
|
8201
|
-
|
|
8230
|
+
const loads = loadavg();
|
|
8231
|
+
const limit = cpuCount * starvationRatio;
|
|
8232
|
+
const horizons = ["1m", "5m", "15m"];
|
|
8233
|
+
const tripped = horizons.filter((h, i) => (Number(loads[i]) || 0) > limit);
|
|
8234
|
+
if (tripped.length > 0) {
|
|
8235
|
+
const loadText = horizons.map((h, i) => "load" + h + "=" + (Number(loads[i]) || 0).toFixed(2)).join(" ");
|
|
8236
|
+
try { process.stderr.write("[exed-watchdog] event-loop heartbeat stale " + Math.round(ageMs/1000) + "s but " + tripped.join("+") + " load > " + limit.toFixed(2) + " (" + loadText + ", " + cpuCount + " cpus; starved) \u2014 NOT restarting\\n"); } catch {}
|
|
8237
|
+
// Bug 7d911bf3 drain guard: the main thread can stamp this marker only
|
|
8238
|
+
// AFTER a block ends, so during a long block the external watchdog reads
|
|
8239
|
+
// it as stale. This thread is still running, so stamp it now.
|
|
8240
|
+
if (starvationMarkerPath) {
|
|
8241
|
+
try { mkdirSync(dirname(starvationMarkerPath), { recursive: true }); } catch {}
|
|
8242
|
+
try { writeFileSync(starvationMarkerPath, "stall_watchdog_starved heartbeat_stale=" + Math.round(ageMs/1000) + "s tripped=" + tripped.join("+") + " " + loadText + " cpus=" + cpuCount + " at " + new Date().toISOString() + " (stall watchdog worker, event-loop block in progress)\\n"); } catch {}
|
|
8243
|
+
}
|
|
8202
8244
|
return;
|
|
8203
8245
|
}
|
|
8204
8246
|
}
|
|
@@ -8243,6 +8285,7 @@ function startExternalRssWatchdog() {
|
|
|
8243
8285
|
heartbeatPath: process.env.EXE_EVENT_LOOP_STALL_MS === "0" ? "" : eventLoopHeartbeatPath(),
|
|
8244
8286
|
stallMs: process.env.EXE_EVENT_LOOP_STALL_MS === "0" ? 0 : stallMs,
|
|
8245
8287
|
stallMarkerPath: eventLoopBlockedMarkerPath(),
|
|
8288
|
+
starvationMarkerPath: starvationSuppressedMarkerPath(),
|
|
8246
8289
|
starvationRatio: Number.isFinite(starvationRatio) ? starvationRatio : 1.5
|
|
8247
8290
|
}
|
|
8248
8291
|
});
|
|
@@ -8269,12 +8312,12 @@ function startTaskEnforcementScanner() {
|
|
|
8269
8312
|
const tick = async () => traceDaemonTimer("task_enforcement", async () => {
|
|
8270
8313
|
fired("task_enforcement");
|
|
8271
8314
|
try {
|
|
8272
|
-
const { runTaskEnforcementTick } = await import("../task-enforcement-
|
|
8315
|
+
const { runTaskEnforcementTick } = await import("../task-enforcement-ESAMX2ML.js");
|
|
8273
8316
|
const { getTransport } = await import("./transport.js");
|
|
8274
8317
|
const { loadAgentConfig } = await import("./agent-config.js");
|
|
8275
8318
|
const { getClient } = await import("./database.js");
|
|
8276
8319
|
const { loadEmployeesSync } = await import("./employees.js");
|
|
8277
|
-
const { sessionScopeFilter } = await import("../task-scope-
|
|
8320
|
+
const { sessionScopeFilter } = await import("../task-scope-6LIHTVCC.js");
|
|
8278
8321
|
const transport = getTransport();
|
|
8279
8322
|
const { sessions: allSessions, paneCache, aliveSessions } = await getSharedOrchestrationCaches();
|
|
8280
8323
|
await yieldToEventLoop();
|
|
@@ -8285,10 +8328,10 @@ function startTaskEnforcementScanner() {
|
|
|
8285
8328
|
sendKeysLiteral: transport.sendKeysLiteral?.bind(transport),
|
|
8286
8329
|
isAlive: (session) => aliveSessions.has(session)
|
|
8287
8330
|
};
|
|
8288
|
-
const { checkAutoWakeGates } = await import("../daemon-orchestration-
|
|
8331
|
+
const { checkAutoWakeGates } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
8289
8332
|
const { ensureEmployeeAsync, employeeSessionName, sendIntercomAsync } = await import("./tmux-routing.js");
|
|
8290
8333
|
const { shouldAutoInstance } = await import("./employees.js");
|
|
8291
|
-
const { recordOrchestrationEventBestEffort } = await import("../orchestration-events-
|
|
8334
|
+
const { recordOrchestrationEventBestEffort } = await import("../orchestration-events-U6DT373C.js");
|
|
8292
8335
|
const projectDir = process.cwd();
|
|
8293
8336
|
await runTaskEnforcementTick({
|
|
8294
8337
|
transport: enforcementTransport,
|
|
@@ -8618,7 +8661,7 @@ async function sweepExpiredTracesFromDaemonTimer() {
|
|
|
8618
8661
|
const memoryIds = idsResult.rows.map((r) => String(r.id)).filter(Boolean);
|
|
8619
8662
|
if (memoryIds.length === 0) return 0;
|
|
8620
8663
|
const { getClient } = await import("./database.js");
|
|
8621
|
-
const { cleanupGraphLinksForMemories, cleanupCardsForMemories } = await import("../graph-rag-
|
|
8664
|
+
const { cleanupGraphLinksForMemories, cleanupCardsForMemories } = await import("../graph-rag-HB5X6YAF.js");
|
|
8622
8665
|
const client = getClient();
|
|
8623
8666
|
await cleanupGraphLinksForMemories(client, memoryIds);
|
|
8624
8667
|
await cleanupCardsForMemories(client, memoryIds);
|
|
@@ -8756,7 +8799,7 @@ function startHookRegistrationWatch() {
|
|
|
8756
8799
|
process.stderr.write(`[exed] [HOOKS DEAD] ${mod.formatHookLivenessFailure(report)}
|
|
8757
8800
|
`);
|
|
8758
8801
|
try {
|
|
8759
|
-
const { pushNotifyAsync: pushNotifyAsync2 } = await import("../push-notifications-
|
|
8802
|
+
const { pushNotifyAsync: pushNotifyAsync2 } = await import("../push-notifications-QT2KL3GR.js");
|
|
8760
8803
|
pushNotifyAsync2({
|
|
8761
8804
|
event: "hooks_dead",
|
|
8762
8805
|
title: `${report.broken.length} exe-os hook(s) cannot run`,
|
|
@@ -9430,7 +9473,7 @@ function startEventLoopLagDetector() {
|
|
|
9430
9473
|
setLastStallClass("blocked", lag);
|
|
9431
9474
|
process.stderr.write(msg + "\n");
|
|
9432
9475
|
logDaemonHealth({ event: "event_loop_blocked", pid: process.pid, message: msg, data: { lagMs: lag } });
|
|
9433
|
-
void import("../orchestration-events-
|
|
9476
|
+
void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
|
|
9434
9477
|
recordOE({ eventType: "daemon.event_loop_blocked", source: "exe-daemon.lagDetector", severity: "error", durationMs: lag });
|
|
9435
9478
|
}).catch(() => {
|
|
9436
9479
|
});
|
|
@@ -9635,7 +9678,7 @@ function startTaskFileResync() {
|
|
|
9635
9678
|
});
|
|
9636
9679
|
if (Number(res.rowsAffected ?? 0) > 0) {
|
|
9637
9680
|
synced++;
|
|
9638
|
-
void import("../orchestration-events-
|
|
9681
|
+
void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
|
|
9639
9682
|
recordOE({
|
|
9640
9683
|
eventType: "task_file.resynced",
|
|
9641
9684
|
source: "exe-daemon.taskFileResync",
|
|
@@ -9669,7 +9712,7 @@ function startTaskGroupBarriers() {
|
|
|
9669
9712
|
fired("task_group_barriers");
|
|
9670
9713
|
if (!await ensureStoreForPolling()) return;
|
|
9671
9714
|
try {
|
|
9672
|
-
const { pollTaskGroupBarriers } = await import("../daemon-orchestration-
|
|
9715
|
+
const { pollTaskGroupBarriers } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
9673
9716
|
const firedCount = await pollTaskGroupBarriers();
|
|
9674
9717
|
if (firedCount > 0) {
|
|
9675
9718
|
acted("task_group_barriers");
|
|
@@ -9691,7 +9734,7 @@ function startCheckpointGc() {
|
|
|
9691
9734
|
fired("checkpoint_gc");
|
|
9692
9735
|
if (!await ensureStoreForPolling()) return;
|
|
9693
9736
|
try {
|
|
9694
|
-
const { gcStaleCheckpoints } = await import("../daemon-orchestration-
|
|
9737
|
+
const { gcStaleCheckpoints } = await import("../daemon-orchestration-2SROQ2N4.js");
|
|
9695
9738
|
const cleared = await gcStaleCheckpoints();
|
|
9696
9739
|
if (cleared > 0) {
|
|
9697
9740
|
acted("checkpoint_gc");
|
|
@@ -9731,14 +9774,14 @@ function startDispatchAckCleanup() {
|
|
|
9731
9774
|
function startProjectionWorkerDeferred() {
|
|
9732
9775
|
setTimeout(async () => {
|
|
9733
9776
|
try {
|
|
9734
|
-
const { startProjectionWorker } = await import("../projection-worker-
|
|
9777
|
+
const { startProjectionWorker } = await import("../projection-worker-HHEYDVMY.js");
|
|
9735
9778
|
startProjectionWorker();
|
|
9736
9779
|
} catch {
|
|
9737
9780
|
}
|
|
9738
9781
|
}, 2e4);
|
|
9739
9782
|
}
|
|
9740
9783
|
async function startToolTelemetry() {
|
|
9741
|
-
const { startToolTelemetryFlush } = await import("../tool-telemetry-
|
|
9784
|
+
const { startToolTelemetryFlush } = await import("../tool-telemetry-A7NUFJI4.js");
|
|
9742
9785
|
startToolTelemetryFlush();
|
|
9743
9786
|
process.stderr.write("[exed] Tool telemetry started (flush every 5m)\n");
|
|
9744
9787
|
}
|
|
@@ -9911,7 +9954,7 @@ function startLocalFirstTimers() {
|
|
|
9911
9954
|
fired("orphan_task_cleanup");
|
|
9912
9955
|
try {
|
|
9913
9956
|
if (!await ensureStoreForPolling()) return;
|
|
9914
|
-
const { cleanOrphanedTaskFiles } = await import("../tasks-crud-
|
|
9957
|
+
const { cleanOrphanedTaskFiles } = await import("../tasks-crud-NWNW7RDH.js");
|
|
9915
9958
|
const count = await cleanOrphanedTaskFiles();
|
|
9916
9959
|
if (count > 0) {
|
|
9917
9960
|
acted("orphan_task_cleanup");
|
|
@@ -9927,7 +9970,7 @@ function startLocalFirstTimers() {
|
|
|
9927
9970
|
fired("task_file_consistency");
|
|
9928
9971
|
try {
|
|
9929
9972
|
if (!await ensureStoreForPolling()) return;
|
|
9930
|
-
const { checkTaskFileConsistency } = await import("../tasks-crud-
|
|
9973
|
+
const { checkTaskFileConsistency } = await import("../tasks-crud-NWNW7RDH.js");
|
|
9931
9974
|
const mismatches = await checkTaskFileConsistency();
|
|
9932
9975
|
if (mismatches > 0) {
|
|
9933
9976
|
acted("task_file_consistency");
|
|
@@ -9944,10 +9987,18 @@ function startLocalFirstTimers() {
|
|
|
9944
9987
|
startDaemonHeartbeat();
|
|
9945
9988
|
startDispatchAckCleanup();
|
|
9946
9989
|
const TELEMETRY_DAILY_MS = 24 * 60 * 60 * 1e3;
|
|
9990
|
+
let telemetryDeferredLogged = false;
|
|
9947
9991
|
const telemetryDaily = async () => {
|
|
9948
9992
|
try {
|
|
9949
|
-
const { sendTelemetry, isTelemetryEnabled } = await import("../telemetry-upload-
|
|
9993
|
+
const { sendTelemetry, isTelemetryEnabled, canSendTelemetry } = await import("../telemetry-upload-MUIZKQDT.js");
|
|
9950
9994
|
if (!isTelemetryEnabled()) return;
|
|
9995
|
+
if (!canSendTelemetry()) {
|
|
9996
|
+
if (!telemetryDeferredLogged) {
|
|
9997
|
+
telemetryDeferredLogged = true;
|
|
9998
|
+
process.stderr.write("[exed] Daily telemetry paused: the telemetry notice has not been shown yet (run `exe-os telemetry status`)\n");
|
|
9999
|
+
}
|
|
10000
|
+
return;
|
|
10001
|
+
}
|
|
9951
10002
|
const { upstream } = await sendTelemetry(24);
|
|
9952
10003
|
if (upstream.startsWith("sent")) {
|
|
9953
10004
|
process.stderr.write("[exed] Daily telemetry sent successfully\n");
|
|
@@ -10189,7 +10240,7 @@ try {
|
|
|
10189
10240
|
});
|
|
10190
10241
|
}
|
|
10191
10242
|
try {
|
|
10192
|
-
const { initOrgPartnerRuntime } = await import("../org-partner-runtime-
|
|
10243
|
+
const { initOrgPartnerRuntime } = await import("../org-partner-runtime-PCGVG3M2.js");
|
|
10193
10244
|
await initOrgPartnerRuntime();
|
|
10194
10245
|
} catch (err) {
|
|
10195
10246
|
process.stderr.write(
|
|
@@ -10215,7 +10266,7 @@ try {
|
|
|
10215
10266
|
});
|
|
10216
10267
|
startEventLoopLagDetector();
|
|
10217
10268
|
try {
|
|
10218
|
-
const { startMaintenanceLane, isMaintenanceLaneEnabled } = await import("../maintenance-worker-
|
|
10269
|
+
const { startMaintenanceLane, isMaintenanceLaneEnabled } = await import("../maintenance-worker-R5N3A2KM.js");
|
|
10219
10270
|
if (isMaintenanceLaneEnabled()) {
|
|
10220
10271
|
startMaintenanceLane();
|
|
10221
10272
|
}
|