@remnic/core 9.50.0 → 9.50.2

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 (367) hide show
  1. package/dist/access-admin-ops-surface.d.ts +10 -10
  2. package/dist/access-admin-ops-surface.js +17 -17
  3. package/dist/access-authorization-probe.d.ts +10 -10
  4. package/dist/access-authorization-probe.js +18 -18
  5. package/dist/access-boundary.d.ts +10 -10
  6. package/dist/access-boundary.js +17 -17
  7. package/dist/access-cli.js +42 -42
  8. package/dist/access-coding-context-resolution.d.ts +1 -1
  9. package/dist/access-extraction-force-flush.d.ts +10 -10
  10. package/dist/access-extraction-force-flush.js +17 -17
  11. package/dist/access-health-types.d.ts +1 -1
  12. package/dist/access-http-lcm-compaction.d.ts +10 -10
  13. package/dist/access-http-lifecycle-flush.d.ts +10 -10
  14. package/dist/access-http-offline-stream.d.ts +10 -10
  15. package/dist/access-http-query.js +17 -17
  16. package/dist/access-http.d.ts +10 -10
  17. package/dist/access-http.js +23 -23
  18. package/dist/access-identity-continuity-surface.d.ts +8 -8
  19. package/dist/access-identity-continuity-surface.js +17 -17
  20. package/dist/access-lcm-surface.d.ts +10 -10
  21. package/dist/access-lcm-surface.js +17 -17
  22. package/dist/access-mcp.d.ts +10 -10
  23. package/dist/access-mcp.js +21 -21
  24. package/dist/access-memory-search-fanout.d.ts +2 -2
  25. package/dist/{access-namespace-preflight-DuDU301-.d.ts → access-namespace-preflight-Dj2QolFE.d.ts} +1 -1
  26. package/dist/access-namespace-preflight.d.ts +3 -3
  27. package/dist/access-namespace-preflight.js +17 -17
  28. package/dist/access-observe-write-surface.d.ts +10 -10
  29. package/dist/access-observe-write-surface.js +17 -17
  30. package/dist/access-offline-manifest.d.ts +8 -8
  31. package/dist/access-operations-batch.js +18 -18
  32. package/dist/access-operations.d.ts +10 -10
  33. package/dist/access-operations.js +20 -20
  34. package/dist/access-recall-concurrency.d.ts +10 -10
  35. package/dist/access-recall-concurrency.js +17 -17
  36. package/dist/access-recall-response.d.ts +10 -10
  37. package/dist/access-recall-response.js +17 -17
  38. package/dist/access-recall-surface.d.ts +10 -10
  39. package/dist/access-recall-surface.js +17 -17
  40. package/dist/{access-service--_3T_v23.d.ts → access-service-DesbnTSa.d.ts} +7 -7
  41. package/dist/access-service-helpers.d.ts +10 -10
  42. package/dist/access-service.d.ts +10 -10
  43. package/dist/access-service.js +17 -17
  44. package/dist/access-surface-catalog.d.ts +10 -10
  45. package/dist/access-wearables-meetings-surface.d.ts +3 -3
  46. package/dist/action-confidence.d.ts +1 -1
  47. package/dist/active-memory-bridge.d.ts +1 -1
  48. package/dist/active-recall.d.ts +1 -1
  49. package/dist/ambient-provenance.d.ts +1 -1
  50. package/dist/artifact-search.d.ts +1 -1
  51. package/dist/behavior-learner.d.ts +1 -1
  52. package/dist/behavior-signals.d.ts +1 -1
  53. package/dist/bootstrap.d.ts +8 -8
  54. package/dist/briefing.d.ts +2 -2
  55. package/dist/briefing.js +6 -6
  56. package/dist/buffer-surprise-report.d.ts +1 -1
  57. package/dist/buffer-turn-helpers.d.ts +1 -1
  58. package/dist/buffer.d.ts +2 -2
  59. package/dist/bulk-import/index.d.ts +3 -3
  60. package/dist/calibration.d.ts +1 -1
  61. package/dist/capabilities.d.ts +1 -1
  62. package/dist/{capsule-merge-KXTRZ23Z.js → capsule-merge-XMFBXVDP.js} +4 -4
  63. package/dist/{catalog-DjUmUIal.d.ts → catalog-D-G7RgXR.d.ts} +1 -1
  64. package/dist/causal-behavior.d.ts +1 -1
  65. package/dist/causal-consolidation.d.ts +1 -1
  66. package/dist/causal-consolidation.js +7 -7
  67. package/dist/causal-trajectory-graph.d.ts +1 -1
  68. package/dist/{chunk-N3CXAYPJ.js → chunk-2HGUDBRJ.js} +2 -2
  69. package/dist/{chunk-FV7YQTN3.js → chunk-2S72LWKX.js} +2 -2
  70. package/dist/{chunk-NKL25FCF.js → chunk-4MBPIL4V.js} +2 -2
  71. package/dist/{chunk-PWIMF7LP.js → chunk-5C2HNJMO.js} +12 -12
  72. package/dist/{chunk-ZN4EYMKJ.js → chunk-67QG75MJ.js} +2 -2
  73. package/dist/{chunk-JI62YGPI.js → chunk-6QPHF6RR.js} +2 -2
  74. package/dist/{chunk-4EABKPZS.js → chunk-75XOWNRS.js} +4 -4
  75. package/dist/{chunk-O76MWTVS.js → chunk-7BAYBYY5.js} +2 -2
  76. package/dist/{chunk-4JWJMRPJ.js → chunk-7PKFPLLZ.js} +2 -2
  77. package/dist/{chunk-24BKGKGO.js → chunk-BOFVT6P3.js} +5 -5
  78. package/dist/{chunk-SHYIMIX5.js → chunk-ESG7Z255.js} +2 -2
  79. package/dist/{chunk-P26YHAQH.js → chunk-EWMTOVMY.js} +51 -27
  80. package/dist/chunk-EWMTOVMY.js.map +1 -0
  81. package/dist/{chunk-WPZX7MEA.js → chunk-FXX6RQYC.js} +3 -3
  82. package/dist/{chunk-S75UQ3T3.js → chunk-GDDGZVFI.js} +2 -2
  83. package/dist/{chunk-S2SJEOTM.js → chunk-GFIKG4FR.js} +2 -2
  84. package/dist/{chunk-7NDM2PNK.js → chunk-GZICBRWK.js} +2 -2
  85. package/dist/{chunk-X4IDNPOS.js → chunk-HAEU3ZW7.js} +2 -2
  86. package/dist/{chunk-RBPH3GZV.js → chunk-IK6X5QPO.js} +26 -29
  87. package/dist/chunk-IK6X5QPO.js.map +1 -0
  88. package/dist/{chunk-GKEYXXKX.js → chunk-IXXABW5A.js} +2 -2
  89. package/dist/{chunk-GGBSF2X7.js → chunk-JB6D7EFB.js} +2 -2
  90. package/dist/{chunk-E633OXMH.js → chunk-JPHEOE6Z.js} +8 -8
  91. package/dist/{chunk-6XGEBQ3R.js → chunk-KDG2KTWW.js} +3 -3
  92. package/dist/{chunk-7BLWBSRL.js → chunk-LEJPSMKM.js} +2 -2
  93. package/dist/{chunk-JDCQK3C5.js → chunk-M4A44LUA.js} +2 -2
  94. package/dist/{chunk-ZDAYWJV6.js → chunk-NO37MR45.js} +3 -3
  95. package/dist/{chunk-PWLB4TRK.js → chunk-OQAL6SIR.js} +2 -2
  96. package/dist/{chunk-QWLW3VQH.js → chunk-PLKFO2HJ.js} +2 -2
  97. package/dist/{chunk-EURCX6PS.js → chunk-PWN32TAG.js} +2 -2
  98. package/dist/{chunk-ELQCS47S.js → chunk-PYKKWQZ2.js} +3 -3
  99. package/dist/{chunk-P4QOYG52.js → chunk-QN7NTKRC.js} +1 -1
  100. package/dist/{chunk-7VWZ4LRW.js → chunk-QW3WFHKU.js} +2 -2
  101. package/dist/{chunk-PNRA7FAD.js → chunk-RZRUV6N2.js} +104 -62
  102. package/dist/chunk-RZRUV6N2.js.map +1 -0
  103. package/dist/{chunk-3LD4N2TF.js → chunk-S3AYIQCU.js} +68 -82
  104. package/dist/chunk-S3AYIQCU.js.map +1 -0
  105. package/dist/{chunk-ZJIFYUJI.js → chunk-SV3PSA7Y.js} +2 -2
  106. package/dist/{chunk-LQKXVQZR.js → chunk-TQFHQPWD.js} +5 -5
  107. package/dist/{chunk-GSEPRIZC.js → chunk-TS4AJ2GI.js} +2 -2
  108. package/dist/{chunk-VFS3MK5F.js → chunk-V5H6OJCR.js} +2 -2
  109. package/dist/{chunk-T35UJI5R.js → chunk-V7X767RT.js} +18 -18
  110. package/dist/{chunk-4S3ECH3U.js → chunk-VJXY5ZCT.js} +2 -2
  111. package/dist/{chunk-PLCHU56K.js → chunk-YQ4IQ2GA.js} +2 -2
  112. package/dist/{chunk-LTOAJXZB.js → chunk-Z3RHPGSY.js} +3 -3
  113. package/dist/{chunk-5XCN4XBU.js → chunk-ZQOCRIGA.js} +3 -3
  114. package/dist/{cli-BLNmNEMT.d.ts → cli-D4vvtxjY.d.ts} +5 -5
  115. package/dist/cli.d.ts +12 -12
  116. package/dist/cli.js +34 -34
  117. package/dist/coding/pre-action-gate.d.ts +1 -1
  118. package/dist/compounding/engine.d.ts +2 -2
  119. package/dist/compounding/engine.js +6 -6
  120. package/dist/compounding/preference-consolidator.d.ts +1 -1
  121. package/dist/compression-optimizer.d.ts +1 -1
  122. package/dist/config.d.ts +1 -1
  123. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  124. package/dist/connectors/codex-materialize-runner.js +6 -6
  125. package/dist/connectors/codex-materialize.d.ts +1 -1
  126. package/dist/connectors/index.d.ts +2 -1
  127. package/dist/connectors/index.js +7 -7
  128. package/dist/consolidation-provenance-check.d.ts +2 -2
  129. package/dist/consolidation-provenance-check.js +4 -4
  130. package/dist/consolidation-undo.d.ts +2 -2
  131. package/dist/consolidation-undo.js +3 -3
  132. package/dist/contradiction/index.d.ts +2 -2
  133. package/dist/converge-config.d.ts +1 -1
  134. package/dist/convergence-refresh.d.ts +2 -2
  135. package/dist/convergence-refresh.js +8 -8
  136. package/dist/conversation-index/backend.d.ts +1 -1
  137. package/dist/conversation-index/chunker.d.ts +1 -1
  138. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  139. package/dist/conversation-index/indexer.d.ts +1 -1
  140. package/dist/conversation-index/search.d.ts +1 -1
  141. package/dist/corpus-watermark.d.ts +1 -1
  142. package/dist/corpus-watermark.js +8 -8
  143. package/dist/day-summary.d.ts +1 -1
  144. package/dist/delinearize.d.ts +1 -1
  145. package/dist/dependency-propagation-config.d.ts +1 -1
  146. package/dist/direct-answer-wiring.d.ts +1 -1
  147. package/dist/direct-answer.d.ts +1 -1
  148. package/dist/embedding-fallback.d.ts +1 -1
  149. package/dist/enrichment/index.d.ts +1 -1
  150. package/dist/entity-retrieval.d.ts +2 -2
  151. package/dist/entity-retrieval.js +6 -6
  152. package/dist/entity-schema.d.ts +1 -1
  153. package/dist/explicit-capture.d.ts +8 -8
  154. package/dist/explicit-capture.js +4 -4
  155. package/dist/external-wiki-access.d.ts +10 -10
  156. package/dist/external-wiki-access.js +18 -18
  157. package/dist/external-wiki-collection-registration.d.ts +1 -1
  158. package/dist/external-wiki-collection.d.ts +1 -1
  159. package/dist/external-wiki-mcp-tools.d.ts +10 -10
  160. package/dist/extraction-error-classification.d.ts +1 -1
  161. package/dist/extraction-faithfulness.d.ts +1 -1
  162. package/dist/extraction-judge-telemetry.d.ts +1 -1
  163. package/dist/extraction-judge-training.d.ts +1 -1
  164. package/dist/extraction-judge.d.ts +1 -1
  165. package/dist/extraction-liveness.d.ts +1 -1
  166. package/dist/extraction-normalization.d.ts +1 -1
  167. package/dist/extraction-prompt.d.ts +1 -1
  168. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  169. package/dist/extraction-source-grounding.d.ts +1 -1
  170. package/dist/extraction.d.ts +17 -18
  171. package/dist/extraction.js +10 -10
  172. package/dist/fallback-llm.d.ts +1 -1
  173. package/dist/{forget-GJ42LCBW.js → forget-UJDJHG6R.js} +2 -2
  174. package/dist/graph-dashboard-diff.d.ts +1 -1
  175. package/dist/graph-dashboard-key.d.ts +1 -1
  176. package/dist/graph-dashboard-parser.d.ts +1 -1
  177. package/dist/graph-edge-reinforcement.d.ts +1 -1
  178. package/dist/graph-snapshot.d.ts +1 -1
  179. package/dist/graph.d.ts +1 -1
  180. package/dist/harmonic-retrieval.js +1 -1
  181. package/dist/importance.d.ts +1 -1
  182. package/dist/importers/index.d.ts +1 -1
  183. package/dist/in-flight-reads.d.ts +1 -1
  184. package/dist/index.d.ts +19 -19
  185. package/dist/index.js +42 -42
  186. package/dist/intent.d.ts +1 -1
  187. package/dist/lcm/engine.d.ts +1 -1
  188. package/dist/lcm/index.d.ts +1 -1
  189. package/dist/lcm/tools.d.ts +1 -1
  190. package/dist/lifecycle.d.ts +1 -1
  191. package/dist/live-connectors-runner.d.ts +1 -1
  192. package/dist/local-llm.d.ts +1 -1
  193. package/dist/local-model-endpoint.d.ts +1 -1
  194. package/dist/maintenance/memory-governance.d.ts +1 -1
  195. package/dist/maintenance/memory-governance.js +6 -6
  196. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  197. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +6 -6
  198. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  199. package/dist/maintenance/rebuild-memory-projection.js +7 -7
  200. package/dist/{maintenance-DKbKZi3u.d.ts → maintenance-ClmUVpGI.d.ts} +3 -3
  201. package/dist/mcp-memory-inspector-app.d.ts +10 -10
  202. package/dist/memory-action-policy.d.ts +1 -1
  203. package/dist/memory-cache.d.ts +1 -1
  204. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  205. package/dist/memory-projection-store.d.ts +1 -1
  206. package/dist/memory-provenance.d.ts +1 -1
  207. package/dist/memory-snapshot.d.ts +1 -1
  208. package/dist/memory-worth-outcomes.d.ts +2 -2
  209. package/dist/models-json.d.ts +1 -1
  210. package/dist/namespaces/migrate.d.ts +3 -3
  211. package/dist/namespaces/migrate.js +7 -7
  212. package/dist/namespaces/principal.d.ts +1 -1
  213. package/dist/namespaces/search.d.ts +1 -1
  214. package/dist/namespaces/storage.d.ts +3 -3
  215. package/dist/namespaces/storage.js +6 -6
  216. package/dist/native-knowledge.d.ts +1 -1
  217. package/dist/offline-sync-impression-drain.d.ts +1 -1
  218. package/dist/operator-doctor-corpus.d.ts +1 -1
  219. package/dist/operator-doctor-corpus.js +9 -9
  220. package/dist/operator-doctor-replica.d.ts +1 -1
  221. package/dist/operator-toolkit.d.ts +3 -3
  222. package/dist/operator-toolkit.js +14 -14
  223. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  224. package/dist/orchestration/maintenance.d.ts +4 -4
  225. package/dist/orchestration/maintenance.js +11 -11
  226. package/dist/{orchestrator-BRwD7ceU.d.ts → orchestrator-qJ07zI8H.d.ts} +8 -12
  227. package/dist/orchestrator.d.ts +8 -8
  228. package/dist/orchestrator.js +42 -42
  229. package/dist/page-versioning.js +3 -3
  230. package/dist/patterns-cli.d.ts +1 -1
  231. package/dist/{pipeline-DC-1C9T8.d.ts → pipeline-WFCxhHOn.d.ts} +1 -1
  232. package/dist/policy-runtime.d.ts +1 -1
  233. package/dist/proactive-contention.d.ts +1 -1
  234. package/dist/provenance.d.ts +1 -1
  235. package/dist/{qmd-DdeCEZdb.d.ts → qmd-5tzkQ44y.d.ts} +1 -1
  236. package/dist/qmd-preflight.d.ts +2 -2
  237. package/dist/qmd-recall-cache.d.ts +1 -1
  238. package/dist/qmd.d.ts +2 -2
  239. package/dist/recall-concurrency-config.d.ts +1 -1
  240. package/dist/recall-disclosure-escalation.d.ts +1 -1
  241. package/dist/recall-explain-renderer.d.ts +1 -1
  242. package/dist/recall-memory-map.d.ts +1 -1
  243. package/dist/recall-planner-llm.d.ts +1 -1
  244. package/dist/recall-state.d.ts +1 -1
  245. package/dist/recall-tag-filter.d.ts +1 -1
  246. package/dist/recall-timings.d.ts +1 -1
  247. package/dist/recall-xray-cli.d.ts +1 -1
  248. package/dist/recall-xray-renderer.d.ts +1 -1
  249. package/dist/recall-xray.d.ts +1 -1
  250. package/dist/reconcile/cursor.d.ts +1 -1
  251. package/dist/reconcile/manifest.d.ts +1 -1
  252. package/dist/reconcile/plan.d.ts +1 -1
  253. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  254. package/dist/replay/normalizers/claude.d.ts +1 -1
  255. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  256. package/dist/replay/normalizers/shared.d.ts +1 -1
  257. package/dist/replay/runner.d.ts +1 -1
  258. package/dist/replay/types.d.ts +1 -1
  259. package/dist/replica-divergence.d.ts +1 -1
  260. package/dist/replica-peers-config.d.ts +1 -1
  261. package/dist/resolve-auth-token.d.ts +1 -1
  262. package/dist/retrieval-agents.d.ts +2 -2
  263. package/dist/retrieval-tiers.d.ts +1 -1
  264. package/dist/routing/engine.d.ts +1 -1
  265. package/dist/routing/store.d.ts +1 -1
  266. package/dist/salvage-envelope.d.ts +1 -1
  267. package/dist/{scope-profiles-BXVq4Jv0.d.ts → scope-profiles--vfXPl3X.d.ts} +1 -1
  268. package/dist/search/embed-helper.d.ts +1 -1
  269. package/dist/search/factory.d.ts +1 -1
  270. package/dist/search/index.d.ts +1 -1
  271. package/dist/search/lancedb-backend.d.ts +1 -1
  272. package/dist/search/meilisearch-backend.d.ts +1 -1
  273. package/dist/search/noop-backend.d.ts +1 -1
  274. package/dist/search/orama-backend.d.ts +1 -1
  275. package/dist/search/port.d.ts +1 -1
  276. package/dist/search/remote-backend.d.ts +1 -1
  277. package/dist/{semantic-consolidation-CGYxfa8F.d.ts → semantic-consolidation-BBDuP9nJ.d.ts} +1 -1
  278. package/dist/semantic-consolidation.d.ts +2 -2
  279. package/dist/semantic-consolidation.js +7 -7
  280. package/dist/semantic-rule-promotion.js +6 -6
  281. package/dist/semantic-rule-verifier.d.ts +1 -1
  282. package/dist/semantic-rule-verifier.js +6 -6
  283. package/dist/{service-CBDBQFCN.d.ts → service-B8DtbpCM.d.ts} +2 -2
  284. package/dist/session-observer-bands.d.ts +1 -1
  285. package/dist/session-observer-state.d.ts +1 -1
  286. package/dist/shared-context/manager.d.ts +1 -1
  287. package/dist/signal.d.ts +1 -1
  288. package/dist/source-agent-qualifier.d.ts +1 -1
  289. package/dist/source-agent-qualifier.js +9 -9
  290. package/dist/{storage-V--MQi7w.d.ts → storage-BkYN1RIy.d.ts} +1 -1
  291. package/dist/storage.d.ts +2 -2
  292. package/dist/storage.js +5 -5
  293. package/dist/summarizer.d.ts +1 -1
  294. package/dist/summary-snapshot.d.ts +1 -1
  295. package/dist/temporal-supersession.d.ts +2 -2
  296. package/dist/temporal-supersession.js +1 -1
  297. package/dist/temporal-timeline-recall.d.ts +1 -1
  298. package/dist/temporal-validity.d.ts +1 -1
  299. package/dist/threading.d.ts +1 -1
  300. package/dist/tier-migration.d.ts +2 -2
  301. package/dist/tier-routing.d.ts +1 -1
  302. package/dist/topics.d.ts +1 -1
  303. package/dist/transcript.d.ts +1 -1
  304. package/dist/transfer/capsule-import.js +4 -4
  305. package/dist/trust-score-stage.d.ts +1 -1
  306. package/dist/trust-score.d.ts +1 -1
  307. package/dist/{types-D_a6Sqjz.d.ts → types-u2s9j1uD.d.ts} +1 -1
  308. package/dist/types.d.ts +1 -1
  309. package/dist/utility-runtime.d.ts +1 -1
  310. package/dist/verified-recall.js +6 -6
  311. package/dist/write-envelope.d.ts +1 -1
  312. package/package.json +2 -2
  313. package/src/connectors/index.ts +40 -112
  314. package/src/dependency-revalidation-routing.test.ts +165 -0
  315. package/src/extraction.ts +46 -31
  316. package/src/orchestration/dependency-propagation.test.ts +89 -8
  317. package/src/orchestration/dependency-propagation.ts +60 -27
  318. package/src/orchestration/dependency-revalidation.test.ts +119 -0
  319. package/src/orchestration/dependency-revalidation.ts +31 -82
  320. package/src/orchestrator.ts +5 -7
  321. package/src/runtime/daemon-health.ts +53 -0
  322. package/src/runtime/http-transport.ts +25 -0
  323. package/src/testing/subjects/dependency-propagation.test.ts +367 -0
  324. package/dist/chunk-3LD4N2TF.js.map +0 -1
  325. package/dist/chunk-P26YHAQH.js.map +0 -1
  326. package/dist/chunk-PNRA7FAD.js.map +0 -1
  327. package/dist/chunk-RBPH3GZV.js.map +0 -1
  328. /package/dist/{capsule-merge-KXTRZ23Z.js.map → capsule-merge-XMFBXVDP.js.map} +0 -0
  329. /package/dist/{chunk-N3CXAYPJ.js.map → chunk-2HGUDBRJ.js.map} +0 -0
  330. /package/dist/{chunk-FV7YQTN3.js.map → chunk-2S72LWKX.js.map} +0 -0
  331. /package/dist/{chunk-NKL25FCF.js.map → chunk-4MBPIL4V.js.map} +0 -0
  332. /package/dist/{chunk-PWIMF7LP.js.map → chunk-5C2HNJMO.js.map} +0 -0
  333. /package/dist/{chunk-ZN4EYMKJ.js.map → chunk-67QG75MJ.js.map} +0 -0
  334. /package/dist/{chunk-JI62YGPI.js.map → chunk-6QPHF6RR.js.map} +0 -0
  335. /package/dist/{chunk-4EABKPZS.js.map → chunk-75XOWNRS.js.map} +0 -0
  336. /package/dist/{chunk-O76MWTVS.js.map → chunk-7BAYBYY5.js.map} +0 -0
  337. /package/dist/{chunk-4JWJMRPJ.js.map → chunk-7PKFPLLZ.js.map} +0 -0
  338. /package/dist/{chunk-24BKGKGO.js.map → chunk-BOFVT6P3.js.map} +0 -0
  339. /package/dist/{chunk-SHYIMIX5.js.map → chunk-ESG7Z255.js.map} +0 -0
  340. /package/dist/{chunk-WPZX7MEA.js.map → chunk-FXX6RQYC.js.map} +0 -0
  341. /package/dist/{chunk-S75UQ3T3.js.map → chunk-GDDGZVFI.js.map} +0 -0
  342. /package/dist/{chunk-S2SJEOTM.js.map → chunk-GFIKG4FR.js.map} +0 -0
  343. /package/dist/{chunk-7NDM2PNK.js.map → chunk-GZICBRWK.js.map} +0 -0
  344. /package/dist/{chunk-X4IDNPOS.js.map → chunk-HAEU3ZW7.js.map} +0 -0
  345. /package/dist/{chunk-GKEYXXKX.js.map → chunk-IXXABW5A.js.map} +0 -0
  346. /package/dist/{chunk-GGBSF2X7.js.map → chunk-JB6D7EFB.js.map} +0 -0
  347. /package/dist/{chunk-E633OXMH.js.map → chunk-JPHEOE6Z.js.map} +0 -0
  348. /package/dist/{chunk-6XGEBQ3R.js.map → chunk-KDG2KTWW.js.map} +0 -0
  349. /package/dist/{chunk-7BLWBSRL.js.map → chunk-LEJPSMKM.js.map} +0 -0
  350. /package/dist/{chunk-JDCQK3C5.js.map → chunk-M4A44LUA.js.map} +0 -0
  351. /package/dist/{chunk-ZDAYWJV6.js.map → chunk-NO37MR45.js.map} +0 -0
  352. /package/dist/{chunk-PWLB4TRK.js.map → chunk-OQAL6SIR.js.map} +0 -0
  353. /package/dist/{chunk-QWLW3VQH.js.map → chunk-PLKFO2HJ.js.map} +0 -0
  354. /package/dist/{chunk-EURCX6PS.js.map → chunk-PWN32TAG.js.map} +0 -0
  355. /package/dist/{chunk-ELQCS47S.js.map → chunk-PYKKWQZ2.js.map} +0 -0
  356. /package/dist/{chunk-P4QOYG52.js.map → chunk-QN7NTKRC.js.map} +0 -0
  357. /package/dist/{chunk-7VWZ4LRW.js.map → chunk-QW3WFHKU.js.map} +0 -0
  358. /package/dist/{chunk-ZJIFYUJI.js.map → chunk-SV3PSA7Y.js.map} +0 -0
  359. /package/dist/{chunk-LQKXVQZR.js.map → chunk-TQFHQPWD.js.map} +0 -0
  360. /package/dist/{chunk-GSEPRIZC.js.map → chunk-TS4AJ2GI.js.map} +0 -0
  361. /package/dist/{chunk-VFS3MK5F.js.map → chunk-V5H6OJCR.js.map} +0 -0
  362. /package/dist/{chunk-T35UJI5R.js.map → chunk-V7X767RT.js.map} +0 -0
  363. /package/dist/{chunk-4S3ECH3U.js.map → chunk-VJXY5ZCT.js.map} +0 -0
  364. /package/dist/{chunk-PLCHU56K.js.map → chunk-YQ4IQ2GA.js.map} +0 -0
  365. /package/dist/{chunk-LTOAJXZB.js.map → chunk-Z3RHPGSY.js.map} +0 -0
  366. /package/dist/{chunk-5XCN4XBU.js.map → chunk-ZQOCRIGA.js.map} +0 -0
  367. /package/dist/{forget-GJ42LCBW.js.map → forget-UJDJHG6R.js.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  pathMayCarryEntityRefs,
3
3
  requestEntityCanonicalIdReconcile,
4
4
  withRawEntityPageMutation
5
- } from "./chunk-JDCQK3C5.js";
5
+ } from "./chunk-M4A44LUA.js";
6
6
  import {
7
7
  CONTENT_HASH_INDEX_RETRY_MAX_DELAY_MS,
8
8
  ContentHashIndex
@@ -1371,4 +1371,4 @@ export {
1371
1371
  parseTombstoneBlockedOfflineSyncMemory,
1372
1372
  TombstoneBlockedCaptureIndexHost
1373
1373
  };
1374
- //# sourceMappingURL=chunk-GKEYXXKX.js.map
1374
+ //# sourceMappingURL=chunk-IXXABW5A.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-JLNBQWZ2.js";
6
6
  import {
7
7
  runPostConsolidationMaterialize
8
- } from "./chunk-NKL25FCF.js";
8
+ } from "./chunk-4MBPIL4V.js";
9
9
  import {
10
10
  isSemanticConsolidationLlmOperator
11
11
  } from "./chunk-G7D6GZ5J.js";
