@cortexkit/opencode-magic-context 0.49.104 → 0.49.106

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 (157) hide show
  1. package/dist/auto-search-worker.js +3 -3
  2. package/dist/chunk-embedding-write-worker.js +8 -5
  3. package/dist/{context-7hbmnpe8.js → context-ywdwfzg5.js} +116 -136
  4. package/dist/{embedding-backfill-aratv25b.js → embedding-backfill-kqwx0vhj.js} +4 -4
  5. package/dist/features/magic-context/chunk-embedding-write-worker-install-failure.fixture.d.ts +2 -0
  6. package/dist/features/magic-context/chunk-embedding-write-worker-install-failure.fixture.d.ts.map +1 -0
  7. package/dist/features/magic-context/chunk-scope-repair-revision.d.ts +16 -1
  8. package/dist/features/magic-context/chunk-scope-repair-revision.d.ts.map +1 -1
  9. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
  10. package/dist/features/magic-context/dreamer/verify-checkout.d.ts +2 -0
  11. package/dist/features/magic-context/dreamer/verify-checkout.d.ts.map +1 -0
  12. package/dist/features/magic-context/memory/embedding-worker-observer.fixture.d.ts +26 -0
  13. package/dist/features/magic-context/memory/embedding-worker-observer.fixture.d.ts.map +1 -0
  14. package/dist/features/magic-context/message-fts-rowid-map-startup-worker-test-support.d.ts +2 -0
  15. package/dist/features/magic-context/message-fts-rowid-map-startup-worker-test-support.d.ts.map +1 -0
  16. package/dist/features/magic-context/project-embedding-registry.d.ts +5 -0
  17. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  18. package/dist/features/magic-context/search-pool-fixture.d.ts +15 -0
  19. package/dist/features/magic-context/search-pool-fixture.d.ts.map +1 -1
  20. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  21. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  22. package/dist/hooks/magic-context/compartment-runner-types.d.ts +4 -1
  23. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  24. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/history-boundary-repair.d.ts +7 -2
  26. package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/hook.d.ts +1 -0
  28. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  29. package/dist/hooks/magic-context/lkg-persist.d.ts +1 -0
  30. package/dist/hooks/magic-context/lkg-persist.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/lkg-slot.d.ts +7 -0
  32. package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +1 -0
  34. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  35. package/dist/hooks/magic-context/transform.d.ts +3 -0
  36. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  37. package/dist/{index-8gzmeyae.js → index-20e7w8v8.js} +3 -3
  38. package/dist/{index-a9wn0d9h.js → index-3p08zzfq.js} +3 -3
  39. package/dist/{index-fd3hkyk1.js → index-42fsf88t.js} +1 -1
  40. package/dist/{index-tvh3y650.js → index-5phmpcme.js} +5 -5
  41. package/dist/{index-8yj4vd7k.js → index-92p5yfpp.js} +1 -1
  42. package/dist/{index-mwjvjn0p.js → index-a3t1ck7g.js} +6 -6
  43. package/dist/{index-4ba3zp54.js → index-as8bg7eh.js} +365 -113
  44. package/dist/{index-8eke8yh2.js → index-cxh5g5bt.js} +1 -1
  45. package/dist/{index-vegw385y.js → index-cy5fn70d.js} +89 -1
  46. package/dist/{index-4dywj733.js → index-dzb1yc9w.js} +1 -1
  47. package/dist/{index-3rp2b482.js → index-e4szqthq.js} +299 -37
  48. package/dist/{index-jjxpmypb.js → index-e7awy9eb.js} +1 -1
  49. package/dist/{index-ke0mkz7g.js → index-g1h1efr0.js} +1 -1
  50. package/dist/{index-f455a0g3.js → index-k37h4yrb.js} +5 -3
  51. package/dist/{index-3nxhxeeg.js → index-sfgz2h7y.js} +4 -4
  52. package/dist/{index-sqvkh5d0.js → index-xa8jgw6w.js} +20 -7
  53. package/dist/{index-hyvxmz3e.js → index-y1875y4h.js} +1 -1
  54. package/dist/{index-4v50y0jr.js → index-ydevzvfs.js} +1 -1
  55. package/dist/{index-4536jdzj.js → index-ze1t940p.js} +68 -25
  56. package/dist/{index-ab86c21b.js → index-zj0ra8vs.js} +1 -1
  57. package/dist/index.js +50 -59
  58. package/dist/migration-worker.js +3 -3
  59. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
  60. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  61. package/dist/{project-embedding-registry-1n4cexsv.js → project-embedding-registry-0z0nd73p.js} +3 -3
  62. package/dist/raw-ordinal-warmup-worker.js +2 -2
  63. package/dist/{recomp-orchestrator-16rs8aty.js → recomp-orchestrator-7sf94073.js} +12 -12
  64. package/dist/{render-f32trg2t.js → render-93qzv0vk.js} +6 -6
  65. package/dist/{search-v9ywqb4f.js → search-7e1rcqb7.js} +9 -9
  66. package/dist/{search-archive-yh6xtvrx.js → search-archive-dv483a5c.js} +2 -2
  67. package/dist/shared/sqlite-busy-test-support.d.ts +21 -0
  68. package/dist/shared/sqlite-busy-test-support.d.ts.map +1 -0
  69. package/dist/shared/sqlite-write-locker-test-support.d.ts +12 -0
  70. package/dist/shared/sqlite-write-locker-test-support.d.ts.map +1 -1
  71. package/dist/{store-wpx314rk.js → store-4eeezg83.js} +2 -2
  72. package/dist/{store-reader-c5fwa9qx.js → store-reader-g8w2wp88.js} +1 -1
  73. package/dist/{transform-postprocess-phase-yef4mxk3.js → transform-postprocess-phase-vd9rckyd.js} +13 -13
  74. package/dist/v2/auto-search-worker.js +3 -3
  75. package/dist/v2/chunk-embedding-write-worker.js +8 -5
  76. package/dist/v2/{context-mk2h2ven.js → context-6g9j3tq9.js} +248 -160
  77. package/dist/v2/{embedding-backfill-kyn5sv0f.js → embedding-backfill-e44pv5db.js} +4 -4
  78. package/dist/v2/event-subscription.fixture.d.ts +9 -0
  79. package/dist/v2/event-subscription.fixture.d.ts.map +1 -0
  80. package/dist/v2/hidden-model-activity.d.ts +13 -0
  81. package/dist/v2/hidden-model-activity.d.ts.map +1 -1
  82. package/dist/v2/hooks/context.d.ts +1 -0
  83. package/dist/v2/hooks/context.d.ts.map +1 -1
  84. package/dist/v2/hooks/dream-trigger.d.ts +2 -1
  85. package/dist/v2/hooks/dream-trigger.d.ts.map +1 -1
  86. package/dist/v2/hooks/event-subscription-worker.d.ts +11 -0
  87. package/dist/v2/hooks/event-subscription-worker.d.ts.map +1 -0
  88. package/dist/v2/hooks/types.d.ts +1 -0
  89. package/dist/v2/hooks/types.d.ts.map +1 -1
  90. package/dist/v2/hooks/update-check.d.ts +1 -0
  91. package/dist/v2/hooks/update-check.d.ts.map +1 -1
  92. package/dist/v2/{message-index-bounded-j1sxtefe.js → message-index-bounded-nwqfb1p5.js} +3 -3
  93. package/dist/v2/migration-worker.js +3 -3
  94. package/dist/v2/{project-embedding-registry-1jv2rxhb.js → project-embedding-registry-rhzjnypp.js} +3 -3
  95. package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
  96. package/dist/v2/{read-session-chunk-p6z3kmdj.js → read-session-chunk-brqatg83.js} +2 -2
  97. package/dist/v2/{recomp-orchestrator-5t2csd46.js → recomp-orchestrator-j84xfa80.js} +14 -14
  98. package/dist/v2/{render-jpj43axy.js → render-tzs5r2pg.js} +10 -10
  99. package/dist/v2/{search-archive-wbhxp0p1.js → search-archive-31dpm5zs.js} +5 -5
  100. package/dist/v2/{search-w9m2fd5c.js → search-sffewrs4.js} +12 -12
  101. package/dist/v2/{server-47ajg9xc.js → server-16115spd.js} +1 -1
  102. package/dist/v2/server-28jqb7s0.js +6 -0
  103. package/dist/v2/{server-qg8jyfxa.js → server-5xx10mqe.js} +1 -1
  104. package/dist/v2/{server-t45hgcsg.js → server-7jw608jk.js} +2 -2
  105. package/dist/v2/{server-3mb205v9.js → server-83rjf4df.js} +1 -1
  106. package/dist/v2/{server-xpy46ddq.js → server-af25mmb6.js} +3 -3
  107. package/dist/v2/{server-ga6y57vh.js → server-c32505fr.js} +6 -4
  108. package/dist/v2/{server-qdpd8h27.js → server-fn6k1ack.js} +1 -1
  109. package/dist/v2/{server-8m5wk6aq.js → server-ggs7sxp6.js} +5 -5
  110. package/dist/v2/{server-zsbc0n4v.js → server-ghb2q1z9.js} +1 -1
  111. package/dist/v2/{server-af51b1zg.js → server-hqcdvs2n.js} +11 -11
  112. package/dist/v2/{server-9ms9b75c.js → server-j00jprwm.js} +4 -6
  113. package/dist/v2/{server-8f92sd2r.js → server-jqk6g663.js} +72 -27
  114. package/dist/v2/{server-b01a7dhj.js → server-kk2kbzq3.js} +1 -1
  115. package/dist/v2/{server-mc5t7k8v.js → server-ma0qhqg9.js} +1 -1
  116. package/dist/v2/{server-x22jtpna.js → server-n3bfqd0j.js} +4 -2
  117. package/dist/v2/{server-wmpgvvc4.js → server-pjvqyg6g.js} +365 -113
  118. package/dist/v2/{server-jrs4gny6.js → server-qtajgx1e.js} +89 -1
  119. package/dist/v2/server-t104h957.js +177 -0
  120. package/dist/v2/{server-j09jx1n9.js → server-v2r04xds.js} +1 -1
  121. package/dist/v2/{server-3gnpqjez.js → server-v60f6dk3.js} +26 -11
  122. package/dist/v2/{server-7c5p0bh1.js → server-z77hman6.js} +1 -1
  123. package/dist/v2/server.js +31 -40
  124. package/dist/v2/{storage-tags-s7nvvyg8.js → storage-tags-ee72g2zv.js} +1 -1
  125. package/dist/v2/{store-mba47sxn.js → store-9rsrj5pt.js} +2 -2
  126. package/dist/v2/{store-reader-w7w8vfsy.js → store-reader-tb0f9621.js} +1 -1
  127. package/dist/v2/store-reader.d.ts +1 -1
  128. package/dist/v2/store-reader.d.ts.map +1 -1
  129. package/dist/v2/tui/index.d.ts.map +1 -1
  130. package/dist/v2/{v2-archive-reader-5njmg3a3.js → v2-archive-reader-7vrma2dm.js} +1 -1
  131. package/dist/v2/{wrapup-orchestrator-ykgx8hw8.js → wrapup-orchestrator-m1ymvccg.js} +14 -14
  132. package/dist/{v2-archive-reader-y38khjax.js → v2-archive-reader-aqck4zea.js} +1 -1
  133. package/dist/{wrapup-orchestrator-a9tshrp4.js → wrapup-orchestrator-k7azmnym.js} +13 -13
  134. package/package.json +1 -1
  135. package/src/config/migrate-config-location.test.ts +41 -29
  136. package/src/shared/model-suggestion-retry.test.ts +137 -90
  137. package/src/shared/off-thread-migration-clock.test.ts +19 -9
  138. package/src/shared/prompt-async-transport.test.ts +125 -42
  139. package/src/shared/rpc-async-probes.test.ts +56 -36
  140. package/src/shared/rpc-client.test.ts +51 -18
  141. package/src/shared/sqlite-acquisition-routing.test.ts +79 -22
  142. package/src/shared/sqlite-busy-budget-review.test.ts +129 -111
  143. package/src/shared/sqlite-busy-test-support.ts +154 -0
  144. package/src/shared/sqlite-foreground-wait.test.ts +213 -156
  145. package/src/shared/sqlite-pass-scope.test.ts +142 -105
  146. package/src/shared/sqlite-turn-deadline.test.ts +149 -124
  147. package/src/shared/sqlite-write-locker-test-support.ts +44 -12
  148. package/src/shared/stable-json-linear.test.ts +29 -11
  149. package/src/shared/startup-maintenance-policy.test.ts +72 -2
  150. package/src/shared/storage-busy.test.ts +45 -18
  151. package/src/shared/storage-file-mutex-review.test.ts +65 -51
  152. package/src/shared/tui-preferences.test.ts +15 -5
  153. package/src/shared/worker-shutdown.test.ts +26 -20
  154. package/src/tui/data/notification-socket.test.ts +220 -108
  155. package/src/v2/tui/index.ts +5 -1
  156. package/src/v2/tui/status-dialog-fallback.test.ts +23 -1
  157. package/dist/v2/server-84w6rvvf.js +0 -14
