@wolfx/opencode-magic-context 0.21.8-patch.1

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 (544) hide show
  1. package/dist/agents/dreamer.d.ts +2 -0
  2. package/dist/agents/dreamer.d.ts.map +1 -0
  3. package/dist/agents/historian.d.ts +3 -0
  4. package/dist/agents/historian.d.ts.map +1 -0
  5. package/dist/agents/magic-context-prompt.d.ts +3 -0
  6. package/dist/agents/magic-context-prompt.d.ts.map +1 -0
  7. package/dist/agents/permissions.d.ts +142 -0
  8. package/dist/agents/permissions.d.ts.map +1 -0
  9. package/dist/agents/sidekick.d.ts +2 -0
  10. package/dist/agents/sidekick.d.ts.map +1 -0
  11. package/dist/config/agent-disable.d.ts +26 -0
  12. package/dist/config/agent-disable.d.ts.map +1 -0
  13. package/dist/config/index.d.ts +33 -0
  14. package/dist/config/index.d.ts.map +1 -0
  15. package/dist/config/schema/agent-overrides.d.ts +55 -0
  16. package/dist/config/schema/agent-overrides.d.ts.map +1 -0
  17. package/dist/config/schema/magic-context.d.ts +841 -0
  18. package/dist/config/schema/magic-context.d.ts.map +1 -0
  19. package/dist/config/schema.d.ts +3 -0
  20. package/dist/config/schema.d.ts.map +1 -0
  21. package/dist/config/variable.d.ts +48 -0
  22. package/dist/config/variable.d.ts.map +1 -0
  23. package/dist/features/builtin-commands/commands.d.ts +3 -0
  24. package/dist/features/builtin-commands/commands.d.ts.map +1 -0
  25. package/dist/features/builtin-commands/types.d.ts +5 -0
  26. package/dist/features/builtin-commands/types.d.ts.map +1 -0
  27. package/dist/features/magic-context/compaction-marker.d.ts +91 -0
  28. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -0
  29. package/dist/features/magic-context/compaction.d.ts +7 -0
  30. package/dist/features/magic-context/compaction.d.ts.map +1 -0
  31. package/dist/features/magic-context/compartment-lease.d.ts +14 -0
  32. package/dist/features/magic-context/compartment-lease.d.ts.map +1 -0
  33. package/dist/features/magic-context/compartment-storage.d.ts +130 -0
  34. package/dist/features/magic-context/compartment-storage.d.ts.map +1 -0
  35. package/dist/features/magic-context/compression-depth-storage.d.ts +14 -0
  36. package/dist/features/magic-context/compression-depth-storage.d.ts.map +1 -0
  37. package/dist/features/magic-context/defaults.d.ts +2 -0
  38. package/dist/features/magic-context/defaults.d.ts.map +1 -0
  39. package/dist/features/magic-context/dreamer/index.d.ts +8 -0
  40. package/dist/features/magic-context/dreamer/index.d.ts.map +1 -0
  41. package/dist/features/magic-context/dreamer/lease.d.ts +8 -0
  42. package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -0
  43. package/dist/features/magic-context/dreamer/queue.d.ts +44 -0
  44. package/dist/features/magic-context/dreamer/queue.d.ts.map +1 -0
  45. package/dist/features/magic-context/dreamer/runner.d.ts +81 -0
  46. package/dist/features/magic-context/dreamer/runner.d.ts.map +1 -0
  47. package/dist/features/magic-context/dreamer/scheduler.d.ts +33 -0
  48. package/dist/features/magic-context/dreamer/scheduler.d.ts.map +1 -0
  49. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +41 -0
  50. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -0
  51. package/dist/features/magic-context/dreamer/storage-dream-state.d.ts +5 -0
  52. package/dist/features/magic-context/dreamer/storage-dream-state.d.ts.map +1 -0
  53. package/dist/features/magic-context/dreamer/task-prompts.d.ts +26 -0
  54. package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -0
  55. package/dist/features/magic-context/git-commits/git-log-reader.d.ts +57 -0
  56. package/dist/features/magic-context/git-commits/git-log-reader.d.ts.map +1 -0
  57. package/dist/features/magic-context/git-commits/index.d.ts +7 -0
  58. package/dist/features/magic-context/git-commits/index.d.ts.map +1 -0
  59. package/dist/features/magic-context/git-commits/indexer.d.ts +43 -0
  60. package/dist/features/magic-context/git-commits/indexer.d.ts.map +1 -0
  61. package/dist/features/magic-context/git-commits/search-git-commits.d.ts +32 -0
  62. package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -0
  63. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +19 -0
  64. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -0
  65. package/dist/features/magic-context/git-commits/storage-git-commits.d.ts +47 -0
  66. package/dist/features/magic-context/git-commits/storage-git-commits.d.ts.map +1 -0
  67. package/dist/features/magic-context/index.d.ts +12 -0
  68. package/dist/features/magic-context/index.d.ts.map +1 -0
  69. package/dist/features/magic-context/key-files/aft-availability.d.ts +11 -0
  70. package/dist/features/magic-context/key-files/aft-availability.d.ts.map +1 -0
  71. package/dist/features/magic-context/key-files/identify-key-files.d.ts +84 -0
  72. package/dist/features/magic-context/key-files/identify-key-files.d.ts.map +1 -0
  73. package/dist/features/magic-context/key-files/project-key-files.d.ts +42 -0
  74. package/dist/features/magic-context/key-files/project-key-files.d.ts.map +1 -0
  75. package/dist/features/magic-context/key-files/read-history.d.ts +26 -0
  76. package/dist/features/magic-context/key-files/read-history.d.ts.map +1 -0
  77. package/dist/features/magic-context/key-files/read-stats.d.ts +20 -0
  78. package/dist/features/magic-context/key-files/read-stats.d.ts.map +1 -0
  79. package/dist/features/magic-context/key-files/storage-key-files.d.ts +25 -0
  80. package/dist/features/magic-context/key-files/storage-key-files.d.ts.map +1 -0
  81. package/dist/features/magic-context/memory/constants.d.ts +5 -0
  82. package/dist/features/magic-context/memory/constants.d.ts.map +1 -0
  83. package/dist/features/magic-context/memory/cosine-similarity.d.ts +2 -0
  84. package/dist/features/magic-context/memory/cosine-similarity.d.ts.map +1 -0
  85. package/dist/features/magic-context/memory/embedding-backfill.d.ts +9 -0
  86. package/dist/features/magic-context/memory/embedding-backfill.d.ts.map +1 -0
  87. package/dist/features/magic-context/memory/embedding-cache.d.ts +8 -0
  88. package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -0
  89. package/dist/features/magic-context/memory/embedding-identity.d.ts +11 -0
  90. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -0
  91. package/dist/features/magic-context/memory/embedding-local.d.ts +20 -0
  92. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -0
  93. package/dist/features/magic-context/memory/embedding-openai.d.ts +44 -0
  94. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -0
  95. package/dist/features/magic-context/memory/embedding-probe.d.ts +69 -0
  96. package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -0
  97. package/dist/features/magic-context/memory/embedding-provider.d.ts +15 -0
  98. package/dist/features/magic-context/memory/embedding-provider.d.ts.map +1 -0
  99. package/dist/features/magic-context/memory/embedding.d.ts +39 -0
  100. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -0
  101. package/dist/features/magic-context/memory/index.d.ts +12 -0
  102. package/dist/features/magic-context/memory/index.d.ts.map +1 -0
  103. package/dist/features/magic-context/memory/normalize-hash.d.ts +3 -0
  104. package/dist/features/magic-context/memory/normalize-hash.d.ts.map +1 -0
  105. package/dist/features/magic-context/memory/project-identity.d.ts +23 -0
  106. package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -0
  107. package/dist/features/magic-context/memory/promotion.d.ts +13 -0
  108. package/dist/features/magic-context/memory/promotion.d.ts.map +1 -0
  109. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +8 -0
  110. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -0
  111. package/dist/features/magic-context/memory/storage-memory-fts.d.ts +12 -0
  112. package/dist/features/magic-context/memory/storage-memory-fts.d.ts.map +1 -0
  113. package/dist/features/magic-context/memory/storage-memory.d.ts +31 -0
  114. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -0
  115. package/dist/features/magic-context/memory/types.d.ts +37 -0
  116. package/dist/features/magic-context/memory/types.d.ts.map +1 -0
  117. package/dist/features/magic-context/message-index-async.d.ts +12 -0
  118. package/dist/features/magic-context/message-index-async.d.ts.map +1 -0
  119. package/dist/features/magic-context/message-index.d.ts +10 -0
  120. package/dist/features/magic-context/message-index.d.ts.map +1 -0
  121. package/dist/features/magic-context/migrations.d.ts +33 -0
  122. package/dist/features/magic-context/migrations.d.ts.map +1 -0
  123. package/dist/features/magic-context/mock-database.d.ts +3 -0
  124. package/dist/features/magic-context/mock-database.d.ts.map +1 -0
  125. package/dist/features/magic-context/overflow-detection.d.ts +51 -0
  126. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -0
  127. package/dist/features/magic-context/plugin-messages.d.ts +75 -0
  128. package/dist/features/magic-context/plugin-messages.d.ts.map +1 -0
  129. package/dist/features/magic-context/project-embedding-registry.d.ts +44 -0
  130. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -0
  131. package/dist/features/magic-context/range-parser.d.ts +13 -0
  132. package/dist/features/magic-context/range-parser.d.ts.map +1 -0
  133. package/dist/features/magic-context/resolve-subagent-fallback.d.ts +40 -0
  134. package/dist/features/magic-context/resolve-subagent-fallback.d.ts.map +1 -0
  135. package/dist/features/magic-context/scheduler.d.ts +18 -0
  136. package/dist/features/magic-context/scheduler.d.ts.map +1 -0
  137. package/dist/features/magic-context/search.d.ts +69 -0
  138. package/dist/features/magic-context/search.d.ts.map +1 -0
  139. package/dist/features/magic-context/sidekick/agent.d.ts +13 -0
  140. package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -0
  141. package/dist/features/magic-context/sidekick/core.d.ts +38 -0
  142. package/dist/features/magic-context/sidekick/core.d.ts.map +1 -0
  143. package/dist/features/magic-context/sidekick/index.d.ts +3 -0
  144. package/dist/features/magic-context/sidekick/index.d.ts.map +1 -0
  145. package/dist/features/magic-context/storage-db.d.ts +48 -0
  146. package/dist/features/magic-context/storage-db.d.ts.map +1 -0
  147. package/dist/features/magic-context/storage-meta-persisted.d.ts +246 -0
  148. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -0
  149. package/dist/features/magic-context/storage-meta-session.d.ts +6 -0
  150. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -0
  151. package/dist/features/magic-context/storage-meta-shared.d.ts +31 -0
  152. package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -0
  153. package/dist/features/magic-context/storage-meta.d.ts +3 -0
  154. package/dist/features/magic-context/storage-meta.d.ts.map +1 -0
  155. package/dist/features/magic-context/storage-notes.d.ts +62 -0
  156. package/dist/features/magic-context/storage-notes.d.ts.map +1 -0
  157. package/dist/features/magic-context/storage-ops.d.ts +7 -0
  158. package/dist/features/magic-context/storage-ops.d.ts.map +1 -0
  159. package/dist/features/magic-context/storage-source.d.ts +5 -0
  160. package/dist/features/magic-context/storage-source.d.ts.map +1 -0
  161. package/dist/features/magic-context/storage-subagent-invocations.d.ts +52 -0
  162. package/dist/features/magic-context/storage-subagent-invocations.d.ts.map +1 -0
  163. package/dist/features/magic-context/storage-tags.d.ts +206 -0
  164. package/dist/features/magic-context/storage-tags.d.ts.map +1 -0
  165. package/dist/features/magic-context/storage.d.ts +11 -0
  166. package/dist/features/magic-context/storage.d.ts.map +1 -0
  167. package/dist/features/magic-context/subagent-token-capture.d.ts +33 -0
  168. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -0
  169. package/dist/features/magic-context/tagger.d.ts +64 -0
  170. package/dist/features/magic-context/tagger.d.ts.map +1 -0
  171. package/dist/features/magic-context/tool-definition-tokens.d.ts +79 -0
  172. package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -0
  173. package/dist/features/magic-context/tool-owner-backfill.d.ts +90 -0
  174. package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -0
  175. package/dist/features/magic-context/types.d.ts +72 -0
  176. package/dist/features/magic-context/types.d.ts.map +1 -0
  177. package/dist/features/magic-context/user-memory/review-user-memories.d.ts +22 -0
  178. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -0
  179. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +33 -0
  180. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -0
  181. package/dist/features/magic-context/work-metrics.d.ts +13 -0
  182. package/dist/features/magic-context/work-metrics.d.ts.map +1 -0
  183. package/dist/hooks/auto-update-checker/cache.d.ts +23 -0
  184. package/dist/hooks/auto-update-checker/cache.d.ts.map +1 -0
  185. package/dist/hooks/auto-update-checker/checker.d.ts +13 -0
  186. package/dist/hooks/auto-update-checker/checker.d.ts.map +1 -0
  187. package/dist/hooks/auto-update-checker/constants.d.ts +10 -0
  188. package/dist/hooks/auto-update-checker/constants.d.ts.map +1 -0
  189. package/dist/hooks/auto-update-checker/index.d.ts +40 -0
  190. package/dist/hooks/auto-update-checker/index.d.ts.map +1 -0
  191. package/dist/hooks/auto-update-checker/types.d.ts +50 -0
  192. package/dist/hooks/auto-update-checker/types.d.ts.map +1 -0
  193. package/dist/hooks/is-anthropic-provider.d.ts +2 -0
  194. package/dist/hooks/is-anthropic-provider.d.ts.map +1 -0
  195. package/dist/hooks/magic-context/apply-context-nudge.d.ts +5 -0
  196. package/dist/hooks/magic-context/apply-context-nudge.d.ts.map +1 -0
  197. package/dist/hooks/magic-context/apply-operations.d.ts +7 -0
  198. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -0
  199. package/dist/hooks/magic-context/auto-search-hint.d.ts +34 -0
  200. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -0
  201. package/dist/hooks/magic-context/auto-search-runner.d.ts +53 -0
  202. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -0
  203. package/dist/hooks/magic-context/boundary-execution.d.ts +24 -0
  204. package/dist/hooks/magic-context/boundary-execution.d.ts.map +1 -0
  205. package/dist/hooks/magic-context/cache-busting-signals.d.ts +10 -0
  206. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -0
  207. package/dist/hooks/magic-context/caveman-cleanup.d.ts +86 -0
  208. package/dist/hooks/magic-context/caveman-cleanup.d.ts.map +1 -0
  209. package/dist/hooks/magic-context/caveman.d.ts +35 -0
  210. package/dist/hooks/magic-context/caveman.d.ts.map +1 -0
  211. package/dist/hooks/magic-context/command-handler.d.ts +89 -0
  212. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -0
  213. package/dist/hooks/magic-context/compaction-marker-manager.d.ts +106 -0
  214. package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -0
  215. package/dist/hooks/magic-context/compartment-parser.d.ts +18 -0
  216. package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -0
  217. package/dist/hooks/magic-context/compartment-prompt.d.ts +19 -0
  218. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -0
  219. package/dist/hooks/magic-context/compartment-runner-compressor.d.ts +87 -0
  220. package/dist/hooks/magic-context/compartment-runner-compressor.d.ts.map +1 -0
  221. package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts +26 -0
  222. package/dist/hooks/magic-context/compartment-runner-drop-queue.d.ts.map +1 -0
  223. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +42 -0
  224. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -0
  225. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +6 -0
  226. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -0
  227. package/dist/hooks/magic-context/compartment-runner-mapping.d.ts +33 -0
  228. package/dist/hooks/magic-context/compartment-runner-mapping.d.ts.map +1 -0
  229. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts +29 -0
  230. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -0
  231. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts +3 -0
  232. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -0
  233. package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts +21 -0
  234. package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts.map +1 -0
  235. package/dist/hooks/magic-context/compartment-runner-types.d.ts +102 -0
  236. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -0
  237. package/dist/hooks/magic-context/compartment-runner-validation.d.ts +28 -0
  238. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -0
  239. package/dist/hooks/magic-context/compartment-runner.d.ts +54 -0
  240. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -0
  241. package/dist/hooks/magic-context/compartment-trigger.d.ts +17 -0
  242. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -0
  243. package/dist/hooks/magic-context/derive-budgets.d.ts +57 -0
  244. package/dist/hooks/magic-context/derive-budgets.d.ts.map +1 -0
  245. package/dist/hooks/magic-context/drop-stale-reduce-calls.d.ts +4 -0
  246. package/dist/hooks/magic-context/drop-stale-reduce-calls.d.ts.map +1 -0
  247. package/dist/hooks/magic-context/event-handler.d.ts +49 -0
  248. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -0
  249. package/dist/hooks/magic-context/event-payloads.d.ts +62 -0
  250. package/dist/hooks/magic-context/event-payloads.d.ts.map +1 -0
  251. package/dist/hooks/magic-context/event-resolvers.d.ts +72 -0
  252. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -0
  253. package/dist/hooks/magic-context/execute-flush.d.ts +3 -0
  254. package/dist/hooks/magic-context/execute-flush.d.ts.map +1 -0
  255. package/dist/hooks/magic-context/execute-status.d.ts +12 -0
  256. package/dist/hooks/magic-context/execute-status.d.ts.map +1 -0
  257. package/dist/hooks/magic-context/format-bytes.d.ts +2 -0
  258. package/dist/hooks/magic-context/format-bytes.d.ts.map +1 -0
  259. package/dist/hooks/magic-context/heuristic-cleanup.d.ts +22 -0
  260. package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -0
  261. package/dist/hooks/magic-context/historian-state-file.d.ts +43 -0
  262. package/dist/hooks/magic-context/historian-state-file.d.ts.map +1 -0
  263. package/dist/hooks/magic-context/hook-handlers.d.ts +165 -0
  264. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -0
  265. package/dist/hooks/magic-context/hook.d.ts +118 -0
  266. package/dist/hooks/magic-context/hook.d.ts.map +1 -0
  267. package/dist/hooks/magic-context/image-token-estimate.d.ts +6 -0
  268. package/dist/hooks/magic-context/image-token-estimate.d.ts.map +1 -0
  269. package/dist/hooks/magic-context/index.d.ts +3 -0
  270. package/dist/hooks/magic-context/index.d.ts.map +1 -0
  271. package/dist/hooks/magic-context/inject-compartments.d.ts +52 -0
  272. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -0
  273. package/dist/hooks/magic-context/key-files-block.d.ts +27 -0
  274. package/dist/hooks/magic-context/key-files-block.d.ts.map +1 -0
  275. package/dist/hooks/magic-context/live-session-state.d.ts +42 -0
  276. package/dist/hooks/magic-context/live-session-state.d.ts.map +1 -0
  277. package/dist/hooks/magic-context/note-nudger.d.ts +71 -0
  278. package/dist/hooks/magic-context/note-nudger.d.ts.map +1 -0
  279. package/dist/hooks/magic-context/note-visibility.d.ts +43 -0
  280. package/dist/hooks/magic-context/note-visibility.d.ts.map +1 -0
  281. package/dist/hooks/magic-context/nudge-bands.d.ts +6 -0
  282. package/dist/hooks/magic-context/nudge-bands.d.ts.map +1 -0
  283. package/dist/hooks/magic-context/nudge-injection.d.ts +7 -0
  284. package/dist/hooks/magic-context/nudge-injection.d.ts.map +1 -0
  285. package/dist/hooks/magic-context/nudge-placement-store.d.ts +15 -0
  286. package/dist/hooks/magic-context/nudge-placement-store.d.ts.map +1 -0
  287. package/dist/hooks/magic-context/nudger.d.ts +21 -0
  288. package/dist/hooks/magic-context/nudger.d.ts.map +1 -0
  289. package/dist/hooks/magic-context/read-session-chunk.d.ts +99 -0
  290. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -0
  291. package/dist/hooks/magic-context/read-session-db.d.ts +21 -0
  292. package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -0
  293. package/dist/hooks/magic-context/read-session-formatting.d.ts +35 -0
  294. package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -0
  295. package/dist/hooks/magic-context/read-session-raw.d.ts +10 -0
  296. package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -0
  297. package/dist/hooks/magic-context/send-session-notification.d.ts +13 -0
  298. package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -0
  299. package/dist/hooks/magic-context/sentinel.d.ts +102 -0
  300. package/dist/hooks/magic-context/sentinel.d.ts.map +1 -0
  301. package/dist/hooks/magic-context/strip-content.d.ts +140 -0
  302. package/dist/hooks/magic-context/strip-content.d.ts.map +1 -0
  303. package/dist/hooks/magic-context/strip-structural-noise.d.ts +17 -0
  304. package/dist/hooks/magic-context/strip-structural-noise.d.ts.map +1 -0
  305. package/dist/hooks/magic-context/system-injection-stripper.d.ts +2 -0
  306. package/dist/hooks/magic-context/system-injection-stripper.d.ts.map +1 -0
  307. package/dist/hooks/magic-context/system-prompt-hash.d.ts +85 -0
  308. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -0
  309. package/dist/hooks/magic-context/tag-content-primitives.d.ts +6 -0
  310. package/dist/hooks/magic-context/tag-content-primitives.d.ts.map +1 -0
  311. package/dist/hooks/magic-context/tag-id-fallback.d.ts +9 -0
  312. package/dist/hooks/magic-context/tag-id-fallback.d.ts.map +1 -0
  313. package/dist/hooks/magic-context/tag-messages.d.ts +48 -0
  314. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -0
  315. package/dist/hooks/magic-context/tag-part-guards.d.ts +23 -0
  316. package/dist/hooks/magic-context/tag-part-guards.d.ts.map +1 -0
  317. package/dist/hooks/magic-context/temporal-awareness.d.ts +73 -0
  318. package/dist/hooks/magic-context/temporal-awareness.d.ts.map +1 -0
  319. package/dist/hooks/magic-context/text-complete.d.ts +8 -0
  320. package/dist/hooks/magic-context/text-complete.d.ts.map +1 -0
  321. package/dist/hooks/magic-context/todo-view.d.ts +102 -0
  322. package/dist/hooks/magic-context/todo-view.d.ts.map +1 -0
  323. package/dist/hooks/magic-context/tokenizer-calibration.d.ts +85 -0
  324. package/dist/hooks/magic-context/tokenizer-calibration.d.ts.map +1 -0
  325. package/dist/hooks/magic-context/tool-drop-target.d.ts +48 -0
  326. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -0
  327. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +66 -0
  328. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -0
  329. package/dist/hooks/magic-context/transform-context-state.d.ts +12 -0
  330. package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -0
  331. package/dist/hooks/magic-context/transform-message-helpers.d.ts +29 -0
  332. package/dist/hooks/magic-context/transform-message-helpers.d.ts.map +1 -0
  333. package/dist/hooks/magic-context/transform-operations.d.ts +5 -0
  334. package/dist/hooks/magic-context/transform-operations.d.ts.map +1 -0
  335. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +100 -0
  336. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -0
  337. package/dist/hooks/magic-context/transform-stage-logger.d.ts +2 -0
  338. package/dist/hooks/magic-context/transform-stage-logger.d.ts.map +1 -0
  339. package/dist/hooks/magic-context/transform.d.ts +145 -0
  340. package/dist/hooks/magic-context/transform.d.ts.map +1 -0
  341. package/dist/index.d.ts +4 -0
  342. package/dist/index.d.ts.map +1 -0
  343. package/dist/index.js +179800 -0
  344. package/dist/plugin/conflict-warning-hook.d.ts +34 -0
  345. package/dist/plugin/conflict-warning-hook.d.ts.map +1 -0
  346. package/dist/plugin/dream-timer.d.ts +44 -0
  347. package/dist/plugin/dream-timer.d.ts.map +1 -0
  348. package/dist/plugin/embedding-bootstrap-helpers.d.ts +35 -0
  349. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -0
  350. package/dist/plugin/embedding-bootstrap.d.ts +3 -0
  351. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -0
  352. package/dist/plugin/event.d.ts +13 -0
  353. package/dist/plugin/event.d.ts.map +1 -0
  354. package/dist/plugin/hooks/create-session-hooks.d.ts +44 -0
  355. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -0
  356. package/dist/plugin/messages-transform.d.ts +46 -0
  357. package/dist/plugin/messages-transform.d.ts.map +1 -0
  358. package/dist/plugin/normalize-tool-arg-schemas.d.ts +7 -0
  359. package/dist/plugin/normalize-tool-arg-schemas.d.ts.map +1 -0
  360. package/dist/plugin/rpc-handlers.d.ts +21 -0
  361. package/dist/plugin/rpc-handlers.d.ts.map +1 -0
  362. package/dist/plugin/sidebar-snapshot-cache.d.ts +19 -0
  363. package/dist/plugin/sidebar-snapshot-cache.d.ts.map +1 -0
  364. package/dist/plugin/tool-registry.d.ts +8 -0
  365. package/dist/plugin/tool-registry.d.ts.map +1 -0
  366. package/dist/plugin/types.d.ts +3 -0
  367. package/dist/plugin/types.d.ts.map +1 -0
  368. package/dist/shared/announcement.d.ts +55 -0
  369. package/dist/shared/announcement.d.ts.map +1 -0
  370. package/dist/shared/assistant-message-extractor.d.ts +2 -0
  371. package/dist/shared/assistant-message-extractor.d.ts.map +1 -0
  372. package/dist/shared/bounded-session-map.d.ts +45 -0
  373. package/dist/shared/bounded-session-map.d.ts.map +1 -0
  374. package/dist/shared/conflict-detector.d.ts +74 -0
  375. package/dist/shared/conflict-detector.d.ts.map +1 -0
  376. package/dist/shared/conflict-fixer.d.ts +3 -0
  377. package/dist/shared/conflict-fixer.d.ts.map +1 -0
  378. package/dist/shared/data-path.d.ts +121 -0
  379. package/dist/shared/data-path.d.ts.map +1 -0
  380. package/dist/shared/error-message.d.ts +32 -0
  381. package/dist/shared/error-message.d.ts.map +1 -0
  382. package/dist/shared/format-bytes.d.ts +2 -0
  383. package/dist/shared/format-bytes.d.ts.map +1 -0
  384. package/dist/shared/format-threshold.d.ts +24 -0
  385. package/dist/shared/format-threshold.d.ts.map +1 -0
  386. package/dist/shared/harness.d.ts +43 -0
  387. package/dist/shared/harness.d.ts.map +1 -0
  388. package/dist/shared/index.d.ts +6 -0
  389. package/dist/shared/index.d.ts.map +1 -0
  390. package/dist/shared/internal-initiator-marker.d.ts +2 -0
  391. package/dist/shared/internal-initiator-marker.d.ts.map +1 -0
  392. package/dist/shared/jsonc-parser.d.ts +8 -0
  393. package/dist/shared/jsonc-parser.d.ts.map +1 -0
  394. package/dist/shared/logger.d.ts +10 -0
  395. package/dist/shared/logger.d.ts.map +1 -0
  396. package/dist/shared/model-requirements.d.ts +26 -0
  397. package/dist/shared/model-requirements.d.ts.map +1 -0
  398. package/dist/shared/model-suggestion-retry.d.ts +68 -0
  399. package/dist/shared/model-suggestion-retry.d.ts.map +1 -0
  400. package/dist/shared/models-dev-cache.d.ts +65 -0
  401. package/dist/shared/models-dev-cache.d.ts.map +1 -0
  402. package/dist/shared/native-binding.d.ts +87 -0
  403. package/dist/shared/native-binding.d.ts.map +1 -0
  404. package/dist/shared/normalize-sdk-response.d.ts +5 -0
  405. package/dist/shared/normalize-sdk-response.d.ts.map +1 -0
  406. package/dist/shared/opencode-compaction-detector.d.ts +2 -0
  407. package/dist/shared/opencode-compaction-detector.d.ts.map +1 -0
  408. package/dist/shared/opencode-config-dir-types.d.ts +14 -0
  409. package/dist/shared/opencode-config-dir-types.d.ts.map +1 -0
  410. package/dist/shared/opencode-config-dir.d.ts +5 -0
  411. package/dist/shared/opencode-config-dir.d.ts.map +1 -0
  412. package/dist/shared/record-type-guard.d.ts +2 -0
  413. package/dist/shared/record-type-guard.d.ts.map +1 -0
  414. package/dist/shared/resolve-fallbacks.d.ts +32 -0
  415. package/dist/shared/resolve-fallbacks.d.ts.map +1 -0
  416. package/dist/shared/rpc-client.d.ts +17 -0
  417. package/dist/shared/rpc-client.d.ts.map +1 -0
  418. package/dist/shared/rpc-notifications.d.ts +24 -0
  419. package/dist/shared/rpc-notifications.d.ts.map +1 -0
  420. package/dist/shared/rpc-server.d.ts +20 -0
  421. package/dist/shared/rpc-server.d.ts.map +1 -0
  422. package/dist/shared/rpc-types.d.ts +105 -0
  423. package/dist/shared/rpc-types.d.ts.map +1 -0
  424. package/dist/shared/rpc-utils.d.ts +19 -0
  425. package/dist/shared/rpc-utils.d.ts.map +1 -0
  426. package/dist/shared/sqlite-helpers.d.ts +16 -0
  427. package/dist/shared/sqlite-helpers.d.ts.map +1 -0
  428. package/dist/shared/sqlite.d.ts +43 -0
  429. package/dist/shared/sqlite.d.ts.map +1 -0
  430. package/dist/shared/stable-json.d.ts +21 -0
  431. package/dist/shared/stable-json.d.ts.map +1 -0
  432. package/dist/shared/subagent-runner.d.ts +208 -0
  433. package/dist/shared/subagent-runner.d.ts.map +1 -0
  434. package/dist/shared/system-directive.d.ts +3 -0
  435. package/dist/shared/system-directive.d.ts.map +1 -0
  436. package/dist/shared/tag-transcript.d.ts +66 -0
  437. package/dist/shared/tag-transcript.d.ts.map +1 -0
  438. package/dist/shared/transcript-opencode.d.ts +71 -0
  439. package/dist/shared/transcript-opencode.d.ts.map +1 -0
  440. package/dist/shared/transcript.d.ts +212 -0
  441. package/dist/shared/transcript.d.ts.map +1 -0
  442. package/dist/shared/tui-config.d.ts +10 -0
  443. package/dist/shared/tui-config.d.ts.map +1 -0
  444. package/dist/tools/ctx-expand/constants.d.ts +3 -0
  445. package/dist/tools/ctx-expand/constants.d.ts.map +1 -0
  446. package/dist/tools/ctx-expand/index.d.ts +2 -0
  447. package/dist/tools/ctx-expand/index.d.ts.map +1 -0
  448. package/dist/tools/ctx-expand/tools.d.ts +3 -0
  449. package/dist/tools/ctx-expand/tools.d.ts.map +1 -0
  450. package/dist/tools/ctx-expand/types.d.ts +5 -0
  451. package/dist/tools/ctx-expand/types.d.ts.map +1 -0
  452. package/dist/tools/ctx-memory/constants.d.ts +4 -0
  453. package/dist/tools/ctx-memory/constants.d.ts.map +1 -0
  454. package/dist/tools/ctx-memory/index.d.ts +4 -0
  455. package/dist/tools/ctx-memory/index.d.ts.map +1 -0
  456. package/dist/tools/ctx-memory/tools.d.ts +4 -0
  457. package/dist/tools/ctx-memory/tools.d.ts.map +1 -0
  458. package/dist/tools/ctx-memory/types.d.ts +35 -0
  459. package/dist/tools/ctx-memory/types.d.ts.map +1 -0
  460. package/dist/tools/ctx-note/constants.d.ts +2 -0
  461. package/dist/tools/ctx-note/constants.d.ts.map +1 -0
  462. package/dist/tools/ctx-note/index.d.ts +4 -0
  463. package/dist/tools/ctx-note/index.d.ts.map +1 -0
  464. package/dist/tools/ctx-note/tools.d.ts +15 -0
  465. package/dist/tools/ctx-note/tools.d.ts.map +1 -0
  466. package/dist/tools/ctx-note/types.d.ts +9 -0
  467. package/dist/tools/ctx-note/types.d.ts.map +1 -0
  468. package/dist/tools/ctx-reduce/constants.d.ts +2 -0
  469. package/dist/tools/ctx-reduce/constants.d.ts.map +1 -0
  470. package/dist/tools/ctx-reduce/index.d.ts +4 -0
  471. package/dist/tools/ctx-reduce/index.d.ts.map +1 -0
  472. package/dist/tools/ctx-reduce/tools.d.ts +9 -0
  473. package/dist/tools/ctx-reduce/tools.d.ts.map +1 -0
  474. package/dist/tools/ctx-reduce/types.d.ts +4 -0
  475. package/dist/tools/ctx-reduce/types.d.ts.map +1 -0
  476. package/dist/tools/ctx-search/constants.d.ts +4 -0
  477. package/dist/tools/ctx-search/constants.d.ts.map +1 -0
  478. package/dist/tools/ctx-search/index.d.ts +4 -0
  479. package/dist/tools/ctx-search/index.d.ts.map +1 -0
  480. package/dist/tools/ctx-search/tools.d.ts +4 -0
  481. package/dist/tools/ctx-search/tools.d.ts.map +1 -0
  482. package/dist/tools/ctx-search/types.d.ts +34 -0
  483. package/dist/tools/ctx-search/types.d.ts.map +1 -0
  484. package/dist/tools/index.d.ts +6 -0
  485. package/dist/tools/index.d.ts.map +1 -0
  486. package/dist/tui/data/context-db.d.ts +36 -0
  487. package/dist/tui/data/context-db.d.ts.map +1 -0
  488. package/package.json +80 -0
  489. package/src/shared/announcement.test.ts +143 -0
  490. package/src/shared/announcement.ts +97 -0
  491. package/src/shared/assistant-message-extractor.ts +74 -0
  492. package/src/shared/bounded-session-map.test.ts +97 -0
  493. package/src/shared/bounded-session-map.ts +84 -0
  494. package/src/shared/conflict-detector.test.ts +232 -0
  495. package/src/shared/conflict-detector.ts +371 -0
  496. package/src/shared/conflict-fixer.test.ts +124 -0
  497. package/src/shared/conflict-fixer.ts +222 -0
  498. package/src/shared/data-path.test.ts +159 -0
  499. package/src/shared/data-path.ts +155 -0
  500. package/src/shared/error-message.test.ts +94 -0
  501. package/src/shared/error-message.ts +115 -0
  502. package/src/shared/format-bytes.ts +5 -0
  503. package/src/shared/format-threshold.ts +28 -0
  504. package/src/shared/harness.ts +61 -0
  505. package/src/shared/index.ts +5 -0
  506. package/src/shared/internal-initiator-marker.ts +1 -0
  507. package/src/shared/jsonc-parser.ts +138 -0
  508. package/src/shared/logger.ts +94 -0
  509. package/src/shared/model-requirements.ts +86 -0
  510. package/src/shared/model-suggestion-retry.test.ts +251 -0
  511. package/src/shared/model-suggestion-retry.ts +348 -0
  512. package/src/shared/models-dev-cache.test.ts +394 -0
  513. package/src/shared/models-dev-cache.ts +337 -0
  514. package/src/shared/native-binding.ts +311 -0
  515. package/src/shared/normalize-sdk-response.ts +40 -0
  516. package/src/shared/opencode-compaction-detector.test.ts +222 -0
  517. package/src/shared/opencode-compaction-detector.ts +81 -0
  518. package/src/shared/opencode-config-dir-types.ts +15 -0
  519. package/src/shared/opencode-config-dir.ts +38 -0
  520. package/src/shared/record-type-guard.ts +3 -0
  521. package/src/shared/resolve-fallbacks.test.ts +136 -0
  522. package/src/shared/resolve-fallbacks.ts +76 -0
  523. package/src/shared/rpc-client.test.ts +161 -0
  524. package/src/shared/rpc-client.ts +183 -0
  525. package/src/shared/rpc-notifications.test.ts +20 -0
  526. package/src/shared/rpc-notifications.ts +53 -0
  527. package/src/shared/rpc-server.ts +174 -0
  528. package/src/shared/rpc-types.ts +104 -0
  529. package/src/shared/rpc-utils.ts +72 -0
  530. package/src/shared/session-messages-bounded.test.ts +112 -0
  531. package/src/shared/sqlite-helpers.ts +27 -0
  532. package/src/shared/sqlite.ts +134 -0
  533. package/src/shared/stable-json.test.ts +87 -0
  534. package/src/shared/stable-json.ts +37 -0
  535. package/src/shared/subagent-runner.ts +222 -0
  536. package/src/shared/system-directive.ts +9 -0
  537. package/src/shared/tag-transcript.ts +553 -0
  538. package/src/shared/transcript-opencode.ts +259 -0
  539. package/src/shared/transcript.ts +226 -0
  540. package/src/shared/tui-config.ts +99 -0
  541. package/src/tui/data/context-db.ts +303 -0
  542. package/src/tui/index.tsx +692 -0
  543. package/src/tui/slots/sidebar-content.tsx +482 -0
  544. package/src/tui/types/opencode-plugin-tui.d.ts +232 -0
