@cortexkit/opencode-magic-context 0.49.16 → 0.49.18

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 (235) hide show
  1. package/dist/auto-search-worker.js +76 -63
  2. package/dist/chunk-embedding-write-worker.js +11 -11
  3. package/dist/{compaction-marker-candidates-v5c6997n.js → compaction-marker-candidates-n4krhat4.js} +2 -2
  4. package/dist/compaction-marker-candidates-worker.js +2 -2
  5. package/dist/config/schema/magic-context.d.ts +394 -394
  6. package/dist/{conflict-warning-hook-znry4j76.js → conflict-warning-hook-4pmz879v.js} +5 -5
  7. package/dist/{context-3znk23va.js → context-m897gfp9.js} +304 -145
  8. package/dist/{embedding-backfill-q4n8dend.js → embedding-backfill-fmz50tsy.js} +11 -11
  9. package/dist/embedding-worker-process.js +1 -1
  10. package/dist/embedding-worker.js +4 -4
  11. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +1 -1
  12. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  13. package/dist/features/magic-context/git-commits/indexer.d.ts.map +1 -1
  14. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  15. package/dist/features/magic-context/memory/project-identity-cache.d.ts +2 -0
  16. package/dist/features/magic-context/memory/project-identity-cache.d.ts.map +1 -1
  17. package/dist/features/magic-context/message-index-async.d.ts +1 -1
  18. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  19. package/dist/features/magic-context/message-index.d.ts +5 -0
  20. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  21. package/dist/features/magic-context/search.d.ts +6 -1
  22. package/dist/features/magic-context/search.d.ts.map +1 -1
  23. package/dist/features/magic-context/storage-host-instruction-retention.d.ts +11 -0
  24. package/dist/features/magic-context/storage-host-instruction-retention.d.ts.map +1 -0
  25. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  26. package/dist/features/magic-context/storage-meta-shared.d.ts +2 -2
  27. package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
  28. package/dist/features/magic-context/storage-session-tables.d.ts +9 -1
  29. package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/auto-search-deadline.d.ts +2 -1
  32. package/dist/hooks/magic-context/auto-search-deadline.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/auto-search-hint.d.ts +3 -0
  34. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  35. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  36. package/dist/hooks/magic-context/auto-search-worker-client.d.ts +10 -2
  37. package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
  38. package/dist/hooks/magic-context/cache-busting-signals.d.ts +22 -1
  39. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  40. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +2 -0
  41. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  42. package/dist/hooks/magic-context/compartment-trigger.d.ts +4 -2
  43. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  44. package/dist/hooks/magic-context/file-token-coverage.d.ts +11 -0
  45. package/dist/hooks/magic-context/file-token-coverage.d.ts.map +1 -0
  46. package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +9 -0
  47. package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
  48. package/dist/hooks/magic-context/historian-host-runner.d.ts.map +1 -1
  49. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  50. package/dist/hooks/magic-context/host-served-rows.d.ts +25 -0
  51. package/dist/hooks/magic-context/host-served-rows.d.ts.map +1 -1
  52. package/dist/hooks/magic-context/inject-compartments.d.ts +7 -1
  53. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  54. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
  55. package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -1
  56. package/dist/hooks/magic-context/lkg-slot.d.ts +1 -1
  57. package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
  58. package/dist/hooks/magic-context/pass-outcome.d.ts +2 -0
  59. package/dist/hooks/magic-context/pass-outcome.d.ts.map +1 -1
  60. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +2 -1
  61. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  62. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  63. package/dist/hooks/magic-context/signed-thinking-hold.d.ts +59 -0
  64. package/dist/hooks/magic-context/signed-thinking-hold.d.ts.map +1 -0
  65. package/dist/hooks/magic-context/system-prompt-diagnostics.d.ts +8 -0
  66. package/dist/hooks/magic-context/system-prompt-diagnostics.d.ts.map +1 -0
  67. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  68. package/dist/hooks/magic-context/tag-content-primitives.d.ts.map +1 -1
  69. package/dist/hooks/magic-context/tag-messages.d.ts +6 -1
  70. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  71. package/dist/hooks/magic-context/todo-view.d.ts +2 -2
  72. package/dist/hooks/magic-context/tool-drop-target.d.ts +3 -2
  73. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
  74. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +6 -0
  75. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  76. package/dist/hooks/magic-context/transform-context-state.d.ts +19 -0
  77. package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
  78. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +19 -0
  79. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  80. package/dist/hooks/magic-context/transform-stage-logger.d.ts +3 -0
  81. package/dist/hooks/magic-context/transform-stage-logger.d.ts.map +1 -1
  82. package/dist/hooks/magic-context/transform.d.ts +1 -0
  83. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  84. package/dist/{index-9nkg2dzk.js → index-24fezq97.js} +3 -3
  85. package/dist/{index-v9asb16b.js → index-24jbw52d.js} +5 -5
  86. package/dist/{index-a8bvhwqs.js → index-2vxtcb95.js} +32 -3
  87. package/dist/{index-f71thw8j.js → index-4s3t0nd0.js} +1 -1
  88. package/dist/{index-6a6dq53h.js → index-6s5941tm.js} +5 -5
  89. package/dist/{index-fkx2qnvw.js → index-6x57ar45.js} +2 -2
  90. package/dist/{index-ek1yxvvz.js → index-936py2wm.js} +361 -70
  91. package/dist/{index-dqe8pq4x.js → index-a6mc0v4d.js} +6 -3
  92. package/dist/{index-hehkf6zm.js → index-b5vqckbw.js} +12 -6
  93. package/dist/{v2/server-wafzvyhg.js → index-beht37jy.js} +8 -0
  94. package/dist/{index-7b2cfmaz.js → index-bjcnntmz.js} +2 -2
  95. package/dist/{index-hqkczed7.js → index-c5pytzne.js} +22 -2
  96. package/dist/{index-nd7m2a5a.js → index-cf74k5ak.js} +27 -5
  97. package/dist/{index-kn4t1haw.js → index-e4xv8890.js} +531 -253
  98. package/dist/{index-cj9g0j7a.js → index-fgncb0ng.js} +7 -7
  99. package/dist/{index-5mwk1nek.js → index-jn12fvvh.js} +1 -1
  100. package/dist/{index-n6m03s3n.js → index-ke416mdc.js} +1 -1
  101. package/dist/{index-mtw9e71a.js → index-kq82mtg0.js} +2 -2
  102. package/dist/{index-n78avt2p.js → index-n37sebck.js} +1 -1
  103. package/dist/{index-wk0n1cgt.js → index-qn7xstt2.js} +2 -2
  104. package/dist/{index-v63beg1z.js → index-r4nkrs05.js} +3 -3
  105. package/dist/{index-j6zw70pf.js → index-rmwykbbb.js} +60 -21
  106. package/dist/{index-saews2s3.js → index-rr2bb45z.js} +1 -1
  107. package/dist/{index-ayym1x7f.js → index-s1ex9y6p.js} +195 -748
  108. package/dist/{index-7pa32z07.js → index-s734jcsr.js} +1 -1
  109. package/dist/{index-b17m64g9.js → index-s74zqahq.js} +1 -1
  110. package/dist/{index-4qfy7v57.js → index-s7j8tvhv.js} +31 -20
  111. package/dist/{index-wv9n2zcq.js → index-v8awdgvd.js} +4 -4
  112. package/dist/{index-p4vde22c.js → index-x4njr8df.js} +965 -77
  113. package/dist/{index-qrahzcqv.js → index-ze7mvk54.js} +10 -7
  114. package/dist/index.js +39 -39
  115. package/dist/{message-fts-rowid-map-yvx5a9jw.js → message-fts-rowid-map-17s0dfn4.js} +5 -3
  116. package/dist/{message-index-t4pz7akd.js → message-index-66jv6fh4.js} +13 -13
  117. package/dist/{message-index-bounded-6th8djy9.js → message-index-bounded-n1frdn85.js} +17 -17
  118. package/dist/{message-time-backfill-8egzkd3z.js → message-time-backfill-73mmm76q.js} +1 -1
  119. package/dist/migration-worker.js +8 -8
  120. package/dist/plugin/dream-timer.d.ts +11 -0
  121. package/dist/plugin/dream-timer.d.ts.map +1 -1
  122. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  123. package/dist/{project-embedding-registry-2dea0a77.js → project-embedding-registry-z74mhqkf.js} +10 -10
  124. package/dist/raw-ordinal-warmup-worker.js +10 -10
  125. package/dist/{read-session-chunk-4pwqxm5a.js → read-session-chunk-v06g3vka.js} +7 -7
  126. package/dist/{read-session-raw-5ar8se5v.js → read-session-raw-rsc8c7qy.js} +2 -2
  127. package/dist/{recomp-orchestrator-tjcaj5x7.js → recomp-orchestrator-ghpk2dtq.js} +24 -24
  128. package/dist/{search-archive-02jws7hw.js → search-archive-4d53y23e.js} +8 -8
  129. package/dist/{search-rb01n29x.js → search-nkf271d4.js} +20 -20
  130. package/dist/{send-session-notification-2x9edkrp.js → send-session-notification-6ve0e8p4.js} +4 -4
  131. package/dist/shared/historian-cache.d.ts +8 -0
  132. package/dist/shared/historian-cache.d.ts.map +1 -0
  133. package/dist/shared/model-suggestion-retry.d.ts +2 -0
  134. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  135. package/dist/shared/rpc-discovery-cleanup.d.ts +3 -0
  136. package/dist/shared/rpc-discovery-cleanup.d.ts.map +1 -0
  137. package/dist/shared/rpc-server.d.ts +2 -0
  138. package/dist/shared/rpc-server.d.ts.map +1 -1
  139. package/dist/shared/search-text.d.ts +8 -0
  140. package/dist/shared/search-text.d.ts.map +1 -0
  141. package/dist/shared/sqlite.d.ts +4 -2
  142. package/dist/shared/sqlite.d.ts.map +1 -1
  143. package/dist/shared/storage-file-mutex.d.ts.map +1 -1
  144. package/dist/shared/subagent-runner.d.ts +2 -0
  145. package/dist/shared/subagent-runner.d.ts.map +1 -1
  146. package/dist/shared/system-directive.d.ts +2 -0
  147. package/dist/shared/system-directive.d.ts.map +1 -1
  148. package/dist/{sqlite-4pqyynrs.js → sqlite-zf72c52d.js} +1 -1
  149. package/dist/{storage-memory-j3v3hc83.js → storage-memory-y3qmy00r.js} +2 -2
  150. package/dist/{storage-tags-4z1w27xa.js → storage-tags-r7k9tjcv.js} +8 -4
  151. package/dist/{transform-postprocess-phase-xaw5c3xp.js → transform-postprocess-phase-zpgav0h7.js} +24 -24
  152. package/dist/v2/auto-search-worker.js +76 -63
  153. package/dist/v2/chunk-embedding-write-worker.js +11 -11
  154. package/dist/v2/{compaction-marker-candidates-1vqwr3s5.js → compaction-marker-candidates-ebx3388k.js} +2 -2
  155. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  156. package/dist/v2/{context-acw1nhv8.js → context-f2xh7ba4.js} +1171 -448
  157. package/dist/v2/embedding-backfill-7c7yr69y.js +23 -0
  158. package/dist/v2/embedding-worker-process.js +1 -1
  159. package/dist/v2/embedding-worker.js +4 -4
  160. package/dist/v2/fold/native-replay.d.ts +11 -2
  161. package/dist/v2/fold/native-replay.d.ts.map +1 -1
  162. package/dist/v2/fold/policy.d.ts.map +1 -1
  163. package/dist/v2/fold/restore.d.ts.map +1 -1
  164. package/dist/v2/hooks/context.d.ts.map +1 -1
  165. package/dist/v2/hooks/hidden-child.d.ts +8 -0
  166. package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
  167. package/dist/v2/hooks/payload.d.ts.map +1 -1
  168. package/dist/v2/hooks/types.d.ts +17 -0
  169. package/dist/v2/hooks/types.d.ts.map +1 -1
  170. package/dist/v2/{message-fts-rowid-map-8vf0v7cr.js → message-fts-rowid-map-wfx67gfd.js} +5 -3
  171. package/dist/v2/{message-index-e6qzw477.js → message-index-48f7hw7a.js} +13 -13
  172. package/dist/v2/{message-index-bounded-dsrf49y7.js → message-index-bounded-w3hfm29z.js} +17 -17
  173. package/dist/v2/{message-time-backfill-q5pgxf0d.js → message-time-backfill-04t0km1z.js} +1 -1
  174. package/dist/v2/migration-worker.js +8 -8
  175. package/dist/v2/{project-embedding-registry-rek75aqw.js → project-embedding-registry-gnkj56xp.js} +10 -10
  176. package/dist/v2/raw-ordinal-warmup-worker.js +10 -10
  177. package/dist/v2/{read-session-chunk-7bpygfv2.js → read-session-chunk-zpgmxwte.js} +7 -7
  178. package/dist/v2/{read-session-raw-pw2n1qgc.js → read-session-raw-yaegtjzh.js} +2 -2
  179. package/dist/v2/{recomp-orchestrator-hzpgg06e.js → recomp-orchestrator-4vfxej9t.js} +24 -24
  180. package/dist/v2/{search-archive-fn4wy8sx.js → search-archive-vv48s2aa.js} +8 -8
  181. package/dist/v2/{search-sf2vg5pk.js → search-kza414f0.js} +20 -20
  182. package/dist/v2/{send-session-notification-hmr7q0nt.js → send-session-notification-3pxn658x.js} +4 -4
  183. package/dist/v2/{server-n5q841qn.js → server-1nyybqan.js} +31 -20
  184. package/dist/v2/{server-785mb90s.js → server-1wy7b9de.js} +6 -3
  185. package/dist/v2/{server-0mzjjw3s.js → server-27gq4mfz.js} +27 -5
  186. package/dist/v2/{server-g59aatsz.js → server-2ehj0bw7.js} +965 -77
  187. package/dist/v2/{server-kqpawe1a.js → server-46neh5fa.js} +12 -6
  188. package/dist/v2/{server-rrqpvwqd.js → server-6tmj0s7j.js} +2 -2
  189. package/dist/v2/{server-kr2kc9dz.js → server-8by8qfec.js} +10 -7
  190. package/dist/v2/{server-r9gjxcte.js → server-a2eqhkxr.js} +7 -7
  191. package/dist/v2/{server-vbe4se57.js → server-a9xqj88f.js} +1 -1
  192. package/dist/{index-wafzvyhg.js → v2/server-beht37jy.js} +8 -0
  193. package/dist/v2/{server-6fyp0v67.js → server-bfpda1tb.js} +195 -749
  194. package/dist/v2/{server-05xjtq6c.js → server-d04vrx0j.js} +1 -1
  195. package/dist/v2/{server-zs8d0s3b.js → server-g3qma5c0.js} +1 -1
  196. package/dist/v2/{server-00hx04yn.js → server-gpvay0xz.js} +2 -2
  197. package/dist/v2/{server-gha9x4qq.js → server-h1v0pyxb.js} +2 -2
  198. package/dist/v2/{server-hgg55hde.js → server-hy3d3vsx.js} +1 -1
  199. package/dist/v2/{server-vgpab6rd.js → server-my7k4eds.js} +4 -4
  200. package/dist/v2/{server-d8tj10db.js → server-n1prf1g6.js} +1 -1
  201. package/dist/v2/{server-n78avt2p.js → server-n37sebck.js} +1 -1
  202. package/dist/v2/{server-y5pznjt9.js → server-nj659894.js} +5 -5
  203. package/dist/v2/{server-zyw55ygv.js → server-qv7f0hhe.js} +5 -5
  204. package/dist/v2/{server-e3ftpk7v.js → server-rmygf5pn.js} +32 -3
  205. package/dist/v2/{server-0ppsweh6.js → server-tgnbmwah.js} +22 -2
  206. package/dist/v2/{server-1hcbw661.js → server-xhab8jx8.js} +60 -21
  207. package/dist/v2/{server-6714jebr.js → server-xj136kt8.js} +1 -1
  208. package/dist/v2/{server-aavz8pm6.js → server-zzkj2fch.js} +3 -3
  209. package/dist/v2/server.js +4 -4
  210. package/dist/v2/{sqlite-4pqyynrs.js → sqlite-zf72c52d.js} +1 -1
  211. package/dist/v2/{storage-memory-j3v3hc83.js → storage-memory-y3qmy00r.js} +2 -2
  212. package/dist/v2/{storage-tags-hkwtbp3g.js → storage-tags-3wdb8zph.js} +8 -4
  213. package/dist/v2/store-reader.d.ts +8 -0
  214. package/dist/v2/store-reader.d.ts.map +1 -1
  215. package/dist/v2/{wrapup-orchestrator-x4xj1782.js → wrapup-orchestrator-psqz7yh0.js} +24 -24
  216. package/dist/wrapup-orchestrator-s9zc5b00.js +48 -0
  217. package/package.json +1 -1
  218. package/src/config/latch-permanence-guard.test.ts +4 -0
  219. package/src/shared/historian-cache.test.ts +69 -0
  220. package/src/shared/historian-cache.ts +55 -0
  221. package/src/shared/model-suggestion-retry.ts +2 -0
  222. package/src/shared/rpc-discovery-cleanup.test.ts +57 -0
  223. package/src/shared/rpc-discovery-cleanup.ts +57 -0
  224. package/src/shared/rpc-server.ts +36 -13
  225. package/src/shared/search-text.test.ts +47 -0
  226. package/src/shared/search-text.ts +63 -0
  227. package/src/shared/sqlite.test.ts +56 -0
  228. package/src/shared/sqlite.ts +51 -2
  229. package/src/shared/storage-file-mutex-review.test.ts +22 -2
  230. package/src/shared/storage-file-mutex.ts +11 -1
  231. package/src/shared/subagent-runner.ts +2 -0
  232. package/src/shared/system-directive.ts +19 -1
  233. package/src/shared/tag-transcript.ts +12 -4
  234. package/dist/v2/embedding-backfill-jyd6492b.js +0 -23
  235. package/dist/wrapup-orchestrator-vj2tbp22.js +0 -48
