@askexenow/exe-os 0.9.359 → 0.9.362
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/compose/docker-compose.yml +7 -1
- package/deploy/compose/generate-env.ts +23 -4
- package/deploy/compose/sso-edge/default.conf.template +35 -0
- package/deploy/compose/sso-edge/sso-redirect.conf +23 -2
- package/deploy/stack-manifests/v0.9.json +228 -2
- package/dist/.dist-verified.json +3 -3
- package/dist/{active-agent-DMKNHGSG.js → active-agent-3FV5V7SS.js} +9 -8
- package/dist/{active-agent-Y3DCBD7J.js → active-agent-BPNEBKHI.js} +9 -8
- package/dist/{agentic-ontology-3233PNKV.js → agentic-ontology-RCVCJ6WB.js} +1 -1
- package/dist/{backfill-gate-DA7UT6UD.js → backfill-gate-LRX77SUD.js} +3 -2
- package/dist/{backfill-metadata-4DS4A5U3.js → backfill-metadata-Y3DGVCK5.js} +12 -11
- package/dist/{background-jobs-XGTLESKM.js → background-jobs-Z6KHCWES.js} +3 -2
- package/dist/{backup-verify-JNYKXIU2.js → backup-verify-TZPPUCLU.js} +5 -4
- package/dist/{behavior-injection-CGAMI552.js → behavior-injection-JMGGWCWG.js} +21 -13
- package/dist/{behaviors-57AMN5IP.js → behaviors-TT6CMEKC.js} +20 -12
- package/dist/bin/age-ontology-load.js +3 -2
- package/dist/bin/agentic-ontology-backfill.js +14 -13
- package/dist/bin/agentic-reflection-backfill.js +15 -14
- package/dist/bin/agentic-semantic-label.js +14 -13
- package/dist/bin/backfill-conversations.js +16 -14
- package/dist/bin/backfill-responses.js +16 -14
- package/dist/bin/backfill-vectors.js +20 -18
- package/dist/bin/bulk-sync-postgres.js +27 -24
- package/dist/bin/cc-doctor.js +13 -11
- package/dist/bin/cleanup-stale-review-tasks.js +31 -28
- package/dist/bin/cli.js +157 -47
- package/dist/bin/customer-readiness.js +10 -1
- package/dist/bin/deferred-daemon-restart.js +127 -104
- package/dist/bin/exe-agent-config.js +9 -8
- package/dist/bin/exe-agent.js +17 -16
- package/dist/bin/exe-assign.js +18 -16
- package/dist/bin/exe-boot.js +62 -49
- package/dist/bin/exe-call.js +10 -9
- package/dist/bin/exe-cloud.js +29 -26
- package/dist/bin/exe-config-dump.js +9 -8
- package/dist/bin/exe-dispatch.js +31 -28
- package/dist/bin/exe-doctor.js +14 -10
- package/dist/bin/exe-export-behaviors.js +22 -14
- package/dist/bin/exe-forget.js +14 -13
- package/dist/bin/exe-gateway.js +13 -12
- package/dist/bin/exe-grant.js +6 -6
- package/dist/bin/exe-healthcheck.js +13 -11
- package/dist/bin/exe-heartbeat.js +33 -30
- package/dist/bin/exe-kill.js +36 -33
- package/dist/bin/exe-launch-agent.js +126 -44
- package/dist/bin/exe-mcp.js +165 -1
- package/dist/bin/exe-memory-reads.js +12 -11
- package/dist/bin/exe-new-employee.js +20 -17
- package/dist/bin/exe-os-mcp-proxy.js +9 -8
- package/dist/bin/exe-pending-messages.js +32 -29
- package/dist/bin/exe-pending-notifications.js +31 -28
- package/dist/bin/exe-pending-reviews.js +31 -28
- package/dist/bin/exe-preflight.js +1 -1
- package/dist/bin/exe-rename.js +10 -9
- package/dist/bin/exe-review.js +35 -32
- package/dist/bin/exe-search.js +13 -12
- package/dist/bin/exe-session-cleanup.js +36 -33
- package/dist/bin/exe-settings.js +28 -25
- package/dist/bin/exe-start-codex.js +27 -19
- package/dist/bin/exe-start-opencode.js +23 -15
- package/dist/bin/exe-start.sh +11 -7
- package/dist/bin/exe-status.js +32 -29
- package/dist/bin/exe-support.js +5 -4
- package/dist/bin/exe-team.js +9 -8
- package/dist/bin/exe-watchdog.js +115 -30
- package/dist/bin/git-sweep.js +32 -29
- package/dist/bin/graph-backfill.js +14 -13
- package/dist/bin/graph-export.js +13 -12
- package/dist/bin/import-history.js +16 -15
- package/dist/bin/install.js +392 -201
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +10 -9
- package/dist/bin/postgres-agentic-reflection-backfill.js +5 -4
- package/dist/bin/postgres-agentic-semantic-backfill.js +4 -3
- package/dist/bin/reconcile-backlog.js +2 -2
- package/dist/bin/registry-proxy.js +1 -1
- package/dist/bin/scan-tasks.js +31 -28
- package/dist/bin/setup.js +7 -4
- package/dist/bin/shard-migrate.js +13 -12
- package/dist/bin/stack-update.js +45 -14
- package/dist/bin/update.js +4 -3
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{boot-generation-4D3CTT7X.js → boot-generation-XABYKF5P.js} +9 -8
- package/dist/{boot-review-sections-NDFE5443.js → boot-review-sections-2X5TFIGU.js} +30 -27
- package/dist/{branch-hygiene-HNSOUDJE.js → branch-hygiene-Z4IBWAOX.js} +2 -1
- package/dist/{branding-6FHWZQYQ.js → branding-7MZDHTKN.js} +3 -2
- package/dist/build-manifest.json +1249 -1069
- package/dist/{capability-cards-OBB7BMMX.js → capability-cards-O5UXDOOA.js} +8 -7
- package/dist/{capacity-monitor-QLPEL6S5.js → capacity-monitor-IPXM726A.js} +32 -29
- package/dist/{catchup-brief-EN7QR6MP.js → catchup-brief-EBIGDXOK.js} +36 -33
- package/dist/{chunk-WRP5AG4D.js → chunk-23KWUA7Z.js} +2 -2
- package/dist/{chunk-PDRIIEFV.js → chunk-2FA4PYYX.js} +1 -1
- package/dist/chunk-2PRAXZWM.js +261 -0
- package/dist/{chunk-R6LNQAUG.js → chunk-327Q53AS.js} +34 -1
- package/dist/{chunk-MBULOZJF.js → chunk-32FEF5BW.js} +2 -2
- package/dist/{chunk-2YGAKBRG.js → chunk-35FD67ZB.js} +3 -3
- package/dist/{chunk-R62ITJDQ.js → chunk-3C7NE4JE.js} +1 -1
- package/dist/{chunk-YBX3G5OP.js → chunk-3ICF4IAZ.js} +1 -1
- package/dist/{chunk-CVTWQZOR.js → chunk-3L2QU5ZF.js} +14 -2
- package/dist/{chunk-I5AVZOL2.js → chunk-3YBJ36UX.js} +2 -2
- package/dist/{chunk-NKDKB2RT.js → chunk-465RCKVI.js} +6 -6
- package/dist/{chunk-QROIFRKI.js → chunk-4AFD4R35.js} +5 -5
- package/dist/{chunk-OSID72CN.js → chunk-4L33OFU4.js} +25 -1
- package/dist/{chunk-A6VIK3SS.js → chunk-4P2BFNSB.js} +2 -2
- package/dist/{chunk-SIGAQQHW.js → chunk-4R2WD6T3.js} +2 -2
- package/dist/{chunk-HPHF5VTT.js → chunk-4U56FZ7B.js} +4 -4
- package/dist/{chunk-2KLVTRY2.js → chunk-54USDN5Q.js} +1 -1
- package/dist/{chunk-CAEWPEBA.js → chunk-5C6ZIJ7J.js} +1 -1
- package/dist/{chunk-46RPEWTH.js → chunk-5H3RHWRE.js} +1 -1
- package/dist/chunk-5OPAUFLP.js +126 -0
- package/dist/{chunk-EHM4E62N.js → chunk-6DTALXOA.js} +1 -1
- package/dist/chunk-6EM6USV7.js +1332 -0
- package/dist/{chunk-JE34CB5H.js → chunk-6N3HUOV3.js} +2 -2
- package/dist/{chunk-6KREY2Q7.js → chunk-6QJXFLNN.js} +5 -5
- package/dist/{chunk-G37RG543.js → chunk-6UZDGEGQ.js} +1 -1
- package/dist/{chunk-APR556TY.js → chunk-6Y3KUO7Q.js} +190 -29
- package/dist/{chunk-2EAYZ3BK.js → chunk-7H3AZNQ7.js} +9 -9
- package/dist/{chunk-C5YZMYQH.js → chunk-7SY2NOMQ.js} +1 -1
- package/dist/{chunk-OAYTQ4RY.js → chunk-AL4HXKDJ.js} +55 -12
- package/dist/{chunk-VY5VU7SX.js → chunk-AOMFYUPT.js} +2 -2
- package/dist/{chunk-EX2SSLNU.js → chunk-AQO3BT3I.js} +12 -12
- package/dist/chunk-ARX6TAGN.js +102 -0
- package/dist/chunk-B6PFGUYJ.js +159 -0
- package/dist/{chunk-FASR2WLT.js → chunk-BDLRTLXY.js} +1 -1
- package/dist/chunk-BJEQBKGH.js +218 -0
- package/dist/{chunk-BCZF3AGJ.js → chunk-BRIZ6OZ3.js} +34 -44
- package/dist/{chunk-OMXJMOBD.js → chunk-BRZR76TS.js} +66 -0
- package/dist/{chunk-XV42EAVK.js → chunk-BT2PUK3S.js} +1 -1
- package/dist/{chunk-6EOLGE7T.js → chunk-CVYDJ2TW.js} +1 -1
- package/dist/{chunk-WCP4OQUL.js → chunk-CXQ724WH.js} +2 -2
- package/dist/{chunk-F3QTF4T7.js → chunk-CY5NVDTH.js} +3 -3
- package/dist/{chunk-3ODATKWH.js → chunk-D5CY4E7I.js} +1 -1
- package/dist/{chunk-W5YV2PZE.js → chunk-DKRDU2AX.js} +16 -16
- package/dist/{chunk-SNWV44E5.js → chunk-DSKEYEL2.js} +12 -5
- package/dist/{chunk-VXL7PJ56.js → chunk-E3YI6FVJ.js} +5 -24
- package/dist/{chunk-6SK4MM5B.js → chunk-E7PL3T2U.js} +1 -1
- package/dist/{chunk-IOEUAQWP.js → chunk-EEZOBN6X.js} +1 -1
- package/dist/{chunk-AHMUF6RO.js → chunk-G2M7WQ2M.js} +0 -2
- package/dist/{chunk-SKGMF2SO.js → chunk-GBNB4EWD.js} +22 -1
- package/dist/{chunk-UZ5RJYL3.js → chunk-HAXCUCJC.js} +1 -1
- package/dist/{chunk-VMR6M6GN.js → chunk-HISFWAAK.js} +1 -1
- package/dist/{chunk-DKRSKC5R.js → chunk-HKQ7UTSE.js} +1 -1
- package/dist/chunk-HLQ4MS42.js +257 -0
- package/dist/{chunk-EA5FVACM.js → chunk-HLU52KTO.js} +29 -18
- package/dist/{chunk-QWVXN224.js → chunk-HPXFKUGU.js} +350 -65
- package/dist/{chunk-2OVTGZYH.js → chunk-HSKABJE6.js} +46 -3
- package/dist/{chunk-NE57GONM.js → chunk-I3SF6QGV.js} +1 -1
- package/dist/chunk-J6KMGEJW.js +238 -0
- package/dist/chunk-JKKZGDLP.js +182 -0
- package/dist/{chunk-3ZEVMZ4G.js → chunk-JYKZVAS6.js} +1 -1
- package/dist/{chunk-4DYJ6NOK.js → chunk-KA4WVDLX.js} +2 -2
- package/dist/{chunk-QH2XAUZ5.js → chunk-KBI4FVBZ.js} +1 -1
- package/dist/{chunk-VAY6IXWY.js → chunk-KDMVVHZH.js} +1 -1
- package/dist/{chunk-4FQIWAXA.js → chunk-KID6T2A4.js} +10 -10
- package/dist/{chunk-HNPHPGGF.js → chunk-KIKB6FY3.js} +2 -2
- package/dist/{chunk-STFR72YH.js → chunk-LCDW2HUL.js} +1 -1
- package/dist/{chunk-RFUTLZ2U.js → chunk-LG37UBBE.js} +4 -4
- package/dist/{chunk-3QWOO74G.js → chunk-LLZNPOGB.js} +97 -3
- package/dist/chunk-M67ARGXY.js +175 -0
- package/dist/chunk-MPVXHYD5.js +85 -0
- package/dist/{chunk-RXL7A7JH.js → chunk-MZYNW5OY.js} +1 -1
- package/dist/{chunk-DQ75MEPU.js → chunk-MZZN5GFC.js} +1 -1
- package/dist/{chunk-X2F6Q7TW.js → chunk-NAHCSQWT.js} +1 -1
- package/dist/{chunk-AL7JMA54.js → chunk-NE4QI2GX.js} +2 -2
- package/dist/chunk-NGDXBN3M.js +254 -0
- package/dist/{chunk-HDSDXGLV.js → chunk-NO5KHKKB.js} +1 -1
- package/dist/chunk-NOKJCF27.js +437 -0
- package/dist/{chunk-PLOEFBFW.js → chunk-O32HTNRX.js} +3 -3
- package/dist/{chunk-UPM5JP6G.js → chunk-OZNCAMS3.js} +47 -4
- package/dist/{chunk-XLEYCOHX.js → chunk-P7CV4SHQ.js} +398 -58
- package/dist/{chunk-G2KK64UB.js → chunk-PDJWHL63.js} +101 -19
- package/dist/{chunk-W3XUU36X.js → chunk-PF7EQSE5.js} +5 -5
- package/dist/{chunk-QX7RWICL.js → chunk-PU7UYQRC.js} +1 -1
- package/dist/{chunk-A5WEEND7.js → chunk-PUMH7JSB.js} +3 -3
- package/dist/{chunk-POZGQQEZ.js → chunk-PV5BIXT6.js} +1 -1
- package/dist/{chunk-TG7JYSEA.js → chunk-Q2VQNAPU.js} +5 -2
- package/dist/{chunk-Z2PAVJJ4.js → chunk-Q7J2SQJ6.js} +127 -29
- package/dist/{chunk-4JERP7NT.js → chunk-QAEWWYHL.js} +29 -1
- package/dist/{chunk-6JTKIXLU.js → chunk-QCJT265O.js} +1 -1
- package/dist/{chunk-OY2PWHYR.js → chunk-QI25QRUP.js} +2 -2
- package/dist/chunk-QILQ5FCG.js +198 -0
- package/dist/{chunk-LRETL4I3.js → chunk-QJBX3MBV.js} +3 -3
- package/dist/{chunk-57GRYGDU.js → chunk-QP53XLC5.js} +1 -1
- package/dist/{chunk-JBAMYKBL.js → chunk-QQMYD4M7.js} +1 -1
- package/dist/{chunk-SHEWTDPC.js → chunk-QY3TM2T3.js} +4 -4
- package/dist/{chunk-WA2MJGPT.js → chunk-QYRI25IP.js} +3 -3
- package/dist/{chunk-QLFN3MUW.js → chunk-RCOIKTHM.js} +1 -1
- package/dist/{chunk-ITRKRKS7.js → chunk-RFKRCVGW.js} +1 -1
- package/dist/{chunk-HK7SQDKJ.js → chunk-RNSAVQEU.js} +2 -2
- package/dist/{chunk-44WFVMZ5.js → chunk-RUUX2ZST.js} +1 -1
- package/dist/{chunk-DWKH2H7W.js → chunk-RWKX2TK5.js} +1 -1
- package/dist/{chunk-MCNDZU5W.js → chunk-RYRNY6IF.js} +2 -2
- package/dist/{chunk-5I3YC7ER.js → chunk-SC6WDF3Q.js} +2 -2
- package/dist/chunk-SLBOKYYQ.js +197 -0
- package/dist/{chunk-74R44E4S.js → chunk-SQM4ZTL2.js} +246 -96
- package/dist/{chunk-KIXNMTGC.js → chunk-SRFRUN66.js} +5 -5
- package/dist/chunk-SXKIGBNF.js +61 -0
- package/dist/chunk-T2RZU7JA.js +2607 -0
- package/dist/{chunk-2I23RPSI.js → chunk-TKDITWDN.js} +9 -0
- package/dist/{chunk-5UAMBMNR.js → chunk-TN2E6ZCM.js} +44 -34
- package/dist/{chunk-SQBNN44X.js → chunk-TP7RXGMP.js} +49 -15
- package/dist/{chunk-GSVQBBE5.js → chunk-TY4JLBFO.js} +2 -2
- package/dist/{chunk-7QRMFYOV.js → chunk-UHPMK6QZ.js} +17 -3
- package/dist/{chunk-LPKTGK7L.js → chunk-UO5QJ2RX.js} +4 -4
- package/dist/{chunk-VCCZQDCU.js → chunk-URNVIZXU.js} +3 -3
- package/dist/{chunk-OIS5VIAH.js → chunk-UWEFIIEG.js} +6 -2
- package/dist/{chunk-IQWAYXVF.js → chunk-V5I5N7NC.js} +3 -3
- package/dist/{chunk-GD7VXXW6.js → chunk-V6YLIDLK.js} +801 -180
- package/dist/chunk-VAOUB2TK.js +23 -0
- package/dist/{chunk-XVTKJEI2.js → chunk-VDMFVUSY.js} +3 -3
- package/dist/{chunk-RJ67HG2P.js → chunk-VWTUKKUF.js} +4 -4
- package/dist/{chunk-4WSUP4CC.js → chunk-W3LKIQJ2.js} +43 -17
- package/dist/{chunk-EUQF3JOH.js → chunk-WBG7XYVR.js} +1 -1
- package/dist/{chunk-YKRNH5LU.js → chunk-WH2VVEGD.js} +1 -1
- package/dist/{chunk-NP2Y7P3I.js → chunk-WP2TGH5R.js} +1 -1
- package/dist/chunk-WT4RI36X.js +23 -0
- package/dist/{chunk-LXG37RB2.js → chunk-XJIRUTGJ.js} +1 -1
- package/dist/chunk-XRCX6R5S.js +57 -0
- package/dist/{chunk-XWWNRFRF.js → chunk-XSYQ5EPE.js} +11 -11
- package/dist/{chunk-HKK7LLS5.js → chunk-XTGR3LMF.js} +34 -3
- package/dist/{chunk-HLEZ5O5P.js → chunk-XUB4GFPN.js} +17 -15
- package/dist/chunk-YZUHSV24.js +277 -0
- package/dist/{chunk-6WHYSLGF.js → chunk-Z67DIJKT.js} +1 -1
- package/dist/{chunk-6LY3QSJA.js → chunk-ZI3HA3XW.js} +11 -6
- package/dist/{chunk-YEOIPUFO.js → chunk-ZR4CQBAP.js} +1 -1
- package/dist/{chunk-VNK3MNZE.js → chunk-ZZEKOI2M.js} +1 -1
- package/dist/{cleanup-graph-garbage-XFGY4EEE.js → cleanup-graph-garbage-6F22Y5SD.js} +13 -12
- package/dist/{cloud-sync-shutdown-XCOATIJW.js → cloud-sync-shutdown-FWERMZB5.js} +8 -7
- package/dist/{co-activation-XNBLOGK3.js → co-activation-UEEDCM5U.js} +8 -7
- package/dist/{co-occurrence-HO4PGQC4.js → co-occurrence-W6OPFRSY.js} +11 -10
- package/dist/{code-context-index-5RY66SWZ.js → code-context-index-DWR6HS35.js} +7 -5
- package/dist/consent-passphrase-Z64GFJXK.js +23 -0
- package/dist/{conversation-entity-extractor-5G5DGRJU.js → conversation-entity-extractor-LWUIH3UB.js} +3 -3
- package/dist/{conversation-wiki-populator-RZKG6PK4.js → conversation-wiki-populator-5EGRW2UZ.js} +1 -1
- package/dist/{crdt-sync-6TD7LSZW.js → crdt-sync-NHJX3ZJD.js} +5 -4
- package/dist/{crm-webhook-WZAV5776.js → crm-webhook-OY467ATC.js} +2 -2
- package/dist/{cto-delegation-gate-UHMYFM4D.js → cto-delegation-gate-XH4YSQVC.js} +30 -27
- package/dist/{daemon-auth-SXZHLUYS.js → daemon-auth-OCHW2U6B.js} +3 -2
- package/dist/{daemon-orchestration-DT5M2ZAR.js → daemon-orchestration-7425ZVNH.js} +35 -32
- package/dist/{daemon-ready-56VAPZU6.js → daemon-ready-VGPSRI3Z.js} +1 -1
- package/dist/{daemon-restart-circuit-breaker-5V6B6NLS.js → daemon-restart-circuit-breaker-SMTWFX27.js} +25 -3
- package/dist/db-backend-ODVJ3Q3D.js +7 -0
- package/dist/{db-restore-events-ZLD2HRQV.js → db-restore-events-TFCZ4CPM.js} +2 -1
- package/dist/{doc-graph-extractor-FNCYPFKY.js → doc-graph-extractor-RR2VSO4W.js} +11 -10
- package/dist/{documents-GKDZDUED.js → documents-TRZ4R2ZW.js} +18 -16
- package/dist/dreaming-MAMZAPYW.js +63 -0
- package/dist/{exe-drift-QTKD2FHT.js → exe-drift-VBWB5E6S.js} +9 -8
- package/dist/{exe-export-ESJ6KP6J.js → exe-export-XJJTVVT7.js} +21 -13
- package/dist/{exe-import-N4X3GEQB.js → exe-import-G6O7JFNZ.js} +21 -13
- package/dist/{exe-key-KZCCHX3W.js → exe-key-A2WJLLTM.js} +116 -99
- package/dist/exe-org-HXF4XBB3.js +672 -0
- package/dist/{exe-snapshot-SCRPHCPZ.js → exe-snapshot-TL3TLKLR.js} +38 -33
- package/dist/{fast-db-init-6H67K76Q.js → fast-db-init-SO2XUQ7T.js} +1 -1
- package/dist/{founder-context-C7X7IRDA.js → founder-context-IOCADC66.js} +4 -3
- package/dist/{founder-monitor-envelope-DHSUMBWU.js → founder-monitor-envelope-SMILO4BT.js} +7 -5
- package/dist/gateway/index.js +23 -22
- package/dist/{gateway-client-7LMZKHTH.js → gateway-client-JA2BH7QO.js} +1 -1
- package/dist/{git-staleness-JCKVMWPO.js → git-staleness-I6WT7EXV.js} +8 -7
- package/dist/{global-procedures-BR7WGSE7.js → global-procedures-3RMO6C3C.js} +9 -8
- package/dist/{graph-auto-extract-EOXWQRBZ.js → graph-auto-extract-NKTYPD2I.js} +11 -10
- package/dist/{graph-rag-5FVC5JXH.js → graph-rag-EOGPZOYI.js} +3 -3
- package/dist/{hook-integrity-TYGDD7OE.js → hook-integrity-RTBF2BL2.js} +1 -1
- package/dist/{hook-prefetch-2CN3MK4H.js → hook-prefetch-V5KCGW2N.js} +31 -28
- package/dist/hooks/bug-report-worker.js +35 -32
- package/dist/hooks/codex-stop-task-finalizer.js +36 -33
- package/dist/hooks/commit-complete.js +34 -31
- package/dist/hooks/error-recall.js +16 -15
- package/dist/hooks/exe-heartbeat-hook.js +10 -9
- package/dist/hooks/ingest-worker.js +12 -10
- package/dist/hooks/ingest.js +19 -18
- package/dist/hooks/instructions-loaded.js +11 -10
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +11 -10
- package/dist/hooks/post-compact.js +11 -115
- package/dist/hooks/post-tool-combined.js +11 -11
- package/dist/hooks/pre-compact.js +38 -64
- package/dist/hooks/pre-tool-use.js +95 -36
- package/dist/hooks/prompt-submit.js +50 -47
- package/dist/hooks/session-end.js +39 -36
- package/dist/hooks/session-start.js +64 -18
- package/dist/hooks/stop.js +40 -37
- package/dist/hooks/subagent-stop.js +35 -32
- package/dist/hooks/summary-worker.js +41 -38
- package/dist/index.js +45 -42
- package/dist/inrun-inbox-DRKVDPLY.js +29 -0
- package/dist/{installer-VPNTM3X6.js → installer-G67M3DME.js} +11 -10
- package/dist/{installer-YDLSXGD2.js → installer-L3ZKMOPU.js} +11 -10
- package/dist/{installer-7UV3CNWZ.js → installer-QBWZSYDG.js} +11 -10
- package/dist/{intercom-queue-KHKJJYCQ.js → intercom-queue-R5LSXD3V.js} +30 -27
- package/dist/{key-backup-status-YMS7YGWO.js → key-backup-status-3RC6XTUX.js} +2 -1
- package/dist/lib/agent-config.js +3 -2
- package/dist/lib/cloud-sync.js +27 -24
- package/dist/lib/config.js +6 -1
- package/dist/lib/consolidation.js +14 -13
- package/dist/lib/crypto.js +4 -3
- package/dist/lib/database.js +8 -7
- package/dist/lib/db-backup.js +4 -3
- package/dist/lib/db-checkpoint-worker.js +1 -1
- package/dist/lib/db-daemon-client.js +7 -5
- package/dist/lib/db-read-worker-client.js +1 -1
- package/dist/lib/db-read-worker.js +1 -1
- package/dist/lib/db-write-worker-client.js +4 -2
- package/dist/lib/db-write-worker.js +21 -3
- package/dist/lib/db.js +8 -7
- package/dist/lib/device-registry.js +3 -2
- package/dist/lib/embed-worker.js +2 -1
- package/dist/lib/embedder.js +7 -5
- package/dist/lib/employee-templates.js +10 -9
- package/dist/lib/employees.js +8 -7
- package/dist/lib/error-detector.js +1 -1
- package/dist/lib/exe-daemon-client.js +16 -6
- package/dist/lib/exe-daemon.js +342 -168
- package/dist/lib/hybrid-search.js +13 -12
- package/dist/lib/identity-templates.js +3 -1
- package/dist/lib/identity.js +8 -7
- package/dist/lib/keychain.js +41 -3
- package/dist/lib/license.js +12 -3
- package/dist/lib/messaging.js +31 -28
- package/dist/lib/platform-support.js +25 -0
- package/dist/lib/post-tool-memory.js +6 -4
- package/dist/lib/preflight.js +29 -0
- package/dist/lib/registry-proxy.js +1 -1
- package/dist/lib/reminders.js +9 -8
- package/dist/lib/schedules.js +13 -12
- package/dist/lib/session-registry.js +10 -9
- package/dist/lib/session-wrappers.js +7 -3
- package/dist/lib/skill-learning.js +21 -13
- package/dist/lib/status-brief.js +8 -3
- package/dist/lib/store.js +12 -11
- package/dist/lib/task-router.js +9 -8
- package/dist/lib/tasks.js +32 -29
- package/dist/lib/tmux-routing.js +45 -29
- package/dist/lib/tmux-status.js +7 -3
- package/dist/lib/token-spend.js +9 -8
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-YXUSNA2I.js → license-gate-6R3F3NQR.js} +5 -4
- package/dist/{license-sync-XFDOXL3Z.js → license-sync-VBJCXBAP.js} +4 -3
- package/dist/linux-systemd-LRW3BYSS.js +38 -0
- package/dist/mailbox-inbox-CP2VRBXZ.js +10 -0
- package/dist/mailbox-outbox-HXI7DYNC.js +19 -0
- package/dist/mcp/register-tools.js +110 -94
- package/dist/mcp/server.js +113 -97
- package/dist/mcp/tools/complete-reminder.js +10 -9
- package/dist/mcp/tools/create-reminder.js +10 -9
- package/dist/mcp/tools/create-task.js +38 -31
- package/dist/mcp/tools/deactivate-behavior.js +22 -14
- package/dist/mcp/tools/list-reminders.js +10 -9
- package/dist/mcp/tools/list-tasks.js +34 -31
- package/dist/mcp/tools/send-message.js +33 -30
- package/dist/mcp/tools/update-task.js +33 -30
- package/dist/{mcp-http-config-HIP5CEDV.js → mcp-http-config-BWX7AMAZ.js} +9 -8
- package/dist/{mcp-session-identity-RTNZ2ZLW.js → mcp-session-identity-GOBGICLI.js} +30 -27
- package/dist/{memory-cards-KG4TPNKK.js → memory-cards-4EXX3BQS.js} +12 -11
- package/dist/{memory-graph-extractor-6HTBLO2N.js → memory-graph-extractor-OYVZIJ3R.js} +12 -11
- package/dist/{memory-poisoning-defense-3ZT57RSJ.js → memory-poisoning-defense-AHOD2EBX.js} +8 -7
- package/dist/{memory-pressure-watchdog-ZOZBIMKC.js → memory-pressure-watchdog-COJC3OYS.js} +31 -28
- package/dist/{memory-queue-W54BYW7V.js → memory-queue-4VN3DTOE.js} +3 -2
- package/dist/memory-queue-client-OI4LDT4W.js +18 -0
- package/dist/{memory-reflection-EQC4FXSW.js → memory-reflection-V2SNAUIB.js} +8 -7
- package/dist/{monitor-grants-BDLVFVDR.js → monitor-grants-W3ISOLMC.js} +6 -4
- package/dist/{monitor-identity-GLFZSEAH.js → monitor-identity-AN3B5QIN.js} +3 -2
- package/dist/{notification-ledger-NZ4HO3M5.js → notification-ledger-J6Q2GAYU.js} +117 -53
- package/dist/{notifications-74YECZ4V.js → notifications-56TP36IK.js} +30 -27
- package/dist/{orchestration-events-KRQI4ED5.js → orchestration-events-CKQ756NA.js} +9 -8
- package/dist/{orchestration-phase-KVF42ZKU.js → orchestration-phase-ZJ4XVNFO.js} +3 -2
- package/dist/orchestrator-ERSQ3KNT.js +55 -0
- package/dist/org-brief-session-FSZ3QJDN.js +45 -0
- package/dist/org-consent-policy-BN7MKCZ2.js +68 -0
- package/dist/org-join-HTQ57JYH.js +35 -0
- package/dist/org-key-admin-4W6LZ5KZ.js +242 -0
- package/dist/org-key-pin-OTOKAELD.js +37 -0
- package/dist/{org-membership-B32NS5NI.js → org-membership-SML6GCHP.js} +11 -7
- package/dist/org-partner-config-XQGOB7EJ.js +25 -0
- package/dist/org-partner-runtime-RNNUL5IN.js +44 -0
- package/dist/org-row-visibility-JZFJ3YRJ.js +18 -0
- package/dist/{pipeline-router-6ZZV7JMA.js → pipeline-router-IUENNTAY.js} +9 -8
- package/dist/{plan-limits-B7AZKZ6U.js → plan-limits-ZUII366B.js} +11 -10
- package/dist/postinstall-failure-A7WTAXD6.js +20 -0
- package/dist/{project-boot-WEQSKDD7.js → project-boot-3DFY5F35.js} +7 -2
- package/dist/{projection-worker-LRFFQ6JB.js → projection-worker-MBWUPB5O.js} +5 -4
- package/dist/{prospective-memory-A4GDTIWG.js → prospective-memory-GHE5ORN4.js} +8 -7
- package/dist/push-notifications-PTQ5DHCD.js +60 -0
- package/dist/{reranker-YVTLJCFC.js → reranker-NUIGAPA3.js} +3 -2
- package/dist/{retrieval-health-PK2ODTXM.js → retrieval-health-XHCERQPG.js} +1 -1
- package/dist/{review-polling-JFWRNQF6.js → review-polling-CYBCBHZA.js} +31 -28
- package/dist/runtime/index.js +41 -38
- package/dist/{session-events-VMQBCUH3.js → session-events-X33W4JNA.js} +31 -28
- package/dist/{session-kill-telemetry-Z3W256T5.js → session-kill-telemetry-I2F5PUIW.js} +31 -28
- package/dist/session-lineage-AGOHSXIS.js +66 -0
- package/dist/{session-scope-2ADEVY3C.js → session-scope-WXP4F7OF.js} +30 -27
- package/dist/setup-wizard-2CTVITIX.js +35 -0
- package/dist/{shard-manager-DFLCDZT5.js → shard-manager-YEOHEOHL.js} +4 -3
- package/dist/{skill-refinement-APBYOSGX.js → skill-refinement-VDR5OT4V.js} +9 -8
- package/dist/{stack-promote-SZYIPTFT.js → stack-promote-XVC7FRJW.js} +6 -5
- package/dist/{stack-release-EYRDEGPD.js → stack-release-6PWAACRM.js} +101 -80
- package/dist/{stack-update-YWK2YXP6.js → stack-update-24VRBQ3U.js} +9 -4
- package/dist/{steward-gate-CIOBPNX6.js → steward-gate-2ZNYDVFO.js} +9 -8
- package/dist/{support-inbox-OAWGFRKW.js → support-inbox-ZHKLDETT.js} +5 -4
- package/dist/{task-enforcement-YAU6ZGDC.js → task-enforcement-GQDUTIFY.js} +37 -28
- package/dist/task-request-inbox-BFXNUU44.js +64 -0
- package/dist/{task-scope-44N7XP5N.js → task-scope-ERHPHLUM.js} +30 -27
- package/dist/{tasks-crud-IWVDREXG.js → tasks-crud-NVNF3NRA.js} +30 -27
- package/dist/tasks-notify-DXLU5VCT.js +60 -0
- package/dist/{tasks-review-VDFWFETP.js → tasks-review-BST6N34P.js} +30 -27
- package/dist/{telemetry-upload-3X5ESEKM.js → telemetry-upload-NY3EKOGY.js} +13 -12
- package/dist/{token-budget-WZGO22ME.js → token-budget-CLB3GUIX.js} +9 -8
- package/dist/{tool-capability-index-IFNZ6QUS.js → tool-capability-index-WZWVBI2R.js} +1 -1
- package/dist/{tool-telemetry-F7RWUNVK.js → tool-telemetry-PALAZUXT.js} +1 -1
- package/dist/tui/App.js +44 -41
- package/dist/{tui-data-KT7YGVQS.js → tui-data-CNFSRZP7.js} +30 -27
- package/dist/{typed-messages-TKDGVPHS.js → typed-messages-RCMPEKJN.js} +1 -1
- package/dist/{update-support-ZVRMECNQ.js → update-support-ZVB3CNGY.js} +24 -22
- package/dist/{work-state-heartbeat-CA4CN7DQ.js → work-state-heartbeat-O7UMB6SE.js} +1 -1
- package/dist/{worker-gate-52MVKYGZ.js → worker-gate-6DQQWDNB.js} +3 -2
- package/dist/{workflow-engine-ZAFBPVUP.js → workflow-engine-5ZULFH7O.js} +2 -2
- package/dist/{worktree-NNVXVV6A.js → worktree-ZWA35PKW.js} +10 -9
- package/dist/{worktree-sweep-IM2ZQG6Z.js → worktree-sweep-5LCVT46V.js} +11 -10
- package/package.json +8 -20
- package/postinstall.mjs +124 -0
- package/release-notes.json +18 -16
- package/stack.release.schema.json +4 -0
- package/dist/chunk-AFNRE2RV.js +0 -408
- package/dist/chunk-OSKWCKUC.js +0 -6
- package/dist/chunk-S3FIQCSM.js +0 -232
- package/dist/chunk-W6UB2AWP.js +0 -656
- package/dist/dreaming-WPMQJAXW.js +0 -60
- package/dist/exe-org-UK77DUU4.js +0 -73
- package/dist/memory-queue-client-RRNW2IFZ.js +0 -16
- package/dist/orchestrator-WV2YCHTK.js +0 -52
- package/dist/push-notifications-GOFTDDWW.js +0 -15
- package/dist/setup-wizard-26B36FMC.js +0 -14
- package/dist/tasks-notify-WK5HA77D.js +0 -57
- /package/dist/{chunk-YL2JH3XV.js → chunk-6C4UAKMS.js} +0 -0
- /package/dist/{chunk-YMCIZCNK.js → chunk-BN26LSME.js} +0 -0
- /package/dist/{chunk-WTH4CSAP.js → chunk-DFQEUZSI.js} +0 -0
- /package/dist/{chunk-FVWI2AR4.js → chunk-FIPUVCKC.js} +0 -0
- /package/dist/{chunk-ZMYXQU4L.js → chunk-L4LPJMPV.js} +0 -0
- /package/dist/{chunk-COHHVCFA.js → chunk-UELGUVNL.js} +0 -0
- /package/dist/{chunk-U7RZIY74.js → chunk-X7LY3IOB.js} +0 -0
- /package/dist/{chunk-BGYCUZYK.js → chunk-YAZ5ECEG.js} +0 -0
- /package/dist/{chunk-DSGFX3RT.js → chunk-YWN3XMPU.js} +0 -0
- /package/dist/{chunk-YMUZWC33.js → chunk-YYB5PMTK.js} +0 -0
- /package/dist/{core-memory-AATZRQEY.js → core-memory-BZFPVS43.js} +0 -0
- /package/dist/{entity-boost-HLFG2CH3.js → entity-boost-VXXED26D.js} +0 -0
- /package/dist/{memory-isolation-CF6FYSXD.js → memory-isolation-3PIOWLYP.js} +0 -0
- /package/dist/{message-queue-client-AX6KQK7T.js → message-queue-client-5XW7ZOK2.js} +0 -0
- /package/dist/{oauth-server-VE5ELXTF.js → oauth-server-KW5M437C.js} +0 -0
- /package/dist/{webhook-pipe-A4X4SCMW.js → webhook-pipe-QJRFZVKA.js} +0 -0
- /package/dist/{wiki-acl-GNIXYWHJ.js → wiki-acl-RXFV5OEU.js} +0 -0
- /package/dist/{wiki-client-7RRYRSPS.js → wiki-client-57QWZIHQ.js} +0 -0
|
@@ -1,53 +1,22 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import {
|
|
6
|
-
sessionScopeFilter
|
|
7
|
-
} from "../chunk-74R44E4S.js";
|
|
8
|
-
import "../chunk-CAEWPEBA.js";
|
|
9
|
-
import "../chunk-XV42EAVK.js";
|
|
10
|
-
import "../chunk-6WHYSLGF.js";
|
|
11
|
-
import "../chunk-EIKATSE4.js";
|
|
12
|
-
import "../chunk-E23LNUWJ.js";
|
|
13
|
-
import "../chunk-4JERP7NT.js";
|
|
14
|
-
import "../chunk-3ODATKWH.js";
|
|
15
|
-
import "../chunk-UXLO7VHX.js";
|
|
16
|
-
import "../chunk-DSOQUQTV.js";
|
|
17
|
-
import "../chunk-SKGMF2SO.js";
|
|
18
|
-
import "../chunk-POZGQQEZ.js";
|
|
19
|
-
import "../chunk-AJIXH5JF.js";
|
|
20
|
-
import "../chunk-VAY6IXWY.js";
|
|
21
|
-
import "../chunk-AM7S2TY6.js";
|
|
22
|
-
import "../chunk-F3QTF4T7.js";
|
|
23
|
-
import "../chunk-OSKWCKUC.js";
|
|
24
|
-
import "../chunk-KI5PFRG6.js";
|
|
4
|
+
} from "../chunk-23KWUA7Z.js";
|
|
25
5
|
import "../chunk-CVYC6DUW.js";
|
|
26
|
-
import "../chunk-A6VIK3SS.js";
|
|
27
|
-
import "../chunk-RXL7A7JH.js";
|
|
28
|
-
import "../chunk-OPU3NYOO.js";
|
|
29
|
-
import "../chunk-W6UB2AWP.js";
|
|
30
|
-
import "../chunk-AFNRE2RV.js";
|
|
31
|
-
import "../chunk-VMR6M6GN.js";
|
|
32
|
-
import "../chunk-NLEW62VC.js";
|
|
33
|
-
import "../chunk-HYZV25LY.js";
|
|
34
6
|
import "../chunk-GJV3WDWM.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-2I23RPSI.js";
|
|
38
|
-
import "../chunk-5YEUPUV4.js";
|
|
39
|
-
import "../chunk-Z2PAVJJ4.js";
|
|
40
|
-
import "../chunk-OMXJMOBD.js";
|
|
7
|
+
import "../chunk-HLU52KTO.js";
|
|
8
|
+
import "../chunk-TKDITWDN.js";
|
|
41
9
|
import "../chunk-BBMTVAE3.js";
|
|
42
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-5YEUPUV4.js";
|
|
11
|
+
import "../chunk-Q7J2SQJ6.js";
|
|
12
|
+
import "../chunk-YYB5PMTK.js";
|
|
13
|
+
import "../chunk-BRZR76TS.js";
|
|
43
14
|
import "../chunk-V3W3SATA.js";
|
|
44
15
|
import "../chunk-JY5GAZYC.js";
|
|
45
16
|
import "../chunk-FXU7JOXK.js";
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-2OVTGZYH.js";
|
|
48
|
-
import "../chunk-YBX3G5OP.js";
|
|
49
|
-
import "../chunk-BCZF3AGJ.js";
|
|
17
|
+
import "../chunk-BRIZ6OZ3.js";
|
|
50
18
|
import "../chunk-HSGBZSCA.js";
|
|
19
|
+
import "../chunk-JKKZGDLP.js";
|
|
51
20
|
import "../chunk-MLKGABMK.js";
|
|
52
21
|
|
|
53
22
|
// src/adapters/claude/hooks/post-compact.ts
|
|
@@ -60,7 +29,7 @@ process.on("unhandledRejection", (err) => {
|
|
|
60
29
|
process.exit(1);
|
|
61
30
|
});
|
|
62
31
|
try {
|
|
63
|
-
const { verifyOrBlock } = await import("../hook-integrity-
|
|
32
|
+
const { verifyOrBlock } = await import("../hook-integrity-RTBF2BL2.js");
|
|
64
33
|
if (!await verifyOrBlock(new URL(import.meta.url).pathname)) process.exit(2);
|
|
65
34
|
} catch (err) {
|
|
66
35
|
const code = err?.code;
|
|
@@ -92,81 +61,8 @@ process.stdin.on("end", async () => {
|
|
|
92
61
|
try {
|
|
93
62
|
JSON.parse(input);
|
|
94
63
|
const agent = getActiveAgent();
|
|
95
|
-
|
|
96
|
-
if (agent.agentId !== "default") {
|
|
97
|
-
try {
|
|
98
|
-
const { getIdentityInjection } = await import("../lib/identity.js");
|
|
99
|
-
const identity = getIdentityInjection(agent.agentId);
|
|
100
|
-
if (identity) {
|
|
101
|
-
sections.push(`## Role Re-Injection (post-compaction)
|
|
102
|
-
You are **${agent.agentId}**. Your identity and responsibilities:
|
|
103
|
-
|
|
104
|
-
${identity}`);
|
|
105
|
-
process.stderr.write(`[post-compact] Re-injecting identity for ${agent.agentId}
|
|
106
|
-
`);
|
|
107
|
-
}
|
|
108
|
-
} catch {
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
try {
|
|
112
|
-
const { fastDbInit } = await import("../fast-db-init-6H67K76Q.js");
|
|
113
|
-
await fastDbInit({ socketOnly: true });
|
|
114
|
-
const { getClient } = await import("../lib/database.js");
|
|
115
|
-
const client = getClient();
|
|
116
|
-
const projectName = process.cwd().split("/").pop() ?? "unknown";
|
|
117
|
-
const pcScope = sessionScopeFilter();
|
|
118
|
-
if (agent.agentId !== "default") {
|
|
119
|
-
const taskResult = await client.execute({
|
|
120
|
-
sql: `SELECT title, priority, status, task_file FROM tasks WHERE assigned_to = ? AND status IN ('open', 'in_progress')${pcScope.sql} ORDER BY status DESC, priority ASC`,
|
|
121
|
-
args: [agent.agentId, ...pcScope.args]
|
|
122
|
-
});
|
|
123
|
-
if (taskResult.rows.length > 0) {
|
|
124
|
-
const taskLines = taskResult.rows.map((r) => `- [${String(r.priority).toUpperCase()}] ${String(r.title)} (${String(r.status)}) \u2014 ${String(r.task_file)}`).join("\n");
|
|
125
|
-
sections.push(`## Active Tasks (restored after compaction)
|
|
126
|
-
${taskLines}`);
|
|
127
|
-
}
|
|
128
|
-
const fiveMinAgo = new Date(Date.now() - 5 * 60 * 1e3).toISOString();
|
|
129
|
-
const recoveryResult = await client.execute({
|
|
130
|
-
sql: `SELECT raw_text FROM memories
|
|
131
|
-
WHERE agent_id = ? AND tool_name = 'pre-compact-hook'
|
|
132
|
-
AND raw_text LIKE '[COMPACTION RECOVERY]%'
|
|
133
|
-
AND timestamp >= ?
|
|
134
|
-
ORDER BY timestamp DESC LIMIT 1`,
|
|
135
|
-
args: [agent.agentId, fiveMinAgo]
|
|
136
|
-
});
|
|
137
|
-
if (recoveryResult.rows.length > 0) {
|
|
138
|
-
sections.push(`## Recovery Context (from pre-compaction checkpoint)
|
|
139
|
-
${String(recoveryResult.rows[0].raw_text)}`);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
const behaviors = await client.execute({
|
|
143
|
-
sql: `SELECT domain, content FROM behaviors
|
|
144
|
-
WHERE agent_id = ? AND active = 1 AND priority = 'p0'
|
|
145
|
-
AND (project_name IS NULL OR project_name = ?)
|
|
146
|
-
ORDER BY updated_at DESC LIMIT 10`,
|
|
147
|
-
args: [agent.agentId, projectName]
|
|
148
|
-
});
|
|
149
|
-
if (behaviors.rows.length > 0) {
|
|
150
|
-
const lines = behaviors.rows.map((r) => `- [${r.domain}] ${String(r.content)}`);
|
|
151
|
-
sections.push(`## Critical Behaviors (p0 \u2014 restored after compaction)
|
|
152
|
-
${lines.join("\n")}`);
|
|
153
|
-
}
|
|
154
|
-
} catch {
|
|
155
|
-
}
|
|
156
|
-
if (sections.length > 0) {
|
|
157
|
-
process.stderr.write(`[post-compact] Re-injected ${sections.length} context section(s) for ${agent.agentId}
|
|
158
|
-
`);
|
|
159
|
-
const output = JSON.stringify({
|
|
160
|
-
hookSpecificOutput: {
|
|
161
|
-
hookEventName: "PostCompact",
|
|
162
|
-
additionalContext: sections.join("\n\n")
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
process.stdout.write(output);
|
|
166
|
-
} else {
|
|
167
|
-
process.stderr.write(`[post-compact] No critical context to restore for ${agent.agentId}
|
|
64
|
+
process.stderr.write(`[post-compact] compaction complete for ${agent.agentId} \u2014 rehydration deferred to SessionStart(compact)
|
|
168
65
|
`);
|
|
169
|
-
}
|
|
170
66
|
} catch {
|
|
171
67
|
}
|
|
172
68
|
clearTimeout(timeout);
|
|
@@ -8,7 +8,7 @@ process.on("unhandledRejection", (err) => {
|
|
|
8
8
|
process.exit(1);
|
|
9
9
|
});
|
|
10
10
|
try {
|
|
11
|
-
const { verifyOrBlock } = await import("../hook-integrity-
|
|
11
|
+
const { verifyOrBlock } = await import("../hook-integrity-RTBF2BL2.js");
|
|
12
12
|
if (!await verifyOrBlock(new URL(import.meta.url).pathname)) process.exit(2);
|
|
13
13
|
} catch (err) {
|
|
14
14
|
const code = err?.code;
|
|
@@ -46,7 +46,7 @@ process.stdin.on("end", async () => {
|
|
|
46
46
|
if (detectError(payload)) {
|
|
47
47
|
const { isDaemonReady } = await import("../daemon-ready-signal-CKXPUMJ2.js");
|
|
48
48
|
if (isDaemonReady()) {
|
|
49
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
49
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
50
50
|
await fastDbInit({ daemonOnly: true });
|
|
51
51
|
const errorText = JSON.stringify(payload.tool_response ?? payload.tool_result ?? "");
|
|
52
52
|
const { lightweightSearch } = await import("../lib/hybrid-search.js");
|
|
@@ -75,7 +75,7 @@ ${context}`
|
|
|
75
75
|
if (toolName.startsWith("mcp__exe-os__")) {
|
|
76
76
|
const { detectError } = await import("../lib/error-detector.js");
|
|
77
77
|
if (!detectError(payload)) {
|
|
78
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
78
|
+
const { getActiveAgent } = await import("../active-agent-3FV5V7SS.js");
|
|
79
79
|
const { clearMcpStale } = await import("../mcp-stale-flag-ZM23XRSJ.js");
|
|
80
80
|
clearMcpStale(getActiveAgent().agentId);
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@ ${context}`
|
|
|
85
85
|
try {
|
|
86
86
|
const payload = JSON.parse(input);
|
|
87
87
|
const toolName = String(payload.tool_name ?? "");
|
|
88
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
88
|
+
const { getActiveAgent } = await import("../active-agent-3FV5V7SS.js");
|
|
89
89
|
const driftAgent = getActiveAgent();
|
|
90
90
|
if (driftAgent.agentId !== "default" && toolName) {
|
|
91
91
|
const { existsSync: driftExists, readFileSync: driftRead, writeFileSync: driftWrite, mkdirSync: driftMkdir } = await import("fs");
|
|
@@ -142,7 +142,7 @@ You are **${driftAgent.agentId}**. You've used ${mismatches.length} tools outsid
|
|
|
142
142
|
}
|
|
143
143
|
try {
|
|
144
144
|
const payload = JSON.parse(input);
|
|
145
|
-
const { getActiveAgent: getInvAgent } = await import("../active-agent-
|
|
145
|
+
const { getActiveAgent: getInvAgent } = await import("../active-agent-3FV5V7SS.js");
|
|
146
146
|
const invAgent = getInvAgent();
|
|
147
147
|
const { trackToolResult } = await import("../investigation-tracker-WSCY4XBP.js");
|
|
148
148
|
trackToolResult({
|
|
@@ -159,7 +159,7 @@ You are **${driftAgent.agentId}**. You've used ${mismatches.length} tools outsid
|
|
|
159
159
|
}
|
|
160
160
|
try {
|
|
161
161
|
const budgetData = JSON.parse(input);
|
|
162
|
-
const { getActiveAgent: getBudgetAgent } = await import("../active-agent-
|
|
162
|
+
const { getActiveAgent: getBudgetAgent } = await import("../active-agent-3FV5V7SS.js");
|
|
163
163
|
const budgetAgent = getBudgetAgent();
|
|
164
164
|
if (budgetAgent.agentId !== "default") {
|
|
165
165
|
const budgetPath = await import("path");
|
|
@@ -182,7 +182,7 @@ You are **${driftAgent.agentId}**. You've used ${mismatches.length} tools outsid
|
|
|
182
182
|
const toolOutputStr = JSON.stringify(budgetData.tool_response ?? budgetData.tool_result ?? {});
|
|
183
183
|
const estimatedInputTokens = Math.ceil(toolInputStr.length / 4);
|
|
184
184
|
const estimatedOutputTokens = Math.ceil(toolOutputStr.length / 4);
|
|
185
|
-
const { createTokenBudgetMiddleware } = await import("../token-budget-
|
|
185
|
+
const { createTokenBudgetMiddleware } = await import("../token-budget-CLB3GUIX.js");
|
|
186
186
|
const middleware = createTokenBudgetMiddleware(cached.taskId);
|
|
187
187
|
const budgetResult = await middleware.onTokenUsed(estimatedInputTokens, estimatedOutputTokens);
|
|
188
188
|
if (budgetResult.warned) {
|
|
@@ -211,12 +211,12 @@ Your task token budget has been reached (${budgetResult.percentUsed}% used). Wra
|
|
|
211
211
|
}
|
|
212
212
|
try {
|
|
213
213
|
const data = JSON.parse(input);
|
|
214
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
214
|
+
const { getActiveAgent } = await import("../active-agent-3FV5V7SS.js");
|
|
215
215
|
const { detectError } = await import("../lib/error-detector.js");
|
|
216
216
|
const agent = getActiveAgent();
|
|
217
217
|
try {
|
|
218
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
219
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
218
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
219
|
+
const { recordSessionEvent } = await import("../session-events-X33W4JNA.js");
|
|
220
220
|
const client = await fastDbInit({ daemonOnly: true });
|
|
221
221
|
const toolName = String(data.tool_name ?? "unknown");
|
|
222
222
|
const toolInput = JSON.stringify(data.tool_input ?? {});
|
|
@@ -241,7 +241,7 @@ result: ${toolResponse.slice(0, 8e3)}`,
|
|
|
241
241
|
}
|
|
242
242
|
const { loadConfigSync } = await import("../lib/config.js");
|
|
243
243
|
if (loadConfigSync().autoIngestion) {
|
|
244
|
-
const { writeMemoryViaDaemon } = await import("../memory-queue-client-
|
|
244
|
+
const { writeMemoryViaDaemon } = await import("../memory-queue-client-OI4LDT4W.js");
|
|
245
245
|
const { buildPostToolMemoryEntry } = await import("../lib/post-tool-memory.js");
|
|
246
246
|
const entry = buildPostToolMemoryEntry(data, agent);
|
|
247
247
|
if (entry) await writeMemoryViaDaemon(entry);
|
|
@@ -1,57 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkpointActiveTask,
|
|
3
3
|
writeContinuityCheckpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QCJT265O.js";
|
|
5
5
|
import "../chunk-SH45SJQW.js";
|
|
6
6
|
import {
|
|
7
7
|
getActiveAgent
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-23KWUA7Z.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionScopeFilter
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-SQM4ZTL2.js";
|
|
12
|
+
import "../chunk-5C6ZIJ7J.js";
|
|
13
|
+
import "../chunk-SXKIGBNF.js";
|
|
14
|
+
import "../chunk-BT2PUK3S.js";
|
|
15
|
+
import "../chunk-KI5PFRG6.js";
|
|
16
|
+
import "../chunk-WT4RI36X.js";
|
|
17
|
+
import "../chunk-Z67DIJKT.js";
|
|
16
18
|
import "../chunk-E23LNUWJ.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-QAEWWYHL.js";
|
|
20
|
+
import "../chunk-EIKATSE4.js";
|
|
21
|
+
import "../chunk-D5CY4E7I.js";
|
|
19
22
|
import "../chunk-UXLO7VHX.js";
|
|
20
23
|
import "../chunk-DSOQUQTV.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-GBNB4EWD.js";
|
|
25
|
+
import "../chunk-PV5BIXT6.js";
|
|
23
26
|
import "../chunk-AJIXH5JF.js";
|
|
24
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-KDMVVHZH.js";
|
|
25
28
|
import "../chunk-AM7S2TY6.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-OSKWCKUC.js";
|
|
28
|
-
import "../chunk-KI5PFRG6.js";
|
|
29
|
+
import "../chunk-CY5NVDTH.js";
|
|
29
30
|
import "../chunk-CVYC6DUW.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-4P2BFNSB.js";
|
|
32
|
+
import "../chunk-MZYNW5OY.js";
|
|
33
|
+
import {
|
|
34
|
+
getProjectName
|
|
35
|
+
} from "../chunk-OPU3NYOO.js";
|
|
36
|
+
import "../chunk-6EM6USV7.js";
|
|
37
|
+
import "../chunk-HISFWAAK.js";
|
|
36
38
|
import "../chunk-NLEW62VC.js";
|
|
37
39
|
import "../chunk-HYZV25LY.js";
|
|
38
40
|
import "../chunk-GJV3WDWM.js";
|
|
39
41
|
import "../chunk-MP2AFCGL.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-5YEUPUV4.js";
|
|
43
|
-
import "../chunk-Z2PAVJJ4.js";
|
|
44
|
-
import "../chunk-OMXJMOBD.js";
|
|
42
|
+
import "../chunk-HLU52KTO.js";
|
|
43
|
+
import "../chunk-TKDITWDN.js";
|
|
45
44
|
import "../chunk-BBMTVAE3.js";
|
|
46
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-5YEUPUV4.js";
|
|
46
|
+
import "../chunk-Q7J2SQJ6.js";
|
|
47
|
+
import "../chunk-YYB5PMTK.js";
|
|
48
|
+
import "../chunk-BRZR76TS.js";
|
|
47
49
|
import "../chunk-V3W3SATA.js";
|
|
48
50
|
import "../chunk-JY5GAZYC.js";
|
|
49
51
|
import "../chunk-FXU7JOXK.js";
|
|
50
52
|
import "../chunk-WNBZJSQT.js";
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-HSKABJE6.js";
|
|
54
|
+
import "../chunk-3ICF4IAZ.js";
|
|
55
|
+
import "../chunk-QILQ5FCG.js";
|
|
56
|
+
import "../chunk-ARX6TAGN.js";
|
|
57
|
+
import "../chunk-BRIZ6OZ3.js";
|
|
54
58
|
import "../chunk-HSGBZSCA.js";
|
|
59
|
+
import "../chunk-JKKZGDLP.js";
|
|
55
60
|
import "../chunk-MLKGABMK.js";
|
|
56
61
|
|
|
57
62
|
// src/adapters/claude/hooks/pre-compact.ts
|
|
@@ -64,7 +69,7 @@ process.on("unhandledRejection", (err) => {
|
|
|
64
69
|
process.exit(1);
|
|
65
70
|
});
|
|
66
71
|
try {
|
|
67
|
-
const { verifyOrBlock } = await import("../hook-integrity-
|
|
72
|
+
const { verifyOrBlock } = await import("../hook-integrity-RTBF2BL2.js");
|
|
68
73
|
if (!await verifyOrBlock(new URL(import.meta.url).pathname)) process.exit(2);
|
|
69
74
|
} catch (err) {
|
|
70
75
|
const code = err?.code;
|
|
@@ -95,22 +100,12 @@ process.stdin.on("end", async () => {
|
|
|
95
100
|
try {
|
|
96
101
|
const payload = JSON.parse(input);
|
|
97
102
|
const agent = getActiveAgent();
|
|
98
|
-
const sections = [];
|
|
99
103
|
try {
|
|
100
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
104
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
101
105
|
const client = await fastDbInit({ socketOnly: true });
|
|
102
|
-
const projectName =
|
|
106
|
+
const projectName = getProjectName();
|
|
103
107
|
const pcScope = sessionScopeFilter();
|
|
104
108
|
if (agent.agentId !== "default") {
|
|
105
|
-
const taskResult = await client.execute({
|
|
106
|
-
sql: `SELECT title, priority, status, task_file FROM tasks WHERE assigned_to = ? AND status IN ('open', 'in_progress')${pcScope.sql} ORDER BY status DESC, priority ASC`,
|
|
107
|
-
args: [agent.agentId, ...pcScope.args]
|
|
108
|
-
});
|
|
109
|
-
if (taskResult.rows.length > 0) {
|
|
110
|
-
const taskLines = taskResult.rows.map((r) => `- [${String(r.priority).toUpperCase()}] ${String(r.title)} (${String(r.status)}) \u2014 ${String(r.task_file)}`).join("\n");
|
|
111
|
-
sections.push(`## Active Tasks (preserve across compaction)
|
|
112
|
-
${taskLines}`);
|
|
113
|
-
}
|
|
114
109
|
const inProgressResult = await client.execute({
|
|
115
110
|
sql: `SELECT id, title, priority, checkpoint FROM tasks WHERE assigned_to = ? AND status = 'in_progress'${pcScope.sql} ORDER BY updated_at DESC LIMIT 1`,
|
|
116
111
|
args: [agent.agentId, ...pcScope.args]
|
|
@@ -160,29 +155,8 @@ ${taskLines}`);
|
|
|
160
155
|
}
|
|
161
156
|
}
|
|
162
157
|
}
|
|
163
|
-
const behaviors = await client.execute({
|
|
164
|
-
sql: `SELECT domain, content FROM behaviors
|
|
165
|
-
WHERE agent_id = ? AND active = 1 AND priority = 'p0'
|
|
166
|
-
AND (project_name IS NULL OR project_name = ?)
|
|
167
|
-
ORDER BY updated_at DESC LIMIT 10`,
|
|
168
|
-
args: [agent.agentId, projectName]
|
|
169
|
-
});
|
|
170
|
-
if (behaviors.rows.length > 0) {
|
|
171
|
-
const lines = behaviors.rows.map((r) => `- [${r.domain}] ${String(r.content)}`);
|
|
172
|
-
sections.push(`## Critical Behaviors (p0 \u2014 never forget)
|
|
173
|
-
${lines.join("\n")}`);
|
|
174
|
-
}
|
|
175
158
|
} catch {
|
|
176
159
|
}
|
|
177
|
-
if (sections.length > 0) {
|
|
178
|
-
const output = JSON.stringify({
|
|
179
|
-
hookSpecificOutput: {
|
|
180
|
-
hookEventName: "PreCompact",
|
|
181
|
-
additionalContext: sections.join("\n\n")
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
process.stdout.write(output);
|
|
185
|
-
}
|
|
186
160
|
} catch {
|
|
187
161
|
}
|
|
188
162
|
clearTimeout(timeout);
|
|
@@ -8,36 +8,36 @@ import "../chunk-YSU7JB7H.js";
|
|
|
8
8
|
import "../chunk-SH45SJQW.js";
|
|
9
9
|
import {
|
|
10
10
|
getActiveAgent
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-23KWUA7Z.js";
|
|
12
12
|
import {
|
|
13
13
|
sessionScopeFilter
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-SQM4ZTL2.js";
|
|
15
|
+
import "../chunk-5C6ZIJ7J.js";
|
|
16
|
+
import "../chunk-SXKIGBNF.js";
|
|
17
|
+
import "../chunk-BT2PUK3S.js";
|
|
18
|
+
import "../chunk-KI5PFRG6.js";
|
|
19
|
+
import "../chunk-WT4RI36X.js";
|
|
20
|
+
import "../chunk-Z67DIJKT.js";
|
|
19
21
|
import "../chunk-E23LNUWJ.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-QAEWWYHL.js";
|
|
23
|
+
import "../chunk-EIKATSE4.js";
|
|
24
|
+
import "../chunk-D5CY4E7I.js";
|
|
22
25
|
import "../chunk-UXLO7VHX.js";
|
|
23
26
|
import "../chunk-DSOQUQTV.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-GBNB4EWD.js";
|
|
28
|
+
import "../chunk-PV5BIXT6.js";
|
|
26
29
|
import "../chunk-AJIXH5JF.js";
|
|
27
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-KDMVVHZH.js";
|
|
28
31
|
import "../chunk-AM7S2TY6.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-OSKWCKUC.js";
|
|
31
|
-
import "../chunk-KI5PFRG6.js";
|
|
32
|
+
import "../chunk-CY5NVDTH.js";
|
|
32
33
|
import {
|
|
33
34
|
getSessionKey
|
|
34
35
|
} from "../chunk-CVYC6DUW.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-4P2BFNSB.js";
|
|
37
|
+
import "../chunk-MZYNW5OY.js";
|
|
37
38
|
import "../chunk-OPU3NYOO.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-VMR6M6GN.js";
|
|
39
|
+
import "../chunk-6EM6USV7.js";
|
|
40
|
+
import "../chunk-HISFWAAK.js";
|
|
41
41
|
import "../chunk-NLEW62VC.js";
|
|
42
42
|
import "../chunk-HYZV25LY.js";
|
|
43
43
|
import "../chunk-GJV3WDWM.js";
|
|
@@ -45,23 +45,26 @@ import "../chunk-MP2AFCGL.js";
|
|
|
45
45
|
import {
|
|
46
46
|
canCoordinate,
|
|
47
47
|
loadEmployeesSync
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-5YEUPUV4.js";
|
|
51
|
-
import "../chunk-Z2PAVJJ4.js";
|
|
52
|
-
import "../chunk-OMXJMOBD.js";
|
|
48
|
+
} from "../chunk-HLU52KTO.js";
|
|
49
|
+
import "../chunk-TKDITWDN.js";
|
|
53
50
|
import "../chunk-BBMTVAE3.js";
|
|
54
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-5YEUPUV4.js";
|
|
52
|
+
import "../chunk-Q7J2SQJ6.js";
|
|
53
|
+
import "../chunk-YYB5PMTK.js";
|
|
54
|
+
import "../chunk-BRZR76TS.js";
|
|
55
55
|
import "../chunk-V3W3SATA.js";
|
|
56
56
|
import "../chunk-JY5GAZYC.js";
|
|
57
57
|
import "../chunk-FXU7JOXK.js";
|
|
58
58
|
import "../chunk-WNBZJSQT.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-HSKABJE6.js";
|
|
60
|
+
import "../chunk-3ICF4IAZ.js";
|
|
61
|
+
import "../chunk-QILQ5FCG.js";
|
|
62
|
+
import "../chunk-ARX6TAGN.js";
|
|
61
63
|
import {
|
|
62
64
|
EXE_AI_DIR
|
|
63
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-BRIZ6OZ3.js";
|
|
64
66
|
import "../chunk-HSGBZSCA.js";
|
|
67
|
+
import "../chunk-JKKZGDLP.js";
|
|
65
68
|
import "../chunk-MLKGABMK.js";
|
|
66
69
|
|
|
67
70
|
// src/adapters/claude/hooks/pre-tool-use.ts
|
|
@@ -166,7 +169,7 @@ process.on("unhandledRejection", (err) => {
|
|
|
166
169
|
process.exit(1);
|
|
167
170
|
});
|
|
168
171
|
try {
|
|
169
|
-
const { verifyOrBlock } = await import("../hook-integrity-
|
|
172
|
+
const { verifyOrBlock } = await import("../hook-integrity-RTBF2BL2.js");
|
|
170
173
|
if (!await verifyOrBlock(new URL(import.meta.url).pathname)) process.exit(2);
|
|
171
174
|
} catch (err) {
|
|
172
175
|
const code = err?.code;
|
|
@@ -303,6 +306,7 @@ process.stdin.on("end", async () => {
|
|
|
303
306
|
}
|
|
304
307
|
const data = JSON.parse(input);
|
|
305
308
|
const agent = resolveSidechainAgentIdentity(getActiveAgent(), data.transcript_path);
|
|
309
|
+
let wroteStdout = false;
|
|
306
310
|
if (data.tool_name === "Bash") {
|
|
307
311
|
const command = data.tool_input?.command ?? "";
|
|
308
312
|
const isCoordinator = canCoordinate(agent.agentId, agent.agentRole);
|
|
@@ -551,7 +555,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
551
555
|
process.exit(0);
|
|
552
556
|
}
|
|
553
557
|
}
|
|
554
|
-
const { getGatedAgent } = await import("../cto-delegation-gate-
|
|
558
|
+
const { getGatedAgent } = await import("../cto-delegation-gate-XH4YSQVC.js");
|
|
555
559
|
const gatedAgent = getGatedAgent();
|
|
556
560
|
if (agent.agentId === gatedAgent) {
|
|
557
561
|
const isStructured = /^(Write|Edit|MultiEdit|NotebookEdit)$/.test(data.tool_name);
|
|
@@ -563,7 +567,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
563
567
|
evaluateDelegationGate,
|
|
564
568
|
evaluateBashWriteGate,
|
|
565
569
|
GATE_BLOCK_MESSAGE
|
|
566
|
-
} = await import("../cto-delegation-gate-
|
|
570
|
+
} = await import("../cto-delegation-gate-XH4YSQVC.js");
|
|
567
571
|
let decision = null;
|
|
568
572
|
let surfaceLabel = data.tool_name;
|
|
569
573
|
let targetLabel = "";
|
|
@@ -572,7 +576,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
572
576
|
const filePath = data.tool_name === "NotebookEdit" ? ti.notebook_path ?? "" : ti.file_path ?? "";
|
|
573
577
|
const content = data.tool_name === "MultiEdit" ? (ti.edits ?? []).map((e) => e.new_string ?? "").filter(Boolean) : data.tool_name === "NotebookEdit" ? ti.new_source : ti.content ?? ti.new_string;
|
|
574
578
|
if (filePath) {
|
|
575
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
579
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
576
580
|
await fastDbInit({ caller: "hook" });
|
|
577
581
|
targetLabel = filePath;
|
|
578
582
|
decision = await evaluateDelegationGate({
|
|
@@ -585,10 +589,10 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
585
589
|
}
|
|
586
590
|
} else {
|
|
587
591
|
const command = data.tool_input?.command ?? "";
|
|
588
|
-
const { detectBashSourceWrites } = await import("../cto-delegation-gate-
|
|
592
|
+
const { detectBashSourceWrites } = await import("../cto-delegation-gate-XH4YSQVC.js");
|
|
589
593
|
const targets = detectBashSourceWrites(command, process.cwd());
|
|
590
594
|
if (targets.length > 0) {
|
|
591
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
595
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
592
596
|
await fastDbInit({ caller: "hook" });
|
|
593
597
|
surfaceLabel = "Bash-write";
|
|
594
598
|
targetLabel = targets.join(", ");
|
|
@@ -665,7 +669,7 @@ Reason: ${decision.reason ?? "engineer-delegatable edit"}`;
|
|
|
665
669
|
const isUpdateTaskDone = (data.tool_name === "mcp__exe-os__update_task" || data.tool_name === "mcp__exe-mem__update_task") && toolInput.status === "done" && CTO_ROLES.includes(agent.agentRole);
|
|
666
670
|
if (isUpdateTaskDone) {
|
|
667
671
|
try {
|
|
668
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
672
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
669
673
|
const client = await fastDbInit({ caller: "hook" });
|
|
670
674
|
const taskId = String(toolInput.task_id ?? "");
|
|
671
675
|
const ptScope = sessionScopeFilter();
|
|
@@ -723,7 +727,7 @@ Reason: ${decision.reason ?? "engineer-delegatable edit"}`;
|
|
|
723
727
|
}
|
|
724
728
|
if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
|
|
725
729
|
try {
|
|
726
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
730
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
727
731
|
const client = await fastDbInit({ caller: "hook" });
|
|
728
732
|
const dlScope = sessionScopeFilter();
|
|
729
733
|
const result = await client.execute({
|
|
@@ -759,6 +763,7 @@ Reason: ${decision.reason ?? "engineer-delegatable edit"}`;
|
|
|
759
763
|
}
|
|
760
764
|
});
|
|
761
765
|
process.stdout.write(output);
|
|
766
|
+
wroteStdout = true;
|
|
762
767
|
}
|
|
763
768
|
}
|
|
764
769
|
} catch {
|
|
@@ -791,6 +796,60 @@ Do NOT attempt workarounds \u2014 direct DB access bypasses encryption, breaks d
|
|
|
791
796
|
}
|
|
792
797
|
}
|
|
793
798
|
}
|
|
799
|
+
if (!wroteStdout && agent.agentId !== "default" && !agent.agentId.startsWith("subagent:")) {
|
|
800
|
+
try {
|
|
801
|
+
const {
|
|
802
|
+
shouldCheckInbox,
|
|
803
|
+
selectUrgentUnsurfaced,
|
|
804
|
+
formatInRunInboxBanner
|
|
805
|
+
} = await import("../inrun-inbox-DRKVDPLY.js");
|
|
806
|
+
const throttlePath = path2.join(CACHE_DIR, `inrun-inbox-check-${getSessionKey()}.json`);
|
|
807
|
+
const seenPath = path2.join(CACHE_DIR, `inrun-inbox-seen-${getSessionKey()}.json`);
|
|
808
|
+
let lastCheckMs = null;
|
|
809
|
+
try {
|
|
810
|
+
const { readFileSync } = await import("fs");
|
|
811
|
+
lastCheckMs = Number(JSON.parse(readFileSync(throttlePath, "utf8")).ts) || null;
|
|
812
|
+
} catch {
|
|
813
|
+
}
|
|
814
|
+
if (shouldCheckInbox({ now: Date.now(), lastCheckMs })) {
|
|
815
|
+
try {
|
|
816
|
+
mkdirSync(CACHE_DIR, { recursive: true });
|
|
817
|
+
writeFileSync(throttlePath, JSON.stringify({ ts: Date.now() }));
|
|
818
|
+
} catch {
|
|
819
|
+
}
|
|
820
|
+
const { fastDbInit } = await import("../fast-db-init-SO2XUQ7T.js");
|
|
821
|
+
const client = await fastDbInit({ daemonOnly: true, caller: "hook" });
|
|
822
|
+
const { isInitialized } = await import("../lib/database.js");
|
|
823
|
+
if (isInitialized()) {
|
|
824
|
+
void client;
|
|
825
|
+
const { getPendingMessages } = await import("../lib/messaging.js");
|
|
826
|
+
const sessionScope = process.env.EXE_SESSION_NAME?.includes("-") ? process.env.EXE_SESSION_NAME.split("-").pop() ?? null : process.env.EXE_SESSION_NAME ?? null;
|
|
827
|
+
const pending = await getPendingMessages(agent.agentId, sessionScope);
|
|
828
|
+
let seenIds = /* @__PURE__ */ new Set();
|
|
829
|
+
try {
|
|
830
|
+
const { readFileSync } = await import("fs");
|
|
831
|
+
seenIds = new Set(JSON.parse(readFileSync(seenPath, "utf8")));
|
|
832
|
+
} catch {
|
|
833
|
+
}
|
|
834
|
+
const urgent = selectUrgentUnsurfaced(pending, seenIds);
|
|
835
|
+
if (urgent.length > 0) {
|
|
836
|
+
for (const m of urgent) seenIds.add(m.id);
|
|
837
|
+
try {
|
|
838
|
+
writeFileSync(seenPath, JSON.stringify([...seenIds]));
|
|
839
|
+
} catch {
|
|
840
|
+
}
|
|
841
|
+
const banner = formatInRunInboxBanner(urgent);
|
|
842
|
+
const output = JSON.stringify({
|
|
843
|
+
hookSpecificOutput: { hookEventName: "PreToolUse", additionalContext: banner }
|
|
844
|
+
});
|
|
845
|
+
process.stdout.write(output);
|
|
846
|
+
wroteStdout = true;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
} catch {
|
|
851
|
+
}
|
|
852
|
+
}
|
|
794
853
|
} catch {
|
|
795
854
|
}
|
|
796
855
|
clearTimeout(timeout);
|