@remnic/core 10.0.49 → 10.0.51

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 (415) hide show
  1. package/dist/access-admin-ops-surface.js +49 -48
  2. package/dist/access-authorization-probe.js +50 -49
  3. package/dist/access-boundary.d.ts +6 -1
  4. package/dist/access-boundary.d.ts.map +1 -1
  5. package/dist/access-boundary.js +49 -48
  6. package/dist/access-cli.js +120 -119
  7. package/dist/access-cli.js.map +1 -1
  8. package/dist/access-errors.d.ts.map +1 -1
  9. package/dist/access-errors.js +1 -1
  10. package/dist/access-extraction-force-flush.js +49 -48
  11. package/dist/access-http-briefing.d.ts +2 -0
  12. package/dist/access-http-briefing.d.ts.map +1 -1
  13. package/dist/access-http-briefing.js +50 -49
  14. package/dist/access-http-query.js +51 -50
  15. package/dist/access-http.d.ts.map +1 -1
  16. package/dist/access-http.js +70 -69
  17. package/dist/access-identity-continuity-surface.js +49 -48
  18. package/dist/access-lcm-surface.js +49 -48
  19. package/dist/access-mcp.js +60 -59
  20. package/dist/access-memory-search-fanout.js +2 -2
  21. package/dist/access-namespace-preflight.js +49 -48
  22. package/dist/access-observe-write-category.d.ts +1 -1
  23. package/dist/access-observe-write-category.d.ts.map +1 -1
  24. package/dist/access-observe-write-category.js +10 -10
  25. package/dist/access-observe-write-surface.d.ts.map +1 -1
  26. package/dist/access-observe-write-surface.js +49 -48
  27. package/dist/access-offline-manifest.js +6 -6
  28. package/dist/access-operations-batch.js +50 -49
  29. package/dist/access-operations.js +57 -56
  30. package/dist/access-recall-concurrency.js +49 -48
  31. package/dist/access-recall-diagnostics.js +2 -2
  32. package/dist/access-recall-response.js +49 -48
  33. package/dist/access-recall-surface.js +49 -48
  34. package/dist/access-schema.d.ts +245 -773
  35. package/dist/access-schema.d.ts.map +1 -1
  36. package/dist/access-schema.js +6 -6
  37. package/dist/access-service.d.ts +5 -0
  38. package/dist/access-service.d.ts.map +1 -1
  39. package/dist/access-service.js +49 -48
  40. package/dist/access-surface-catalog.js +51 -50
  41. package/dist/access-surface-catalog.js.map +1 -1
  42. package/dist/access-token-capabilities.js +2 -2
  43. package/dist/active-recall.js +16 -16
  44. package/dist/{auto-sync-BNCBMU6H.js → auto-sync-UQQ6YJSB.js} +3 -3
  45. package/dist/briefing-deadline.d.ts +7 -0
  46. package/dist/briefing-deadline.d.ts.map +1 -0
  47. package/dist/briefing-deadline.js +13 -0
  48. package/dist/briefing-window.d.ts +12 -4
  49. package/dist/briefing-window.d.ts.map +1 -1
  50. package/dist/briefing-window.js +3 -1
  51. package/dist/briefing.d.ts +2 -0
  52. package/dist/briefing.d.ts.map +1 -1
  53. package/dist/briefing.js +12 -11
  54. package/dist/buffer.js +3 -3
  55. package/dist/calibration.js +2 -2
  56. package/dist/{capsule-merge-RNQUP2VL.js → capsule-merge-D4BTIJGK.js} +3 -3
  57. package/dist/causal-consolidation.js +11 -11
  58. package/dist/{chunk-ESDOQEJM.js → chunk-2AKIVSHP.js} +2 -2
  59. package/dist/{chunk-BWF3KNSQ.js → chunk-2EXF6IIB.js} +2 -2
  60. package/dist/{chunk-AGCEJDG2.js → chunk-2ONKXEC7.js} +3 -3
  61. package/dist/{chunk-3NYIXVCT.js → chunk-2S6JADBB.js} +2 -2
  62. package/dist/chunk-2S6JADBB.js.map +1 -0
  63. package/dist/{chunk-ZSEFGDCI.js → chunk-2TGIKMMZ.js} +2 -2
  64. package/dist/{chunk-MCS4LIXP.js → chunk-43TUWQNR.js} +2 -2
  65. package/dist/{chunk-Q6PYCPHO.js → chunk-44EUCSG4.js} +2 -2
  66. package/dist/{chunk-2J6BIOVN.js → chunk-4FM35YIA.js} +3 -3
  67. package/dist/{chunk-2NLCDNGA.js → chunk-564YP3DW.js} +2 -2
  68. package/dist/{chunk-YY6PWFUC.js → chunk-6ZAU7LAR.js} +3 -3
  69. package/dist/{chunk-HCPVL6SF.js → chunk-72CBJ5VP.js} +3 -3
  70. package/dist/{chunk-AF4UIHON.js → chunk-74AY3S7U.js} +9 -9
  71. package/dist/{chunk-N6EM7ESC.js → chunk-75BK4XGV.js} +27 -19
  72. package/dist/chunk-75BK4XGV.js.map +1 -0
  73. package/dist/{chunk-5IDQVE4U.js → chunk-A3UFV4K3.js} +6 -6
  74. package/dist/{chunk-LWRIGKFM.js → chunk-A5L5KGDI.js} +19 -1
  75. package/dist/chunk-A5L5KGDI.js.map +1 -0
  76. package/dist/{chunk-RZDDNH63.js → chunk-A6JDT6QF.js} +27 -15
  77. package/dist/chunk-A6JDT6QF.js.map +1 -0
  78. package/dist/{chunk-XFND63OB.js → chunk-AHGOOZUC.js} +2 -2
  79. package/dist/{chunk-A7AISUJI.js → chunk-AJG2TAMR.js} +2 -2
  80. package/dist/{chunk-2BY56HE6.js → chunk-AZLD4CKG.js} +36 -36
  81. package/dist/{chunk-E47UQBYW.js → chunk-B35EQQ7L.js} +3 -3
  82. package/dist/{chunk-E6UNM67F.js → chunk-B6SPPYGJ.js} +2 -2
  83. package/dist/{chunk-CMOYD5CA.js → chunk-CCL2OXFO.js} +2 -2
  84. package/dist/{chunk-SVJ5JVZO.js → chunk-CK6GCGMX.js} +4 -4
  85. package/dist/{chunk-QZK6HG4J.js → chunk-DF6ZF2BN.js} +3 -3
  86. package/dist/{chunk-CPBYKOTC.js → chunk-DJFULNXK.js} +4 -4
  87. package/dist/{chunk-VGRBKEBH.js → chunk-DQOGZZJA.js} +3 -3
  88. package/dist/{chunk-YB3WN6XA.js → chunk-EC2KVA27.js} +12 -12
  89. package/dist/{chunk-FRXS6SC7.js → chunk-EKUI7I2X.js} +20 -4
  90. package/dist/chunk-EKUI7I2X.js.map +1 -0
  91. package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
  92. package/dist/{chunk-WIBWONL4.js → chunk-EZS6QJNC.js} +2 -2
  93. package/dist/{chunk-C7WDWD35.js → chunk-FNNGWN3O.js} +5 -5
  94. package/dist/{chunk-PBWJVRKE.js → chunk-FT75AQ74.js} +3 -3
  95. package/dist/{chunk-VY6BD5KB.js → chunk-G6A3SGCE.js} +14 -12
  96. package/dist/chunk-G6A3SGCE.js.map +1 -0
  97. package/dist/{chunk-O4CA53UY.js → chunk-GBGU5OZP.js} +111 -104
  98. package/dist/chunk-GBGU5OZP.js.map +1 -0
  99. package/dist/{chunk-WJCAAVZX.js → chunk-GE3ZX6YK.js} +2 -2
  100. package/dist/{chunk-3PVKV3XL.js → chunk-HCIRR3BA.js} +3 -3
  101. package/dist/{chunk-BJTFLP3J.js → chunk-HEF4BRMT.js} +3 -3
  102. package/dist/{chunk-BMG3SAXA.js → chunk-HQUYENKK.js} +9 -12
  103. package/dist/chunk-HQUYENKK.js.map +1 -0
  104. package/dist/{chunk-6UDLN4IA.js → chunk-I6ORDT54.js} +2 -2
  105. package/dist/{chunk-N5PISU26.js → chunk-IN6U2BS5.js} +2 -2
  106. package/dist/{chunk-3INLTKTW.js → chunk-IUQXRRJB.js} +4 -4
  107. package/dist/{chunk-6W3QH3QW.js → chunk-JIJAWTRK.js} +388 -292
  108. package/dist/chunk-JIJAWTRK.js.map +1 -0
  109. package/dist/{chunk-4KS4IHKH.js → chunk-JX3E4XCW.js} +2 -2
  110. package/dist/{chunk-SW3WHVKN.js → chunk-KAJYSO3U.js} +2 -2
  111. package/dist/{chunk-D76AHITY.js → chunk-KETS5A62.js} +2 -2
  112. package/dist/{chunk-LCHFINL4.js → chunk-KIWO4327.js} +2 -2
  113. package/dist/{chunk-FC3ZFEXF.js → chunk-KJ3MDX4V.js} +2 -2
  114. package/dist/{chunk-7LCGFUMB.js → chunk-KQAFEZQX.js} +4 -4
  115. package/dist/{chunk-6TIVVOVU.js → chunk-L3EFYRYK.js} +9 -9
  116. package/dist/{chunk-3MUKQQ7A.js → chunk-LGEH473S.js} +24 -29
  117. package/dist/chunk-LGEH473S.js.map +1 -0
  118. package/dist/{chunk-X52SXKVC.js → chunk-LMB47UM6.js} +2 -2
  119. package/dist/{chunk-A3WXV7YU.js → chunk-LWMLBVGB.js} +2 -2
  120. package/dist/{chunk-KMTMMBEB.js → chunk-MC7PXJDP.js} +7 -7
  121. package/dist/{chunk-NMOEOQV4.js → chunk-MUNYUSBU.js} +2 -2
  122. package/dist/{chunk-VKUMKVEU.js → chunk-OCRLJJOV.js} +5 -5
  123. package/dist/{chunk-XSJL62LE.js → chunk-ON77FQXH.js} +2 -2
  124. package/dist/{chunk-C3HRYVGD.js → chunk-POJRFSJM.js} +3 -3
  125. package/dist/{chunk-LKRXGOQW.js → chunk-QA3Y2O6H.js} +2 -2
  126. package/dist/{chunk-23ZLN5X6.js → chunk-QT5MGENX.js} +14 -6
  127. package/dist/chunk-QT5MGENX.js.map +1 -0
  128. package/dist/{chunk-QFTNWDJ6.js → chunk-RA7YRL6H.js} +2 -2
  129. package/dist/{chunk-WQFHHJWK.js → chunk-RJDYDF5K.js} +4 -4
  130. package/dist/{chunk-E3DL3CAL.js → chunk-ROAKLYOL.js} +2 -2
  131. package/dist/{chunk-YFXRLRKP.js → chunk-S4OZKPBS.js} +7 -11
  132. package/dist/{chunk-YFXRLRKP.js.map → chunk-S4OZKPBS.js.map} +1 -1
  133. package/dist/{chunk-NWIT3U2N.js → chunk-S5CQI2KF.js} +2 -2
  134. package/dist/{chunk-P6P35FY4.js → chunk-SDESKFKT.js} +2 -2
  135. package/dist/{chunk-OD7ZXCUF.js → chunk-SFRBUBUZ.js} +10 -10
  136. package/dist/{chunk-7XFQSQYS.js → chunk-SHNM7RIT.js} +5 -4
  137. package/dist/chunk-SHNM7RIT.js.map +1 -0
  138. package/dist/{chunk-NH37SP6V.js → chunk-SJD334AG.js} +81 -78
  139. package/dist/chunk-SJD334AG.js.map +1 -0
  140. package/dist/{chunk-O7GNSHFF.js → chunk-SPTPBKZX.js} +2 -2
  141. package/dist/{chunk-HI53EK3Y.js → chunk-TC55M5PO.js} +2 -2
  142. package/dist/{chunk-SA6P2KS3.js → chunk-TEH5MDX5.js} +33 -17
  143. package/dist/chunk-TEH5MDX5.js.map +1 -0
  144. package/dist/{chunk-FOKTW6GY.js → chunk-UCLJTGP3.js} +2 -2
  145. package/dist/{chunk-FYZXZUGU.js → chunk-UQBOPCDK.js} +2 -2
  146. package/dist/{chunk-SUKPM6DV.js → chunk-UWMZT2TY.js} +47 -4
  147. package/dist/chunk-UWMZT2TY.js.map +1 -0
  148. package/dist/{chunk-754XN6LX.js → chunk-V27FK6D6.js} +2 -2
  149. package/dist/{chunk-DM6SOROF.js → chunk-V6Z4NAJZ.js} +2 -2
  150. package/dist/{chunk-5FNZ3G6X.js → chunk-VKQI47DJ.js} +4 -4
  151. package/dist/{chunk-NUK5XU3P.js → chunk-VUMWVYMR.js} +28 -13
  152. package/dist/chunk-VUMWVYMR.js.map +1 -0
  153. package/dist/{chunk-MPJDQC4G.js → chunk-WJCXUE2J.js} +2 -2
  154. package/dist/{chunk-VCBS5GRQ.js → chunk-WY66J4PI.js} +2 -2
  155. package/dist/chunk-X2KO4FK5.js +40 -0
  156. package/dist/chunk-X2KO4FK5.js.map +1 -0
  157. package/dist/{chunk-OOOX5C4X.js → chunk-XL2EE5W3.js} +4 -4
  158. package/dist/{chunk-V4GPFCJ7.js → chunk-XWJUFER3.js} +3 -3
  159. package/dist/{chunk-CZVNOTLR.js → chunk-XXR4A33N.js} +2 -2
  160. package/dist/{chunk-CRJX4OMN.js → chunk-Y3T5KQCR.js} +2 -2
  161. package/dist/{chunk-KNCR7APE.js → chunk-Y77FXULH.js} +8 -8
  162. package/dist/{chunk-2AV2U2SZ.js → chunk-YDIOMDBW.js} +2 -2
  163. package/dist/{chunk-IG747LRN.js → chunk-YO2JEX2Z.js} +2 -2
  164. package/dist/{chunk-HDT3DMUF.js → chunk-ZKK3VMWU.js} +2 -2
  165. package/dist/cli.js +92 -91
  166. package/dist/coding/export-okf-codegraph.js +9 -9
  167. package/dist/compounding/engine.js +11 -11
  168. package/dist/config.js +16 -16
  169. package/dist/connectors/codex-materialize-runner.js +10 -10
  170. package/dist/connectors/index.js +14 -14
  171. package/dist/consolidation-provenance-check.js +4 -4
  172. package/dist/consolidation-undo.js +2 -2
  173. package/dist/convergence-refresh.js +12 -12
  174. package/dist/corpus-watermark.js +14 -14
  175. package/dist/correction/passive-correction-notifications.d.ts +1 -1
  176. package/dist/correction/passive-correction-notifications.d.ts.map +1 -1
  177. package/dist/dashboard-runtime.js +2 -2
  178. package/dist/deep-recall-config.js +2 -2
  179. package/dist/deep-recall-http-glue.js +9 -9
  180. package/dist/{entity-canonical-id-migration-2YOLMOFC.js → entity-canonical-id-migration-F3JVG6K6.js} +3 -3
  181. package/dist/entity-canonical-id-migration-F3JVG6K6.js.map +1 -0
  182. package/dist/entity-retrieval.js +11 -11
  183. package/dist/explicit-capture.js +2 -2
  184. package/dist/external-wiki-access.js +50 -49
  185. package/dist/extraction-span-wire.d.ts.map +1 -1
  186. package/dist/extraction-span-wire.js +1 -1
  187. package/dist/extraction.js +22 -22
  188. package/dist/{first-start-migration-QVD22WWS.js → first-start-migration-A6PHIBUQ.js} +4 -4
  189. package/dist/harmonic-retrieval.js +10 -10
  190. package/dist/index.d.ts +1 -0
  191. package/dist/index.d.ts.map +1 -1
  192. package/dist/index.js +143 -135
  193. package/dist/lcm/engine.js +2 -2
  194. package/dist/lcm/index.js +5 -5
  195. package/dist/local-llm.js +2 -2
  196. package/dist/location/index.js +16 -16
  197. package/dist/location/tagging.d.ts +7 -5
  198. package/dist/location/tagging.d.ts.map +1 -1
  199. package/dist/maintenance/memory-governance.js +10 -10
  200. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -10
  201. package/dist/maintenance/rebuild-memory-projection-runner.js +12 -12
  202. package/dist/maintenance/rebuild-memory-projection.js +11 -11
  203. package/dist/memory-browse-http-glue.js +2 -2
  204. package/dist/memory-browse-operations.js +50 -49
  205. package/dist/namespaces/migrate.js +11 -11
  206. package/dist/namespaces/storage.js +10 -10
  207. package/dist/offline-sync-file-io.d.ts +15 -0
  208. package/dist/offline-sync-file-io.d.ts.map +1 -1
  209. package/dist/offline-sync-file-io.js +9 -1
  210. package/dist/offline-sync-impression-drain.js +2 -2
  211. package/dist/offline-sync-snapshot-stream.js +4 -4
  212. package/dist/offline-sync-upload-staging.js +2 -2
  213. package/dist/offline-sync.d.ts.map +1 -1
  214. package/dist/offline-sync.js +3 -3
  215. package/dist/operator-doctor-corpus.js +17 -17
  216. package/dist/operator-doctor-replica.js +4 -4
  217. package/dist/operator-toolkit.js +29 -29
  218. package/dist/orchestration/maintenance.js +25 -25
  219. package/dist/orchestrator.d.ts +1 -0
  220. package/dist/orchestrator.d.ts.map +1 -1
  221. package/dist/orchestrator.js +122 -121
  222. package/dist/page-versioning.js +2 -2
  223. package/dist/recall-navigation-http-glue.js +2 -2
  224. package/dist/recall-navigation-operations.js +50 -49
  225. package/dist/recall-navigation.js +49 -48
  226. package/dist/relay/mission.d.ts +731 -3403
  227. package/dist/relay/mission.d.ts.map +1 -1
  228. package/dist/replica-divergence.js +3 -3
  229. package/dist/resume-bundles.js +17 -17
  230. package/dist/schemas.d.ts +346 -1771
  231. package/dist/schemas.d.ts.map +1 -1
  232. package/dist/semantic-consolidation.js +15 -15
  233. package/dist/semantic-rule-promotion.js +10 -10
  234. package/dist/semantic-rule-verifier.js +10 -10
  235. package/dist/shared-context/manager.d.ts +13 -33
  236. package/dist/shared-context/manager.d.ts.map +1 -1
  237. package/dist/source-agent-qualifier.js +18 -18
  238. package/dist/standup/build.js +11 -11
  239. package/dist/storage/entity-canonical-id-migration-adapter.d.ts +1 -0
  240. package/dist/storage/entity-canonical-id-migration-adapter.d.ts.map +1 -1
  241. package/dist/storage/entity-canonical-id-migration.d.ts +7 -0
  242. package/dist/storage/entity-canonical-id-migration.d.ts.map +1 -1
  243. package/dist/storage/entity-canonical-id-references.d.ts +2 -0
  244. package/dist/storage/entity-canonical-id-references.d.ts.map +1 -1
  245. package/dist/storage/entity-migration-completion-cache.d.ts +46 -0
  246. package/dist/storage/entity-migration-completion-cache.d.ts.map +1 -0
  247. package/dist/storage/entity-store.d.ts +1 -8
  248. package/dist/storage/entity-store.d.ts.map +1 -1
  249. package/dist/storage/memory-read-store.d.ts +3 -2
  250. package/dist/storage/memory-read-store.d.ts.map +1 -1
  251. package/dist/storage/windowed-memory-read.d.ts +6 -0
  252. package/dist/storage/windowed-memory-read.d.ts.map +1 -1
  253. package/dist/storage.d.ts +2 -0
  254. package/dist/storage.d.ts.map +1 -1
  255. package/dist/storage.js +9 -9
  256. package/dist/summarizer.js +3 -3
  257. package/dist/support-passport/access-operations.d.ts +51 -51
  258. package/dist/support-passport/contracts.d.ts +85 -126
  259. package/dist/support-passport/contracts.d.ts.map +1 -1
  260. package/dist/support-passport/generated-batch.d.ts +3 -17
  261. package/dist/support-passport/generated-batch.d.ts.map +1 -1
  262. package/dist/support-passport/grant-contracts.d.ts +75 -381
  263. package/dist/support-passport/grant-contracts.d.ts.map +1 -1
  264. package/dist/support-passport/index.js +52 -51
  265. package/dist/support-passport/model-audit.d.ts +17 -82
  266. package/dist/support-passport/model-audit.d.ts.map +1 -1
  267. package/dist/support-passport/model-bridge.d.ts +12 -51
  268. package/dist/support-passport/model-bridge.d.ts.map +1 -1
  269. package/dist/support-passport/model-contracts.d.ts +53 -192
  270. package/dist/support-passport/model-contracts.d.ts.map +1 -1
  271. package/dist/tokens.js +3 -3
  272. package/dist/transfer/capsule-export.js +2 -2
  273. package/dist/transfer/capsule-import.js +4 -4
  274. package/dist/transfer/export-okf.js +10 -10
  275. package/dist/transfer/types.d.ts +32 -737
  276. package/dist/transfer/types.d.ts.map +1 -1
  277. package/dist/verified-recall.js +10 -10
  278. package/dist/who-knows-cli.js +12 -12
  279. package/dist/who-knows.js +11 -11
  280. package/package.json +3 -4
  281. package/src/access-boundary.test.ts +14 -0
  282. package/src/access-boundary.ts +48 -42
  283. package/src/access-category-alias.test.ts +9 -7
  284. package/src/access-errors.test.ts +21 -9
  285. package/src/access-errors.ts +45 -31
  286. package/src/access-http-briefing.ts +4 -0
  287. package/src/access-http.test.ts +41 -12
  288. package/src/access-http.ts +6 -0
  289. package/src/access-observe-write-category.ts +1 -1
  290. package/src/access-observe-write-surface.ts +24 -19
  291. package/src/access-operations-batch.ts +18 -2
  292. package/src/access-schema.ts +13 -17
  293. package/src/access-service.ts +5 -0
  294. package/src/briefing-abort.test.ts +173 -0
  295. package/src/briefing-deadline.test.ts +84 -0
  296. package/src/briefing-deadline.ts +33 -0
  297. package/src/briefing-window-abort.test.ts +47 -0
  298. package/src/briefing-window.ts +33 -4
  299. package/src/briefing.ts +23 -16
  300. package/src/correction/passive-correction-notifications-abort.test.ts +42 -0
  301. package/src/correction/passive-correction-notifications.ts +4 -0
  302. package/src/entity-lazy-compatibility.test.ts +229 -0
  303. package/src/entity-migration-completion-notification.test.ts +148 -0
  304. package/src/extraction-scope-source-agent.test.ts +6 -6
  305. package/src/extraction-span-wire.test.ts +28 -0
  306. package/src/extraction-span-wire.ts +34 -6
  307. package/src/index.ts +1 -1
  308. package/src/location/tagging.ts +14 -12
  309. package/src/offline-sync-file-io.ts +61 -2
  310. package/src/offline-sync.test.ts +313 -20
  311. package/src/offline-sync.ts +43 -21
  312. package/src/orchestrator-init.test.ts +49 -1
  313. package/src/orchestrator.ts +9 -8
  314. package/src/storage/entity-canonical-id-migration-adapter.ts +16 -1
  315. package/src/storage/entity-canonical-id-migration.ts +19 -10
  316. package/src/storage/entity-canonical-id-references.ts +24 -0
  317. package/src/storage/entity-migration-completion-cache.nofollow.test.ts +223 -0
  318. package/src/storage/entity-migration-completion-cache.ts +153 -0
  319. package/src/storage/entity-store.ts +58 -86
  320. package/src/storage/memory-read-store.ts +9 -3
  321. package/src/storage/windowed-memory-read.ts +8 -0
  322. package/src/storage-startup-nonblocking-migration.test.ts +183 -0
  323. package/src/storage.ts +7 -2
  324. package/src/testing/subjects/entity-migration-completion-cache.test.ts +90 -0
  325. package/dist/chunk-23ZLN5X6.js.map +0 -1
  326. package/dist/chunk-3MUKQQ7A.js.map +0 -1
  327. package/dist/chunk-3NYIXVCT.js.map +0 -1
  328. package/dist/chunk-6W3QH3QW.js.map +0 -1
  329. package/dist/chunk-7XFQSQYS.js.map +0 -1
  330. package/dist/chunk-BMG3SAXA.js.map +0 -1
  331. package/dist/chunk-FRXS6SC7.js.map +0 -1
  332. package/dist/chunk-LWRIGKFM.js.map +0 -1
  333. package/dist/chunk-N6EM7ESC.js.map +0 -1
  334. package/dist/chunk-NH37SP6V.js.map +0 -1
  335. package/dist/chunk-NUK5XU3P.js.map +0 -1
  336. package/dist/chunk-O4CA53UY.js.map +0 -1
  337. package/dist/chunk-RZDDNH63.js.map +0 -1
  338. package/dist/chunk-SA6P2KS3.js.map +0 -1
  339. package/dist/chunk-SUKPM6DV.js.map +0 -1
  340. package/dist/chunk-VY6BD5KB.js.map +0 -1
  341. /package/dist/{auto-sync-BNCBMU6H.js.map → auto-sync-UQQ6YJSB.js.map} +0 -0
  342. /package/dist/{entity-canonical-id-migration-2YOLMOFC.js.map → briefing-deadline.js.map} +0 -0
  343. /package/dist/{capsule-merge-RNQUP2VL.js.map → capsule-merge-D4BTIJGK.js.map} +0 -0
  344. /package/dist/{chunk-ESDOQEJM.js.map → chunk-2AKIVSHP.js.map} +0 -0
  345. /package/dist/{chunk-BWF3KNSQ.js.map → chunk-2EXF6IIB.js.map} +0 -0
  346. /package/dist/{chunk-AGCEJDG2.js.map → chunk-2ONKXEC7.js.map} +0 -0
  347. /package/dist/{chunk-ZSEFGDCI.js.map → chunk-2TGIKMMZ.js.map} +0 -0
  348. /package/dist/{chunk-MCS4LIXP.js.map → chunk-43TUWQNR.js.map} +0 -0
  349. /package/dist/{chunk-Q6PYCPHO.js.map → chunk-44EUCSG4.js.map} +0 -0
  350. /package/dist/{chunk-2J6BIOVN.js.map → chunk-4FM35YIA.js.map} +0 -0
  351. /package/dist/{chunk-2NLCDNGA.js.map → chunk-564YP3DW.js.map} +0 -0
  352. /package/dist/{chunk-YY6PWFUC.js.map → chunk-6ZAU7LAR.js.map} +0 -0
  353. /package/dist/{chunk-HCPVL6SF.js.map → chunk-72CBJ5VP.js.map} +0 -0
  354. /package/dist/{chunk-AF4UIHON.js.map → chunk-74AY3S7U.js.map} +0 -0
  355. /package/dist/{chunk-5IDQVE4U.js.map → chunk-A3UFV4K3.js.map} +0 -0
  356. /package/dist/{chunk-XFND63OB.js.map → chunk-AHGOOZUC.js.map} +0 -0
  357. /package/dist/{chunk-A7AISUJI.js.map → chunk-AJG2TAMR.js.map} +0 -0
  358. /package/dist/{chunk-2BY56HE6.js.map → chunk-AZLD4CKG.js.map} +0 -0
  359. /package/dist/{chunk-E47UQBYW.js.map → chunk-B35EQQ7L.js.map} +0 -0
  360. /package/dist/{chunk-E6UNM67F.js.map → chunk-B6SPPYGJ.js.map} +0 -0
  361. /package/dist/{chunk-CMOYD5CA.js.map → chunk-CCL2OXFO.js.map} +0 -0
  362. /package/dist/{chunk-SVJ5JVZO.js.map → chunk-CK6GCGMX.js.map} +0 -0
  363. /package/dist/{chunk-QZK6HG4J.js.map → chunk-DF6ZF2BN.js.map} +0 -0
  364. /package/dist/{chunk-CPBYKOTC.js.map → chunk-DJFULNXK.js.map} +0 -0
  365. /package/dist/{chunk-VGRBKEBH.js.map → chunk-DQOGZZJA.js.map} +0 -0
  366. /package/dist/{chunk-YB3WN6XA.js.map → chunk-EC2KVA27.js.map} +0 -0
  367. /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
  368. /package/dist/{chunk-WIBWONL4.js.map → chunk-EZS6QJNC.js.map} +0 -0
  369. /package/dist/{chunk-C7WDWD35.js.map → chunk-FNNGWN3O.js.map} +0 -0
  370. /package/dist/{chunk-PBWJVRKE.js.map → chunk-FT75AQ74.js.map} +0 -0
  371. /package/dist/{chunk-WJCAAVZX.js.map → chunk-GE3ZX6YK.js.map} +0 -0
  372. /package/dist/{chunk-3PVKV3XL.js.map → chunk-HCIRR3BA.js.map} +0 -0
  373. /package/dist/{chunk-BJTFLP3J.js.map → chunk-HEF4BRMT.js.map} +0 -0
  374. /package/dist/{chunk-6UDLN4IA.js.map → chunk-I6ORDT54.js.map} +0 -0
  375. /package/dist/{chunk-N5PISU26.js.map → chunk-IN6U2BS5.js.map} +0 -0
  376. /package/dist/{chunk-3INLTKTW.js.map → chunk-IUQXRRJB.js.map} +0 -0
  377. /package/dist/{chunk-4KS4IHKH.js.map → chunk-JX3E4XCW.js.map} +0 -0
  378. /package/dist/{chunk-SW3WHVKN.js.map → chunk-KAJYSO3U.js.map} +0 -0
  379. /package/dist/{chunk-D76AHITY.js.map → chunk-KETS5A62.js.map} +0 -0
  380. /package/dist/{chunk-LCHFINL4.js.map → chunk-KIWO4327.js.map} +0 -0
  381. /package/dist/{chunk-FC3ZFEXF.js.map → chunk-KJ3MDX4V.js.map} +0 -0
  382. /package/dist/{chunk-7LCGFUMB.js.map → chunk-KQAFEZQX.js.map} +0 -0
  383. /package/dist/{chunk-6TIVVOVU.js.map → chunk-L3EFYRYK.js.map} +0 -0
  384. /package/dist/{chunk-X52SXKVC.js.map → chunk-LMB47UM6.js.map} +0 -0
  385. /package/dist/{chunk-A3WXV7YU.js.map → chunk-LWMLBVGB.js.map} +0 -0
  386. /package/dist/{chunk-KMTMMBEB.js.map → chunk-MC7PXJDP.js.map} +0 -0
  387. /package/dist/{chunk-NMOEOQV4.js.map → chunk-MUNYUSBU.js.map} +0 -0
  388. /package/dist/{chunk-VKUMKVEU.js.map → chunk-OCRLJJOV.js.map} +0 -0
  389. /package/dist/{chunk-XSJL62LE.js.map → chunk-ON77FQXH.js.map} +0 -0
  390. /package/dist/{chunk-C3HRYVGD.js.map → chunk-POJRFSJM.js.map} +0 -0
  391. /package/dist/{chunk-LKRXGOQW.js.map → chunk-QA3Y2O6H.js.map} +0 -0
  392. /package/dist/{chunk-QFTNWDJ6.js.map → chunk-RA7YRL6H.js.map} +0 -0
  393. /package/dist/{chunk-WQFHHJWK.js.map → chunk-RJDYDF5K.js.map} +0 -0
  394. /package/dist/{chunk-E3DL3CAL.js.map → chunk-ROAKLYOL.js.map} +0 -0
  395. /package/dist/{chunk-NWIT3U2N.js.map → chunk-S5CQI2KF.js.map} +0 -0
  396. /package/dist/{chunk-P6P35FY4.js.map → chunk-SDESKFKT.js.map} +0 -0
  397. /package/dist/{chunk-OD7ZXCUF.js.map → chunk-SFRBUBUZ.js.map} +0 -0
  398. /package/dist/{chunk-O7GNSHFF.js.map → chunk-SPTPBKZX.js.map} +0 -0
  399. /package/dist/{chunk-HI53EK3Y.js.map → chunk-TC55M5PO.js.map} +0 -0
  400. /package/dist/{chunk-FOKTW6GY.js.map → chunk-UCLJTGP3.js.map} +0 -0
  401. /package/dist/{chunk-FYZXZUGU.js.map → chunk-UQBOPCDK.js.map} +0 -0
  402. /package/dist/{chunk-754XN6LX.js.map → chunk-V27FK6D6.js.map} +0 -0
  403. /package/dist/{chunk-DM6SOROF.js.map → chunk-V6Z4NAJZ.js.map} +0 -0
  404. /package/dist/{chunk-5FNZ3G6X.js.map → chunk-VKQI47DJ.js.map} +0 -0
  405. /package/dist/{chunk-MPJDQC4G.js.map → chunk-WJCXUE2J.js.map} +0 -0
  406. /package/dist/{chunk-VCBS5GRQ.js.map → chunk-WY66J4PI.js.map} +0 -0
  407. /package/dist/{chunk-OOOX5C4X.js.map → chunk-XL2EE5W3.js.map} +0 -0
  408. /package/dist/{chunk-V4GPFCJ7.js.map → chunk-XWJUFER3.js.map} +0 -0
  409. /package/dist/{chunk-CZVNOTLR.js.map → chunk-XXR4A33N.js.map} +0 -0
  410. /package/dist/{chunk-CRJX4OMN.js.map → chunk-Y3T5KQCR.js.map} +0 -0
  411. /package/dist/{chunk-KNCR7APE.js.map → chunk-Y77FXULH.js.map} +0 -0
  412. /package/dist/{chunk-2AV2U2SZ.js.map → chunk-YDIOMDBW.js.map} +0 -0
  413. /package/dist/{chunk-IG747LRN.js.map → chunk-YO2JEX2Z.js.map} +0 -0
  414. /package/dist/{chunk-HDT3DMUF.js.map → chunk-ZKK3VMWU.js.map} +0 -0
  415. /package/dist/{first-start-migration-QVD22WWS.js.map → first-start-migration-A6PHIBUQ.js.map} +0 -0
