@cortexkit/pi-magic-context 0.49.11 → 0.49.12

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.
Files changed (46) hide show
  1. package/dist/auto-search-worker.js +4 -4
  2. package/dist/{compaction-marker-candidates-n4dphyz4.js → compaction-marker-candidates-k4tqg4jb.js} +2 -2
  3. package/dist/compaction-marker-candidates-worker.js +1 -1
  4. package/dist/embedding-backfill-14tqcfrn.js +20 -0
  5. package/dist/embedding-worker-process.js +1 -1
  6. package/dist/embedding-worker.js +5 -5
  7. package/dist/historian-calibration-extension.js +1 -1
  8. package/dist/{index-ta0ed2nc.js → index-1k729e4f.js} +15 -15
  9. package/dist/{index-g13fb2sj.js → index-3cnarwf8.js} +4 -4
  10. package/dist/{index-729kkhmf.js → index-46q4e104.js} +1 -1
  11. package/dist/{index-m8aaepft.js → index-53xdqb3d.js} +7 -7
  12. package/dist/{index-szh001qb.js → index-6dz2ed1v.js} +2 -2
  13. package/dist/{index-gqxsds3q.js → index-6ex901g3.js} +187 -27
  14. package/dist/{index-s3c9dskk.js → index-6hex51s9.js} +8 -8
  15. package/dist/{index-gycf3sp7.js → index-7bqrfyny.js} +46 -2
  16. package/dist/{index-drah07tf.js → index-af9nb5db.js} +5 -5
  17. package/dist/{index-3veejgp8.js → index-apgwdby5.js} +1 -1
  18. package/dist/{index-43zqh10z.js → index-d4dt19md.js} +1 -1
  19. package/dist/{index-fdxzpnbj.js → index-djxc8w8c.js} +1 -1
  20. package/dist/{index-x7426vy4.js → index-ed9d2ded.js} +18 -5
  21. package/dist/{index-kh3jt7t9.js → index-f18ec69t.js} +1 -1
  22. package/dist/{index-78c864c8.js → index-f6e8jsrh.js} +140 -17
  23. package/dist/{index-4pxydwvg.js → index-g4jf772p.js} +1 -1
  24. package/dist/{index-2df03yc3.js → index-gykw2zhn.js} +8 -8
  25. package/dist/{index-4vj37yw9.js → index-he9s4qsj.js} +16 -6
  26. package/dist/{index-8yjhda46.js → index-j24916mq.js} +3 -3
  27. package/dist/{index-ttxsmaj5.js → index-jrap43gc.js} +1 -1
  28. package/dist/{index-s9kwv5pp.js → index-xpsht877.js} +5 -5
  29. package/dist/{index-9azmm7cg.js → index-z5ftst3e.js} +9 -9
  30. package/dist/{index-0vq6ebae.js → index-zapgkmp7.js} +29 -24
  31. package/dist/index.js +340 -203
  32. package/dist/{logger-qg51hmp7.js → logger-dygt96rn.js} +1 -1
  33. package/dist/{message-index-bounded-chgr6dn3.js → message-index-bounded-ws37m1nt.js} +13 -13
  34. package/dist/{message-index-5zjmsg57.js → message-index-dfs6k35a.js} +13 -13
  35. package/dist/{message-time-backfill-q9s88zdv.js → message-time-backfill-r2ar1qvk.js} +2 -2
  36. package/dist/migration-worker.js +9 -9
  37. package/dist/{project-embedding-registry-dk5axctd.js → project-embedding-registry-ymvne11v.js} +10 -10
  38. package/dist/raw-ordinal-warmup-worker.js +12 -7
  39. package/dist/{read-session-chunk-3kb7r5pq.js → read-session-chunk-83864b37.js} +8 -8
  40. package/dist/{read-session-raw-hm7ptnrh.js → read-session-raw-azkqjgzg.js} +6 -2
  41. package/dist/{safe-notification-target-62ty6rvp.js → safe-notification-target-2rkvkmw8.js} +2 -2
  42. package/dist/{search-8pczyejh.js → search-85e21wb8.js} +19 -19
  43. package/dist/{storage-tags-zh23ynsh.js → storage-tags-zmf30zqp.js} +6 -4
  44. package/dist/subagent-entry.js +22 -22
  45. package/package.json +1 -1
  46. package/dist/embedding-backfill-1tknh2jn.js +0 -20
