@cortexkit/opencode-magic-context 0.49.14 → 0.49.15
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-cpxqpkzv.js → context-0m46day0.js} +106 -8
- package/dist/features/magic-context/dreamer/verify.d.ts +22 -3
- package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +2 -2
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
- package/dist/{index-kf4epshg.js → index-1vc7jrkg.js} +1 -1
- package/dist/{index-5591fg8y.js → index-42vcjcwe.js} +15 -6
- package/dist/{index-tyckte5c.js → index-mc1cqza6.js} +2 -2
- package/dist/{index-t4q9zbbf.js → index-snp5wbge.js} +94 -7
- package/dist/{index-w900fbhd.js → index-ts1hjk1h.js} +1 -1
- package/dist/index.js +8 -8
- package/dist/{recomp-orchestrator-xqb9gwgm.js → recomp-orchestrator-nwzcfhx4.js} +2 -2
- package/dist/{transform-postprocess-phase-k5t63qm5.js → transform-postprocess-phase-ne3z1zmt.js} +2 -2
- package/dist/v2/{context-k4jrq71s.js → context-4qczzck7.js} +115 -8
- package/dist/v2/hidden-completion.d.ts +20 -1
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +19 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/{recomp-orchestrator-1j1nqrrr.js → recomp-orchestrator-5zhxtwha.js} +1 -1
- package/dist/v2/{server-fnqxt9j6.js → server-dd0tz6cn.js} +94 -7
- package/dist/v2/server.js +2 -2
- package/dist/v2/store-reader.d.ts +27 -1
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-hkv8apcc.js → wrapup-orchestrator-65pwye0d.js} +1 -1
- package/dist/{wrapup-orchestrator-kxqj4rwh.js → wrapup-orchestrator-28xzsj5q.js} +3 -3
- package/package.json +1 -1
|
@@ -15,6 +15,21 @@ export declare function hiddenToolLoop(identity: HiddenRunIdentity): boolean;
|
|
|
15
15
|
* is always running this plugin's carrier.
|
|
16
16
|
*/
|
|
17
17
|
export declare function hiddenAgentAllowedTools(agent: string | undefined): readonly string[] | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Why a hidden run ends when its plugin instance is disposed. OpenCode 2 disposes
|
|
20
|
+
* a plugin instance when it reloads the plugin (`/plugins` then ctrl+u, a
|
|
21
|
+
* rewritten config, a location reinitialising) and loads a fresh instance in the
|
|
22
|
+
* same process. The disposed instance cancels its in-flight hidden runs and the
|
|
23
|
+
* run's error carries this text; the instance that replaces it refuses any turn
|
|
24
|
+
* of such a child with the same text, so both sides of a reload name one cause.
|
|
25
|
+
*/
|
|
26
|
+
export declare const HIDDEN_RUN_DISPOSED_REASON = "the Magic Context plugin instance that started this hidden run was disposed (OpenCode reloaded the plugin), so the run was cancelled; the work is retried on a later run";
|
|
27
|
+
/** Record that `sessionID` belonged to a plugin instance that has been disposed. */
|
|
28
|
+
export declare function noteChildOfDisposedInstance(sessionID: string): void;
|
|
29
|
+
/** Whether `sessionID` is a hidden child whose plugin instance was disposed. */
|
|
30
|
+
export declare function isChildOfDisposedInstance(sessionID: string): boolean;
|
|
31
|
+
/** Clears the process-wide record, for tests. */
|
|
32
|
+
export declare function __resetDisposedChildrenForTests(): void;
|
|
18
33
|
/** One OpenCode 2 permission rule: the action is the tool id, the resource a pattern. */
|
|
19
34
|
export interface HiddenPermissionRule {
|
|
20
35
|
action: string;
|
|
@@ -121,6 +136,10 @@ export declare class HiddenChildHook {
|
|
|
121
136
|
* restart) arrives here unshaped: its user message is a bare run marker, and
|
|
122
137
|
* passing it on would send the marker to the model with whatever tools the
|
|
123
138
|
* user's own permissions allow.
|
|
139
|
+
*
|
|
140
|
+
* A child whose instance was disposed by a plugin reload is refused with that
|
|
141
|
+
* reason, whatever agent the host reports for it: its instance has cancelled
|
|
142
|
+
* the run, and this instance has no record of the prompt it was sent.
|
|
124
143
|
*/
|
|
125
144
|
apply(draft: SessionContext): boolean;
|
|
126
145
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden-child.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/hidden-child.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,sBAAsB,EAEzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACH,uBAAuB,EACvB,KAAK,iBAAiB,EACzB,MAAM,oDAAoD,CAAC;AAQ5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AACzD,eAAO,MAAM,mBAAmB,YAAgB,CAAC;AAkBjD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAQlE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAEnE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAIhG;AAED,yFAAyF;AACzF,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,oBAAoB,EA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GAAG,OAAO;CAyIxC"}
|
|
@@ -1220,6 +1220,9 @@ class V2StoreReaderPool {
|
|
|
1220
1220
|
capacity;
|
|
1221
1221
|
connections = new Map;
|
|
1222
1222
|
closed = false;
|
|
1223
|
+
closing = false;
|
|
1224
|
+
holds = 0;
|
|
1225
|
+
idleWaiters = new Set;
|
|
1223
1226
|
constructor(capacity = 4) {
|
|
1224
1227
|
this.capacity = capacity;
|
|
1225
1228
|
if (!Number.isSafeInteger(capacity) || capacity < 1)
|
|
@@ -1264,13 +1267,63 @@ class V2StoreReaderPool {
|
|
|
1264
1267
|
if (connection.leases === 0)
|
|
1265
1268
|
closeConnection(connection);
|
|
1266
1269
|
}
|
|
1270
|
+
hold() {
|
|
1271
|
+
if (this.closed || this.closing)
|
|
1272
|
+
throw new Error("Store reader pool is closed");
|
|
1273
|
+
this.holds++;
|
|
1274
|
+
let released = false;
|
|
1275
|
+
return () => {
|
|
1276
|
+
if (released)
|
|
1277
|
+
return;
|
|
1278
|
+
released = true;
|
|
1279
|
+
this.holds--;
|
|
1280
|
+
if (this.holds === 0 && this.closing)
|
|
1281
|
+
this.finishClose();
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
isClosed() {
|
|
1285
|
+
return this.closed;
|
|
1286
|
+
}
|
|
1287
|
+
holdCount() {
|
|
1288
|
+
return this.holds;
|
|
1289
|
+
}
|
|
1267
1290
|
close() {
|
|
1291
|
+
if (this.closed || this.closing)
|
|
1292
|
+
return;
|
|
1293
|
+
this.closing = true;
|
|
1294
|
+
if (this.holds === 0)
|
|
1295
|
+
this.finishClose();
|
|
1296
|
+
}
|
|
1297
|
+
async closeWhenIdle(timeoutMs) {
|
|
1298
|
+
this.close();
|
|
1299
|
+
if (this.closed)
|
|
1300
|
+
return true;
|
|
1301
|
+
let timer;
|
|
1302
|
+
let waiter;
|
|
1303
|
+
try {
|
|
1304
|
+
await new Promise((resolve) => {
|
|
1305
|
+
waiter = resolve;
|
|
1306
|
+
this.idleWaiters.add(resolve);
|
|
1307
|
+
timer = setTimeout(resolve, Math.max(0, timeoutMs));
|
|
1308
|
+
});
|
|
1309
|
+
} finally {
|
|
1310
|
+
if (timer)
|
|
1311
|
+
clearTimeout(timer);
|
|
1312
|
+
if (waiter)
|
|
1313
|
+
this.idleWaiters.delete(waiter);
|
|
1314
|
+
}
|
|
1315
|
+
return this.closed;
|
|
1316
|
+
}
|
|
1317
|
+
finishClose() {
|
|
1268
1318
|
if (this.closed)
|
|
1269
1319
|
return;
|
|
1270
1320
|
this.closed = true;
|
|
1271
1321
|
for (const connection of this.connections.values())
|
|
1272
1322
|
this.retire(connection);
|
|
1273
1323
|
this.connections.clear();
|
|
1324
|
+
for (const resolve of this.idleWaiters)
|
|
1325
|
+
resolve();
|
|
1326
|
+
this.idleWaiters.clear();
|
|
1274
1327
|
}
|
|
1275
1328
|
}
|
|
1276
1329
|
|
|
@@ -6557,6 +6610,28 @@ function hiddenToolLoop(identity) {
|
|
|
6557
6610
|
function hiddenAgentAllowedTools(agent) {
|
|
6558
6611
|
return agent !== undefined && Object.hasOwn(AGENT_TOOLS, agent) ? AGENT_TOOLS[agent] : undefined;
|
|
6559
6612
|
}
|
|
6613
|
+
var HIDDEN_RUN_DISPOSED_REASON = "the Magic Context plugin instance that started this hidden run was disposed (OpenCode reloaded the plugin), so the run was cancelled; the work is retried on a later run";
|
|
6614
|
+
var DISPOSED_CHILDREN_KEY = Symbol.for("@cortexkit/magic-context/v2/disposed-hidden-children");
|
|
6615
|
+
var DISPOSED_CHILDREN_LIMIT = 512;
|
|
6616
|
+
function disposedChildren() {
|
|
6617
|
+
const store = globalThis;
|
|
6618
|
+
store[DISPOSED_CHILDREN_KEY] ??= new Set;
|
|
6619
|
+
return store[DISPOSED_CHILDREN_KEY];
|
|
6620
|
+
}
|
|
6621
|
+
function noteChildOfDisposedInstance(sessionID) {
|
|
6622
|
+
const children = disposedChildren();
|
|
6623
|
+
children.delete(sessionID);
|
|
6624
|
+
children.add(sessionID);
|
|
6625
|
+
while (children.size > DISPOSED_CHILDREN_LIMIT) {
|
|
6626
|
+
const oldest = children.values().next().value;
|
|
6627
|
+
if (oldest === undefined)
|
|
6628
|
+
break;
|
|
6629
|
+
children.delete(oldest);
|
|
6630
|
+
}
|
|
6631
|
+
}
|
|
6632
|
+
function isChildOfDisposedInstance(sessionID) {
|
|
6633
|
+
return disposedChildren().has(sessionID);
|
|
6634
|
+
}
|
|
6560
6635
|
function hiddenChildPermissions(agent, providerID) {
|
|
6561
6636
|
const tools = AGENT_TOOLS[agent] ?? [];
|
|
6562
6637
|
const visible = tools.length === 0 && needsBlockedRead(agent, providerID) ? ["read"] : tools;
|
|
@@ -6588,6 +6663,8 @@ async function registerHiddenChildAgents(agent) {
|
|
|
6588
6663
|
}
|
|
6589
6664
|
function hiddenToolCallRefusal(call, hook) {
|
|
6590
6665
|
const owned = hook.owns(call.sessionID);
|
|
6666
|
+
if (!owned && isChildOfDisposedInstance(call.sessionID))
|
|
6667
|
+
return `Magic Context hidden child ${call.sessionID} refused: ${HIDDEN_RUN_DISPOSED_REASON}; ${call.tool} refused`;
|
|
6591
6668
|
const agent = owned ? hook.agentFor(call.sessionID) ?? call.agent : call.agent;
|
|
6592
6669
|
const allowed = hiddenAgentAllowedTools(agent);
|
|
6593
6670
|
if (allowed === undefined) {
|
|
@@ -6717,6 +6794,9 @@ class HiddenChildHook {
|
|
|
6717
6794
|
}
|
|
6718
6795
|
compactionSummary(sessionID, agent) {
|
|
6719
6796
|
if (!this.owns(sessionID)) {
|
|
6797
|
+
if (isChildOfDisposedInstance(sessionID)) {
|
|
6798
|
+
this.refuse(`Refusing to compact a Magic Context hidden child of a disposed plugin instance: ${HIDDEN_RUN_DISPOSED_REASON}`, { sessionID, messages: [] }, undefined, undefined, "hidden_instance_disposed");
|
|
6799
|
+
}
|
|
6720
6800
|
if (hiddenAgentAllowedTools(agent) !== undefined) {
|
|
6721
6801
|
this.refuse("Refusing to compact a Magic Context hidden-agent session this instance did not register", { sessionID, messages: [] }, undefined);
|
|
6722
6802
|
}
|
|
@@ -6731,7 +6811,7 @@ class HiddenChildHook {
|
|
|
6731
6811
|
}
|
|
6732
6812
|
return marker;
|
|
6733
6813
|
}
|
|
6734
|
-
refuse(reason, draft, raw, inFlight) {
|
|
6814
|
+
refuse(reason, draft, raw, inFlight, code = "hidden_prompt_unrecognized") {
|
|
6735
6815
|
const registered = [...this.attempts.values()].filter((attempt) => attempt.childSessionId === draft.sessionID && attempt.marker).map((attempt) => {
|
|
6736
6816
|
const marker = attempt.marker;
|
|
6737
6817
|
return {
|
|
@@ -6752,7 +6832,7 @@ class HiddenChildHook {
|
|
|
6752
6832
|
active: this.active.has(draft.sessionID),
|
|
6753
6833
|
...inFlight === undefined ? {} : { in_flight: inFlight }
|
|
6754
6834
|
})}`);
|
|
6755
|
-
const refusal = new HiddenCompletionRefusal(
|
|
6835
|
+
const refusal = new HiddenCompletionRefusal(code, reason, true);
|
|
6756
6836
|
for (const attempt of this.attempts.values()) {
|
|
6757
6837
|
if (attempt.childSessionId === draft.sessionID)
|
|
6758
6838
|
attempt.refusal = refusal;
|
|
@@ -6767,6 +6847,9 @@ class HiddenChildHook {
|
|
|
6767
6847
|
}
|
|
6768
6848
|
apply(draft) {
|
|
6769
6849
|
if (!this.owns(draft.sessionID)) {
|
|
6850
|
+
if (isChildOfDisposedInstance(draft.sessionID)) {
|
|
6851
|
+
this.refuse(`Refusing a turn of a Magic Context hidden child of a disposed plugin instance: ${HIDDEN_RUN_DISPOSED_REASON}`, draft, newestUserText(draft), undefined, "hidden_instance_disposed");
|
|
6852
|
+
}
|
|
6770
6853
|
if (hiddenAgentAllowedTools(draft.agent) !== undefined) {
|
|
6771
6854
|
this.refuse("Refusing a Magic Context hidden-agent turn this instance did not register", draft, newestUserText(draft));
|
|
6772
6855
|
}
|
|
@@ -8455,6 +8538,7 @@ Examples:
|
|
|
8455
8538
|
- Every displayed raw message ordinal MUST appear in exactly one compartment. Gaps between compartments are invalid. When a displayed block is pure tool-only noise with no narrative text, do NOT skip it — extend the preceding compartment's \`end\` to absorb the range, or fold it into the current compartment if it's part of an ongoing work unit. Never create a dedicated compartment just to cover a tool-only run.
|
|
8456
8539
|
- If a chunk is entirely tool-only with no narrative text (a long autonomous coding stretch), produce a single compartment whose narrative is derived from what the tools collectively accomplished.
|
|
8457
8540
|
- If the chunk ends mid-topic, leave the unfinished portion out and report its first message index in \`<unprocessed_from>\`.
|
|
8541
|
+
- If every message in the chunk is covered by a compartment, nothing is unprocessed: set \`<unprocessed_from>\` to the chunk's last message index + 1. Never write \`0\` or the last covered index in that case.
|
|
8458
8542
|
|
|
8459
8543
|
---
|
|
8460
8544
|
|
|
@@ -9633,16 +9717,19 @@ function validateParsedCompartments(compartments, chunkStart, chunkEnd, unproces
|
|
|
9633
9717
|
expectedStart = compartment.endMessage + 1;
|
|
9634
9718
|
}
|
|
9635
9719
|
if (unprocessedFrom !== null) {
|
|
9720
|
+
if (expectedStart <= chunkEnd) {
|
|
9721
|
+
if (unprocessedFrom !== expectedStart) {
|
|
9722
|
+
return `<unprocessed_from> ${unprocessedFrom} does not match next uncovered message ${expectedStart}`;
|
|
9723
|
+
}
|
|
9724
|
+
return null;
|
|
9725
|
+
}
|
|
9636
9726
|
if (unprocessedFrom === chunkEnd + 1) {
|
|
9637
9727
|
return null;
|
|
9638
9728
|
}
|
|
9639
9729
|
if (unprocessedFrom < chunkStart || unprocessedFrom > chunkEnd) {
|
|
9640
9730
|
return `<unprocessed_from> ${unprocessedFrom} is outside chunk ${chunkStart}-${chunkEnd}`;
|
|
9641
9731
|
}
|
|
9642
|
-
|
|
9643
|
-
return `<unprocessed_from> ${unprocessedFrom} does not match next uncovered message ${expectedStart}`;
|
|
9644
|
-
}
|
|
9645
|
-
return null;
|
|
9732
|
+
return `<unprocessed_from> ${unprocessedFrom} does not match completed chunk boundary ${chunkEnd + 1}`;
|
|
9646
9733
|
}
|
|
9647
9734
|
if (expectedStart <= chunkEnd) {
|
|
9648
9735
|
return `output left uncovered messages ${expectedStart}-${chunkEnd} without <unprocessed_from>`;
|
|
@@ -19123,4 +19210,4 @@ ${failure}`;
|
|
|
19123
19210
|
}
|
|
19124
19211
|
}
|
|
19125
19212
|
|
|
19126
|
-
export { historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, COMPARTMENT_LEASE_RENEWAL_MS, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getUncoveredCompartmentEndsThrough, providerResponseFailed, isSuccessfulProviderCompletion, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, gaDatabasePath, RAW_MESSAGE_TYPES, V2StoreReaderPool, V2StoreReader, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, 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, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, queueMemoryMutation, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, readCoordinateGeneration, rebaseSessionCoordinatesAsync, HiddenCompletionRefusal, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, prepareCompactionMarkerCandidates, removeMcOwnedCompactionMarkers, getCompartmentEvents, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, DreamerProviderOutputFailureError, withDreamerModelCooldown, providerOutputFailureFromInvalidManifest, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, failedInvocationStatus, sumTokensFromChildMessages, recordChildInvocation, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, teardownChildSession, runTokenLog, formatRunTokenLog, createChildSessionWithFence, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, hasCompleteCachedM0M1, injectM0M1, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, deriveProtectedTailTokenTarget, selectPerRunCap, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, noteTransformPassForExactOrdinalReads, runCompartmentAgent, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, isRecompFailure2, isRecompSkip2, extractRecompReason2, setRecompStarting2, setRecompNote2, setRecompTerminal2, buildRecompDeps2, runManagedRecomp2 };
|
|
19213
|
+
export { historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, COMPARTMENT_LEASE_RENEWAL_MS, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getUncoveredCompartmentEndsThrough, providerResponseFailed, isSuccessfulProviderCompletion, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, gaDatabasePath, RAW_MESSAGE_TYPES, V2StoreReaderPool, V2StoreReader, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, 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, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, queueMemoryMutation, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, readCoordinateGeneration, rebaseSessionCoordinatesAsync, HiddenCompletionRefusal, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, prepareCompactionMarkerCandidates, removeMcOwnedCompactionMarkers, getCompartmentEvents, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, DreamerProviderOutputFailureError, withDreamerModelCooldown, providerOutputFailureFromInvalidManifest, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, failedInvocationStatus, sumTokensFromChildMessages, recordChildInvocation, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, teardownChildSession, runTokenLog, formatRunTokenLog, createChildSessionWithFence, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, hasCompleteCachedM0M1, injectM0M1, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, deriveProtectedTailTokenTarget, selectPerRunCap, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, noteTransformPassForExactOrdinalReads, runCompartmentAgent, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, isRecompFailure2, isRecompSkip2, extractRecompReason2, setRecompStarting2, setRecompNote2, setRecompTerminal2, buildRecompDeps2, runManagedRecomp2 };
|
package/dist/v2/server.js
CHANGED
|
@@ -7874,7 +7874,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7874
7874
|
// package.json
|
|
7875
7875
|
var package_default = {
|
|
7876
7876
|
name: "@cortexkit/opencode-magic-context",
|
|
7877
|
-
version: "0.49.
|
|
7877
|
+
version: "0.49.15",
|
|
7878
7878
|
type: "module",
|
|
7879
7879
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7880
7880
|
main: "dist/index.js",
|
|
@@ -8195,7 +8195,7 @@ async function setup(context) {
|
|
|
8195
8195
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8196
8196
|
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.`);
|
|
8197
8197
|
}
|
|
8198
|
-
const { registerContext } = await import("./context-
|
|
8198
|
+
const { registerContext } = await import("./context-4qczzck7.js");
|
|
8199
8199
|
setHarness2("opencode2");
|
|
8200
8200
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8201
8201
|
const duties = await registerContext(context);
|
|
@@ -110,17 +110,43 @@ interface ReaderConnection {
|
|
|
110
110
|
}
|
|
111
111
|
/** Boot-scoped read-only handles. Each lease still closes in the caller's finally block.
|
|
112
112
|
* Statements, not results, are cached: WAL updates are visible on the next query.
|
|
113
|
-
* A replaced/missing file cannot reuse the old inode, and disposal releases all handles.
|
|
113
|
+
* A replaced/missing file cannot reuse the old inode, and disposal releases all handles.
|
|
114
|
+
*
|
|
115
|
+
* Work that opens readers over a long time (a hidden run polls the store for its whole
|
|
116
|
+
* lifetime) takes a `hold()`. Closing the pool while a hold is outstanding only marks it
|
|
117
|
+
* closing: readers can still be opened, and the pool closes when the last hold is
|
|
118
|
+
* released. Without that, disposing the plugin instance mid-run made the run's next poll
|
|
119
|
+
* fail with "Store reader pool is closed". */
|
|
114
120
|
export declare class V2StoreReaderPool {
|
|
115
121
|
private readonly capacity;
|
|
116
122
|
private readonly connections;
|
|
117
123
|
private closed;
|
|
124
|
+
private closing;
|
|
125
|
+
private holds;
|
|
126
|
+
private readonly idleWaiters;
|
|
118
127
|
constructor(capacity?: number);
|
|
119
128
|
open(path: string): V2StoreReader;
|
|
120
129
|
acquire(path: string): ReaderConnection;
|
|
121
130
|
release(connection: ReaderConnection): void;
|
|
122
131
|
private retire;
|
|
132
|
+
/**
|
|
133
|
+
* Keep the pool open until the returned release is called. Refused once the pool is
|
|
134
|
+
* closing or closed, so a close always finishes once the existing holders are done.
|
|
135
|
+
*/
|
|
136
|
+
hold(): () => void;
|
|
137
|
+
/** True once every handle is closed and no further reader can be opened. */
|
|
138
|
+
isClosed(): boolean;
|
|
139
|
+
/** Number of outstanding holds. */
|
|
140
|
+
holdCount(): number;
|
|
141
|
+
/** Close now when nothing holds the pool; otherwise close after the last hold is released. */
|
|
123
142
|
close(): void;
|
|
143
|
+
/**
|
|
144
|
+
* `close()`, then wait at most `timeoutMs` for the pool to actually close. Resolves
|
|
145
|
+
* true when it closed within the wait. On false the pool is still closing and will
|
|
146
|
+
* close when its last hold is released; the caller is not kept waiting for that.
|
|
147
|
+
*/
|
|
148
|
+
closeWhenIdle(timeoutMs: number): Promise<boolean>;
|
|
149
|
+
private finishClose;
|
|
124
150
|
}
|
|
125
151
|
/** Opens an existing store read-only; missing/corrupt stores propagate errors, never an empty history. */
|
|
126
152
|
export declare class V2StoreReader {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-reader.d.ts","sourceRoot":"","sources":["../../src/v2/store-reader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAOvF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,yFAAyF;AACzF,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,MAAM,CAAC,UAAwB,GACrC,MAAM,CAER;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,SAAW,EAClB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACrC,MAAM,CAER;AAGD,MAAM,MAAM,WAAW,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,GACnB,MAAM,GACN,WAAW,G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.js";
|
|
8
8
|
import"./index-thvnpfsv.js";
|
package/package.json
CHANGED