@cortexkit/pi-magic-context 0.49.47 → 0.49.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/chunk-embedding-write-worker.js +12 -12
  3. package/dist/{compaction-marker-candidates-17a21jfn.js → compaction-marker-candidates-9yhrstyb.js} +2 -2
  4. package/dist/compaction-marker-candidates-worker.js +1 -1
  5. package/dist/{compartment-chunk-embedding-nyjs3dfh.js → compartment-chunk-embedding-wg7emg3z.js} +7 -7
  6. package/dist/{embedding-backfill-er9jc4xf.js → embedding-backfill-xsd7fc5c.js} +12 -12
  7. package/dist/embedding-worker-process.js +1 -1
  8. package/dist/embedding-worker.js +4 -4
  9. package/dist/historian-calibration-extension.js +1 -1
  10. package/dist/{index-w26zvs1q.js → index-46wk0td0.js} +1 -1
  11. package/dist/{index-bbbp8zs1.js → index-6d0bby9d.js} +2 -2
  12. package/dist/{index-000fthre.js → index-7y60kyea.js} +1 -1
  13. package/dist/{index-tcm1gqcb.js → index-8bpxfq4c.js} +3 -3
  14. package/dist/{index-7esg5v2x.js → index-9036v8ay.js} +6 -6
  15. package/dist/{index-nev91y6k.js → index-9n1hyjck.js} +10 -10
  16. package/dist/{index-qt711raa.js → index-bjeb4ya4.js} +10 -10
  17. package/dist/{index-rcenqffj.js → index-cmyk3bmf.js} +8 -8
  18. package/dist/{index-0wtm7g7f.js → index-j0eagxkz.js} +1 -1
  19. package/dist/{index-yacs388s.js → index-jxm4bvm4.js} +1 -1
  20. package/dist/{index-4sa1rx3h.js → index-ndg15t3x.js} +4 -4
  21. package/dist/{index-jaqdcqwz.js → index-pkg07s54.js} +2 -2
  22. package/dist/{index-zchc0df8.js → index-qcsjj9m0.js} +4 -12
  23. package/dist/{index-gwvahsdz.js → index-qm139qq2.js} +2 -2
  24. package/dist/{index-3g9fnq6y.js → index-szn2tac8.js} +1 -1
  25. package/dist/{index-j9bhd718.js → index-vdrqxca5.js} +19 -19
  26. package/dist/{index-fzadydec.js → index-wz66mger.js} +4 -4
  27. package/dist/{index-2kmwjq42.js → index-xssjy4z9.js} +1 -1
  28. package/dist/{index-6pk49fc3.js → index-xx1911hb.js} +1 -1
  29. package/dist/{index-wwf9vxpf.js → index-y2g8rdmm.js} +8 -8
  30. package/dist/{index-zwbgxt01.js → index-yc4vfwvm.js} +4 -4
  31. package/dist/{index-cq71g4dk.js → index-yjgkjkjs.js} +1 -1
  32. package/dist/{index-gymgz20n.js → index-yxeg8zaa.js} +23 -20
  33. package/dist/{index-d107f484.js → index-zc6fdyx7.js} +4 -4
  34. package/dist/{index-v7m1nqwz.js → index-zggajt0j.js} +2 -2
  35. package/dist/{index-tsg6swzr.js → index-zrbvwxtb.js} +2 -2
  36. package/dist/{index-mp0gh04g.js → index-zxm7ckvc.js} +2 -2
  37. package/dist/index.js +59 -37
  38. package/dist/{logger-2j70hhz4.js → logger-hhgpkbx1.js} +1 -1
  39. package/dist/{message-fts-rowid-map-ff4qg3e4.js → message-fts-rowid-map-tec2x7qe.js} +4 -4
  40. package/dist/{message-index-bounded-cqn6x6fc.js → message-index-bounded-6zghm1jn.js} +9 -9
  41. package/dist/{message-time-backfill-x45573rs.js → message-time-backfill-krre2qnb.js} +2 -2
  42. package/dist/migration-worker.js +9 -9
  43. package/dist/{project-embedding-registry-ysaezfqw.js → project-embedding-registry-j4ywdpq0.js} +11 -11
  44. package/dist/raw-ordinal-warmup-worker.js +8 -8
  45. package/dist/{read-session-chunk-0ecmbegv.js → read-session-chunk-hs4jtxsm.js} +7 -7
  46. package/dist/{read-session-raw-nttnwy8p.js → read-session-raw-75dcxtdy.js} +2 -2
  47. package/dist/{render-zcwm5nz3.js → render-n3y6kvwq.js} +16 -16
  48. package/dist/{safe-notification-target-jk69jxwp.js → safe-notification-target-8s1xg0q9.js} +2 -2
  49. package/dist/{search-archive-9svkd0f6.js → search-archive-1g44f9jt.js} +9 -9
  50. package/dist/{search-p4fj69gn.js → search-gzkbjgx0.js} +19 -19
  51. package/dist/{storage-tags-g0j9mr4b.js → storage-tags-ahhwtfdq.js} +4 -4
  52. package/dist/subagent-entry.js +25 -25
  53. package/dist/tag-snapshot-worker-pi.js +11 -11
  54. package/dist/{v2-archive-reader-ksmk6bfw.js → v2-archive-reader-sez4pjd8.js} +1 -1
  55. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  log2,
