@cortexkit/opencode-magic-context 0.26.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 (285) 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 +15 -44
  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 +584 -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 +1 -1
  27. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  28. package/dist/features/magic-context/dreamer/classify-prompt.d.ts +50 -0
  29. package/dist/features/magic-context/dreamer/classify-prompt.d.ts.map +1 -0
  30. package/dist/features/magic-context/dreamer/classify.d.ts +22 -0
  31. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -0
  32. package/dist/features/magic-context/dreamer/cron.d.ts +72 -0
  33. package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -0
  34. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts +30 -0
  35. package/dist/features/magic-context/dreamer/evaluate-smart-notes.d.ts.map +1 -0
  36. package/dist/features/magic-context/dreamer/index.d.ts +1 -3
  37. package/dist/features/magic-context/dreamer/index.d.ts.map +1 -1
  38. package/dist/features/magic-context/dreamer/lease.d.ts +44 -6
  39. package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
  40. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts +13 -0
  41. package/dist/features/magic-context/dreamer/maintain-docs-protected-enforcement.d.ts.map +1 -0
  42. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +36 -0
  43. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -0
  44. package/dist/features/magic-context/dreamer/map-memories.d.ts +22 -0
  45. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -0
  46. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts +7 -0
  47. package/dist/features/magic-context/dreamer/open-opencode-db.d.ts.map +1 -0
  48. package/dist/features/magic-context/dreamer/primer-seed.d.ts +25 -0
  49. package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -0
  50. package/dist/features/magic-context/dreamer/promote-primers.d.ts +21 -0
  51. package/dist/features/magic-context/dreamer/promote-primers.d.ts.map +1 -0
  52. package/dist/features/magic-context/dreamer/protected-regions.d.ts +19 -0
  53. package/dist/features/magic-context/dreamer/protected-regions.d.ts.map +1 -0
  54. package/dist/features/magic-context/dreamer/refresh-primers.d.ts +30 -0
  55. package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -0
  56. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts +47 -0
  57. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts.map +1 -0
  58. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts +48 -0
  59. package/dist/features/magic-context/dreamer/retrospective-orphan-sweep.d.ts.map +1 -0
  60. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts +81 -0
  61. package/dist/features/magic-context/dreamer/retrospective-raw-provider.d.ts.map +1 -0
  62. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +8 -0
  63. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
  64. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +82 -0
  65. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -0
  66. package/dist/features/magic-context/dreamer/task-config.d.ts +28 -0
  67. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -0
  68. package/dist/features/magic-context/dreamer/task-executor.d.ts +49 -0
  69. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -0
  70. package/dist/features/magic-context/dreamer/task-gates.d.ts +29 -0
  71. package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -0
  72. package/dist/features/magic-context/dreamer/task-prompts.d.ts +37 -6
  73. package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
  74. package/dist/features/magic-context/dreamer/task-registry.d.ts +48 -0
  75. package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -0
  76. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +88 -0
  77. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -0
  78. package/dist/features/magic-context/dreamer/verify-gate.d.ts +43 -0
  79. package/dist/features/magic-context/dreamer/verify-gate.d.ts.map +1 -0
  80. package/dist/features/magic-context/dreamer/verify-prompt.d.ts +41 -0
  81. package/dist/features/magic-context/dreamer/verify-prompt.d.ts.map +1 -0
  82. package/dist/features/magic-context/dreamer/verify.d.ts +43 -0
  83. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -0
  84. package/dist/features/magic-context/git-commits/search-git-commits.d.ts +2 -0
  85. package/dist/features/magic-context/git-commits/search-git-commits.d.ts.map +1 -1
  86. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +4 -4
  87. package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
  88. package/dist/features/magic-context/index.d.ts +1 -0
  89. package/dist/features/magic-context/index.d.ts.map +1 -1
  90. package/dist/features/magic-context/memory/embedding-cache.d.ts +2 -2
  91. package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -1
  92. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  93. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  94. package/dist/features/magic-context/memory/embedding-openai.d.ts +12 -5
  95. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  96. package/dist/features/magic-context/memory/embedding.d.ts +2 -2
  97. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  98. package/dist/features/magic-context/memory/index.d.ts +4 -1
  99. package/dist/features/magic-context/memory/index.d.ts.map +1 -1
  100. package/dist/features/magic-context/memory/memory-migration.d.ts +1 -0
  101. package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
  102. package/dist/features/magic-context/memory/promotion.d.ts +16 -4
  103. package/dist/features/magic-context/memory/promotion.d.ts.map +1 -1
  104. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +2 -2
  105. package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
  106. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts +31 -0
  107. package/dist/features/magic-context/memory/storage-memory-verifications.d.ts.map +1 -0
  108. package/dist/features/magic-context/memory/storage-memory.d.ts +12 -1
  109. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
  110. package/dist/features/magic-context/memory/types.d.ts +4 -0
  111. package/dist/features/magic-context/memory/types.d.ts.map +1 -1
  112. package/dist/features/magic-context/memory/verification-paths.d.ts +32 -0
  113. package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -0
  114. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  115. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  116. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
  117. package/dist/features/magic-context/primer-clustering.d.ts +29 -0
  118. package/dist/features/magic-context/primer-clustering.d.ts.map +1 -0
  119. package/dist/features/magic-context/project-embedding-registry.d.ts +25 -1
  120. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  121. package/dist/features/magic-context/search.d.ts +12 -2
  122. package/dist/features/magic-context/search.d.ts.map +1 -1
  123. package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
  124. package/dist/features/magic-context/smart-notes/capabilities.d.ts +31 -0
  125. package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -0
  126. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts +2 -0
  127. package/dist/features/magic-context/smart-notes/compiler-prompt.d.ts.map +1 -0
  128. package/dist/features/magic-context/smart-notes/compiler.d.ts +52 -0
  129. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -0
  130. package/dist/features/magic-context/smart-notes/index.d.ts +10 -0
  131. package/dist/features/magic-context/smart-notes/index.d.ts.map +1 -0
  132. package/dist/features/magic-context/smart-notes/runner.d.ts +18 -0
  133. package/dist/features/magic-context/smart-notes/runner.d.ts.map +1 -0
  134. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts +22 -0
  135. package/dist/features/magic-context/smart-notes/sandbox-runner.d.ts.map +1 -0
  136. package/dist/features/magic-context/smart-notes/schedule.d.ts +9 -0
  137. package/dist/features/magic-context/smart-notes/schedule.d.ts.map +1 -0
  138. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts +49 -0
  139. package/dist/features/magic-context/smart-notes/ssrf-guard.d.ts.map +1 -0
  140. package/dist/features/magic-context/smart-notes/storage.d.ts +27 -0
  141. package/dist/features/magic-context/smart-notes/storage.d.ts.map +1 -0
  142. package/dist/features/magic-context/smart-notes/types.d.ts +63 -0
  143. package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -0
  144. package/dist/features/magic-context/storage-db.d.ts +5 -1
  145. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  146. package/dist/features/magic-context/storage-meta-persisted.d.ts +8 -4
  147. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  148. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  149. package/dist/features/magic-context/storage-meta-shared.d.ts +3 -1
  150. package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
  151. package/dist/features/magic-context/storage-notes.d.ts +15 -0
  152. package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
  153. package/dist/features/magic-context/storage-primers.d.ts +85 -0
  154. package/dist/features/magic-context/storage-primers.d.ts.map +1 -0
  155. package/dist/features/magic-context/storage-tags.d.ts +20 -0
  156. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  157. package/dist/features/magic-context/storage.d.ts +2 -1
  158. package/dist/features/magic-context/storage.d.ts.map +1 -1
  159. package/dist/features/magic-context/tagger.d.ts +6 -0
  160. package/dist/features/magic-context/tagger.d.ts.map +1 -1
  161. package/dist/features/magic-context/tool-owner-backfill.d.ts.map +1 -1
  162. package/dist/features/magic-context/transform-decision-log.d.ts +10 -0
  163. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  164. package/dist/features/magic-context/types.d.ts +2 -0
  165. package/dist/features/magic-context/types.d.ts.map +1 -1
  166. package/dist/features/magic-context/user-memory/review-user-memories.d.ts +5 -0
  167. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  168. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +18 -0
  169. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
  170. package/dist/features/magic-context/v22-deferred-backfill.d.ts.map +1 -1
  171. package/dist/hooks/auto-update-checker/semver.d.ts +9 -0
  172. package/dist/hooks/auto-update-checker/semver.d.ts.map +1 -1
  173. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  174. package/dist/hooks/magic-context/command-handler.d.ts +8 -15
  175. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  176. package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
  177. package/dist/hooks/magic-context/compartment-parser.d.ts +9 -0
  178. package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
  179. package/dist/hooks/magic-context/compartment-prompt.d.ts +4 -1
  180. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
  181. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
  182. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  183. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  184. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
  185. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  186. package/dist/hooks/magic-context/compartment-runner-types.d.ts +8 -0
  187. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  188. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  189. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  190. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
  191. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  192. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
  193. package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
  194. package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
  195. package/dist/hooks/magic-context/historian-state-file.d.ts.map +1 -1
  196. package/dist/hooks/magic-context/hook-handlers.d.ts +2 -1
  197. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  198. package/dist/hooks/magic-context/hook.d.ts +1 -0
  199. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  200. package/dist/hooks/magic-context/inject-compartments.d.ts +0 -3
  201. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  202. package/dist/hooks/magic-context/send-session-notification.d.ts +2 -0
  203. package/dist/hooks/magic-context/send-session-notification.d.ts.map +1 -1
  204. package/dist/hooks/magic-context/system-prompt-hash.d.ts +17 -0
  205. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  206. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +8 -5
  207. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  208. package/dist/hooks/magic-context/transform.d.ts +0 -2
  209. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  210. package/dist/index.d.ts +2 -2
  211. package/dist/index.d.ts.map +1 -1
  212. package/dist/index.js +17028 -4059
  213. package/dist/plugin/dream-timer.d.ts +17 -9
  214. package/dist/plugin/dream-timer.d.ts.map +1 -1
  215. package/dist/plugin/embedding-bootstrap-helpers.d.ts +1 -1
  216. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
  217. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  218. package/dist/plugin/hooks/create-session-hooks.d.ts +211 -0
  219. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  220. package/dist/plugin/instance-disposal.d.ts +2 -0
  221. package/dist/plugin/instance-disposal.d.ts.map +1 -0
  222. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  223. package/dist/shared/announcement.d.ts +1 -1
  224. package/dist/shared/announcement.d.ts.map +1 -1
  225. package/dist/shared/data-path.d.ts +26 -7
  226. package/dist/shared/data-path.d.ts.map +1 -1
  227. package/dist/shared/model-suggestion-retry.d.ts +48 -2
  228. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  229. package/dist/shared/redaction.d.ts +7 -0
  230. package/dist/shared/redaction.d.ts.map +1 -0
  231. package/dist/shared/resolve-fallbacks.d.ts +12 -0
  232. package/dist/shared/resolve-fallbacks.d.ts.map +1 -1
  233. package/dist/shared/rpc-server.d.ts.map +1 -1
  234. package/dist/shared/rpc-types.d.ts +2 -0
  235. package/dist/shared/rpc-types.d.ts.map +1 -1
  236. package/dist/shared/subagent-runner.d.ts +12 -3
  237. package/dist/shared/subagent-runner.d.ts.map +1 -1
  238. package/dist/shared/tui-config.d.ts.map +1 -1
  239. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  240. package/dist/tools/ctx-memory/types.d.ts.map +1 -1
  241. package/dist/tools/ctx-memory/verification-recording.d.ts +8 -0
  242. package/dist/tools/ctx-memory/verification-recording.d.ts.map +1 -0
  243. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  244. package/dist/tools/ctx-search/types.d.ts +1 -1
  245. package/dist/tools/ctx-search/types.d.ts.map +1 -1
  246. package/dist/tui/data/context-db.d.ts +2 -0
  247. package/dist/tui/data/context-db.d.ts.map +1 -1
  248. package/package.json +3 -1
  249. package/src/shared/announcement.test.ts +20 -0
  250. package/src/shared/announcement.ts +19 -7
  251. package/src/shared/data-path.test.ts +70 -6
  252. package/src/shared/data-path.ts +50 -8
  253. package/src/shared/model-suggestion-retry.test.ts +79 -2
  254. package/src/shared/model-suggestion-retry.ts +181 -3
  255. package/src/shared/redaction.test.ts +48 -0
  256. package/src/shared/redaction.ts +240 -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 +63 -0
  262. package/src/shared/tui-config.ts +67 -39
  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/hooks/magic-context/key-files-block.d.ts +0 -27
  285. package/dist/hooks/magic-context/key-files-block.d.ts.map +0 -1
