@askexenow/exe-os 0.9.384 → 0.9.389

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.
Files changed (481) hide show
  1. package/deploy/compose/.env.askexe-control-plane.example +6 -0
  2. package/deploy/compose/.env.customer.example +1 -1
  3. package/deploy/compose/.env.example +1 -1
  4. package/deploy/compose/docker-compose.yml +16 -0
  5. package/deploy/compose/generate-env.ts +1 -1
  6. package/deploy/compose/sso-edge/sso-redirect.conf +18 -3
  7. package/deploy/stack-manifests/v0.9.json +1160 -1
  8. package/dist/.dist-verified.json +3 -3
  9. package/dist/{active-agent-F5V4E4UL.js → active-agent-RZ24KSJN.js} +8 -6
  10. package/dist/{active-agent-YTBB4ZQM.js → active-agent-YWSWPIEA.js} +8 -6
  11. package/dist/{agent-defs-generator-7TFISIJQ.js → agent-defs-generator-GY3UBREJ.js} +8 -6
  12. package/dist/{agent-heartbeat-CQPGJIFF.js → agent-heartbeat-GUVUUQVM.js} +1 -1
  13. package/dist/{agent-loop-EZ7LDAGD.js → agent-loop-HPNCH3HK.js} +1 -1
  14. package/dist/{agentic-ontology-XVTUVV7W.js → agentic-ontology-RHYNXEKE.js} +1 -1
  15. package/dist/{artifact-backup-TF6YWQT2.js → artifact-backup-HGUFSIJH.js} +19 -6
  16. package/dist/{backfill-metadata-J6MXIDCW.js → backfill-metadata-XLFASEOD.js} +11 -9
  17. package/dist/{backup-verify-6DVBQMDP.js → backup-verify-TUQEICWA.js} +1 -1
  18. package/dist/{behavior-injection-XDA7ZCYN.js → behavior-injection-GXO7ERGN.js} +14 -12
  19. package/dist/{behavior-promotion-4VLQ7LXK.js → behavior-promotion-V63WIZ4N.js} +13 -11
  20. package/dist/{behaviors-SCCZP7RZ.js → behaviors-RMLDPLOF.js} +18 -11
  21. package/dist/bin/agentic-ontology-backfill.js +12 -10
  22. package/dist/bin/agentic-reflection-backfill.js +13 -11
  23. package/dist/bin/agentic-semantic-label.js +12 -10
  24. package/dist/bin/backfill-conversations.js +11 -9
  25. package/dist/bin/backfill-responses.js +11 -9
  26. package/dist/bin/backfill-vectors.js +13 -11
  27. package/dist/bin/bulk-sync-postgres.js +20 -18
  28. package/dist/bin/cc-doctor.js +15 -13
  29. package/dist/bin/cleanup-stale-review-tasks.js +44 -32
  30. package/dist/bin/cli.js +109 -30
  31. package/dist/bin/customer-readiness.js +55 -25
  32. package/dist/bin/deferred-daemon-restart.js +111 -108
  33. package/dist/bin/exe-actions.js +7 -1
  34. package/dist/bin/exe-agent-config.js +8 -6
  35. package/dist/bin/exe-agent.js +18 -16
  36. package/dist/bin/exe-assign.js +13 -11
  37. package/dist/bin/exe-boot.js +49 -47
  38. package/dist/bin/exe-call.js +9 -7
  39. package/dist/bin/exe-cicd.js +19 -8
  40. package/dist/bin/exe-cloud.js +59 -25
  41. package/dist/bin/exe-config-dump.js +8 -6
  42. package/dist/bin/exe-dispatch.js +23 -21
  43. package/dist/bin/exe-doctor.js +11 -8
  44. package/dist/bin/exe-export-behaviors.js +16 -14
  45. package/dist/bin/exe-forget.js +14 -12
  46. package/dist/bin/exe-gateway.js +12 -10
  47. package/dist/bin/exe-grant.js +6 -6
  48. package/dist/bin/exe-healthcheck.js +15 -13
  49. package/dist/bin/exe-heartbeat.js +28 -26
  50. package/dist/bin/exe-kill.js +28 -26
  51. package/dist/bin/exe-launch-agent.js +35 -33
  52. package/dist/bin/exe-mcp.js +9 -7
  53. package/dist/bin/exe-memory-reads.js +11 -9
  54. package/dist/bin/exe-new-employee.js +13 -11
  55. package/dist/bin/exe-os-mcp-proxy.js +9 -7
  56. package/dist/bin/exe-pending-messages.js +23 -21
  57. package/dist/bin/exe-pending-notifications.js +22 -20
  58. package/dist/bin/exe-pending-reviews.js +23 -21
  59. package/dist/bin/exe-preflight.js +1 -1
  60. package/dist/bin/exe-rename.js +9 -7
  61. package/dist/bin/exe-review.js +59 -55
  62. package/dist/bin/exe-search-quality.js +16 -3
  63. package/dist/bin/exe-search.js +13 -11
  64. package/dist/bin/exe-session-cleanup.js +29 -27
  65. package/dist/bin/exe-settings.js +22 -20
  66. package/dist/bin/exe-start-codex.js +23 -21
  67. package/dist/bin/exe-start-opencode.js +21 -19
  68. package/dist/bin/exe-status.js +24 -22
  69. package/dist/bin/exe-support.js +3 -3
  70. package/dist/bin/exe-team.js +8 -6
  71. package/dist/bin/exe-verify-running-images.js +644 -17
  72. package/dist/bin/git-sweep.js +24 -22
  73. package/dist/bin/graph-backfill.js +12 -10
  74. package/dist/bin/graph-export.js +12 -10
  75. package/dist/bin/hooks-cli.js +4 -4
  76. package/dist/bin/import-history.js +16 -14
  77. package/dist/bin/install.js +113 -110
  78. package/dist/bin/intercom-check.js +5 -5
  79. package/dist/bin/mcp-sessions.js +2 -2
  80. package/dist/bin/orchestration-metrics.js +8 -6
  81. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  82. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  83. package/dist/bin/pre-build-guard.js +55 -16
  84. package/dist/bin/pre-publish.js +1 -1
  85. package/dist/bin/prune-orphan-chunks.js +154 -28
  86. package/dist/bin/reconcile-backlog.js +5 -3
  87. package/dist/bin/registry-proxy.js +1 -1
  88. package/dist/bin/repair-document-chunks.js +11 -9
  89. package/dist/bin/scan-tasks.js +23 -21
  90. package/dist/bin/setup.js +3 -3
  91. package/dist/bin/shard-migrate.js +12 -10
  92. package/dist/bin/stack-update.js +622 -43
  93. package/dist/bin/verify-stack.js +2 -2
  94. package/dist/bin/vps-health-gate.js +1 -1
  95. package/dist/{boot-generation-Q7LGQ3AO.js → boot-generation-VCQXVYGT.js} +7 -5
  96. package/dist/{boot-review-sections-G5774FR5.js → boot-review-sections-3QO6Q7MP.js} +21 -19
  97. package/dist/{branch-hygiene-44WLSOZR.js → branch-hygiene-DDXXI6ZA.js} +59 -21
  98. package/dist/bug-landed-reconciler-TQVNOUCU.js +353 -0
  99. package/dist/build-manifest.json +1269 -1194
  100. package/dist/{capability-cards-I3RHCF4F.js → capability-cards-XPDLT6LU.js} +6 -4
  101. package/dist/{capacity-monitor-7I7GDONU.js → capacity-monitor-N3AW242L.js} +23 -21
  102. package/dist/{catchup-brief-3T5PARIR.js → catchup-brief-3PKX7FUP.js} +29 -27
  103. package/dist/{chunk-C5ISP5FO.js → chunk-2BKJAOO4.js} +11 -1
  104. package/dist/{chunk-JJTPPAZY.js → chunk-2CUQHG6H.js} +1609 -1356
  105. package/dist/{chunk-HU3VD4MQ.js → chunk-2Q2GGYBX.js} +1 -1
  106. package/dist/{chunk-CHIUS5QB.js → chunk-36LMIOVU.js} +9 -9
  107. package/dist/{chunk-46VSBDUW.js → chunk-3DCBDG4T.js} +2 -2
  108. package/dist/{chunk-W3KPQE7H.js → chunk-3GL3E4TD.js} +3 -3
  109. package/dist/{chunk-GL47M7NY.js → chunk-3UD3OF3X.js} +202 -117
  110. package/dist/{chunk-WNBZJSQT.js → chunk-3VW5ZP2F.js} +1 -1
  111. package/dist/{chunk-JDDM6C57.js → chunk-3X74IQBU.js} +1 -1
  112. package/dist/{chunk-NVFNADTX.js → chunk-3ZL4MDQ6.js} +18 -4
  113. package/dist/{chunk-R5E7WNAC.js → chunk-4ESNDGMB.js} +3 -3
  114. package/dist/{chunk-CYCIX7AW.js → chunk-4FLLIQRQ.js} +2 -2
  115. package/dist/{chunk-3RGTLZNO.js → chunk-4GAKF7KR.js} +99 -74
  116. package/dist/{chunk-RVO5O5SR.js → chunk-4S3A52AV.js} +38 -10
  117. package/dist/{chunk-7J2ZQ4XN.js → chunk-4VQ3QR6B.js} +29 -28
  118. package/dist/{chunk-MROSARM5.js → chunk-5BJBTFFQ.js} +7 -1
  119. package/dist/chunk-5LQZABW5.js +6 -0
  120. package/dist/chunk-5ONMHTNI.js +236 -0
  121. package/dist/{chunk-APL7HUE3.js → chunk-5QQJUO3F.js} +200 -31
  122. package/dist/{chunk-UOPCVFVR.js → chunk-5RK75SWH.js} +205 -278
  123. package/dist/{chunk-T5FEAQES.js → chunk-5TYJYGS5.js} +1 -1
  124. package/dist/{chunk-P3QQ52QK.js → chunk-5U6EOTZV.js} +3 -3
  125. package/dist/{chunk-ALRHGEAJ.js → chunk-637FL62O.js} +1 -1
  126. package/dist/{chunk-PUBA5B4M.js → chunk-6L4VIYLZ.js} +33 -19
  127. package/dist/{chunk-VF2KRROX.js → chunk-754P2UXM.js} +1 -1
  128. package/dist/{chunk-CM7N5MBY.js → chunk-7FZG7WP4.js} +5 -5
  129. package/dist/{chunk-NYLJQ2M2.js → chunk-7NEBFB3L.js} +4 -4
  130. package/dist/{chunk-E7C2WNR5.js → chunk-AEIOFFFX.js} +5 -5
  131. package/dist/{chunk-VOVFUKEB.js → chunk-AIB2EWO2.js} +5 -5
  132. package/dist/{chunk-EGOEB42T.js → chunk-AP2C4OGS.js} +3 -3
  133. package/dist/{chunk-MPZ2AVNS.js → chunk-ATNV3BVZ.js} +1 -1
  134. package/dist/{chunk-F4BBMIPG.js → chunk-B4XJQBQB.js} +2 -2
  135. package/dist/{chunk-BPVFZ6Q4.js → chunk-B5EGDNG6.js} +2 -2
  136. package/dist/{chunk-AGC2V7JS.js → chunk-B6CBN6EF.js} +1 -1
  137. package/dist/{chunk-KTKIFXIP.js → chunk-B7FDRN7G.js} +1 -1
  138. package/dist/{chunk-C5HUMAA7.js → chunk-B7WVYLAQ.js} +67 -15
  139. package/dist/chunk-BGVP5RMT.js +185 -0
  140. package/dist/{chunk-FVLNNNH6.js → chunk-BNI4LIU5.js} +35 -4
  141. package/dist/{chunk-P4XLIPB7.js → chunk-BU5JRLZT.js} +1 -1
  142. package/dist/{chunk-PHUHIVD5.js → chunk-C6U7XWOC.js} +34 -5
  143. package/dist/chunk-C7GHNJPW.js +8 -0
  144. package/dist/{chunk-4AR5XKCH.js → chunk-CL2MU3OX.js} +1 -1
  145. package/dist/{chunk-ZPP63JSQ.js → chunk-CL3AB7Z2.js} +1 -1
  146. package/dist/{chunk-FHIFTSPL.js → chunk-CP7XUSOF.js} +8 -3
  147. package/dist/{chunk-3OX34OC3.js → chunk-CUDNRHHT.js} +30 -10
  148. package/dist/chunk-CYUUNIEL.js +21 -0
  149. package/dist/{chunk-P2UY34XE.js → chunk-D4C57S2H.js} +5 -5
  150. package/dist/{chunk-XSUALA32.js → chunk-DDYFNBYV.js} +3 -3
  151. package/dist/{chunk-LSNBTGW4.js → chunk-DPYZW42H.js} +1 -1
  152. package/dist/{chunk-FMIYFHLE.js → chunk-E2PRXEZK.js} +9 -3
  153. package/dist/{chunk-L63V25HS.js → chunk-E54SPUYJ.js} +3 -3
  154. package/dist/{chunk-DMUOTCDN.js → chunk-E5CKRHIZ.js} +1 -1
  155. package/dist/{chunk-BV2IET6B.js → chunk-EVMOKRBC.js} +15 -2
  156. package/dist/{chunk-YLFCH3VA.js → chunk-FDWI3T6I.js} +133 -31
  157. package/dist/{chunk-PWC3C5ME.js → chunk-FNJTCJGY.js} +4 -4
  158. package/dist/{chunk-TNS63ATU.js → chunk-FWRPDSO3.js} +350 -50
  159. package/dist/{chunk-JA3Y5TV6.js → chunk-GDLB6BPM.js} +141 -74
  160. package/dist/{chunk-IGJMS7C5.js → chunk-GOVGG7HU.js} +2 -2
  161. package/dist/{chunk-MB47DRF5.js → chunk-GP7CTIUK.js} +2 -2
  162. package/dist/{chunk-L5EPGGDP.js → chunk-GWAN2BDB.js} +4 -4
  163. package/dist/{chunk-YRQ26MNP.js → chunk-H3YF7X4J.js} +12 -5
  164. package/dist/{chunk-VLBHZ6TF.js → chunk-H6PLIFUE.js} +2 -2
  165. package/dist/{chunk-GSLFH4AI.js → chunk-HRNM3N4Y.js} +6 -15
  166. package/dist/chunk-IG2ISRTF.js +48 -0
  167. package/dist/{chunk-MWEIBVBS.js → chunk-IJCWBYA5.js} +14 -1
  168. package/dist/{chunk-NKEFYE4R.js → chunk-IPTUKX3N.js} +1 -1
  169. package/dist/{chunk-RB3J2WYQ.js → chunk-IVE7H6KA.js} +1 -1
  170. package/dist/{chunk-HA63SH5W.js → chunk-IWY2OGQG.js} +1 -1
  171. package/dist/{chunk-BQEZPRUC.js → chunk-IZWMWJZT.js} +64 -46
  172. package/dist/{chunk-AHESD3KW.js → chunk-J4UVI652.js} +1 -1
  173. package/dist/{chunk-PLII76NJ.js → chunk-JBUCA4OX.js} +33 -6
  174. package/dist/{chunk-2PZTMSMG.js → chunk-JOF4HQDF.js} +5 -5
  175. package/dist/{chunk-OBBO6EJR.js → chunk-JQN3QGSF.js} +1 -1
  176. package/dist/{chunk-P4PIZOL2.js → chunk-JWYIH5DR.js} +3 -3
  177. package/dist/{chunk-3XY57PKT.js → chunk-KZLKE7I3.js} +210 -48
  178. package/dist/{chunk-DYVLEMKS.js → chunk-L3GXMYBK.js} +1 -1
  179. package/dist/{chunk-72V3S44T.js → chunk-LUA4SLJY.js} +46 -19
  180. package/dist/{chunk-ZT4LFTUJ.js → chunk-LW3JCBXP.js} +20 -3
  181. package/dist/{chunk-YLB365YX.js → chunk-M5XHN4OM.js} +3 -3
  182. package/dist/{chunk-VHHX4UCP.js → chunk-MDTWARSF.js} +22 -93
  183. package/dist/{chunk-JFJP6ATJ.js → chunk-MWKXQSF6.js} +3 -2
  184. package/dist/{chunk-VJEJ7JNB.js → chunk-N32DVIKY.js} +1 -1
  185. package/dist/{chunk-MUCNYSJP.js → chunk-NRLJOV7M.js} +32 -4
  186. package/dist/{chunk-PL4CFSQ7.js → chunk-NSXJOSH7.js} +1 -1
  187. package/dist/{chunk-NF5FOSLD.js → chunk-NVTG66CK.js} +1 -1
  188. package/dist/chunk-O45GBJEH.js +1500 -0
  189. package/dist/{chunk-4AAMFWJT.js → chunk-OHZSTZXN.js} +4 -2
  190. package/dist/chunk-OSIS7ZQW.js +344 -0
  191. package/dist/{chunk-E3ZM32LF.js → chunk-P22VFGFK.js} +14 -5
  192. package/dist/{chunk-KILR4FBR.js → chunk-PAFLR7WD.js} +3 -3
  193. package/dist/{chunk-R3CZWFFC.js → chunk-PEYQ6MWO.js} +15 -3
  194. package/dist/{chunk-RDWIKDMY.js → chunk-PZR54BEI.js} +8 -20
  195. package/dist/{chunk-2FKU4ZEO.js → chunk-QDBKMEYY.js} +9 -9
  196. package/dist/{chunk-7UHZBVP3.js → chunk-QDVLVLXP.js} +97 -31
  197. package/dist/{chunk-PRDDPQLC.js → chunk-QLXEQRHD.js} +5 -5
  198. package/dist/{chunk-MUAWCFW6.js → chunk-QNPDXV5V.js} +5 -2
  199. package/dist/{chunk-LR5O2XWZ.js → chunk-QUZYLDNJ.js} +5 -5
  200. package/dist/chunk-RBQUXHYK.js +48 -0
  201. package/dist/{chunk-3SUPEE6H.js → chunk-RDMBSHGG.js} +3 -3
  202. package/dist/{chunk-I5XIW2BP.js → chunk-RGUM474V.js} +7 -7
  203. package/dist/{chunk-OAFENIHN.js → chunk-RJ67XAJU.js} +76 -28
  204. package/dist/{chunk-LFUBEHFW.js → chunk-RT57D7C4.js} +39 -1
  205. package/dist/{chunk-MKM6D7JM.js → chunk-RWG7DLOG.js} +42 -5
  206. package/dist/{chunk-P3UX5EH4.js → chunk-RWKAHHIX.js} +3 -3
  207. package/dist/{chunk-XEBKIWI7.js → chunk-RYNT3HB7.js} +12 -12
  208. package/dist/{chunk-EUGEFBGV.js → chunk-S2V272KJ.js} +3 -3
  209. package/dist/{chunk-W6BZ4UGA.js → chunk-SGYEM2PD.js} +1 -1
  210. package/dist/{chunk-VROK4X2L.js → chunk-SJP57MQM.js} +1 -1
  211. package/dist/{chunk-5MVKTNZP.js → chunk-SL4JWAMQ.js} +54 -4
  212. package/dist/{chunk-MOANZQXF.js → chunk-SLMKLEU6.js} +1 -1
  213. package/dist/{chunk-RZN2LEAK.js → chunk-SQA7XCYI.js} +3 -3
  214. package/dist/{chunk-4YNA3CM6.js → chunk-SSFS4NCH.js} +262 -56
  215. package/dist/{chunk-6FIC57PH.js → chunk-T4P2G3PO.js} +1 -1
  216. package/dist/{chunk-5U2IJBFV.js → chunk-TA3B4N24.js} +1 -1
  217. package/dist/{chunk-ZOTTYCP5.js → chunk-TEWWBVQP.js} +40 -4
  218. package/dist/{chunk-SDYWZRPN.js → chunk-TLSFGXXE.js} +1 -1
  219. package/dist/{chunk-L3VUW5M4.js → chunk-TQS2YHLB.js} +1 -1
  220. package/dist/{chunk-KXYKSLW4.js → chunk-TU4M757W.js} +399 -116
  221. package/dist/{chunk-MC4IM2CC.js → chunk-TYD4F4XU.js} +6 -6
  222. package/dist/{chunk-TKS5GMYA.js → chunk-U44Y7RC7.js} +2 -0
  223. package/dist/{chunk-B7AMNZTC.js → chunk-UKBPEEEQ.js} +2 -2
  224. package/dist/{chunk-ZBPZDADW.js → chunk-UWVXQEQQ.js} +467 -78
  225. package/dist/{chunk-P2VVMGMI.js → chunk-V4WH3FV7.js} +35 -16
  226. package/dist/{worktree-ownership-guard-O6JQF2CL.js → chunk-V6F4I2XY.js} +13 -14
  227. package/dist/{chunk-JFTUAV4J.js → chunk-VBKUESIW.js} +1 -1
  228. package/dist/{chunk-AZSTIAVL.js → chunk-VBPYYJPC.js} +1 -1
  229. package/dist/{chunk-LKTN22L6.js → chunk-VIP4LKLO.js} +57 -24
  230. package/dist/{chunk-L5CGXEZC.js → chunk-WAAGVFFN.js} +63 -71
  231. package/dist/{chunk-D3LXVAIQ.js → chunk-WC7AE3PT.js} +244 -103
  232. package/dist/{chunk-EOTZSAQL.js → chunk-WUCUDHKR.js} +1 -1
  233. package/dist/{chunk-VF3BZOZK.js → chunk-X7HZHKY4.js} +50 -3
  234. package/dist/{chunk-LFBLQE2P.js → chunk-XCAKYVKI.js} +1 -1
  235. package/dist/{chunk-UXN4BICC.js → chunk-XMX5J52Z.js} +1 -1
  236. package/dist/{chunk-6YDY6ZTD.js → chunk-XTCXGWTV.js} +9 -4
  237. package/dist/{chunk-XUZK23V7.js → chunk-XW2FW6LS.js} +2 -2
  238. package/dist/{chunk-CH7BUBP3.js → chunk-XWVHUDEK.js} +5 -4
  239. package/dist/{chunk-S26CV7BE.js → chunk-YA5LK6KB.js} +45 -8
  240. package/dist/{chunk-ELCRJGCH.js → chunk-YMRQIENV.js} +2 -2
  241. package/dist/{chunk-QNZ4562V.js → chunk-Z3LXWCB7.js} +1 -1
  242. package/dist/{chunk-EYMFVITZ.js → chunk-Z7I6NQMA.js} +2 -2
  243. package/dist/{chunk-6BJCDWSM.js → chunk-ZB4FS2EG.js} +1 -1
  244. package/dist/{chunk-ZAEUEDTN.js → chunk-ZD6FZ3WL.js} +1 -1
  245. package/dist/{chunk-FEU6QEEL.js → chunk-ZM6EZAVY.js} +1 -0
  246. package/dist/{chunk-2KY7WZZF.js → chunk-ZPA4R2UI.js} +1 -1
  247. package/dist/chunk-ZPPPHVSU.js +285 -0
  248. package/dist/{chunk-ELEGH4DX.js → chunk-ZUGQPYUY.js} +51 -4
  249. package/dist/{chunk-UX2EO653.js → chunk-ZZWFZ46U.js} +66 -8
  250. package/dist/{cleanup-graph-garbage-VQAJ2RBT.js → cleanup-graph-garbage-HFUD5ZQT.js} +12 -10
  251. package/dist/{cloud-sync-command-J7NEFUY7.js → cloud-sync-command-3JHJJKPN.js} +25 -3
  252. package/dist/{cloud-sync-db-init-KWEMNMGA.js → cloud-sync-db-init-2LHIQOSF.js} +1 -1
  253. package/dist/{cloud-sync-shutdown-P63AUTUI.js → cloud-sync-shutdown-ZXAXA3Z7.js} +6 -4
  254. package/dist/{cloud-sync-state-QF3TMMJ4.js → cloud-sync-state-VSQFGPP6.js} +1 -1
  255. package/dist/{co-activation-7IHRPBZN.js → co-activation-NX4EH4AP.js} +6 -4
  256. package/dist/{co-occurrence-R5AG4OAU.js → co-occurrence-5LBYCW3U.js} +10 -8
  257. package/dist/{consent-passphrase-5ZBDJ5G7.js → consent-passphrase-65W3DJIJ.js} +2 -2
  258. package/dist/{content-extractor-ZLXC6GNR.js → content-extractor-OGXETBOX.js} +2 -2
  259. package/dist/{conversation-entity-extractor-7FRKLLBD.js → conversation-entity-extractor-FQCOAH4F.js} +5 -4
  260. package/dist/conversations-retention-XTBFJBUM.js +166 -0
  261. package/dist/{crdt-sync-IFRZOEIS.js → crdt-sync-7TDUBTLH.js} +4 -4
  262. package/dist/{crm-webhook-L2S63ASV.js → crm-webhook-776JTY55.js} +2 -2
  263. package/dist/{cto-delegation-gate-3WU7OHX7.js → cto-delegation-gate-ZNUWVYCN.js} +25 -23
  264. package/dist/{daemon-orchestration-3VQYKLOR.js → daemon-orchestration-76BOFDEP.js} +30 -24
  265. package/dist/{doc-graph-extractor-YIR5E7OF.js → doc-graph-extractor-F724KZJX.js} +10 -8
  266. package/dist/{documents-QEHPTYIY.js → documents-Q24V4GRD.js} +13 -11
  267. package/dist/{dreaming-LNFE7DTN.js → dreaming-IY6NQTSP.js} +27 -25
  268. package/dist/{employee-boot-brief-ZTXDYNWM.js → employee-boot-brief-CCTXO5DQ.js} +35 -29
  269. package/dist/{entity-boost-R5N6JWXD.js → entity-boost-XGOB7HDM.js} +1 -1
  270. package/dist/{exe-drift-WYSJVZFO.js → exe-drift-NEPXLNGP.js} +7 -5
  271. package/dist/{exe-export-GOLNAEAV.js → exe-export-ZHJQFKR2.js} +14 -12
  272. package/dist/{exe-import-U4BSI6OH.js → exe-import-7SVNI4FW.js} +14 -12
  273. package/dist/{exe-key-V42G3NGO.js → exe-key-QJKU56WZ.js} +119 -108
  274. package/dist/{exe-org-U4GLQ6OP.js → exe-org-SJXHLV6K.js} +76 -51
  275. package/dist/{exe-snapshot-U7ONBYNY.js → exe-snapshot-EFWPXTXE.js} +45 -36
  276. package/dist/{fast-db-init-W3NGKAEU.js → fast-db-init-BQZOQNT3.js} +1 -1
  277. package/dist/{founder-context-ZSIBRVDM.js → founder-context-KG2ZAOXY.js} +2 -2
  278. package/dist/{founder-monitor-envelope-L3IWZLFY.js → founder-monitor-envelope-NYB5LLU4.js} +4 -4
  279. package/dist/gateway/index.js +20 -18
  280. package/dist/{gateway-client-DJFCVIPT.js → gateway-client-ODMUXUL3.js} +1 -1
  281. package/dist/{git-staleness-OF24QXFZ.js → git-staleness-OPGEAJA7.js} +6 -4
  282. package/dist/{global-procedures-WSIOWO43.js → global-procedures-3KXY4LL6.js} +8 -6
  283. package/dist/{graph-auto-extract-IEVVN3L3.js → graph-auto-extract-I7H2F5NJ.js} +10 -8
  284. package/dist/{graph-query-JDZWAVCU.js → graph-query-E7JBSNY5.js} +1 -1
  285. package/dist/{graph-rag-BKAD2XQA.js → graph-rag-H24CMFP2.js} +5 -4
  286. package/dist/{hook-integrity-TPWDGX2M.js → hook-integrity-PGQ3OX4S.js} +1 -1
  287. package/dist/{hook-prefetch-FD6VGJJA.js → hook-prefetch-7AZJER6Z.js} +23 -21
  288. package/dist/hook-registration-liveness-NGQRFKAA.js +11 -0
  289. package/dist/hooks/bug-report-worker.js +26 -24
  290. package/dist/hooks/codex-stop-task-finalizer.js +28 -26
  291. package/dist/hooks/commit-complete.js +26 -24
  292. package/dist/hooks/error-recall.js +16 -14
  293. package/dist/hooks/exe-heartbeat-hook.js +9 -7
  294. package/dist/hooks/ingest-worker.js +12 -10
  295. package/dist/hooks/ingest.js +22 -17
  296. package/dist/hooks/instructions-loaded.js +11 -9
  297. package/dist/hooks/manifest.json +20 -20
  298. package/dist/hooks/notification.js +10 -8
  299. package/dist/hooks/post-compact.js +9 -7
  300. package/dist/hooks/post-tool-combined.js +14 -14
  301. package/dist/hooks/pre-compact.js +26 -24
  302. package/dist/hooks/pre-tool-use.js +2 -2
  303. package/dist/hooks/prompt-submit.js +47 -41
  304. package/dist/hooks/session-end.js +38 -42
  305. package/dist/hooks/session-start.js +26 -18
  306. package/dist/hooks/stop.js +29 -27
  307. package/dist/hooks/subagent-stop.js +29 -27
  308. package/dist/hooks/summary-worker.js +32 -30
  309. package/dist/index.js +37 -35
  310. package/dist/{installer-OTI5SA43.js → installer-2ZS3LHCU.js} +12 -9
  311. package/dist/{installer-NMOBSEZ2.js → installer-NH3A3HWC.js} +14 -9
  312. package/dist/{installer-SRJGE4GU.js → installer-UJ73PGRD.js} +21 -9
  313. package/dist/{intercom-queue-4FFXCBHO.js → intercom-queue-OE25GJF2.js} +21 -19
  314. package/dist/lib/agent-config.js +2 -2
  315. package/dist/lib/cloud-sync.js +24 -18
  316. package/dist/lib/consolidation.js +13 -11
  317. package/dist/lib/crypto.js +3 -3
  318. package/dist/lib/database.js +6 -4
  319. package/dist/lib/db-backup.js +1 -1
  320. package/dist/lib/db-write-worker-client.js +3 -1
  321. package/dist/lib/db-write-worker.js +65 -89
  322. package/dist/lib/db.js +6 -4
  323. package/dist/lib/delivery-truth.js +5 -1
  324. package/dist/lib/device-registry.js +1 -1
  325. package/dist/lib/embedder.js +2 -2
  326. package/dist/lib/employee-templates.js +9 -7
  327. package/dist/lib/employees.js +6 -4
  328. package/dist/lib/exe-daemon.js +425 -314
  329. package/dist/lib/file-grep.js +15 -21
  330. package/dist/lib/hybrid-search.js +19 -13
  331. package/dist/lib/identity-templates.js +1 -1
  332. package/dist/lib/identity.js +6 -4
  333. package/dist/lib/keychain.js +1 -1
  334. package/dist/lib/license.js +22 -6
  335. package/dist/lib/messaging.js +22 -20
  336. package/dist/lib/post-tool-memory.js +10 -8
  337. package/dist/lib/registry-proxy.js +1 -1
  338. package/dist/lib/reminders.js +7 -5
  339. package/dist/lib/runtime-table.js +1 -1
  340. package/dist/lib/schedules.js +12 -10
  341. package/dist/lib/session-registry.js +8 -6
  342. package/dist/lib/skill-learning.js +13 -11
  343. package/dist/lib/status-brief.js +2 -2
  344. package/dist/lib/store.js +17 -9
  345. package/dist/lib/task-router.js +7 -5
  346. package/dist/lib/tasks.js +23 -21
  347. package/dist/lib/tmux-routing.js +21 -19
  348. package/dist/lib/tmux-status.js +4 -1
  349. package/dist/lib/token-spend.js +7 -5
  350. package/dist/lib/ws-client.js +1 -1
  351. package/dist/{license-gate-R4JWTWM4.js → license-gate-XQ2KN5I5.js} +3 -3
  352. package/dist/{license-recheck-3MBJ4IJX.js → license-recheck-IIBKR2V5.js} +1 -1
  353. package/dist/{license-sync-BVSG3WMW.js → license-sync-76JVI2M5.js} +151 -8
  354. package/dist/{local-secret-inventory-JWNBHZZ4.js → local-secret-inventory-MJT7NJLY.js} +2 -2
  355. package/dist/{mailbox-inbox-MTAT4MXX.js → mailbox-inbox-BPZP4GIZ.js} +1 -1
  356. package/dist/maintenance-worker-54VZTFIK.js +371 -0
  357. package/dist/mcp/register-tools.js +110 -107
  358. package/dist/mcp/server.js +113 -110
  359. package/dist/mcp/tools/complete-reminder.js +8 -6
  360. package/dist/mcp/tools/create-reminder.js +8 -6
  361. package/dist/mcp/tools/create-task.js +26 -24
  362. package/dist/mcp/tools/deactivate-behavior.js +15 -13
  363. package/dist/mcp/tools/list-reminders.js +8 -6
  364. package/dist/mcp/tools/list-tasks.js +26 -24
  365. package/dist/mcp/tools/send-message.js +25 -23
  366. package/dist/mcp/tools/update-task.js +24 -22
  367. package/dist/{mcp-child-registry-TIZERM7O.js → mcp-child-registry-5VUG5ATZ.js} +1 -1
  368. package/dist/{mcp-http-config-VUMSFWFH.js → mcp-http-config-SKXESWHA.js} +9 -7
  369. package/dist/{mcp-session-identity-DZHWEJRV.js → mcp-session-identity-HYMLJXXA.js} +21 -19
  370. package/dist/{memory-cards-JVXTMSAT.js → memory-cards-PAZDUQ3B.js} +16 -32
  371. package/dist/{memory-graph-extractor-PPBJMYFJ.js → memory-graph-extractor-BC6QKBY6.js} +11 -9
  372. package/dist/{memory-poisoning-defense-K5Q74XQ4.js → memory-poisoning-defense-BRGIHF6J.js} +9 -7
  373. package/dist/{memory-pressure-watchdog-YMJH5CSA.js → memory-pressure-watchdog-HR6TPOMT.js} +22 -20
  374. package/dist/{memory-reflection-7BZWIHRE.js → memory-reflection-LO7VFBL3.js} +38 -59
  375. package/dist/memory-write-repository-J25USX63.js +16 -0
  376. package/dist/{monitor-grants-Q7X3MYQP.js → monitor-grants-YQTO6NWR.js} +3 -3
  377. package/dist/{monitor-identity-ZQB4IXEE.js → monitor-identity-POVTG76Y.js} +2 -2
  378. package/dist/{notification-ledger-XRAXL5OI.js → notification-ledger-KLD6GZTG.js} +22 -20
  379. package/dist/{notifications-JE3PX55X.js → notifications-3R6HNHDR.js} +21 -19
  380. package/dist/{orchestration-events-JCQ5F5IJ.js → orchestration-events-CHY3GOJD.js} +7 -5
  381. package/dist/{orchestrator-X65INDTR.js → orchestrator-GAL3HOAD.js} +23 -21
  382. package/dist/{org-brief-session-3PQ22UIX.js → org-brief-session-LQ2DBYVF.js} +17 -15
  383. package/dist/{org-consent-policy-VGELJ7K7.js → org-consent-policy-KFUP7QPG.js} +5 -5
  384. package/dist/{org-join-6TO5ZYUZ.js → org-join-MXZCIQWX.js} +8 -8
  385. package/dist/{org-key-admin-XHYVRRAZ.js → org-key-admin-4UK6QUT7.js} +9 -9
  386. package/dist/{org-key-pin-TTTYGTQL.js → org-key-pin-ZOX4OM3O.js} +3 -3
  387. package/dist/{org-membership-Y7T2BS57.js → org-membership-D5TPN45F.js} +4 -4
  388. package/dist/{org-partner-config-OP4NEUNF.js → org-partner-config-3FXSYPQA.js} +7 -7
  389. package/dist/{org-partner-runtime-YNVUNT2R.js → org-partner-runtime-TH3LMPII.js} +20 -16
  390. package/dist/{org-row-visibility-JBBXNYXD.js → org-row-visibility-Y5R33C5U.js} +1 -1
  391. package/dist/{pipeline-router-EIBB7QNG.js → pipeline-router-E2JZLDK6.js} +7 -5
  392. package/dist/{plan-limits-MEWXYLEN.js → plan-limits-NYI6R4IK.js} +9 -7
  393. package/dist/{platform-procedures-Z7ZGBJWN.js → platform-procedures-RTD5E3BD.js} +5 -3
  394. package/dist/{pre-tool-use-impl-C6KJY22W.js → pre-tool-use-impl-LT4FRXBP.js} +127 -83
  395. package/dist/{project-boot-VEYFCCSL.js → project-boot-LIMXQKAF.js} +25 -17
  396. package/dist/{project-name-UYORSNGE.js → project-name-V62GWALX.js} +7 -5
  397. package/dist/{projection-worker-WYFDWS57.js → projection-worker-KLE3IZQ2.js} +5 -2
  398. package/dist/{prospective-memory-E6XBQFJA.js → prospective-memory-HRN7JFT2.js} +6 -4
  399. package/dist/{push-notifications-M7YU63FY.js → push-notifications-XC6EQEXF.js} +22 -20
  400. package/dist/{reproject-worktree-memories-B5XMGJSD.js → reproject-worktree-memories-4CAVZSFE.js} +21 -19
  401. package/dist/{reranker-SRA4BR7N.js → reranker-2RU6IIX2.js} +1 -1
  402. package/dist/{retrieval-health-P2JPZUPV.js → retrieval-health-4Q5TOV2S.js} +1 -1
  403. package/dist/{review-polling-KQPN7IQE.js → review-polling-WOWIMBCL.js} +22 -20
  404. package/dist/runtime/index.js +30 -28
  405. package/dist/{session-events-6LDDKKY3.js → session-events-OPMS2C5F.js} +22 -20
  406. package/dist/{session-kill-telemetry-5DSRGWCL.js → session-kill-telemetry-3GWATSIX.js} +22 -20
  407. package/dist/{session-scope-XG5R3P3D.js → session-scope-TIRGR4MH.js} +21 -19
  408. package/dist/{setup-wizard-7QFLZIKT.js → setup-wizard-B2JBVGNH.js} +3 -3
  409. package/dist/{shard-manager-HHHHV2KZ.js → shard-manager-C7LYX6E4.js} +5 -1
  410. package/dist/{skill-refinement-I5RMAHSC.js → skill-refinement-FWQFYNBI.js} +7 -5
  411. package/dist/skill-retrieval-PPLFC5RY.js +166 -0
  412. package/dist/skill-usage-NDB67PU2.js +25 -0
  413. package/dist/{stack-generate-manifest-AKMZ3AUX.js → stack-generate-manifest-AXI55MEQ.js} +6 -6
  414. package/dist/{stack-promote-34CE2HHF.js → stack-promote-6N23OGZY.js} +6 -6
  415. package/dist/stack-release-2CXFYVWM.js +2770 -0
  416. package/dist/{stack-update-ZQQ5YYPJ.js → stack-update-U53FBVCQ.js} +13 -5
  417. package/dist/{steward-gate-AQJ6KT2C.js → steward-gate-TUA3QCN7.js} +7 -5
  418. package/dist/{subagent-brief-injection-3GU7YAWY.js → subagent-brief-injection-N52RWYFZ.js} +34 -32
  419. package/dist/{subagent-spawn-ledger-52I66CLW.js → subagent-spawn-ledger-OI23OT4I.js} +1 -1
  420. package/dist/support-bug-actions-XWCJI6S5.js +30 -0
  421. package/dist/support-inbox-MMVTCXRX.js +77 -0
  422. package/dist/{support-outbox-KNI3FR3G.js → support-outbox-2TG2UV6J.js} +2 -2
  423. package/dist/{task-enforcement-CAA6D2MH.js → task-enforcement-JDMBAAOY.js} +22 -20
  424. package/dist/{task-request-inbox-QBZVU66E.js → task-request-inbox-PKJCYKJV.js} +9 -5
  425. package/dist/{task-scope-NHXB4ZRN.js → task-scope-32HQEV6W.js} +27 -19
  426. package/dist/{tasks-crud-JHSWL5NM.js → tasks-crud-CYKUKS3F.js} +21 -19
  427. package/dist/{tasks-notify-7PBE4U7T.js → tasks-notify-YND5MKWJ.js} +22 -20
  428. package/dist/{tasks-review-PPPVEE62.js → tasks-review-CG2A5GM3.js} +23 -19
  429. package/dist/{telemetry-upload-YU2VRNHX.js → telemetry-upload-WLUMEFAB.js} +11 -9
  430. package/dist/{token-budget-QCMWKG3K.js → token-budget-3YHAY5LL.js} +7 -5
  431. package/dist/{tool-capability-index-7AWQAJRP.js → tool-capability-index-2ADOWH43.js} +2 -2
  432. package/dist/{tool-gates-5Q3RSQEG.js → tool-gates-7ENOOYMR.js} +5 -3
  433. package/dist/{tool-gates-QD26D2NE.js → tool-gates-EKJTLVGN.js} +1 -1
  434. package/dist/{tool-telemetry-LTOIC64I.js → tool-telemetry-VUP7S6HC.js} +1 -1
  435. package/dist/tui/App.js +59 -35
  436. package/dist/{tui-data-NDBXD6U7.js → tui-data-BOQTOW2G.js} +25 -23
  437. package/dist/{update-support-BMJM4NG7.js → update-support-WT3S3AQ4.js} +21 -21
  438. package/dist/{whatsapp-QQLDAHUX.js → whatsapp-OZGIF2EM.js} +2 -2
  439. package/dist/{wiki-acl-W6WDCVCP.js → wiki-acl-LTEQJVDA.js} +1 -1
  440. package/dist/{work-claims-6DM32MGO.js → work-claims-CMV2GWIW.js} +8 -6
  441. package/dist/{work-state-heartbeat-HG7D4AWJ.js → work-state-heartbeat-S45TXK4M.js} +1 -1
  442. package/dist/{worker-gate-FTMW7GBB.js → worker-gate-7Z6NMM3G.js} +1 -1
  443. package/dist/{workflow-engine-ZWC6CCXE.js → workflow-engine-ZSQDXZQ7.js} +2 -2
  444. package/dist/{worktree-EMQCPGFE.js → worktree-NMWDVT6N.js} +8 -6
  445. package/dist/worktree-ownership-guard-ZVIWJAOP.js +35 -0
  446. package/dist/{worktree-sweep-XVUJZBXV.js → worktree-sweep-Q62ZIT3U.js} +9 -7
  447. package/package.json +14 -8
  448. package/release-notes.json +7 -41
  449. package/src/commands/exe/afk.md +6 -0
  450. package/src/commands/exe/call.md +6 -0
  451. package/src/commands/exe/employee-heartbeat.md +6 -0
  452. package/src/commands/exe/intercom.md +6 -0
  453. package/src/commands/exe/kill.md +6 -0
  454. package/src/commands/exe/launch.md +6 -0
  455. package/src/commands/exe/logs.md +1 -1
  456. package/src/commands/exe/sessions.md +6 -0
  457. package/src/commands/exe/setup.md +7 -3
  458. package/src/commands/exe/status.md +6 -0
  459. package/src/commands/exe-reference.md +25 -36
  460. package/src/commands/exe.md +19 -28
  461. package/stack.release.json +11 -11
  462. package/dist/chunk-3B6FLNLV.js +0 -30
  463. package/dist/chunk-FXU7JOXK.js +0 -6
  464. package/dist/chunk-QFAFKEB5.js +0 -820
  465. package/dist/conversations-retention-C4BLKFEL.js +0 -54
  466. package/dist/stack-release-5PGWV5D4.js +0 -1607
  467. package/dist/support-inbox-NY5TB3FN.js +0 -51
  468. /package/dist/{chunk-U2D6PJ5T.js → chunk-65G7ZTGE.js} +0 -0
  469. /package/dist/{chunk-DN3ZR3UE.js → chunk-CP7Z35MJ.js} +0 -0
  470. /package/dist/{chunk-XDVOGDBC.js → chunk-KBBWALJV.js} +0 -0
  471. /package/dist/{chunk-JRIH6I7D.js → chunk-LZXYPTY4.js} +0 -0
  472. /package/dist/{chunk-GIRD7O5X.js → chunk-MCWEW2SG.js} +0 -0
  473. /package/dist/{chunk-TKAU7IJ2.js → chunk-MQHUJLCA.js} +0 -0
  474. /package/dist/{chunk-M4XY4JRK.js → chunk-O53LTOXK.js} +0 -0
  475. /package/dist/{chunk-DZN7SDY2.js → chunk-OSVTH3SG.js} +0 -0
  476. /package/dist/{chunk-AJK2PVQW.js → chunk-QXXEXGX3.js} +0 -0
  477. /package/dist/{chunk-AWWDKF22.js → chunk-SFWNTO2F.js} +0 -0
  478. /package/dist/{chunk-2Q2CD6CD.js → chunk-WC5HF2FN.js} +0 -0
  479. /package/dist/{core-memory-O6D5UC3T.js → core-memory-MMMW3TF3.js} +0 -0
  480. /package/dist/{memory-isolation-EBFFC6HF.js → memory-isolation-67ACKQ2M.js} +0 -0
  481. /package/dist/{oauth-server-ZKBUHDFI.js → oauth-server-OILIKR7D.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAgentLivenessReport
3
- } from "./chunk-PHUHIVD5.js";
3
+ } from "./chunk-C6U7XWOC.js";
4
4
  import {
5
5
  leaseExpiryIso,
6
6
  leaseNowIso
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-BTSWFMEH.js";
11
11
  import {
12
12
  getClient
13
- } from "./chunk-GL47M7NY.js";
13
+ } from "./chunk-3UD3OF3X.js";
14
14
 