@@ -7,7 +7,7 @@ import {
7
7
  getMagicContextStorageDir,
8
8
  log2,
9
9
  sessionLog2
10
- } from "./index-gycf3sp7.js";
10
+ } from "./index-7bqrfyny.js";
11
11
  import {
12
12
  piModelRefToCanonical,
13
13
  modelRefLookupOrder,
@@ -20,7 +20,7 @@ import {
20
20
  PER_HARNESS_MODEL_KEYS,
21
21
  ConfigProfilesSchema,
22
22
  MagicContextConfigSchema
23
- } from "./index-ta0ed2nc.js";
23
+ } from "./index-1k729e4f.js";
24
24
  import {
25
25
  MERGED_REASONING_PARTS_PREFIX,
26
26
  decodeMergedReasoningParts,
@@ -56,7 +56,7 @@ import {
56
56
  readRawSessionMessageIdOrdinalsForRange2,
57
57
  readRawSessionMessageById2,
58
58
  readSessionChunk2
59
- } from "./index-m8aaepft.js";
59
+ } from "./index-53xdqb3d.js";
60
60
  import {
61
61
  isRecord,
62
62
  providerVisibleMessage,
@@ -70,10 +70,10 @@ import {
70
70
  getTagNumberByMessageId2,
71
71
  getTagsBySession2,
72
72
  getTagById2
73
- } from "./index-x7426vy4.js";
73
+ } from "./index-ed9d2ded.js";
74
74
  import {
75
75
  estimateTokens
76
- } from "./index-4pxydwvg.js";
76
+ } from "./index-g4jf772p.js";
77
77
  import {
78
78
  inRootAsyncContext2,
79
79
  Database2,
@@ -84,18 +84,18 @@ import {
84
84
  stableStringify,
85
85
  closeQuietly,
86
86
  getTableColumnNames
87
- } from "./index-ttxsmaj5.js";
87
+ } from "./index-jrap43gc.js";
88
88
  import {
89
89
  resolveOpenCodeDbPath,
90
90
  assertOpenCodeStoreGeneration
91
91
  } from "./index-8976mezv.js";
92
92
  import {
93
93
  noteRawSessionSummaryRowWritten2
94
- } from "./index-4vj37yw9.js";
94
+ } from "./index-he9s4qsj.js";
95
95
  import {
96
96
  piHarnessKindFromExecutable,
97
97
  isPidAlive
98
- } from "./index-3veejgp8.js";
98
+ } from "./index-apgwdby5.js";
99
99
  import {
100
100
  BoundedSessionMap,
101
101
  clearLkgFenceProcessState,
@@ -103,20 +103,20 @@ import {
103
103
  clearLkgRecoveryFence,
104
104
  deleteSessionScopedRows,
105
105
  getLastIndexedOrdinal2
106
- } from "./index-s3c9dskk.js";
106
+ } from "./index-6hex51s9.js";
107
107
  import {
108
108
  SubcClient,
109
109
  connectionFileExists,
110
110
  SYNAPSE_DEFAULT_MODEL,
111
111
  toSynapseLaneDescriptor,
112
112
  SynapseEmbeddingProvider
113
- } from "./index-szh001qb.js";
113
+ } from "./index-6dz2ed1v.js";
114
114
  import {
115
115
  sameProjectDirectory
116
- } from "./index-fdxzpnbj.js";
116
+ } from "./index-djxc8w8c.js";
117
117
  import {
118
118
  getErrorMessage
119
- } from "./index-9azmm7cg.js";
119
+ } from "./index-z5ftst3e.js";
120
120
  import {
121
121
  V2_MEMORY_CATEGORIES,
122
122
  CATEGORY_PRIORITY,
@@ -130,13 +130,13 @@ import {
130
130
  expandWorkspaceIdentitySetWithAliases,
131
131
  resolveStoredPathWorkspaceIdentity,
132
132
  storedPathBelongsToWorkspace
133
- } from "./index-g13fb2sj.js";
133
+ } from "./index-3cnarwf8.js";
134
134
  import {
135
135
  directoryHasGitMetadata,
136
136
  resolveProjectIdentityForSession,
137
137
  normalizeStoredProjectPath,
138
138
  storedPathBelongsToIdentity
139
- } from "./index-gqxsds3q.js";
139
+ } from "./index-6ex901g3.js";
140
140
  import {
141
141
  drainBackgroundBatches,
142
142
  markProjectLoadUntrusted2,
@@ -148,7 +148,7 @@ import {
148
148
  unregisterProjectEmbedding2,
149
149
  getProjectEmbeddingSnapshot2,
150
150
  embedTextForProject2
151
- } from "./index-78c864c8.js";
151
+ } from "./index-f6e8jsrh.js";
152
152
  import {
153
153
  getNoteByIdInScope,
154
154
  getNotes,
@@ -165,7 +165,7 @@ import {
165
165
  resolveMemoriesByIdsForSearch2,
166
166
  unifiedSearch2,
167
167
  formatSearchResults2
168
- } from "./index-2df03yc3.js";
168
+ } from "./index-gykw2zhn.js";
169
169
  import {
170
170
  computeCueContentHash,
171
171
  getMuralCueState,
@@ -190,13 +190,13 @@ import {
190
190
  isMarkerCandidateBasisCurrent2,
191
191
  invalidateMarkerCandidateBasis2,
192
192
  readMarkerCandidateBasis2
193
- } from "./index-729kkhmf.js";
193
+ } from "./index-46q4e104.js";
194
194
  import {
195
195
  computeNormalizedHash
196
196
  } from "./index-9x1f96r8.js";
