@remnic/core 9.64.4 → 9.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/dist/access-admin-ops-surface.d.ts +12 -11
  2. package/dist/access-admin-ops-surface.js +13 -13
  3. package/dist/access-authorization-probe.d.ts +12 -11
  4. package/dist/access-authorization-probe.js +14 -14
  5. package/dist/access-boundary.d.ts +12 -11
  6. package/dist/access-boundary.js +13 -13
  7. package/dist/access-cli.js +51 -49
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +2 -1
  10. package/dist/access-extraction-force-flush.d.ts +12 -11
  11. package/dist/access-extraction-force-flush.js +13 -13
  12. package/dist/access-health-types.d.ts +2 -1
  13. package/dist/access-http-lcm-compaction.d.ts +12 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +12 -11
  15. package/dist/access-http-offline-stream.d.ts +12 -11
  16. package/dist/access-http-query.d.ts +3 -2
  17. package/dist/access-http-query.js +15 -15
  18. package/dist/access-http.d.ts +13 -12
  19. package/dist/access-http.js +24 -24
  20. package/dist/access-identity-continuity-surface.d.ts +10 -9
  21. package/dist/access-identity-continuity-surface.js +13 -13
  22. package/dist/access-lcm-surface.d.ts +12 -11
  23. package/dist/access-lcm-surface.js +13 -13
  24. package/dist/access-mcp.d.ts +12 -11
  25. package/dist/access-mcp.js +18 -18
  26. package/dist/access-memory-search-fanout.d.ts +3 -2
  27. package/dist/{access-namespace-preflight-CYeI1R2_.d.ts → access-namespace-preflight-AqlR0w02.d.ts} +1 -1
  28. package/dist/access-namespace-preflight.d.ts +4 -3
  29. package/dist/access-namespace-preflight.js +13 -13
  30. package/dist/access-observe-write-surface.d.ts +12 -11
  31. package/dist/access-observe-write-surface.js +13 -13
  32. package/dist/access-offline-manifest.d.ts +10 -9
  33. package/dist/access-operations-batch.js +14 -14
  34. package/dist/access-operations.d.ts +12 -11
  35. package/dist/access-operations.js +17 -17
  36. package/dist/access-recall-concurrency.d.ts +12 -11
  37. package/dist/access-recall-concurrency.js +13 -13
  38. package/dist/access-recall-response.d.ts +12 -11
  39. package/dist/access-recall-response.js +13 -13
  40. package/dist/access-recall-surface.d.ts +12 -11
  41. package/dist/access-recall-surface.js +13 -13
  42. package/dist/{access-service-BKtdXnyk.d.ts → access-service-BHmtl9BA.d.ts} +7 -7
  43. package/dist/access-service-helpers.d.ts +12 -11
  44. package/dist/access-service.d.ts +12 -11
  45. package/dist/access-service.js +13 -13
  46. package/dist/access-surface-catalog.d.ts +12 -11
  47. package/dist/access-surface-catalog.js +15 -15
  48. package/dist/access-wearables-meetings-surface.d.ts +4 -3
  49. package/dist/action-confidence.d.ts +2 -1
  50. package/dist/active-memory-bridge.d.ts +2 -1
  51. package/dist/active-recall.d.ts +2 -1
  52. package/dist/active-recall.js +4 -2
  53. package/dist/active-recall.js.map +1 -1
  54. package/dist/ambient-provenance.d.ts +2 -1
  55. package/dist/artifact-search.d.ts +2 -1
  56. package/dist/behavior-learner.d.ts +2 -1
  57. package/dist/behavior-signals.d.ts +2 -1
  58. package/dist/bootstrap.d.ts +10 -9
  59. package/dist/briefing-window.d.ts +3 -2
  60. package/dist/briefing.d.ts +3 -2
  61. package/dist/briefing.js +5 -5
  62. package/dist/buffer-surprise-report.d.ts +2 -1
  63. package/dist/buffer-turn-helpers.d.ts +2 -1
  64. package/dist/buffer.d.ts +3 -2
  65. package/dist/bulk-import/index.d.ts +4 -3
  66. package/dist/calibration.d.ts +2 -1
  67. package/dist/capabilities.d.ts +2 -1
  68. package/dist/{catalog-CLAqQO2L.d.ts → catalog-gBoyN-IW.d.ts} +1 -1
  69. package/dist/causal-behavior.d.ts +2 -1
  70. package/dist/causal-consolidation.d.ts +2 -1
  71. package/dist/causal-consolidation.js +6 -6
  72. package/dist/causal-trajectory-graph.d.ts +2 -1
  73. package/dist/{chunk-TY35YQ6E.js → chunk-34BMUGRA.js} +2 -2
  74. package/dist/{chunk-XH4IQVTN.js → chunk-4E6IJCLC.js} +2 -2
  75. package/dist/{chunk-LZKCMK3U.js → chunk-4GD7YV4Y.js} +2 -2
  76. package/dist/chunk-7PHI6GUI.js +95 -0
  77. package/dist/chunk-7PHI6GUI.js.map +1 -0
  78. package/dist/{chunk-YXGU3MDQ.js → chunk-7PWWGYGO.js} +2 -2
  79. package/dist/{chunk-XZUCNVGE.js → chunk-A4VJKT2H.js} +8 -8
  80. package/dist/{chunk-NO7B6DRB.js → chunk-A6LBDIFS.js} +2 -2
  81. package/dist/{chunk-ON2P3SHG.js → chunk-CCP6LXQJ.js} +2 -2
  82. package/dist/{chunk-DHKV6E4A.js → chunk-CESQ4CMC.js} +2 -2
  83. package/dist/{chunk-RWLRKMZK.js → chunk-E6EQTCOQ.js} +2 -2
  84. package/dist/{chunk-DG6MJD7W.js → chunk-FFPBTNLC.js} +2 -2
  85. package/dist/{chunk-PE76XIDM.js → chunk-GOGHZVY3.js} +3 -3
  86. package/dist/{chunk-6LTCUN3T.js → chunk-GQ5OJVTM.js} +2 -2
  87. package/dist/{chunk-GVRLED7R.js → chunk-H6B6GPVH.js} +2 -2
  88. package/dist/{chunk-DA2O3F5V.js → chunk-HBKFYXBA.js} +9 -9
  89. package/dist/{chunk-DC4FJY2G.js → chunk-HDD4RRIX.js} +3 -3
  90. package/dist/{chunk-LOETWOEB.js → chunk-IWUN4RZL.js} +2 -2
  91. package/dist/{chunk-246HFJVG.js → chunk-JNSLW2O4.js} +2 -2
  92. package/dist/{chunk-VLES5S4K.js → chunk-JXMXTV6C.js} +27 -27
  93. package/dist/{chunk-7V3AZWWZ.js → chunk-K7JMKLKV.js} +9 -7
  94. package/dist/{chunk-7V3AZWWZ.js.map → chunk-K7JMKLKV.js.map} +1 -1
  95. package/dist/{chunk-TKI2WOL5.js → chunk-KLPVXLQJ.js} +2 -2
  96. package/dist/{chunk-YFQTDE7N.js → chunk-LA2MSK23.js} +2 -2
  97. package/dist/{chunk-IJXECCUV.js → chunk-LWVG6U7L.js} +2 -2
  98. package/dist/{chunk-7RAJ3GXO.js → chunk-M6L7HI7R.js} +2 -156
  99. package/dist/chunk-M6L7HI7R.js.map +1 -0
  100. package/dist/{chunk-A2IBK3TG.js → chunk-MXJU4GCA.js} +2 -2
  101. package/dist/{chunk-SB6YBB2V.js → chunk-NTERJOFA.js} +2 -2
  102. package/dist/{chunk-H5CGAD7L.js → chunk-OXL5QKTV.js} +1 -1
  103. package/dist/{chunk-EJDLQRUO.js → chunk-P4CQCL27.js} +2 -2
  104. package/dist/{chunk-44DSGZFF.js → chunk-PDKBKBC2.js} +2 -2
  105. package/dist/{chunk-7BVO64UC.js → chunk-PHX3ET3C.js} +2 -2
  106. package/dist/{chunk-PVIXAMWM.js → chunk-QCNB4BRE.js} +2 -2
  107. package/dist/{chunk-JCSUNXYJ.js → chunk-RNKNL5GQ.js} +3 -3
  108. package/dist/{chunk-3LOQN3TO.js → chunk-RQYV6M2T.js} +3 -3
  109. package/dist/{chunk-CKZHKFY3.js → chunk-RRJUMSFX.js} +3 -3
  110. package/dist/{chunk-C6AKYOFO.js → chunk-T6QMNVMO.js} +2 -2
  111. package/dist/{chunk-Z6CJLYXT.js → chunk-U56TGYVS.js} +3 -3
  112. package/dist/{chunk-MJRVF7SF.js → chunk-UPIKAT5A.js} +22 -22
  113. package/dist/{chunk-KRPE7ANR.js → chunk-VNIETTMR.js} +2 -2
  114. package/dist/{chunk-3A46U7XG.js → chunk-WHA6ISFX.js} +2 -2
  115. package/dist/chunk-XAB6STPO.js +160 -0
  116. package/dist/chunk-XAB6STPO.js.map +1 -0
  117. package/dist/{chunk-WBM5NR4E.js → chunk-Y5UT73VZ.js} +2 -2
  118. package/dist/{chunk-XACYILRA.js → chunk-YHSNAGN3.js} +8 -8
  119. package/dist/{chunk-ZSYE2QVJ.js → chunk-YIZRTHHF.js} +2 -2
  120. package/dist/{chunk-UMDZXW5J.js → chunk-YQ3CBLL4.js} +5 -85
  121. package/dist/chunk-YQ3CBLL4.js.map +1 -0
  122. package/dist/{chunk-2QI2JBLQ.js → chunk-ZAI5R6DW.js} +2 -2
  123. package/dist/{chunk-55SJFHVD.js → chunk-ZFBZ4QTS.js} +4 -4
  124. package/dist/{cli-CLvBewKf.d.ts → cli-BpwTNHTm.d.ts} +5 -5
  125. package/dist/cli.d.ts +14 -13
  126. package/dist/cli.js +43 -41
  127. package/dist/coding/pre-action-gate.d.ts +2 -1
  128. package/dist/compounding/engine.d.ts +3 -2
  129. package/dist/compounding/engine.js +5 -5
  130. package/dist/compounding/preference-consolidator.d.ts +2 -1
  131. package/dist/compression-optimizer.d.ts +2 -1
  132. package/dist/config.d.ts +2 -1
  133. package/dist/config.js +4 -2
  134. package/dist/connectors/codex-materialize-runner.d.ts +2 -1
  135. package/dist/connectors/codex-materialize-runner.js +5 -5
  136. package/dist/connectors/codex-materialize.d.ts +2 -1
  137. package/dist/connectors/index.d.ts +2 -1
  138. package/dist/connectors/index.js +5 -5
  139. package/dist/consolidation-provenance-check.d.ts +3 -2
  140. package/dist/consolidation-undo.d.ts +3 -2
  141. package/dist/contradiction/index.d.ts +3 -2
  142. package/dist/converge-config.d.ts +2 -1
  143. package/dist/convergence-refresh.d.ts +3 -2
  144. package/dist/convergence-refresh.js +7 -7
  145. package/dist/conversation-index/backend.d.ts +2 -1
  146. package/dist/conversation-index/chunker.d.ts +2 -1
  147. package/dist/conversation-index/faiss-adapter.d.ts +2 -1
  148. package/dist/conversation-index/indexer.d.ts +2 -1
  149. package/dist/conversation-index/search.d.ts +2 -1
  150. package/dist/corpus-watermark.d.ts +2 -1
  151. package/dist/corpus-watermark.js +7 -7
  152. package/dist/day-summary.d.ts +2 -1
  153. package/dist/delinearize.d.ts +2 -1
  154. package/dist/dependency-propagation-config.d.ts +2 -1
  155. package/dist/{dependency-propagation-delivery-DMqIw9Zh.d.ts → dependency-propagation-delivery-QYJ1-c2M.d.ts} +1 -1
  156. package/dist/direct-answer-wiring.d.ts +2 -1
  157. package/dist/direct-answer.d.ts +2 -1
  158. package/dist/embedding-fallback.d.ts +2 -1
  159. package/dist/enrichment/index.d.ts +2 -1
  160. package/dist/entity-origin-fields.d.ts +2 -1
  161. package/dist/entity-retrieval.d.ts +3 -2
  162. package/dist/entity-retrieval.js +5 -5
  163. package/dist/entity-schema.d.ts +2 -1
  164. package/dist/episodic-context.d.ts +2 -1
  165. package/dist/explicit-capture.d.ts +10 -9
  166. package/dist/external-wiki-access.d.ts +12 -11
  167. package/dist/external-wiki-access.js +14 -14
  168. package/dist/external-wiki-collection-registration.d.ts +2 -1
  169. package/dist/external-wiki-collection.d.ts +2 -1
  170. package/dist/external-wiki-mcp-tools.d.ts +12 -11
  171. package/dist/extraction-error-classification.d.ts +2 -1
  172. package/dist/extraction-faithfulness.d.ts +2 -1
  173. package/dist/extraction-judge-telemetry.d.ts +2 -1
  174. package/dist/extraction-judge-training.d.ts +2 -1
  175. package/dist/extraction-judge.d.ts +2 -1
  176. package/dist/extraction-liveness.d.ts +2 -1
  177. package/dist/extraction-normalization.d.ts +2 -1
  178. package/dist/extraction-prompt.d.ts +2 -1
  179. package/dist/extraction-source-grounding-rules.d.ts +2 -1
  180. package/dist/extraction-source-grounding.d.ts +2 -1
  181. package/dist/extraction.d.ts +2 -1
  182. package/dist/extraction.js +5 -5
  183. package/dist/fallback-llm.d.ts +2 -1
  184. package/dist/graph-dashboard-diff.d.ts +2 -1
  185. package/dist/graph-dashboard-key.d.ts +2 -1
  186. package/dist/graph-dashboard-parser.d.ts +2 -1
  187. package/dist/graph-edge-reinforcement.d.ts +2 -1
  188. package/dist/graph-path-reconstruction.d.ts +2 -1
  189. package/dist/graph-path-scoring.d.ts +2 -1
  190. package/dist/graph-snapshot.d.ts +2 -1
  191. package/dist/graph.d.ts +2 -1
  192. package/dist/harmonic-retrieval.js +1 -1
  193. package/dist/importance.d.ts +2 -1
  194. package/dist/importers/index.d.ts +2 -1
  195. package/dist/in-flight-reads.d.ts +2 -1
  196. package/dist/index.d.ts +22 -21
  197. package/dist/index.js +56 -53
  198. package/dist/intent.d.ts +2 -1
  199. package/dist/lcm/engine.d.ts +2 -1
  200. package/dist/lcm/index.d.ts +2 -1
  201. package/dist/lcm/tools.d.ts +2 -1
  202. package/dist/lifecycle.d.ts +2 -1
  203. package/dist/live-connectors-runner.d.ts +2 -1
  204. package/dist/local-llm.d.ts +2 -1
  205. package/dist/local-model-endpoint.d.ts +2 -1
  206. package/dist/location/index.d.ts +295 -0
  207. package/dist/location/index.js +798 -0
  208. package/dist/location/index.js.map +1 -0
  209. package/dist/maintenance/memory-governance.d.ts +2 -1
  210. package/dist/maintenance/memory-governance.js +5 -5
  211. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
  212. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
  213. package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
  214. package/dist/maintenance/rebuild-memory-projection.js +6 -6
  215. package/dist/{maintenance-DITiehFX.d.ts → maintenance-BjEr3WKG.d.ts} +3 -3
  216. package/dist/mcp-memory-inspector-app.d.ts +12 -11
  217. package/dist/memory-action-policy.d.ts +2 -1
  218. package/dist/memory-cache.d.ts +2 -1
  219. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
  220. package/dist/memory-projection-store.d.ts +2 -1
  221. package/dist/memory-provenance.d.ts +2 -1
  222. package/dist/memory-snapshot.d.ts +2 -1
  223. package/dist/memory-worth-outcomes.d.ts +3 -2
  224. package/dist/models-json.d.ts +2 -1
  225. package/dist/namespaces/migrate.d.ts +4 -3
  226. package/dist/namespaces/migrate.js +6 -6
  227. package/dist/namespaces/principal.d.ts +2 -1
  228. package/dist/namespaces/search.d.ts +2 -1
  229. package/dist/namespaces/search.js +3 -3
  230. package/dist/namespaces/storage.d.ts +4 -3
  231. package/dist/namespaces/storage.js +5 -5
  232. package/dist/native-knowledge.d.ts +2 -1
  233. package/dist/offline-sync-impression-drain.d.ts +2 -1
  234. package/dist/operator-doctor-corpus.d.ts +2 -1
  235. package/dist/operator-doctor-corpus.js +8 -8
  236. package/dist/operator-doctor-replica.d.ts +2 -1
  237. package/dist/operator-toolkit.d.ts +4 -3
  238. package/dist/operator-toolkit.js +17 -15
  239. package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
  240. package/dist/orchestration/maintenance.d.ts +5 -4
  241. package/dist/orchestration/maintenance.js +13 -12
  242. package/dist/{orchestrator-6fPa2l9x.d.ts → orchestrator-CC4USYcD.d.ts} +8 -8
  243. package/dist/orchestrator.d.ts +10 -9
  244. package/dist/orchestrator.js +51 -49
  245. package/dist/patterns-cli.d.ts +2 -1
  246. package/dist/{pipeline-DHpYtfM3.d.ts → pipeline-DWgAgvJN.d.ts} +1 -1
  247. package/dist/policy-runtime.d.ts +2 -1
  248. package/dist/proactive-contention.d.ts +2 -1
  249. package/dist/provenance.d.ts +2 -1
  250. package/dist/{public-http-BT36aBb-.d.ts → public-http-CkQC8VpD.d.ts} +1 -1
  251. package/dist/{qmd-BaX31tM0.d.ts → qmd-BJGhj4ta.d.ts} +1 -1
  252. package/dist/qmd-preflight.d.ts +3 -2
  253. package/dist/qmd-recall-cache.d.ts +2 -1
  254. package/dist/qmd.d.ts +3 -2
  255. package/dist/recall-concurrency-config.d.ts +2 -1
  256. package/dist/recall-disclosure-escalation.d.ts +2 -1
  257. package/dist/recall-explain-renderer.d.ts +2 -1
  258. package/dist/recall-memory-map.d.ts +2 -1
  259. package/dist/recall-planner-llm.d.ts +2 -1
  260. package/dist/recall-state.d.ts +2 -1
  261. package/dist/recall-tag-filter.d.ts +2 -1
  262. package/dist/recall-timings.d.ts +2 -1
  263. package/dist/recall-xray-cli.d.ts +2 -1
  264. package/dist/recall-xray-renderer.d.ts +2 -1
  265. package/dist/recall-xray.d.ts +2 -1
  266. package/dist/reconcile/cursor.d.ts +2 -1
  267. package/dist/reconcile/manifest.d.ts +2 -1
  268. package/dist/reconcile/plan.d.ts +2 -1
  269. package/dist/replay/normalizers/chatgpt.d.ts +2 -1
  270. package/dist/replay/normalizers/claude.d.ts +2 -1
  271. package/dist/replay/normalizers/openclaw.d.ts +2 -1
  272. package/dist/replay/normalizers/shared.d.ts +2 -1
  273. package/dist/replay/runner.d.ts +2 -1
  274. package/dist/replay/types.d.ts +2 -1
  275. package/dist/replica-divergence.d.ts +2 -1
  276. package/dist/replica-peers-config.d.ts +2 -1
  277. package/dist/resolve-auth-token.d.ts +2 -1
  278. package/dist/resume-bundles.js +5 -3
  279. package/dist/retrieval-agents.d.ts +3 -2
  280. package/dist/retrieval-tiers.d.ts +2 -1
  281. package/dist/routing/engine.d.ts +2 -1
  282. package/dist/routing/store.d.ts +2 -1
  283. package/dist/salvage-envelope.d.ts +2 -1
  284. package/dist/{scope-profiles-1hYWJ9bM.d.ts → scope-profiles-C4PdBYKc.d.ts} +1 -1
  285. package/dist/search/embed-helper.d.ts +2 -1
  286. package/dist/search/factory.d.ts +2 -1
  287. package/dist/search/factory.js +2 -2
  288. package/dist/search/index.d.ts +2 -1
  289. package/dist/search/index.js +4 -4
  290. package/dist/search/lancedb-backend.d.ts +2 -1
  291. package/dist/search/meilisearch-backend.d.ts +2 -1
  292. package/dist/search/noop-backend.d.ts +2 -1
  293. package/dist/search/orama-backend.d.ts +2 -1
  294. package/dist/search/port.d.ts +2 -1
  295. package/dist/search/remote-backend.d.ts +2 -1
  296. package/dist/{semantic-consolidation-Chmddvcg.d.ts → semantic-consolidation-5-HOmIhL.d.ts} +1 -1
  297. package/dist/semantic-consolidation.d.ts +3 -2
  298. package/dist/semantic-consolidation.js +6 -6
  299. package/dist/semantic-rule-promotion.js +5 -5
  300. package/dist/semantic-rule-verifier.d.ts +2 -1
  301. package/dist/semantic-rule-verifier.js +5 -5
  302. package/dist/{service-DMs_dCCg.d.ts → service-8pDy6w8u.d.ts} +2 -2
  303. package/dist/session-observer-bands.d.ts +2 -1
  304. package/dist/session-observer-state.d.ts +2 -1
  305. package/dist/shared-context/manager.d.ts +2 -1
  306. package/dist/signal.d.ts +2 -1
  307. package/dist/source-agent-qualifier.d.ts +2 -1
  308. package/dist/source-agent-qualifier.js +5 -5
  309. package/dist/{storage-CzorrpcN.d.ts → storage-VpDzURiA.d.ts} +1 -1
  310. package/dist/storage.d.ts +3 -2
  311. package/dist/storage.js +4 -4
  312. package/dist/summarizer.d.ts +2 -1
  313. package/dist/summary-snapshot.d.ts +2 -1
  314. package/dist/support-passport/index.d.ts +15 -14
  315. package/dist/support-passport/index.js +16 -16
  316. package/dist/temporal-supersession.d.ts +3 -2
  317. package/dist/temporal-timeline-recall.d.ts +2 -1
  318. package/dist/temporal-validity.d.ts +2 -1
  319. package/dist/threading.d.ts +2 -1
  320. package/dist/tier-migration.d.ts +3 -2
  321. package/dist/tier-routing.d.ts +2 -1
  322. package/dist/topics.d.ts +2 -1
  323. package/dist/transcript.d.ts +2 -1
  324. package/dist/trust-score-stage.d.ts +2 -1
  325. package/dist/trust-score.d.ts +2 -1
  326. package/dist/types-CM86alG1.d.ts +89 -0
  327. package/dist/{types-BP5MC8UU.d.ts → types-D9gKdB79.d.ts} +1 -23
  328. package/dist/types.d.ts +2 -1
  329. package/dist/utility-runtime.d.ts +2 -1
  330. package/dist/verified-recall.js +5 -5
  331. package/dist/who-knows-cli.d.ts +12 -11
  332. package/dist/who-knows-cli.js +6 -6
  333. package/dist/who-knows.d.ts +12 -11
  334. package/dist/who-knows.js +5 -5
  335. package/dist/write-envelope.d.ts +2 -1
  336. package/package.json +12 -2
  337. package/src/location/adapter-isolation.test.ts +44 -0
  338. package/src/location/index.ts +16 -0
  339. package/dist/chunk-7RAJ3GXO.js.map +0 -1
  340. package/dist/chunk-UMDZXW5J.js.map +0 -1
  341. /package/dist/{chunk-TY35YQ6E.js.map → chunk-34BMUGRA.js.map} +0 -0
  342. /package/dist/{chunk-XH4IQVTN.js.map → chunk-4E6IJCLC.js.map} +0 -0
  343. /package/dist/{chunk-LZKCMK3U.js.map → chunk-4GD7YV4Y.js.map} +0 -0
  344. /package/dist/{chunk-YXGU3MDQ.js.map → chunk-7PWWGYGO.js.map} +0 -0
  345. /package/dist/{chunk-XZUCNVGE.js.map → chunk-A4VJKT2H.js.map} +0 -0
  346. /package/dist/{chunk-NO7B6DRB.js.map → chunk-A6LBDIFS.js.map} +0 -0
  347. /package/dist/{chunk-ON2P3SHG.js.map → chunk-CCP6LXQJ.js.map} +0 -0
  348. /package/dist/{chunk-DHKV6E4A.js.map → chunk-CESQ4CMC.js.map} +0 -0
  349. /package/dist/{chunk-RWLRKMZK.js.map → chunk-E6EQTCOQ.js.map} +0 -0
  350. /package/dist/{chunk-DG6MJD7W.js.map → chunk-FFPBTNLC.js.map} +0 -0
  351. /package/dist/{chunk-PE76XIDM.js.map → chunk-GOGHZVY3.js.map} +0 -0
  352. /package/dist/{chunk-6LTCUN3T.js.map → chunk-GQ5OJVTM.js.map} +0 -0
  353. /package/dist/{chunk-GVRLED7R.js.map → chunk-H6B6GPVH.js.map} +0 -0
  354. /package/dist/{chunk-DA2O3F5V.js.map → chunk-HBKFYXBA.js.map} +0 -0
  355. /package/dist/{chunk-DC4FJY2G.js.map → chunk-HDD4RRIX.js.map} +0 -0
  356. /package/dist/{chunk-LOETWOEB.js.map → chunk-IWUN4RZL.js.map} +0 -0
  357. /package/dist/{chunk-246HFJVG.js.map → chunk-JNSLW2O4.js.map} +0 -0
  358. /package/dist/{chunk-VLES5S4K.js.map → chunk-JXMXTV6C.js.map} +0 -0
  359. /package/dist/{chunk-TKI2WOL5.js.map → chunk-KLPVXLQJ.js.map} +0 -0
  360. /package/dist/{chunk-YFQTDE7N.js.map → chunk-LA2MSK23.js.map} +0 -0
  361. /package/dist/{chunk-IJXECCUV.js.map → chunk-LWVG6U7L.js.map} +0 -0
  362. /package/dist/{chunk-A2IBK3TG.js.map → chunk-MXJU4GCA.js.map} +0 -0
  363. /package/dist/{chunk-SB6YBB2V.js.map → chunk-NTERJOFA.js.map} +0 -0
  364. /package/dist/{chunk-H5CGAD7L.js.map → chunk-OXL5QKTV.js.map} +0 -0
  365. /package/dist/{chunk-EJDLQRUO.js.map → chunk-P4CQCL27.js.map} +0 -0
  366. /package/dist/{chunk-44DSGZFF.js.map → chunk-PDKBKBC2.js.map} +0 -0
  367. /package/dist/{chunk-7BVO64UC.js.map → chunk-PHX3ET3C.js.map} +0 -0
  368. /package/dist/{chunk-PVIXAMWM.js.map → chunk-QCNB4BRE.js.map} +0 -0
  369. /package/dist/{chunk-JCSUNXYJ.js.map → chunk-RNKNL5GQ.js.map} +0 -0
  370. /package/dist/{chunk-3LOQN3TO.js.map → chunk-RQYV6M2T.js.map} +0 -0
  371. /package/dist/{chunk-CKZHKFY3.js.map → chunk-RRJUMSFX.js.map} +0 -0
  372. /package/dist/{chunk-C6AKYOFO.js.map → chunk-T6QMNVMO.js.map} +0 -0
  373. /package/dist/{chunk-Z6CJLYXT.js.map → chunk-U56TGYVS.js.map} +0 -0
  374. /package/dist/{chunk-MJRVF7SF.js.map → chunk-UPIKAT5A.js.map} +0 -0
  375. /package/dist/{chunk-KRPE7ANR.js.map → chunk-VNIETTMR.js.map} +0 -0
  376. /package/dist/{chunk-3A46U7XG.js.map → chunk-WHA6ISFX.js.map} +0 -0
  377. /package/dist/{chunk-WBM5NR4E.js.map → chunk-Y5UT73VZ.js.map} +0 -0
  378. /package/dist/{chunk-XACYILRA.js.map → chunk-YHSNAGN3.js.map} +0 -0
  379. /package/dist/{chunk-ZSYE2QVJ.js.map → chunk-YIZRTHHF.js.map} +0 -0
  380. /package/dist/{chunk-2QI2JBLQ.js.map → chunk-ZAI5R6DW.js.map} +0 -0
  381. /package/dist/{chunk-55SJFHVD.js.map → chunk-ZFBZ4QTS.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/active-recall.ts"],"sourcesContent":["import { appendFile, mkdir } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { DEFAULT_REASONING_MODEL } from \"./config.js\";\nimport { collapseWhitespace, truncateCodePointSafe } from \"./whitespace.js\";\nimport type {\n ActiveRecallChatType,\n ActiveRecallModelFallbackPolicy,\n ActiveRecallPromptStyle,\n ActiveRecallQueryMode,\n ActiveRecallThinking,\n} from \"./types.js\";\n\nexport interface ActiveRecallTurn {\n role: \"user\" | \"assistant\";\n content: string;\n}\n\nexport interface ActiveRecallInput {\n sessionKey: string;\n agentId: string;\n chatType: ActiveRecallChatType;\n recentTurns: ActiveRecallTurn[];\n currentMessage: string;\n}\n\nexport interface ActiveRecallConfig {\n enabled: boolean;\n agents: string[] | null;\n allowedChatTypes: ActiveRecallChatType[];\n queryMode: ActiveRecallQueryMode;\n promptStyle: ActiveRecallPromptStyle;\n customInstruction: string | null;\n promptReplacement: string | null;\n promptAppend: string | null;\n maxSummaryChars: number;\n recentUserTurns: number;\n recentAssistantTurns: number;\n recentUserChars: number;\n recentAssistantChars: number;\n thinking: ActiveRecallThinking;\n timeoutMs: number;\n cacheTtlMs: number;\n persistTranscripts: boolean;\n transcriptDir: string;\n entityGraphDepth: number;\n includeCausalTrajectories: boolean;\n includeDaySummary: boolean;\n attachRecallExplain: boolean;\n modelOverride: string | null;\n modelFallbackPolicy: ActiveRecallModelFallbackPolicy;\n}\n\nexport interface ActiveRecallResult {\n summary: string | null;\n citations: Array<{ memoryId: string; relevance: number }>;\n latencyMs: number;\n cacheHit: boolean;\n modelUsed: string;\n transcriptPath: string | null;\n}\n\nexport interface ActiveRecallDependencies {\n recall(query: string, sessionKey: string): Promise<string | null>;\n getLastRecallSnapshot?(sessionKey: string): { memoryIds?: string[] } | null;\n walkEntityGraph?(params: {\n sessionKey: string;\n query: string;\n depth: number;\n }): Promise<string[]>;\n loadCausalTrajectories?(params: {\n sessionKey: string;\n query: string;\n }): Promise<string[]>;\n loadDaySummary?(sessionKey: string): Promise<string | null>;\n explainLastRecall?(sessionKey: string): Promise<string | null>;\n generateSummary?(params: {\n prompt: string;\n sessionKey: string;\n agentId: string;\n model: string;\n timeoutMs: number;\n thinking: ActiveRecallThinking;\n fallbackPolicy: ActiveRecallModelFallbackPolicy;\n }): Promise<{ text: string | null; modelUsed?: string; cacheHit?: boolean }>;\n now?: () => number;\n}\n\ninterface CachedRecallResult {\n expiresAt: number;\n value: ActiveRecallResult;\n}\n\ninterface ActiveRecallTurnWithIndex {\n index: number;\n role: ActiveRecallTurn[\"role\"];\n content: string;\n}\n\nconst ACTIVE_RECALL_CACHE_MAX_ENTRIES = 256;\n\nconst NONE_SET = new Set([\n \"\",\n \"none\",\n \"no_reply\",\n \"nothing useful\",\n \"no relevant memory\",\n \"timeout\",\n \"[]\",\n \"{}\",\n \"null\",\n \"n/a\",\n]);\n\nconst STYLE_INSTRUCTIONS: Record<ActiveRecallPromptStyle, string> = {\n balanced: \"Summarize the most relevant memory context in a compact, neutral way.\",\n strict: \"Only include memory that is directly supported by the retrieved context.\",\n contextual: \"Prefer concise context that helps the next reply stay grounded in recent work.\",\n \"recall-heavy\": \"Bias toward richer recall coverage when multiple retrieved items reinforce each other.\",\n \"precision-heavy\": \"Bias toward precision. Omit anything uncertain or weakly supported.\",\n \"preference-only\": \"Only surface user preference or operating-style memory when present.\",\n};\n\nfunction cloneRecallResult(value: ActiveRecallResult): ActiveRecallResult {\n return {\n ...value,\n citations: [...value.citations],\n };\n}\n\nfunction buildCacheKey(input: ActiveRecallInput, config: ActiveRecallConfig, queryBundle: string): string {\n return JSON.stringify({\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n queryMode: config.queryMode,\n promptStyle: config.promptStyle,\n customInstruction: config.customInstruction,\n promptReplacement: config.promptReplacement,\n promptAppend: config.promptAppend,\n maxSummaryChars: config.maxSummaryChars,\n entityGraphDepth: config.entityGraphDepth,\n includeCausalTrajectories: config.includeCausalTrajectories,\n includeDaySummary: config.includeDaySummary,\n attachRecallExplain: config.attachRecallExplain,\n modelOverride: config.modelOverride,\n modelFallbackPolicy: config.modelFallbackPolicy,\n thinking: config.thinking,\n queryBundle,\n });\n}\n\nfunction pruneExpiredCache(\n cache: Map<string, CachedRecallResult>,\n currentTime: number,\n): void {\n for (const [key, entry] of cache.entries()) {\n if (entry.expiresAt <= currentTime) {\n cache.delete(key);\n }\n }\n}\n\nfunction enforceCacheLimit(cache: Map<string, CachedRecallResult>): void {\n while (cache.size > ACTIVE_RECALL_CACHE_MAX_ENTRIES) {\n const oldestKey = cache.keys().next().value;\n if (typeof oldestKey !== \"string\") {\n break;\n }\n cache.delete(oldestKey);\n }\n}\n\nfunction cropTurns(\n turns: ActiveRecallTurn[],\n role: \"user\" | \"assistant\",\n maxTurns: number,\n maxChars: number,\n): ActiveRecallTurnWithIndex[] {\n if (maxTurns <= 0) {\n return [];\n }\n\n const selected: ActiveRecallTurnWithIndex[] = [];\n for (let index = turns.length - 1; index >= 0 && selected.length < maxTurns; index -= 1) {\n const turn = turns[index];\n if (turn?.role === role) {\n selected.push({\n index,\n role: turn.role,\n content: collapseWhitespace(truncateCodePointSafe(turn.content, maxChars)),\n });\n }\n }\n\n return selected.reverse();\n}\n\nfunction mergeChronologicalTurns(\n userTurns: ActiveRecallTurnWithIndex[],\n assistantTurns: ActiveRecallTurnWithIndex[],\n): ActiveRecallTurnWithIndex[] {\n return [...userTurns, ...assistantTurns]\n .sort((left, right) => left.index - right.index)\n .filter((value) => value.content.length > 0);\n}\n\nexport function buildActiveRecallQueryBundle(\n input: ActiveRecallInput,\n config: ActiveRecallConfig,\n): string {\n if (config.queryMode === \"message\") {\n return collapseWhitespace(input.currentMessage);\n }\n\n const userTurns = cropTurns(\n input.recentTurns,\n \"user\",\n config.recentUserTurns,\n config.recentUserChars,\n );\n const assistantTurns = cropTurns(\n input.recentTurns,\n \"assistant\",\n config.recentAssistantTurns,\n config.recentAssistantChars,\n );\n const mergedTurns = mergeChronologicalTurns(userTurns, assistantTurns);\n\n const parts = [\n ...mergedTurns.map((turn) => `${turn.role}: ${turn.content}`),\n ];\n\n if (config.queryMode === \"full\") {\n return [...parts, `current: ${collapseWhitespace(input.currentMessage)}`]\n .filter((value) => value.trim().length > 0)\n .join(\"\\n\");\n }\n\n return [`current: ${collapseWhitespace(input.currentMessage)}`, ...parts]\n .filter((value) => value.trim().length > 0)\n .join(\"\\n\");\n}\n\nexport function normalizeActiveRecallSummary(value: string | null, maxChars: number): string | null {\n if (value == null) return null;\n const compact = collapseWhitespace(value);\n if (NONE_SET.has(compact.toLowerCase())) return null;\n return truncateCodePointSafe(compact, maxChars);\n}\n\nfunction sanitizeTranscriptPathSegment(value: string): string {\n const normalized = collapseWhitespace(value);\n return encodeURIComponent(normalized.length > 0 ? normalized : \"unknown\").replaceAll(\n \".\",\n \"%2E\",\n );\n}\n\nexport function buildActiveRecallPrompt(params: {\n config: ActiveRecallConfig;\n queryBundle: string;\n recallContext: string | null;\n graphContext: string[];\n causalContext: string[];\n daySummary: string | null;\n recallExplain: string | null;\n}): string {\n const promptReplacement = params.config.promptReplacement?.trim();\n if (promptReplacement) {\n return promptReplacement;\n }\n\n const sections = [\n params.config.customInstruction?.trim() || STYLE_INSTRUCTIONS[params.config.promptStyle],\n `Query bundle:\\n${params.queryBundle}`,\n params.recallContext ? `Retrieved memory:\\n${params.recallContext}` : null,\n params.graphContext.length > 0 ? `Entity graph:\\n${params.graphContext.join(\"\\n\")}` : null,\n params.causalContext.length > 0 ? `Causal trajectories:\\n${params.causalContext.join(\"\\n\")}` : null,\n params.daySummary ? `Day summary:\\n${params.daySummary}` : null,\n params.recallExplain ? `Recall explain:\\n${params.recallExplain}` : null,\n params.config.promptAppend?.trim() || null,\n \"Return either NONE or a compact summary grounded only in the supplied context.\",\n ];\n return sections.filter((value): value is string => !!value && value.trim().length > 0).join(\"\\n\\n\");\n}\n\nasync function appendActiveRecallTranscript(\n transcriptRoot: string,\n input: ActiveRecallInput,\n config: ActiveRecallConfig,\n result: ActiveRecallResult,\n queryBundle: string,\n): Promise<string> {\n const date = new Date().toISOString().slice(0, 10);\n const filePath = path.join(\n transcriptRoot,\n \"agents\",\n sanitizeTranscriptPathSegment(input.agentId),\n date,\n `${sanitizeTranscriptPathSegment(input.sessionKey)}.jsonl`,\n );\n await mkdir(path.dirname(filePath), { recursive: true });\n await appendFile(\n filePath,\n `${JSON.stringify({\n ts: new Date().toISOString(),\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n queryMode: config.queryMode,\n promptStyle: config.promptStyle,\n queryBundle,\n summary: result.summary,\n citations: result.citations,\n latencyMs: result.latencyMs,\n cacheHit: result.cacheHit,\n modelUsed: result.modelUsed,\n })}\\n`,\n \"utf8\",\n );\n return filePath;\n}\n\nexport function createActiveRecallEngine(\n deps: ActiveRecallDependencies,\n config: ActiveRecallConfig,\n) {\n const cache = new Map<string, CachedRecallResult>();\n const now = deps.now ?? (() => Date.now());\n\n return {\n async run(input: ActiveRecallInput): Promise<ActiveRecallResult> {\n if (!config.enabled) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"disabled\",\n transcriptPath: null,\n };\n }\n if (config.agents && !config.agents.includes(input.agentId)) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"filtered\",\n transcriptPath: null,\n };\n }\n if (!config.allowedChatTypes.includes(input.chatType)) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"filtered\",\n transcriptPath: null,\n };\n }\n\n const queryBundle = buildActiveRecallQueryBundle(input, config);\n const cacheKey = buildCacheKey(input, config, queryBundle);\n const currentTime = now();\n const cacheEnabled = config.cacheTtlMs > 0;\n if (cacheEnabled) {\n pruneExpiredCache(cache, currentTime);\n }\n const cached = cache.get(cacheKey);\n if (cacheEnabled && cached) {\n const result: ActiveRecallResult = {\n ...cloneRecallResult(cached.value),\n latencyMs: Math.max(0, now() - currentTime),\n cacheHit: true,\n };\n result.transcriptPath = null;\n if (config.persistTranscripts) {\n try {\n result.transcriptPath = await appendActiveRecallTranscript(\n config.transcriptDir,\n input,\n config,\n result,\n queryBundle,\n );\n } catch {\n result.transcriptPath = null;\n }\n }\n return result;\n }\n\n const start = currentTime;\n const recallContext = await deps.recall(queryBundle, input.sessionKey);\n const graphContext =\n config.entityGraphDepth > 0 && deps.walkEntityGraph\n ? await deps.walkEntityGraph({\n sessionKey: input.sessionKey,\n query: queryBundle,\n depth: config.entityGraphDepth,\n })\n : [];\n const causalContext =\n config.includeCausalTrajectories && deps.loadCausalTrajectories\n ? await deps.loadCausalTrajectories({\n sessionKey: input.sessionKey,\n query: queryBundle,\n })\n : [];\n const daySummary =\n config.includeDaySummary && deps.loadDaySummary\n ? await deps.loadDaySummary(input.sessionKey)\n : null;\n const recallExplain =\n config.attachRecallExplain && deps.explainLastRecall\n ? await deps.explainLastRecall(input.sessionKey)\n : null;\n const prompt = buildActiveRecallPrompt({\n config,\n queryBundle,\n recallContext,\n graphContext,\n causalContext,\n daySummary,\n recallExplain,\n });\n\n const generated = deps.generateSummary\n ? await deps.generateSummary({\n prompt,\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n model: config.modelOverride ?? DEFAULT_REASONING_MODEL,\n timeoutMs: config.timeoutMs,\n thinking: config.thinking,\n fallbackPolicy: config.modelFallbackPolicy,\n })\n : {\n text: recallContext,\n modelUsed: config.modelOverride ?? DEFAULT_REASONING_MODEL,\n cacheHit: false,\n };\n const summary = normalizeActiveRecallSummary(\n generated.text,\n config.maxSummaryChars,\n );\n const snapshot = deps.getLastRecallSnapshot?.(input.sessionKey);\n const citations = (snapshot?.memoryIds ?? []).map((memoryId, index) => ({\n memoryId,\n relevance: Number((1 / (index + 1)).toFixed(3)),\n }));\n const result: ActiveRecallResult = {\n summary,\n citations,\n latencyMs: Math.max(0, now() - start),\n cacheHit: generated.cacheHit === true,\n modelUsed: generated.modelUsed ?? config.modelOverride ?? DEFAULT_REASONING_MODEL,\n transcriptPath: null,\n };\n if (config.persistTranscripts) {\n try {\n result.transcriptPath = await appendActiveRecallTranscript(\n config.transcriptDir,\n input,\n config,\n result,\n queryBundle,\n );\n } catch {\n result.transcriptPath = null;\n }\n }\n\n if (cacheEnabled) {\n const completedAt = now();\n const cachedValue = cloneRecallResult(result);\n cachedValue.transcriptPath = null;\n cache.set(cacheKey, {\n expiresAt: completedAt + config.cacheTtlMs,\n value: cachedValue,\n });\n enforceCacheLimit(cache);\n }\n return result;\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,aAAa;AAClC,OAAO,UAAU;AAiGjB,IAAM,kCAAkC;AAExC,IAAM,WAAW,oBAAI,IAAI;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAED,IAAM,qBAA8D;AAAA,EAClE,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,mBAAmB;AACrB;AAEA,SAAS,kBAAkB,OAA+C;AACxE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,GAAG,MAAM,SAAS;AAAA,EAChC;AACF;AAEA,SAAS,cAAc,OAA0B,QAA4B,aAA6B;AACxG,SAAO,KAAK,UAAU;AAAA,IACpB,YAAY,MAAM;AAAA,IAClB,SAAS,MAAM;AAAA,IACf,WAAW,OAAO;AAAA,IAClB,aAAa,OAAO;AAAA,IACpB,mBAAmB,OAAO;AAAA,IAC1B,mBAAmB,OAAO;AAAA,IAC1B,cAAc,OAAO;AAAA,IACrB,iBAAiB,OAAO;AAAA,IACxB,kBAAkB,OAAO;AAAA,IACzB,2BAA2B,OAAO;AAAA,IAClC,mBAAmB,OAAO;AAAA,IAC1B,qBAAqB,OAAO;AAAA,IAC5B,eAAe,OAAO;AAAA,IACtB,qBAAqB,OAAO;AAAA,IAC5B,UAAU,OAAO;AAAA,IACjB;AAAA,EACF,CAAC;AACH;AAEA,SAAS,kBACP,OACA,aACM;AACN,aAAW,CAAC,KAAK,KAAK,KAAK,MAAM,QAAQ,G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,KAAK,QAAQ,IAAI,QAAQ,CAAC,CAAC;AAAA,MAChD,EAAE;AACF,YAAM,SAA6B;AAAA,QACjC;AAAA,QACA;AAAA,QACA,WAAW,KAAK,IAAI,GAAG,IAAI,IAAI,KAAK;AAAA,QACpC,UAAU,UAAU,aAAa;AAAA,QACjC,WAAW,UAAU,aAAa,OAAO,iBAAiB;AAAA,QAC1D,gBAAgB;AAAA,MAClB;AACA,UAAI,OAAO,oBAAoB;AAC7B,YAAI;AACF,iBAAO,iBAAiB,MAAM;AAAA,YAC5B,OAAO;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,QACF,QAAQ;AACN,iBAAO,iBAAiB;AAAA,QAC1B;AAAA,MACF;AAEA,UAAI,cAAc;AAChB,cAAM,cAAc,IAAI;AACxB,cAAM,cAAc,kBAAkB,MAAM;AAC5C,oBAAY,iBAAiB;AAC7B,cAAM,IAAI,UAAU;AAAA,UAClB,WAAW,cAAc,OAAO;AAAA,UAChC,OAAO;AAAA,QACT,CAAC;AACD,0BAAkB,KAAK;AAAA,MACzB;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":["result"]}