package/dist/schemas.d.ts CHANGED
@@ -1,21 +1,31 @@
1
1
  import { z } from "zod";
2
- export declare const MemoryActionTypeSchema: z.ZodEnum<["store_episode", "store_note", "update_note", "create_artifact", "summarize_node", "discard", "link_graph"]>;
2
+ export declare const MemoryActionTypeSchema: z.ZodEnum<{
3
+ store_episode: "store_episode";
4
+ store_note: "store_note";
5
+ update_note: "update_note";
6
+ create_artifact: "create_artifact";
7
+ summarize_node: "summarize_node";
8
+ discard: "discard";
9
+ link_graph: "link_graph";
10
+ }>;
3
11
  export declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
4
12
  confidence: z.ZodNumber;
5
- lifecycleState: z.ZodEnum<["active", "validated", "candidate", "stale", "archived"]>;
13
+ lifecycleState: z.ZodEnum<{
14
+ stale: "stale";
15
+ active: "active";
16
+ archived: "archived";
17
+ candidate: "candidate";
18
+ validated: "validated";
19
+ }>;
6
20
  importance: z.ZodNumber;
7
- source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
8
- }, "strict", z.ZodTypeAny, {
9
- source: "extraction" | "unknown" | "manual" | "consolidation" | "replay";
10
- confidence: number;
11
- lifecycleState: "stale" | "active" | "archived" | "candidate" | "validated";
12
- importance: number;
13
- }, {
14
- source: "extraction" | "unknown" | "manual" | "consolidation" | "replay";
15
- confidence: number;
16
- lifecycleState: "stale" | "active" | "archived" | "candidate" | "validated";
17
- importance: number;
18
- }>;
21
+ source: z.ZodEnum<{
22
+ extraction: "extraction";
23
+ unknown: "unknown";
24
+ manual: "manual";
25
+ consolidation: "consolidation";
26
+ replay: "replay";
27
+ }>;
28
+ }, z.core.$strict>;
19
29
  export declare function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema>;