@@ -7,45 +7,45 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./server-6fyp0v67.js";
11
- import"./server-05xjtq6c.js";
12
- import"./server-vgpab6rd.js";
13
- import"./server-g59aatsz.js";
14
- import"./server-aavz8pm6.js";
15
- import"./server-n78avt2p.js";
16
- import"./server-kr2kc9dz.js";
10
+ } from "./server-bfpda1tb.js";
11
+ import"./server-d04vrx0j.js";
12
+ import"./server-my7k4eds.js";
13
+ import"./server-2ehj0bw7.js";
14
+ import"./server-zzkj2fch.js";
15
+ import"./server-n37sebck.js";
16
+ import"./server-8by8qfec.js";
17
17
  import"./server-4dhv7mqz.js";
18
18
  import"./server-34kwfsr4.js";
19
- import"./server-vbe4se57.js";
19
+ import"./server-a9xqj88f.js";
20
20
  import"./server-qt1qqasc.js";
21
- import"./server-1hcbw661.js";
22
- import"./server-0mzjjw3s.js";
21
+ import"./server-xhab8jx8.js";
22
+ import"./server-27gq4mfz.js";
23
23
  import"./server-1zx87sdm.js";
24
- import"./server-d8tj10db.js";
24
+ import"./server-n1prf1g6.js";
25
25
  import"./server-h0410h0v.js";
