@cortexkit/opencode-magic-context 0.49.3 → 0.49.5
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-9tbxh883.js → context-yg023c5r.js} +5 -5
- package/dist/features/magic-context/historian-failure-reason.d.ts +7 -0
- package/dist/features/magic-context/historian-failure-reason.d.ts.map +1 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +3 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/{index-ws3gcy5m.js → index-2mqps3c1.js} +1 -1
- package/dist/{index-w9pe0nx1.js → index-dd18gej8.js} +1 -1
- package/dist/{index-je2na55n.js → index-p2hs3rps.js} +2 -2
- package/dist/{index-s4ztdn8v.js → index-v4bqjy56.js} +5811 -5734
- package/dist/{index-mgy5dwcw.js → index-x3y1np1h.js} +16 -16
- package/dist/index.js +9 -9
- package/dist/{recomp-orchestrator-txcc802e.js → recomp-orchestrator-xw9wt5bm.js} +2 -2
- package/dist/{transform-postprocess-phase-113rwew1.js → transform-postprocess-phase-ttra554y.js} +2 -2
- package/dist/v2/{context-p1xf3w5q.js → context-6en6a8ar.js} +9 -9
- package/dist/v2/{recomp-orchestrator-v168jwgg.js → recomp-orchestrator-krvsbnds.js} +1 -1
- package/dist/v2/{server-cxxjb33r.js → server-e2v4m8xe.js} +1655 -1578
- package/dist/v2/server.js +2 -2
- package/dist/v2/{wrapup-orchestrator-zcyf8ymw.js → wrapup-orchestrator-r2v7kgy3.js} +1 -1
- package/dist/{wrapup-orchestrator-5aa2q4v3.js → wrapup-orchestrator-z7agncp8.js} +3 -3
- package/package.json +1 -1
|
@@ -453,8 +453,11 @@ import {
|
|
|
453
453
|
getCompartmentEvents,
|
|
454
454
|
runTokenLog,
|
|
455
455
|
formatRunTokenLog,
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
buildMagicContextSection,
|
|
457
|
+
getMuralIdentity,
|
|
458
|
+
getMural,
|
|
459
|
+
modelKeyAcceptsImages,
|
|
460
|
+
resolveMuralWire,
|
|
458
461
|
USER_MEMORY_CANDIDATE_TTL_MS,
|
|
459
462
|
insertUserMemoryCandidates,
|
|
460
463
|
getUserMemoryCandidates,
|
|
@@ -464,20 +467,11 @@ import {
|
|
|
464
467
|
getActiveUserMemories,
|
|
465
468
|
updateUserMemoryContent,
|
|
466
469
|
dismissUserMemory,
|
|
467
|
-
getMuralIdentity,
|
|
468
|
-
getMural,
|
|
469
470
|
getOpenCodeDbPath,
|
|
470
471
|
prepareCompactionMarkerCandidates,
|
|
471
472
|
removeMcOwnedCompactionMarkers,
|
|
472
|
-
readCoordinateGeneration,
|
|
473
|
-
readCoordinateRebaseNotice,
|
|
474
|
-
formatCoordinateRebaseNotice,
|
|
475
|
-
rebaseSessionCoordinatesAsync,
|
|
476
473
|
MARKER_SUMMARY_TEXT,
|
|
477
474
|
markerUpdateDefinitelyDidNotCut,
|
|
478
|
-
buildMagicContextSection,
|
|
479
|
-
modelKeyAcceptsImages,
|
|
480
|
-
resolveMuralWire,
|
|
481
475
|
extractM0Block,
|
|
482
476
|
formatDate,
|
|
483
477
|
TEMPORAL_MARKER_REPLAY_PATTERN,
|
|
@@ -491,6 +485,12 @@ import {
|
|
|
491
485
|
renderMemoryBlockV2,
|
|
492
486
|
findHostCompactionWindow,
|
|
493
487
|
capturePrefixTrimSourceOrder,
|
|
488
|
+
resolveHiddenCompletionExecutor,
|
|
489
|
+
createV1HiddenCompletionExecutor,
|
|
490
|
+
readCoordinateGeneration,
|
|
491
|
+
readCoordinateRebaseNotice,
|
|
492
|
+
formatCoordinateRebaseNotice,
|
|
493
|
+
rebaseSessionCoordinatesAsync,
|
|
494
494
|
EMPTY_READ_REPLY,
|
|
495
495
|
noteTouchedAt,
|
|
496
496
|
renderGlance,
|
|
@@ -509,7 +509,7 @@ import {
|
|
|
509
509
|
snapRangeToCompartments,
|
|
510
510
|
getActiveCompartmentRun,
|
|
511
511
|
startCompartmentAgent
|
|
512
|
-
} from "./index-
|
|
512
|
+
} from "./index-v4bqjy56.js";
|
|
513
513
|
import {
|
|
514
514
|
SubcClient,
|
|
515
515
|
connectionFileExists,
|
|
@@ -656,7 +656,7 @@ import {
|
|
|
656
656
|
import {
|
|
657
657
|
setRecompStarting2,
|
|
658
658
|
setRecompTerminal2
|
|
659
|
-
} from "./index-
|
|
659
|
+
} from "./index-dd18gej8.js";
|
|
660
660
|
import {
|
|
661
661
|
searchMessageHistoryOffThread,
|
|
662
662
|
findSessionId,
|
|
@@ -706,7 +706,7 @@ import {
|
|
|
706
706
|
abortSessionFailClosed2,
|
|
707
707
|
evaluateEmergencyFailClosed2,
|
|
708
708
|
runPostTransformPhase2
|
|
709
|
-
} from "./index-
|
|
709
|
+
} from "./index-2mqps3c1.js";
|
|
710
710
|
import {
|
|
711
711
|
ANNOUNCEMENT_VERSION2,
|
|
712
712
|
ANNOUNCEMENT_FEATURES2,
|
|
@@ -15706,7 +15706,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
15706
15706
|
const db = readDatabase();
|
|
15707
15707
|
if (!db)
|
|
15708
15708
|
return { ok: false, error: "db unavailable" };
|
|
15709
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
15709
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-xw9wt5bm.js"));
|
|
15710
15710
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-yp9m5g4p.js"));
|
|
15711
15711
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
15712
15712
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -15776,7 +15776,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
15776
15776
|
const db = readDatabase();
|
|
15777
15777
|
if (!db)
|
|
15778
15778
|
return { ok: false, error: "db unavailable" };
|
|
15779
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
15779
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-z7agncp8.js"));
|
|
15780
15780
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
15781
15781
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
15782
15782
|
const ctx = {
|
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
checkCompactionMarkerConsistency,
|
|
73
73
|
clearInjectionCache,
|
|
74
74
|
clearNoteNudgeTriggerOnly
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-v4bqjy56.js";
|
|
76
76
|
import"./index-sd3egckz.js";
|
|
77
77
|
import {
|
|
78
78
|
hasTrustedAbsoluteWall,
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
parameterDescriptionsFor,
|
|
159
159
|
MagicContextRpcServer,
|
|
160
160
|
applyHiddenSubagentTemperature
|
|
161
|
-
} from "./index-
|
|
161
|
+
} from "./index-x3y1np1h.js";
|
|
162
162
|
import {
|
|
163
163
|
formatFailClosedBlockingMessage,
|
|
164
164
|
createFailClosedController,
|
|
@@ -299,17 +299,17 @@ import"./index-gbmqa9x9.js";
|
|
|
299
299
|
import"./index-4dhv7mqz.js";
|
|
300
300
|
import"./index-7ndnvw7a.js";
|
|
301
301
|
import"./index-7jzrrxap.js";
|
|
302
|
+
import"./index-yxawqmdd.js";
|
|
302
303
|
import {
|
|
303
304
|
createTagger,
|
|
304
305
|
cavemanWordRulesForLanguage,
|
|
305
306
|
setCtxReduceRegisteredGlobally,
|
|
306
307
|
clearToolPermissionDenied,
|
|
307
308
|
resetDegradedCacheCount2
|
|
308
|
-
} from "./index-
|
|
309
|
-
import"./index-yxawqmdd.js";
|
|
309
|
+
} from "./index-2mqps3c1.js";
|
|
310
310
|
import {
|
|
311
311
|
runManagedRecomp2
|
|
312
|
-
} from "./index-
|
|
312
|
+
} from "./index-dd18gej8.js";
|
|
313
313
|
import {
|
|
314
314
|
isValidSemver,
|
|
315
315
|
compareSemverCore
|
|
@@ -317,7 +317,7 @@ import {
|
|
|
317
317
|
import"./index-fmsr7v69.js";
|
|
318
318
|
import {
|
|
319
319
|
runManagedWrapup2
|
|
320
|
-
} from "./index-
|
|
320
|
+
} from "./index-p2hs3rps.js";
|
|
321
321
|
import {
|
|
322
322
|
__toESM,
|
|
323
323
|
__commonJS
|
|
@@ -8179,7 +8179,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8179
8179
|
// package.json
|
|
8180
8180
|
var package_default = {
|
|
8181
8181
|
name: "@cortexkit/opencode-magic-context",
|
|
8182
|
-
version: "0.49.
|
|
8182
|
+
version: "0.49.5",
|
|
8183
8183
|
type: "module",
|
|
8184
8184
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8185
8185
|
main: "dist/index.js",
|
|
@@ -12057,7 +12057,7 @@ async function setup(context) {
|
|
|
12057
12057
|
log2("v2 setup() called on a host without session.hook; v1 server lane owns this host, v2 lane inert");
|
|
12058
12058
|
return async () => {};
|
|
12059
12059
|
}
|
|
12060
|
-
const { registerContext } = await import("./context-
|
|
12060
|
+
const { registerContext } = await import("./context-yg023c5r.js");
|
|
12061
12061
|
setHarness2("opencode2");
|
|
12062
12062
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12063
12063
|
const duties = await registerContext(context);
|
|
@@ -12524,7 +12524,7 @@ var server = async (ctx) => {
|
|
|
12524
12524
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12525
12525
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12526
12526
|
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-yp9m5g4p.js"));
|
|
12527
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12527
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-ttra554y.js"));
|
|
12528
12528
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12529
12529
|
toastDurationMs: 15000
|
|
12530
12530
|
});
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-dd18gej8.js";
|
|
11
|
+
import"./index-v4bqjy56.js";
|
|
12
12
|
import"./index-yxawqmdd.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
14
|
import"./index-fjtgekd4.js";
|
package/dist/{transform-postprocess-phase-113rwew1.js → transform-postprocess-phase-ttra554y.js}
RENAMED
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
finalizeMessageRepresentation2,
|
|
19
19
|
runPostTransformPhase2,
|
|
20
20
|
checkM0MutationDriftAndSignal2
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-2mqps3c1.js";
|
|
22
|
+
import"./index-v4bqjy56.js";
|
|
23
23
|
import"./index-yxawqmdd.js";
|
|
24
24
|
import"./index-sd3egckz.js";
|
|
25
25
|
import"./index-fjtgekd4.js";
|
|
@@ -209,12 +209,6 @@ import {
|
|
|
209
209
|
runTokenLog,
|
|
210
210
|
formatRunTokenLog,
|
|
211
211
|
createChildSessionWithFence,
|
|
212
|
-
clampProducerAtomChars,
|
|
213
|
-
producerInputTokenLimit,
|
|
214
|
-
historianProducerReserve,
|
|
215
|
-
producerPromptFailureReason,
|
|
216
|
-
resolveHiddenCompletionExecutor,
|
|
217
|
-
createV1HiddenCompletionExecutor,
|
|
218
212
|
buildMagicContextSection,
|
|
219
213
|
getMuralIdentity,
|
|
220
214
|
getMural,
|
|
@@ -242,6 +236,12 @@ import {
|
|
|
242
236
|
prepareCachedM0M1Replay,
|
|
243
237
|
hasCompleteCachedM0M1,
|
|
244
238
|
injectM0M1,
|
|
239
|
+
clampProducerAtomChars,
|
|
240
|
+
producerInputTokenLimit,
|
|
241
|
+
historianProducerReserve,
|
|
242
|
+
producerPromptFailureReason,
|
|
243
|
+
resolveHiddenCompletionExecutor,
|
|
244
|
+
createV1HiddenCompletionExecutor,
|
|
245
245
|
EMPTY_READ_REPLY,
|
|
246
246
|
noteTouchedAt,
|
|
247
247
|
renderGlance,
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
startCompartmentAgent,
|
|
264
264
|
setRecompStarting2,
|
|
265
265
|
setRecompTerminal2
|
|
266
|
-
} from "./server-
|
|
266
|
+
} from "./server-e2v4m8xe.js";
|
|
267
267
|
import {
|
|
268
268
|
CANONICAL_DREAM_TASKS,
|
|
269
269
|
DREAM_TASK_CAPABILITIES,
|
|
@@ -21662,7 +21662,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
21662
21662
|
const db = readDatabase();
|
|
21663
21663
|
if (!db)
|
|
21664
21664
|
return { ok: false, error: "db unavailable" };
|
|
21665
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
21665
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-krvsbnds.js"));
|
|
21666
21666
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-a4h2azxa.js"));
|
|
21667
21667
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
21668
21668
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -21732,7 +21732,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
21732
21732
|
const db = readDatabase();
|
|
21733
21733
|
if (!db)
|
|
21734
21734
|
return { ok: false, error: "db unavailable" };
|
|
21735
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
21735
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-r2v7kgy3.js"));
|
|
21736
21736
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
21737
21737
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
21738
21738
|
const ctx = {
|