20
30
  export declare function parseMemoryActionEligibilityContext(value: unknown): z.infer<typeof MemoryActionEligibilityContextSchema>;
21
31
  export declare const ProcedureStepExtractSchema: z.ZodObject<{
@@ -24,53 +34,50 @@ export declare const ProcedureStepExtractSchema: z.ZodObject<{
24
34
  toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
25
35
  kind: z.ZodString;
26
36
  signature: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- kind: string;
29
- signature: string;
30
- }, {
31
- kind: string;
32
- signature: string;
33
- }>>>;
37
+ }, z.core.$strip>>>;
34
38
  expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
39
  optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
36
- }, "strip", z.ZodTypeAny, {
37
- intent: string;
38
- order: number;
39
- toolCall?: {
40
- kind: string;
41
- signature: string;
42
- } | null | undefined;
43
- expectedOutcome?: string | null | undefined;
44
- optional?: boolean | null | undefined;
45
- }, {
46
- intent: string;
47
- order: number;
48
- toolCall?: {
49
- kind: string;
50
- signature: string;
51
- } | null | undefined;
52
- expectedOutcome?: string | null | undefined;
53
- optional?: boolean | null | undefined;
54
- }>;
55
- export declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
56
- category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
40
+ }, z.core.$strip>;
41
+ export declare const ExtractedFactSchema: z.ZodObject<{
42
+ category: z.ZodEnum<{
43
+ decision: "decision";
44
+ procedure: "procedure";
45
+ fact: "fact";
46
+ preference: "preference";
47
+ correction: "correction";
48
+ entity: "entity";
49
+ relationship: "relationship";
50
+ principle: "principle";
51
+ commitment: "commitment";
52
+ moment: "moment";
53
+ skill: "skill";
54
+ rule: "rule";
55
+ reasoning_trace: "reasoning_trace";
56
+ }>;
57
57
  content: z.ZodString;
58
58
  confidence: z.ZodNumber;
59
- tags: z.ZodArray<z.ZodString, "many">;
59
+ tags: z.ZodArray<z.ZodString>;
60
60
  entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
61
  cueAnchors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
62
- type: z.ZodEnum<["entity", "file", "tool", "outcome", "constraint", "date"]>;
62
+ type: z.ZodEnum<{
63
+ constraint: "constraint";
64
+ file: "file";
65
+ date: "date";
66
+ entity: "entity";
67
+ tool: "tool";
68
+ outcome: "outcome";
69
+ }>;
63
70
  value: z.ZodString;
64
- }, "strip", z.ZodTypeAny, {
65
- value: string;
66
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
67
- }, {
68
- value: string;
69
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
70
- }>, "many">>>;
71
+ }, z.core.$strip>>>>;
71
72
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
- scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
73
- subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<["user", "agent"]>>>;
73
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
74
+ project: "project";
75
+ global: "global";
76
+ }>>>;
77
+ subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
78
+ user: "user";
79
+ agent: "agent";
80
+ }>>>;
74
81
  quote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
82
  structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
76
83
  procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -79,34 +86,10 @@ export declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
79
86
  toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
80
87
  kind: z.ZodString;
81
88
  signature: z.ZodString;
82
- }, "strip", z.ZodTypeAny, {
83
- kind: string;
84
- signature: string;
85
- }, {
86
- kind: string;
87
- signature: string;
88
- }>>>;
89
+ }, z.core.$strip>>>;
89
90
  expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
91
  optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
91
- }, "strip", z.ZodTypeAny, {
92
- intent: string;
93
- order: number;
94
- toolCall?: {
95
- kind: string;
96
- signature: string;
97
- } | null | undefined;
98
- expectedOutcome?: string | null | undefined;
99
- optional?: boolean | null | undefined;
100
- }, {
101
- intent: string;
102
- order: number;
103
- toolCall?: {
104
- kind: string;
105
- signature: string;
106
- } | null | undefined;
107
- expectedOutcome?: string | null | undefined;
108
- optional?: boolean | null | undefined;
109
- }>, "many">>>;
92
+ }, z.core.$strip>>>>;
110
93
  span: z.ZodNullable<z.ZodOptional<z.ZodObject<{
111
94
  sourceMessageIndex: z.ZodNumber;
112
95
  charStart: z.ZodNumber;
@@ -114,371 +97,97 @@ export declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
114
97
  frame: z.ZodString;
115
98
  sourceHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
99
  sourceLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
117
- }, "strip", z.ZodTypeAny, {
118
- sourceMessageIndex: number;
119
- charStart: number;
120
- charEnd: number;
121
- frame: string;
122
- sourceHash?: string | null | undefined;
123
- sourceLength?: number | null | undefined;
124
- }, {
125
- sourceMessageIndex: number;
126
- charStart: number;
127
- charEnd: number;
128
- frame: string;
129
- sourceHash?: string | null | undefined;
130
- sourceLength?: number | null | undefined;
131
- }>>>;
132
- reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
100
+ }, z.core.$strip>>>;
101
+ reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodObject<{
133
102
  steps: z.ZodArray<z.ZodObject<{
134
103
  order: z.ZodNumber;
135
104
  description: z.ZodString;
136
- }, "strip", z.ZodTypeAny, {
137
- order: number;
138
- description: string;
139
- }, {
140
- order: number;
141
- description: string;
142
- }>, "many">;
105
+ }, z.core.$strip>>;
143
106
  finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
107
  final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
108
  observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
146
109
  observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
