@remnic/core 10.0.50 → 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 (260) hide show
  1. package/dist/access-admin-ops-surface.js +22 -22
  2. package/dist/access-authorization-probe.js +23 -23
  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 +22 -22
  6. package/dist/access-cli.js +68 -68
  7. package/dist/access-errors.d.ts.map +1 -1
  8. package/dist/access-errors.js +1 -1
  9. package/dist/access-extraction-force-flush.js +22 -22
  10. package/dist/access-http-briefing.js +23 -23
  11. package/dist/access-http-query.js +24 -24
  12. package/dist/access-http.js +42 -42
  13. package/dist/access-identity-continuity-surface.js +22 -22
  14. package/dist/access-lcm-surface.js +22 -22
  15. package/dist/access-mcp.js +32 -32
  16. package/dist/access-memory-search-fanout.js +2 -2
  17. package/dist/access-namespace-preflight.js +22 -22
  18. package/dist/access-observe-write-category.js +2 -2
  19. package/dist/access-observe-write-surface.js +22 -22
  20. package/dist/access-offline-manifest.js +2 -2
  21. package/dist/access-operations-batch.js +23 -23
  22. package/dist/access-operations.js +30 -30
  23. package/dist/access-recall-concurrency.js +22 -22
  24. package/dist/access-recall-diagnostics.js +2 -2
  25. package/dist/access-recall-response.js +22 -22
  26. package/dist/access-recall-surface.js +22 -22
  27. package/dist/access-schema.d.ts +245 -773
  28. package/dist/access-schema.d.ts.map +1 -1
  29. package/dist/access-schema.js +1 -1
  30. package/dist/access-service.js +22 -22
  31. package/dist/access-surface-catalog.js +24 -24
  32. package/dist/access-token-capabilities.js +2 -2
  33. package/dist/active-recall.js +5 -5
  34. package/dist/briefing.js +3 -3
  35. package/dist/causal-consolidation.js +4 -4
  36. package/dist/{chunk-7YVER7ZO.js → chunk-2EXF6IIB.js} +2 -2
  37. package/dist/{chunk-HPNXS6W6.js → chunk-2ONKXEC7.js} +3 -3
  38. package/dist/{chunk-DMKTOCC7.js → chunk-2S6JADBB.js} +2 -2
  39. package/dist/{chunk-ZSEFGDCI.js → chunk-2TGIKMMZ.js} +2 -2
  40. package/dist/{chunk-Q3PNQYAC.js → chunk-44EUCSG4.js} +2 -2
  41. package/dist/{chunk-PJCVI44H.js → chunk-4FM35YIA.js} +3 -3
  42. package/dist/{chunk-M6TP6UYD.js → chunk-6ZAU7LAR.js} +2 -2
  43. package/dist/{chunk-SJTSWG2Z.js → chunk-72CBJ5VP.js} +3 -3
  44. package/dist/{chunk-EKYWZYZJ.js → chunk-75BK4XGV.js} +17 -17
  45. package/dist/{chunk-HKOMHP6D.js → chunk-A6JDT6QF.js} +2 -2
  46. package/dist/{chunk-TFWJXWL6.js → chunk-AHGOOZUC.js} +2 -2
  47. package/dist/{chunk-A7AISUJI.js → chunk-AJG2TAMR.js} +2 -2
  48. package/dist/{chunk-VCOMACR6.js → chunk-AZLD4CKG.js} +19 -19
  49. package/dist/{chunk-GXVXBYRA.js → chunk-B35EQQ7L.js} +3 -3
  50. package/dist/{chunk-E6UNM67F.js → chunk-B6SPPYGJ.js} +2 -2
  51. package/dist/{chunk-TXKQBQYW.js → chunk-CK6GCGMX.js} +3 -3
  52. package/dist/{chunk-NPLM7AFU.js → chunk-DF6ZF2BN.js} +3 -3
  53. package/dist/{chunk-6ZQX3R66.js → chunk-DJFULNXK.js} +4 -4
  54. package/dist/{chunk-JBWD3J5U.js → chunk-DQOGZZJA.js} +3 -3
  55. package/dist/{chunk-K5QQXVG6.js → chunk-EC2KVA27.js} +7 -7
  56. package/dist/{chunk-N74WJ7B2.js → chunk-EZS6QJNC.js} +2 -2
  57. package/dist/{chunk-MWURUSRE.js → chunk-FNNGWN3O.js} +2 -2
  58. package/dist/{chunk-5FUDSK6Z.js → chunk-FT75AQ74.js} +3 -3
  59. package/dist/{chunk-ZMO2S5RT.js → chunk-G6A3SGCE.js} +3 -3
  60. package/dist/chunk-G6A3SGCE.js.map +1 -0
  61. package/dist/{chunk-IMKOJVD4.js → chunk-GBGU5OZP.js} +52 -51
  62. package/dist/chunk-GBGU5OZP.js.map +1 -0
  63. package/dist/{chunk-5X2H3X4J.js → chunk-GE3ZX6YK.js} +2 -2
  64. package/dist/{chunk-UNOAVHV4.js → chunk-HCIRR3BA.js} +3 -3
  65. package/dist/{chunk-MLNXATFG.js → chunk-HEF4BRMT.js} +3 -3
  66. package/dist/{chunk-Z5277JWF.js → chunk-HQUYENKK.js} +7 -10
  67. package/dist/chunk-HQUYENKK.js.map +1 -0
  68. package/dist/{chunk-6UDLN4IA.js → chunk-I6ORDT54.js} +2 -2
  69. package/dist/{chunk-M4HRYLOA.js → chunk-IUQXRRJB.js} +3 -3
  70. package/dist/{chunk-GQIYL7OD.js → chunk-JIJAWTRK.js} +3 -3
  71. package/dist/{chunk-4KS4IHKH.js → chunk-JX3E4XCW.js} +2 -2
  72. package/dist/{chunk-ZFNXJEUG.js → chunk-KAJYSO3U.js} +2 -2
  73. package/dist/{chunk-QS765SBL.js → chunk-KETS5A62.js} +2 -2
  74. package/dist/{chunk-N7FNCE7F.js → chunk-KIWO4327.js} +2 -2
  75. package/dist/{chunk-FC3ZFEXF.js → chunk-KJ3MDX4V.js} +2 -2
  76. package/dist/{chunk-BNJAVRNJ.js → chunk-L3EFYRYK.js} +8 -8
  77. package/dist/{chunk-3MUKQQ7A.js → chunk-LGEH473S.js} +24 -29
  78. package/dist/chunk-LGEH473S.js.map +1 -0
  79. package/dist/{chunk-P7OVFGMU.js → chunk-LMB47UM6.js} +2 -2
  80. package/dist/{chunk-7SAE6T36.js → chunk-LWMLBVGB.js} +2 -2
  81. package/dist/{chunk-ZNRTHYYW.js → chunk-MC7PXJDP.js} +7 -7
  82. package/dist/{chunk-M2DOJBH7.js → chunk-MUNYUSBU.js} +2 -2
  83. package/dist/{chunk-LMMBV7QC.js → chunk-OCRLJJOV.js} +4 -4
  84. package/dist/{chunk-7J6A5MV2.js → chunk-ON77FQXH.js} +2 -2
  85. package/dist/{chunk-WV4UYDP6.js → chunk-POJRFSJM.js} +3 -3
  86. package/dist/{chunk-LKRXGOQW.js → chunk-QA3Y2O6H.js} +2 -2
  87. package/dist/{chunk-23ZLN5X6.js → chunk-QT5MGENX.js} +14 -6
  88. package/dist/chunk-QT5MGENX.js.map +1 -0
  89. package/dist/{chunk-YECEEJUU.js → chunk-RA7YRL6H.js} +2 -2
  90. package/dist/{chunk-UALXWWGN.js → chunk-RJDYDF5K.js} +4 -4
  91. package/dist/{chunk-WXJC2L66.js → chunk-ROAKLYOL.js} +2 -2
  92. package/dist/{chunk-NWIT3U2N.js → chunk-S5CQI2KF.js} +2 -2
  93. package/dist/{chunk-P6P35FY4.js → chunk-SDESKFKT.js} +2 -2
  94. package/dist/{chunk-UXGXJUZ5.js → chunk-SFRBUBUZ.js} +7 -7
  95. package/dist/{chunk-CRN3EPE2.js → chunk-SHNM7RIT.js} +3 -3
  96. package/dist/{chunk-UZVQFGAY.js → chunk-SJD334AG.js} +20 -20
  97. package/dist/{chunk-XC3H7KON.js → chunk-SPTPBKZX.js} +2 -2
  98. package/dist/{chunk-IUYXCTA7.js → chunk-TC55M5PO.js} +2 -2
  99. package/dist/{chunk-EWBXMGXR.js → chunk-UCLJTGP3.js} +2 -2
  100. package/dist/{chunk-754XN6LX.js → chunk-V27FK6D6.js} +2 -2
  101. package/dist/{chunk-LIBVANOF.js → chunk-V6Z4NAJZ.js} +2 -2
  102. package/dist/{chunk-XTXWR6KQ.js → chunk-VUMWVYMR.js} +7 -7
  103. package/dist/{chunk-ZSMA67FV.js → chunk-WY66J4PI.js} +2 -2
  104. package/dist/{chunk-5G53JSRO.js → chunk-XWJUFER3.js} +3 -3
  105. package/dist/{chunk-NSP5PIQH.js → chunk-Y3T5KQCR.js} +2 -2
  106. package/dist/{chunk-QTDZ2NYC.js → chunk-Y77FXULH.js} +2 -2
  107. package/dist/{chunk-IG747LRN.js → chunk-YO2JEX2Z.js} +2 -2
  108. package/dist/{chunk-KW5YZELC.js → chunk-ZKK3VMWU.js} +2 -2
  109. package/dist/cli.js +55 -55
  110. package/dist/coding/export-okf-codegraph.js +2 -2
  111. package/dist/compounding/engine.js +4 -4
  112. package/dist/config.js +5 -5
  113. package/dist/connectors/codex-materialize-runner.js +3 -3
  114. package/dist/connectors/index.js +7 -7
  115. package/dist/convergence-refresh.js +5 -5
  116. package/dist/corpus-watermark.js +7 -7
  117. package/dist/deep-recall-config.js +2 -2
  118. package/dist/deep-recall-http-glue.js +4 -4
  119. package/dist/{entity-canonical-id-migration-ZBNRGUNV.js → entity-canonical-id-migration-F3JVG6K6.js} +2 -2
  120. package/dist/entity-retrieval.js +3 -3
  121. package/dist/external-wiki-access.js +23 -23
  122. package/dist/extraction-span-wire.d.ts.map +1 -1
  123. package/dist/extraction-span-wire.js +1 -1
  124. package/dist/extraction.js +11 -11
  125. package/dist/harmonic-retrieval.js +3 -3
  126. package/dist/index.js +68 -68
  127. package/dist/location/index.js +6 -6
  128. package/dist/maintenance/memory-governance.js +3 -3
  129. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  130. package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
  131. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  132. package/dist/memory-browse-http-glue.js +2 -2
  133. package/dist/memory-browse-operations.js +23 -23
  134. package/dist/namespaces/migrate.js +4 -4
  135. package/dist/namespaces/storage.js +3 -3
  136. package/dist/offline-sync-impression-drain.js +2 -2
  137. package/dist/operator-doctor-corpus.js +10 -10
  138. package/dist/operator-doctor-replica.js +4 -4
  139. package/dist/operator-toolkit.js +17 -17
  140. package/dist/orchestration/maintenance.js +15 -15
  141. package/dist/orchestrator.js +68 -68
  142. package/dist/recall-navigation-http-glue.js +2 -2
  143. package/dist/recall-navigation-operations.js +23 -23
  144. package/dist/recall-navigation.js +22 -22
  145. package/dist/relay/mission.d.ts +731 -3403
  146. package/dist/relay/mission.d.ts.map +1 -1
  147. package/dist/replica-divergence.js +3 -3
  148. package/dist/resume-bundles.js +6 -6
  149. package/dist/schemas.d.ts +346 -1771
  150. package/dist/schemas.d.ts.map +1 -1
  151. package/dist/semantic-consolidation.js +4 -4
  152. package/dist/semantic-rule-promotion.js +3 -3
  153. package/dist/semantic-rule-verifier.js +3 -3
  154. package/dist/shared-context/manager.d.ts +13 -33
  155. package/dist/shared-context/manager.d.ts.map +1 -1
  156. package/dist/source-agent-qualifier.js +9 -9
  157. package/dist/standup/build.js +4 -4
  158. package/dist/storage.js +2 -2
  159. package/dist/support-passport/access-operations.d.ts +51 -51
  160. package/dist/support-passport/contracts.d.ts +85 -126
  161. package/dist/support-passport/contracts.d.ts.map +1 -1
  162. package/dist/support-passport/generated-batch.d.ts +3 -17
  163. package/dist/support-passport/generated-batch.d.ts.map +1 -1
  164. package/dist/support-passport/grant-contracts.d.ts +75 -381
  165. package/dist/support-passport/grant-contracts.d.ts.map +1 -1
  166. package/dist/support-passport/index.js +25 -25
  167. package/dist/support-passport/model-audit.d.ts +17 -82
  168. package/dist/support-passport/model-audit.d.ts.map +1 -1
  169. package/dist/support-passport/model-bridge.d.ts +12 -51
  170. package/dist/support-passport/model-bridge.d.ts.map +1 -1
  171. package/dist/support-passport/model-contracts.d.ts +53 -192
  172. package/dist/support-passport/model-contracts.d.ts.map +1 -1
  173. package/dist/tokens.js +3 -3
  174. package/dist/transfer/export-okf.js +3 -3
  175. package/dist/transfer/types.d.ts +32 -737
  176. package/dist/transfer/types.d.ts.map +1 -1
  177. package/dist/verified-recall.js +3 -3
  178. package/dist/who-knows-cli.js +5 -5
  179. package/dist/who-knows.js +4 -4
  180. package/package.json +3 -4
  181. package/src/access-boundary.test.ts +14 -0
  182. package/src/access-boundary.ts +48 -42
  183. package/src/access-category-alias.test.ts +9 -7
  184. package/src/access-errors.test.ts +21 -9
  185. package/src/access-errors.ts +45 -31
  186. package/src/access-http.test.ts +1 -1
  187. package/src/access-schema.ts +13 -17
  188. package/src/extraction-scope-source-agent.test.ts +6 -6
  189. package/src/extraction-span-wire.test.ts +28 -0
  190. package/src/extraction-span-wire.ts +34 -6
  191. package/src/storage/entity-canonical-id-migration.ts +2 -2
  192. package/dist/chunk-23ZLN5X6.js.map +0 -1
  193. package/dist/chunk-3MUKQQ7A.js.map +0 -1
  194. package/dist/chunk-IMKOJVD4.js.map +0 -1
  195. package/dist/chunk-Z5277JWF.js.map +0 -1
  196. package/dist/chunk-ZMO2S5RT.js.map +0 -1
  197. /package/dist/{chunk-7YVER7ZO.js.map → chunk-2EXF6IIB.js.map} +0 -0
  198. /package/dist/{chunk-HPNXS6W6.js.map → chunk-2ONKXEC7.js.map} +0 -0
  199. /package/dist/{chunk-DMKTOCC7.js.map → chunk-2S6JADBB.js.map} +0 -0
  200. /package/dist/{chunk-ZSEFGDCI.js.map → chunk-2TGIKMMZ.js.map} +0 -0
  201. /package/dist/{chunk-Q3PNQYAC.js.map → chunk-44EUCSG4.js.map} +0 -0
  202. /package/dist/{chunk-PJCVI44H.js.map → chunk-4FM35YIA.js.map} +0 -0
  203. /package/dist/{chunk-M6TP6UYD.js.map → chunk-6ZAU7LAR.js.map} +0 -0
  204. /package/dist/{chunk-SJTSWG2Z.js.map → chunk-72CBJ5VP.js.map} +0 -0
  205. /package/dist/{chunk-EKYWZYZJ.js.map → chunk-75BK4XGV.js.map} +0 -0
  206. /package/dist/{chunk-HKOMHP6D.js.map → chunk-A6JDT6QF.js.map} +0 -0
  207. /package/dist/{chunk-TFWJXWL6.js.map → chunk-AHGOOZUC.js.map} +0 -0
  208. /package/dist/{chunk-A7AISUJI.js.map → chunk-AJG2TAMR.js.map} +0 -0
  209. /package/dist/{chunk-VCOMACR6.js.map → chunk-AZLD4CKG.js.map} +0 -0
  210. /package/dist/{chunk-GXVXBYRA.js.map → chunk-B35EQQ7L.js.map} +0 -0
  211. /package/dist/{chunk-E6UNM67F.js.map → chunk-B6SPPYGJ.js.map} +0 -0
  212. /package/dist/{chunk-TXKQBQYW.js.map → chunk-CK6GCGMX.js.map} +0 -0
  213. /package/dist/{chunk-NPLM7AFU.js.map → chunk-DF6ZF2BN.js.map} +0 -0
  214. /package/dist/{chunk-6ZQX3R66.js.map → chunk-DJFULNXK.js.map} +0 -0
  215. /package/dist/{chunk-JBWD3J5U.js.map → chunk-DQOGZZJA.js.map} +0 -0
  216. /package/dist/{chunk-K5QQXVG6.js.map → chunk-EC2KVA27.js.map} +0 -0
  217. /package/dist/{chunk-N74WJ7B2.js.map → chunk-EZS6QJNC.js.map} +0 -0
  218. /package/dist/{chunk-MWURUSRE.js.map → chunk-FNNGWN3O.js.map} +0 -0
  219. /package/dist/{chunk-5FUDSK6Z.js.map → chunk-FT75AQ74.js.map} +0 -0
  220. /package/dist/{chunk-5X2H3X4J.js.map → chunk-GE3ZX6YK.js.map} +0 -0
  221. /package/dist/{chunk-UNOAVHV4.js.map → chunk-HCIRR3BA.js.map} +0 -0
  222. /package/dist/{chunk-MLNXATFG.js.map → chunk-HEF4BRMT.js.map} +0 -0
  223. /package/dist/{chunk-6UDLN4IA.js.map → chunk-I6ORDT54.js.map} +0 -0
  224. /package/dist/{chunk-M4HRYLOA.js.map → chunk-IUQXRRJB.js.map} +0 -0
  225. /package/dist/{chunk-GQIYL7OD.js.map → chunk-JIJAWTRK.js.map} +0 -0
  226. /package/dist/{chunk-4KS4IHKH.js.map → chunk-JX3E4XCW.js.map} +0 -0
  227. /package/dist/{chunk-ZFNXJEUG.js.map → chunk-KAJYSO3U.js.map} +0 -0
  228. /package/dist/{chunk-QS765SBL.js.map → chunk-KETS5A62.js.map} +0 -0
  229. /package/dist/{chunk-N7FNCE7F.js.map → chunk-KIWO4327.js.map} +0 -0
  230. /package/dist/{chunk-FC3ZFEXF.js.map → chunk-KJ3MDX4V.js.map} +0 -0
  231. /package/dist/{chunk-BNJAVRNJ.js.map → chunk-L3EFYRYK.js.map} +0 -0
  232. /package/dist/{chunk-P7OVFGMU.js.map → chunk-LMB47UM6.js.map} +0 -0
  233. /package/dist/{chunk-7SAE6T36.js.map → chunk-LWMLBVGB.js.map} +0 -0
  234. /package/dist/{chunk-ZNRTHYYW.js.map → chunk-MC7PXJDP.js.map} +0 -0
  235. /package/dist/{chunk-M2DOJBH7.js.map → chunk-MUNYUSBU.js.map} +0 -0
  236. /package/dist/{chunk-LMMBV7QC.js.map → chunk-OCRLJJOV.js.map} +0 -0
  237. /package/dist/{chunk-7J6A5MV2.js.map → chunk-ON77FQXH.js.map} +0 -0
  238. /package/dist/{chunk-WV4UYDP6.js.map → chunk-POJRFSJM.js.map} +0 -0
  239. /package/dist/{chunk-LKRXGOQW.js.map → chunk-QA3Y2O6H.js.map} +0 -0
  240. /package/dist/{chunk-YECEEJUU.js.map → chunk-RA7YRL6H.js.map} +0 -0
  241. /package/dist/{chunk-UALXWWGN.js.map → chunk-RJDYDF5K.js.map} +0 -0
  242. /package/dist/{chunk-WXJC2L66.js.map → chunk-ROAKLYOL.js.map} +0 -0
  243. /package/dist/{chunk-NWIT3U2N.js.map → chunk-S5CQI2KF.js.map} +0 -0
  244. /package/dist/{chunk-P6P35FY4.js.map → chunk-SDESKFKT.js.map} +0 -0
  245. /package/dist/{chunk-UXGXJUZ5.js.map → chunk-SFRBUBUZ.js.map} +0 -0
  246. /package/dist/{chunk-CRN3EPE2.js.map → chunk-SHNM7RIT.js.map} +0 -0
  247. /package/dist/{chunk-UZVQFGAY.js.map → chunk-SJD334AG.js.map} +0 -0
  248. /package/dist/{chunk-XC3H7KON.js.map → chunk-SPTPBKZX.js.map} +0 -0
  249. /package/dist/{chunk-IUYXCTA7.js.map → chunk-TC55M5PO.js.map} +0 -0
  250. /package/dist/{chunk-EWBXMGXR.js.map → chunk-UCLJTGP3.js.map} +0 -0
  251. /package/dist/{chunk-754XN6LX.js.map → chunk-V27FK6D6.js.map} +0 -0
  252. /package/dist/{chunk-LIBVANOF.js.map → chunk-V6Z4NAJZ.js.map} +0 -0
  253. /package/dist/{chunk-XTXWR6KQ.js.map → chunk-VUMWVYMR.js.map} +0 -0
  254. /package/dist/{chunk-ZSMA67FV.js.map → chunk-WY66J4PI.js.map} +0 -0
  255. /package/dist/{chunk-5G53JSRO.js.map → chunk-XWJUFER3.js.map} +0 -0
  256. /package/dist/{chunk-NSP5PIQH.js.map → chunk-Y3T5KQCR.js.map} +0 -0
  257. /package/dist/{chunk-QTDZ2NYC.js.map → chunk-Y77FXULH.js.map} +0 -0
  258. /package/dist/{chunk-IG747LRN.js.map → chunk-YO2JEX2Z.js.map} +0 -0
  259. /package/dist/{chunk-KW5YZELC.js.map → chunk-ZKK3VMWU.js.map} +0 -0
  260. /package/dist/{entity-canonical-id-migration-ZBNRGUNV.js.map → entity-canonical-id-migration-F3JVG6K6.js.map} +0 -0