@@ -220,4 +220,4 @@ export {
220
220
  buildExtensionsBlockForConsolidation,
221
221
  materializeAfterSemanticConsolidation
222
222
  };
223
- //# sourceMappingURL=chunk-GGBSF2X7.js.map
223
+ //# sourceMappingURL=chunk-JB6D7EFB.js.map
@@ -3,7 +3,7 @@ import {
3
3
  readNamespaceMaintenanceLastRanStatuses,
4
4
  readNamespaceMaintenanceStatuses,
5
5
  runNamespaceMaintenancePlan
6
- } from "./chunk-O76MWTVS.js";
6
+ } from "./chunk-7BAYBYY5.js";
7
7
  import {
8
8
  analyzeSessionIntegrity,
9
9
  applySessionRepair,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-CMTINOFS.js";
15
15
  import {
16
16
  summarizeCorpusAndReplica
17
- } from "./chunk-SHYIMIX5.js";
17
+ } from "./chunk-ESG7Z255.js";
18
18
  import {
19
19
  readJudgeVerdictStats
20
20
  } from "./chunk-OZKOPQCM.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-MCA2X4WH.js";
28
28
  import {
29
29
  runConsolidationProvenanceCheck
30
- } from "./chunk-EURCX6PS.js";
30
+ } from "./chunk-PWN32TAG.js";
31
31
  import {
32
32
  resolveCuratedIncludeFilesStatePath,
33
33
  resolveNativeKnowledgeStatePath,
@@ -41,20 +41,20 @@ import {
41
41
  } from "./chunk-A4QMKFFO.js";
42
42
  import {
43
43
  readAggregateExtractionWatermark
44
- } from "./chunk-FV7YQTN3.js";
44
+ } from "./chunk-2S72LWKX.js";
45
45
  import {
46
46
  listNamespaces
47
- } from "./chunk-GSEPRIZC.js";
47
+ } from "./chunk-TS4AJ2GI.js";
48
48
  import {
49
49
  listMemoryGovernanceRuns,
50
50
  readMemoryGovernanceRunArtifact
51
- } from "./chunk-WPZX7MEA.js";
51
+ } from "./chunk-FXX6RQYC.js";
52
52
  import {
53
53
  analyzeGraphHealth
54
54
  } from "./chunk-L2DPF4DF.js";
