@remnic/core 1.1.2 → 1.1.3

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 (485) hide show
  1. package/dist/abort-error.js +1 -0
  2. package/dist/abstraction-nodes.js +1 -0
  3. package/dist/access-audit.js +1 -0
  4. package/dist/access-cli.js +70 -45
  5. package/dist/access-cli.js.map +1 -1
  6. package/dist/access-http.d.ts +50 -5
  7. package/dist/access-http.js +37 -15
  8. package/dist/access-idempotency.js +1 -0
  9. package/dist/access-mcp.d.ts +10 -5
  10. package/dist/access-mcp.js +36 -13
  11. package/dist/access-schema.d.ts +133 -13
  12. package/dist/access-schema.js +20 -1
  13. package/dist/access-service-_AEUMVyX.d.ts +1981 -0
  14. package/dist/access-service.d.ts +11 -6
  15. package/dist/access-service.js +38 -14
  16. package/dist/active-memory-bridge.js +1 -0
  17. package/dist/active-recall.js +1 -0
  18. package/dist/active-recall.js.map +1 -1
  19. package/dist/behavior-learner.js +1 -0
  20. package/dist/behavior-learner.js.map +1 -1
  21. package/dist/behavior-signals.js +1 -0
  22. package/dist/bootstrap.d.ts +6 -4
  23. package/dist/bootstrap.js +1 -0
  24. package/dist/boxes.js +1 -0
  25. package/dist/briefing.d.ts +9 -5
  26. package/dist/briefing.js +9 -6
  27. package/dist/buffer-surprise-report.js +1 -0
  28. package/dist/buffer-surprise.js +1 -0
  29. package/dist/buffer.d.ts +1 -1
  30. package/dist/buffer.js +1 -0
  31. package/dist/calibration.d.ts +8 -1
  32. package/dist/calibration.js +10 -2
  33. package/dist/calibration.js.map +1 -1
  34. package/dist/capsule-cli.d.ts +137 -0
  35. package/dist/capsule-cli.js +34 -0
  36. package/dist/capsule-crypto-5CYAGVC5.js +18 -0
  37. package/dist/capsule-export-NZQPOTQ4.js +17 -0
  38. package/dist/capsule-export-NZQPOTQ4.js.map +1 -0
  39. package/dist/capsule-import-SDCUXLEV.js +16 -0
  40. package/dist/capsule-import-SDCUXLEV.js.map +1 -0
  41. package/dist/capsule-merge-DI7PNQ2H.js +189 -0
  42. package/dist/capsule-merge-DI7PNQ2H.js.map +1 -0
  43. package/dist/causal-behavior.js +1 -0
  44. package/dist/causal-behavior.js.map +1 -1
  45. package/dist/causal-chain.js +1 -0
  46. package/dist/causal-consolidation.js +11 -8
  47. package/dist/causal-consolidation.js.map +1 -1
  48. package/dist/causal-retrieval.js +2 -1
  49. package/dist/causal-retrieval.js.map +1 -1
  50. package/dist/causal-trajectory-graph.js +4 -1
  51. package/dist/causal-trajectory-graph.js.map +1 -1
  52. package/dist/causal-trajectory.js +2 -1
  53. package/dist/chunk-2LSZVONP.js +67 -0
  54. package/dist/chunk-2LSZVONP.js.map +1 -0
  55. package/dist/chunk-32KD5IHZ.js +245 -0
  56. package/dist/chunk-32KD5IHZ.js.map +1 -0
  57. package/dist/{chunk-VDX363PS.js → chunk-34F3PLWZ.js} +10 -3
  58. package/dist/chunk-34F3PLWZ.js.map +1 -0
  59. package/dist/chunk-3KIS4VGT.js +228 -0
  60. package/dist/chunk-3KIS4VGT.js.map +1 -0
  61. package/dist/chunk-3LCWFNVS.js +350 -0
  62. package/dist/chunk-3LCWFNVS.js.map +1 -0
  63. package/dist/chunk-43EKP2UK.js +26 -0
  64. package/dist/chunk-43EKP2UK.js.map +1 -0
  65. package/dist/chunk-457A4P3L.js +119 -0
  66. package/dist/chunk-457A4P3L.js.map +1 -0
  67. package/dist/{chunk-TMYO7B5P.js → chunk-47WOM4YW.js} +2 -2
  68. package/dist/{chunk-OC5OXUQ4.js → chunk-4PLGJRBV.js} +653 -17
  69. package/dist/chunk-4PLGJRBV.js.map +1 -0
  70. package/dist/{chunk-PVICZTKG.js → chunk-55FXRRSJ.js} +5 -5
  71. package/dist/{chunk-PVICZTKG.js.map → chunk-55FXRRSJ.js.map} +1 -1
  72. package/dist/{chunk-ULYOGL6R.js → chunk-5HRY2WRF.js} +7 -3
  73. package/dist/chunk-5HRY2WRF.js.map +1 -0
  74. package/dist/chunk-6TBWYBJ3.js +236 -0
  75. package/dist/chunk-6TBWYBJ3.js.map +1 -0
  76. package/dist/chunk-74EMIVE4.js +329 -0
  77. package/dist/chunk-74EMIVE4.js.map +1 -0
  78. package/dist/chunk-74WWN7ZW.js +82 -0
  79. package/dist/chunk-74WWN7ZW.js.map +1 -0
  80. package/dist/{chunk-6YJHX2DL.js → chunk-7GCMLT7J.js} +242 -22
  81. package/dist/chunk-7GCMLT7J.js.map +1 -0
  82. package/dist/chunk-A6XUJE5D.js +126 -0
  83. package/dist/chunk-A6XUJE5D.js.map +1 -0
  84. package/dist/chunk-AJA46VX5.js +393 -0
  85. package/dist/chunk-AJA46VX5.js.map +1 -0
  86. package/dist/{chunk-UWB5LMWY.js → chunk-AKUCB2OG.js} +525 -24
  87. package/dist/chunk-AKUCB2OG.js.map +1 -0
  88. package/dist/chunk-ASIQZXYO.js +277 -0
  89. package/dist/chunk-ASIQZXYO.js.map +1 -0
  90. package/dist/{chunk-DG6YMRDC.js → chunk-B2TL6GA2.js} +2 -2
  91. package/dist/chunk-BJMBJZ2Y.js +290 -0
  92. package/dist/chunk-BJMBJZ2Y.js.map +1 -0
  93. package/dist/chunk-BT7NVCML.js +79 -0
  94. package/dist/chunk-BT7NVCML.js.map +1 -0
  95. package/dist/chunk-CK5NTM2S.js +454 -0
  96. package/dist/chunk-CK5NTM2S.js.map +1 -0
  97. package/dist/{chunk-AYXIPSZO.js → chunk-CRU27Q4J.js} +2 -2
  98. package/dist/{chunk-F5VP6YCB.js → chunk-DCE6SQLA.js} +572 -155
  99. package/dist/chunk-DCE6SQLA.js.map +1 -0
  100. package/dist/{chunk-CUPFXL3J.js → chunk-DHRQHX36.js} +4 -4
  101. package/dist/chunk-DHRQHX36.js.map +1 -0
  102. package/dist/{chunk-STGWEHYR.js → chunk-DR7MCMPS.js} +981 -61
  103. package/dist/chunk-DR7MCMPS.js.map +1 -0
  104. package/dist/chunk-FP2373TW.js +149 -0
  105. package/dist/chunk-FP2373TW.js.map +1 -0
  106. package/dist/{chunk-RBBWYEFJ.js → chunk-G2WADRQ3.js} +1 -1
  107. package/dist/chunk-G7D6GZ5J.js +48 -0
  108. package/dist/chunk-G7D6GZ5J.js.map +1 -0
  109. package/dist/chunk-H7XKCNR6.js +60 -0
  110. package/dist/chunk-H7XKCNR6.js.map +1 -0
  111. package/dist/{chunk-3YGHKTBF.js → chunk-IM3JSE73.js} +953 -322
  112. package/dist/chunk-IM3JSE73.js.map +1 -0
  113. package/dist/chunk-IXEJRKCZ.js +18 -0
  114. package/dist/chunk-IXEJRKCZ.js.map +1 -0
  115. package/dist/chunk-IYY4MCPG.js +275 -0
  116. package/dist/chunk-IYY4MCPG.js.map +1 -0
  117. package/dist/{chunk-BECYBZLX.js → chunk-JWSENLQI.js} +502 -22
  118. package/dist/chunk-JWSENLQI.js.map +1 -0
  119. package/dist/chunk-KNKUID7G.js +183 -0
  120. package/dist/chunk-KNKUID7G.js.map +1 -0
  121. package/dist/chunk-L2IO2QPY.js +2036 -0
  122. package/dist/chunk-L2IO2QPY.js.map +1 -0
  123. package/dist/{chunk-SPI27QT6.js → chunk-L5IIGA5V.js} +9 -4
  124. package/dist/chunk-L5IIGA5V.js.map +1 -0
  125. package/dist/{chunk-XXVWLXSG.js → chunk-LVYGDT5V.js} +56 -82
  126. package/dist/chunk-LVYGDT5V.js.map +1 -0
  127. package/dist/{chunk-ZAIM4TUE.js → chunk-LW2NMHDW.js} +46 -1
  128. package/dist/chunk-LW2NMHDW.js.map +1 -0
  129. package/dist/{chunk-3OGMS3PE.js → chunk-LZRYQK6L.js} +3 -2
  130. package/dist/chunk-LZRYQK6L.js.map +1 -0
  131. package/dist/chunk-MDYG7VI7.js +48 -0
  132. package/dist/chunk-MDYG7VI7.js.map +1 -0
  133. package/dist/chunk-MXC3AP5I.js +74 -0
  134. package/dist/chunk-MXC3AP5I.js.map +1 -0
  135. package/dist/{chunk-DIXB44VE.js → chunk-N7X62G74.js} +25 -10
  136. package/dist/chunk-N7X62G74.js.map +1 -0
  137. package/dist/chunk-NN3TS5BM.js +147 -0
  138. package/dist/chunk-NN3TS5BM.js.map +1 -0
  139. package/dist/chunk-OA3L7BFR.js +183 -0
  140. package/dist/chunk-OA3L7BFR.js.map +1 -0
  141. package/dist/chunk-OZHRDTDX.js +240 -0
  142. package/dist/chunk-OZHRDTDX.js.map +1 -0
  143. package/dist/chunk-PCUKNJAZ.js +165 -0
  144. package/dist/chunk-PCUKNJAZ.js.map +1 -0
  145. package/dist/{chunk-6PFRXT4K.js → chunk-PFV5C235.js} +11 -6
  146. package/dist/chunk-PFV5C235.js.map +1 -0
  147. package/dist/chunk-PZ5AY32C.js +10 -0
  148. package/dist/chunk-PZ5AY32C.js.map +1 -0
  149. package/dist/{chunk-Y7R2XJ5Q.js → chunk-Q7FJ5ZHM.js} +6 -2
  150. package/dist/chunk-Q7FJ5ZHM.js.map +1 -0
  151. package/dist/{chunk-NBVAS5MT.js → chunk-R2L7SUX2.js} +6 -6
  152. package/dist/{chunk-WCLICCGB.js → chunk-RILIVK4O.js} +91 -4
  153. package/dist/chunk-RILIVK4O.js.map +1 -0
  154. package/dist/{chunk-C2EFFULQ.js → chunk-RK2Y4XOM.js} +163 -20
  155. package/dist/chunk-RK2Y4XOM.js.map +1 -0
  156. package/dist/{chunk-TP4FZJIZ.js → chunk-RULE4VG5.js} +5 -1
  157. package/dist/chunk-RULE4VG5.js.map +1 -0
  158. package/dist/{chunk-PVPWZSSI.js → chunk-SMA4IMHV.js} +19 -3
  159. package/dist/chunk-SMA4IMHV.js.map +1 -0
  160. package/dist/{chunk-L7IXWRYE.js → chunk-SS253RXF.js} +22 -13
  161. package/dist/chunk-SS253RXF.js.map +1 -0
  162. package/dist/chunk-TUFG6VXY.js +875 -0
  163. package/dist/chunk-TUFG6VXY.js.map +1 -0
  164. package/dist/chunk-TYEOAFH3.js +251 -0
  165. package/dist/chunk-TYEOAFH3.js.map +1 -0
  166. package/dist/chunk-UKJAGEXH.js +260 -0
  167. package/dist/chunk-UKJAGEXH.js.map +1 -0
  168. package/dist/{chunk-KVBLZUKV.js → chunk-USFPPRAF.js} +93 -3
  169. package/dist/chunk-USFPPRAF.js.map +1 -0
  170. package/dist/{chunk-GA5P7RST.js → chunk-VTJVUHRK.js} +22 -36
  171. package/dist/chunk-VTJVUHRK.js.map +1 -0
  172. package/dist/chunk-WIICJPET.js +45 -0
  173. package/dist/chunk-WIICJPET.js.map +1 -0
  174. package/dist/{chunk-VBVG2M5G.js → chunk-WPGJYVUH.js} +6 -2
  175. package/dist/chunk-WPGJYVUH.js.map +1 -0
  176. package/dist/{chunk-4HQS2HPX.js → chunk-WSZIHQBK.js} +29 -9
  177. package/dist/{chunk-4HQS2HPX.js.map → chunk-WSZIHQBK.js.map} +1 -1
  178. package/dist/{chunk-NZLQTHS5.js → chunk-WW3QQF4H.js} +4 -1
  179. package/dist/chunk-WW3QQF4H.js.map +1 -0
  180. package/dist/{chunk-FVA6TGI3.js → chunk-Y3WQ4ZWK.js} +42 -2
  181. package/dist/chunk-Y3WQ4ZWK.js.map +1 -0
  182. package/dist/chunk-YNJHCGDT.js +309 -0
  183. package/dist/chunk-YNJHCGDT.js.map +1 -0
  184. package/dist/{chunk-LOIMBRDE.js → chunk-ZGXSCMQN.js} +1993 -411
  185. package/dist/chunk-ZGXSCMQN.js.map +1 -0
  186. package/dist/{chunk-W6SL7OFG.js → chunk-ZTSE2ZJ6.js} +12 -2
  187. package/dist/{chunk-W6SL7OFG.js.map → chunk-ZTSE2ZJ6.js.map} +1 -1
  188. package/dist/chunking.js +1 -0
  189. package/dist/cipher-GVE2GQ5H.js +28 -0
  190. package/dist/cipher-GVE2GQ5H.js.map +1 -0
  191. package/dist/citations.js +1 -0
  192. package/dist/{cli-BkeRaYfk.d.ts → cli-x2APT9a6.d.ts} +26 -7
  193. package/dist/cli.d.ts +11 -6
  194. package/dist/cli.js +67 -33
  195. package/dist/codex-thread-key.js +1 -0
  196. package/dist/commitment-ledger.js +1 -0
  197. package/dist/compression-optimizer.js +1 -0
  198. package/dist/config.d.ts +2 -1
  199. package/dist/config.js +4 -1
  200. package/dist/connectors-cli-DFGtY2DB.d.ts +257 -0
  201. package/dist/connectors-cli.d.ts +2 -0
  202. package/dist/connectors-cli.js +22 -0
  203. package/dist/connectors-cli.js.map +1 -0
  204. package/dist/consolidation-operator.d.ts +65 -5
  205. package/dist/consolidation-operator.js +6 -1
  206. package/dist/consolidation-provenance-check.d.ts +1 -1
  207. package/dist/consolidation-provenance-check.js +3 -2
  208. package/dist/consolidation-undo.d.ts +1 -1
  209. package/dist/consolidation-undo.js +1 -0
  210. package/dist/consolidation-undo.js.map +1 -1
  211. package/dist/{contradiction-review-WIUBAR52.js → contradiction-review-5LTTVDQV.js} +2 -1
  212. package/dist/contradiction-review-5LTTVDQV.js.map +1 -0
  213. package/dist/{contradiction-scan-E3GJTI4F.js → contradiction-scan-3Z6YW7YA.js} +2 -1
  214. package/dist/{contradiction-scan-E3GJTI4F.js.map → contradiction-scan-3Z6YW7YA.js.map} +1 -1
  215. package/dist/cross-namespace-budget.js +1 -0
  216. package/dist/cue-anchors.js +1 -0
  217. package/dist/dashboard-runtime.js +1 -0
  218. package/dist/day-summary.js +1 -0
  219. package/dist/delinearize.js +1 -0
  220. package/dist/direct-answer-wiring.js +1 -0
  221. package/dist/direct-answer.js +1 -0
  222. package/dist/dreams-ledger-LR2NBAZE.js +286 -0
  223. package/dist/dreams-ledger-LR2NBAZE.js.map +1 -0
  224. package/dist/embedding-fallback.js +1 -0
  225. package/dist/{engine-72LSIWQP.js → engine-ICC2DSQF.js} +10 -7
  226. package/dist/engine-ICC2DSQF.js.map +1 -0
  227. package/dist/entity-retrieval.d.ts +1 -1
  228. package/dist/entity-retrieval.js +9 -6
  229. package/dist/entity-schema.js +1 -0
  230. package/dist/evals.js +1 -0
  231. package/dist/evidence-pack.d.ts +16 -0
  232. package/dist/evidence-pack.js +8 -0
  233. package/dist/evidence-pack.js.map +1 -0
  234. package/dist/explicit-capture.d.ts +6 -4
  235. package/dist/explicit-capture.js +1 -0
  236. package/dist/extraction-judge-telemetry.js +1 -0
  237. package/dist/extraction-judge-training.js +1 -0
  238. package/dist/extraction-judge.js +1 -0
  239. package/dist/extraction.js +7 -6
  240. package/dist/fallback-llm.js +3 -2
  241. package/dist/first-start-migration-4MHQEOSD.js +263 -0
  242. package/dist/first-start-migration-4MHQEOSD.js.map +1 -0
  243. package/dist/forget-PLR6J5DN.js +69 -0
  244. package/dist/forget-PLR6J5DN.js.map +1 -0
  245. package/dist/framework-CyHYDcri.d.ts +153 -0
  246. package/dist/fs-utils-IRVUFB6G.js +30 -0
  247. package/dist/fs-utils-IRVUFB6G.js.map +1 -0
  248. package/dist/graph-dashboard-diff.js +1 -0
  249. package/dist/graph-dashboard-key.js +1 -0
  250. package/dist/graph-dashboard-parser.js +1 -0
  251. package/dist/graph-edge-decay-PWB63GRE.js +207 -0
  252. package/dist/graph-edge-decay-PWB63GRE.js.map +1 -0
  253. package/dist/graph-edge-reinforcement.d.ts +81 -0
  254. package/dist/graph-edge-reinforcement.js +24 -0
  255. package/dist/graph-edge-reinforcement.js.map +1 -0
  256. package/dist/graph-events.d.ts +87 -0
  257. package/dist/graph-events.js +14 -0
  258. package/dist/graph-events.js.map +1 -0
  259. package/dist/graph-recall.js +1 -0
  260. package/dist/graph-retrieval.js +1 -0
  261. package/dist/graph-snapshot.d.ts +112 -0
  262. package/dist/graph-snapshot.js +19 -0
  263. package/dist/graph-snapshot.js.map +1 -0
  264. package/dist/graph.d.ts +105 -7
  265. package/dist/graph.js +20 -3
  266. package/dist/harmonic-retrieval.js +1 -0
  267. package/dist/himem.js +1 -0
  268. package/dist/hygiene.js +1 -0
  269. package/dist/identity-continuity.js +1 -0
  270. package/dist/importance.js +1 -0
  271. package/dist/index.d.ts +562 -13
  272. package/dist/index.js +329 -67
  273. package/dist/index.js.map +1 -1
  274. package/dist/intent.js +1 -0
  275. package/dist/json-extract.js +1 -0
  276. package/dist/json-store.js +1 -0
  277. package/dist/kdf-7S6RWKLZ.js +26 -0
  278. package/dist/kdf-7S6RWKLZ.js.map +1 -0
  279. package/dist/legacy-hook-compat.js +1 -0
  280. package/dist/legacy-hook-compat.js.map +1 -1
  281. package/dist/lifecycle.js +1 -0
  282. package/dist/live-connectors-runner.d.ts +48 -0
  283. package/dist/live-connectors-runner.js +17 -0
  284. package/dist/live-connectors-runner.js.map +1 -0
  285. package/dist/local-llm.js +1 -0
  286. package/dist/logger.js +1 -0
  287. package/dist/memory-action-policy.js +1 -0
  288. package/dist/memory-cache.d.ts +2 -1
  289. package/dist/memory-cache.js +4 -1
  290. package/dist/memory-governance-KG52RITE.js +37 -0
  291. package/dist/memory-governance-KG52RITE.js.map +1 -0
  292. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
  293. package/dist/memory-lifecycle-ledger-utils.js +4 -1
  294. package/dist/memory-projection-format.js +1 -0
  295. package/dist/{memory-projection-store-DeSXPh1j.d.ts → memory-projection-store-D3vBHS4J.d.ts} +1 -0
  296. package/dist/memory-projection-store.d.ts +1 -1
  297. package/dist/memory-projection-store.js +1 -0
  298. package/dist/memory-worth-bench.js +1 -0
  299. package/dist/memory-worth-bench.js.map +1 -1
  300. package/dist/memory-worth-filter.js +1 -0
  301. package/dist/memory-worth-outcomes.d.ts +1 -1
  302. package/dist/memory-worth-outcomes.js +1 -0
  303. package/dist/memory-worth.js +1 -0
  304. package/dist/metadata-FC3XPDRQ.js +21 -0
  305. package/dist/metadata-FC3XPDRQ.js.map +1 -0
  306. package/dist/migrate-from-identity-anchor-TTEDEJGX.js +8 -0
  307. package/dist/migrate-from-identity-anchor-TTEDEJGX.js.map +1 -0
  308. package/dist/model-registry.js +1 -0
  309. package/dist/models-json.js +1 -0
  310. package/dist/native-knowledge.js +1 -0
  311. package/dist/negative.js +1 -0
  312. package/dist/objective-state-writers.js +1 -0
  313. package/dist/objective-state-writers.js.map +1 -1
  314. package/dist/objective-state.js +1 -0
  315. package/dist/openai-chat-compat.js +1 -0
  316. package/dist/operator-toolkit.d.ts +46 -2
  317. package/dist/operator-toolkit.js +28 -16
  318. package/dist/opik-exporter.js +1 -0
  319. package/dist/opik-exporter.js.map +1 -1
  320. package/dist/{orchestrator-CmJ-NTdJ.d.ts → orchestrator-ChkesB8U.d.ts} +177 -13
  321. package/dist/orchestrator.d.ts +6 -4
  322. package/dist/orchestrator.js +55 -39
  323. package/dist/page-versioning.js +1 -0
  324. package/dist/path-RMTY5Y5A.js +9 -0
  325. package/dist/path-RMTY5Y5A.js.map +1 -0
  326. package/dist/patterns-cli.d.ts +160 -0
  327. package/dist/patterns-cli.js +29 -0
  328. package/dist/patterns-cli.js.map +1 -0
  329. package/dist/peers-6OSQ3NK6.js +44 -0
  330. package/dist/peers-6OSQ3NK6.js.map +1 -0
  331. package/dist/plugin-id.js +1 -0
  332. package/dist/policy-runtime.js +1 -0
  333. package/dist/{port-BADbLZU5.d.ts → port-hqGnoStS.d.ts} +6 -0
  334. package/dist/profiling.js +1 -0
  335. package/dist/purge-6ATBGT77.js +205 -0
  336. package/dist/purge-6ATBGT77.js.map +1 -0
  337. package/dist/qmd-recall-cache.d.ts +1 -1
  338. package/dist/qmd-recall-cache.js +1 -0
  339. package/dist/qmd.d.ts +2 -1
  340. package/dist/qmd.js +4 -3
  341. package/dist/reasoning-trace-recall.js +1 -0
  342. package/dist/reasoning-trace-types.js +1 -0
  343. package/dist/recall-audit-anomaly.js +1 -0
  344. package/dist/recall-audit.js +1 -0
  345. package/dist/recall-disclosure-escalation.d.ts +84 -0
  346. package/dist/recall-disclosure-escalation.js +14 -0
  347. package/dist/recall-disclosure-escalation.js.map +1 -0
  348. package/dist/recall-explain-renderer.js +4 -1
  349. package/dist/recall-mmr.js +1 -0
  350. package/dist/recall-qos.js +1 -0
  351. package/dist/recall-query-policy.js +1 -0
  352. package/dist/recall-state.d.ts +7 -0
  353. package/dist/recall-state.js +2 -1
  354. package/dist/recall-tag-filter.d.ts +56 -0
  355. package/dist/recall-tag-filter.js +14 -0
  356. package/dist/recall-tag-filter.js.map +1 -0
  357. package/dist/recall-tokenization.js +1 -0
  358. package/dist/recall-xray-cli.d.ts +9 -2
  359. package/dist/recall-xray-cli.js +9 -4
  360. package/dist/recall-xray-renderer.js +4 -1
  361. package/dist/recall-xray.d.ts +116 -2
  362. package/dist/recall-xray.js +9 -3
  363. package/dist/reconstruct.js +1 -0
  364. package/dist/release-changelog.js +2 -0
  365. package/dist/release-changelog.js.map +1 -1
  366. package/dist/relevance.js +1 -0
  367. package/dist/rerank.js +1 -0
  368. package/dist/{resolution-QBTDHTG7.js → resolution-YGIBORXI.js} +2 -1
  369. package/dist/{resolution-QBTDHTG7.js.map → resolution-YGIBORXI.js.map} +1 -1
  370. package/dist/resolve-auth-token.d.ts +51 -0
  371. package/dist/resolve-auth-token.js +12 -0
  372. package/dist/resolve-auth-token.js.map +1 -0
  373. package/dist/resolve-provider-secret.d.ts +9 -1
  374. package/dist/resolve-provider-secret.js +4 -1
  375. package/dist/resume-bundles.js +4 -3
  376. package/dist/retrieval-agents.d.ts +1 -1
  377. package/dist/retrieval-agents.js +1 -0
  378. package/dist/retrieval-tiers.js +1 -0
  379. package/dist/retrieval.js +1 -0
  380. package/dist/sanitize.js +1 -0
  381. package/dist/schemas.d.ts +37 -24
  382. package/dist/schemas.js +2 -1
  383. package/dist/sdk-compat.js +1 -0
  384. package/dist/sdk-compat.js.map +1 -1
  385. package/dist/secure-store-4R2GSO7S.js +156 -0
  386. package/dist/secure-store-4R2GSO7S.js.map +1 -0
  387. package/dist/semantic-chunking.js +1 -0
  388. package/dist/{semantic-consolidation-CxJU6MJk.d.ts → semantic-consolidation-ByBXb-sf.d.ts} +3 -3
  389. package/dist/semantic-consolidation.d.ts +2 -2
  390. package/dist/semantic-consolidation.js +11 -6
  391. package/dist/semantic-rule-promotion.d.ts +1 -1
  392. package/dist/semantic-rule-promotion.js +9 -6
  393. package/dist/semantic-rule-verifier.d.ts +1 -1
  394. package/dist/semantic-rule-verifier.js +9 -6
  395. package/dist/session-integrity.js +1 -0
  396. package/dist/session-observer-bands.js +1 -0
  397. package/dist/session-observer-state.js +1 -0
  398. package/dist/session-toggles.js +2 -0
  399. package/dist/session-toggles.js.map +1 -1
  400. package/dist/signal.js +1 -0
  401. package/dist/skills-registry.js +2 -0
  402. package/dist/skills-registry.js.map +1 -1
  403. package/dist/source-attribution.js +1 -0
  404. package/dist/state-NCHQ4TRG.js +8 -0
  405. package/dist/state-NCHQ4TRG.js.map +1 -0
  406. package/dist/state-store-3EH7HYIN.js +16 -0
  407. package/dist/state-store-3EH7HYIN.js.map +1 -0
  408. package/dist/storage.d.ts +76 -2
  409. package/dist/storage.js +8 -5
  410. package/dist/store-contract.js +1 -0
  411. package/dist/summarizer.js +5 -4
  412. package/dist/summary-snapshot.js +1 -0
  413. package/dist/temporal-index.js +1 -0
  414. package/dist/temporal-supersession.d.ts +1 -1
  415. package/dist/temporal-supersession.js +2 -1
  416. package/dist/temporal-validity.d.ts +52 -0
  417. package/dist/temporal-validity.js +14 -0
  418. package/dist/temporal-validity.js.map +1 -0
  419. package/dist/threading.js +1 -0
  420. package/dist/tier-migration.d.ts +2 -2
  421. package/dist/tier-migration.js +1 -0
  422. package/dist/tier-routing.js +1 -0
  423. package/dist/tier-stats-62ZVDFKS.js +152 -0
  424. package/dist/tier-stats-62ZVDFKS.js.map +1 -0
  425. package/dist/tmt.js +1 -0
  426. package/dist/tokens.js +1 -0
  427. package/dist/topics.js +1 -0
  428. package/dist/trace-C5ETWBEF.js +290 -0
  429. package/dist/trace-C5ETWBEF.js.map +1 -0
  430. package/dist/transcript.js +1 -0
  431. package/dist/trust-zones.js +1 -0
  432. package/dist/tui-RI7P6PBS.js +13 -0
  433. package/dist/tui-RI7P6PBS.js.map +1 -0
  434. package/dist/types-V3FJ26TF.js +30 -0
  435. package/dist/types-V3FJ26TF.js.map +1 -0
  436. package/dist/types.d.ts +634 -9
  437. package/dist/types.js +10 -3
  438. package/dist/utility-learner.js +1 -0
  439. package/dist/utility-runtime.js +1 -0
  440. package/dist/utility-telemetry.js +1 -0
  441. package/dist/verified-recall.js +9 -6
  442. package/dist/version-utils.js +1 -0
  443. package/dist/whitespace.js +1 -0
  444. package/dist/work-product-ledger.js +1 -0
  445. package/package.json +2 -1
  446. package/dist/access-service-Br8ZydTK.d.ts +0 -827
  447. package/dist/chunk-3OGMS3PE.js.map +0 -1
  448. package/dist/chunk-3YGHKTBF.js.map +0 -1
  449. package/dist/chunk-6PFRXT4K.js.map +0 -1
  450. package/dist/chunk-6YJHX2DL.js.map +0 -1
  451. package/dist/chunk-BECYBZLX.js.map +0 -1
  452. package/dist/chunk-C2EFFULQ.js.map +0 -1
  453. package/dist/chunk-CUPFXL3J.js.map +0 -1
  454. package/dist/chunk-DIXB44VE.js.map +0 -1
  455. package/dist/chunk-F5VP6YCB.js.map +0 -1
  456. package/dist/chunk-FVA6TGI3.js.map +0 -1
  457. package/dist/chunk-GA5P7RST.js.map +0 -1
  458. package/dist/chunk-KVBLZUKV.js.map +0 -1
  459. package/dist/chunk-L7IXWRYE.js.map +0 -1
  460. package/dist/chunk-LOIMBRDE.js.map +0 -1
  461. package/dist/chunk-LTCGGW2D.js +0 -14
  462. package/dist/chunk-LTCGGW2D.js.map +0 -1
  463. package/dist/chunk-NZLQTHS5.js.map +0 -1
  464. package/dist/chunk-OC5OXUQ4.js.map +0 -1
  465. package/dist/chunk-PVPWZSSI.js.map +0 -1
  466. package/dist/chunk-SPI27QT6.js.map +0 -1
  467. package/dist/chunk-STGWEHYR.js.map +0 -1
  468. package/dist/chunk-TP4FZJIZ.js.map +0 -1
  469. package/dist/chunk-ULYOGL6R.js.map +0 -1
  470. package/dist/chunk-UWB5LMWY.js.map +0 -1
  471. package/dist/chunk-VBVG2M5G.js.map +0 -1
  472. package/dist/chunk-VDX363PS.js.map +0 -1
  473. package/dist/chunk-WCLICCGB.js.map +0 -1
  474. package/dist/chunk-X6GF3FX2.js +0 -26
  475. package/dist/chunk-X6GF3FX2.js.map +0 -1
  476. package/dist/chunk-XXVWLXSG.js.map +0 -1
  477. package/dist/chunk-Y7R2XJ5Q.js.map +0 -1
  478. package/dist/chunk-ZAIM4TUE.js.map +0 -1
  479. /package/dist/{contradiction-review-WIUBAR52.js.map → capsule-cli.js.map} +0 -0
  480. /package/dist/{engine-72LSIWQP.js.map → capsule-crypto-5CYAGVC5.js.map} +0 -0
  481. /package/dist/{chunk-TMYO7B5P.js.map → chunk-47WOM4YW.js.map} +0 -0
  482. /package/dist/{chunk-DG6YMRDC.js.map → chunk-B2TL6GA2.js.map} +0 -0
  483. /package/dist/{chunk-AYXIPSZO.js.map → chunk-CRU27Q4J.js.map} +0 -0
  484. /package/dist/{chunk-RBBWYEFJ.js.map → chunk-G2WADRQ3.js.map} +0 -0
  485. /package/dist/{chunk-NBVAS5MT.js.map → chunk-R2L7SUX2.js.map} +0 -0