1
+ {"version":3,"sources":["../src/active-recall.ts"],"sourcesContent":["import { appendFile, mkdir } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { DEFAULT_REASONING_MODEL } from \"./config.js\";\nimport { collapseWhitespace, truncateCodePointSafe } from \"./whitespace.js\";\nimport type {\n ActiveRecallChatType,\n ActiveRecallModelFallbackPolicy,\n ActiveRecallPromptStyle,\n ActiveRecallQueryMode,\n ActiveRecallThinking,\n} from \"./types.js\";\n\nexport interface ActiveRecallTurn {\n role: \"user\" | \"assistant\";\n content: string;\n}\n\nexport interface ActiveRecallInput {\n sessionKey: string;\n agentId: string;\n chatType: ActiveRecallChatType;\n recentTurns: ActiveRecallTurn[];\n currentMessage: string;\n}\n\nexport interface ActiveRecallConfig {\n enabled: boolean;\n agents: string[] | null;\n allowedChatTypes: ActiveRecallChatType[];\n queryMode: ActiveRecallQueryMode;\n promptStyle: ActiveRecallPromptStyle;\n customInstruction: string | null;\n promptReplacement: string | null;\n promptAppend: string | null;\n maxSummaryChars: number;\n recentUserTurns: number;\n recentAssistantTurns: number;\n recentUserChars: number;\n recentAssistantChars: number;\n thinking: ActiveRecallThinking;\n timeoutMs: number;\n cacheTtlMs: number;\n persistTranscripts: boolean;\n transcriptDir: string;\n entityGraphDepth: number;\n includeCausalTrajectories: boolean;\n includeDaySummary: boolean;\n attachRecallExplain: boolean;\n modelOverride: string | null;\n modelFallbackPolicy: ActiveRecallModelFallbackPolicy;\n}\n\nexport interface ActiveRecallResult {\n summary: string | null;\n citations: Array<{ memoryId: string; relevance: number }>;\n latencyMs: number;\n cacheHit: boolean;\n modelUsed: string;\n transcriptPath: string | null;\n}\n\nexport interface ActiveRecallDependencies {\n recall(query: string, sessionKey: string): Promise<string | null>;\n getLastRecallSnapshot?(sessionKey: string): { memoryIds?: string[] } | null;\n walkEntityGraph?(params: {\n sessionKey: string;\n query: string;\n depth: number;\n }): Promise<string[]>;\n loadCausalTrajectories?(params: {\n sessionKey: string;\n query: string;\n }): Promise<string[]>;\n loadDaySummary?(sessionKey: string): Promise<string | null>;\n explainLastRecall?(sessionKey: string): Promise<string | null>;\n generateSummary?(params: {\n prompt: string;\n sessionKey: string;\n agentId: string;\n model: string;\n timeoutMs: number;\n thinking: ActiveRecallThinking;\n fallbackPolicy: ActiveRecallModelFallbackPolicy;\n }): Promise<{ text: string | null; modelUsed?: string; cacheHit?: boolean }>;\n now?: () => number;\n}\n\ninterface CachedRecallResult {\n expiresAt: number;\n value: ActiveRecallResult;\n}\n\ninterface ActiveRecallTurnWithIndex {\n index: number;\n role: ActiveRecallTurn[\"role\"];\n content: string;\n}\n\nconst ACTIVE_RECALL_CACHE_MAX_ENTRIES = 256;\n\nconst NONE_SET = new Set([\n \"\",\n \"none\",\n \"no_reply\",\n \"nothing useful\",\n \"no relevant memory\",\n \"timeout\",\n \"[]\",\n \"{}\",\n \"null\",\n \"n/a\",\n]);\n\nconst STYLE_INSTRUCTIONS: Record<ActiveRecallPromptStyle, string> = {\n balanced: \"Summarize the most relevant memory context in a compact, neutral way.\",\n strict: \"Only include memory that is directly supported by the retrieved context.\",\n contextual: \"Prefer concise context that helps the next reply stay grounded in recent work.\",\n \"recall-heavy\": \"Bias toward richer recall coverage when multiple retrieved items reinforce each other.\",\n \"precision-heavy\": \"Bias toward precision. Omit anything uncertain or weakly supported.\",\n \"preference-only\": \"Only surface user preference or operating-style memory when present.\",\n};\n\nfunction cloneRecallResult(value: ActiveRecallResult): ActiveRecallResult {\n return {\n ...value,\n citations: [...value.citations],\n };\n}\n\nfunction buildCacheKey(input: ActiveRecallInput, config: ActiveRecallConfig, queryBundle: string): string {\n return JSON.stringify({\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n queryMode: config.queryMode,\n promptStyle: config.promptStyle,\n customInstruction: config.customInstruction,\n promptReplacement: config.promptReplacement,\n promptAppend: config.promptAppend,\n maxSummaryChars: config.maxSummaryChars,\n entityGraphDepth: config.entityGraphDepth,\n includeCausalTrajectories: config.includeCausalTrajectories,\n includeDaySummary: config.includeDaySummary,\n attachRecallExplain: config.attachRecallExplain,\n modelOverride: config.modelOverride,\n modelFallbackPolicy: config.modelFallbackPolicy,\n thinking: config.thinking,\n queryBundle,\n });\n}\n\nfunction pruneExpiredCache(\n cache: Map<string, CachedRecallResult>,\n currentTime: number,\n): void {\n for (const [key, entry] of cache.entries()) {\n if (entry.expiresAt <= currentTime) {\n cache.delete(key);\n }\n }\n}\n\nfunction enforceCacheLimit(cache: Map<string, CachedRecallResult>): void {\n while (cache.size > ACTIVE_RECALL_CACHE_MAX_ENTRIES) {\n const oldestKey = cache.keys().next().value;\n if (typeof oldestKey !== \"string\") {\n break;\n }\n cache.delete(oldestKey);\n }\n}\n\nfunction cropTurns(\n turns: ActiveRecallTurn[],\n role: \"user\" | \"assistant\",\n maxTurns: number,\n maxChars: number,\n): ActiveRecallTurnWithIndex[] {\n if (maxTurns <= 0) {\n return [];\n }\n\n const selected: ActiveRecallTurnWithIndex[] = [];\n for (let index = turns.length - 1; index >= 0 && selected.length < maxTurns; index -= 1) {\n const turn = turns[index];\n if (turn?.role === role) {\n selected.push({\n index,\n role: turn.role,\n content: collapseWhitespace(truncateCodePointSafe(turn.content, maxChars)),\n });\n }\n }\n\n return selected.reverse();\n}\n\nfunction mergeChronologicalTurns(\n userTurns: ActiveRecallTurnWithIndex[],\n assistantTurns: ActiveRecallTurnWithIndex[],\n): ActiveRecallTurnWithIndex[] {\n return [...userTurns, ...assistantTurns]\n .sort((left, right) => left.index - right.index)\n .filter((value) => value.content.length > 0);\n}\n\nexport function buildActiveRecallQueryBundle(\n input: ActiveRecallInput,\n config: ActiveRecallConfig,\n): string {\n if (config.queryMode === \"message\") {\n return collapseWhitespace(input.currentMessage);\n }\n\n const userTurns = cropTurns(\n input.recentTurns,\n \"user\",\n config.recentUserTurns,\n config.recentUserChars,\n );\n const assistantTurns = cropTurns(\n input.recentTurns,\n \"assistant\",\n config.recentAssistantTurns,\n config.recentAssistantChars,\n );\n const mergedTurns = mergeChronologicalTurns(userTurns, assistantTurns);\n\n const parts = [\n ...mergedTurns.map((turn) => `${turn.role}: ${turn.content}`),\n ];\n\n if (config.queryMode === \"full\") {\n return [...parts, `current: ${collapseWhitespace(input.currentMessage)}`]\n .filter((value) => value.trim().length > 0)\n .join(\"\\n\");\n }\n\n return [`current: ${collapseWhitespace(input.currentMessage)}`, ...parts]\n .filter((value) => value.trim().length > 0)\n .join(\"\\n\");\n}\n\nexport function normalizeActiveRecallSummary(value: string | null, maxChars: number): string | null {\n if (value == null) return null;\n const compact = collapseWhitespace(value);\n if (NONE_SET.has(compact.toLowerCase())) return null;\n return truncateCodePointSafe(compact, maxChars);\n}\n\nfunction sanitizeTranscriptPathSegment(value: string): string {\n const normalized = collapseWhitespace(value);\n return encodeURIComponent(normalized.length > 0 ? normalized : \"unknown\").replaceAll(\n \".\",\n \"%2E\",\n );\n}\n\nexport function buildActiveRecallPrompt(params: {\n config: ActiveRecallConfig;\n queryBundle: string;\n recallContext: string | null;\n graphContext: string[];\n causalContext: string[];\n daySummary: string | null;\n recallExplain: string | null;\n}): string {\n const promptReplacement = params.config.promptReplacement?.trim();\n if (promptReplacement) {\n return promptReplacement;\n }\n\n const sections = [\n params.config.customInstruction?.trim() || STYLE_INSTRUCTIONS[params.config.promptStyle],\n `Query bundle:\\n${params.queryBundle}`,\n params.recallContext ? `Retrieved memory:\\n${params.recallContext}` : null,\n params.graphContext.length > 0 ? `Entity graph:\\n${params.graphContext.join(\"\\n\")}` : null,\n params.causalContext.length > 0 ? `Causal trajectories:\\n${params.causalContext.join(\"\\n\")}` : null,\n params.daySummary ? `Day summary:\\n${params.daySummary}` : null,\n params.recallExplain ? `Recall explain:\\n${params.recallExplain}` : null,\n params.config.promptAppend?.trim() || null,\n \"Return either NONE or a compact summary grounded only in the supplied context.\",\n ];\n return sections.filter((value): value is string => !!value && value.trim().length > 0).join(\"\\n\\n\");\n}\n\nasync function appendActiveRecallTranscript(\n transcriptRoot: string,\n input: ActiveRecallInput,\n config: ActiveRecallConfig,\n result: ActiveRecallResult,\n queryBundle: string,\n): Promise<string> {\n const date = new Date().toISOString().slice(0, 10);\n const filePath = path.join(\n transcriptRoot,\n \"agents\",\n sanitizeTranscriptPathSegment(input.agentId),\n date,\n `${sanitizeTranscriptPathSegment(input.sessionKey)}.jsonl`,\n );\n await mkdir(path.dirname(filePath), { recursive: true });\n await appendFile(\n filePath,\n `${JSON.stringify({\n ts: new Date().toISOString(),\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n queryMode: config.queryMode,\n promptStyle: config.promptStyle,\n queryBundle,\n summary: result.summary,\n citations: result.citations,\n latencyMs: result.latencyMs,\n cacheHit: result.cacheHit,\n modelUsed: result.modelUsed,\n })}\\n`,\n \"utf8\",\n );\n return filePath;\n}\n\nexport function createActiveRecallEngine(\n deps: ActiveRecallDependencies,\n config: ActiveRecallConfig,\n) {\n const cache = new Map<string, CachedRecallResult>();\n const now = deps.now ?? (() => Date.now());\n\n return {\n async run(input: ActiveRecallInput): Promise<ActiveRecallResult> {\n if (!config.enabled) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"disabled\",\n transcriptPath: null,\n };\n }\n if (config.agents && !config.agents.includes(input.agentId)) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"filtered\",\n transcriptPath: null,\n };\n }\n if (!config.allowedChatTypes.includes(input.chatType)) {\n return {\n summary: null,\n citations: [],\n latencyMs: 0,\n cacheHit: false,\n modelUsed: config.modelOverride ?? \"filtered\",\n transcriptPath: null,\n };\n }\n\n const queryBundle = buildActiveRecallQueryBundle(input, config);\n const cacheKey = buildCacheKey(input, config, queryBundle);\n const currentTime = now();\n const cacheEnabled = config.cacheTtlMs > 0;\n if (cacheEnabled) {\n pruneExpiredCache(cache, currentTime);\n }\n const cached = cache.get(cacheKey);\n if (cacheEnabled && cached) {\n const result: ActiveRecallResult = {\n ...cloneRecallResult(cached.value),\n latencyMs: Math.max(0, now() - currentTime),\n cacheHit: true,\n };\n result.transcriptPath = null;\n if (config.persistTranscripts) {\n try {\n result.transcriptPath = await appendActiveRecallTranscript(\n config.transcriptDir,\n input,\n config,\n result,\n queryBundle,\n );\n } catch {\n result.transcriptPath = null;\n }\n }\n return result;\n }\n\n const start = currentTime;\n const recallContext = await deps.recall(queryBundle, input.sessionKey);\n const graphContext =\n config.entityGraphDepth > 0 && deps.walkEntityGraph\n ? await deps.walkEntityGraph({\n sessionKey: input.sessionKey,\n query: queryBundle,\n depth: config.entityGraphDepth,\n })\n : [];\n const causalContext =\n config.includeCausalTrajectories && deps.loadCausalTrajectories\n ? await deps.loadCausalTrajectories({\n sessionKey: input.sessionKey,\n query: queryBundle,\n })\n : [];\n const daySummary =\n config.includeDaySummary && deps.loadDaySummary\n ? await deps.loadDaySummary(input.sessionKey)\n : null;\n const recallExplain =\n config.attachRecallExplain && deps.explainLastRecall\n ? await deps.explainLastRecall(input.sessionKey)\n : null;\n const prompt = buildActiveRecallPrompt({\n config,\n queryBundle,\n recallContext,\n graphContext,\n causalContext,\n daySummary,\n recallExplain,\n });\n\n const generated = deps.generateSummary\n ? await deps.generateSummary({\n prompt,\n sessionKey: input.sessionKey,\n agentId: input.agentId,\n model: config.modelOverride ?? DEFAULT_REASONING_MODEL,\n timeoutMs: config.timeoutMs,\n thinking: config.thinking,\n fallbackPolicy: config.modelFallbackPolicy,\n })\n : {\n text: recallContext,\n modelUsed: config.modelOverride ?? DEFAULT_REASONING_MODEL,\n cacheHit: false,\n };\n const summary = normalizeActiveRecallSummary(\n generated.text,\n config.maxSummaryChars,\n );\n const snapshot = deps.getLastRecallSnapshot?.(input.sessionKey);\n const citations = (snapshot?.memoryIds ?? []).map((memoryId, index) => ({\n memoryId,\n relevance: Number((1 / (index + 1)).toFixed(3)),\n }));\n const result: ActiveRecallResult = {\n summary,\n citations,\n latencyMs: Math.max(0, now() - start),\n cacheHit: generated.cacheHit === true,\n modelUsed: generated.modelUsed ?? config.modelOverride ?? DEFAULT_REASONING_MODEL,\n transcriptPath: null,\n };\n if (config.persistTranscripts) {\n try {\n result.transcriptPath = await appendActiveRecallTranscript(\n config.transcriptDir,\n input,\n config,\n result,\n queryBundle,\n );\n } catch {\n result.transcriptPath = null;\n }\n }\n\n if (cacheEnabled) {\n const completedAt = now();\n const cachedValue = cloneRecallResult(result);\n cachedValue.transcriptPath = null;\n cache.set(cacheKey, {\n expiresAt: completedAt + config.cacheTtlMs,\n value: cachedValue,\n });\n enforceCacheLimit(cache);\n }\n return result;\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,aAAa;AAClC,OAAO,UAAU;AAiGjB,IAAM,kCAAkC;AAExC,IA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O,oBAAoB;AAC7B,YAAI;AACF,iBAAO,iBAAiB,MAAM;AAAA,YAC5B,OAAO;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,QACF,QAAQ;AACN,iBAAO,iBAAiB;AAAA,QAC1B;AAAA,MACF;AAEA,UAAI,cAAc;AAChB,cAAM,cAAc,IAAI;AACxB,cAAM,cAAc,kBAAkB,MAAM;AAC5C,oBAAY,iBAAiB;AAC7B,cAAM,IAAI,UAAU;AAAA,UAClB,WAAW,cAAc,OAAO;AAAA,UAChC,OAAO;AAAA,QACT,CAAC;AACD,0BAAkB,KAAK;AAAA,MACzB;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":["result"]}
@@ -1,6 +1,7 @@
1
- import { a6 as ExtractionResult } from './types-BP5MC8UU.js';
1
+ import { a6 as ExtractionResult } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,6 +1,7 @@
1
- import { M as MemoryFile } from './types-BP5MC8UU.js';
1
+ import { M as MemoryFile } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,6 +1,7 @@
1
- import { a7 as BehaviorSignalEvent, P as PluginConfig, t as BehaviorLoopPolicyState } from './types-BP5MC8UU.js';
1
+ import { a7 as BehaviorSignalEvent, P as PluginConfig, t as BehaviorLoopPolicyState } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,6 +1,7 @@
1
- import { x as MemoryCategory, a7 as BehaviorSignalEvent } from './types-BP5MC8UU.js';
1
+ import { x as MemoryCategory, a7 as BehaviorSignalEvent } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,7 +1,8 @@
1
- import { P as PluginConfig } from './types-BP5MC8UU.js';
2
- import { O as Orchestrator } from './orchestrator-6fPa2l9x.js';
1
+ import { P as PluginConfig } from './types-D9gKdB79.js';
2
+ import { O as Orchestrator } from './orchestrator-CC4USYcD.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
5
+ import './types-CM86alG1.js';
5
6
  import './operator-doctor-types.js';
6
7
  import './external-wiki-config.js';
7
8
  import './contradiction-config.js';
@@ -12,7 +13,7 @@ import './utils/serialize-mutations.js';
12
13
  import './search/port.js';
13
14
  import './included-memories.js';
14
15
  import './briefing.js';
15
- import './storage-CzorrpcN.js';
16
+ import './storage-VpDzURiA.js';
16
17
  import './corpus-read-cancellation.js';
17
18
  import './artifact-search.js';
18
19
  import './entity-id-normalization.js';
@@ -33,8 +34,8 @@ import './resolve-provider-secret.js';
33
34
  import './transcript.js';
34
35
  import './session-integrity.js';
35
36
  import './summarizer.js';
36
- import './maintenance-DITiehFX.js';
37
- import './catalog-CLAqQO2L.js';
37
+ import './maintenance-BjEr3WKG.js';
38
+ import './catalog-gBoyN-IW.js';
38
39
  import './namespaces/search.js';
39
40
  import './compounding/engine.js';
40
41
  import './shared-context/manager.js';
@@ -44,7 +45,7 @@ import './utility-runtime.js';
44
45
  import './tier-routing.js';
45
46
  import './lifecycle.js';
46
47
  import './orchestration/compression-guideline-coordinator.js';
47
- import './semantic-consolidation-Chmddvcg.js';
48
+ import './semantic-consolidation-5-HOmIhL.js';
48
49
  import './connectors/codex-materialize.js';
49
50
  import './logger.js';
50
51
  import './embedding-fallback.js';
@@ -68,10 +69,10 @@ import './conversation-index/chunker.js';
68
69
  import './conversation-index/backend.js';
69
70
  import './faiss-adapter-BHecI1fF.js';
70
71
  import './runtime/child-process.js';
71
- import './dependency-propagation-delivery-DMqIw9Zh.js';
72
+ import './dependency-propagation-delivery-QYJ1-c2M.js';
72
73
  import './namespaces/storage.js';
73
74
  import './threading.js';
74
- import './scope-profiles-1hYWJ9bM.js';
75
+ import './scope-profiles-C4PdBYKc.js';
75
76
  import './graph-444E-DrF.js';
76
77
  import './recall-xray.js';
77
78
  import './memory-provenance.js';
@@ -84,7 +85,7 @@ import './negative.js';
84
85
  import './session-observer-state.js';
85
86
  import './semantic-TddhF0y7.js';
86
87
  import './replay/types.js';
87
- import './service-DMs_dCCg.js';
88
+ import './service-8pDy6w8u.js';
88
89
  import './extraction-judge.js';
89
90
  import './lcm/engine.js';
90
91
  import './lcm/archive.js';
@@ -1,13 +1,14 @@
1
- import { M as MemoryFile } from './types-BP5MC8UU.js';
1
+ import { M as MemoryFile } from './types-D9gKdB79.js';
2
2
  import { ParsedBriefingWindow } from './briefing.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
5
+ import './types-CM86alG1.js';
5
6
  import './operator-doctor-types.js';
6
7
  import './external-wiki-config.js';
7
8
  import './contradiction-config.js';
8
9
  import './graph-path-scoring-config.js';
9
10
  import './types-continuity.js';
10
- import './storage-CzorrpcN.js';
11
+ import './storage-VpDzURiA.js';
11
12
  import './corpus-read-cancellation.js';
12
13
  import './artifact-search.js';
13
14
  import './entity-id-normalization.js';
@@ -1,5 +1,5 @@
1
- import { S as StorageManager } from './storage-CzorrpcN.js';
2
- import { B as BriefingSections, c as BriefingFollowup, d as BriefingFocus, e as CalendarSource, f as CalendarEvent, M as MemoryFile, g as BriefingActiveThread, h as BriefingResult, i as BriefingOpenCommitment, E as EntityFile, j as BriefingRecentEntity } from './types-BP5MC8UU.js';
1
+ import { S as StorageManager } from './storage-VpDzURiA.js';
2
+ import { B as BriefingSections, c as BriefingFollowup, d as BriefingFocus, e as CalendarSource, f as CalendarEvent, M as MemoryFile, g as BriefingActiveThread, h as BriefingResult, i as BriefingOpenCommitment, E as EntityFile, j as BriefingRecentEntity } from './types-D9gKdB79.js';
3
3
  import './corpus-read-cancellation.js';
4
4
  import './artifact-search.js';
5
5
  import './entity-id-normalization.js';
@@ -15,6 +15,7 @@ import './structured-attributes.js';
15
15
  import './types-continuity.js';
16
16
  import './message-parts/index.js';
17
17
  import './bounded-jsonl-state.js';
18
+ import './types-CM86alG1.js';
18
19
  import './operator-doctor-types.js';
19
20
  import './external-wiki-config.js';
20
21
  import './contradiction-config.js';
package/dist/briefing.js CHANGED
@@ -18,13 +18,14 @@ import {
18
18
  renderBriefingMarkdown,
19
19
  resolveBriefingSaveDir,
20
20
  validateBriefingFormat
21
- } from "./chunk-LOETWOEB.js";
22
- import "./chunk-2QI2JBLQ.js";
21
+ } from "./chunk-IWUN4RZL.js";
22
+ import "./chunk-ZAI5R6DW.js";
23
23
  import "./chunk-UHVXE24Y.js";