26
- import"./server-y5pznjt9.js";
26
+ import"./server-nj659894.js";
27
27
  import"./server-tbe1femw.js";
28
28
  import"./server-x8a7jmkh.js";
29
- import"./server-gha9x4qq.js";
29
+ import"./server-h1v0pyxb.js";
30
30
  import"./server-271qxsf5.js";
31
- import"./server-hgg55hde.js";
32
- import"./server-kqpawe1a.js";
33
- import"./server-rrqpvwqd.js";
34
- import"./server-r9gjxcte.js";
31
+ import"./server-hy3d3vsx.js";
32
+ import"./server-46neh5fa.js";
33
+ import"./server-6tmj0s7j.js";
34
+ import"./server-a2eqhkxr.js";
35
35
  import"./server-fb3zxn06.js";
36
- import"./server-00hx04yn.js";
36
+ import"./server-gpvay0xz.js";
37
37
  import"./server-fr0wbhdn.js";
38
- import"./server-e3ftpk7v.js";
39
- import"./server-785mb90s.js";
38
+ import"./server-rmygf5pn.js";
39
+ import"./server-1wy7b9de.js";
40
40
  import"./server-da07v4xp.js";
41
- import"./server-zs8d0s3b.js";
41
+ import"./server-g3qma5c0.js";
42
42
  import"./server-pwv4ezb0.js";
