@askexenow/exe-os 0.9.342 → 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/dist/{active-agent-TNIO6IY3.js → active-agent-MDGDKGCL.js} +4 -4
- package/dist/{active-agent-PVGE57FY.js → active-agent-SNVSJFI5.js} +4 -4
- package/dist/{agentic-ontology-3FXYMHKW.js → agentic-ontology-SCG6UUHK.js} +1 -1
- package/dist/{backfill-gate-65LSYVE5.js → backfill-gate-HARARX5F.js} +2 -2
- package/dist/{backfill-metadata-ZSMZC45J.js → backfill-metadata-SCQ5FPDR.js} +5 -5
- package/dist/{background-jobs-EXR5RVGG.js → background-jobs-KKRO3QRO.js} +2 -2
- package/dist/{backup-verify-3Y2FHGZU.js → backup-verify-KDLOT4RP.js} +3 -3
- package/dist/{behaviors-KYRB3NGJ.js → behaviors-MICGF3H3.js} +6 -6
- package/dist/bin/age-ontology-load.js +2 -2
- package/dist/bin/agentic-ontology-backfill.js +7 -7
- package/dist/bin/agentic-reflection-backfill.js +8 -8
- package/dist/bin/agentic-semantic-label.js +7 -7
- package/dist/bin/backfill-conversations.js +7 -7
- package/dist/bin/backfill-responses.js +7 -7
- package/dist/bin/backfill-vectors.js +16 -16
- package/dist/bin/bulk-sync-postgres.js +15 -15
- package/dist/bin/cc-doctor.js +8 -8
- package/dist/bin/cleanup-stale-review-tasks.js +20 -19
- package/dist/bin/cli.js +23 -23
- package/dist/bin/daemon-restart-handoff.js +27 -0
- package/dist/bin/deferred-daemon-restart.js +116 -89
- package/dist/bin/exe-agent-config.js +4 -4
- package/dist/bin/exe-agent.js +13 -13
- package/dist/bin/exe-assign.js +9 -9
- package/dist/bin/exe-boot.js +34 -33
- package/dist/bin/exe-call.js +6 -6
- package/dist/bin/exe-cloud.js +16 -16
- package/dist/bin/exe-config-dump.js +4 -4
- package/dist/bin/exe-dispatch.js +20 -19
- package/dist/bin/exe-doctor.js +6 -6
- package/dist/bin/exe-export-behaviors.js +10 -10
- package/dist/bin/exe-forget.js +9 -9
- package/dist/bin/exe-gateway.js +8 -8
- package/dist/bin/exe-grant.js +4 -4
- package/dist/bin/exe-healthcheck.js +8 -8
- package/dist/bin/exe-heartbeat.js +20 -19
- package/dist/bin/exe-kill.js +25 -24
- package/dist/bin/exe-launch-agent.js +46 -31
- package/dist/bin/exe-memory-reads.js +5 -5
- package/dist/bin/exe-new-employee.js +10 -10
- package/dist/bin/exe-os-mcp-proxy.js +365 -0
- package/dist/bin/exe-pending-messages.js +21 -20
- package/dist/bin/exe-pending-notifications.js +20 -19
- package/dist/bin/exe-pending-reviews.js +20 -19
- package/dist/bin/exe-rename.js +6 -6
- package/dist/bin/exe-review.js +24 -23
- package/dist/bin/exe-search.js +6 -6
- package/dist/bin/exe-session-cleanup.js +23 -22
- package/dist/bin/exe-settings.js +16 -16
- package/dist/bin/exe-start-codex.js +17 -17
- package/dist/bin/exe-start-opencode.js +9 -9
- package/dist/bin/exe-status.js +21 -20
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +4 -4
- package/dist/bin/git-sweep.js +21 -20
- package/dist/bin/graph-backfill.js +6 -6
- package/dist/bin/graph-export.js +8 -8
- package/dist/bin/import-history.js +8 -8
- package/dist/bin/install.js +87 -86
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +5 -5
- package/dist/bin/postgres-agentic-reflection-backfill.js +4 -4
- package/dist/bin/postgres-agentic-semantic-backfill.js +3 -3
- package/dist/bin/pre-publish.js +1 -1
- package/dist/bin/reconcile-backlog.js +2 -2
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/scan-tasks.js +20 -19
- package/dist/bin/setup.js +3 -3
- package/dist/bin/shard-migrate.js +6 -6
- package/dist/bin/stack-update.js +5 -5
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-BL2ISK4U.js → boot-generation-CFA5NKSK.js} +4 -4
- package/dist/{boot-review-sections-DBMQJT5N.js → boot-review-sections-FX2FYZJQ.js} +19 -18
- package/dist/{branch-hygiene-TZWK6QCF.js → branch-hygiene-PILXQQDF.js} +1 -1
- package/dist/{branding-DVXBGVDH.js → branding-ZSC6YN63.js} +2 -2
- package/dist/{capability-cards-DN5UIKVN.js → capability-cards-O27UB3J5.js} +3 -3
- package/dist/{capacity-monitor-ZG5GGFR2.js → capacity-monitor-5DVZY3SM.js} +21 -20
- package/dist/{catchup-brief-D6HH6DWS.js → catchup-brief-3GYI6AKV.js} +23 -22
- package/dist/{chunk-YTCFACP4.js → chunk-25ORSHR7.js} +137 -137
- package/dist/{chunk-PDWS3E22.js → chunk-2F7WGH5K.js} +6 -6
- package/dist/{chunk-JLZ4RYSD.js → chunk-2VZMLKNS.js} +2 -2
- package/dist/{chunk-CNVBKDEY.js → chunk-2YPCD2UH.js} +12 -12
- package/dist/{chunk-HAF2DJYV.js → chunk-34RULPS2.js} +3 -3
- package/dist/{chunk-JPUZPAAF.js → chunk-3MLSM77R.js} +3 -3
- package/dist/{chunk-JTBIS4R5.js → chunk-3OO34BOT.js} +1 -1
- package/dist/{chunk-L4A5DL6Z.js → chunk-3OR54BBE.js} +3 -3
- package/dist/{chunk-USSB56WK.js → chunk-3PFP7GV2.js} +1 -1
- package/dist/{chunk-TLT7NZCW.js → chunk-4AA2HRIM.js} +3 -3
- package/dist/{chunk-PQIDGXSG.js → chunk-4E3SZEEI.js} +2 -2
- package/dist/chunk-4EI5AHHR.js +37 -0
- package/dist/{chunk-6XWTQUO4.js → chunk-4MLSFZLY.js} +19 -8
- package/dist/{chunk-AJYCFKJR.js → chunk-4UIYLTA3.js} +1 -1
- package/dist/{chunk-I26FWCSP.js → chunk-4VUAG6DN.js} +1 -1
- package/dist/{chunk-V3EEVY4L.js → chunk-54O2FWRM.js} +1 -1
- package/dist/{chunk-TTCUG2CF.js → chunk-5DSVWSL5.js} +2 -2
- package/dist/{chunk-4J4PMPXZ.js → chunk-5ERB3AWT.js} +1 -1
- package/dist/{chunk-SQKXKV2Y.js → chunk-5GDTZOVS.js} +2 -2
- package/dist/{chunk-BUCXNV32.js → chunk-5HQHHQUR.js} +1 -1
- package/dist/chunk-5MLYU6I2.js +76 -0
- package/dist/{chunk-X2Q5NLUL.js → chunk-5VV2YMMB.js} +1 -1
- package/dist/{chunk-XZXBB3TN.js → chunk-62MYX7G4.js} +2 -2
- package/dist/{chunk-X33NYQYJ.js → chunk-6CYVBLZW.js} +2 -2
- package/dist/{chunk-GJ26DULE.js → chunk-6IK2ME5X.js} +2 -2
- package/dist/{chunk-4ZCD2UWW.js → chunk-6JMRRJD6.js} +3 -3
- package/dist/{chunk-EQHQF5IM.js → chunk-6L6SXVTP.js} +32 -16
- package/dist/{chunk-MR6LHP4F.js → chunk-6ST7ZWTV.js} +1 -1
- package/dist/{chunk-WMESXBJM.js → chunk-6TJLBXR5.js} +30 -5
- package/dist/{chunk-PPCDBE6Z.js → chunk-6XKIMGHA.js} +1 -1
- package/dist/{chunk-5ERDIOV3.js → chunk-7M5AWCR3.js} +2 -2
- package/dist/{chunk-MKYFAKDW.js → chunk-7MESPFOK.js} +4 -4
- package/dist/{chunk-RACAOE2Z.js → chunk-7S3A4TOL.js} +15 -15
- package/dist/{chunk-LU2FALL6.js → chunk-7UNIYLGV.js} +28 -4
- package/dist/{chunk-N7QJKQMX.js → chunk-AGHKOBA6.js} +10 -10
- package/dist/{chunk-OZEBAGKR.js → chunk-B4LOFZLB.js} +10 -10
- package/dist/{chunk-GDIJE6D7.js → chunk-BUI2CHLQ.js} +1 -1
- package/dist/{chunk-JMYHW3AL.js → chunk-BVURFD5R.js} +2 -2
- package/dist/{chunk-7V4JADD6.js → chunk-BXSC34Y2.js} +2 -2
- package/dist/{chunk-YCANDMI2.js → chunk-BZA4N43B.js} +1 -1
- package/dist/{chunk-QDGZJ653.js → chunk-C24F7SOO.js} +4 -4
- package/dist/{chunk-5TY4FPH6.js → chunk-CBD64QQG.js} +1 -1
- package/dist/{chunk-QRYVCDWS.js → chunk-DHW4DIGK.js} +2 -2
- package/dist/{chunk-2KZNGDSW.js → chunk-DLGEQJ6E.js} +1 -1
- package/dist/{chunk-GBTTBXAF.js → chunk-DT6LX4SV.js} +4 -4
- package/dist/{chunk-R2NN3JKH.js → chunk-E4FGXPHB.js} +5 -5
- package/dist/{chunk-UEA3LXOB.js → chunk-FCKYJSVY.js} +1 -1
- package/dist/{chunk-FPFPLPUY.js → chunk-FQEBVYVE.js} +5 -5
- package/dist/{chunk-AOHXREB7.js → chunk-GD7FA6IP.js} +70 -66
- package/dist/{chunk-6WQ3NNCE.js → chunk-GGQMX4IU.js} +3 -3
- package/dist/{chunk-H6BV5TKD.js → chunk-H6BVQIAF.js} +6 -6
- package/dist/{chunk-CWXVH7WV.js → chunk-H6WLWIPN.js} +1 -1
- package/dist/{chunk-UP75Z5X7.js → chunk-HDL7CXQ4.js} +73 -67
- package/dist/{chunk-RHWZUUS4.js → chunk-HENPNYGY.js} +11 -11
- package/dist/{chunk-C5QAPURN.js → chunk-HRBTW62M.js} +1 -1
- package/dist/{chunk-OLMQ4UOF.js → chunk-IKAGAKAI.js} +209 -20
- package/dist/{chunk-UUEKJDK6.js → chunk-IPB5QM4S.js} +2 -2
- package/dist/{chunk-NXUSDL37.js → chunk-IRUWKANS.js} +1 -1
- package/dist/{chunk-EUS4QUKP.js → chunk-JBMIIBPS.js} +1 -1
- package/dist/{chunk-VPZHJCKW.js → chunk-JLLJ3ER3.js} +2 -2
- package/dist/{chunk-F27XXN6C.js → chunk-JMMF3PPQ.js} +1 -1
- package/dist/{chunk-UNXQBELK.js → chunk-K2G3VDCV.js} +1 -1
- package/dist/{chunk-3SW4OEHB.js → chunk-KIUNO3JP.js} +1 -1
- package/dist/{chunk-KW2SD2FL.js → chunk-KRRZNASS.js} +2 -2
- package/dist/{chunk-HV4KESRY.js → chunk-LSAH73QD.js} +1 -1
- package/dist/chunk-LUQ57SRM.js +127 -0
- package/dist/{sweep-budget-WB2FKPYN.js → chunk-M6DZYWZH.js} +8 -3
- package/dist/{chunk-JGIPOUIK.js → chunk-MNIA3IOU.js} +3 -3
- package/dist/{chunk-XHK3FS3W.js → chunk-MTFSD6DH.js} +1 -1
- package/dist/{chunk-2ZYO73KO.js → chunk-MVWFY7IO.js} +1 -1
- package/dist/{chunk-ASAFVDVR.js → chunk-NDJASAXP.js} +1 -1
- package/dist/{chunk-K7KFGDWF.js → chunk-NG2ABIDX.js} +1 -1
- package/dist/{chunk-O5V57XYE.js → chunk-NPFU2NPG.js} +1 -1
- package/dist/{chunk-UUQBZPJJ.js → chunk-NUVP4CCD.js} +1 -1
- package/dist/{chunk-NX5INHHG.js → chunk-O5VMAZZH.js} +1 -1
- package/dist/{chunk-WZHZCDDO.js → chunk-OL4JFQ2T.js} +1 -0
- package/dist/{chunk-Z6RSN7KS.js → chunk-OZUQJZYO.js} +4 -4
- package/dist/{chunk-P5HIWY2E.js → chunk-PAYVSTF2.js} +1 -1
- package/dist/chunk-PWRC5XZO.js +161 -0
- package/dist/{chunk-MZM6EJCU.js → chunk-PXPBF2JZ.js} +4 -4
- package/dist/{chunk-L2R3LN2P.js → chunk-QFBT7CJH.js} +1 -1
- package/dist/{chunk-2WAVZ5UJ.js → chunk-QTKDGDR5.js} +1 -1
- package/dist/{chunk-G4RGKBCA.js → chunk-R3QDXB55.js} +13 -3
- package/dist/{chunk-QQ4E2RYW.js → chunk-RZZ66LSS.js} +12 -12
- package/dist/{chunk-HJ447YER.js → chunk-S3FIQCSM.js} +14 -6
- package/dist/{chunk-G5T6KDG4.js → chunk-SA7GZU3U.js} +1 -1
- package/dist/{chunk-7CTRGNLW.js → chunk-SIGS6D5R.js} +2 -2
- package/dist/{chunk-VRAQTFD6.js → chunk-SJN5ZEDI.js} +1 -1
- package/dist/{chunk-QOO5RW3K.js → chunk-SLK3DPYU.js} +3 -3
- package/dist/{chunk-F5O7V7UK.js → chunk-SXKMH4JX.js} +1 -1
- package/dist/{chunk-6CH3TPHR.js → chunk-T3EJIMDX.js} +3 -3
- package/dist/{chunk-KWZMQACA.js → chunk-TI2XFHRQ.js} +3 -3
- package/dist/{chunk-OTF44GXL.js → chunk-TR73G4GH.js} +2 -2
- package/dist/{chunk-4CMVFVFC.js → chunk-UC37QPSR.js} +4 -4
- package/dist/{chunk-KGWRTRKC.js → chunk-UZ2LYBY5.js} +1 -1
- package/dist/{chunk-EV46QTD3.js → chunk-V7AGCRLI.js} +1 -1
- package/dist/{chunk-H7I47RS5.js → chunk-VIIHBYIP.js} +115 -3
- package/dist/{chunk-HA5R6USD.js → chunk-WYRZEMRU.js} +1 -1
- package/dist/{chunk-CE7F6RHG.js → chunk-WZTWA4G4.js} +11 -11
- package/dist/{chunk-IBYL4DHM.js → chunk-X4Z5DPOC.js} +22 -2
- package/dist/{chunk-4VSV5P4D.js → chunk-XZTTLTPG.js} +4 -4
- package/dist/{chunk-S7QUM2UK.js → chunk-YCPZTX7V.js} +2 -2
- package/dist/{chunk-GG5NDQNN.js → chunk-YYCKKORY.js} +13 -20
- package/dist/{chunk-NN2B2QKU.js → chunk-Z5VL7YBR.js} +1 -1
- package/dist/{chunk-QYZJHTNE.js → chunk-ZCLVPTZU.js} +9 -9
- package/dist/{chunk-RAXVPNMR.js → chunk-ZUBUP66T.js} +1 -1
- package/dist/{chunk-VSRPS3J7.js → chunk-ZYLKX3KB.js} +13 -13
- package/dist/{cleanup-graph-garbage-XWUFAMFO.js → cleanup-graph-garbage-DDVPSPI4.js} +5 -5
- package/dist/{co-activation-ZCHPLLP6.js → co-activation-HLCAD44L.js} +3 -3
- package/dist/{co-occurrence-KG3LKALN.js → co-occurrence-I5U2PCPX.js} +3 -3
- package/dist/{code-context-index-WSOJQ72R.js → code-context-index-FSYP5VF2.js} +4 -4
- package/dist/{conversation-wiki-populator-WQN3IUU6.js → conversation-wiki-populator-YVT5AYSK.js} +1 -1
- package/dist/{crdt-sync-4PFGPZXV.js → crdt-sync-EMV5EZ4J.js} +1 -1
- package/dist/{crm-webhook-II7Z45Q6.js → crm-webhook-XJ6UOBHR.js} +2 -2
- package/dist/{cto-delegation-gate-JWWOJPNC.js → cto-delegation-gate-5NNZWP2M.js} +19 -18
- package/dist/{daemon-auth-3FEAHFWC.js → daemon-auth-TIE7HSWF.js} +2 -2
- package/dist/{daemon-orchestration-FX4XZDR5.js → daemon-orchestration-GGSRCXR3.js} +24 -23
- package/dist/{daemon-ready-4JTSFKAY.js → daemon-ready-A7R6XZRF.js} +1 -1
- package/dist/{daemon-restart-circuit-breaker-PEGEIP6H.js → daemon-restart-circuit-breaker-5V6B6NLS.js} +1 -1
- package/dist/{db-restore-events-MQ2DBGEQ.js → db-restore-events-GQGQSYHV.js} +1 -1
- package/dist/{doc-graph-extractor-F6ODFIID.js → doc-graph-extractor-3OXUTEKS.js} +3 -3
- package/dist/{documents-23WX2FPQ.js → documents-M7UI6SZ6.js} +9 -9
- package/dist/{dreaming-NWD22UQ5.js → dreaming-CYQWRJA5.js} +20 -19
- package/dist/{exe-drift-CW72FBGE.js → exe-drift-DPDRG3OM.js} +4 -4
- package/dist/{exe-export-AUJ7CV7G.js → exe-export-SZVIC6KI.js} +8 -8
- package/dist/{exe-import-JX4I52VE.js → exe-import-Q6TCHQ6P.js} +8 -8
- package/dist/{exe-key-2N6LY2BU.js → exe-key-EVMVLB3Y.js} +86 -85
- package/dist/{exe-org-X4CSNCKS.js → exe-org-3Y3RWGIU.js} +2 -2
- package/dist/{exe-snapshot-XZ7FVCYZ.js → exe-snapshot-UX5CFSDX.js} +23 -22
- package/dist/{fast-db-init-4CWHSOOR.js → fast-db-init-O62SMAQL.js} +1 -1
- package/dist/{founder-context-7L3CFPYN.js → founder-context-FCVTBCWI.js} +3 -3
- package/dist/gateway/index.js +18 -18
- package/dist/{git-staleness-CI2R4QOJ.js → git-staleness-AFBXWNTZ.js} +3 -3
- package/dist/{global-procedures-XQX3LUH6.js → global-procedures-BDREAJSZ.js} +5 -5
- package/dist/{graph-auto-extract-OURWMGBS.js → graph-auto-extract-JJ5OGNGJ.js} +3 -3
- package/dist/{hook-integrity-XY47IM7G.js → hook-integrity-IKKZ6HBC.js} +1 -1
- package/dist/{hook-prefetch-PHRRKY4C.js → hook-prefetch-HLCCAOSZ.js} +20 -19
- package/dist/hooks/bug-report-worker.js +24 -23
- package/dist/hooks/codex-stop-task-finalizer.js +24 -23
- package/dist/hooks/commit-complete.js +23 -22
- package/dist/hooks/error-recall.js +12 -12
- package/dist/hooks/exe-heartbeat-hook.js +5 -5
- package/dist/hooks/ingest-worker.js +7 -7
- package/dist/hooks/ingest.js +19 -19
- package/dist/hooks/instructions-loaded.js +6 -6
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +6 -6
- package/dist/hooks/post-compact.js +22 -21
- package/dist/hooks/post-tool-combined.js +23 -10
- package/dist/hooks/pre-compact.js +23 -22
- package/dist/hooks/pre-tool-use.js +28 -27
- package/dist/hooks/prompt-submit.js +53 -40
- package/dist/hooks/session-end.js +28 -27
- package/dist/hooks/session-start.js +17 -17
- package/dist/hooks/stop.js +29 -28
- package/dist/hooks/subagent-stop.js +22 -21
- package/dist/hooks/summary-worker.js +28 -27
- package/dist/index.js +33 -32
- package/dist/{installer-L7EVH5U5.js → installer-BZ3QV7DJ.js} +7 -7
- package/dist/{installer-JND3RJ6Q.js → installer-HADQQZIU.js} +7 -7
- package/dist/{installer-G3JAO3NT.js → installer-OJ7XKSAR.js} +7 -7
- package/dist/{intercom-queue-ZFEQALR3.js → intercom-queue-NFOLOBTT.js} +19 -18
- package/dist/{key-backup-status-LOSMVATJ.js → key-backup-status-TTO2UUYP.js} +1 -1
- package/dist/lib/agent-config.js +2 -2
- package/dist/lib/cloud-sync.js +15 -15
- package/dist/lib/config.js +1 -1
- package/dist/lib/consolidation.js +6 -6
- package/dist/lib/database.js +3 -3
- package/dist/{db-backup-W2QFSYQC.js → lib/db-backup.js} +16 -4
- package/dist/lib/db-checkpoint-worker.js +57 -0
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db-write-worker-client.js +17 -0
- package/dist/lib/db-write-worker.js +216 -0
- package/dist/lib/db.js +3 -3
- package/dist/lib/device-registry.js +2 -2
- package/dist/lib/embed-worker.js +1 -1
- package/dist/lib/embedder.js +4 -4
- package/dist/lib/employee-templates.js +6 -6
- package/dist/lib/employees.js +3 -3
- package/dist/lib/exe-daemon-client.js +3 -3
- package/dist/lib/exe-daemon.js +781 -276
- package/dist/lib/hybrid-search.js +6 -6
- package/dist/lib/identity.js +3 -3
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +20 -19
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +4 -4
- package/dist/lib/schedules.js +6 -6
- package/dist/lib/session-registry.js +5 -5
- package/dist/lib/skill-learning.js +7 -7
- package/dist/lib/status-brief.js +3 -3
- package/dist/lib/store.js +5 -5
- package/dist/lib/task-router.js +4 -4
- package/dist/lib/tasks.js +21 -20
- package/dist/lib/tmux-routing.js +19 -18
- package/dist/lib/token-spend.js +4 -4
- package/dist/{license-gate-QTRQHV4F.js → license-gate-3KPSNYVA.js} +4 -4
- package/dist/{license-sync-N3UJFWAW.js → license-sync-CQ42HDBA.js} +3 -3
- package/dist/mcp/register-tools.js +83 -82
- package/dist/mcp/server.js +85 -84
- package/dist/mcp/tools/complete-reminder.js +5 -5
- package/dist/mcp/tools/create-reminder.js +5 -5
- package/dist/mcp/tools/create-task.js +23 -22
- package/dist/mcp/tools/deactivate-behavior.js +8 -8
- package/dist/mcp/tools/list-reminders.js +5 -5
- package/dist/mcp/tools/list-tasks.js +23 -22
- package/dist/mcp/tools/send-message.js +22 -21
- package/dist/mcp/tools/update-task.js +22 -21
- package/dist/{mcp-http-config-BDL36JZ3.js → mcp-http-config-BHAM376G.js} +8 -6
- package/dist/{mcp-port-config-6HYY6J7K.js → mcp-port-config-PA3W3BJK.js} +7 -1
- package/dist/{mcp-session-identity-T7H2EKFQ.js → mcp-session-identity-S7GSVRR6.js} +19 -18
- package/dist/mcp-session-persist-PS7BIG44.js +62 -0
- package/dist/mcp-stale-flag-ZM23XRSJ.js +11 -0
- package/dist/{memory-cards-ZRDW7QBX.js → memory-cards-47NYPFC3.js} +5 -5
- package/dist/{memory-graph-extractor-QLXDMHRS.js → memory-graph-extractor-IH7YBZ6U.js} +4 -4
- package/dist/{memory-poisoning-defense-HJTXYCWH.js → memory-poisoning-defense-MZQFCQ2G.js} +3 -3
- package/dist/{memory-pressure-watchdog-HN5X7AVN.js → memory-pressure-watchdog-PSVJ5BCF.js} +20 -19
- package/dist/{memory-queue-2UOOF27L.js → memory-queue-ZI7DX44D.js} +2 -2
- package/dist/{memory-queue-client-O5U6F6XP.js → memory-queue-client-6IPZTWZA.js} +5 -5
- package/dist/{memory-reflection-WVNFBJAA.js → memory-reflection-3VPYJS2G.js} +3 -3
- package/dist/{monitor-grants-E3ELDEWD.js → monitor-grants-OXKZ75TH.js} +2 -2
- package/dist/{notification-ledger-SZEPGJQ7.js → notification-ledger-A6MYLQAN.js} +20 -19
- package/dist/{notifications-4UT53CDG.js → notifications-6XCSUTJW.js} +19 -18
- package/dist/{orchestration-events-WV4NWKZH.js → orchestration-events-5XDNVNR2.js} +4 -4
- package/dist/{orchestration-phase-AWBXPO52.js → orchestration-phase-6DJUSFMV.js} +2 -2
- package/dist/{orchestrator-UAC3RW2T.js → orchestrator-2RQBNMZL.js} +21 -20
- package/dist/{pipeline-router-LM53NMWJ.js → pipeline-router-N2LDNFJ5.js} +4 -4
- package/dist/{plan-limits-2FEY2GOS.js → plan-limits-7BUMNQOI.js} +6 -6
- package/dist/{platform-procedures-X5DFJFV7.js → platform-procedures-VDW2R65H.js} +1 -1
- package/dist/{project-boot-4NUH5FRU.js → project-boot-RXCHF3S7.js} +1 -1
- package/dist/{projection-worker-FZ7YSN3G.js → projection-worker-CKC2E22U.js} +4 -4
- package/dist/{prospective-memory-6D2ASWM3.js → prospective-memory-Q7ZUCAS4.js} +3 -3
- package/dist/{push-notifications-U6FIBQRW.js → push-notifications-VCSZYVD5.js} +2 -2
- package/dist/{reranker-GYYRPANK.js → reranker-L3GLRUDY.js} +2 -2
- package/dist/{retrieval-health-4Z242P3B.js → retrieval-health-DPLY6O6P.js} +1 -1
- package/dist/{review-polling-HXAFJZDA.js → review-polling-DLPMK3QW.js} +20 -19
- package/dist/runtime/index.js +31 -30
- package/dist/{session-events-O3BV56ZX.js → session-events-N5VRC6IT.js} +20 -19
- package/dist/{session-kill-telemetry-AELE4JDK.js → session-kill-telemetry-76ZVQ525.js} +20 -19
- package/dist/{session-scope-5EAPUT45.js → session-scope-B3BEHGHO.js} +19 -18
- package/dist/{setup-wizard-NB6R4QVS.js → setup-wizard-5SIRITVN.js} +3 -3
- package/dist/{shard-manager-35PWFR3B.js → shard-manager-OETALPDW.js} +2 -2
- package/dist/{skill-refinement-DVSYXBBP.js → skill-refinement-ACXLAK2G.js} +4 -4
- package/dist/{stack-update-ATCJFOEK.js → stack-update-YVFP65NY.js} +4 -4
- package/dist/{steward-gate-3GQ5XKMJ.js → steward-gate-2M66UU6A.js} +4 -4
- package/dist/{support-inbox-4L62P4EP.js → support-inbox-5W2GMJGV.js} +4 -4
- package/dist/sweep-budget-LQYBMDTK.js +15 -0
- package/dist/{task-enforcement-IPIZX2MM.js → task-enforcement-C7MMJTKX.js} +20 -19
- package/dist/{task-scope-FOIW25HR.js → task-scope-DK666AKV.js} +19 -18
- package/dist/{tasks-crud-HBDKE6C5.js → tasks-crud-DFPIAAEC.js} +21 -18
- package/dist/{tasks-notify-G2U2U2YA.js → tasks-notify-4R5YIPZN.js} +20 -19
- package/dist/{tasks-review-27SFX5XN.js → tasks-review-GOYSZEZA.js} +19 -18
- package/dist/{telemetry-upload-ZOXHRWR5.js → telemetry-upload-Y5F6WYLD.js} +8 -8
- package/dist/{token-budget-5Y4YPDO3.js → token-budget-BAM5QDFV.js} +4 -4
- package/dist/{tool-capability-index-VYF5GNJ2.js → tool-capability-index-QOFFCWDS.js} +1 -1
- package/dist/{tool-telemetry-KBXSBDTK.js → tool-telemetry-4MF2HIWR.js} +1 -1
- package/dist/tui/App.js +33 -32
- package/dist/{tui-data-NLFMBIQI.js → tui-data-WMYZNTBR.js} +19 -18
- package/dist/{update-support-UVUSZG7R.js → update-support-44SGQUA4.js} +12 -12
- package/dist/{worker-gate-3KUBAU32.js → worker-gate-7OK7ZRJL.js} +2 -2
- package/dist/{workflow-engine-YITHXZR5.js → workflow-engine-EDZGGHAI.js} +2 -2
- package/dist/{worktree-LL62PLQB.js → worktree-VDCY44ZP.js} +5 -5
- package/dist/{worktree-sweep-WTK3MTKH.js → worktree-sweep-VSL7TRQK.js} +6 -6
- package/package.json +3 -2
- package/release-notes.json +12 -12
- package/dist/chunk-GIBYNT6W.js +0 -23
- /package/dist/{chunk-NBZL5CGA.js → chunk-735SUAT4.js} +0 -0
- /package/dist/{chunk-MGGOSFCR.js → chunk-CIG7FSD5.js} +0 -0
- /package/dist/{chunk-JRM4TAGS.js → chunk-DFCSGPNZ.js} +0 -0
- /package/dist/{chunk-QIFYLIUF.js → chunk-EBTWNNAS.js} +0 -0
- /package/dist/{chunk-KP3U5QGJ.js → chunk-L5GFREAH.js} +0 -0
- /package/dist/{chunk-PWUFMX75.js → chunk-UU4FHMON.js} +0 -0
- /package/dist/{core-memory-GAC6EWOQ.js → core-memory-VOBMIFRX.js} +0 -0
- /package/dist/{entity-boost-NT6UO2Z3.js → entity-boost-N4NAK4WA.js} +0 -0
- /package/dist/{message-queue-client-4EOQRUXW.js → message-queue-client-WMIO5FL5.js} +0 -0
- /package/dist/{oauth-server-67YBDP32.js → oauth-server-HPQCBLZQ.js} +0 -0
- /package/dist/{webhook-pipe-LEXMUQ5B.js → webhook-pipe-HH7XXXYC.js} +0 -0
- /package/dist/{wiki-acl-74BLWG6J.js → wiki-acl-NEM3L4LK.js} +0 -0
- /package/dist/{wiki-client-EAN7F5LV.js → wiki-client-WREIYJLY.js} +0 -0
package/dist/bin/exe-kill.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
recordSessionKill
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import {
|
|
6
|
-
fastDbInit
|
|
7
|
-
} from "../chunk-PWUFMX75.js";
|
|
4
|
+
} from "../chunk-3OR54BBE.js";
|
|
8
5
|
import {
|
|
9
6
|
disposeStore,
|
|
10
7
|
flushBatch
|
|
11
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ZYLKX3KB.js";
|
|
12
9
|
import "../chunk-CHCA3ZM2.js";
|
|
13
10
|
import "../chunk-OTVEIJUQ.js";
|
|
14
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-4MLSFZLY.js";
|
|
12
|
+
import {
|
|
13
|
+
fastDbInit
|
|
14
|
+
} from "../chunk-UU4FHMON.js";
|
|
15
15
|
import "../chunk-4QCFFW2H.js";
|
|
16
16
|
import {
|
|
17
17
|
extractRootExe
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-E23LNUWJ.js";
|
|
18
|
+
} from "../chunk-HDL7CXQ4.js";
|
|
19
|
+
import "../chunk-QFBT7CJH.js";
|
|
20
|
+
import "../chunk-4VUAG6DN.js";
|
|
21
|
+
import "../chunk-V7AGCRLI.js";
|
|
23
22
|
import "../chunk-4JERP7NT.js";
|
|
24
23
|
import "../chunk-EIKATSE4.js";
|
|
24
|
+
import "../chunk-E23LNUWJ.js";
|
|
25
25
|
import {
|
|
26
26
|
listSessions
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-UZ2LYBY5.js";
|
|
28
28
|
import "../chunk-AD2VCHSS.js";
|
|
29
29
|
import "../chunk-WOYADZF5.js";
|
|
30
30
|
import "../chunk-SKGMF2SO.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-QTKDGDR5.js";
|
|
32
|
+
import "../chunk-WYRZEMRU.js";
|
|
33
33
|
import "../chunk-AM7S2TY6.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-MNIA3IOU.js";
|
|
35
35
|
import "../chunk-GWDSB25T.js";
|
|
36
|
+
import "../chunk-M6DZYWZH.js";
|
|
36
37
|
import "../chunk-CVYC6DUW.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-2VZMLKNS.js";
|
|
39
|
+
import "../chunk-VIIHBYIP.js";
|
|
39
40
|
import "../chunk-OPU3NYOO.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-R3QDXB55.js";
|
|
41
42
|
import "../chunk-AFNRE2RV.js";
|
|
42
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-5VV2YMMB.js";
|
|
43
44
|
import "../chunk-NLEW62VC.js";
|
|
44
45
|
import "../chunk-HYZV25LY.js";
|
|
45
46
|
import "../chunk-GJV3WDWM.js";
|
|
46
47
|
import "../chunk-MP2AFCGL.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-GD7FA6IP.js";
|
|
48
49
|
import "../chunk-2I23RPSI.js";
|
|
49
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-IKAGAKAI.js";
|
|
50
51
|
import "../chunk-PNQDP3OA.js";
|
|
51
52
|
import "../chunk-H73TUI4Y.js";
|
|
52
53
|
import "../chunk-7HLWBYH7.js";
|
|
53
54
|
import "../chunk-FXU7JOXK.js";
|
|
54
55
|
import "../chunk-QWVXN224.js";
|
|
55
56
|
import "../chunk-NGP6LSV2.js";
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-4E3SZEEI.js";
|
|
58
|
+
import "../chunk-NG2ABIDX.js";
|
|
59
|
+
import "../chunk-OL4JFQ2T.js";
|
|
59
60
|
import "../chunk-BYTDMAGB.js";
|
|
60
61
|
import "../chunk-MLKGABMK.js";
|
|
61
62
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exportBehaviorsForAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6CYVBLZW.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveClaudeBinaryPath
|
|
7
7
|
} from "../chunk-75H4R62K.js";
|
|
8
8
|
import {
|
|
9
9
|
getSessionPrompt
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-KW2SD2FL.js";
|
|
10
|
+
} from "../chunk-MTFSD6DH.js";
|
|
11
|
+
import "../chunk-6IK2ME5X.js";
|
|
12
|
+
import "../chunk-6L6SXVTP.js";
|
|
14
13
|
import {
|
|
15
14
|
retryOnDaemonTransportError
|
|
16
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-CBD64QQG.js";
|
|
16
|
+
import "../chunk-KRRZNASS.js";
|
|
17
17
|
import "../chunk-QGGH7LOU.js";
|
|
18
|
-
import {
|
|
19
|
-
fastDbInit
|
|
20
|
-
} from "../chunk-PWUFMX75.js";
|
|
21
18
|
import {
|
|
22
19
|
disposeStore
|
|
23
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-ZYLKX3KB.js";
|
|
24
21
|
import "../chunk-CHCA3ZM2.js";
|
|
25
22
|
import "../chunk-OTVEIJUQ.js";
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-4MLSFZLY.js";
|
|
24
|
+
import {
|
|
25
|
+
fastDbInit
|
|
26
|
+
} from "../chunk-UU4FHMON.js";
|
|
27
27
|
import "../chunk-4QCFFW2H.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_PROVIDER,
|
|
@@ -32,33 +32,34 @@ import {
|
|
|
32
32
|
_resetCcHelpCache,
|
|
33
33
|
claudeSupportsAgentFlag,
|
|
34
34
|
getCcHelpOutputCached
|
|
35
|
-
} from "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-E23LNUWJ.js";
|
|
35
|
+
} from "../chunk-HDL7CXQ4.js";
|
|
36
|
+
import "../chunk-QFBT7CJH.js";
|
|
37
|
+
import "../chunk-4VUAG6DN.js";
|
|
38
|
+
import "../chunk-V7AGCRLI.js";
|
|
40
39
|
import "../chunk-4JERP7NT.js";
|
|
41
40
|
import "../chunk-EIKATSE4.js";
|
|
42
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-E23LNUWJ.js";
|
|
42
|
+
import "../chunk-UZ2LYBY5.js";
|
|
43
43
|
import "../chunk-AD2VCHSS.js";
|
|
44
44
|
import "../chunk-WOYADZF5.js";
|
|
45
45
|
import "../chunk-SKGMF2SO.js";
|
|
46
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-QTKDGDR5.js";
|
|
47
47
|
import {
|
|
48
48
|
getAgentRuntime,
|
|
49
49
|
loadAgentConfig,
|
|
50
50
|
normalizeCcModelName
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-WYRZEMRU.js";
|
|
52
52
|
import "../chunk-AM7S2TY6.js";
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-MNIA3IOU.js";
|
|
54
54
|
import "../chunk-GWDSB25T.js";
|
|
55
|
+
import "../chunk-M6DZYWZH.js";
|
|
55
56
|
import "../chunk-CVYC6DUW.js";
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-2VZMLKNS.js";
|
|
58
|
+
import "../chunk-VIIHBYIP.js";
|
|
58
59
|
import "../chunk-OPU3NYOO.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-R3QDXB55.js";
|
|
60
61
|
import "../chunk-AFNRE2RV.js";
|
|
61
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-5VV2YMMB.js";
|
|
62
63
|
import "../chunk-NLEW62VC.js";
|
|
63
64
|
import "../chunk-HYZV25LY.js";
|
|
64
65
|
import "../chunk-GJV3WDWM.js";
|
|
@@ -69,18 +70,18 @@ import {
|
|
|
69
70
|
loadEmployees,
|
|
70
71
|
loadEmployeesSync,
|
|
71
72
|
normalizeRole
|
|
72
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-GD7FA6IP.js";
|
|
73
74
|
import "../chunk-2I23RPSI.js";
|
|
74
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-IKAGAKAI.js";
|
|
75
76
|
import "../chunk-PNQDP3OA.js";
|
|
76
77
|
import "../chunk-H73TUI4Y.js";
|
|
77
78
|
import "../chunk-7HLWBYH7.js";
|
|
78
79
|
import "../chunk-FXU7JOXK.js";
|
|
79
80
|
import "../chunk-QWVXN224.js";
|
|
80
81
|
import "../chunk-NGP6LSV2.js";
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
83
|
-
import "../chunk-
|
|
82
|
+
import "../chunk-4E3SZEEI.js";
|
|
83
|
+
import "../chunk-NG2ABIDX.js";
|
|
84
|
+
import "../chunk-OL4JFQ2T.js";
|
|
84
85
|
import {
|
|
85
86
|
atomicWriteJsonSync,
|
|
86
87
|
atomicWriteSync
|
|
@@ -178,6 +179,18 @@ function getConfiguredClaudeModel(agent) {
|
|
|
178
179
|
}
|
|
179
180
|
return null;
|
|
180
181
|
}
|
|
182
|
+
function getConfiguredClaudeEffort(agent) {
|
|
183
|
+
const raw = process.env.EXE_AGENT_EFFORT;
|
|
184
|
+
if (raw && raw.trim()) return raw.trim().toLowerCase();
|
|
185
|
+
try {
|
|
186
|
+
const entry = loadAgentConfig()[baseAgentName(agent)];
|
|
187
|
+
if (entry?.runtime === "claude" && entry.reasoning_effort) {
|
|
188
|
+
return String(entry.reasoning_effort).trim().toLowerCase();
|
|
189
|
+
}
|
|
190
|
+
} catch {
|
|
191
|
+
}
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
181
194
|
var DEFAULT_ROLE_MCP_MAP = {
|
|
182
195
|
coo: ["exe-browser", "brave-search"],
|
|
183
196
|
cto: ["brave-search"],
|
|
@@ -322,6 +335,8 @@ function buildLaunchPlan(agent, behaviorsPath, passthrough, _hasAgentFlag, _prov
|
|
|
322
335
|
if ((_provider ?? DEFAULT_PROVIDER) === DEFAULT_PROVIDER) {
|
|
323
336
|
const configuredModel = getConfiguredClaudeModel(agent);
|
|
324
337
|
if (configuredModel) args.push("--model", configuredModel);
|
|
338
|
+
const configuredEffort = getConfiguredClaudeEffort(agent);
|
|
339
|
+
if (configuredEffort) args.push("--effort", configuredEffort);
|
|
325
340
|
}
|
|
326
341
|
const idPath = identityPathFor(agent);
|
|
327
342
|
const ccAgentPath = path.join(os.homedir(), ".claude", "agents", `${agent}.md`);
|
|
@@ -669,7 +684,7 @@ async function main() {
|
|
|
669
684
|
if (sessionName && ccSupportsFlag("--mcp-config")) {
|
|
670
685
|
try {
|
|
671
686
|
const allServers = collectAllMcpServers();
|
|
672
|
-
const { readOrCreateDaemonToken, mcpHttpUrl } = await import("../mcp-http-config-
|
|
687
|
+
const { readOrCreateDaemonToken, mcpHttpUrl } = await import("../mcp-http-config-BHAM376G.js");
|
|
673
688
|
let currentDaemonToken = null;
|
|
674
689
|
try {
|
|
675
690
|
currentDaemonToken = readOrCreateDaemonToken();
|
|
@@ -739,7 +754,7 @@ async function main() {
|
|
|
739
754
|
process.env.EXE_RUNTIME = "claude";
|
|
740
755
|
process.env.AGENT_ROLE = empRole;
|
|
741
756
|
try {
|
|
742
|
-
const { writeActiveAgent } = await import("../active-agent-
|
|
757
|
+
const { writeActiveAgent } = await import("../active-agent-SNVSJFI5.js");
|
|
743
758
|
writeActiveAgent(memoryAgent, empRole);
|
|
744
759
|
} catch {
|
|
745
760
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
initStore
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZYLKX3KB.js";
|
|
5
5
|
import "../chunk-CHCA3ZM2.js";
|
|
6
6
|
import "../chunk-OTVEIJUQ.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-4MLSFZLY.js";
|
|
8
8
|
import "../chunk-4QCFFW2H.js";
|
|
9
9
|
import "../chunk-MP2AFCGL.js";
|
|
10
10
|
import {
|
|
11
11
|
getClient
|
|
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
19
|
import "../chunk-QWVXN224.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-OL4JFQ2T.js";
|
|
21
21
|
import "../chunk-BYTDMAGB.js";
|
|
22
22
|
import {
|
|
23
23
|
isMainModule
|
|
@@ -7,27 +7,27 @@ import {
|
|
|
7
7
|
buildCustomEmployeePrompt,
|
|
8
8
|
getTemplate,
|
|
9
9
|
personalizePrompt
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-MTFSD6DH.js";
|
|
11
|
+
import "../chunk-6IK2ME5X.js";
|
|
12
|
+
import "../chunk-6L6SXVTP.js";
|
|
13
13
|
import {
|
|
14
14
|
PlanLimitError,
|
|
15
15
|
assertEmployeeLimit
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-MNIA3IOU.js";
|
|
17
17
|
import {
|
|
18
18
|
hireEmployee,
|
|
19
19
|
registerBinSymlinks,
|
|
20
20
|
validateEmployeeName
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-GD7FA6IP.js";
|
|
22
22
|
import "../chunk-2I23RPSI.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-IKAGAKAI.js";
|
|
24
24
|
import "../chunk-PNQDP3OA.js";
|
|
25
25
|
import "../chunk-H73TUI4Y.js";
|
|
26
26
|
import "../chunk-7HLWBYH7.js";
|
|
27
27
|
import "../chunk-FXU7JOXK.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-4E3SZEEI.js";
|
|
29
|
+
import "../chunk-NG2ABIDX.js";
|
|
30
|
+
import "../chunk-OL4JFQ2T.js";
|
|
31
31
|
import "../chunk-BYTDMAGB.js";
|
|
32
32
|
import {
|
|
33
33
|
isMainModule
|
|
@@ -147,7 +147,7 @@ ${rolePrompt}${emotionalSection}`;
|
|
|
147
147
|
console.error(`Warning: some launchers failed: ${bins.errors.join("; ")}`);
|
|
148
148
|
}
|
|
149
149
|
try {
|
|
150
|
-
const { resolvePackageRoot } = await import("../installer-
|
|
150
|
+
const { resolvePackageRoot } = await import("../installer-BZ3QV7DJ.js");
|
|
151
151
|
const { homedir } = await import("os");
|
|
152
152
|
const pkgRoot = resolvePackageRoot();
|
|
153
153
|
const wrapResult = generateSessionWrappers(pkgRoot);
|
|
@@ -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
|
+
};
|