@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,20 +0,0 @@
1
- import type { Database } from "../../../shared/sqlite";
2
- export interface KeyFileEntry {
3
- filePath: string;
4
- /** Approximate token count when last pinned */
5
- tokens: number;
6
- }
7
- /**
8
- * Set the pinned key files for a session.
9
- */
10
- export declare function setKeyFiles(db: Database, sessionId: string, files: KeyFileEntry[]): void;
11
- /**
12
- * Greedy-fit files into a token budget.
13
- * Takes files sorted by priority (dreamer's ranking) and greedily adds
14
- * them until the budget is exhausted. Returns the selected files.
15
- */
16
- export declare function greedyFitFiles(rankedFiles: Array<{
17
- filePath: string;
18
- tokens: number;
19
- }>, tokenBudget: number): KeyFileEntry[];
20
- //# sourceMappingURL=storage-key-files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-key-files.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/key-files/storage-key-files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,CAYxF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC1B,WAAW,EAAE,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,EACxD,WAAW,EAAE,MAAM,GACpB,YAAY,EAAE,CAehB"}
@@ -1,25 +0,0 @@
1
- import type { EmbeddingProvider, EmbeddingPurpose } from "./embedding-provider";
2
- /** Whether local embeddings have been disabled this process due to a missing
3
- * native runtime (issue #128). Used by callers/tests to detect the degraded state. */
4
- export declare function isLocalEmbeddingRuntimeMissing(): boolean;
5
- export declare function isNativeRuntimeMissingError(error: unknown): boolean;
6
- export declare class LocalEmbeddingProvider implements EmbeddingProvider {
7
- readonly modelId: string;
8
- readonly maxInputTokens: number;
9
- private readonly model;
10
- private pipeline;
11
- private initPromise;
12
- private inFlight;
13
- private disposing;
14
- private disposePromise;
15
- private readonly inFlightWaiters;
16
- constructor(model?: string, maxInputTokens?: number);
17
- initialize(): Promise<boolean>;
18
- private waitForInFlightToDrain;
19
- private finishInFlight;
20
- embed(text: string, signal?: AbortSignal, _purpose?: EmbeddingPurpose): Promise<Float32Array | null>;
21
- embedBatch(texts: string[], signal?: AbortSignal, _purpose?: EmbeddingPurpose): Promise<(Float32Array | null)[]>;
22
- dispose(): Promise<void>;
23
- isLoaded(): boolean;
24
- }
25
- //# sourceMappingURL=embedding-local.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embedding-local.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/memory/embedding-local.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA2QhF;sFACsF;AACtF,wBAAgB,8BAA8B,IAAI,OAAO,CAExD;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAwBnE;AA0ED,qBAAa,sBAAuB,YAAW,iBAAiB;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEhC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,WAAW,CAA8B;IACjD,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,cAAc,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAyB;gBAE7C,KAAK,SAAgC,EAAE,cAAc,SAAM;IAMjE,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IA6JpC,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,cAAc;IAShB,KAAK,CACP,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,gBAAgB,GAC5B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAoCzB,UAAU,CACZ,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,CAAC,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,gBAAgB,GAC5B,OAAO,CAAC,CAAC,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC;IAyC7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA8B9B,QAAQ,IAAI,OAAO;CAGtB"}
@@ -1,27 +0,0 @@
1
- import { type KeyFileStaleReason } from "../../features/magic-context/key-files/project-key-files";
2
- import type { SessionMeta } from "../../features/magic-context/types";
3
- import type { Database } from "../../shared/sqlite";
4
- export interface KeyFilesConfigForRender {
5
- enabled: boolean;
6
- tokenBudget: number;
7
- }
8
- interface CacheEntry {
9
- value: string | null;
10
- version: number;
11
- }
12
- export declare const cachedKeyFilesBySession: Map<string, CacheEntry>;
13
- export declare function queueStaleUpdate(projectPath: string, path: string, generatedAtWitness: number, staleReason: KeyFileStaleReason): void;
14
- export declare function flushStaleUpdates(db: Database): number;
15
- export declare function pendingStaleUpdateCount(): number;
16
- export declare function clearKeyFilesCacheForSession(sessionId: string): void;
17
- export declare function buildKeyFilesBlock(db: Database, projectPath: string, config?: KeyFilesConfigForRender): string | null;
18
- export declare function readVersionedKeyFiles(args: {
19
- db: Database;
20
- sessionId: string | undefined;
21
- sessionMeta: SessionMeta;
22
- directory?: string;
23
- isCacheBusting: boolean;
24
- config?: KeyFilesConfigForRender;
25
- }): string | null;
26
- export {};
27
- //# sourceMappingURL=key-files-block.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"key-files-block.d.ts","sourceRoot":"","sources":["../../../src/hooks/magic-context/key-files-block.ts"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,kBAAkB,EAI1B,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,UAAU;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AASD,eAAO,MAAM,uBAAuB,yBAAgC,CAAC;AAQrE,wBAAgB,gBAAgB,CAC5B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,kBAAkB,GAChC,IAAI,CAGN;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CA0BtD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEpE;AASD,wBAAgB,kBAAkB,CAC9B,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,MAAM,GAAE,uBAAgE,GACzE,MAAM,GAAG,IAAI,CAwEf;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IACxC,EAAE,EAAE,QAAQ,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CACpC,GAAG,MAAM,GAAG,IAAI,CA2BhB"}