43
43
  import"./server-2ra6pwf3.js";
44
- import"./server-6714jebr.js";
44
+ import"./server-xj136kt8.js";
45
45
  import"./server-51779zs2.js";
46
46
  import"./server-6pmqg9m4.js";
47
- import"./server-0ppsweh6.js";
48
- import"./server-wafzvyhg.js";
47
+ import"./server-tgnbmwah.js";
48
+ import"./server-beht37jy.js";
49
49
  import"./server-f2xf5gcb.js";
50
50
  import"./server-pavzsdc6.js";
51
51
  export {
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  renderSearchArchive2,
3
3
  renderSearchArchiveOffThread2
4
- } from "./server-zyw55ygv.js";
4
+ } from "./server-qv7f0hhe.js";
5
5
  import"./server-kaqs6h31.js";
6
- import"./server-1hcbw661.js";
7
- import"./server-0mzjjw3s.js";
6
+ import"./server-xhab8jx8.js";
7
+ import"./server-27gq4mfz.js";
8
8
  import"./server-1zx87sdm.js";
9
- import"./server-d8tj10db.js";
9
+ import"./server-n1prf1g6.js";
10
10
  import"./server-271qxsf5.js";
11
- import"./server-zs8d0s3b.js";
11
+ import"./server-g3qma5c0.js";
12
12
  import"./server-pwv4ezb0.js";