55
55
  import {
56
56
  StorageManager
57
- } from "./chunk-24BKGKGO.js";
57
+ } from "./chunk-BOFVT6P3.js";
58
58
  import {
59
59
  lintWorkspaceFiles
60
60
  } from "./chunk-DM2T26WE.js";
@@ -1683,4 +1683,4 @@ export {
1683
1683
  runBenchmarkRecall,
1684
1684
  runOperatorRepair
1685
1685
  };
1686
- //# sourceMappingURL=chunk-E633OXMH.js.map
1686
+ //# sourceMappingURL=chunk-JPHEOE6Z.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  externalWikiSearchOperation
3
- } from "./chunk-QWLW3VQH.js";
3
+ } from "./chunk-PLKFO2HJ.js";
4
4
  import {
5
5
  memoryStoreRequestSchema
6
6
  } from "./chunk-LYMNZZIM.js";
@@ -10,7 +10,7 @@ import {
10
10
  DELTA_SUBCOMMANDS,
11
11
  defineOperation,
12
12
  isCodegraphToolName
13
- } from "./chunk-PWIMF7LP.js";
13
+ } from "./chunk-5C2HNJMO.js";
14
14
  import {
15
15
  serializeMutations,
16
16
  withHeldFileLock
@@ -1818,4 +1818,4 @@ export {
1818
1818
  codegraphIngestTracesOperation,
1819
1819
  REGISTERED_OPERATIONS
1820
1820
  };
1821
- //# sourceMappingURL=chunk-6XGEBQ3R.js.map
1821
+ //# sourceMappingURL=chunk-KDG2KTWW.js.map
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-YYQAKIDJ.js";
26
26
  import {
27
27
  getOperation
28
- } from "./chunk-PWIMF7LP.js";
28
+ } from "./chunk-5C2HNJMO.js";
29
29
  import {
30
30
  assertOperationAllowed,
31
31
  capabilityAllowsOp,
@@ -3761,4 +3761,4 @@ export {
3761
3761
  MCP_SUPPORTED_PROTOCOL_VERSIONS,
3762
3762
  EngramMcpServer
3763
3763
  };
3764
- //# sourceMappingURL=chunk-7BLWBSRL.js.map
3764
+ //# sourceMappingURL=chunk-LEJPSMKM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeSupersessionKey
3
- } from "./chunk-P26YHAQH.js";
3
+ } from "./chunk-EWMTOVMY.js";
4
4
  import {
5
5
  invalidateForScope
6
6
  } from "./chunk-XMMESCPD.js";
