@askexenow/exe-os 0.9.260 → 0.9.262

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 (239) hide show
  1. package/dist/{active-agent-IGZXTTV4.js → active-agent-3YK6QV45.js} +4 -3
  2. package/dist/{active-agent-OYUXMTHS.js → active-agent-QTDTBHBS.js} +4 -3
  3. package/dist/{agentic-ontology-5WT23SLZ.js → agentic-ontology-BBC62LK2.js} +1 -1
  4. package/dist/{backfill-metadata-EG52U3GF.js → backfill-metadata-Z52CKWFN.js} +5 -4
  5. package/dist/{behaviors-2TZCFJLU.js → behaviors-RAIPSWGY.js} +4 -3
  6. package/dist/bin/agentic-ontology-backfill.js +6 -5
  7. package/dist/bin/agentic-reflection-backfill.js +7 -6
  8. package/dist/bin/agentic-semantic-label.js +6 -5
  9. package/dist/bin/backfill-conversations.js +5 -4
  10. package/dist/bin/backfill-responses.js +5 -4
  11. package/dist/bin/backfill-vectors.js +6 -5
  12. package/dist/bin/bulk-sync-postgres.js +7 -6
  13. package/dist/bin/cleanup-stale-review-tasks.js +10 -9
  14. package/dist/bin/cli.js +16 -16
  15. package/dist/bin/exe-agent-config.js +3 -2
  16. package/dist/bin/exe-agent.js +5 -4
  17. package/dist/bin/exe-assign.js +6 -5
  18. package/dist/bin/exe-boot.js +17 -16
  19. package/dist/bin/exe-call.js +5 -4
  20. package/dist/bin/exe-cloud.js +5 -4
  21. package/dist/bin/exe-dispatch.js +10 -9
  22. package/dist/bin/exe-doctor.js +1 -1
  23. package/dist/bin/exe-export-behaviors.js +8 -7
  24. package/dist/bin/exe-forget.js +7 -6
  25. package/dist/bin/exe-gateway.js +8 -7
  26. package/dist/bin/exe-heartbeat.js +10 -9
  27. package/dist/bin/exe-kill.js +13 -12
  28. package/dist/bin/exe-launch-agent.js +17 -16
  29. package/dist/bin/exe-new-employee.js +7 -6
  30. package/dist/bin/exe-pending-messages.js +11 -10
  31. package/dist/bin/exe-pending-notifications.js +10 -9
  32. package/dist/bin/exe-pending-reviews.js +10 -9
  33. package/dist/bin/exe-rename.js +5 -4
  34. package/dist/bin/exe-review.js +12 -11
  35. package/dist/bin/exe-search.js +6 -5
  36. package/dist/bin/exe-session-cleanup.js +15 -14
  37. package/dist/bin/exe-settings.js +5 -4
  38. package/dist/bin/exe-start-codex.js +12 -11
  39. package/dist/bin/exe-start-opencode.js +9 -8
  40. package/dist/bin/exe-status.js +11 -10
  41. package/dist/bin/exe-team.js +4 -3
  42. package/dist/bin/git-sweep.js +11 -10
  43. package/dist/bin/graph-backfill.js +5 -4
  44. package/dist/bin/graph-export.js +6 -5
  45. package/dist/bin/import-history.js +8 -7
  46. package/dist/bin/install.js +7 -6
  47. package/dist/bin/intercom-check.js +4 -4
  48. package/dist/bin/mcp-sessions.js +2 -2
  49. package/dist/bin/orchestration-metrics.js +5 -4
  50. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  51. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  52. package/dist/bin/scan-tasks.js +10 -9
  53. package/dist/bin/setup.js +1 -1
  54. package/dist/bin/shard-migrate.js +6 -5
  55. package/dist/{capacity-monitor-CTFWWTCR.js → capacity-monitor-JS3UHTSJ.js} +11 -10
  56. package/dist/{catchup-brief-AXA4DAQI.js → catchup-brief-QYHXH7X4.js} +12 -11
  57. package/dist/{chunk-ISL3NSVX.js → chunk-25NFDJ3N.js} +1 -1
  58. package/dist/chunk-2I23RPSI.js +14 -0
  59. package/dist/{chunk-FPXZY3FY.js → chunk-2WH32VJI.js} +1 -1
  60. package/dist/{chunk-N27CTUFU.js → chunk-33ZGDWSS.js} +1 -1
  61. package/dist/{chunk-J3YNCJ4A.js → chunk-3XNYEGA5.js} +1 -1
  62. package/dist/{chunk-HDWVXSGO.js → chunk-45W7EDXB.js} +1 -1
  63. package/dist/{chunk-BPZL5YOM.js → chunk-5KTO3LBQ.js} +1 -1
  64. package/dist/{chunk-ZKFTDL4M.js → chunk-6HVXFKP6.js} +1 -1
  65. package/dist/{chunk-NGQQRGLP.js → chunk-6OOAVH7Y.js} +2 -2
  66. package/dist/{chunk-PQHA6X6Y.js → chunk-6WT44S2W.js} +1 -1
  67. package/dist/{chunk-AQS2B3HC.js → chunk-6YHVX54O.js} +11 -11
  68. package/dist/{chunk-L5VPUOB6.js → chunk-A3T5KDD3.js} +1 -1
  69. package/dist/{chunk-IVSRRIRG.js → chunk-AZMKHVI5.js} +1 -1
  70. package/dist/{chunk-ZBDAFYDD.js → chunk-BJYXHSFN.js} +5 -5
  71. package/dist/{chunk-4VECWOUO.js → chunk-BTX453B2.js} +2 -2
  72. package/dist/{chunk-LRKJGSNH.js → chunk-C35HWJ65.js} +2 -2
  73. package/dist/{chunk-25JAXHON.js → chunk-C5SOAWDO.js} +1 -1
  74. package/dist/{chunk-V2UVWYHO.js → chunk-CRZWP3JB.js} +5 -5
  75. package/dist/{chunk-OCJ5GZKV.js → chunk-CTV755VI.js} +4 -4
  76. package/dist/{chunk-YMXXD2GW.js → chunk-EBCXL2Y2.js} +5 -0
  77. package/dist/{chunk-FUGZF7VR.js → chunk-F255GOZU.js} +1 -1
  78. package/dist/{chunk-IJ7R3MXE.js → chunk-F7FZ24KM.js} +3 -3
  79. package/dist/{chunk-4TYAHVDI.js → chunk-FIV5A6O2.js} +8 -8
  80. package/dist/{chunk-2PFNATXD.js → chunk-FO5FP2J3.js} +1 -1
  81. package/dist/{chunk-4FGTT26Q.js → chunk-IITNQWCX.js} +1 -1
  82. package/dist/{chunk-X2RKYKTP.js → chunk-IW3SDPTM.js} +1 -1
  83. package/dist/{chunk-TZPHTI5Q.js → chunk-J7LUMKFQ.js} +1 -1
  84. package/dist/{chunk-VDCPKJUQ.js → chunk-JTADPL6X.js} +1 -1
  85. package/dist/{chunk-SLF7JRLG.js → chunk-K6FHWGFL.js} +9 -9
  86. package/dist/{chunk-KSR2PNRW.js → chunk-KDQC7DGK.js} +2 -2
  87. package/dist/{chunk-GH4LVBQM.js → chunk-KEVATUGJ.js} +1 -1
  88. package/dist/{chunk-COKTAJUZ.js → chunk-KPVRGCOC.js} +1 -1
  89. package/dist/{chunk-BGEXTWGR.js → chunk-L5G37Y7S.js} +3 -3
  90. package/dist/{chunk-MKTEGZ37.js → chunk-L5RL4GH4.js} +3 -3
  91. package/dist/{chunk-N4ES27RI.js → chunk-LGBN2Z6M.js} +3 -3
  92. package/dist/{chunk-L3PY4NFQ.js → chunk-MV2T7Q3V.js} +1 -1
  93. package/dist/{chunk-6D2IZ5MB.js → chunk-N2CFR2OZ.js} +2 -2
  94. package/dist/{chunk-GIHMDOSK.js → chunk-O4D4DSNZ.js} +1 -1
  95. package/dist/{chunk-GB4FI66P.js → chunk-PIXFIUXC.js} +2 -2
  96. package/dist/{chunk-VLX6AHTD.js → chunk-PK7H6FFK.js} +8 -8
  97. package/dist/{chunk-M7PZFYHE.js → chunk-PKJFMRUG.js} +2 -2
  98. package/dist/{chunk-OSPS5N2I.js → chunk-PPKYYMTP.js} +1 -1
  99. package/dist/{chunk-DU64OESH.js → chunk-PWLX576L.js} +1 -1
  100. package/dist/{chunk-WVBZ3QBR.js → chunk-QQZMP6QL.js} +6 -1
  101. package/dist/{chunk-CXOX7TRG.js → chunk-QX4HTCYA.js} +1 -1
  102. package/dist/{chunk-R4EZGQWL.js → chunk-RGKPO6UP.js} +86 -86
  103. package/dist/{chunk-QYNFWFFH.js → chunk-RPELMUVE.js} +4 -4
  104. package/dist/{chunk-7UJRF4WF.js → chunk-RV46K5V7.js} +1 -1
  105. package/dist/{chunk-UOZ5KUNN.js → chunk-SJOPWCOX.js} +31 -2
  106. package/dist/{chunk-LVY74L2J.js → chunk-SVGP6QOL.js} +2 -2
  107. package/dist/{chunk-YY2BCIAP.js → chunk-TBX2AJT3.js} +2 -2
  108. package/dist/{chunk-T4NFOOPB.js → chunk-TVBOD2OK.js} +2 -2
  109. package/dist/{chunk-MPXLF7TA.js → chunk-UG5IYXJT.js} +1 -1
  110. package/dist/{chunk-T2EUNNUX.js → chunk-UJE2GS6O.js} +5 -5
  111. package/dist/{chunk-5LDTCWYX.js → chunk-UV4JFYSO.js} +10 -10
  112. package/dist/{chunk-JE4C74EE.js → chunk-VG3CIPWK.js} +4 -4
  113. package/dist/{chunk-PQQTSNXS.js → chunk-X57DHMWB.js} +3 -3
  114. package/dist/{chunk-57C3MZPQ.js → chunk-XPANTGOA.js} +2 -2
  115. package/dist/{chunk-GBR4MAAK.js → chunk-YG7PIB2R.js} +1 -1
  116. package/dist/{chunk-5JYCTIQD.js → chunk-YYDGDTAG.js} +1 -1
  117. package/dist/{chunk-VD676VIC.js → chunk-ZGCPEWFP.js} +4 -4
  118. package/dist/{co-activation-UNVL5JCP.js → co-activation-7XE74B7L.js} +3 -2
  119. package/dist/{co-occurrence-ETAVWYVE.js → co-occurrence-FLEGKZSX.js} +3 -2
  120. package/dist/{code-context-index-DCQYAYA2.js → code-context-index-Z7HB3UGH.js} +1 -1
  121. package/dist/{crdt-sync-AH7N6QOE.js → crdt-sync-YDQYEBQB.js} +1 -1
  122. package/dist/{crm-webhook-R6546T3Y.js → crm-webhook-Y5NDYNMO.js} +2 -2
  123. package/dist/{cto-delegation-gate-VB4TMZ3I.js → cto-delegation-gate-YQPV3UUU.js} +9 -8
  124. package/dist/{daemon-orchestration-YAJKIL6Q.js → daemon-orchestration-TKNBR574.js} +13 -12
  125. package/dist/{db-backup-2RG6VHT7.js → db-backup-ZFDOADMZ.js} +1 -1
  126. package/dist/{dreaming-WMBTSXGD.js → dreaming-JYALVJ25.js} +10 -9
  127. package/dist/{exe-drift-MQZGYHEN.js → exe-drift-KMIYM7LU.js} +4 -3
  128. package/dist/{exe-export-E4BDIHOC.js → exe-export-23XZY2H7.js} +6 -5
  129. package/dist/{exe-import-IWAD4HN6.js → exe-import-LDQHD2S4.js} +6 -5
  130. package/dist/{exe-key-L2RV7XJX.js → exe-key-K3HQLUYO.js} +8 -2
  131. package/dist/{exe-snapshot-IOGN4ARV.js → exe-snapshot-RBIGPTUU.js} +13 -12
  132. package/dist/{fast-db-init-GCY3F74H.js → fast-db-init-Q2B2YPUR.js} +1 -1
  133. package/dist/gateway/index.js +9 -8
  134. package/dist/{git-staleness-BQIFNZIU.js → git-staleness-DIQ7RU3N.js} +3 -2
  135. package/dist/{git-task-sweep-GSKS6WKR.js → git-task-sweep-JN4WJ66Y.js} +10 -9
  136. package/dist/{global-procedures-3DJUA5OX.js → global-procedures-JNJ4NWV5.js} +4 -3
  137. package/dist/{graph-auto-extract-2I44WRDY.js → graph-auto-extract-UYU2KFSY.js} +3 -2
  138. package/dist/hooks/bug-report-worker.js +12 -11
  139. package/dist/hooks/codex-stop-task-finalizer.js +12 -11
  140. package/dist/hooks/commit-complete.js +12 -11
  141. package/dist/hooks/error-recall.js +7 -6
  142. package/dist/hooks/exe-heartbeat-hook.js +4 -3
  143. package/dist/hooks/ingest.js +7 -6
  144. package/dist/hooks/instructions-loaded.js +5 -4
  145. package/dist/hooks/manifest.json +19 -19
  146. package/dist/hooks/notification.js +5 -4
  147. package/dist/hooks/post-compact.js +12 -11
  148. package/dist/hooks/post-tool-combined.js +6 -6
  149. package/dist/hooks/pre-compact.js +12 -11
  150. package/dist/hooks/pre-tool-use.js +15 -14
  151. package/dist/hooks/prompt-submit.js +22 -22
  152. package/dist/hooks/session-end.js +16 -15
  153. package/dist/hooks/session-start.js +12 -13
  154. package/dist/hooks/stop.js +15 -14
  155. package/dist/hooks/subagent-stop.js +11 -10
  156. package/dist/hooks/summary-worker.js +15 -14
  157. package/dist/index.js +18 -17
  158. package/dist/{installer-TCMPFSSP.js → installer-23YHWXNH.js} +6 -5
  159. package/dist/{installer-ZY2BKTEO.js → installer-64FY7VV4.js} +6 -5
  160. package/dist/{installer-6MQCAHUG.js → installer-LN7RDI6N.js} +6 -5
  161. package/dist/lib/cloud-sync.js +5 -4
  162. package/dist/lib/consolidation.js +6 -5
  163. package/dist/lib/database.js +3 -2
  164. package/dist/lib/db.js +3 -2
  165. package/dist/lib/employee-templates.js +5 -4
  166. package/dist/lib/employees.js +3 -2
  167. package/dist/lib/exe-daemon.js +56 -40
  168. package/dist/lib/hybrid-search.js +6 -5
  169. package/dist/lib/identity.js +3 -2
  170. package/dist/lib/messaging.js +10 -9
  171. package/dist/lib/reminders.js +4 -3
  172. package/dist/lib/schedules.js +6 -5
  173. package/dist/lib/session-registry.js +5 -4
  174. package/dist/lib/skill-learning.js +5 -4
  175. package/dist/lib/store.js +5 -4
  176. package/dist/lib/task-router.js +4 -3
  177. package/dist/lib/tasks.js +11 -10
  178. package/dist/lib/tmux-routing.js +9 -8
  179. package/dist/lib/token-spend.js +4 -3
  180. package/dist/mcp/register-tools.js +53 -52
  181. package/dist/mcp/server.js +54 -53
  182. package/dist/mcp/tools/complete-reminder.js +5 -4
  183. package/dist/mcp/tools/create-reminder.js +5 -4
  184. package/dist/mcp/tools/create-task.js +13 -12
  185. package/dist/mcp/tools/deactivate-behavior.js +6 -5
  186. package/dist/mcp/tools/list-reminders.js +5 -4
  187. package/dist/mcp/tools/list-tasks.js +13 -12
  188. package/dist/mcp/tools/send-message.js +12 -11
  189. package/dist/mcp/tools/update-task.js +12 -11
  190. package/dist/{mcp-http-config-VUDZ3D5D.js → mcp-http-config-FCZ2PEII.js} +4 -3
  191. package/dist/{memory-cards-ZOOPC2WF.js → memory-cards-TJZLRDWR.js} +3 -2
  192. package/dist/{memory-graph-extractor-RRQMUBMI.js → memory-graph-extractor-3ATFPJLO.js} +4 -3
  193. package/dist/{memory-poisoning-defense-UQMNLG6H.js → memory-poisoning-defense-LIC5NC4K.js} +3 -2
  194. package/dist/{memory-reflection-GSGXAGXV.js → memory-reflection-6MU7R3DN.js} +3 -2
  195. package/dist/{notifications-ZKGLZVCU.js → notifications-LZCKZCKO.js} +9 -8
  196. package/dist/{orchestration-events-7RMWC5SS.js → orchestration-events-UYG5H5H2.js} +4 -3
  197. package/dist/{orchestrator-A6MX2OHA.js → orchestrator-QZUORE32.js} +11 -10
  198. package/dist/{pipeline-router-6ZBYJD2U.js → pipeline-router-6FOAXJVU.js} +4 -3
  199. package/dist/{plan-limits-4XH4A7IA.js → plan-limits-4VH65ER2.js} +4 -3
  200. package/dist/{projection-worker-YKKBNQZT.js → projection-worker-ONHS43GB.js} +1 -1
  201. package/dist/{reranker-CE3XG56J.js → reranker-RPPWEE73.js} +1 -1
  202. package/dist/{review-polling-PK3CY4NI.js → review-polling-7T6563KJ.js} +10 -9
  203. package/dist/runtime/index.js +12 -11
  204. package/dist/{session-events-IYU6FYHH.js → session-events-ZFTVNZBL.js} +10 -9
  205. package/dist/{session-kill-telemetry-G2VV4CAH.js → session-kill-telemetry-25WZZQYL.js} +4 -3
  206. package/dist/{session-scope-DHTVH3D4.js → session-scope-F4OLNMZ2.js} +9 -8
  207. package/dist/{setup-wizard-IA5ISHQ2.js → setup-wizard-JDPINSTR.js} +1 -1
  208. package/dist/{shard-manager-VGA2TYHM.js → shard-manager-QP3SFEJV.js} +2 -1
  209. package/dist/{skill-refinement-6PBAFLWP.js → skill-refinement-7BM2GCAA.js} +3 -2
  210. package/dist/{steward-gate-EQV6CZKY.js → steward-gate-GQCGOIOX.js} +4 -3
  211. package/dist/{task-enforcement-2LS5DOXK.js → task-enforcement-74KNQ4IU.js} +9 -8
  212. package/dist/{task-scope-AKF3CSWO.js → task-scope-BAWS6CBW.js} +9 -8
  213. package/dist/{tasks-crud-KOIA5SAH.js → tasks-crud-FD5V35IK.js} +9 -8
  214. package/dist/{tasks-notify-7ZTE4ZQM.js → tasks-notify-CKJJLYJX.js} +10 -9
  215. package/dist/{tasks-review-VMMMAK2Y.js → tasks-review-GW3O3AMD.js} +9 -8
  216. package/dist/{telemetry-upload-YLW4NAUF.js → telemetry-upload-2KEEOMCA.js} +6 -5
  217. package/dist/{token-budget-NA4OLFNP.js → token-budget-OUGKW6MP.js} +3 -2
  218. package/dist/{tool-telemetry-OVI5KL4S.js → tool-telemetry-VMM5A5J5.js} +1 -1
  219. package/dist/tui/App.js +17 -16
  220. package/dist/{tui-data-5NT24CC5.js → tui-data-4FK3MUPG.js} +9 -8
  221. package/dist/{worker-gate-AQLJUQ5G.js → worker-gate-2TOOKLPC.js} +1 -1
  222. package/dist/{workflow-engine-TRGGUNIZ.js → workflow-engine-YRVJEBYW.js} +2 -2
  223. package/dist/{worktree-NK7GZNEA.js → worktree-6QLBISCO.js} +5 -4
  224. package/dist/{worktree-sweep-5XVZCH6A.js → worktree-sweep-IDXJ3WQM.js} +6 -5
  225. package/package.json +1 -1
  226. package/release-notes.json +26 -23
  227. /package/dist/{chunk-QUC27OCW.js → chunk-2DCXCU7M.js} +0 -0
  228. /package/dist/{chunk-EYLQRPHF.js → chunk-A5N6N7TD.js} +0 -0
  229. /package/dist/{chunk-WMZTSHNX.js → chunk-ACBEUQR2.js} +0 -0
  230. /package/dist/{chunk-H6QJT5O5.js → chunk-AU64ZSNH.js} +0 -0
  231. /package/dist/{chunk-J5CAYOJU.js → chunk-E7SHKUAE.js} +0 -0
  232. /package/dist/{chunk-RFJESVEL.js → chunk-GMUZHA5J.js} +0 -0
  233. /package/dist/{chunk-VJXVTH3Q.js → chunk-JBPOZ6LG.js} +0 -0
  234. /package/dist/{chunk-3GHTBVZO.js → chunk-JG76N7JE.js} +0 -0
  235. /package/dist/{chunk-2H3FVAN3.js → chunk-P2XNRKEL.js} +0 -0
  236. /package/dist/{chunk-UOOCGJUE.js → chunk-PNWAZ4EA.js} +0 -0
  237. /package/dist/{core-memory-VZFTGOFE.js → core-memory-DQGGTOZH.js} +0 -0
  238. /package/dist/{project-boot-7ZEIDWUG.js → project-boot-UNRIMZNN.js} +0 -0
  239. /package/dist/{wiki-acl-UCPOROPR.js → wiki-acl-INCE6DGN.js} +0 -0
