@cortexkit/opencode-magic-context 0.25.0 → 0.27.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 (316) hide show
  1. package/README.md +14 -12
  2. package/dist/agents/dreamer.d.ts +19 -0
  3. package/dist/agents/dreamer.d.ts.map +1 -1
  4. package/dist/agents/hidden-agent-registrations.d.ts +67 -0
  5. package/dist/agents/hidden-agent-registrations.d.ts.map +1 -0
  6. package/dist/agents/historian.d.ts +1 -0
  7. package/dist/agents/historian.d.ts.map +1 -1
  8. package/dist/agents/permissions.d.ts +19 -42
  9. package/dist/agents/permissions.d.ts.map +1 -1
  10. package/dist/agents/smart-note-compiler.d.ts +2 -0
  11. package/dist/agents/smart-note-compiler.d.ts.map +1 -0
  12. package/dist/config/index.d.ts +1 -1
  13. package/dist/config/index.d.ts.map +1 -1
  14. package/dist/config/migrate-config-location.d.ts +89 -0
  15. package/dist/config/migrate-config-location.d.ts.map +1 -0
  16. package/dist/config/migrate-dreamer-v2.d.ts +37 -0
  17. package/dist/config/migrate-dreamer-v2.d.ts.map +1 -0
  18. package/dist/config/migrate-experimental.d.ts.map +1 -1
  19. package/dist/config/project-security.d.ts +3 -0
  20. package/dist/config/project-security.d.ts.map +1 -1
  21. package/dist/config/prune-config-leaf.d.ts.map +1 -1
  22. package/dist/config/schema/magic-context.d.ts +606 -60
  23. package/dist/config/schema/magic-context.d.ts.map +1 -1
  24. package/dist/features/magic-context/compaction-marker.d.ts +9 -3
  25. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
  26. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +18 -1
  27. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  28. package/dist/features/magic-context/compartment-embedding.d.ts.map +1 -1
  29. package/dist/features/magic-context/dreamer/classify-prompt.d.ts +50 -0
  30. package/dist/features/magic-context/dreamer/classify-prompt.d.ts.map +1 -0
  31. package/dist/features/magic-context/dreamer/classify.d.ts +22 -0
  32. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -0
  33. package/dist/features/magic-context/dreamer/cron.d.ts +72 -0
  34. package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -0
  35. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +30 -0
  36. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -0
  37. package/dist/features/magic-context/dreamer/index.d.ts +1 -3
  38. package/dist/features/magic-context/dreamer/index.d.ts.map +1 -1
  39. package/dist/features/magic-context/dreamer/lease.d.ts +44 -6
  40. package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
  41. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts +13 -0
  42. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts.map +1 -0
  43. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +36 -0
  44. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -0
  45. package/dist/features/magic-context/dreamer/map-memories.d.ts +22 -0
  46. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -0
  47. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts +7 -0
  48. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -0
  49. package/dist/features/magic-context/dreamer/primer-seed.d.ts +25 -0
  50. package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -0
  51. package/dist/features/magic-context/dreamer/promote-primers.d.ts +21 -0
  52. package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -0
  53. package/dist/features/magic-context/dreamer/protected-regions.d.ts +19 -0
  54. package/dist/features/magic-context/dreamer/protected-regions.d.ts.map +1 -0
  55. package/dist/features/magic-context/dreamer/refresh-primers.d.ts +30 -0
  56. package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -0
  57. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts +47 -0
  58. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts.map +1 -0
  59. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +48 -0
  60. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -0
  61. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +81 -0
  62. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -0
  63. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +8 -0
  64. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
  65. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +82 -0
  66. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -0
  67. package/dist/features/magic-context/dreamer/task-config.d.ts +28 -0
  68. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -0
  69. package/dist/features/magic-context/dreamer/task-executor.d.ts +49 -0
  70. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -0
  71. package/dist/features/magic-context/dreamer/task-gates.d.ts +29 -0
  72. package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -0
  73. package/dist/features/magic-context/dreamer/task-prompts.d.ts +37 -6
  74. package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
  75. package/dist/features/magic-context/dreamer/task-registry.d.ts +48 -0
  76. package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -0
  77. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +88 -0
  78. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -0
  79. package/dist/features/magic-context/dreamer/verify-gate.d.ts +43 -0
  80. package/dist/features/magic-context/dreamer/verify-gate.d.ts.map +1 -0
  81. package/dist/features/magic-context/dreamer/verify-prompt.d.ts +41 -0
  82. package/dist/features/magic-context/dreamer/verify-prompt.d.ts.map +1 -0
  83. package/dist/features/magic-context/dreamer/verify.d.ts +43 -0
  84. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -0
  85. package/dist/features/magic-context/git-commits/search-git-commits.d.ts +2 -0
  86. package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -1
  87. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +4 -4
  88. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
  89. package/dist/features/magic-context/index.d.ts +1 -0
  90. package/dist/features/magic-context/index.d.ts.map +1 -1
  91. package/dist/features/magic-context/memory/embedding-cache.d.ts +2 -2
  92. package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -1
  93. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  94. package/dist/features/magic-context/memory/embedding-local.d.ts +3 -3
  95. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  96. package/dist/features/magic-context/memory/embedding-openai.d.ts +20 -9
  97. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  98. package/dist/features/magic-context/memory/embedding-provider.d.ts +8 -4
  99. package/dist/features/magic-context/memory/embedding-provider.d.ts.map +1 -1
  100. package/dist/features/magic-context/memory/embedding.d.ts +2 -2
  101. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  102. package/dist/features/magic-context/memory/index.d.ts +4 -1
  103. package/dist/features/magic-context/memory/index.d.ts.map +1 -1
  104. package/dist/features/magic-context/memory/memory-migration.d.ts +1 -0
  105. package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
  106. package/dist/features/magic-context/memory/promotion.d.ts +16 -4
  107. package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
  108. package/dist/features/magic-context/memory/relocate-memory.d.ts +58 -0
  109. package/dist/features/magic-context/memory/relocate-memory.d.ts.map +1 -0
  110. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +2 -2
  111. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
  112. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts +31 -0
  113. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts.map +1 -0
  114. package/dist/features/magic-context/memory/storage-memory.d.ts +12 -1
  115. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
  116. package/dist/features/magic-context/memory/types.d.ts +4 -0
  117. package/dist/features/magic-context/memory/types.d.ts.map +1 -1
  118. package/dist/features/magic-context/memory/verification-paths.d.ts +32 -0
  119. package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -0
  120. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  121. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  122. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
  123. package/dist/features/magic-context/primer-clustering.d.ts +29 -0
  124. package/dist/features/magic-context/primer-clustering.d.ts.map +1 -0
  125. package/dist/features/magic-context/project-embedding-registry.d.ts +28 -4
  126. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  127. package/dist/features/magic-context/search.d.ts +12 -2
  128. package/dist/features/magic-context/search.d.ts.map +1 -1
  129. package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
  130. package/dist/features/magic-context/smart-notes/capabilities.d.ts +31 -0
  131. package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -0
  132. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts +2 -0
  133. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts.map +1 -0
  134. package/dist/features/magic-context/smart-notes/compiler.d.ts +52 -0
  135. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -0
  136. package/dist/features/magic-context/smart-notes/index.d.ts +10 -0
  137. package/dist/features/magic-context/smart-notes/index.d.ts.map +1 -0
  138. package/dist/features/magic-context/smart-notes/runner.d.ts +18 -0
  139. package/dist/features/magic-context/smart-notes/runner.d.ts.map +1 -0
  140. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +22 -0
  141. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -0
  142. package/dist/features/magic-context/smart-notes/schedule.d.ts +9 -0
  143. package/dist/features/magic-context/smart-notes/schedule.d.ts.map +1 -0
  144. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts +49 -0
  145. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts.map +1 -0
  146. package/dist/features/magic-context/smart-notes/storage.d.ts +27 -0
  147. package/dist/features/magic-context/smart-notes/storage.d.ts.map +1 -0
  148. package/dist/features/magic-context/smart-notes/types.d.ts +63 -0
  149. package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -0
  150. package/dist/features/magic-context/storage-db.d.ts +6 -1
  151. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  152. package/dist/features/magic-context/storage-meta-persisted.d.ts +45 -4
  153. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  154. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  155. package/dist/features/magic-context/storage-meta-shared.d.ts +5 -1
  156. package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
  157. package/dist/features/magic-context/storage-meta.d.ts +1 -1
  158. package/dist/features/magic-context/storage-meta.d.ts.map +1 -1
  159. package/dist/features/magic-context/storage-notes.d.ts +15 -0
  160. package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
  161. package/dist/features/magic-context/storage-primers.d.ts +85 -0
  162. package/dist/features/magic-context/storage-primers.d.ts.map +1 -0
  163. package/dist/features/magic-context/storage-tags.d.ts +68 -2
  164. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  165. package/dist/features/magic-context/storage.d.ts +4 -3
  166. package/dist/features/magic-context/storage.d.ts.map +1 -1
  167. package/dist/features/magic-context/tagger.d.ts +7 -1
  168. package/dist/features/magic-context/tagger.d.ts.map +1 -1
  169. package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
  170. package/dist/features/magic-context/transform-decision-log.d.ts +59 -0
  171. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -0
  172. package/dist/features/magic-context/types.d.ts +2 -0
  173. package/dist/features/magic-context/types.d.ts.map +1 -1
  174. package/dist/features/magic-context/user-memory/review-user-memories.d.ts +5 -0
  175. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  176. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +18 -0
  177. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
  178. package/dist/features/magic-context/v22-deferred-backfill.d.ts.map +1 -1
  179. package/dist/hooks/auto-update-checker/semver.d.ts +9 -0
  180. package/dist/hooks/auto-update-checker/semver.d.ts.map +1 -1
  181. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  182. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  183. package/dist/hooks/magic-context/command-handler.d.ts +8 -15
  184. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  185. package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
  186. package/dist/hooks/magic-context/compartment-parser.d.ts +9 -0
  187. package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
  188. package/dist/hooks/magic-context/compartment-prompt.d.ts +4 -1
  189. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
  190. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
  191. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  192. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  193. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
  194. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  195. package/dist/hooks/magic-context/compartment-runner-types.d.ts +8 -0
  196. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  197. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  198. package/dist/hooks/magic-context/compartment-trigger.d.ts +1 -1
  199. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  200. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
  201. package/dist/hooks/magic-context/derive-budgets.d.ts +5 -9
  202. package/dist/hooks/magic-context/derive-budgets.d.ts.map +1 -1
  203. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  204. package/dist/hooks/magic-context/event-payloads.d.ts +1 -0
  205. package/dist/hooks/magic-context/event-payloads.d.ts.map +1 -1
  206. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
  207. package/dist/hooks/magic-context/heuristic-cleanup.d.ts +1 -0
  208. package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
  209. package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
  210. package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
  211. package/dist/hooks/magic-context/historian-state-file.d.ts.map +1 -1
  212. package/dist/hooks/magic-context/hook-handlers.d.ts +2 -1
  213. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  214. package/dist/hooks/magic-context/hook.d.ts +1 -0
  215. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  216. package/dist/hooks/magic-context/inject-compartments.d.ts +0 -3
  217. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  218. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +10 -0
  219. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  220. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  221. package/dist/hooks/magic-context/send-session-notification.d.ts +2 -0
  222. package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
  223. package/dist/hooks/magic-context/system-prompt-hash.d.ts +17 -0
  224. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  225. package/dist/hooks/magic-context/tag-id-fallback.d.ts.map +1 -1
  226. package/dist/hooks/magic-context/tag-messages.d.ts +10 -0
  227. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  228. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +32 -1
  229. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  230. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +14 -5
  231. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  232. package/dist/hooks/magic-context/transform.d.ts +0 -2
  233. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  234. package/dist/index.d.ts +2 -2
  235. package/dist/index.d.ts.map +1 -1
  236. package/dist/index.js +17664 -4236
  237. package/dist/plugin/dream-timer.d.ts +17 -9
  238. package/dist/plugin/dream-timer.d.ts.map +1 -1
  239. package/dist/plugin/embedding-bootstrap-helpers.d.ts +1 -1
  240. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
  241. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  242. package/dist/plugin/hooks/create-session-hooks.d.ts +211 -0
  243. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  244. package/dist/plugin/instance-disposal.d.ts +2 -0
  245. package/dist/plugin/instance-disposal.d.ts.map +1 -0
  246. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  247. package/dist/shared/announcement.d.ts +1 -1
  248. package/dist/shared/announcement.d.ts.map +1 -1
  249. package/dist/shared/data-path.d.ts +26 -7
  250. package/dist/shared/data-path.d.ts.map +1 -1
  251. package/dist/shared/index.d.ts +0 -1
  252. package/dist/shared/index.d.ts.map +1 -1
  253. package/dist/shared/model-suggestion-retry.d.ts +48 -2
  254. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  255. package/dist/shared/redaction.d.ts +7 -0
  256. package/dist/shared/redaction.d.ts.map +1 -0
  257. package/dist/shared/resolve-fallbacks.d.ts +28 -16
  258. package/dist/shared/resolve-fallbacks.d.ts.map +1 -1
  259. package/dist/shared/rpc-server.d.ts.map +1 -1
  260. package/dist/shared/rpc-types.d.ts +2 -0
  261. package/dist/shared/rpc-types.d.ts.map +1 -1
  262. package/dist/shared/subagent-runner.d.ts +12 -3
  263. package/dist/shared/subagent-runner.d.ts.map +1 -1
  264. package/dist/shared/tui-config.d.ts.map +1 -1
  265. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  266. package/dist/tools/ctx-memory/types.d.ts.map +1 -1
  267. package/dist/tools/ctx-memory/verification-recording.d.ts +8 -0
  268. package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -0
  269. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  270. package/dist/tools/ctx-search/types.d.ts +1 -1
  271. package/dist/tools/ctx-search/types.d.ts.map +1 -1
  272. package/dist/tui/data/context-db.d.ts +2 -0
  273. package/dist/tui/data/context-db.d.ts.map +1 -1
  274. package/package.json +3 -1
  275. package/src/shared/announcement.test.ts +20 -0
  276. package/src/shared/announcement.ts +19 -7
  277. package/src/shared/data-path.test.ts +70 -6
  278. package/src/shared/data-path.ts +50 -8
  279. package/src/shared/index.ts +0 -1
  280. package/src/shared/model-suggestion-retry.test.ts +79 -2
  281. package/src/shared/model-suggestion-retry.ts +181 -3
  282. package/src/shared/redaction.test.ts +48 -0
  283. package/src/shared/redaction.ts +240 -0
  284. package/src/shared/resolve-fallbacks.test.ts +37 -71
  285. package/src/shared/resolve-fallbacks.ts +30 -26
  286. package/src/shared/rpc-server.ts +24 -0
  287. package/src/shared/rpc-types.ts +2 -0
  288. package/src/shared/subagent-runner.ts +12 -3
  289. package/src/shared/tui-config.test.ts +63 -0
  290. package/src/shared/tui-config.ts +67 -39
  291. package/src/tui/data/context-db.ts +12 -0
  292. package/src/tui/index.tsx +87 -17
  293. package/src/tui/slots/sidebar-content.tsx +15 -7
  294. package/dist/features/magic-context/dreamer/queue.d.ts +0 -55
  295. package/dist/features/magic-context/dreamer/queue.d.ts.map +0 -1
  296. package/dist/features/magic-context/dreamer/runner.d.ts +0 -92
  297. package/dist/features/magic-context/dreamer/runner.d.ts.map +0 -1
  298. package/dist/features/magic-context/dreamer/scheduler.d.ts +0 -29
  299. package/dist/features/magic-context/dreamer/scheduler.d.ts.map +0 -1
  300. package/dist/features/magic-context/key-files/aft-availability.d.ts +0 -11
  301. package/dist/features/magic-context/key-files/aft-availability.d.ts.map +0 -1
  302. package/dist/features/magic-context/key-files/identify-key-files.d.ts +0 -84
  303. package/dist/features/magic-context/key-files/identify-key-files.d.ts.map +0 -1
  304. package/dist/features/magic-context/key-files/project-key-files.d.ts +0 -42
  305. package/dist/features/magic-context/key-files/project-key-files.d.ts.map +0 -1
  306. package/dist/features/magic-context/key-files/read-history.d.ts +0 -26
  307. package/dist/features/magic-context/key-files/read-history.d.ts.map +0 -1
  308. package/dist/features/magic-context/key-files/read-stats.d.ts +0 -18
  309. package/dist/features/magic-context/key-files/read-stats.d.ts.map +0 -1
  310. package/dist/features/magic-context/key-files/storage-key-files.d.ts +0 -20
  311. package/dist/features/magic-context/key-files/storage-key-files.d.ts.map +0 -1
  312. package/dist/hooks/magic-context/key-files-block.d.ts +0 -27
  313. package/dist/hooks/magic-context/key-files-block.d.ts.map +0 -1
  314. package/dist/shared/model-requirements.d.ts +0 -26
  315. package/dist/shared/model-requirements.d.ts.map +0 -1
  316. package/src/shared/model-requirements.ts +0 -86