@@ -20,17 +20,7 @@ export declare const codingContextSchema: z.ZodNullable<z.ZodObject<{
20
20
  branch: z.ZodNullable<z.ZodString>;
21
21
  rootPath: z.ZodString;
22
22
  defaultBranch: z.ZodNullable<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- projectId: string;
25
- branch: string | null;
26
- defaultBranch: string | null;
27
- rootPath: string;
28
- }, {
29
- projectId: string;
30
- branch: string | null;
31
- defaultBranch: string | null;
32
- rootPath: string;
33
- }>>;
23
+ }, z.core.$strip>>;
34
24
  /**
35
25
  * Recall disclosure depth (issue #677). Mirrors the `RecallDisclosure`
36
26
  * type in `types.ts` — keep these in sync. Default-application happens
@@ -38,7 +28,11 @@ export declare const codingContextSchema: z.ZodNullable<z.ZodObject<{
38
28
  * Invalid values throw a structured 400 instead of silently defaulting,
39
29
  * per CLAUDE.md rule 51.
40
30
  */
41
- export declare const recallDisclosureSchema: z.ZodEnum<["chunk", "section", "raw"]>;
31
+ export declare const recallDisclosureSchema: z.ZodEnum<{
32
+ raw: "raw";
33
+ chunk: "chunk";
34
+ section: "section";
35
+ }>;
42
36
  /**
43
37
  * Tag-match semantics (issue #689). `any` (default when `tags` is provided
44
38
  * and `tagMatch` is omitted) admits a result when it carries at least one
@@ -46,200 +40,96 @@ export declare const recallDisclosureSchema: z.ZodEnum<["chunk", "section", "raw
46
40
  * Schema rejects unknown values up front — never silently defaults
47
41
  * (CLAUDE.md rule 51).
48
42
  */