@@ -383,4 +383,4 @@ export {
383
383
  repairContentAfterJournalMove,
384
384
  repairContentAfterJournalMoveSync
385
385
  };
386
- //# sourceMappingURL=chunk-JDCQK3C5.js.map
386
+ //# sourceMappingURL=chunk-M4A44LUA.js.map
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  CONNECTOR_LABEL_MAX_LENGTH,
6
6
  knownConnectorIds
7
- } from "./chunk-X4IDNPOS.js";
7
+ } from "./chunk-HAEU3ZW7.js";
8
8
  import {
9
9
  isValidConnectorId
10
- } from "./chunk-PNRA7FAD.js";
10
+ } from "./chunk-RZRUV6N2.js";
11
11
  import {
12
12
  deriveSourceConnector
13
13
  } from "./chunk-N3LL5NEU.js";
@@ -108,4 +108,4 @@ export {
108
108
  renderExtractionConversation,
109
109
  applyGroundingWithConnector
110
110
  };
111
- //# sourceMappingURL=chunk-ZDAYWJV6.js.map
111
+ //# sourceMappingURL=chunk-NO37MR45.js.map
@@ -5,7 +5,7 @@ import {
5
5
  pathMayCarryEntityRefs,
6
6
  requestEntityCanonicalIdReconcile,
7
7
  withRawEntityPageMutation
8
- } from "./chunk-JDCQK3C5.js";
8
+ } from "./chunk-M4A44LUA.js";
9
9
  import {
10
10
  ALL_CATEGORY_DIRS,
11
11
  RECALL_FALLBACK_DIRS
@@ -281,4 +281,4 @@ export {
281
281
  revertToVersion,
282
282
  diffVersions
283
283
  };
284
- //# sourceMappingURL=chunk-PWLB4TRK.js.map
284
+ //# sourceMappingURL=chunk-OQAL6SIR.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7T4TOGMS.js";
4
4
  import {
5
5
  defineOperation
6
- } from "./chunk-PWIMF7LP.js";
6
+ } from "./chunk-5C2HNJMO.js";
7
7
 
