@askexenow/exe-os 0.9.400 → 0.9.401
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/.dist-verified.json +3 -3
- package/dist/{active-agent-JRLTCGVP.js → active-agent-3FVEAPPT.js} +4 -4
- package/dist/{active-agent-COSDFDOA.js → active-agent-TZKOM7HN.js} +4 -4
- package/dist/{agent-defs-generator-IQXS2XAQ.js → agent-defs-generator-BZMIVL5B.js} +3 -3
- package/dist/{agentic-ontology-RDAEBWBG.js → agentic-ontology-6FF6O2DE.js} +1 -1
- package/dist/{artifact-backup-JLYSQRNJ.js → artifact-backup-AICTE3YO.js} +3 -3
- package/dist/{backfill-metadata-INUCVGJP.js → backfill-metadata-EVY37KID.js} +7 -7
- package/dist/{backup-verify-PUJ2CEO5.js → backup-verify-XZ6PDZLI.js} +23 -1
- package/dist/{behavior-injection-AWJZHIUK.js → behavior-injection-LGVKVC22.js} +10 -10
- package/dist/{behavior-promotion-ETSNUSZF.js → behavior-promotion-REITTBUM.js} +9 -9
- package/dist/{behaviors-IVDHEG66.js → behaviors-WQVKDSJ2.js} +8 -8
- package/dist/bin/agentic-ontology-backfill.js +8 -8
- package/dist/bin/agentic-reflection-backfill.js +9 -9
- package/dist/bin/agentic-semantic-label.js +8 -8
- package/dist/bin/backfill-conversations.js +7 -7
- package/dist/bin/backfill-responses.js +7 -7
- package/dist/bin/backfill-vectors.js +7 -7
- package/dist/bin/bulk-sync-postgres.js +16 -16
- package/dist/bin/cc-doctor.js +8 -8
- package/dist/bin/cleanup-stale-review-tasks.js +15 -15
- package/dist/bin/cli.js +24 -24
- package/dist/bin/deferred-daemon-restart.js +93 -93
- package/dist/bin/exe-agent-config.js +3 -3
- package/dist/bin/exe-agent.js +8 -8
- package/dist/bin/exe-assign.js +8 -8
- package/dist/bin/exe-boot.js +35 -35
- package/dist/bin/exe-call.js +8 -8
- package/dist/bin/exe-cloud.js +17 -17
- package/dist/bin/exe-config-dump.js +3 -3
- package/dist/bin/exe-dispatch.js +16 -16
- package/dist/bin/exe-doctor.js +5 -5
- package/dist/bin/exe-export-behaviors.js +12 -12
- package/dist/bin/exe-forget.js +10 -10
- package/dist/bin/exe-gateway.js +9 -9
- package/dist/bin/exe-grant.js +6 -6
- package/dist/bin/exe-healthcheck.js +8 -8
- package/dist/bin/exe-heartbeat.js +21 -21
- package/dist/bin/exe-kill.js +20 -20
- package/dist/bin/exe-launch-agent.js +28 -28
- package/dist/bin/exe-mcp.js +5 -5
- package/dist/bin/exe-memory-reads.js +7 -7
- package/dist/bin/exe-new-employee.js +10 -10
- package/dist/bin/exe-os-mcp-proxy.js +5 -5
- package/dist/bin/exe-pending-messages.js +16 -16
- package/dist/bin/exe-pending-notifications.js +15 -15
- package/dist/bin/exe-pending-reviews.js +16 -16
- package/dist/bin/exe-rename.js +6 -6
- package/dist/bin/exe-review.js +19 -19
- package/dist/bin/exe-search.js +9 -9
- package/dist/bin/exe-session-cleanup.js +20 -20
- package/dist/bin/exe-settings.js +16 -16
- package/dist/bin/exe-start-codex.js +18 -18
- package/dist/bin/exe-start-opencode.js +16 -16
- package/dist/bin/exe-status.js +17 -17
- package/dist/bin/exe-support.js +3 -3
- package/dist/bin/exe-team.js +5 -5
- package/dist/bin/git-sweep.js +16 -16
- package/dist/bin/graph-backfill.js +8 -8
- package/dist/bin/graph-export.js +8 -8
- package/dist/bin/hooks-cli.js +1 -1
- package/dist/bin/import-history.js +11 -11
- package/dist/bin/install.js +95 -95
- package/dist/bin/intercom-check.js +5 -5
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +5 -5
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/reconcile-backlog.js +2 -2
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/repair-document-chunks.js +7 -7
- package/dist/bin/scan-tasks.js +16 -16
- package/dist/bin/setup.js +2 -2
- package/dist/bin/shard-migrate.js +8 -8
- package/dist/bin/stack-update.js +15 -5
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-6JYN5WKI.js → boot-generation-FUMLDSED.js} +4 -4
- package/dist/{boot-review-sections-YJIWBD3I.js → boot-review-sections-XKZKVVTD.js} +14 -14
- package/dist/{bug-landed-reconciler-BMFYNM3C.js → bug-landed-reconciler-ZRMGVFRY.js} +6 -6
- package/dist/build-manifest.json +880 -880
- package/dist/{capability-cards-IPJDK5TB.js → capability-cards-HLO4TWSY.js} +3 -3
- package/dist/{capacity-monitor-HP25R7Q7.js → capacity-monitor-5QCHYFOA.js} +16 -16
- package/dist/{catchup-brief-FCWGYAQ6.js → catchup-brief-FFNWUTUW.js} +21 -21
- package/dist/{chunk-3BL3SJTP.js → chunk-2LQE52MI.js} +1 -1
- package/dist/{chunk-7KYL2RF4.js → chunk-3AZN5V24.js} +1 -1
- package/dist/{chunk-TJMYWOLH.js → chunk-4MUU33NJ.js} +2 -2
- package/dist/{chunk-T3CVFB3J.js → chunk-4OZXJX3M.js} +4 -4
- package/dist/{chunk-JGW4SMZX.js → chunk-4VT6HZV6.js} +1 -1
- package/dist/{chunk-OXEL5YS7.js → chunk-4WKMKLQZ.js} +52 -22
- package/dist/{chunk-OSI5BWST.js → chunk-4WY6BKDT.js} +2 -2
- package/dist/{chunk-O2HIMMKW.js → chunk-4XRQEQNK.js} +1 -1
- package/dist/{chunk-DXFGK4CO.js → chunk-55LSHCXP.js} +1 -1
- package/dist/{chunk-LPUIUJPF.js → chunk-5INWFQCO.js} +1 -1
- package/dist/{chunk-H5H2ECWE.js → chunk-5KFKW57A.js} +1 -1
- package/dist/{chunk-QXZJ2JWA.js → chunk-65VSE3A4.js} +1 -1
- package/dist/{chunk-K46WKWBX.js → chunk-6MRXSQIY.js} +5 -5
- package/dist/{chunk-JPBTKOWE.js → chunk-6QGA7QZF.js} +6 -6
- package/dist/{chunk-ZP2EYJ2G.js → chunk-7IZL2RMP.js} +4 -4
- package/dist/{chunk-DNJBY2OP.js → chunk-A2HLPB6M.js} +1 -1
- package/dist/{chunk-FHBFNDIR.js → chunk-ABYV3K3Y.js} +10 -10
- package/dist/{chunk-PUQKRKQQ.js → chunk-AMRJS3UF.js} +1 -1
- package/dist/{chunk-QWROXB2K.js → chunk-ATI6PPTU.js} +1 -1
- package/dist/{chunk-LJGWR76V.js → chunk-B2U5UPDC.js} +3 -3
- package/dist/{chunk-BTQVKT7H.js → chunk-BPMY52GP.js} +3 -3
- package/dist/{chunk-HOZM5RL2.js → chunk-BPRV4W4F.js} +3 -3
- package/dist/{chunk-JQVM4YIU.js → chunk-C57T744G.js} +1 -1
- package/dist/{chunk-OTY62DK2.js → chunk-CBOD7BPX.js} +1 -1
- package/dist/{chunk-JOMPRQPW.js → chunk-CMXGHLDK.js} +1 -1
- package/dist/{chunk-E5KBHWDR.js → chunk-D37B4WEF.js} +1 -1
- package/dist/{chunk-CPYHFFGE.js → chunk-D53HVC4X.js} +1 -1
- package/dist/{chunk-4ZI4FXNC.js → chunk-D6I4RTPF.js} +1 -1
- package/dist/{chunk-FJ7MZAF7.js → chunk-DCKRZG4B.js} +2 -2
- package/dist/{chunk-CAPWUB4N.js → chunk-DLU6DGSY.js} +2 -2
- package/dist/{chunk-2PSEY7AN.js → chunk-DOUHD6KC.js} +1 -1
- package/dist/{chunk-YGX3WNA7.js → chunk-E7XHIM62.js} +5 -5
- package/dist/{chunk-J6TWKRCB.js → chunk-ELP6YAUW.js} +1 -1
- package/dist/{chunk-ELBQHL5A.js → chunk-EMKSTLBG.js} +5 -5
- package/dist/{chunk-L52BKAE6.js → chunk-ESEYXNZM.js} +4 -4
- package/dist/{chunk-DJDGMGWE.js → chunk-EW7WZSI5.js} +1 -1
- package/dist/{chunk-ERFSLWFP.js → chunk-EXNHDTOQ.js} +1 -1
- package/dist/{chunk-ICOLPUT3.js → chunk-G3K3P5FR.js} +1 -1
- package/dist/{chunk-OMYOBYF3.js → chunk-G6LFTQI2.js} +7 -7
- package/dist/{chunk-J426E4AK.js → chunk-GFMFT5JJ.js} +1 -1
- package/dist/{chunk-K2MYR3EE.js → chunk-GFQVXPUN.js} +1 -1
- package/dist/{chunk-4ZAS2F3K.js → chunk-GI44KWJA.js} +2 -2
- package/dist/{chunk-35GQRTAN.js → chunk-GVZPT5GJ.js} +1 -1
- package/dist/{chunk-6OBBLH4A.js → chunk-HOK4C7TA.js} +5 -5
- package/dist/{chunk-DZX46OBH.js → chunk-HQKW27AO.js} +6 -6
- package/dist/{chunk-WHUFGDLB.js → chunk-HU2BKZ3Q.js} +1 -1
- package/dist/{chunk-4QWPMICI.js → chunk-I6HLTDQP.js} +4 -4
- package/dist/{chunk-KMNRXMPV.js → chunk-IALTVJEW.js} +1 -1
- package/dist/{chunk-32T3ZMGV.js → chunk-IZXQFETE.js} +1 -1
- package/dist/{chunk-MVRPI3LS.js → chunk-J6VWBA3X.js} +147 -147
- package/dist/{chunk-LX4ZOGCH.js → chunk-J6XRARYK.js} +2 -2
- package/dist/{chunk-KFIHF5RO.js → chunk-J77FASSK.js} +6 -6
- package/dist/{chunk-PKY4Y3TM.js → chunk-JBN3HVKP.js} +5 -5
- package/dist/{chunk-D3HDOPVZ.js → chunk-JJRYW36J.js} +3 -3
- package/dist/{chunk-V7XFNFXV.js → chunk-JRSY7B7A.js} +4 -4
- package/dist/{chunk-TODOUGTQ.js → chunk-KD7OHAZM.js} +1 -1
- package/dist/{chunk-JOAFBGO6.js → chunk-KETFSLRH.js} +138 -97
- package/dist/{chunk-6IXKFDMC.js → chunk-KWULIKOX.js} +2 -2
- package/dist/{chunk-6D4ZNDXU.js → chunk-KZB2B7RM.js} +11 -11
- package/dist/{chunk-4JILJXGZ.js → chunk-LHPRG2LZ.js} +2 -2
- package/dist/{chunk-AA3GPWSI.js → chunk-LLHTGV6Y.js} +1 -1
- package/dist/{chunk-GJ4XERZA.js → chunk-LPQOPT5B.js} +186 -12
- package/dist/{chunk-O6DR27UL.js → chunk-LSH2UDUX.js} +1 -1
- package/dist/{chunk-IW3USRIY.js → chunk-M4QI633W.js} +1 -1
- package/dist/{chunk-3BOP7BUQ.js → chunk-M5Z7VTOF.js} +3 -3
- package/dist/{chunk-BQEKC3G7.js → chunk-ME7BEI2S.js} +2 -2
- package/dist/{chunk-LOHJADBX.js → chunk-NIRXFG3I.js} +9 -9
- package/dist/{chunk-5P6R6GH2.js → chunk-NQCUSXX6.js} +3 -3
- package/dist/{chunk-WOLE4F3K.js → chunk-NSUK3QHD.js} +2 -2
- package/dist/{chunk-VPFTQZWB.js → chunk-NVPDTGR7.js} +16 -16
- package/dist/{chunk-WB7TP6IW.js → chunk-O5ORPJJX.js} +1 -1
- package/dist/{chunk-M2RVBCVL.js → chunk-OAOEW2SZ.js} +1 -1
- package/dist/{chunk-2LFEU7UU.js → chunk-ONTGO4YY.js} +3 -3
- package/dist/{chunk-O3GOBKWS.js → chunk-OX2UG7XA.js} +4 -4
- package/dist/{chunk-6IWF7EIO.js → chunk-P3JGDPQL.js} +3 -3
- package/dist/{chunk-YOB55CI7.js → chunk-PD7GVARG.js} +1 -1
- package/dist/{chunk-V2Z23CEF.js → chunk-PDKMK2GJ.js} +1 -1
- package/dist/{chunk-XMPRHRDY.js → chunk-PDOJBSJR.js} +1 -1
- package/dist/{chunk-EPYZUWOE.js → chunk-PMM3KU7N.js} +3 -3
- package/dist/{chunk-QVGZAKDF.js → chunk-PRLDZOQT.js} +1 -1
- package/dist/{chunk-26YPVXOH.js → chunk-Q4LLPKVS.js} +2 -2
- package/dist/{chunk-PJE4M5XR.js → chunk-QIWAMVMK.js} +3 -3
- package/dist/{chunk-RSUTLQMW.js → chunk-QVYAIPDE.js} +1 -1
- package/dist/{chunk-4Q7JAIEW.js → chunk-QYOWGMHR.js} +2 -2
- package/dist/{chunk-MF6AI66P.js → chunk-R4QSZSTJ.js} +2 -2
- package/dist/{chunk-ZGZ7QN3S.js → chunk-RDAFJUM4.js} +1 -1
- package/dist/{chunk-QQFJELUE.js → chunk-RKQ4YSSV.js} +3 -3
- package/dist/{chunk-RJAVO45X.js → chunk-RMP4VFC6.js} +2 -2
- package/dist/{chunk-2HJOCTAM.js → chunk-ROGZRDCU.js} +94 -21
- package/dist/{chunk-WMOHI53L.js → chunk-S3ZLLZAT.js} +3 -3
- package/dist/{chunk-ZUAHKWDR.js → chunk-SO6PSF3W.js} +1 -1
- package/dist/{chunk-QIOU2PXK.js → chunk-SWQRQB4M.js} +2 -2
- package/dist/{chunk-CBWF4NG2.js → chunk-UFDUCPZT.js} +1 -1
- package/dist/{chunk-KVFHRZZ4.js → chunk-ULHAUEUK.js} +4 -4
- package/dist/{chunk-THIFYSJY.js → chunk-UPMRTB66.js} +4 -4
- package/dist/{chunk-HY3E4VPO.js → chunk-UR3DB6QM.js} +1 -1
- package/dist/{chunk-BQQLAUN7.js → chunk-UX2IGPPW.js} +1 -1
- package/dist/{chunk-H6FPXML4.js → chunk-V5DXD4TU.js} +1 -1
- package/dist/{chunk-3YJMGYLP.js → chunk-VIPGA47U.js} +3 -3
- package/dist/{chunk-5CJ6CCGV.js → chunk-VRAMCDZD.js} +1 -1
- package/dist/{chunk-EKAGECRQ.js → chunk-WNQXCO3B.js} +3 -3
- package/dist/{chunk-SBITXZRY.js → chunk-X2OOOADC.js} +1 -1
- package/dist/{chunk-ZAP3MPE7.js → chunk-XDCQV6V7.js} +3 -3
- package/dist/{chunk-RN7FGCJF.js → chunk-XHBJSK2A.js} +4 -4
- package/dist/{chunk-T5JXV2SE.js → chunk-XJMJ3NH2.js} +1 -1
- package/dist/{chunk-SASZ4GG6.js → chunk-XROAVRQE.js} +1 -1
- package/dist/{chunk-IAGIZWBI.js → chunk-YGU3C5LK.js} +3 -3
- package/dist/{chunk-RK34OSZK.js → chunk-YSAYRUWJ.js} +2 -2
- package/dist/{chunk-VFKYNMS6.js → chunk-YUNPMSIB.js} +12 -12
- package/dist/{chunk-7XSBDGUP.js → chunk-YYZEDAKC.js} +4 -4
- package/dist/{chunk-HCXXUTG5.js → chunk-Z6VDOIW3.js} +3 -3
- package/dist/{chunk-CQNW5GB7.js → chunk-ZVCB6N52.js} +2 -2
- package/dist/{chunk-YQG2JDWX.js → chunk-ZVOCK5HZ.js} +1 -1
- package/dist/{chunk-37FY7ZOZ.js → chunk-ZY7N4RM3.js} +2 -2
- package/dist/{cleanup-graph-garbage-547CYZWA.js → cleanup-graph-garbage-JWUWOVRB.js} +8 -8
- package/dist/{cli-shutdown-QKHAH4O5.js → cli-shutdown-Z7NWWAK6.js} +1 -1
- package/dist/{cloud-sync-command-EXZMJPSK.js → cloud-sync-command-NIAFLQUR.js} +2 -2
- package/dist/{cloud-sync-db-init-G6NLO5YP.js → cloud-sync-db-init-CO5GSXUE.js} +1 -1
- package/dist/{cloud-sync-shutdown-TMI42NPZ.js → cloud-sync-shutdown-Z3ITGI4K.js} +3 -3
- package/dist/{co-activation-7EE63ZH4.js → co-activation-5MZDEUXV.js} +3 -3
- package/dist/{co-occurrence-5WZMOKZY.js → co-occurrence-IZSNRYOZ.js} +6 -6
- package/dist/{consent-passphrase-5OVKNZHU.js → consent-passphrase-AE4OIZZD.js} +2 -2
- package/dist/{conversation-entity-extractor-NKDNKGTR.js → conversation-entity-extractor-2F2JP7F7.js} +3 -3
- package/dist/{crdt-sync-ZV7UD2MD.js → crdt-sync-H74HCZSY.js} +4 -4
- package/dist/{crm-webhook-26O47D5D.js → crm-webhook-MVTGXAUH.js} +2 -2
- package/dist/{cto-delegation-gate-RFHAGYTR.js → cto-delegation-gate-5SHWIUP5.js} +14 -14
- package/dist/{daemon-orchestration-DRBFJEDK.js → daemon-orchestration-VV6VSSXY.js} +20 -20
- package/dist/{doc-graph-extractor-KKSXP3UR.js → doc-graph-extractor-QAXJPOLI.js} +6 -6
- package/dist/{documents-6XQTYHTC.js → documents-WNEMVVDN.js} +8 -8
- package/dist/{dreaming-EFUZQ5RJ.js → dreaming-WXVCP3OH.js} +19 -19
- package/dist/{employee-boot-brief-6C2MC247.js → employee-boot-brief-BCZGZDUQ.js} +23 -23
- package/dist/{entity-boost-5YQENFGZ.js → entity-boost-K6UENCYQ.js} +1 -1
- package/dist/{exe-drift-7YHLZOLV.js → exe-drift-Q5LW34CT.js} +4 -4
- package/dist/{exe-export-KLNIX5VR.js → exe-export-IM3NTK2U.js} +9 -9
- package/dist/{exe-import-2QVHV7HL.js → exe-import-D4F32735.js} +9 -9
- package/dist/{exe-key-2SLOCUX3.js → exe-key-X7ZLYMH4.js} +93 -93
- package/dist/{exe-org-NFP2DJJY.js → exe-org-QG7TQR5A.js} +32 -32
- package/dist/{exe-snapshot-FCABLS2M.js → exe-snapshot-2Z6UBI23.js} +22 -22
- package/dist/{fast-db-init-WHUKFVKZ.js → fast-db-init-TGDD5WNI.js} +1 -1
- package/dist/{founder-context-ZY2DYGW6.js → founder-context-X3EJQ2CX.js} +2 -2
- package/dist/{founder-monitor-envelope-5OKQH6E4.js → founder-monitor-envelope-WLOWBTTD.js} +4 -4
- package/dist/gateway/index.js +11 -11
- package/dist/{gateway-client-VZ73YGBI.js → gateway-client-L3CUTHEJ.js} +1 -1
- package/dist/{git-staleness-4IA6MCNW.js → git-staleness-6VJJL3Z7.js} +3 -3
- package/dist/{global-procedures-3ZRFJAKU.js → global-procedures-CK2S4OJ5.js} +5 -5
- package/dist/{graph-auto-extract-AZC7OL6F.js → graph-auto-extract-KFVRRZA2.js} +6 -6
- package/dist/{graph-query-VERIL4XL.js → graph-query-YGCK7MOA.js} +1 -1
- package/dist/{graph-rag-OPYXLYKM.js → graph-rag-MYJ3XXMV.js} +3 -3
- package/dist/{hook-integrity-DVK4L24S.js → hook-integrity-NUEQESD4.js} +1 -1
- package/dist/{hook-prefetch-F44EONHV.js → hook-prefetch-DTOR5TC5.js} +15 -15
- package/dist/hooks/bug-report-worker.js +19 -19
- package/dist/hooks/codex-stop-task-finalizer.js +21 -21
- package/dist/hooks/commit-complete.js +18 -18
- package/dist/hooks/error-recall.js +11 -11
- package/dist/hooks/exe-heartbeat-hook.js +5 -5
- package/dist/hooks/ingest-worker.js +7 -7
- package/dist/hooks/ingest.js +13 -13
- package/dist/hooks/instructions-loaded.js +7 -7
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +6 -6
- package/dist/hooks/post-compact.js +5 -5
- package/dist/hooks/post-tool-combined.js +13 -13
- package/dist/hooks/pre-compact.js +18 -18
- package/dist/hooks/pre-tool-use.js +2 -2
- package/dist/hooks/prompt-submit.js +36 -36
- package/dist/hooks/session-end.js +23 -23
- package/dist/hooks/session-start.js +18 -18
- package/dist/hooks/stop.js +21 -21
- package/dist/hooks/subagent-stop.js +20 -20
- package/dist/hooks/summary-worker.js +22 -22
- package/dist/index.js +26 -26
- package/dist/{installer-G2OFNPAC.js → installer-37SIWOV4.js} +7 -7
- package/dist/{installer-KBRK53CB.js → installer-KQJDEE7B.js} +7 -7
- package/dist/{installer-ZEJPYCID.js → installer-UMXNRHLJ.js} +7 -7
- package/dist/{intercom-queue-TOM4ZNU6.js → intercom-queue-CDDFKPEJ.js} +14 -14
- package/dist/lib/cloud-sync.js +16 -16
- package/dist/lib/consolidation.js +9 -9
- package/dist/lib/crypto.js +3 -3
- package/dist/lib/database.js +3 -3
- package/dist/lib/db-backup.js +3 -1
- package/dist/lib/db-write-worker.js +3 -3
- package/dist/lib/db.js +3 -3
- package/dist/lib/device-registry.js +1 -1
- package/dist/lib/employee-templates.js +6 -6
- package/dist/lib/employees.js +3 -3
- package/dist/lib/exe-daemon.js +85 -85
- package/dist/lib/hybrid-search.js +9 -9
- package/dist/lib/identity.js +3 -3
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +2 -2
- package/dist/lib/messaging.js +15 -15
- package/dist/lib/post-tool-memory.js +5 -5
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +4 -4
- package/dist/lib/schedules.js +8 -8
- package/dist/lib/session-registry.js +5 -5
- package/dist/lib/skill-learning.js +9 -9
- package/dist/lib/store.js +7 -7
- package/dist/lib/task-router.js +4 -4
- package/dist/lib/tasks.js +16 -16
- package/dist/lib/tmux-routing.js +14 -14
- package/dist/lib/token-spend.js +4 -4
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-S64ZXNJP.js → license-gate-3RY6PHVV.js} +3 -3
- package/dist/{license-recheck-THF42I5H.js → license-recheck-JUOCYY4O.js} +1 -1
- package/dist/{license-sync-6IQWVOWO.js → license-sync-FK4A36MC.js} +2 -2
- package/dist/mcp/register-tools.js +92 -92
- package/dist/mcp/server.js +92 -92
- 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 +18 -18
- package/dist/mcp/tools/deactivate-behavior.js +10 -10
- package/dist/mcp/tools/list-reminders.js +5 -5
- package/dist/mcp/tools/list-tasks.js +18 -18
- package/dist/mcp/tools/send-message.js +17 -17
- package/dist/mcp/tools/update-task.js +17 -17
- package/dist/{mcp-http-config-HYC6PGN7.js → mcp-http-config-A5HJ5AFM.js} +5 -5
- package/dist/{mcp-session-identity-XILWZAQ3.js → mcp-session-identity-JJXOYI4B.js} +14 -14
- package/dist/{memory-cards-YXLJNJPD.js → memory-cards-R3P6S2SY.js} +7 -7
- package/dist/{memory-graph-extractor-KO4HTOSQ.js → memory-graph-extractor-HR247CPK.js} +7 -7
- package/dist/{memory-maintenance-65DVM3F4.js → memory-maintenance-R65ADRK4.js} +1 -1
- package/dist/{memory-poisoning-defense-PPTXVD7B.js → memory-poisoning-defense-BF2CPNT5.js} +3 -3
- package/dist/{memory-pressure-watchdog-G4HRVSFS.js → memory-pressure-watchdog-YEM7A7WF.js} +15 -15
- package/dist/{memory-reflection-FRHRN6DB.js → memory-reflection-RGI7UCQU.js} +7 -7
- package/dist/{memory-write-repository-LLDBAJAW.js → memory-write-repository-DE6YHSL7.js} +1 -1
- package/dist/{monitor-grants-U7435QSS.js → monitor-grants-FMUIG3LI.js} +3 -3
- package/dist/{monitor-identity-TYG4KCJS.js → monitor-identity-AID64LBN.js} +2 -2
- package/dist/{notification-ledger-UWATPNMM.js → notification-ledger-MDYFG7PR.js} +15 -15
- package/dist/{notifications-CBBWB6CI.js → notifications-TQEE62U3.js} +14 -14
- package/dist/{orchestration-events-OBH4XY2J.js → orchestration-events-7JWQRUVB.js} +4 -4
- package/dist/{orchestrator-T4XLGJRJ.js → orchestrator-HIICR4TY.js} +16 -16
- package/dist/{org-brief-session-ILGWGC5X.js → org-brief-session-WP24RIRM.js} +15 -15
- package/dist/{org-consent-policy-YKN7LOG3.js → org-consent-policy-76XNIB7A.js} +5 -5
- package/dist/{org-join-XQL2X5AO.js → org-join-5NLZ4ZT4.js} +9 -9
- package/dist/{org-key-admin-ETFX33EW.js → org-key-admin-TTJPJHWE.js} +11 -11
- package/dist/{org-key-epoch-TRQQBFQ2.js → org-key-epoch-LIYGA7HR.js} +5 -5
- package/dist/{org-key-pin-ZON5NGP5.js → org-key-pin-NHHPBPIO.js} +3 -3
- package/dist/{org-membership-IW4ZDMKZ.js → org-membership-VMXEZZYF.js} +4 -4
- package/dist/{org-partner-config-GG4YMEA3.js → org-partner-config-4ZIVK7VP.js} +8 -8
- package/dist/{org-partner-runtime-4T4YUBGL.js → org-partner-runtime-EMVKQMA2.js} +15 -15
- package/dist/{org-row-visibility-F4PTFDFW.js → org-row-visibility-WEXJNGMO.js} +1 -1
- package/dist/{pipeline-router-2SC44FMX.js → pipeline-router-M6ADV2GK.js} +4 -4
- package/dist/{plan-limits-JDFGTUXU.js → plan-limits-WSKTUJB7.js} +6 -6
- package/dist/{pre-tool-use-impl-D3CJ2RCE.js → pre-tool-use-impl-T54FWS5F.js} +29 -29
- package/dist/{project-name-ISGI3PY5.js → project-name-JNUX5KNJ.js} +4 -4
- package/dist/{projection-worker-5TNY3OA2.js → projection-worker-4R44UDTC.js} +2 -2
- package/dist/{prospective-memory-TQ7Z6UK4.js → prospective-memory-JU52ZU4P.js} +3 -3
- package/dist/{push-notifications-VY2WM6OW.js → push-notifications-KAV2I7BT.js} +15 -15
- package/dist/{reproject-worktree-memories-J7X3EBNB.js → reproject-worktree-memories-UOTGJHHZ.js} +14 -14
- package/dist/{reranker-AZWLDKTF.js → reranker-EV4BDEEM.js} +1 -1
- package/dist/{retrieval-health-BIOHGTFR.js → retrieval-health-7QFZQ3VL.js} +1 -1
- package/dist/{review-polling-U5EYTXFU.js → review-polling-6646GRW6.js} +15 -15
- package/dist/runtime/index.js +18 -18
- package/dist/{session-events-4IDRYFVA.js → session-events-ID2UU6YB.js} +15 -15
- package/dist/{session-kill-telemetry-I2IXSAQ3.js → session-kill-telemetry-YR7HNHZI.js} +15 -15
- package/dist/{session-scope-S7DUMN4Q.js → session-scope-FNGMMG7K.js} +14 -14
- package/dist/{setup-wizard-TG3EPPCC.js → setup-wizard-GEXWKX3J.js} +2 -2
- package/dist/{shard-manager-7DKNYDIV.js → shard-manager-6U634WL5.js} +2 -2
- package/dist/{skill-refinement-4HAGXWWD.js → skill-refinement-M7U3IH3B.js} +4 -4
- package/dist/{skill-retrieval-IHM2AQIW.js → skill-retrieval-QWRHBTM7.js} +11 -11
- package/dist/{skill-usage-PEYGHVF5.js → skill-usage-7FNE6C73.js} +4 -4
- package/dist/{stack-generate-manifest-WA6W54R4.js → stack-generate-manifest-TMLO7F3U.js} +4 -4
- package/dist/{stack-promote-5BVRO7DO.js → stack-promote-IYD6GDSW.js} +4 -4
- package/dist/{stack-release-HB5UM2IG.js → stack-release-2Q2IYM4M.js} +5 -5
- package/dist/{stack-update-EQDLX2EG.js → stack-update-WRS2QRK4.js} +9 -3
- package/dist/{steward-gate-D3Q4PVQU.js → steward-gate-S5NPASQ6.js} +4 -4
- package/dist/{subagent-brief-injection-UVG7FTPS.js → subagent-brief-injection-WAPOJNEW.js} +25 -25
- package/dist/{support-bug-actions-XHGVFN5K.js → support-bug-actions-LRRPCO2X.js} +3 -3
- package/dist/{support-inbox-YNJXXOJG.js → support-inbox-L353AXIP.js} +12 -12
- package/dist/{task-enforcement-P2CEI3FT.js → task-enforcement-X55T4MA2.js} +15 -15
- package/dist/{task-request-inbox-56VQUXKG.js → task-request-inbox-JFPPW6JF.js} +5 -5
- package/dist/{task-scope-JZNO6OO4.js → task-scope-KB35QGJ2.js} +14 -14
- package/dist/{tasks-crud-LEDUFYKV.js → tasks-crud-XSCWP2ZQ.js} +16 -14
- package/dist/{tasks-notify-X4LK22K3.js → tasks-notify-A2GQS3AW.js} +15 -15
- package/dist/{tasks-review-EFVDIP7G.js → tasks-review-YIRJPO2P.js} +14 -14
- package/dist/{telemetry-upload-LOXHJ5I4.js → telemetry-upload-2B567ZWI.js} +8 -8
- package/dist/{token-budget-PBTAKWEG.js → token-budget-3T7TRE23.js} +4 -4
- package/dist/{tool-telemetry-FCVFNWUI.js → tool-telemetry-CU65NUCU.js} +1 -1
- package/dist/tui/App.js +24 -24
- package/dist/{tui-data-FEYZXOCX.js → tui-data-32EDQQNA.js} +18 -18
- package/dist/{update-support-GHWZB4SH.js → update-support-JAP2PFNY.js} +11 -11
- package/dist/{whatsapp-O4VRU6J4.js → whatsapp-FN6PRHX6.js} +2 -2
- package/dist/{wiki-acl-QSIOZBTL.js → wiki-acl-V6ZFV44C.js} +1 -1
- package/dist/{work-claims-SASEE66I.js → work-claims-5D7OBZVP.js} +4 -4
- package/dist/{work-state-heartbeat-TDYKTZUV.js → work-state-heartbeat-ET3ISGCF.js} +1 -1
- package/dist/{workflow-engine-TVSSUPLY.js → workflow-engine-WBCMRPKF.js} +2 -2
- package/dist/{worktree-EAXBOKTG.js → worktree-NPWJ4RJ3.js} +5 -5
- package/dist/{worktree-sweep-LPEUM44A.js → worktree-sweep-QA26BFO7.js} +6 -6
- package/package.json +3 -1
- package/release-notes.json +16 -19
- package/stack.release.json +3 -3
- /package/dist/{chunk-CZLB2RJ7.js → chunk-364OWA4G.js} +0 -0
- /package/dist/{chunk-62EETXIE.js → chunk-DHWZHM6J.js} +0 -0
- /package/dist/{chunk-GGKJHUBC.js → chunk-FIIVUFRF.js} +0 -0
- /package/dist/{chunk-NECWNYQG.js → chunk-HC5Z72HE.js} +0 -0
- /package/dist/{chunk-USV4EKTB.js → chunk-IBRBBKNG.js} +0 -0
- /package/dist/{chunk-NYL3M7GZ.js → chunk-K25XOKDF.js} +0 -0
- /package/dist/{chunk-DCI45I24.js → chunk-LKCC4MRH.js} +0 -0
- /package/dist/{chunk-VVOUVCIG.js → chunk-LYNJO72I.js} +0 -0
- /package/dist/{chunk-6J7P73XI.js → chunk-MPFDIV2O.js} +0 -0
- /package/dist/{chunk-P35TTOHJ.js → chunk-SLRJ4XSO.js} +0 -0
- /package/dist/{chunk-Q2FACDN6.js → chunk-TYKG62HG.js} +0 -0
- /package/dist/{chunk-MRCMAOZU.js → chunk-XWVJVGIV.js} +0 -0
- /package/dist/{chunk-JJJNBTMP.js → chunk-Z4HL4WPV.js} +0 -0
- /package/dist/{core-memory-BEVUZHYN.js → core-memory-2CH552K3.js} +0 -0
- /package/dist/{memory-isolation-TFUBKU3C.js → memory-isolation-RWXYBFXJ.js} +0 -0
- /package/dist/{oauth-server-TO3U7RGZ.js → oauth-server-IDBV3VAJ.js} +0 -0
- /package/dist/{project-boot-OCBNKGQM.js → project-boot-O6CJGZIF.js} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-RT57D7C4.js";
|
|
20
20
|
import {
|
|
21
21
|
loadLicense
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DOUHD6KC.js";
|
|
23
23
|
|
|
24
24
|
// src/lib/stack-update.ts
|
|
25
25
|
import { execFileSync, spawnSync as spawnSync2 } from "child_process";
|
|
@@ -32,6 +32,52 @@ import path from "path";
|
|
|
32
32
|
import { fileURLToPath } from "url";
|
|
33
33
|
import { parseDocument as parseYamlDocument } from "yaml";
|
|
34
34
|
|
|
35
|
+
// src/lib/erp-asset-smoke.ts
|
|
36
|
+
async function verifyErpAssets(port, siteName, fetchPage = fetch) {
|
|
37
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
38
|
+
throw new Error("ERP asset smoke refused an invalid loopback port");
|
|
39
|
+
}
|
|
40
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9.-]{0,252}$/.test(siteName)) {
|
|
41
|
+
throw new Error("ERP asset smoke refused an invalid site name");
|
|
42
|
+
}
|
|
43
|
+
const origin = `http://127.0.0.1:${port}`;
|
|
44
|
+
const signal = AbortSignal.timeout(6e4);
|
|
45
|
+
const assetPaths = /* @__PURE__ */ new Set();
|
|
46
|
+
const get = async (path2) => {
|
|
47
|
+
let url = new URL(path2, origin);
|
|
48
|
+
for (let redirects = 0; redirects < 5; redirects++) {
|
|
49
|
+
if (url.origin !== origin) throw new Error("ERP asset smoke refused an external redirect");
|
|
50
|
+
const response = await fetchPage(url, { redirect: "manual", signal, headers: { Host: siteName } });
|
|
51
|
+
if (![301, 302, 303, 307, 308].includes(response.status)) return response;
|
|
52
|
+
const location = response.headers.get("location");
|
|
53
|
+
await response.body?.cancel();
|
|
54
|
+
if (!location) throw new Error("ERP asset smoke encountered a redirect without a location");
|
|
55
|
+
url = new URL(location, url);
|
|
56
|
+
}
|
|
57
|
+
throw new Error("ERP asset smoke exceeded its redirect limit");
|
|
58
|
+
};
|
|
59
|
+
for (const page of ["/login", "/app"]) {
|
|
60
|
+
const response = await get(page);
|
|
61
|
+
if (response.status !== 200) {
|
|
62
|
+
throw new Error(`ERP asset smoke: ${page} returned HTTP ${response.status}`);
|
|
63
|
+
}
|
|
64
|
+
const html = await response.text();
|
|
65
|
+
const assets = [...html.matchAll(/\/assets\/[A-Za-z0-9_-]+\/dist\/(?:css|js)\/[^"' >]+/g)].map((match) => match[0]);
|
|
66
|
+
if (assets.length === 0 || !assets.some((asset) => asset.includes("/css/"))) {
|
|
67
|
+
throw new Error(`ERP asset smoke: ${page} has no hashed CSS bundle`);
|
|
68
|
+
}
|
|
69
|
+
for (const asset of assets) assetPaths.add(asset);
|
|
70
|
+
}
|
|
71
|
+
if (assetPaths.size > 100) throw new Error("ERP asset smoke: page references too many bundles");
|
|
72
|
+
for (const asset of assetPaths) {
|
|
73
|
+
const response = await get(asset);
|
|
74
|
+
await response.body?.cancel();
|
|
75
|
+
if (response.status !== 200) {
|
|
76
|
+
throw new Error(`ERP asset smoke: ${asset} returned HTTP ${response.status}`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
35
81
|
// src/lib/service-env-contract.ts
|
|
36
82
|
import { parse as parseYaml } from "yaml";
|
|
37
83
|
var SERVICE_ENV_CONTRACT = [
|
|
@@ -1211,8 +1257,9 @@ async function rollbackStackUpdate(options) {
|
|
|
1211
1257
|
throw new Error("--retain-compose rollback refused an unscoped restart; restore the selected service from backup manually");
|
|
1212
1258
|
}
|
|
1213
1259
|
if (scopedServiceNames.length > 0 && lockData?.services) {
|
|
1214
|
-
const scopedComposeServices =
|
|
1215
|
-
scopedServiceNames.map((serviceName) => lockData.services[serviceName]?.composeService ?? serviceName)
|
|
1260
|
+
const scopedComposeServices = scopedComposeImageServices(
|
|
1261
|
+
scopedServiceNames.map((serviceName) => lockData.services[serviceName]?.composeService ?? serviceName),
|
|
1262
|
+
options.retainCompose
|
|
1216
1263
|
);
|
|
1217
1264
|
for (const composeServiceName of scopedComposeServices) {
|
|
1218
1265
|
exec("docker", [...composeArgs, "up", "-d", ...options.retainCompose ? [] : ["--remove-orphans"], "--no-deps", composeServiceName]);
|
|
@@ -1246,7 +1293,10 @@ async function rollbackStackUpdate(options) {
|
|
|
1246
1293
|
);
|
|
1247
1294
|
}
|
|
1248
1295
|
}
|
|
1249
|
-
const rolledBackComposeServices = scopedServiceNames.length > 0 && lockData?.services ? [...new Set(
|
|
1296
|
+
const rolledBackComposeServices = scopedServiceNames.length > 0 && lockData?.services ? [...new Set(scopedComposeImageServices(scopedServiceNames.map((name) => lockData.services[name]?.composeService ?? name), options.retainCompose))] : [...new Set(Object.entries(lockData?.services ?? {}).map(([name, svc]) => svc.composeService ?? name))];
|
|
1297
|
+
if (options.retainCompose && rolledBackComposeServices.includes("exe-erp")) {
|
|
1298
|
+
rolledBackComposeServices.push(ERP_RETAINED_OBSERVER);
|
|
1299
|
+
}
|
|
1250
1300
|
try {
|
|
1251
1301
|
await verifyComposeServicesRunning(
|
|
1252
1302
|
composeArgs,
|
|
@@ -1370,6 +1420,14 @@ function expandComposeServicesWithSidecars(primaryComposeServices) {
|
|
|
1370
1420
|
}
|
|
1371
1421
|
return expanded;
|
|
1372
1422
|
}
|
|
1423
|
+
var ERP_RETAINED_IMAGE_SERVICES = ["exe-erp", "exe-erp-websocket", "exe-erp-queue", "exe-erp-scheduler"];
|
|
1424
|
+
var ERP_RETAINED_OBSERVER = "exe-erp-nginx";
|
|
1425
|
+
function retainedComposeImageServices(primaryComposeServices) {
|
|
1426
|
+
return primaryComposeServices.length === 1 && primaryComposeServices[0] === "exe-erp" ? [...ERP_RETAINED_IMAGE_SERVICES] : expandComposeServicesWithSidecars(primaryComposeServices);
|
|
1427
|
+
}
|
|
1428
|
+
function scopedComposeImageServices(primaryComposeServices, retainCompose) {
|
|
1429
|
+
return retainCompose ? retainedComposeImageServices(primaryComposeServices) : expandComposeServicesWithSidecars(primaryComposeServices);
|
|
1430
|
+
}
|
|
1373
1431
|
function resolveOwningManifestService(composeService, services) {
|
|
1374
1432
|
const direct = Object.entries(services).find(
|
|
1375
1433
|
([name, svc]) => name === composeService || (svc.composeService ?? name) === composeService
|
|
@@ -2511,8 +2569,11 @@ function assertRetainedComposePlan(input, plan, liveComposeRaw, envRaw, processE
|
|
|
2511
2569
|
if (service.migrations || plan.release.migrations) {
|
|
2512
2570
|
throw new Error("--retain-compose cannot run service or release migrations");
|
|
2513
2571
|
}
|
|
2514
|
-
const
|
|
2515
|
-
|
|
2572
|
+
const allComposeServices = expandComposeServicesWithSidecars([service.composeService ?? name]);
|
|
2573
|
+
const composeServices = retainedComposeImageServices([service.composeService ?? name]);
|
|
2574
|
+
const isCrmGroup = name === "crm" && composeServices.length === 2 && composeServices[0] === "exe-crm" && composeServices[1] === "exe-crm-worker";
|
|
2575
|
+
const isErpGroup = name === "erp" && allComposeServices.length === 5 && allComposeServices.every((target, index) => target === ["exe-erp", ERP_RETAINED_OBSERVER, ...ERP_RETAINED_IMAGE_SERVICES.slice(1)][index]) && composeServices.length === ERP_RETAINED_IMAGE_SERVICES.length;
|
|
2576
|
+
if (allComposeServices.length > 1 && !isCrmGroup && !isErpGroup) {
|
|
2516
2577
|
throw new Error("--retain-compose requires a service with no unsupported companion sidecars");
|
|
2517
2578
|
}
|
|
2518
2579
|
if (!service.env || plan.changes.length !== 1 || plan.changes[0].service !== name || plan.changes[0].key !== service.env) {
|
|
@@ -2546,6 +2607,9 @@ function assertRetainedComposePlan(input, plan, liveComposeRaw, envRaw, processE
|
|
|
2546
2607
|
throw new Error(`--retain-compose refused: rendered selected service ${composeService} image differs from signed image pin`);
|
|
2547
2608
|
}
|
|
2548
2609
|
}
|
|
2610
|
+
if (isErpGroup) {
|
|
2611
|
+
retainedErpNginxImageRef(liveComposeRaw, liveOverrideRaw);
|
|
2612
|
+
}
|
|
2549
2613
|
const env = parseEnv(envRaw);
|
|
2550
2614
|
const monitorKey = env.get("EXE_MONITOR_KEY") ?? "";
|
|
2551
2615
|
if (!monitorKey.trim() || /CHANGEME/.test(monitorKey)) {
|
|
@@ -3926,6 +3990,7 @@ async function runStackUpdateUnlocked(options) {
|
|
|
3926
3990
|
removeService: options.removeService,
|
|
3927
3991
|
rollback: options.rollback
|
|
3928
3992
|
}, plan, composeRaw, envRaw, process.env, retainedComposeFiles?.override ?? null);
|
|
3993
|
+
const erpNginxRef = options.retainCompose && Object.keys(plan.release.services).length === 1 && plan.release.services.erp ? retainedErpNginxImageRef(composeRaw, retainedComposeFiles?.override ?? null) : null;
|
|
3929
3994
|
const retainedOverrideHash = retainedComposeFiles ? retainedComposeFiles.override === null ? null : createHash("sha256").update(retainedComposeFiles.override).digest("hex") : void 0;
|
|
3930
3995
|
const stagedCompose = readStagedComposeTemplate(options, composeRaw);
|
|
3931
3996
|
const targetRelease = manifest.stacks[plan.targetVersion];
|
|
@@ -3984,7 +4049,7 @@ ${lines.join("\n")}`
|
|
|
3984
4049
|
if (options.retainCompose) {
|
|
3985
4050
|
const [name, service] = Object.entries(plan.release.services)[0];
|
|
3986
4051
|
const composeArgs2 = composeArgsForStack(options.composeFile, options.envFile);
|
|
3987
|
-
for (const target of
|
|
4052
|
+
for (const target of retainedComposeImageServices([service.composeService ?? name])) {
|
|
3988
4053
|
assertRetainedComposeRunningService(
|
|
3989
4054
|
composeArgs2,
|
|
3990
4055
|
target,
|
|
@@ -3998,6 +4063,25 @@ ${lines.join("\n")}`
|
|
|
3998
4063
|
options.composeConfigCapture ?? defaultComposeConfigCapture
|
|
3999
4064
|
);
|
|
4000
4065
|
}
|
|
4066
|
+
if (erpNginxRef) {
|
|
4067
|
+
assertRetainedComposeRunningService(
|
|
4068
|
+
composeArgs2,
|
|
4069
|
+
ERP_RETAINED_OBSERVER,
|
|
4070
|
+
options.composePsCapture ?? defaultComposePsCapture
|
|
4071
|
+
);
|
|
4072
|
+
assertRetainedComposeRenderedFixedImage(
|
|
4073
|
+
composeArgs2,
|
|
4074
|
+
ERP_RETAINED_OBSERVER,
|
|
4075
|
+
erpNginxRef,
|
|
4076
|
+
options.composeConfigCapture ?? defaultComposeConfigCapture
|
|
4077
|
+
);
|
|
4078
|
+
assertRetainedComposeImageWitness(
|
|
4079
|
+
composeArgs2,
|
|
4080
|
+
ERP_RETAINED_OBSERVER,
|
|
4081
|
+
erpNginxRef,
|
|
4082
|
+
options.retainedImageIds ?? captureRetainedComposeImageIds
|
|
4083
|
+
);
|
|
4084
|
+
}
|
|
4001
4085
|
}
|
|
4002
4086
|
const hostState = listHostComposeServices(
|
|
4003
4087
|
composeArgsForStack(options.composeFile, options.envFile),
|
|
@@ -4375,8 +4459,9 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4375
4459
|
);
|
|
4376
4460
|
}
|
|
4377
4461
|
}
|
|
4378
|
-
const composePullTargets =
|
|
4379
|
-
Object.entries(plan.release.services).map(([name, svc]) => svc.composeService ?? name)
|
|
4462
|
+
const composePullTargets = scopedComposeImageServices(
|
|
4463
|
+
Object.entries(plan.release.services).map(([name, svc]) => svc.composeService ?? name),
|
|
4464
|
+
options.retainCompose
|
|
4380
4465
|
);
|
|
4381
4466
|
try {
|
|
4382
4467
|
if (composePullTargets.length > 0) {
|
|
@@ -4490,7 +4575,7 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4490
4575
|
// tunnel — restarted last so services are healthy before it connects
|
|
4491
4576
|
];
|
|
4492
4577
|
const primaryComposeServices = Object.entries(plan.release.services).map(([serviceName, service]) => service.composeService ?? serviceName);
|
|
4493
|
-
const scopedComposeServices =
|
|
4578
|
+
const scopedComposeServices = scopedComposeImageServices(primaryComposeServices, options.retainCompose);
|
|
4494
4579
|
const restartOrder = [
|
|
4495
4580
|
...RESTART_ORDER.filter((service) => scopedComposeServices.includes(service)),
|
|
4496
4581
|
...scopedComposeServices.filter((service) => !RESTART_ORDER.includes(service))
|
|
@@ -4534,6 +4619,40 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4534
4619
|
plan.changes[0].after,
|
|
4535
4620
|
options.composeConfigCapture ?? defaultComposeConfigCapture
|
|
4536
4621
|
);
|
|
4622
|
+
if (erpNginxRef) {
|
|
4623
|
+
const beforeWait = parseRetainedContainerHealth(
|
|
4624
|
+
(options.composePsCapture ?? defaultComposePsCapture)(composeArgs)
|
|
4625
|
+
).get(ERP_RETAINED_OBSERVER);
|
|
4626
|
+
if (!beforeWait?.id || beforeWait.id !== retainedHealthBaseline?.containers.get(ERP_RETAINED_OBSERVER)?.id) {
|
|
4627
|
+
throw new Error("--retain-compose refused: ERP nginx observer changed before restart");
|
|
4628
|
+
}
|
|
4629
|
+
await verifyComposeServicesRunning(
|
|
4630
|
+
composeArgs,
|
|
4631
|
+
[ERP_RETAINED_OBSERVER],
|
|
4632
|
+
90,
|
|
4633
|
+
options.composePsCapture,
|
|
4634
|
+
void 0,
|
|
4635
|
+
true
|
|
4636
|
+
);
|
|
4637
|
+
const currentNginx = parseRetainedContainerHealth(
|
|
4638
|
+
(options.composePsCapture ?? defaultComposePsCapture)(composeArgs)
|
|
4639
|
+
).get(ERP_RETAINED_OBSERVER);
|
|
4640
|
+
if (currentNginx?.id !== beforeWait.id || !retainedContainerIsHealthy(currentNginx)) {
|
|
4641
|
+
throw new Error("--retain-compose refused: ERP nginx observer changed before restart");
|
|
4642
|
+
}
|
|
4643
|
+
assertRetainedComposeRenderedFixedImage(
|
|
4644
|
+
composeArgs,
|
|
4645
|
+
ERP_RETAINED_OBSERVER,
|
|
4646
|
+
erpNginxRef,
|
|
4647
|
+
options.composeConfigCapture ?? defaultComposeConfigCapture
|
|
4648
|
+
);
|
|
4649
|
+
assertRetainedComposeImageWitness(
|
|
4650
|
+
composeArgs,
|
|
4651
|
+
ERP_RETAINED_OBSERVER,
|
|
4652
|
+
erpNginxRef,
|
|
4653
|
+
options.retainedImageIds ?? captureRetainedComposeImageIds
|
|
4654
|
+
);
|
|
4655
|
+
}
|
|
4537
4656
|
}
|
|
4538
4657
|
progress.logServiceStep(restartIndex, service, "Restarting");
|
|
4539
4658
|
if (service === "exe-wiki") {
|
|
@@ -4642,6 +4761,16 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4642
4761
|
}
|
|
4643
4762
|
}
|
|
4644
4763
|
if (retainedHealthBaseline) {
|
|
4764
|
+
if (erpNginxRef) {
|
|
4765
|
+
await verifyComposeServicesRunning(
|
|
4766
|
+
composeArgs,
|
|
4767
|
+
[ERP_RETAINED_OBSERVER],
|
|
4768
|
+
90,
|
|
4769
|
+
options.composePsCapture,
|
|
4770
|
+
void 0,
|
|
4771
|
+
true
|
|
4772
|
+
);
|
|
4773
|
+
}
|
|
4645
4774
|
const capture = (timeoutMs) => parseRetainedContainerHealth(
|
|
4646
4775
|
(options.composePsCapture ?? defaultComposePsCapture)(composeArgs, timeoutMs)
|
|
4647
4776
|
);
|
|
@@ -4651,6 +4780,28 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4651
4780
|
if (regressions.length > 0) {
|
|
4652
4781
|
throw new Error(`--retain-compose health regression after update: ${regressions.join(", ")}`);
|
|
4653
4782
|
}
|
|
4783
|
+
if (erpNginxRef) {
|
|
4784
|
+
const beforeNginx = retainedHealthBaseline.containers.get(ERP_RETAINED_OBSERVER);
|
|
4785
|
+
const afterNginx = after.get(ERP_RETAINED_OBSERVER);
|
|
4786
|
+
if (!beforeNginx?.id || afterNginx?.id !== beforeNginx.id) {
|
|
4787
|
+
throw new Error("--retain-compose ERP nginx observer changed container identity");
|
|
4788
|
+
}
|
|
4789
|
+
assertRetainedComposeRenderedFixedImage(
|
|
4790
|
+
composeArgs,
|
|
4791
|
+
ERP_RETAINED_OBSERVER,
|
|
4792
|
+
erpNginxRef,
|
|
4793
|
+
options.composeConfigCapture ?? defaultComposeConfigCapture
|
|
4794
|
+
);
|
|
4795
|
+
assertRetainedComposeImageWitness(
|
|
4796
|
+
composeArgs,
|
|
4797
|
+
ERP_RETAINED_OBSERVER,
|
|
4798
|
+
erpNginxRef,
|
|
4799
|
+
options.retainedImageIds ?? captureRetainedComposeImageIds
|
|
4800
|
+
);
|
|
4801
|
+
const portRaw = parseEnv(readFileSync(options.envFile, "utf8")).get("ERP_API_PORT") ?? "8069";
|
|
4802
|
+
const siteName = parseEnv(readFileSync(options.envFile, "utf8")).get("ERP_SITE_NAME") ?? "erp.askexe.com";
|
|
4803
|
+
await (options.verifyErpAssets ?? verifyErpAssets)(Number(portRaw), siteName);
|
|
4804
|
+
}
|
|
4654
4805
|
}
|
|
4655
4806
|
{
|
|
4656
4807
|
const cfIngressConfigPath = path.join(path.dirname(options.composeFile), "cloudflared", "config.yml");
|
|
@@ -4791,7 +4942,7 @@ Push the missing image(s) to the registry, or re-run with --break-glass <reason>
|
|
|
4791
4942
|
// pre-existing companion on an older digest as this service's failed
|
|
4792
4943
|
// delivery. Retained health and image witnesses still cover the selected
|
|
4793
4944
|
// service and its required dependencies before and after the update.
|
|
4794
|
-
artifactComposeServices: options.retainCompose ? Object.entries(plan.release.services).flatMap(([name, service]) =>
|
|
4945
|
+
artifactComposeServices: options.retainCompose ? Object.entries(plan.release.services).flatMap(([name, service]) => scopedComposeImageServices([service.composeService ?? name], options.retainCompose)) : void 0
|
|
4795
4946
|
});
|
|
4796
4947
|
const securityFailures = [];
|
|
4797
4948
|
for (const r of verifyReport.results) {
|
|
@@ -4905,7 +5056,7 @@ Fix these before the stack is safe to operate.`);
|
|
|
4905
5056
|
const composeService = service.composeService ?? name;
|
|
4906
5057
|
try {
|
|
4907
5058
|
syncImagePinsWithProcessEnv(envRaw, [service.env]);
|
|
4908
|
-
const restored =
|
|
5059
|
+
const restored = scopedComposeImageServices([composeService], options.retainCompose);
|
|
4909
5060
|
for (const target of restored) {
|
|
4910
5061
|
exec("docker", [...composeArgs, "up", "-d", "--no-deps", target]);
|
|
4911
5062
|
}
|
|
@@ -5195,6 +5346,26 @@ function assertRetainedComposeRenderedImage(composeArgs, service, imageEnvKey, e
|
|
|
5195
5346
|
throw new Error(`--retain-compose refused: effective Compose image for ${service} differs from signed image pin or could not be observed`);
|
|
5196
5347
|
}
|
|
5197
5348
|
}
|
|
5349
|
+
function retainedErpNginxImageRef(baseRaw, overrideRaw) {
|
|
5350
|
+
const base = parseComposeServiceImages(baseRaw);
|
|
5351
|
+
const override = overrideRaw === null ? /* @__PURE__ */ new Map() : parseComposeServiceImages(overrideRaw);
|
|
5352
|
+
const expression = override.get(ERP_RETAINED_OBSERVER) ?? base.get(ERP_RETAINED_OBSERVER);
|
|
5353
|
+
if (!expression || envRefsInImageExpression(expression).length || !/@sha256:[a-f0-9]{64}$/i.test(expression)) {
|
|
5354
|
+
throw new Error("--retain-compose refused: ERP nginx observer must use a fixed digest-pinned image");
|
|
5355
|
+
}
|
|
5356
|
+
return expression;
|
|
5357
|
+
}
|
|
5358
|
+
function assertRetainedComposeRenderedFixedImage(composeArgs, service, expectedRef, capture = defaultComposeConfigCapture) {
|
|
5359
|
+
let rendered;
|
|
5360
|
+
try {
|
|
5361
|
+
const raw = capture(composeArgs, process.env);
|
|
5362
|
+
rendered = raw ? JSON.parse(raw).services?.[service]?.image : void 0;
|
|
5363
|
+
} catch {
|
|
5364
|
+
}
|
|
5365
|
+
if (rendered !== expectedRef) {
|
|
5366
|
+
throw new Error(`--retain-compose refused: effective Compose image for ${service} differs from signed fixed image`);
|
|
5367
|
+
}
|
|
5368
|
+
}
|
|
5198
5369
|
function captureRetainedComposeImageIds(composeArgs, service, expectedRef) {
|
|
5199
5370
|
const capture = (args) => {
|
|
5200
5371
|
const result = spawnSync2("docker", args, { encoding: "utf8", timeout: 2e4 });
|
|
@@ -5758,6 +5929,7 @@ export {
|
|
|
5758
5929
|
runReleaseMigrations,
|
|
5759
5930
|
isExecFormMigration,
|
|
5760
5931
|
expandComposeServicesWithSidecars,
|
|
5932
|
+
retainedComposeImageServices,
|
|
5761
5933
|
resolveOwningManifestService,
|
|
5762
5934
|
reconcileStackLockFromContainers,
|
|
5763
5935
|
readRetainedComposeFiles,
|
|
@@ -5839,6 +6011,8 @@ export {
|
|
|
5839
6011
|
composePsYieldsRecords,
|
|
5840
6012
|
assertRetainedComposeRunningService,
|
|
5841
6013
|
assertRetainedComposeRenderedImage,
|
|
6014
|
+
retainedErpNginxImageRef,
|
|
6015
|
+
assertRetainedComposeRenderedFixedImage,
|
|
5842
6016
|
assertRetainedComposeImageWitness,
|
|
5843
6017
|
verifyComposeServicesRunning,
|
|
5844
6018
|
isComposeNetworkHost,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withScopedReadWindow
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GI44KWJA.js";
|
|
4
4
|
import {
|
|
5
5
|
requireOrgPartnerBinding,
|
|
6
6
|
resolvePartnerIdentities
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EMKSTLBG.js";
|
|
8
8
|
import {
|
|
9
9
|
allocateOutboundSeq,
|
|
10
10
|
approveBriefManually,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sealMailboxEnvelope,
|
|
23
23
|
unrecordedText,
|
|
24
24
|
verifyManifest
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-J77FASSK.js";
|
|
26
26
|
import {
|
|
27
27
|
queueMailboxDeposit
|
|
28
28
|
} from "./chunk-3FGBBJYM.js";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
listWorkflowDefinitions,
|
|
3
3
|
runWorkflow,
|
|
4
4
|
startWorkflow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HU2BKZ3Q.js";
|
|
6
6
|
import {
|
|
7
7
|
ingest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YGU3C5LK.js";
|
|
9
9
|
import {
|
|
10
10
|
initCRMBridge
|
|
11
11
|
} from "./chunk-ML4S5SHZ.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
dispatchTaskToEmployee,
|
|
3
3
|
markTaskNotificationsRead,
|
|
4
4
|
notifyTaskDone
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I6HLTDQP.js";
|
|
6
6
|
import {
|
|
7
7
|
clearCurrentTask,
|
|
8
8
|
writeCurrentTask
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
strictSessionScopeFilter,
|
|
20
20
|
updateTaskStatus,
|
|
21
21
|
writeNotification
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ROGZRDCU.js";
|
|
23
23
|
import {
|
|
24
24
|
getAgentContext
|
|
25
25
|
} from "./chunk-GJV3WDWM.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getClient,
|
|
31
31
|
getCoordinatorName,
|
|
32
32
|
isCoordinatorName
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4OZXJX3M.js";
|
|
34
34
|
import {
|
|
35
35
|
isAutonomousTmuxSpawnEnabled
|
|
36
36
|
} from "./chunk-MMS2HBRT.js";
|
|
@@ -85,7 +85,7 @@ async function cascadeUnblock(taskId, baseDir, now) {
|
|
|
85
85
|
if (unblockedRows.rows.length > 0 && !process.env.VITEST) {
|
|
86
86
|
const autonomousSpawnAllowed = isAutonomousTmuxSpawnEnabled();
|
|
87
87
|
try {
|
|
88
|
-
const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-
|
|
88
|
+
const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-A2GQS3AW.js");
|
|
89
89
|
const dispatched = /* @__PURE__ */ new Set();
|
|
90
90
|
for (const ur of unblockedRows.rows) {
|
|
91
91
|
if (!unblockedRowMayAutoDispatch(ur, autonomousSpawnAllowed)) continue;
|
|
@@ -97,7 +97,7 @@ async function cascadeUnblock(taskId, baseDir, now) {
|
|
|
97
97
|
}
|
|
98
98
|
} catch {
|
|
99
99
|
try {
|
|
100
|
-
const { queueIntercom } = await import("./intercom-queue-
|
|
100
|
+
const { queueIntercom } = await import("./intercom-queue-CDDFKPEJ.js");
|
|
101
101
|
const dispatched = /* @__PURE__ */ new Set();
|
|
102
102
|
for (const ur of unblockedRows.rows) {
|
|
103
103
|
if (!unblockedRowIsDurableTmux(ur)) continue;
|
|
@@ -313,7 +313,7 @@ async function updateTask(input, deps = {}) {
|
|
|
313
313
|
try {
|
|
314
314
|
process.stderr.write(`[tasks] EVENT: tmux delivery failed for reviewer="${reviewer}". Queueing for daemon delivery.
|
|
315
315
|
`);
|
|
316
|
-
const { queueIntercom } = await import("./intercom-queue-
|
|
316
|
+
const { queueIntercom } = await import("./intercom-queue-CDDFKPEJ.js");
|
|
317
317
|
const { resolveExeSession } = await import("./lib/tmux-routing.js");
|
|
318
318
|
const exeSession = row.session_scope ? String(row.session_scope) : resolveExeSession();
|
|
319
319
|
if (exeSession) {
|
|
@@ -330,7 +330,7 @@ async function updateTask(input, deps = {}) {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
try {
|
|
333
|
-
const { pushNotifyAsync } = await import("./push-notifications-
|
|
333
|
+
const { pushNotifyAsync } = await import("./push-notifications-KAV2I7BT.js");
|
|
334
334
|
pushNotifyAsync({
|
|
335
335
|
event: "review_ready",
|
|
336
336
|
title: `Review ready: ${taskTitle.slice(0, 50)}`,
|
|
@@ -342,7 +342,7 @@ async function updateTask(input, deps = {}) {
|
|
|
342
342
|
}
|
|
343
343
|
if (isLegacyExecution && !isCoordinator && isCompletionReviewTransition) {
|
|
344
344
|
try {
|
|
345
|
-
const { pushNotifyAsync } = await import("./push-notifications-
|
|
345
|
+
const { pushNotifyAsync } = await import("./push-notifications-KAV2I7BT.js");
|
|
346
346
|
const event = input.status === "needs_review" ? "review_ready" : "task_complete";
|
|
347
347
|
pushNotifyAsync({
|
|
348
348
|
event,
|
|
@@ -357,7 +357,7 @@ async function updateTask(input, deps = {}) {
|
|
|
357
357
|
await markTaskNotificationsRead(taskFile);
|
|
358
358
|
if (isLegacyExecution && isCompletionReviewTransition && !isCoordinator && row.reviewer) {
|
|
359
359
|
try {
|
|
360
|
-
const { writeNotification: writeNotification2 } = await import("./notifications-
|
|
360
|
+
const { writeNotification: writeNotification2 } = await import("./notifications-TQEE62U3.js");
|
|
361
361
|
const reviewer = String(row.reviewer);
|
|
362
362
|
await writeNotification2({
|
|
363
363
|
agentId: reviewer,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
derivePartnerSealIdentityFromMaster
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4WY6BKDT.js";
|
|
4
4
|
import {
|
|
5
5
|
derivePartnerSignIdentityFromMaster,
|
|
6
6
|
displayFingerprint,
|
|
7
7
|
ed25519PrivateKeyFromSeed,
|
|
8
8
|
ed25519PublicKeyFromRaw
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GFQVXPUN.js";
|
|
10
10
|
import {
|
|
11
11
|
getMasterKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4XRQEQNK.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/org-key-epoch.ts
|
|
15
15
|
import crypto, { sign as edSign, verify as edVerify } from "crypto";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-IZWMWJZT.js";
|
|
4
4
|
import {
|
|
5
5
|
isGhostBehaviorRow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SWQRQB4M.js";
|
|
7
7
|
import {
|
|
8
8
|
IdentityConflictError,
|
|
9
9
|
getClient,
|
|
10
10
|
getIdentity,
|
|
11
11
|
listIdentities,
|
|
12
12
|
updateIdentity
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4OZXJX3M.js";
|
|
14
14
|
import {
|
|
15
15
|
atomicWriteJsonSync
|
|
16
16
|
} from "./chunk-HSGBZSCA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WORK_STATE_HEARTBEAT_TOOL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MPFDIV2O.js";
|
|
4
4
|
import {
|
|
5
5
|
extractKeywords,
|
|
6
6
|
keywordsToString
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
findScopedDuplicate,
|
|
13
13
|
governMemoryRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HC5Z72HE.js";
|
|
15
15
|
import {
|
|
16
16
|
orgBus
|
|
17
17
|
} from "./chunk-MP2AFCGL.js";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
initPostgresOnlyDatabase,
|
|
23
23
|
initTurso,
|
|
24
24
|
isDaemonRoutingActive
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4OZXJX3M.js";
|
|
26
26
|
import {
|
|
27
27
|
buildMemoryInsert,
|
|
28
28
|
persistMemoryBatch,
|
|
29
29
|
readMemoryWriteOutcome
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2LQE52MI.js";
|
|
31
31
|
import {
|
|
32
32
|
memoryWriteScope,
|
|
33
33
|
sameMemoryWriteScope
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-C7GHNJPW.js";
|
|
44
44
|
import {
|
|
45
45
|
getMasterKey
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4XRQEQNK.js";
|
|
47
47
|
import {
|
|
48
48
|
loadConfig
|
|
49
49
|
} from "./chunk-MMS2HBRT.js";
|
|
@@ -93,7 +93,7 @@ function recordShardFailure(project, error) {
|
|
|
93
93
|
`[store] Shard circuit OPEN for "${project}" after ${state.failures} consecutive failures. Will retry in ${SHARD_CB_COOLDOWN_MS / 6e4}min. Last error: ${error}
|
|
94
94
|
`
|
|
95
95
|
);
|
|
96
|
-
void import("./orchestration-events-
|
|
96
|
+
void import("./orchestration-events-7JWQRUVB.js").then(({ recordOrchestrationEventBestEffort }) => {
|
|
97
97
|
recordOrchestrationEventBestEffort({
|
|
98
98
|
eventType: "shard.circuit_open",
|
|
99
99
|
source: "store.recordShardFailure",
|
|
@@ -185,7 +185,7 @@ async function initStore(options) {
|
|
|
185
185
|
if (!options?.lightweight) {
|
|
186
186
|
try {
|
|
187
187
|
if (process.env.EXE_DISABLE_SHARDING !== "1") {
|
|
188
|
-
const { initShardManager } = await import("./shard-manager-
|
|
188
|
+
const { initShardManager } = await import("./shard-manager-6U634WL5.js");
|
|
189
189
|
initShardManager(hexKey);
|
|
190
190
|
}
|
|
191
191
|
} catch (e) {
|
|
@@ -198,7 +198,7 @@ async function initStore(options) {
|
|
|
198
198
|
);
|
|
199
199
|
_nextVersion = (Number(vResult.rows[0]?.max_v) || 0) + 1;
|
|
200
200
|
try {
|
|
201
|
-
const { loadGlobalProcedures } = await import("./global-procedures-
|
|
201
|
+
const { loadGlobalProcedures } = await import("./global-procedures-CK2S4OJ5.js");
|
|
202
202
|
await loadGlobalProcedures();
|
|
203
203
|
} catch (e) {
|
|
204
204
|
logStoreWarn("catch", e);
|
|
@@ -319,7 +319,7 @@ async function writeMemory(record) {
|
|
|
319
319
|
founder_id: record.founder_id ?? null
|
|
320
320
|
};
|
|
321
321
|
try {
|
|
322
|
-
const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-
|
|
322
|
+
const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-BF2CPNT5.js");
|
|
323
323
|
const poisonResult = await checkMemoryPoisoning({
|
|
324
324
|
memoryId: dbRow.id,
|
|
325
325
|
vector: Array.isArray(dbRow.vector) ? dbRow.vector : void 0,
|
|
@@ -378,19 +378,19 @@ async function flushPendingBatch() {
|
|
|
378
378
|
}
|
|
379
379
|
if (eligibleBatch.length > 0) {
|
|
380
380
|
try {
|
|
381
|
-
const { insertMemoryCardsForBatch } = await import("./memory-cards-
|
|
381
|
+
const { insertMemoryCardsForBatch } = await import("./memory-cards-R3P6S2SY.js");
|
|
382
382
|
await insertMemoryCardsForBatch(eligibleBatch);
|
|
383
383
|
} catch (e) {
|
|
384
384
|
logStoreWarn("catch", e);
|
|
385
385
|
}
|
|
386
386
|
try {
|
|
387
|
-
const { insertOntologyForBatch } = await import("./agentic-ontology-
|
|
387
|
+
const { insertOntologyForBatch } = await import("./agentic-ontology-6FF6O2DE.js");
|
|
388
388
|
await insertOntologyForBatch(eligibleBatch);
|
|
389
389
|
} catch (e) {
|
|
390
390
|
logStoreWarn("catch", e);
|
|
391
391
|
}
|
|
392
392
|
try {
|
|
393
|
-
const { extractGraphForBatch } = await import("./memory-graph-extractor-
|
|
393
|
+
const { extractGraphForBatch } = await import("./memory-graph-extractor-HR247CPK.js");
|
|
394
394
|
await extractGraphForBatch(eligibleBatch);
|
|
395
395
|
} catch (e) {
|
|
396
396
|
logStoreWarn("catch", e);
|
|
@@ -398,7 +398,7 @@ async function flushPendingBatch() {
|
|
|
398
398
|
}
|
|
399
399
|
_lastFlushShardFailures = [];
|
|
400
400
|
try {
|
|
401
|
-
const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-
|
|
401
|
+
const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-6U634WL5.js");
|
|
402
402
|
if (process.env.EXE_DISABLE_SHARDING !== "1" && isShardingEnabled()) {
|
|
403
403
|
const byProject = /* @__PURE__ */ new Map();
|
|
404
404
|
let skippedUnknown = 0;
|
|
@@ -577,7 +577,7 @@ async function searchMemories(queryVector, agentId, options) {
|
|
|
577
577
|
let client;
|
|
578
578
|
let isMainDb = true;
|
|
579
579
|
try {
|
|
580
|
-
const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-
|
|
580
|
+
const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-6U634WL5.js");
|
|
581
581
|
if (!options?.strictSessionScope && isShardingEnabled() && options?.projectName && shardExists(options.projectName)) {
|
|
582
582
|
client = await getReadyShardClient(options.projectName);
|
|
583
583
|
isMainDb = false;
|
|
@@ -616,7 +616,7 @@ async function searchMemories(queryVector, agentId, options) {
|
|
|
616
616
|
args.push(activeEmbeddingModel);
|
|
617
617
|
}
|
|
618
618
|
try {
|
|
619
|
-
const { founderScopeFilter } = await import("./founder-context-
|
|
619
|
+
const { founderScopeFilter } = await import("./founder-context-X3EJQ2CX.js");
|
|
620
620
|
const founderFilter = founderScopeFilter(options?.founderId);
|
|
621
621
|
sql += founderFilter.sql;
|
|
622
622
|
args.push(...founderFilter.args.filter((a) => a !== null));
|
|
@@ -700,7 +700,7 @@ async function searchMemories(queryVector, agentId, options) {
|
|
|
700
700
|
source_type: row.source_type ?? null,
|
|
701
701
|
strength: row.strength ?? 1
|
|
702
702
|
}));
|
|
703
|
-
const { filterWikiRecallResults } = await import("./wiki-acl-
|
|
703
|
+
const { filterWikiRecallResults } = await import("./wiki-acl-V6ZFV44C.js");
|
|
704
704
|
return filterWikiRecallResults(mapped, agentId);
|
|
705
705
|
}
|
|
706
706
|
async function attachDocumentMetadata(records) {
|