147
- }, "strip", z.ZodTypeAny, {
148
- steps: {
149
- order: number;
150
- description: string;
151
- }[];
152
- finalAnswer?: string | null | undefined;
153
- final_answer?: string | null | undefined;
154
- observedOutcome?: string | null | undefined;
155
- observed_outcome?: string | null | undefined;
156
- }, {
157
- steps: {
158
- order: number;
159
- description: string;
160
- }[];
161
- finalAnswer?: string | null | undefined;
162
- final_answer?: string | null | undefined;
163
- observedOutcome?: string | null | undefined;
164
- observed_outcome?: string | null | undefined;
165
- }>, {
166
- steps: {
167
- order: number;
168
- description: string;
169
- }[];
170
- finalAnswer?: string | null | undefined;
171
- final_answer?: string | null | undefined;
172
- observedOutcome?: string | null | undefined;
173
- observed_outcome?: string | null | undefined;
174
- }, {
175
- steps: {
176
- order: number;
177
- description: string;
178
- }[];
179
- finalAnswer?: string | null | undefined;
180
- final_answer?: string | null | undefined;
181
- observedOutcome?: string | null | undefined;
182
- observed_outcome?: string | null | undefined;
183
- }>>>;
110
+ }, z.core.$strip>>>;
184
111
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
185
112
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
186
- }, "strip", z.ZodTypeAny, {
187
- content: string;
188
- tags: string[];
189
- confidence: number;
190
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
191
- scope?: "project" | "global" | null | undefined;
192
- subject?: "user" | "agent" | null | undefined;
193
- entityRef?: string | null | undefined;
194
- structuredAttributes?: Record<string, string> | null | undefined;
195
- cueAnchors?: {
196
- value: string;
197
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
198
- }[] | null | undefined;
199
- promptedByQuestion?: string | null | undefined;
200
- quote?: string | null | undefined;
201
- procedureSteps?: {
202
- intent: string;
203
- order: number;
204
- toolCall?: {
205
- kind: string;
206
- signature: string;
207
- } | null | undefined;
208
- expectedOutcome?: string | null | undefined;
209
- optional?: boolean | null | undefined;
210
- }[] | null | undefined;
211
- span?: {
212
- sourceMessageIndex: number;
213
- charStart: number;
214
- charEnd: number;
215
- frame: string;
216
- sourceHash?: string | null | undefined;
217
- sourceLength?: number | null | undefined;
218
- } | null | undefined;
219
- reasoningTrace?: {
220
- steps: {
221
- order: number;
222
- description: string;
223
- }[];
224
- finalAnswer?: string | null | undefined;
225
- final_answer?: string | null | undefined;
226
- observedOutcome?: string | null | undefined;
227
- observed_outcome?: string | null | undefined;
228
- } | null | undefined;
229
- eventTime?: string | null | undefined;
230
- event_time?: string | null | undefined;
231
- }, {
232
- content: string;
233
- tags: string[];
234
- confidence: number;
235
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
236
- scope?: "project" | "global" | null | undefined;
237
- subject?: "user" | "agent" | null | undefined;
238
- entityRef?: string | null | undefined;
239
- structuredAttributes?: Record<string, string> | null | undefined;
240
- cueAnchors?: {
241
- value: string;
242
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
243
- }[] | null | undefined;
244
- promptedByQuestion?: string | null | undefined;
245
- quote?: string | null | undefined;
246
- procedureSteps?: {
247
- intent: string;
248
- order: number;
249
- toolCall?: {
250
- kind: string;
251
- signature: string;
252
- } | null | undefined;
253
- expectedOutcome?: string | null | undefined;
254
- optional?: boolean | null | undefined;
255
- }[] | null | undefined;
256
- span?: {
257
- sourceMessageIndex: number;
258
- charStart: number;
259
- charEnd: number;
260
- frame: string;
261
- sourceHash?: string | null | undefined;
262
- sourceLength?: number | null | undefined;
263
- } | null | undefined;
264
- reasoningTrace?: {
265
- steps: {
266
- order: number;
267
- description: string;
268
- }[];
269
- finalAnswer?: string | null | undefined;
270
- final_answer?: string | null | undefined;
271
- observedOutcome?: string | null | undefined;
272
- observed_outcome?: string | null | undefined;
273
- } | null | undefined;
274
- eventTime?: string | null | undefined;
275
- event_time?: string | null | undefined;
276
- }>, {
277
- content: string;
278
- tags: string[];
279
- confidence: number;
280
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
281
- scope?: "project" | "global" | null | undefined;
282
- subject?: "user" | "agent" | null | undefined;
283
- entityRef?: string | null | undefined;
284
- structuredAttributes?: Record<string, string> | null | undefined;
285
- cueAnchors?: {
286
- value: string;
287
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
288
- }[] | null | undefined;
289
- promptedByQuestion?: string | null | undefined;
290
- quote?: string | null | undefined;
291
- procedureSteps?: {
292
- intent: string;
293
- order: number;
294
- toolCall?: {
295
- kind: string;
296
- signature: string;
297
- } | null | undefined;
298
- expectedOutcome?: string | null | undefined;
299
- optional?: boolean | null | undefined;
300
- }[] | null | undefined;
301
- span?: {
302
- sourceMessageIndex: number;
303
- charStart: number;
304
- charEnd: number;
305
- frame: string;
306
- sourceHash?: string | null | undefined;
307
- sourceLength?: number | null | undefined;
308
- } | null | undefined;
309
- reasoningTrace?: {
310
- steps: {
311
- order: number;
312
- description: string;
313
- }[];
314
- finalAnswer?: string | null | undefined;
315
- final_answer?: string | null | undefined;
316
- observedOutcome?: string | null | undefined;
317
- observed_outcome?: string | null | undefined;
318
- } | null | undefined;
319
- eventTime?: string | null | undefined;
320
- event_time?: string | null | undefined;
321
- }, {
322
- content: string;
323
- tags: string[];
324
- confidence: number;
325
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
326
- scope?: "project" | "global" | null | undefined;
327
- subject?: "user" | "agent" | null | undefined;
328
- entityRef?: string | null | undefined;
329
- structuredAttributes?: Record<string, string> | null | undefined;
330
- cueAnchors?: {
331
- value: string;
332
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
333
- }[] | null | undefined;
334
- promptedByQuestion?: string | null | undefined;
335
- quote?: string | null | undefined;
336
- procedureSteps?: {
337
- intent: string;
338
- order: number;
339
- toolCall?: {
340
- kind: string;
341
- signature: string;
342
- } | null | undefined;
343
- expectedOutcome?: string | null | undefined;
344
- optional?: boolean | null | undefined;
345
- }[] | null | undefined;
346
- span?: {
347
- sourceMessageIndex: number;
348
- charStart: number;
349
- charEnd: number;
350
- frame: string;
351
- sourceHash?: string | null | undefined;
352
- sourceLength?: number | null | undefined;
353
- } | null | undefined;
354
- reasoningTrace?: {
355
- steps: {
356
- order: number;
357
- description: string;
358
- }[];
359
- finalAnswer?: string | null | undefined;
360
- final_answer?: string | null | undefined;
361
- observedOutcome?: string | null | undefined;
362
- observed_outcome?: string | null | undefined;
363
- } | null | undefined;
364
- eventTime?: string | null | undefined;
365
- event_time?: string | null | undefined;
366
- }>;
113
+ }, z.core.$strip>;
367
114
  export declare const EntityMentionSchema: z.ZodObject<{
368
115
  name: z.ZodString;
369
- type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
370
- facts: z.ZodArray<z.ZodString, "many">;
116
+ type: z.ZodEnum<{
117
+ project: "project";
118
+ other: "other";
119
+ tool: "tool";
120
+ person: "person";
121
+ company: "company";
122
+ place: "place";
123
+ }>;
124
+ facts: z.ZodArray<z.ZodString>;
371
125
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
372
126
  structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
373
127
  key: z.ZodString;
374
128
  title: z.ZodString;
375
- facts: z.ZodArray<z.ZodString, "many">;
376
- }, "strip", z.ZodTypeAny, {
377
- key: string;
378
- title: string;
379
- facts: string[];
380
- }, {
381
- key: string;
382
- title: string;
383
- facts: string[];
384
- }>, "many">>>;
385
- }, "strip", z.ZodTypeAny, {
386
- name: string;
387
- type: "project" | "other" | "tool" | "person" | "company" | "place";
388
- facts: string[];
389
- promptedByQuestion?: string | null | undefined;
390
- structuredSections?: {
391
- key: string;
392
- title: string;
393
- facts: string[];
394
- }[] | null | undefined;
395
- }, {
396
- name: string;
397
- type: "project" | "other" | "tool" | "person" | "company" | "place";
398
- facts: string[];
399
- promptedByQuestion?: string | null | undefined;
400
- structuredSections?: {
401
- key: string;
402
- title: string;
403
- facts: string[];
404
- }[] | null | undefined;
405
- }>;
129
+ facts: z.ZodArray<z.ZodString>;
130
+ }, z.core.$strip>>>>;
131
+ }, z.core.$strip>;
406
132
  export declare const ExtractedQuestionSchema: z.ZodObject<{
407
133
  question: z.ZodString;
408
134
  context: z.ZodString;
409
135
  priority: z.ZodNumber;
410
- }, "strip", z.ZodTypeAny, {
411
- question: string;
412
- priority: number;
413
- context: string;
414
- }, {
415
- question: string;
416
- priority: number;
417
- context: string;
418
- }>;
136
+ }, z.core.$strip>;
419
137
  export declare const ProactiveQuestionsResultSchema: z.ZodObject<{
420
138
  questions: z.ZodArray<z.ZodObject<{
421
139
  question: z.ZodString;
422
140
  context: z.ZodString;
423
141
  priority: z.ZodNumber;
424
- }, "strip", z.ZodTypeAny, {
425
- question: string;
426
- priority: number;
427
- context: string;
428
- }, {
429
- question: string;
430
- priority: number;
431
- context: string;
432
- }>, "many">;
433
- }, "strip", z.ZodTypeAny, {
434
- questions: {
435
- question: string;
436
- priority: number;
437
- context: string;
438
- }[];
439
- }, {
440
- questions: {
441
- question: string;
442
- priority: number;
443
- context: string;
444
- }[];
445
- }>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>;
446
144
  export declare const ExtractedRelationshipSchema: z.ZodObject<{
447
145
  source: z.ZodString;
448
146
  target: z.ZodString;
449
147
  label: z.ZodString;
450
148
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
451
- }, "strip", z.ZodTypeAny, {
452
- source: string;
453
- label: string;
454
- target: string;
455
- promptedByQuestion?: string | null | undefined;
456
- }, {
457
- source: string;
458
- label: string;
459
- target: string;
460
- promptedByQuestion?: string | null | undefined;
461
- }>;
149
+ }, z.core.$strip>;
462
150
  export declare const ProactiveExtractionResultSchema: z.ZodObject<{
463
- facts: z.ZodArray<z.ZodEffects<z.ZodObject<{
464
- category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
151
+ facts: z.ZodArray<z.ZodObject<{
152
+ category: z.ZodEnum<{
153
+ decision: "decision";
154
+ procedure: "procedure";
155
+ fact: "fact";
156
+ preference: "preference";
157
+ correction: "correction";
158
+ entity: "entity";
159
+ relationship: "relationship";
160
+ principle: "principle";
161
+ commitment: "commitment";
162
+ moment: "moment";
163
+ skill: "skill";
164
+ rule: "rule";
165
+ reasoning_trace: "reasoning_trace";
166
+ }>;
465
167
  content: z.ZodString;
466
168
  confidence: z.ZodNumber;
467
- tags: z.ZodArray<z.ZodString, "many">;
169
+ tags: z.ZodArray<z.ZodString>;
468
170
  entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
469
171
  cueAnchors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
470
- type: z.ZodEnum<["entity", "file", "tool", "outcome", "constraint", "date"]>;
172
+ type: z.ZodEnum<{
173
+ constraint: "constraint";
174
+ file: "file";
175
+ date: "date";
176
+ entity: "entity";
177
+ tool: "tool";
178
+ outcome: "outcome";
179
+ }>;
471
180
  value: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
473
- value: string;
474
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
475
- }, {
476
- value: string;
477
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
478
- }>, "many">>>;
181
+ }, z.core.$strip>>>>;
479
182
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
480
- scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
481
- subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<["user", "agent"]>>>;
183
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
184
+ project: "project";
185
+ global: "global";
186
+ }>>>;
187
+ subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
188
+ user: "user";
189
+ agent: "agent";
190
+ }>>>;
482
191
  quote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
483
192
  structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
484
193
  procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -487,34 +196,10 @@ export declare const ProactiveExtractionResultSchema: z.ZodObject<{
487
196
  toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
488
197
  kind: z.ZodString;
489
198
  signature: z.ZodString;
490
- }, "strip", z.ZodTypeAny, {
491
- kind: string;
492
- signature: string;
493
- }, {
494
- kind: string;
495
- signature: string;
496
- }>>>;
199
+ }, z.core.$strip>>>;
497
200
  expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
498
201
  optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
499
- }, "strip", z.ZodTypeAny, {
500
- intent: string;
501
- order: number;
502
- toolCall?: {
503
- kind: string;
504
- signature: string;
505
- } | null | undefined;
506
- expectedOutcome?: string | null | undefined;
507
- optional?: boolean | null | undefined;
508
- }, {
509
- intent: string;
510
- order: number;
511
- toolCall?: {
512
- kind: string;
513
- signature: string;
514
- } | null | undefined;
515
- expectedOutcome?: string | null | undefined;
516
- optional?: boolean | null | undefined;
517
- }>, "many">>>;
202
+ }, z.core.$strip>>>>;
518
203
  span: z.ZodNullable<z.ZodOptional<z.ZodObject<{
519
204
  sourceMessageIndex: z.ZodNumber;
520
205
  charStart: z.ZodNumber;
@@ -522,183 +207,65 @@ export declare const ProactiveExtractionResultSchema: z.ZodObject<{
522
207
  frame: z.ZodString;
523
208
  sourceHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
524
209
  sourceLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
525
- }, "strip", z.ZodTypeAny, {
526
- sourceMessageIndex: number;
527
- charStart: number;
528
- charEnd: number;
529
- frame: string;
530
- sourceHash?: string | null | undefined;
531
- sourceLength?: number | null | undefined;
532
- }, {
533
- sourceMessageIndex: number;
534
- charStart: number;
535
- charEnd: number;
536
- frame: string;
537
- sourceHash?: string | null | undefined;
538
- sourceLength?: number | null | undefined;
539
- }>>>;
540
- reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
210
+ }, z.core.$strip>>>;
211
+ reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodObject<{
541
212
  steps: z.ZodArray<z.ZodObject<{
542
213
  order: z.ZodNumber;
543
214
  description: z.ZodString;
544
- }, "strip", z.ZodTypeAny, {
545
- order: number;
546
- description: string;
547
- }, {
548
- order: number;
549
- description: string;
550
- }>, "many">;
215
+ }, z.core.$strip>>;
551
216
  finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
552
217
  final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
553
218
  observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
554
219
  observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
