@cortexkit/pi-magic-context 0.49.30 → 0.49.32
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/auto-search-worker.js +4 -4
- package/dist/chunk-embedding-write-worker.js +4 -4
- package/dist/{compartment-chunk-embedding-pkk5beqp.js → compartment-chunk-embedding-8c85ebce.js} +1 -1
- package/dist/{embedding-backfill-v83xh6e8.js → embedding-backfill-rwfmyvze.js} +3 -3
- package/dist/{index-kmk3xpf9.js → index-0gymvr5j.js} +47 -7
- package/dist/{index-n2ayqhbx.js → index-87xkw8xm.js} +7 -5
- package/dist/{index-4nny4r40.js → index-9xd7qveg.js} +1 -1
- package/dist/{index-g026ztby.js → index-c474g0gj.js} +4 -18
- package/dist/{index-gxjppvsh.js → index-d0n9yjnc.js} +35 -13
- package/dist/{index-5qh6z3sn.js → index-d5q1q700.js} +1 -1
- package/dist/{index-2pnhk4gc.js → index-drmr22ac.js} +115 -39
- package/dist/{index-0cq3g9y5.js → index-e59j3yq5.js} +414 -11
- package/dist/{index-0x1c054v.js → index-eqw9t2ty.js} +1 -1
- package/dist/index-nrzkqte4.js +18 -0
- package/dist/{index-0s14xaca.js → index-pb3ea2tq.js} +1 -1
- package/dist/{index-y5x5wt5t.js → index-r9y6tbbm.js} +6 -4
- package/dist/{index-74bc8ts8.js → index-wpazxe9x.js} +64 -3
- package/dist/{index-0jykn0dw.js → index-xn5yh0pn.js} +65 -2
- package/dist/index.js +722 -447
- package/dist/{message-index-bounded-vkqx693v.js → message-index-bounded-n30vk21s.js} +4 -4
- package/dist/migration-worker.js +6 -5
- package/dist/{project-embedding-registry-wwbhm9rf.js → project-embedding-registry-acqb6be4.js} +2 -2
- package/dist/raw-ordinal-warmup-worker.js +3 -3
- package/dist/{read-session-chunk-73kd0ans.js → read-session-chunk-ka6dhc77.js} +3 -3
- package/dist/{search-archive-ck531w6h.js → search-archive-msy2bczx.js} +4 -4
- package/dist/{search-tgv2rdac.js → search-qbxrnnjb.js} +9 -9
- package/dist/{storage-tags-9qaasrky.js → storage-tags-6409qq18.js} +2 -2
- package/dist/subagent-entry.js +12 -12
- package/dist/tag-snapshot-worker-pi.js +11 -8
- package/package.json +3 -1
|
@@ -24,12 +24,12 @@ var [
|
|
|
24
24
|
{ Database, registerSqliteDiagnosticSink },
|
|
25
25
|
{ log }
|
|
26
26
|
] = await Promise.all([
|
|
27
|
-
import("./embedding-backfill-
|
|
27
|
+
import("./embedding-backfill-rwfmyvze.js"),
|
|
28
28
|
import("./embedding-cache-7rp4gqzr.js"),
|
|
29
29
|
import("./storage-memory-0ndn65fm.js"),
|
|
30
|
-
import("./project-embedding-registry-
|
|
31
|
-
import("./search-
|
|
32
|
-
import("./compartment-chunk-embedding-
|
|
30
|
+
import("./project-embedding-registry-acqb6be4.js"),
|
|
31
|
+
import("./search-qbxrnnjb.js"),
|
|
32
|
+
import("./compartment-chunk-embedding-8c85ebce.js"),
|
|
33
33
|
import("./embedding-activity-ew6dshfd.js"),
|
|
34
34
|
import("./harness-9872e0ym.js"),
|
|
35
35
|
import("./sqlite-v89bj0yy.js"),
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
recordChunkEmbedBackoff2,
|
|
23
23
|
loadUnembeddedSessionChunkCandidates2,
|
|
24
24
|
countUnembeddedSessionCompartments2
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-0gymvr5j.js";
|
|
26
26
|
import {
|
|
27
27
|
recordSessionProjectIdentity,
|
|
28
28
|
acquireGitSweepLease,
|
|
@@ -33,9 +33,9 @@ import"./index-48twbev2.js";
|
|
|
33
33
|
import {
|
|
34
34
|
LATEST_SUPPORTED_VERSION,
|
|
35
35
|
enforceSchemaFence
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-r9y6tbbm.js";
|
|
37
|
+
import"./index-pb3ea2tq.js";
|
|
38
|
+
import"./index-c474g0gj.js";
|
|
39
39
|
import"./index-135e8hvg.js";
|
|
40
40
|
import"./index-23t8ryqw.js";
|
|
41
41
|
import"./index-hqw0rt9k.js";
|
package/dist/{compartment-chunk-embedding-pkk5beqp.js → compartment-chunk-embedding-8c85ebce.js}
RENAMED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
countSessionCompartmentEmbedCoverage2,
|
|
25
25
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
26
26
|
countUnembeddedSessionCompartmentsPolite2
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-0gymvr5j.js";
|
|
28
28
|
import"./index-gwxaz0z5.js";
|
|
29
29
|
import"./index-bvpar0bg.js";
|
|
30
30
|
import"./index-6981g1xv.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-9xd7qveg.js";
|
|
4
|
+
import"./index-xn5yh0pn.js";
|
|
5
5
|
import"./index-9p40dgkm.js";
|
|
6
6
|
import"./index-yhzhdp3m.js";
|
|
7
7
|
import"./index-4zemngt7.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-0gymvr5j.js";
|
|
9
9
|
import"./index-wqpjhx1p.js";
|
|
10
10
|
import"./index-gwxaz0z5.js";
|
|
11
11
|
import"./index-ccanzg8p.js";
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
messageFtsOrdinalRangeIsMapped2
|
|
16
16
|
} from "./index-bvpar0bg.js";
|
|
17
|
+
import {
|
|
18
|
+
isKnownAutocommit
|
|
19
|
+
} from "./index-nrzkqte4.js";
|
|
17
20
|
|
|
18
21
|
// ../plugin/src/features/magic-context/compartment-chunk-embedding.ts
|
|
19
22
|
import { createHash } from "node:crypto";
|
|
@@ -346,15 +349,15 @@ function readDatabaseRevision(db) {
|
|
|
346
349
|
if (!statements) {
|
|
347
350
|
statements = {
|
|
348
351
|
version: db.prepare("PRAGMA data_version"),
|
|
349
|
-
changes: db.prepare("SELECT total_changes() AS changes")
|
|
352
|
+
changes: db.prepare("SELECT total_changes() AS changes, (SELECT schema_version FROM pragma_schema_version) AS schemaVersion")
|
|
350
353
|
};
|
|
351
354
|
revisionStatements.set(db, statements);
|
|
352
355
|
}
|
|
353
356
|
const version = statements.version.get();
|
|
354
357
|
const changes = statements.changes.get();
|
|
355
|
-
if (typeof version?.data_version !== "number" || typeof changes?.changes !== "number")
|
|
358
|
+
if (typeof version?.data_version !== "number" || typeof changes?.changes !== "number" || typeof changes.schemaVersion !== "number")
|
|
356
359
|
return null;
|
|
357
|
-
return `${version.data_version}:${changes.changes}`;
|
|
360
|
+
return `${version.data_version}:${changes.changes}:${changes.schemaVersion}`;
|
|
358
361
|
}
|
|
359
362
|
function sameSearchScope(left, right) {
|
|
360
363
|
return left.rowCount === right.rowCount && left.maxRowId === right.maxRowId && left.rowIdSum === right.rowIdSum && (left.metadata === right.metadata || [...left.metadata].every(([id, value]) => right.metadata.get(id) === value));
|
|
@@ -1198,6 +1201,44 @@ function storedWindowsMatchRecordedSource(db, compartmentId, sourceKey, existing
|
|
|
1198
1201
|
}
|
|
1199
1202
|
var COVERAGE_MEMO_LIMIT = 2048;
|
|
1200
1203
|
var cachedCoverageWindows = new Map;
|
|
1204
|
+
var cachedCoverageSources = new WeakMap;
|
|
1205
|
+
function coverageSource(db, candidate, modelId, maxInputTokens) {
|
|
1206
|
+
const revision = isKnownAutocommit(db) ? readDatabaseRevision(db) : null;
|
|
1207
|
+
if (revision === null)
|
|
1208
|
+
cachedCoverageSources.delete(db);
|
|
1209
|
+
let cache = cachedCoverageSources.get(db);
|
|
1210
|
+
if (revision !== null && cache?.revision !== revision) {
|
|
1211
|
+
cache = { revision, entries: new Map };
|
|
1212
|
+
cachedCoverageSources.set(db, cache);
|
|
1213
|
+
}
|
|
1214
|
+
const key = JSON.stringify([
|
|
1215
|
+
candidate.id,
|
|
1216
|
+
candidate.sessionId,
|
|
1217
|
+
candidate.startMessage,
|
|
1218
|
+
candidate.endMessage,
|
|
1219
|
+
modelId,
|
|
1220
|
+
maxInputTokens,
|
|
1221
|
+
CHUNKER_VERSION,
|
|
1222
|
+
getTokenEstimatorFingerprint()
|
|
1223
|
+
]);
|
|
1224
|
+
const cached = cache?.entries.get(key);
|
|
1225
|
+
if (cached)
|
|
1226
|
+
return cached;
|
|
1227
|
+
const mappedText = buildCanonicalChunkTextFromFts2(db, candidate.sessionId, candidate.startMessage, candidate.endMessage);
|
|
1228
|
+
if (mappedText === null)
|
|
1229
|
+
return null;
|
|
1230
|
+
const canonicalText = mappedText || buildCompartmentSummaryFallbackText2(db, candidate.id);
|
|
1231
|
+
const source = {
|
|
1232
|
+
canonicalText,
|
|
1233
|
+
sourceKey: chunkWindowSourceKey2(canonicalText, candidate.startMessage, candidate.endMessage, maxInputTokens)
|
|
1234
|
+
};
|
|
1235
|
+
if (cache && readDatabaseRevision(db) === revision) {
|
|
1236
|
+
if (cache.entries.size >= 8192)
|
|
1237
|
+
cache.entries.delete(cache.entries.keys().next().value);
|
|
1238
|
+
cache.entries.set(key, source);
|
|
1239
|
+
}
|
|
1240
|
+
return source;
|
|
1241
|
+
}
|
|
1201
1242
|
function memoizedCoverageWindows(candidate, canonicalText, sourceKey, modelId, maxInputTokens) {
|
|
1202
1243
|
const key = JSON.stringify([candidate.id, sourceKey, modelId]);
|
|
1203
1244
|
const cached = cachedCoverageWindows.get(key);
|
|
@@ -1236,14 +1277,13 @@ function renumberOneBasedChunkWindows(db, candidate, projectPath, modelId, windo
|
|
|
1236
1277
|
}).immediate();
|
|
1237
1278
|
}
|
|
1238
1279
|
function classifyChunkCoverageDefect(db, projectPath, modelId, candidate, maxInputTokens) {
|
|
1239
|
-
const
|
|
1240
|
-
if (
|
|
1280
|
+
const source = coverageSource(db, candidate, modelId, maxInputTokens);
|
|
1281
|
+
if (source === null)
|
|
1241
1282
|
return { defect: "deferred", windows: [] };
|
|
1242
|
-
const canonicalText
|
|
1283
|
+
const { canonicalText, sourceKey } = source;
|
|
1243
1284
|
if (!canonicalText || chunkEmbedBackoffActive(db, candidate, projectPath, modelId, canonicalText)) {
|
|
1244
1285
|
return { defect: "deferred", windows: [] };
|
|
1245
1286
|
}
|
|
1246
|
-
const sourceKey = chunkWindowSourceKey2(canonicalText, candidate.startMessage, candidate.endMessage, maxInputTokens);
|
|
1247
1287
|
const existing = getExistingChunkHashes(db, candidate.id, modelId, projectPath);
|
|
1248
1288
|
if (storedWindowsMatchRecordedSource(db, candidate.id, sourceKey, existing)) {
|
|
1249
1289
|
return { defect: null, windows: [], sourceKey, confirmedByRecord: true };
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
TAG_SELECT_COLUMNS2,
|
|
24
24
|
getCandidateToolOwners2,
|
|
25
25
|
pickNearestPriorOwner2
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-eqw9t2ty.js";
|
|
27
27
|
import {
|
|
28
28
|
OMO_INTERNAL_INITIATOR_MARKER,
|
|
29
29
|
isSystemDirective,
|
|
@@ -45,9 +45,8 @@ import {
|
|
|
45
45
|
prepareCachedStatement2
|
|
46
46
|
} from "./index-2qtx0q6h.js";
|
|
47
47
|
import {
|
|
48
|
-
stableStringify
|
|
49
|
-
|
|
50
|
-
} from "./index-g026ztby.js";
|
|
48
|
+
stableStringify
|
|
49
|
+
} from "./index-c474g0gj.js";
|
|
51
50
|
import {
|
|
52
51
|
resolveOpenCodeDbPath,
|
|
53
52
|
assertOpenCodeStoreGeneration,
|
|
@@ -73,6 +72,9 @@ import {
|
|
|
73
72
|
readRawSeedTailFromDb2,
|
|
74
73
|
readRawSessionBoundaryEndpointsFromDb2
|
|
75
74
|
} from "./index-6981g1xv.js";
|
|
75
|
+
import {
|
|
76
|
+
closeQuietly
|
|
77
|
+
} from "./index-nrzkqte4.js";
|
|
76
78
|
import {
|
|
77
79
|
logSlowWriteTransaction
|
|
78
80
|
} from "./index-hqw0rt9k.js";
|
|
@@ -5220,4 +5222,4 @@ function readRawSessionSeedTail2(sessionId, boundaryId, onQuery) {
|
|
|
5220
5222
|
});
|
|
5221
5223
|
}
|
|
5222
5224
|
|
|
5223
|
-
export { detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, MAX_EXECUTE_THRESHOLD, escalationBands, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, computeProtectionWindow, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, isRustMarkerAdmissionFenced, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, EMERGENCY_DRAIN_FAILURE_BACKOFF_MS, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, recordOverflowDetected, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, COMPACTION_OFF_THINKING_FROZEN_PREFIX, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, setPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingPiMarker, setSessionWorkMetrics, getSessionWorkMetrics, resolveEpochFloorForPass, withReadOnlySessionDb, expandToolPart, askAnswerLines, retreatPastHostUnservedRows, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isFilePart, hasUserAnswerMetadata, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, TOKEN_BUDGET_TOOL_REFUSAL, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, droppedInputMarker, createDroppedInputGuard, isEditTool, applyEditMarkerToInput, modelAcceptsEmptyContent, isAnthropicFamilyRoute, variantChangeBustsProviderCache, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, isMarkerOnlyText, findLatestAssistantReasoningMutationExemptMessage, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opaqueThinkingCost, estimatePartImageTokens, SKELETON_REAL_INPUT_MAX_BYTES, toolInputStringBytes, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, resolveHistorianChunkStart2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
|
|
5225
|
+
export { detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, MAX_EXECUTE_THRESHOLD, escalationBands, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, rowWindowMass, computeProtectionWindow, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, isRustMarkerAdmissionFenced, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, EMERGENCY_DRAIN_FAILURE_BACKOFF_MS, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, recordOverflowDetected, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, COMPACTION_OFF_THINKING_FROZEN_PREFIX, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, setPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingPiMarker, setSessionWorkMetrics, getSessionWorkMetrics, resolveEpochFloorForPass, withReadOnlySessionDb, expandToolPart, askAnswerLines, retreatPastHostUnservedRows, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isFilePart, hasUserAnswerMetadata, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, TOKEN_BUDGET_TOOL_REFUSAL, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, droppedInputMarker, createDroppedInputGuard, isEditTool, applyEditMarkerToInput, modelAcceptsEmptyContent, isAnthropicFamilyRoute, variantChangeBustsProviderCache, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, isMarkerOnlyText, findLatestAssistantReasoningMutationExemptMessage, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opaqueThinkingCost, estimatePartImageTokens, SKELETON_REAL_INPUT_MAX_BYTES, toolInputStringBytes, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, resolveHistorianChunkStart2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionLog2
|
|
3
3
|
} from "./index-fgs78jyd.js";
|
|
4
|
+
import {
|
|
5
|
+
isKnownAutocommit
|
|
6
|
+
} from "./index-nrzkqte4.js";
|
|
4
7
|
|
|
5
8
|
// ../plugin/src/shared/stable-json.ts
|
|
6
9
|
function stableStringify(value, seen = new WeakSet) {
|
|
@@ -65,23 +68,6 @@ function jsonHashSink(prefix = "") {
|
|
|
65
68
|
return { write, digest: () => (hash >>> 0).toString(16).padStart(8, "0") };
|
|
66
69
|
}
|
|
67
70
|
|
|
68
|
-
// ../plugin/src/shared/sqlite-helpers.ts
|
|
69
|
-
function closeQuietly(db) {
|
|
70
|
-
if (!db)
|
|
71
|
-
return;
|
|
72
|
-
try {
|
|
73
|
-
db.close();
|
|
74
|
-
} catch {}
|
|
75
|
-
}
|
|
76
|
-
function isKnownAutocommit(db) {
|
|
77
|
-
const state = db;
|
|
78
|
-
try {
|
|
79
|
-
return state.inTransaction === false || state.isTransaction === false;
|
|
80
|
-
} catch {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
71
|
// ../plugin/src/features/magic-context/storage-schema-helpers.ts
|
|
86
72
|
var columnCaches = new WeakMap;
|
|
87
73
|
function readColumnNames(db, table) {
|
|
@@ -539,4 +525,4 @@ function deleteTagIdentityRevisions(db, sessionIds) {
|
|
|
539
525
|
}
|
|
540
526
|
}
|
|
541
527
|
|
|
542
|
-
export { stableStringify, jsonHashSink,
|
|
528
|
+
export { stableStringify, jsonHashSink, getTableColumnNames, ensureColumn, healAllNullColumns, observeTemporalDecisions, freezeTemporalDecisions, installV95PerfSchema, tagOrderConstraintIndex, tagRevisionIncarnationSql, tagRevisionCountSql, tagTombstoneOwnerRange, tagTombstoneOwnerKey, tagRevisionKey, tagIdentityRevisionKey, TAG_INSERT_CONFLICT_ROWS, installTagIdentityRevisionTrigger, deleteTagIdentityRevisions };
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
visitRawSessionMessages2,
|
|
67
67
|
readRawSessionMessageById2,
|
|
68
68
|
readSessionChunk2
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-87xkw8xm.js";
|
|
70
70
|
import {
|
|
71
71
|
isRecord,
|
|
72
72
|
providerVisibleMessage,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
getTagNumberByMessageId2,
|
|
81
81
|
getTagsBySession2,
|
|
82
82
|
getTagById2
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-eqw9t2ty.js";
|
|
84
84
|
import {
|
|
85
85
|
estimateTokens
|
|
86
86
|
} from "./index-my0dn413.js";
|
|
@@ -93,20 +93,19 @@ import {
|
|
|
93
93
|
} from "./index-2qtx0q6h.js";
|
|
94
94
|
import {
|
|
95
95
|
stableStringify,
|
|
96
|
-
closeQuietly,
|
|
97
96
|
getTableColumnNames,
|
|
98
97
|
tagTombstoneOwnerRange,
|
|
99
98
|
tagTombstoneOwnerKey,
|
|
100
99
|
tagRevisionKey,
|
|
101
100
|
tagIdentityRevisionKey,
|
|
102
101
|
deleteTagIdentityRevisions
|
|
103
|
-
} from "./index-
|
|
102
|
+
} from "./index-c474g0gj.js";
|
|
104
103
|
import {
|
|
105
104
|
piHarnessKindFromExecutable,
|
|
106
105
|
isPidAlive,
|
|
107
106
|
readProcessStartTime,
|
|
108
107
|
getErrorMessage
|
|
109
|
-
} from "./index-
|
|
108
|
+
} from "./index-r9y6tbbm.js";
|
|
110
109
|
import {
|
|
111
110
|
BoundedSessionMap,
|
|
112
111
|
resolveOpenCodeDbPath,
|
|
@@ -127,7 +126,7 @@ import {
|
|
|
127
126
|
} from "./index-bvpar0bg.js";
|
|
128
127
|
import {
|
|
129
128
|
deleteChunkEmbedBackoffForSession2
|
|
130
|
-
} from "./index-
|
|
129
|
+
} from "./index-0gymvr5j.js";
|
|
131
130
|
import {
|
|
132
131
|
invalidateAutoEmbedSession,
|
|
133
132
|
drainBackgroundBatches,
|
|
@@ -140,10 +139,10 @@ import {
|
|
|
140
139
|
unregisterProjectEmbedding2,
|
|
141
140
|
getProjectEmbeddingSnapshot2,
|
|
142
141
|
embedTextForProject2
|
|
143
|
-
} from "./index-
|
|
142
|
+
} from "./index-xn5yh0pn.js";
|
|
144
143
|
import {
|
|
145
144
|
getLastIndexedOrdinal
|
|
146
|
-
} from "./index-
|
|
145
|
+
} from "./index-wpazxe9x.js";
|
|
147
146
|
import {
|
|
148
147
|
V2_MEMORY_CATEGORIES,
|
|
149
148
|
CATEGORY_PRIORITY,
|
|
@@ -157,7 +156,7 @@ import {
|
|
|
157
156
|
expandWorkspaceIdentitySetWithAliases,
|
|
158
157
|
resolveStoredPathWorkspaceIdentity,
|
|
159
158
|
storedPathBelongsToWorkspace
|
|
160
|
-
} from "./index-
|
|
159
|
+
} from "./index-pb3ea2tq.js";
|
|
161
160
|
import {
|
|
162
161
|
sameProjectDirectory,
|
|
163
162
|
directoryHasGitMetadata,
|
|
@@ -180,7 +179,7 @@ import {
|
|
|
180
179
|
resolveMemoriesByIdsForSearch2,
|
|
181
180
|
unifiedSearch2,
|
|
182
181
|
formatSearchResults2
|
|
183
|
-
} from "./index-
|
|
182
|
+
} from "./index-e59j3yq5.js";
|
|
184
183
|
import {
|
|
185
184
|
computeCueContentHash,
|
|
186
185
|
getMuralCueState,
|
|
@@ -211,10 +210,13 @@ import {
|
|
|
211
210
|
} from "./index-6wdwv3a6.js";
|
|
212
211
|
import {
|
|
213
212
|
renderSearchArchive2
|
|
214
|
-
} from "./index-
|
|
213
|
+
} from "./index-d5q1q700.js";
|
|
215
214
|
import {
|
|
216
215
|
computeNormalizedHash
|
|
217
216
|
} from "./index-9x1f96r8.js";
|
|
217
|
+
import {
|
|
218
|
+
closeQuietly
|
|
219
|
+
} from "./index-nrzkqte4.js";
|
|
218
220
|
import {
|
|
219
221
|
logSlowWriteTransaction
|
|
220
222
|
} from "./index-hqw0rt9k.js";
|
|
@@ -6331,6 +6333,24 @@ function freezePiContentDecision(db, sessionId, kind, messageId) {
|
|
|
6331
6333
|
// ../plugin/src/features/magic-context/storage-native-replay.ts
|
|
6332
6334
|
var NATIVE_TOOL_INPUTS = "native tool inputs";
|
|
6333
6335
|
var NATIVE_REASONING_IDS = "native reasoning ids";
|
|
6336
|
+
var nativeWriteBarriers = new WeakMap;
|
|
6337
|
+
function withNativeReplayWriteBarrier(db, sessionId, beforeWrite, edit) {
|
|
6338
|
+
let sessions = nativeWriteBarriers.get(db);
|
|
6339
|
+
if (!sessions) {
|
|
6340
|
+
sessions = new Map;
|
|
6341
|
+
nativeWriteBarriers.set(db, sessions);
|
|
6342
|
+
}
|
|
6343
|
+
const prior = sessions.get(sessionId);
|
|
6344
|
+
sessions.set(sessionId, beforeWrite);
|
|
6345
|
+
try {
|
|
6346
|
+
return edit();
|
|
6347
|
+
} finally {
|
|
6348
|
+
if (prior)
|
|
6349
|
+
sessions.set(sessionId, prior);
|
|
6350
|
+
else
|
|
6351
|
+
sessions.delete(sessionId);
|
|
6352
|
+
}
|
|
6353
|
+
}
|
|
6334
6354
|
function invalidPersistedReplayState(lane, sessionId) {
|
|
6335
6355
|
return new Error(`invalid persisted ${lane} state for session ${sessionId}`);
|
|
6336
6356
|
}
|
|
@@ -6415,6 +6435,7 @@ function saveNativeToolInputs(db, sessionId, inputs) {
|
|
|
6415
6435
|
}
|
|
6416
6436
|
if (requested.size === 0)
|
|
6417
6437
|
return;
|
|
6438
|
+
nativeWriteBarriers.get(db)?.get(sessionId)?.();
|
|
6418
6439
|
const persisted = updateReplayDocument(db, sessionId, (doc) => {
|
|
6419
6440
|
const current = parseNativeReplayState(doc, sessionId);
|
|
6420
6441
|
let changed = false;
|
|
@@ -6441,6 +6462,7 @@ function addNativeReasoningIds(db, sessionId, ids) {
|
|
|
6441
6462
|
}
|
|
6442
6463
|
if (requested.size === 0)
|
|
6443
6464
|
return;
|
|
6465
|
+
nativeWriteBarriers.get(db)?.get(sessionId)?.();
|
|
6444
6466
|
const persisted = updateReplayDocument(db, sessionId, (doc) => {
|
|
6445
6467
|
const current = parseNativeReplayState(doc, sessionId);
|
|
6446
6468
|
let changed = false;
|
|
@@ -11229,7 +11251,7 @@ async function ensureProjectRegisteredFromPiDirectory(directory, db, options = {
|
|
|
11229
11251
|
registrationFingerprintsByDatabase.set(db, registrationFingerprints);
|
|
11230
11252
|
}
|
|
11231
11253
|
const cached = registrationFingerprints.get(projectIdentity);
|
|
11232
|
-
if (cached && configFingerprint(cached.paths) === cached.fingerprint) {
|
|
11254
|
+
if (!options.preflightLocalPooling && cached && configFingerprint(cached.paths) === cached.fingerprint) {
|
|
11233
11255
|
await drainProjectEmbeddingIdentityMaintenance2(db, projectIdentity);
|
|
11234
11256
|
return;
|
|
11235
11257
|
}
|
|
@@ -14921,4 +14943,4 @@ function registerMagicContextTools(pi, opts) {
|
|
|
14921
14943
|
}
|
|
14922
14944
|
}
|
|
14923
14945
|
|
|
14924
|
-
export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isCompactionEnabled, isCommitRetentionPaused, copyCommitRetentionRecovery, formatConfigParseStatusLine, formatConfigParseNotice, claimConfigParseFailuresOnce, parseJsoncRecovering, detectConfigFile, OPENCODE_OUTPUT_CAP, MIN_PLAUSIBLE_CONTEXT_LIMIT, catalogOutputReserve, deriveWindowGeometry, hasTrustedAbsoluteWall, applyProvenInputFloor, formatWindowDerivationLine, formatWindowSource, isSaneLimit, resolveOutputReserve, getSdkWindowGeometry, getSdkContextLimit, getSdkOutputLimit, getSdkInputLimit, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, LkgRecoveryFenceError, clearLkgFenceProcessState, lkgFenceRequiresRebuild, lkgRecoveryFenceUnclean, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionActivity, observeSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, COMPARTMENT_LEASE_RENEWAL_MS, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, HAS_COMPARTMENT_CONTENT_SQL, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndThrough, isPartialCompartmentEnd, readProjectDocsCanonical, providerResponseFailed, isSuccessfulProviderCompletion, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, recordSystemRefreshOwnership, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, acknowledgeSystemPromptDelivery, deferDeliveredSystemRefresh, clearSystemPromptDelivery, saveLkgSlotToDb, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, replayLkg, registerLkgPersistence, LKG_SNAPSHOT_ARRAY, LKG_SNAPSHOT_OBJECT, LKG_SNAPSHOT_KEY, LKG_SNAPSHOT_STRING, LKG_SNAPSHOT_NUMBER, LKG_SNAPSHOT_BOOLEAN, LKG_SNAPSHOT_NULL, LKG_SNAPSHOT_UNDEFINED, contentSnapshotValue, signatureForFields, lkgContentFields, lkgContentDigestFromFields, isLegacyLkgDigest, legacyLkgDigestFromFields, lkgFieldsMatchDigest, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, dropSlot, TOOL_SWEEP_SCOPED_MARKER, encodePiContentDecision, decodePiContentDecision, getPiContentDecisions, freezePiContentDecision, getNativeReplayState, saveNativeToolInputs, addNativeReasoningIds, copySessionStateForClone, externalHistorianFailureReason, subprocessExitHistorianFailureReason, countHistorianRuns, recordHistorianRun, summarizeImportance, tallyFactsByCategory, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId, noteTouchedAt, noteNudgePickIndex, formatNoteNudge, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, SYNTH_USER_ID_PREFIX, resolvePiStableId, resolvePiRealStableId, isPiContentFallbackId, isPiIndexFallbackId, piContentFallbackIds, readPiSessionSnapshot, readPiSessionMessages, readPiSessionMessagePage, findRestartModelSeedFromBranch, iterateEntriesToRawMessageRange, iterateAsyncEntriesToRawMessageRange, convertEntriesToRawMessages, convertPiAssistantEntryById, convertEntriesToRawMessagePage, countPiRawMessages, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, getTaskScheduleState, getFailingDreamTasks, getSkippedDreamTasks, getMostRecentTaskRunAt, pruneNonCanonicalTaskRows, deleteTaskScheduleRowsForProject, seedTaskScheduleState, writeTaskScheduleState, isRetrospectiveWindowProcessed, recordRetrospectiveWindowProcessed, curateCategoryForMemoryCategory, peekCurateCategoryScope, beginCurateCategoryRun, curateTaskStateAfterSuccess, MEMORY_MURAL_BLOCK, buildMagicContextSection, resolveMuralWire, updateCompactionMarkerAfterPublication, COMPARTMENT_RENDER_EPOCH, MEMORY_RENDER_FORMAT_EPOCH, encodeCachedM0UpgradeIdentity, decodeCachedM0UpgradeIdentity, withCachedM0MemoryIds, readCachedM0MemoryIds, renderBudgetIdentityChanged, renderedBudgetSnapshot, renderedBudgetShrinkReason, DEFAULT_HISTORY_BUDGET_TOKENS, renderCompartmentAtTier, renderDecayedCompartments, extractM0Block, TEMPORAL_MARKER_PATTERN, TEMPORAL_MARKER_REPLAY_PATTERN, temporalMarkerPrefix, renderUserProfileContent, clearInjectionCache, getVisibleMemoryIds, orderHistorianMemories, renderHistorianMemoryBlock, DEFAULT_MEMORY_BUDGET_TOKENS, DEFAULT_USER_PROFILE_BUDGET_TOKENS, trimMemoriesToBudgetV2, trimWorkspaceMemoriesToBudgetV2, trimUserMemoriesToBudget, renderMemoryBlockV2, stripMemoryMuralBlock, resetPrefixTrimFallbackState, isDirectiveShapedProjectRule, takeCurateSafetyRefusalCount, wakePlaneStatus, loadPiConfig, loadPiConfigDetailed, unregisterPiProjectEmbeddings, ensureProjectRegisteredFromPiDirectory, neutralizeOmpMentions, restoreOmpMentions, resolvePiHarnessDetection, resolvePiHarnessKind, resolvePiOrdinalAlignment, piRawOrdinalOffsetSource, resolvePiOrdinalAlignmentForContext, isPiOrdinalAlignmentUnanchored, clearPiOrdinalAlignmentSession, rememberTodowriteToolCallTodos, parseTodos, setTodoSnapshot, registerTodoOverlay, registerTodoStateLifecycle, syncCtxMemoryToolEnabled, registerMagicContextTools };
|
|
14946
|
+
export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isCompactionEnabled, isCommitRetentionPaused, copyCommitRetentionRecovery, formatConfigParseStatusLine, formatConfigParseNotice, claimConfigParseFailuresOnce, parseJsoncRecovering, detectConfigFile, OPENCODE_OUTPUT_CAP, MIN_PLAUSIBLE_CONTEXT_LIMIT, catalogOutputReserve, deriveWindowGeometry, hasTrustedAbsoluteWall, applyProvenInputFloor, formatWindowDerivationLine, formatWindowSource, isSaneLimit, resolveOutputReserve, getSdkWindowGeometry, getSdkContextLimit, getSdkOutputLimit, getSdkInputLimit, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, LkgRecoveryFenceError, clearLkgFenceProcessState, lkgFenceRequiresRebuild, lkgRecoveryFenceUnclean, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionActivity, observeSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, COMPARTMENT_LEASE_RENEWAL_MS, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, HAS_COMPARTMENT_CONTENT_SQL, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndThrough, isPartialCompartmentEnd, readProjectDocsCanonical, providerResponseFailed, isSuccessfulProviderCompletion, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, recordSystemRefreshOwnership, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, acknowledgeSystemPromptDelivery, deferDeliveredSystemRefresh, clearSystemPromptDelivery, saveLkgSlotToDb, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, replayLkg, registerLkgPersistence, LKG_SNAPSHOT_ARRAY, LKG_SNAPSHOT_OBJECT, LKG_SNAPSHOT_KEY, LKG_SNAPSHOT_STRING, LKG_SNAPSHOT_NUMBER, LKG_SNAPSHOT_BOOLEAN, LKG_SNAPSHOT_NULL, LKG_SNAPSHOT_UNDEFINED, contentSnapshotValue, signatureForFields, lkgContentFields, lkgContentDigestFromFields, isLegacyLkgDigest, legacyLkgDigestFromFields, lkgFieldsMatchDigest, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, dropSlot, TOOL_SWEEP_SCOPED_MARKER, encodePiContentDecision, decodePiContentDecision, getPiContentDecisions, freezePiContentDecision, withNativeReplayWriteBarrier, getNativeReplayState, saveNativeToolInputs, addNativeReasoningIds, copySessionStateForClone, externalHistorianFailureReason, subprocessExitHistorianFailureReason, countHistorianRuns, recordHistorianRun, summarizeImportance, tallyFactsByCategory, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId, noteTouchedAt, noteNudgePickIndex, formatNoteNudge, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, SYNTH_USER_ID_PREFIX, resolvePiStableId, resolvePiRealStableId, isPiContentFallbackId, isPiIndexFallbackId, piContentFallbackIds, readPiSessionSnapshot, readPiSessionMessages, readPiSessionMessagePage, findRestartModelSeedFromBranch, iterateEntriesToRawMessageRange, iterateAsyncEntriesToRawMessageRange, convertEntriesToRawMessages, convertPiAssistantEntryById, convertEntriesToRawMessagePage, countPiRawMessages, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, getTaskScheduleState, getFailingDreamTasks, getSkippedDreamTasks, getMostRecentTaskRunAt, pruneNonCanonicalTaskRows, deleteTaskScheduleRowsForProject, seedTaskScheduleState, writeTaskScheduleState, isRetrospectiveWindowProcessed, recordRetrospectiveWindowProcessed, curateCategoryForMemoryCategory, peekCurateCategoryScope, beginCurateCategoryRun, curateTaskStateAfterSuccess, MEMORY_MURAL_BLOCK, buildMagicContextSection, resolveMuralWire, updateCompactionMarkerAfterPublication, COMPARTMENT_RENDER_EPOCH, MEMORY_RENDER_FORMAT_EPOCH, encodeCachedM0UpgradeIdentity, decodeCachedM0UpgradeIdentity, withCachedM0MemoryIds, readCachedM0MemoryIds, renderBudgetIdentityChanged, renderedBudgetSnapshot, renderedBudgetShrinkReason, DEFAULT_HISTORY_BUDGET_TOKENS, renderCompartmentAtTier, renderDecayedCompartments, extractM0Block, TEMPORAL_MARKER_PATTERN, TEMPORAL_MARKER_REPLAY_PATTERN, temporalMarkerPrefix, renderUserProfileContent, clearInjectionCache, getVisibleMemoryIds, orderHistorianMemories, renderHistorianMemoryBlock, DEFAULT_MEMORY_BUDGET_TOKENS, DEFAULT_USER_PROFILE_BUDGET_TOKENS, trimMemoriesToBudgetV2, trimWorkspaceMemoriesToBudgetV2, trimUserMemoriesToBudget, renderMemoryBlockV2, stripMemoryMuralBlock, resetPrefixTrimFallbackState, isDirectiveShapedProjectRule, takeCurateSafetyRefusalCount, wakePlaneStatus, loadPiConfig, loadPiConfigDetailed, unregisterPiProjectEmbeddings, ensureProjectRegisteredFromPiDirectory, neutralizeOmpMentions, restoreOmpMentions, resolvePiHarnessDetection, resolvePiHarnessKind, resolvePiOrdinalAlignment, piRawOrdinalOffsetSource, resolvePiOrdinalAlignmentForContext, isPiOrdinalAlignmentUnanchored, clearPiOrdinalAlignmentSession, rememberTodowriteToolCallTodos, parseTodos, setTodoSnapshot, registerTodoOverlay, registerTodoStateLifecycle, syncCtxMemoryToolEnabled, registerMagicContextTools };
|