@remnic/core 9.69.56 → 9.69.58

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
@@ -1,4700 +0,0 @@
1
- import { P as PluginConfig, C as CodingContext, M as MemoryFile, u as MemoryCategory, G as GatewayConfig, N as MemorySubject, aD as SubjectGuardMode, aU as DaySummaryResult, o as RecallDisclosure, R as RecallPlanMode, K as MemoryLifecycleEvent, E as EntityFile, x as MemoryStatus, p as SourceConnectorProvenance, bA as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-Du6VdoAg.js';
2
- import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-iexgVLow.js';
3
- import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-BN1Dgfha.js';
4
- import { S as StorageManager } from './storage-CMm-3aD3.js';
5
- import { a as SemanticDedupLookup } from './semantic-BalR6EXU.js';
6
- import { L as LocalLlmClient } from './local-llm-BkkEK9rn.js';
7
- import { FallbackLlmClient } from './fallback-llm.js';
8
- import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
9
- import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
10
- import { RecallRequest, CategoryAliasCoercion, ObserveRequest } from './access-schema.js';
11
- import { z } from 'zod';
12
- import { ResolveSecretRefFn } from './resolve-auth-token.js';
13
- import { RecallContextComposition } from './recall-context-composition.js';
14
- import { RecallXraySnapshot } from './recall-xray.js';
15
- import { Readable, Writable } from 'node:stream';
16
- import { ActionConfidenceInput, ActionConfidenceResult } from './action-confidence.js';
17
- import { OfflineSyncFileState, OfflineSyncSnapshot, OfflineSyncFileRecord, OfflineSyncFileContentChunk, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplyChangesetResult } from './offline-sync.js';
18
- import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
19
- import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
20
- import { LastRecallSnapshot } from './recall-state.js';
21
- import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-VealHeqO.js';
22
- import { MemoryOutcomeKind, RecordMemoryOutcomeResult } from './memory-worth-outcomes.js';
23
- import { BudgetWarning } from './cross-namespace-budget.js';
24
- import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
25
- import { a as Peer, b as PeerProfile } from './types-B1VHaf2w.js';
26
- import { ImportCapsuleOptions, ImportCapsuleResult } from './transfer/capsule-import.js';
27
- import { RecallNavigationRequest, RecallNavigationResult } from './recall-navigation.js';
28
- import { b as NamespaceRecord } from './catalog-BuMyYPUn.js';
29
- import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-U9RAdxqZ.js';
30
- import { RecallExplainJsonPayload } from './recall-explain-renderer.js';
31
- import { CitationUsageRequest, CitationUsageResult } from './access-citation.js';
32
- import { EngramAccessHealthResponse } from './access-health-types.js';
33
- import { e as LocationContextRequestOptions } from './tagging-BjsNFKWz.js';
34
- import { ExplicitCaptureInput } from './explicit-capture.js';
35
- import { WearablesMeetingsScope } from './access-wearables-meetings-surface.js';
36
- import { DeepRecallResult } from './deep-recall.js';
37
- import { MemoryStoreBrowseRequest, MemoryStoreBrowseResult } from './memory-browse.js';
38
- import { GraphSnapshotRequest, GraphSnapshotResponse } from './graph-snapshot.js';
39
- import { OfflineSyncManifestStreamResponse } from './access-offline-manifest.js';
40
- import { CapsuleListEntry } from './capsule-cli.js';
41
- import { withHeldFileLock } from './utils/serialize-mutations.js';
42
- import { ExportCapsuleOptions, ExportCapsuleResult } from './transfer/capsule-export.js';
43
- import './access-errors.js';
44
-
45
- /**
46
- * One layer's contribution to the effective scope, with a human-readable
47
- * reason it was included or skipped. Mirrors the layer set surfaced by the
48
- * scope-profile plan plus the coding overlay and explicit override.
49
- */
50
- interface ScopeInspectionLayer {
51
- /** Layer id — `userProject` / `teamProject` / `userGlobal` / `serverShared` / `coding` / `explicit` / `self`. */
52
- id: string;
53
- /** Resolved namespace for the layer, when applicable. */
54
- namespace?: string;
55
- /** Whether the layer is in the active read set. */
56
- readable: boolean;
57
- /** Whether the layer is the effective write target. */
58
- writable: boolean;
59
- /** Whether the layer is an authorized promotion target. */
60
- promotable: boolean;
61
- /** Human-readable explanation — used verbatim by the console "why" column. */
62
- reason: string;
63
- }
64
- /** Promotion target resolved against policy + scope profile. */
65
- interface ScopeInspectionPromotionTarget {
66
- target: string;
67
- namespace?: string;
68
- authorized: boolean;
69
- reason: string;
70
- }
71
- /** Output of {@link inspectScope}. */
72
- interface ScopeInspection {
73
- /** Resolved principal (or `undefined` in single-user mode). */
74
- principal: string | undefined;
75
- /** Explicit namespace override, when readable. */
76
- namespaceOverride: string | undefined;
77
- /** Effective write namespace. */
78
- writeNamespace: string;
79
- /** Read namespaces in the order recall searches them. */
80
- readNamespaces: string[];
81
- /** Coding overlay details (branch → project → root fallbacks). */
82
- codingOverlay: {
83
- namespace: string;
84
- readFallbacks: readonly string[];
85
- } | null;
86
- /** Active scope profile id, if any. */
87
- scopeProfileId: string | null;
88
- /** Per-layer explanations. */
89
- layers: ScopeInspectionLayer[];
90
- /** Promotion targets available for this session/principal. */
91
- promotionTargets: ScopeInspectionPromotionTarget[];
92
- /** Operator warnings (missing project, disabled scope, auth failures, …). */
93
- warnings: string[];
94
- /**
95
- * Frozen copy of the {@link ScopePlan} the runtime resolver produced. The
96
- * dashboard MUST display this verbatim — never a re-derived copy — so the
97
- * "scope inspector returns the same plan as runtime resolver" acceptance
98
- * test (issue #1502) holds by construction.
99
- */
100
- plan: ScopePlan;
101
- }
102
- /** Operation type the caller intends to inspect (informational only). */
103
- type ScopeInspectionOperation = "recall" | "observe" | "memory_store" | "maintenance" | "dashboard";
104
- /** Inputs for {@link inspectScope}. */
105
- interface InspectScopeOptions {
106
- readonly config: PluginConfig;
107
- readonly sessionKey?: string;
108
- readonly namespace?: string;
109
- readonly principalOverride?: string;
110
- readonly codingContext?: CodingContext | null;
111
- readonly operation?: ScopeInspectionOperation;
112
- /**
113
- * Whether namespace routing is enabled. Callers that already resolved the
114
- * flag (e.g. the access-service layer, threading it through the shared
115
- * scope-plan chokepoint) pass it here so this pure helper does not need to
116
- * re-read the namespace gate. Defaults to reading the config flag when
117
- * omitted so direct callers (tests, CLI) keep working.
118
- */
119
- readonly namespacesEnabled?: boolean;
120
- }
121
- /** Filters the namespace browser accepts (superset of {@link NamespaceCatalogFilter}). */
122
- interface AdminNamespaceFilter {
123
- kind?: NamespaceRecord["kind"];
124
- discoveredBy?: NamespaceRecord["discoveredBy"];
125
- /** Only namespaces with a write at/after this instant. */
126
- writtenSince?: Date;
127
- /** Only namespaces whose last write is older than this instant (stale). */
128
- staleBefore?: Date;
129
- }
130
- /** One namespace row augmented with the operator-facing diagnostics the issue lists. */
131
- interface AdminNamespaceEntry {
132
- namespace: string;
133
- identityToken: string;
134
- kind: NamespaceRecord["kind"];
135
- createdAt: string;
136
- lastReadAt?: string;
137
- lastWriteAt?: string;
138
- lastMaintenanceAt?: Record<string, string>;
139
- storageDir: string;
140
- discoveredBy: NamespaceRecord["discoveredBy"];
141
- /** True when last write is older than `staleThresholdDays` (or never written). */
142
- stale: boolean;
143
- }
144
- /** Output of {@link listAdminNamespaces}. */
145
- interface AdminNamespaceList {
146
- /** Whether the namespace catalog is enabled. `false` collapses the list. */
147
- enabled: boolean;
148
- entries: AdminNamespaceEntry[];
149
- }
150
- /**
151
- * Honest, distinguishable classification of a namespace's QMD/search health
152
- * (issue #1658 thread 1). A single `qmdDegraded` bit collapses the legitimate
153
- * transient "unknown" (QMD reachable but collection status not yet populated,
154
- * normal during startup/reindex) together with the actionable "missing"
155
- * (collection not built — operator must act) and "unavailable" (backend down).
156
- * Surfacing a classified state lets the dashboard render each case honestly
157
- * instead of a flat degraded flag or a silent blank.
158
- */
159
- type AdminNamespaceQmdState =
160
- /** Backend reachable and collection present (or intentionally skipped). */
161
- "healthy"
162
- /** Backend reachable but collection status not yet determined (transient). */
163
- | "unknown"
164
- /** Backend reachable but the collection is not built for this namespace. */
165
- | "missing"
166
- /** Backend unreachable / probe threw. */
167
- | "unavailable"
168
- /** No QMD probe was run for this report (provider omitted or returned null). */
169
- | "not_probed";
170
- /** QMD/search health snapshot for one namespace (delegated to NamespaceSearchRouter). */
171
- interface AdminNamespaceQmdHealth {
172
- namespace: string;
173
- collection: string;
174
- available: boolean;
175
- collectionState: string;
176
- debugStatus: string;
177
- installedVersion: string | null;
178
- supportedVersion: string | null;
179
- supported: boolean | null;
180
- upgradeAvailable: boolean | null;
181
- daemonMode: boolean | null;
182
- }
183
- /** Maintenance + QMD health for one namespace. */
184
- interface AdminNamespaceHealth {
185
- namespace: string;
186
- kind?: NamespaceRecord["kind"];
187
- lastMaintenanceAt?: Record<string, string>;
188
- /** True when no maintenance has ever been recorded. */
189
- maintenanceMissing: boolean;
190
- /**
191
- * True when QMD is unavailable OR its collection is missing/unknown for this
192
- * namespace. Matches the NamespaceSearchRouter health path so the aggregate
193
- * `degradedMode` flag stays consistent with runtime alerting.
194
- */
195
- qmdDegraded: boolean;
196
- /**
197
- * Honest, distinguishable QMD state (issue #1658 thread 1). Complements
198
- * `qmdDegraded` so the dashboard can render "unknown" (transient) separately
199
- * from "missing"/"unavailable" (action needed) instead of a flat bit.
200
- */
201
- qmdState: AdminNamespaceQmdState;
202
- /** Human-readable explanation of {@link qmdState}, safe to show operators. */
203
- qmdStateReason: string;
204
- qmd?: AdminNamespaceQmdHealth;
205
- /** Reason the QMD probe failed, when it did. */
206
- qmdError?: string;
207
- }
208
- /** Output of {@link gatherMaintenanceHealth}. */
209
- interface MaintenanceHealthReport {
210
- /** Whether the catalog is enabled. */
211
- enabled: boolean;
212
- /** Aggregate degraded-mode flag — true when ANY namespace is QMD-degraded. */
213
- degradedMode: boolean;
214
- perNamespace: AdminNamespaceHealth[];
215
- }
216
- /** One file the dry-run migration planner would re-home. */
217
- interface TranscriptAuditFile {
218
- sourceRelPath: string;
219
- fileName: string;
220
- distinctSessions: number;
221
- movedEntries: number;
222
- unmovableLines: number;
223
- }
224
- /** Output of {@link auditTranscripts}. */
225
- interface TranscriptAuditReport {
226
- /** Generated timestamp (ISO). */
227
- generatedAt: string;
228
- /** Always true — the admin surface is dry-run only. */
229
- dryRun: true;
230
- /** Absolute transcripts directory scanned. */
231
- transcriptsDir: string;
232
- /** True when any legacy fallback file (e.g. `other/default`) holds mixed sessions. */
233
- mixedOtherDefault: boolean;
234
- /** Distinct sessions the planner would re-home. */
235
- distinctSessions: number;
236
- /** Total JSONL entries that would move. */
237
- movedEntries: number;
238
- /** Per-file plans with at least one entry to move. */
239
- files: TranscriptAuditFile[];
240
- /** Operator-facing summary of the risk. */
241
- summary: string;
242
- }
243
- /** Promotion target kind the console can request. */
244
- type MemoryPromotionTargetKind = "teamProject" | "serverShared" | "userProject" | "userGlobal" | "explicit";
245
- /** Result of one promotion attempt. */
246
- interface MemoryPromotionTargetResult {
247
- target: MemoryPromotionTargetKind;
248
- namespace: string;
249
- authorized: boolean;
250
- promoted: boolean;
251
- promotedMemoryId?: string;
252
- reason: string;
253
- }
254
- /** Output of {@link promoteMemory}. */
255
- interface MemoryPromotionResult {
256
- /** Whether the caller-supplied reason was accepted. */
257
- ok: boolean;
258
- /** Source memory id. */
259
- sourceMemoryId: string;
260
- /** Source namespace the memory was read from. */
261
- sourceNamespace: string;
262
- /** Per-target outcomes. Empty when authorization fails up front. */
263
- targets: MemoryPromotionTargetResult[];
264
- /** Audit record — caller appends to the access audit log. */
265
- audit: MemoryPromotionAudit;
266
- }
267
- /** Audit trail for a promotion operation. */
268
- interface MemoryPromotionAudit {
269
- at: string;
270
- actor: string;
271
- sourceMemoryId: string;
272
- sourceNamespace: string;
273
- reason: string;
274
- targets: Array<{
275
- target: MemoryPromotionTargetKind;
276
- namespace: string;
277
- promoted: boolean;
278
- }>;
279
- }
280
-
281
- /**
282
- * Procedural memory stats surface (issue #567 PR 5/5).
283
- *
284
- * Pure helper that tallies procedure memories by status and summarizes the
285
- * current `procedural.*` config so operators (and the dashboard) can see,
286
- * in one call, how procedural memory is behaving in a namespace.
287
- *
288
- * Consumed by:
289
- * - CLI `remnic procedural stats`
290
- * - HTTP `GET /engram/v1/procedural/stats`
291
- * - MCP `remnic.procedural_stats` (+ `engram.procedural_stats` alias)
292
- */
293
-
294
- interface ProcedureStatusCounts {
295
- total: number;
296
- active: number;
297
- pending_review: number;
298
- rejected: number;
299
- quarantined: number;
300
- superseded: number;
301
- archived: number;
302
- /** Any status the enum doesn't yet cover. */
303
- other: number;
304
- }
305
- interface ProcedureStatsConfigSnapshot {
306
- enabled: boolean;
307
- minOccurrences: number;
308
- successFloor: number;
309
- autoPromoteOccurrences: number;
310
- autoPromoteEnabled: boolean;
311
- lookbackDays: number;
312
- recallMaxProcedures: number;
313
- }
314
- interface ProcedureStatsRecent {
315
- /** ISO 8601 timestamp of the most recent procedure write, or null. */
316
- lastWriteAt: string | null;
317
- /** Count of procedure files with `created` (or `updated`) in the last 7 days. */
318
- writesLast7Days: number;
319
- /** Count of procedures whose `source` is the procedure miner. */
320
- minerSourced: number;
321
- }
322
- interface ProcedureStatsReport {
323
- schemaVersion: 1;
324
- generatedAt: string;
325
- counts: ProcedureStatusCounts;
326
- recent: ProcedureStatsRecent;
327
- config: ProcedureStatsConfigSnapshot;
328
- /** ISO timestamp of the last library-maintenance run marker, or null (issue #2370). */
329
- lastMaintenanceAt: string | null;
330
- /** Active procedures currently carrying a `needsRepair` flag (issue #2370). */
331
- needsRepairFlags: number;
332
- }
333
- /**
334
- * Read all memories from storage and tally procedures by status + recency.
335
- * `nowMs` is injectable so tests can pin the "last 7 days" window.
336
- */
337
- declare function computeProcedureStats(options: {
338
- storage: StorageManager;
339
- config: PluginConfig;
340
- nowMs?: number;
341
- }): Promise<ProcedureStatsReport>;
342
- /**
343
- * Render `ProcedureStatsReport` as a human-friendly plain-text block for CLI
344
- * operators. Keep it deterministic — no colors, no ANSI. Used by `--format text`.
345
- */
346
- declare function formatProcedureStatsText(report: ProcedureStatsReport): string;
347
-
348
- /**
349
- * Procedure library health maintenance (issue #2370).
350
- *
351
- * The library-health loop the agent-memory survey describes: consume the
352
- * telemetry Remnic already records (Memory Worth counters, access
353
- * timestamps, causal trajectories) and propose merge / repair-flag /
354
- * retire transitions for ACTIVE procedure memories.
355
- *
356
- * Shadow-first contract (mirrors `memory_governance_run`): the default run
357
- * mode produces a JSON report and writes NOTHING — not even the run
358
- * marker. Applying requires `apply: true` AND
359
- * `procedural.maintenance.enabled: true`.
360
- *
361
- * Actions, evaluated in this order per run:
362
- * 1. Merge — cluster active procedures by normalized trigger phrase +
363
- * step signature; most-recently-updated member becomes the
364
- * canonical, the rest are superseded pointing at it. The
365
- * canonical is stamped with the issue-#687 frontmatter
366
- * contract (`reinforcement_count`, `last_reinforced_at`,
367
- * `derived_via`, `derived_from`) so `patterns explain` reads
368
- * procedure canonicals unchanged. A user-edited body never
369
- * merges — the cluster is flagged instead.
370
- * 2. Repair — flag (never rewrite) procedures whose `ProcedureStep`
371
- * toolCall tools no longer appear in recent causal
372
- * trajectories, via `structuredAttributes.needsRepair`.
373
- * 3. Retire — demote to `archived` when failure-dominant past the
374
- * configured thresholds, or idle past `retireIdleDays` with
375
- * zero recorded outcomes. Demotion, never deletion; page
376
- * versioning snapshots every overwrite. User-edited
377
- * procedures are exempt and flagged instead.
378
- *
379
- * Deliberately NOT part of `runMemoryGovernance` — same isolation decision
380
- * as procedure mining (docs/procedural-memory.md).
381
- */
382
-
383
- type ProcedureLibraryStorage = {
384
- readAllMemories: () => Promise<MemoryFile[]>;
385
- writeMemoryFrontmatter: (memory: MemoryFile, patch: Record<string, unknown>, extras?: Record<string, unknown>) => Promise<unknown>;
386
- archiveMemory: (memory: MemoryFile, opts: {
387
- at: Date;
388
- actor: string;
389
- reasonCode: string;
390
- ruleVersion?: string;
391
- relatedMemoryIds?: string[];
392
- }) => Promise<string | null>;
393
- };
394
- type ProcedureMaintenanceActionKind = "merge" | "retire" | "flag_repair" | "flag_user_edited";
395
- type ProcedureMaintenanceReasonCode = "merge_duplicate_signature" | "retire_failure_dominant" | "retire_idle" | "needs_repair_stale_tools" | "user_edited_protected";
396
- interface ProcedureMaintenanceEvidence {
397
- memoryId: string;
398
- mwSuccess: number;
399
- mwFail: number;
400
- lastAccessed: string | null;
401
- updated: string | null;
402
- }
403
- interface ProcedureMaintenanceAction {
404
- action: ProcedureMaintenanceActionKind;
405
- reasonCode: ProcedureMaintenanceReasonCode;
406
- /** Canonical first for merges; otherwise the single targeted memory. */
407
- memoryIds: string[];
408
- canonicalId?: string;
409
- reason: string;
410
- evidence: ProcedureMaintenanceEvidence[];
411
- }
412
- interface ProcedureLibraryMaintenanceReport {
413
- schemaVersion: 1;
414
- generatedAt: string;
415
- mode: "shadow" | "apply";
416
- scannedProcedures: number;
417
- proposed: ProcedureMaintenanceAction[];
418
- applied: ProcedureMaintenanceAction[];
419
- appliedCount: number;
420
- skippedReason?: "procedural_disabled" | "maintenance_disabled";
421
- }
422
- interface ProcedureMaintenanceMarker {
423
- schemaVersion: 1;
424
- lastRunAt: string;
425
- lastApplyAt: string | null;
426
- appliedCount: number;
427
- }
428
- /**
429
- * Run one library-health maintenance pass over the procedures in a storage.
430
- * Shadow mode performs NO writes (not even the state marker).
431
- */
432
- declare function runProcedureLibraryMaintenance(options: {
433
- storage: ProcedureLibraryStorage;
434
- memoryDir: string;
435
- config: PluginConfig;
436
- apply?: boolean;
437
- now?: Date;
438
- }): Promise<ProcedureLibraryMaintenanceReport>;
439
-
440
- interface ConsoleBufferState {
441
- /** Number of turns currently held in the default buffer slot. */
442
- turnsCount: number;
443
- /** Approximate byte size of buffered content (UTF-8). */
444
- byteCount: number;
445
- }
446
- interface ConsoleExtractionVerdict {
447
- /** ISO-8601 timestamp the verdict was recorded. */
448
- ts: string;
449
- /** Verdict kind — typically "accept" | "reject" | "defer". */
450
- kind: string;
451
- /** Optional short reason from the judge or fallback. */
452
- reason?: string;
453
- }
454
- interface ConsoleExtractionQueueState {
455
- /** Number of pending extraction tasks queued in the orchestrator. */
456
- depth: number;
457
- /** Most recent judge verdicts, newest last. Capped at 25 entries. */
458
- recentVerdicts: ConsoleExtractionVerdict[];
459
- }
460
- interface ConsoleDedupDecision {
461
- /** ISO-8601 timestamp the decision was recorded. */
462
- ts: string;
463
- /** Outcome of the dedup check — "duplicate" | "novel" | etc. */
464
- decision: string;
465
- /** Optional content fingerprint (first 16 chars of a hash). */
466
- fingerprint?: string;
467
- /** Optional similarity score that drove the decision. */
468
- similarity?: number;
469
- }
470
- interface ConsoleMaintenanceLedgerEvent {
471
- /** ISO-8601 timestamp from the ledger row. */
472
- ts: string;
473
- /** Event category (e.g. "EXTRACTION_JUDGE_VERDICT"). */
474
- category: string;
475
- /** Compact one-line summary. */
476
- summary: string;
477
- }
478
- interface ConsoleQmdProbeState {
479
- /** Whether QMD is reachable via CLI or daemon. */
480
- available: boolean;
481
- /** Whether the daemon transport is in use. */
482
- daemonMode: boolean;
483
- /** Raw debug-status string from `qmd.debugStatus()`. */
484
- debug: string;
485
- }
486
- interface ConsoleDaemonInfo {
487
- /** Process uptime in milliseconds. */
488
- uptimeMs: number;
489
- /** Package / daemon version (best-effort). */
490
- version: string;
491
- }
492
- /**
493
- * Faithfulness gate verdict distribution (issue #1576). Surfaced via
494
- * console_state so `remnic doctor` can render how the gate is performing.
495
- */
496
- interface ConsoleFaithfulnessDistribution {
497
- entailed: number;
498
- contradicted: number;
499
- unsupported: number;
500
- unchecked: number;
501
- skippedNoSpan: number;
502
- }
503
- interface ConsoleStateSnapshot {
504
- /** ISO-8601 capture timestamp. */
505
- capturedAt: string;
506
- bufferState: ConsoleBufferState;
507
- extractionQueue: ConsoleExtractionQueueState;
508
- dedupRecent: ConsoleDedupDecision[];
509
- maintenanceLedgerTail: ConsoleMaintenanceLedgerEvent[];
510
- qmdProbe: ConsoleQmdProbeState;
511
- daemon: ConsoleDaemonInfo;
512
- /** Faithfulness gate distribution (issue #1576). Absent when the gate is off. */
513
- faithfulness?: ConsoleFaithfulnessDistribution;
514
- /**
515
- * Subsystem read errors. One entry per failed reader keyed by
516
- * subsystem name (e.g. `"bufferState: ..."`). An empty array means
517
- * every section was read cleanly.
518
- */
519
- errors: string[];
520
- }
521
-
522
- /**
523
- * Architecture-card surface contract + handler (issue #1548 Track A PR 3).
524
- *
525
- * Mirrors the decision-surfaces pattern (PR 2): one shared implementation
526
- * behind the MCP, HTTP, and CLI surfaces. All three transports dispatch
527
- * through the `coding_architecture` boundary operation, which calls
528
- * {@link handleCodingArchitecture} via the service delegate.
529
- *
530
- * Gate (rule 39): `codingKnowledge.enabled + architectureCard + coding
531
- * context` — one predicate, identical on every surface. The tools/list
532
- * visibility gate checks conditions 1–2 only (config-level).
533
- *
534
- * Persistence (rule 43): the card is written through the storage
535
- * manager's normal persist pipeline (writeMemory for the initial card,
536
- * updateMemory for refreshes) so catalog recording + reindex fire. No
537
- * direct `fs` writes of memory content. Each refresh snapshots the
538
- * prior content via page-versioning before overwriting (rule 25 —
539
- * preserve the old before the new is ready).
540
- *
541
- * Subcommands:
542
- * - `get`: return the current architecture card (or not-found).
543
- * - `refresh`: build a fresh card from the repo, persist it, and
544
- * snapshot the prior version.
545
- */
546
-
547
- declare const ARCHITECTURE_SUBCOMMANDS: readonly ["get", "refresh"];
548
- type ArchitectureSubcommand = (typeof ARCHITECTURE_SUBCOMMANDS)[number];
549
- /** Canonical surface request — one shape for all three transports. */
550
- interface ArchitectureSurfaceRequest {
551
- subcommand: ArchitectureSubcommand;
552
- sessionKey?: string;
553
- namespace?: string;
554
- }
555
- /** Surface response — discriminated union on `subcommand`. */
556
- type ArchitectureSurfaceResponse = {
557
- subcommand: "get";
558
- found: boolean;
559
- card?: {
560
- content: string;
561
- generatedAt: string;
562
- byteSize: number;
563
- truncated: boolean;
564
- };
565
- } | {
566
- subcommand: "refresh";
567
- refreshed: boolean;
568
- memoryId: string;
569
- byteSize: number;
570
- truncated: boolean;
571
- buildCode?: string;
572
- /**
573
- * Present when the refresh was tombstone-blocked (#1579): the new card
574
- * content landed pending_review (no active overwrite). Callers/UI surface
575
- * this so operators see why the active card didn't update (#1645).
576
- */
577
- blockedReason?: string;
578
- /** The tombstone id that blocked the write, when `blockedReason` is set. */
579
- blockedBy?: string;
580
- };
581
-
582
- /**
583
- * Decision-record surface contract + handler (issue #1548 Track A PR 2).
584
- *
585
- * Rule 39: one gate predicate, checked identically on every surface. Rule 22
586
- * spirit: one implementation behind three thin wirings. The service holds
587
- * only a thin delegate that builds a {@link DecisionSurfaceContext} and calls
588
- * {@link handleCodingDecision}; the handler logic lives here so the
589
- * access-service god file gains thin wiring only.
590
- *
591
- * No orchestrator imports (rule 11 — no shared mutable state). No circular
592
- * dependency on access-service.ts: validation errors are thrown via
593
- * `ctx.throwInputError`, which the service wires to EngramAccessInputError.
594
- */
595
-
596
- declare const DECISION_SUBCOMMANDS: readonly ["list", "get", "record", "supersede"];
597
- type DecisionSubcommand = (typeof DECISION_SUBCOMMANDS)[number];
598
- /**
599
- * Canonical surface request — one shape for all three transports. The
600
- * `subcommand` field selects which operation runs; the remaining fields are
601
- * optional depending on the subcommand.
602
- *
603
- * `sessionKey` identifies the session whose coding context scopes the
604
- * operation. `namespace` overrides the coding-scoped namespace (same
605
- * precedence as `memory_store` — explicit namespace wins).
606
- */
607
- interface DecisionSurfaceRequest {
608
- subcommand: DecisionSubcommand;
609
- sessionKey?: string;
610
- namespace?: string;
611
- id?: string;
612
- title?: string;
613
- status?: string;
614
- context?: string;
615
- decision?: string;
616
- consequences?: string;
617
- entityRefs?: string[];
618
- supersedesId?: string;
619
- }
620
- /**
621
- * Surface response — a discriminated union on `subcommand`. Each surface
622
- * serializes this to its transport-appropriate shape.
623
- */
624
- type DecisionSurfaceResponse = {
625
- subcommand: "list";
626
- records: DecisionSurfaceRecord[];
627
- count: number;
628
- } | {
629
- subcommand: "get";
630
- found: boolean;
631
- record?: DecisionSurfaceRecord;
632
- } | {
633
- subcommand: "record";
634
- memoryId: string;
635
- status: string;
636
- } | {
637
- subcommand: "supersede";
638
- supersededMemoryId: string;
639
- replacementMemoryId: string;
640
- };
641
- /**
642
- * Flattened record projection surfaced to clients. Stored as markdown +
643
- * frontmatter memory files (category `"decision"`) — this shape is the
644
- * read-side projection, not the storage format.
645
- */
646
- interface DecisionSurfaceRecord {
647
- id: string;
648
- title: string;
649
- status: string;
650
- context?: string;
651
- decision?: string;
652
- consequences?: string;
653
- entityRefs: string[];
654
- supersedes?: string;
655
- }
656
-
657
- /**
658
- * Codegraph parity surface contract + handler (issue #1554).
659
- *
660
- * Mirrors the decision-surfaces.ts / architecture-surfaces.ts pattern: one
661
- * shared implementation behind the MCP, HTTP, and CLI surfaces. All three
662
- * transports dispatch through the `codegraph_*` boundary operations, which
663
- * call {@link handleCodegraphTool} via the service delegate.
664
- *
665
- * Gate (rule 39): `codingKnowledge.enabled + codegraphTools + runtime
666
- * availability` -- one predicate (`codegraphSurfaceVisible`), checked
667
- * identically on every surface. The tools/list visibility gate uses the
668
- * config-only predicate; the call-time gate re-checks config AND runtime
669
- * availability AND (for tools that touch a per-session project) a coding
670
- * context.
671
- *
672
- * Reuse, don't fork (rule 22): `manage_adr` reuses Track A's decision
673
- * records (`coding/decision-records.ts`); `get_architecture` composes
674
- * Track A's architecture card with live graph stats. Zero duplicated ADR
675
- * or architecture-card logic.
676
- */
677
-
678
- declare const CODEGRAPH_TOOL_NAMES: readonly ["index", "list_projects", "delete_project", "index_status", "search_graph", "trace_path", "detect_changes", "query_graph", "get_schema", "get_snippet", "get_architecture", "search_code", "manage_adr", "ingest_traces"];
679
- type CodegraphToolName = (typeof CODEGRAPH_TOOL_NAMES)[number];
680
- /**
681
- * Canonical surface request — one shape for all three transports. `tool`
682
- * selects which codegraph operation runs; `sessionKey`/`principal`/`project`
683
- * scope the per-project GraphStore lookup; remaining fields are
684
- * tool-specific and validated by the handler.
685
- */
686
- interface CodegraphSurfaceRequest {
687
- readonly tool: CodegraphToolName;
688
- readonly sessionKey?: string;
689
- readonly principal?: string;
690
- /** Explicit project id; defaults to the session's coding-context projectId. */
691
- readonly project?: string;
692
- readonly query?: string;
693
- readonly limit?: number;
694
- readonly start?: string;
695
- readonly direction?: string;
696
- readonly depth?: number;
697
- readonly qualifiedName?: string;
698
- readonly path?: string;
699
- readonly structuredQuery?: Record<string, unknown>;
700
- readonly head?: string;
701
- readonly repoRoot?: string;
702
- readonly mode?: string;
703
- readonly confirm?: boolean;
704
- readonly subcommand?: string;
705
- readonly id?: string;
706
- readonly title?: string;
707
- readonly status?: string;
708
- readonly context?: string;
709
- readonly decision?: string;
710
- readonly consequences?: string;
711
- readonly entityRefs?: string[];
712
- readonly supersedesId?: string;
713
- readonly traces?: unknown[];
714
- }
715
- type CodegraphSurfaceResponse = {
716
- tool: CodegraphToolName;
717
- ok: true;
718
- result: unknown;
719
- } | {
720
- tool: CodegraphToolName;
721
- ok: false;
722
- code: string;
723
- message: string;
724
- };
725
-
726
- /** Persisted marker: the HEAD we last computed a delta against, and when. */
727
- interface LastSeenState {
728
- /** HEAD SHA at the time of the last delta. */
729
- head: string;
730
- /** ISO timestamp of the last delta computation. */
731
- at: string;
732
- }
733
-
734
- /**
735
- * Session-delta surface contract + handler (issue #1548 Track A PR 4).
736
- *
737
- * The single shared implementation behind the MCP, HTTP, and CLI
738
- * session-delta surfaces. All three transports dispatch through the
739
- * `coding_delta` boundary operation, which calls {@link handleCodingDelta}
740
- * via the service delegate.
741
- *
742
- * Gate (rule 39): `codingKnowledge.enabled + sessionDelta + coding
743
- * context` — one predicate, identical on every surface. The tools/list
744
- * visibility gate checks conditions 1–2 only (config-level).
745
- *
746
- * Persistence (rule 25): the new last-seen-head marker is written AFTER
747
- * the delta is computed from the old one. State writes use temp-file-then-
748
- * rename (rule 54) via the pure module's `writeLastSeenState`.
749
- *
750
- * Subcommand: `get` — computes the delta against the persisted last-seen
751
- * head and updates the marker in the same call (so the NEXT session sees
752
- * this one as the baseline). Read-only semantically, but it mutates the
753
- * state file: it is therefore NOT counted against the write-quota (the
754
- * state file is operator-side bookkeeping, not user memory content — the
755
- * same way `calibration.ts` writes are uncounted).
756
- */
757
-
758
- declare const DELTA_SUBCOMMANDS: readonly ["get"];
759
- type DeltaSubcommand = (typeof DELTA_SUBCOMMANDS)[number];
760
- /** Canonical surface request — one shape for all three transports. */
761
- interface DeltaSurfaceRequest {
762
- subcommand: DeltaSubcommand;
763
- sessionKey?: string;
764
- namespace?: string;
765
- }
766
- /**
767
- * Surface response. Mirrors {@link SessionDeltaResult} but flattened for
768
- * transport: every outcome carries `nextState` so callers can observe the
769
- * new marker even on failure (the head still advanced).
770
- */
771
- type DeltaSurfaceResponse = {
772
- subcommand: "get";
773
- ok: true;
774
- /** A real delta was computed. */
775
- kind: "changed";
776
- delta: {
777
- commits: ReadonlyArray<{
778
- sha: string;
779
- subject: string;
780
- }>;
781
- touchedFiles: readonly string[];
782
- /**
783
- * Uncapped total commit count (the {@link commits} slice is capped
784
- * for transport). Issue #1630 fix 1.
785
- */
786
- totalCommits: number;
787
- /**
788
- * Uncapped total touched-file count (the {@link touchedFiles} slice
789
- * is capped for transport). Issue #1630 fix 1.
790
- */
791
- totalTouchedFiles: number;
792
- summaryLine: string;
793
- };
794
- nextState: LastSeenState;
795
- } | {
796
- subcommand: "get";
797
- ok: true;
798
- /** Prior head equals current — no changes. */
799
- kind: "unchanged";
800
- nextState: LastSeenState;
801
- } | {
802
- subcommand: "get";
803
- ok: true;
804
- /** No prior state — first session for this namespace. */
805
- kind: "first_run";
806
- nextState: LastSeenState;
807
- } | {
808
- subcommand: "get";
809
- /**
810
- * Delta unavailable. `code` is one of `unreachable_head` (force-push/
811
- * rebase erased the prior head) or `git_failed` (invoker error). The
812
- * state file is still advanced when `nextState` is present.
813
- */
814
- ok: false;
815
- code: "unreachable_head" | "git_failed";
816
- detail: string;
817
- nextState?: LastSeenState;
818
- };
819
-
820
- /**
821
- * correction/correction-contract.ts — Types for the Correction Contract
822
- * (issue #1580).
823
- *
824
- * The Correction Contract is the SINGLE plan/apply pipeline every memory
825
- * correction flows through: supersession, invalidation, tombstone, edit,
826
- * rescope, redaction. A correction arrives as a plain-language statement
827
- * ("we migrated to MySQL in March"); the planner turns it into a structured
828
- * {@link CorrectionPlan}; the executor applies the plan in non-destructive
829
- * order through the existing storage/orchestrator chokepoints.
830
- *
831
- * This module is PURE types + validation helpers — no I/O, no side effects.
832
- * The planner and executor live in sibling modules and inject their own
833
- * collaborators so the contract is testable in isolation (rule 33).
834
- *
835
- * Design rules honored (issue #1580 design section):
836
- * - Plans are per-request state on disk, never module-level (rules 11/47).
837
- * - Caller-supplied namespaces are NEVER trusted raw — the service
838
- * resolves them through the normal namespace policy (rule 42).
839
- * - Bulk operations refuse past maxAffected (no silent truncation, §39).
840
- * - `never_store` redaction patterns must be bounded and safe (§34).
841
- */
842
-
843
- /**
844
- * The user-facing input: a plain-language correction plus optional explicit
845
- * targets. This is what every surface (MCP / HTTP / CLI) collects before
846
- * handing off to the planner.
847
- */
848
- interface CorrectionRequest {
849
- /** Natural-language correction statement. Required, non-empty. */
850
- text: string;
851
- /**
852
- * Explicit target memory ids (or handles via #1582). When present the
853
- * planner resolves these directly; an unknown id is an explicit error
854
- * (rule 34), never a silent empty plan. When absent the planner searches.
855
- */
856
- targetIds?: string[];
857
- /** Session key for namespace/principal resolution. */
858
- sessionKey?: string;
859
- /** Authenticated principal (resolved by the service, never trusted raw). */
860
- principal?: string;
861
- /**
862
- * Caller-suggested namespace. ALWAYS re-resolved through the namespace
863
- * policy by the service before reaching the planner (rule 42). The
864
- * planner only sees the ALREADY-AUTHORIZED namespace.
865
- */
866
- namespace?: string;
867
- }
868
- type CorrectionClassification = "wrong" | "outdated" | "incomplete" | "wrong_scope" | "never_store";
869
- /**
870
- * A draft for a replacement memory (supersede action). Mirrors the subset of
871
- * {@link MemoryFrontmatter} a correction caller may legitimately set; the
872
- * executor fills in id/created/updated/source.
873
- */
874
- interface MemoryDraft {
875
- content: string;
876
- category?: MemoryCategory;
877
- confidence?: number;
878
- tags?: string[];
879
- entityRef?: string;
880
- /** Optional event-time anchor for bi-temporal supersession (#1578). */
881
- validAt?: string;
882
- /** Optional observed-at anchor for bi-temporal supersession (#1578). */
883
- observedAt?: string;
884
- structuredAttributes?: Record<string, string>;
885
- }
886
- type CorrectionAction =
887
- /** Outdated: a new fact replaces the loser. */
888
- {
889
- kind: "supersede";
890
- loserId: string;
891
- replacement?: MemoryDraft;
892
- }
893
- /** Incomplete / minor-wrong: a versioned edit to an existing memory. */
894
- | {
895
- kind: "edit";
896
- memoryId: string;
897
- patch: string;
898
- }
899
- /** Wrong: retire + tombstone. */
900
- | {
901
- kind: "retract";
902
- memoryId: string;
903
- }
904
- /** Wrong scope: move to a different namespace. */
905
- | {
906
- kind: "rescope";
907
- memoryId: string;
908
- toNamespace: string;
909
- }
910
- /** Never-store: a future-extraction redaction rule. */
911
- | {
912
- kind: "redaction_rule";
913
- pattern: string;
914
- };
915
- /**
916
- * One affected memory in a plan: where it lives, an excerpt, why it is
917
- * affected, and (when available) the source quote that supports the
918
- * correction (#1575 provenance).
919
- */
920
- interface CorrectionAffectedEntry {
921
- memoryId: string;
922
- /** File path relative to the storage dir, for diff rendering. */
923
- path: string;
924
- excerpt: string;
925
- why: string;
926
- sourceQuote?: string;
927
- }
928
- /**
929
- * A persisted, expiring correction plan. Read-only artifact produced by the
930
- * planner; consumed (once) by the executor.
931
- */
932
- interface CorrectionPlan {
933
- planId: string;
934
- request: CorrectionRequest;
935
- /** Authorized namespace the plan is scoped to (resolved by the service). */
936
- namespace: string;
937
- affected: CorrectionAffectedEntry[];
938
- classification: CorrectionClassification;
939
- actions: CorrectionAction[];
940
- /** Human-readable diff preview rendered via page-versioning. */
941
- diff: string;
942
- /** Planner confidence in [0, 1]. `0` means manual selection required. */
943
- confidence: number;
944
- warnings: string[];
945
- createdAt: string;
946
- /** ISO timestamp after which apply rejects the plan as expired. */
947
- expiresAt: string;
948
- /**
949
- * Lifecycle: `pending` → `applying` → `applied`|`partial` (or `discarded`).
950
- * The executor flips a plan to `applying` BEFORE running any mutation
951
- * (review thread OgIqt): if the process dies mid-apply, the plan stays
952
- * `applying` and is NOT silently retryable — a partially-applied plan must
953
- * never be re-applied wholesale (it would duplicate succeeded actions).
954
- */
955
- status?: "pending" | "applying" | "applied" | "discarded" | "partial";
956
- /**
957
- * ISO timestamp recorded when the plan transitioned to `applying` (#1713
958
- * Item 2). Startup recovery uses this to detect plans stuck in `applying`
959
- * past the stale-applying TTL (process died mid-apply) and discard+scrub
960
- * them. Absent on plans that never entered `applying`.
961
- */
962
- applyingAt?: string;
963
- }
964
- /**
965
- * Per-action outcome recorded by the executor. An action whose new-state
966
- * write failed is `failed`; the executor never destroys old state for a
967
- * failed action (rule 25 / checklist §14).
968
- */
969
- interface CorrectionActionResult {
970
- action: CorrectionAction;
971
- status: "applied" | "failed" | "skipped";
972
- /** For supersede: the new memory id. For edit: the memory id. */
973
- memoryId?: string;
974
- /** For supersede/retract: the emitted tombstone id (if any). */
975
- tombstoneId?: string;
976
- error?: string;
977
- }
978
- interface CorrectionOutcome {
979
- planId: string;
980
- status: "applied" | "partial";
981
- results: CorrectionActionResult[];
982
- /** Audit-record memory id (corrections are themselves memories). */
983
- auditMemoryId: string;
984
- /** ISO timestamp of the apply. */
985
- appliedAt: string;
986
- }
987
-
988
- interface EngramAccessLcmCompactionFlushRequest extends CodingScopedWriteInput {
989
- sessionKey: string;
990
- namespace?: string;
991
- authenticatedPrincipal?: string;
992
- }
993
- interface EngramAccessLcmCompactionFlushResponse {
994
- enabled: boolean;
995
- flushed: boolean;
996
- sessionKey: string;
997
- namespace: string;
998
- reason?: string;
999
- }
1000
- interface EngramAccessExtractionForceFlushRequest extends CodingScopedWriteInput {
1001
- sessionKey: string;
1002
- namespace?: string;
1003
- authenticatedPrincipal?: string;
1004
- deadlineMs?: number;
1005
- abortSignal?: AbortSignal;
1006
- /** Internal HTTP hook invoked at the durable commit boundary. */
1007
- onCommitted?: () => void;
1008
- }
1009
- interface EngramAccessExtractionForceFlushResponse {
1010
- flushed: boolean;
1011
- sessionKey: string;
1012
- namespace: string;
1013
- effectiveNamespace: string;
1014
- }
1015
- interface ExtractionForceFlushDelegate {
1016
- extractionForceFlush(request: EngramAccessExtractionForceFlushRequest): Promise<EngramAccessExtractionForceFlushResponse>;
1017
- }
1018
- declare function delegateExtractionForceFlush(delegate: ExtractionForceFlushDelegate, request: EngramAccessExtractionForceFlushRequest): Promise<EngramAccessExtractionForceFlushResponse>;
1019
-
1020
- type SupportPassportErrorCode = "card_data_invalid" | "card_not_found" | "consent_required" | "feature_disabled" | "forbidden" | "grant_expired" | "grant_gone" | "grant_not_found" | "grant_stale" | "invalid_card_status" | "invalid_input" | "model_output_invalid" | "provider_unavailable" | "rate_limited" | "revision_conflict" | "state_conflict" | "storage_conflict";
1021
- declare class SupportPassportError extends Error {
1022
- readonly code: SupportPassportErrorCode;
1023
- readonly status: number;
1024
- constructor(code: SupportPassportErrorCode, message: string, status: number);
1025
- }
1026
-
1027
- declare const SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER = "That is not covered in this person's support guide.";
1028
- declare const SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES = 20;
1029
- declare const SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS = 100000;
1030
- declare const SupportPassportDraftCardSchema: z.ZodEffects<z.ZodObject<{
1031
- title: z.ZodEffects<z.ZodString, string, string>;
1032
- statement: z.ZodString;
1033
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1034
- sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
1035
- }, "strict", z.ZodTypeAny, {
1036
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1037
- title: string;
1038
- sourceMemoryIds: string[];
1039
- statement: string;
1040
- }, {
1041
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1042
- title: string;
1043
- sourceMemoryIds: string[];
1044
- statement: string;
1045
- }>, {
1046
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1047
- title: string;
1048
- sourceMemoryIds: string[];
1049
- statement: string;
1050
- }, {
1051
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1052
- title: string;
1053
- sourceMemoryIds: string[];
1054
- statement: string;
1055
- }>;
1056
- declare const SupportPassportDraftOutputSchema: z.ZodObject<{
1057
- cards: z.ZodArray<z.ZodEffects<z.ZodObject<{
1058
- title: z.ZodEffects<z.ZodString, string, string>;
1059
- statement: z.ZodString;
1060
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1061
- sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
1062
- }, "strict", z.ZodTypeAny, {
1063
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1064
- title: string;
1065
- sourceMemoryIds: string[];
1066
- statement: string;
1067
- }, {
1068
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1069
- title: string;
1070
- sourceMemoryIds: string[];
1071
- statement: string;
1072
- }>, {
1073
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1074
- title: string;
1075
- sourceMemoryIds: string[];
1076
- statement: string;
1077
- }, {
1078
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1079
- title: string;
1080
- sourceMemoryIds: string[];
1081
- statement: string;
1082
- }>, "many">;
1083
- }, "strict", z.ZodTypeAny, {
1084
- cards: {
1085
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1086
- title: string;
1087
- sourceMemoryIds: string[];
1088
- statement: string;
1089
- }[];
1090
- }, {
1091
- cards: {
1092
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1093
- title: string;
1094
- sourceMemoryIds: string[];
1095
- statement: string;
1096
- }[];
1097
- }>;
1098
- declare const SupportPassportDraftModelInputSchema: z.ZodEffects<z.ZodObject<{
1099
- consent: z.ZodLiteral<true>;
1100
- memories: z.ZodArray<z.ZodObject<{
1101
- memoryId: z.ZodString;
1102
- content: z.ZodString;
1103
- }, "strict", z.ZodTypeAny, {
1104
- content: string;
1105
- memoryId: string;
1106
- }, {
1107
- content: string;
1108
- memoryId: string;
1109
- }>, "many">;
1110
- }, "strict", z.ZodTypeAny, {
1111
- memories: {
1112
- content: string;
1113
- memoryId: string;
1114
- }[];
1115
- consent: true;
1116
- }, {
1117
- memories: {
1118
- content: string;
1119
- memoryId: string;
1120
- }[];
1121
- consent: true;
1122
- }>, {
1123
- memories: {
1124
- content: string;
1125
- memoryId: string;
1126
- }[];
1127
- consent: true;
1128
- }, {
1129
- memories: {
1130
- content: string;
1131
- memoryId: string;
1132
- }[];
1133
- consent: true;
1134
- }>;
1135
- declare const SupportPassportAnswerOutputSchema: z.ZodEffects<z.ZodObject<{
1136
- answer: z.ZodString;
1137
- citedCardIds: z.ZodArray<z.ZodString, "many">;
1138
- coverage: z.ZodEnum<["grounded", "not_in_guide"]>;
1139
- }, "strict", z.ZodTypeAny, {
1140
- coverage: "grounded" | "not_in_guide";
1141
- answer: string;
1142
- citedCardIds: string[];
1143
- }, {
1144
- coverage: "grounded" | "not_in_guide";
1145
- answer: string;
1146
- citedCardIds: string[];
1147
- }>, {
1148
- coverage: "grounded" | "not_in_guide";
1149
- answer: string;
1150
- citedCardIds: string[];
1151
- }, {
1152
- coverage: "grounded" | "not_in_guide";
1153
- answer: string;
1154
- citedCardIds: string[];
1155
- }>;
1156
- declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1157
- guide: z.ZodObject<{
1158
- schemaVersion: z.ZodLiteral<1>;
1159
- grantId: z.ZodEffects<z.ZodString, string, string>;
1160
- expiresAt: z.ZodEffects<z.ZodString, string, string>;
1161
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1162
- cards: z.ZodArray<z.ZodObject<{
1163
- cardId: z.ZodString;
1164
- title: z.ZodString;
1165
- statement: z.ZodString;
1166
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1167
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1168
- }, "strict", z.ZodTypeAny, {
1169
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1170
- title: string;
1171
- updatedAt: string;
1172
- cardId: string;
1173
- statement: string;
1174
- }, {
1175
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1176
- title: string;
1177
- updatedAt: string;
1178
- cardId: string;
1179
- statement: string;
1180
- }>, "many">;
1181
- }, "strict", z.ZodTypeAny, {
1182
- expiresAt: string;
1183
- schemaVersion: 1;
1184
- updatedAt: string;
1185
- cards: {
1186
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1187
- title: string;
1188
- updatedAt: string;
1189
- cardId: string;
1190
- statement: string;
1191
- }[];
1192
- grantId: string;
1193
- }, {
1194
- expiresAt: string;
1195
- schemaVersion: 1;
1196
- updatedAt: string;
1197
- cards: {
1198
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1199
- title: string;
1200
- updatedAt: string;
1201
- cardId: string;
1202
- statement: string;
1203
- }[];
1204
- grantId: string;
1205
- }>;
1206
- question: z.ZodString;
1207
- }, "strict", z.ZodTypeAny, {
1208
- question: string;
1209
- guide: {
1210
- expiresAt: string;
1211
- schemaVersion: 1;
1212
- updatedAt: string;
1213
- cards: {
1214
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1215
- title: string;
1216
- updatedAt: string;
1217
- cardId: string;
1218
- statement: string;
1219
- }[];
1220
- grantId: string;
1221
- };
1222
- }, {
1223
- question: string;
1224
- guide: {
1225
- expiresAt: string;
1226
- schemaVersion: 1;
1227
- updatedAt: string;
1228
- cards: {
1229
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1230
- title: string;
1231
- updatedAt: string;
1232
- cardId: string;
1233
- statement: string;
1234
- }[];
1235
- grantId: string;
1236
- };
1237
- }>;
1238
- type SupportPassportDraftCard = z.infer<typeof SupportPassportDraftCardSchema>;
1239
- type SupportPassportDraftModelInput = Omit<z.input<typeof SupportPassportDraftModelInputSchema>, "consent"> & {
1240
- consent: boolean;
1241
- };
1242
- type SupportPassportAnswerOutput = z.infer<typeof SupportPassportAnswerOutputSchema>;
1243
- type SupportPassportAnswerModelInput = z.input<typeof SupportPassportAnswerModelInputSchema>;
1244
-
1245
- type SupportPassportModelMessage = {
1246
- role: "system" | "user" | "assistant";
1247
- content: string;
1248
- };
1249
- type SupportPassportModelRouteKind = "local" | "direct" | "gateway";
1250
- interface SupportPassportJsonSchema {
1251
- name: string;
1252
- schema: Record<string, unknown>;
1253
- }
1254
- interface SupportPassportModelUsage {
1255
- inputTokens?: number;
1256
- outputTokens?: number;
1257
- totalTokens?: number;
1258
- }
1259
- interface SupportPassportModelRouteResult {
1260
- content: string;
1261
- modelUsed: string;
1262
- usage?: SupportPassportModelUsage;
1263
- }
1264
- interface SupportPassportModelRoute {
1265
- kind: SupportPassportModelRouteKind;
1266
- timeoutMs?: number;
1267
- invoke(messages: SupportPassportModelMessage[], options: {
1268
- temperature: number;
1269
- maxTokens: number;
1270
- timeoutMs: number;
1271
- signal?: AbortSignal;
1272
- operation: string;
1273
- jsonSchema: SupportPassportJsonSchema;
1274
- acceptResponse?: (response: SupportPassportModelRouteResult) => boolean;
1275
- }): Promise<SupportPassportModelRouteResult | null>;
1276
- }
1277
- interface SupportPassportModelResultMetadata {
1278
- modelUsed: string;
1279
- route: SupportPassportModelRouteKind;
1280
- latencyMs: number;
1281
- usage?: SupportPassportModelUsage;
1282
- }
1283
- interface SupportPassportDraftResult extends SupportPassportModelResultMetadata {
1284
- cards: SupportPassportDraftCard[];
1285
- }
1286
- interface SupportPassportAnswerResult extends SupportPassportModelResultMetadata, SupportPassportAnswerOutput {
1287
- }
1288
- interface SupportPassportModelAdapterOptions {
1289
- routes: SupportPassportModelRoute[];
1290
- timeoutMs?: number;
1291
- nowMs?: () => number;
1292
- }
1293
- interface SupportPassportModelFailureMetadata extends Omit<SupportPassportModelResultMetadata, "route"> {
1294
- route: SupportPassportModelRouteKind | "unavailable";
1295
- errorClass: string;
1296
- }
1297
- declare class SupportPassportModelCallError extends SupportPassportError {
1298
- readonly metadata: SupportPassportModelFailureMetadata;
1299
- constructor(code: "model_output_invalid" | "provider_unavailable", message: string, status: number, metadata: SupportPassportModelFailureMetadata);
1300
- }
1301
- type ModelRoutePlanConfig = Pick<PluginConfig, "modelSource" | "localLlmEnabled" | "localLlmFallback" | "openaiApiKey">;
1302
- interface SupportPassportModelClients {
1303
- localLlm?: LocalLlmClient;
1304
- gatewayRoute?: SupportPassportModelRoute;
1305
- directLlm?: FallbackLlmClient;
1306
- }
1307
- /**
1308
- * Rebuild the route's synchronous output check after a provider-neutral model
1309
- * request crosses a process boundary. The check uses the same schemas and
1310
- * selected IDs as the in-process adapter.
1311
- */
1312
- declare function acceptsSupportPassportModelResponse(operation: string, messages: SupportPassportModelMessage[], content: string): boolean;
1313
- declare function resolveSupportPassportModelRoutePlan(config: ModelRoutePlanConfig, availability?: {
1314
- gateway: boolean;
1315
- }): SupportPassportModelRouteKind[];
1316
- declare function buildSupportPassportDirectGatewayConfig(config: Pick<PluginConfig, "openaiApiKey" | "openaiBaseUrl" | "model">): GatewayConfig | undefined;
1317
- declare function createSupportPassportModelAdapter(config: PluginConfig, clients?: SupportPassportModelClients): SupportPassportModelAdapter;
1318
- declare class SupportPassportModelAdapter {
1319
- private readonly routes;
1320
- private readonly timeoutMs;
1321
- private readonly nowMs;
1322
- constructor(options: SupportPassportModelAdapterOptions);
1323
- draftCards(input: SupportPassportDraftModelInput, signal?: AbortSignal): Promise<SupportPassportDraftResult>;
1324
- answerQuestion(input: SupportPassportAnswerModelInput, signal?: AbortSignal): Promise<SupportPassportAnswerResult>;
1325
- private runStructured;
1326
- private invokeRoute;
1327
- }
1328
-
1329
- type ReviewDeckChoice = "keep" | "prepare_fix" | "not_true";
1330
- type ReviewDeckRisk = "reversible";
1331
- interface ReviewDeckEvidence {
1332
- sourceMemoryId?: string;
1333
- sourceDate?: string;
1334
- excerpt?: string;
1335
- relation: "supports" | "conflicts" | "origin";
1336
- }
1337
- interface ReviewDeckItem {
1338
- schemaVersion: 1;
1339
- itemId: string;
1340
- source: "review";
1341
- sourceId: string;
1342
- memoryId?: string;
1343
- content: string;
1344
- category?: string;
1345
- lifecycleState?: string;
1346
- confidence?: number;
1347
- confidenceTier?: string;
1348
- reviewReason: string;
1349
- reviewReasonLabel: string;
1350
- supportCount: number;
1351
- provenance: readonly ReviewDeckEvidence[];
1352
- allowedChoices: readonly ReviewDeckChoice[];
1353
- choiceRisk: Readonly<Record<ReviewDeckChoice, ReviewDeckRisk | "unavailable">>;
1354
- namespace: string;
1355
- revision: string;
1356
- }
1357
- interface ReviewDeckPage {
1358
- schemaVersion: 1;
1359
- items: readonly ReviewDeckItem[];
1360
- nextCursor?: string;
1361
- total: number;
1362
- }
1363
- type ReviewDeckActionRequest = {
1364
- schemaVersion: 1;
1365
- itemId: string;
1366
- revision: string;
1367
- action: "keep" | "not_true";
1368
- idempotencyKey: string;
1369
- } | {
1370
- schemaVersion: 1;
1371
- itemId: string;
1372
- revision: string;
1373
- action: "prepare_fix";
1374
- correctionText: string;
1375
- idempotencyKey: string;
1376
- };
1377
- interface ReviewDeckActionReceipt {
1378
- schemaVersion: 1;
1379
- receiptId: string;
1380
- itemId: string;
1381
- action: "keep" | "not_true" | "prepare_fix" | "undo";
1382
- outcome: "planned" | "applied" | "conflict" | "failed";
1383
- effect: string;
1384
- undoAvailable: boolean;
1385
- appliedRevision?: string;
1386
- correctionPlanId?: string;
1387
- correctionPreview?: unknown;
1388
- }
1389
- interface ReviewDeckUndoRequest {
1390
- schemaVersion: 1;
1391
- receiptId: string;
1392
- expectedRevision: string;
1393
- idempotencyKey: string;
1394
- }
1395
- interface ReviewDeckSourceRow {
1396
- itemId: string;
1397
- filePath: string;
1398
- fileContent: string;
1399
- revision: string;
1400
- content: string;
1401
- category?: string;
1402
- confidence?: number;
1403
- confidenceTier?: string;
1404
- reviewReason: string;
1405
- created: string;
1406
- source?: string;
1407
- blockedBy?: string;
1408
- lifecycleState?: string;
1409
- context?: string;
1410
- }
1411
- interface ReviewDeckSnapshot {
1412
- corpusVersion: string;
1413
- total: number;
1414
- rows: readonly ReviewDeckSourceRow[];
1415
- }
1416
- interface ReviewDeckCursorScope {
1417
- principalDigest: string;
1418
- namespace: string;
1419
- filterDigest: string;
1420
- corpusVersion: string;
1421
- }
1422
- declare class ReviewDeckCursorError extends Error {
1423
- constructor(message?: string);
1424
- }
1425
- declare function computeReviewItemRevision(fileContent: string): string;
1426
- declare function projectReviewDeckItem(row: ReviewDeckSourceRow, namespace: string): ReviewDeckItem;
1427
- declare function compareReviewDeckRows(a: ReviewDeckSourceRow, b: ReviewDeckSourceRow): number;
1428
- declare function encodeReviewDeckCursor(scope: ReviewDeckCursorScope, lastSortKey: string): string;
1429
- declare function decodeReviewDeckCursor(cursor: string, scope: ReviewDeckCursorScope): string;
1430
- declare function buildReviewDeckPage(rows: readonly ReviewDeckSourceRow[], opts: {
1431
- scope: ReviewDeckCursorScope;
1432
- cursor?: string;
1433
- limit: number;
1434
- }): ReviewDeckPage;
1435
-
1436
- interface ReviewDeckSurfaceDeps {
1437
- readonly orchestrator: Orchestrator;
1438
- resolveReadableNamespace(namespace: string | undefined, principal?: string): string;
1439
- writableNamespaceFor(namespace: string | undefined, sessionKey: string | undefined, authenticatedPrincipal?: string): string;
1440
- correctionPlan(request: CorrectionRequest, opts?: {
1441
- abortSignal?: AbortSignal;
1442
- }): Promise<CorrectionPlan>;
1443
- }
1444
- declare class ReviewDeckSurface {
1445
- private readonly deps;
1446
- constructor(deps: ReviewDeckSurfaceDeps);
1447
- list(opts: {
1448
- namespace?: string;
1449
- principal?: string;
1450
- cursor?: string;
1451
- limit: number;
1452
- }): Promise<ReviewDeckPage>;
1453
- action(req: ReviewDeckActionRequest, opts: {
1454
- namespace?: string;
1455
- principal?: string;
1456
- signal?: AbortSignal;
1457
- }): Promise<ReviewDeckActionReceipt>;
1458
- undo(req: ReviewDeckUndoRequest, opts: {
1459
- namespace?: string;
1460
- principal?: string;
1461
- signal?: AbortSignal;
1462
- }): Promise<ReviewDeckActionReceipt>;
1463
- private mutationContext;
1464
- }
1465
-
1466
- /**
1467
- * Single input-validation and error boundary for the CLI/MCP/HTTP access
1468
- * surfaces (issue #1525, epic #1520 Phase 1).
1469
- *
1470
- * Every operation that crosses the access-service facade passes through ONE
1471
- * registry entry: a zod-validated request envelope, a shared error mapper,
1472
- * and the "reject invalid input and list valid options" behavior that
1473
- * CLAUDE.md rules 14/17/24/28/36/48/51 previously had to be re-implemented
1474
- * per handler. The three surfaces become thin adapters — one operation
1475
- * definition, three transports — so a validation fix lands everywhere at
1476
- * once.
1477
- *
1478
- * Host-agnostic (rule 31): operation names carry no `openclaw-*`/`engram-*`
1479
- * prefix. Session/namespace tenancy stays in the handler layer (resolved via
1480
- * ScopePlan #1521); the boundary validates SHAPE, not tenancy.
1481
- */
1482
-
1483
- /**
1484
- * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,
1485
- * and the CLI command that expose the same operation. Add to this union as
1486
- * each domain-group migration PR (memory ops → connectors → namespaces …)
1487
- * lands; the fitness test in `access-surface-catalog.test.ts` treats the
1488
- * registered set as the migration state.
1489
- */
1490
- declare const OPERATION_NAMES: readonly ["memory_get", "memory_search", "external_wiki_search", "memory_store", "coding_decision", "coding_architecture", "codegraph_index", "codegraph_list_projects", "codegraph_delete_project", "codegraph_index_status", "codegraph_search_graph", "codegraph_trace_path", "codegraph_detect_changes", "codegraph_query_graph", "codegraph_get_schema", "codegraph_get_snippet", "codegraph_get_architecture", "codegraph_search_code", "codegraph_manage_adr", "codegraph_ingest_traces", "memory_correct_plan", "memory_correct_apply", "coding_delta", "recall", "recall_explain", "set_coding_context", "recall_tier_explain", "recall_xray", "who_knows", "promotion_candidates", "namespace_writable", "wearables_status", "wearables_sync", "transcript_day", "transcript_search", "transcript_memories", "location_status", "location_check", "location_sync", "location_backfill", "location_day", "meetings_list", "meetings_get", "meetings_build", "deep_recall", "memory_expand", "memory_traverse", "memory_ls", "memory_tree", "memory_find", "standup", "action_confidence", "chatgpt_memory_inspector", "day_summary", "capsule_export", "capsule_import", "capsule_list", "memory_governance_run", "entity_synthesis_run", "procedure_mining_run", "pattern_reinforcement_run", "procedural_stats", "procedure_library_maintenance", "memory_timeline", "suggestion_submit", "entity_get", "review_queue_list", "correction_pending", "observe", "lcm_search", "lcm_compaction_flush", "extraction_force_flush", "lcm_compaction_record", "continuity_audit_generate", "continuity_incident_open", "continuity_incident_close", "continuity_incident_list", "continuity_loop_add_or_update", "continuity_loop_review", "identity_anchor_get", "identity_anchor_update", "memory_identity", "work_task", "work_project", "work_board", "shared_context_write_output", "shared_feedback_record", "shared_priorities_append", "relay_mission_append", "relay_mission_read", "shared_context_cross_signals_run", "shared_context_curate_daily", "compounding_weekly_synthesize", "compounding_promote_candidate", "compression_guidelines_optimize", "compression_guidelines_activate", "memory_profile", "memory_entities_list", "memory_questions", "memory_last_recall", "memory_intent_debug", "memory_qmd_debug", "memory_graph_explain", "graph_snapshot", "memory_feedback", "memory_promote", "memory_outcome", "memory_action_apply", "context_checkpoint", "briefing", "review_list", "review_resolve", "contradiction_scan_run", "preference_drift_scan", "memory_summarize_hourly", "conversation_index_update", "profiling_report", "graph_edge_decay_run", "live_connectors_run", "peer_list", "peer_get", "peer_set", "peer_delete", "peer_profile_get", "peer_forget", "console_state", "dreams_status", "dreams_run", "support_passport_memory_preview", "support_passport_cards_list", "support_passport_draft_create", "support_passport_drafts_generate", "support_passport_card_replace", "support_passport_card_approve", "support_passport_card_reject", "support_passport_card_withdraw", "support_passport_grant_create", "support_passport_grants_list", "support_passport_grant_revoke", "support_passport_grant_read", "support_passport_grant_ask", "adapters_status", "offline_sync_snapshot", "offline_sync_snapshot_stream", "offline_sync_files", "offline_sync_file_content", "offline_sync_apply_file_content", "offline_sync_apply", "lcm_status", "memory_list", "recall_timings", "entity_list", "maintenance_status", "quality_status", "trust_zones_status", "trust_zones_records", "review_disposition", "review_deck_list", "review_deck_action", "review_deck_undo", "trust_zones_promote", "trust_zones_demo_seed", "citations_observed", "contradiction_detail", "graph_events", "chat_message", "chat_events"];
1491
- /**
1492
- * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,
1493
- * and the CLI command that expose the same operation. Derived from
1494
- * {@link OPERATION_NAMES} (single source of truth) so the runtime catalog
1495
- * used for token-capability validation cannot drift from the type. The
1496
- * fitness test in `access-surface-catalog.test.ts` treats the registered set
1497
- * as the migration state.
1498
- */
1499
- type OperationName = (typeof OPERATION_NAMES)[number];
1500
- /**
1501
- * Per-call context. `service` is the facade the handler delegates to; the
1502
- * boundary never reaches past it. `authenticatedPrincipal` is resolved by
1503
- * the SURFACE (MCP header / HTTP identity / CLI flag) before the boundary
1504
- * runs, so handlers stay principal-source-agnostic. `hooks` carries
1505
- * transport-level callbacks (e.g. HTTP write-quota enforcement) that must
1506
- * fire atomically inside the service call; surfaces that have no such hook
1507
- * leave it undefined.
1508
- */
1509
- interface OperationContext {
1510
- readonly service: EngramAccessService;
1511
- readonly authenticatedPrincipal?: string;
1512
- readonly operatorPrincipal?: string;
1513
- /** Per-request cancellation supplied by transports that own a request lifecycle. */
1514
- readonly abortSignal?: AbortSignal;
1515
- /** Server-resolved connector identity (Phase 1 provenance). Set by the HTTP auth boundary from the matched token's connector; flows to write handlers so frontmatter records which connector submitted the memory. Client-supplied values are always overridden. */
1516
- readonly sourceConnector?: string;
1517
- /**
1518
- * The PRE-validation raw envelope exactly as the transport supplied it
1519
- * (issue #2829). Handlers use it to retain input spellings the schema's
1520
- * transforms canonicalize — e.g. the memory-store category aliases — so
1521
- * diagnostics can name what the caller actually sent. Never trust it for
1522
- * behavior; only the parsed `input` is validated.
1523
- */
1524
- readonly rawInput?: unknown;
1525
- readonly hooks?: OperationHooks;
1526
- }
1527
- /**
1528
- * Transport-level callbacks a handler forwards into the service call. Kept
1529
- * narrow on purpose: the boundary owns validation + dispatch shape, not
1530
- * transport policy. Add fields here only when a surface genuinely needs a
1531
- * callback the service itself consumes.
1532
- */
1533
- interface OperationHooks {
1534
- /** HTTP write-quota gate; throws to reject the write when exhausted. */
1535
- readonly enforceWriteQuota?: () => void | Promise<void>;
1536
- /** Commit-boundary accounting for writes that can fail after durability. */
1537
- readonly recordWriteCommit?: () => void;
1538
- }
1539
- interface OperationSpec<In, Out> {
1540
- /** Canonical operation id; matches an {@link OperationName}. */
1541
- readonly name: OperationName;
1542
- readonly description: string;
1543
- /**
1544
- * Zod schema validating the raw request envelope. Input type may differ
1545
- * from the output `In` — schemas that canonicalize during parsing (issue
1546
- * #2829 category aliases) are first-class, declared truthfully instead of
1547
- * cast into an input-equals-output shape.
1548
- */
1549
- readonly schema: z.ZodType<In, z.ZodTypeDef, unknown>;
1550
- /** Handler invoked with the parsed input; throws EngramAccessInputError for domain faults. */
1551
- readonly handler: (input: In, ctx: OperationContext) => Promise<Out>;
1552
- /**
1553
- * Marks an operation as inherently FLEET-WIDE / global — it runs across ALL
1554
- * namespaces (or against a single non-namespaced global layer) and carries no
1555
- * `namespace` argument, so the MCP `tools/call` effective-namespace chokepoint
1556
- * never applies. When set, {@link defineOperation}'s run wrapper rejects any
1557
- * namespace-SCOPED token (fail closed) via assertFleetWideOperationAllowed
1558
- * BEFORE the handler — no side effect on denial. Unrestricted/legacy tokens
1559
- * (cron, internal callers, no capability record) are unaffected (issue #1850).
1560
- */
1561
- readonly fleetWide?: boolean;
1562
- /**
1563
- * Alternate op allow-list: when set, the token may invoke this operation if
1564
- * its ops allow-list permits ANY of these ops (instead of the default rule
1565
- * that requires the op's own {@link name}). Lets a read-only diagnostic be
1566
- * granted by the write ops it diagnoses — e.g. `namespace_writable` is
1567
- * runnable by any token permitted to `observe`/`memory_store`, so a token
1568
- * minted before the diagnostic op existed can still call it. Unrestricted /
1569
- * legacy tokens (no ops axis) are unaffected. Keeps the boundary and any HTTP
1570
- * transport for the same op enforcing ONE policy.
1571
- */
1572
- readonly allowedByOps?: readonly OperationName[];
1573
- }
1574
- interface BoundOperation<In = unknown, Out = unknown> {
1575
- readonly spec: OperationSpec<In, Out>;
1576
- /** Validate the raw envelope, then invoke the handler. Throws EngramAccessInputError on any validation failure. */
1577
- readonly run: (rawInput: unknown, ctx: OperationContext) => Promise<Out>;
1578
- }
1579
- /**
1580
- * Coerce boolean-like strings at the edge (rule 36). Accepts actual booleans
1581
- * and the string spellings clients send ("true"/"false"/"1"/"0"/"yes"/"no"/
1582
- * "on"/"off", case-insensitive). Rejects anything else loudly — `Boolean("false")`
1583
- * would silently be `true`, which is the bug rule 36 exists to prevent.
1584
- *
1585
- * `undefined`/`null`/`""` → `undefined`, so callers can keep treating an
1586
- * absent flag as "use the default" without a separate presence check.
1587
- */
1588
- declare function coerceBooleanLike(value: unknown): boolean | undefined;
1589
- /**
1590
- * Coerce + validate a positive integer from a numeric string or number
1591
- * (rule 28). Loosely-typed MCP/CLI clients send `"5"`; `typeof saved === "number"`
1592
- * on read-back would reject it later, so we coerce at the edge and reject
1593
- * booleans/objects loudly (`Number(true) === 1` would silently pass otherwise).
1594
- *
1595
- * `undefined`/`null`/`""` → `undefined`.
1596
- */
1597
- declare function coercePositiveInteger(value: unknown, label: string): number | undefined;
1598
- /**
1599
- * Expand `~` in a path-shaped input (rule 17). Node `fs` does NOT expand `~`;
1600
- * ad-hoc regex drifts. `undefined`/`null`/`""` → `undefined`.
1601
- */
1602
- declare function normalizeOptionalPath(value: unknown): string | undefined;
1603
- /**
1604
- * Turn a zod failure into an {@link EngramAccessInputError} whose message
1605
- * names the offending field and — for enum/union issues — lists the valid
1606
- * options, so the caller can correct rather than guess (rule 51).
1607
- */
1608
- declare function formatZodIssues(error: z.ZodError): string;
1609
- declare function defineOperation<In, Out>(spec: OperationSpec<In, Out>): BoundOperation<In, Out>;
1610
- /** Look up a registered operation by canonical name. */
1611
- declare function getOperation(name: OperationName): BoundOperation | undefined;
1612
- /** Whether a probe must authorize an operation's effective namespace. */
1613
- declare function operationRequiresAuthorizedNamespace(name: OperationName): boolean;
1614
- /** Whether an operation resolves its namespace from the authenticated principal. */
1615
- declare function operationUsesPrincipalNamespace(name: OperationName): boolean;
1616
- /** All registered operation names. */
1617
- declare function listRegisteredOperations(): readonly OperationName[];
1618
- /** Test-only: clear the registry so pilot definitions can be re-registered. */
1619
- declare function __resetRegistryForTest(): void;
1620
-
1621
- declare const SUPPORT_PASSPORT_CARD_CATEGORIES: readonly ["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"];
1622
- declare const SUPPORT_PASSPORT_CARD_STATUSES: readonly ["pending_review", "active", "rejected", "superseded", "archived"];
1623
- declare const SupportPassportCardCategorySchema: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1624
- declare const SupportPassportCardStatusSchema: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
1625
- declare const SupportPassportCardTitleSchema: z.ZodEffects<z.ZodString, string, string>;
1626
- declare const SupportPassportNamespaceSchema: z.ZodEffects<z.ZodString, string, string>;
1627
- declare const SupportPassportMemoryIdSchema: z.ZodString;
1628
- declare const SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH = 512;
1629
- declare const SupportPassportSourceMemoryIdSchema: z.ZodString;
1630
- declare const SupportPassportCardSchema: z.ZodObject<{
1631
- cardId: z.ZodString;
1632
- title: z.ZodEffects<z.ZodString, string, string>;
1633
- statement: z.ZodString;
1634
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1635
- status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
1636
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1637
- reviewBy: z.ZodEffects<z.ZodString, string, string>;
1638
- revision: z.ZodString;
1639
- }, "strict", z.ZodTypeAny, {
1640
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1641
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1642
- title: string;
1643
- updatedAt: string;
1644
- revision: string;
1645
- cardId: string;
1646
- statement: string;
1647
- reviewBy: string;
1648
- }, {
1649
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1650
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1651
- title: string;
1652
- updatedAt: string;
1653
- revision: string;
1654
- cardId: string;
1655
- statement: string;
1656
- reviewBy: string;
1657
- }>;
1658
- declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
1659
- cardId: z.ZodString;
1660
- title: z.ZodEffects<z.ZodString, string, string>;
1661
- statement: z.ZodString;
1662
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1663
- status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
1664
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1665
- reviewBy: z.ZodEffects<z.ZodString, string, string>;
1666
- revision: z.ZodString;
1667
- }, "strict", z.ZodTypeAny, {
1668
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1669
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1670
- title: string;
1671
- updatedAt: string;
1672
- revision: string;
1673
- cardId: string;
1674
- statement: string;
1675
- reviewBy: string;
1676
- }, {
1677
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1678
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1679
- title: string;
1680
- updatedAt: string;
1681
- revision: string;
1682
- cardId: string;
1683
- statement: string;
1684
- reviewBy: string;
1685
- }>, "many">, {
1686
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1687
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1688
- title: string;
1689
- updatedAt: string;
1690
- revision: string;
1691
- cardId: string;
1692
- statement: string;
1693
- reviewBy: string;
1694
- }[], {
1695
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1696
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1697
- title: string;
1698
- updatedAt: string;
1699
- revision: string;
1700
- cardId: string;
1701
- statement: string;
1702
- reviewBy: string;
1703
- }[]>;
1704
- declare const SupportPassportListCardsInputSchema: z.ZodObject<{
1705
- principal: z.ZodString;
1706
- }, "strict", z.ZodTypeAny, {
1707
- principal: string;
1708
- }, {
1709
- principal: string;
1710
- }>;
1711
- declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
1712
- principal: z.ZodString;
1713
- title: z.ZodEffects<z.ZodString, string, string>;
1714
- statement: z.ZodString;
1715
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1716
- reviewBy: z.ZodEffects<z.ZodString, string, string>;
1717
- }, "strict", z.ZodTypeAny, {
1718
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1719
- title: string;
1720
- statement: string;
1721
- reviewBy: string;
1722
- principal: string;
1723
- }, {
1724
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1725
- title: string;
1726
- statement: string;
1727
- reviewBy: string;
1728
- principal: string;
1729
- }>;
1730
- declare const SupportPassportCardMutationInputSchema: z.ZodObject<{
1731
- principal: z.ZodString;
1732
- cardId: z.ZodString;
1733
- expectedRevision: z.ZodString;
1734
- reasonCode: z.ZodOptional<z.ZodString>;
1735
- }, "strict", z.ZodTypeAny, {
1736
- cardId: string;
1737
- principal: string;
1738
- expectedRevision: string;
1739
- reasonCode?: string | undefined;
1740
- }, {
1741
- cardId: string;
1742
- principal: string;
1743
- expectedRevision: string;
1744
- reasonCode?: string | undefined;
1745
- }>;
1746
- declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
1747
- principal: z.ZodString;
1748
- cardId: z.ZodString;
1749
- expectedRevision: z.ZodString;
1750
- reasonCode: z.ZodOptional<z.ZodString>;
1751
- } & {
1752
- title: z.ZodEffects<z.ZodString, string, string>;
1753
- statement: z.ZodString;
1754
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1755
- reviewBy: z.ZodEffects<z.ZodString, string, string>;
1756
- }, "strict", z.ZodTypeAny, {
1757
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1758
- title: string;
1759
- cardId: string;
1760
- statement: string;
1761
- reviewBy: string;
1762
- principal: string;
1763
- expectedRevision: string;
1764
- reasonCode?: string | undefined;
1765
- }, {
1766
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1767
- title: string;
1768
- cardId: string;
1769
- statement: string;
1770
- reviewBy: string;
1771
- principal: string;
1772
- expectedRevision: string;
1773
- reasonCode?: string | undefined;
1774
- }>;
1775
- type SupportPassportCard = z.infer<typeof SupportPassportCardSchema>;
1776
- type SupportPassportCardCategory = z.infer<typeof SupportPassportCardCategorySchema>;
1777
- type SupportPassportCardStatus = z.infer<typeof SupportPassportCardStatusSchema>;
1778
- type SupportPassportManualDraftInput = z.input<typeof SupportPassportManualDraftInputSchema>;
1779
- type SupportPassportCardMutationInput = z.input<typeof SupportPassportCardMutationInputSchema>;
1780
- type SupportPassportReplaceCardInput = z.input<typeof SupportPassportReplaceCardInputSchema>;
1781
- type RevisionFields = Omit<SupportPassportCard, "revision">;
1782
- declare function computeSupportPassportCardRevision(fields: RevisionFields): string;
1783
-
1784
- interface SupportPassportOwnerScope {
1785
- principal: string;
1786
- namespace: string;
1787
- storage: StorageManager;
1788
- }
1789
- interface SupportPassportCardServiceDependencies {
1790
- resolveOwner(principal: string): Promise<SupportPassportOwnerScope>;
1791
- now?: () => Date;
1792
- }
1793
-
1794
- declare const SupportPassportGrantCardRefSchema: z.ZodObject<{
1795
- cardId: z.ZodString;
1796
- revision: z.ZodString;
1797
- }, "strict", z.ZodTypeAny, {
1798
- revision: string;
1799
- cardId: string;
1800
- }, {
1801
- revision: string;
1802
- cardId: string;
1803
- }>;
1804
- declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1805
- schemaVersion: z.ZodLiteral<1>;
1806
- stateVersion: z.ZodNumber;
1807
- grantId: z.ZodEffects<z.ZodString, string, string>;
1808
- namespace: z.ZodEffects<z.ZodString, string, string>;
1809
- principalHash: z.ZodString;
1810
- ownerLockKey: z.ZodString;
1811
- secretHash: z.ZodString;
1812
- cards: z.ZodArray<z.ZodObject<{
1813
- cardId: z.ZodString;
1814
- revision: z.ZodString;
1815
- }, "strict", z.ZodTypeAny, {
1816
- revision: string;
1817
- cardId: string;
1818
- }, {
1819
- revision: string;
1820
- cardId: string;
1821
- }>, "many">;
1822
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1823
- expiresAt: z.ZodEffects<z.ZodString, string, string>;
1824
- revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1825
- }, "strict", z.ZodTypeAny, {
1826
- namespace: string;
1827
- createdAt: string;
1828
- expiresAt: string;
1829
- schemaVersion: 1;
1830
- cards: {
1831
- revision: string;
1832
- cardId: string;
1833
- }[];
1834
- stateVersion: number;
1835
- grantId: string;
1836
- principalHash: string;
1837
- ownerLockKey: string;
1838
- secretHash: string;
1839
- revokedAt?: string | undefined;
1840
- }, {
1841
- namespace: string;
1842
- createdAt: string;
1843
- expiresAt: string;
1844
- schemaVersion: 1;
1845
- cards: {
1846
- revision: string;
1847
- cardId: string;
1848
- }[];
1849
- stateVersion: number;
1850
- grantId: string;
1851
- principalHash: string;
1852
- ownerLockKey: string;
1853
- secretHash: string;
1854
- revokedAt?: string | undefined;
1855
- }>, {
1856
- namespace: string;
1857
- createdAt: string;
1858
- expiresAt: string;
1859
- schemaVersion: 1;
1860
- cards: {
1861
- revision: string;
1862
- cardId: string;
1863
- }[];
1864
- stateVersion: number;
1865
- grantId: string;
1866
- principalHash: string;
1867
- ownerLockKey: string;
1868
- secretHash: string;
1869
- revokedAt?: string | undefined;
1870
- }, {
1871
- namespace: string;
1872
- createdAt: string;
1873
- expiresAt: string;
1874
- schemaVersion: 1;
1875
- cards: {
1876
- revision: string;
1877
- cardId: string;
1878
- }[];
1879
- stateVersion: number;
1880
- grantId: string;
1881
- principalHash: string;
1882
- ownerLockKey: string;
1883
- secretHash: string;
1884
- revokedAt?: string | undefined;
1885
- }>;
1886
- declare const SupportPassportCreateGrantInputSchema: z.ZodEffects<z.ZodObject<{
1887
- principal: z.ZodString;
1888
- cards: z.ZodArray<z.ZodObject<{
1889
- cardId: z.ZodString;
1890
- revision: z.ZodString;
1891
- }, "strict", z.ZodTypeAny, {
1892
- revision: string;
1893
- cardId: string;
1894
- }, {
1895
- revision: string;
1896
- cardId: string;
1897
- }>, "many">;
1898
- expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1899
- durationMs: z.ZodOptional<z.ZodNumber>;
1900
- }, "strict", z.ZodTypeAny, {
1901
- principal: string;
1902
- cards: {
1903
- revision: string;
1904
- cardId: string;
1905
- }[];
1906
- durationMs?: number | undefined;
1907
- expiresAt?: string | undefined;
1908
- }, {
1909
- principal: string;
1910
- cards: {
1911
- revision: string;
1912
- cardId: string;
1913
- }[];
1914
- durationMs?: number | undefined;
1915
- expiresAt?: string | undefined;
1916
- }>, {
1917
- principal: string;
1918
- cards: {
1919
- revision: string;
1920
- cardId: string;
1921
- }[];
1922
- durationMs?: number | undefined;
1923
- expiresAt?: string | undefined;
1924
- }, {
1925
- principal: string;
1926
- cards: {
1927
- revision: string;
1928
- cardId: string;
1929
- }[];
1930
- durationMs?: number | undefined;
1931
- expiresAt?: string | undefined;
1932
- }>;
1933
- declare const SupportPassportCreateGrantRequestSchema: z.ZodEffects<z.ZodObject<{
1934
- cardIds: z.ZodArray<z.ZodString, "many">;
1935
- cardRevisions: z.ZodArray<z.ZodObject<{
1936
- cardId: z.ZodString;
1937
- revision: z.ZodString;
1938
- }, "strict", z.ZodTypeAny, {
1939
- revision: string;
1940
- cardId: string;
1941
- }, {
1942
- revision: string;
1943
- cardId: string;
1944
- }>, "many">;
1945
- expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1946
- durationMs: z.ZodOptional<z.ZodNumber>;
1947
- }, "strict", z.ZodTypeAny, {
1948
- cardIds: string[];
1949
- cardRevisions: {
1950
- revision: string;
1951
- cardId: string;
1952
- }[];
1953
- durationMs?: number | undefined;
1954
- expiresAt?: string | undefined;
1955
- }, {
1956
- cardIds: string[];
1957
- cardRevisions: {
1958
- revision: string;
1959
- cardId: string;
1960
- }[];
1961
- durationMs?: number | undefined;
1962
- expiresAt?: string | undefined;
1963
- }>, {
1964
- cardIds: string[];
1965
- cardRevisions: {
1966
- revision: string;
1967
- cardId: string;
1968
- }[];
1969
- durationMs?: number | undefined;
1970
- expiresAt?: string | undefined;
1971
- }, {
1972
- cardIds: string[];
1973
- cardRevisions: {
1974
- revision: string;
1975
- cardId: string;
1976
- }[];
1977
- durationMs?: number | undefined;
1978
- expiresAt?: string | undefined;
1979
- }>;
1980
- declare const SupportPassportOwnerCreateGrantRequestSchema: z.ZodEffects<z.ZodObject<{
1981
- cardIds: z.ZodArray<z.ZodString, "many">;
1982
- cardRevisions: z.ZodArray<z.ZodObject<{
1983
- cardId: z.ZodString;
1984
- revision: z.ZodString;
1985
- }, "strict", z.ZodTypeAny, {
1986
- revision: string;
1987
- cardId: string;
1988
- }, {
1989
- revision: string;
1990
- cardId: string;
1991
- }>, "many">;
1992
- expiresAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1993
- durationMs: z.ZodOptional<z.ZodNumber>;
1994
- }, "strict", z.ZodTypeAny, {
1995
- cardIds: string[];
1996
- cardRevisions: {
1997
- revision: string;
1998
- cardId: string;
1999
- }[];
2000
- durationMs?: number | undefined;
2001
- expiresAt?: string | undefined;
2002
- }, {
2003
- cardIds: string[];
2004
- cardRevisions: {
2005
- revision: string;
2006
- cardId: string;
2007
- }[];
2008
- durationMs?: number | undefined;
2009
- expiresAt?: string | undefined;
2010
- }>, {
2011
- cardIds: string[];
2012
- cardRevisions: {
2013
- revision: string;
2014
- cardId: string;
2015
- }[];
2016
- durationMs?: number | undefined;
2017
- expiresAt?: string | undefined;
2018
- }, {
2019
- cardIds: string[];
2020
- cardRevisions: {
2021
- revision: string;
2022
- cardId: string;
2023
- }[];
2024
- durationMs?: number | undefined;
2025
- expiresAt?: string | undefined;
2026
- }>;
2027
- declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
2028
- grantId: z.ZodEffects<z.ZodString, string, string>;
2029
- stateVersion: z.ZodNumber;
2030
- cards: z.ZodArray<z.ZodObject<{
2031
- cardId: z.ZodString;
2032
- revision: z.ZodString;
2033
- }, "strict", z.ZodTypeAny, {
2034
- revision: string;
2035
- cardId: string;
2036
- }, {
2037
- revision: string;
2038
- cardId: string;
2039
- }>, "many">;
2040
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2041
- expiresAt: z.ZodEffects<z.ZodString, string, string>;
2042
- revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2043
- status: z.ZodEnum<["active", "expired", "revoked"]>;
2044
- }, "strict", z.ZodTypeAny, {
2045
- createdAt: string;
2046
- expiresAt: string;
2047
- status: "active" | "expired" | "revoked";
2048
- cards: {
2049
- revision: string;
2050
- cardId: string;
2051
- }[];
2052
- stateVersion: number;
2053
- grantId: string;
2054
- revokedAt?: string | undefined;
2055
- }, {
2056
- createdAt: string;
2057
- expiresAt: string;
2058
- status: "active" | "expired" | "revoked";
2059
- cards: {
2060
- revision: string;
2061
- cardId: string;
2062
- }[];
2063
- stateVersion: number;
2064
- grantId: string;
2065
- revokedAt?: string | undefined;
2066
- }>;
2067
- declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
2068
- grant: z.ZodObject<{
2069
- grantId: z.ZodEffects<z.ZodString, string, string>;
2070
- stateVersion: z.ZodNumber;
2071
- cards: z.ZodArray<z.ZodObject<{
2072
- cardId: z.ZodString;
2073
- revision: z.ZodString;
2074
- }, "strict", z.ZodTypeAny, {
2075
- revision: string;
2076
- cardId: string;
2077
- }, {
2078
- revision: string;
2079
- cardId: string;
2080
- }>, "many">;
2081
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2082
- expiresAt: z.ZodEffects<z.ZodString, string, string>;
2083
- revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2084
- status: z.ZodEnum<["active", "expired", "revoked"]>;
2085
- }, "strict", z.ZodTypeAny, {
2086
- createdAt: string;
2087
- expiresAt: string;
2088
- status: "active" | "expired" | "revoked";
2089
- cards: {
2090
- revision: string;
2091
- cardId: string;
2092
- }[];
2093
- stateVersion: number;
2094
- grantId: string;
2095
- revokedAt?: string | undefined;
2096
- }, {
2097
- createdAt: string;
2098
- expiresAt: string;
2099
- status: "active" | "expired" | "revoked";
2100
- cards: {
2101
- revision: string;
2102
- cardId: string;
2103
- }[];
2104
- stateVersion: number;
2105
- grantId: string;
2106
- revokedAt?: string | undefined;
2107
- }>;
2108
- secret: z.ZodString;
2109
- }, "strict", z.ZodTypeAny, {
2110
- secret: string;
2111
- grant: {
2112
- createdAt: string;
2113
- expiresAt: string;
2114
- status: "active" | "expired" | "revoked";
2115
- cards: {
2116
- revision: string;
2117
- cardId: string;
2118
- }[];
2119
- stateVersion: number;
2120
- grantId: string;
2121
- revokedAt?: string | undefined;
2122
- };
2123
- }, {
2124
- secret: string;
2125
- grant: {
2126
- createdAt: string;
2127
- expiresAt: string;
2128
- status: "active" | "expired" | "revoked";
2129
- cards: {
2130
- revision: string;
2131
- cardId: string;
2132
- }[];
2133
- stateVersion: number;
2134
- grantId: string;
2135
- revokedAt?: string | undefined;
2136
- };
2137
- }>;
2138
- declare const SupportPassportPublicCardSchema: z.ZodObject<{
2139
- cardId: z.ZodString;
2140
- title: z.ZodString;
2141
- statement: z.ZodString;
2142
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
2143
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2144
- }, "strict", z.ZodTypeAny, {
2145
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2146
- title: string;
2147
- updatedAt: string;
2148
- cardId: string;
2149
- statement: string;
2150
- }, {
2151
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2152
- title: string;
2153
- updatedAt: string;
2154
- cardId: string;
2155
- statement: string;
2156
- }>;
2157
- declare const SupportPassportPublicGuideSchema: z.ZodObject<{
2158
- schemaVersion: z.ZodLiteral<1>;
2159
- grantId: z.ZodEffects<z.ZodString, string, string>;
2160
- expiresAt: z.ZodEffects<z.ZodString, string, string>;
2161
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2162
- cards: z.ZodArray<z.ZodObject<{
2163
- cardId: z.ZodString;
2164
- title: z.ZodString;
2165
- statement: z.ZodString;
2166
- category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
2167
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2168
- }, "strict", z.ZodTypeAny, {
2169
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2170
- title: string;
2171
- updatedAt: string;
2172
- cardId: string;
2173
- statement: string;
2174
- }, {
2175
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2176
- title: string;
2177
- updatedAt: string;
2178
- cardId: string;
2179
- statement: string;
2180
- }>, "many">;
2181
- }, "strict", z.ZodTypeAny, {
2182
- expiresAt: string;
2183
- schemaVersion: 1;
2184
- updatedAt: string;
2185
- cards: {
2186
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2187
- title: string;
2188
- updatedAt: string;
2189
- cardId: string;
2190
- statement: string;
2191
- }[];
2192
- grantId: string;
2193
- }, {
2194
- expiresAt: string;
2195
- schemaVersion: 1;
2196
- updatedAt: string;
2197
- cards: {
2198
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
2199
- title: string;
2200
- updatedAt: string;
2201
- cardId: string;
2202
- statement: string;
2203
- }[];
2204
- grantId: string;
2205
- }>;
2206
- declare const SupportPassportRevokeGrantInputSchema: z.ZodObject<{
2207
- principal: z.ZodString;
2208
- grantId: z.ZodEffects<z.ZodString, string, string>;
2209
- expectedStateVersion: z.ZodOptional<z.ZodNumber>;
2210
- }, "strict", z.ZodTypeAny, {
2211
- principal: string;
2212
- grantId: string;
2213
- expectedStateVersion?: number | undefined;
2214
- }, {
2215
- principal: string;
2216
- grantId: string;
2217
- expectedStateVersion?: number | undefined;
2218
- }>;
2219
- declare const SupportPassportListGrantsInputSchema: z.ZodObject<{
2220
- principal: z.ZodString;
2221
- }, "strict", z.ZodTypeAny, {
2222
- principal: string;
2223
- }, {
2224
- principal: string;
2225
- }>;
2226
- type SupportPassportGrantCardRef = z.infer<typeof SupportPassportGrantCardRefSchema>;
2227
- type SupportPassportGrantState = z.infer<typeof SupportPassportGrantStateSchema>;
2228
- type SupportPassportCreateGrantInput = z.input<typeof SupportPassportCreateGrantInputSchema>;
2229
- type SupportPassportCreateGrantRequest = z.input<typeof SupportPassportCreateGrantRequestSchema>;
2230
- type SupportPassportOwnerCreateGrantRequest = z.input<typeof SupportPassportOwnerCreateGrantRequestSchema>;
2231
- type SupportPassportOwnerGrant = z.infer<typeof SupportPassportOwnerGrantSchema>;
2232
- type SupportPassportCreatedGrant = z.infer<typeof SupportPassportCreatedGrantSchema>;
2233
- type SupportPassportPublicGuide = z.infer<typeof SupportPassportPublicGuideSchema>;
2234
- type SupportPassportRevokeGrantInput = z.input<typeof SupportPassportRevokeGrantInputSchema>;
2235
-
2236
- declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
2237
- schemaVersion: z.ZodLiteral<1>;
2238
- operation: z.ZodEnum<["draft_cards", "answer_question"]>;
2239
- actorHash: z.ZodString;
2240
- subjectIdsHash: z.ZodString;
2241
- modelUsed: z.ZodString;
2242
- route: z.ZodEnum<["local", "direct", "gateway", "unavailable"]>;
2243
- outputSchemaVersion: z.ZodLiteral<1>;
2244
- outcome: z.ZodEnum<["success", "error"]>;
2245
- errorClass: z.ZodOptional<z.ZodString>;
2246
- occurredAt: z.ZodString;
2247
- latencyMs: z.ZodNumber;
2248
- usage: z.ZodOptional<z.ZodObject<{
2249
- inputTokens: z.ZodOptional<z.ZodNumber>;
2250
- outputTokens: z.ZodOptional<z.ZodNumber>;
2251
- totalTokens: z.ZodOptional<z.ZodNumber>;
2252
- }, "strict", z.ZodTypeAny, {
2253
- inputTokens?: number | undefined;
2254
- outputTokens?: number | undefined;
2255
- totalTokens?: number | undefined;
2256
- }, {
2257
- inputTokens?: number | undefined;
2258
- outputTokens?: number | undefined;
2259
- totalTokens?: number | undefined;
2260
- }>>;
2261
- }, "strict", z.ZodTypeAny, {
2262
- schemaVersion: 1;
2263
- outcome: "error" | "success";
2264
- latencyMs: number;
2265
- modelUsed: string;
2266
- operation: "draft_cards" | "answer_question";
2267
- route: "unavailable" | "direct" | "local" | "gateway";
2268
- actorHash: string;
2269
- subjectIdsHash: string;
2270
- outputSchemaVersion: 1;
2271
- occurredAt: string;
2272
- usage?: {
2273
- inputTokens?: number | undefined;
2274
- outputTokens?: number | undefined;
2275
- totalTokens?: number | undefined;
2276
- } | undefined;
2277
- errorClass?: string | undefined;
2278
- }, {
2279
- schemaVersion: 1;
2280
- outcome: "error" | "success";
2281
- latencyMs: number;
2282
- modelUsed: string;
2283
- operation: "draft_cards" | "answer_question";
2284
- route: "unavailable" | "direct" | "local" | "gateway";
2285
- actorHash: string;
2286
- subjectIdsHash: string;
2287
- outputSchemaVersion: 1;
2288
- occurredAt: string;
2289
- usage?: {
2290
- inputTokens?: number | undefined;
2291
- outputTokens?: number | undefined;
2292
- totalTokens?: number | undefined;
2293
- } | undefined;
2294
- errorClass?: string | undefined;
2295
- }>, {
2296
- schemaVersion: 1;
2297
- outcome: "error" | "success";
2298
- latencyMs: number;
2299
- modelUsed: string;
2300
- operation: "draft_cards" | "answer_question";
2301
- route: "unavailable" | "direct" | "local" | "gateway";
2302
- actorHash: string;
2303
- subjectIdsHash: string;
2304
- outputSchemaVersion: 1;
2305
- occurredAt: string;
2306
- usage?: {
2307
- inputTokens?: number | undefined;
2308
- outputTokens?: number | undefined;
2309
- totalTokens?: number | undefined;
2310
- } | undefined;
2311
- errorClass?: string | undefined;
2312
- }, {
2313
- schemaVersion: 1;
2314
- outcome: "error" | "success";
2315
- latencyMs: number;
2316
- modelUsed: string;
2317
- operation: "draft_cards" | "answer_question";
2318
- route: "unavailable" | "direct" | "local" | "gateway";
2319
- actorHash: string;
2320
- subjectIdsHash: string;
2321
- outputSchemaVersion: 1;
2322
- occurredAt: string;
2323
- usage?: {
2324
- inputTokens?: number | undefined;
2325
- outputTokens?: number | undefined;
2326
- totalTokens?: number | undefined;
2327
- } | undefined;
2328
- errorClass?: string | undefined;
2329
- }>;
2330
- type SupportPassportModelAuditRecord = z.infer<typeof SupportPassportModelAuditRecordSchema>;
2331
- interface SupportPassportModelAuditSink {
2332
- record(record: SupportPassportModelAuditRecord): Promise<void>;
2333
- }
2334
- declare function hashSupportPassportAuditValues(domain: string, values: string[]): string;
2335
- declare class SupportPassportModelAuditStore implements SupportPassportModelAuditSink {
2336
- private memoryDir;
2337
- private auditDir;
2338
- private memoryRootReady?;
2339
- private readonly runWithHeldFileLock;
2340
- constructor(options: {
2341
- memoryDir: string;
2342
- withHeldFileLock?: typeof withHeldFileLock;
2343
- });
2344
- record(input: SupportPassportModelAuditRecord): Promise<void>;
2345
- private ensureSafeDirectories;
2346
- private ensureMemoryRoot;
2347
- }
2348
-
2349
- interface SupportPassportAccessSurfaceDependencies {
2350
- config: PluginConfig;
2351
- resolveOwner(principal: string): Promise<SupportPassportOwnerScope>;
2352
- resolveNamespace(namespace: string): Promise<StorageManager>;
2353
- modelAdapter?: SupportPassportModelAdapter;
2354
- audit?: SupportPassportModelAuditSink;
2355
- now?: () => Date;
2356
- platform?: NodeJS.Platform;
2357
- }
2358
- interface SupportPassportCreateGrantResult {
2359
- grantId: string;
2360
- secret: string;
2361
- expiresAt: string;
2362
- version: number;
2363
- }
2364
- interface SupportPassportRevokeGrantResult {
2365
- grantId: string;
2366
- revokedAt: string;
2367
- version: number;
2368
- }
2369
- type SupportPassportMemoryPreview = {
2370
- found: false;
2371
- } | {
2372
- found: true;
2373
- memory: {
2374
- id: string;
2375
- content: string;
2376
- revision: string;
2377
- };
2378
- };
2379
- declare class SupportPassportAccessSurface {
2380
- private readonly config;
2381
- private readonly cardService;
2382
- private readonly grantService;
2383
- private readonly draftService;
2384
- private readonly questionService;
2385
- private readonly resolveOwner;
2386
- private readonly now;
2387
- private readonly platformSupported;
2388
- constructor(dependencies: SupportPassportAccessSurfaceDependencies);
2389
- listCards(principal: string): Promise<SupportPassportCard[]>;
2390
- previewMemory(principal: string, memoryId: string): Promise<SupportPassportMemoryPreview>;
2391
- createManualDraft(principal: string, input: {
2392
- title: string;
2393
- statement: string;
2394
- category: SupportPassportCardCategory;
2395
- reviewBy: string;
2396
- }, options?: {
2397
- signal?: AbortSignal;
2398
- onCommitted?: () => void;
2399
- }): Promise<SupportPassportCard>;
2400
- generateDrafts(principal: string, input: {
2401
- sourceMemoryIds: string[];
2402
- sourceMemoryRevisions: Array<{
2403
- memoryId: string;
2404
- revision: string;
2405
- }>;
2406
- consent: boolean;
2407
- signal?: AbortSignal;
2408
- onCommitted?: () => void;
2409
- }): Promise<SupportPassportCard[]>;
2410
- replaceCard(principal: string, cardId: string, input: {
2411
- title: string;
2412
- statement: string;
2413
- category: SupportPassportCardCategory;
2414
- reviewBy: string;
2415
- expectedRevision: string;
2416
- }, options?: {
2417
- signal?: AbortSignal;
2418
- onCommitted?: () => void;
2419
- }): Promise<SupportPassportCard>;
2420
- approveCard(principal: string, cardId: string, input: {
2421
- expectedRevision: string;
2422
- reasonCode?: string;
2423
- }, options?: {
2424
- signal?: AbortSignal;
2425
- onCommitted?: () => void;
2426
- }): Promise<SupportPassportCard>;
2427
- rejectCard(principal: string, cardId: string, input: {
2428
- expectedRevision: string;
2429
- reasonCode?: string;
2430
- }, options?: {
2431
- signal?: AbortSignal;
2432
- onCommitted?: () => void;
2433
- }): Promise<SupportPassportCard>;
2434
- withdrawCard(principal: string, cardId: string, input: {
2435
- expectedRevision: string;
2436
- reasonCode?: string;
2437
- }, options?: {
2438
- signal?: AbortSignal;
2439
- onCommitted?: () => void;
2440
- }): Promise<SupportPassportCard>;
2441
- createGrant(principal: string, input: SupportPassportCreateGrantRequest, options?: {
2442
- signal?: AbortSignal;
2443
- onCommitted?: () => void;
2444
- }): Promise<SupportPassportCreateGrantResult>;
2445
- listGrants(principal: string): Promise<SupportPassportOwnerGrant[]>;
2446
- revokeGrant(principal: string, grantId: string, input: {
2447
- expectedVersion?: number;
2448
- }, options?: {
2449
- signal?: AbortSignal;
2450
- onCommitted?: () => void;
2451
- }): Promise<SupportPassportRevokeGrantResult>;
2452
- readGrant(grantId: string, secret: string): Promise<SupportPassportPublicGuide>;
2453
- askGrant(grantId: string, secret: string, question: string, signal?: AbortSignal): Promise<SupportPassportAnswerOutput>;
2454
- private requireEnabled;
2455
- private requirePrincipal;
2456
- private invalidGrantInput;
2457
- }
2458
-
2459
- type JsonRpcId = string | number | null;
2460
- type JsonRpcRequest = {
2461
- jsonrpc?: string;
2462
- id?: JsonRpcId;
2463
- method?: string;
2464
- params?: Record<string, unknown>;
2465
- };
2466
- type McpRequestOptions = {
2467
- principalOverride?: string;
2468
- namespaceOverride?: string;
2469
- sessionKeyOverride?: string;
2470
- sessionId?: string;
2471
- correlationId?: string;
2472
- /**
2473
- * Write-quota enforcer forwarded into observe's idempotency lock
2474
- * (issue #1649). Only the MCP-over-HTTP transport supplies this (it owns
2475
- * the write-rate-limit window); the standalone MCP server has no quota.
2476
- */
2477
- enforceWriteQuota?: () => void | Promise<void>;
2478
- /**
2479
- * Called once when a lifecycle write reaches its durable commit boundary.
2480
- * HTTP transports use this to account writes even when post-commit work
2481
- * fails or the client disconnects before a response is available.
2482
- */
2483
- recordWriteCommit?: () => void;
2484
- /**
2485
- * Server-resolved connector identity (Phase 1 provenance). Set by the HTTP
2486
- * auth boundary from the matched token entry's connector; threaded into
2487
- * the operation context so write handlers stamp it onto frontmatter.
2488
- */
2489
- sourceConnector?: string;
2490
- /** HTTP request lifetime; absent for the standalone stdio transport. */
2491
- abortSignal?: AbortSignal;
2492
- };
2493
- type McpTool = {
2494
- name: string;
2495
- title?: string;
2496
- description: string;
2497
- inputSchema: Record<string, unknown>;
2498
- outputSchema?: Record<string, unknown>;
2499
- annotations?: Record<string, unknown>;
2500
- _meta?: Record<string, unknown>;
2501
- };
2502
- /**
2503
- * MCP protocol versions this server understands, ordered newest → oldest.
2504
- * Exported so the HTTP transport can validate the `MCP-Protocol-Version`
2505
- * header and reject requests advertising an unknown version.
2506
- */
2507
- declare const MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
2508
- declare const MCP_MIGRATED_OPERATIONS: Readonly<Record<string, OperationName>>;
2509
- declare class EngramMcpServer {
2510
- private readonly service;
2511
- private buffer;
2512
- private flushTask;
2513
- private readonly tools;
2514
- private readonly resources;
2515
- private readonly resourceTextByUri;
2516
- private readonly authenticatedPrincipal?;
2517
- /**
2518
- * MCP client info keyed by server-assigned session ID. On each `initialize`
2519
- * handshake the server generates a UUID, stores the client's clientInfo
2520
- * against it, and returns the ID as `Mcp-Session-Id` in the response
2521
- * metadata. Subsequent requests from the same client include this header,
2522
- * allowing per-session clientInfo lookup without cross-session leaks.
2523
- */
2524
- private clientInfoBySession;
2525
- /**
2526
- * Session IDs generated during initialize, keyed by caller-supplied correlation
2527
- * ID (unique per HTTP request) to avoid collisions when multiple clients send
2528
- * initialize with the same JSON-RPC id concurrently.
2529
- */
2530
- private initSessionIds;
2531
- /**
2532
- * Whether oai-mem-citation guidance is explicitly enabled via config.
2533
- */
2534
- private readonly citationsEnabled;
2535
- /** Whether to auto-enable citations for Codex adapter connections. */
2536
- private readonly citationsAutoDetect;
2537
- /**
2538
- * Whether to advertise legacy `engram.*` tool aliases alongside the canonical
2539
- * `remnic.*` names (issue #1427). Defaults to true for backward compatibility;
2540
- * set false to halve the advertised `tools/list` surface.
2541
- */
2542
- private readonly emitLegacyTools;
2543
- /**
2544
- * Whether the `coding_decision` tool should appear in `tools/list`. Gated on
2545
- * `codingKnowledge.enabled && codingKnowledge.decisionRecords` (issue #1548
2546
- * Track A PR 2, rule 39). When false the tools array is byte-identical to
2547
- * pre-feature.
2548
- */
2549
- private readonly codingDecisionVisible;
2550
- /**
2551
- * Whether the `coding_architecture` tool should appear in `tools/list`.
2552
- * Gated on `codingKnowledge.enabled && codingKnowledge.architectureCard`
2553
- * (issue #1548 Track A PR 3, rule 39).
2554
- */
2555
- private readonly architectureCardVisible;
2556
- /**
2557
- * Whether the 14 codegraph parity tools should appear in `tools/list`
2558
- * (issue #1554). Config-only -- runtime availability is checked at call
2559
- * time. When false the tools array is byte-identical to pre-feature.
2560
- */
2561
- private readonly codegraphVisible;
2562
- private readonly sessionDeltaVisible;
2563
- /**
2564
- * Whether the two correction tools (memory_correct_plan / memory_correct_apply)
2565
- * should appear in `tools/list` (issue #1580). Gated on `correction.enabled`
2566
- * (default true — plan is read-only; safe on). When false the tools array is
2567
- * byte-identical to pre-feature.
2568
- */
2569
- private readonly correctionVisible;
2570
- /**
2571
- * Whether the `memory_chat` tool should appear in `tools/list` (issue
2572
- * #1583). Gated on `chat.enabled`. When false the tools array is
2573
- * byte-identical to pre-feature (rule 39).
2574
- */
2575
- private readonly chatVisible;
2576
- constructor(service: EngramAccessService, options?: {
2577
- principal?: string;
2578
- citationsEnabled?: boolean;
2579
- citationsAutoDetect?: boolean;
2580
- emitLegacyTools?: boolean;
2581
- codingDecisionVisible?: boolean;
2582
- architectureCardVisible?: boolean;
2583
- codegraphVisible?: boolean;
2584
- sessionDeltaVisible?: boolean;
2585
- correctionVisible?: boolean;
2586
- chatVisible?: boolean;
2587
- });
2588
- /** Get clientInfo for a specific MCP session. Returns undefined for non-MCP requests. */
2589
- getClientInfo(sessionId?: string): {
2590
- name: string;
2591
- version?: string;
2592
- } | undefined;
2593
- /** Pop the session ID generated during an initialize handshake, keyed by correlation ID. */
2594
- popInitSessionId(correlationId: string): string | undefined;
2595
- handleRequest(request: JsonRpcRequest, options?: McpRequestOptions): Promise<Record<string, unknown> | null>;
2596
- runStdio(input: Readable, output: Writable): Promise<void>;
2597
- private scheduleFlush;
2598
- private flushBuffer;
2599
- private writeMessage;
2600
- private toolAcceptsArgument;
2601
- /**
2602
- * Whether a tool accepts a `namespace` argument — i.e. it is a
2603
- * namespace-scoped operation whose effective namespace MUST be gated by the
2604
- * per-token allow-list. Exposed (public) so the HTTP MCP transport can run
2605
- * the SAME effective-namespace enforcement the REST surface runs, without
2606
- * duplicating the tool-schema introspection (issue #1850). Namespace-
2607
- * agnostic tools (peer/wearables/etc.) return false and stay ungated,
2608
- * matching the REST surface where those routes never call resolveNamespace.
2609
- */
2610
- toolAcceptsNamespace(name: string): boolean;
2611
- /**
2612
- * Determine whether oai-mem-citation guidance should be appended to recall.
2613
- * Returns true when explicitly enabled via config OR when auto-detect is
2614
- * active and the current MCP session belongs to a Codex adapter client.
2615
- *
2616
- * When no sessionId is provided (e.g., stdio transport where there are no
2617
- * HTTP headers carrying mcp-session-id), fall back to checking if there is
2618
- * exactly one known session whose clientInfo matches the Codex pattern.
2619
- * This covers the common stdio case where a single client connection exists.
2620
- */
2621
- private shouldEmitCitations;
2622
- /** Check whether a clientInfo record identifies a Codex adapter client. */
2623
- private isCodexClient;
2624
- /**
2625
- * Build citation metadata for each recall result that has a path.
2626
- * Line range defaults to 1-1 when not determinable from the summary.
2627
- */
2628
- private buildRecallCitations;
2629
- private callTool;
2630
- }
2631
-
2632
- /**
2633
- * `who_knows` — rank entities by demonstrated expertise for a topic
2634
- * (issue #2057).
2635
- *
2636
- * Deterministic scoring over existing entity + fact data. No LLM, no QMD:
2637
- * a single pass over the namespace-scoped corpus (`readAllMemories`) plus
2638
- * entity files. Signals:
2639
- *
2640
- * 1. Entity mentions co-occurring with topic tokens (entityRef + name/alias
2641
- * mention in matching memory content).
2642
- * 2. Speaker/authorship attribution ("Alice said/explained/…") when present —
2643
- * small multiplicative bonus.
2644
- * 3. Recency as a tie-break only (per the issue): newer evidence ranks higher
2645
- * when scores tie; entity id is the final stable key (total order).
2646
- * 4. Existing importance + confidence frontmatter weight each evidence item.
2647
- *
2648
- * Pure functions live here so tests can exercise scoring without booting an
2649
- * orchestrator; the access service supplies namespace-scoped data. MCP tool
2650
- * definitions are exported for access-mcp.ts to spread into `tools/list`
2651
- * (same pattern as `meetings/mcp-tools.ts`).
2652
- */
2653
-
2654
- /** Default result count (issue #2057: "small ranked list"). */
2655
- declare const WHO_KNOWS_DEFAULT_LIMIT = 5;
2656
- /** Upper bound for `limit`. Rejects unbounded fan-out without silently clamping. */
2657
- declare const WHO_KNOWS_MAX_LIMIT = 50;
2658
- /** Evidence refs retained per hit. Independent of the result limit. */
2659
- declare const WHO_KNOWS_MAX_EVIDENCE = 50;
2660
- /** Multiplicative bonus for evidence with direct speaker attribution. */
2661
- declare const WHO_KNOWS_AUTHORSHIP_BONUS = 1.5;
2662
- /** Minimal storage surface `who_knows` needs — satisfied by `StorageManager`. */
2663
- interface WhoKnowsStorage {
2664
- readAllMemories(): Promise<MemoryFile[]>;
2665
- listEntityNames(): Promise<string[]>;
2666
- readEntity(name: string): Promise<string>;
2667
- }
2668
- /** Flattened entity input for scoring. `id` is the entity key (file stem). */
2669
- interface WhoKnowsEntity {
2670
- id: string;
2671
- name: string;
2672
- aliases: readonly string[];
2673
- }
2674
- /** Evidence reference — ids/paths/timestamps only, no raw content. */
2675
- interface WhoKnowsEvidence {
2676
- id: string;
2677
- path: string;
2678
- updated: string;
2679
- }
2680
- interface WhoKnowsHit {
2681
- entityId: string;
2682
- entityName: string | null;
2683
- /** Normalized 0–1 relative to the top hit (top = 1). */
2684
- score: number;
2685
- rationale: string;
2686
- evidenceCount: number;
2687
- lastSeen: string | null;
2688
- evidence: WhoKnowsEvidence[];
2689
- }
2690
- interface WhoKnowsResult {
2691
- topic: string;
2692
- results: WhoKnowsHit[];
2693
- }
2694
- /** Load all entities for a namespace-scoped storage as scoring input. */
2695
- declare function loadWhoKnowsEntities(storage: WhoKnowsStorage, entitySchemas?: PluginConfig["entitySchemas"]): Promise<WhoKnowsEntity[]>;
2696
- /** Validate topic + limit at every entrypoint. Shared by service/CLI/HTTP. */
2697
- declare function validateWhoKnowsInput(topic: string, limit: number): void;
2698
- /** Lowercase alphanumeric topic tokens, stopwords dropped, deduplicated. */
2699
- declare function tokenizeTopic(topic: string): string[];
2700
- /**
2701
- * Deterministic ranking. Pure: same inputs → same output, total order via
2702
- * (score desc, lastSeen desc, entityId asc) so ties never depend on scan
2703
- * order (sort-stability rule).
2704
- */
2705
- declare function computeWhoKnows(input: {
2706
- topic: string;
2707
- limit: number;
2708
- memories: readonly MemoryFile[];
2709
- entities: readonly WhoKnowsEntity[];
2710
- }): WhoKnowsResult;
2711
- declare const WHO_KNOWS_MCP_TOOLS: McpTool[];
2712
- interface WhoKnowsHttpOutcome {
2713
- status: number;
2714
- body: unknown;
2715
- }
2716
- declare function handleWhoKnowsHttpQuery(deps: {
2717
- getParam: (name: string) => string | null;
2718
- resolveNamespace: (namespace: string | undefined) => string | undefined;
2719
- principal?: string;
2720
- run: (request: {
2721
- topic: string;
2722
- limit?: number;
2723
- namespace?: string;
2724
- authenticatedPrincipal?: string;
2725
- }) => Promise<WhoKnowsResult>;
2726
- }): Promise<WhoKnowsHttpOutcome>;
2727
-
2728
- /**
2729
- * Memory subject: user-centric vs agent-centric classification (issue #2372).
2730
- *
2731
- * Scope says WHERE a memory lives; subject says WHOM it is about — and that
2732
- * is what determines where it may safely go. `user` memories model one
2733
- * person (preferences, relationships, biography, moments, commitments);
2734
- * `agent` memories model how to operate (procedures, principles,
2735
- * tool-usage lessons, debugging strategies, environment facts with no
2736
- * personal content).
2737
- *
2738
- * This module owns, in one place:
2739
- * - the deterministic write-time classification (category defaults with an
2740
- * optional extractor override),
2741
- * - the promotion guard shared by EVERY promotion surface (spaces promote
2742
- * AND scope-profile promotion targets — AGENTS.md §27 uniform gating),
2743
- * - read-only promotion-candidate surfacing (reuse-signaled agent-subject
2744
- * memories with no equivalent in the target layer), and
2745
- * - the deterministic backfill pass (shadow/apply, no LLM).
2746
- */
2747
-
2748
- declare const SUBJECT_VALUES: readonly ["user", "agent"];
2749
- declare const SUBJECT_GUARD_MODES: readonly ["off", "warn", "enforce"];
2750
- /** The CLI / per-call override that permits a user-subject promotion. */
2751
- declare const SUBJECT_GUARD_OVERRIDE_FLAG = "--allow-user-subject";
2752
- declare function isMemorySubject(value: unknown): value is MemorySubject;
2753
- declare function isSubjectGuardMode(value: unknown): value is SubjectGuardMode;
2754
- declare function subjectDefaultForCategory(category: MemoryCategory): MemorySubject;
2755
- /**
2756
- * Resolve the write-time subject: the extractor's single-token value when it
2757
- * emitted a valid one, else the category default. Never reclassifies on read.
2758
- */
2759
- declare function resolveWriteSubject(category: MemoryCategory, extractorValue: unknown): MemorySubject;
2760
- /** Scope-profile promotion targets that are shared layers. */
2761
- declare function isSharedPromotionTarget(target: string): boolean;
2762
- interface SubjectGuardDecision {
2763
- action: "allow" | "warn" | "reject";
2764
- /** Effective subject — an absent subject resolves to "user" (fail closed, §36). */
2765
- effectiveSubject: MemorySubject;
2766
- /** Structured reason; empty string when action === "allow". */
2767
- reason: string;
2768
- /** The override that permits this promotion when action is reject/warn. */
2769
- override: typeof SUBJECT_GUARD_OVERRIDE_FLAG;
2770
- }
2771
- /**
2772
- * Evaluate one promotion against the subject guard. Shared by the spaces
2773
- * promotion workflow and the scope-profile promotion targets so the two
2774
- * surfaces cannot drift (issue #2372 acceptance 2, AGENTS.md §27).
2775
- *
2776
- * - mode "off", non-shared targets, agent-subject memories, and explicit
2777
- * `allowUserSubject` overrides all allow.
2778
- * - a `user`-subject memory (or a memory with NO subject — fail closed)
2779
- * promoted to a shared layer warns under "warn" and rejects under
2780
- * "enforce", with the override named in the reason (§39: never a silent
2781
- * accept).
2782
- */
2783
- declare function evaluateSubjectGuard(params: {
2784
- subject: MemorySubject | undefined;
2785
- sharedTarget: boolean;
2786
- mode: SubjectGuardMode;
2787
- allowUserSubject?: boolean;
2788
- }): SubjectGuardDecision;
2789
- type PromotionReuseSignal = "reinforcement" | "memory_worth" | "access_count";
2790
- interface PromotionCandidate {
2791
- id: string;
2792
- path: string;
2793
- category: MemoryCategory;
2794
- content: string;
2795
- accessCount: number;
2796
- reinforcementCount: number;
2797
- mwSuccess: number;
2798
- mwFail: number;
2799
- reuseSignal: PromotionReuseSignal;
2800
- }
2801
- /** Default reuse-signal threshold for `accessCount` (config `promotionCandidates.minAccessCount`). */
2802
- declare const PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS = 3;
2803
- /** Canonical content form for target-equivalence checks (same normalize pipeline as dedup). */
2804
- declare function promotionCandidateKey(content: string): string;
2805
- /**
2806
- * List `subject: "agent"` memories that (a) are active, (b) show a reuse
2807
- * signal (`reinforcement_count > 0` OR `mw_success > mw_fail` OR
2808
- * `accessCount >= minAccessCount`), and (c) have no equivalent already in
2809
- * the promotion target layer (content-hash check via the dedup normalizer).
2810
- * Pure over the two memory lists; callers resolve namespaces.
2811
- */
2812
- declare function computePromotionCandidates(options: {
2813
- memories: MemoryFile[];
2814
- targetMemories: MemoryFile[];
2815
- minAccessCount: number;
2816
- limit?: number;
2817
- }): PromotionCandidate[];
2818
- interface PromotionCandidatesResult {
2819
- namespace: string;
2820
- targetNamespace: string;
2821
- minAccessCount: number;
2822
- candidates: PromotionCandidate[];
2823
- }
2824
- declare const PROMOTION_CANDIDATES_MCP_TOOLS: McpTool[];
2825
- /**
2826
- * Storage surface the backfill needs (mirrors pattern-reinforcement's
2827
- * structural interface so tests can pass an in-memory stub).
2828
- * `writeMemoryFrontmatter` invalidates caches and syncs the fact-hash index
2829
- * (§25/§31), so a stamped memory is immediately discoverable.
2830
- */
2831
- interface SubjectBackfillStorage {
2832
- readAllMemories(): Promise<MemoryFile[]>;
2833
- writeMemoryFrontmatter(memory: MemoryFile, patch: Partial<MemoryFile["frontmatter"]>): Promise<boolean>;
2834
- }
2835
- interface SubjectBackfillReport {
2836
- mode: "shadow" | "apply";
2837
- scanned: number;
2838
- stamped: number;
2839
- alreadyStamped: number;
2840
- stamps: Array<{
2841
- id: string;
2842
- category: MemoryCategory;
2843
- subject: MemorySubject;
2844
- path: string;
2845
- }>;
2846
- }
2847
- /**
2848
- * Stamp `subject` on memories that have none, using ONLY the deterministic
2849
- * category defaults (never an LLM, never reclassifying an existing subject —
2850
- * issue #2372 §1.3). `shadow` reports the intended stamps without writing;
2851
- * `apply` writes through `writeMemoryFrontmatter`, which invalidates the
2852
- * memory caches and re-syncs the fact-hash index.
2853
- */
2854
- declare function backfillMemorySubjects(options: {
2855
- storage: SubjectBackfillStorage;
2856
- mode: "shadow" | "apply";
2857
- }): Promise<SubjectBackfillReport>;
2858
-
2859
- declare abstract class SupportPassportAccessServiceBase {
2860
- private _supportPassportSurface;
2861
- abstract get configRef(): PluginConfig;
2862
- abstract get localLlmRef(): LocalLlmClient | null;
2863
- abstract getWritableStorageForNamespace(namespace?: string, principal?: string): Promise<SupportPassportOwnerScope>;
2864
- abstract getStorageForResolvedNamespace(namespace: string): Promise<StorageManager>;
2865
- get supportPassportGatewayRouteRef(): SupportPassportModelRoute | null;
2866
- get supportPassportPlatformRef(): NodeJS.Platform;
2867
- private getSupportPassportSurface;
2868
- get supportPassportEnabled(): boolean;
2869
- supportPassportListCards(principal: string): Promise<SupportPassportCard[]>;
2870
- supportPassportPreviewMemory(principal: string, memoryId: string): Promise<SupportPassportMemoryPreview>;
2871
- supportPassportCreateManualDraft(principal: string, input: {
2872
- title: string;
2873
- statement: string;
2874
- category: SupportPassportCardCategory;
2875
- reviewBy: string;
2876
- }, options?: {
2877
- signal?: AbortSignal;
2878
- onCommitted?: () => void;
2879
- }): Promise<SupportPassportCard>;
2880
- supportPassportGenerateDrafts(principal: string, input: {
2881
- sourceMemoryIds: string[];
2882
- sourceMemoryRevisions: Array<{
2883
- memoryId: string;
2884
- revision: string;
2885
- }>;
2886
- consent: boolean;
2887
- signal?: AbortSignal;
2888
- onCommitted?: () => void;
2889
- }): Promise<SupportPassportCard[]>;
2890
- supportPassportReplaceCard(principal: string, cardId: string, input: {
2891
- title: string;
2892
- statement: string;
2893
- category: SupportPassportCardCategory;
2894
- reviewBy: string;
2895
- expectedRevision: string;
2896
- }, options?: {
2897
- signal?: AbortSignal;
2898
- onCommitted?: () => void;
2899
- }): Promise<SupportPassportCard>;
2900
- supportPassportApproveCard(principal: string, cardId: string, input: {
2901
- expectedRevision: string;
2902
- reasonCode?: string;
2903
- }, options?: {
2904
- signal?: AbortSignal;
2905
- onCommitted?: () => void;
2906
- }): Promise<SupportPassportCard>;
2907
- supportPassportRejectCard(principal: string, cardId: string, input: {
2908
- expectedRevision: string;
2909
- reasonCode?: string;
2910
- }, options?: {
2911
- signal?: AbortSignal;
2912
- onCommitted?: () => void;
2913
- }): Promise<SupportPassportCard>;
2914
- supportPassportWithdrawCard(principal: string, cardId: string, input: {
2915
- expectedRevision: string;
2916
- reasonCode?: string;
2917
- }, options?: {
2918
- signal?: AbortSignal;
2919
- onCommitted?: () => void;
2920
- }): Promise<SupportPassportCard>;
2921
- supportPassportCreateGrant(principal: string, input: SupportPassportCreateGrantRequest, options?: {
2922
- signal?: AbortSignal;
2923
- onCommitted?: () => void;
2924
- }): Promise<SupportPassportCreateGrantResult>;
2925
- supportPassportListGrants(principal: string): Promise<SupportPassportOwnerGrant[]>;
2926
- supportPassportRevokeGrant(principal: string, grantId: string, input: {
2927
- expectedVersion?: number;
2928
- }, options?: {
2929
- signal?: AbortSignal;
2930
- onCommitted?: () => void;
2931
- }): Promise<SupportPassportRevokeGrantResult>;
2932
- supportPassportReadGrant(grantId: string, secret: string): Promise<SupportPassportPublicGuide>;
2933
- supportPassportAskGrant(grantId: string, secret: string, question: string, signal?: AbortSignal): Promise<SupportPassportAnswerOutput>;
2934
- }
2935
-
2936
- type AccessProfilingReportRequest = {
2937
- format?: string;
2938
- limit?: number;
2939
- };
2940
- type AccessProfilingReportResponse = {
2941
- enabled: boolean;
2942
- format?: "ascii" | "json";
2943
- report?: string;
2944
- traces?: unknown[];
2945
- stats?: unknown;
2946
- bottleneck?: string | null;
2947
- reason?: string;
2948
- message?: string;
2949
- };
2950
- declare const ENGRAM_ACCESS_WRITE_SCHEMA_VERSION = 1;
2951
- /**
2952
- * Recall request. Wire fields derive from the canonical zod schema
2953
- * (`recallRequestSchema`, access-schema.ts — issue #2482) so the HTTP body,
2954
- * the MCP args, and the service share ONE model. The overlay below carries
2955
- * server-resolved transport fields no client may set.
2956
- */
2957
- interface EngramAccessRecallRequest extends RecallRequest {
2958
- authenticatedPrincipal?: string;
2959
- /** Trusted connector identity resolved at the transport boundary. */
2960
- sourceConnector?: string;
2961
- abortSignal?: AbortSignal;
2962
- /**
2963
- * Internal, server-set field (issue #1906): wall-clock ms the caller
2964
- * waited for a per-principal recall slot / single-flight leader before
2965
- * execution. Set by `recall()`, forwarded into `RecallInvocationOptions`,
2966
- * and folded additively into recall-timings. Not part of the zod schema
2967
- * (same pattern as `abortSignal`).
2968
- */
2969
- queueWaitMs?: number;
2970
- }
2971
- /**
2972
- * Standalone request to attach / clear the coding context for a session
2973
- * without performing a recall. Used by the Claude Code / Codex connectors
2974
- * at session start, and by the `remnic.set_coding_context` MCP tool (PR 7).
2975
- */
2976
- interface EngramAccessSetCodingContextRequest {
2977
- sessionKey: string;
2978
- codingContext: {
2979
- projectId: string;
2980
- branch: string | null;
2981
- rootPath: string;
2982
- defaultBranch: string | null;
2983
- } | null;
2984
- }
2985
- interface EngramAccessRecallResponse {
2986
- query: string;
2987
- sessionKey?: string;
2988
- namespace: string;
2989
- context: string;
2990
- /** Request-local split used by adapters that must re-render a tighter prompt budget. */
2991
- contextComposition?: RecallContextComposition;
2992
- count: number;
2993
- memoryIds: string[];
2994
- results: EngramAccessMemorySummary[];
2995
- recordedAt?: string;
2996
- traceId?: string;
2997
- plannerMode?: RecallPlanMode;
2998
- fallbackUsed: boolean;
2999
- sourcesUsed: string[];
3000
- /**
3001
- * Disclosure depth applied to this recall (issue #677). Reflects the
3002
- * caller-requested level after defaulting; useful for surfaces that want
3003
- * to render a "served at depth X" hint without re-deriving it. PR 1 of
3004
- * #677 wires this end-to-end for plumbing only — section/raw payload
3005
- * shaping ships in later PRs.
3006
- */
3007
- disclosure: RecallDisclosure;
3008
- budgetsApplied?: LastRecallSnapshot["budgetsApplied"];
3009
- auditAnomalies?: AnomalyDetectorResult;
3010
- budgetWarning?: BudgetWarning;
3011
- latencyMs?: number;
3012
- debug?: {
3013
- snapshot?: LastRecallSnapshot;
3014
- intent?: IntentDebugSnapshot | null;
3015
- graph?: GraphRecallSnapshot | null;
3016
- };
3017
- }
3018
- interface EngramAccessRecallExplainRequest {
3019
- sessionKey?: string;
3020
- namespace?: string;
3021
- /** Caller principal for namespace access checks. Transport-bound; never from untrusted payloads. */
3022
- authenticatedPrincipal?: string;
3023
- }
3024
- interface EngramAccessRecallExplainResponse {
3025
- found: boolean;
3026
- snapshot?: LastRecallSnapshot;
3027
- intent?: IntentDebugSnapshot | null;
3028
- graph?: GraphRecallSnapshot | null;
3029
- }
3030
- interface EngramAccessDaySummaryRequest extends LocationContextRequestOptions {
3031
- memories?: string;
3032
- sessionKey?: string;
3033
- namespace?: string;
3034
- timeZone?: string;
3035
- }
3036
- /** Inputs accepted by the `remnic_briefing` MCP tool. */
3037
- interface EngramAccessBriefingRequest extends LocationContextRequestOptions {
3038
- since?: string;
3039
- focus?: string;
3040
- namespace?: string;
3041
- format?: "markdown" | "json";
3042
- maxFollowups?: number;
3043
- /** Caller principal for namespace access checks. Transport-bound — never from untrusted payloads. */
3044
- principal?: string;
3045
- }
3046
- /** Response for `remnic_briefing`. */
3047
- interface EngramAccessBriefingResponse {
3048
- format: "markdown" | "json";
3049
- window: {
3050
- from: string;
3051
- to: string;
3052
- };
3053
- namespace: string;
3054
- markdown: string;
3055
- json: Record<string, unknown>;
3056
- followupsUnavailableReason?: string;
3057
- }
3058
- interface EngramAccessMemoryRecord {
3059
- id: string;
3060
- path: string;
3061
- category: string;
3062
- status?: string;
3063
- created?: string;
3064
- updated?: string;
3065
- content: string;
3066
- frontmatter: MemoryFile["frontmatter"];
3067
- }
3068
- interface EngramAccessMemorySummary {
3069
- id: string;
3070
- path: string;
3071
- category: string;
3072
- status: string;
3073
- created?: string;
3074
- updated?: string;
3075
- tags: string[];
3076
- entityRef?: string;
3077
- preview: string;
3078
- /**
3079
- * Disclosure depth at which this result was served (issue #677). Set by
3080
- * recall paths; omitted on non-recall surfaces (e.g. memory browse) where
3081
- * the concept does not apply. PR 1 of #677 always reports the
3082
- * request-level disclosure on recall results; per-result divergence is
3083
- * reserved for the auto-escalation policy that ships in PR 4/4.
3084
- */
3085
- disclosure?: RecallDisclosure;
3086
- /**
3087
- * Full memory content (markdown body) — populated when `disclosure` is
3088
- * `"section"` or `"raw"` (issue #677 PR 2/4). At `"chunk"` depth callers
3089
- * only receive the short `preview`, preserving the cheap-by-default
3090
- * recall payload. Browse/non-recall paths leave `content` undefined.
3091
- */
3092
- content?: string;
3093
- /**
3094
- * Raw transcript excerpts surfaced from the LCM archive when `disclosure`
3095
- * is `"raw"` and the LCM engine is enabled (issue #677 PR 2/4). Each
3096
- * entry is a per-message excerpt sized by the LCM archive's
3097
- * configured excerpt window. Empty array when LCM is disabled or has
3098
- * no matching transcript content. Always omitted at chunk/section.
3099
- */
3100
- rawExcerpts?: Array<{
3101
- turnIndex: number;
3102
- role: string;
3103
- content: string;
3104
- sessionId: string;
3105
- }>;
3106
- }
3107
- interface EngramAccessMemoryBrowseRequest {
3108
- query?: string;
3109
- status?: string;
3110
- category?: string;
3111
- namespace?: string;
3112
- authenticatedPrincipal?: string;
3113
- sort?: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
3114
- limit?: number;
3115
- offset?: number;
3116
- }
3117
- interface EngramAccessMemoryBrowseResponse {
3118
- namespace: string;
3119
- sort: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
3120
- total: number;
3121
- count: number;
3122
- limit: number;
3123
- offset: number;
3124
- memories: EngramAccessMemorySummary[];
3125
- }
3126
- interface EngramAccessMemoryResponse {
3127
- found: boolean;
3128
- namespace: string;
3129
- memory?: EngramAccessMemoryRecord;
3130
- }
3131
- interface EngramAccessTimelineResponse {
3132
- found: boolean;
3133
- namespace: string;
3134
- count: number;
3135
- timeline: MemoryLifecycleEvent[];
3136
- }
3137
- interface EngramAccessEntitySummary {
3138
- name: string;
3139
- type: string;
3140
- updated: string;
3141
- summary?: string;
3142
- aliases: string[];
3143
- }
3144
- interface EngramAccessEntityListResponse {
3145
- namespace: string;
3146
- total: number;
3147
- count: number;
3148
- limit: number;
3149
- offset: number;
3150
- entities: EngramAccessEntitySummary[];
3151
- }
3152
- interface EngramAccessEntityResponse {
3153
- found: boolean;
3154
- namespace: string;
3155
- entity?: EntityFile;
3156
- }
3157
- interface EngramAccessReviewQueueResponse {
3158
- found: boolean;
3159
- namespace?: string;
3160
- runId?: string;
3161
- summary?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["summary"];
3162
- metrics?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["metrics"];
3163
- qualityScore?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["qualityScore"];
3164
- reviewQueue?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["reviewQueue"];
3165
- appliedActions?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["appliedActions"];
3166
- transitionReport?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["transitionReport"];
3167
- report?: string;
3168
- }
3169
- interface EngramAccessMaintenanceResponse {
3170
- namespace: string;
3171
- health: EngramAccessHealthResponse;
3172
- latestGovernanceRun: EngramAccessReviewQueueResponse;
3173
- }
3174
- interface EngramAccessTrustZoneStatusResponse {
3175
- namespace: string;
3176
- status: TrustZoneStoreStatus;
3177
- }
3178
- interface EngramAccessTrustZoneRecordSummary {
3179
- recordId: string;
3180
- filePath: string;
3181
- zone: TrustZoneName;
3182
- recordedAt: string;
3183
- kind: TrustZoneRecordKind;
3184
- summary: string;
3185
- sourceClass: TrustZoneSourceClass;
3186
- sessionKey?: string;
3187
- sourceId?: string;
3188
- evidenceHashPresent: boolean;
3189
- anchored: boolean;
3190
- entityRefs: string[];
3191
- tags: string[];
3192
- metadata?: Record<string, string>;
3193
- trustScore?: TrustZoneProvenanceScore;
3194
- nextPromotionTarget?: TrustZoneName;
3195
- nextPromotionAllowed: boolean;
3196
- nextPromotionReasons: string[];
3197
- corroborationCount?: number;
3198
- corroborationSourceClasses?: TrustZoneSourceClass[];
3199
- }
3200
- interface EngramAccessTrustZoneBrowseRequest {
3201
- query?: string;
3202
- zone?: TrustZoneName;
3203
- kind?: TrustZoneRecordKind;
3204
- sourceClass?: TrustZoneSourceClass;
3205
- namespace?: string;
3206
- limit?: number;
3207
- offset?: number;
3208
- }
3209
- interface EngramAccessTrustZoneBrowseResponse {
3210
- namespace: string;
3211
- total: number;
3212
- count: number;
3213
- limit: number;
3214
- offset: number;
3215
- records: EngramAccessTrustZoneRecordSummary[];
3216
- }
3217
- interface EngramAccessTrustZonePromoteRequest {
3218
- recordId: string;
3219
- targetZone: TrustZoneName;
3220
- promotionReason: string;
3221
- recordedAt?: string;
3222
- summary?: string;
3223
- dryRun?: boolean;
3224
- namespace?: string;
3225
- authenticatedPrincipal?: string;
3226
- }
3227
- interface EngramAccessTrustZonePromoteResponse extends TrustZonePromotionResult {
3228
- namespace: string;
3229
- dryRun: boolean;
3230
- }
3231
- interface EngramAccessTrustZoneDemoSeedRequest {
3232
- scenario?: string;
3233
- recordedAt?: string;
3234
- dryRun?: boolean;
3235
- namespace?: string;
3236
- authenticatedPrincipal?: string;
3237
- }
3238
- interface EngramAccessTrustZoneDemoSeedResponse extends TrustZoneDemoSeedResult {
3239
- namespace: string;
3240
- }
3241
- interface EngramAccessQualityResponse {
3242
- namespace: string;
3243
- totalMemories: number;
3244
- statusCounts: Record<string, number>;
3245
- categoryCounts: Record<string, number>;
3246
- confidenceTierCounts: Record<string, number>;
3247
- ageBucketCounts: Record<string, number>;
3248
- archivePressure: {
3249
- pendingReview: number;
3250
- quarantined: number;
3251
- archived: number;
3252
- staleActive: number;
3253
- lowConfidenceActive: number;
3254
- };
3255
- latestGovernanceRun: {
3256
- found: boolean;
3257
- runId?: string;
3258
- qualityScore?: EngramAccessReviewQueueResponse["qualityScore"];
3259
- reviewQueueCount: number;
3260
- };
3261
- }
3262
- interface EngramAccessCapsuleListResponse {
3263
- namespace: string;
3264
- capsulesDir: string;
3265
- capsules: CapsuleListEntry[];
3266
- }
3267
- interface EngramAccessOfflineSyncSnapshotRequest {
3268
- namespace?: string;
3269
- principal?: string;
3270
- includeTranscripts?: boolean;
3271
- includeContent?: boolean;
3272
- baseCapturedAt?: Date;
3273
- baseFiles?: OfflineSyncFileState[];
3274
- }
3275
- interface EngramAccessOfflineSyncManifestRequest {
3276
- namespace?: string;
3277
- principal?: string;
3278
- includeTranscripts?: boolean;
3279
- }
3280
- interface EngramAccessOfflineSyncFilesRequest {
3281
- namespace?: string;
3282
- principal?: string;
3283
- includeTranscripts?: boolean;
3284
- paths: string[];
3285
- }
3286
- interface EngramAccessOfflineSyncFileContentRequest {
3287
- namespace?: string;
3288
- principal?: string;
3289
- includeTranscripts?: boolean;
3290
- path: string;
3291
- offset?: number;
3292
- length?: number;
3293
- }
3294
- interface EngramAccessOfflineSyncApplyFileContentRequest {
3295
- namespace?: string;
3296
- principal?: string;
3297
- includeTranscripts?: boolean;
3298
- sourceId: string;
3299
- path: string;
3300
- sha256: string;
3301
- bytes: number;
3302
- mtimeMs: number;
3303
- offset?: number;
3304
- baseSha256?: string;
3305
- content: Buffer;
3306
- }
3307
- interface EngramAccessOfflineSyncApplyRequest {
3308
- namespace?: string;
3309
- principal?: string;
3310
- changeset: unknown;
3311
- returnCurrentFiles?: boolean;
3312
- }
3313
- interface EngramAccessOfflineSyncFinalizeConvergenceRequest {
3314
- namespaces?: string[];
3315
- principal?: string;
3316
- sourceId: string;
3317
- }
3318
- interface EngramAccessOfflineSyncSnapshotResponse extends OfflineSyncSnapshot {
3319
- namespace: string;
3320
- }
3321
- interface EngramAccessOfflineSyncSnapshotStreamResponse extends Omit<OfflineSyncSnapshot, "files"> {
3322
- namespace: string;
3323
- files: AsyncIterable<OfflineSyncFileRecord>;
3324
- }
3325
- interface EngramAccessOfflineSyncFilesResponse extends OfflineSyncSnapshot {
3326
- namespace: string;
3327
- }
3328
- interface EngramAccessOfflineSyncFileContentResponse extends OfflineSyncFileContentChunk {
3329
- namespace: string;
3330
- }
3331
- interface EngramAccessOfflineSyncApplyFileContentResponse extends OfflineSyncApplyFileContentChunkResult {
3332
- namespace: string;
3333
- }
3334
- interface EngramAccessOfflineSyncApplyResponse extends OfflineSyncApplyChangesetResult {
3335
- namespace: string;
3336
- }
3337
- interface EngramAccessOfflineSyncFinalizeConvergenceResponse {
3338
- namespaces: string[];
3339
- refreshed: true;
3340
- }
3341
- type EngramAccessActionConfidenceRequest = ActionConfidenceInput;
3342
- type EngramAccessActionConfidenceResponse = ActionConfidenceResult;
3343
- declare function buildProjectedGovernanceProposedActions(storage: Awaited<ReturnType<Orchestrator["getStorage"]>>, projected: NonNullable<Awaited<ReturnType<Awaited<ReturnType<Orchestrator["getStorage"]>>["getProjectedGovernanceRecord"]>>>): Promise<Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["appliedActions"]>;
3344
- declare function hasGroupedGovernanceActions(grouped?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["transitionReport"]["proposed"]): boolean;
3345
- interface EngramAccessReviewDispositionRequest {
3346
- memoryId: string;
3347
- status: MemoryStatus | "archived";
3348
- reasonCode: string;
3349
- namespace?: string;
3350
- /**
3351
- * Trusted transport-bound principal. This must never come from untrusted client payloads.
3352
- * When present, write authorization is evaluated against this principal instead of sessionKey.
3353
- */
3354
- authenticatedPrincipal?: string;
3355
- }
3356
- interface EngramAccessReviewDispositionResponse {
3357
- ok: boolean;
3358
- namespace: string;
3359
- memoryId: string;
3360
- status: MemoryStatus | "archived";
3361
- previousStatus: MemoryStatus;
3362
- currentPath?: string;
3363
- }
3364
- interface EngramAccessWriteEnvelope {
3365
- schemaVersion?: number;
3366
- idempotencyKey?: string;
3367
- dryRun?: boolean;
3368
- sessionKey?: string;
3369
- /** Trusted transport-bound principal (never from client payloads); authorizes writes instead of sessionKey. */
3370
- authenticatedPrincipal?: string;
3371
- /** When set, an ACL rejection is NOT dead-lettered (#1888) so `remnic quarantine replay` can re-submit through this same surface without re-quarantining and duplicating the parked record. */
3372
- readonly suppressQuarantine?: boolean;
3373
- }
3374
- /**
3375
- * Optional git/project context for project-scoped writes (#1434). When no
3376
- * explicit `namespace` is supplied, these route the write to the same project
3377
- * namespace recall/observe resolve from `cwd`/`projectTag` (rule 42 symmetry).
3378
- */
3379
- interface CodingScopedWriteInput {
3380
- cwd?: string;
3381
- projectTag?: string;
3382
- }
3383
-
3384
- /**
3385
- * Internal, single-resolution plan describing the effective memory scope for a
3386
- * write-producing access request (#1495, seed for epic #1494). One plan is
3387
- * resolved per request and EVERY side effect (LCM archival, extraction replay,
3388
- * objective-state snapshot, response) consumes the same `writeNamespace`, so an
3389
- * observed turn and its extracted memories never drift away from the namespace a
3390
- * same-session project-scoped recall searches (rule 39 / 42).
3391
- *
3392
- * The resolver that produces this is READ-ONLY with respect to namespace
3393
- * authorization: an explicit namespace is authorized through the existing
3394
- * `canWriteNamespace` policy path, and a coding overlay is always REBUILT from
3395
- * the authenticated principal's base — never accepted as a caller string — so a
3396
- * caller can never reach another principal's overlay by forging an
3397
- * overlay-shaped namespace (rule 42 / 47 / 48).
3398
- */
3399
- interface MemoryScopePlan {
3400
- /** Resolved request principal (auth precedence applied), or undefined. */
3401
- principal?: string;
3402
- /** Explicit `namespace` supplied by the caller, if any (already authorized). */
3403
- explicitNamespace?: string;
3404
- /** Principal self base namespace before any coding overlay. */
3405
- baseNamespace: string;
3406
- /** Effective write namespace — what every side effect must use. */
3407
- writeNamespace: string;
3408
- /**
3409
- * Effective namespace the objective-state snapshot writer must target.
3410
- *
3411
- * Objective-state has a STRICTER, pre-#1495 contract than the LCM/extraction
3412
- * write path (#928): an IMPLICIT (no explicit `namespace`) snapshot is based
3413
- * on the PRINCIPAL SELF namespace (`defaultNamespaceForPrincipal`) and is
3414
- * authorized against THAT base (rule 48, least-privilege) — never silently
3415
- * routed to `config.defaultNamespace`. Only the LCM/extraction/response path
3416
- * collapses an unqualified write to `config.defaultNamespace` (memory_store
3417
- * parity, rule 39). With an explicit namespace, or once a coding overlay
3418
- * applies, both targets converge: `objectiveStateNamespace === writeNamespace`.
3419
- *
3420
- * Keeping the two as separate fields of ONE plan preserves rule 22 (single
3421
- * resolution point) while honoring each consumer's historical contract.
3422
- */
3423
- objectiveStateNamespace: string;
3424
- /** Namespaces a same-session recall would read (cheap subset). */
3425
- readNamespaces: string[];
3426
- /** Active scope profile id, when `defaultScopeProfile` is configured. */
3427
- scopeProfile?: string;
3428
- /** Internal resolved profile used to keep scoped extraction persistence aligned with access resolution. */
3429
- scopeProfilePlan?: ResolvedScopeProfilePlan | null;
3430
- /** Resolved profile layer that supplied `writeNamespace`. */
3431
- writeLayer?: string;
3432
- /** Resolved profile layers in the active profile contract. */
3433
- layers?: ScopeProfileLayerResolution[];
3434
- /** Authorized promotion targets from the active profile contract. */
3435
- promotionTargets?: ScopeProfilePromotionResolution[];
3436
- /** Whether the coding overlay changed the base namespace. */
3437
- codingOverlayApplied: boolean;
3438
- /** Non-fatal diagnostics surfaced during resolution. */
3439
- warnings: string[];
3440
- }
3441
- /**
3442
- * Raw `category` spelling retained at the request boundary when the wire
3443
- * schema's canonicalizing transform mapped a compat alias to "fact"
3444
- * (issue #2829). Diagnostic only: drives the response's `categoryCoercion`
3445
- * note and survives quarantine parking for replay. Never reaches the write
3446
- * candidate or the idempotency fingerprint, and never parses from client
3447
- * input (the wire schema strips it).
3448
- */
3449
- interface RetainedCategorySpelling {
3450
- rawCategory?: string;
3451
- }
3452
- interface EngramAccessMemoryStoreRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput, CodingScopedWriteInput, RetainedCategorySpelling {
3453
- }
3454
- interface EngramAccessSuggestionSubmitRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput, CodingScopedWriteInput, RetainedCategorySpelling {
3455
- }
3456
- interface EngramAccessWriteResponse {
3457
- schemaVersion: 1;
3458
- operation: "memory_store" | "suggestion_submit";
3459
- namespace: string;
3460
- dryRun: boolean;
3461
- accepted: boolean;
3462
- queued: boolean;
3463
- status: "validated" | "stored" | "duplicate" | "queued_for_review";
3464
- memoryId?: string;
3465
- duplicateOf?: string;
3466
- idempotencyKey?: string;
3467
- idempotencyReplay?: boolean;
3468
- /** Present when a project-shaped category alias was coerced to "fact" (#2780/#2829). */
3469
- categoryCoercion?: CategoryAliasCoercion;
3470
- }
3471
- interface EngramAccessObserveMessage {
3472
- role: "user" | "assistant";
3473
- content: string;
3474
- parts?: LcmMessagePartInput[];
3475
- rawContent?: unknown;
3476
- sourceFormat?: MessagePartSourceFormat;
3477
- }
3478
- /**
3479
- * Observe request. Wire fields derive from the canonical zod schema
3480
- * (`observeRequestSchema`, access-schema.ts — issue #2482); the service
3481
- * consumes the transport-cleaned message form (the wire schema tolerates
3482
- * nullable `parts`/`sourceFormat`, the service maps them to `undefined`).
3483
- */
3484
- interface EngramAccessObserveRequest extends Omit<ObserveRequest, "messages">, SourceConnectorProvenance {
3485
- messages: EngramAccessObserveMessage[];
3486
- authenticatedPrincipal?: string;
3487
- readonly suppressQuarantine?: boolean;
3488
- }
3489
- /**
3490
- * Additive diagnostic view of the effective {@link MemoryScopePlan} resolved for
3491
- * an `observe` request (#1495 / epic #1494). Lets callers and tests inspect
3492
- * which namespace the operation actually wrote to without changing the
3493
- * backward-compatible `namespace` field. Purely informational — never gates
3494
- * authorization.
3495
- */
3496
- interface EngramAccessScopeDebug {
3497
- /** Resolved principal, or `undefined` when none could be derived. */
3498
- principal?: string;
3499
- /** Explicit `namespace` from the request, if one was supplied. */
3500
- explicitNamespace?: string;
3501
- /** Principal self base before any coding overlay. */
3502
- baseNamespace: string;
3503
- /** Effective write namespace every side effect of the request uses. */
3504
- writeNamespace: string;
3505
- /** Whether the coding (project/branch) overlay changed the base namespace. */
3506
- codingOverlayApplied: boolean;
3507
- /** Namespaces a same-session recall would read, when cheap to compute. */
3508
- readNamespaces?: string[];
3509
- scopeProfile?: string;
3510
- writeLayer?: string;
3511
- layers?: ScopeProfileLayerResolution[];
3512
- promotionTargets?: ScopeProfilePromotionResolution[];
3513
- }
3514
- interface EngramAccessObserveResponse {
3515
- accepted: number;
3516
- sessionKey: string;
3517
- /**
3518
- * Backward-compatible base writable namespace (pre-#1495 semantics). Kept
3519
- * unchanged so existing callers/tests are not broken. The namespace the
3520
- * operation ACTUALLY wrote to is {@link EngramAccessObserveResponse.effectiveNamespace}.
3521
- */
3522
- namespace: string;
3523
- /**
3524
- * Effective write namespace every memory-producing side effect of this
3525
- * request used (LCM archival, extraction replay, objective-state snapshot).
3526
- * Equals the namespace a same-session project-scoped recall searches (#1495).
3527
- */
3528
- effectiveNamespace: string;
3529
- /** Additive diagnostic view of the resolved scope plan (#1495). */
3530
- scopeDebug?: EngramAccessScopeDebug;
3531
- lcmArchived: boolean;
3532
- extractionQueued: boolean;
3533
- /** True when at least one observe-derived turn was appended to the transcript store (issue #2783). False when the transcript capability is off, every message was filtered/deduped, or every append failed. */
3534
- transcriptPersisted: boolean;
3535
- /** True when replayed from the idempotency cache (issue #1649); lets the HTTP surface skip the write-quota slot, matching memory_store replay semantics. */
3536
- idempotencyReplay?: boolean;
3537
- }
3538
- interface EngramAccessLcmSearchRequest {
3539
- query: string;
3540
- sessionKey?: string;
3541
- sessionPrefix?: string;
3542
- namespace?: string;
3543
- limit?: number;
3544
- authenticatedPrincipal?: string;
3545
- }
3546
- interface EngramAccessLcmSearchResponse {
3547
- query: string;
3548
- namespace: string;
3549
- results: Array<{
3550
- sessionId: string;
3551
- content: string;
3552
- turnIndex?: number;
3553
- }>;
3554
- count: number;
3555
- lcmEnabled: boolean;
3556
- }
3557
- interface EngramAccessLcmStatusResponse {
3558
- enabled: boolean;
3559
- archiveAvailable: boolean;
3560
- stats?: {
3561
- totalTurns?: number;
3562
- };
3563
- }
3564
- interface EngramAccessLcmCompactionRecordRequest {
3565
- sessionKey: string;
3566
- namespace?: string;
3567
- tokensBefore: number;
3568
- tokensAfter: number;
3569
- authenticatedPrincipal?: string;
3570
- }
3571
- interface EngramAccessLcmCompactionRecordResponse {
3572
- enabled: boolean;
3573
- recorded: boolean;
3574
- sessionKey: string;
3575
- namespace: string;
3576
- reason?: string;
3577
- }
3578
- type EngramAccessIdempotencyStatus = "miss" | "replay" | "conflict";
3579
- /**
3580
- * Pure helper that shapes a {@link EngramAccessMemorySummary} from a
3581
- * {@link MemoryFile} based on the requested disclosure depth (issue #677
3582
- * PR 2/4). Extracted so the shaping invariants — chunk emits preview
3583
- * only, section attaches `content`, raw also surfaces `rawExcerpts` when
3584
- * the caller passes them — can be unit-tested without booting an
3585
- * orchestrator.
3586
- *
3587
- * Browse / non-recall paths pass `disclosure === undefined` so the
3588
- * `disclosure`, `content`, and `rawExcerpts` fields are all omitted —
3589
- * preserving the cheap-by-default browse projection.
3590
- */
3591
- declare function shapeMemorySummary(memory: MemoryFile, baseDir: string, disclosure?: RecallDisclosure, rawExcerpts?: EngramAccessMemorySummary["rawExcerpts"]): EngramAccessMemorySummary;
3592
- declare class EngramAccessService extends SupportPassportAccessServiceBase {
3593
- private readonly orchestrator;
3594
- private readonly idempotency;
3595
- private readonly idempotencyLocks;
3596
- private readonly recallSemaphores;
3597
- private readonly recallInFlight;
3598
- private readonly budget;
3599
- private readonly auditAdapter;
3600
- private readonly corpusWatermarkCache;
3601
- private readonly replicaDivergenceMonitor;
3602
- private readonly injectedSupportPassportGatewayRoute;
3603
- readonly reviewDeckEnabled: boolean;
3604
- readonly recallNavigationEnabled: boolean;
3605
- /** AccessObserveWriteSurface (access-service decomposition). Lazy; selfDeps live wiring. */
3606
- private _accessObserveWriteSurface;
3607
- private get accessObserveWriteSurface();
3608
- /** AccessLcmSurface (access-service decomposition). Lazy; selfDeps live wiring. */
3609
- private _accessLcmSurface;
3610
- private get accessLcmSurface();
3611
- /** AccessAdminOpsSurface (access-service decomposition). Lazy; selfDeps live wiring. */
3612
- private _accessAdminOpsSurface;
3613
- private get accessAdminOpsSurface();
3614
- private _reviewDeckSurface;
3615
- private get reviewDeckSurface();
3616
- /** AccessRecallSurface (access-service decomposition). Lazy; selfDeps live wiring. */
3617
- private _accessRecallSurface;
3618
- private get accessRecallSurface();
3619
- /** AccessIdentityContinuitySurface (access-service decomposition). Lazy; selfDeps live wiring. */
3620
- private _accessIdentityContinuitySurface;
3621
- private get accessIdentityContinuitySurface();
3622
- private readonly extractionLivenessWarn;
3623
- constructor(orchestrator: Orchestrator, options?: {
3624
- resolveSecretRef?: ResolveSecretRefFn | null;
3625
- supportPassportGatewayRoute?: SupportPassportModelRoute | null;
3626
- reviewDeckEnabled?: boolean;
3627
- });
3628
- get supportPassportGatewayRouteRef(): SupportPassportModelRoute | null;
3629
- get briefingEnabled(): boolean;
3630
- private resolveNamespace;
3631
- private normalizeRecallMode;
3632
- private resolveRecallNamespace;
3633
- private resolveRequestPrincipal;
3634
- private writableNamespaceFor;
3635
- /** Shared coding-scope derivation for the read/write resolvers below —
3636
- * coding context, overlay, principal, scope-profile plan for an IMPLICIT
3637
- * request, IDENTICAL to recall precedence (session-first, per-call fallback)
3638
- * so a scoped store is discoverable by scoped recall (#1434). Single source
3639
- * of truth for the namespacesEnabled/projectScope gates (rule 22; keeps the
3640
- * scattered-config-read ratchet flat). READ-ONLY: never mutates session. */
3641
- private resolveCodingScopeInputs;
3642
- private assertTokenCanWriteNamespace;
3643
- /**
3644
- * Resolve the write namespace for explicit-write tools (memory_store /
3645
- * suggestion_submit), project-scoping the write the same way recall does so a
3646
- * memory stored with a client-injected `cwd`/`projectTag` is discoverable by
3647
- * project-scoped recall (#1434, rule 42). Shared derivation lives in
3648
- * {@link resolveCodingScopeInputs}; this method enforces the WRITE acl
3649
- * (`canWriteNamespace` / profile-layer writability). Read-only: never mutates
3650
- * session coding context.
3651
- */
3652
- private resolveCodingScopedWriteNamespace;
3653
- namespaceWritablePreflight(request: EngramAccessNamespaceWritableRequest): Promise<WritableNamespaceResult>;
3654
- /**
3655
- * `list`/`get` use this so a record written by a project-scoped session is
3656
- * listable/fetchable by the SAME session without manually supplying the
3657
- * overlaid namespace (review P2). Derivation is IDENTICAL to the write path
3658
- * (shared via {@link resolveCodingScopeInputs}); the only difference is the
3659
- * ACL — reads enforce {@link canReadNamespace}, so a read-but-not-write
3660
- * principal can still list/fetch (rule 42). */
3661
- private resolveCodingScopedReadableNamespace;
3662
- /**
3663
- * Resolve ONE effective memory scope plan for a write-producing request
3664
- * (#1495 / seed for epic #1494). The returned {@link MemoryScopePlan} is the
3665
- * single source of truth `observe` (and, later, other write surfaces) consume
3666
- * so every side effect lands in `plan.writeNamespace`.
3667
- *
3668
- * Authorization mirrors {@link resolveCodingScopedWriteNamespace} EXACTLY so
3669
- * `observe`'s scoping is identical to `memory_store`/`suggestion_submit`
3670
- * (rule 39 — feature gates identical across code paths):
3671
- * - an explicit `namespace` always wins and is authorized strictly through
3672
- * `resolveWritableNamespace` → `canWriteNamespace`; an overlay-shaped string
3673
- * is never a writable target (rule 42 / 47 / 48);
3674
- * - with NO overlay, the base stays on `config.defaultNamespace` (pre-#1434
3675
- * behavior), auth-checked;
3676
- * - WITH an overlay, the base is the principal self namespace and the overlay
3677
- * is REBUILT from that authorized base — never accepted as a caller string.
3678
- *
3679
- * READ-ONLY: this never mutates session coding context. Callers that need the
3680
- * `cwd`/`projectTag` bound to the session (so a later bare recall is scoped)
3681
- * must attach it via `maybeAttachCodingContext` BEFORE calling this, which
3682
- * also preserves the no-orphan-context guard (attach only after auth passes).
3683
- * The overlay here reads the session's attached context first (matching recall
3684
- * precedence), falling back to the per-call `cwd`/`projectTag`.
3685
- */
3686
- private resolveMemoryScopePlan;
3687
- private legacyResponseNamespaceForScope;
3688
- private objectiveStateStoreLocationForNamespace;
3689
- private resolveReadableNamespace;
3690
- private resolveReadableNamespacesForSearch;
3691
- private resolveAllReadableConfiguredNamespaces;
3692
- private resolveMemorySearchNamespacesForCollection;
3693
- private buildRecallDebug;
3694
- private buildRecallResponseFromXraySnapshot;
3695
- private serializeRecallResults;
3696
- private storageForAbsoluteRecallPath;
3697
- private fetchRawExcerpts;
3698
- private handleIdempotentWrite;
3699
- private handleIdempotentRead;
3700
- private peekIdempotentWrite;
3701
- private withIdempotencyLock;
3702
- health(namespace?: string): Promise<EngramAccessHealthResponse>;
3703
- private qmdCollectionForHealth;
3704
- private qmdHealth;
3705
- private namespaceQmdHealth;
3706
- private qmdCollectionState;
3707
- private qmdProbeAvailable;
3708
- actionConfidence(request?: EngramAccessActionConfidenceRequest): Promise<EngramAccessActionConfidenceResponse>;
3709
- daySummary(request: EngramAccessDaySummaryRequest): Promise<DaySummaryResult | null>;
3710
- briefing(request: EngramAccessBriefingRequest): Promise<EngramAccessBriefingResponse>;
3711
- /**
3712
- * Attach a coding context to a session (issue #569). Used by the Claude
3713
- * Code / Codex / generic-MCP connectors at session start so that recall +
3714
- * write paths can route to a project- / branch-scoped namespace.
3715
- *
3716
- * Validates the input shape and rejects malformed payloads rather than
3717
- * silently accepting them (CLAUDE.md #51). Pass `codingContext: null` to
3718
- * clear.
3719
- */
3720
- setCodingContext(request: EngramAccessSetCodingContextRequest): void;
3721
- /**
3722
- * Auto-resolve and attach a coding context for a session when one is not
3723
- * already present. Resolves from `projectTag` (highest priority after
3724
- * explicit `codingContext`), then from `cwd` via git detection.
3725
- *
3726
- * This is a no-op when:
3727
- * - `sessionKey` is missing
3728
- * - the session already has a coding context attached
3729
- * - codingMode.projectScope is disabled (CLAUDE.md #30)
3730
- * - neither `cwd` nor `projectTag` is provided
3731
- *
3732
- * Never throws — git resolution failures are silently ignored because not
3733
- * being in a repo is a normal runtime state.
3734
- */
3735
- private maybeAttachCodingContext;
3736
- /**
3737
- * Seed the session's coding binding AFTER a committed, project-scoped explicit
3738
- * write (memory_store / suggestion_submit), mirroring the recall path's
3739
- * `maybeAttachCodingContext` so a later bare recall/write on the same session
3740
- * is scoped to the same project. Called only from the post-persist path, so it
3741
- * never fires on dryRun, replay/conflict, or quota-rejected requests. Skips
3742
- * when an explicit `namespace` was supplied — that write bypassed the coding
3743
- * overlay, so binding the session to a project it never wrote to would make
3744
- * later bare recalls miss (Codex review).
3745
- */
3746
- private attachCodingContextAfterScopedWrite;
3747
- recall(request: EngramAccessRecallRequest): Promise<EngramAccessRecallResponse>;
3748
- private executeRecall;
3749
- recallExplain(request?: EngramAccessRecallExplainRequest): Promise<EngramAccessRecallExplainResponse>;
3750
- recallTierExplain(sessionKey?: string, namespace?: string, authenticatedPrincipal?: string): Promise<RecallExplainJsonPayload>;
3751
- /**
3752
- * Budgeted REFINE/EXPAND/STOP deep recall (issue #2332). Deep surface
3753
- * only — never called from the recall hot path. Single implementation
3754
- * for MCP, HTTP, and CLI (rule 22: one renderer, one service method).
3755
- */
3756
- deepRecall(request: {
3757
- query: string;
3758
- namespace?: string;
3759
- sessionKey?: string;
3760
- authenticatedPrincipal?: string;
3761
- maxSteps?: number;
3762
- /** Transport cancellation (issue #2915): MCP tools/call cancelled, HTTP disconnect. */
3763
- abortSignal?: AbortSignal;
3764
- }): Promise<DeepRecallResult & {
3765
- rendered: string;
3766
- }>;
3767
- recallNavigate(request: RecallNavigationRequest): Promise<RecallNavigationResult>;
3768
- /** Memory-store browse verbs (issue #2978): ls/tree/find over ONE resolved namespace. */
3769
- memoryStoreBrowse(request: MemoryStoreBrowseRequest): Promise<MemoryStoreBrowseResult>;
3770
- recallXray(request: {
3771
- query: string;
3772
- sessionKey?: string;
3773
- namespace?: string;
3774
- budget?: number;
3775
- authenticatedPrincipal?: string;
3776
- sourceConnector?: string;
3777
- /**
3778
- * Disclosure depth used to shape per-result payload (issue #677
3779
- * PR 3/4). When set, each X-ray result is decorated with the
3780
- * matching `disclosure` field and `estimatedTokens` computed from
3781
- * the actual rendered content at that depth, so the renderer's
3782
- * "Token spend by disclosure" summary reflects real spend rather
3783
- * than staying empty when no caller wires the depth knob through.
3784
- */
3785
- disclosure?: RecallDisclosure;
3786
- /**
3787
- * Free-form recall tag filter (issue #689). Mirrors the field on
3788
- * `EngramAccessRecallRequest`. When non-empty, the captured X-ray
3789
- * snapshot's `results` are filtered down to memories whose
3790
- * frontmatter tags satisfy `tagMatch` ("any" by default), and a
3791
- * `tag-filter` entry is appended to `filters`.
3792
- */
3793
- tags?: string[];
3794
- /** Match mode for `tags`. See `EngramAccessRecallRequest.tagMatch`. */
3795
- tagMatch?: "any" | "all";
3796
- /** Recall planner mode override. Mirrors `EngramAccessRecallRequest.mode`. */
3797
- mode?: RecallPlanMode | "auto";
3798
- /**
3799
- * User-aware context scopes active for this recall. Forwarded into
3800
- * provenance construction so boundary scopes are evaluated against
3801
- * the caller's real context instead of an empty-context default.
3802
- */
3803
- currentContextScopes?: readonly unknown[];
3804
- /**
3805
- * Internal inspector affordance: include a recall-shaped response
3806
- * derived from the same X-ray snapshot. Left off by default so the
3807
- * regular X-ray API/CLI/MCP surfaces keep their existing payload shape.
3808
- */
3809
- includeRecall?: boolean;
3810
- /** Cancel the capture before it starts and propagate cancellation to recall. */
3811
- abortSignal?: AbortSignal;
3812
- }): Promise<{
3813
- snapshotFound: boolean;
3814
- snapshot?: RecallXraySnapshot;
3815
- recall?: EngramAccessRecallResponse;
3816
- }>;
3817
- /**
3818
- * Rank entities by demonstrated expertise for a topic (issue #2057).
3819
- * Deterministic — no LLM, no QMD. Reads the namespace-scoped corpus and
3820
- * entity files only; namespace resolution + ACL mirror recall semantics
3821
- * (`resolveReadableNamespace`), so a principal cannot rank outside a
3822
- * namespace it cannot read.
3823
- */
3824
- whoKnows(request: {
3825
- topic: string;
3826
- limit?: number;
3827
- namespace?: string;
3828
- authenticatedPrincipal?: string;
3829
- }): Promise<WhoKnowsResult>;
3830
- /**
3831
- * Read-only promotion-candidate surfacing (issue #2372): agent-subject,
3832
- * active, reuse-signaled memories in the caller's namespace with no
3833
- * equivalent in the target layer. No auto-promotion — callers use the
3834
- * existing promotion commands.
3835
- */
3836
- promotionCandidates(request: {
3837
- namespace?: string;
3838
- targetNamespace?: string;
3839
- limit?: number;
3840
- authenticatedPrincipal?: string;
3841
- }): Promise<PromotionCandidatesResult>;
3842
- memoryStore(request: EngramAccessMemoryStoreRequest, hooks?: {
3843
- enforceWriteQuota?: () => void | Promise<void>;
3844
- }): Promise<EngramAccessWriteResponse>;
3845
- peekMemoryStoreIdempotency(rawRequest: EngramAccessMemoryStoreRequest): Promise<EngramAccessIdempotencyStatus>;
3846
- suggestionSubmit(request: EngramAccessSuggestionSubmitRequest, hooks?: {
3847
- enforceWriteQuota?: () => void | Promise<void>;
3848
- }): Promise<EngramAccessWriteResponse>;
3849
- peekSuggestionSubmitIdempotency(rawRequest: EngramAccessSuggestionSubmitRequest): Promise<EngramAccessIdempotencyStatus>;
3850
- private validateWriteCandidate;
3851
- memoryGet(memoryId: string, namespace?: string, principal?: string, sessionKey?: string): Promise<EngramAccessMemoryResponse>;
3852
- /**
3853
- * Codegraph parity tool delegate (issue #1554). All three surfaces (MCP,
3854
- * HTTP, CLI) arrive here via the codegraph_* boundary operations. The
3855
- * handler lives in coding/codegraph-surfaces.ts; this method just wires
3856
- * the context. Memory dir + principal + coding-context lookup come from
3857
- * the orchestrator/access-service fabric -- no handler-side state.
3858
- */
3859
- codegraphTool(request: CodegraphSurfaceRequest, authenticatedPrincipal?: string, sourceConnector?: string): Promise<CodegraphSurfaceResponse>;
3860
- /** Whether the coding_decision tool should appear in tools/list (rule 39). */
3861
- get decisionRecordSurfaceVisible(): boolean;
3862
- /**
3863
- * Thin delegate — handler logic in coding/decision-surfaces.ts (#1548 PR2).
3864
- * All three surfaces (MCP/HTTP/CLI) arrive here via the boundary operation.
3865
- * Namespace resolution uses the SAME path as memory_store (principal ACL +
3866
- * coding overlay + default fallback) so decision records land in the same
3867
- * storage root.
3868
- */
3869
- codingDecision(request: DecisionSurfaceRequest, authenticatedPrincipal?: string, sourceConnector?: string): Promise<DecisionSurfaceResponse>;
3870
- /** Whether the coding_architecture tool should appear in tools/list (rule 39). */
3871
- get architectureCardSurfaceVisible(): boolean;
3872
- /**
3873
- * Whether the 14 codegraph parity tools should appear in tools/list
3874
- * (rule 39). Config-only -- runtime availability is checked at call time.
3875
- * When false the tools array is byte-identical to pre-feature.
3876
- */
3877
- get codegraphSurfaceVisible(): boolean;
3878
- /**
3879
- * Thin delegate — handler logic in coding/architecture-surfaces.ts (#1548 PR3).
3880
- * All three surfaces (MCP/HTTP/CLI) arrive here via the boundary operation.
3881
- * Namespace resolution uses the SAME coding-scoped path as decision records.
3882
- */
3883
- codingArchitecture(request: ArchitectureSurfaceRequest, authenticatedPrincipal?: string, sourceConnector?: string): Promise<ArchitectureSurfaceResponse>;
3884
- /** Whether the coding_delta tool should appear in tools/list (rule 39). */
3885
- get sessionDeltaSurfaceVisible(): boolean;
3886
- /**
3887
- * Thin delegate — handler logic in coding/session-delta-surfaces.ts (#1548 PR4).
3888
- * All three surfaces (MCP/HTTP/CLI) arrive here via the boundary operation.
3889
- * Namespace resolution uses the SAME coding-scoped read path as the other
3890
- * coding surfaces; the delta state file lives under
3891
- * `<memoryDir>/state/coding-knowledge/<namespace>.json`.
3892
- */
3893
- codingDelta(request: DeltaSurfaceRequest, authenticatedPrincipal?: string): Promise<DeltaSurfaceResponse>;
3894
- /** Whether the memory_correct_plan / memory_correct_apply tools should appear in tools/list (rule 39). Same reader as the runtime gate so visibility + enforcement stay in sync. */
3895
- get correctionSurfaceVisible(): boolean;
3896
- private _correctionService;
3897
- /** Lazily construct + cache the CorrectionService with deps wired from the orchestrator. */
3898
- private correctionService;
3899
- /**
3900
- * Issue #1582 — resolve a single memoryId-or-handle reference to a concrete
3901
- * memory id. Handles resolve against the session's recall history via the
3902
- * orchestrator's shared helper (rule 22); raw ids pass through unchanged. A
3903
- * handle that misses or is ambiguous becomes an EngramAccessInputError so the
3904
- * boundary maps it to a 400 (rule 34/51 — list candidates, never guess).
3905
- */
3906
- private resolveMemoryIdOrHandleInput;
3907
- correctionPlan(request: CorrectionRequest, opts?: {
3908
- abortSignal?: AbortSignal;
3909
- }): Promise<CorrectionPlan>;
3910
- correctionApply(planId: string, opts: {
3911
- confirm?: boolean;
3912
- namespace?: string;
3913
- sessionKey?: string;
3914
- principal?: string;
3915
- abortSignal?: AbortSignal;
3916
- }): Promise<CorrectionOutcome>;
3917
- correctionListPending(opts: {
3918
- namespace?: string;
3919
- sessionKey?: string;
3920
- principal?: string;
3921
- }): Promise<CorrectionPlan[]>;
3922
- correctionDiscard(planId: string, opts: {
3923
- namespace?: string;
3924
- sessionKey?: string;
3925
- principal?: string;
3926
- }): Promise<void>;
3927
- memoryBrowse(request?: EngramAccessMemoryBrowseRequest): Promise<EngramAccessMemoryBrowseResponse>;
3928
- memoryTimeline(memoryId: string, namespace?: string, limit?: number, principal?: string): Promise<EngramAccessTimelineResponse>;
3929
- entityList(options?: {
3930
- namespace?: string;
3931
- query?: string;
3932
- limit?: number;
3933
- offset?: number;
3934
- }): Promise<EngramAccessEntityListResponse>;
3935
- entityGet(name: string, namespace?: string): Promise<EngramAccessEntityResponse>;
3936
- reviewQueue(runId?: string, namespace?: string, principal?: string): Promise<EngramAccessReviewQueueResponse>;
3937
- maintenance(namespace?: string, principal?: string): Promise<EngramAccessMaintenanceResponse>;
3938
- quality(namespace?: string, principal?: string): Promise<EngramAccessQualityResponse>;
3939
- governanceRun(request: {
3940
- namespace?: string;
3941
- mode?: "shadow" | "apply";
3942
- recentDays?: number;
3943
- maxMemories?: number;
3944
- batchSize?: number;
3945
- authenticatedPrincipal?: string;
3946
- }, principal?: string): Promise<{
3947
- namespace: string;
3948
- runId: string;
3949
- traceId: string;
3950
- mode: "shadow" | "apply";
3951
- reviewQueueCount: number;
3952
- proposedActionCount: number;
3953
- appliedActionCount: number;
3954
- summaryPath: string;
3955
- reportPath: string;
3956
- }>;
3957
- entitySynthesisRun(request: {
3958
- namespace?: string;
3959
- maxEntities?: number;
3960
- authenticatedPrincipal?: string;
3961
- }, principal?: string): Promise<{
3962
- namespace: string;
3963
- requested: number;
3964
- processed: number;
3965
- remaining: number;
3966
- }>;
3967
- procedureMiningRun(request: {
3968
- namespace?: string;
3969
- authenticatedPrincipal?: string;
3970
- }, principal?: string): Promise<{
3971
- namespace: string;
3972
- clustersProcessed: number;
3973
- proceduresWritten: number;
3974
- skippedReason?: string;
3975
- }>;
3976
- liveConnectorsRun(request?: {
3977
- authenticatedPrincipal?: string;
3978
- force?: boolean;
3979
- }, principal?: string): Promise<LiveConnectorsRunSummary>;
3980
- /**
3981
- * Run the pattern-reinforcement maintenance job (issue #687 PR 2/4).
3982
- *
3983
- * Cluster duplicate non-procedural memories and reinforce the
3984
- * canonical (most-recent) member. Gated on
3985
- * `patternReinforcementEnabled` — when disabled, returns
3986
- * `{ ran: false, skippedReason: "disabled" }` so the cron payload
3987
- * surface in CI logs cleanly.
3988
- *
3989
- * Resolves the namespace via the same writable path used by
3990
- * `procedureMiningRun` so cross-tenant writes are impossible
3991
- * (CLAUDE.md rule 42).
3992
- *
3993
- * Delegates the run to `orchestrator.runPatternReinforcement` so
3994
- * the cadence floor (`patternReinforcementCadenceMs`) is enforced
3995
- * uniformly across cron + MCP paths (PR #730 review feedback,
3996
- * Codex P2). Accepts `force: true` for ad-hoc operator runs that
3997
- * must bypass the cadence floor — mirrors the pattern used by
3998
- * other maintenance MCP tools.
3999
- */
4000
- patternReinforcementRun(request?: {
4001
- namespace?: string;
4002
- authenticatedPrincipal?: string;
4003
- force?: boolean;
4004
- }, principal?: string): Promise<{
4005
- namespace: string;
4006
- ran: boolean;
4007
- skippedReason?: "disabled" | "cadence";
4008
- clustersFound: number;
4009
- canonicalsUpdated: number;
4010
- duplicatesSuperseded: number;
4011
- result?: PatternReinforcementResult;
4012
- }>;
4013
- /**
4014
- * Procedural memory stats (issue #567 PR 5/5). Read-only — resolves the
4015
- * namespace via the same path used by `recallExplain` / `trustZoneStatus`
4016
- * so cross-tenant reads are impossible (CLAUDE.md rule 42).
4017
- */
4018
- procedureStats(request?: {
4019
- namespace?: string;
4020
- }, principal?: string): Promise<ProcedureStatsReport & {
4021
- namespace: string;
4022
- }>;
4023
- /**
4024
- * Procedure library health maintenance (issue #2370). Shadow-first: the
4025
- * gate is checked BEFORE any storage read, so `maintenance.enabled=false`
4026
- * returns `{ enabled: false }` having touched nothing but config. Apply
4027
- * mode additionally requires `apply: true`; `dryRun: true` forces shadow.
4028
- *
4029
- * The authenticated principal (never a client-supplied actor) drives the
4030
- * namespace via the same writable resolver `procedureMiningRun` uses, so
4031
- * cross-tenant writes are impossible.
4032
- */
4033
- procedureLibraryMaintenance(request: {
4034
- namespace?: string;
4035
- apply?: boolean;
4036
- dryRun?: boolean;
4037
- authenticatedPrincipal?: string;
4038
- }, principal?: string): Promise<{
4039
- enabled: false;
4040
- } | {
4041
- enabled: true;
4042
- namespace: string;
4043
- report: ProcedureLibraryMaintenanceReport;
4044
- }>;
4045
- memorySummarizeHourly(): Promise<{
4046
- ok: true;
4047
- message: string;
4048
- sessionsConsidered: number;
4049
- sessionsWithEntries: number;
4050
- summariesWritten: number;
4051
- staleStore: boolean;
4052
- newestEntryTimestamp: string | null;
4053
- scanFailed: boolean;
4054
- warning?: string;
4055
- }>;
4056
- conversationIndexUpdate(request?: {
4057
- sessionKey?: string;
4058
- hours?: number;
4059
- embed?: boolean;
4060
- }): Promise<{
4061
- enabled: boolean;
4062
- sessionKey?: string;
4063
- sessions: number;
4064
- chunks: number;
4065
- skipped: number;
4066
- skippedSessionKeys: string[];
4067
- embeddedRuns: number;
4068
- reason?: string;
4069
- retryAfterMs?: number;
4070
- }>;
4071
- profilingReport(request?: AccessProfilingReportRequest): Promise<AccessProfilingReportResponse>;
4072
- trustZoneStatus(namespace?: string, principal?: string): Promise<EngramAccessTrustZoneStatusResponse>;
4073
- trustZoneBrowse(request: EngramAccessTrustZoneBrowseRequest, principal?: string): Promise<EngramAccessTrustZoneBrowseResponse>;
4074
- trustZonePromote(request: EngramAccessTrustZonePromoteRequest): Promise<EngramAccessTrustZonePromoteResponse>;
4075
- trustZoneDemoSeed(request: EngramAccessTrustZoneDemoSeedRequest): Promise<EngramAccessTrustZoneDemoSeedResponse>;
4076
- reviewDisposition(request: EngramAccessReviewDispositionRequest): Promise<EngramAccessReviewDispositionResponse>;
4077
- private serializeMemory;
4078
- private serializeMemorySummary;
4079
- observe(request: EngramAccessObserveRequest, hooks?: {
4080
- enforceWriteQuota?: () => void | Promise<void>;
4081
- }): Promise<EngramAccessObserveResponse>;
4082
- private runObserve;
4083
- lcmSearch(request: EngramAccessLcmSearchRequest): Promise<EngramAccessLcmSearchResponse>;
4084
- /**
4085
- * Resolve the LCM `session_id` a same-session READER (compaction flush/record,
4086
- * `lcmSearch`, raw-excerpt lookup) must target so it matches the key `observe`
4087
- * archived under (#1495 thread 2 + #1505 round 3, rule 42). One helper for
4088
- * EVERY access-surface LCM read so the read key cannot drift from the write key
4089
- * (rule 22).
4090
- *
4091
- * Precedence mirrors `observe`'s effective write namespace:
4092
- * - With an explicit `request.namespace`, use the already-authorized
4093
- * `resolvedNamespace` (the overlay never applies to an explicit write).
4094
- * - With NO explicit namespace, an auto-scoped session was archived under
4095
- * its coding-overlay namespace, so overlay the session's bound coding
4096
- * context onto the principal self base — the SAME resolution
4097
- * `resolveMemoryScopePlan`/recall use. `applyCodingNamespaceOverlay`
4098
- * returns the base unchanged when projectScope/namespaces are off or no
4099
- * context is bound, so single-store / no-overlay flows collapse to the raw
4100
- * sessionKey exactly as before.
4101
- *
4102
- * Then encode the `${namespace}:${sessionKey}` prefix via the shared helper
4103
- * so the read key is byte-for-byte what the LCM write and the recall readers
4104
- * use.
4105
- */
4106
- private resolveLcmReadNamespace;
4107
- private resolveRawExcerptReadNamespace;
4108
- /**
4109
- * The base `resolvedNamespace` an IMPLICIT (no explicit `namespace`)
4110
- * same-session LCM READER (`resolveRawExcerptReadNamespace`, `lcmSearch`)
4111
- * passes into {@link resolveLcmReadNamespace} — WITHOUT pre-authorizing
4112
- * `default` (#1505 thread NBHWz). It decides PROCEED vs SUPPRESS only; the
4113
- * actual LCM prefix is then resolved by `resolveLcmReadNamespace`, which
4114
- * mirrors the orchestrator's `lcmReadNamespaceForSession` EXACTLY (rule 39 /
4115
- * 42): the coding overlay when the principal SELF base is in the readable
4116
- * recall set, else `config.defaultNamespace` (the raw key).
4117
- *
4118
- * Returns `config.defaultNamespace` (PROCEED) whenever the principal has ANY
4119
- * readable LCM access — either `default` itself is readable, OR a coding
4120
- * overlay / self base is in the readable recall set. The returned value is
4121
- * ALWAYS `config.defaultNamespace`, NEVER an arbitrary readable recall
4122
- * namespace (e.g. `shared`): `resolveLcmReadNamespace` returns this fallback
4123
- * verbatim only on the overlay-applies-but-self-unreadable branch, where the
4124
- * orchestrator collapses to the default store — so returning anything but the
4125
- * default store there would prefix LCM reads with `shared:sessionKey` while
4126
- * in-prompt recall uses the raw `sessionKey`, diverging the two (cursor
4127
- * "LCM read gate wrong fallback").
4128
- *
4129
- * Returns `undefined` (SUPPRESS) only when NO readable LCM namespace exists —
4130
- * a restrictive `default` READ policy AND no readable overlay/self — so the
4131
- * caller emits NO rows instead of throwing `namespace is not readable:
4132
- * default`. Normal recall still succeeds through the readable self namespace.
4133
- *
4134
- * Single-store / namespaces-disabled deployments resolve to
4135
- * `config.defaultNamespace`, keeping single-user recall byte-for-byte
4136
- * unchanged.
4137
- */
4138
- private resolveImplicitLcmReadFallbackNamespace;
4139
- private resolveLcmReadSessionKey;
4140
- /**
4141
- * Resolve the ORDERED, read-authorized set of LCM `session_id`s a same-session
4142
- * READER (`lcmSearch`, raw-excerpt disclosure) must query so it matches every
4143
- * key `observe` archived under across the coding scope (#1505 thread "Include
4144
- * coding fallback namespaces in LCM reads").
4145
- *
4146
- * Mirrors the orchestrator recall path exactly (rule 39): `observe` archives
4147
- * each turn under `${effectiveNamespace}:${sessionKey}` for whichever namespace
4148
- * was effective at write time, and normal QMD/file recall searches the primary
4149
- * coding-overlay namespace AND `codingOverlay.readFallbacks` (project → root).
4150
- * A single overlay key therefore MISSES rows a branch-scoped session archived at
4151
- * project/root scope. This returns the primary overlay LCM key first, then one
4152
- * per read fallback, deduped + ordered so the caller can short-circuit on the
4153
- * first hit.
4154
- *
4155
- * READ-AUTHORIZATION (preserved from the round-3..5 `resolveLcmReadNamespace`
4156
- * "read" gate; rule 42 / 48): the overlay + fallbacks are `<principal>-project-*`
4157
- * sub-namespaces authorized transitively by the principal SELF base. They are
4158
- * included ONLY when the self base is in the readable recall set
4159
- * (`recallNamespacesForPrincipal`). When the self base is NOT readable (write-
4160
- * only / self-omitted principal), or when an explicit namespace was supplied,
4161
- * or no overlay applies, this collapses to the single key
4162
- * {@link resolveLcmReadSessionKey} returns — byte-for-byte the prior behavior
4163
- * (single-store / no-overlay flows stay the raw `sessionKey`). No
4164
- * `<principal>-project-*` key is ever searched for an unauthorized reader (no
4165
- * cross-tenant read leak).
4166
- */
4167
- private resolveScopeProfileLcmReadNamespaces;
4168
- private lcmSessionIdsForNamespaces;
4169
- private resolveLcmReadSessionIds;
4170
- lcmCompactionFlush(request: EngramAccessLcmCompactionFlushRequest): Promise<EngramAccessLcmCompactionFlushResponse>;
4171
- extractionForceFlush(request: EngramAccessExtractionForceFlushRequest): Promise<EngramAccessExtractionForceFlushResponse>;
4172
- cancelPendingObservePreparations(sessionKey: string, scopeHint?: string): void;
4173
- cancelPendingObserveExtractions(sessionKey: string, principal?: string, namespace?: string, scopeHint?: string): void;
4174
- lcmCompactionRecord(request: EngramAccessLcmCompactionRecordRequest): Promise<EngramAccessLcmCompactionRecordResponse>;
4175
- continuityAuditGenerate(request: {
4176
- period?: "weekly" | "monthly";
4177
- key?: string;
4178
- }): Promise<{
4179
- enabled: boolean;
4180
- reason?: string;
4181
- period?: string;
4182
- key?: string;
4183
- reportPath?: string;
4184
- }>;
4185
- continuityIncidentOpen(request: {
4186
- symptom: string;
4187
- namespace?: string;
4188
- principal?: string;
4189
- triggerWindow?: string;
4190
- suspectedCause?: string;
4191
- }): Promise<unknown>;
4192
- continuityIncidentClose(request: {
4193
- id: string;
4194
- namespace?: string;
4195
- principal?: string;
4196
- fixApplied: string;
4197
- verificationResult: string;
4198
- preventiveRule?: string;
4199
- }): Promise<unknown>;
4200
- continuityIncidentList(request: {
4201
- state?: "open" | "closed" | "all";
4202
- namespace?: string;
4203
- principal?: string;
4204
- limit?: number;
4205
- }): Promise<unknown>;
4206
- continuityLoopAddOrUpdate(request: {
4207
- id: string;
4208
- cadence: "daily" | "weekly" | "monthly" | "quarterly";
4209
- purpose: string;
4210
- status: "active" | "paused" | "retired";
4211
- killCondition: string;
4212
- namespace?: string;
4213
- principal?: string;
4214
- lastReviewed?: string;
4215
- notes?: string;
4216
- }): Promise<unknown>;
4217
- continuityLoopReview(request: {
4218
- id: string;
4219
- namespace?: string;
4220
- principal?: string;
4221
- status?: "active" | "paused" | "retired";
4222
- notes?: string;
4223
- reviewedAt?: string;
4224
- }): Promise<unknown>;
4225
- identityAnchorGet(request: {
4226
- namespace?: string;
4227
- principal?: string;
4228
- }): Promise<unknown>;
4229
- /**
4230
- * @deprecated since issue #679 PR 5/5 — the identity-anchor model is
4231
- * superseded by the peer registry. Use `peerSet({ id: "self", ... })` or
4232
- * `remnic peer set self` to update the self peer's identity kernel, and
4233
- * `remnic peer migrate` to seed `peers/self/identity.md` from existing
4234
- * legacy anchor data. This method continues to function for backward
4235
- * compatibility but will be removed in a future major version.
4236
- */
4237
- identityAnchorUpdate(request: {
4238
- namespace?: string;
4239
- principal?: string;
4240
- identityTraits?: string;
4241
- communicationPreferences?: string;
4242
- operatingPrinciples?: string;
4243
- continuityNotes?: string;
4244
- }): Promise<unknown>;
4245
- memoryIdentity(request: {
4246
- namespace?: string;
4247
- principal?: string;
4248
- }): Promise<unknown>;
4249
- workTask(request: {
4250
- action: "create" | "get" | "list" | "update" | "transition" | "delete";
4251
- id?: string;
4252
- title?: string;
4253
- description?: string;
4254
- status?: string;
4255
- priority?: string;
4256
- owner?: string;
4257
- assignee?: string;
4258
- projectId?: string;
4259
- tags?: string[];
4260
- dueAt?: string;
4261
- }): Promise<unknown>;
4262
- workProject(request: {
4263
- action: "create" | "get" | "list" | "update" | "delete" | "link_task";
4264
- id?: string;
4265
- name?: string;
4266
- description?: string;
4267
- status?: string;
4268
- owner?: string;
4269
- tags?: string[];
4270
- taskId?: string;
4271
- projectId?: string;
4272
- }): Promise<unknown>;
4273
- workBoard(request: {
4274
- action: "export_markdown" | "export_snapshot" | "import_snapshot";
4275
- projectId?: string;
4276
- snapshotJson?: string;
4277
- linkToMemory?: boolean;
4278
- }): Promise<unknown>;
4279
- sharedContextWriteOutput(request: {
4280
- agentId: string;
4281
- title: string;
4282
- content: string;
4283
- authority?: string;
4284
- expiresAt?: string;
4285
- supersedes?: string;
4286
- /** Authenticated principal resolved by the surface, never client-supplied. */
4287
- principal?: string;
4288
- }): Promise<unknown>;
4289
- sharedFeedbackRecord(request: {
4290
- agent: string;
4291
- decision: "approved" | "approved_with_feedback" | "rejected";
4292
- reason: string;
4293
- date?: string;
4294
- learning?: string;
4295
- outcome?: string;
4296
- severity?: "low" | "medium" | "high";
4297
- confidence?: number;
4298
- workflow?: string;
4299
- tags?: string[];
4300
- evidenceWindowStart?: string;
4301
- evidenceWindowEnd?: string;
4302
- refs?: string[];
4303
- }): Promise<unknown>;
4304
- sharedPrioritiesAppend(request: {
4305
- agentId: string;
4306
- text: string;
4307
- }): Promise<unknown>;
4308
- sharedContextCrossSignalsRun(request: {
4309
- date?: string;
4310
- }): Promise<unknown>;
4311
- sharedContextCurateDaily(request: {
4312
- date?: string;
4313
- }): Promise<unknown>;
4314
- compoundingWeeklySynthesize(request: {
4315
- weekId?: string;
4316
- }): Promise<unknown>;
4317
- compoundingPromoteCandidate(request: {
4318
- weekId: string;
4319
- candidateId: string;
4320
- dryRun?: boolean;
4321
- }): Promise<unknown>;
4322
- compressionGuidelinesOptimize(request: {
4323
- dryRun?: boolean;
4324
- eventLimit?: number;
4325
- }): Promise<unknown>;
4326
- compressionGuidelinesActivate(request: {
4327
- expectedContentHash?: string;
4328
- expectedGuidelineVersion?: number;
4329
- }): Promise<unknown>;
4330
- memorySearch(request: {
4331
- query: string;
4332
- namespace?: string;
4333
- maxResults?: number;
4334
- collection?: string;
4335
- mode?: "search" | "hybrid" | "bm25" | "vector";
4336
- principal?: string;
4337
- }): Promise<{
4338
- query: string;
4339
- results: Array<{
4340
- path: string;
4341
- score: number;
4342
- snippet: string;
4343
- }>;
4344
- count: number;
4345
- }>;
4346
- memoryProfile(namespace?: string, principal?: string): Promise<Record<string, unknown>>;
4347
- memoryEntitiesList(namespace?: string, principal?: string): Promise<{
4348
- entities: string[];
4349
- count: number;
4350
- }>;
4351
- memoryQuestions(namespace?: string, principal?: string): Promise<{
4352
- questions: Array<{
4353
- id: string;
4354
- question: string;
4355
- resolved: boolean;
4356
- }>;
4357
- count: number;
4358
- }>;
4359
- lastRecallSnapshot(sessionKey?: string): Promise<unknown>;
4360
- intentDebug(namespace?: string): Promise<unknown>;
4361
- qmdDebug(namespace?: string): Promise<unknown>;
4362
- graphExplainLastRecall(namespace?: string): Promise<unknown>;
4363
- graphSnapshot(request: GraphSnapshotRequest & {
4364
- namespace?: string;
4365
- }, authenticatedPrincipal?: string): Promise<GraphSnapshotResponse>;
4366
- memoryFeedback(request: {
4367
- memoryId: string;
4368
- vote: "up" | "down";
4369
- note?: string;
4370
- }): Promise<{
4371
- recorded: boolean;
4372
- enabled?: boolean;
4373
- reason?: string;
4374
- }>;
4375
- /**
4376
- * Record a Memory Worth outcome observation (issue #560 PR 3).
4377
- *
4378
- * This is distinct from `memoryFeedback` — feedback is a human thumbs
4379
- * up/down on whether a recalled memory was relevant; outcome is an
4380
- * automated signal about whether the session that consumed the memory
4381
- * ultimately succeeded or failed. Outcomes feed the Laplace-smoothed
4382
- * worth score (`computeMemoryWorth`, PR 2) that PR 4 will use to
4383
- * downweight memories correlated with bad sessions.
4384
- *
4385
- * The underlying writer only touches fact-category memories. Corrections,
4386
- * procedures, and other kinds return `{ ok: false, reason:
4387
- * "ineligible_category" }` so a ledger drainer doesn't need to pre-filter.
4388
- */
4389
- memoryOutcome(request: {
4390
- memoryId: string;
4391
- outcome: MemoryOutcomeKind;
4392
- namespace?: string;
4393
- principal?: string;
4394
- sessionKey?: string;
4395
- timestamp?: string;
4396
- }): Promise<RecordMemoryOutcomeResult>;
4397
- memoryPromote(request: {
4398
- memoryId: string;
4399
- namespace?: string;
4400
- principal?: string;
4401
- sessionKey?: string;
4402
- }): Promise<unknown>;
4403
- memoryActionApply(request: {
4404
- action: string;
4405
- outcome?: string;
4406
- reason?: string;
4407
- memoryId?: string;
4408
- namespace?: string;
4409
- principal?: string;
4410
- sessionKey?: string;
4411
- content?: string;
4412
- category?: string;
4413
- linkTargetId?: string;
4414
- linkType?: string;
4415
- linkStrength?: number;
4416
- artifactType?: string;
4417
- execute?: boolean;
4418
- sourcePrompt?: string;
4419
- dryRun?: boolean;
4420
- }): Promise<unknown>;
4421
- contextCheckpoint(request: {
4422
- sessionKey: string;
4423
- context: string;
4424
- namespace?: string;
4425
- principal?: string;
4426
- }): Promise<{
4427
- saved: boolean;
4428
- }>;
4429
- lcmStatus(): Promise<EngramAccessLcmStatusResponse>;
4430
- recordCitationUsage(request: CitationUsageRequest): Promise<CitationUsageResult>;
4431
- /**
4432
- * Gather a point-in-time `ConsoleStateSnapshot` from the orchestrator.
4433
- *
4434
- * Principal-aware: `resolveReadableNamespace` enforces ACL before the
4435
- * snapshot is gathered, so callers cannot read a namespace they don't
4436
- * have read access to (CLAUDE.md rule 42). The resolved namespace's
4437
- * storage directory is forwarded as `config.memoryDir` so the ledger-
4438
- * tail reader in `gatherConsoleState` scans the correct namespace root
4439
- * rather than the global root. Read-only — never mutates orchestrator state.
4440
- */
4441
- consoleState(namespace?: string, principal?: string): Promise<ConsoleStateSnapshot>;
4442
- /**
4443
- * List all registered peers. Returns the array of `Peer` objects in
4444
- * deterministic alphabetical order (mirroring `listPeers` storage semantics).
4445
- */
4446
- peerList(): Promise<{
4447
- peers: Peer[];
4448
- }>;
4449
- /**
4450
- * Get a single peer by id. Returns `{ found: false }` when the peer does
4451
- * not exist rather than throwing, matching the `memoryGet` / `entityGet`
4452
- * pattern used throughout the service.
4453
- */
4454
- peerGet(peerId: string): Promise<{
4455
- found: true;
4456
- peer: Peer;
4457
- } | {
4458
- found: false;
4459
- }>;
4460
- /**
4461
- * Upsert a peer. Writes `peers/{id}/identity.md`. On first write the
4462
- * `createdAt` timestamp is set to now; on subsequent writes only
4463
- * `displayName` and `notes` are mutated (kind and createdAt are immutable
4464
- * once set, per the storage contract).
4465
- *
4466
- * Returns `{ created: true }` on first write, `{ created: false }` on update.
4467
- */
4468
- peerSet(input: {
4469
- id: string;
4470
- kind?: string;
4471
- displayName?: string;
4472
- notes?: string;
4473
- }): Promise<{
4474
- ok: true;
4475
- created: boolean;
4476
- peer: Peer;
4477
- }>;
4478
- /**
4479
- * Delete a peer by removing `peers/{id}/identity.md`. If the file does not
4480
- * exist the call is a no-op (idempotent). The peer directory itself
4481
- * (`peers/{id}/`) is intentionally left in place — profile and interaction
4482
- * log data are not destroyed.
4483
- */
4484
- peerDelete(peerId: string): Promise<{
4485
- ok: true;
4486
- deleted: boolean;
4487
- }>;
4488
- /**
4489
- * Destructively purge the entire peer directory for a given peerId —
4490
- * `identity.md`, `profile.md`, `interactions.log.md`, and any other
4491
- * files in `peers/{id}/`. Requires `confirm: "yes"` to prevent
4492
- * accidental invocation.
4493
- *
4494
- * This is the DESTRUCTIVE counterpart to `peerDelete`, which only
4495
- * removes `identity.md`. All companion files are permanently removed.
4496
- *
4497
- * Returns `{ ok: true, purged: true }` when the directory existed and
4498
- * was removed; `{ ok: true, purged: false }` when the directory did
4499
- * not exist (idempotent no-op).
4500
- */
4501
- peerForget(peerId: string, opts: {
4502
- confirm: string;
4503
- }): Promise<{
4504
- ok: true;
4505
- purged: boolean;
4506
- }>;
4507
- /**
4508
- * Get the evolving cognitive profile for a peer. Returns `{ found: false }`
4509
- * when no profile file exists yet (profile is written by the async reasoner,
4510
- * PR 2/5). The peer identity itself need not exist for a profile to exist,
4511
- * but in practice the reasoner only writes profiles for registered peers.
4512
- */
4513
- peerProfileGet(peerId: string): Promise<{
4514
- found: true;
4515
- profile: PeerProfile;
4516
- } | {
4517
- found: false;
4518
- }>;
4519
- get memoryDir(): string;
4520
- /**
4521
- * Resolve the storage directory for a given namespace. Used by the SSE
4522
- * graph-event handler to subscribe to the correct per-namespace bus rather
4523
- * than the global root (CLAUDE.md rule 42 — read/write paths must resolve
4524
- * through the same namespace layer).
4525
- *
4526
- * `principal` must be the transport-bound request principal (from
4527
- * `resolveRequestPrincipal`). When namespaces are enabled, an absent
4528
- * principal causes `resolveReadableNamespace` to throw an auth error,
4529
- * matching the behaviour of every other authenticated read path.
4530
- *
4531
- * Falls back to `this.memoryDir` when namespaces are disabled or the
4532
- * namespace is absent, matching the behaviour of every other read path.
4533
- */
4534
- getMemoryDirForNamespace(namespace?: string, principal?: string): Promise<string>;
4535
- getReadableStorageForNamespace(namespace?: string, principal?: string): Promise<{
4536
- namespace: string;
4537
- storage: StorageManager;
4538
- }>;
4539
- getWritableStorageForNamespace(namespace?: string, principal?: string): Promise<{
4540
- principal: string;
4541
- namespace: string;
4542
- storage: StorageManager;
4543
- }>;
4544
- get storageRef(): StorageManager;
4545
- get configRef(): PluginConfig;
4546
- getStorageForResolvedNamespace(namespace: string): Promise<StorageManager>;
4547
- get localLlmRef(): LocalLlmClient | null;
4548
- get fallbackLlmRef(): FallbackLlmClient | null;
4549
- get embeddingLookupFactoryRef(): (storage: StorageManager) => SemanticDedupLookup | undefined;
4550
- /**
4551
- * Import a capsule archive into the orchestrator's memory directory.
4552
- *
4553
- * Delegates directly to the standalone {@link importCapsuleFn} function.
4554
- * The `root` parameter defaults to the orchestrator's `memoryDir` when
4555
- * omitted, so callers that only have access to the service do not need to
4556
- * thread the config value through.
4557
- *
4558
- * `versioning` defaults to the orchestrator's page-versioning config so
4559
- * `mode: "overwrite"` automatically snapshots prior content without the
4560
- * caller having to construct the config object.
4561
- */
4562
- capsuleImport(opts: Omit<ImportCapsuleOptions, "root" | "memoryDir"> & {
4563
- root?: string;
4564
- memoryDir?: string;
4565
- namespace?: string;
4566
- principal?: string;
4567
- }): Promise<ImportCapsuleResult>;
4568
- private validateCapsuleImportArchivePath;
4569
- private isCapsuleImportPathInputFsError;
4570
- private isCapsuleImportArchiveInputError;
4571
- /**
4572
- * Export a capsule archive from the orchestrator's memory directory.
4573
- *
4574
- * HTTP and future MCP surfaces use this rather than calling the transfer
4575
- * helper directly so namespace ACL checks stay consistent with the archive
4576
- * write side effect. The exporter still owns archive construction and
4577
- * validation.
4578
- */
4579
- capsuleExport(opts: Omit<ExportCapsuleOptions, "root" | "memoryDir"> & {
4580
- root?: string;
4581
- memoryDir?: string;
4582
- namespace?: string;
4583
- principal?: string;
4584
- }): Promise<ExportCapsuleResult>;
4585
- capsuleList(options?: {
4586
- namespace?: string;
4587
- principal?: string;
4588
- }): Promise<EngramAccessCapsuleListResponse>;
4589
- /**
4590
- * Operator-configured offline-sync excludes (#1786), compiled once per
4591
- * service instance. Applied to push-side (snapshot/read) enumeration
4592
- * only — apply-side stays permissive so remote-authoritative runtime
4593
- * files keep flowing in.
4594
- */
4595
- private _offlineSyncUserExcludes;
4596
- private get offlineSyncUserExcludes();
4597
- offlineSyncSnapshot(options?: EngramAccessOfflineSyncSnapshotRequest & {
4598
- signal?: AbortSignal;
4599
- }): Promise<EngramAccessOfflineSyncSnapshotResponse>;
4600
- offlineSyncSnapshotStream(options?: Omit<EngramAccessOfflineSyncSnapshotRequest, "baseCapturedAt" | "baseFiles"> & {
4601
- signal?: AbortSignal;
4602
- }): Promise<EngramAccessOfflineSyncSnapshotStreamResponse>;
4603
- offlineSyncManifestStream(options?: EngramAccessOfflineSyncManifestRequest & {
4604
- signal?: AbortSignal;
4605
- }): Promise<OfflineSyncManifestStreamResponse>;
4606
- offlineSyncFiles(options: EngramAccessOfflineSyncFilesRequest): Promise<EngramAccessOfflineSyncFilesResponse>;
4607
- offlineSyncFileContent(options: EngramAccessOfflineSyncFileContentRequest): Promise<EngramAccessOfflineSyncFileContentResponse>;
4608
- offlineSyncApplyFileContent(options: EngramAccessOfflineSyncApplyFileContentRequest): Promise<EngramAccessOfflineSyncApplyFileContentResponse>;
4609
- offlineSyncFinalizeConvergence(options: EngramAccessOfflineSyncFinalizeConvergenceRequest): Promise<EngramAccessOfflineSyncFinalizeConvergenceResponse>;
4610
- offlineSyncApply(options: EngramAccessOfflineSyncApplyRequest): Promise<EngramAccessOfflineSyncApplyResponse>;
4611
- /**
4612
- * Return per-phase Dreams telemetry for the last N hours (default 24).
4613
- */
4614
- dreamsStatus(options?: {
4615
- windowHours?: number;
4616
- namespace?: string;
4617
- principal?: string;
4618
- }): Promise<DreamsStatusResult>;
4619
- dreamsRun(options: {
4620
- phase: DreamsPhase;
4621
- dryRun?: boolean;
4622
- namespace?: string;
4623
- authenticatedPrincipal?: string;
4624
- }): Promise<DreamsRunResult>;
4625
- /**
4626
- * Structural host bound per call so the wearables + meetings ops (issue
4627
- * #2123) delegate to the pure surface module while the namespace/principal
4628
- * resolvers stay private.
4629
- */
4630
- private get wmHost();
4631
- wearablesStatus(scope?: WearablesMeetingsScope): Promise<Awaited<ReturnType<WearablesService["status"]>>>;
4632
- wearablesSync(request: {
4633
- source?: string;
4634
- date?: string;
4635
- days?: number;
4636
- forceMemories?: boolean;
4637
- } & WearablesMeetingsScope): Promise<Awaited<ReturnType<WearablesService["sync"]>>>;
4638
- wearablesTranscriptDay(request: {
4639
- date: string;
4640
- source?: string;
4641
- } & WearablesMeetingsScope): Promise<Awaited<ReturnType<WearablesService["dayTranscript"]>>>;
4642
- wearablesTranscriptSearch(request: {
4643
- query: string;
4644
- source?: string;
4645
- from?: string;
4646
- to?: string;
4647
- limit?: number;
4648
- } & WearablesMeetingsScope): Promise<Awaited<ReturnType<WearablesService["searchTranscripts"]>>>;
4649
- wearablesTranscriptMemories(request: {
4650
- source?: string;
4651
- date?: string;
4652
- limit?: number;
4653
- } & WearablesMeetingsScope): Promise<Awaited<ReturnType<WearablesService["transcriptMemories"]>>>;
4654
- meetingsList(date?: string, scope?: WearablesMeetingsScope): Promise<MeetingsListResult>;
4655
- meetingsGet(id: string, scope?: WearablesMeetingsScope): Promise<MeetingsGetResult>;
4656
- meetingsBuild(date: string, scope?: WearablesMeetingsScope): Promise<MeetingsDayBuildSummary>;
4657
- /**
4658
- * Resolve an effective scope inspection for the console. Inputs are
4659
- * redacted before return so an operator-supplied principal preview /
4660
- * namespace override never echoes a pasted credential back.
4661
- */
4662
- adminInspectScope(options: {
4663
- sessionKey?: string;
4664
- namespace?: string;
4665
- principalOverride?: string;
4666
- operation?: InspectScopeOptions["operation"];
4667
- }): Promise<ScopeInspection>;
4668
- /**
4669
- * List configured + discovered namespaces from the catalog with the
4670
- * admin filters the console exposes.
4671
- */
4672
- adminListNamespaces(filter?: AdminNamespaceFilter): Promise<AdminNamespaceList>;
4673
- /**
4674
- * Per-namespace maintenance + QMD health. QMD diagnostics are probed via
4675
- * the orchestrator's search health accessor (one probe per namespace).
4676
- */
4677
- adminMaintenanceHealth(): Promise<MaintenanceHealthReport>;
4678
- /**
4679
- * Dry-run transcript/session audit. Detects mixed `other/default` data
4680
- * and legacy stranded directories. Never applies a migration.
4681
- */
4682
- adminTranscriptAudit(): Promise<TranscriptAuditReport>;
4683
- adminPromoteMemory(request: {
4684
- sourceMemoryId: string;
4685
- namespace?: string;
4686
- principal?: string;
4687
- sessionKey?: string;
4688
- targets: ReadonlyArray<{
4689
- kind: MemoryPromotionTargetKind;
4690
- namespace?: string;
4691
- }>;
4692
- reason: string;
4693
- actor?: never;
4694
- }): Promise<MemoryPromotionResult>;
4695
- reviewDeckList(opts: Parameters<ReviewDeckSurface["list"]>[0]): Promise<ReviewDeckPage>;
4696
- reviewDeckAction(...args: Parameters<ReviewDeckSurface["action"]>): Promise<ReviewDeckActionReceipt>;
4697
- reviewDeckUndo(...args: Parameters<ReviewDeckSurface["undo"]>): Promise<ReviewDeckActionReceipt>;
4698
- }
4699
-
4700
- export { type ProcedureMaintenanceReasonCode as $, type AccessProfilingReportRequest as A, type BoundOperation as B, type CodingScopedWriteInput as C, type DecisionSurfaceRequest as D, type EngramAccessReviewQueueResponse as E, type CodegraphSurfaceRequest as F, type CodegraphSurfaceResponse as G, type EngramAccessRecallResponse as H, type EngramAccessRecallRequest as I, type EngramAccessMemorySummary as J, type EngramAccessSetCodingContextRequest as K, type ReviewDeckSnapshot as L, type MemoryPromotionTargetKind as M, EngramMcpServer as N, type OperationName as O, type PromotionCandidatesResult as P, OPERATION_NAMES as Q, type ReviewDeckSourceRow as R, type SubjectBackfillReport as S, PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS as T, PROMOTION_CANDIDATES_MCP_TOOLS as U, type ProcedureLibraryMaintenanceReport as V, type WhoKnowsResult as W, type ProcedureMaintenanceAction as X, type ProcedureMaintenanceActionKind as Y, type ProcedureMaintenanceEvidence as Z, type ProcedureMaintenanceMarker as _, type AccessProfilingReportResponse as a, SupportPassportGrantStateSchema as a$, type ProcedureStatsConfigSnapshot as a0, type ProcedureStatsRecent as a1, type ProcedureStatsReport as a2, type ProcedureStatusCounts as a3, type PromotionCandidate as a4, type PromotionReuseSignal as a5, type ReviewDeckActionReceipt as a6, type ReviewDeckActionRequest as a7, type ReviewDeckChoice as a8, ReviewDeckCursorError as a9, SupportPassportCardCategorySchema as aA, SupportPassportCardListSchema as aB, type SupportPassportCardMutationInput as aC, SupportPassportCardMutationInputSchema as aD, SupportPassportCardSchema as aE, type SupportPassportCardServiceDependencies as aF, type SupportPassportCardStatus as aG, SupportPassportCardStatusSchema as aH, SupportPassportCardTitleSchema as aI, type SupportPassportCreateGrantInput as aJ, SupportPassportCreateGrantInputSchema as aK, type SupportPassportCreateGrantRequest as aL, SupportPassportCreateGrantRequestSchema as aM, type SupportPassportCreateGrantResult as aN, type SupportPassportCreatedGrant as aO, SupportPassportCreatedGrantSchema as aP, type SupportPassportDraftCard as aQ, SupportPassportDraftCardSchema as aR, type SupportPassportDraftModelInput as aS, SupportPassportDraftModelInputSchema as aT, SupportPassportDraftOutputSchema as aU, type SupportPassportDraftResult as aV, SupportPassportError as aW, type SupportPassportErrorCode as aX, type SupportPassportGrantCardRef as aY, SupportPassportGrantCardRefSchema as aZ, type SupportPassportGrantState as a_, type ReviewDeckCursorScope as aa, type ReviewDeckEvidence as ab, type ReviewDeckItem as ac, type ReviewDeckPage as ad, type ReviewDeckRisk as ae, type ReviewDeckUndoRequest as af, SUBJECT_GUARD_MODES as ag, SUBJECT_GUARD_OVERRIDE_FLAG as ah, SUBJECT_VALUES as ai, SUPPORT_PASSPORT_CARD_CATEGORIES as aj, SUPPORT_PASSPORT_CARD_STATUSES as ak, SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS as al, SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES as am, SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER as an, SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH as ao, type SubjectBackfillStorage as ap, type SubjectGuardDecision as aq, SupportPassportAccessSurface as ar, type SupportPassportAccessSurfaceDependencies as as, type SupportPassportAnswerModelInput as at, SupportPassportAnswerModelInputSchema as au, type SupportPassportAnswerOutput as av, SupportPassportAnswerOutputSchema as aw, type SupportPassportAnswerResult as ax, type SupportPassportCard as ay, type SupportPassportCardCategory as az, type EngramAccessCapsuleListResponse as b, isMemorySubject as b$, SupportPassportListCardsInputSchema as b0, SupportPassportListGrantsInputSchema as b1, type SupportPassportManualDraftInput as b2, SupportPassportManualDraftInputSchema as b3, SupportPassportMemoryIdSchema as b4, type SupportPassportMemoryPreview as b5, SupportPassportModelAdapter as b6, type SupportPassportModelAdapterOptions as b7, type SupportPassportModelAuditRecord as b8, SupportPassportModelAuditRecordSchema as b9, WHO_KNOWS_AUTHORSHIP_BONUS as bA, WHO_KNOWS_DEFAULT_LIMIT as bB, WHO_KNOWS_MAX_EVIDENCE as bC, WHO_KNOWS_MAX_LIMIT as bD, WHO_KNOWS_MCP_TOOLS as bE, type WhoKnowsEntity as bF, type WhoKnowsEvidence as bG, type WhoKnowsHit as bH, type WhoKnowsHttpOutcome as bI, type WhoKnowsStorage as bJ, acceptsSupportPassportModelResponse as bK, backfillMemorySubjects as bL, buildReviewDeckPage as bM, buildSupportPassportDirectGatewayConfig as bN, compareReviewDeckRows as bO, computeProcedureStats as bP, computePromotionCandidates as bQ, computeReviewItemRevision as bR, computeSupportPassportCardRevision as bS, computeWhoKnows as bT, createSupportPassportModelAdapter as bU, decodeReviewDeckCursor as bV, encodeReviewDeckCursor as bW, evaluateSubjectGuard as bX, formatProcedureStatsText as bY, handleWhoKnowsHttpQuery as bZ, hashSupportPassportAuditValues as b_, type SupportPassportModelAuditSink as ba, SupportPassportModelAuditStore as bb, SupportPassportModelCallError as bc, type SupportPassportModelClients as bd, type SupportPassportModelFailureMetadata as be, type SupportPassportModelMessage as bf, type SupportPassportModelResultMetadata as bg, type SupportPassportModelRoute as bh, type SupportPassportModelRouteKind as bi, type SupportPassportModelRouteResult as bj, type SupportPassportModelUsage as bk, SupportPassportNamespaceSchema as bl, type SupportPassportOwnerCreateGrantRequest as bm, SupportPassportOwnerCreateGrantRequestSchema as bn, type SupportPassportOwnerGrant as bo, SupportPassportOwnerGrantSchema as bp, type SupportPassportOwnerScope as bq, SupportPassportPublicCardSchema as br, type SupportPassportPublicGuide as bs, SupportPassportPublicGuideSchema as bt, type SupportPassportReplaceCardInput as bu, SupportPassportReplaceCardInputSchema as bv, type SupportPassportRevokeGrantInput as bw, SupportPassportRevokeGrantInputSchema as bx, type SupportPassportRevokeGrantResult as by, SupportPassportSourceMemoryIdSchema as bz, type MemoryPromotionResult as c, type EngramAccessTrustZoneBrowseRequest as c$, isSharedPromotionTarget as c0, isSubjectGuardMode as c1, loadWhoKnowsEntities as c2, projectReviewDeckItem as c3, promotionCandidateKey as c4, resolveSupportPassportModelRoutePlan as c5, resolveWriteSubject as c6, runProcedureLibraryMaintenance as c7, subjectDefaultForCategory as c8, tokenizeTopic as c9, type EngramAccessLcmCompactionRecordRequest as cA, type EngramAccessLcmStatusResponse as cB, type EngramAccessMaintenanceResponse as cC, type EngramAccessMemoryBrowseRequest as cD, type EngramAccessMemoryBrowseResponse as cE, type EngramAccessMemoryRecord as cF, type EngramAccessObserveMessage as cG, type EngramAccessOfflineSyncApplyFileContentRequest as cH, type EngramAccessOfflineSyncApplyFileContentResponse as cI, type EngramAccessOfflineSyncApplyRequest as cJ, type EngramAccessOfflineSyncApplyResponse as cK, type EngramAccessOfflineSyncFileContentRequest as cL, type EngramAccessOfflineSyncFileContentResponse as cM, type EngramAccessOfflineSyncFilesRequest as cN, type EngramAccessOfflineSyncFilesResponse as cO, type EngramAccessOfflineSyncFinalizeConvergenceRequest as cP, type EngramAccessOfflineSyncFinalizeConvergenceResponse as cQ, type EngramAccessOfflineSyncManifestRequest as cR, type EngramAccessOfflineSyncSnapshotRequest as cS, type EngramAccessOfflineSyncSnapshotResponse as cT, type EngramAccessQualityResponse as cU, type EngramAccessRecallExplainRequest as cV, type EngramAccessRecallExplainResponse as cW, type EngramAccessReviewDispositionRequest as cX, type EngramAccessReviewDispositionResponse as cY, type EngramAccessScopeDebug as cZ, type EngramAccessTimelineResponse as c_, validateWhoKnowsInput as ca, type EngramAccessLcmCompactionFlushRequest as cb, type ExtractionForceFlushDelegate as cc, delegateExtractionForceFlush as cd, type OperationContext as ce, type OperationHooks as cf, type OperationSpec as cg, __resetRegistryForTest as ch, coerceBooleanLike as ci, coercePositiveInteger as cj, defineOperation as ck, formatZodIssues as cl, getOperation as cm, listRegisteredOperations as cn, normalizeOptionalPath as co, operationRequiresAuthorizedNamespace as cp, operationUsesPrincipalNamespace as cq, MCP_MIGRATED_OPERATIONS as cr, MCP_SUPPORTED_PROTOCOL_VERSIONS as cs, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as ct, type EngramAccessActionConfidenceRequest as cu, type EngramAccessActionConfidenceResponse as cv, type EngramAccessDaySummaryRequest as cw, type EngramAccessEntityListResponse as cx, type EngramAccessEntityResponse as cy, type EngramAccessEntitySummary as cz, type EngramAccessExtractionForceFlushRequest as d, type EngramAccessTrustZoneBrowseResponse as d0, type EngramAccessTrustZoneDemoSeedRequest as d1, type EngramAccessTrustZoneDemoSeedResponse as d2, type EngramAccessTrustZonePromoteRequest as d3, type EngramAccessTrustZonePromoteResponse as d4, type EngramAccessTrustZoneRecordSummary as d5, type EngramAccessTrustZoneStatusResponse as d6, type EngramAccessWriteEnvelope as d7, type RetainedCategorySpelling as d8, buildProjectedGovernanceProposedActions as d9, hasGroupedGovernanceActions as da, shapeMemorySummary as db, type EngramAccessExtractionForceFlushResponse as e, EngramAccessService as f, type EngramAccessLcmCompactionFlushResponse as g, type EngramAccessLcmCompactionRecordResponse as h, type EngramAccessOfflineSyncSnapshotStreamResponse as i, type EngramAccessLcmSearchRequest as j, type EngramAccessLcmSearchResponse as k, type McpTool as l, type MemoryScopePlan as m, type EngramAccessMemoryStoreRequest as n, type EngramAccessSuggestionSubmitRequest as o, type EngramAccessBriefingRequest as p, type EngramAccessBriefingResponse as q, type EngramAccessWriteResponse as r, type EngramAccessObserveRequest as s, type EngramAccessObserveResponse as t, type ArchitectureSurfaceRequest as u, type ArchitectureSurfaceResponse as v, type DecisionSurfaceResponse as w, type DeltaSurfaceRequest as x, type DeltaSurfaceResponse as y, type EngramAccessMemoryResponse as z };