@@ -1,35 +1,36 @@
1
1
  import {
2
2
  lightweightSearch
3
- } from "./chunk-SLF7JRLG.js";
4
- import "./chunk-AQS2B3HC.js";
3
+ } from "./chunk-K6FHWGFL.js";
4
+ import "./chunk-6YHVX54O.js";
5
5
  import "./chunk-CHCA3ZM2.js";
6
- import "./chunk-2H3FVAN3.js";
6
+ import "./chunk-P2XNRKEL.js";
7
7
  import "./chunk-Y25OJWOQ.js";
8
8
  import {
9
9
  sessionScopeFilter,
10
10
  strictSessionScopeFilter
11
- } from "./chunk-5LDTCWYX.js";
12
- import "./chunk-DU64OESH.js";
11
+ } from "./chunk-UV4JFYSO.js";
12
+ import "./chunk-PWLX576L.js";
13
13
  import "./chunk-5CHYEKMH.js";
14
14
  import "./chunk-4JERP7NT.js";
15
- import "./chunk-J3YNCJ4A.js";
15
+ import "./chunk-3XNYEGA5.js";
16
16
  import "./chunk-MVW62NIZ.js";
17
17
  import "./chunk-OYNKIAVW.js";
18
18
  import "./chunk-CX6GL3ZJ.js";
