@askexenow/exe-os 0.9.153 → 0.9.155

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 (270) hide show
  1. package/deploy/compose/.env.example +25 -39
  2. package/deploy/compose/cloudflared/config.yml.example +29 -0
  3. package/deploy/compose/docker-compose.yml +94 -0
  4. package/deploy/compose/gateway.json +11 -1
  5. package/deploy/compose/generate-env.ts +18 -4
  6. package/deploy/compose/init-db.sql +55 -0
  7. package/dist/{active-agent-HDUT3T3I.js → active-agent-GHJBTJRF.js} +4 -4
  8. package/dist/{active-agent-XHERKXH6.js → active-agent-RY74REEW.js} +4 -4
  9. package/dist/{agentic-ontology-GMK3MB3U.js → agentic-ontology-FP67RCR6.js} +1 -1
  10. package/dist/{backfill-metadata-PPI5QFYW.js → backfill-metadata-W7FUQRD7.js} +5 -5
  11. package/dist/{background-jobs-IUB22CRF.js → background-jobs-XYVQT4HN.js} +2 -2
  12. package/dist/{behaviors-JG75DNG3.js → behaviors-KA64SSPT.js} +4 -4
  13. package/dist/bin/age-ontology-load.js +2 -2
  14. package/dist/bin/agentic-ontology-backfill.js +7 -7
  15. package/dist/bin/agentic-reflection-backfill.js +8 -8
  16. package/dist/bin/agentic-semantic-label.js +7 -7
  17. package/dist/bin/backfill-conversations.js +7 -7
  18. package/dist/bin/backfill-responses.js +7 -7
  19. package/dist/bin/backfill-vectors.js +9 -9
  20. package/dist/bin/bulk-sync-postgres.js +8 -8
  21. package/dist/bin/cc-doctor.js +3 -3
  22. package/dist/bin/cleanup-stale-review-tasks.js +11 -11
  23. package/dist/bin/cli.js +18 -18
  24. package/dist/bin/exe-agent-config.js +4 -4
  25. package/dist/bin/exe-agent.js +9 -9
  26. package/dist/bin/exe-assign.js +9 -9
  27. package/dist/bin/exe-boot.js +18 -18
  28. package/dist/bin/exe-call.js +5 -5
  29. package/dist/bin/exe-cloud.js +7 -7
  30. package/dist/bin/exe-dispatch.js +11 -11
  31. package/dist/bin/exe-doctor.js +1 -1
  32. package/dist/bin/exe-export-behaviors.js +8 -8
  33. package/dist/bin/exe-forget.js +7 -7
  34. package/dist/bin/exe-gateway.js +8 -8
  35. package/dist/bin/exe-healthcheck.js +3 -3
  36. package/dist/bin/exe-heartbeat.js +11 -11
  37. package/dist/bin/exe-kill.js +14 -14
  38. package/dist/bin/exe-launch-agent.js +12 -12
  39. package/dist/bin/exe-new-employee.js +8 -8
  40. package/dist/bin/exe-pending-messages.js +12 -12
  41. package/dist/bin/exe-pending-notifications.js +11 -11
  42. package/dist/bin/exe-pending-reviews.js +11 -11
  43. package/dist/bin/exe-rename.js +5 -5
  44. package/dist/bin/exe-review.js +13 -13
  45. package/dist/bin/exe-search.js +6 -6
  46. package/dist/bin/exe-session-cleanup.js +17 -18
  47. package/dist/bin/exe-settings.js +7 -7
  48. package/dist/bin/exe-start-codex.js +12 -12
  49. package/dist/bin/exe-start-opencode.js +9 -9
  50. package/dist/bin/exe-status.js +12 -12
  51. package/dist/bin/exe-support.js +3 -3
  52. package/dist/bin/exe-team.js +4 -4
  53. package/dist/bin/git-sweep.js +11 -11
  54. package/dist/bin/graph-backfill.js +6 -6
  55. package/dist/bin/graph-export.js +6 -6
  56. package/dist/bin/install.js +7 -7
  57. package/dist/bin/intercom-check.js +4 -4
  58. package/dist/bin/postgres-agentic-reflection-backfill.js +4 -4
  59. package/dist/bin/postgres-agentic-semantic-backfill.js +3 -3
  60. package/dist/bin/scan-tasks.js +11 -11
  61. package/dist/bin/setup.js +2 -2
  62. package/dist/bin/shard-migrate.js +6 -6
  63. package/dist/bin/stack-update.js +2 -2
  64. package/dist/{branding-EHDA3CCK.js → branding-YUEILP4B.js} +1 -1
  65. package/dist/{capacity-monitor-5IVGAQ34.js → capacity-monitor-WAZTZAR5.js} +12 -12
  66. package/dist/{catchup-brief-HFJR32Q3.js → catchup-brief-PKETW4ND.js} +13 -13
  67. package/dist/{chunk-HZNQYDAN.js → chunk-23UPL4NU.js} +3 -3
  68. package/dist/{chunk-ZGKU4PMY.js → chunk-2X5G7F5C.js} +3 -3
  69. package/dist/{chunk-EYQ3DHHI.js → chunk-3AN3RTUT.js} +8 -8
  70. package/dist/{chunk-SGLVCPZP.js → chunk-452JBQHH.js} +1 -1
  71. package/dist/{chunk-TOWAZ5IV.js → chunk-4GXRETYL.js} +16 -1
  72. package/dist/{chunk-SFV2XRPY.js → chunk-4ZQDR3MI.js} +1 -1
  73. package/dist/{chunk-DW6P7UVY.js → chunk-66QQPSWI.js} +2 -2
  74. package/dist/{chunk-PMCXWAVQ.js → chunk-6F46227N.js} +6 -6
  75. package/dist/{chunk-UHL4QL5E.js → chunk-77QEF6FR.js} +2 -2
  76. package/dist/{chunk-Q7GVSS2J.js → chunk-7G44AU2D.js} +1 -1
  77. package/dist/{chunk-LIJC4CRF.js → chunk-7VIH6LOQ.js} +2 -2
  78. package/dist/{chunk-L5WTOR3T.js → chunk-7XRGVVG6.js} +3 -3
  79. package/dist/{chunk-AFMQR776.js → chunk-A6LSJC2O.js} +1 -1
  80. package/dist/{chunk-3TXOH3SJ.js → chunk-A7KEWR6S.js} +1 -1
  81. package/dist/{chunk-4RKL53PD.js → chunk-AK7S4GRC.js} +25 -18
  82. package/dist/{chunk-4IEQIUBZ.js → chunk-BRHV6CJT.js} +2 -2
  83. package/dist/{chunk-BPBUSSYF.js → chunk-CGLSVN6N.js} +9 -9
  84. package/dist/{chunk-GJMHN45Z.js → chunk-CK5ZKW25.js} +1 -1
  85. package/dist/{chunk-K4KAPZC7.js → chunk-CMFLJNP6.js} +1 -1
  86. package/dist/{chunk-6YUACQQA.js → chunk-CTOQYEKJ.js} +1 -1
  87. package/dist/{chunk-UPAEAL6K.js → chunk-CXGOW4EJ.js} +3 -3
  88. package/dist/{chunk-6HFZ2KUC.js → chunk-DH65L4XI.js} +1 -1
  89. package/dist/{chunk-W6SKR3HZ.js → chunk-E2O7YYDS.js} +2 -2
  90. package/dist/{chunk-MBYJEE3B.js → chunk-EVB53OQD.js} +23 -11
  91. package/dist/{chunk-H5STRY47.js → chunk-F7ITFLVR.js} +1 -1
  92. package/dist/{chunk-WPNWFI4A.js → chunk-FOG7AEEO.js} +2 -2
  93. package/dist/{chunk-OEPEY47B.js → chunk-G2RRAFCH.js} +1 -1
  94. package/dist/{chunk-EYQIEK5M.js → chunk-GUCKE3GK.js} +1 -1
  95. package/dist/{chunk-KIUU4PNX.js → chunk-H2CFBUGF.js} +1 -1
  96. package/dist/{chunk-VB23RNNI.js → chunk-HBPFK6AO.js} +1 -1
  97. package/dist/{chunk-WZMS6X56.js → chunk-HDQJMTBG.js} +2 -2
  98. package/dist/{chunk-JUM3EUB2.js → chunk-HF6TVN2J.js} +6 -6
  99. package/dist/{chunk-M37FGM3X.js → chunk-HH6ZCDZH.js} +2 -2
  100. package/dist/{chunk-YOH3ABTS.js → chunk-INWPOOB6.js} +1 -1
  101. package/dist/{chunk-CBLNQNWT.js → chunk-IRVLV6C5.js} +1 -1
  102. package/dist/{chunk-EHXOWGQG.js → chunk-IXJ4SLKR.js} +2 -2
  103. package/dist/{chunk-ODEGQCWW.js → chunk-J73N5EJ6.js} +5 -5
  104. package/dist/{chunk-UQE5R5PM.js → chunk-JFEFVLLD.js} +7 -7
  105. package/dist/{chunk-LM7TQYLW.js → chunk-JTHPKHKC.js} +1 -1
  106. package/dist/{chunk-VJW3E5KW.js → chunk-JYYWHPQC.js} +8 -8
  107. package/dist/{chunk-RAMU6E5T.js → chunk-KL5VDEBT.js} +1 -1
  108. package/dist/{chunk-BV2JVO2U.js → chunk-KPB5SN3Q.js} +1 -1
  109. package/dist/{chunk-OQYZQR24.js → chunk-KZXC3G3P.js} +2 -2
  110. package/dist/{chunk-MNIJA5BL.js → chunk-LVWXGZER.js} +1 -1
  111. package/dist/{chunk-JJA6F6NA.js → chunk-LWABYGNF.js} +1 -1
  112. package/dist/{chunk-SJKOILTX.js → chunk-MBXAWOYB.js} +1 -1
  113. package/dist/{chunk-4PDXCEXT.js → chunk-OCFYT3LE.js} +50 -9
  114. package/dist/{chunk-GCNWCYJI.js → chunk-ONKIWA3R.js} +2 -2
  115. package/dist/{chunk-WLSSSDAR.js → chunk-PELAHAJR.js} +1 -1
  116. package/dist/{chunk-IWGGTD5D.js → chunk-PY7QM2C7.js} +3 -3
  117. package/dist/{chunk-YABPRFBT.js → chunk-Q46X2YPY.js} +4 -4
  118. package/dist/{chunk-PC6Y4ATU.js → chunk-Q55XPOXU.js} +1 -1
  119. package/dist/{chunk-25NSQUZ3.js → chunk-RTNRPBQP.js} +10 -10
  120. package/dist/{chunk-EOO32RJZ.js → chunk-RVSGXGWG.js} +1 -1
  121. package/dist/{chunk-CF4DZKKE.js → chunk-RZE4KMRO.js} +2 -2
  122. package/dist/{chunk-V4MKR32F.js → chunk-S6DDN7IS.js} +2 -2
  123. package/dist/{chunk-BR5UVRA2.js → chunk-SEENMPG7.js} +2 -2
  124. package/dist/{chunk-EOU4ZLRZ.js → chunk-SNN634YS.js} +1 -1
  125. package/dist/{chunk-LWJ4AMMY.js → chunk-T5YT64SZ.js} +1 -1
  126. package/dist/{chunk-NNT2ZNMC.js → chunk-TJEETRHD.js} +1 -1
  127. package/dist/{chunk-3ZU7RTMF.js → chunk-TM3WWKNB.js} +42 -29
  128. package/dist/{chunk-AMVDQ7HH.js → chunk-U56WZR5E.js} +6 -6
  129. package/dist/{chunk-U3B3TVLQ.js → chunk-U5GTF2JP.js} +1 -1
  130. package/dist/{chunk-XQC5BNCJ.js → chunk-UWUF5NWA.js} +7 -7
  131. package/dist/{chunk-CO2SF5SB.js → chunk-V5Y323LO.js} +1 -1
  132. package/dist/{chunk-XMRDT4PB.js → chunk-WZTQUBIE.js} +1 -1
  133. package/dist/{chunk-RLCZBSUB.js → chunk-X347L57O.js} +12 -0
  134. package/dist/{chunk-ICKEGWWP.js → chunk-X5O3FKRU.js} +1 -1
  135. package/dist/{chunk-4MN44ORL.js → chunk-XIGJOVTD.js} +1 -1
  136. package/dist/{chunk-5U5MI4VH.js → chunk-XIZR2YLR.js} +88 -90
  137. package/dist/{chunk-7WEVNBV2.js → chunk-ZIJR3H2O.js} +2 -2
  138. package/dist/{chunk-5NSTNICM.js → chunk-ZPM2RMK2.js} +3 -3
  139. package/dist/{code-context-index-I5A7I4JQ.js → code-context-index-XZ22G57G.js} +4 -4
  140. package/dist/{conversation-wiki-populator-RSJ44BRO.js → conversation-wiki-populator-HVROKOEU.js} +1 -1
  141. package/dist/{crdt-sync-3VQP2ISB.js → crdt-sync-5JERNXAI.js} +1 -1
  142. package/dist/{crm-bridge-4QZRMOF7.js → crm-bridge-BVTB6LZK.js} +1 -1
  143. package/dist/{crm-webhook-SOUYMO3X.js → crm-webhook-DGL6XEOQ.js} +2 -2
  144. package/dist/{cto-delegation-gate-UGCMXYAO.js → cto-delegation-gate-UFSXT2CA.js} +10 -10
  145. package/dist/{daemon-auth-F47P6HTC.js → daemon-auth-H4EJ7KAQ.js} +2 -2
  146. package/dist/{daemon-orchestration-MD34RKQZ.js → daemon-orchestration-IP2LHJJK.js} +13 -13
  147. package/dist/{db-backup-W56YOLMC.js → db-backup-7UOCAPHO.js} +2 -2
  148. package/dist/{exe-drift-L5ZHO3CZ.js → exe-drift-FNK7OXMY.js} +4 -4
  149. package/dist/{exe-export-UDQU7MMM.js → exe-export-LLKDWX7F.js} +6 -6
  150. package/dist/{exe-import-OY42LQL4.js → exe-import-XVAR7ZVC.js} +6 -6
  151. package/dist/{exe-key-FC67RNXI.js → exe-key-E3YOJ2ME.js} +3 -3
  152. package/dist/{exe-org-OOO7KJVZ.js → exe-org-FEX66BTG.js} +2 -2
  153. package/dist/{fast-db-init-TLOT2K43.js → fast-db-init-SMQC6S3C.js} +1 -1
  154. package/dist/gateway/index.js +12 -12
  155. package/dist/{git-staleness-MSTOMG55.js → git-staleness-HE6QCRSC.js} +3 -3
  156. package/dist/{git-task-sweep-D4IKRGCV.js → git-task-sweep-NWHG3FWG.js} +11 -11
  157. package/dist/{global-procedures-ISPSC4B5.js → global-procedures-KNA62DIE.js} +4 -4
  158. package/dist/{graph-auto-extract-D4I7DF2S.js → graph-auto-extract-4EZVBWQN.js} +3 -3
  159. package/dist/{hook-integrity-SA7S2SNI.js → hook-integrity-P3Z3HKMR.js} +1 -1
  160. package/dist/hooks/bug-report-worker.js +12 -12
  161. package/dist/hooks/codex-stop-task-finalizer.js +12 -12
  162. package/dist/hooks/commit-complete.js +13 -13
  163. package/dist/hooks/error-recall.js +7 -7
  164. package/dist/hooks/exe-heartbeat-hook.js +4 -4
  165. package/dist/hooks/ingest-worker.js +5 -5
  166. package/dist/hooks/ingest.js +12 -12
  167. package/dist/hooks/instructions-loaded.js +5 -5
  168. package/dist/hooks/notification.js +5 -5
  169. package/dist/hooks/post-compact.js +12 -12
  170. package/dist/hooks/post-tool-combined.js +5 -5
  171. package/dist/hooks/pre-compact.js +17 -17
  172. package/dist/hooks/pre-tool-use.js +38 -16
  173. package/dist/hooks/prompt-submit.js +61 -22
  174. package/dist/hooks/session-end.js +21 -21
  175. package/dist/hooks/session-start.js +9 -9
  176. package/dist/hooks/stop.js +19 -19
  177. package/dist/hooks/subagent-stop.js +12 -12
  178. package/dist/hooks/summary-worker.js +20 -20
  179. package/dist/index.js +21 -21
  180. package/dist/{installer-SPQDAGPW.js → installer-4GPRFPIU.js} +6 -6
  181. package/dist/{installer-4YIOBAFV.js → installer-MMXK6EHQ.js} +6 -6
  182. package/dist/{installer-3YHQ5DJZ.js → installer-TAFFG7WH.js} +6 -6
  183. package/dist/{key-backup-status-ORNMJEEA.js → key-backup-status-KQUGSNVJ.js} +1 -1
  184. package/dist/lib/agent-config.js +2 -2
  185. package/dist/lib/cloud-sync.js +6 -6
  186. package/dist/lib/config.js +1 -1
  187. package/dist/lib/consolidation.js +6 -6
  188. package/dist/lib/database.js +3 -3
  189. package/dist/lib/db-daemon-client.js +3 -3
  190. package/dist/lib/db.js +3 -3
  191. package/dist/lib/device-registry.js +1 -1
  192. package/dist/lib/embedder.js +4 -4
  193. package/dist/lib/employee-templates.js +5 -5
  194. package/dist/lib/employees.js +3 -3
  195. package/dist/lib/exe-daemon-client.js +3 -3
  196. package/dist/lib/exe-daemon.js +63 -38
  197. package/dist/lib/hybrid-search.js +6 -6
  198. package/dist/lib/identity.js +3 -3
  199. package/dist/lib/license.js +2 -2
  200. package/dist/lib/messaging.js +11 -11
  201. package/dist/lib/reminders.js +4 -4
  202. package/dist/lib/schedules.js +6 -6
  203. package/dist/lib/skill-learning.js +5 -5
  204. package/dist/lib/store.js +5 -5
  205. package/dist/lib/task-router.js +4 -4
  206. package/dist/lib/tasks.js +11 -11
  207. package/dist/lib/tmux-routing.js +10 -10
  208. package/dist/lib/tmux-transport.js +1 -1
  209. package/dist/lib/token-spend.js +4 -4
  210. package/dist/lib/transport.js +2 -2
  211. package/dist/{license-gate-J5YN264E.js → license-gate-OAPGTQXF.js} +3 -3
  212. package/dist/mcp/register-tools.js +59 -59
  213. package/dist/mcp/server.js +60 -60
  214. package/dist/mcp/tools/complete-reminder.js +5 -5
  215. package/dist/mcp/tools/create-reminder.js +5 -5
  216. package/dist/mcp/tools/create-task.js +13 -13
  217. package/dist/mcp/tools/deactivate-behavior.js +6 -6
  218. package/dist/mcp/tools/list-reminders.js +5 -5
  219. package/dist/mcp/tools/list-tasks.js +13 -13
  220. package/dist/mcp/tools/send-message.js +13 -13
  221. package/dist/mcp/tools/update-task.js +12 -12
  222. package/dist/{mcp-http-config-JBNX3DAR.js → mcp-http-config-FPHVLE3N.js} +4 -4
  223. package/dist/{memory-cards-SYVGSLXW.js → memory-cards-VYZSCHZR.js} +3 -3
  224. package/dist/{memory-poisoning-defense-T7AC4LZN.js → memory-poisoning-defense-NGJ63VZE.js} +3 -3
  225. package/dist/{memory-queue-NYIGZNCG.js → memory-queue-2SHTE6GU.js} +2 -2
  226. package/dist/{memory-queue-client-YJOLYALV.js → memory-queue-client-M7NHD4GY.js} +5 -5
  227. package/dist/{memory-reflection-FNJU7VFC.js → memory-reflection-XXN375ZD.js} +3 -3
  228. package/dist/{notifications-76XXO4Q7.js → notifications-Z6Q2SEHP.js} +10 -10
  229. package/dist/{orchestration-phase-FXKZYK6R.js → orchestration-phase-D3PNCSUY.js} +2 -2
  230. package/dist/{orchestrator-XAT2JSBT.js → orchestrator-RHJGFMAS.js} +12 -12
  231. package/dist/{plan-limits-IAUNTZUW.js → plan-limits-GCKK3L6F.js} +5 -5
  232. package/dist/{projection-worker-S6LYSY22.js → projection-worker-GHWA6NEA.js} +2 -2
  233. package/dist/{push-notifications-NSYLKFXR.js → push-notifications-VJZFCUFZ.js} +2 -2
  234. package/dist/{reranker-OMADCS3D.js → reranker-JJRY3V3V.js} +2 -2
  235. package/dist/{review-polling-E24XBNSI.js → review-polling-XUIKH7HF.js} +11 -11
  236. package/dist/runtime/index.js +17 -17
  237. package/dist/{session-events-CCXFQRFW.js → session-events-KURSY7LK.js} +11 -11
  238. package/dist/{session-kill-telemetry-TX5NCPUV.js → session-kill-telemetry-PD4UM5FM.js} +4 -4
  239. package/dist/{session-scope-7QCZF3MJ.js → session-scope-5MOCMTAM.js} +10 -10
  240. package/dist/{setup-wizard-FA6YEYER.js → setup-wizard-6SW2ND2B.js} +2 -2
  241. package/dist/{shard-manager-SP4YL5JQ.js → shard-manager-6JBG2K5X.js} +2 -2
  242. package/dist/skill-refinement-JBZRPZKW.js +156 -0
  243. package/dist/{task-enforcement-NITY7TBM.js → task-enforcement-2WCWSZQ3.js} +10 -10
  244. package/dist/{task-scope-YZDSPORL.js → task-scope-HW6BE2PI.js} +10 -10
  245. package/dist/{tasks-crud-W5BFKNUS.js → tasks-crud-WACRTPQK.js} +10 -10
  246. package/dist/{tasks-review-VXMELVLA.js → tasks-review-LIWD4PGN.js} +10 -10
  247. package/dist/{token-budget-LJC7HHKB.js → token-budget-5QD4ZSDX.js} +3 -3
  248. package/dist/{tool-capability-index-OBZXORBP.js → tool-capability-index-LBDYUK6L.js} +1 -1
  249. package/dist/{tool-telemetry-L3WQDRMH.js → tool-telemetry-2VGSVV3J.js} +1 -1
  250. package/dist/tui/App.js +23 -23
  251. package/dist/{tui-data-FQYUPCYX.js → tui-data-UKFAWSNP.js} +10 -10
  252. package/dist/{worker-gate-OZCNSASA.js → worker-gate-NJRW5QYT.js} +2 -2
  253. package/dist/{workflow-engine-DA3AWD45.js → workflow-engine-ICAQJSYT.js} +2 -2
  254. package/package.json +1 -1
  255. package/release-notes.json +190 -190
  256. package/stack.release.json +2 -2
  257. /package/dist/{chunk-YH7VB655.js → chunk-E5PVJXIP.js} +0 -0
  258. /package/dist/{chunk-J2OPV5FE.js → chunk-FMBRO3D7.js} +0 -0
  259. /package/dist/{chunk-VN6UUZNO.js → chunk-J2KP4ZDX.js} +0 -0
  260. /package/dist/{chunk-OU7SLHNA.js → chunk-LKKKOWTH.js} +0 -0
  261. /package/dist/{chunk-BRXDLJBU.js → chunk-LZLXG7TK.js} +0 -0
  262. /package/dist/{chunk-UIOTTKLS.js → chunk-PYDL42BL.js} +0 -0
  263. /package/dist/{chunk-PJCTBGWN.js → chunk-RES22KSZ.js} +0 -0
  264. /package/dist/{core-memory-ONZIJYGR.js → core-memory-QRQ62AZY.js} +0 -0
  265. /package/dist/{entity-boost-LIBVNNXO.js → entity-boost-MDWFYORT.js} +0 -0
  266. /package/dist/{message-queue-client-NTLKYGVO.js → message-queue-client-BJZEA6RV.js} +0 -0
  267. /package/dist/{oauth-server-TOWAZR4K.js → oauth-server-UM2TQJLJ.js} +0 -0
  268. /package/dist/{webhook-pipe-PJOFVBD3.js → webhook-pipe-VSLEA26V.js} +0 -0
  269. /package/dist/{wiki-acl-UE3CRAPQ.js → wiki-acl-RZCXSF5O.js} +0 -0
  270. /package/dist/{wiki-client-MMVRPTPK.js → wiki-client-NZR7RW4I.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveAgent
3
- } from "./chunk-UHL4QL5E.js";
3
+ } from "./chunk-77QEF6FR.js";
4
4
  import {
5
5
  listTasks
6
- } from "./chunk-4PDXCEXT.js";
6
+ } from "./chunk-OCFYT3LE.js";
7
7
  import {
8
8
  getProjectName
9
9
  } from "./chunk-OPU3NYOO.js";
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  connectEmbedDaemon,
9
9
  embedBatchViaClient