@@ -39,16 +39,16 @@ import {
39
39
  sweepAllRegisteredProjects2,
40
40
  _setTestProviderFactoryForProject2,
41
41
  _resetProjectEmbeddingRegistryForTests2
42
- } from "./index-4ba3zp54.js";
42
+ } from "./index-as8bg7eh.js";
43
43
  import"./index-6xg55350.js";
44
44
  import"./index-2amn2s73.js";
45
45
  import"./index-qt1qqasc.js";
46
46
  import"./index-p5ey52j9.js";
47
47
  import"./index-r3f85n7y.js";
48
- import"./index-fd3hkyk1.js";
48
+ import"./index-42fsf88t.js";
49
49
  import"./index-1vv1ka4a.js";
50
50
  import"./index-gcf2x04k.js";
51
- import"./index-vegw385y.js";
51
+ import"./index-cy5fn70d.js";
52
52
  import"./index-geph2sa6.js";
53
53
  import"./index-jsbgw33b.js";
54
54
  import"./index-96ztjvkn.js";
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
19
19
  await main();
20
20
  async function main() {
21
21
  if (input.v2ArchiveReader) {
22
- const { serveV2ArchiveReads } = await import("./v2-archive-reader-y38khjax.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-aqck4zea.js");
23
23
  await serveV2ArchiveReads(port, openConnections);
24
24
  return;
25
25
  }
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
51
51
  await runMessageFtsRowidMapBackfill(db);
52
52
  reply = { kind: "fts-rowid-backfill" };
53
53
  } else if (input.searchArchive) {
54
- const { renderSearchArchive } = await import("./search-archive-yh6xtvrx.js");
54
+ const { renderSearchArchive } = await import("./search-archive-dv483a5c.js");
55
55
  const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-pgc9gxtn.js");
56
56
  const archive = input.searchArchive;
57
57
  let raw;
@@ -7,20 +7,20 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./index-a9wn0d9h.js";
11
- import"./index-sqvkh5d0.js";
10
+ } from "./index-3p08zzfq.js";
11
+ import"./index-xa8jgw6w.js";
12
12
  import"./index-qxzk5s30.js";