15
15
  // src/lib/work-claims.ts
16
16
  var CLAIM_TTL_MINUTES = 90;
@@ -306,7 +306,7 @@ async function heartbeatClaims(holderSession, ttlMinutes = CLAIM_TTL_MINUTES) {
306
306
  }
307
307
  async function recordClaimEvent(eventType, sessionScope, agentId, payload, severity) {
308
308
  try {
309
- const { recordOrchestrationEventBestEffort } = await import("./orchestration-events-JCQ5F5IJ.js");
309
+ const { recordOrchestrationEventBestEffort } = await import("./orchestration-events-CHY3GOJD.js");
310
310
  recordOrchestrationEventBestEffort({
311
311
  eventType,
312
312
  source: "work-claims",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recordOrchestrationEventBestEffort
3
- } from "./chunk-LSNBTGW4.js";
3
+ } from "./chunk-DPYZW42H.js";
4
4
  import {
5
5
  atomicWriteJsonSync
6
6
  } from "./chunk-HSGBZSCA.js";
@@ -1,11 +1,19 @@
1
+ import {
2
+ assertHermeticTmux
3
+ } from "./chunk-RH4AH3YB.js";
4
+
1
5
  // src/lib/tmux-status.ts
2
6
  import { execFileSync } from "child_process";
7
+ function tmuxArgs(args) {
8
+ const sock = process.env.EXE_TMUX_SOCKET;
9
+ return sock ? ["-L", sock, ...args] : args;
10
+ }
3
11
  function inTmux() {
4
12
  if (process.env.TMUX || process.env.TMUX_PANE) return true;
5
13
  const term = process.env.TERM ?? "";
6
14
  if (term.startsWith("tmux") || term.startsWith("screen")) return true;
7
15
  try {
8
- execFileSync("tmux", ["display-message", "-p", "#{session_name}"], {
16
+ execFileSync("tmux", tmuxArgs(["display-message", "-p", "#{session_name}"]), {
9
17
  encoding: "utf8",
10
18
  stdio: ["pipe", "pipe", "pipe"],
11
19
  timeout: 2e3
@@ -53,8 +61,9 @@ function resetTmuxAbsenceWarning() {
53
61
  tmuxAbsenceWarned = false;
54
62
  }
55
63
  function listTmuxSessions() {
64
+ assertHermeticTmux();
56
65
  try {
57
- const out = execFileSync("tmux", ["list-sessions", "-F", "#{session_name}"], {
66
+ const out = execFileSync("tmux", tmuxArgs(["list-sessions", "-F", "#{session_name}"]), {
58
67
  encoding: "utf8",
59
68
  stdio: ["pipe", "pipe", "pipe"],
60
69
  timeout: 3e3
@@ -67,11 +76,12 @@ function listTmuxSessions() {
67
76
  }
68
77
  var listTmuxWindows = listTmuxSessions;
69
78
  async function listTmuxSessionsAsync() {
79
+ assertHermeticTmux();
70
80
  try {
71
81
  const { promisify } = await import("util");
72
82
  const { execFile } = await import("child_process");
73
83
  const exec = promisify(execFile);
74
- const { stdout } = await exec("tmux", ["list-sessions", "-F", "#{session_name}"], {
84
+ const { stdout } = await exec("tmux", tmuxArgs(["list-sessions", "-F", "#{session_name}"]), {
75
85
  encoding: "utf8",
76
86
  timeout: 3e3
77
87
  });
@@ -86,7 +96,7 @@ async function classifyTmuxSessionsAsync() {
86
96
  const { promisify } = await import("util");
87
97
  const { execFile } = await import("child_process");
88
98
  const exec = promisify(execFile);
89
- const { stdout } = await exec("tmux", ["list-sessions", "-F", "#{session_name}"], {
99
+ const { stdout } = await exec("tmux", tmuxArgs(["list-sessions", "-F", "#{session_name}"]), {
90
100
  encoding: "utf8",
91
101
  timeout: 3e3
92
102
  });
@@ -108,7 +118,7 @@ function capturePaneLines(windowName, lines = 10) {
108
118
  try {
109
119
  const out = execFileSync(
110
120
  "tmux",
111
- ["capture-pane", "-t", windowName, "-p", "-S", `-${Math.max(1, lines)}`],
121
+ tmuxArgs(["capture-pane", "-t", windowName, "-p", "-S", `-${Math.max(1, lines)}`]),
112
122
  { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e3 }
113
123
  );
114
124
  return out.split("\n").filter((l) => l.trim()).slice(-Math.max(1, lines));
@@ -118,24 +128,27 @@ function capturePaneLines(windowName, lines = 10) {
118
128
  }
119
129
  async function capturePaneLinesAsync(windowName, lines = 10) {
120
130
  try {
121
- const { promisify } = await import("util");
122
- const { execFile } = await import("child_process");
123
- const exec = promisify(execFile);
124
- const { stdout } = await exec(
125
- "tmux",
126
- ["capture-pane", "-t", windowName, "-p", "-S", `-${Math.max(1, lines)}`],
127
- { encoding: "utf8", timeout: 3e3 }
128
- );
129
- return String(stdout ?? "").split("\n").filter((l) => l.trim()).slice(-Math.max(1, lines));
131
+ return await capturePaneLinesStrictAsync(windowName, lines);
130
132
  } catch {
131
133
  return [];
132
134
  }
133
135
  }
136
+ async function capturePaneLinesStrictAsync(windowName, lines = 10) {
137
+ const { promisify } = await import("util");
138
+ const { execFile } = await import("child_process");
139
+ const exec = promisify(execFile);
140
+ const { stdout } = await exec(
141
+ "tmux",
142
+ tmuxArgs(["capture-pane", "-t", windowName, "-p", "-S", `-${Math.max(1, lines)}`]),
143
+ { encoding: "utf8", timeout: 3e3 }
144
+ );
145
+ return String(stdout ?? "").split("\n").filter((l) => l.trim()).slice(-Math.max(1, lines));
146
+ }
134
147
  function getPaneCwd(windowName) {
135
148
  try {
136
149
  const out = execFileSync(
137
150
  "tmux",
138
- ["display-message", "-t", windowName, "-p", "#{pane_current_path}"],
151
+ tmuxArgs(["display-message", "-t", windowName, "-p", "#{pane_current_path}"]),
139
152
  { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e3 }
140
153
  );
141
154
  return out.trim() || void 0;
@@ -147,7 +160,7 @@ function getPanePid(windowName) {
147
160
  try {
148
161
  const out = execFileSync(
149
162
  "tmux",
150
- ["list-panes", "-t", windowName, "-F", "#{pane_pid}"],
163
+ tmuxArgs(["list-panes", "-t", windowName, "-F", "#{pane_pid}"]),
151
164
  { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e3 }
152
165
  );
153
166
  const pidStr = out.trim();
@@ -162,7 +175,7 @@ async function getPaneCwdAsync(windowName) {
162
175
  const { promisify } = await import("util");
163
176
  const { execFile } = await import("child_process");
164
177
  const exec = promisify(execFile);
165
- const { stdout } = await exec("tmux", ["display-message", "-t", windowName, "-p", "#{pane_current_path}"], { timeout: 3e3 });
178
+ const { stdout } = await exec("tmux", tmuxArgs(["display-message", "-t", windowName, "-p", "#{pane_current_path}"]), { timeout: 3e3 });
166
179
  return stdout.trim() || void 0;
167
180
  } catch {
168
181
  return void 0;
@@ -175,7 +188,7 @@ async function getPanePidAsync(windowName) {
175
188
  const exec = promisify(execFile);
176
189
  const { stdout } = await exec(
177
190
  "tmux",
178
- ["list-panes", "-t", windowName, "-F", "#{pane_pid}"],
191
+ tmuxArgs(["list-panes", "-t", windowName, "-F", "#{pane_pid}"]),
179
192
  { encoding: "utf8", timeout: 3e3 }
180
193
  );
181
194
  const pid = Number.parseInt(String(stdout ?? "").trim(), 10);
@@ -263,7 +276,7 @@ function getEmployeeStatuses(employeeNames) {
263
276
  try {
264
277
  const paneStatus = execFileSync(
265
278
  "tmux",
266
- ["list-panes", "-t", sessionName, "-F", "#{pane_dead}"],
279
+ tmuxArgs(["list-panes", "-t", sessionName, "-F", "#{pane_dead}"]),
267
280
  { encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e3 }
268
281
  ).trim();
269
282
  if (paneStatus === "1") paneAlive = false;
@@ -383,6 +396,7 @@ export {
383
396
  classifyTmuxSessionsAsync,
384
397
  capturePaneLines,
385
398
  capturePaneLinesAsync,
399
+ capturePaneLinesStrictAsync,
386
400
  getPaneCwd,
387
401
  getPanePid,
388
402
  getPaneCwdAsync,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listReminders
3
- } from "./chunk-UXN4BICC.js";
3
+ } from "./chunk-XMX5J52Z.js";
4
4
 
5
5
  // src/mcp/tools/list-reminders.ts
6
6
  import { z } from "zod";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  shutdownCli
3
- } from "./chunk-GIRD7O5X.js";
3
+ } from "./chunk-MCWEW2SG.js";
4
4
  import {
5
5
  fastDbInit
6
- } from "./chunk-XDVOGDBC.js";
6
+ } from "./chunk-KBBWALJV.js";
7
7
  import {
8
8
  sessionScopeFilter
9
- } from "./chunk-7UHZBVP3.js";
9
+ } from "./chunk-QDVLVLXP.js";
10
10
  import {
11
11
  formatStatusAll,
12
12
  formatStatusDeep,
13
13
  getEmployeeStatuses,
14
14
  inTmux
15
- } from "./chunk-PUBA5B4M.js";
15
+ } from "./chunk-6L4VIYLZ.js";
16
16
  import {
17
17
  getClient,
18
18
  isCoordinatorRole,
19
19
  loadEmployees
20
- } from "./chunk-GL47M7NY.js";
20
+ } from "./chunk-3UD3OF3X.js";
21
21
  import {
22
22
  isMainModule
23
23
  } from "./chunk-6Y4B3QF6.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  deactivateBehavior
3
- } from "./chunk-S26CV7BE.js";
3
+ } from "./chunk-YA5LK6KB.js";
4
4
  import {
5
5
  getActiveAgent
6
- } from "./chunk-F4BBMIPG.js";
6
+ } from "./chunk-B4XJQBQB.js";
7
7
  import {
8
8
  canCoordinate,
9
9
  getClient
10
- } from "./chunk-GL47M7NY.js";
10
+ } from "./chunk-3UD3OF3X.js";
11
11
 
12
12
  // src/mcp/tools/deactivate-behavior.ts
13
13
  import { z } from "zod";
@@ -24,7 +24,7 @@ function registerDeactivateBehavior(server) {
24
24
  async ({ behavior_id }) => {
25
25
  const caller = getActiveAgent();
26
26
  try {
27
- const { StewardGate } = await import("./steward-gate-AQJ6KT2C.js");
27
+ const { StewardGate } = await import("./steward-gate-TUA3QCN7.js");
28
28
  const steward = new StewardGate();
29
29
  const gateDecision = await steward.checkAuthority(caller.agentId || "unknown", "deactivate_behavior", behavior_id);
30
30
  if (!gateDecision.allowed) {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  buildSystemStateMemoryTypeExclusion
3
- } from "./chunk-UOPCVFVR.js";
3
+ } from "./chunk-5RK75SWH.js";
4
4
  import {
5
5
  sessionScopeFilter
6
- } from "./chunk-7UHZBVP3.js";
6
+ } from "./chunk-QDVLVLXP.js";
7
7
  import {
8
8
  getClient,
9
9
  getIdentity
10
- } from "./chunk-GL47M7NY.js";
10
+ } from "./chunk-3UD3OF3X.js";
11
11
  import {
12
12
  getEmotionalBaseline
13
- } from "./chunk-L5CGXEZC.js";
13
+ } from "./chunk-WAAGVFFN.js";
14
14
 
15
15
  // src/lib/dreaming.ts
16
16
  var DreamingEngine = class {
@@ -646,7 +646,7 @@ var DreamingEngine = class {
646
646
  }
647
647
  let overdueProspective = [];
648
648
  try {
649
- const { getOverdueProspective, completeProspective } = await import("./prospective-memory-E6XBQFJA.js");
649
+ const { getOverdueProspective, completeProspective } = await import("./prospective-memory-HRN7JFT2.js");
650
650
  const overdue = await getOverdueProspective(agentId);
651
651
  overdueProspective = overdue.map((o) => ({
652
652
  id: o.id,
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  pinMismatchReason,
3
3
  readOrgKeyPin
4
- } from "./chunk-ZAEUEDTN.js";
4
+ } from "./chunk-ZD6FZ3WL.js";
5
5
  import {
6
6
  derivePartnerSignIdentity,
7
7
  displayFingerprint,
8
8
  signKeyFingerprint
9
- } from "./chunk-DMUOTCDN.js";
9
+ } from "./chunk-E5CKRHIZ.js";
10
10
  import {
11
11
  orgMembershipPresent,
12
12
  readActiveOrgMemberships
13
- } from "./chunk-JA3Y5TV6.js";
13
+ } from "./chunk-GDLB6BPM.js";
14
14
  import {
15
15
  exportRawPublicKey,
16
16
  isValidX25519Recipient,
17
17
  privateKeyFromScalar
18
- } from "./chunk-4AR5XKCH.js";
18
+ } from "./chunk-CL2MU3OX.js";
19
19
  import {
20
20
  getMasterKey
21
- } from "./chunk-5U2IJBFV.js";
21
+ } from "./chunk-TA3B4N24.js";
22
22
 
23
23
  // src/lib/partner-seal-identity.ts
24
24
  import crypto from "crypto";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getActiveAgent
3
- } from "./chunk-F4BBMIPG.js";
3
+ } from "./chunk-B4XJQBQB.js";
4
4
  import {
5
5
  listTasks
6
- } from "./chunk-7UHZBVP3.js";
6
+ } from "./chunk-QDVLVLXP.js";
7
7
  import {
8
8
  getAgentContext
9
9
  } from "./chunk-GJV3WDWM.js";
10
10
  import {
11
11
  isCoordinatorName
12
- } from "./chunk-GL47M7NY.js";
12
+ } from "./chunk-3UD3OF3X.js";
13
13
 
14
14
  // src/mcp/tools/list-tasks.ts
15
15
  import { z } from "zod";
@@ -85,7 +85,7 @@ async function getRetrievalHealth() {
85
85
  totalMemories = Number(totalRes.rows[0]?.cnt ?? 0);
86
86
  memoriesWithVectors = Number(vectorRes.rows[0]?.cnt ?? 0);
87
87
  try {
88
- const { getGraphStats } = await import("./graph-query-JDZWAVCU.js");
88
+ const { getGraphStats } = await import("./graph-query-E7JBSNY5.js");
89
89
  const stats = await getGraphStats(client);
90
90
  entities = stats.entities;
91
91
  relationships = stats.relationships;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hasLiveSubagentSpawn,
3
3
  projectScopedDefShadows
4
- } from "./chunk-MUCNYSJP.js";
4
+ } from "./chunk-NRLJOV7M.js";
5
5
  import {
6
6
  getSessionKey
7
7
  } from "./chunk-CVYC6DUW.js";
@@ -14,7 +14,7 @@ import {
14
14
  getEmployee,
15
15
  isCoordinatorRole,
16
16
  loadEmployeesSync
17
- } from "./chunk-GL47M7NY.js";
17
+ } from "./chunk-3UD3OF3X.js";
18
18
  import {
19
19
  EXE_AI_DIR
20
20
  } from "./chunk-MMS2HBRT.js";
@@ -3,13 +3,13 @@ import {
3
3
  getClient,
4
4
  isInitialized,
5
5
  loadEmployees
6
- } from "./chunk-GL47M7NY.js";
6
+ } from "./chunk-3UD3OF3X.js";
7
7
  import {
8
8
  checkLicense,
9
9
  isFeatureAllowed,
10
10
  isPersonalFreeGrandfathered,
11
11
  resolveClientLimits
12
- } from "./chunk-TNS63ATU.js";
12
+ } from "./chunk-FWRPDSO3.js";
13
13
  import {
14
14
  PLAN_LIMITS
15
15
  } from "./chunk-A7XLR3K7.js";
@@ -2,7 +2,7 @@ import {
2
2
  compareLiveArtifacts,
3
3
  declaredArtifactsFromManifest,
4
4
  parseDigest
5
- } from "./chunk-LFUBEHFW.js";
5
+ } from "./chunk-RT57D7C4.js";
6
6
  import {
7
7
  CANONICAL_SSO_COOKIE,
8
8
  evaluateSsoCookieContract
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  completeReminder,
3
3
  formatAmbiguousReminder
4
- } from "./chunk-UXN4BICC.js";
4
+ } from "./chunk-XMX5J52Z.js";
5
5
 
6
6
  // src/mcp/tools/complete-reminder.ts
7
7
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  // src/lib/deploy-staleness.ts
2
- import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
2
+ import { existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from "fs";
3
3
  import os from "os";
4
4
  import path from "path";
5
5
  var SETTLED_STATUSES = /* @__PURE__ */ new Set(["completed", "skipped", "unchanged"]);
@@ -57,12 +57,29 @@ function clearDeployStalenessAlert(alertPath = deployStalenessAlertPath()) {
57
57
  } catch {
58
58
  }
59
59
  }
60
- function readDeployStalenessAlert(alertPath = deployStalenessAlertPath()) {
60
+ function unreadableReason(target) {
61
61
  try {
62
- if (!existsSync(alertPath)) return null;
63
- return JSON.parse(readFileSync(alertPath, "utf8"));
64
- } catch {
62
+ statSync(target);
65
63
  return null;
64
+ } catch (err) {
65
+ const code = err.code;
66
+ if (code === "ENOENT" || code === "ENOTDIR") return null;
67
+ return `${target} could not be stat'ed (${code ?? "unknown error"})`;
68
+ }
69
+ }
70
+ function readDeployStalenessAlertResult(alertPath = deployStalenessAlertPath()) {
71
+ const unreadable = unreadableReason(alertPath);
72
+ if (unreadable) return { value: null, unverifiable: [`deploy-staleness alert: ${unreadable}`] };
73
+ if (!existsSync(alertPath)) return { value: null, unverifiable: [] };
74
+ try {
75
+ const parsed = JSON.parse(readFileSync(alertPath, "utf8"));
76
+ if (parsed && typeof parsed === "object") return { value: parsed, unverifiable: [] };
77
+ return { value: null, unverifiable: [`deploy-staleness alert at ${alertPath} parsed to a non-object`] };
78
+ } catch (err) {
79
+ return {
80
+ value: null,
81
+ unverifiable: [`deploy-staleness alert at ${alertPath} could not be read: ${err.message}`]
82
+ };
66
83
  }
67
84
  }
68
85
  function stackLockCandidatePaths() {
@@ -73,22 +90,52 @@ function stackLockCandidatePaths() {
73
90
  path.join(process.cwd(), ".exe-stack-lock.json")
74
91
  ];
75
92
  }
76
- function readStackLockSnapshot(candidates = stackLockCandidatePaths()) {
93
+ function readStackLockSnapshotResult(candidates = stackLockCandidatePaths()) {
94
+ const unverifiable = [];
77
95
  for (const candidate of candidates) {
96
+ const unreadable = unreadableReason(candidate);
97
+ if (unreadable) {
98
+ unverifiable.push(`stack lock: ${unreadable}`);
99
+ continue;
100
+ }
101
+ if (!existsSync(candidate)) continue;
78
102
  try {
79
- if (!existsSync(candidate)) continue;
80
103
  const parsed = JSON.parse(readFileSync(candidate, "utf8"));
81
- if (parsed && typeof parsed === "object") return parsed;
82
- } catch {
104
+ if (parsed && typeof parsed === "object") return { value: parsed, unverifiable };
105
+ unverifiable.push(`stack lock at ${candidate} parsed to a non-object`);
106
+ } catch (err) {
107
+ unverifiable.push(`stack lock at ${candidate} could not be read: ${err.message}`);
83
108
  }
84
109
  }
85
- return null;
110
+ return { value: null, unverifiable };
86
111
  }
87
- function resolveDeployStalenessAlert(alertPath = deployStalenessAlertPath(), candidates = stackLockCandidatePaths(), now = () => /* @__PURE__ */ new Date()) {
88
- return readDeployStalenessAlert(alertPath) ?? evaluateDeployStaleness(readStackLockSnapshot(candidates), now);
112
+ function resolveDeployStalenessVerdict(alertPath = deployStalenessAlertPath(), candidates = stackLockCandidatePaths(), now = () => /* @__PURE__ */ new Date()) {
113
+ const alertRead = readDeployStalenessAlertResult(alertPath);
114
+ if (alertRead.value) return { alert: alertRead.value, unverifiable: alertRead.unverifiable };
115
+ const lockRead = readStackLockSnapshotResult(candidates);
116
+ return {
117
+ alert: evaluateDeployStaleness(lockRead.value, now),
118
+ unverifiable: [...alertRead.unverifiable, ...lockRead.unverifiable]
119
+ };
89
120
  }
90
- function buildDeployStalenessBanner(alert) {
91
- if (!alert) return [];
121
+ function buildDeployStalenessBanner(input) {
122
+ const verdict = input && "unverifiable" in input && "alert" in input ? input : { alert: input ?? null, unverifiable: [] };
123
+ const alert = verdict.alert;
124
+ if (!alert) {
125
+ if (verdict.unverifiable.length === 0) return [];
126
+ const unknown = [];
127
+ unknown.push("\u{1F7E0} DEPLOY STALENESS UNKNOWN \u2014 the state that decides it could not be read");
128
+ unknown.push("");
129
+ for (const reason of verdict.unverifiable) unknown.push(` ${reason}`);
130
+ unknown.push("");
131
+ unknown.push(' This is NOT "production is up to date": the check did not run. A stack stuck on the');
132
+ unknown.push(" wrong images would look exactly like this (bug f1c36209 went five weeks unnoticed).");
133
+ unknown.push("");
134
+ unknown.push(" \u{1F527} TO FIX:");
135
+ unknown.push(" 1. Fix the permission/IO error on the path(s) above, then reboot the brief.");
136
+ unknown.push(" 2. Or read the stack lock by hand: cat /opt/exe-stack/.exe-stack-lock.json");
137
+ return unknown;
138
+ }
92
139
  const lines = [];
93
140
  const age = alert.attemptedAt ? Date.parse(alert.attemptedAt) : NaN;
94
141
  const days = Number.isFinite(age) ? Math.floor((Date.now() - age) / 864e5) : null;
@@ -107,6 +154,11 @@ function buildDeployStalenessBanner(alert) {
107
154
  lines.push(` 1. ${alert.recovery.inspect}`);
108
155
  lines.push(` 2. ${alert.recovery.retry}`);
109
156
  lines.push(` 3. ${alert.recovery.acknowledge}`);
157
+ if (verdict.unverifiable.length > 0) {
158
+ lines.push("");
159
+ lines.push(" \u26A0 Additionally, a read that decides staleness did not happen:");
160
+ for (const reason of verdict.unverifiable) lines.push(` ${reason}`);
161
+ }
110
162
  return lines;
111
163
  }
112
164
 
@@ -115,6 +167,6 @@ export {
115
167
  deployStalenessAlertPath,
116
168
  writeDeployStalenessAlert,
117
169
  clearDeployStalenessAlert,
118
- resolveDeployStalenessAlert,
170
+ resolveDeployStalenessVerdict,
119
171
  buildDeployStalenessBanner
120
172
  };