@cortexkit/opencode-magic-context 0.49.55 → 0.49.57
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-vx5gw5h2.js → context-a617pcqe.js} +210 -57
- package/dist/features/magic-context/mural/render-mural.d.ts +17 -0
- package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts +2 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/features/magic-context/mural/resolve-mural.d.ts +8 -2
- package/dist/features/magic-context/mural/resolve-mural.d.ts.map +1 -1
- package/dist/features/magic-context/pi-identity-fold-guards.d.ts +38 -0
- package/dist/features/magic-context/pi-identity-fold-guards.d.ts.map +1 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts +7 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.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 +9 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts +7 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-failure-report.d.ts +112 -0
- package/dist/hooks/magic-context/historian-failure-report.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +11 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-eyr425dx.js → index-0r2jk2na.js} +2 -2
- package/dist/{index-a3n2dczz.js → index-1wsb0e8h.js} +1 -1
- package/dist/{index-xj5bap1r.js → index-3600gm9z.js} +268 -21
- package/dist/{index-tx8nfw85.js → index-bev3zks1.js} +25 -1
- package/dist/{index-567xsm72.js → index-pdnan1e3.js} +3 -3
- package/dist/{index-9n6mdfqy.js → index-wpcjxzrm.js} +53 -27
- package/dist/{index-yamsmkmh.js → index-x8e50d8f.js} +2 -2
- package/dist/{index-xvtjwhm6.js → index-zyanqxtc.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-wbm4kpq9.js → recomp-orchestrator-xwsjrqcs.js} +3 -3
- package/dist/{render-73vrt30h.js → render-22ebrmep.js} +1 -1
- package/dist/{search-archive-ew4c3bsw.js → search-archive-bqqf5p7f.js} +2 -2
- package/dist/{transform-postprocess-phase-mt4dcbhd.js → transform-postprocess-phase-nejydt3q.js} +3 -3
- package/dist/v2/{context-13er940g.js → context-4gxr2xd4.js} +240 -67
- package/dist/v2/hidden-child-native.d.ts +10 -13
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +2 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-child-sweep.d.ts +39 -0
- package/dist/v2/hidden-child-sweep.d.ts.map +1 -0
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/usage-persist.d.ts +7 -1
- package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-cdkfynz4.js → recomp-orchestrator-1de5c0zr.js} +2 -2
- package/dist/v2/{render-a7j6fqbd.js → render-g44ksejs.js} +1 -1
- package/dist/v2/{search-archive-3a36887a.js → search-archive-5ycchnyp.js} +2 -2
- package/dist/v2/{server-96g41nad.js → server-dqwx9pdh.js} +268 -21
- package/dist/v2/{server-79tbtk5w.js → server-r7nj8ga0.js} +1 -1
- package/dist/v2/{server-578pc4tf.js → server-t5c8awdm.js} +2 -2
- package/dist/v2/{server-7rmf6a57.js → server-v57wr0r9.js} +25 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{v2-archive-reader-jm3d7ccj.js → v2-archive-reader-tgydjgfy.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-xnqq81c4.js → wrapup-orchestrator-3871zj7c.js} +2 -2
- package/dist/{v2-archive-reader-9bbfh131.js → v2-archive-reader-2czwvyc9.js} +1 -1
- package/dist/{wrapup-orchestrator-svhee0fn.js → wrapup-orchestrator-m1yzmgq4.js} +4 -4
- package/package.json +1 -1
|
@@ -173,6 +173,8 @@ import {
|
|
|
173
173
|
readCoordinateRebaseNotice,
|
|
174
174
|
formatCoordinateRebaseNotice,
|
|
175
175
|
rebaseSessionCoordinatesAsync,
|
|
176
|
+
readHistorianFailureStreak,
|
|
177
|
+
describeHistorianJoinRefusal,
|
|
176
178
|
shouldWaitForNewHistorianHistory,
|
|
177
179
|
EMPTY_READ_REPLY,
|
|
178
180
|
noteTouchedAt,
|
|
@@ -194,7 +196,7 @@ import {
|
|
|
194
196
|
snapRangeToCompartments,
|
|
195
197
|
getActiveCompartmentRun,
|
|
196
198
|
startCompartmentAgent
|
|
197
|
-
} from "./index-
|
|
199
|
+
} from "./index-3600gm9z.js";
|
|
198
200
|
import {
|
|
199
201
|
hasTrustedAbsoluteWall,
|
|
200
202
|
applyProvenInputFloor,
|
|
@@ -286,7 +288,6 @@ import {
|
|
|
286
288
|
setPersistedTodoSyntheticAnchor,
|
|
287
289
|
clearPersistedTodoSyntheticAnchor,
|
|
288
290
|
setNoteLastReadAt,
|
|
289
|
-
getHistorianFailureState,
|
|
290
291
|
clearHistorianFailureState,
|
|
291
292
|
getOverflowState,
|
|
292
293
|
loadTransformPassStateSnapshot,
|
|
@@ -568,7 +569,7 @@ import {
|
|
|
568
569
|
GLOBAL_USER_PROFILE_PROJECT_PATH,
|
|
569
570
|
getProjectState,
|
|
570
571
|
bumpProjectUserProfileVersion
|
|
571
|
-
} from "./index-
|
|
572
|
+
} from "./index-bev3zks1.js";
|
|
572
573
|
import {
|
|
573
574
|
getLastIndexedOrdinal
|
|
574
575
|
} from "./index-h62j8z2r.js";
|
|
@@ -721,7 +722,7 @@ import {
|
|
|
721
722
|
import {
|
|
722
723
|
setRecompStarting2,
|
|
723
724
|
setRecompTerminal2
|
|
724
|
-
} from "./index-
|
|
725
|
+
} from "./index-x8e50d8f.js";
|
|
725
726
|
import {
|
|
726
727
|
makeToolCompositeKey,
|
|
727
728
|
searchMessageHistoryOffThread,
|
|
@@ -806,7 +807,7 @@ import {
|
|
|
806
807
|
abortSessionFailClosed2,
|
|
807
808
|
evaluateEmergencyFailClosed2,
|
|
808
809
|
runPostTransformPhase2
|
|
809
|
-
} from "./index-
|
|
810
|
+
} from "./index-0r2jk2na.js";
|
|
810
811
|
import {
|
|
811
812
|
ANNOUNCEMENT_VERSION2,
|
|
812
813
|
ANNOUNCEMENT_FEATURES2,
|
|
@@ -824,10 +825,10 @@ import {
|
|
|
824
825
|
} from "./index-5gqszjq9.js";
|
|
825
826
|
import {
|
|
826
827
|
readV2ArchiveOffThread2
|
|
827
|
-
} from "./index-
|
|
828
|
+
} from "./index-zyanqxtc.js";
|
|
828
829
|
import {
|
|
829
830
|
renderSearchArchiveOffThread2
|
|
830
|
-
} from "./index-
|
|
831
|
+
} from "./index-1wsb0e8h.js";
|
|
831
832
|
import {
|
|
832
833
|
COMPACTION_ENABLED_PATH,
|
|
833
834
|
isDreamerRunnable,
|
|
@@ -14580,14 +14581,16 @@ var HTTP_COOKIES_TYPE_ID = "~effect/http/Cookies";
|
|
|
14580
14581
|
var HTTP_BODY_TYPE_ID = "~effect/http/HttpBody";
|
|
14581
14582
|
var ERROR_REPORTER_IGNORE = "~effect/ErrorReporter/ignore";
|
|
14582
14583
|
function throwSentinel(command) {
|
|
14583
|
-
const
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14584
|
+
const fields = {
|
|
14585
|
+
[HTTP_SERVER_RESPONSE_TYPE_ID]: HTTP_SERVER_RESPONSE_TYPE_ID,
|
|
14586
|
+
[ERROR_REPORTER_IGNORE]: true,
|
|
14587
|
+
status: 204,
|
|
14588
|
+
statusText: undefined,
|
|
14589
|
+
headers: {},
|
|
14590
|
+
cookies: { [HTTP_COOKIES_TYPE_ID]: HTTP_COOKIES_TYPE_ID, cookies: {} },
|
|
14591
|
+
body: { [HTTP_BODY_TYPE_ID]: HTTP_BODY_TYPE_ID, _tag: "Empty" }
|
|
14592
|
+
};
|
|
14593
|
+
const sentinel = Object.assign(new Error(`${SENTINEL_PREFIX}${command.toUpperCase()}_HANDLED__`), fields);
|
|
14591
14594
|
throw sentinel;
|
|
14592
14595
|
}
|
|
14593
14596
|
function getLegacyCompartmentCount(db, sessionId) {
|
|
@@ -16446,7 +16449,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16446
16449
|
const db = readDatabase();
|
|
16447
16450
|
if (!db)
|
|
16448
16451
|
return { ok: false, error: "db unavailable" };
|
|
16449
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16452
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-xwsjrqcs.js"));
|
|
16450
16453
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-gamjee2f.js"));
|
|
16451
16454
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16452
16455
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -16531,7 +16534,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16531
16534
|
const db = readDatabase();
|
|
16532
16535
|
if (!db)
|
|
16533
16536
|
return { ok: false, error: "db unavailable" };
|
|
16534
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16537
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-m1yzmgq4.js"));
|
|
16535
16538
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
16536
16539
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
16537
16540
|
const ctx = {
|
|
@@ -24251,10 +24254,18 @@ function historianJoinFailClosedMessage(input) {
|
|
|
24251
24254
|
if (estimate?.trusted === true && Number.isFinite(estimate.tokens) && estimate.tokens > 0 && Number.isFinite(input.contextLimitTokens) && input.contextLimitTokens > 0 && estimate.tokens < input.contextLimitTokens) {
|
|
24252
24255
|
return null;
|
|
24253
24256
|
}
|
|
24254
|
-
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24257
|
+
return describeHistorianJoinRefusal({
|
|
24258
|
+
waitedMs: input.budgetMs ?? HISTORIAN_INLINE_JOIN_BUDGET_MS,
|
|
24259
|
+
usagePercentage: input.usagePercentage,
|
|
24260
|
+
run: input.joinedRun,
|
|
24261
|
+
failures: input.failures ?? {
|
|
24262
|
+
count: 0,
|
|
24263
|
+
lastError: null,
|
|
24264
|
+
lastFailureAt: null,
|
|
24265
|
+
since: null
|
|
24266
|
+
},
|
|
24267
|
+
now: input.now
|
|
24268
|
+
});
|
|
24258
24269
|
}
|
|
24259
24270
|
function runCompartmentPhase(args) {
|
|
24260
24271
|
if (args.historianRunnable !== false && !args.compactionOff && args.canRunCompartments && !getActiveCompartmentRun(args.sessionId) && (args.sessionMeta.compartmentInProgress || args.contextUsage.percentage >= BLOCK_UNTIL_DONE_PERCENTAGE) && isHistorianDrainBudgetSpent({
|
|
@@ -24301,6 +24312,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24301
24312
|
let rebuiltHistoryThisPass = false;
|
|
24302
24313
|
let historianJoinTimedOut = false;
|
|
24303
24314
|
let historianJoinBudgetMs = null;
|
|
24315
|
+
let historianJoinedRun;
|
|
24304
24316
|
let chainedRecoveryRuns = 0;
|
|
24305
24317
|
const historianRunnable = args.historianRunnable !== false;
|
|
24306
24318
|
if (args.compactionOff) {
|
|
@@ -24318,6 +24330,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24318
24330
|
rebuiltHistoryThisPass,
|
|
24319
24331
|
historianJoinTimedOut,
|
|
24320
24332
|
historianJoinBudgetMs,
|
|
24333
|
+
historianJoinedRun,
|
|
24321
24334
|
chainedRecoveryRuns,
|
|
24322
24335
|
recoveryHistoryRemains: false
|
|
24323
24336
|
};
|
|
@@ -24373,6 +24386,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24373
24386
|
if (activeRun.inlineJoinTimedOutBudgetMs !== undefined && !activeRun.settled) {
|
|
24374
24387
|
historianJoinTimedOut = true;
|
|
24375
24388
|
historianJoinBudgetMs = activeRun.inlineJoinTimedOutBudgetMs;
|
|
24389
|
+
historianJoinedRun = activeRun;
|
|
24376
24390
|
sessionLog2(args.sessionId, "transform: compartment inline join budget already exhausted for this run — not waiting again");
|
|
24377
24391
|
return "timed_out";
|
|
24378
24392
|
}
|
|
@@ -24393,6 +24407,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24393
24407
|
if (result === "timeout") {
|
|
24394
24408
|
activeRun.inlineJoinTimedOutBudgetMs = join.budgetMs;
|
|
24395
24409
|
historianJoinTimedOut = true;
|
|
24410
|
+
historianJoinedRun = activeRun;
|
|
24396
24411
|
sessionLog2(args.sessionId, `transform: compartment await timed out after ${timeoutMs}ms — proceeding without waiting`);
|
|
24397
24412
|
return "timed_out";
|
|
24398
24413
|
}
|
|
@@ -24630,6 +24645,7 @@ async function runCompartmentPhaseImpl(args) {
|
|
|
24630
24645
|
rebuiltHistoryThisPass,
|
|
24631
24646
|
historianJoinTimedOut,
|
|
24632
24647
|
historianJoinBudgetMs,
|
|
24648
|
+
historianJoinedRun,
|
|
24633
24649
|
chainedRecoveryRuns,
|
|
24634
24650
|
recoveryHistoryRemains
|
|
24635
24651
|
};
|
|
@@ -25088,9 +25104,17 @@ function createTransform(deps) {
|
|
|
25088
25104
|
deps.liveModelBySession.set(sessionId, currentOutgoingModel);
|
|
25089
25105
|
const outgoingModelKey = resolveModelKey(currentOutgoingModel.providerID, currentOutgoingModel.modelID);
|
|
25090
25106
|
const lastUsageModelKey = persistedUsageBeforeResets?.lastObservedModelKey ?? null;
|
|
25091
|
-
|
|
25092
|
-
|
|
25093
|
-
|
|
25107
|
+
const modelChangedSinceUsage = lastUsageModelKey != null && outgoingModelKey != null && piModelRefToCanonical(lastUsageModelKey) !== piModelRefToCanonical(outgoingModelKey);
|
|
25108
|
+
const storedOverflow = getOverflowState(db, sessionId);
|
|
25109
|
+
const detectedLimitForOtherModel = outgoingModelKey != null && storedOverflow.detectedContextLimit > 0 && storedOverflow.detectedContextLimitModelKey !== null && storedOverflow.detectedContextLimitModelKey !== piModelRefToCanonical(outgoingModelKey);
|
|
25110
|
+
if (detectedLimitForOtherModel && !modelChangedSinceUsage) {
|
|
25111
|
+
sessionLog2(sessionId, `transform: clearing detected limit ${storedOverflow.detectedContextLimit} and overflow recovery recorded for ${storedOverflow.detectedContextLimitModelKey}; outgoing model is ${outgoingModelKey}`);
|
|
25112
|
+
clearDetectedContextLimit(db, sessionId);
|
|
25113
|
+
clearEmergencyRecovery(db, sessionId);
|
|
25114
|
+
forgetHistoryBoundaryRecovery(sessionId);
|
|
25115
|
+
}
|
|
25116
|
+
if (modelChangedSinceUsage) {
|
|
25117
|
+
const preserveOutgoingOverflow = storedOverflow.detectedContextLimit > 0 && storedOverflow.detectedContextLimitModelKey !== null && !detectedLimitForOtherModel;
|
|
25094
25118
|
dropSlot(sessionId, "model-change");
|
|
25095
25119
|
sessionLog2(sessionId, `transform: model change since last usage (${lastUsageModelKey} -> ${outgoingModelKey}), clearing stale per-model state`);
|
|
25096
25120
|
updateSessionMeta(db, sessionId, {
|
|
@@ -25104,7 +25128,7 @@ function createTransform(deps) {
|
|
|
25104
25128
|
clearPersistedReasoningWatermark(db, sessionId);
|
|
25105
25129
|
clearEmergencyDropSample(db, sessionId);
|
|
25106
25130
|
if (preserveOutgoingOverflow) {
|
|
25107
|
-
sessionLog2(sessionId, `transform: preserving detected limit ${
|
|
25131
|
+
sessionLog2(sessionId, `transform: preserving detected limit ${storedOverflow.detectedContextLimit} and overflow recovery for outgoing model ${outgoingModelKey}`);
|
|
25108
25132
|
} else {
|
|
25109
25133
|
clearDetectedContextLimit(db, sessionId);
|
|
25110
25134
|
clearEmergencyRecovery(db, sessionId);
|
|
@@ -26394,10 +26418,12 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
26394
26418
|
budgetMs: compartmentPhase.historianJoinBudgetMs,
|
|
26395
26419
|
finalWireEstimate,
|
|
26396
26420
|
contextLimitTokens: boundaryContextLimit,
|
|
26397
|
-
|
|
26421
|
+
joinedRun: compartmentPhase.historianJoinedRun,
|
|
26422
|
+
failures: readHistorianFailureStreak(db, sessionId),
|
|
26423
|
+
usagePercentage: contextUsage.percentage
|
|
26398
26424
|
}) : null;
|
|
26399
26425
|
if (timedOutHistorianFailure) {
|
|
26400
|
-
sessionLog2(sessionId, `transform: ${timedOutHistorianFailure}; finalEstimate=${finalWireEstimate?.tokens ?? "unavailable"} estimateTrusted=${finalWireEstimate?.trusted ?? false} contextLimit=${boundaryContextLimit} emergencyReclaimed=${postTransformResult.emergencyReclaimedTokens}`);
|
|
26426
|
+
sessionLog2(sessionId, `transform: historian join refusal: ${timedOutHistorianFailure}; finalEstimate=${finalWireEstimate?.tokens ?? "unavailable"} estimateTrusted=${finalWireEstimate?.trusted ?? false} contextLimit=${boundaryContextLimit} emergencyReclaimed=${postTransformResult.emergencyReclaimedTokens}`);
|
|
26401
26427
|
keepRecoveryArmed();
|
|
26402
26428
|
throw new EmergencyFailClosedError(timedOutHistorianFailure);
|
|
26403
26429
|
}
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
requestPendingMaterialization,
|
|
9
9
|
dropSlot
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-bev3zks1.js";
|
|
11
11
|
import {
|
|
12
12
|
executeContextRecomp
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-3600gm9z.js";
|
|
14
14
|
import {
|
|
15
15
|
renderUserFacingFailure,
|
|
16
16
|
userFacingFailureCode
|
|
@@ -140,8 +140,8 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
140
140
|
import("./store-reader-3eh1s1m8.js"),
|
|
141
141
|
import("./store-h20ny8b8.js"),
|
|
142
142
|
import("./read-session-chunk-70aam2c1.js"),
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
143
|
+
import("./render-22ebrmep.js"),
|
|
144
|
+
import("./search-archive-bqqf5p7f.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-3600gm9z.js";
|
|
62
62
|
import"./index-sd3egckz.js";
|
|
63
63
|
import {
|
|
64
64
|
hasTrustedAbsoluteWall,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
parameterDescriptionsFor,
|
|
144
144
|
MagicContextRpcServer,
|
|
145
145
|
applyHiddenSubagentTemperature
|
|
146
|
-
} from "./index-
|
|
146
|
+
} from "./index-wpcjxzrm.js";
|
|
147
147
|
import {
|
|
148
148
|
resolveOpenCodeDbPath,
|
|
149
149
|
openCodeDbPathExists,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
dropServedRecord,
|
|
196
196
|
registerLkgPersistence,
|
|
197
197
|
dropSlot
|
|
198
|
-
} from "./index-
|
|
198
|
+
} from "./index-bev3zks1.js";
|
|
199
199
|
import {
|
|
200
200
|
recordSessionProjectIdentity
|
|
201
201
|
} from "./index-qperbvjn.js";
|
|
@@ -317,13 +317,13 @@ import {
|
|
|
317
317
|
armBindingRecoverySafely,
|
|
318
318
|
collectForeignTextParts,
|
|
319
319
|
resetDegradedCacheCount2
|
|
320
|
-
} from "./index-
|
|
320
|
+
} from "./index-0r2jk2na.js";
|
|
321
321
|
import {
|
|
322
322
|
scheduleClearAndReindex
|
|
323
323
|
} from "./index-b6rdv8re.js";
|
|
324
324
|
import {
|
|
325
325
|
runManagedRecomp2
|
|
326
|
-
} from "./index-
|
|
326
|
+
} from "./index-x8e50d8f.js";
|
|
327
327
|
import {
|
|
328
328
|
isValidSemver,
|
|
329
329
|
compareSemverCore
|
|
@@ -331,11 +331,11 @@ import {
|
|
|
331
331
|
import"./index-fmsr7v69.js";
|
|
332
332
|
import {
|
|
333
333
|
runManagedWrapup2
|
|
334
|
-
} from "./index-
|
|
334
|
+
} from "./index-pdnan1e3.js";
|
|
335
335
|
import"./index-5gqszjq9.js";
|
|
336
336
|
import"./index-52x68mj4.js";
|
|
337
|
-
import"./index-
|
|
338
|
-
import"./index-
|
|
337
|
+
import"./index-zyanqxtc.js";
|
|
338
|
+
import"./index-1wsb0e8h.js";
|
|
339
339
|
import {
|
|
340
340
|
isDreamerRunnable,
|
|
341
341
|
isSmartNoteSurfaceAvailable,
|
|
@@ -8203,7 +8203,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8203
8203
|
// package.json
|
|
8204
8204
|
var package_default = {
|
|
8205
8205
|
name: "@cortexkit/opencode-magic-context",
|
|
8206
|
-
version: "0.49.
|
|
8206
|
+
version: "0.49.57",
|
|
8207
8207
|
type: "module",
|
|
8208
8208
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8209
8209
|
main: "dist/index.js",
|
|
@@ -12080,7 +12080,7 @@ async function setup(context) {
|
|
|
12080
12080
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12081
12081
|
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.`);
|
|
12082
12082
|
}
|
|
12083
|
-
const { registerContext } = await import("./context-
|
|
12083
|
+
const { registerContext } = await import("./context-a617pcqe.js");
|
|
12084
12084
|
setHarness2("opencode2");
|
|
12085
12085
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12086
12086
|
const duties = await registerContext(context);
|
|
@@ -12553,7 +12553,7 @@ var server = async (ctx) => {
|
|
|
12553
12553
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12554
12554
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12555
12555
|
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-gamjee2f.js"));
|
|
12556
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12556
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-nejydt3q.js"));
|
|
12557
12557
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12558
12558
|
toastDurationMs: 15000
|
|
12559
12559
|
});
|
|
@@ -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-2czwvyc9.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-bqqf5p7f.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-04ger9zt.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-x8e50d8f.js";
|
|
11
|
+
import"./index-3600gm9z.js";
|
|
12
12
|
import"./index-90z05d0p.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
14
|
import"./index-pdh4tdcq.js";
|
|
@@ -16,7 +16,7 @@ import"./index-2vsd5064.js";
|
|
|
16
16
|
import"./index-jjvbk92s.js";
|
|
17
17
|
import"./index-sx1sppd6.js";
|
|
18
18
|
import"./index-4dhv7mqz.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-bev3zks1.js";
|
|
20
20
|
import"./index-dhdv88e5.js";
|
|
21
21
|
import"./index-h62j8z2r.js";
|
|
22
22
|
import"./index-2amn2s73.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2,
|
|
3
3
|
renderSearchArchiveOffThread2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-1wsb0e8h.js";
|
|
5
|
+
import"./index-zyanqxtc.js";
|
|
6
6
|
import"./index-52x68mj4.js";
|
|
7
7
|
import"./index-29ff546v.js";
|
|
8
8
|
import"./index-sk6p6esd.js";
|
package/dist/{transform-postprocess-phase-mt4dcbhd.js → transform-postprocess-phase-nejydt3q.js}
RENAMED
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-0r2jk2na.js";
|
|
23
23
|
import"./index-b6rdv8re.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-3600gm9z.js";
|
|
25
25
|
import"./index-90z05d0p.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
27
|
import"./index-pdh4tdcq.js";
|
|
@@ -29,7 +29,7 @@ import"./index-2vsd5064.js";
|
|
|
29
29
|
import"./index-jjvbk92s.js";
|
|
30
30
|
import"./index-sx1sppd6.js";
|
|
31
31
|
import"./index-4dhv7mqz.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-bev3zks1.js";
|
|
33
33
|
import"./index-dhdv88e5.js";
|
|
34
34
|
import"./index-h62j8z2r.js";
|
|
35
35
|
import"./index-2amn2s73.js";
|