@@ -0,0 +1,51 @@
1
+ import { SecretRef, AgentAccessAuthToken } from './types.js';
2
+
3
+ /**
4
+ * Resolve `agentAccessHttp.authToken` (issue #757).
5
+ *
6
+ * Two shapes are accepted:
7
+ *
8
+ * 1. Plain string — returned unchanged. This is the only shape supported
9
+ * in standalone Remnic; it preserves backward compatibility with every
10
+ * pre-#757 config.
11
+ *
12
+ * 2. SecretRef-like object (`{source, provider?, id?, command?, ...}`) —
13
+ * resolved only through a resolver supplied by the host adapter. Core
14
+ * stays host-agnostic and never scans OpenClaw, Hermes, or any other
15
+ * runtime directly.
16
+ *
17
+ * Resolution flow for SecretRef objects:
18
+ *
19
+ * - Plain strings short-circuit before any host work.
20
+ * - Host adapters pass their native SecretRef resolver in `options`.
21
+ * - If no resolver is provided, throw a clear, actionable error rather
22
+ * than silently leaving the bridge open or starting with no auth.
23
+ *
24
+ * Lessons baked in from PRs #316–#319:
25
+ *
26
+ * - Successful resolutions are cached for the process lifetime; failures
27
+ * are not cached so transient issues (Keychain unlocked late, agent
28
+ * restarts) recover automatically.
29
+ */
30
+ type ResolveSecretRefFn = (ref: SecretRef, context?: unknown) => Promise<string | undefined> | string | undefined;
31
+ type ResolveAgentAccessAuthTokenOptions = {
32
+ resolveSecretRef?: ResolveSecretRefFn | null;
33
+ };
34
+ /**
35
+ * Resolve an `agentAccessHttp.authToken` value to a literal bearer string.
36
+ *
37
+ * @returns the resolved string, or `undefined` if input was undefined/empty.
38
+ * @throws if the input is a SecretRef and no resolver is provided, if the
39
+ * resolver returns no value, or if the input shape is malformed.
40
+ */
41
+ declare function resolveAgentAccessAuthToken(value: AgentAccessAuthToken | undefined, options?: ResolveAgentAccessAuthTokenOptions): Promise<string | undefined>;
42
+ /**
43
+ * Returns true if the value is a SecretRef object (issue #757). Useful for
44
+ * surfaces (CLI flags, doctor checks) that want to render a redacted
45
+ * placeholder instead of leaking the unresolved object shape.
46
+ */
47
+ declare function isAgentAccessSecretRef(value: unknown): value is SecretRef;
48
+ /** Test/operations hook: drop the cache and force resolver rediscovery. */
49
+ declare function clearAuthTokenSecretCache(): void;
50
+
51
+ export { type ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken };
@@ -0,0 +1,12 @@
1
+ import {
2
+ clearAuthTokenSecretCache,
3
+ isAgentAccessSecretRef,
4
+ resolveAgentAccessAuthToken
5
+ } from "./chunk-MXC3AP5I.js";
6
+ import "./chunk-PZ5AY32C.js";
7
+ export {
8
+ clearAuthTokenSecretCache,
9
+ isAgentAccessSecretRef,
10
+ resolveAgentAccessAuthToken
11
+ };
12
+ //# sourceMappingURL=resolve-auth-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -40,6 +40,14 @@ type GetRuntimeAuthForModelFn = (params: {
40
40
  mode?: string;
