@cortexkit/pi-magic-context 0.49.43 → 0.49.44
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 +1 -1
- package/dist/{compaction-marker-candidates-8qhackvy.js → compaction-marker-candidates-17a21jfn.js} +12 -2
- package/dist/compaction-marker-candidates-worker.js +5 -2
- package/dist/{embedding-backfill-002vyexq.js → embedding-backfill-v9b8gkmp.js} +4 -4
- package/dist/embedding-worker.js +2 -2
- package/dist/{index-j0h89gxy.js → index-025nxwc9.js} +1 -1
- package/dist/{index-p8jpbrj4.js → index-2kmwjq42.js} +64 -12
- package/dist/{index-z7dktknj.js → index-9tcbabqr.js} +2 -2
- package/dist/{index-6cvt64cn.js → index-fjmghcbx.js} +137 -52
- package/dist/{index-jbkwszd5.js → index-gajhgp4k.js} +3 -3
- package/dist/{index-k0csz6pb.js → index-gg9r701n.js} +3 -3
- package/dist/{index-p9jfa33t.js → index-gtd9kaaf.js} +3 -3
- package/dist/{index-ccanzg8p.js → index-gzk7d940.js} +1 -1
- package/dist/{index-mx757f3g.js → index-j2x88zk0.js} +1 -1
- package/dist/{index-a7sj2bam.js → index-p1jxxsth.js} +1 -1
- package/dist/{index-ry84c8dr.js → index-pb0ygvpa.js} +1 -1
- package/dist/{index-2qqsnh1b.js → index-xf3ndcqd.js} +1 -1
- package/dist/{index-g2j58qpq.js → index-zttw4vew.js} +3 -3
- package/dist/index.js +22 -55
- package/dist/{message-index-bounded-39z2atfj.js → message-index-bounded-1gj1pwjy.js} +3 -3
- package/dist/migration-worker.js +1 -1
- package/dist/{project-embedding-registry-16pj4vyf.js → project-embedding-registry-e81zewts.js} +3 -3
- package/dist/raw-ordinal-warmup-worker.js +3 -3
- package/dist/{read-session-chunk-jxq427v6.js → read-session-chunk-r9qy3jzj.js} +2 -2
- package/dist/{render-6bhqgkpq.js → render-dvmk12tf.js} +5 -5
- package/dist/{search-archive-yvdq2nfp.js → search-archive-23s9g6dx.js} +4 -4
- package/dist/{search-45wknkb6.js → search-khaxkbs1.js} +7 -7
- package/dist/subagent-entry.js +13 -13
- package/dist/tag-snapshot-worker-pi.js +1 -1
- package/dist/{v2-archive-reader-bd94n954.js → v2-archive-reader-z7qgxxp0.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
piModelRefToCanonical
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-gzk7d940.js";
|
|
4
4
|
import {
|
|
5
5
|
getHarness2
|
|
6
6
|
} from "./index-0h2mkab2.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
expandToolPart,
|
|
40
40
|
visitRawSessionMessages2,
|
|
41
41
|
readRawSessionMessageById2
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-j2x88zk0.js";
|
|
43
43
|
import {
|
|
44
44
|
isRecord,
|
|
45
45
|
providerVisibleMessage,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
isPidAlive,
|
|
66
66
|
readProcessStartTime
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-p1jxxsth.js";
|
|
68
68
|
import {
|
|
69
69
|
gaDatabasePath2,
|
|
70
70
|
V2StoreReader2
|
|
@@ -6832,7 +6832,7 @@ var MagicContextConfigSchema = object({
|
|
|
6832
6832
|
enabled: boolean2().default(true).describe("Enable smart-note authoring and condition evaluation. Needs a runnable dreamer, which evaluates the conditions: with dreamer.disable true (or no dreamer block) ctx_note offers no surface_condition whatever this says. User-level only: tool definitions are process-wide. Changes require a host restart and rebuild each session's cached prompt once. Pending notes remain stored and unchecked; already-ready notes still surface."),
|
|
6833
6833
|
retina_handoff: boolean2().default(false).describe("When true, dreamer skips smart notes whose surface conditions compiled to retina provider configs at authoring time. Default false keeps both paths active until the retina consumer is deployed.")
|
|
6834
6834
|
}).default({ enabled: true, retina_handoff: false }).describe("Smart-note ownership transition controls."),
|
|
6835
|
-
cache_ttl: union([string2(), object({ default: string2() }).catchall(string2())]).default("5m").describe(`How long Magic Context assumes the provider's cached prefix stays valid.
|
|
6835
|
+
cache_ttl: union([string2(), object({ default: string2() }).catchall(string2())]).default("5m").describe(`How long Magic Context assumes the provider's cached prefix stays valid. It does not change the provider's actual cache lifetime, and it triggers no rebuild or fold: after an expiry the next request replays the same bytes. Magic Context uses it for diagnostics and, on OpenCode 2, to time an idle checkpoint in the host's session store (the experimental Rust transform still rebuilds on it). String (e.g. "5m", "1h", "30s") or per-model object ({ default: "5m", "provider/model": "1h", "provider/*": "never" }); keys resolve most-specific first (exact provider/model, bare model ID, shorter dash-prefixes, then the provider/* wildcard, then default). User and project settings, including an explicit "5m" or object default, apply on the next pass. Only built-in defaults are frozen per session, including across restarts: when unset, GPT-5.6 and later (including gpt-6*, through any provider prefix) use 30m, other models use 5m. /ctx-status shows the effective TTL and whether it comes from your config or a frozen built-in default. Editing the TTL never rewrites prompt bytes. OpenAI documents at least 30 minutes since the latest write or reuse: https://developers.openai.com/api/docs/guides/prompt-caching (Cache lifetime and Summary of model differences). Set to "never" to mean MC never assumes expiry (for a provider cache that an external cache-keep tool keeps warm). Provider-side extended TTL is a separate request-level concern (cache_control: { ttl } in the request body).`),
|
|
6836
6836
|
prompt_surface: PromptSurfaceConfigSchema.default({ default: "full" }).describe("Prompt-surface presets: default is full; models use bare model IDs, provider/model, or provider/* routing keys. Guidance and tool-description overrides are user-level only. OpenCode 1.x, Pi, and OMP register tool descriptions once per process (they follow the default preset). OpenCode 2 rewrites the five ctx_* descriptions per request from the draft model."),
|
|
6837
6837
|
output_reserve: union([
|
|
6838
6838
|
number2().min(0),
|
|
@@ -1788,7 +1788,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1788
1788
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1789
1789
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1790
1790
|
return;
|
|
1791
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1791
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-r9qy3jzj.js"));
|
|
1792
1792
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-x45573rs.js"));
|
|
1793
1793
|
if (signal.aborted)
|
|
1794
1794
|
return;
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getProjectEmbeddingSnapshot2,
|
|
48
48
|
embedTextForProject2,
|
|
49
49
|
embedItemsForProject2
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-9tcbabqr.js";
|
|
51
51
|
import {
|
|
52
52
|
recordEmbeddingMeasurement
|
|
53
53
|
} from "./index-hgd00nas.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isEmbeddingEnabled,
|
|
64
64
|
embedText,
|
|
65
65
|
ensureMemoryEmbeddings2
|
|
66
|
-
} from "./index-
|
|
66
|
+
} from "./index-gajhgp4k.js";
|
|
67
67
|
import {
|
|
68
68
|
getMemorySelectColumns2,
|
|
69
69
|
isMemoryRow2,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
clearIndexedMessages,
|
|
92
92
|
indexSingleMessage,
|
|
93
93
|
indexMessagesAfterOrdinal
|
|
94
|
-
} from "./index-
|
|
94
|
+
} from "./index-025nxwc9.js";
|
|
95
95
|
import {
|
|
96
96
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
97
97
|
withMessageFtsSessionFilter
|
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
registerTodoStateLifecycle,
|
|
151
151
|
syncCtxMemoryToolEnabled,
|
|
152
152
|
registerMagicContextTools
|
|
153
|
-
} from "./index-
|
|
153
|
+
} from "./index-fjmghcbx.js";
|
|
154
154
|
import"./index-4knyh1kt.js";
|
|
155
155
|
import {
|
|
156
156
|
canonicalModelIdentity,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
DEFAULT_HISTORIAN_TIMEOUT_MS,
|
|
169
169
|
DREAM_TASK_PROMOTION_DEFAULTS,
|
|
170
170
|
LIVE_RELOAD_CONFIG_PATHS
|
|
171
|
-
} from "./index-
|
|
171
|
+
} from "./index-gzk7d940.js";
|
|
172
172
|
import {
|
|
173
173
|
FAIL_CLOSED_DOCTOR_COMMAND,
|
|
174
174
|
formatFailClosedBlockingMessage,
|
|
@@ -353,7 +353,7 @@ import {
|
|
|
353
353
|
getRawSessionTagKeysThrough2,
|
|
354
354
|
getLegacyProtectedTailStartOrdinal2,
|
|
355
355
|
readSessionChunk2
|
|
356
|
-
} from "./index-
|
|
356
|
+
} from "./index-j2x88zk0.js";
|
|
357
357
|
import {
|
|
358
358
|
UNKNOWN_FIT_RATIO,
|
|
359
359
|
hasMeasuredDecisionCalibration,
|
|
@@ -490,7 +490,7 @@ import {
|
|
|
490
490
|
openCurrentDatabase,
|
|
491
491
|
openDatabaseAsync,
|
|
492
492
|
closeDatabase
|
|
493
|
-
} from "./index-
|
|
493
|
+
} from "./index-p1jxxsth.js";
|
|
494
494
|
import {
|
|
495
495
|
LkgRecoveryFenceError,
|
|
496
496
|
clearLkgFenceProcessState,
|
|
@@ -607,7 +607,7 @@ import {
|
|
|
607
607
|
getSourceContents,
|
|
608
608
|
recordSubagentInvocation,
|
|
609
609
|
getLatestHistorianInvocationId
|
|
610
|
-
} from "./index-
|
|
610
|
+
} from "./index-gtd9kaaf.js";
|
|
611
611
|
import {
|
|
612
612
|
resolveOpenCodeDbPath,
|
|
613
613
|
assertOpenCodeStoreGeneration,
|
|
@@ -665,7 +665,7 @@ import {
|
|
|
665
665
|
clearCompressionDepthRange,
|
|
666
666
|
cleanSearchText,
|
|
667
667
|
matchedSearchSnippet
|
|
668
|
-
} from "./index-
|
|
668
|
+
} from "./index-025nxwc9.js";
|
|
669
669
|
import {
|
|
670
670
|
rememberV1HiddenRun
|
|
671
671
|
} from "./index-6x556c2q.js";
|
|
@@ -742,7 +742,7 @@ import {
|
|
|
742
742
|
} from "./index-q1yc6bs0.js";
|
|
743
743
|
import {
|
|
744
744
|
getCachedLocalEmbeddingPooling
|
|
745
|
-
} from "./index-
|
|
745
|
+
} from "./index-xf3ndcqd.js";
|
|
746
746
|
import {
|
|
747
747
|
describeShadowBackfillWriteRefusal2,
|
|
748
748
|
contentSha2562,
|
|
@@ -760,10 +760,10 @@ import {
|
|
|
760
760
|
embedSessionCompartmentChunks2,
|
|
761
761
|
getEmbeddingCoverageStatus2,
|
|
762
762
|
getAutoEmbeddingSessionCoverage2
|
|
763
|
-
} from "./index-
|
|
763
|
+
} from "./index-9tcbabqr.js";
|
|
764
764
|
import {
|
|
765
765
|
cosineSimilarity
|
|
766
|
-
} from "./index-
|
|
766
|
+
} from "./index-gajhgp4k.js";
|
|
767
767
|
import {
|
|
768
768
|
USER_FACING_FAILURES,
|
|
769
769
|
renderUserFacingFailure,
|
|
@@ -797,8 +797,8 @@ import {
|
|
|
797
797
|
scheduleClearAndReindex,
|
|
798
798
|
clearSessionTracking,
|
|
799
799
|
createAutoSearchDiagnostics
|
|
800
|
-
} from "./index-
|
|
801
|
-
import"./index-
|
|
800
|
+
} from "./index-zttw4vew.js";
|
|
801
|
+
import"./index-2kmwjq42.js";
|
|
802
802
|
import {
|
|
803
803
|
DREAMER_PRIMER_INVESTIGATOR_ALLOWED_TOOLS,
|
|
804
804
|
buildHiddenAgentRegistrations,
|
|
@@ -828,8 +828,8 @@ import {
|
|
|
828
828
|
} from "./index-wwsfevck.js";
|
|
829
829
|
import"./index-cq71g4dk.js";
|
|
830
830
|
import"./index-1cvyaw9a.js";
|
|
831
|
-
import"./index-
|
|
832
|
-
import"./index-
|
|
831
|
+
import"./index-gg9r701n.js";
|
|
832
|
+
import"./index-pb0ygvpa.js";
|
|
833
833
|
import {
|
|
834
834
|
__toESM
|
|
835
835
|
} from "./index-22jkk6wg.js";
|
|
@@ -3584,7 +3584,7 @@ function startHostStallProfilerSwitch() {
|
|
|
3584
3584
|
// package.json
|
|
3585
3585
|
var package_default = {
|
|
3586
3586
|
name: "@cortexkit/pi-magic-context",
|
|
3587
|
-
version: "0.49.
|
|
3587
|
+
version: "0.49.44",
|
|
3588
3588
|
type: "module",
|
|
3589
3589
|
description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
|
|
3590
3590
|
main: "dist/index.js",
|
|
@@ -24197,7 +24197,7 @@ function parseCacheTtl(ttl) {
|
|
|
24197
24197
|
}
|
|
24198
24198
|
function createScheduler(config) {
|
|
24199
24199
|
return {
|
|
24200
|
-
shouldExecute(sessionMeta, contextUsage,
|
|
24200
|
+
shouldExecute(sessionMeta, contextUsage, _currentTime, sessionId, modelKey, contextLimit) {
|
|
24201
24201
|
if (contextUsage.percentage === 0 && sessionMeta.lastResponseTime === 0) {
|
|
24202
24202
|
return "defer";
|
|
24203
24203
|
}
|
|
@@ -24210,35 +24210,10 @@ function createScheduler(config) {
|
|
|
24210
24210
|
if (contextUsage.percentage >= threshold) {
|
|
24211
24211
|
return "execute";
|
|
24212
24212
|
}
|
|
24213
|
-
let ttlMs;
|
|
24214
|
-
try {
|
|
24215
|
-
ttlMs = parseCacheTtl(sessionMeta.cacheTtl);
|
|
24216
|
-
} catch (error) {
|
|
24217
|
-
if (sessionId) {
|
|
24218
|
-
sessionLog2(sessionId, `invalid cache_ttl "${sessionMeta.cacheTtl}"; falling back to default 5m`, error);
|
|
24219
|
-
} else {
|
|
24220
|
-
log2(`[magic-context] invalid cache_ttl "${sessionMeta.cacheTtl}"; falling back to default 5m`, error);
|
|
24221
|
-
}
|
|
24222
|
-
ttlMs = parseCacheTtl("5m");
|
|
24223
|
-
}
|
|
24224
|
-
const elapsedTime = currentTime - sessionMeta.lastResponseTime;
|
|
24225
|
-
if (elapsedTime > ttlMs) {
|
|
24226
|
-
return "execute";
|
|
24227
|
-
}
|
|
24228
24213
|
return "defer";
|
|
24229
24214
|
}
|
|
24230
24215
|
};
|
|
24231
24216
|
}
|
|
24232
|
-
function computeHardCacheExpired(cacheTtl, lastResponseTime, now, onInvalid) {
|
|
24233
|
-
let ttlMs;
|
|
24234
|
-
try {
|
|
24235
|
-
ttlMs = parseCacheTtl(cacheTtl);
|
|
24236
|
-
} catch (error) {
|
|
24237
|
-
onInvalid?.(error);
|
|
24238
|
-
ttlMs = 5 * 60 * 1000;
|
|
24239
|
-
}
|
|
24240
|
-
return lastResponseTime > 0 && now - lastResponseTime > ttlMs;
|
|
24241
|
-
}
|
|
24242
24217
|
|
|
24243
24218
|
// ../plugin/src/features/magic-context/tagger.ts
|
|
24244
24219
|
var TOOL_COMPOSITE_KEY_SEP = "\x00";
|
|
@@ -24995,7 +24970,6 @@ var CACHE_LOSING_FOLD_REASONS = new Set([
|
|
|
24995
24970
|
"model_change",
|
|
24996
24971
|
"system_hash",
|
|
24997
24972
|
"tool_definitions",
|
|
24998
|
-
"ttl_idle",
|
|
24999
24973
|
"host_compaction"
|
|
25000
24974
|
]);
|
|
25001
24975
|
function sameBytes(left, right) {
|
|
@@ -25369,7 +25343,7 @@ function hasReclaimRide(signals) {
|
|
|
25369
25343
|
return signals.hardFold || signals.force || signals.explicitFlush || signals.publishedHistory || signals.subagentExecute === true || signals.executeReclaim === true || signals.servedShapeRepair === true;
|
|
25370
25344
|
}
|
|
25371
25345
|
function prefixMutationPermitted(gate) {
|
|
25372
|
-
return !gate.signedThinkingHold || gate.firstRender || gate.
|
|
25346
|
+
return !gate.signedThinkingHold || gate.firstRender || gate.emergency;
|
|
25373
25347
|
}
|
|
25374
25348
|
function reclaimRidePermitted(signals, gate) {
|
|
25375
25349
|
return prefixMutationPermitted(gate) && hasReclaimRide(signals);
|
|
@@ -34359,9 +34333,6 @@ function mustMaterializePi(state, db, currentCompartmentsOverride, passSnapshot)
|
|
|
34359
34333
|
if (meta.cachedM0ProjectIdentity !== null && meta.cachedM0ProjectIdentity !== state.projectIdentity) {
|
|
34360
34334
|
return piMaterializeMismatch("project_change", "projectIdentity", meta.cachedM0ProjectIdentity, state.projectIdentity);
|
|
34361
34335
|
}
|
|
34362
|
-
if (hard.cacheExpired && hard.lastResponseTime > 0 && hard.lastResponseTime > (meta.cachedM0MaterializedAt ?? 0)) {
|
|
34363
|
-
return piMaterializeMismatch("ttl_idle", "lastResponseTimeAfterMaterialization", meta.cachedM0MaterializedAt ?? 0, hard.lastResponseTime);
|
|
34364
|
-
}
|
|
34365
34336
|
if (cached.upgradeState !== current.upgradeState) {
|
|
34366
34337
|
return piMaterializeMismatch("renderer_upgrade", "upgradeState", cached.upgradeState, current.upgradeState);
|
|
34367
34338
|
}
|
|
@@ -43538,8 +43509,7 @@ function processSystemPromptForCache(args) {
|
|
|
43538
43509
|
const stableCandidate = dates.stable;
|
|
43539
43510
|
const stableCandidateHash = systemPromptFingerprint(stableCandidate, args.promptSurfacePreset);
|
|
43540
43511
|
const contentOrPresetChanged = !isFirstHash && stableCandidateHash !== previousHash;
|
|
43541
|
-
const
|
|
43542
|
-
const dateMayAdvance = isCacheBusting || idleCacheExpired || contentOrPresetChanged;
|
|
43512
|
+
const dateMayAdvance = isCacheBusting || contentOrPresetChanged;
|
|
43543
43513
|
if (liveDate && !stickyDate) {
|
|
43544
43514
|
stickyDateBySession.set(sessionId, liveDate);
|
|
43545
43515
|
} else if (liveDate && stickyDate && liveDate !== stickyDate) {
|
|
@@ -47848,7 +47818,6 @@ Historian previously failed ${failureCount} time(s), so Magic Context is retryin
|
|
|
47848
47818
|
permission: {
|
|
47849
47819
|
signedThinkingHold: args.signedThinkingHeld === true,
|
|
47850
47820
|
firstRender: false,
|
|
47851
|
-
idleExpiry: false,
|
|
47852
47821
|
emergency: usage.percentage >= historianForceMaterializationPercentage
|
|
47853
47822
|
}
|
|
47854
47823
|
}, args.eligiblePendingDropTagIds, args.primaryExecute === true);
|
|
@@ -48356,12 +48325,11 @@ async function runPipeline(args) {
|
|
|
48356
48325
|
}
|
|
48357
48326
|
const routinePressureAlreadyApplied = !args.sessionMeta.isSubagent && executePressureEligible && routinePressureAppliedBySession.get(args.sessionId) === true;
|
|
48358
48327
|
let hasPendingMaterializeSignal = !protectedSignedPrefix && hasPendingMaterialization(args.sessionId);
|
|
48359
|
-
const heldIdleExpiryRebuild = protectedSignedPrefix && piHardSignals?.cacheExpired === true;
|
|
48360
48328
|
const systemPrefixChangedThisPass = !prefixPreflightContended && effectiveSystemChangedThisPass;
|
|
48361
48329
|
const rideSignals = {
|
|
48362
48330
|
executeReclaim: false,
|
|
48363
48331
|
subagentExecute: args.sessionMeta.isSubagent && args.schedulerDecision === "execute",
|
|
48364
|
-
hardFold: foldBustsServedPrefixThisPass || systemPrefixChangedThisPass || firstRenderBust ||
|
|
48332
|
+
hardFold: foldBustsServedPrefixThisPass || systemPrefixChangedThisPass || firstRenderBust || isCacheBustingPass,
|
|
48365
48333
|
force: (args.forceMaterialization === true || emergencyDropEligible) && (args.contextUsage.percentage >= 95 || getEmergencyInputSample(args.db, args.sessionId) === 0),
|
|
48366
48334
|
explicitFlush: !protectedSignedPrefix && (args.userFlushOrigin === true || hasPendingMaterializationOrigin(pendingMaterializationSessions, args.sessionId, "user_flush")),
|
|
48367
48335
|
publishedHistory: !prefixPreflightContended && publishedM1RefreshedThisPass
|
|
@@ -48369,7 +48337,6 @@ async function runPipeline(args) {
|
|
|
48369
48337
|
const ridePermissionGate = {
|
|
48370
48338
|
signedThinkingHold: protectedSignedPrefix,
|
|
48371
48339
|
firstRender: firstRenderBust,
|
|
48372
|
-
idleExpiry: heldIdleExpiryRebuild,
|
|
48373
48340
|
emergency: emergencyDropEligible
|
|
48374
48341
|
};
|
|
48375
48342
|
let prefixMutationAllowed = prefixMutationPermitted(ridePermissionGate);
|
|
@@ -48385,7 +48352,7 @@ async function runPipeline(args) {
|
|
|
48385
48352
|
onRejectedProjectOverride: (warning) => sessionLog2(args.sessionId, warning)
|
|
48386
48353
|
});
|
|
48387
48354
|
let protectionFloorResolution = resolveProtectionFloor();
|
|
48388
|
-
let shouldRunHeuristics = args.heuristics !== undefined && isCacheBustingPass && (rideSignals.publishedHistory || systemPrefixChangedThisPass || rideSignals.explicitFlush || args.forceMaterialization === true || hasPendingMaterializeSignal || deferredMaterializeEligible || foldBustsServedPrefixThisPass || firstRenderBust ||
|
|
48355
|
+
let shouldRunHeuristics = args.heuristics !== undefined && isCacheBustingPass && (rideSignals.publishedHistory || systemPrefixChangedThisPass || rideSignals.explicitFlush || args.forceMaterialization === true || hasPendingMaterializeSignal || deferredMaterializeEligible || foldBustsServedPrefixThisPass || firstRenderBust || args.recoveryRebuildReason !== undefined && isCacheBustingPass || rideSignals.subagentExecute || args.schedulerDecision === "execute" && !alreadyRanHeuristicsThisTurn);
|
|
48389
48356
|
let unavoidableCarriedIdentityRebuild = false;
|
|
48390
48357
|
if (protectedSignedPrefix && readPiIdentityRebuilds(args.db, args.sessionId).length > 0) {
|
|
48391
48358
|
args.tryReplayHeldIdentityRebuild?.();
|
|
@@ -48904,7 +48871,7 @@ async function runPipeline(args) {
|
|
|
48904
48871
|
const tHeuristic = performance.now();
|
|
48905
48872
|
const providerOverflow = args.providerOverflowRecovery === true;
|
|
48906
48873
|
const recoveryCalibration = sessionDecisionCalibration(args.db, args.sessionId);
|
|
48907
|
-
const independentMutationBeforeHeuristics = pendingOpsDidMutate || systemPrefixChangedThisPass || foldBustsServedPrefixThisPass || identityRebuild || firstRenderBust
|
|
48874
|
+
const independentMutationBeforeHeuristics = pendingOpsDidMutate || systemPrefixChangedThisPass || foldBustsServedPrefixThisPass || identityRebuild || firstRenderBust;
|
|
48908
48875
|
if (args.forceMaterialization === true && independentMutationBeforeHeuristics && getEmergencyInputSample(args.db, args.sessionId) > 0) {
|
|
48909
48876
|
clearEmergencyDropSample(args.db, args.sessionId);
|
|
48910
48877
|
}
|
|
@@ -49547,7 +49514,7 @@ async function runPipeline(args) {
|
|
|
49547
49514
|
prefixMutationAllowed,
|
|
49548
49515
|
strictThinkingKept: protectedSignedPrefix,
|
|
49549
49516
|
signedPrefixRewritten: rewritingSignedPrefix,
|
|
49550
|
-
prefixRebuildAlreadyPriced: firstRenderBust ||
|
|
49517
|
+
prefixRebuildAlreadyPriced: firstRenderBust || !!args.recoveryRebuildReason && isCacheBustingPass,
|
|
49551
49518
|
identityRebuilt: identityRebuild,
|
|
49552
49519
|
servedTagNumbers,
|
|
49553
49520
|
heuristicsExecuted,
|
|
@@ -51205,7 +51172,7 @@ function cacheRows(source, now) {
|
|
|
51205
51172
|
}
|
|
51206
51173
|
rows.push({
|
|
51207
51174
|
label: "Auto-execute",
|
|
51208
|
-
value:
|
|
51175
|
+
value: `at ≥${threshold}`,
|
|
51209
51176
|
tone: "muted"
|
|
51210
51177
|
});
|
|
51211
51178
|
return rows;
|
|
@@ -9,13 +9,13 @@ import"./index-0h2mkab2.js";
|
|
|
9
9
|
import"./index-gymgz20n.js";
|
|
10
10
|
import"./index-dnp1jjar.js";
|
|
11
11
|
import"./index-yacs388s.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-gzk7d940.js";
|
|
13
13
|
import"./index-8sqebjzk.js";
|
|
14
14
|
import"./index-wfqysrwq.js";
|
|
15
15
|
import"./index-x2n261wp.js";
|
|
16
16
|
import"./index-c1dqxr10.js";
|
|
17
17
|
import"./index-n0zjvs3h.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-j2x88zk0.js";
|
|
19
19
|
import"./index-6x556c2q.js";
|
|
20
20
|
import"./index-c6wbq66z.js";
|
|
21
21
|
import {
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
markMessageIndexDirty,
|
|
26
26
|
getIndexableContent,
|
|
27
27
|
indexSingleMessage
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-025nxwc9.js";
|
|
29
29
|
import"./index-ck8wj35v.js";
|
|
30
30
|
import"./index-0wtm7g7f.js";
|
|
31
31
|
|
package/dist/migration-worker.js
CHANGED
package/dist/{project-embedding-registry-16pj4vyf.js → project-embedding-registry-e81zewts.js}
RENAMED
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
sweepAllRegisteredProjects2,
|
|
34
34
|
_setTestProviderFactoryForProject2,
|
|
35
35
|
_resetProjectEmbeddingRegistryForTests2
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-9tcbabqr.js";
|
|
37
37
|
import"./index-9p40dgkm.js";
|
|
38
38
|
import"./index-hgd00nas.js";
|
|
39
39
|
import"./index-yhzhdp3m.js";
|
|
40
40
|
import"./index-mp0gh04g.js";
|
|
41
41
|
import"./index-f9qet7y8.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-xf3ndcqd.js";
|
|
43
43
|
import"./index-rzfr7wdv.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-gzk7d940.js";
|
|
45
45
|
import"./index-6pk49fc3.js";
|
|
46
46
|
import"./index-ck8wj35v.js";
|
|
47
47
|
import"./index-c1dqxr10.js";
|
|
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
19
19
|
await main();
|
|
20
20
|
async function main() {
|
|
21
21
|
if (input.v2ArchiveReader) {
|
|
22
|
-
const { serveV2ArchiveReads } = await import("./v2-archive-reader-
|
|
22
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-z7qgxxp0.js");
|
|
23
23
|
await serveV2ArchiveReads(port, openConnections);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
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-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-23s9g6dx.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-a9ntjqap.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -81,7 +81,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
81
81
|
const { setHarness } = await import("./harness-9872e0ym.js");
|
|
82
82
|
setHarness(input.harness ?? "opencode");
|
|
83
83
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
84
|
-
import("./message-index-bounded-
|
|
84
|
+
import("./message-index-bounded-1gj1pwjy.js"),
|
|
85
85
|
import("./sqlite-context-pragmas-gcgch6qz.js")
|
|
86
86
|
]);
|
|
87
87
|
configureContextDatabasePragmas(db);
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
readSessionChunk2,
|
|
39
39
|
getRawSessionMessageIdsThrough2,
|
|
40
40
|
readRawSessionSeedTail2
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-j2x88zk0.js";
|
|
42
42
|
import"./index-pwp6zyx3.js";
|
|
43
43
|
import"./index-6x556c2q.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-gzk7d940.js";
|
|
45
45
|
import"./index-c6wbq66z.js";
|
|
46
46
|
import"./index-yacs388s.js";
|
|
47
47
|
import"./index-c1dqxr10.js";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
renderVerboseRange2,
|
|
4
4
|
renderVerboseRangeForTool2,
|
|
5
5
|
renderItemByTag2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-gtd9kaaf.js";
|
|
7
7
|
import"./index-w26zvs1q.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-025nxwc9.js";
|
|
9
9
|
import"./index-hgd00nas.js";
|
|
10
10
|
import"./index-ea37qn4x.js";
|
|
11
11
|
import"./index-f9qet7y8.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-j2x88zk0.js";
|
|
13
13
|
import"./index-pwp6zyx3.js";
|
|
14
14
|
import"./index-6x556c2q.js";
|
|
15
15
|
import"./index-rzfr7wdv.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-gzk7d940.js";
|
|
17
|
+
import"./index-p1jxxsth.js";
|
|
18
18
|
import"./index-fapenpch.js";
|
|
19
19
|
import"./index-d107f484.js";
|
|
20
20
|
import"./index-135e8hvg.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-pb0ygvpa.js";
|
|
4
|
+
import"./index-gg9r701n.js";
|
|
5
5
|
import"./index-1cvyaw9a.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-j2x88zk0.js";
|
|
7
7
|
import"./index-pwp6zyx3.js";
|
|
8
8
|
import"./index-6x556c2q.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-gzk7d940.js";
|
|
10
10
|
import"./index-c6wbq66z.js";
|
|
11
11
|
import"./index-yacs388s.js";
|
|
12
12
|
import"./index-c1dqxr10.js";
|
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-zttw4vew.js";
|
|
9
9
|
import"./index-w26zvs1q.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-025nxwc9.js";
|
|
11
11
|
import"./index-1cvyaw9a.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-gajhgp4k.js";
|
|
13
13
|
import"./index-29nw7n1r.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-9tcbabqr.js";
|
|
15
15
|
import"./index-9p40dgkm.js";
|
|
16
16
|
import"./index-hgd00nas.js";
|
|
17
17
|
import"./index-yhzhdp3m.js";
|
|
18
18
|
import"./index-mp0gh04g.js";
|
|
19
19
|
import"./index-f9qet7y8.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-j2x88zk0.js";
|
|
21
21
|
import"./index-pwp6zyx3.js";
|
|
22
22
|
import"./index-6x556c2q.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-xf3ndcqd.js";
|
|
24
24
|
import"./index-rzfr7wdv.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-gzk7d940.js";
|
|
26
26
|
import"./index-d107f484.js";
|
|
27
27
|
import"./index-135e8hvg.js";
|
|
28
28
|
import"./index-6pk49fc3.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-j2x88zk0.js";
|
|
4
4
|
import {
|
|
5
5
|
setHarness2
|
|
6
6
|
} from "./index-0h2mkab2.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import"./index-2qtx0q6h.js";
|
|
15
15
|
import {
|
|
16
16
|
openDatabase
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-p1jxxsth.js";
|
|
18
18
|
import"./index-fapenpch.js";
|
|
19
19
|
import"./index-3bb24eb6.js";
|
|
20
20
|
import"./index-8sqebjzk.js";
|
|
@@ -34,29 +34,29 @@ import {
|
|
|
34
34
|
ensureProjectRegisteredFromPiDirectory,
|
|
35
35
|
resolvePiHarnessKind,
|
|
36
36
|
registerMagicContextTools
|
|
37
|
-
} from "./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
} from "./index-fjmghcbx.js";
|
|
38
|
+
import"./index-gzk7d940.js";
|
|
39
39
|
import"./index-rzfr7wdv.js";
|
|
40
40
|
import"./index-f9qet7y8.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-xf3ndcqd.js";
|
|
42
|
+
import"./index-9tcbabqr.js";
|
|
43
43
|
import"./index-hgd00nas.js";
|
|
44
44
|
import"./index-9p40dgkm.js";
|
|
45
45
|
import"./index-mp0gh04g.js";
|
|
46
46
|
import"./index-yhzhdp3m.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
47
|
+
import"./index-gajhgp4k.js";
|
|
48
|
+
import"./index-gtd9kaaf.js";
|
|
49
|
+
import"./index-025nxwc9.js";
|
|
50
50
|
import"./index-pwp6zyx3.js";
|
|
51
51
|
import"./index-6x556c2q.js";
|
|
52
52
|
import"./index-ea37qn4x.js";
|
|
53
53
|
import"./index-w26zvs1q.js";
|
|
54
54
|
import"./index-1cvyaw9a.js";
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
55
|
+
import"./index-gg9r701n.js";
|
|
56
|
+
import"./index-pb0ygvpa.js";
|
|
57
57
|
import"./index-29nw7n1r.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-zttw4vew.js";
|
|
59
|
+
import"./index-2kmwjq42.js";
|
|
60
60
|
import"./index-0wtm7g7f.js";
|
|
61
61
|
import {
|
|
62
62
|
setStoragePrivatePermissionEnforcement
|
package/package.json
CHANGED