@cortexkit/opencode-magic-context 0.49.43 → 0.49.45
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 +4 -4
- package/dist/chunk-embedding-write-worker.js +7 -7
- package/dist/{compaction-marker-candidates-5c44h1m9.js → compaction-marker-candidates-dkfp1q9j.js} +12 -2
- package/dist/compaction-marker-candidates-worker.js +5 -2
- package/dist/{compartment-chunk-embedding-ypktm0tk.js → compartment-chunk-embedding-snj51nmg.js} +5 -5
- package/dist/{conflict-warning-hook-b75jn458.js → conflict-warning-hook-w1aw6w5t.js} +4 -4
- package/dist/{context-zf1yj1g0.js → context-y85dvs6j.js} +28 -28
- package/dist/{embedding-backfill-rma0v2ct.js → embedding-backfill-kpy5shsa.js} +9 -9
- package/dist/embedding-worker.js +4 -4
- package/dist/features/magic-context/compaction-marker-candidates.d.ts +57 -4
- package/dist/features/magic-context/compaction-marker-candidates.d.ts.map +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts +18 -3
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-query-deadline.d.ts +8 -0
- package/dist/features/magic-context/memory/embedding-query-deadline.d.ts.map +1 -0
- package/dist/features/magic-context/overflow-detection.d.ts +16 -6
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/scheduler.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts +6 -0
- package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +5 -4
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +4 -4
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +7 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-publication.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +7 -2
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/local-wire-reading.d.ts +54 -0
- package/dist/hooks/magic-context/local-wire-reading.d.ts.map +1 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts +2 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-date-refresh.d.ts +1 -2
- package/dist/hooks/magic-context/system-date-refresh.d.ts.map +1 -1
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +38 -6
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +5 -2
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-ayk4we2k.js → index-0a79y98x.js} +41 -31
- package/dist/{index-jggt5gf2.js → index-1hwn96x1.js} +1 -1
- package/dist/{index-ae1ar4v1.js → index-25ka1jza.js} +1 -1
- package/dist/{index-c5dzns43.js → index-4dpvnp8k.js} +1 -1
- package/dist/{index-n8bsqg7b.js → index-7na94cjf.js} +3 -3
- package/dist/{index-fas76dft.js → index-980brvjr.js} +8 -8
- package/dist/{index-4xyjr62e.js → index-ak11t3gm.js} +4 -0
- package/dist/{index-vd2ywmfe.js → index-brj6was5.js} +1 -1
- package/dist/{index-gsqz39wk.js → index-bzq05g00.js} +3 -3
- package/dist/{index-ty4vhe4n.js → index-d4qw2h43.js} +4 -4
- package/dist/{index-5m2azs6v.js → index-dcdvyaeh.js} +4 -4
- package/dist/{index-g4t7850m.js → index-dj2p8653.js} +1 -1
- package/dist/{index-adt3jghq.js → index-fs3zfby1.js} +169 -61
- package/dist/{index-xjw9rres.js → index-gf1vx3bn.js} +3 -3
- package/dist/{index-3w1pbn85.js → index-gn6gfz4y.js} +64 -12
- package/dist/{index-8jjjmhab.js → index-gxqr0sbd.js} +1 -1
- package/dist/{index-b1ydbp95.js → index-h9m41624.js} +1 -1
- package/dist/{index-xd2p95m7.js → index-hkh8x221.js} +2 -2
- package/dist/{index-rdx17j04.js → index-jwa5t1s4.js} +6 -6
- package/dist/{index-dcjkw41m.js → index-qcz1fy7h.js} +3 -3
- package/dist/{index-1zv08avf.js → index-qdx8dq60.js} +5 -5
- package/dist/{index-z6v8086q.js → index-rk5hyc41.js} +5 -5
- package/dist/{index-21fgrfrf.js → index-s79g172v.js} +64 -22
- package/dist/{index-xnm0wq1r.js → index-sd2s4t4p.js} +1 -1
- package/dist/{index-jkanybgq.js → index-smtbdmc3.js} +1 -1
- package/dist/{index-p2e7j9p1.js → index-tvd2j34s.js} +2 -2
- package/dist/{index-zqsp3z0d.js → index-wwg1je98.js} +9 -6
- package/dist/{index-r2epb000.js → index-xa9mmq6c.js} +2 -1
- package/dist/{index-xmqj3cf5.js → index-xejh7cqv.js} +136 -63
- package/dist/{index-kfsqk1q7.js → index-z8dacvkt.js} +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -40
- package/dist/{message-fts-rowid-map-t6qsyg9s.js → message-fts-rowid-map-msffhkve.js} +2 -2
- package/dist/{message-index-bounded-5mj8p6nq.js → message-index-bounded-d8xt6q5c.js} +9 -9
- package/dist/migration-worker.js +5 -5
- package/dist/{project-embedding-registry-3yyegjma.js → project-embedding-registry-r6xfsrbe.js} +8 -8
- package/dist/raw-ordinal-warmup-worker.js +7 -7
- package/dist/{read-session-chunk-k70bhfjm.js → read-session-chunk-k3fqshw8.js} +7 -7
- package/dist/{read-session-raw-j7c9w57v.js → read-session-raw-x7a9b3jm.js} +1 -1
- package/dist/{recomp-orchestrator-2q4rmerf.js → recomp-orchestrator-y75thsc3.js} +21 -21
- package/dist/{render-36fvvwz6.js → render-3psbedzk.js} +14 -14
- package/dist/{search-archive-jwb2ctnq.js → search-archive-rvr7j5gx.js} +9 -9
- package/dist/{search-6v2na3af.js → search-hd16c8gq.js} +17 -17
- package/dist/{send-session-notification-14p3yje4.js → send-session-notification-j93pn2hn.js} +3 -3
- package/dist/shared/status-view.d.ts.map +1 -1
- package/dist/{storage-tags-vj0yj7ed.js → storage-tags-ye9aqrqy.js} +2 -2
- package/dist/tools/ctx-search/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-0ms3ga4h.js → transform-postprocess-phase-1rzxmkhb.js} +22 -22
- package/dist/v2/auto-search-worker.js +4 -4
- package/dist/v2/chunk-embedding-write-worker.js +7 -7
- package/dist/v2/compaction-marker-candidates-worker.js +5 -2
- package/dist/v2/{compaction-marker-candidates-jy65jt49.js → compaction-marker-candidates-y737qb1v.js} +12 -2
- package/dist/v2/{compartment-chunk-embedding-qfk791bd.js → compartment-chunk-embedding-nj5nrnbj.js} +5 -5
- package/dist/v2/{context-2xr6vbt2.js → context-0e946t63.js} +194 -76
- package/dist/v2/{embedding-backfill-00tw59rx.js → embedding-backfill-360efh1t.js} +9 -9
- package/dist/v2/embedding-worker.js +4 -4
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/{message-fts-rowid-map-z86avy0n.js → message-fts-rowid-map-qe7cpksd.js} +2 -2
- package/dist/v2/{message-index-bounded-5341qsqd.js → message-index-bounded-wt64v2rn.js} +8 -8
- package/dist/v2/migration-worker.js +5 -5
- package/dist/v2/{project-embedding-registry-jqq2qeqb.js → project-embedding-registry-ek0cy0d5.js} +8 -8
- package/dist/v2/raw-ordinal-warmup-worker.js +7 -7
- package/dist/v2/{read-session-chunk-dgmq3ntm.js → read-session-chunk-4b31z6bz.js} +6 -6
- package/dist/v2/{read-session-raw-qpp6x9kg.js → read-session-raw-yss2ev98.js} +1 -1
- package/dist/v2/{recomp-orchestrator-2vmyhtst.js → recomp-orchestrator-6qrm2nea.js} +19 -19
- package/dist/v2/{render-kz0f40ws.js → render-f8mw16pp.js} +13 -13
- package/dist/v2/{search-archive-wajxd01m.js → search-archive-7d0xdp54.js} +8 -8
- package/dist/v2/{search-a9hwy1sw.js → search-ecjd7e50.js} +15 -15
- package/dist/v2/{send-session-notification-kxp47tsw.js → send-session-notification-na3q825m.js} +1 -1
- package/dist/v2/{server-09td1wgc.js → server-0ymsgh0j.js} +3 -3
- package/dist/v2/{server-nmyganc8.js → server-131h608x.js} +1 -1
- package/dist/v2/{server-7acq7815.js → server-2gjqhmn9.js} +64 -22
- package/dist/v2/{server-xy7w7hrd.js → server-2j87594q.js} +1 -1
- package/dist/v2/{server-7qc9tk6z.js → server-2qyfev3b.js} +5 -5
- package/dist/v2/{server-qehn6btp.js → server-39kzpp8q.js} +4 -4
- package/dist/v2/{server-969cdpmg.js → server-7vb38e51.js} +4 -0
- package/dist/v2/{server-sfcp13bn.js → server-an1ff8d8.js} +3 -3
- package/dist/v2/{server-tnzbk64q.js → server-b3r080cm.js} +2 -1
- package/dist/v2/{server-zzgtgqmd.js → server-ddw42d76.js} +1 -1
- package/dist/v2/{server-3m7p4g9w.js → server-ftyc8awt.js} +3 -3
- package/dist/v2/{server-xfjjbrkt.js → server-gwqfwtzq.js} +1 -1
- package/dist/v2/{server-dwpgzm0t.js → server-gwxys0d0.js} +64 -12
- package/dist/v2/{server-dqs8e4yt.js → server-hq7fdqfm.js} +7 -7
- package/dist/v2/{server-7zacmty5.js → server-p9s40wfa.js} +1 -1
- package/dist/v2/{server-nq3cb7be.js → server-pej5rnye.js} +1 -1
- package/dist/v2/{server-6vzh6wej.js → server-sg2qjkrb.js} +2 -2
- package/dist/v2/{server-gkse1wyz.js → server-sr8tf5dt.js} +4 -4
- package/dist/v2/{server-avdveykk.js → server-vjhk8v41.js} +1 -1
- package/dist/v2/{server-kqrpt2ht.js → server-vnpnmrsv.js} +8 -5
- package/dist/v2/{server-p78wdf43.js → server-wbxbk3za.js} +3 -3
- package/dist/v2/{server-cp1a03vc.js → server-y8n33d9j.js} +3 -3
- package/dist/v2/{server-5ydn39x3.js → server-zqzh2ybj.js} +135 -62
- package/dist/v2/server.js +4 -4
- package/dist/v2/{storage-tags-cw07ky67.js → storage-tags-8nttt1sk.js} +2 -2
- package/dist/v2/{v2-archive-reader-ag6sk771.js → v2-archive-reader-53kp5mme.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-2a077zew.js → wrapup-orchestrator-bng0dfxy.js} +19 -19
- package/dist/{v2-archive-reader-chk95syc.js → v2-archive-reader-0fcxs5e9.js} +1 -1
- package/dist/{wrapup-orchestrator-rhs675kj.js → wrapup-orchestrator-r5cqgyrg.js} +22 -22
- package/package.json +1 -1
- package/src/config/schema/magic-context.ts +1 -1
- package/src/shared/status-view.ts +3 -5
- package/src/tui/dialogs/status-dialog-render.test.ts +1 -1
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
getRawSessionTagKeysThrough2,
|
|
73
73
|
getLegacyProtectedTailStartOrdinal2,
|
|
74
74
|
readSessionChunk2
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-wwg1je98.js";
|
|
76
76
|
import {
|
|
77
77
|
getHarness2,
|
|
78
78
|
harnessOwnsOpenCodeStore2
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ConfigProfilesSchema,
|
|
124
124
|
MagicContextConfigSchema,
|
|
125
125
|
LIVE_RELOAD_CONFIG_PATHS
|
|
126
|
-
} from "./index-
|
|
126
|
+
} from "./index-4dpvnp8k.js";
|
|
127
127
|
import {
|
|
128
128
|
providerMass,
|
|
129
129
|
calibrationForModelKey,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
hasMeaningfulUserText2,
|
|
134
134
|
estimateTokens,
|
|
135
135
|
estimateFixedPromptTokens
|
|
136
|
-
} from "./index-
|
|
136
|
+
} from "./index-ak11t3gm.js";
|
|
137
137
|
import {
|
|
138
138
|
FAIL_CLOSED_DOCTOR_COMMAND
|
|
139
139
|
} from "./index-wh9fxds5.js";
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
LATEST_SUPPORTED_VERSION,
|
|
154
154
|
getPersistedSchemaVersion,
|
|
155
155
|
openDatabase
|
|
156
|
-
} from "./index-
|
|
156
|
+
} from "./index-z8dacvkt.js";
|
|
157
157
|
import {
|
|
158
158
|
areRustHistorianSyntheticParts2,
|
|
159
159
|
isStrictGapHealingMessage2,
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
RawOrdinalsNotReady2,
|
|
162
162
|
dropRawSessionOrdinalCheckpoints2,
|
|
163
163
|
runSessionWarmupWorker
|
|
164
|
-
} from "./index-
|
|
164
|
+
} from "./index-xa9mmq6c.js";
|
|
165
165
|
import {
|
|
166
166
|
parseCompartmentOutput,
|
|
167
167
|
resolveWorkspaceShareCategories,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
} from "./index-58e3y90n.js";
|
|
185
185
|
import {
|
|
186
186
|
BoundedSessionMap
|
|
187
|
-
} from "./index-
|
|
187
|
+
} from "./index-smtbdmc3.js";
|
|
188
188
|
import {
|
|
189
189
|
invalidateAutoEmbedSession
|
|
190
190
|
} from "./index-2amn2s73.js";
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
replaceCompartmentChunkEmbeddings2,
|
|
198
198
|
deleteChunkEmbedBackoffForSession2,
|
|
199
199
|
chunkWindowSourceKey2
|
|
200
|
-
} from "./index-
|
|
200
|
+
} from "./index-qcz1fy7h.js";
|
|
201
201
|
import {
|
|
202
202
|
COMPARTMENT_LEASE_RENEWAL_MS,
|
|
203
203
|
getCompartmentLeaseBlocker,
|
|
@@ -239,14 +239,14 @@ import {
|
|
|
239
239
|
getProjectState,
|
|
240
240
|
recordSubagentInvocation,
|
|
241
241
|
getLatestHistorianInvocationId
|
|
242
|
-
} from "./index-
|
|
242
|
+
} from "./index-jwa5t1s4.js";
|
|
243
243
|
import {
|
|
244
244
|
clearCompressionDepth,
|
|
245
245
|
clearCompressionDepthRange,
|
|
246
246
|
toMessageIndexSource,
|
|
247
247
|
clearIndexedMessagesInTransaction,
|
|
248
248
|
indexSourcesAfterOrdinal
|
|
249
|
-
} from "./index-
|
|
249
|
+
} from "./index-bzq05g00.js";
|
|
250
250
|
import {
|
|
251
251
|
stripWellFormedLeadingTagPrefix,
|
|
252
252
|
peelLeadingMcTagNotation,
|
|
@@ -257,12 +257,12 @@ import {
|
|
|
257
257
|
foldShrunkPartTags2,
|
|
258
258
|
getTagNumberByMessageId2,
|
|
259
259
|
getActiveTagsBySession2
|
|
260
|
-
} from "./index-
|
|
260
|
+
} from "./index-gxqr0sbd.js";
|
|
261
261
|
import {
|
|
262
262
|
openCodeDbExists,
|
|
263
263
|
withReadOnlySessionDb,
|
|
264
264
|
getMessageTimesFromOpenCodeDb
|
|
265
|
-
} from "./index-
|
|
265
|
+
} from "./index-brj6was5.js";
|
|
266
266
|
import {
|
|
267
267
|
getSessionNotes,
|
|
268
268
|
getReadySmartNotes,
|
|
@@ -285,22 +285,27 @@ import {
|
|
|
285
285
|
getProjectChunkEmbeddingModelId2,
|
|
286
286
|
getProjectEmbeddingMaxInputTokens2,
|
|
287
287
|
embedItemsForProject2
|
|
288
|
-
} from "./index-
|
|
288
|
+
} from "./index-s79g172v.js";
|
|
289
289
|
import {
|
|
290
290
|
renderUserFacingFailure,
|
|
291
291
|
userFacingFailureCode,
|
|
292
292
|
promoteSessionFactsDurable,
|
|
293
293
|
embedPromotedFacts
|
|
294
|
-
} from "./index-
|
|
294
|
+
} from "./index-sd2s4t4p.js";
|
|
295
295
|
import {
|
|
296
296
|
isMarkerCandidateBasisCurrent2,
|
|
297
297
|
invalidateMarkerCandidateBasis2,
|
|
298
|
+
discardMarkerCandidateBasis2,
|
|
298
299
|
readMarkerCandidateBasis2,
|
|
299
|
-
prepareMarkerCandidateBasis2
|
|
300
|
-
|
|
300
|
+
prepareMarkerCandidateBasis2,
|
|
301
|
+
readMarkerFrontiers2,
|
|
302
|
+
certifiedMarkerReferenceFloor2,
|
|
303
|
+
readMarkerReferenceRows2,
|
|
304
|
+
readKnownMarkerReferenceRows2
|
|
305
|
+
} from "./index-gn6gfz4y.js";
|
|
301
306
|
import {
|
|
302
307
|
sendStatusNotification2
|
|
303
|
-
} from "./index-
|
|
308
|
+
} from "./index-25ka1jza.js";
|
|
304
309
|
import {
|
|
305
310
|
isCompactionEnabled,
|
|
306
311
|
migrateLegacyAgentEnabledInMemory
|
|
@@ -8269,18 +8274,27 @@ function isCompactionMarkerIntentAbsent(marker, targetEndMessageId) {
|
|
|
8269
8274
|
return !db.prepare(`SELECT 1 FROM message WHERE id IN (?, ?)
|
|
8270
8275
|
UNION ALL SELECT 1 FROM part WHERE id IN (?, ?) LIMIT 1`).get(targetEndMessageId, marker.summaryMessageId, marker.compactionPartId, marker.summaryPartId);
|
|
8271
8276
|
}
|
|
8272
|
-
function withCompactionMarkerPublicationLock(operation, sessionId) {
|
|
8277
|
+
function withCompactionMarkerPublicationLock(operation, sessionId, onReferencesMissing) {
|
|
8273
8278
|
const db = getWritableOpenCodeDb();
|
|
8274
8279
|
const snapshot = prepareMarkerReplacementSnapshot(db, sessionId);
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8280
|
+
if (snapshot === "references-missing" && onReferencesMissing) {
|
|
8281
|
+
startCompactionMarkerCandidatePreparation(sessionId);
|
|
8282
|
+
return onReferencesMissing();
|
|
8283
|
+
}
|
|
8284
|
+
try {
|
|
8285
|
+
return runMarkerWriteTransaction(db, "compaction-marker-replace", () => {
|
|
8286
|
+
if (typeof snapshot === "object")
|
|
8287
|
+
activeMarkerReplacementSnapshots.set(db, snapshot);
|
|
8288
|
+
try {
|
|
8289
|
+
return operation();
|
|
8290
|
+
} finally {
|
|
8291
|
+
activeMarkerReplacementSnapshots.delete(db);
|
|
8292
|
+
}
|
|
8293
|
+
});
|
|
8294
|
+
} finally {
|
|
8295
|
+
if (warmAfterCommit.delete(sessionId) && !db.inTransaction)
|
|
8296
|
+
startCompactionMarkerCandidatePreparation(sessionId);
|
|
8297
|
+
}
|
|
8284
8298
|
}
|
|
8285
8299
|
function inspectCompactionMarkerPublication(sessionId, recognized, summaryText, targetBoundaryMessageId, preferred) {
|
|
8286
8300
|
const db = getWritableOpenCodeDb();
|
|
@@ -8388,12 +8402,37 @@ async function prepareCompactionMarkerCandidates(sessionId, options = {}) {
|
|
|
8388
8402
|
if (!harnessOwnsOpenCodeStore2())
|
|
8389
8403
|
return true;
|
|
8390
8404
|
try {
|
|
8391
|
-
|
|
8405
|
+
const db = getWritableOpenCodeDb();
|
|
8406
|
+
if (markerDiscoveryReady(db, sessionId))
|
|
8407
|
+
return true;
|
|
8408
|
+
discardMarkerCandidateBasis2(db, sessionId);
|
|
8409
|
+
const prepared = await prepareMarkerCandidateBasis2(db, sessionId, {
|
|
8410
|
+
references: !markerReplacementSnapshots.get(db)?.has(sessionId),
|
|
8411
|
+
...options
|
|
8412
|
+
});
|
|
8413
|
+
return prepared && markerDiscoveryReady(db, sessionId);
|
|
8392
8414
|
} catch (error) {
|
|
8393
8415
|
log2(`[magic-context] compaction-marker: deferred candidate preparation for ${sessionId}: ${error instanceof Error ? error.message : String(error)}; marker unchanged`);
|
|
8394
8416
|
return false;
|
|
8395
8417
|
}
|
|
8396
8418
|
}
|
|
8419
|
+
function startCompactionMarkerCandidatePreparation(sessionId) {
|
|
8420
|
+
if (!harnessOwnsOpenCodeStore2())
|
|
8421
|
+
return "ready";
|
|
8422
|
+
try {
|
|
8423
|
+
if (markerDiscoveryReady(getWritableOpenCodeDb(), sessionId))
|
|
8424
|
+
return "ready";
|
|
8425
|
+
} catch (error) {
|
|
8426
|
+
log2(`[magic-context] compaction-marker: deferred candidate preparation for ${sessionId}: ${error instanceof Error ? error.message : String(error)}; marker unchanged`);
|
|
8427
|
+
return "unavailable";
|
|
8428
|
+
}
|
|
8429
|
+
prepareCompactionMarkerCandidates(sessionId);
|
|
8430
|
+
return "preparing";
|
|
8431
|
+
}
|
|
8432
|
+
function markerDiscoveryReady(db, sessionId) {
|
|
8433
|
+
const basis = readMarkerCandidateBasis2(db, sessionId);
|
|
8434
|
+
return basis !== undefined && (basis.references !== undefined || markerReplacementSnapshots.get(db)?.has(sessionId) === true);
|
|
8435
|
+
}
|
|
8397
8436
|
function injectCompactionMarkerFromBasis(args, validatedBasis, preserveExistingLineages = false) {
|
|
8398
8437
|
const db = getWritableOpenCodeDb();
|
|
8399
8438
|
if (!isOpenCodeSchemaCompatible(db, getOpenCodeDbPath())) {
|
|
@@ -8488,18 +8527,7 @@ class MarkerCandidateUnavailableError extends Error {
|
|
|
8488
8527
|
}
|
|
8489
8528
|
var activeMarkerReplacementSnapshots = new WeakMap;
|
|
8490
8529
|
var markerReplacementSnapshots = new WeakMap;
|
|
8491
|
-
var
|
|
8492
|
-
CASE WHEN data LIKE '%tail_start_id%' THEN json_extract(data, '$.tail_start_id') END AS direct,
|
|
8493
|
-
CASE WHEN data LIKE '%tail_start_id%' THEN json_extract(data, '$.compaction.tail_start_id') END AS nested`;
|
|
8494
|
-
function readMarkerReferenceRows(db, sessionId, table, highestId) {
|
|
8495
|
-
return db.prepare(`SELECT ${MARKER_TAIL_REFERENCE_COLUMNS} FROM ${table}
|
|
8496
|
-
WHERE ${highestId === undefined ? "session_id = ?" : "id > ? AND +session_id = ?"}
|
|
8497
|
-
AND ${table === "part" ? "data LIKE '%compaction%' AND json_valid(data) AND json_extract(data, '$.type') = 'compaction'" : "(data LIKE '%compaction%' OR data LIKE '%tail_start_id%') AND json_valid(data) AND (json_type(data, '$.compaction') IS NOT NULL OR json_type(data, '$.tail_start_id') IS NOT NULL)"}`).all(...highestId === undefined ? [sessionId] : [highestId, sessionId]);
|
|
8498
|
-
}
|
|
8499
|
-
function readKnownMarkerReferenceRows(db, sessionId, table, ids) {
|
|
8500
|
-
const byId = db.prepare(`SELECT ${MARKER_TAIL_REFERENCE_COLUMNS} FROM ${table} WHERE id = ? AND session_id = ?`);
|
|
8501
|
-
return ids.flatMap((id) => byId.all(id, sessionId));
|
|
8502
|
-
}
|
|
8530
|
+
var warmAfterCommit = new Set;
|
|
8503
8531
|
function prepareMarkerReplacementSnapshot(db, sessionId) {
|
|
8504
8532
|
const sessions = markerReplacementSnapshots.get(db) ?? new Map;
|
|
8505
8533
|
markerReplacementSnapshots.set(db, sessions);
|
|
@@ -8527,23 +8555,37 @@ function prepareMarkerReplacementSnapshot(db, sessionId) {
|
|
|
8527
8555
|
sessions.delete(sessionId);
|
|
8528
8556
|
return;
|
|
8529
8557
|
}
|
|
8530
|
-
const
|
|
8531
|
-
|
|
8532
|
-
const
|
|
8558
|
+
const cached = sessions.get(sessionId);
|
|
8559
|
+
let knownParts;
|
|
8560
|
+
for (const seed of [cached, basis.references]) {
|
|
8561
|
+
const floor = seed ? certifiedMarkerReferenceFloor2(reader, "part", seed.partFrontiers) : undefined;
|
|
8562
|
+
if (seed && floor !== undefined) {
|
|
8563
|
+
knownParts = { seed, floor };
|
|
8564
|
+
break;
|
|
8565
|
+
}
|
|
8566
|
+
}
|
|
8567
|
+
if (!knownParts) {
|
|
8568
|
+
sessions.delete(sessionId);
|
|
8569
|
+
discardMarkerCandidateBasis2(db, sessionId);
|
|
8570
|
+
log2(`[magic-context] compaction-marker: deferred replacement for ${sessionId}: part reference discovery is missing or its frontier changed; marker unchanged`);
|
|
8571
|
+
return "references-missing";
|
|
8572
|
+
}
|
|
8573
|
+
const discover = (table, ids, floor) => [
|
|
8533
8574
|
...new Map([
|
|
8534
|
-
...
|
|
8535
|
-
...
|
|
8575
|
+
...readKnownMarkerReferenceRows2(reader, sessionId, table, ids),
|
|
8576
|
+
...readMarkerReferenceRows2(reader, sessionId, table, floor)
|
|
8536
8577
|
].map((row) => [row.id, row])).values()
|
|
8537
|
-
]
|
|
8538
|
-
const parts = discover("part",
|
|
8539
|
-
const
|
|
8578
|
+
];
|
|
8579
|
+
const parts = discover("part", knownParts.seed.partIds, knownParts.floor);
|
|
8580
|
+
const messageFloor = cached ? certifiedMarkerReferenceFloor2(reader, "message", cached.messageFrontiers) : undefined;
|
|
8581
|
+
const messages = cached && messageFloor !== undefined ? discover("message", cached.messageIds, messageFloor) : readMarkerReferenceRows2(reader, sessionId, "message");
|
|
8540
8582
|
snapshot = {
|
|
8541
8583
|
sessionId,
|
|
8542
8584
|
basis,
|
|
8543
8585
|
partIds: parts.map((row) => row.id),
|
|
8544
8586
|
messageIds: messages.map((row) => row.id),
|
|
8545
|
-
|
|
8546
|
-
|
|
8587
|
+
partFrontiers: readMarkerFrontiers2(reader, "part"),
|
|
8588
|
+
messageFrontiers: readMarkerFrontiers2(reader, "message"),
|
|
8547
8589
|
references: [...parts, ...messages]
|
|
8548
8590
|
};
|
|
8549
8591
|
} finally {
|
|
@@ -8560,7 +8602,7 @@ function prepareMarkerReplacementSnapshot(db, sessionId) {
|
|
|
8560
8602
|
throw error;
|
|
8561
8603
|
}
|
|
8562
8604
|
}
|
|
8563
|
-
function markerRowsAreReferenced(db, snapshot, existing) {
|
|
8605
|
+
function markerRowsAreReferenced(db, snapshot, existing, seen) {
|
|
8564
8606
|
const deleted = new Set([
|
|
8565
8607
|
existing.summaryMessageId,
|
|
8566
8608
|
existing.summaryPartId,
|
|
@@ -8569,13 +8611,18 @@ function markerRowsAreReferenced(db, snapshot, existing) {
|
|
|
8569
8611
|
const referencesDeleted = (row) => !deleted.has(row.id) && [row.direct, row.nested].some((id) => typeof id === "string" && deleted.has(id));
|
|
8570
8612
|
if (snapshot.references.some(referencesDeleted))
|
|
8571
8613
|
throw new Error("a surviving tail_start_id references a recorded marker row; marker unchanged");
|
|
8572
|
-
for (const [table, ids,
|
|
8573
|
-
["part", snapshot.partIds, snapshot.
|
|
8574
|
-
["message", snapshot.messageIds, snapshot.
|
|
8614
|
+
for (const [table, ids, frontiers] of [
|
|
8615
|
+
["part", snapshot.partIds, snapshot.partFrontiers],
|
|
8616
|
+
["message", snapshot.messageIds, snapshot.messageFrontiers]
|
|
8575
8617
|
]) {
|
|
8576
|
-
|
|
8618
|
+
const floor = certifiedMarkerReferenceFloor2(db, table, frontiers);
|
|
8619
|
+
if (floor === undefined)
|
|
8620
|
+
throw new MarkerCandidateUnavailableError(`host ${table} frontier changed after marker reference discovery; marker unchanged`);
|
|
8621
|
+
if (readKnownMarkerReferenceRows2(db, snapshot.sessionId, table, ids).some(referencesDeleted))
|
|
8577
8622
|
return true;
|
|
8578
|
-
|
|
8623
|
+
const suffix = readMarkerReferenceRows2(db, snapshot.sessionId, table, floor);
|
|
8624
|
+
seen[table].push(...suffix.map((row) => row.id));
|
|
8625
|
+
if (suffix.some(referencesDeleted))
|
|
8579
8626
|
return true;
|
|
8580
8627
|
}
|
|
8581
8628
|
return false;
|
|
@@ -8588,19 +8635,21 @@ function replaceCompactionMarker(existing, args, preserveExistingLineages = fals
|
|
|
8588
8635
|
const db = getWritableOpenCodeDb();
|
|
8589
8636
|
connection = db;
|
|
8590
8637
|
const snapshot = activeMarkerReplacementSnapshots.get(db) ?? prepareMarkerReplacementSnapshot(db, args.sessionId);
|
|
8591
|
-
if (
|
|
8638
|
+
if (typeof snapshot !== "object" || snapshot.sessionId !== args.sessionId) {
|
|
8592
8639
|
return {
|
|
8593
8640
|
kind: "deferred",
|
|
8594
8641
|
error: new Error("marker candidate preparation pending; marker unchanged")
|
|
8595
8642
|
};
|
|
8596
8643
|
}
|
|
8597
8644
|
const { basis } = snapshot;
|
|
8645
|
+
let advanceFrontiers;
|
|
8598
8646
|
const marker = runMarkerWriteTransaction(db, "compaction-marker-replace", () => {
|
|
8599
8647
|
entered = true;
|
|
8600
8648
|
if (!isMarkerCandidateBasisCurrent2(db, basis))
|
|
8601
8649
|
throw new MarkerCandidateUnavailableError("host store changed after marker candidate preparation; marker unchanged");
|
|
8650
|
+
const seen = { part: [], message: [] };
|
|
8602
8651
|
if (existing) {
|
|
8603
|
-
if (markerRowsAreReferenced(db, snapshot, existing))
|
|
8652
|
+
if (markerRowsAreReferenced(db, snapshot, existing, seen))
|
|
8604
8653
|
throw new MarkerCandidateUnavailableError("a surviving tail_start_id references a recorded marker row; marker unchanged");
|
|
8605
8654
|
db.prepare("DELETE FROM part WHERE id = ?").run(existing.summaryPartId);
|
|
8606
8655
|
db.prepare("DELETE FROM message WHERE id = ?").run(existing.summaryMessageId);
|
|
@@ -8610,9 +8659,28 @@ function replaceCompactionMarker(existing, args, preserveExistingLineages = fals
|
|
|
8610
8659
|
if (!replacement) {
|
|
8611
8660
|
throw new Error(`failed to inject replacement marker at ordinal ${args.endOrdinal}`);
|
|
8612
8661
|
}
|
|
8662
|
+
if (existing) {
|
|
8663
|
+
try {
|
|
8664
|
+
const partFrontiers = readMarkerFrontiers2(db, "part");
|
|
8665
|
+
const messageFrontiers = readMarkerFrontiers2(db, "message");
|
|
8666
|
+
advanceFrontiers = () => {
|
|
8667
|
+
snapshot.partIds = [...new Set([...snapshot.partIds, ...seen.part])];
|
|
8668
|
+
snapshot.messageIds = [
|
|
8669
|
+
...new Set([...snapshot.messageIds, ...seen.message])
|
|
8670
|
+
];
|
|
8671
|
+
snapshot.partFrontiers = partFrontiers;
|
|
8672
|
+
snapshot.messageFrontiers = messageFrontiers;
|
|
8673
|
+
};
|
|
8674
|
+
} catch {}
|
|
8675
|
+
}
|
|
8613
8676
|
readyToCommit = true;
|
|
8614
8677
|
return replacement;
|
|
8615
8678
|
});
|
|
8679
|
+
advanceFrontiers?.();
|
|
8680
|
+
if (db.inTransaction)
|
|
8681
|
+
warmAfterCommit.add(args.sessionId);
|
|
8682
|
+
else
|
|
8683
|
+
startCompactionMarkerCandidatePreparation(args.sessionId);
|
|
8616
8684
|
return { kind: "committed", marker };
|
|
8617
8685
|
} catch (error) {
|
|
8618
8686
|
if (error instanceof MarkerCandidateUnavailableError)
|
|
@@ -8977,7 +9045,13 @@ function publishRecoverableCompactionMarker(db, args, targetIsCurrent) {
|
|
|
8977
9045
|
if (replacement.kind !== "committed")
|
|
8978
9046
|
cut = replacement.kind === "uncertain" ? "uncertain" : "definitely-no-cut";
|
|
8979
9047
|
return replacement;
|
|
8980
|
-
}, sessionId)
|
|
9048
|
+
}, sessionId, () => {
|
|
9049
|
+
reason = "candidate-preparation";
|
|
9050
|
+
return {
|
|
9051
|
+
kind: "deferred",
|
|
9052
|
+
error: new Error("marker reference discovery pending; marker unchanged")
|
|
9053
|
+
};
|
|
9054
|
+
});
|
|
8981
9055
|
if (result.kind === "committed") {
|
|
8982
9056
|
if (!intended)
|
|
8983
9057
|
throw new Error("committed marker has no publication intent");
|
|
@@ -9063,7 +9137,7 @@ function boundaryWouldDiscardUncoveredMessage(db, sessionId, ordinal, boundaryMe
|
|
|
9063
9137
|
}
|
|
9064
9138
|
return false;
|
|
9065
9139
|
}
|
|
9066
|
-
function applyDeferredCompactionMarker(db, sessionId, pending, directory, trustedBoundary) {
|
|
9140
|
+
function applyDeferredCompactionMarker(db, sessionId, pending, directory, trustedBoundary, options = {}) {
|
|
9067
9141
|
let cut = "uncertain";
|
|
9068
9142
|
let stepStartedAt = performance.now();
|
|
9069
9143
|
const stepMs = [];
|
|
@@ -9119,6 +9193,8 @@ function applyDeferredCompactionMarker(db, sessionId, pending, directory, truste
|
|
|
9119
9193
|
return { kind: "stale-skip", reason: "partial-message-boundary" };
|
|
9120
9194
|
}
|
|
9121
9195
|
endStep("discardCheck");
|
|
9196
|
+
if (options.validateOnly)
|
|
9197
|
+
return { kind: "deferred", reason: "candidate-preparation" };
|
|
9122
9198
|
cut = "uncertain";
|
|
9123
9199
|
const replacement = publishRecoverableCompactionMarker(db, {
|
|
9124
9200
|
sessionId,
|
|
@@ -10653,9 +10729,6 @@ function mustMaterialize(args) {
|
|
|
10653
10729
|
m0ToolSetHashNew: liveToolSetHash
|
|
10654
10730
|
} : null;
|
|
10655
10731
|
const withToolSetHashComparison = (decision) => toolSetHashComparison ? { ...decision, ...toolSetHashComparison } : decision;
|
|
10656
|
-
if (hard.cacheExpired && hard.lastResponseTime > 0 && hard.lastResponseTime > (args.state.cachedM0MaterializedAt ?? 0)) {
|
|
10657
|
-
return withToolSetHashComparison({ value: true, reason: "ttl_idle" });
|
|
10658
|
-
}
|
|
10659
10732
|
const hostCompaction = hard.hostCompaction;
|
|
10660
10733
|
if (hostCompaction !== undefined && hostCompaction.completedAt > (args.state.cachedM0MaterializedAt ?? 0)) {
|
|
10661
10734
|
return withToolSetHashComparison({ value: true, reason: "host_compaction" });
|
|
@@ -18700,4 +18773,4 @@ async function executeContextRecomp(deps, options = {}) {
|
|
|
18700
18773
|
return (await executeContextRecompWithResult(deps, options)).message;
|
|
18701
18774
|
}
|
|
18702
18775
|
|
|
18703
|
-
export { denyTaskRoutingToCallerAgents, buildHiddenAgentRegistrations, buildZenReadAgentRegistrations, buildHiddenAgentConfig, getMagicContextBuiltinCommands, formatConfigParseStatusLine, claimConfigParseFailuresOnce, isCommitRetentionPaused, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, resolveLegacyConfigSources, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, loadPluginConfigDetailed, historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, createDreamerOutputCapSampler, COMPARTMENT_AGENT_SYSTEM_PROMPT, HISTORIAN_EDITOR_SYSTEM_PROMPT, COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, createChildSessionWithFence, HiddenCompletionRefusal, DreamerProviderOutputFailureError, withDreamerModelCooldown, providerOutputFailureFromInvalidManifest, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, ModelProducedNoOutputError, noteModelActivityMonitored, noteModelOutputReceived, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, annotateSubagentInvocationError, failedInvocationStatus, emptyTokenTotals, sumTokensFromChildMessages, recordChildInvocation, recordPromptSessionError, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, setKeepSubagents, teardownChildSession, getCompartmentEvents, runTokenLog, formatRunTokenLog, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, v2ToolDefinitionsHash, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder,
|
|
18776
|
+
export { denyTaskRoutingToCallerAgents, buildHiddenAgentRegistrations, buildZenReadAgentRegistrations, buildHiddenAgentConfig, getMagicContextBuiltinCommands, formatConfigParseStatusLine, claimConfigParseFailuresOnce, isCommitRetentionPaused, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, resolveLegacyConfigSources, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, loadPluginConfigDetailed, historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, createDreamerOutputCapSampler, COMPARTMENT_AGENT_SYSTEM_PROMPT, HISTORIAN_EDITOR_SYSTEM_PROMPT, COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, createChildSessionWithFence, HiddenCompletionRefusal, DreamerProviderOutputFailureError, withDreamerModelCooldown, providerOutputFailureFromInvalidManifest, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, ModelProducedNoOutputError, noteModelActivityMonitored, noteModelOutputReceived, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, annotateSubagentInvocationError, failedInvocationStatus, emptyTokenTotals, sumTokensFromChildMessages, recordChildInvocation, recordPromptSessionError, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, setKeepSubagents, teardownChildSession, getCompartmentEvents, runTokenLog, formatRunTokenLog, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, v2ToolDefinitionsHash, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, startCompactionMarkerCandidatePreparation, removeMcOwnedCompactionMarkers, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, removeCompactionMarkerForSession, checkCompactionMarkerConsistency, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, hasCompleteCachedM0M1, injectM0M1, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, readCoordinateGeneration, readCoordinateRebaseNotice, formatCoordinateRebaseNotice, rebaseSessionCoordinatesAsync, shouldWaitForNewHistorianHistory, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, resetNoteNudgeCooldownOnly, clearNoteNudgeTriggerOnly, omitIncompleteFileTokenTotals, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, deriveProtectedTailTokenTarget, selectPerRunCap, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, noteTransformPassForExactOrdinalReads, runCompartmentAgent, snapRangeToCompartments, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, executeContextRecomp };
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
} from "./index-96ztjvkn.js";
|
|
50
50
|
import {
|
|
51
51
|
startMessageFtsRowidMapBackfill2
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-h9m41624.js";
|
|
53
53
|
import {
|
|
54
54
|
LKG_SLOT_CHUNKS_DDL,
|
|
55
55
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
setDatabase,
|
|
74
74
|
loadToolDefinitionMeasurements
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-smtbdmc3.js";
|
|
76
76
|
import {
|
|
77
77
|
getErrorMessage
|
|
78
78
|
} from "./index-y8v6yerm.js";
|
|
@@ -1024,7 +1024,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1024
1024
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1025
1025
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1026
1026
|
return;
|
|
1027
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1027
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-k3fqshw8.js"));
|
|
1028
1028
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-39bm498k.js"));
|
|
1029
1029
|
if (signal.aborted)
|
|
1030
1030
|
return;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAsHvE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA8jCpC,QAAA,MAAM,MAAM,EAAE,YAAY,GAAG;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAIjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|