555
- }, "strip", z.ZodTypeAny, {
556
- steps: {
557
- order: number;
558
- description: string;
559
- }[];
560
- finalAnswer?: string | null | undefined;
561
- final_answer?: string | null | undefined;
562
- observedOutcome?: string | null | undefined;
563
- observed_outcome?: string | null | undefined;
564
- }, {
565
- steps: {
566
- order: number;
567
- description: string;
568
- }[];
569
- finalAnswer?: string | null | undefined;
570
- final_answer?: string | null | undefined;
571
- observedOutcome?: string | null | undefined;
572
- observed_outcome?: string | null | undefined;
573
- }>, {
574
- steps: {
575
- order: number;
576
- description: string;
577
- }[];
578
- finalAnswer?: string | null | undefined;
579
- final_answer?: string | null | undefined;
580
- observedOutcome?: string | null | undefined;
581
- observed_outcome?: string | null | undefined;
582
- }, {
583
- steps: {
584
- order: number;
585
- description: string;
586
- }[];
587
- finalAnswer?: string | null | undefined;
588
- final_answer?: string | null | undefined;
589
- observedOutcome?: string | null | undefined;
590
- observed_outcome?: string | null | undefined;
591
- }>>>;
220
+ }, z.core.$strip>>>;
592
221
  eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
593
222
  event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
