@cortexkit/pi-magic-context 0.49.25 → 0.49.26
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-g9a977b8.js → compartment-chunk-embedding-vt6afvdm.js} +3 -3
- package/dist/{embedding-backfill-qxzjy5v2.js → embedding-backfill-jc5fqt5s.js} +5 -5
- package/dist/{index-zmg1td73.js → index-87xm7z44.js} +3 -3
- package/dist/{index-wb2t932e.js → index-dnadppqx.js} +1 -1
- package/dist/{index-8a2wvrda.js → index-g0d51qzc.js} +1 -1
- package/dist/{index-cms6wfmd.js → index-kbswhkc8.js} +1 -1
- package/dist/{index-d53veb5e.js → index-r1hvaza0.js} +2 -2
- package/dist/{index-cm9e52mb.js → index-rjnc6kkf.js} +16 -2
- package/dist/{index-nxq2srg9.js → index-w5v0ntbw.js} +1 -1
- package/dist/{index-fzfpq5bd.js → index-wpy2rzb2.js} +1 -1
- package/dist/{index-8hmqdav2.js → index-z24d75tz.js} +39 -6
- package/dist/{index-00c5a49f.js → index-z6k6jsmh.js} +1 -1
- package/dist/{index-1g0r4req.js → index-zpmz6x24.js} +7 -7
- package/dist/{index-zn2xdbjy.js → index-zz7dnyh6.js} +4 -4
- package/dist/index.js +13 -13
- package/dist/{message-fts-rowid-map-1tb3qjtc.js → message-fts-rowid-map-xe3ss2g3.js} +2 -2
- package/dist/{message-index-bounded-yj7s7cwz.js → message-index-bounded-2zffszp9.js} +5 -5
- package/dist/{message-index-fedjhja5.js → message-index-jv1m3g8d.js} +5 -5
- package/dist/migration-worker.js +3 -3
- package/dist/{project-embedding-registry-9e82qsb6.js → project-embedding-registry-bn9ts1h0.js} +4 -4
- package/dist/raw-ordinal-warmup-worker.js +6 -6
- package/dist/{read-session-chunk-rndwjfrx.js → read-session-chunk-p0cexvvs.js} +4 -2
- package/dist/{read-session-raw-napqv76k.js → read-session-raw-mq03ws9v.js} +3 -1
- package/dist/{search-archive-qa1sf8hc.js → search-archive-jw2wm4tw.js} +3 -3
- package/dist/{search-2aa5kzyp.js → search-vmcbbwm5.js} +8 -8
- package/dist/subagent-entry.js +11 -11
- package/dist/tag-snapshot-worker-pi.js +4 -4
- package/package.json +1 -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-jc5fqt5s.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-bn9ts1h0.js"),
|
|
31
|
+
import("./search-vmcbbwm5.js"),
|
|
32
|
+
import("./compartment-chunk-embedding-vt6afvdm.js"),
|
|
33
33
|
import("./embedding-activity-ew6dshfd.js"),
|
|
34
34
|
import("./harness-9872e0ym.js"),
|
|
35
35
|
import("./sqlite-v89bj0yy.js"),
|
|
@@ -15,14 +15,14 @@ import"./index-my0dn413.js";
|
|
|
15
15
|
import"./index-fgs78jyd.js";
|
|
16
16
|
import"./index-gwxaz0z5.js";
|
|
17
17
|
import"./index-399p688g.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-z24d75tz.js";
|
|
19
|
+
import"./index-g0d51qzc.js";
|
|
20
20
|
import {
|
|
21
21
|
replaceCompartmentChunkEmbeddings2,
|
|
22
22
|
recordChunkEmbedBackoff2,
|
|
23
23
|
loadUnembeddedSessionChunkCandidates2,
|
|
24
24
|
countUnembeddedSessionCompartments2
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-dnadppqx.js";
|
|
26
26
|
import {
|
|
27
27
|
recordSessionProjectIdentity,
|
|
28
28
|
acquireGitSweepLease,
|
|
@@ -34,7 +34,7 @@ import"./index-n4wyxcgr.js";
|
|
|
34
34
|
import {
|
|
35
35
|
LATEST_SUPPORTED_VERSION,
|
|
36
36
|
enforceSchemaFence
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-r1hvaza0.js";
|
|
38
38
|
import"./index-0dr64gsy.js";
|
|
39
39
|
import"./index-w1avzkdt.js";
|
|
40
40
|
import"./index-135e8hvg.js";
|
package/dist/{compartment-chunk-embedding-g9a977b8.js → compartment-chunk-embedding-vt6afvdm.js}
RENAMED
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
countSessionCompartmentEmbedCoverage2,
|
|
25
25
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
26
26
|
countUnembeddedSessionCompartmentsPolite2
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-dnadppqx.js";
|
|
28
28
|
import"./index-gwxaz0z5.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-g0d51qzc.js";
|
|
30
|
+
import"./index-z24d75tz.js";
|
|
31
31
|
import"./index-399p688g.js";
|
|
32
32
|
import"./index-hqw0rt9k.js";
|
|
33
33
|
import"./index-my0dn413.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-w5v0ntbw.js";
|
|
4
|
+
import"./index-z6k6jsmh.js";
|
|
5
5
|
import"./index-9p40dgkm.js";
|
|
6
6
|
import"./index-yhzhdp3m.js";
|
|
7
7
|
import"./index-j3pz3a1b.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-dnadppqx.js";
|
|
9
9
|
import"./index-wqpjhx1p.js";
|
|
10
10
|
import"./index-gwxaz0z5.js";
|
|
11
11
|
import"./index-ccanzg8p.js";
|
|
12
12
|
import"./index-hxp6q5f8.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-g0d51qzc.js";
|
|
14
|
+
import"./index-z24d75tz.js";
|
|
15
15
|
import"./index-399p688g.js";
|
|
16
16
|
import"./index-hqw0rt9k.js";
|
|
17
17
|
import"./index-my0dn413.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
messageFtsOrdinalRangeIsMapped2,
|
|
33
33
|
getMessageFtsRowidMapBackfillProgress2,
|
|
34
34
|
deleteUnmappedMessageFtsRows2
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-g0d51qzc.js";
|
|
36
36
|
import {
|
|
37
37
|
deleteChunkEmbedBackoffForSession2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-dnadppqx.js";
|
|
39
39
|
import {
|
|
40
40
|
closeQuietly,
|
|
41
41
|
TAG_TOMBSTONE_OWNER_PREFIX,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./index-w1avzkdt.js";
|
|
48
48
|
import {
|
|
49
49
|
cleanUserText2
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-rjnc6kkf.js";
|
|
51
51
|
import {
|
|
52
52
|
sameProjectDirectory
|
|
53
53
|
} from "./index-wrr9rp9a.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./index-gwxaz0z5.js";
|
|
14
14
|
import {
|
|
15
15
|
messageFtsOrdinalRangeIsMapped2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-g0d51qzc.js";
|
|
17
17
|
|
|
18
18
|
// ../plugin/src/features/magic-context/compartment-chunk-embedding.ts
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./index-fapenpch.js";
|
|
43
43
|
import {
|
|
44
44
|
startMessageFtsRowidMapBackfill2
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-g0d51qzc.js";
|
|
46
46
|
import {
|
|
47
47
|
LKG_SLOT_CHUNKS_DDL,
|
|
48
48
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -1307,7 +1307,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1307
1307
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1308
1308
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1309
1309
|
return;
|
|
1310
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1310
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-p0cexvvs.js"));
|
|
1311
1311
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-e3r8ddh1.js"));
|
|
1312
1312
|
if (signal.aborted)
|
|
1313
1313
|
return;
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
hasRawSessionMessageByIdFromDb2,
|
|
73
73
|
readRawSeedTailFromDb2,
|
|
74
74
|
readRawSessionBoundaryEndpointsFromDb2
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-z24d75tz.js";
|
|
76
76
|
import {
|
|
77
77
|
logSlowWriteTransaction
|
|
78
78
|
} from "./index-hqw0rt9k.js";
|
|
@@ -4700,6 +4700,20 @@ function readRawSessionMessageOrdinalById2(sessionId, messageId) {
|
|
|
4700
4700
|
return null;
|
|
4701
4701
|
return withReadOnlySessionDb((db) => readRawSessionMessageOrdinalByIdFromDb2(db, sessionId, messageId));
|
|
4702
4702
|
}
|
|
4703
|
+
function resolveHistorianChunkStart2(sessionId, newest) {
|
|
4704
|
+
if (!newest)
|
|
4705
|
+
return 1;
|
|
4706
|
+
const fallback = newest.endMessage + 1;
|
|
4707
|
+
if (hasRawMessageProvider2(sessionId))
|
|
4708
|
+
return fallback;
|
|
4709
|
+
const endId = newest.endMessageId;
|
|
4710
|
+
if (typeof endId !== "string" || endId.length === 0)
|
|
4711
|
+
return fallback;
|
|
4712
|
+
const ordinal = readRawSessionMessageOrdinalById2(sessionId, endId);
|
|
4713
|
+
if (typeof ordinal !== "number" || !Number.isFinite(ordinal) || ordinal < 1)
|
|
4714
|
+
return fallback;
|
|
4715
|
+
return ordinal + 1;
|
|
4716
|
+
}
|
|
4703
4717
|
function readRawSessionMessageOrderPosition(sessionId, messageId) {
|
|
4704
4718
|
const provider = sessionProviders.get(sessionId)?.provider;
|
|
4705
4719
|
if (provider) {
|
|
@@ -5200,4 +5214,4 @@ function readRawSessionSeedTail2(sessionId, boundaryId, onQuery) {
|
|
|
5200
5214
|
});
|
|
5201
5215
|
}
|
|
5202
5216
|
|
|
5203
|
-
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, isCoveredInstructionRow, 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, 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, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
|
|
5217
|
+
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, isCoveredInstructionRow, 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, 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 };
|
|
@@ -720,6 +720,20 @@ function survivingAnchor(db, set) {
|
|
|
720
720
|
}
|
|
721
721
|
var ordinalCheckpoints = new WeakMap;
|
|
722
722
|
var ordinalSummarySeeds = new WeakMap;
|
|
723
|
+
function hasLateCommitBehindCheckpoint(db, sessionId, scan) {
|
|
724
|
+
const tail = scan.checkpoints?.at(-1);
|
|
725
|
+
if (!tail || scan.maxRowid === undefined)
|
|
726
|
+
return false;
|
|
727
|
+
const row = db.prepare(`SELECT COUNT(*) AS count FROM message
|
|
728
|
+
WHERE rowid > ? AND +session_id = ?
|
|
729
|
+
AND (time_created, id) <= (?, ?)
|
|
730
|
+
AND NOT (${EXCLUDED_ROW_SQL})`).get(scan.maxRowid, sessionId, tail.timeCreated, tail.id);
|
|
731
|
+
return typeof row?.count === "number" && row.count > 0;
|
|
732
|
+
}
|
|
733
|
+
function discardRetainedOrdinalRanks(db, sessionId) {
|
|
734
|
+
ordinalCheckpoints.get(db)?.delete(sessionId);
|
|
735
|
+
ordinalSummarySeeds.get(db)?.delete(sessionId);
|
|
736
|
+
}
|
|
723
737
|
var ORDINAL_LOOKUP_LIMIT = 512;
|
|
724
738
|
function currentOrdinalCheckpoints(db, sessionId) {
|
|
725
739
|
const cached = ordinalCheckpoints.get(db)?.get(sessionId);
|
|
@@ -750,10 +764,16 @@ function extendOrdinalCheckpoints(db, sessionId, scan, limit) {
|
|
|
750
764
|
scan.sessionRows = points.at(-1)?.storedCount ?? 0;
|
|
751
765
|
}
|
|
752
766
|
const tail = points.at(-1);
|
|
753
|
-
const rows = db.prepare(`SELECT id, time_created AS timeCreated, ${EXCLUDED_ROW_SQL} AS excluded FROM message
|
|
767
|
+
const rows = db.prepare(`SELECT id, time_created AS timeCreated, rowid AS rowid, ${EXCLUDED_ROW_SQL} AS excluded FROM message
|
|
754
768
|
WHERE session_id=?${tail ? " AND (time_created,id) > (?,?)" : ""}
|
|
755
769
|
ORDER BY time_created,id${limit === undefined ? "" : ` LIMIT ${limit + 1}`}`).all(sessionId, ...tail ? [tail.timeCreated, tail.id] : []);
|
|
756
770
|
ordinalJsonRowsRead += rows.length;
|
|
771
|
+
if (hasLateCommitBehindCheckpoint(db, sessionId, scan)) {
|
|
772
|
+
discardRetainedOrdinalRanks(db, sessionId);
|
|
773
|
+
if (isMainThread)
|
|
774
|
+
forgetRawSessionSummaryRows2(sessionId);
|
|
775
|
+
return false;
|
|
776
|
+
}
|
|
757
777
|
if (limit !== undefined && rows.length > limit)
|
|
758
778
|
return false;
|
|
759
779
|
let total = scan.total ?? 0;
|
|
@@ -770,6 +790,13 @@ function extendOrdinalCheckpoints(db, sessionId, scan, limit) {
|
|
|
770
790
|
scan.checkpoints = points;
|
|
771
791
|
scan.sessionRows += rows.length;
|
|
772
792
|
scan.total = total;
|
|
793
|
+
if (rows.length > 0) {
|
|
794
|
+
let maxRowid = scan.maxRowid ?? -1;
|
|
795
|
+
for (const row of rows)
|
|
796
|
+
if (row.rowid > maxRowid)
|
|
797
|
+
maxRowid = row.rowid;
|
|
798
|
+
scan.maxRowid = maxRowid;
|
|
799
|
+
}
|
|
773
800
|
return true;
|
|
774
801
|
}
|
|
775
802
|
|
|
@@ -790,6 +817,10 @@ function rawOrdinalSummarySeed2(db, sessionId) {
|
|
|
790
817
|
ids: [...new Set([...seed.scan.ids, ...writtenSummaryIds.get(sessionId) ?? []])]
|
|
791
818
|
};
|
|
792
819
|
}
|
|
820
|
+
function dropRawSessionOrdinalCheckpoints2(db, sessionId) {
|
|
821
|
+
discardRetainedOrdinalRanks(db, sessionId);
|
|
822
|
+
forgetRawSessionSummaryRows2(sessionId);
|
|
823
|
+
}
|
|
793
824
|
function boundedOrdinalPrefix(db, sessionId, through) {
|
|
794
825
|
const cached = currentOrdinalCheckpoints(db, sessionId);
|
|
795
826
|
if (cached && through === null)
|
|
@@ -828,8 +859,7 @@ function boundedOrdinalPrefix(db, sessionId, through) {
|
|
|
828
859
|
}
|
|
829
860
|
function scanRawSessionSummaryRows2(db, sessionId, previous) {
|
|
830
861
|
return withReadSnapshot(db, () => {
|
|
831
|
-
if (previous?.checkpoints) {
|
|
832
|
-
extendOrdinalCheckpoints(db, sessionId, previous);
|
|
862
|
+
if (previous?.checkpoints && extendOrdinalCheckpoints(db, sessionId, previous)) {
|
|
833
863
|
return previous;
|
|
834
864
|
}
|
|
835
865
|
if (previous) {
|
|
@@ -861,12 +891,15 @@ function scanRawSessionSummaryRows2(db, sessionId, previous) {
|
|
|
861
891
|
}
|
|
862
892
|
anchors.sort((left, right) => right.rowid - left.rowid);
|
|
863
893
|
anchors.length = Math.min(anchors.length, SUMMARY_ANCHOR_LIMIT);
|
|
864
|
-
const keys = db.prepare(`SELECT id, time_created AS timeCreated, ${EXCLUDED_ROW_SQL} AS excluded FROM message WHERE session_id = ?
|
|
894
|
+
const keys = db.prepare(`SELECT id, time_created AS timeCreated, rowid AS rowid, ${EXCLUDED_ROW_SQL} AS excluded FROM message WHERE session_id = ?
|
|
865
895
|
ORDER BY time_created, id`).all(sessionId);
|
|
866
896
|
const checkpoints = [];
|
|
867
897
|
let total = 0;
|
|
898
|
+
let maxRowid;
|
|
868
899
|
for (let index = 0;index < keys.length; index++) {
|
|
869
900
|
const key = keys[index];
|
|
901
|
+
if (typeof key.rowid === "number")
|
|
902
|
+
maxRowid = maxRowid === undefined ? key.rowid : Math.max(maxRowid, key.rowid);
|
|
870
903
|
if (key.excluded !== 1)
|
|
871
904
|
total++;
|
|
872
905
|
if (index % 256 === 255 || index === keys.length - 1)
|
|
@@ -877,7 +910,7 @@ function scanRawSessionSummaryRows2(db, sessionId, previous) {
|
|
|
877
910
|
storedCount: index + 1
|
|
878
911
|
});
|
|
879
912
|
}
|
|
880
|
-
return { anchors, ids, sessionRows, checkpoints, total };
|
|
913
|
+
return { anchors, ids, sessionRows, checkpoints, total, maxRowid };
|
|
881
914
|
});
|
|
882
915
|
}
|
|
883
916
|
function getRawSessionSummaryEpoch2(sessionId) {
|
|
@@ -1285,4 +1318,4 @@ function readRawSessionBoundaryEndpointsFromDb2(db, sessionId, ids, blockIds = [
|
|
|
1285
1318
|
}
|
|
1286
1319
|
}
|
|
1287
1320
|
|
|
1288
|
-
export { runSessionWarmupWorker, prewarmRawSessionOrdinalsForDb, areRustHistorianSyntheticParts2, isStrictGapHealingMessage2, readRawSessionMessagesFromDb2, readRawSessionMessagePageFromDb2, RAW_SUMMARY_TEXT_MAX_CHARS2, readRawSessionMessageSummaryPageFromDb2, countRawSessionMessageOrdinalsFromDb2, readRawSessionMessageIdOrdinalsForRangeFromDb2, readRawSessionMessageIdsAtOrdinalsFromDb2, readRawSessionMessageOrdinalPageFromDb2, countStoredRawSessionMessagesFromDb2, readRawSessionTailFromDb2, buildInMemoryTailRawMessages2, readRawSessionMessagePartsByIdFromDb2, forgetRawSessionOrdinalWatermark2, forgetRawSessionSummaryRows2, noteRawSessionSummaryRowWritten2, RawOrdinalsNotReady2, rawOrdinalSummarySeed2, scanRawSessionSummaryRows2, getRawSessionSummaryEpoch2, installRawSessionSummaryScan2, isRawSessionSummaryWarm2, readRawSessionMessageOrdinalByIdFromDb2, readRawSessionMessageByIdFromDb2, hasRawSessionMessageByIdFromDb2, readRawSeedTailFromDb2, readRawSessionBoundaryEndpointsFromDb2 };
|
|
1321
|
+
export { runSessionWarmupWorker, prewarmRawSessionOrdinalsForDb, areRustHistorianSyntheticParts2, isStrictGapHealingMessage2, readRawSessionMessagesFromDb2, readRawSessionMessagePageFromDb2, RAW_SUMMARY_TEXT_MAX_CHARS2, readRawSessionMessageSummaryPageFromDb2, countRawSessionMessageOrdinalsFromDb2, readRawSessionMessageIdOrdinalsForRangeFromDb2, readRawSessionMessageIdsAtOrdinalsFromDb2, readRawSessionMessageOrdinalPageFromDb2, countStoredRawSessionMessagesFromDb2, readRawSessionTailFromDb2, buildInMemoryTailRawMessages2, readRawSessionMessagePartsByIdFromDb2, forgetRawSessionOrdinalWatermark2, forgetRawSessionSummaryRows2, noteRawSessionSummaryRowWritten2, RawOrdinalsNotReady2, rawOrdinalSummarySeed2, dropRawSessionOrdinalCheckpoints2, scanRawSessionSummaryRows2, getRawSessionSummaryEpoch2, installRawSessionSummaryScan2, isRawSessionSummaryWarm2, readRawSessionMessageOrdinalByIdFromDb2, readRawSessionMessageByIdFromDb2, hasRawSessionMessageByIdFromDb2, readRawSeedTailFromDb2, readRawSessionBoundaryEndpointsFromDb2 };
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
countSessionCompartmentEmbedCoverage2,
|
|
42
42
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
43
43
|
countUnembeddedSessionCompartmentsPolite2
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-dnadppqx.js";
|
|
45
45
|
import {
|
|
46
46
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
47
47
|
} from "./index-ccanzg8p.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
visitRawSessionMessages2,
|
|
68
68
|
readRawSessionMessageById2,
|
|
69
69
|
readSessionChunk2
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-rjnc6kkf.js";
|
|
71
71
|
import {
|
|
72
72
|
isRecord,
|
|
73
73
|
providerVisibleMessage,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
V2StoreReader,
|
|
109
109
|
deleteSessionScopedRows,
|
|
110
110
|
getLastIndexedOrdinal2
|
|
111
|
-
} from "./index-
|
|
111
|
+
} from "./index-87xm7z44.js";
|
|
112
112
|
import {
|
|
113
113
|
BoundedSessionMap,
|
|
114
114
|
resolveOpenCodeDbPath,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
} from "./index-23t8ryqw.js";
|
|
117
117
|
import {
|
|
118
118
|
noteRawSessionSummaryRowWritten2
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-z24d75tz.js";
|
|
120
120
|
import {
|
|
121
121
|
SubcClient,
|
|
122
122
|
connectionFileExists,
|
|
@@ -136,10 +136,10 @@ import {
|
|
|
136
136
|
unregisterProjectEmbedding2,
|
|
137
137
|
getProjectEmbeddingSnapshot2,
|
|
138
138
|
embedTextForProject2
|
|
139
|
-
} from "./index-
|
|
139
|
+
} from "./index-z6k6jsmh.js";
|
|
140
140
|
import {
|
|
141
141
|
getErrorMessage
|
|
142
|
-
} from "./index-
|
|
142
|
+
} from "./index-r1hvaza0.js";
|
|
143
143
|
import {
|
|
144
144
|
V2_MEMORY_CATEGORIES,
|
|
145
145
|
CATEGORY_PRIORITY,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
resolveMemoriesByIdsForSearch2,
|
|
176
176
|
unifiedSearch2,
|
|
177
177
|
formatSearchResults2
|
|
178
|
-
} from "./index-
|
|
178
|
+
} from "./index-zz7dnyh6.js";
|
|
179
179
|
import {
|
|
180
180
|
computeCueContentHash,
|
|
181
181
|
getMuralCueState,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
} from "./index-6wdwv3a6.js";
|
|
207
207
|
import {
|
|
208
208
|
renderSearchArchive2
|
|
209
|
-
} from "./index-
|
|
209
|
+
} from "./index-kbswhkc8.js";
|
|
210
210
|
import {
|
|
211
211
|
computeNormalizedHash
|
|
212
212
|
} from "./index-9x1f96r8.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
35
35
|
peekCompartmentChunkSearchPool2,
|
|
36
36
|
warmCompartmentChunkSearchPool2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-dnadppqx.js";
|
|
38
38
|
import {
|
|
39
39
|
recordEmbeddingMeasurement,
|
|
40
40
|
saveCommitEmbedding,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
getProjectEmbeddingSnapshot2,
|
|
53
53
|
embedTextForProject2,
|
|
54
54
|
embedItemsForProject2
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-z6k6jsmh.js";
|
|
56
56
|
import {
|
|
57
57
|
saveEmbeddingIfHashMatches,
|
|
58
58
|
getProjectEmbeddings2
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
isEmbeddingEnabled,
|
|
63
63
|
embedText,
|
|
64
64
|
ensureMemoryEmbeddings2
|
|
65
|
-
} from "./index-
|
|
65
|
+
} from "./index-w5v0ntbw.js";
|
|
66
66
|
import {
|
|
67
67
|
getMemorySelectColumns2,
|
|
68
68
|
isMemoryRow2,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
keywordRelevance,
|
|
83
83
|
matchedSearchSnippet,
|
|
84
84
|
getIndexedMessageCorpusSize2
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-87xm7z44.js";
|
|
86
86
|
import {
|
|
87
87
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
88
88
|
withMessageFtsSessionFilter
|
package/dist/index.js
CHANGED
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
registerTodoStateLifecycle,
|
|
252
252
|
syncCtxMemoryToolEnabled,
|
|
253
253
|
registerMagicContextTools
|
|
254
|
-
} from "./index-
|
|
254
|
+
} from "./index-zpmz6x24.js";
|
|
255
255
|
import"./index-4knyh1kt.js";
|
|
256
256
|
import {
|
|
257
257
|
canonicalModelIdentity,
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
openCurrentDatabase,
|
|
293
293
|
openDatabaseAsync,
|
|
294
294
|
closeDatabase
|
|
295
|
-
} from "./index-
|
|
295
|
+
} from "./index-r1hvaza0.js";
|
|
296
296
|
import {
|
|
297
297
|
pruneMissingProjectIdentities,
|
|
298
298
|
setHomeProjectPermission,
|
|
@@ -466,7 +466,7 @@ import {
|
|
|
466
466
|
getRawSessionTagKeysThrough2,
|
|
467
467
|
getLegacyProtectedTailStartOrdinal2,
|
|
468
468
|
readSessionChunk2
|
|
469
|
-
} from "./index-
|
|
469
|
+
} from "./index-rjnc6kkf.js";
|
|
470
470
|
import {
|
|
471
471
|
UNKNOWN_FIT_RATIO,
|
|
472
472
|
hasMeasuredDecisionCalibration,
|
|
@@ -616,7 +616,7 @@ import {
|
|
|
616
616
|
indexSingleMessage2,
|
|
617
617
|
indexMessagesAfterOrdinal2,
|
|
618
618
|
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
619
|
-
} from "./index-
|
|
619
|
+
} from "./index-87xm7z44.js";
|
|
620
620
|
import {
|
|
621
621
|
BoundedSessionMap,
|
|
622
622
|
resolveOpenCodeDbPath,
|
|
@@ -633,11 +633,11 @@ import {
|
|
|
633
633
|
import {
|
|
634
634
|
runSessionWarmupWorker,
|
|
635
635
|
RAW_SUMMARY_TEXT_MAX_CHARS2
|
|
636
|
-
} from "./index-
|
|
636
|
+
} from "./index-z24d75tz.js";
|
|
637
637
|
import {
|
|
638
638
|
formatSynapseLaneDescriptor
|
|
639
639
|
} from "./index-gwxaz0z5.js";
|
|
640
|
-
import"./index-
|
|
640
|
+
import"./index-g0d51qzc.js";
|
|
641
641
|
import {
|
|
642
642
|
buildCanonicalChunkTextFromFts2,
|
|
643
643
|
buildCompartmentSummaryFallbackText2,
|
|
@@ -647,7 +647,7 @@ import {
|
|
|
647
647
|
replaceCompartmentChunkEmbeddings2,
|
|
648
648
|
deleteChunkEmbedBackoffForSession2,
|
|
649
649
|
chunkWindowSourceKey2
|
|
650
|
-
} from "./index-
|
|
650
|
+
} from "./index-dnadppqx.js";
|
|
651
651
|
import {
|
|
652
652
|
recordSessionProjectIdentity,
|
|
653
653
|
GIT_SWEEP_LEASE_RENEWAL_MS,
|
|
@@ -682,7 +682,7 @@ import {
|
|
|
682
682
|
embedSessionCompartmentChunks2,
|
|
683
683
|
getEmbeddingCoverageStatus2,
|
|
684
684
|
getAutoEmbeddingSessionCoverage2
|
|
685
|
-
} from "./index-
|
|
685
|
+
} from "./index-z6k6jsmh.js";
|
|
686
686
|
import {
|
|
687
687
|
rememberV1HiddenRun
|
|
688
688
|
} from "./index-6x556c2q.js";
|
|
@@ -747,7 +747,7 @@ import {
|
|
|
747
747
|
normalizeVerificationFiles,
|
|
748
748
|
indexCommitsForProject,
|
|
749
749
|
embedUnembeddedCommits
|
|
750
|
-
} from "./index-
|
|
750
|
+
} from "./index-zz7dnyh6.js";
|
|
751
751
|
import {
|
|
752
752
|
setEmbeddingSessionBusy2,
|
|
753
753
|
isEmbeddingHostBusy2
|
|
@@ -783,7 +783,7 @@ import {
|
|
|
783
783
|
} from "./index-wqpjhx1p.js";
|
|
784
784
|
import {
|
|
785
785
|
cosineSimilarity
|
|
786
|
-
} from "./index-
|
|
786
|
+
} from "./index-w5v0ntbw.js";
|
|
787
787
|
import"./index-6wdwv3a6.js";
|
|
788
788
|
import {
|
|
789
789
|
DREAMER_PRIMER_INVESTIGATOR_ALLOWED_TOOLS,
|
|
@@ -811,10 +811,10 @@ import {
|
|
|
811
811
|
drainPiTagSnapshotSession,
|
|
812
812
|
assertPiTagSnapshotReady,
|
|
813
813
|
ensurePiTagSnapshotReady
|
|
814
|
-
} from "./index-
|
|
814
|
+
} from "./index-wpy2rzb2.js";
|
|
815
815
|
import"./index-jn44h81p.js";
|
|
816
816
|
import"./index-1cvyaw9a.js";
|
|
817
|
-
import"./index-
|
|
817
|
+
import"./index-kbswhkc8.js";
|
|
818
818
|
import {
|
|
819
819
|
__toESM
|
|
820
820
|
} from "./index-22jkk6wg.js";
|
|
@@ -3556,7 +3556,7 @@ function startHostStallProfilerSwitch() {
|
|
|
3556
3556
|
// package.json
|
|
3557
3557
|
var package_default = {
|
|
3558
3558
|
name: "@cortexkit/pi-magic-context",
|
|
3559
|
-
version: "0.49.
|
|
3559
|
+
version: "0.49.26",
|
|
3560
3560
|
type: "module",
|
|
3561
3561
|
description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
|
|
3562
3562
|
main: "dist/index.js",
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
7
|
getMessageFtsRowidMapBackfillProgress2,
|
|
8
8
|
deleteUnmappedMessageFtsRows2
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-g0d51qzc.js";
|
|
10
|
+
import"./index-z24d75tz.js";
|
|
11
11
|
import"./index-399p688g.js";
|
|
12
12
|
import"./index-hqw0rt9k.js";
|
|
13
13
|
import"./index-2qtx0q6h.js";
|
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
markMessageIndexDirty2,
|
|
14
14
|
getIndexableContent2,
|
|
15
15
|
indexSingleMessage2
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-87xm7z44.js";
|
|
17
17
|
import"./index-n8e5e9fp.js";
|
|
18
18
|
import"./index-my0dn413.js";
|
|
19
19
|
import"./index-w1avzkdt.js";
|
|
20
20
|
import"./index-ccanzg8p.js";
|
|
21
21
|
import"./index-399p688g.js";
|
|
22
22
|
import"./index-54wmg4rj.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-z24d75tz.js";
|
|
24
24
|
import"./index-23t8ryqw.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-rjnc6kkf.js";
|
|
26
26
|
import"./index-6x556c2q.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-g0d51qzc.js";
|
|
28
28
|
import"./index-gwxaz0z5.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-dnadppqx.js";
|
|
30
30
|
import"./index-hqw0rt9k.js";
|
|
31
31
|
|
|
32
32
|
// ../plugin/src/features/magic-context/message-index-bounded.ts
|
|
@@ -17,18 +17,18 @@ import {
|
|
|
17
17
|
indexMessagesAfterOrdinal2,
|
|
18
18
|
indexSourcesAfterOrdinal2,
|
|
19
19
|
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
} from "./index-87xm7z44.js";
|
|
21
|
+
import"./index-dnadppqx.js";
|
|
22
|
+
import"./index-rjnc6kkf.js";
|
|
23
23
|
import"./index-n8e5e9fp.js";
|
|
24
24
|
import"./index-6x556c2q.js";
|
|
25
25
|
import"./index-gwxaz0z5.js";
|
|
26
26
|
import"./index-ccanzg8p.js";
|
|
27
27
|
import"./index-n4wyxcgr.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-g0d51qzc.js";
|
|
29
29
|
import"./index-23t8ryqw.js";
|
|
30
30
|
import"./index-w1avzkdt.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-z24d75tz.js";
|
|
32
32
|
import"./index-399p688g.js";
|
|
33
33
|
import"./index-hqw0rt9k.js";
|
|
34
34
|
import"./index-my0dn413.js";
|
package/dist/migration-worker.js
CHANGED
|
@@ -20,11 +20,11 @@ import"./index-fapenpch.js";
|
|
|
20
20
|
import {
|
|
21
21
|
setSqlitePragmaConfig,
|
|
22
22
|
initializeDatabase
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-r1hvaza0.js";
|
|
24
24
|
import"./index-399p688g.js";
|
|
25
25
|
import"./index-54wmg4rj.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
import"./index-z24d75tz.js";
|
|
27
|
+
import"./index-g0d51qzc.js";
|
|
28
28
|
import"./index-my0dn413.js";
|
|
29
29
|
import"./index-hqw0rt9k.js";
|
|
30
30
|
|
package/dist/{project-embedding-registry-9e82qsb6.js → project-embedding-registry-bn9ts1h0.js}
RENAMED
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
sweepAllRegisteredProjects2,
|
|
34
34
|
_setTestProviderFactoryForProject2,
|
|
35
35
|
_resetProjectEmbeddingRegistryForTests2
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-z6k6jsmh.js";
|
|
37
37
|
import"./index-9p40dgkm.js";
|
|
38
38
|
import"./index-yhzhdp3m.js";
|
|
39
39
|
import"./index-j3pz3a1b.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-dnadppqx.js";
|
|
41
41
|
import"./index-wqpjhx1p.js";
|
|
42
42
|
import"./index-gwxaz0z5.js";
|
|
43
43
|
import"./index-ccanzg8p.js";
|
|
44
44
|
import"./index-hxp6q5f8.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
45
|
+
import"./index-g0d51qzc.js";
|
|
46
|
+
import"./index-z24d75tz.js";
|
|
47
47
|
import"./index-399p688g.js";
|
|
48
48
|
import"./index-hqw0rt9k.js";
|
|
49
49
|
import"./index-my0dn413.js";
|
|
@@ -30,7 +30,7 @@ async function main() {
|
|
|
30
30
|
{ log }
|
|
31
31
|
] = await Promise.all([
|
|
32
32
|
import("./sqlite-v89bj0yy.js"),
|
|
33
|
-
import("./read-session-raw-
|
|
33
|
+
import("./read-session-raw-mq03ws9v.js"),
|
|
34
34
|
import("./harness-9872e0ym.js"),
|
|
35
35
|
import("./logger-shetp43v.js")
|
|
36
36
|
]);
|
|
@@ -46,13 +46,13 @@ async function main() {
|
|
|
46
46
|
openConnections.add(db);
|
|
47
47
|
db.exec("PRAGMA busy_timeout = 250");
|
|
48
48
|
if (input.ftsRowidBackfill) {
|
|
49
|
-
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-
|
|
49
|
+
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-xe3ss2g3.js");
|
|
50
50
|
db.exec("PRAGMA busy_timeout = 0");
|
|
51
51
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
52
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
53
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
55
|
-
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-jw2wm4tw.js");
|
|
55
|
+
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-mq03ws9v.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
58
58
|
try {
|
|
@@ -84,7 +84,7 @@ async function main() {
|
|
|
84
84
|
{ configureContextDatabasePragmas }
|
|
85
85
|
] = await Promise.all([
|
|
86
86
|
import("./harness-9872e0ym.js"),
|
|
87
|
-
import("./message-index-
|
|
87
|
+
import("./message-index-jv1m3g8d.js"),
|
|
88
88
|
import("./sqlite-context-pragmas-gcgch6qz.js")
|
|
89
89
|
]);
|
|
90
90
|
setHarness(input.harness ?? "opencode");
|
|
@@ -104,7 +104,7 @@ async function main() {
|
|
|
104
104
|
const { setHarness } = await import("./harness-9872e0ym.js");
|
|
105
105
|
setHarness(input.harness ?? "opencode");
|
|
106
106
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
107
|
-
import("./message-index-bounded-
|
|
107
|
+
import("./message-index-bounded-2zffszp9.js"),
|
|
108
108
|
import("./sqlite-context-pragmas-gcgch6qz.js")
|
|
109
109
|
]);
|
|
110
110
|
configureContextDatabasePragmas(db);
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
readRawSessionBoundaryEndpoints2,
|
|
26
26
|
hasRawSessionMessageById2,
|
|
27
27
|
readRawSessionMessageOrdinalById2,
|
|
28
|
+
resolveHistorianChunkStart2,
|
|
28
29
|
compareRawSessionMessageOrder2,
|
|
29
30
|
readRawSessionMessageById2,
|
|
30
31
|
getRawSessionMessageCount2,
|
|
@@ -35,13 +36,13 @@ import {
|
|
|
35
36
|
readSessionChunk2,
|
|
36
37
|
getRawSessionMessageIdsThrough2,
|
|
37
38
|
readRawSessionSeedTail2
|
|
38
|
-
} from "./index-
|
|
39
|
+
} from "./index-rjnc6kkf.js";
|
|
39
40
|
import"./index-n8e5e9fp.js";
|
|
40
41
|
import"./index-6x556c2q.js";
|
|
41
42
|
import"./index-ccanzg8p.js";
|
|
42
43
|
import"./index-23t8ryqw.js";
|
|
43
44
|
import"./index-w1avzkdt.js";
|
|
44
|
-
import"./index-
|
|
45
|
+
import"./index-z24d75tz.js";
|
|
45
46
|
import"./index-399p688g.js";
|
|
46
47
|
import"./index-hqw0rt9k.js";
|
|
47
48
|
import {
|
|
@@ -84,6 +85,7 @@ export {
|
|
|
84
85
|
readRawSessionMessages2 as readRawSessionMessages,
|
|
85
86
|
readRawSessionSeedTail2 as readRawSessionSeedTail,
|
|
86
87
|
readSessionChunk2 as readSessionChunk,
|
|
88
|
+
resolveHistorianChunkStart2 as resolveHistorianChunkStart,
|
|
87
89
|
resolveHostServedBoundaryId2 as resolveHostServedBoundaryId,
|
|
88
90
|
setBoundedRawMessageProvider2 as setBoundedRawMessageProvider,
|
|
89
91
|
setRawMessageProvider2 as setRawMessageProvider,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
noteRawSessionSummaryRowWritten2,
|
|
19
19
|
RawOrdinalsNotReady2,
|
|
20
20
|
rawOrdinalSummarySeed2,
|
|
21
|
+
dropRawSessionOrdinalCheckpoints2,
|
|
21
22
|
scanRawSessionSummaryRows2,
|
|
22
23
|
getRawSessionSummaryEpoch2,
|
|
23
24
|
installRawSessionSummaryScan2,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
hasRawSessionMessageByIdFromDb2,
|
|
28
29
|
readRawSeedTailFromDb2,
|
|
29
30
|
readRawSessionBoundaryEndpointsFromDb2
|
|
30
|
-
} from "./index-
|
|
31
|
+
} from "./index-z24d75tz.js";
|
|
31
32
|
import"./index-399p688g.js";
|
|
32
33
|
import"./index-2qtx0q6h.js";
|
|
33
34
|
import"./index-fgs78jyd.js";
|
|
@@ -40,6 +41,7 @@ export {
|
|
|
40
41
|
buildInMemoryTailRawMessages2 as buildInMemoryTailRawMessages,
|
|
41
42
|
countRawSessionMessageOrdinalsFromDb2 as countRawSessionMessageOrdinalsFromDb,
|
|
42
43
|
countStoredRawSessionMessagesFromDb2 as countStoredRawSessionMessagesFromDb,
|
|
44
|
+
dropRawSessionOrdinalCheckpoints2 as dropRawSessionOrdinalCheckpoints,
|
|
43
45
|
forgetRawSessionOrdinalWatermark2 as forgetRawSessionOrdinalWatermark,
|
|
44
46
|
forgetRawSessionSummaryRows2 as forgetRawSessionSummaryRows,
|
|
45
47
|
getRawSessionSummaryEpoch2 as getRawSessionSummaryEpoch,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-kbswhkc8.js";
|
|
4
4
|
import"./index-1cvyaw9a.js";
|
|
5
|
-
import"./index-
|
|
5
|
+
import"./index-rjnc6kkf.js";
|
|
6
6
|
import"./index-n8e5e9fp.js";
|
|
7
7
|
import"./index-6x556c2q.js";
|
|
8
8
|
import"./index-ccanzg8p.js";
|
|
9
9
|
import"./index-23t8ryqw.js";
|
|
10
10
|
import"./index-w1avzkdt.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-z24d75tz.js";
|
|
12
12
|
import"./index-399p688g.js";
|
|
13
13
|
import"./index-hqw0rt9k.js";
|
|
14
14
|
import"./index-my0dn413.js";
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-zz7dnyh6.js";
|
|
9
9
|
import"./index-1cvyaw9a.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-87xm7z44.js";
|
|
11
|
+
import"./index-w5v0ntbw.js";
|
|
12
|
+
import"./index-z6k6jsmh.js";
|
|
13
13
|
import"./index-9p40dgkm.js";
|
|
14
14
|
import"./index-29nw7n1r.js";
|
|
15
15
|
import"./index-yhzhdp3m.js";
|
|
16
16
|
import"./index-j3pz3a1b.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-dnadppqx.js";
|
|
18
|
+
import"./index-rjnc6kkf.js";
|
|
19
19
|
import"./index-n8e5e9fp.js";
|
|
20
20
|
import"./index-6x556c2q.js";
|
|
21
21
|
import"./index-wqpjhx1p.js";
|
|
@@ -24,11 +24,11 @@ import"./index-ccanzg8p.js";
|
|
|
24
24
|
import"./index-0dr64gsy.js";
|
|
25
25
|
import"./index-n4wyxcgr.js";
|
|
26
26
|
import"./index-hxp6q5f8.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-g0d51qzc.js";
|
|
28
28
|
import"./index-135e8hvg.js";
|
|
29
29
|
import"./index-23t8ryqw.js";
|
|
30
30
|
import"./index-w1avzkdt.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-z24d75tz.js";
|
|
32
32
|
import"./index-399p688g.js";
|
|
33
33
|
import"./index-hqw0rt9k.js";
|
|
34
34
|
import"./index-my0dn413.js";
|
package/dist/subagent-entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TOKEN_BUDGET_TOOL_REFUSAL
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-rjnc6kkf.js";
|
|
4
4
|
import {
|
|
5
5
|
setHarness2
|
|
6
6
|
} from "./index-0h2mkab2.js";
|
|
@@ -15,11 +15,11 @@ import"./index-n4wyxcgr.js";
|
|
|
15
15
|
import"./index-fapenpch.js";
|
|
16
16
|
import {
|
|
17
17
|
openDatabase
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-r1hvaza0.js";
|
|
19
19
|
import"./index-399p688g.js";
|
|
20
20
|
import"./index-54wmg4rj.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-z24d75tz.js";
|
|
22
|
+
import"./index-g0d51qzc.js";
|
|
23
23
|
import"./index-0dr64gsy.js";
|
|
24
24
|
import"./index-w1avzkdt.js";
|
|
25
25
|
import"./index-135e8hvg.js";
|
|
@@ -31,22 +31,22 @@ import {
|
|
|
31
31
|
ensureProjectRegisteredFromPiDirectory,
|
|
32
32
|
resolvePiHarnessKind,
|
|
33
33
|
registerMagicContextTools
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-zpmz6x24.js";
|
|
35
35
|
import"./index-ccanzg8p.js";
|
|
36
36
|
import"./index-gwxaz0z5.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-dnadppqx.js";
|
|
38
38
|
import"./index-wqpjhx1p.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-z6k6jsmh.js";
|
|
40
40
|
import"./index-9p40dgkm.js";
|
|
41
41
|
import"./index-j3pz3a1b.js";
|
|
42
42
|
import"./index-yhzhdp3m.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-w5v0ntbw.js";
|
|
44
|
+
import"./index-87xm7z44.js";
|
|
45
45
|
import"./index-n8e5e9fp.js";
|
|
46
46
|
import"./index-6x556c2q.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-zz7dnyh6.js";
|
|
48
48
|
import"./index-1cvyaw9a.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-kbswhkc8.js";
|
|
50
50
|
import"./index-29nw7n1r.js";
|
|
51
51
|
import"./index-6wdwv3a6.js";
|
|
52
52
|
import"./index-hqw0rt9k.js";
|
|
@@ -9,13 +9,13 @@ import"./index-fapenpch.js";
|
|
|
9
9
|
import {
|
|
10
10
|
LATEST_SUPPORTED_VERSION,
|
|
11
11
|
getPersistedSchemaVersion
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-r1hvaza0.js";
|
|
13
13
|
import"./index-399p688g.js";
|
|
14
14
|
import {
|
|
15
15
|
exitOnWorkerClose
|
|
16
16
|
} from "./index-54wmg4rj.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-z24d75tz.js";
|
|
18
|
+
import"./index-g0d51qzc.js";
|
|
19
19
|
import"./index-0dr64gsy.js";
|
|
20
20
|
import {
|
|
21
21
|
tagRevisionKey
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
encodePiHydrationOperation,
|
|
32
32
|
PI_FALLBACK_ROW_COLUMNS,
|
|
33
33
|
PI_FALLBACK_ROW_PREDICATE
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-wpy2rzb2.js";
|
|
35
35
|
import"./index-hqw0rt9k.js";
|
|
36
36
|
|
|
37
37
|
// src/tag-snapshot-worker-pi.ts
|
package/package.json
CHANGED