13
13
  import"./server-2ra6pwf3.js";
14
- import"./server-6714jebr.js";
14
+ import"./server-xj136kt8.js";
15
15
  import"./server-51779zs2.js";
16
16
  import"./server-6pmqg9m4.js";
17
- import"./server-0ppsweh6.js";
18
- import"./server-wafzvyhg.js";
17
+ import"./server-tgnbmwah.js";
18
+ import"./server-beht37jy.js";
19
19
  import"./server-f2xf5gcb.js";
20
20
  import"./server-pavzsdc6.js";
21
21
  export {
@@ -5,37 +5,37 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./server-n5q841qn.js";
8
+ } from "./server-1nyybqan.js";
9
9
  import"./server-kaqs6h31.js";
10
- import"./server-vgpab6rd.js";
11
- import"./server-g59aatsz.js";
12
- import"./server-aavz8pm6.js";
13
- import"./server-n78avt2p.js";
14
- import"./server-kr2kc9dz.js";
10
+ import"./server-my7k4eds.js";
11
+ import"./server-2ehj0bw7.js";
12
+ import"./server-zzkj2fch.js";
13
+ import"./server-n37sebck.js";
14
+ import"./server-8by8qfec.js";
15
15
  import"./server-4dhv7mqz.js";
16
16
  import"./server-qt1qqasc.js";
17
- import"./server-1hcbw661.js";
18
- import"./server-0mzjjw3s.js";
17
+ import"./server-xhab8jx8.js";
18
+ import"./server-27gq4mfz.js";
19
19
  import"./server-1zx87sdm.js";
20
- import"./server-d8tj10db.js";
21
- import"./server-gha9x4qq.js";
20
+ import"./server-n1prf1g6.js";
21
+ import"./server-h1v0pyxb.js";
22
22
  import"./server-271qxsf5.js";
23
- import"./server-hgg55hde.js";
24
- import"./server-kqpawe1a.js";
25
- import"./server-rrqpvwqd.js";
26
- import"./server-00hx04yn.js";
23
+ import"./server-hy3d3vsx.js";
24
+ import"./server-46neh5fa.js";
25
+ import"./server-6tmj0s7j.js";
26
+ import"./server-gpvay0xz.js";
27
27
  import"./server-fr0wbhdn.js";
28
- import"./server-e3ftpk7v.js";
29
- import"./server-785mb90s.js";
28
+ import"./server-rmygf5pn.js";
29
+ import"./server-1wy7b9de.js";
30
30
  import"./server-da07v4xp.js";
31
- import"./server-zs8d0s3b.js";
31
+ import"./server-g3qma5c0.js";
32
32
  import"./server-pwv4ezb0.js";
33
33
  import"./server-2ra6pwf3.js";
34
- import"./server-6714jebr.js";
34
+ import"./server-xj136kt8.js";
35
35
  import"./server-51779zs2.js";
36
36
  import"./server-6pmqg9m4.js";
37
- import"./server-0ppsweh6.js";
38
- import"./server-wafzvyhg.js";
37
+ import"./server-tgnbmwah.js";
38
+ import"./server-beht37jy.js";
39
39
  import"./server-f2xf5gcb.js";
40
40
  import"./server-pavzsdc6.js";
41
41
  export {
@@ -8,14 +8,14 @@ import {
8
8
  clearIgnoredMessages2,
9
9
  observeIgnoredNotificationEvent2,
10
10
  sendStatusNotification2
11
- } from "./server-vbe4se57.js";
11
+ } from "./server-a9xqj88f.js";
12
12
  import"./server-qt1qqasc.js";