13
13
  import"./index-sd3egckz.js";
14
- import"./index-8yj4vd7k.js";
15
- import"./index-8eke8yh2.js";
14
+ import"./index-92p5yfpp.js";
15
+ import"./index-cxh5g5bt.js";
16
16
  import"./index-srpghrje.js";
17
- import"./index-4ba3zp54.js";
17
+ import"./index-as8bg7eh.js";
18
18
  import"./index-6xg55350.js";
19
- import"./index-4536jdzj.js";
20
- import"./index-ab86c21b.js";
19
+ import"./index-ze1t940p.js";
20
+ import"./index-zj0ra8vs.js";
21
21
  import"./index-p8nc9axh.js";
22
22
  import"./index-2amn2s73.js";
23
- import"./index-ke0mkz7g.js";
23
+ import"./index-g1h1efr0.js";
24
24
  import"./index-h1qh9n8b.js";
25
25
  import"./index-fqth7850.js";
26
26
  import"./index-61a853ky.js";
@@ -33,14 +33,14 @@ import"./index-y14pawe1.js";
33
33
  import"./index-y5f5yg5a.js";
34
34
  import"./index-p5ey52j9.js";
35
35
  import"./index-r3f85n7y.js";
36
- import"./index-fd3hkyk1.js";
36
+ import"./index-42fsf88t.js";
37
37
  import"./index-1vv1ka4a.js";
