@cortexkit/opencode-magic-context 0.43.1 → 0.44.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 (271) hide show
  1. package/README.md +18 -2
  2. package/dist/config/index.d.ts +13 -0
  3. package/dist/config/index.d.ts.map +1 -1
  4. package/dist/config/project-security.d.ts +6 -3
  5. package/dist/config/project-security.d.ts.map +1 -1
  6. package/dist/config/schema/magic-context.d.ts +27 -0
  7. package/dist/config/schema/magic-context.d.ts.map +1 -1
  8. package/dist/{conflict-warning-hook-956fkedc.js → conflict-warning-hook-48f7np9d.js} +5 -5
  9. package/dist/{derive-budgets-b8ybssh9.js → derive-budgets-8kgevxmx.js} +2 -2
  10. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
  11. package/dist/features/magic-context/compartment-embedding.d.ts +3 -2
  12. package/dist/features/magic-context/compartment-embedding.d.ts.map +1 -1
  13. package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
  14. package/dist/features/magic-context/dreamer/classify.d.ts +12 -0
  15. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
  16. package/dist/features/magic-context/dreamer/curate-category-rotation.d.ts.map +1 -1
  17. package/dist/features/magic-context/dreamer/curate-memory-safety.d.ts.map +1 -1
  18. package/dist/features/magic-context/dreamer/failed-invocation-evidence.d.ts +13 -0
  19. package/dist/features/magic-context/dreamer/failed-invocation-evidence.d.ts.map +1 -0
  20. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
  21. package/dist/features/magic-context/dreamer/lease.d.ts +5 -2
  22. package/dist/features/magic-context/dreamer/lease.d.ts.map +1 -1
  23. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
  24. package/dist/features/magic-context/dreamer/memory-claim-safety.d.ts.map +1 -1
  25. package/dist/features/magic-context/dreamer/module-apply.d.ts +1 -0
  26. package/dist/features/magic-context/dreamer/module-apply.d.ts.map +1 -1
  27. package/dist/features/magic-context/dreamer/retrospective-learnings.d.ts.map +1 -1
  28. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +1 -1
  29. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -1
  30. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
  31. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +2 -0
  32. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  33. package/dist/features/magic-context/dreamer/verify.d.ts +19 -0
  34. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  35. package/dist/features/magic-context/fail-closed-block.d.ts +7 -0
  36. package/dist/features/magic-context/fail-closed-block.d.ts.map +1 -1
  37. package/dist/features/magic-context/index.d.ts +1 -0
  38. package/dist/features/magic-context/index.d.ts.map +1 -1
  39. package/dist/features/magic-context/install-instance-id.d.ts +33 -0
  40. package/dist/features/magic-context/install-instance-id.d.ts.map +1 -0
  41. package/dist/features/magic-context/memory/constants.d.ts.map +1 -1
  42. package/dist/features/magic-context/memory/embedding-backfill.d.ts.map +1 -1
  43. package/dist/features/magic-context/memory/single-store-embedding-drain.d.ts +35 -0
  44. package/dist/features/magic-context/memory/single-store-embedding-drain.d.ts.map +1 -0
  45. package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -1
  46. package/dist/features/magic-context/message-index.d.ts +23 -0
  47. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  48. package/dist/features/magic-context/migrations.d.ts +7 -0
  49. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  50. package/dist/features/magic-context/overflow-detection.d.ts +31 -8
  51. package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
  52. package/dist/features/magic-context/project-embedding-registry.d.ts +40 -1
  53. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  54. package/dist/features/magic-context/search.d.ts.map +1 -1
  55. package/dist/features/magic-context/session-decision-calibration.d.ts.map +1 -1
  56. package/dist/features/magic-context/storage-db.d.ts +1 -1
  57. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  58. package/dist/features/magic-context/storage-meta-persisted.d.ts +20 -5
  59. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  60. package/dist/features/magic-context/storage-meta.d.ts +1 -1
  61. package/dist/features/magic-context/storage-meta.d.ts.map +1 -1
  62. package/dist/features/magic-context/storage-notes.d.ts +1 -0
  63. package/dist/features/magic-context/storage-notes.d.ts.map +1 -1
  64. package/dist/features/magic-context/storage-primers.d.ts.map +1 -1
  65. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  66. package/dist/features/magic-context/storage-unavailable-reason.d.ts +17 -0
  67. package/dist/features/magic-context/storage-unavailable-reason.d.ts.map +1 -0
  68. package/dist/features/magic-context/storage.d.ts +1 -1
  69. package/dist/features/magic-context/storage.d.ts.map +1 -1
  70. package/dist/features/magic-context/store-generation-rebase.d.ts +95 -2
  71. package/dist/features/magic-context/store-generation-rebase.d.ts.map +1 -1
  72. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
  73. package/dist/features/magic-context/transform-decision-log.d.ts +1 -1
  74. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  75. package/dist/features/magic-context/types.d.ts +8 -3
  76. package/dist/features/magic-context/types.d.ts.map +1 -1
  77. package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
  78. package/dist/hooks/magic-context/apply-operations.d.ts +105 -9
  79. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  80. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  81. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  82. package/dist/hooks/magic-context/compartment-parser.d.ts +2 -0
  83. package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
  84. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
  85. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  86. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +6 -0
  87. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  88. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
  89. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  90. package/dist/hooks/magic-context/compartment-runner-types.d.ts +2 -0
  91. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  92. package/dist/hooks/magic-context/compartment-runner-validation.d.ts +7 -0
  93. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  94. package/dist/hooks/magic-context/context-limit-resolution.d.ts +31 -0
  95. package/dist/hooks/magic-context/context-limit-resolution.d.ts.map +1 -0
  96. package/dist/hooks/magic-context/ctx-reduce-availability.d.ts +60 -8
  97. package/dist/hooks/magic-context/ctx-reduce-availability.d.ts.map +1 -1
  98. package/dist/hooks/magic-context/embed-history-runner.d.ts +0 -1
  99. package/dist/hooks/magic-context/embed-history-runner.d.ts.map +1 -1
  100. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  101. package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
  102. package/dist/hooks/magic-context/format-embed-status.d.ts.map +1 -1
  103. package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
  104. package/dist/hooks/magic-context/historian-host-runner.d.ts +233 -0
  105. package/dist/hooks/magic-context/historian-host-runner.d.ts.map +1 -0
  106. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  107. package/dist/hooks/magic-context/image-token-estimate.d.ts +9 -0
  108. package/dist/hooks/magic-context/image-token-estimate.d.ts.map +1 -1
  109. package/dist/hooks/magic-context/inject-compartments.d.ts +60 -1
  110. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  111. package/dist/hooks/magic-context/lkg-slot.d.ts +6 -0
  112. package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
  113. package/dist/hooks/magic-context/module-client.d.ts +21 -0
  114. package/dist/hooks/magic-context/module-client.d.ts.map +1 -0
  115. package/dist/hooks/magic-context/module-state-sync.d.ts +6 -2
  116. package/dist/hooks/magic-context/module-state-sync.d.ts.map +1 -1
  117. package/dist/hooks/magic-context/module-tool-backends.d.ts +47 -0
  118. package/dist/hooks/magic-context/module-tool-backends.d.ts.map +1 -0
  119. package/dist/hooks/magic-context/module-transport.d.ts +1 -1
  120. package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
  121. package/dist/hooks/magic-context/persist-filtered-noise.d.ts.map +1 -1
  122. package/dist/hooks/magic-context/read-session-chunk.d.ts +12 -0
  123. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  124. package/dist/hooks/magic-context/rust-mode-transform.d.ts +35 -0
  125. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  126. package/dist/hooks/magic-context/rust-refusal-recovery.d.ts +18 -0
  127. package/dist/hooks/magic-context/rust-refusal-recovery.d.ts.map +1 -1
  128. package/dist/hooks/magic-context/rust-served-m0.d.ts +20 -0
  129. package/dist/hooks/magic-context/rust-served-m0.d.ts.map +1 -0
  130. package/dist/hooks/magic-context/store-ahead-refusal.d.ts +40 -0
  131. package/dist/hooks/magic-context/store-ahead-refusal.d.ts.map +1 -0
  132. package/dist/hooks/magic-context/strip-content.d.ts +5 -5
  133. package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
  134. package/dist/hooks/magic-context/system-prompt-hash.d.ts +9 -0
  135. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  136. package/dist/hooks/magic-context/tag-messages.d.ts +19 -0
  137. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  138. package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
  139. package/dist/hooks/magic-context/tool-drop-target.d.ts +14 -0
  140. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
  141. package/dist/hooks/magic-context/tool-input-size.d.ts +21 -0
  142. package/dist/hooks/magic-context/tool-input-size.d.ts.map +1 -0
  143. package/dist/hooks/magic-context/tool-sweep-policy.d.ts.map +1 -1
  144. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +124 -11
  145. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  146. package/dist/hooks/magic-context/transform.d.ts +13 -0
  147. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  148. package/dist/{index-0ccmyzbj.js → index-01ft0h3p.js} +1 -1
  149. package/dist/{index-j7cnyvq1.js → index-2zf5fv89.js} +254 -61
  150. package/dist/{index-kpmmr8s0.js → index-5f4qsnaq.js} +2 -2
  151. package/dist/{index-yc81txp4.js → index-c906f3ff.js} +4 -4
  152. package/dist/{index-1gtwrdc4.js → index-cj5qe2nw.js} +3 -3
  153. package/dist/{index-febg06dy.js → index-dx0xnd4q.js} +1 -1
  154. package/dist/{index-v8qr6tt2.js → index-pye48m79.js} +3 -3
  155. package/dist/{index-7wpwr2e2.js → index-rdey8znw.js} +1175 -290
  156. package/dist/{index-wgzyeyf5.js → index-tjq5jztd.js} +22 -6
  157. package/dist/{index-9r1cbh9e.js → index-v6wsttqt.js} +1 -1
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +3546 -1642
  160. package/dist/{message-time-backfill-0ccvyk9n.js → message-time-backfill-rm9wmcem.js} +3 -3
  161. package/dist/plugin/dream-timer.d.ts +2 -0
  162. package/dist/plugin/dream-timer.d.ts.map +1 -1
  163. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  164. package/dist/plugin/messages-transform.d.ts.map +1 -1
  165. package/dist/plugin/native-compaction-guard.d.ts +22 -0
  166. package/dist/plugin/native-compaction-guard.d.ts.map +1 -0
  167. package/dist/plugin/rpc-handlers.d.ts +11 -0
  168. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  169. package/dist/{read-session-chunk-z7fv0qjv.js → read-session-chunk-ktz5zt70.js} +5 -3
  170. package/dist/{recomp-orchestrator-r00aa5t3.js → recomp-orchestrator-ahekzt0s.js} +8 -8
  171. package/dist/{safe-notification-target-vrkjrbgb.js → safe-notification-target-6w0esgd6.js} +2 -2
  172. package/dist/{send-session-notification-3warjyjp.js → send-session-notification-w7xbnrsm.js} +4 -4
  173. package/dist/shared/index.d.ts +1 -0
  174. package/dist/shared/index.d.ts.map +1 -1
  175. package/dist/shared/logger.d.ts.map +1 -1
  176. package/dist/shared/model-suggestion-retry.d.ts +13 -1
  177. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  178. package/dist/shared/opencode-db-path.d.ts.map +1 -1
  179. package/dist/shared/prompt-async-transport.d.ts +25 -0
  180. package/dist/shared/prompt-async-transport.d.ts.map +1 -0
  181. package/dist/shared/rpc-server.d.ts +1 -0
  182. package/dist/shared/rpc-server.d.ts.map +1 -1
  183. package/dist/shared/rpc-types.d.ts +16 -0
  184. package/dist/shared/rpc-types.d.ts.map +1 -1
  185. package/dist/shared/rpc-utils.d.ts +3 -0
  186. package/dist/shared/rpc-utils.d.ts.map +1 -1
  187. package/dist/shared/sqlite-write-locker-test-support.d.ts +7 -0
  188. package/dist/shared/sqlite-write-locker-test-support.d.ts.map +1 -0
  189. package/dist/shared/status-summary.d.ts +9 -1
  190. package/dist/shared/status-summary.d.ts.map +1 -1
  191. package/dist/shared/tag-transcript.d.ts.map +1 -1
  192. package/dist/shared/test-fake-executable.d.ts +38 -0
  193. package/dist/shared/test-fake-executable.d.ts.map +1 -0
  194. package/dist/shared/user-facing-codes.d.ts +20 -5
  195. package/dist/shared/user-facing-codes.d.ts.map +1 -1
  196. package/dist/shared/window-geometry.d.ts +6 -3
  197. package/dist/shared/window-geometry.d.ts.map +1 -1
  198. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  199. package/dist/tools/ctx-note/tools.d.ts.map +1 -1
  200. package/dist/tools/ctx-reduce/tools.d.ts.map +1 -1
  201. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  202. package/dist/v2/fold/boundary.d.ts +61 -0
  203. package/dist/v2/fold/boundary.d.ts.map +1 -0
  204. package/dist/v2/fold/restore.d.ts.map +1 -1
  205. package/dist/v2/hidden-completion.d.ts +16 -3
  206. package/dist/v2/hidden-completion.d.ts.map +1 -1
  207. package/dist/v2/hooks/context.d.ts +45 -14
  208. package/dist/v2/hooks/context.d.ts.map +1 -1
  209. package/dist/v2/hooks/hidden-child.d.ts +6 -0
  210. package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
  211. package/dist/v2/hooks/payload.d.ts.map +1 -1
  212. package/dist/v2/hooks/refusal.d.ts +9 -1
  213. package/dist/v2/hooks/refusal.d.ts.map +1 -1
  214. package/dist/v2/hooks/restore-rows.d.ts +29 -0
  215. package/dist/v2/hooks/restore-rows.d.ts.map +1 -0
  216. package/dist/v2/hooks/rpc-live-state.d.ts +1 -1
  217. package/dist/v2/hooks/rpc-live-state.d.ts.map +1 -1
  218. package/dist/v2/hooks/rust-mode.d.ts +47 -0
  219. package/dist/v2/hooks/rust-mode.d.ts.map +1 -0
  220. package/dist/v2/hooks/session-project-backfill.d.ts +15 -0
  221. package/dist/v2/hooks/session-project-backfill.d.ts.map +1 -0
  222. package/dist/v2/hooks/storage-gate.d.ts +42 -0
  223. package/dist/v2/hooks/storage-gate.d.ts.map +1 -0
  224. package/dist/v2/hooks/storage-notice.d.ts +29 -0
  225. package/dist/v2/hooks/storage-notice.d.ts.map +1 -0
  226. package/dist/v2/hooks/store.d.ts +16 -0
  227. package/dist/v2/hooks/store.d.ts.map +1 -1
  228. package/dist/v2/hooks/tools.d.ts +11 -2
  229. package/dist/v2/hooks/tools.d.ts.map +1 -1
  230. package/dist/v2/hooks/types.d.ts +4 -0
  231. package/dist/v2/hooks/types.d.ts.map +1 -1
  232. package/dist/v2/hooks/update-check.d.ts +8 -0
  233. package/dist/v2/hooks/update-check.d.ts.map +1 -1
  234. package/dist/v2/hooks/usage-persist.d.ts +31 -0
  235. package/dist/v2/hooks/usage-persist.d.ts.map +1 -0
  236. package/dist/v2/server.js +12692 -8030
  237. package/dist/v2/store-reader.d.ts +17 -0
  238. package/dist/v2/store-reader.d.ts.map +1 -1
  239. package/dist/wrapup-orchestrator-9srk0kjf.js +18 -0
  240. package/package.json +1 -1
  241. package/src/agents/magic-context-prompt.ts +3 -3
  242. package/src/config/index.ts +40 -0
  243. package/src/config/misplaced-agent-model.test.ts +61 -0
  244. package/src/config/project-security.test.ts +17 -0
  245. package/src/config/project-security.ts +28 -4
  246. package/src/config/schema/magic-context.ts +29 -2
  247. package/src/shared/index.ts +1 -0
  248. package/src/shared/logger.test.ts +63 -2
  249. package/src/shared/logger.ts +23 -5
  250. package/src/shared/model-suggestion-retry.test.ts +115 -4
  251. package/src/shared/model-suggestion-retry.ts +57 -12
  252. package/src/shared/opencode-db-path.test.ts +18 -0
  253. package/src/shared/opencode-db-path.ts +5 -2
  254. package/src/shared/prompt-async-transport.test.ts +217 -0
  255. package/src/shared/prompt-async-transport.ts +242 -0
  256. package/src/shared/prompt-surface-a1-golden.md +8 -8
  257. package/src/shared/rpc-server.ts +13 -1
  258. package/src/shared/rpc-types.ts +17 -0
  259. package/src/shared/rpc-utils.ts +28 -0
  260. package/src/shared/sqlite-transaction-mode-guard.test.ts +198 -0
  261. package/src/shared/sqlite-write-locker-test-support.ts +62 -0
  262. package/src/shared/status-detail-text.test.ts +23 -0
  263. package/src/shared/status-summary.ts +25 -1
  264. package/src/shared/tag-transcript.ts +82 -19
  265. package/src/shared/test-fake-executable.test.ts +54 -0
  266. package/src/shared/test-fake-executable.ts +110 -0
  267. package/src/shared/user-facing-codes.ts +23 -5
  268. package/src/shared/window-geometry.ts +6 -3
  269. package/dist/v2/hooks/provider-admission.d.ts +0 -22
  270. package/dist/v2/hooks/provider-admission.d.ts.map +0 -1
  271. package/dist/wrapup-orchestrator-y0bs7t5a.js +0 -18

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.