@wolfx/opencode-magic-context 0.26.0 → 0.27.2

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 (287) hide show
  1. package/dist/agents/dreamer.d.ts +19 -0
  2. package/dist/agents/dreamer.d.ts.map +1 -1
  3. package/dist/agents/hidden-agent-registrations.d.ts +67 -0
  4. package/dist/agents/hidden-agent-registrations.d.ts.map +1 -0
  5. package/dist/agents/historian.d.ts +1 -0
  6. package/dist/agents/historian.d.ts.map +1 -1
  7. package/dist/agents/permissions.d.ts +15 -44
  8. package/dist/agents/permissions.d.ts.map +1 -1
  9. package/dist/agents/smart-note-compiler.d.ts +2 -0
  10. package/dist/agents/smart-note-compiler.d.ts.map +1 -0
  11. package/dist/config/index.d.ts +1 -1
  12. package/dist/config/index.d.ts.map +1 -1
  13. package/dist/config/migrate-config-location.d.ts +97 -0
  14. package/dist/config/migrate-config-location.d.ts.map +1 -0
  15. package/dist/config/migrate-dreamer-v2.d.ts +37 -0
  16. package/dist/config/migrate-dreamer-v2.d.ts.map +1 -0
  17. package/dist/config/migrate-experimental.d.ts.map +1 -1
  18. package/dist/config/project-security.d.ts +3 -0
  19. package/dist/config/project-security.d.ts.map +1 -1
  20. package/dist/config/prune-config-leaf.d.ts.map +1 -1
  21. package/dist/config/schema/magic-context.d.ts +586 -77
  22. package/dist/config/schema/magic-context.d.ts.map +1 -1
  23. package/dist/features/magic-context/compaction-marker.d.ts +9 -3
  24. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
  25. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +1 -1
  26. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  27. package/dist/features/magic-context/dreamer/classify-prompt.d.ts +50 -0
  28. package/dist/features/magic-context/dreamer/classify-prompt.d.ts.map +1 -0
  29. package/dist/features/magic-context/dreamer/classify.d.ts +22 -0
  30. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -0
  31. package/dist/features/magic-context/dreamer/cron.d.ts +72 -0
  32. package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -0
  33. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +30 -0
  34. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -0
  35. package/dist/features/magic-context/dreamer/index.d.ts +1 -3
  36. package/dist/features/magic-context/dreamer/index.d.ts.map +1 -1
  37. package/dist/features/magic-context/dreamer/lease.d.ts +44 -6
  38. package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
  39. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts +13 -0
  40. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts.map +1 -0
  41. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +36 -0
  42. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -0
  43. package/dist/features/magic-context/dreamer/map-memories.d.ts +22 -0
  44. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -0
  45. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts +7 -0
  46. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -0
  47. package/dist/features/magic-context/dreamer/primer-seed.d.ts +25 -0
  48. package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -0
  49. package/dist/features/magic-context/dreamer/promote-primers.d.ts +21 -0
  50. package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -0
  51. package/dist/features/magic-context/dreamer/protected-regions.d.ts +19 -0
  52. package/dist/features/magic-context/dreamer/protected-regions.d.ts.map +1 -0
  53. package/dist/features/magic-context/dreamer/refresh-primers.d.ts +30 -0
  54. package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -0
  55. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts +47 -0
  56. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts.map +1 -0
  57. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +48 -0
  58. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -0
  59. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +81 -0
  60. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -0
  61. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +8 -0
  62. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
  63. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +82 -0
  64. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -0
  65. package/dist/features/magic-context/dreamer/task-config.d.ts +28 -0
  66. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -0
  67. package/dist/features/magic-context/dreamer/task-executor.d.ts +49 -0
  68. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -0
  69. package/dist/features/magic-context/dreamer/task-gates.d.ts +29 -0
  70. package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -0
  71. package/dist/features/magic-context/dreamer/task-prompts.d.ts +37 -6
  72. package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
  73. package/dist/features/magic-context/dreamer/task-registry.d.ts +48 -0
  74. package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -0
  75. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +88 -0
  76. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -0
  77. package/dist/features/magic-context/dreamer/verify-gate.d.ts +43 -0
  78. package/dist/features/magic-context/dreamer/verify-gate.d.ts.map +1 -0
  79. package/dist/features/magic-context/dreamer/verify-prompt.d.ts +41 -0
  80. package/dist/features/magic-context/dreamer/verify-prompt.d.ts.map +1 -0
  81. package/dist/features/magic-context/dreamer/verify.d.ts +43 -0
  82. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -0
  83. package/dist/features/magic-context/git-commits/search-git-commits.d.ts +2 -0
  84. package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -1
  85. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +4 -4
  86. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
  87. package/dist/features/magic-context/index.d.ts +1 -0
  88. package/dist/features/magic-context/index.d.ts.map +1 -1
  89. package/dist/features/magic-context/memory/embedding-cache.d.ts +2 -2
  90. package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -1
  91. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  92. package/dist/features/magic-context/memory/embedding-openai.d.ts +12 -5
  93. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  94. package/dist/features/magic-context/memory/embedding.d.ts +2 -2
  95. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  96. package/dist/features/magic-context/memory/index.d.ts +4 -1
  97. package/dist/features/magic-context/memory/index.d.ts.map +1 -1
  98. package/dist/features/magic-context/memory/memory-migration.d.ts +1 -0
  99. package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
  100. package/dist/features/magic-context/memory/promotion.d.ts +16 -4
  101. package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
  102. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +2 -2
  103. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
  104. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts +31 -0
  105. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts.map +1 -0
  106. package/dist/features/magic-context/memory/storage-memory.d.ts +12 -1
  107. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
  108. package/dist/features/magic-context/memory/types.d.ts +4 -0
  109. package/dist/features/magic-context/memory/types.d.ts.map +1 -1
  110. package/dist/features/magic-context/memory/verification-paths.d.ts +32 -0
  111. package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -0
  112. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  113. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  114. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
  115. package/dist/features/magic-context/primer-clustering.d.ts +29 -0
  116. package/dist/features/magic-context/primer-clustering.d.ts.map +1 -0
  117. package/dist/features/magic-context/project-embedding-registry.d.ts +25 -1
  118. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  119. package/dist/features/magic-context/search.d.ts +12 -2
  120. package/dist/features/magic-context/search.d.ts.map +1 -1
  121. package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
  122. package/dist/features/magic-context/smart-notes/capabilities.d.ts +31 -0
  123. package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -0
  124. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts +2 -0
  125. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts.map +1 -0
  126. package/dist/features/magic-context/smart-notes/compiler.d.ts +52 -0
  127. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -0
  128. package/dist/features/magic-context/smart-notes/index.d.ts +10 -0
  129. package/dist/features/magic-context/smart-notes/index.d.ts.map +1 -0
  130. package/dist/features/magic-context/smart-notes/runner.d.ts +18 -0
  131. package/dist/features/magic-context/smart-notes/runner.d.ts.map +1 -0
  132. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +22 -0
  133. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -0
  134. package/dist/features/magic-context/smart-notes/schedule.d.ts +9 -0
  135. package/dist/features/magic-context/smart-notes/schedule.d.ts.map +1 -0
  136. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts +49 -0
  137. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts.map +1 -0
  138. package/dist/features/magic-context/smart-notes/storage.d.ts +27 -0
  139. package/dist/features/magic-context/smart-notes/storage.d.ts.map +1 -0
  140. package/dist/features/magic-context/smart-notes/types.d.ts +63 -0
  141. package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -0
  142. package/dist/features/magic-context/storage-db.d.ts +5 -1
  143. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  144. package/dist/features/magic-context/storage-meta-persisted.d.ts +8 -4
  145. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  146. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  147. package/dist/features/magic-context/storage-meta-shared.d.ts +3 -1
  148. package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
  149. package/dist/features/magic-context/storage-notes.d.ts +15 -0
  150. package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
  151. package/dist/features/magic-context/storage-primers.d.ts +85 -0
  152. package/dist/features/magic-context/storage-primers.d.ts.map +1 -0
  153. package/dist/features/magic-context/storage-tags.d.ts +20 -0
  154. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  155. package/dist/features/magic-context/storage.d.ts +2 -1
  156. package/dist/features/magic-context/storage.d.ts.map +1 -1
  157. package/dist/features/magic-context/tagger.d.ts +6 -0
  158. package/dist/features/magic-context/tagger.d.ts.map +1 -1
  159. package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
  160. package/dist/features/magic-context/transform-decision-log.d.ts +10 -0
  161. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  162. package/dist/features/magic-context/types.d.ts +2 -0
  163. package/dist/features/magic-context/types.d.ts.map +1 -1
  164. package/dist/features/magic-context/user-memory/review-user-memories.d.ts +5 -0
  165. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  166. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +18 -0
  167. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
  168. package/dist/features/magic-context/v22-deferred-backfill.d.ts.map +1 -1
  169. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  170. package/dist/hooks/magic-context/command-handler.d.ts +8 -15
  171. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  172. package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
  173. package/dist/hooks/magic-context/compartment-parser.d.ts +9 -0
  174. package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
  175. package/dist/hooks/magic-context/compartment-prompt.d.ts +4 -1
  176. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
  177. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
  178. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  179. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  180. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
  181. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  182. package/dist/hooks/magic-context/compartment-runner-types.d.ts +8 -0
  183. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  184. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  185. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  186. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
  187. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  188. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
  189. package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
  190. package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
  191. package/dist/hooks/magic-context/historian-state-file.d.ts.map +1 -1
  192. package/dist/hooks/magic-context/hook-handlers.d.ts +2 -1
  193. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  194. package/dist/hooks/magic-context/hook.d.ts +1 -0
  195. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  196. package/dist/hooks/magic-context/inject-compartments.d.ts +0 -3
  197. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  198. package/dist/hooks/magic-context/send-session-notification.d.ts +2 -0
  199. package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
  200. package/dist/hooks/magic-context/system-prompt-hash.d.ts +17 -0
  201. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  202. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +8 -5
  203. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  204. package/dist/hooks/magic-context/transform.d.ts +0 -2
  205. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  206. package/dist/index.d.ts +2 -2
  207. package/dist/index.d.ts.map +1 -1
  208. package/dist/index.js +18059 -13232
  209. package/dist/plugin/dream-timer.d.ts +17 -9
  210. package/dist/plugin/dream-timer.d.ts.map +1 -1
  211. package/dist/plugin/embedding-bootstrap-helpers.d.ts +1 -1
  212. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
  213. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  214. package/dist/plugin/hooks/create-session-hooks.d.ts +211 -0
  215. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  216. package/dist/plugin/instance-disposal.d.ts +2 -0
  217. package/dist/plugin/instance-disposal.d.ts.map +1 -0
  218. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  219. package/dist/shared/announcement.d.ts +1 -1
  220. package/dist/shared/announcement.d.ts.map +1 -1
  221. package/dist/shared/data-path.d.ts +30 -9
  222. package/dist/shared/data-path.d.ts.map +1 -1
  223. package/dist/shared/model-suggestion-retry.d.ts +48 -2
  224. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  225. package/dist/shared/models-dev-cache.d.ts +23 -0
  226. package/dist/shared/models-dev-cache.d.ts.map +1 -1
  227. package/dist/shared/redaction.d.ts +7 -0
  228. package/dist/shared/redaction.d.ts.map +1 -0
  229. package/dist/shared/resolve-fallbacks.d.ts +12 -0
  230. package/dist/shared/resolve-fallbacks.d.ts.map +1 -1
  231. package/dist/shared/rpc-server.d.ts.map +1 -1
  232. package/dist/shared/rpc-types.d.ts +2 -0
  233. package/dist/shared/rpc-types.d.ts.map +1 -1
  234. package/dist/shared/subagent-runner.d.ts +12 -3
  235. package/dist/shared/subagent-runner.d.ts.map +1 -1
  236. package/dist/shared/tui-config.d.ts.map +1 -1
  237. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  238. package/dist/tools/ctx-memory/types.d.ts.map +1 -1
  239. package/dist/tools/ctx-memory/verification-recording.d.ts +8 -0
  240. package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -0
  241. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  242. package/dist/tools/ctx-search/types.d.ts +1 -1
  243. package/dist/tools/ctx-search/types.d.ts.map +1 -1
  244. package/dist/tui/data/context-db.d.ts +2 -0
  245. package/dist/tui/data/context-db.d.ts.map +1 -1
  246. package/package.json +7 -3
  247. package/src/shared/announcement.test.ts +20 -0
  248. package/src/shared/announcement.ts +32 -7
  249. package/src/shared/data-path.test.ts +74 -9
  250. package/src/shared/data-path.ts +54 -10
  251. package/src/shared/model-suggestion-retry.test.ts +79 -2
  252. package/src/shared/model-suggestion-retry.ts +181 -3
  253. package/src/shared/models-dev-cache.test.ts +82 -0
  254. package/src/shared/models-dev-cache.ts +35 -0
  255. package/src/shared/redaction.test.ts +84 -0
  256. package/src/shared/redaction.ts +264 -0
  257. package/src/shared/resolve-fallbacks.ts +14 -0
  258. package/src/shared/rpc-server.ts +24 -0
  259. package/src/shared/rpc-types.ts +2 -0
  260. package/src/shared/subagent-runner.ts +12 -3
  261. package/src/shared/tui-config.test.ts +106 -0
  262. package/src/shared/tui-config.ts +75 -40
  263. package/src/tui/data/context-db.ts +12 -0
  264. package/src/tui/index.tsx +87 -17
  265. package/src/tui/slots/sidebar-content.tsx +4 -0
  266. package/dist/features/magic-context/dreamer/queue.d.ts +0 -55
  267. package/dist/features/magic-context/dreamer/queue.d.ts.map +0 -1
  268. package/dist/features/magic-context/dreamer/runner.d.ts +0 -92
  269. package/dist/features/magic-context/dreamer/runner.d.ts.map +0 -1
  270. package/dist/features/magic-context/dreamer/scheduler.d.ts +0 -29
  271. package/dist/features/magic-context/dreamer/scheduler.d.ts.map +0 -1
  272. package/dist/features/magic-context/key-files/aft-availability.d.ts +0 -11
  273. package/dist/features/magic-context/key-files/aft-availability.d.ts.map +0 -1
  274. package/dist/features/magic-context/key-files/identify-key-files.d.ts +0 -84
  275. package/dist/features/magic-context/key-files/identify-key-files.d.ts.map +0 -1
  276. package/dist/features/magic-context/key-files/project-key-files.d.ts +0 -42
  277. package/dist/features/magic-context/key-files/project-key-files.d.ts.map +0 -1
  278. package/dist/features/magic-context/key-files/read-history.d.ts +0 -26
  279. package/dist/features/magic-context/key-files/read-history.d.ts.map +0 -1
  280. package/dist/features/magic-context/key-files/read-stats.d.ts +0 -18
  281. package/dist/features/magic-context/key-files/read-stats.d.ts.map +0 -1
  282. package/dist/features/magic-context/key-files/storage-key-files.d.ts +0 -20
  283. package/dist/features/magic-context/key-files/storage-key-files.d.ts.map +0 -1
  284. package/dist/features/magic-context/memory/embedding-local.d.ts +0 -25
  285. package/dist/features/magic-context/memory/embedding-local.d.ts.map +0 -1
  286. package/dist/hooks/magic-context/key-files-block.d.ts +0 -27
  287. package/dist/hooks/magic-context/key-files-block.d.ts.map +0 -1
