@remnic/core 9.69.56 → 9.69.57

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 (2714) hide show
  1. package/dist/abort-error.d.ts +5 -6
  2. package/dist/abort-error.d.ts.map +1 -0
  3. package/dist/abstraction-nodes.d.ts +12 -13
  4. package/dist/abstraction-nodes.d.ts.map +1 -0
  5. package/dist/access-admin-ops-surface.d.ts +20 -153
  6. package/dist/access-admin-ops-surface.d.ts.map +1 -0
  7. package/dist/access-admin-ops-surface.js +65 -60
  8. package/dist/access-audit.d.ts +6 -10
  9. package/dist/access-audit.d.ts.map +1 -0
  10. package/dist/access-audit.js +2 -2
  11. package/dist/access-authorization-probe.d.ts +7 -152
  12. package/dist/access-authorization-probe.d.ts.map +1 -0
  13. package/dist/access-authorization-probe.js +66 -61
  14. package/dist/access-boundary.d.ts +156 -145
  15. package/dist/access-boundary.d.ts.map +1 -0
  16. package/dist/access-boundary.js +65 -60
  17. package/dist/access-citation-namespace.d.ts +3 -3
  18. package/dist/access-citation-namespace.d.ts.map +1 -0
  19. package/dist/access-citation.d.ts +6 -7
  20. package/dist/access-citation.d.ts.map +1 -0
  21. package/dist/access-cli.d.ts +7 -7
  22. package/dist/access-cli.d.ts.map +1 -0
  23. package/dist/access-cli.js +157 -152
  24. package/dist/access-cli.js.map +1 -1
  25. package/dist/access-coding-context-resolution.d.ts +4 -23
  26. package/dist/access-coding-context-resolution.d.ts.map +1 -0
  27. package/dist/access-errors.d.ts +57 -5
  28. package/dist/access-errors.d.ts.map +1 -0
  29. package/dist/access-errors.js +13 -3
  30. package/dist/access-extraction-force-flush.d.ts +5 -150
  31. package/dist/access-extraction-force-flush.d.ts.map +1 -0
  32. package/dist/access-extraction-force-flush.js +65 -60
  33. package/dist/access-health-types.d.ts +7 -30
  34. package/dist/access-health-types.d.ts.map +1 -0
  35. package/dist/access-http-briefing.d.ts +5 -150
  36. package/dist/access-http-briefing.d.ts.map +1 -0
  37. package/dist/access-http-briefing.js +66 -61
  38. package/dist/access-http-lcm-compaction.d.ts +12 -156
  39. package/dist/access-http-lcm-compaction.d.ts.map +1 -0
  40. package/dist/access-http-lifecycle-flush.d.ts +6 -150
  41. package/dist/access-http-lifecycle-flush.d.ts.map +1 -0
  42. package/dist/access-http-offline-stream.d.ts +6 -151
  43. package/dist/access-http-offline-stream.d.ts.map +1 -0
  44. package/dist/access-http-query.d.ts +6 -26
  45. package/dist/access-http-query.d.ts.map +1 -0
  46. package/dist/access-http-query.js +67 -62
  47. package/dist/access-http.d.ts +22 -189
  48. package/dist/access-http.d.ts.map +1 -0
  49. package/dist/access-http.js +93 -89
  50. package/dist/access-idempotency.d.ts +5 -5
  51. package/dist/access-idempotency.d.ts.map +1 -0
  52. package/dist/access-identity-continuity-surface.d.ts +4 -115
  53. package/dist/access-identity-continuity-surface.d.ts.map +1 -0
  54. package/dist/access-identity-continuity-surface.js +65 -60
  55. package/dist/access-lcm-surface.d.ts +5 -151
  56. package/dist/access-lcm-surface.d.ts.map +1 -0
  57. package/dist/access-lcm-surface.js +65 -60
  58. package/dist/access-mcp-admin-tools.d.ts +4 -5
  59. package/dist/access-mcp-admin-tools.d.ts.map +1 -0
  60. package/dist/access-mcp-output-schemas.d.ts +2 -3
  61. package/dist/access-mcp-output-schemas.d.ts.map +1 -0
  62. package/dist/access-mcp-output-schemas.js +1 -1
  63. package/dist/access-mcp-shared-context-tools.d.ts +3 -150
  64. package/dist/access-mcp-shared-context-tools.d.ts.map +1 -0
  65. package/dist/access-mcp-sse.d.ts +3 -5
  66. package/dist/access-mcp-sse.d.ts.map +1 -0
  67. package/dist/access-mcp-tool-names.d.ts +9 -10
  68. package/dist/access-mcp-tool-names.d.ts.map +1 -0
  69. package/dist/access-mcp.d.ts +178 -145
  70. package/dist/access-mcp.d.ts.map +1 -0
  71. package/dist/access-mcp.js +80 -76
  72. package/dist/access-memory-search-fanout.d.ts +18 -37
  73. package/dist/access-memory-search-fanout.d.ts.map +1 -0
  74. package/dist/access-memory-search-fanout.js +2 -2
  75. package/dist/access-namespace-preflight.d.ts +18 -22
  76. package/dist/access-namespace-preflight.d.ts.map +1 -0
  77. package/dist/access-namespace-preflight.js +65 -60
  78. package/dist/access-observe-helpers.d.ts +4 -5
  79. package/dist/access-observe-helpers.d.ts.map +1 -0
  80. package/dist/access-observe-transcript.d.ts +5 -115
  81. package/dist/access-observe-transcript.d.ts.map +1 -0
  82. package/dist/access-observe-write-category.d.ts +5 -42
  83. package/dist/access-observe-write-category.d.ts.map +1 -0
  84. package/dist/access-observe-write-category.js +7 -7
  85. package/dist/access-observe-write-surface.d.ts +6 -151
  86. package/dist/access-observe-write-surface.d.ts.map +1 -0
  87. package/dist/access-observe-write-surface.js +65 -60
  88. package/dist/access-offline-manifest.d.ts +10 -124
  89. package/dist/access-offline-manifest.d.ts.map +1 -0
  90. package/dist/access-offline-manifest.js +7 -7
  91. package/dist/access-operations-batch.d.ts +12 -2
  92. package/dist/access-operations-batch.d.ts.map +1 -0
  93. package/dist/access-operations-batch.js +69 -66
  94. package/dist/access-operations.d.ts +66 -188
  95. package/dist/access-operations.d.ts.map +1 -0
  96. package/dist/access-operations.js +76 -73
  97. package/dist/access-recall-concurrency.d.ts +11 -156
  98. package/dist/access-recall-concurrency.d.ts.map +1 -0
  99. package/dist/access-recall-concurrency.js +65 -60
  100. package/dist/access-recall-diagnostics.d.ts +64 -0
  101. package/dist/access-recall-diagnostics.d.ts.map +1 -0
  102. package/dist/access-recall-diagnostics.js +26 -0
  103. package/dist/access-recall-response.d.ts +7 -151
  104. package/dist/access-recall-response.d.ts.map +1 -0
  105. package/dist/access-recall-response.js +65 -60
  106. package/dist/access-recall-surface.d.ts +11 -152
  107. package/dist/access-recall-surface.d.ts.map +1 -0
  108. package/dist/access-recall-surface.js +65 -60
  109. package/dist/access-schema.d.ts +203 -221
  110. package/dist/access-schema.d.ts.map +1 -0
  111. package/dist/access-schema.js +3 -3
  112. package/dist/access-service-helpers.d.ts +33 -145
  113. package/dist/access-service-helpers.d.ts.map +1 -0
  114. package/dist/access-service.d.ts +1825 -145
  115. package/dist/access-service.d.ts.map +1 -0
  116. package/dist/access-service.js +65 -60
  117. package/dist/access-surface-catalog.d.ts +7 -154
  118. package/dist/access-surface-catalog.d.ts.map +1 -0
  119. package/dist/access-surface-catalog.js +69 -62
  120. package/dist/access-surface-catalog.js.map +1 -1
  121. package/dist/access-token-capabilities.d.ts +19 -22
  122. package/dist/access-token-capabilities.d.ts.map +1 -0
  123. package/dist/access-token-capabilities.js +2 -2
  124. package/dist/access-wearables-meetings-surface.d.ts +14 -54
  125. package/dist/access-wearables-meetings-surface.d.ts.map +1 -0
  126. package/dist/action-confidence.d.ts +19 -40
  127. package/dist/action-confidence.d.ts.map +1 -0
  128. package/dist/active-context-config.d.ts +7 -8
  129. package/dist/active-context-config.d.ts.map +1 -0
  130. package/dist/active-context-transform.d.ts +31 -33
  131. package/dist/active-context-transform.d.ts.map +1 -0
  132. package/dist/active-memory-bridge.d.ts +10 -28
  133. package/dist/active-memory-bridge.d.ts.map +1 -0
  134. package/dist/active-recall.d.ts +11 -30
  135. package/dist/active-recall.d.ts.map +1 -0
  136. package/dist/active-recall.js +23 -23
  137. package/dist/activity/config.d.ts +24 -0
  138. package/dist/activity/config.d.ts.map +1 -0
  139. package/dist/activity/digest.d.ts +15 -35
  140. package/dist/activity/digest.d.ts.map +1 -0
  141. package/dist/activity/dwell.d.ts +14 -0
  142. package/dist/activity/dwell.d.ts.map +1 -0
  143. package/dist/activity/from-ms.d.ts +7 -0
  144. package/dist/activity/from-ms.d.ts.map +1 -0
  145. package/dist/activity/heading-level.d.ts +15 -0
  146. package/dist/activity/heading-level.d.ts.map +1 -0
  147. package/dist/activity/heading-title.d.ts +15 -0
  148. package/dist/activity/heading-title.d.ts.map +1 -0
  149. package/dist/activity/index.d.ts +46 -0
  150. package/dist/activity/index.d.ts.map +1 -0
  151. package/dist/activity/journal-extract.d.ts +68 -0
  152. package/dist/activity/journal-extract.d.ts.map +1 -0
  153. package/dist/activity/journal-heading.d.ts +26 -0
  154. package/dist/activity/journal-heading.d.ts.map +1 -0
  155. package/dist/activity/journal-path.d.ts +9 -0
  156. package/dist/activity/journal-path.d.ts.map +1 -0
  157. package/dist/activity/journal-read.d.ts +31 -0
  158. package/dist/activity/journal-read.d.ts.map +1 -0
  159. package/dist/activity/journal-section.d.ts +17 -0
  160. package/dist/activity/journal-section.d.ts.map +1 -0
  161. package/dist/activity/journal-source.d.ts +25 -0
  162. package/dist/activity/journal-source.d.ts.map +1 -0
  163. package/dist/activity/journal-state.d.ts +21 -0
  164. package/dist/activity/journal-state.d.ts.map +1 -0
  165. package/dist/activity/journal-state.lock-worker.d.ts +2 -0
  166. package/dist/activity/journal-state.lock-worker.d.ts.map +1 -0
  167. package/dist/activity/journal-strip.d.ts +6 -0
  168. package/dist/activity/journal-strip.d.ts.map +1 -0
  169. package/dist/activity/journal-vault-prereq.d.ts +23 -0
  170. package/dist/activity/journal-vault-prereq.d.ts.map +1 -0
  171. package/dist/activity/journal-vault-provenance.d.ts +12 -0
  172. package/dist/activity/journal-vault-provenance.d.ts.map +1 -0
  173. package/dist/activity/journal-vault-read.d.ts +32 -0
  174. package/dist/activity/journal-vault-read.d.ts.map +1 -0
  175. package/dist/activity/journal.d.ts +29 -0
  176. package/dist/activity/journal.d.ts.map +1 -0
  177. package/dist/activity/memory-gen.d.ts +71 -0
  178. package/dist/activity/memory-gen.d.ts.map +1 -0
  179. package/dist/activity/pipeline.d.ts +44 -0
  180. package/dist/activity/pipeline.d.ts.map +1 -0
  181. package/dist/activity/privacy-delete-plan.d.ts +22 -0
  182. package/dist/activity/privacy-delete-plan.d.ts.map +1 -0
  183. package/dist/activity/privacy-enabled.d.ts +16 -0
  184. package/dist/activity/privacy-enabled.d.ts.map +1 -0
  185. package/dist/activity/privacy-gate-resolve.d.ts +17 -0
  186. package/dist/activity/privacy-gate-resolve.d.ts.map +1 -0
  187. package/dist/activity/privacy-keys.d.ts +8 -0
  188. package/dist/activity/privacy-keys.d.ts.map +1 -0
  189. package/dist/activity/privacy-redact.d.ts +13 -0
  190. package/dist/activity/privacy-redact.d.ts.map +1 -0
  191. package/dist/activity/privacy-status.d.ts +30 -0
  192. package/dist/activity/privacy-status.d.ts.map +1 -0
  193. package/dist/activity/privacy-window.d.ts +15 -0
  194. package/dist/activity/privacy-window.d.ts.map +1 -0
  195. package/dist/activity/privacy.d.ts +17 -0
  196. package/dist/activity/privacy.d.ts.map +1 -0
  197. package/dist/activity/reindex.d.ts +23 -0
  198. package/dist/activity/reindex.d.ts.map +1 -0
  199. package/dist/activity/retain-days.d.ts +8 -0
  200. package/dist/activity/retain-days.d.ts.map +1 -0
  201. package/dist/activity/runner.d.ts +100 -0
  202. package/dist/activity/runner.d.ts.map +1 -0
  203. package/dist/activity/scheduler.d.ts +90 -0
  204. package/dist/activity/scheduler.d.ts.map +1 -0
  205. package/dist/activity/source-client.d.ts +24 -0
  206. package/dist/activity/source-client.d.ts.map +1 -0
  207. package/dist/activity/store.d.ts +53 -0
  208. package/dist/activity/store.d.ts.map +1 -0
  209. package/dist/activity/sync-registration.d.ts +83 -0
  210. package/dist/activity/sync-registration.d.ts.map +1 -0
  211. package/dist/activity/timeline/analysis-batch-empty.d.ts +8 -0
  212. package/dist/activity/timeline/analysis-batch-empty.d.ts.map +1 -0
  213. package/dist/activity/timeline/analysis-batch.d.ts +12 -0
  214. package/dist/activity/timeline/analysis-batch.d.ts.map +1 -0
  215. package/dist/activity/timeline/analysis-claim.d.ts +14 -0
  216. package/dist/activity/timeline/analysis-claim.d.ts.map +1 -0
  217. package/dist/activity/timeline/analysis-dup.d.ts +8 -0
  218. package/dist/activity/timeline/analysis-dup.d.ts.map +1 -0
  219. package/dist/activity/timeline/analysis-empty.d.ts +8 -0
  220. package/dist/activity/timeline/analysis-empty.d.ts.map +1 -0
  221. package/dist/activity/timeline/analysis-evidence.d.ts +12 -0
  222. package/dist/activity/timeline/analysis-evidence.d.ts.map +1 -0
  223. package/dist/activity/timeline/analysis-failure.d.ts +19 -0
  224. package/dist/activity/timeline/analysis-failure.d.ts.map +1 -0
  225. package/dist/activity/timeline/analysis-max.d.ts +8 -0
  226. package/dist/activity/timeline/analysis-max.d.ts.map +1 -0
  227. package/dist/activity/timeline/analysis-metadata.d.ts +30 -0
  228. package/dist/activity/timeline/analysis-metadata.d.ts.map +1 -0
  229. package/dist/activity/timeline/analysis-order.d.ts +8 -0
  230. package/dist/activity/timeline/analysis-order.d.ts.map +1 -0
  231. package/dist/activity/timeline/analysis-overlap.d.ts +8 -0
  232. package/dist/activity/timeline/analysis-overlap.d.ts.map +1 -0
  233. package/dist/activity/timeline/analysis-prompt.d.ts +13 -0
  234. package/dist/activity/timeline/analysis-prompt.d.ts.map +1 -0
  235. package/dist/activity/timeline/analysis-provider.d.ts +84 -0
  236. package/dist/activity/timeline/analysis-provider.d.ts.map +1 -0
  237. package/dist/activity/timeline/analysis-run.d.ts +40 -0
  238. package/dist/activity/timeline/analysis-run.d.ts.map +1 -0
  239. package/dist/activity/timeline/analysis.d.ts +63 -0
  240. package/dist/activity/timeline/analysis.d.ts.map +1 -0
  241. package/dist/activity/timeline/build.d.ts +50 -0
  242. package/dist/activity/timeline/build.d.ts.map +1 -0
  243. package/dist/activity/timeline/categories.d.ts +27 -0
  244. package/dist/activity/timeline/categories.d.ts.map +1 -0
  245. package/dist/activity/timeline/classify.d.ts +20 -0
  246. package/dist/activity/timeline/classify.d.ts.map +1 -0
  247. package/dist/activity/timeline/corrections.d.ts +37 -0
  248. package/dist/activity/timeline/corrections.d.ts.map +1 -0
  249. package/dist/activity/timeline/index.d.ts +35 -0
  250. package/dist/activity/timeline/index.d.ts.map +1 -0
  251. package/dist/activity/timeline/journal-recap-persist.d.ts +14 -0
  252. package/dist/activity/timeline/journal-recap-persist.d.ts.map +1 -0
  253. package/dist/activity/timeline/journal-recap.d.ts +21 -0
  254. package/dist/activity/timeline/journal-recap.d.ts.map +1 -0
  255. package/dist/activity/timeline/publish-cli.d.ts +17 -0
  256. package/dist/activity/timeline/publish-cli.d.ts.map +1 -0
  257. package/dist/activity/timeline/query.d.ts +86 -0
  258. package/dist/activity/timeline/query.d.ts.map +1 -0
  259. package/dist/activity/timeline/recap-card-count.d.ts +7 -0
  260. package/dist/activity/timeline/recap-card-count.d.ts.map +1 -0
  261. package/dist/activity/timeline/recap-card-id.d.ts +14 -0
  262. package/dist/activity/timeline/recap-card-id.d.ts.map +1 -0
  263. package/dist/activity/timeline/recap-date.d.ts +15 -0
  264. package/dist/activity/timeline/recap-date.d.ts.map +1 -0
  265. package/dist/activity/timeline/recap-empty.d.ts +8 -0
  266. package/dist/activity/timeline/recap-empty.d.ts.map +1 -0
  267. package/dist/activity/timeline/recap-export-range.d.ts +55 -0
  268. package/dist/activity/timeline/recap-export-range.d.ts.map +1 -0
  269. package/dist/activity/timeline/recap-export.d.ts +48 -0
  270. package/dist/activity/timeline/recap-export.d.ts.map +1 -0
  271. package/dist/activity/timeline/recap-fallback.d.ts +47 -0
  272. package/dist/activity/timeline/recap-fallback.d.ts.map +1 -0
  273. package/dist/activity/timeline/recap-id.d.ts +8 -0
  274. package/dist/activity/timeline/recap-id.d.ts.map +1 -0
  275. package/dist/activity/timeline/recap-markdown.d.ts +15 -0
  276. package/dist/activity/timeline/recap-markdown.d.ts.map +1 -0
  277. package/dist/activity/timeline/recap-merge-edits.d.ts +24 -0
  278. package/dist/activity/timeline/recap-merge-edits.d.ts.map +1 -0
  279. package/dist/activity/timeline/recap-sort-key.d.ts +9 -0
  280. package/dist/activity/timeline/recap-sort-key.d.ts.map +1 -0
  281. package/dist/activity/timeline/recap-tz.d.ts +15 -0
  282. package/dist/activity/timeline/recap-tz.d.ts.map +1 -0
  283. package/dist/activity/timeline/recap-window.d.ts +19 -0
  284. package/dist/activity/timeline/recap-window.d.ts.map +1 -0
  285. package/dist/activity/timeline/regenerate.d.ts +84 -0
  286. package/dist/activity/timeline/regenerate.d.ts.map +1 -0
  287. package/dist/activity/timeline/types.d.ts +98 -0
  288. package/dist/activity/timeline/types.d.ts.map +1 -0
  289. package/dist/activity/timeline/week-config-hash.d.ts +13 -0
  290. package/dist/activity/timeline/week-config-hash.d.ts.map +1 -0
  291. package/dist/activity/timeline/week-count.d.ts +7 -0
  292. package/dist/activity/timeline/week-count.d.ts.map +1 -0
  293. package/dist/activity/timeline/week-dashboard.d.ts +79 -0
  294. package/dist/activity/timeline/week-dashboard.d.ts.map +1 -0
  295. package/dist/activity/timeline/week-days.d.ts +6 -0
  296. package/dist/activity/timeline/week-days.d.ts.map +1 -0
  297. package/dist/activity/timeline/week-export.d.ts +27 -0
  298. package/dist/activity/timeline/week-export.d.ts.map +1 -0
  299. package/dist/activity/timeline/week-iso.d.ts +16 -0
  300. package/dist/activity/timeline/week-iso.d.ts.map +1 -0
  301. package/dist/activity/timeline/week-monday.d.ts +3 -0
  302. package/dist/activity/timeline/week-monday.d.ts.map +1 -0
  303. package/dist/activity/timeline/week-previous.d.ts +39 -0
  304. package/dist/activity/timeline/week-previous.d.ts.map +1 -0
  305. package/dist/activity/timeline/week-range.d.ts +10 -0
  306. package/dist/activity/timeline/week-range.d.ts.map +1 -0
  307. package/dist/activity/timeline/week-recurring.d.ts +21 -0
  308. package/dist/activity/timeline/week-recurring.d.ts.map +1 -0
  309. package/dist/activity/timeline/week-snapshot.d.ts +17 -0
  310. package/dist/activity/timeline/week-snapshot.d.ts.map +1 -0
  311. package/dist/activity/timeline/week-span.d.ts +2 -0
  312. package/dist/activity/timeline/week-span.d.ts.map +1 -0
  313. package/dist/activity/timeline/week-sunday.d.ts +3 -0
  314. package/dist/activity/timeline/week-sunday.d.ts.map +1 -0
  315. package/dist/activity/timeline/weekly-persist.d.ts +18 -0
  316. package/dist/activity/timeline/weekly-persist.d.ts.map +1 -0
  317. package/dist/activity/timeline/weekly.d.ts +42 -0
  318. package/dist/activity/timeline/weekly.d.ts.map +1 -0
  319. package/dist/activity/to-ms.d.ts +7 -0
  320. package/dist/activity/to-ms.d.ts.map +1 -0
  321. package/dist/activity/types.d.ts +208 -0
  322. package/dist/activity/types.d.ts.map +1 -0
  323. package/dist/activity/vault-begin.d.ts +8 -0
  324. package/dist/activity/vault-begin.d.ts.map +1 -0
  325. package/dist/activity/vault-body-trim.d.ts +7 -0
  326. package/dist/activity/vault-body-trim.d.ts.map +1 -0
  327. package/dist/activity/vault-dry-run.d.ts +13 -0
  328. package/dist/activity/vault-dry-run.d.ts.map +1 -0
  329. package/dist/activity/vault-end.d.ts +8 -0
  330. package/dist/activity/vault-end.d.ts.map +1 -0
  331. package/dist/activity/vault-frontmatter.d.ts +41 -0
  332. package/dist/activity/vault-frontmatter.d.ts.map +1 -0
  333. package/dist/activity/vault-insert.d.ts +24 -0
  334. package/dist/activity/vault-insert.d.ts.map +1 -0
  335. package/dist/activity/vault-join.d.ts +2 -0
  336. package/dist/activity/vault-join.d.ts.map +1 -0
  337. package/dist/activity/vault-marker.d.ts +12 -0
  338. package/dist/activity/vault-marker.d.ts.map +1 -0
  339. package/dist/activity/vault-name-trim.d.ts +7 -0
  340. package/dist/activity/vault-name-trim.d.ts.map +1 -0
  341. package/dist/activity/vault-path.d.ts +20 -0
  342. package/dist/activity/vault-path.d.ts.map +1 -0
  343. package/dist/activity/vault-publish.d.ts +71 -0
  344. package/dist/activity/vault-publish.d.ts.map +1 -0
  345. package/dist/activity/vault-publisher.d.ts +58 -0
  346. package/dist/activity/vault-publisher.d.ts.map +1 -0
  347. package/dist/activity/vault-region-pair.d.ts +17 -0
  348. package/dist/activity/vault-region-pair.d.ts.map +1 -0
  349. package/dist/activity/vault-region.d.ts +24 -0
  350. package/dist/activity/vault-region.d.ts.map +1 -0
  351. package/dist/activity/vault-status.d.ts +32 -0
  352. package/dist/activity/vault-status.d.ts.map +1 -0
  353. package/dist/activity/vault-suffix.d.ts +7 -0
  354. package/dist/activity/vault-suffix.d.ts.map +1 -0
  355. package/dist/activity/vault-wikilink.d.ts +2 -0
  356. package/dist/activity/vault-wikilink.d.ts.map +1 -0
  357. package/dist/activity/window-order.d.ts +17 -0
  358. package/dist/activity/window-order.d.ts.map +1 -0
  359. package/dist/adapters/claude-code.d.ts +3 -5
  360. package/dist/adapters/claude-code.d.ts.map +1 -0
  361. package/dist/adapters/codex.d.ts +3 -5
  362. package/dist/adapters/codex.d.ts.map +1 -0
  363. package/dist/adapters/grok.d.ts +23 -0
  364. package/dist/adapters/grok.d.ts.map +1 -0
  365. package/dist/adapters/hermes.d.ts +3 -5
  366. package/dist/adapters/hermes.d.ts.map +1 -0
  367. package/dist/adapters/index.d.ts +9 -51
  368. package/dist/adapters/index.d.ts.map +1 -0
  369. package/dist/adapters/index.js +4 -4
  370. package/dist/adapters/opencode.d.ts +22 -0
  371. package/dist/adapters/opencode.d.ts.map +1 -0
  372. package/dist/adapters/registry.d.ts +3 -5
  373. package/dist/adapters/registry.d.ts.map +1 -0
  374. package/dist/adapters/registry.js +2 -2
  375. package/dist/adapters/replit.d.ts +3 -5
  376. package/dist/adapters/replit.d.ts.map +1 -0
  377. package/dist/adapters/types.d.ts +5 -6
  378. package/dist/adapters/types.d.ts.map +1 -0
  379. package/dist/admin/admin-surfaces.d.ts +362 -0
  380. package/dist/admin/admin-surfaces.d.ts.map +1 -0
  381. package/dist/ambient-provenance.d.ts +10 -30
  382. package/dist/ambient-provenance.d.ts.map +1 -0
  383. package/dist/archive-mutation-version.d.ts +8 -9
  384. package/dist/archive-mutation-version.d.ts.map +1 -0
  385. package/dist/artifact-search.d.ts +5 -25
  386. package/dist/artifact-search.d.ts.map +1 -0
  387. package/dist/auto-sync-CWSZDLLW.js +1 -1
  388. package/dist/background-generation-config.d.ts +3 -4
  389. package/dist/background-generation-config.d.ts.map +1 -0
  390. package/dist/background-generation.d.ts +5 -24
  391. package/dist/background-generation.d.ts.map +1 -0
  392. package/dist/behavior-learner.d.ts +6 -25
  393. package/dist/behavior-learner.d.ts.map +1 -0
  394. package/dist/behavior-signals.d.ts +5 -24
  395. package/dist/behavior-signals.d.ts.map +1 -0
  396. package/dist/binary-lifecycle/backend.d.ts +46 -0
  397. package/dist/binary-lifecycle/backend.d.ts.map +1 -0
  398. package/dist/binary-lifecycle/index.d.ts +13 -0
  399. package/dist/binary-lifecycle/index.d.ts.map +1 -0
  400. package/dist/binary-lifecycle/manifest.d.ts +22 -0
  401. package/dist/binary-lifecycle/manifest.d.ts.map +1 -0
  402. package/dist/binary-lifecycle/pipeline.d.ts +33 -0
  403. package/dist/binary-lifecycle/pipeline.d.ts.map +1 -0
  404. package/dist/binary-lifecycle/scanner.d.ts +21 -0
  405. package/dist/binary-lifecycle/scanner.d.ts.map +1 -0
  406. package/dist/binary-lifecycle/types.d.ts +70 -0
  407. package/dist/binary-lifecycle/types.d.ts.map +1 -0
  408. package/dist/bootstrap.d.ts +6 -115
  409. package/dist/bootstrap.d.ts.map +1 -0
  410. package/dist/bounded-jsonl-state.d.ts +5 -5
  411. package/dist/bounded-jsonl-state.d.ts.map +1 -0
  412. package/dist/boxes.d.ts +9 -9
  413. package/dist/boxes.d.ts.map +1 -0
  414. package/dist/briefing-window.d.ts +8 -40
  415. package/dist/briefing-window.d.ts.map +1 -0
  416. package/dist/briefing.d.ts +28 -61
  417. package/dist/briefing.d.ts.map +1 -0
  418. package/dist/briefing.js +14 -14
  419. package/dist/buffer-surprise-report.d.ts +6 -26
  420. package/dist/buffer-surprise-report.d.ts.map +1 -0
  421. package/dist/buffer-surprise.d.ts +5 -6
  422. package/dist/buffer-surprise.d.ts.map +1 -0
  423. package/dist/buffer-turn-helpers.d.ts +32 -18
  424. package/dist/buffer-turn-helpers.d.ts.map +1 -0
  425. package/dist/buffer.d.ts +9 -41
  426. package/dist/buffer.d.ts.map +1 -0
  427. package/dist/buffer.js +3 -3
  428. package/dist/bulk-import/index.d.ts +4 -44
  429. package/dist/bulk-import/index.d.ts.map +1 -0
  430. package/dist/bulk-import/pipeline.d.ts +30 -0
  431. package/dist/bulk-import/pipeline.d.ts.map +1 -0
  432. package/dist/bulk-import/registry.d.ts +23 -0
  433. package/dist/bulk-import/registry.d.ts.map +1 -0
  434. package/dist/bulk-import/types.d.ts +83 -0
  435. package/dist/bulk-import/types.d.ts.map +1 -0
  436. package/dist/calibration.d.ts +14 -37
  437. package/dist/calibration.d.ts.map +1 -0
  438. package/dist/capabilities.d.ts +64 -84
  439. package/dist/capabilities.d.ts.map +1 -0
  440. package/dist/capsule-cli.d.ts +23 -24
  441. package/dist/capsule-cli.d.ts.map +1 -0
  442. package/dist/capsule-crypto-7FJQINUR.js +18 -0
  443. package/dist/causal-behavior.d.ts +9 -38
  444. package/dist/causal-behavior.d.ts.map +1 -0
  445. package/dist/causal-behavior.js +2 -2
  446. package/dist/causal-chain.d.ts +13 -17
  447. package/dist/causal-chain.d.ts.map +1 -0
  448. package/dist/causal-chain.js +2 -2
  449. package/dist/causal-consolidation.d.ts +10 -29
  450. package/dist/causal-consolidation.d.ts.map +1 -0
  451. package/dist/causal-consolidation.js +17 -17
  452. package/dist/causal-retrieval.d.ts +6 -11
  453. package/dist/causal-retrieval.d.ts.map +1 -0
  454. package/dist/causal-retrieval.js +2 -2
  455. package/dist/causal-trajectory-graph.d.ts +7 -29
  456. package/dist/causal-trajectory-graph.d.ts.map +1 -0
  457. package/dist/causal-trajectory-graph.js +2 -2
  458. package/dist/causal-trajectory.d.ts +23 -25
  459. package/dist/causal-trajectory.d.ts.map +1 -0
  460. package/dist/causal-trajectory.js +1 -1
  461. package/dist/census-validation.d.ts +5 -6
  462. package/dist/census-validation.d.ts.map +1 -0
  463. package/dist/chat/chat-cli.d.ts +38 -0
  464. package/dist/chat/chat-cli.d.ts.map +1 -0
  465. package/dist/chat/chat-config.d.ts +25 -0
  466. package/dist/chat/chat-config.d.ts.map +1 -0
  467. package/dist/chat/chat-engine.d.ts +82 -0
  468. package/dist/chat/chat-engine.d.ts.map +1 -0
  469. package/dist/chat/chat-executor.d.ts +26 -0
  470. package/dist/chat/chat-executor.d.ts.map +1 -0
  471. package/dist/chat/chat-factory.d.ts +46 -0
  472. package/dist/chat/chat-factory.d.ts.map +1 -0
  473. package/dist/chat/chat-http.d.ts +83 -0
  474. package/dist/chat/chat-http.d.ts.map +1 -0
  475. package/dist/chat/chat-llm.d.ts +77 -0
  476. package/dist/chat/chat-llm.d.ts.map +1 -0
  477. package/dist/chat/chat-session.d.ts +118 -0
  478. package/dist/chat/chat-session.d.ts.map +1 -0
  479. package/dist/chat/chat-system-prompt.d.ts +23 -0
  480. package/dist/chat/chat-system-prompt.d.ts.map +1 -0
  481. package/dist/chat/chat-tools.d.ts +22 -0
  482. package/dist/chat/chat-tools.d.ts.map +1 -0
  483. package/dist/chat/chat-types.d.ts +134 -0
  484. package/dist/chat/chat-types.d.ts.map +1 -0
  485. package/dist/chunk-2CBWEIS4.js +1286 -0
  486. package/dist/chunk-2JQZSQXI.js +81 -0
  487. package/dist/chunk-2KHIBLO5.js +33 -0
  488. package/dist/chunk-2KHIBLO5.js.map +1 -0
  489. package/dist/chunk-2NLLXCJG.js +112 -0
  490. package/dist/chunk-2WMXZYMS.js +25 -0
  491. package/dist/chunk-34ZGBAGE.js +61 -0
  492. package/dist/chunk-36S7UHAW.js +623 -0
  493. package/dist/chunk-3JLWSFTV.js +801 -0
  494. package/dist/chunk-3MUKQQ7A.js +157 -0
  495. package/dist/chunk-3MUKQQ7A.js.map +1 -0
  496. package/dist/chunk-3RZOLUZT.js +140 -0
  497. package/dist/chunk-3SL52JKD.js +160 -0
  498. package/dist/chunk-4ALOINQ4.js +18512 -0
  499. package/dist/chunk-4ALOINQ4.js.map +1 -0
  500. package/dist/chunk-4QEZS7PK.js +502 -0
  501. package/dist/chunk-52VL6LCY.js +648 -0
  502. package/dist/chunk-52VL6LCY.js.map +1 -0
  503. package/dist/chunk-5HFVWYHL.js +111 -0
  504. package/dist/chunk-5HFVWYHL.js.map +1 -0
  505. package/dist/chunk-5QRYGLZN.js +35 -0
  506. package/dist/chunk-5R3C5LEZ.js +263 -0
  507. package/dist/chunk-634UKELB.js +77 -0
  508. package/dist/chunk-64JK4TL7.js +801 -0
  509. package/dist/chunk-6E5GYDIE.js +141 -0
  510. package/dist/chunk-6ISP2EN2.js +51 -0
  511. package/dist/chunk-6RD7MSIO.js +212 -0
  512. package/dist/chunk-6UDLN4IA.js +70 -0
  513. package/dist/chunk-754XN6LX.js +256 -0
  514. package/dist/chunk-7H2LEYYJ.js +256 -0
  515. package/dist/chunk-A7AISUJI.js +103 -0
  516. package/dist/chunk-AULKCNZW.js +727 -0
  517. package/dist/chunk-B7SSU55V.js +1686 -0
  518. package/dist/chunk-BICNRVEC.js +224 -0
  519. package/dist/chunk-BJI2D4SU.js +53 -0
  520. package/dist/chunk-BQB5ZMYO.js +28 -0
  521. package/dist/chunk-BSDBDFKZ.js +168 -0
  522. package/dist/chunk-BSDBDFKZ.js.map +1 -0
  523. package/dist/chunk-C5CPYMLX.js +315 -0
  524. package/dist/chunk-C6LRFPZL.js +4007 -0
  525. package/dist/chunk-C6LRFPZL.js.map +1 -0
  526. package/dist/chunk-CS2JO77A.js +95 -0
  527. package/dist/chunk-DTABICJ3.js +549 -0
  528. package/dist/chunk-DXODYQ7J.js +319 -0
  529. package/dist/chunk-DXODYQ7J.js.map +1 -0
  530. package/dist/chunk-E6UNM67F.js +432 -0
  531. package/dist/chunk-ENUI3IO7.js +271 -0
  532. package/dist/chunk-FF2XYADH.js +1084 -0
  533. package/dist/chunk-FF6N7BXC.js +389 -0
  534. package/dist/chunk-FNQEXI3D.js +22 -0
  535. package/dist/chunk-FNQEXI3D.js.map +1 -0
  536. package/dist/chunk-FSXD6Y4H.js +203 -0
  537. package/dist/chunk-GK6NOQE6.js +3400 -0
  538. package/dist/chunk-GRSFFLUY.js +43 -0
  539. package/dist/chunk-GWK7FEUL.js +761 -0
  540. package/dist/chunk-GWQVMKUJ.js +218 -0
  541. package/dist/chunk-H7O5L2IQ.js +3560 -0
  542. package/dist/chunk-H7O5L2IQ.js.map +1 -0
  543. package/dist/chunk-HKHZWJ3E.js +63 -0
  544. package/dist/chunk-IAZPYX6W.js +182 -0
  545. package/dist/chunk-IG747LRN.js +189 -0
  546. package/dist/chunk-IK63WA5A.js +30 -0
  547. package/dist/chunk-IRGQYQQ7.js +143 -0
  548. package/dist/chunk-IRGQYQQ7.js.map +1 -0
  549. package/dist/chunk-IUD6NLNM.js +24 -0
  550. package/dist/chunk-JSJZ2NXS.js +9782 -0
  551. package/dist/chunk-JUOJGZPV.js +566 -0
  552. package/dist/chunk-KA4U5GQN.js +960 -0
  553. package/dist/chunk-KQAFEZQX.js +264 -0
  554. package/dist/chunk-L4WBADKG.js +72 -0
  555. package/dist/chunk-LAL4B37X.js +275 -0
  556. package/dist/chunk-LELJRLPY.js +253 -0
  557. package/dist/chunk-LMMQKZK3.js +403 -0
  558. package/dist/chunk-LQ23DMTT.js +74 -0
  559. package/dist/chunk-LV6ZB6CA.js +285 -0
  560. package/dist/chunk-M5IJP3YW.js +5505 -0
  561. package/dist/chunk-MMMYRC7Q.js +606 -0
  562. package/dist/chunk-MMMYRC7Q.js.map +1 -0
  563. package/dist/chunk-MWZMVLXL.js +415 -0
  564. package/dist/chunk-MZUQVWVC.js +72 -0
  565. package/dist/chunk-MZUQVWVC.js.map +1 -0
  566. package/dist/chunk-N4VCHRLD.js +29 -0
  567. package/dist/chunk-NKXHCCLB.js +879 -0
  568. package/dist/chunk-NVCWA4QC.js +112 -0
  569. package/dist/chunk-ONWVMYHX.js +122 -0
  570. package/dist/chunk-P6P35FY4.js +54 -0
  571. package/dist/chunk-P7M22CYB.js +346 -0
  572. package/dist/chunk-QMWKENNK.js +111 -0
  573. package/dist/chunk-QOPB6KE3.js +1530 -0
  574. package/dist/chunk-RBULO7DO.js +223 -0
  575. package/dist/chunk-RDESQOEE.js +1008 -0
  576. package/dist/chunk-RMF763SX.js +115 -0
  577. package/dist/chunk-RN6ZCNM5.js +321 -0
  578. package/dist/chunk-S2OBXHMN.js +11341 -0
  579. package/dist/chunk-S3JPD4N7.js +216 -0
  580. package/dist/chunk-SF6RFI5Z.js +165 -0
  581. package/dist/chunk-SJV3AOZ2.js +2453 -0
  582. package/dist/chunk-SLULR4GC.js +202 -0
  583. package/dist/chunk-TFXXMTHV.js +1476 -0
  584. package/dist/chunk-TYP7GYRI.js +216 -0
  585. package/dist/chunk-TYZK56OA.js +2440 -0
  586. package/dist/chunk-VLDVNZQE.js +921 -0
  587. package/dist/chunk-W6YK672C.js +511 -0
  588. package/dist/chunk-X2NFFBTO.js +576 -0
  589. package/dist/chunk-X45KZOT2.js +1917 -0
  590. package/dist/chunk-X7Y7WX73.js +249 -0
  591. package/dist/chunk-XIXM6G7I.js +43 -0
  592. package/dist/chunk-XLXYARWC.js +210 -0
  593. package/dist/chunk-XVW52M6I.js +223 -0
  594. package/dist/chunk-YHU5XUF4.js +342 -0
  595. package/dist/chunk-YRH3C2OJ.js +73 -0
  596. package/dist/chunk-YXQE67A7.js +137 -0
  597. package/dist/chunk-ZHUVMSHI.js +731 -0
  598. package/dist/chunk-ZHXSOMYH.js +297 -0
  599. package/dist/chunk-ZIEZJMFW.js +768 -0
  600. package/dist/chunk-ZMT4ZVJU.js +31013 -0
  601. package/dist/chunk-ZMT4ZVJU.js.map +1 -0
  602. package/dist/chunk-ZOASYXBS.js +629 -0
  603. package/dist/chunk-ZOASYXBS.js.map +1 -0
  604. package/dist/chunk-ZSEFGDCI.js +98 -0
  605. package/dist/chunk-ZX5N5D6M.js +65 -0
  606. package/dist/chunking.d.ts +9 -10
  607. package/dist/chunking.d.ts.map +1 -0
  608. package/dist/citations.d.ts +8 -9
  609. package/dist/citations.d.ts.map +1 -0
  610. package/dist/cli/creation-ledger-commands.d.ts +24 -0
  611. package/dist/cli/creation-ledger-commands.d.ts.map +1 -0
  612. package/dist/cli/deep-recall-commands.d.ts +19 -0
  613. package/dist/cli/deep-recall-commands.d.ts.map +1 -0
  614. package/dist/cli/harmonic-search.d.ts +12 -0
  615. package/dist/cli/harmonic-search.d.ts.map +1 -0
  616. package/dist/cli/meetings-commands.d.ts +16 -0
  617. package/dist/cli/meetings-commands.d.ts.map +1 -0
  618. package/dist/cli/memory-browse-commands.d.ts +11 -0
  619. package/dist/cli/memory-browse-commands.d.ts.map +1 -0
  620. package/dist/cli/okf-commands.d.ts +5 -0
  621. package/dist/cli/okf-commands.d.ts.map +1 -0
  622. package/dist/cli/recall-navigation-commands.d.ts +11 -0
  623. package/dist/cli/recall-navigation-commands.d.ts.map +1 -0
  624. package/dist/cli/research-status-commands.d.ts +26 -0
  625. package/dist/cli/research-status-commands.d.ts.map +1 -0
  626. package/dist/cli/skills-commands.d.ts +14 -0
  627. package/dist/cli/skills-commands.d.ts.map +1 -0
  628. package/dist/cli/timeline-publish-commands.d.ts +11 -0
  629. package/dist/cli/timeline-publish-commands.d.ts.map +1 -0
  630. package/dist/cli-fallback.d.ts +13 -14
  631. package/dist/cli-fallback.d.ts.map +1 -0
  632. package/dist/cli.d.ts +1036 -165
  633. package/dist/cli.d.ts.map +1 -0
  634. package/dist/cli.js +120 -116
  635. package/dist/coding/action-gate.d.ts +176 -0
  636. package/dist/coding/action-gate.d.ts.map +1 -0
  637. package/dist/coding/architecture-card.d.ts +135 -0
  638. package/dist/coding/architecture-card.d.ts.map +1 -0
  639. package/dist/coding/architecture-surfaces.d.ts +166 -0
  640. package/dist/coding/architecture-surfaces.d.ts.map +1 -0
  641. package/dist/coding/codegraph-runtime.d.ts +321 -0
  642. package/dist/coding/codegraph-runtime.d.ts.map +1 -0
  643. package/dist/coding/codegraph-surfaces.d.ts +191 -0
  644. package/dist/coding/codegraph-surfaces.d.ts.map +1 -0
  645. package/dist/coding/coding-graph-types.d.ts +16 -17
  646. package/dist/coding/coding-graph-types.d.ts.map +1 -0
  647. package/dist/coding/coding-knowledge-config.d.ts +69 -0
  648. package/dist/coding/coding-knowledge-config.d.ts.map +1 -0
  649. package/dist/coding/coding-namespace.d.ts +214 -0
  650. package/dist/coding/coding-namespace.d.ts.map +1 -0
  651. package/dist/coding/decision-records.d.ts +120 -0
  652. package/dist/coding/decision-records.d.ts.map +1 -0
  653. package/dist/coding/decision-surfaces.d.ts +143 -0
  654. package/dist/coding/decision-surfaces.d.ts.map +1 -0
  655. package/dist/coding/export-okf-codegraph.d.ts +9 -28
  656. package/dist/coding/export-okf-codegraph.d.ts.map +1 -0
  657. package/dist/coding/export-okf-codegraph.js +13 -13
  658. package/dist/coding/git-context.d.ts +92 -0
  659. package/dist/coding/git-context.d.ts.map +1 -0
  660. package/dist/coding/optional-coding-graph.d.ts +9 -10
  661. package/dist/coding/optional-coding-graph.d.ts.map +1 -0
  662. package/dist/coding/pre-action-gate.d.ts +58 -18
  663. package/dist/coding/pre-action-gate.d.ts.map +1 -0
  664. package/dist/coding/pre-action-gate.js +2 -2
  665. package/dist/coding/review-context.d.ts +147 -0
  666. package/dist/coding/review-context.d.ts.map +1 -0
  667. package/dist/coding/session-delta-surfaces.d.ts +138 -0
  668. package/dist/coding/session-delta-surfaces.d.ts.map +1 -0
  669. package/dist/coding/session-delta.d.ts +201 -0
  670. package/dist/coding/session-delta.d.ts.map +1 -0
  671. package/dist/coding/structural-context.d.ts +194 -0
  672. package/dist/coding/structural-context.d.ts.map +1 -0
  673. package/dist/coding/structural-subprocess-provider.d.ts +50 -0
  674. package/dist/coding/structural-subprocess-provider.d.ts.map +1 -0
  675. package/dist/commitment-ledger.d.ts +13 -14
  676. package/dist/commitment-ledger.d.ts.map +1 -0
  677. package/dist/compat/checks.d.ts +3 -5
  678. package/dist/compat/checks.d.ts.map +1 -0
  679. package/dist/compat/codex-cli-fallback.d.ts +15 -1
  680. package/dist/compat/codex-cli-fallback.d.ts.map +1 -0
  681. package/dist/compat/codex-thread-key.d.ts +15 -1
  682. package/dist/compat/codex-thread-key.d.ts.map +1 -0
  683. package/dist/compat/types.d.ts +7 -8
  684. package/dist/compat/types.d.ts.map +1 -0
  685. package/dist/compounding/engine.d.ts +11 -44
  686. package/dist/compounding/engine.d.ts.map +1 -0
  687. package/dist/compounding/engine.js +14 -14
  688. package/dist/compounding/preference-consolidator.d.ts +10 -37
  689. package/dist/compounding/preference-consolidator.d.ts.map +1 -0
  690. package/dist/compression-optimizer.d.ts +10 -29
  691. package/dist/compression-optimizer.d.ts.map +1 -0
  692. package/dist/config-discovery.d.ts +4 -5
  693. package/dist/config-discovery.d.ts.map +1 -0
  694. package/dist/config-qmd.d.ts +7 -8
  695. package/dist/config-qmd.d.ts.map +1 -0
  696. package/dist/config-record.d.ts +2 -3
  697. package/dist/config-record.d.ts.map +1 -0
  698. package/dist/config-security.d.ts +2 -3
  699. package/dist/config-security.d.ts.map +1 -0
  700. package/dist/config.d.ts +7 -26
  701. package/dist/config.d.ts.map +1 -0
  702. package/dist/config.js +23 -23
  703. package/dist/connectors/codex-marketplace.d.ts +124 -0
  704. package/dist/connectors/codex-marketplace.d.ts.map +1 -0
  705. package/dist/connectors/codex-materialize-runner.d.ts +7 -27
  706. package/dist/connectors/codex-materialize-runner.d.ts.map +1 -0
  707. package/dist/connectors/codex-materialize-runner.js +14 -14
  708. package/dist/connectors/codex-materialize.d.ts +23 -41
  709. package/dist/connectors/codex-materialize.d.ts.map +1 -0
  710. package/dist/connectors/coerce.d.ts +73 -0
  711. package/dist/connectors/coerce.d.ts.map +1 -0
  712. package/dist/connectors/droid-mcp.d.ts +122 -0
  713. package/dist/connectors/droid-mcp.d.ts.map +1 -0
  714. package/dist/connectors/hermes-shim.d.ts +135 -0
  715. package/dist/connectors/hermes-shim.d.ts.map +1 -0
  716. package/dist/connectors/index.d.ts +42 -247
  717. package/dist/connectors/index.d.ts.map +1 -0
  718. package/dist/connectors/index.js +20 -20
  719. package/dist/connectors/label.d.ts +19 -0
  720. package/dist/connectors/label.d.ts.map +1 -0
  721. package/dist/connectors/live/framework.d.ts +169 -0
  722. package/dist/connectors/live/framework.d.ts.map +1 -0
  723. package/dist/connectors/live/github.d.ts +156 -0
  724. package/dist/connectors/live/github.d.ts.map +1 -0
  725. package/dist/connectors/live/gmail.d.ts +253 -0
  726. package/dist/connectors/live/gmail.d.ts.map +1 -0
  727. package/dist/connectors/live/google-drive.d.ts +198 -0
  728. package/dist/connectors/live/google-drive.d.ts.map +1 -0
  729. package/dist/connectors/live/index.d.ts +20 -0
  730. package/dist/connectors/live/index.d.ts.map +1 -0
  731. package/dist/connectors/live/notion.d.ts +146 -0
  732. package/dist/connectors/live/notion.d.ts.map +1 -0
  733. package/dist/connectors/live/registry.d.ts +53 -0
  734. package/dist/connectors/live/registry.d.ts.map +1 -0
  735. package/dist/connectors/live/state-store.d.ts +120 -0
  736. package/dist/connectors/live/state-store.d.ts.map +1 -0
  737. package/dist/connectors/live/transient-errors.d.ts +45 -0
  738. package/dist/connectors/live/transient-errors.d.ts.map +1 -0
  739. package/dist/connectors/materialize-paths.d.ts +15 -0
  740. package/dist/connectors/materialize-paths.d.ts.map +1 -0
  741. package/dist/connectors/materialize-skills.d.ts +52 -0
  742. package/dist/connectors/materialize-skills.d.ts.map +1 -0
  743. package/dist/connectors/paths.d.ts +78 -0
  744. package/dist/connectors/paths.d.ts.map +1 -0
  745. package/dist/connectors/prime-agent.d.ts +13 -0
  746. package/dist/connectors/prime-agent.d.ts.map +1 -0
  747. package/dist/connectors-cli.d.ts +170 -2
  748. package/dist/connectors-cli.d.ts.map +1 -0
  749. package/dist/console/state.d.ts +154 -0
  750. package/dist/console/state.d.ts.map +1 -0
  751. package/dist/console/trace.d.ts +199 -0
  752. package/dist/console/trace.d.ts.map +1 -0
  753. package/dist/console/tui.d.ts +106 -0
  754. package/dist/console/tui.d.ts.map +1 -0
  755. package/dist/consolidation-operator.d.ts +8 -9
  756. package/dist/consolidation-operator.d.ts.map +1 -0
  757. package/dist/consolidation-provenance-check.d.ts +5 -40
  758. package/dist/consolidation-provenance-check.d.ts.map +1 -0
  759. package/dist/consolidation-undo.d.ts +10 -44
  760. package/dist/consolidation-undo.d.ts.map +1 -0
  761. package/dist/content-hash.d.ts +6 -7
  762. package/dist/content-hash.d.ts.map +1 -0
  763. package/dist/context-summary.d.ts +8 -9
  764. package/dist/context-summary.d.ts.map +1 -0
  765. package/dist/contradiction/contradiction-judge.d.ts +65 -0
  766. package/dist/contradiction/contradiction-judge.d.ts.map +1 -0
  767. package/dist/contradiction/contradiction-review.d.ts +117 -0
  768. package/dist/contradiction/contradiction-review.d.ts.map +1 -0
  769. package/dist/contradiction/contradiction-scan.d.ts +74 -0
  770. package/dist/contradiction/contradiction-scan.d.ts.map +1 -0
  771. package/dist/contradiction/index.d.ts +12 -41
  772. package/dist/contradiction/index.d.ts.map +1 -0
  773. package/dist/contradiction/index.js +11 -11
  774. package/dist/contradiction/resolution.d.ts +57 -0
  775. package/dist/contradiction/resolution.d.ts.map +1 -0
  776. package/dist/contradiction-config.d.ts +5 -6
  777. package/dist/contradiction-config.d.ts.map +1 -0
  778. package/dist/converge-config.d.ts +9 -28
  779. package/dist/converge-config.d.ts.map +1 -0
  780. package/dist/convergence-refresh.d.ts +5 -40
  781. package/dist/convergence-refresh.d.ts.map +1 -0
  782. package/dist/convergence-refresh.js +16 -16
  783. package/dist/conversation-index/backend.d.ts +12 -31
  784. package/dist/conversation-index/backend.d.ts.map +1 -0
  785. package/dist/conversation-index/chunker.d.ts +4 -23
  786. package/dist/conversation-index/chunker.d.ts.map +1 -0
  787. package/dist/conversation-index/cleanup.d.ts +2 -3
  788. package/dist/conversation-index/cleanup.d.ts.map +1 -0
  789. package/dist/conversation-index/faiss-adapter.d.ts +63 -22
  790. package/dist/conversation-index/faiss-adapter.d.ts.map +1 -0
  791. package/dist/conversation-index/indexer.d.ts +9 -31
  792. package/dist/conversation-index/indexer.d.ts.map +1 -0
  793. package/dist/conversation-index/search.d.ts +10 -22
  794. package/dist/conversation-index/search.d.ts.map +1 -0
  795. package/dist/corpus-read-cancellation.d.ts +3 -4
  796. package/dist/corpus-read-cancellation.d.ts.map +1 -0
  797. package/dist/corpus-watermark.d.ts +19 -40
  798. package/dist/corpus-watermark.d.ts.map +1 -0
  799. package/dist/corpus-watermark.js +18 -18
  800. package/dist/correction/correction-access-wiring.d.ts +129 -0
  801. package/dist/correction/correction-access-wiring.d.ts.map +1 -0
  802. package/dist/correction/correction-contract.d.ts +220 -0
  803. package/dist/correction/correction-contract.d.ts.map +1 -0
  804. package/dist/correction/correction-executor.d.ts +174 -0
  805. package/dist/correction/correction-executor.d.ts.map +1 -0
  806. package/dist/correction/correction-planner.d.ts +162 -0
  807. package/dist/correction/correction-planner.d.ts.map +1 -0
  808. package/dist/correction/correction-service.d.ts +124 -0
  809. package/dist/correction/correction-service.d.ts.map +1 -0
  810. package/dist/correction/index.d.ts +23 -0
  811. package/dist/correction/index.d.ts.map +1 -0
  812. package/dist/correction/passive-capture.d.ts +107 -0
  813. package/dist/correction/passive-capture.d.ts.map +1 -0
  814. package/dist/correction/passive-correction-detector.d.ts +60 -0
  815. package/dist/correction/passive-correction-detector.d.ts.map +1 -0
  816. package/dist/correction/passive-correction-notifications.d.ts +36 -0
  817. package/dist/correction/passive-correction-notifications.d.ts.map +1 -0
  818. package/dist/cross-lingual-recall.d.ts +10 -29
  819. package/dist/cross-lingual-recall.d.ts.map +1 -0
  820. package/dist/cross-namespace-budget.d.ts +9 -10
  821. package/dist/cross-namespace-budget.d.ts.map +1 -0
  822. package/dist/cue-anchors.d.ts +11 -12
  823. package/dist/cue-anchors.d.ts.map +1 -0
  824. package/dist/curation/index.d.ts +98 -0
  825. package/dist/curation/index.d.ts.map +1 -0
  826. package/dist/dashboard-runtime.d.ts +4 -5
  827. package/dist/dashboard-runtime.d.ts.map +1 -0
  828. package/dist/day-summary.d.ts +5 -24
  829. package/dist/day-summary.d.ts.map +1 -0
  830. package/dist/dedup/connector-scope.d.ts +28 -0
  831. package/dist/dedup/connector-scope.d.ts.map +1 -0
  832. package/dist/dedup/index.d.ts +78 -0
  833. package/dist/dedup/index.d.ts.map +1 -0
  834. package/dist/dedup/merge-content.d.ts +24 -0
  835. package/dist/dedup/merge-content.d.ts.map +1 -0
  836. package/dist/dedup/merge-count.d.ts +7 -0
  837. package/dist/dedup/merge-count.d.ts.map +1 -0
  838. package/dist/dedup/merge-decision.d.ts +26 -0
  839. package/dist/dedup/merge-decision.d.ts.map +1 -0
  840. package/dist/dedup/merge-dup.d.ts +8 -0
  841. package/dist/dedup/merge-dup.d.ts.map +1 -0
  842. package/dist/dedup/merge-empty.d.ts +15 -0
  843. package/dist/dedup/merge-empty.d.ts.map +1 -0
  844. package/dist/dedup/merge-id.d.ts +8 -0
  845. package/dist/dedup/merge-id.d.ts.map +1 -0
  846. package/dist/dedup/merge-judge.d.ts +33 -0
  847. package/dist/dedup/merge-judge.d.ts.map +1 -0
  848. package/dist/dedup/merge-min-score.d.ts +2 -0
  849. package/dist/dedup/merge-min-score.d.ts.map +1 -0
  850. package/dist/dedup/merge-on-write-wire.d.ts +17 -0
  851. package/dist/dedup/merge-on-write-wire.d.ts.map +1 -0
  852. package/dist/dedup/merge-on-write.d.ts +32 -0
  853. package/dist/dedup/merge-on-write.d.ts.map +1 -0
  854. package/dist/dedup/merge-pair.d.ts +8 -0
  855. package/dist/dedup/merge-pair.d.ts.map +1 -0
  856. package/dist/dedup/merge-provenance.d.ts +43 -0
  857. package/dist/dedup/merge-provenance.d.ts.map +1 -0
  858. package/dist/dedup/merge-score.d.ts +7 -0
  859. package/dist/dedup/merge-score.d.ts.map +1 -0
  860. package/dist/dedup/merge-self.d.ts +13 -0
  861. package/dist/dedup/merge-self.d.ts.map +1 -0
  862. package/dist/dedup/merge-threshold.d.ts +13 -0
  863. package/dist/dedup/merge-threshold.d.ts.map +1 -0
  864. package/dist/dedup/merge-tie.d.ts +8 -0
  865. package/dist/dedup/merge-tie.d.ts.map +1 -0
  866. package/dist/dedup/merge-unique.d.ts +7 -0
  867. package/dist/dedup/merge-unique.d.ts.map +1 -0
  868. package/dist/dedup/merge-verdict.d.ts +19 -0
  869. package/dist/dedup/merge-verdict.d.ts.map +1 -0
  870. package/dist/dedup/merge.d.ts +122 -0
  871. package/dist/dedup/merge.d.ts.map +1 -0
  872. package/dist/dedup/novelty-gate.d.ts +60 -0
  873. package/dist/dedup/novelty-gate.d.ts.map +1 -0
  874. package/dist/dedup/semantic.d.ts +86 -0
  875. package/dist/dedup/semantic.d.ts.map +1 -0
  876. package/dist/deep-recall-config.d.ts +7 -8
  877. package/dist/deep-recall-config.d.ts.map +1 -0
  878. package/dist/deep-recall-config.js +2 -2
  879. package/dist/deep-recall-http-glue.d.ts +5 -151
  880. package/dist/deep-recall-http-glue.d.ts.map +1 -0
  881. package/dist/deep-recall-http-glue.js +6 -6
  882. package/dist/deep-recall-mcp-tools.d.ts +3 -150
  883. package/dist/deep-recall-mcp-tools.d.ts.map +1 -0
  884. package/dist/deep-recall-policy-llm.d.ts +6 -30
  885. package/dist/deep-recall-policy-llm.d.ts.map +1 -0
  886. package/dist/deep-recall-renderer.d.ts +3 -9
  887. package/dist/deep-recall-renderer.d.ts.map +1 -0
  888. package/dist/deep-recall-seeds.d.ts +7 -30
  889. package/dist/deep-recall-seeds.d.ts.map +1 -0
  890. package/dist/deep-recall.d.ts +15 -17
  891. package/dist/deep-recall.d.ts.map +1 -0
  892. package/dist/delinearize.d.ts +5 -25
  893. package/dist/delinearize.d.ts.map +1 -0
  894. package/dist/dependency-propagation-config.d.ts +3 -22
  895. package/dist/dependency-propagation-config.d.ts.map +1 -0
  896. package/dist/deterministic-order.d.ts +3 -4
  897. package/dist/deterministic-order.d.ts.map +1 -0
  898. package/dist/direct-answer-wiring.d.ts +8 -28
  899. package/dist/direct-answer-wiring.d.ts.map +1 -0
  900. package/dist/direct-answer.d.ts +10 -30
  901. package/dist/direct-answer.d.ts.map +1 -0
  902. package/dist/directory-sidecars.d.ts +17 -18
  903. package/dist/directory-sidecars.d.ts.map +1 -0
  904. package/dist/embedding-fallback.d.ts +6 -25
  905. package/dist/embedding-fallback.d.ts.map +1 -0
  906. package/dist/emit-legacy-tools.d.ts +3 -4
  907. package/dist/emit-legacy-tools.d.ts.map +1 -0
  908. package/dist/enrichment/audit.d.ts +27 -0
  909. package/dist/enrichment/audit.d.ts.map +1 -0
  910. package/dist/enrichment/index.d.ts +8 -177
  911. package/dist/enrichment/index.d.ts.map +1 -0
  912. package/dist/enrichment/pipeline.d.ts +15 -0
  913. package/dist/enrichment/pipeline.d.ts.map +1 -0
  914. package/dist/enrichment/provider-registry.d.ts +28 -0
  915. package/dist/enrichment/provider-registry.d.ts.map +1 -0
  916. package/dist/enrichment/types.d.ts +65 -0
  917. package/dist/enrichment/types.d.ts.map +1 -0
  918. package/dist/enrichment/web-search-provider.d.ts +26 -0
  919. package/dist/enrichment/web-search-provider.d.ts.map +1 -0
  920. package/dist/entity-id-normalization.d.ts +3 -4
  921. package/dist/entity-id-normalization.d.ts.map +1 -0
  922. package/dist/entity-origin-fields.d.ts +6 -24
  923. package/dist/entity-origin-fields.d.ts.map +1 -0
  924. package/dist/entity-recall-cancellation.d.ts +6 -7
  925. package/dist/entity-recall-cancellation.d.ts.map +1 -0
  926. package/dist/entity-retrieval-boundaries.d.ts +2 -3
  927. package/dist/entity-retrieval-boundaries.d.ts.map +1 -0
  928. package/dist/entity-retrieval-i18n.d.ts +5 -6
  929. package/dist/entity-retrieval-i18n.d.ts.map +1 -0
  930. package/dist/entity-retrieval.d.ts +8 -41
  931. package/dist/entity-retrieval.d.ts.map +1 -0
  932. package/dist/entity-retrieval.js +14 -14
  933. package/dist/entity-schema.d.ts +9 -28
  934. package/dist/entity-schema.d.ts.map +1 -0
  935. package/dist/episodic-context.d.ts +10 -30
  936. package/dist/episodic-context.d.ts.map +1 -0
  937. package/dist/eval-trajectory-contracts.d.ts +48 -68
  938. package/dist/eval-trajectory-contracts.d.ts.map +1 -0
  939. package/dist/eval-trajectory-store.d.ts +7 -28
  940. package/dist/eval-trajectory-store.d.ts.map +1 -0
  941. package/dist/eval-trajectory.d.ts +9 -30
  942. package/dist/eval-trajectory.d.ts.map +1 -0
  943. package/dist/evals.d.ts +29 -30
  944. package/dist/evals.d.ts.map +1 -0
  945. package/dist/event-order-query.d.ts +2 -3
  946. package/dist/event-order-query.d.ts.map +1 -0
  947. package/dist/event-order-recall.d.ts +6 -8
  948. package/dist/event-order-recall.d.ts.map +1 -0
  949. package/dist/event-time.d.ts +7 -8
  950. package/dist/event-time.d.ts.map +1 -0
  951. package/dist/evidence-pack.d.ts +7 -8
  952. package/dist/evidence-pack.d.ts.map +1 -0
  953. package/dist/experience/session-experience-config.d.ts +19 -0
  954. package/dist/experience/session-experience-config.d.ts.map +1 -0
  955. package/dist/experience/session-experience-mining.d.ts +31 -0
  956. package/dist/experience/session-experience-mining.d.ts.map +1 -0
  957. package/dist/experience/session-experience-recall.d.ts +19 -0
  958. package/dist/experience/session-experience-recall.d.ts.map +1 -0
  959. package/dist/experience/session-experience.d.ts +74 -0
  960. package/dist/experience/session-experience.d.ts.map +1 -0
  961. package/dist/explicit-capture.d.ts +20 -128
  962. package/dist/explicit-capture.d.ts.map +1 -0
  963. package/dist/explicit-capture.js +1 -1
  964. package/dist/explicit-cue-recall.d.ts +17 -19
  965. package/dist/explicit-cue-recall.d.ts.map +1 -0
  966. package/dist/external-wiki-access.d.ts +4 -152
  967. package/dist/external-wiki-access.d.ts.map +1 -0
  968. package/dist/external-wiki-access.js +66 -61
  969. package/dist/external-wiki-cli.d.ts +4 -5
  970. package/dist/external-wiki-cli.d.ts.map +1 -0
  971. package/dist/external-wiki-collection-registration.d.ts +7 -27
  972. package/dist/external-wiki-collection-registration.d.ts.map +1 -0
  973. package/dist/external-wiki-collection.d.ts +9 -29
  974. package/dist/external-wiki-collection.d.ts.map +1 -0
  975. package/dist/external-wiki-config.d.ts +3 -4
  976. package/dist/external-wiki-config.d.ts.map +1 -0
  977. package/dist/external-wiki-guard.d.ts +6 -7
  978. package/dist/external-wiki-guard.d.ts.map +1 -0
  979. package/dist/external-wiki-mcp-tools.d.ts +3 -149
  980. package/dist/external-wiki-mcp-tools.d.ts.map +1 -0
  981. package/dist/external-wiki-search.d.ts +12 -13
  982. package/dist/external-wiki-search.d.ts.map +1 -0
  983. package/dist/external-wiki.d.ts +12 -13
  984. package/dist/external-wiki.d.ts.map +1 -0
  985. package/dist/extraction-error-classification.d.ts +5 -24
  986. package/dist/extraction-error-classification.d.ts.map +1 -0
  987. package/dist/extraction-evidence-class.d.ts +13 -33
  988. package/dist/extraction-evidence-class.d.ts.map +1 -0
  989. package/dist/extraction-evidence-class.js +2 -2
  990. package/dist/extraction-faithfulness.d.ts +23 -46
  991. package/dist/extraction-faithfulness.d.ts.map +1 -0
  992. package/dist/extraction-judge-telemetry.d.ts +9 -36
  993. package/dist/extraction-judge-telemetry.d.ts.map +1 -0
  994. package/dist/extraction-judge-training.d.ts +9 -36
  995. package/dist/extraction-judge-training.d.ts.map +1 -0
  996. package/dist/extraction-judge.d.ts +20 -44
  997. package/dist/extraction-judge.d.ts.map +1 -0
  998. package/dist/extraction-liveness.d.ts +161 -18
  999. package/dist/extraction-liveness.d.ts.map +1 -0
  1000. package/dist/extraction-normalization.d.ts +7 -26
  1001. package/dist/extraction-normalization.d.ts.map +1 -0
  1002. package/dist/extraction-prompt.d.ts +14 -34
  1003. package/dist/extraction-prompt.d.ts.map +1 -0
  1004. package/dist/extraction-redaction-rules.d.ts +6 -7
  1005. package/dist/extraction-redaction-rules.d.ts.map +1 -0
  1006. package/dist/extraction-source-grounding-helpers.d.ts +31 -32
  1007. package/dist/extraction-source-grounding-helpers.d.ts.map +1 -0
  1008. package/dist/extraction-source-grounding-rules.d.ts +6 -25
  1009. package/dist/extraction-source-grounding-rules.d.ts.map +1 -0
  1010. package/dist/extraction-source-grounding.d.ts +7 -25
  1011. package/dist/extraction-source-grounding.d.ts.map +1 -0
  1012. package/dist/extraction-source-grounding.js +3 -3
  1013. package/dist/extraction-span-bench.d.ts +3 -4
  1014. package/dist/extraction-span-bench.d.ts.map +1 -0
  1015. package/dist/extraction-span-clip.d.ts +5 -6
  1016. package/dist/extraction-span-clip.d.ts.map +1 -0
  1017. package/dist/extraction-span-config.d.ts +40 -18
  1018. package/dist/extraction-span-config.d.ts.map +1 -0
  1019. package/dist/extraction-span-contains.d.ts +2 -3
  1020. package/dist/extraction-span-contains.d.ts.map +1 -0
  1021. package/dist/extraction-span-fallback.d.ts +5 -6
  1022. package/dist/extraction-span-fallback.d.ts.map +1 -0
  1023. package/dist/extraction-span-gap.d.ts +2 -3
  1024. package/dist/extraction-span-gap.d.ts.map +1 -0
  1025. package/dist/extraction-span-gate.d.ts +7 -8
  1026. package/dist/extraction-span-gate.d.ts.map +1 -0
  1027. package/dist/extraction-span-join.d.ts +5 -6
  1028. package/dist/extraction-span-join.d.ts.map +1 -0
  1029. package/dist/extraction-span-length.d.ts +2 -3
  1030. package/dist/extraction-span-length.d.ts.map +1 -0
  1031. package/dist/extraction-span-materialize.d.ts +18 -37
  1032. package/dist/extraction-span-materialize.d.ts.map +1 -0
  1033. package/dist/extraction-span-materialize.js +2 -2
  1034. package/dist/extraction-span-overlap.d.ts +2 -3
  1035. package/dist/extraction-span-overlap.d.ts.map +1 -0
  1036. package/dist/extraction-span-provenance.d.ts +4 -5
  1037. package/dist/extraction-span-provenance.d.ts.map +1 -0
  1038. package/dist/extraction-span-shift.d.ts +2 -3
  1039. package/dist/extraction-span-shift.d.ts.map +1 -0
  1040. package/dist/extraction-span-slice.d.ts +2 -3
  1041. package/dist/extraction-span-slice.d.ts.map +1 -0
  1042. package/dist/extraction-span-source-hash.d.ts +5 -6
  1043. package/dist/extraction-span-source-hash.d.ts.map +1 -0
  1044. package/dist/extraction-span-tokens.d.ts +4 -5
  1045. package/dist/extraction-span-tokens.d.ts.map +1 -0
  1046. package/dist/extraction-span-validate.d.ts +5 -6
  1047. package/dist/extraction-span-validate.d.ts.map +1 -0
  1048. package/dist/extraction-span-wire.d.ts +5 -25
  1049. package/dist/extraction-span-wire.d.ts.map +1 -0
  1050. package/dist/extraction-span.d.ts +4 -5
  1051. package/dist/extraction-span.d.ts.map +1 -0
  1052. package/dist/extraction.d.ts +11 -44
  1053. package/dist/extraction.d.ts.map +1 -0
  1054. package/dist/extraction.js +26 -26
  1055. package/dist/faithfulness-config.d.ts +3 -4
  1056. package/dist/faithfulness-config.d.ts.map +1 -0
  1057. package/dist/fallback-llm-codex-subscription.d.ts +23 -42
  1058. package/dist/fallback-llm-codex-subscription.d.ts.map +1 -0
  1059. package/dist/fallback-llm.d.ts +9 -30
  1060. package/dist/fallback-llm.d.ts.map +1 -0
  1061. package/dist/focused-list-recall.d.ts +5 -8
  1062. package/dist/focused-list-recall.d.ts.map +1 -0
  1063. package/dist/graph-append-error.d.ts +3 -27
  1064. package/dist/graph-append-error.d.ts.map +1 -0
  1065. package/dist/graph-dashboard-diff.d.ts +5 -28
  1066. package/dist/graph-dashboard-diff.d.ts.map +1 -0
  1067. package/dist/graph-dashboard-key.d.ts +3 -26
  1068. package/dist/graph-dashboard-key.d.ts.map +1 -0
  1069. package/dist/graph-dashboard-parser.d.ts +6 -29
  1070. package/dist/graph-dashboard-parser.d.ts.map +1 -0
  1071. package/dist/graph-edge-decay-ROSUPDX3.js +30 -0
  1072. package/dist/graph-edge-reinforcement.d.ts +12 -36
  1073. package/dist/graph-edge-reinforcement.d.ts.map +1 -0
  1074. package/dist/graph-events.d.ts +13 -16
  1075. package/dist/graph-events.d.ts.map +1 -0
  1076. package/dist/graph-jsonl.d.ts +8 -31
  1077. package/dist/graph-jsonl.d.ts.map +1 -0
  1078. package/dist/graph-jsonl.js +3 -3
  1079. package/dist/graph-path-reconstruction.d.ts +22 -22
  1080. package/dist/graph-path-reconstruction.d.ts.map +1 -0
  1081. package/dist/graph-path-scoring-config.d.ts +3 -4
  1082. package/dist/graph-path-scoring-config.d.ts.map +1 -0
  1083. package/dist/graph-path-scoring.d.ts +8 -30
  1084. package/dist/graph-path-scoring.d.ts.map +1 -0
  1085. package/dist/graph-recall.d.ts +7 -10
  1086. package/dist/graph-recall.d.ts.map +1 -0
  1087. package/dist/graph-retrieval.d.ts +19 -20
  1088. package/dist/graph-retrieval.d.ts.map +1 -0
  1089. package/dist/graph-snapshot.d.ts +14 -38
  1090. package/dist/graph-snapshot.d.ts.map +1 -0
  1091. package/dist/graph-snapshot.js +3 -3
  1092. package/dist/graph-write-lock.d.ts +7 -10
  1093. package/dist/graph-write-lock.d.ts.map +1 -0
  1094. package/dist/graph.d.ts +325 -22
  1095. package/dist/graph.d.ts.map +1 -0
  1096. package/dist/graph.js +2 -2
  1097. package/dist/harmonic-construction.d.ts +11 -13
  1098. package/dist/harmonic-construction.d.ts.map +1 -0
  1099. package/dist/harmonic-retrieval.d.ts +10 -12
  1100. package/dist/harmonic-retrieval.d.ts.map +1 -0
  1101. package/dist/harmonic-retrieval.js +1 -1
  1102. package/dist/himem.d.ts +3 -4
  1103. package/dist/himem.d.ts.map +1 -0
  1104. package/dist/host-embedding-provider.d.ts +7 -8
  1105. package/dist/host-embedding-provider.d.ts.map +1 -0
  1106. package/dist/http-retry.d.ts +9 -10
  1107. package/dist/http-retry.d.ts.map +1 -0
  1108. package/dist/hygiene.d.ts +4 -5
  1109. package/dist/hygiene.d.ts.map +1 -0
  1110. package/dist/identity-continuity.d.ts +9 -11
  1111. package/dist/identity-continuity.d.ts.map +1 -0
  1112. package/dist/importance.d.ts +6 -26
  1113. package/dist/importance.d.ts.map +1 -0
  1114. package/dist/importers/base.d.ts +261 -0
  1115. package/dist/importers/base.d.ts.map +1 -0
  1116. package/dist/importers/index.d.ts +3 -280
  1117. package/dist/importers/index.d.ts.map +1 -0
  1118. package/dist/importers/test-utils.d.ts +5 -24
  1119. package/dist/importers/test-utils.d.ts.map +1 -0
  1120. package/dist/in-flight-reads.d.ts +10 -29
  1121. package/dist/in-flight-reads.d.ts.map +1 -0
  1122. package/dist/included-memories.d.ts +6 -7
  1123. package/dist/included-memories.d.ts.map +1 -0
  1124. package/dist/index.d.ts +185 -9836
  1125. package/dist/index.d.ts.map +1 -0
  1126. package/dist/index.js +275 -229
  1127. package/dist/inline-script.d.ts +2 -3
  1128. package/dist/inline-script.d.ts.map +1 -0
  1129. package/dist/intent.d.ts +7 -26
  1130. package/dist/intent.d.ts.map +1 -0
  1131. package/dist/json-extract.d.ts +3 -4
  1132. package/dist/json-extract.d.ts.map +1 -0
  1133. package/dist/json-store.d.ts +9 -9
  1134. package/dist/json-store.d.ts.map +1 -0
  1135. package/dist/lcm/archive.d.ts +11 -13
  1136. package/dist/lcm/archive.d.ts.map +1 -0
  1137. package/dist/lcm/dag.d.ts +5 -7
  1138. package/dist/lcm/dag.d.ts.map +1 -0
  1139. package/dist/lcm/engine.d.ts +10 -32
  1140. package/dist/lcm/engine.d.ts.map +1 -0
  1141. package/dist/lcm/engine.js +4 -4
  1142. package/dist/lcm/evidence-identity.d.ts +20 -0
  1143. package/dist/lcm/evidence-identity.d.ts.map +1 -0
  1144. package/dist/lcm/index.d.ts +9 -52
  1145. package/dist/lcm/index.d.ts.map +1 -0
  1146. package/dist/lcm/index.js +13 -13
  1147. package/dist/lcm/queue.d.ts +7 -10
  1148. package/dist/lcm/queue.d.ts.map +1 -0
  1149. package/dist/lcm/recall.d.ts +8 -13
  1150. package/dist/lcm/recall.d.ts.map +1 -0
  1151. package/dist/lcm/schema.d.ts +5 -8
  1152. package/dist/lcm/schema.d.ts.map +1 -0
  1153. package/dist/lcm/summarizer.d.ts +7 -11
  1154. package/dist/lcm/summarizer.d.ts.map +1 -0
  1155. package/dist/lcm/tools.d.ts +4 -30
  1156. package/dist/lcm/tools.d.ts.map +1 -0
  1157. package/dist/lcm-fallback-read.d.ts +4 -5
  1158. package/dist/lcm-fallback-read.d.ts.map +1 -0
  1159. package/dist/lifecycle/seed-graduation-config-types.d.ts +21 -0
  1160. package/dist/lifecycle/seed-graduation-config-types.d.ts.map +1 -0
  1161. package/dist/lifecycle/seed-graduation.d.ts +97 -0
  1162. package/dist/lifecycle/seed-graduation.d.ts.map +1 -0
  1163. package/dist/lifecycle/tombstones.d.ts +389 -0
  1164. package/dist/lifecycle/tombstones.d.ts.map +1 -0
  1165. package/dist/lifecycle.d.ts +14 -33
  1166. package/dist/lifecycle.d.ts.map +1 -0
  1167. package/dist/live-connectors-runner.d.ts +11 -29
  1168. package/dist/live-connectors-runner.d.ts.map +1 -0
  1169. package/dist/local-llm-config.d.ts +5 -7
  1170. package/dist/local-llm-config.d.ts.map +1 -0
  1171. package/dist/local-llm-config.js +1 -1
  1172. package/dist/local-llm-helpers.d.ts +102 -20
  1173. package/dist/local-llm-helpers.d.ts.map +1 -0
  1174. package/dist/local-llm-transport.d.ts +4 -6
  1175. package/dist/local-llm-transport.d.ts.map +1 -0
  1176. package/dist/local-llm.d.ts +145 -20
  1177. package/dist/local-llm.d.ts.map +1 -0
  1178. package/dist/local-model-endpoint.d.ts +10 -29
  1179. package/dist/local-model-endpoint.d.ts.map +1 -0
  1180. package/dist/location/access-operations.d.ts +9 -0
  1181. package/dist/location/access-operations.d.ts.map +1 -0
  1182. package/dist/location/backfill.d.ts +57 -0
  1183. package/dist/location/backfill.d.ts.map +1 -0
  1184. package/dist/location/cli.d.ts +67 -0
  1185. package/dist/location/cli.d.ts.map +1 -0
  1186. package/dist/location/config.d.ts +11 -0
  1187. package/dist/location/config.d.ts.map +1 -0
  1188. package/dist/location/http-glue.d.ts +20 -0
  1189. package/dist/location/http-glue.d.ts.map +1 -0
  1190. package/dist/location/index.d.ts +21 -534
  1191. package/dist/location/index.d.ts.map +1 -0
  1192. package/dist/location/index.js +17 -17
  1193. package/dist/location/intervals.d.ts +61 -0
  1194. package/dist/location/intervals.d.ts.map +1 -0
  1195. package/dist/location/matching.d.ts +124 -0
  1196. package/dist/location/matching.d.ts.map +1 -0
  1197. package/dist/location/mcp-tools.d.ts +12 -0
  1198. package/dist/location/mcp-tools.d.ts.map +1 -0
  1199. package/dist/location/parse-companions.d.ts +7 -0
  1200. package/dist/location/parse-companions.d.ts.map +1 -0
  1201. package/dist/location/pipeline.d.ts +44 -0
  1202. package/dist/location/pipeline.d.ts.map +1 -0
  1203. package/dist/location/provider-setup.d.ts +33 -0
  1204. package/dist/location/provider-setup.d.ts.map +1 -0
  1205. package/dist/location/registry.d.ts +15 -0
  1206. package/dist/location/registry.d.ts.map +1 -0
  1207. package/dist/location/scheduler.d.ts +48 -0
  1208. package/dist/location/scheduler.d.ts.map +1 -0
  1209. package/dist/location/store.d.ts +95 -0
  1210. package/dist/location/store.d.ts.map +1 -0
  1211. package/dist/location/surfaces.d.ts +76 -0
  1212. package/dist/location/surfaces.d.ts.map +1 -0
  1213. package/dist/location/tagging.d.ts +116 -0
  1214. package/dist/location/tagging.d.ts.map +1 -0
  1215. package/dist/location/types.d.ts +109 -0
  1216. package/dist/location/types.d.ts.map +1 -0
  1217. package/dist/logger.d.ts +7 -8
  1218. package/dist/logger.d.ts.map +1 -0
  1219. package/dist/maintenance/archive-observations.d.ts +5 -5
  1220. package/dist/maintenance/archive-observations.d.ts.map +1 -0
  1221. package/dist/maintenance/atomic-file.d.ts +4 -5
  1222. package/dist/maintenance/atomic-file.d.ts.map +1 -0
  1223. package/dist/maintenance/backup-stamp.d.ts +2 -3
  1224. package/dist/maintenance/backup-stamp.d.ts.map +1 -0
  1225. package/dist/maintenance/day-summary-cron.d.ts +20 -0
  1226. package/dist/maintenance/day-summary-cron.d.ts.map +1 -0
  1227. package/dist/maintenance/dreams-ledger.d.ts +172 -0
  1228. package/dist/maintenance/dreams-ledger.d.ts.map +1 -0
  1229. package/dist/maintenance/first-start-migration.d.ts +61 -0
  1230. package/dist/maintenance/first-start-migration.d.ts.map +1 -0
  1231. package/dist/maintenance/forget.d.ts +59 -0
  1232. package/dist/maintenance/forget.d.ts.map +1 -0
  1233. package/dist/maintenance/graph-edge-decay.d.ts +122 -0
  1234. package/dist/maintenance/graph-edge-decay.d.ts.map +1 -0
  1235. package/dist/maintenance/memory-governance-cron.d.ts +9 -10
  1236. package/dist/maintenance/memory-governance-cron.d.ts.map +1 -0
  1237. package/dist/maintenance/memory-governance.d.ts +25 -43
  1238. package/dist/maintenance/memory-governance.d.ts.map +1 -0
  1239. package/dist/maintenance/memory-governance.js +14 -14
  1240. package/dist/maintenance/migrate-observations.d.ts +4 -5
  1241. package/dist/maintenance/migrate-observations.d.ts.map +1 -0
  1242. package/dist/maintenance/namespace-maintenance-fanout.d.ts +132 -0
  1243. package/dist/maintenance/namespace-maintenance-fanout.d.ts.map +1 -0
  1244. package/dist/maintenance/namespace-planner.d.ts +96 -0
  1245. package/dist/maintenance/namespace-planner.d.ts.map +1 -0
  1246. package/dist/maintenance/observation-ledger-utils.d.ts +5 -6
  1247. package/dist/maintenance/observation-ledger-utils.d.ts.map +1 -0
  1248. package/dist/maintenance/pattern-reinforcement.d.ts +129 -0
  1249. package/dist/maintenance/pattern-reinforcement.d.ts.map +1 -0
  1250. package/dist/maintenance/projection-support.d.ts +76 -0
  1251. package/dist/maintenance/projection-support.d.ts.map +1 -0
  1252. package/dist/maintenance/purge.d.ts +85 -0
  1253. package/dist/maintenance/purge.d.ts.map +1 -0
  1254. package/dist/maintenance/rebuild-memory-lifecycle-ledger-cli.d.ts +24 -0
  1255. package/dist/maintenance/rebuild-memory-lifecycle-ledger-cli.d.ts.map +1 -0
  1256. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +11 -43
  1257. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts.map +1 -0
  1258. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +14 -14
  1259. package/dist/maintenance/rebuild-memory-projection.d.ts +14 -72
  1260. package/dist/maintenance/rebuild-memory-projection.d.ts.map +1 -0
  1261. package/dist/maintenance/rebuild-memory-projection.js +15 -15
  1262. package/dist/maintenance/rebuild-observations.d.ts +4 -5
  1263. package/dist/maintenance/rebuild-observations.d.ts.map +1 -0
  1264. package/dist/maintenance/tier-stats.d.ts +59 -0
  1265. package/dist/maintenance/tier-stats.d.ts.map +1 -0
  1266. package/dist/mcp-memory-inspector-app.d.ts +15 -158
  1267. package/dist/mcp-memory-inspector-app.d.ts.map +1 -0
  1268. package/dist/mcp-read-only-tools.d.ts +2 -3
  1269. package/dist/mcp-read-only-tools.d.ts.map +1 -0
  1270. package/dist/mcp-read-only-tools.js +1 -1
  1271. package/dist/meetings/build-scheduler.d.ts +43 -0
  1272. package/dist/meetings/build-scheduler.d.ts.map +1 -0
  1273. package/dist/meetings/build.d.ts +137 -0
  1274. package/dist/meetings/build.d.ts.map +1 -0
  1275. package/dist/meetings/cli.d.ts +37 -0
  1276. package/dist/meetings/cli.d.ts.map +1 -0
  1277. package/dist/meetings/config.d.ts +18 -0
  1278. package/dist/meetings/config.d.ts.map +1 -0
  1279. package/dist/meetings/day-source.d.ts +103 -0
  1280. package/dist/meetings/day-source.d.ts.map +1 -0
  1281. package/dist/meetings/detect.d.ts +33 -0
  1282. package/dist/meetings/detect.d.ts.map +1 -0
  1283. package/dist/meetings/errors.d.ts +10 -0
  1284. package/dist/meetings/errors.d.ts.map +1 -0
  1285. package/dist/meetings/fuse.d.ts +30 -0
  1286. package/dist/meetings/fuse.d.ts.map +1 -0
  1287. package/dist/meetings/http-glue.d.ts +37 -0
  1288. package/dist/meetings/http-glue.d.ts.map +1 -0
  1289. package/dist/meetings/index.d.ts +20 -0
  1290. package/dist/meetings/index.d.ts.map +1 -0
  1291. package/dist/meetings/mcp-tools.d.ts +10 -0
  1292. package/dist/meetings/mcp-tools.d.ts.map +1 -0
  1293. package/dist/meetings/memory-gen.d.ts +157 -0
  1294. package/dist/meetings/memory-gen.d.ts.map +1 -0
  1295. package/dist/meetings/memory-generator.d.ts +113 -0
  1296. package/dist/meetings/memory-generator.d.ts.map +1 -0
  1297. package/dist/meetings/service.d.ts +80 -0
  1298. package/dist/meetings/service.d.ts.map +1 -0
  1299. package/dist/meetings/store.d.ts +121 -0
  1300. package/dist/meetings/store.d.ts.map +1 -0
  1301. package/dist/meetings/summary-extractor.d.ts +96 -0
  1302. package/dist/meetings/summary-extractor.d.ts.map +1 -0
  1303. package/dist/meetings/types.d.ts +155 -0
  1304. package/dist/meetings/types.d.ts.map +1 -0
  1305. package/dist/memory-action-policy.d.ts +6 -25
  1306. package/dist/memory-action-policy.d.ts.map +1 -0
  1307. package/dist/memory-age.d.ts +16 -17
  1308. package/dist/memory-age.d.ts.map +1 -0
  1309. package/dist/memory-browse-http-glue.d.ts +5 -151
  1310. package/dist/memory-browse-http-glue.d.ts.map +1 -0
  1311. package/dist/memory-browse-http-glue.js +2 -2
  1312. package/dist/memory-browse-mcp-tools.d.ts +3 -150
  1313. package/dist/memory-browse-mcp-tools.d.ts.map +1 -0
  1314. package/dist/memory-browse-operations.d.ts +11 -2
  1315. package/dist/memory-browse-operations.d.ts.map +1 -0
  1316. package/dist/memory-browse-operations.js +66 -61
  1317. package/dist/memory-browse.d.ts +16 -36
  1318. package/dist/memory-browse.d.ts.map +1 -0
  1319. package/dist/memory-browse.js +4 -4
  1320. package/dist/memory-cache.d.ts +27 -46
  1321. package/dist/memory-cache.d.ts.map +1 -0
  1322. package/dist/memory-controller.d.ts +29 -50
  1323. package/dist/memory-controller.d.ts.map +1 -0
  1324. package/dist/memory-corpus-version.d.ts +3 -4
  1325. package/dist/memory-corpus-version.d.ts.map +1 -0
  1326. package/dist/memory-extension/claude-code-publisher.d.ts +18 -0
  1327. package/dist/memory-extension/claude-code-publisher.d.ts.map +1 -0
  1328. package/dist/memory-extension/codex-publisher.d.ts +22 -0
  1329. package/dist/memory-extension/codex-publisher.d.ts.map +1 -0
  1330. package/dist/memory-extension/hermes-publisher.d.ts +18 -0
  1331. package/dist/memory-extension/hermes-publisher.d.ts.map +1 -0
  1332. package/dist/memory-extension/index.d.ts +57 -0
  1333. package/dist/memory-extension/index.d.ts.map +1 -0
  1334. package/dist/memory-extension/shared-instructions.d.ts +30 -0
  1335. package/dist/memory-extension/shared-instructions.d.ts.map +1 -0
  1336. package/dist/memory-extension/types.d.ts +88 -0
  1337. package/dist/memory-extension/types.d.ts.map +1 -0
  1338. package/dist/memory-extension-host/host-discovery.d.ts +38 -0
  1339. package/dist/memory-extension-host/host-discovery.d.ts.map +1 -0
  1340. package/dist/memory-extension-host/index.d.ts +7 -0
  1341. package/dist/memory-extension-host/index.d.ts.map +1 -0
  1342. package/dist/memory-extension-host/render-extensions-block.d.ts +23 -0
  1343. package/dist/memory-extension-host/render-extensions-block.d.ts.map +1 -0
  1344. package/dist/memory-extension-host/types.d.ts +20 -0
  1345. package/dist/memory-extension-host/types.d.ts.map +1 -0
  1346. package/dist/memory-lifecycle-ledger-utils.d.ts +19 -38
  1347. package/dist/memory-lifecycle-ledger-utils.d.ts.map +1 -0
  1348. package/dist/memory-projection-format.d.ts +3 -4
  1349. package/dist/memory-projection-format.d.ts.map +1 -0
  1350. package/dist/memory-projection-mutations.d.ts +3 -4
  1351. package/dist/memory-projection-mutations.d.ts.map +1 -0
  1352. package/dist/memory-projection-store.d.ts +35 -54
  1353. package/dist/memory-projection-store.d.ts.map +1 -0
  1354. package/dist/memory-provenance.d.ts +10 -29
  1355. package/dist/memory-provenance.d.ts.map +1 -0
  1356. package/dist/memory-snapshot.d.ts +3 -22
  1357. package/dist/memory-snapshot.d.ts.map +1 -0
  1358. package/dist/memory-subject-cli.d.ts +9 -156
  1359. package/dist/memory-subject-cli.d.ts.map +1 -0
  1360. package/dist/memory-subject.d.ts +132 -145
  1361. package/dist/memory-subject.d.ts.map +1 -0
  1362. package/dist/memory-worth-bench.d.ts +4 -5
  1363. package/dist/memory-worth-bench.d.ts.map +1 -0
  1364. package/dist/memory-worth-filter.d.ts +8 -11
  1365. package/dist/memory-worth-filter.d.ts.map +1 -0
  1366. package/dist/memory-worth-outcomes.d.ts +11 -45
  1367. package/dist/memory-worth-outcomes.d.ts.map +1 -0
  1368. package/dist/memory-worth.d.ts +4 -5
  1369. package/dist/memory-worth.d.ts.map +1 -0
  1370. package/dist/message-parts/index.d.ts +15 -16
  1371. package/dist/message-parts/index.d.ts.map +1 -0
  1372. package/dist/migrate/from-engram.d.ts +6 -7
  1373. package/dist/migrate/from-engram.d.ts.map +1 -0
  1374. package/dist/model-registry.d.ts +3 -4
  1375. package/dist/model-registry.d.ts.map +1 -0
  1376. package/dist/models-json.d.ts +5 -24
  1377. package/dist/models-json.d.ts.map +1 -0
  1378. package/dist/namespaces/catalog.d.ts +473 -0
  1379. package/dist/namespaces/catalog.d.ts.map +1 -0
  1380. package/dist/namespaces/identity.d.ts +5 -0
  1381. package/dist/namespaces/identity.d.ts.map +1 -0
  1382. package/dist/namespaces/migrate.d.ts +11 -46
  1383. package/dist/namespaces/migrate.d.ts.map +1 -0
  1384. package/dist/namespaces/migrate.js +15 -15
  1385. package/dist/namespaces/path.d.ts +3 -0
  1386. package/dist/namespaces/path.d.ts.map +1 -0
  1387. package/dist/namespaces/principal.d.ts +9 -28
  1388. package/dist/namespaces/principal.d.ts.map +1 -0
  1389. package/dist/namespaces/scope-profile-config.d.ts +5 -0
  1390. package/dist/namespaces/scope-profile-config.d.ts.map +1 -0
  1391. package/dist/namespaces/scope-profiles.d.ts +46 -0
  1392. package/dist/namespaces/scope-profiles.d.ts.map +1 -0
  1393. package/dist/namespaces/search.d.ts +10 -28
  1394. package/dist/namespaces/search.d.ts.map +1 -0
  1395. package/dist/namespaces/search.js +5 -5
  1396. package/dist/namespaces/storage.d.ts +8 -41
  1397. package/dist/namespaces/storage.d.ts.map +1 -0
  1398. package/dist/namespaces/storage.js +14 -14
  1399. package/dist/native-binding-hint.d.ts +3 -4
  1400. package/dist/native-binding-hint.d.ts.map +1 -0
  1401. package/dist/native-knowledge.d.ts +15 -34
  1402. package/dist/native-knowledge.d.ts.map +1 -0
  1403. package/dist/negative.d.ts +3 -4
  1404. package/dist/negative.d.ts.map +1 -0
  1405. package/dist/network/tailscale.d.ts +7 -8
  1406. package/dist/network/tailscale.d.ts.map +1 -0
  1407. package/dist/network/webdav.d.ts +9 -10
  1408. package/dist/network/webdav.d.ts.map +1 -0
  1409. package/dist/objective-state-writers.d.ts +8 -9
  1410. package/dist/objective-state-writers.d.ts.map +1 -0
  1411. package/dist/objective-state.d.ts +15 -16
  1412. package/dist/objective-state.d.ts.map +1 -0
  1413. package/dist/offline-sync-exclude-globs.d.ts +3 -4
  1414. package/dist/offline-sync-exclude-globs.d.ts.map +1 -0
  1415. package/dist/offline-sync-file-io.d.ts +8 -9
  1416. package/dist/offline-sync-file-io.d.ts.map +1 -0
  1417. package/dist/offline-sync-impression-drain.d.ts +8 -26
  1418. package/dist/offline-sync-impression-drain.d.ts.map +1 -0
  1419. package/dist/offline-sync-impression-drain.js +2 -2
  1420. package/dist/offline-sync.d.ts +57 -58
  1421. package/dist/offline-sync.d.ts.map +1 -0
  1422. package/dist/okf/cli.d.ts +10 -0
  1423. package/dist/okf/cli.d.ts.map +1 -0
  1424. package/dist/okf/config.d.ts +11 -0
  1425. package/dist/okf/config.d.ts.map +1 -0
  1426. package/dist/okf/index-files.d.ts +7 -0
  1427. package/dist/okf/index-files.d.ts.map +1 -0
  1428. package/dist/okf/lint.d.ts +12 -0
  1429. package/dist/okf/lint.d.ts.map +1 -0
  1430. package/dist/okf/render.d.ts +29 -0
  1431. package/dist/okf/render.d.ts.map +1 -0
  1432. package/dist/okf/sweep.d.ts +9 -0
  1433. package/dist/okf/sweep.d.ts.map +1 -0
  1434. package/dist/okf/type-mapping.d.ts +30 -0
  1435. package/dist/okf/type-mapping.d.ts.map +1 -0
  1436. package/dist/onboarding/index.d.ts +63 -0
  1437. package/dist/onboarding/index.d.ts.map +1 -0
  1438. package/dist/openai-chat-compat.d.ts +6 -7
  1439. package/dist/openai-chat-compat.d.ts.map +1 -0
  1440. package/dist/operator-doctor-corpus.d.ts +8 -29
  1441. package/dist/operator-doctor-corpus.d.ts.map +1 -0
  1442. package/dist/operator-doctor-corpus.js +21 -21
  1443. package/dist/operator-doctor-replica.d.ts +8 -29
  1444. package/dist/operator-doctor-replica.d.ts.map +1 -0
  1445. package/dist/operator-doctor-replica.js +4 -4
  1446. package/dist/operator-doctor-types.d.ts +2 -3
  1447. package/dist/operator-doctor-types.d.ts.map +1 -0
  1448. package/dist/operator-toolkit.d.ts +43 -75
  1449. package/dist/operator-toolkit.d.ts.map +1 -0
  1450. package/dist/operator-toolkit.js +37 -37
  1451. package/dist/opik-exporter.d.ts +6 -8
  1452. package/dist/opik-exporter.d.ts.map +1 -0
  1453. package/dist/orchestration/compression-guideline-coordinator.d.ts +6 -40
  1454. package/dist/orchestration/compression-guideline-coordinator.d.ts.map +1 -0
  1455. package/dist/orchestration/consolidation-run.d.ts +93 -0
  1456. package/dist/orchestration/consolidation-run.d.ts.map +1 -0
  1457. package/dist/orchestration/contradiction-linking-coordinator.d.ts +102 -0
  1458. package/dist/orchestration/contradiction-linking-coordinator.d.ts.map +1 -0
  1459. package/dist/orchestration/conversation-index-coordinator.d.ts +99 -0
  1460. package/dist/orchestration/conversation-index-coordinator.d.ts.map +1 -0
  1461. package/dist/orchestration/dependency-propagation-delivery.d.ts +129 -0
  1462. package/dist/orchestration/dependency-propagation-delivery.d.ts.map +1 -0
  1463. package/dist/orchestration/dependency-propagation-queue-state.d.ts +15 -0
  1464. package/dist/orchestration/dependency-propagation-queue-state.d.ts.map +1 -0
  1465. package/dist/orchestration/dependency-propagation-recovery-replay.d.ts +49 -0
  1466. package/dist/orchestration/dependency-propagation-recovery-replay.d.ts.map +1 -0
  1467. package/dist/orchestration/dependency-propagation-replay-reconciliation.d.ts +25 -0
  1468. package/dist/orchestration/dependency-propagation-replay-reconciliation.d.ts.map +1 -0
  1469. package/dist/orchestration/dependency-propagation.d.ts +64 -0
  1470. package/dist/orchestration/dependency-propagation.d.ts.map +1 -0
  1471. package/dist/orchestration/dependency-revalidation.d.ts +45 -0
  1472. package/dist/orchestration/dependency-revalidation.d.ts.map +1 -0
  1473. package/dist/orchestration/entity-synthesis-coordinator.d.ts +64 -0
  1474. package/dist/orchestration/entity-synthesis-coordinator.d.ts.map +1 -0
  1475. package/dist/orchestration/episodic-context-section.d.ts +30 -0
  1476. package/dist/orchestration/episodic-context-section.d.ts.map +1 -0
  1477. package/dist/orchestration/extraction-anchor-snapshot.d.ts +20 -0
  1478. package/dist/orchestration/extraction-anchor-snapshot.d.ts.map +1 -0
  1479. package/dist/orchestration/extraction-envelope.d.ts +40 -0
  1480. package/dist/orchestration/extraction-envelope.d.ts.map +1 -0
  1481. package/dist/orchestration/extraction-injection-gate.d.ts +51 -0
  1482. package/dist/orchestration/extraction-injection-gate.d.ts.map +1 -0
  1483. package/dist/orchestration/extraction-origin-context.d.ts +19 -0
  1484. package/dist/orchestration/extraction-origin-context.d.ts.map +1 -0
  1485. package/dist/orchestration/extraction-persist-deps.d.ts +76 -0
  1486. package/dist/orchestration/extraction-persist-deps.d.ts.map +1 -0
  1487. package/dist/orchestration/extraction-persist-promotion.d.ts +203 -0
  1488. package/dist/orchestration/extraction-persist-promotion.d.ts.map +1 -0
  1489. package/dist/orchestration/extraction-persist.d.ts +19 -0
  1490. package/dist/orchestration/extraction-persist.d.ts.map +1 -0
  1491. package/dist/orchestration/extraction-queue-coordinator.d.ts +103 -0
  1492. package/dist/orchestration/extraction-queue-coordinator.d.ts.map +1 -0
  1493. package/dist/orchestration/extraction-run-helpers.d.ts +123 -0
  1494. package/dist/orchestration/extraction-run-helpers.d.ts.map +1 -0
  1495. package/dist/orchestration/extraction-run.d.ts +174 -0
  1496. package/dist/orchestration/extraction-run.d.ts.map +1 -0
  1497. package/dist/orchestration/extraction-shutdown.d.ts +6 -0
  1498. package/dist/orchestration/extraction-shutdown.d.ts.map +1 -0
  1499. package/dist/orchestration/extraction-watermark.d.ts +28 -0
  1500. package/dist/orchestration/extraction-watermark.d.ts.map +1 -0
  1501. package/dist/orchestration/generic-recall-paths.d.ts +36 -0
  1502. package/dist/orchestration/generic-recall-paths.d.ts.map +1 -0
  1503. package/dist/orchestration/graph-path-state-loader.d.ts +15 -0
  1504. package/dist/orchestration/graph-path-state-loader.d.ts.map +1 -0
  1505. package/dist/orchestration/graph-recall-coordinator.d.ts +107 -0
  1506. package/dist/orchestration/graph-recall-coordinator.d.ts.map +1 -0
  1507. package/dist/orchestration/harmonic-construction-persist.d.ts +58 -0
  1508. package/dist/orchestration/harmonic-construction-persist.d.ts.map +1 -0
  1509. package/dist/orchestration/lifecycle-policy-coordinator.d.ts +81 -0
  1510. package/dist/orchestration/lifecycle-policy-coordinator.d.ts.map +1 -0
  1511. package/dist/orchestration/maintenance.d.ts +229 -37
  1512. package/dist/orchestration/maintenance.d.ts.map +1 -0
  1513. package/dist/orchestration/maintenance.js +25 -25
  1514. package/dist/orchestration/namespace-read-fanout.d.ts +95 -0
  1515. package/dist/orchestration/namespace-read-fanout.d.ts.map +1 -0
  1516. package/dist/orchestration/orchestrator-helpers.d.ts +408 -0
  1517. package/dist/orchestration/orchestrator-helpers.d.ts.map +1 -0
  1518. package/dist/orchestration/orchestrator-init.d.ts +124 -0
  1519. package/dist/orchestration/orchestrator-init.d.ts.map +1 -0
  1520. package/dist/orchestration/orchestrator-namespace-scope.d.ts +19 -0
  1521. package/dist/orchestration/orchestrator-namespace-scope.d.ts.map +1 -0
  1522. package/dist/orchestration/persistence-index.d.ts +141 -0
  1523. package/dist/orchestration/persistence-index.d.ts.map +1 -0
  1524. package/dist/orchestration/projection-rebuild-schedule.d.ts +21 -0
  1525. package/dist/orchestration/projection-rebuild-schedule.d.ts.map +1 -0
  1526. package/dist/orchestration/qmd-result-resolver.d.ts +75 -0
  1527. package/dist/orchestration/qmd-result-resolver.d.ts.map +1 -0
  1528. package/dist/orchestration/recall-background-writes.d.ts +3 -0
  1529. package/dist/orchestration/recall-background-writes.d.ts.map +1 -0
  1530. package/dist/orchestration/recall-entry.d.ts +78 -0
  1531. package/dist/orchestration/recall-entry.d.ts.map +1 -0
  1532. package/dist/orchestration/recall-internal-deps.d.ts +311 -0
  1533. package/dist/orchestration/recall-internal-deps.d.ts.map +1 -0
  1534. package/dist/orchestration/recall-internal.d.ts +30 -0
  1535. package/dist/orchestration/recall-internal.d.ts.map +1 -0
  1536. package/dist/orchestration/recall-introspection.d.ts +108 -0
  1537. package/dist/orchestration/recall-introspection.d.ts.map +1 -0
  1538. package/dist/orchestration/recall-profile-storage.d.ts +20 -0
  1539. package/dist/orchestration/recall-profile-storage.d.ts.map +1 -0
  1540. package/dist/orchestration/recall-recognition-index.d.ts +23 -0
  1541. package/dist/orchestration/recall-recognition-index.d.ts.map +1 -0
  1542. package/dist/orchestration/recall-recognition-search.d.ts +7 -0
  1543. package/dist/orchestration/recall-recognition-search.d.ts.map +1 -0
  1544. package/dist/orchestration/recall-rerank-coordinator.d.ts +126 -0
  1545. package/dist/orchestration/recall-rerank-coordinator.d.ts.map +1 -0
  1546. package/dist/orchestration/recall-result-formatter.d.ts +128 -0
  1547. package/dist/orchestration/recall-result-formatter.d.ts.map +1 -0
  1548. package/dist/orchestration/recall-search-pipeline.d.ts +284 -0
  1549. package/dist/orchestration/recall-search-pipeline.d.ts.map +1 -0
  1550. package/dist/orchestration/recall-search-prefilter.d.ts +31 -0
  1551. package/dist/orchestration/recall-search-prefilter.d.ts.map +1 -0
  1552. package/dist/orchestration/recall-section-coordinator.d.ts +92 -0
  1553. package/dist/orchestration/recall-section-coordinator.d.ts.map +1 -0
  1554. package/dist/orchestration/self-deps.d.ts +27 -0
  1555. package/dist/orchestration/self-deps.d.ts.map +1 -0
  1556. package/dist/orchestration/semantic-consolidation-coordinator.d.ts +64 -0
  1557. package/dist/orchestration/semantic-consolidation-coordinator.d.ts.map +1 -0
  1558. package/dist/orchestration/semantic-merge-commit-effects.d.ts +193 -0
  1559. package/dist/orchestration/semantic-merge-commit-effects.d.ts.map +1 -0
  1560. package/dist/orchestration/semantic-merge-persist.d.ts +318 -0
  1561. package/dist/orchestration/semantic-merge-persist.d.ts.map +1 -0
  1562. package/dist/orchestration/semantic-merge-promotion-payload.d.ts +132 -0
  1563. package/dist/orchestration/semantic-merge-promotion-payload.d.ts.map +1 -0
  1564. package/dist/orchestration/session-context.d.ts +225 -0
  1565. package/dist/orchestration/session-context.d.ts.map +1 -0
  1566. package/dist/orchestration/startup-collection-checks.d.ts +23 -0
  1567. package/dist/orchestration/startup-collection-checks.d.ts.map +1 -0
  1568. package/dist/orchestration/tier-migration-coordinator.d.ts +65 -0
  1569. package/dist/orchestration/tier-migration-coordinator.d.ts.map +1 -0
  1570. package/dist/orchestration/turn-ingestion.d.ts +227 -0
  1571. package/dist/orchestration/turn-ingestion.d.ts.map +1 -0
  1572. package/dist/orchestration/update-localization.d.ts +37 -0
  1573. package/dist/orchestration/update-localization.d.ts.map +1 -0
  1574. package/dist/orchestration/workspace-ops.d.ts +154 -0
  1575. package/dist/orchestration/workspace-ops.d.ts.map +1 -0
  1576. package/dist/orchestration/xray-capture-queue.d.ts +17 -0
  1577. package/dist/orchestration/xray-capture-queue.d.ts.map +1 -0
  1578. package/dist/orchestrator.d.ts +867 -109
  1579. package/dist/orchestrator.d.ts.map +1 -0
  1580. package/dist/orchestrator.js +157 -152
  1581. package/dist/page-versioning.d.ts +16 -17
  1582. package/dist/page-versioning.d.ts.map +1 -0
  1583. package/dist/patterns-cli.d.ts +20 -40
  1584. package/dist/patterns-cli.d.ts.map +1 -0
  1585. package/dist/peers/index.d.ts +17 -327
  1586. package/dist/peers/index.d.ts.map +1 -0
  1587. package/dist/peers/migrate-from-identity-anchor.d.ts +119 -0
  1588. package/dist/peers/migrate-from-identity-anchor.d.ts.map +1 -0
  1589. package/dist/peers/profile-reasoner.d.ts +204 -0
  1590. package/dist/peers/profile-reasoner.d.ts.map +1 -0
  1591. package/dist/peers/storage.d.ts +163 -0
  1592. package/dist/peers/storage.d.ts.map +1 -0
  1593. package/dist/peers/types.d.ts +125 -0
  1594. package/dist/peers/types.d.ts.map +1 -0
  1595. package/dist/plugin-entry-resolver.d.ts +3 -4
  1596. package/dist/plugin-entry-resolver.d.ts.map +1 -0
  1597. package/dist/plugin-id.d.ts +4 -5
  1598. package/dist/plugin-id.d.ts.map +1 -0
  1599. package/dist/policy-runtime.d.ts +7 -26
  1600. package/dist/policy-runtime.d.ts.map +1 -0
  1601. package/dist/preferences/drift-config.d.ts +27 -0
  1602. package/dist/preferences/drift-config.d.ts.map +1 -0
  1603. package/dist/preferences/drift-recall.d.ts +74 -0
  1604. package/dist/preferences/drift-recall.d.ts.map +1 -0
  1605. package/dist/preferences/drift-types.d.ts +59 -0
  1606. package/dist/preferences/drift-types.d.ts.map +1 -0
  1607. package/dist/preferences/index.d.ts +12 -0
  1608. package/dist/preferences/index.d.ts.map +1 -0
  1609. package/dist/preferences/preference-drift.d.ts +144 -0
  1610. package/dist/preferences/preference-drift.d.ts.map +1 -0
  1611. package/dist/prioritized-embed.d.ts +3 -4
  1612. package/dist/prioritized-embed.d.ts.map +1 -0
  1613. package/dist/proactive-contention.d.ts +4 -24
  1614. package/dist/proactive-contention.d.ts.map +1 -0
  1615. package/dist/procedural/library-maintenance.d.ts +102 -0
  1616. package/dist/procedural/library-maintenance.d.ts.map +1 -0
  1617. package/dist/procedural/maintenance-config.d.ts +9 -0
  1618. package/dist/procedural/maintenance-config.d.ts.map +1 -0
  1619. package/dist/procedural/procedure-miner.d.ts +20 -0
  1620. package/dist/procedural/procedure-miner.d.ts.map +1 -0
  1621. package/dist/procedural/procedure-recall.d.ts +30 -0
  1622. package/dist/procedural/procedure-recall.d.ts.map +1 -0
  1623. package/dist/procedural/procedure-stats.d.ts +68 -0
  1624. package/dist/procedural/procedure-stats.d.ts.map +1 -0
  1625. package/dist/procedural/procedure-types.d.ts +26 -0
  1626. package/dist/procedural/procedure-types.d.ts.map +1 -0
  1627. package/dist/procedural/reinforcement-core.d.ts +39 -0
  1628. package/dist/procedural/reinforcement-core.d.ts.map +1 -0
  1629. package/dist/procedural/skill-io.d.ts +70 -0
  1630. package/dist/procedural/skill-io.d.ts.map +1 -0
  1631. package/dist/procedural/skill-projection.d.ts +98 -0
  1632. package/dist/procedural/skill-projection.d.ts.map +1 -0
  1633. package/dist/profiling.d.ts +10 -11
  1634. package/dist/profiling.d.ts.map +1 -0
  1635. package/dist/projection/index.d.ts +62 -0
  1636. package/dist/projection/index.d.ts.map +1 -0
  1637. package/dist/provenance.d.ts +13 -33
  1638. package/dist/provenance.d.ts.map +1 -0
  1639. package/dist/provenance.js +2 -2
  1640. package/dist/providers/codex-subscription.d.ts +115 -0
  1641. package/dist/providers/codex-subscription.d.ts.map +1 -0
  1642. package/dist/qmd-preflight.d.ts +31 -21
  1643. package/dist/qmd-preflight.d.ts.map +1 -0
  1644. package/dist/qmd-recall-cache.d.ts +11 -30
  1645. package/dist/qmd-recall-cache.d.ts.map +1 -0
  1646. package/dist/qmd-status.d.ts +10 -11
  1647. package/dist/qmd-status.d.ts.map +1 -0
  1648. package/dist/qmd.d.ts +325 -21
  1649. package/dist/qmd.d.ts.map +1 -0
  1650. package/dist/reasoning-trace-recall.d.ts +7 -8
  1651. package/dist/reasoning-trace-recall.d.ts.map +1 -0
  1652. package/dist/reasoning-trace-types.d.ts +9 -10
  1653. package/dist/reasoning-trace-types.d.ts.map +1 -0
  1654. package/dist/recall-audit-anomaly.d.ts +11 -15
  1655. package/dist/recall-audit-anomaly.d.ts.map +1 -0
  1656. package/dist/recall-audit.d.ts +6 -8
  1657. package/dist/recall-audit.d.ts.map +1 -0
  1658. package/dist/recall-composition-decision.d.ts +9 -12
  1659. package/dist/recall-composition-decision.d.ts.map +1 -0
  1660. package/dist/recall-concurrency-config.d.ts +3 -22
  1661. package/dist/recall-concurrency-config.d.ts.map +1 -0
  1662. package/dist/recall-context-composition.d.ts +21 -22
  1663. package/dist/recall-context-composition.d.ts.map +1 -0
  1664. package/dist/recall-deep-access.d.ts +9 -12
  1665. package/dist/recall-deep-access.d.ts.map +1 -0
  1666. package/dist/recall-deep-budget-left.d.ts +2 -3
  1667. package/dist/recall-deep-budget-left.d.ts.map +1 -0
  1668. package/dist/recall-deep-budget.d.ts +2 -3
  1669. package/dist/recall-deep-budget.d.ts.map +1 -0
  1670. package/dist/recall-deep-expand-select.d.ts +4 -5
  1671. package/dist/recall-deep-expand-select.d.ts.map +1 -0
  1672. package/dist/recall-deep-expand.d.ts +2 -3
  1673. package/dist/recall-deep-expand.d.ts.map +1 -0
  1674. package/dist/recall-deep-frontier.d.ts +4 -5
  1675. package/dist/recall-deep-frontier.d.ts.map +1 -0
  1676. package/dist/recall-deep-policy.d.ts +5 -6
  1677. package/dist/recall-deep-policy.d.ts.map +1 -0
  1678. package/dist/recall-deep-query.d.ts +3 -4
  1679. package/dist/recall-deep-query.d.ts.map +1 -0
  1680. package/dist/recall-deep-refine.d.ts +2 -3
  1681. package/dist/recall-deep-refine.d.ts.map +1 -0
  1682. package/dist/recall-deep-render.d.ts +3 -6
  1683. package/dist/recall-deep-render.d.ts.map +1 -0
  1684. package/dist/recall-deep-rewrite.d.ts +4 -5
  1685. package/dist/recall-deep-rewrite.d.ts.map +1 -0
  1686. package/dist/recall-deep-step-count.d.ts +2 -3
  1687. package/dist/recall-deep-step-count.d.ts.map +1 -0
  1688. package/dist/recall-deep-stop-reason.d.ts +5 -6
  1689. package/dist/recall-deep-stop-reason.d.ts.map +1 -0
  1690. package/dist/recall-deep-stop.d.ts +6 -7
  1691. package/dist/recall-deep-stop.d.ts.map +1 -0
  1692. package/dist/recall-deep-trace-empty.d.ts +2 -3
  1693. package/dist/recall-deep-trace-empty.d.ts.map +1 -0
  1694. package/dist/recall-deep-working-set.d.ts +2 -3
  1695. package/dist/recall-deep-working-set.d.ts.map +1 -0
  1696. package/dist/recall-deep.d.ts +11 -12
  1697. package/dist/recall-deep.d.ts.map +1 -0
  1698. package/dist/recall-disclosure-escalation.d.ts +9 -29
  1699. package/dist/recall-disclosure-escalation.d.ts.map +1 -0
  1700. package/dist/recall-explain-renderer.d.ts +12 -38
  1701. package/dist/recall-explain-renderer.d.ts.map +1 -0
  1702. package/dist/recall-explain-renderer.js +3 -3
  1703. package/dist/recall-handles.d.ts +23 -24
  1704. package/dist/recall-handles.d.ts.map +1 -0
  1705. package/dist/recall-memory-map.d.ts +8 -27
  1706. package/dist/recall-memory-map.d.ts.map +1 -0
  1707. package/dist/recall-mmr.d.ts +13 -14
  1708. package/dist/recall-mmr.d.ts.map +1 -0
  1709. package/dist/recall-navigate-access.d.ts +6 -27
  1710. package/dist/recall-navigate-access.d.ts.map +1 -0
  1711. package/dist/recall-navigate-access.js +2 -2
  1712. package/dist/recall-navigate-action.d.ts +5 -5
  1713. package/dist/recall-navigate-action.d.ts.map +1 -0
  1714. package/dist/recall-navigate-budget.d.ts +3 -4
  1715. package/dist/recall-navigate-budget.d.ts.map +1 -0
  1716. package/dist/recall-navigate-cost.d.ts +2 -3
  1717. package/dist/recall-navigate-cost.d.ts.map +1 -0
  1718. package/dist/recall-navigate-depth.d.ts +2 -3
  1719. package/dist/recall-navigate-depth.d.ts.map +1 -0
  1720. package/dist/recall-navigate-disclosure.d.ts +5 -25
  1721. package/dist/recall-navigate-disclosure.d.ts.map +1 -0
  1722. package/dist/recall-navigate-disclosure.js +2 -2
  1723. package/dist/recall-navigate-link.d.ts +5 -5
  1724. package/dist/recall-navigate-link.d.ts.map +1 -0
  1725. package/dist/recall-navigate-max-children.d.ts +2 -3
  1726. package/dist/recall-navigate-max-children.d.ts.map +1 -0
  1727. package/dist/recall-navigate-node.d.ts +3 -4
  1728. package/dist/recall-navigate-node.d.ts.map +1 -0
  1729. package/dist/recall-navigate-path.d.ts +2 -3
  1730. package/dist/recall-navigate-path.d.ts.map +1 -0
  1731. package/dist/recall-navigate-render.d.ts +3 -4
  1732. package/dist/recall-navigate-render.d.ts.map +1 -0
  1733. package/dist/recall-navigate-traverse.d.ts +5 -6
  1734. package/dist/recall-navigate-traverse.d.ts.map +1 -0
  1735. package/dist/recall-navigate-window.d.ts +5 -6
  1736. package/dist/recall-navigate-window.d.ts.map +1 -0
  1737. package/dist/recall-navigate.d.ts +13 -33
  1738. package/dist/recall-navigate.d.ts.map +1 -0
  1739. package/dist/recall-navigate.js +2 -2
  1740. package/dist/recall-navigation-config.d.ts +7 -8
  1741. package/dist/recall-navigation-config.d.ts.map +1 -0
  1742. package/dist/recall-navigation-http-glue.d.ts +5 -151
  1743. package/dist/recall-navigation-http-glue.d.ts.map +1 -0
  1744. package/dist/recall-navigation-http-glue.js +2 -2
  1745. package/dist/recall-navigation-mcp-tools.d.ts +3 -150
  1746. package/dist/recall-navigation-mcp-tools.d.ts.map +1 -0
  1747. package/dist/recall-navigation-operations.d.ts +11 -2
  1748. package/dist/recall-navigation-operations.d.ts.map +1 -0
  1749. package/dist/recall-navigation-operations.js +66 -61
  1750. package/dist/recall-navigation-renderer.d.ts +4 -28
  1751. package/dist/recall-navigation-renderer.d.ts.map +1 -0
  1752. package/dist/recall-navigation.d.ts +13 -34
  1753. package/dist/recall-navigation.d.ts.map +1 -0
  1754. package/dist/recall-navigation.js +65 -60
  1755. package/dist/recall-pipeline-stages.d.ts +6 -9
  1756. package/dist/recall-pipeline-stages.d.ts.map +1 -0
  1757. package/dist/recall-planner-i18n.d.ts +13 -14
  1758. package/dist/recall-planner-i18n.d.ts.map +1 -0
  1759. package/dist/recall-planner-llm.d.ts +8 -30
  1760. package/dist/recall-planner-llm.d.ts.map +1 -0
  1761. package/dist/recall-qos.d.ts +13 -15
  1762. package/dist/recall-qos.d.ts.map +1 -0
  1763. package/dist/recall-query-policy.d.ts +9 -10
  1764. package/dist/recall-query-policy.d.ts.map +1 -0
  1765. package/dist/recall-recognition-tier.d.ts +27 -28
  1766. package/dist/recall-recognition-tier.d.ts.map +1 -0
  1767. package/dist/recall-state-view-admission.d.ts +7 -26
  1768. package/dist/recall-state-view-admission.d.ts.map +1 -0
  1769. package/dist/recall-state-view-admission.js +3 -3
  1770. package/dist/recall-state-view-anchors.d.ts +10 -29
  1771. package/dist/recall-state-view-anchors.d.ts.map +1 -0
  1772. package/dist/recall-state-view-current.d.ts +4 -5
  1773. package/dist/recall-state-view-current.d.ts.map +1 -0
  1774. package/dist/recall-state-view-inject.d.ts +3 -7
  1775. package/dist/recall-state-view-inject.d.ts.map +1 -0
  1776. package/dist/recall-state-view-kind.d.ts +5 -5
  1777. package/dist/recall-state-view-kind.d.ts.map +1 -0
  1778. package/dist/recall-state-view-label.d.ts +3 -6
  1779. package/dist/recall-state-view-label.d.ts.map +1 -0
  1780. package/dist/recall-state-view-packet.d.ts +7 -9
  1781. package/dist/recall-state-view-packet.d.ts.map +1 -0
  1782. package/dist/recall-state-view-render.d.ts +4 -7
  1783. package/dist/recall-state-view-render.d.ts.map +1 -0
  1784. package/dist/recall-state-view-successor.d.ts +3 -4
  1785. package/dist/recall-state-view-successor.d.ts.map +1 -0
  1786. package/dist/recall-state-view-superseded.d.ts +3 -4
  1787. package/dist/recall-state-view-superseded.d.ts.map +1 -0
  1788. package/dist/recall-state-view-transition.d.ts +4 -5
  1789. package/dist/recall-state-view-transition.d.ts.map +1 -0
  1790. package/dist/recall-state-view-widen.d.ts +3 -6
  1791. package/dist/recall-state-view-widen.d.ts.map +1 -0
  1792. package/dist/recall-state-view-wire.d.ts +3 -6
  1793. package/dist/recall-state-view-wire.d.ts.map +1 -0
  1794. package/dist/recall-state-view-zero-diff.d.ts +4 -5
  1795. package/dist/recall-state-view-zero-diff.d.ts.map +1 -0
  1796. package/dist/recall-state-view.d.ts +16 -17
  1797. package/dist/recall-state-view.d.ts.map +1 -0
  1798. package/dist/recall-state.d.ts +17 -35
  1799. package/dist/recall-state.d.ts.map +1 -0
  1800. package/dist/recall-tag-filter.d.ts +10 -33
  1801. package/dist/recall-tag-filter.d.ts.map +1 -0
  1802. package/dist/recall-timings.d.ts +10 -29
  1803. package/dist/recall-timings.d.ts.map +1 -0
  1804. package/dist/recall-tokenization.d.ts +7 -8
  1805. package/dist/recall-tokenization.d.ts.map +1 -0
  1806. package/dist/recall-why-cli.d.ts +25 -0
  1807. package/dist/recall-why-cli.d.ts.map +1 -0
  1808. package/dist/recall-why-cli.js +9 -0
  1809. package/dist/recall-why-cli.js.map +1 -0
  1810. package/dist/recall-why-renderer.d.ts +25 -0
  1811. package/dist/recall-why-renderer.d.ts.map +1 -0
  1812. package/dist/recall-why-renderer.js +18 -0
  1813. package/dist/recall-why-renderer.js.map +1 -0
  1814. package/dist/recall-why-service.d.ts +49 -0
  1815. package/dist/recall-why-service.d.ts.map +1 -0
  1816. package/dist/recall-why-service.js +46 -0
  1817. package/dist/recall-why-service.js.map +1 -0
  1818. package/dist/recall-why.d.ts +175 -0
  1819. package/dist/recall-why.d.ts.map +1 -0
  1820. package/dist/recall-why.js +25 -0
  1821. package/dist/recall-why.js.map +1 -0
  1822. package/dist/recall-xray-cli.d.ts +7 -31
  1823. package/dist/recall-xray-cli.d.ts.map +1 -0
  1824. package/dist/recall-xray-cli.js +4 -4
  1825. package/dist/recall-xray-renderer.d.ts +9 -33
  1826. package/dist/recall-xray-renderer.d.ts.map +1 -0
  1827. package/dist/recall-xray-renderer.js +3 -3
  1828. package/dist/recall-xray.d.ts +19 -39
  1829. package/dist/recall-xray.d.ts.map +1 -0
  1830. package/dist/recall-xray.js +2 -2
  1831. package/dist/reconcile/cursor.d.ts +15 -37
  1832. package/dist/reconcile/cursor.d.ts.map +1 -0
  1833. package/dist/reconcile/manifest.d.ts +19 -40
  1834. package/dist/reconcile/manifest.d.ts.map +1 -0
  1835. package/dist/reconcile/manifest.js +2 -2
  1836. package/dist/reconcile/plan.d.ts +22 -42
  1837. package/dist/reconcile/plan.d.ts.map +1 -0
  1838. package/dist/reconstruct.d.ts +2 -3
  1839. package/dist/reconstruct.d.ts.map +1 -0
  1840. package/dist/relay/mission-access.d.ts +28 -0
  1841. package/dist/relay/mission-access.d.ts.map +1 -0
  1842. package/dist/relay/mission-fixture.d.ts +11 -0
  1843. package/dist/relay/mission-fixture.d.ts.map +1 -0
  1844. package/dist/relay/mission.d.ts +3952 -0
  1845. package/dist/relay/mission.d.ts.map +1 -0
  1846. package/dist/release-changelog.d.ts +3 -4
  1847. package/dist/release-changelog.d.ts.map +1 -0
  1848. package/dist/relevance.d.ts +3 -3
  1849. package/dist/relevance.d.ts.map +1 -0
  1850. package/dist/replay/normalizers/chatgpt.d.ts +3 -23
  1851. package/dist/replay/normalizers/chatgpt.d.ts.map +1 -0
  1852. package/dist/replay/normalizers/claude.d.ts +3 -23
  1853. package/dist/replay/normalizers/claude.d.ts.map +1 -0
  1854. package/dist/replay/normalizers/openclaw.d.ts +3 -23
  1855. package/dist/replay/normalizers/openclaw.d.ts.map +1 -0
  1856. package/dist/replay/normalizers/shared.d.ts +6 -25
  1857. package/dist/replay/normalizers/shared.d.ts.map +1 -0
  1858. package/dist/replay/runner.d.ts +10 -30
  1859. package/dist/replay/runner.d.ts.map +1 -0
  1860. package/dist/replay/types.d.ts +18 -37
  1861. package/dist/replay/types.d.ts.map +1 -0
  1862. package/dist/replica-divergence.d.ts +24 -45
  1863. package/dist/replica-divergence.d.ts.map +1 -0
  1864. package/dist/replica-divergence.js +3 -3
  1865. package/dist/replica-peers-config.d.ts +50 -18
  1866. package/dist/replica-peers-config.d.ts.map +1 -0
  1867. package/dist/rerank.d.ts +8 -9
  1868. package/dist/rerank.d.ts.map +1 -0
  1869. package/dist/resolution-CHNISQJB.js +36 -0
  1870. package/dist/resolution-CHNISQJB.js.map +1 -0
  1871. package/dist/resolve-auth-token.d.ts +9 -27
  1872. package/dist/resolve-auth-token.d.ts.map +1 -0
  1873. package/dist/resolve-provider-secret.d.ts +10 -11
  1874. package/dist/resolve-provider-secret.d.ts.map +1 -0
  1875. package/dist/response-guidance-recall.d.ts +5 -8
  1876. package/dist/response-guidance-recall.d.ts.map +1 -0
  1877. package/dist/resume-bundles.d.ts +9 -10
  1878. package/dist/resume-bundles.d.ts.map +1 -0
  1879. package/dist/resume-bundles.js +24 -24
  1880. package/dist/retrieval-agents.d.ts +14 -36
  1881. package/dist/retrieval-agents.d.ts.map +1 -0
  1882. package/dist/retrieval-tiers.d.ts +4 -24
  1883. package/dist/retrieval-tiers.d.ts.map +1 -0
  1884. package/dist/retrieval.d.ts +5 -6
  1885. package/dist/retrieval.d.ts.map +1 -0
  1886. package/dist/review/frontmatter.d.ts +6 -0
  1887. package/dist/review/frontmatter.d.ts.map +1 -0
  1888. package/dist/review/index.d.ts +81 -0
  1889. package/dist/review/index.d.ts.map +1 -0
  1890. package/dist/review/review-deck-http-base.d.ts +10 -0
  1891. package/dist/review/review-deck-http-base.d.ts.map +1 -0
  1892. package/dist/review/review-deck-mutation.d.ts +51 -0
  1893. package/dist/review/review-deck-mutation.d.ts.map +1 -0
  1894. package/dist/review/review-deck-snapshot.d.ts +10 -0
  1895. package/dist/review/review-deck-snapshot.d.ts.map +1 -0
  1896. package/dist/review/review-deck-surface.d.ts +33 -0
  1897. package/dist/review/review-deck-surface.d.ts.map +1 -0
  1898. package/dist/review/review-deck.d.ts +107 -0
  1899. package/dist/review/review-deck.d.ts.map +1 -0
  1900. package/dist/routing/engine.d.ts +12 -31
  1901. package/dist/routing/engine.d.ts.map +1 -0
  1902. package/dist/routing/store.d.ts +3 -23
  1903. package/dist/routing/store.d.ts.map +1 -0
  1904. package/dist/runtime/better-sqlite.d.ts +9 -10
  1905. package/dist/runtime/better-sqlite.d.ts.map +1 -0
  1906. package/dist/runtime/child-process.d.ts +5 -5
  1907. package/dist/runtime/child-process.d.ts.map +1 -0
  1908. package/dist/runtime/daemon-health.d.ts +2 -0
  1909. package/dist/runtime/daemon-health.d.ts.map +1 -0
  1910. package/dist/runtime/env.d.ts +5 -6
  1911. package/dist/runtime/env.d.ts.map +1 -0
  1912. package/dist/runtime/http-transport.d.ts +3 -4
  1913. package/dist/runtime/http-transport.d.ts.map +1 -0
  1914. package/dist/salvage-envelope.d.ts +3 -23
  1915. package/dist/salvage-envelope.d.ts.map +1 -0
  1916. package/dist/sanitize.d.ts +5 -7
  1917. package/dist/sanitize.d.ts.map +1 -0
  1918. package/dist/schemas.d.ts +205 -207
  1919. package/dist/schemas.d.ts.map +1 -0
  1920. package/dist/scopes/scope-plan.d.ts +258 -0
  1921. package/dist/scopes/scope-plan.d.ts.map +1 -0
  1922. package/dist/sdk-compat.d.ts +4 -5
  1923. package/dist/sdk-compat.d.ts.map +1 -0
  1924. package/dist/search/abort.d.ts +5 -0
  1925. package/dist/search/abort.d.ts.map +1 -0
  1926. package/dist/search/document-scanner.d.ts +3 -4
  1927. package/dist/search/document-scanner.d.ts.map +1 -0
  1928. package/dist/search/embed-helper.d.ts +8 -26
  1929. package/dist/search/embed-helper.d.ts.map +1 -0
  1930. package/dist/search/factory.d.ts +10 -31
  1931. package/dist/search/factory.d.ts.map +1 -0
  1932. package/dist/search/factory.js +4 -4
  1933. package/dist/search/index.d.ts +11 -32
  1934. package/dist/search/index.d.ts.map +1 -0
  1935. package/dist/search/index.js +10 -10
  1936. package/dist/search/lancedb-backend.d.ts +5 -26
  1937. package/dist/search/lancedb-backend.d.ts.map +1 -0
  1938. package/dist/search/meilisearch-backend.d.ts +4 -24
  1939. package/dist/search/meilisearch-backend.d.ts.map +1 -0
  1940. package/dist/search/noop-backend.d.ts +3 -23
  1941. package/dist/search/noop-backend.d.ts.map +1 -0
  1942. package/dist/search/orama-backend.d.ts +6 -27
  1943. package/dist/search/orama-backend.d.ts.map +1 -0
  1944. package/dist/search/orama-cjk-tokenizer.d.ts +53 -0
  1945. package/dist/search/orama-cjk-tokenizer.d.ts.map +1 -0
  1946. package/dist/search/port.d.ts +10 -29
  1947. package/dist/search/port.d.ts.map +1 -0
  1948. package/dist/search/remote-backend.d.ts +4 -24
  1949. package/dist/search/remote-backend.d.ts.map +1 -0
  1950. package/dist/secure-store/cipher.d.ts +127 -0
  1951. package/dist/secure-store/cipher.d.ts.map +1 -0
  1952. package/dist/secure-store/cli-handlers.d.ts +134 -0
  1953. package/dist/secure-store/cli-handlers.d.ts.map +1 -0
  1954. package/dist/secure-store/cli-renderer.d.ts +16 -0
  1955. package/dist/secure-store/cli-renderer.d.ts.map +1 -0
  1956. package/dist/secure-store/header.d.ts +137 -0
  1957. package/dist/secure-store/header.d.ts.map +1 -0
  1958. package/dist/secure-store/index.d.ts +23 -899
  1959. package/dist/secure-store/index.d.ts.map +1 -0
  1960. package/dist/secure-store/kdf.d.ts +101 -0
  1961. package/dist/secure-store/kdf.d.ts.map +1 -0
  1962. package/dist/secure-store/keyring.d.ts +58 -0
  1963. package/dist/secure-store/keyring.d.ts.map +1 -0
  1964. package/dist/secure-store/metadata.d.ts +104 -0
  1965. package/dist/secure-store/metadata.d.ts.map +1 -0
  1966. package/dist/secure-store/passphrase-reader.d.ts +40 -0
  1967. package/dist/secure-store/passphrase-reader.d.ts.map +1 -0
  1968. package/dist/secure-store/secure-fs.d.ts +227 -0
  1969. package/dist/secure-store/secure-fs.d.ts.map +1 -0
  1970. package/dist/security/audit-memory-cli.d.ts +9 -0
  1971. package/dist/security/audit-memory-cli.d.ts.map +1 -0
  1972. package/dist/security/audit-memory.d.ts +48 -0
  1973. package/dist/security/audit-memory.d.ts.map +1 -0
  1974. package/dist/security/injection-screen.d.ts +19 -0
  1975. package/dist/security/injection-screen.d.ts.map +1 -0
  1976. package/dist/security/origin-authority.d.ts +30 -0
  1977. package/dist/security/origin-authority.d.ts.map +1 -0
  1978. package/dist/security/types.d.ts +13 -0
  1979. package/dist/security/types.d.ts.map +1 -0
  1980. package/dist/semantic-chunking.d.ts +13 -16
  1981. package/dist/semantic-chunking.d.ts.map +1 -0
  1982. package/dist/semantic-consolidation.d.ts +126 -22
  1983. package/dist/semantic-consolidation.d.ts.map +1 -0
  1984. package/dist/semantic-consolidation.js +15 -15
  1985. package/dist/semantic-merge-config.d.ts +2 -3
  1986. package/dist/semantic-merge-config.d.ts.map +1 -0
  1987. package/dist/semantic-rule-promotion.d.ts +7 -7
  1988. package/dist/semantic-rule-promotion.d.ts.map +1 -0
  1989. package/dist/semantic-rule-promotion.js +14 -14
  1990. package/dist/semantic-rule-verifier.d.ts +6 -25
  1991. package/dist/semantic-rule-verifier.d.ts.map +1 -0
  1992. package/dist/semantic-rule-verifier.js +14 -14
  1993. package/dist/session-identity.d.ts +10 -11
  1994. package/dist/session-identity.d.ts.map +1 -0
  1995. package/dist/session-integrity.d.ts +14 -15
  1996. package/dist/session-integrity.d.ts.map +1 -0
  1997. package/dist/session-namespace-bindings.d.ts +10 -11
  1998. package/dist/session-namespace-bindings.d.ts.map +1 -0
  1999. package/dist/session-observer-bands.d.ts +4 -23
  2000. package/dist/session-observer-bands.d.ts.map +1 -0
  2001. package/dist/session-observer-state.d.ts +6 -25
  2002. package/dist/session-observer-state.d.ts.map +1 -0
  2003. package/dist/session-summaries/adapters.d.ts +5 -0
  2004. package/dist/session-summaries/adapters.d.ts.map +1 -0
  2005. package/dist/session-summaries/index.d.ts +7 -0
  2006. package/dist/session-summaries/index.d.ts.map +1 -0
  2007. package/dist/session-summaries/redaction.d.ts +8 -0
  2008. package/dist/session-summaries/redaction.d.ts.map +1 -0
  2009. package/dist/session-summaries/types.d.ts +113 -0
  2010. package/dist/session-summaries/types.d.ts.map +1 -0
  2011. package/dist/session-toggles.d.ts +4 -4
  2012. package/dist/session-toggles.d.ts.map +1 -0
  2013. package/dist/session-transcript-migration.d.ts +9 -10
  2014. package/dist/session-transcript-migration.d.ts.map +1 -0
  2015. package/dist/shared-context/authority-precedence.d.ts +22 -0
  2016. package/dist/shared-context/authority-precedence.d.ts.map +1 -0
  2017. package/dist/shared-context/authority.d.ts +18 -0
  2018. package/dist/shared-context/authority.d.ts.map +1 -0
  2019. package/dist/shared-context/claim-key.d.ts +14 -0
  2020. package/dist/shared-context/claim-key.d.ts.map +1 -0
  2021. package/dist/shared-context/contradictions.d.ts +20 -0
  2022. package/dist/shared-context/contradictions.d.ts.map +1 -0
  2023. package/dist/shared-context/curation-lint.d.ts +23 -0
  2024. package/dist/shared-context/curation-lint.d.ts.map +1 -0
  2025. package/dist/shared-context/envelope-actor.d.ts +14 -0
  2026. package/dist/shared-context/envelope-actor.d.ts.map +1 -0
  2027. package/dist/shared-context/envelope-at.d.ts +19 -0
  2028. package/dist/shared-context/envelope-at.d.ts.map +1 -0
  2029. package/dist/shared-context/envelope-id.d.ts +14 -0
  2030. package/dist/shared-context/envelope-id.d.ts.map +1 -0
  2031. package/dist/shared-context/envelope-io.d.ts +100 -0
  2032. package/dist/shared-context/envelope-io.d.ts.map +1 -0
  2033. package/dist/shared-context/envelope-required.d.ts +14 -0
  2034. package/dist/shared-context/envelope-required.d.ts.map +1 -0
  2035. package/dist/shared-context/envelope-ttl.d.ts +12 -0
  2036. package/dist/shared-context/envelope-ttl.d.ts.map +1 -0
  2037. package/dist/shared-context/governance.d.ts +28 -0
  2038. package/dist/shared-context/governance.d.ts.map +1 -0
  2039. package/dist/shared-context/iso-instant.d.ts +19 -0
  2040. package/dist/shared-context/iso-instant.d.ts.map +1 -0
  2041. package/dist/shared-context/manager.d.ts +21 -48
  2042. package/dist/shared-context/manager.d.ts.map +1 -0
  2043. package/dist/shared-context/provenance.d.ts +18 -0
  2044. package/dist/shared-context/provenance.d.ts.map +1 -0
  2045. package/dist/shared-context/staleness.d.ts +18 -0
  2046. package/dist/shared-context/staleness.d.ts.map +1 -0
  2047. package/dist/shared-context/supersession-chain.d.ts +41 -0
  2048. package/dist/shared-context/supersession-chain.d.ts.map +1 -0
  2049. package/dist/shared-context/trajectories.d.ts +24 -0
  2050. package/dist/shared-context/trajectories.d.ts.map +1 -0
  2051. package/dist/shared-context/write-output-controls.d.ts +4 -5
  2052. package/dist/shared-context/write-output-controls.d.ts.map +1 -0
  2053. package/dist/signal.d.ts +4 -23
  2054. package/dist/signal.d.ts.map +1 -0
  2055. package/dist/skills-registry.d.ts +4 -5
  2056. package/dist/skills-registry.d.ts.map +1 -0
  2057. package/dist/source-agent-qualifier.d.ts +8 -27
  2058. package/dist/source-agent-qualifier.d.ts.map +1 -0
  2059. package/dist/source-agent-qualifier.js +23 -23
  2060. package/dist/source-attribution.d.ts +20 -21
  2061. package/dist/source-attribution.d.ts.map +1 -0
  2062. package/dist/spaces/index.d.ts +148 -0
  2063. package/dist/spaces/index.d.ts.map +1 -0
  2064. package/dist/standing-memory-block.d.ts +25 -26
  2065. package/dist/standing-memory-block.d.ts.map +1 -0
  2066. package/dist/standup/access-operations.d.ts +2 -0
  2067. package/dist/standup/access-operations.d.ts.map +1 -0
  2068. package/dist/standup/build.d.ts +6 -7
  2069. package/dist/standup/build.d.ts.map +1 -0
  2070. package/dist/standup/build.js +15 -15
  2071. package/dist/standup/http-glue.d.ts +4 -0
  2072. package/dist/standup/http-glue.d.ts.map +1 -0
  2073. package/dist/standup/mcp-tools.d.ts +3 -0
  2074. package/dist/standup/mcp-tools.d.ts.map +1 -0
  2075. package/dist/storage/cas-revision-host.d.ts +34 -0
  2076. package/dist/storage/cas-revision-host.d.ts.map +1 -0
  2077. package/dist/storage/cas-revision-store.d.ts +176 -0
  2078. package/dist/storage/cas-revision-store.d.ts.map +1 -0
  2079. package/dist/storage/citation-hash-source.d.ts +3 -0
  2080. package/dist/storage/citation-hash-source.d.ts.map +1 -0
  2081. package/dist/storage/committed-invalidation.d.ts +9 -0
  2082. package/dist/storage/committed-invalidation.d.ts.map +1 -0
  2083. package/dist/storage/content-hash-index.d.ts +269 -0
  2084. package/dist/storage/content-hash-index.d.ts.map +1 -0
  2085. package/dist/storage/context-transform-ledger.d.ts +10 -0
  2086. package/dist/storage/context-transform-ledger.d.ts.map +1 -0
  2087. package/dist/storage/deletion-revision-store.d.ts +79 -0
  2088. package/dist/storage/deletion-revision-store.d.ts.map +1 -0
  2089. package/dist/storage/entity-alias-config.d.ts +2 -0
  2090. package/dist/storage/entity-alias-config.d.ts.map +1 -0
  2091. package/dist/storage/entity-canonical-id-lock.d.ts +4 -0
  2092. package/dist/storage/entity-canonical-id-lock.d.ts.map +1 -0
  2093. package/dist/storage/entity-canonical-id-migration-adapter.d.ts +24 -0
  2094. package/dist/storage/entity-canonical-id-migration-adapter.d.ts.map +1 -0
  2095. package/dist/storage/entity-canonical-id-migration-runner.d.ts +16 -0
  2096. package/dist/storage/entity-canonical-id-migration-runner.d.ts.map +1 -0
  2097. package/dist/storage/entity-canonical-id-migration.d.ts +44 -0
  2098. package/dist/storage/entity-canonical-id-migration.d.ts.map +1 -0
  2099. package/dist/storage/entity-canonical-id-references.d.ts +173 -0
  2100. package/dist/storage/entity-canonical-id-references.d.ts.map +1 -0
  2101. package/dist/storage/entity-id-safety.d.ts +2 -0
  2102. package/dist/storage/entity-id-safety.d.ts.map +1 -0
  2103. package/dist/storage/entity-ref-repair.d.ts +45 -0
  2104. package/dist/storage/entity-ref-repair.d.ts.map +1 -0
  2105. package/dist/storage/entity-store.d.ts +131 -0
  2106. package/dist/storage/entity-store.d.ts.map +1 -0
  2107. package/dist/storage/entity-timeline.d.ts +34 -0
  2108. package/dist/storage/entity-timeline.d.ts.map +1 -0
  2109. package/dist/storage/identity-continuity-store.d.ts +40 -0
  2110. package/dist/storage/identity-continuity-store.d.ts.map +1 -0
  2111. package/dist/storage/memory-frontmatter-metadata.d.ts +4 -0
  2112. package/dist/storage/memory-frontmatter-metadata.d.ts.map +1 -0
  2113. package/dist/storage/memory-lifecycle-ledger-access.d.ts +194 -0
  2114. package/dist/storage/memory-lifecycle-ledger-access.d.ts.map +1 -0
  2115. package/dist/storage/memory-migration-serialization.d.ts +5 -0
  2116. package/dist/storage/memory-migration-serialization.d.ts.map +1 -0
  2117. package/dist/storage/memory-read-store.d.ts +193 -0
  2118. package/dist/storage/memory-read-store.d.ts.map +1 -0
  2119. package/dist/storage/profile-header.d.ts +16 -0
  2120. package/dist/storage/profile-header.d.ts.map +1 -0
  2121. package/dist/storage/questions-file.d.ts +11 -0
  2122. package/dist/storage/questions-file.d.ts.map +1 -0
  2123. package/dist/storage/secure-line-reader.d.ts +53 -0
  2124. package/dist/storage/secure-line-reader.d.ts.map +1 -0
  2125. package/dist/storage/supersession-audit.d.ts +7 -0
  2126. package/dist/storage/supersession-audit.d.ts.map +1 -0
  2127. package/dist/storage/supersession-side-effects.d.ts +51 -0
  2128. package/dist/storage/supersession-side-effects.d.ts.map +1 -0
  2129. package/dist/storage/tombstone-blocked-capture-index.d.ts +93 -0
  2130. package/dist/storage/tombstone-blocked-capture-index.d.ts.map +1 -0
  2131. package/dist/storage/tombstone-blocked-capture-mutation.d.ts +53 -0
  2132. package/dist/storage/tombstone-blocked-capture-mutation.d.ts.map +1 -0
  2133. package/dist/storage/tombstone-blocked-capture-sync.d.ts +96 -0
  2134. package/dist/storage/tombstone-blocked-capture-sync.d.ts.map +1 -0
  2135. package/dist/storage/tombstone-migration-sources.d.ts +24 -0
  2136. package/dist/storage/tombstone-migration-sources.d.ts.map +1 -0
  2137. package/dist/storage/windowed-memory-read.d.ts +28 -0
  2138. package/dist/storage/windowed-memory-read.d.ts.map +1 -0
  2139. package/dist/storage-contract/harness.d.ts +59 -0
  2140. package/dist/storage-contract/harness.d.ts.map +1 -0
  2141. package/dist/storage-guards.d.ts +6 -7
  2142. package/dist/storage-guards.d.ts.map +1 -0
  2143. package/dist/storage-paths.d.ts +8 -9
  2144. package/dist/storage-paths.d.ts.map +1 -0
  2145. package/dist/storage.d.ts +1362 -33
  2146. package/dist/storage.d.ts.map +1 -0
  2147. package/dist/storage.js +15 -15
  2148. package/dist/store-contract.d.ts +9 -10
  2149. package/dist/store-contract.d.ts.map +1 -0
  2150. package/dist/structured-attributes.d.ts +6 -7
  2151. package/dist/structured-attributes.d.ts.map +1 -0
  2152. package/dist/subject-config.d.ts +4 -24
  2153. package/dist/subject-config.d.ts.map +1 -0
  2154. package/dist/summarizer.d.ts +7 -27
  2155. package/dist/summarizer.d.ts.map +1 -0
  2156. package/dist/summarizer.js +3 -3
  2157. package/dist/summary-snapshot.d.ts +6 -25
  2158. package/dist/summary-snapshot.d.ts.map +1 -0
  2159. package/dist/support-passport/access-http-base.d.ts +20 -0
  2160. package/dist/support-passport/access-http-base.d.ts.map +1 -0
  2161. package/dist/support-passport/access-http.d.ts +64 -0
  2162. package/dist/support-passport/access-http.d.ts.map +1 -0
  2163. package/dist/support-passport/access-operations.d.ts +197 -0
  2164. package/dist/support-passport/access-operations.d.ts.map +1 -0
  2165. package/dist/support-passport/access-service-base.d.ts +86 -0
  2166. package/dist/support-passport/access-service-base.d.ts.map +1 -0
  2167. package/dist/support-passport/access-surface.d.ts +118 -0
  2168. package/dist/support-passport/access-surface.d.ts.map +1 -0
  2169. package/dist/support-passport/card-projection.d.ts +83 -0
  2170. package/dist/support-passport/card-projection.d.ts.map +1 -0
  2171. package/dist/support-passport/card-replacement.d.ts +21 -0
  2172. package/dist/support-passport/card-replacement.d.ts.map +1 -0
  2173. package/dist/support-passport/card-service.d.ts +65 -0
  2174. package/dist/support-passport/card-service.d.ts.map +1 -0
  2175. package/dist/support-passport/card-state.d.ts +28 -0
  2176. package/dist/support-passport/card-state.d.ts.map +1 -0
  2177. package/dist/support-passport/config.d.ts +4 -0
  2178. package/dist/support-passport/config.d.ts.map +1 -0
  2179. package/dist/support-passport/contracts.d.ts +165 -0
  2180. package/dist/support-passport/contracts.d.ts.map +1 -0
  2181. package/dist/support-passport/errors.d.ts +7 -0
  2182. package/dist/support-passport/errors.d.ts.map +1 -0
  2183. package/dist/support-passport/generated-batch.d.ts +47 -0
  2184. package/dist/support-passport/generated-batch.d.ts.map +1 -0
  2185. package/dist/support-passport/grant-contracts.d.ts +443 -0
  2186. package/dist/support-passport/grant-contracts.d.ts.map +1 -0
  2187. package/dist/support-passport/grant-service.d.ts +48 -0
  2188. package/dist/support-passport/grant-service.d.ts.map +1 -0
  2189. package/dist/support-passport/grant-store.d.ts +84 -0
  2190. package/dist/support-passport/grant-store.d.ts.map +1 -0
  2191. package/dist/support-passport/index.d.ts +17 -571
  2192. package/dist/support-passport/index.d.ts.map +1 -0
  2193. package/dist/support-passport/index.js +75 -70
  2194. package/dist/support-passport/mcp-tools.d.ts +16 -0
  2195. package/dist/support-passport/mcp-tools.d.ts.map +1 -0
  2196. package/dist/support-passport/model-adapter.d.ts +90 -0
  2197. package/dist/support-passport/model-adapter.d.ts.map +1 -0
  2198. package/dist/support-passport/model-audit.d.ts +115 -0
  2199. package/dist/support-passport/model-audit.d.ts.map +1 -0
  2200. package/dist/support-passport/model-bridge.d.ts +105 -0
  2201. package/dist/support-passport/model-bridge.d.ts.map +1 -0
  2202. package/dist/support-passport/model-contracts.d.ts +219 -0
  2203. package/dist/support-passport/model-contracts.d.ts.map +1 -0
  2204. package/dist/support-passport/model-service.d.ts +58 -0
  2205. package/dist/support-passport/model-service.d.ts.map +1 -0
  2206. package/dist/support-passport/offline-sync-guard.d.ts +46 -0
  2207. package/dist/support-passport/offline-sync-guard.d.ts.map +1 -0
  2208. package/dist/support-passport/owner-lock.d.ts +16 -0
  2209. package/dist/support-passport/owner-lock.d.ts.map +1 -0
  2210. package/dist/support-passport/private-file.d.ts +16 -0
  2211. package/dist/support-passport/private-file.d.ts.map +1 -0
  2212. package/dist/support-passport/public-http.d.ts +23 -0
  2213. package/dist/support-passport/public-http.d.ts.map +1 -0
  2214. package/dist/surfaces/dreams.d.ts +4 -5
  2215. package/dist/surfaces/dreams.d.ts.map +1 -0
  2216. package/dist/surfaces/heartbeat.d.ts +4 -5
  2217. package/dist/surfaces/heartbeat.d.ts.map +1 -0
  2218. package/dist/sync/index.d.ts +69 -0
  2219. package/dist/sync/index.d.ts.map +1 -0
  2220. package/dist/targeted-fact-recall.d.ts +5 -8
  2221. package/dist/targeted-fact-recall.d.ts.map +1 -0
  2222. package/dist/task-llm-config.d.ts +4 -5
  2223. package/dist/task-llm-config.d.ts.map +1 -0
  2224. package/dist/taxonomy/default-taxonomy.d.ts +7 -0
  2225. package/dist/taxonomy/default-taxonomy.d.ts.map +1 -0
  2226. package/dist/taxonomy/index.d.ts +11 -0
  2227. package/dist/taxonomy/index.d.ts.map +1 -0
  2228. package/dist/taxonomy/resolver-doc-generator.d.ts +17 -0
  2229. package/dist/taxonomy/resolver-doc-generator.d.ts.map +1 -0
  2230. package/dist/taxonomy/resolver.d.ts +25 -0
  2231. package/dist/taxonomy/resolver.d.ts.map +1 -0
  2232. package/dist/taxonomy/taxonomy-loader.d.ts +38 -0
  2233. package/dist/taxonomy/taxonomy-loader.d.ts.map +1 -0
  2234. package/dist/taxonomy/types.d.ts +49 -0
  2235. package/dist/taxonomy/types.d.ts.map +1 -0
  2236. package/dist/telemetry-transcript.d.ts +6 -7
  2237. package/dist/telemetry-transcript.d.ts.map +1 -0
  2238. package/dist/temporal-index-batch.d.ts +30 -1
  2239. package/dist/temporal-index-batch.d.ts.map +1 -0
  2240. package/dist/temporal-index-compat.d.ts +7 -267
  2241. package/dist/temporal-index-compat.d.ts.map +1 -0
  2242. package/dist/temporal-index.d.ts +230 -1
  2243. package/dist/temporal-index.d.ts.map +1 -0
  2244. package/dist/temporal-supersession.d.ts +14 -34
  2245. package/dist/temporal-supersession.d.ts.map +1 -0
  2246. package/dist/temporal-timeline-recall.d.ts +5 -24
  2247. package/dist/temporal-timeline-recall.d.ts.map +1 -0
  2248. package/dist/temporal-validity.d.ts +7 -27
  2249. package/dist/temporal-validity.d.ts.map +1 -0
  2250. package/dist/testing/lifecycle-matrix.d.ts +11 -12
  2251. package/dist/testing/lifecycle-matrix.d.ts.map +1 -0
  2252. package/dist/testing/orchestrator-lite.d.ts +80 -0
  2253. package/dist/testing/orchestrator-lite.d.ts.map +1 -0
  2254. package/dist/testing/subjects/meetings-namespace-harness.d.ts +32 -0
  2255. package/dist/testing/subjects/meetings-namespace-harness.d.ts.map +1 -0
  2256. package/dist/testing/tmp-dir.d.ts +9 -0
  2257. package/dist/testing/tmp-dir.d.ts.map +1 -0
  2258. package/dist/thread-key.d.ts +2 -3
  2259. package/dist/thread-key.d.ts.map +1 -0
  2260. package/dist/threading.d.ts +3 -23
  2261. package/dist/threading.d.ts.map +1 -0
  2262. package/dist/tier-migration.d.ts +10 -43
  2263. package/dist/tier-migration.d.ts.map +1 -0
  2264. package/dist/tier-routing.d.ts +8 -27
  2265. package/dist/tier-routing.d.ts.map +1 -0
  2266. package/dist/tmt.d.ts +18 -19
  2267. package/dist/tmt.d.ts.map +1 -0
  2268. package/dist/token-estimate.d.ts +2 -3
  2269. package/dist/token-estimate.d.ts.map +1 -0
  2270. package/dist/tokens.d.ts +15 -19
  2271. package/dist/tokens.d.ts.map +1 -0
  2272. package/dist/tokens.js +3 -3
  2273. package/dist/tool-scoped-memory.d.ts +7 -8
  2274. package/dist/tool-scoped-memory.d.ts.map +1 -0
  2275. package/dist/topics.d.ts +4 -24
  2276. package/dist/topics.d.ts.map +1 -0
  2277. package/dist/training-export/converter.d.ts +18 -0
  2278. package/dist/training-export/converter.d.ts.map +1 -0
  2279. package/dist/training-export/date-parse.d.ts +38 -0
  2280. package/dist/training-export/date-parse.d.ts.map +1 -0
  2281. package/dist/training-export/index.d.ts +10 -0
  2282. package/dist/training-export/index.d.ts.map +1 -0
  2283. package/dist/training-export/registry.d.ts +27 -0
  2284. package/dist/training-export/registry.d.ts.map +1 -0
  2285. package/dist/training-export/types.d.ts +29 -0
  2286. package/dist/training-export/types.d.ts.map +1 -0
  2287. package/dist/transcript.d.ts +5 -24
  2288. package/dist/transcript.d.ts.map +1 -0
  2289. package/dist/transfer/autodetect.d.ts +3 -4
  2290. package/dist/transfer/autodetect.d.ts.map +1 -0
  2291. package/dist/transfer/backup.d.ts +3 -4
  2292. package/dist/transfer/backup.d.ts.map +1 -0
  2293. package/dist/transfer/backup.js +2 -2
  2294. package/dist/transfer/capsule-crypto.d.ts +168 -0
  2295. package/dist/transfer/capsule-crypto.d.ts.map +1 -0
  2296. package/dist/transfer/capsule-export.d.ts +6 -9
  2297. package/dist/transfer/capsule-export.d.ts.map +1 -0
  2298. package/dist/transfer/capsule-export.js +2 -2
  2299. package/dist/transfer/capsule-fork.d.ts +117 -0
  2300. package/dist/transfer/capsule-fork.d.ts.map +1 -0
  2301. package/dist/transfer/capsule-import.d.ts +10 -13
  2302. package/dist/transfer/capsule-import.d.ts.map +1 -0
  2303. package/dist/transfer/capsule-import.js +2 -2
  2304. package/dist/transfer/capsule-merge.d.ts +124 -0
  2305. package/dist/transfer/capsule-merge.d.ts.map +1 -0
  2306. package/dist/transfer/conflict-policy.d.ts +5 -0
  2307. package/dist/transfer/conflict-policy.d.ts.map +1 -0
  2308. package/dist/transfer/constants.d.ts +4 -5
  2309. package/dist/transfer/constants.d.ts.map +1 -0
  2310. package/dist/transfer/exclusions.d.ts +8 -0
  2311. package/dist/transfer/exclusions.d.ts.map +1 -0
  2312. package/dist/transfer/export-json.d.ts +3 -4
  2313. package/dist/transfer/export-json.d.ts.map +1 -0
  2314. package/dist/transfer/export-md.d.ts +4 -5
  2315. package/dist/transfer/export-md.d.ts.map +1 -0
  2316. package/dist/transfer/export-okf.d.ts +11 -31
  2317. package/dist/transfer/export-okf.d.ts.map +1 -0
  2318. package/dist/transfer/export-okf.js +14 -14
  2319. package/dist/transfer/export-sqlite.d.ts +3 -4
  2320. package/dist/transfer/export-sqlite.d.ts.map +1 -0
  2321. package/dist/transfer/fs-utils.d.ts +20 -21
  2322. package/dist/transfer/fs-utils.d.ts.map +1 -0
  2323. package/dist/transfer/import-json.d.ts +6 -7
  2324. package/dist/transfer/import-json.d.ts.map +1 -0
  2325. package/dist/transfer/import-md.d.ts +5 -6
  2326. package/dist/transfer/import-md.d.ts.map +1 -0
  2327. package/dist/transfer/import-sqlite.d.ts +5 -6
  2328. package/dist/transfer/import-sqlite.d.ts.map +1 -0
  2329. package/dist/transfer/integrity.d.ts +8 -0
  2330. package/dist/transfer/integrity.d.ts.map +1 -0
  2331. package/dist/transfer/sqlite-schema.d.ts +3 -4
  2332. package/dist/transfer/sqlite-schema.d.ts.map +1 -0
  2333. package/dist/transfer/types.d.ts +114 -116
  2334. package/dist/transfer/types.d.ts.map +1 -0
  2335. package/dist/trust-score-stage.d.ts +21 -40
  2336. package/dist/trust-score-stage.d.ts.map +1 -0
  2337. package/dist/trust-score.d.ts +15 -34
  2338. package/dist/trust-score.d.ts.map +1 -0
  2339. package/dist/trust-zones.d.ts +29 -30
  2340. package/dist/trust-zones.d.ts.map +1 -0
  2341. package/dist/types-continuity.d.ts +10 -11
  2342. package/dist/types-continuity.d.ts.map +1 -0
  2343. package/dist/types.d.ts +3500 -18
  2344. package/dist/types.d.ts.map +1 -0
  2345. package/dist/types.js +1 -1
  2346. package/dist/user-message-cleaning.d.ts +3 -4
  2347. package/dist/user-message-cleaning.d.ts.map +1 -0
  2348. package/dist/user-model.d.ts +17 -18
  2349. package/dist/user-model.d.ts.map +1 -0
  2350. package/dist/utility-learner.d.ts +10 -12
  2351. package/dist/utility-learner.d.ts.map +1 -0
  2352. package/dist/utility-runtime.d.ts +6 -27
  2353. package/dist/utility-runtime.d.ts.map +1 -0
  2354. package/dist/utility-telemetry.d.ts +12 -13
  2355. package/dist/utility-telemetry.d.ts.map +1 -0
  2356. package/dist/utils/category-dir.d.ts +45 -0
  2357. package/dist/utils/category-dir.d.ts.map +1 -0
  2358. package/dist/utils/errno.d.ts +4 -0
  2359. package/dist/utils/errno.d.ts.map +1 -0
  2360. package/dist/utils/iso-timestamp.d.ts +18 -0
  2361. package/dist/utils/iso-timestamp.d.ts.map +1 -0
  2362. package/dist/utils/path-containment.d.ts +50 -0
  2363. package/dist/utils/path-containment.d.ts.map +1 -0
  2364. package/dist/utils/path.d.ts +2 -3
  2365. package/dist/utils/path.d.ts.map +1 -0
  2366. package/dist/utils/script-aware-text.d.ts +27 -0
  2367. package/dist/utils/script-aware-text.d.ts.map +1 -0
  2368. package/dist/utils/serialize-mutations.d.ts +6 -7
  2369. package/dist/utils/serialize-mutations.d.ts.map +1 -0
  2370. package/dist/utils/yaml-scalar.d.ts +9 -0
  2371. package/dist/utils/yaml-scalar.d.ts.map +1 -0
  2372. package/dist/verified-recall.d.ts +5 -7
  2373. package/dist/verified-recall.d.ts.map +1 -0
  2374. package/dist/verified-recall.js +14 -14
  2375. package/dist/version-utils.d.ts +3 -4
  2376. package/dist/version-utils.d.ts.map +1 -0
  2377. package/dist/wearables/auto-sync.d.ts +63 -0
  2378. package/dist/wearables/auto-sync.d.ts.map +1 -0
  2379. package/dist/wearables/cleanup.d.ts +39 -0
  2380. package/dist/wearables/cleanup.d.ts.map +1 -0
  2381. package/dist/wearables/cli.d.ts +24 -0
  2382. package/dist/wearables/cli.d.ts.map +1 -0
  2383. package/dist/wearables/config.d.ts +22 -0
  2384. package/dist/wearables/config.d.ts.map +1 -0
  2385. package/dist/wearables/corrections.d.ts +46 -0
  2386. package/dist/wearables/corrections.d.ts.map +1 -0
  2387. package/dist/wearables/day-store.d.ts +152 -0
  2388. package/dist/wearables/day-store.d.ts.map +1 -0
  2389. package/dist/wearables/errors.d.ts +19 -0
  2390. package/dist/wearables/errors.d.ts.map +1 -0
  2391. package/dist/wearables/fusion/cluster.d.ts +70 -0
  2392. package/dist/wearables/fusion/cluster.d.ts.map +1 -0
  2393. package/dist/wearables/fusion/fuse.d.ts +40 -0
  2394. package/dist/wearables/fusion/fuse.d.ts.map +1 -0
  2395. package/dist/wearables/fusion/index.d.ts +16 -0
  2396. package/dist/wearables/fusion/index.d.ts.map +1 -0
  2397. package/dist/wearables/fusion/reconcile.d.ts +52 -0
  2398. package/dist/wearables/fusion/reconcile.d.ts.map +1 -0
  2399. package/dist/wearables/fusion/reconstruct.d.ts +37 -0
  2400. package/dist/wearables/fusion/reconstruct.d.ts.map +1 -0
  2401. package/dist/wearables/fusion/store.d.ts +131 -0
  2402. package/dist/wearables/fusion/store.d.ts.map +1 -0
  2403. package/dist/wearables/fusion/types.d.ts +219 -0
  2404. package/dist/wearables/fusion/types.d.ts.map +1 -0
  2405. package/dist/wearables/http-glue.d.ts +12 -0
  2406. package/dist/wearables/http-glue.d.ts.map +1 -0
  2407. package/dist/wearables/index.d.ts +23 -0
  2408. package/dist/wearables/index.d.ts.map +1 -0
  2409. package/dist/wearables/mcp-tools.d.ts +12 -0
  2410. package/dist/wearables/mcp-tools.d.ts.map +1 -0
  2411. package/dist/wearables/memory-gen.d.ts +139 -0
  2412. package/dist/wearables/memory-gen.d.ts.map +1 -0
  2413. package/dist/wearables/pipeline.d.ts +81 -0
  2414. package/dist/wearables/pipeline.d.ts.map +1 -0
  2415. package/dist/wearables/redaction.d.ts +75 -0
  2416. package/dist/wearables/redaction.d.ts.map +1 -0
  2417. package/dist/wearables/registry.d.ts +47 -0
  2418. package/dist/wearables/registry.d.ts.map +1 -0
  2419. package/dist/wearables/service.d.ts +225 -0
  2420. package/dist/wearables/service.d.ts.map +1 -0
  2421. package/dist/wearables/speakers.d.ts +83 -0
  2422. package/dist/wearables/speakers.d.ts.map +1 -0
  2423. package/dist/wearables/sync-state.d.ts +52 -0
  2424. package/dist/wearables/sync-state.d.ts.map +1 -0
  2425. package/dist/wearables/text-language.d.ts +41 -0
  2426. package/dist/wearables/text-language.d.ts.map +1 -0
  2427. package/dist/wearables/trust.d.ts +93 -0
  2428. package/dist/wearables/trust.d.ts.map +1 -0
  2429. package/dist/wearables/types.d.ts +389 -0
  2430. package/dist/wearables/types.d.ts.map +1 -0
  2431. package/dist/whitespace.d.ts +7 -8
  2432. package/dist/whitespace.d.ts.map +1 -0
  2433. package/dist/who-knows-cli.d.ts +8 -155
  2434. package/dist/who-knows-cli.d.ts.map +1 -0
  2435. package/dist/who-knows-cli.js +16 -16
  2436. package/dist/who-knows.d.ts +97 -145
  2437. package/dist/who-knows.d.ts.map +1 -0
  2438. package/dist/who-knows.js +15 -15
  2439. package/dist/work/board.d.ts +8 -10
  2440. package/dist/work/board.d.ts.map +1 -0
  2441. package/dist/work/boundary.d.ts +5 -6
  2442. package/dist/work/boundary.d.ts.map +1 -0
  2443. package/dist/work/storage.d.ts +4 -6
  2444. package/dist/work/storage.d.ts.map +1 -0
  2445. package/dist/work/types.d.ts +11 -12
  2446. package/dist/work/types.d.ts.map +1 -0
  2447. package/dist/work-product-ledger.d.ts +12 -13
  2448. package/dist/work-product-ledger.d.ts.map +1 -0
  2449. package/dist/write-envelope.d.ts +23 -42
  2450. package/dist/write-envelope.d.ts.map +1 -0
  2451. package/dist/write-quarantine.d.ts +8 -9
  2452. package/dist/write-quarantine.d.ts.map +1 -0
  2453. package/dist/write-rate-limiter.d.ts +4 -4
  2454. package/dist/write-rate-limiter.d.ts.map +1 -0
  2455. package/package.json +2 -2
  2456. package/scripts/build-with-heap.mjs +40 -19
  2457. package/src/access-boundary.ts +1 -0
  2458. package/src/access-errors.test.ts +182 -0
  2459. package/src/access-errors.ts +252 -1
  2460. package/src/access-http.ts +36 -103
  2461. package/src/access-mcp-output-schemas.ts +1 -0
  2462. package/src/access-mcp.ts +21 -2
  2463. package/src/access-operations-batch.ts +8 -0
  2464. package/src/access-recall-diagnostics.ts +236 -0
  2465. package/src/access-service.ts +6 -0
  2466. package/src/access-surface-catalog.ts +2 -0
  2467. package/src/index.ts +11 -0
  2468. package/src/mcp-read-only-tools.ts +1 -0
  2469. package/src/orchestration/orchestrator-helpers.ts +7 -0
  2470. package/src/orchestration/recall-internal.ts +1 -1
  2471. package/src/recall-degradation-sink.test.ts +144 -0
  2472. package/src/recall-why-cli.ts +59 -0
  2473. package/src/recall-why-renderer.ts +142 -0
  2474. package/src/recall-why-service.test.ts +306 -0
  2475. package/src/recall-why-service.ts +218 -0
  2476. package/src/recall-why.test.ts +511 -0
  2477. package/src/recall-why.ts +568 -0
  2478. package/src/types.ts +1 -0
  2479. package/dist/access-namespace-preflight-U9RAdxqZ.d.ts +0 -146
  2480. package/dist/access-service-CUNM5RfA.d.ts +0 -4700
  2481. package/dist/capsule-crypto-YO5QJ6L3.js +0 -18
  2482. package/dist/catalog-BuMyYPUn.d.ts +0 -473
  2483. package/dist/chunk-27MKMTBY.js +0 -342
  2484. package/dist/chunk-2HJKAVAS.js +0 -216
  2485. package/dist/chunk-2QZJ4P27.js +0 -203
  2486. package/dist/chunk-2SIKTXWX.js +0 -502
  2487. package/dist/chunk-2Z24E5W2.js +0 -22
  2488. package/dist/chunk-2Z24E5W2.js.map +0 -1
  2489. package/dist/chunk-3R23DDD3.js +0 -9782
  2490. package/dist/chunk-3S6URXEH.js +0 -63
  2491. package/dist/chunk-43IQRLEF.js +0 -256
  2492. package/dist/chunk-4UVJ6EIT.js +0 -22
  2493. package/dist/chunk-4UVJ6EIT.js.map +0 -1
  2494. package/dist/chunk-5FAGCOZD.js +0 -761
  2495. package/dist/chunk-75YZ5VAI.js +0 -140
  2496. package/dist/chunk-7IRZK6MM.js +0 -256
  2497. package/dist/chunk-7QVYVSEH.js +0 -285
  2498. package/dist/chunk-7RGX7BMF.js +0 -103
  2499. package/dist/chunk-7RKAE6Y4.js +0 -727
  2500. package/dist/chunk-AH44WTLJ.js +0 -415
  2501. package/dist/chunk-AHVJ6GLL.js +0 -95
  2502. package/dist/chunk-AIVRD66I.js +0 -511
  2503. package/dist/chunk-AQ55YKEV.js +0 -29
  2504. package/dist/chunk-AQWGCHIV.js +0 -263
  2505. package/dist/chunk-ARRKSBQU.js +0 -72
  2506. package/dist/chunk-AYHNTYVG.js +0 -43
  2507. package/dist/chunk-BSCNBIF4.js +0 -24
  2508. package/dist/chunk-BXLOS5AJ.js +0 -112
  2509. package/dist/chunk-BXOPUJ3W.js +0 -801
  2510. package/dist/chunk-CEO4DONG.js +0 -28
  2511. package/dist/chunk-CVILPI77.js +0 -432
  2512. package/dist/chunk-D2N3PMAE.js +0 -51
  2513. package/dist/chunk-D7VT2LED.js +0 -253
  2514. package/dist/chunk-DAOMWGO2.js +0 -65
  2515. package/dist/chunk-DGS34QSY.js +0 -141
  2516. package/dist/chunk-DI52XAKG.js +0 -223
  2517. package/dist/chunk-DQEMWVMT.js +0 -249
  2518. package/dist/chunk-DZP2XMZC.js +0 -1084
  2519. package/dist/chunk-EVQ33D3N.js +0 -731
  2520. package/dist/chunk-FPB5LQWW.js +0 -71
  2521. package/dist/chunk-FPB5LQWW.js.map +0 -1
  2522. package/dist/chunk-FROKVQQY.js +0 -3997
  2523. package/dist/chunk-FROKVQQY.js.map +0 -1
  2524. package/dist/chunk-G7S37WD4.js +0 -801
  2525. package/dist/chunk-GRDRVYXJ.js +0 -1917
  2526. package/dist/chunk-H6WOFMOV.js +0 -346
  2527. package/dist/chunk-HMDYSGY6.js +0 -54
  2528. package/dist/chunk-HNHIHXSD.js +0 -879
  2529. package/dist/chunk-HWLIMQE2.js +0 -165
  2530. package/dist/chunk-IWO6QXWJ.js +0 -224
  2531. package/dist/chunk-IYNCJKBM.js +0 -3602
  2532. package/dist/chunk-IYNCJKBM.js.map +0 -1
  2533. package/dist/chunk-J54B5DGD.js +0 -1530
  2534. package/dist/chunk-JMZQS6OS.js +0 -81
  2535. package/dist/chunk-K4KE5MYE.js +0 -648
  2536. package/dist/chunk-K4KE5MYE.js.map +0 -1
  2537. package/dist/chunk-KH2D26LQ.js +0 -2440
  2538. package/dist/chunk-KIGC55FQ.js +0 -5505
  2539. package/dist/chunk-KQVBR7BC.js +0 -1286
  2540. package/dist/chunk-L63GFNKL.js +0 -403
  2541. package/dist/chunk-LIAKZGOY.js +0 -25
  2542. package/dist/chunk-LVFI5LG7.js +0 -576
  2543. package/dist/chunk-MTWD4KMM.js +0 -223
  2544. package/dist/chunk-MWVYHNSU.js +0 -623
  2545. package/dist/chunk-MZWSOLMT.js +0 -189
  2546. package/dist/chunk-NNEWBRUL.js +0 -271
  2547. package/dist/chunk-NPX6WMFJ.js +0 -1686
  2548. package/dist/chunk-O7OVWKT4.js +0 -768
  2549. package/dist/chunk-PLJ2MQFT.js +0 -182
  2550. package/dist/chunk-Q4AUIFUA.js +0 -111
  2551. package/dist/chunk-QWQB7TOB.js +0 -11341
  2552. package/dist/chunk-QZ4U67KO.js +0 -98
  2553. package/dist/chunk-RMMVQQA6.js +0 -70
  2554. package/dist/chunk-RSMNPYBM.js +0 -61
  2555. package/dist/chunk-RUUJXAGT.js +0 -122
  2556. package/dist/chunk-S45INSV3.js +0 -389
  2557. package/dist/chunk-SCXURCVT.js +0 -218
  2558. package/dist/chunk-SGUDMW2K.js +0 -3400
  2559. package/dist/chunk-SLGD36MM.js +0 -53
  2560. package/dist/chunk-SMBWBEE7.js +0 -73
  2561. package/dist/chunk-SPFNGHHP.js +0 -115
  2562. package/dist/chunk-SPWNCGSM.js +0 -77
  2563. package/dist/chunk-SZ7IVZGD.js +0 -112
  2564. package/dist/chunk-TJNDFNCU.js +0 -597
  2565. package/dist/chunk-TJNDFNCU.js.map +0 -1
  2566. package/dist/chunk-TQT4AOPO.js +0 -321
  2567. package/dist/chunk-TTFJQ5B5.js +0 -43
  2568. package/dist/chunk-U2SK45U3.js +0 -1476
  2569. package/dist/chunk-UCH2RWFX.js +0 -216
  2570. package/dist/chunk-UDJMJNBK.js +0 -549
  2571. package/dist/chunk-UJBIWY5M.js +0 -212
  2572. package/dist/chunk-ULQVG6G3.js +0 -275
  2573. package/dist/chunk-VDX2J7OX.js +0 -264
  2574. package/dist/chunk-VGO57TU7.js +0 -960
  2575. package/dist/chunk-VUV472VH.js +0 -1008
  2576. package/dist/chunk-VVX5PZFS.js +0 -297
  2577. package/dist/chunk-WH7RINGG.js +0 -315
  2578. package/dist/chunk-WUJD4CHZ.js +0 -137
  2579. package/dist/chunk-X7WAM3IY.js +0 -30
  2580. package/dist/chunk-XPFJSUOR.js +0 -921
  2581. package/dist/chunk-XVZA6VXC.js +0 -160
  2582. package/dist/chunk-XZRZJHBW.js +0 -31013
  2583. package/dist/chunk-XZRZJHBW.js.map +0 -1
  2584. package/dist/chunk-Y4G6LHJW.js +0 -35
  2585. package/dist/chunk-Y7LZ5V7N.js +0 -202
  2586. package/dist/chunk-YEIKOBOW.js +0 -628
  2587. package/dist/chunk-YEIKOBOW.js.map +0 -1
  2588. package/dist/chunk-YIIW2OH2.js +0 -566
  2589. package/dist/chunk-ZBYVR5W4.js +0 -18504
  2590. package/dist/chunk-ZBYVR5W4.js.map +0 -1
  2591. package/dist/chunk-ZN7SMKAK.js +0 -210
  2592. package/dist/chunk-ZP73EM2X.js +0 -74
  2593. package/dist/chunk-ZXQPAYCS.js +0 -2453
  2594. package/dist/cli-CCc34xV7.d.ts +0 -1136
  2595. package/dist/conflict-policy-DyJ2wd-h.d.ts +0 -4
  2596. package/dist/connectors-cli-2iaQ5tX2.d.ts +0 -263
  2597. package/dist/dependency-propagation-delivery-BrhPjAHQ.d.ts +0 -41
  2598. package/dist/faiss-adapter-BHecI1fF.d.ts +0 -73
  2599. package/dist/framework-CNDn2164.d.ts +0 -170
  2600. package/dist/generic-recall-paths-C0J1Oxb7.d.ts +0 -23
  2601. package/dist/graph-DRkl22KE.d.ts +0 -347
  2602. package/dist/graph-edge-decay-MKIRZ762.js +0 -30
  2603. package/dist/index-B735x-tK.d.ts +0 -284
  2604. package/dist/local-llm-BkkEK9rn.d.ts +0 -247
  2605. package/dist/maintenance-CLBIvVxg.d.ts +0 -749
  2606. package/dist/orchestrator-iexgVLow.d.ts +0 -2701
  2607. package/dist/pipeline-DvtDtyo9.d.ts +0 -32
  2608. package/dist/public-http-UWVcqMcb.d.ts +0 -25
  2609. package/dist/qmd-CBYBJ6HW.d.ts +0 -353
  2610. package/dist/resolution-LXFQQ4AE.js +0 -36
  2611. package/dist/scope-profiles-BN1Dgfha.d.ts +0 -30
  2612. package/dist/semantic-BalR6EXU.d.ts +0 -87
  2613. package/dist/semantic-consolidation-D--qe0eE.d.ts +0 -180
  2614. package/dist/service-VealHeqO.d.ts +0 -846
  2615. package/dist/storage-BhS9gUx3.d.ts +0 -166
  2616. package/dist/storage-CMm-3aD3.d.ts +0 -2421
  2617. package/dist/tagging-BjsNFKWz.d.ts +0 -240
  2618. package/dist/types-B1VHaf2w.d.ts +0 -126
  2619. package/dist/types-DJhqDJUV.d.ts +0 -50
  2620. package/dist/types-Du6VdoAg.d.ts +0 -5482
  2621. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → access-recall-diagnostics.js.map} +0 -0
  2622. /package/dist/{graph-edge-decay-MKIRZ762.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  2623. /package/dist/{chunk-KQVBR7BC.js.map → chunk-2CBWEIS4.js.map} +0 -0
  2624. /package/dist/{chunk-JMZQS6OS.js.map → chunk-2JQZSQXI.js.map} +0 -0
  2625. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
  2626. /package/dist/{chunk-LIAKZGOY.js.map → chunk-2WMXZYMS.js.map} +0 -0
  2627. /package/dist/{chunk-RSMNPYBM.js.map → chunk-34ZGBAGE.js.map} +0 -0
  2628. /package/dist/{chunk-MWVYHNSU.js.map → chunk-36S7UHAW.js.map} +0 -0
  2629. /package/dist/{chunk-G7S37WD4.js.map → chunk-3JLWSFTV.js.map} +0 -0
  2630. /package/dist/{chunk-75YZ5VAI.js.map → chunk-3RZOLUZT.js.map} +0 -0
  2631. /package/dist/{chunk-XVZA6VXC.js.map → chunk-3SL52JKD.js.map} +0 -0
  2632. /package/dist/{chunk-2SIKTXWX.js.map → chunk-4QEZS7PK.js.map} +0 -0
  2633. /package/dist/{chunk-Y4G6LHJW.js.map → chunk-5QRYGLZN.js.map} +0 -0
  2634. /package/dist/{chunk-AQWGCHIV.js.map → chunk-5R3C5LEZ.js.map} +0 -0
  2635. /package/dist/{chunk-SPWNCGSM.js.map → chunk-634UKELB.js.map} +0 -0
  2636. /package/dist/{chunk-BXOPUJ3W.js.map → chunk-64JK4TL7.js.map} +0 -0
  2637. /package/dist/{chunk-DGS34QSY.js.map → chunk-6E5GYDIE.js.map} +0 -0
  2638. /package/dist/{chunk-D2N3PMAE.js.map → chunk-6ISP2EN2.js.map} +0 -0
  2639. /package/dist/{chunk-UJBIWY5M.js.map → chunk-6RD7MSIO.js.map} +0 -0
  2640. /package/dist/{chunk-RMMVQQA6.js.map → chunk-6UDLN4IA.js.map} +0 -0
  2641. /package/dist/{chunk-7IRZK6MM.js.map → chunk-754XN6LX.js.map} +0 -0
  2642. /package/dist/{chunk-43IQRLEF.js.map → chunk-7H2LEYYJ.js.map} +0 -0
  2643. /package/dist/{chunk-7RGX7BMF.js.map → chunk-A7AISUJI.js.map} +0 -0
  2644. /package/dist/{chunk-7RKAE6Y4.js.map → chunk-AULKCNZW.js.map} +0 -0
  2645. /package/dist/{chunk-NPX6WMFJ.js.map → chunk-B7SSU55V.js.map} +0 -0
  2646. /package/dist/{chunk-IWO6QXWJ.js.map → chunk-BICNRVEC.js.map} +0 -0
  2647. /package/dist/{chunk-SLGD36MM.js.map → chunk-BJI2D4SU.js.map} +0 -0
  2648. /package/dist/{chunk-CEO4DONG.js.map → chunk-BQB5ZMYO.js.map} +0 -0
  2649. /package/dist/{chunk-WH7RINGG.js.map → chunk-C5CPYMLX.js.map} +0 -0
  2650. /package/dist/{chunk-AHVJ6GLL.js.map → chunk-CS2JO77A.js.map} +0 -0
  2651. /package/dist/{chunk-UDJMJNBK.js.map → chunk-DTABICJ3.js.map} +0 -0
  2652. /package/dist/{chunk-CVILPI77.js.map → chunk-E6UNM67F.js.map} +0 -0
  2653. /package/dist/{chunk-NNEWBRUL.js.map → chunk-ENUI3IO7.js.map} +0 -0
  2654. /package/dist/{chunk-DZP2XMZC.js.map → chunk-FF2XYADH.js.map} +0 -0
  2655. /package/dist/{chunk-S45INSV3.js.map → chunk-FF6N7BXC.js.map} +0 -0
  2656. /package/dist/{chunk-2QZJ4P27.js.map → chunk-FSXD6Y4H.js.map} +0 -0
  2657. /package/dist/{chunk-SGUDMW2K.js.map → chunk-GK6NOQE6.js.map} +0 -0
  2658. /package/dist/{chunk-TTFJQ5B5.js.map → chunk-GRSFFLUY.js.map} +0 -0
  2659. /package/dist/{chunk-5FAGCOZD.js.map → chunk-GWK7FEUL.js.map} +0 -0
  2660. /package/dist/{chunk-SCXURCVT.js.map → chunk-GWQVMKUJ.js.map} +0 -0
  2661. /package/dist/{chunk-3S6URXEH.js.map → chunk-HKHZWJ3E.js.map} +0 -0
  2662. /package/dist/{chunk-PLJ2MQFT.js.map → chunk-IAZPYX6W.js.map} +0 -0
  2663. /package/dist/{chunk-MZWSOLMT.js.map → chunk-IG747LRN.js.map} +0 -0
  2664. /package/dist/{chunk-X7WAM3IY.js.map → chunk-IK63WA5A.js.map} +0 -0
  2665. /package/dist/{chunk-BSCNBIF4.js.map → chunk-IUD6NLNM.js.map} +0 -0
  2666. /package/dist/{chunk-3R23DDD3.js.map → chunk-JSJZ2NXS.js.map} +0 -0
  2667. /package/dist/{chunk-YIIW2OH2.js.map → chunk-JUOJGZPV.js.map} +0 -0
  2668. /package/dist/{chunk-VGO57TU7.js.map → chunk-KA4U5GQN.js.map} +0 -0
  2669. /package/dist/{chunk-VDX2J7OX.js.map → chunk-KQAFEZQX.js.map} +0 -0
  2670. /package/dist/{chunk-ARRKSBQU.js.map → chunk-L4WBADKG.js.map} +0 -0
  2671. /package/dist/{chunk-ULQVG6G3.js.map → chunk-LAL4B37X.js.map} +0 -0
  2672. /package/dist/{chunk-D7VT2LED.js.map → chunk-LELJRLPY.js.map} +0 -0
  2673. /package/dist/{chunk-L63GFNKL.js.map → chunk-LMMQKZK3.js.map} +0 -0
  2674. /package/dist/{chunk-ZP73EM2X.js.map → chunk-LQ23DMTT.js.map} +0 -0
  2675. /package/dist/{chunk-7QVYVSEH.js.map → chunk-LV6ZB6CA.js.map} +0 -0
  2676. /package/dist/{chunk-KIGC55FQ.js.map → chunk-M5IJP3YW.js.map} +0 -0
  2677. /package/dist/{chunk-AH44WTLJ.js.map → chunk-MWZMVLXL.js.map} +0 -0
  2678. /package/dist/{chunk-AQ55YKEV.js.map → chunk-N4VCHRLD.js.map} +0 -0
  2679. /package/dist/{chunk-HNHIHXSD.js.map → chunk-NKXHCCLB.js.map} +0 -0
  2680. /package/dist/{chunk-SZ7IVZGD.js.map → chunk-NVCWA4QC.js.map} +0 -0
  2681. /package/dist/{chunk-RUUJXAGT.js.map → chunk-ONWVMYHX.js.map} +0 -0
  2682. /package/dist/{chunk-HMDYSGY6.js.map → chunk-P6P35FY4.js.map} +0 -0
  2683. /package/dist/{chunk-H6WOFMOV.js.map → chunk-P7M22CYB.js.map} +0 -0
  2684. /package/dist/{chunk-Q4AUIFUA.js.map → chunk-QMWKENNK.js.map} +0 -0
  2685. /package/dist/{chunk-J54B5DGD.js.map → chunk-QOPB6KE3.js.map} +0 -0
  2686. /package/dist/{chunk-DI52XAKG.js.map → chunk-RBULO7DO.js.map} +0 -0
  2687. /package/dist/{chunk-VUV472VH.js.map → chunk-RDESQOEE.js.map} +0 -0
  2688. /package/dist/{chunk-SPFNGHHP.js.map → chunk-RMF763SX.js.map} +0 -0
  2689. /package/dist/{chunk-TQT4AOPO.js.map → chunk-RN6ZCNM5.js.map} +0 -0
  2690. /package/dist/{chunk-QWQB7TOB.js.map → chunk-S2OBXHMN.js.map} +0 -0
  2691. /package/dist/{chunk-UCH2RWFX.js.map → chunk-S3JPD4N7.js.map} +0 -0
  2692. /package/dist/{chunk-HWLIMQE2.js.map → chunk-SF6RFI5Z.js.map} +0 -0
  2693. /package/dist/{chunk-ZXQPAYCS.js.map → chunk-SJV3AOZ2.js.map} +0 -0
  2694. /package/dist/{chunk-Y7LZ5V7N.js.map → chunk-SLULR4GC.js.map} +0 -0
  2695. /package/dist/{chunk-U2SK45U3.js.map → chunk-TFXXMTHV.js.map} +0 -0
  2696. /package/dist/{chunk-2HJKAVAS.js.map → chunk-TYP7GYRI.js.map} +0 -0
  2697. /package/dist/{chunk-KH2D26LQ.js.map → chunk-TYZK56OA.js.map} +0 -0
  2698. /package/dist/{chunk-XPFJSUOR.js.map → chunk-VLDVNZQE.js.map} +0 -0
  2699. /package/dist/{chunk-AIVRD66I.js.map → chunk-W6YK672C.js.map} +0 -0
  2700. /package/dist/{chunk-LVFI5LG7.js.map → chunk-X2NFFBTO.js.map} +0 -0
  2701. /package/dist/{chunk-GRDRVYXJ.js.map → chunk-X45KZOT2.js.map} +0 -0
  2702. /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
  2703. /package/dist/{chunk-AYHNTYVG.js.map → chunk-XIXM6G7I.js.map} +0 -0
  2704. /package/dist/{chunk-ZN7SMKAK.js.map → chunk-XLXYARWC.js.map} +0 -0
  2705. /package/dist/{chunk-MTWD4KMM.js.map → chunk-XVW52M6I.js.map} +0 -0
  2706. /package/dist/{chunk-27MKMTBY.js.map → chunk-YHU5XUF4.js.map} +0 -0
  2707. /package/dist/{chunk-SMBWBEE7.js.map → chunk-YRH3C2OJ.js.map} +0 -0
  2708. /package/dist/{chunk-WUJD4CHZ.js.map → chunk-YXQE67A7.js.map} +0 -0
  2709. /package/dist/{chunk-EVQ33D3N.js.map → chunk-ZHUVMSHI.js.map} +0 -0
  2710. /package/dist/{chunk-VVX5PZFS.js.map → chunk-ZHXSOMYH.js.map} +0 -0
  2711. /package/dist/{chunk-O7OVWKT4.js.map → chunk-ZIEZJMFW.js.map} +0 -0
  2712. /package/dist/{chunk-QZ4U67KO.js.map → chunk-ZSEFGDCI.js.map} +0 -0
  2713. /package/dist/{chunk-DAOMWGO2.js.map → chunk-ZX5N5D6M.js.map} +0 -0
  2714. /package/dist/{resolution-LXFQQ4AE.js.map → graph-edge-decay-ROSUPDX3.js.map} +0 -0
package/dist/types.d.ts CHANGED
@@ -1,18 +1,3500 @@
1
- export { bu as AccessTrackingEntry, a4 as ActiveRecallChatType, a8 as ActiveRecallModelFallbackPolicy, a6 as ActiveRecallPromptStyle, a5 as ActiveRecallQueryMode, a7 as ActiveRecallThinking, w as AgentAccessAuthToken, dK as AgentAccessHttpConfig, dL as AgentDefaultsConfig, dM as AgentPersona, A as AgentPersonaModelConfig, dN as BehaviorLoopAdjustment, t as BehaviorLoopPolicyState, dO as BehaviorSignalDirection, ad as BehaviorSignalEvent, dP as BehaviorSignalType, bx as BootstrapOptions, by as BootstrapResult, g as BriefingActiveThread, dQ as BriefingCalendarSourceError, cf as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, cg as BriefingWindow, dR as BufferEntryState, bq as BufferState, ae as BufferSurpriseEvent, k as BufferTurn, f as CalendarEvent, e as CalendarSource, z as CaptureMode, dS as ChatConfig, n as Checkpoint, dT as CodexCliReasoningEffort, dU as CodexCompactionFlushMode, cj as CodexCompatConfig, dV as CodexConnectorConfig, C as CodingContext, dW as CodingGraphLspConfig, bK as CodingKnowledgeConfig, bB as CodingModeConfig, dX as CompressionGuidelineActivationState, ak as CompressionGuidelineOptimizerActionSummary, aj as CompressionGuidelineOptimizerEventCounts, al as CompressionGuidelineOptimizerRuleUpdate, dY as CompressionGuidelineOptimizerSourceWindow, ao as CompressionGuidelineOptimizerState, dZ as ConfidenceTier, d_ as ConsolidationAction, d$ as ConsolidationItem, bz as ConsolidationObservation, aT as ConsolidationResult, ap as ConvergeConfig, a3 as ConvergeConflictPolicy, W as ConversationThread, e0 as CronConversationRecallMode, e1 as CronRecallMode, ck as DEFAULT_RECALL_DISCLOSURE, aU as DaySummaryResult, ar as DependencyPropagationConfig, e2 as DreamingConfig, e3 as DreamingNarrativePromptStyle, e4 as DreamsDeepSleepConfig, e5 as DreamsLightSleepConfig, D as DreamsPhase, e6 as DreamsPhaseStatus, e7 as DreamsPhasesConfig, e8 as DreamsRemConfig, a as DreamsRunResult, bA as DreamsStatusResult, e9 as EngramTraceEvent, bt as EntityActivityEntry, E as EntityFile, aq as EntityMention, bs as EntityRelationship, at as EntitySchemaDefinition, au as EntitySchemaSectionDefinition, as as EntityStructuredSection, bo as EntityTimelineEntry, ax as ExtractedFact, ea as ExtractedProcedureStep, eb as ExtractedQuestion, ec as ExtractedReasoningTrace, ed as ExtractedReasoningTraceStep, ee as ExtractedRelationship, a1 as ExtractionFailureClass, ef as ExtractionPassSource, ac as ExtractionResult, F as FaithfulnessFrontmatter, br as FileHygieneConfig, G as GatewayConfig, eg as GitHubLiveConnectorConfig, eh as GmailLiveConnectorConfig, ei as GoogleDriveLiveConnectorConfig, ej as HeartbeatConfig, ek as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, a2 as ImportanceLevel, aB as ImportanceScore, X as LifecycleState, L as LiveConnectorsConfig, el as LlmTraceCallback, em as LlmTraceEvent, aE as MemoryActionEligibilityContext, cx as MemoryActionEligibilitySource, an as MemoryActionEvent, av as MemoryActionOutcome, aw as MemoryActionPolicyDecision, aF as MemoryActionPolicyResult, en as MemoryActionStatus, am as MemoryActionType, u as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter, aC as MemoryIntent, K as MemoryLifecycleEvent, aG as MemoryLifecycleEventType, aH as MemoryLifecycleStateSummary, bp as MemoryLink, eo as MemoryLinkType, cz as MemoryObservation, ep as MemoryOsPresetName, J as MemoryProjectionCurrentState, cA as MemoryScope, x as MemoryStatus, N as MemorySubject, bv as MemorySummary, aK as MetaState, eq as ModelApi, er as ModelDefinitionConfig, es as ModelProviderAuthMode, O as ModelProviderConfig, et as NamespacePolicy, aI as NativeKnowledgeConfig, eu as NativeKnowledgeFolderRuleConfig, ev as NativeKnowledgeObsidianVaultConfig, ew as NativeKnowledgeOpenClawWorkspaceConfig, ex as NotionLiveConnectorConfig, P as PluginConfig, Z as PolicyClass, ey as PrincipalFromSessionKeyMode, ez as PrincipalRule, eA as ProceduralConfig, ay as ProvenanceConfig, U as ProvenanceSource, aV as QmdSearchExplain, Q as QmdSearchResult, eB as QuestionEntry, cK as RECALL_DISCLOSURE_LEVELS, eC as ReasoningEffort, o as RecallDisclosure, eD as RecallPipelineConfig, R as RecallPlanMode, bw as RecallSectionConfig, b as RecallTierExplain, eE as RecallTraceEvent, eF as RelevanceFeedback, aM as RetrievalTier, eG as SPECULATIVE_TTL_DAYS, eH as ScopeProfileAutoPromoteConfig, q as ScopeProfileConfig, r as ScopeProfileLayerId, s as ScopeProfilePromotionTarget, eI as ScopeProfileTeamProjectConfig, eJ as ScopeTeamConfig, eK as ScoredEntity, v as SecretRef, eL as SemanticChunkingConfigShape, S as SessionObserverBandConfig, eM as SignalLevel, aN as SignalScanResult, eN as SlotBehaviorConfig, eO as SlotMismatchMode, p as SourceConnectorProvenance, aD as SubjectGuardMode, df as SupportPassportConfig, aO as TopicScore, T as TranscriptEntry, eP as TriggerMode, V as TrustWeights, Y as VerificationState, eQ as confidenceTier, d0 as isRecallDisclosure } from './types-Du6VdoAg.js';
2
- import './message-parts/index.js';
3
- import './bounded-jsonl-state.js';
4
- import './external-wiki-config.js';
5
- import './recall-state-view.js';
6
- export { ContradictionLocalizationConfig, ContradictionScanConfig } from './contradiction-config.js';
7
- export { GraphPathScoringConfig } from './graph-path-scoring-config.js';
8
- export { BackgroundGenerationConfig } from './background-generation-config.js';
9
- import './deep-recall-config.js';
10
- import './recall-navigation-config.js';
11
- import './recall-recognition-tier.js';
12
- import './active-context-config.js';
13
- import './local-llm-config.js';
14
- export { SemanticMergeConfig } from './semantic-merge-config.js';
15
- export { ContinuityImprovementLoop, ContinuityIncidentCloseInput, ContinuityIncidentOpenInput, ContinuityIncidentRecord, ContinuityIncidentState, ContinuityLoopCadence, ContinuityLoopReviewInput, ContinuityLoopStatus, ContinuityLoopUpsertInput } from './types-continuity.js';
16
- import './operator-doctor-types.js';
17
- import './causal-trajectory.js';
18
- import './objective-state.js';
1
+ import type { BoundedJsonlStateConfig } from "./bounded-jsonl-state.js";
2
+ import type { MeetingsConfig } from "./meetings/types.js";
3
+ import type { LocationConfig } from "./location/types.js";
4
+ import type { OkfConfig } from "./okf/config.js";
5
+ import type { ActivityConfig } from "./activity/types.js";
6
+ import type { WearablesConfig } from "./wearables/types.js";
7
+ import type { ExtractionSpanConfig, ExtractedFactSpanRef } from "./extraction-span-config.js";
8
+ import type { ExtractionLivenessConfig } from "./extraction-liveness.js";
9
+ import type { ReplicaPeersConfig } from "./replica-peers-config.js";
10
+ import type { ExternalWikiRoot } from "./external-wiki-config.js";
11
+ import type { StateViewResult } from "./recall-state-view.js";
12
+ import type { ContradictionLocalizationConfig, ContradictionScanConfig } from "./contradiction-config.js";
13
+ import type { GraphPathScoringConfig } from "./graph-path-scoring-config.js";
14
+ export type { ContradictionLocalizationConfig, ContradictionScanConfig } from "./contradiction-config.js";
15
+ export type { GraphPathScoringConfig } from "./graph-path-scoring-config.js";
16
+ export type { BackgroundGenerationConfig } from "./background-generation-config.js";
17
+ import type { BackgroundGenerationConfig } from "./background-generation-config.js";
18
+ import type { DriftDetectionSettings, MemoryDriftProvenance, RecallDriftAnnotation } from "./preferences/drift-types.js";
19
+ import type { DeepRecallSettings } from "./deep-recall-config.js";
20
+ import type { RecallNavigationSettings } from "./recall-navigation-config.js";
21
+ import type { RecognitionTierSettings } from "./recall-recognition-tier.js";
22
+ import type { SeedGraduationSettings } from "./lifecycle/seed-graduation-config-types.js";
23
+ import type { ProceduralMaintenanceConfig } from "./procedural/maintenance-config.js";
24
+ import type { SkillProjectionConfig } from "./procedural/skill-projection.js";
25
+ import type { SessionExperienceConfig } from "./experience/session-experience-config.js";
26
+ import type { ActionGateConfig } from "./coding/action-gate.js";
27
+ import type { ActiveContextConfigFields } from "./active-context-config.js";
28
+ import type { LocalLlmConfig } from "./local-llm-config.js";
29
+ import type { AmbientCaptureProvenance, BufferTurnOwner, SecurityConfig, OriginMetadata } from "./security/types.js";
30
+ export type MemorySubject = "user" | "agent";
31
+ export type SubjectGuardMode = "off" | "warn" | "enforce";
32
+ export type ReasoningEffort = "none" | "low" | "medium" | "high";
33
+ export type TriggerMode = "smart" | "every_n" | "time_based";
34
+ export type ConvergeConflictPolicy = "newest-wins" | "manual";
35
+ export interface ConvergeConfig {
36
+ conflictPolicy: ConvergeConflictPolicy;
37
+ /** Per-request peer HTTP timeout in ms (plan/apply/watch). Default 30000; clamped to <= 3600000. */
38
+ peerRequestTimeoutMs?: number;
39
+ }
40
+ export type SignalLevel = "none" | "low" | "medium" | "high";
41
+ export type MemoryCategory = "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
42
+ export type ConsolidationAction = "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
43
+ export type ConfidenceTier = "explicit" | "implied" | "inferred" | "speculative";
44
+ export type PrincipalFromSessionKeyMode = "map" | "prefix" | "regex";
45
+ export type RecallPlanMode = "no_recall" | "minimal" | "full" | "graph_mode";
46
+ export type CronRecallMode = "all" | "none" | "allowlist";
47
+ export type CronConversationRecallMode = "auto" | "always" | "never";
48
+ export type IdentityInjectionMode = "recovery_only" | "minimal" | "full";
49
+ export type CaptureMode = "implicit" | "explicit" | "hybrid";
50
+ export type MemoryOsPresetName = "conservative" | "balanced" | "research-max" | "local-llm-heavy";
51
+ export type ExtractionPassSource = "base" | "proactive";
52
+ /**
53
+ * Scope classification for extracted facts (issue #XXX).
54
+ *
55
+ * - `"project"` — one codebase (paths, env configs, deployment, stakeholders);
56
+ * also tool/command or CLI-flag instructions tied to one agent.
57
+ * - `"global"` — across projects: framework bugs, library/API behavior,
58
+ * user preferences, coding patterns, infrastructure.
59
+ *
60
+ * Default is `"project"` with a coding context active, else `"global"`.
61
+ */
62
+ export type MemoryScope = "project" | "global";
63
+ export type SlotMismatchMode = "error" | "warn" | "silent";
64
+ export type CodexCompactionFlushMode = "signal" | "heuristic" | "auto";
65
+ export type DreamingNarrativePromptStyle = "reflective" | "diary" | "analytical";
66
+ export type HeartbeatDetectionMode = "runtime-signal" | "heuristic" | "auto";
67
+ export type ActiveRecallQueryMode = "message" | "recent" | "full";
68
+ export type ActiveRecallPromptStyle = "balanced" | "strict" | "contextual" | "recall-heavy" | "precision-heavy" | "preference-only";
69
+ export type ActiveRecallThinking = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive";
70
+ export type ActiveRecallChatType = "direct" | "group" | "channel";
71
+ export type ActiveRecallModelFallbackPolicy = "default-remote" | "resolved-only";
72
+ /**
73
+ * Retrieval tier ladder (issue #518). Identifies which tier served a recall
74
+ * result. Ordered top-to-bottom by cost, but routing is not strictly
75
+ * sequential — callers may jump straight to a lower tier when eligibility
76
+ * does not hold.
77
+ */
78
+ export type RetrievalTier = "exact-cache" | "fuzzy-cache" | "direct-answer" | "hybrid" | "rerank-graph" | "agentic";
79
+ /**
80
+ * Per-recall annotation describing which retrieval tier served a result,
81
+ * why that tier was chosen, and what was filtered along the way. Added as
82
+ * part of issue #518 (direct-answer tier + `query --explain`).
83
+ *
84
+ * Not to be confused with the existing `recallExplain` operation
85
+ * (graph-path explanation) — that is a user-invoked RPC; this is a
86
+ * per-result annotation that can be attached to any recall response.
87
+ */
88
+ export interface RecallTierExplain {
89
+ tier: RetrievalTier;
90
+ tierReason: string;
91
+ filteredBy: string[];
92
+ candidatesConsidered: number;
93
+ latencyMs: number;
94
+ sourceAnchors?: Array<{
95
+ path: string;
96
+ lineRange?: [number, number];
97
+ }>;
98
+ }
99
+ /**
100
+ * Recall disclosure depth (issue #677). Selects how much content each
101
+ * recall result returns:
102
+ *
103
+ * - `"chunk"` — semantic chunk excerpt (cheapest; default).
104
+ * - `"section"` — full markdown section / memory body (current pre-#677 behavior).
105
+ * - `"raw"` — raw transcript / archive excerpts from `lcm/` when present.
106
+ *
107
+ * Disclosure is **orthogonal** to the retrieval-tier ladder
108
+ * (`RetrievalTier` / `RETRIEVAL_TIERS`). The tier ladder controls *which
109
+ * pipeline stage served a result*; disclosure controls *how deep into the
110
+ * underlying memory the result reaches*. A request can mix any retrieval
111
+ * tier with any disclosure depth.
112
+ *
113
+ * Default is `"chunk"` when the caller omits the field; this preserves the
114
+ * existing recall behavior because callers that did not request a disclosure
115
+ * level continue to receive the same chunk-shaped previews they always had.
116
+ * Surfaces (CLI / HTTP / MCP) and downstream telemetry are wired in later
117
+ * PRs of #677.
118
+ */
119
+ export type RecallDisclosure = "chunk" | "section" | "raw";
120
+ /**
121
+ * Ordered list of disclosure levels, cheapest to most expensive. Used for
122
+ * validation, escalation policy comparisons, and future telemetry rollups.
123
+ * Treat this as the single source of truth — do not hard-code disclosure
124
+ * strings elsewhere.
125
+ */
126
+ export declare const RECALL_DISCLOSURE_LEVELS: readonly RecallDisclosure[];
127
+ /**
128
+ * Default disclosure level when a caller omits `disclosure`. Set to `chunk`
129
+ * so callers that did not opt in to deeper disclosure see the same
130
+ * preview-shaped behavior as before #677.
131
+ */
132
+ export declare const DEFAULT_RECALL_DISCLOSURE: RecallDisclosure;
133
+ export declare function isRecallDisclosure(value: unknown): value is RecallDisclosure;
134
+ export interface RecallSectionConfig {
135
+ id: string;
136
+ enabled?: boolean;
137
+ maxChars?: number | null;
138
+ maxHints?: number;
139
+ maxSupportingFacts?: number;
140
+ maxRelatedEntities?: number;
141
+ consolidateTriggerLines?: number;
142
+ consolidateTargetLines?: number;
143
+ maxEntities?: number;
144
+ maxResults?: number;
145
+ recentTurns?: number;
146
+ maxTurns?: number;
147
+ maxTokens?: number;
148
+ lookbackHours?: number;
149
+ maxCount?: number;
150
+ topK?: number;
151
+ timeoutMs?: number;
152
+ maxPatterns?: number;
153
+ maxRubrics?: number;
154
+ forceGeneric?: boolean;
155
+ }
156
+ export interface RecallPipelineConfig {
157
+ recallBudgetChars: number;
158
+ pipeline: RecallSectionConfig[];
159
+ }
160
+ export interface SessionObserverBandConfig {
161
+ maxBytes: number;
162
+ triggerDeltaBytes: number;
163
+ triggerDeltaTokens: number;
164
+ }
165
+ export interface FileHygieneConfig {
166
+ enabled: boolean;
167
+ lintEnabled: boolean;
168
+ lintBudgetBytes: number;
169
+ lintWarnRatio: number;
170
+ lintPaths: string[];
171
+ rotateEnabled: boolean;
172
+ rotateMaxBytes: number;
173
+ rotateKeepTailChars: number;
174
+ rotatePaths: string[];
175
+ archiveDir: string;
176
+ runMinIntervalMs: number;
177
+ warningsLogEnabled: boolean;
178
+ warningsLogPath: string;
179
+ indexEnabled: boolean;
180
+ indexPath: string;
181
+ }
182
+ export interface NativeKnowledgeConfig {
183
+ enabled: boolean;
184
+ includeFiles: string[];
185
+ maxChunkChars: number;
186
+ maxResults: number;
187
+ maxChars: number;
188
+ stateDir: string;
189
+ obsidianVaults: NativeKnowledgeObsidianVaultConfig[];
190
+ openclawWorkspace?: NativeKnowledgeOpenClawWorkspaceConfig;
191
+ }
192
+ export interface NativeKnowledgeFolderRuleConfig {
193
+ pathPrefix: string;
194
+ namespace?: string;
195
+ privacyClass?: string;
196
+ }
197
+ export interface NativeKnowledgeObsidianVaultConfig {
198
+ id: string;
199
+ rootDir: string;
200
+ includeGlobs: string[];
201
+ excludeGlobs: string[];
202
+ namespace?: string;
203
+ privacyClass?: string;
204
+ folderRules: NativeKnowledgeFolderRuleConfig[];
205
+ dailyNotePatterns: string[];
206
+ materializeBacklinks: boolean;
207
+ }
208
+ export interface NativeKnowledgeOpenClawWorkspaceConfig {
209
+ enabled: boolean;
210
+ bootstrapFiles: string[];
211
+ handoffGlobs: string[];
212
+ dailySummaryGlobs: string[];
213
+ automationNoteGlobs: string[];
214
+ workspaceDocGlobs: string[];
215
+ excludeGlobs: string[];
216
+ sharedSafeGlobs: string[];
217
+ }
218
+ /**
219
+ * OpenClaw SecretRef shape (issue #757).
220
+ *
221
+ * OpenClaw resolves these at runtime via its built-in secret resolver
222
+ * (e.g. exec providers like `kc_*` for macOS Keychain). Plugins receive
223
+ * the raw object in `pluginConfig` and must call the gateway's resolver
224
+ * before using the value. Standalone Remnic does NOT resolve SecretRefs;
225
+ * operators must use plain strings or `${ENV_VAR}` expansion instead.
226
+ */
227
+ export interface SecretRef {
228
+ source: string;
229
+ provider?: string;
230
+ id?: string;
231
+ command?: unknown;
232
+ [key: string]: unknown;
233
+ }
234
+ export type AgentAccessAuthToken = string | SecretRef;
235
+ export interface AgentAccessHttpConfig {
236
+ enabled: boolean;
237
+ host: string;
238
+ port: number;
239
+ /**
240
+ * Bearer token. Either a literal string (env-expanded) or an unresolved
241
+ * SecretRef object preserved verbatim from openclaw.json — resolved at
242
+ * service-start time via {@link resolveAgentAccessAuthToken}.
243
+ */
244
+ authToken?: AgentAccessAuthToken;
245
+ principal?: string;
246
+ maxBodyBytes: number;
247
+ /** Max write requests per rolling window before 429 write_rate_limited (issue #1937). */
248
+ writeRateLimitMaxRequests: number;
249
+ /** Rolling window for the write rate limit, in ms (issue #1937). */
250
+ writeRateLimitWindowMs: number;
251
+ }
252
+ export interface DreamingConfig {
253
+ enabled: boolean;
254
+ journalPath: string;
255
+ maxEntries: number;
256
+ injectRecentCount: number;
257
+ minIntervalMinutes: number;
258
+ narrativeModel: string | null;
259
+ narrativePromptStyle: DreamingNarrativePromptStyle;
260
+ watchFile: boolean;
261
+ }
262
+ /**
263
+ * Light-sleep phase config (issue #678 PR 2/4).
264
+ *
265
+ * Groups existing top-level lifecycle-policy gates under a unified namespace.
266
+ * When `dreams.phases.lightSleep.*` keys are set they WIN over the legacy
267
+ * top-level keys; the legacy keys remain readable for backward compatibility.
268
+ *
269
+ * Light sleep: recent activity scoring + clustering (tier-routing value score,
270
+ * observation ledger, buffer state — `runLifecyclePolicyPass` in orchestrator).
271
+ */
272
+ export interface DreamsLightSleepConfig {
273
+ /** Phase master switch. Mirrors `lifecyclePolicyEnabled` when not set explicitly. */
274
+ enabled: boolean;
275
+ /** Minimum interval between light-sleep passes in milliseconds. */
276
+ cadenceMs: number;
277
+ /** Value score above which a memory is treated as hot. Mirrors `lifecyclePromoteHeatThreshold`. */
278
+ promoteHeatThreshold: number;
279
+ /** Value score below which a memory starts to decay. Mirrors `lifecycleStaleDecayThreshold`. */
280
+ staleDecayThreshold: number;
281
+ /** Value score below which a memory is eligible for archive. Mirrors `lifecycleArchiveDecayThreshold`. */
282
+ archiveDecayThreshold: number;
283
+ /** Whether stale memories are filtered from recall. Mirrors `lifecycleFilterStaleEnabled`. */
284
+ filterStaleEnabled: boolean;
285
+ }
286
+ /**
287
+ * REM phase config (issue #678 PR 2/4).
288
+ *
289
+ * Groups existing top-level semantic-consolidation and supersession gates.
290
+ * When `dreams.phases.rem.*` keys are set they WIN over the legacy top-level
291
+ * keys.
292
+ *
293
+ * REM: cross-session synthesis, supersession resolution, semantic consolidation
294
+ * (`runSemanticConsolidation` in orchestrator).
295
+ */
296
+ export interface DreamsRemConfig {
297
+ /** Phase master switch. Mirrors `semanticConsolidationEnabled` when not set explicitly. */
298
+ enabled: boolean;
299
+ /**
300
+ * How often the REM pass runs, in milliseconds.
301
+ * Derived from `semanticConsolidationIntervalHours` (×3 600 000) when not set explicitly.
302
+ */
303
+ cadenceMs: number;
304
+ /** Cosine-similarity threshold for cluster membership. Mirrors `semanticConsolidationThreshold`. */
305
+ similarityThreshold: number;
306
+ /** Minimum cluster size before consolidation runs. Mirrors `semanticConsolidationMinClusterSize`. */
307
+ minClusterSize: number;
308
+ /** Max cluster operations per run. Mirrors `semanticConsolidationMaxPerRun`. */
309
+ maxPerRun: number;
310
+ /** Minimum gap between consolidation passes (ms). Mirrors `consolidationMinIntervalMs`. */
311
+ minIntervalMs: number;
312
+ }
313
+ /**
314
+ * Deep-sleep phase config (issue #678 PR 2/4).
315
+ *
316
+ * Groups existing versioning and tier-migration gates.
317
+ * When `dreams.phases.deepSleep.*` keys are set they WIN over the legacy
318
+ * top-level keys.
319
+ *
320
+ * Deep sleep: promotion to durable memory, hot→cold tier migration,
321
+ * page-version snapshots, archive (`engram-nightly-governance` cron,
322
+ * `tier-migration.ts`, `page-versioning.ts`, `hygiene.ts`).
323
+ */
324
+ export interface DreamsDeepSleepConfig {
325
+ /**
326
+ * Phase master switch. No single direct legacy mirror; defaults false unless
327
+ * an existing deep-sleep surface such as nightly governance auto-registration,
328
+ * tier migration, or page versioning is explicitly enabled. Set to `false`
329
+ * to disable those surfaces without removing legacy config keys.
330
+ */
331
+ enabled: boolean;
332
+ /** True only when dreams.phases.deepSleep.enabled was explicitly configured. */
333
+ enabledExplicitlySet?: boolean;
334
+ /**
335
+ * Minimum interval between deep-sleep passes in milliseconds.
336
+ * Informational only in PR 2; PR 4 will wire this into the cron scheduler.
337
+ */
338
+ cadenceMs: number;
339
+ /** Enable page-version snapshots on every overwrite. Mirrors `versioningEnabled`. */
340
+ versioningEnabled: boolean;
341
+ /** Max snapshots per page. Mirrors `versioningMaxPerPage`. */
342
+ versioningMaxPerPage: number;
343
+ }
344
+ /**
345
+ * Unified dreams phases config block (issue #678 PR 2/4).
346
+ *
347
+ * Operators set `dreams.phases.{lightSleep,rem,deepSleep}.*` in their plugin
348
+ * config. Values under this block WIN over the equivalent legacy top-level keys
349
+ * when both are set. Legacy keys continue to be parsed so existing configs do
350
+ * not need to change.
351
+ *
352
+ * This block is intentionally separate from `DreamingConfig` which controls the
353
+ * diary surface (`surfaces/dreams.ts`) — a different feature. See docs/dreams.md.
354
+ */
355
+ export interface DreamsPhasesConfig {
356
+ lightSleep: DreamsLightSleepConfig;
357
+ rem: DreamsRemConfig;
358
+ deepSleep: DreamsDeepSleepConfig;
359
+ }
360
+ export interface ProceduralConfig {
361
+ enabled: boolean;
362
+ minOccurrences: number;
363
+ successFloor: number;
364
+ autoPromoteOccurrences: number;
365
+ autoPromoteEnabled: boolean;
366
+ lookbackDays: number;
367
+ /** When true, installer may register the nightly procedural mining cron (default off). */
368
+ proceduralMiningCronAutoRegister: boolean;
369
+ recallMaxProcedures: number;
370
+ maintenance: ProceduralMaintenanceConfig;
371
+ skillProjection: SkillProjectionConfig;
372
+ }
373
+ /**
374
+ * Claim-level provenance spans (issue #1575). Controls whether extracted
375
+ * facts carry verbatim source-utterance excerpts and the strength tag that
376
+ * downstream features (faithfulness gate #1576, correction UX #1580/#1583,
377
+ * tombstone matching #1579, TrustScore #1577) consume.
378
+ *
379
+ * PR 1 parses the block + schema only; the extraction prompt and validator
380
+ * land in PR 2. When `enabled` is false, extraction prompt/output are
381
+ * byte-identical to pre-feature behavior (rule 39).
382
+ */
383
+ export interface ProvenanceConfig {
384
+ /** Emit provenance spans on new extractions. Default true. */
385
+ enabled: boolean;
386
+ /** Maximum characters stored per quote; longer quotes truncate at a word boundary. Default 300. */
387
+ maxQuoteChars: number;
388
+ /**
389
+ * When true, facts whose quote cannot be located are routed to
390
+ * `pending_review` instead of `active`. Stays false until #1576 lands and
391
+ * the bench shows the gate is safe (rule 48).
392
+ */
393
+ requireSpans: boolean;
394
+ }
395
+ /**
396
+ * Coding-agent mode config (issue #569).
397
+ *
398
+ * When the connector provides a `CodingContext` (see below), Remnic overlays
399
+ * a project- and/or branch-scoped namespace on top of the principal's default
400
+ * namespace so that memories written while working on project A do not surface
401
+ * while working on project B.
402
+ *
403
+ * Both flags default off-for-branch / on-for-project. Per CLAUDE.md #30 every
404
+ * filter or transform needs an escape hatch: set `projectScope: false` to
405
+ * exactly restore pre-#569 behaviour.
406
+ */
407
+ export interface CodingModeConfig {
408
+ /**
409
+ * When true (default), a session with a resolved `CodingContext` uses a
410
+ * project-scoped namespace. When false, the principal's default namespace
411
+ * is used unchanged (pre-#569 behaviour).
412
+ */
413
+ projectScope: boolean;
414
+ /**
415
+ * When true, recall/write also overlay the current branch on top of the
416
+ * project namespace. Default false — branch-scope is opt-in because active
417
+ * development typically wants recall across branches. (Wired by PR 3 of
418
+ * issue #569; declared here so the schema ships in one slice.)
419
+ */
420
+ branchScope: boolean;
421
+ /**
422
+ * When true (default), project-scoped and branch-scoped sessions include
423
+ * the root/default namespace in their read fallbacks so globally useful
424
+ * memories remain visible from any project. When false, project-scoped
425
+ * sessions only see their own namespace (strict isolation).
426
+ *
427
+ * CLAUDE.md #30: configuration gate for the recall fan-out to the root
428
+ * namespace. Does not affect writes — those always go to the project
429
+ * namespace only.
430
+ */
431
+ globalFallback: boolean;
432
+ }
433
+ export interface CodingKnowledgeConfig {
434
+ /** Master gate. Off = byte-for-byte pre-feature behaviour on every path. */
435
+ enabled: boolean;
436
+ /** Decision-record surfaces + briefing titles (effective only under the master gate). */
437
+ decisionRecords: boolean;
438
+ /** Architecture-card build/refresh + briefing injection. */
439
+ architectureCard: boolean;
440
+ /** Last-seen-head persistence + delta briefing line. */
441
+ sessionDelta: boolean;
442
+ /** Opt-in LLM summary pass (costs tokens — default off, per rule 48). */
443
+ architectureCardLlmSummary: boolean;
444
+ /**
445
+ * Structural-context provider selection.
446
+ * - `"none"` (default): no provider consulted — review-context runs
447
+ * file-path-only boosting, identical to pre-feature behaviour.
448
+ * - `"subprocess"`: shells out to `structuralProviderCommand` via
449
+ * `execFile` (argv-array, never shell-string — rule 10).
450
+ * - `"native"`: the `@remnic/coding-graph` engine, when installed.
451
+ */
452
+ structuralProvider: "none" | "subprocess" | "native";
453
+ /**
454
+ * Absolute path to the subprocess binary when `structuralProvider =
455
+ * "subprocess"`. Empty string = no command configured (consumer must
456
+ * reject the empty case at the wiring site). Rule 24: `statSync` file
457
+ * check at boot, not at every call.
458
+ */
459
+ structuralProviderCommand: string;
460
+ /**
461
+ * Gate for the 14 codegraph parity tools (issue #1554). Off by default --
462
+ * tools/list, HTTP routes, and CLI help are byte-identical to pre-feature
463
+ * until this is true. The runtime also requires the @remnic/coding-graph
464
+ * package to be installed (rule 39: single gate predicate
465
+ * codegraphSurfaceVisible(config) && isCodingGraphInstalled()).
466
+ */
467
+ codegraphTools: boolean;
468
+ /**
469
+ * Root directory for per-project graph SQLite DBs. Empty string = derive
470
+ * from memoryDir (<memoryDir>/codegraph/<principal>/<projectId>.sqlite).
471
+ * Absolute path required when set explicitly (rule 11 -- no relative paths).
472
+ */
473
+ codegraphDbDir: string;
474
+ /**
475
+ * Phase B type resolution via LSP (issue #1917). When enabled, the
476
+ * reindex pipeline invokes `executeLspResolution` after the heuristic
477
+ * pass to upgrade unresolved call-site edges with real language-server
478
+ * definitions. Requires installed language servers on the host.
479
+ * Off by default (rule 48 — explicit opt-in for subprocess spawning).
480
+ */
481
+ lsp?: CodingGraphLspConfig;
482
+ }
483
+ /**
484
+ * Per-language LSP server configuration (issue #1917). Keys are
485
+ * `CodingGraphLanguage` values (typescript, python, go, rust, ...).
486
+ * When a language is not listed, the default server command for that
487
+ * language is used (typescript-language-server, pyright, gopls,
488
+ * rust-analyzer).
489
+ */
490
+ export interface CodingGraphLspConfig {
491
+ /** Master gate for LSP resolution. Off = heuristic edges only. */
492
+ enabled: boolean;
493
+ /**
494
+ * Per-language server overrides. Each value is an argv array's first
495
+ * element (command) plus optional args. When absent for a language,
496
+ * the default server command is probed on PATH.
497
+ */
498
+ servers?: Record<string, {
499
+ command: string;
500
+ args?: string[];
501
+ }>;
502
+ /** Per-request timeout in ms (default 3000). */
503
+ timeoutMs?: number;
504
+ /** Max LSP requests per reindex run (default 500). */
505
+ maxRequestsPerRun?: number;
506
+ }
507
+ export interface ChatConfig {
508
+ /** Master gate. Off = no tools/endpoints/CLI registered (byte-identical, rule 39). */
509
+ enabled: boolean;
510
+ /** Routing override for the chat LLM (empty = use the default chain). */
511
+ model: string;
512
+ /** Max tool calls per user turn before partial-reply fallback (rule 34). */
513
+ maxToolCallsPerTurn: number;
514
+ /** Hours after which idle chat session state is cleaned up. */
515
+ sessionTtlHours: number;
516
+ }
517
+ export interface SupportPassportConfig {
518
+ enabled: boolean;
519
+ trustedProxyAddresses: string[];
520
+ }
521
+ /**
522
+ * Session-scoped coding context. Produced by `resolveGitContext()` in the
523
+ * connector layer and attached to a session so that recall + write paths can
524
+ * compute an overlay namespace.
525
+ *
526
+ * All fields mirror `GitContext` from `./coding/git-context.ts`; kept as a
527
+ * separate interface because `types.ts` must stay dependency-free (it is
528
+ * imported by every other module).
529
+ */
530
+ export interface CodingContext {
531
+ projectId: string;
532
+ branch: string | null;
533
+ rootPath: string;
534
+ defaultBranch: string | null;
535
+ }
536
+ export type ScopeProfileLayerId = "userProject" | "teamProject" | "userGlobal" | "serverShared";
537
+ export type ScopeProfilePromotionTarget = ScopeProfileLayerId | "serverShared" | "teamProject" | "userGlobal";
538
+ export interface ScopeProfileTeamProjectConfig {
539
+ /**
540
+ * Namespace template for team-project layers. Supported placeholders:
541
+ * `{teamId}`, `{principal}`, `{projectId}`, `{projectHash}`, and
542
+ * `{projectNamespace}`. The resolved namespace is validated at use time.
543
+ */
544
+ namespaceTemplate?: string;
545
+ /**
546
+ * Optional trusted team id for this profile. When omitted, the resolver uses
547
+ * the first configured team whose principal lists include the caller.
548
+ */
549
+ teamId?: string;
550
+ }
551
+ export interface ScopeProfileAutoPromoteConfig {
552
+ enabled: boolean;
553
+ targets: ScopeProfilePromotionTarget[];
554
+ categories: Array<"fact" | "correction" | "decision" | "preference" | "rule" | "procedure">;
555
+ minConfidenceTier: ConfidenceTier;
556
+ }
557
+ export interface ScopeProfileConfig {
558
+ readOrder: ScopeProfileLayerId[];
559
+ writeDefault: ScopeProfileLayerId;
560
+ promotionTargets: ScopeProfilePromotionTarget[];
561
+ teamProject?: ScopeProfileTeamProjectConfig;
562
+ autoPromote: ScopeProfileAutoPromoteConfig;
563
+ }
564
+ export interface ScopeTeamConfig {
565
+ principals: string[];
566
+ projectNamespaceTemplate?: string;
567
+ read: string[];
568
+ write: string[];
569
+ promote: string[];
570
+ }
571
+ export interface DependencyPropagationConfig {
572
+ /** Master switch. Default false. */
573
+ enabled: boolean;
574
+ /** Link types that can identify one-hop dependents. */
575
+ linkTypes: Array<"supports" | "follows" | "references">;
576
+ /** Maximum active dependents to revalidate. `0` disables propagation. */
577
+ maxDependents: number;
578
+ /** Maximum duration of the single batched revalidation call, in milliseconds. */
579
+ timeoutMs: number;
580
+ /** Discover and revalidate dependents without writing supersession changes. */
581
+ dryRun: boolean;
582
+ }
583
+ export interface HeartbeatConfig {
584
+ enabled: boolean;
585
+ journalPath: string;
586
+ maxPreviousRuns: number;
587
+ watchFile: boolean;
588
+ detectionMode: HeartbeatDetectionMode;
589
+ gateExtractionDuringHeartbeat: boolean;
590
+ }
591
+ export interface SlotBehaviorConfig {
592
+ requireExclusiveMemorySlot: boolean;
593
+ onSlotMismatch: SlotMismatchMode;
594
+ }
595
+ export interface CodexCompatConfig {
596
+ enabled: boolean;
597
+ threadIdBufferKeying: boolean;
598
+ compactionFlushMode: CodexCompactionFlushMode;
599
+ fingerprintDedup: boolean;
600
+ }
601
+ export declare function confidenceTier(score: number): ConfidenceTier;
602
+ /** Default TTL in days for speculative memories (auto-expire if unconfirmed) */
603
+ export declare const SPECULATIVE_TTL_DAYS = 30;
604
+ /**
605
+ * Shape for semantic chunking config overrides stored in PluginConfig.
606
+ * Mirrors SemanticChunkingConfig from semantic-chunking.ts without creating
607
+ * a circular import (types.ts is imported by everything).
608
+ */
609
+ export interface SemanticChunkingConfigShape {
610
+ targetTokens: number;
611
+ minTokens: number;
612
+ maxTokens: number;
613
+ smoothingWindowSize: number;
614
+ boundaryThresholdStdDevs: number;
615
+ embeddingBatchSize: number;
616
+ fallbackToRecursive: boolean;
617
+ }
618
+ export interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig, DriftDetectionSettings, ActiveContextConfigFields, DeepRecallSettings, RecallNavigationSettings, RecognitionTierSettings, SeedGraduationSettings, LocalLlmConfig {
619
+ openaiApiKey: string | undefined;
620
+ openaiBaseUrl: string | undefined;
621
+ backgroundGeneration?: BackgroundGenerationConfig;
622
+ model: string;
623
+ reasoningEffort: ReasoningEffort;
624
+ triggerMode: TriggerMode;
625
+ bufferMaxTurns: number;
626
+ bufferMaxMinutes: number;
627
+ /**
628
+ * Debounce window (ms) for persisting the smart buffer to `state/buffer.json`
629
+ * (issue #1909). Steady-state buffering coalesces the whole-state serialize
630
+ * onto a trailing-edge timer instead of rewriting on every turn; extraction
631
+ * trigger/clear and shutdown still force an immediate flush. Default 3000.
632
+ * `0` restores the legacy save-every-turn behavior exactly.
633
+ */
634
+ bufferSaveDebounceMs: number;
635
+ /**
636
+ * Surprise-gated buffer flush (issue #563, D-MEM).
637
+ *
638
+ * When enabled, every turn added to the smart buffer is scored against a
639
+ * configurable window of recent memories using an embedding-distance proxy
640
+ * for novelty (see `buffer-surprise.ts`). A turn whose surprise score
641
+ * exceeds `bufferSurpriseThreshold` triggers an immediate extract flush,
642
+ * even if the existing signal/turn-count/time triggers would otherwise keep
643
+ * buffering. Disabled by default — when `false`, buffer behavior is
644
+ * identical to pre-#563 code. Additive only: existing triggers are never
645
+ * suppressed by this flag.
646
+ */
647
+ bufferSurpriseTriggerEnabled: boolean;
648
+ /**
649
+ * Threshold in `[0, 1]` above which a surprise score causes an immediate
650
+ * flush. `0.35` is a conservative default chosen to favor precision over
651
+ * recall during the opt-in phase. Ignored unless
652
+ * `bufferSurpriseTriggerEnabled` is `true`.
653
+ */
654
+ bufferSurpriseThreshold: number;
655
+ /**
656
+ * Number of nearest neighbors to average over when computing the surprise
657
+ * score (see `computeSurprise`). Default `5`. Clamped to the recent-memory
658
+ * window size at call time.
659
+ */
660
+ bufferSurpriseK: number;
661
+ /**
662
+ * Maximum number of recent memories to sample when computing the surprise
663
+ * score. Bounds embedding cost per turn. Default `20`. Set to `0` to
664
+ * disable the trigger even when the flag is on (no memories to compare
665
+ * against → treat as not-applicable rather than maximally surprising).
666
+ */
667
+ bufferSurpriseRecentMemoryCount: number;
668
+ /**
669
+ * Hard timeout (ms) for the surprise probe. If the probe does not
670
+ * resolve within this window, the buffer treats the probe as failed,
671
+ * logs at debug, and falls through to the existing triggers. Ensures
672
+ * a slow or hung embedder cannot stall the turn-append path. Default
673
+ * `2000` (2s).
674
+ */
675
+ bufferSurpriseProbeTimeoutMs: number;
676
+ consolidateEveryN: number;
677
+ highSignalPatterns: string[];
678
+ maxMemoryTokens: number;
679
+ memoryOsPreset?: MemoryOsPresetName;
680
+ qmdEnabled: boolean;
681
+ qmdCollection: string;
682
+ wikiMergeIntoRecall: boolean;
683
+ qmdMaxResults: number;
684
+ qmdEmbeddingBacklogThreshold: number;
685
+ qmdColdTierEnabled?: boolean;
686
+ qmdColdCollection?: string;
687
+ qmdColdMaxResults?: number;
688
+ qmdTierMigrationEnabled: boolean;
689
+ qmdTierDemotionMinAgeDays: number;
690
+ qmdTierDemotionValueThreshold: number;
691
+ qmdTierPromotionValueThreshold: number;
692
+ qmdTierParityGraphEnabled: boolean;
693
+ qmdTierParityHiMemEnabled: boolean;
694
+ qmdTierAutoBackfillEnabled: boolean;
695
+ qmdSupportedVersion: string;
696
+ qmdAutoUpgradeEnabled: boolean;
697
+ qmdAutoUpgradeCheckIntervalMs: number;
698
+ qmdChunkStrategy: "auto" | "regex";
699
+ qmdCandidateLimit?: number;
700
+ qmdQueryRerankEnabled: boolean;
701
+ qmdSearchStrategy: "hybrid" | "lex-vec" | "lex";
702
+ qmdSubprocessStrategy: "query" | "search";
703
+ qmdDaemonTimeoutMs: number;
704
+ qmdIndexName?: string;
705
+ qmdForceCpu: boolean;
706
+ qmdGpuBackend?: "auto" | "metal" | "cuda" | "vulkan" | "false";
707
+ qmdEmbedParallelism?: number;
708
+ qmdEmbedModel?: string;
709
+ qmdRerankModel?: string;
710
+ qmdGenerateModel?: string;
711
+ embeddingFallbackEnabled: boolean;
712
+ embeddingFallbackProvider: "auto" | "openai" | "local";
713
+ /**
714
+ * Host adapters may register an embedding provider scoped to this memoryDir.
715
+ * Core remains host-agnostic: when no provider is registered, the existing
716
+ * OpenAI/local fallback path is used.
717
+ */
718
+ hostEmbeddingProviderEnabled: boolean;
719
+ hostEmbeddingProviderId?: string;
720
+ hostEmbeddingProviderModel?: string;
721
+ /**
722
+ * Optional model identifier for local embedding fallback requests.
723
+ *
724
+ * Local chat/completion models and local embedding models are often
725
+ * different LM Studio/Ollama model IDs. When unset, Remnic preserves the
726
+ * legacy behavior and falls back to `localLlmModel`.
727
+ */
728
+ embeddingFallbackModel: string;
729
+ /** Optional absolute path to qmd binary. If unset, PATH/fallback discovery is used. */
730
+ qmdPath?: string;
731
+ memoryDir: string;
732
+ externalWikis: ExternalWikiRoot[];
733
+ debug: boolean;
734
+ identityEnabled: boolean;
735
+ identityContinuityEnabled: boolean;
736
+ identityInjectionMode: IdentityInjectionMode;
737
+ identityMaxInjectChars: number;
738
+ continuityIncidentLoggingEnabled: boolean;
739
+ continuityAuditEnabled: boolean;
740
+ sessionObserverEnabled?: boolean;
741
+ sessionObserverDebounceMs?: number;
742
+ sessionObserverBands?: SessionObserverBandConfig[];
743
+ injectQuestions: boolean;
744
+ commitmentDecayDays: number;
745
+ workspaceDir: string;
746
+ captureMode: CaptureMode;
747
+ fileHygiene?: FileHygieneConfig;
748
+ nativeKnowledge?: NativeKnowledgeConfig;
749
+ agentAccessHttp: AgentAccessHttpConfig;
750
+ accessTrackingEnabled: boolean;
751
+ accessTrackingBufferMaxSize: number;
752
+ recencyWeight: number;
753
+ boostAccessCount: boolean;
754
+ /** Record empty recall impressions (memoryIds: []) when no memories are injected. Disabled by default. */
755
+ recordEmptyRecallImpressions: boolean;
756
+ queryExpansionEnabled: boolean;
757
+ queryExpansionMaxQueries: number;
758
+ /** Minimum token length to consider for query expansion. */
759
+ queryExpansionMinTokenLen: number;
760
+ rerankEnabled: boolean;
761
+ /** Rerank provider. "local" uses Local LLM only; "cloud" uses gateway fallback chain. */
762
+ rerankProvider: "local" | "cloud";
763
+ rerankMaxCandidates: number;
764
+ rerankTimeoutMs: number;
765
+ rerankCacheEnabled: boolean;
766
+ rerankCacheTtlMs: number;
767
+ feedbackEnabled: boolean;
768
+ /** If true, allow recording negative examples and apply a soft penalty during ranking. */
769
+ negativeExamplesEnabled: boolean;
770
+ /** Score penalty per "not useful" hit (typical QMD scores ~0-1). Keep small. */
771
+ negativeExamplesPenaltyPerHit: number;
772
+ /** Maximum penalty applied from negative examples. */
773
+ negativeExamplesPenaltyCap: number;
774
+ chunkingEnabled: boolean;
775
+ chunkingTargetTokens: number;
776
+ chunkingMinTokens: number;
777
+ chunkingOverlapSentences: number;
778
+ /** Enable semantic chunking with embedding-based topic boundary detection. Default: false. */
779
+ semanticChunkingEnabled: boolean;
780
+ /** Optional overrides for the semantic chunking algorithm. */
781
+ semanticChunkingConfig: Partial<SemanticChunkingConfigShape>;
782
+ contradictionDetectionEnabled: boolean;
783
+ contradictionSimilarityThreshold: number;
784
+ contradictionMinConfidence: number;
785
+ contradictionAutoResolve: boolean;
786
+ /** Nightly contradiction-scan cron config (issue #520). */
787
+ contradictionScan: ContradictionScanConfig;
788
+ /** Anchor-first contradiction candidate localization settings (issue #2327). */
789
+ contradictionLocalization: ContradictionLocalizationConfig;
790
+ /** One-hop dependency invalidation propagation settings (issue #2326). */
791
+ dependencyPropagation: DependencyPropagationConfig;
792
+ /**
793
+ * When enabled, writes that carry `structuredAttributes` mark any older
794
+ * fact with the same `entityRef + attribute_name` supersession key and a
795
+ * conflicting value as `status: "superseded"`.
796
+ */
797
+ temporalSupersessionEnabled: boolean;
798
+ /**
799
+ * When enabled, superseded memories are still returned by recall (useful
800
+ * for audit/history queries). Default: false — superseded memories are
801
+ * filtered out.
802
+ */
803
+ temporalSupersessionIncludeInRecall: boolean;
804
+ /**
805
+ * Bi-temporal validity master gate (issue #1578). When `false` (default),
806
+ * the recall validity-injection filter and `asOf` semantics behave
807
+ * byte-identically to pre-#1578.
808
+ *
809
+ * Turn on to exclude validity-expired facts from default injection
810
+ * candidates (they remain findable by explicit search and `as_of`
811
+ * queries). Storage round-trips `observedAt`/`eventTimeSource`; the
812
+ * extraction prompt emits an optional per-fact `eventTime` expression
813
+ * and `resolveFactEventTime` resolves it against the source turn
814
+ * timestamp at write time (#1578 PR2).
815
+ */
816
+ temporalBiTemporal: boolean;
817
+ /**
818
+ * Escape hatch for the bi-temporal injection filter (issue #1578). When
819
+ * `true`, facts whose `[valid_at, invalid_at)` interval ended before now
820
+ * are kept in injection candidates even with `temporalBiTemporal` on — some
821
+ * deployments prefer the older (always-inject) behavior. Default `false`.
822
+ */
823
+ temporalExpiredInInjection: boolean;
824
+ /**
825
+ * Correction Contract (issue #1580) — one plan/apply pipeline for memory
826
+ * corrections. Master visibility + enforcement gate for the
827
+ * `memory_correct_plan` / `memory_correct_apply` tools. Default `true`:
828
+ * planning is read-only (locates candidates + drafts a pending plan file)
829
+ * and safe to ship on; `false` hides the tools and rejects runtime calls so
830
+ * the surface cannot drift out of sync. Parsed from `correction.enabled`
831
+ * (nested) or `correctionEnabled` (flat legacy).
832
+ */
833
+ correctionEnabled: boolean;
834
+ /**
835
+ * Whether `memory_correct_apply` requires an explicit `confirm: true` to
836
+ * mutate memories. Default `true` (least-privileged). Parsed from
837
+ * `correction.applyRequiresConfirm` / `correctionApplyRequiresConfirm`.
838
+ */
839
+ correctionApplyRequiresConfirm: boolean;
840
+ /**
841
+ * Max memories a single correction plan may touch; over-limit plans are
842
+ * rejected, never silently truncated (review thread). Default `10`. Parsed
843
+ * from `correction.maxAffected` / `correctionMaxAffected`.
844
+ */
845
+ correctionMaxAffected: number;
846
+ /**
847
+ * Plan time-to-live in hours; expired plans are rejected at apply. Default
848
+ * `24`. Parsed from `correction.planTtlHours` / `correctionPlanTtlHours`.
849
+ */
850
+ correctionPlanTtlHours: number;
851
+ /**
852
+ * Passive correction capture (issue #1581) — detects corrections expressed
853
+ * passively in conversation turns during extraction and routes them to the
854
+ * Correction Contract (#1580). `"off"` disables detection entirely; `"queue"`
855
+ * plans corrections for human review (conservative); `"auto"` applies
856
+ * immediately when all safety guards pass, otherwise falls back to queue.
857
+ * Default `"off"` — operators opt in (rule 48). Parsed from
858
+ * `correctionCapture.mode` / `correctionCaptureMode`.
859
+ */
860
+ correctionCaptureMode: "off" | "queue" | "auto";
861
+ /**
862
+ * Minimum planner confidence for auto-apply (issue #1581). Plans below this
863
+ * floor are queued even in `"auto"` mode. Default `0.85`. Parsed from
864
+ * `correctionCapture.confidenceFloor` / `correctionCaptureConfidenceFloor`.
865
+ */
866
+ correctionCaptureConfidenceFloor: number;
867
+ /**
868
+ * Maximum affected memories for auto-apply (issue #1581). Plans touching more
869
+ * memories than this are queued even in `"auto"` mode — a blast-radius cap.
870
+ * Default `2`. Parsed from `correctionCapture.autoApplyMaxAffected` /
871
+ * `correctionCaptureAutoApplyMaxAffected`.
872
+ */
873
+ correctionCaptureAutoApplyMaxAffected: number;
874
+ /**
875
+ * Master gate for the tombstone non-resurrection invariant. When `true`
876
+ * (default), a fact that matches an active tombstone at the storage
877
+ * chokepoint is persisted as `status: "pending_review"` + `blockedBy`
878
+ * instead of becoming active — visible, never a silent drop (rule 34).
879
+ * When `false`, pre-feature behavior: the chokepoint check is a no-op and
880
+ * retired facts can resurrect through re-extraction / import / consolidation
881
+ * / dreams / pattern-reinforcement. Off = rollback safety (rule 30).
882
+ */
883
+ tombstonesEnabled: boolean;
884
+ /**
885
+ * Tier-4 semantic tombstone matching (issue #1579). Off by default — ships
886
+ * dark until MemCorrect (#1584) shows an acceptable false-block rate
887
+ * (rule 48). When `true`, the tombstone lookup also checks embedding cosine
888
+ * similarity against tombstoned normalized text.
889
+ */
890
+ tombstonesSemanticMatch: boolean;
891
+ /**
892
+ * Cosine threshold for tier-4 semantic tombstone matching. Default `0.9`.
893
+ * Only consulted when `tombstonesSemanticMatch` is `true`.
894
+ */
895
+ tombstonesSemanticThreshold: number;
896
+ /**
897
+ * When true, recall checks whether a single validated memory in a
898
+ * high-trust taxonomy bucket can answer the query before invoking QMD.
899
+ * Default false — enable explicitly after bench validation.
900
+ */
901
+ recallDirectAnswerEnabled: boolean;
902
+ /** Recall state views (issue #1952): label current/historical/transition on change-intent queries. Default false. */
903
+ recallStateViews: boolean;
904
+ /** Standing memory block (issue #2971): byte-stable pinned-memory index injected before per-turn recall; parsed now, injection lands in a later slice. Default false. */
905
+ recallStandingBlock: boolean;
906
+ /** Days a memory stays in the standing block's full-text fresh band. Default 14. */
907
+ standingBlockFreshDays: number;
908
+ /** Hard character budget for the standing memory block. Default 2048. */
909
+ standingBlockMaxChars: number;
910
+ /**
911
+ * Disclosure auto-escalation policy (issue #677 PR 4/4). `"auto"`
912
+ * escalates chunk → section when top-K confidence falls below
913
+ * {@link recallDisclosureEscalationThreshold}. Default `"manual"`.
914
+ */
915
+ recallDisclosureEscalation: "manual" | "auto";
916
+ /**
917
+ * Top-K confidence threshold (in `[0, 1]`) below which auto-escalation
918
+ * promotes `chunk` → `section`. Only consulted when
919
+ * {@link recallDisclosureEscalation} is `"auto"`. Default `0.5`.
920
+ */
921
+ recallDisclosureEscalationThreshold: number;
922
+ /**
923
+ * Graph-based retrieval tier via Personalized PageRank (issue #559 PR 4).
924
+ * When true, recall builds a retrieval graph from memory frontmatter
925
+ * and runs PPR, merging the result with QMD via MMR. Default false —
926
+ * ships off pending the retrieval-graph bench in PR 5.
927
+ */
928
+ recallGraphEnabled: boolean;
929
+ /** PPR damping factor used when `recallGraphEnabled` is true. */
930
+ recallGraphDamping: number;
931
+ /** PPR power-iteration cap used when `recallGraphEnabled` is true. */
932
+ recallGraphIterations: number;
933
+ /**
934
+ * Max memories returned by the graph tier before MMR. Set to 0 to
935
+ * disable the graph tier's contribution without flipping the flag.
936
+ */
937
+ recallGraphTopK: number;
938
+ /**
939
+ * Minimum token-overlap ratio (query tokens ∩ memory tokens / query tokens)
940
+ * required for direct-answer eligibility. Set to 0 to disable the gate.
941
+ */
942
+ recallDirectAnswerTokenOverlapFloor: number;
943
+ /**
944
+ * Minimum calibrated importance score required for direct-answer
945
+ * eligibility. Set to 0 to disable the gate.
946
+ */
947
+ recallDirectAnswerImportanceFloor: number;
948
+ /**
949
+ * Ambiguity margin: if the second-best candidate scores within this
950
+ * ratio of the top candidate, direct-answer defers to the hybrid tier.
951
+ */
952
+ recallDirectAnswerAmbiguityMargin: number;
953
+ /**
954
+ * Taxonomy category IDs eligible for direct-answer routing. Memories
955
+ * whose resolved taxonomy category is not in this list never qualify.
956
+ */
957
+ recallDirectAnswerEligibleTaxonomyBuckets: string[];
958
+ /** Cross-namespace query-budget limiter (issue #565 PR 4/5): throttle a
959
+ * principal's cross-namespace recall burst past the hard limit. Default false. */
960
+ recallCrossNamespaceBudgetEnabled: boolean;
961
+ /** Rolling window in milliseconds over which cross-namespace reads are counted. */
962
+ recallCrossNamespaceBudgetWindowMs: number;
963
+ /**
964
+ * Soft threshold — the first point at which the limiter flags a burst.
965
+ * Calls are still allowed; anomaly detection (issue #565 PR 5) will
966
+ * surface the warning.
967
+ */
968
+ recallCrossNamespaceBudgetSoftLimit: number;
969
+ /** Hard threshold — calls past this count are denied in the window. */
970
+ recallCrossNamespaceBudgetHardLimit: number;
971
+ /** Max concurrent recalls per principal; `0` = unlimited. Default 4 (#1906). */
972
+ recallMaxConcurrentPerPrincipal: number;
973
+ /** Coalesce identical concurrent recalls per principal; each caller gets its own clone. Default true. */
974
+ recallSingleFlightEnabled: boolean;
975
+ /**
976
+ * When true, recall multiplies candidate scores by the Memory Worth factor
977
+ * from `mw_success` / `mw_fail` (see `computeMemoryWorth`): failed memories
978
+ * sink; neutral ones untouched (multiplier 1.0). Default false until the
979
+ * benchmark shows precision tie-or-win.
980
+ */
981
+ recallMemoryWorthFilterEnabled: boolean;
982
+ /**
983
+ * When false, the Trust/Memory-Worth recall stage skips its corpus-level
984
+ * fallback (a per-namespace `readAllMemories`-derived counter/signal map)
985
+ * and relies only on frontmatter already loaded on the hot recall path plus
986
+ * a bounded-parallel per-candidate direct read — fully O(candidates)
987
+ * (issue #1905). Default true keeps the corpus fallback reachable.
988
+ */
989
+ recallTrustStageCorpusFallbackEnabled: boolean;
990
+ /**
991
+ * Serve `StorageManager.readAllMemories()` from a version-keyed in-process
992
+ * cache of the full parsed corpus (issue #1902). Default true. When on, a
993
+ * scan-once-then-serve fast path eliminates the repeated full-corpus disk
994
+ * scans that dominate post-write recall latency on large collections
995
+ * (~99K files); coherence is preserved by the on-disk
996
+ * `.memory-corpus-version.log` sentinel (distinct from `.memory-status`,
997
+ * which is kept separate so plain creates don't invalidate the entity cache)
998
+ * and patch-on-write updates. Tradeoff: the cache holds
999
+ * one full-corpus entry per baseDir (hundreds of MB at ~99K files, already
1000
+ * resident in the OS page cache). Set false to force disk scans on
1001
+ * memory-constrained hosts — behavior then matches the pre-#1902 pure
1002
+ * disk-scan + in-flight-dedup path exactly. Version invalidation is the
1003
+ * primary correctness mechanism; `hotMemoriesCacheTtlMs` is a bounded safety
1004
+ * net for external (user/git/editor) edits that bypass the sentinel.
1005
+ */
1006
+ hotMemoriesCacheEnabled: boolean;
1007
+ /**
1008
+ * Max age (ms) a version-keyed hot-cache entry is served before a fresh disk
1009
+ * scan (issue #1902). The version sentinel gives immediate coherence for
1010
+ * writers that go through StorageManager or bumpMemoryCorpusVersionForDir, but
1011
+ * direct filesystem edits (manual, git checkout, external tools) don't bump
1012
+ * it — this TTL bounds how long such an edit can be stale. Default 60000 (60s).
1013
+ * Set 0 to disable the TTL (version invalidation only; max perf for
1014
+ * pure-daemon deployments with no external edits).
1015
+ */
1016
+ hotMemoriesCacheTtlMs: number;
1017
+ /**
1018
+ * Scope-aware cache invalidation (issue #1904). When true (default), a memory
1019
+ * write evicts only the cache layers it can actually affect — a plain fact
1020
+ * `create` no longer nukes the global QMD result caches or the version-keyed
1021
+ * entity cache, so continuous extraction stops keeping every cache
1022
+ * permanently cold. Set false to restore the pre-#1904 behavior of clearing
1023
+ * every layer on every write (rollback lever; no featureset change).
1024
+ */
1025
+ scopedCacheInvalidationEnabled: boolean;
1026
+ /**
1027
+ * Master gate for the unified TrustScore recall stage. Default `false`: off
1028
+ * = the stage is absent and ranking is byte-identical to the pre-feature
1029
+ * pipeline (rule 39). Flip via #1574 ablation evidence only.
1030
+ */
1031
+ trustScoreEnabled: boolean;
1032
+ /** Append epistemic hedge suffixes to injected memory lines. Separate gate. */
1033
+ trustScoreEpistemicRendering: boolean;
1034
+ /**
1035
+ * Exclude hard-negative (quarantine-band) items from injection. Default
1036
+ * `true`; only effective under the master gate. Quarantined items stay
1037
+ * visible in X-ray with a reason (rule 34).
1038
+ */
1039
+ trustScoreQuarantine: boolean;
1040
+ /** Lower bound of the trust multiplier (default 0.5). */
1041
+ trustScoreMinMultiplier: number;
1042
+ /** Upper bound of the trust multiplier (default 1.25). */
1043
+ trustScoreMaxMultiplier: number;
1044
+ /** Per-component weights for the TrustScore blend; invalid weights rejected at parse. */
1045
+ trustScoreWeights: TrustWeights;
1046
+ /**
1047
+ * Recall-audit anomaly detector (issue #565 PR 5/5). When true,
1048
+ * access surfaces run the anomaly detector over a tail of the audit
1049
+ * trail after each recall and surface any flags via logs / metrics.
1050
+ * Ships disabled.
1051
+ */
1052
+ recallAuditAnomalyDetectionEnabled: boolean;
1053
+ /** Rolling window over which audit entries are analyzed. */
1054
+ recallAuditAnomalyWindowMs: number;
1055
+ /** Threshold for the `repeat-query` flag. */
1056
+ recallAuditAnomalyRepeatQueryLimit: number;
1057
+ /** Threshold for the `namespace-walk` flag (distinct namespaces). */
1058
+ recallAuditAnomalyNamespaceWalkLimit: number;
1059
+ /** Threshold for the `high-cardinality-return` flag. */
1060
+ recallAuditAnomalyHighCardinalityLimit: number;
1061
+ /** Threshold for the `rapid-fire` flag. */
1062
+ recallAuditAnomalyRapidFireLimit: number;
1063
+ /**
1064
+ * Optional half-life for Memory Worth decay, in milliseconds. When
1065
+ * positive, older outcome observations are exponentially decayed toward
1066
+ * the uniform prior. Set to 0 (default) to disable decay and use raw
1067
+ * counter values.
1068
+ */
1069
+ recallMemoryWorthHalfLifeMs: number;
1070
+ memoryLinkingEnabled: boolean;
1071
+ threadingEnabled: boolean;
1072
+ threadingGapMinutes: number;
1073
+ summarizationEnabled: boolean;
1074
+ summarizationTriggerCount: number;
1075
+ summarizationRecentToKeep: number;
1076
+ summarizationImportanceThreshold: number;
1077
+ summarizationProtectedTags: string[];
1078
+ topicExtractionEnabled: boolean;
1079
+ topicExtractionTopN: number;
1080
+ transcriptEnabled: boolean;
1081
+ transcriptRetentionDays: number;
1082
+ /** Channel types to skip from transcript logging (e.g., ["cron"]) */
1083
+ transcriptSkipChannelTypes: string[];
1084
+ transcriptRecallHours: number;
1085
+ maxTranscriptTurns: number;
1086
+ maxTranscriptTokens: number;
1087
+ checkpointEnabled: boolean;
1088
+ checkpointTurns: number;
1089
+ compactionResetEnabled: boolean;
1090
+ beforeResetTimeoutMs: number;
1091
+ initGateTimeoutMs: number;
1092
+ flushOnResetEnabled: boolean;
1093
+ commandsListEnabled: boolean;
1094
+ openclawToolsEnabled: boolean;
1095
+ openclawToolSnippetMaxChars: number;
1096
+ openclawMessageReceivedCaptureEnabled: boolean;
1097
+ openclawReplyMetadataCaptureEnabled: boolean;
1098
+ openclawReplyMetadataExtractionHintsEnabled: boolean;
1099
+ openclawChannelEnvelopeCleaningEnabled: boolean;
1100
+ sessionTogglesEnabled: boolean;
1101
+ verboseRecallVisibility: boolean;
1102
+ recallTranscriptsEnabled: boolean;
1103
+ recallTranscriptRetentionDays: number;
1104
+ respectBundledActiveMemoryToggle: boolean;
1105
+ activeRecallEnabled: boolean;
1106
+ activeRecallAgents: string[] | null;
1107
+ activeRecallAllowedChatTypes: ActiveRecallChatType[];
1108
+ activeRecallQueryMode: ActiveRecallQueryMode;
1109
+ activeRecallPromptStyle: ActiveRecallPromptStyle;
1110
+ activeRecallCustomInstruction: string | null;
1111
+ activeRecallPromptReplacement: string | null;
1112
+ activeRecallPromptOverride: string | null;
1113
+ activeRecallPromptAppend: string | null;
1114
+ activeRecallMaxSummaryChars: number;
1115
+ activeRecallRecentUserTurns: number;
1116
+ activeRecallRecentAssistantTurns: number;
1117
+ activeRecallRecentUserChars: number;
1118
+ activeRecallRecentAssistantChars: number;
1119
+ activeRecallThinking: ActiveRecallThinking;
1120
+ activeRecallTimeoutMs: number;
1121
+ activeRecallCacheTtlMs: number;
1122
+ activeRecallModel: string | null;
1123
+ activeRecallModelFallbackPolicy: ActiveRecallModelFallbackPolicy;
1124
+ activeRecallPersistTranscripts: boolean;
1125
+ activeRecallTranscriptDir: string;
1126
+ activeRecallEntityGraphDepth: number;
1127
+ activeRecallIncludeCausalTrajectories: boolean;
1128
+ activeRecallIncludeDaySummary: boolean;
1129
+ activeRecallAttachRecallExplain: boolean;
1130
+ activeRecallAllowChainedActiveMemory: boolean;
1131
+ dreaming: DreamingConfig;
1132
+ /**
1133
+ * Unified dreams-phases config block (issue #678 PR 2/4).
1134
+ * Groups existing lifecycle, REM, and deep-sleep gates under one namespace.
1135
+ * Values here WIN over equivalent legacy top-level keys when set. See docs/dreams.md.
1136
+ */
1137
+ dreamsPhases: DreamsPhasesConfig;
1138
+ procedural: ProceduralConfig;
1139
+ /** Session-end experience extraction (issue #2979). Default off. */
1140
+ sessionExperience: SessionExperienceConfig;
1141
+ extractionLiveness: ExtractionLivenessConfig;
1142
+ /** Span-mode extraction (#2333 Phase B, bench-gated). Default off. */
1143
+ extraction: ExtractionSpanConfig;
1144
+ replicaPeers: ReplicaPeersConfig;
1145
+ converge: ConvergeConfig;
1146
+ /** Claim-level provenance spans (#1575); see `ProvenanceConfig` for defaults. */
1147
+ provenance: ProvenanceConfig;
1148
+ wearables: WearablesConfig;
1149
+ activity: ActivityConfig;
1150
+ meetings: MeetingsConfig;
1151
+ location: LocationConfig;
1152
+ okf: OkfConfig;
1153
+ /**
1154
+ * At-rest encryption configuration (issue #690 PR 3/4).
1155
+ * When `secureStoreEnabled` is true, `StorageManager` reads and
1156
+ * writes memory files through the `secure-fs` encryption layer.
1157
+ * The store must be unlocked via `remnic secure-store unlock` before
1158
+ * any recall or store operations will succeed.
1159
+ *
1160
+ * When `secureStoreEncryptOnWrite` is true (the default when enabled),
1161
+ * every new memory write is encrypted. Set to false to pause new
1162
+ * encryptions while still being able to decrypt existing files.
1163
+ */
1164
+ secureStoreEnabled: boolean;
1165
+ /** Encrypt new writes when the secure-store is unlocked. Default true. */
1166
+ secureStoreEncryptOnWrite: boolean;
1167
+ codingMode: CodingModeConfig;
1168
+ codingKnowledge: CodingKnowledgeConfig;
1169
+ /** Action-site failure gate (issue #2382). Off by default; advisory only. */
1170
+ actionGate: ActionGateConfig;
1171
+ heartbeat: HeartbeatConfig;
1172
+ chat: ChatConfig;
1173
+ /** Owner-controlled support passport. Off by default. */
1174
+ supportPassport: SupportPassportConfig;
1175
+ slotBehavior: SlotBehaviorConfig;
1176
+ /** OpenClaw bridge mode (#2120): `"embedded"` (default) or `"delegate"`. */
1177
+ bridgeMode: string;
1178
+ codexCompat: CodexCompatConfig;
1179
+ /** When true (default), LLM classifies facts as `"project"` or `"global"` scope for promotion across projects. */
1180
+ extractionScopeClassificationEnabled: boolean;
1181
+ subjectClassification: {
1182
+ enabled: boolean;
1183
+ };
1184
+ subjectGuard: SubjectGuardMode;
1185
+ /** Min accessCount reuse signal for promotion candidates (issue #2372). Default 3. */
1186
+ promotionCandidates: {
1187
+ minAccessCount: number;
1188
+ };
1189
+ /** Enable the LLM-as-judge fact-worthiness gate on extracted facts. Default false (opt-in). */
1190
+ extractionJudgeEnabled: boolean;
1191
+ /** Model override for the judge LLM. Empty string means use the local model. */
1192
+ extractionJudgeModel: string;
1193
+ /** Maximum number of candidate facts per judge LLM batch call. */
1194
+ extractionJudgeBatchSize: number;
1195
+ /** Shadow mode: log judge verdicts but do not filter facts. Default false. */
1196
+ extractionJudgeShadow: boolean;
1197
+ /**
1198
+ * Maximum number of times the same candidate text may be deferred before
1199
+ * the judge forcibly converts the verdict to `"reject"`. Prevents
1200
+ * pathological LLM responses from looping forever on ambiguous facts.
1201
+ * Defaults to 2 (issue #562, PR 2).
1202
+ */
1203
+ extractionJudgeMaxDeferrals: number;
1204
+ /**
1205
+ * Emit structured telemetry rows to
1206
+ * `state/observation-ledger/extraction-judge-verdicts.jsonl` on every
1207
+ * judge verdict. Off by default; enable to collect defer-rate / latency
1208
+ * metrics for operator dashboards (issue #562, PR 3).
1209
+ */
1210
+ extractionJudgeTelemetryEnabled: boolean;
1211
+ /**
1212
+ * Collect `(candidate_text, verdict_kind, reason)` tuples into
1213
+ * `~/.remnic/judge-training/<date>.jsonl` for use by a future GRPO
1214
+ * training pipeline (issue #562, PR 4). Off by default. Rows live in
1215
+ * the user's home directory rather than the shared memory directory so
1216
+ * they are not committed, sync'd, or bundled into memory exports.
1217
+ */
1218
+ collectJudgeTrainingPairs: boolean;
1219
+ /**
1220
+ * Override directory for judge training-pair collection. Empty string
1221
+ * means use the default (`~/.remnic/judge-training`). Primarily for
1222
+ * tests and for operators who want the output to land in a specific
1223
+ * location.
1224
+ */
1225
+ judgeTrainingDir: string;
1226
+ /** Gate mode: "off" (default, byte-identical pre-feature), "shadow" (record only), "enforce" (route to pending_review). */
1227
+ extractionFaithfulnessGate: "off" | "shadow" | "enforce";
1228
+ /** Override model name; empty string = default routing chain. */
1229
+ extractionFaithfulnessModel: string;
1230
+ /**
1231
+ * Base URL of a local openai-compatible endpoint serving a fine-tuned
1232
+ * faithfulness gate (issue #1585 model-lab), e.g.
1233
+ * `http://localhost:11434/v1` (Ollama) or `http://localhost:8000/v1` (vLLM).
1234
+ * Empty string (default) preserves the existing routing chain exactly;
1235
+ * set together with `extractionFaithfulnessModel` to route the gate to the
1236
+ * local model first, falling back to the chain on failure.
1237
+ */
1238
+ extractionFaithfulnessBaseUrl: string;
1239
+ /** Context window (chars) around the quote sent to the verifier. Default 400. */
1240
+ extractionFaithfulnessContextChars: number;
1241
+ /** Per-batch timeout in ms; timeout → tagged error, never blocks writes. Default 8000. */
1242
+ extractionFaithfulnessTimeoutMs: number;
1243
+ /**
1244
+ * Resilient-fallback toggle for the local model-lab endpoint (issue #1700
1245
+ * nit #6). When the local endpoint returns 200 with non-verdict JSON, the
1246
+ * default (false) surfaces `malformed_output` so a misconfigured endpoint is
1247
+ * visible to the operator. Set true to instead fall back to the configured
1248
+ * chain on local parse failure (pre-validated via parseFaithfulnessResponse).
1249
+ */
1250
+ extractionFaithfulnessLocalParseFallback: boolean;
1251
+ /**
1252
+ * Correction-intent model-lab pointer (issue #1581 / #1585). When both this
1253
+ * and `correctionIntentBaseUrl` are set, the detection path can route to a
1254
+ * local fine-tuned correction-intent classifier. Empty default keeps the
1255
+ * rule-based passive-correction detector as the sole path (byte-identical).
1256
+ */
1257
+ correctionIntentModel: string;
1258
+ /** Base URL of a local openai-compatible endpoint serving the correction-intent classifier (issue #1585). Empty default = rule-based detection. */
1259
+ correctionIntentBaseUrl: string;
1260
+ hourlySummariesEnabled: boolean;
1261
+ daySummaryEnabled: boolean;
1262
+ /** Timezone override for the day summary cron (issue #1475). */
1263
+ daySummaryTimezone?: string;
1264
+ /** If true, Engram may attempt to auto-register an hourly summary cron job (default off). */
1265
+ hourlySummaryCronAutoRegister: boolean;
1266
+ /** If true, Engram may attempt to auto-register the nightly governance cron job (default off). */
1267
+ nightlyGovernanceCronAutoRegister: boolean;
1268
+ summaryRecallHours: number;
1269
+ maxSummaryCount: number;
1270
+ summaryModel: string;
1271
+ hourlySummariesExtendedEnabled: boolean;
1272
+ hourlySummariesIncludeToolStats: boolean;
1273
+ hourlySummariesIncludeSystemMessages: boolean;
1274
+ hourlySummariesMaxTurnsPerRun: number;
1275
+ conversationIndexEnabled: boolean;
1276
+ conversationIndexBackend: "qmd" | "faiss";
1277
+ conversationIndexQmdCollection: string;
1278
+ conversationIndexRetentionDays: number;
1279
+ conversationIndexMinUpdateIntervalMs: number;
1280
+ conversationIndexEmbedOnUpdate: boolean;
1281
+ conversationIndexFaissScriptPath?: string;
1282
+ conversationIndexFaissPythonBin?: string;
1283
+ conversationIndexFaissModelId: string;
1284
+ conversationIndexFaissIndexDir: string;
1285
+ conversationIndexFaissUpsertTimeoutMs: number;
1286
+ conversationIndexFaissSearchTimeoutMs: number;
1287
+ conversationIndexFaissHealthTimeoutMs: number;
1288
+ conversationIndexFaissMaxBatchSize: number;
1289
+ conversationIndexFaissMaxSearchK: number;
1290
+ conversationRecallTopK: number;
1291
+ conversationRecallMaxChars: number;
1292
+ conversationRecallTimeoutMs: number;
1293
+ evalHarnessEnabled: boolean;
1294
+ evalShadowModeEnabled: boolean;
1295
+ benchmarkBaselineSnapshotsEnabled: boolean;
1296
+ benchmarkDeltaReporterEnabled: boolean;
1297
+ benchmarkStoredBaselineEnabled: boolean;
1298
+ evalStoreDir: string;
1299
+ objectiveStateMemoryEnabled: boolean;
1300
+ objectiveStateSnapshotWritesEnabled: boolean;
1301
+ objectiveStateRecallEnabled: boolean;
1302
+ objectiveStateStoreDir: string;
1303
+ causalTrajectoryMemoryEnabled: boolean;
1304
+ causalTrajectoryStoreDir: string;
1305
+ causalTrajectoryRecallEnabled: boolean;
1306
+ actionGraphRecallEnabled: boolean;
1307
+ trustZonesEnabled: boolean;
1308
+ quarantinePromotionEnabled: boolean;
1309
+ trustZoneStoreDir: string;
1310
+ trustZoneRecallEnabled: boolean;
1311
+ memoryPoisoningDefenseEnabled: boolean;
1312
+ memoryRedTeamBenchEnabled: boolean;
1313
+ harmonicRetrievalEnabled: boolean;
1314
+ abstractionAnchorsEnabled: boolean;
1315
+ abstractionNodeStoreDir: string;
1316
+ episodicContextEnabled: boolean;
1317
+ verifiedRecallEnabled: boolean;
1318
+ semanticRulePromotionEnabled: boolean;
1319
+ semanticRuleVerificationEnabled: boolean;
1320
+ semanticConsolidationEnabled: boolean;
1321
+ semanticConsolidationModel: string;
1322
+ semanticConsolidationThreshold: number;
1323
+ semanticConsolidationMinClusterSize: number;
1324
+ semanticConsolidationExcludeCategories: string[];
1325
+ semanticConsolidationIntervalHours: number;
1326
+ semanticConsolidationMaxPerRun: number;
1327
+ /**
1328
+ * When true (default), semantic-consolidation prompts the LLM with an
1329
+ * operator-aware format asking for JSON `{operator, output}` and records
1330
+ * the resulting SPLIT/MERGE/UPDATE operator on `derived_via`. When
1331
+ * false, falls back to the legacy plain-text prompt — `derived_via` is
1332
+ * still populated via the cluster-shape heuristic in
1333
+ * `chooseConsolidationOperator`. Issue #561 PR 3.
1334
+ */
1335
+ operatorAwareConsolidationEnabled: boolean;
1336
+ /**
1337
+ * When true, the pattern-reinforcement maintenance job runs on its
1338
+ * configured cadence and clusters duplicate non-procedural memories
1339
+ * by normalized content. Clusters with `>= patternReinforcementMinCount`
1340
+ * members produce a canonical (most-recent) memory tagged with
1341
+ * `reinforcement_count` + `last_reinforced_at`; the older duplicates
1342
+ * are marked `superseded` and pointed at the canonical. Default
1343
+ * `false` — opt-in until bench validation lands.
1344
+ */
1345
+ patternReinforcementEnabled: boolean;
1346
+ /**
1347
+ * Minimum interval (ms) between pattern-reinforcement runs. Default
1348
+ * `7 * 24 * 60 * 60 * 1000` (7 days). Set to `0` to disable cadence
1349
+ * gating (useful for tests / manual invocation).
1350
+ */
1351
+ patternReinforcementCadenceMs: number;
1352
+ /**
1353
+ * Minimum cluster size before pattern reinforcement promotes a
1354
+ * canonical and supersedes duplicates. Default `3`. Clamped to
1355
+ * `>= 2` at config-parse time — a "cluster of 1" is just a single
1356
+ * memory and a "cluster of 0" is meaningless.
1357
+ */
1358
+ patternReinforcementMinCount: number;
1359
+ /**
1360
+ * Memory categories the pattern-reinforcement job considers.
1361
+ * Default `["preference", "fact", "decision"]`. The job
1362
+ * intentionally skips procedural memories so it stays disjoint from
1363
+ * the procedural mining pipeline.
1364
+ */
1365
+ patternReinforcementCategories: string[];
1366
+ /** issue #687 PR 3/4: opt-in recall score boost for reinforced memories. Default false. */
1367
+ reinforcementRecallBoostEnabled: boolean;
1368
+ /** Score bonus per unit of reinforcement_count. Range [0, 1]. Default 0.05. */
1369
+ reinforcementRecallBoostWeight: number;
1370
+ /** Maximum additive reinforcement boost per result. Range [0, 1]. Default 0.3. */
1371
+ reinforcementRecallBoostMax: number;
1372
+ /**
1373
+ * Async peer profile reasoner — issue #679 PR 2/5.
1374
+ *
1375
+ * Default `false` (opt-in). When enabled, the reasoner runs after
1376
+ * `runSemanticConsolidation` (the REM phase of the dreams pipeline)
1377
+ * and updates per-peer profile.md files with provenance-tagged
1378
+ * field updates derived from the peer's interaction log.
1379
+ */
1380
+ peerProfileReasonerEnabled: boolean;
1381
+ /**
1382
+ * Model identifier used by the peer profile reasoner. Logged for
1383
+ * telemetry only — actual dispatch is via the same FallbackLlmClient
1384
+ * the orchestrator uses for semantic consolidation. Default `gpt-5.5`.
1385
+ */
1386
+ peerProfileReasonerModel: string;
1387
+ /**
1388
+ * Minimum new interaction-log entries a peer must accumulate since
1389
+ * the previous reasoner run before being processed again. Default 5.
1390
+ * Setting to 0 forces every run to consider every peer.
1391
+ */
1392
+ peerProfileReasonerMinInteractions: number;
1393
+ /**
1394
+ * Hard cap on the total number of profile fields the reasoner will
1395
+ * apply across all peers in a single run. Default 8.
1396
+ */
1397
+ peerProfileReasonerMaxFieldsPerRun: number;
1398
+ /**
1399
+ * When true, inject the active peer's profile fields into the recall
1400
+ * context as a "## Peer Profile" section. Default false (opt-in,
1401
+ * Gotcha #30/#48 — least-privileged default). Requires the session's
1402
+ * peer ID to be registered via `setPeerIdForSession` before recall.
1403
+ */
1404
+ peerProfileRecallEnabled: boolean;
1405
+ /**
1406
+ * Maximum number of peer profile fields to inject per recall. Only
1407
+ * the most-recently-updated N fields are included to keep the context
1408
+ * budget predictable. Default 5. Setting to 0 disables field
1409
+ * injection even when `peerProfileRecallEnabled` is true.
1410
+ */
1411
+ peerProfileRecallMaxFields: number;
1412
+ creationMemoryEnabled: boolean;
1413
+ memoryUtilityLearningEnabled: boolean;
1414
+ promotionByOutcomeEnabled: boolean;
1415
+ commitmentLedgerEnabled: boolean;
1416
+ commitmentLifecycleEnabled: boolean;
1417
+ commitmentStaleDays: number;
1418
+ commitmentLedgerDir: string;
1419
+ resumeBundlesEnabled: boolean;
1420
+ resumeBundleDir: string;
1421
+ workProductRecallEnabled: boolean;
1422
+ workProductLedgerDir: string;
1423
+ workTasksEnabled: boolean;
1424
+ workProjectsEnabled: boolean;
1425
+ workTasksDir: string;
1426
+ workProjectsDir: string;
1427
+ workIndexEnabled: boolean;
1428
+ workIndexDir: string;
1429
+ workTaskIndexEnabled: boolean;
1430
+ workProjectIndexEnabled: boolean;
1431
+ workIndexAutoRebuildEnabled: boolean;
1432
+ workIndexAutoRebuildDebounceMs: number;
1433
+ /** If true, log slow operations (local LLM + related I/O) with durations and metadata (no content). */
1434
+ slowLogEnabled: boolean;
1435
+ /**
1436
+ * If true, include the full recalled memory text in `RecallTraceEvent.recalledContent`.
1437
+ * Disabled by default — enable only when you want external trace subscribers (e.g. Langfuse)
1438
+ * to see the exact memory context injected into each conversation turn.
1439
+ * This adds payload to trace events but does not log to files or the gateway log.
1440
+ */
1441
+ traceRecallContent: boolean;
1442
+ /** Threshold for slow operation logging (ms). */
1443
+ slowLogThresholdMs: number;
1444
+ /** If true, collect and persist timing traces for recall and extraction pipelines. */
1445
+ profilingEnabled: boolean;
1446
+ /** Directory for profiling trace JSONL files. Defaults to <memoryDir>/profiling. */
1447
+ profilingStorageDir: string;
1448
+ /** Maximum number of trace files to keep (rolling window). */
1449
+ profilingMaxTraces: number;
1450
+ extractionDedupeEnabled: boolean;
1451
+ extractionSourceGroundingEnabled: boolean;
1452
+ extractionDedupeWindowMs: number;
1453
+ extractionMinChars: number;
1454
+ extractionMinUserTurns: number;
1455
+ /**
1456
+ * When true, skip semantic memory extraction for mechanical action/state
1457
+ * telemetry transcripts that have no durable-memory cue. Raw transcript
1458
+ * storage/recall still runs; this only prevents expensive low-value fact
1459
+ * extraction over state logs. Default true.
1460
+ */
1461
+ extractionTelemetryPrefilterEnabled: boolean;
1462
+ /**
1463
+ * When true, LCM uses deterministic compression instead of semantic LLM
1464
+ * summarization for mechanical action/state telemetry transcripts with no
1465
+ * durable-memory cue. Raw transcript storage/recall still runs. Default true.
1466
+ */
1467
+ lcmTelemetryPrefilterEnabled: boolean;
1468
+ extractionMaxTurnChars: number;
1469
+ extractionMaxFactsPerRun: number;
1470
+ extractionMaxEntitiesPerRun: number;
1471
+ extractionMaxQuestionsPerRun: number;
1472
+ extractionMaxProfileUpdatesPerRun: number;
1473
+ /**
1474
+ * Minimum importance level required to persist an extracted fact. Facts
1475
+ * whose locally-scored level falls below this threshold are dropped before
1476
+ * write and counted toward the `importance_gated` metric. Defaults to
1477
+ * "low" so trivial content (greetings, single-word replies, filler) is
1478
+ * silently dropped while everything else still passes.
1479
+ */
1480
+ extractionMinImportanceLevel: ImportanceLevel;
1481
+ /**
1482
+ * Inline source attribution (issue #369).
1483
+ * When enabled, extracted facts carry a compact provenance tag (agent,
1484
+ * session, timestamp) inlined into the fact text — not just in YAML
1485
+ * frontmatter — so the citation survives hostile memory text, copy/paste,
1486
+ * and LLM quoting. Off by default to preserve backwards compatibility
1487
+ * with existing downstream consumers that expect raw fact text.
1488
+ */
1489
+ inlineSourceAttributionEnabled: boolean;
1490
+ /**
1491
+ * Template used when injecting inline citations. Supported placeholders:
1492
+ * `{agent}`, `{session}`, `{sessionId}`, `{ts}`, `{date}`. Defaults to
1493
+ * `[Source: agent={agent}, session={sessionId}, ts={ts}]`.
1494
+ */
1495
+ inlineSourceAttributionFormat: string;
1496
+ /**
1497
+ * Prior citation templates still recognized after a format change.
1498
+ * Empty when the operator has never changed the template.
1499
+ */
1500
+ inlineSourceAttributionFormatHistory: string[];
1501
+ consolidationRequireNonZeroExtraction: boolean;
1502
+ consolidationMinIntervalMs: number;
1503
+ qmdMaintenanceEnabled: boolean;
1504
+ qmdMaintenanceDebounceMs: number;
1505
+ /**
1506
+ * Namespace-aware maintenance fanout (issue #1500). When namespaces are
1507
+ * enabled, background maintenance jobs use the rebuildable namespace catalog
1508
+ * to discover dynamic project/team namespaces rather than only processing the
1509
+ * configured default/shared/policy set.
1510
+ */
1511
+ maintenanceNamespaceFanoutEnabled: boolean;
1512
+ maintenanceMaxNamespacesPerCycle: number;
1513
+ maintenanceIncludeProjectNamespaces: boolean;
1514
+ maintenanceIncludeBranchNamespaces: boolean;
1515
+ maintenanceIncludeTeamProjectNamespaces: boolean;
1516
+ maintenanceNamespaceLockStaleMs: number;
1517
+ qmdAutoEmbedEnabled: boolean;
1518
+ qmdEmbedMinIntervalMs: number;
1519
+ qmdUpdateTimeoutMs: number;
1520
+ qmdUpdateMinIntervalMs: number;
1521
+ localLlmRetry5xxCount: number;
1522
+ localLlmRetryBackoffMs: number;
1523
+ localLlm400TripThreshold: number;
1524
+ localLlm400CooldownMs: number;
1525
+ /** Ollama-backend thinking suppression: `reasoning_effort` value injected on
1526
+ * `/v1/chat/completions` for THINKING_SUPPRESSED_OPERATIONS ("none" | "low" |
1527
+ * "medium" | "high" | "max"; "" disables injection). Ollama ignores
1528
+ * `chat_template_kwargs`, so this is the only think-off dialect it honors.
1529
+ * Issue #1996. */
1530
+ localLlmReasoningEffort: string;
1531
+ /**
1532
+ * Maximum transcript length that re-enables thinking for local extraction.
1533
+ * Set to `0` to keep thinking suppressed for every extraction. Default:
1534
+ * `3000`. Consolidation is unaffected.
1535
+ */
1536
+ localLlmThinkingThresholdChars: number;
1537
+ /** Master gate. When false, restores pre-change behavior (extractor called on every triggered observe; no gate). */
1538
+ extractionRetryEnabled: boolean;
1539
+ /** Per-fingerprint exponential backoff schedule (ms), indexed by attempt number. */
1540
+ extractionRetryScheduleMs: number[];
1541
+ /** Upper bound on any single backoff interval (ms). */
1542
+ extractionRetryMaxBackoffMs: number;
1543
+ /** Jitter ratio applied to each backoff interval (±ratio). */
1544
+ extractionRetryJitterRatio: number;
1545
+ /** Max attempts for a `parse_empty` fingerprint before it is long-parked. */
1546
+ extractionParseEmptyMaxAttempts: number;
1547
+ /** Consecutive provider failures before the circuit breaker opens. */
1548
+ extractionBreakerFailureThreshold: number;
1549
+ /** Breaker open cooldown (ms) for transient provider failures. */
1550
+ extractionBreakerCooldownMs: number;
1551
+ /** Breaker open cooldown (ms) for auth/config failures (longer — provider is misconfigured). */
1552
+ extractionBreakerAuthCooldownMs: number;
1553
+ localLlmFastEnabled: boolean;
1554
+ localLlmFastModel: string;
1555
+ localLlmFastUrl: string;
1556
+ localLlmFastTimeoutMs: number;
1557
+ /**
1558
+ * Suppress chain-of-thought / thinking mode on the main local LLM
1559
+ * (issue #548). When true, Remnic injects
1560
+ * `chat_template_kwargs: { enable_thinking: false }` on every
1561
+ * request so thinking-capable models (Qwen 3.5, Gemma 4, DeepSeek,
1562
+ * etc.) skip reasoning tokens that structured-output tasks like
1563
+ * extraction and consolidation cannot benefit from. Default: true
1564
+ * — the dominant localLlm use case is JSON-shaped extraction where
1565
+ * thinking is pure latency tax and a common cause of 60s timeouts.
1566
+ * Set to false to restore thinking for narrative tasks.
1567
+ *
1568
+ * The fast-tier client (`fastLlm`) always disables thinking; that
1569
+ * contract is baked into "fast tier" and is unaffected by this flag.
1570
+ */
1571
+ localLlmDisableThinking: boolean;
1572
+ gatewayConfig?: GatewayConfig;
1573
+ /**
1574
+ * Optional host-supplied resolver for provider API keys. Core never discovers
1575
+ * host runtimes directly; adapters inject their native secret resolver here.
1576
+ */
1577
+ providerApiKeyResolver?: (params: {
1578
+ provider: string;
1579
+ cfg?: unknown;
1580
+ agentDir?: string;
1581
+ }) => Promise<{
1582
+ apiKey?: string;
1583
+ source?: string;
1584
+ mode?: string;
1585
+ } | null>;
1586
+ /**
1587
+ * Optional host-supplied resolver for request-ready model auth, including
1588
+ * provider transforms such as OAuth token exchange or base URL overrides.
1589
+ */
1590
+ runtimeAuthForModelResolver?: (params: {
1591
+ model: {
1592
+ provider: string;
1593
+ id: string;
1594
+ api?: string;
1595
+ baseUrl?: string;
1596
+ };
1597
+ cfg?: unknown;
1598
+ workspaceDir?: string;
1599
+ }) => Promise<{
1600
+ apiKey?: string;
1601
+ baseUrl?: string;
1602
+ source?: string;
1603
+ mode?: string;
1604
+ profileId?: string;
1605
+ } | null>;
1606
+ modelSource: "plugin" | "gateway";
1607
+ gatewayAgentId: string;
1608
+ fastGatewayAgentId: string;
1609
+ /**
1610
+ * Optional task-specific model chain for Remnic's background LLM work —
1611
+ * extraction, the extraction judge, fact/profile/identity consolidation,
1612
+ * summarization, semantic consolidation, calibration, and causal
1613
+ * consolidation. When set, this chain is resolved through gateway providers
1614
+ * instead of using gatewayAgentId or agents.defaults.model. All task paths
1615
+ * route through the shared `gatewayTaskChainOptions` helper.
1616
+ * LCM summarization is the one fast-tier exception: if `fastGatewayAgentId`
1617
+ * is configured, LCM uses that persona before falling back to this chain.
1618
+ *
1619
+ * Only takes effect when `modelSource: "gateway"`; ignored (with a startup
1620
+ * warning) under `modelSource: "plugin"`. See issue #1365 / PR #1370.
1621
+ */
1622
+ taskModelChain?: AgentPersonaModelConfig;
1623
+ namespacesEnabled: boolean;
1624
+ /**
1625
+ * Enable the rebuildable namespace catalog (issue #1499). When enabled and
1626
+ * `namespacesEnabled` is also true, storage resolution and read/write paths
1627
+ * record cheap, failure-tolerant namespace touches in
1628
+ * `<memoryDir>/state/namespaces.jsonl`. The catalog is downstream metadata —
1629
+ * filesystem memory remains the source of truth, and the catalog is fully
1630
+ * rebuildable from disk via `remnic namespaces rebuild`. The catalog is inert
1631
+ * (a no-op that enumerates nothing) whenever `namespacesEnabled` is false, so
1632
+ * existing single-namespace behavior is unchanged. Default on.
1633
+ */
1634
+ namespaceCatalogEnabled: boolean;
1635
+ /**
1636
+ * Size (bytes) at which a namespace-catalog touch triggers an in-lock
1637
+ * auto-compaction of `state/namespaces.jsonl` (issue #1903). The append-only
1638
+ * log grows one line per touch; once it exceeds this many bytes the next
1639
+ * touch folds it (last-record-wins, every namespace row preserved) and
1640
+ * atomically rewrites it. Default `16 * 1024 * 1024` (16 MB). `0` disables
1641
+ * auto-compaction (restores the pre-#1903 unbounded-append behavior).
1642
+ */
1643
+ namespacesCatalogCompactBytes: number;
1644
+ /**
1645
+ * Coalescing window (ms) for pure-timestamp READ touches on an
1646
+ * already-known namespace record (issue #1903). Repeated `markRead` touches
1647
+ * that only refresh `lastReadAt` are buffered per (namespace, kind) and
1648
+ * flushed once per window instead of appending a line each time.
1649
+ * Semantically-observable touches (first sight, provenance/field changes)
1650
+ * always flush immediately. Default `60000`. `0` disables read coalescing
1651
+ * (each touch appends immediately, the pre-#1903 behavior).
1652
+ */
1653
+ namespacesCatalogReadTouchCoalesceMs: number;
1654
+ /**
1655
+ * Coalescing window (ms) for pure-timestamp WRITE touches on an
1656
+ * already-known namespace record (issue #1903). Mirrors
1657
+ * `namespacesCatalogReadTouchCoalesceMs` for `markWrite`/`lastWriteAt`.
1658
+ * Default `1000`. `0` disables write coalescing.
1659
+ */
1660
+ namespacesCatalogWriteTouchCoalesceMs: number;
1661
+ /**
1662
+ * Whether pure state-file writes (`state/buffer.json`, ledgers, indexes)
1663
+ * touch the namespace catalog (issue #1903). State files are not namespace
1664
+ * memory data, so by default their writes do NOT record a catalog touch.
1665
+ * Set `true` to restore the pre-#1903 behavior where every secure-file
1666
+ * write touched the catalog. Default `false`.
1667
+ */
1668
+ namespacesCatalogTouchStateWrites: boolean;
1669
+ defaultNamespace: string;
1670
+ sharedNamespace: string;
1671
+ principalFromSessionKeyMode: PrincipalFromSessionKeyMode;
1672
+ principalFromSessionKeyRules: PrincipalRule[];
1673
+ namespacePolicies: NamespacePolicy[];
1674
+ defaultRecallNamespaces: Array<"self" | "shared">;
1675
+ scopeProfiles: Record<string, ScopeProfileConfig>;
1676
+ defaultScopeProfile: string | undefined;
1677
+ teams: Record<string, ScopeTeamConfig>;
1678
+ cronRecallMode: CronRecallMode;
1679
+ cronRecallAllowlist: string[];
1680
+ cronRecallPolicyEnabled: boolean;
1681
+ cronRecallNormalizedQueryMaxChars: number;
1682
+ cronRecallInstructionHeavyTokenCap: number;
1683
+ cronConversationRecallMode: CronConversationRecallMode;
1684
+ autoPromoteToSharedEnabled: boolean;
1685
+ autoPromoteToSharedCategories: Array<"fact" | "correction" | "decision" | "preference">;
1686
+ autoPromoteMinConfidenceTier: ConfidenceTier;
1687
+ routingRulesEnabled: boolean;
1688
+ routingRulesStateFile: string;
1689
+ sharedContextEnabled: boolean;
1690
+ sharedContextDir?: string;
1691
+ sharedContextMaxInjectChars: number;
1692
+ sharedContextAllowBindingAuthority: boolean;
1693
+ crossSignalsSemanticEnabled: boolean;
1694
+ crossSignalsSemanticTimeoutMs: number;
1695
+ sharedCrossSignalSemanticEnabled?: boolean;
1696
+ sharedCrossSignalSemanticTimeoutMs?: number;
1697
+ sharedCrossSignalSemanticMaxCandidates?: number;
1698
+ compoundingEnabled: boolean;
1699
+ compoundingWeeklyCronEnabled: boolean;
1700
+ compoundingSemanticEnabled: boolean;
1701
+ compoundingSynthesisTimeoutMs: number;
1702
+ compoundingInjectEnabled: boolean;
1703
+ ircEnabled: boolean;
1704
+ ircMaxPreferences: number;
1705
+ ircIncludeCorrections: boolean;
1706
+ ircMinConfidence: number;
1707
+ cmcEnabled: boolean;
1708
+ cmcStitchLookbackDays: number;
1709
+ cmcStitchMinScore: number;
1710
+ cmcStitchMaxEdgesPerTrajectory: number;
1711
+ cmcConsolidationEnabled: boolean;
1712
+ cmcConsolidationMinRecurrence: number;
1713
+ cmcConsolidationMinSessions: number;
1714
+ cmcConsolidationSuccessThreshold: number;
1715
+ cmcRetrievalEnabled: boolean;
1716
+ cmcRetrievalMaxDepth: number;
1717
+ cmcRetrievalMaxChars: number;
1718
+ cmcRetrievalCounterfactualBoost: number;
1719
+ cmcBehaviorLearningEnabled: boolean;
1720
+ cmcBehaviorMinFrequency: number;
1721
+ cmcBehaviorMinSessions: number;
1722
+ cmcBehaviorConfidenceThreshold: number;
1723
+ cmcLifecycleCausalImpactWeight: number;
1724
+ calibrationEnabled: boolean;
1725
+ calibrationMaxRulesPerRecall: number;
1726
+ calibrationMaxChars: number;
1727
+ searchBackend?: "qmd" | "remote" | "noop" | "lancedb" | "meilisearch" | "orama";
1728
+ remoteSearchBaseUrl?: string;
1729
+ remoteSearchApiKey?: string;
1730
+ remoteSearchTimeoutMs?: number;
1731
+ lancedbEnabled: boolean;
1732
+ lanceDbPath?: string;
1733
+ lanceEmbeddingDimension?: number;
1734
+ meilisearchEnabled: boolean;
1735
+ meilisearchHost?: string;
1736
+ meilisearchApiKey?: string;
1737
+ meilisearchTimeoutMs?: number;
1738
+ meilisearchAutoIndex?: boolean;
1739
+ oramaEnabled: boolean;
1740
+ oramaDbPath?: string;
1741
+ oramaEmbeddingDimension?: number;
1742
+ /** Segment space-free scripts (CJK/Thai) in the Orama lexical index (issue #2187). Default `true`. */
1743
+ oramaCjkSegmentation?: boolean;
1744
+ qmdDaemonEnabled: boolean;
1745
+ qmdDaemonUrl: string;
1746
+ qmdDaemonRecheckIntervalMs: number;
1747
+ qmdIntentHintsEnabled: boolean;
1748
+ qmdExplainEnabled: boolean;
1749
+ knowledgeIndexEnabled: boolean;
1750
+ knowledgeIndexMaxEntities: number;
1751
+ knowledgeIndexMaxChars: number;
1752
+ entityRetrievalEnabled: boolean;
1753
+ entityRetrievalMaxChars: number;
1754
+ entityRetrievalMaxHints: number;
1755
+ entityRetrievalMaxSupportingFacts: number;
1756
+ entityRetrievalMaxRelatedEntities: number;
1757
+ entityRetrievalRecentTurns: number;
1758
+ entitySchemas?: Record<string, EntitySchemaDefinition>;
1759
+ recallBudgetChars: number;
1760
+ /** Maximum fraction of the total recall budget that the behavioral profile may consume. */
1761
+ recallProfileMaxRatio: number;
1762
+ recallOuterTimeoutMs: number;
1763
+ recallCoreDeadlineMs: number;
1764
+ recallEnrichmentDeadlineMs: number;
1765
+ recallPipeline: RecallSectionConfig[];
1766
+ /** Apply Maximal Marginal Relevance to the final recall selection per-section. */
1767
+ recallMmrEnabled: boolean;
1768
+ /** MMR λ parameter. 1.0 = pure relevance, 0.0 = pure diversity. Default 0.7. */
1769
+ recallMmrLambda: number;
1770
+ /** MMR is applied over the top N candidates per section. Default 40. */
1771
+ recallMmrTopN: number;
1772
+ /**
1773
+ * Boost stored `reasoning_trace` memories in recall results when the
1774
+ * incoming query reads like a problem-solving ask (e.g. "how do I…",
1775
+ * "step by step", "walk me through…"). Default false — opt in after
1776
+ * benchmarking (issue #564 PR 3).
1777
+ */
1778
+ recallReasoningTraceBoostEnabled: boolean;
1779
+ /**
1780
+ * Issue #1582 — append stable short handles (`[m:4f2a]`) to injected memory
1781
+ * lines at recall render time. Default false: off = byte-identical injection
1782
+ * (rule 39). Token cost ~9 chars/memory; flip the default only with #1574
1783
+ * evidence that answer quality is unaffected (rule 55).
1784
+ */
1785
+ recallMemoryHandles: boolean;
1786
+ /**
1787
+ * Issue #1582 — how many recent per-session recall snapshots (newest first)
1788
+ * handle resolution searches. Older-than-N snapshots are not searched and a
1789
+ * miss is tagged rather than widening the window.
1790
+ */
1791
+ recallHandleSnapshotDepth: number;
1792
+ qmdRecallCacheTtlMs: number;
1793
+ qmdRecallCacheStaleTtlMs: number;
1794
+ qmdRecallCacheMaxEntries: number;
1795
+ entityRelationshipsEnabled: boolean;
1796
+ entityActivityLogEnabled: boolean;
1797
+ entityActivityLogMaxEntries: number;
1798
+ entityAliasesEnabled: boolean;
1799
+ entitySummaryEnabled: boolean;
1800
+ entitySynthesisMaxTokens: number;
1801
+ /** Enable content-hash deduplication to prevent storing semantically identical facts. */
1802
+ factDeduplicationEnabled: boolean;
1803
+ semanticDedupEnabled: boolean;
1804
+ semanticDedupThreshold: number;
1805
+ semanticDedupCandidates: number;
1806
+ semanticMerge: SemanticMergeConfig;
1807
+ noveltyGateEnabled: boolean;
1808
+ noveltyAddThreshold: number;
1809
+ noveltyNoopThreshold: number;
1810
+ /** Enable automatic archival of old, low-importance, rarely-accessed facts. */
1811
+ factArchivalEnabled: boolean;
1812
+ /** Minimum age in days before a fact is eligible for archival. */
1813
+ factArchivalAgeDays: number;
1814
+ /** Maximum importance score for archival eligibility (0-1). Only facts below this are archived. */
1815
+ factArchivalMaxImportance: number;
1816
+ /** Maximum access count for archival eligibility. Only rarely-accessed facts are archived. */
1817
+ factArchivalMaxAccessCount: number;
1818
+ /** Tags that protect a fact from archival regardless of other criteria. */
1819
+ factArchivalProtectedCategories: string[];
1820
+ lifecyclePolicyEnabled: boolean;
1821
+ lifecycleFilterStaleEnabled: boolean;
1822
+ lifecyclePromoteHeatThreshold: number;
1823
+ lifecycleStaleDecayThreshold: number;
1824
+ lifecycleArchiveDecayThreshold: number;
1825
+ lifecycleProtectedCategories: MemoryCategory[];
1826
+ lifecycleMetricsEnabled: boolean;
1827
+ proactiveExtractionEnabled: boolean;
1828
+ contextCompressionActionsEnabled: boolean;
1829
+ compressionGuidelineLearningEnabled: boolean;
1830
+ compressionGuidelineSemanticRefinementEnabled: boolean;
1831
+ compressionGuidelineSemanticTimeoutMs: number;
1832
+ maxProactiveQuestionsPerExtraction: number;
1833
+ proactiveExtractionTimeoutMs: number;
1834
+ proactiveExtractionSkipWhenLocalLlmBusy: boolean;
1835
+ proactiveExtractionMaxTokens: number;
1836
+ extractionMaxOutputTokens: number;
1837
+ proactiveExtractionCategoryAllowlist?: MemoryCategory[];
1838
+ maxCompressionTokensPerHour: number;
1839
+ behaviorLoopAutoTuneEnabled: boolean;
1840
+ behaviorLoopLearningWindowDays: number;
1841
+ behaviorLoopMinSignalCount: number;
1842
+ behaviorLoopMaxDeltaPerCycle: number;
1843
+ behaviorLoopProtectedParams: string[];
1844
+ recallPlannerEnabled: boolean;
1845
+ /**
1846
+ * Opt-in gate for LLM-based recall planning (issue #1367 / Option C). When
1847
+ * false (the default) recall mode is decided by the regex heuristic
1848
+ * `planRecallMode()`. When true, the planner consults an LLM (routed through
1849
+ * the gateway/fallback chain — provider-agnostic) and falls back to the
1850
+ * heuristic on timeout/error/unavailable. `recallPlannerShadowMode` runs the
1851
+ * LLM for telemetry only without changing the effective mode.
1852
+ */
1853
+ recallPlannerLlmEnabled: boolean;
1854
+ recallPlannerModel: string;
1855
+ recallPlannerTimeoutMs: number;
1856
+ recallPlannerUseResponsesApi: boolean;
1857
+ recallPlannerMaxPromptChars: number;
1858
+ recallPlannerMaxMemoryHints: number;
1859
+ recallPlannerShadowMode: boolean;
1860
+ recallPlannerTelemetryEnabled: boolean;
1861
+ recallPlannerMaxQmdResultsMinimal: number;
1862
+ recallPlannerMaxQmdResultsFull: number;
1863
+ intentRoutingEnabled: boolean;
1864
+ intentRoutingBoost: number;
1865
+ verbatimArtifactsEnabled: boolean;
1866
+ verbatimArtifactsMinConfidence: number;
1867
+ verbatimArtifactsMaxRecall: number;
1868
+ verbatimArtifactCategories: MemoryCategory[];
1869
+ memoryBoxesEnabled: boolean;
1870
+ /** Jaccard overlap threshold below which a topic shift triggers box sealing (0-1, default 0.35) */
1871
+ boxTopicShiftThreshold: number;
1872
+ /** Time gap in ms before an open box is sealed (default 30 min) */
1873
+ boxTimeGapMs: number;
1874
+ /** Max memories per box before forced seal */
1875
+ boxMaxMemories: number;
1876
+ traceWeaverEnabled: boolean;
1877
+ /** Days back to search for trace links */
1878
+ traceWeaverLookbackDays: number;
1879
+ /** Minimum Jaccard overlap to assign the same traceId (0-1, default 0.4) */
1880
+ traceWeaverOverlapThreshold: number;
1881
+ /** Number of recent days of boxes to inject during recall */
1882
+ boxRecallDays: number;
1883
+ /** Classify extracted memories as episode or note and tag with memoryKind */
1884
+ episodeNoteModeEnabled: boolean;
1885
+ /** Build and maintain temporal (state/index_time.json) and tag (state/index_tags.json) indexes */
1886
+ queryAwareIndexingEnabled: boolean;
1887
+ /** Max candidate paths returned from index prefilter (0 = no cap) */
1888
+ queryAwareIndexingMaxCandidates: number;
1889
+ temporalIndexWindowDays: number;
1890
+ temporalIndexMaxEntries: number;
1891
+ temporalBoostRecentDays: number;
1892
+ temporalBoostScore: number;
1893
+ temporalDecayEnabled: boolean;
1894
+ tagMemoryEnabled: boolean;
1895
+ tagMaxPerMemory: number;
1896
+ tagIndexMaxEntries: number;
1897
+ tagRecallBoost: number;
1898
+ tagRecallMaxMatches: number;
1899
+ multiGraphMemoryEnabled: boolean;
1900
+ graphEdgeCacheIncrementalEnabled: boolean;
1901
+ graphRecallEnabled: boolean;
1902
+ graphRecallMaxExpansions: number;
1903
+ graphRecallMaxPerSeed: number;
1904
+ graphRecallMinEdgeWeight: number;
1905
+ graphRecallShadowEnabled: boolean;
1906
+ graphRecallSnapshotEnabled: boolean;
1907
+ graphRecallShadowSampleRate: number;
1908
+ graphRecallExplainToolEnabled: boolean;
1909
+ graphRecallStoreColdMirror: boolean;
1910
+ graphRecallColdMirrorCollection?: string;
1911
+ graphRecallColdMirrorMinAgeDays: number;
1912
+ graphRecallUseEntityPriors: boolean;
1913
+ graphRecallEntityPriorBoost: number;
1914
+ graphRecallPreferHubSeeds: boolean;
1915
+ graphRecallHubBias: number;
1916
+ graphRecallRecencyHalfLifeDays: number;
1917
+ graphRecallDampingFactor: number;
1918
+ graphRecallMaxSeedNodes: number;
1919
+ graphRecallMaxExpandedNodes: number;
1920
+ graphRecallMaxTrailPerNode: number;
1921
+ graphRecallMinSeedScore: number;
1922
+ graphRecallExpansionScoreThreshold: number;
1923
+ graphRecallExplainMaxPaths: number;
1924
+ graphRecallExplainMaxChars: number;
1925
+ graphRecallExplainEdgeLimit: number;
1926
+ graphRecallExplainEnabled: boolean;
1927
+ graphRecallEntityHintsEnabled: boolean;
1928
+ graphRecallEntityHintMax: number;
1929
+ graphRecallEntityHintMaxChars: number;
1930
+ graphRecallSnapshotDir: string;
1931
+ graphRecallEnableTrace: boolean;
1932
+ graphRecallEnableDebug: boolean;
1933
+ /** Allow graph_mode escalation for broader causal/timeline phrasing beyond strict keywords. */
1934
+ graphExpandedIntentEnabled?: boolean;
1935
+ /** Run bounded graph expansion in full mode when enough recall seeds exist. */
1936
+ graphAssistInFullModeEnabled?: boolean;
1937
+ /** In full mode, compute graph assist for telemetry/snapshotting but do not inject merged results. */
1938
+ graphAssistShadowEvalEnabled?: boolean;
1939
+ /** Minimum seed results required before full-mode graph assist runs. */
1940
+ graphAssistMinSeedResults?: number;
1941
+ entityGraphEnabled: boolean;
1942
+ timeGraphEnabled: boolean;
1943
+ /** When true, write fallback temporal adjacency edges for consecutive extracted memories. */
1944
+ graphWriteSessionAdjacencyEnabled?: boolean;
1945
+ causalGraphEnabled: boolean;
1946
+ maxGraphTraversalSteps: number;
1947
+ graphActivationDecay: number;
1948
+ graphPathScoring: GraphPathScoringConfig;
1949
+ /** Weight of graph activation score when blending with seed QMD score (0-1). */
1950
+ graphExpansionActivationWeight: number;
1951
+ /** Lower bound for blended graph-expanded recall scores (0-1). */
1952
+ graphExpansionBlendMin: number;
1953
+ /** Upper bound for blended graph-expanded recall scores (0-1). */
1954
+ graphExpansionBlendMax: number;
1955
+ maxEntityGraphEdgesPerMemory: number;
1956
+ /** SimpleMem-inspired de-linearization: resolve pronouns and anchor relative dates after extraction. */
1957
+ delinearizeEnabled: boolean;
1958
+ /** Synapse-inspired confidence gate — skip memory injection when top score is below threshold. */
1959
+ recallConfidenceGateEnabled: boolean;
1960
+ recallConfidenceGateThreshold: number;
1961
+ /** PlugMem-inspired causal rule extraction: mine IF→THEN rules during consolidation. */
1962
+ causalRuleExtractionEnabled: boolean;
1963
+ /** E-Mem-inspired memory reconstruction: targeted retrieval for missing entity context. */
1964
+ memoryReconstructionEnabled: boolean;
1965
+ /** Maximum number of entity expansions per recall. */
1966
+ memoryReconstructionMaxExpansions: number;
1967
+ /** Synapse-inspired lateral inhibition to suppress hub-node dominance. */
1968
+ graphLateralInhibitionEnabled: boolean;
1969
+ /** Inhibition strength (default 0.15). Higher = more suppression. */
1970
+ graphLateralInhibitionBeta: number;
1971
+ /** Number of top competing nodes considered for inhibition (default 7). */
1972
+ graphLateralInhibitionTopM: number;
1973
+ /** Enable the periodic graph-edge confidence decay job. Default false (opt-in). */
1974
+ graphEdgeDecayEnabled: boolean;
1975
+ /** Cadence in milliseconds at which the cron triggers the decay job. Default 7d. */
1976
+ graphEdgeDecayCadenceMs: number;
1977
+ /** Decay window passed through to `decayEdgeConfidence`. Default 90 days. */
1978
+ graphEdgeDecayWindowMs: number;
1979
+ /** Per-window confidence drop. Default 0.1. */
1980
+ graphEdgeDecayPerWindow: number;
1981
+ /** Floor confidence will not decay below. Default 0.1. */
1982
+ graphEdgeDecayFloor: number;
1983
+ /** Confidence threshold for the "below visibility" telemetry counter. Default 0.2. */
1984
+ graphEdgeDecayVisibilityThreshold: number;
1985
+ /**
1986
+ * Enable the maintenance-scheduled rebuild of `state/memory-projection.sqlite`.
1987
+ * The projection is otherwise rebuild-only (manual CLI / tests), so it rots as
1988
+ * the lifecycle ledger grows and timeline/browse consumers silently regress to
1989
+ * full-corpus fallback scans. Default true — mirrors lifecycle-ledger
1990
+ * auto-compaction, which is likewise enabled-by-default to keep a state file
1991
+ * healthy. Set false to disable (operators can still cron the CLI rebuild).
1992
+ */
1993
+ projectionRebuildEnabled: boolean;
1994
+ /**
1995
+ * Minimum interval between scheduled projection rebuilds. A rebuild is skipped
1996
+ * when the projection's `rebuiltAt` meta is younger than this, so a burst of
1997
+ * maintenance requests cannot fan into back-to-back rebuilds. Floored at 60s.
1998
+ * Default 6h (matches memoryLifecycleLedgerCompactMinIntervalMs).
1999
+ */
2000
+ projectionRebuildIntervalMs: number;
2001
+ /**
2002
+ * Issue #681 PR 3/3 — minimum edge confidence to traverse during spreading
2003
+ * activation. Edges below are pruned (no activation, no downstream neighbors);
2004
+ * legacy edges without `confidence` are treated as 1.0. Range `[0, 1]`; default `0.2`.
2005
+ */
2006
+ graphTraversalConfidenceFloor: number;
2007
+ /**
2008
+ * Issue #681 PR 3/3 — number of PageRank-style refinement iterations applied
2009
+ * on top of the BFS spreading-activation scores. Each iteration redistributes
2010
+ * a node's confidence-weighted activation along its outgoing edges. Set to 0
2011
+ * to disable refinement and use raw BFS scores. Default `8`.
2012
+ */
2013
+ graphTraversalPageRankIterations: number;
2014
+ temporalMemoryTreeEnabled: boolean;
2015
+ tmtHourlyMinMemories: number;
2016
+ tmtSummaryMaxTokens: number;
2017
+ /** Front-load exact stored evidence for query-visible cues like turns, dates, ids, files, and tools. */
2018
+ explicitCueRecallEnabled: boolean;
2019
+ /** Character budget for the explicit cue evidence section. */
2020
+ explicitCueRecallMaxChars: number;
2021
+ /** Maximum query-visible cues expanded per recall. */
2022
+ explicitCueRecallMaxReferences: number;
2023
+ /** Enable targeted fact evidence recall for direct answer questions. */
2024
+ targetedFactRecallEnabled: boolean;
2025
+ /** Character budget for the targeted fact evidence section. */
2026
+ targetedFactRecallMaxChars: number;
2027
+ /** Maximum recalled items for targeted fact evidence. */
2028
+ targetedFactRecallMaxResults: number;
2029
+ /** Recent-turn scan window for targeted fact evidence. */
2030
+ targetedFactRecallScanWindowTurns: number;
2031
+ /** Recent-token scan window for targeted fact evidence. */
2032
+ targetedFactRecallScanWindowTokens: number;
2033
+ /** Enable focused list evidence recall for count, relation, and recommendation questions. */
2034
+ focusedListRecallEnabled: boolean;
2035
+ /** Character budget for the focused list evidence section. */
2036
+ focusedListRecallMaxChars: number;
2037
+ /** Maximum recalled items for focused list evidence. */
2038
+ focusedListRecallMaxResults: number;
2039
+ /** Recent-turn scan window for focused list evidence. */
2040
+ focusedListRecallScanWindowTurns: number;
2041
+ /** Recent-token scan window for focused list evidence. */
2042
+ focusedListRecallScanWindowTokens: number;
2043
+ /** Enable response guidance recall for user answer-shape preferences. */
2044
+ responseGuidanceRecallEnabled: boolean;
2045
+ /** Character budget for the response guidance recall section. */
2046
+ responseGuidanceRecallMaxChars: number;
2047
+ /** Maximum recalled items for response guidance. */
2048
+ responseGuidanceRecallMaxResults: number;
2049
+ /** Recent-turn scan window for response guidance. */
2050
+ responseGuidanceRecallScanWindowTurns: number;
2051
+ /** Recent-token scan window for response guidance. */
2052
+ responseGuidanceRecallScanWindowTokens: number;
2053
+ /** Enable event-order evidence recall for chronology questions. */
2054
+ eventOrderRecallEnabled: boolean;
2055
+ /** Character budget for the event-order evidence section. */
2056
+ eventOrderRecallMaxChars: number;
2057
+ /** Maximum recalled items for event-order evidence. */
2058
+ eventOrderRecallMaxResults: number;
2059
+ /** Recent-turn scan window for event-order evidence. */
2060
+ eventOrderRecallScanWindowTurns: number;
2061
+ /** Recent-token scan window for event-order evidence. */
2062
+ eventOrderRecallScanWindowTokens: number;
2063
+ lcmEnabled: boolean;
2064
+ lcmLeafBatchSize: number;
2065
+ lcmRollupFanIn: number;
2066
+ lcmFreshTailTurns: number;
2067
+ lcmMaxDepth: number;
2068
+ lcmRecallBudgetShare: number;
2069
+ lcmDeterministicMaxTokens: number;
2070
+ lcmArchiveRetentionDays: number;
2071
+ /** Max independent LCM observe jobs to process concurrently. Default 1. */
2072
+ lcmObserveConcurrency: number;
2073
+ /** Opt-in structured message-part capture/recall sidecar for LCM. Default false. */
2074
+ messagePartsEnabled: boolean;
2075
+ /** Max structured file/tool matches injected into recall. */
2076
+ messagePartsRecallMaxResults: number;
2077
+ /** Enable three-agent parallel retrieval (DirectFact + Contextual + Temporal). Default false. */
2078
+ parallelRetrievalEnabled: boolean;
2079
+ /** Per-agent source weights for score blending during merge. */
2080
+ parallelAgentWeights: {
2081
+ direct: number;
2082
+ contextual: number;
2083
+ temporal: number;
2084
+ };
2085
+ /** Max results fetched per agent before merge. */
2086
+ parallelMaxResultsPerAgent: number;
2087
+ /** Briefing configuration knobs — see BriefingConfig for field docs. */
2088
+ briefing: BriefingConfig;
2089
+ codex: CodexConnectorConfig;
2090
+ connectors: LiveConnectorsConfig;
2091
+ /** Enable the MECE taxonomy knowledge directory. Default false. */
2092
+ taxonomyEnabled: boolean;
2093
+ /** Auto-regenerate RESOLVER.md when taxonomy changes. Default true. */
2094
+ taxonomyAutoGenResolver: boolean;
2095
+ /** Materialize Remnic memories into Codex's expected ~/.codex/memories/ layout. Default true. */
2096
+ codexMaterializeMemories: boolean;
2097
+ /** Namespace to materialize; "auto" derives from the connector context. Default "auto". */
2098
+ codexMaterializeNamespace: string;
2099
+ /** Max estimated-token size of memory_summary.md. Default 4500. */
2100
+ codexMaterializeMaxSummaryTokens: number;
2101
+ /** Max age in days for rollout_summaries/*.md before pruning. Default 30. */
2102
+ codexMaterializeRolloutRetentionDays: number;
2103
+ /** Run materialization after semantic/causal consolidation completes. Default true. */
2104
+ codexMaterializeOnConsolidation: boolean;
2105
+ /** Run materialization at Codex session-end hook. Default true. */
2106
+ codexMaterializeOnSessionEnd: boolean;
2107
+ /** Enable Codex marketplace integration. Default true. */
2108
+ codexMarketplaceEnabled: boolean;
2109
+ /** Enable page-level versioning with sidecar snapshots. Default false. */
2110
+ versioningEnabled: boolean;
2111
+ /** Maximum number of version snapshots to keep per page. Default 50. Set to 0 to disable pruning. */
2112
+ versioningMaxPerPage: number;
2113
+ /** Name of the sidecar directory inside memoryDir. Default ".versions". */
2114
+ versioningSidecarDir: string;
2115
+ /** Enable binary file lifecycle management (mirror, redirect, clean). Default: false. */
2116
+ binaryLifecycleEnabled: boolean;
2117
+ /** Grace period in days before a mirrored binary is eligible for local cleanup. Default: 7. */
2118
+ binaryLifecycleGracePeriodDays: number;
2119
+ /** Storage backend type: "filesystem" copies to a local dir, "none" is no-op. Default: "none". */
2120
+ binaryLifecycleBackendType: "filesystem" | "s3" | "none";
2121
+ /** Base path for the filesystem backend. Required when backendType is "filesystem". */
2122
+ binaryLifecycleBackendPath: string;
2123
+ /**
2124
+ * Advertise legacy `engram_*` / `engram.*` MCP tool aliases alongside the
2125
+ * canonical `remnic_*` names (issue #1427). Default true for backward
2126
+ * compatibility. Set false to halve the advertised MCP `tools/list` surface;
2127
+ * tools stay callable under both names regardless. Also settable via
2128
+ * `REMNIC_EMIT_LEGACY_TOOLS` (falls back to `ENGRAM_EMIT_LEGACY_TOOLS`).
2129
+ */
2130
+ emitLegacyTools: boolean;
2131
+ /** Enable oai-mem-citation blocks in recall responses. Default false. */
2132
+ citationsEnabled: boolean;
2133
+ /** Auto-enable citations when the Codex adapter is detected. Default true. */
2134
+ citationsAutoDetect: boolean;
2135
+ /** Enable the external enrichment pipeline. Default false. */
2136
+ enrichmentEnabled: boolean;
2137
+ /** Automatically enrich new entities on creation. Default false. */
2138
+ enrichmentAutoOnCreate: boolean;
2139
+ /** Max candidates accepted per entity per enrichment run. Default 20. */
2140
+ enrichmentMaxCandidatesPerEntity: number;
2141
+ /** Whether third-party memory extensions are discovered and injected into consolidation. Default true. */
2142
+ memoryExtensionsEnabled: boolean;
2143
+ /**
2144
+ * Root directory for memory extensions. Empty string means derive from
2145
+ * memoryDir: go up to the Remnic home dir and append memory_extensions.
2146
+ */
2147
+ memoryExtensionsRoot: string;
2148
+ /**
2149
+ * Operator-supplied glob patterns (relative to the memory dir, `*` and
2150
+ * `**` supported) excluded from offline-sync push-side enumeration IN
2151
+ * ADDITION to the built-in node-local state excludes. Validated at
2152
+ * config parse time; invalid entries reject the config loudly.
2153
+ */
2154
+ offlineSyncExcludes: string[];
2155
+ }
2156
+ import type { SemanticMergeConfig } from "./semantic-merge-config.js";
2157
+ export type { SemanticMergeConfig };
2158
+ /** Runtime configuration for the daily context briefing feature. */
2159
+ export interface BriefingConfig {
2160
+ /** Whether `remnic briefing` CLI and MCP tool are enabled. */
2161
+ enabled: boolean;
2162
+ /** Default lookback window token (e.g. "yesterday", "3d", "1w", "24h"). */
2163
+ defaultWindow: string;
2164
+ /** Default output format for the CLI. */
2165
+ defaultFormat: "markdown" | "json";
2166
+ /** Maximum number of LLM-generated suggested follow-ups. */
2167
+ maxFollowups: number;
2168
+ /** Optional path to an ICS or JSON calendar file. null disables the section. */
2169
+ calendarSource: string | null;
2170
+ /** If true, CLI writes a dated briefing file by default. */
2171
+ saveByDefault: boolean;
2172
+ /** Override directory for saved briefings. null → $REMNIC_HOME/briefings/. */
2173
+ saveDir: string | null;
2174
+ /** Whether to call the Responses API for follow-up suggestions. */
2175
+ llmFollowups: boolean;
2176
+ }
2177
+ /** Parsed representation of a briefing lookback window. */
2178
+ export type BriefingWindow = "yesterday" | "today" | string;
2179
+ /** Filter the briefing to a single entity / project / topic. */
2180
+ export interface BriefingFocus {
2181
+ type: "person" | "project" | "topic";
2182
+ value: string;
2183
+ }
2184
+ /** Calendar event surfaced by a CalendarSource implementation. */
2185
+ export interface CalendarEvent {
2186
+ /** Stable identifier for dedupe / linking. */
2187
+ id: string;
2188
+ /** Event title (short). */
2189
+ title: string;
2190
+ /** ISO 8601 start timestamp. */
2191
+ start: string;
2192
+ /** Optional ISO 8601 end timestamp. */
2193
+ end?: string;
2194
+ /** Optional freeform location. */
2195
+ location?: string;
2196
+ /** Optional short notes. */
2197
+ notes?: string;
2198
+ }
2199
+ /** Abstraction over any calendar backend. Concrete implementations: `FileCalendarSource`. */
2200
+ export interface CalendarSource {
2201
+ /** Return events that fall on the given UTC date (YYYY-MM-DD). */
2202
+ eventsForDate(dateIso: string): Promise<CalendarEvent[]>;
2203
+ }
2204
+ /** A single "active thread" surfaced in a briefing. */
2205
+ export interface BriefingActiveThread {
2206
+ id: string;
2207
+ title: string;
2208
+ updatedAt: string;
2209
+ reason: string;
2210
+ }
2211
+ /** A single "recent entity" entry. */
2212
+ export interface BriefingRecentEntity {
2213
+ name: string;
2214
+ type: string;
2215
+ updatedAt: string;
2216
+ score: number;
2217
+ summary?: string;
2218
+ }
2219
+ /** A single unresolved commitment or open question. */
2220
+ export interface BriefingOpenCommitment {
2221
+ id: string;
2222
+ kind: "question" | "commitment" | "pending_memory";
2223
+ text: string;
2224
+ source?: string;
2225
+ createdAt?: string;
2226
+ }
2227
+ /** An LLM-generated short follow-up suggestion. */
2228
+ export interface BriefingFollowup {
2229
+ text: string;
2230
+ rationale?: string;
2231
+ }
2232
+ /** Structured sections of a briefing result. */
2233
+ export interface BriefingSections {
2234
+ activeThreads: BriefingActiveThread[];
2235
+ recentEntities: BriefingRecentEntity[];
2236
+ openCommitments: BriefingOpenCommitment[];
2237
+ suggestedFollowups: BriefingFollowup[];
2238
+ /** Only populated when a calendar source is configured and returns events. */
2239
+ todayCalendar?: CalendarEvent[];
2240
+ }
2241
+ /** A calendar source failure recorded when a CalendarSource throws during briefing generation. */
2242
+ export interface BriefingCalendarSourceError {
2243
+ /** Human-readable description of the source (e.g. file path or source name). */
2244
+ source: string;
2245
+ /** Stringified error message from the failed source. */
2246
+ error: string;
2247
+ }
2248
+ /** Result returned by `buildBriefing`. */
2249
+ export interface BriefingResult {
2250
+ markdown: string;
2251
+ json: Record<string, unknown>;
2252
+ sections: BriefingSections;
2253
+ /** Reason why suggested follow-ups were omitted (e.g. missing API key, LLM error). */
2254
+ followupsUnavailableReason?: string;
2255
+ /** Effective lookback window (ISO date range) used for this briefing. */
2256
+ window: {
2257
+ from: string;
2258
+ to: string;
2259
+ };
2260
+ /**
2261
+ * Calendar sources that failed during this briefing run.
2262
+ * Only present (non-empty) when at least one source threw.
2263
+ * Allows callers to distinguish "no events today" from "source unavailable".
2264
+ */
2265
+ calendarSourceErrors?: BriefingCalendarSourceError[];
2266
+ /**
2267
+ * Auto-applied passive corrections drained from the notification queue at
2268
+ * briefing time (issue #1581). Each carries a one-line summary and the undo
2269
+ * command. Drained exactly once — the queue file is cleared on read, so a
2270
+ * notification appears in at most one briefing. Absent when the correction
2271
+ * capture feature is off or no corrections were auto-applied.
2272
+ */
2273
+ correctionNotifications?: ReadonlyArray<{
2274
+ planId: string;
2275
+ summary: string;
2276
+ undoCommand: string;
2277
+ createdAt: string;
2278
+ }>;
2279
+ }
2280
+ /**
2281
+ * Settings for the Codex CLI connector. These are consumed by
2282
+ * `remnic connectors install codex-cli` to decide where the phase-2 memory
2283
+ * extension is dropped and whether to install it at all.
2284
+ */
2285
+ export interface CodexConnectorConfig {
2286
+ /**
2287
+ * Whether to install the Remnic memory extension into
2288
+ * `<codex_home>/memories_extensions/remnic/` when the `codex-cli`
2289
+ * connector is installed. Default `true`. Set to `false` for users who
2290
+ * self-manage the Codex memory extensions folder.
2291
+ */
2292
+ installExtension: boolean;
2293
+ /**
2294
+ * Optional override for the Codex home directory. When `null`, the
2295
+ * connector reads `$CODEX_HOME` and falls back to `~/.codex`. Setting
2296
+ * this is useful for integration tests and non-default installs.
2297
+ */
2298
+ codexHome: string | null;
2299
+ }
2300
+ /**
2301
+ * Container for live-connector config blocks (issue #683 PR 2/N).
2302
+ *
2303
+ * Lives at `connectors.*` rather than the top level so future connectors
2304
+ * (Notion, Gmail, GitHub) can slot in without bloating `PluginConfig`.
2305
+ *
2306
+ * Every child block must default to `enabled: false` per CLAUDE.md gotcha
2307
+ * #30 (escape hatch by default) and gotcha #48 (least-privileged enum
2308
+ * defaults). Concrete connectors are also expected to short-circuit at
2309
+ * registration time when their credentials are not populated.
2310
+ */
2311
+ export interface LiveConnectorsConfig {
2312
+ /** Google Drive live connector (issue #683 PR 2/N). */
2313
+ googleDrive: GoogleDriveLiveConnectorConfig;
2314
+ /** Notion live connector (issue #683 PR 3/N). */
2315
+ notion: NotionLiveConnectorConfig;
2316
+ /** Gmail live connector (issue #683 PR 4/6). */
2317
+ gmail: GmailLiveConnectorConfig;
2318
+ /** GitHub live connector (issue #683 PR 5/6). */
2319
+ github: GitHubLiveConnectorConfig;
2320
+ }
2321
+ /**
2322
+ * Operator-facing config for the Google Drive live connector. The connector
2323
+ * module itself defines a separate, *validated* `GoogleDriveConnectorConfig`
2324
+ * shape (frozen, post-validation). This interface is the pre-validation
2325
+ * shape that `parseConfig` round-trips through.
2326
+ *
2327
+ * `clientId` / `clientSecret` / `refreshToken` are stored as strings here so
2328
+ * the schema can ship in `openclaw.plugin.json` and operators can populate
2329
+ * them from a secret store (e.g. an env-substituted plist or systemd
2330
+ * EnvironmentFile). They MUST NEVER be committed to source. The repo-wide
2331
+ * privacy policy in CLAUDE.md applies.
2332
+ */
2333
+ export interface GoogleDriveLiveConnectorConfig {
2334
+ /** Master gate. Default false — operators must opt in explicitly. */
2335
+ enabled: boolean;
2336
+ /** OAuth2 client id. Populate from a secret store; never commit. */
2337
+ clientId: string;
2338
+ /** OAuth2 client secret. Populate from a secret store; never commit. */
2339
+ clientSecret: string;
2340
+ /** OAuth2 refresh token. Populate from a secret store; never commit. */
2341
+ refreshToken: string;
2342
+ /** Poll interval in ms. Default 300000 (5 min); min 1000; max 86400000 (24h). */
2343
+ pollIntervalMs: number;
2344
+ /** Optional folder-id scope. Empty array = all accessible files. */
2345
+ folderIds: string[];
2346
+ }
2347
+ /**
2348
+ * Operator-facing config for the Notion live connector (issue #683 PR 3/N).
2349
+ * The connector module defines a separate validated `NotionConnectorConfig`
2350
+ * shape (frozen, post-validation). This interface is the pre-validation shape
2351
+ * that `parseConfig` round-trips through.
2352
+ *
2353
+ * `token` is stored as a string here so operators can populate it from a
2354
+ * secret store (e.g. an env-substituted plist or systemd EnvironmentFile).
2355
+ * It MUST NEVER be committed to source. The repo-wide privacy policy in
2356
+ * CLAUDE.md applies.
2357
+ */
2358
+ export interface NotionLiveConnectorConfig {
2359
+ /** Master gate. Default false — operators must opt in explicitly. */
2360
+ enabled: boolean;
2361
+ /** Notion integration token. Starts with `secret_`. Populate from a secret store; never commit. */
2362
+ token: string;
2363
+ /** Array of Notion database ids to import pages from. Empty = connector is a no-op. */
2364
+ databaseIds: string[];
2365
+ /** Poll interval in ms. Default 300000 (5 min); min 1000; max 86400000 (24h). */
2366
+ pollIntervalMs: number;
2367
+ }
2368
+ /**
2369
+ * Operator-facing config for the Gmail live connector (issue #683 PR 4/6).
2370
+ * The connector module defines a separate validated `GmailConnectorConfig`
2371
+ * shape (frozen, post-validation). This interface is the pre-validation shape
2372
+ * that `parseConfig` round-trips through.
2373
+ *
2374
+ * OAuth2 credentials are stored as strings here so operators can populate
2375
+ * them from a secret store (e.g. env-substituted plist or systemd
2376
+ * EnvironmentFile). They MUST NEVER be committed to source. The repo-wide
2377
+ * privacy policy in CLAUDE.md applies.
2378
+ */
2379
+ export interface GmailLiveConnectorConfig {
2380
+ /** Master gate. Default false — operators must opt in explicitly. */
2381
+ enabled: boolean;
2382
+ /** OAuth2 client id. Populate from a secret store; never commit. */
2383
+ clientId: string;
2384
+ /** OAuth2 client secret. Populate from a secret store; never commit. */
2385
+ clientSecret: string;
2386
+ /** OAuth2 refresh token issued for the Gmail scope. Populate from a secret store; never commit. */
2387
+ refreshToken: string;
2388
+ /** Gmail userId. Defaults to "me" (the authenticated user). */
2389
+ userId: string;
2390
+ /** Gmail search query applied in addition to the watermark filter. Default "in:inbox". */
2391
+ query: string;
2392
+ /** Poll interval in ms. Default 300000 (5 min); min 1000; max 86400000 (24h). */
2393
+ pollIntervalMs: number;
2394
+ }
2395
+ /**
2396
+ * Operator-facing config for the GitHub live connector (issue #683 PR 5/6).
2397
+ * The connector module defines a separate validated `GitHubConnectorConfig`
2398
+ * shape (frozen, post-validation). This interface is the pre-validation shape
2399
+ * that `parseConfig` round-trips through.
2400
+ *
2401
+ * `token` is stored as a string here so operators can populate it from a
2402
+ * secret store (e.g. an env-substituted plist or systemd EnvironmentFile).
2403
+ * It MUST NEVER be committed to source. The repo-wide privacy policy in
2404
+ * CLAUDE.md applies.
2405
+ */
2406
+ export interface GitHubLiveConnectorConfig {
2407
+ /** Master gate. Default false — operators must opt in explicitly. */
2408
+ enabled: boolean;
2409
+ /** GitHub personal access token. Populate from a secret store; never commit. */
2410
+ token: string;
2411
+ /** GitHub login of the user whose comments will be imported. Required. */
2412
+ userLogin: string;
2413
+ /** Repos to poll in "owner/repo" format. Empty = connector is a no-op. */
2414
+ repos: string[];
2415
+ /** Poll interval in ms. Default 300000 (5 min); min 1000; max 86400000 (24h). */
2416
+ pollIntervalMs: number;
2417
+ /** Whether to fetch Discussion comments in addition to issue/PR comments. Default false. */
2418
+ includeDiscussions: boolean;
2419
+ }
2420
+ export interface BootstrapOptions {
2421
+ dryRun?: boolean;
2422
+ sessionsDir?: string;
2423
+ limit?: number;
2424
+ since?: Date;
2425
+ }
2426
+ export interface BootstrapResult {
2427
+ sessionsScanned: number;
2428
+ turnsProcessed: number;
2429
+ highSignalTurns: number;
2430
+ memoriesCreated: number;
2431
+ skipped: number;
2432
+ }
2433
+ export interface PrincipalRule {
2434
+ match: string;
2435
+ principal: string;
2436
+ }
2437
+ export interface NamespacePolicy {
2438
+ name: string;
2439
+ readPrincipals: string[];
2440
+ writePrincipals: string[];
2441
+ includeInRecallByDefault?: boolean;
2442
+ }
2443
+ export interface RelevanceFeedback {
2444
+ up: number;
2445
+ down: number;
2446
+ lastUpdatedAt: string;
2447
+ notes?: string[];
2448
+ }
2449
+ /**
2450
+ * Trusted connector identity, resolved from the auth boundary.
2451
+ * Never user-editable — set by the server from the authenticated connector,
2452
+ * not from tool arguments (anti-spoofing).
2453
+ */
2454
+ export interface SourceConnectorProvenance {
2455
+ sourceConnector?: string;
2456
+ }
2457
+ export interface BufferTurn extends SourceConnectorProvenance, BufferTurnOwner, AmbientCaptureProvenance {
2458
+ role: "user" | "assistant";
2459
+ content: string;
2460
+ timestamp: string;
2461
+ sourceValidAt?: string;
2462
+ sessionKey?: string;
2463
+ logicalSessionKey?: string;
2464
+ providerThreadId?: string | null;
2465
+ turnFingerprint?: string;
2466
+ persistProcessedFingerprint?: boolean;
2467
+ extractionContextOnly?: boolean;
2468
+ parts?: import("./message-parts/index.js").LcmMessagePartInput[];
2469
+ rawContent?: unknown;
2470
+ sourceFormat?: import("./message-parts/index.js").MessagePartSourceFormat;
2471
+ importProvenance?: import("./bulk-import/types.js").ImportTurnProvenance;
2472
+ }
2473
+ export interface BufferEntryState {
2474
+ turns: BufferTurn[];
2475
+ lastExtractionAt: string | null;
2476
+ extractionCount: number;
2477
+ /**
2478
+ * Turns retained across `clearAfterExtraction` so a later extraction pass
2479
+ * sees the context that caused a defer verdict (issue #562, PR 2). Bounded
2480
+ * to the configured retention cap by `retainDeferredTurns`. Empty / absent
2481
+ * means no retention in effect.
2482
+ */
2483
+ retainedTurns?: BufferTurn[];
2484
+ }
2485
+ export interface BufferState {
2486
+ turns: BufferTurn[];
2487
+ lastExtractionAt: string | null;
2488
+ extractionCount: number;
2489
+ entries?: Record<string, BufferEntryState>;
2490
+ }
2491
+ export interface BehaviorLoopAdjustment {
2492
+ parameter: string;
2493
+ previousValue: number;
2494
+ nextValue: number;
2495
+ delta: number;
2496
+ evidenceCount: number;
2497
+ confidence: number;
2498
+ reason: string;
2499
+ appliedAt: string;
2500
+ }
2501
+ export interface BehaviorLoopPolicyState {
2502
+ version: number;
2503
+ windowDays: number;
2504
+ minSignalCount: number;
2505
+ maxDeltaPerCycle: number;
2506
+ protectedParams: string[];
2507
+ adjustments: BehaviorLoopAdjustment[];
2508
+ updatedAt: string;
2509
+ }
2510
+ export type BehaviorSignalType = "correction_override" | "preference_affinity" | "topic_revisitation" | "action_pattern" | "outcome_preference" | "phrasing_style";
2511
+ export type BehaviorSignalDirection = "positive" | "negative";
2512
+ export interface BehaviorSignalEvent {
2513
+ timestamp: string;
2514
+ namespace: string;
2515
+ memoryId: string;
2516
+ category: Extract<MemoryCategory, "correction" | "preference">;
2517
+ signalType: BehaviorSignalType;
2518
+ direction: BehaviorSignalDirection;
2519
+ confidence: number;
2520
+ signalHash: string;
2521
+ source: "extraction" | "correction";
2522
+ }
2523
+ /**
2524
+ * One row of the buffer-surprise telemetry ledger (issue #563 PR 3).
2525
+ *
2526
+ * Emitted by `SmartBuffer` each time the surprise probe produces a score
2527
+ * for an incoming turn (i.e. the feature flag is on and the existing
2528
+ * trigger-logic path called through to the probe). Not written when the
2529
+ * probe is skipped — the absence of a row is meaningful and matches the
2530
+ * "probe was not consulted" state.
2531
+ *
2532
+ * The ledger is intentionally lean: we record the score, the threshold in
2533
+ * force, whether the turn caused a flush, and the turn count so operators
2534
+ * can re-derive precision/recall without replaying traffic. Turn content
2535
+ * is never persisted — this ledger is safe to commit to shared storage.
2536
+ */
2537
+ export interface BufferSurpriseEvent {
2538
+ /** Literal tag to simplify multiplexed log consumers. */
2539
+ event: "BUFFER_SURPRISE";
2540
+ /** ISO timestamp when the decision was made. Server-side, not turn ts. */
2541
+ timestamp: string;
2542
+ /** Buffer identifier (session / thread). Opaque string. */
2543
+ bufferKey: string;
2544
+ /** Session key if available; null when the turn has no session binding. */
2545
+ sessionKey: string | null;
2546
+ /** Role of the scored turn. */
2547
+ turnRole: "user" | "assistant";
2548
+ /** Surprise score in `[0, 1]`, already clamped. */
2549
+ surpriseScore: number;
2550
+ /** Threshold in force when the decision was made. */
2551
+ threshold: number;
2552
+ /** Whether this turn upgraded `keep_buffering` → `extract_now`. */
2553
+ triggeredFlush: boolean;
2554
+ /** Number of turns in the buffer (including the current turn). */
2555
+ turnCountInWindow: number;
2556
+ }
2557
+ /** Memory status for lifecycle management */
2558
+ export type MemoryStatus = "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived"
2559
+ /**
2560
+ * Operator explicitly forgot the memory (issue #686 PR 4/6). Soft
2561
+ * delete: the file stays on disk and a page-version snapshot is kept
2562
+ * so the act is reversible during a configurable retention window
2563
+ * (default 90 days), but the memory is excluded from recall, browse,
2564
+ * and entity attribution. After the retention window passes, a
2565
+ * future maintenance cron will hard-delete forgotten memories.
2566
+ */
2567
+ | "forgotten";
2568
+ export type LifecycleState = "candidate" | "validated" | "active" | "stale" | "archived";
2569
+ export type VerificationState = "unverified" | "user_confirmed" | "system_inferred" | "disputed";
2570
+ export type PolicyClass = "ephemeral" | "durable" | "protected";
2571
+ /** Importance level tiers */
2572
+ export type ImportanceLevel = "critical" | "high" | "normal" | "low" | "trivial";
2573
+ /** Importance scoring result */
2574
+ export interface ImportanceScore {
2575
+ /** Numeric score 0-1 */
2576
+ score: number;
2577
+ /** Tier level */
2578
+ level: ImportanceLevel;
2579
+ /** Reasons for this score */
2580
+ reasons: string[];
2581
+ /** Salient keywords extracted */
2582
+ keywords: string[];
2583
+ }
2584
+ export interface MemoryFrontmatter extends SourceConnectorProvenance, OriginMetadata, MemoryDriftProvenance {
2585
+ /** True when write-time classification ties this memory to its source connector's tools or commands. */
2586
+ toolScoped?: true;
2587
+ id: string;
2588
+ /** Whom this memory models (issue #2372). The promotion guard treats absent as "user" (fail closed). */
2589
+ subject?: MemorySubject;
2590
+ category: MemoryCategory;
2591
+ /** OKF v0.1 interop metadata (issue #1946). Inert: presentation only, never overrides `category`. */
2592
+ type?: string;
2593
+ /** Dominant-script hint (ISO 15924, e.g. `latn`/`jpan`) for cross-lingual recall (#2197). Absent on legacy files. */
2594
+ language?: string;
2595
+ created: string;
2596
+ updated: string;
2597
+ source: string;
2598
+ confidence: number;
2599
+ confidenceTier: ConfidenceTier;
2600
+ tags: string[];
2601
+ entityRef?: string;
2602
+ supersedes?: string;
2603
+ /** ISO 8601 date — memory expires and gets cleaned up after this date */
2604
+ expiresAt?: string;
2605
+ /** IDs of parent memories this was derived from (lineage tracking) */
2606
+ lineage?: string[];
2607
+ /** Memory status: active (default), pending_review, rejected, quarantined, superseded, archived, or forgotten */
2608
+ status?: MemoryStatus;
2609
+ /**
2610
+ * Tombstone block marker (issue #1579): persisted `pending_review` with this
2611
+ * set to the tombstone id — a VISIBLE block (rule 34); approval revokes it.
2612
+ */
2613
+ blockedBy?: string;
2614
+ /** Which tombstone tier matched (`exact`/`normalized`/`keyed`/`semantic`). */
2615
+ tombstoneBlockTier?: "exact" | "normalized" | "keyed" | "semantic";
2616
+ /** ID of memory that superseded this one */
2617
+ supersededBy?: string;
2618
+ /** Timestamp when superseded */
2619
+ supersededAt?: string;
2620
+ /** Why this memory was superseded. Absent means legacy/direct. */
2621
+ supersessionCause?: "direct" | "dependency";
2622
+ /** ID of the superseded memory that caused dependency invalidation. */
2623
+ invalidatedBy?: string;
2624
+ /** Timestamp when archived */
2625
+ archivedAt?: string;
2626
+ /**
2627
+ * Explicit fact validity start (issue #680). ISO 8601 timestamp.
2628
+ *
2629
+ * When present, marks the moment at which the fact begins being
2630
+ * "true" / authoritative. When absent at read time, callers fall
2631
+ * back to `created` so legacy memories written before #680 still
2632
+ * participate in `as_of` recall filtering without a migration.
2633
+ */
2634
+ valid_at?: string;
2635
+ /**
2636
+ * Explicit fact validity end (issue #680). ISO 8601 timestamp.
2637
+ *
2638
+ * Set automatically by the temporal-supersession pipeline when a
2639
+ * newer fact supersedes this one — the value is the superseder's
2640
+ * `valid_at` (or `created` if no `valid_at` was set). May also be
2641
+ * set manually for facts that are known to expire at a specific
2642
+ * point in time.
2643
+ */
2644
+ invalid_at?: string;
2645
+ /**
2646
+ * Ingestion time (issue #1578) — when Remnic *learned* this fact.
2647
+ * Distinct from `created` (file creation) and `valid_at` (event-time
2648
+ * start). Aligns with the source turn timestamp (#1575
2649
+ * `sources[].observedAt`). When `eventTimeSource === "assumed"`,
2650
+ * `valid_at` is copied from this value.
2651
+ */
2652
+ observedAt?: string;
2653
+ /**
2654
+ * Provenance of the event-time interval (issue #1578).
2655
+ * - `"extracted"` — a per-fact `eventTime` expression was resolved
2656
+ * against the source turn's timestamp and produced `valid_at` /
2657
+ * `invalid_at`.
2658
+ * - `"assumed"` — no resolvable expression; `valid_at` was copied from
2659
+ * `observedAt` (the ingestion anchor).
2660
+ * Absent on memories written before #1578; readers treat absent as
2661
+ * `"assumed"` for display purposes.
2662
+ */
2663
+ eventTimeSource?: "extracted" | "assumed";
2664
+ /**
2665
+ * Timestamp when the operator explicitly forgot this memory
2666
+ * (issue #686 PR 4/6). Set by `remnic forget <id>`. Memories with
2667
+ * `status === "forgotten"` are excluded from recall, browse, and
2668
+ * entity attribution; the file remains on disk until the retention
2669
+ * window passes.
2670
+ */
2671
+ forgottenAt?: string;
2672
+ /** Optional human-readable reason captured by `remnic forget --reason`. */
2673
+ forgottenReason?: string;
2674
+ /** Policy-driven lifecycle state used for retrieval eligibility/ranking. */
2675
+ lifecycleState?: LifecycleState;
2676
+ /** Verification provenance used by lifecycle policy. */
2677
+ verificationState?: VerificationState;
2678
+ /** Policy class used by lifecycle guardrails. */
2679
+ policyClass?: PolicyClass;
2680
+ /** Last lifecycle validation timestamp (ISO 8601). */
2681
+ lastValidatedAt?: string;
2682
+ /** Lifecycle decay score in [0,1]. */
2683
+ decayScore?: number;
2684
+ /** Lifecycle heat score in [0,1]. */
2685
+ heatScore?: number;
2686
+ /** Number of times this memory has been retrieved */
2687
+ accessCount?: number;
2688
+ /** Last time this memory was accessed (ISO 8601) */
2689
+ lastAccessed?: string;
2690
+ /** Number of sessions where this memory was retrieved and the outcome was judged a success. */
2691
+ mw_success?: number;
2692
+ /** Number of sessions where this memory was retrieved and the outcome was judged a failure. */
2693
+ mw_fail?: number;
2694
+ /** Importance score with level, reasons, and keywords */
2695
+ importance?: ImportanceScore;
2696
+ /** Parent memory ID if this is a chunk */
2697
+ parentId?: string;
2698
+ /** Chunk index within parent (0-based) */
2699
+ chunkIndex?: number;
2700
+ /** Total number of chunks for this parent */
2701
+ chunkTotal?: number;
2702
+ /** Links to other memories */
2703
+ links?: MemoryLink[];
2704
+ intentGoal?: string;
2705
+ intentActionType?: string;
2706
+ intentEntityTypes?: string[];
2707
+ artifactType?: "decision" | "constraint" | "todo" | "definition" | "commitment" | "correction" | "fact";
2708
+ sourceMemoryId?: string;
2709
+ sourceTurnId?: string;
2710
+ /** episode = time-specific event; note = stable belief/preference/decision */
2711
+ memoryKind?: "episode" | "note" | "box" | "dream" | "procedural";
2712
+ /** Structured key-value attributes extracted from the content (e.g., product attributes, dates, quantities). */
2713
+ structuredAttributes?: Record<string, string>;
2714
+ /**
2715
+ * SHA-256 (via ContentHashIndex.computeHash) of the raw content that was
2716
+ * used as the dedup key at write time. Persists through archive and
2717
+ * consolidation so the hash can be removed from the index even if the stored
2718
+ * content has been transformed (e.g. an inline citation was appended).
2719
+ *
2720
+ * When present, archive/consolidation paths use this directly instead of
2721
+ * calling stripCitation(memory.content), which only handles the default
2722
+ * [Source: ...] format and silently fails for custom citation templates.
2723
+ */
2724
+ contentHash?: string;
2725
+ /**
2726
+ * Consolidation provenance — pointers to the page-versioning snapshots
2727
+ * that this memory was derived from (issue #561). Each entry is a
2728
+ * `"<memory-path>:<version-number>"` string (e.g.
2729
+ * `"facts/preferences.md:3"`) referencing a snapshot recorded by
2730
+ * `page-versioning.ts`.
2731
+ *
2732
+ * PR 1 introduces this field as read-through only — storage preserves
2733
+ * it verbatim but no code produces it yet. PR 2 populates it on
2734
+ * consolidation writes; PR 4 adds a `remnic doctor` integrity check
2735
+ * that validates each referent actually exists.
2736
+ */
2737
+ derived_from?: string[];
2738
+ /**
2739
+ * Which consolidation operator produced this memory (issue #561,
2740
+ * extended in #687). See `ConsolidationOperator` in
2741
+ * `semantic-consolidation.ts` for the operator algebra. Absent on
2742
+ * memories that were not produced by a consolidation pass.
2743
+ *
2744
+ * `"pattern-reinforcement"` (issue #687 PR 2/4) tags memories that
2745
+ * were promoted to canonical by the pattern-reinforcement
2746
+ * maintenance job after observing the same content across
2747
+ * multiple sessions.
2748
+ */
2749
+ derived_via?: "split" | "merge" | "update" | "pattern-reinforcement";
2750
+ /**
2751
+ * Number of source memories that reinforced this canonical memory
2752
+ * (issue #687 PR 2/4). Set by the pattern-reinforcement
2753
+ * maintenance job when it clusters duplicate memories and promotes
2754
+ * the most recent member to canonical. Counts the cluster size at
2755
+ * the time of the run; subsequent runs update this monotonically.
2756
+ *
2757
+ * Always a positive integer when present. Absent on memories that
2758
+ * have not been touched by pattern reinforcement.
2759
+ */
2760
+ reinforcement_count?: number;
2761
+ /**
2762
+ * ISO 8601 timestamp recording the most recent pattern-reinforcement
2763
+ * run that touched this memory (issue #687 PR 2/4). Updated each
2764
+ * time the cluster size grows. Absent when `reinforcement_count`
2765
+ * is absent.
2766
+ */
2767
+ last_reinforced_at?: string;
2768
+ /** Literal source-utterance excerpts backing this fact (issue #1575). */
2769
+ sources?: ProvenanceSource[];
2770
+ /**
2771
+ * Coarse provenance strength: `"verified"` (span located in source text),
2772
+ * `"unverified"` (span present but not locatable), or `"none"` (no span
2773
+ * recorded). Readers treat absent as `"none"` for legacy memories.
2774
+ */
2775
+ provenance?: "verified" | "unverified" | "none";
2776
+ /** Entailment verdict from the faithfulness gate (issue #1576). */
2777
+ faithfulness?: FaithfulnessFrontmatter;
2778
+ }
2779
+ /**
2780
+ * Faithfulness gate frontmatter (issue #1576).
2781
+ *
2782
+ * Serialized as a single JSON line so it round-trips through the existing
2783
+ * YAML parser. `verdict: "unchecked"` marks a fact that entered the gate but
2784
+ * could not be evaluated (backend failure, timeout). `verdict:
2785
+ * "skipped_no_span"` marks a legacy fact without a verified source span.
2786
+ * Both are distinct from the field being absent (gate was off entirely).
2787
+ */
2788
+ export interface FaithfulnessFrontmatter {
2789
+ verdict: "entailed" | "contradicted" | "unsupported" | "unchecked" | "skipped_no_span";
2790
+ /** Model/endpoint that produced the verdict, when known. */
2791
+ model?: string;
2792
+ /** One-sentence rationale from the verifier. */
2793
+ rationale?: string;
2794
+ /** ISO-8601 timestamp the check ran. */
2795
+ at?: string;
2796
+ }
2797
+ /**
2798
+ * Per-component weights for the unified TrustScore blend (issue #1577). Every
2799
+ * field is optional and defaults to the documented value in `trust-score.ts`;
2800
+ * weights are sum-normalized at score time so only relative magnitudes matter.
2801
+ * Invalid weights (non-finite, outside `[0,1]`) are rejected at config parse.
2802
+ */
2803
+ export interface TrustWeights {
2804
+ memoryWorth?: number;
2805
+ provenance?: number;
2806
+ faithfulness?: number;
2807
+ corroboration?: number;
2808
+ contradiction?: number;
2809
+ domainCalibration?: number;
2810
+ feedback?: number;
2811
+ recency?: number;
2812
+ }
2813
+ /** Memory link relationship types */
2814
+ export type MemoryLinkType = "follows" | "references" | "contradicts" | "supports" | "related";
2815
+ /** A link between memories */
2816
+ export interface MemoryLink {
2817
+ targetId: string;
2818
+ linkType: MemoryLinkType;
2819
+ strength: number;
2820
+ reason?: string;
2821
+ }
2822
+ /**
2823
+ * A verbatim source-utterance excerpt that grounds an extracted fact
2824
+ * (issue #1575). Emitted by the PR 2 extraction validator; round-tripped
2825
+ * through storage in PR 1.
2826
+ *
2827
+ * `quote` is the only strictly-required field — without it the entry is
2828
+ * meaningless and is dropped on read. `charStart` / `charEnd` are
2829
+ * best-effort offsets within the buffered turn text at write time and
2830
+ * form a half-open interval [charStart, charEnd) (rule 35).
2831
+ */
2832
+ export interface ProvenanceSource {
2833
+ /** Session key of the source turn (e.g. `project/<name>/<ts>`). */
2834
+ sessionKey: string;
2835
+ /** Host-supplied turn identifier, when one was provided. */
2836
+ turnId?: string;
2837
+ /** ISO 8601 timestamp of the source turn. */
2838
+ observedAt: string;
2839
+ /** Verbatim utterance excerpt, capped at `provenance.maxQuoteChars`. */
2840
+ quote: string;
2841
+ /** Offset within the buffered turn text where the quote begins, when located. */
2842
+ charStart?: number;
2843
+ /** Half-open end offset within the buffered turn text (rule 35). */
2844
+ charEnd?: number;
2845
+ }
2846
+ export interface ConversationThread {
2847
+ id: string;
2848
+ title: string;
2849
+ createdAt: string;
2850
+ updatedAt: string;
2851
+ sessionKey?: string;
2852
+ episodeIds: string[];
2853
+ linkedThreadIds: string[];
2854
+ }
2855
+ export interface MemorySummary {
2856
+ id: string;
2857
+ createdAt: string;
2858
+ timeRangeStart: string;
2859
+ timeRangeEnd: string;
2860
+ summaryText: string;
2861
+ keyFacts: string[];
2862
+ keyEntities: string[];
2863
+ sourceEpisodeIds: string[];
2864
+ }
2865
+ export interface DaySummaryResult {
2866
+ summary: string;
2867
+ bullets: string[];
2868
+ next_actions: string[];
2869
+ risks_or_open_loops: string[];
2870
+ }
2871
+ export interface TopicScore {
2872
+ term: string;
2873
+ score: number;
2874
+ count: number;
2875
+ }
2876
+ export interface MemoryFile {
2877
+ path: string;
2878
+ frontmatter: MemoryFrontmatter;
2879
+ content: string;
2880
+ }
2881
+ /**
2882
+ * Public type representing the **Observation** stage in the
2883
+ * Trace → Observation → Primitive pipeline (issue #685).
2884
+ *
2885
+ * - **Trace**: raw conversation turns captured in `buffer.ts`. Noisy,
2886
+ * verbose, ephemeral.
2887
+ * - **Observation** (this type): post-extraction, importance-scored
2888
+ * fact candidate emitted by `extraction.ts` / `extraction-judge.ts`.
2889
+ * Already distilled — but not yet consolidated against the corpus.
2890
+ * - **Primitive**: the durable `MemoryFile` written by `storage.ts`,
2891
+ * reinforced over time by `compounding/engine.ts`.
2892
+ *
2893
+ * `MemoryObservation` is the named handle on the intermediate stage
2894
+ * the codebase has always produced but never publicly typed. It lets
2895
+ * callers (telemetry, doctor surfaces, tests, downstream tooling)
2896
+ * inspect the post-extraction shape without reaching into extraction
2897
+ * internals.
2898
+ *
2899
+ * Naming note: this is intentionally NOT the same as the existing
2900
+ * `state/observation-ledger/` directory, which is telemetry storage
2901
+ * for the extraction pipeline (turn-count aggregates rebuilt by
2902
+ * `maintenance/rebuild-observations.ts` and judge verdict events
2903
+ * appended by `extraction-judge-telemetry.ts`). Lifecycle events on
2904
+ * primitives — status flips, supersessions, archival, forget — live
2905
+ * in `state/memory-lifecycle-ledger.jsonl`, written by
2906
+ * `StorageManager`. A `MemoryObservation` describes the in-flight
2907
+ * candidate that became (or didn't become) a primitive; the ledger
2908
+ * directory is how the pipeline reports on itself. See
2909
+ * `docs/trace-to-primitive.md` for the full pipeline walkthrough.
2910
+ */
2911
+ export interface MemoryObservation {
2912
+ /** Stable id for this observation, distinct from any primitive id. */
2913
+ id: string;
2914
+ /** Source session id the trace came from. */
2915
+ sessionId?: string;
2916
+ /** ISO timestamp the observation was emitted. */
2917
+ observedAt: string;
2918
+ /** The extracted fact candidate (category, content, confidence, tags, etc.). */
2919
+ fact: ExtractedFact;
2920
+ /** Importance score in [0,1], from `importance.ts`. */
2921
+ importance?: number;
2922
+ /**
2923
+ * Whether the observation passed the extraction judge
2924
+ * (`extraction-judge.ts`). When `false`, the observation was
2925
+ * captured for telemetry but not persisted as a primitive.
2926
+ */
2927
+ judgeAccepted?: boolean;
2928
+ /** Optional reason the judge gave when rejecting. */
2929
+ judgeRejectionReason?: string;
2930
+ /**
2931
+ * Id of the resulting `MemoryFile` primitive once consolidation runs.
2932
+ * Absent until consolidation decides to ADD/MERGE/UPDATE the
2933
+ * observation into the corpus.
2934
+ */
2935
+ resultingPrimitiveId?: string;
2936
+ }
2937
+ /** Ordered step for extracted procedure memories (issue #519). */
2938
+ export interface ExtractedProcedureStep {
2939
+ order: number;
2940
+ intent: string;
2941
+ toolCall?: {
2942
+ kind: string;
2943
+ signature: string;
2944
+ };
2945
+ expectedOutcome?: string;
2946
+ optional?: boolean;
2947
+ }
2948
+ export interface ExtractedFact {
2949
+ category: MemoryCategory;
2950
+ content: string;
2951
+ confidence: number;
2952
+ tags: string[];
2953
+ entityRef?: string;
2954
+ cueAnchors?: Array<{
2955
+ type: "entity" | "file" | "tool" | "outcome" | "constraint" | "date";
2956
+ value: string;
2957
+ }>;
2958
+ source?: ExtractionPassSource;
2959
+ /** Claim-level provenance spans. Missing spans fail closed when verification requires them. */
2960
+ sources?: ProvenanceSource[];
2961
+ /**
2962
+ * Coarse provenance strength tag (issue #1575 PR 2). Set by the extraction
2963
+ * validator: "verified" when the quote was located in source turns,
2964
+ * "unverified" when the quote survived but no offsets were recoverable.
2965
+ * Absent when `provenance.enabled` is false or no quote was provided —
2966
+ * readers treat absent as "none" (rule 34 spirit).
2967
+ */
2968
+ provenance?: "verified" | "unverified" | "none";
2969
+ /**
2970
+ * Transient LLM quote (issue #1575 PR 2): consumed by the post-parse
2971
+ * validator to build `sources`, stripped before persistence, never in
2972
+ * content-hash dedup (rule 23 / checklist §13).
2973
+ */
2974
+ quote?: string;
2975
+ /** Transient requireSpans signal (#1575 PR 2): quote unlocatable while
2976
+ * `provenance.requireSpans` is on → routed to `pending_review`; stripped pre-persist. */
2977
+ requireSpansPending?: boolean;
2978
+ promptedByQuestion?: string;
2979
+ /** Project- vs global-scoped; emitted when `extractionScopeClassificationEnabled`; defaults "project" with a coding context. */
2980
+ scope?: MemoryScope;
2981
+ /** Extractor-assigned subject, present only when subjectClassification.enabled (issue #2372). */
2982
+ subject?: MemorySubject;
2983
+ /** Structured key-value attributes extracted from the content (e.g., product attributes, dates, quantities). */
2984
+ structuredAttributes?: Record<string, string>;
2985
+ /** When category is `procedure`, ordered steps with intents (persisted under procedures/). */
2986
+ procedureSteps?: ExtractedProcedureStep[];
2987
+ /**
2988
+ * When category is `reasoning_trace`, the stored solution chain the user
2989
+ * walked through. Persisted under reasoning-traces/.
2990
+ */
2991
+ reasoningTrace?: ExtractedReasoningTrace;
2992
+ /**
2993
+ * Optional event-time expression for bi-temporal validity (#1578 PR2).
2994
+ * Verbatim temporal anchor extracted from the conversation ("2025-03-01",
2995
+ * "last March", "since 2024", "until 2025-06-01"). Resolved against the
2996
+ * source turn timestamp at write time by `resolveFactEventTime` — never
2997
+ * re-resolved at read. Absent when the fact carries no temporal anchor or
2998
+ * when `temporal.biTemporal` is off.
2999
+ */
3000
+ eventTime?: string;
3001
+ /**
3002
+ * Per-fact source-turn timestamp for bi-temporal event-time resolution
3003
+ * (#1670). When set, `resolveFactEventTime` anchors this fact's
3004
+ * `eventTime` expression against THIS turn's timestamp instead of the
3005
+ * batch-wide latest turn timestamp — so a buffered conversation spanning
3006
+ * a date boundary resolves "yesterday" on an early-turn fact against
3007
+ * that early turn's date, not the last turn's.
3008
+ *
3009
+ * Programmatic-only: extractors that know the exact source turn set this
3010
+ * directly. The LLM extraction prompt never emits it (models cannot know
3011
+ * turn timestamps). Falls back to the earliest provenance span's
3012
+ * `observedAt`, then to the batch anchor, when absent.
3013
+ */
3014
+ sourceTurnTimestamp?: string;
3015
+ /** Transient span-mode reference (issue #2333): offsets into the exact
3016
+ * per-turn text the extraction model saw; stripped at materialization. */
3017
+ span?: ExtractedFactSpanRef | null;
3018
+ }
3019
+ export interface ExtractedReasoningTraceStep {
3020
+ order: number;
3021
+ description: string;
3022
+ }
3023
+ export interface ExtractedReasoningTrace {
3024
+ steps: ExtractedReasoningTraceStep[];
3025
+ finalAnswer: string;
3026
+ observedOutcome?: string;
3027
+ }
3028
+ export interface MemoryIntent {
3029
+ goal: string;
3030
+ actionType: string;
3031
+ entityTypes: string[];
3032
+ /** True when the prompt reads like starting a concrete task (ship/deploy/tests/PR, etc.). */
3033
+ taskInitiation?: boolean;
3034
+ }
3035
+ export interface ExtractedQuestion {
3036
+ question: string;
3037
+ context: string;
3038
+ priority: number;
3039
+ }
3040
+ export interface QuestionEntry {
3041
+ id: string;
3042
+ question: string;
3043
+ context: string;
3044
+ priority: number;
3045
+ created: string;
3046
+ resolved: boolean;
3047
+ resolvedAt?: string;
3048
+ }
3049
+ /**
3050
+ * Coarse failure class consumed by the extraction retry/backoff + circuit
3051
+ * breaker layer (extraction hot-loop hardening). Kept deliberately small:
3052
+ * - `provider_retryable`: transient provider failure (429/5xx/network) — back off and retry.
3053
+ * - `parse_empty`: provider responded but produced no parseable output — retry with a low attempt cap.
3054
+ * - `auth_config`: auth/config failure (401/403/"no models configured") — open the breaker immediately.
3055
+ */
3056
+ export type ExtractionFailureClass = "provider_retryable" | "parse_empty" | "auth_config";
3057
+ export interface ExtractionResult {
3058
+ facts: ExtractedFact[];
3059
+ profileUpdates: string[];
3060
+ entities: EntityMention[];
3061
+ questions: ExtractedQuestion[];
3062
+ identityReflection?: string;
3063
+ episodeTitle?: string;
3064
+ relationships?: ExtractedRelationship[];
3065
+ extractionFailure?: string;
3066
+ /** Coarse class used by the retry/backoff + circuit-breaker layer (extraction hot loop). */
3067
+ extractionFailureClass?: ExtractionFailureClass;
3068
+ /** Local prefilter reason; no provider extraction was attempted. */
3069
+ extractionSkippedReason?: "conversation_only_non_memory" | "mechanical_telemetry";
3070
+ /** Trusted source connector resolved over boundedTurns; persisted verbatim by the orchestrator so it is not recomputed (#2183). */
3071
+ sourceConnector?: string;
3072
+ }
3073
+ export interface EntityMention {
3074
+ name: string;
3075
+ type: "person" | "project" | "tool" | "company" | "place" | "other";
3076
+ facts: string[];
3077
+ structuredSections?: EntityStructuredSection[];
3078
+ source?: ExtractionPassSource;
3079
+ promptedByQuestion?: string;
3080
+ }
3081
+ export interface EntityRelationship {
3082
+ target: string;
3083
+ label: string;
3084
+ }
3085
+ export interface EntityActivityEntry {
3086
+ date: string;
3087
+ note: string;
3088
+ }
3089
+ export interface EntityTimelineEntry {
3090
+ timestamp: string;
3091
+ text: string;
3092
+ source?: string;
3093
+ sessionKey?: string;
3094
+ principal?: string;
3095
+ origin?: string;
3096
+ }
3097
+ export interface EntityStructuredSection {
3098
+ key: string;
3099
+ title: string;
3100
+ facts: string[];
3101
+ factOrigins?: Array<string | undefined>;
3102
+ }
3103
+ export interface EntitySchemaSectionDefinition {
3104
+ key: string;
3105
+ title: string;
3106
+ description: string;
3107
+ aliases?: string[];
3108
+ }
3109
+ export interface EntitySchemaDefinition {
3110
+ sections: EntitySchemaSectionDefinition[];
3111
+ }
3112
+ export interface EntityFile {
3113
+ name: string;
3114
+ type: string;
3115
+ created?: string;
3116
+ updated: string;
3117
+ extraFrontmatterLines?: string[];
3118
+ preSectionLines?: string[];
3119
+ facts: string[];
3120
+ summary?: string;
3121
+ synthesis?: string;
3122
+ synthesisUpdatedAt?: string;
3123
+ synthesisTimelineCount?: number;
3124
+ synthesisStructuredFactCount?: number;
3125
+ synthesisStructuredFactDigest?: string;
3126
+ synthesisVersion?: number;
3127
+ timeline: EntityTimelineEntry[];
3128
+ structuredSections?: EntityStructuredSection[];
3129
+ relationships: EntityRelationship[];
3130
+ activity: EntityActivityEntry[];
3131
+ aliases: string[];
3132
+ extraSections?: Array<{
3133
+ title: string;
3134
+ lines: string[];
3135
+ }>;
3136
+ }
3137
+ export interface ScoredEntity {
3138
+ name: string;
3139
+ type: string;
3140
+ score: number;
3141
+ factCount: number;
3142
+ summary?: string;
3143
+ topRelationships: string[];
3144
+ }
3145
+ export interface ExtractedRelationship {
3146
+ source: string;
3147
+ target: string;
3148
+ label: string;
3149
+ extractionSource?: ExtractionPassSource;
3150
+ promptedByQuestion?: string;
3151
+ }
3152
+ export interface ConsolidationItem {
3153
+ existingId: string;
3154
+ action: ConsolidationAction;
3155
+ mergeWith?: string;
3156
+ updatedContent?: string;
3157
+ reason: string;
3158
+ }
3159
+ export interface ConsolidationResult {
3160
+ items: ConsolidationItem[];
3161
+ profileUpdates: string[];
3162
+ entityUpdates: EntityMention[];
3163
+ }
3164
+ export interface ConsolidationObservation {
3165
+ runAt: string;
3166
+ recentMemories: MemoryFile[];
3167
+ existingMemories: MemoryFile[];
3168
+ profile: string;
3169
+ result: ConsolidationResult;
3170
+ merged: number;
3171
+ invalidated: number;
3172
+ }
3173
+ export interface QmdSearchResult extends OriginMetadata, RecallDriftAnnotation, StateViewResult {
3174
+ docid: string;
3175
+ path: string;
3176
+ snippet: string;
3177
+ score: number;
3178
+ line?: number;
3179
+ explain?: QmdSearchExplain;
3180
+ transport?: "daemon" | "subprocess" | "hybrid" | "scoped_prefilter";
3181
+ /** Namespace that owned this result when returned by a namespace fanout search. */
3182
+ namespace?: string;
3183
+ /** Graph activation path evidence from opt-in path scoring. */
3184
+ pathNodeIds?: string[];
3185
+ /** True when a graph path penalty was applied. */
3186
+ pathPenaltyApplied?: boolean;
3187
+ sourceConnector?: string;
3188
+ }
3189
+ export interface QmdSearchExplain {
3190
+ ftsScores?: number[];
3191
+ vectorScores?: number[];
3192
+ /** QMD 2.5 nested RRF `totalScore`, or legacy numeric RRF score. */
3193
+ rrf?: number;
3194
+ rrfRank?: number;
3195
+ rrfPositionScore?: number;
3196
+ rrfBaseScore?: number;
3197
+ rrfTopRankBonus?: number;
3198
+ rerankScore?: number;
3199
+ blendedScore?: number;
3200
+ /** Additive boost applied from `reinforcement_count` frontmatter (issue #687 PR 3/4). */
3201
+ reinforcementBoost?: number;
3202
+ }
3203
+ export interface MetaState {
3204
+ extractionCount: number;
3205
+ lastExtractionAt: string | null;
3206
+ lastConsolidationAt: string | null;
3207
+ totalMemories: number;
3208
+ totalEntities: number;
3209
+ processedExtractionFingerprints?: Array<{
3210
+ fingerprint: string;
3211
+ observedAt: string;
3212
+ }>;
3213
+ /**
3214
+ * Per-fingerprint extraction retry/backoff state (extraction hot-loop
3215
+ * hardening). Optional and default-safe: older meta files without it load
3216
+ * unchanged. Bounded to the newest entries at write time.
3217
+ */
3218
+ extractionRetryState?: Array<{
3219
+ fingerprint: string;
3220
+ attempts: number;
3221
+ nextEligibleAt: string;
3222
+ firstFailedAt: string;
3223
+ lastFailureClass: ExtractionFailureClass;
3224
+ }>;
3225
+ }
3226
+ export type MemoryActionType = "store_episode" | "store_note" | "update_note" | "create_artifact" | "summarize_node" | "discard" | "link_graph";
3227
+ export type MemoryActionOutcome = "applied" | "skipped" | "failed";
3228
+ export type MemoryActionPolicyDecision = "allow" | "defer" | "deny";
3229
+ export type MemoryActionStatus = "validated" | "applied" | "rejected";
3230
+ export type MemoryActionEligibilitySource = "extraction" | "consolidation" | "replay" | "manual" | "unknown";
3231
+ export interface MemoryActionEligibilityContext {
3232
+ confidence: number;
3233
+ lifecycleState: LifecycleState;
3234
+ importance: number;
3235
+ source: MemoryActionEligibilitySource;
3236
+ }
3237
+ export interface MemoryActionPolicyResult {
3238
+ action: MemoryActionType;
3239
+ decision: MemoryActionPolicyDecision;
3240
+ rationale: string;
3241
+ eligibility: MemoryActionEligibilityContext;
3242
+ }
3243
+ export interface MemoryActionEvent {
3244
+ schemaVersion?: number;
3245
+ actionId?: string;
3246
+ timestamp: string;
3247
+ action: MemoryActionType;
3248
+ outcome: MemoryActionOutcome;
3249
+ status?: MemoryActionStatus;
3250
+ actor?: string;
3251
+ subsystem?: string;
3252
+ reason?: string;
3253
+ memoryId?: string;
3254
+ namespace?: string;
3255
+ sessionKey?: string;
3256
+ sourceSessionKey?: string;
3257
+ checkpointCapturedAt?: string;
3258
+ checkpointTtl?: string;
3259
+ checkpointTurnCount?: number;
3260
+ inputSummary?: string;
3261
+ outputMemoryIds?: string[];
3262
+ dryRun?: boolean;
3263
+ policyVersion?: string;
3264
+ promptHash?: string;
3265
+ policyDecision?: MemoryActionPolicyDecision;
3266
+ policyRationale?: string;
3267
+ policyEligibility?: MemoryActionEligibilityContext;
3268
+ }
3269
+ export type MemoryLifecycleEventType = "created" | "updated" | "superseded" | "archived" | "rejected" | "restored" | "merged" | "imported" | "promoted" | "explicit_capture_accepted" | "explicit_capture_queued";
3270
+ export interface MemoryLifecycleStateSummary {
3271
+ category?: MemoryCategory;
3272
+ path?: string;
3273
+ status?: MemoryStatus;
3274
+ lifecycleState?: LifecycleState;
3275
+ }
3276
+ export interface MemoryLifecycleEvent {
3277
+ eventId: string;
3278
+ memoryId: string;
3279
+ eventType: MemoryLifecycleEventType;
3280
+ timestamp: string;
3281
+ actor: string;
3282
+ reasonCode?: string;
3283
+ ruleVersion: string;
3284
+ relatedMemoryIds?: string[];
3285
+ before?: MemoryLifecycleStateSummary;
3286
+ after?: MemoryLifecycleStateSummary;
3287
+ correlationId?: string;
3288
+ }
3289
+ export interface MemoryProjectionCurrentState {
3290
+ memoryId: string;
3291
+ category: MemoryCategory;
3292
+ status: MemoryStatus;
3293
+ lifecycleState?: LifecycleState;
3294
+ path: string;
3295
+ pathRel: string;
3296
+ created: string;
3297
+ updated: string;
3298
+ archivedAt?: string;
3299
+ supersededAt?: string;
3300
+ entityRef?: string;
3301
+ source: string;
3302
+ confidence: number;
3303
+ confidenceTier: ConfidenceTier;
3304
+ memoryKind?: MemoryFrontmatter["memoryKind"];
3305
+ accessCount?: number;
3306
+ lastAccessed?: string;
3307
+ tags?: string[];
3308
+ preview?: string;
3309
+ privateRecord?: boolean;
3310
+ }
3311
+ export interface CompressionGuidelineOptimizerSourceWindow {
3312
+ from: string;
3313
+ to: string;
3314
+ }
3315
+ export interface CompressionGuidelineOptimizerEventCounts {
3316
+ total: number;
3317
+ applied: number;
3318
+ skipped: number;
3319
+ failed: number;
3320
+ }
3321
+ export type CompressionGuidelineActivationState = "draft" | "active";
3322
+ export interface CompressionGuidelineOptimizerActionSummary {
3323
+ action: MemoryActionType;
3324
+ total: number;
3325
+ outcomes: Record<MemoryActionOutcome, number>;
3326
+ quality: {
3327
+ good: number;
3328
+ poor: number;
3329
+ unknown: number;
3330
+ };
3331
+ }
3332
+ export interface CompressionGuidelineOptimizerRuleUpdate {
3333
+ action: MemoryActionType;
3334
+ delta: number;
3335
+ direction: "increase" | "decrease" | "hold";
3336
+ confidence: "low" | "medium" | "high";
3337
+ notes: string[];
3338
+ }
3339
+ export interface CompressionGuidelineOptimizerState {
3340
+ version: number;
3341
+ updatedAt: string;
3342
+ sourceWindow: CompressionGuidelineOptimizerSourceWindow;
3343
+ eventCounts: CompressionGuidelineOptimizerEventCounts;
3344
+ guidelineVersion: number;
3345
+ contentHash?: string;
3346
+ activationState?: CompressionGuidelineActivationState;
3347
+ actionSummaries?: CompressionGuidelineOptimizerActionSummary[];
3348
+ ruleUpdates?: CompressionGuidelineOptimizerRuleUpdate[];
3349
+ }
3350
+ export type { ContinuityIncidentState, ContinuityIncidentRecord, ContinuityIncidentOpenInput, ContinuityIncidentCloseInput, ContinuityLoopCadence, ContinuityLoopStatus, ContinuityImprovementLoop, ContinuityLoopUpsertInput, ContinuityLoopReviewInput, } from "./types-continuity.js";
3351
+ /** Entry in the access tracking buffer (batched updates) */
3352
+ export interface AccessTrackingEntry {
3353
+ memoryId: string;
3354
+ memoryPath?: string;
3355
+ newCount: number;
3356
+ lastAccessed: string;
3357
+ }
3358
+ export interface SignalScanResult {
3359
+ level: SignalLevel;
3360
+ patterns: string[];
3361
+ }
3362
+ export interface LlmTraceEvent {
3363
+ kind: "llm_start" | "llm_end" | "llm_error";
3364
+ traceId: string;
3365
+ model: string;
3366
+ operation: "extraction" | "consolidation" | "profile_consolidation" | "identity_consolidation" | "day_summary";
3367
+ input?: string;
3368
+ output?: string;
3369
+ durationMs?: number;
3370
+ error?: string;
3371
+ tokenUsage?: {
3372
+ input?: number;
3373
+ output?: number;
3374
+ total?: number;
3375
+ };
3376
+ }
3377
+ export interface RecallTraceEvent {
3378
+ kind: "recall_summary";
3379
+ traceId: string;
3380
+ operation: "recall";
3381
+ sessionKey?: string;
3382
+ promptHash: string;
3383
+ promptLength: number;
3384
+ retrievalQueryHash: string;
3385
+ retrievalQueryLength: number;
3386
+ recallMode: RecallPlanMode;
3387
+ recallResultLimit: number;
3388
+ qmdEnabled: boolean;
3389
+ qmdAvailable: boolean;
3390
+ recallNamespaces: string[];
3391
+ source: "none" | "hot_qmd" | "hot_embedding" | "cold_fallback" | "recent_scan";
3392
+ recalledMemoryCount: number;
3393
+ injected: boolean;
3394
+ contextChars: number;
3395
+ policyVersion?: string;
3396
+ identityInjectionMode?: IdentityInjectionMode | "none";
3397
+ identityInjectedChars?: number;
3398
+ identityInjectionTruncated?: boolean;
3399
+ durationMs: number;
3400
+ timings?: Record<string, string>;
3401
+ /**
3402
+ * The full recalled memory context added to the runtime context.
3403
+ * Only populated when `traceRecallContent` config option is `true`.
3404
+ * Omitted by default to avoid sending potentially sensitive memory content
3405
+ * to external trace collectors unless explicitly opted in.
3406
+ */
3407
+ recalledContent?: string;
3408
+ }
3409
+ export type EngramTraceEvent = LlmTraceEvent | RecallTraceEvent;
3410
+ export type LlmTraceCallback = (event: EngramTraceEvent) => void;
3411
+ export type ModelApi = "openai-completions" | "anthropic-messages" | "google-generative" | "codex-cli" | string;
3412
+ export type CodexCliReasoningEffort = "low" | "medium" | "high" | "xhigh";
3413
+ export type ModelProviderAuthMode = "bearer" | "header" | "query";
3414
+ export interface ModelDefinitionConfig {
3415
+ id: string;
3416
+ name?: string;
3417
+ contextWindow?: number;
3418
+ maxOutputTokens?: number;
3419
+ costPer1MInput?: number;
3420
+ costPer1MOutput?: number;
3421
+ aliases?: string[];
3422
+ }
3423
+ export interface ModelProviderConfig {
3424
+ baseUrl: string;
3425
+ apiKey?: string | Record<string, unknown>;
3426
+ auth?: ModelProviderAuthMode;
3427
+ api?: ModelApi;
3428
+ headers?: Record<string, string>;
3429
+ authHeader?: boolean;
3430
+ disableThinking?: boolean;
3431
+ executable?: string;
3432
+ reasoningEffort?: CodexCliReasoningEffort;
3433
+ codexCliExecutable?: string;
3434
+ codexCliReasoningEffort?: CodexCliReasoningEffort;
3435
+ retryOptions?: {
3436
+ timeoutMs?: number;
3437
+ };
3438
+ models: ModelDefinitionConfig[];
3439
+ }
3440
+ export interface AgentDefaultsConfig {
3441
+ model?: {
3442
+ primary?: string;
3443
+ backup?: string;
3444
+ fallbacks?: string[];
3445
+ };
3446
+ thinking?: {
3447
+ mode?: "off" | "on" | "adaptive";
3448
+ budget?: number;
3449
+ };
3450
+ }
3451
+ export interface AgentPersonaModelConfig {
3452
+ primary?: string;
3453
+ fallbacks?: string[];
3454
+ }
3455
+ export interface AgentPersona {
3456
+ id: string;
3457
+ name?: string;
3458
+ model?: AgentPersonaModelConfig;
3459
+ }
3460
+ export interface GatewayConfig {
3461
+ agents?: {
3462
+ defaults?: AgentDefaultsConfig;
3463
+ list?: AgentPersona[];
3464
+ };
3465
+ models?: {
3466
+ providers?: Record<string, ModelProviderConfig>;
3467
+ };
3468
+ }
3469
+ export interface TranscriptEntry {
3470
+ timestamp: string;
3471
+ role: "user" | "assistant";
3472
+ content: string;
3473
+ sessionKey: string;
3474
+ turnId: string;
3475
+ metadata?: {
3476
+ compactAfter?: boolean;
3477
+ compactionId?: string | null;
3478
+ messageId?: string;
3479
+ threadId?: string;
3480
+ replyToId?: string;
3481
+ replyToBody?: string;
3482
+ replyToSender?: string;
3483
+ };
3484
+ }
3485
+ export interface Checkpoint {
3486
+ sessionKey: string;
3487
+ capturedAt: string;
3488
+ turns: TranscriptEntry[];
3489
+ ttl: string;
3490
+ }
3491
+ export interface HourlySummary {
3492
+ hour: string;
3493
+ sessionKey: string;
3494
+ bullets: string[];
3495
+ turnCount: number;
3496
+ generatedAt: string;
3497
+ }
3498
+ export type { DreamsPhase, DreamsPhaseStatus, DreamsStatusResult, DreamsRunResult, } from "./maintenance/dreams-ledger.js";
3499
+ export type { RecallWhyExpectation, RecallWhyReport, RecallWhyStageRecord } from "./recall-why.js";
3500
+ //# sourceMappingURL=types.d.ts.map