16
16
  sessionLog2,
17
17
  flushLogger2
18
- } from "./index-gymgz20n.js";
18
+ } from "./index-yxeg8zaa.js";
19
19
  import {
20
20
  sanitizeDiagnosticText,
21
21
  hasShareabilitySensitiveText
@@ -153,7 +153,7 @@ import {
153
153
  registerTodoStateLifecycle,
154
154
  syncCtxMemoryToolEnabled,
155
155
  registerMagicContextTools
156
- } from "./index-j9bhd718.js";
156
+ } from "./index-vdrqxca5.js";
157
157
  import"./index-4knyh1kt.js";
158
158
  import {
159
159
  canonicalModelIdentity,
@@ -191,7 +191,7 @@ import {
191
191
  resolveProjectIdentityForSession,
192
192
  beginBootQuietPeriod,
193
193
  scheduleAfterBootQuiet
194
- } from "./index-6pk49fc3.js";
194
+ } from "./index-xx1911hb.js";
195
195
  import {
196
196
  detectThinkingBindingMismatch,
197
197
  detectLatestTurnThinkingMismatch,
@@ -356,7 +356,7 @@ import {
356
356
  getRawSessionTagKeysThrough2,
357
357
  getLegacyProtectedTailStartOrdinal2,
358
358
  readSessionChunk2
359
- } from "./index-7esg5v2x.js";
359
+ } from "./index-9036v8ay.js";
360
360
  import {
361
361
  UNKNOWN_FIT_RATIO,
362
362
  hasMeasuredDecisionCalibration,
@@ -382,6 +382,8 @@ import {
382
382
  TailHygieneJsonMemo,
383
383
  piJsonHash,
384
384
  estimateImageTokensFromDataUrl,
385
+ TODO_STATUSES,
386
+ TODO_PRIORITIES,
385
387
  normalizeTodoStateJson,
386
388
  buildSyntheticTodoPart,
387
389
  stripChannel1ReminderSpans,
@@ -443,7 +445,7 @@ import {
443
445
  getToolTagNumberByOwner2,
444
446
  getNullOwnerToolTag2,
445
447
  adoptNullOwnerToolTag2
446
- } from "./index-zchc0df8.js";
448
+ } from "./index-qcsjj9m0.js";
447
449
  import {
448
450
  textMentionsRecentCommit,
449
451
  hasMeaningfulUserText2,
@@ -455,7 +457,7 @@ import {
455
457
  estimateTokens,
456
458
  estimateFixedPromptTokens,
457
459
  normalizeText
458
- } from "./index-000fthre.js";
460
+ } from "./index-7y60kyea.js";
459
461
  import {
460
462
  inRootAsyncContext2,
461
463
  Database2,
@@ -475,7 +477,7 @@ import {
475
477
  observeTemporalDecisions,
476
478
  freezeTemporalDecisions,
477
479
  tagIdentityRevisionKey
478
- } from "./index-yacs388s.js";
480
+ } from "./index-jxm4bvm4.js";
479
481
  import {
480
482
  piHarnessKindFromExecutable,
481
483
  getErrorMessage,
@@ -493,7 +495,7 @@ import {
493
495
  openCurrentDatabase,
494
496
  openDatabaseAsync,
495
497
  closeDatabase
496
- } from "./index-wwf9vxpf.js";
498
+ } from "./index-y2g8rdmm.js";
497
499
  import {
498
500
  LkgRecoveryFenceError,
499
501
  clearLkgFenceProcessState,
@@ -610,7 +612,7 @@ import {
610
612
  getSourceContents,
611
613
  recordSubagentInvocation,
612
614
  getLatestHistorianInvocationId
613
- } from "./index-nev91y6k.js";
615
+ } from "./index-9n1hyjck.js";
614
616
  import {
615
617
  resolveOpenCodeDbPath,
616
618
  assertOpenCodeStoreGeneration,
@@ -628,12 +630,12 @@ import {
628
630
  } from "./index-x2n261wp.js";
629
631
  import {
630
632
  RAW_SUMMARY_TEXT_MAX_CHARS2
631
- } from "./index-3g9fnq6y.js";
633
+ } from "./index-szn2tac8.js";
632
634
  import"./index-nvh6d3bz.js";
633
635
  import {
634
636
  formatSynapseLaneDescriptor
635
- } from "./index-gwvahsdz.js";
636
- import"./index-bbbp8zs1.js";
637
+ } from "./index-qm139qq2.js";
638
+ import"./index-6d0bby9d.js";
637
639
  import {
638
640
  buildCanonicalChunkTextFromFts2,
639
641
  buildCompartmentSummaryFallbackText2,
@@ -643,7 +645,7 @@ import {
643
645
  replaceCompartmentChunkEmbeddings2,
644
646
  deleteChunkEmbedBackoffForSession2,
645
647
  chunkWindowSourceKey2
646
- } from "./index-4sa1rx3h.js";
648
+ } from "./index-ndg15t3x.js";
647
649
  import {
648
650
  recordSessionProjectIdentity,
649
651
  GIT_SWEEP_LEASE_RENEWAL_MS,
@@ -652,7 +654,7 @@ import {
652
654
  markGitSweepSuccessAndRelease,
653
655
  parkGitSweepNonIndexable,
654
656
  releaseGitSweepLease
655
- } from "./index-mp0gh04g.js";
657
+ } from "./index-zxm7ckvc.js";
656
658
  import {
657
659
  embedPauseBySession,
658
660
  embedRunStateBySession,
@@ -668,7 +670,7 @@ import {
668
670
  clearCompressionDepthRange,
669
671
  cleanSearchText,
670
672
  matchedSearchSnippet
671
- } from "./index-fzadydec.js";
673
+ } from "./index-wz66mger.js";
672
674
  import {
673
675
  rememberV1HiddenRun
674
676
  } from "./index-6x556c2q.js";