41
41
  profileId?: string;
42
42
  } | null>;
43
+ /**
44
+ * Discover gateway runtime module files matching the given filename prefix.
45
+ *
46
+ * Reused by adjacent SecretRef resolution code (`resolve-auth-token.ts`,
47
+ * issue #757). Walks the same dist-dir candidates as the model-auth path
48
+ * so callers don't reimplement install-method discovery.
49
+ */
50
+ declare function findGatewayRuntimeModules(filePrefix: string): Promise<string[]>;
43
51
  declare function findExecutableOnPath(executableName: string, access: (path: string, mode?: number) => void, stat: (path: string) => {
44
52
  isFile(): boolean;
45
53
  }, executableMode: number): string | undefined;
@@ -68,4 +76,4 @@ declare function getGatewayRuntimeAuthForModel(): Promise<GetRuntimeAuthForModel
68
76
  declare function clearSecretCache(): void;
69
77
  declare function __setGatewayResolverForTest(resolver: ResolveApiKeyFn | null): void;
70
78
 
71
- export { type GetRuntimeAuthForModelFn, __findExecutableOnPathForTest, __setGatewayResolverForTest, clearSecretCache, getGatewayRuntimeAuthForModel, resolveProviderApiKey };
79
+ export { type GetRuntimeAuthForModelFn, __findExecutableOnPathForTest, __setGatewayResolverForTest, clearSecretCache, findGatewayRuntimeModules, getGatewayRuntimeAuthForModel, resolveProviderApiKey };
@@ -2,15 +2,18 @@ import {
2
2
  __findExecutableOnPathForTest,
3
3
  __setGatewayResolverForTest,
4
4
  clearSecretCache,
5
+ findGatewayRuntimeModules,
5
6
  getGatewayRuntimeAuthForModel,
6
7
  resolveProviderApiKey
7
- } from "./chunk-Y7R2XJ5Q.js";
8
+ } from "./chunk-Q7FJ5ZHM.js";
8
9
  import "./chunk-MARWOCVP.js";
