@remnic/core 9.3.704 → 9.3.706

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 (332) hide show
  1. package/dist/access-boundary.d.ts +6 -6
  2. package/dist/access-boundary.js +29 -29
  3. package/dist/access-cli.js +59 -57
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-http.d.ts +5 -5
  6. package/dist/access-http.js +34 -33
  7. package/dist/access-mcp.d.ts +5 -5
  8. package/dist/access-mcp.js +33 -32
  9. package/dist/access-operations-batch.d.ts +2 -0
  10. package/dist/access-operations-batch.js +120 -0
  11. package/dist/access-operations.d.ts +6 -5
  12. package/dist/access-operations.js +32 -31
  13. package/dist/access-schema.js +3 -3
  14. package/dist/{access-service-C8hc8N2i.d.ts → access-service-j1c1gptF.d.ts} +3 -3
  15. package/dist/access-service.d.ts +5 -5
  16. package/dist/access-service.js +28 -28
  17. package/dist/access-surface-catalog.d.ts +5 -5
  18. package/dist/access-surface-catalog.js +57 -54
  19. package/dist/access-surface-catalog.js.map +1 -1
  20. package/dist/action-confidence.d.ts +1 -1
  21. package/dist/active-memory-bridge.d.ts +1 -1
  22. package/dist/active-recall.d.ts +1 -1
  23. package/dist/{auto-sync-3AAP25FV.js → auto-sync-24NNS3GU.js} +3 -3
  24. package/dist/behavior-learner.d.ts +1 -1
  25. package/dist/behavior-signals.d.ts +1 -1
  26. package/dist/bootstrap.d.ts +4 -4
  27. package/dist/briefing.d.ts +1 -1
  28. package/dist/briefing.js +7 -7
  29. package/dist/buffer-surprise-report.d.ts +1 -1
  30. package/dist/buffer.d.ts +1 -1
  31. package/dist/calibration.d.ts +1 -1
  32. package/dist/capabilities.d.ts +1 -1
  33. package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
  34. package/dist/capsule-crypto-7FJQINUR.js.map +1 -0
  35. package/dist/{catalog-CAeU0e1C.d.ts → catalog-CKxilpzS.d.ts} +1 -1
  36. package/dist/causal-behavior.d.ts +1 -1
  37. package/dist/causal-behavior.js +5 -5
  38. package/dist/causal-chain.js +3 -3
  39. package/dist/causal-consolidation.d.ts +1 -1
  40. package/dist/causal-consolidation.js +11 -11
  41. package/dist/causal-retrieval.js +3 -3
  42. package/dist/causal-trajectory-graph.js +2 -2
  43. package/dist/causal-trajectory.js +1 -1
  44. package/dist/{chunk-CTY6QSLZ.js → chunk-24FGNOQS.js} +4 -4
  45. package/dist/{chunk-CTY6QSLZ.js.map → chunk-24FGNOQS.js.map} +1 -1
  46. package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
  47. package/dist/{chunk-NMW3T6T6.js → chunk-2VQYHHWB.js} +17 -11
  48. package/dist/chunk-2VQYHHWB.js.map +1 -0
  49. package/dist/{chunk-7G4KPGR3.js → chunk-3PTOZJOI.js} +2 -2
  50. package/dist/{chunk-PJ5MDXOF.js → chunk-4DZATVK5.js} +10 -10
  51. package/dist/{chunk-UOIRJ45Z.js → chunk-4E2QCH46.js} +2 -2
  52. package/dist/{chunk-KKK7YTYN.js → chunk-5GSUBCZM.js} +6 -2
  53. package/dist/chunk-5GSUBCZM.js.map +1 -0
  54. package/dist/{chunk-RYDT7LAI.js → chunk-66TSLESZ.js} +2 -2
  55. package/dist/chunk-66TSLESZ.js.map +1 -0
  56. package/dist/{chunk-IREVVFTM.js → chunk-6CIAGZ6X.js} +9 -1
  57. package/dist/chunk-6CIAGZ6X.js.map +1 -0
  58. package/dist/{chunk-QHNJVWF6.js → chunk-6HPJMR5I.js} +6 -6
  59. package/dist/{chunk-4NFVPDIL.js → chunk-74MYJSKB.js} +5 -5
  60. package/dist/{chunk-PKMQK2WY.js → chunk-773DPI6T.js} +4 -4
  61. package/dist/{chunk-AGNBY3VG.js → chunk-APJQ6UEA.js} +4 -4
  62. package/dist/{chunk-UNNDFYUX.js → chunk-ARV3AUOM.js} +5 -5
  63. package/dist/{chunk-XXDOJ5NL.js → chunk-BGAHTI4C.js} +7 -7
  64. package/dist/{chunk-6GHWF4QH.js → chunk-C63MK3WL.js} +2 -2
  65. package/dist/{chunk-VKJHM6PL.js → chunk-DGTDRIUO.js} +5 -5
  66. package/dist/{chunk-25FHSOEB.js → chunk-EJDAXR7O.js} +60 -6
  67. package/dist/chunk-EJDAXR7O.js.map +1 -0
  68. package/dist/{chunk-K7QRDDSR.js → chunk-ESMY4RJ4.js} +5 -5
  69. package/dist/{chunk-YLB7NMLD.js → chunk-GKI6LX5L.js} +2 -2
  70. package/dist/{chunk-TUPNAHHQ.js → chunk-HIV5E57C.js} +2 -2
  71. package/dist/{chunk-YOI3ELXF.js → chunk-IF362TF6.js} +2 -2
  72. package/dist/{chunk-SFOAQQDJ.js → chunk-IONFO7UK.js} +3 -3
  73. package/dist/{chunk-AE3C4PY6.js → chunk-IVCQW4C4.js} +2 -2
  74. package/dist/{chunk-6AFVIOVZ.js → chunk-K22IJO4R.js} +2 -2
  75. package/dist/{chunk-5W7CTZ2E.js → chunk-KQAFEZQX.js} +4 -4
  76. package/dist/chunk-M7R5R6OJ.js +355 -0
  77. package/dist/chunk-M7R5R6OJ.js.map +1 -0
  78. package/dist/{chunk-IX3UQT4H.js → chunk-MLLTU5FX.js} +1 -1
  79. package/dist/chunk-MLLTU5FX.js.map +1 -0
  80. package/dist/{chunk-ORXVO6TH.js → chunk-MRX6ZXHZ.js} +6 -6
  81. package/dist/chunk-N75N5SNX.js +1303 -0
  82. package/dist/chunk-N75N5SNX.js.map +1 -0
  83. package/dist/{chunk-S24J5LLQ.js → chunk-NM6TSEGQ.js} +3 -3
  84. package/dist/{chunk-QDIVMS25.js → chunk-NUWZFSKC.js} +2 -2
  85. package/dist/{chunk-53EEQYE5.js → chunk-OMSTU233.js} +4 -4
  86. package/dist/{chunk-R64MNFPV.js → chunk-PDJQVAGM.js} +114 -77
  87. package/dist/chunk-PDJQVAGM.js.map +1 -0
  88. package/dist/{chunk-WAHI7SPK.js → chunk-RH2OSRQY.js} +2 -2
  89. package/dist/{chunk-YTMDF6S7.js → chunk-SPETAWFE.js} +2 -2
  90. package/dist/{chunk-ZXFNSKPY.js → chunk-STYMKPFT.js} +34 -34
  91. package/dist/{chunk-OMNTQPZO.js → chunk-TKZ3AL5V.js} +2 -2
  92. package/dist/{chunk-ABCGDW3A.js → chunk-VYZNWH4J.js} +40 -9
  93. package/dist/chunk-VYZNWH4J.js.map +1 -0
  94. package/dist/{chunk-QV5WFNZ2.js → chunk-W2S3Z5MT.js} +2 -2
  95. package/dist/{chunk-OCFNG4LB.js → chunk-W2WQ4LE7.js} +2 -2
  96. package/dist/{chunk-DE2OPIQD.js → chunk-WDH3KUZU.js} +6 -6
  97. package/dist/{chunk-3EHCV6YV.js → chunk-WQADZ3ZY.js} +67 -67
  98. package/dist/{chunk-OOEVMJK4.js → chunk-WSWYIKXX.js} +6 -6
  99. package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
  100. package/dist/{chunk-WN4GHSDH.js → chunk-XKMDDM7P.js} +2 -2
  101. package/dist/{chunk-6Q7JFY4P.js → chunk-Y6YHAGQP.js} +2 -2
  102. package/dist/{chunk-KF74X62T.js → chunk-YGKUAX2B.js} +4 -4
  103. package/dist/{chunk-YN4ZT4CW.js → chunk-YI7RZO7Y.js} +1 -1
  104. package/dist/{cli-ChE0XlJY.d.ts → cli-CbT-pyM4.d.ts} +3 -3
  105. package/dist/cli.d.ts +6 -6
  106. package/dist/cli.js +58 -57
  107. package/dist/compounding/engine.d.ts +1 -1
  108. package/dist/compounding/engine.js +7 -7
  109. package/dist/compounding/preference-consolidator.d.ts +1 -1
  110. package/dist/compression-optimizer.d.ts +1 -1
  111. package/dist/config.d.ts +1 -1
  112. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  113. package/dist/connectors/codex-materialize-runner.js +7 -7
  114. package/dist/connectors/codex-materialize.d.ts +1 -1
  115. package/dist/connectors/index.d.ts +1 -1
  116. package/dist/connectors/index.js +7 -7
  117. package/dist/consolidation-provenance-check.d.ts +1 -1
  118. package/dist/consolidation-undo.d.ts +1 -1
  119. package/dist/contradiction/index.d.ts +1 -1
  120. package/dist/conversation-index/backend.d.ts +1 -1
  121. package/dist/conversation-index/chunker.d.ts +1 -1
  122. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  123. package/dist/conversation-index/indexer.d.ts +1 -1
  124. package/dist/conversation-index/search.d.ts +1 -1
  125. package/dist/day-summary.d.ts +1 -1
  126. package/dist/delinearize.d.ts +1 -1
  127. package/dist/direct-answer-wiring.d.ts +1 -1
  128. package/dist/direct-answer.d.ts +1 -1
  129. package/dist/embedding-fallback.d.ts +1 -1
  130. package/dist/enrichment/index.d.ts +1 -1
  131. package/dist/entity-retrieval.d.ts +1 -1
  132. package/dist/entity-retrieval.js +7 -7
  133. package/dist/entity-schema.d.ts +1 -1
  134. package/dist/event-time.d.ts +35 -1
  135. package/dist/event-time.js +6 -320
  136. package/dist/event-time.js.map +1 -1
  137. package/dist/explicit-capture.d.ts +4 -4
  138. package/dist/extraction-faithfulness.d.ts +1 -1
  139. package/dist/extraction-judge-telemetry.d.ts +1 -1
  140. package/dist/extraction-judge-training.d.ts +1 -1
  141. package/dist/extraction-judge.d.ts +1 -1
  142. package/dist/extraction.d.ts +10 -1
  143. package/dist/extraction.js +3 -3
  144. package/dist/fallback-llm.d.ts +1 -1
  145. package/dist/{forget-6SOIPUMQ.js → forget-U66KPDPY.js} +3 -3
  146. package/dist/{graph-edge-decay-D7OESCBR.js → graph-edge-decay-JLOF3YW4.js} +3 -3
  147. package/dist/graph-snapshot.js +3 -3
  148. package/dist/graph.js +2 -2
  149. package/dist/identity-continuity.d.ts +1 -1
  150. package/dist/importance.d.ts +1 -1
  151. package/dist/index.d.ts +9 -9
  152. package/dist/index.js +103 -101
  153. package/dist/index.js.map +1 -1
  154. package/dist/intent.d.ts +1 -1
  155. package/dist/lcm/engine.d.ts +1 -1
  156. package/dist/lcm/engine.js +2 -2
  157. package/dist/lcm/index.d.ts +1 -1
  158. package/dist/lcm/index.js +4 -4
  159. package/dist/lcm/tools.d.ts +1 -1
  160. package/dist/lifecycle.d.ts +1 -1
  161. package/dist/live-connectors-runner.d.ts +1 -1
  162. package/dist/local-llm.d.ts +1 -1
  163. package/dist/maintenance/memory-governance.d.ts +1 -1
  164. package/dist/maintenance/memory-governance.js +8 -8
  165. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -7
  166. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  167. package/dist/mcp-memory-inspector-app.d.ts +5 -5
  168. package/dist/memory-action-policy.d.ts +1 -1
  169. package/dist/memory-cache.d.ts +1 -1
  170. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  171. package/dist/memory-projection-store.d.ts +1 -1
  172. package/dist/memory-provenance.d.ts +1 -1
  173. package/dist/memory-worth-outcomes.d.ts +1 -1
  174. package/dist/models-json.d.ts +1 -1
  175. package/dist/namespaces/migrate.d.ts +2 -2
  176. package/dist/namespaces/migrate.js +11 -11
  177. package/dist/namespaces/principal.d.ts +1 -1
  178. package/dist/namespaces/search.d.ts +1 -1
  179. package/dist/namespaces/search.js +3 -3
  180. package/dist/namespaces/storage.d.ts +2 -2
  181. package/dist/namespaces/storage.js +7 -7
  182. package/dist/native-knowledge.d.ts +1 -1
  183. package/dist/operator-toolkit.d.ts +1 -1
  184. package/dist/operator-toolkit.js +18 -18
  185. package/dist/orchestration/maintenance.d.ts +2 -2
  186. package/dist/orchestration/maintenance.js +9 -9
  187. package/dist/{orchestrator-m_PnhyHj.d.ts → orchestrator-D4ovYV3x.d.ts} +3 -3
  188. package/dist/orchestrator.d.ts +4 -4
  189. package/dist/orchestrator.js +46 -45
  190. package/dist/patterns-cli.d.ts +1 -1
  191. package/dist/policy-runtime.d.ts +1 -1
  192. package/dist/provenance.d.ts +1 -1
  193. package/dist/qmd-recall-cache.d.ts +1 -1
  194. package/dist/qmd.d.ts +1 -1
  195. package/dist/recall-disclosure-escalation.d.ts +1 -1
  196. package/dist/recall-explain-renderer.d.ts +1 -1
  197. package/dist/recall-explain-renderer.js +3 -3
  198. package/dist/recall-planner-llm.d.ts +1 -1
  199. package/dist/recall-state.d.ts +1 -1
  200. package/dist/recall-tag-filter.d.ts +1 -1
  201. package/dist/recall-xray-cli.d.ts +1 -1
  202. package/dist/recall-xray-cli.js +4 -4
  203. package/dist/recall-xray-renderer.d.ts +1 -1
  204. package/dist/recall-xray-renderer.js +3 -3
  205. package/dist/recall-xray.d.ts +1 -1
  206. package/dist/recall-xray.js +2 -2
  207. package/dist/resolve-auth-token.d.ts +1 -1
  208. package/dist/resume-bundles.js +1 -1
  209. package/dist/retrieval-agents.d.ts +1 -1
  210. package/dist/retrieval-tiers.d.ts +1 -1
  211. package/dist/routing/engine.d.ts +1 -1
  212. package/dist/routing/store.d.ts +1 -1
  213. package/dist/schemas.d.ts +38 -0
  214. package/dist/schemas.js +1 -1
  215. package/dist/search/embed-helper.d.ts +1 -1
  216. package/dist/search/factory.d.ts +1 -1
  217. package/dist/search/factory.js +2 -2
  218. package/dist/search/index.d.ts +1 -1
  219. package/dist/search/index.js +4 -4
  220. package/dist/search/lancedb-backend.d.ts +1 -1
  221. package/dist/search/meilisearch-backend.d.ts +1 -1
  222. package/dist/search/noop-backend.d.ts +1 -1
  223. package/dist/search/orama-backend.d.ts +1 -1
  224. package/dist/search/port.d.ts +1 -1
  225. package/dist/search/remote-backend.d.ts +1 -1
  226. package/dist/{semantic-consolidation-DVBbq6Wr.d.ts → semantic-consolidation-DyMUCsfN.d.ts} +1 -1
  227. package/dist/semantic-consolidation.d.ts +2 -2
  228. package/dist/semantic-consolidation.js +9 -9
  229. package/dist/semantic-rule-promotion.js +7 -7
  230. package/dist/semantic-rule-verifier.d.ts +1 -1
  231. package/dist/semantic-rule-verifier.js +8 -8
  232. package/dist/session-observer-bands.d.ts +1 -1
  233. package/dist/session-observer-state.d.ts +1 -1
  234. package/dist/shared-context/manager.d.ts +1 -1
  235. package/dist/signal.d.ts +1 -1
  236. package/dist/storage.d.ts +5 -1
  237. package/dist/storage.js +6 -6
  238. package/dist/summarizer.d.ts +1 -1
  239. package/dist/summary-snapshot.d.ts +1 -1
  240. package/dist/temporal-supersession.d.ts +1 -1
  241. package/dist/temporal-supersession.js +2 -2
  242. package/dist/temporal-validity.d.ts +2 -2
  243. package/dist/temporal-validity.js +1 -1
  244. package/dist/threading.d.ts +1 -1
  245. package/dist/tier-migration.d.ts +1 -1
  246. package/dist/tier-routing.d.ts +1 -1
  247. package/dist/topics.d.ts +1 -1
  248. package/dist/transcript.d.ts +1 -1
  249. package/dist/transfer/backup.js +2 -2
  250. package/dist/transfer/capsule-export.js +2 -2
  251. package/dist/transfer/capsule-import.js +2 -2
  252. package/dist/transfer/import-sqlite.js +2 -2
  253. package/dist/{types-CJrvHJjx.d.ts → types-Couvz-L3.d.ts} +12 -2
  254. package/dist/types.d.ts +1 -1
  255. package/dist/types.js +1 -1
  256. package/dist/utility-runtime.d.ts +1 -1
  257. package/dist/verified-recall.js +8 -8
  258. package/package.json +2 -2
  259. package/src/access-boundary.ts +102 -1
  260. package/src/access-http.ts +54 -0
  261. package/src/access-operations-batch.ts +1468 -0
  262. package/src/access-operations.ts +4 -0
  263. package/src/access-surface-catalog.test.ts +17 -1
  264. package/src/access-surface-catalog.ts +57 -54
  265. package/src/event-time.ts +73 -0
  266. package/src/extraction-eventtime-wiring.test.ts +269 -0
  267. package/src/extraction.ts +50 -3
  268. package/src/orchestrator.ts +71 -17
  269. package/src/schemas.ts +12 -0
  270. package/src/storage-contract/atomicity.test.ts +113 -0
  271. package/src/storage-contract/cache-coherence.test.ts +100 -0
  272. package/src/storage-contract/content-hash.test.ts +102 -0
  273. package/src/storage-contract/failure-semantics.test.ts +108 -0
  274. package/src/storage-contract/harness.ts +148 -0
  275. package/src/storage-contract/namespace-routing.test.ts +135 -0
  276. package/src/storage-contract/round-trip.test.ts +226 -0
  277. package/src/storage-contract/surface.test.ts +90 -0
  278. package/src/storage-contract/versioning.test.ts +139 -0
  279. package/src/storage.ts +13 -2
  280. package/src/temporal-validity.test.ts +33 -0
  281. package/src/temporal-validity.ts +24 -1
  282. package/src/types.ts +12 -2
  283. package/dist/chunk-25FHSOEB.js.map +0 -1
  284. package/dist/chunk-ABCGDW3A.js.map +0 -1
  285. package/dist/chunk-IREVVFTM.js.map +0 -1
  286. package/dist/chunk-IX3UQT4H.js.map +0 -1
  287. package/dist/chunk-KKK7YTYN.js.map +0 -1
  288. package/dist/chunk-NMW3T6T6.js.map +0 -1
  289. package/dist/chunk-R64MNFPV.js.map +0 -1
  290. package/dist/chunk-RYDT7LAI.js.map +0 -1
  291. /package/dist/{capsule-crypto-GWVG7LGC.js.map → access-operations-batch.js.map} +0 -0
  292. /package/dist/{auto-sync-3AAP25FV.js.map → auto-sync-24NNS3GU.js.map} +0 -0
  293. /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
  294. /package/dist/{chunk-7G4KPGR3.js.map → chunk-3PTOZJOI.js.map} +0 -0
  295. /package/dist/{chunk-PJ5MDXOF.js.map → chunk-4DZATVK5.js.map} +0 -0
  296. /package/dist/{chunk-UOIRJ45Z.js.map → chunk-4E2QCH46.js.map} +0 -0
  297. /package/dist/{chunk-QHNJVWF6.js.map → chunk-6HPJMR5I.js.map} +0 -0
  298. /package/dist/{chunk-4NFVPDIL.js.map → chunk-74MYJSKB.js.map} +0 -0
  299. /package/dist/{chunk-PKMQK2WY.js.map → chunk-773DPI6T.js.map} +0 -0
  300. /package/dist/{chunk-AGNBY3VG.js.map → chunk-APJQ6UEA.js.map} +0 -0
  301. /package/dist/{chunk-UNNDFYUX.js.map → chunk-ARV3AUOM.js.map} +0 -0
  302. /package/dist/{chunk-XXDOJ5NL.js.map → chunk-BGAHTI4C.js.map} +0 -0
  303. /package/dist/{chunk-6GHWF4QH.js.map → chunk-C63MK3WL.js.map} +0 -0
  304. /package/dist/{chunk-VKJHM6PL.js.map → chunk-DGTDRIUO.js.map} +0 -0
  305. /package/dist/{chunk-K7QRDDSR.js.map → chunk-ESMY4RJ4.js.map} +0 -0
  306. /package/dist/{chunk-YLB7NMLD.js.map → chunk-GKI6LX5L.js.map} +0 -0
  307. /package/dist/{chunk-TUPNAHHQ.js.map → chunk-HIV5E57C.js.map} +0 -0
  308. /package/dist/{chunk-YOI3ELXF.js.map → chunk-IF362TF6.js.map} +0 -0
  309. /package/dist/{chunk-SFOAQQDJ.js.map → chunk-IONFO7UK.js.map} +0 -0
  310. /package/dist/{chunk-AE3C4PY6.js.map → chunk-IVCQW4C4.js.map} +0 -0
  311. /package/dist/{chunk-6AFVIOVZ.js.map → chunk-K22IJO4R.js.map} +0 -0
  312. /package/dist/{chunk-5W7CTZ2E.js.map → chunk-KQAFEZQX.js.map} +0 -0
  313. /package/dist/{chunk-ORXVO6TH.js.map → chunk-MRX6ZXHZ.js.map} +0 -0
  314. /package/dist/{chunk-S24J5LLQ.js.map → chunk-NM6TSEGQ.js.map} +0 -0
  315. /package/dist/{chunk-QDIVMS25.js.map → chunk-NUWZFSKC.js.map} +0 -0
  316. /package/dist/{chunk-53EEQYE5.js.map → chunk-OMSTU233.js.map} +0 -0
  317. /package/dist/{chunk-WAHI7SPK.js.map → chunk-RH2OSRQY.js.map} +0 -0
  318. /package/dist/{chunk-YTMDF6S7.js.map → chunk-SPETAWFE.js.map} +0 -0
  319. /package/dist/{chunk-ZXFNSKPY.js.map → chunk-STYMKPFT.js.map} +0 -0
  320. /package/dist/{chunk-OMNTQPZO.js.map → chunk-TKZ3AL5V.js.map} +0 -0
  321. /package/dist/{chunk-QV5WFNZ2.js.map → chunk-W2S3Z5MT.js.map} +0 -0
  322. /package/dist/{chunk-OCFNG4LB.js.map → chunk-W2WQ4LE7.js.map} +0 -0
  323. /package/dist/{chunk-DE2OPIQD.js.map → chunk-WDH3KUZU.js.map} +0 -0
  324. /package/dist/{chunk-3EHCV6YV.js.map → chunk-WQADZ3ZY.js.map} +0 -0
  325. /package/dist/{chunk-OOEVMJK4.js.map → chunk-WSWYIKXX.js.map} +0 -0
  326. /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
  327. /package/dist/{chunk-WN4GHSDH.js.map → chunk-XKMDDM7P.js.map} +0 -0
  328. /package/dist/{chunk-6Q7JFY4P.js.map → chunk-Y6YHAGQP.js.map} +0 -0
  329. /package/dist/{chunk-KF74X62T.js.map → chunk-YGKUAX2B.js.map} +0 -0
  330. /package/dist/{chunk-YN4ZT4CW.js.map → chunk-YI7RZO7Y.js.map} +0 -0
  331. /package/dist/{forget-6SOIPUMQ.js.map → forget-U66KPDPY.js.map} +0 -0
  332. /package/dist/{graph-edge-decay-D7OESCBR.js.map → graph-edge-decay-JLOF3YW4.js.map} +0 -0