24
24
  import "./chunk-46WM6JX2.js";
25
25
  import "./chunk-SXIMQLGV.js";
26
- import "./chunk-IJXECCUV.js";
27
- import "./chunk-55SJFHVD.js";
26
+ import "./chunk-LWVG6U7L.js";
27
+ import "./chunk-ZFBZ4QTS.js";
28
+ import "./chunk-CYEPCZN5.js";
28
29
  import "./chunk-ML3U4KPR.js";
29
30
  import "./chunk-VYISFWVX.js";
30
31
  import "./chunk-6KTXE6A3.js";
@@ -32,7 +33,6 @@ import "./chunk-OQIRBGUU.js";
32
33
  import "./chunk-VANZKHTN.js";
33
34
  import "./chunk-W7IGLX4G.js";
34
35
  import "./chunk-GUMZC2BO.js";
35
- import "./chunk-CYEPCZN5.js";
36
36
  import "./chunk-227UFSEQ.js";
37
37
  import "./chunk-ET356KSB.js";
38
38
  import "./chunk-72A4L5JJ.js";
@@ -1,6 +1,7 @@
1
- import { a8 as BufferSurpriseEvent } from './types-BP5MC8UU.js';
1
+ import { a8 as BufferSurpriseEvent } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,6 +1,7 @@
1
- export { ci as AmbientCaptureProvenance, cj as BufferTurnOwner, ck as ProbeTimeoutError, cl as bufferTurnArrayIsSuffixOfSnapshot, cm as bufferTurnArraysEqual, cn as bufferTurnsEqual, co as copyBufferTurn, cp as describeError, cq as liveTurnsFromExtractionSnapshot, cr as matchingQueuedExtractionPrefixLength, cs as probeWithTimeout } from './types-BP5MC8UU.js';
1
+ export { ci as AmbientCaptureProvenance, cj as BufferTurnOwner, ck as ProbeTimeoutError, cl as bufferTurnArrayIsSuffixOfSnapshot, cm as bufferTurnArraysEqual, cn as bufferTurnsEqual, co as copyBufferTurn, cp as describeError, cq as liveTurnsFromExtractionSnapshot, cr as matchingQueuedExtractionPrefixLength, cs as probeWithTimeout } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
package/dist/buffer.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as StorageManager } from './storage-CzorrpcN.js';
2
- import { P as PluginConfig, k as BufferTurn, l as ExtractionBufferSnapshot } from './types-BP5MC8UU.js';
1
+ import { S as StorageManager } from './storage-VpDzURiA.js';
2
+ import { P as PluginConfig, k as BufferTurn, l as ExtractionBufferSnapshot } from './types-D9gKdB79.js';
3
3
  import './corpus-read-cancellation.js';