13
- import"./server-d8tj10db.js";
13
+ import"./server-n1prf1g6.js";
14
14
  import"./server-h0410h0v.js";
15
15
  import"./server-2ra6pwf3.js";
16
- import"./server-6714jebr.js";
16
+ import"./server-xj136kt8.js";
17
17
  import"./server-51779zs2.js";
18
- import"./server-wafzvyhg.js";
18
+ import"./server-beht37jy.js";
19
19
  import"./server-f2xf5gcb.js";
20
20
  import"./server-pavzsdc6.js";
21
21
  export {
@@ -6,7 +6,7 @@ import {
6
6
  StaleRouteHandleError,
7
7
  SubcClient,
8
8
  isConsumerReconnectTransient
9
- } from "./server-rrqpvwqd.js";
9
+ } from "./server-6tmj0s7j.js";
10
10
  import {
11
11
  getHarness2
12
12
  } from "./server-pavzsdc6.js";
@@ -16,11 +16,11 @@ import {
16
16
  } from "./server-f2xf5gcb.js";
17
17
  import {
18
18
  inRootAsyncContext2
19
- } from "./server-wafzvyhg.js";
19
+ } from "./server-beht37jy.js";
20
20
  import {
21
21
  buildCanonicalChunkTextFromFts,
22
22
  loadCompartmentChunkEmbeddingsForSearch
23
- } from "./server-kqpawe1a.js";
23
+ } from "./server-46neh5fa.js";
24
24
  import {
25
25
  recordEmbeddingMeasurement,
26
26
  saveCommitEmbedding,
@@ -37,7 +37,7 @@ import {
37
37
  enqueueShadowEmbeddingItems2,
38
38
  getProjectEmbeddingSnapshot2,
39
39
  embedItemsForProject2
40
- } from "./server-kr2kc9dz.js";
40
+ } from "./server-8by8qfec.js";
41
41
  import {
42
42
  getProjectEmbeddings2
43
43
  } from "./server-4dhv7mqz.js";
@@ -46,13 +46,13 @@ import {
46
46
  isEmbeddingEnabled,
47
47
  embedText,
48
48
  ensureMemoryEmbeddings2
49
- } from "./server-aavz8pm6.js";
49
+ } from "./server-zzkj2fch.js";
50
50
  import {
51
51
  ModuleMemoryAuthorityError2,
52
52
  getMemoriesByProject2,
53
53
  getMemoriesByProjects2,
54
54
  updateMemoryRetrievalCount2
55
- } from "./server-n78avt2p.js";
55
+ } from "./server-n37sebck.js";
56
56
  import {
57
57
  getNotes,
58
58
  getActivePrimers,
@@ -61,24 +61,27 @@ import {
61
61
  sanitizeFtsQuery,
62
62
  searchMemoriesFTS,
63
63
  searchMemoriesFTSUnion
64
- } from "./server-vgpab6rd.js";
64
+ } from "./server-my7k4eds.js";
65
+ import {
66
+ cleanSearchText,
67
+ keywordRelevance,
68
+ matchedSearchSnippet,
69
+ getIndexedMessageCorpusSize2
70
+ } from "./server-2ehj0bw7.js";
65
71
  import {
66
72
  MESSAGE_FTS_SESSION_FILTER_SQL,
67
73
  withMessageFtsSessionFilter
68
74
  } from "./server-kaqs6h31.js";
69
75
  import {
70
76
  isRecord
71
- } from "./server-0mzjjw3s.js";
72
- import {
73
- getIndexedMessageCorpusSize2
74
- } from "./server-g59aatsz.js";
77
+ } from "./server-27gq4mfz.js";
75
78
  import {
76
79
  resolveWorkspaceShareCategories,
77
80
  resolveWorkspaceIdentitySet,
78
81
  expandWorkspaceIdentitySetWithAliases,
79
82
  resolveStoredPathWorkspaceIdentity,
80
83
  sourceNameForMemory
81
- } from "./server-00hx04yn.js";
84
+ } from "./server-gpvay0xz.js";
82
85
  import {
83
86
  isKnownAutocommit
84
87
  } from "./server-8ajstryz.js";
@@ -968,6 +971,10 @@ async function indexCommitsForProject(db, projectPath, directory, options) {
968
971
  embedded: 0,
969
972
  nonIndexable: false
970
973
  };
974
+ if (projectPath.startsWith("dir:")) {
975
+ result.nonIndexable = true;
976
+ return result;
977
+ }
971
978
  if (indexInProgress.has(projectPath)) {
972
979
  log2(`[git-commits] index already in progress for ${projectPath}, skipping`);
973
980
  return result;
@@ -1021,6 +1028,7 @@ async function embedUnembeddedCommits(db, projectPath) {
1021
1028
  embedInProgress.add(projectPath);
1022
1029
  const startedAt = Date.now();
1023
1030
  const deadline = startedAt + EMBED_SWEEP_MAX_WALL_CLOCK_MS;
1031
+ const signal = AbortSignal.timeout(EMBED_SWEEP_MAX_WALL_CLOCK_MS);
1024
1032
  let total = 0;
1025
1033
  try {
1026
1034
  while (Date.now() < deadline && total < EMBED_MAX_PER_SWEEP) {
@@ -1033,7 +1041,7 @@ async function embedUnembeddedCommits(db, projectPath) {
1033
1041
  id: `commit:${row.sha}`,
1034
1042
  text: row.message,
1035
1043
  contentSha256: contentSha2562(row.message)
1036
- })), undefined, db, projectPath);
1044
+ })), signal, db, projectPath);
1037
1045
  if (!result)