19
- import "./chunk-VDCPKJUQ.js";
19
+ import "./chunk-JTADPL6X.js";
20
20
  import "./chunk-XJUUWHVN.js";
21
21
  import "./chunk-NGP6LSV2.js";
22
- import "./chunk-L5VPUOB6.js";
22
+ import "./chunk-A3T5KDD3.js";
23
23
  import "./chunk-CVYC6DUW.js";
24
24
  import "./chunk-OPU3NYOO.js";
25
25
  import "./chunk-GJV3WDWM.js";
26
26
  import "./chunk-MP2AFCGL.js";
27
- import "./chunk-ISL3NSVX.js";
27
+ import "./chunk-25NFDJ3N.js";
28
28
  import "./chunk-HYZV25LY.js";
29
29
  import {
30
30
  getClient
31
- } from "./chunk-WVBZ3QBR.js";
32
- import "./chunk-WMZTSHNX.js";
31
+ } from "./chunk-QQZMP6QL.js";
32
+ import "./chunk-2I23RPSI.js";
33
+ import "./chunk-ACBEUQR2.js";
33
34
  import "./chunk-FXU7JOXK.js";
34
35
  import "./chunk-K333WOW4.js";
35
36
  import "./chunk-MOZ2YQ54.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadEmployees
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/agent-symlinks.ts
6
6
  import os from "os";