594
- }, "strip", z.ZodTypeAny, {
595
- content: string;
596
- tags: string[];
597
- confidence: number;
223
+ }, z.core.$strip>>;
224
+ profileUpdates: z.ZodArray<z.ZodString>;
225
+ entities: z.ZodArray<z.ZodObject<{
226
+ name: z.ZodString;
227
+ type: z.ZodEnum<{
228
+ project: "project";
229
+ other: "other";
230
+ tool: "tool";
231
+ person: "person";
232
+ company: "company";
233
+ place: "place";
234
+ }>;
235
+ facts: z.ZodArray<z.ZodString>;
236
+ promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
237
+ structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
238
+ key: z.ZodString;
239
+ title: z.ZodString;
240
+ facts: z.ZodArray<z.ZodString>;
241
+ }, z.core.$strip>>>>;
242
+ }, z.core.$strip>>;
243
+ relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ source: z.ZodString;
245
+ target: z.ZodString;
246
+ label: z.ZodString;
247
+ promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
248
+ }, z.core.$strip>>>>;
249
+ }, z.core.$strip>;
250
+ export declare const ExtractionResultSchema: z.ZodObject<{
251
+ facts: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
598
252
  category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
599
- scope?: "project" | "global" | null | undefined;
600
- subject?: "user" | "agent" | null | undefined;
601
- entityRef?: string | null | undefined;
602
- structuredAttributes?: Record<string, string> | null | undefined;
603
- cueAnchors?: {
604
- value: string;
605
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
606
- }[] | null | undefined;
607
- promptedByQuestion?: string | null | undefined;
608
- quote?: string | null | undefined;
609
- procedureSteps?: {
610
- intent: string;
611
- order: number;
612
- toolCall?: {
613
- kind: string;
614
- signature: string;
615
- } | null | undefined;
616
- expectedOutcome?: string | null | undefined;
617
- optional?: boolean | null | undefined;
618
- }[] | null | undefined;
619
- span?: {
620
- sourceMessageIndex: number;
621
- charStart: number;
622
- charEnd: number;
623
- frame: string;
624
- sourceHash?: string | null | undefined;
625
- sourceLength?: number | null | undefined;
626
- } | null | undefined;
627
- reasoningTrace?: {
628
- steps: {
629
- order: number;
630
- description: string;
631
- }[];
632
- finalAnswer?: string | null | undefined;
633
- final_answer?: string | null | undefined;
634
- observedOutcome?: string | null | undefined;
635
- observed_outcome?: string | null | undefined;
636
- } | null | undefined;
637
- eventTime?: string | null | undefined;
638
- event_time?: string | null | undefined;
639
- }, {
640
253
  content: string;
641
- tags: string[];
642
254
  confidence: number;
643
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
644
- scope?: "project" | "global" | null | undefined;
645
- subject?: "user" | "agent" | null | undefined;
255
+ tags: string[];
646
256
  entityRef?: string | null | undefined;
647
- structuredAttributes?: Record<string, string> | null | undefined;
648
257
  cueAnchors?: {
649
- value: string;
650
258
  type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
259
+ value: string;
651
260
  }[] | null | undefined;
652
261
  promptedByQuestion?: string | null | undefined;
653
- quote?: string | null | undefined;
654
- procedureSteps?: {
655
- intent: string;
656
- order: number;
657
- toolCall?: {
658
- kind: string;
659
- signature: string;
660
- } | null | undefined;
661
- expectedOutcome?: string | null | undefined;
662
- optional?: boolean | null | undefined;
663
- }[] | null | undefined;
664
- span?: {
665
- sourceMessageIndex: number;
666
- charStart: number;
667
- charEnd: number;
668
- frame: string;
669
- sourceHash?: string | null | undefined;
670
- sourceLength?: number | null | undefined;
671
- } | null | undefined;
672
- reasoningTrace?: {
673
- steps: {
674
- order: number;
675
- description: string;
676
- }[];
677
- finalAnswer?: string | null | undefined;
678
- final_answer?: string | null | undefined;
679
- observedOutcome?: string | null | undefined;
680
- observed_outcome?: string | null | undefined;
681
- } | null | undefined;
682
- eventTime?: string | null | undefined;
683
- event_time?: string | null | undefined;
684
- }>, {
685
- content: string;
686
- tags: string[];
687
- confidence: number;
688
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
689
262
  scope?: "project" | "global" | null | undefined;
690
263
  subject?: "user" | "agent" | null | undefined;
691
- entityRef?: string | null | undefined;
692
- structuredAttributes?: Record<string, string> | null | undefined;
693
- cueAnchors?: {
694
- value: string;
695
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
696
- }[] | null | undefined;
697
- promptedByQuestion?: string | null | undefined;
698
264
  quote?: string | null | undefined;
265
+ structuredAttributes?: Record<string, string> | null | undefined;
699
266
  procedureSteps?: {
700
- intent: string;
701
267
  order: number;
268
+ intent: string;
702
269
  toolCall?: {
703
270
  kind: string;
704
271
  signature: string;
@@ -726,764 +293,137 @@ export declare const ProactiveExtractionResultSchema: z.ZodObject<{
726
293
  } | null | undefined;
727
294
  eventTime?: string | null | undefined;
728
295
  event_time?: string | null | undefined;
729
- }, {
730
- content: string;
731
- tags: string[];
732
- confidence: number;
733
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
734
- scope?: "project" | "global" | null | undefined;
735
- subject?: "user" | "agent" | null | undefined;
736
- entityRef?: string | null | undefined;
737
- structuredAttributes?: Record<string, string> | null | undefined;
738
- cueAnchors?: {
739
- value: string;
740
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
741
- }[] | null | undefined;
742
- promptedByQuestion?: string | null | undefined;
743
- quote?: string | null | undefined;
744
- procedureSteps?: {
745
- intent: string;
746
- order: number;
747
- toolCall?: {
748
- kind: string;
749
- signature: string;
750
- } | null | undefined;
751
- expectedOutcome?: string | null | undefined;
752
- optional?: boolean | null | undefined;
753
- }[] | null | undefined;
754
- span?: {
755
- sourceMessageIndex: number;
756
- charStart: number;
757
- charEnd: number;
758
- frame: string;
759
- sourceHash?: string | null | undefined;
760
- sourceLength?: number | null | undefined;
761
- } | null | undefined;
762
- reasoningTrace?: {
763
- steps: {
764
- order: number;
765
- description: string;
766
- }[];
767
- finalAnswer?: string | null | undefined;
768
- final_answer?: string | null | undefined;
769
- observedOutcome?: string | null | undefined;
770
- observed_outcome?: string | null | undefined;
771
- } | null | undefined;
772
- eventTime?: string | null | undefined;
773
- event_time?: string | null | undefined;
774
- }>, "many">;
775
- profileUpdates: z.ZodArray<z.ZodString, "many">;
776
- entities: z.ZodArray<z.ZodObject<{
777
- name: z.ZodString;
778
- type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
779
- facts: z.ZodArray<z.ZodString, "many">;
780
- promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
781
- structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
782
- key: z.ZodString;
783
- title: z.ZodString;
784
- facts: z.ZodArray<z.ZodString, "many">;
785
- }, "strip", z.ZodTypeAny, {
786
- key: string;
787
- title: string;
788
- facts: string[];
789
- }, {
790
- key: string;
791
- title: string;
792
- facts: string[];
793
- }>, "many">>>;
794
- }, "strip", z.ZodTypeAny, {
795
- name: string;
796
- type: "project" | "other" | "tool" | "person" | "company" | "place";
797
- facts: string[];
798
- promptedByQuestion?: string | null | undefined;
799
- structuredSections?: {
800
- key: string;
801
- title: string;
802
- facts: string[];
803
- }[] | null | undefined;
804
- }, {
805
- name: string;
806
- type: "project" | "other" | "tool" | "person" | "company" | "place";
807
- facts: string[];
808
- promptedByQuestion?: string | null | undefined;
809
- structuredSections?: {
810
- key: string;
811
- title: string;
812
- facts: string[];
813
- }[] | null | undefined;
814
- }>, "many">;
815
- relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
816
- source: z.ZodString;
817
- target: z.ZodString;
818
- label: z.ZodString;
819
- promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
820
- }, "strip", z.ZodTypeAny, {
821
- source: string;
822
- label: string;
823
- target: string;
824
- promptedByQuestion?: string | null | undefined;
825
- }, {
826
- source: string;
827
- label: string;
828
- target: string;
829
- promptedByQuestion?: string | null | undefined;
830
- }>, "many">>>;
831
- }, "strip", z.ZodTypeAny, {
832
- facts: {
833
- content: string;
834
- tags: string[];
835
- confidence: number;
836
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
837
- scope?: "project" | "global" | null | undefined;
838
- subject?: "user" | "agent" | null | undefined;
839
- entityRef?: string | null | undefined;
840
- structuredAttributes?: Record<string, string> | null | undefined;
841
- cueAnchors?: {
842
- value: string;
843
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
844
- }[] | null | undefined;
845
- promptedByQuestion?: string | null | undefined;
846
- quote?: string | null | undefined;
847
- procedureSteps?: {
848
- intent: string;
849
- order: number;
850
- toolCall?: {
851
- kind: string;
852
- signature: string;
853
- } | null | undefined;
854
- expectedOutcome?: string | null | undefined;
855
- optional?: boolean | null | undefined;
856
- }[] | null | undefined;
857
- span?: {
858
- sourceMessageIndex: number;
859
- charStart: number;
860
- charEnd: number;
861
- frame: string;
862
- sourceHash?: string | null | undefined;
863
- sourceLength?: number | null | undefined;
864
- } | null | undefined;
865
- reasoningTrace?: {
866
- steps: {
867
- order: number;
868
- description: string;
869
- }[];
870
- finalAnswer?: string | null | undefined;
871
- final_answer?: string | null | undefined;
872
- observedOutcome?: string | null | undefined;
873
- observed_outcome?: string | null | undefined;
874
- } | null | undefined;
875
- eventTime?: string | null | undefined;
876
- event_time?: string | null | undefined;
877
- }[];
878
- entities: {
879
- name: string;
880
- type: "project" | "other" | "tool" | "person" | "company" | "place";
881
- facts: string[];
882
- promptedByQuestion?: string | null | undefined;
883
- structuredSections?: {
884
- key: string;
885
- title: string;
886
- facts: string[];
887
- }[] | null | undefined;
888
- }[];
889
- profileUpdates: string[];
890
- relationships?: {
891
- source: string;
892
- label: string;
893
- target: string;
894
- promptedByQuestion?: string | null | undefined;
895
- }[] | null | undefined;
896
- }, {
897
- facts: {
898
- content: string;
899
- tags: string[];
900
- confidence: number;
901
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
902
- scope?: "project" | "global" | null | undefined;
903
- subject?: "user" | "agent" | null | undefined;
904
- entityRef?: string | null | undefined;
905
- structuredAttributes?: Record<string, string> | null | undefined;
906
- cueAnchors?: {
907
- value: string;
908
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
909
- }[] | null | undefined;
910
- promptedByQuestion?: string | null | undefined;
911
- quote?: string | null | undefined;
912
- procedureSteps?: {
913
- intent: string;
914
- order: number;
915
- toolCall?: {
916
- kind: string;
917
- signature: string;
918
- } | null | undefined;
919
- expectedOutcome?: string | null | undefined;
920
- optional?: boolean | null | undefined;
921
- }[] | null | undefined;
922
- span?: {
923
- sourceMessageIndex: number;
924
- charStart: number;
925
- charEnd: number;
926
- frame: string;
927
- sourceHash?: string | null | undefined;
928
- sourceLength?: number | null | undefined;
929
- } | null | undefined;
930
- reasoningTrace?: {
931
- steps: {
932
- order: number;
933
- description: string;
934
- }[];
935
- finalAnswer?: string | null | undefined;
936
- final_answer?: string | null | undefined;
937
- observedOutcome?: string | null | undefined;
938
- observed_outcome?: string | null | undefined;
939
- } | null | undefined;
940
- eventTime?: string | null | undefined;
941
- event_time?: string | null | undefined;
942
- }[];
943
- entities: {
944
- name: string;
945
- type: "project" | "other" | "tool" | "person" | "company" | "place";
946
- facts: string[];
947
- promptedByQuestion?: string | null | undefined;
948
- structuredSections?: {
949
- key: string;
950
- title: string;
951
- facts: string[];
952
- }[] | null | undefined;
953
- }[];
954
- profileUpdates: string[];
955
- relationships?: {
956
- source: string;
957
- label: string;
958
- target: string;
959
- promptedByQuestion?: string | null | undefined;
960
- }[] | null | undefined;
961
- }>;
962
- export declare const ExtractionResultSchema: z.ZodObject<{
963
- facts: z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
964
- content: string;
965
- tags: string[];
966
- confidence: number;
967
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
968
- scope?: "project" | "global" | null | undefined;
969
- subject?: "user" | "agent" | null | undefined;
970
- entityRef?: string | null | undefined;
971
- structuredAttributes?: Record<string, string> | null | undefined;
972
- cueAnchors?: {
973
- value: string;
974
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
975
- }[] | null | undefined;
976
- promptedByQuestion?: string | null | undefined;
977
- quote?: string | null | undefined;
978
- procedureSteps?: {
979
- intent: string;
980
- order: number;
981
- toolCall?: {
982
- kind: string;
983
- signature: string;
984
- } | null | undefined;
985
- expectedOutcome?: string | null | undefined;
986
- optional?: boolean | null | undefined;
987
- }[] | null | undefined;
988
- span?: {
989
- sourceMessageIndex: number;
990
- charStart: number;
991
- charEnd: number;
992
- frame: string;
993
- sourceHash?: string | null | undefined;
994
- sourceLength?: number | null | undefined;
995
- } | null | undefined;
996
- reasoningTrace?: {
997
- steps: {
998
- order: number;
999
- description: string;
1000
- }[];
1001
- finalAnswer?: string | null | undefined;
1002
- final_answer?: string | null | undefined;
1003
- observedOutcome?: string | null | undefined;
1004
- observed_outcome?: string | null | undefined;
1005
- } | null | undefined;
1006
- eventTime?: string | null | undefined;
1007
- event_time?: string | null | undefined;
1008
- }[], unknown[]>;
1009
- profileUpdates: z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, string[], unknown[]>;
1010
- entities: z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
1011
- name: string;
1012
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1013
- facts: string[];
1014
- promptedByQuestion?: string | null | undefined;
1015
- structuredSections?: {
1016
- key: string;
1017
- title: string;
1018
- facts: string[];
1019
- }[] | null | undefined;
1020
- }[], unknown[]>;
1021
- questions: z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
1022
- question: string;
1023
- priority: number;
1024
- context: string;
1025
- }[], unknown[]>;
1026
- identityReflection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1027
- episodeTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1028
- relationships: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnknown, "many">, {
1029
- source: string;
1030
- label: string;
1031
- target: string;
1032
- promptedByQuestion?: string | null | undefined;
1033
- }[], unknown[]>>>;
1034
- }, "strip", z.ZodTypeAny, {
1035
- questions: {
1036
- question: string;
1037
- priority: number;
1038
- context: string;
1039
- }[];
1040
- facts: {
1041
- content: string;
1042
- tags: string[];
1043
- confidence: number;
1044
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1045
- scope?: "project" | "global" | null | undefined;
1046
- subject?: "user" | "agent" | null | undefined;
1047
- entityRef?: string | null | undefined;
1048
- structuredAttributes?: Record<string, string> | null | undefined;
1049
- cueAnchors?: {
1050
- value: string;
1051
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1052
- }[] | null | undefined;
1053
- promptedByQuestion?: string | null | undefined;
1054
- quote?: string | null | undefined;
1055
- procedureSteps?: {
1056
- intent: string;
1057
- order: number;
1058
- toolCall?: {
1059
- kind: string;
1060
- signature: string;
1061
- } | null | undefined;
1062
- expectedOutcome?: string | null | undefined;
1063
- optional?: boolean | null | undefined;
1064
- }[] | null | undefined;
1065
- span?: {
1066
- sourceMessageIndex: number;
1067
- charStart: number;
1068
- charEnd: number;
1069
- frame: string;
1070
- sourceHash?: string | null | undefined;
1071
- sourceLength?: number | null | undefined;
1072
- } | null | undefined;
1073
- reasoningTrace?: {
1074
- steps: {
1075
- order: number;
1076
- description: string;
1077
- }[];
1078
- finalAnswer?: string | null | undefined;
1079
- final_answer?: string | null | undefined;
1080
- observedOutcome?: string | null | undefined;
1081
- observed_outcome?: string | null | undefined;
1082
- } | null | undefined;
1083
- eventTime?: string | null | undefined;
1084
- event_time?: string | null | undefined;
1085
- }[];
1086
- entities: {
1087
- name: string;
1088
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1089
- facts: string[];
1090
- promptedByQuestion?: string | null | undefined;
1091
- structuredSections?: {
1092
- key: string;
1093
- title: string;
1094
- facts: string[];
1095
- }[] | null | undefined;
1096
- }[];
1097
- profileUpdates: string[];
1098
- relationships?: {
1099
- source: string;
1100
- label: string;
1101
- target: string;
1102
- promptedByQuestion?: string | null | undefined;
1103
- }[] | null | undefined;
1104
- identityReflection?: string | null | undefined;
1105
- episodeTitle?: string | null | undefined;
1106
- }, {
1107
- questions: unknown[];
1108
- facts: unknown[];
1109
- entities: unknown[];
1110
- profileUpdates: unknown[];
1111
- relationships?: unknown[] | null | undefined;
1112
- identityReflection?: string | null | undefined;
1113
- episodeTitle?: string | null | undefined;
1114
- }>;
1115
- /**
1116
- * Provider-facing extraction contract. Keep this free of transforms/refinements:
1117
- * JSON Schema generators cannot faithfully represent salvageArray's ZodEffects.
1118
- * ExtractionResultSchema remains the authoritative tolerant parser after the
1119
- * provider returns.
1120
- */
1121
- export declare const ExtractionProviderOutputSchema: z.ZodObject<{
1122
- facts: z.ZodArray<z.ZodEffects<z.ZodObject<{
1123
- category: z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace"]>;
1124
- content: z.ZodString;
1125
- confidence: z.ZodNumber;
1126
- tags: z.ZodArray<z.ZodString, "many">;
1127
- entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1128
- cueAnchors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1129
- type: z.ZodEnum<["entity", "file", "tool", "outcome", "constraint", "date"]>;
1130
- value: z.ZodString;
1131
- }, "strip", z.ZodTypeAny, {
1132
- value: string;
1133
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1134
- }, {
1135
- value: string;
1136
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1137
- }>, "many">>>;
1138
- promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1139
- scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<["project", "global"]>>>;
1140
- subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<["user", "agent"]>>>;
1141
- quote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1142
- structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1143
- procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1144
- order: z.ZodNumber;
1145
- intent: z.ZodString;
1146
- toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1147
- kind: z.ZodString;
1148
- signature: z.ZodString;
1149
- }, "strip", z.ZodTypeAny, {
1150
- kind: string;
1151
- signature: string;
1152
- }, {
1153
- kind: string;
1154
- signature: string;
1155
- }>>>;
1156
- expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1157
- optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- intent: string;
1160
- order: number;
1161
- toolCall?: {
1162
- kind: string;
1163
- signature: string;
1164
- } | null | undefined;
1165
- expectedOutcome?: string | null | undefined;
1166
- optional?: boolean | null | undefined;
1167
- }, {
1168
- intent: string;
1169
- order: number;
1170
- toolCall?: {
1171
- kind: string;
1172
- signature: string;
1173
- } | null | undefined;
1174
- expectedOutcome?: string | null | undefined;
1175
- optional?: boolean | null | undefined;
1176
- }>, "many">>>;
1177
- span: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1178
- sourceMessageIndex: z.ZodNumber;
1179
- charStart: z.ZodNumber;
1180
- charEnd: z.ZodNumber;
1181
- frame: z.ZodString;
1182
- sourceHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1183
- sourceLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1184
- }, "strip", z.ZodTypeAny, {
1185
- sourceMessageIndex: number;
1186
- charStart: number;
1187
- charEnd: number;
1188
- frame: string;
1189
- sourceHash?: string | null | undefined;
1190
- sourceLength?: number | null | undefined;
1191
- }, {
1192
- sourceMessageIndex: number;
1193
- charStart: number;
1194
- charEnd: number;
1195
- frame: string;
1196
- sourceHash?: string | null | undefined;
1197
- sourceLength?: number | null | undefined;
1198
- }>>>;
1199
- reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
1200
- steps: z.ZodArray<z.ZodObject<{
1201
- order: z.ZodNumber;
1202
- description: z.ZodString;
1203
- }, "strip", z.ZodTypeAny, {
1204
- order: number;
1205
- description: string;
1206
- }, {
1207
- order: number;
1208
- description: string;
1209
- }>, "many">;
1210
- finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1211
- final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1212
- observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1213
- observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1214
- }, "strip", z.ZodTypeAny, {
1215
- steps: {
1216
- order: number;
1217
- description: string;
1218
- }[];
1219
- finalAnswer?: string | null | undefined;
1220
- final_answer?: string | null | undefined;
1221
- observedOutcome?: string | null | undefined;
1222
- observed_outcome?: string | null | undefined;
1223
- }, {
1224
- steps: {
1225
- order: number;
1226
- description: string;
1227
- }[];
1228
- finalAnswer?: string | null | undefined;
1229
- final_answer?: string | null | undefined;
1230
- observedOutcome?: string | null | undefined;
1231
- observed_outcome?: string | null | undefined;
1232
- }>, {
1233
- steps: {
1234
- order: number;
1235
- description: string;
1236
- }[];
1237
- finalAnswer?: string | null | undefined;
1238
- final_answer?: string | null | undefined;
1239
- observedOutcome?: string | null | undefined;
1240
- observed_outcome?: string | null | undefined;
1241
- }, {
1242
- steps: {
1243
- order: number;
1244
- description: string;
1245
- }[];
1246
- finalAnswer?: string | null | undefined;
1247
- final_answer?: string | null | undefined;
1248
- observedOutcome?: string | null | undefined;
1249
- observed_outcome?: string | null | undefined;
1250
- }>>>;
1251
- eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1252
- event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1253
- }, "strip", z.ZodTypeAny, {
1254
- content: string;
1255
- tags: string[];
1256
- confidence: number;
1257
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1258
- scope?: "project" | "global" | null | undefined;
1259
- subject?: "user" | "agent" | null | undefined;
1260
- entityRef?: string | null | undefined;
1261
- structuredAttributes?: Record<string, string> | null | undefined;
1262
- cueAnchors?: {
1263
- value: string;
1264
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1265
- }[] | null | undefined;
1266
- promptedByQuestion?: string | null | undefined;
1267
- quote?: string | null | undefined;
1268
- procedureSteps?: {
1269
- intent: string;
1270
- order: number;
1271
- toolCall?: {
1272
- kind: string;
1273
- signature: string;
1274
- } | null | undefined;
1275
- expectedOutcome?: string | null | undefined;
1276
- optional?: boolean | null | undefined;
1277
- }[] | null | undefined;
1278
- span?: {
1279
- sourceMessageIndex: number;
1280
- charStart: number;
1281
- charEnd: number;
1282
- frame: string;
1283
- sourceHash?: string | null | undefined;
1284
- sourceLength?: number | null | undefined;
1285
- } | null | undefined;
1286
- reasoningTrace?: {
1287
- steps: {
1288
- order: number;
1289
- description: string;
1290
- }[];
1291
- finalAnswer?: string | null | undefined;
1292
- final_answer?: string | null | undefined;
1293
- observedOutcome?: string | null | undefined;
1294
- observed_outcome?: string | null | undefined;
1295
- } | null | undefined;
1296
- eventTime?: string | null | undefined;
1297
- event_time?: string | null | undefined;
1298
- }, {
1299
- content: string;
1300
- tags: string[];
1301
- confidence: number;
1302
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1303
- scope?: "project" | "global" | null | undefined;
1304
- subject?: "user" | "agent" | null | undefined;
1305
- entityRef?: string | null | undefined;
1306
- structuredAttributes?: Record<string, string> | null | undefined;
1307
- cueAnchors?: {
1308
- value: string;
1309
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1310
- }[] | null | undefined;
1311
- promptedByQuestion?: string | null | undefined;
1312
- quote?: string | null | undefined;
1313
- procedureSteps?: {
1314
- intent: string;
1315
- order: number;
1316
- toolCall?: {
1317
- kind: string;
1318
- signature: string;
1319
- } | null | undefined;
1320
- expectedOutcome?: string | null | undefined;
1321
- optional?: boolean | null | undefined;
1322
- }[] | null | undefined;
1323
- span?: {
1324
- sourceMessageIndex: number;
1325
- charStart: number;
1326
- charEnd: number;
1327
- frame: string;
1328
- sourceHash?: string | null | undefined;
1329
- sourceLength?: number | null | undefined;
1330
- } | null | undefined;
1331
- reasoningTrace?: {
1332
- steps: {
1333
- order: number;
1334
- description: string;
1335
- }[];
1336
- finalAnswer?: string | null | undefined;
1337
- final_answer?: string | null | undefined;
1338
- observedOutcome?: string | null | undefined;
1339
- observed_outcome?: string | null | undefined;
1340
- } | null | undefined;
1341
- eventTime?: string | null | undefined;
1342
- event_time?: string | null | undefined;
1343
- }>, {
1344
- content: string;
1345
- tags: string[];
1346
- confidence: number;
1347
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1348
- scope?: "project" | "global" | null | undefined;
1349
- subject?: "user" | "agent" | null | undefined;
1350
- entityRef?: string | null | undefined;
1351
- structuredAttributes?: Record<string, string> | null | undefined;
1352
- cueAnchors?: {
1353
- value: string;
1354
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1355
- }[] | null | undefined;
1356
- promptedByQuestion?: string | null | undefined;
1357
- quote?: string | null | undefined;
1358
- procedureSteps?: {
1359
- intent: string;
1360
- order: number;
1361
- toolCall?: {
1362
- kind: string;
1363
- signature: string;
1364
- } | null | undefined;
1365
- expectedOutcome?: string | null | undefined;
1366
- optional?: boolean | null | undefined;
1367
- }[] | null | undefined;
1368
- span?: {
1369
- sourceMessageIndex: number;
1370
- charStart: number;
1371
- charEnd: number;
1372
- frame: string;
1373
- sourceHash?: string | null | undefined;
1374
- sourceLength?: number | null | undefined;
1375
- } | null | undefined;
1376
- reasoningTrace?: {
1377
- steps: {
1378
- order: number;
1379
- description: string;
1380
- }[];
1381
- finalAnswer?: string | null | undefined;
1382
- final_answer?: string | null | undefined;
1383
- observedOutcome?: string | null | undefined;
1384
- observed_outcome?: string | null | undefined;
1385
- } | null | undefined;
1386
- eventTime?: string | null | undefined;
1387
- event_time?: string | null | undefined;
1388
- }, {
1389
- content: string;
1390
- tags: string[];
1391
- confidence: number;
1392
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1393
- scope?: "project" | "global" | null | undefined;
1394
- subject?: "user" | "agent" | null | undefined;
1395
- entityRef?: string | null | undefined;
1396
- structuredAttributes?: Record<string, string> | null | undefined;
1397
- cueAnchors?: {
1398
- value: string;
1399
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1400
- }[] | null | undefined;
1401
- promptedByQuestion?: string | null | undefined;
1402
- quote?: string | null | undefined;
1403
- procedureSteps?: {
1404
- intent: string;
1405
- order: number;
1406
- toolCall?: {
1407
- kind: string;
1408
- signature: string;
1409
- } | null | undefined;
1410
- expectedOutcome?: string | null | undefined;
1411
- optional?: boolean | null | undefined;
1412
- }[] | null | undefined;
1413
- span?: {
1414
- sourceMessageIndex: number;
1415
- charStart: number;
1416
- charEnd: number;
1417
- frame: string;
1418
- sourceHash?: string | null | undefined;
1419
- sourceLength?: number | null | undefined;
1420
- } | null | undefined;
1421
- reasoningTrace?: {
1422
- steps: {
1423
- order: number;
1424
- description: string;
1425
- }[];
1426
- finalAnswer?: string | null | undefined;
1427
- final_answer?: string | null | undefined;
1428
- observedOutcome?: string | null | undefined;
1429
- observed_outcome?: string | null | undefined;
1430
- } | null | undefined;
1431
- eventTime?: string | null | undefined;
1432
- event_time?: string | null | undefined;
1433
- }>, "many">;
1434
- profileUpdates: z.ZodArray<z.ZodString, "many">;
1435
- entities: z.ZodArray<z.ZodObject<{
1436
- name: z.ZodString;
1437
- type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
1438
- facts: z.ZodArray<z.ZodString, "many">;
1439
- promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1440
- structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1441
- key: z.ZodString;
1442
- title: z.ZodString;
1443
- facts: z.ZodArray<z.ZodString, "many">;
1444
- }, "strip", z.ZodTypeAny, {
1445
- key: string;
1446
- title: string;
1447
- facts: string[];
1448
- }, {
1449
- key: string;
1450
- title: string;
1451
- facts: string[];
1452
- }>, "many">>>;
1453
- }, "strip", z.ZodTypeAny, {
1454
- name: string;
1455
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1456
- facts: string[];
296
+ }[], unknown[]>>;
297
+ profileUpdates: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<string[], unknown[]>>;
298
+ entities: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
299
+ name: string;
300
+ type: "project" | "other" | "tool" | "person" | "company" | "place";
301
+ facts: string[];
1457
302
  promptedByQuestion?: string | null | undefined;
