@remnic/core 9.64.4 → 9.65.1

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 (473) hide show
  1. package/dist/access-admin-ops-surface.d.ts +12 -11
  2. package/dist/access-admin-ops-surface.js +36 -35
  3. package/dist/access-authorization-probe.d.ts +12 -11
  4. package/dist/access-authorization-probe.js +37 -36
  5. package/dist/access-boundary.d.ts +12 -11
  6. package/dist/access-boundary.js +36 -35
  7. package/dist/access-cli.js +91 -88
  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 +36 -35
  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 +38 -37
  18. package/dist/access-http.d.ts +13 -12
  19. package/dist/access-http.js +49 -48
  20. package/dist/access-identity-continuity-surface.d.ts +10 -9
  21. package/dist/access-identity-continuity-surface.js +36 -35
  22. package/dist/access-lcm-surface.d.ts +12 -11
  23. package/dist/access-lcm-surface.js +36 -35
  24. package/dist/access-mcp.d.ts +12 -11
  25. package/dist/access-mcp.js +42 -41
  26. package/dist/access-memory-search-fanout.d.ts +3 -2
  27. package/dist/{access-namespace-preflight-CYeI1R2_.d.ts → access-namespace-preflight-BKUnKsBv.d.ts} +1 -1
  28. package/dist/access-namespace-preflight.d.ts +4 -3
  29. package/dist/access-namespace-preflight.js +36 -35
  30. package/dist/access-observe-write-surface.d.ts +12 -11
  31. package/dist/access-observe-write-surface.js +36 -35
  32. package/dist/access-offline-manifest.d.ts +10 -9
  33. package/dist/access-operations-batch.js +38 -37
  34. package/dist/access-operations.d.ts +12 -11
  35. package/dist/access-operations.js +41 -40
  36. package/dist/access-recall-concurrency.d.ts +12 -11
  37. package/dist/access-recall-concurrency.js +36 -35
  38. package/dist/access-recall-response.d.ts +12 -11
  39. package/dist/access-recall-response.js +36 -35
  40. package/dist/access-recall-surface.d.ts +12 -11
  41. package/dist/access-recall-surface.js +36 -35
  42. package/dist/{access-service-BKtdXnyk.d.ts → access-service-B1Lbb-nQ.d.ts} +13 -13
  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 +36 -35
  46. package/dist/access-surface-catalog.d.ts +12 -11
  47. package/dist/access-surface-catalog.js +38 -37
  48. package/dist/access-surface-catalog.js.map +1 -1
  49. package/dist/access-wearables-meetings-surface.d.ts +4 -3
  50. package/dist/action-confidence.d.ts +2 -1
  51. package/dist/active-memory-bridge.d.ts +2 -1
  52. package/dist/active-recall.d.ts +2 -1
  53. package/dist/active-recall.js +4 -2
  54. package/dist/active-recall.js.map +1 -1
  55. package/dist/ambient-provenance.d.ts +2 -1
  56. package/dist/artifact-search.d.ts +2 -1
  57. package/dist/behavior-learner.d.ts +2 -1
  58. package/dist/behavior-signals.d.ts +2 -1
  59. package/dist/bootstrap.d.ts +10 -9
  60. package/dist/briefing-window.d.ts +3 -2
  61. package/dist/briefing.d.ts +3 -2
  62. package/dist/briefing.js +15 -14
  63. package/dist/buffer-surprise-report.d.ts +2 -1
  64. package/dist/buffer-turn-helpers.d.ts +2 -1
  65. package/dist/buffer.d.ts +3 -2
  66. package/dist/buffer.js +5 -5
  67. package/dist/bulk-import/index.d.ts +4 -3
  68. package/dist/calibration.d.ts +2 -1
  69. package/dist/capabilities.d.ts +2 -1
  70. package/dist/{catalog-CLAqQO2L.d.ts → catalog-DjVhJoRM.d.ts} +1 -1
  71. package/dist/causal-behavior.d.ts +2 -1
  72. package/dist/causal-behavior.js +2 -2
  73. package/dist/causal-chain.js +2 -2
  74. package/dist/causal-consolidation.d.ts +2 -1
  75. package/dist/causal-consolidation.js +18 -17
  76. package/dist/causal-consolidation.js.map +1 -1
  77. package/dist/causal-retrieval.js +2 -2
  78. package/dist/causal-trajectory-graph.d.ts +2 -1
  79. package/dist/causal-trajectory-graph.js +2 -2
  80. package/dist/causal-trajectory.js +1 -1
  81. package/dist/{chunk-5HERQ5FX.js → chunk-256FBCVX.js} +5 -5
  82. package/dist/{chunk-GVRLED7R.js → chunk-2572MRP2.js} +2 -2
  83. package/dist/{chunk-TY35YQ6E.js → chunk-3MADV4YC.js} +2 -2
  84. package/dist/{chunk-XACYILRA.js → chunk-3PXVYJMC.js} +31 -31
  85. package/dist/{chunk-DC4FJY2G.js → chunk-3RHFGGI5.js} +4 -4
  86. package/dist/{chunk-LOETWOEB.js → chunk-3TMYV3LP.js} +2 -2
  87. package/dist/chunk-3WU7XOFN.js +102 -0
  88. package/dist/chunk-3WU7XOFN.js.map +1 -0
  89. package/dist/{chunk-XH4IQVTN.js → chunk-4W6INNXO.js} +2 -2
  90. package/dist/{chunk-SB6YBB2V.js → chunk-53ENM6F6.js} +2 -2
  91. package/dist/{chunk-7V3AZWWZ.js → chunk-5UYSCYR7.js} +9 -7
  92. package/dist/{chunk-7V3AZWWZ.js.map → chunk-5UYSCYR7.js.map} +1 -1
  93. package/dist/{chunk-Z6CJLYXT.js → chunk-63FHSH7E.js} +3 -3
  94. package/dist/{chunk-DG6MJD7W.js → chunk-6JJT5AKI.js} +2 -2
  95. package/dist/{chunk-7BVO64UC.js → chunk-6L27N6YI.js} +2 -2
  96. package/dist/chunk-7PHI6GUI.js +95 -0
  97. package/dist/chunk-7PHI6GUI.js.map +1 -0
  98. package/dist/{chunk-YXGU3MDQ.js → chunk-7PWWGYGO.js} +2 -2
  99. package/dist/{chunk-CKZHKFY3.js → chunk-7QFBLYFP.js} +3 -3
  100. package/dist/{chunk-RWLRKMZK.js → chunk-AGKIG3YA.js} +2 -2
  101. package/dist/{chunk-A2IBK3TG.js → chunk-ALCJRQ72.js} +2 -2
  102. package/dist/{chunk-44DSGZFF.js → chunk-BC4QD3FM.js} +2 -2
  103. package/dist/{chunk-YMOPYG3K.js → chunk-BIJAWZYW.js} +6 -6
  104. package/dist/{chunk-KRPE7ANR.js → chunk-CCTVAVTT.js} +2 -2
  105. package/dist/{chunk-VYEPACWY.js → chunk-CEH2AFXG.js} +7 -7
  106. package/dist/{chunk-XBRGJJK7.js → chunk-CEQF6L5K.js} +3 -3
  107. package/dist/{chunk-PVIXAMWM.js → chunk-CFRBTATE.js} +2 -2
  108. package/dist/{chunk-UIYYS2YI.js → chunk-CTQRPANJ.js} +2 -2
  109. package/dist/{chunk-XZUCNVGE.js → chunk-CUS6S7PN.js} +10 -10
  110. package/dist/{chunk-KWIGDKM2.js → chunk-D2YNNDML.js} +2 -2
  111. package/dist/{chunk-MJRVF7SF.js → chunk-DBXZZIDU.js} +87 -56
  112. package/dist/chunk-DBXZZIDU.js.map +1 -0
  113. package/dist/{chunk-2QI2JBLQ.js → chunk-DEFI2QBT.js} +16 -10
  114. package/dist/chunk-DEFI2QBT.js.map +1 -0
  115. package/dist/{chunk-JCSUNXYJ.js → chunk-ESCQ6LY7.js} +3 -3
  116. package/dist/{chunk-652S5A5D.js → chunk-EUYWQ7TS.js} +2 -2
  117. package/dist/{chunk-ML3U4KPR.js → chunk-GIC6BASP.js} +2 -2
  118. package/dist/{chunk-ZSYE2QVJ.js → chunk-GXWDWOWP.js} +2 -2
  119. package/dist/{chunk-55SJFHVD.js → chunk-HJQZQUPC.js} +11 -11
  120. package/dist/{chunk-6LTCUN3T.js → chunk-HQSBYI5X.js} +2 -2
  121. package/dist/{chunk-H5CGAD7L.js → chunk-HQSPXTQO.js} +1 -1
  122. package/dist/{chunk-EJDLQRUO.js → chunk-HUNSEO5U.js} +2 -2
  123. package/dist/{chunk-ON2P3SHG.js → chunk-IAY7YBXS.js} +2 -2
  124. package/dist/{chunk-MB6GLPRY.js → chunk-IVKIODHO.js} +4 -4
  125. package/dist/{chunk-CUIAHZPZ.js → chunk-IXRC7EQG.js} +2 -2
  126. package/dist/{chunk-VRYEXPRX.js → chunk-JFJ3MHGV.js} +1 -1
  127. package/dist/{chunk-VRYEXPRX.js.map → chunk-JFJ3MHGV.js.map} +1 -1
  128. package/dist/{chunk-LZKCMK3U.js → chunk-JTSVMJHV.js} +2 -2
  129. package/dist/{chunk-URS5GSM7.js → chunk-JXN77SGO.js} +1 -1
  130. package/dist/chunk-JXN77SGO.js.map +1 -0
  131. package/dist/{chunk-WBM5NR4E.js → chunk-KPBLJCCV.js} +2 -2
  132. package/dist/{chunk-VLES5S4K.js → chunk-LWVO2QZV.js} +36 -36
  133. package/dist/{chunk-NO7B6DRB.js → chunk-LYIZXQYY.js} +2 -2
  134. package/dist/{chunk-7RAJ3GXO.js → chunk-M6L7HI7R.js} +2 -156
  135. package/dist/chunk-M6L7HI7R.js.map +1 -0
  136. package/dist/{chunk-VUP47UJI.js → chunk-MIBKEW7A.js} +3 -3
  137. package/dist/{chunk-OQIRBGUU.js → chunk-N37X5RU7.js} +2 -2
  138. package/dist/{chunk-C6AKYOFO.js → chunk-N6TRHP72.js} +2 -2
  139. package/dist/{chunk-VANZKHTN.js → chunk-NNBZS3DY.js} +2 -2
  140. package/dist/{chunk-2PSX5BJU.js → chunk-NZPFCP5A.js} +2 -2
  141. package/dist/{chunk-LTBKKSCX.js → chunk-OLBZ2WGG.js} +2 -2
  142. package/dist/{chunk-PD66CVSD.js → chunk-OUKBMQ2O.js} +2 -2
  143. package/dist/{chunk-GPFZFCRN.js → chunk-PP7R754B.js} +1 -1
  144. package/dist/{chunk-TKI2WOL5.js → chunk-R3AAOKR2.js} +2 -2
  145. package/dist/{chunk-RNORDDD6.js → chunk-S2VBSTTA.js} +2 -2
  146. package/dist/{chunk-3A46U7XG.js → chunk-SYJ6EKKE.js} +2 -2
  147. package/dist/{chunk-YFQTDE7N.js → chunk-VJ6ECBIP.js} +2 -2
  148. package/dist/{chunk-IFK3PVM7.js → chunk-VPGRXEAB.js} +2 -2
  149. package/dist/{chunk-246HFJVG.js → chunk-VZVP2W4O.js} +2 -2
  150. package/dist/{chunk-SHQFYZTD.js → chunk-W6TSGWYS.js} +2 -2
  151. package/dist/{chunk-DA2O3F5V.js → chunk-WTOE7CW4.js} +13 -13
  152. package/dist/{chunk-IJXECCUV.js → chunk-X5SDZMO7.js} +2 -2
  153. package/dist/chunk-XAB6STPO.js +160 -0
  154. package/dist/chunk-XAB6STPO.js.map +1 -0
  155. package/dist/{chunk-DHKV6E4A.js → chunk-Y23B2QXP.js} +2 -2
  156. package/dist/{chunk-PE76XIDM.js → chunk-YEQEGSJA.js} +3 -3
  157. package/dist/{chunk-UMDZXW5J.js → chunk-YQ3CBLL4.js} +5 -85
  158. package/dist/chunk-YQ3CBLL4.js.map +1 -0
  159. package/dist/{chunk-VYISFWVX.js → chunk-YQNNHLCG.js} +2 -2
  160. package/dist/{chunk-3LOQN3TO.js → chunk-Z54TXZ2F.js} +3 -3
  161. package/dist/{cli-CLvBewKf.d.ts → cli-Pulnz-qm.d.ts} +5 -5
  162. package/dist/cli.d.ts +14 -13
  163. package/dist/cli.js +70 -67
  164. package/dist/coding/pre-action-gate.d.ts +2 -1
  165. package/dist/coding/pre-action-gate.js +2 -2
  166. package/dist/compounding/engine.d.ts +3 -2
  167. package/dist/compounding/engine.js +15 -14
  168. package/dist/compounding/preference-consolidator.d.ts +2 -1
  169. package/dist/compression-optimizer.d.ts +2 -1
  170. package/dist/config.d.ts +2 -1
  171. package/dist/config.js +4 -2
  172. package/dist/connectors/codex-materialize-runner.d.ts +2 -1
  173. package/dist/connectors/codex-materialize-runner.js +15 -14
  174. package/dist/connectors/codex-materialize.d.ts +2 -1
  175. package/dist/connectors/index.d.ts +2 -1
  176. package/dist/connectors/index.js +15 -14
  177. package/dist/consolidation-provenance-check.d.ts +3 -2
  178. package/dist/consolidation-undo.d.ts +3 -2
  179. package/dist/contradiction/index.d.ts +3 -2
  180. package/dist/converge-config.d.ts +2 -1
  181. package/dist/convergence-refresh.d.ts +3 -2
  182. package/dist/convergence-refresh.js +17 -16
  183. package/dist/conversation-index/backend.d.ts +2 -1
  184. package/dist/conversation-index/chunker.d.ts +2 -1
  185. package/dist/conversation-index/faiss-adapter.d.ts +2 -1
  186. package/dist/conversation-index/indexer.d.ts +2 -1
  187. package/dist/conversation-index/search.d.ts +2 -1
  188. package/dist/corpus-watermark.d.ts +2 -1
  189. package/dist/corpus-watermark.js +17 -16
  190. package/dist/cross-lingual-recall.d.ts +70 -0
  191. package/dist/cross-lingual-recall.js +14 -0
  192. package/dist/day-summary.d.ts +2 -1
  193. package/dist/delinearize.d.ts +2 -1
  194. package/dist/dependency-propagation-config.d.ts +2 -1
  195. package/dist/{dependency-propagation-delivery-DMqIw9Zh.d.ts → dependency-propagation-delivery-Co17gxYb.d.ts} +1 -1
  196. package/dist/direct-answer-wiring.d.ts +2 -1
  197. package/dist/direct-answer.d.ts +2 -1
  198. package/dist/embedding-fallback.d.ts +2 -1
  199. package/dist/enrichment/index.d.ts +2 -1
  200. package/dist/entity-origin-fields.d.ts +2 -1
  201. package/dist/entity-retrieval.d.ts +3 -2
  202. package/dist/entity-retrieval.js +15 -14
  203. package/dist/entity-schema.d.ts +2 -1
  204. package/dist/episodic-context.d.ts +2 -1
  205. package/dist/explicit-capture.d.ts +10 -9
  206. package/dist/external-wiki-access.d.ts +12 -11
  207. package/dist/external-wiki-access.js +37 -36
  208. package/dist/external-wiki-collection-registration.d.ts +2 -1
  209. package/dist/external-wiki-collection.d.ts +2 -1
  210. package/dist/external-wiki-mcp-tools.d.ts +12 -11
  211. package/dist/extraction-error-classification.d.ts +2 -1
  212. package/dist/extraction-faithfulness.d.ts +2 -1
  213. package/dist/extraction-judge-telemetry.d.ts +2 -1
  214. package/dist/extraction-judge-training.d.ts +2 -1
  215. package/dist/extraction-judge.d.ts +2 -1
  216. package/dist/extraction-liveness.d.ts +2 -1
  217. package/dist/extraction-normalization.d.ts +2 -1
  218. package/dist/extraction-prompt.d.ts +2 -1
  219. package/dist/extraction-source-grounding-rules.d.ts +2 -1
  220. package/dist/extraction-source-grounding.d.ts +2 -1
  221. package/dist/extraction.d.ts +2 -1
  222. package/dist/extraction.js +20 -19
  223. package/dist/fallback-llm.d.ts +2 -1
  224. package/dist/graph-dashboard-diff.d.ts +2 -1
  225. package/dist/graph-dashboard-key.d.ts +2 -1
  226. package/dist/graph-dashboard-parser.d.ts +2 -1
  227. package/dist/{graph-edge-decay-A4SDFMMS.js → graph-edge-decay-FXGELBFA.js} +4 -4
  228. package/dist/graph-edge-decay-FXGELBFA.js.map +1 -0
  229. package/dist/graph-edge-reinforcement.d.ts +2 -1
  230. package/dist/graph-path-reconstruction.d.ts +2 -1
  231. package/dist/graph-path-scoring.d.ts +2 -1
  232. package/dist/graph-snapshot.d.ts +2 -1
  233. package/dist/graph-snapshot.js +3 -3
  234. package/dist/graph.d.ts +2 -1
  235. package/dist/graph.js +3 -3
  236. package/dist/harmonic-retrieval.js +1 -1
  237. package/dist/importance.d.ts +2 -1
  238. package/dist/importers/index.d.ts +2 -1
  239. package/dist/in-flight-reads.d.ts +2 -1
  240. package/dist/index.d.ts +24 -23
  241. package/dist/index.js +130 -126
  242. package/dist/intent.d.ts +2 -1
  243. package/dist/lcm/engine.d.ts +2 -1
  244. package/dist/lcm/engine.js +2 -2
  245. package/dist/lcm/index.d.ts +2 -1
  246. package/dist/lcm/index.js +5 -5
  247. package/dist/lcm/tools.d.ts +2 -1
  248. package/dist/lifecycle.d.ts +2 -1
  249. package/dist/live-connectors-runner.d.ts +2 -1
  250. package/dist/local-llm.d.ts +2 -1
  251. package/dist/local-llm.js +2 -2
  252. package/dist/local-model-endpoint.d.ts +2 -1
  253. package/dist/location/index.d.ts +295 -0
  254. package/dist/location/index.js +798 -0
  255. package/dist/location/index.js.map +1 -0
  256. package/dist/maintenance/memory-governance.d.ts +2 -1
  257. package/dist/maintenance/memory-governance.js +15 -14
  258. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
  259. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +15 -14
  260. package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
  261. package/dist/maintenance/rebuild-memory-projection.js +16 -15
  262. package/dist/{maintenance-DITiehFX.d.ts → maintenance-DiSLtVN7.d.ts} +3 -3
  263. package/dist/mcp-memory-inspector-app.d.ts +12 -11
  264. package/dist/memory-action-policy.d.ts +2 -1
  265. package/dist/memory-cache.d.ts +2 -1
  266. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
  267. package/dist/memory-projection-store.d.ts +2 -1
  268. package/dist/memory-provenance.d.ts +2 -1
  269. package/dist/memory-snapshot.d.ts +2 -1
  270. package/dist/memory-worth-outcomes.d.ts +3 -2
  271. package/dist/models-json.d.ts +2 -1
  272. package/dist/namespaces/migrate.d.ts +4 -3
  273. package/dist/namespaces/migrate.js +16 -15
  274. package/dist/namespaces/principal.d.ts +2 -1
  275. package/dist/namespaces/search.d.ts +2 -1
  276. package/dist/namespaces/search.js +10 -10
  277. package/dist/namespaces/storage.d.ts +4 -3
  278. package/dist/namespaces/storage.js +15 -14
  279. package/dist/native-knowledge.d.ts +2 -1
  280. package/dist/offline-sync-impression-drain.d.ts +2 -1
  281. package/dist/operator-doctor-corpus.d.ts +2 -1
  282. package/dist/operator-doctor-corpus.js +18 -17
  283. package/dist/operator-doctor-replica.d.ts +2 -1
  284. package/dist/operator-toolkit.d.ts +4 -3
  285. package/dist/operator-toolkit.js +29 -26
  286. package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
  287. package/dist/orchestration/maintenance.d.ts +5 -4
  288. package/dist/orchestration/maintenance.js +23 -21
  289. package/dist/{orchestrator-6fPa2l9x.d.ts → orchestrator-DzCaxNS4.d.ts} +8 -8
  290. package/dist/orchestrator.d.ts +10 -9
  291. package/dist/orchestrator.js +92 -89
  292. package/dist/patterns-cli.d.ts +2 -1
  293. package/dist/{pipeline-DHpYtfM3.d.ts → pipeline-HJ8DKbFl.d.ts} +1 -1
  294. package/dist/policy-runtime.d.ts +2 -1
  295. package/dist/proactive-contention.d.ts +2 -1
  296. package/dist/provenance.d.ts +2 -1
  297. package/dist/{public-http-BT36aBb-.d.ts → public-http-DwXauTX3.d.ts} +1 -1
  298. package/dist/{qmd-BaX31tM0.d.ts → qmd-BzxluoLt.d.ts} +1 -1
  299. package/dist/qmd-preflight.d.ts +3 -2
  300. package/dist/qmd-recall-cache.d.ts +2 -1
  301. package/dist/qmd.d.ts +3 -2
  302. package/dist/qmd.js +5 -5
  303. package/dist/recall-concurrency-config.d.ts +2 -1
  304. package/dist/recall-disclosure-escalation.d.ts +2 -1
  305. package/dist/recall-explain-renderer.d.ts +2 -1
  306. package/dist/recall-explain-renderer.js +3 -3
  307. package/dist/recall-memory-map.d.ts +2 -1
  308. package/dist/recall-planner-llm.d.ts +2 -1
  309. package/dist/recall-state.d.ts +2 -1
  310. package/dist/recall-tag-filter.d.ts +2 -1
  311. package/dist/recall-timings.d.ts +2 -1
  312. package/dist/recall-xray-cli.d.ts +2 -1
  313. package/dist/recall-xray-cli.js +4 -4
  314. package/dist/recall-xray-renderer.d.ts +2 -1
  315. package/dist/recall-xray-renderer.js +3 -3
  316. package/dist/recall-xray.d.ts +2 -1
  317. package/dist/recall-xray.js +2 -2
  318. package/dist/reconcile/cursor.d.ts +2 -1
  319. package/dist/reconcile/manifest.d.ts +2 -1
  320. package/dist/reconcile/plan.d.ts +2 -1
  321. package/dist/replay/normalizers/chatgpt.d.ts +2 -1
  322. package/dist/replay/normalizers/claude.d.ts +2 -1
  323. package/dist/replay/normalizers/openclaw.d.ts +2 -1
  324. package/dist/replay/normalizers/shared.d.ts +2 -1
  325. package/dist/replay/runner.d.ts +2 -1
  326. package/dist/replay/types.d.ts +2 -1
  327. package/dist/replica-divergence.d.ts +2 -1
  328. package/dist/replica-peers-config.d.ts +2 -1
  329. package/dist/resolve-auth-token.d.ts +2 -1
  330. package/dist/resume-bundles.js +5 -3
  331. package/dist/retrieval-agents.d.ts +3 -2
  332. package/dist/retrieval-tiers.d.ts +2 -1
  333. package/dist/routing/engine.d.ts +2 -1
  334. package/dist/routing/store.d.ts +2 -1
  335. package/dist/salvage-envelope.d.ts +2 -1
  336. package/dist/schemas.d.ts +30 -30
  337. package/dist/{scope-profiles-1hYWJ9bM.d.ts → scope-profiles-CEMZz0t5.d.ts} +1 -1
  338. package/dist/search/embed-helper.d.ts +2 -1
  339. package/dist/search/factory.d.ts +2 -1
  340. package/dist/search/factory.js +9 -9
  341. package/dist/search/index.d.ts +2 -1
  342. package/dist/search/index.js +13 -13
  343. package/dist/search/lancedb-backend.d.ts +2 -1
  344. package/dist/search/lancedb-backend.js +2 -2
  345. package/dist/search/meilisearch-backend.d.ts +2 -1
  346. package/dist/search/meilisearch-backend.js +2 -2
  347. package/dist/search/noop-backend.d.ts +2 -1
  348. package/dist/search/orama-backend.d.ts +2 -1
  349. package/dist/search/orama-backend.js +2 -2
  350. package/dist/search/port.d.ts +3 -2
  351. package/dist/search/port.js +1 -1
  352. package/dist/search/remote-backend.d.ts +2 -1
  353. package/dist/search/remote-backend.js +2 -2
  354. package/dist/{semantic-consolidation-Chmddvcg.d.ts → semantic-consolidation-D9dYj6vu.d.ts} +1 -1
  355. package/dist/semantic-consolidation.d.ts +3 -2
  356. package/dist/semantic-consolidation.js +16 -15
  357. package/dist/semantic-rule-promotion.js +15 -14
  358. package/dist/semantic-rule-verifier.d.ts +2 -1
  359. package/dist/semantic-rule-verifier.js +15 -14
  360. package/dist/{service-DMs_dCCg.d.ts → service-_qgST_0y.d.ts} +2 -2
  361. package/dist/session-observer-bands.d.ts +2 -1
  362. package/dist/session-observer-state.d.ts +2 -1
  363. package/dist/shared-context/manager.d.ts +2 -1
  364. package/dist/signal.d.ts +2 -1
  365. package/dist/source-agent-qualifier.d.ts +2 -1
  366. package/dist/source-agent-qualifier.js +17 -16
  367. package/dist/{storage-CzorrpcN.d.ts → storage-B9lbNTYE.d.ts} +1 -1
  368. package/dist/storage.d.ts +3 -2
  369. package/dist/storage.js +14 -13
  370. package/dist/summarizer.d.ts +2 -1
  371. package/dist/summarizer.js +3 -3
  372. package/dist/summary-snapshot.d.ts +2 -1
  373. package/dist/support-passport/index.d.ts +15 -14
  374. package/dist/support-passport/index.js +39 -38
  375. package/dist/temporal-supersession.d.ts +3 -2
  376. package/dist/temporal-timeline-recall.d.ts +2 -1
  377. package/dist/temporal-validity.d.ts +2 -1
  378. package/dist/threading.d.ts +2 -1
  379. package/dist/tier-migration.d.ts +3 -2
  380. package/dist/tier-routing.d.ts +2 -1
  381. package/dist/topics.d.ts +2 -1
  382. package/dist/transcript.d.ts +2 -1
  383. package/dist/transfer/types.d.ts +12 -12
  384. package/dist/trust-score-stage.d.ts +2 -1
  385. package/dist/trust-score.d.ts +2 -1
  386. package/dist/{types-BP5MC8UU.d.ts → types-BrEzuxPA.d.ts} +3 -23
  387. package/dist/types-CM86alG1.d.ts +89 -0
  388. package/dist/types.d.ts +2 -1
  389. package/dist/types.js +1 -1
  390. package/dist/utility-runtime.d.ts +2 -1
  391. package/dist/verified-recall.js +15 -14
  392. package/dist/who-knows-cli.d.ts +12 -11
  393. package/dist/who-knows-cli.js +16 -15
  394. package/dist/who-knows.d.ts +12 -11
  395. package/dist/who-knows.js +15 -14
  396. package/dist/write-envelope.d.ts +2 -1
  397. package/package.json +12 -2
  398. package/src/cross-lingual-recall.test.ts +47 -0
  399. package/src/cross-lingual-recall.ts +186 -0
  400. package/src/location/adapter-isolation.test.ts +44 -0
  401. package/src/location/index.ts +16 -0
  402. package/src/orchestration/recall-internal-deps.ts +2 -0
  403. package/src/orchestration/recall-internal.ts +35 -33
  404. package/src/orchestration/recall-search-pipeline.ts +16 -0
  405. package/src/search/port.ts +2 -1
  406. package/src/storage.ts +5 -1
  407. package/src/types.ts +2 -0
  408. package/dist/chunk-2QI2JBLQ.js.map +0 -1
  409. package/dist/chunk-7RAJ3GXO.js.map +0 -1
  410. package/dist/chunk-MJRVF7SF.js.map +0 -1
  411. package/dist/chunk-UMDZXW5J.js.map +0 -1
  412. package/dist/chunk-URS5GSM7.js.map +0 -1
  413. /package/dist/{chunk-5HERQ5FX.js.map → chunk-256FBCVX.js.map} +0 -0
  414. /package/dist/{chunk-GVRLED7R.js.map → chunk-2572MRP2.js.map} +0 -0
  415. /package/dist/{chunk-TY35YQ6E.js.map → chunk-3MADV4YC.js.map} +0 -0
  416. /package/dist/{chunk-XACYILRA.js.map → chunk-3PXVYJMC.js.map} +0 -0
  417. /package/dist/{chunk-DC4FJY2G.js.map → chunk-3RHFGGI5.js.map} +0 -0
  418. /package/dist/{chunk-LOETWOEB.js.map → chunk-3TMYV3LP.js.map} +0 -0
  419. /package/dist/{chunk-XH4IQVTN.js.map → chunk-4W6INNXO.js.map} +0 -0
  420. /package/dist/{chunk-SB6YBB2V.js.map → chunk-53ENM6F6.js.map} +0 -0
  421. /package/dist/{chunk-Z6CJLYXT.js.map → chunk-63FHSH7E.js.map} +0 -0
  422. /package/dist/{chunk-DG6MJD7W.js.map → chunk-6JJT5AKI.js.map} +0 -0
  423. /package/dist/{chunk-7BVO64UC.js.map → chunk-6L27N6YI.js.map} +0 -0
  424. /package/dist/{chunk-YXGU3MDQ.js.map → chunk-7PWWGYGO.js.map} +0 -0
  425. /package/dist/{chunk-CKZHKFY3.js.map → chunk-7QFBLYFP.js.map} +0 -0
  426. /package/dist/{chunk-RWLRKMZK.js.map → chunk-AGKIG3YA.js.map} +0 -0
  427. /package/dist/{chunk-A2IBK3TG.js.map → chunk-ALCJRQ72.js.map} +0 -0
  428. /package/dist/{chunk-44DSGZFF.js.map → chunk-BC4QD3FM.js.map} +0 -0
  429. /package/dist/{chunk-YMOPYG3K.js.map → chunk-BIJAWZYW.js.map} +0 -0
  430. /package/dist/{chunk-KRPE7ANR.js.map → chunk-CCTVAVTT.js.map} +0 -0
  431. /package/dist/{chunk-VYEPACWY.js.map → chunk-CEH2AFXG.js.map} +0 -0
  432. /package/dist/{chunk-XBRGJJK7.js.map → chunk-CEQF6L5K.js.map} +0 -0
  433. /package/dist/{chunk-PVIXAMWM.js.map → chunk-CFRBTATE.js.map} +0 -0
  434. /package/dist/{chunk-UIYYS2YI.js.map → chunk-CTQRPANJ.js.map} +0 -0
  435. /package/dist/{chunk-XZUCNVGE.js.map → chunk-CUS6S7PN.js.map} +0 -0
  436. /package/dist/{chunk-KWIGDKM2.js.map → chunk-D2YNNDML.js.map} +0 -0
  437. /package/dist/{chunk-JCSUNXYJ.js.map → chunk-ESCQ6LY7.js.map} +0 -0
  438. /package/dist/{chunk-652S5A5D.js.map → chunk-EUYWQ7TS.js.map} +0 -0
  439. /package/dist/{chunk-ML3U4KPR.js.map → chunk-GIC6BASP.js.map} +0 -0
  440. /package/dist/{chunk-ZSYE2QVJ.js.map → chunk-GXWDWOWP.js.map} +0 -0
  441. /package/dist/{chunk-55SJFHVD.js.map → chunk-HJQZQUPC.js.map} +0 -0
  442. /package/dist/{chunk-6LTCUN3T.js.map → chunk-HQSBYI5X.js.map} +0 -0
  443. /package/dist/{chunk-H5CGAD7L.js.map → chunk-HQSPXTQO.js.map} +0 -0
  444. /package/dist/{chunk-EJDLQRUO.js.map → chunk-HUNSEO5U.js.map} +0 -0
  445. /package/dist/{chunk-ON2P3SHG.js.map → chunk-IAY7YBXS.js.map} +0 -0
  446. /package/dist/{chunk-MB6GLPRY.js.map → chunk-IVKIODHO.js.map} +0 -0
  447. /package/dist/{chunk-CUIAHZPZ.js.map → chunk-IXRC7EQG.js.map} +0 -0
  448. /package/dist/{chunk-LZKCMK3U.js.map → chunk-JTSVMJHV.js.map} +0 -0
  449. /package/dist/{chunk-WBM5NR4E.js.map → chunk-KPBLJCCV.js.map} +0 -0
  450. /package/dist/{chunk-VLES5S4K.js.map → chunk-LWVO2QZV.js.map} +0 -0
  451. /package/dist/{chunk-NO7B6DRB.js.map → chunk-LYIZXQYY.js.map} +0 -0
  452. /package/dist/{chunk-VUP47UJI.js.map → chunk-MIBKEW7A.js.map} +0 -0
  453. /package/dist/{chunk-OQIRBGUU.js.map → chunk-N37X5RU7.js.map} +0 -0
  454. /package/dist/{chunk-C6AKYOFO.js.map → chunk-N6TRHP72.js.map} +0 -0
  455. /package/dist/{chunk-VANZKHTN.js.map → chunk-NNBZS3DY.js.map} +0 -0
  456. /package/dist/{chunk-2PSX5BJU.js.map → chunk-NZPFCP5A.js.map} +0 -0
  457. /package/dist/{chunk-LTBKKSCX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
  458. /package/dist/{chunk-PD66CVSD.js.map → chunk-OUKBMQ2O.js.map} +0 -0
  459. /package/dist/{chunk-GPFZFCRN.js.map → chunk-PP7R754B.js.map} +0 -0
  460. /package/dist/{chunk-TKI2WOL5.js.map → chunk-R3AAOKR2.js.map} +0 -0
  461. /package/dist/{chunk-RNORDDD6.js.map → chunk-S2VBSTTA.js.map} +0 -0
  462. /package/dist/{chunk-3A46U7XG.js.map → chunk-SYJ6EKKE.js.map} +0 -0
  463. /package/dist/{chunk-YFQTDE7N.js.map → chunk-VJ6ECBIP.js.map} +0 -0
  464. /package/dist/{chunk-IFK3PVM7.js.map → chunk-VPGRXEAB.js.map} +0 -0
  465. /package/dist/{chunk-246HFJVG.js.map → chunk-VZVP2W4O.js.map} +0 -0
  466. /package/dist/{chunk-SHQFYZTD.js.map → chunk-W6TSGWYS.js.map} +0 -0
  467. /package/dist/{chunk-DA2O3F5V.js.map → chunk-WTOE7CW4.js.map} +0 -0
  468. /package/dist/{chunk-IJXECCUV.js.map → chunk-X5SDZMO7.js.map} +0 -0
  469. /package/dist/{chunk-DHKV6E4A.js.map → chunk-Y23B2QXP.js.map} +0 -0
  470. /package/dist/{chunk-PE76XIDM.js.map → chunk-YEQEGSJA.js.map} +0 -0
  471. /package/dist/{chunk-VYISFWVX.js.map → chunk-YQNNHLCG.js.map} +0 -0
  472. /package/dist/{chunk-3LOQN3TO.js.map → chunk-Z54TXZ2F.js.map} +0 -0
  473. /package/dist/{graph-edge-decay-A4SDFMMS.js.map → cross-lingual-recall.js.map} +0 -0
package/dist/lcm/index.js CHANGED
@@ -5,7 +5,11 @@ import {
5
5
  import {
6
6
  LcmEngine,
7
7
  extractLcmConfig
8
- } from "../chunk-5HERQ5FX.js";
8
+ } from "../chunk-256FBCVX.js";
9
+ import {
10
+ ensureLcmStateDir,
11
+ openLcmDatabase
12
+ } from "../chunk-DDA47TES.js";
9
13
  import {
10
14
  LcmSummarizer
11
15
  } from "../chunk-ZPUIRTIZ.js";
@@ -21,10 +25,6 @@ import {
21
25
  assembleCompressedHistory,
22
26
  assembleCompressedHistoryWithTrace
23
27
  } from "../chunk-UXPUUL3G.js";
24
- import {
25
- ensureLcmStateDir,
26
- openLcmDatabase
27
- } from "../chunk-DDA47TES.js";
28
28
  import "../chunk-4RA3C3EV.js";
29
29
  import "../chunk-AQEJKOKI.js";
30
30
  import {
@@ -7,8 +7,9 @@ import './summarizer.js';
7
7
  import './dag.js';
8
8
  import './recall.js';
9
9
  import './queue.js';
10
- import '../types-BP5MC8UU.js';
10
+ import '../types-BrEzuxPA.js';
11
11
  import '../bounded-jsonl-state.js';
12
+ import '../types-CM86alG1.js';
12
13
  import '../operator-doctor-types.js';
13
14
  import '../external-wiki-config.js';
14
15
  import '../contradiction-config.js';
@@ -1,6 +1,7 @@
1
- import { V as LifecycleState, x as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter } from './types-BP5MC8UU.js';
1
+ import { V as LifecycleState, x as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter } from './types-BrEzuxPA.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
1
  import { L as LiveConnector, C as ConnectorConfig, a as ConnectorDocument } from './framework-CNDn2164.js';
2
- import { L as LiveConnectorsConfig } from './types-BP5MC8UU.js';
2
+ import { L as LiveConnectorsConfig } from './types-BrEzuxPA.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';
@@ -1,7 +1,8 @@
1
- import { P as PluginConfig } from './types-BP5MC8UU.js';
1
+ import { P as PluginConfig } from './types-BrEzuxPA.js';
2
2
  import { ModelRegistry } from './model-registry.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';
package/dist/local-llm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  LocalLlmClient
3
- } from "./chunk-MB6GLPRY.js";
4
- import "./chunk-JUXOTY6J.js";
3
+ } from "./chunk-IVKIODHO.js";
5
4
  import "./chunk-WKDFJXW5.js";