49
- export declare const tagMatchSchema: z.ZodEnum<["any", "all"]>;
43
+ export declare const tagMatchSchema: z.ZodEnum<{
44
+ any: "any";
45
+ all: "all";
46
+ }>;
50
47
  export declare const recallRequestSchema: z.ZodObject<{
51
48
  query: z.ZodString;
52
49
  sessionKey: z.ZodOptional<z.ZodString>;
53
50
  namespace: z.ZodOptional<z.ZodString>;
54
51
  topK: z.ZodOptional<z.ZodNumber>;
55
- mode: z.ZodOptional<z.ZodEnum<["auto", "no_recall", "minimal", "full", "graph_mode"]>>;
52
+ mode: z.ZodOptional<z.ZodEnum<{
53
+ auto: "auto";
54
+ no_recall: "no_recall";
55
+ minimal: "minimal";
56
+ full: "full";
57
+ graph_mode: "graph_mode";
58
+ }>>;
56
59
  includeDebug: z.ZodOptional<z.ZodBoolean>;
57
60
  idempotencyKey: z.ZodOptional<z.ZodString>;
58
- disclosure: z.ZodOptional<z.ZodEnum<["chunk", "section", "raw"]>>;
61
+ disclosure: z.ZodOptional<z.ZodEnum<{
62
+ raw: "raw";
63
+ chunk: "chunk";
64
+ section: "section";
65
+ }>>;
59
66
  codingContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
67
  projectId: z.ZodString;
61
68
  branch: z.ZodNullable<z.ZodString>;
62
69
  rootPath: z.ZodString;
63
70
  defaultBranch: z.ZodNullable<z.ZodString>;
64
- }, "strip", z.ZodTypeAny, {
65
- projectId: string;
66
- branch: string | null;
67
- defaultBranch: string | null;
68
- rootPath: string;
69
- }, {
70
- projectId: string;
71
- branch: string | null;
72
- defaultBranch: string | null;
73
- rootPath: string;
74
- }>>>;
75
- /** Working directory for auto git-context resolution (issue #569). */
71
+ }, z.core.$strip>>>;
76
72
  cwd: z.ZodOptional<z.ZodString>;
77
- /**
78
- * Arbitrary project tag for non-git-based project scoping (issue #569).
79
- * Creates a coding context with `projectId: "tag:<projectTag>"`.
80
- */
81
73
  projectTag: z.ZodOptional<z.ZodString>;
82
- /**
83
- * Historical recall pin (issue #680). ISO 8601 timestamp. The
84
- * schema only enforces the basic shape; the access service runs
85
- * `Date.parse` and emits a structured 400 on malformed input
86
- * (CLAUDE.md rule 51).
87
- */
88
74
  asOf: z.ZodOptional<z.ZodString>;
89
- /**
90
- * Free-form recall tag filter (issue #689). When provided, recall results
91
- * whose frontmatter `tags` do not match the filter are removed before the
92
- * response is returned. Comparison is case-sensitive exact match.
93
- */
94
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
- /**
96
- * Match mode for `tags` (issue #689). Defaults to `"any"` when `tags` is
97
- * provided and `tagMatch` is omitted. Ignored when `tags` is absent.
98
- */
99
- tagMatch: z.ZodOptional<z.ZodEnum<["any", "all"]>>;
100
- /**
101
- * Include graph edges below `graphTraversalConfidenceFloor` for diagnostic
102
- * recall traversal (issue #681). Defaults to false.
103
- */
75
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ tagMatch: z.ZodOptional<z.ZodEnum<{
77
+ any: "any";
78
+ all: "all";
79
+ }>>;
104
80
  includeLowConfidence: z.ZodOptional<z.ZodBoolean>;
105
- /**
106
- * #1952 — per-call opt-in to state-aware recall views for this recall.
107
- * ORs with the `recallStateViews` config flag; a change-intent query
108
- * (e.g. "when did", "used to", "switched") is still required for any
109
- * effect, so this can never perturb ordinary recalls.
110
- */
111
81
  stateView: z.ZodOptional<z.ZodBoolean>;