1458
303
  structuredSections?: {
1459
304
  key: string;
1460
305
  title: string;
1461
306
  facts: string[];
1462
307
  }[] | null | undefined;
1463
- }, {
1464
- name: string;
1465
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1466
- facts: string[];
308
+ }[], unknown[]>>;
309
+ questions: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
310
+ question: string;
311
+ context: string;
312
+ priority: number;
313
+ }[], unknown[]>>;
314
+ identityReflection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
315
+ episodeTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
316
+ relationships: z.ZodNullable<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
317
+ source: string;
318
+ target: string;
319
+ label: string;
1467
320
  promptedByQuestion?: string | null | undefined;
1468
- structuredSections?: {
1469
- key: string;
1470
- title: string;
1471
- facts: string[];
1472
- }[] | null | undefined;
1473
- }>, "many">;
321
+ }[], unknown[]>>>>;
322
+ }, z.core.$strip>;
323
+ /**
324
+ * Provider-facing extraction contract. Keep this free of transforms/refinements:
325
+ * JSON Schema generators cannot faithfully represent salvageArray's ZodEffects.
326
+ * ExtractionResultSchema remains the authoritative tolerant parser after the
327
+ * provider returns.
328
+ */
329
+ export declare const ExtractionProviderOutputSchema: z.ZodObject<{
330
+ facts: z.ZodArray<z.ZodObject<{
331
+ category: z.ZodEnum<{
332
+ decision: "decision";
333
+ procedure: "procedure";
334
+ fact: "fact";
335
+ preference: "preference";
336
+ correction: "correction";
337
+ entity: "entity";
338
+ relationship: "relationship";
339
+ principle: "principle";
340
+ commitment: "commitment";
341
+ moment: "moment";
342
+ skill: "skill";
343
+ rule: "rule";
344
+ reasoning_trace: "reasoning_trace";
345
+ }>;
346
+ content: z.ZodString;
347
+ confidence: z.ZodNumber;
348
+ tags: z.ZodArray<z.ZodString>;
349
+ entityRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
350
+ cueAnchors: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
351
+ type: z.ZodEnum<{
352
+ constraint: "constraint";
353
+ file: "file";
354
+ date: "date";
355
+ entity: "entity";
356
+ tool: "tool";
357
+ outcome: "outcome";
358
+ }>;
359
+ value: z.ZodString;
360
+ }, z.core.$strip>>>>;
361
+ promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
362
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
363
+ project: "project";
364
+ global: "global";
365
+ }>>>;
366
+ subject: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
367
+ user: "user";
368
+ agent: "agent";
369
+ }>>>;
370
+ quote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
371
+ structuredAttributes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
372
+ procedureSteps: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
373
+ order: z.ZodNumber;
374
+ intent: z.ZodString;
375
+ toolCall: z.ZodNullable<z.ZodOptional<z.ZodObject<{
376
+ kind: z.ZodString;
377
+ signature: z.ZodString;
378
+ }, z.core.$strip>>>;
379
+ expectedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
380
+ optional: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
381
+ }, z.core.$strip>>>>;
382
+ span: z.ZodNullable<z.ZodOptional<z.ZodObject<{
383
+ sourceMessageIndex: z.ZodNumber;
384
+ charStart: z.ZodNumber;
385
+ charEnd: z.ZodNumber;
386
+ frame: z.ZodString;
387
+ sourceHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
388
+ sourceLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
389
+ }, z.core.$strip>>>;
390
+ reasoningTrace: z.ZodNullable<z.ZodOptional<z.ZodObject<{
391
+ steps: z.ZodArray<z.ZodObject<{
392
+ order: z.ZodNumber;
393
+ description: z.ZodString;
394
+ }, z.core.$strip>>;
395
+ finalAnswer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
396
+ final_answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
397
+ observedOutcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
398
+ observed_outcome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
399
+ }, z.core.$strip>>>;
400
+ eventTime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
401
+ event_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
402
+ }, z.core.$strip>>;
403
+ profileUpdates: z.ZodArray<z.ZodString>;
404
+ entities: z.ZodArray<z.ZodObject<{
405
+ name: z.ZodString;
406
+ type: z.ZodEnum<{
407
+ project: "project";
408
+ other: "other";
409
+ tool: "tool";
410
+ person: "person";
411
+ company: "company";
412
+ place: "place";
413
+ }>;
414
+ facts: z.ZodArray<z.ZodString>;
415
+ promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
416
+ structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
417
+ key: z.ZodString;
418
+ title: z.ZodString;
419
+ facts: z.ZodArray<z.ZodString>;
420
+ }, z.core.$strip>>>>;
421
+ }, z.core.$strip>>;
1474
422
  questions: z.ZodArray<z.ZodObject<{
1475
423
  question: z.ZodString;
1476
424
  context: z.ZodString;
1477
425
  priority: z.ZodNumber;
1478
- }, "strip", z.ZodTypeAny, {
1479
- question: string;
1480
- priority: number;
1481
- context: string;
1482
- }, {
1483
- question: string;
1484
- priority: number;
1485
- context: string;
1486
- }>, "many">;
426
+ }, z.core.$strip>>;
1487
427
  identityReflection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1488
428
  episodeTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1489
429
  relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1491,416 +431,121 @@ export declare const ExtractionProviderOutputSchema: z.ZodObject<{
1491
431
  target: z.ZodString;
1492
432
  label: z.ZodString;
1493
433
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1494
- }, "strip", z.ZodTypeAny, {
1495
- source: string;
1496
- label: string;
1497
- target: string;
1498
- promptedByQuestion?: string | null | undefined;
1499
- }, {
1500
- source: string;
1501
- label: string;
1502
- target: string;
1503
- promptedByQuestion?: string | null | undefined;
1504
- }>, "many">>>;
1505
- }, "strip", z.ZodTypeAny, {
1506
- questions: {
1507
- question: string;
1508
- priority: number;
1509
- context: string;
1510
- }[];
1511
- facts: {
1512
- content: string;
1513
- tags: string[];
1514
- confidence: number;
1515
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1516
- scope?: "project" | "global" | null | undefined;
1517
- subject?: "user" | "agent" | null | undefined;
1518
- entityRef?: string | null | undefined;
1519
- structuredAttributes?: Record<string, string> | null | undefined;
1520
- cueAnchors?: {
1521
- value: string;
1522
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1523
- }[] | null | undefined;
1524
- promptedByQuestion?: string | null | undefined;
1525
- quote?: string | null | undefined;
1526
- procedureSteps?: {
1527
- intent: string;
1528
- order: number;
1529
- toolCall?: {
1530
- kind: string;
1531
- signature: string;
1532
- } | null | undefined;
1533
- expectedOutcome?: string | null | undefined;
1534
- optional?: boolean | null | undefined;
1535
- }[] | null | undefined;
1536
- span?: {
1537
- sourceMessageIndex: number;
1538
- charStart: number;
1539
- charEnd: number;
1540
- frame: string;
1541
- sourceHash?: string | null | undefined;
1542
- sourceLength?: number | null | undefined;
1543
- } | null | undefined;
1544
- reasoningTrace?: {
1545
- steps: {
1546
- order: number;
1547
- description: string;
1548
- }[];
1549
- finalAnswer?: string | null | undefined;
1550
- final_answer?: string | null | undefined;
1551
- observedOutcome?: string | null | undefined;
1552
- observed_outcome?: string | null | undefined;
1553
- } | null | undefined;
1554
- eventTime?: string | null | undefined;
1555
- event_time?: string | null | undefined;
1556
- }[];
1557
- entities: {
1558
- name: string;
1559
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1560
- facts: string[];
1561
- promptedByQuestion?: string | null | undefined;
1562
- structuredSections?: {
1563
- key: string;
1564
- title: string;
1565
- facts: string[];
1566
- }[] | null | undefined;
1567
- }[];
1568
- profileUpdates: string[];
1569
- relationships?: {
1570
- source: string;
1571
- label: string;
1572
- target: string;
1573
- promptedByQuestion?: string | null | undefined;
1574
- }[] | null | undefined;
1575
- identityReflection?: string | null | undefined;
1576
- episodeTitle?: string | null | undefined;
1577
- }, {
1578
- questions: {
1579
- question: string;
1580
- priority: number;
1581
- context: string;
1582
- }[];
1583
- facts: {
1584
- content: string;
1585
- tags: string[];
1586
- confidence: number;
1587
- category: "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace";
1588
- scope?: "project" | "global" | null | undefined;
1589
- subject?: "user" | "agent" | null | undefined;
1590
- entityRef?: string | null | undefined;
1591
- structuredAttributes?: Record<string, string> | null | undefined;
1592
- cueAnchors?: {
1593
- value: string;
1594
- type: "constraint" | "file" | "date" | "entity" | "tool" | "outcome";
1595
- }[] | null | undefined;
1596
- promptedByQuestion?: string | null | undefined;
1597
- quote?: string | null | undefined;
1598
- procedureSteps?: {
1599
- intent: string;
1600
- order: number;
1601
- toolCall?: {
1602
- kind: string;
1603
- signature: string;
1604
- } | null | undefined;
1605
- expectedOutcome?: string | null | undefined;
1606
- optional?: boolean | null | undefined;
1607
- }[] | null | undefined;
1608
- span?: {
1609
- sourceMessageIndex: number;
1610
- charStart: number;
1611
- charEnd: number;
1612
- frame: string;
1613
- sourceHash?: string | null | undefined;
1614
- sourceLength?: number | null | undefined;
1615
- } | null | undefined;
1616
- reasoningTrace?: {
1617
- steps: {
1618
- order: number;
1619
- description: string;
1620
- }[];
1621
- finalAnswer?: string | null | undefined;
1622
- final_answer?: string | null | undefined;
1623
- observedOutcome?: string | null | undefined;
1624
- observed_outcome?: string | null | undefined;
1625
- } | null | undefined;
1626
- eventTime?: string | null | undefined;
1627
- event_time?: string | null | undefined;
1628
- }[];
1629
- entities: {
1630
- name: string;
1631
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1632
- facts: string[];
1633
- promptedByQuestion?: string | null | undefined;
1634
- structuredSections?: {
1635
- key: string;
1636
- title: string;
1637
- facts: string[];
1638
- }[] | null | undefined;
1639
- }[];
1640
- profileUpdates: string[];
1641
- relationships?: {
1642
- source: string;
1643
- label: string;
1644
- target: string;
1645
- promptedByQuestion?: string | null | undefined;
1646
- }[] | null | undefined;
1647
- identityReflection?: string | null | undefined;
1648
- episodeTitle?: string | null | undefined;
1649
- }>;
434
+ }, z.core.$strip>>>>;
435
+ }, z.core.$strip>;
1650
436
  export declare const ConsolidationItemSchema: z.ZodObject<{
1651
437
  existingId: z.ZodString;
1652
- action: z.ZodEnum<["ADD", "MERGE", "UPDATE", "INVALIDATE", "SKIP"]>;
438
+ action: z.ZodEnum<{
439
+ ADD: "ADD";
440
+ MERGE: "MERGE";
441
+ UPDATE: "UPDATE";
442
+ INVALIDATE: "INVALIDATE";
443
+ SKIP: "SKIP";
444
+ }>;
1653
445
  mergeWith: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1654
446
  updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1655
447
  reason: z.ZodString;
1656
- }, "strip", z.ZodTypeAny, {
1657
- reason: string;
1658
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1659
- existingId: string;
1660
- mergeWith?: string | null | undefined;
1661
- updatedContent?: string | null | undefined;
1662
- }, {
1663
- reason: string;
1664
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1665
- existingId: string;
1666
- mergeWith?: string | null | undefined;
1667
- updatedContent?: string | null | undefined;
1668
- }>;
448
+ }, z.core.$strip>;
1669
449
  export declare const ConsolidationResultSchema: z.ZodObject<{
1670
450
  items: z.ZodArray<z.ZodObject<{
1671
451
  existingId: z.ZodString;
1672
- action: z.ZodEnum<["ADD", "MERGE", "UPDATE", "INVALIDATE", "SKIP"]>;
452
+ action: z.ZodEnum<{
453
+ ADD: "ADD";
454
+ MERGE: "MERGE";
455
+ UPDATE: "UPDATE";
456
+ INVALIDATE: "INVALIDATE";
457
+ SKIP: "SKIP";
458
+ }>;
1673
459
  mergeWith: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1674
460
  updatedContent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1675
461
  reason: z.ZodString;
1676
- }, "strip", z.ZodTypeAny, {
1677
- reason: string;
1678
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1679
- existingId: string;
1680
- mergeWith?: string | null | undefined;
1681
- updatedContent?: string | null | undefined;
1682
- }, {
1683
- reason: string;
1684
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1685
- existingId: string;
1686
- mergeWith?: string | null | undefined;
1687
- updatedContent?: string | null | undefined;
1688
- }>, "many">;
1689
- profileUpdates: z.ZodArray<z.ZodString, "many">;
462
+ }, z.core.$strip>>;
463
+ profileUpdates: z.ZodArray<z.ZodString>;
1690
464
  entityUpdates: z.ZodArray<z.ZodObject<{
1691
465
  name: z.ZodString;
1692
- type: z.ZodEnum<["person", "project", "tool", "company", "place", "other"]>;
1693
- facts: z.ZodArray<z.ZodString, "many">;
466
+ type: z.ZodEnum<{
467
+ project: "project";
468
+ other: "other";
469
+ tool: "tool";
470
+ person: "person";
471
+ company: "company";
472
+ place: "place";
473
+ }>;
474
+ facts: z.ZodArray<z.ZodString>;
1694
475
  promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1695
476
  structuredSections: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1696
477
  key: z.ZodString;
1697
478
  title: z.ZodString;
1698
- facts: z.ZodArray<z.ZodString, "many">;
1699
- }, "strip", z.ZodTypeAny, {
1700
- key: string;
1701
- title: string;
1702
- facts: string[];
1703
- }, {
1704
- key: string;
1705
- title: string;
1706
- facts: string[];
1707
- }>, "many">>>;
1708
- }, "strip", z.ZodTypeAny, {
1709
- name: string;
1710
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1711
- facts: string[];
1712
- promptedByQuestion?: string | null | undefined;
1713
- structuredSections?: {
1714
- key: string;
1715
- title: string;
1716
- facts: string[];
1717
- }[] | null | undefined;
1718
- }, {
1719
- name: string;
1720
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1721
- facts: string[];
1722
- promptedByQuestion?: string | null | undefined;
1723
- structuredSections?: {
1724
- key: string;
1725
- title: string;
1726
- facts: string[];
1727
- }[] | null | undefined;
1728
- }>, "many">;
1729
- }, "strip", z.ZodTypeAny, {
1730
- items: {
1731
- reason: string;
1732
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1733
- existingId: string;
1734
- mergeWith?: string | null | undefined;
1735
- updatedContent?: string | null | undefined;
1736
- }[];
1737
- profileUpdates: string[];
1738
- entityUpdates: {
1739
- name: string;
1740
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1741
- facts: string[];
1742
- promptedByQuestion?: string | null | undefined;
1743
- structuredSections?: {
1744
- key: string;
1745
- title: string;
1746
- facts: string[];
1747
- }[] | null | undefined;
1748
- }[];
1749
- }, {
1750
- items: {
1751
- reason: string;
1752
- action: "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
1753
- existingId: string;
1754
- mergeWith?: string | null | undefined;
1755
- updatedContent?: string | null | undefined;
1756
- }[];
1757
- profileUpdates: string[];
1758
- entityUpdates: {
1759
- name: string;
1760
- type: "project" | "other" | "tool" | "person" | "company" | "place";
1761
- facts: string[];
1762
- promptedByQuestion?: string | null | undefined;
1763
- structuredSections?: {
1764
- key: string;
1765
- title: string;
1766
- facts: string[];
1767
- }[] | null | undefined;
1768
- }[];
1769
- }>;
479
+ facts: z.ZodArray<z.ZodString>;
480
+ }, z.core.$strip>>>>;
481
+ }, z.core.$strip>>;
482
+ }, z.core.$strip>;
1770
483
  export declare function buildProfileConsolidationResultSchema(targetLines: number): z.ZodObject<{
1771
484
  consolidatedProfile: z.ZodString;
1772
485
  removedCount: z.ZodNumber;
1773
486
  summary: z.ZodString;
1774
- }, "strip", z.ZodTypeAny, {
1775
- summary: string;
1776
- consolidatedProfile: string;
1777
- removedCount: number;
1778
- }, {
1779
- summary: string;
1780
- consolidatedProfile: string;
1781
- removedCount: number;
1782
- }>;
487
+ }, z.core.$strip>;
1783
488
  export declare const ProfileConsolidationResultSchema: z.ZodObject<{
1784
489
  consolidatedProfile: z.ZodString;
1785
490
  removedCount: z.ZodNumber;
1786
491
  summary: z.ZodString;
1787
- }, "strip", z.ZodTypeAny, {
1788
- summary: string;
1789
- consolidatedProfile: string;
1790
- removedCount: number;
1791
- }, {
1792
- summary: string;
1793
- consolidatedProfile: string;
1794
- removedCount: number;
1795
- }>;
492
+ }, z.core.$strip>;
1796
493
  export declare const IdentityConsolidationResultSchema: z.ZodObject<{
1797
- learnedPatterns: z.ZodArray<z.ZodString, "many">;
494
+ learnedPatterns: z.ZodArray<z.ZodString>;
1798
495
  summary: z.ZodString;
1799
- }, "strip", z.ZodTypeAny, {
1800
- summary: string;
1801
- learnedPatterns: string[];
1802
- }, {
1803
- summary: string;
1804
- learnedPatterns: string[];
1805
- }>;
496
+ }, z.core.$strip>;
1806
497
  export type IdentityConsolidationResultParsed = z.infer<typeof IdentityConsolidationResultSchema>;