10
- } from "./chunk-W6SKR3HZ.js";
10
+ } from "./chunk-E2O7YYDS.js";
11
11
  import {
12
12
  EXE_AI_DIR
13
- } from "./chunk-TOWAZ5IV.js";
13
+ } from "./chunk-4GXRETYL.js";
14
14
 
15
15
  // src/lib/code-context-index.ts
16
16
  import crypto from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  listBehaviors
3
- } from "./chunk-EOU4ZLRZ.js";
3
+ } from "./chunk-SNN634YS.js";
4
4
  import {
5
5
  loadConfigSync
6
- } from "./chunk-TOWAZ5IV.js";
6
+ } from "./chunk-4GXRETYL.js";
7
7
 
8
8
  // src/lib/behaviors-export.ts
9
9
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-MBYJEE3B.js";
3
+ } from "./chunk-EVB53OQD.js";
4
4
 
5
5
  // src/lib/behaviors.ts
6
6
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EXE_AI_DIR
3
- } from "./chunk-TOWAZ5IV.js";
3
+ } from "./chunk-4GXRETYL.js";
4
4
 
5
5
  // src/lib/mcp-transport-health.ts
6
6
  import { appendFileSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, statSync, writeFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EXE_AI_DIR
3
- } from "./chunk-TOWAZ5IV.js";
3
+ } from "./chunk-4GXRETYL.js";
4
4
 
