@cortexkit/opencode-magic-context 0.49.45 → 0.49.47

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 (128) hide show
  1. package/dist/auto-search-worker.js +1 -1
  2. package/dist/chunk-embedding-write-worker.js +1 -1
  3. package/dist/{context-y85dvs6j.js → context-hvkjxqhs.js} +416 -106
  4. package/dist/{derive-budgets-htj16n4x.js → derive-budgets-nkw09vq7.js} +1 -1
  5. package/dist/features/magic-context/request-tool-definitions.d.ts +57 -0
  6. package/dist/features/magic-context/request-tool-definitions.d.ts.map +1 -1
  7. package/dist/hooks/magic-context/cache-busting-signals.d.ts +6 -3
  8. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  9. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  10. package/dist/hooks/magic-context/host-checkpoint-ride.d.ts +80 -0
  11. package/dist/hooks/magic-context/host-checkpoint-ride.d.ts.map +1 -0
  12. package/dist/hooks/magic-context/inject-compartments.d.ts +21 -0
  13. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  14. package/dist/hooks/magic-context/latest-thinking-recovery.d.ts +19 -0
  15. package/dist/hooks/magic-context/latest-thinking-recovery.d.ts.map +1 -1
  16. package/dist/hooks/magic-context/pending-materialization.d.ts +3 -0
  17. package/dist/hooks/magic-context/pending-materialization.d.ts.map +1 -1
  18. package/dist/hooks/magic-context/priced-pass-sizing.d.ts +132 -0
  19. package/dist/hooks/magic-context/priced-pass-sizing.d.ts.map +1 -0
  20. package/dist/hooks/magic-context/reasoning-budget.d.ts.map +1 -1
  21. package/dist/hooks/magic-context/recovery-fit.d.ts +51 -0
  22. package/dist/hooks/magic-context/recovery-fit.d.ts.map +1 -0
  23. package/dist/hooks/magic-context/request-tools-release.d.ts +26 -0
  24. package/dist/hooks/magic-context/request-tools-release.d.ts.map +1 -0
  25. package/dist/hooks/magic-context/routine-cleanup-decision.d.ts +109 -0
  26. package/dist/hooks/magic-context/routine-cleanup-decision.d.ts.map +1 -0
  27. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +24 -0
  29. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/transform-context-state.d.ts +2 -1
  31. package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
  32. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +22 -2
  33. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  34. package/dist/hooks/magic-context/transform.d.ts +19 -2
  35. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  36. package/dist/{index-jwa5t1s4.js → index-1qmv26ga.js} +17 -4
  37. package/dist/{index-0a79y98x.js → index-2x3kd999.js} +301 -90
  38. package/dist/{index-qdx8dq60.js → index-37a9bfta.js} +4 -4
  39. package/dist/{index-tvd2j34s.js → index-44pp3vrj.js} +1 -1
  40. package/dist/{index-980brvjr.js → index-5jk4h64j.js} +3 -3
  41. package/dist/{index-66a50f3e.js → index-6athgjba.js} +66 -14
  42. package/dist/{index-dnqqqc5f.js → index-8cfnaagj.js} +10 -2
  43. package/dist/{index-z8dacvkt.js → index-b0xt5qz9.js} +1 -1
  44. package/dist/{index-xejh7cqv.js → index-bqhjzhv4.js} +173 -9
  45. package/dist/{index-fs3zfby1.js → index-c99tqfge.js} +724 -98
  46. package/dist/{index-dcdvyaeh.js → index-eej9kwad.js} +3 -3
  47. package/dist/{index-rk5hyc41.js → index-esr8qcc4.js} +2 -2
  48. package/dist/{index-bzq05g00.js → index-etn2hmb5.js} +1 -1
  49. package/dist/{index-gf1vx3bn.js → index-kw7azjmy.js} +2 -2
  50. package/dist/{index-29gd1zcx.js → index-w6fh4v87.js} +1 -1
  51. package/dist/{index-gxqr0sbd.js → index-x53gnmce.js} +10 -10
  52. package/dist/{index-7na94cjf.js → index-xgczbhyx.js} +5 -5
  53. package/dist/{index-wwg1je98.js → index-xgnh498s.js} +3 -2
  54. package/dist/index.js +20 -20
  55. package/dist/{message-index-bounded-d8xt6q5c.js → message-index-bounded-3qpg8dq5.js} +3 -3
  56. package/dist/migration-worker.js +1 -1
  57. package/dist/raw-ordinal-warmup-worker.js +4 -4
  58. package/dist/{read-session-chunk-k3fqshw8.js → read-session-chunk-7h9f32sz.js} +2 -2
  59. package/dist/{recomp-orchestrator-y75thsc3.js → recomp-orchestrator-43g9tjya.js} +9 -9
  60. package/dist/{render-3psbedzk.js → render-4m7x9cq4.js} +7 -7
  61. package/dist/{search-hd16c8gq.js → search-0a3hh5x6.js} +5 -5
  62. package/dist/{search-archive-rvr7j5gx.js → search-archive-f6kwv02s.js} +4 -4
  63. package/dist/shared/window-geometry.d.ts +5 -0
  64. package/dist/shared/window-geometry.d.ts.map +1 -1
  65. package/dist/{storage-tags-ye9aqrqy.js → storage-tags-q8erkn48.js} +3 -1
  66. package/dist/{store-pd1e9hnr.js → store-h20ny8b8.js} +2 -2
  67. package/dist/{store-reader-yh19h38c.js → store-reader-3eh1s1m8.js} +1 -1
  68. package/dist/tools/parameter-descriptions.d.ts +6 -6
  69. package/dist/tools/parameter-descriptions.d.ts.map +1 -1
  70. package/dist/{transform-postprocess-phase-1rzxmkhb.js → transform-postprocess-phase-5746a5b6.js} +10 -10
  71. package/dist/v2/auto-search-worker.js +1 -1
  72. package/dist/v2/chunk-embedding-write-worker.js +1 -1
  73. package/dist/v2/{context-0e946t63.js → context-e9n2mxax.js} +1424 -295
  74. package/dist/v2/{derive-budgets-sa0v7bz0.js → derive-budgets-b5cgrtp8.js} +2 -2
  75. package/dist/v2/fold/code-mode-catalog.d.ts +11 -3
  76. package/dist/v2/fold/code-mode-catalog.d.ts.map +1 -1
  77. package/dist/v2/fold/instruction-supersession.d.ts +13 -2
  78. package/dist/v2/fold/instruction-supersession.d.ts.map +1 -1
  79. package/dist/v2/fold/manual-baseline.d.ts +7 -0
  80. package/dist/v2/fold/manual-baseline.d.ts.map +1 -1
  81. package/dist/v2/fold/native-replay.d.ts +5 -0
  82. package/dist/v2/fold/native-replay.d.ts.map +1 -1
  83. package/dist/v2/fold/owner.d.ts +14 -0
  84. package/dist/v2/fold/owner.d.ts.map +1 -1
  85. package/dist/v2/fold/summary.d.ts +35 -0
  86. package/dist/v2/fold/summary.d.ts.map +1 -1
  87. package/dist/v2/hooks/context.d.ts +10 -1
  88. package/dist/v2/hooks/context.d.ts.map +1 -1
  89. package/dist/v2/hooks/lkg-system.d.ts +3 -0
  90. package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
  91. package/dist/v2/{message-index-bounded-wt64v2rn.js → message-index-bounded-na8debr6.js} +3 -3
  92. package/dist/v2/migration-worker.js +1 -1
  93. package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
  94. package/dist/v2/{read-session-chunk-4b31z6bz.js → read-session-chunk-x33xeg2g.js} +2 -2
  95. package/dist/v2/{recomp-orchestrator-6qrm2nea.js → recomp-orchestrator-jyjpn5jm.js} +10 -10
  96. package/dist/v2/{render-f8mw16pp.js → render-mp82ns36.js} +7 -7
  97. package/dist/v2/{search-archive-7d0xdp54.js → search-archive-d0fcqch9.js} +4 -4
  98. package/dist/v2/{search-ecjd7e50.js → search-ebd0yr40.js} +4 -4
  99. package/dist/v2/{server-wbxbk3za.js → server-1f03b92k.js} +2 -2
  100. package/dist/v2/{server-ymn9w46x.js → server-5zzt9rah.js} +1 -1
  101. package/dist/v2/{server-sd8hvzte.js → server-af1rmkyn.js} +1 -1
  102. package/dist/v2/{server-vnpnmrsv.js → server-c43zxc9k.js} +27 -3
  103. package/dist/v2/{server-hq7fdqfm.js → server-epvj1cey.js} +2 -2
  104. package/dist/v2/{server-39kzpp8q.js → server-fhxe5jgm.js} +2 -2
  105. package/dist/v2/{server-0ymsgh0j.js → server-gy26cwvw.js} +1 -1
  106. package/dist/v2/{server-zqzh2ybj.js → server-rg92e592.js} +175 -11
  107. package/dist/v2/{server-ef1mskas.js → server-rthnpmbp.js} +66 -14
  108. package/dist/v2/{server-gwqfwtzq.js → server-t4hk02v1.js} +10 -10
  109. package/dist/v2/{server-vjhk8v41.js → server-wa4qhryh.js} +1 -1
  110. package/dist/v2/{server-an1ff8d8.js → server-wwmaqtxy.js} +5 -5
  111. package/dist/v2/{server-2qyfev3b.js → server-xsrykjkj.js} +17 -4
  112. package/dist/v2/{server-qxzbmtqt.js → server-zt1m5rwj.js} +10 -2
  113. package/dist/v2/{server-ftyc8awt.js → server-zypeavf0.js} +1 -1
  114. package/dist/v2/server.js +4 -4
  115. package/dist/v2/{storage-tags-8nttt1sk.js → storage-tags-ztar1k0g.js} +3 -1
  116. package/dist/v2/{store-reader-cgx47zkp.js → store-reader-yaxtdy6f.js} +1 -1
  117. package/dist/v2/store-reader.d.ts +22 -1
  118. package/dist/v2/store-reader.d.ts.map +1 -1
  119. package/dist/v2/{store-pebs9m52.js → store-skkhh3rd.js} +2 -2
  120. package/dist/v2/{v2-archive-reader-53kp5mme.js → v2-archive-reader-gm6mygag.js} +1 -1
  121. package/dist/v2/{wrapup-orchestrator-bng0dfxy.js → wrapup-orchestrator-y9a02xpd.js} +10 -10
  122. package/dist/{v2-archive-reader-0fcxs5e9.js → v2-archive-reader-yp9956t8.js} +1 -1
  123. package/dist/{wrapup-orchestrator-r5cqgyrg.js → wrapup-orchestrator-ese0epyk.js} +10 -10
  124. package/package.json +1 -1
  125. package/src/agents/smart-notes-dreamer-gate.golden.json +169 -169
  126. package/src/shared/prompt-surface-a1-golden.md +4 -4
  127. package/src/shared/window-geometry.test.ts +85 -0
  128. package/src/shared/window-geometry.ts +29 -2
