@cortexkit/opencode-magic-context 0.41.3 → 0.42.0

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 (384) hide show
  1. package/README.md +21 -3
  2. package/dist/agents/hidden-agent-registrations.d.ts +1 -3
  3. package/dist/agents/hidden-agent-registrations.d.ts.map +1 -1
  4. package/dist/agents/magic-context-prompt.d.ts +1 -1
  5. package/dist/agents/magic-context-prompt.d.ts.map +1 -1
  6. package/dist/agents/permissions.d.ts +1 -22
  7. package/dist/agents/permissions.d.ts.map +1 -1
  8. package/dist/config/agent-disable.d.ts +0 -5
  9. package/dist/config/agent-disable.d.ts.map +1 -1
  10. package/dist/config/index.d.ts +14 -0
  11. package/dist/config/index.d.ts.map +1 -1
  12. package/dist/config/migrate-config-location.d.ts.map +1 -1
  13. package/dist/config/project-security.d.ts +17 -0
  14. package/dist/config/project-security.d.ts.map +1 -1
  15. package/dist/config/removed-agent-config.d.ts +8 -0
  16. package/dist/config/removed-agent-config.d.ts.map +1 -0
  17. package/dist/config/schema/magic-context.d.ts +23 -201
  18. package/dist/config/schema/magic-context.d.ts.map +1 -1
  19. package/dist/{conflict-warning-hook-z5sd697e.js → conflict-warning-hook-6p3xqeac.js} +4 -4
  20. package/dist/{derive-budgets-901a0pk0.js → derive-budgets-s2pgnnm4.js} +4 -2
  21. package/dist/features/builtin-commands/commands.d.ts +0 -4
  22. package/dist/features/builtin-commands/commands.d.ts.map +1 -1
  23. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
  24. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +7 -0
  25. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  26. package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
  27. package/dist/features/magic-context/context-authority.d.ts +31 -4
  28. package/dist/features/magic-context/context-authority.d.ts.map +1 -1
  29. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
  30. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -1
  31. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
  32. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -1
  33. package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
  34. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +19 -9
  35. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -1
  36. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +13 -0
  37. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
  38. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
  39. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +7 -0
  40. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  41. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  42. package/dist/features/magic-context/fail-closed-block.d.ts.map +1 -1
  43. package/dist/features/magic-context/git-commits/sweep-coordinator.d.ts.map +1 -1
  44. package/dist/features/magic-context/index.d.ts +0 -1
  45. package/dist/features/magic-context/index.d.ts.map +1 -1
  46. package/dist/features/magic-context/memory/embedding-local.d.ts +13 -0
  47. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  48. package/dist/features/magic-context/memory/embedding-synapse.d.ts +43 -10
  49. package/dist/features/magic-context/memory/embedding-synapse.d.ts.map +1 -1
  50. package/dist/features/magic-context/memory/embedding.d.ts +1 -1
  51. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  52. package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
  53. package/dist/features/magic-context/memory/project-identity.d.ts +1 -0
  54. package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
  55. package/dist/features/magic-context/memory/promotion.d.ts +7 -1
  56. package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
  57. package/dist/features/magic-context/merged-reasoning-decisions.d.ts +6 -0
  58. package/dist/features/magic-context/merged-reasoning-decisions.d.ts.map +1 -0
  59. package/dist/features/magic-context/message-fts-rowid-map.d.ts.map +1 -1
  60. package/dist/features/magic-context/message-index-async.d.ts +12 -0
  61. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  62. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  63. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  64. package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
  65. package/dist/features/magic-context/mural/render-trigger.d.ts +6 -0
  66. package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
  67. package/dist/features/magic-context/no-content-compartment.d.ts +12 -0
  68. package/dist/features/magic-context/no-content-compartment.d.ts.map +1 -0
  69. package/dist/features/magic-context/pi-content-decisions.d.ts +9 -0
  70. package/dist/features/magic-context/pi-content-decisions.d.ts.map +1 -0
  71. package/dist/features/magic-context/project-docs-hash.d.ts +4 -0
  72. package/dist/features/magic-context/project-docs-hash.d.ts.map +1 -1
  73. package/dist/features/magic-context/project-embedding-registry.d.ts +13 -4
  74. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  75. package/dist/features/magic-context/protection-window.d.ts +79 -0
  76. package/dist/features/magic-context/protection-window.d.ts.map +1 -0
  77. package/dist/features/magic-context/search.d.ts.map +1 -1
  78. package/dist/features/magic-context/session-project-backfill.d.ts.map +1 -1
  79. package/dist/features/magic-context/shadow-backfill-state.d.ts +26 -0
  80. package/dist/features/magic-context/shadow-backfill-state.d.ts.map +1 -0
  81. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
  82. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +4 -0
  83. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -1
  84. package/dist/features/magic-context/smart-notes/storage.d.ts.map +1 -1
  85. package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
  86. package/dist/features/magic-context/storage-db.d.ts +1 -1
  87. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  88. package/dist/features/magic-context/storage-embedding-measurements.d.ts +2 -2
  89. package/dist/features/magic-context/storage-embedding-measurements.d.ts.map +1 -1
  90. package/dist/features/magic-context/storage-historian-runs.d.ts +4 -0
  91. package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
  92. package/dist/features/magic-context/storage-memory-mutation-log.d.ts +1 -0
  93. package/dist/features/magic-context/storage-memory-mutation-log.d.ts.map +1 -1
  94. package/dist/features/magic-context/storage-meta-persisted.d.ts +81 -15
  95. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  96. package/dist/features/magic-context/storage-meta.d.ts +1 -1
  97. package/dist/features/magic-context/storage-meta.d.ts.map +1 -1
  98. package/dist/features/magic-context/storage-native-replay.d.ts +29 -0
  99. package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -0
  100. package/dist/features/magic-context/storage-notes.d.ts +6 -0
  101. package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
  102. package/dist/features/magic-context/storage-replay-document.d.ts +33 -0
  103. package/dist/features/magic-context/storage-replay-document.d.ts.map +1 -0
  104. package/dist/features/magic-context/storage-subagent-invocations.d.ts +1 -1
  105. package/dist/features/magic-context/storage-subagent-invocations.d.ts.map +1 -1
  106. package/dist/features/magic-context/storage-tags.d.ts +19 -11
  107. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  108. package/dist/features/magic-context/storage.d.ts +3 -3
  109. package/dist/features/magic-context/storage.d.ts.map +1 -1
  110. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
  111. package/dist/features/magic-context/tagger.d.ts +13 -0
  112. package/dist/features/magic-context/tagger.d.ts.map +1 -1
  113. package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
  114. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  115. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
  116. package/dist/features/magic-context/workspaces.d.ts.map +1 -1
  117. package/dist/hooks/magic-context/apply-operations.d.ts +11 -5
  118. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  119. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  120. package/dist/hooks/magic-context/cache-busting-signals.d.ts +9 -1
  121. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  122. package/dist/hooks/magic-context/caveman-cleanup.d.ts +1 -1
  123. package/dist/hooks/magic-context/caveman-cleanup.d.ts.map +1 -1
  124. package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
  125. package/dist/hooks/magic-context/child-session-spawn.d.ts +3 -3
  126. package/dist/hooks/magic-context/child-session-spawn.d.ts.map +1 -1
  127. package/dist/hooks/magic-context/command-handler.d.ts +5 -10
  128. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  129. package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
  130. package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts +10 -21
  131. package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts.map +1 -1
  132. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  133. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  134. package/dist/hooks/magic-context/compartment-runner-types.d.ts +4 -0
  135. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  136. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts +26 -2
  137. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
  138. package/dist/hooks/magic-context/decay-render.d.ts.map +1 -1
  139. package/dist/hooks/magic-context/derive-budgets.d.ts +1 -0
  140. package/dist/hooks/magic-context/derive-budgets.d.ts.map +1 -1
  141. package/dist/hooks/magic-context/dropped-input-guard.d.ts +9 -0
  142. package/dist/hooks/magic-context/dropped-input-guard.d.ts.map +1 -0
  143. package/dist/hooks/magic-context/emergency-drop.d.ts +9 -2
  144. package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
  145. package/dist/hooks/magic-context/event-handler.d.ts +0 -1
  146. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  147. package/dist/hooks/magic-context/event-payloads.d.ts +7 -6
  148. package/dist/hooks/magic-context/event-payloads.d.ts.map +1 -1
  149. package/dist/hooks/magic-context/event-resolvers.d.ts +1 -1
  150. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
  151. package/dist/hooks/magic-context/execute-status.d.ts +8 -2
  152. package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
  153. package/dist/hooks/magic-context/format-embed-status.d.ts.map +1 -1
  154. package/dist/hooks/magic-context/heuristic-cleanup.d.ts +11 -4
  155. package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
  156. package/dist/hooks/magic-context/hook-handlers.d.ts +5 -1
  157. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  158. package/dist/hooks/magic-context/hook.d.ts +17 -5
  159. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  160. package/dist/hooks/magic-context/inject-compartments.d.ts +14 -1
  161. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  162. package/dist/hooks/magic-context/issue-423-fixture.d.ts +37 -0
  163. package/dist/hooks/magic-context/issue-423-fixture.d.ts.map +1 -0
  164. package/dist/hooks/magic-context/issue-424-fixture.d.ts +11 -0
  165. package/dist/hooks/magic-context/issue-424-fixture.d.ts.map +1 -0
  166. package/dist/hooks/magic-context/live-session-state.d.ts +1 -1
  167. package/dist/hooks/magic-context/lkg-slot.d.ts +34 -0
  168. package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
  169. package/dist/hooks/magic-context/module-state-sync-timing.d.ts +21 -0
  170. package/dist/hooks/magic-context/module-state-sync-timing.d.ts.map +1 -0
  171. package/dist/hooks/magic-context/module-state-sync.d.ts +21 -7
  172. package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -1
  173. package/dist/hooks/magic-context/module-transport.d.ts +12 -0
  174. package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
  175. package/dist/hooks/magic-context/module-wire.d.ts +8 -0
  176. package/dist/hooks/magic-context/module-wire.d.ts.map +1 -1
  177. package/dist/hooks/magic-context/note-nudger.d.ts.map +1 -1
  178. package/dist/hooks/magic-context/persist-filtered-noise.d.ts +5 -0
  179. package/dist/hooks/magic-context/persist-filtered-noise.d.ts.map +1 -0
  180. package/dist/hooks/magic-context/producer-window-guard.d.ts +8 -0
  181. package/dist/hooks/magic-context/producer-window-guard.d.ts.map +1 -0
  182. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +65 -0
  183. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  184. package/dist/hooks/magic-context/read-session-chunk.d.ts +20 -18
  185. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  186. package/dist/hooks/magic-context/read-session-db.d.ts +22 -12
  187. package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
  188. package/dist/hooks/magic-context/read-session-formatting.d.ts +8 -0
  189. package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
  190. package/dist/hooks/magic-context/read-session-raw.d.ts +10 -1
  191. package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
  192. package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts +4 -1
  193. package/dist/hooks/magic-context/read-session-true-raw-tokens.d.ts.map +1 -1
  194. package/dist/hooks/magic-context/recomp-orchestrator.d.ts +2 -0
  195. package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
  196. package/dist/hooks/magic-context/reference-retrieval.d.ts.map +1 -1
  197. package/dist/hooks/magic-context/rust-mode-transform.d.ts +79 -11
  198. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  199. package/dist/hooks/magic-context/send-session-notification.d.ts +11 -10
  200. package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
  201. package/dist/hooks/magic-context/sentinel.d.ts +3 -3
  202. package/dist/hooks/magic-context/sentinel.d.ts.map +1 -1
  203. package/dist/hooks/magic-context/strip-content.d.ts +7 -0
  204. package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
  205. package/dist/hooks/magic-context/supersession-reclaim.d.ts +13 -0
  206. package/dist/hooks/magic-context/supersession-reclaim.d.ts.map +1 -1
  207. package/dist/hooks/magic-context/system-prompt-hash.d.ts +2 -3
  208. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  209. package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
  210. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  211. package/dist/hooks/magic-context/tail-hygiene-walk.d.ts +16 -6
  212. package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
  213. package/dist/hooks/magic-context/tool-drop-target.d.ts +1 -0
  214. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
  215. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -0
  216. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  217. package/dist/hooks/magic-context/transform-context-state.d.ts +7 -1
  218. package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
  219. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +11 -4
  220. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  221. package/dist/hooks/magic-context/transform.d.ts +11 -2
  222. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  223. package/dist/hooks/magic-context/upgrade-reminder.d.ts +7 -9
  224. package/dist/hooks/magic-context/upgrade-reminder.d.ts.map +1 -1
  225. package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
  226. package/dist/index-1974jvn3.js +783 -0
  227. package/dist/{index-npx8vhmy.js → index-36wd1d6k.js} +7 -30
  228. package/dist/{index-kby1sng5.js → index-avwt563y.js} +8 -1
  229. package/dist/{index-vmmjdpc0.js → index-c9hamh36.js} +18357 -16010
  230. package/dist/{index-0bycg0np.js → index-jmtjh2d3.js} +4 -4
  231. package/dist/{index-q264erdp.js → index-nqgjwfzn.js} +70 -38
  232. package/dist/index-sd3egckz.js +1583 -0
  233. package/dist/{index-dn1rwpd8.js → index-xdtge3y2.js} +58 -16
  234. package/dist/index.d.ts.map +1 -1
  235. package/dist/index.js +6826 -6660
  236. package/dist/plugin/conflict-warning-hook.d.ts +5 -6
  237. package/dist/plugin/conflict-warning-hook.d.ts.map +1 -1
  238. package/dist/plugin/dream-timer.d.ts +1 -0
  239. package/dist/plugin/dream-timer.d.ts.map +1 -1
  240. package/dist/plugin/embedding-routing.d.ts +4 -1
  241. package/dist/plugin/embedding-routing.d.ts.map +1 -1
  242. package/dist/plugin/hooks/create-session-hooks.d.ts +19 -2
  243. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  244. package/dist/plugin/rpc-handlers.d.ts +31 -1
  245. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  246. package/dist/plugin/rust-tool-backends.d.ts +1 -0
  247. package/dist/plugin/rust-tool-backends.d.ts.map +1 -1
  248. package/dist/plugin/tool-registry.d.ts.map +1 -1
  249. package/dist/{recomp-orchestrator-f5m2wk74.js → recomp-orchestrator-3atsasjy.js} +6 -6
  250. package/dist/{send-session-notification-hdh02wy9.js → send-session-notification-1qeqkswb.js} +6 -4
  251. package/dist/shared/cache-ttl-display.d.ts +23 -0
  252. package/dist/shared/cache-ttl-display.d.ts.map +1 -0
  253. package/dist/shared/cache-ttl-seed.d.ts +10 -0
  254. package/dist/shared/cache-ttl-seed.d.ts.map +1 -0
  255. package/dist/shared/child-session-teardown.d.ts +34 -0
  256. package/dist/shared/child-session-teardown.d.ts.map +1 -0
  257. package/dist/shared/config-diagnostics.d.ts +30 -0
  258. package/dist/shared/config-diagnostics.d.ts.map +1 -0
  259. package/dist/shared/config-warning-surface.d.ts +3 -0
  260. package/dist/shared/config-warning-surface.d.ts.map +1 -0
  261. package/dist/shared/data-path.d.ts +10 -9
  262. package/dist/shared/data-path.d.ts.map +1 -1
  263. package/dist/shared/harness-provider-map.d.ts +7 -0
  264. package/dist/shared/harness-provider-map.d.ts.map +1 -1
  265. package/dist/shared/jsonc-parser.d.ts +12 -0
  266. package/dist/shared/jsonc-parser.d.ts.map +1 -1
  267. package/dist/shared/keep-subagents.d.ts +1 -1
  268. package/dist/shared/keep-subagents.d.ts.map +1 -1
  269. package/dist/shared/model-suggestion-retry.d.ts +15 -11
  270. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  271. package/dist/shared/opencode-db-path.d.ts +24 -0
  272. package/dist/shared/opencode-db-path.d.ts.map +1 -0
  273. package/dist/shared/pi-executable.d.ts +6 -0
  274. package/dist/shared/pi-executable.d.ts.map +1 -0
  275. package/dist/shared/prompt-surface-runtime.d.ts +10 -5
  276. package/dist/shared/prompt-surface-runtime.d.ts.map +1 -1
  277. package/dist/shared/resolve-fallbacks.d.ts +1 -1
  278. package/dist/shared/rpc-types.d.ts +117 -0
  279. package/dist/shared/rpc-types.d.ts.map +1 -1
  280. package/dist/shared/rpc-utils.d.ts.map +1 -1
  281. package/dist/shared/sqlite.d.ts +42 -0
  282. package/dist/shared/sqlite.d.ts.map +1 -1
  283. package/dist/shared/status-detail-text.d.ts.map +1 -1
  284. package/dist/shared/subagent-runner.d.ts +17 -10
  285. package/dist/shared/subagent-runner.d.ts.map +1 -1
  286. package/dist/shared/tag-transcript.d.ts.map +1 -1
  287. package/dist/shared/transcript.d.ts +6 -0
  288. package/dist/shared/transcript.d.ts.map +1 -1
  289. package/dist/shared/window-geometry.d.ts +23 -0
  290. package/dist/shared/window-geometry.d.ts.map +1 -1
  291. package/dist/shared/write-transaction-timing.d.ts +1 -1
  292. package/dist/shared/write-transaction-timing.d.ts.map +1 -1
  293. package/dist/{storage-meta-session-3rxx9ekm.js → storage-meta-session-e6g0mmec.js} +2 -2
  294. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  295. package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -1
  296. package/dist/tools/ctx-note/constants.d.ts +1 -1
  297. package/dist/tools/ctx-note/constants.d.ts.map +1 -1
  298. package/dist/tools/ctx-note/tools.d.ts.map +1 -1
  299. package/dist/tools/ctx-note/types.d.ts +1 -0
  300. package/dist/tools/ctx-note/types.d.ts.map +1 -1
  301. package/dist/tools/ctx-reduce/tools.d.ts +10 -1
  302. package/dist/tools/ctx-reduce/tools.d.ts.map +1 -1
  303. package/dist/tools/ctx-search/constants.d.ts +1 -1
  304. package/dist/tools/ctx-search/constants.d.ts.map +1 -1
  305. package/dist/tools/light-descriptions.d.ts +2 -2
  306. package/dist/tools/light-descriptions.d.ts.map +1 -1
  307. package/package.json +2 -3
  308. package/src/agents/hidden-agent-registrations.ts +3 -15
  309. package/src/agents/magic-context-prompt.test.ts +7 -5
  310. package/src/agents/magic-context-prompt.ts +22 -30
  311. package/src/agents/permissions.test.ts +1 -42
  312. package/src/agents/permissions.ts +1 -24
  313. package/src/config/agent-disable.ts +5 -22
  314. package/src/config/index.test.ts +169 -14
  315. package/src/config/index.ts +137 -21
  316. package/src/config/latch-permanence-guard.test.ts +4 -0
  317. package/src/config/migrate-config-location.test.ts +39 -6
  318. package/src/config/migrate-config-location.ts +18 -31
  319. package/src/config/profiles.ts +1 -1
  320. package/src/config/project-security.hostile-matrix.test.ts +0 -8
  321. package/src/config/project-security.test.ts +11 -22
  322. package/src/config/project-security.ts +103 -9
  323. package/src/config/protected-tokens.test.ts +235 -0
  324. package/src/config/removed-agent-config.ts +45 -0
  325. package/src/config/removed-agent-source-fence.test.ts +56 -0
  326. package/src/config/schema/magic-context.test.ts +21 -42
  327. package/src/config/schema/magic-context.ts +46 -37
  328. package/src/shared/cache-ttl-display.test.ts +84 -0
  329. package/src/shared/cache-ttl-display.ts +64 -0
  330. package/src/shared/cache-ttl-seed.ts +23 -0
  331. package/src/shared/child-session-teardown.test.ts +218 -0
  332. package/src/shared/child-session-teardown.ts +66 -0
  333. package/src/shared/config-diagnostics.test.ts +29 -0
  334. package/src/shared/config-diagnostics.ts +64 -0
  335. package/src/shared/config-warning-surface.ts +28 -0
  336. package/src/shared/data-path.ts +10 -9
  337. package/src/shared/harness-provider-map.test.ts +16 -0
  338. package/src/shared/harness-provider-map.ts +15 -0
  339. package/src/shared/jsonc-parser.test.ts +14 -1
  340. package/src/shared/jsonc-parser.ts +93 -0
  341. package/src/shared/keep-subagents.ts +9 -14
  342. package/src/shared/model-suggestion-retry.ts +144 -29
  343. package/src/shared/opencode-db-path.test.ts +196 -0
  344. package/src/shared/opencode-db-path.ts +215 -0
  345. package/src/shared/pi-executable.ts +20 -0
  346. package/src/shared/prompt-surface-a1-golden.md +50 -35
  347. package/src/shared/prompt-surface-runtime.test.ts +28 -0
  348. package/src/shared/prompt-surface-runtime.ts +22 -5
  349. package/src/shared/resolve-fallbacks.ts +1 -1
  350. package/src/shared/rpc-types.ts +124 -0
  351. package/src/shared/rpc-utils.ts +2 -3
  352. package/src/shared/session-messages-bounded.test.ts +1 -1
  353. package/src/shared/sqlite-import-fence.test.ts +19 -0
  354. package/src/shared/sqlite.test.ts +27 -1
  355. package/src/shared/sqlite.ts +204 -1
  356. package/src/shared/status-detail-text.test.ts +8 -4
  357. package/src/shared/status-detail-text.ts +20 -1
  358. package/src/shared/subagent-runner.ts +17 -10
  359. package/src/shared/tag-transcript.ts +53 -22
  360. package/src/shared/transcript.ts +7 -0
  361. package/src/shared/window-geometry.test.ts +44 -0
  362. package/src/shared/window-geometry.ts +89 -11
  363. package/src/shared/write-transaction-attribution.test.ts +241 -0
  364. package/src/shared/write-transaction-timing.ts +2 -1
  365. package/src/tui/index.tsx +18 -4
  366. package/src/tui/slots/sidebar-content.tsx +12 -7
  367. package/src/tui-compiled/index.tsx +237 -225
  368. package/src/tui-compiled/slots/sidebar-content.tsx +301 -305
  369. package/dist/agents/sidekick.d.ts +0 -2
  370. package/dist/agents/sidekick.d.ts.map +0 -1
  371. package/dist/features/magic-context/defaults.d.ts +0 -2
  372. package/dist/features/magic-context/defaults.d.ts.map +0 -1
  373. package/dist/features/magic-context/sidekick/agent.d.ts +0 -14
  374. package/dist/features/magic-context/sidekick/agent.d.ts.map +0 -1
  375. package/dist/features/magic-context/sidekick/core.d.ts +0 -38
  376. package/dist/features/magic-context/sidekick/core.d.ts.map +0 -1
  377. package/dist/features/magic-context/sidekick/index.d.ts +0 -3
  378. package/dist/features/magic-context/sidekick/index.d.ts.map +0 -1
  379. package/dist/hooks/magic-context/boundary-execution.d.ts +0 -27
  380. package/dist/hooks/magic-context/boundary-execution.d.ts.map +0 -1
  381. package/dist/index-jfpk81yt.js +0 -146
  382. package/dist/index-raatkvw5.js +0 -360
  383. package/src/agents/sidekick.ts +0 -1
  384. package/src/features/magic-context/defaults.ts +0 -1
