@cortexkit/pi-magic-context 0.49.84 → 0.49.86
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 +3 -3
- package/dist/chunk-embedding-write-worker.js +5 -4
- package/dist/{embedding-backfill-yh10bmx5.js → embedding-backfill-7a01ns95.js} +6 -5
- package/dist/embedding-worker.js +14 -27
- package/dist/{index-e0zdn1p3.js → index-53fgdt6n.js} +1 -1
- package/dist/{index-47g3pgzk.js → index-5n3bqhp9.js} +9 -8
- package/dist/{index-xz5b9t4g.js → index-7yz95h83.js} +38 -736
- package/dist/{index-a7kcxjc4.js → index-8631kxcp.js} +25 -18
- package/dist/index-8x8wtn3t.js +1083 -0
- package/dist/{index-hna2sxy8.js → index-94z1xzmr.js} +3 -3
- package/dist/{index-0apatd37.js → index-bjr11ay6.js} +24 -26
- package/dist/{index-gdy08gn6.js → index-ex9te7tc.js} +1 -1
- package/dist/{index-qxwed9sk.js → index-fd57gfnn.js} +4 -4
- package/dist/{index-nmmge3j6.js → index-gbc29ysq.js} +1 -1
- package/dist/{index-txcs0vnj.js → index-rqdjb6j3.js} +461 -273
- package/dist/{index-k8xz22jc.js → index-sqp84q6s.js} +1 -1
- package/dist/{index-3g1wy4z9.js → index-wy6h2wn2.js} +22 -10
- package/dist/index.js +61 -57
- package/dist/migration-worker.js +5 -4
- package/dist/{project-embedding-registry-3sss39rx.js → project-embedding-registry-agkd7egh.js} +7 -4
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{render-05gdzxc2.js → render-rphfegr8.js} +7 -6
- package/dist/{search-archive-32pv4687.js → search-archive-7p43e77j.js} +1 -1
- package/dist/{search-dh4ryftv.js → search-rdvsnxky.js} +9 -8
- package/dist/{store-mmd2tmm1.js → store-ekaexkvc.js} +1 -1
- package/dist/{store-reader-ypd6m0ke.js → store-reader-vwphd51b.js} +1 -1
- package/dist/subagent-entry.js +17 -17
- package/dist/tag-snapshot-worker-pi.js +5 -4
- package/dist/{v2-archive-reader-1ny52akc.js → v2-archive-reader-qc4c9wrp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-81nthk8j.js +0 -193
- /package/dist/{index-2zre7sck.js → index-ddfjg278.js} +0 -0
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
log2,
|
|
19
19
|
sessionLog2
|
|
20
20
|
} from "./index-tm11k42a.js";
|
|
21
|
+
import {
|
|
22
|
+
piHarnessKindFromExecutable,
|
|
23
|
+
ensureStorageDirectorySync,
|
|
24
|
+
writeStorageFileAtomicSync
|
|
25
|
+
} from "./index-8x8wtn3t.js";
|
|
21
26
|
import {
|
|
22
27
|
piModelRefToCanonical,
|
|
23
28
|
modelRefLookupOrder,
|
|
@@ -53,10 +58,6 @@ import {
|
|
|
53
58
|
import {
|
|
54
59
|
noteRawSessionSummaryRowWritten2
|
|
55
60
|
} from "./index-xjhq27z9.js";
|
|
56
|
-
import {
|
|
57
|
-
piHarnessKindFromExecutable,
|
|
58
|
-
getErrorMessage
|
|
59
|
-
} from "./index-xz5b9t4g.js";
|
|
60
61
|
import {
|
|
61
62
|
getOrCreateSessionMeta,
|
|
62
63
|
updateSessionMeta,
|
|
@@ -70,7 +71,7 @@ import {
|
|
|
70
71
|
renderMessageByOrdinal2,
|
|
71
72
|
renderVerboseRange2,
|
|
72
73
|
renderItemByTag2
|
|
73
|
-
} from "./index-
|
|
74
|
+
} from "./index-bjr11ay6.js";
|
|
74
75
|
import {
|
|
75
76
|
getLastIndexedOrdinal
|
|
76
77
|
} from "./index-0t9xfj3x.js";
|
|
@@ -117,10 +118,11 @@ import {
|
|
|
117
118
|
} from "./index-yhzhdp3m.js";
|
|
118
119
|
import {
|
|
119
120
|
preflightLocalEmbeddingPooling
|
|
120
|
-
} from "./index-
|
|
121
|
+
} from "./index-rqdjb6j3.js";
|
|
121
122
|
import {
|
|
122
123
|
withQueryEmbeddingDeadline,
|
|
123
124
|
markProjectLoadUntrusted2,
|
|
125
|
+
awaitEmbeddingProviderDisposals2,
|
|
124
126
|
drainProjectEmbeddingIdentityMaintenance2,
|
|
125
127
|
registerProjectEmbedding2,
|
|
126
128
|
registerProjectShadowEmbedding2,
|
|
@@ -129,20 +131,23 @@ import {
|
|
|
129
131
|
unregisterProjectEmbedding2,
|
|
130
132
|
getProjectEmbeddingSnapshot2,
|
|
131
133
|
embedTextForProject2
|
|
132
|
-
} from "./index-
|
|
134
|
+
} from "./index-wy6h2wn2.js";
|
|
133
135
|
import {
|
|
134
136
|
directoryHasGitMetadata,
|
|
135
137
|
resolveProjectIdentityForSession,
|
|
136
138
|
normalizeStoredProjectPath,
|
|
137
139
|
storedPathBelongsToIdentity
|
|
138
|
-
} from "./index-
|
|
140
|
+
} from "./index-94z1xzmr.js";
|
|
139
141
|
import {
|
|
140
142
|
createUnifiedSearchDiagnostics2,
|
|
141
143
|
parseIdShapedQuery2,
|
|
142
144
|
resolveMemoriesByIdsForSearch2,
|
|
143
145
|
unifiedSearch2,
|
|
144
146
|
formatSearchResults2
|
|
145
|
-
} from "./index-
|
|
147
|
+
} from "./index-5n3bqhp9.js";
|
|
148
|
+
import {
|
|
149
|
+
getErrorMessage
|
|
150
|
+
} from "./index-7yz95h83.js";
|
|
146
151
|
import {
|
|
147
152
|
resolveOpenCodeDbPath,
|
|
148
153
|
assertOpenCodeStoreGeneration
|
|
@@ -159,7 +164,7 @@ import {
|
|
|
159
164
|
resolveStoredPathWorkspaceIdentity,
|
|
160
165
|
storedPathBelongsToWorkspace,
|
|
161
166
|
sourceNameForMemory
|
|
162
|
-
} from "./index-
|
|
167
|
+
} from "./index-53fgdt6n.js";
|
|
163
168
|
import {
|
|
164
169
|
getNoteByIdInScope,
|
|
165
170
|
getNotes,
|
|
@@ -170,7 +175,7 @@ import {
|
|
|
170
175
|
updateNote,
|
|
171
176
|
dismissNotes,
|
|
172
177
|
dismissNote
|
|
173
|
-
} from "./index-
|
|
178
|
+
} from "./index-gbc29ysq.js";
|
|
174
179
|
import {
|
|
175
180
|
isMarkerCandidateBasisCurrent2,
|
|
176
181
|
invalidateMarkerCandidateBasis2,
|
|
@@ -194,10 +199,6 @@ import {
|
|
|
194
199
|
import {
|
|
195
200
|
logSlowWriteTransaction
|
|
196
201
|
} from "./index-1ts77n1b.js";
|
|
197
|
-
import {
|
|
198
|
-
ensureStorageDirectorySync,
|
|
199
|
-
writeStorageFileAtomicSync
|
|
200
|
-
} from "./index-81nthk8j.js";
|
|
201
202
|
|
|
202
203
|
// ../plugin/src/config/agent-disable.ts
|
|
203
204
|
var COMPACTION_ENABLED_PATH = `compaction${"."}enabled`;
|
|
@@ -7436,10 +7437,16 @@ function configFingerprint(paths) {
|
|
|
7436
7437
|
}).join("|");
|
|
7437
7438
|
}
|
|
7438
7439
|
function unregisterPiProjectEmbeddings(db) {
|
|
7439
|
-
|
|
7440
|
-
unregisterProjectEmbedding2(identity);
|
|
7440
|
+
const disposals = [...registeredIdentitiesByDatabase.get(db) ?? []].map((identity) => unregisterProjectEmbedding2(identity));
|
|
7441
7441
|
registeredIdentitiesByDatabase.delete(db);
|
|
7442
7442
|
registrationFingerprintsByDatabase.get(db)?.clear();
|
|
7443
|
+
return Promise.all(disposals).then(() => {});
|
|
7444
|
+
}
|
|
7445
|
+
function shutdownPiProjectEmbeddings(db) {
|
|
7446
|
+
return Promise.all([
|
|
7447
|
+
unregisterPiProjectEmbeddings(db),
|
|
7448
|
+
awaitEmbeddingProviderDisposals2()
|
|
7449
|
+
]).then(() => {});
|
|
7443
7450
|
}
|
|
7444
7451
|
async function ensureProjectRegisteredFromPiDirectory(directory, db, options = {}) {
|
|
7445
7452
|
const detailed = loadPiConfigDetailed({ cwd: directory });
|
|
@@ -11079,4 +11086,4 @@ function registerMagicContextTools(pi, opts) {
|
|
|
11079
11086
|
}
|
|
11080
11087
|
}
|
|
11081
11088
|
|
|
11082
|
-
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, 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, curateTaskStateAfterCategoryTurn, MEMORY_MURAL_BLOCK, buildMagicContextSection, resolveMuralWire, requestToolsFingerprint, classifyRequestToolsChange, requestToolSchemaDigest, 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, resolveWorkspaceRenderContext, sourceNamesForMemories, readM0ProjectMemories, trimMemoriesToBudgetV2, trimWorkspaceMemoriesToBudgetV2, trimUserMemoriesToBudget, renderMemoryBlockV2, stripMemoryMuralBlock, resetPrefixTrimFallbackState, isDirectiveShapedProjectRule, parseCurateSafetyRefusal, takeCurateSafetyRefusalCount, wakePlaneStatus, loadPiConfig, loadPiConfigDetailed,
|
|
11089
|
+
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, 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, curateTaskStateAfterCategoryTurn, MEMORY_MURAL_BLOCK, buildMagicContextSection, resolveMuralWire, requestToolsFingerprint, classifyRequestToolsChange, requestToolSchemaDigest, 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, resolveWorkspaceRenderContext, sourceNamesForMemories, readM0ProjectMemories, trimMemoriesToBudgetV2, trimWorkspaceMemoriesToBudgetV2, trimUserMemoriesToBudget, renderMemoryBlockV2, stripMemoryMuralBlock, resetPrefixTrimFallbackState, isDirectiveShapedProjectRule, parseCurateSafetyRefusal, takeCurateSafetyRefusalCount, wakePlaneStatus, loadPiConfig, loadPiConfigDetailed, shutdownPiProjectEmbeddings, ensureProjectRegisteredFromPiDirectory, neutralizeOmpMentions, restoreOmpMentions, resolvePiHarnessDetection, resolvePiHarnessKind, readSubagentStartupError, reportSubagentStartupError, legacyTui, canRenderPiRows, piTerminalRows, piOverlayOptions, matchesKey, truncateToWidth, visibleWidth, inheritPiOrdinalAlignment, resolvePiOrdinalAlignment, piRawOrdinalOffsetSource, resolvePiOrdinalAlignmentForContext, isPiOrdinalAlignmentUnanchored, clearPiOrdinalAlignmentSession, rememberTodowriteToolCallTodos, parseTodos, setTodoSnapshot, registerTodoOverlay, registerTodoStateLifecycle, syncCtxMemoryToolEnabled, registerMagicContextTools };
|