@@ -3,14 +3,14 @@ import {
3
3
  } from "./index-jrfre9ah.js";
4
4
  import {
5
5
  clearEmergencyRecovery
6
- } from "./index-wwg1je98.js";
6
+ } from "./index-xgnh498s.js";
7
7
  import {
8
8
  requestPendingMaterialization,
9
9
  dropSlot
10
- } from "./index-jwa5t1s4.js";
10
+ } from "./index-1qmv26ga.js";
11
11
  import {
12
12
  executeContextRecomp
13
- } from "./index-xejh7cqv.js";
13
+ } from "./index-bqhjzhv4.js";
14
14
  import {
15
15
  renderUserFacingFailure,
16
16
  userFacingFailureCode
@@ -19,10 +19,10 @@ import {
19
19
  rawMessageWorkerSource2,
20
20
  rawMessageOffThreadRangeReader2,
21
21
  readRawSessionMessageIdOrdinalsForRange2
22
- } from "./index-wwg1je98.js";
22
+ } from "./index-xgnh498s.js";
23
23
  import {
24
24
  readV2ArchiveOffThread2
25
- } from "./index-7na94cjf.js";
25
+ } from "./index-xgczbhyx.js";
26
26
 
27
27
  // src/tools/ctx-expand/search-archive.ts