@@ -0,0 +1,14 @@
1
+ // src/lib/db-path-guard.ts
2
+ function assertValidDbPath(dbPath, caller) {
3
+ if (typeof dbPath !== "string" || dbPath.trim().length === 0) {
4
+ throw new Error(`${caller}: dbPath is required; refusing to open SQLite at an empty/undefined path`);
5
+ }
6
+ const trimmed = dbPath.trim();
7
+ if (trimmed === "undefined" || trimmed === "null" || trimmed === "file:undefined" || trimmed === "file:null") {
8
+ throw new Error(`${caller}: dbPath is ${JSON.stringify(trimmed)}; refusing to create stray SQLite files`);
9
+ }
10
+ }
11
+
12
+ export {
13
+ assertValidDbPath
14
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getGlobalProceduresBlock
3
- } from "./chunk-5JYCTIQD.js";
3
+ } from "./chunk-YYDGDTAG.js";
4
4
 
5
5
  // src/lib/employee-templates.ts
6
6
  var BASE_OPERATING_PROCEDURES = `
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.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
  recordOrchestrationEventBestEffort
3
- } from "./chunk-VDCPKJUQ.js";
3
+ } from "./chunk-JTADPL6X.js";
4
4
 
5
5
  // src/lib/session-registry.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -111,7 +111,7 @@ function releaseBackfillLock() {
111
111
  }
112
112
  async function getTaskAwareCapacity() {
113
113
  const { getClient } = await import("./lib/database.js");
114
- const { sessionScopeFilter } = await import("./task-scope-AKF3CSWO.js");
114
+ const { sessionScopeFilter } = await import("./task-scope-BAWS6CBW.js");
115
115
  const client = getClient();
116
116
  const scope = sessionScopeFilter();
117
117
  const result = await client.execute({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  completeReminder
3
- } from "./chunk-TZPHTI5Q.js";
3
+ } from "./chunk-J7LUMKFQ.js";
4
4
 
5
5
  // src/mcp/tools/complete-reminder.ts
6
6
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listReminders
3
- } from "./chunk-TZPHTI5Q.js";
3
+ } from "./chunk-J7LUMKFQ.js";
4
4
 
5
5
  // src/mcp/tools/list-reminders.ts
6
6
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  storeBehavior
3
- } from "./chunk-25JAXHON.js";
3
+ } from "./chunk-C5SOAWDO.js";
4
4
  import {
5
5
  getClient
6
- } from "./chunk-WVBZ3QBR.js";
6
+ } from "./chunk-QQZMP6QL.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-VXIMSRTO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isCoordinatorRole
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/task-router.ts
6
6
  import { randomUUID } from "crypto";
@@ -6,7 +6,7 @@ import {
6
6
  findScopedDuplicate,
7
7
  governMemoryRecord,
8
8
  schedulePostWriteMemoryHygiene
9
- } from "./chunk-2H3FVAN3.js";
9
+ } from "./chunk-P2XNRKEL.js";
10
10
  import {
11
11
  orgBus
12
12
  } from "./chunk-MP2AFCGL.js";
@@ -15,7 +15,7 @@ import {
15
15
  ensureSchema,
16
16
  getClient,
17
17
  initTurso
18
- } from "./chunk-WVBZ3QBR.js";
18
+ } from "./chunk-QQZMP6QL.js";
19
19
  import {
20
20
  EMBEDDING_DIM
21
21
  } from "./chunk-FXU7JOXK.js";
@@ -65,7 +65,7 @@ function recordShardFailure(project, error) {
65
65
  `[store] Shard circuit OPEN for "${project}" after ${state.failures} consecutive failures. Will retry in ${SHARD_CB_COOLDOWN_MS / 6e4}min. Last error: ${error}