@@ -1,19 +1,16 @@
1
1
  import { z } from "zod";
2
+ import { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
2
3
  export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
3
4
  export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at 80% for cache safety: a single large agent step can overflow the context window before Magic Context can compact between turns, forcing OpenCode's native compaction (hard to recover from). 80% also leaves headroom below the 85%/95% emergency bands. Use a value between 20 and 80.";
4
5
  export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 300000;
5
6
  export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
6
7
  export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
7
- export declare const DREAMER_TASKS: readonly ["consolidate", "verify", "archive-stale", "improve", "maintain-docs"];
8
+ export declare const DREAMER_TASKS: readonly ["curate", "maintain-docs"];
8
9
  export declare const DreamingTaskSchema: z.ZodEnum<{
9
- consolidate: "consolidate";
10
- verify: "verify";
11
- "archive-stale": "archive-stale";
12
- improve: "improve";
10
+ curate: "curate";
13
11
  "maintain-docs": "maintain-docs";
14
12
  }>;
15
- export type DreamingTask = z.infer<typeof DreamingTaskSchema>;
16
- export declare const DEFAULT_DREAMER_TASKS: DreamingTask[];
13
+ export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
17
14
  /** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
18
15
  * Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
19
16
  * Pi-only — OpenCode uses `variant` in agent config instead. */
@@ -26,7 +23,184 @@ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
26
23
  xhigh: "xhigh";
27
24
  }>>;