@@ -55,7 +55,7 @@ export interface PromptRetryOptions {
55
55
  fallbackModels?: readonly ModelInput[];
56
56
  /**
57
57
  * Identifier for structured logging (e.g. "dreamer:consolidate",
58
- * "historian", "compressor", "sidekick"). Helps correlate fallback
58
+ * "historian", "compressor", "dreamer"). Helps correlate fallback
59
59
  * attempts to a specific call site in `magic-context.log`. Defaults to
60
60
  * "subagent" if not provided.
61
61
  */
@@ -79,6 +79,17 @@ export interface ValidatedPromptRetryResult<TOutput, TValidated> {
79
79
  validated: TValidated;
80
80
  attempt: PromptAttemptInfo;
81
81
  }
82
+ export type PromptFailureClass = "provider_timeout" | "provider_error" | "empty_completion" | "no_models" | "child_aborted" | "parse_failed" | "unknown";
83
+ /** Diagnostic facts retained when a validated child prompt ultimately fails. */
84
+ export interface PromptFailureDetail {
85
+ failureClass: PromptFailureClass;
86
+ modelAttempted: string | null;
87
+ modelsTried: string[];
88
+ providerError: string | null;
89
+ timeoutMs: number | null;
90
+ childSessionId: string | null;
91
+ }
92
+ export declare function getPromptFailureDetail(error: unknown): PromptFailureDetail | null;
82
93
  export interface ModelSuggestionInfo {
83
94
  providerID: string;
84
95
  modelID: string;
@@ -101,16 +112,9 @@ export declare function parseModelSuggestion(error: unknown): ModelSuggestionInf
101
112
  */
102
113
  export declare function promptSyncWithModelSuggestionRetry(client: Client, args: PromptArgs, options?: PromptRetryOptions): Promise<void>;
103
114
  /**
104
- * Run a prompt with model fallback support, but accept an attempt only after the
105
- * caller validates the model's actual output. This covers "empty success" cases
106
- * where the provider/OpenCode prompt call completes successfully but the subagent
107
- * produced no usable assistant text / JSON.
108
- *
109
- * The happy path is still one prompt + one caller-owned output fetch: callers
110
- * should use the returned output instead of fetching messages a second time.
111
- * Validation failures are retryable across configured fallback models. If every
112
- * attempt produces invalid output (or otherwise fails retryably), the first
113
- * failure is re-thrown so callers surface the original failure semantics.
115
+ * Run a prompt across the configured model chain and retain which attempt failed.
116
+ * Output validation remains caller-owned so empty completions and malformed
117
+ * responses can be distinguished from provider transport failures.
114
118
  */
115
119
  export declare function promptSyncWithValidatedOutputRetry<TOutput, TValidated = TOutput>(client: Client, args: PromptArgs, options: ValidatedPromptRetryOptions<TOutput, TValidated>): Promise<ValidatedPromptRetryResult<TOutput, TValidated>>;
116
120
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"model-suggestion-retry.d.ts","sourceRoot":"","sources":["../../src/shared/model-suggestion-retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAOtD,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,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,CAAC;IACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,GAAG,IAAI,CAIjF;AAED,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB;AAiBD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,GAAG,IAAI,CA4C/E;AA8ND;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kCAAkC,CACpD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,kBAAuB,GACjC,OAAO,CAAC,IAAI,CAAC,CAwFf;AA4CD;;;;GAIG;AACH,wBAAsB,kCAAkC,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,EAClF,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,2BAA2B,CAAC,OAAO,EAAE,UAAU,CAAC,GAC1D,OAAO,CAAC,0BAA0B,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAoH1D"}
@@ -0,0 +1,24 @@
1
+ export type OpenCodeDbPathSource = "OPENCODE_DB" | "channel" | "default" | "discovered";
2
+ export interface OpenCodeDbPathResolution {
3
+ path: string;
4
+ source: OpenCodeDbPathSource;
5
+ channel: string | null;
6
+ }
7
+ export interface OpenCodeDbReadFailure extends OpenCodeDbPathResolution {
8
+ message: string;
9
+ }
10
+ /** Resolve an explicit DB override first, then channel paths; discover candidates when the compiled channel is unknown. */
11
+ export declare function resolveOpenCodeDbPath(): OpenCodeDbPathResolution;
12
+ export declare function openCodeDbPathExists(resolution?: OpenCodeDbPathResolution): boolean;
13
+ export declare function getOpenCodeDbProbeDescriptions(resolution?: OpenCodeDbPathResolution): string[];
14
+ export declare function formatOpenCodeDbMissingBanner(resolution?: OpenCodeDbPathResolution): string;
15
+ export declare function formatOpenCodeDbMissingStatusLine(resolution?: OpenCodeDbPathResolution): string;
16
+ export declare function formatOpenCodeDbDoctorLine(resolution?: OpenCodeDbPathResolution): string;
17
+ export declare function formatOpenCodeDbReadFailureStatusLine(failure: OpenCodeDbReadFailure): string;
18
+ export declare function recordOpenCodeDbReadFailure(resolution: OpenCodeDbPathResolution, error: unknown): OpenCodeDbReadFailure;
19
+ export declare function clearOpenCodeDbReadFailure(path?: string): void;
20
+ export declare function getOpenCodeDbReadFailure(): OpenCodeDbReadFailure | null;
21
+ export declare function claimOpenCodeDbDiagnosticOnce(surface: string, resolution: OpenCodeDbPathResolution): boolean;
22
+ /** Test-only reset for process memoization and once-only diagnostics. */
23
+ export declare function resetOpenCodeDbPathStateForTesting(): void;
24
+ //# sourceMappingURL=opencode-db-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencode-db-path.d.ts","sourceRoot":"","sources":["../../src/shared/opencode-db-path.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;AAExF,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACnE,OAAO,EAAE,MAAM,CAAC;CACnB;AA+FD,2HAA2H;AAC3H,wBAAgB,qBAAqB,IAAI,wBAAwB,CAkBhE;AAED,wBAAgB,oBAAoB,CAChC,UAAU,GAAE,wBAAkD,GAC/D,OAAO,CAET;AAED,wBAAgB,8BAA8B,CAC1C,UAAU,GAAE,wBAAkD,GAC/D,MAAM,EAAE,CAgBV;AAMD,wBAAgB,6BAA6B,CACzC,UAAU,GAAE,wBAAkD,GAC/D,MAAM,CAER;AAED,wBAAgB,iCAAiC,CAC7C,UAAU,GAAE,wBAAkD,GAC/D,MAAM,CAER;AAED,wBAAgB,0BAA0B,CACtC,UAAU,GAAE,wBAAkD,GAC/D,MAAM,CAER;AAED,wBAAgB,qCAAqC,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAE5F;AAED,wBAAgB,2BAA2B,CACvC,UAAU,EAAE,wBAAwB,EACpC,KAAK,EAAE,OAAO,GACf,qBAAqB,CAIvB;AAED,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAE9D;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,GAAG,IAAI,CAEvE;AAED,wBAAgB,6BAA6B,CACzC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,wBAAwB,GACrC,OAAO,CAKT;AAED,yEAAyE;AACzE,wBAAgB,kCAAkC,IAAI,IAAI,CAIzD"}
@@ -0,0 +1,6 @@
1
+ export type PiExecutableHarnessKind = "pi" | "omp";
2
+ /** Executable images recognized as Pi-compatible hosts. */
3
+ export declare const PI_IMAGE_NAMES: Set<string>;
4
+ /** Classify a process title or executable path using the shared Pi image vocabulary. */
5
+ export declare function piHarnessKindFromExecutable(value: string | undefined): PiExecutableHarnessKind | undefined;
6
+ //# sourceMappingURL=pi-executable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi-executable.d.ts","sourceRoot":"","sources":["../../src/shared/pi-executable.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,IAAI,GAAG,KAAK,CAAC;AAEnD,2DAA2D;AAC3D,eAAO,MAAM,cAAc,aAA+C,CAAC;AAE3E,wFAAwF;AACxF,wBAAgB,2BAA2B,CACvC,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,uBAAuB,GAAG,SAAS,CAWrC"}
@@ -12,9 +12,9 @@ export type PromptSurfaceToolId = (typeof ACTIVE_TOOL_IDS)[number];
12
12
  export declare const LIGHT_TOOL_DESCRIPTIONS: {
13
13
  readonly ctx_reduce: "For ctx_reduce users, mark spent §N§ outputs discardable; release is QUEUED, not immediate, so content stays visible until space is needed. Newest tags stay protected until they age out. Released content becomes a placeholder; recover it only by rerunning the source or recovery tool, so mark only genuinely finished material. Mark analyzed, redundant, persisted, or merely confirmatory outputs; keep user messages, unresolved errors, unextracted evidence, and exact wording. NEVER blanket-mark a large range: review every tag first.";
14
14
  readonly ctx_expand: "For ctx_expand users, recover compacted conversation by passing a session-history heading's inclusive start/end ordinals. Results are raw [N] U:/A: transcript capped near 15K tokens; oversized ranges return the head and a continuation. Use verbose=true to list each message ordinal, part previews, and tool-output sizes; use message=N for one complete stored message and its tool exchanges. NEVER expand ranges after the last compartment because that live tail is already visible.";
15
- readonly ctx_note: "For ctx_note users, write saves, read lists, update changes, and dismiss retires future session notes; surface_condition creates a smart note. For smart notes, NEVER use a condition tied to this conversation or an unobservable future action because the background checker can inspect only external GitHub, disk, git, or web signals.";
15
+ readonly ctx_note: "For ctx_note: write saves, read lists, update changes, dismiss retires one note_id or 1–50 note_ids (choose one); surface_condition makes a smart note. Smart-note conditions must be externally verifiable via GitHub, disk, git, or web—not this conversation or future actions.";
16
16
  readonly ctx_memory: "For ctx_memory users, write one standalone durable fact with category and content; update one ID, archive one or more IDs, merge two or more IDs, or get one to twenty numeric IDs. get reads memories in every status; list remains dreamer-only, so primary agents must NEVER assume bulk-list access.";
17
- readonly ctx_search: "For ctx_search users, retrieve only hidden recall: memories not already in <project-memory>, compacted messages outside the live tail, commits, and notes. Omit sources for broad search; select memory, message, git_commit, or note to target a source, or pass memory IDs to bypass text search. Message hits continue through ctx_expand.";
17
+ readonly ctx_search: "For ctx_search users, retrieve only hidden recall: memories not in <project-memory>, compacted messages outside the live tail, commits, and notes; phrase query as a question carrying exact terms. Omit sources for broad search; select memory, message, git_commit, or note, or pass memory IDs directly. Hits expand through ctx_expand.";
18
18
  };
19
19
  /**
20
20
  * Preserve the existing full-preset hash exactly while giving other presets a
@@ -48,9 +48,14 @@ export interface CreatePromptSurfaceRuntimeOptions {
48
48
  * instead of on every model call.
49
49
  */
50
50
  export declare function createPromptSurfaceRuntime(options: CreatePromptSurfaceRuntimeOptions): PromptSurfaceRuntime;
51
- /** Freeze preset selection and materialized override bytes for one model-key epoch. */
52
- export declare function createPromptSurfaceGuidanceEpochCache(runtime: PromptSurfaceRuntime): {
51
+ export interface PromptSurfaceGuidanceEpochCache {
53
52
  resolve: (sessionId: string, config: PromptSurfaceConfig | undefined, modelKey: string | undefined) => PromptSurfaceGuidanceSelection;
54
53
  clear: (sessionId: string) => void;
55
- };
54
+ }
55
+ /**
56
+ * Freeze preset selection and materialized override bytes for one model-key epoch.
57
+ * Every hook using the same runtime also shares this cache, so a file edit cannot
58
+ * make the system hook and Rust adapter observe different bytes within one epoch.
59
+ */
60
+ export declare function createPromptSurfaceGuidanceEpochCache(runtime: PromptSurfaceRuntime): PromptSurfaceGuidanceEpochCache;
56
61
  //# sourceMappingURL=prompt-surface-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-surface-runtime.d.ts","sourceRoot":"","sources":["../../src/shared/prompt-surface-runtime.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EAE3B,MAAM,kBAAkB,CAAC;AAK1B;;;;GAIG;AACH,eAAO,MAAM,eAAe,+EAMlB,CAAC;AAEX,gFAAgF;AAChF,eAAO,MAAM,uBAAuB,+EAAkB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;;;CAM8B,CAAC;AAEnE;;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MAAM,KAAK,IAAI,CAAC;CACnC;AAwBD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,iCAAiC,GAC3C,oBAAoB,CAkGtB;AAQD,MAAM,WAAW,+BAA+B;IAC5C,OAAO,EAAE,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAC3B,8BAA8B,CAAC;IACpC,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAOD;;;;GAIG;AACH,wBAAgB,qCAAqC,CACjD,OAAO,EAAE,oBAAoB,GAC9B,+BAA+B,CAuBjC"}
@@ -1,7 +1,7 @@
1
1
  import type { ModelInput, ResolvedModelEntry } from "./model-resolution";
2
2
  /**
3
3
  * Resolve the fallback model list to attempt for a hidden-agent (historian /
4
- * dreamer / sidekick) call when its configured primary fails.
4
+ * dreamer) call when its configured primary fails.
5
5
  *
6
6
  * Policy: ONLY the user's explicitly-configured `fallback_models` for this
7
7
  * agent. There is NO builtin provider-agnostic chain — a hardcoded chain
@@ -3,6 +3,8 @@
3
3
  * Both sides import these — no SQLite dependency.
4
4
  */
5
5
  import type { DreamTaskBacklogMap, DreamTaskProgress } from "../features/magic-context/dreamer/task-registry";
6
+ import type { SynapseLaneDescriptor } from "../features/magic-context/memory/embedding-synapse";
7
+ import type { ConfigParseFailure } from "./config-diagnostics";
6
8
  import type { LoggerDiagnostics } from "./logger";
7
9
  export interface TailHygieneStatus {
8
10
  /** Tokens in active, non-protected tail content that the agent can reclaim. */
@@ -164,6 +166,8 @@ export interface StatusDetail extends SidebarSnapshot {
164
166
  reserve: number;
165
167
  reserveSource: "output_catalog" | "output_config" | "wall_margin" | "none";
166
168
  geometry: "shared_upfront" | "shared_truncating" | "separate";
169
+ windowSource: "catalog" | "overlay" | "provider" | "detected";
170
+ absoluteWall: number;
167
171
  };
168
172
  };
169
173
  /**
@@ -177,6 +181,11 @@ export interface StatusDetail extends SidebarSnapshot {
177
181
  * (only meaningful when lastResponseTime > 0); N = live countdown. */
178
182
  cacheRemainingMs: number;
179
183
  cacheExpired: boolean;
184
+ /** Reports whether the displayed TTL came from config, persisted session metadata,
185
+ * or the default; cache scheduling still uses the TTL stored in session metadata. */
186
+ cacheTtlSource?: "config" | "session" | "default";
187
+ cacheTtlModelKey?: string;
188
+ configParseFailures?: ConfigParseFailure[];
180
189
  /** True when cacheTtl is "never" — the idle-TTL heuristic is disabled on
181
190
  * this lane. Redundant with cacheTtlMs === -1; kept as the readable form. */
182
191
  cacheNeverExpires?: boolean;
@@ -231,6 +240,7 @@ export interface EmbedDetail {
231
240
  enabled: boolean;
232
241
  model: string;
233
242
  provider: string;
243
+ synapseDescriptor?: SynapseLaneDescriptor;
234
244
  session: {
235
245
  embedded: number;
236
246
  total: number;
@@ -246,6 +256,113 @@ export interface EmbedDetail {
246
256
  };
247
257
  statusText: string;
248
258
  }
259
+ export interface DebugProcessMemoryUsage {
260
+ rss: number;
261
+ heapTotal: number;
262
+ heapUsed: number;
263
+ external: number;
264
+ arrayBuffers: number;
265
+ }
266
+ export interface DebugSessionHolderCount {
267
+ sessionId: string;
268
+ lkgBytes: number;
269
+ taggerAssignments: number;
270
+ taggerToolAccounting: number;
271
+ wireRawMessages: number;
272
+ wireMessages: number;
273
+ wireContentSnapshots: number;
274
+ wireEstimatedBytes: number;
275
+ }
276
+ export interface DebugMemoryHolders {
277
+ lkgSlots: {
278
+ count: number;
279
+ totalBytes: number;
280
+ };
281
+ taggerCache: {
282
+ sessionCount: number;
283
+ assignmentEntries: number;
284
+ toolAccountingEntries: number;
285
+ loadSignatureEntries: number;
286
+ };
287
+ wireCache: {
288
+ snapshots: number;
289
+ rawContentSnapshots: number;
290
+ estimatedBytes: number;
291
+ };
292
+ compartmentMirrors: {
293
+ entries: number;
294
+ };
295
+ messageIndexQueue: {
296
+ queueLength: number;
297
+ reconciliationScheduled: number;
298
+ incrementalTimers: number;
299
+ pendingIncremental: number;
300
+ activeSessionLocks: number;
301
+ completedIncrementalKeys: number;
302
+ activeBufferMessages: number;
303
+ activeBufferBytes: number;
304
+ };
305
+ sessions: DebugSessionHolderCount[];
306
+ }
307
+ export interface DebugSqliteConnectionMemoryStats {
308
+ sequence: number;
309
+ filename: string;
310
+ readonly: boolean;
311
+ pageSize: number | null;
312
+ pageCount: number | null;
313
+ freelistCount: number | null;
314
+ cacheSize: number | null;
315
+ cacheSizeUnit: "pages" | "kib" | null;
316
+ cacheUpperBoundBytes: number | null;
317
+ mmapSizeBytes: number | null;
318
+ walFileBytes: number | null;
319
+ shmFileBytes: number | null;
320
+ fts5TableCount: number | null;
321
+ journalMode: string | null;
322
+ }
323
+ export interface DebugNativeMemoryUsage {
324
+ sqlite: {
325
+ connectionCount: number;
326
+ cacheUpperBoundBytes: number;
327
+ mmapUpperBoundBytes: number;
328
+ walFileBytes: number;
329
+ shmFileBytes: number;
330
+ sqliteStatusApi: "unavailable";
331
+ connections: DebugSqliteConnectionMemoryStats[];
332
+ };
333
+ tokenizer: {
334
+ loaded: boolean;
335
+ loadAttempted: boolean;
336
+ tableBytes: number | null;
337
+ tablePath: string | null;
338
+ };
339
+ localEmbedding: {
340
+ loaded: boolean;
341
+ providerCount: number;
342
+ models: string[];
343
+ runtimes: Array<"native" | "wasm">;
344
+ modelCacheBytes: number | null;
345
+ rssDeltaAtLoad: number;
346
+ externalDeltaAtLoad: number;
347
+ arrayBuffersDeltaAtLoad: number;
348
+ };
349
+ quickJs: {
350
+ loadAttempted: boolean;
351
+ loaded: boolean;
352
+ };
353
+ }
354
+ export interface DebugMemoryUsageResponse {
355
+ pid: number;
356
+ bunVersion: string;
357
+ memoryUsage: DebugProcessMemoryUsage;
358
+ native: DebugNativeMemoryUsage;
359
+ holders: DebugMemoryHolders;
360
+ }
361
+ export interface DebugHeapSnapshotResponse extends DebugMemoryUsageResponse {
362
+ path: string;
363
+ format: "jsc" | "v8";
364
+ snapshotVersion?: number;
365
+ }
249
366
  export interface RpcNotificationMessage {
250
367
  id: number;
251
368
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-types.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,mBAAmB,EACnB,iBAAiB,EACpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAC9B,+EAA+E;IAC/E,CAAC,EAAE,MAAM,CAAC;IACV,wFAAwF;IACxF,CAAC,EAAE,MAAM,CAAC;IACV,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,wGAAwG;IACxG,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB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AAuB,CAoBzB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC7C,YAAY,CAAC,EAAE,OAAO,YAAY,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,YAAY,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC;IAClC,uBAAuB,CAAC,EAAE,OAAO,YAAY,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;CACxB,GAAG,IAAI,CASP;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CASlD;AAkRD,0FAA0F;AAC1F,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,cAAc,CAAC;IAC/C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,kBAAkB,CA6B3D;AAED,6FAA6F;AAC7F,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAEnD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG,iBAAiB,GAAG,IAAI,CA6B3F"}
@@ -39,6 +39,16 @@
39
39
  * `run()` → {changes,lastInsertRowid}) is identical and was verified directly.
40
40
  */
41
41
  import type BetterSqlite3 from "better-sqlite3";
42
+ /**
43
+ * Slow-write reporting is injected rather than imported: this module is also
44
+ * executed directly by Node (the `node:sqlite` smoke in CI, Pi, Desktop), and
45
+ * Node's type-stripping loader does not resolve extensionless imports, so any
46
+ * static import of the plugin's logging chain here breaks that path. The
47
+ * storage bootstrap registers the real reporter; until then slow privileged
48
+ * writes are simply not logged.
49
+ */
50
+ type SlowWriteReporter = (site: string, transactionStartedAt: number) => void;
51
+ export declare function registerSlowWriteReporter(reporter: SlowWriteReporter): void;
42
52
  export type SqliteRuntime = "Bun" | "Node.js";
43
53
  type SqliteModule = {
44
54
  Database?: unknown;
@@ -51,7 +61,39 @@ export declare class SqliteRuntimeUnavailableError extends Error {
51
61
  constructor(runtime: SqliteRuntime, specifier: string, cause: unknown);
52
62
  }
53
63
  export declare function loadSqliteModule(runtime?: SqliteRuntime, importer?: (specifier: string) => Promise<SqliteModule>): Promise<SqliteModule>;
64
+ export interface SqliteConnectionMemoryStats {
65
+ sequence: number;
66
+ filename: string;
67
+ readonly: boolean;
68
+ pageSize: number | null;
69
+ pageCount: number | null;
70
+ freelistCount: number | null;
71
+ cacheSize: number | null;
72
+ cacheSizeUnit: "pages" | "kib" | null;
73
+ cacheUpperBoundBytes: number | null;
74
+ mmapSizeBytes: number | null;
75
+ walFileBytes: number | null;
76
+ shmFileBytes: number | null;
77
+ fts5TableCount: number | null;
78
+ journalMode: string | null;
79
+ }
80
+ export interface SqliteMemoryStats {
81
+ connectionCount: number;
82
+ cacheUpperBoundBytes: number;
83
+ mmapUpperBoundBytes: number;
84
+ walFileBytes: number;
85
+ shmFileBytes: number;
86
+ sqliteStatusApi: "unavailable";
87
+ connections: SqliteConnectionMemoryStats[];
88
+ }
54
89
  export declare const Database: typeof BetterSqlite3;
90
+ /**
91
+ * Read the SQLite memory bounds that Bun/node:sqlite expose without native FFI.
92
+ * SQLite's sqlite3_status()/sqlite3_db_status() counters are not surfaced by
93
+ * either runtime, so cache and mmap values are configured upper bounds rather
94
+ * than resident-byte measurements.
95
+ */
96
+ export declare function getSqliteMemoryStats(): SqliteMemoryStats;
55
97
  /** Instance type alias used by helpers and storage modules. */
56
98
  export type Database = BetterSqlite3.Database;
57
99
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite.d.ts","sourceRoot":"","sources":["../../src/shared/sqlite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,aAAa,CAAC;IAC/B,WAAW,EAAE,2BAA2B,EAAE,CAAC;CAC9C;AAuJD,eAAO,MAAM,QAAQ,EAAE,OAAO,aAA+B,CAAC;AAgD9D;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CA+CxD;AAED,+DAA+D;AAC/D,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;AASpE;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,CA4C3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"status-detail-text.d.ts","sourceRoot":"","sources":["../../src/shared/status-detail-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAchD,6FAA6F;AAC7F,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CA2CvE"}
1
+ {"version":3,"file":"status-detail-text.d.ts","sourceRoot":"","sources":["../../src/shared/status-detail-text.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAchD,6FAA6F;AAC7F,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAqDvE"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Cross-harness subagent runner abstraction.
3
3
  *
4
- * Magic Context spawns three kinds of subagents — historian, dreamer, sidekick —
4
+ * Magic Context spawns historian and Dreamer subagents
5
5
  * each as a child "session" with its own model/prompt/tools. OpenCode and Pi
6
6
  * have very different APIs for this:
7
7
  *
@@ -15,15 +15,15 @@
15
15
  * disk, optionally addressed via `--session <path>`.
16
16
  *
17
17
  * The runner interface below normalizes both into the same shape so the
18
- * actual subagent business logic (historian XML parsing, dreamer task loop,
19
- * sidekick augmentation) can stay harness-agnostic. Each harness ships its
18
+ * actual subagent business logic (historian XML parsing and Dreamer task loops)
19
+ * can stay harness-agnostic. Each harness ships its
20
20
  * own runner implementation; agents take a `SubagentRunner` as a dep instead
21
21
  * of reaching for `client.session.*` directly.
22
22
  *
23
23
  * Step 5a (this commit) defines the contract and ships `PiSubagentRunner`.
24
24
  * Step 5b will refactor the OpenCode-side spawn paths in
25
- * `compartment-runner-historian.ts`, `dreamer/runner.ts`, and
26
- * `sidekick/agent.ts` onto an `OpenCodeSubagentRunner` so both harnesses
25
+ * `compartment-runner-historian.ts` and `dreamer/runner.ts` onto an
26
+ * `OpenCodeSubagentRunner` so both harnesses
27
27
  * share the agent business logic instead of duplicating it. Until 5b lands,
28
28
  * OpenCode keeps its existing direct `client.session.*` calls untouched —
29
29
  * the runner contract is purely additive on the OpenCode side.
@@ -34,11 +34,11 @@ import type { ModelInput } from "./model-resolution";
34
34
  *
35
35
  * Mirrors the union of OpenCode's `session.create` + `session.prompt` body
36
36
  * fields and Pi's `--print` CLI flags, picking the shared subset that all
37
- * three subagent kinds (historian, dreamer, sidekick) actually use today.
37
+ * the historian and Dreamer subagents actually use today.
38
38
  *
39
39
  * Fields:
40
40
  * - `agent`: harness-specific agent name. OpenCode looks this up in its
41
- * agent registry (`HISTORIAN_AGENT`, `DREAMER_AGENT`, `SIDEKICK_AGENT`).
41
+ * agent registry (`HISTORIAN_AGENT`, `DREAMER_AGENT`).
42
42
  * Pi has no concept of "agent name" beyond config, so this is ignored
43
43
  * on the Pi side and used only by `OpenCodeSubagentRunner`.
44
44
  * - `systemPrompt`: full system prompt for this child run. Replaces (not
@@ -85,7 +85,7 @@ export interface SubagentRunOptions {
85
85
  /**
86
86
  * Optional progress callback. The runner invokes it for milestone events
87
87
  * during the run: spawn, first event received, terminal stop reason
88
- * detected, child exit. Used by historian/dreamer/sidekick to write
88
+ * detected, child exit. Used by historian/dreamer to write
89
89
  * lifecycle entries to the magic-context.log without polluting the
90
90
  * normal stdout stream.
91
91
  *
@@ -95,7 +95,7 @@ export interface SubagentRunOptions {
95
95
  onProgress?: (event: SubagentProgressEvent) => void;
96
96
  /** Optional token accounting metadata. When present, harness runners persist subagent_invocations. */
97
97
  accountingSessionId?: string | undefined;
98
- accountingSubagent?: "historian" | "historian_editor" | "compressor" | "dreamer" | "sidekick" | "user_memory_review" | "recomp" | undefined;
98
+ accountingSubagent?: "historian" | "historian_editor" | "compressor" | "dreamer" | "user_memory_review" | "recomp" | undefined;
99
99
  accountingTask?: string | null | undefined;
100
100
  accountingParentInvocationId?: number | null | undefined;
101
101
  }
@@ -178,6 +178,10 @@ export type SubagentProgressEvent = {
178
178
  * here so the OpenCode runner can surface the child session ID for log
179
179
  * correlation when Step 5b lands.
180
180
  */
181
+ export interface CompletedSubagentToolCall {
182
+ name: string;
183
+ arguments: Record<string, unknown>;
184
+ }
181
185
  export type SubagentRunResult = {
182
186
  ok: true;
183
187
  assistantText: string;
@@ -191,6 +195,9 @@ export type SubagentRunResult = {
191
195
  * the real session messages.
192
196
  */
193
197
  toolCallCount?: number;
198
+ /** Completed, non-error tool results preserved by runners that can
199
+ * reconstruct invocation/result pairs from their transcript. */
200
+ completedToolCalls?: CompletedSubagentToolCall[];
194
201
  meta?: Record<string, unknown>;
195
202
  } | {
196
203
  ok: false;
@@ -206,7 +213,7 @@ export type SubagentRunResult = {
206
213
  *
207
214
  * Each harness ships a single instance — the OpenCode plugin wires
208
215
  * `OpenCodeSubagentRunner` and the Pi plugin wires `PiSubagentRunner` in
209
- * its `extension` boot path. Agent code (historian, dreamer, sidekick)
216
+ * its `extension` boot path. Agent code (historian and dreamer)
210
217
  * receives the runner as a dep and never reaches for harness-specific
211
218
  * client APIs directly.
212
219
  */
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-runner.d.ts","sourceRoot":"","sources":["../../src/shared/subagent-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAEpD,sGAAsG;IACtG,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EACb,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,SAAS,GACT,UAAU,GACV,oBAAoB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G,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnE,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CACP,KAAK,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,eAAe,EAC1D,SAAS,EAAE,MAAM,KAChB,IAAI,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACnC;AA4FD,wBAAgB,aAAa,CACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE,oBAAyB,GACnC,mBAAmB,CAiXrB"}
@@ -147,6 +147,10 @@ export interface TranscriptPart {
147
147
  * replaced (e.g. it's already a sentinel, or it's an image part).
148
148
  */
149
149
  replaceWithSentinel(sentinelText: string): boolean;
150
+ /** Remove one half of a complete tool arc. Callers must remove both halves together. */
151
+ remove?(): boolean;
152
+ /** Refuse structural deletion when the adapter cannot match provider-native identity safely. */
153
+ canRemove?(): boolean;
150
154
  /**
151
155
  * Optional: serialized byte size of the part's REAL payload, including
152
156
  * non-text content (images, structured data) that `getText()` can't
@@ -166,6 +170,8 @@ export interface TranscriptPart {
166
170
  * use `info.id` for cross-pass correlation, never the message reference.
167
171
  */
168
172
  export interface TranscriptMessage {
173
+ /** Override when the receiving protocol does not merge adjacent assistant reasoning turns. */
174
+ requiresToolArcSkeleton?: boolean;
169
175
  /**
170
176
  * Lightweight metadata exposed for tagging, sentinel persistence, and
171
177
  * cross-pass correlation. Adapters fill these from harness-native
@@ -1 +1 @@
1
- {"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/shared/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;;;;;;;;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EMA = "fusiform-window-overlay/v1";
3
3
  export declare const PROMPT_WALL_MARGIN = 4096;
4
4
  export declare const PI_OUTPUT_FLOOR = 4096;
5
5
  export declare const OPENCODE_OUTPUT_CAP = 32000;
6
+ /**
7
+ * Smallest context window any served model can plausibly have. Reported or
8
+ * inferred limits below this are placeholders (0, 1) or corrupt state, never a
9
+ * real window, so every denominator check shares this one floor.
10
+ */
11
+ export declare const MIN_PLAUSIBLE_CONTEXT_LIMIT = 1024;
6
12
  export type WindowGeometry = "shared_upfront" | "shared_truncating" | "separate";
7
13
  export type WindowReserveSource = "output_catalog" | "output_config" | "wall_margin" | "none";
8
14
  export type WindowOverlayGrade = "provider_asserted_runtime" | "measured" | "provider_asserted_doc" | "catalog" | "unknown";
@@ -45,11 +51,14 @@ export interface ResolvedWindowOverlayFacts {
45
51
  /** Includes facts whose tagged value is explicitly unknown. */
46
52
  facts: Record<string, WindowOverlayFact>;
47
53
  }
54
+ export type WindowLimitSource = "catalog" | "overlay" | "provider" | "detected";
48
55
  export interface WindowDerivation {
49
56
  window: number;
50
57
  reserve: number;
51
58
  reserveSource: WindowReserveSource;
52
59
  geometry: WindowGeometry;
60
+ windowSource: WindowLimitSource;
61
+ absoluteWall: number;
53
62
  }
54
63
  export interface WindowGeometryResult {
55
64
  usableSoft: number;
@@ -87,6 +96,20 @@ export declare function resolveWindowOverlayFacts(providerID: string, modelID: s
87
96
  /** Placeholder filtering is deliberately per output field, never a row-level rejection. */
88
97
  export declare function placeholderFilteredOutput(output: number | undefined, context: number | undefined): number | undefined;
89
98
  export declare function deriveWindowGeometry(providerID: string, modelID: string, catalogLimit: ModelLimit | undefined, options?: DeriveWindowGeometryOptions): WindowGeometryResult | undefined;
99
+ export interface ProvenInputFloorResult {
100
+ geometry: WindowGeometryResult;
101
+ refused?: {
102
+ reading: number;
103
+ absoluteWall: number;
104
+ };
105
+ }
106
+ export declare function hasTrustedAbsoluteWall(geometry: WindowGeometryResult): boolean;
107
+ /**
108
+ * Successful requests can disprove static catalog metadata, but cannot
109
+ * disprove a provider, overlay, or observed-overflow wall. A reading beyond
110
+ * that wall is malformed usage accounting and must not enlarge the geometry.
111
+ */
112
+ export declare function applyProvenInputFloor(geometry: WindowGeometryResult, provenInputTokens: number | undefined): ProvenInputFloorResult;
90
113
  export declare function formatWindowDerivationLine(inputTokens: number, result: WindowGeometryResult): string;
91
114
  export declare function formatCompactTokens(value: number): string;
92
115
  //# sourceMappingURL=window-geometry.d.ts.map