9
10
  import "./chunk-2ODBA7MQ.js";
11
+ import "./chunk-PZ5AY32C.js";
10
12
  export {
11
13
  __findExecutableOnPathForTest,
12
14
  __setGatewayResolverForTest,
13
15
  clearSecretCache,
16
+ findGatewayRuntimeModules,
14
17
  getGatewayRuntimeAuthForModel,
15
18
  resolveProviderApiKey
16
19
  };
@@ -4,12 +4,12 @@ import {
4
4
  recordResumeBundle,
5
5
  resolveResumeBundleDir,
6
6
  validateResumeBundle
7
- } from "./chunk-TMYO7B5P.js";
7
+ } from "./chunk-47WOM4YW.js";
8
8
  import "./chunk-CULXMQJH.js";
9
9
  import "./chunk-E6K4NIEU.js";
10
- import "./chunk-YRMVARQP.js";
11
10
  import "./chunk-LOBRX7VD.js";
12
- import "./chunk-BECYBZLX.js";
11
+ import "./chunk-YRMVARQP.js";
12
+ import "./chunk-JWSENLQI.js";
13
13
  import "./chunk-Z5LAYHGJ.js";
14
14
  import "./chunk-FYIYMQ5N.js";
15
15
  import "./chunk-DT5TVLJE.js";