4
4
  import './artifact-search.js';
5
5
  import './entity-id-normalization.js';
@@ -15,6 +15,7 @@ import './structured-attributes.js';
15
15
  import './types-continuity.js';
16
16
  import './message-parts/index.js';
17
17
  import './bounded-jsonl-state.js';
18
+ import './types-CM86alG1.js';
18
19
  import './operator-doctor-types.js';
19
20
  import './external-wiki-config.js';
20
21
  import './contradiction-config.js';
@@ -1,8 +1,9 @@
1
- import { bE as BulkImportSourceAdapter } from '../types-BP5MC8UU.js';
2
- export { bD as BulkImportError, aa as BulkImportOptions, ac as BulkImportResult, ab as BulkImportSource, bM as ImportSourceRole, a9 as ImportTurn, bN as ImportTurnValidationIssue, b_ as isImportRole, c0 as parseIsoTimestamp, c1 as validateImportTurn } from '../types-BP5MC8UU.js';
3
- export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from '../pipeline-DHpYtfM3.js';
1
+ import { bE as BulkImportSourceAdapter } from '../types-D9gKdB79.js';
2
+ export { bD as BulkImportError, aa as BulkImportOptions, ac as BulkImportResult, ab as BulkImportSource, bM as ImportSourceRole, a9 as ImportTurn, bN as ImportTurnValidationIssue, b_ as isImportRole, c0 as parseIsoTimestamp, c1 as validateImportTurn } from '../types-D9gKdB79.js';
3
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from '../pipeline-DWgAgvJN.js';
4
4
  import '../message-parts/index.js';