38
38
  import"./index-gcf2x04k.js";
39
- import"./index-f455a0g3.js";
39
+ import"./index-k37h4yrb.js";
40
40
  import"./index-fb3zxn06.js";
41
- import"./index-hyvxmz3e.js";
41
+ import"./index-y1875y4h.js";
42
42
  import"./index-fr0wbhdn.js";
43
- import"./index-vegw385y.js";
43
+ import"./index-cy5fn70d.js";
44
44
  import"./index-geph2sa6.js";
45
45
  import"./index-8k9qpyjf.js";
46
46
  import"./index-xtv4d4hv.js";
@@ -3,11 +3,11 @@ import {
3
3
  renderVerboseRangeForTool2,
4
4
  renderItemByTag2
5
5
  } from "./index-zh683xh2.js";
6
- import"./index-4536jdzj.js";
7
- import"./index-ab86c21b.js";
6
+ import"./index-ze1t940p.js";
7
+ import"./index-zj0ra8vs.js";
8
8
  import"./index-p8nc9axh.js";
9
9
  import"./index-2amn2s73.js";
10
- import"./index-ke0mkz7g.js";
10
+ import"./index-g1h1efr0.js";
11
11
  import"./index-9jqaha1g.js";
12
12
  import"./index-qzfz2tvk.js";
13
13
  import"./index-1zx87sdm.js";
@@ -15,11 +15,11 @@ import"./index-vdzd98ry.js";
15
15
  import"./index-r3f85n7y.js";
16
16
  import"./index-1vv1ka4a.js";
17
17
  import"./index-gcf2x04k.js";
18
- import"./index-f455a0g3.js";
18
+ import"./index-k37h4yrb.js";
19
19
  import"./index-fb3zxn06.js";
20
- import"./index-hyvxmz3e.js";
20
+ import"./index-y1875y4h.js";
21
21
  import"./index-fr0wbhdn.js";
22
- import"./index-vegw385y.js";
22
+ import"./index-cy5fn70d.js";
23
23
  import"./index-geph2sa6.js";
24
24
  import"./index-8k9qpyjf.js";
25
25
  import"./index-xtv4d4hv.js";
@@ -5,15 +5,15 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./index-mwjvjn0p.js";
9
- import"./index-4v50y0jr.js";
8
+ } from "./index-a3t1ck7g.js";
9
+ import"./index-ydevzvfs.js";
10
10
  import"./index-6gd9akdt.js";
11
- import"./index-8yj4vd7k.js";
12
- import"./index-8eke8yh2.js";
11
+ import"./index-92p5yfpp.js";
12
+ import"./index-cxh5g5bt.js";
13
13
  import"./index-srpghrje.js";
14
- import"./index-4ba3zp54.js";
14
+ import"./index-as8bg7eh.js";
15
15
  import"./index-6xg55350.js";
16
- import"./index-ab86c21b.js";
16
+ import"./index-zj0ra8vs.js";
17
17
  import"./index-p8nc9axh.js";
18
18
  import"./index-2amn2s73.js";
19
19
  import"./index-qt1qqasc.js";
@@ -23,12 +23,12 @@ import"./index-1zx87sdm.js";
23
23
  import"./index-vdzd98ry.js";
24
24
  import"./index-p5ey52j9.js";
25
25
  import"./index-r3f85n7y.js";
26
- import"./index-fd3hkyk1.js";
26
+ import"./index-42fsf88t.js";
27
27
  import"./index-1vv1ka4a.js";
28
28
  import"./index-gcf2x04k.js";
29
- import"./index-hyvxmz3e.js";
29
+ import"./index-y1875y4h.js";
30
30
  import"./index-fr0wbhdn.js";
31
- import"./index-vegw385y.js";
31
+ import"./index-cy5fn70d.js";
32
32
  import"./index-geph2sa6.js";
33
33
  import"./index-xtv4d4hv.js";
34
34
  import"./index-jsbgw33b.js";
@@ -2,8 +2,8 @@ import {
2
2
  unresolvedLiveTailRefusal2,
3
3
  renderSearchArchive2,
4
4
  renderSearchArchiveOffThread2
5
- } from "./index-jjxpmypb.js";
6
- import"./index-3nxhxeeg.js";
5
+ } from "./index-e7awy9eb.js";
6
+ import"./index-sfgz2h7y.js";
7
7
  import"./index-6gd9akdt.js";
8
8
  import"./index-9jqaha1g.js";
9
9
  import"./index-qzfz2tvk.js";
@@ -0,0 +1,21 @@
1
+ import { Database as NativeDatabase } from "bun:sqlite";
2
+ type Method = "exec" | "prepare" | "run" | "get" | "all" | "values" | "iterate.next";
3
+ /**
4
+ * Install before opening the connection: the router captures the native methods
5
+ * when it opens. Match only the SQL under test. Each matched native call sees a
6
+ * zero timeout so the real lock can return BUSY immediately; `timeouts` records
7
+ * the policy value before that change. Restore the spy after closing the fixture.
8
+ */
9
+ export declare function observeSqliteBusy(matches: (sql: string, method: Method, db: NativeDatabase) => boolean, onAttempt?: (timeout: number, sql: string) => void, onBusy?: (timeout: number, sql: string) => void): {
10
+ timeouts: number[];
11
+ errors: unknown[];
12
+ restore(): void;
13
+ };
14
+ /** Freeze the monotonic clock and advance retry timers one boundary at a time. */
15
+ export declare function startSqliteRetryClock(onSchedule?: (delay: number) => void): {
16
+ elapse(ms: number): void;
17
+ advance(ms: number): Promise<void>;
18
+ restore(): void;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=sqlite-busy-test-support.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-busy-test-support.d.ts","sourceRoot":"","sources":["../../src/shared/sqlite-busy-test-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAyB,MAAM,YAAY,CAAC;AAE/E,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,cAAc,CAAC;AAErF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC7B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,cAAc,KAAK,OAAO,EACrE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,EAClD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI;;;;EAqFlD;AAED,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;eAiCvD,MAAM;gBAGC,MAAM;;EAgB/B"}
@@ -2,6 +2,18 @@ export interface SqliteWriteLocker {
2
2
  /** Resolves with the locker's exit code after it has committed and exited. */
3
3
  exited: Promise<number>;
4
4
  }
5
+ type Lock = "write" | "exclusive" | {
6
+ read: string;
7
+ };
5
8
  /** Start the locker and resolve once it reports that it holds the write lock. */
6
9
  export declare function startSqliteWriteLocker(dbPath: string, holdMs: number): Promise<SqliteWriteLocker>;
10
+ /** Keep the lock until release(); an exit code of zero confirms the commit. */
11
+ export declare function startGatedSqliteWriteLocker(dbPath: string, holdMs?: number): Promise<SqliteWriteLocker & {
12
+ release: () => void;
13
+ }>;
14
+ /** Use an exclusive lock to block reads, or a read transaction to block COMMIT in DELETE mode. */
15
+ export declare function startGatedSqliteLocker(dbPath: string, lock: Lock): Promise<SqliteWriteLocker & {
16
+ release: () => void;
17
+ }>;
18
+ export {};
7
19
  //# sourceMappingURL=sqlite-write-locker-test-support.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite-write-locker-test-support.d.ts","sourceRoot":"","sources":["../../src/shared/sqlite-write-locker-test-support.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,iBAAiB;IAC9B,8EAA8E;IAC9E,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,iFAAiF;AACjF,wBAAsB,sBAAsB,CACxC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,iBAAiB,CAAC,CAmB5B"}
1
+ {"version":3,"file":"sqlite-write-locker-test-support.d.ts","sourceRoot":"","sources":["../../src/shared/sqlite-write-locker-test-support.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,iBAAiB;IAC9B,8EAA8E;IAC9E,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,KAAK,IAAI,GAAG,OAAO,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAuCrD,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAEjG;AAED,+EAA+E;AAC/E,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,SAAI;aAtC5B,MAAM,IAAI;GAwCnD;AAED,kGAAkG;AAClG,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI;aA3CvB,MAAM,IAAI;GA6CnD"}
@@ -8,8 +8,8 @@ import {
8
8
  readV2RawMessagePagesForConversion2,
9
9
  createV2RawMessageReader2,
10
10
  createV2RawMessageProvider2
11
- } from "./index-4dywj733.js";
12
- import"./index-ke0mkz7g.js";
11
+ } from "./index-dzb1yc9w.js";
12
+ import"./index-g1h1efr0.js";
13
13
  import"./index-8k9qpyjf.js";
14
14
  import"./index-58e3y90n.js";
15
15
  import"./index-2m3t73wk.js";
@@ -3,7 +3,7 @@ import {
3
3
  RAW_MESSAGE_TYPES2,
4
4
  V2StoreReaderPool2,
5
5
  V2StoreReader2
6
- } from "./index-ke0mkz7g.js";
6
+ } from "./index-g1h1efr0.js";
7
7
  import"./index-58e3y90n.js";
8
8
  import"./index-2m3t73wk.js";
9
9
  import"./index-gzy5w8ya.js";
@@ -19,21 +19,21 @@ import {
19
19
  finalizeMessageRepresentation2,
20
20
  runPostTransformPhase2,
21
21
  checkM0MutationDriftAndSignal2
22
- } from "./index-tvh3y650.js";
23
- import"./index-4v50y0jr.js";
24
- import"./index-sqvkh5d0.js";
22
+ } from "./index-5phmpcme.js";
23
+ import"./index-ydevzvfs.js";
24
+ import"./index-xa8jgw6w.js";
25
25
  import"./index-qxzk5s30.js";
26
26
  import"./index-sd3egckz.js";
27
- import"./index-8yj4vd7k.js";
28
- import"./index-8eke8yh2.js";
27
+ import"./index-92p5yfpp.js";
28
+ import"./index-cxh5g5bt.js";
29
29
  import"./index-srpghrje.js";
30
- import"./index-4ba3zp54.js";
30
+ import"./index-as8bg7eh.js";
31
31
  import"./index-6xg55350.js";
32
- import"./index-4536jdzj.js";
33
- import"./index-ab86c21b.js";
32
+ import"./index-ze1t940p.js";
33
+ import"./index-zj0ra8vs.js";
34
34
  import"./index-p8nc9axh.js";
35
35
  import"./index-2amn2s73.js";
36
- import"./index-ke0mkz7g.js";
36
+ import"./index-g1h1efr0.js";
37
37
  import"./index-h1qh9n8b.js";
38
38
  import"./index-fqth7850.js";
39
39
  import"./index-61a853ky.js";
@@ -46,14 +46,14 @@ import"./index-y14pawe1.js";
46
46
  import"./index-y5f5yg5a.js";
47
47
  import"./index-p5ey52j9.js";
48
48
  import"./index-r3f85n7y.js";
49
- import"./index-fd3hkyk1.js";
49
+ import"./index-42fsf88t.js";
50
50
  import"./index-1vv1ka4a.js";
51
51
  import"./index-gcf2x04k.js";
52
- import"./index-f455a0g3.js";
52
+ import"./index-k37h4yrb.js";
53
53
  import"./index-fb3zxn06.js";
54
- import"./index-hyvxmz3e.js";
54
+ import"./index-y1875y4h.js";
55
55
  import"./index-fr0wbhdn.js";
56
- import"./index-vegw385y.js";
56
+ import"./index-cy5fn70d.js";
57
57
  import"./index-geph2sa6.js";
58
58
  import"./index-8k9qpyjf.js";
59
59
  import"./index-xtv4d4hv.js";
@@ -27,11 +27,11 @@ serveWorkerJobs(async (initial, port) => {
27
27
  { Database, registerSqliteDiagnosticSink },
28
28
  { log }
29
29
  ] = await Promise.all([
30
- import("./embedding-backfill-kyn5sv0f.js"),
30
+ import("./embedding-backfill-e44pv5db.js"),
31
31
  import("./embedding-cache-fhdkn9nc.js"),
32
32
  import("./storage-memory-24hsvzy8.js"),
33
- import("./project-embedding-registry-1jv2rxhb.js"),
34
- import("./search-w9m2fd5c.js"),
33
+ import("./project-embedding-registry-rhzjnypp.js"),
34
+ import("./search-sffewrs4.js"),
35
35
  import("./compartment-chunk-embedding-6v74y2r3.js"),
36
36
  import("./embedding-activity-g1dhes6g.js"),
37
37
  import("./harness-e4avh192.js"),
@@ -11,8 +11,11 @@ import {
11
11
  isWorkerCloseMessage,
12
12
  exitOnWorkerClose
13
13
  } from "./server-1d042x6w.js";
14
- import"./server-d46xewmt.js";
15
14
  import"./server-xc7t2r4k.js";
15
+ import {
16
+ tryInstallChunkScopeRepairTriggers
17
+ } from "./server-qtajgx1e.js";
18
+ import"./server-d46xewmt.js";
16
19
  import"./server-b5eg9ct6.js";
17
20
  import"./server-v0p37hm2.js";
18
21
  import"./server-96ztjvkn.js";
@@ -29,16 +32,15 @@ import {
29
32
  renewGitSweepLease,
30
33
  releaseGitSweepLease,
31
34
  recordSessionProjectIdentity
32
- } from "./server-7c5p0bh1.js";
35
+ } from "./server-z77hman6.js";
33
36
  import"./server-sfffm587.js";
34
37
  import"./server-3qeqa3b6.js";
35
- import"./server-jrs4gny6.js";
36
38
  import {
37
39
  LATEST_SUPPORTED_VERSION,
38
40
  enforceSchemaFence
39
- } from "./server-ga6y57vh.js";
41
+ } from "./server-c32505fr.js";
40
42
  import"./server-5zx51pm4.js";
41
- import"./server-3mb205v9.js";
43
+ import"./server-83rjf4df.js";
42
44
  import"./server-bzebqckc.js";
43
45
  import"./server-fr0wbhdn.js";
44
46
  import"./server-2ra6pwf3.js";
@@ -58,6 +60,7 @@ serveWorkerJobs((workerData, port) => {
58
60
  const timeout = Math.max(0, Math.floor(workerData.timeout));
59
61
  db.exec(`PRAGMA busy_timeout=${timeout}; PRAGMA foreign_keys=ON`);
60
62
  configureContextDatabasePragmas2(db);
63
+ tryInstallChunkScopeRepairTriggers(db);
61
64
  exitOnWorkerClose(port, () => db.close(), false);
62
65
  port.on("message", (input) => {
63
66
  if (isWorkerCloseMessage(input))