@cortexkit/opencode-magic-context 0.49.24 → 0.49.25
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 +1 -1
- package/dist/chunk-embedding-write-worker.js +2 -2
- package/dist/{context-tvrjhnmj.js → context-keb00be8.js} +22 -16
- package/dist/features/magic-context/tool-definition-tokens.d.ts +113 -57
- package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +12 -4
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-measured-request.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay-fit.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/signed-thinking-fit-snapshot.d.ts +42 -0
- package/dist/hooks/magic-context/signed-thinking-fit-snapshot.d.ts.map +1 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-dds7cxhz.js → index-0s8454t2.js} +9 -9
- package/dist/{index-p6evxfcc.js → index-awcftgmx.js} +5 -47
- package/dist/{index-8e9qsnrw.js → index-axjgxeww.js} +6 -4
- package/dist/{index-57jf5ztp.js → index-bhyksfyy.js} +1 -1
- package/dist/index-cfaet9cg.js +405 -0
- package/dist/{index-7516anfj.js → index-ebsvmc5s.js} +3 -3
- package/dist/{index-21bkd3m6.js → index-n18sch77.js} +1 -1
- package/dist/{index-jrjr58ez.js → index-q7ywt6xt.js} +2 -2
- package/dist/{index-6g7tyb6e.js → index-y6xpzjzr.js} +69 -24
- package/dist/{index-t1zk694n.js → index-yrrsp47d.js} +13 -11
- package/dist/{index-jd0y50w3.js → index-zzrzjnx5.js} +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -20
- package/dist/{message-index-1sgzev6c.js → message-index-3g966xn7.js} +3 -3
- package/dist/{message-index-bounded-k8pgrxad.js → message-index-bounded-vaeqhp9w.js} +3 -3
- package/dist/migration-worker.js +2 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/raw-ordinal-warmup-worker.js +3 -3
- package/dist/{read-session-chunk-q9z6s48t.js → read-session-chunk-z5gnc0zb.js} +2 -2
- package/dist/{recomp-orchestrator-hr8ddk8z.js → recomp-orchestrator-qwqeskhq.js} +6 -6
- package/dist/{search-3zjjmc60.js → search-84zfqeky.js} +4 -4
- package/dist/{search-archive-c00etw7k.js → search-archive-mfabzyn2.js} +3 -3
- package/dist/{transform-postprocess-phase-rredw6bz.js → transform-postprocess-phase-hr1ntmjj.js} +6 -6
- package/dist/v2/auto-search-worker.js +1 -1
- package/dist/v2/chunk-embedding-write-worker.js +2 -2
- package/dist/v2/{context-zbydzq4g.js → context-y7wfvdve.js} +77 -26
- package/dist/v2/hooks/context.d.ts +4 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-a9xa8wsq.js → message-index-bounded-te303atj.js} +3 -3
- package/dist/v2/{message-index-5gnnn64b.js → message-index-fz6b4jeh.js} +3 -3
- package/dist/v2/migration-worker.js +2 -2
- package/dist/v2/raw-ordinal-warmup-worker.js +3 -3
- package/dist/v2/{read-session-chunk-qqvda7zv.js → read-session-chunk-knvkq1hf.js} +2 -2
- package/dist/v2/{recomp-orchestrator-nmt9y25j.js → recomp-orchestrator-e8a4jpvr.js} +5 -5
- package/dist/v2/{search-archive-dhqj1w31.js → search-archive-vrwgxv6z.js} +3 -3
- package/dist/v2/{search-6dawx2gt.js → search-hav4dggf.js} +4 -4
- package/dist/v2/{server-gwmshgx9.js → server-5brp2rfn.js} +13 -11
- package/dist/v2/{server-mefps930.js → server-6a8pxpxg.js} +5 -47
- package/dist/v2/server-7d6m1p2b.js +361 -0
- package/dist/v2/{server-r209n2fk.js → server-7weh65vd.js} +9 -9
- package/dist/v2/{server-y9ncq4ck.js → server-e75vag9d.js} +2 -2
- package/dist/v2/{server-16dpnz56.js → server-m6yyn961.js} +1 -1
- package/dist/v2/{server-9e55n4wx.js → server-tfawsj08.js} +1 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{wrapup-orchestrator-9z81xj66.js → wrapup-orchestrator-ycs8y6n4.js} +5 -5
- package/dist/{wrapup-orchestrator-dbnb530w.js → wrapup-orchestrator-f642w8n3.js} +7 -7
- package/package.json +1 -1
- package/dist/index-j76ah6d7.js +0 -120
- package/dist/v2/server-d1dzgvwd.js +0 -120
|
@@ -51,7 +51,7 @@ async function main() {
|
|
|
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-mfabzyn2.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-s4amywnh.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -84,7 +84,7 @@ async function main() {
|
|
|
84
84
|
{ configureContextDatabasePragmas }
|
|
85
85
|
] = await Promise.all([
|
|
86
86
|
import("./harness-e4avh192.js"),
|
|
87
|
-
import("./message-index-
|
|
87
|
+
import("./message-index-3g966xn7.js"),
|
|
88
88
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
89
89
|
]);
|
|
90
90
|
setHarness(input.harness ?? "opencode");
|
|
@@ -104,7 +104,7 @@ async function main() {
|
|
|
104
104
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
105
105
|
setHarness(input.harness ?? "opencode");
|
|
106
106
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
107
|
-
import("./message-index-bounded-
|
|
107
|
+
import("./message-index-bounded-vaeqhp9w.js"),
|
|
108
108
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
109
109
|
]);
|
|
110
110
|
configureContextDatabasePragmas(db);
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
readSessionChunk2,
|
|
36
36
|
getRawSessionMessageIdsThrough2,
|
|
37
37
|
readRawSessionSeedTail2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-yrrsp47d.js";
|
|
39
39
|
import"./index-whcgcfrv.js";
|
|
40
40
|
import"./index-1zx87sdm.js";
|
|
41
41
|
import"./index-c9zrgcnt.js";
|
|
42
42
|
import"./index-nxrsns5x.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-cfaet9cg.js";
|
|
44
44
|
import"./index-x9k3mqrf.js";
|
|
45
45
|
import"./index-58e3y90n.js";
|
|
46
46
|
import"./index-7tdtpqrg.js";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-zzrzjnx5.js";
|
|
11
|
+
import"./index-0s8454t2.js";
|
|
12
12
|
import"./index-qgh1qwjj.js";
|
|
13
13
|
import"./index-z928hmnp.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-awcftgmx.js";
|
|
15
15
|
import"./index-sd3egckz.js";
|
|
16
16
|
import"./index-t6j3qxnd.js";
|
|
17
17
|
import"./index-z05n7702.js";
|
|
@@ -20,7 +20,7 @@ import"./index-4dhv7mqz.js";
|
|
|
20
20
|
import"./index-spwjbkc7.js";
|
|
21
21
|
import"./index-jcr6pe7z.js";
|
|
22
22
|
import"./index-qt1qqasc.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-yrrsp47d.js";
|
|
24
24
|
import"./index-whcgcfrv.js";
|
|
25
25
|
import"./index-1zx87sdm.js";
|
|
26
26
|
import"./index-c9zrgcnt.js";
|
|
@@ -31,14 +31,14 @@ import"./index-nxrsns5x.js";
|
|
|
31
31
|
import"./index-kfyb3k6n.js";
|
|
32
32
|
import"./index-3d5wnkq7.js";
|
|
33
33
|
import"./index-wfybj1dw.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-q7ywt6xt.js";
|
|
35
35
|
import"./index-fb3zxn06.js";
|
|
36
36
|
import"./index-9q1g3c5q.js";
|
|
37
37
|
import"./index-kq5w68dp.js";
|
|
38
38
|
import"./index-szf8r0ba.js";
|
|
39
39
|
import"./index-fr0wbhdn.js";
|
|
40
40
|
import"./index-c7phnbvk.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-cfaet9cg.js";
|
|
42
42
|
import"./index-x9k3mqrf.js";
|
|
43
43
|
import"./index-58e3y90n.js";
|
|
44
44
|
import"./index-7tdtpqrg.js";
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-n18sch77.js";
|
|
9
9
|
import"./index-kaqs6h31.js";
|
|
10
10
|
import"./index-z928hmnp.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-awcftgmx.js";
|
|
12
12
|
import"./index-t6j3qxnd.js";
|
|
13
13
|
import"./index-z05n7702.js";
|
|
14
14
|
import"./index-jjvbk92s.js";
|
|
15
15
|
import"./index-4dhv7mqz.js";
|
|
16
16
|
import"./index-qt1qqasc.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-yrrsp47d.js";
|
|
18
18
|
import"./index-whcgcfrv.js";
|
|
19
19
|
import"./index-1zx87sdm.js";
|
|
20
20
|
import"./index-c9zrgcnt.js";
|
|
@@ -28,7 +28,7 @@ import"./index-kq5w68dp.js";
|
|
|
28
28
|
import"./index-szf8r0ba.js";
|
|
29
29
|
import"./index-fr0wbhdn.js";
|
|
30
30
|
import"./index-c7phnbvk.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-cfaet9cg.js";
|
|
32
32
|
import"./index-x9k3mqrf.js";
|
|
33
33
|
import"./index-58e3y90n.js";
|
|
34
34
|
import"./index-7tdtpqrg.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2,
|
|
3
3
|
renderSearchArchiveOffThread2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bhyksfyy.js";
|
|
5
5
|
import"./index-kaqs6h31.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-yrrsp47d.js";
|
|
7
7
|
import"./index-whcgcfrv.js";
|
|
8
8
|
import"./index-1zx87sdm.js";
|
|
9
9
|
import"./index-c9zrgcnt.js";
|
|
10
10
|
import"./index-nxrsns5x.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-cfaet9cg.js";
|
|
12
12
|
import"./index-x9k3mqrf.js";
|
|
13
13
|
import"./index-58e3y90n.js";
|
|
14
14
|
import"./index-7tdtpqrg.js";
|
package/dist/{transform-postprocess-phase-rredw6bz.js → transform-postprocess-phase-hr1ntmjj.js}
RENAMED
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
} from "./index-axjgxeww.js";
|
|
23
|
+
import"./index-0s8454t2.js";
|
|
24
24
|
import"./index-qgh1qwjj.js";
|
|
25
25
|
import"./index-z928hmnp.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-awcftgmx.js";
|
|
27
27
|
import"./index-sd3egckz.js";
|
|
28
28
|
import"./index-t6j3qxnd.js";
|
|
29
29
|
import"./index-z05n7702.js";
|
|
@@ -32,7 +32,7 @@ import"./index-4dhv7mqz.js";
|
|
|
32
32
|
import"./index-spwjbkc7.js";
|
|
33
33
|
import"./index-jcr6pe7z.js";
|
|
34
34
|
import"./index-qt1qqasc.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-yrrsp47d.js";
|
|
36
36
|
import"./index-whcgcfrv.js";
|
|
37
37
|
import"./index-1zx87sdm.js";
|
|
38
38
|
import"./index-c9zrgcnt.js";
|
|
@@ -43,14 +43,14 @@ import"./index-nxrsns5x.js";
|
|
|
43
43
|
import"./index-kfyb3k6n.js";
|
|
44
44
|
import"./index-3d5wnkq7.js";
|
|
45
45
|
import"./index-wfybj1dw.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-q7ywt6xt.js";
|
|
47
47
|
import"./index-fb3zxn06.js";
|
|
48
48
|
import"./index-9q1g3c5q.js";
|
|
49
49
|
import"./index-kq5w68dp.js";
|
|
50
50
|
import"./index-szf8r0ba.js";
|
|
51
51
|
import"./index-fr0wbhdn.js";
|
|
52
52
|
import"./index-c7phnbvk.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-cfaet9cg.js";
|
|
54
54
|
import"./index-x9k3mqrf.js";
|
|
55
55
|
import"./index-58e3y90n.js";
|
|
56
56
|
import"./index-7tdtpqrg.js";
|
|
@@ -28,7 +28,7 @@ var [
|
|
|
28
28
|
import("./embedding-cache-mgyr73ef.js"),
|
|
29
29
|
import("./storage-memory-e6a7mb0k.js"),
|
|
30
30
|
import("./project-embedding-registry-e7zftfvj.js"),
|
|
31
|
-
import("./search-
|
|
31
|
+
import("./search-hav4dggf.js"),
|
|
32
32
|
import("./compartment-chunk-embedding-tk6g4q80.js"),
|
|
33
33
|
import("./embedding-activity-g1dhes6g.js"),
|
|
34
34
|
import("./harness-e4avh192.js"),
|
|
@@ -34,12 +34,12 @@ import"./server-k3t06fxr.js";
|
|
|
34
34
|
import {
|
|
35
35
|
LATEST_SUPPORTED_VERSION,
|
|
36
36
|
enforceSchemaFence
|
|
37
|
-
} from "./server-
|
|
37
|
+
} from "./server-e75vag9d.js";
|
|
38
38
|
import"./server-wwaw5npa.js";
|
|
39
39
|
import"./server-rqebawx1.js";
|
|
40
40
|
import"./server-fr0wbhdn.js";
|
|
41
41
|
import"./server-2ra6pwf3.js";
|
|
42
|
-
import"./server-
|
|
42
|
+
import"./server-7d6m1p2b.js";
|
|
43
43
|
import"./server-gyy4k6mf.js";
|
|
44
44
|
|
|
45
45
|
// src/features/magic-context/chunk-embedding-write-worker.ts
|
|
@@ -286,7 +286,7 @@ import {
|
|
|
286
286
|
startCompartmentAgent,
|
|
287
287
|
setRecompStarting2,
|
|
288
288
|
setRecompTerminal2
|
|
289
|
-
} from "./server-
|
|
289
|
+
} from "./server-7weh65vd.js";
|
|
290
290
|
import {
|
|
291
291
|
resolveHistorianModel2
|
|
292
292
|
} from "./server-5kym00ag.js";
|
|
@@ -311,7 +311,7 @@ import {
|
|
|
311
311
|
openDatabaseAsync,
|
|
312
312
|
isDatabasePersisted,
|
|
313
313
|
getDatabasePersistenceError
|
|
314
|
-
} from "./server-
|
|
314
|
+
} from "./server-e75vag9d.js";
|
|
315
315
|
import {
|
|
316
316
|
pruneMissingProjectIdentities,
|
|
317
317
|
setHomeProjectPermission,
|
|
@@ -337,7 +337,6 @@ import {
|
|
|
337
337
|
inspectProcessesAsync
|
|
338
338
|
} from "./server-k3t06fxr.js";
|
|
339
339
|
import {
|
|
340
|
-
BoundedSessionMap,
|
|
341
340
|
LkgRecoveryFenceError,
|
|
342
341
|
lkgServedArrayDigest,
|
|
343
342
|
takeLkgRecoveryLockSweepPage,
|
|
@@ -362,7 +361,7 @@ import {
|
|
|
362
361
|
clearIndexedMessages2,
|
|
363
362
|
indexMessagesAfterOrdinal2,
|
|
364
363
|
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
365
|
-
} from "./server-
|
|
364
|
+
} from "./server-6a8pxpxg.js";
|
|
366
365
|
import"./server-51779zs2.js";
|
|
367
366
|
import {
|
|
368
367
|
inRootAsyncContext2,
|
|
@@ -717,12 +716,13 @@ import {
|
|
|
717
716
|
readRawSessionMessageById2,
|
|
718
717
|
readSessionChunk2,
|
|
719
718
|
readRawSessionSeedTail2
|
|
720
|
-
} from "./server-
|
|
719
|
+
} from "./server-5brp2rfn.js";
|
|
721
720
|
import {
|
|
721
|
+
BoundedSessionMap,
|
|
722
|
+
recordToolDefinitionSet,
|
|
722
723
|
getCurrentToolSetHash,
|
|
723
|
-
recordToolDefinition,
|
|
724
724
|
getMeasuredToolDefinitionTokens
|
|
725
|
-
} from "./server-
|
|
725
|
+
} from "./server-7d6m1p2b.js";
|
|
726
726
|
import"./server-wxrdher8.js";
|
|
727
727
|
import {
|
|
728
728
|
SubcClient,
|
|
@@ -914,14 +914,14 @@ import {
|
|
|
914
914
|
resolveMemoriesByIdsForSearch2,
|
|
915
915
|
unifiedSearch2,
|
|
916
916
|
formatSearchResults2
|
|
917
|
-
} from "./server-
|
|
917
|
+
} from "./server-tfawsj08.js";
|
|
918
918
|
import {
|
|
919
919
|
resolvePromptContext2
|
|
920
920
|
} from "./server-fmsr7v69.js";
|
|
921
921
|
import"./server-kaqs6h31.js";
|
|
922
922
|
import {
|
|
923
923
|
renderSearchArchiveOffThread2
|
|
924
|
-
} from "./server-
|
|
924
|
+
} from "./server-m6yyn961.js";
|
|
925
925
|
import {
|
|
926
926
|
compareSemverCore
|
|
927
927
|
} from "./server-84w6rvvf.js";
|
|
@@ -7448,7 +7448,8 @@ function measureLkgReplayRequest(args) {
|
|
|
7448
7448
|
systemPromptTokens: args.systemPromptTokens,
|
|
7449
7449
|
providerID: args.model?.providerID,
|
|
7450
7450
|
modelID: args.model?.modelID,
|
|
7451
|
-
agentName: args.agentName
|
|
7451
|
+
agentName: args.agentName,
|
|
7452
|
+
sessionId: args.sessionId
|
|
7452
7453
|
})
|
|
7453
7454
|
});
|
|
7454
7455
|
}
|
|
@@ -16920,7 +16921,8 @@ function createRustModeTransform(deps, options) {
|
|
|
16920
16921
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
16921
16922
|
providerID: model?.providerID,
|
|
16922
16923
|
modelID: model?.modelID,
|
|
16923
|
-
agentName: deps.getNotificationParams?.(sessionId)?.agent
|
|
16924
|
+
agentName: deps.getNotificationParams?.(sessionId)?.agent,
|
|
16925
|
+
sessionId
|
|
16924
16926
|
})
|
|
16925
16927
|
});
|
|
16926
16928
|
if (measure.fit !== "under") {
|
|
@@ -17491,7 +17493,8 @@ function createRustModeTransform(deps, options) {
|
|
|
17491
17493
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
17492
17494
|
providerID: model?.providerID,
|
|
17493
17495
|
modelID: model?.modelID,
|
|
17494
|
-
agentName: deps.getNotificationParams?.(sessionId)?.agent
|
|
17496
|
+
agentName: deps.getNotificationParams?.(sessionId)?.agent,
|
|
17497
|
+
sessionId
|
|
17495
17498
|
}) : undefined;
|
|
17496
17499
|
const renderIdentityFields = {
|
|
17497
17500
|
modelKey: modelKey ?? null,
|
|
@@ -18023,6 +18026,7 @@ function createRustModeTransform(deps, options) {
|
|
|
18023
18026
|
providerID: model?.providerID,
|
|
18024
18027
|
modelID: model?.modelID,
|
|
18025
18028
|
agentName: deps.getNotificationParams?.(sessionId)?.agent,
|
|
18029
|
+
sessionId,
|
|
18026
18030
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
18027
18031
|
}, resolvedWindowGeometry?.usableHard ?? resolvedContextLimit);
|
|
18028
18032
|
const refusal = outgoingContextRefusal(servedFinalWireEstimate, resolvedWindowGeometry?.usableHard ?? resolvedContextLimit, protectedToolTokenCount(getActiveTagsBySession2(deps.db, sessionId), deps.protectedTools, resolveDecisionCalibration(model?.providerID, model?.modelID))) ?? (signedThinkingReset ? signedTurnContextRefusal(servedFinalWireEstimate, resolvedWindowGeometry?.usableHard ?? resolvedContextLimit) : undefined);
|
|
@@ -18258,6 +18262,7 @@ function createRustModeTransform(deps, options) {
|
|
|
18258
18262
|
providerID: model?.providerID,
|
|
18259
18263
|
modelID: model?.modelID,
|
|
18260
18264
|
agentName: deps.getNotificationParams?.(sessionId)?.agent,
|
|
18265
|
+
sessionId,
|
|
18261
18266
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
18262
18267
|
});
|
|
18263
18268
|
captureOpencodeReasoningBudgetStatus(sessionId, output.messages, resolveKeepReasoningTokens(deps.keepReasoningTokens, modelKey ?? undefined), isPrefixBoundThinkingModel(model?.providerID, model?.modelID));
|
|
@@ -18521,6 +18526,27 @@ function createRustModeTransform(deps, options) {
|
|
|
18521
18526
|
return adapter;
|
|
18522
18527
|
}
|
|
18523
18528
|
|
|
18529
|
+
// src/hooks/magic-context/signed-thinking-fit-snapshot.ts
|
|
18530
|
+
function takeSignedThinkingFitSnapshot(args) {
|
|
18531
|
+
let snapshot = null;
|
|
18532
|
+
if (args.held && !args.compactionOff) {
|
|
18533
|
+
try {
|
|
18534
|
+
snapshot = cloneKeepingCoveredInstructionMarks(args.entryOrder);
|
|
18535
|
+
} catch (error) {
|
|
18536
|
+
sessionLog2(args.sessionId, `signed thinking fit: could not copy the pass input (${error instanceof Error ? error.message : String(error)}); an over-window held request will be refused rather than retried`);
|
|
18537
|
+
}
|
|
18538
|
+
}
|
|
18539
|
+
snapshotObserver?.({
|
|
18540
|
+
sessionId: args.sessionId,
|
|
18541
|
+
held: args.held,
|
|
18542
|
+
activeAnthropicThinkingTurn: args.activeAnthropicThinkingTurn,
|
|
18543
|
+
compactionOff: args.compactionOff,
|
|
18544
|
+
snapshot
|
|
18545
|
+
});
|
|
18546
|
+
return snapshot;
|
|
18547
|
+
}
|
|
18548
|
+
var snapshotObserver;
|
|
18549
|
+
|
|
18524
18550
|
// src/hooks/magic-context/signed-thinking-hold.ts
|
|
18525
18551
|
var HEAVY_REASONING_TOKENS = 1500;
|
|
18526
18552
|
var HEAVY_REASONING_WINDOW_STEPS = 15;
|
|
@@ -19132,7 +19158,7 @@ function createTransform(deps) {
|
|
|
19132
19158
|
const startTime = performance.now();
|
|
19133
19159
|
const historianRun = deps.resolveHistorianRun?.();
|
|
19134
19160
|
const messages = output.messages;
|
|
19135
|
-
const
|
|
19161
|
+
const entryOrderForThinkingFit = messages.slice();
|
|
19136
19162
|
const coveredHostInstructions = takeCoveredInstructionRows(messages);
|
|
19137
19163
|
const passOutcome = createPassOutcome();
|
|
19138
19164
|
const tSessionId = performance.now();
|
|
@@ -19486,7 +19512,8 @@ function createTransform(deps) {
|
|
|
19486
19512
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
19487
19513
|
providerID: modelForBudget?.providerID,
|
|
19488
19514
|
modelID: modelForBudget?.modelID,
|
|
19489
|
-
agentName: runNotificationParams(sessionId)?.agent
|
|
19515
|
+
agentName: runNotificationParams(sessionId)?.agent,
|
|
19516
|
+
sessionId
|
|
19490
19517
|
});
|
|
19491
19518
|
const incomingTokens = incoming.messageTokens.conversation + incoming.messageTokens.toolCall;
|
|
19492
19519
|
if (unmanagedOverWindowCarried || isClearlyOverWindow(incomingTokens, resolvedContextLimit)) {
|
|
@@ -19532,6 +19559,13 @@ function createTransform(deps) {
|
|
|
19532
19559
|
}) : null;
|
|
19533
19560
|
activeThinkingPrefixHold = signedThinkingPrefixBound && (compactionOff || signedThinkingHold?.held === true);
|
|
19534
19561
|
freezeM0M1 ||= activeThinkingPrefixHold;
|
|
19562
|
+
const originalForThinkingFit = takeSignedThinkingFitSnapshot({
|
|
19563
|
+
sessionId,
|
|
19564
|
+
entryOrder: entryOrderForThinkingFit,
|
|
19565
|
+
held: activeThinkingPrefixHold,
|
|
19566
|
+
activeAnthropicThinkingTurn: activeThinkingTurn,
|
|
19567
|
+
compactionOff
|
|
19568
|
+
});
|
|
19535
19569
|
const prefixHoldLogKey = signedThinkingHold ? `${currentTurnId}:${signedThinkingHold.reason}:${signedThinkingHold.heavyStepsBack ?? "none"}` : freezeM0M1 ? `${currentTurnId}:directory` : null;
|
|
19536
19570
|
if (prefixHoldLogKey !== null && prefixHoldLogTurnIds.get(sessionId) !== prefixHoldLogKey) {
|
|
19537
19571
|
prefixHoldLogTurnIds.set(sessionId, prefixHoldLogKey);
|
|
@@ -20023,7 +20057,8 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20023
20057
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
20024
20058
|
providerID: modelForBudget?.providerID,
|
|
20025
20059
|
modelID: modelForBudget?.modelID,
|
|
20026
|
-
agentName: notificationParams.agent
|
|
20060
|
+
agentName: notificationParams.agent,
|
|
20061
|
+
sessionId
|
|
20027
20062
|
});
|
|
20028
20063
|
} catch (error) {
|
|
20029
20064
|
sessionLog2(sessionId, `transform: wire-estimate pressure fallback unavailable: ${getErrorMessage(error)}`);
|
|
@@ -20191,6 +20226,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20191
20226
|
providerID: modelForBudget?.providerID,
|
|
20192
20227
|
modelID: modelForBudget?.modelID,
|
|
20193
20228
|
agentName: notificationParams.agent,
|
|
20229
|
+
sessionId,
|
|
20194
20230
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
20195
20231
|
}, boundaryContextLimit);
|
|
20196
20232
|
} catch {
|
|
@@ -20205,13 +20241,15 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20205
20241
|
providerID: modelForBudget?.providerID,
|
|
20206
20242
|
modelID: modelForBudget?.modelID,
|
|
20207
20243
|
agentName: notificationParams.agent,
|
|
20244
|
+
sessionId,
|
|
20208
20245
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
20209
20246
|
}, boundaryContextLimit) : undefined);
|
|
20210
20247
|
if (finalWireEstimate) {
|
|
20211
20248
|
sessionLog2(sessionId, `transform: final-wire telemetry estimate=${finalWireEstimate.tokens} trusted=${finalWireEstimate.trusted} conversation=${finalWireEstimate.messageTokens.conversation} tools=${finalWireEstimate.messageTokens.toolCall} system=${finalWireEstimate.systemTokens} toolDefinitions=${finalWireEstimate.toolDefinitionTokens ?? "unknown"} tail=${finalWireTail}`);
|
|
20212
20249
|
}
|
|
20213
20250
|
if ((finalWireEstimate?.refusalGrade || finalWireEstimate?.refusalBasis === "byte-bound" && finalWireEstimate.refusalTokens !== undefined) && boundaryContextLimit > 0 && (finalWireEstimate.refusalTokens ?? finalWireEstimate.tokens) > boundaryContextLimit) {
|
|
20214
|
-
|
|
20251
|
+
const signedFitRetryWanted = !thinkingFitRetries.has(sessionId) && activeThinkingPrefixHold && hasActiveAnthropicThinkingTurn(messages, resolvedProviderID, modelForBudget?.modelID);
|
|
20252
|
+
if (signedFitRetryWanted && originalForThinkingFit) {
|
|
20215
20253
|
thinkingFitRetries.add(sessionId);
|
|
20216
20254
|
requestPendingMaterialization(deps.pendingMaterializationSessions, sessionId, "fit_retry");
|
|
20217
20255
|
messages.splice(0, messages.length, ...originalForThinkingFit);
|
|
@@ -20222,7 +20260,10 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20222
20260
|
}
|
|
20223
20261
|
return;
|
|
20224
20262
|
}
|
|
20225
|
-
if (
|
|
20263
|
+
if (signedFitRetryWanted) {
|
|
20264
|
+
sessionLog2(sessionId, "signed thinking fit: the held request is over the window and no copy of the pass input exists to retry from; refusing it");
|
|
20265
|
+
}
|
|
20266
|
+
if (signedFitRetryWanted || thinkingFitRetries.has(sessionId) || postTransformResult.thinkingReleasedForFit || signedFitPreviouslyRefused) {
|
|
20226
20267
|
if (!signedFitPreviouslyRefused && !addMergedReasoningStrippedIds(db, sessionId, [SIGNED_FIT_REFUSED_MARKER]))
|
|
20227
20268
|
throw contextRefusalError("Cannot persist the signed-fit refusal");
|
|
20228
20269
|
throw contextRefusalError("The request remains over the model window after stripping signed thinking and reclaiming context");
|
|
@@ -20234,7 +20275,8 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20234
20275
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
20235
20276
|
providerID: modelForBudget?.providerID,
|
|
20236
20277
|
modelID: modelForBudget?.modelID,
|
|
20237
|
-
agentName: notificationParams.agent
|
|
20278
|
+
agentName: notificationParams.agent,
|
|
20279
|
+
sessionId
|
|
20238
20280
|
});
|
|
20239
20281
|
if (untrimmed.tokens > boundaryContextLimit) {
|
|
20240
20282
|
sessionLog2(sessionId, `history boundary unresolved: prefix trim refused and the untrimmed request estimate ${untrimmed.tokens} (trusted=${untrimmed.trusted}) exceeds the context limit ${boundaryContextLimit}; not sending it`);
|
|
@@ -20247,7 +20289,8 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20247
20289
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
20248
20290
|
providerID: modelForBudget?.providerID,
|
|
20249
20291
|
modelID: modelForBudget?.modelID,
|
|
20250
|
-
agentName: notificationParams.agent
|
|
20292
|
+
agentName: notificationParams.agent,
|
|
20293
|
+
sessionId
|
|
20251
20294
|
});
|
|
20252
20295
|
const servedTokens = served.toolDefinitionsMeasured ? served.rawTokens ?? served.tokens : Math.max(0, sessionMeta.systemPromptTokens) + served.messageTokens.conversation + served.messageTokens.toolCall;
|
|
20253
20296
|
if (!Number.isFinite(servedTokens) || servedTokens > unmanagedOverWindowPass.limit) {
|
|
@@ -20325,7 +20368,8 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20325
20368
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
20326
20369
|
providerID: modelForBudget?.providerID,
|
|
20327
20370
|
modelID: modelForBudget?.modelID,
|
|
20328
|
-
agentName: notificationParams.agent
|
|
20371
|
+
agentName: notificationParams.agent,
|
|
20372
|
+
sessionId
|
|
20329
20373
|
});
|
|
20330
20374
|
} catch (error) {
|
|
20331
20375
|
sessionLog2(sessionId, "degraded pass size guard could not estimate:", error);
|
|
@@ -20541,6 +20585,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
20541
20585
|
providerID: modelForBudget?.providerID,
|
|
20542
20586
|
modelID: modelForBudget?.modelID,
|
|
20543
20587
|
agentName: notificationParams.agent,
|
|
20588
|
+
sessionId,
|
|
20544
20589
|
systemPromptHash: sessionMeta.systemPromptHash
|
|
20545
20590
|
});
|
|
20546
20591
|
};
|
|
@@ -23066,7 +23111,7 @@ function buildSidebarSnapshot(db, sessionId, directory, liveSessionState, inject
|
|
|
23066
23111
|
if (model) {
|
|
23067
23112
|
activeProviderID = model.providerID;
|
|
23068
23113
|
activeModelID = model.modelID;
|
|
23069
|
-
measuredToolDefTokens = getMeasuredToolDefinitionTokens(model.providerID, model.modelID, agent) ?? 0;
|
|
23114
|
+
measuredToolDefTokens = getMeasuredToolDefinitionTokens(model.providerID, model.modelID, agent, sessionId) ?? 0;
|
|
23070
23115
|
}
|
|
23071
23116
|
}
|
|
23072
23117
|
const contextLimit = typeof moduleContextLimit === "number" && moduleContextLimit > 0 ? moduleContextLimit : activeProviderID && activeModelID ? resolveContextLimit(activeProviderID, activeModelID, {
|
|
@@ -23780,7 +23825,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
23780
23825
|
const db = readDatabase();
|
|
23781
23826
|
if (!db)
|
|
23782
23827
|
return { ok: false, error: "db unavailable" };
|
|
23783
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
23828
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-e8a4jpvr.js"));
|
|
23784
23829
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-f8scq6ae.js"));
|
|
23785
23830
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
23786
23831
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -23865,7 +23910,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
23865
23910
|
const db = readDatabase();
|
|
23866
23911
|
if (!db)
|
|
23867
23912
|
return { ok: false, error: "db unavailable" };
|
|
23868
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
23913
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-ycs8y6n4.js"));
|
|
23869
23914
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
23870
23915
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
23871
23916
|
const ctx = {
|
|
@@ -52903,12 +52948,18 @@ function applyV2PromptSurfaceTools(draft, runtime, config, smartNotesEnabled = t
|
|
|
52903
52948
|
function recordV2ToolDefinitions(draft) {
|
|
52904
52949
|
if (!draft.tools)
|
|
52905
52950
|
return;
|
|
52951
|
+
const tools = [];
|
|
52906
52952
|
for (const [id, tool] of Object.entries(draft.tools)) {
|
|
52907
52953
|
if (!tool)
|
|
52908
52954
|
continue;
|
|
52909
52955
|
recordToolParameters(id, tool.input);
|
|
52910
|
-
|
|
52956
|
+
tools.push({
|
|
52957
|
+
id,
|
|
52958
|
+
description: typeof tool.description === "string" ? tool.description : "",
|
|
52959
|
+
parameters: tool.input
|
|
52960
|
+
});
|
|
52911
52961
|
}
|
|
52962
|
+
recordToolDefinitionSet(draft.model.providerID, draft.model.id, draft.agent, tools, draft.sessionID);
|
|
52912
52963
|
}
|
|
52913
52964
|
async function applyV2SystemPrompt(systemPrompt, draft) {
|
|
52914
52965
|
resolveCtxReduceAvailabilityFromMessages(draft.sessionID, draft.messages.map((message) => ({
|
|
@@ -53561,7 +53612,7 @@ async function registerContext(context) {
|
|
|
53561
53612
|
projectDirectory: directory,
|
|
53562
53613
|
hardSignals: {
|
|
53563
53614
|
systemHash: state.systemPromptHash ?? "",
|
|
53564
|
-
toolSetHash: getCurrentToolSetHash(draft.model.providerID, draft.model.id, draft.agent),
|
|
53615
|
+
toolSetHash: getCurrentToolSetHash(draft.model.providerID, draft.model.id, draft.agent, draft.sessionID),
|
|
53565
53616
|
modelKey: `${draft.model.providerID}/${draft.model.id}`,
|
|
53566
53617
|
cacheExpired: false,
|
|
53567
53618
|
lastResponseTime: state.lastResponseTime
|
|
@@ -53949,7 +54000,7 @@ async function registerContext(context) {
|
|
|
53949
54000
|
const model = liveModels.get(sessionId);
|
|
53950
54001
|
if (!model)
|
|
53951
54002
|
return "";
|
|
53952
|
-
return getCurrentToolSetHash(model.providerID, model.modelID, agents.get(sessionId));
|
|
54003
|
+
return getCurrentToolSetHash(model.providerID, model.modelID, agents.get(sessionId), sessionId);
|
|
53953
54004
|
},
|
|
53954
54005
|
channel1StateBySession: channel1,
|
|
53955
54006
|
historyRefreshSessions,
|
|
@@ -72,6 +72,10 @@ export declare function applyV2PromptSurfaceTools(draft: SessionContext, runtime
|
|
|
72
72
|
* the wire, and it is keyed by the same {provider, model, agent} triple the status and sidebar
|
|
73
73
|
* handlers look the measurement up by.
|
|
74
74
|
*
|
|
75
|
+
* The draft is the request's exact tool set, so it replaces the route's measured set and becomes
|
|
76
|
+
* this session's figure: a tool an earlier request carried, or another session's request carried,
|
|
77
|
+
* does not count toward this request's size.
|
|
78
|
+
*
|
|
75
79
|
* Measuring changes no served byte: the resulting tool-set hash is an attribution marker that the
|
|
76
80
|
* m[0] materialization decision records but never folds on.
|
|
77
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAqExD,OAAO,EACH,KAAK,qBAAqB,EAE7B,MAAM,mDAAmD,CAAC;AA8B3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,qCAAqC,CAAC;AA2B1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAGH,KAAK,oBAAoB,EAC5B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACH,KAAK,QAAQ,EAKhB,MAAM,qBAAqB,CAAC;AA4B7B,OAAO,EAAkB,KAAK,aAAa,EAAqB,MAAM,iBAAiB,CAAC;AA+CxF,OAAO,KAAK,EAAE,cAAc,EAAE,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js";
|
|
17
17
|
import"./server-1zx87sdm.js";
|
|
18
18
|
import"./server-fa7vtp40.js";
|
|
19
19
|
import"./server-3mz2qh5a.js";
|
|
@@ -24,8 +24,8 @@ import"./server-cpjk5jd2.js";
|
|
|
24
24
|
import"./server-swvhxhxz.js";
|
|
25
25
|
import"./server-2ra6pwf3.js";
|
|
26
26
|
import"./server-3vhxy2k5.js";
|
|
27
|
-
import"./server-
|
|
28
|
-
import"./server-
|
|
27
|
+
import"./server-5brp2rfn.js";
|
|
28
|
+
import"./server-7d6m1p2b.js";
|
|
29
29
|
import"./server-wxrdher8.js";
|
|
30
30
|
import"./server-ab1g0wn9.js";
|
|
31
31
|
import"./server-pw21ypwb.js";
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
indexMessagesAfterOrdinal2,
|
|
18
18
|
indexSourcesAfterOrdinal2,
|
|
19
19
|
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
20
|
-
} from "./server-
|
|
21
|
-
import"./server-
|
|
20
|
+
} from "./server-6a8pxpxg.js";
|
|
21
|
+
import"./server-5brp2rfn.js";
|
|
22
22
|
import"./server-fa7vtp40.js";
|
|
23
23
|
import"./server-1zx87sdm.js";
|
|
24
24
|
import"./server-3vhxy2k5.js";
|
|
@@ -27,7 +27,7 @@ import"./server-pw21ypwb.js";
|
|
|
27
27
|
import"./server-ab1g0wn9.js";
|
|
28
28
|
import"./server-wxrdher8.js";
|
|
29
29
|
import"./server-k3t06fxr.js";
|
|
30
|
-
import"./server-
|
|
30
|
+
import"./server-7d6m1p2b.js";
|
|
31
31
|
import"./server-rqebawx1.js";
|
|
32
32
|
import"./server-2ra6pwf3.js";
|
|
33
33
|
import"./server-swvhxhxz.js";
|
|
@@ -18,13 +18,13 @@ import"./server-fb3zxn06.js";
|
|
|
18
18
|
import {
|
|
19
19
|
setSqlitePragmaConfig,
|
|
20
20
|
initializeDatabase
|
|
21
|
-
} from "./server-
|
|
21
|
+
} from "./server-e75vag9d.js";
|
|
22
22
|
import"./server-51779zs2.js";
|
|
23
23
|
import"./server-cpjk5jd2.js";
|
|
24
24
|
import"./server-swvhxhxz.js";
|
|
25
25
|
import"./server-wxrdher8.js";
|
|
26
26
|
import"./server-3mz2qh5a.js";
|
|
27
|
-
import"./server-
|
|
27
|
+
import"./server-7d6m1p2b.js";
|
|
28
28
|
import {
|
|
29
29
|
closeQuietly
|
|
30
30
|
} from "./server-8ajstryz.js";
|
|
@@ -51,7 +51,7 @@ async function main() {
|
|
|
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-vrwgxv6z.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-ppjxnqk4.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -84,7 +84,7 @@ async function main() {
|
|
|
84
84
|
{ configureContextDatabasePragmas }
|
|
85
85
|
] = await Promise.all([
|
|
86
86
|
import("./harness-e4avh192.js"),
|
|
87
|
-
import("./message-index-
|
|
87
|
+
import("./message-index-fz6b4jeh.js"),
|
|
88
88
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
89
89
|
]);
|
|
90
90
|
setHarness(input.harness ?? "opencode");
|
|
@@ -104,7 +104,7 @@ async function main() {
|
|
|
104
104
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
105
105
|
setHarness(input.harness ?? "opencode");
|
|
106
106
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
107
|
-
import("./message-index-bounded-
|
|
107
|
+
import("./message-index-bounded-te303atj.js"),
|
|
108
108
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
109
109
|
]);
|
|
110
110
|
configureContextDatabasePragmas(db);
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
readSessionChunk2,
|
|
36
36
|
getRawSessionMessageIdsThrough2,
|
|
37
37
|
readRawSessionSeedTail2
|
|
38
|
-
} from "./server-
|
|
38
|
+
} from "./server-5brp2rfn.js";
|
|
39
39
|
import"./server-fa7vtp40.js";
|
|
40
40
|
import"./server-1zx87sdm.js";
|
|
41
41
|
import"./server-3vhxy2k5.js";
|
|
42
42
|
import"./server-24g8r2d0.js";
|
|
43
|
-
import"./server-
|
|
43
|
+
import"./server-7d6m1p2b.js";
|
|
44
44
|
import"./server-rqebawx1.js";
|
|
45
45
|
import"./server-2ra6pwf3.js";
|
|
46
46
|
import"./server-swvhxhxz.js";
|