@@ -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";
@@ -293,6 +606,8 @@ export interface MagicContextConfig {
293
606
  default: string;
294
607
  [modelKey: string]: string;
295
608
  };
609
+ /** TUI toast lifetime in milliseconds for Magic Context notifications. Default: 5000. */
610
+ toast_duration_ms?: number;
296
611
  execute_threshold_percentage: number | {
297
612
  default: number;
298
613
  [modelKey: string]: number;
@@ -320,7 +635,7 @@ export interface MagicContextConfig {
320
635
  /**
321
636
  * Controls whether and where Magic Context augments the system prompt
322
637
  * (`## Magic Context` guidance, `<project-docs>`, `<user-profile>`,
323
- * `<key-files>`, sticky date) inside `experimental.chat.system.transform`.
638
+ * sticky date) inside `experimental.chat.system.transform`.
324
639
  *
325
640
  * Internal OpenCode hidden agents (title, summary, compaction) are
326
641
  * always skipped automatically — that's a separate code path.
@@ -520,26 +835,165 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
520
835
  maxTokens: z.ZodOptional<z.ZodNumber>;
521
836
  variant: z.ZodOptional<z.ZodString>;
522
837
  fallback_models: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
523
- schedule: z.ZodDefault<z.ZodString>;
524
- max_runtime_minutes: z.ZodDefault<z.ZodNumber>;
525
- tasks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
526
- consolidate: "consolidate";
527
- verify: "verify";
528
- "archive-stale": "archive-stale";
529
- improve: "improve";
530
- "maintain-docs": "maintain-docs";
531
- }>>>;
532
- task_timeout_minutes: z.ZodDefault<z.ZodNumber>;
533
- inject_docs: z.ZodDefault<z.ZodBoolean>;
534
- user_memories: z.ZodDefault<z.ZodObject<{
535
- enabled: z.ZodDefault<z.ZodBoolean>;
536
- promotion_threshold: z.ZodDefault<z.ZodNumber>;
537
- }, z.core.$strip>>;
538
- pin_key_files: z.ZodDefault<z.ZodObject<{
539
- enabled: z.ZodDefault<z.ZodBoolean>;
540
- token_budget: z.ZodDefault<z.ZodNumber>;
541
- 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>>;
542
995
  }, z.core.$strip>>;
996
+ inject_docs: z.ZodDefault<z.ZodBoolean>;
543
997
  thinking_level: z.ZodOptional<z.ZodEnum<{
544
998
  off: "off";
545
999
  minimal: "minimal";
@@ -552,6 +1006,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
552
1006
  cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
553
1007
  default: z.ZodString;
554
1008
  }, z.core.$catchall<z.ZodString>>]>>;
1009
+ toast_duration_ms: z.ZodDefault<z.ZodNumber>;
555
1010
  execute_threshold_percentage: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
556
1011
  default: z.ZodNumber;
557
1012
  }, z.core.$catchall<z.ZodNumber>>]>>;
@@ -701,6 +1156,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
701
1156
  [x: string]: string;
702
1157
  default: string;
703
1158
  };
1159
+ toast_duration_ms: number;
704
1160
  execute_threshold_percentage: number | {
705
1161
  [x: string]: number;
706
1162
  default: number;
@@ -785,20 +1241,88 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
785
1241
  thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
786
1242
  } | undefined;
787
1243
  dreamer?: {
788
- schedule: string;
789
- max_runtime_minutes: number;
790
- tasks: ("consolidate" | "verify" | "archive-stale" | "improve" | "maintain-docs")[];
791
- task_timeout_minutes: number;
792
- inject_docs: boolean;
793
- user_memories: {
794
- enabled: boolean;
795
- promotion_threshold: number;
796
- };
797
- pin_key_files: {
798
- enabled: boolean;
799
- token_budget: number;
800
- 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
+ };
801
1324
  };
1325
+ inject_docs: boolean;
802
1326
  model?: string | undefined;
803
1327
  temperature?: number | undefined;
804
1328
  top_p?: number | undefined;