@askexenow/exe-os 0.9.414 → 0.9.415

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 (422) hide show
  1. package/deploy/compose/.env.customer.example +1 -1
  2. package/deploy/compose/.env.default +1 -1
  3. package/deploy/compose/.env.example +1 -1
  4. package/deploy/compose/docker-compose.yml +1 -1
  5. package/deploy/stack-manifests/v0.9.json +399 -2
  6. package/dist/.dist-verified.json +3 -3
  7. package/dist/{active-agent-MHWQDMML.js → active-agent-LB7T3TLZ.js} +7 -6
  8. package/dist/{active-agent-3YCLS7GB.js → active-agent-NUV4ZSZV.js} +7 -6
  9. package/dist/{agent-defs-generator-DNXMO34I.js → agent-defs-generator-GMN7JLNZ.js} +6 -5
  10. package/dist/{agentic-ontology-RA6CMND6.js → agentic-ontology-ARQVAAYP.js} +1 -1
  11. package/dist/{artifact-backup-EETHNFFP.js → artifact-backup-C6CYTX4E.js} +3 -3
  12. package/dist/{backfill-metadata-WYT257VG.js → backfill-metadata-OLMSQBJF.js} +9 -8
  13. package/dist/{backup-verify-AG54CYGR.js → backup-verify-TPKH64MK.js} +3 -2
  14. package/dist/{behavior-injection-G7GAUHGO.js → behavior-injection-UJ6CW5K7.js} +12 -11
  15. package/dist/{behavior-promotion-I2DIUFUR.js → behavior-promotion-QSVT4WGD.js} +11 -10
  16. package/dist/{behaviors-SKVKPCRW.js → behaviors-6HWTCOTR.js} +10 -9
  17. package/dist/bin/agentic-ontology-backfill.js +10 -9
  18. package/dist/bin/agentic-reflection-backfill.js +11 -10
  19. package/dist/bin/agentic-semantic-label.js +10 -9
  20. package/dist/bin/backfill-conversations.js +9 -8
  21. package/dist/bin/backfill-responses.js +9 -8
  22. package/dist/bin/backfill-vectors.js +9 -8
  23. package/dist/bin/bulk-sync-postgres.js +18 -17
  24. package/dist/bin/cc-doctor.js +11 -10
  25. package/dist/bin/cleanup-stale-review-tasks.js +18 -17
  26. package/dist/bin/cli.js +60 -36
  27. package/dist/bin/deferred-daemon-restart.js +106 -105
  28. package/dist/bin/exe-agent-config.js +5 -4
  29. package/dist/bin/exe-agent.js +17 -16
  30. package/dist/bin/exe-assign.js +10 -9
  31. package/dist/bin/exe-boot.js +39 -38
  32. package/dist/bin/exe-call.js +10 -9
  33. package/dist/bin/exe-cloud.js +19 -18
  34. package/dist/bin/exe-config-dump.js +5 -4
  35. package/dist/bin/exe-dispatch.js +19 -18
  36. package/dist/bin/exe-doctor.js +9 -8
  37. package/dist/bin/exe-export-behaviors.js +14 -13
  38. package/dist/bin/exe-forget.js +12 -11
  39. package/dist/bin/exe-gateway.js +11 -10
  40. package/dist/bin/exe-grant.js +6 -6
  41. package/dist/bin/exe-healthcheck.js +11 -10
  42. package/dist/bin/exe-heartbeat.js +24 -23
  43. package/dist/bin/exe-kill.js +23 -22
  44. package/dist/bin/exe-launch-agent.js +66 -33
  45. package/dist/bin/exe-mcp.js +8 -7
  46. package/dist/bin/exe-memory-reads.js +9 -8
  47. package/dist/bin/exe-new-employee.js +14 -13
  48. package/dist/bin/exe-os-mcp-proxy.js +8 -7
  49. package/dist/bin/exe-pending-messages.js +19 -18
  50. package/dist/bin/exe-pending-notifications.js +18 -17
  51. package/dist/bin/exe-pending-reviews.js +19 -18
  52. package/dist/bin/exe-rename.js +9 -8
  53. package/dist/bin/exe-review.js +22 -21
  54. package/dist/bin/exe-search.js +11 -10
  55. package/dist/bin/exe-session-cleanup.js +23 -22
  56. package/dist/bin/exe-settings.js +18 -17
  57. package/dist/bin/exe-start-codex.js +21 -20
  58. package/dist/bin/exe-start-opencode.js +19 -18
  59. package/dist/bin/exe-start.sh +10 -1
  60. package/dist/bin/exe-status.js +20 -19
  61. package/dist/bin/exe-support.js +3 -3
  62. package/dist/bin/exe-team.js +7 -6
  63. package/dist/bin/exe-telemetry.js +88 -0
  64. package/dist/bin/git-sweep.js +20 -19
  65. package/dist/bin/graph-backfill.js +10 -9
  66. package/dist/bin/graph-export.js +10 -9
  67. package/dist/bin/hooks-cli.js +1 -1
  68. package/dist/bin/import-history.js +14 -13
  69. package/dist/bin/install.js +109 -108
  70. package/dist/bin/intercom-check.js +5 -5
  71. package/dist/bin/mcp-sessions.js +2 -2
  72. package/dist/bin/orchestration-metrics.js +7 -6
  73. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  74. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  75. package/dist/bin/reconcile-backlog.js +2 -2
  76. package/dist/bin/registry-proxy.js +1 -1
  77. package/dist/bin/repair-document-chunks.js +9 -8
  78. package/dist/bin/scan-tasks.js +19 -18
  79. package/dist/bin/setup.js +4 -3
  80. package/dist/bin/shard-migrate.js +10 -9
  81. package/dist/bin/stack-update.js +4 -4
  82. package/dist/bin/vps-health-gate.js +1 -1
  83. package/dist/{boot-generation-RPJVFAQJ.js → boot-generation-UGKTVJQW.js} +6 -5
  84. package/dist/{boot-review-sections-FOPPZTJI.js → boot-review-sections-EW5FJU3N.js} +17 -16
  85. package/dist/{bug-landed-reconciler-FN5KPBRK.js → bug-landed-reconciler-7DLU65MM.js} +8 -7
  86. package/dist/build-info.json +3 -3
  87. package/dist/build-manifest.json +1158 -1133
  88. package/dist/{capability-cards-YQWBEG7A.js → capability-cards-EC7FLCFF.js} +5 -4
  89. package/dist/{capacity-monitor-7SMEJHYG.js → capacity-monitor-2TQMIGQV.js} +19 -18
  90. package/dist/{catchup-brief-IBQ26LEB.js → catchup-brief-Q2CEZ5LV.js} +24 -23
  91. package/dist/{chunk-M6SUJLNP.js → chunk-2PNEZSFH.js} +2 -2
  92. package/dist/{chunk-NCNT2C2P.js → chunk-2S3H4TRY.js} +2 -2
  93. package/dist/{chunk-27NG2NTG.js → chunk-2UAILEAO.js} +2 -2
  94. package/dist/{chunk-RHHEYC6H.js → chunk-3PMAZKLF.js} +3 -3
  95. package/dist/{chunk-W4H2MZAS.js → chunk-3W6D3XED.js} +1 -1
  96. package/dist/{chunk-JAIZCE6W.js → chunk-43BBN2ZV.js} +3 -3
  97. package/dist/{chunk-IPUDXR67.js → chunk-4FURM6R5.js} +12 -3
  98. package/dist/{chunk-JW5NUXPN.js → chunk-5GUSZMFP.js} +14 -14
  99. package/dist/{chunk-RHJOTGEU.js → chunk-5HCHK52F.js} +1 -1
  100. package/dist/{chunk-7HLAYQRG.js → chunk-5PNYCWYF.js} +5 -5
  101. package/dist/{chunk-HUHR5CKJ.js → chunk-5X5BOCLS.js} +4 -4
  102. package/dist/{chunk-2EYVXUGA.js → chunk-6DFP2ZMF.js} +4 -4
  103. package/dist/{chunk-6HJF7IA3.js → chunk-6QVWL7ZX.js} +227 -198
  104. package/dist/{chunk-TS4LSNRI.js → chunk-745M4HPM.js} +1 -1
  105. package/dist/{chunk-HDV2V25K.js → chunk-7BMIJMFY.js} +1 -1
  106. package/dist/{chunk-Z3LGAFMG.js → chunk-7D6432GR.js} +1 -1
  107. package/dist/{chunk-6L4VIYLZ.js → chunk-7MCEYNWK.js} +15 -1
  108. package/dist/{chunk-XDOCXKHW.js → chunk-7ZEIFHRE.js} +1 -1
  109. package/dist/{chunk-ZZR2WRNW.js → chunk-AAVLHB5A.js} +4 -4
  110. package/dist/{chunk-7YX73K2R.js → chunk-ALA7WYZZ.js} +6 -1
  111. package/dist/{chunk-CJ6CS2IH.js → chunk-BHIMHRRI.js} +5 -5
  112. package/dist/{chunk-CRW63CDI.js → chunk-BSSVSBHE.js} +1 -1
  113. package/dist/chunk-CCFWKW2D.js +92 -0
  114. package/dist/{chunk-FYV2CTKP.js → chunk-CL7P4RW3.js} +1 -1
  115. package/dist/{chunk-SXUABANK.js → chunk-CRO66YJ2.js} +3 -3
  116. package/dist/{chunk-GL5ZG72X.js → chunk-CTZTOAHJ.js} +2 -2
  117. package/dist/{chunk-LSHUX7P4.js → chunk-D4RU4Y57.js} +16 -16
  118. package/dist/{chunk-JGBYZTWH.js → chunk-D6D7LCMR.js} +1 -1
  119. package/dist/{chunk-HDQAVAV6.js → chunk-D6ORFO5E.js} +2 -2
  120. package/dist/{chunk-RIKFXHLE.js → chunk-DJZ4EAZ7.js} +1 -1
  121. package/dist/{chunk-3DXAJVXE.js → chunk-DNWWDHJM.js} +6 -6
  122. package/dist/{chunk-MZNLQC6W.js → chunk-E3TNFXWQ.js} +1 -1
  123. package/dist/{chunk-6PXFF6IV.js → chunk-EVSJUMO3.js} +1 -1
  124. package/dist/{chunk-CWHTUNJX.js → chunk-EXKT3GID.js} +2 -2
  125. package/dist/{chunk-J6U4ZR77.js → chunk-FDMZOLB3.js} +2 -2
  126. package/dist/{chunk-DHLJZDWI.js → chunk-FIAMVZ5I.js} +6 -6
  127. package/dist/{chunk-O3BLL6MY.js → chunk-FNRVCDFM.js} +1 -1
  128. package/dist/{chunk-BLTXAUP6.js → chunk-G32NPOUR.js} +2 -2
  129. package/dist/{chunk-QSW5DHMZ.js → chunk-GCMKH2PM.js} +1 -1
  130. package/dist/{chunk-BIPTWAEO.js → chunk-GDUQ3UQR.js} +1 -1
  131. package/dist/{chunk-L5JFVK5T.js → chunk-GDZJL5GQ.js} +15 -10
  132. package/dist/{chunk-RYMXD2NT.js → chunk-GELNQI77.js} +1 -1
  133. package/dist/{chunk-5ZMNFSHV.js → chunk-H3MFCDKR.js} +1 -1
  134. package/dist/{chunk-657I6PUF.js → chunk-H3ORS4N7.js} +3 -3
  135. package/dist/{chunk-W3ABSZ6G.js → chunk-H7ZVQUU2.js} +2 -2
  136. package/dist/{chunk-2YGBJHC2.js → chunk-HMEXSII5.js} +3 -3
  137. package/dist/{chunk-EWDBWOCX.js → chunk-HPCISMTN.js} +1 -1
  138. package/dist/{chunk-HA6BIZ6L.js → chunk-I2IG5GKQ.js} +8 -8
  139. package/dist/{chunk-SINIRUYZ.js → chunk-I4N7F54M.js} +117 -39
  140. package/dist/{chunk-XEAZJXMZ.js → chunk-IM2KTXBB.js} +2 -2
  141. package/dist/{chunk-XC5OASHV.js → chunk-IVPVCTXX.js} +1 -1
  142. package/dist/{chunk-CFFSHBQF.js → chunk-J56UXB2X.js} +1 -1
  143. package/dist/{chunk-6J2J3VJS.js → chunk-JHVRXXEB.js} +10 -10
  144. package/dist/{chunk-SO7KTH3Q.js → chunk-JJYL2K7E.js} +1 -1
  145. package/dist/{chunk-2BOLFLAU.js → chunk-JKDYZZGD.js} +2 -2
  146. package/dist/{chunk-VS7V5HNO.js → chunk-JOOWL33C.js} +1 -1
  147. package/dist/{chunk-7KPZQ65I.js → chunk-KAJC6L7D.js} +3 -3
  148. package/dist/{chunk-KN5GAVCG.js → chunk-KBJHOC6E.js} +2 -2
  149. package/dist/{chunk-KEDZRQI3.js → chunk-KKJ3BLYL.js} +2 -2
  150. package/dist/{chunk-QJWLQXR7.js → chunk-KYQ623IB.js} +1 -1
  151. package/dist/{chunk-W7VKGB42.js → chunk-L2IJM337.js} +1 -1
  152. package/dist/{chunk-IHAXXDBH.js → chunk-LCGQGYY6.js} +3 -3
  153. package/dist/{chunk-HTFM7ZDD.js → chunk-LFIDYVYE.js} +2 -2
  154. package/dist/chunk-LP5USONU.js +125 -0
  155. package/dist/{chunk-JJZZXEAN.js → chunk-LUB5P63H.js} +2 -2
  156. package/dist/{chunk-GATAYYAF.js → chunk-MLVDB65S.js} +3 -3
  157. package/dist/{chunk-2YFMBXUU.js → chunk-MSOPRLKE.js} +4 -4
  158. package/dist/{chunk-Q6KUBP6R.js → chunk-MXY47DBC.js} +5 -5
  159. package/dist/{chunk-PDQGR5LZ.js → chunk-N7PW2MXQ.js} +1 -1
  160. package/dist/{chunk-6DMURUBY.js → chunk-NLFYDDFL.js} +4 -4
  161. package/dist/{chunk-JNULO6I5.js → chunk-NPA3GSDP.js} +3 -3
  162. package/dist/{chunk-ZJ6AMC4Y.js → chunk-NXVVJE6C.js} +7 -7
  163. package/dist/{chunk-TVWYMOZ4.js → chunk-O3HLDFKY.js} +15 -4
  164. package/dist/{chunk-PYXXL7N7.js → chunk-OEH4DGFQ.js} +1 -1
  165. package/dist/{chunk-VBYSAQJD.js → chunk-OEJZFRT4.js} +1 -1
  166. package/dist/{chunk-VQQPYI4X.js → chunk-OJMM2CBY.js} +2 -2
  167. package/dist/{chunk-X2ZHCNNB.js → chunk-OL7KB6AV.js} +5 -5
  168. package/dist/{chunk-FSXMKIDO.js → chunk-OSAIUYF5.js} +1 -1
  169. package/dist/{chunk-GZVFHFO3.js → chunk-OVN35JFJ.js} +10 -10
  170. package/dist/{chunk-4J77TCTX.js → chunk-PMGEC42V.js} +1 -1
  171. package/dist/{chunk-LBSCOP25.js → chunk-PV5OGJYV.js} +1 -1
  172. package/dist/{chunk-M6AX64J2.js → chunk-QNFR7ZKH.js} +20 -8
  173. package/dist/{chunk-DWRULKB3.js → chunk-R32D6TBB.js} +2 -2
  174. package/dist/chunk-R3ZU4F7M.js +359 -0
  175. package/dist/{chunk-3N24FV22.js → chunk-REMAJEVA.js} +1 -1
  176. package/dist/{chunk-7SHU5MOD.js → chunk-RJ7RN5GE.js} +1 -1
  177. package/dist/{chunk-5BWDUUMH.js → chunk-RMXIDLAZ.js} +3 -3
  178. package/dist/{chunk-PTF5TB6O.js → chunk-RNFYJ7EQ.js} +9 -9
  179. package/dist/{chunk-RJIH7JXM.js → chunk-RV4DRCSF.js} +4 -4
  180. package/dist/{chunk-QOFQY7BJ.js → chunk-RYJTPWKV.js} +1 -1
  181. package/dist/{telemetry-upload-6DR6AL3V.js → chunk-SBHJ6YVB.js} +53 -28
  182. package/dist/{chunk-XQ7BIVLI.js → chunk-SOKGCUCF.js} +9 -9
  183. package/dist/{chunk-K2HIXAIF.js → chunk-SWU43K5E.js} +14 -14
  184. package/dist/{chunk-BE3UETW6.js → chunk-T4X35SUY.js} +3 -3
  185. package/dist/{chunk-LLZUL7M2.js → chunk-TDPDKE4M.js} +4 -2
  186. package/dist/{chunk-TCBWHLKH.js → chunk-TH3P7D7J.js} +9 -9
  187. package/dist/{chunk-47YGEM4N.js → chunk-TRH4DPXR.js} +1 -1
  188. package/dist/{chunk-EOWJXCYC.js → chunk-TSZ3JCQB.js} +1 -1
  189. package/dist/{chunk-FPF2PJFK.js → chunk-U34HVNLK.js} +3 -3
  190. package/dist/{chunk-OHHZNNUD.js → chunk-UC45TUAV.js} +1 -1
  191. package/dist/{chunk-IC2AONBH.js → chunk-UCXX7XZS.js} +9 -9
  192. package/dist/{chunk-N7POJZJT.js → chunk-UJRBX44K.js} +13 -13
  193. package/dist/{chunk-RYYFFCJG.js → chunk-UMBKEPUP.js} +1 -1
  194. package/dist/{chunk-GHYHNHDL.js → chunk-UOLIA6N6.js} +1 -1
  195. package/dist/{chunk-VAHQOIQY.js → chunk-UOPCGIEE.js} +1 -1
  196. package/dist/{chunk-5DLZJ3MY.js → chunk-UWIL3LFL.js} +1 -1
  197. package/dist/{chunk-BG6RAOCJ.js → chunk-UYK7NOJD.js} +3 -3
  198. package/dist/{chunk-LQGLGSBY.js → chunk-UYOWEAZB.js} +2 -2
  199. package/dist/{chunk-T3AM52YT.js → chunk-V4Q5FU7M.js} +4 -4
  200. package/dist/{chunk-A5I2GYVQ.js → chunk-VPXSW6MC.js} +3 -3
  201. package/dist/{chunk-7PDZBPGW.js → chunk-WECEOYOY.js} +1 -1
  202. package/dist/{chunk-GM4UEZDE.js → chunk-WEG7URND.js} +43 -30
  203. package/dist/{chunk-JTJP4JK7.js → chunk-X537FLO2.js} +3 -3
  204. package/dist/{chunk-RMC2A6EE.js → chunk-X6UH3DQE.js} +1 -1
  205. package/dist/{chunk-353XF4LU.js → chunk-XGQCOI3X.js} +2 -2
  206. package/dist/{chunk-FS7XF7SE.js → chunk-XHJO7XFR.js} +1 -1
  207. package/dist/{chunk-3GGMHSY2.js → chunk-XLUEY3SP.js} +3 -3
  208. package/dist/{chunk-D6NZNUVH.js → chunk-YAV55Y4U.js} +1 -1
  209. package/dist/{chunk-6777GNWI.js → chunk-YBVSVB6C.js} +19 -8
  210. package/dist/{chunk-6BD6JYR2.js → chunk-YV3AVQJW.js} +3 -3
  211. package/dist/{chunk-X4FHT6ST.js → chunk-YXGSP2MH.js} +9 -9
  212. package/dist/{chunk-O6KQAJCC.js → chunk-Z46GUZSY.js} +3 -3
  213. package/dist/{chunk-FUDXITKX.js → chunk-ZDD6IQGV.js} +1 -1
  214. package/dist/{chunk-QV26G2BF.js → chunk-ZO5S6T64.js} +1 -1
  215. package/dist/{cleanup-graph-garbage-SYGPMPUM.js → cleanup-graph-garbage-CNUIX5CD.js} +10 -9
  216. package/dist/{cli-shutdown-JI7CASE4.js → cli-shutdown-5PBVKPZJ.js} +1 -1
  217. package/dist/{cloud-sync-command-ZV3P5FP6.js → cloud-sync-command-3E4HKL3N.js} +2 -2
  218. package/dist/{cloud-sync-db-init-RQIHWKV4.js → cloud-sync-db-init-ASBDBYCS.js} +1 -1
  219. package/dist/{cloud-sync-shutdown-V2N7VLD3.js → cloud-sync-shutdown-P6ZT3O6P.js} +5 -4
  220. package/dist/{co-activation-SRE6DIRX.js → co-activation-7ZJFM3YK.js} +5 -4
  221. package/dist/{co-occurrence-F5TMSEQZ.js → co-occurrence-O7ON7AP3.js} +8 -7
  222. package/dist/{consent-passphrase-MWZRHJRC.js → consent-passphrase-ITU47UWT.js} +2 -2
  223. package/dist/{conversation-entity-extractor-XMOUHGMT.js → conversation-entity-extractor-JZNP4UGE.js} +3 -3
  224. package/dist/{conversations-retention-XTBFJBUM.js → conversations-retention-HFM2K6ND.js} +33 -12
  225. package/dist/{crdt-sync-FXEKABM7.js → crdt-sync-B2E3G5YE.js} +4 -4
  226. package/dist/{crm-webhook-D6IJOPRQ.js → crm-webhook-P543266X.js} +2 -2
  227. package/dist/{cto-delegation-gate-BU3JRCYN.js → cto-delegation-gate-ASFPC6L4.js} +18 -17
  228. package/dist/{daemon-orchestration-K4NKFYXO.js → daemon-orchestration-ZPUEHXRM.js} +24 -23
  229. package/dist/{doc-graph-extractor-TVK2NGAR.js → doc-graph-extractor-IADQDUXA.js} +8 -7
  230. package/dist/{documents-MDZ4VB5X.js → documents-MZ5N44EK.js} +10 -9
  231. package/dist/{dreaming-L24PSS35.js → dreaming-OXHEGMGQ.js} +22 -21
  232. package/dist/{employee-boot-brief-GQVL3FQC.js → employee-boot-brief-PMN4STQZ.js} +26 -25
  233. package/dist/{entity-boost-OMFA5QCG.js → entity-boost-5J6OOB4P.js} +1 -1
  234. package/dist/{exe-drift-JDDG3OPT.js → exe-drift-JPD3DP7R.js} +6 -5
  235. package/dist/{exe-export-EEGIE3JP.js → exe-export-TWJ2E235.js} +11 -10
  236. package/dist/{exe-import-UJNC5Q2L.js → exe-import-JTFPCMXG.js} +11 -10
  237. package/dist/{exe-key-TYEY4W4E.js → exe-key-47FOEEFU.js} +106 -105
  238. package/dist/{exe-org-B3ICTTEV.js → exe-org-SDLU427Y.js} +40 -40
  239. package/dist/{exe-snapshot-VBFBONYN.js → exe-snapshot-G6JSOA3W.js} +25 -24
  240. package/dist/{fast-db-init-TFRTK6EH.js → fast-db-init-BWZOVVBH.js} +1 -1
  241. package/dist/{founder-context-3X4QUWKD.js → founder-context-UMNCOSKR.js} +2 -2
  242. package/dist/{founder-monitor-envelope-54UNZNY4.js → founder-monitor-envelope-I4535R5I.js} +4 -4
  243. package/dist/gateway/index.js +19 -18
  244. package/dist/{gateway-client-OUDO5GGV.js → gateway-client-YD24RN7P.js} +1 -1
  245. package/dist/{git-staleness-73YZ5PGU.js → git-staleness-B4H3EE72.js} +5 -4
  246. package/dist/{global-procedures-PYNE2BQG.js → global-procedures-TTBNXTRS.js} +7 -6
  247. package/dist/{graph-auto-extract-PGUMEEQB.js → graph-auto-extract-E4RSCUEO.js} +8 -7
  248. package/dist/{graph-query-7YA3YNKL.js → graph-query-U4WIQNFV.js} +1 -1
  249. package/dist/{graph-rag-UWOTK4AQ.js → graph-rag-WPSWFLOX.js} +3 -3
  250. package/dist/{hook-integrity-6MNEPT6W.js → hook-integrity-G6L3XFGO.js} +1 -1
  251. package/dist/{hook-prefetch-JOF6YZSR.js → hook-prefetch-5AOLNRCY.js} +18 -17
  252. package/dist/{hook-tamper-log-HTWEP37U.js → hook-tamper-log-SWQVRDDV.js} +6 -1
  253. package/dist/hooks/bug-report-worker.js +22 -21
  254. package/dist/hooks/codex-stop-task-finalizer.js +24 -23
  255. package/dist/hooks/commit-complete.js +21 -20
  256. package/dist/hooks/error-recall.js +14 -13
  257. package/dist/hooks/exe-heartbeat-hook.js +8 -7
  258. package/dist/hooks/ingest-worker.js +20 -19
  259. package/dist/hooks/ingest.js +16 -15
  260. package/dist/hooks/instructions-loaded.js +10 -9
  261. package/dist/hooks/manifest.json +20 -20
  262. package/dist/hooks/notification.js +9 -8
  263. package/dist/hooks/post-compact.js +8 -7
  264. package/dist/hooks/post-tool-combined.js +13 -13
  265. package/dist/hooks/pre-compact.js +22 -21
  266. package/dist/hooks/pre-tool-use.js +2 -2
  267. package/dist/hooks/prompt-submit.js +40 -39
  268. package/dist/hooks/session-end.js +27 -26
  269. package/dist/hooks/session-start.js +18 -18
  270. package/dist/hooks/stop.js +25 -24
  271. package/dist/hooks/subagent-stop.js +25 -24
  272. package/dist/hooks/summary-worker.js +25 -24
  273. package/dist/index.js +32 -31
  274. package/dist/{installer-34XZ7JMW.js → installer-KQPRRYWJ.js} +9 -8
  275. package/dist/{installer-356RMQ2K.js → installer-NDH3XNBJ.js} +9 -8
  276. package/dist/{installer-7TN36Z7T.js → installer-SQXH44SB.js} +9 -8
  277. package/dist/{intercom-queue-ZJ3MNULM.js → intercom-queue-NKPPTIL4.js} +17 -16
  278. package/dist/lib/backup-verify-worker.js +3 -2
  279. package/dist/lib/cloud-sync.js +18 -17
  280. package/dist/lib/consolidation.js +11 -10
  281. package/dist/lib/crypto.js +3 -3
  282. package/dist/lib/database.js +5 -4
  283. package/dist/lib/db-backup.js +12 -1
  284. package/dist/lib/db-checkpoint-worker.js +25 -0
  285. package/dist/lib/db-read-worker-client.js +155 -26
  286. package/dist/lib/db-write-worker-client.js +5 -1
  287. package/dist/lib/db-write-worker.js +9 -8
  288. package/dist/lib/db.js +5 -4
  289. package/dist/lib/device-registry.js +1 -1
  290. package/dist/lib/employee-templates.js +8 -7
  291. package/dist/lib/employees.js +5 -4
  292. package/dist/lib/exe-daemon.js +127 -106
  293. package/dist/lib/file-grep.js +14 -1
  294. package/dist/lib/hybrid-search.js +11 -10
  295. package/dist/lib/identity.js +5 -4
  296. package/dist/lib/keychain.js +1 -1
  297. package/dist/lib/license.js +2 -2
  298. package/dist/lib/messaging.js +18 -17
  299. package/dist/lib/post-tool-memory.js +18 -17
  300. package/dist/lib/registry-proxy.js +1 -1
  301. package/dist/lib/reminders.js +6 -5
  302. package/dist/lib/schedules.js +10 -9
  303. package/dist/lib/session-registry.js +7 -6
  304. package/dist/lib/session-wrappers.js +1 -1
  305. package/dist/lib/skill-learning.js +11 -10
  306. package/dist/lib/store.js +9 -8
  307. package/dist/lib/task-router.js +6 -5
  308. package/dist/lib/tasks.js +19 -18
  309. package/dist/lib/telemetry-consent.js +29 -0
  310. package/dist/lib/tmux-routing.js +17 -16
  311. package/dist/lib/tmux-status.js +5 -1
  312. package/dist/lib/token-spend.js +6 -5
  313. package/dist/lib/ws-client.js +1 -1
  314. package/dist/{license-gate-4BXUTHLB.js → license-gate-Q37UDDE5.js} +3 -3
  315. package/dist/{license-recheck-QFPUKISQ.js → license-recheck-AJ7VHKXK.js} +1 -1
  316. package/dist/{license-sync-FDEDT4AC.js → license-sync-H7EMEVUL.js} +2 -2
  317. package/dist/{maintenance-worker-OY2E4BM5.js → maintenance-worker-3FNF2GA5.js} +1 -1
  318. package/dist/mcp/register-tools.js +105 -104
  319. package/dist/mcp/server.js +107 -106
  320. package/dist/mcp/tools/complete-reminder.js +7 -6
  321. package/dist/mcp/tools/create-reminder.js +7 -6
  322. package/dist/mcp/tools/create-task.js +22 -21
  323. package/dist/mcp/tools/deactivate-behavior.js +13 -12
  324. package/dist/mcp/tools/list-reminders.js +7 -6
  325. package/dist/mcp/tools/list-tasks.js +22 -21
  326. package/dist/mcp/tools/send-message.js +21 -20
  327. package/dist/mcp/tools/update-task.js +20 -19
  328. package/dist/{mcp-http-config-GKP5QGAO.js → mcp-http-config-4355SP7A.js} +8 -7
  329. package/dist/{mcp-session-identity-JHAGRB7B.js → mcp-session-identity-JKOJLE7C.js} +17 -16
  330. package/dist/{memory-cards-O377ETAM.js → memory-cards-WTRVBRVV.js} +9 -8
  331. package/dist/{memory-graph-extractor-4KJCCUOP.js → memory-graph-extractor-4T33LWJU.js} +9 -8
  332. package/dist/{memory-maintenance-RR5UPRW3.js → memory-maintenance-JGNZK33G.js} +1 -1
  333. package/dist/{memory-poisoning-defense-Y5TTKGOP.js → memory-poisoning-defense-AHMMXW44.js} +5 -4
  334. package/dist/{memory-pressure-watchdog-NGXTI4HR.js → memory-pressure-watchdog-L3Z4VEPV.js} +18 -17
  335. package/dist/{memory-reflection-EXNHRZL7.js → memory-reflection-4775DTOT.js} +9 -8
  336. package/dist/{memory-write-repository-S4TX7WQB.js → memory-write-repository-AQ7RXJVQ.js} +5 -3
  337. package/dist/{monitor-grants-57Q4NL25.js → monitor-grants-YCKRRH65.js} +3 -3
  338. package/dist/{monitor-identity-3FQ52SYU.js → monitor-identity-RC5HSDKY.js} +2 -2
  339. package/dist/{notification-ledger-O6KQYYGK.js → notification-ledger-EMZ676N7.js} +18 -17
  340. package/dist/{notifications-6FCQCJ4P.js → notifications-UITENQFG.js} +17 -16
  341. package/dist/{orchestration-events-2Z2BMMA5.js → orchestration-events-TXMCSNWZ.js} +6 -5
  342. package/dist/{orchestrator-AGOSKPHD.js → orchestrator-WJ55ZFL5.js} +19 -18
  343. package/dist/{org-brief-session-WJHZVXXJ.js → org-brief-session-YXCBRVSI.js} +17 -16
  344. package/dist/{org-consent-policy-X43UGTHI.js → org-consent-policy-ZVT2Y22K.js} +5 -5
  345. package/dist/{org-join-M3UTBMHC.js → org-join-PRWU2OBZ.js} +11 -11
  346. package/dist/{org-key-admin-AA2DRHB2.js → org-key-admin-FTGOH7RU.js} +13 -13
  347. package/dist/{org-key-epoch-Z5UIVUHT.js → org-key-epoch-IHN3UVUM.js} +5 -5
  348. package/dist/{org-key-pin-FE6YHEZ3.js → org-key-pin-TAL5ISYT.js} +3 -3
  349. package/dist/{org-membership-3J2MIGE4.js → org-membership-FZ7DUCZX.js} +4 -4
  350. package/dist/{org-partner-config-5HATZYG4.js → org-partner-config-Z45CGHE7.js} +8 -8
  351. package/dist/{org-partner-runtime-UI35IHUC.js → org-partner-runtime-J64U2Z7X.js} +17 -16
  352. package/dist/{org-row-visibility-TRJERVYP.js → org-row-visibility-JO2Z5XVO.js} +1 -1
  353. package/dist/{pipeline-router-EKQ6D7ZA.js → pipeline-router-ARYK3UAA.js} +6 -5
  354. package/dist/{plan-limits-3BGHIHX6.js → plan-limits-BA6ZSEQ2.js} +8 -7
  355. package/dist/{pre-tool-use-impl-7BT5TJVM.js → pre-tool-use-impl-NSPKU7SW.js} +34 -33
  356. package/dist/{project-name-PGJGUEJY.js → project-name-3WEMIXD6.js} +10 -5
  357. package/dist/{projection-worker-3GEVFPAI.js → projection-worker-OD7SCQVL.js} +2 -2
  358. package/dist/{prospective-memory-GEN7CN7H.js → prospective-memory-7M5EOED6.js} +5 -4
  359. package/dist/{push-notifications-QW4BWRC7.js → push-notifications-CT452G6K.js} +18 -17
  360. package/dist/{reproject-worktree-memories-DIULBEBD.js → reproject-worktree-memories-4X4FTVPN.js} +17 -16
  361. package/dist/{reranker-LQ6OPJOI.js → reranker-CZUA64BW.js} +1 -1
  362. package/dist/{retrieval-health-XDFYFEOP.js → retrieval-health-5K3EF7WW.js} +1 -1
  363. package/dist/{review-polling-ED33YLFT.js → review-polling-5W6HLGKH.js} +18 -17
  364. package/dist/runtime/index.js +25 -24
  365. package/dist/{seat-benefit-YEUQBNCS.js → seat-benefit-SBVGAMMY.js} +2 -2
  366. package/dist/{session-events-7IJGTBVH.js → session-events-OOYSDWTW.js} +26 -19
  367. package/dist/{session-kill-telemetry-RUTEARJ3.js → session-kill-telemetry-WTL757YS.js} +18 -17
  368. package/dist/{session-scope-SSYA64L3.js → session-scope-QNS6V4QZ.js} +17 -16
  369. package/dist/{setup-wizard-XD7FZVLJ.js → setup-wizard-2SPD7JW5.js} +4 -3
  370. package/dist/{shard-manager-FH5JZRSE.js → shard-manager-YZXA6L3J.js} +3 -3
  371. package/dist/{skill-refinement-UHD4E6GV.js → skill-refinement-XAL2VK7I.js} +6 -5
  372. package/dist/{skill-retrieval-F6PAJ3I5.js → skill-retrieval-H45FGACU.js} +13 -12
  373. package/dist/{skill-usage-2MBTF7Y4.js → skill-usage-Z4PY5DYL.js} +6 -5
  374. package/dist/{stack-generate-manifest-MVJDTU4F.js → stack-generate-manifest-ZWGGIXOW.js} +4 -4
  375. package/dist/{stack-promote-BMGEY6SQ.js → stack-promote-U34DKI2R.js} +4 -4
  376. package/dist/{stack-release-64UJ6Y4W.js → stack-release-IGZDQ2EA.js} +5 -5
  377. package/dist/{stack-update-EBATTQPP.js → stack-update-3MADKNUJ.js} +3 -3
  378. package/dist/{steward-gate-EWG2BHYQ.js → steward-gate-GXHJ3LLV.js} +6 -5
  379. package/dist/{subagent-brief-injection-YZGSWUEY.js → subagent-brief-injection-CONZI6JP.js} +29 -28
  380. package/dist/{subagent-spawn-ledger-PDICC43I.js → subagent-spawn-ledger-2XSOIL35.js} +3 -1
  381. package/dist/{support-bug-actions-RU6WZ3UV.js → support-bug-actions-GHMGOVQX.js} +3 -3
  382. package/dist/{support-inbox-A3S52SPS.js → support-inbox-3EDSKPUK.js} +15 -14
  383. package/dist/{task-enforcement-LVAS55AR.js → task-enforcement-DPOVUD2H.js} +18 -17
  384. package/dist/{task-request-inbox-2TN4ZUH2.js → task-request-inbox-6CCLPLZF.js} +5 -5
  385. package/dist/{task-scope-NLKUVCP5.js → task-scope-5OTHET2J.js} +17 -16
  386. package/dist/{tasks-crud-NQDPLHNZ.js → tasks-crud-ZPUVDX7W.js} +21 -16
  387. package/dist/{tasks-notify-BDM2NEHP.js → tasks-notify-3RODHYLI.js} +18 -17
  388. package/dist/{tasks-review-3G7CAW2O.js → tasks-review-H43CSMNK.js} +17 -16
  389. package/dist/telemetry-upload-4ZYZNO5R.js +42 -0
  390. package/dist/{token-budget-KNC2WGR7.js → token-budget-QGQRMS47.js} +6 -5
  391. package/dist/{tool-telemetry-I3SEU5M5.js → tool-telemetry-HPOHW2Y2.js} +1 -1
  392. package/dist/tui/App.js +27 -26
  393. package/dist/{tui-data-KJDWP4CB.js → tui-data-3E66SZPC.js} +21 -20
  394. package/dist/{update-support-UYDYMHVR.js → update-support-6PQDY3IQ.js} +14 -13
  395. package/dist/{whatsapp-5EMPZHF5.js → whatsapp-5YLHZDFB.js} +2 -2
  396. package/dist/{wiki-acl-M7BTQJBZ.js → wiki-acl-O4EOHWXE.js} +1 -1
  397. package/dist/{work-claims-5CFMZTML.js → work-claims-XGC47NTW.js} +6 -5
  398. package/dist/{work-state-heartbeat-7IA2DZ2E.js → work-state-heartbeat-WAVGL6QG.js} +1 -1
  399. package/dist/{workflow-engine-S5JOE2YR.js → workflow-engine-E7R4STX2.js} +2 -2
  400. package/dist/{worktree-7V4ZMF3D.js → worktree-GYH7OEVR.js} +7 -6
  401. package/dist/{worktree-sweep-34MXJ7S6.js → worktree-sweep-KMZ2KPSO.js} +8 -7
  402. package/package.json +2 -1
  403. package/release-notes.json +30 -21
  404. package/stack.release.json +3 -3
  405. package/dist/chunk-PEYQ6MWO.js +0 -175
  406. /package/dist/{chunk-EULAP6L6.js → chunk-2KBPXG43.js} +0 -0
  407. /package/dist/{chunk-J635FA7T.js → chunk-2WHPS3AR.js} +0 -0
  408. /package/dist/{chunk-QDSNEGJE.js → chunk-4ZWYHHUJ.js} +0 -0
  409. /package/dist/{chunk-J4B4M5PH.js → chunk-5LKFIUH3.js} +0 -0
  410. /package/dist/{chunk-542FBM5U.js → chunk-5TOYYGBC.js} +0 -0
  411. /package/dist/{chunk-CFO47VW4.js → chunk-BYNXKQG2.js} +0 -0
  412. /package/dist/{chunk-N45FAI6D.js → chunk-EORDC4BQ.js} +0 -0
  413. /package/dist/{chunk-6D2O5SAH.js → chunk-GTGXFYYI.js} +0 -0
  414. /package/dist/{chunk-YVWXI2HM.js → chunk-H6HWBMJ3.js} +0 -0
  415. /package/dist/{chunk-FYSKQPTE.js → chunk-QD3YZKZR.js} +0 -0
  416. /package/dist/{chunk-MOBZTIJQ.js → chunk-QTWQGGSP.js} +0 -0
  417. /package/dist/{chunk-SKSXROKP.js → chunk-TMJKP6WP.js} +0 -0
  418. /package/dist/{chunk-6NRZLVK3.js → chunk-YEUGS6CI.js} +0 -0
  419. /package/dist/{core-memory-PZEO3OWH.js → core-memory-RHW5ZX36.js} +0 -0
  420. /package/dist/{memory-isolation-MFNT2ITE.js → memory-isolation-J3KHDCE7.js} +0 -0
  421. /package/dist/{oauth-server-CBGEWD6H.js → oauth-server-WAR3PJOX.js} +0 -0
  422. /package/dist/{project-boot-VESAYDIH.js → project-boot-3BTM3FJ2.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getGlobalProceduresBlock
3
- } from "./chunk-HDQAVAV6.js";
3
+ } from "./chunk-D6ORFO5E.js";
4
4
  import {
5
5
  writePlatformReferenceFile
6
6
  } from "./chunk-4CN3EE6U.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getIdentity,
