@askexenow/exe-os 0.9.340 → 0.9.342
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-EC6M7KTX.js → active-agent-PVGE57FY.js} +5 -5
- package/dist/{active-agent-WHIUCHLA.js → active-agent-TNIO6IY3.js} +5 -5
- package/dist/{agentic-ontology-RNSXGXW4.js → agentic-ontology-3FXYMHKW.js} +1 -1
- package/dist/{backfill-gate-J7UXFNXU.js → backfill-gate-65LSYVE5.js} +3 -3
- package/dist/{backfill-metadata-MFY6BHKE.js → backfill-metadata-ZSMZC45J.js} +8 -8
- package/dist/{background-jobs-STURKDCS.js → background-jobs-EXR5RVGG.js} +3 -3
- package/dist/backup-verify-3Y2FHGZU.js +425 -0
- package/dist/{behaviors-HLZUJSMP.js → behaviors-KYRB3NGJ.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 +14 -14
- 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 +26 -24
- package/dist/bin/cli.js +111 -25
- package/dist/bin/customer-readiness.js +1 -1
- package/dist/bin/deferred-daemon-restart.js +97 -90
- package/dist/bin/exe-agent-config.js +9 -8
- package/dist/bin/exe-agent.js +20 -20
- package/dist/bin/exe-assign.js +12 -12
- package/dist/bin/exe-boot.js +201 -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 +26 -24
- package/dist/bin/exe-doctor.js +10 -6
- package/dist/bin/exe-export-behaviors.js +11 -11
- package/dist/bin/exe-forget.js +12 -10
- 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 +29 -28
- package/dist/bin/exe-kill.js +31 -29
- package/dist/bin/exe-launch-agent.js +129 -68
- package/dist/bin/exe-memory-reads.js +257 -0
- package/dist/bin/exe-new-employee.js +12 -11
- package/dist/bin/exe-pending-messages.js +27 -25
- package/dist/bin/exe-pending-notifications.js +26 -24
- package/dist/bin/exe-pending-reviews.js +26 -24
- package/dist/bin/exe-rename.js +7 -7
- package/dist/bin/exe-review.js +30 -28
- package/dist/bin/exe-search.js +11 -9
- package/dist/bin/exe-session-cleanup.js +116 -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 +27 -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 +27 -25
- package/dist/bin/graph-backfill.js +9 -9
- package/dist/bin/graph-export.js +9 -9
- package/dist/bin/import-history.js +11 -11
- package/dist/bin/install.js +102 -95
- 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 +484 -0
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/scan-tasks.js +26 -24
- package/dist/bin/setup.js +6 -5
- package/dist/bin/shard-migrate.js +9 -9
- package/dist/bin/stack-update.js +15 -9
- package/dist/bin/update.js +1 -1
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/boot-generation-BL2ISK4U.js +22 -0
- package/dist/boot-review-sections-DBMQJT5N.js +107 -0
- package/dist/branch-hygiene-TZWK6QCF.js +224 -0
- package/dist/{branding-JTEOF4ZV.js → branding-DVXBGVDH.js} +3 -3
- package/dist/{browser-session-store-CXQMOSEC.js → browser-session-store-B2NR3LIX.js} +2 -1
- package/dist/{capability-cards-YOKVMMOL.js → capability-cards-DN5UIKVN.js} +4 -4
- package/dist/{capacity-monitor-S54IOWRL.js → capacity-monitor-ZG5GGFR2.js} +27 -25
- package/dist/{catchup-brief-DRRQCMKA.js → catchup-brief-D6HH6DWS.js} +32 -29
- package/dist/{support-outbox-MGUVVGHT.js → chunk-25X4JD2V.js} +28 -12
- package/dist/{chunk-IYB2NIW3.js → chunk-2KZNGDSW.js} +1 -1
- package/dist/{chunk-FUIIVSW6.js → chunk-2WAVZ5UJ.js} +1 -1
- package/dist/{chunk-K5WFKEXQ.js → chunk-2ZYO73KO.js} +4 -3
- package/dist/{chunk-CLAYNAXC.js → chunk-3EUMUSLE.js} +1 -1
- package/dist/{chunk-BVV6NHKQ.js → chunk-3SW4OEHB.js} +5 -5
- package/dist/{task-enforcement-VI7L43DC.js → chunk-4CMVFVFC.js} +173 -69
- package/dist/{chunk-BU2QQWBQ.js → chunk-4J4PMPXZ.js} +3 -2
- package/dist/{chunk-JD5S5AAV.js → chunk-4N2NRGCM.js} +2 -2
- package/dist/chunk-4QCFFW2H.js +378 -0
- package/dist/{chunk-7EA7LYW4.js → chunk-4VSV5P4D.js} +4 -4
- package/dist/{chunk-52KNOQMK.js → chunk-4ZCD2UWW.js} +39 -10
- package/dist/{chunk-DZ6OQM67.js → chunk-5ERDIOV3.js} +2 -2
- package/dist/chunk-5H47VHB7.js +30 -0
- package/dist/{chunk-UCQITDLM.js → chunk-5TY4FPH6.js} +1 -1
- package/dist/{chunk-R44Z32O2.js → chunk-6CH3TPHR.js} +2 -2
- package/dist/{chunk-WYLV4S6A.js → chunk-6WQ3NNCE.js} +3 -3
- package/dist/{chunk-HHIBOU3P.js → chunk-6XWTQUO4.js} +1 -1
- package/dist/chunk-76CJBM36.js +88 -0
- package/dist/{chunk-H2L4PHGH.js → chunk-7CTRGNLW.js} +2 -2
- package/dist/{chunk-XUKPALWT.js → chunk-7V4JADD6.js} +2 -2
- package/dist/{chunk-RMOBQ6A5.js → chunk-AD2VCHSS.js} +1 -1
- package/dist/{chunk-QXSBB26A.js → chunk-AJYCFKJR.js} +1 -1
- package/dist/chunk-AM7S2TY6.js +54 -0
- package/dist/{chunk-HEPR6QTL.js → chunk-AOHXREB7.js} +334 -66
- package/dist/{chunk-FNZR3B7U.js → chunk-ASAFVDVR.js} +1 -1
- package/dist/{chunk-TALWBVZE.js → chunk-BUCXNV32.js} +1 -1
- package/dist/{chunk-SHIICYJW.js → chunk-BYTDMAGB.js} +4 -2
- package/dist/{chunk-32SXNM3G.js → chunk-C5QAPURN.js} +1 -1
- package/dist/{chunk-XCTGRD4S.js → chunk-CE7F6RHG.js} +587 -77
- package/dist/{chunk-7WPOJDTA.js → chunk-CNVBKDEY.js} +21 -15
- package/dist/{chunk-KPIN44GZ.js → chunk-CWXVH7WV.js} +1 -1
- package/dist/chunk-D74XYSA3.js +621 -0
- package/dist/{chunk-A47MXY2I.js → chunk-EQHQF5IM.js} +50 -32
- package/dist/{chunk-AOO77BDE.js → chunk-EUS4QUKP.js} +1 -1
- package/dist/{chunk-RLRT2BVM.js → chunk-EV46QTD3.js} +1 -1
- package/dist/{chunk-PAEXYFMY.js → chunk-F27XXN6C.js} +1 -1
- package/dist/{chunk-XQNNB5GY.js → chunk-F55P3H4S.js} +37 -2
- package/dist/{chunk-MWZFF3Q7.js → chunk-F5O7V7UK.js} +1 -1
- package/dist/{chunk-LMZISHSJ.js → chunk-FPFPLPUY.js} +6 -6
- package/dist/{chunk-7TS64TBG.js → chunk-G4RGKBCA.js} +8 -3
- package/dist/{chunk-4IYSBPX3.js → chunk-G5T6KDG4.js} +1 -1
- package/dist/{chunk-7WDXEKUL.js → chunk-GBTTBXAF.js} +4 -4
- package/dist/{chunk-6MRWJMI5.js → chunk-GDIJE6D7.js} +1 -1
- package/dist/{chunk-AVKXCSBI.js → chunk-GG5NDQNN.js} +2 -2
- package/dist/{chunk-I3XKO3KQ.js → chunk-GJ26DULE.js} +2 -2
- package/dist/chunk-GL57PO3K.js +104 -0
- package/dist/chunk-GWDSB25T.js +6 -0
- package/dist/{chunk-F55JF43M.js → chunk-H6BV5TKD.js} +39 -24
- package/dist/{chunk-HCJCW7X4.js → chunk-H7I47RS5.js} +34 -1
- package/dist/{chunk-65SVQELL.js → chunk-HA5R6USD.js} +31 -5
- package/dist/{chunk-VJHUVFIW.js → chunk-HAF2DJYV.js} +3 -3
- package/dist/chunk-HJ447YER.js +224 -0
- package/dist/chunk-HV4KESRY.js +395 -0
- package/dist/{chunk-B76TSEP3.js → chunk-I26FWCSP.js} +216 -9
- package/dist/{chunk-X2FHTDIU.js → chunk-IBYL4DHM.js} +1 -1
- package/dist/{chunk-JCBKARSK.js → chunk-IOEUAQWP.js} +1 -1
- package/dist/{chunk-MW2GJJ53.js → chunk-JGIPOUIK.js} +3 -3
- package/dist/{chunk-2233TQCA.js → chunk-JLZ4RYSD.js} +2 -2
- package/dist/{chunk-Q7L6G6KV.js → chunk-JMYHW3AL.js} +2 -2
- package/dist/{chunk-OJTJYEMX.js → chunk-JPUZPAAF.js} +4 -4
- package/dist/{chunk-XWHE4LZK.js → chunk-JTBIS4R5.js} +21 -2
- package/dist/{chunk-5Z5NATNS.js → chunk-K7KFGDWF.js} +1 -1
- package/dist/{chunk-UIV2WPBT.js → chunk-KGWRTRKC.js} +2 -2
- package/dist/{chunk-KTPG4XKI.js → chunk-KP3U5QGJ.js} +1 -1
- package/dist/{chunk-TLYAEISW.js → chunk-KW2SD2FL.js} +2 -2
- package/dist/{chunk-X7H3HMFH.js → chunk-KWZMQACA.js} +11 -7
- package/dist/{chunk-OFX5B2S7.js → chunk-L2R3LN2P.js} +1 -1
- package/dist/{chunk-T4KZ2Z2N.js → chunk-L4A5DL6Z.js} +3 -3
- package/dist/{chunk-X425OEYF.js → chunk-LU2FALL6.js} +3 -3
- package/dist/{chunk-6M36JFFD.js → chunk-MKYFAKDW.js} +4 -4
- package/dist/{chunk-I5RLNOFK.js → chunk-MOPUCPXK.js} +12 -4
- package/dist/{chunk-ZIVEA3NB.js → chunk-MR6LHP4F.js} +1 -1
- package/dist/chunk-MVYB76QG.js +341 -0
- package/dist/{chunk-2SG2UGCH.js → chunk-MZM6EJCU.js} +4 -4
- package/dist/{chunk-ZREGOV2Q.js → chunk-N7QJKQMX.js} +258 -14
- package/dist/{chunk-QLFRCA6I.js → chunk-NBZL5CGA.js} +93 -12
- package/dist/{chunk-QFPTDSY2.js → chunk-NN2B2QKU.js} +1 -1
- package/dist/chunk-NX5INHHG.js +40 -0
- package/dist/{chunk-B75BOKEI.js → chunk-NXUSDL37.js} +2 -2
- package/dist/{chunk-TPHCZDE3.js → chunk-O5V57XYE.js} +1 -1
- package/dist/chunk-O7LWR36Z.js +269 -0
- package/dist/{chunk-ATOU6CYR.js → chunk-OLMQ4UOF.js} +57 -11
- package/dist/{chunk-6HBURYON.js → chunk-OTF44GXL.js} +4 -4
- package/dist/{chunk-DILD54TU.js → chunk-OZEBAGKR.js} +277 -137
- package/dist/{chunk-DADMPMYX.js → chunk-P5HIWY2E.js} +1 -1
- package/dist/{chunk-EIF2LQHZ.js → chunk-PDWS3E22.js} +55 -4
- package/dist/{chunk-KTY7I7UH.js → chunk-PPCDBE6Z.js} +1 -1
- package/dist/{chunk-XACL67CS.js → chunk-PQIDGXSG.js} +13 -4
- package/dist/chunk-PWUFMX75.js +186 -0
- package/dist/{chunk-UPWE5NOG.js → chunk-QDGZJ653.js} +3 -3
- package/dist/{chunk-MQRFKSLI.js → chunk-QOO5RW3K.js} +6 -5
- package/dist/{chunk-KCC5A7YL.js → chunk-QQ4E2RYW.js} +95 -18
- package/dist/{chunk-BPC5LZ6Y.js → chunk-QRYVCDWS.js} +2 -2
- package/dist/{chunk-Z42MXYWW.js → chunk-QWVXN224.js} +110 -28
- package/dist/{chunk-542EWGY3.js → chunk-QYZJHTNE.js} +26 -27
- package/dist/{chunk-I7Z6KTGF.js → chunk-R2NN3JKH.js} +43 -6
- package/dist/{chunk-3OBWSCJN.js → chunk-RACAOE2Z.js} +14 -14
- package/dist/{chunk-5RACW3LX.js → chunk-RAXVPNMR.js} +1 -1
- package/dist/{chunk-2HZY3ECT.js → chunk-RHWZUUS4.js} +6 -6
- package/dist/{chunk-RNAYCUNM.js → chunk-S3THSOWV.js} +1 -1
- package/dist/{chunk-W7DHFGCB.js → chunk-S7QUM2UK.js} +2 -2
- package/dist/{chunk-SSTLTIF3.js → chunk-SKGMF2SO.js} +25 -2
- package/dist/{chunk-GN45PBWI.js → chunk-SQKXKV2Y.js} +2 -2
- package/dist/{chunk-QZLIZAS7.js → chunk-TLT7NZCW.js} +4 -4
- package/dist/chunk-TTCUG2CF.js +91 -0
- package/dist/chunk-UEA3LXOB.js +40 -0
- package/dist/{chunk-DRCRZIIJ.js → chunk-UNXQBELK.js} +1 -1
- package/dist/{chunk-PLRIJALF.js → chunk-UP75Z5X7.js} +921 -176
- package/dist/{chunk-TNJRWUCE.js → chunk-USSB56WK.js} +1 -1
- package/dist/{chunk-KMBEL7VB.js → chunk-UUEKJDK6.js} +90 -10
- package/dist/{chunk-XJI7Z6LZ.js → chunk-UUQBZPJJ.js} +1 -1
- package/dist/{chunk-RRWDYOQS.js → chunk-V3EEVY4L.js} +1 -1
- package/dist/{chunk-N5I7RL3I.js → chunk-VPZHJCKW.js} +2 -2
- package/dist/chunk-VRAQTFD6.js +265 -0
- package/dist/{chunk-H37HHX3E.js → chunk-VSRPS3J7.js} +14 -14
- package/dist/{chunk-5ZNY7IZI.js → chunk-WMESXBJM.js} +37 -3
- package/dist/{chunk-54QCG45Y.js → chunk-WOYADZF5.js} +56 -5
- package/dist/{chunk-7Y5UDEVM.js → chunk-WZHZCDDO.js} +6 -5
- package/dist/{chunk-3NGZ4PL7.js → chunk-X2Q5NLUL.js} +11 -2
- package/dist/{chunk-YE7NH53A.js → chunk-X33NYQYJ.js} +2 -2
- package/dist/{chunk-UXBD22CD.js → chunk-XHK3FS3W.js} +3 -2
- package/dist/{chunk-3QDSCJ3F.js → chunk-XZXBB3TN.js} +2 -2
- package/dist/{chunk-JSKBHUR7.js → chunk-YCANDMI2.js} +2 -2
- package/dist/{chunk-JBSCL2XT.js → chunk-YLXTKI6M.js} +1 -1
- package/dist/{chunk-G7WO77Z2.js → chunk-YTCFACP4.js} +812 -896
- package/dist/{chunk-LTVCRHHD.js → chunk-Z6RSN7KS.js} +7 -6
- package/dist/{cleanup-graph-garbage-KUABW6LS.js → cleanup-graph-garbage-XWUFAMFO.js} +6 -6
- package/dist/{co-activation-XMPHKGHR.js → co-activation-ZCHPLLP6.js} +4 -4
- package/dist/{co-occurrence-SHKSJ6CV.js → co-occurrence-KG3LKALN.js} +4 -4
- package/dist/{code-context-index-EXXDY3QZ.js → code-context-index-WSOJQ72R.js} +5 -5
- package/dist/{content-extractor-RHITF2KM.js → content-extractor-NXYNEF5K.js} +2 -2
- package/dist/{conversation-wiki-populator-WU4HEQ7C.js → conversation-wiki-populator-WQN3IUU6.js} +1 -1
- package/dist/{crdt-sync-UJELKSNX.js → crdt-sync-4PFGPZXV.js} +8 -1
- package/dist/{crm-webhook-HHNBS7LY.js → crm-webhook-II7Z45Q6.js} +2 -2
- package/dist/cto-delegation-gate-JWWOJPNC.js +669 -0
- package/dist/{daemon-auth-7IFSV5FG.js → daemon-auth-3FEAHFWC.js} +5 -3
- package/dist/{daemon-orchestration-7QB6QOXT.js → daemon-orchestration-FX4XZDR5.js} +46 -27
- package/dist/{daemon-ready-5XI5BIJD.js → daemon-ready-4JTSFKAY.js} +1 -1
- package/dist/{daemon-ready-signal-E7VMIQ6I.js → daemon-ready-signal-LPAZWQOV.js} +5 -1
- package/dist/daemon-restart-circuit-breaker-PEGEIP6H.js +35 -0
- package/dist/daemon-timer-report-NM44WQRH.js +25 -0
- package/dist/{db-backup-DLD4QZBO.js → db-backup-W2QFSYQC.js} +15 -5
- package/dist/{db-restore-events-JVEEP52Z.js → db-restore-events-MQ2DBGEQ.js} +2 -2
- package/dist/dispatch-ack-VYH3ONSS.js +27 -0
- package/dist/{doc-graph-extractor-3TRLGD7M.js → doc-graph-extractor-F6ODFIID.js} +4 -4
- package/dist/{documents-FHIBU7KJ.js → documents-23WX2FPQ.js} +12 -12
- package/dist/dreaming-NWD22UQ5.js +46 -0
- package/dist/{exe-drift-KY2KHZEL.js → exe-drift-CW72FBGE.js} +5 -5
- package/dist/{exe-export-SP6G3QF6.js → exe-export-AUJ7CV7G.js} +11 -11
- package/dist/{exe-import-KJU7FBVQ.js → exe-import-JX4I52VE.js} +11 -11
- package/dist/{exe-key-M6TYHNUW.js → exe-key-2N6LY2BU.js} +241 -226
- package/dist/{exe-org-BGZNNE4H.js → exe-org-X4CSNCKS.js} +3 -3
- package/dist/{exe-snapshot-ZNPGUKRZ.js → exe-snapshot-XZ7FVCYZ.js} +31 -29
- package/dist/{fast-db-init-QQB6IVWV.js → fast-db-init-4CWHSOOR.js} +1 -1
- package/dist/{founder-context-PQR3BUS7.js → founder-context-7L3CFPYN.js} +4 -4
- package/dist/gateway/index.js +14 -14
- 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-UGB5J3K7.js → git-staleness-CI2R4QOJ.js} +4 -4
- package/dist/{global-procedures-R7KRREEK.js → global-procedures-XQX3LUH6.js} +6 -6
- package/dist/{graph-auto-extract-LKIQ57PL.js → graph-auto-extract-OURWMGBS.js} +4 -4
- package/dist/{hook-integrity-WURH6DS3.js → hook-integrity-XY47IM7G.js} +1 -1
- package/dist/hook-prefetch-PHRRKY4C.js +137 -0
- package/dist/hooks/bug-report-worker.js +32 -28
- package/dist/hooks/codex-stop-task-finalizer.js +32 -28
- package/dist/hooks/commit-complete.js +29 -27
- package/dist/hooks/error-recall.js +12 -11
- package/dist/hooks/exe-heartbeat-hook.js +6 -6
- package/dist/hooks/ingest-worker.js +11 -11
- package/dist/hooks/ingest.js +18 -18
- 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 +28 -26
- package/dist/hooks/post-tool-combined.js +12 -12
- package/dist/hooks/pre-compact.js +29 -27
- package/dist/hooks/pre-tool-use.js +180 -47
- package/dist/hooks/prompt-submit.js +324 -273
- package/dist/hooks/session-end.js +35 -33
- package/dist/hooks/session-start.js +28 -21
- package/dist/hooks/stop.js +35 -33
- package/dist/hooks/subagent-stop.js +28 -26
- package/dist/hooks/summary-worker.js +36 -34
- package/dist/index.js +39 -37
- package/dist/{installer-SB2N5NKH.js → installer-G3JAO3NT.js} +9 -9
- package/dist/{installer-MZWWBXM6.js → installer-JND3RJ6Q.js} +9 -9
- package/dist/{installer-MNPXDLGG.js → installer-L7EVH5U5.js} +9 -9
- package/dist/{intercom-queue-VU2G6F5R.js → intercom-queue-ZFEQALR3.js} +25 -23
- package/dist/{key-backup-status-TNEHXA2X.js → key-backup-status-LOSMVATJ.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 +9 -9
- package/dist/lib/crypto.js +3 -3
- package/dist/lib/database.js +6 -4
- package/dist/lib/db-daemon-client.js +5 -5
- package/dist/lib/db-read-worker-client.js +9 -3
- 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 +651 -158
- 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 +28 -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 +29 -25
- package/dist/lib/tmux-routing.js +56 -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-BYDMFMFT.js → license-gate-QTRQHV4F.js} +5 -5
- package/dist/{license-sync-N3RNYVP2.js → license-sync-N3UJFWAW.js} +4 -4
- package/dist/mcp/register-tools.js +96 -89
- package/dist/mcp/server.js +98 -91
- 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 +37 -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 +35 -29
- package/dist/mcp/tools/send-message.js +28 -26
- package/dist/mcp/tools/update-task.js +34 -28
- package/dist/{mcp-http-config-EMAVS2JI.js → mcp-http-config-BDL36JZ3.js} +6 -6
- package/dist/{mcp-port-config-FFAMMLLE.js → mcp-port-config-6HYY6J7K.js} +2 -2
- package/dist/mcp-session-identity-T7H2EKFQ.js +177 -0
- package/dist/{memory-cards-TQRLZI4D.js → memory-cards-ZRDW7QBX.js} +8 -8
- package/dist/{memory-graph-extractor-IWGNVAFU.js → memory-graph-extractor-QLXDMHRS.js} +5 -5
- package/dist/{memory-poisoning-defense-T4ITBGSG.js → memory-poisoning-defense-HJTXYCWH.js} +4 -4
- package/dist/{memory-pressure-watchdog-RRIAXPXQ.js → memory-pressure-watchdog-HN5X7AVN.js} +76 -37
- package/dist/{memory-queue-X2CSEAKE.js → memory-queue-2UOOF27L.js} +5 -3
- package/dist/{memory-queue-client-BKQHTYTH.js → memory-queue-client-O5U6F6XP.js} +6 -6
- package/dist/{memory-reflection-6N4J2FL7.js → memory-reflection-WVNFBJAA.js} +4 -4
- package/dist/{monitor-grants-RZOVSYVO.js → monitor-grants-E3ELDEWD.js} +5 -5
- package/dist/{monitor-identity-MOXISYNG.js → monitor-identity-GLFZSEAH.js} +2 -2
- package/dist/notification-ledger-SZEPGJQ7.js +409 -0
- package/dist/{notifications-KONB3C62.js → notifications-4UT53CDG.js} +25 -23
- package/dist/{orchestration-events-5SIJOE4H.js → orchestration-events-WV4NWKZH.js} +5 -5
- package/dist/{orchestration-phase-CXRCBCK7.js → orchestration-phase-AWBXPO52.js} +3 -3
- package/dist/orchestrator-UAC3RW2T.js +47 -0
- package/dist/{pipeline-router-O6HU7DKH.js → pipeline-router-LM53NMWJ.js} +5 -5
- package/dist/{plan-limits-GRNBOBB3.js → plan-limits-2FEY2GOS.js} +7 -7
- package/dist/platform-procedures-X5DFJFV7.js +13 -0
- package/dist/{preferences-TYTGDXQZ.js → preferences-TWIXZBKS.js} +2 -2
- package/dist/{project-boot-SD7GM24K.js → project-boot-4NUH5FRU.js} +2 -2
- package/dist/{projection-worker-ZVOFHTXT.js → projection-worker-FZ7YSN3G.js} +5 -5
- package/dist/{prospective-memory-W6S67LZZ.js → prospective-memory-6D2ASWM3.js} +4 -4
- package/dist/{push-notifications-W5JRXLKJ.js → push-notifications-U6FIBQRW.js} +3 -3
- package/dist/{reranker-QATGTAPC.js → reranker-GYYRPANK.js} +3 -3
- package/dist/{retrieval-health-TWHKYCRK.js → retrieval-health-4Z242P3B.js} +1 -1
- package/dist/{review-polling-PCMD5BFN.js → review-polling-HXAFJZDA.js} +26 -24
- package/dist/runtime/index.js +37 -35
- package/dist/{session-events-3LCVQEL7.js → session-events-O3BV56ZX.js} +26 -24
- package/dist/{session-kill-telemetry-CZSPN5V6.js → session-kill-telemetry-AELE4JDK.js} +26 -24
- package/dist/session-mcp-config-YKNXG5DW.js +50 -0
- package/dist/{session-scope-CFHVSVAQ.js → session-scope-5EAPUT45.js} +25 -23
- package/dist/setup-wizard-NB6R4QVS.js +14 -0
- package/dist/{shard-manager-MBWQEYNG.js → shard-manager-35PWFR3B.js} +3 -3
- package/dist/{skill-refinement-74T6VDFM.js → skill-refinement-DVSYXBBP.js} +5 -5
- package/dist/stack-promote-RSOWO6EY.js +130 -0
- package/dist/{stack-release-XXMV7SPX.js → stack-release-HGFFFCGC.js} +112 -22
- package/dist/{stack-update-E2TKHHSQ.js → stack-update-ATCJFOEK.js} +7 -5
- package/dist/{steward-gate-WT7WXQIE.js → steward-gate-3GQ5XKMJ.js} +5 -5
- package/dist/support-inbox-4L62P4EP.js +33 -0
- package/dist/support-outbox-WHGPUYL2.js +16 -0
- package/dist/task-enforcement-IPIZX2MM.js +90 -0
- package/dist/{task-scope-CQEG5SSJ.js → task-scope-FOIW25HR.js} +27 -23
- package/dist/{tasks-crud-UGK5A25L.js → tasks-crud-HBDKE6C5.js} +35 -23
- package/dist/tasks-notify-G2U2U2YA.js +53 -0
- package/dist/{tasks-review-JKBRACII.js → tasks-review-27SFX5XN.js} +27 -23
- package/dist/{telemetry-upload-7LBYGPCB.js → telemetry-upload-ZOXHRWR5.js} +9 -9
- package/dist/tmux-command-guard-KSJKIX3C.js +117 -0
- package/dist/{token-budget-QBRJR4M5.js → token-budget-5Y4YPDO3.js} +5 -5
- package/dist/{tool-capability-index-Q6YQDL7I.js → tool-capability-index-VYF5GNJ2.js} +1 -1
- package/dist/{tool-telemetry-ULIDUK3P.js → tool-telemetry-KBXSBDTK.js} +1 -1
- package/dist/tui/App.js +40 -38
- package/dist/{tui-data-NPTGKT37.js → tui-data-NLFMBIQI.js} +25 -23
- package/dist/{update-check-HFO4VHO4.js → update-check-3FHAWIG2.js} +7 -3
- package/dist/update-support-UVUSZG7R.js +355 -0
- 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-MXUQUG4M.js → worker-gate-3KUBAU32.js} +3 -3
- package/dist/{workflow-engine-EWCOLD47.js → workflow-engine-YITHXZR5.js} +2 -2
- package/dist/{working-memory-PY4AG577.js → working-memory-NUVB5SFV.js} +1 -1
- package/dist/worktree-LL62PLQB.js +47 -0
- package/dist/{worktree-sweep-ZAG3V24E.js → worktree-sweep-WTK3MTKH.js} +7 -7
- package/package.json +3 -2
- package/release-notes.json +86 -76
- package/dist/branch-hygiene-R5NVTRAY.js +0 -138
- package/dist/chunk-6IRVGOUL.js +0 -30
- package/dist/chunk-HMP5VT6A.js +0 -118
- package/dist/chunk-PVYR4FCQ.js +0 -113
- package/dist/chunk-UFAXZ2PY.js +0 -138
- package/dist/chunk-Y25OJWOQ.js +0 -45
- package/dist/chunk-YGAAZN3E.js +0 -47
- package/dist/cto-delegation-gate-DXNF5HVW.js +0 -290
- package/dist/dispatch-ack-4S44HBWB.js +0 -15
- package/dist/dreaming-OMFUEUCQ.js +0 -44
- package/dist/orchestrator-DUUX7FQV.js +0 -45
- package/dist/setup-wizard-TOFEJPLF.js +0 -13
- package/dist/tasks-notify-SMLDFBWM.js +0 -50
- package/dist/worktree-GVF2I5FP.js +0 -31
- /package/dist/{chunk-FLNSJ2TC.js → chunk-GIBYNT6W.js} +0 -0
- /package/dist/{chunk-NQBRGXYR.js → chunk-JRM4TAGS.js} +0 -0
- /package/dist/{chunk-WHRTDN5J.js → chunk-MGGOSFCR.js} +0 -0
- /package/dist/{chunk-D3QASX2W.js → chunk-QIFYLIUF.js} +0 -0
- /package/dist/{chunk-OADURIIN.js → chunk-WTH4CSAP.js} +0 -0
- /package/dist/{core-memory-VO5ZIBKH.js → core-memory-GAC6EWOQ.js} +0 -0
- /package/dist/{entity-boost-DNI4A5I7.js → entity-boost-NT6UO2Z3.js} +0 -0
- /package/dist/{message-queue-client-Q5BW3O5W.js → message-queue-client-4EOQRUXW.js} +0 -0
- /package/dist/{oauth-server-ROQFOEMM.js → oauth-server-67YBDP32.js} +0 -0
- /package/dist/{webhook-pipe-FZYLO6RR.js → webhook-pipe-LEXMUQ5B.js} +0 -0
- /package/dist/{wiki-acl-JA5UCQZ4.js → wiki-acl-74BLWG6J.js} +0 -0
- /package/dist/{wiki-client-VNDOBK63.js → wiki-client-EAN7F5LV.js} +0 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import "../chunk-MLKGABMK.js";
|
|
3
|
+
|
|
4
|
+
// src/bin/reconcile-backlog.ts
|
|
5
|
+
import { existsSync, readFileSync } from "fs";
|
|
6
|
+
import path from "path";
|
|
7
|
+
import { homedir } from "os";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
|
|
10
|
+
// src/lib/backlog-reconcile.ts
|
|
11
|
+
import { execFileSync } from "child_process";
|
|
12
|
+
function defaultGitRunner(args, cwd) {
|
|
13
|
+
try {
|
|
14
|
+
const stdout = execFileSync("git", args, {
|
|
15
|
+
cwd,
|
|
16
|
+
encoding: "utf8",
|
|
17
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
18
|
+
timeout: 2e4,
|
|
19
|
+
maxBuffer: 32 * 1024 * 1024
|
|
20
|
+
});
|
|
21
|
+
return { stdout, ok: true, code: 0 };
|
|
22
|
+
} catch (err) {
|
|
23
|
+
const e = err;
|
|
24
|
+
const stdout = e.stdout ? e.stdout.toString() : "";
|
|
25
|
+
return { stdout, ok: false, code: typeof e.status === "number" ? e.status : 1 };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
var FIELD_SEP = "";
|
|
29
|
+
var DEFAULT_BRANCH_REFS = ["origin/main", "main", "origin/master", "master"];
|
|
30
|
+
function resolveReachability(runGit, repoPath, sha, defaultBranchRefs = DEFAULT_BRANCH_REFS) {
|
|
31
|
+
const tagRes = runGit(["tag", "--contains", sha], repoPath);
|
|
32
|
+
const tags = tagRes.stdout.split("\n").map((s) => s.trim()).filter(Boolean);
|
|
33
|
+
if (tags.length > 0) {
|
|
34
|
+
const versionTag = tags.find((t) => /v?\d+\.\d+/.test(t)) ?? tags[0];
|
|
35
|
+
return { reachable: true, tag: versionTag };
|
|
36
|
+
}
|
|
37
|
+
for (const ref of defaultBranchRefs) {
|
|
38
|
+
const anc = runGit(["merge-base", "--is-ancestor", sha, ref], repoPath);
|
|
39
|
+
if (anc.ok && anc.code === 0) return { reachable: true };
|
|
40
|
+
}
|
|
41
|
+
return { reachable: false };
|
|
42
|
+
}
|
|
43
|
+
function findIdMatches(runGit, repoPath, repoName, id, defaultBranchRefs = DEFAULT_BRANCH_REFS) {
|
|
44
|
+
const idShort = id.slice(0, 8).toLowerCase();
|
|
45
|
+
if (!/^[0-9a-f]{8}/.test(idShort)) return [];
|
|
46
|
+
const res = runGit(
|
|
47
|
+
["log", "--all", "--no-color", "-i", `--format=%H${FIELD_SEP}%s`, "--grep", idShort, "--grep", id],
|
|
48
|
+
repoPath
|
|
49
|
+
);
|
|
50
|
+
if (!res.ok || !res.stdout.trim()) return [];
|
|
51
|
+
const matches = [];
|
|
52
|
+
for (const line of res.stdout.split("\n")) {
|
|
53
|
+
if (!line.trim()) continue;
|
|
54
|
+
const sepIdx = line.indexOf(FIELD_SEP);
|
|
55
|
+
const sha = (sepIdx >= 0 ? line.slice(0, sepIdx) : line).trim();
|
|
56
|
+
const subject = sepIdx >= 0 ? line.slice(sepIdx + 1).trim() : "";
|
|
57
|
+
if (!/^[0-9a-f]{7,40}$/.test(sha)) continue;
|
|
58
|
+
const reach = resolveReachability(runGit, repoPath, sha, defaultBranchRefs);
|
|
59
|
+
matches.push({
|
|
60
|
+
repo: repoName,
|
|
61
|
+
commit: sha.slice(0, 10),
|
|
62
|
+
fullCommit: sha,
|
|
63
|
+
subject,
|
|
64
|
+
tag: reach.tag,
|
|
65
|
+
releaseReachable: reach.reachable
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return matches;
|
|
69
|
+
}
|
|
70
|
+
function gitGrepHit(runGit, repoPath, token) {
|
|
71
|
+
if (!token) return false;
|
|
72
|
+
const res = runGit(["grep", "-l", "-i", "-F", token, "HEAD"], repoPath);
|
|
73
|
+
return res.ok && res.stdout.trim().length > 0;
|
|
74
|
+
}
|
|
75
|
+
function pickKeyword(title) {
|
|
76
|
+
const stop = /* @__PURE__ */ new Set([
|
|
77
|
+
"the",
|
|
78
|
+
"and",
|
|
79
|
+
"for",
|
|
80
|
+
"with",
|
|
81
|
+
"that",
|
|
82
|
+
"this",
|
|
83
|
+
"from",
|
|
84
|
+
"into",
|
|
85
|
+
"when",
|
|
86
|
+
"should",
|
|
87
|
+
"support",
|
|
88
|
+
"feature",
|
|
89
|
+
"request",
|
|
90
|
+
"bug",
|
|
91
|
+
"report",
|
|
92
|
+
"please",
|
|
93
|
+
"would",
|
|
94
|
+
"could",
|
|
95
|
+
"make",
|
|
96
|
+
"able",
|
|
97
|
+
"user",
|
|
98
|
+
"users",
|
|
99
|
+
"system",
|
|
100
|
+
"using",
|
|
101
|
+
"based",
|
|
102
|
+
"which",
|
|
103
|
+
"there"
|
|
104
|
+
]);
|
|
105
|
+
const tokens = (title.toLowerCase().match(/[a-z][a-z0-9_-]{4,}/g) ?? []).filter((t) => !stop.has(t));
|
|
106
|
+
if (tokens.length === 0) return void 0;
|
|
107
|
+
return tokens.sort((a, b) => b.length - a.length)[0];
|
|
108
|
+
}
|
|
109
|
+
function classifyRecord(record, matches, keywordHit = false) {
|
|
110
|
+
const idShort = record.id.slice(0, 8);
|
|
111
|
+
const releaseReachable = matches.filter((m) => m.releaseReachable);
|
|
112
|
+
if (releaseReachable.length > 0) {
|
|
113
|
+
const ev = releaseReachable.map((m) => `${m.repo}@${m.commit}${m.tag ? ` (tag ${m.tag})` : " (default branch)"}`).join(", ");
|
|
114
|
+
return {
|
|
115
|
+
record,
|
|
116
|
+
verdict: "SHIPPED",
|
|
117
|
+
evidence: releaseReachable,
|
|
118
|
+
rawMatches: matches,
|
|
119
|
+
reason: `id ${idShort} found in ${releaseReachable.length} release-reachable commit(s): ${ev}`
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
if (matches.length > 0) {
|
|
123
|
+
const where = matches.map((m) => `${m.repo}@${m.commit}`).join(", ");
|
|
124
|
+
return {
|
|
125
|
+
record,
|
|
126
|
+
verdict: "UNKNOWN",
|
|
127
|
+
evidence: [],
|
|
128
|
+
rawMatches: matches,
|
|
129
|
+
reason: `id ${idShort} found only on unmerged branch(es) \u2014 not reachable from a release tag or the default branch; refusing to auto-close (${where})`
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
if (keywordHit) {
|
|
133
|
+
return {
|
|
134
|
+
record,
|
|
135
|
+
verdict: "UNKNOWN",
|
|
136
|
+
evidence: [],
|
|
137
|
+
rawMatches: [],
|
|
138
|
+
reason: `no commit references id ${idShort}, but a title keyword appears in code \u2014 manual verification required (keyword-only signal never auto-closes)`
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
record,
|
|
143
|
+
verdict: "STILL_OPEN",
|
|
144
|
+
evidence: [],
|
|
145
|
+
rawMatches: [],
|
|
146
|
+
reason: `no commit references id ${idShort}`
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function pickShippedVersion(evidence, fallback) {
|
|
150
|
+
const tag = evidence.map((m) => m.tag).find((t) => Boolean(t));
|
|
151
|
+
if (tag) return tag.replace(/^v/, "");
|
|
152
|
+
return fallback;
|
|
153
|
+
}
|
|
154
|
+
function buildEvidenceText(evidence) {
|
|
155
|
+
return "Auto-reconciled: already shipped in code. Evidence: " + evidence.map((m) => `${m.repo}@${m.commit}${m.tag ? ` (release ${m.tag})` : " (default branch)"} \u2014 ${m.subject}`).join("; ");
|
|
156
|
+
}
|
|
157
|
+
async function reconcile(opts, deps) {
|
|
158
|
+
const all = await deps.fetchOpenRecords();
|
|
159
|
+
const records = typeof opts.limit === "number" && opts.limit >= 0 ? all.slice(0, opts.limit) : all;
|
|
160
|
+
const results = [];
|
|
161
|
+
let closed = 0;
|
|
162
|
+
let closeFailed = 0;
|
|
163
|
+
for (const record of records) {
|
|
164
|
+
const { matches, keywordHit } = await deps.matchRecord(record);
|
|
165
|
+
const cls = classifyRecord(record, matches, keywordHit);
|
|
166
|
+
let applied = null;
|
|
167
|
+
if (opts.apply && cls.verdict === "SHIPPED" && cls.evidence.length > 0) {
|
|
168
|
+
const version = pickShippedVersion(cls.evidence, opts.shippedVersion);
|
|
169
|
+
const evidenceText = buildEvidenceText(cls.evidence);
|
|
170
|
+
const r = await deps.applyShipped(record, cls.evidence, version, evidenceText);
|
|
171
|
+
applied = { ...r, version };
|
|
172
|
+
if (r.ok) closed++;
|
|
173
|
+
else closeFailed++;
|
|
174
|
+
}
|
|
175
|
+
results.push({ ...cls, applied });
|
|
176
|
+
}
|
|
177
|
+
const summary = {
|
|
178
|
+
total: results.length,
|
|
179
|
+
shipped: results.filter((r) => r.verdict === "SHIPPED").length,
|
|
180
|
+
stillOpen: results.filter((r) => r.verdict === "STILL_OPEN").length,
|
|
181
|
+
unknown: results.filter((r) => r.verdict === "UNKNOWN").length
|
|
182
|
+
};
|
|
183
|
+
return { apply: opts.apply, results, summary, closed, closeFailed };
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// src/bin/reconcile-backlog.ts
|
|
187
|
+
var STACK_REPOS = [
|
|
188
|
+
"exe-os",
|
|
189
|
+
"exe-crm",
|
|
190
|
+
"exe-wiki",
|
|
191
|
+
"exe-gateway",
|
|
192
|
+
"exe-monitor",
|
|
193
|
+
"exe-chat",
|
|
194
|
+
"exe-erp",
|
|
195
|
+
"exe-build",
|
|
196
|
+
"exe-auth",
|
|
197
|
+
"exe-db",
|
|
198
|
+
"exe-create"
|
|
199
|
+
];
|
|
200
|
+
var REPO_ALIASES = {
|
|
201
|
+
"exe-crm": ["exe-crm", "openclaw"],
|
|
202
|
+
"exe-wiki": ["exe-wiki", "ink"]
|
|
203
|
+
};
|
|
204
|
+
function exeOsRoot() {
|
|
205
|
+
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
206
|
+
for (let i = 0; i < 8; i++) {
|
|
207
|
+
if (existsSync(path.join(dir, "package.json"))) {
|
|
208
|
+
try {
|
|
209
|
+
const pkg = JSON.parse(readFileSync(path.join(dir, "package.json"), "utf8"));
|
|
210
|
+
if (pkg.name?.includes("exe-os")) return dir;
|
|
211
|
+
} catch {
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const parent = path.dirname(dir);
|
|
215
|
+
if (parent === dir) break;
|
|
216
|
+
dir = parent;
|
|
217
|
+
}
|
|
218
|
+
return path.join(homedir(), "exe-os");
|
|
219
|
+
}
|
|
220
|
+
function isGitRepo(dir) {
|
|
221
|
+
return existsSync(path.join(dir, ".git"));
|
|
222
|
+
}
|
|
223
|
+
function resolveStackRepos(filter) {
|
|
224
|
+
const root = exeOsRoot();
|
|
225
|
+
const bases = Array.from(/* @__PURE__ */ new Set([path.dirname(root), homedir()]));
|
|
226
|
+
const wanted = filter && filter.length > 0 ? filter : STACK_REPOS;
|
|
227
|
+
const out = [];
|
|
228
|
+
const seen = /* @__PURE__ */ new Set();
|
|
229
|
+
for (const name of wanted) {
|
|
230
|
+
const candidates = REPO_ALIASES[name] ?? [name];
|
|
231
|
+
for (const base of bases) {
|
|
232
|
+
let found;
|
|
233
|
+
for (const cand of candidates) {
|
|
234
|
+
const p = path.join(base, cand);
|
|
235
|
+
if (existsSync(p) && isGitRepo(p)) {
|
|
236
|
+
found = p;
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
if (found && !seen.has(name)) {
|
|
241
|
+
seen.add(name);
|
|
242
|
+
out.push({ name, path: found });
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return out;
|
|
248
|
+
}
|
|
249
|
+
async function buildSupportHandlers() {
|
|
250
|
+
const tools = /* @__PURE__ */ new Map();
|
|
251
|
+
const fake = {
|
|
252
|
+
registerTool(name, _config, handler) {
|
|
253
|
+
tools.set(name, handler);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
const { registerListFeatureRequests, registerListBugReports } = await import("../support-inbox-4L62P4EP.js");
|
|
257
|
+
const { registerUpdateFeatureRequest, registerUpdateBugReport } = await import("../update-support-UVUSZG7R.js");
|
|
258
|
+
registerListFeatureRequests(fake);
|
|
259
|
+
registerListBugReports(fake);
|
|
260
|
+
registerUpdateFeatureRequest(fake);
|
|
261
|
+
registerUpdateBugReport(fake);
|
|
262
|
+
return tools;
|
|
263
|
+
}
|
|
264
|
+
function textOf(result) {
|
|
265
|
+
const r = result;
|
|
266
|
+
return r?.content?.[0]?.text ?? "";
|
|
267
|
+
}
|
|
268
|
+
function extractRecords(text, kind) {
|
|
269
|
+
let data;
|
|
270
|
+
try {
|
|
271
|
+
data = JSON.parse(text);
|
|
272
|
+
} catch {
|
|
273
|
+
return [];
|
|
274
|
+
}
|
|
275
|
+
const obj = data ?? {};
|
|
276
|
+
const arr = Array.isArray(data) ? data : obj.items ?? obj.feature_requests ?? obj.bug_reports ?? obj.results ?? obj.data ?? [];
|
|
277
|
+
if (!Array.isArray(arr)) return [];
|
|
278
|
+
return arr.filter((x) => Boolean(x) && typeof x === "object" && "id" in x).map((x) => ({
|
|
279
|
+
id: String(x.id),
|
|
280
|
+
kind,
|
|
281
|
+
title: String(x.title ?? x.summary ?? x.id),
|
|
282
|
+
status: x.status ? String(x.status) : void 0
|
|
283
|
+
}));
|
|
284
|
+
}
|
|
285
|
+
function readPackageVersion() {
|
|
286
|
+
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
287
|
+
for (let i = 0; i < 8; i++) {
|
|
288
|
+
try {
|
|
289
|
+
const parsed = JSON.parse(readFileSync(path.join(dir, "package.json"), "utf8"));
|
|
290
|
+
if (parsed.version) return parsed.version;
|
|
291
|
+
} catch {
|
|
292
|
+
}
|
|
293
|
+
const parent = path.dirname(dir);
|
|
294
|
+
if (parent === dir) break;
|
|
295
|
+
dir = parent;
|
|
296
|
+
}
|
|
297
|
+
return "unknown";
|
|
298
|
+
}
|
|
299
|
+
function parseArgs(argv) {
|
|
300
|
+
const flags = { apply: false, json: false, help: false, repos: [] };
|
|
301
|
+
for (let i = 0; i < argv.length; i++) {
|
|
302
|
+
const a = argv[i];
|
|
303
|
+
if (a === "--apply") flags.apply = true;
|
|
304
|
+
else if (a === "--dry-run") flags.apply = false;
|
|
305
|
+
else if (a === "--json") flags.json = true;
|
|
306
|
+
else if (a === "--help" || a === "-h") flags.help = true;
|
|
307
|
+
else if (a === "--limit") {
|
|
308
|
+
const n = parseInt(argv[++i] ?? "", 10);
|
|
309
|
+
if (!Number.isNaN(n)) flags.limit = n;
|
|
310
|
+
} else if (a?.startsWith("--limit=")) {
|
|
311
|
+
const n = parseInt(a.slice(8), 10);
|
|
312
|
+
if (!Number.isNaN(n)) flags.limit = n;
|
|
313
|
+
} else if (a === "--repo") {
|
|
314
|
+
const v = argv[++i];
|
|
315
|
+
if (v) flags.repos.push(...v.split(",").map((s) => s.trim()).filter(Boolean));
|
|
316
|
+
} else if (a?.startsWith("--repo=")) {
|
|
317
|
+
flags.repos.push(...a.slice(7).split(",").map((s) => s.trim()).filter(Boolean));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return flags;
|
|
321
|
+
}
|
|
322
|
+
var ICON = { SHIPPED: "\u{1F7E2}", STILL_OPEN: "\u{1F535}", UNKNOWN: "\u{1F7E0}" };
|
|
323
|
+
function renderRow(row) {
|
|
324
|
+
const icon = ICON[row.verdict] ?? "\u2754";
|
|
325
|
+
const head = `${icon} ${row.verdict.padEnd(10)} ${row.record.kind.padEnd(7)} ${row.record.id.slice(0, 8)} \u2014 ${row.record.title}`;
|
|
326
|
+
const lines = [head, ` ${row.reason}`];
|
|
327
|
+
if (row.applied) {
|
|
328
|
+
lines.push(` ${row.applied.ok ? "\u2705 closed" : "\u274C close failed"} (v${row.applied.version}): ${row.applied.detail.split("\n")[0]}`);
|
|
329
|
+
}
|
|
330
|
+
return lines.join("\n");
|
|
331
|
+
}
|
|
332
|
+
function renderReport(report) {
|
|
333
|
+
const lines = ["", "exe-os reconcile-backlog", ""];
|
|
334
|
+
lines.push(report.apply ? "Mode: APPLY \u2014 SHIPPED records with concrete commit evidence will be closed." : "Mode: report-only (dry-run) \u2014 nothing will be closed. Use --apply to close SHIPPED records.");
|
|
335
|
+
lines.push("");
|
|
336
|
+
for (const row of report.results) lines.push(renderRow(row), "");
|
|
337
|
+
const s = report.summary;
|
|
338
|
+
lines.push(`Summary: ${s.total} open record(s) \u2014 \u{1F7E2} ${s.shipped} shipped, \u{1F7E0} ${s.unknown} unknown, \u{1F535} ${s.stillOpen} still-open`);
|
|
339
|
+
if (report.apply) lines.push(`Closed: ${report.closed} Close-failed: ${report.closeFailed}`);
|
|
340
|
+
else if (s.shipped > 0) lines.push(`Re-run with --apply to close the ${s.shipped} shipped record(s).`);
|
|
341
|
+
lines.push("");
|
|
342
|
+
return lines.join("\n");
|
|
343
|
+
}
|
|
344
|
+
function printHelp() {
|
|
345
|
+
console.log(`
|
|
346
|
+
exe-os reconcile-backlog \u2014 detect support records already shipped in code
|
|
347
|
+
|
|
348
|
+
Usage:
|
|
349
|
+
exe-os reconcile-backlog [--apply] [--dry-run] [--limit <n>] [--repo <name>] [--json]
|
|
350
|
+
|
|
351
|
+
Modes:
|
|
352
|
+
(default) Report-only. Classifies each OPEN feature/bug and closes nothing.
|
|
353
|
+
--apply Close SHIPPED records that have concrete, release-reachable commit
|
|
354
|
+
evidence, via the existing shipped transition. Never closes
|
|
355
|
+
UNKNOWN / STILL_OPEN / keyword-only matches.
|
|
356
|
+
|
|
357
|
+
Options:
|
|
358
|
+
--dry-run Explicit report-only (the default).
|
|
359
|
+
--limit <n> Process at most n records.
|
|
360
|
+
--repo <name> Restrict the git scan to one or more stack repos (comma-separated
|
|
361
|
+
or repeat the flag). Default: all locally-present stack repos.
|
|
362
|
+
--json Machine-readable output.
|
|
363
|
+
-h, --help Show this help.
|
|
364
|
+
|
|
365
|
+
Verdicts:
|
|
366
|
+
\u{1F7E2} SHIPPED id in a commit reachable from a release tag or the default branch
|
|
367
|
+
\u{1F7E0} UNKNOWN id only on an unmerged branch (guard: never closed), or a title
|
|
368
|
+
keyword hit (manual review; never closed)
|
|
369
|
+
\u{1F535} STILL_OPEN no evidence found
|
|
370
|
+
|
|
371
|
+
Requires an AskExe support admin token (ASKEXE_SUPPORT_ADMIN_TOKEN) to list the inbox.
|
|
372
|
+
`);
|
|
373
|
+
}
|
|
374
|
+
function buildDeps(handlers, repos, runGit) {
|
|
375
|
+
const listFeatures = handlers.get("list_feature_requests");
|
|
376
|
+
const listBugs = handlers.get("list_bug_reports");
|
|
377
|
+
const updateFeature = handlers.get("update_feature_request");
|
|
378
|
+
const updateBug = handlers.get("update_bug_report");
|
|
379
|
+
return {
|
|
380
|
+
async fetchOpenRecords() {
|
|
381
|
+
const records = [];
|
|
382
|
+
if (listFeatures) {
|
|
383
|
+
const out = await listFeatures({ status: "open", limit: 100 }, {});
|
|
384
|
+
records.push(...extractRecords(textOf(out), "feature"));
|
|
385
|
+
}
|
|
386
|
+
if (listBugs) {
|
|
387
|
+
const out = await listBugs({ status: "open", limit: 100 }, {});
|
|
388
|
+
records.push(...extractRecords(textOf(out), "bug"));
|
|
389
|
+
}
|
|
390
|
+
return records;
|
|
391
|
+
},
|
|
392
|
+
async matchRecord(record) {
|
|
393
|
+
const matches = [];
|
|
394
|
+
for (const repo of repos) {
|
|
395
|
+
matches.push(...findIdMatches(runGit, repo.path, repo.name, record.id));
|
|
396
|
+
}
|
|
397
|
+
let keywordHit = false;
|
|
398
|
+
if (matches.length === 0) {
|
|
399
|
+
const token = pickKeyword(record.title);
|
|
400
|
+
if (token) keywordHit = repos.some((r) => gitGrepHit(runGit, r.path, token));
|
|
401
|
+
}
|
|
402
|
+
return { matches, keywordHit };
|
|
403
|
+
},
|
|
404
|
+
async applyShipped(record, _evidence, version, evidenceText) {
|
|
405
|
+
const handler = record.kind === "feature" ? updateFeature : updateBug;
|
|
406
|
+
if (!handler) return { ok: false, detail: "update handler unavailable" };
|
|
407
|
+
const args = record.kind === "feature" ? { id: record.id, status: "shipped", shipped_version: version, notes: evidenceText, send_upstream: true } : { id: record.id, status: "closed", fix_version: version, notes: evidenceText, send_upstream: true };
|
|
408
|
+
try {
|
|
409
|
+
const out = await handler(args, {});
|
|
410
|
+
const r = out;
|
|
411
|
+
return { ok: !r?.isError, detail: textOf(out) || "updated" };
|
|
412
|
+
} catch (err) {
|
|
413
|
+
return { ok: false, detail: err instanceof Error ? err.message : String(err) };
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
async function main(argv = process.argv.slice(2)) {
|
|
419
|
+
const flags = parseArgs(argv);
|
|
420
|
+
if (flags.help) {
|
|
421
|
+
printHelp();
|
|
422
|
+
return 0;
|
|
423
|
+
}
|
|
424
|
+
const repos = resolveStackRepos(flags.repos);
|
|
425
|
+
if (repos.length === 0) {
|
|
426
|
+
console.error("reconcile-backlog: no stack repos found locally to scan. Expected siblings like ~/exe-os, ~/exe-crm.");
|
|
427
|
+
return 1;
|
|
428
|
+
}
|
|
429
|
+
let handlers;
|
|
430
|
+
try {
|
|
431
|
+
handlers = await buildSupportHandlers();
|
|
432
|
+
} catch (err) {
|
|
433
|
+
console.error(`reconcile-backlog: failed to load support tools: ${err instanceof Error ? err.message : String(err)}`);
|
|
434
|
+
return 1;
|
|
435
|
+
}
|
|
436
|
+
const deps = buildDeps(handlers, repos, defaultGitRunner);
|
|
437
|
+
let report;
|
|
438
|
+
try {
|
|
439
|
+
report = await reconcile(
|
|
440
|
+
{ apply: flags.apply, limit: flags.limit, shippedVersion: readPackageVersion() },
|
|
441
|
+
deps
|
|
442
|
+
);
|
|
443
|
+
} catch (err) {
|
|
444
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
445
|
+
if (/admin token/i.test(msg)) {
|
|
446
|
+
console.error(
|
|
447
|
+
"reconcile-backlog: AskExe support admin token not configured. This tool is AskExe-internal \u2014 set ASKEXE_SUPPORT_ADMIN_TOKEN (or config.support.adminToken) to list the inbox."
|
|
448
|
+
);
|
|
449
|
+
return 1;
|
|
450
|
+
}
|
|
451
|
+
console.error(`reconcile-backlog: ${msg}`);
|
|
452
|
+
return 1;
|
|
453
|
+
}
|
|
454
|
+
if (flags.json) {
|
|
455
|
+
console.log(JSON.stringify(report, null, 2));
|
|
456
|
+
} else {
|
|
457
|
+
console.log(renderReport(report));
|
|
458
|
+
if (repos.length > 0 && !flags.json) {
|
|
459
|
+
console.error(`Scanned repos: ${repos.map((r) => r.name).join(", ")}`);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
return report.apply && report.closeFailed > 0 ? 1 : 0;
|
|
463
|
+
}
|
|
464
|
+
var isDirectRun = (() => {
|
|
465
|
+
try {
|
|
466
|
+
return process.argv[1] === fileURLToPath(import.meta.url);
|
|
467
|
+
} catch {
|
|
468
|
+
return false;
|
|
469
|
+
}
|
|
470
|
+
})();
|
|
471
|
+
if (isDirectRun && !process.env.VITEST) {
|
|
472
|
+
main().then((code) => {
|
|
473
|
+
process.exitCode = code;
|
|
474
|
+
}).catch((err) => {
|
|
475
|
+
console.error(err instanceof Error ? err.stack ?? err.message : String(err));
|
|
476
|
+
process.exitCode = 1;
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
export {
|
|
480
|
+
extractRecords,
|
|
481
|
+
main,
|
|
482
|
+
parseArgs,
|
|
483
|
+
resolveStackRepos
|
|
484
|
+
};
|
package/dist/bin/scan-tasks.js
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
queryTaskRows
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-UP75Z5X7.js";
|
|
5
|
+
import "../chunk-L2R3LN2P.js";
|
|
6
|
+
import "../chunk-I26FWCSP.js";
|
|
7
|
+
import "../chunk-EV46QTD3.js";
|
|
8
|
+
import "../chunk-E23LNUWJ.js";
|
|
8
9
|
import "../chunk-4JERP7NT.js";
|
|
9
10
|
import "../chunk-EIKATSE4.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-KGWRTRKC.js";
|
|
12
|
+
import "../chunk-AD2VCHSS.js";
|
|
13
|
+
import "../chunk-WOYADZF5.js";
|
|
14
|
+
import "../chunk-SKGMF2SO.js";
|
|
15
|
+
import "../chunk-2WAVZ5UJ.js";
|
|
16
|
+
import "../chunk-HA5R6USD.js";
|
|
17
|
+
import "../chunk-AM7S2TY6.js";
|
|
18
|
+
import "../chunk-JGIPOUIK.js";
|
|
19
|
+
import "../chunk-GWDSB25T.js";
|
|
19
20
|
import {
|
|
20
21
|
getSessionRuntime
|
|
21
22
|
} from "../chunk-CVYC6DUW.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-JLZ4RYSD.js";
|
|
24
|
+
import "../chunk-H7I47RS5.js";
|
|
24
25
|
import "../chunk-OPU3NYOO.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-G4RGKBCA.js";
|
|
26
27
|
import "../chunk-AFNRE2RV.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-X2Q5NLUL.js";
|
|
28
29
|
import "../chunk-NLEW62VC.js";
|
|
29
30
|
import "../chunk-HYZV25LY.js";
|
|
30
31
|
import "../chunk-GJV3WDWM.js";
|
|
31
32
|
import "../chunk-MP2AFCGL.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-AOHXREB7.js";
|
|
33
34
|
import "../chunk-2I23RPSI.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-OLMQ4UOF.js";
|
|
35
36
|
import "../chunk-PNQDP3OA.js";
|
|
36
37
|
import "../chunk-H73TUI4Y.js";
|
|
37
38
|
import "../chunk-7HLWBYH7.js";
|
|
38
39
|
import "../chunk-FXU7JOXK.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-NGP6LSV2.js";
|
|
41
|
+
import "../chunk-PQIDGXSG.js";
|
|
42
|
+
import "../chunk-K7KFGDWF.js";
|
|
43
|
+
import "../chunk-WZHZCDDO.js";
|
|
44
|
+
import "../chunk-BYTDMAGB.js";
|
|
43
45
|
import {
|
|
44
46
|
isMainModule
|
|
45
47
|
} from "../chunk-6Y4B3QF6.js";
|
|
@@ -86,7 +88,7 @@ function checkMcpHealth() {
|
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
async function scanFromDb(agentId, tmuxSession, projectName) {
|
|
89
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
91
|
+
const { fastDbInit } = await import("../fast-db-init-4CWHSOOR.js");
|
|
90
92
|
try {
|
|
91
93
|
await fastDbInit();
|
|
92
94
|
} catch (err) {
|
package/dist/bin/setup.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runSetupWizard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-H6BV5TKD.js";
|
|
5
|
+
import "../chunk-O5V57XYE.js";
|
|
6
|
+
import "../chunk-QWVXN224.js";
|
|
7
|
+
import "../chunk-NGP6LSV2.js";
|
|
8
|
+
import "../chunk-WZHZCDDO.js";
|
|
9
|
+
import "../chunk-BYTDMAGB.js";
|
|
9
10
|
import "../chunk-MLKGABMK.js";
|
|
10
11
|
|
|
11
12
|
// src/bin/setup.ts
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
getReadyShardClient,
|
|
5
5
|
getShardsDir,
|
|
6
6
|
initShardManager
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-F5O7V7UK.js";
|
|
8
8
|
import {
|
|
9
9
|
disposeStore,
|
|
10
10
|
initStore
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-VSRPS3J7.js";
|
|
12
12
|
import "../chunk-CHCA3ZM2.js";
|
|
13
13
|
import "../chunk-OTVEIJUQ.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-6XWTQUO4.js";
|
|
15
|
+
import "../chunk-4QCFFW2H.js";
|
|
16
16
|
import "../chunk-MP2AFCGL.js";
|
|
17
17
|
import {
|
|
18
18
|
getClient
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-AOHXREB7.js";
|
|
20
20
|
import "../chunk-2I23RPSI.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-OLMQ4UOF.js";
|
|
22
22
|
import "../chunk-PNQDP3OA.js";
|
|
23
23
|
import "../chunk-H73TUI4Y.js";
|
|
24
24
|
import "../chunk-7HLWBYH7.js";
|
|
25
25
|
import "../chunk-FXU7JOXK.js";
|
|
26
26
|
import {
|
|
27
27
|
getMasterKey
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-QWVXN224.js";
|
|
29
|
+
import "../chunk-WZHZCDDO.js";
|
|
30
|
+
import "../chunk-BYTDMAGB.js";
|
|
31
31
|
import "../chunk-MLKGABMK.js";
|
|
32
32
|
|
|
33
33
|
// src/bin/shard-migrate.ts
|