@@ -0,0 +1,841 @@
1
+ import { z } from "zod";
2
+ export declare const DEFAULT_NUDGE_INTERVAL_TOKENS = 10000;
3
+ export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
4
+ export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 300000;
5
+ export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
6
+ export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
7
+ /** Compressor defaults — see CompressorConfigSchema below for details. */
8
+ export declare const DEFAULT_COMPRESSOR_MIN_COMPARTMENT_RATIO = 1000;
9
+ export declare const DEFAULT_COMPRESSOR_MAX_MERGE_DEPTH = 5;
10
+ export declare const DEFAULT_COMPRESSOR_COOLDOWN_MS = 600000;
11
+ /** Max compartments merged in one LLM pass. LLM quality degrades with larger inputs,
12
+ * and smaller batches reduce ordinal-drift risk when the model outputs merged boundaries. */
13
+ export declare const DEFAULT_COMPRESSOR_MAX_COMPARTMENTS_PER_PASS = 15;
14
+ /** Number of newest compartments always excluded from compression.
15
+ * Protects freshly-published historian compartments from immediate re-compression,
16
+ * which would lose narrative quality before the agent has even used the compartment. */
17
+ export declare const DEFAULT_COMPRESSOR_GRACE_COMPARTMENTS = 10;
18
+ /** Output count at each depth = ceil(input / ratio).
19
+ * Lower ratios = gentler compression. Depth 5 is title-only (no LLM call). */
20
+ export declare const COMPRESSOR_MERGE_RATIO_BY_DEPTH: Record<number, number>;
21
+ export declare const DREAMER_TASKS: readonly ["consolidate", "verify", "archive-stale", "improve", "maintain-docs"];
22
+ export declare const DreamingTaskSchema: z.ZodEnum<{
23
+ consolidate: "consolidate";
24
+ verify: "verify";
25
+ "archive-stale": "archive-stale";
26
+ improve: "improve";
27
+ "maintain-docs": "maintain-docs";
28
+ }>;
29
+ export type DreamingTask = z.infer<typeof DreamingTaskSchema>;
30
+ export declare const DEFAULT_DREAMER_TASKS: DreamingTask[];
31
+ /** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
32
+ * Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
33
+ * Pi-only — OpenCode uses `variant` in agent config instead. */
34
+ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
35
+ off: "off";
36
+ minimal: "minimal";
37
+ low: "low";
38
+ medium: "medium";
39
+ high: "high";
40
+ xhigh: "xhigh";
41
+ }>>;
42
+ export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
43
+ /** Combined dreamer agent + scheduling configuration */
44
+ export declare const DreamerConfigSchema: z.ZodObject<{
45
+ model: z.ZodOptional<z.ZodString>;
46
+ temperature: z.ZodOptional<z.ZodNumber>;
47
+ top_p: z.ZodOptional<z.ZodNumber>;
48
+ prompt: z.ZodOptional<z.ZodString>;
49
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
50
+ disable: z.ZodOptional<z.ZodBoolean>;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ mode: z.ZodOptional<z.ZodEnum<{
53
+ subagent: "subagent";
54
+ primary: "primary";
55
+ all: "all";
56
+ }>>;
57
+ color: z.ZodOptional<z.ZodString>;
58
+ maxSteps: z.ZodOptional<z.ZodNumber>;
59
+ permission: z.ZodOptional<z.ZodObject<{
60
+ edit: z.ZodOptional<z.ZodEnum<{
61
+ deny: "deny";
62
+ allow: "allow";
63
+ ask: "ask";
64
+ }>>;
65
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
66
+ deny: "deny";
67
+ allow: "allow";
68
+ ask: "ask";
69
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
70
+ deny: "deny";
71
+ allow: "allow";
72
+ ask: "ask";
73
+ }>>]>>;
74
+ webfetch: z.ZodOptional<z.ZodEnum<{
75
+ deny: "deny";
76
+ allow: "allow";
77
+ ask: "ask";
78
+ }>>;
79
+ doom_loop: z.ZodOptional<z.ZodEnum<{
80
+ deny: "deny";
81
+ allow: "allow";
82
+ ask: "ask";
83
+ }>>;
84
+ external_directory: z.ZodOptional<z.ZodEnum<{
85
+ deny: "deny";
86
+ allow: "allow";
87
+ ask: "ask";
88
+ }>>;
89
+ }, z.core.$strip>>;
90
+ maxTokens: z.ZodOptional<z.ZodNumber>;
91
+ variant: z.ZodOptional<z.ZodString>;
92
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
93
+ schedule: z.ZodDefault<z.ZodString>;
94
+ max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
95
+ tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
96
+ consolidate: "consolidate";
97
+ verify: "verify";
98
+ "archive-stale": "archive-stale";
99
+ improve: "improve";
100
+ "maintain-docs": "maintain-docs";
101
+ }>>>;
102
+ task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
103
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
104
+ user_memories: z.ZodDefault<z.ZodObject<{
105
+ enabled: z.ZodDefault<z.ZodBoolean>;
106
+ promotion_threshold: z.ZodDefault<z.ZodNumber>;
107
+ }, z.core.$strip>>;
108
+ pin_key_files: z.ZodDefault<z.ZodObject<{
109
+ enabled: z.ZodDefault<z.ZodBoolean>;
110
+ token_budget: z.ZodDefault<z.ZodNumber>;
111
+ min_reads: z.ZodDefault<z.ZodNumber>;
112
+ }, z.core.$strip>>;
113
+ thinking_level: z.ZodOptional<z.ZodEnum<{
114
+ off: "off";
115
+ minimal: "minimal";
116
+ low: "low";
117
+ medium: "medium";
118
+ high: "high";
119
+ xhigh: "xhigh";
120
+ }>>;
121
+ }, z.core.$strip>;
122
+ export type DreamerConfig = z.infer<typeof DreamerConfigSchema>;
123
+ export declare const SidekickConfigSchema: z.ZodOptional<z.ZodObject<{
124
+ model: z.ZodOptional<z.ZodString>;
125
+ temperature: z.ZodOptional<z.ZodNumber>;
126
+ top_p: z.ZodOptional<z.ZodNumber>;
127
+ prompt: z.ZodOptional<z.ZodString>;
128
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
129
+ disable: z.ZodOptional<z.ZodBoolean>;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ mode: z.ZodOptional<z.ZodEnum<{
132
+ subagent: "subagent";
133
+ primary: "primary";
134
+ all: "all";
135
+ }>>;
136
+ color: z.ZodOptional<z.ZodString>;
137
+ maxSteps: z.ZodOptional<z.ZodNumber>;
138
+ permission: z.ZodOptional<z.ZodObject<{
139
+ edit: z.ZodOptional<z.ZodEnum<{
140
+ deny: "deny";
141
+ allow: "allow";
142
+ ask: "ask";
143
+ }>>;
144
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
145
+ deny: "deny";
146
+ allow: "allow";
147
+ ask: "ask";
148
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
149
+ deny: "deny";
150
+ allow: "allow";
151
+ ask: "ask";
152
+ }>>]>>;
153
+ webfetch: z.ZodOptional<z.ZodEnum<{
154
+ deny: "deny";
155
+ allow: "allow";
156
+ ask: "ask";
157
+ }>>;
158
+ doom_loop: z.ZodOptional<z.ZodEnum<{
159
+ deny: "deny";
160
+ allow: "allow";
161
+ ask: "ask";
162
+ }>>;
163
+ external_directory: z.ZodOptional<z.ZodEnum<{
164
+ deny: "deny";
165
+ allow: "allow";
166
+ ask: "ask";
167
+ }>>;
168
+ }, z.core.$strip>>;
169
+ maxTokens: z.ZodOptional<z.ZodNumber>;
170
+ variant: z.ZodOptional<z.ZodString>;
171
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
172
+ timeout_ms: z.ZodDefault<z.ZodNumber>;
173
+ system_prompt: z.ZodOptional<z.ZodString>;
174
+ thinking_level: z.ZodOptional<z.ZodEnum<{
175
+ off: "off";
176
+ minimal: "minimal";
177
+ low: "low";
178
+ medium: "medium";
179
+ high: "high";
180
+ xhigh: "xhigh";
181
+ }>>;
182
+ }, z.core.$strip>>;
183
+ export type SidekickConfig = NonNullable<z.infer<typeof SidekickConfigSchema>>;
184
+ /** Historian agent configuration — includes all agent overrides plus two_pass mode.
185
+ * Two-pass mode runs a second editor pass after the initial historian pass to clean
186
+ * up low-signal U: lines and cross-compartment duplicates. Recommended for models
187
+ * without extended thinking; not needed for Claude Sonnet/Opus when reasoning is
188
+ * enabled via OpenCode variant config. */
189
+ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
190
+ model: z.ZodOptional<z.ZodString>;
191
+ temperature: z.ZodOptional<z.ZodNumber>;
192
+ top_p: z.ZodOptional<z.ZodNumber>;
193
+ prompt: z.ZodOptional<z.ZodString>;
194
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
195
+ disable: z.ZodOptional<z.ZodBoolean>;
196
+ description: z.ZodOptional<z.ZodString>;
197
+ mode: z.ZodOptional<z.ZodEnum<{
198
+ subagent: "subagent";
199
+ primary: "primary";
200
+ all: "all";
201
+ }>>;
202
+ color: z.ZodOptional<z.ZodString>;
203
+ maxSteps: z.ZodOptional<z.ZodNumber>;
204
+ permission: z.ZodOptional<z.ZodObject<{
205
+ edit: z.ZodOptional<z.ZodEnum<{
206
+ deny: "deny";
207
+ allow: "allow";
208
+ ask: "ask";
209
+ }>>;
210
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
211
+ deny: "deny";
212
+ allow: "allow";
213
+ ask: "ask";
214
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
215
+ deny: "deny";
216
+ allow: "allow";
217
+ ask: "ask";
218
+ }>>]>>;
219
+ webfetch: z.ZodOptional<z.ZodEnum<{
220
+ deny: "deny";
221
+ allow: "allow";
222
+ ask: "ask";
223
+ }>>;
224
+ doom_loop: z.ZodOptional<z.ZodEnum<{
225
+ deny: "deny";
226
+ allow: "allow";
227
+ ask: "ask";
228
+ }>>;
229
+ external_directory: z.ZodOptional<z.ZodEnum<{
230
+ deny: "deny";
231
+ allow: "allow";
232
+ ask: "ask";
233
+ }>>;
234
+ }, z.core.$strip>>;
235
+ maxTokens: z.ZodOptional<z.ZodNumber>;
236
+ variant: z.ZodOptional<z.ZodString>;
237
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
238
+ two_pass: z.ZodDefault<z.ZodBoolean>;
239
+ thinking_level: z.ZodOptional<z.ZodEnum<{
240
+ off: "off";
241
+ minimal: "minimal";
242
+ low: "low";
243
+ medium: "medium";
244
+ high: "high";
245
+ xhigh: "xhigh";
246
+ }>>;
247
+ }, z.core.$strip>>;
248
+ export type HistorianConfig = NonNullable<z.infer<typeof HistorianConfigSchema>>;
249
+ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
250
+ provider: z.ZodDefault<z.ZodEnum<{
251
+ off: "off";
252
+ local: "local";
253
+ "openai-compatible": "openai-compatible";
254
+ }>>;
255
+ model: z.ZodOptional<z.ZodString>;
256
+ endpoint: z.ZodOptional<z.ZodString>;
257
+ api_key: z.ZodOptional<z.ZodString>;
258
+ }, z.core.$strip>, z.ZodTransform<{
259
+ provider: "local";
260
+ model: string;
261
+ } | {
262
+ api_key?: string | undefined;
263
+ provider: "openai-compatible";
264
+ model: string;
265
+ endpoint: string;
266
+ } | {
267
+ provider: "off";
268
+ model?: undefined;
269
+ }, {
270
+ provider: "off" | "local" | "openai-compatible";
271
+ model?: string | undefined;
272
+ endpoint?: string | undefined;
273
+ api_key?: string | undefined;
274
+ }>>;
275
+ export type EmbeddingConfig = z.infer<typeof EmbeddingConfigSchema>;
276
+ export interface MagicContextConfig {
277
+ enabled: boolean;
278
+ /** Auto-update the cached OpenCode plugin wrapper when a newer npm version is available.
279
+ * USER config only; project configs cannot disable it. Default: true. */
280
+ auto_update?: boolean;
281
+ /** When false, ctx_reduce tool is not registered, all nudges are disabled,
282
+ * and prompt guidance about ctx_reduce is stripped. Heuristic cleanup,
283
+ * compartments, memory, and other features continue to work. Default: true. */
284
+ ctx_reduce_enabled: boolean;
285
+ historian?: HistorianConfig;
286
+ dreamer?: DreamerConfig;
287
+ cache_ttl: string | {
288
+ default: string;
289
+ [modelKey: string]: string;
290
+ };
291
+ nudge_interval_tokens: number;
292
+ execute_threshold_percentage: number | {
293
+ default: number;
294
+ [modelKey: string]: number;
295
+ };
296
+ /** Absolute token thresholds per model. When set for a given model (or via `default`),
297
+ * this overrides `execute_threshold_percentage` for that model. Useful for hard caps
298
+ * matching provider input limits. Values above 80% × context_limit are clamped with a warning. */
299
+ execute_threshold_tokens?: {
300
+ default?: number;
301
+ [modelKey: string]: number | undefined;
302
+ };
303
+ protected_tags: number;
304
+ auto_drop_tool_age: number;
305
+ drop_tool_structure: boolean;
306
+ clear_reasoning_age: number;
307
+ iteration_nudge_threshold: number;
308
+ history_budget_percentage: number;
309
+ historian_timeout_ms: number;
310
+ commit_cluster_trigger: {
311
+ enabled: boolean;
312
+ min_clusters: number;
313
+ };
314
+ /**
315
+ * Controls whether and where Magic Context augments the system prompt
316
+ * (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
317
+ * `<key-files>`, sticky date) inside `experimental.chat.system.transform`.
318
+ *
319
+ * Internal OpenCode hidden agents (title, summary, compaction) are
320
+ * always skipped automatically — that's a separate code path.
321
+ */
322
+ system_prompt_injection: {
323
+ /** When false, NO injection happens for ANY agent — global escape hatch. */
324
+ enabled: boolean;
325
+ /**
326
+ * If the agent's system prompt contains any of these substrings,
327
+ * skip ALL Magic Context injection for that call. Lets users opt
328
+ * specific agents out (e.g. read-only QA agents that deny our
329
+ * `ctx_*` tools and don't need the guidance). The default marker
330
+ * `<!-- magic-context: skip -->` is meant to be added inside the
331
+ * user's custom agent prompt.
332
+ */
333
+ skip_signatures: string[];
334
+ };
335
+ compressor: {
336
+ enabled: boolean;
337
+ min_compartment_ratio: number;
338
+ max_merge_depth: number;
339
+ cooldown_ms: number;
340
+ max_compartments_per_pass: number;
341
+ grace_compartments: number;
342
+ };
343
+ experimental: {
344
+ /** Inject elapsed-time markers between user messages and date ranges on
345
+ * compartments so the agent has a wall-clock sense of the session. */
346
+ temporal_awareness: boolean;
347
+ /** Index git commit messages from HEAD into a new ctx_search source so
348
+ * agents can recall recent regressions, fixes, and decisions from
349
+ * commit history without running git log manually. */
350
+ git_commit_indexing: {
351
+ enabled: boolean;
352
+ /** Days of history to index (default: 365) */
353
+ since_days: number;
354
+ /** Max commits kept per project; oldest evicted (default: 2000) */
355
+ max_commits: number;
356
+ };
357
+ /** Appends a compact hint to new user messages when ctx_search finds
358
+ * highly-related memories, facts, or git commits. Does NOT inject
359
+ * full content — just vague fragments that nudge the agent to run
360
+ * ctx_search for full context if relevant. */
361
+ auto_search: {
362
+ enabled: boolean;
363
+ /** Top hit score must exceed this threshold for the hint to fire. */
364
+ score_threshold: number;
365
+ /** Minimum user message length in characters (skip short prompts). */
366
+ min_prompt_chars: number;
367
+ };
368
+ /**
369
+ * Age-tier caveman compression for long user/assistant text parts.
370
+ *
371
+ * Only active when `ctx_reduce_enabled: false`. Buckets eligible
372
+ * (outside-protected-tail) messages into four age tiers by tag
373
+ * position — oldest 20% → ultra, next 20% → full, next 20% → lite,
374
+ * newest 40% → untouched — and rewrites the text part in place.
375
+ * Always compresses from the original source (source_contents), so
376
+ * tier shifts produce the same result as if the target depth were
377
+ * applied directly to the original text.
378
+ *
379
+ * Disabled by default because it rewrites agent-visible history.
380
+ */
381
+ caveman_text_compression: {
382
+ enabled: boolean;
383
+ /** Text parts shorter than this (characters) are left untouched. */
384
+ min_chars: number;
385
+ };
386
+ };
387
+ embedding: EmbeddingConfig;
388
+ memory: {
389
+ enabled: boolean;
390
+ injection_budget_tokens: number;
391
+ auto_promote: boolean;
392
+ retrieval_count_promotion_threshold: number;
393
+ };
394
+ sidekick?: SidekickConfig;
395
+ }
396
+ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
397
+ enabled: z.ZodDefault<z.ZodBoolean>;
398
+ auto_update: z.ZodOptional<z.ZodBoolean>;
399
+ ctx_reduce_enabled: z.ZodDefault<z.ZodBoolean>;
400
+ historian: z.ZodOptional<z.ZodObject<{
401
+ model: z.ZodOptional<z.ZodString>;
402
+ temperature: z.ZodOptional<z.ZodNumber>;
403
+ top_p: z.ZodOptional<z.ZodNumber>;
404
+ prompt: z.ZodOptional<z.ZodString>;
405
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
406
+ disable: z.ZodOptional<z.ZodBoolean>;
407
+ description: z.ZodOptional<z.ZodString>;
408
+ mode: z.ZodOptional<z.ZodEnum<{
409
+ subagent: "subagent";
410
+ primary: "primary";
411
+ all: "all";
412
+ }>>;
413
+ color: z.ZodOptional<z.ZodString>;
414
+ maxSteps: z.ZodOptional<z.ZodNumber>;
415
+ permission: z.ZodOptional<z.ZodObject<{
416
+ edit: z.ZodOptional<z.ZodEnum<{
417
+ deny: "deny";
418
+ allow: "allow";
419
+ ask: "ask";
420
+ }>>;
421
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
422
+ deny: "deny";
423
+ allow: "allow";
424
+ ask: "ask";
425
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
426
+ deny: "deny";
427
+ allow: "allow";
428
+ ask: "ask";
429
+ }>>]>>;
430
+ webfetch: z.ZodOptional<z.ZodEnum<{
431
+ deny: "deny";
432
+ allow: "allow";
433
+ ask: "ask";
434
+ }>>;
435
+ doom_loop: z.ZodOptional<z.ZodEnum<{
436
+ deny: "deny";
437
+ allow: "allow";
438
+ ask: "ask";
439
+ }>>;
440
+ external_directory: z.ZodOptional<z.ZodEnum<{
441
+ deny: "deny";
442
+ allow: "allow";
443
+ ask: "ask";
444
+ }>>;
445
+ }, z.core.$strip>>;
446
+ maxTokens: z.ZodOptional<z.ZodNumber>;
447
+ variant: z.ZodOptional<z.ZodString>;
448
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
449
+ two_pass: z.ZodDefault<z.ZodBoolean>;
450
+ thinking_level: z.ZodOptional<z.ZodEnum<{
451
+ off: "off";
452
+ minimal: "minimal";
453
+ low: "low";
454
+ medium: "medium";
455
+ high: "high";
456
+ xhigh: "xhigh";
457
+ }>>;
458
+ }, z.core.$strip>>;
459
+ dreamer: z.ZodOptional<z.ZodObject<{
460
+ model: z.ZodOptional<z.ZodString>;
461
+ temperature: z.ZodOptional<z.ZodNumber>;
462
+ top_p: z.ZodOptional<z.ZodNumber>;
463
+ prompt: z.ZodOptional<z.ZodString>;
464
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
465
+ disable: z.ZodOptional<z.ZodBoolean>;
466
+ description: z.ZodOptional<z.ZodString>;
467
+ mode: z.ZodOptional<z.ZodEnum<{
468
+ subagent: "subagent";
469
+ primary: "primary";
470
+ all: "all";
471
+ }>>;
472
+ color: z.ZodOptional<z.ZodString>;
473
+ maxSteps: z.ZodOptional<z.ZodNumber>;
474
+ permission: z.ZodOptional<z.ZodObject<{
475
+ edit: z.ZodOptional<z.ZodEnum<{
476
+ deny: "deny";
477
+ allow: "allow";
478
+ ask: "ask";
479
+ }>>;
480
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
481
+ deny: "deny";
482
+ allow: "allow";
483
+ ask: "ask";
484
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
485
+ deny: "deny";
486
+ allow: "allow";
487
+ ask: "ask";
488
+ }>>]>>;
489
+ webfetch: z.ZodOptional<z.ZodEnum<{
490
+ deny: "deny";
491
+ allow: "allow";
492
+ ask: "ask";
493
+ }>>;
494
+ doom_loop: z.ZodOptional<z.ZodEnum<{
495
+ deny: "deny";
496
+ allow: "allow";
497
+ ask: "ask";
498
+ }>>;
499
+ external_directory: z.ZodOptional<z.ZodEnum<{
500
+ deny: "deny";
501
+ allow: "allow";
502
+ ask: "ask";
503
+ }>>;
504
+ }, z.core.$strip>>;
505
+ maxTokens: z.ZodOptional<z.ZodNumber>;
506
+ variant: z.ZodOptional<z.ZodString>;
507
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
508
+ schedule: z.ZodDefault<z.ZodString>;
509
+ max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
510
+ tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
511
+ consolidate: "consolidate";
512
+ verify: "verify";
513
+ "archive-stale": "archive-stale";
514
+ improve: "improve";
515
+ "maintain-docs": "maintain-docs";
516
+ }>>>;
517
+ task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
518
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
519
+ user_memories: z.ZodDefault<z.ZodObject<{
520
+ enabled: z.ZodDefault<z.ZodBoolean>;
521
+ promotion_threshold: z.ZodDefault<z.ZodNumber>;
522
+ }, z.core.$strip>>;
523
+ pin_key_files: z.ZodDefault<z.ZodObject<{
524
+ enabled: z.ZodDefault<z.ZodBoolean>;
525
+ token_budget: z.ZodDefault<z.ZodNumber>;
526
+ min_reads: z.ZodDefault<z.ZodNumber>;
527
+ }, z.core.$strip>>;
528
+ thinking_level: z.ZodOptional<z.ZodEnum<{
529
+ off: "off";
530
+ minimal: "minimal";
531
+ low: "low";
532
+ medium: "medium";
533
+ high: "high";
534
+ xhigh: "xhigh";
535
+ }>>;
536
+ }, z.core.$strip>>;
537
+ cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
538
+ default: z.ZodString;
539
+ }, z.core.$catchall<z.ZodString>>]>>;
540
+ nudge_interval_tokens: z.ZodDefault<z.ZodNumber>;
541
+ execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
542
+ default: z.ZodNumber;
543
+ }, z.core.$catchall<z.ZodNumber>>]>>;
544
+ execute_threshold_tokens: z.ZodOptional<z.ZodObject<{
545
+ default: z.ZodOptional<z.ZodNumber>;
546
+ }, z.core.$catchall<z.ZodNumber>>>;
547
+ protected_tags: z.ZodOptional<z.ZodNumber>;
548
+ auto_drop_tool_age: z.ZodDefault<z.ZodNumber>;
549
+ drop_tool_structure: z.ZodDefault<z.ZodBoolean>;
550
+ clear_reasoning_age: z.ZodDefault<z.ZodNumber>;
551
+ iteration_nudge_threshold: z.ZodDefault<z.ZodNumber>;
552
+ history_budget_percentage: z.ZodDefault<z.ZodNumber>;
553
+ historian_timeout_ms: z.ZodDefault<z.ZodNumber>;
554
+ commit_cluster_trigger: z.ZodDefault<z.ZodObject<{
555
+ enabled: z.ZodDefault<z.ZodBoolean>;
556
+ min_clusters: z.ZodDefault<z.ZodNumber>;
557
+ }, z.core.$strip>>;
558
+ system_prompt_injection: z.ZodDefault<z.ZodObject<{
559
+ enabled: z.ZodDefault<z.ZodBoolean>;
560
+ skip_signatures: z.ZodDefault<z.ZodArray<z.ZodString>>;
561
+ }, z.core.$strip>>;
562
+ compressor: z.ZodDefault<z.ZodObject<{
563
+ enabled: z.ZodDefault<z.ZodBoolean>;
564
+ min_compartment_ratio: z.ZodDefault<z.ZodNumber>;
565
+ max_merge_depth: z.ZodDefault<z.ZodNumber>;
566
+ cooldown_ms: z.ZodDefault<z.ZodNumber>;
567
+ max_compartments_per_pass: z.ZodDefault<z.ZodNumber>;
568
+ grace_compartments: z.ZodDefault<z.ZodNumber>;
569
+ }, z.core.$strip>>;
570
+ embedding: z.ZodDefault<z.ZodPipe<z.ZodObject<{
571
+ provider: z.ZodDefault<z.ZodEnum<{
572
+ off: "off";
573
+ local: "local";
574
+ "openai-compatible": "openai-compatible";
575
+ }>>;
576
+ model: z.ZodOptional<z.ZodString>;
577
+ endpoint: z.ZodOptional<z.ZodString>;
578
+ api_key: z.ZodOptional<z.ZodString>;
579
+ }, z.core.$strip>, z.ZodTransform<{
580
+ provider: "local";
581
+ model: string;
582
+ } | {
583
+ api_key?: string | undefined;
584
+ provider: "openai-compatible";
585
+ model: string;
586
+ endpoint: string;
587
+ } | {
588
+ provider: "off";
589
+ model?: undefined;
590
+ }, {
591
+ provider: "off" | "local" | "openai-compatible";
592
+ model?: string | undefined;
593
+ endpoint?: string | undefined;
594
+ api_key?: string | undefined;
595
+ }>>>;
596
+ experimental: z.ZodDefault<z.ZodObject<{
597
+ temporal_awareness: z.ZodDefault<z.ZodBoolean>;
598
+ git_commit_indexing: z.ZodDefault<z.ZodObject<{
599
+ enabled: z.ZodDefault<z.ZodBoolean>;
600
+ since_days: z.ZodDefault<z.ZodNumber>;
601
+ max_commits: z.ZodDefault<z.ZodNumber>;
602
+ }, z.core.$strip>>;
603
+ auto_search: z.ZodDefault<z.ZodObject<{
604
+ enabled: z.ZodDefault<z.ZodBoolean>;
605
+ score_threshold: z.ZodDefault<z.ZodNumber>;
606
+ min_prompt_chars: z.ZodDefault<z.ZodNumber>;
607
+ }, z.core.$strip>>;
608
+ caveman_text_compression: z.ZodDefault<z.ZodObject<{
609
+ enabled: z.ZodDefault<z.ZodBoolean>;
610
+ min_chars: z.ZodDefault<z.ZodNumber>;
611
+ }, z.core.$strip>>;
612
+ }, z.core.$strip>>;
613
+ memory: z.ZodDefault<z.ZodObject<{
614
+ enabled: z.ZodDefault<z.ZodBoolean>;
615
+ injection_budget_tokens: z.ZodDefault<z.ZodNumber>;
616
+ auto_promote: z.ZodDefault<z.ZodBoolean>;
617
+ retrieval_count_promotion_threshold: z.ZodDefault<z.ZodNumber>;
618
+ }, z.core.$strip>>;
619
+ sidekick: z.ZodOptional<z.ZodObject<{
620
+ model: z.ZodOptional<z.ZodString>;
621
+ temperature: z.ZodOptional<z.ZodNumber>;
622
+ top_p: z.ZodOptional<z.ZodNumber>;
623
+ prompt: z.ZodOptional<z.ZodString>;
624
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
625
+ disable: z.ZodOptional<z.ZodBoolean>;
626
+ description: z.ZodOptional<z.ZodString>;
627
+ mode: z.ZodOptional<z.ZodEnum<{
628
+ subagent: "subagent";
629
+ primary: "primary";
630
+ all: "all";
631
+ }>>;
632
+ color: z.ZodOptional<z.ZodString>;
633
+ maxSteps: z.ZodOptional<z.ZodNumber>;
634
+ permission: z.ZodOptional<z.ZodObject<{
635
+ edit: z.ZodOptional<z.ZodEnum<{
636
+ deny: "deny";
637
+ allow: "allow";
638
+ ask: "ask";
639
+ }>>;
640
+ bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
641
+ deny: "deny";
642
+ allow: "allow";
643
+ ask: "ask";
644
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
645
+ deny: "deny";
646
+ allow: "allow";
647
+ ask: "ask";
648
+ }>>]>>;
649
+ webfetch: z.ZodOptional<z.ZodEnum<{
650
+ deny: "deny";
651
+ allow: "allow";
652
+ ask: "ask";
653
+ }>>;
654
+ doom_loop: z.ZodOptional<z.ZodEnum<{
655
+ deny: "deny";
656
+ allow: "allow";
657
+ ask: "ask";
658
+ }>>;
659
+ external_directory: z.ZodOptional<z.ZodEnum<{
660
+ deny: "deny";
661
+ allow: "allow";
662
+ ask: "ask";
663
+ }>>;
664
+ }, z.core.$strip>>;
665
+ maxTokens: z.ZodOptional<z.ZodNumber>;
666
+ variant: z.ZodOptional<z.ZodString>;
667
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
668
+ timeout_ms: z.ZodDefault<z.ZodNumber>;
669
+ system_prompt: z.ZodOptional<z.ZodString>;
670
+ thinking_level: z.ZodOptional<z.ZodEnum<{
671
+ off: "off";
672
+ minimal: "minimal";
673
+ low: "low";
674
+ medium: "medium";
675
+ high: "high";
676
+ xhigh: "xhigh";
677
+ }>>;
678
+ }, z.core.$strip>>;
679
+ }, z.core.$strip>, z.ZodTransform<MagicContextConfig, {
680
+ enabled: boolean;
681
+ ctx_reduce_enabled: boolean;
682
+ cache_ttl: string | {
683
+ [x: string]: string;
684
+ default: string;
685
+ };
686
+ nudge_interval_tokens: number;
687
+ execute_threshold_percentage: number | {
688
+ [x: string]: number;
689
+ default: number;
690
+ };
691
+ auto_drop_tool_age: number;
692
+ drop_tool_structure: boolean;
693
+ clear_reasoning_age: number;
694
+ iteration_nudge_threshold: number;
695
+ history_budget_percentage: number;
696
+ historian_timeout_ms: number;
697
+ commit_cluster_trigger: {
698
+ enabled: boolean;
699
+ min_clusters: number;
700
+ };
701
+ system_prompt_injection: {
702
+ enabled: boolean;
703
+ skip_signatures: string[];
704
+ };
705
+ compressor: {
706
+ enabled: boolean;
707
+ min_compartment_ratio: number;
708
+ max_merge_depth: number;
709
+ cooldown_ms: number;
710
+ max_compartments_per_pass: number;
711
+ grace_compartments: number;
712
+ };
713
+ embedding: {
714
+ provider: "local";
715
+ model: string;
716
+ } | {
717
+ api_key?: string | undefined;
718
+ provider: "openai-compatible";
719
+ model: string;
720
+ endpoint: string;
721
+ } | {
722
+ provider: "off";
723
+ model?: undefined;
724
+ };
725
+ experimental: {
726
+ temporal_awareness: boolean;
727
+ git_commit_indexing: {
728
+ enabled: boolean;
729
+ since_days: number;
730
+ max_commits: number;
731
+ };
732
+ auto_search: {
733
+ enabled: boolean;
734
+ score_threshold: number;
735
+ min_prompt_chars: number;
736
+ };
737
+ caveman_text_compression: {
738
+ enabled: boolean;
739
+ min_chars: number;
740
+ };
741
+ };
742
+ memory: {
743
+ enabled: boolean;
744
+ injection_budget_tokens: number;
745
+ auto_promote: boolean;
746
+ retrieval_count_promotion_threshold: number;
747
+ };
748
+ auto_update?: boolean | undefined;
749
+ historian?: {
750
+ two_pass: boolean;
751
+ model?: string | undefined;
752
+ temperature?: number | undefined;
753
+ top_p?: number | undefined;
754
+ prompt?: string | undefined;
755
+ tools?: Record<string, boolean> | undefined;
756
+ disable?: boolean | undefined;
757
+ description?: string | undefined;
758
+ mode?: "subagent" | "primary" | "all" | undefined;
759
+ color?: string | undefined;
760
+ maxSteps?: number | undefined;
761
+ permission?: {
762
+ edit?: "deny" | "allow" | "ask" | undefined;
763
+ bash?: "deny" | "allow" | "ask" | Record<string, "deny" | "allow" | "ask"> | undefined;
764
+ webfetch?: "deny" | "allow" | "ask" | undefined;
765
+ doom_loop?: "deny" | "allow" | "ask" | undefined;
766
+ external_directory?: "deny" | "allow" | "ask" | undefined;
767
+ } | undefined;
768
+ maxTokens?: number | undefined;
769
+ variant?: string | undefined;
770
+ fallback_models?: string | string[] | undefined;
771
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
772
+ } | undefined;
773
+ dreamer?: {
774
+ schedule: string;
775
+ max_runtime_minutes: number;
776
+ tasks: ("consolidate" | "verify" | "archive-stale" | "improve" | "maintain-docs")[];
777
+ task_timeout_minutes: number;
778
+ inject_docs: boolean;
779
+ user_memories: {
780
+ enabled: boolean;
781
+ promotion_threshold: number;
782
+ };
783
+ pin_key_files: {
784
+ enabled: boolean;
785
+ token_budget: number;
786
+ min_reads: number;
787
+ };
788
+ model?: string | undefined;
789
+ temperature?: number | undefined;
790
+ top_p?: number | undefined;
791
+ prompt?: string | undefined;
792
+ tools?: Record<string, boolean> | undefined;
793
+ disable?: boolean | undefined;
794
+ description?: string | undefined;
795
+ mode?: "subagent" | "primary" | "all" | undefined;
796
+ color?: string | undefined;
797
+ maxSteps?: number | undefined;
798
+ permission?: {
799
+ edit?: "deny" | "allow" | "ask" | undefined;
800
+ bash?: "deny" | "allow" | "ask" | Record<string, "deny" | "allow" | "ask"> | undefined;
801
+ webfetch?: "deny" | "allow" | "ask" | undefined;
802
+ doom_loop?: "deny" | "allow" | "ask" | undefined;
803
+ external_directory?: "deny" | "allow" | "ask" | undefined;
804
+ } | undefined;
805
+ maxTokens?: number | undefined;
806
+ variant?: string | undefined;
807
+ fallback_models?: string | string[] | undefined;
808
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
809
+ } | undefined;
810
+ execute_threshold_tokens?: {
811
+ [x: string]: number;
812
+ default?: number | undefined;
813
+ } | undefined;
814
+ protected_tags?: number | undefined;
815
+ sidekick?: {
816
+ timeout_ms: number;
817
+ model?: string | undefined;
818
+ temperature?: number | undefined;
819
+ top_p?: number | undefined;
820
+ prompt?: string | undefined;
821
+ tools?: Record<string, boolean> | undefined;
822
+ disable?: boolean | undefined;
823
+ description?: string | undefined;
824
+ mode?: "subagent" | "primary" | "all" | undefined;
825
+ color?: string | undefined;
826
+ maxSteps?: number | undefined;
827
+ permission?: {
828
+ edit?: "deny" | "allow" | "ask" | undefined;
829
+ bash?: "deny" | "allow" | "ask" | Record<string, "deny" | "allow" | "ask"> | undefined;
830
+ webfetch?: "deny" | "allow" | "ask" | undefined;
831
+ doom_loop?: "deny" | "allow" | "ask" | undefined;
832
+ external_directory?: "deny" | "allow" | "ask" | undefined;
833
+ } | undefined;
834
+ maxTokens?: number | undefined;
835
+ variant?: string | undefined;
836
+ fallback_models?: string | string[] | undefined;
837
+ system_prompt?: string | undefined;
838
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
839
+ } | undefined;
840
+ }>>;
841
+ //# sourceMappingURL=magic-context.d.ts.map