1038
1046
  break;
1039
1047
  db.transaction(() => {
@@ -2379,7 +2387,7 @@ function searchMessagesInSnapshot(args, sessionFirst) {
2379
2387
  const filtered = rows.slice(0, limit);
2380
2388
  return filtered.map((row, rank) => ({
2381
2389
  source: "message",
2382
- content: previewText(row.content),
2390
+ content: matchedSearchSnippet(row.content, args.query) || previewText(row.content),
2383
2391
  score: linearDecayScore(rank, filtered.length),
2384
2392
  messageOrdinal: row.messageOrdinal,
2385
2393
  messageId: row.messageId,
@@ -2456,7 +2464,7 @@ function searchMessagesInSnapshot(args, sessionFirst) {
2456
2464
  const ranked = [...fused.values()].sort((a, b) => b.score !== a.score ? b.score - a.score : a.row.messageOrdinal - b.row.messageOrdinal).slice(0, resultLimit);
2457
2465
  return ranked.map((entry, rank) => ({
2458
2466
  source: "message",
2459
- content: previewText(entry.row.content),
2467
+ content: matchedSearchSnippet(entry.row.content, args.query) || previewText(entry.row.content),
2460
2468
  score: linearDecayScore(rank, ranked.length),
2461
2469
  messageOrdinal: entry.row.messageOrdinal,
2462
2470
  messageId: entry.row.messageId,
@@ -2679,10 +2687,7 @@ function mergeMessageAndCompartmentResults(args) {
2679
2687
  }
2680
2688
  }
2681
2689
  const ranked = [...fused.values()].sort((left, right) => right.score !== left.score ? right.score - left.score : left.tieOrdinal - right.tieOrdinal).slice(0, args.limit);
2682
- return ranked.map((entry, rank) => ({
2683
- ...entry.result,
2684
- score: linearDecayScore(rank, ranked.length)
2685
- }));
2690
+ return ranked.map((entry) => entry.result);
2686
2691
  }
2687
2692
  function getSourceBoost(result) {
2688
2693
  switch (result.source) {
@@ -2960,7 +2965,7 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
2960
2965
  if (options.diagnostics) {
2961
2966
  options.diagnostics.suppressedLiveMessageMatches = outcome.suppressedLiveMessageMatches;
2962
2967
  }
2963
- messageResults = outcome.results;
2968
+ messageResults = outcome.results.filter((result) => result.messageId !== options.excludeMessageId);
2964
2969
  if (lanes)
2965
2970
  lanes.message_fts = (outcome.laneResults ?? outcome.results).slice(0, 25);
2966
2971
  }
@@ -3093,6 +3098,12 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
3093
3098
  }).immediate();
3094
3099
  }
3095
3100
  }
3101
+ if (options.autoHint) {
3102
+ return results.map((result) => ({
3103
+ ...result,
3104
+ relevanceScore: cleanSearchText(result.source === "compartment" ? result.title : result.content).length === 0 ? 0 : result.source === "message" || ("matchType" in result) && result.source !== "compartment" && result.matchType !== "semantic" ? keywordRelevance(trimmedQuery, result.content) : result.score
3105
+ }));
3106
+ }
3096
3107
  return results;
3097
3108
  }
3098
3109
  var SEARCH_NOTE_EXPAND_HINT = "Use ctx_expand(start=N-10, end=N) around any note @msg anchor above to read the surrounding conversation context.";
@@ -2,10 +2,10 @@ import {
2
2
  getSqliteDatabasePath2,
3
3
  withSqliteBackgroundWriter2,
4
4
  withoutSqliteTransformPass2
5
- } from "./server-wafzvyhg.js";
5
+ } from "./server-beht37jy.js";
6
6
  import {
7
7
  runSessionWarmupWorker
8
- } from "./server-6714jebr.js";
8
+ } from "./server-xj136kt8.js";
9
9
  import {
10
10
  logSlowWriteTransaction
11
11
  } from "./server-6pmqg9m4.js";
@@ -168,6 +168,9 @@ function messageFtsOrdinalRangeIsMapped2(db, sessionId, startOrdinal, endOrdinal
168
168
  const ordinalCount = endOrdinal - startOrdinal + 1;
169
169
  return row?.sourceOrdinalCount === ordinalCount && row.expectedMapCount === row.mappedCount;
170
170
  }
171
+ function getMessageFtsRowidMapBackfillProgress2(db) {
172
+ return getBackfillState(db);
173
+ }
171
174
  function deleteUnmappedMessageFtsRows2(db, sessionIds) {
172
175
  if (sessionIds.length === 0)
173
176
  return;
@@ -179,4 +182,4 @@ function deleteUnmappedMessageFtsRows2(db, sessionIds) {
179
182
  WHERE rowid > ? AND session_id IN (${placeholders})`).run(state.watermarkRowid, ...sessionIds);
180
183
  }
181
184
 
182
- export { recordMessageFtsRowid2, recordIndexedMessageTime2, runMessageFtsRowidMapBackfill2, startMessageFtsRowidMapBackfill2, messageFtsOrdinalRangeIsMapped2, deleteUnmappedMessageFtsRows2 };
185
+ export { recordMessageFtsRowid2, recordIndexedMessageTime2, runMessageFtsRowidMapBackfill2, startMessageFtsRowidMapBackfill2, messageFtsOrdinalRangeIsMapped2, getMessageFtsRowidMapBackfillProgress2, deleteUnmappedMessageFtsRows2 };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./server-1zx87sdm.js";
5
5
  import {
6
6
  estimateTokens
7
- } from "./server-0ppsweh6.js";
7
+ } from "./server-tgnbmwah.js";
8
8
  import {
9
9
  getHarness2
10
10
  } from "./server-pavzsdc6.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  getTagIdentityWriteGeneration2,
16
16
  getSqliteDatabasePath2
17
- } from "./server-wafzvyhg.js";
17
+ } from "./server-beht37jy.js";
18
18
  import {
19
19
  stableStringify,
20
20
  stableStringifyHash,
@@ -63,8 +63,8 @@ function protectedToolTokenCount(tags, counts, calibration) {
63
63
  var encoder = new TextEncoder;
64
64
  var TAG_PREFIX_REGEX = /^(?:§\d+§\s*)+/;
65
65
  var MALFORMED_TAG_PREFIX_REGEX = /^(?:§\d+">§(?:\d+§)?\s*)+/;
66
- var DANGLING_TAG_GLOBAL_REGEX = /\u00a7\d+(?!\.\d)[^\s\u00a7\w.]?/g;
67
- var DANGLING_TAG_PREFIX_REGEX = /^(?:\u00a7\d+(?!\.\d)[^\s\u00a7\w.]?\s*)+/;
66
+ var DANGLING_TAG_GLOBAL_REGEX = /\u00a7\d+(?!\d)(?!\.\d)[^\s\u00a7\w.]?/g;
67
+ var DANGLING_TAG_PREFIX_REGEX = /^(?:\u00a7\d+(?!\d)(?!\.\d)[^\s\u00a7\w.]?\s*)+/;
68
68
  var COMPLETE_TAG_PAIR_GLOBAL_REGEX = /\u00a7\d+\u00a7/g;
69
69
  var MALFORMED_TAG_GLOBAL_REGEX = /\u00a7\d+">(?:\u00a7(?:\d+\u00a7)?)?/g;
70
70
  var STRAY_SECTION_CHAR_REGEX = /\u00a7/g;
@@ -2279,6 +2279,17 @@ function getUpdateTagDropModeStatement(db) {
2279
2279
  }
2280
2280
  var updateTagByteSizeStatements = new WeakMap;
2281
2281
  var updateTagInputByteSizeStatements = new WeakMap;
2282
+ function getUpdateTagByteSizeStatement(db) {
2283
+ let stmt = updateTagByteSizeStatements.get(db);
2284
+ if (!stmt) {
2285
+ stmt = db.prepare("UPDATE tags SET byte_size = ? WHERE session_id = ? AND tag_number = ?");
2286
+ updateTagByteSizeStatements.set(db, stmt);
2287
+ }
2288
+ return stmt;
2289
+ }
2290
+ function updateTagByteSize2(db, sessionId, tagNumber, newByteSize) {
2291
+ getUpdateTagByteSizeStatement(db).run(newByteSize, sessionId, tagNumber);
2292
+ }
2282
2293
  var RECENT_OWNER_SCAN_PAGE_SIZE = 128;
2283
2294
  var recentTagOwnerStatements = new WeakMap;
2284
2295
  function ownerMessageIdForTagRow(row) {
@@ -2477,6 +2488,17 @@ function getActiveTagTokenTotalsByMessage2(db, sessionId, messageIds) {
2477
2488
  }
2478
2489
  var updateTagTokenCountStatements = new WeakMap;
2479
2490
  var updateTagInputTokenCountStatements = new WeakMap;
2491
+ function getUpdateTagTokenCountStatement(db) {
2492
+ let stmt = updateTagTokenCountStatements.get(db);
2493
+ if (!stmt) {
2494
+ stmt = db.prepare("UPDATE tags SET token_count = MAX(COALESCE(token_count, 0), ?) WHERE session_id = ? AND tag_number = ?");
2495
+ updateTagTokenCountStatements.set(db, stmt);
2496
+ }
2497
+ return stmt;
2498
+ }
2499
+ function updateTagTokenCount2(db, sessionId, tagNumber, newTokenCount) {
2500
+ getUpdateTagTokenCountStatement(db).run(newTokenCount, sessionId, tagNumber);
2501
+ }
2480
2502
  function getPersistedToolTagAccounting2(db, sessionId, tagNumber) {
2481
2503
  const row = db.prepare(`SELECT byte_size AS byteSize,
2482
2504
  token_count AS tokenCount,
@@ -3848,4 +3870,4 @@ function deleteToolTagsByOwner(db, sessionId, ownerMsgId) {
3848
3870
  return getDeleteToolTagsByOwnerStatement(db).all(sessionId, ownerMsgId).length;
3849
3871
  }
3850
3872
 
3851
- export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };
3873
+ export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, updateTagByteSize2, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, updateTagTokenCount2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };