@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.
- package/dist/auto-search-worker.js +3 -3
- package/dist/chunk-embedding-write-worker.js +8 -5
- package/dist/{context-7hbmnpe8.js → context-ywdwfzg5.js} +116 -136
- package/dist/{embedding-backfill-aratv25b.js → embedding-backfill-kqwx0vhj.js} +4 -4
- package/dist/features/magic-context/chunk-embedding-write-worker-install-failure.fixture.d.ts +2 -0
- package/dist/features/magic-context/chunk-embedding-write-worker-install-failure.fixture.d.ts.map +1 -0
- package/dist/features/magic-context/chunk-scope-repair-revision.d.ts +16 -1
- package/dist/features/magic-context/chunk-scope-repair-revision.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/verify-checkout.d.ts +2 -0
- package/dist/features/magic-context/dreamer/verify-checkout.d.ts.map +1 -0
- package/dist/features/magic-context/memory/embedding-worker-observer.fixture.d.ts +26 -0
- package/dist/features/magic-context/memory/embedding-worker-observer.fixture.d.ts.map +1 -0
- package/dist/features/magic-context/message-fts-rowid-map-startup-worker-test-support.d.ts +2 -0
- package/dist/features/magic-context/message-fts-rowid-map-startup-worker-test-support.d.ts.map +1 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts +5 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/search-pool-fixture.d.ts +15 -0
- package/dist/features/magic-context/search-pool-fixture.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +4 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/history-boundary-repair.d.ts +7 -2
- package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts +1 -0
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-persist.d.ts +1 -0
- package/dist/hooks/magic-context/lkg-persist.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +7 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +1 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +3 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-8gzmeyae.js → index-20e7w8v8.js} +3 -3
- package/dist/{index-a9wn0d9h.js → index-3p08zzfq.js} +3 -3
- package/dist/{index-fd3hkyk1.js → index-42fsf88t.js} +1 -1
- package/dist/{index-tvh3y650.js → index-5phmpcme.js} +5 -5
- package/dist/{index-8yj4vd7k.js → index-92p5yfpp.js} +1 -1
- package/dist/{index-mwjvjn0p.js → index-a3t1ck7g.js} +6 -6
- package/dist/{index-4ba3zp54.js → index-as8bg7eh.js} +365 -113
- package/dist/{index-8eke8yh2.js → index-cxh5g5bt.js} +1 -1
- package/dist/{index-vegw385y.js → index-cy5fn70d.js} +89 -1
- package/dist/{index-4dywj733.js → index-dzb1yc9w.js} +1 -1
- package/dist/{index-3rp2b482.js → index-e4szqthq.js} +299 -37
- package/dist/{index-jjxpmypb.js → index-e7awy9eb.js} +1 -1
- package/dist/{index-ke0mkz7g.js → index-g1h1efr0.js} +1 -1
- package/dist/{index-f455a0g3.js → index-k37h4yrb.js} +5 -3
- package/dist/{index-3nxhxeeg.js → index-sfgz2h7y.js} +4 -4
- package/dist/{index-sqvkh5d0.js → index-xa8jgw6w.js} +20 -7
- package/dist/{index-hyvxmz3e.js → index-y1875y4h.js} +1 -1
- package/dist/{index-4v50y0jr.js → index-ydevzvfs.js} +1 -1
- package/dist/{index-4536jdzj.js → index-ze1t940p.js} +68 -25
- package/dist/{index-ab86c21b.js → index-zj0ra8vs.js} +1 -1
- package/dist/index.js +50 -59
- package/dist/migration-worker.js +3 -3
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-1n4cexsv.js → project-embedding-registry-0z0nd73p.js} +3 -3
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-16rs8aty.js → recomp-orchestrator-7sf94073.js} +12 -12
- package/dist/{render-f32trg2t.js → render-93qzv0vk.js} +6 -6
- package/dist/{search-v9ywqb4f.js → search-7e1rcqb7.js} +9 -9
- package/dist/{search-archive-yh6xtvrx.js → search-archive-dv483a5c.js} +2 -2
- package/dist/shared/sqlite-busy-test-support.d.ts +21 -0
- package/dist/shared/sqlite-busy-test-support.d.ts.map +1 -0
- package/dist/shared/sqlite-write-locker-test-support.d.ts +12 -0
- package/dist/shared/sqlite-write-locker-test-support.d.ts.map +1 -1
- package/dist/{store-wpx314rk.js → store-4eeezg83.js} +2 -2
- package/dist/{store-reader-c5fwa9qx.js → store-reader-g8w2wp88.js} +1 -1
- package/dist/{transform-postprocess-phase-yef4mxk3.js → transform-postprocess-phase-vd9rckyd.js} +13 -13
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/chunk-embedding-write-worker.js +8 -5
- package/dist/v2/{context-mk2h2ven.js → context-6g9j3tq9.js} +248 -160
- package/dist/v2/{embedding-backfill-kyn5sv0f.js → embedding-backfill-e44pv5db.js} +4 -4
- package/dist/v2/event-subscription.fixture.d.ts +9 -0
- package/dist/v2/event-subscription.fixture.d.ts.map +1 -0
- package/dist/v2/hidden-model-activity.d.ts +13 -0
- package/dist/v2/hidden-model-activity.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts +1 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/dream-trigger.d.ts +2 -1
- package/dist/v2/hooks/dream-trigger.d.ts.map +1 -1
- package/dist/v2/hooks/event-subscription-worker.d.ts +11 -0
- package/dist/v2/hooks/event-subscription-worker.d.ts.map +1 -0
- package/dist/v2/hooks/types.d.ts +1 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/hooks/update-check.d.ts +1 -0
- package/dist/v2/hooks/update-check.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-j1sxtefe.js → message-index-bounded-nwqfb1p5.js} +3 -3
- package/dist/v2/migration-worker.js +3 -3
- package/dist/v2/{project-embedding-registry-1jv2rxhb.js → project-embedding-registry-rhzjnypp.js} +3 -3
- package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
- package/dist/v2/{read-session-chunk-p6z3kmdj.js → read-session-chunk-brqatg83.js} +2 -2
- package/dist/v2/{recomp-orchestrator-5t2csd46.js → recomp-orchestrator-j84xfa80.js} +14 -14
- package/dist/v2/{render-jpj43axy.js → render-tzs5r2pg.js} +10 -10
- package/dist/v2/{search-archive-wbhxp0p1.js → search-archive-31dpm5zs.js} +5 -5
- package/dist/v2/{search-w9m2fd5c.js → search-sffewrs4.js} +12 -12
- package/dist/v2/{server-47ajg9xc.js → server-16115spd.js} +1 -1
- package/dist/v2/server-28jqb7s0.js +6 -0
- package/dist/v2/{server-qg8jyfxa.js → server-5xx10mqe.js} +1 -1
- package/dist/v2/{server-t45hgcsg.js → server-7jw608jk.js} +2 -2
- package/dist/v2/{server-3mb205v9.js → server-83rjf4df.js} +1 -1
- package/dist/v2/{server-xpy46ddq.js → server-af25mmb6.js} +3 -3
- package/dist/v2/{server-ga6y57vh.js → server-c32505fr.js} +6 -4
- package/dist/v2/{server-qdpd8h27.js → server-fn6k1ack.js} +1 -1
- package/dist/v2/{server-8m5wk6aq.js → server-ggs7sxp6.js} +5 -5
- package/dist/v2/{server-zsbc0n4v.js → server-ghb2q1z9.js} +1 -1
- package/dist/v2/{server-af51b1zg.js → server-hqcdvs2n.js} +11 -11
- package/dist/v2/{server-9ms9b75c.js → server-j00jprwm.js} +4 -6
- package/dist/v2/{server-8f92sd2r.js → server-jqk6g663.js} +72 -27
- package/dist/v2/{server-b01a7dhj.js → server-kk2kbzq3.js} +1 -1
- package/dist/v2/{server-mc5t7k8v.js → server-ma0qhqg9.js} +1 -1
- package/dist/v2/{server-x22jtpna.js → server-n3bfqd0j.js} +4 -2
- package/dist/v2/{server-wmpgvvc4.js → server-pjvqyg6g.js} +365 -113
- package/dist/v2/{server-jrs4gny6.js → server-qtajgx1e.js} +89 -1
- package/dist/v2/server-t104h957.js +177 -0
- package/dist/v2/{server-j09jx1n9.js → server-v2r04xds.js} +1 -1
- package/dist/v2/{server-3gnpqjez.js → server-v60f6dk3.js} +26 -11
- package/dist/v2/{server-7c5p0bh1.js → server-z77hman6.js} +1 -1
- package/dist/v2/server.js +31 -40
- package/dist/v2/{storage-tags-s7nvvyg8.js → storage-tags-ee72g2zv.js} +1 -1
- package/dist/v2/{store-mba47sxn.js → store-9rsrj5pt.js} +2 -2
- package/dist/v2/{store-reader-w7w8vfsy.js → store-reader-tb0f9621.js} +1 -1
- package/dist/v2/store-reader.d.ts +1 -1
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/tui/index.d.ts.map +1 -1
- package/dist/v2/{v2-archive-reader-5njmg3a3.js → v2-archive-reader-7vrma2dm.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-ykgx8hw8.js → wrapup-orchestrator-m1ymvccg.js} +14 -14
- package/dist/{v2-archive-reader-y38khjax.js → v2-archive-reader-aqck4zea.js} +1 -1
- package/dist/{wrapup-orchestrator-a9tshrp4.js → wrapup-orchestrator-k7azmnym.js} +13 -13
- package/package.json +1 -1
- package/src/config/migrate-config-location.test.ts +41 -29
- package/src/shared/model-suggestion-retry.test.ts +137 -90
- package/src/shared/off-thread-migration-clock.test.ts +19 -9
- package/src/shared/prompt-async-transport.test.ts +125 -42
- package/src/shared/rpc-async-probes.test.ts +56 -36
- package/src/shared/rpc-client.test.ts +51 -18
- package/src/shared/sqlite-acquisition-routing.test.ts +79 -22
- package/src/shared/sqlite-busy-budget-review.test.ts +129 -111
- package/src/shared/sqlite-busy-test-support.ts +154 -0
- package/src/shared/sqlite-foreground-wait.test.ts +213 -156
- package/src/shared/sqlite-pass-scope.test.ts +142 -105
- package/src/shared/sqlite-turn-deadline.test.ts +149 -124
- package/src/shared/sqlite-write-locker-test-support.ts +44 -12
- package/src/shared/stable-json-linear.test.ts +29 -11
- package/src/shared/startup-maintenance-policy.test.ts +72 -2
- package/src/shared/storage-busy.test.ts +45 -18
- package/src/shared/storage-file-mutex-review.test.ts +65 -51
- package/src/shared/tui-preferences.test.ts +15 -5
- package/src/shared/worker-shutdown.test.ts +26 -20
- package/src/tui/data/notification-socket.test.ts +220 -108
- package/src/v2/tui/index.ts +5 -1
- package/src/v2/tui/status-dialog-fallback.test.ts +23 -1
- package/dist/v2/server-84w6rvvf.js +0 -14
package/dist/{project-embedding-registry-1n4cexsv.js → project-embedding-registry-0z0nd73p.js}
RENAMED
|
@@ -39,16 +39,16 @@ import {
|
|
|
39
39
|
sweepAllRegisteredProjects2,
|
|
40
40
|
_setTestProviderFactoryForProject2,
|
|
41
41
|
_resetProjectEmbeddingRegistryForTests2
|
|
42
|
-
} from "./index-
|
|
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-
|
|
48
|
+
import"./index-42fsf88t.js";
|
|
49
49
|
import"./index-1vv1ka4a.js";
|
|
50
50
|
import"./index-gcf2x04k.js";
|
|
51
|
-
import"./index-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
-
import"./index-
|
|
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-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-92p5yfpp.js";
|
|
15
|
+
import"./index-cxh5g5bt.js";
|
|
16
16
|
import"./index-srpghrje.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-as8bg7eh.js";
|
|
18
18
|
import"./index-6xg55350.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
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-
|
|
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-
|
|
36
|
+
import"./index-42fsf88t.js";
|
|
37
37
|
import"./index-1vv1ka4a.js";
|
|
38
38
|
import"./index-gcf2x04k.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-k37h4yrb.js";
|
|
40
40
|
import"./index-fb3zxn06.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-y1875y4h.js";
|
|
42
42
|
import"./index-fr0wbhdn.js";
|
|
43
|
-
import"./index-
|
|
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-
|
|
7
|
-
import"./index-
|
|
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-
|
|
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-
|
|
18
|
+
import"./index-k37h4yrb.js";
|
|
19
19
|
import"./index-fb3zxn06.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-y1875y4h.js";
|
|
21
21
|
import"./index-fr0wbhdn.js";
|
|
22
|
-
import"./index-
|
|
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-
|
|
9
|
-
import"./index-
|
|
8
|
+
} from "./index-a3t1ck7g.js";
|
|
9
|
+
import"./index-ydevzvfs.js";
|
|
10
10
|
import"./index-6gd9akdt.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-92p5yfpp.js";
|
|
12
|
+
import"./index-cxh5g5bt.js";
|
|
13
13
|
import"./index-srpghrje.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-as8bg7eh.js";
|
|
15
15
|
import"./index-6xg55350.js";
|
|
16
|
-
import"./index-
|
|
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-
|
|
26
|
+
import"./index-42fsf88t.js";
|
|
27
27
|
import"./index-1vv1ka4a.js";
|
|
28
28
|
import"./index-gcf2x04k.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-y1875y4h.js";
|
|
30
30
|
import"./index-fr0wbhdn.js";
|
|
31
|
-
import"./index-
|
|
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-
|
|
6
|
-
import"./index-
|
|
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,
|
|
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-
|
|
12
|
-
import"./index-
|
|
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";
|
package/dist/{transform-postprocess-phase-yef4mxk3.js → transform-postprocess-phase-vd9rckyd.js}
RENAMED
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
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-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-92p5yfpp.js";
|
|
28
|
+
import"./index-cxh5g5bt.js";
|
|
29
29
|
import"./index-srpghrje.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-as8bg7eh.js";
|
|
31
31
|
import"./index-6xg55350.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
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-
|
|
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-
|
|
49
|
+
import"./index-42fsf88t.js";
|
|
50
50
|
import"./index-1vv1ka4a.js";
|
|
51
51
|
import"./index-gcf2x04k.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-k37h4yrb.js";
|
|
53
53
|
import"./index-fb3zxn06.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-y1875y4h.js";
|
|
55
55
|
import"./index-fr0wbhdn.js";
|
|
56
|
-
import"./index-
|
|
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-
|
|
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-
|
|
34
|
-
import("./search-
|
|
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-
|
|
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-
|
|
41
|
+
} from "./server-c32505fr.js";
|
|
40
42
|
import"./server-5zx51pm4.js";
|
|
41
|
-
import"./server-
|
|
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))
|