1807
498
  export declare const ContradictionVerificationSchema: z.ZodObject<{
1808
499
  isContradiction: z.ZodBoolean;
1809
500
  confidence: z.ZodNumber;
1810
501
  reasoning: z.ZodString;
1811
- whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
1812
- }, "strip", z.ZodTypeAny, {
1813
- confidence: number;
1814
- reasoning: string;
1815
- isContradiction: boolean;
1816
- whichIsNewer: "first" | "second" | "unclear";
1817
- }, {
1818
- confidence: number;
1819
- reasoning: string;
1820
- isContradiction: boolean;
1821
- whichIsNewer: "first" | "second" | "unclear";
1822
- }>;
502
+ whichIsNewer: z.ZodEnum<{
503
+ first: "first";
504
+ second: "second";
505
+ unclear: "unclear";
506
+ }>;
507
+ }, z.core.$strip>;
1823
508
  export type ContradictionVerificationResult = z.infer<typeof ContradictionVerificationSchema>;
1824
509
  export declare const MemoryLinkSchema: z.ZodObject<{
1825
510
  targetId: z.ZodString;
1826
- linkType: z.ZodEnum<["follows", "references", "contradicts", "supports", "related"]>;
511
+ linkType: z.ZodEnum<{
512
+ follows: "follows";
513
+ references: "references";
514
+ contradicts: "contradicts";
515
+ supports: "supports";
516
+ related: "related";
517
+ }>;
1827
518
  strength: z.ZodNumber;
1828
519
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1829
- }, "strip", z.ZodTypeAny, {
1830
- targetId: string;
1831
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1832
- strength: number;
1833
- reason?: string | null | undefined;
1834
- }, {
1835
- targetId: string;
1836
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1837
- strength: number;
1838
- reason?: string | null | undefined;
1839
- }>;
520
+ }, z.core.$strip>;
1840
521
  export declare const SuggestedLinksSchema: z.ZodObject<{
1841
522
  links: z.ZodArray<z.ZodObject<{
1842
523
  targetId: z.ZodString;
1843
- linkType: z.ZodEnum<["follows", "references", "contradicts", "supports", "related"]>;
524
+ linkType: z.ZodEnum<{
525
+ follows: "follows";
526
+ references: "references";
527
+ contradicts: "contradicts";
528
+ supports: "supports";
529
+ related: "related";
530
+ }>;
1844
531
  strength: z.ZodNumber;
1845
532
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1846
- }, "strip", z.ZodTypeAny, {
1847
- targetId: string;
1848
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1849
- strength: number;
1850
- reason?: string | null | undefined;
1851
- }, {
1852
- targetId: string;
1853
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1854
- strength: number;
1855
- reason?: string | null | undefined;
1856
- }>, "many">;
1857
- }, "strip", z.ZodTypeAny, {
1858
- links: {
1859
- targetId: string;
1860
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1861
- strength: number;
1862
- reason?: string | null | undefined;
1863
- }[];
1864
- }, {
1865
- links: {
1866
- targetId: string;
1867
- linkType: "follows" | "references" | "contradicts" | "supports" | "related";
1868
- strength: number;
1869
- reason?: string | null | undefined;
1870
- }[];
1871
- }>;
533
+ }, z.core.$strip>>;
534
+ }, z.core.$strip>;
1872
535
  export type MemoryLink = z.infer<typeof MemoryLinkSchema>;
1873
536
  export type SuggestedLinks = z.infer<typeof SuggestedLinksSchema>;
1874
537
  export declare const MemorySummarySchema: z.ZodObject<{
1875
538
  summaryText: z.ZodString;
1876
- keyFacts: z.ZodArray<z.ZodString, "many">;
1877
- keyEntities: z.ZodArray<z.ZodString, "many">;
1878
- }, "strip", z.ZodTypeAny, {
1879
- summaryText: string;
1880
- keyFacts: string[];
1881
- keyEntities: string[];
1882
- }, {
1883
- summaryText: string;
1884
- keyFacts: string[];
1885
- keyEntities: string[];
1886
- }>;
539
+ keyFacts: z.ZodArray<z.ZodString>;
540
+ keyEntities: z.ZodArray<z.ZodString>;
541
+ }, z.core.$strip>;
1887
542
  export type MemorySummaryResult = z.infer<typeof MemorySummarySchema>;
1888
543
  export declare const DaySummaryResultSchema: z.ZodObject<{
1889
544
  summary: z.ZodString;
1890
- bullets: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1891
- next_actions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1892
- risks_or_open_loops: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1893
- }, "strip", z.ZodTypeAny, {
1894
- summary: string;
1895
- bullets: string[];
1896
- next_actions: string[];
1897
- risks_or_open_loops: string[];
1898
- }, {
1899
- summary: string;
1900
- bullets?: string[] | undefined;
1901
- next_actions?: string[] | undefined;
1902
- risks_or_open_loops?: string[] | undefined;
1903
- }>;
545
+ bullets: z.ZodDefault<z.ZodArray<z.ZodString>>;
546
+ next_actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
547
+ risks_or_open_loops: z.ZodDefault<z.ZodArray<z.ZodString>>;
548
+ }, z.core.$strip>;
1904
549
  export declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1905
550
  parameter: z.ZodString;
1906
551
  previousValue: z.ZodNumber;
@@ -1910,31 +555,13 @@ export declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
1910
555
  confidence: z.ZodNumber;
1911
556
  reason: z.ZodString;
1912
557
  appliedAt: z.ZodString;
1913
- }, "strip", z.ZodTypeAny, {
1914
- reason: string;
1915
- confidence: number;
1916
- parameter: string;
1917
- previousValue: number;
1918
- nextValue: number;
1919
- delta: number;
1920
- evidenceCount: number;
1921
- appliedAt: string;
1922
- }, {
1923
- reason: string;
1924
- confidence: number;
1925
- parameter: string;
1926
- previousValue: number;
1927
- nextValue: number;
1928
- delta: number;
1929
- evidenceCount: number;
1930
- appliedAt: string;
1931
- }>;
558
+ }, z.core.$strip>;
1932
559
  export declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1933
560
  version: z.ZodNumber;
1934
561
  windowDays: z.ZodNumber;
1935
562
  minSignalCount: z.ZodNumber;
1936
563
  maxDeltaPerCycle: z.ZodNumber;
1937
- protectedParams: z.ZodArray<z.ZodString, "many">;
564
+ protectedParams: z.ZodArray<z.ZodString>;
1938
565
  adjustments: z.ZodArray<z.ZodObject<{
1939
566
  parameter: z.ZodString;
1940
567
  previousValue: z.ZodNumber;
@@ -1944,61 +571,9 @@ export declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
1944
571
  confidence: z.ZodNumber;
1945
572
  reason: z.ZodString;
1946
573
  appliedAt: z.ZodString;
1947
- }, "strip", z.ZodTypeAny, {
1948
- reason: string;
1949
- confidence: number;
1950
- parameter: string;
1951
- previousValue: number;
1952
- nextValue: number;
1953
- delta: number;
1954
- evidenceCount: number;
1955
- appliedAt: string;
1956
- }, {
1957
- reason: string;
1958
- confidence: number;
1959
- parameter: string;
1960
- previousValue: number;
1961
- nextValue: number;
1962
- delta: number;
1963
- evidenceCount: number;
1964
- appliedAt: string;
1965
- }>, "many">;
574
+ }, z.core.$strip>>;
1966
575
  updatedAt: z.ZodString;
1967
- }, "strip", z.ZodTypeAny, {
1968
- updatedAt: string;
1969
- version: number;
1970
- windowDays: number;
1971
- minSignalCount: number;
1972
- maxDeltaPerCycle: number;
1973
- protectedParams: string[];
1974
- adjustments: {
1975
- reason: string;
1976
- confidence: number;
1977
- parameter: string;
1978
- previousValue: number;
1979
- nextValue: number;
1980
- delta: number;
1981
- evidenceCount: number;
1982
- appliedAt: string;
1983
- }[];
1984
- }, {
1985
- updatedAt: string;
1986
- version: number;
1987
- windowDays: number;
1988
- minSignalCount: number;
1989
- maxDeltaPerCycle: number;
1990
- protectedParams: string[];
1991
- adjustments: {
1992
- reason: string;
1993
- confidence: number;
1994
- parameter: string;
1995
- previousValue: number;
1996
- nextValue: number;
1997
- delta: number;
1998
- evidenceCount: number;
1999
- appliedAt: string;
2000
- }[];
2001
- }>;
576
+ }, z.core.$strip>;
2002
577
  export type BehaviorLoopAdjustmentParsed = z.infer<typeof BehaviorLoopAdjustmentSchema>;
2003
578
  export type BehaviorLoopPolicyStateParsed = z.infer<typeof BehaviorLoopPolicyStateSchema>;
2004
579
  export type MemoryActionTypeParsed = z.infer<typeof MemoryActionTypeSchema>;