@@ -686,7 +688,7 @@ import {
686
688
  expandWorkspaceIdentitySetWithAliases,
687
689
  sourceNameForMemory,
688
690
  computeWorkspaceEpochFingerprint
689
- } from "./index-d107f484.js";
691
+ } from "./index-zc6fdyx7.js";
690
692
  import {
691
693
  configureContextDatabasePragmas2
692
694
  } from "./index-fapenpch.js";
@@ -711,7 +713,7 @@ import {
711
713
  createPrimer,
712
714
  updatePrimerSupport,
713
715
  updatePrimerAnswer
714
- } from "./index-w26zvs1q.js";
716
+ } from "./index-46wk0td0.js";
715
717
  import {
716
718
  setEmbeddingSessionBusy2,
717
719
  isEmbeddingHostBusy2
@@ -745,7 +747,7 @@ import {
745
747
  } from "./index-q1yc6bs0.js";
746
748
  import {
747
749
  getCachedLocalEmbeddingPooling
748
- } from "./index-tsg6swzr.js";
750
+ } from "./index-zrbvwxtb.js";
749
751
  import {
750
752
  describeShadowBackfillWriteRefusal2,
751
753
  contentSha2562,
@@ -763,10 +765,10 @@ import {
763
765
  embedSessionCompartmentChunks2,
764
766
  getEmbeddingCoverageStatus2,
765
767
  getAutoEmbeddingSessionCoverage2
766
- } from "./index-rcenqffj.js";
768
+ } from "./index-cmyk3bmf.js";
767
769
  import {
768
770
  cosineSimilarity
769
- } from "./index-zwbgxt01.js";
771
+ } from "./index-yc4vfwvm.js";
770
772
  import {
771
773
  USER_FACING_FAILURES,
772
774
  renderUserFacingFailure,
@@ -800,8 +802,8 @@ import {
800
802
  scheduleClearAndReindex,
801
803
  clearSessionTracking,
802
804
  createAutoSearchDiagnostics
803
- } from "./index-qt711raa.js";
804
- import"./index-2kmwjq42.js";
805
+ } from "./index-bjeb4ya4.js";
806
+ import"./index-xssjy4z9.js";
805
807
  import {
806
808
  DREAMER_PRIMER_INVESTIGATOR_ALLOWED_TOOLS,
807
809
  buildHiddenAgentRegistrations,
@@ -828,11 +830,11 @@ import {
828
830
  drainPiTagSnapshotSession,
829
831
  assertPiTagSnapshotReady,
830
832
  ensurePiTagSnapshotReady
831
- } from "./index-jaqdcqwz.js";
832
- import"./index-cq71g4dk.js";
833
+ } from "./index-pkg07s54.js";
834
+ import"./index-yjgkjkjs.js";
833
835
  import"./index-1cvyaw9a.js";
834
- import"./index-tcm1gqcb.js";
835
- import"./index-v7m1nqwz.js";
836
+ import"./index-8bpxfq4c.js";
837
+ import"./index-zggajt0j.js";
836
838
  import {
837
839
  __toESM
838
840
  } from "./index-22jkk6wg.js";