5
5
  // src/lib/license.ts
6
6
  import { readFileSync, writeFileSync, existsSync, mkdirSync, statSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  recordSessionKill
3
- } from "./chunk-CO2SF5SB.js";
3
+ } from "./chunk-V5Y323LO.js";
4
4
  import {
5
5
  updateTask
6
- } from "./chunk-VJW3E5KW.js";
6
+ } from "./chunk-JYYWHPQC.js";
7
7
  import {
8
8
  ensureEmployee,
9
9
  extractRootExe,
@@ -14,7 +14,7 @@ import {
14
14
  sessionScopeFilter,
15
15
  strictSessionScopeFilter,
16
16
  writeNotification
17
- } from "./chunk-4PDXCEXT.js";
17
+ } from "./chunk-OCFYT3LE.js";
18
18
  import {
19
19
  queueIntercom
20
20
  } from "./chunk-TXSJ2L5O.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-64WZEXXA.js";
24
24
  import {
25
25
  getTransport
26
- } from "./chunk-3TXOH3SJ.js";
26
+ } from "./chunk-A7KEWR6S.js";
27
27
  import {
28
28
  listTmuxSessions,
29
29
  parseContextPercentage
@@ -32,10 +32,10 @@ import {
32
32
  baseAgentName,
33
33
  isCoordinatorName,
34
34
  shouldAutoInstance
35
- } from "./chunk-MBYJEE3B.js";
35
+ } from "./chunk-EVB53OQD.js";
36
36
  import {
37
37
  loadConfigSync
38
- } from "./chunk-TOWAZ5IV.js";
38
+ } from "./chunk-4GXRETYL.js";
39
39
 