5
+ import "./chunk-JUXOTY6J.js";
6
6
  import "./chunk-TOTT6S2V.js";
7
7
  import "./chunk-JUOZ62Y7.js";
8
8
  import "./chunk-O75CRYGF.js";
@@ -1,6 +1,7 @@
1
- import { P as PluginConfig } from './types-BP5MC8UU.js';
1
+ import { P as PluginConfig } from './types-BrEzuxPA.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';
@@ -0,0 +1,295 @@
1
+ import { L as LocationProvider, a as LocationConfig, b as LocationPlace, c as LocationObservation, d as LocationSegment } from '../types-CM86alG1.js';
2
+ export { e as LocationObservationPage, f as LocationProviderCheck, g as LocationSourceConfig } from '../types-CM86alG1.js';
3
+
4
+ /**
5
+ * Location provider registry (issue #2044).
6
+ *
7
+ * In-memory only: host adapters register provider implementations at startup.
8
+ * Core never statically imports an optional provider package — the registry
9
+ * holds whatever the host wired in, and a configured source whose provider is
10
+ * not registered is skipped (not an error), so partial installs keep working.
11
+ */
12
+
13
+ declare function registerLocationProvider(provider: LocationProvider): void;
14
+ declare function getLocationProvider(id: string): LocationProvider | undefined;
15
+ declare function listLocationProviders(): string[];
16
+ /** Test-only: reset the registry between cases. */
17
+ declare function clearLocationProviders(): void;
18
+
19
+ /** The inert default: disabled, UTC days, one day per run, no sources, no coordinates. */
20
+ declare function defaultLocationConfig(): LocationConfig;
21
+ /**
22
+ * Parse the unified `location.*` block. `enabled` gates everything and
23
+ * requires at least one source; a source's own `enabled` gates that source
24
+ * only. `retainCoordinates` defaults to `false` — coordinates are privacy
25
+ * data and are dropped everywhere unless explicitly retained.
26
+ */
27
+ declare function parseLocationConfig(raw: unknown): LocationConfig;
28
+
29
+ /**
30
+ * Location interval math (issue #2044).
31
+ *
32
+ * Pure, deterministic helpers over UTC ISO-8601 instants: half-open
33
+ * [start, end) day windows (reusing the DST-correct activity day-window), IANA
34
+ * local-day bucketing, overlap, observation→segment dwell, and dominant-place
35
+ * selection with stable tie-breaking. No IO, no clocks, no randomness.
36
+ */
37
+
38
+ declare function isValidLocationDate(date: string): boolean;
39
+ /** Half-open [start, end) UTC ISO bounds of a local day. */
40
+ declare function locationDayWindow(date: string, timezone: string): {
41
+ startUtc: string;
42
+ endUtc: string;
43
+ };
44
+ /** The IANA local calendar day (YYYY-MM-DD) an instant falls in. */
45
+ declare function localDayKey(instantUtc: string, timezone: string): string;
46
+ /** Bucket observations into their IANA local days, sorted within each day. */
47
+ declare function bucketObservationsByDay(observations: readonly LocationObservation[], timezone: string): Map<string, LocationObservation[]>;
48
+ /** Overlap in ms of two half-open intervals; 0 when disjoint. */
49
+ declare function intervalOverlapMs(a: {
50
+ startUtc: string;
51
+ endUtc: string;
52
+ }, b: {
53
+ startUtc: string;
54
+ endUtc: string;
55
+ }): number;
56
+ /**
57
+ * Derive place-visit segments from a day's observations: each observation
58
+ * covers [its instant, the next observation's instant ∩ window end). The last
59
+ * observation is capped by the window end, so dwell never crosses the day
60
+ * boundary. Out-of-window observations are a provider contract violation and
61
+ * are rejected loudly rather than silently reshaping the day. Coordinates are
62
+ * stripped unless `retainCoordinates` is set.
63
+ */
64
+ declare function observationSegments(observations: readonly LocationObservation[], window: {
65
+ startUtc: string;
66
+ endUtc: string;
67
+ }, options: {
68
+ retainCoordinates: boolean;
69
+ }): LocationSegment[];
70
+ /** Total time a place was occupied (union of its segment intervals, ms). */
71
+ interface PlaceDuration {
72
+ place: LocationPlace;
73
+ totalMs: number;
74
+ /** Earliest segment start contributing to this place's total. */
75
+ firstStartUtc: string;
76
+ }
77
+ /** Per-place totals across every segment given (multi-source safe). */
78
+ declare function placeDurations(segments: readonly LocationSegment[]): PlaceDuration[];
79
+ interface DominantPlaceResult {
80
+ place: LocationPlace;
81
+ totalMs: number;
82
+ }
83
+ /**
84
+ * The place with the longest total occupancy. Ties are stable and
85
+ * deterministic: earlier first start wins, then the lexicographically smaller
86
+ * place id — never insertion order.
87
+ */
88
+ declare function dominantPlace(segments: readonly LocationSegment[]): DominantPlaceResult | null;
89
+
90
+ /**
91
+ * Location day-file + sync-state store (issue #2044).
92
+ *
93
+ * Day documents live at `<memoryDir>/locations/<YYYY-MM-DD>.md` — OUTSIDE the
94
+ * memory scan roots (facts/, entities/, …) so raw location history never
95
+ * surfaces as a memory in recall or governance passes, and INSIDE the QMD
96
+ * collection root so the markdown stays full-text searchable once an index
97
+ * update runs. Per-source sync state lives at
98
+ * `<memoryDir>/state/locations/sync.json` and is written only after the day
99
+ * document is durable (see pipeline.ts).
100
+ *
101
+ * Both writes are atomic (temp file + rename) and containment-checked: a
102
+ * symlinked `locations/` root or day file is rejected even when it resolves
103
+ * inside the memory dir (AGENTS.md pattern #3), and a path that escapes the
104
+ * memory dir is refused outright.
105
+ */
106
+
107
+ declare const LOCATIONS_DIR_NAME = "locations";
108
+ declare const LOCATION_DAY_KIND = "location-day";
109
+ declare const LOCATION_DAY_FORMAT_VERSION = 1;
110
+ declare function locationDayFilePath(memoryDir: string, date: string): string;
111
+ declare function locationSyncStateFilePath(memoryDir: string): string;
112
+ /** A source's derived day payload, kept in sync state for multi-source merges. */
113
+ interface LocationSourceDayPayload {
114
+ observationCount: number;
115
+ segments: LocationSegment[];
116
+ providerDisplayName?: string;
117
+ }
118
+ interface LocationSourceSyncState {
119
+ lastSyncedAtUtc?: string;
120
+ days?: Record<string, LocationSourceDayPayload>;
121
+ }
122
+ interface LocationSyncStateFile {
123
+ version: 1;
124
+ sources: Record<string, LocationSourceSyncState>;
125
+ }
126
+ declare function emptyLocationSyncState(): LocationSyncStateFile;
127
+ declare function loadLocationSyncState(memoryDir: string): Promise<LocationSyncStateFile>;
128
+ declare function saveLocationSyncState(memoryDir: string, state: LocationSyncStateFile): Promise<void>;
129
+ /**
130
+ * Record one source's completed day sync. Runs the whole read-modify-write
131
+ * under the per-directory state lock so concurrent sources cannot clobber
132
+ * each other, and prunes day payloads beyond the retention cap.
133
+ */
134
+ declare function updateLocationSourceDay(memoryDir: string, sourceId: string, date: string, payload: LocationSourceDayPayload, completedAtUtc: string): Promise<LocationSyncStateFile>;
135
+ /** Frontmatter persisted on a rendered day document. */
136
+ interface LocationDayMeta {
137
+ kind: typeof LOCATION_DAY_KIND;
138
+ date: string;
139
+ timezone: string;
140
+ formatVersion: number;
141
+ sources: string[];
142
+ observationCount: number;
143
+ /** SHA-256 of the rendered body (rebuild idempotency). */
144
+ contentHash: string;
145
+ }
146
+ /** A parsed day document (frontmatter + rendered body). */
147
+ interface LocationDayDocument {
148
+ meta: LocationDayMeta;
149
+ body: string;
150
+ }
151
+ /** The per-source view a day document is composed from. */
152
+ interface LocationDaySourceEntry extends LocationSourceDayPayload {
153
+ /** Provider display name for the timeline heading; falls back to the id. */
154
+ providerDisplayName?: string;
155
+ }
156
+ declare function hashLocationBody(body: string): string;
157
+ declare function composeLocationDayBody(date: string, timezone: string, sources: Record<string, LocationDaySourceEntry>): string;
158
+ declare function composeLocationDayMeta(date: string, timezone: string, sources: Record<string, LocationDaySourceEntry>, body: string): LocationDayMeta;
159
+ declare function serializeLocationDay(meta: LocationDayMeta, body: string): string;
160
+ /** A day document's frontmatter, parsed for idempotency checks and status. */
161
+ interface LocationDaySummary {
162
+ date: string;
163
+ timezone: string;
164
+ sources: string[];
165
+ observationCount: number;
166
+ contentHash: string;
167
+ }
168
+ /**
169
+ * Parse a day document's frontmatter. Returns null when the content is not a
170
+ * location day document (wrong kind, missing frontmatter) so callers can
171
+ * distinguish a foreign file from a corrupt one.
172
+ */
173
+ declare function parseLocationDaySummary(raw: string): LocationDaySummary | null;
174
+ /**
175
+ * Idempotently persist a day document: skip the write when the on-disk
176
+ * contentHash already matches. The write is atomic and containment-checked;
177
+ * the caller (pipeline) advances sync state only after this resolves.
178
+ */
179
+ declare function writeLocationDay(memoryDir: string, date: string, serialized: string): Promise<boolean>;
180
+ /** Read a stored day document's raw markdown; null when absent. */
181
+ declare function readLocationDay(memoryDir: string, date: string): Promise<string | null>;
182
+ /** List dates that have a stored day document, newest first. */
183
+ declare function listLocationDayDates(memoryDir: string): Promise<string[]>;
184
+
185
+ /**
186
+ * Location day-sync pipeline (issue #2044).
187
+ *
188
+ * For one local day, each configured (enabled, registered) provider's
189
+ * observations are fetched over the day's half-open UTC window, folded into
190
+ * place-visit segments, merged with the other sources' last-known day
191
+ * payloads from sync state, and rendered to the day document. Sync state
192
+ * advances only AFTER the day document (when any) is durable, so a failed
193
+ * write never moves the watermark past data that did not land. An empty
194
+ * fetch is a successful sync — never conflated with a provider failure
195
+ * (AGENTS.md rule 22).
196
+ */
197
+
198
+ interface LocationDaySyncOptions {
199
+ config: LocationConfig;
200
+ memoryDir: string;
201
+ date: string;
202
+ signal?: AbortSignal;
203
+ /** Runaway-pagination guard; defaults to MAX_SYNC_PAGES. */
204
+ maxPages?: number;
205
+ now?: () => Date;
206
+ /** Provider lookup seam (defaults to the registry); tests inject doubles. */
207
+ getProvider?: (id: string) => LocationProvider | undefined;
208
+ }
209
+ interface LocationSourceSyncResult {
210
+ sourceId: string;
211
+ status: "synced" | "skipped" | "failed";
212
+ skipReason?: "source-disabled" | "provider-not-registered";
213
+ fetched: number;
214
+ dayWritten: boolean;
215
+ stateSaved: boolean;
216
+ /** Sanitized provider error (no tokens, URLs, or coordinates). */
217
+ error?: string;
218
+ }
219
+ /** Redact credential, URL query, and coordinate shapes from a provider error. */
220
+ declare function sanitizeProviderError(error: unknown): string;
221
+ /**
222
+ * Sync every configured source for one local day. The master gate
223
+ * (`config.enabled === false`) short-circuits every path: no providers are
224
+ * contacted and nothing touches the filesystem. A provider failure fails
225
+ * that source only (state not advanced) and never blocks the others.
226
+ */
227
+ declare function syncLocationDay(options: LocationDaySyncOptions): Promise<LocationSourceSyncResult[]>;
228
+
229
+ /**
230
+ * Location surface helpers (issue #2044): status, provider health checks, and
231
+ * multi-day sync. Pure `@remnic/core` — no optional packages, no host CLI
232
+ * wiring; a host adapter (or the core CLI, in a later slice) renders these
233
+ * structured results into its own command surface.
234
+ */
235
+
236
+ interface LocationSourceStatus {
237
+ id: string;
238
+ enabled: boolean;
239
+ providerRegistered: boolean;
240
+ lastSyncedAtUtc?: string;
241
+ trackedDays: number;
242
+ }
243
+ interface LocationDayStatus {
244
+ date: string;
245
+ sources: string[];
246
+ observationCount: number;
247
+ }
248
+ interface LocationStatusReport {
249
+ enabled: boolean;
250
+ timezone: string;
251
+ sources: LocationSourceStatus[];
252
+ /** Stored day documents, newest first (at most `maxDays`). */
253
+ recentDays: LocationDayStatus[];
254
+ }
255
+ interface LocationStatusOptions {
256
+ /** Provider lookup seam (defaults to the registry); tests inject doubles. */
257
+ getProvider?: (id: string) => LocationProvider | undefined;
258
+ /** Cap on day documents listed; defaults to 7. */
259
+ maxDays?: number;
260
+ now?: () => Date;
261
+ }
262
+ declare function locationStatus(config: LocationConfig, memoryDir: string, options?: LocationStatusOptions): Promise<LocationStatusReport>;
263
+ interface LocationSourceCheckResult {
264
+ id: string;
265
+ ok: boolean;
266
+ detail?: string;
267
+ skipped?: "location-disabled" | "source-disabled" | "provider-not-registered";
268
+ }
269
+ interface LocationCheckOptions {
270
+ signal?: AbortSignal;
271
+ getProvider?: (id: string) => LocationProvider | undefined;
272
+ }
273
+ /** Probe every configured provider's health. The master gate short-circuits. */
274
+ declare function checkLocationSources(config: LocationConfig, options?: LocationCheckOptions): Promise<LocationSourceCheckResult[]>;
275
+ interface LocationSyncRunOptions extends Omit<LocationDaySyncOptions, "config" | "date" | "memoryDir"> {
276
+ config: LocationConfig;
277
+ memoryDir: string;
278
+ /** Exclusive end date (local YYYY-MM-DD); defaults to today in config.timezone. */
279
+ endDate?: string;
280
+ /** Number of days to sync ending at endDate; defaults to config.syncDays. */
281
+ days?: number;
282
+ now?: () => Date;
283
+ }
284
+ /**
285
+ * Sync the trailing `days` local days ending AT `endDate` (inclusive).
286
+ * `endDate` defaults to yesterday in config.timezone (today is incomplete);
287
+ * days run oldest-first so a failure stops before newer days, matching the
288
+ * incremental-sync intent of `syncDays`.
289
+ */
290
+ declare function syncLocation(options: LocationSyncRunOptions): Promise<Array<{
291
+ date: string;
292
+ results: LocationSourceSyncResult[];
293
+ }>>;
294
+
295
+ export { type DominantPlaceResult, LOCATIONS_DIR_NAME, LOCATION_DAY_FORMAT_VERSION, LOCATION_DAY_KIND, type LocationCheckOptions, LocationConfig, type LocationDayDocument, type LocationDayMeta, type LocationDaySourceEntry, type LocationDayStatus, type LocationDaySummary, type LocationDaySyncOptions, LocationObservation, LocationPlace, LocationProvider, LocationSegment, type LocationSourceCheckResult, type LocationSourceDayPayload, type LocationSourceStatus, type LocationSourceSyncResult, type LocationSourceSyncState, type LocationStatusOptions, type LocationStatusReport, type LocationSyncRunOptions, type LocationSyncStateFile, type PlaceDuration, bucketObservationsByDay, checkLocationSources, clearLocationProviders, composeLocationDayBody, composeLocationDayMeta, defaultLocationConfig, dominantPlace, emptyLocationSyncState, getLocationProvider, hashLocationBody, intervalOverlapMs, isValidLocationDate, listLocationDayDates, listLocationProviders, loadLocationSyncState, localDayKey, locationDayFilePath, locationDayWindow, locationStatus, locationSyncStateFilePath, observationSegments, parseLocationConfig, parseLocationDaySummary, placeDurations, readLocationDay, registerLocationProvider, sanitizeProviderError, saveLocationSyncState, serializeLocationDay, syncLocation, syncLocationDay, updateLocationSourceDay, writeLocationDay };