5
5
  import '../bounded-jsonl-state.js';
6
+ import '../types-CM86alG1.js';
6
7
  import '../operator-doctor-types.js';
7
8
  import '../external-wiki-config.js';
8
9
  import '../contradiction-config.js';
@@ -1,8 +1,9 @@
1
1
  import { FallbackLlmClient } from './fallback-llm.js';
2
- import { G as GatewayConfig, A as AgentPersonaModelConfig } from './types-BP5MC8UU.js';
2
+ import { G as GatewayConfig, A as AgentPersonaModelConfig } from './types-D9gKdB79.js';
3
3
  import './resolve-provider-secret.js';
4
4
  import './message-parts/index.js';
5
5
  import './bounded-jsonl-state.js';
6
+ import './types-CM86alG1.js';
6
7
  import './operator-doctor-types.js';
7
8
  import './external-wiki-config.js';
8
9
  import './contradiction-config.js';
@@ -1,6 +1,7 @@
1
- import { P as PluginConfig } from './types-BP5MC8UU.js';
1
+ import { P as PluginConfig } from './types-D9gKdB79.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
+ import './types-CM86alG1.js';
4
5
  import './operator-doctor-types.js';
5
6
  import './external-wiki-config.js';
6
7
  import './contradiction-config.js';
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig } from './types-BP5MC8UU.js';
1
+ import { P as PluginConfig } from './types-D9gKdB79.js';
2
2
 