66
66
  `
67
67
  );
68
- void import("./orchestration-events-7RMWC5SS.js").then(({ recordOrchestrationEventBestEffort }) => {
68
+ void import("./orchestration-events-UYG5H5H2.js").then(({ recordOrchestrationEventBestEffort }) => {
69
69
  recordOrchestrationEventBestEffort({
70
70
  eventType: "shard.circuit_open",
71
71
  source: "store.recordShardFailure",
@@ -149,7 +149,7 @@ async function initStore(options) {
149
149
  if (!options?.lightweight) {
150
150
  try {
151
151
  if (process.env.EXE_DISABLE_SHARDING !== "1") {
152
- const { initShardManager } = await import("./shard-manager-VGA2TYHM.js");
152
+ const { initShardManager } = await import("./shard-manager-QP3SFEJV.js");
153
153
  initShardManager(hexKey);
154
154
  }
155
155
  } catch (e) {
@@ -162,7 +162,7 @@ async function initStore(options) {
162
162
  );
163
163
  _nextVersion = (Number(vResult.rows[0]?.max_v) || 0) + 1;
164
164
  try {
165
- const { loadGlobalProcedures } = await import("./global-procedures-3DJUA5OX.js");
165
+ const { loadGlobalProcedures } = await import("./global-procedures-JNJ4NWV5.js");
166
166
  await loadGlobalProcedures();
167
167
  } catch (e) {
168
168
  logStoreWarn("catch", e);
@@ -290,7 +290,7 @@ async function writeMemory(record) {
290
290
  founder_id: record.founder_id ?? null
291
291
  };
292
292
  try {
293
- const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-UQMNLG6H.js");
293
+ const { checkMemoryPoisoning } = await import("./memory-poisoning-defense-LIC5NC4K.js");
294
294
  const poisonResult = await checkMemoryPoisoning({
295
295
  memoryId: dbRow.id,
296
296
  vector: Array.isArray(dbRow.vector) ? dbRow.vector : void 0,
@@ -478,19 +478,19 @@ async function flushBatch() {
478
478
  }
479
479
  _nextVersion = baseVersion;
480
480
  try {
481
- const { insertMemoryCardsForBatch } = await import("./memory-cards-ZOOPC2WF.js");
481
+ const { insertMemoryCardsForBatch } = await import("./memory-cards-TJZLRDWR.js");
482
482
  await insertMemoryCardsForBatch(batch);
483
483
  } catch (e) {
484
484
  logStoreWarn("catch", e);
485
485
  }
486
486
  try {
487
- const { insertOntologyForBatch } = await import("./agentic-ontology-5WT23SLZ.js");
487
+ const { insertOntologyForBatch } = await import("./agentic-ontology-BBC62LK2.js");
488
488
  await insertOntologyForBatch(batch);
489
489
  } catch (e) {
490
490
  logStoreWarn("catch", e);
491
491
  }
492
492
  try {
493
- const { extractGraphForBatch } = await import("./memory-graph-extractor-RRQMUBMI.js");
493
+ const { extractGraphForBatch } = await import("./memory-graph-extractor-3ATFPJLO.js");
494
494
  await extractGraphForBatch(batch);
495
495
  } catch (e) {
496
496
  logStoreWarn("catch", e);
@@ -498,7 +498,7 @@ async function flushBatch() {
498
498
  schedulePostWriteMemoryHygiene(batch.map((row) => row.id));
499
499
  _pendingRecords.splice(0, batch.length);
500
500
  try {
501
- const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-VGA2TYHM.js");
501
+ const { isShardingEnabled, getReadyShardClient } = await import("./shard-manager-QP3SFEJV.js");
502
502
  if (process.env.EXE_DISABLE_SHARDING !== "1" && isShardingEnabled()) {
503
503
  const byProject = /* @__PURE__ */ new Map();
504
504
  let skippedUnknown = 0;
@@ -575,7 +575,7 @@ function buildRawVisibilityFilter(options, columnPrefix) {
575
575
  async function searchMemories(queryVector, agentId, options) {
576
576
  let client;
577
577
  try {
578
- const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-VGA2TYHM.js");
578
+ const { isShardingEnabled, shardExists, getReadyShardClient } = await import("./shard-manager-QP3SFEJV.js");
579
579
  if (isShardingEnabled() && options?.projectName && shardExists(options.projectName)) {
580
580
  client = await getReadyShardClient(options.projectName);
581
581
  } else {
@@ -3,7 +3,7 @@ import {
3
3
  getClient,
4
4
  isInitialized,
5
5
  loadEmployees
6
- } from "./chunk-WVBZ3QBR.js";
6
+ } from "./chunk-QQZMP6QL.js";
7
7
  import {
8
8
  PLAN_LIMITS,
9
9
  checkLicense,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  stableId
4
- } from "./chunk-EYLQRPHF.js";
4
+ } from "./chunk-A5N6N7TD.js";
5
5
 
6
6
  // src/lib/reflection-checkpoints.ts
7
7
  function parsePayload(payload) {
@@ -589,7 +589,7 @@ function auditHookOwnership() {
589
589
  }
590
590
  async function auditShards() {
591
591
  try {
592
- const { auditShardHealth } = await import("./shard-manager-VGA2TYHM.js");
592
+ const { auditShardHealth } = await import("./shard-manager-QP3SFEJV.js");
593
593
  const report = await auditShardHealth();
594
594
  return {
595
595
  total: report.total,
@@ -859,7 +859,7 @@ function formatReport(report, flags) {
859
859
  return lines.join("\n");
860
860
  }
861
861
  async function fixNullVectors() {
862
- const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-AQLJUQ5G.js");
862
+ const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-2TOOKLPC.js");
863
863
  if (!tryAcquireWorkerSlot()) {
864
864
  process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
865
865
  await new Promise((r) => setTimeout(r, 5e3));
@@ -943,7 +943,7 @@ async function fixBloated(client, bloated, dryRun) {
943
943
  return chunksCreated;
944
944
  }
945
945
  async function fixShards(dryRun) {
946
- const { auditShardHealth } = await import("./shard-manager-VGA2TYHM.js");
946
+ const { auditShardHealth } = await import("./shard-manager-QP3SFEJV.js");
947
947
  const report = await auditShardHealth({ repair: true, dryRun });
948
948
  return {
949
949
  total: report.total,
@@ -982,7 +982,7 @@ function splitAtSentences(text, maxChunkSize) {
982
982
  }
983
983
  async function main(argv = process.argv.slice(2)) {
984
984
  const flags = parseFlags(argv);
985
- const { fastDbInit } = await import("./fast-db-init-GCY3F74H.js");
985
+ const { fastDbInit } = await import("./fast-db-init-Q2B2YPUR.js");
986
986
  const client = await fastDbInit();
987
987
  const report = await runAudit(client, flags);
988
988
  console.log(formatReport(report, flags));
@@ -993,7 +993,7 @@ ${mode} Applying repairs...
993
993
  `);
