@remnic/core 9.3.770 → 9.4.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 (316) hide show
  1. package/dist/access-admin-ops-surface.js +35 -35
  2. package/dist/access-boundary.js +36 -36
  3. package/dist/access-cli.js +109 -108
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-http.js +47 -46
  6. package/dist/access-identity-continuity-surface.js +35 -35
  7. package/dist/access-lcm-surface.js +35 -35
  8. package/dist/access-mcp-output-schemas.d.ts +20 -0
  9. package/dist/access-mcp-output-schemas.js +8 -0
  10. package/dist/access-mcp.js +44 -43
  11. package/dist/access-observe-write-surface.js +35 -35
  12. package/dist/access-operations-batch.js +40 -40
  13. package/dist/access-operations.d.ts +4 -4
  14. package/dist/access-operations.js +42 -42
  15. package/dist/access-recall-surface.js +35 -35
  16. package/dist/access-schema.d.ts +68 -68
  17. package/dist/access-schema.js +3 -3
  18. package/dist/access-service.js +35 -35
  19. package/dist/active-recall.js +2 -2
  20. package/dist/adapters/index.js +4 -4
  21. package/dist/adapters/registry.js +2 -2
  22. package/dist/{auto-sync-2SOUW4JW.js → auto-sync-M47VTCFI.js} +7 -7
  23. package/dist/bootstrap.js +2 -2
  24. package/dist/boxes.js +2 -2
  25. package/dist/briefing.js +10 -10
  26. package/dist/buffer.js +2 -2
  27. package/dist/calibration.js +4 -4
  28. package/dist/causal-behavior.js +4 -4
  29. package/dist/causal-chain.js +4 -4
  30. package/dist/causal-consolidation.js +15 -15
  31. package/dist/causal-retrieval.js +4 -4
  32. package/dist/causal-trajectory-graph.js +1 -1
  33. package/dist/causal-trajectory.js +1 -1
  34. package/dist/{chunk-7FL4CNPV.js → chunk-2A3OXAP2.js} +2 -2
  35. package/dist/{chunk-GG6AJN7A.js → chunk-2IZAGAJR.js} +2 -2
  36. package/dist/{chunk-ZG4FT6IT.js → chunk-2TCZE3C2.js} +3 -3
  37. package/dist/chunk-37CTGERM.js +62 -0
  38. package/dist/chunk-37CTGERM.js.map +1 -0
  39. package/dist/{chunk-KYYL4U6X.js → chunk-42BBIR33.js} +2 -2
  40. package/dist/{chunk-DQC3ZZYM.js → chunk-4KJLYTLS.js} +2 -2
  41. package/dist/{chunk-7OSULYN2.js → chunk-4NMATTXV.js} +2 -2
  42. package/dist/{chunk-GY3SKOS4.js → chunk-5EZXHU36.js} +2 -2
  43. package/dist/{chunk-IOENSSZC.js → chunk-5H56JAHW.js} +4 -4
  44. package/dist/{chunk-K2I3AWBR.js → chunk-5K5VEDFY.js} +2 -2
  45. package/dist/chunk-5RUE3GHQ.js +445 -0
  46. package/dist/chunk-5RUE3GHQ.js.map +1 -0
  47. package/dist/{chunk-IBAU2RZN.js → chunk-64ZYXSCO.js} +2 -2
  48. package/dist/{chunk-2MR3MFQB.js → chunk-6Y4JTNX7.js} +2 -2
  49. package/dist/{chunk-XG4NBBRW.js → chunk-7BAJAXGB.js} +2 -2
  50. package/dist/{chunk-L24JROPR.js → chunk-7WSLR2CU.js} +2 -2
  51. package/dist/{chunk-EXM3CQTZ.js → chunk-A3GOMRJG.js} +2 -2
  52. package/dist/{chunk-KFIAFHOC.js → chunk-ABGDGBDT.js} +2 -2
  53. package/dist/{chunk-3JOFWTQD.js → chunk-APMGGGTY.js} +3 -3
  54. package/dist/{chunk-JBPKEARU.js → chunk-AU7Q3LSC.js} +4 -4
  55. package/dist/{chunk-XHYGJVXL.js → chunk-AXTXN4T6.js} +2 -2
  56. package/dist/{chunk-5QANTTY2.js → chunk-BRDJ2HFP.js} +2 -2
  57. package/dist/{chunk-QMN3CIFS.js → chunk-CGS7UKWM.js} +2 -2
  58. package/dist/{chunk-KYC3RLYJ.js → chunk-CXLNZXG5.js} +1 -1
  59. package/dist/{chunk-3O3BZNSH.js → chunk-CZGIIADK.js} +10 -10
  60. package/dist/{chunk-QRDOSYOR.js → chunk-DBRYEIGY.js} +2 -2
  61. package/dist/{chunk-UC4YOAC2.js → chunk-E5BK6CGV.js} +2 -2
  62. package/dist/{chunk-TKZ3AL5V.js → chunk-EHK6KZHK.js} +2 -2
  63. package/dist/{chunk-JZ7P26GF.js → chunk-F53UF7CI.js} +2 -2
  64. package/dist/{chunk-SJHM6I4J.js → chunk-FC77VUX5.js} +2 -2
  65. package/dist/{chunk-DKTSR7EK.js → chunk-FDPZVY6D.js} +2 -2
  66. package/dist/{chunk-CSHUSYUM.js → chunk-FT37KV7R.js} +2 -2
  67. package/dist/{chunk-MLDAD27I.js → chunk-FWPHPN3V.js} +8 -8
  68. package/dist/{chunk-SRSPVFSJ.js → chunk-G47FEGGK.js} +4 -4
  69. package/dist/{chunk-OP43P53G.js → chunk-GEVIE5NV.js} +163 -73
  70. package/dist/chunk-GEVIE5NV.js.map +1 -0
  71. package/dist/{chunk-52TEPNL7.js → chunk-H25TAODC.js} +7 -7
  72. package/dist/{chunk-5ACKQLGA.js → chunk-H2EJNV2Z.js} +3 -3
  73. package/dist/{chunk-XDRJQMYL.js → chunk-H5IT5JL7.js} +2 -2
  74. package/dist/{chunk-TQT3USCG.js → chunk-HG32URJJ.js} +2 -2
  75. package/dist/{chunk-ZQNCHPTZ.js → chunk-HLTAPHZZ.js} +2 -2
  76. package/dist/{chunk-LOPZ2DWR.js → chunk-I73G4UH7.js} +2 -2
  77. package/dist/{chunk-EWGMA5W5.js → chunk-IGF4DII6.js} +20 -20
  78. package/dist/{chunk-DCWIQFNA.js → chunk-JI5AVXYO.js} +4 -4
  79. package/dist/{chunk-VUA4S7P6.js → chunk-JIKJPDQJ.js} +4 -4
  80. package/dist/{chunk-VQ34TERH.js → chunk-JZHHREBL.js} +2 -2
  81. package/dist/{chunk-IQVQJJL7.js → chunk-K2ZLHESQ.js} +2 -2
  82. package/dist/{chunk-PWFWCGOO.js → chunk-KAWTOYAW.js} +2 -2
  83. package/dist/{chunk-DJECGBBM.js → chunk-KQDNAXOM.js} +2 -2
  84. package/dist/{chunk-WIWPSQYU.js → chunk-KQPJLK3X.js} +2 -2
  85. package/dist/{chunk-QKUWPSU3.js → chunk-KS4PRHRD.js} +2 -2
  86. package/dist/{chunk-DMKMQTBH.js → chunk-L4UZBJNM.js} +2 -2
  87. package/dist/{chunk-IQ7WCZRW.js → chunk-LLMZK53N.js} +2 -2
  88. package/dist/{chunk-YTU7WKYN.js → chunk-MNUHL34L.js} +3 -3
  89. package/dist/{chunk-ZCWIH4LH.js → chunk-MRHFJV44.js} +2 -2
  90. package/dist/{chunk-W4H5A3TJ.js → chunk-MTR7BZQN.js} +3 -3
  91. package/dist/{chunk-PNLCEFE4.js → chunk-MTWKDOVO.js} +2 -2
  92. package/dist/{chunk-3YYWUHA7.js → chunk-MWH5MAFP.js} +5 -5
  93. package/dist/{chunk-OSMBC3JU.js → chunk-O2EL7EGG.js} +2 -2
  94. package/dist/{chunk-HW5EF6LV.js → chunk-O7BBFJLP.js} +2 -2
  95. package/dist/{chunk-EHQ5HO5T.js → chunk-OBMR4VIX.js} +1 -1
  96. package/dist/{chunk-WRBDUNSW.js → chunk-OH6BKCPB.js} +3 -3
  97. package/dist/{chunk-6SHAUM5S.js → chunk-OUMTBFSQ.js} +4 -4
  98. package/dist/{chunk-FLVL4L3L.js → chunk-OUXPVWTZ.js} +5 -5
  99. package/dist/{chunk-EEKDRAWX.js → chunk-PRTA6444.js} +2 -2
  100. package/dist/{chunk-WB4CFKZ4.js → chunk-QGS7Z7YU.js} +2 -2
  101. package/dist/{chunk-T4AWNIXJ.js → chunk-QICQ35K5.js} +2 -2
  102. package/dist/{chunk-UUH4YQOF.js → chunk-QLULYKWZ.js} +2 -2
  103. package/dist/{chunk-DBSMLRTO.js → chunk-QT2RZNRT.js} +2 -2
  104. package/dist/{chunk-HM6UJPPO.js → chunk-QWGNDWKB.js} +2 -2
  105. package/dist/{chunk-KCQA46NR.js → chunk-R5VAVVHP.js} +2 -2
  106. package/dist/{chunk-MYNRJGOY.js → chunk-RBGL4MKQ.js} +2 -2
  107. package/dist/{chunk-O7GOFAM3.js → chunk-RP7YXA67.js} +2 -2
  108. package/dist/{chunk-BVKCV2ZY.js → chunk-SMX5267P.js} +2 -2
  109. package/dist/{chunk-U72WWTLR.js → chunk-TH2KIPP7.js} +4 -4
  110. package/dist/{chunk-PSNMICC2.js → chunk-TKUQSXU4.js} +10 -10
  111. package/dist/{chunk-XBZQRZ6G.js → chunk-TN7THW5U.js} +2 -2
  112. package/dist/{chunk-O5EKTMOJ.js → chunk-UAOZJX5J.js} +16 -16
  113. package/dist/{chunk-JRZV3767.js → chunk-UI4FVU6T.js} +2 -2
  114. package/dist/{chunk-E6LXM2GE.js → chunk-UQI2NHTY.js} +55 -55
  115. package/dist/{chunk-W7VA5667.js → chunk-UQMCR5RW.js} +3 -3
  116. package/dist/{chunk-VGUOEDTU.js → chunk-V3UE5I5F.js} +2 -2
  117. package/dist/{chunk-STN5KMSS.js → chunk-VBBMTSOV.js} +7 -7
  118. package/dist/{chunk-5QJZLJ7Q.js → chunk-VBVSN2TV.js} +3 -3
  119. package/dist/{chunk-VL7DP3OW.js → chunk-VFSP73LP.js} +2 -2
  120. package/dist/{chunk-KMKBD66B.js → chunk-XOE5DYQL.js} +3 -3
  121. package/dist/{chunk-TGROC2UP.js → chunk-XXEOGY77.js} +9 -9
  122. package/dist/{chunk-NNL4LJAD.js → chunk-XZ5I7OZR.js} +5 -5
  123. package/dist/{chunk-7XGF5HCC.js → chunk-XZJMIJLW.js} +85 -85
  124. package/dist/{chunk-3NN73CM7.js → chunk-YFBTVOMB.js} +3 -3
  125. package/dist/{chunk-RZ3KJZYE.js → chunk-YM7IEUO7.js} +3 -3
  126. package/dist/{chunk-ZT34X56N.js → chunk-YPL66L3U.js} +2 -2
  127. package/dist/{chunk-ZZMRXJFY.js → chunk-ZIDSD6VC.js} +2 -2
  128. package/dist/cli.js +71 -70
  129. package/dist/compounding/engine.js +11 -11
  130. package/dist/compounding/preference-consolidator.js +1 -1
  131. package/dist/config.js +2 -2
  132. package/dist/connectors/codex-materialize-runner.js +11 -11
  133. package/dist/connectors/codex-materialize.js +2 -2
  134. package/dist/connectors/index.js +12 -12
  135. package/dist/contradiction/index.js +3 -3
  136. package/dist/{contradiction-scan-3FJYWS3G.js → contradiction-scan-SSKCAMLX.js} +3 -3
  137. package/dist/conversation-index/backend.js +5 -5
  138. package/dist/conversation-index/cleanup.js +2 -2
  139. package/dist/conversation-index/faiss-adapter.js +2 -2
  140. package/dist/conversation-index/indexer.js +2 -2
  141. package/dist/conversation-index/search.js +2 -2
  142. package/dist/day-summary.js +2 -2
  143. package/dist/embedding-fallback.js +2 -2
  144. package/dist/entity-retrieval.js +11 -11
  145. package/dist/extraction-faithfulness.js +5 -5
  146. package/dist/extraction-judge-telemetry.js +2 -2
  147. package/dist/extraction-judge-training.js +2 -2
  148. package/dist/extraction-judge.js +5 -5
  149. package/dist/extraction.js +9 -9
  150. package/dist/fallback-llm.js +4 -4
  151. package/dist/{forget-WYLR4ZFV.js → forget-KHF7A44H.js} +4 -4
  152. package/dist/{graph-edge-decay-RXUCJIN4.js → graph-edge-decay-FO7AM4UR.js} +3 -3
  153. package/dist/graph-snapshot.js +2 -2
  154. package/dist/graph.js +1 -1
  155. package/dist/index.js +146 -145
  156. package/dist/lcm/archive.js +2 -2
  157. package/dist/lcm/engine.js +5 -5
  158. package/dist/lcm/index.js +8 -8
  159. package/dist/lcm/schema.js +2 -2
  160. package/dist/lcm/summarizer.js +3 -3
  161. package/dist/local-llm.js +2 -2
  162. package/dist/logger.d.ts +8 -2
  163. package/dist/logger.js +1 -1
  164. package/dist/maintenance/memory-governance.js +10 -10
  165. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -10
  166. package/dist/maintenance/rebuild-memory-projection.js +12 -12
  167. package/dist/model-registry.js +2 -2
  168. package/dist/models-json.js +2 -2
  169. package/dist/namespaces/migrate.js +23 -23
  170. package/dist/namespaces/search.js +13 -13
  171. package/dist/namespaces/storage.js +10 -10
  172. package/dist/native-knowledge.js +2 -2
  173. package/dist/negative.js +2 -2
  174. package/dist/operator-toolkit.js +30 -30
  175. package/dist/orchestration/compression-guideline-coordinator.js +2 -2
  176. package/dist/orchestration/maintenance.js +12 -12
  177. package/dist/orchestrator.js +109 -108
  178. package/dist/profiling.js +2 -2
  179. package/dist/qmd.js +2 -2
  180. package/dist/recall-planner-llm.js +4 -4
  181. package/dist/recall-qos.js +2 -2
  182. package/dist/recall-state.js +2 -2
  183. package/dist/relevance.js +2 -2
  184. package/dist/{resolution-33PIX3TT.js → resolution-VH4NGENZ.js} +3 -3
  185. package/dist/resolution-VH4NGENZ.js.map +1 -0
  186. package/dist/resolve-provider-secret.js +2 -2
  187. package/dist/resume-bundles.js +4 -4
  188. package/dist/retrieval-agents.js +2 -2
  189. package/dist/routing/store.js +2 -2
  190. package/dist/schemas.d.ts +84 -84
  191. package/dist/search/embed-helper.js +2 -2
  192. package/dist/search/factory.js +12 -12
  193. package/dist/search/index.js +12 -12
  194. package/dist/search/lancedb-backend.js +2 -2
  195. package/dist/search/meilisearch-backend.js +2 -2
  196. package/dist/search/orama-backend.js +2 -2
  197. package/dist/search/remote-backend.js +2 -2
  198. package/dist/semantic-consolidation.js +12 -12
  199. package/dist/semantic-rule-promotion.js +10 -10
  200. package/dist/semantic-rule-verifier.js +10 -10
  201. package/dist/session-observer-state.js +2 -2
  202. package/dist/session-transcript-migration.js +2 -2
  203. package/dist/shared-context/manager.d.ts +8 -8
  204. package/dist/shared-context/manager.js +2 -2
  205. package/dist/storage-guards.js +2 -2
  206. package/dist/storage.js +9 -9
  207. package/dist/summarizer.js +7 -7
  208. package/dist/temporal-supersession.js +2 -2
  209. package/dist/threading.js +2 -2
  210. package/dist/transcript.js +2 -2
  211. package/dist/transfer/autodetect.js +1 -1
  212. package/dist/transfer/backup.js +1 -1
  213. package/dist/transfer/capsule-export.js +2 -2
  214. package/dist/transfer/types.d.ts +66 -66
  215. package/dist/verified-recall.js +11 -11
  216. package/package.json +2 -2
  217. package/src/access-mcp-output-schemas.ts +472 -0
  218. package/src/access-mcp.ts +235 -143
  219. package/src/logger.test.ts +120 -0
  220. package/src/logger.ts +37 -9
  221. package/dist/chunk-NU3CSQ4H.js +0 -48
  222. package/dist/chunk-NU3CSQ4H.js.map +0 -1
  223. package/dist/chunk-OP43P53G.js.map +0 -1
  224. /package/dist/{contradiction-scan-3FJYWS3G.js.map → access-mcp-output-schemas.js.map} +0 -0
  225. /package/dist/{auto-sync-2SOUW4JW.js.map → auto-sync-M47VTCFI.js.map} +0 -0
  226. /package/dist/{chunk-7FL4CNPV.js.map → chunk-2A3OXAP2.js.map} +0 -0
  227. /package/dist/{chunk-GG6AJN7A.js.map → chunk-2IZAGAJR.js.map} +0 -0
  228. /package/dist/{chunk-ZG4FT6IT.js.map → chunk-2TCZE3C2.js.map} +0 -0
  229. /package/dist/{chunk-KYYL4U6X.js.map → chunk-42BBIR33.js.map} +0 -0
  230. /package/dist/{chunk-DQC3ZZYM.js.map → chunk-4KJLYTLS.js.map} +0 -0
  231. /package/dist/{chunk-7OSULYN2.js.map → chunk-4NMATTXV.js.map} +0 -0
  232. /package/dist/{chunk-GY3SKOS4.js.map → chunk-5EZXHU36.js.map} +0 -0
  233. /package/dist/{chunk-IOENSSZC.js.map → chunk-5H56JAHW.js.map} +0 -0
  234. /package/dist/{chunk-K2I3AWBR.js.map → chunk-5K5VEDFY.js.map} +0 -0
  235. /package/dist/{chunk-IBAU2RZN.js.map → chunk-64ZYXSCO.js.map} +0 -0
  236. /package/dist/{chunk-2MR3MFQB.js.map → chunk-6Y4JTNX7.js.map} +0 -0
  237. /package/dist/{chunk-XG4NBBRW.js.map → chunk-7BAJAXGB.js.map} +0 -0
  238. /package/dist/{chunk-L24JROPR.js.map → chunk-7WSLR2CU.js.map} +0 -0
  239. /package/dist/{chunk-EXM3CQTZ.js.map → chunk-A3GOMRJG.js.map} +0 -0
  240. /package/dist/{chunk-KFIAFHOC.js.map → chunk-ABGDGBDT.js.map} +0 -0
  241. /package/dist/{chunk-3JOFWTQD.js.map → chunk-APMGGGTY.js.map} +0 -0
  242. /package/dist/{chunk-JBPKEARU.js.map → chunk-AU7Q3LSC.js.map} +0 -0
  243. /package/dist/{chunk-XHYGJVXL.js.map → chunk-AXTXN4T6.js.map} +0 -0
  244. /package/dist/{chunk-5QANTTY2.js.map → chunk-BRDJ2HFP.js.map} +0 -0
  245. /package/dist/{chunk-QMN3CIFS.js.map → chunk-CGS7UKWM.js.map} +0 -0
  246. /package/dist/{chunk-KYC3RLYJ.js.map → chunk-CXLNZXG5.js.map} +0 -0
  247. /package/dist/{chunk-3O3BZNSH.js.map → chunk-CZGIIADK.js.map} +0 -0
  248. /package/dist/{chunk-QRDOSYOR.js.map → chunk-DBRYEIGY.js.map} +0 -0
  249. /package/dist/{chunk-UC4YOAC2.js.map → chunk-E5BK6CGV.js.map} +0 -0
  250. /package/dist/{chunk-TKZ3AL5V.js.map → chunk-EHK6KZHK.js.map} +0 -0
  251. /package/dist/{chunk-JZ7P26GF.js.map → chunk-F53UF7CI.js.map} +0 -0
  252. /package/dist/{chunk-SJHM6I4J.js.map → chunk-FC77VUX5.js.map} +0 -0
  253. /package/dist/{chunk-DKTSR7EK.js.map → chunk-FDPZVY6D.js.map} +0 -0
  254. /package/dist/{chunk-CSHUSYUM.js.map → chunk-FT37KV7R.js.map} +0 -0
  255. /package/dist/{chunk-MLDAD27I.js.map → chunk-FWPHPN3V.js.map} +0 -0
  256. /package/dist/{chunk-SRSPVFSJ.js.map → chunk-G47FEGGK.js.map} +0 -0
  257. /package/dist/{chunk-52TEPNL7.js.map → chunk-H25TAODC.js.map} +0 -0
  258. /package/dist/{chunk-5ACKQLGA.js.map → chunk-H2EJNV2Z.js.map} +0 -0
  259. /package/dist/{chunk-XDRJQMYL.js.map → chunk-H5IT5JL7.js.map} +0 -0
  260. /package/dist/{chunk-TQT3USCG.js.map → chunk-HG32URJJ.js.map} +0 -0
  261. /package/dist/{chunk-ZQNCHPTZ.js.map → chunk-HLTAPHZZ.js.map} +0 -0
  262. /package/dist/{chunk-LOPZ2DWR.js.map → chunk-I73G4UH7.js.map} +0 -0
  263. /package/dist/{chunk-EWGMA5W5.js.map → chunk-IGF4DII6.js.map} +0 -0
  264. /package/dist/{chunk-DCWIQFNA.js.map → chunk-JI5AVXYO.js.map} +0 -0
  265. /package/dist/{chunk-VUA4S7P6.js.map → chunk-JIKJPDQJ.js.map} +0 -0
  266. /package/dist/{chunk-VQ34TERH.js.map → chunk-JZHHREBL.js.map} +0 -0
  267. /package/dist/{chunk-IQVQJJL7.js.map → chunk-K2ZLHESQ.js.map} +0 -0
  268. /package/dist/{chunk-PWFWCGOO.js.map → chunk-KAWTOYAW.js.map} +0 -0
  269. /package/dist/{chunk-DJECGBBM.js.map → chunk-KQDNAXOM.js.map} +0 -0
  270. /package/dist/{chunk-WIWPSQYU.js.map → chunk-KQPJLK3X.js.map} +0 -0
  271. /package/dist/{chunk-QKUWPSU3.js.map → chunk-KS4PRHRD.js.map} +0 -0
  272. /package/dist/{chunk-DMKMQTBH.js.map → chunk-L4UZBJNM.js.map} +0 -0
  273. /package/dist/{chunk-IQ7WCZRW.js.map → chunk-LLMZK53N.js.map} +0 -0
  274. /package/dist/{chunk-YTU7WKYN.js.map → chunk-MNUHL34L.js.map} +0 -0
  275. /package/dist/{chunk-ZCWIH4LH.js.map → chunk-MRHFJV44.js.map} +0 -0
  276. /package/dist/{chunk-W4H5A3TJ.js.map → chunk-MTR7BZQN.js.map} +0 -0
  277. /package/dist/{chunk-PNLCEFE4.js.map → chunk-MTWKDOVO.js.map} +0 -0
  278. /package/dist/{chunk-3YYWUHA7.js.map → chunk-MWH5MAFP.js.map} +0 -0
  279. /package/dist/{chunk-OSMBC3JU.js.map → chunk-O2EL7EGG.js.map} +0 -0
  280. /package/dist/{chunk-HW5EF6LV.js.map → chunk-O7BBFJLP.js.map} +0 -0
  281. /package/dist/{chunk-EHQ5HO5T.js.map → chunk-OBMR4VIX.js.map} +0 -0
  282. /package/dist/{chunk-WRBDUNSW.js.map → chunk-OH6BKCPB.js.map} +0 -0
  283. /package/dist/{chunk-6SHAUM5S.js.map → chunk-OUMTBFSQ.js.map} +0 -0
  284. /package/dist/{chunk-FLVL4L3L.js.map → chunk-OUXPVWTZ.js.map} +0 -0
  285. /package/dist/{chunk-EEKDRAWX.js.map → chunk-PRTA6444.js.map} +0 -0
  286. /package/dist/{chunk-WB4CFKZ4.js.map → chunk-QGS7Z7YU.js.map} +0 -0
  287. /package/dist/{chunk-T4AWNIXJ.js.map → chunk-QICQ35K5.js.map} +0 -0
  288. /package/dist/{chunk-UUH4YQOF.js.map → chunk-QLULYKWZ.js.map} +0 -0
  289. /package/dist/{chunk-DBSMLRTO.js.map → chunk-QT2RZNRT.js.map} +0 -0
  290. /package/dist/{chunk-HM6UJPPO.js.map → chunk-QWGNDWKB.js.map} +0 -0
  291. /package/dist/{chunk-KCQA46NR.js.map → chunk-R5VAVVHP.js.map} +0 -0
  292. /package/dist/{chunk-MYNRJGOY.js.map → chunk-RBGL4MKQ.js.map} +0 -0
  293. /package/dist/{chunk-O7GOFAM3.js.map → chunk-RP7YXA67.js.map} +0 -0
  294. /package/dist/{chunk-BVKCV2ZY.js.map → chunk-SMX5267P.js.map} +0 -0
  295. /package/dist/{chunk-U72WWTLR.js.map → chunk-TH2KIPP7.js.map} +0 -0
  296. /package/dist/{chunk-PSNMICC2.js.map → chunk-TKUQSXU4.js.map} +0 -0
  297. /package/dist/{chunk-XBZQRZ6G.js.map → chunk-TN7THW5U.js.map} +0 -0
  298. /package/dist/{chunk-O5EKTMOJ.js.map → chunk-UAOZJX5J.js.map} +0 -0
  299. /package/dist/{chunk-JRZV3767.js.map → chunk-UI4FVU6T.js.map} +0 -0
  300. /package/dist/{chunk-E6LXM2GE.js.map → chunk-UQI2NHTY.js.map} +0 -0
  301. /package/dist/{chunk-W7VA5667.js.map → chunk-UQMCR5RW.js.map} +0 -0
  302. /package/dist/{chunk-VGUOEDTU.js.map → chunk-V3UE5I5F.js.map} +0 -0
  303. /package/dist/{chunk-STN5KMSS.js.map → chunk-VBBMTSOV.js.map} +0 -0
  304. /package/dist/{chunk-5QJZLJ7Q.js.map → chunk-VBVSN2TV.js.map} +0 -0
  305. /package/dist/{chunk-VL7DP3OW.js.map → chunk-VFSP73LP.js.map} +0 -0
  306. /package/dist/{chunk-KMKBD66B.js.map → chunk-XOE5DYQL.js.map} +0 -0
  307. /package/dist/{chunk-TGROC2UP.js.map → chunk-XXEOGY77.js.map} +0 -0
  308. /package/dist/{chunk-NNL4LJAD.js.map → chunk-XZ5I7OZR.js.map} +0 -0
  309. /package/dist/{chunk-7XGF5HCC.js.map → chunk-XZJMIJLW.js.map} +0 -0
  310. /package/dist/{chunk-3NN73CM7.js.map → chunk-YFBTVOMB.js.map} +0 -0
  311. /package/dist/{chunk-RZ3KJZYE.js.map → chunk-YM7IEUO7.js.map} +0 -0
  312. /package/dist/{chunk-ZT34X56N.js.map → chunk-YPL66L3U.js.map} +0 -0
  313. /package/dist/{chunk-ZZMRXJFY.js.map → chunk-ZIDSD6VC.js.map} +0 -0
  314. /package/dist/{graph-edge-decay-RXUCJIN4.js.map → contradiction-scan-SSKCAMLX.js.map} +0 -0
  315. /package/dist/{forget-WYLR4ZFV.js.map → forget-KHF7A44H.js.map} +0 -0
  316. /package/dist/{resolution-33PIX3TT.js.map → graph-edge-decay-FO7AM4UR.js.map} +0 -0
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  buildCitationGuidance
3
3
  } from "./chunk-D24OXEPB.js";