3
3
  loadEmployeesSync
4
- } from "./chunk-L5JFVK5T.js";
4
+ } from "./chunk-GDZJL5GQ.js";
5
5
 
6
6
  // src/lib/drift-probes.ts
7
7
  var DRIFT_THRESHOLD = 80;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  checkLicense,
3
3
  loadLicense
4
- } from "./chunk-EOWJXCYC.js";
4
+ } from "./chunk-TSZ3JCQB.js";
5
5
 
6
6
  // src/lib/license-gate.ts
7
7
  var _cachedLicense = null;
@@ -4,6 +4,14 @@ import {
4
4
 
5
5
  // src/lib/tmux-status.ts
6
6
  import { execFileSync } from "child_process";
7
+ var DEFAULT_TMUX_CAPTURE_TIMEOUT_MS = 3e3;
8
+ var _tmuxCaptureTimeoutMs = DEFAULT_TMUX_CAPTURE_TIMEOUT_MS;
9
+ function _setTmuxCaptureTimeoutMsForTest(ms) {
10
+ _tmuxCaptureTimeoutMs = ms;
11
+ }
12
+ function _resetTmuxCaptureTimeoutMsForTest() {
13
+ _tmuxCaptureTimeoutMs = DEFAULT_TMUX_CAPTURE_TIMEOUT_MS;
14
+ }
7
15
  function tmuxArgs(args) {
8
16
  const sock = process.env.EXE_TMUX_SOCKET;
9
17
  return sock ? ["-L", sock, ...args] : args;
@@ -140,7 +148,11 @@ async function capturePaneLinesStrictAsync(windowName, lines = 10) {
140
148
  const { stdout } = await exec(
141
149
  "tmux",
142
150
  tmuxArgs(["capture-pane", "-t", windowName, "-p", "-S", `-${Math.max(1, lines)}`]),
143
- { encoding: "utf8", timeout: 3e3 }
151
+ // 3 s real-time budget, overridable only via _setTmuxCaptureTimeoutMsForTest
152
+ // (test-only), so a test that pins tmux's ANSWER is not also racing the
153
+ // host's load: an expiry here is correctly a throw (UNVERIFIED), which is
154
+ // a wrong verdict for a stub that answered at once.
155
+ { encoding: "utf8", timeout: _tmuxCaptureTimeoutMs }
144
156
  );
145
157
  return String(stdout ?? "").split("\n").filter((l) => l.trim()).slice(-Math.max(1, lines));
146
158
  }
@@ -387,6 +399,8 @@ function formatStatusDeep(status, task, role) {
387
399
  }
388
400
 
389
401
  export {
402
+ _setTmuxCaptureTimeoutMsForTest,
403
+ _resetTmuxCaptureTimeoutMsForTest,
390
404
  inTmux,
391
405
  tmuxAbsenceWarning,
392
406
  resetTmuxAbsenceWarning,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  loadEmployeesSync,
6
6
  validateEmployeeName
7
- } from "./chunk-L5JFVK5T.js";
7
+ } from "./chunk-GDZJL5GQ.js";
8
8
 
9
9
  // src/adapters/claude/agent-defs-generator.ts
10
10
  import {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  deactivateBehavior
3
- } from "./chunk-KEDZRQI3.js";
3
+ } from "./chunk-KKJ3BLYL.js";
4
4
  import {
5
5
  getActiveAgent
6
- } from "./chunk-GL5ZG72X.js";
6
+ } from "./chunk-CTZTOAHJ.js";
7
7
  import {
8
8
  canCoordinate,
9
9
  getClient
10
- } from "./chunk-L5JFVK5T.js";
10
+ } from "./chunk-GDZJL5GQ.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-EWG2BHYQ.js");
27
+ const { StewardGate } = await import("./steward-gate-GXHJ3LLV.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) {
@@ -42,6 +42,10 @@ function projectScopedDefShadows(cwd, agentName) {
42
42
  // src/lib/subagent-spawn-ledger.ts
43
43
  var LEDGER_DIR = path2.join(EXE_AI_DIR, "session-cache");
44
44
  var LEDGER_LOCK_GIVE_UP_MS = 1500;
45
+ var _ledgerLockGiveUpMs = LEDGER_LOCK_GIVE_UP_MS;
46
+ function _setLedgerLockGiveUpMsForTest(ms) {
47
+ _ledgerLockGiveUpMs = ms;
48
+ }
45
49
  function ledgerLockDir(file) {
46
50
  return `${file}.lock`;
47
51
  }
@@ -51,7 +55,7 @@ async function withLedgerLock(file, fn) {
51
55
  } catch {
52
56
  }
53
57
  try {
54
- return await withLock(ledgerLockDir(file), fn, { giveUpAfterMs: LEDGER_LOCK_GIVE_UP_MS });
58
+ return await withLock(ledgerLockDir(file), fn, _ledgerLockGiveUpMs === void 0 ? void 0 : { giveUpAfterMs: _ledgerLockGiveUpMs });
55
59
  } catch (err) {
56
60
  if (err instanceof LockTimeoutError) {
57
61
  process.stderr.write(`[subagent-ledger] lock timeout, skipping this write: ${file}
@@ -246,6 +250,7 @@ async function clearSubagentSpawn(sessionId, agentType, agentInstanceId) {
246
250
 
247
251
  export {
248
252
  projectScopedDefShadows,
253
+ _setLedgerLockGiveUpMsForTest,
249
254
  SPAWN_LEDGER_TTL_MS,
250
255
  recordSubagentSpawn,
251
256
  recordSpawnFromPreToolPayload,
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  derivePartnerSealIdentity
3
- } from "./chunk-CWHTUNJX.js";
3
+ } from "./chunk-EXKT3GID.js";
4
4
  import {
5
5
  pinMismatchReason,
6
6
  pinnedOrgKeyEpochs,
7
7
  readOrgKeyPin
8
- } from "./chunk-6PXFF6IV.js";
8
+ } from "./chunk-EVSJUMO3.js";
9
9
  import {
10
10
  derivePartnerSignIdentity,
11
11
  displayFingerprint,
12
12
  signKeyFingerprint
13
- } from "./chunk-MZNLQC6W.js";
13
+ } from "./chunk-E3TNFXWQ.js";
14
14
  import {
15
15
  orgMembershipPresent,
16
16
  readActiveOrgMemberships
17
- } from "./chunk-LLZUL7M2.js";
17
+ } from "./chunk-TDPDKE4M.js";
18
18
  import {
19
19
  isValidX25519Recipient
20
- } from "./chunk-7SHU5MOD.js";
20
+ } from "./chunk-RJ7RN5GE.js";
21
21
 
22
22
  // src/lib/org-partner-config.ts
23
23
  function pickString(rec, ...keys) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-L5JFVK5T.js";
3
+ } from "./chunk-GDZJL5GQ.js";
4
4
  import {
5
5
  loadConfigSync
6
6
  } from "./chunk-MMS2HBRT.js";
@@ -0,0 +1,92 @@
1
+ // src/lib/db-snapshot-copy.ts
2
+ import { createClient } from "@libsql/client";
3
+ import { existsSync, statSync } from "fs";
4
+ import { copyFile } from "fs/promises";
5
+ var DEFAULT_ATTEMPTS = 5;
6
+ var DEFAULT_BUSY_TIMEOUT_MS = 3e3;
7
+ function walSize(dbPath) {
8
+ const wal = `${dbPath}-wal`;
9
+ try {
10
+ return existsSync(wal) ? statSync(wal).size : 0;
11
+ } catch {
12
+ return -1;
13
+ }
14
+ }
15
+ function defaultOpen(dbPath, encryptionKey) {
16
+ return createClient(encryptionKey ? { url: `file:${dbPath}`, encryptionKey } : { url: `file:${dbPath}` });
17
+ }
18
+ async function truncateCheckpoint(client) {
19
+ try {
20
+ const res = await client.execute("PRAGMA wal_checkpoint(TRUNCATE)");
21
+ const row = res.rows?.[0];
22
+ const busy = Number(row?.busy ?? row?.[0] ?? 0);
23
+ return busy === 0;
24
+ } catch {
25
+ return false;
26
+ }
27
+ }
28
+ async function beginSnapshot(reader) {
29
+ await reader.execute("BEGIN");
30
+ await reader.execute("SELECT count(*) FROM sqlite_schema");
31
+ }
32
+ async function endSnapshot(reader) {
33
+ try {
34
+ await reader.execute("ROLLBACK");
35
+ } catch {
36
+ }
37
+ }
38
+ async function copyDbUnderReadSnapshot(opts) {
39
+ const open = opts.open ?? defaultOpen;
40
+ const copy = opts.copy ?? copyFile;
41
+ const attempts = Math.max(1, opts.attempts ?? DEFAULT_ATTEMPTS);
42
+ const checkpointer = open(opts.dbPath, opts.encryptionKey);
43
+ let reader = null;
44
+ try {
45
+ try {
46
+ await checkpointer.execute(`PRAGMA busy_timeout = ${opts.busyTimeoutMs ?? DEFAULT_BUSY_TIMEOUT_MS}`);
47
+ } catch {
48
+ }
49
+ reader = open(opts.dbPath, opts.encryptionKey);
50
+ try {
51
+ await reader.execute("PRAGMA busy_timeout = 0");
52
+ } catch {
53
+ }
54
+ for (let attempt = 0; attempt < attempts; attempt++) {
55
+ if (!await truncateCheckpoint(checkpointer)) continue;
56
+ await beginSnapshot(reader);
57
+ if (walSize(opts.dbPath) === 0) {
58
+ try {
59
+ await copy(opts.dbPath, opts.destPath);
60
+ } finally {
61
+ await endSnapshot(reader);
62
+ }
63
+ return "standalone";
64
+ }
65
+ await endSnapshot(reader);
66
+ }
67
+ await beginSnapshot(reader);
68
+ try {
69
+ await copy(opts.dbPath, opts.destPath);
70
+ if (existsSync(`${opts.dbPath}-wal`)) {
71
+ await copy(`${opts.dbPath}-wal`, `${opts.destPath}-wal`);
72
+ return "with-wal";
73
+ }
74
+ return "standalone";
75
+ } finally {
76
+ await endSnapshot(reader);
77
+ }
78
+ } finally {
79
+ try {
80
+ reader?.close();
81
+ } catch {
82
+ }
83
+ try {
84
+ checkpointer.close();
85
+ } catch {
86
+ }
87
+ }
88
+ }
89
+
90
+ export {
91
+ copyDbUnderReadSnapshot
92
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isExeSession
3
- } from "./chunk-GM4UEZDE.js";
3
+ } from "./chunk-WEG7URND.js";
4
4
  import {
5
5
  loadConfigSync
6
6
  } from "./chunk-MMS2HBRT.js";
@@ -14,14 +14,14 @@ import {
14
14
  import {
15
15
  buildClaudeHttpMcpEntry,
16
16
  buildClaudeStdioProxyMcpEntry
17
- } from "./chunk-27NG2NTG.js";
17
+ } from "./chunk-2UAILEAO.js";
18
18
  import {
19
19
  MCP_LEGACY_KEY,
20
20
  MCP_PRIMARY_KEY
21
21
  } from "./chunk-67IVG6CB.js";
22
22
  import {
23
23
  loadEmployees
24
- } from "./chunk-L5JFVK5T.js";
24
+ } from "./chunk-GDZJL5GQ.js";
25
25
  import {
26
26
  loadConfigSync
27
27
  } from "./chunk-MMS2HBRT.js";
@@ -1046,7 +1046,7 @@ async function runInstaller(homeDir) {
1046
1046
  );
1047
1047
  }
1048
1048
  try {
1049
- const { generateAgentDefs, summarizeAgentDefResults } = await import("./agent-defs-generator-DNXMO34I.js");
1049
+ const { generateAgentDefs, summarizeAgentDefResults } = await import("./agent-defs-generator-GMN7JLNZ.js");
1050
1050
  const defResults = generateAgentDefs({ homeDir: resolvedHome });
1051
1051
  process.stderr.write(`Agent definitions: ${summarizeAgentDefResults(defResults)}
1052
1052
  `);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hasLiveSubagentSpawn,
3
3
  projectScopedDefShadows
4
- } from "./chunk-7YX73K2R.js";
4
+ } from "./chunk-ALA7WYZZ.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-L5JFVK5T.js";
17
+ } from "./chunk-GDZJL5GQ.js";
18
18
  import {
19
19
  EXE_AI_DIR
20
20
  } from "./chunk-MMS2HBRT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WORK_STATE_HEARTBEAT_TOOL
3
- } from "./chunk-MOBZTIJQ.js";
3
+ } from "./chunk-QTWQGGSP.js";
4
4
  import {
5
5
  extractKeywords,
6
6
  keywordsToString
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  findScopedDuplicate,
13
13
  governMemoryRecord
14
- } from "./chunk-FYSKQPTE.js";
14
+ } from "./chunk-QD3YZKZR.js";
15
15
  import {
16
16
  orgBus
17
17
  } from "./chunk-MP2AFCGL.js";
@@ -22,12 +22,12 @@ import {
22
22
  initPostgresOnlyDatabase,
23
23
  initTurso,
24
24
  isDaemonRoutingActive
25
- } from "./chunk-L5JFVK5T.js";
25
+ } from "./chunk-GDZJL5GQ.js";
26
26
  import {
27
27
  buildMemoryInsert,
28
28
  persistMemoryBatch,
29
29
  readMemoryWriteOutcome
30
- } from "./chunk-6777GNWI.js";
30
+ } from "./chunk-YBVSVB6C.js";
31
31
  import {
32
32
  memoryWriteScope,
33
33
  sameMemoryWriteScope
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-C7GHNJPW.js";
44
44
  import {
45
45
  getMasterKey
46
- } from "./chunk-4J77TCTX.js";
46
+ } from "./chunk-PMGEC42V.js";
47
47
  import {
48
48
  loadConfig
49
49
  } from "./chunk-MMS2HBRT.js";
@@ -93,7 +93,7 @@ function recordShardFailure(project, error) {
93
93
  `[store] Shard circuit OPEN for "${project}" after ${state.failures} consecutive failures. Will retry in ${SHARD_CB_COOLDOWN_MS / 6e4}min. Last error: ${error}
94
94
  `
95
95
  );
96
- void import("./orchestration-events-2Z2BMMA5.js").then(({ recordOrchestrationEventBestEffort }) => {
96
+ void import("./orchestration-events-TXMCSNWZ.js").then(({ recordOrchestrationEventBestEffort }) => {
97
97
  recordOrchestrationEventBestEffort({
98
98
  eventType: "shard.circuit_open",
99
99
  source: "store.recordShardFailure",
@@ -185,7 +185,7 @@ async function initStore(options) {
185
185
  if (!options?.lightweight) {
186
186
  try {
187
187
  if (process.env.EXE_DISABLE_SHARDING !== "1") {
188
- const { initShardManager } = await import("./shard-manager-FH5JZRSE.js");
188
+ const { initShardManager } = await import("./shard-manager-YZXA6L3J.js");
189
189
  initShardManager(hexKey);
190
190
  }
191
191
  } catch (e) {
@@ -198,7 +198,7 @@ async function initStore(options) {
198
198
  );
199
199
  _nextVersion = (Number(vResult.rows[0]?.max_v) || 0) + 1;
200
200
  try {
201
- const { loadGlobalProcedures } = await import("./global-procedures-PYNE2BQG.js");
201
+ const { loadGlobalProcedures } = await import("./global-procedures-TTBNXTRS.js");
202
202
  await loadGlobalProcedures();
203
203
  } catch (e) {
204
204
  logStoreWarn("catch", e);
@@ -319,7 +319,7 @@ async function writeMemory(record) {
319
319
  founder_id: record.founder_id ?? null
320
320
  };
321
321
  try {
322
- const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-Y5TTKGOP.js");
322
+ const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-AHMMXW44.js");
323
323
  const poisonResult = await checkMemoryPoisoning({
324
324
  memoryId: dbRow.id,
325
325
  vector: Array.isArray(dbRow.vector) ? dbRow.vector : void 0,
@@ -378,19 +378,19 @@ async function flushPendingBatch() {
378
378
  }
379
379
  if (eligibleBatch.length > 0) {
380
380
  try {
381
- const { insertMemoryCardsForBatch } = await import("./memory-cards-O377ETAM.js");
381
+ const { insertMemoryCardsForBatch } = await import("./memory-cards-WTRVBRVV.js");
382
382
  await insertMemoryCardsForBatch(eligibleBatch);
383
383
  } catch (e) {
384
384
  logStoreWarn("catch", e);
385
385
  }
386
386
  try {
387
- const { insertOntologyForBatch } = await import("./agentic-ontology-RA6CMND6.js");
387
+ const { insertOntologyForBatch } = await import("./agentic-ontology-ARQVAAYP.js");
388
388
  await insertOntologyForBatch(eligibleBatch);
389
389
  } catch (e) {
390
390
  logStoreWarn("catch", e);
391
391
  }
392
392
  try {
393
- const { extractGraphForBatch } = await import("./memory-graph-extractor-4KJCCUOP.js");
393
+ const { extractGraphForBatch } = await import("./memory-graph-extractor-4T33LWJU.js");
394
394
  await extractGraphForBatch(eligibleBatch);
395
395
  } catch (e) {
396
396
  logStoreWarn("catch", e);
@@ -398,7 +398,7 @@ async function flushPendingBatch() {
398
398
  }
399
399
  _lastFlushShardFailures = [];
400
400
  try {
401
- const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-FH5JZRSE.js");
401
+ const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-YZXA6L3J.js");
402
402
  if (process.env.EXE_DISABLE_SHARDING !== "1" && isShardingEnabled()) {
403
403
  const byProject = /* @__PURE__ */ new Map();
404
404
  let skippedUnknown = 0;
@@ -577,7 +577,7 @@ async function searchMemories(queryVector, agentId, options) {
577
577
  let client;
578
578
  let isMainDb = true;
579
579
  try {
580
- const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-FH5JZRSE.js");
580
+ const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-YZXA6L3J.js");
581
581
  if (!options?.strictSessionScope && isShardingEnabled() && options?.projectName && shardExists(options.projectName)) {
582
582
  client = await getReadyShardClient(options.projectName);
583
583
  isMainDb = false;
@@ -616,7 +616,7 @@ async function searchMemories(queryVector, agentId, options) {
616
616
  args.push(activeEmbeddingModel);
617
617
  }
618
618
  try {
619
- const { founderScopeFilter } = await import("./founder-context-3X4QUWKD.js");
619
+ const { founderScopeFilter } = await import("./founder-context-UMNCOSKR.js");
620
620
  const founderFilter = founderScopeFilter(options?.founderId);
621
621
  sql += founderFilter.sql;
622
622
  args.push(...founderFilter.args.filter((a) => a !== null));
@@ -700,7 +700,7 @@ async function searchMemories(queryVector, agentId, options) {
700
700
  source_type: row.source_type ?? null,
701
701
  strength: row.strength ?? 1
702
702
  }));
703
- const { filterWikiRecallResults } = await import("./wiki-acl-M7BTQJBZ.js");
703
+ const { filterWikiRecallResults } = await import("./wiki-acl-O4EOHWXE.js");
704
704
  return filterWikiRecallResults(mapped, agentId);
705
705
  }
706
706
  async function attachDocumentMetadata(records) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-L5JFVK5T.js";
3
+ } from "./chunk-GDZJL5GQ.js";
4
4
 
5
5
  // src/lib/orchestration-events.ts
6
6
  import crypto from "crypto";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-4CN3EE6U.js";
5
5
  import {
6
6
  fastDbInit
7
- } from "./chunk-N45FAI6D.js";
7
+ } from "./chunk-EORDC4BQ.js";
8
8
  import {
9
9
  getClient
10
- } from "./chunk-L5JFVK5T.js";
10
+ } from "./chunk-GDZJL5GQ.js";
11
11
  import {
12
12
  EXE_AI_DIR
13
13
  } from "./chunk-MMS2HBRT.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-RT57D7C4.js";
20
20
  import {
21
21
  loadLicense
22
- } from "./chunk-EOWJXCYC.js";
22
+ } from "./chunk-TSZ3JCQB.js";
23
23
 
24
24
  // src/lib/stack-update.ts
25
25
  import { execFileSync as execFileSync2, spawnSync as spawnSync2 } from "child_process";
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  reserveVersions,
6
6
  vectorToBlob
7
- } from "./chunk-LSHUX7P4.js";
7
+ } from "./chunk-D4RU4Y57.js";
8
8
  import {
9
9
  getClient
10
- } from "./chunk-L5JFVK5T.js";
10
+ } from "./chunk-GDZJL5GQ.js";
11
11
 
12
12
  // src/lib/documents.ts
13
13
  import crypto from "crypto";
@@ -85,7 +85,7 @@ async function resolveWorkspace(slug_or_id, name, ownerAgentId) {
85
85
  }
86
86
  if (owner) {
87
87
  try {
88
- const { grantWikiAccess } = await import("./wiki-acl-M7BTQJBZ.js");
88
+ const { grantWikiAccess } = await import("./wiki-acl-O4EOHWXE.js");
89
89
  await grantWikiAccess(owner, id, "admin", owner);
90
90
  } catch {
91
91
  }
@@ -111,7 +111,7 @@ async function resolveDefaultWorkspaceId(cwd) {
111
111
  const client = getClient();
112
112
  let projectName;
113
113
  try {
114
- const { getProjectName } = await import("./project-name-PGJGUEJY.js");
114
+ const { getProjectName } = await import("./project-name-3WEMIXD6.js");
115
115
  projectName = getProjectName(cwd);
116
116
  } catch {
117
117
  return null;
@@ -230,7 +230,7 @@ async function ingestDocument(input) {
230
230
  }
231
231
  let ingestingIdentity = null;
232
232
  try {
233
- const { getActiveAgent } = await import("./active-agent-3YCLS7GB.js");
233
+ const { getActiveAgent } = await import("./active-agent-NUV4ZSZV.js");
234
234
  ingestingIdentity = getActiveAgent().agentId || null;
235
235
  } catch {
236
236
  }
@@ -308,7 +308,7 @@ async function ingestDocument(input) {
308
308
  await client.batch([documentStmt, ...chunkStmts], "write");
309
309
  const embedded = vectors.filter((v) => v !== null).length;
310
310
  const originalTexts = input.chunks.map((c) => c.text);
311
- import("./doc-graph-extractor-TVK2NGAR.js").then(
311
+ import("./doc-graph-extractor-IADQDUXA.js").then(
312
312
  ({ extractAndStoreDocumentGraph }) => extractAndStoreDocumentGraph(documentId, originalTexts)
313
313
  ).catch((err) => {
314
314
  process.stderr.write(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getMasterKey
3
- } from "./chunk-4J77TCTX.js";
3
+ } from "./chunk-PMGEC42V.js";
4
4
 
5
5
  // src/lib/partner-sign-identity.ts
6
6
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  signKeyFingerprint
3
- } from "./chunk-MZNLQC6W.js";
3
+ } from "./chunk-E3TNFXWQ.js";
4
4
  import {
5
5
  resolveExeDataDir
6
6
  } from "./chunk-NPXIS2RY.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  exportRawPublicKey,
3
3
  privateKeyFromScalar
4
- } from "./chunk-7SHU5MOD.js";
4
+ } from "./chunk-RJ7RN5GE.js";
5
5
  import {
6
6
  getMasterKey
7
- } from "./chunk-4J77TCTX.js";
7
+ } from "./chunk-PMGEC42V.js";
8
8
 
9
9
  // src/lib/partner-seal-identity.ts
10
10
  import crypto from "crypto";
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-CBPNZFSU.js";
4
4
  import {
5
5
  initStore
6
- } from "./chunk-LSHUX7P4.js";
6
+ } from "./chunk-D4RU4Y57.js";
7
7
  import {
8
8
  getClient,
9
9
  isInitialized
10
- } from "./chunk-L5JFVK5T.js";
10
+ } from "./chunk-GDZJL5GQ.js";
11
11
 
12
12
  // src/lib/schedules.ts
13
13
  import crypto from "crypto";
@@ -8,13 +8,10 @@ import {
8
8
  queryTaskRows,
9
9
  resolveExeSession,
10
10
  sendIntercom
11
- } from "./chunk-GM4UEZDE.js";
11
+ } from "./chunk-WEG7URND.js";
12
12
  import {
13
13
  getTransport
14
14
  } from "./chunk-VI4ATC6I.js";
15
- import {
16
- recordOrchestrationEventBestEffort
17
- } from "./chunk-JGBYZTWH.js";
18
15
  import {
19
16
  releaseDispatchClaim,
20
17
  tryAcquireDispatchClaim
@@ -22,6 +19,9 @@ import {
22
19
  import {
23
20
  getAgentRuntime
24
21
  } from "./chunk-IVXELUEQ.js";
22
+ import {
23
+ recordOrchestrationEventBestEffort
24
+ } from "./chunk-D6D7LCMR.js";
25
25
  import {
26
26
  getSessionKey
27
27
  } from "./chunk-CVYC6DUW.js";
@@ -29,7 +29,7 @@ import {
29
29
  isCoordinatorName,
30
30
  isMultiInstance,
31
31
  shouldAutoInstance
32
- } from "./chunk-L5JFVK5T.js";
32
+ } from "./chunk-GDZJL5GQ.js";
33
33
 
34
34
  // src/lib/tasks-notify.ts
35
35
  var VERIFY_DELAY_MS = 1e4;
@@ -91,7 +91,7 @@ async function dispatchTaskToEmployee(input) {
91
91
  let crossProject = false;
92
92
  if (input.projectName) {
93
93
  try {
94
- const { assertSessionScope } = await import("./session-scope-SSYA64L3.js");
94
+ const { assertSessionScope } = await import("./session-scope-QNS6V4QZ.js");
95
95
  const check = assertSessionScope("dispatch_task", input.projectName);
96
96
  if (check.reason === "cross_session_denied") {
97
97
  crossProject = true;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  flushBatch,
6
6
  writeMemory
7
- } from "./chunk-LSHUX7P4.js";
7
+ } from "./chunk-D4RU4Y57.js";
8
8
  import {
9
9
  SUPPORT_PRODUCTS,
10
10
  isWellFormedCommit,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-BTSWFMEH.js";
11
11
  import {
12
12
  getClient
13
- } from "./chunk-L5JFVK5T.js";
13
+ } from "./chunk-GDZJL5GQ.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-2Z2BMMA5.js");
309
+ const { recordOrchestrationEventBestEffort } = await import("./orchestration-events-TXMCSNWZ.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-JGBYZTWH.js";
3
+ } from "./chunk-D6D7LCMR.js";
4
4
  import {
5
5
  atomicWriteJsonSync
6
6
  } from "./chunk-HSGBZSCA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isManagementRole
3
- } from "./chunk-L5JFVK5T.js";
3
+ } from "./chunk-GDZJL5GQ.js";
4
4
 
5
5
  // src/lib/transcript-sidechain.ts
6
6
  import { readFileSync } from "fs";