@@ -6,16 +6,16 @@ import {
6
6
  } from "./chunk-7WV3F5DQ.js";
7
7
  import {
8
8
  EngramMcpServer
9
- } from "./chunk-OOEVMJK4.js";
9
+ } from "./chunk-WSWYIKXX.js";
10
10
  import {
11
11
  validateRequest
12
- } from "./chunk-QDIVMS25.js";
12
+ } from "./chunk-NUWZFSKC.js";
13
13
  import {
14
14
  getOperation
15
- } from "./chunk-RYDT7LAI.js";
15
+ } from "./chunk-66TSLESZ.js";
16
16
  import {
17
17
  EngramAccessInputError
18
- } from "./chunk-ZXFNSKPY.js";
18
+ } from "./chunk-STYMKPFT.js";
19
19
  import {
20
20
  projectTagProjectId
21
21
  } from "./chunk-SHRRWOVY.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-DEUNUKTD.js";
28
28
  import {
29
29
  isRecallDisclosure
30
- } from "./chunk-IX3UQT4H.js";
30
+ } from "./chunk-MLLTU5FX.js";
31
31
  import {
32
32
  OFFLINE_SYNC_APPLY_MAX_BODY_BYTES,
33
33
  OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES,
@@ -444,6 +444,7 @@ var EngramAccessHttpServer = class {
444
444
  return;
445
445
  }
446
446
  if (req.method === "POST" && pathname === "/engram/v1/recall") {
447
+ void getOperation("recall");
447
448
  const body = await this.readValidatedBody(req, "recall");
448
449
  const codingContext = "codingContext" in body ? body.codingContext : void 0;
449
450
  const disclosure = this.resolveRecallDisclosure(body.disclosure, parsed);
@@ -511,6 +512,7 @@ var EngramAccessHttpServer = class {
511
512
  return;
512
513
  }
513
514
  if (req.method === "POST" && pathname === "/engram/v1/coding-context") {
515
+ void getOperation("set_coding_context");
514
516
  const body = await this.readValidatedBody(req, "setCodingContext");
515
517
  const codingContext = body.codingContext !== void 0 ? body.codingContext : typeof body.projectTag === "string" ? codingContextFromProjectTag(body.projectTag) : (() => {
516
518
  throw new EngramAccessInputError("codingContext or projectTag is required");
@@ -523,6 +525,7 @@ var EngramAccessHttpServer = class {
523
525
  return;
524
526
  }
525
527
  if (req.method === "POST" && (pathname === "/engram/v1/capsules/export" || pathname === "/remnic/v1/capsules/export")) {
528
+ void getOperation("capsule_export");
526
529
  const body = await this.readValidatedBody(req, "capsuleExport");
527
530
  this.ensureWriteRateLimitAvailable();
528
531
  const result = await this.service.capsuleExport({
@@ -540,6 +543,7 @@ var EngramAccessHttpServer = class {
540
543
  return;
541
544
  }
542
545
  if (req.method === "POST" && (pathname === "/engram/v1/capsules/import" || pathname === "/remnic/v1/capsules/import")) {
546
+ void getOperation("capsule_import");
543
547
  const body = await this.readValidatedBody(req, "capsuleImport");
544
548
  this.ensureWriteRateLimitAvailable();
545
549
  const result = await this.service.capsuleImport({
@@ -554,6 +558,7 @@ var EngramAccessHttpServer = class {
554
558
  return;
555
559
  }
556
560
  if (req.method === "GET" && (pathname === "/engram/v1/offline-sync/snapshot" || pathname === "/remnic/v1/offline-sync/snapshot")) {
561
+ void getOperation("offline_sync_snapshot");
557
562
  const includeTranscriptsRaw = parsed.searchParams.get("include_transcripts");
558
563
  const includeContentRaw = parsed.searchParams.get("content");
559
564
  if (includeTranscriptsRaw !== null && includeTranscriptsRaw !== "true" && includeTranscriptsRaw !== "false") {
@@ -580,6 +585,7 @@ var EngramAccessHttpServer = class {
580
585
  return;
581
586
  }
582
587
  if (req.method === "GET" && (pathname === "/engram/v1/offline-sync/snapshot-stream" || pathname === "/remnic/v1/offline-sync/snapshot-stream")) {
588
+ void getOperation("offline_sync_snapshot_stream");
583
589
  const includeTranscriptsRaw = parsed.searchParams.get("include_transcripts");
584
590
  const includeContentRaw = parsed.searchParams.get("content");
585
591
  if (includeTranscriptsRaw !== null && includeTranscriptsRaw !== "true" && includeTranscriptsRaw !== "false") {
@@ -605,6 +611,7 @@ var EngramAccessHttpServer = class {
605
611
  return;
606
612
  }
607
613
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/snapshot" || pathname === "/remnic/v1/offline-sync/snapshot")) {
614
+ void getOperation("offline_sync_snapshot");
608
615
  const body = await this.readValidatedBody(
609
616
  req,
610
617
  "offlineSyncSnapshot",
@@ -623,6 +630,7 @@ var EngramAccessHttpServer = class {
623
630
  return;
624
631
  }
625
632
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/files" || pathname === "/remnic/v1/offline-sync/files")) {
633
+ void getOperation("offline_sync_files");
626
634
  const body = await this.readValidatedBody(req, "offlineSyncFiles");
627
635
  const result = await this.service.offlineSyncFiles({
628
636
  namespace: this.resolveNamespace(req, body.namespace),
@@ -634,6 +642,7 @@ var EngramAccessHttpServer = class {
634
642
  return;
635
643
  }
636
644
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/file-content" || pathname === "/remnic/v1/offline-sync/file-content")) {
645
+ void getOperation("offline_sync_file_content");
637
646
  const body = await this.readValidatedBody(req, "offlineSyncFileContent");
638
647
  const result = await this.service.offlineSyncFileContent({
639
648
  namespace: this.resolveNamespace(req, body.namespace),
@@ -655,6 +664,7 @@ var EngramAccessHttpServer = class {
655
664
  return;
656
665
  }
657
666
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/apply-file-content" || pathname === "/remnic/v1/offline-sync/apply-file-content")) {
667
+ void getOperation("offline_sync_apply_file_content");
658
668
  const namespaceParam = parsed.searchParams.get("namespace");
659
669
  const bytes = this.readRequiredIntegerHeader(req, "x-remnic-file-bytes");
660
670
  const offset = this.readOptionalIntegerHeader(req, "x-remnic-chunk-offset") ?? 0;
@@ -683,6 +693,7 @@ var EngramAccessHttpServer = class {
683
693
  return;
684
694
  }
685
695
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/apply" || pathname === "/remnic/v1/offline-sync/apply")) {
696
+ void getOperation("offline_sync_apply");
686
697
  const body = await this.readValidatedBody(req, "offlineSyncApply", OFFLINE_SYNC_APPLY_MAX_BODY_BYTES);
687
698
  const result = await this.service.offlineSyncApply({
688
699
  namespace: this.resolveNamespace(req, body.namespace),
@@ -694,6 +705,7 @@ var EngramAccessHttpServer = class {
694
705
  return;
695
706
  }
696
707
  if (req.method === "POST" && pathname === "/engram/v1/recall/explain") {
708
+ void getOperation("recall_explain");
697
709
  const body = await this.readValidatedBody(req, "recallExplain");
698
710
  const response = await this.service.recallExplain({
699
711
  sessionKey: body.sessionKey,
@@ -704,11 +716,13 @@ var EngramAccessHttpServer = class {
704
716
  return;
705
717
  }
706
718
  if (req.method === "POST" && (pathname === "/engram/v1/action-confidence" || pathname === "/remnic/v1/action-confidence")) {
719
+ void getOperation("action_confidence");
707
720
  const body = await this.readValidatedBody(req, "actionConfidence");
708
721
  this.respondJson(res, 200, await this.service.actionConfidence(body));
709
722
  return;
710
723
  }
711
724
  if (req.method === "GET" && pathname === "/engram/v1/recall/tier-explain") {
725
+ void getOperation("recall_tier_explain");
712
726
  const sessionParam = parsed.searchParams.get("session");
713
727
  const sessionKey = sessionParam && sessionParam.length > 0 ? sessionParam : void 0;
714
728
  const namespaceParam = parsed.searchParams.get("namespace");
@@ -725,6 +739,7 @@ var EngramAccessHttpServer = class {
725
739
  return;
726
740
  }
727
741
  if (req.method === "GET" && pathname === "/engram/v1/recall/xray") {
742
+ void getOperation("recall_xray");
728
743
  const queryParam = parsed.searchParams.get("q");
729
744
  if (!queryParam || queryParam.trim().length === 0) {
730
745
  this.respondJson(res, 400, {
@@ -793,10 +808,12 @@ var EngramAccessHttpServer = class {
793
808
  return;
794
809
  }
795
810
  if (req.method === "GET" && (pathname === "/engram/v1/wearables/status" || pathname === "/remnic/v1/wearables/status")) {
811
+ void getOperation("wearables_status");
796
812
  this.respondJson(res, 200, await this.service.wearablesStatus());
797
813
  return;
798
814
  }
799
815
  if (req.method === "POST" && (pathname === "/engram/v1/wearables/sync" || pathname === "/remnic/v1/wearables/sync")) {
816
+ void getOperation("wearables_sync");
800
817
  const body = await this.readJsonBody(req);
801
818
  const source = optionalQueryString(body.source, "source");
802
819
  const date = optionalQueryString(body.date, "date");
@@ -829,6 +846,7 @@ var EngramAccessHttpServer = class {
829
846
  return;
830
847
  }
831
848
  if (req.method === "GET" && (pathname === "/engram/v1/wearables/transcript" || pathname === "/remnic/v1/wearables/transcript")) {
849
+ void getOperation("transcript_day");
832
850
  const date = parsed.searchParams.get("date");
833
851
  if (!date || date.trim().length === 0) {
834
852
  throw new EngramAccessInputError(
@@ -849,6 +867,7 @@ var EngramAccessHttpServer = class {
849
867
  return;
850
868
  }
851
869
  if (req.method === "GET" && (pathname === "/engram/v1/wearables/transcripts/search" || pathname === "/remnic/v1/wearables/transcripts/search")) {
870
+ void getOperation("transcript_search");
852
871
  const queryParam = parsed.searchParams.get("q");
853
872
  if (!queryParam || queryParam.trim().length === 0) {
854
873
  throw new EngramAccessInputError(
@@ -871,6 +890,7 @@ var EngramAccessHttpServer = class {
871
890
  return;
872
891
  }
873
892
  if (req.method === "GET" && (pathname === "/engram/v1/wearables/memories" || pathname === "/remnic/v1/wearables/memories")) {
893
+ void getOperation("transcript_memories");
874
894
  try {
875
895
  const memories = await this.service.wearablesTranscriptMemories({
876
896
  source: nonEmptyQueryParam(parsed.searchParams.get("source")),
@@ -885,6 +905,7 @@ var EngramAccessHttpServer = class {
885
905
  return;
886
906
  }
887
907
  if (req.method === "POST" && pathname === "/engram/v1/observe") {
908
+ void getOperation("observe");
888
909
  const body = await this.readValidatedBody(req, "observe");
889
910
  this.ensureWriteRateLimitAvailable();
890
911
  const response = await this.service.observe({
@@ -908,6 +929,7 @@ var EngramAccessHttpServer = class {
908
929
  return;
909
930
  }
910
931
  if (req.method === "POST" && pathname === "/engram/v1/lcm/search") {
932
+ void getOperation("lcm_search");
911
933
  const body = await this.readValidatedBody(req, "lcmSearch");
912
934
  const response = await this.service.lcmSearch({
913
935
  query: body.query,
@@ -921,6 +943,7 @@ var EngramAccessHttpServer = class {
921
943
  return;
922
944
  }
923
945
  if (req.method === "POST" && (pathname === "/engram/v1/lcm/compaction/flush" || pathname === "/remnic/v1/lcm/compaction/flush")) {
946
+ void getOperation("lcm_compaction_flush");
924
947
  const body = await this.readValidatedBody(req, "lcmCompactionFlush");
925
948
  this.ensureWriteRateLimitAvailable();
926
949
  const response = await this.service.lcmCompactionFlush({
@@ -933,6 +956,7 @@ var EngramAccessHttpServer = class {
933
956
  return;
934
957
  }
935
958
  if (req.method === "POST" && (pathname === "/engram/v1/lcm/compaction/record" || pathname === "/remnic/v1/lcm/compaction/record")) {
959
+ void getOperation("lcm_compaction_record");
936
960
  const body = await this.readValidatedBody(req, "lcmCompactionRecord");
937
961
  this.ensureWriteRateLimitAvailable();
938
962
  const response = await this.service.lcmCompactionRecord({
@@ -947,6 +971,7 @@ var EngramAccessHttpServer = class {
947
971
  return;
948
972
  }
949
973
  if (req.method === "GET" && pathname === "/engram/v1/lcm/status") {
974
+ void getOperation("lcm_status");
950
975
  this.respondJson(res, 200, await this.service.lcmStatus());
951
976
  return;
952
977
  }
@@ -1026,6 +1051,7 @@ var EngramAccessHttpServer = class {
1026
1051
  return;
1027
1052
  }
1028
1053
  if (req.method === "POST" && pathname === "/engram/v1/suggestions") {
1054
+ void getOperation("suggestion_submit");
1029
1055
  const body = await this.readValidatedBody(req, "suggestionSubmit");
1030
1056
  const request = {
1031
1057
  schemaVersion: body.schemaVersion,
@@ -1054,6 +1080,7 @@ var EngramAccessHttpServer = class {
1054
1080
  return;
1055
1081
  }
1056
1082
  if (req.method === "GET" && pathname === "/engram/v1/memories") {
1083
+ void getOperation("memory_list");
1057
1084
  const limit = parseStrictIntegerQuery(parsed.searchParams.get("limit"), "limit", 50, 1);
1058
1085
  const offset = parseStrictIntegerQuery(parsed.searchParams.get("offset"), "offset", 0, 0);
1059
1086
  const sort = parseMemorySort(parsed.searchParams.get("sort"));
@@ -1087,6 +1114,7 @@ var EngramAccessHttpServer = class {
1087
1114
  return;
1088
1115
  }
1089
1116
  const timelineMatch = pathname.match(/^\/engram\/v1\/memories\/([^/]+)\/timeline$/);
1117
+ void getOperation("memory_timeline");
1090
1118
  if (req.method === "GET" && timelineMatch) {
1091
1119
  const memoryId = decodeURIComponent(timelineMatch[1] ?? "");
1092
1120
  const namespace = parsed.searchParams.get("namespace") ?? void 0;
@@ -1096,6 +1124,7 @@ var EngramAccessHttpServer = class {
1096
1124
  return;
1097
1125
  }
1098
1126
  if (req.method === "GET" && pathname === "/engram/v1/entities") {
1127
+ void getOperation("entity_list");
1099
1128
  const limit = parseStrictIntegerQuery(parsed.searchParams.get("limit"), "limit", 50, 1);
1100
1129
  const offset = parseStrictIntegerQuery(parsed.searchParams.get("offset"), "offset", 0, 0);
1101
1130
  const response = await this.service.entityList({
@@ -1108,6 +1137,7 @@ var EngramAccessHttpServer = class {
1108
1137
  return;
1109
1138
  }
1110
1139
  const entityMatch = pathname.match(/^\/engram\/v1\/entities\/([^/]+)$/);
1140
+ void getOperation("entity_get");
1111
1141
  if (req.method === "GET" && entityMatch) {
1112
1142
  const entityName = decodeURIComponent(entityMatch[1] ?? "");
1113
1143
  const namespace = parsed.searchParams.get("namespace") ?? void 0;
@@ -1116,6 +1146,7 @@ var EngramAccessHttpServer = class {
1116
1146
  return;
1117
1147
  }
1118
1148
  if (req.method === "GET" && pathname === "/engram/v1/review-queue") {
1149
+ void getOperation("review_queue_list");
1119
1150
  const response = await this.service.reviewQueue(
1120
1151
  parsed.searchParams.get("runId") ?? void 0,
1121
1152
  parsed.searchParams.get("namespace") ?? void 0,
@@ -1125,14 +1156,17 @@ var EngramAccessHttpServer = class {
1125
1156
  return;
1126
1157
  }
1127
1158
  if (req.method === "GET" && pathname === "/engram/v1/maintenance") {
1159
+ void getOperation("maintenance_status");
1128
1160
  this.respondJson(res, 200, await this.service.maintenance(parsed.searchParams.get("namespace") ?? void 0, this.resolveRequestPrincipal(req)));
1129
1161
  return;
1130
1162
  }
1131
1163
  if (req.method === "GET" && pathname === "/engram/v1/quality") {
1164
+ void getOperation("quality_status");
1132
1165
  this.respondJson(res, 200, await this.service.quality(parsed.searchParams.get("namespace") ?? void 0, this.resolveRequestPrincipal(req)));
1133
1166
  return;
1134
1167
  }
1135
1168
  if (req.method === "GET" && pathname === "/engram/v1/trust-zones/status") {
1169
+ void getOperation("trust_zones_status");
1136
1170
  this.respondJson(
1137
1171
  res,
1138
1172
  200,
@@ -1141,6 +1175,7 @@ var EngramAccessHttpServer = class {
1141
1175
  return;
1142
1176
  }
1143
1177
  if (req.method === "GET" && pathname === "/engram/v1/procedural/stats") {
1178
+ void getOperation("procedural_stats");
1144
1179
  const namespaceParam = parsed.searchParams.get("namespace");
1145
1180
  this.respondJson(
1146
1181
  res,
@@ -1158,6 +1193,7 @@ var EngramAccessHttpServer = class {
1158
1193
  return;
1159
1194
  }
1160
1195
  if (req.method === "GET" && pathname === "/engram/v1/trust-zones/records") {
1196
+ void getOperation("trust_zones_records");
1161
1197
  const limit = parseStrictIntegerQuery(parsed.searchParams.get("limit"), "limit", 25, 1);
1162
1198
  const offset = parseStrictIntegerQuery(parsed.searchParams.get("offset"), "offset", 0, 0);
1163
1199
  const response = await this.service.trustZoneBrowse({
@@ -1173,6 +1209,7 @@ var EngramAccessHttpServer = class {
1173
1209
  return;
1174
1210
  }
1175
1211
  if (req.method === "POST" && pathname === "/engram/v1/review-disposition") {
1212
+ void getOperation("review_disposition");
1176
1213
  const body = await this.readValidatedBody(req, "reviewDisposition");
1177
1214
  this.ensureWriteRateLimitAvailable();
1178
1215
  const response = await this.service.reviewDisposition({
@@ -1189,6 +1226,7 @@ var EngramAccessHttpServer = class {
1189
1226
  return;
1190
1227
  }
1191
1228
  if (req.method === "POST" && pathname === "/engram/v1/trust-zones/promote") {
1229
+ void getOperation("trust_zones_promote");
1192
1230
  const body = await this.readValidatedBody(req, "trustZonePromote");
1193
1231
  const dryRun = body.dryRun === true;
1194
1232
  if (!dryRun) {
@@ -1211,6 +1249,7 @@ var EngramAccessHttpServer = class {
1211
1249
  return;
1212
1250
  }
1213
1251
  if (req.method === "POST" && pathname === "/engram/v1/trust-zones/demo-seed") {
1252
+ void getOperation("trust_zones_demo_seed");
1214
1253
  const body = await this.readValidatedBody(req, "trustZoneDemoSeed");
1215
1254
  const dryRun = body.dryRun === true;
1216
1255
  if (!dryRun) {
@@ -1230,6 +1269,7 @@ var EngramAccessHttpServer = class {
1230
1269
  return;
1231
1270
  }
1232
1271
  if (req.method === "POST" && pathname === "/v1/citations/observed") {
1272
+ void getOperation("citations_observed");
1233
1273
  const body = await this.readJsonBody(req);
1234
1274
  if (!body || typeof body !== "object" || Array.isArray(body)) {
1235
1275
  throw new HttpError(400, "request body must be a JSON object", "invalid_body");
@@ -1289,6 +1329,7 @@ var EngramAccessHttpServer = class {
1289
1329
  return;
1290
1330
  }
1291
1331
  if (req.method === "GET" && pathname === "/engram/v1/review/contradictions") {
1332
+ void getOperation("review_list");
1292
1333
  const VALID_FILTERS = /* @__PURE__ */ new Set(["all", "unresolved", "contradicts", "independent", "duplicates", "needs-user"]);
1293
1334
  const rawFilter = parsed.searchParams.get("filter") ?? "unresolved";
1294
1335
  if (!VALID_FILTERS.has(rawFilter)) {
@@ -1317,6 +1358,7 @@ var EngramAccessHttpServer = class {
1317
1358
  return;
1318
1359
  }
1319
1360
  if (req.method === "GET" && pathname.startsWith("/engram/v1/review/contradictions/")) {
1361
+ void getOperation("contradiction_detail");
1320
1362
  const pairId = pathname.split("/").pop() ?? "";
1321
1363
  const { readPair } = await import("./contradiction-review-QKJH5DKD.js");
1322
1364
  const pair = readPair(this.service.memoryDir, pairId);
@@ -1334,6 +1376,7 @@ var EngramAccessHttpServer = class {
1334
1376
  return;
1335
1377
  }
1336
1378
  if (req.method === "POST" && pathname === "/engram/v1/review/resolve") {
1379
+ void getOperation("review_resolve");
1337
1380
  const body = await this.readJsonBody(req);
1338
1381
  const pairId = typeof body.pairId === "string" ? body.pairId : "";
1339
1382
  const verb = typeof body.verb === "string" ? body.verb : "";
@@ -1365,6 +1408,7 @@ var EngramAccessHttpServer = class {
1365
1408
  return;
1366
1409
  }
1367
1410
  if (req.method === "GET" && pathname === "/engram/v1/graph/snapshot") {
1411
+ void getOperation("graph_snapshot");
1368
1412
  const limitRaw = parsed.searchParams.get("limit");
1369
1413
  let limit;
1370
1414
  if (limitRaw !== null && limitRaw.length > 0) {
@@ -1438,6 +1482,7 @@ var EngramAccessHttpServer = class {
1438
1482
  return;
1439
1483
  }
1440
1484
  if (req.method === "POST" && pathname === "/engram/v1/contradiction-scan") {
1485
+ void getOperation("contradiction_scan_run");
1441
1486
  const body = await this.readJsonBody(req);
1442
1487
  const { runContradictionScan } = await import("./contradiction-scan-HWGEOUDS.js");
1443
1488
  const principal = this.resolveRequestPrincipal(req);
@@ -1455,22 +1500,26 @@ var EngramAccessHttpServer = class {
1455
1500
  return;
1456
1501
  }
1457
1502
  if (req.method === "GET" && pathname === "/engram/v1/graph/events") {
1503
+ void getOperation("graph_events");
1458
1504
  await this.handleGraphEventsSSE(req, res);
1459
1505
  return;
1460
1506
  }
1461
1507
  if (req.method === "GET" && pathname === "/engram/v1/console/state") {
1508
+ void getOperation("console_state");
1462
1509
  const namespace = parsed.searchParams.get("namespace") ?? void 0;
1463
1510
  const snapshot = await this.service.consoleState(namespace, this.resolveRequestPrincipal(req));
1464
1511
  this.respondJson(res, 200, snapshot);
1465
1512
  return;
1466
1513
  }
1467
1514
  if (req.method === "GET" && pathname === "/engram/v1/peers") {
1515
+ void getOperation("peer_list");
1468
1516
  const result = await this.service.peerList();
1469
1517
  this.respondJson(res, 200, result);
1470
1518
  return;
1471
1519
  }
1472
1520
  const peerProfileMatch = /^\/engram\/v1\/peers\/([^/]+)\/profile$/.exec(pathname);
1473
1521
  if (peerProfileMatch) {
1522
+ void getOperation("peer_profile_get");
1474
1523
  if (req.method !== "GET") {
1475
1524
  this.respondJson(res, 405, { error: "method_not_allowed", code: "method_not_allowed" });
1476
1525
  return;
@@ -1488,6 +1537,7 @@ var EngramAccessHttpServer = class {
1488
1537
  if (peerIdMatch) {
1489
1538
  const peerId = decodePeerIdSegment(peerIdMatch[1] ?? "");
1490
1539
  if (req.method === "GET") {
1540
+ void getOperation("peer_get");
1491
1541
  const result = await this.service.peerGet(peerId);
1492
1542
  if (!result.found) {
1493
1543
  this.respondJson(res, 404, { error: "peer_not_found", code: "peer_not_found" });
@@ -1497,6 +1547,7 @@ var EngramAccessHttpServer = class {
1497
1547
  return;
1498
1548
  }
1499
1549
  if (req.method === "PUT") {
1550
+ void getOperation("peer_set");
1500
1551
  const body = await this.readJsonBody(req);
1501
1552
  if ("kind" in body && body.kind !== void 0 && typeof body.kind !== "string") {
1502
1553
  throw new EngramAccessInputError("kind must be a string when provided");
@@ -1517,6 +1568,7 @@ var EngramAccessHttpServer = class {
1517
1568
  return;
1518
1569
  }
1519
1570
  if (req.method === "DELETE") {
1571
+ void getOperation("peer_delete");
1520
1572
  const forgetParam = parsed.searchParams.get("forget");
1521
1573
  if (forgetParam === "true") {
1522
1574
  const body = await this.readJsonBody(req);
@@ -1541,6 +1593,7 @@ var EngramAccessHttpServer = class {
1541
1593
  return;
1542
1594
  }
1543
1595
  if (req.method === "GET" && pathname === "/engram/v1/dreams/status") {
1596
+ void getOperation("dreams_status");
1544
1597
  const { normalizeDreamsStatusWindowHours } = await import("./dreams-ledger-3WSCI5V4.js");
1545
1598
  const windowHoursRaw = parsed.searchParams.get("windowHours");
1546
1599
  let windowHours;
@@ -1563,6 +1616,7 @@ var EngramAccessHttpServer = class {
1563
1616
  return;
1564
1617
  }
1565
1618
  if (req.method === "POST" && pathname === "/engram/v1/dreams/run") {
1619
+ void getOperation("dreams_run");
1566
1620
  const body = await this.readJsonBody(req);
1567
1621
  const VALID_PHASES = ["lightSleep", "rem", "deepSleep"];
1568
1622
  const phase = typeof body.phase === "string" ? body.phase : void 0;
@@ -2248,4 +2302,4 @@ function positiveIntQueryParam(value, label) {
2248
2302
  export {
2249
2303
  EngramAccessHttpServer
2250
2304
  };
2251
- //# sourceMappingURL=chunk-25FHSOEB.js.map
2305
+ //# sourceMappingURL=chunk-EJDAXR7O.js.map