28
25
  export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
29
- /** Combined dreamer agent + scheduling configuration */
26
+ export declare const DreamTaskConfigSchema: z.ZodObject<{
27
+ schedule: z.ZodDefault<z.ZodString>;
28
+ model: z.ZodOptional<z.ZodString>;
29
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
30
+ thinking_level: z.ZodOptional<z.ZodEnum<{
31
+ off: "off";
32
+ minimal: "minimal";
33
+ low: "low";
34
+ medium: "medium";
35
+ high: "high";
36
+ xhigh: "xhigh";
37
+ }>>;
38
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
39
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
40
+ }, z.core.$strip>;
41
+ export type DreamTaskConfig = z.infer<typeof DreamTaskConfigSchema>;
42
+ /** The `tasks` record: one entry per canonical task, each defaulting to its
43
+ * v1-behavior-preserving schedule. Written explicitly (not via fromEntries) so
44
+ * the inferred type stays a precise per-key object. */
45
+ export declare const DreamTasksSchema: z.ZodObject<{
46
+ "map-memories": z.ZodDefault<z.ZodObject<{
47
+ schedule: z.ZodDefault<z.ZodString>;
48
+ model: z.ZodOptional<z.ZodString>;
49
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
50
+ thinking_level: z.ZodOptional<z.ZodEnum<{
51
+ off: "off";
52
+ minimal: "minimal";
53
+ low: "low";
54
+ medium: "medium";
55
+ high: "high";
56
+ xhigh: "xhigh";
57
+ }>>;
58
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
59
+ }, z.core.$strip>>;
60
+ verify: z.ZodDefault<z.ZodObject<{
61
+ schedule: z.ZodDefault<z.ZodString>;
62
+ model: z.ZodOptional<z.ZodString>;
63
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
64
+ thinking_level: z.ZodOptional<z.ZodEnum<{
65
+ off: "off";
66
+ minimal: "minimal";
67
+ low: "low";
68
+ medium: "medium";
69
+ high: "high";
70
+ xhigh: "xhigh";
71
+ }>>;
72
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
73
+ }, z.core.$strip>>;
74
+ "verify-broad": z.ZodDefault<z.ZodObject<{
75
+ schedule: z.ZodDefault<z.ZodString>;
76
+ model: z.ZodOptional<z.ZodString>;
77
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
78
+ thinking_level: z.ZodOptional<z.ZodEnum<{
79
+ off: "off";
80
+ minimal: "minimal";
81
+ low: "low";
82
+ medium: "medium";
83
+ high: "high";
84
+ xhigh: "xhigh";
85
+ }>>;
86
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
87
+ }, z.core.$strip>>;
88
+ curate: z.ZodDefault<z.ZodObject<{
89
+ schedule: z.ZodDefault<z.ZodString>;
90
+ model: z.ZodOptional<z.ZodString>;
91
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
92
+ thinking_level: z.ZodOptional<z.ZodEnum<{
93
+ off: "off";
94
+ minimal: "minimal";
95
+ low: "low";
96
+ medium: "medium";
97
+ high: "high";
98
+ xhigh: "xhigh";
99
+ }>>;
100
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
101
+ }, z.core.$strip>>;
102
+ "classify-memories": z.ZodDefault<z.ZodObject<{
103
+ schedule: z.ZodDefault<z.ZodString>;
104
+ model: z.ZodOptional<z.ZodString>;
105
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
106
+ thinking_level: z.ZodOptional<z.ZodEnum<{
107
+ off: "off";
108
+ minimal: "minimal";
109
+ low: "low";
110
+ medium: "medium";
111
+ high: "high";
112
+ xhigh: "xhigh";
113
+ }>>;
114
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
115
+ }, z.core.$strip>>;
116
+ retrospective: z.ZodDefault<z.ZodObject<{
117
+ schedule: z.ZodDefault<z.ZodString>;
118
+ model: z.ZodOptional<z.ZodString>;
119
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
120
+ thinking_level: z.ZodOptional<z.ZodEnum<{
121
+ off: "off";
122
+ minimal: "minimal";
123
+ low: "low";
124
+ medium: "medium";
125
+ high: "high";
126
+ xhigh: "xhigh";
127
+ }>>;
128
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
129
+ }, z.core.$strip>>;
130
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
131
+ schedule: z.ZodDefault<z.ZodString>;
132
+ model: z.ZodOptional<z.ZodString>;
133
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
134
+ thinking_level: z.ZodOptional<z.ZodEnum<{
135
+ off: "off";
136
+ minimal: "minimal";
137
+ low: "low";
138
+ medium: "medium";
139
+ high: "high";
140
+ xhigh: "xhigh";
141
+ }>>;
142
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
143
+ }, z.core.$strip>>;
144
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
145
+ schedule: z.ZodDefault<z.ZodString>;
146
+ model: z.ZodOptional<z.ZodString>;
147
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
148
+ thinking_level: z.ZodOptional<z.ZodEnum<{
149
+ off: "off";
150
+ minimal: "minimal";
151
+ low: "low";
152
+ medium: "medium";
153
+ high: "high";
154
+ xhigh: "xhigh";
155
+ }>>;
156
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
157
+ }, z.core.$strip>>;
158
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
159
+ schedule: z.ZodDefault<z.ZodString>;
160
+ model: z.ZodOptional<z.ZodString>;
161
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
162
+ thinking_level: z.ZodOptional<z.ZodEnum<{
163
+ off: "off";
164
+ minimal: "minimal";
165
+ low: "low";
166
+ medium: "medium";
167
+ high: "high";
168
+ xhigh: "xhigh";
169
+ }>>;
170
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
171
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>>;
173
+ "promote-primers": z.ZodDefault<z.ZodObject<{
174
+ schedule: z.ZodDefault<z.ZodString>;
175
+ model: z.ZodOptional<z.ZodString>;
176
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
177
+ thinking_level: z.ZodOptional<z.ZodEnum<{
178
+ off: "off";
179
+ minimal: "minimal";
180
+ low: "low";
181
+ medium: "medium";
182
+ high: "high";
183
+ xhigh: "xhigh";
184
+ }>>;
185
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
186
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
187
+ }, z.core.$strip>>;
188
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
189
+ schedule: z.ZodDefault<z.ZodString>;
190
+ model: z.ZodOptional<z.ZodString>;
191
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
192
+ thinking_level: z.ZodOptional<z.ZodEnum<{
193
+ off: "off";
194
+ minimal: "minimal";
195
+ low: "low";
196
+ medium: "medium";
197
+ high: "high";
198
+ xhigh: "xhigh";
199
+ }>>;
200
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>;
203
+ /** Combined dreamer agent + per-task scheduling configuration (Dreamer v2). */
30
204
  export declare const DreamerConfigSchema: z.ZodObject<{
31
205
  model: z.ZodOptional<z.ZodString>;
32
206
  temperature: z.ZodOptional<z.ZodNumber>;
@@ -76,26 +250,165 @@ export declare const DreamerConfigSchema: z.ZodObject<{
76
250
  maxTokens: z.ZodOptional<z.ZodNumber>;
77
251
  variant: z.ZodOptional<z.ZodString>;
78
252
  fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
79
- schedule: z.ZodDefault<z.ZodString>;
80
- max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
81
- tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
82
- consolidate: "consolidate";
83
- verify: "verify";
84
- "archive-stale": "archive-stale";
85
- improve: "improve";
86
- "maintain-docs": "maintain-docs";
87
- }>>>;
88
- task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
89
- inject_docs: z.ZodDefault<z.ZodBoolean>;
90
- user_memories: z.ZodDefault<z.ZodObject<{
91
- enabled: z.ZodDefault<z.ZodBoolean>;
92
- promotion_threshold: z.ZodDefault<z.ZodNumber>;
93
- }, z.core.$strip>>;
94
- pin_key_files: z.ZodDefault<z.ZodObject<{
95
- enabled: z.ZodDefault<z.ZodBoolean>;
96
- token_budget: z.ZodDefault<z.ZodNumber>;
97
- min_reads: z.ZodDefault<z.ZodNumber>;
253
+ tasks: z.ZodDefault<z.ZodObject<{
254
+ "map-memories": z.ZodDefault<z.ZodObject<{
255
+ schedule: z.ZodDefault<z.ZodString>;
256
+ model: z.ZodOptional<z.ZodString>;
257
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
258
+ thinking_level: z.ZodOptional<z.ZodEnum<{
259
+ off: "off";
260
+ minimal: "minimal";
261
+ low: "low";
262
+ medium: "medium";
263
+ high: "high";
264
+ xhigh: "xhigh";
265
+ }>>;
266
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
267
+ }, z.core.$strip>>;
268
+ verify: z.ZodDefault<z.ZodObject<{
269
+ schedule: z.ZodDefault<z.ZodString>;
270
+ model: z.ZodOptional<z.ZodString>;
271
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
272
+ thinking_level: z.ZodOptional<z.ZodEnum<{
273
+ off: "off";
274
+ minimal: "minimal";
275
+ low: "low";
276
+ medium: "medium";
277
+ high: "high";
278
+ xhigh: "xhigh";
279
+ }>>;
280
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
281
+ }, z.core.$strip>>;
282
+ "verify-broad": z.ZodDefault<z.ZodObject<{
283
+ schedule: z.ZodDefault<z.ZodString>;
284
+ model: z.ZodOptional<z.ZodString>;
285
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
286
+ thinking_level: z.ZodOptional<z.ZodEnum<{
287
+ off: "off";
288
+ minimal: "minimal";
289
+ low: "low";
290
+ medium: "medium";
291
+ high: "high";
292
+ xhigh: "xhigh";
293
+ }>>;
294
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
295
+ }, z.core.$strip>>;
296
+ curate: z.ZodDefault<z.ZodObject<{
297
+ schedule: z.ZodDefault<z.ZodString>;
298
+ model: z.ZodOptional<z.ZodString>;
299
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
300
+ thinking_level: z.ZodOptional<z.ZodEnum<{
301
+ off: "off";
302
+ minimal: "minimal";
303
+ low: "low";
304
+ medium: "medium";
305
+ high: "high";
306
+ xhigh: "xhigh";
307
+ }>>;
308
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
309
+ }, z.core.$strip>>;
310
+ "classify-memories": z.ZodDefault<z.ZodObject<{
311
+ schedule: z.ZodDefault<z.ZodString>;
312
+ model: z.ZodOptional<z.ZodString>;
313
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
314
+ thinking_level: z.ZodOptional<z.ZodEnum<{
315
+ off: "off";
316
+ minimal: "minimal";
317
+ low: "low";
318
+ medium: "medium";
319
+ high: "high";
320
+ xhigh: "xhigh";
321
+ }>>;
322
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
323
+ }, z.core.$strip>>;
324
+ retrospective: z.ZodDefault<z.ZodObject<{
325
+ schedule: z.ZodDefault<z.ZodString>;
326
+ model: z.ZodOptional<z.ZodString>;
327
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
328
+ thinking_level: z.ZodOptional<z.ZodEnum<{
329
+ off: "off";
330
+ minimal: "minimal";
331
+ low: "low";
332
+ medium: "medium";
333
+ high: "high";
334
+ xhigh: "xhigh";
335
+ }>>;
336
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
337
+ }, z.core.$strip>>;
338
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
339
+ schedule: z.ZodDefault<z.ZodString>;
340
+ model: z.ZodOptional<z.ZodString>;
341
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
342
+ thinking_level: z.ZodOptional<z.ZodEnum<{
343
+ off: "off";
344
+ minimal: "minimal";
345
+ low: "low";
346
+ medium: "medium";
347
+ high: "high";
348
+ xhigh: "xhigh";
349
+ }>>;
350
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
351
+ }, z.core.$strip>>;
352
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
353
+ schedule: z.ZodDefault<z.ZodString>;
354
+ model: z.ZodOptional<z.ZodString>;
355
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
356
+ thinking_level: z.ZodOptional<z.ZodEnum<{
357
+ off: "off";
358
+ minimal: "minimal";
359
+ low: "low";
360
+ medium: "medium";
361
+ high: "high";
362
+ xhigh: "xhigh";
363
+ }>>;
364
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
365
+ }, z.core.$strip>>;
366
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
367
+ schedule: z.ZodDefault<z.ZodString>;
368
+ model: z.ZodOptional<z.ZodString>;
369
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
370
+ thinking_level: z.ZodOptional<z.ZodEnum<{
371
+ off: "off";
372
+ minimal: "minimal";
373
+ low: "low";
374
+ medium: "medium";
375
+ high: "high";
376
+ xhigh: "xhigh";
377
+ }>>;
378
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
379
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
380
+ }, z.core.$strip>>;
381
+ "promote-primers": z.ZodDefault<z.ZodObject<{
382
+ schedule: z.ZodDefault<z.ZodString>;
383
+ model: z.ZodOptional<z.ZodString>;
384
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
385
+ thinking_level: z.ZodOptional<z.ZodEnum<{
386
+ off: "off";
387
+ minimal: "minimal";
388
+ low: "low";
389
+ medium: "medium";
390
+ high: "high";
391
+ xhigh: "xhigh";
392
+ }>>;
393
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
394
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
395
+ }, z.core.$strip>>;
396
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
397
+ schedule: z.ZodDefault<z.ZodString>;
398
+ model: z.ZodOptional<z.ZodString>;
399
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
400
+ thinking_level: z.ZodOptional<z.ZodEnum<{
401
+ off: "off";
402
+ minimal: "minimal";
403
+ low: "low";
404
+ medium: "medium";
405
+ high: "high";
406
+ xhigh: "xhigh";
407
+ }>>;
408
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
409
+ }, z.core.$strip>>;
98
410
  }, z.core.$strip>>;