197
197
  import {
198
198
  logSlowWriteTransaction
199
- } from "./index-43zqh10z.js";
199
+ } from "./index-d4dt19md.js";
200
200
  import {
201
201
  ensureStorageDirectorySync,
202
202
  writeStorageFileAtomicSync
@@ -5464,6 +5464,9 @@ function requestPendingMaterialization(sessions, sessionId, origin) {
5464
5464
  function pendingMaterializationOrigin(sessions, sessionId) {
5465
5465
  return sessions.has(sessionId) ? origins.get(sessions)?.get(sessionId) ?? "pending_materialization" : "pending_materialization";
5466
5466
  }
5467
+ function hasPendingMaterializationOrigin(sessions, sessionId, origin) {
5468
+ return sessions.has(sessionId) && causes.get(sessions)?.get(sessionId)?.has(origin) === true;
5469
+ }
5467
5470
  function clearPendingMaterialization(sessions, sessionId) {
5468
5471
  sessions.delete(sessionId);
5469
5472
  origins.get(sessions)?.delete(sessionId);
@@ -14395,14 +14398,15 @@ function writeTray(db, sessionId) {
14395
14398
  function createCtxNoteTool(deps) {
14396
14399
  const resolveProject = deps.resolveProjectIdentity ?? resolveProjectIdentityForSession;
14397
14400
  const parameters = structuredClone(ParamsSchema2);
14398
- if (deps.smartNotesEnabled === false) {
14401
+ const smartNoteSurface = deps.smartNotesEnabled !== false && deps.dreamerEnabled !== false;
14402
+ if (!smartNoteSurface) {
14399
14403
  delete parameters.properties.surface_condition;
14400
14404
  parameters.properties.filter.description = NOTES_FILTER_DESCRIPTION;
14401
14405
  }
14402
14406
  return {
14403
14407
  name: "ctx_note",
14404
14408
  label: "Magic Context: Notes",
14405
- description: deps.smartNotesEnabled === false ? withoutSmartNoteText(CTX_NOTE_DESCRIPTION) : CTX_NOTE_DESCRIPTION,
14409
+ description: smartNoteSurface ? CTX_NOTE_DESCRIPTION : withoutSmartNoteText(CTX_NOTE_DESCRIPTION),
14406
14410
  parameters,
14407
14411
  async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
14408
14412
  params = unwrapImitatedReducedArgs(params, ["action", "content"], {
@@ -15501,13 +15505,14 @@ function registerMagicContextTools(pi, opts) {
15501
15505
  warn: (message) => log2(`[magic-context][pi] config warning: ${message}`)
15502
15506
  });
15503
15507
  const registration = promptSurfaceRuntime.resolveRegistration(opts.promptSurface);
15508
+ const smartNotesAvailable = opts.smartNotesEnabled !== false && opts.dreamerEnabled !== false;
15504
15509
  const surfaceTool = (definition) => {
15505
15510
  const parameters = structuredClone(definition.parameters);
15506
- applyJsonSchemaParameterDescriptions(definition.name, parameters, registration.preset, opts.smartNotesEnabled);
15511
+ applyJsonSchemaParameterDescriptions(definition.name, parameters, registration.preset, smartNotesAvailable ? opts.smartNotesEnabled : false);
15507
15512
  return throwReturnedToolErrors({
15508
15513
  ...definition,
15509
15514
  parameters,
15510
- description: definition.name === "ctx_note" && opts.smartNotesEnabled === false ? withoutSmartNoteText(registration.preset === "light" ? CTX_NOTE_LIGHT_DESCRIPTION : definition.description) : registration.descriptionFor(definition.name, definition.description)
15515
+ description: definition.name === "ctx_note" && !smartNotesAvailable ? withoutSmartNoteText(registration.preset === "light" ? CTX_NOTE_LIGHT_DESCRIPTION : definition.description) : registration.descriptionFor(definition.name, definition.description)
15511
15516
  });
15512
15517
  };
15513
15518
  pi.registerTool(surfaceTool(createCtxSearchTool({
@@ -15536,7 +15541,7 @@ function registerMagicContextTools(pi, opts) {
15536
15541
  if (!opts.sessionScopedToolsDisabled) {
15537
15542
  pi.registerTool(surfaceTool(createCtxNoteTool({
15538
15543
  db: opts.db,
15539
- dreamerEnabled: opts.dreamerEnabled ?? false,
15544
+ dreamerEnabled: opts.dreamerEnabled,
15540
15545
  smartNotesEnabled: opts.smartNotesEnabled,
15541
15546
  resolveDreamerEnabled: opts.resolveDreamerEnabled,
15542
15547
  resolveProjectIdentity
@@ -15560,4 +15565,4 @@ function registerMagicContextTools(pi, opts) {
15560
15565
  }
15561
15566
  }
15562
15567
 
15563
- export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isCompactionEnabled, formatConfigParseStatusLine, formatConfigParseNotice, claimConfigParseFailuresOnce, parseJsoncRecovering, detectConfigFile, MIN_PLAUSIBLE_CONTEXT_LIMIT, catalogOutputReserve, deriveWindowGeometry, hasTrustedAbsoluteWall, applyProvenInputFloor, formatWindowDerivationLine, formatWindowSource, isSaneLimit, resolveOutputReserve, getSdkWindowGeometry, getSdkContextLimit, getSdkOutputLimit, getSdkInputLimit, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, embedPauseBySession, embedRunStateBySession, autoEmbedAttemptedBySession, autoEmbedIdentityBySession, invalidateAutoEmbedSession, getEmbedDrainUiStatus, 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, 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, resolvePiHarnessDetection, resolvePiHarnessKind, resolvePiOrdinalAlignment, piRawOrdinalOffsetSource, resolvePiOrdinalAlignmentForContext, isPiOrdinalAlignmentUnanchored, clearPiOrdinalAlignmentSession, rememberTodowriteToolCallTodos, parseTodos, setTodoSnapshot, registerTodoOverlay, registerTodoStateLifecycle, syncCtxMemoryToolEnabled, registerMagicContextTools };
15568
+ export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isCompactionEnabled, formatConfigParseStatusLine, formatConfigParseNotice, claimConfigParseFailuresOnce, parseJsoncRecovering, detectConfigFile, MIN_PLAUSIBLE_CONTEXT_LIMIT, catalogOutputReserve, deriveWindowGeometry, hasTrustedAbsoluteWall, applyProvenInputFloor, formatWindowDerivationLine, formatWindowSource, isSaneLimit, resolveOutputReserve, getSdkWindowGeometry, getSdkContextLimit, getSdkOutputLimit, getSdkInputLimit, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, migrateMagicContextConfigLocations, getProtectedTokensTierOverrides, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, embedPauseBySession, embedRunStateBySession, autoEmbedAttemptedBySession, autoEmbedIdentityBySession, invalidateAutoEmbedSession, getEmbedDrainUiStatus, 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, resolvePiHarnessDetection, resolvePiHarnessKind, resolvePiOrdinalAlignment, piRawOrdinalOffsetSource, resolvePiOrdinalAlignmentForContext, isPiOrdinalAlignmentUnanchored, clearPiOrdinalAlignmentSession, rememberTodowriteToolCallTodos, parseTodos, setTodoSnapshot, registerTodoOverlay, registerTodoStateLifecycle, syncCtxMemoryToolEnabled, registerMagicContextTools };