40
40
  // src/lib/daemon-orchestration.ts
41
41
  import { execSync } from "child_process";
@@ -518,17 +518,14 @@ async function pollOrphanedTasks(deps, nowMs = Date.now()) {
518
518
  process.stderr.write("[daemon-orch] list tmux sessions for orphan poll: " + (e instanceof Error ? e.message : String(e)) + "\n");
519
519
  return [];
520
520
  }
521
- const liveAgentCounts = /* @__PURE__ */ new Map();
522
- const liveAgentScopeCounts = /* @__PURE__ */ new Map();
521
+ const liveAgentScopedCounts = /* @__PURE__ */ new Map();
523
522
  for (const session of liveSessions) {
524
523
  const agent = deps.parseAgentFromSession(session);
525
524
  if (agent) {
526
- liveAgentCounts.set(agent, (liveAgentCounts.get(agent) ?? 0) + 1);
527
- const scope = session.includes("-") ? session.slice(session.indexOf("-") + 1) : "";
528
- if (scope) {
529
- const scopeKey = `${agent}::${scope}`;
530
- liveAgentScopeCounts.set(scopeKey, (liveAgentScopeCounts.get(scopeKey) ?? 0) + 1);
531
- }
525
+ const dashIdx = session.indexOf("-");
526
+ const scope = dashIdx >= 0 ? session.slice(dashIdx + 1) : session;
527
+ const scopedKey = `${agent}::${scope}`;
528
+ liveAgentScopedCounts.set(scopedKey, (liveAgentScopedCounts.get(scopedKey) ?? 0) + 1);
532
529
  }
533
530
  }