411
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
99
412
  thinking_level: z.ZodOptional<z.ZodEnum<{
100
413
  off: "off";
101
414
  minimal: "minimal";
@@ -230,6 +543,13 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
230
543
  high: "high";
231
544
  xhigh: "xhigh";
232
545
  }>>;
546
+ disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
547
+ "*": "*";
548
+ read: "read";
549
+ aft_outline: "aft_outline";
550
+ aft_zoom: "aft_zoom";
551
+ aft_search: "aft_search";
552
+ }>>>;
233
553
  }, z.core.$strip>>;
234
554
  export type HistorianConfig = NonNullable<z.infer<typeof HistorianConfigSchema>>;
235
555
  export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
@@ -242,6 +562,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
242
562
  endpoint: z.ZodOptional<z.ZodString>;
243
563
  api_key: z.ZodOptional<z.ZodString>;
244
564
  input_type: z.ZodOptional<z.ZodString>;
565
+ query_input_type: z.ZodOptional<z.ZodString>;
245
566
  truncate: z.ZodOptional<z.ZodString>;
246
567
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
247
568
  }, z.core.$strip>, z.ZodTransform<{
@@ -251,6 +572,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
251
572
  } | {
252
573
  max_input_tokens?: number | undefined;
253
574
  truncate?: string | undefined;
575
+ query_input_type?: string | undefined;
254
576
  input_type?: string | undefined;
255
577
  api_key?: string | undefined;
256
578
  provider: "openai-compatible";
@@ -264,6 +586,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
264
586
  endpoint?: string | undefined;
265
587
  api_key?: string | undefined;
266
588
  input_type?: string | undefined;
589
+ query_input_type?: string | undefined;
267
590
  truncate?: string | undefined;
268
591
  max_input_tokens?: number | undefined;
269
592
  }>>;