@@ -18,6 +18,7 @@ import "./chunk-MARWOCVP.js";
18
18
  import "./chunk-2ODBA7MQ.js";
19
19
  import "./chunk-DGXUHMOV.js";
20
20
  import "./chunk-LPSF4OQH.js";
21
+ import "./chunk-PZ5AY32C.js";
21
22
  export {
22
23
  buildResumeBundleFromState,
23
24
  getResumeBundleStatus,
@@ -1,6 +1,6 @@
1
1
  import { QmdSearchResult } from './types.js';
2
2
  import { QmdClient } from './qmd.js';
3
- import './port-BADbLZU5.js';
3
+ import './port-hqGnoStS.js';
4
4
 
5
5
  /**
6
6
  * Parallel Specialized Retrieval (v9.1 — ASMR-inspired)
@@ -10,6 +10,7 @@ import {
10
10
  } from "./chunk-K4FLSOR5.js";
11
11
  import "./chunk-V3RXWQIE.js";
12
12
  import "./chunk-2ODBA7MQ.js";
13
+ import "./chunk-PZ5AY32C.js";
13
14
  export {
14
15
  PARALLEL_AGENT_WEIGHTS,
15
16
  augmentWithDirectAndTemporal,
@@ -2,6 +2,7 @@ import {
2
2
  RETRIEVAL_TIERS,
3
3
  isRetrievalTier
4
4
  } from "./chunk-SOBJ6NEY.js";
5
+ import "./chunk-PZ5AY32C.js";
5
6
  export {
6
7
  RETRIEVAL_TIERS,
7
8
  isRetrievalTier
package/dist/retrieval.js CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  expandQuery
4
4
  } from "./chunk-5IZL4DCV.js";
5
5
  import "./chunk-TBBDFYXW.js";
6
+ import "./chunk-PZ5AY32C.js";
6
7
  export {
7
8
  applyRuntimeRetrievalPolicy,
8
9
  expandQuery
package/dist/sanitize.js CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  isSafeMemoryContent,
3
3
  sanitizeMemoryContent
4
4
  } from "./chunk-M62O4P4T.js";
5
+ import "./chunk-PZ5AY32C.js";
5
6
  export {
6
7
  isSafeMemoryContent,
7
8
  sanitizeMemoryContent
package/dist/schemas.d.ts CHANGED
@@ -7,12 +7,12 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
7
7
  importance: z.ZodNumber;
8
8
  source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
9
9
  }, "strict", z.ZodTypeAny, {
10
- source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
10
+ source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
11
11
  confidence: number;
12
12
  lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
13
13
  importance: number;
14
14
  }, {
15
- source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
15
+ source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
16
16
  confidence: number;
17
17
  lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
18
18
  importance: number;
@@ -60,6 +60,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
60
60
  tags: z.ZodArray<z.ZodString, "many">;
61
61
  entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
62
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
63
64
  structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
64
65
  procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
65
66
  order: z.ZodNumber;
@@ -155,6 +156,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
155
156
  entityRef?: string | null | undefined;
156
157
  structuredAttributes?: Record<string, string> | null | undefined;
157
158
  promptedByQuestion?: string | null | undefined;
159
+ scope?: "project" | "global" | null | undefined;
158
160
  procedureSteps?: {
159
161
  order: number;
160
162
  intent: string;
@@ -183,6 +185,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
183
185
  entityRef?: string | null | undefined;
184
186
  structuredAttributes?: Record<string, string> | null | undefined;
185
187
  promptedByQuestion?: string | null | undefined;
188
+ scope?: "project" | "global" | null | undefined;
186
189
  procedureSteps?: {
187
190
  order: number;
188
191
  intent: string;
@@ -214,12 +217,12 @@ declare const EntityMentionSchema: z.ZodObject<{
214
217
  title: z.ZodString;
215
218
  facts: z.ZodArray<z.ZodString, "many">;
216
219
  }, "strip", z.ZodTypeAny, {
217
- title: string;
218
220
  key: string;
221
+ title: string;
219
222
  facts: string[];
220
223
  }, {
221
- title: string;
222
224
  key: string;
225
+ title: string;
223
226
  facts: string[];
224
227
  }>, "many">>>;
225
228
  }, "strip", z.ZodTypeAny, {
@@ -227,8 +230,8 @@ declare const EntityMentionSchema: z.ZodObject<{
227
230
  name: string;
228
231
  type: "project" | "person" | "tool" | "company" | "place" | "other";
229
232
  structuredSections?: {
230
- title: string;
231
233
  key: string;
234
+ title: string;
232
235
  facts: string[];
233
236
  }[] | null | undefined;
234
237
  promptedByQuestion?: string | null | undefined;
@@ -237,8 +240,8 @@ declare const EntityMentionSchema: z.ZodObject<{
237
240
  name: string;
238
241
  type: "project" | "person" | "tool" | "company" | "place" | "other";
239
242
  structuredSections?: {
240
- title: string;
241
243
  key: string;
244
+ title: string;
242
245
  facts: string[];
243
246
  }[] | null | undefined;
244
247
  promptedByQuestion?: string | null | undefined;
@@ -307,6 +310,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
307
310
  tags: z.ZodArray<z.ZodString, "many">;
308
311
  entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
309
312
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
313
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
310
314
  structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
311
315
  procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
312
316
  order: z.ZodNumber;
@@ -402,6 +406,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
402
406
  entityRef?: string | null | undefined;
403
407
  structuredAttributes?: Record<string, string> | null | undefined;
404
408
  promptedByQuestion?: string | null | undefined;
409
+ scope?: "project" | "global" | null | undefined;
405
410
  procedureSteps?: {
406
411
  order: number;
407
412
  intent: string;
@@ -430,6 +435,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
430
435
  entityRef?: string | null | undefined;
431
436
  structuredAttributes?: Record<string, string> | null | undefined;
432
437
  promptedByQuestion?: string | null | undefined;
438
+ scope?: "project" | "global" | null | undefined;
433
439
  procedureSteps?: {
434
440
  order: number;
435
441
  intent: string;
@@ -462,12 +468,12 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
462
468
  title: z.ZodString;
463
469
  facts: z.ZodArray<z.ZodString, "many">;
464
470
  }, "strip", z.ZodTypeAny, {
465
- title: string;
466
471
  key: string;
472
+ title: string;
467
473
  facts: string[];
468
474
  }, {
469
- title: string;
470
475
  key: string;
476
+ title: string;
471
477
  facts: string[];
472
478
  }>, "many">>>;
473
479
  }, "strip", z.ZodTypeAny, {
@@ -475,8 +481,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
475
481
  name: string;
476
482
  type: "project" | "person" | "tool" | "company" | "place" | "other";
477
483
  structuredSections?: {
478
- title: string;
479
484
  key: string;
485
+ title: string;
480
486
  facts: string[];
481
487
  }[] | null | undefined;
482
488
  promptedByQuestion?: string | null | undefined;
@@ -485,8 +491,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
485
491
  name: string;
486
492
  type: "project" | "person" | "tool" | "company" | "place" | "other";
487
493
  structuredSections?: {
488
- title: string;
489
494
  key: string;
495
+ title: string;
490
496
  facts: string[];
491
497
  }[] | null | undefined;
492
498
  promptedByQuestion?: string | null | undefined;
@@ -516,6 +522,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
516
522
  entityRef?: string | null | undefined;
517
523
  structuredAttributes?: Record<string, string> | null | undefined;
518
524
  promptedByQuestion?: string | null | undefined;
525
+ scope?: "project" | "global" | null | undefined;
519
526
  procedureSteps?: {
520
527
  order: number;
521
528
  intent: string;
@@ -542,8 +549,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
542
549
  name: string;
543
550
  type: "project" | "person" | "tool" | "company" | "place" | "other";
544
551
  structuredSections?: {
545
- title: string;
546
552
  key: string;
553
+ title: string;
547
554
  facts: string[];
548
555
  }[] | null | undefined;
549
556
  promptedByQuestion?: string | null | undefined;
@@ -564,6 +571,7 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
564
571
  entityRef?: string | null | undefined;
565
572
  structuredAttributes?: Record<string, string> | null | undefined;
566
573
  promptedByQuestion?: string | null | undefined;
574
+ scope?: "project" | "global" | null | undefined;
567
575
  procedureSteps?: {
568
576
  order: number;
569
577
  intent: string;
@@ -590,8 +598,8 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
590
598
  name: string;
591
599
  type: "project" | "person" | "tool" | "company" | "place" | "other";
592
600
  structuredSections?: {
593
- title: string;
594
601
  key: string;
602
+ title: string;
595
603
  facts: string[];
596
604
  }[] | null | undefined;
597
605
  promptedByQuestion?: string | null | undefined;
@@ -612,6 +620,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
612
620
  tags: z.ZodArray<z.ZodString, "many">;
613
621
  entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
614
622
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
623
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
615
624
  structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
616
625
  procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
617
626
  order: z.ZodNumber;
@@ -707,6 +716,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
707
716
  entityRef?: string | null | undefined;
708
717
  structuredAttributes?: Record<string, string> | null | undefined;
709
718
  promptedByQuestion?: string | null | undefined;
719
+ scope?: "project" | "global" | null | undefined;
710
720
  procedureSteps?: {
711
721
  order: number;
712
722
  intent: string;
@@ -735,6 +745,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
735
745
  entityRef?: string | null | undefined;
736
746
  structuredAttributes?: Record<string, string> | null | undefined;
737
747
  promptedByQuestion?: string | null | undefined;
748
+ scope?: "project" | "global" | null | undefined;
738
749
  procedureSteps?: {
739
750
  order: number;
740
751
  intent: string;
@@ -767,12 +778,12 @@ declare const ExtractionResultSchema: z.ZodObject<{
767
778
  title: z.ZodString;
768
779
  facts: z.ZodArray<z.ZodString, "many">;
769
780
  }, "strip", z.ZodTypeAny, {
770
- title: string;
771
781
  key: string;
782
+ title: string;
772
783
  facts: string[];
773
784
  }, {
774
- title: string;
775
785
  key: string;
786
+ title: string;
776
787
  facts: string[];
777
788
  }>, "many">>>;
778
789
  }, "strip", z.ZodTypeAny, {
@@ -780,8 +791,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
780
791
  name: string;
781
792
  type: "project" | "person" | "tool" | "company" | "place" | "other";
782
793
  structuredSections?: {
783
- title: string;
784
794
  key: string;
795
+ title: string;
785
796
  facts: string[];
786
797
  }[] | null | undefined;
787
798
  promptedByQuestion?: string | null | undefined;
@@ -790,8 +801,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
790
801
  name: string;
791
802
  type: "project" | "person" | "tool" | "company" | "place" | "other";
792
803
  structuredSections?: {
793
- title: string;
794
804
  key: string;
805
+ title: string;
795
806
  facts: string[];
796
807
  }[] | null | undefined;
797
808
  promptedByQuestion?: string | null | undefined;
@@ -835,6 +846,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
835
846
  entityRef?: string | null | undefined;
836
847
  structuredAttributes?: Record<string, string> | null | undefined;
837
848
  promptedByQuestion?: string | null | undefined;
849
+ scope?: "project" | "global" | null | undefined;
838
850
  procedureSteps?: {
839
851
  order: number;
840
852
  intent: string;
@@ -861,8 +873,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
861
873
  name: string;
862
874
  type: "project" | "person" | "tool" | "company" | "place" | "other";
863
875
  structuredSections?: {
864
- title: string;
865
876
  key: string;
877
+ title: string;
866
878
  facts: string[];
867
879
  }[] | null | undefined;
868
880
  promptedByQuestion?: string | null | undefined;
@@ -889,6 +901,7 @@ declare const ExtractionResultSchema: z.ZodObject<{
889
901
  entityRef?: string | null | undefined;
890
902
  structuredAttributes?: Record<string, string> | null | undefined;
891
903
  promptedByQuestion?: string | null | undefined;
904
+ scope?: "project" | "global" | null | undefined;
892
905
  procedureSteps?: {
893
906
  order: number;
894
907
  intent: string;
@@ -915,8 +928,8 @@ declare const ExtractionResultSchema: z.ZodObject<{
915
928
  name: string;
916
929
  type: "project" | "person" | "tool" | "company" | "place" | "other";
917
930
  structuredSections?: {
918
- title: string;
919
931
  key: string;
932
+ title: string;
920
933
  facts: string[];
921
934
  }[] | null | undefined;
922
935
  promptedByQuestion?: string | null | undefined;
@@ -985,12 +998,12 @@ declare const ConsolidationResultSchema: z.ZodObject<{
985
998
  title: z.ZodString;
986
999
  facts: z.ZodArray<z.ZodString, "many">;
987
1000
  }, "strip", z.ZodTypeAny, {
988
- title: string;
989
1001
  key: string;
1002
+ title: string;
990
1003
  facts: string[];
991
1004
  }, {
992
- title: string;
993
1005
  key: string;
1006
+ title: string;
994
1007
  facts: string[];
995
1008
  }>, "many">>>;
996
1009
  }, "strip", z.ZodTypeAny, {
@@ -998,8 +1011,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
998
1011
  name: string;
999
1012
  type: "project" | "person" | "tool" | "company" | "place" | "other";
1000
1013
  structuredSections?: {
1001
- title: string;
1002
1014
  key: string;
1015
+ title: string;
1003
1016
  facts: string[];
1004
1017
  }[] | null | undefined;
1005
1018
  promptedByQuestion?: string | null | undefined;
@@ -1008,8 +1021,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1008
1021
  name: string;
1009
1022
  type: "project" | "person" | "tool" | "company" | "place" | "other";
1010
1023
  structuredSections?: {
1011
- title: string;
1012
1024
  key: string;
1025
+ title: string;
1013
1026
  facts: string[];
1014
1027
  }[] | null | undefined;
1015
1028
  promptedByQuestion?: string | null | undefined;
@@ -1028,8 +1041,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1028
1041
  name: string;
1029
1042
  type: "project" | "person" | "tool" | "company" | "place" | "other";
1030
1043
  structuredSections?: {
1031
- title: string;
1032
1044
  key: string;
1045
+ title: string;
1033
1046
  facts: string[];
1034
1047
  }[] | null | undefined;
1035
1048
  promptedByQuestion?: string | null | undefined;
@@ -1048,8 +1061,8 @@ declare const ConsolidationResultSchema: z.ZodObject<{
1048
1061
  name: string;
1049
1062
  type: "project" | "person" | "tool" | "company" | "place" | "other";
1050
1063
  structuredSections?: {
1051
- title: string;
1052
1064
  key: string;
1065
+ title: string;
1053
1066
  facts: string[];
1054
1067
  }[] | null | undefined;
1055
1068
  promptedByQuestion?: string | null | undefined;
package/dist/schemas.js CHANGED
@@ -23,7 +23,8 @@ import {
23
23
  buildProfileConsolidationResultSchema,
24
24
  parseMemoryActionEligibilityContext,
25
25
  parseMemoryActionType
26
- } from "./chunk-NZLQTHS5.js";
26
+ } from "./chunk-WW3QQF4H.js";
27
+ import "./chunk-PZ5AY32C.js";
27
28
  export {
28
29
  BehaviorLoopAdjustmentSchema,
29
30
  BehaviorLoopPolicyStateSchema,
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  readEnvVar
3
3
  } from "./chunk-MARWOCVP.js";
4
+ import "./chunk-PZ5AY32C.js";
4
5
 
5
6
  // src/sdk-compat.ts
6
7
  function detectSdkCapabilities(api) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sdk-compat.ts"],"sourcesContent":["/**\n * Runtime SDK capability detection.\n *\n * Probes the injected api object at registration time to determine which\n * OpenClaw SDK features are available. All hook registrations and entry-point\n * patterns branch on these flags so engram works on both old (≤2026.3.13)\n * and new (≥2026.3.22) runtimes.\n */\nimport { readEnvVar } from \"./runtime/env.js\";\n\nexport interface SdkCapabilities {\n /** api.on(\"before_prompt_build\", ...) is available */\n hasBeforePromptBuild: boolean;\n /** api.registerMemoryPromptSection() exists */\n hasRegisterMemoryPromptSection: boolean;\n /** api.registerMemoryCapability() exists (new SDK >=2026.4.5) */\n hasRegisterMemoryCapability: boolean;\n /** definePluginEntry from openclaw/plugin-sdk/plugin-entry is importable */\n hasDefinePluginEntry: boolean;\n /** api.runtime.* namespace exists */\n hasRuntimeNamespace: boolean;\n /** api.registrationMode is present */\n hasRegistrationMode: boolean;\n /** Hooks receive typed event/context objects */\n hasTypedHooks: boolean;\n /** Detected SDK version string, or \"legacy\" */\n sdkVersion: string;\n /** api.registrationMode value when present */\n registrationMode: \"full\" | \"setup-only\" | \"setup-runtime\" | undefined;\n}\n\nexport function detectSdkCapabilities(api: Record<string, unknown>): SdkCapabilities {\n const hasRegisterMemoryPromptSection =\n typeof (api as any).registerMemoryPromptSection === \"function\";\n const hasRegisterMemoryCapability =\n typeof (api as any).registerMemoryCapability === \"function\";\n const hasRuntimeNamespace =\n typeof (api as any).runtime === \"object\" && (api as any).runtime !== null;\n const hasRegistrationMode = typeof (api as any).registrationMode === \"string\";\n\n const runtimeVersion =\n hasRuntimeNamespace && typeof (api as any).runtime?.version === \"string\"\n ? (api as any).runtime.version\n : null;\n const isNewSdk =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRuntimeNamespace || hasRegistrationMode;\n const sdkVersion: string =\n runtimeVersion ??\n (isNewSdk ? readEnvVar(\"OPENCLAW_SERVICE_VERSION\") : null) ??\n \"legacy\";\n\n // New SDK is indicated by any of the new API surfaces being present.\n // New hook system requires one of the authoritative new-SDK signals:\n // - registerMemoryPromptSection (pre-capability new SDKs, ≥2026.3.22)\n // - registerMemoryCapability (capability-based SDKs, ≥2026.4.5; the\n // deprecated registerMemoryPromptSection may be absent)\n // - registrationMode (explicit registration lifecycle signal)\n // Just having runtime.version is NOT sufficient — some legacy builds\n // expose it. Omitting registerMemoryCapability here would cause the\n // legacy before_agent_start hook to be registered on new SDKs that only\n // expose registerMemoryCapability, silently breaking memory injection.\n const hasNewHookSystem =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRegistrationMode;\n\n return {\n hasBeforePromptBuild: hasNewHookSystem,\n hasRegisterMemoryPromptSection,\n hasRegisterMemoryCapability,\n hasDefinePluginEntry: isNewSdk, // entry point is less risky, keep broad detection\n hasRuntimeNamespace,\n hasRegistrationMode,\n hasTypedHooks: hasNewHookSystem,\n sdkVersion,\n registrationMode: hasRegistrationMode\n ? ((api as any).registrationMode as SdkCapabilities[\"registrationMode\"])\n : undefined,\n };\n}\n"],"mappings":";;;;;AA+BO,SAAS,sBAAsB,KAA+C;AACnF,QAAM,iCACJ,OAAQ,IAAY,gCAAgC;AACtD,QAAM,8BACJ,OAAQ,IAAY,6BAA6B;AACnD,QAAM,sBACJ,OAAQ,IAAY,YAAY,YAAa,IAAY,YAAY;AACvE,QAAM,sBAAsB,OAAQ,IAAY,qBAAqB;AAErE,QAAM,iBACJ,uBAAuB,OAAQ,IAAY,SAAS,YAAY,WAC3D,IAAY,QAAQ,UACrB;AACN,QAAM,WACJ,kCAAkC,+BAA+B,uBAAuB;AAC1F,QAAM,aACJ,mBACC,WAAW,WAAW,0BAA0B,IAAI,SACrD;AAYF,QAAM,mBACJ,kCAAkC,+BAA+B;AAEnE,SAAO;AAAA,IACL,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA;AAAA,IACtB;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA,kBAAkB,sBACZ,IAAY,mBACd;AAAA,EACN;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/sdk-compat.ts"],"sourcesContent":["/**\n * Runtime SDK capability detection.\n *\n * Probes the injected api object at registration time to determine which\n * OpenClaw SDK features are available. All hook registrations and entry-point\n * patterns branch on these flags so engram works on both old (≤2026.3.13)\n * and new (≥2026.3.22) runtimes.\n */\nimport { readEnvVar } from \"./runtime/env.js\";\n\nexport interface SdkCapabilities {\n /** api.on(\"before_prompt_build\", ...) is available */\n hasBeforePromptBuild: boolean;\n /** api.registerMemoryPromptSection() exists */\n hasRegisterMemoryPromptSection: boolean;\n /** api.registerMemoryCapability() exists (new SDK >=2026.4.5) */\n hasRegisterMemoryCapability: boolean;\n /** definePluginEntry from openclaw/plugin-sdk/plugin-entry is importable */\n hasDefinePluginEntry: boolean;\n /** api.runtime.* namespace exists */\n hasRuntimeNamespace: boolean;\n /** api.registrationMode is present */\n hasRegistrationMode: boolean;\n /** Hooks receive typed event/context objects */\n hasTypedHooks: boolean;\n /** Detected SDK version string, or \"legacy\" */\n sdkVersion: string;\n /** api.registrationMode value when present */\n registrationMode: \"full\" | \"setup-only\" | \"setup-runtime\" | undefined;\n}\n\nexport function detectSdkCapabilities(api: Record<string, unknown>): SdkCapabilities {\n const hasRegisterMemoryPromptSection =\n typeof (api as any).registerMemoryPromptSection === \"function\";\n const hasRegisterMemoryCapability =\n typeof (api as any).registerMemoryCapability === \"function\";\n const hasRuntimeNamespace =\n typeof (api as any).runtime === \"object\" && (api as any).runtime !== null;\n const hasRegistrationMode = typeof (api as any).registrationMode === \"string\";\n\n const runtimeVersion =\n hasRuntimeNamespace && typeof (api as any).runtime?.version === \"string\"\n ? (api as any).runtime.version\n : null;\n const isNewSdk =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRuntimeNamespace || hasRegistrationMode;\n const sdkVersion: string =\n runtimeVersion ??\n (isNewSdk ? readEnvVar(\"OPENCLAW_SERVICE_VERSION\") : null) ??\n \"legacy\";\n\n // New SDK is indicated by any of the new API surfaces being present.\n // New hook system requires one of the authoritative new-SDK signals:\n // - registerMemoryPromptSection (pre-capability new SDKs, ≥2026.3.22)\n // - registerMemoryCapability (capability-based SDKs, ≥2026.4.5; the\n // deprecated registerMemoryPromptSection may be absent)\n // - registrationMode (explicit registration lifecycle signal)\n // Just having runtime.version is NOT sufficient — some legacy builds\n // expose it. Omitting registerMemoryCapability here would cause the\n // legacy before_agent_start hook to be registered on new SDKs that only\n // expose registerMemoryCapability, silently breaking memory injection.\n const hasNewHookSystem =\n hasRegisterMemoryPromptSection || hasRegisterMemoryCapability || hasRegistrationMode;\n\n return {\n hasBeforePromptBuild: hasNewHookSystem,\n hasRegisterMemoryPromptSection,\n hasRegisterMemoryCapability,\n hasDefinePluginEntry: isNewSdk, // entry point is less risky, keep broad detection\n hasRuntimeNamespace,\n hasRegistrationMode,\n hasTypedHooks: hasNewHookSystem,\n sdkVersion,\n registrationMode: hasRegistrationMode\n ? ((api as any).registrationMode as SdkCapabilities[\"registrationMode\"])\n : undefined,\n };\n}\n"],"mappings":";;;;;;AA+BO,SAAS,sBAAsB,KAA+C;AACnF,QAAM,iCACJ,OAAQ,IAAY,gCAAgC;AACtD,QAAM,8BACJ,OAAQ,IAAY,6BAA6B;AACnD,QAAM,sBACJ,OAAQ,IAAY,YAAY,YAAa,IAAY,YAAY;AACvE,QAAM,sBAAsB,OAAQ,IAAY,qBAAqB;AAErE,QAAM,iBACJ,uBAAuB,OAAQ,IAAY,SAAS,YAAY,WAC3D,IAAY,QAAQ,UACrB;AACN,QAAM,WACJ,kCAAkC,+BAA+B,uBAAuB;AAC1F,QAAM,aACJ,mBACC,WAAW,WAAW,0BAA0B,IAAI,SACrD;AAYF,QAAM,mBACJ,kCAAkC,+BAA+B;AAEnE,SAAO;AAAA,IACL,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA,sBAAsB;AAAA;AAAA,IACtB;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA,kBAAkB,sBACZ,IAAY,mBACd;AAAA,EACN;AACF;","names":[]}