994
994
  if (!flags.dryRun) {
995
995
  try {
996
- const { createBackup } = await import("./db-backup-2RG6VHT7.js");
996
+ const { createBackup } = await import("./db-backup-ZFDOADMZ.js");
997
997
  const backupPath = await createBackup("pre-fix");
998
998
  if (backupPath) {
999
999
  console.log(` Backup created: ${backupPath.split("/").pop()}`);
@@ -2,10 +2,10 @@ import {
2
2
  listWorkflowDefinitions,
3
3
  runWorkflow,
4
4
  startWorkflow
5
- } from "./chunk-2PFNATXD.js";
5
+ } from "./chunk-FO5FP2J3.js";
6
6
  import {
7
7
  ingest
8
- } from "./chunk-X2RKYKTP.js";
8
+ } from "./chunk-IW3SDPTM.js";
9
9
  import {
10
10
  initCRMBridge
11
11
  } from "./chunk-ONKIWA3R.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionScopeFilter
3
- } from "./chunk-5LDTCWYX.js";
3
+ } from "./chunk-UV4JFYSO.js";
4
4
 
5
5
  // src/lib/git-task-sweep.ts
6
6
  import { execSync } from "child_process";
@@ -178,7 +178,7 @@ async function sweepTasks(projectName, options = {}) {
178
178
  }
