@cortexkit/opencode-magic-context 0.49.83 → 0.49.84
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 +1 -1
- package/dist/{context-xmyke353.js → context-3sajdysh.js} +302 -96
- package/dist/{derive-budgets-2z6xxm7e.js → derive-budgets-0kcek5ex.js} +1 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts +3 -3
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/{index-zzvd4a9z.js → index-05bm2ndp.js} +1 -1
- package/dist/{index-2xhzmwf6.js → index-0wehkw71.js} +5 -5
- package/dist/{index-zvane1rq.js → index-5wjv4c41.js} +1 -1
- package/dist/{index-twmeey4h.js → index-70cv85b0.js} +2 -2
- package/dist/{index-2q0t43fy.js → index-7j2zv9nm.js} +1 -1
- package/dist/{index-wxxcfpxh.js → index-cfy5k1pa.js} +6 -6
- package/dist/{index-b2787fk6.js → index-d028gmgp.js} +25 -9
- package/dist/{index-dg5jvh9r.js → index-k0jnsjcp.js} +3 -3
- package/dist/{index-tky3j43e.js → index-kthfyf45.js} +55 -11
- package/dist/{index-hz1xdb15.js → index-qybp04ff.js} +3 -3
- package/dist/{index-e21n48yd.js → index-rdh63md0.js} +23 -0
- package/dist/{index-x8qgqnym.js → index-skwwbcnv.js} +2 -2
- package/dist/{index-2ygw6q5s.js → index-szwrpyac.js} +2 -2
- package/dist/{index-eptthgkw.js → index-tqnvn9pa.js} +5 -5
- package/dist/{index-93rezfvc.js → index-tvbkemec.js} +37 -6
- package/dist/{index-rnyaa7cj.js → index-xd0ww0ns.js} +1 -1
- package/dist/{index-eyk7msgw.js → index-xjfan0za.js} +17 -17
- package/dist/{index-y208s7zx.js → index-xrnhxkz7.js} +6 -1
- package/dist/index.js +20 -20
- package/dist/{message-index-bounded-cfkeyf72.js → message-index-bounded-6fr624zf.js} +3 -3
- package/dist/migration-worker.js +1 -1
- package/dist/raw-ordinal-warmup-worker.js +4 -4
- package/dist/{read-session-chunk-s3qac56g.js → read-session-chunk-6wedfths.js} +2 -2
- package/dist/{recomp-orchestrator-fjdp3t1d.js → recomp-orchestrator-m2s3jpvj.js} +9 -9
- package/dist/{render-c9fjwrad.js → render-p2j7rn9a.js} +7 -7
- package/dist/{search-archive-s2jas2jb.js → search-archive-hz9xh7nh.js} +4 -4
- package/dist/{search-1jejx5cx.js → search-ksx0f1qd.js} +5 -5
- package/dist/shared/models-dev-cache.d.ts +6 -1
- package/dist/shared/models-dev-cache.d.ts.map +1 -1
- package/dist/shared/test-git-env.d.ts +3 -0
- package/dist/shared/test-git-env.d.ts.map +1 -0
- package/dist/{storage-tags-6e83pvff.js → storage-tags-y2mrb8e6.js} +1 -1
- package/dist/{store-reader-tr64nxyy.js → store-reader-tsv1w4vt.js} +1 -1
- package/dist/{store-ggrq9e14.js → store-x0swqb5c.js} +2 -2
- package/dist/{transform-postprocess-phase-p2egg02g.js → transform-postprocess-phase-1wb2rrr1.js} +10 -10
- package/dist/v2/auto-search-worker.js +1 -1
- package/dist/v2/chunk-embedding-write-worker.js +3 -3
- package/dist/v2/{context-zn18k0yk.js → context-at9nje0j.js} +431 -233
- package/dist/v2/{derive-budgets-2eam671q.js → derive-budgets-xbwcap8k.js} +2 -2
- package/dist/v2/fold/restore.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/revert-message-state.d.ts +12 -0
- package/dist/v2/hooks/revert-message-state.d.ts.map +1 -0
- package/dist/v2/hooks/storage-notice.d.ts +12 -6
- package/dist/v2/hooks/storage-notice.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-0xy4dn04.js → message-index-bounded-jqy7283g.js} +4 -4
- package/dist/v2/migration-worker.js +3 -3
- package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
- package/dist/v2/{read-session-chunk-6mt2t6dy.js → read-session-chunk-n3nhfvd7.js} +3 -3
- package/dist/v2/{recomp-orchestrator-jn39mxh0.js → recomp-orchestrator-nhef90gc.js} +13 -13
- package/dist/v2/{render-q2aj9bgy.js → render-c9r2g2jv.js} +10 -10
- package/dist/v2/{search-archive-fj59gjv1.js → search-archive-80ckv9kq.js} +5 -5
- package/dist/v2/{search-9xn6ds9x.js → search-t06js5dc.js} +7 -7
- package/dist/v2/{server-2ktxmtbd.js → server-210rc0z9.js} +1 -1
- package/dist/v2/{server-2gcfmd47.js → server-2k8tkbhz.js} +2 -2
- package/dist/v2/{server-c8mqs0v5.js → server-3cndh146.js} +10 -10
- package/dist/v2/{server-vt6nj2hn.js → server-3hhakg5a.js} +35 -19
- package/dist/v2/{server-53n8hv5q.js → server-863bwkga.js} +4 -4
- package/dist/v2/{server-5yfq912a.js → server-9nk5h6w6.js} +23 -0
- package/dist/v2/{server-xepx8t43.js → server-a2f1bhyj.js} +1 -1
- package/dist/v2/{server-r00xyx66.js → server-ap81bk3c.js} +28 -28
- package/dist/v2/{server-1efjj215.js → server-cce6m31c.js} +37 -6
- package/dist/v2/{server-2w1rdttn.js → server-dfesqfv1.js} +2 -2
- package/dist/v2/{server-569he5mh.js → server-hhw6rzsn.js} +1 -1
- package/dist/v2/{server-1cn3kryt.js → server-mr9rqn0y.js} +5 -5
- package/dist/v2/{server-g1a0nhtk.js → server-ry6rpspz.js} +4 -4
- package/dist/v2/{server-xdh4r20h.js → server-s15knz0w.js} +642 -627
- package/dist/v2/{server-0dmzr7f9.js → server-sxfbjdye.js} +2 -2
- package/dist/v2/{server-nqdzv8b7.js → server-sy98vksf.js} +55 -11
- package/dist/v2/{server-rp52f40v.js → server-w1jfaxas.js} +1 -1
- package/dist/v2/{server-bj779zmp.js → server-y4favn4d.js} +1 -1
- package/dist/v2/server.js +4 -4
- package/dist/v2/{storage-tags-z8j8wq34.js → storage-tags-xq81zgt2.js} +2 -2
- package/dist/v2/{store-qdgzd38f.js → store-h3s95ywe.js} +2 -2
- package/dist/v2/{store-reader-83tka051.js → store-reader-paamf0ac.js} +1 -1
- package/dist/v2/store-reader.d.ts +11 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{v2-archive-reader-9z8z97db.js → v2-archive-reader-1zzteaa5.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-vd5zfp3v.js → wrapup-orchestrator-9y98qcqz.js} +13 -13
- package/dist/{v2-archive-reader-r0xpxsb1.js → v2-archive-reader-3yjxaj5z.js} +1 -1
- package/dist/{wrapup-orchestrator-k29zqfp9.js → wrapup-orchestrator-sa3a075a.js} +10 -10
- package/package.json +1 -1
- package/src/shared/models-dev-cache.ts +90 -21
- package/src/shared/reusable-worker.test.ts +31 -29
- package/src/shared/sqlite.test.ts +19 -6
- package/src/shared/test-db.test.ts +5 -3
- package/src/shared/test-git-env.test.ts +38 -0
- package/src/shared/test-git-env.ts +10 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./server-bt546axy.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./server-
|
|
18
|
+
} from "./server-s15knz0w.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanSearchText,
|
|
21
21
|
hintKeywordRelevance,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isMessageIndexReconciledThrough,
|
|
26
26
|
clearIndexedMessages,
|
|
27
27
|
indexMessagesAfterOrdinal
|
|
28
|
-
} from "./server-
|
|
28
|
+
} from "./server-ap81bk3c.js";
|
|
29
29
|
import {
|
|
30
30
|
Priority,
|
|
31
31
|
AdmissionClass,
|
|
@@ -92,11 +92,11 @@ import {
|
|
|
92
92
|
expandWorkspaceIdentitySetWithAliases,
|
|
93
93
|
resolveStoredPathWorkspaceIdentity,
|
|
94
94
|
sourceNameForMemory
|
|
95
|
-
} from "./server-
|
|
95
|
+
} from "./server-210rc0z9.js";
|
|
96
96
|
import {
|
|
97
97
|
getNotes,
|
|
98
98
|
getActivePrimers
|
|
99
|
-
} from "./server-
|
|
99
|
+
} from "./server-hhw6rzsn.js";
|
|
100
100
|
import {
|
|
101
101
|
isKnownAutocommit
|
|
102
102
|
} from "./server-8ajstryz.js";
|
|
@@ -736,6 +736,29 @@ class V2StoreReader2 {
|
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
+
revertSuffix(sessionID, cutoff, limit) {
|
|
740
|
+
const rows = this.prepare(`WITH target AS (SELECT seq FROM session_message WHERE session_id = ? AND id = ?),
|
|
741
|
+
preceding AS (SELECT MAX(seq) AS seq FROM session_message
|
|
742
|
+
WHERE session_id = ? AND seq < (SELECT seq FROM target))
|
|
743
|
+
SELECT id, seq FROM session_message
|
|
744
|
+
WHERE session_id = ? AND seq >= (SELECT seq FROM preceding)
|
|
745
|
+
ORDER BY seq ASC LIMIT ?`).all(sessionID, cutoff, sessionID, sessionID, limit + 2);
|
|
746
|
+
const [predecessor, boundary] = rows;
|
|
747
|
+
if (!predecessor || boundary?.id !== cutoff || rows.length > limit + 1)
|
|
748
|
+
return;
|
|
749
|
+
return { predecessor, messageIDs: rows.slice(1).map(({ id }) => id) };
|
|
750
|
+
}
|
|
751
|
+
removedRevertMessages(sessionID, suffix) {
|
|
752
|
+
const { predecessor, messageIDs } = suffix;
|
|
753
|
+
const result = this.prepare(`SELECT CASE WHEN EXISTS (SELECT 1 FROM session_v2 WHERE id = ?)
|
|
754
|
+
AND EXISTS (SELECT 1 FROM session_message
|
|
755
|
+
WHERE session_id = ? AND id = ? AND seq = ?)
|
|
756
|
+
THEN (SELECT json_group_array(value) FROM json_each(?) AS staged
|
|
757
|
+
WHERE NOT EXISTS (SELECT 1 FROM session_message AS retained
|
|
758
|
+
WHERE retained.session_id = ? AND retained.id = staged.value))
|
|
759
|
+
END AS missing`).get(sessionID, sessionID, predecessor.id, predecessor.seq, JSON.stringify(messageIDs), sessionID);
|
|
760
|
+
return result.missing === null ? undefined : new Set(JSON.parse(result.missing));
|
|
761
|
+
}
|
|
739
762
|
sessionExists(sessionID) {
|
|
740
763
|
return this.prepare("SELECT 1 FROM session_v2 WHERE id = ?").get(sessionID) != null;
|
|
741
764
|
}
|
|
@@ -886,4 +886,4 @@ function getSessionToolDefinitionTokens(sessionId) {
|
|
|
886
886
|
return route ? summarize(currentTools(route), route.live).total : undefined;
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
-
export { BoundedSessionMap, stableStringify, stableStringifyHash, setDatabase, loadToolDefinitionMeasurements, recordToolDefinitionSet, getCurrentToolSetHash, getToolDefinitionMeasurementSignature, getMeasuredToolDefinitionTokens, getSessionToolDefinitionTokens,
|
|
889
|
+
export { BoundedSessionMap, getTableColumnNames, ensureColumn, healAllNullColumns, stableStringify, stableStringifyHash, setDatabase, loadToolDefinitionMeasurements, recordToolDefinitionSet, getCurrentToolSetHash, getToolDefinitionMeasurementSignature, getMeasuredToolDefinitionTokens, getSessionToolDefinitionTokens, getTemporalDecisions, observeTemporalDecisions, freezeTemporalDecisions, installV95PerfSchema, tagOrderConstraintIndex, tagTombstoneOwnerRange, tagTombstoneOwnerKey, tagRevisionKey, tagIdentityRevisionKey, installTagIdentityRevisionTrigger, deleteTagIdentityRevisions };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getHarness2
|
|
3
|
+
} from "./server-pavzsdc6.js";
|
|
1
4
|
import {
|
|
2
5
|
removeSystemReminders,
|
|
3
6
|
removeNestedBlocks,
|
|
4
7
|
hasMeaningfulUserText2,
|
|
5
8
|
extractTexts2
|
|
6
9
|
} from "./server-y8xjr8rx.js";
|
|
7
|
-
import {
|
|
8
|
-
getHarness2
|
|
9
|
-
} from "./server-pavzsdc6.js";
|
|
10
10
|
import {
|
|
11
11
|
cleanUserText2
|
|
12
|
-
} from "./server-
|
|
12
|
+
} from "./server-2k8tkbhz.js";
|
|
13
13
|
import {
|
|
14
14
|
recordMessageFtsRowid2,
|
|
15
15
|
recordIndexedMessageTime2,
|
|
@@ -20,6 +20,29 @@ import {
|
|
|
20
20
|
logSlowWriteTransaction
|
|
21
21
|
} from "./server-5sbsnpkn.js";
|
|
22
22
|
|
|
23
|
+
// src/features/magic-context/compression-depth-storage.ts
|
|
24
|
+
var incrementDepthStatements = new WeakMap;
|
|
25
|
+
var totalDepthStatements = new WeakMap;
|
|
26
|
+
var maxDepthStatements = new WeakMap;
|
|
27
|
+
var clearDepthStatements = new WeakMap;
|
|
28
|
+
function getClearDepthStatement(db) {
|
|
29
|
+
let stmt = clearDepthStatements.get(db);
|
|
30
|
+
if (!stmt) {
|
|
31
|
+
stmt = db.prepare("DELETE FROM compression_depth WHERE session_id = ?");
|
|
32
|
+
clearDepthStatements.set(db, stmt);
|
|
33
|
+
}
|
|
34
|
+
return stmt;
|
|
35
|
+
}
|
|
36
|
+
function clearCompressionDepth(db, sessionId) {
|
|
37
|
+
getClearDepthStatement(db).run(sessionId);
|
|
38
|
+
}
|
|
39
|
+
function clearCompressionDepthRange(db, sessionId, startOrdinal, endOrdinal) {
|
|
40
|
+
if (endOrdinal < startOrdinal) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
db.prepare("DELETE FROM compression_depth WHERE session_id = ? AND message_ordinal BETWEEN ? AND ?").run(sessionId, startOrdinal, endOrdinal);
|
|
44
|
+
}
|
|
45
|
+
|
|
23
46
|
// src/features/magic-context/message-index.ts
|
|
24
47
|
import { createHash } from "node:crypto";
|
|
25
48
|
|
|
@@ -101,29 +124,6 @@ function matchedSearchSnippet(content, query, cap = 220) {
|
|
|
101
124
|
return `${bestStart > 0 ? "…" : ""}${passage}${bestStart + cap < text.length ? "…" : ""}`;
|
|
102
125
|
}
|
|
103
126
|
|
|
104
|
-
// src/features/magic-context/compression-depth-storage.ts
|
|
105
|
-
var incrementDepthStatements = new WeakMap;
|
|
106
|
-
var totalDepthStatements = new WeakMap;
|
|
107
|
-
var maxDepthStatements = new WeakMap;
|
|
108
|
-
var clearDepthStatements = new WeakMap;
|
|
109
|
-
function getClearDepthStatement(db) {
|
|
110
|
-
let stmt = clearDepthStatements.get(db);
|
|
111
|
-
if (!stmt) {
|
|
112
|
-
stmt = db.prepare("DELETE FROM compression_depth WHERE session_id = ?");
|
|
113
|
-
clearDepthStatements.set(db, stmt);
|
|
114
|
-
}
|
|
115
|
-
return stmt;
|
|
116
|
-
}
|
|
117
|
-
function clearCompressionDepth(db, sessionId) {
|
|
118
|
-
getClearDepthStatement(db).run(sessionId);
|
|
119
|
-
}
|
|
120
|
-
function clearCompressionDepthRange(db, sessionId, startOrdinal, endOrdinal) {
|
|
121
|
-
if (endOrdinal < startOrdinal) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
db.prepare("DELETE FROM compression_depth WHERE session_id = ? AND message_ordinal BETWEEN ? AND ?").run(sessionId, startOrdinal, endOrdinal);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
127
|
// src/features/magic-context/message-index.ts
|
|
128
128
|
var lastIndexedStatements = new WeakMap;
|
|
129
129
|
var insertMessageStatements = new WeakMap;
|
|
@@ -568,4 +568,4 @@ function indexItemsAfterOrdinal(db, sessionId, items, finalWatermark, toSource)
|
|
|
568
568
|
return inserted;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
export {
|
|
571
|
+
export { clearCompressionDepth, clearCompressionDepthRange, cleanSearchText, hintKeywordRelevance, matchedSearchSnippet, MESSAGE_INDEX_MAX_FTS_BYTES, messageIndexSkipKey, toMessageIndexSource, getLastIndexedOrdinal, getIndexedMessageCorpusSize, markMessageIndexDirty, getMessageIndexReconciliationStartOrdinal, isMessageIndexReconciledThrough, clearIndexedMessagesInTransaction, clearIndexedMessages, getIndexableContent, indexSingleMessage, indexMessagesAfterOrdinal, indexSourcesAfterOrdinal };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./server-39bcszk4.js";
|
|
4
4
|
import {
|
|
5
5
|
RAW_MESSAGE_TYPES2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-9nk5h6w6.js";
|
|
7
7
|
import {
|
|
8
8
|
markHostUnservedRow
|
|
9
9
|
} from "./server-s9x93tfs.js";
|
|
@@ -167,6 +167,12 @@ function formatStorageRecoveryNotice(hiddenWorkRecovered) {
|
|
|
167
167
|
function isStorageNoticeText(text) {
|
|
168
168
|
return typeof text === "string" && text.startsWith(STORAGE_NOTICE_PREFIX);
|
|
169
169
|
}
|
|
170
|
+
function isStoredStorageNotice(row) {
|
|
171
|
+
return row.type === "synthetic" && isStorageNoticeText(row.data.text);
|
|
172
|
+
}
|
|
173
|
+
function isCopiedStorageNotice(row) {
|
|
174
|
+
return row !== null && isStoredStorageNotice(row) && /^msg_[A-Za-z0-9]+_\d+$/.test(row.id) && row.id.endsWith(`_${row.seq}`);
|
|
175
|
+
}
|
|
170
176
|
function hasStorageNoticeShape(message) {
|
|
171
177
|
if (message.role !== "user" || typeof message.id !== "string")
|
|
172
178
|
return false;
|
|
@@ -175,12 +181,12 @@ function hasStorageNoticeShape(message) {
|
|
|
175
181
|
const part = message.content[0];
|
|
176
182
|
return part?.type === "text" && isStorageNoticeText(part.text);
|
|
177
183
|
}
|
|
178
|
-
async function dropStorageNotices(messages, isAdmittedSynthetic) {
|
|
184
|
+
async function dropStorageNotices(messages, isAdmittedSynthetic, isCopy = () => false) {
|
|
179
185
|
const drop = new Set;
|
|
180
186
|
for (const message of messages) {
|
|
181
|
-
if (!hasStorageNoticeShape(message))
|
|
187
|
+
if (!message.id || !hasStorageNoticeShape(message))
|
|
182
188
|
continue;
|
|
183
|
-
if (await isAdmittedSynthetic(message.id))
|
|
189
|
+
if (await isAdmittedSynthetic(message.id) || isCopy(message.id))
|
|
184
190
|
drop.add(message);
|
|
185
191
|
}
|
|
186
192
|
if (drop.size === 0)
|
|
@@ -189,6 +195,31 @@ async function dropStorageNotices(messages, isAdmittedSynthetic) {
|
|
|
189
195
|
messages.splice(0, messages.length, ...kept);
|
|
190
196
|
return drop.size;
|
|
191
197
|
}
|
|
198
|
+
function storageNoticeHasNewInput(messages, idleSeq, sequenceOf) {
|
|
199
|
+
let idlessTool = false;
|
|
200
|
+
for (let i = messages.length - 1;i >= 0; i--) {
|
|
201
|
+
const message = messages[i];
|
|
202
|
+
if (message.role === "assistant") {
|
|
203
|
+
if (!idlessTool)
|
|
204
|
+
return false;
|
|
205
|
+
const owner = message.id ? sequenceOf(message.id) : undefined;
|
|
206
|
+
return owner === undefined || owner > idleSeq;
|
|
207
|
+
}
|
|
208
|
+
if (message.role !== "user" && message.role !== "tool")
|
|
209
|
+
continue;
|
|
210
|
+
if (!message.id) {
|
|
211
|
+
if (message.role === "user")
|
|
212
|
+
return true;
|
|
213
|
+
idlessTool = true;
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
const seq = sequenceOf(message.id);
|
|
217
|
+
if (seq === undefined || seq > idleSeq)
|
|
218
|
+
return true;
|
|
219
|
+
return idlessTool;
|
|
220
|
+
}
|
|
221
|
+
return idlessTool;
|
|
222
|
+
}
|
|
192
223
|
|
|
193
224
|
// src/v2/fold/restore.ts
|
|
194
225
|
var HOST_RESTORE_MEDIA = { asset: hostMediaAsset, unavailable: () => {} };
|
|
@@ -278,7 +309,7 @@ function restoreRow(row, model, media = HOST_RESTORE_MEDIA) {
|
|
|
278
309
|
if (row.type === "system")
|
|
279
310
|
return [{ role: "system", content: [{ type: "text", text: data.text ?? "" }] }];
|
|
280
311
|
if (row.type === "synthetic") {
|
|
281
|
-
if (
|
|
312
|
+
if (isStoredStorageNotice(row))
|
|
282
313
|
return [];
|
|
283
314
|
return [make("user", [{ type: "text", text: data.text ?? "", synthetic: true }])];
|
|
284
315
|
}
|
|
@@ -657,4 +688,4 @@ function createV2RawMessageProvider2(reader, sessionID) {
|
|
|
657
688
|
};
|
|
658
689
|
}
|
|
659
690
|
|
|
660
|
-
export { rememberHostMedia, hostMediaAsset, hostMediaFromEncoded, isToolError, toolErrorText, toolStateContent, STORAGE_NOTICE_PREFIX, formatStorageRefusalNotice, formatStorageRecoveryNotice, hasStorageNoticeShape, dropStorageNotices, HOST_RESTORE_MEDIA, restoreRow, rawMessagePage2, readV2MessageRange2, iterateV2MessageRange2, servedBoundaryRow2, resolveV2BoundaryUserMessage2, readAllV2RawMessagesForConversion2, readV2RawMessagePagesForConversion2, createV2RawMessageReader2, createV2RawMessageProvider2 };
|
|
691
|
+
export { rememberHostMedia, hostMediaAsset, hostMediaFromEncoded, isToolError, toolErrorText, toolStateContent, STORAGE_NOTICE_PREFIX, formatStorageRefusalNotice, formatStorageRecoveryNotice, isCopiedStorageNotice, hasStorageNoticeShape, dropStorageNotices, storageNoticeHasNewInput, HOST_RESTORE_MEDIA, restoreRow, rawMessagePage2, readV2MessageRange2, iterateV2MessageRange2, servedBoundaryRow2, resolveV2BoundaryUserMessage2, readAllV2RawMessagesForConversion2, readV2RawMessagePagesForConversion2, createV2RawMessageReader2, createV2RawMessageProvider2 };
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
rawMessageWorkerSource2,
|
|
20
20
|
rawMessageOffThreadRangeReader2,
|
|
21
21
|
readRawSessionMessageIdOrdinalsForRange2
|
|
22
|
-
} from "./server-
|
|
22
|
+
} from "./server-2k8tkbhz.js";
|
|
23
23
|
import {
|
|
24
24
|
readV2ArchiveOffThread2
|
|
25
|
-
} from "./server-
|
|
25
|
+
} from "./server-mr9rqn0y.js";
|
|
26
26
|
|
|
27
27
|
// src/tools/ctx-expand/search-archive.ts
|
|
28
28
|
var archiveReadsOnThisThread = 0;
|
|
@@ -137,11 +137,11 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
137
137
|
{ createV2RecoveryAttachments }
|
|
138
138
|
] = await Promise.all([
|
|
139
139
|
import("./sqlite-zdgm52sv.js"),
|
|
140
|
-
import("./store-reader-
|
|
141
|
-
import("./store-
|
|
142
|
-
import("./read-session-chunk-
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
140
|
+
import("./store-reader-paamf0ac.js"),
|
|
141
|
+
import("./store-h3s95ywe.js"),
|
|
142
|
+
import("./read-session-chunk-n3nhfvd7.js"),
|
|
143
|
+
import("./render-c9r2g2jv.js"),
|
|
144
|
+
import("./search-archive-80ckv9kq.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -57,14 +57,14 @@ import {
|
|
|
57
57
|
hasPendingMigrations,
|
|
58
58
|
getMainThreadMigrationBodyCount,
|
|
59
59
|
runMigrations
|
|
60
|
-
} from "./server-
|
|
60
|
+
} from "./server-210rc0z9.js";
|
|
61
61
|
import {
|
|
62
|
+
ensureColumn,
|
|
62
63
|
setDatabase,
|
|
63
64
|
loadToolDefinitionMeasurements,
|
|
64
|
-
ensureColumn,
|
|
65
65
|
installV95PerfSchema,
|
|
66
66
|
installTagIdentityRevisionTrigger
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-a2f1bhyj.js";
|
|
68
68
|
import {
|
|
69
69
|
resolveOpenCodeDbPath,
|
|
70
70
|
hasV1MessageTables
|
|
@@ -1021,7 +1021,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1021
1021
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1022
1022
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1023
1023
|
return;
|
|
1024
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1024
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-n3nhfvd7.js"));
|
|
1025
1025
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-ynb3vg6r.js"));
|
|
1026
1026
|
if (signal.aborted)
|
|
1027
1027
|
return;
|