534
531
  const coordinatorSessions = liveSessions.filter((s) => isExeSession(s));
@@ -560,15 +557,13 @@ async function pollOrphanedTasks(deps, nowMs = Date.now()) {
560
557
  for (const [key, tasks] of agentTasks) {
561
558
  const agentId = key.split("::")[0];
562
559
  const sessionScope = tasks[0].sessionScope;
563
- const scopeKey = `${agentId}::${sessionScope}`;
564
- const scopedRunning = liveAgentScopeCounts.get(scopeKey) ?? 0;
565
560
  if (!shouldAutoWake({
566
561
  agentId,
567
- hasRunningSession: scopedRunning > 0,
562
+ hasRunningSession: liveAgentScopedCounts.has(key),
568
563
  lastSpawnMs: _autoWakeLastSpawn.get(key) ?? 0,
569
564
  nowMs,
570
565
  cooldownMs: AUTO_WAKE_COOLDOWN_MS,
571
- runningInstances: scopedRunning,
566
+ runningInstances: liveAgentScopedCounts.get(key) ?? 0,
572
567
  pendingTaskGroups: tasks.length
573
568
  })) {
574
569
  continue;
@@ -764,18 +759,36 @@ async function cleanupStaleReviews(deps) {
764
759
  function createStaleReviewRealDeps(getClient) {
765
760
  return {
766
761
  queryStaleReviews: async (thresholdDays) => {
767
- const rows = await queryTaskRows({
768
- status: "needs_review",
769
- columns: "id, title, assigned_to, updated_at",
770
- sessionScope: null,
771
- // daemon-level: check all sessions
772
- projectName: null,
773
- orderBy: "updated_at ASC",
774
- limit: 1e3,
775
- extraConditions: ["updated_at < datetime('now', '-' || ? || ' days')"],
776
- extraArgs: [String(thresholdDays)]
762
+ const client = getClient();
763
+ const scopeRows = await client.execute({
764
+ sql: `SELECT DISTINCT session_scope FROM tasks
765
+ WHERE session_scope IS NOT NULL AND status NOT IN ('closed', 'cancelled')`,
766
+ args: []
777
767
  });
778
- return rows.map((r) => ({
768
+ const scopes = scopeRows.rows.map((r) => r.session_scope ? String(r.session_scope) : null);
769
+ scopes.push(null);
770
+ const allRows = [];
771
+ for (const scope of scopes) {
772
+ const rows = await queryTaskRows({
773
+ status: "needs_review",
774
+ columns: "id, title, assigned_to, updated_at",
775
+ sessionScope: scope,
776
+ strictSession: scope !== null,
777
+ projectName: null,
778
+ orderBy: "updated_at ASC",
779
+ limit: 1e3,
780
+ extraConditions: ["updated_at < datetime('now', '-' || ? || ' days')"],
781
+ extraArgs: [String(thresholdDays)]
782
+ });
783
+ allRows.push(...rows);
784
+ }
785
+ const seen = /* @__PURE__ */ new Set();
786
+ return allRows.filter((r) => {
787
+ const id = String(r.id);
788
+ if (seen.has(id)) return false;
789
+ seen.add(id);
790
+ return true;
791
+ }).map((r) => ({
779
792
  taskId: String(r.id),
780
793
  title: String(r.title),
781
794
  assignedTo: String(r.assigned_to),
@@ -3,24 +3,24 @@ import {
3
3
  } from "./chunk-MLXJ5EZG.js";
4
4
  import {
5
5
  createTask
6
- } from "./chunk-VJW3E5KW.js";
6
+ } from "./chunk-JYYWHPQC.js";
7
7
  import {
8
8
  getActiveAgent
9
- } from "./chunk-UHL4QL5E.js";
9
+ } from "./chunk-77QEF6FR.js";
10
10
  import {
11
11
  ensureEmployee,
12
12
  logTaskDispatch,
13
13
  resolveExeSession
14
- } from "./chunk-4PDXCEXT.js";
14
+ } from "./chunk-OCFYT3LE.js";
15
15
  import {
16
16
  getLicenseSync
17
- } from "./chunk-5NSTNICM.js";
17
+ } from "./chunk-ZPM2RMK2.js";
18
18
  import {
19
19
  getAgentContext
20
20
  } from "./chunk-GJV3WDWM.js";
21
21
  import {
22
22
  isCoordinatorName
23
- } from "./chunk-MBYJEE3B.js";
23
+ } from "./chunk-EVB53OQD.js";
24
24
 
25
25
  // src/mcp/tools/create-task.ts
26
26
  import { z } from "zod";
@@ -185,7 +185,7 @@ function registerCreateTask(server) {
185
185
  let projectConflictOpts = {};
186
186
  try {
187
187
  const { getClient } = await import("./lib/database.js");
188
- const { sessionScopeFilter } = await import("./task-scope-YZDSPORL.js");
188
+ const { sessionScopeFilter } = await import("./task-scope-HW6BE2PI.js");
189
189
  const client = getClient();
190
190
  const scope = sessionScopeFilter();
191
191
  const existing = await client.execute({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeMemoryViaDaemon
3
- } from "./chunk-EHXOWGQG.js";
3
+ } from "./chunk-IXJ4SLKR.js";
4
4
 
5
5
  // src/lib/auto-checkpoint.ts
6
6
  var FILE_RE = /(?:^|\s)([\w./-]+\.(?:ts|tsx|js|jsx|json|md|yml|yaml|sql|go|py|css|scss|html|sh))(?:\b|$)/g;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isCrdtSyncEnabled
3
- } from "./chunk-VN6UUZNO.js";
3
+ } from "./chunk-J2KP4ZDX.js";
4
4
  import {
5
5
  decryptSyncBlob,
6
6
  encryptSyncBlob,
@@ -12,13 +12,13 @@ import {
12
12
  loadEmployees,
13
13
  registerBinSymlinks,
14
14
  saveEmployees
15
- } from "./chunk-MBYJEE3B.js";
15
+ } from "./chunk-EVB53OQD.js";
16
16
  import {
17
17
  loadDeviceId
18
- } from "./chunk-NNT2ZNMC.js";
18
+ } from "./chunk-TJEETRHD.js";
19
19
  import {
20
20
  EXE_AI_DIR
21
- } from "./chunk-TOWAZ5IV.js";
21
+ } from "./chunk-4GXRETYL.js";
22
22
  import {
23
23
  atomicWriteJsonSync,
24
24
  atomicWriteSync,
@@ -173,7 +173,7 @@ async function pushToPostgres(records) {
173
173
  processed_at = NULL`,
174
174
  String(rec.id ?? ""),
175
175
  JSON.stringify(rec),
176
- JSON.stringify({ agent_id: rec.agent_id, project_name: rec.project_name, tool_name: rec.tool_name }),
176
+ JSON.stringify({ agent_id: rec.agent_id, project_name: rec.project_name, tool_name: rec.tool_name, memory_type: rec.memory_type ?? "raw" }),
177
177
  rec.timestamp ? new Date(String(rec.timestamp)) : /* @__PURE__ */ new Date()
178
178
  );
179
179
  inserted += Number(changed ?? 0);
@@ -485,7 +485,7 @@ async function cloudSync(config) {
485
485
  let pulled = 0;
486
486
  if (pullResult.records.length > 0) {
487
487
  if (isCrdtSyncEnabled()) {
488
- const { initCrdtDoc, importExistingMemories, readAllMemories } = await import("./crdt-sync-3VQP2ISB.js");
488
+ const { initCrdtDoc, importExistingMemories, readAllMemories } = await import("./crdt-sync-5JERNXAI.js");
489
489
  initCrdtDoc();
490
490
  importExistingMemories(
491
491
  pullResult.records.map((rec) => ({
@@ -871,7 +871,7 @@ async function cloudSync(config) {
871
871
  }
872
872
  const totalMemories = await countRows("SELECT COUNT(*) as cnt FROM memories WHERE status = 'active' OR status IS NULL");
873
873
  try {
874
- const { getLatestBackup } = await import("./db-backup-W56YOLMC.js");
874
+ const { getLatestBackup } = await import("./db-backup-7UOCAPHO.js");
875
875
  const latestBackup = getLatestBackup();
876
876
  if (latestBackup) {
877
877
  const backupSize = statSync(latestBackup).size;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-MBYJEE3B.js";
3
+ } from "./chunk-EVB53OQD.js";
4
4
 
5
5
  // src/lib/session-kill-telemetry.ts
6
6
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MODELS_DIR
3
- } from "./chunk-TOWAZ5IV.js";
3
+ } from "./chunk-4GXRETYL.js";
4
4
 
5
5
  // src/lib/reranker.ts
6
6
  import path from "path";
@@ -97,6 +97,18 @@ var TmuxTransport = class {
97
97
  }
98
98
  }
99
99
  kill(target) {
100
+ const callerSession = this.getMySession();
101
+ if (callerSession && target.includes("-")) {
102
+ const targetScope = target.slice(target.lastIndexOf("-") + 1);
103
+ const callerScope = callerSession.includes("-") ? callerSession.slice(callerSession.lastIndexOf("-") + 1) : callerSession;
104
+ if (targetScope !== callerScope) {
105
+ process.stderr.write(
106
+ `[tmux-transport] BLOCKED kill: ${callerSession} tried to kill ${target} (scope ${targetScope} \u2260 ${callerScope}). Session isolation enforced.
107
+ `
108
+ );
109
+ return;
110
+ }
111
+ }
100
112
  try {
101
113
  execFileSync("tmux", ["kill-session", "-t", target], QUIET);
102
114
  } catch {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EXE_AI_DIR
3
- } from "./chunk-TOWAZ5IV.js";
3
+ } from "./chunk-4GXRETYL.js";
4
4
 
5
5
  // src/lib/shard-manager.ts
6
6
  import path from "path";
@@ -2,7 +2,7 @@ import {
2
2
  connectEmbedDaemon,
3
3
  disconnectClient,
4
4
  embedViaClient
5
- } from "./chunk-W6SKR3HZ.js";
5
+ } from "./chunk-E2O7YYDS.js";
6
6
  import {
7
7
  EMBEDDING_DIM
8
8
  } from "./chunk-FXU7JOXK.js";