179
179
  if (!dryRun) {
180
180
  try {
181
- const { updateTaskStatus } = await import("./tasks-crud-KOIA5SAH.js");
181
+ const { updateTaskStatus } = await import("./tasks-crud-FD5V35IK.js");
182
182
  await updateTaskStatus({
183
183
  taskId: task.id,
184
184
  status: "needs_review",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/behaviors.ts
6
6
  import crypto from "crypto";
@@ -2,7 +2,7 @@ import {
2
2
  dispatchTaskToEmployee,
3
3
  markTaskNotificationsRead,
4
4
  notifyTaskDone
5
- } from "./chunk-OCJ5GZKV.js";
5
+ } from "./chunk-CTV755VI.js";
6
6
  import {
7
7
  cleanupReviewFile,
8
8
  createTaskCore,
@@ -11,7 +11,7 @@ import {
11
11
  sessionScopeFilter,
12
12
  updateTaskStatus,
13
13
  writeNotification
14
- } from "./chunk-5LDTCWYX.js";
14
+ } from "./chunk-UV4JFYSO.js";
15
15
  import {
16
16
  orgBus
17
17
  } from "./chunk-MP2AFCGL.js";
@@ -19,7 +19,7 @@ import {
19
19
  getClient,
20
20
  getCoordinatorName,
21
21
  isCoordinatorName
22
- } from "./chunk-WVBZ3QBR.js";
22
+ } from "./chunk-QQZMP6QL.js";
23
23
  import {
24
24
  EXE_AI_DIR
25
25
  } from "./chunk-VXIMSRTO.js";
@@ -61,7 +61,7 @@ async function cascadeUnblock(taskId, baseDir, now) {
61
61
  }
62
62
  if (unblockedRows.rows.length > 0 && !process.env.VITEST) {
63
63
  try {
64
- const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-7ZTE4ZQM.js");
64
+ const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-CKJJLYJX.js");
65
65
  const dispatched = /* @__PURE__ */ new Set();
66
66
  for (const ur of unblockedRows.rows) {
67
67
  const assignee = String(ur.assigned_to);
@@ -330,7 +330,7 @@ async function updateTask(input) {
330
330
  await markTaskNotificationsRead(taskFile);
331
331
  if (input.status === "needs_review" && !isCoordinator) {
332
332
  try {
333
- const { writeNotification: writeNotification2 } = await import("./notifications-ZKGLZVCU.js");
333
+ const { writeNotification: writeNotification2 } = await import("./notifications-LZCKZCKO.js");
334
334
  await writeNotification2({
335
335
  agentId: String(row.assigned_to),
336
336
  agentRole: String(row.assigned_to),
@@ -5,13 +5,13 @@ import {
5
5
  notifyParentExe,
6
6
  resolveExeSession,
7
7
  sendIntercom
8
- } from "./chunk-5LDTCWYX.js";
8
+ } from "./chunk-UV4JFYSO.js";
9
9
  import {
10
10
  getTransport
11
11
  } from "./chunk-MVW62NIZ.js";
12
12
  import {
13
13
  recordOrchestrationEventBestEffort
14
- } from "./chunk-VDCPKJUQ.js";
14
+ } from "./chunk-JTADPL6X.js";
15
15
  import {
16
16
  getAgentRuntime
17
17
  } from "./chunk-XJUUWHVN.js";
@@ -22,7 +22,7 @@ import {
22
22
  isCoordinatorName,
23
23
  isMultiInstance,
24
24
  shouldAutoInstance
25
- } from "./chunk-WVBZ3QBR.js";
25
+ } from "./chunk-QQZMP6QL.js";
26
26
 
27
27
  // src/lib/tasks-notify.ts
28
28
  var VERIFY_DELAY_MS = 1e4;
@@ -68,7 +68,7 @@ async function dispatchTaskToEmployee(input) {
68
68
  let crossProject = false;
69
69
  if (input.projectName) {
70
70
  try {
71
- const { assertSessionScope } = await import("./session-scope-DHTVH3D4.js");
71
+ const { assertSessionScope } = await import("./session-scope-F4OLNMZ2.js");
72
72
  const check = assertSessionScope("dispatch_task", input.projectName);
73
73
  if (check.reason === "cross_session_denied") {
74
74
  crossProject = true;
@@ -1,3 +1,6 @@
1
+ import {
2
+ assertValidDbPath
3
+ } from "./chunk-2I23RPSI.js";
1
4
  import {
2
5
  EXE_AI_DIR
3
6
  } from "./chunk-VXIMSRTO.js";
@@ -51,6 +54,7 @@ async function validateEncryptionKey() {
51
54
  }
52
55
  for (const shardFile of existingShards.slice(0, 3)) {
53
56
  const dbPath = path.join(SHARDS_DIR, shardFile);
57
+ assertValidDbPath(dbPath, "shard-manager validateEncryptionKey");
54
58
  const testClient = createClient({ url: `file:${dbPath}`, encryptionKey: _encryptionKey });
55
59
  try {
56
60
  await testClient.execute("SELECT COUNT(*) FROM sqlite_schema");
@@ -102,6 +106,7 @@ function getShardClient(projectName) {
102
106
  evictLRU();
103
107
  }
104
108
  const dbPath = path.join(SHARDS_DIR, `${safeName}.db`);
109
+ assertValidDbPath(dbPath, "shard-manager getShardClient");
105
110
  const client = createClient({
106
111
  url: `file:${dbPath}`,
107
112
  encryptionKey: _encryptionKey
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/token-spend.ts
6
6
  import { readdir, stat } from "fs/promises";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  extractMemoryGraph
3
- } from "./chunk-M7PZFYHE.js";
3
+ } from "./chunk-PKJFMRUG.js";
4
4
  import {
5
5
  flushBatch,
6
6
  writeMemory
7
- } from "./chunk-AQS2B3HC.js";
7
+ } from "./chunk-6YHVX54O.js";
8
8
  import {
9
9
  extractKeywords
10
10
  } from "./chunk-CHCA3ZM2.js";
11
11
  import {
12
12
  getActiveAgent
13
- } from "./chunk-GBR4MAAK.js";
13
+ } from "./chunk-YG7PIB2R.js";
14
14
 
15
15
  // src/mcp/tools/import-conversations.ts
16
16
  import { z } from "zod";
@@ -3,30 +3,30 @@ import {
3
3
  } from "./chunk-MLXJ5EZG.js";
4
4
  import {
5
5
  createTask
6
- } from "./chunk-V2UVWYHO.js";
6
+ } from "./chunk-CRZWP3JB.js";
7
7
  import {
8
8
  getActiveAgent
9
- } from "./chunk-GBR4MAAK.js";
9
+ } from "./chunk-YG7PIB2R.js";
10
10
  import {
11
11
  ensureEmployee,
12
12
  logTaskDispatch,
13
13
  resolveExeSession
14
- } from "./chunk-5LDTCWYX.js";
14
+ } from "./chunk-UV4JFYSO.js";
15
15
  import {
16
16
  recordOrchestrationEventBestEffort
17
- } from "./chunk-VDCPKJUQ.js";
17
+ } from "./chunk-JTADPL6X.js";
18
18
  import {
19
19
  getAgentRuntime
20
20
  } from "./chunk-XJUUWHVN.js";
21
21
  import {
22
22
  getLicenseSync
23
- } from "./chunk-L5VPUOB6.js";
23
+ } from "./chunk-A3T5KDD3.js";
24
24
  import {
25
25
  getAgentContext
26
26
  } from "./chunk-GJV3WDWM.js";
27
27
  import {
28
28
  isCoordinatorName
29
- } from "./chunk-WVBZ3QBR.js";
29
+ } from "./chunk-QQZMP6QL.js";
30
30
 
31
31
  // src/mcp/tools/create-task.ts
32
32
  import { z } from "zod";
@@ -275,7 +275,7 @@ function registerCreateTask(server) {
275
275
  session_scope: sessionScope,
276
276
  created_at: (/* @__PURE__ */ new Date()).toISOString()
277
277
  }), "utf-8");
278
- const { recordOrchestrationEventBestEffort: recordOE } = await import("./orchestration-events-7RMWC5SS.js");
278
+ const { recordOrchestrationEventBestEffort: recordOE } = await import("./orchestration-events-UYG5H5H2.js");
279
279
  recordOE({
280
280
  eventType: "signal.created",
281
281
  source: "create-task.mcp",
@@ -307,7 +307,7 @@ function registerCreateTask(server) {
307
307
  let projectConflictOpts = {};
308
308
  try {
309
309
  const { getClient } = await import("./lib/database.js");
310
- const { sessionScopeFilter } = await import("./task-scope-AKF3CSWO.js");
310
+ const { sessionScopeFilter } = await import("./task-scope-BAWS6CBW.js");
311
311
  const client = getClient();
312
312
  const scope = sessionScopeFilter(task.sessionScope || callerRoot || exeSession || null);
313
313
  const existing = await client.execute({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeAction,
3
3
  substituteTemplate
4
- } from "./chunk-3GHTBVZO.js";
4
+ } from "./chunk-JG76N7JE.js";
5
5
 
6
6
  // src/automation/workflow-engine.ts
7
7
  import { randomUUID } from "crypto";
@@ -6,7 +6,7 @@ import {
6
6
  getIdentity,
7
7
  listIdentities,
8
8
  updateIdentity
9
- } from "./chunk-WVBZ3QBR.js";
9
+ } from "./chunk-QQZMP6QL.js";
10
10
  import {
11
11
  atomicWriteJsonSync
12
12
  } from "./chunk-LYH5HE24.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/pipeline-router.ts
6
6
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/reminders.ts
6
6
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "./chunk-WVBZ3QBR.js";
3
+ } from "./chunk-QQZMP6QL.js";
4
4
 
5
5
  // src/lib/orchestration-events.ts
6
6
  import crypto from "crypto";
@@ -3,10 +3,10 @@ import {
3
3
  buildRawVisibilityFilter,
4
4
  buildWikiScopeFilter,
5
5
  searchMemories
6
- } from "./chunk-AQS2B3HC.js";
6
+ } from "./chunk-6YHVX54O.js";
7
7
  import {
8
8
  getClient
9
- } from "./chunk-WVBZ3QBR.js";
9
+ } from "./chunk-QQZMP6QL.js";
10
10
 
11
11
  // src/lib/hybrid-search.ts
12
12
  var RRF_K = 60;
@@ -288,7 +288,7 @@ async function hybridSearch(queryText, agentId, options) {
288
288
  let rerankerAvailable = false;
289
289
  if (process.env.EXE_IS_DAEMON === "1") {
290
290
  try {
291
- const { isRerankerAvailable } = await import("./reranker-CE3XG56J.js");
291
+ const { isRerankerAvailable } = await import("./reranker-RPPWEE73.js");
292
292
  rerankerAvailable = isRerankerAvailable();
293
293
  } catch {
294
294
  }
@@ -343,7 +343,7 @@ async function hybridSearch(queryText, agentId, options) {
343
343
  ]).catch(() => []),
344
344
  includeStructuredCards ? (async () => {
345
345
  try {
346
- const { searchMemoryCards } = await import("./memory-cards-ZOOPC2WF.js");
346
+ const { searchMemoryCards } = await import("./memory-cards-TJZLRDWR.js");
347
347
  return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
348
348
  } catch {
349
349
  return [];
@@ -352,7 +352,7 @@ async function hybridSearch(queryText, agentId, options) {
352
352
  // Reflection insights: patterns, contradictions, summaries across sessions
353
353
  includeStructuredCards ? (async () => {
354
354
  try {
355
- const { searchReflections } = await import("./memory-reflection-GSGXAGXV.js");
355
+ const { searchReflections } = await import("./memory-reflection-6MU7R3DN.js");
356
356
  const insights = await searchReflections(effectiveQuery, agentId, 5);
357
357
  return insights.map((ins) => ({
358
358
  id: ins.id,
@@ -452,7 +452,7 @@ async function hybridSearch(queryText, agentId, options) {
452
452
  try {
453
453
  let rerankedRecords;
454
454
  if (graphContextMap.size > 0) {
455
- const { rerankWithContext } = await import("./reranker-CE3XG56J.js");
455
+ const { rerankWithContext } = await import("./reranker-RPPWEE73.js");
456
456
  const candidates = merged.map((m) => ({
457
457
  text: m.raw_text,
458
458
  context: graphContextMap.get(m.id)
@@ -460,7 +460,7 @@ async function hybridSearch(queryText, agentId, options) {
460
460
  const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
461
461
  rerankedRecords = scored.map((s) => merged[s.index]);
462
462
  } else {
463
- const { rerank } = await import("./reranker-CE3XG56J.js");
463
+ const { rerank } = await import("./reranker-RPPWEE73.js");
464
464
  rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
465
465
  }
466
466
  if (rerankedRecords.length > 0) {
@@ -785,7 +785,7 @@ async function lightweightSearch(queryText, agentId, options) {
785
785
  }
786
786
  if (results.length >= 2) {
787
787
  try {
788
- const { recordCoActivations } = await import("./co-activation-UNVL5JCP.js");
788
+ const { recordCoActivations } = await import("./co-activation-7XE74B7L.js");
789
789
  const ids = results.slice(0, 10).map((r) => r.id);
790
790
  void recordCoActivations(ids);
791
791
  } catch {
@@ -793,7 +793,7 @@ async function lightweightSearch(queryText, agentId, options) {
793
793
  }
794
794
  if (options?.includeStructuredCards !== true) return results;
795
795
  try {
796
- const { searchMemoryCards } = await import("./memory-cards-ZOOPC2WF.js");
796
+ const { searchMemoryCards } = await import("./memory-cards-TJZLRDWR.js");
797
797
  const cardResults = await searchMemoryCards(queryText, agentId, options);
798
798
  if (cardResults.length > 0) {
799
799
  return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 0.85]);