3
3
  /**
4
4
  * Rebuildable namespace catalog (issue #1499).
@@ -2,9 +2,10 @@ import { CausalChainIndex } from './causal-chain.js';
2
2
  import { ConsolidatedPreference } from './compounding/preference-consolidator.js';
3
3
  import './causal-trajectory.js';
4
4
  import './objective-state.js';
5
- import './types-BP5MC8UU.js';
5
+ import './types-D9gKdB79.js';
6
6
  import './message-parts/index.js';
7
7
  import './bounded-jsonl-state.js';
8
+ import './types-CM86alG1.js';
8
9
  import './operator-doctor-types.js';
9
10
  import './external-wiki-config.js';
10
11
  import './contradiction-config.js';
@@ -1,7 +1,8 @@
1
- import { G as GatewayConfig, A as AgentPersonaModelConfig, P as PluginConfig, M as MemoryFile } from './types-BP5MC8UU.js';
1
+ import { G as GatewayConfig, A as AgentPersonaModelConfig, P as PluginConfig, M as MemoryFile } from './types-D9gKdB79.js';
2
2
  import { RolloutSummaryInput, MaterializeResult } from './connectors/codex-materialize.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
5
+ import './types-CM86alG1.js';
5
6
  import './operator-doctor-types.js';
6
7
  import './external-wiki-config.js';
7
8
  import './contradiction-config.js';
@@ -4,22 +4,23 @@ import {
4
4
  } from "./chunk-2PSX5BJU.js";
5
5
  import {
6
6
  buildExtensionsBlockForConsolidation
7
- } from "./chunk-246HFJVG.js";
7
+ } from "./chunk-JNSLW2O4.js";
8
8
  import "./chunk-5JMAGU26.js";
9
9
  import "./chunk-B7RWBZXW.js";
10
10
  import {
11
11
  runPostConsolidationMaterialize
12
- } from "./chunk-7BVO64UC.js";
12
+ } from "./chunk-PHX3ET3C.js";
13
13
  import "./chunk-RDFF2NAU.js";
14
14
  import {
15
15
  resolveCausalTrajectoryStoreDir
16
16
  } from "./chunk-GPFZFCRN.js";
17
- import "./chunk-2QI2JBLQ.js";
17
+ import "./chunk-ZAI5R6DW.js";
18
18
  import "./chunk-UHVXE24Y.js";
19
19
  import "./chunk-46WM6JX2.js";
20
20
  import "./chunk-SXIMQLGV.js";
21
- import "./chunk-IJXECCUV.js";
22
- import "./chunk-55SJFHVD.js";
21
+ import "./chunk-LWVG6U7L.js";
22
+ import "./chunk-ZFBZ4QTS.js";
23
+ import "./chunk-CYEPCZN5.js";
23
24
  import "./chunk-ML3U4KPR.js";
24
25
  import "./chunk-VYISFWVX.js";
25
26
  import "./chunk-6KTXE6A3.js";
@@ -27,7 +28,6 @@ import "./chunk-OQIRBGUU.js";
27
28
  import "./chunk-VANZKHTN.js";
28
29
  import "./chunk-W7IGLX4G.js";
29
30
  import "./chunk-GUMZC2BO.js";
30
- import "./chunk-CYEPCZN5.js";
31
31
  import "./chunk-227UFSEQ.js";
32
32
  import "./chunk-ET356KSB.js";
33
33
  import "./chunk-72A4L5JJ.js";
@@ -1,9 +1,10 @@
1
1
  import { a as GraphEdge } from './graph-444E-DrF.js';
2
2
  import { CausalTrajectoryRecord } from './causal-trajectory.js';
3
3
  import './capabilities.js';
4
- import './types-BP5MC8UU.js';
4
+ import './types-D9gKdB79.js';
5
5
  import './message-parts/index.js';
6
6
  import './bounded-jsonl-state.js';
7
+ import './types-CM86alG1.js';
7
8
  import './operator-doctor-types.js';
8
9
  import './external-wiki-config.js';
9
10
  import './contradiction-config.js';
@@ -2,7 +2,7 @@ import {
2
2
  WHO_KNOWS_DEFAULT_LIMIT,
3
3
  WHO_KNOWS_MAX_LIMIT,
4
4
  validateWhoKnowsInput
5
- } from "./chunk-TKI2WOL5.js";
5
+ } from "./chunk-KLPVXLQJ.js";
6
6
 
7
7
  // src/who-knows-cli.ts
8
8
  function extractWhoKnowsRawArgs(rest) {
@@ -74,4 +74,4 @@ export {
74
74
  renderWhoKnowsText,
75
75
  renderWhoKnows
76
76
  };
77
- //# sourceMappingURL=chunk-TY35YQ6E.js.map
77
+ //# sourceMappingURL=chunk-34BMUGRA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveCorpusNamespaceRoots
3
- } from "./chunk-SB6YBB2V.js";
3
+ } from "./chunk-NTERJOFA.js";
4
4
  import {
5
5
  capabilityAllowsNamespace
6
6
  } from "./chunk-MZWSOLMT.js";
@@ -200,4 +200,4 @@ async function readAggregateExtractionWatermark(options) {
200
200
  export {
201
201
  readAggregateExtractionWatermark
202
202
  };
203
- //# sourceMappingURL=chunk-XH4IQVTN.js.map
203
+ //# sourceMappingURL=chunk-4E6IJCLC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-2QI2JBLQ.js";
3
+ } from "./chunk-ZAI5R6DW.js";
4
4
  import {
5
5
  composeMemoryEnvelope
6
6
  } from "./chunk-LCU5R6TQ.js";
@@ -546,4 +546,4 @@ export {
546
546
  setSemanticRulePromotionTestHooks,
547
547
  promoteSemanticRuleFromMemory
548
548
  };
549
- //# sourceMappingURL=chunk-LZKCMK3U.js.map
549
+ //# sourceMappingURL=chunk-4GD7YV4Y.js.map
@@ -0,0 +1,95 @@
1
+ import {
2
+ assertValidTimezone
3
+ } from "./chunk-M6L7HI7R.js";
4
+ import {
5
+ coerceBooleanLike,
6
+ coerceNumber
7
+ } from "./chunk-PQVCH2AE.js";
8
+
9
+ // src/location/config.ts
10
+ var PROVIDER_ID_PATTERN = /^[a-z0-9][a-z0-9-]*$/;
11
+ function defaultLocationConfig() {
12
+ return {
13
+ enabled: false,
14
+ timezone: "UTC",
15
+ syncDays: 1,
16
+ retainCoordinates: false,
17
+ sources: []
18
+ };
19
+ }
20
+ function asRecord(value, name) {
21
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
22
+ throw new TypeError(`${name} must be an object`);
23
+ }
24
+ return value;
25
+ }
26
+ function optionalNonEmptyString(value, name) {
27
+ if (value === void 0) return void 0;
28
+ if (typeof value !== "string" || value.length === 0) throw new TypeError(`${name} must be a non-empty string`);
29
+ return value;
30
+ }
31
+ function parseLocationSource(value) {
32
+ const raw = asRecord(value, "location source");
33
+ const id = optionalNonEmptyString(raw.id, "location source id");
34
+ if (id === void 0) {
35
+ throw new TypeError("location source requires id");
36
+ }
37
+ if (!PROVIDER_ID_PATTERN.test(id)) {
38
+ throw new RangeError(
39
+ `location source id must be a lowercase kebab string (a-z, 0-9, hyphens): got "${id}"`
40
+ );
41
+ }
42
+ const enabledValue = coerceBooleanLike(raw.enabled, "location source enabled");
43
+ if (raw.enabled !== void 0 && enabledValue === void 0) {
44
+ throw new TypeError(`location source '${id}' enabled must be a boolean`);
45
+ }
46
+ return { id, enabled: enabledValue ?? true };
47
+ }
48
+ function parseLocationConfig(raw) {
49
+ const defaults = defaultLocationConfig();
50
+ if (raw === void 0 || raw === null) {
51
+ return { ...defaults };
52
+ }
53
+ const config = asRecord(raw, "location");
54
+ const enabledValue = coerceBooleanLike(config.enabled, "location.enabled");
55
+ if (config.enabled !== void 0 && enabledValue === void 0) {
56
+ throw new TypeError("location.enabled must be a boolean");
57
+ }
58
+ const enabled = enabledValue ?? false;
59
+ const timezone = optionalNonEmptyString(config.timezone, "location.timezone") ?? "UTC";
60
+ assertValidTimezone(timezone);
61
+ const syncDaysValue = coerceNumber(config.syncDays, "location.syncDays");
62
+ if (config.syncDays !== void 0 && syncDaysValue === void 0) {
63
+ throw new TypeError("location.syncDays must be a finite number");
64
+ }
65
+ const syncDays = syncDaysValue ?? 1;
66
+ if (!Number.isInteger(syncDays) || syncDays < 1 || syncDays > 90) {
67
+ throw new RangeError("location.syncDays must be an integer from 1 to 90");
68
+ }
69
+ const retainCoordinatesValue = coerceBooleanLike(config.retainCoordinates, "location.retainCoordinates");
70
+ if (config.retainCoordinates !== void 0 && retainCoordinatesValue === void 0) {
71
+ throw new TypeError("location.retainCoordinates must be a boolean");
72
+ }
73
+ const retainCoordinates = retainCoordinatesValue ?? false;
74
+ if (config.sources !== void 0 && !Array.isArray(config.sources)) {
75
+ throw new TypeError("location.sources must be an array");
76
+ }
77
+ const sources = (config.sources ?? []).map(parseLocationSource);
78
+ const ids = /* @__PURE__ */ new Set();
79
+ for (const source of sources) {
80
+ if (ids.has(source.id)) {
81
+ throw new RangeError(`location source id must be unique: ${source.id}`);
82
+ }
83
+ ids.add(source.id);
84
+ }
85
+ if (enabled && sources.length === 0) {
86
+ throw new RangeError("location.enabled requires at least one source");
87
+ }
88
+ return { enabled, timezone, syncDays, retainCoordinates, sources };
89
+ }
90
+
91
+ export {
92
+ defaultLocationConfig,
93
+ parseLocationConfig
94
+ };
95
+ //# sourceMappingURL=chunk-7PHI6GUI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/location/config.ts"],"sourcesContent":["import { coerceBooleanLike, coerceNumber } from \"../connectors/coerce.js\";\nimport { assertValidTimezone } from \"../activity/digest.js\";\nimport type { LocationConfig, LocationSourceConfig } from \"./types.js\";\n\nconst PROVIDER_ID_PATTERN = /^[a-z0-9][a-z0-9-]*$/;\n\n/** The inert default: disabled, UTC days, one day per run, no sources, no coordinates. */\nexport function defaultLocationConfig(): LocationConfig {\n return {\n enabled: false,\n timezone: \"UTC\",\n syncDays: 1,\n retainCoordinates: false,\n sources: [],\n };\n}\n\nfunction asRecord(value: unknown, name: string): Record<string, unknown> {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) {\n throw new TypeError(`${name} must be an object`);\n }\n return value as Record<string, unknown>;\n}\n\nfunction optionalNonEmptyString(value: unknown, name: string): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value !== \"string\" || value.length === 0) throw new TypeError(`${name} must be a non-empty string`);\n return value;\n}\n\nfunction parseLocationSource(value: unknown): LocationSourceConfig {\n const raw = asRecord(value, \"location source\");\n const id = optionalNonEmptyString(raw.id, \"location source id\");\n if (id === undefined) {\n throw new TypeError(\"location source requires id\");\n }\n if (!PROVIDER_ID_PATTERN.test(id)) {\n throw new RangeError(\n `location source id must be a lowercase kebab string (a-z, 0-9, hyphens): got \"${id}\"`,\n );\n }\n const enabledValue = coerceBooleanLike(raw.enabled, \"location source enabled\");\n if (raw.enabled !== undefined && enabledValue === undefined) {\n throw new TypeError(`location source '${id}' enabled must be a boolean`);\n }\n return { id, enabled: enabledValue ?? true };\n}\n\n/**\n * Parse the unified `location.*` block. `enabled` gates everything and\n * requires at least one source; a source's own `enabled` gates that source\n * only. `retainCoordinates` defaults to `false` — coordinates are privacy\n * data and are dropped everywhere unless explicitly retained.\n */\nexport function parseLocationConfig(raw: unknown): LocationConfig {\n const defaults = defaultLocationConfig();\n if (raw === undefined || raw === null) {\n return { ...defaults };\n }\n const config = asRecord(raw, \"location\");\n const enabledValue = coerceBooleanLike(config.enabled, \"location.enabled\");\n if (config.enabled !== undefined && enabledValue === undefined) {\n throw new TypeError(\"location.enabled must be a boolean\");\n }\n const enabled = enabledValue ?? false;\n\n const timezone = optionalNonEmptyString(config.timezone, \"location.timezone\") ?? \"UTC\";\n // Validate the IANA zone at parse so a typo fails at config load, not\n // mid-sync after some sources may already have advanced their state.\n assertValidTimezone(timezone);\n\n const syncDaysValue = coerceNumber(config.syncDays, \"location.syncDays\");\n if (config.syncDays !== undefined && syncDaysValue === undefined) {\n throw new TypeError(\"location.syncDays must be a finite number\");\n }\n const syncDays = syncDaysValue ?? 1;\n if (!Number.isInteger(syncDays) || syncDays < 1 || syncDays > 90) {\n throw new RangeError(\"location.syncDays must be an integer from 1 to 90\");\n }\n\n const retainCoordinatesValue = coerceBooleanLike(config.retainCoordinates, \"location.retainCoordinates\");\n if (config.retainCoordinates !== undefined && retainCoordinatesValue === undefined) {\n throw new TypeError(\"location.retainCoordinates must be a boolean\");\n }\n const retainCoordinates = retainCoordinatesValue ?? false;\n\n if (config.sources !== undefined && !Array.isArray(config.sources)) {\n throw new TypeError(\"location.sources must be an array\");\n }\n const sources = (config.sources ?? []).map(parseLocationSource);\n // Day payloads and sync state are keyed on source id; two sources sharing\n // an id would overwrite each other's state. Reject the collision at parse.\n const ids = new Set<string>();\n for (const source of sources) {\n if (ids.has(source.id)) {\n throw new RangeError(`location source id must be unique: ${source.id}`);\n }\n ids.add(source.id);\n }\n if (enabled && sources.length === 0) {\n throw new RangeError(\"location.enabled requires at least one source\");\n }\n\n return { enabled, timezone, syncDays, retainCoordinates, sources };\n}\n"],"mappings":";;;;;;;;;AAIA,IAAM,sBAAsB;AAGrB,SAAS,wBAAwC;AACtD,SAAO;AAAA,IACL,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,mBAAmB;AAAA,IACnB,SAAS,CAAC;AAAA,EACZ;AACF;AAEA,SAAS,SAAS,OAAgB,MAAuC;AACvE,MAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,MAAM,QAAQ,KAAK,GAAG;AACvE,UAAM,IAAI,UAAU,GAAG,IAAI,oBAAoB;AAAA,EACjD;AACA,SAAO;AACT;AAEA,SAAS,uBAAuB,OAAgB,MAAkC;AAChF,MAAI,UAAU,OAAW,QAAO;AAChC,MAAI,OAAO,UAAU,YAAY,MAAM,WAAW,EAAG,OAAM,IAAI,UAAU,GAAG,IAAI,6BAA6B;AAC7G,SAAO;AACT;AAEA,SAAS,oBAAoB,OAAsC;AACjE,QAAM,MAAM,SAAS,OAAO,iBAAiB;AAC7C,QAAM,KAAK,uBAAuB,IAAI,IAAI,oBAAoB;AAC9D,MAAI,OAAO,QAAW;AACpB,UAAM,IAAI,UAAU,6BAA6B;AAAA,EACnD;AACA,MAAI,CAAC,oBAAoB,KAAK,EAAE,GAAG;AACjC,UAAM,IAAI;AAAA,MACR,iFAAiF,EAAE;AAAA,IACrF;AAAA,EACF;AACA,QAAM,eAAe,kBAAkB,IAAI,SAAS,yBAAyB;AAC7E,MAAI,IAAI,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,IAAI,IAAI,OAAO,EAAE,GAAG;AACtB,YAAM,IAAI,WAAW,sCAAsC,OAAO,EAAE,EAAE;AAAA,IACxE;AACA,QAAI,IAAI,OAAO,EAAE;AAAA,EACnB;AACA,MAAI,WAAW,QAAQ,WAAW,GAAG;AACnC,UAAM,IAAI,WAAW,+CAA+C;AAAA,EACtE;AAEA,SAAO,EAAE,SAAS,UAAU,UAAU,mBAAmB,QAAQ;AACnE;","names":[]}
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-NOB2T2FC.js";
12
12
  import {
13
13
  parseConfig
14
- } from "./chunk-UMDZXW5J.js";
14
+ } from "./chunk-YQ3CBLL4.js";
15
15
  import {
16
16
  resolveObjectiveStateStoreDir,
17
17
  validateObjectiveStateSnapshot
@@ -268,4 +268,4 @@ export {
268
268
  recordResumeBundle,
269
269
  getResumeBundleStatus
270
270
  };
271
- //# sourceMappingURL=chunk-YXGU3MDQ.js.map
271
+ //# sourceMappingURL=chunk-7PWWGYGO.js.map