@@ -1,19 +1,15 @@
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
- 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"];
7
+ export declare const DREAMER_TASKS: readonly ["curate", "maintain-docs"];
8
8
  export declare const DreamingTaskSchema: z.ZodEnum<{
9
- consolidate: "consolidate";
10
- verify: "verify";
11
- "archive-stale": "archive-stale";
12
- improve: "improve";
9
+ curate: "curate";
13
10
  "maintain-docs": "maintain-docs";
14
11
  }>;
15
- export type DreamingTask = z.infer<typeof DreamingTaskSchema>;
16
- export declare const DEFAULT_DREAMER_TASKS: DreamingTask[];
12
+ export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
17
13
  /** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
18
14
  * Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
19
15
  * Pi-only — OpenCode uses `variant` in agent config instead. */
@@ -26,7 +22,184 @@ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
26
22
  xhigh: "xhigh";
27
23
  }>>;
28
24
  export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
29
- /** Combined dreamer agent + scheduling configuration */
25
+ export declare const DreamTaskConfigSchema: z.ZodObject<{
26
+ schedule: z.ZodDefault<z.ZodString>;
27
+ model: z.ZodOptional<z.ZodString>;
28
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
29
+ thinking_level: z.ZodOptional<z.ZodEnum<{
30
+ off: "off";
31
+ minimal: "minimal";
32
+ low: "low";
33
+ medium: "medium";
34
+ high: "high";
35
+ xhigh: "xhigh";
36
+ }>>;
37
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
38
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
39
+ }, z.core.$strip>;
40
+ export type DreamTaskConfig = z.infer<typeof DreamTaskConfigSchema>;
41
+ /** The `tasks` record: one entry per canonical task, each defaulting to its
42
+ * v1-behavior-preserving schedule. Written explicitly (not via fromEntries) so
43
+ * the inferred type stays a precise per-key object. */
44
+ export declare const DreamTasksSchema: z.ZodObject<{
45
+ "map-memories": z.ZodDefault<z.ZodObject<{
46
+ schedule: z.ZodDefault<z.ZodString>;
47
+ model: z.ZodOptional<z.ZodString>;
48
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
49
+ thinking_level: z.ZodOptional<z.ZodEnum<{
50
+ off: "off";
51
+ minimal: "minimal";
52
+ low: "low";
53
+ medium: "medium";
54
+ high: "high";
55
+ xhigh: "xhigh";
56
+ }>>;
57
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
58
+ }, z.core.$strip>>;
59
+ verify: z.ZodDefault<z.ZodObject<{
60
+ schedule: z.ZodDefault<z.ZodString>;
61
+ model: z.ZodOptional<z.ZodString>;
62
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
63
+ thinking_level: z.ZodOptional<z.ZodEnum<{
64
+ off: "off";
65
+ minimal: "minimal";
66
+ low: "low";
67
+ medium: "medium";
68
+ high: "high";
69
+ xhigh: "xhigh";
70
+ }>>;
71
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
72
+ }, z.core.$strip>>;
73
+ "verify-broad": z.ZodDefault<z.ZodObject<{
74
+ schedule: z.ZodDefault<z.ZodString>;
75
+ model: z.ZodOptional<z.ZodString>;
76
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
77
+ thinking_level: z.ZodOptional<z.ZodEnum<{
78
+ off: "off";
79
+ minimal: "minimal";
80
+ low: "low";
81
+ medium: "medium";
82
+ high: "high";
83
+ xhigh: "xhigh";
84
+ }>>;
85
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
86
+ }, z.core.$strip>>;
87
+ curate: z.ZodDefault<z.ZodObject<{
88
+ schedule: z.ZodDefault<z.ZodString>;
89
+ model: z.ZodOptional<z.ZodString>;
90
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
91
+ thinking_level: z.ZodOptional<z.ZodEnum<{
92
+ off: "off";
93
+ minimal: "minimal";
94
+ low: "low";
95
+ medium: "medium";
96
+ high: "high";
97
+ xhigh: "xhigh";
98
+ }>>;
99
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
100
+ }, z.core.$strip>>;
101
+ "classify-memories": z.ZodDefault<z.ZodObject<{
102
+ schedule: z.ZodDefault<z.ZodString>;
103
+ model: z.ZodOptional<z.ZodString>;
104
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
105
+ thinking_level: z.ZodOptional<z.ZodEnum<{
106
+ off: "off";
107
+ minimal: "minimal";
108
+ low: "low";
109
+ medium: "medium";
110
+ high: "high";
111
+ xhigh: "xhigh";
112
+ }>>;
113
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
114
+ }, z.core.$strip>>;
115
+ retrospective: z.ZodDefault<z.ZodObject<{
116
+ schedule: z.ZodDefault<z.ZodString>;
117
+ model: z.ZodOptional<z.ZodString>;
118
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
119
+ thinking_level: z.ZodOptional<z.ZodEnum<{
120
+ off: "off";
121
+ minimal: "minimal";
122
+ low: "low";
123
+ medium: "medium";
124
+ high: "high";
125
+ xhigh: "xhigh";
126
+ }>>;
127
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
128
+ }, z.core.$strip>>;
129
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
130
+ schedule: z.ZodDefault<z.ZodString>;
131
+ model: z.ZodOptional<z.ZodString>;
132
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
133
+ thinking_level: z.ZodOptional<z.ZodEnum<{
134
+ off: "off";
135
+ minimal: "minimal";
136
+ low: "low";
137
+ medium: "medium";
138
+ high: "high";
139
+ xhigh: "xhigh";
140
+ }>>;
141
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
142
+ }, z.core.$strip>>;
143
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
144
+ schedule: z.ZodDefault<z.ZodString>;
145
+ model: z.ZodOptional<z.ZodString>;
146
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
147
+ thinking_level: z.ZodOptional<z.ZodEnum<{
148
+ off: "off";
149
+ minimal: "minimal";
150
+ low: "low";
151
+ medium: "medium";
152
+ high: "high";
153
+ xhigh: "xhigh";
154
+ }>>;
155
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
156
+ }, z.core.$strip>>;
157
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
158
+ schedule: z.ZodDefault<z.ZodString>;
159
+ model: z.ZodOptional<z.ZodString>;
160
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
161
+ thinking_level: z.ZodOptional<z.ZodEnum<{
162
+ off: "off";
163
+ minimal: "minimal";
164
+ low: "low";
165
+ medium: "medium";
166
+ high: "high";
167
+ xhigh: "xhigh";
168
+ }>>;
169
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
170
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
171
+ }, z.core.$strip>>;
172
+ "promote-primers": z.ZodDefault<z.ZodObject<{
173
+ schedule: z.ZodDefault<z.ZodString>;
174
+ model: z.ZodOptional<z.ZodString>;
175
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
176
+ thinking_level: z.ZodOptional<z.ZodEnum<{
177
+ off: "off";
178
+ minimal: "minimal";
179
+ low: "low";
180
+ medium: "medium";
181
+ high: "high";
182
+ xhigh: "xhigh";
183
+ }>>;
184
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
185
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
186
+ }, z.core.$strip>>;
187
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
188
+ schedule: z.ZodDefault<z.ZodString>;
189
+ model: z.ZodOptional<z.ZodString>;
190
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
191
+ thinking_level: z.ZodOptional<z.ZodEnum<{
192
+ off: "off";
193
+ minimal: "minimal";
194
+ low: "low";
195
+ medium: "medium";
196
+ high: "high";
197
+ xhigh: "xhigh";
198
+ }>>;
199
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
200
+ }, z.core.$strip>>;
201
+ }, z.core.$strip>;
202
+ /** Combined dreamer agent + per-task scheduling configuration (Dreamer v2). */
30
203
  export declare const DreamerConfigSchema: z.ZodObject<{
31
204
  model: z.ZodOptional<z.ZodString>;
32
205
  temperature: z.ZodOptional<z.ZodNumber>;
@@ -76,26 +249,165 @@ export declare const DreamerConfigSchema: z.ZodObject<{
76
249
  maxTokens: z.ZodOptional<z.ZodNumber>;
77
250
  variant: z.ZodOptional<z.ZodString>;
78
251
  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>;
252
+ tasks: z.ZodDefault<z.ZodObject<{
253
+ "map-memories": z.ZodDefault<z.ZodObject<{
254
+ schedule: z.ZodDefault<z.ZodString>;
255
+ model: z.ZodOptional<z.ZodString>;
256
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
257
+ thinking_level: z.ZodOptional<z.ZodEnum<{
258
+ off: "off";
259
+ minimal: "minimal";
260
+ low: "low";
261
+ medium: "medium";
262
+ high: "high";
263
+ xhigh: "xhigh";
264
+ }>>;
265
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
266
+ }, z.core.$strip>>;
267
+ verify: z.ZodDefault<z.ZodObject<{
268
+ schedule: z.ZodDefault<z.ZodString>;
269
+ model: z.ZodOptional<z.ZodString>;
270
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
271
+ thinking_level: z.ZodOptional<z.ZodEnum<{
272
+ off: "off";
273
+ minimal: "minimal";
274
+ low: "low";
275
+ medium: "medium";
276
+ high: "high";
277
+ xhigh: "xhigh";
278
+ }>>;
279
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
280
+ }, z.core.$strip>>;
281
+ "verify-broad": z.ZodDefault<z.ZodObject<{
282
+ schedule: z.ZodDefault<z.ZodString>;
283
+ model: z.ZodOptional<z.ZodString>;
284
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
285
+ thinking_level: z.ZodOptional<z.ZodEnum<{
286
+ off: "off";
287
+ minimal: "minimal";
288
+ low: "low";
289
+ medium: "medium";
290
+ high: "high";
291
+ xhigh: "xhigh";
292
+ }>>;
293
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
294
+ }, z.core.$strip>>;
295
+ curate: z.ZodDefault<z.ZodObject<{
296
+ schedule: z.ZodDefault<z.ZodString>;
297
+ model: z.ZodOptional<z.ZodString>;
298
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
299
+ thinking_level: z.ZodOptional<z.ZodEnum<{
300
+ off: "off";
301
+ minimal: "minimal";
302
+ low: "low";
303
+ medium: "medium";
304
+ high: "high";
305
+ xhigh: "xhigh";
306
+ }>>;
307
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
308
+ }, z.core.$strip>>;
309
+ "classify-memories": z.ZodDefault<z.ZodObject<{
310
+ schedule: z.ZodDefault<z.ZodString>;
311
+ model: z.ZodOptional<z.ZodString>;
312
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
313
+ thinking_level: z.ZodOptional<z.ZodEnum<{
314
+ off: "off";
315
+ minimal: "minimal";
316
+ low: "low";
317
+ medium: "medium";
318
+ high: "high";
319
+ xhigh: "xhigh";
320
+ }>>;
321
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
322
+ }, z.core.$strip>>;
323
+ retrospective: z.ZodDefault<z.ZodObject<{
324
+ schedule: z.ZodDefault<z.ZodString>;
325
+ model: z.ZodOptional<z.ZodString>;
326
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
327
+ thinking_level: z.ZodOptional<z.ZodEnum<{
328
+ off: "off";
329
+ minimal: "minimal";
330
+ low: "low";
331
+ medium: "medium";
332
+ high: "high";
333
+ xhigh: "xhigh";
334
+ }>>;
335
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
336
+ }, z.core.$strip>>;
337
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
338
+ schedule: z.ZodDefault<z.ZodString>;
339
+ model: z.ZodOptional<z.ZodString>;
340
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
341
+ thinking_level: z.ZodOptional<z.ZodEnum<{
342
+ off: "off";
343
+ minimal: "minimal";
344
+ low: "low";
345
+ medium: "medium";
346
+ high: "high";
347
+ xhigh: "xhigh";
348
+ }>>;
349
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
350
+ }, z.core.$strip>>;
351
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
352
+ schedule: z.ZodDefault<z.ZodString>;
353
+ model: z.ZodOptional<z.ZodString>;
354
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
355
+ thinking_level: z.ZodOptional<z.ZodEnum<{
356
+ off: "off";
357
+ minimal: "minimal";
358
+ low: "low";
359
+ medium: "medium";
360
+ high: "high";
361
+ xhigh: "xhigh";
362
+ }>>;
363
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
364
+ }, z.core.$strip>>;
365
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
366
+ schedule: z.ZodDefault<z.ZodString>;
367
+ model: z.ZodOptional<z.ZodString>;
368
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
369
+ thinking_level: z.ZodOptional<z.ZodEnum<{
370
+ off: "off";
371
+ minimal: "minimal";
372
+ low: "low";
373
+ medium: "medium";
374
+ high: "high";
375
+ xhigh: "xhigh";
376
+ }>>;
377
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
378
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
379
+ }, z.core.$strip>>;
380
+ "promote-primers": z.ZodDefault<z.ZodObject<{
381
+ schedule: z.ZodDefault<z.ZodString>;
382
+ model: z.ZodOptional<z.ZodString>;
383
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
384
+ thinking_level: z.ZodOptional<z.ZodEnum<{
385
+ off: "off";
386
+ minimal: "minimal";
387
+ low: "low";
388
+ medium: "medium";
389
+ high: "high";
390
+ xhigh: "xhigh";
391
+ }>>;
392
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
393
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
394
+ }, z.core.$strip>>;
395
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
396
+ schedule: z.ZodDefault<z.ZodString>;
397
+ model: z.ZodOptional<z.ZodString>;
398
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
399
+ thinking_level: z.ZodOptional<z.ZodEnum<{
400
+ off: "off";
401
+ minimal: "minimal";
402
+ low: "low";
403
+ medium: "medium";
404
+ high: "high";
405
+ xhigh: "xhigh";
406
+ }>>;
407
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
408
+ }, z.core.$strip>>;
98
409
  }, z.core.$strip>>;