28
28
  var archiveReadsOnThisThread = 0;
@@ -9,7 +9,7 @@ import {
9
9
  } from "./index-ak11t3gm.js";
10
10
  import {
11
11
  cleanUserText2
12
- } from "./index-wwg1je98.js";
12
+ } from "./index-xgnh498s.js";
13
13
  import {
14
14
  recordMessageFtsRowid2,
15
15
  recordIndexedMessageTime2,
@@ -5,10 +5,10 @@ import {
5
5
  expandToolPart,
6
6
  visitRawSessionMessages2,
7
7
  readRawSessionMessageById2
8
- } from "./index-wwg1je98.js";
8
+ } from "./index-xgnh498s.js";
9
9
  import {
10
10
  getTagById2
11
- } from "./index-gxqr0sbd.js";
11
+ } from "./index-x53gnmce.js";
12
12
 
13
13
  // src/tools/ctx-expand/render.ts
14
14
  import { createHash } from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-wh9fxds5.js";
4
4
  import {
5
5
  RAW_MESSAGE_TYPES2
6
- } from "./index-66a50f3e.js";
6
+ } from "./index-6athgjba.js";
7
7
  import {
8
8
  markHostUnservedRow
9
9
  } from "./index-s9x93tfs.js";
@@ -2593,7 +2593,7 @@ function tryGetReasoningTokenEstimatesByMessage2(db, sessionId, ratio) {
2593
2593
  try {
2594
2594
  return getReasoningTokenEstimatesByMessage2(db, sessionId, ratio);
2595
2595
  } catch (error) {
2596
- if (error instanceof TagOwnerSummaryNotReady)
2596
+ if (error instanceof TagOwnerSummaryNotReady2)
2597
2597
  return;
2598
2598
  throw error;
2599
2599
  }
@@ -2605,7 +2605,7 @@ var tagOwnerSummaries = new WeakMap;
2605
2605
  var MAX_CACHED_PROSE_RATIOS = 4;
2606
2606
  var TAG_OWNER_PAGE_LIMIT = 512;
2607
2607
 
2608
- class TagOwnerSummaryNotReady extends Error {
2608
+ class TagOwnerSummaryNotReady2 extends Error {
2609
2609
  constructor() {
2610
2610
  super("tag owner summary needs off-thread preparation");
2611
2611
  }
@@ -2681,7 +2681,7 @@ function isTagOwnerSummaryReady2(db, sessionId, ratio) {
2681
2681
  readTagOwnerSummary(db, sessionId, ratio);
2682
2682
  return true;
2683
2683
  } catch (error) {
2684
- if (error instanceof TagOwnerSummaryNotReady)
2684
+ if (error instanceof TagOwnerSummaryNotReady2)
2685
2685
  return false;
2686
2686
  throw error;
2687
2687
  }
@@ -2767,7 +2767,7 @@ function readTagOwnerSummary(db, sessionId, proseRatio, extraRatios = []) {
2767
2767
  let rows;
2768
2768
  let globalLastRowId = db.prepare("SELECT COALESCE(MAX(id), 0) AS id FROM tags").get().id;
2769
2769
  if (offThreadOnly && (globalLastRowId - cached.globalLastRowId > TAG_OWNER_PAGE_LIMIT || cached.dataVersion !== dataVersion && cached.unownedToolRows.size > TAG_OWNER_PAGE_LIMIT))
2770
- throw new TagOwnerSummaryNotReady;
2770
+ throw new TagOwnerSummaryNotReady2;
2771
2771
  if (cached.dataVersion === dataVersion && cached.generation === generation) {
2772
2772
  const statement = db.prepare(`SELECT ${TAG_OWNER_COLUMNS} FROM tags WHERE id > ? AND +session_id = ? ORDER BY id LIMIT ${TAG_OWNER_PAGE_LIMIT + 1}`);
2773
2773
  rows = statement.all(cached.globalLastRowId, sessionId);
@@ -2780,7 +2780,7 @@ function readTagOwnerSummary(db, sessionId, proseRatio, extraRatios = []) {
2780
2780
  }
2781
2781
  if (!captureInitialTagOwnerRevision(db, sessionId, cached, rows.length)) {
2782
2782
  if (offThreadOnly)
2783
- throw new TagOwnerSummaryNotReady;
2783
+ throw new TagOwnerSummaryNotReady2;
2784
2784
  rows = null;
2785
2785
  }
2786
2786
  } else {
@@ -2789,12 +2789,12 @@ function readTagOwnerSummary(db, sessionId, proseRatio, extraRatios = []) {
2789
2789
  try {
2790
2790
  globalLastRowId = db.prepare("SELECT COALESCE(MAX(id),0) AS id FROM tags").get().id;
2791
2791
  if (offThreadOnly && globalLastRowId - cached.globalLastRowId > TAG_OWNER_PAGE_LIMIT)
2792
- throw new TagOwnerSummaryNotReady;
2792
+ throw new TagOwnerSummaryNotReady2;
2793
2793
  rows = appendedSinceForeignCommit(db, sessionId, cached);
2794
2794
  const adopted = rows ? adoptedSinceForeignCommit(db, cached) : [];
2795
2795
  if (!rows || rows.length > TAG_OWNER_PAGE_LIMIT || adopted.length > TAG_OWNER_PAGE_LIMIT) {
2796
2796
  if (offThreadOnly)
2797
- throw new TagOwnerSummaryNotReady;
2797
+ throw new TagOwnerSummaryNotReady2;
2798
2798
  } else if (offThreadOnly) {
2799
2799
  tagOwnerRowsRead += rows.length + adopted.length;
2800
2800
  for (const row of rows)
@@ -2814,7 +2814,7 @@ function readTagOwnerSummary(db, sessionId, proseRatio, extraRatios = []) {
2814
2814
  if (rows) {
2815
2815
  const adopted = cached.dataVersion === dataVersion ? [] : adoptedSinceForeignCommit(db, cached);
2816
2816
  if (isMainThread && getSqliteDatabasePath2(db) && (rows.length > TAG_OWNER_PAGE_LIMIT || adopted.length > TAG_OWNER_PAGE_LIMIT))
2817
- throw new TagOwnerSummaryNotReady;
2817
+ throw new TagOwnerSummaryNotReady2;
2818
2818
  tagOwnerRowsRead += rows.length + adopted.length;
2819
2819
  for (const row of rows)
2820
2820
  foldTagOwnerRow(cached, row);
@@ -2827,7 +2827,7 @@ function readTagOwnerSummary(db, sessionId, proseRatio, extraRatios = []) {
2827
2827
  }
2828
2828
  }
2829
2829
  if (isMainThread && getSqliteDatabasePath2(db))
2830
- throw new TagOwnerSummaryNotReady;
2830
+ throw new TagOwnerSummaryNotReady2;
2831
2831
  const ratios = [
2832
2832
  ...new Set([...cached?.reasoningEstimatesByRatio.keys() ?? [], ...extraRatios])
2833
2833
  ];
@@ -3884,4 +3884,4 @@ function deleteToolTagsByOwner(db, sessionId, ownerMsgId) {
3884
3884
  return getDeleteToolTagsByOwnerStatement(db).all(sessionId, ownerMsgId).length;
3885
3885
  }
3886
3886
 
3887
- export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, updateTagByteSize2, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, updateTagTokenCount2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };
3887
+ export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, updateTagByteSize2, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, updateTagTokenCount2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, TagOwnerSummaryNotReady2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };
@@ -137,11 +137,11 @@ async function serveV2ArchiveReads2(port, openConnections) {
137
137
  { createV2RecoveryAttachments }
138
138
  ] = await Promise.all([
139
139
  import("./sqlite-zdgm52sv.js"),
140
- import("./store-reader-yh19h38c.js"),
141
- import("./store-pd1e9hnr.js"),
142
- import("./read-session-chunk-k3fqshw8.js"),
143
- import("./render-3psbedzk.js"),
144
- import("./search-archive-rvr7j5gx.js"),
140
+ import("./store-reader-3eh1s1m8.js"),
141
+ import("./store-h20ny8b8.js"),
142
+ import("./read-session-chunk-7h9f32sz.js"),
143
+ import("./render-4m7x9cq4.js"),
144
+ import("./search-archive-f6kwv02s.js"),
145
145
  import("./expand-attachments-h33jbgyz.js")
146
146
  ]);
147
147
  const pool = new V2StoreReaderPool;
@@ -24,7 +24,7 @@ import {
24
24
  TAG_SELECT_COLUMNS2,
25
25
  getCandidateToolOwners2,
26
26
  pickNearestPriorOwner2
27
- } from "./index-gxqr0sbd.js";
27
+ } from "./index-x53gnmce.js";
28
28
  import {
29
29
  OMO_INTERNAL_INITIATOR_MARKER,
30
30
  isSystemDirective,
@@ -5700,6 +5700,7 @@ function opencodeReasoningBudgetCutoff(args) {
5700
5700
  const newest = assistants.at(-1);
5701
5701
  const exempt = findLatestAssistantReasoningMutationExemptMessage(args.messages);
5702
5702
  const anthropic = args.anthropic ?? hasAnthropicReasoning(args.messages);
5703
+ const activeTurnStart = activeAnthropicTurnStart(args.messages, anthropic);
5703
5704
  const indexOfMessage = new Map;
5704
5705
  args.messages.forEach((message, index) => {
5705
5706
  if (!indexOfMessage.has(message))
@@ -5709,7 +5710,7 @@ function opencodeReasoningBudgetCutoff(args) {
5709
5710
  const frozenPartMessageIds = frozenParts ? new Set(frozenParts.keys()) : undefined;
5710
5711
  return reasoningBudgetCutoff(assistants.map((message) => ({
5711
5712
  tag: args.messageTagNumbers.get(message) ?? 0,
5712
- exempt: message === newest || message === exempt || isInActiveAnthropicTurn(args.messages, indexOfMessage.get(message) ?? -1, anthropic),
5713
+ exempt: message === newest || message === exempt || activeTurnStart !== undefined && (indexOfMessage.get(message) ?? -1) >= activeTurnStart,
5713
5714
  cost: () => {
5714
5715
  const costMessage = { ...message, parts: [...message.parts] };
5715
5716
  const id = message.info.id ?? "";
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  detectOverflow,
29
29
  isAnthropicFamilyRoute,
30
30
  readRawSessionMessages2
31
- } from "./index-wwg1je98.js";
31
+ } from "./index-xgnh498s.js";
32
32
  import {
33
33
  setHarness2
34
34
  } from "./index-pavzsdc6.js";
@@ -84,7 +84,7 @@ import {
84
84
  checkCompactionMarkerConsistency,
85
85
  clearInjectionCache,
86
86
  clearNoteNudgeTriggerOnly
87
- } from "./index-xejh7cqv.js";
87
+ } from "./index-bqhjzhv4.js";
88
88
  import"./index-sd3egckz.js";
89
89
  import {
90
90
  hasTrustedAbsoluteWall,
@@ -94,7 +94,7 @@ import {
94
94
  deriveHistorianChunkTokens2,
95
95
  resolveKnownHistorianContextLimit2,
96
96
  resolveHistorianContextLimit2
97
- } from "./index-dnqqqc5f.js";
97
+ } from "./index-8cfnaagj.js";
98
98
  import {
99
99
  buildDreamTaskRuntimeConfigs2,
100
100
  userMemoryCollectionEnabled2,
@@ -171,7 +171,7 @@ import {
171
171
  parameterDescriptionsFor,
172
172
  MagicContextRpcServer,
173
173
  applyHiddenSubagentTemperature
174
- } from "./index-fs3zfby1.js";
174
+ } from "./index-c99tqfge.js";
175
175
  import {
176
176
  resolveOpenCodeDbPath,
177
177
  openCodeDbPathExists,
@@ -219,7 +219,7 @@ import {
219
219
  createDbLkgPersistence,
220
220
  registerLkgPersistence,
221
221
  dropSlot
222
- } from "./index-jwa5t1s4.js";
222
+ } from "./index-1qmv26ga.js";
223
223
  import {
224
224
  recordSessionProjectIdentity
225
225
  } from "./index-jz5bk7xd.js";
@@ -234,7 +234,7 @@ import {
234
234
  openDatabaseAsync,
235
235
  isDatabasePersisted,
236
236
  getDatabasePersistenceError
237
- } from "./index-z8dacvkt.js";
237
+ } from "./index-b0xt5qz9.js";
238
238
  import {
239
239
  registerExitAbort,
240
240
  unregisterExitAbort
@@ -259,7 +259,7 @@ import"./index-dj2p8653.js";
259
259
  import {
260
260
  getDefaultSubcConnectionFile,
261
261
  SubcModuleTransport
262
- } from "./index-980brvjr.js";
262
+ } from "./index-5jk4h64j.js";
263
263
  import"./index-qt1qqasc.js";
264
264
  import"./index-fw42ms3m.js";
265
265
  import {
@@ -284,7 +284,7 @@ import {
284
284
  stripPersistedAssistantText,
285
285
  deleteTagsByMessageId2,
286
286
  getMaxTagNumberBySession2
287
- } from "./index-gxqr0sbd.js";
287
+ } from "./index-x53gnmce.js";
288
288
  import {
289
289
  resolveHistorianModel2,
290
290
  resolveOpenCodeAgentOverrides2,
@@ -297,8 +297,8 @@ import {
297
297
  import"./index-qcz1fy7h.js";
298
298
  import {
299
299
  deleteIndexedMessage
300
- } from "./index-bzq05g00.js";
301
- import"./index-66a50f3e.js";
300
+ } from "./index-etn2hmb5.js";
301
+ import"./index-6athgjba.js";
302
302
  import"./index-2qbtqg1w.js";
303
303
  import {
304
304
  pushNotification2
@@ -319,13 +319,13 @@ import {
319
319
  clearToolPermissionDenied,
320
320
  collectForeignTextParts,
321
321
  resetDegradedCacheCount2
322
- } from "./index-0a79y98x.js";
322
+ } from "./index-2x3kd999.js";
323
323
  import {
324
324
  scheduleClearAndReindex
325
- } from "./index-tvd2j34s.js";
325
+ } from "./index-44pp3vrj.js";
326
326
  import {
327
327
  runManagedRecomp2
328
- } from "./index-dcdvyaeh.js";
328
+ } from "./index-eej9kwad.js";
329
329
  import {
330
330
  isValidSemver,
331
331
  compareSemverCore
@@ -333,11 +333,11 @@ import {
333
333
  import"./index-fmsr7v69.js";
334
334
  import {
335
335
  runManagedWrapup2
336
- } from "./index-qdx8dq60.js";
337
- import"./index-gf1vx3bn.js";
336
+ } from "./index-37a9bfta.js";
337
+ import"./index-kw7azjmy.js";
338
338
  import"./index-kaqs6h31.js";
339
- import"./index-7na94cjf.js";
340
- import"./index-rk5hyc41.js";
339
+ import"./index-xgczbhyx.js";
340
+ import"./index-esr8qcc4.js";
341
341
  import {
342
342
  isDreamerRunnable,
343
343
  isSmartNoteSurfaceAvailable,
@@ -8205,7 +8205,7 @@ var require_src2 = __commonJS(function(exports, module) {
8205
8205
  // package.json
8206
8206
  var package_default = {
8207
8207
  name: "@cortexkit/opencode-magic-context",
8208
- version: "0.49.45",
8208
+ version: "0.49.47",
8209
8209
  type: "module",
8210
8210
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8211
8211
  main: "dist/index.js",
@@ -12063,7 +12063,7 @@ async function setup(context) {
12063
12063
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
12064
12064
  log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
12065
12065
  }
12066
- const { registerContext } = await import("./context-y85dvs6j.js");
12066
+ const { registerContext } = await import("./context-hvkjxqhs.js");
12067
12067
  setHarness2("opencode2");
12068
12068
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12069
12069
  const duties = await registerContext(context);
@@ -12536,7 +12536,7 @@ var server = async (ctx) => {
12536
12536
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12537
12537
  onStorageBusyRefusal: async (sessionId, message) => {
12538
12538
  const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-j93pn2hn.js"));
12539
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-1rzxmkhb.js"));
12539
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-5746a5b6.js"));
12540
12540
  await sendStatusNotification(ctx.client, sessionId, message, {
12541
12541
  toastDurationMs: 15000
12542
12542
  });
@@ -4,7 +4,7 @@ import {
4
4
  yieldIndexChunk2
5
5
  } from "./index-gzy5w8ya.js";
6
6
  import"./index-1zx87sdm.js";
7
- import"./index-gxqr0sbd.js";
7
+ import"./index-x53gnmce.js";
8
8
  import"./index-ak11t3gm.js";
9
9
  import"./index-pavzsdc6.js";
10
10
  import"./index-g2q4htwp.js";
@@ -18,7 +18,7 @@ import"./index-1d042x6w.js";
18
18
  import"./index-xa9mmq6c.js";
19
19
  import"./index-58e3y90n.js";
20
20
  import"./index-brj6was5.js";
21
- import"./index-wwg1je98.js";
21
+ import"./index-xgnh498s.js";
22
22
  import"./index-smtbdmc3.js";
23
23
  import {
24
24
  MESSAGE_INDEX_MAX_FTS_BYTES,
@@ -27,7 +27,7 @@ import {
27
27
  markMessageIndexDirty,
28
28
  getIndexableContent,
29
29
  indexSingleMessage
30
- } from "./index-bzq05g00.js";
30
+ } from "./index-etn2hmb5.js";
31
31
  import"./index-h9m41624.js";
32
32
  import"./index-fxbk7gk3.js";
33
33
 
@@ -20,7 +20,7 @@ import"./index-fb3zxn06.js";
20
20
  import {
21
21
  setSqlitePragmaConfig,
22
22
  initializeDatabase
23
- } from "./index-z8dacvkt.js";
23
+ } from "./index-b0xt5qz9.js";
24
24
  import"./index-wh9fxds5.js";
25
25
  import"./index-v0p37hm2.js";
26
26
  import"./index-96ztjvkn.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-0fcxs5e9.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-yp9956t8.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-rvr7j5gx.js");
54
+ const { renderSearchArchive } = await import("./search-archive-f6kwv02s.js");
55
55
  const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-x7a9b3jm.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-e4avh192.js");
82
82
  setHarness(input.harness ?? "opencode");
83
83
  const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
84
- import("./message-index-bounded-d8xt6q5c.js"),
84
+ import("./message-index-bounded-3qpg8dq5.js"),
85
85
  import("./sqlite-context-pragmas-mv9jqwjh.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-ye9aqrqy.js");
98
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-q8erkn48.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,8 +38,8 @@ import {
38
38
  readSessionChunk2,
39
39
  getRawSessionMessageIdsThrough2,
40
40
  readRawSessionSeedTail2
41
- } from "./index-wwg1je98.js";
42
- import"./index-gxqr0sbd.js";
41
+ } from "./index-xgnh498s.js";
42
+ import"./index-x53gnmce.js";
43
43
  import"./index-1zx87sdm.js";
44
44
  import"./index-brj6was5.js";
45
45
  import"./index-4dpvnp8k.js";
@@ -7,8 +7,8 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./index-dcdvyaeh.js";
11
- import"./index-xejh7cqv.js";
10
+ } from "./index-eej9kwad.js";
11
+ import"./index-bqhjzhv4.js";
12
12
  import"./index-gn6gfz4y.js";
13
13
  import"./index-sd3egckz.js";
14
14
  import"./index-sd2s4t4p.js";
@@ -16,16 +16,16 @@ import"./index-d4qw2h43.js";
16
16
  import"./index-jjvbk92s.js";
17
17
  import"./index-s79g172v.js";
18
18
  import"./index-4dhv7mqz.js";
19
- import"./index-jwa5t1s4.js";
19
+ import"./index-1qmv26ga.js";
20
20
  import"./index-2qbtqg1w.js";
21
- import"./index-bzq05g00.js";
21
+ import"./index-etn2hmb5.js";
22
22
  import"./index-2amn2s73.js";
23
- import"./index-66a50f3e.js";
24
- import"./index-dnqqqc5f.js";
23
+ import"./index-6athgjba.js";
24
+ import"./index-8cfnaagj.js";
25
25
  import"./index-25ka1jza.js";
26
26
  import"./index-qt1qqasc.js";
27
- import"./index-wwg1je98.js";
28
- import"./index-gxqr0sbd.js";
27
+ import"./index-xgnh498s.js";
28
+ import"./index-x53gnmce.js";
29
29
  import"./index-1zx87sdm.js";
30
30
  import"./index-brj6was5.js";
31
31
  import"./index-x8a7jmkh.js";
@@ -35,7 +35,7 @@ import"./index-4dpvnp8k.js";
35
35
  import"./index-jz5bk7xd.js";
36
36
  import"./index-qcz1fy7h.js";
37
37
  import"./index-dj2p8653.js";
38
- import"./index-z8dacvkt.js";
38
+ import"./index-b0xt5qz9.js";
39
39
  import"./index-fb3zxn06.js";
40
40
  import"./index-nj360hcs.js";
41
41
  import"./index-fr0wbhdn.js";
@@ -2,20 +2,20 @@ import {
2
2
  renderMessageByOrdinal2,
3
3
  renderVerboseRangeForTool2,
4
4
  renderItemByTag2
5
- } from "./index-gf1vx3bn.js";
6
- import"./index-jwa5t1s4.js";
5
+ } from "./index-kw7azjmy.js";
6
+ import"./index-1qmv26ga.js";
7
7
  import"./index-2qbtqg1w.js";
8
- import"./index-bzq05g00.js";
8
+ import"./index-etn2hmb5.js";
9
9
  import"./index-2amn2s73.js";
10
- import"./index-66a50f3e.js";
11
- import"./index-wwg1je98.js";
12
- import"./index-gxqr0sbd.js";
10
+ import"./index-6athgjba.js";
11
+ import"./index-xgnh498s.js";
12
+ import"./index-x53gnmce.js";
13
13
  import"./index-1zx87sdm.js";
14
14
  import"./index-brj6was5.js";
15
15
  import"./index-4dpvnp8k.js";
16
16
  import"./index-qcz1fy7h.js";
17
17
  import"./index-dj2p8653.js";
18
- import"./index-z8dacvkt.js";
18
+ import"./index-b0xt5qz9.js";
19
19
  import"./index-fb3zxn06.js";
20
20
  import"./index-nj360hcs.js";
21
21
  import"./index-fr0wbhdn.js";
@@ -5,8 +5,8 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./index-980brvjr.js";
9
- import"./index-tvd2j34s.js";
8
+ } from "./index-5jk4h64j.js";
9
+ import"./index-44pp3vrj.js";
10
10
  import"./index-kaqs6h31.js";
11
11
  import"./index-sd2s4t4p.js";
12
12
  import"./index-d4qw2h43.js";
@@ -14,11 +14,11 @@ import"./index-jjvbk92s.js";
14
14
  import"./index-s79g172v.js";
15
15
  import"./index-4dhv7mqz.js";
16
16
  import"./index-2qbtqg1w.js";
17
- import"./index-bzq05g00.js";
17
+ import"./index-etn2hmb5.js";
18
18
  import"./index-2amn2s73.js";
19
19
  import"./index-qt1qqasc.js";
20
- import"./index-wwg1je98.js";
21
- import"./index-gxqr0sbd.js";
20
+ import"./index-xgnh498s.js";
21
+ import"./index-x53gnmce.js";
22
22
  import"./index-1zx87sdm.js";
23
23
  import"./index-brj6was5.js";
24
24
  import"./index-hkh8x221.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  renderSearchArchive2,
3
3
  renderSearchArchiveOffThread2
4
- } from "./index-rk5hyc41.js";
5
- import"./index-7na94cjf.js";
4
+ } from "./index-esr8qcc4.js";
5
+ import"./index-xgczbhyx.js";
6
6
  import"./index-kaqs6h31.js";
7
- import"./index-wwg1je98.js";
8
- import"./index-gxqr0sbd.js";
7
+ import"./index-xgnh498s.js";
8
+ import"./index-x53gnmce.js";
9
9
  import"./index-1zx87sdm.js";
10
10
  import"./index-brj6was5.js";
11
11
  import"./index-4dpvnp8k.js";
@@ -23,6 +23,11 @@ export interface WindowDerivation {
23
23
  absoluteWall: number;
24
24
  /** Accepted provider input used to raise the usable denominator above metadata. */
25
25
  provenInputTokens?: number;
26
+ /**
27
+ * The usable hard limit before a declared input limit lowered it, present
28
+ * only when it did.
29
+ */
30
+ hardWithoutInputCap?: number;
26
31
  }
27
32
  export interface WindowGeometryResult {
28
33
  usableSoft: number;
@@ -1 +1 @@
1
- {"version":3,"file":"window-geometry.d.ts","sourceRoot":"","sources":["../../src/shared/window-geometry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAO,MAAM,kBAAkB,OAAQ,CAAC;AACxC,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AACjD,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,sGAAsG;AACtG,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEvF;AAED,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,eAAe,GAAG,aAAa,GAAG,MAAM,CAAC;AAC9F,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,mBAAmB,CAAC;IACnC,QAAQ,EAAE,cAAc,CAAC;IACzB,YAAY,EAAE,iBAAiB,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,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EACnB,MAAM,EAAE,oBAAoB,GAC7B,MAAM,CAcR;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,GAAG,MAAM,CAInF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQzD"}
@@ -13,6 +13,7 @@ import {
13
13
  getReasoningTokenEstimatesByMessage2,
14
14
  tryGetReasoningTokenEstimatesByMessage2,
15
15
  getMaxTagNumberByOwnerMessage2,
16
+ TagOwnerSummaryNotReady2,
16
17
  scanTagOwnerSummary2,
17
18
  cachedTagOwnerRatios2,
18
19
  tagOwnerWarmupState2,
@@ -63,7 +64,7 @@ import {
63
64
  adoptNullOwnerToolTag2,
64
65
  getCandidateToolOwners2,
65
66
  pickNearestPriorOwner2
66
- } from "./index-gxqr0sbd.js";
67
+ } from "./index-x53gnmce.js";
67
68
  import"./index-1zx87sdm.js";
68
69
  import"./index-9wnbnx8f.js";
69
70
  import"./index-ak11t3gm.js";
@@ -75,6 +76,7 @@ import"./index-z4p0ry94.js";
75
76
  export {
76
77
  AGE_RECLAIM_MIN_TOKENS2 as AGE_RECLAIM_MIN_TOKENS,
77
78
  TAG_SELECT_COLUMNS2 as TAG_SELECT_COLUMNS,
79
+ TagOwnerSummaryNotReady2 as TagOwnerSummaryNotReady,
78
80
  adoptFallbackTagMessageId2 as adoptFallbackTagMessageId,
79
81
  adoptNullOwnerToolTag2 as adoptNullOwnerToolTag,
80
82
  adoptPiFallbackMessageTag2 as adoptPiFallbackMessageTag,
@@ -5,8 +5,8 @@ import {
5
5
  readV2RawMessagePagesForConversion2,
6
6
  createV2RawMessageReader2,
7
7
  createV2RawMessageProvider2
8
- } from "./index-29gd1zcx.js";
9
- import"./index-66a50f3e.js";
8
+ } from "./index-w6fh4v87.js";
9
+ import"./index-6athgjba.js";
10
10
  import"./index-wh9fxds5.js";
11
11
  import"./index-58e3y90n.js";
12
12
  import"./index-gzy5w8ya.js";
@@ -3,7 +3,7 @@ import {
3
3
  RAW_MESSAGE_TYPES2,
4
4
  V2StoreReaderPool2,
5
5
  V2StoreReader2
6
- } from "./index-66a50f3e.js";
6
+ } from "./index-6athgjba.js";
7
7
  import"./index-58e3y90n.js";
8
8
  import"./index-gzy5w8ya.js";
9
9
  export {
@@ -21,9 +21,9 @@ export declare const FULL_PARAMETER_DESCRIPTIONS: {
21
21
  };
22
22
  readonly ctx_memory: {
23
23
  readonly action: "write | update | archive | merge | get";
24
- readonly content: "The memory text — one standalone fact (write, update, merge).";
25
- readonly category: "Kind of fact (required for write; on update/merge, pass the memory's current category to keep it).";
26
- readonly ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get.";
24
+ readonly content: "The memory text — one standalone fact (write, update, merge). Archive and get take an empty string.";
25
+ readonly category: "Kind of fact: the new fact's kind for write; on update/merge, the memory's current category to keep it. Archive and get ignore it.";
26
+ readonly ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get. Write takes an empty list.";
27
27
  readonly reason: "Why it is being archived (optional).";
28
28
  };
29
29
  readonly ctx_search: {
@@ -56,9 +56,9 @@ export declare const LIGHT_PARAMETER_DESCRIPTIONS: {
56
56
  };
57
57
  readonly ctx_memory: {
58
58
  readonly action: "write | update | archive | merge | get";
59
- readonly content: "One standalone fact (write, update, merge).";
60
- readonly category: "Kind of fact (required for write; on update/merge pass the current category to keep it).";
61
- readonly ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get.";
59
+ readonly content: "One standalone fact (write, update, merge). Archive and get: empty string.";
60
+ readonly category: "Kind of fact (write; on update/merge pass the current category to keep it). Archive and get ignore it.";
61
+ readonly ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get. Write: empty list.";
62
62
  readonly reason: "Why it is archived (optional).";
63
63
  };
64
64
  readonly ctx_search: {