112
- }, "strip", z.ZodTypeAny, {
113
- query: string;
114
- sessionKey?: string | undefined;
115
- tags?: string[] | undefined;
116
- mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
117
- codingContext?: {
118
- projectId: string;
119
- branch: string | null;
120
- defaultBranch: string | null;
121
- rootPath: string;
122
- } | null | undefined;
123
- cwd?: string | undefined;
124
- namespace?: string | undefined;
125
- projectTag?: string | undefined;
126
- topK?: number | undefined;
127
- includeDebug?: boolean | undefined;
128
- idempotencyKey?: string | undefined;
129
- disclosure?: "raw" | "chunk" | "section" | undefined;
130
- asOf?: string | undefined;
131
- tagMatch?: "any" | "all" | undefined;
132
- includeLowConfidence?: boolean | undefined;
133
- stateView?: boolean | undefined;
134
- }, {
135
- query: string;
136
- sessionKey?: string | undefined;
137
- tags?: string[] | undefined;
138
- mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
139
- codingContext?: {
140
- projectId: string;
141
- branch: string | null;
142
- defaultBranch: string | null;
143
- rootPath: string;
144
- } | null | undefined;
145
- cwd?: string | undefined;
146
- namespace?: string | undefined;
147
- projectTag?: string | undefined;
148
- topK?: number | undefined;
149
- includeDebug?: boolean | undefined;
150
- idempotencyKey?: string | undefined;
151
- disclosure?: "raw" | "chunk" | "section" | undefined;
152
- asOf?: string | undefined;
153
- tagMatch?: "any" | "all" | undefined;
154
- includeLowConfidence?: boolean | undefined;
155
- stateView?: boolean | undefined;
156
- }>;
82
+ }, z.core.$strip>;
157
83
  export declare const recallExplainRequestSchema: z.ZodObject<{
158
84
  sessionKey: z.ZodOptional<z.ZodString>;
159
85
  namespace: z.ZodOptional<z.ZodString>;
160
- }, "strip", z.ZodTypeAny, {
161
- sessionKey?: string | undefined;
162
- namespace?: string | undefined;
163
- }, {
164
- sessionKey?: string | undefined;
165
- namespace?: string | undefined;
166
- }>;
86
+ }, z.core.$strip>;
167
87
  /**
168
88
  * Standalone "set coding context" request. Used by the HTTP endpoint
169
89
  * `POST /engram/v1/coding-context` and the MCP `remnic.set_coding_context`
170
90
  * tool (PR 7). `codingContext: null` clears the attached context.
171
91
  */
172
- export declare const setCodingContextRequestSchema: z.ZodEffects<z.ZodObject<{
92
+ export declare const setCodingContextRequestSchema: z.ZodObject<{
173
93
  sessionKey: z.ZodString;
174
94
  codingContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
175
95
  projectId: z.ZodString;
176
96
  branch: z.ZodNullable<z.ZodString>;
177
97
  rootPath: z.ZodString;
178
98
  defaultBranch: z.ZodNullable<z.ZodString>;
179
- }, "strip", z.ZodTypeAny, {
180
- projectId: string;
181
- branch: string | null;
182
- defaultBranch: string | null;
183
- rootPath: string;
184
- }, {
185
- projectId: string;
186
- branch: string | null;
187
- defaultBranch: string | null;
188
- rootPath: string;
189
- }>>>;
190
- /**
191
- * Project tag shorthand for non-git-based project scoping. When
192
- * `codingContext` is omitted, this becomes
193
- * `{ projectId: "tag:<projectTag>", branch: null, rootPath: "tag:<projectTag>", defaultBranch: null }`.
194
- */
99
+ }, z.core.$strip>>>;
195
100
  projectTag: z.ZodOptional<z.ZodString>;
196
- }, "strip", z.ZodTypeAny, {
197
- sessionKey: string;
198
- codingContext?: {
199
- projectId: string;
200
- branch: string | null;
201
- defaultBranch: string | null;
202
- rootPath: string;
203
- } | null | undefined;
204
- projectTag?: string | undefined;
205
- }, {
206
- sessionKey: string;
207
- codingContext?: {
208
- projectId: string;
209
- branch: string | null;
210
- defaultBranch: string | null;
211
- rootPath: string;
212
- } | null | undefined;
213
- projectTag?: string | undefined;
214
- }>, {
215
- sessionKey: string;
216
- codingContext?: {
217
- projectId: string;
218
- branch: string | null;
219
- defaultBranch: string | null;
220
- rootPath: string;
221
- } | null | undefined;
222
- projectTag?: string | undefined;
223
- }, {
224
- sessionKey: string;
225
- codingContext?: {
226
- projectId: string;
227
- branch: string | null;
228
- defaultBranch: string | null;
229
- rootPath: string;
230
- } | null | undefined;
231
- projectTag?: string | undefined;
232
- }>;
101
+ }, z.core.$strip>;
233
102
  export declare const observeRequestSchema: z.ZodObject<{
234
103
  sessionKey: z.ZodString;
235
104
  messages: z.ZodArray<z.ZodObject<{
236
- role: z.ZodEnum<["user", "assistant"]>;
105
+ role: z.ZodEnum<{
106
+ user: "user";
107
+ assistant: "assistant";
108
+ }>;
237
109
  content: z.ZodString;
238
- sourceFormat: z.ZodOptional<z.ZodNullable<z.ZodEnum<["openai", "anthropic", "openclaw", "pi", "lossless-claw", "remnic"]>>>;
110
+ sourceFormat: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
111
+ remnic: "remnic";
112
+ openai: "openai";
113
+ anthropic: "anthropic";
114
+ openclaw: "openclaw";
115
+ pi: "pi";
116
+ "lossless-claw": "lossless-claw";
117
+ }>>>;
239
118
  rawContent: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
240
119
  parts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
241
120
  ordinal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
- kind: z.ZodEnum<["text", "tool_call", "tool_result", "patch", "file_read", "file_write", "step_start", "step_finish", "snapshot", "retry"]>;
121
+ kind: z.ZodEnum<{
122
+ snapshot: "snapshot";
123
+ tool_result: "tool_result";
124
+ retry: "retry";
125
+ text: "text";
126
+ tool_call: "tool_call";
127
+ patch: "patch";
128
+ file_read: "file_read";
129
+ file_write: "file_write";
130
+ step_start: "step_start";
131
+ step_finish: "step_finish";
132
+ }>;
243
133
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
244
134
  toolName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
135
  tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -247,143 +137,20 @@ export declare const observeRequestSchema: z.ZodObject<{
247
137
  file_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
138
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
139
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- }, "strip", z.ZodTypeAny, {
251
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
252
- payload: Record<string, unknown>;
253
- filePath?: string | null | undefined;
254
- toolName?: string | null | undefined;
255
- createdAt?: string | null | undefined;
256
- ordinal?: number | null | undefined;
257
- tool_name?: string | null | undefined;
258
- file_path?: string | null | undefined;
259
- created_at?: string | null | undefined;
260
- }, {
261
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
262
- payload: Record<string, unknown>;
263
- filePath?: string | null | undefined;
264
- toolName?: string | null | undefined;
265
- createdAt?: string | null | undefined;
266
- ordinal?: number | null | undefined;
267
- tool_name?: string | null | undefined;
268
- file_path?: string | null | undefined;
269
- created_at?: string | null | undefined;
270
- }>, "many">>>;
271
- }, "strip", z.ZodTypeAny, {
272
- content: string;
273
- role: "user" | "assistant";
274
- parts?: {
275
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
276
- payload: Record<string, unknown>;
277
- filePath?: string | null | undefined;
278
- toolName?: string | null | undefined;
279
- createdAt?: string | null | undefined;
280
- ordinal?: number | null | undefined;
281
- tool_name?: string | null | undefined;
282
- file_path?: string | null | undefined;
283
- created_at?: string | null | undefined;
284
- }[] | null | undefined;
285
- sourceFormat?: "remnic" | "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | null | undefined;
286
- rawContent?: unknown;
287
- }, {
288
- content: string;
289
- role: "user" | "assistant";
290
- parts?: {
291
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
292
- payload: Record<string, unknown>;
293
- filePath?: string | null | undefined;
294
- toolName?: string | null | undefined;
295
- createdAt?: string | null | undefined;
296
- ordinal?: number | null | undefined;
297
- tool_name?: string | null | undefined;
298
- file_path?: string | null | undefined;
299
- created_at?: string | null | undefined;
300
- }[] | null | undefined;
301
- sourceFormat?: "remnic" | "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | null | undefined;
302
- rawContent?: unknown;
303
- }>, "many">;
140
+ }, z.core.$strip>>>>;
141
+ }, z.core.$strip>>;
304
142
  namespace: z.ZodOptional<z.ZodString>;
305
143
  skipExtraction: z.ZodOptional<z.ZodBoolean>;
306
- /**
307
- * Optional idempotency key for server-side dedup of retried observe POSTs
308
- * (issue #1649). A retry that reaches the daemon after the first attempt
309
- * already processed is replayed from cache instead of re-ingested. When the
310
- * key is reused with a DIFFERENT payload the request is rejected as a
311
- * conflict (same contract as memory_store/suggestion_submit).
312
- */
313
144
  idempotencyKey: z.ZodOptional<z.ZodString>;
314
- /** Working directory for auto git-context resolution (issue #569). */
315
145
  cwd: z.ZodOptional<z.ZodString>;
316
- /**
317
- * Arbitrary project tag for non-git-based project scoping (issue #569).
318
- * Creates a coding context with `projectId: "tag:<projectTag>"`.
319
- */
320
146
  projectTag: z.ZodOptional<z.ZodString>;