410
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
99
411
  thinking_level: z.ZodOptional<z.ZodEnum<{
100
412
  off: "off";
101
413
  minimal: "minimal";
@@ -242,7 +554,6 @@ export type HistorianConfig = NonNullable<z.infer<typeof HistorianConfigSchema>>
242
554
  export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
243
555
  provider: z.ZodDefault<z.ZodEnum<{
244
556
  off: "off";
245
- local: "local";
246
557
  "openai-compatible": "openai-compatible";
247
558
  }>>;
248
559
  model: z.ZodOptional<z.ZodString>;
@@ -253,10 +564,6 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
253
564
  truncate: z.ZodOptional<z.ZodString>;
254
565
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
255
566
  }, z.core.$strip>, z.ZodTransform<{
256
- max_input_tokens?: number | undefined;
257
- provider: "local";
258
- model: string;
259
- } | {
260
567
  max_input_tokens?: number | undefined;
261
568
  truncate?: string | undefined;
262
569
  query_input_type?: string | undefined;
@@ -268,7 +575,7 @@ export declare const EmbeddingConfigSchema: z.ZodPipe<z.ZodObject<{
268
575
  } | {
269
576
  provider: "off";
270
577
  }, {
271
- provider: "off" | "local" | "openai-compatible";
578
+ provider: "off" | "openai-compatible";
272
579
  model?: string | undefined;
273
580
  endpoint?: string | undefined;
274
581
  api_key?: string | undefined;
@@ -290,6 +597,8 @@ export interface MagicContextConfig {
290
597
  default: string;
291
598
  [modelKey: string]: string;
292
599
  };
600
+ /** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
601
+ toast_duration_ms?: number;
293
602
  execute_threshold_percentage: number | {
294
603
  default: number;
295
604
  [modelKey: string]: number;
@@ -317,7 +626,7 @@ export interface MagicContextConfig {
317
626
  /**
318
627
  * Controls whether and where Magic Context augments the system prompt
319
628
  * (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
320
- * `<key-files>`, sticky date) inside `experimental.chat.system.transform`.
629
+ * sticky date) inside `experimental.chat.system.transform`.
321
630
  *
322
631
  * Internal OpenCode hidden agents (title, summary, compaction) are
323
632
  * always skipped automatically — that's a separate code path.
@@ -523,26 +832,165 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
523
832
  maxTokens: z.ZodOptional<z.ZodNumber>;
524
833
  variant: z.ZodOptional<z.ZodString>;
525
834
  fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
526
- schedule: z.ZodDefault<z.ZodString>;
527
- max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
528
- tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
529
- consolidate: "consolidate";
530
- verify: "verify";
531
- "archive-stale": "archive-stale";
532
- improve: "improve";
533
- "maintain-docs": "maintain-docs";
534
- }>>>;
535
- task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
536
- inject_docs: z.ZodDefault<z.ZodBoolean>;
537
- user_memories: z.ZodDefault<z.ZodObject<{
538
- enabled: z.ZodDefault<z.ZodBoolean>;
539
- promotion_threshold: z.ZodDefault<z.ZodNumber>;
540
- }, z.core.$strip>>;
541
- pin_key_files: z.ZodDefault<z.ZodObject<{
542
- enabled: z.ZodDefault<z.ZodBoolean>;
543
- token_budget: z.ZodDefault<z.ZodNumber>;
544
- min_reads: z.ZodDefault<z.ZodNumber>;
835
+ tasks: z.ZodDefault<z.ZodObject<{
836
+ "map-memories": z.ZodDefault<z.ZodObject<{
837
+ schedule: z.ZodDefault<z.ZodString>;
838
+ model: z.ZodOptional<z.ZodString>;
839
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
840
+ thinking_level: z.ZodOptional<z.ZodEnum<{
841
+ off: "off";
842
+ minimal: "minimal";
843
+ low: "low";
844
+ medium: "medium";
845
+ high: "high";
846
+ xhigh: "xhigh";
847
+ }>>;
848
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
849
+ }, z.core.$strip>>;
850
+ verify: z.ZodDefault<z.ZodObject<{
851
+ schedule: z.ZodDefault<z.ZodString>;
852
+ model: z.ZodOptional<z.ZodString>;
853
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
854
+ thinking_level: z.ZodOptional<z.ZodEnum<{
855
+ off: "off";
856
+ minimal: "minimal";
857
+ low: "low";
858
+ medium: "medium";
859
+ high: "high";
860
+ xhigh: "xhigh";
861
+ }>>;
862
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
863
+ }, z.core.$strip>>;
864
+ "verify-broad": z.ZodDefault<z.ZodObject<{
865
+ schedule: z.ZodDefault<z.ZodString>;
866
+ model: z.ZodOptional<z.ZodString>;
867
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
868
+ thinking_level: z.ZodOptional<z.ZodEnum<{
869
+ off: "off";
870
+ minimal: "minimal";
871
+ low: "low";
872
+ medium: "medium";
873
+ high: "high";
874
+ xhigh: "xhigh";
875
+ }>>;
876
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
877
+ }, z.core.$strip>>;
878
+ curate: z.ZodDefault<z.ZodObject<{
879
+ schedule: z.ZodDefault<z.ZodString>;
880
+ model: z.ZodOptional<z.ZodString>;
881
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
882
+ thinking_level: z.ZodOptional<z.ZodEnum<{
883
+ off: "off";
884
+ minimal: "minimal";
885
+ low: "low";
886
+ medium: "medium";
887
+ high: "high";
888
+ xhigh: "xhigh";
889
+ }>>;
890
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
891
+ }, z.core.$strip>>;
892
+ "classify-memories": z.ZodDefault<z.ZodObject<{
893
+ schedule: z.ZodDefault<z.ZodString>;
894
+ model: z.ZodOptional<z.ZodString>;
895
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
896
+ thinking_level: z.ZodOptional<z.ZodEnum<{
897
+ off: "off";
898
+ minimal: "minimal";
899
+ low: "low";
900
+ medium: "medium";
901
+ high: "high";
902
+ xhigh: "xhigh";
903
+ }>>;
904
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
905
+ }, z.core.$strip>>;
906
+ retrospective: z.ZodDefault<z.ZodObject<{
907
+ schedule: z.ZodDefault<z.ZodString>;
908
+ model: z.ZodOptional<z.ZodString>;
909
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
910
+ thinking_level: z.ZodOptional<z.ZodEnum<{
911
+ off: "off";
912
+ minimal: "minimal";
913
+ low: "low";
914
+ medium: "medium";
915
+ high: "high";
916
+ xhigh: "xhigh";
917
+ }>>;
918
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
919
+ }, z.core.$strip>>;
920
+ "maintain-docs": z.ZodDefault<z.ZodObject<{
921
+ schedule: z.ZodDefault<z.ZodString>;
922
+ model: z.ZodOptional<z.ZodString>;
923
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
924
+ thinking_level: z.ZodOptional<z.ZodEnum<{
925
+ off: "off";
926
+ minimal: "minimal";
927
+ low: "low";
928
+ medium: "medium";
929
+ high: "high";
930
+ xhigh: "xhigh";
931
+ }>>;
932
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
933
+ }, z.core.$strip>>;
934
+ "evaluate-smart-notes": z.ZodDefault<z.ZodObject<{
935
+ schedule: z.ZodDefault<z.ZodString>;
936
+ model: z.ZodOptional<z.ZodString>;
937
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
938
+ thinking_level: z.ZodOptional<z.ZodEnum<{
939
+ off: "off";
940
+ minimal: "minimal";
941
+ low: "low";
942
+ medium: "medium";
943
+ high: "high";
944
+ xhigh: "xhigh";
945
+ }>>;
946
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
947
+ }, z.core.$strip>>;
948
+ "review-user-memories": z.ZodDefault<z.ZodObject<{
949
+ schedule: z.ZodDefault<z.ZodString>;
950
+ model: z.ZodOptional<z.ZodString>;
951
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
952
+ thinking_level: z.ZodOptional<z.ZodEnum<{
953
+ off: "off";
954
+ minimal: "minimal";
955
+ low: "low";
956
+ medium: "medium";
957
+ high: "high";
958
+ xhigh: "xhigh";
959
+ }>>;
960
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
961
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
962
+ }, z.core.$strip>>;
963
+ "promote-primers": z.ZodDefault<z.ZodObject<{
964
+ schedule: z.ZodDefault<z.ZodString>;
965
+ model: z.ZodOptional<z.ZodString>;
966
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
967
+ thinking_level: z.ZodOptional<z.ZodEnum<{
968
+ off: "off";
969
+ minimal: "minimal";
970
+ low: "low";
971
+ medium: "medium";
972
+ high: "high";
973
+ xhigh: "xhigh";
974
+ }>>;
975
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
976
+ promotion_threshold: z.ZodOptional<z.ZodNumber>;
977
+ }, z.core.$strip>>;
978
+ "refresh-primers": z.ZodDefault<z.ZodObject<{
979
+ schedule: z.ZodDefault<z.ZodString>;
980
+ model: z.ZodOptional<z.ZodString>;
981
+ fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
982
+ thinking_level: z.ZodOptional<z.ZodEnum<{
983
+ off: "off";
984
+ minimal: "minimal";
985
+ low: "low";
986
+ medium: "medium";
987
+ high: "high";
988
+ xhigh: "xhigh";
989
+ }>>;
990
+ timeout_minutes: z.ZodDefault<z.ZodNumber>;
991
+ }, z.core.$strip>>;
545
992
  }, z.core.$strip>>;
993
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
546
994
  thinking_level: z.ZodOptional<z.ZodEnum<{
547
995
  off: "off";
548
996
  minimal: "minimal";
@@ -555,6 +1003,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
555
1003
  cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
556
1004
  default: z.ZodString;
557
1005
  }, z.core.$catchall<z.ZodString>>]>>;
1006
+ toast_duration_ms: z.ZodDefault<z.ZodNumber>;
558
1007
  execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
559
1008
  default: z.ZodNumber;
560
1009
  }, z.core.$catchall<z.ZodNumber>>]>>;
@@ -580,7 +1029,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
580
1029
  embedding: z.ZodDefault<z.ZodPipe<z.ZodObject<{
581
1030
  provider: z.ZodDefault<z.ZodEnum<{
582
1031
  off: "off";
583
- local: "local";
584
1032
  "openai-compatible": "openai-compatible";
585
1033
  }>>;
586
1034
  model: z.ZodOptional<z.ZodString>;
@@ -591,10 +1039,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
591
1039
  truncate: z.ZodOptional<z.ZodString>;
592
1040
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
593
1041
  }, z.core.$strip>, z.ZodTransform<{
594
- max_input_tokens?: number | undefined;
595
- provider: "local";
596
- model: string;
597
- } | {
598
1042
  max_input_tokens?: number | undefined;
599
1043
  truncate?: string | undefined;
600
1044
  query_input_type?: string | undefined;
@@ -606,7 +1050,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
606
1050
  } | {
607
1051
  provider: "off";
608
1052
  }, {
609
- provider: "off" | "local" | "openai-compatible";
1053
+ provider: "off" | "openai-compatible";
610
1054
  model?: string | undefined;
611
1055
  endpoint?: string | undefined;
612
1056
  api_key?: string | undefined;
@@ -708,6 +1152,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
708
1152
  [x: string]: string;
709
1153
  default: string;
710
1154
  };
1155
+ toast_duration_ms: number;
711
1156
  execute_threshold_percentage: number | {
712
1157
  [x: string]: number;
713
1158
  default: number;
@@ -728,10 +1173,6 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
728
1173
  mmap_size_mb: number;
729
1174
  };
730
1175
  embedding: {
731
- max_input_tokens?: number | undefined;
732
- provider: "local";
733
- model: string;
734
- } | {
735
1176
  max_input_tokens?: number | undefined;
736
1177
  truncate?: string | undefined;
737
1178
  query_input_type?: string | undefined;
@@ -791,20 +1232,88 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
791
1232
  thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
792
1233
  } | undefined;
793
1234
  dreamer?: {
794
- schedule: string;
795
- max_runtime_minutes: number;
796
- tasks: ("consolidate" | "verify" | "archive-stale" | "improve" | "maintain-docs")[];
797
- task_timeout_minutes: number;
798
- inject_docs: boolean;
799
- user_memories: {
800
- enabled: boolean;
801
- promotion_threshold: number;
802
- };
803
- pin_key_files: {
804
- enabled: boolean;
805
- token_budget: number;
806
- min_reads: number;
1235
+ tasks: {
1236
+ "map-memories": {
1237
+ schedule: string;
1238
+ timeout_minutes: number;
1239
+ model?: string | undefined;
1240
+ fallback_models?: string | string[] | undefined;
1241
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1242
+ };
1243
+ verify: {
1244
+ schedule: string;
1245
+ timeout_minutes: number;
1246
+ model?: string | undefined;
1247
+ fallback_models?: string | string[] | undefined;
1248
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1249
+ };
1250
+ "verify-broad": {
1251
+ schedule: string;
1252
+ timeout_minutes: number;
1253
+ model?: string | undefined;
1254
+ fallback_models?: string | string[] | undefined;
1255
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1256
+ };
1257
+ curate: {
1258
+ schedule: string;
1259
+ timeout_minutes: number;
1260
+ model?: string | undefined;
1261
+ fallback_models?: string | string[] | undefined;
1262
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1263
+ };
1264
+ "classify-memories": {
1265
+ schedule: string;
1266
+ timeout_minutes: number;
1267
+ model?: string | undefined;
1268
+ fallback_models?: string | string[] | undefined;
1269
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1270
+ };
1271
+ retrospective: {
1272
+ schedule: string;
1273
+ timeout_minutes: number;
1274
+ model?: string | undefined;
1275
+ fallback_models?: string | string[] | undefined;
1276
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1277
+ };
1278
+ "maintain-docs": {
1279
+ schedule: string;
1280
+ timeout_minutes: number;
1281
+ model?: string | undefined;
1282
+ fallback_models?: string | string[] | undefined;
1283
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1284
+ };
1285
+ "evaluate-smart-notes": {
1286
+ schedule: string;
1287
+ timeout_minutes: number;
1288
+ model?: string | undefined;
1289
+ fallback_models?: string | string[] | undefined;
1290
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1291
+ };
1292
+ "review-user-memories": {
1293
+ schedule: string;
1294
+ timeout_minutes: number;
1295
+ model?: string | undefined;
1296
+ fallback_models?: string | string[] | undefined;
1297
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1298
+ promotion_threshold?: number | undefined;
1299
+ };
1300
+ "promote-primers": {
1301
+ schedule: string;
1302
+ timeout_minutes: number;
1303
+ model?: string | undefined;
1304
+ fallback_models?: string | string[] | undefined;
1305
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1306
+ promotion_threshold?: number | undefined;
1307
+ };
1308
+ "refresh-primers": {
1309
+ schedule: string;
1310
+ timeout_minutes: number;
1311
+ model?: string | undefined;
1312
+ fallback_models?: string | string[] | undefined;
1313
+ thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1314
+ };
807
1315
  };
1316
+ inject_docs: boolean;
808
1317
  model?: string | undefined;
809
1318
  temperature?: number | undefined;
810
1319
  top_p?: number | undefined;