@askexenow/exe-os 0.9.341 → 0.9.343
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -196
- package/deploy/compose/.env.customer.example +1 -0
- package/deploy/compose/.env.example +1 -0
- package/deploy/compose/docker-compose.yml +13 -4
- package/deploy/compose/generate-env.ts +4 -0
- package/dist/{active-agent-LW45DSJ4.js → active-agent-MDGDKGCL.js} +5 -5
- package/dist/{active-agent-AIQP4DFL.js → active-agent-SNVSJFI5.js} +5 -5
- package/dist/{agentic-ontology-RVUNRCQY.js → agentic-ontology-SCG6UUHK.js} +1 -1
- package/dist/{backfill-gate-J7UXFNXU.js → backfill-gate-HARARX5F.js} +3 -3
- package/dist/{backfill-metadata-ZSDJ4O2T.js → backfill-metadata-SCQ5FPDR.js} +8 -8
- package/dist/{background-jobs-STURKDCS.js → background-jobs-KKRO3QRO.js} +3 -3
- package/dist/{backup-verify-ZAJLEL4X.js → backup-verify-KDLOT4RP.js} +4 -4
- package/dist/{behaviors-EO7KCP3H.js → behaviors-MICGF3H3.js} +9 -9
- package/dist/bin/age-ontology-load.js +3 -3
- package/dist/bin/agentic-ontology-backfill.js +10 -10
- package/dist/bin/agentic-reflection-backfill.js +11 -11
- package/dist/bin/agentic-semantic-label.js +10 -10
- package/dist/bin/backfill-conversations.js +10 -10
- package/dist/bin/backfill-responses.js +10 -10
- package/dist/bin/backfill-vectors.js +19 -19
- package/dist/bin/bulk-sync-postgres.js +19 -19
- package/dist/bin/cc-doctor.js +10 -8
- package/dist/bin/cleanup-stale-review-tasks.js +27 -24
- package/dist/bin/cli.js +79 -25
- package/dist/bin/customer-readiness.js +1 -1
- package/dist/bin/daemon-restart-handoff.js +27 -0
- package/dist/bin/deferred-daemon-restart.js +132 -99
- package/dist/bin/exe-agent-config.js +9 -8
- package/dist/bin/exe-agent.js +19 -19
- package/dist/bin/exe-assign.js +12 -12
- package/dist/bin/exe-boot.js +202 -68
- package/dist/bin/exe-call.js +7 -7
- package/dist/bin/exe-cloud.js +20 -20
- package/dist/bin/exe-config-dump.js +9 -8
- package/dist/bin/exe-dispatch.js +27 -24
- package/dist/bin/exe-doctor.js +10 -6
- package/dist/bin/exe-export-behaviors.js +13 -13
- package/dist/bin/exe-forget.js +14 -12
- package/dist/bin/exe-gateway.js +15 -10
- package/dist/bin/exe-grant.js +5 -5
- package/dist/bin/exe-healthcheck.js +14 -8
- package/dist/bin/exe-heartbeat.js +30 -28
- package/dist/bin/exe-kill.js +34 -31
- package/dist/bin/exe-launch-agent.js +146 -70
- package/dist/bin/exe-memory-reads.js +257 -0
- package/dist/bin/exe-new-employee.js +12 -11
- package/dist/bin/exe-os-mcp-proxy.js +365 -0
- package/dist/bin/exe-pending-messages.js +28 -25
- package/dist/bin/exe-pending-notifications.js +27 -24
- package/dist/bin/exe-pending-reviews.js +27 -24
- package/dist/bin/exe-rename.js +7 -7
- package/dist/bin/exe-review.js +33 -30
- package/dist/bin/exe-search.js +11 -9
- package/dist/bin/exe-session-cleanup.js +117 -86
- package/dist/bin/exe-settings.js +24 -23
- package/dist/bin/exe-start-codex.js +163 -41
- package/dist/bin/exe-start-opencode.js +15 -15
- package/dist/bin/exe-status.js +28 -25
- package/dist/bin/exe-support.js +5 -5
- package/dist/bin/exe-team.js +5 -5
- package/dist/bin/exe-timers.js +32 -213
- package/dist/bin/exe-watchdog.js +6 -5
- package/dist/bin/git-sweep.js +28 -25
- package/dist/bin/graph-backfill.js +11 -11
- package/dist/bin/graph-export.js +11 -11
- package/dist/bin/import-history.js +13 -13
- package/dist/bin/install.js +106 -99
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +6 -6
- package/dist/bin/postgres-agentic-reflection-backfill.js +5 -5
- package/dist/bin/postgres-agentic-semantic-backfill.js +7 -7
- package/dist/bin/pre-publish.js +5 -3
- package/dist/bin/reconcile-backlog.js +2 -2
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/scan-tasks.js +27 -24
- package/dist/bin/setup.js +6 -5
- package/dist/bin/shard-migrate.js +9 -9
- package/dist/bin/stack-update.js +6 -6
- package/dist/bin/update.js +1 -1
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-GSMPJOWM.js → boot-generation-CFA5NKSK.js} +5 -5
- package/dist/boot-review-sections-FX2FYZJQ.js +108 -0
- package/dist/branch-hygiene-PILXQQDF.js +224 -0
- package/dist/{branding-JTEOF4ZV.js → branding-ZSC6YN63.js} +3 -3
- package/dist/{browser-session-store-CXQMOSEC.js → browser-session-store-B2NR3LIX.js} +2 -1
- package/dist/{capability-cards-OBYQNAKZ.js → capability-cards-O27UB3J5.js} +4 -4
- package/dist/{capacity-monitor-MG3FTUD5.js → capacity-monitor-5DVZY3SM.js} +28 -25
- package/dist/{catchup-brief-BVJOF3GL.js → catchup-brief-3GYI6AKV.js} +33 -29
- package/dist/{chunk-LEJ25726.js → chunk-25ORSHR7.js} +660 -444
- package/dist/{chunk-Q5AIPSSC.js → chunk-25X4JD2V.js} +10 -6
- package/dist/{chunk-MJB5ZFQM.js → chunk-2F7WGH5K.js} +57 -6
- package/dist/{chunk-LLU6WZLK.js → chunk-2VZMLKNS.js} +2 -2
- package/dist/{chunk-YWQMWFYR.js → chunk-2YPCD2UH.js} +24 -18
- package/dist/{chunk-L2YGXJGF.js → chunk-34RULPS2.js} +3 -3
- package/dist/{chunk-CLAYNAXC.js → chunk-3EUMUSLE.js} +1 -1
- package/dist/{chunk-KP4PY2Z2.js → chunk-3MLSM77R.js} +4 -4
- package/dist/{chunk-4LWV633D.js → chunk-3OO34BOT.js} +1 -1
- package/dist/{chunk-IELUDZAA.js → chunk-3OR54BBE.js} +3 -3
- package/dist/{chunk-Y3S4H77G.js → chunk-3PFP7GV2.js} +1 -1
- package/dist/{chunk-DPFQ2WQX.js → chunk-4AA2HRIM.js} +4 -4
- package/dist/{chunk-7SEC2AG5.js → chunk-4E3SZEEI.js} +13 -4
- package/dist/chunk-4EI5AHHR.js +37 -0
- package/dist/{chunk-7LF5DS3A.js → chunk-4MLSFZLY.js} +20 -9
- package/dist/{chunk-EDOO23B2.js → chunk-4N2NRGCM.js} +2 -2
- package/dist/chunk-4QCFFW2H.js +378 -0
- package/dist/{chunk-DNVFWFYF.js → chunk-4UIYLTA3.js} +1 -1
- package/dist/{chunk-BJOBR6P2.js → chunk-4VUAG6DN.js} +216 -9
- package/dist/{chunk-32YHCHWW.js → chunk-54O2FWRM.js} +1 -1
- package/dist/chunk-5DSVWSL5.js +91 -0
- package/dist/{chunk-2YCFNBC4.js → chunk-5ERB3AWT.js} +3 -2
- package/dist/{chunk-J6SEDDOR.js → chunk-5GDTZOVS.js} +2 -2
- package/dist/chunk-5H47VHB7.js +30 -0
- package/dist/{chunk-NTI22F3R.js → chunk-5HQHHQUR.js} +1 -1
- package/dist/chunk-5MLYU6I2.js +76 -0
- package/dist/{chunk-3NGZ4PL7.js → chunk-5VV2YMMB.js} +11 -2
- package/dist/{chunk-AP455LBW.js → chunk-62MYX7G4.js} +2 -2
- package/dist/{chunk-CCIEIRV2.js → chunk-6CYVBLZW.js} +2 -2
- package/dist/{chunk-6BQG7EKO.js → chunk-6IK2ME5X.js} +2 -2
- package/dist/{chunk-HJX6NCJF.js → chunk-6JMRRJD6.js} +39 -10
- package/dist/{chunk-A47MXY2I.js → chunk-6L6SXVTP.js} +58 -24
- package/dist/{chunk-BR4423AS.js → chunk-6ST7ZWTV.js} +1 -1
- package/dist/{chunk-5ZNY7IZI.js → chunk-6TJLBXR5.js} +66 -7
- package/dist/{chunk-4FJZ6SO7.js → chunk-6XKIMGHA.js} +1 -1
- package/dist/{chunk-AYLNJGCS.js → chunk-735SUAT4.js} +93 -12
- package/dist/chunk-76CJBM36.js +88 -0
- package/dist/{chunk-C445WRUX.js → chunk-7M5AWCR3.js} +2 -2
- package/dist/{chunk-LOBCQXV5.js → chunk-7MESPFOK.js} +4 -4
- package/dist/{chunk-B7CUBLF7.js → chunk-7S3A4TOL.js} +12 -12
- package/dist/{chunk-2C455MU3.js → chunk-7UNIYLGV.js} +29 -5
- package/dist/{chunk-RMOBQ6A5.js → chunk-AD2VCHSS.js} +1 -1
- package/dist/{chunk-FOV57K47.js → chunk-AGHKOBA6.js} +258 -14
- package/dist/chunk-AM7S2TY6.js +54 -0
- package/dist/{chunk-GOGSWXNZ.js → chunk-B4LOFZLB.js} +277 -137
- package/dist/{chunk-LA2Z6RMS.js → chunk-BUI2CHLQ.js} +1 -1
- package/dist/{chunk-WWNQFOSP.js → chunk-BVURFD5R.js} +2 -2
- package/dist/{chunk-ITMEE7PQ.js → chunk-BXSC34Y2.js} +3 -3
- package/dist/{chunk-SHIICYJW.js → chunk-BYTDMAGB.js} +4 -2
- package/dist/{chunk-JSKBHUR7.js → chunk-BZA4N43B.js} +2 -2
- package/dist/{chunk-GPW32HVB.js → chunk-C24F7SOO.js} +4 -4
- package/dist/{chunk-BJ23BNED.js → chunk-CBD64QQG.js} +1 -1
- package/dist/chunk-D74XYSA3.js +621 -0
- package/dist/{chunk-2WMTTIAZ.js → chunk-DHW4DIGK.js} +2 -2
- package/dist/{chunk-6MVI4QH2.js → chunk-DLGEQJ6E.js} +1 -1
- package/dist/{chunk-TWXZM34M.js → chunk-DT6LX4SV.js} +6 -6
- package/dist/{chunk-I7ECEP3W.js → chunk-E4FGXPHB.js} +43 -6
- package/dist/{chunk-XQNNB5GY.js → chunk-F55P3H4S.js} +37 -2
- package/dist/{chunk-W6K4XB6G.js → chunk-FCKYJSVY.js} +1 -1
- package/dist/{chunk-MC4ATFJV.js → chunk-FQEBVYVE.js} +6 -6
- package/dist/{chunk-RWSLVYTE.js → chunk-GD7FA6IP.js} +356 -124
- package/dist/{chunk-TIXTHUVJ.js → chunk-GGQMX4IU.js} +3 -3
- package/dist/chunk-GL57PO3K.js +104 -0
- package/dist/chunk-GWDSB25T.js +6 -0
- package/dist/{chunk-HSYJ6DZ2.js → chunk-H6BVQIAF.js} +39 -24
- package/dist/{chunk-KPIN44GZ.js → chunk-H6WLWIPN.js} +1 -1
- package/dist/{chunk-KKOLHBNC.js → chunk-HDL7CXQ4.js} +958 -215
- package/dist/{chunk-CMR64RYM.js → chunk-HENPNYGY.js} +13 -13
- package/dist/{chunk-32SXNM3G.js → chunk-HRBTW62M.js} +1 -1
- package/dist/{chunk-BV6GBSRP.js → chunk-IKAGAKAI.js} +249 -28
- package/dist/{chunk-JCBKARSK.js → chunk-IOEUAQWP.js} +1 -1
- package/dist/{chunk-PVIH3ZGV.js → chunk-IPB5QM4S.js} +90 -10
- package/dist/{chunk-B75BOKEI.js → chunk-IRUWKANS.js} +2 -2
- package/dist/{chunk-YHUNDGVV.js → chunk-JBMIIBPS.js} +1 -1
- package/dist/{chunk-2IWBY7XK.js → chunk-JLLJ3ER3.js} +2 -2
- package/dist/{chunk-N7A5D25S.js → chunk-JMMF3PPQ.js} +1 -1
- package/dist/{chunk-WNKVKNOM.js → chunk-K2G3VDCV.js} +1 -1
- package/dist/{chunk-BVV6NHKQ.js → chunk-KIUNO3JP.js} +5 -5
- package/dist/{chunk-OUEFW4RK.js → chunk-KRRZNASS.js} +2 -2
- package/dist/{chunk-IB336P52.js → chunk-L5GFREAH.js} +1 -1
- package/dist/{chunk-6QW6JHRE.js → chunk-LSAH73QD.js} +59 -32
- package/dist/chunk-LUQ57SRM.js +127 -0
- package/dist/{sweep-budget-WB2FKPYN.js → chunk-M6DZYWZH.js} +8 -3
- package/dist/{chunk-2UGGBIDL.js → chunk-MNIA3IOU.js} +3 -3
- package/dist/{chunk-3BRVLPPA.js → chunk-MOPUCPXK.js} +4 -0
- package/dist/{chunk-K6KRBXQP.js → chunk-MTFSD6DH.js} +3 -2
- package/dist/{chunk-PTJBWC77.js → chunk-MVWFY7IO.js} +4 -3
- package/dist/chunk-MVYB76QG.js +341 -0
- package/dist/{chunk-DGGDUKH6.js → chunk-NDJASAXP.js} +1 -1
- package/dist/{chunk-PPZOWQHP.js → chunk-NG2ABIDX.js} +1 -1
- package/dist/{chunk-TPHCZDE3.js → chunk-NPFU2NPG.js} +1 -1
- package/dist/{chunk-T2PYVVZ5.js → chunk-NUVP4CCD.js} +1 -1
- package/dist/chunk-O5VMAZZH.js +40 -0
- package/dist/chunk-O7LWR36Z.js +269 -0
- package/dist/{chunk-7Y5UDEVM.js → chunk-OL4JFQ2T.js} +7 -5
- package/dist/{chunk-HUSVERE6.js → chunk-OZUQJZYO.js} +7 -6
- package/dist/{chunk-NDSNM5OH.js → chunk-PAYVSTF2.js} +1 -1
- package/dist/chunk-PWRC5XZO.js +161 -0
- package/dist/{chunk-ZNE6H2JO.js → chunk-PXPBF2JZ.js} +4 -4
- package/dist/{chunk-ATKW3SYL.js → chunk-QFBT7CJH.js} +1 -1
- package/dist/{chunk-WH7XN5ER.js → chunk-QTKDGDR5.js} +1 -1
- package/dist/{chunk-Z42MXYWW.js → chunk-QWVXN224.js} +110 -28
- package/dist/{chunk-UU4UINUX.js → chunk-R3QDXB55.js} +13 -3
- package/dist/{chunk-IXBIVKWZ.js → chunk-RZZ66LSS.js} +98 -21
- package/dist/chunk-S3FIQCSM.js +232 -0
- package/dist/{chunk-RNAYCUNM.js → chunk-S3THSOWV.js} +1 -1
- package/dist/{chunk-HAZO7TRD.js → chunk-SA7GZU3U.js} +1 -1
- package/dist/{chunk-NFBW7N4D.js → chunk-SIGS6D5R.js} +2 -2
- package/dist/chunk-SJN5ZEDI.js +265 -0
- package/dist/{chunk-SSTLTIF3.js → chunk-SKGMF2SO.js} +25 -2
- package/dist/{chunk-CYA5S5OD.js → chunk-SLK3DPYU.js} +6 -5
- package/dist/{chunk-MWZFF3Q7.js → chunk-SXKMH4JX.js} +1 -1
- package/dist/{chunk-WD55PEBM.js → chunk-T3EJIMDX.js} +4 -4
- package/dist/{chunk-2P4WJNN5.js → chunk-TI2XFHRQ.js} +11 -7
- package/dist/{chunk-UIU2DGRV.js → chunk-TR73G4GH.js} +4 -4
- package/dist/{task-enforcement-X5QVL6RE.js → chunk-UC37QPSR.js} +173 -69
- package/dist/chunk-UU4FHMON.js +186 -0
- package/dist/{chunk-HNLXMD2V.js → chunk-UZ2LYBY5.js} +2 -2
- package/dist/{chunk-6D2PI4QD.js → chunk-V7AGCRLI.js} +1 -1
- package/dist/chunk-VIIHBYIP.js +335 -0
- package/dist/{chunk-54QCG45Y.js → chunk-WOYADZF5.js} +56 -5
- package/dist/{chunk-GFDGDFBF.js → chunk-WYRZEMRU.js} +22 -5
- package/dist/{chunk-BMHQPIJ2.js → chunk-WZTWA4G4.js} +585 -75
- package/dist/chunk-X4Z5DPOC.js +54 -0
- package/dist/{chunk-6MVC43X7.js → chunk-XZTTLTPG.js} +4 -4
- package/dist/{chunk-U2MREVXQ.js → chunk-YCPZTX7V.js} +2 -2
- package/dist/{chunk-YIIME2OW.js → chunk-YLXTKI6M.js} +1 -1
- package/dist/{chunk-4QSJVMMT.js → chunk-YYCKKORY.js} +13 -20
- package/dist/{chunk-YLQXP7T7.js → chunk-Z5VL7YBR.js} +1 -1
- package/dist/{chunk-XSMRR4IW.js → chunk-ZCLVPTZU.js} +26 -27
- package/dist/{chunk-5RACW3LX.js → chunk-ZUBUP66T.js} +1 -1
- package/dist/{chunk-EDH54E5A.js → chunk-ZYLKX3KB.js} +14 -14
- package/dist/{cleanup-graph-garbage-MXQ4Q2MA.js → cleanup-graph-garbage-DDVPSPI4.js} +8 -8
- package/dist/{co-activation-QI5BK4RT.js → co-activation-HLCAD44L.js} +4 -4
- package/dist/{co-occurrence-BYSQNZSV.js → co-occurrence-I5U2PCPX.js} +6 -6
- package/dist/{code-context-index-BNBHDXHW.js → code-context-index-FSYP5VF2.js} +5 -5
- package/dist/{content-extractor-JRJDNIHP.js → content-extractor-NXYNEF5K.js} +2 -2
- package/dist/{conversation-entity-extractor-FPAMTL3C.js → conversation-entity-extractor-D3EFTLT4.js} +2 -2
- package/dist/{conversation-wiki-populator-WU4HEQ7C.js → conversation-wiki-populator-YVT5AYSK.js} +1 -1
- package/dist/{crdt-sync-ETPKNBCU.js → crdt-sync-EMV5EZ4J.js} +8 -1
- package/dist/{crm-webhook-M566ZMZS.js → crm-webhook-XJ6UOBHR.js} +2 -2
- package/dist/cto-delegation-gate-5NNZWP2M.js +670 -0
- package/dist/{daemon-auth-7IFSV5FG.js → daemon-auth-TIE7HSWF.js} +5 -3
- package/dist/{daemon-orchestration-XV5GN73R.js → daemon-orchestration-GGSRCXR3.js} +47 -27
- package/dist/{daemon-ready-RKKB4P6K.js → daemon-ready-A7R6XZRF.js} +1 -1
- package/dist/{daemon-ready-signal-WKEJQNRA.js → daemon-ready-signal-LPAZWQOV.js} +3 -1
- package/dist/daemon-restart-circuit-breaker-5V6B6NLS.js +35 -0
- package/dist/daemon-timer-report-NM44WQRH.js +25 -0
- package/dist/{db-restore-events-JVEEP52Z.js → db-restore-events-GQGQSYHV.js} +2 -2
- package/dist/dispatch-ack-VYH3ONSS.js +27 -0
- package/dist/{doc-graph-extractor-LR5KMPH7.js → doc-graph-extractor-3OXUTEKS.js} +6 -6
- package/dist/{documents-FA6N7QDA.js → documents-M7UI6SZ6.js} +12 -12
- package/dist/dreaming-CYQWRJA5.js +47 -0
- package/dist/{exe-drift-TUKTCXZE.js → exe-drift-DPDRG3OM.js} +5 -5
- package/dist/{exe-export-ZLHBXMZC.js → exe-export-SZVIC6KI.js} +11 -11
- package/dist/{exe-import-VVKBZWSA.js → exe-import-Q6TCHQ6P.js} +11 -11
- package/dist/{exe-key-QJXFBF6G.js → exe-key-EVMVLB3Y.js} +244 -229
- package/dist/{exe-org-BGZNNE4H.js → exe-org-3Y3RWGIU.js} +3 -3
- package/dist/{exe-snapshot-JRLUO645.js → exe-snapshot-UX5CFSDX.js} +32 -29
- package/dist/{fast-db-init-JKJEEHUI.js → fast-db-init-O62SMAQL.js} +1 -1
- package/dist/{founder-context-HWPLMZVR.js → founder-context-FCVTBCWI.js} +4 -4
- package/dist/gateway/index.js +21 -21
- package/dist/{gateway-client-GRBOJQYC.js → gateway-client-7LMZKHTH.js} +1 -1
- package/dist/git-main-guard-UZP3KXYI.js +39 -0
- package/dist/{git-staleness-X5XZONX3.js → git-staleness-AFBXWNTZ.js} +4 -4
- package/dist/{global-procedures-VIIVWB6R.js → global-procedures-BDREAJSZ.js} +6 -6
- package/dist/{graph-auto-extract-HCQQF5AG.js → graph-auto-extract-JJ5OGNGJ.js} +6 -6
- package/dist/{graph-rag-WAK2BRJH.js → graph-rag-JZZAB7PC.js} +2 -2
- package/dist/{hook-integrity-WURH6DS3.js → hook-integrity-IKKZ6HBC.js} +1 -1
- package/dist/hook-prefetch-HLCCAOSZ.js +138 -0
- package/dist/hooks/bug-report-worker.js +33 -28
- package/dist/hooks/codex-stop-task-finalizer.js +33 -28
- package/dist/hooks/commit-complete.js +30 -27
- package/dist/hooks/error-recall.js +16 -15
- package/dist/hooks/exe-heartbeat-hook.js +6 -6
- package/dist/hooks/ingest-worker.js +11 -11
- package/dist/hooks/ingest.js +23 -23
- package/dist/hooks/instructions-loaded.js +7 -7
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +7 -7
- package/dist/hooks/post-compact.js +29 -26
- package/dist/hooks/post-tool-combined.js +25 -12
- package/dist/hooks/pre-compact.js +30 -27
- package/dist/hooks/pre-tool-use.js +181 -47
- package/dist/hooks/prompt-submit.js +343 -279
- package/dist/hooks/session-end.js +36 -33
- package/dist/hooks/session-start.js +28 -21
- package/dist/hooks/stop.js +36 -33
- package/dist/hooks/subagent-stop.js +29 -26
- package/dist/hooks/summary-worker.js +37 -34
- package/dist/index.js +39 -36
- package/dist/{installer-T2LGHZKL.js → installer-BZ3QV7DJ.js} +9 -9
- package/dist/{installer-NX2CLNV5.js → installer-HADQQZIU.js} +9 -9
- package/dist/{installer-6IFVEQI4.js → installer-OJ7XKSAR.js} +9 -9
- package/dist/{intercom-queue-KYHXXZCQ.js → intercom-queue-NFOLOBTT.js} +26 -23
- package/dist/{key-backup-status-TNEHXA2X.js → key-backup-status-TTO2UUYP.js} +2 -2
- package/dist/lib/agent-config.js +4 -3
- package/dist/lib/cloud-sync.js +19 -19
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +11 -11
- package/dist/lib/crypto.js +3 -3
- package/dist/lib/database.js +6 -4
- package/dist/{db-backup-MX2G3CEK.js → lib/db-backup.js} +28 -6
- package/dist/lib/db-checkpoint-worker.js +57 -0
- package/dist/lib/db-daemon-client.js +5 -5
- package/dist/lib/db-read-worker-client.js +9 -3
- package/dist/lib/db-write-worker-client.js +17 -0
- package/dist/lib/db-write-worker.js +216 -0
- package/dist/lib/db.js +6 -4
- package/dist/lib/device-registry.js +3 -3
- package/dist/lib/embed-worker.js +2 -2
- package/dist/lib/embedder.js +5 -5
- package/dist/lib/employee-templates.js +7 -7
- package/dist/lib/employees.js +10 -4
- package/dist/lib/exe-daemon-client.js +4 -4
- package/dist/lib/exe-daemon.js +1292 -363
- package/dist/lib/hybrid-search.js +11 -9
- package/dist/lib/identity.js +4 -4
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +4 -4
- package/dist/lib/messaging.js +29 -24
- package/dist/lib/post-tool-memory.js +3 -3
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +15 -7
- package/dist/lib/schedules.js +9 -9
- package/dist/lib/session-registry.js +6 -6
- package/dist/lib/skill-learning.js +10 -10
- package/dist/lib/status-brief.js +4 -4
- package/dist/lib/store.js +8 -8
- package/dist/lib/task-router.js +5 -5
- package/dist/lib/tasks.js +30 -25
- package/dist/lib/tmux-routing.js +57 -25
- package/dist/lib/tmux-status.js +9 -3
- package/dist/lib/tmux-transport.js +1 -1
- package/dist/lib/token-spend.js +5 -5
- package/dist/lib/transport.js +2 -2
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-MGDR4YNI.js → license-gate-3KPSNYVA.js} +5 -5
- package/dist/{license-sync-UWE6GEB4.js → license-sync-CQ42HDBA.js} +4 -4
- package/dist/mcp/register-tools.js +99 -92
- package/dist/mcp/server.js +102 -95
- package/dist/mcp/tools/complete-reminder.js +6 -6
- package/dist/mcp/tools/create-reminder.js +6 -6
- package/dist/mcp/tools/create-task.js +38 -28
- package/dist/mcp/tools/deactivate-behavior.js +11 -11
- package/dist/mcp/tools/list-reminders.js +6 -6
- package/dist/mcp/tools/list-tasks.js +36 -29
- package/dist/mcp/tools/send-message.js +29 -26
- package/dist/mcp/tools/update-task.js +35 -28
- package/dist/{mcp-http-config-RQLYEPTL.js → mcp-http-config-BHAM376G.js} +9 -7
- package/dist/mcp-port-config-PA3W3BJK.js +16 -0
- package/dist/mcp-session-identity-S7GSVRR6.js +178 -0
- package/dist/mcp-session-persist-PS7BIG44.js +62 -0
- package/dist/mcp-stale-flag-ZM23XRSJ.js +11 -0
- package/dist/{memory-cards-VYQ5DPMR.js → memory-cards-47NYPFC3.js} +8 -8
- package/dist/{memory-graph-extractor-GX2HNYLU.js → memory-graph-extractor-IH7YBZ6U.js} +7 -7
- package/dist/{memory-poisoning-defense-TX7627BD.js → memory-poisoning-defense-MZQFCQ2G.js} +4 -4
- package/dist/{memory-pressure-watchdog-MLNNH26B.js → memory-pressure-watchdog-PSVJ5BCF.js} +77 -37
- package/dist/{memory-queue-X2CSEAKE.js → memory-queue-ZI7DX44D.js} +5 -3
- package/dist/{memory-queue-client-YRL6XTGU.js → memory-queue-client-6IPZTWZA.js} +6 -6
- package/dist/{memory-reflection-KIGEFSI4.js → memory-reflection-3VPYJS2G.js} +4 -4
- package/dist/{monitor-grants-RZOVSYVO.js → monitor-grants-OXKZ75TH.js} +5 -5
- package/dist/{monitor-identity-MOXISYNG.js → monitor-identity-GLFZSEAH.js} +2 -2
- package/dist/{notification-ledger-B6AVEGMV.js → notification-ledger-A6MYLQAN.js} +27 -24
- package/dist/{notifications-DWXV7SVL.js → notifications-6XCSUTJW.js} +26 -23
- package/dist/{orchestration-events-ZG7O4HRY.js → orchestration-events-5XDNVNR2.js} +5 -5
- package/dist/{orchestration-phase-CXRCBCK7.js → orchestration-phase-6DJUSFMV.js} +3 -3
- package/dist/orchestrator-2RQBNMZL.js +48 -0
- package/dist/{pipeline-router-RTLAGZTA.js → pipeline-router-N2LDNFJ5.js} +5 -5
- package/dist/{plan-limits-WLQZTCSF.js → plan-limits-7BUMNQOI.js} +7 -7
- package/dist/platform-procedures-VDW2R65H.js +13 -0
- package/dist/{preferences-TYTGDXQZ.js → preferences-TWIXZBKS.js} +2 -2
- package/dist/{project-boot-6CGQ3EAH.js → project-boot-RXCHF3S7.js} +2 -2
- package/dist/{projection-worker-44SEKTZ5.js → projection-worker-CKC2E22U.js} +5 -5
- package/dist/{prospective-memory-UACFTYXK.js → prospective-memory-Q7ZUCAS4.js} +4 -4
- package/dist/{push-notifications-W5JRXLKJ.js → push-notifications-VCSZYVD5.js} +3 -3
- package/dist/{reranker-NL4YAV6R.js → reranker-L3GLRUDY.js} +3 -3
- package/dist/{retrieval-health-4C2PO6HH.js → retrieval-health-DPLY6O6P.js} +1 -1
- package/dist/{review-polling-W5AMHNLT.js → review-polling-DLPMK3QW.js} +27 -24
- package/dist/runtime/index.js +34 -31
- package/dist/{session-events-PGL5GJEB.js → session-events-N5VRC6IT.js} +27 -24
- package/dist/{session-kill-telemetry-6YDGEF27.js → session-kill-telemetry-76ZVQ525.js} +27 -24
- package/dist/session-mcp-config-YKNXG5DW.js +50 -0
- package/dist/{session-scope-3MEOO557.js → session-scope-B3BEHGHO.js} +26 -23
- package/dist/setup-wizard-5SIRITVN.js +14 -0
- package/dist/{shard-manager-MBWQEYNG.js → shard-manager-OETALPDW.js} +3 -3
- package/dist/{skill-refinement-EOROTBPX.js → skill-refinement-ACXLAK2G.js} +5 -5
- package/dist/{stack-release-PR2XKJ4Q.js → stack-release-HGFFFCGC.js} +90 -15
- package/dist/{stack-update-LMDM27ZW.js → stack-update-YVFP65NY.js} +5 -5
- package/dist/{steward-gate-4A2XHYFD.js → steward-gate-2M66UU6A.js} +5 -5
- package/dist/{support-inbox-Z77ACQUY.js → support-inbox-5W2GMJGV.js} +7 -6
- package/dist/{support-outbox-GB5SQFRJ.js → support-outbox-WHGPUYL2.js} +2 -2
- package/dist/sweep-budget-LQYBMDTK.js +15 -0
- package/dist/task-enforcement-C7MMJTKX.js +91 -0
- package/dist/{task-scope-EKYDCVUF.js → task-scope-DK666AKV.js} +28 -23
- package/dist/{tasks-crud-6LBNU43G.js → tasks-crud-DFPIAAEC.js} +38 -23
- package/dist/tasks-notify-4R5YIPZN.js +54 -0
- package/dist/{tasks-review-PBIUYXAL.js → tasks-review-GOYSZEZA.js} +28 -23
- package/dist/{telemetry-upload-WQDFABTF.js → telemetry-upload-Y5F6WYLD.js} +9 -9
- package/dist/tmux-command-guard-KSJKIX3C.js +117 -0
- package/dist/{token-budget-KWGL5DY7.js → token-budget-BAM5QDFV.js} +5 -5
- package/dist/{tool-capability-index-EH3HQVHU.js → tool-capability-index-QOFFCWDS.js} +1 -1
- package/dist/{tool-telemetry-UC55LSIH.js → tool-telemetry-4MF2HIWR.js} +1 -1
- package/dist/tui/App.js +41 -38
- package/dist/{tui-data-M3RBSJL3.js → tui-data-WMYZNTBR.js} +26 -23
- package/dist/{update-check-HFO4VHO4.js → update-check-3FHAWIG2.js} +7 -3
- package/dist/{update-support-VPBD5SD2.js → update-support-44SGQUA4.js} +93 -93
- package/dist/{whatsapp-accounts-BWRZUY23.js → whatsapp-accounts-BFIOXYW5.js} +1 -1
- package/dist/{whatsapp-config-GOSELKTE.js → whatsapp-config-FAX6EA5K.js} +20 -13
- package/dist/{worker-gate-4QLLMXZM.js → worker-gate-7OK7ZRJL.js} +3 -3
- package/dist/{workflow-engine-MMEHKUN4.js → workflow-engine-EDZGGHAI.js} +2 -2
- package/dist/{working-memory-PY4AG577.js → working-memory-NUVB5SFV.js} +1 -1
- package/dist/worktree-VDCY44ZP.js +47 -0
- package/dist/{worktree-sweep-5WKBU7E6.js → worktree-sweep-VSL7TRQK.js} +7 -7
- package/package.json +5 -3
- package/release-notes.json +86 -54
- package/dist/branch-hygiene-R5NVTRAY.js +0 -138
- package/dist/chunk-2KLAYDFB.js +0 -23
- package/dist/chunk-7YORGTXC.js +0 -138
- package/dist/chunk-CCPHEPLU.js +0 -30
- package/dist/chunk-HCJCW7X4.js +0 -190
- package/dist/chunk-HMP5VT6A.js +0 -118
- package/dist/chunk-PVYR4FCQ.js +0 -113
- package/dist/chunk-RP5GETX5.js +0 -140
- package/dist/chunk-X2FHTDIU.js +0 -34
- package/dist/chunk-YGAAZN3E.js +0 -47
- package/dist/cto-delegation-gate-S734XDXT.js +0 -290
- package/dist/dispatch-ack-4S44HBWB.js +0 -15
- package/dist/dreaming-UKGTQT6I.js +0 -44
- package/dist/mcp-port-config-FFAMMLLE.js +0 -10
- package/dist/orchestrator-PGHJDUUT.js +0 -45
- package/dist/setup-wizard-CJIYDSSP.js +0 -13
- package/dist/tasks-notify-TFJLSQ3B.js +0 -50
- package/dist/worktree-YXBDRYOC.js +0 -31
- package/dist/{chunk-7UMCQQWS.js → chunk-A4DVMPYB.js} +3 -3
- /package/dist/{chunk-3NCZKWPO.js → chunk-CIG7FSD5.js} +0 -0
- /package/dist/{chunk-MC6VPZKS.js → chunk-DFCSGPNZ.js} +0 -0
- /package/dist/{chunk-C2SRRCRK.js → chunk-EBTWNNAS.js} +0 -0
- /package/dist/{chunk-OADURIIN.js → chunk-WTH4CSAP.js} +0 -0
- /package/dist/{core-memory-3IBWM4WR.js → core-memory-VOBMIFRX.js} +0 -0
- /package/dist/{entity-boost-DWAWXFKN.js → entity-boost-N4NAK4WA.js} +0 -0
- /package/dist/{message-queue-client-3PTHPG5Q.js → message-queue-client-WMIO5FL5.js} +0 -0
- /package/dist/{oauth-server-M5TGXT6D.js → oauth-server-HPQCBLZQ.js} +0 -0
- /package/dist/{webhook-pipe-FZYLO6RR.js → webhook-pipe-HH7XXXYC.js} +0 -0
- /package/dist/{wiki-acl-7CROE3MJ.js → wiki-acl-NEM3L4LK.js} +0 -0
- /package/dist/{wiki-client-VNDOBK63.js → wiki-client-WREIYJLY.js} +0 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
buildMcpHttpHeaders,
|
|
4
|
+
mcpHttpPort,
|
|
5
|
+
mcpHttpUrl
|
|
6
|
+
} from "../chunk-YYCKKORY.js";
|
|
7
|
+
import "../chunk-X4Z5DPOC.js";
|
|
8
|
+
import "../chunk-GD7FA6IP.js";
|
|
9
|
+
import "../chunk-2I23RPSI.js";
|
|
10
|
+
import "../chunk-IKAGAKAI.js";
|
|
11
|
+
import "../chunk-PNQDP3OA.js";
|
|
12
|
+
import "../chunk-H73TUI4Y.js";
|
|
13
|
+
import "../chunk-7HLWBYH7.js";
|
|
14
|
+
import "../chunk-FXU7JOXK.js";
|
|
15
|
+
import "../chunk-OL4JFQ2T.js";
|
|
16
|
+
import "../chunk-BYTDMAGB.js";
|
|
17
|
+
import {
|
|
18
|
+
isMainModule
|
|
19
|
+
} from "../chunk-6Y4B3QF6.js";
|
|
20
|
+
import "../chunk-MLKGABMK.js";
|
|
21
|
+
|
|
22
|
+
// src/bin/exe-os-mcp-proxy.ts
|
|
23
|
+
import { once } from "events";
|
|
24
|
+
import { createInterface } from "readline";
|
|
25
|
+
import os from "os";
|
|
26
|
+
var DEFAULT_BOOT_WAIT_MS = 9e4;
|
|
27
|
+
var DEFAULT_RETRY_BUDGET_MS = 6e4;
|
|
28
|
+
var DEFAULT_REQUEST_TIMEOUT_MS = 12e4;
|
|
29
|
+
function debugEnabled() {
|
|
30
|
+
return process.env.EXE_MCP_PROXY_DEBUG === "1";
|
|
31
|
+
}
|
|
32
|
+
function sleep(ms) {
|
|
33
|
+
return new Promise((resolve) => {
|
|
34
|
+
const timer = setTimeout(resolve, ms);
|
|
35
|
+
timer.unref?.();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function parseRetryAfter(value) {
|
|
39
|
+
if (!value) return null;
|
|
40
|
+
const seconds = Number(value);
|
|
41
|
+
if (Number.isFinite(seconds) && seconds >= 0) return seconds * 1e3;
|
|
42
|
+
const dateMs = Date.parse(value);
|
|
43
|
+
if (Number.isFinite(dateMs)) return Math.max(0, dateMs - Date.now());
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
function errorCode(err) {
|
|
47
|
+
const nodeErr = err;
|
|
48
|
+
return nodeErr.code ?? nodeErr.cause?.code;
|
|
49
|
+
}
|
|
50
|
+
function isConnectionRefused(err) {
|
|
51
|
+
return errorCode(err) === "ECONNREFUSED";
|
|
52
|
+
}
|
|
53
|
+
function isConnectionLost(err) {
|
|
54
|
+
const code = errorCode(err);
|
|
55
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
56
|
+
return code === "ECONNRESET" || code === "EPIPE" || /socket hang up/i.test(message);
|
|
57
|
+
}
|
|
58
|
+
function isIdempotentMethod(message) {
|
|
59
|
+
const method = message.method ?? "";
|
|
60
|
+
return method === "initialize" || method === "ping" || method === "tools/list" || method.startsWith("notifications/") || method.startsWith("resources/") || method.startsWith("prompts/");
|
|
61
|
+
}
|
|
62
|
+
var MidCallConnectionLossError = class extends Error {
|
|
63
|
+
constructor(cause) {
|
|
64
|
+
super("daemon connection lost mid-call", { cause });
|
|
65
|
+
this.name = "MidCallConnectionLossError";
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function isInitialize(message) {
|
|
69
|
+
return message.method === "initialize" && Object.prototype.hasOwnProperty.call(message, "id");
|
|
70
|
+
}
|
|
71
|
+
function isInitialized(message) {
|
|
72
|
+
return message.method === "notifications/initialized";
|
|
73
|
+
}
|
|
74
|
+
function hasRequestId(message) {
|
|
75
|
+
return Object.prototype.hasOwnProperty.call(message, "id");
|
|
76
|
+
}
|
|
77
|
+
function unreachableError(message) {
|
|
78
|
+
if (!hasRequestId(message)) return null;
|
|
79
|
+
return JSON.stringify({
|
|
80
|
+
jsonrpc: "2.0",
|
|
81
|
+
id: message.id ?? null,
|
|
82
|
+
error: {
|
|
83
|
+
code: -32001,
|
|
84
|
+
message: "exe-os daemon unreachable \u2014 run `exe-os doctor`"
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function midCallLossError(message) {
|
|
89
|
+
if (!hasRequestId(message)) return null;
|
|
90
|
+
return JSON.stringify({
|
|
91
|
+
jsonrpc: "2.0",
|
|
92
|
+
id: message.id ?? null,
|
|
93
|
+
error: {
|
|
94
|
+
code: -32001,
|
|
95
|
+
message: "exe-os daemon restarted mid-call \u2014 the call may or may not have executed; re-check state before retrying. If MCP stays down, run `exe-os doctor`"
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function parseSseData(body) {
|
|
100
|
+
const out = [];
|
|
101
|
+
let dataLines = [];
|
|
102
|
+
const flush = () => {
|
|
103
|
+
if (dataLines.length === 0) return;
|
|
104
|
+
const data = dataLines.join("\n").trim();
|
|
105
|
+
dataLines = [];
|
|
106
|
+
if (!data || data === "[DONE]") return;
|
|
107
|
+
JSON.parse(data);
|
|
108
|
+
out.push(data);
|
|
109
|
+
};
|
|
110
|
+
for (const rawLine of body.split(/\r?\n/)) {
|
|
111
|
+
if (rawLine === "") {
|
|
112
|
+
flush();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (rawLine.startsWith("data:")) {
|
|
116
|
+
dataLines.push(rawLine.slice(5).trimStart());
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
flush();
|
|
120
|
+
return out;
|
|
121
|
+
}
|
|
122
|
+
var ExeOsMcpProxy = class {
|
|
123
|
+
stdin;
|
|
124
|
+
stdout;
|
|
125
|
+
stderr;
|
|
126
|
+
fetchImpl;
|
|
127
|
+
baseUrl;
|
|
128
|
+
healthUrl;
|
|
129
|
+
identityHeaders;
|
|
130
|
+
spawnIdentityHeaders;
|
|
131
|
+
bootWaitMs;
|
|
132
|
+
retryBudgetMs;
|
|
133
|
+
retryBaseDelayMs;
|
|
134
|
+
retryMaxDelayMs;
|
|
135
|
+
requestTimeoutMs;
|
|
136
|
+
debug;
|
|
137
|
+
sessionId = null;
|
|
138
|
+
initializeMessage = null;
|
|
139
|
+
initializedMessage = null;
|
|
140
|
+
constructor(options) {
|
|
141
|
+
const homeDir = options.homeDir ?? os.homedir();
|
|
142
|
+
this.stdin = options.stdin;
|
|
143
|
+
this.stdout = options.stdout;
|
|
144
|
+
this.stderr = options.stderr ?? process.stderr;
|
|
145
|
+
this.fetchImpl = options.fetchImpl ?? fetch;
|
|
146
|
+
this.baseUrl = options.baseUrl ?? mcpHttpUrl(homeDir);
|
|
147
|
+
this.healthUrl = this.baseUrl.endsWith("/mcp") ? `${this.baseUrl.slice(0, -4)}/health` : `http://127.0.0.1:${mcpHttpPort(homeDir)}/health`;
|
|
148
|
+
this.identityHeaders = Object.freeze({
|
|
149
|
+
...options.identityHeaders ?? buildMcpHttpHeaders(homeDir, {
|
|
150
|
+
useShellPlaceholders: false,
|
|
151
|
+
...process.env.AGENT_ROLE ? { agentRole: process.env.AGENT_ROLE } : {}
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
this.spawnIdentityHeaders = this.identityHeaders;
|
|
155
|
+
this.bootWaitMs = options.bootWaitMs ?? Number(process.env.EXE_MCP_PROXY_BOOT_WAIT_MS ?? DEFAULT_BOOT_WAIT_MS);
|
|
156
|
+
this.retryBudgetMs = options.retryBudgetMs ?? Number(process.env.EXE_MCP_PROXY_RETRY_BUDGET_MS ?? DEFAULT_RETRY_BUDGET_MS);
|
|
157
|
+
this.retryBaseDelayMs = options.retryBaseDelayMs ?? 250;
|
|
158
|
+
this.retryMaxDelayMs = options.retryMaxDelayMs ?? 5e3;
|
|
159
|
+
this.requestTimeoutMs = options.requestTimeoutMs ?? Number(process.env.EXE_MCP_PROXY_REQUEST_TIMEOUT_MS ?? DEFAULT_REQUEST_TIMEOUT_MS);
|
|
160
|
+
this.debug = debugEnabled();
|
|
161
|
+
}
|
|
162
|
+
async run() {
|
|
163
|
+
await this.waitForBoot();
|
|
164
|
+
const rl = createInterface({ input: this.stdin, crlfDelay: Infinity });
|
|
165
|
+
for await (const line of rl) {
|
|
166
|
+
const trimmed = String(line).trim();
|
|
167
|
+
if (!trimmed) continue;
|
|
168
|
+
let message;
|
|
169
|
+
try {
|
|
170
|
+
message = JSON.parse(trimmed);
|
|
171
|
+
} catch {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
await this.forwardAndWrite(message);
|
|
175
|
+
}
|
|
176
|
+
await this.closeSession();
|
|
177
|
+
}
|
|
178
|
+
log(message) {
|
|
179
|
+
if (this.debug) this.stderr.write(`[exe-os-mcp-proxy] ${message}
|
|
180
|
+
`);
|
|
181
|
+
}
|
|
182
|
+
headers(includeSession) {
|
|
183
|
+
if (this.identityHeaders !== this.spawnIdentityHeaders || !Object.isFrozen(this.identityHeaders)) {
|
|
184
|
+
throw new Error("identity headers must remain the frozen spawn-time object");
|
|
185
|
+
}
|
|
186
|
+
const headers = {
|
|
187
|
+
...this.identityHeaders,
|
|
188
|
+
"Content-Type": "application/json",
|
|
189
|
+
Accept: "application/json, text/event-stream"
|
|
190
|
+
};
|
|
191
|
+
if (includeSession && this.sessionId) headers["Mcp-Session-Id"] = this.sessionId;
|
|
192
|
+
return headers;
|
|
193
|
+
}
|
|
194
|
+
async waitForBoot() {
|
|
195
|
+
const deadline = Date.now() + Math.max(0, this.bootWaitMs);
|
|
196
|
+
while (Date.now() < deadline) {
|
|
197
|
+
try {
|
|
198
|
+
const res = await this.fetchImpl(this.healthUrl, {
|
|
199
|
+
method: "GET",
|
|
200
|
+
signal: AbortSignal.timeout(500)
|
|
201
|
+
});
|
|
202
|
+
const retryAfter = parseRetryAfter(res.headers.get("retry-after"));
|
|
203
|
+
if (res.status === 503) {
|
|
204
|
+
await sleep(Math.min(retryAfter ?? 500, Math.max(0, deadline - Date.now())));
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
if (res.ok) {
|
|
208
|
+
let status = null;
|
|
209
|
+
try {
|
|
210
|
+
status = (await res.json()).status;
|
|
211
|
+
} catch {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (status !== "starting") return;
|
|
215
|
+
await sleep(Math.min(retryAfter ?? 500, Math.max(0, deadline - Date.now())));
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
return;
|
|
219
|
+
} catch {
|
|
220
|
+
await sleep(Math.min(500, Math.max(0, deadline - Date.now())));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
async forwardAndWrite(message) {
|
|
225
|
+
if (isInitialize(message)) this.initializeMessage = { ...message };
|
|
226
|
+
if (isInitialized(message)) this.initializedMessage = { ...message };
|
|
227
|
+
try {
|
|
228
|
+
const result = await this.forwardWithRetry(message, true);
|
|
229
|
+
for (const out of this.messagesFromResponse(result)) {
|
|
230
|
+
this.stdout.write(`${out}
|
|
231
|
+
`);
|
|
232
|
+
}
|
|
233
|
+
} catch (err) {
|
|
234
|
+
this.log(err instanceof Error ? err.message : String(err));
|
|
235
|
+
const out = err instanceof MidCallConnectionLossError ? midCallLossError(message) : unreachableError(message);
|
|
236
|
+
if (out) this.stdout.write(`${out}
|
|
237
|
+
`);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
messagesFromResponse(result) {
|
|
241
|
+
if (result.response.status === 202 || !result.body.trim()) return [];
|
|
242
|
+
const contentType = result.response.headers.get("content-type") ?? "";
|
|
243
|
+
if (contentType.includes("text/event-stream")) return parseSseData(result.body);
|
|
244
|
+
JSON.parse(result.body);
|
|
245
|
+
return [result.body.trim()];
|
|
246
|
+
}
|
|
247
|
+
async forwardWithRetry(message, allowRemap) {
|
|
248
|
+
const deadline = Date.now() + Math.max(0, this.retryBudgetMs);
|
|
249
|
+
let delayMs = this.retryBaseDelayMs;
|
|
250
|
+
while (true) {
|
|
251
|
+
try {
|
|
252
|
+
const result = await this.postMessage(message, true);
|
|
253
|
+
const newSession = result.response.headers.get("mcp-session-id");
|
|
254
|
+
if (newSession && newSession !== this.sessionId) this.sessionId = newSession;
|
|
255
|
+
if (result.response.status === 503) {
|
|
256
|
+
const retryAfter = parseRetryAfter(result.response.headers.get("retry-after"));
|
|
257
|
+
await this.waitRetry(deadline, retryAfter ?? delayMs);
|
|
258
|
+
delayMs = Math.min(this.retryMaxDelayMs, delayMs * 2);
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
if ((result.response.status === 404 || result.response.status === 400) && allowRemap && this.initializeMessage) {
|
|
262
|
+
const recovered = await this.reinitialize();
|
|
263
|
+
if (recovered) return this.forwardWithRetry(message, false);
|
|
264
|
+
}
|
|
265
|
+
if (!result.response.ok) throw new Error(`HTTP ${result.response.status}`);
|
|
266
|
+
return result;
|
|
267
|
+
} catch (err) {
|
|
268
|
+
if (isConnectionRefused(err)) {
|
|
269
|
+
await this.waitRetry(deadline, delayMs);
|
|
270
|
+
delayMs = Math.min(this.retryMaxDelayMs, delayMs * 2);
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
if (isConnectionLost(err)) {
|
|
274
|
+
if (isIdempotentMethod(message)) {
|
|
275
|
+
await this.waitRetry(deadline, delayMs);
|
|
276
|
+
delayMs = Math.min(this.retryMaxDelayMs, delayMs * 2);
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
throw new MidCallConnectionLossError(err);
|
|
280
|
+
}
|
|
281
|
+
throw err;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
async waitRetry(deadline, requestedDelayMs) {
|
|
286
|
+
const remaining = deadline - Date.now();
|
|
287
|
+
if (remaining <= 0) throw new Error("retry budget exhausted");
|
|
288
|
+
await sleep(Math.min(this.retryMaxDelayMs, requestedDelayMs, remaining));
|
|
289
|
+
if (Date.now() >= deadline) throw new Error("retry budget exhausted");
|
|
290
|
+
}
|
|
291
|
+
async postMessage(message, includeSession) {
|
|
292
|
+
const response = await this.fetchImpl(this.baseUrl, {
|
|
293
|
+
method: "POST",
|
|
294
|
+
headers: this.headers(includeSession),
|
|
295
|
+
body: JSON.stringify(message),
|
|
296
|
+
signal: AbortSignal.timeout(Math.max(1e3, this.requestTimeoutMs))
|
|
297
|
+
});
|
|
298
|
+
const body = await response.text();
|
|
299
|
+
return { response, body };
|
|
300
|
+
}
|
|
301
|
+
async reinitialize() {
|
|
302
|
+
if (!this.initializeMessage) return false;
|
|
303
|
+
try {
|
|
304
|
+
this.log("remapping MCP session id");
|
|
305
|
+
this.sessionId = null;
|
|
306
|
+
const initResult = await this.postMessage(this.initializeMessage, false);
|
|
307
|
+
if (!initResult.response.ok) return false;
|
|
308
|
+
const newSession = initResult.response.headers.get("mcp-session-id");
|
|
309
|
+
if (!newSession) return false;
|
|
310
|
+
this.sessionId = newSession;
|
|
311
|
+
if (this.initializedMessage) {
|
|
312
|
+
const initializedResult = await this.postMessage(this.initializedMessage, true);
|
|
313
|
+
if (!initializedResult.response.ok && initializedResult.response.status !== 202) return false;
|
|
314
|
+
}
|
|
315
|
+
return true;
|
|
316
|
+
} catch (err) {
|
|
317
|
+
if (isConnectionRefused(err) || isConnectionLost(err)) return false;
|
|
318
|
+
throw err;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
async closeSession() {
|
|
322
|
+
if (!this.sessionId) return;
|
|
323
|
+
try {
|
|
324
|
+
await this.fetchImpl(this.baseUrl, {
|
|
325
|
+
method: "DELETE",
|
|
326
|
+
headers: this.headers(true),
|
|
327
|
+
signal: AbortSignal.timeout(1e3)
|
|
328
|
+
});
|
|
329
|
+
} catch {
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
async function runExeOsMcpProxy(options) {
|
|
334
|
+
const proxy = new ExeOsMcpProxy(options);
|
|
335
|
+
await proxy.run();
|
|
336
|
+
}
|
|
337
|
+
if (isMainModule(import.meta.url) && (process.argv[1] ?? "").includes("exe-os-mcp-proxy")) {
|
|
338
|
+
const exit = () => process.exit(0);
|
|
339
|
+
process.once("SIGTERM", exit);
|
|
340
|
+
process.once("SIGINT", exit);
|
|
341
|
+
runExeOsMcpProxy({
|
|
342
|
+
stdin: process.stdin,
|
|
343
|
+
stdout: process.stdout,
|
|
344
|
+
stderr: process.stderr
|
|
345
|
+
}).then(
|
|
346
|
+
() => process.exit(0),
|
|
347
|
+
(err) => {
|
|
348
|
+
if (debugEnabled()) process.stderr.write(`[exe-os-mcp-proxy] fatal: ${err instanceof Error ? err.stack ?? err.message : String(err)}
|
|
349
|
+
`);
|
|
350
|
+
process.exit(1);
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
process.stdin.on("close", () => {
|
|
354
|
+
if (process.stdin.readableEnded) return;
|
|
355
|
+
if (process.stdout.writableLength === 0) {
|
|
356
|
+
process.exit(0);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
void once(process.stdout, "drain").finally(() => process.exit(0));
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
export {
|
|
363
|
+
ExeOsMcpProxy,
|
|
364
|
+
runExeOsMcpProxy
|
|
365
|
+
};
|
|
@@ -2,47 +2,50 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getPendingMessages,
|
|
4
4
|
markRead
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TI2XFHRQ.js";
|
|
6
6
|
import {
|
|
7
7
|
fastDbInit
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-E23LNUWJ.js";
|
|
8
|
+
} from "../chunk-UU4FHMON.js";
|
|
9
|
+
import "../chunk-HDL7CXQ4.js";
|
|
10
|
+
import "../chunk-QFBT7CJH.js";
|
|
11
|
+
import "../chunk-4VUAG6DN.js";
|
|
12
|
+
import "../chunk-V7AGCRLI.js";
|
|
14
13
|
import "../chunk-4JERP7NT.js";
|
|
15
14
|
import "../chunk-EIKATSE4.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-E23LNUWJ.js";
|
|
16
|
+
import "../chunk-UZ2LYBY5.js";
|
|
17
|
+
import "../chunk-AD2VCHSS.js";
|
|
18
|
+
import "../chunk-WOYADZF5.js";
|
|
19
|
+
import "../chunk-SKGMF2SO.js";
|
|
20
|
+
import "../chunk-QTKDGDR5.js";
|
|
21
|
+
import "../chunk-WYRZEMRU.js";
|
|
22
|
+
import "../chunk-AM7S2TY6.js";
|
|
23
|
+
import "../chunk-MNIA3IOU.js";
|
|
24
|
+
import "../chunk-GWDSB25T.js";
|
|
25
|
+
import "../chunk-M6DZYWZH.js";
|
|
24
26
|
import "../chunk-CVYC6DUW.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2VZMLKNS.js";
|
|
28
|
+
import "../chunk-VIIHBYIP.js";
|
|
27
29
|
import "../chunk-OPU3NYOO.js";
|
|
28
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-R3QDXB55.js";
|
|
29
31
|
import "../chunk-AFNRE2RV.js";
|
|
30
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-5VV2YMMB.js";
|
|
31
33
|
import "../chunk-NLEW62VC.js";
|
|
32
34
|
import "../chunk-HYZV25LY.js";
|
|
33
35
|
import "../chunk-GJV3WDWM.js";
|
|
34
36
|
import "../chunk-MP2AFCGL.js";
|
|
35
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-GD7FA6IP.js";
|
|
36
38
|
import "../chunk-2I23RPSI.js";
|
|
37
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-IKAGAKAI.js";
|
|
38
40
|
import "../chunk-PNQDP3OA.js";
|
|
39
41
|
import "../chunk-H73TUI4Y.js";
|
|
40
42
|
import "../chunk-7HLWBYH7.js";
|
|
41
43
|
import "../chunk-FXU7JOXK.js";
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-NGP6LSV2.js";
|
|
45
|
+
import "../chunk-4E3SZEEI.js";
|
|
46
|
+
import "../chunk-NG2ABIDX.js";
|
|
47
|
+
import "../chunk-OL4JFQ2T.js";
|
|
48
|
+
import "../chunk-BYTDMAGB.js";
|
|
46
49
|
import "../chunk-MLKGABMK.js";
|
|
47
50
|
|
|
48
51
|
// src/bin/exe-pending-messages.ts
|
|
@@ -1,48 +1,51 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UU4FHMON.js";
|
|
5
5
|
import {
|
|
6
6
|
markAsRead,
|
|
7
7
|
readUnreadNotifications,
|
|
8
8
|
resolveExeSession
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-E23LNUWJ.js";
|
|
9
|
+
} from "../chunk-HDL7CXQ4.js";
|
|
10
|
+
import "../chunk-QFBT7CJH.js";
|
|
11
|
+
import "../chunk-4VUAG6DN.js";
|
|
12
|
+
import "../chunk-V7AGCRLI.js";
|
|
14
13
|
import "../chunk-4JERP7NT.js";
|
|
15
14
|
import "../chunk-EIKATSE4.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-E23LNUWJ.js";
|
|
16
|
+
import "../chunk-UZ2LYBY5.js";
|
|
17
|
+
import "../chunk-AD2VCHSS.js";
|
|
18
|
+
import "../chunk-WOYADZF5.js";
|
|
19
|
+
import "../chunk-SKGMF2SO.js";
|
|
20
|
+
import "../chunk-QTKDGDR5.js";
|
|
21
|
+
import "../chunk-WYRZEMRU.js";
|
|
22
|
+
import "../chunk-AM7S2TY6.js";
|
|
23
|
+
import "../chunk-MNIA3IOU.js";
|
|
24
|
+
import "../chunk-GWDSB25T.js";
|
|
25
|
+
import "../chunk-M6DZYWZH.js";
|
|
24
26
|
import "../chunk-CVYC6DUW.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2VZMLKNS.js";
|
|
28
|
+
import "../chunk-VIIHBYIP.js";
|
|
27
29
|
import "../chunk-OPU3NYOO.js";
|
|
28
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-R3QDXB55.js";
|
|
29
31
|
import "../chunk-AFNRE2RV.js";
|
|
30
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-5VV2YMMB.js";
|
|
31
33
|
import "../chunk-NLEW62VC.js";
|
|
32
34
|
import "../chunk-HYZV25LY.js";
|
|
33
35
|
import "../chunk-GJV3WDWM.js";
|
|
34
36
|
import "../chunk-MP2AFCGL.js";
|
|
35
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-GD7FA6IP.js";
|
|
36
38
|
import "../chunk-2I23RPSI.js";
|
|
37
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-IKAGAKAI.js";
|
|
38
40
|
import "../chunk-PNQDP3OA.js";
|
|
39
41
|
import "../chunk-H73TUI4Y.js";
|
|
40
42
|
import "../chunk-7HLWBYH7.js";
|
|
41
43
|
import "../chunk-FXU7JOXK.js";
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-NGP6LSV2.js";
|
|
45
|
+
import "../chunk-4E3SZEEI.js";
|
|
46
|
+
import "../chunk-NG2ABIDX.js";
|
|
47
|
+
import "../chunk-OL4JFQ2T.js";
|
|
48
|
+
import "../chunk-BYTDMAGB.js";
|
|
46
49
|
import {
|
|
47
50
|
isMainModule
|
|
48
51
|
} from "../chunk-6Y4B3QF6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
fastDbInit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UU4FHMON.js";
|
|
5
5
|
import {
|
|
6
6
|
cleanupOrphanedReviews,
|
|
7
7
|
extractRootExe,
|
|
@@ -9,45 +9,48 @@ import {
|
|
|
9
9
|
isExeSession,
|
|
10
10
|
isStale,
|
|
11
11
|
listPendingReviews
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-E23LNUWJ.js";
|
|
12
|
+
} from "../chunk-HDL7CXQ4.js";
|
|
13
|
+
import "../chunk-QFBT7CJH.js";
|
|
14
|
+
import "../chunk-4VUAG6DN.js";
|
|
15
|
+
import "../chunk-V7AGCRLI.js";
|
|
17
16
|
import "../chunk-4JERP7NT.js";
|
|
18
17
|
import "../chunk-EIKATSE4.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-E23LNUWJ.js";
|
|
19
|
+
import "../chunk-UZ2LYBY5.js";
|
|
20
|
+
import "../chunk-AD2VCHSS.js";
|
|
21
|
+
import "../chunk-WOYADZF5.js";
|
|
22
|
+
import "../chunk-SKGMF2SO.js";
|
|
23
|
+
import "../chunk-QTKDGDR5.js";
|
|
24
|
+
import "../chunk-WYRZEMRU.js";
|
|
25
|
+
import "../chunk-AM7S2TY6.js";
|
|
26
|
+
import "../chunk-MNIA3IOU.js";
|
|
27
|
+
import "../chunk-GWDSB25T.js";
|
|
28
|
+
import "../chunk-M6DZYWZH.js";
|
|
27
29
|
import "../chunk-CVYC6DUW.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-2VZMLKNS.js";
|
|
31
|
+
import "../chunk-VIIHBYIP.js";
|
|
30
32
|
import "../chunk-OPU3NYOO.js";
|
|
31
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-R3QDXB55.js";
|
|
32
34
|
import "../chunk-AFNRE2RV.js";
|
|
33
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-5VV2YMMB.js";
|
|
34
36
|
import "../chunk-NLEW62VC.js";
|
|
35
37
|
import "../chunk-HYZV25LY.js";
|
|
36
38
|
import "../chunk-GJV3WDWM.js";
|
|
37
39
|
import "../chunk-MP2AFCGL.js";
|
|
38
40
|
import {
|
|
39
41
|
getCoordinatorName
|
|
40
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-GD7FA6IP.js";
|
|
41
43
|
import "../chunk-2I23RPSI.js";
|
|
42
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-IKAGAKAI.js";
|
|
43
45
|
import "../chunk-PNQDP3OA.js";
|
|
44
46
|
import "../chunk-H73TUI4Y.js";
|
|
45
47
|
import "../chunk-7HLWBYH7.js";
|
|
46
48
|
import "../chunk-FXU7JOXK.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-NGP6LSV2.js";
|
|
50
|
+
import "../chunk-4E3SZEEI.js";
|
|
51
|
+
import "../chunk-NG2ABIDX.js";
|
|
52
|
+
import "../chunk-OL4JFQ2T.js";
|
|
53
|
+
import "../chunk-BYTDMAGB.js";
|
|
51
54
|
import {
|
|
52
55
|
isMainModule
|
|
53
56
|
} from "../chunk-6Y4B3QF6.js";
|
package/dist/bin/exe-rename.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
personalizePrompt
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MTFSD6DH.js";
|
|
5
|
+
import "../chunk-6IK2ME5X.js";
|
|
6
|
+
import "../chunk-6L6SXVTP.js";
|
|
7
7
|
import {
|
|
8
8
|
loadEmployees,
|
|
9
9
|
registerBinSymlinks,
|
|
10
10
|
saveEmployees,
|
|
11
11
|
validateEmployeeName
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-GD7FA6IP.js";
|
|
13
13
|
import "../chunk-2I23RPSI.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-IKAGAKAI.js";
|
|
15
15
|
import "../chunk-PNQDP3OA.js";
|
|
16
16
|
import "../chunk-H73TUI4Y.js";
|
|
17
17
|
import "../chunk-7HLWBYH7.js";
|
|
18
18
|
import "../chunk-FXU7JOXK.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-OL4JFQ2T.js";
|
|
20
20
|
import {
|
|
21
21
|
atomicWriteJsonSync
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-BYTDMAGB.js";
|
|
23
23
|
import {
|
|
24
24
|
isMainModule
|
|
25
25
|
} from "../chunk-6Y4B3QF6.js";
|