8
8
  // src/external-wiki-access.ts
9
9
  import { z } from "zod";
@@ -26,4 +26,4 @@ var externalWikiSearchOperation = defineOperation({
26
26
  export {
27
27
  externalWikiSearchOperation
28
28
  };
29
- //# sourceMappingURL=chunk-QWLW3VQH.js.map
29
+ //# sourceMappingURL=chunk-PLKFO2HJ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-G7D6GZ5J.js";
5
5
  import {
6
6
  sidecarKey
7
- } from "./chunk-PWLB4TRK.js";
7
+ } from "./chunk-OQAL6SIR.js";
8
8
  import {
9
9
  RECALL_FALLBACK_DIRS
10
10
  } from "./chunk-VS2IYZRU.js";
@@ -342,4 +342,4 @@ function isPathWithin(candidate, root) {
342
342
  export {
343
343
  runConsolidationProvenanceCheck
344
344
  };
345
- //# sourceMappingURL=chunk-EURCX6PS.js.map
345
+ //# sourceMappingURL=chunk-PWN32TAG.js.map
@@ -28,10 +28,10 @@ import {
28
28
  defineOperation,
29
29
  parseNamespacePreflightWriteOp,
30
30
  resolveAuthorizedNamespaceWritablePreflight
31
- } from "./chunk-PWIMF7LP.js";
31
+ } from "./chunk-5C2HNJMO.js";
32
32
  import {
33
33
  validateBriefingFormat
34
- } from "./chunk-4S3ECH3U.js";
34
+ } from "./chunk-VJXY5ZCT.js";
35
35
  import {
36
36
  enforceNamespaceAllowList,
37
37
  tokenCapabilityStore
@@ -494,4 +494,4 @@ defineOperation({ name: "graph_events", description: "SSE graph events.", schema
494
494
  defineOperation({ name: "chat_message", description: "Chat message.", schema: strictSchema({ message: S.str, chatSessionId: S.str }), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
495
495
  defineOperation({ name: "chat_events", description: "SSE chat events.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { stream: "sse" } }) });
496
496
  defineOperation({ name: "adapters_status", description: "Adapter registry metadata (issue #1850 round 5). Marker op: the HTTP transport builds the response from its own adapterRegistry, but the op still must be registered so it appears in listRegisteredOperations and enforceTokenOp can gate it for scoped tokens.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
497
- //# sourceMappingURL=chunk-ELQCS47S.js.map
497
+ //# sourceMappingURL=chunk-PYKKWQZ2.js.map
@@ -279,4 +279,4 @@ async function searchHarmonicRetrieval(options) {
279
279
  export {
280
280
  searchHarmonicRetrieval
281
281
  };
282
- //# sourceMappingURL=chunk-P4QOYG52.js.map
282
+ //# sourceMappingURL=chunk-QN7NTKRC.js.map
@@ -2,7 +2,7 @@ import {
2
2
  OPERATION_NAMES,
3
3
  getOperation,
4
4
  operationRequiresAuthorizedNamespace
5
- } from "./chunk-PWIMF7LP.js";
5
+ } from "./chunk-5C2HNJMO.js";
6
6
  import {
7
7
  assertOperationAuthorizationAllowed
8
8
  } from "./chunk-MZWSOLMT.js";
@@ -49,4 +49,4 @@ export {
49
49
  probeOperationAuthorization,
50
50
  authorizationProbeNamespaces
51
51
  };
52
- //# sourceMappingURL=chunk-7VWZ4LRW.js.map
52
+ //# sourceMappingURL=chunk-QW3WFHKU.js.map
@@ -11,6 +11,7 @@ import {
11
11
  getRegistryPath
12
12
  } from "./chunk-K6MV3TRQ.js";
13
13
  import {
14
+ coerceBool,
14
15
  coerceInstallExtension
15
16
  } from "./chunk-PQVCH2AE.js";
16
17
  import {
@@ -38,6 +39,70 @@ import os from "os";
38
39
  import { createRequire } from "module";
39
40
  import { fileURLToPath } from "url";
40
41
 
42
+ // src/runtime/http-transport.ts
43
+ import { isIP } from "net";
44
+ function normalizedIp(host) {
45
+ const value = host.trim().replace(/^\[/, "").replace(/\]\.?$/, "").replace(/\.$/, "");
46
+ if (isIP(value) === 4) return value;
47
+ if (isIP(value) !== 6) return "";
48
+ return new URL(`http://[${value}]/`).hostname.slice(1, -1);
49
+ }
50
+ function isLoopbackHost(host) {
51
+ const normalized = host.trim().replace(/^\[/, "").replace(/\]\.?$/, "").replace(/\.$/, "").toLowerCase();
52
+ if (normalized === "localhost" || normalized.endsWith(".localhost")) return true;
53
+ const ip = normalizedIp(normalized);
54
+ if (ip === "::1") return true;
55
+ if (isIP(ip) === 4) return ip.startsWith("127.");
56
+ if (!ip.startsWith("::ffff:")) return false;
57
+ const [high, low] = ip.slice("::ffff:".length).split(":");
58
+ return Number.parseInt(high, 16) >>> 8 === 127 || high === "0" && Number.parseInt(low, 16) >>> 8 === 127;
59
+ }
60
+ function httpProtocolForHost(host, allowInsecureHttp = false) {
61
+ return isLoopbackHost(host) || allowInsecureHttp ? "http" : "https";
62
+ }
63
+
64
+ // src/runtime/daemon-health.ts
65
+ var HEALTH_EXIT_OK = 0;
66
+ var HEALTH_EXIT_UNAUTHORIZED = 2;
67
+ function checkDaemonHealth(host, port, authToken, allowInsecureHttp = false) {
68
+ try {
69
+ const safePort = Math.trunc(Number(port));
70
+ if (!Number.isFinite(safePort) || safePort < 1 || safePort > 65535) return false;
71
+ const bareHost = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
72
+ const script = [
73
+ "const env = process['env'];",
74
+ "const protocol = env.REMNIC_HEALTH_PROTOCOL;",
75
+ "if (protocol !== 'http' && protocol !== 'https') process.exit(1);",
76
+ "const transport = require(protocol);",
77
+ "const headers = {};",
78
+ "if (env.REMNIC_HEALTH_TOKEN) headers['authorization'] = 'Bearer ' + env.REMNIC_HEALTH_TOKEN;",
79
+ "const req = transport.get({",
80
+ " host: env.REMNIC_HEALTH_HOST,",
81
+ " port: parseInt(env.REMNIC_HEALTH_PORT, 10),",
82
+ " path: '/engram/v1/health', headers, timeout: 3000,",
83
+ "}, (res) => { process.exit(res.statusCode === 200 ? 0 : res.statusCode === 401 ? 2 : 1); });",
84
+ "req.on('error', () => process.exit(1));",
85
+ "req.on('timeout', () => { req.destroy(); process.exit(1); });"
86
+ ].join("\n");
87
+ const env = mergeEnv({
88
+ REMNIC_HEALTH_HOST: bareHost,
89
+ REMNIC_HEALTH_PORT: String(safePort),
90
+ REMNIC_HEALTH_PROTOCOL: httpProtocolForHost(host, allowInsecureHttp)
91
+ });
92
+ if (authToken) env.REMNIC_HEALTH_TOKEN = authToken;
93
+ const launchOptions = { timeout: 4e3, env };
94
+ const result = launchProcessSync(process.execPath, ["-e", script], launchOptions);
95
+ if (result.status === HEALTH_EXIT_OK) return true;
96
+ if (result.status !== HEALTH_EXIT_UNAUTHORIZED) return false;
97
+ console.error("[remnic/connectors] health probe got 401 \u2014 retrying after token cache TTL...");
98
+ launchProcessSync(process.execPath, ["-e", "setTimeout(() => {}, 6000)"], { timeout: 7e3, env: {} });
99
+ const retry = launchProcessSync(process.execPath, ["-e", script], launchOptions);
100
+ return retry.status === HEALTH_EXIT_OK;
101
+ } catch {
102
+ return false;
103
+ }
104
+ }
105
+
41
106
  // src/connectors/hermes-shim.ts
42
107
  import fs from "fs";
43
108
  import path from "path";
@@ -1208,9 +1273,11 @@ function installConnector(options) {
1208
1273
  let hermesSavedProfile;
1209
1274
  let hermesSavedHost;
1210
1275
  let hermesSavedPort;
1276
+ let hermesSavedAllowInsecureHttp;
1211
1277
  let hermesResolvedProfile;
1212
1278
  let hermesResolvedHost;
1213
1279
  let hermesResolvedPort;
1280
+ let hermesResolvedAllowInsecureHttp = false;
1214
1281
  if (options.connectorId === "hermes") {
1215
1282
  if (fs3.existsSync(configPath)) {
1216
1283
  try {
@@ -1234,11 +1301,15 @@ function installConnector(options) {
1234
1301
  } catch {
1235
1302
  }
1236
1303
  }
1304
+ if (prev?.allow_insecure_http != null) {
1305
+ hermesSavedAllowInsecureHttp = coerceBool(prev.allow_insecure_http, "allow_insecure_http");
1306
+ }
1237
1307
  } catch {
1238
1308
  }
1239
1309
  }
1240
1310
  hermesResolvedProfile = hermesSavedProfile ?? "default";
1241
1311
  hermesResolvedHost = hermesSavedHost ?? "127.0.0.1";
1312
+ hermesResolvedAllowInsecureHttp = hermesSavedAllowInsecureHttp ?? false;
1242
1313
  if (options.config?.port !== void 0) {
1243
1314
  try {
1244
1315
  hermesResolvedPort = sanitizeHermesPort(Number(String(options.config.port)));
@@ -1275,6 +1346,17 @@ function installConnector(options) {
1275
1346
  };
1276
1347
  }
1277
1348
  }
1349
+ if (options.config?.allow_insecure_http !== void 0) {
1350
+ const allowInsecureHttp = coerceBool(options.config.allow_insecure_http, "allow_insecure_http");
1351
+ if (allowInsecureHttp === void 0) {
1352
+ return {
1353
+ connectorId: options.connectorId,
1354
+ status: "error",
1355
+ message: "Invalid Hermes config: allow_insecure_http must be true or false"
1356
+ };
1357
+ }
1358
+ hermesResolvedAllowInsecureHttp = allowInsecureHttp;
1359
+ }
1278
1360
  }
1279
1361
  const nonHermesPriorTokenStore = options.connectorId !== "hermes" && manifest.requiresToken ? loadTokenStore() : null;
1280
1362
  let tokenEntry = null;
@@ -1317,7 +1399,8 @@ function installConnector(options) {
1317
1399
  ...hermesResolvedProfile !== void 0 ? {
1318
1400
  profile: hermesResolvedProfile,
1319
1401
  host: hermesResolvedHost,
1320
- port: hermesResolvedPort
1402
+ port: hermesResolvedPort,
1403
+ allow_insecure_http: hermesResolvedAllowInsecureHttp
1321
1404
  } : {}
1322
1405
  };
1323
1406
  if (options.connectorId === "hermes") {
@@ -1356,7 +1439,8 @@ function installConnector(options) {
1356
1439
  profile: hermesProfile,
1357
1440
  host: hermesHost,
1358
1441
  port: hermesPort,
1359
- token: tokenEntry.token
1442
+ token: tokenEntry.token,
1443
+ allowInsecureHttp: hermesResolvedAllowInsecureHttp
1360
1444
  });
1361
1445
  } catch (err) {
1362
1446
  return {
@@ -1469,7 +1553,8 @@ function installConnector(options) {
1469
1553
  const refresh = upsertHermesConfigAt(priorConfigPath, {
1470
1554
  host: hermesHost,
1471
1555
  port: hermesPort,
1472
- token: tokenEntry.token
1556
+ token: tokenEntry.token,
1557
+ allowInsecureHttp: hermesResolvedAllowInsecureHttp
1473
1558
  });
1474
1559
  if (refresh.updated) {
1475
1560
  hermesPriorConfigMutations.push({ mutatedPath: priorConfigPath, priorContent: beforeRefresh });
@@ -1680,7 +1765,12 @@ function installConnector(options) {
1680
1765
  }
1681
1766
  }
1682
1767
  if (committed && tokenEntry) {
1683
- const daemonOk = checkDaemonHealth(hermesHost, hermesPort, tokenEntry.token);
1768
+ const daemonOk = checkDaemonHealth(
1769
+ hermesHost,
1770
+ hermesPort,
1771
+ tokenEntry.token,
1772
+ hermesResolvedAllowInsecureHttp
1773
+ );
1684
1774
  if (daemonOk) {
1685
1775
  notes.push("Daemon health check: OK");
1686
1776
  } else {
@@ -2331,6 +2421,7 @@ function upsertHermesConfigAt(cfgPath, opts) {
2331
2421
  const profileDir = path3.dirname(cfgPath);
2332
2422
  const safeHost = sanitizeHermesHost(opts.host);
2333
2423
  const safePort = sanitizeHermesPort(opts.port);
2424
+ const allowInsecureHttp = opts.allowInsecureHttp ?? false;
2334
2425
  if (!/^[A-Za-z0-9_]+$/.test(opts.token)) {
2335
2426
  throw new Error("Invalid Hermes token: contains non-alphanumeric characters");
2336
2427
  }
@@ -2346,7 +2437,8 @@ function upsertHermesConfigAt(cfgPath, opts) {
2346
2437
  "remnic:",
2347
2438
  ` host: "${safeHost}"`,
2348
2439
  ` port: ${safePort}`,
2349
- ` token: "${opts.token}"`
2440
+ ` token: "${opts.token}"`,
2441
+ ` allow_insecure_http: ${allowInsecureHttp}`
2350
2442
  ].join("\n");
2351
2443
  if (!fs3.existsSync(cfgPath)) {
2352
2444
  writeSecretFileSync(cfgPath, block + "\n");
@@ -2367,7 +2459,7 @@ function upsertHermesConfigAt(cfgPath, opts) {
2367
2459
  const newLines = [];
2368
2460
  let inRemnicBlock = false;
2369
2461
  let blockWritten = false;
2370
- const written = { host: false, port: false, token: false };
2462
+ const written = { host: false, port: false, token: false, allowInsecureHttp: false };
2371
2463
  for (let i = 0; i < lines.length; i++) {
2372
2464
  const line = lines[i];
2373
2465
  if (/^remnic:/.test(line)) {
@@ -2380,6 +2472,7 @@ function upsertHermesConfigAt(cfgPath, opts) {
2380
2472
  if (!written.host) newLines.push(` host: "${safeHost}"`);
2381
2473
  if (!written.port) newLines.push(` port: ${safePort}`);
2382
2474
  if (!written.token) newLines.push(` token: "${opts.token}"`);
2475
+ if (!written.allowInsecureHttp) newLines.push(` allow_insecure_http: ${allowInsecureHttp}`);
2383
2476
  blockWritten = true;
2384
2477
  inRemnicBlock = false;
2385
2478
  newLines.push(line);
@@ -2394,6 +2487,9 @@ function upsertHermesConfigAt(cfgPath, opts) {
2394
2487
  } else if (/^\s+token:/.test(line)) {
2395
2488
  newLines.push(` token: "${opts.token}"`);
2396
2489
  written.token = true;
2490
+ } else if (/^\s+allow_insecure_http:/.test(line)) {
2491
+ newLines.push(` allow_insecure_http: ${allowInsecureHttp}`);
2492
+ written.allowInsecureHttp = true;
2397
2493
  } else {
2398
2494
  newLines.push(line);
2399
2495
  }
@@ -2405,6 +2501,7 @@ function upsertHermesConfigAt(cfgPath, opts) {
2405
2501
  if (!written.host) newLines.push(` host: "${safeHost}"`);
2406
2502
  if (!written.port) newLines.push(` port: ${safePort}`);
2407
2503
  if (!written.token) newLines.push(` token: "${opts.token}"`);
2504
+ if (!written.allowInsecureHttp) newLines.push(` allow_insecure_http: ${allowInsecureHttp}`);
2408
2505
  }
2409
2506
  writeSecretFileSync(cfgPath, newLines.join("\n") + "\n");
2410
2507
  return { updated: true, skipped: false, configPath: cfgPath, priorContent: raw };
@@ -2535,61 +2632,6 @@ function removeHermesConfigFile(cfgPath) {
2535
2632
  writeSecretFileSync(cfgPath, newLines.length > 0 ? newLines.join("\n") + "\n" : "");
2536
2633
  return { updated: true, skipped: false, configPath: cfgPath };
2537
2634
  }
2538
- var HEALTH_EXIT_OK = 0;
2539
- var HEALTH_EXIT_UNAUTHORIZED = 2;
2540
- function checkDaemonHealth(host, port, authToken) {
2541
- try {
2542
- const safePort = Math.trunc(Number(port));
2543
- if (!Number.isFinite(safePort) || safePort < 1 || safePort > 65535) {
2544
- return false;
2545
- }
2546
- const bareHost = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
2547
- const script = [
2548
- "const http = require('http');",
2549
- "const env = process['env'];",
2550
- "const headers = {};",
2551
- "if (env.REMNIC_HEALTH_TOKEN) {",
2552
- " headers['authorization'] = 'Bearer ' + env.REMNIC_HEALTH_TOKEN;",
2553
- "}",
2554
- "const req = http.get({",
2555
- " host: env.REMNIC_HEALTH_HOST,",
2556
- " port: parseInt(env.REMNIC_HEALTH_PORT, 10),",
2557
- " path: '/engram/v1/health',",
2558
- " headers,",
2559
- " timeout: 3000,",
2560
- "}, (res) => { process.exit(res.statusCode === 200 ? 0 : res.statusCode === 401 ? 2 : 1); });",
2561
- "req.on('error', () => process.exit(1));",
2562
- "req.on('timeout', () => { req.destroy(); process.exit(1); });"
2563
- ].join("\n");
2564
- const env = mergeEnv({
2565
- REMNIC_HEALTH_HOST: bareHost,
2566
- REMNIC_HEALTH_PORT: String(safePort)
2567
- });
2568
- if (authToken) {
2569
- env.REMNIC_HEALTH_TOKEN = authToken;
2570
- }
2571
- const processPath = process.execPath;
2572
- const launchOptions = { timeout: 4e3, env };
2573
- const result = launchProcessSync(processPath, ["-e", script], launchOptions);
2574
- if (result.status === HEALTH_EXIT_OK) {
2575
- return true;
2576
- }
2577
- if (result.status === HEALTH_EXIT_UNAUTHORIZED) {
2578
- console.error(
2579
- "[remnic/connectors] health probe got 401 \u2014 retrying after token cache TTL..."
2580
- );
2581
- launchProcessSync(processPath, ["-e", "setTimeout(() => {}, 6000)"], {
2582
- timeout: 7e3,
2583
- env: {}
2584
- });
2585
- const retry = launchProcessSync(processPath, ["-e", script], launchOptions);
2586
- return retry.status === HEALTH_EXIT_OK;
2587
- }
2588
- return false;
2589
- } catch {
2590
- return false;
2591
- }
2592
- }
2593
2635
  async function doctorConnector(connectorId) {
2594
2636
  const installed = listConnectors().installed;
2595
2637
  const instance = installed.find((c) => c.connectorId === connectorId);
@@ -3032,4 +3074,4 @@ export {
3032
3074
  resolveWeCloneProxyConfigPath,
3033
3075
  buildWeCloneProxyConfig
3034
3076
  };
3035
- //# sourceMappingURL=chunk-PNRA7FAD.js.map
3077
+ //# sourceMappingURL=chunk-RZRUV6N2.js.map