321
- }, "strip", z.ZodTypeAny, {
322
- sessionKey: string;
323
- messages: {
324
- content: string;
325
- role: "user" | "assistant";
326
- parts?: {
327
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
328
- payload: Record<string, unknown>;
329
- filePath?: string | null | undefined;
330
- toolName?: string | null | undefined;
331
- createdAt?: string | null | undefined;
332
- ordinal?: number | null | undefined;
333
- tool_name?: string | null | undefined;
334
- file_path?: string | null | undefined;
335
- created_at?: string | null | undefined;
336
- }[] | null | undefined;
337
- sourceFormat?: "remnic" | "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | null | undefined;
338
- rawContent?: unknown;
339
- }[];
340
- cwd?: string | undefined;
341
- namespace?: string | undefined;
342
- projectTag?: string | undefined;
343
- idempotencyKey?: string | undefined;
344
- skipExtraction?: boolean | undefined;
345
- }, {
346
- sessionKey: string;
347
- messages: {
348
- content: string;
349
- role: "user" | "assistant";
350
- parts?: {
351
- kind: "snapshot" | "tool_result" | "retry" | "text" | "tool_call" | "patch" | "file_read" | "file_write" | "step_start" | "step_finish";
352
- payload: Record<string, unknown>;
353
- filePath?: string | null | undefined;
354
- toolName?: string | null | undefined;
355
- createdAt?: string | null | undefined;
356
- ordinal?: number | null | undefined;
357
- tool_name?: string | null | undefined;
358
- file_path?: string | null | undefined;
359
- created_at?: string | null | undefined;
360
- }[] | null | undefined;
361
- sourceFormat?: "remnic" | "openai" | "anthropic" | "openclaw" | "pi" | "lossless-claw" | null | undefined;
362
- rawContent?: unknown;
363
- }[];
364
- cwd?: string | undefined;
365
- namespace?: string | undefined;
366
- projectTag?: string | undefined;
367
- idempotencyKey?: string | undefined;
368
- skipExtraction?: boolean | undefined;
369
- }>;
147
+ }, z.core.$strip>;
370
148
  export declare const deepRecallRequestSchema: z.ZodObject<{
371
149
  query: z.ZodString;
372
- /** Optional policy-step ceiling; validated against the configured maximum in the service. */
373
- maxSteps: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
150
+ maxSteps: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
374
151
  namespace: z.ZodOptional<z.ZodString>;
375
152
  sessionKey: z.ZodOptional<z.ZodString>;
376
- }, "strip", z.ZodTypeAny, {
377
- query: string;
378
- sessionKey?: string | undefined;
379
- maxSteps?: string | number | undefined;
380
- namespace?: string | undefined;
381
- }, {
382
- query: string;
383
- sessionKey?: string | undefined;
384
- maxSteps?: string | number | undefined;
385
- namespace?: string | undefined;
386
- }>;
153
+ }, z.core.$strip>;
387
154
  /**
388
155
  * Compatibility alias spellings admitted on input. The four project-shaped
389
156
  * categories fleet telemetry actually shows do not exist in the taxonomy;
@@ -432,46 +199,34 @@ declare const memoryStoreRequestShape: z.ZodObject<{
432
199
  dryRun: z.ZodOptional<z.ZodBoolean>;
433
200
  sessionKey: z.ZodOptional<z.ZodString>;
434
201
  content: z.ZodString;
435
- category: z.ZodOptional<z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace", "project", "project_state", "project-state", "project_update"]>>;
202
+ category: z.ZodOptional<z.ZodEnum<{
203
+ project: "project";
204
+ decision: "decision";
205
+ procedure: "procedure";
206
+ fact: "fact";
207
+ preference: "preference";
208
+ correction: "correction";
209
+ entity: "entity";
210
+ relationship: "relationship";
211
+ principle: "principle";
212
+ commitment: "commitment";
213
+ moment: "moment";
214
+ skill: "skill";
215
+ rule: "rule";
216
+ reasoning_trace: "reasoning_trace";
217
+ project_state: "project_state";
218
+ "project-state": "project-state";
219
+ project_update: "project_update";
220
+ }>>;
436
221
  confidence: z.ZodOptional<z.ZodNumber>;
437
222
  namespace: z.ZodOptional<z.ZodString>;
438
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
439
224
  entityRef: z.ZodOptional<z.ZodString>;
440
225
  ttl: z.ZodOptional<z.ZodString>;
441
226
  sourceReason: z.ZodOptional<z.ZodString>;
442
227
  cwd: z.ZodOptional<z.ZodString>;
443
228
  projectTag: z.ZodOptional<z.ZodString>;
444
- }, "strip", z.ZodTypeAny, {
445
- content: string;
446
- schemaVersion?: number | undefined;
447
- sessionKey?: string | undefined;
448
- tags?: string[] | undefined;
449
- confidence?: number | undefined;
450
- cwd?: string | undefined;
451
- namespace?: string | undefined;
452
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
453
- dryRun?: boolean | undefined;
454
- entityRef?: string | undefined;
455
- projectTag?: string | undefined;
456
- ttl?: string | undefined;
457
- idempotencyKey?: string | undefined;
458
- sourceReason?: string | undefined;
459
- }, {
460
- content: string;
461
- schemaVersion?: number | undefined;
462
- sessionKey?: string | undefined;
463
- tags?: string[] | undefined;
464
- confidence?: number | undefined;
465
- cwd?: string | undefined;
466
- namespace?: string | undefined;
467
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
468
- dryRun?: boolean | undefined;
469
- entityRef?: string | undefined;
470
- projectTag?: string | undefined;
471
- ttl?: string | undefined;
472
- idempotencyKey?: string | undefined;
473
- sourceReason?: string | undefined;
474
- }>;
229
+ }, z.core.$strip>;
475
230
  /**
476
231
  * Parsed memory-store request (issue #2829): the category transform maps
477
232
  * compat aliases to the canonical "fact" DURING parsing, so the output type
@@ -484,592 +239,309 @@ export type MemoryStoreParsedRequest = Omit<z.infer<typeof memoryStoreRequestSha
484
239
  category?: MemoryCategory;
485
240
  rawCategory?: MemoryCategoryAlias;
486
241
  };
487
- export declare const memoryStoreRequestSchema: z.ZodEffects<z.ZodObject<{
242
+ export declare const memoryStoreRequestSchema: z.ZodPipe<z.ZodObject<{
488
243
  schemaVersion: z.ZodOptional<z.ZodNumber>;
489
244
  idempotencyKey: z.ZodOptional<z.ZodString>;
490
245
  dryRun: z.ZodOptional<z.ZodBoolean>;
491
246
  sessionKey: z.ZodOptional<z.ZodString>;
492
247
  content: z.ZodString;
493
- category: z.ZodOptional<z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace", "project", "project_state", "project-state", "project_update"]>>;
248
+ category: z.ZodOptional<z.ZodEnum<{
249
+ project: "project";
250
+ decision: "decision";
251
+ procedure: "procedure";
252
+ fact: "fact";
253
+ preference: "preference";
254
+ correction: "correction";
255
+ entity: "entity";
256
+ relationship: "relationship";
257
+ principle: "principle";
258
+ commitment: "commitment";
259
+ moment: "moment";
260
+ skill: "skill";
261
+ rule: "rule";
262
+ reasoning_trace: "reasoning_trace";
263
+ project_state: "project_state";
264
+ "project-state": "project-state";
265
+ project_update: "project_update";
266
+ }>>;
494
267
  confidence: z.ZodOptional<z.ZodNumber>;
495
268
  namespace: z.ZodOptional<z.ZodString>;
496
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
497
270
  entityRef: z.ZodOptional<z.ZodString>;
498
271
  ttl: z.ZodOptional<z.ZodString>;
499
272
  sourceReason: z.ZodOptional<z.ZodString>;
500
273
  cwd: z.ZodOptional<z.ZodString>;
501
274
  projectTag: z.ZodOptional<z.ZodString>;
502
- }, "strip", z.ZodTypeAny, {
275
+ }, z.core.$strip>, z.ZodTransform<MemoryStoreParsedRequest, {
503
276
  content: string;
504
277
  schemaVersion?: number | undefined;
505
- sessionKey?: string | undefined;
506
- tags?: string[] | undefined;
507
- confidence?: number | undefined;
508
- cwd?: string | undefined;
509
- namespace?: string | undefined;
510
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
511
- dryRun?: boolean | undefined;
512
- entityRef?: string | undefined;
513
- projectTag?: string | undefined;
514
- ttl?: string | undefined;
515
278
  idempotencyKey?: string | undefined;
516
- sourceReason?: string | undefined;
517
- }, {
518
- content: string;
519
- schemaVersion?: number | undefined;
279
+ dryRun?: boolean | undefined;
520
280
  sessionKey?: string | undefined;
521
- tags?: string[] | undefined;
281
+ category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
522
282
  confidence?: number | undefined;
523
- cwd?: string | undefined;
524
283
  namespace?: string | undefined;
525
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
526
- dryRun?: boolean | undefined;
284
+ tags?: string[] | undefined;
527
285
  entityRef?: string | undefined;
528
- projectTag?: string | undefined;
529
286
  ttl?: string | undefined;
530
- idempotencyKey?: string | undefined;
531
287
  sourceReason?: string | undefined;
532
- }>, MemoryStoreParsedRequest, {
533
- content: string;
534
- schemaVersion?: number | undefined;
535
- sessionKey?: string | undefined;
536
- tags?: string[] | undefined;
537
- confidence?: number | undefined;
538
288
  cwd?: string | undefined;
539
- namespace?: string | undefined;
540
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
541
- dryRun?: boolean | undefined;
542
- entityRef?: string | undefined;
543
289
  projectTag?: string | undefined;
544
- ttl?: string | undefined;
545
- idempotencyKey?: string | undefined;
546
- sourceReason?: string | undefined;
547
- }>;
548
- export declare const suggestionSubmitRequestSchema: z.ZodEffects<z.ZodObject<{
290
+ }>>;
291
+ export declare const suggestionSubmitRequestSchema: z.ZodPipe<z.ZodObject<{
549
292
  schemaVersion: z.ZodOptional<z.ZodNumber>;
550
293
  idempotencyKey: z.ZodOptional<z.ZodString>;
551
294
  dryRun: z.ZodOptional<z.ZodBoolean>;
552
295
  sessionKey: z.ZodOptional<z.ZodString>;
553
296
  content: z.ZodString;
554
- category: z.ZodOptional<z.ZodEnum<["fact", "preference", "correction", "entity", "decision", "relationship", "principle", "commitment", "moment", "skill", "rule", "procedure", "reasoning_trace", "project", "project_state", "project-state", "project_update"]>>;
297
+ category: z.ZodOptional<z.ZodEnum<{
298
+ project: "project";
299
+ decision: "decision";
300
+ procedure: "procedure";
301
+ fact: "fact";
302
+ preference: "preference";
303
+ correction: "correction";
304
+ entity: "entity";
305
+ relationship: "relationship";
306
+ principle: "principle";
307
+ commitment: "commitment";
308
+ moment: "moment";
309
+ skill: "skill";
310
+ rule: "rule";
311
+ reasoning_trace: "reasoning_trace";
312
+ project_state: "project_state";
313
+ "project-state": "project-state";
314
+ project_update: "project_update";
315
+ }>>;
555
316
  confidence: z.ZodOptional<z.ZodNumber>;
556
317
  namespace: z.ZodOptional<z.ZodString>;
557
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
318
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
319
  entityRef: z.ZodOptional<z.ZodString>;
559
320
  ttl: z.ZodOptional<z.ZodString>;
560
321
  sourceReason: z.ZodOptional<z.ZodString>;
561
322
  cwd: z.ZodOptional<z.ZodString>;
562
323
  projectTag: z.ZodOptional<z.ZodString>;
563
- }, "strip", z.ZodTypeAny, {
324
+ }, z.core.$strip>, z.ZodTransform<MemoryStoreParsedRequest, {
564
325
  content: string;
565
326
  schemaVersion?: number | undefined;
566
- sessionKey?: string | undefined;
567
- tags?: string[] | undefined;
568
- confidence?: number | undefined;
569
- cwd?: string | undefined;
570
- namespace?: string | undefined;
571
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
572
- dryRun?: boolean | undefined;
573
- entityRef?: string | undefined;
574
- projectTag?: string | undefined;
575
- ttl?: string | undefined;
576
327
  idempotencyKey?: string | undefined;
577
- sourceReason?: string | undefined;
578
- }, {
579
- content: string;
580
- schemaVersion?: number | undefined;
328
+ dryRun?: boolean | undefined;
581
329
  sessionKey?: string | undefined;
582
- tags?: string[] | undefined;
330
+ category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
583
331
  confidence?: number | undefined;
584
- cwd?: string | undefined;
585
332
  namespace?: string | undefined;
586
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
587
- dryRun?: boolean | undefined;
333
+ tags?: string[] | undefined;
588
334
  entityRef?: string | undefined;
589
- projectTag?: string | undefined;
590
335
  ttl?: string | undefined;
591
- idempotencyKey?: string | undefined;
592
336
  sourceReason?: string | undefined;
593
- }>, MemoryStoreParsedRequest, {
594
- content: string;
595
- schemaVersion?: number | undefined;
596
- sessionKey?: string | undefined;
597
- tags?: string[] | undefined;
598
- confidence?: number | undefined;
599
337
  cwd?: string | undefined;
600
- namespace?: string | undefined;
601
- category?: "project" | "decision" | "procedure" | "fact" | "preference" | "correction" | "entity" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "reasoning_trace" | "project_state" | "project-state" | "project_update" | undefined;
602
- dryRun?: boolean | undefined;
603
- entityRef?: string | undefined;
604
338
  projectTag?: string | undefined;
605
- ttl?: string | undefined;
606
- idempotencyKey?: string | undefined;
607
- sourceReason?: string | undefined;
608
- }>;
339
+ }>>;
609
340
  export declare const reviewDispositionRequestSchema: z.ZodObject<{
610
341
  memoryId: z.ZodString;
611
- status: z.ZodEnum<["active", "pending_review", "quarantined", "rejected", "superseded", "archived"]>;
342
+ status: z.ZodEnum<{
343
+ superseded: "superseded";
344
+ active: "active";
345
+ pending_review: "pending_review";
346
+ rejected: "rejected";
347
+ quarantined: "quarantined";
348
+ archived: "archived";
349
+ }>;
612
350
  reasonCode: z.ZodString;
613
351
  namespace: z.ZodOptional<z.ZodString>;
614
- }, "strip", z.ZodTypeAny, {
615
- memoryId: string;
616
- status: "superseded" | "active" | "pending_review" | "rejected" | "quarantined" | "archived";
617
- reasonCode: string;
618
- namespace?: string | undefined;
619
- }, {
620
- memoryId: string;
621
- status: "superseded" | "active" | "pending_review" | "rejected" | "quarantined" | "archived";
622
- reasonCode: string;
623
- namespace?: string | undefined;
624
- }>;
352
+ }, z.core.$strip>;
625
353
  export declare const trustZonePromoteRequestSchema: z.ZodObject<{
626
354
  recordId: z.ZodString;
627
- targetZone: z.ZodEnum<["working", "trusted"]>;
355
+ targetZone: z.ZodEnum<{
356
+ working: "working";
357
+ trusted: "trusted";
358
+ }>;
628
359
  promotionReason: z.ZodString;
629
360
  recordedAt: z.ZodOptional<z.ZodString>;
630
361
  summary: z.ZodOptional<z.ZodString>;
631
362
  dryRun: z.ZodOptional<z.ZodBoolean>;
632
363
  namespace: z.ZodOptional<z.ZodString>;
633
- }, "strip", z.ZodTypeAny, {
634
- recordId: string;
635
- targetZone: "working" | "trusted";
636
- promotionReason: string;
637
- recordedAt?: string | undefined;
638
- summary?: string | undefined;
639
- namespace?: string | undefined;
640
- dryRun?: boolean | undefined;
641
- }, {
642
- recordId: string;
643
- targetZone: "working" | "trusted";
644
- promotionReason: string;
645
- recordedAt?: string | undefined;
646
- summary?: string | undefined;
647
- namespace?: string | undefined;
648
- dryRun?: boolean | undefined;
649
- }>;
364
+ }, z.core.$strip>;
650
365
  export declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
651
366
  scenario: z.ZodOptional<z.ZodString>;
652
367
  recordedAt: z.ZodOptional<z.ZodString>;
653
368
  dryRun: z.ZodOptional<z.ZodBoolean>;
654
369
  namespace: z.ZodOptional<z.ZodString>;
655
- }, "strip", z.ZodTypeAny, {
656
- recordedAt?: string | undefined;
657
- namespace?: string | undefined;
658
- dryRun?: boolean | undefined;
659
- scenario?: string | undefined;
660
- }, {
661
- recordedAt?: string | undefined;
662
- namespace?: string | undefined;
663
- dryRun?: boolean | undefined;
664
- scenario?: string | undefined;
665
- }>;
370
+ }, z.core.$strip>;
666
371
  export declare const lcmSearchRequestSchema: z.ZodObject<{
667
372
  query: z.ZodString;
668
373
  sessionKey: z.ZodOptional<z.ZodString>;
669
374
  sessionPrefix: z.ZodOptional<z.ZodString>;
670
375
  namespace: z.ZodOptional<z.ZodString>;
671
376
  limit: z.ZodOptional<z.ZodNumber>;
672
- }, "strip", z.ZodTypeAny, {
673
- query: string;
674
- sessionKey?: string | undefined;
675
- namespace?: string | undefined;
676
- limit?: number | undefined;
677
- sessionPrefix?: string | undefined;
678
- }, {
679
- query: string;
680
- sessionKey?: string | undefined;
681
- namespace?: string | undefined;
682
- limit?: number | undefined;
683
- sessionPrefix?: string | undefined;
684
- }>;
685
- export declare const lcmCompactionFlushRequestSchema: z.ZodEffects<z.ZodObject<{
377
+ }, z.core.$strip>;
378
+ export declare const lcmCompactionFlushRequestSchema: z.ZodObject<{
686
379
  sessionKey: z.ZodString;
687
380
  namespace: z.ZodOptional<z.ZodString>;
688
381
  cwd: z.ZodOptional<z.ZodString>;
689
382
  projectTag: z.ZodOptional<z.ZodString>;
690
- /**
691
- * Optional multi-namespace flush used by delegate lifecycle replay. The
692
- * server handles the whole list as one quota-counted write.
693
- */
694
- namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
695
- }, "strip", z.ZodTypeAny, {
696
- sessionKey: string;
697
- namespaces?: string[] | undefined;
698
- cwd?: string | undefined;
699
- namespace?: string | undefined;
700
- projectTag?: string | undefined;
701
- }, {
702
- sessionKey: string;
703
- namespaces?: string[] | undefined;
704
- cwd?: string | undefined;
705
- namespace?: string | undefined;
706
- projectTag?: string | undefined;
707
- }>, {
708
- sessionKey: string;
709
- namespaces?: string[] | undefined;
710
- cwd?: string | undefined;
711
- namespace?: string | undefined;
712
- projectTag?: string | undefined;
713
- }, {
714
- sessionKey: string;
715
- namespaces?: string[] | undefined;
716
- cwd?: string | undefined;
717
- namespace?: string | undefined;
718
- projectTag?: string | undefined;
719
- }>;
383
+ namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
384
+ }, z.core.$strip>;
720
385
  export declare const extractionForceFlushRequestSchema: z.ZodObject<{
721
386
  sessionKey: z.ZodString;
722
387
  namespace: z.ZodOptional<z.ZodString>;
723
388
  cwd: z.ZodOptional<z.ZodString>;
724
389
  projectTag: z.ZodOptional<z.ZodString>;
725
390
  deadlineMs: z.ZodOptional<z.ZodNumber>;
726
- }, "strip", z.ZodTypeAny, {
727
- sessionKey: string;
728
- cwd?: string | undefined;
729
- namespace?: string | undefined;
730
- deadlineMs?: number | undefined;
731
- projectTag?: string | undefined;
732
- }, {
733
- sessionKey: string;
734
- cwd?: string | undefined;
735
- namespace?: string | undefined;
736
- deadlineMs?: number | undefined;
737
- projectTag?: string | undefined;
738
- }>;
391
+ }, z.core.$strip>;
739
392
  export declare const lcmCompactionRecordRequestSchema: z.ZodObject<{
740
393
  sessionKey: z.ZodString;
741
394
  namespace: z.ZodOptional<z.ZodString>;
742
395
  tokensBefore: z.ZodNumber;
743
396
  tokensAfter: z.ZodNumber;
744
- }, "strip", z.ZodTypeAny, {
745
- sessionKey: string;
746
- tokensBefore: number;
747
- tokensAfter: number;
748
- namespace?: string | undefined;
749
- }, {
750
- sessionKey: string;
751
- tokensBefore: number;
752
- tokensAfter: number;
753
- namespace?: string | undefined;
754
- }>;
397
+ }, z.core.$strip>;
755
398
  export declare const daySummaryRequestSchema: z.ZodObject<{
756
399
  memories: z.ZodOptional<z.ZodString>;
757
400
  includeLocation: z.ZodOptional<z.ZodBoolean>;
758
401
  sessionKey: z.ZodOptional<z.ZodString>;
759
402
  namespace: z.ZodOptional<z.ZodString>;
760
- timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
761
- }, "strip", z.ZodTypeAny, {
762
- sessionKey?: string | undefined;
763
- namespace?: string | undefined;
764
- memories?: string | undefined;
765
- timeZone?: string | undefined;
766
- includeLocation?: boolean | undefined;
767
- }, {
768
- sessionKey?: string | undefined;
769
- namespace?: string | undefined;
770
- memories?: string | undefined;
771
- timeZone?: string | undefined;
772
- includeLocation?: boolean | undefined;
773
- }>;
403
+ timeZone: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strip>;
774
405
  export declare const capsuleExportRequestSchema: z.ZodObject<{
775
406
  name: z.ZodString;
776
407
  namespace: z.ZodOptional<z.ZodString>;
777
- since: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
778
- includeKinds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
779
- peerIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
408
+ since: z.ZodOptional<z.ZodString>;
409
+ includeKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
+ peerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
780
411
  includeTranscripts: z.ZodOptional<z.ZodBoolean>;
781
412
  encrypt: z.ZodOptional<z.ZodBoolean>;
782
- }, "strip", z.ZodTypeAny, {
783
- name: string;
784
- namespace?: string | undefined;
785
- since?: string | undefined;
786
- includeTranscripts?: boolean | undefined;
787
- includeKinds?: string[] | undefined;
788
- peerIds?: string[] | undefined;
789
- encrypt?: boolean | undefined;
790
- }, {
791
- name: string;
792
- namespace?: string | undefined;
793
- since?: string | undefined;
794
- includeTranscripts?: boolean | undefined;
795
- includeKinds?: string[] | undefined;
796
- peerIds?: string[] | undefined;
797
- encrypt?: boolean | undefined;
798
- }>;
413
+ }, z.core.$strip>;
799
414
  export declare const capsuleImportRequestSchema: z.ZodObject<{
800
415
  archivePath: z.ZodString;
801
416
  namespace: z.ZodOptional<z.ZodString>;
802
- mode: z.ZodOptional<z.ZodEnum<["skip", "overwrite", "fork"]>>;
417
+ mode: z.ZodOptional<z.ZodEnum<{
418
+ skip: "skip";
419
+ overwrite: "overwrite";
420
+ fork: "fork";
421
+ }>>;
803
422
  passphrase: z.ZodOptional<z.ZodString>;
804
- }, "strip", z.ZodTypeAny, {
805
- archivePath: string;
806
- mode?: "skip" | "overwrite" | "fork" | undefined;
807
- namespace?: string | undefined;
808
- passphrase?: string | undefined;
809
- }, {
810
- archivePath: string;
811
- mode?: "skip" | "overwrite" | "fork" | undefined;
812
- namespace?: string | undefined;
813
- passphrase?: string | undefined;
814
- }>;
423
+ }, z.core.$strip>;
815
424
  export declare const capsuleListRequestSchema: z.ZodObject<{
816
425
  namespace: z.ZodOptional<z.ZodString>;
817
426
  sessionKey: z.ZodOptional<z.ZodString>;
818
- }, "strip", z.ZodTypeAny, {
819
- sessionKey?: string | undefined;
820
- namespace?: string | undefined;
821
- }, {
822
- sessionKey?: string | undefined;
823
- namespace?: string | undefined;
824
- }>;
427
+ }, z.core.$strip>;
825
428
  export declare const offlineSyncSnapshotRequestSchema: z.ZodObject<{
826
429
  namespace: z.ZodOptional<z.ZodString>;
827
430
  includeTranscripts: z.ZodOptional<z.ZodBoolean>;
828
431
  includeContent: z.ZodOptional<z.ZodBoolean>;
829
- baseCapturedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
432
+ baseCapturedAt: z.ZodOptional<z.ZodString>;
830
433
  baseFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
831
- path: z.ZodEffects<z.ZodString, string, string>;
434
+ path: z.ZodString;
832
435
  sha256: z.ZodString;
833
436
  bytes: z.ZodNumber;
834
437
  mtimeMs: z.ZodNumber;
835
- }, "strip", z.ZodTypeAny, {
836
- mtimeMs: number;
837
- path: string;
838
- sha256: string;
839
- bytes: number;
840
- }, {
841
- mtimeMs: number;
842
- path: string;
843
- sha256: string;
844
- bytes: number;
845
- }>, "many">>;
846
- }, "strip", z.ZodTypeAny, {
847
- namespace?: string | undefined;
848
- includeTranscripts?: boolean | undefined;
849
- baseFiles?: {
850
- mtimeMs: number;
851
- path: string;
852
- sha256: string;
853
- bytes: number;
854
- }[] | undefined;
855
- includeContent?: boolean | undefined;
856
- baseCapturedAt?: string | undefined;
857
- }, {
858
- namespace?: string | undefined;
859
- includeTranscripts?: boolean | undefined;
860
- baseFiles?: {
861
- mtimeMs: number;
862
- path: string;
863
- sha256: string;
864
- bytes: number;
865
- }[] | undefined;
866
- includeContent?: boolean | undefined;
867
- baseCapturedAt?: string | undefined;
868
- }>;
869
- export declare const offlineSyncApplyRequestSchema: z.ZodEffects<z.ZodObject<{
438
+ }, z.core.$strip>>>;
439
+ }, z.core.$strip>;
440
+ export declare const offlineSyncApplyRequestSchema: z.ZodObject<{
870
441
  namespace: z.ZodOptional<z.ZodString>;
871
- changeset: z.ZodUnknown;
442
+ changeset: z.ZodCustom<unknown, unknown>;
872
443
  returnCurrentFiles: z.ZodOptional<z.ZodBoolean>;
873
- }, "strip", z.ZodTypeAny, {
874
- namespace?: string | undefined;
875
- changeset?: unknown;
876
- returnCurrentFiles?: boolean | undefined;
877
- }, {
878
- namespace?: string | undefined;
879
- changeset?: unknown;
880
- returnCurrentFiles?: boolean | undefined;
881
- }>, {
882
- namespace?: string | undefined;
883
- changeset?: unknown;
884
- returnCurrentFiles?: boolean | undefined;
885
- }, {
886
- namespace?: string | undefined;
887
- changeset?: unknown;
888
- returnCurrentFiles?: boolean | undefined;
889
- }>;
444
+ }, z.core.$strip>;
890
445
  export declare const offlineSyncFilesRequestSchema: z.ZodObject<{
891
446
  namespace: z.ZodOptional<z.ZodString>;
892
447
  includeTranscripts: z.ZodOptional<z.ZodBoolean>;
893
- paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
894
- }, "strip", z.ZodTypeAny, {
895
- paths: string[];
896
- namespace?: string | undefined;
897
- includeTranscripts?: boolean | undefined;
898
- }, {
899
- paths: string[];
900
- namespace?: string | undefined;
901
- includeTranscripts?: boolean | undefined;
902
- }>;
448
+ paths: z.ZodArray<z.ZodString>;
449
+ }, z.core.$strip>;
903
450
  export declare const offlineSyncFileContentRequestSchema: z.ZodObject<{
904
451
  namespace: z.ZodOptional<z.ZodString>;
905
452
  includeTranscripts: z.ZodOptional<z.ZodBoolean>;
906
- path: z.ZodEffects<z.ZodString, string, string>;
453
+ path: z.ZodString;
907
454
  offset: z.ZodOptional<z.ZodNumber>;
908
455
  length: z.ZodOptional<z.ZodNumber>;
909
- }, "strip", z.ZodTypeAny, {
910
- path: string;
911
- length?: number | undefined;
912
- namespace?: string | undefined;
913
- offset?: number | undefined;
914
- includeTranscripts?: boolean | undefined;
915
- }, {
916
- path: string;
917
- length?: number | undefined;
918
- namespace?: string | undefined;
919
- offset?: number | undefined;
920
- includeTranscripts?: boolean | undefined;
921
- }>;
456
+ }, z.core.$strip>;
922
457
  export declare const actionConfidenceRequestSchema: z.ZodObject<{
923
- intendedAction: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
924
- confidence: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>;
925
- risk: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "irreversible", "restricted"]>>>, NonNullable<"high" | "low" | "medium" | "irreversible" | "restricted"> | undefined, "high" | "low" | "medium" | "irreversible" | "restricted" | null | undefined>;
926
- contextReadiness: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "partial", "sufficient"]>>>, NonNullable<"partial" | "none" | "sufficient"> | undefined, "partial" | "none" | "sufficient" | null | undefined>;
927
- currentContextScopes: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
928
- userRules: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
929
- kind: z.ZodEnum<["ask-before", "do-not-use-outside-this-context", "never", "requires-escalation"]>;
930
- description: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
931
- matched: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
932
- }, "strict", z.ZodTypeAny, {
458
+ intendedAction: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
459
+ confidence: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodNumber>, z.ZodTransform<number | undefined, number | null>>>;
460
+ risk: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodEnum<{
461
+ high: "high";
462
+ low: "low";
463
+ medium: "medium";
464
+ irreversible: "irreversible";
465
+ restricted: "restricted";
466
+ }>>, z.ZodTransform<NonNullable<"high" | "low" | "medium" | "irreversible" | "restricted"> | undefined, "high" | "low" | "medium" | "irreversible" | "restricted" | null>>>;
467
+ contextReadiness: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodEnum<{
468
+ partial: "partial";
469
+ none: "none";
470
+ sufficient: "sufficient";
471
+ }>>, z.ZodTransform<NonNullable<"partial" | "none" | "sufficient"> | undefined, "partial" | "none" | "sufficient" | null>>>;
472
+ currentContextScopes: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | null>>>;
473
+ userRules: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
474
+ kind: z.ZodEnum<{
475
+ never: "never";
476
+ "do-not-use-outside-this-context": "do-not-use-outside-this-context";
477
+ "ask-before": "ask-before";
478
+ "requires-escalation": "requires-escalation";
479
+ }>;
480
+ description: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
481
+ matched: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodBoolean>, z.ZodTransform<boolean | undefined, boolean | null>>>;
482
+ }, z.core.$strict>>>, z.ZodTransform<{
933
483
  kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
934
484
  description?: string | undefined;
935
485
  matched?: boolean | undefined;
936
- }, {
937
- kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
938
- description?: string | null | undefined;
939
- matched?: boolean | null | undefined;
940
- }>, "many">>>, {
486
+ }[] | undefined, {
941
487
  kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
942
488
  description?: string | undefined;
943
489
  matched?: boolean | undefined;
944
- }[] | undefined, {
945
- kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
946
- description?: string | null | undefined;
947
- matched?: boolean | null | undefined;
948
- }[] | null | undefined>;
949
- retrievedMemories: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
950
- source: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
951
- created: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
952
- updated: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
953
- scope: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
954
- userContextScopes: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
955
- retrievalReason: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
956
- confidence: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number | undefined, number | null | undefined>;
957
- stale: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
958
- corrected: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
959
- correctionState: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "correction", "superseded", "disputed", "forgotten"]>>>, NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined, "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined>;
960
- safeToUse: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
961
- safety: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["safe", "requires-review", "blocked"]>>>, NonNullable<"safe" | "requires-review" | "blocked"> | undefined, "safe" | "requires-review" | "blocked" | null | undefined>;
962
- safetyReasons: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
963
- }, "strict", z.ZodTypeAny, {
490
+ }[] | null>>>;
491
+ retrievedMemories: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
492
+ source: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
493
+ created: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
494
+ updated: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
495
+ scope: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
496
+ userContextScopes: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | null>>>;
497
+ retrievalReason: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
498
+ confidence: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodNumber>, z.ZodTransform<number | undefined, number | null>>>;
499
+ stale: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodBoolean>, z.ZodTransform<boolean | undefined, boolean | null>>>;
500
+ corrected: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodBoolean>, z.ZodTransform<boolean | undefined, boolean | null>>>;
501
+ correctionState: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodEnum<{
502
+ superseded: "superseded";
503
+ forgotten: "forgotten";
504
+ correction: "correction";
505
+ none: "none";
506
+ disputed: "disputed";
507
+ }>>, z.ZodTransform<NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined, "superseded" | "forgotten" | "correction" | "none" | "disputed" | null>>>;
508
+ safeToUse: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodBoolean>, z.ZodTransform<boolean | undefined, boolean | null>>>;
509
+ safety: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodEnum<{
510
+ safe: "safe";
511
+ "requires-review": "requires-review";
512
+ blocked: "blocked";
513
+ }>>, z.ZodTransform<NonNullable<"safe" | "requires-review" | "blocked"> | undefined, "safe" | "requires-review" | "blocked" | null>>>;
514
+ safetyReasons: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | null>>>;
515
+ }, z.core.$strict>>>, z.ZodTransform<{
964
516
  source?: string | undefined;
965
- stale?: boolean | undefined;
966
517
  created?: string | undefined;
967
518
  updated?: string | undefined;
968
519
  scope?: string | undefined;
969
- confidence?: number | undefined;
970
- retrievalReason?: string | undefined;
971
- safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
972
- safeToUse?: boolean | undefined;
973
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
974
- corrected?: boolean | undefined;
975
- safetyReasons?: string[] | undefined;
976
520
  userContextScopes?: string[] | undefined;
977
- }, {
978
- source?: string | null | undefined;
979
- stale?: boolean | null | undefined;
980
- created?: string | null | undefined;
981
- updated?: string | null | undefined;
982
- scope?: string | null | undefined;
983
- confidence?: number | null | undefined;
984
- retrievalReason?: string | null | undefined;
985
- safety?: "safe" | "requires-review" | "blocked" | null | undefined;
986
- safeToUse?: boolean | null | undefined;
987
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
988
- corrected?: boolean | null | undefined;
989
- safetyReasons?: string[] | null | undefined;
990
- userContextScopes?: string[] | null | undefined;
991
- }>, "many">>>, {
992
- source?: string | undefined;
993
- stale?: boolean | undefined;
994
- created?: string | undefined;
995
- updated?: string | undefined;
996
- scope?: string | undefined;
997
- confidence?: number | undefined;
998
521
  retrievalReason?: string | undefined;
999
- safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
1000
- safeToUse?: boolean | undefined;
1001
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
522
+ confidence?: number | undefined;
523
+ stale?: boolean | undefined;
1002
524
  corrected?: boolean | undefined;
525
+ correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
526
+ safeToUse?: boolean | undefined;
527
+ safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
1003
528
  safetyReasons?: string[] | undefined;
1004
- userContextScopes?: string[] | undefined;
1005
529
  }[] | undefined, {
1006
- source?: string | null | undefined;
1007
- stale?: boolean | null | undefined;
1008
- created?: string | null | undefined;
1009
- updated?: string | null | undefined;
1010
- scope?: string | null | undefined;
1011
- confidence?: number | null | undefined;
1012
- retrievalReason?: string | null | undefined;
1013
- safety?: "safe" | "requires-review" | "blocked" | null | undefined;
1014
- safeToUse?: boolean | null | undefined;
1015
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
1016
- corrected?: boolean | null | undefined;
1017
- safetyReasons?: string[] | null | undefined;
1018
- userContextScopes?: string[] | null | undefined;
1019
- }[] | null | undefined>;
1020
- }, "strict", z.ZodTypeAny, {
1021
- confidence?: number | undefined;
1022
- currentContextScopes?: string[] | undefined;
1023
- intendedAction?: string | undefined;
1024
- risk?: NonNullable<"high" | "low" | "medium" | "irreversible" | "restricted"> | undefined;
1025
- contextReadiness?: NonNullable<"partial" | "none" | "sufficient"> | undefined;
1026
- userRules?: {
1027
- kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
1028
- description?: string | undefined;
1029
- matched?: boolean | undefined;
1030
- }[] | undefined;
1031
- retrievedMemories?: {
1032
530
  source?: string | undefined;
1033
- stale?: boolean | undefined;
1034
531
  created?: string | undefined;
1035
532
  updated?: string | undefined;
1036
533
  scope?: string | undefined;
1037
- confidence?: number | undefined;
534
+ userContextScopes?: string[] | undefined;
1038
535
  retrievalReason?: string | undefined;
1039
- safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
1040
- safeToUse?: boolean | undefined;
1041
- correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
536
+ confidence?: number | undefined;
537
+ stale?: boolean | undefined;
1042
538
  corrected?: boolean | undefined;
539
+ correctionState?: NonNullable<"superseded" | "forgotten" | "correction" | "none" | "disputed"> | undefined;
540
+ safeToUse?: boolean | undefined;
541
+ safety?: NonNullable<"safe" | "requires-review" | "blocked"> | undefined;
1043
542
  safetyReasons?: string[] | undefined;
1044
- userContextScopes?: string[] | undefined;
1045
- }[] | undefined;
1046
- }, {
1047
- confidence?: number | null | undefined;
1048
- currentContextScopes?: string[] | null | undefined;
1049
- intendedAction?: string | null | undefined;
1050
- risk?: "high" | "low" | "medium" | "irreversible" | "restricted" | null | undefined;
1051
- contextReadiness?: "partial" | "none" | "sufficient" | null | undefined;
1052
- userRules?: {
1053
- kind: "never" | "do-not-use-outside-this-context" | "ask-before" | "requires-escalation";
1054
- description?: string | null | undefined;
1055
- matched?: boolean | null | undefined;
1056
- }[] | null | undefined;
1057
- retrievedMemories?: {
1058
- source?: string | null | undefined;
1059
- stale?: boolean | null | undefined;
1060
- created?: string | null | undefined;
1061
- updated?: string | null | undefined;
1062
- scope?: string | null | undefined;
1063
- confidence?: number | null | undefined;
1064
- retrievalReason?: string | null | undefined;
1065
- safety?: "safe" | "requires-review" | "blocked" | null | undefined;
1066
- safeToUse?: boolean | null | undefined;
1067
- correctionState?: "superseded" | "forgotten" | "correction" | "none" | "disputed" | null | undefined;
1068
- corrected?: boolean | null | undefined;
1069
- safetyReasons?: string[] | null | undefined;
1070
- userContextScopes?: string[] | null | undefined;
1071
- }[] | null | undefined;
1072
- }>;
543
+ }[] | null>>>;
544
+ }, z.core.$strict>;
1073
545
  export type RecallRequest = z.infer<typeof recallRequestSchema>;
1074
546
  export type RecallExplainRequest = z.infer<typeof recallExplainRequestSchema>;
1075
547
  export type SetCodingContextRequest = z.infer<typeof setCodingContextRequestSchema>;