@@ -855,7 +857,7 @@ import {
855
857
  import {
856
858
  logSlowWriteTransaction,
857
859
  WriteTransactionSteps
858
- } from "./index-0wtm7g7f.js";
860
+ } from "./index-j0eagxkz.js";
859
861
  import {
860
862
  setStoragePrivatePermissionEnforcement,
861
863
  ensureStorageDirectorySync,
@@ -3587,7 +3589,7 @@ function startHostStallProfilerSwitch() {
3587
3589
  // package.json
3588
3590
  var package_default = {
3589
3591
  name: "@cortexkit/pi-magic-context",
3590
- version: "0.49.47",
3592
+ version: "0.49.49",
3591
3593
  type: "module",
3592
3594
  description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
3593
3595
  main: "dist/index.js",
@@ -12639,6 +12641,7 @@ function writeDocsProposal(projectDir, output, budget, expected, head) {
12639
12641
  const result = validateDocsProposal(projectDir, output, budget, expected);
12640
12642
  const dir = proposalDir(projectDir);
12641
12643
  mkdirSync2(join8(dir, "superseded"), { recursive: true });
12644
+ ensureCortexKitArtifactGitignore(projectDir);
12642
12645
  const stamp = `${new Date().toISOString().replace(/[:.]/g, "-")}-${Math.random().toString(36).slice(2, 8)}`;
12643
12646
  const path = join8(dir, `${stamp}.md`);
12644
12647
  const body = `# Docs update proposal
@@ -25774,10 +25777,6 @@ var NON_EMERGENCY_MAX_CAP = 250000;
25774
25777
  var FORCE80_MAX_CAP = 500000;
25775
25778
  var FORCE95_MAX_CAP = 750000;
25776
25779
  var NORMAL_HYSTERESIS_TOKENS = 256;
25777
- var MIN_FORCE_ELIGIBLE_TOKENS_CAP = 1000;
25778
- function deriveMinForceEligibleTokens(scaledN) {
25779
- return Math.min(MIN_FORCE_ELIGIBLE_TOKENS_CAP, Math.max(1, Math.floor(scaledN / 8)));
25780
- }
25781
25780
  function clampPercentage(value) {
25782
25781
  if (!Number.isFinite(value))
25783
25782
  return 0;
@@ -26022,6 +26021,7 @@ function resolveProtectedTailBoundary(ctx) {
26022
26021
  priorBoundaryOrdinal: ctx.priorBoundaryOrdinal,
26023
26022
  migrationFloorActive: ctx.migrationFloorActive,
26024
26023
  emergencyTailScale: ctx.emergencyTailScale,
26024
+ recovery: ctx.recovery,
26025
26025
  providerShapeVersion: ctx.providerShapeVersion,
26026
26026
  cacheNamespace: ctx.cacheNamespace,
26027
26027
  createdAt,
@@ -26066,6 +26066,7 @@ function resolveProtectedTailBoundary(ctx) {
26066
26066
  priorBoundaryOrdinal: ctx.priorBoundaryOrdinal,
26067
26067
  migrationFloorActive: false,
26068
26068
  emergencyTailScale: ctx.emergencyTailScale,
26069
+ recovery: ctx.recovery,
26069
26070
  providerShapeVersion: ctx.providerShapeVersion,
26070
26071
  cacheNamespace: ctx.cacheNamespace,
26071
26072
  createdAt,
@@ -26181,6 +26182,7 @@ function resolveProtectedTailBoundary(ctx) {
26181
26182
  priorBoundaryOrdinal: ctx.priorBoundaryOrdinal,
26182
26183
  migrationFloorActive: ctx.migrationFloorActive,
26183
26184
  emergencyTailScale: ctx.emergencyTailScale,
26185
+ recovery: ctx.recovery,
26184
26186
  liftLivePromptFloor: ctx.liftLivePromptFloor === true ? true : undefined,
26185
26187
  providerShapeVersion: ctx.providerShapeVersion,
26186
26188
  cacheNamespace: ctx.cacheNamespace,
@@ -26259,6 +26261,7 @@ function resolveBoundaryContext(args) {
26259
26261
  protectedTailPolicyVersion: meta.protectedTailPolicyVersion,
26260
26262
  migrationFloorActive,
26261
26263
  emergencyTailScale: args.emergencyTailScale,
26264
+ recovery: args.recovery,
26262
26265
  liftLivePromptFloor: args.liftLivePromptFloor,
26263
26266
  providerShapeVersion: args.providerShapeVersion ?? "opencode-v1",
26264
26267
  cacheNamespace: args.cacheNamespace ?? `opencode:${args.sessionId}`,
@@ -26439,9 +26442,11 @@ function hasRunnableCompartmentWindow(snapshot) {
26439
26442
  return false;
26440
26443
  if (snapshot.eligibleEndOrdinal <= snapshot.offset)
26441
26444
  return false;
26445
+ if (snapshot.recovery || snapshot.usagePercentage >= 95 || snapshot.mode === "manual-wrapup" || snapshot.mode === "manual-full-recomp")
26446
+ return true;
26442
26447
  const forceMaterializationPercentage = escalationBands(snapshot.executeThresholdPercentage).forceMaterializationPercentage;
26443
26448
  if (snapshot.usagePercentage >= forceMaterializationPercentage || snapshot.emergencyTailScale) {
26444
- return snapshot.trueRawEligibleTokens >= deriveMinForceEligibleTokens(snapshot.N) || snapshot.eligibleEndOrdinal > snapshot.offset;
26449
+ return snapshot.summaryRemovedEligibleTokens >= snapshot.contextLimit * 0.02;
26445
26450
  }
26446
26451
  return snapshot.eligibleEndOrdinal > snapshot.offset;
26447
26452
  }
@@ -26854,9 +26859,13 @@ function checkCompartmentTrigger(db, sessionId, sessionMeta, usage, _previousPer
26854
26859
  }
26855
26860
  return { shouldFire: false };
26856
26861
  }
26862
+ const recovery = getOverflowState(db, sessionId).needsEmergencyRecovery;
26863
+ if (tailInfo.boundarySnapshot && recovery) {
26864
+ tailInfo.boundarySnapshot = { ...tailInfo.boundarySnapshot, recovery: true };
26865
+ }
26857
26866
  if (tailInfo.boundarySnapshot && shouldWaitForNewHistorianHistory(tailInfo.boundarySnapshot, {
26858
26867
  usagePercentage: usage.percentage,
26859
- emergency: getOverflowState(db, sessionId).needsEmergencyRecovery
26868
+ emergency: recovery
26860
26869
  })) {
26861
26870
  sessionLog2(sessionId, "compartment trigger: waiting for new history after no forward progress");
26862
26871
  return { shouldFire: false };
@@ -26898,13 +26907,14 @@ function checkCompartmentTrigger(db, sessionId, sessionMeta, usage, _previousPer
26898
26907
  executeThresholdPercentage,
26899
26908
  usage,
26900
26909
  usageSource: "live",
26901
- emergencyTailScale: scale
26910
+ emergencyTailScale: scale,
26911
+ recovery
26902
26912
  });
26903
26913
  });
26904
26914
  if (hasRunnableCompartmentWindow(scaledBoundary)) {
26905
26915
  return { shouldFire: true, reason: "force_band", boundarySnapshot: scaledBoundary };
26906
26916
  }
26907
- sessionLog2(sessionId, "compartment trigger: force_band skipped — raw exists but protected head genuinely empty after emergency tail scale");
26917
+ sessionLog2(sessionId, "compartment trigger: force_band skipped — no protected head meets summary admission after emergency tail scale");
26908
26918
  return { shouldFire: false };
26909
26919
  }
26910
26920
  const clusterEnabled = commitClusterTrigger?.enabled ?? true;
@@ -30447,7 +30457,10 @@ async function runPiHistorian(deps) {
30447
30457
  }) : { ok: true };
30448
30458
  if (!validation.ok && validation.reason === "stale_snapshot" && refreshBoundarySnapshot) {
30449
30459
  try {
30450
- const refreshed = refreshBoundarySnapshot(boundarySnapshot);
30460
+ const refreshed = {
30461
+ ...refreshBoundarySnapshot(boundarySnapshot),
30462
+ recovery: boundarySnapshot.recovery || forceDrainQuota
30463
+ };
30451
30464
  if (hasRunnableCompartmentWindow(refreshed)) {
30452
30465
  sessionLog2(sessionId, `historian: refreshed stale protected-tail snapshot at run time (was: ${validation.detail ?? "stale"}) — eligible head ${refreshed.offset}-${refreshed.eligibleEndOrdinal - 1}`);
30453
30466
  boundarySnapshot = refreshed;
@@ -48232,6 +48245,7 @@ function maybeFireHistorian(args) {
48232
48245
  providerShapeVersion: "pi-folded-v1",
48233
48246
  cacheNamespace: `pi:${sessionId}`,
48234
48247
  emergencyTailScale,
48248
+ recovery: historianStateSnapshot.needsEmergencyRecovery,
48235
48249
  liftLivePromptFloor
48236
48250
  }));
48237
48251
  const resolveRunnablePiBoundarySnapshot = (stale) => {
@@ -53840,6 +53854,8 @@ function persistPiMessageEndModelMeta(args) {
53840
53854
  function getCompatiblePiTodoCapture(todos) {
53841
53855
  if (!Array.isArray(todos))
53842
53856
  return null;
53857
+ if (!todos.every(hasPiTodowriteEnumValues))
53858
+ return null;
53843
53859
  const normalized = normalizeTodoStateJson(todos);
53844
53860
  if (normalized === null)
53845
53861
  return null;
@@ -53848,6 +53864,12 @@ function getCompatiblePiTodoCapture(todos) {
53848
53864
  return null;
53849
53865
  return { normalized, todos: parsed };
53850
53866
  }
53867
+ function hasPiTodowriteEnumValues(todo) {
53868
+ if (todo === null || typeof todo !== "object")
53869
+ return false;
53870
+ const { status, priority } = todo;
53871
+ return TODO_STATUSES.includes(status) && (priority === undefined || TODO_PRIORITIES.includes(priority));
53872
+ }
53851
53873
  function applyCompatiblePiTodoCapture(args) {
53852
53874
  rememberTodowriteToolCallTodos(args.toolCallId, args.capture.todos);
53853
53875
  if (args.todowriteEnabled) {
@@ -6,7 +6,7 @@ import {
6
6
  getLoggerDiagnostics2,
7
7
  flushLogger2,
8
8
  getLogFilePath2
9
- } from "./index-gymgz20n.js";
9
+ } from "./index-yxeg8zaa.js";
10
10
  import"./index-0h2mkab2.js";
11
11
  import"./index-dnp1jjar.js";
12
12
  export {
@@ -5,13 +5,13 @@ import {
5
5
  startMessageFtsRowidMapBackfill2,
6
6
  messageFtsOrdinalRangeIsMapped2,
7
7
  deleteUnmappedMessageFtsRows2
8
- } from "./index-bbbp8zs1.js";
9
- import"./index-3g9fnq6y.js";
8
+ } from "./index-6d0bby9d.js";
9
+ import"./index-szn2tac8.js";
10
10
  import"./index-wfqysrwq.js";
11
11
  import"./index-8sqebjzk.js";
12
- import"./index-0wtm7g7f.js";
12
+ import"./index-j0eagxkz.js";
13
13
  import"./index-2qtx0q6h.js";
14
- import"./index-gymgz20n.js";
14
+ import"./index-yxeg8zaa.js";
15
15
  import"./index-0h2mkab2.js";
16
16
  import"./index-dnp1jjar.js";
17
17
  import"./index-x2n261wp.js";
@@ -3,19 +3,19 @@ import {
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
5
  } from "./index-2qtx0q6h.js";
6
- import"./index-zchc0df8.js";
7
- import"./index-000fthre.js";
6
+ import"./index-qcsjj9m0.js";
7
+ import"./index-7y60kyea.js";
8
8
  import"./index-0h2mkab2.js";
9
- import"./index-gymgz20n.js";
9
+ import"./index-yxeg8zaa.js";
10
10
  import"./index-dnp1jjar.js";
11
- import"./index-yacs388s.js";
11
+ import"./index-jxm4bvm4.js";
12
12
  import"./index-gzk7d940.js";
13
13
  import"./index-8sqebjzk.js";
14
14
  import"./index-wfqysrwq.js";
15
15
  import"./index-x2n261wp.js";
16
- import"./index-3g9fnq6y.js";
16
+ import"./index-szn2tac8.js";
17
17
  import"./index-n0zjvs3h.js";
18
- import"./index-7esg5v2x.js";
18
+ import"./index-9036v8ay.js";
19
19
  import"./index-6x556c2q.js";
20
20
  import"./index-c6wbq66z.js";
21
21
  import {
@@ -25,9 +25,9 @@ import {
25
25
  markMessageIndexDirty,
26
26
  getIndexableContent,
27
27
  indexSingleMessage
28
- } from "./index-fzadydec.js";
29
- import"./index-bbbp8zs1.js";
30
- import"./index-0wtm7g7f.js";
28
+ } from "./index-wz66mger.js";
29
+ import"./index-6d0bby9d.js";
30
+ import"./index-j0eagxkz.js";
31
31
 
32
32
  // ../plugin/src/features/magic-context/message-index-bounded.ts
33
33
  import { createHash } from "node:crypto";
@@ -3,11 +3,11 @@ import {
3
3
  withoutSqliteTransformPass2
4
4
  } from "./index-2qtx0q6h.js";
5
5
  import"./index-0h2mkab2.js";
6
- import"./index-gymgz20n.js";
6
+ import"./index-yxeg8zaa.js";
7
7
  import"./index-dnp1jjar.js";
8
8
  import {
9
9
  logSlowWriteTransaction
10
- } from "./index-0wtm7g7f.js";
10
+ } from "./index-j0eagxkz.js";
11
11
 
12
12
  // ../plugin/src/features/magic-context/message-time-backfill.ts
13
13
  var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
@@ -2,7 +2,7 @@ import"./index-0h2mkab2.js";
2
2
  import {
3
3
  setLogLineForwarder2,
4
4
  log2
5
- } from "./index-gymgz20n.js";
5
+ } from "./index-yxeg8zaa.js";
6
6
  import"./index-dnp1jjar.js";
7
7
  import {
8
8
  Database2
@@ -10,27 +10,27 @@ import {
10
10
  import"./index-135e8hvg.js";
11
11
  import {
12
12
  runMigrationsWithRetry
13
- } from "./index-d107f484.js";
14
- import"./index-yacs388s.js";
13
+ } from "./index-zc6fdyx7.js";
14
+ import"./index-jxm4bvm4.js";
15
15
  import"./index-n0zjvs3h.js";
16
- import"./index-6pk49fc3.js";
16
+ import"./index-xx1911hb.js";
17
17
  import {
18
18
  setSqlitePragmaConfig,
19
19
  initializeDatabase
20
- } from "./index-wwf9vxpf.js";
20
+ } from "./index-y2g8rdmm.js";
21
21
  import"./index-fapenpch.js";
22
22
  import"./index-3bb24eb6.js";
23
23
  import"./index-8sqebjzk.js";
24
24
  import"./index-wfqysrwq.js";
25
25
  import"./index-x2n261wp.js";
26
- import"./index-3g9fnq6y.js";
27
- import"./index-bbbp8zs1.js";
28
- import"./index-000fthre.js";
26
+ import"./index-szn2tac8.js";
27
+ import"./index-6d0bby9d.js";
28
+ import"./index-7y60kyea.js";
29
29
  import"./index-c6wbq66z.js";
30
30
  import {
31
31
  closeQuietly
32
32
  } from "./index-nrzkqte4.js";
33
- import"./index-0wtm7g7f.js";
33
+ import"./index-j0eagxkz.js";
34
34
  import {
35
35
  serveWorkerJobs
36
36
  } from "./index-nypgv96r.js";
@@ -33,24 +33,24 @@ import {
33
33
  sweepAllRegisteredProjects2,
34
34
  _setTestProviderFactoryForProject2,
35
35
  _resetProjectEmbeddingRegistryForTests2
36
- } from "./index-rcenqffj.js";
36
+ } from "./index-cmyk3bmf.js";
37
37
  import"./index-9p40dgkm.js";
38
38
  import"./index-hgd00nas.js";
39
39
  import"./index-yhzhdp3m.js";
40
- import"./index-mp0gh04g.js";
41
- import"./index-4sa1rx3h.js";
42
- import"./index-tsg6swzr.js";
43
- import"./index-gwvahsdz.js";
40
+ import"./index-zxm7ckvc.js";
41
+ import"./index-ndg15t3x.js";
42
+ import"./index-zrbvwxtb.js";
43
+ import"./index-qm139qq2.js";
44
44
  import"./index-gzk7d940.js";
45
- import"./index-6pk49fc3.js";
46
- import"./index-bbbp8zs1.js";
47
- import"./index-3g9fnq6y.js";
45
+ import"./index-xx1911hb.js";
46
+ import"./index-6d0bby9d.js";
47
+ import"./index-szn2tac8.js";
48
48
  import"./index-wfqysrwq.js";
49
49
  import"./index-8sqebjzk.js";
50
- import"./index-0wtm7g7f.js";
51
- import"./index-000fthre.js";
50
+ import"./index-j0eagxkz.js";
51
+ import"./index-7y60kyea.js";
52
52
  import"./index-2qtx0q6h.js";
53
- import"./index-gymgz20n.js";
53
+ import"./index-yxeg8zaa.js";
54
54
  import"./index-0h2mkab2.js";
55
55
  import"./index-dnp1jjar.js";
56
56
  import"./index-x2n261wp.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-ksmk6bfw.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-sez4pjd8.js");
23
23
  await serveV2ArchiveReads(port, openConnections);
24
24
  return;
25
25
  }
@@ -30,9 +30,9 @@ serveWorkerJobs(async (input, port) => {
30
30
  { log }
31
31
  ] = await Promise.all([
32
32
  import("./sqlite-v89bj0yy.js"),
33
- import("./read-session-raw-nttnwy8p.js"),
33
+ import("./read-session-raw-75dcxtdy.js"),
34
34
  import("./harness-9872e0ym.js"),
35
- import("./logger-2j70hhz4.js")
35
+ import("./logger-hhgpkbx1.js")
36
36
  ]);
37
37
  setHarness(input.harness ?? "opencode");
38
38
  registerSqliteDiagnosticSink(log, getHarness);
@@ -46,13 +46,13 @@ serveWorkerJobs(async (input, port) => {
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-ff4qg3e4.js");
49
+ const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-tec2x7qe.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-9svkd0f6.js");
55
- const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-nttnwy8p.js");
54
+ const { renderSearchArchive } = await import("./search-archive-1g44f9jt.js");
55
+ const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-75dcxtdy.js");
56
56
  const archive = input.searchArchive;
57
57
  let raw;
58
58
  try {
@@ -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-cqn6x6fc.js"),
84
+ import("./message-index-bounded-6zghm1jn.js"),
85
85
  import("./sqlite-context-pragmas-gcgch6qz.js")
86
86
  ]);
87
87
  configureContextDatabasePragmas(db);
@@ -95,7 +95,7 @@ serveWorkerJobs(async (input, port) => {
95
95
  measurements: result.measurements
96
96
  };
97
97
  } else if (input.tagRatio !== undefined) {
98
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-g0j9mr4b.js");
98
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-ahhwtfdq.js");
99
99
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
100
100
  if (delta)
101
101
  reply = { kind: "tag-delta", delta };
@@ -38,23 +38,23 @@ import {
38
38
  readSessionChunk2,
39
39
  getRawSessionMessageIdsThrough2,
40
40
  readRawSessionSeedTail2
41
- } from "./index-7esg5v2x.js";
42
- import"./index-zchc0df8.js";
41
+ } from "./index-9036v8ay.js";
42
+ import"./index-qcsjj9m0.js";
43
43
  import"./index-6x556c2q.js";
44
44
  import"./index-gzk7d940.js";
45
45
  import"./index-c6wbq66z.js";
46
- import"./index-yacs388s.js";
47
- import"./index-3g9fnq6y.js";
46
+ import"./index-jxm4bvm4.js";
47
+ import"./index-szn2tac8.js";
48
48
  import"./index-wfqysrwq.js";
49
49
  import"./index-8sqebjzk.js";
50
50
  import"./index-n0zjvs3h.js";
51
- import"./index-0wtm7g7f.js";
51
+ import"./index-j0eagxkz.js";
52
52
  import {
53
53
  hasMeaningfulUserText2,
54
54
  extractTexts2
55
- } from "./index-000fthre.js";
55
+ } from "./index-7y60kyea.js";
56
56
  import"./index-2qtx0q6h.js";
57
- import"./index-gymgz20n.js";
57
+ import"./index-yxeg8zaa.js";
58
58
  import"./index-0h2mkab2.js";
59
59
  import"./index-dnp1jjar.js";
60
60
  import"./index-x2n261wp.js";
@@ -28,11 +28,11 @@ import {
28
28
  hasRawSessionMessageByIdFromDb2,
29
29
  readRawSeedTailFromDb2,
30
30
  readRawSessionBoundaryEndpointsFromDb2
31
- } from "./index-3g9fnq6y.js";
31
+ } from "./index-szn2tac8.js";
32
32
  import"./index-wfqysrwq.js";
33
33
  import"./index-8sqebjzk.js";
34
34
  import"./index-2qtx0q6h.js";
35
- import"./index-gymgz20n.js";
35
+ import"./index-yxeg8zaa.js";
36
36
  import"./index-0h2mkab2.js";
37
37
  import"./index-dnp1jjar.js";
38
38
  import"./index-x2n261wp.js";
@@ -3,34 +3,34 @@ import {
3
3
  renderVerboseRange2,
4
4
  renderVerboseRangeForTool2,
5
5
  renderItemByTag2
6
- } from "./index-nev91y6k.js";
7
- import"./index-w26zvs1q.js";
8
- import"./index-fzadydec.js";
6
+ } from "./index-9n1hyjck.js";
7
+ import"./index-46wk0td0.js";
8
+ import"./index-wz66mger.js";
9
9
  import"./index-hgd00nas.js";
10
10
  import"./index-nvh6d3bz.js";
11
- import"./index-4sa1rx3h.js";
12
- import"./index-7esg5v2x.js";
13
- import"./index-zchc0df8.js";
11
+ import"./index-ndg15t3x.js";
12
+ import"./index-9036v8ay.js";
13
+ import"./index-qcsjj9m0.js";
14
14
  import"./index-6x556c2q.js";
15
- import"./index-gwvahsdz.js";
15
+ import"./index-qm139qq2.js";
16
16
  import"./index-gzk7d940.js";
17
- import"./index-wwf9vxpf.js";
17
+ import"./index-y2g8rdmm.js";
18
18
  import"./index-fapenpch.js";
19
- import"./index-d107f484.js";
19
+ import"./index-zc6fdyx7.js";
20
20
  import"./index-135e8hvg.js";
21
- import"./index-6pk49fc3.js";
22
- import"./index-bbbp8zs1.js";
21
+ import"./index-xx1911hb.js";
22
+ import"./index-6d0bby9d.js";
23
23
  import"./index-3bb24eb6.js";
24
24
  import"./index-c6wbq66z.js";
25
- import"./index-yacs388s.js";
26
- import"./index-3g9fnq6y.js";
25
+ import"./index-jxm4bvm4.js";
26
+ import"./index-szn2tac8.js";
27
27
  import"./index-wfqysrwq.js";
28
28
  import"./index-8sqebjzk.js";
29
29
  import"./index-n0zjvs3h.js";
30
- import"./index-0wtm7g7f.js";
31
- import"./index-000fthre.js";
30
+ import"./index-j0eagxkz.js";
31
+ import"./index-7y60kyea.js";
32
32
  import"./index-2qtx0q6h.js";
33
- import"./index-gymgz20n.js";
33
+ import"./index-yxeg8zaa.js";
34
34
  import"./index-0h2mkab2.js";
35
35
  import"./index-dnp1jjar.js";
36
36
  import"./index-x2n261wp.js";