4
+ import {
5
+ applyToolOutputSchemas
6
+ } from "./chunk-5RUE3GHQ.js";
4
7
  import {
5
8
  validateRequest
6
- } from "./chunk-2MR3MFQB.js";
9
+ } from "./chunk-6Y4JTNX7.js";
7
10
  import {
8
11
  REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
9
12
  REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
@@ -12,17 +15,17 @@ import {
12
15
  } from "./chunk-T4WDJPEZ.js";
13
16
  import {
14
17
  getOperation
15
- } from "./chunk-ZT34X56N.js";
18
+ } from "./chunk-YPL66L3U.js";
16
19
  import {
17
20
  EngramAccessInputError
18
- } from "./chunk-EWGMA5W5.js";
21
+ } from "./chunk-IGF4DII6.js";
19
22
  import {
20
23
  readEnvVar
21
24
  } from "./chunk-JUC24CTX.js";
22
25
 
23
26
  // src/access-mcp.ts
24
- import { readFile as readFile2 } from "fs/promises";
25
27
  import { randomUUID as randomUUID2 } from "crypto";
28
+ import { readFile as readFile2 } from "fs/promises";
26
29
 
27
30
  // src/chat/chat-system-prompt.ts
28
31
  function buildChatSystemPrompt(opts) {
@@ -1167,11 +1170,7 @@ var MCP_READ_ONLY_TOOL_SUFFIXES = {
1167
1170
  codegraph_get_architecture: true,
1168
1171
  codegraph_search_code: true
1169
1172
  };
1170
- var MCP_SUPPORTED_PROTOCOL_VERSIONS = [
1171
- "2025-06-18",
1172
- "2025-03-26",
1173
- "2024-11-05"
1174
- ];
1173
+ var MCP_SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
1175
1174
  var MCP_DEFAULT_PROTOCOL_VERSION = MCP_SUPPORTED_PROTOCOL_VERSIONS[0] ?? "2025-06-18";
1176
1175
  var LEGACY_MCP_PREFIX = "engram.";
1177
1176
  var CANONICAL_MCP_PREFIX = "remnic.";
@@ -1304,14 +1303,7 @@ var MCP_MIGRATED_OPERATIONS = {
1304
1303
  "engram.memory_chat": "chat_message"
1305
1304
  };
1306
1305
  var STRICT_MCP_SCHEMA_KEYS = {
1307
- daySummary: [
1308
- "memories",
1309
- "sessionKey",
1310
- "namespace",
1311
- "timeZone",
1312
- "cwd",
1313
- "projectTag"
1314
- ],
1306
+ daySummary: ["memories", "sessionKey", "namespace", "timeZone", "cwd", "projectTag"],
1315
1307
  memoryStore: [
1316
1308
  "schemaVersion",
1317
1309
  "idempotencyKey",
@@ -1444,10 +1436,7 @@ var EngramMcpServer = class {
1444
1436
  }
1445
1437
  ];
1446
1438
  this.resourceTextByUri = /* @__PURE__ */ new Map([
1447
- [
1448
- REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_URI,
1449
- REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_HTML
1450
- ]
1439
+ [REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_URI, REMNIC_CHATGPT_MEMORY_INSPECTOR_WIDGET_HTML]
1451
1440
  ]);
1452
1441
  this.tools = [
1453
1442
  {
@@ -1468,7 +1457,10 @@ var EngramMcpServer = class {
1468
1457
  // without it being silently dropped.
1469
1458
  disclosure: { type: "string", enum: ["chunk", "section", "raw"] },
1470
1459
  cwd: { type: "string", description: "Working directory for auto git-context resolution." },
1471
- projectTag: { type: "string", description: "Project tag for non-git project scoping (e.g. 'blend-supply')." },
1460
+ projectTag: {
1461
+ type: "string",
1462
+ description: "Project tag for non-git project scoping (e.g. 'blend-supply')."
1463
+ },
1472
1464
  asOf: {
1473
1465
  type: "string",
1474
1466
  description: "Historical recall pin (issue #680). ISO 8601 timestamp; when set, the recall returns the corpus as it existed at this instant."
@@ -1519,7 +1511,10 @@ var EngramMcpServer = class {
1519
1511
  projectId: { type: "string", description: "Stable project id (origin:<hex> or root:<hex>)." },
1520
1512
  branch: { type: ["string", "null"], description: "Current branch, or null in detached HEAD." },
1521
1513
  rootPath: { type: "string", description: "Absolute path to the repo root." },
1522
- defaultBranch: { type: ["string", "null"], description: "Default branch (usually main/master), or null when unknown." }
1514
+ defaultBranch: {
1515
+ type: ["string", "null"],
1516
+ description: "Default branch (usually main/master), or null when unknown."
1517
+ }
1523
1518
  },
1524
1519
  required: ["projectId", "branch", "rootPath", "defaultBranch"],
1525
1520
  additionalProperties: false
@@ -1730,12 +1725,7 @@ var EngramMcpServer = class {
1730
1725
  properties: {
1731
1726
  kind: {
1732
1727
  type: "string",
1733
- enum: [
1734
- "ask-before",
1735
- "do-not-use-outside-this-context",
1736
- "never",
1737
- "requires-escalation"
1738
- ]
1728
+ enum: ["ask-before", "do-not-use-outside-this-context", "never", "requires-escalation"]
1739
1729
  },
1740
1730
  description: { type: "string" },
1741
1731
  matched: { type: "boolean" }
@@ -2175,7 +2165,10 @@ var EngramMcpServer = class {
2175
2165
  namespace: { type: "string" },
2176
2166
  skipExtraction: { type: "boolean" },
2177
2167
  cwd: { type: "string", description: "Working directory for auto git-context resolution." },
2178
- projectTag: { type: "string", description: "Project tag for non-git project scoping (e.g. 'blend-supply')." }
2168
+ projectTag: {
2169
+ type: "string",
2170
+ description: "Project tag for non-git project scoping (e.g. 'blend-supply')."
2171
+ }
2179
2172
  },
2180
2173
  required: ["sessionKey", "messages"],
2181
2174
  additionalProperties: false
@@ -2233,7 +2226,10 @@ var EngramMcpServer = class {
2233
2226
  type: "object",
2234
2227
  properties: {
2235
2228
  period: { type: "string", enum: ["weekly", "monthly"] },
2236
- key: { type: "string", description: "Period key (weekly: YYYY-Www, monthly: YYYY-MM). Defaults to current." }
2229
+ key: {
2230
+ type: "string",
2231
+ description: "Period key (weekly: YYYY-Www, monthly: YYYY-MM). Defaults to current."
2232
+ }
2237
2233
  },
2238
2234
  additionalProperties: false
2239
2235
  }
@@ -2336,7 +2332,10 @@ var EngramMcpServer = class {
2336
2332
  properties: {
2337
2333
  namespace: { type: "string" },
2338
2334
  identityTraits: { type: "string", description: "Updates for 'Identity Traits' section." },
2339
- communicationPreferences: { type: "string", description: "Updates for 'Communication Preferences' section." },
2335
+ communicationPreferences: {
2336
+ type: "string",
2337
+ description: "Updates for 'Communication Preferences' section."
2338
+ },
2340
2339
  operatingPrinciples: { type: "string", description: "Updates for 'Operating Principles' section." },
2341
2340
  continuityNotes: { type: "string", description: "Updates for 'Continuity Notes' section." }
2342
2341
  },
@@ -2546,7 +2545,10 @@ var EngramMcpServer = class {
2546
2545
  query: { type: "string" },
2547
2546
  namespace: { type: "string" },
2548
2547
  maxResults: { type: "number" },
2549
- collection: { type: "string", description: "QMD collection. With namespaces enabled, omitted, base, and 'global' searches stay scoped to readable namespaces; namespace-derived collections require matching namespace access." }
2548
+ collection: {
2549
+ type: "string",
2550
+ description: "QMD collection. With namespaces enabled, omitted, base, and 'global' searches stay scoped to readable namespaces; namespace-derived collections require matching namespace access."
2551
+ }
2550
2552
  },
2551
2553
  required: ["query"],
2552
2554
  additionalProperties: false
@@ -2629,7 +2631,10 @@ var EngramMcpServer = class {
2629
2631
  namespace: { type: "string" },
2630
2632
  limit: { type: "number", description: "Maximum number of edges to return (default 500, max 5000)." },
2631
2633
  since: { type: "string", description: "Inclusive lower bound on edge timestamp (ISO-8601)." },
2632
- focusNodeId: { type: "string", description: "When set, restrict the snapshot to the focus node and its neighbors." },
2634
+ focusNodeId: {
2635
+ type: "string",
2636
+ description: "When set, restrict the snapshot to the focus node and its neighbors."
2637
+ },
2633
2638
  categories: {
2634
2639
  type: "array",
2635
2640
  items: { type: "string" },
@@ -2742,21 +2747,29 @@ var EngramMcpServer = class {
2742
2747
  // Uses the legacy "engram.*" prefix like every other tool in this array;
2743
2748
  // withToolAliases (applied via .flatMap below) generates the canonical
2744
2749
  // "remnic.briefing" alias automatically.
2745
- ...service.briefingEnabled ? [{
2746
- name: "engram.briefing",
2747
- description: "Generate a daily context briefing by cross-referencing active entities, recent facts, open commitments, and optional calendar events.",
2748
- inputSchema: {
2749
- type: "object",
2750
- properties: {
2751
- since: { type: "string", description: "Lookback window (e.g. 'yesterday', '3d', '1w', '24h')." },
2752
- focus: { type: "string", description: "Optional focus filter (e.g. 'person:Jane Doe', 'project:remnic-core', 'topic:retrieval')." },
2753
- namespace: { type: "string" },
2754
- format: { type: "string", enum: ["markdown", "json"] },
2755
- maxFollowups: { type: "number", description: "Maximum LLM-suggested follow-ups (0 disables that section)." }
2756
- },
2757
- additionalProperties: false
2750
+ ...service.briefingEnabled ? [
2751
+ {
2752
+ name: "engram.briefing",
2753
+ description: "Generate a daily context briefing by cross-referencing active entities, recent facts, open commitments, and optional calendar events.",
2754
+ inputSchema: {
2755
+ type: "object",
2756
+ properties: {
2757
+ since: { type: "string", description: "Lookback window (e.g. 'yesterday', '3d', '1w', '24h')." },
2758
+ focus: {
2759
+ type: "string",
2760
+ description: "Optional focus filter (e.g. 'person:Jane Doe', 'project:remnic-core', 'topic:retrieval')."
2761
+ },
2762
+ namespace: { type: "string" },
2763
+ format: { type: "string", enum: ["markdown", "json"] },
2764
+ maxFollowups: {
2765
+ type: "number",
2766
+ description: "Maximum LLM-suggested follow-ups (0 disables that section)."
2767
+ }
2768
+ },
2769
+ additionalProperties: false
2770
+ }
2758
2771
  }
2759
- }] : [],
2772
+ ] : [],
2760
2773
  // ── Contradiction Review (issue #520) ────────────────────────────────
2761
2774
  {
2762
2775
  name: "engram.review_list",
@@ -2764,7 +2777,11 @@ var EngramMcpServer = class {
2764
2777
  inputSchema: {
2765
2778
  type: "object",
2766
2779
  properties: {
2767
- filter: { type: "string", enum: ["all", "unresolved", "contradicts", "independent", "duplicates", "needs-user"], description: "Filter by verdict type. Default: unresolved." },
2780
+ filter: {
2781
+ type: "string",
2782
+ enum: ["all", "unresolved", "contradicts", "independent", "duplicates", "needs-user"],
2783
+ description: "Filter by verdict type. Default: unresolved."
2784
+ },
2768
2785
  namespace: { type: "string" },
2769
2786
  limit: { type: "number", description: "Max items to return (default 50)." }
2770
2787
  },
@@ -2778,7 +2795,11 @@ var EngramMcpServer = class {
2778
2795
  type: "object",
2779
2796
  properties: {
2780
2797
  pairId: { type: "string", description: "The contradiction pair ID to resolve." },
2781
- verb: { type: "string", enum: ["keep-a", "keep-b", "merge", "both-valid", "needs-more-context"], description: "Resolution action." },
2798
+ verb: {
2799
+ type: "string",
2800
+ enum: ["keep-a", "keep-b", "merge", "both-valid", "needs-more-context"],
2801
+ description: "Resolution action."
2802
+ },
2782
2803
  mergedMemoryId: { type: "string", description: "Existing merged memory ID to use when verb is merge." },
2783
2804
  mergedContent: { type: "string", description: "Content for a new merged memory when verb is merge." }
2784
2805
  },
@@ -3019,8 +3040,14 @@ var EngramMcpServer = class {
3019
3040
  enum: ["list", "get", "record", "supersede"],
3020
3041
  description: "Which decision-record operation to run."
3021
3042
  },
3022
- sessionKey: { type: "string", description: "Session identifier whose coding context scopes the operation." },
3023
- namespace: { type: "string", description: "Optional explicit namespace (overrides coding-context overlay)." },
3043
+ sessionKey: {
3044
+ type: "string",
3045
+ description: "Session identifier whose coding context scopes the operation."
3046
+ },
3047
+ namespace: {
3048
+ type: "string",
3049
+ description: "Optional explicit namespace (overrides coding-context overlay)."
3050
+ },
3024
3051
  id: { type: "string", description: "Decision record id (required for get and supersede)." },
3025
3052
  title: { type: "string", description: "Decision title (required for record and supersede)." },
3026
3053
  status: {
@@ -3036,7 +3063,10 @@ var EngramMcpServer = class {
3036
3063
  items: { type: "string" },
3037
3064
  description: "Entity references the decision relates to."
3038
3065
  },
3039
- supersedesId: { type: "string", description: "Id of the record this decision supersedes (supersede only)." }
3066
+ supersedesId: {
3067
+ type: "string",
3068
+ description: "Id of the record this decision supersedes (supersede only)."
3069
+ }
3040
3070
  },
3041
3071
  required: ["subcommand"],
3042
3072
  additionalProperties: false
@@ -3059,8 +3089,14 @@ var EngramMcpServer = class {
3059
3089
  enum: ["get", "refresh"],
3060
3090
  description: "Which architecture-card operation to run."
3061
3091
  },
3062
- sessionKey: { type: "string", description: "Session identifier whose coding context scopes the operation." },
3063
- namespace: { type: "string", description: "Optional explicit namespace (overrides coding-context overlay)." }
3092
+ sessionKey: {
3093
+ type: "string",
3094
+ description: "Session identifier whose coding context scopes the operation."
3095
+ },
3096
+ namespace: {
3097
+ type: "string",
3098
+ description: "Optional explicit namespace (overrides coding-context overlay)."
3099
+ }
3064
3100
  },
3065
3101
  required: ["subcommand"],
3066
3102
  additionalProperties: false
@@ -3074,18 +3110,42 @@ var EngramMcpServer = class {
3074
3110
  const codegraphToolDefs = [
3075
3111
  { suffix: "index", description: "Index a repository into the code graph.", required: ["repoRoot"] },
3076
3112
  { suffix: "list_projects", description: "List code graph projects for the principal." },
3077
- { suffix: "delete_project", description: "Delete a code graph project (requires confirm: true).", required: ["confirm"] },
3113
+ {
3114
+ suffix: "delete_project",
3115
+ description: "Delete a code graph project (requires confirm: true).",
3116
+ required: ["confirm"]
3117
+ },
3078
3118
  { suffix: "index_status", description: "Get the indexing status for a project." },
3079
3119
  { suffix: "search_graph", description: "Search the code graph for symbols.", required: ["query"] },
3080
- { suffix: "trace_path", description: "Trace call/dependency paths from a starting symbol.", required: ["start"] },
3120
+ {
3121
+ suffix: "trace_path",
3122
+ description: "Trace call/dependency paths from a starting symbol.",
3123
+ required: ["start"]
3124
+ },
3081
3125
  { suffix: "detect_changes", description: "Detect changed symbols since a git ref.", required: ["head"] },
3082
- { suffix: "query_graph", description: "Run a structured query against the code graph.", required: ["structuredQuery"] },
3126
+ {
3127
+ suffix: "query_graph",
3128
+ description: "Run a structured query against the code graph.",
3129
+ required: ["structuredQuery"]
3130
+ },
3083
3131
  { suffix: "get_schema", description: "Get the code graph schema statistics." },
3084
3132
  { suffix: "get_snippet", description: "Get a source code snippet for a symbol.", required: ["qualifiedName"] },
3085
3133
  { suffix: "get_architecture", description: "Get the composed architecture card + graph stats." },
3086
- { suffix: "search_code", description: "Search the code graph for code (functions, classes, methods).", required: ["query"] },
3087
- { suffix: "manage_adr", description: "Manage ADRs via Track A decision records (list, get, record, supersede).", required: ["subcommand"] },
3088
- { suffix: "ingest_traces", description: "Ingest call-site traces to upgrade edge confidence.", required: ["traces"] }
3134
+ {
3135
+ suffix: "search_code",
3136
+ description: "Search the code graph for code (functions, classes, methods).",
3137
+ required: ["query"]
3138
+ },
3139
+ {
3140
+ suffix: "manage_adr",
3141
+ description: "Manage ADRs via Track A decision records (list, get, record, supersede).",
3142
+ required: ["subcommand"]
3143
+ },
3144
+ {
3145
+ suffix: "ingest_traces",
3146
+ description: "Ingest call-site traces to upgrade edge confidence.",
3147
+ required: ["traces"]
3148
+ }
3089
3149
  ];
3090
3150
  for (const def of codegraphToolDefs) {
3091
3151
  const tools = withToolAliases(
@@ -3095,7 +3155,10 @@ var EngramMcpServer = class {
3095
3155
  inputSchema: {
3096
3156
  type: "object",
3097
3157
  properties: {
3098
- sessionKey: { type: "string", description: "Session identifier whose coding context scopes the operation." },
3158
+ sessionKey: {
3159
+ type: "string",
3160
+ description: "Session identifier whose coding context scopes the operation."
3161
+ },
3099
3162
  project: { type: "string", description: "Explicit project id (defaults to session coding context)." },
3100
3163
  principal: { type: "string", description: "Authenticated principal override." },
3101
3164
  query: { type: "string" },
@@ -3143,8 +3206,14 @@ var EngramMcpServer = class {
3143
3206
  enum: ["get"],
3144
3207
  description: "Which delta operation to run."
3145
3208
  },
3146
- sessionKey: { type: "string", description: "Session identifier whose coding context scopes the operation." },
3147
- namespace: { type: "string", description: "Optional explicit namespace (overrides coding-context overlay)." }
3209
+ sessionKey: {
3210
+ type: "string",
3211
+ description: "Session identifier whose coding context scopes the operation."
3212
+ },
3213
+ namespace: {
3214
+ type: "string",
3215
+ description: "Optional explicit namespace (overrides coding-context overlay)."
3216
+ }
3148
3217
  },
3149
3218
  required: ["subcommand"],
3150
3219
  additionalProperties: false
@@ -3208,8 +3277,14 @@ var EngramMcpServer = class {
3208
3277
  inputSchema: {
3209
3278
  type: "object",
3210
3279
  properties: {
3211
- message: { type: "string", description: "The user's message \u2014 a question about memories, a correction request, or a confirmation (yes/apply) to proceed with a pending plan." },
3212
- chatSessionId: { type: "string", description: "Optional existing chat session id to resume. Omit to start a new session." }
3280
+ message: {
3281
+ type: "string",
3282
+ description: "The user's message \u2014 a question about memories, a correction request, or a confirmation (yes/apply) to proceed with a pending plan."
3283
+ },
3284
+ chatSessionId: {
3285
+ type: "string",
3286
+ description: "Optional existing chat session id to resume. Omit to start a new session."
3287
+ }
3213
3288
  },
3214
3289
  required: ["message"],
3215
3290
  additionalProperties: false
@@ -3222,6 +3297,7 @@ var EngramMcpServer = class {
3222
3297
  this.tools = this.tools.map(
3223
3298
  (tool) => isReadOnlyToolName(tool.name) && tool.annotations?.readOnlyHint !== true ? { ...tool, annotations: { ...tool.annotations ?? {}, readOnlyHint: true } } : tool
3224
3299
  );
3300
+ this.tools = applyToolOutputSchemas(this.tools, CANONICAL_MCP_PREFIX, LEGACY_MCP_PREFIX);
3225
3301
  }
3226
3302
  service;
3227
3303
  buffer = Buffer.alloc(0);
@@ -3440,7 +3516,14 @@ var EngramMcpServer = class {
3440
3516
  ...options?.namespaceOverride ? { namespace: options.namespaceOverride } : {},
3441
3517
  ...options?.sessionKeyOverride ? { sessionKey: options.sessionKeyOverride } : {}
3442
3518
  };
3443
- const result = await this.callTool(name, argumentsObject, effectivePrincipal, options?.sessionId, mcpScope, options?.enforceWriteQuota);
3519
+ const result = await this.callTool(
3520
+ name,
3521
+ argumentsObject,
3522
+ effectivePrincipal,
3523
+ options?.sessionId,
3524
+ mcpScope,
3525
+ options?.enforceWriteQuota
3526
+ );
3444
3527
  return {
3445
3528
  jsonrpc: "2.0",
3446
3529
  id,
@@ -3516,7 +3599,7 @@ var EngramMcpServer = class {
3516
3599
  this.buffer = Buffer.alloc(0);
3517
3600
  return;
3518
3601
  }
3519
- const contentLength = parseInt(contentLengthHeader.split(":")[1]?.trim() ?? "0", 10);
3602
+ const contentLength = Number.parseInt(contentLengthHeader.split(":")[1]?.trim() ?? "0", 10);
3520
3603
  if (!Number.isFinite(contentLength) || contentLength < 0) {
3521
3604
  this.buffer = Buffer.alloc(0);
3522
3605
  return;
@@ -3608,11 +3691,11 @@ ${body}`;
3608
3691
  async callTool(name, args, effectivePrincipal, mcpSessionId, scope, enforceWriteQuota) {
3609
3692
  const migrated = MCP_MIGRATED_OPERATIONS[toLegacyToolName(name)];
3610
3693
  if (!migrated) {
3611
- throw new Error("unknown tool: " + name);
3694
+ throw new Error(`unknown tool: ${name}`);
3612
3695
  }
3613
3696
  const op = getOperation(migrated);
3614
3697
  if (!op) {
3615
- throw new EngramAccessInputError("access-boundary: operation not registered: " + migrated);
3698
+ throw new EngramAccessInputError(`access-boundary: operation not registered: ${migrated}`);
3616
3699
  }
3617
3700
  let envelope;
3618
3701
  if (migrated === "memory_store") {
@@ -3660,13 +3743,20 @@ ${body}`;
3660
3743
  envelope = args;
3661
3744
  }
3662
3745
  if (migrated === "recall") {
3663
- const result = await op.run(envelope, { service: this.service, authenticatedPrincipal: effectivePrincipal });
3746
+ const result = await op.run(envelope, {
3747
+ service: this.service,
3748
+ authenticatedPrincipal: effectivePrincipal
3749
+ });
3664
3750
  const response = result.result;
3665
3751
  if (this.shouldEmitCitations(mcpSessionId)) {
3666
3752
  const citations = this.buildRecallCitations(response);
3667
3753
  const guidance = buildCitationGuidance(citations);
3668
3754
  if (guidance.length > 0) {
3669
- return { ...response, context: (response.context ?? "") + guidance, citations };
3755
+ return {
3756
+ ...response,
3757
+ context: (response.context ?? "") + guidance,
3758
+ citations
3759
+ };
3670
3760
  }
3671
3761
  }
3672
3762
  return response;
@@ -3694,4 +3784,4 @@ export {
3694
3784
  MCP_SUPPORTED_PROTOCOL_VERSIONS,
3695
3785
  EngramMcpServer
3696
3786
  };
3697
- //# sourceMappingURL=chunk-OP43P53G.js.map
3787
+ //# sourceMappingURL=chunk-GEVIE5NV.js.map