@cortexkit/opencode-magic-context 0.49.96 → 0.49.97
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/{context-gtjdrp8f.js → context-br04s0b6.js} +7 -7
- package/dist/features/magic-context/storage-native-replay.d.ts +7 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +11 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/{index-gnrwgvn7.js → index-8v1brm5n.js} +3 -1
- package/dist/{index-8sgv96kq.js → index-mmf6e740.js} +3 -3
- package/dist/{index-cq8znmyw.js → index-pkxkeezb.js} +12 -4
- package/dist/{index-f154w8m4.js → index-qdjxrbnr.js} +8 -8
- package/dist/{index-fvfnq8n6.js → index-tbdy1hk0.js} +1 -1
- package/dist/{index-t2e10rag.js → index-w9hxgntq.js} +2 -2
- package/dist/{index-nqdwpdje.js → index-x49x59ar.js} +1 -1
- package/dist/{index-2afrmgy3.js → index-xcej5kpt.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-d3rbpa59.js → recomp-orchestrator-dapm3e4v.js} +3 -3
- package/dist/{render-6cf1dgc4.js → render-6vmqzcem.js} +1 -1
- package/dist/{search-archive-s9m5szf0.js → search-archive-4bbn3ztv.js} +2 -2
- package/dist/shared/transcript.d.ts +14 -0
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-376xn40x.js → transform-postprocess-phase-1xrjg6be.js} +3 -3
- package/dist/v2/{context-vm09agrs.js → context-43r0mzkp.js} +16 -8
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-pfjpzdrb.js → recomp-orchestrator-vzygyqwn.js} +2 -2
- package/dist/v2/{render-7t5d7hkv.js → render-9b5dxp9e.js} +1 -1
- package/dist/v2/{search-archive-5dpxv0ck.js → search-archive-8zqsf9e6.js} +2 -2
- package/dist/v2/{server-w35ep6wn.js → server-1fnsfm3a.js} +1 -1
- package/dist/v2/{server-vntc961c.js → server-qjjky07w.js} +3 -1
- package/dist/v2/{server-ppy2dj7g.js → server-r3h4fy4k.js} +2 -2
- package/dist/v2/{server-pcq2d1wh.js → server-xekyjy4w.js} +1 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{v2-archive-reader-jqrwz7b8.js → v2-archive-reader-hvdyz30c.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-kcq3cv7y.js → wrapup-orchestrator-0d4ceff3.js} +2 -2
- package/dist/{v2-archive-reader-64h2gtam.js → v2-archive-reader-qs24chs6.js} +1 -1
- package/dist/{wrapup-orchestrator-knyac7jp.js → wrapup-orchestrator-v1mhjw55.js} +4 -4
- package/package.json +1 -1
- package/src/shared/tag-transcript.ts +61 -10
- package/src/shared/transcript.ts +16 -0
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
clearNoteNudgeTriggerOnly,
|
|
52
52
|
nonNarrativeStoredGapRanges,
|
|
53
53
|
getActiveCompartmentRun
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-x49x59ar.js";
|
|
55
55
|
import"./index-sd3egckz.js";
|
|
56
56
|
import {
|
|
57
57
|
getHarness2
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
applyJsonSchemaParameterDescriptions,
|
|
148
148
|
MagicContextRpcServer,
|
|
149
149
|
subagentTemperature
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-qdjxrbnr.js";
|
|
151
151
|
import {
|
|
152
152
|
invalidateAutoEmbedSession,
|
|
153
153
|
clearEmbedSessionState
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
getSlot,
|
|
213
213
|
dropSlot,
|
|
214
214
|
copySessionStateForClone
|
|
215
|
-
} from "./index-
|
|
215
|
+
} from "./index-8v1brm5n.js";
|
|
216
216
|
import"./index-89bkkgcn.js";
|
|
217
217
|
import {
|
|
218
218
|
stripPersistedAssistantText,
|
|
@@ -341,7 +341,7 @@ import {
|
|
|
341
341
|
servedHeadChanged,
|
|
342
342
|
noteHostCheckpointCommit,
|
|
343
343
|
isSyntheticHeadMessage2
|
|
344
|
-
} from "./index-
|
|
344
|
+
} from "./index-pkxkeezb.js";
|
|
345
345
|
import"./index-azkfw78y.js";
|
|
346
346
|
import"./index-qt1qqasc.js";
|
|
347
347
|
import {
|
|
@@ -364,7 +364,7 @@ import {
|
|
|
364
364
|
import"./index-jzrvdqb8.js";
|
|
365
365
|
import"./index-kj4bprep.js";
|
|
366
366
|
import"./index-0sqhg9nf.js";
|
|
367
|
-
import"./index-
|
|
367
|
+
import"./index-w9hxgntq.js";
|
|
368
368
|
import"./index-dj64gzg5.js";
|
|
369
369
|
import {
|
|
370
370
|
detectConflicts
|
|
@@ -398,8 +398,8 @@ import {
|
|
|
398
398
|
import"./index-fmsr7v69.js";
|
|
399
399
|
import"./index-h7kta6cn.js";
|
|
400
400
|
import"./index-mgy7g740.js";
|
|
401
|
-
import"./index-
|
|
402
|
-
import"./index-
|
|
401
|
+
import"./index-xcej5kpt.js";
|
|
402
|
+
import"./index-tbdy1hk0.js";
|
|
403
403
|
import {
|
|
404
404
|
markHostInstructionRow,
|
|
405
405
|
hostInstructionRow,
|
|
@@ -5,6 +5,13 @@ export interface NativeReplayState {
|
|
|
5
5
|
toolInputs: Map<string, string>;
|
|
6
6
|
reasoningIds: Set<string>;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* The stored native replay state reads but does not parse. Callers tell it
|
|
10
|
+
* apart from a failure to read the store (busy, locked, I/O), which is not a
|
|
11
|
+
* statement about what was recorded.
|
|
12
|
+
*/
|
|
13
|
+
export declare class PersistedReplayStateError extends Error {
|
|
14
|
+
}
|
|
8
15
|
/**
|
|
9
16
|
* Read and validate both native replay lanes from one document snapshot. A
|
|
10
17
|
* missing v1/native namespace is empty; a present namespace is all-or-nothing.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-native-replay.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-native-replay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAYpD,8FAA8F;AAC9F,wBAAgB,4BAA4B,CAAC,CAAC,EAC1C,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,IAAI,EACvB,IAAI,EAAE,MAAM,CAAC,GACd,CAAC,CAcH;AAED,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"storage-native-replay.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-native-replay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAYpD,8FAA8F;AAC9F,wBAAgB,4BAA4B,CAAC,CAAC,EAC1C,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,IAAI,EACvB,IAAI,EAAE,MAAM,CAAC,GACd,CAAC,CAcH;AAED,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,KAAK;CAAG;AA+FvD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAEvF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,QAAQ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O,CAsRT;AAED,wFAAwF;AACxF,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,IAAI,EAAE,SAAS,QAAQ,EAAE,GAC1B,IAAI,CAMN;AAED,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,eAAe,EACnB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,aAAa,CAAC,EAAE,SAAS,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC,EAAE,GACxF,OAAO,CA8CT"}
|
|
@@ -117,8 +117,18 @@ export type TagTarget = {
|
|
|
117
117
|
/** Non-mutating: would drop()/truncate() actually reclaim bytes? Tool
|
|
118
118
|
* targets only; absent on message/file targets. */
|
|
119
119
|
canDrop?: () => boolean;
|
|
120
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Admission for a new drop; false defers it without changing bytes. It
|
|
122
|
+
* records nothing: the drop may keep the call in place.
|
|
123
|
+
*/
|
|
121
124
|
prepareDrop?: () => boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Record the host's removal authorization for a pair that will be
|
|
127
|
+
* removed; false defers the drop without changing bytes. Call it only for
|
|
128
|
+
* such a pair: on Pi the record is replayed into the call's native history
|
|
129
|
+
* item on every later pass.
|
|
130
|
+
*/
|
|
131
|
+
prepareRemoval?: () => boolean;
|
|
122
132
|
/** Request only the structural authorization used by a persisted full drop, without rendering. */
|
|
123
133
|
prepareReplayDrop?: () => void;
|
|
124
134
|
/** A full arc removal would strand or merge native reasoning, so keep a paired skeleton. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-messages.d.ts","sourceRoot":"","sources":["../../../src/hooks/magic-context/tag-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAuB5E,OAAO,EA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AAC;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,yBAAyB,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACzE;AAID;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAYlF;AAED,wBAAgB,WAAW,CACvB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE,kBAAuB,GACjC,iBAAiB,CAksBnB"}
|
|
@@ -4501,8 +4501,10 @@ function decodePiContentDecision(value) {
|
|
|
4501
4501
|
var NATIVE_TOOL_INPUTS = "native tool inputs";
|
|
4502
4502
|
var NATIVE_REASONING_IDS = "native reasoning ids";
|
|
4503
4503
|
var nativeWriteBarriers = new WeakMap;
|
|
4504
|
+
class PersistedReplayStateError extends Error {
|
|
4505
|
+
}
|
|
4504
4506
|
function invalidPersistedReplayState(lane, sessionId) {
|
|
4505
|
-
return new
|
|
4507
|
+
return new PersistedReplayStateError(`invalid persisted ${lane} state for session ${sessionId}`);
|
|
4506
4508
|
}
|
|
4507
4509
|
function assertNonEmptyId(value, lane, sessionId) {
|
|
4508
4510
|
if (typeof value !== "string" || value.length === 0) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getCompartments,
|
|
10
10
|
getLastCompartmentEndMessage,
|
|
11
11
|
requestPendingMaterialization
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-8v1brm5n.js";
|
|
13
13
|
import {
|
|
14
14
|
inRootAsyncContext2
|
|
15
15
|
} from "./index-gzy5w8ya.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
getActiveCompartmentRun,
|
|
36
36
|
markActiveCompartmentRunPublished,
|
|
37
37
|
registerActiveCompartmentRun
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-x49x59ar.js";
|
|
39
39
|
import {
|
|
40
40
|
sendStatusNotification2
|
|
41
41
|
} from "./index-kj4bprep.js";
|
|
42
42
|
import {
|
|
43
43
|
setRecompStarting2,
|
|
44
44
|
setRecompTerminal2
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-w9hxgntq.js";
|
|
46
46
|
|
|
47
47
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
48
48
|
import * as crypto from "node:crypto";
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
saveSourceContent,
|
|
219
219
|
replaceSourceContent,
|
|
220
220
|
getSourceContents
|
|
221
|
-
} from "./index-
|
|
221
|
+
} from "./index-8v1brm5n.js";
|
|
222
222
|
import {
|
|
223
223
|
cleanSearchText,
|
|
224
224
|
matchedSearchSnippet
|
|
@@ -300,7 +300,7 @@ import {
|
|
|
300
300
|
peekNoteNudgeText,
|
|
301
301
|
markNoteNudgeDelivered,
|
|
302
302
|
getActiveCompartmentRun
|
|
303
|
-
} from "./index-
|
|
303
|
+
} from "./index-x49x59ar.js";
|
|
304
304
|
import {
|
|
305
305
|
canonicalModelIdentity,
|
|
306
306
|
piModelRefToCanonical,
|
|
@@ -4707,6 +4707,8 @@ function planNewToolDrop(target, options, prepare, plannedRemovals) {
|
|
|
4707
4707
|
})
|
|
4708
4708
|
};
|
|
4709
4709
|
}
|
|
4710
|
+
if (prepare && target.prepareRemoval?.() === false)
|
|
4711
|
+
return;
|
|
4710
4712
|
return {
|
|
4711
4713
|
mode: "full",
|
|
4712
4714
|
apply: () => {
|
|
@@ -4773,7 +4775,6 @@ function prepareLegacyToolSkeletonConversions(db, sessionId, targets, options =
|
|
|
4773
4775
|
});
|
|
4774
4776
|
};
|
|
4775
4777
|
const rows = readRows(db);
|
|
4776
|
-
options.prepareRemovals?.(rows);
|
|
4777
4778
|
const converted = new Map;
|
|
4778
4779
|
for (const row of rows) {
|
|
4779
4780
|
const target = targets.get(row.tagNumber);
|
|
@@ -4792,6 +4793,7 @@ function prepareLegacyToolSkeletonConversions(db, sessionId, targets, options =
|
|
|
4792
4793
|
}
|
|
4793
4794
|
converted.set(row.tagNumber, mode);
|
|
4794
4795
|
}
|
|
4796
|
+
options.prepareRemovals?.(rows.filter((row) => converted.get(row.tagNumber) !== "skeleton_real"));
|
|
4795
4797
|
return {
|
|
4796
4798
|
converted,
|
|
4797
4799
|
isCurrent: (connection) => {
|
|
@@ -4830,7 +4832,6 @@ function prepareAgedToolSkeletonConversions(db, sessionId, targets, options = {}
|
|
|
4830
4832
|
return { window, rows };
|
|
4831
4833
|
};
|
|
4832
4834
|
const snapshot = readRows(db);
|
|
4833
|
-
options.prepareRemovals?.(snapshot.rows);
|
|
4834
4835
|
const converted = new Map;
|
|
4835
4836
|
const plannedRemovals = new Set;
|
|
4836
4837
|
for (const row of snapshot.rows) {
|
|
@@ -4849,6 +4850,13 @@ function prepareAgedToolSkeletonConversions(db, sessionId, targets, options = {}
|
|
|
4849
4850
|
converted.set(row.tagNumber, "full");
|
|
4850
4851
|
target.notePlannedRemoval?.(plannedRemovals);
|
|
4851
4852
|
}
|
|
4853
|
+
const retired = snapshot.rows.filter((row) => converted.has(row.tagNumber));
|
|
4854
|
+
options.prepareRemovals?.(retired);
|
|
4855
|
+
for (const row of retired) {
|
|
4856
|
+
const target = targets.get(row.tagNumber);
|
|
4857
|
+
if (target?.prepareRemoval?.() === false)
|
|
4858
|
+
converted.delete(row.tagNumber);
|
|
4859
|
+
}
|
|
4852
4860
|
return {
|
|
4853
4861
|
converted,
|
|
4854
4862
|
isCurrent: (connection) => JSON.stringify(readRows(connection)) === JSON.stringify(snapshot),
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
snapRangeToCompartments,
|
|
216
216
|
getActiveCompartmentRun,
|
|
217
217
|
startCompartmentAgent
|
|
218
|
-
} from "./index-
|
|
218
|
+
} from "./index-x49x59ar.js";
|
|
219
219
|
import {
|
|
220
220
|
formatWindowDerivationLine,
|
|
221
221
|
getSdkWindowGeometry,
|
|
@@ -590,7 +590,7 @@ import {
|
|
|
590
590
|
GLOBAL_USER_PROFILE_PROJECT_PATH,
|
|
591
591
|
getProjectState,
|
|
592
592
|
bumpProjectUserProfileVersion
|
|
593
|
-
} from "./index-
|
|
593
|
+
} from "./index-8v1brm5n.js";
|
|
594
594
|
import {
|
|
595
595
|
getLastIndexedOrdinal
|
|
596
596
|
} from "./index-89bkkgcn.js";
|
|
@@ -832,7 +832,7 @@ import {
|
|
|
832
832
|
abortSessionFailClosed2,
|
|
833
833
|
evaluateEmergencyFailClosed2,
|
|
834
834
|
runPostTransformPhase2
|
|
835
|
-
} from "./index-
|
|
835
|
+
} from "./index-pkxkeezb.js";
|
|
836
836
|
import {
|
|
837
837
|
flushIgnoredMessages2,
|
|
838
838
|
clearIgnoredMessages2,
|
|
@@ -842,7 +842,7 @@ import {
|
|
|
842
842
|
import {
|
|
843
843
|
setRecompStarting2,
|
|
844
844
|
setRecompTerminal2
|
|
845
|
-
} from "./index-
|
|
845
|
+
} from "./index-w9hxgntq.js";
|
|
846
846
|
import {
|
|
847
847
|
ANNOUNCEMENT_VERSION2,
|
|
848
848
|
ANNOUNCEMENT_FEATURES2,
|
|
@@ -860,11 +860,11 @@ import {
|
|
|
860
860
|
} from "./index-h7kta6cn.js";
|
|
861
861
|
import {
|
|
862
862
|
readV2ArchiveOffThread2
|
|
863
|
-
} from "./index-
|
|
863
|
+
} from "./index-xcej5kpt.js";
|
|
864
864
|
import {
|
|
865
865
|
unresolvedLiveTailRefusal2,
|
|
866
866
|
renderSearchArchiveOffThread2
|
|
867
|
-
} from "./index-
|
|
867
|
+
} from "./index-tbdy1hk0.js";
|
|
868
868
|
import {
|
|
869
869
|
takeCoveredInstructionRows,
|
|
870
870
|
cloneKeepingCoveredInstructionMarks
|
|
@@ -16461,7 +16461,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16461
16461
|
const db = readDatabase();
|
|
16462
16462
|
if (!db)
|
|
16463
16463
|
return { ok: false, error: "db unavailable" };
|
|
16464
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16464
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-dapm3e4v.js"));
|
|
16465
16465
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-gxrj4w1r.js"));
|
|
16466
16466
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16467
16467
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -16546,7 +16546,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16546
16546
|
const db = readDatabase();
|
|
16547
16547
|
if (!db)
|
|
16548
16548
|
return { ok: false, error: "db unavailable" };
|
|
16549
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16549
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-v1mhjw55.js"));
|
|
16550
16550
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
16551
16551
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
16552
16552
|
if (!window)
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-8v1brm5n.js";
|
|
11
11
|
import {
|
|
12
12
|
pausedRecompReason,
|
|
13
13
|
executeContextRecomp
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-x49x59ar.js";
|
|
15
15
|
import {
|
|
16
16
|
renderUserFacingFailure,
|
|
17
17
|
userFacingFailureCode
|
|
@@ -140,8 +140,8 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
140
140
|
import("./store-reader-dgh3ssxx.js"),
|
|
141
141
|
import("./store-29ksp6vy.js"),
|
|
142
142
|
import("./read-session-chunk-sde0wym3.js"),
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
143
|
+
import("./render-6vmqzcem.js"),
|
|
144
|
+
import("./search-archive-4bbn3ztv.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
checkCompactionMarkerConsistency,
|
|
59
59
|
clearInjectionCache,
|
|
60
60
|
clearNoteNudgeTriggerOnly
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-x49x59ar.js";
|
|
62
62
|
import"./index-sd3egckz.js";
|
|
63
63
|
import"./index-3n4j5rqc.js";
|
|
64
64
|
import {
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
parameterDescriptionsFor,
|
|
148
148
|
MagicContextRpcServer,
|
|
149
149
|
applyHiddenSubagentTemperature
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-qdjxrbnr.js";
|
|
151
151
|
import {
|
|
152
152
|
resolveOpenCodeDbPath,
|
|
153
153
|
openCodeDbPathExists,
|
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
dropServedRecord,
|
|
200
200
|
registerLkgPersistence,
|
|
201
201
|
dropSlot
|
|
202
|
-
} from "./index-
|
|
202
|
+
} from "./index-8v1brm5n.js";
|
|
203
203
|
import {
|
|
204
204
|
recordSessionProjectIdentity
|
|
205
205
|
} from "./index-7sdns2ww.js";
|
|
@@ -339,13 +339,13 @@ import {
|
|
|
339
339
|
armBindingRecoverySafely,
|
|
340
340
|
collectForeignTextParts,
|
|
341
341
|
resetDegradedCacheCount2
|
|
342
|
-
} from "./index-
|
|
342
|
+
} from "./index-pkxkeezb.js";
|
|
343
343
|
import {
|
|
344
344
|
scheduleClearAndReindex
|
|
345
345
|
} from "./index-9jvxq5rt.js";
|
|
346
346
|
import {
|
|
347
347
|
runManagedRecomp2
|
|
348
|
-
} from "./index-
|
|
348
|
+
} from "./index-w9hxgntq.js";
|
|
349
349
|
import {
|
|
350
350
|
isValidSemver,
|
|
351
351
|
compareSemverCore
|
|
@@ -353,11 +353,11 @@ import {
|
|
|
353
353
|
import"./index-fmsr7v69.js";
|
|
354
354
|
import {
|
|
355
355
|
runManagedWrapup2
|
|
356
|
-
} from "./index-
|
|
356
|
+
} from "./index-mmf6e740.js";
|
|
357
357
|
import"./index-h7kta6cn.js";
|
|
358
358
|
import"./index-mgy7g740.js";
|
|
359
|
-
import"./index-
|
|
360
|
-
import"./index-
|
|
359
|
+
import"./index-xcej5kpt.js";
|
|
360
|
+
import"./index-tbdy1hk0.js";
|
|
361
361
|
import {
|
|
362
362
|
__toESM,
|
|
363
363
|
__commonJS
|
|
@@ -8213,7 +8213,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8213
8213
|
// package.json
|
|
8214
8214
|
var package_default = {
|
|
8215
8215
|
name: "@cortexkit/opencode-magic-context",
|
|
8216
|
-
version: "0.49.
|
|
8216
|
+
version: "0.49.97",
|
|
8217
8217
|
type: "module",
|
|
8218
8218
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8219
8219
|
main: "dist/index.js",
|
|
@@ -11871,7 +11871,7 @@ async function sendOpenCodeRefusal(client, sessionId, message, refusal) {
|
|
|
11871
11871
|
sessionLog2(sessionId, "refusal notice skipped: no terminal viewing the session", refusal.name);
|
|
11872
11872
|
}
|
|
11873
11873
|
if (storageBusy) {
|
|
11874
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
11874
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-1xrjg6be.js"));
|
|
11875
11875
|
await abortSessionFailClosed(client, sessionId);
|
|
11876
11876
|
}
|
|
11877
11877
|
}
|
|
@@ -12141,7 +12141,7 @@ async function setup(context) {
|
|
|
12141
12141
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12142
12142
|
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.`);
|
|
12143
12143
|
}
|
|
12144
|
-
const { registerContext } = await import("./context-
|
|
12144
|
+
const { registerContext } = await import("./context-br04s0b6.js");
|
|
12145
12145
|
setHarness2("opencode2");
|
|
12146
12146
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12147
12147
|
const duties = await registerContext(context);
|
|
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
19
19
|
await main();
|
|
20
20
|
async function main() {
|
|
21
21
|
if (input.v2ArchiveReader) {
|
|
22
|
-
const { serveV2ArchiveReads } = await import("./v2-archive-reader-
|
|
22
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-qs24chs6.js");
|
|
23
23
|
await serveV2ArchiveReads(port, openConnections);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
51
51
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
52
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
53
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-4bbn3ztv.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-trhdgc9z.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-w9hxgntq.js";
|
|
11
|
+
import"./index-x49x59ar.js";
|
|
12
12
|
import"./index-azkfw78y.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
14
|
import"./index-910gahfb.js";
|
|
@@ -16,7 +16,7 @@ import"./index-0bjj9yf3.js";
|
|
|
16
16
|
import"./index-9emdjcb5.js";
|
|
17
17
|
import"./index-7m2tnk8q.js";
|
|
18
18
|
import"./index-qjwpqvnf.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-8v1brm5n.js";
|
|
20
20
|
import"./index-880a24vd.js";
|
|
21
21
|
import"./index-89bkkgcn.js";
|
|
22
22
|
import"./index-2amn2s73.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
unresolvedLiveTailRefusal2,
|
|
3
3
|
renderSearchArchive2,
|
|
4
4
|
renderSearchArchiveOffThread2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
5
|
+
} from "./index-tbdy1hk0.js";
|
|
6
|
+
import"./index-xcej5kpt.js";
|
|
7
7
|
import"./index-mgy7g740.js";
|
|
8
8
|
import"./index-hp46xe93.js";
|
|
9
9
|
import"./index-w7n7qkpf.js";
|
|
@@ -156,11 +156,25 @@ export interface TranscriptPart {
|
|
|
156
156
|
* replaced (e.g. it's already a sentinel, or it's an image part).
|
|
157
157
|
*/
|
|
158
158
|
replaceWithSentinel(sentinelText: string): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Tool calls only: true when a dropped call that this pass keeps in place
|
|
161
|
+
* keeps the arguments the model wrote (only its result becomes the
|
|
162
|
+
* placeholder) instead of the `{"dropped": …}` marker. Absent or false
|
|
163
|
+
* means the marker. A host that answers true may note the call, so every
|
|
164
|
+
* copy of it the host sends carries the same arguments.
|
|
165
|
+
*/
|
|
166
|
+
keepsRealArgumentsWhenKept?(): boolean;
|
|
159
167
|
/** Remove one half of a complete tool arc. Callers must remove both halves together. */
|
|
160
168
|
remove?(): boolean;
|
|
161
169
|
/** Refuse structural deletion when the adapter cannot match provider-native identity safely. */
|
|
162
170
|
/** A deferred durable decision vetoes the whole drop, including sentinel fallback. */
|
|
163
171
|
canRemove?(): boolean | "defer";
|
|
172
|
+
/**
|
|
173
|
+
* What canRemove() would answer, without recording anything. Measuring a
|
|
174
|
+
* candidate for a drop uses it: only a drop that is actually chosen may
|
|
175
|
+
* record a removal, which later passes replay.
|
|
176
|
+
*/
|
|
177
|
+
wouldRemove?(): boolean | "defer";
|
|
164
178
|
/**
|
|
165
179
|
* Optional: serialized byte size of the part's REAL payload, including
|
|
166
180
|
* non-text content (images, structured data) that `getText()` can't
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/shared/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GACxB,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,OAAO,GACP,MAAM,GACN,YAAY,GACZ,SAAS,CAAC;AAEhB;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,oFAAoF;IACpF,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE3B,mEAAmE;IACnE,WAAW,CAAC,IAAI,MAAM,CAAC;IAEvB,6EAA6E;IAC7E,aAAa,CAAC,IAAI,OAAO,CAAC;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;;;;;;OAOG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS,CAAC;IAE9B;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAExC;;;;;;;;;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ED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAiC,CAAC"}
|
package/dist/{transform-postprocess-phase-376xn40x.js → transform-postprocess-phase-1xrjg6be.js}
RENAMED
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-pkxkeezb.js";
|
|
23
23
|
import"./index-9jvxq5rt.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-x49x59ar.js";
|
|
25
25
|
import"./index-azkfw78y.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
27
|
import"./index-910gahfb.js";
|
|
@@ -29,7 +29,7 @@ import"./index-0bjj9yf3.js";
|
|
|
29
29
|
import"./index-9emdjcb5.js";
|
|
30
30
|
import"./index-7m2tnk8q.js";
|
|
31
31
|
import"./index-qjwpqvnf.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-8v1brm5n.js";
|
|
33
33
|
import"./index-880a24vd.js";
|
|
34
34
|
import"./index-89bkkgcn.js";
|
|
35
35
|
import"./index-2amn2s73.js";
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
startCompartmentAgent,
|
|
250
250
|
setRecompStarting2,
|
|
251
251
|
setRecompTerminal2
|
|
252
|
-
} from "./server-
|
|
252
|
+
} from "./server-1fnsfm3a.js";
|
|
253
253
|
import {
|
|
254
254
|
embedPauseBySession,
|
|
255
255
|
embedRunStateBySession,
|
|
@@ -440,7 +440,7 @@ import {
|
|
|
440
440
|
saveSourceContent,
|
|
441
441
|
replaceSourceContent,
|
|
442
442
|
getSourceContents
|
|
443
|
-
} from "./server-
|
|
443
|
+
} from "./server-qjjky07w.js";
|
|
444
444
|
import {
|
|
445
445
|
cleanSearchText,
|
|
446
446
|
matchedSearchSnippet,
|
|
@@ -1061,11 +1061,11 @@ import {
|
|
|
1061
1061
|
import"./server-j1gxs1gj.js";
|
|
1062
1062
|
import {
|
|
1063
1063
|
readV2ArchiveOffThread2
|
|
1064
|
-
} from "./server-
|
|
1064
|
+
} from "./server-r3h4fy4k.js";
|
|
1065
1065
|
import {
|
|
1066
1066
|
unresolvedLiveTailRefusal2,
|
|
1067
1067
|
renderSearchArchiveOffThread2
|
|
1068
|
-
} from "./server-
|
|
1068
|
+
} from "./server-xekyjy4w.js";
|
|
1069
1069
|
import {
|
|
1070
1070
|
markHostInstructionRow,
|
|
1071
1071
|
hostInstructionRow,
|
|
@@ -8307,6 +8307,8 @@ function planNewToolDrop(target, options, prepare, plannedRemovals) {
|
|
|
8307
8307
|
})
|
|
8308
8308
|
};
|
|
8309
8309
|
}
|
|
8310
|
+
if (prepare && target.prepareRemoval?.() === false)
|
|
8311
|
+
return;
|
|
8310
8312
|
return {
|
|
8311
8313
|
mode: "full",
|
|
8312
8314
|
apply: () => {
|
|
@@ -8373,7 +8375,6 @@ function prepareLegacyToolSkeletonConversions(db, sessionId, targets, options =
|
|
|
8373
8375
|
});
|
|
8374
8376
|
};
|
|
8375
8377
|
const rows = readRows(db);
|
|
8376
|
-
options.prepareRemovals?.(rows);
|
|
8377
8378
|
const converted = new Map;
|
|
8378
8379
|
for (const row of rows) {
|
|
8379
8380
|
const target = targets.get(row.tagNumber);
|
|
@@ -8392,6 +8393,7 @@ function prepareLegacyToolSkeletonConversions(db, sessionId, targets, options =
|
|
|
8392
8393
|
}
|
|
8393
8394
|
converted.set(row.tagNumber, mode);
|
|
8394
8395
|
}
|
|
8396
|
+
options.prepareRemovals?.(rows.filter((row) => converted.get(row.tagNumber) !== "skeleton_real"));
|
|
8395
8397
|
return {
|
|
8396
8398
|
converted,
|
|
8397
8399
|
isCurrent: (connection) => {
|
|
@@ -8430,7 +8432,6 @@ function prepareAgedToolSkeletonConversions(db, sessionId, targets, options = {}
|
|
|
8430
8432
|
return { window, rows };
|
|
8431
8433
|
};
|
|
8432
8434
|
const snapshot = readRows(db);
|
|
8433
|
-
options.prepareRemovals?.(snapshot.rows);
|
|
8434
8435
|
const converted = new Map;
|
|
8435
8436
|
const plannedRemovals = new Set;
|
|
8436
8437
|
for (const row of snapshot.rows) {
|
|
@@ -8449,6 +8450,13 @@ function prepareAgedToolSkeletonConversions(db, sessionId, targets, options = {}
|
|
|
8449
8450
|
converted.set(row.tagNumber, "full");
|
|
8450
8451
|
target.notePlannedRemoval?.(plannedRemovals);
|
|
8451
8452
|
}
|
|
8453
|
+
const retired = snapshot.rows.filter((row) => converted.has(row.tagNumber));
|
|
8454
|
+
options.prepareRemovals?.(retired);
|
|
8455
|
+
for (const row of retired) {
|
|
8456
|
+
const target = targets.get(row.tagNumber);
|
|
8457
|
+
if (target?.prepareRemoval?.() === false)
|
|
8458
|
+
converted.delete(row.tagNumber);
|
|
8459
|
+
}
|
|
8452
8460
|
return {
|
|
8453
8461
|
converted,
|
|
8454
8462
|
isCurrent: (connection) => JSON.stringify(readRows(connection)) === JSON.stringify(snapshot),
|
|
@@ -26639,7 +26647,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26639
26647
|
const db = readDatabase();
|
|
26640
26648
|
if (!db)
|
|
26641
26649
|
return { ok: false, error: "db unavailable" };
|
|
26642
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
26650
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-vzygyqwn.js"));
|
|
26643
26651
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-8x146x5y.js"));
|
|
26644
26652
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
26645
26653
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -26724,7 +26732,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26724
26732
|
const db = readDatabase();
|
|
26725
26733
|
if (!db)
|
|
26726
26734
|
return { ok: false, error: "db unavailable" };
|
|
26727
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
26735
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-0d4ceff3.js"));
|
|
26728
26736
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
26729
26737
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
26730
26738
|
if (!window)
|
|
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
19
19
|
await main();
|
|
20
20
|
async function main() {
|
|
21
21
|
if (input.v2ArchiveReader) {
|
|
22
|
-
const { serveV2ArchiveReads } = await import("./v2-archive-reader-
|
|
22
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-hvdyz30c.js");
|
|
23
23
|
await serveV2ArchiveReads(port, openConnections);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
51
51
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
52
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
53
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-8zqsf9e6.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-ywebck9q.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-1fnsfm3a.js";
|
|
11
11
|
import"./server-379fd3n7.js";
|
|
12
12
|
import"./server-nnh81jqy.js";
|
|
13
13
|
import"./server-ganavh75.js";
|
|
14
14
|
import"./server-9emdjcb5.js";
|
|
15
15
|
import"./server-z5cv5wm5.js";
|
|
16
16
|
import"./server-qjwpqvnf.js";
|
|
17
|
-
import"./server-
|
|
17
|
+
import"./server-qjjky07w.js";
|
|
18
18
|
import"./server-5t4nzfpt.js";
|
|
19
19
|
import"./server-svccj9rd.js";
|
|
20
20
|
import"./server-2amn2s73.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
unresolvedLiveTailRefusal2,
|
|
3
3
|
renderSearchArchive2,
|
|
4
4
|
renderSearchArchiveOffThread2
|
|
5
|
-
} from "./server-
|
|
6
|
-
import"./server-
|
|
5
|
+
} from "./server-xekyjy4w.js";
|
|
6
|
+
import"./server-r3h4fy4k.js";
|
|
7
7
|
import"./server-j1gxs1gj.js";
|
|
8
8
|
import"./server-db91dxwc.js";
|
|
9
9
|
import"./server-11ra1pmx.js";
|
|
@@ -4459,8 +4459,10 @@ function decodePiContentDecision(value) {
|
|
|
4459
4459
|
var NATIVE_TOOL_INPUTS = "native tool inputs";
|
|
4460
4460
|
var NATIVE_REASONING_IDS = "native reasoning ids";
|
|
4461
4461
|
var nativeWriteBarriers = new WeakMap;
|
|
4462
|
+
class PersistedReplayStateError extends Error {
|
|
4463
|
+
}
|
|
4462
4464
|
function invalidPersistedReplayState(lane, sessionId) {
|
|
4463
|
-
return new
|
|
4465
|
+
return new PersistedReplayStateError(`invalid persisted ${lane} state for session ${sessionId}`);
|
|
4464
4466
|
}
|
|
4465
4467
|
function assertNonEmptyId(value, lane, sessionId) {
|
|
4466
4468
|
if (typeof value !== "string" || value.length === 0) {
|
|
@@ -140,8 +140,8 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
140
140
|
import("./store-reader-qt2msa8z.js"),
|
|
141
141
|
import("./store-gx19qc3a.js"),
|
|
142
142
|
import("./read-session-chunk-8tn2dbn1.js"),
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
143
|
+
import("./render-9b5dxp9e.js"),
|
|
144
|
+
import("./search-archive-8zqsf9e6.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
package/dist/v2/server.js
CHANGED
|
@@ -7878,7 +7878,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7878
7878
|
// package.json
|
|
7879
7879
|
var package_default = {
|
|
7880
7880
|
name: "@cortexkit/opencode-magic-context",
|
|
7881
|
-
version: "0.49.
|
|
7881
|
+
version: "0.49.97",
|
|
7882
7882
|
type: "module",
|
|
7883
7883
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7884
7884
|
main: "dist/index.js",
|
|
@@ -8199,7 +8199,7 @@ async function setup(context) {
|
|
|
8199
8199
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8200
8200
|
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.`);
|
|
8201
8201
|
}
|
|
8202
|
-
const { registerContext } = await import("./context-
|
|
8202
|
+
const { registerContext } = await import("./context-43r0mzkp.js");
|
|
8203
8203
|
setHarness2("opencode2");
|
|
8204
8204
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8205
8205
|
const duties = await registerContext(context);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getCompartments,
|
|
13
13
|
getLastCompartmentEndMessage,
|
|
14
14
|
requestPendingMaterialization
|
|
15
|
-
} from "./server-
|
|
15
|
+
} from "./server-qjjky07w.js";
|
|
16
16
|
import"./server-2amn2s73.js";
|
|
17
17
|
import"./server-73bqw5c0.js";
|
|
18
18
|
import"./server-k3ntgf6n.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
registerActiveCompartmentRun,
|
|
66
66
|
setRecompStarting2,
|
|
67
67
|
setRecompTerminal2
|
|
68
|
-
} from "./server-
|
|
68
|
+
} from "./server-1fnsfm3a.js";
|
|
69
69
|
import"./server-qt1qqasc.js";
|
|
70
70
|
import"./server-z5cv5wm5.js";
|
|
71
71
|
import"./server-6qax5pds.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runManagedWrapup2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
5
|
-
import"./index-
|
|
3
|
+
} from "./index-mmf6e740.js";
|
|
4
|
+
import"./index-w9hxgntq.js";
|
|
5
|
+
import"./index-x49x59ar.js";
|
|
6
6
|
import"./index-azkfw78y.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
8
|
import"./index-910gahfb.js";
|
|
@@ -10,7 +10,7 @@ import"./index-0bjj9yf3.js";
|
|
|
10
10
|
import"./index-9emdjcb5.js";
|
|
11
11
|
import"./index-7m2tnk8q.js";
|
|
12
12
|
import"./index-qjwpqvnf.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-8v1brm5n.js";
|
|
14
14
|
import"./index-880a24vd.js";
|
|
15
15
|
import"./index-89bkkgcn.js";
|
|
16
16
|
import"./index-2amn2s73.js";
|
package/package.json
CHANGED
|
@@ -1423,11 +1423,27 @@ function buildAggregateTarget(
|
|
|
1423
1423
|
return any ? "truncated" : "absent";
|
|
1424
1424
|
};
|
|
1425
1425
|
|
|
1426
|
+
// Whether the host keeps this kept call's real arguments. Asks every call
|
|
1427
|
+
// occurrence, so the host learns about each call it must send that way.
|
|
1428
|
+
const keepsRealArgumentsWhenKept = (): boolean => {
|
|
1429
|
+
let keeps = false;
|
|
1430
|
+
for (const occ of occurrences) {
|
|
1431
|
+
if (occ.kind === "tool_use" && occ.part.keepsRealArgumentsWhenKept?.() === true)
|
|
1432
|
+
keeps = true;
|
|
1433
|
+
}
|
|
1434
|
+
return keeps;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1426
1437
|
// Adapters without structural removal (or arcs that must keep their pair
|
|
1427
1438
|
// beside native reasoning) cannot remove the call; drop() would keep it.
|
|
1439
|
+
// Asked without recording a removal where the host can: a planner keeps
|
|
1440
|
+
// the call when this says so, and a recorded removal would be replayed
|
|
1441
|
+
// into the kept call's native history item.
|
|
1428
1442
|
const cannotRemove = (): boolean => {
|
|
1429
1443
|
if (requiresToolArcSkeleton) return true;
|
|
1430
|
-
const authorization = occurrences.map((occ) =>
|
|
1444
|
+
const authorization = occurrences.map((occ) =>
|
|
1445
|
+
occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.(),
|
|
1446
|
+
);
|
|
1431
1447
|
return !occurrences.every(
|
|
1432
1448
|
(occ, index) => occ.part.remove && authorization[index] !== false,
|
|
1433
1449
|
);
|
|
@@ -1441,7 +1457,11 @@ function buildAggregateTarget(
|
|
|
1441
1457
|
measureReclaim(skeleton) {
|
|
1442
1458
|
let beforeTools = 0;
|
|
1443
1459
|
let afterTools = 0;
|
|
1444
|
-
|
|
1460
|
+
// Measuring must not record a removal for a call the caller may
|
|
1461
|
+
// leave in place; ask without recording where the host can.
|
|
1462
|
+
const authorization = occurrences.map((occ) =>
|
|
1463
|
+
occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.(),
|
|
1464
|
+
);
|
|
1445
1465
|
const removable =
|
|
1446
1466
|
!requiresToolArcSkeleton &&
|
|
1447
1467
|
occurrences.every(
|
|
@@ -1510,18 +1530,34 @@ function buildAggregateTarget(
|
|
|
1510
1530
|
// "truncated" tells callers to persist that mode
|
|
1511
1531
|
// (`skeleton_real`), so later passes serve the same bytes.
|
|
1512
1532
|
// (The sentinel fallback below keeps call and result in place,
|
|
1513
|
-
// so it needs no exception.)
|
|
1514
|
-
|
|
1533
|
+
// so it needs no exception.) The host is asked about the call
|
|
1534
|
+
// too, so a host that keeps real arguments for it sends the
|
|
1535
|
+
// same arguments in every copy of the call.
|
|
1536
|
+
if (conversationEnd?.wouldStrand(occurrences)) {
|
|
1537
|
+
keepsRealArgumentsWhenKept();
|
|
1538
|
+
return skeletonReal();
|
|
1539
|
+
}
|
|
1515
1540
|
let removed = false;
|
|
1516
1541
|
for (const occ of occurrences) removed = occ.part.remove?.() || removed;
|
|
1517
1542
|
if (removed) conversationEnd?.noteRemoved(occurrences);
|
|
1518
1543
|
return removed ? "removed" : "absent";
|
|
1519
1544
|
}
|
|
1520
1545
|
}
|
|
1521
|
-
//
|
|
1522
|
-
//
|
|
1523
|
-
//
|
|
1524
|
-
//
|
|
1546
|
+
// The call stays in place on this pass. When the host keeps its real
|
|
1547
|
+
// arguments (on Pi: a removal of this pair was recorded on a pass
|
|
1548
|
+
// whose model allowed it), this renders the bytes of a
|
|
1549
|
+
// `skeleton_real` row: real arguments, `[dropped §N§]` result. The
|
|
1550
|
+
// row stays `full`, so a later pass that can remove the call does.
|
|
1551
|
+
if (keepsRealArgumentsWhenKept()) return skeletonReal();
|
|
1552
|
+
// Otherwise the call keeps its place with a `{"dropped": …}` marker
|
|
1553
|
+
// in its arguments. That is the form such a row has had since it was
|
|
1554
|
+
// dropped, and replaying it keeps the cached prompt's bytes: a `full`
|
|
1555
|
+
// row that was never removed, which `/ctx-flush` leaves when it marks
|
|
1556
|
+
// queued drops `full` without asking whether the call can be removed,
|
|
1557
|
+
// and a `ctx_reduce` drop whose call was absent when it applied. A
|
|
1558
|
+
// new drop planned by planNewToolDrop keeps a call it cannot remove
|
|
1559
|
+
// as `skeleton_real` instead, and a HARD fold converts such a row to
|
|
1560
|
+
// `skeleton_real` when its call cannot be removed.
|
|
1525
1561
|
const sentinel = `[dropped \u00a7${tagId}\u00a7]`;
|
|
1526
1562
|
let any = false;
|
|
1527
1563
|
for (const occ of occurrences) {
|
|
@@ -1567,8 +1603,23 @@ function buildAggregateTarget(
|
|
|
1567
1603
|
}
|
|
1568
1604
|
return any ? "truncated" : "absent";
|
|
1569
1605
|
},
|
|
1570
|
-
//
|
|
1571
|
-
|
|
1606
|
+
// Admission for a new drop of this arc: false while the host already
|
|
1607
|
+
// knows it cannot decide the arc's removal (a removal answer of
|
|
1608
|
+
// "defer"). Asked without recording anything where the host can, since
|
|
1609
|
+
// the drop may keep the call in place; on Pi the answer does not
|
|
1610
|
+
// foresee whether a later write of the record succeeds (prepareRemoval
|
|
1611
|
+
// finds that out).
|
|
1612
|
+
prepareDrop: () =>
|
|
1613
|
+
!occurrences.some(
|
|
1614
|
+
(occ) =>
|
|
1615
|
+
(occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.()) ===
|
|
1616
|
+
"defer",
|
|
1617
|
+
),
|
|
1618
|
+
// Prepare this arc's removal: on Pi this records the removal decision,
|
|
1619
|
+
// and refuses (false) when that record cannot be written. Call it only
|
|
1620
|
+
// for an arc that will be removed: the record is replayed into the
|
|
1621
|
+
// call's native history item on every later pass.
|
|
1622
|
+
prepareRemoval: () => !occurrences.some((occ) => occ.part.canRemove?.() === "defer"),
|
|
1572
1623
|
prepareReplayDrop: () => {
|
|
1573
1624
|
if (complete() && !requiresToolArcSkeleton) {
|
|
1574
1625
|
for (const occ of occurrences) occ.part.canRemove?.();
|
package/src/shared/transcript.ts
CHANGED
|
@@ -177,12 +177,28 @@ export interface TranscriptPart {
|
|
|
177
177
|
*/
|
|
178
178
|
replaceWithSentinel(sentinelText: string): boolean;
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Tool calls only: true when a dropped call that this pass keeps in place
|
|
182
|
+
* keeps the arguments the model wrote (only its result becomes the
|
|
183
|
+
* placeholder) instead of the `{"dropped": …}` marker. Absent or false
|
|
184
|
+
* means the marker. A host that answers true may note the call, so every
|
|
185
|
+
* copy of it the host sends carries the same arguments.
|
|
186
|
+
*/
|
|
187
|
+
keepsRealArgumentsWhenKept?(): boolean;
|
|
188
|
+
|
|
180
189
|
/** Remove one half of a complete tool arc. Callers must remove both halves together. */
|
|
181
190
|
remove?(): boolean;
|
|
182
191
|
/** Refuse structural deletion when the adapter cannot match provider-native identity safely. */
|
|
183
192
|
/** A deferred durable decision vetoes the whole drop, including sentinel fallback. */
|
|
184
193
|
canRemove?(): boolean | "defer";
|
|
185
194
|
|
|
195
|
+
/**
|
|
196
|
+
* What canRemove() would answer, without recording anything. Measuring a
|
|
197
|
+
* candidate for a drop uses it: only a drop that is actually chosen may
|
|
198
|
+
* record a removal, which later passes replay.
|
|
199
|
+
*/
|
|
200
|
+
wouldRemove?(): boolean | "defer";
|
|
201
|
+
|
|
186
202
|
/**
|
|
187
203
|
* Optional: serialized byte size of the part's REAL payload, including
|
|
188
204
|
* non-text content (images, structured data) that `getText()` can't
|