@@ -283,6 +606,8 @@ export interface MagicContextConfig {
283
606
  default: string;
284
607
  [modelKey: string]: string;
285
608
  };
609
+ /** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
610
+ toast_duration_ms?: number;
286
611
  execute_threshold_percentage: number | {
287
612
  default: number;
288
613
  [modelKey: string]: number;
@@ -310,7 +635,7 @@ export interface MagicContextConfig {
310
635
  /**
311
636
  * Controls whether and where Magic Context augments the system prompt
312
637
  * (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
313
- * `<key-files>`, sticky date) inside `experimental.chat.system.transform`.
638
+ * sticky date) inside `experimental.chat.system.transform`.
314
639
  *
315
640
  * Internal OpenCode hidden agents (title, summary, compaction) are
316
641
  * always skipped automatically — that's a separate code path.
@@ -453,6 +778,13 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
453
778
  high: "high";
454
779
  xhigh: "xhigh";
455
780
  }>>;
781
+ disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
782
+ "*": "*";
783
+ read: "read";
784
+ aft_outline: "aft_outline";
785
+ aft_zoom: "aft_zoom";
786
+ aft_search: "aft_search";
787
+ }>>>;
456
788
  }, z.core.$strip>>;
457
789
  dreamer: z.ZodOptional<z.ZodObject<{
458
790
  model: z.ZodOptional<z.ZodString>;
@@ -503,26 +835,165 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
503
835
  maxTokens: z.ZodOptional<z.ZodNumber>;
504
836
  variant: z.ZodOptional<z.ZodString>;
505
837
  fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
506
- schedule: z.ZodDefault<z.ZodString>;
507
- max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
508
- tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
509
- consolidate: "consolidate";
510
- verify: "verify";
511
- "archive-stale": "archive-stale";
512
- improve: "improve";
513
- "maintain-docs": "maintain-docs";
514
- }>>>;
515
- task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
516
- inject_docs: z.ZodDefault<z.ZodBoolean>;
517
- user_memories: z.ZodDefault<z.ZodObject<{
518
- enabled: z.ZodDefault<z.ZodBoolean>;
519
- promotion_threshold: z.ZodDefault<z.ZodNumber>;
520
- }, z.core.$strip>>;
521
- pin_key_files: z.ZodDefault<z.ZodObject<{
522
- enabled: z.ZodDefault<z.ZodBoolean>;
523
- token_budget: z.ZodDefault<z.ZodNumber>;
524
- min_reads: z.ZodDefault<z.ZodNumber>;
838
+ tasks: z.ZodDefault<z.ZodObject<{
839
+ "map-memories": z.ZodDefault<z.ZodObject<{
840
+ schedule: z.ZodDefault<z.ZodString>;
841
+ model: z.ZodOptional<z.ZodString>;
842
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
843
+ thinking_level: z.ZodOptional<z.ZodEnum<{
844
+ off: "off";
845
+ minimal: "minimal";
846
+ low: "low";
847
+ medium: "medium";
848
+ high: "high";
849
+ xhigh: "xhigh";
850
+ }>>;
851
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
852
+ }, z.core.$strip>>;
853
+ verify: z.ZodDefault<z.ZodObject<{
854
+ schedule: z.ZodDefault<z.ZodString>;
855
+ model: z.ZodOptional<z.ZodString>;
856
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
857
+ thinking_level: z.ZodOptional<z.ZodEnum<{
858
+ off: "off";
859
+ minimal: "minimal";
860
+ low: "low";
861
+ medium: "medium";
862
+ high: "high";
863
+ xhigh: "xhigh";
864
+ }>>;
865
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
866
+ }, z.core.$strip>>;
867
+ "verify-broad": z.ZodDefault<z.ZodObject<{
868
+ schedule: z.ZodDefault<z.ZodString>;
869
+ model: z.ZodOptional<z.ZodString>;
870
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
871
+ thinking_level: z.ZodOptional<z.ZodEnum<{
872
+ off: "off";
873
+ minimal: "minimal";
874
+ low: "low";
875
+ medium: "medium";
876
+ high: "high";
877
+ xhigh: "xhigh";
878
+ }>>;
879
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
880
+ }, z.core.$strip>>;
881
+ curate: z.ZodDefault<z.ZodObject<{
882
+ schedule: z.ZodDefault<z.ZodString>;
883
+ model: z.ZodOptional<z.ZodString>;
884
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
885
+ thinking_level: z.ZodOptional<z.ZodEnum<{
886
+ off: "off";
887
+ minimal: "minimal";
888
+ low: "low";
889
+ medium: "medium";
890
+ high: "high";
891
+ xhigh: "xhigh";
892
+ }>>;
893
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
894
+ }, z.core.$strip>>;
895
+ "classify-memories": z.ZodDefault<z.ZodObject<{
896
+ schedule: z.ZodDefault<z.ZodString>;
897
+ model: z.ZodOptional<z.ZodString>;
898
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
899
+ thinking_level: z.ZodOptional<z.ZodEnum<{
900
+ off: "off";
901
+ minimal: "minimal";
902
+ low: "low";
903
+ medium: "medium";
904
+ high: "high";
905
+ xhigh: "xhigh";
906
+ }>>;
907
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
908
+ }, z.core.$strip>>;
909
+ retrospective: z.ZodDefault<z.ZodObject<{
910
+ schedule: z.ZodDefault<z.ZodString>;
911
+ model: z.ZodOptional<z.ZodString>;
912
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
913
+ thinking_level: z.ZodOptional<z.ZodEnum<{
914
+ off: "off";
915
+ minimal: "minimal";
916
+ low: "low";
917
+ medium: "medium";
918
+ high: "high";
919
+ xhigh: "xhigh";
920
+ }>>;
921
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
922
+ }, z.core.$strip>>;
923
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
924
+ schedule: z.ZodDefault<z.ZodString>;
925
+ model: z.ZodOptional<z.ZodString>;
926
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
927
+ thinking_level: z.ZodOptional<z.ZodEnum<{
928
+ off: "off";
929
+ minimal: "minimal";
930
+ low: "low";
931
+ medium: "medium";
932
+ high: "high";
933
+ xhigh: "xhigh";
934
+ }>>;
935
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
936
+ }, z.core.$strip>>;
937
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
938
+ schedule: z.ZodDefault<z.ZodString>;
939
+ model: z.ZodOptional<z.ZodString>;
940
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
941
+ thinking_level: z.ZodOptional<z.ZodEnum<{
942
+ off: "off";
943
+ minimal: "minimal";
944
+ low: "low";
945
+ medium: "medium";
946
+ high: "high";
947
+ xhigh: "xhigh";
948
+ }>>;
949
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
950
+ }, z.core.$strip>>;
951
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
952
+ schedule: z.ZodDefault<z.ZodString>;
953
+ model: z.ZodOptional<z.ZodString>;
954
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
955
+ thinking_level: z.ZodOptional<z.ZodEnum<{
956
+ off: "off";
957
+ minimal: "minimal";
958
+ low: "low";
959
+ medium: "medium";
960
+ high: "high";
961
+ xhigh: "xhigh";
962
+ }>>;
963
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
964
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
965
+ }, z.core.$strip>>;
966
+ "promote-primers": z.ZodDefault<z.ZodObject<{
967
+ schedule: z.ZodDefault<z.ZodString>;
968
+ model: z.ZodOptional<z.ZodString>;
969
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
970
+ thinking_level: z.ZodOptional<z.ZodEnum<{
971
+ off: "off";
972
+ minimal: "minimal";
973
+ low: "low";
974
+ medium: "medium";
975
+ high: "high";
976
+ xhigh: "xhigh";
977
+ }>>;
978
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
979
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
980
+ }, z.core.$strip>>;
981
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
982
+ schedule: z.ZodDefault<z.ZodString>;
983
+ model: z.ZodOptional<z.ZodString>;
984
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
985
+ thinking_level: z.ZodOptional<z.ZodEnum<{
986
+ off: "off";
987
+ minimal: "minimal";
988
+ low: "low";
989
+ medium: "medium";
990
+ high: "high";
991
+ xhigh: "xhigh";
992
+ }>>;
993
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
994
+ }, z.core.$strip>>;
525
995
  }, z.core.$strip>>;
996
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
526
997
  thinking_level: z.ZodOptional<z.ZodEnum<{
527
998
  off: "off";
528
999
  minimal: "minimal";
@@ -535,6 +1006,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
535
1006
  cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
536
1007
  default: z.ZodString;
537
1008
  }, z.core.$catchall<z.ZodString>>]>>;
1009
+ toast_duration_ms: z.ZodDefault<z.ZodNumber>;
538
1010
  execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
539
1011
  default: z.ZodNumber;
540
1012
  }, z.core.$catchall<z.ZodNumber>>]>>;
@@ -567,6 +1039,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
567
1039
  endpoint: z.ZodOptional<z.ZodString>;
568
1040
  api_key: z.ZodOptional<z.ZodString>;
569
1041
  input_type: z.ZodOptional<z.ZodString>;
1042
+ query_input_type: z.ZodOptional<z.ZodString>;
570
1043
  truncate: z.ZodOptional<z.ZodString>;
571
1044
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
572
1045
  }, z.core.$strip>, z.ZodTransform<{
@@ -576,6 +1049,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
576
1049
  } | {
577
1050
  max_input_tokens?: number | undefined;
578
1051
  truncate?: string | undefined;
1052
+ query_input_type?: string | undefined;
579
1053
  input_type?: string | undefined;
580
1054
  api_key?: string | undefined;
581
1055
  provider: "openai-compatible";
@@ -589,6 +1063,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
589
1063
  endpoint?: string | undefined;
590
1064
  api_key?: string | undefined;
591
1065
  input_type?: string | undefined;
1066
+ query_input_type?: string | undefined;
592
1067
  truncate?: string | undefined;
593
1068
  max_input_tokens?: number | undefined;
594
1069
  }>>>;
@@ -681,6 +1156,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
681
1156
  [x: string]: string;
682
1157
  default: string;
683
1158
  };
1159
+ toast_duration_ms: number;
684
1160
  execute_threshold_percentage: number | {
685
1161
  [x: string]: number;
686
1162
  default: number;
@@ -707,6 +1183,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
707
1183
  } | {
708
1184
  max_input_tokens?: number | undefined;
709
1185
  truncate?: string | undefined;
1186
+ query_input_type?: string | undefined;
710
1187
  input_type?: string | undefined;
711
1188
  api_key?: string | undefined;
712
1189
  provider: "openai-compatible";
@@ -740,6 +1217,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
740
1217
  auto_update?: boolean | undefined;
741
1218
  historian?: {
742
1219
  two_pass: boolean;
1220
+ disallowed_tools: ("*" | "read" | "aft_outline" | "aft_zoom" | "aft_search")[];
743
1221
  model?: string | undefined;
744
1222
  temperature?: number | undefined;
745
1223
  top_p?: number | undefined;
@@ -763,20 +1241,88 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
763
1241
  thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
764
1242
  } | undefined;
765
1243
  dreamer?: {
766
- schedule: string;
767
- max_runtime_minutes: number;
768
- tasks: ("consolidate" | "verify" | "archive-stale" | "improve" | "maintain-docs")[];
769
- task_timeout_minutes: number;
770
- inject_docs: boolean;
771
- user_memories: {
772
- enabled: boolean;
773
- promotion_threshold: number;
774
- };
775
- pin_key_files: {
776
- enabled: boolean;
777
- token_budget: number;
778
- min_reads: number;
1244
+ tasks: {
1245
+ "map-memories": {
1246
+ schedule: string;
1247
+ timeout_minutes: number;
1248
+ model?: string | undefined;
1249
+ fallback_models?: string | string[] | undefined;
1250
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1251
+ };
1252
+ verify: {
1253
+ schedule: string;
1254
+ timeout_minutes: number;
1255
+ model?: string | undefined;
1256
+ fallback_models?: string | string[] | undefined;
1257
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1258
+ };
1259
+ "verify-broad": {
1260
+ schedule: string;
1261
+ timeout_minutes: number;
1262
+ model?: string | undefined;
1263
+ fallback_models?: string | string[] | undefined;
1264
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1265
+ };
1266
+ curate: {
1267
+ schedule: string;
1268
+ timeout_minutes: number;
1269
+ model?: string | undefined;
1270
+ fallback_models?: string | string[] | undefined;
1271
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1272
+ };
1273
+ "classify-memories": {
1274
+ schedule: string;
1275
+ timeout_minutes: number;
1276
+ model?: string | undefined;
1277
+ fallback_models?: string | string[] | undefined;
1278
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1279
+ };
1280
+ retrospective: {
1281
+ schedule: string;
1282
+ timeout_minutes: number;
1283
+ model?: string | undefined;
1284
+ fallback_models?: string | string[] | undefined;
1285
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1286
+ };
1287
+ "maintain-docs": {
1288
+ schedule: string;
1289
+ timeout_minutes: number;
1290
+ model?: string | undefined;
1291
+ fallback_models?: string | string[] | undefined;
1292
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1293
+ };
1294
+ "evaluate-smart-notes": {
1295
+ schedule: string;
1296
+ timeout_minutes: number;
1297
+ model?: string | undefined;
1298
+ fallback_models?: string | string[] | undefined;
1299
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1300
+ };
1301
+ "review-user-memories": {
1302
+ schedule: string;
1303
+ timeout_minutes: number;
1304
+ model?: string | undefined;
1305
+ fallback_models?: string | string[] | undefined;
1306
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1307
+ promotion_threshold?: number | undefined;
1308
+ };
1309
+ "promote-primers": {
1310
+ schedule: string;
1311
+ timeout_minutes: number;
1312
+ model?: string | undefined;
1313
+ fallback_models?: string | string[] | undefined;
1314
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1315
+ promotion_threshold?: number | undefined;
1316
+ };
1317
+ "refresh-primers": {
1318
+ schedule: string;
1319
+ timeout_minutes: number;
1320
+ model?: string | undefined;
1321
+ fallback_models?: string | string[] | undefined;
1322
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1323
+ };
779
1324
  };
1325
+ inject_docs: boolean;
780
1326
  model?: string | undefined;
781
1327
  temperature?: number | undefined;
782
1328
  top_p?: number | undefined;