@cortexkit/opencode-magic-context 0.49.41 → 0.49.42
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-3szg46w6.js → context-zf1yj1g0.js} +167 -47
- package/dist/hooks/magic-context/host-served-rows.d.ts +17 -0
- package/dist/hooks/magic-context/host-served-rows.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay.d.ts +2 -0
- package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +2 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +3 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-j8gv6ajw.js → index-1zv08avf.js} +4 -4
- package/dist/{index-4y35msh5.js → index-29gd1zcx.js} +1 -1
- package/dist/{index-aed5qpyv.js → index-5m2azs6v.js} +3 -3
- package/dist/{index-216tae7b.js → index-adt3jghq.js} +16 -15
- package/dist/{index-bgxpadsx.js → index-ayk4we2k.js} +11 -5
- package/dist/{index-j5qma52p.js → index-fas76dft.js} +2 -2
- package/dist/{index-9z4d2ha0.js → index-gsqz39wk.js} +1 -1
- package/dist/{index-9fgmkfaf.js → index-kfsqk1q7.js} +1 -1
- package/dist/{index-z7etaphs.js → index-n8bsqg7b.js} +4 -4
- package/dist/{index-hb76vdmm.js → index-p2e7j9p1.js} +1 -1
- package/dist/{index-72czy45z.js → index-rdx17j04.js} +36 -8
- package/dist/{v2/server-z9zygwse.js → index-s9x93tfs.js} +32 -1
- package/dist/{index-j105mf16.js → index-xjw9rres.js} +1 -1
- package/dist/{index-q9gamh8e.js → index-xmqj3cf5.js} +5 -5
- package/dist/{index-ryz4pdvf.js → index-z6v8086q.js} +2 -2
- package/dist/{index-tn9drm1a.js → index-zqsp3z0d.js} +1 -1
- package/dist/index.js +17 -17
- package/dist/{message-index-bounded-jqm3ezva.js → message-index-bounded-5mj8p6nq.js} +2 -2
- package/dist/migration-worker.js +1 -1
- package/dist/raw-ordinal-warmup-worker.js +3 -3
- package/dist/{read-session-chunk-26yrrhyz.js → read-session-chunk-k70bhfjm.js} +1 -1
- package/dist/{recomp-orchestrator-7v52khmf.js → recomp-orchestrator-2q4rmerf.js} +6 -6
- package/dist/{render-gqdq6t7f.js → render-36fvvwz6.js} +5 -5
- package/dist/{search-vqkmmy9c.js → search-6v2na3af.js} +4 -4
- package/dist/{search-archive-kfwpk73t.js → search-archive-jwb2ctnq.js} +3 -3
- package/dist/{store-s3eykdjt.js → store-pd1e9hnr.js} +1 -1
- package/dist/{transform-postprocess-phase-6fpgz12m.js → transform-postprocess-phase-0ms3ga4h.js} +7 -7
- package/dist/v2/auto-search-worker.js +1 -1
- package/dist/v2/chunk-embedding-write-worker.js +1 -1
- package/dist/v2/{context-eq5bhf40.js → context-2xr6vbt2.js} +175 -50
- package/dist/v2/fold/code-mode-catalog.d.ts +10 -0
- package/dist/v2/fold/code-mode-catalog.d.ts.map +1 -1
- package/dist/v2/fold/instruction-supersession.d.ts +9 -0
- package/dist/v2/fold/instruction-supersession.d.ts.map +1 -0
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts +2 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-dgd8a2x1.js → message-index-bounded-5341qsqd.js} +2 -2
- package/dist/v2/migration-worker.js +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +3 -3
- package/dist/v2/{read-session-chunk-tqnh1ret.js → read-session-chunk-dgmq3ntm.js} +1 -1
- package/dist/v2/{recomp-orchestrator-kep59sph.js → recomp-orchestrator-2vmyhtst.js} +5 -5
- package/dist/v2/{render-yyv8nv4p.js → render-kz0f40ws.js} +5 -5
- package/dist/v2/{search-cb1kdgqw.js → search-a9hwy1sw.js} +3 -3
- package/dist/v2/{search-archive-gagdnrb3.js → search-archive-wajxd01m.js} +3 -3
- package/dist/v2/{server-g3gqq4ac.js → server-09td1wgc.js} +1 -1
- package/dist/v2/{server-dt9b00ja.js → server-3m7p4g9w.js} +1 -1
- package/dist/v2/{server-hewk7z3z.js → server-5ydn39x3.js} +5 -5
- package/dist/v2/{server-t8y64xj7.js → server-7qc9tk6z.js} +36 -8
- package/dist/v2/{server-r4mmc670.js → server-dqs8e4yt.js} +1 -1
- package/dist/v2/{server-jd7vzwn4.js → server-kqrpt2ht.js} +1 -1
- package/dist/v2/{server-qjyp27vf.js → server-p78wdf43.js} +1 -1
- package/dist/v2/{server-2d01821b.js → server-qehn6btp.js} +2 -2
- package/dist/{index-z9zygwse.js → v2/server-s9x93tfs.js} +32 -1
- package/dist/v2/{server-2tp6y1qs.js → server-sfcp13bn.js} +4 -4
- package/dist/v2/{server-6emy0v9a.js → server-ymn9w46x.js} +1 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{store-z3qe67cg.js → store-pebs9m52.js} +1 -1
- package/dist/v2/{v2-archive-reader-2rv5dz7k.js → v2-archive-reader-ag6sk771.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-1mgx1nym.js → wrapup-orchestrator-2a077zew.js} +5 -5
- package/dist/{v2-archive-reader-4hz9pnmy.js → v2-archive-reader-chk95syc.js} +1 -1
- package/dist/{wrapup-orchestrator-yy0n9mxy.js → wrapup-orchestrator-rhs675kj.js} +7 -7
- package/package.json +1 -1
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
renderMessageByOrdinal2,
|
|
3
3
|
renderVerboseRangeForTool2,
|
|
4
4
|
renderItemByTag2
|
|
5
|
-
} from "./server-
|
|
6
|
-
import"./server-
|
|
5
|
+
} from "./server-p78wdf43.js";
|
|
6
|
+
import"./server-7qc9tk6z.js";
|
|
7
7
|
import"./server-ypf1ap0v.js";
|
|
8
|
-
import"./server-
|
|
8
|
+
import"./server-3m7p4g9w.js";
|
|
9
9
|
import"./server-2amn2s73.js";
|
|
10
10
|
import"./server-ef1mskas.js";
|
|
11
|
-
import"./server-
|
|
11
|
+
import"./server-kqrpt2ht.js";
|
|
12
12
|
import"./server-xfjjbrkt.js";
|
|
13
13
|
import"./server-1zx87sdm.js";
|
|
14
14
|
import"./server-mfn1yf9d.js";
|
|
15
15
|
import"./server-7zacmty5.js";
|
|
16
16
|
import"./server-cp1a03vc.js";
|
|
17
17
|
import"./server-zzgtgqmd.js";
|
|
18
|
-
import"./server-
|
|
18
|
+
import"./server-09td1wgc.js";
|
|
19
19
|
import"./server-fb3zxn06.js";
|
|
20
20
|
import"./server-3schkz95.js";
|
|
21
21
|
import"./server-fr0wbhdn.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./server-
|
|
8
|
+
} from "./server-dqs8e4yt.js";
|
|
9
9
|
import"./server-kaqs6h31.js";
|
|
10
10
|
import"./server-nq3cb7be.js";
|
|
11
11
|
import"./server-gkse1wyz.js";
|
|
@@ -13,10 +13,10 @@ import"./server-jjvbk92s.js";
|
|
|
13
13
|
import"./server-7acq7815.js";
|
|
14
14
|
import"./server-4dhv7mqz.js";
|
|
15
15
|
import"./server-ypf1ap0v.js";
|
|
16
|
-
import"./server-
|
|
16
|
+
import"./server-3m7p4g9w.js";
|
|
17
17
|
import"./server-2amn2s73.js";
|
|
18
18
|
import"./server-qt1qqasc.js";
|
|
19
|
-
import"./server-
|
|
19
|
+
import"./server-kqrpt2ht.js";
|
|
20
20
|
import"./server-xfjjbrkt.js";
|
|
21
21
|
import"./server-1zx87sdm.js";
|
|
22
22
|
import"./server-mfn1yf9d.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2,
|
|
3
3
|
renderSearchArchiveOffThread2
|
|
4
|
-
} from "./server-
|
|
5
|
-
import"./server-
|
|
4
|
+
} from "./server-qehn6btp.js";
|
|
5
|
+
import"./server-sfcp13bn.js";
|
|
6
6
|
import"./server-kaqs6h31.js";
|
|
7
|
-
import"./server-
|
|
7
|
+
import"./server-kqrpt2ht.js";
|
|
8
8
|
import"./server-xfjjbrkt.js";
|
|
9
9
|
import"./server-1zx87sdm.js";
|
|
10
10
|
import"./server-mfn1yf9d.js";
|
|
@@ -1022,7 +1022,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1022
1022
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1023
1023
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1024
1024
|
return;
|
|
1025
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1025
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-dgmq3ntm.js"));
|
|
1026
1026
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-0c4h7sg6.js"));
|
|
1027
1027
|
if (signal.aborted)
|
|
1028
1028
|
return;
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
getRawSessionTagKeysThrough2,
|
|
153
153
|
getLegacyProtectedTailStartOrdinal2,
|
|
154
154
|
readSessionChunk2
|
|
155
|
-
} from "./server-
|
|
155
|
+
} from "./server-kqrpt2ht.js";
|
|
156
156
|
import {
|
|
157
157
|
BoundedSessionMap
|
|
158
158
|
} from "./server-xy7w7hrd.js";
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
toMessageIndexSource,
|
|
163
163
|
clearIndexedMessagesInTransaction,
|
|
164
164
|
indexSourcesAfterOrdinal
|
|
165
|
-
} from "./server-
|
|
165
|
+
} from "./server-3m7p4g9w.js";
|
|
166
166
|
import {
|
|
167
167
|
COMPARTMENT_LEASE_RENEWAL_MS,
|
|
168
168
|
getCompartmentLeaseBlocker,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
getProjectState,
|
|
207
207
|
recordSubagentInvocation,
|
|
208
208
|
getLatestHistorianInvocationId
|
|
209
|
-
} from "./server-
|
|
209
|
+
} from "./server-7qc9tk6z.js";
|
|
210
210
|
import {
|
|
211
211
|
invalidateAutoEmbedSession
|
|
212
212
|
} from "./server-2amn2s73.js";
|
|
@@ -261,7 +261,7 @@ import {
|
|
|
261
261
|
LATEST_SUPPORTED_VERSION,
|
|
262
262
|
getPersistedSchemaVersion,
|
|
263
263
|
openDatabase
|
|
264
|
-
} from "./server-
|
|
264
|
+
} from "./server-09td1wgc.js";
|
|
265
265
|
import {
|
|
266
266
|
parseCompartmentOutput,
|
|
267
267
|
resolveWorkspaceShareCategories,
|
|
@@ -295,7 +295,7 @@ import {
|
|
|
295
295
|
snapTerminalCompartmentToServedRow,
|
|
296
296
|
isHostRenderedSystemMessage,
|
|
297
297
|
markCoveredInstructionRow
|
|
298
|
-
} from "./server-
|
|
298
|
+
} from "./server-s9x93tfs.js";
|
|
299
299
|
import {
|
|
300
300
|
piModelRefToCanonical
|
|
301
301
|
} from "./server-avwt563y.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
serializeProcessedImageMarkers,
|
|
54
54
|
getPendingPiCompactionMarkerState,
|
|
55
55
|
logPiCompactionMarkerClear
|
|
56
|
-
} from "./server-
|
|
56
|
+
} from "./server-kqrpt2ht.js";
|
|
57
57
|
import {
|
|
58
58
|
getTableColumnNames,
|
|
59
59
|
tagTombstoneOwnerRange,
|
|
@@ -83,9 +83,12 @@ import {
|
|
|
83
83
|
V2StoreReader2
|
|
84
84
|
} from "./server-ef1mskas.js";
|
|
85
85
|
import {
|
|
86
|
+
markHostInstructionRow,
|
|
87
|
+
hostInstructionRowID,
|
|
88
|
+
isRetiredInstructionRow,
|
|
86
89
|
markCoveredInstructionRow,
|
|
87
90
|
isCoveredInstructionRow
|
|
88
|
-
} from "./server-
|
|
91
|
+
} from "./server-s9x93tfs.js";
|
|
89
92
|
import {
|
|
90
93
|
piModelRefToCanonical
|
|
91
94
|
} from "./server-avwt563y.js";
|
|
@@ -2218,6 +2221,15 @@ function projectEntryWithDigests(messages, digests) {
|
|
|
2218
2221
|
});
|
|
2219
2222
|
if (isCoveredInstructionRow(message.info))
|
|
2220
2223
|
markCoveredInstructionRow(projection);
|
|
2224
|
+
const instructionID = hostInstructionRowID(message.info);
|
|
2225
|
+
if (instructionID) {
|
|
2226
|
+
markHostInstructionRow(projection, { id: instructionID });
|
|
2227
|
+
const retiredDigest = lkgContentDigest({ ...message, parts: [] });
|
|
2228
|
+
Object.defineProperty(projection, "retiredContentDigest", {
|
|
2229
|
+
value: () => retiredDigest,
|
|
2230
|
+
enumerable: false
|
|
2231
|
+
});
|
|
2232
|
+
}
|
|
2221
2233
|
return projection;
|
|
2222
2234
|
});
|
|
2223
2235
|
}
|
|
@@ -2327,7 +2339,7 @@ function outputMessageIsPostAnchor(message, inputIndexById, anchorIndex, systemI
|
|
|
2327
2339
|
}
|
|
2328
2340
|
function buildLkgPrefix(input, output, completeOutput = false) {
|
|
2329
2341
|
const projected = asEntryProjection(input);
|
|
2330
|
-
|
|
2342
|
+
let anchorIndex = completeOutput && projected.length > 0 ? projected.length - 1 : findLkgAnchor(projected);
|
|
2331
2343
|
if (anchorIndex === null)
|
|
2332
2344
|
return null;
|
|
2333
2345
|
const ids = projected.map((message, index) => lkgInputIdentity(message.id, message.role, index));
|
|
@@ -2336,10 +2348,6 @@ function buildLkgPrefix(input, output, completeOutput = false) {
|
|
|
2336
2348
|
const validIds = ids;
|
|
2337
2349
|
if (new Set(validIds).size !== validIds.length)
|
|
2338
2350
|
return null;
|
|
2339
|
-
const anchorMessageId = validIds[anchorIndex];
|
|
2340
|
-
const inputContentDigests = projected.slice(0, anchorIndex + 1).map((message) => message.contentDigest?.() ?? null);
|
|
2341
|
-
if (inputContentDigests.some((digest) => digest === null))
|
|
2342
|
-
return null;
|
|
2343
2351
|
const inputIndexById = new Map(validIds.map((id, index) => [id, index]));
|
|
2344
2352
|
const systemIndices = new Map;
|
|
2345
2353
|
if (!completeOutput) {
|
|
@@ -2348,22 +2356,42 @@ function buildLkgPrefix(input, output, completeOutput = false) {
|
|
|
2348
2356
|
const restoredCount = outputSystems.length - inputSystems.length;
|
|
2349
2357
|
if (restoredCount < 0 || outputSystems.slice(0, restoredCount).some((message) => !isCoveredInstructionRow(message.info)))
|
|
2350
2358
|
return null;
|
|
2359
|
+
let retirementAnchor = anchorIndex;
|
|
2360
|
+
let retirementExtensionValid = true;
|
|
2351
2361
|
for (let index = 0;index < inputSystems.length; index += 1) {
|
|
2352
2362
|
const source = inputSystems[index];
|
|
2353
2363
|
const message = outputSystems[index + restoredCount];
|
|
2354
2364
|
const digest = source.message.contentDigest?.();
|
|
2355
|
-
|
|
2365
|
+
const servedDigest = lkgContentDigest(message);
|
|
2366
|
+
const sourceID = hostInstructionRowID(source.message);
|
|
2367
|
+
const expectedDigest = isRetiredInstructionRow(message.info) ? sourceID && hostInstructionRowID(message.info) === sourceID ? source.message.retiredContentDigest?.() : undefined : digest;
|
|
2368
|
+
if (!digest)
|
|
2356
2369
|
return null;
|
|
2370
|
+
if (!expectedDigest || servedDigest !== expectedDigest) {
|
|
2371
|
+
if (!isRetiredInstructionRow(message.info) || source.index <= anchorIndex)
|
|
2372
|
+
return null;
|
|
2373
|
+
retirementExtensionValid = false;
|
|
2374
|
+
} else if (isRetiredInstructionRow(message.info)) {
|
|
2375
|
+
retirementAnchor = Math.max(retirementAnchor, source.index);
|
|
2376
|
+
}
|
|
2357
2377
|
if (isCoveredInstructionRow(message.info) && source.index > anchorIndex)
|
|
2358
2378
|
return null;
|
|
2359
2379
|
systemIndices.set(message, source.index);
|
|
2360
2380
|
}
|
|
2381
|
+
if (retirementExtensionValid)
|
|
2382
|
+
anchorIndex = retirementAnchor;
|
|
2361
2383
|
}
|
|
2384
|
+
const anchorMessageId = validIds[anchorIndex];
|
|
2385
|
+
const inputContentDigests = projected.slice(0, anchorIndex + 1).map((message) => message.contentDigest?.() ?? null);
|
|
2386
|
+
if (inputContentDigests.some((digest) => digest === null))
|
|
2387
|
+
return null;
|
|
2362
2388
|
const prefix = [];
|
|
2363
2389
|
for (const message of output) {
|
|
2364
2390
|
const postAnchor = completeOutput ? false : outputMessageIsPostAnchor(message, inputIndexById, anchorIndex, systemIndices);
|
|
2365
2391
|
if (postAnchor === null)
|
|
2366
2392
|
return null;
|
|
2393
|
+
if (isRetiredInstructionRow(message.info) && messageRole(message) === "system" && messageParts(message).length === 0)
|
|
2394
|
+
continue;
|
|
2367
2395
|
if (!postAnchor)
|
|
2368
2396
|
prefix.push(providerVisibleMessage(message));
|
|
2369
2397
|
}
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
rawMessageWorkerSource2,
|
|
20
20
|
rawMessageOffThreadRangeReader2,
|
|
21
21
|
readRawSessionMessageIdOrdinalsForRange2
|
|
22
|
-
} from "./server-
|
|
22
|
+
} from "./server-kqrpt2ht.js";
|
|
23
23
|
import {
|
|
24
24
|
readV2ArchiveOffThread2
|
|
25
|
-
} from "./server-
|
|
25
|
+
} from "./server-sfcp13bn.js";
|
|
26
26
|
|
|
27
27
|
// src/tools/ctx-expand/search-archive.ts
|
|
28
28
|
var archiveReadsOnThisThread = 0;
|
|
@@ -57,6 +57,32 @@ function isHostRenderedSystemMessage(message) {
|
|
|
57
57
|
return (typeof id !== "string" || id.length === 0) && message.info.role === "system";
|
|
58
58
|
}
|
|
59
59
|
var COVERED_INSTRUCTION_ROW = "coveredInstructionRow";
|
|
60
|
+
var HOST_INSTRUCTION_ROW = "hostInstructionRow";
|
|
61
|
+
var RETIRED_INSTRUCTION_ROW = "retiredInstructionRow";
|
|
62
|
+
function markHostInstructionRow(target, row) {
|
|
63
|
+
Object.defineProperty(target, HOST_INSTRUCTION_ROW, {
|
|
64
|
+
value: row,
|
|
65
|
+
enumerable: false,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function hostInstructionRow(target) {
|
|
70
|
+
return target[HOST_INSTRUCTION_ROW];
|
|
71
|
+
}
|
|
72
|
+
function hostInstructionRowID(target) {
|
|
73
|
+
const row = hostInstructionRow(target);
|
|
74
|
+
return typeof row?.id === "string" && row.id.length > 0 ? row.id : undefined;
|
|
75
|
+
}
|
|
76
|
+
function markRetiredInstructionRow(target) {
|
|
77
|
+
Object.defineProperty(target, RETIRED_INSTRUCTION_ROW, {
|
|
78
|
+
value: true,
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function isRetiredInstructionRow(target) {
|
|
84
|
+
return target[RETIRED_INSTRUCTION_ROW] === true;
|
|
85
|
+
}
|
|
60
86
|
function markCoveredInstructionRow(target) {
|
|
61
87
|
Object.defineProperty(target, COVERED_INSTRUCTION_ROW, {
|
|
62
88
|
value: true,
|
|
@@ -82,8 +108,13 @@ function cloneKeepingCoveredInstructionMarks(messages) {
|
|
|
82
108
|
const copied = copy[index];
|
|
83
109
|
if (copied && isCoveredInstructionRow(message.info))
|
|
84
110
|
markCoveredInstructionRow(copied.info);
|
|
111
|
+
const row = hostInstructionRow(message.info);
|
|
112
|
+
if (copied && row !== undefined)
|
|
113
|
+
markHostInstructionRow(copied.info, row);
|
|
114
|
+
if (copied && isRetiredInstructionRow(message.info))
|
|
115
|
+
markRetiredInstructionRow(copied.info);
|
|
85
116
|
});
|
|
86
117
|
return copy;
|
|
87
118
|
}
|
|
88
119
|
|
|
89
|
-
export { markHostUnservedRow, isHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks };
|
|
120
|
+
export { markHostUnservedRow, isHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markHostInstructionRow, hostInstructionRow, hostInstructionRowID, markRetiredInstructionRow, isRetiredInstructionRow, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks };
|
|
@@ -138,10 +138,10 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
138
138
|
] = await Promise.all([
|
|
139
139
|
import("./sqlite-zdgm52sv.js"),
|
|
140
140
|
import("./store-reader-cgx47zkp.js"),
|
|
141
|
-
import("./store-
|
|
142
|
-
import("./read-session-chunk-
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
141
|
+
import("./store-pebs9m52.js"),
|
|
142
|
+
import("./read-session-chunk-dgmq3ntm.js"),
|
|
143
|
+
import("./render-kz0f40ws.js"),
|
|
144
|
+
import("./search-archive-wajxd01m.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
package/dist/v2/server.js
CHANGED
|
@@ -7875,7 +7875,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7875
7875
|
// package.json
|
|
7876
7876
|
var package_default = {
|
|
7877
7877
|
name: "@cortexkit/opencode-magic-context",
|
|
7878
|
-
version: "0.49.
|
|
7878
|
+
version: "0.49.42",
|
|
7879
7879
|
type: "module",
|
|
7880
7880
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7881
7881
|
main: "dist/index.js",
|
|
@@ -8196,7 +8196,7 @@ async function setup(context) {
|
|
|
8196
8196
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8197
8197
|
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.`);
|
|
8198
8198
|
}
|
|
8199
|
-
const { registerContext } = await import("./context-
|
|
8199
|
+
const { registerContext } = await import("./context-2xr6vbt2.js");
|
|
8200
8200
|
setHarness2("opencode2");
|
|
8201
8201
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8202
8202
|
const duties = await registerContext(context);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
readV2RawMessagePagesForConversion2,
|
|
6
6
|
createV2RawMessageReader2,
|
|
7
7
|
createV2RawMessageProvider2
|
|
8
|
-
} from "./server-
|
|
8
|
+
} from "./server-ymn9w46x.js";
|
|
9
9
|
import"./server-ef1mskas.js";
|
|
10
10
|
import"./server-468mya5v.js";
|
|
11
11
|
import"./server-2ra6pwf3.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
releaseCompartmentLeaseBestEffort,
|
|
12
12
|
getCompartments,
|
|
13
13
|
getLastCompartmentEndMessage
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-7qc9tk6z.js";
|
|
15
15
|
import"./server-2amn2s73.js";
|
|
16
16
|
import"./server-969cdpmg.js";
|
|
17
17
|
import"./server-zzgtgqmd.js";
|
|
@@ -24,7 +24,7 @@ import"./server-1d042x6w.js";
|
|
|
24
24
|
import"./server-tnzbk64q.js";
|
|
25
25
|
import"./server-nmyganc8.js";
|
|
26
26
|
import"./server-cp1a03vc.js";
|
|
27
|
-
import"./server-
|
|
27
|
+
import"./server-3m7p4g9w.js";
|
|
28
28
|
import {
|
|
29
29
|
getWrapupInProgressState,
|
|
30
30
|
acquireWrapupInProgress,
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
getHistorianFailureState,
|
|
34
34
|
clearEmergencyRecovery,
|
|
35
35
|
prepareRawSessionOrdinals2
|
|
36
|
-
} from "./server-
|
|
36
|
+
} from "./server-kqrpt2ht.js";
|
|
37
37
|
import"./server-tpt7bwq8.js";
|
|
38
|
-
import"./server-
|
|
38
|
+
import"./server-09td1wgc.js";
|
|
39
39
|
import"./server-1zx87sdm.js";
|
|
40
40
|
import"./server-xfjjbrkt.js";
|
|
41
41
|
import"./server-7zacmty5.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
registerActiveCompartmentRun,
|
|
64
64
|
setRecompStarting2,
|
|
65
65
|
setRecompTerminal2
|
|
66
|
-
} from "./server-
|
|
66
|
+
} from "./server-5ydn39x3.js";
|
|
67
67
|
import"./server-qt1qqasc.js";
|
|
68
68
|
import"./server-7acq7815.js";
|
|
69
69
|
import"./server-dcws5831.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runManagedWrapup2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
5
|
-
import"./index-
|
|
3
|
+
} from "./index-1zv08avf.js";
|
|
4
|
+
import"./index-5m2azs6v.js";
|
|
5
|
+
import"./index-xmqj3cf5.js";
|
|
6
6
|
import"./index-3w1pbn85.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
8
|
import"./index-xnm0wq1r.js";
|
|
@@ -10,15 +10,15 @@ import"./index-ty4vhe4n.js";
|
|
|
10
10
|
import"./index-jjvbk92s.js";
|
|
11
11
|
import"./index-21fgrfrf.js";
|
|
12
12
|
import"./index-4dhv7mqz.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-rdx17j04.js";
|
|
14
14
|
import"./index-2qbtqg1w.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-gsqz39wk.js";
|
|
16
16
|
import"./index-2amn2s73.js";
|
|
17
17
|
import"./index-66a50f3e.js";
|
|
18
18
|
import"./index-dnqqqc5f.js";
|
|
19
19
|
import"./index-ae1ar4v1.js";
|
|
20
20
|
import"./index-qt1qqasc.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-zqsp3z0d.js";
|
|
22
22
|
import"./index-8jjjmhab.js";
|
|
23
23
|
import"./index-1zx87sdm.js";
|
|
24
24
|
import"./index-vd2ywmfe.js";
|
|
@@ -29,7 +29,7 @@ import"./index-c5dzns43.js";
|
|
|
29
29
|
import"./index-jz5bk7xd.js";
|
|
30
30
|
import"./index-dcjkw41m.js";
|
|
31
31
|
import"./index-g4t7850m.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-kfsqk1q7.js";
|
|
33
33
|
import"./index-fb3zxn06.js";
|
|
34
34
|
import"./index-nj360hcs.js";
|
|
35
35
|
import"./index-fr0wbhdn.js";
|
package/package.json
CHANGED