@cortexkit/opencode-magic-context 0.49.26 → 0.49.27
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/{compartment-chunk-embedding-96ec8a7h.js → compartment-chunk-embedding-qgp0tbf7.js} +3 -3
- package/dist/config/schema/magic-context.d.ts +393 -393
- package/dist/{conflict-warning-hook-dv8fdc2w.js → conflict-warning-hook-tgnw019g.js} +4 -4
- package/dist/{context-pjqa24nd.js → context-t2k97d6v.js} +116 -116
- package/dist/{embedding-backfill-a91rvdf9.js → embedding-backfill-cwnyr4fj.js} +5 -5
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts +1 -4
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +1 -28
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/session-retention.fixture.d.ts +4 -0
- package/dist/features/magic-context/session-retention.fixture.d.ts.map +1 -0
- package/dist/features/magic-context/storage-session-tables.d.ts +5 -12
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-history-wait.d.ts +10 -0
- package/dist/hooks/magic-context/historian-history-wait.d.ts.map +1 -0
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts +0 -5
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +0 -10
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/todo-view.d.ts +2 -2
- package/dist/{index-w55zp7kf.js → index-077ht5cq.js} +1 -1
- package/dist/{index-xyx2ge2y.js → index-31y1mznz.js} +4 -4
- package/dist/{index-6g1zq1sk.js → index-4cpc59jv.js} +5 -5
- package/dist/{index-e5b61ty6.js → index-4ypqzvhf.js} +1 -1
- package/dist/index-7gbcg8xv.js +559 -0
- package/dist/{index-9q1g3c5q.js → index-7kkphb6c.js} +1 -1
- package/dist/{index-zn2n24yr.js → index-89k1w6x2.js} +3 -3
- package/dist/{index-sgchhbvy.js → index-a2fz9hpa.js} +1 -1
- package/dist/{index-hjnrp6vy.js → index-dcqk0y27.js} +1508 -85
- package/dist/{index-r3bteyev.js → index-dzfevacx.js} +9 -9
- package/dist/{index-rp78nqvr.js → index-fq2p158w.js} +10 -10
- package/dist/{index-6tmf87w0.js → index-mm93m7y6.js} +1 -1
- package/dist/{index-va2g2q57.js → index-n8qmmd7f.js} +3 -3
- package/dist/{index-whcgcfrv.js → index-np3rgfw4.js} +1 -1
- package/dist/{index-56tfs78r.js → index-qzbpbnqt.js} +485 -512
- package/dist/{index-m8va3mma.js → index-rverk2vz.js} +0 -2
- package/dist/{index-cfaet9cg.js → index-s1n8dd2n.js} +1 -1
- package/dist/{index-mphkpyap.js → index-t3rbb8wr.js} +2 -2
- package/dist/{index-064v90e8.js → index-tvzvjggy.js} +1 -1
- package/dist/{index-j43m40zd.js → index-v0dhhxsq.js} +1 -1
- package/dist/{index-xbbgcwd2.js → index-v15ne3a3.js} +2 -5
- package/dist/{index-x9k3mqrf.js → index-xrnsygfq.js} +1 -1
- package/dist/{index-dn2ke3b9.js → index-yzjhx10y.js} +5 -5
- package/dist/index.js +38 -38
- package/dist/{message-fts-rowid-map-4ksatb6f.js → message-fts-rowid-map-va36knh4.js} +2 -4
- package/dist/{message-index-bounded-whh5wv4a.js → message-index-bounded-7ayzb2ah.js} +22 -25
- package/dist/migration-worker.js +6 -6
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/{project-embedding-registry-t9fx6jwh.js → project-embedding-registry-94nncs5g.js} +4 -4
- package/dist/raw-ordinal-warmup-worker.js +7 -30
- package/dist/{read-session-chunk-mqmkgdx0.js → read-session-chunk-jzb6w9w5.js} +6 -6
- package/dist/{read-session-raw-dy2xxafq.js → read-session-raw-b2sd67v4.js} +1 -1
- package/dist/{recomp-orchestrator-qwcz86r1.js → recomp-orchestrator-02sa2ngr.js} +17 -17
- package/dist/{search-archive-8md3twv2.js → search-archive-q1vw7zg4.js} +7 -7
- package/dist/{search-y2t97tbb.js → search-spq6nfyf.js} +14 -15
- package/dist/{send-session-notification-kzazs7fy.js → send-session-notification-afzzqy5b.js} +3 -3
- package/dist/{storage-tags-a77q4v77.js → storage-tags-6hvkk01c.js} +2 -2
- package/dist/{transform-postprocess-phase-ppm1tfa7.js → transform-postprocess-phase-6menyyxc.js} +17 -17
- package/dist/v2/auto-search-worker.js +4 -4
- package/dist/v2/chunk-embedding-write-worker.js +7 -7
- package/dist/v2/{compartment-chunk-embedding-5rmrn09z.js → compartment-chunk-embedding-63dzs31c.js} +3 -3
- package/dist/v2/{context-10pj3bwd.js → context-na0esngr.js} +181 -206
- package/dist/v2/{embedding-backfill-r9mzt2eg.js → embedding-backfill-rh5dgsva.js} +5 -5
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/{message-fts-rowid-map-2s3ta05x.js → message-fts-rowid-map-78awh03v.js} +2 -4
- package/dist/v2/{message-index-bounded-f4269d3a.js → message-index-bounded-n09b74vr.js} +21 -24
- package/dist/v2/migration-worker.js +6 -6
- package/dist/v2/{project-embedding-registry-tgtmart7.js → project-embedding-registry-6pak822h.js} +4 -4
- package/dist/v2/raw-ordinal-warmup-worker.js +7 -30
- package/dist/v2/{read-session-chunk-ym5zvexn.js → read-session-chunk-vpt69tw9.js} +5 -5
- package/dist/v2/{read-session-raw-484g8kf2.js → read-session-raw-5x088amc.js} +1 -1
- package/dist/v2/{recomp-orchestrator-b44s2snm.js → recomp-orchestrator-txsmbnvw.js} +14 -14
- package/dist/v2/{search-archive-pmf2c1kb.js → search-archive-t9bcz4ht.js} +6 -6
- package/dist/v2/{search-75tf953m.js → search-dcy9b6gd.js} +13 -14
- package/dist/v2/{send-session-notification-gd21f5rq.js → send-session-notification-vdsgnf4c.js} +1 -1
- package/dist/v2/{server-7dpnt0ys.js → server-4sn3at8p.js} +1 -1
- package/dist/v2/{server-wj8h2q21.js → server-6avtp9jp.js} +1 -1
- package/dist/v2/{server-wwaw5npa.js → server-6g98c227.js} +1 -1
- package/dist/v2/{server-erk2bvdf.js → server-6vd2n183.js} +0 -2
- package/dist/v2/{server-4frtg2z1.js → server-awr8qa4c.js} +2 -5
- package/dist/v2/{server-7d6m1p2b.js → server-cqjvxyrp.js} +1 -1
- package/dist/v2/{server-317f3x9y.js → server-e3hc93wk.js} +5 -5
- package/dist/v2/{server-9zh78t8y.js → server-jj9qye8y.js} +1468 -73
- package/dist/v2/{server-fa7vtp40.js → server-nxas8v1d.js} +1 -1
- package/dist/v2/{server-vjer2jdn.js → server-txbc3czn.js} +9 -9
- package/dist/v2/{server-rqebawx1.js → server-v77xa5wj.js} +1 -1
- package/dist/v2/{server-jcsw05aa.js → server-xkvxss5g.js} +4 -4
- package/dist/v2/{server-hnmm8yzq.js → server-yqek3s4k.js} +1 -1
- package/dist/v2/server-z2n2xaeh.js +538 -0
- package/dist/v2/{server-nmwhe524.js → server-z3mk9jdc.js} +2 -2
- package/dist/v2/{server-w7x9wgm0.js → server-zmcrvpm3.js} +2 -2
- package/dist/v2/server.js +2 -2
- package/dist/v2/{storage-tags-q71rnr9f.js → storage-tags-18nbaanf.js} +2 -2
- package/dist/v2/store-reader.d.ts +0 -2
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-gwww44st.js → wrapup-orchestrator-gjkszser.js} +14 -14
- package/dist/{wrapup-orchestrator-a9r8r4sk.js → wrapup-orchestrator-n5h5sr1x.js} +18 -18
- package/package.json +1 -1
- package/src/shared/write-transaction-attribution.test.ts +1 -6
- package/dist/index-40ma8m0c.js +0 -2251
- package/dist/message-index-ywx53y30.js +0 -61
- package/dist/v2/message-index-v6g8mgn7.js +0 -60
- package/dist/v2/server-k46ec388.js +0 -2220
|
@@ -1253,8 +1253,6 @@ function runSessionWarmupWorker(input, options) {
|
|
|
1253
1253
|
finish({ delta: reply.delta });
|
|
1254
1254
|
else if (reply.kind === "indexed")
|
|
1255
1255
|
finish({ inserted: reply.inserted, measurements: reply.measurements });
|
|
1256
|
-
else if (reply.kind === "orphan-sweep")
|
|
1257
|
-
finish({ orphanSweep: reply.result });
|
|
1258
1256
|
else if (reply.kind === "exact-ordinal-ids")
|
|
1259
1257
|
finish({ exactOrdinalIds: reply.ids });
|
|
1260
1258
|
else if (reply.kind === "search-archive")
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./index-fr0wbhdn.js";
|
|
15
15
|
import {
|
|
16
16
|
managedAuthorityNoteRow
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-7kkphb6c.js";
|
|
18
18
|
import {
|
|
19
19
|
embedTextForProject2
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-a2fz9hpa.js";
|
|
21
21
|
import {
|
|
22
22
|
saveEmbeddingIfHashMatches
|
|
23
23
|
} from "./index-4dhv7mqz.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./index-gzy5w8ya.js";
|
|
6
6
|
import {
|
|
7
7
|
runSessionWarmupWorker
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-rverk2vz.js";
|
|
9
9
|
import {
|
|
10
10
|
logSlowWriteTransaction
|
|
11
11
|
} from "./index-t5pck3ss.js";
|
|
@@ -168,9 +168,6 @@ function messageFtsOrdinalRangeIsMapped2(db, sessionId, startOrdinal, endOrdinal
|
|
|
168
168
|
const ordinalCount = endOrdinal - startOrdinal + 1;
|
|
169
169
|
return row?.sourceOrdinalCount === ordinalCount && row.expectedMapCount === row.mappedCount;
|
|
170
170
|
}
|
|
171
|
-
function getMessageFtsRowidMapBackfillProgress2(db) {
|
|
172
|
-
return getBackfillState(db);
|
|
173
|
-
}
|
|
174
171
|
function deleteUnmappedMessageFtsRows2(db, sessionIds) {
|
|
175
172
|
if (sessionIds.length === 0)
|
|
176
173
|
return;
|
|
@@ -182,4 +179,4 @@ function deleteUnmappedMessageFtsRows2(db, sessionIds) {
|
|
|
182
179
|
WHERE rowid > ? AND session_id IN (${placeholders})`).run(state.watermarkRowid, ...sessionIds);
|
|
183
180
|
}
|
|
184
181
|
|
|
185
|
-
export { recordMessageFtsRowid2, recordIndexedMessageTime2, runMessageFtsRowidMapBackfill2, startMessageFtsRowidMapBackfill2, messageFtsOrdinalRangeIsMapped2,
|
|
182
|
+
export { recordMessageFtsRowid2, recordIndexedMessageTime2, runMessageFtsRowidMapBackfill2, startMessageFtsRowidMapBackfill2, messageFtsOrdinalRangeIsMapped2, deleteUnmappedMessageFtsRows2 };
|
|
@@ -533,4 +533,4 @@ function jsonHashSink(prefix = "") {
|
|
|
533
533
|
return { write, digest: () => (hash >>> 0).toString(16).padStart(8, "0") };
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
export {
|
|
536
|
+
export { tagTombstoneOwnerRange, tagTombstoneOwnerKey, tagRevisionKey, tagIdentityRevisionKey, installTagIdentityRevisionTrigger, deleteTagIdentityRevisions, getTableColumnNames, ensureColumn, healAllNullColumns, getTemporalDecisions, observeTemporalDecisions, freezeTemporalDecisions, deleteTemporalDecision, installV95PerfSchema, tagOrderConstraintIndex, stableStringify, stableStringifyHash };
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
TAG_SELECT_COLUMNS2,
|
|
25
25
|
getCandidateToolOwners2,
|
|
26
26
|
pickNearestPriorOwner2
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-np3rgfw4.js";
|
|
28
28
|
import {
|
|
29
29
|
OMO_INTERNAL_INITIATOR_MARKER,
|
|
30
30
|
isSystemDirective,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./index-gzy5w8ya.js";
|
|
49
49
|
import {
|
|
50
50
|
stableStringify
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-xrnsygfq.js";
|
|
52
52
|
import {
|
|
53
53
|
renderToolTemplate,
|
|
54
54
|
resolveModelConfigValue,
|
|
@@ -70,18 +70,18 @@ import {
|
|
|
70
70
|
readRawSeedTailFromDb2,
|
|
71
71
|
readRawSessionBoundaryEndpointsFromDb2,
|
|
72
72
|
prewarmRawSessionOrdinalsForDb
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-rverk2vz.js";
|
|
74
74
|
import {
|
|
75
75
|
openCodeDbExists,
|
|
76
76
|
withReadOnlySessionDb,
|
|
77
77
|
getRawSessionMessageCountFromDb,
|
|
78
78
|
getMessageTimesFromOpenCodeDb
|
|
79
|
-
} from "./index-
|
|
79
|
+
} from "./index-v0dhhxsq.js";
|
|
80
80
|
import {
|
|
81
81
|
getToolDefinitionMeasurementSignature,
|
|
82
82
|
getMeasuredToolDefinitionTokens,
|
|
83
83
|
getSessionToolDefinitionTokens
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-s1n8dd2n.js";
|
|
85
85
|
import {
|
|
86
86
|
canonicalModelIdentity,
|
|
87
87
|
piModelRefToCanonical
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
detectOverflow,
|
|
29
29
|
isAnthropicFamilyRoute,
|
|
30
30
|
readRawSessionMessages2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-yzjhx10y.js";
|
|
32
32
|
import {
|
|
33
33
|
setHarness2
|
|
34
34
|
} from "./index-pavzsdc6.js";
|
|
@@ -72,6 +72,8 @@ import {
|
|
|
72
72
|
dreamerRunConfig,
|
|
73
73
|
pluginConfigReader,
|
|
74
74
|
createDreamerOutputCapSampler,
|
|
75
|
+
observeSessionActivity,
|
|
76
|
+
backfillSessionActivity,
|
|
75
77
|
COMPARTMENT_AGENT_SYSTEM_PROMPT,
|
|
76
78
|
HISTORIAN_EDITOR_SYSTEM_PROMPT,
|
|
77
79
|
COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT,
|
|
@@ -97,7 +99,7 @@ import {
|
|
|
97
99
|
checkCompactionMarkerConsistency,
|
|
98
100
|
clearInjectionCache,
|
|
99
101
|
clearNoteNudgeTriggerOnly
|
|
100
|
-
} from "./index-
|
|
102
|
+
} from "./index-dcqk0y27.js";
|
|
101
103
|
import"./index-sd3egckz.js";
|
|
102
104
|
import {
|
|
103
105
|
hasTrustedAbsoluteWall,
|
|
@@ -125,7 +127,6 @@ import {
|
|
|
125
127
|
createDreamTaskExecutor,
|
|
126
128
|
runManualDream,
|
|
127
129
|
runDueTasksForProject,
|
|
128
|
-
scheduleClearAndReindex,
|
|
129
130
|
startDreamScheduleTimer,
|
|
130
131
|
createDreamTimerModuleClient,
|
|
131
132
|
ensureProjectRegisteredFromOpenCodeDirectory,
|
|
@@ -138,6 +139,7 @@ import {
|
|
|
138
139
|
resolveSessionId,
|
|
139
140
|
createScheduler,
|
|
140
141
|
describeStorageUnavailability,
|
|
142
|
+
scheduleClearAndReindex,
|
|
141
143
|
resolveSessionCacheTtl,
|
|
142
144
|
runEmbedHistoryDrain,
|
|
143
145
|
pauseEmbedHistoryDrain,
|
|
@@ -185,7 +187,7 @@ import {
|
|
|
185
187
|
parameterDescriptionsFor,
|
|
186
188
|
MagicContextRpcServer,
|
|
187
189
|
applyHiddenSubagentTemperature
|
|
188
|
-
} from "./index-
|
|
190
|
+
} from "./index-qzbpbnqt.js";
|
|
189
191
|
import {
|
|
190
192
|
resolveOpenCodeDbPath,
|
|
191
193
|
openCodeDbPathExists,
|
|
@@ -209,7 +211,7 @@ import {
|
|
|
209
211
|
openDatabaseAsync,
|
|
210
212
|
isDatabasePersisted,
|
|
211
213
|
getDatabasePersistenceError
|
|
212
|
-
} from "./index-
|
|
214
|
+
} from "./index-4cpc59jv.js";
|
|
213
215
|
import {
|
|
214
216
|
setHomeProjectPermission,
|
|
215
217
|
ProjectIdentityError,
|
|
@@ -223,12 +225,7 @@ import {
|
|
|
223
225
|
} from "./index-kq5w68dp.js";
|
|
224
226
|
import {
|
|
225
227
|
deleteTemporalDecision
|
|
226
|
-
} from "./index-
|
|
227
|
-
import {
|
|
228
|
-
observeSessionActivity,
|
|
229
|
-
backfillSessionActivity,
|
|
230
|
-
deleteIndexedMessage2
|
|
231
|
-
} from "./index-40ma8m0c.js";
|
|
228
|
+
} from "./index-xrnsygfq.js";
|
|
232
229
|
import {
|
|
233
230
|
recordSessionProjectIdentity
|
|
234
231
|
} from "./index-kfyb3k6n.js";
|
|
@@ -241,9 +238,9 @@ import {
|
|
|
241
238
|
import"./index-cpjk5jd2.js";
|
|
242
239
|
import {
|
|
243
240
|
forgetRawSessionOrdinalWatermark2
|
|
244
|
-
} from "./index-
|
|
245
|
-
import"./index-
|
|
246
|
-
import"./index-
|
|
241
|
+
} from "./index-rverk2vz.js";
|
|
242
|
+
import"./index-v15ne3a3.js";
|
|
243
|
+
import"./index-7kkphb6c.js";
|
|
247
244
|
import"./index-fr0wbhdn.js";
|
|
248
245
|
import {
|
|
249
246
|
preloadTokenizer
|
|
@@ -252,23 +249,23 @@ import {
|
|
|
252
249
|
BoundedSessionMap,
|
|
253
250
|
recordToolDefinition,
|
|
254
251
|
getCurrentToolSetHash
|
|
255
|
-
} from "./index-
|
|
252
|
+
} from "./index-s1n8dd2n.js";
|
|
256
253
|
import"./index-wfybj1dw.js";
|
|
257
254
|
import {
|
|
258
255
|
getDefaultSubcConnectionFile,
|
|
259
256
|
SubcModuleTransport
|
|
260
|
-
} from "./index-
|
|
257
|
+
} from "./index-dzfevacx.js";
|
|
261
258
|
import"./index-qt1qqasc.js";
|
|
262
259
|
import"./index-rrv26qjz.js";
|
|
263
260
|
import {
|
|
264
261
|
observeOpenCodeTurnEvent,
|
|
265
262
|
clearTrackedOpenCodeSession,
|
|
266
263
|
findLastAssistantModelFromOpenCodeDb
|
|
267
|
-
} from "./index-
|
|
264
|
+
} from "./index-v0dhhxsq.js";
|
|
268
265
|
import {
|
|
269
266
|
sendCommandResult2,
|
|
270
267
|
sendStatusNotification2
|
|
271
|
-
} from "./index-
|
|
268
|
+
} from "./index-077ht5cq.js";
|
|
272
269
|
import {
|
|
273
270
|
detectConflicts,
|
|
274
271
|
resolveCompactionForBoot
|
|
@@ -276,13 +273,13 @@ import {
|
|
|
276
273
|
import {
|
|
277
274
|
sendConflictWarning2,
|
|
278
275
|
cleanupConflictWarnings2
|
|
279
|
-
} from "./index-
|
|
276
|
+
} from "./index-tvzvjggy.js";
|
|
280
277
|
import"./index-1zx87sdm.js";
|
|
281
278
|
import {
|
|
282
279
|
stripPersistedAssistantText,
|
|
283
280
|
deleteTagsByMessageId2,
|
|
284
281
|
getMaxTagNumberBySession2
|
|
285
|
-
} from "./index-
|
|
282
|
+
} from "./index-np3rgfw4.js";
|
|
286
283
|
import {
|
|
287
284
|
resolveHistorianModel2,
|
|
288
285
|
resolveOpenCodeAgentOverrides2,
|
|
@@ -292,15 +289,18 @@ import {
|
|
|
292
289
|
getEmbedDrainUiStatus,
|
|
293
290
|
clearEmbedSessionState,
|
|
294
291
|
getEmbeddingCoverageStatus2
|
|
295
|
-
} from "./index-
|
|
296
|
-
import"./index-
|
|
297
|
-
import
|
|
292
|
+
} from "./index-a2fz9hpa.js";
|
|
293
|
+
import"./index-mm93m7y6.js";
|
|
294
|
+
import {
|
|
295
|
+
deleteIndexedMessage
|
|
296
|
+
} from "./index-7gbcg8xv.js";
|
|
297
|
+
import"./index-t3rbb8wr.js";
|
|
298
298
|
import {
|
|
299
299
|
pushNotification2
|
|
300
300
|
} from "./index-x8a7jmkh.js";
|
|
301
301
|
import"./index-51rdvtkz.js";
|
|
302
302
|
import"./index-4dhv7mqz.js";
|
|
303
|
-
import"./index-
|
|
303
|
+
import"./index-4ypqzvhf.js";
|
|
304
304
|
import"./index-jjvbk92s.js";
|
|
305
305
|
import"./index-qgh1qwjj.js";
|
|
306
306
|
import {
|
|
@@ -310,10 +310,10 @@ import {
|
|
|
310
310
|
clearToolPermissionDenied,
|
|
311
311
|
collectForeignTextParts,
|
|
312
312
|
resetDegradedCacheCount2
|
|
313
|
-
} from "./index-
|
|
313
|
+
} from "./index-fq2p158w.js";
|
|
314
314
|
import {
|
|
315
315
|
runManagedRecomp2
|
|
316
|
-
} from "./index-
|
|
316
|
+
} from "./index-n8qmmd7f.js";
|
|
317
317
|
import {
|
|
318
318
|
isValidSemver,
|
|
319
319
|
compareSemverCore
|
|
@@ -321,9 +321,9 @@ import {
|
|
|
321
321
|
import"./index-fmsr7v69.js";
|
|
322
322
|
import {
|
|
323
323
|
runManagedWrapup2
|
|
324
|
-
} from "./index-
|
|
324
|
+
} from "./index-31y1mznz.js";
|
|
325
325
|
import"./index-kaqs6h31.js";
|
|
326
|
-
import"./index-
|
|
326
|
+
import"./index-89k1w6x2.js";
|
|
327
327
|
import {
|
|
328
328
|
isDreamerRunnable,
|
|
329
329
|
isSmartNoteSurfaceAvailable,
|
|
@@ -8191,7 +8191,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8191
8191
|
// package.json
|
|
8192
8192
|
var package_default = {
|
|
8193
8193
|
name: "@cortexkit/opencode-magic-context",
|
|
8194
|
-
version: "0.49.
|
|
8194
|
+
version: "0.49.27",
|
|
8195
8195
|
type: "module",
|
|
8196
8196
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8197
8197
|
main: "dist/index.js",
|
|
@@ -9664,7 +9664,7 @@ function cleanupRemovedMessageState(deps, sessionId, messageId) {
|
|
|
9664
9664
|
} else {
|
|
9665
9665
|
sessionLog2(sessionId, `event message.removed: reasoning watermark unchanged at ${currentWatermark} (max tag ${maxRemainingTag})`);
|
|
9666
9666
|
}
|
|
9667
|
-
const removedIndexedMessages =
|
|
9667
|
+
const removedIndexedMessages = deleteIndexedMessage(deps.db, sessionId, messageId);
|
|
9668
9668
|
sessionLog2(sessionId, `event message.removed: deleted ${removedIndexedMessages} indexed message row(s) for ${messageId}`);
|
|
9669
9669
|
return {
|
|
9670
9670
|
clearedNoteNudge
|
|
@@ -12045,7 +12045,7 @@ async function setup(context) {
|
|
|
12045
12045
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12046
12046
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12047
12047
|
}
|
|
12048
|
-
const { registerContext } = await import("./context-
|
|
12048
|
+
const { registerContext } = await import("./context-t2k97d6v.js");
|
|
12049
12049
|
setHarness2("opencode2");
|
|
12050
12050
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12051
12051
|
const duties = await registerContext(context);
|
|
@@ -12124,7 +12124,7 @@ var server = async (ctx) => {
|
|
|
12124
12124
|
if (hasBannerEntries)
|
|
12125
12125
|
setTimeout(async () => {
|
|
12126
12126
|
try {
|
|
12127
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12127
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-afzzqy5b.js"));
|
|
12128
12128
|
const clientWithSessions = ctx.client;
|
|
12129
12129
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12130
12130
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12142,7 +12142,7 @@ var server = async (ctx) => {
|
|
|
12142
12142
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12143
12143
|
setTimeout(async () => {
|
|
12144
12144
|
try {
|
|
12145
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12145
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-afzzqy5b.js"));
|
|
12146
12146
|
const clientWithSessions = ctx.client;
|
|
12147
12147
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12148
12148
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12419,12 +12419,12 @@ var server = async (ctx) => {
|
|
|
12419
12419
|
{
|
|
12420
12420
|
const fence = getSchemaFenceRejection();
|
|
12421
12421
|
if (fence) {
|
|
12422
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12422
|
+
importPluginModule(() => import("./conflict-warning-hook-tgnw019g.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12423
12423
|
}
|
|
12424
12424
|
}
|
|
12425
12425
|
const serverUrl = ctx.serverUrl;
|
|
12426
12426
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12427
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12427
|
+
importPluginModule(() => import("./send-session-notification-afzzqy5b.js")).then(({ setNotificationServerUrl }) => {
|
|
12428
12428
|
setNotificationServerUrl(serverUrlStr);
|
|
12429
12429
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12430
12430
|
if (conflictResult?.hasConflict) {
|
|
@@ -12447,7 +12447,7 @@ var server = async (ctx) => {
|
|
|
12447
12447
|
}) => {
|
|
12448
12448
|
if (!shouldShowAnnouncement())
|
|
12449
12449
|
return;
|
|
12450
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12450
|
+
return importPluginModule(() => import("./conflict-warning-hook-tgnw019g.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12451
12451
|
}).catch(() => {});
|
|
12452
12452
|
}, 8000);
|
|
12453
12453
|
}
|
|
@@ -12521,8 +12521,8 @@ var server = async (ctx) => {
|
|
|
12521
12521
|
tryReopenStorage,
|
|
12522
12522
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12523
12523
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12524
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12525
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12524
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-afzzqy5b.js"));
|
|
12525
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-6menyyxc.js"));
|
|
12526
12526
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12527
12527
|
toastDurationMs: 15000
|
|
12528
12528
|
});
|
|
@@ -4,10 +4,9 @@ import {
|
|
|
4
4
|
runMessageFtsRowidMapBackfill2,
|
|
5
5
|
startMessageFtsRowidMapBackfill2,
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
|
-
getMessageFtsRowidMapBackfillProgress2,
|
|
8
7
|
deleteUnmappedMessageFtsRows2
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-v15ne3a3.js";
|
|
9
|
+
import"./index-rverk2vz.js";
|
|
11
10
|
import"./index-v0p37hm2.js";
|
|
12
11
|
import"./index-t5pck3ss.js";
|
|
13
12
|
import"./index-gzy5w8ya.js";
|
|
@@ -17,7 +16,6 @@ import"./index-pavzsdc6.js";
|
|
|
17
16
|
import"./index-cpjk5jd2.js";
|
|
18
17
|
export {
|
|
19
18
|
deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
|
|
20
|
-
getMessageFtsRowidMapBackfillProgress2 as getMessageFtsRowidMapBackfillProgress,
|
|
21
19
|
messageFtsOrdinalRangeIsMapped2 as messageFtsOrdinalRangeIsMapped,
|
|
22
20
|
recordIndexedMessageTime2 as recordIndexedMessageTime,
|
|
23
21
|
recordMessageFtsRowid2 as recordMessageFtsRowid,
|
|
@@ -3,33 +3,30 @@ import {
|
|
|
3
3
|
withIndexChunk2,
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-gzy5w8ya.js";
|
|
6
|
+
import"./index-1zx87sdm.js";
|
|
7
|
+
import"./index-np3rgfw4.js";
|
|
8
|
+
import"./index-b88dwwrh.js";
|
|
6
9
|
import"./index-pavzsdc6.js";
|
|
7
10
|
import"./index-g2q4htwp.js";
|
|
8
11
|
import"./index-h7tgn49j.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import {
|
|
11
|
-
MESSAGE_INDEX_MAX_FTS_BYTES2,
|
|
12
|
-
messageIndexSkipKey2,
|
|
13
|
-
getLastIndexedOrdinal2,
|
|
14
|
-
markMessageIndexDirty2,
|
|
15
|
-
getIndexableContent2,
|
|
16
|
-
indexSingleMessage2
|
|
17
|
-
} from "./index-40ma8m0c.js";
|
|
18
|
-
import"./index-1zx87sdm.js";
|
|
19
|
-
import"./index-whcgcfrv.js";
|
|
20
|
-
import"./index-b88dwwrh.js";
|
|
21
|
-
import"./index-x9k3mqrf.js";
|
|
12
|
+
import"./index-xrnsygfq.js";
|
|
22
13
|
import"./index-nxrsns5x.js";
|
|
23
14
|
import"./index-v0p37hm2.js";
|
|
24
15
|
import"./index-cpjk5jd2.js";
|
|
25
|
-
import"./index-
|
|
16
|
+
import"./index-rverk2vz.js";
|
|
26
17
|
import"./index-58e3y90n.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
import"./index-v0dhhxsq.js";
|
|
19
|
+
import"./index-yzjhx10y.js";
|
|
20
|
+
import"./index-s1n8dd2n.js";
|
|
21
|
+
import {
|
|
22
|
+
MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
23
|
+
messageIndexSkipKey,
|
|
24
|
+
getLastIndexedOrdinal,
|
|
25
|
+
markMessageIndexDirty,
|
|
26
|
+
getIndexableContent,
|
|
27
|
+
indexSingleMessage
|
|
28
|
+
} from "./index-7gbcg8xv.js";
|
|
29
|
+
import"./index-v15ne3a3.js";
|
|
33
30
|
import"./index-t5pck3ss.js";
|
|
34
31
|
|
|
35
32
|
// src/features/magic-context/message-index-bounded.ts
|
|
@@ -80,13 +77,13 @@ async function indexMessageInShortChunks(db, sessionId, message, coordination, i
|
|
|
80
77
|
try {
|
|
81
78
|
if (!isCurrent())
|
|
82
79
|
return { inserted: false, measurements };
|
|
83
|
-
const content =
|
|
80
|
+
const content = getIndexableContent(message.role, message.parts);
|
|
84
81
|
measurements.sourceBytes = Buffer.byteLength(content);
|
|
85
82
|
const hash = createHash("sha256");
|
|
86
|
-
const oversized = measurements.sourceBytes >
|
|
83
|
+
const oversized = measurements.sourceBytes > MESSAGE_INDEX_MAX_FTS_BYTES;
|
|
87
84
|
measurements.skipped = oversized;
|
|
88
85
|
if (oversized) {
|
|
89
|
-
await transaction(() =>
|
|
86
|
+
await transaction(() => markMessageIndexDirty(db, sessionId, Math.min(message.ordinal, getLastIndexedOrdinal(db, sessionId) + 1)));
|
|
90
87
|
const encoded = Buffer.from(content);
|
|
91
88
|
const progress = db.prepare("INSERT INTO schema_migrations_meta(key,value) VALUES (?,?) ON CONFLICT(key) DO UPDATE SET value=excluded.value");
|
|
92
89
|
for (let offset = 0;offset < encoded.length; offset += IDENTITY_CHUNK_BYTES) {
|
|
@@ -94,7 +91,7 @@ async function indexMessageInShortChunks(db, sessionId, message, coordination, i
|
|
|
94
91
|
return { inserted: false, measurements };
|
|
95
92
|
const end = Math.min(encoded.length, offset + IDENTITY_CHUNK_BYTES);
|
|
96
93
|
hash.update(encoded.subarray(offset, end));
|
|
97
|
-
await transaction(() => progress.run(
|
|
94
|
+
await transaction(() => progress.run(messageIndexSkipKey(sessionId, message.id), JSON.stringify({
|
|
98
95
|
reason: "oversized",
|
|
99
96
|
bytes: measurements.sourceBytes,
|
|
100
97
|
processedBytes: end,
|
|
@@ -116,7 +113,7 @@ async function indexMessageInShortChunks(db, sessionId, message, coordination, i
|
|
|
116
113
|
content: oversized ? "" : content,
|
|
117
114
|
...oversized ? { ftsSkippedBytes: measurements.sourceBytes } : {}
|
|
118
115
|
};
|
|
119
|
-
const inserted = await withIndexChunk2(coordination, () => withSqliteBackgroundWriter2(() =>
|
|
116
|
+
const inserted = await withIndexChunk2(coordination, () => withSqliteBackgroundWriter2(() => indexSingleMessage(db, sessionId, message, isCurrent, source)));
|
|
120
117
|
return { inserted, measurements };
|
|
121
118
|
} finally {
|
|
122
119
|
db.exec = execute;
|
package/dist/migration-worker.js
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-7kkphb6c.js";
|
|
14
|
+
import"./index-xrnsygfq.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
16
|
import"./index-kq5w68dp.js";
|
|
17
17
|
import"./index-c7phnbvk.js";
|
|
@@ -19,13 +19,13 @@ import"./index-fb3zxn06.js";
|
|
|
19
19
|
import {
|
|
20
20
|
setSqlitePragmaConfig,
|
|
21
21
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-4cpc59jv.js";
|
|
23
23
|
import"./index-v0p37hm2.js";
|
|
24
24
|
import"./index-cpjk5jd2.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-rverk2vz.js";
|
|
26
|
+
import"./index-v15ne3a3.js";
|
|
27
27
|
import"./index-b88dwwrh.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-s1n8dd2n.js";
|
|
29
29
|
import {
|
|
30
30
|
closeQuietly
|
|
31
31
|
} from "./index-8ajstryz.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/d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AO,CAAC,OAAO,UAAU,CAAC,GAAG,MAAM,IAAI,CAM9F;AAiFD,iBAAe,4BAA4B,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCvE;AAqCD,iBAAe,qBAAqB,CAChC,GAAG,EAAE,mBAAmB,EACxB,MAAM,EAAE,SAAS,GAAG,UAAU,EAC9B,EAAE,EAAE,QAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CA2Bf;AA0LD,mFAAmF;AACnF,wBAAgB,2BAA2B,IAAI;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,CAExF;AAED,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAiB/C;AAyDD,wBAAsB,eAAe,CAAC,IAAI,EAAE;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,EAAE,EAAE,QAAQ,CAAC;IACb,iBAAiB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CACpF,GAAG,OAAO,CAAC,IAAI,CAAC,CAkFhB"}
|
package/dist/{project-embedding-registry-t9fx6jwh.js → project-embedding-registry-94nncs5g.js}
RENAMED
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
sweepAllRegisteredProjects2,
|
|
36
36
|
_setTestProviderFactoryForProject2,
|
|
37
37
|
_resetProjectEmbeddingRegistryForTests2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-a2fz9hpa.js";
|
|
39
39
|
import"./index-4dhv7mqz.js";
|
|
40
40
|
import"./index-qt1qqasc.js";
|
|
41
41
|
import"./index-51rdvtkz.js";
|
|
42
42
|
import"./index-nxrsns5x.js";
|
|
43
43
|
import"./index-kfyb3k6n.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-mm93m7y6.js";
|
|
45
45
|
import"./index-wfybj1dw.js";
|
|
46
46
|
import"./index-kq5w68dp.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-v15ne3a3.js";
|
|
48
|
+
import"./index-rverk2vz.js";
|
|
49
49
|
import"./index-v0p37hm2.js";
|
|
50
50
|
import"./index-t5pck3ss.js";
|
|
51
51
|
import"./index-b88dwwrh.js";
|
|
@@ -30,7 +30,7 @@ async function main() {
|
|
|
30
30
|
{ log }
|
|
31
31
|
] = await Promise.all([
|
|
32
32
|
import("./sqlite-zdgm52sv.js"),
|
|
33
|
-
import("./read-session-raw-
|
|
33
|
+
import("./read-session-raw-b2sd67v4.js"),
|
|
34
34
|
import("./harness-e4avh192.js"),
|
|
35
35
|
import("./logger-94kew5wm.js")
|
|
36
36
|
]);
|
|
@@ -42,17 +42,17 @@ async function main() {
|
|
|
42
42
|
if (input.openCancellation && Atomics.load(new Int32Array(input.openCancellation), 0) !== 0) {
|
|
43
43
|
throw new Error("warm-up owner closed before database open");
|
|
44
44
|
}
|
|
45
|
-
db = input.indexMessage || input.
|
|
45
|
+
db = input.indexMessage || input.ftsRowidBackfill ? new Database(input.path) : new Database(input.path, { readonly: true });
|
|
46
46
|
openConnections.add(db);
|
|
47
47
|
db.exec("PRAGMA busy_timeout = 250");
|
|
48
48
|
if (input.ftsRowidBackfill) {
|
|
49
|
-
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-
|
|
49
|
+
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-va36knh4.js");
|
|
50
50
|
db.exec("PRAGMA busy_timeout = 0");
|
|
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-
|
|
55
|
-
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-q1vw7zg4.js");
|
|
55
|
+
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-b2sd67v4.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
58
58
|
try {
|
|
@@ -77,34 +77,11 @@ async function main() {
|
|
|
77
77
|
kind: "exact-ordinal-ids",
|
|
78
78
|
ids: readRawSessionMessageIdsAtOrdinalsFromDb(db, input.sessionId, input.exactOrdinalIds)
|
|
79
79
|
};
|
|
80
|
-
} else if (input.orphanSweep) {
|
|
81
|
-
const [
|
|
82
|
-
{ setHarness },
|
|
83
|
-
{ sweepOrphanedOpenCodeMessageIndexesCooperatively },
|
|
84
|
-
{ configureContextDatabasePragmas }
|
|
85
|
-
] = await Promise.all([
|
|
86
|
-
import("./harness-e4avh192.js"),
|
|
87
|
-
import("./message-index-ywx53y30.js"),
|
|
88
|
-
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
89
|
-
]);
|
|
90
|
-
setHarness(input.harness ?? "opencode");
|
|
91
|
-
configureContextDatabasePragmas(db);
|
|
92
|
-
const sourcePath = input.orphanSweep.sourcePath;
|
|
93
|
-
reply = {
|
|
94
|
-
kind: "orphan-sweep",
|
|
95
|
-
result: await sweepOrphanedOpenCodeMessageIndexesCooperatively(db, () => {
|
|
96
|
-
if (!sourcePath)
|
|
97
|
-
return null;
|
|
98
|
-
const source = new Database(sourcePath, { readonly: true });
|
|
99
|
-
openConnections.add(source);
|
|
100
|
-
return source;
|
|
101
|
-
}, input.orphanSweep.options)
|
|
102
|
-
};
|
|
103
80
|
} else if (input.indexMessage) {
|
|
104
81
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
105
82
|
setHarness(input.harness ?? "opencode");
|
|
106
83
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
107
|
-
import("./message-index-bounded-
|
|
84
|
+
import("./message-index-bounded-7ayzb2ah.js"),
|
|
108
85
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
109
86
|
]);
|
|
110
87
|
configureContextDatabasePragmas(db);
|
|
@@ -118,7 +95,7 @@ async function main() {
|
|
|
118
95
|
measurements: result.measurements
|
|
119
96
|
};
|
|
120
97
|
} else if (input.tagRatio !== undefined) {
|
|
121
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
98
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-6hvkk01c.js");
|
|
122
99
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
123
100
|
if (delta)
|
|
124
101
|
reply = { kind: "tag-delta", delta };
|
|
@@ -36,15 +36,15 @@ import {
|
|
|
36
36
|
readSessionChunk2,
|
|
37
37
|
getRawSessionMessageIdsThrough2,
|
|
38
38
|
readRawSessionSeedTail2
|
|
39
|
-
} from "./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
} from "./index-yzjhx10y.js";
|
|
40
|
+
import"./index-np3rgfw4.js";
|
|
41
41
|
import"./index-1zx87sdm.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-v0dhhxsq.js";
|
|
43
43
|
import"./index-nxrsns5x.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-s1n8dd2n.js";
|
|
45
|
+
import"./index-xrnsygfq.js";
|
|
46
46
|
import"./index-58e3y90n.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-rverk2vz.js";
|
|
48
48
|
import"./index-v0p37hm2.js";
|
|
49
49
|
import"./index-t5pck3ss.js";
|
|
50
50
|
import {
|