@cortexkit/opencode-magic-context 0.49.105 → 0.49.106
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-wtnrsjkp.js → context-ywdwfzg5.js} +10 -7
- package/dist/hooks/magic-context/hook.d.ts +1 -0
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-persist.d.ts +1 -0
- package/dist/hooks/magic-context/lkg-persist.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +7 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +2 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-ff1hqh4a.js → index-20e7w8v8.js} +3 -3
- package/dist/{index-8vv7axxg.js → index-3p08zzfq.js} +2 -2
- package/dist/{index-edafv9d7.js → index-5phmpcme.js} +2 -2
- package/dist/{index-mg6cwqw2.js → index-e4szqthq.js} +90 -21
- package/dist/{index-7z5cvfpg.js → index-e7awy9eb.js} +1 -1
- package/dist/{index-1j4q0bd6.js → index-sfgz2h7y.js} +2 -2
- package/dist/{index-9m2b5mwf.js → index-xa8jgw6w.js} +1 -1
- package/dist/{index-xzs1fxzz.js → index-ze1t940p.js} +66 -23
- package/dist/index.js +11 -11
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-zagjzbz5.js → recomp-orchestrator-7sf94073.js} +3 -3
- package/dist/{render-vwp72qd0.js → render-93qzv0vk.js} +1 -1
- package/dist/{search-archive-6tr0gcf7.js → search-archive-dv483a5c.js} +2 -2
- package/dist/{transform-postprocess-phase-v3p3q2gf.js → transform-postprocess-phase-vd9rckyd.js} +3 -3
- package/dist/v2/{context-fbdac7qt.js → context-6g9j3tq9.js} +91 -19
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-1ech6k2n.js → recomp-orchestrator-j84xfa80.js} +2 -2
- package/dist/v2/{render-pfe3smhx.js → render-tzs5r2pg.js} +1 -1
- package/dist/v2/{search-archive-r8krrz47.js → search-archive-31dpm5zs.js} +2 -2
- package/dist/v2/{server-jtd5vq5e.js → server-af25mmb6.js} +1 -1
- package/dist/v2/{server-cpb7b1f9.js → server-ggs7sxp6.js} +2 -2
- package/dist/v2/{server-7pxjk184.js → server-jqk6g663.js} +66 -23
- package/dist/v2/{server-9t4yjj20.js → server-v60f6dk3.js} +1 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{v2-archive-reader-0xysfgxh.js → v2-archive-reader-7vrma2dm.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-8d4ak3x3.js → wrapup-orchestrator-m1ymvccg.js} +2 -2
- package/dist/{v2-archive-reader-fac1zmhj.js → v2-archive-reader-aqck4zea.js} +1 -1
- package/dist/{wrapup-orchestrator-wz10b94c.js → wrapup-orchestrator-k7azmnym.js} +4 -4
- package/package.json +1 -1
|
@@ -140,8 +140,8 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
140
140
|
import("./store-reader-tb0f9621.js"),
|
|
141
141
|
import("./store-9rsrj5pt.js"),
|
|
142
142
|
import("./read-session-chunk-brqatg83.js"),
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
143
|
+
import("./render-tzs5r2pg.js"),
|
|
144
|
+
import("./search-archive-31dpm5zs.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -2085,30 +2085,18 @@ function slotFingerprint(slot, metadata = serializeSlotMetadata(slot)) {
|
|
|
2085
2085
|
].join(`
|
|
2086
2086
|
`)).digest("hex");
|
|
2087
2087
|
}
|
|
2088
|
-
function persistLkgSlot(db, sessionId, slot, publishMetadata) {
|
|
2088
|
+
function persistLkgSlot(db, sessionId, slot, publishMetadata, onlyIfNewer) {
|
|
2089
2089
|
const metadata = serializeSlotMetadata(slot);
|
|
2090
2090
|
const fingerprint = slotFingerprint(slot, metadata);
|
|
2091
2091
|
if (!publishMetadata && persistedFingerprints.get(db)?.get(sessionId) === fingerprint) {
|
|
2092
2092
|
const durable = loadPersistedLkgSlot(db, sessionId);
|
|
2093
2093
|
if (durable && slotFingerprint(durable) === fingerprint)
|
|
2094
|
-
return
|
|
2094
|
+
return "committed";
|
|
2095
2095
|
}
|
|
2096
2096
|
const layout = layoutLkgPrefix(slot.jsonPrefix);
|
|
2097
2097
|
try {
|
|
2098
|
-
db.transaction(() => {
|
|
2099
|
-
const
|
|
2100
|
-
for (const row of db.prepare("SELECT chunk, hash FROM lkg_slot_chunks WHERE session_id = ?").all(sessionId)) {
|
|
2101
|
-
storedHashes.set(row.chunk, row.hash);
|
|
2102
|
-
}
|
|
2103
|
-
const upsertChunk = db.prepare(`INSERT INTO lkg_slot_chunks (session_id, chunk, hash, body) VALUES (?, ?, ?, ?)
|
|
2104
|
-
ON CONFLICT(session_id, chunk) DO UPDATE SET hash = excluded.hash, body = excluded.body`);
|
|
2105
|
-
for (let index = 0;index < layout.chunks.length; index += 1) {
|
|
2106
|
-
if (storedHashes.get(index) === layout.chunkHashes[index])
|
|
2107
|
-
continue;
|
|
2108
|
-
upsertChunk.run(sessionId, index, layout.chunkHashes[index], layout.chunks[index]);
|
|
2109
|
-
}
|
|
2110
|
-
db.prepare("DELETE FROM lkg_slot_chunks WHERE session_id = ? AND chunk >= ?").run(sessionId, layout.chunks.length);
|
|
2111
|
-
db.prepare(`INSERT INTO lkg_slots (
|
|
2098
|
+
const committed = db.transaction(() => {
|
|
2099
|
+
const writeSlotRow = () => db.prepare(`INSERT INTO lkg_slots (
|
|
2112
2100
|
session_id, json_prefix_chars, json_prefix_chunks, json_prefix_hash,
|
|
2113
2101
|
input_id_seq, input_content_digests, input_content_signatures,
|
|
2114
2102
|
last_input_message_id, model_key, provider_key,
|
|
@@ -2126,26 +2114,53 @@ function persistLkgSlot(db, sessionId, slot, publishMetadata) {
|
|
|
2126
2114
|
provider_key = excluded.provider_key,
|
|
2127
2115
|
captured_at = excluded.captured_at,
|
|
2128
2116
|
row_version = excluded.row_version,
|
|
2129
|
-
capture_sequence = excluded.capture_sequence`).run(sessionId, layout.chars, layout.chunks.length, layout.hash, metadata.inputIdSeq, metadata.inputContentDigests, metadata.inputContentSignatures, slot.lastInputMessageId, slot.modelKey, slot.providerKey, slot.capturedAt, slot.rowVersion ?? null, slot.captureSequence ?? null);
|
|
2117
|
+
capture_sequence = excluded.capture_sequence${onlyIfNewer ? " WHERE lkg_slots.captured_at < excluded.captured_at" : ""}`).run(sessionId, layout.chars, layout.chunks.length, layout.hash, metadata.inputIdSeq, metadata.inputContentDigests, metadata.inputContentSignatures, slot.lastInputMessageId, slot.modelKey, slot.providerKey, slot.capturedAt, slot.rowVersion ?? null, slot.captureSequence ?? null);
|
|
2118
|
+
if (onlyIfNewer && writeSlotRow().changes === 0)
|
|
2119
|
+
return false;
|
|
2120
|
+
const storedHashes = new Map;
|
|
2121
|
+
for (const row of db.prepare("SELECT chunk, hash FROM lkg_slot_chunks WHERE session_id = ?").all(sessionId)) {
|
|
2122
|
+
storedHashes.set(row.chunk, row.hash);
|
|
2123
|
+
}
|
|
2124
|
+
const upsertChunk = db.prepare(`INSERT INTO lkg_slot_chunks (session_id, chunk, hash, body) VALUES (?, ?, ?, ?)
|
|
2125
|
+
ON CONFLICT(session_id, chunk) DO UPDATE SET hash = excluded.hash, body = excluded.body`);
|
|
2126
|
+
for (let index = 0;index < layout.chunks.length; index += 1) {
|
|
2127
|
+
if (storedHashes.get(index) === layout.chunkHashes[index])
|
|
2128
|
+
continue;
|
|
2129
|
+
upsertChunk.run(sessionId, index, layout.chunkHashes[index], layout.chunks[index]);
|
|
2130
|
+
}
|
|
2131
|
+
db.prepare("DELETE FROM lkg_slot_chunks WHERE session_id = ? AND chunk >= ?").run(sessionId, layout.chunks.length);
|
|
2132
|
+
if (!onlyIfNewer)
|
|
2133
|
+
writeSlotRow();
|
|
2130
2134
|
publishMetadata?.();
|
|
2135
|
+
return true;
|
|
2131
2136
|
}).immediate();
|
|
2137
|
+
if (!committed)
|
|
2138
|
+
return "skipped";
|
|
2132
2139
|
rememberFingerprint(db, sessionId, fingerprint);
|
|
2133
|
-
return
|
|
2140
|
+
return "committed";
|
|
2134
2141
|
} catch (error) {
|
|
2142
|
+
if (onlyIfNewer)
|
|
2143
|
+
throw error;
|
|
2135
2144
|
if (!publishMetadata)
|
|
2136
2145
|
sessionLog2(sessionId, "LKG snapshot persistence failed (in-memory slot retained):", error);
|
|
2137
|
-
return
|
|
2146
|
+
return "failed";
|
|
2138
2147
|
}
|
|
2139
2148
|
}
|
|
2140
2149
|
function saveLkgSlotToDb(db, sessionId, slot, publishMetadata, fence = {}) {
|
|
2141
|
-
const { isLoadDeadline, ...publicationFence } = fence;
|
|
2142
|
-
|
|
2150
|
+
const { isLoadDeadline, onlyIfNewer = false, ...publicationFence } = fence;
|
|
2151
|
+
let skipped = false;
|
|
2152
|
+
const committed = commitLkgWithRecoveryFence({
|
|
2143
2153
|
sessionId,
|
|
2144
2154
|
slot,
|
|
2145
2155
|
...publicationFence,
|
|
2146
2156
|
load: () => loadPersistedLkgSlot(db, sessionId, true, isLoadDeadline),
|
|
2147
|
-
commit: () =>
|
|
2157
|
+
commit: () => {
|
|
2158
|
+
const result = persistLkgSlot(db, sessionId, slot, publishMetadata, onlyIfNewer);
|
|
2159
|
+
skipped = result === "skipped";
|
|
2160
|
+
return result === "committed";
|
|
2161
|
+
}
|
|
2148
2162
|
});
|
|
2163
|
+
return committed || skipped;
|
|
2149
2164
|
}
|
|
2150
2165
|
function clearPersistedLkgSlot(db, sessionId) {
|
|
2151
2166
|
try {
|
|
@@ -3618,6 +3633,7 @@ class MagicContextLkgHeapHolder {
|
|
|
3618
3633
|
entries = new Map;
|
|
3619
3634
|
}
|
|
3620
3635
|
var lkgHeapHolder = new MagicContextLkgHeapHolder;
|
|
3636
|
+
var pendingCaptureGenerations = new Map;
|
|
3621
3637
|
var totalBytes = 0;
|
|
3622
3638
|
var hydrationPassBySession = new BoundedSessionMap(1000);
|
|
3623
3639
|
var hydrationAttemptBySession = new BoundedSessionMap(1000);
|
|
@@ -3626,6 +3642,28 @@ function beginLkgPass(sessionId) {
|
|
|
3626
3642
|
const next = (hydrationPassBySession.peek(sessionId) ?? 0) + 1;
|
|
3627
3643
|
hydrationPassBySession.set(sessionId, next);
|
|
3628
3644
|
}
|
|
3645
|
+
function advanceCaptureGeneration(sessionId) {
|
|
3646
|
+
const active = pendingCaptureGenerations.get(sessionId);
|
|
3647
|
+
if (active)
|
|
3648
|
+
active.generation++;
|
|
3649
|
+
}
|
|
3650
|
+
function holdLkgCaptureGeneration(sessionId) {
|
|
3651
|
+
let active = pendingCaptureGenerations.get(sessionId);
|
|
3652
|
+
if (!active) {
|
|
3653
|
+
active = { generation: 0, pending: 0 };
|
|
3654
|
+
pendingCaptureGenerations.set(sessionId, active);
|
|
3655
|
+
}
|
|
3656
|
+
const state = active;
|
|
3657
|
+
const { generation } = state;
|
|
3658
|
+
state.pending++;
|
|
3659
|
+
return {
|
|
3660
|
+
isCurrent: () => state.generation === generation && pendingCaptureGenerations.get(sessionId) === state,
|
|
3661
|
+
release: () => {
|
|
3662
|
+
if (--state.pending === 0 && pendingCaptureGenerations.get(sessionId) === state)
|
|
3663
|
+
pendingCaptureGenerations.delete(sessionId);
|
|
3664
|
+
}
|
|
3665
|
+
};
|
|
3666
|
+
}
|
|
3629
3667
|
function slotBytes(slot) {
|
|
3630
3668
|
const digestBytes = slot.inputContentDigests.reduce((total, digest) => total + 2 * digest.length, 0);
|
|
3631
3669
|
const ownershipBytes = slot.piOutputEntryIds?.reduce((total, id) => total + (id?.length ?? 0) * 2 + 8, 0) ?? 0;
|
|
@@ -3987,6 +4025,7 @@ function captureSlot(sessionId, slot) {
|
|
|
3987
4025
|
bytes
|
|
3988
4026
|
};
|
|
3989
4027
|
lkgHeapHolder.entries.set(sessionId, entry);
|
|
4028
|
+
advanceCaptureGeneration(sessionId);
|
|
3990
4029
|
totalBytes += bytes;
|
|
3991
4030
|
hydrationAttemptBySession.delete(sessionId);
|
|
3992
4031
|
noteLkgCapturedPrefix(sessionId);
|
|
@@ -4062,6 +4101,9 @@ function getInMemorySlot(sessionId) {
|
|
|
4062
4101
|
const entry = lkgHeapHolder.entries.get(sessionId);
|
|
4063
4102
|
return entry ? copySlotForRead(entry.slot) : undefined;
|
|
4064
4103
|
}
|
|
4104
|
+
function getInMemorySlotIdentity(sessionId) {
|
|
4105
|
+
return lkgHeapHolder.entries.get(sessionId);
|
|
4106
|
+
}
|
|
4065
4107
|
function getSlot(sessionId) {
|
|
4066
4108
|
const entry = lkgHeapHolder.entries.get(sessionId);
|
|
4067
4109
|
if (!entry) {
|
|
@@ -4085,6 +4127,7 @@ function forgetInMemorySlot(sessionId) {
|
|
|
4085
4127
|
}
|
|
4086
4128
|
}
|
|
4087
4129
|
function dropSlot(sessionId, _reason) {
|
|
4130
|
+
advanceCaptureGeneration(sessionId);
|
|
4088
4131
|
clearCapturedLkgMeasurement(sessionId);
|
|
4089
4132
|
forgetInMemorySlot(sessionId);
|
|
4090
4133
|
const backend = persistenceBackend;
|
|
@@ -5314,4 +5357,4 @@ var ERROR_CLASSES = new Set([
|
|
|
5314
5357
|
"permission_denied",
|
|
5315
5358
|
"unknown"
|
|
5316
5359
|
]);
|
|
5317
|
-
export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, readSummaryCoverage, markHistoryGapAfterCoverageChange, settleHistoryGapAfterReplacement, readHistoryGapMark, clearHistoryGapMark, claimHistoryGapCheck, recordHistoryGapAdmission, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getNewestCompartmentIds, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, cachedHistoryCoversLatestCompartment, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, hasExplicitRefreshRequest, clearPendingMaterialization, clearReclaimedMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, getRecentFailedHistorianRunTimes, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
|
|
5360
|
+
export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, readSummaryCoverage, markHistoryGapAfterCoverageChange, settleHistoryGapAfterReplacement, readHistoryGapMark, clearHistoryGapMark, claimHistoryGapCheck, recordHistoryGapAdmission, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getNewestCompartmentIds, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, cachedHistoryCoversLatestCompartment, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, hasExplicitRefreshRequest, clearPendingMaterialization, clearReclaimedMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, beginLkgPass, holdLkgCaptureGeneration, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getInMemorySlotIdentity, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, getRecentFailedHistorianRunTimes, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
|
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.106",
|
|
7882
7882
|
type: "module",
|
|
7883
7883
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7884
7884
|
main: "dist/index.js",
|
|
@@ -8189,7 +8189,7 @@ async function setup(context) {
|
|
|
8189
8189
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8190
8190
|
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.`);
|
|
8191
8191
|
}
|
|
8192
|
-
const { registerContext } = await import("./context-
|
|
8192
|
+
const { registerContext } = await import("./context-6g9j3tq9.js");
|
|
8193
8193
|
setHarness2("opencode2");
|
|
8194
8194
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8195
8195
|
const duties = await registerContext(context);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getCompartments,
|
|
12
12
|
getLastCompartmentEndMessage,
|
|
13
13
|
requestPendingMaterialization
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-jqk6g663.js";
|
|
15
15
|
import"./server-2amn2s73.js";
|
|
16
16
|
import"./server-d46xewmt.js";
|
|
17
17
|
import"./server-b5eg9ct6.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
registerActiveCompartmentRun,
|
|
65
65
|
setRecompStarting2,
|
|
66
66
|
setRecompTerminal2
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-v60f6dk3.js";
|
|
68
68
|
import"./server-qt1qqasc.js";
|
|
69
69
|
import"./server-pjvqyg6g.js";
|
|
70
70
|
import"./server-z77hman6.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runManagedWrapup2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
5
|
-
import"./index-
|
|
3
|
+
} from "./index-20e7w8v8.js";
|
|
4
|
+
import"./index-3p08zzfq.js";
|
|
5
|
+
import"./index-xa8jgw6w.js";
|
|
6
6
|
import"./index-qxzk5s30.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
8
|
import"./index-92p5yfpp.js";
|
|
@@ -10,7 +10,7 @@ import"./index-cxh5g5bt.js";
|
|
|
10
10
|
import"./index-srpghrje.js";
|
|
11
11
|
import"./index-as8bg7eh.js";
|
|
12
12
|
import"./index-6xg55350.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-ze1t940p.js";
|
|
14
14
|
import"./index-zj0ra8vs.js";
|
|
15
15
|
import"./index-p8nc9axh.js";
|
|
16
16
|
import"./index-2amn2s73.js";
|
package/package.json
CHANGED