@makaio/framework 1.0.0-dev-1783977266352 → 1.0.0-dev-1784154668798

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 (326) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/claude/index.d.mts +8192 -0
  3. package/dist/adapters/claude/index.mjs +3 -0
  4. package/dist/adapters/claude/testing.d.mts +17 -0
  5. package/dist/adapters/claude/testing.mjs +1 -0
  6. package/dist/adapters/config/index.d.mts +2 -2
  7. package/dist/adapters/config/index.mjs +1 -1
  8. package/dist/adapters/index.d.mts +2 -2
  9. package/dist/adapters/index.mjs +3 -3
  10. package/dist/adapters/node.d.mts +1 -1
  11. package/dist/adapters/node.mjs +1 -1
  12. package/dist/{artifact-CGjnoyCC.mjs → artifact-Dnpy5ei_.mjs} +1 -1
  13. package/dist/{authority-state-bootstrap-CEuKScnL.mjs → authority-state-bootstrap-BlbmQ9A5.mjs} +1 -1
  14. package/dist/bus/index.mjs +1 -1
  15. package/dist/clients/index.d.mts +1 -1
  16. package/dist/clients/index.mjs +1 -1
  17. package/dist/clients/managed-install.d.mts +1 -1
  18. package/dist/clients/managed-install.mjs +1 -1
  19. package/dist/context-resolution-D5jHK1w-.d.mts +1268 -0
  20. package/dist/contracts/adapter/index.d.mts +2 -2
  21. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  22. package/dist/contracts/artifact/index.d.mts +2 -1
  23. package/dist/contracts/artifact/index.mjs +1 -1
  24. package/dist/contracts/auth/index.d.mts +2 -2
  25. package/dist/contracts/canonical-model/index.d.mts +1 -1
  26. package/dist/contracts/client/index.d.mts +2 -2
  27. package/dist/contracts/common/index.d.mts +1 -1
  28. package/dist/contracts/config/index.d.mts +1 -1
  29. package/dist/contracts/extension/index.d.mts +3 -3
  30. package/dist/contracts/facet/index.d.mts +1 -1
  31. package/dist/contracts/harness/index.d.mts +1 -1
  32. package/dist/contracts/host/index.d.mts +1 -1
  33. package/dist/contracts/index.d.mts +68 -68
  34. package/dist/contracts/index.mjs +1 -1
  35. package/dist/contracts/materialization/index.d.mts +4 -4
  36. package/dist/contracts/materialization/index.mjs +1 -1
  37. package/dist/contracts/model-registry/index.d.mts +1 -1
  38. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  39. package/dist/contracts/platform/index.d.mts +1 -1
  40. package/dist/contracts/provider/index.d.mts +2 -2
  41. package/dist/contracts/session/index.d.mts +2 -2
  42. package/dist/contracts/shared/index.d.mts +2 -2
  43. package/dist/contracts/skill/index.d.mts +1 -1
  44. package/dist/contracts/telemetry/index.d.mts +1 -1
  45. package/dist/contracts/timeout/index.d.mts +1 -1
  46. package/dist/contracts/variant/index.d.mts +1 -1
  47. package/dist/contracts/workflow/index.d.mts +2 -2
  48. package/dist/contracts/workflow/index.mjs +1 -1
  49. package/dist/{detached-extension-handle-vDK194QV.mjs → detached-extension-handle-BVM-Ic-4.mjs} +1 -1
  50. package/dist/{filesystem-service-maY_P3yA.mjs → filesystem-service-qR9Zy5-r.mjs} +1 -1
  51. package/dist/git/index.mjs +1 -1
  52. package/dist/{globby-CisClzat.mjs → globby-DE358g5u.mjs} +1 -1
  53. package/dist/{index-C6LZOiDv.d.mts → index-B96HlWaM.d.mts} +1 -1
  54. package/dist/{index-BrAp9ntB.d.mts → index-BM7u_OTo.d.mts} +35 -35
  55. package/dist/{index-DMQlLz2W.d.mts → index-BPBSMsc8.d.mts} +15 -15
  56. package/dist/{index-j2YlW_Fc.d.mts → index-B_KmL_z8.d.mts} +1 -1
  57. package/dist/{index-CSxfU0tB.d.mts → index-BdsuBxEz.d.mts} +4 -4
  58. package/dist/{index-MTvmxwiu2.d.mts → index-CSyR9Fie2.d.mts} +3 -3
  59. package/dist/{index-CagRgpXI2.d.mts → index-ChB3K_a12.d.mts} +1 -1
  60. package/dist/{index-Cx8jGKOs.d.mts → index-CrbFA2kp.d.mts} +4 -4
  61. package/dist/{index-BxuiHVFi.d.mts → index-DA5S_dj8.d.mts} +1 -1
  62. package/dist/{index-2PsDAhPN.d.mts → index-DE29b4QM.d.mts} +8 -8
  63. package/dist/{index-BXWTilGs.d.mts → index-DHejCnq8.d.mts} +3 -3
  64. package/dist/{index-Cq6rXKae.d.mts → index-D_lLZ2dU.d.mts} +3 -3
  65. package/dist/{index-D3Eek6kd.d.mts → index-DoJRv-c3.d.mts} +230 -1116
  66. package/dist/{index-D75FnT0B.d.mts → index-TWs1TQ2-.d.mts} +1 -1
  67. package/dist/index-XzetMf0e.d.mts +817 -0
  68. package/dist/{index-CHjKP5G0.d.mts → index-ZGPSCZdC.d.mts} +23 -10
  69. package/dist/kernel/cli/index.d.mts +2 -2
  70. package/dist/kernel/cli/register.d.mts +1 -1
  71. package/dist/kernel/extension/index.d.mts +1 -1
  72. package/dist/kernel/index.d.mts +5 -5
  73. package/dist/kernel/namespace/index.d.mts +1 -1
  74. package/dist/kernel/observability/index.d.mts +1 -1
  75. package/dist/kernel/providers/index.d.mts +1 -1
  76. package/dist/kernel/window/index.d.mts +1 -1
  77. package/dist/{lib-DktBDEoY.mjs → lib-6P8_sBCe.mjs} +1 -1
  78. package/dist/{lib-DIVnpS8e.mjs → lib-DhbCgfYD.mjs} +1 -1
  79. package/dist/{load-extensions-nqL5WAKj.mjs → load-extensions-5VckHXuw.mjs} +1 -1
  80. package/dist/{load-extensions-_EnedkUp.d.mts → load-extensions-jGQgvw6Z.d.mts} +1 -1
  81. package/dist/materialization-BBxXhthv.mjs +1 -0
  82. package/dist/mcp-http-server/index.mjs +1 -1
  83. package/dist/node/bus-server/index.d.mts +1 -1
  84. package/dist/node/bus-server/index.mjs +1 -1
  85. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  86. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  87. package/dist/{package-CsFFT9iR.mjs → package-Brt4dhRC.mjs} +1 -1
  88. package/dist/package.json +1 -1
  89. package/dist/packages-BBJsifai.d.mts +532 -0
  90. package/dist/packages-I0D3JP9L.mjs +1 -0
  91. package/dist/rules/index.d.mts +1 -1
  92. package/dist/rules/index.mjs +1 -1
  93. package/dist/rules/schemas.d.mts +1 -1
  94. package/dist/runtime-bun/index.mjs +1 -1
  95. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  96. package/dist/runtime-node/extension-validation.d.mts +1 -1
  97. package/dist/runtime-node/extension-validation.mjs +1 -1
  98. package/dist/runtime-node/index.d.mts +3 -3
  99. package/dist/runtime-node/index.mjs +23 -23
  100. package/dist/runtime-node/makaio-config.d.mts +1 -1
  101. package/dist/runtime-node/makaio-config.mjs +1 -1
  102. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  103. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  104. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  105. package/dist/schemas-6H-dlMrB.mjs +1 -0
  106. package/dist/services/adapter-runtime/index.d.mts +3 -3
  107. package/dist/services/adapter-runtime/index.mjs +1 -1
  108. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  109. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  110. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  111. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  112. package/dist/services/agent-runtime/index.d.mts +2 -2
  113. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  114. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  115. package/dist/services/capability/index.d.mts +1 -1
  116. package/dist/services/capability/index.mjs +1 -1
  117. package/dist/services/codebase/index.d.mts +2 -2
  118. package/dist/services/codebase/namespace.d.mts +1 -1
  119. package/dist/services/codebase/schemas.d.mts +1 -1
  120. package/dist/services/compression/index.d.mts +2 -2
  121. package/dist/services/compression/namespace.d.mts +1 -1
  122. package/dist/services/compression/schemas.d.mts +1 -1
  123. package/dist/services/context-rules/index.d.mts +4 -4
  124. package/dist/services/context-rules/index.mjs +1 -1
  125. package/dist/services/execution-target/index.d.mts +3 -3
  126. package/dist/services/execution-target/index.mjs +1 -1
  127. package/dist/services/execution-target/namespace.d.mts +1 -1
  128. package/dist/services/execution-target/schemas.d.mts +1 -1
  129. package/dist/services/filesystem/index.d.mts +1 -1
  130. package/dist/services/filesystem/index.mjs +1 -1
  131. package/dist/services/git/namespace.d.mts +2 -2
  132. package/dist/services/git/namespace.mjs +1 -1
  133. package/dist/services/git/schemas.d.mts +1 -1
  134. package/dist/services/git/schemas.mjs +1 -1
  135. package/dist/services/harness/index.d.mts +3 -3
  136. package/dist/services/harness/index.mjs +1 -1
  137. package/dist/services/index.d.mts +46 -295
  138. package/dist/services/index.mjs +1 -1
  139. package/dist/services/log-import/browser.d.mts +2 -2
  140. package/dist/services/log-import/index.d.mts +2 -2
  141. package/dist/services/log-import/log-import.d.mts +1 -1
  142. package/dist/services/log-import/log-import.mjs +1 -1
  143. package/dist/services/log-import/namespace.mjs +1 -1
  144. package/dist/services/log-import/schemas.mjs +1 -1
  145. package/dist/services/materialization/index.d.mts +76 -0
  146. package/dist/services/materialization/index.mjs +1 -0
  147. package/dist/services/model-registry/index.d.mts +1 -1
  148. package/dist/services/model-registry/index.mjs +1 -1
  149. package/dist/services/preferences/index.d.mts +2 -2
  150. package/dist/services/preferences/schemas.d.mts +1 -1
  151. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  152. package/dist/services/provider-context/index.d.mts +1 -1
  153. package/dist/services/provider-runtime/index.mjs +1 -1
  154. package/dist/services/session/handlers/index.d.mts +1 -1
  155. package/dist/services/session/index.d.mts +9 -9
  156. package/dist/services/session/messages/namespace.d.mts +1 -1
  157. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  158. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  159. package/dist/services/session/session-events/namespace.d.mts +1 -1
  160. package/dist/services/session/storage/namespace.d.mts +1 -1
  161. package/dist/services/session/storage/schema.d.mts +1 -1
  162. package/dist/services/session/testing/index.mjs +1 -1
  163. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  164. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  165. package/dist/services/session/turns/namespace.d.mts +1 -1
  166. package/dist/services/session-editor/index.d.mts +1 -1
  167. package/dist/services/settings/index.d.mts +3 -3
  168. package/dist/services/settings/namespace.mjs +1 -1
  169. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  170. package/dist/services/settings/storage/index.d.mts +3 -3
  171. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  172. package/dist/services/subagent/index.d.mts +1 -1
  173. package/dist/services/subagent/index.mjs +1 -1
  174. package/dist/services/subagent-template/index.d.mts +2 -2
  175. package/dist/services/subagent-template/namespace.d.mts +1 -1
  176. package/dist/services/subagent-template/schemas.d.mts +1 -1
  177. package/dist/services/tool-approval/index.d.mts +1 -1
  178. package/dist/services/tool-approval/index.mjs +1 -1
  179. package/dist/services/tools/index.d.mts +1 -1
  180. package/dist/services/tools/index.mjs +1 -1
  181. package/dist/services/tray-menu/index.d.mts +3 -3
  182. package/dist/services/tray-menu/index.mjs +1 -1
  183. package/dist/services/tray-menu/namespace.d.mts +1 -1
  184. package/dist/services/tray-menu/schemas.d.mts +1 -1
  185. package/dist/services/turn/index.d.mts +1 -1
  186. package/dist/services/turn/namespace.d.mts +1 -1
  187. package/dist/{session-lineage-YShrn77v.d.mts → session-lineage-CWlcOKBZ.d.mts} +1 -1
  188. package/dist/{src-Bo2eA51B.mjs → src-T5DtFSyU.mjs} +1 -1
  189. package/dist/storage/drizzle/client.d.mts +1 -1
  190. package/dist/storage/drizzle/client.mjs +1 -1
  191. package/dist/storage/drizzle/index.d.mts +1 -1
  192. package/dist/storage/drizzle/index.mjs +1 -1
  193. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  194. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  195. package/dist/storage/handlers/index.d.mts +1 -1
  196. package/dist/storage/handlers/index.mjs +1 -1
  197. package/dist/tools-CWSuNk-M.mjs +1 -0
  198. package/dist/{transition-DjipYcC3.d.mts → transition-CukPcOG5.d.mts} +2 -2
  199. package/dist/{types-B-xY9WW2.d.mts → types-Be7wY1De.d.mts} +1 -1
  200. package/dist/{types-DQsYUZwa.d.mts → types-DiZJnwN0.d.mts} +2 -2
  201. package/dist/ui-components/index.d.mts +4 -4
  202. package/dist/ui-kernel/index.d.mts +1 -1
  203. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  204. package/dist/utils/index.d.mts +20 -1
  205. package/dist/utils/index.mjs +2 -2
  206. package/dist/view-builder-DQiA4wDH.d.mts +618 -0
  207. package/dist/{workflow-DFJYGjq_.mjs → workflow-DPeE6-Ta.mjs} +1 -1
  208. package/dist/workflow-engine/index.d.mts +25 -25
  209. package/dist/workflow-engine/index.mjs +1 -1
  210. package/dist/workflow-engine/package.d.mts +1 -1
  211. package/dist/workflow-engine/package.mjs +1 -1
  212. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  213. package/dist/{workflow-worker-BEFjCccX.mjs → workflow-worker-CPCh68Qf.mjs} +1 -1
  214. package/package.json +10 -2
  215. package/dist/definition-D7qCBmtc.d.mts +0 -60
  216. package/dist/index-CidblQAY.d.mts +0 -355
  217. package/dist/materialization-BwTORtBr.mjs +0 -1
  218. package/dist/schemas-DlCdlCEF.d.mts +0 -153
  219. package/dist/schemas-DlrQ0227.mjs +0 -1
  220. package/dist/tools-PC_L6g2m.mjs +0 -1
  221. /package/dist/{adapter-auth-runtime-a4O7cSNP.mjs → adapter-auth-runtime-CotG_6M4.mjs} +0 -0
  222. /package/dist/{adapter-binding-DDUyv1JK.d.mts → adapter-binding-DQ1HrGcH.d.mts} +0 -0
  223. /package/dist/{ajv-DfHhgdS5.mjs → ajv-WvFKnw8d.mjs} +0 -0
  224. /package/dist/{await-trigger-DP-fTQc4.mjs → await-trigger-COHFNyNi.mjs} +0 -0
  225. /package/dist/{base-orchestrator-BiShpVKL.d.mts → base-orchestrator-p3zIcnaJ.d.mts} +0 -0
  226. /package/dist/{capability-service-Dg2bU8qc.mjs → capability-service-TCOwWrLi.mjs} +0 -0
  227. /package/dist/{client-DmJwprw1.d.mts → client-CGEyBWKl.d.mts} +0 -0
  228. /package/dist/{client-binary-version-verifier-BK_vIjIo.mjs → client-binary-version-verifier-CaFlNNjs.mjs} +0 -0
  229. /package/dist/{client-binary-version-verifier-BwrMTAh2.d.mts → client-binary-version-verifier-WsNRplFB.d.mts} +0 -0
  230. /package/dist/{clients-namespace-B96QIJOs.d.mts → clients-namespace-ClKm1GLT.d.mts} +0 -0
  231. /package/dist/{config-namespace-x0fuhEXe.d.mts → config-namespace-DOw8R5eb.d.mts} +0 -0
  232. /package/dist/{create-static-mount-CBTXRtbN.mjs → create-static-mount-DM9qO98Q.mjs} +0 -0
  233. /package/dist/{cross-spawn-D9WWFl2a.mjs → cross-spawn-CVfmnMVP.mjs} +0 -0
  234. /package/dist/{cursor-storage-Bw-7ROzx.mjs → cursor-storage-BoFVjVGq.mjs} +0 -0
  235. /package/dist/{definition-BsTlOz99.d.mts → definition-BZrouYAq.d.mts} +0 -0
  236. /package/dist/{definition-Cbl0k6Fc.d.mts → definition-ClKlXenJ.d.mts} +0 -0
  237. /package/dist/{descriptor-to-package-Rs-OjOQU.mjs → descriptor-to-package-DCwvJoUE.mjs} +0 -0
  238. /package/dist/{drizzle-DYfaDzlO.mjs → drizzle-BQDvlDL2.mjs} +0 -0
  239. /package/dist/{esm-C_WW4-pP.mjs → esm-1UzF2r1U.mjs} +0 -0
  240. /package/dist/{event-DTM0-qWP.mjs → event-Ddxe4yp9.mjs} +0 -0
  241. /package/dist/{execution-target-Bg2wpfML.mjs → execution-target-D6PoGaO8.mjs} +0 -0
  242. /package/dist/{extension-discovery-APMf1Tes.d.mts → extension-discovery-Cce4FmRu.d.mts} +0 -0
  243. /package/dist/{filesystem-service-Bx0bR2Lb.d.mts → filesystem-service-CWBzOEAA.d.mts} +0 -0
  244. /package/dist/{handler-4pKQi3eo.mjs → handler-Bxs0moLY.mjs} +0 -0
  245. /package/dist/{identity-2qUT1NME.mjs → identity-D481xSkS.mjs} +0 -0
  246. /package/dist/{index-FDyqQIt5.d.mts → index-4b-ig5Uf.d.mts} +0 -0
  247. /package/dist/{index-Bv9lm0Kf.d.mts → index-BOlzcjwS.d.mts} +0 -0
  248. /package/dist/{index-S-mAqWwq.d.mts → index-BRdPSBFH2.d.mts} +0 -0
  249. /package/dist/{index-BmsPH78f2.d.mts → index-BcqWLD6J.d.mts} +0 -0
  250. /package/dist/{index-DmuGKvE2.d.mts → index-BfNfKh4y.d.mts} +0 -0
  251. /package/dist/{index-DpZbaS7y.d.mts → index-BoCL9IHT.d.mts} +0 -0
  252. /package/dist/{index-CarbJsC92.d.mts → index-BrvsExEF.d.mts} +0 -0
  253. /package/dist/{index-D0eUQjTU2.d.mts → index-C2PHX5Em.d.mts} +0 -0
  254. /package/dist/{index-BZ_DSGnE.d.mts → index-CNS1jyBU.d.mts} +0 -0
  255. /package/dist/{index-DoLdETfR.d.mts → index-CQco6KNL.d.mts} +0 -0
  256. /package/dist/{index-C18Pn3zP.d.mts → index-ChsmMZmN.d.mts} +0 -0
  257. /package/dist/{index-DwDBa2mb.d.mts → index-D3cH5U0n.d.mts} +0 -0
  258. /package/dist/{index-T96ydgVk.d.mts → index-DAVLhzkq.d.mts} +0 -0
  259. /package/dist/{index-Bbr5LEUc.d.mts → index-DD9inq5h.d.mts} +0 -0
  260. /package/dist/{index-9dISOTLT.d.mts → index-DIAmg04s.d.mts} +0 -0
  261. /package/dist/{index-DlAfs3RD.d.mts → index-DKCFz7dL.d.mts} +0 -0
  262. /package/dist/{index-DvaPrL6C.d.mts → index-DbP0yaRw.d.mts} +0 -0
  263. /package/dist/{index-kqxUXYe7.d.mts → index-Du-AJm69.d.mts} +0 -0
  264. /package/dist/{index-DXBiCH2y.d.mts → index-Dx6P-ajY.d.mts} +0 -0
  265. /package/dist/{index-Rhcr4YNA.d.mts → index-Jec13bI-2.d.mts} +0 -0
  266. /package/dist/{index-BkAKfh4d.d.mts → index-M8rNEeH8.d.mts} +0 -0
  267. /package/dist/{index-DnWZdG6C.d.mts → index-NZ-gfUOw.d.mts} +0 -0
  268. /package/dist/{index-DfVSWBBp.d.mts → index-RtP5Mi4D.d.mts} +0 -0
  269. /package/dist/{index-_zsihEmk.d.mts → index-XLGBNeu0.d.mts} +0 -0
  270. /package/dist/{index-Bd52mmj9.d.mts → index-fFSPF7N0.d.mts} +0 -0
  271. /package/dist/{index-Ctw617Tj.d.mts → index-p1N3ZuqF.d.mts} +0 -0
  272. /package/dist/{json-value-C8duSh9X.d.mts → json-value-BsWNQQbr.d.mts} +0 -0
  273. /package/dist/{jsonl-transport-l5NPcQ_2.mjs → jsonl-transport-B70HQ9l1.mjs} +0 -0
  274. /package/dist/{lib-ClRTNIuz.mjs → lib-C_apP_9s.mjs} +0 -0
  275. /package/dist/{model-registry-C8MInDtX.mjs → model-registry-C3NX834K.mjs} +0 -0
  276. /package/dist/{namespace-HsI0Jbbr.mjs → namespace-B1_egU5J.mjs} +0 -0
  277. /package/dist/{namespace-Dar3O6iT.d.mts → namespace-BTp6-zD8.d.mts} +0 -0
  278. /package/dist/{namespace-BoA6u44C.d.mts → namespace-Bldr5X64.d.mts} +0 -0
  279. /package/dist/{namespace-TLkZRkcU.d.mts → namespace-Bogua97s.d.mts} +0 -0
  280. /package/dist/{namespace-Bl1UhLnK.d.mts → namespace-BqlDkdht2.d.mts} +0 -0
  281. /package/dist/{namespace-DoNigVgx.d.mts → namespace-BwAiuQ2_.d.mts} +0 -0
  282. /package/dist/{namespace-3YVLQ_bM.d.mts → namespace-CU1jSw6E.d.mts} +0 -0
  283. /package/dist/{namespace-CukqFYHf2.d.mts → namespace-C_phrzqu2.d.mts} +0 -0
  284. /package/dist/{namespace-BcDHt-ww.d.mts → namespace-CddQuUvG.d.mts} +0 -0
  285. /package/dist/{namespace-dgNmx9g3.d.mts → namespace-CpSZfHLv.d.mts} +0 -0
  286. /package/dist/{namespace-rO-C2Dgu2.d.mts → namespace-CzZmsumy.d.mts} +0 -0
  287. /package/dist/{namespace-BsEoWXV_.d.mts → namespace-DNgZ_rfi.d.mts} +0 -0
  288. /package/dist/{namespace-VmsT_tLJ.d.mts → namespace-Dzbt8LqQ.d.mts} +0 -0
  289. /package/dist/{namespace-Dvi66QS6.d.mts → namespace-SwgMs4rw.d.mts} +0 -0
  290. /package/dist/{namespace-BhVlHfoO.d.mts → namespace-UCwUrFRx.d.mts} +0 -0
  291. /package/dist/{namespace-Xp9-g_r-.mjs → namespace-kIjqar0Y.mjs} +0 -0
  292. /package/dist/{orchestrator-shared-pxtyNu3W.d.mts → orchestrator-shared-DrEFeZYw.d.mts} +0 -0
  293. /package/dist/{orchestrator-shared-DAkGOu9H.mjs → orchestrator-shared-jYk9mi5C.mjs} +0 -0
  294. /package/dist/{out-BB6Kb4Xu.mjs → out-B6fO6go6.mjs} +0 -0
  295. /package/dist/{package-BYpWkSuQ.mjs → package-3cW8oIkI.mjs} +0 -0
  296. /package/dist/{package-DG9GSY8M.d.mts → package-BVm1EakP.d.mts} +0 -0
  297. /package/dist/{providers-namespace-O4de1tgO.d.mts → providers-namespace-Bl3M8Ibo.d.mts} +0 -0
  298. /package/dist/{quick-lru-BLaSzINB.mjs → quick-lru-Coxb6GVa.mjs} +0 -0
  299. /package/dist/{registry-TJjQgTgp.mjs → registry-ElIHcMM2.mjs} +0 -0
  300. /package/dist/{schema-CxN7d_MU.d.mts → schema-DOPEco97.d.mts} +0 -0
  301. /package/dist/{schemas-9QJf1FtS.d.mts → schemas-B3K1ekm7.d.mts} +0 -0
  302. /package/dist/{schemas-jDRSOXJL.d.mts → schemas-BKgUDm_a2.d.mts} +0 -0
  303. /package/dist/{schemas-OaBqeEUT.d.mts → schemas-BLJ2k226.d.mts} +0 -0
  304. /package/dist/{schemas-XRhqOgVE.d.mts → schemas-CVbfHPw-.d.mts} +0 -0
  305. /package/dist/{schemas-CIO03KSD2.d.mts → schemas-Ca3BLPH5.d.mts} +0 -0
  306. /package/dist/{schemas-CLsbsX1W.d.mts → schemas-CzT0LApM.d.mts} +0 -0
  307. /package/dist/{schemas-D_9X_CRo.d.mts → schemas-DPosZWw-.d.mts} +0 -0
  308. /package/dist/{schemas-fRLDhefF.d.mts → schemas-D_H0ztxl.d.mts} +0 -0
  309. /package/dist/{schemas-qpo1Goit.d.mts → schemas-DfZ85CRF2.d.mts} +0 -0
  310. /package/dist/{schemas-K3Td_WdR.d.mts → schemas-Dq_g7Giu.d.mts} +0 -0
  311. /package/dist/{schemas-DwfTUQIa.mjs → schemas-FiDj_kLq.mjs} +0 -0
  312. /package/dist/{schemas-qt5QTjVc.d.mts → schemas-pl0mzEtO.d.mts} +0 -0
  313. /package/dist/{server-lifecycle-D-jxVr_0.mjs → server-lifecycle-DLdh0-4H.mjs} +0 -0
  314. /package/dist/{server-lifecycle-r5Tkk8bU.d.mts → server-lifecycle-DzO3rjKP.d.mts} +0 -0
  315. /package/dist/{src-Ci_WY9uw.mjs → src-Dqa1n_kI.mjs} +0 -0
  316. /package/dist/{storage-namespace-BzE2M4Hq.mjs → storage-namespace-B1_x8Ho2.mjs} +0 -0
  317. /package/dist/{storage-namespace-DWKFqEW-.d.mts → storage-namespace-D4yQ--Sp.d.mts} +0 -0
  318. /package/dist/{storage-namespace-definition-BZJGSaX3.d.mts → storage-namespace-definition-BzSaRLtZ.d.mts} +0 -0
  319. /package/dist/{supports-color-Dzp6WuF5.mjs → supports-color-CCdGjFUY.mjs} +0 -0
  320. /package/dist/{tool-approval-service-Dh0XI21f.mjs → tool-approval-service-BgSn_6NT.mjs} +0 -0
  321. /package/dist/{tray-menu-service-Bonl2KXf.mjs → tray-menu-service-BJ9r7IY3.mjs} +0 -0
  322. /package/dist/{types-BCW9kr4L.d.mts → types-B9QOZAZ5.d.mts} +0 -0
  323. /package/dist/{types-DWNoZ3Sd.d.mts → types-Bgb8eQkd.d.mts} +0 -0
  324. /package/dist/{types-DvKaEOOn.d.mts → types-C8_OhAFv.d.mts} +0 -0
  325. /package/dist/{types-CrJ7KEZ0.d.mts → types-Diu9uAnB.d.mts} +0 -0
  326. /package/dist/{window-registry-WsWu-rcK.d.mts → window-registry-CHv3cgSN.d.mts} +0 -0
@@ -1,833 +1,9 @@
1
- import { r as ArtifactProjectionPolicy$1 } from "./schemas-DlCdlCEF.mjs";
1
+ import { G as ArtifactRepresentations, L as ArtifactRef$1, U as ArtifactRelationTarget, Y as ArtifactScope, a as ResolvedArtifactContextWire$1, j as ArtifactObservation$1, k as ArtifactKindRegistration$1, l as ArtifactProjectionPolicy$1, q as ArtifactRevision$1, r as ArtifactContextUnresolvedReason, x as ArtifactActor, z as ArtifactRelation } from "./context-resolution-D5jHK1w-.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_core0 from "@makaio/framework/core";
4
4
  import { MakaioBusLike } from "@makaio/framework/core";
5
5
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
6
6
 
7
- //#region core/contracts/src/artifact/schemas.d.ts
8
- /**
9
- * Identifies the actor (agent, user, system) that produced or asserted
10
- * an artifact revision or confidence basis.
11
- */
12
- declare const ArtifactActorSchema: z.ZodObject<{
13
- kind: z.ZodString;
14
- id: z.ZodString;
15
- displayName: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>;
17
- /**
18
- * Describes the scope at which an artifact revision is relevant.
19
- *
20
- * `level` is an open string (e.g. `'session'`, `'project'`, `'global'`)
21
- * so that product-owned kinds can declare domain-specific scope levels
22
- * without modifying the framework contract.
23
- *
24
- * `ids` carries the scope-identifying foreign keys when `level` names a
25
- * concrete artifact owner. Query filters use {@link ArtifactQueryScopeSchema}
26
- * because level-only queries are valid there but not for persisted revisions.
27
- */
28
- declare const ArtifactScopeSchema: z.ZodObject<{
29
- level: z.ZodString;
30
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
- }, z.core.$strip>;
32
- /**
33
- * Scope filter for artifact queries.
34
- *
35
- * Unlike persisted artifact scopes, query scopes may be level-only to request
36
- * all revisions at a level, e.g. `{ level: 'session' }`.
37
- */
38
- declare const ArtifactQueryScopeSchema: z.ZodObject<{
39
- level: z.ZodString;
40
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41
- }, z.core.$strip>;
42
- /**
43
- * An immutable pointer to a specific revision of an artifact.
44
- *
45
- * All three fields together uniquely identify a persisted snapshot
46
- * and are safe to store as foreign keys.
47
- *
48
- * `refClass` is a literal discriminant that allows {@link ArtifactRelationTargetSchema}
49
- * to use a discriminated union and prevents silent field-stripping when an
50
- * {@link EvidenceRefSchema} carrying a `locator` is parsed against this schema.
51
- */
52
- declare const ArtifactRefSchema: z.ZodObject<{
53
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
54
- kind: z.ZodString;
55
- id: z.ZodString;
56
- revision: z.ZodString;
57
- }, z.core.$strip>;
58
- /**
59
- * A pointer to a named sub-element within a specific artifact revision.
60
- *
61
- * Used when a relation target is a structural part of an artifact rather
62
- * than the artifact itself (e.g. a specific line in a code-review artifact).
63
- *
64
- * `refClass` is a literal discriminant for {@link ArtifactRelationTargetSchema}.
65
- */
66
- declare const LocalRefSchema: z.ZodObject<{
67
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
68
- artifact: z.ZodObject<{
69
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
70
- kind: z.ZodString;
71
- id: z.ZodString;
72
- revision: z.ZodString;
73
- }, z.core.$strip>;
74
- localId: z.ZodString;
75
- }, z.core.$strip>;
76
- /**
77
- * A pointer to external evidence — a source outside the artifact store.
78
- *
79
- * `revision` and `locator` are both optional so callers can supply as
80
- * much precision as is available (e.g. a commit SHA + file path, or just
81
- * a document URL).
82
- *
83
- * `refClass` is a literal discriminant for {@link ArtifactRelationTargetSchema}.
84
- */
85
- declare const EvidenceRefSchema: z.ZodObject<{
86
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
87
- kind: z.ZodString;
88
- id: z.ZodString;
89
- revision: z.ZodOptional<z.ZodString>;
90
- locator: z.ZodOptional<z.ZodString>;
91
- }, z.core.$strip>;
92
- declare const ArtifactRelationTargetSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
93
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
94
- kind: z.ZodString;
95
- id: z.ZodString;
96
- revision: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
99
- artifact: z.ZodObject<{
100
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
101
- kind: z.ZodString;
102
- id: z.ZodString;
103
- revision: z.ZodString;
104
- }, z.core.$strip>;
105
- localId: z.ZodString;
106
- }, z.core.$strip>, z.ZodObject<{
107
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
108
- kind: z.ZodString;
109
- id: z.ZodString;
110
- revision: z.ZodOptional<z.ZodString>;
111
- locator: z.ZodOptional<z.ZodString>;
112
- }, z.core.$strip>], "refClass">>;
113
- /**
114
- * Relation target schema for use in {@link ArtifactQueryRequestSchema}.
115
- *
116
- * Relaxes the `artifact` variant to allow identity-only lookups (kind + id)
117
- * without a specific revision. Storage relations must still use the exact
118
- * {@link ArtifactRelationTargetSchema} which requires revision.
119
- *
120
- * Supports `refClass` inference via {@link inferArtifactRelationQueryTargetRefClass}
121
- * for wire payloads that omit the discriminant. Defaults to `'artifact'` when
122
- * neither local-ref nor evidence fields are present, unlike storage inference
123
- * which requires `revision` to distinguish artifact from evidence refs.
124
- */
125
- declare const ArtifactRelationQueryTargetSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
126
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
127
- kind: z.ZodString;
128
- id: z.ZodString;
129
- revision: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strip>, z.ZodObject<{
131
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
132
- artifact: z.ZodObject<{
133
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
134
- kind: z.ZodString;
135
- id: z.ZodString;
136
- revision: z.ZodString;
137
- }, z.core.$strip>;
138
- localId: z.ZodString;
139
- }, z.core.$strip>, z.ZodObject<{
140
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
141
- kind: z.ZodString;
142
- id: z.ZodString;
143
- revision: z.ZodOptional<z.ZodString>;
144
- locator: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>], "refClass">>;
146
- /**
147
- * A typed directional link from one artifact to a relation target.
148
- *
149
- * `type` is an open string registered via {@link RelationTypeRegistrationSchema}.
150
- */
151
- declare const ArtifactRelationSchema: z.ZodObject<{
152
- type: z.ZodString;
153
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
154
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
155
- kind: z.ZodString;
156
- id: z.ZodString;
157
- revision: z.ZodString;
158
- }, z.core.$strip>, z.ZodObject<{
159
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
160
- artifact: z.ZodObject<{
161
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
162
- kind: z.ZodString;
163
- id: z.ZodString;
164
- revision: z.ZodString;
165
- }, z.core.$strip>;
166
- localId: z.ZodString;
167
- }, z.core.$strip>, z.ZodObject<{
168
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
169
- kind: z.ZodString;
170
- id: z.ZodString;
171
- revision: z.ZodOptional<z.ZodString>;
172
- locator: z.ZodOptional<z.ZodString>;
173
- }, z.core.$strip>], "refClass">>;
174
- }, z.core.$strip>;
175
- /**
176
- * Ordered confidence levels for artifact assertions.
177
- *
178
- * Levels progress from weakest to strongest epistemic warrant:
179
- * `assumed` → `inferred` → `stated` → `confirmed` → `verified`
180
- */
181
- declare const ConfidenceLevelSchema: z.ZodEnum<{
182
- inferred: "inferred";
183
- assumed: "assumed";
184
- stated: "stated";
185
- confirmed: "confirmed";
186
- verified: "verified";
187
- }>;
188
- /**
189
- * One piece of evidence contributing to the overall confidence of an artifact.
190
- *
191
- * Multiple bases can be accumulated for the same artifact revision as
192
- * additional actors review or verify it.
193
- */
194
- declare const ConfidenceBasisSchema: z.ZodObject<{
195
- kind: z.ZodString;
196
- actor: z.ZodObject<{
197
- kind: z.ZodString;
198
- id: z.ZodString;
199
- displayName: z.ZodOptional<z.ZodString>;
200
- }, z.core.$strip>;
201
- timestamp: z.ZodNumber;
202
- detail: z.ZodOptional<z.ZodString>;
203
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
205
- kind: z.ZodString;
206
- id: z.ZodString;
207
- revision: z.ZodString;
208
- }, z.core.$strip>, z.ZodObject<{
209
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
210
- artifact: z.ZodObject<{
211
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
212
- kind: z.ZodString;
213
- id: z.ZodString;
214
- revision: z.ZodString;
215
- }, z.core.$strip>;
216
- localId: z.ZodString;
217
- }, z.core.$strip>, z.ZodObject<{
218
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
219
- kind: z.ZodString;
220
- id: z.ZodString;
221
- revision: z.ZodOptional<z.ZodString>;
222
- locator: z.ZodOptional<z.ZodString>;
223
- }, z.core.$strip>], "refClass">>>;
224
- }, z.core.$strip>;
225
- /**
226
- * Aggregated confidence metadata for an artifact revision.
227
- *
228
- * `basis` carries the ordered set of individual evidence entries that
229
- * together justify the overall `level`.
230
- */
231
- declare const ConfidenceMetadataSchema: z.ZodObject<{
232
- level: z.ZodEnum<{
233
- inferred: "inferred";
234
- assumed: "assumed";
235
- stated: "stated";
236
- confirmed: "confirmed";
237
- verified: "verified";
238
- }>;
239
- basis: z.ZodArray<z.ZodObject<{
240
- kind: z.ZodString;
241
- actor: z.ZodObject<{
242
- kind: z.ZodString;
243
- id: z.ZodString;
244
- displayName: z.ZodOptional<z.ZodString>;
245
- }, z.core.$strip>;
246
- timestamp: z.ZodNumber;
247
- detail: z.ZodOptional<z.ZodString>;
248
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
249
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
250
- kind: z.ZodString;
251
- id: z.ZodString;
252
- revision: z.ZodString;
253
- }, z.core.$strip>, z.ZodObject<{
254
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
255
- artifact: z.ZodObject<{
256
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
257
- kind: z.ZodString;
258
- id: z.ZodString;
259
- revision: z.ZodString;
260
- }, z.core.$strip>;
261
- localId: z.ZodString;
262
- }, z.core.$strip>, z.ZodObject<{
263
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
264
- kind: z.ZodString;
265
- id: z.ZodString;
266
- revision: z.ZodOptional<z.ZodString>;
267
- locator: z.ZodOptional<z.ZodString>;
268
- }, z.core.$strip>], "refClass">>>;
269
- }, z.core.$strip>>;
270
- }, z.core.$strip>;
271
- /**
272
- * A single typed observation attached to an artifact revision.
273
- *
274
- * Observations are append-only — they do not mutate the revision's `data`
275
- * but augment it with actor-sourced findings.
276
- */
277
- declare const ArtifactObservationSchema: z.ZodObject<{
278
- id: z.ZodString;
279
- kind: z.ZodString;
280
- summary: z.ZodString;
281
- detail: z.ZodOptional<z.ZodString>;
282
- severity: z.ZodOptional<z.ZodEnum<{
283
- info: "info";
284
- warning: "warning";
285
- blocker: "blocker";
286
- }>>;
287
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
- regarding: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
289
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
290
- kind: z.ZodString;
291
- id: z.ZodString;
292
- revision: z.ZodString;
293
- }, z.core.$strip>, z.ZodObject<{
294
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
295
- artifact: z.ZodObject<{
296
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
297
- kind: z.ZodString;
298
- id: z.ZodString;
299
- revision: z.ZodString;
300
- }, z.core.$strip>;
301
- localId: z.ZodString;
302
- }, z.core.$strip>]>>;
303
- evidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
304
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
305
- kind: z.ZodString;
306
- id: z.ZodString;
307
- revision: z.ZodString;
308
- }, z.core.$strip>, z.ZodObject<{
309
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
310
- kind: z.ZodString;
311
- id: z.ZodString;
312
- revision: z.ZodOptional<z.ZodString>;
313
- locator: z.ZodOptional<z.ZodString>;
314
- }, z.core.$strip>]>>;
315
- actor: z.ZodObject<{
316
- kind: z.ZodString;
317
- id: z.ZodString;
318
- displayName: z.ZodOptional<z.ZodString>;
319
- }, z.core.$strip>;
320
- timestamp: z.ZodNumber;
321
- }, z.core.$strip>;
322
- /**
323
- * Human-readable rendering hints for an artifact revision.
324
- *
325
- * All fields are optional — consumers may fall back to raw `data` when
326
- * none are provided.
327
- */
328
- declare const ArtifactRepresentationsSchema: z.ZodObject<{
329
- markdown: z.ZodOptional<z.ZodString>;
330
- summary: z.ZodOptional<z.ZodString>;
331
- plaintext: z.ZodOptional<z.ZodString>;
332
- }, z.core.$strip>;
333
- /**
334
- * A complete, immutable artifact revision.
335
- *
336
- * Each write to the artifact store creates a new revision; the previous
337
- * revision is never mutated. Callers should use the generic {@link ArtifactRevision}
338
- * type alias when they need a strongly-typed `data` field.
339
- */
340
- declare const ArtifactRevisionSchema: z.ZodObject<{
341
- kind: z.ZodString;
342
- id: z.ZodString;
343
- revision: z.ZodString;
344
- scope: z.ZodObject<{
345
- level: z.ZodString;
346
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
347
- }, z.core.$strip>;
348
- schemaVersion: z.ZodString;
349
- data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
350
- relations: z.ZodArray<z.ZodObject<{
351
- type: z.ZodString;
352
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
353
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
354
- kind: z.ZodString;
355
- id: z.ZodString;
356
- revision: z.ZodString;
357
- }, z.core.$strip>, z.ZodObject<{
358
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
359
- artifact: z.ZodObject<{
360
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
361
- kind: z.ZodString;
362
- id: z.ZodString;
363
- revision: z.ZodString;
364
- }, z.core.$strip>;
365
- localId: z.ZodString;
366
- }, z.core.$strip>, z.ZodObject<{
367
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
368
- kind: z.ZodString;
369
- id: z.ZodString;
370
- revision: z.ZodOptional<z.ZodString>;
371
- locator: z.ZodOptional<z.ZodString>;
372
- }, z.core.$strip>], "refClass">>;
373
- }, z.core.$strip>>;
374
- confidence: z.ZodOptional<z.ZodObject<{
375
- level: z.ZodEnum<{
376
- inferred: "inferred";
377
- assumed: "assumed";
378
- stated: "stated";
379
- confirmed: "confirmed";
380
- verified: "verified";
381
- }>;
382
- basis: z.ZodArray<z.ZodObject<{
383
- kind: z.ZodString;
384
- actor: z.ZodObject<{
385
- kind: z.ZodString;
386
- id: z.ZodString;
387
- displayName: z.ZodOptional<z.ZodString>;
388
- }, z.core.$strip>;
389
- timestamp: z.ZodNumber;
390
- detail: z.ZodOptional<z.ZodString>;
391
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
392
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
393
- kind: z.ZodString;
394
- id: z.ZodString;
395
- revision: z.ZodString;
396
- }, z.core.$strip>, z.ZodObject<{
397
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
398
- artifact: z.ZodObject<{
399
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
400
- kind: z.ZodString;
401
- id: z.ZodString;
402
- revision: z.ZodString;
403
- }, z.core.$strip>;
404
- localId: z.ZodString;
405
- }, z.core.$strip>, z.ZodObject<{
406
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
407
- kind: z.ZodString;
408
- id: z.ZodString;
409
- revision: z.ZodOptional<z.ZodString>;
410
- locator: z.ZodOptional<z.ZodString>;
411
- }, z.core.$strip>], "refClass">>>;
412
- }, z.core.$strip>>;
413
- }, z.core.$strip>>;
414
- representations: z.ZodOptional<z.ZodObject<{
415
- markdown: z.ZodOptional<z.ZodString>;
416
- summary: z.ZodOptional<z.ZodString>;
417
- plaintext: z.ZodOptional<z.ZodString>;
418
- }, z.core.$strip>>;
419
- actor: z.ZodObject<{
420
- kind: z.ZodString;
421
- id: z.ZodString;
422
- displayName: z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>;
424
- timestamp: z.ZodNumber;
425
- createdAt: z.ZodOptional<z.ZodNumber>;
426
- }, z.core.$strip>;
427
- /**
428
- * Strategy used when two revisions of the same artifact conflict.
429
- *
430
- * - `supersedes` — newer revision wins; older is archived automatically
431
- * - `manual` — host must resolve the conflict explicitly
432
- * - `coexist` — both revisions are kept; conflict is surfaced to consumers
433
- */
434
- declare const ArtifactConflictPolicySchema: z.ZodEnum<{
435
- manual: "manual";
436
- supersedes: "supersedes";
437
- coexist: "coexist";
438
- }>;
439
- /**
440
- * Registration record for a named artifact kind.
441
- *
442
- * Kind registrations are declared by product extensions and consumed by the
443
- * artifact service to validate, index, and lifecycle-manage revisions of that kind.
444
- */
445
- declare const ArtifactKindRegistrationSchema: z.ZodObject<{
446
- kind: z.ZodString;
447
- description: z.ZodString;
448
- schemaVersion: z.ZodString;
449
- dataSchema: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
450
- scopeSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
451
- observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
452
- discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
453
- conflictPolicy: z.ZodEnum<{
454
- manual: "manual";
455
- supersedes: "supersedes";
456
- coexist: "coexist";
457
- }>;
458
- status: z.ZodOptional<z.ZodObject<{
459
- path: z.ZodString;
460
- values: z.ZodOptional<z.ZodArray<z.ZodString>>;
461
- }, z.core.$strip>>;
462
- lifecycle: z.ZodOptional<z.ZodObject<{
463
- defaultRelevance: z.ZodOptional<z.ZodEnum<{
464
- active: "active";
465
- archived: "archived";
466
- fading: "fading";
467
- retired: "retired";
468
- }>>;
469
- decayPolicy: z.ZodOptional<z.ZodString>;
470
- }, z.core.$strip>>;
471
- indexedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
- searchableFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
473
- projection: z.ZodOptional<z.ZodObject<{
474
- mode: z.ZodEnum<{
475
- none: "none";
476
- comment: "comment";
477
- surface: "surface";
478
- }>;
479
- defaultRole: z.ZodOptional<z.ZodEnum<{
480
- artifact: "artifact";
481
- workpiece: "workpiece";
482
- }>>;
483
- semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
484
- created: "created";
485
- revised: "revised";
486
- "status-changed": "status-changed";
487
- "observation-added": "observation-added";
488
- }>>>;
489
- projectedFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
- path: z.ZodString;
491
- semantic: z.ZodOptional<z.ZodEnum<{
492
- status: "status";
493
- workflow: "workflow";
494
- priority: "priority";
495
- }>>;
496
- }, z.core.$strip>>>;
497
- }, z.core.$strip>>;
498
- defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
499
- }, z.core.$strip>;
500
- /**
501
- * Registration record for a named relation type.
502
- *
503
- * Relation type registrations declare the semantics and valid endpoints
504
- * for a given relation `type` string.
505
- */
506
- declare const RelationTypeRegistrationSchema: z.ZodObject<{
507
- type: z.ZodString;
508
- symmetry: z.ZodEnum<{
509
- asymmetric: "asymmetric";
510
- symmetric: "symmetric";
511
- }>;
512
- implication: z.ZodOptional<z.ZodString>;
513
- sourceKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
514
- targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
- targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
516
- local: "local";
517
- artifact: "artifact";
518
- evidence: "evidence";
519
- }>>>;
520
- }, z.core.$strip>;
521
- /**
522
- * Query parameters for retrieving artifact revisions from the store.
523
- *
524
- * All fields are optional and composed with AND semantics; omitting a field
525
- * leaves that dimension unconstrained.
526
- */
527
- declare const ArtifactQueryRequestSchema: z.ZodObject<{
528
- kind: z.ZodOptional<z.ZodString>;
529
- scope: z.ZodOptional<z.ZodObject<{
530
- level: z.ZodString;
531
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
532
- }, z.core.$strip>>;
533
- ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
534
- currentOnly: z.ZodOptional<z.ZodBoolean>;
535
- search: z.ZodOptional<z.ZodString>;
536
- relation: z.ZodOptional<z.ZodObject<{
537
- type: z.ZodOptional<z.ZodString>;
538
- target: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
539
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
540
- kind: z.ZodString;
541
- id: z.ZodString;
542
- revision: z.ZodOptional<z.ZodString>;
543
- }, z.core.$strip>, z.ZodObject<{
544
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
545
- artifact: z.ZodObject<{
546
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
547
- kind: z.ZodString;
548
- id: z.ZodString;
549
- revision: z.ZodString;
550
- }, z.core.$strip>;
551
- localId: z.ZodString;
552
- }, z.core.$strip>, z.ZodObject<{
553
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
554
- kind: z.ZodString;
555
- id: z.ZodString;
556
- revision: z.ZodOptional<z.ZodString>;
557
- locator: z.ZodOptional<z.ZodString>;
558
- }, z.core.$strip>], "refClass">>>;
559
- }, z.core.$strip>>;
560
- confidence: z.ZodOptional<z.ZodObject<{
561
- maxLevel: z.ZodOptional<z.ZodEnum<{
562
- inferred: "inferred";
563
- assumed: "assumed";
564
- stated: "stated";
565
- confirmed: "confirmed";
566
- verified: "verified";
567
- }>>;
568
- minLevel: z.ZodOptional<z.ZodEnum<{
569
- inferred: "inferred";
570
- assumed: "assumed";
571
- stated: "stated";
572
- confirmed: "confirmed";
573
- verified: "verified";
574
- }>>;
575
- }, z.core.$strip>>;
576
- indexed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
577
- limit: z.ZodOptional<z.ZodNumber>;
578
- }, z.core.$strip>;
579
- /**
580
- * Request to compare two artifact revisions.
581
- */
582
- declare const ArtifactCompareRequestSchema: z.ZodObject<{
583
- base: z.ZodObject<{
584
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
585
- kind: z.ZodString;
586
- id: z.ZodString;
587
- revision: z.ZodString;
588
- }, z.core.$strip>;
589
- target: z.ZodObject<{
590
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
591
- kind: z.ZodString;
592
- id: z.ZodString;
593
- revision: z.ZodString;
594
- }, z.core.$strip>;
595
- }, z.core.$strip>;
596
- /**
597
- * Result of comparing two artifact revisions.
598
- *
599
- * `changedPaths` lists the dot-separated paths within `data` that differ
600
- * between `base` and `target`.
601
- */
602
- declare const ArtifactCompareResponseSchema: z.ZodObject<{
603
- base: z.ZodObject<{
604
- kind: z.ZodString;
605
- id: z.ZodString;
606
- revision: z.ZodString;
607
- scope: z.ZodObject<{
608
- level: z.ZodString;
609
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
610
- }, z.core.$strip>;
611
- schemaVersion: z.ZodString;
612
- data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
613
- relations: z.ZodArray<z.ZodObject<{
614
- type: z.ZodString;
615
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
616
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
617
- kind: z.ZodString;
618
- id: z.ZodString;
619
- revision: z.ZodString;
620
- }, z.core.$strip>, z.ZodObject<{
621
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
622
- artifact: z.ZodObject<{
623
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
624
- kind: z.ZodString;
625
- id: z.ZodString;
626
- revision: z.ZodString;
627
- }, z.core.$strip>;
628
- localId: z.ZodString;
629
- }, z.core.$strip>, z.ZodObject<{
630
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
631
- kind: z.ZodString;
632
- id: z.ZodString;
633
- revision: z.ZodOptional<z.ZodString>;
634
- locator: z.ZodOptional<z.ZodString>;
635
- }, z.core.$strip>], "refClass">>;
636
- }, z.core.$strip>>;
637
- confidence: z.ZodOptional<z.ZodObject<{
638
- level: z.ZodEnum<{
639
- inferred: "inferred";
640
- assumed: "assumed";
641
- stated: "stated";
642
- confirmed: "confirmed";
643
- verified: "verified";
644
- }>;
645
- basis: z.ZodArray<z.ZodObject<{
646
- kind: z.ZodString;
647
- actor: z.ZodObject<{
648
- kind: z.ZodString;
649
- id: z.ZodString;
650
- displayName: z.ZodOptional<z.ZodString>;
651
- }, z.core.$strip>;
652
- timestamp: z.ZodNumber;
653
- detail: z.ZodOptional<z.ZodString>;
654
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
655
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
656
- kind: z.ZodString;
657
- id: z.ZodString;
658
- revision: z.ZodString;
659
- }, z.core.$strip>, z.ZodObject<{
660
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
661
- artifact: z.ZodObject<{
662
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
663
- kind: z.ZodString;
664
- id: z.ZodString;
665
- revision: z.ZodString;
666
- }, z.core.$strip>;
667
- localId: z.ZodString;
668
- }, z.core.$strip>, z.ZodObject<{
669
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
670
- kind: z.ZodString;
671
- id: z.ZodString;
672
- revision: z.ZodOptional<z.ZodString>;
673
- locator: z.ZodOptional<z.ZodString>;
674
- }, z.core.$strip>], "refClass">>>;
675
- }, z.core.$strip>>;
676
- }, z.core.$strip>>;
677
- representations: z.ZodOptional<z.ZodObject<{
678
- markdown: z.ZodOptional<z.ZodString>;
679
- summary: z.ZodOptional<z.ZodString>;
680
- plaintext: z.ZodOptional<z.ZodString>;
681
- }, z.core.$strip>>;
682
- actor: z.ZodObject<{
683
- kind: z.ZodString;
684
- id: z.ZodString;
685
- displayName: z.ZodOptional<z.ZodString>;
686
- }, z.core.$strip>;
687
- timestamp: z.ZodNumber;
688
- createdAt: z.ZodOptional<z.ZodNumber>;
689
- }, z.core.$strip>;
690
- target: z.ZodObject<{
691
- kind: z.ZodString;
692
- id: z.ZodString;
693
- revision: z.ZodString;
694
- scope: z.ZodObject<{
695
- level: z.ZodString;
696
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
697
- }, z.core.$strip>;
698
- schemaVersion: z.ZodString;
699
- data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
700
- relations: z.ZodArray<z.ZodObject<{
701
- type: z.ZodString;
702
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
704
- kind: z.ZodString;
705
- id: z.ZodString;
706
- revision: z.ZodString;
707
- }, z.core.$strip>, z.ZodObject<{
708
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
709
- artifact: z.ZodObject<{
710
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
711
- kind: z.ZodString;
712
- id: z.ZodString;
713
- revision: z.ZodString;
714
- }, z.core.$strip>;
715
- localId: z.ZodString;
716
- }, z.core.$strip>, z.ZodObject<{
717
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
718
- kind: z.ZodString;
719
- id: z.ZodString;
720
- revision: z.ZodOptional<z.ZodString>;
721
- locator: z.ZodOptional<z.ZodString>;
722
- }, z.core.$strip>], "refClass">>;
723
- }, z.core.$strip>>;
724
- confidence: z.ZodOptional<z.ZodObject<{
725
- level: z.ZodEnum<{
726
- inferred: "inferred";
727
- assumed: "assumed";
728
- stated: "stated";
729
- confirmed: "confirmed";
730
- verified: "verified";
731
- }>;
732
- basis: z.ZodArray<z.ZodObject<{
733
- kind: z.ZodString;
734
- actor: z.ZodObject<{
735
- kind: z.ZodString;
736
- id: z.ZodString;
737
- displayName: z.ZodOptional<z.ZodString>;
738
- }, z.core.$strip>;
739
- timestamp: z.ZodNumber;
740
- detail: z.ZodOptional<z.ZodString>;
741
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
742
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
743
- kind: z.ZodString;
744
- id: z.ZodString;
745
- revision: z.ZodString;
746
- }, z.core.$strip>, z.ZodObject<{
747
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
748
- artifact: z.ZodObject<{
749
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
750
- kind: z.ZodString;
751
- id: z.ZodString;
752
- revision: z.ZodString;
753
- }, z.core.$strip>;
754
- localId: z.ZodString;
755
- }, z.core.$strip>, z.ZodObject<{
756
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
757
- kind: z.ZodString;
758
- id: z.ZodString;
759
- revision: z.ZodOptional<z.ZodString>;
760
- locator: z.ZodOptional<z.ZodString>;
761
- }, z.core.$strip>], "refClass">>>;
762
- }, z.core.$strip>>;
763
- }, z.core.$strip>>;
764
- representations: z.ZodOptional<z.ZodObject<{
765
- markdown: z.ZodOptional<z.ZodString>;
766
- summary: z.ZodOptional<z.ZodString>;
767
- plaintext: z.ZodOptional<z.ZodString>;
768
- }, z.core.$strip>>;
769
- actor: z.ZodObject<{
770
- kind: z.ZodString;
771
- id: z.ZodString;
772
- displayName: z.ZodOptional<z.ZodString>;
773
- }, z.core.$strip>;
774
- timestamp: z.ZodNumber;
775
- createdAt: z.ZodOptional<z.ZodNumber>;
776
- }, z.core.$strip>;
777
- changedPaths: z.ZodArray<z.ZodString>;
778
- }, z.core.$strip>;
779
- /** Actor identity for artifact authorship and confidence attribution. */
780
- type ArtifactActor = z.infer<typeof ArtifactActorSchema>;
781
- /** Scope descriptor for an artifact revision. */
782
- type ArtifactScope = z.infer<typeof ArtifactScopeSchema>;
783
- /** Scope descriptor for artifact query filters. */
784
- type ArtifactQueryScope = z.infer<typeof ArtifactQueryScopeSchema>;
785
- /** Immutable pointer to a specific artifact revision. */
786
- type ArtifactRef$1 = z.infer<typeof ArtifactRefSchema>;
787
- /** Pointer to a named sub-element within a specific artifact revision. */
788
- type LocalRef = z.infer<typeof LocalRefSchema>;
789
- /** Pointer to external evidence outside the artifact store. */
790
- type EvidenceRef = z.infer<typeof EvidenceRefSchema>;
791
- /** Union of all valid relation-target reference classes. */
792
- type ArtifactRelationTarget = z.infer<typeof ArtifactRelationTargetSchema>;
793
- /** Union of all valid relation-target reference classes for query filters. Artifact refs may omit revision. */
794
- type ArtifactRelationQueryTarget = z.infer<typeof ArtifactRelationQueryTargetSchema>;
795
- /** A typed directional link from an artifact to a relation target. */
796
- type ArtifactRelation = z.infer<typeof ArtifactRelationSchema>;
797
- /** Ordered confidence level for an artifact assertion. */
798
- type ConfidenceLevel = z.infer<typeof ConfidenceLevelSchema>;
799
- /** One piece of evidence contributing to overall artifact confidence. */
800
- type ConfidenceBasis = z.infer<typeof ConfidenceBasisSchema>;
801
- /** Aggregated confidence metadata for an artifact revision. */
802
- type ConfidenceMetadata = z.infer<typeof ConfidenceMetadataSchema>;
803
- /** A typed observation attached to an artifact revision. */
804
- type ArtifactObservation$1 = z.infer<typeof ArtifactObservationSchema>;
805
- /** Human-readable rendering hints for an artifact revision. */
806
- type ArtifactRepresentations = z.infer<typeof ArtifactRepresentationsSchema>;
807
- /**
808
- * A complete, immutable artifact revision.
809
- *
810
- * The generic `TData` parameter narrows the `data` field to a specific
811
- * kind-validated shape, while defaulting to `Record<string, unknown>` for
812
- * untyped call sites.
813
- * @typeParam TData - Kind-specific payload type for the `data` field.
814
- */
815
- type ArtifactRevision$1<TData extends Record<string, unknown> = Record<string, unknown>> = Omit<z.infer<typeof ArtifactRevisionSchema>, 'data'> & {
816
- data: TData;
817
- };
818
- /** Conflict resolution strategy for an artifact kind. */
819
- type ArtifactConflictPolicy = z.infer<typeof ArtifactConflictPolicySchema>;
820
- /** Registration record for a named artifact kind. */
821
- type ArtifactKindRegistration$1 = z.infer<typeof ArtifactKindRegistrationSchema>;
822
- /** Registration record for a named relation type. */
823
- type RelationTypeRegistration$1 = z.infer<typeof RelationTypeRegistrationSchema>;
824
- /** Query parameters for retrieving artifact revisions from the store. */
825
- type ArtifactQueryRequest = z.infer<typeof ArtifactQueryRequestSchema>;
826
- /** Request to compare two artifact revisions. */
827
- type ArtifactCompareRequest = z.infer<typeof ArtifactCompareRequestSchema>;
828
- /** Result of comparing two artifact revisions. */
829
- type ArtifactCompareResponse = z.infer<typeof ArtifactCompareResponseSchema>;
830
- //#endregion
831
7
  //#region core/contracts/src/artifact/context-selectors.d.ts
832
8
  /** Known render hints for artifact context resolution. */
833
9
  declare const ARTIFACT_CONTEXT_RENDER_HINTS: readonly ["inline", "summary", "link", "omit"];
@@ -1338,225 +514,13 @@ interface DefineArtifactKindOptions<TData extends Record<string, unknown>, TScop
1338
514
  * description: 'Structured implementation plan for agent and human review.',
1339
515
  * schemaVersion: '1',
1340
516
  * dataSchema: z.object({ status: z.enum(['draft', 'approved']), topic: z.string() }),
1341
- * conflictPolicy: 'supersedes',
1342
- * status: { path: '/data/status', values: ['draft', 'approved'] },
1343
- * indexedFields: ['/data/status'],
1344
- * });
1345
- * ```
1346
- */
1347
- declare function defineArtifactKind<TData extends Record<string, unknown>, TScope extends ArtifactScope = ArtifactScope>(options: DefineArtifactKindOptions<TData, TScope>): ArtifactKindDefinition<TData, TScope>;
1348
- //#endregion
1349
- //#region core/contracts/src/artifact/context-resolution.d.ts
1350
- /**
1351
- * Reasons why a relation target was not resolved during context resolution.
1352
- *
1353
- * v1 omits `scope-denied` -- no scope policy seam exists yet.
1354
- */
1355
- declare const ArtifactContextUnresolvedReasonSchema: z.ZodEnum<{
1356
- "not-selected": "not-selected";
1357
- "not-found": "not-found";
1358
- "depth-exceeded": "depth-exceeded";
1359
- "unsupported-ref-class": "unsupported-ref-class";
1360
- "cycle-detected": "cycle-detected";
1361
- }>;
1362
- /** An unresolved reason for a context ref entry. */
1363
- type ArtifactContextUnresolvedReason = z.infer<typeof ArtifactContextUnresolvedReasonSchema>;
1364
- /**
1365
- * A single entry in the normalized artifact context wire format.
1366
- *
1367
- * Each entry records one outbound relation from a source artifact to a
1368
- * target, along with resolution status and the render hint used.
1369
- */
1370
- declare const ArtifactContextRefEntrySchema: z.ZodObject<{
1371
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1372
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1373
- kind: z.ZodString;
1374
- id: z.ZodString;
1375
- revision: z.ZodString;
1376
- }, z.core.$strip>, z.ZodObject<{
1377
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1378
- artifact: z.ZodObject<{
1379
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1380
- kind: z.ZodString;
1381
- id: z.ZodString;
1382
- revision: z.ZodString;
1383
- }, z.core.$strip>;
1384
- localId: z.ZodString;
1385
- }, z.core.$strip>, z.ZodObject<{
1386
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1387
- kind: z.ZodString;
1388
- id: z.ZodString;
1389
- revision: z.ZodOptional<z.ZodString>;
1390
- locator: z.ZodOptional<z.ZodString>;
1391
- }, z.core.$strip>], "refClass">>;
1392
- sourceRef: z.ZodObject<{
1393
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1394
- kind: z.ZodString;
1395
- id: z.ZodString;
1396
- revision: z.ZodString;
1397
- }, z.core.$strip>;
1398
- relationType: z.ZodString;
1399
- hint: z.ZodString;
1400
- status: z.ZodEnum<{
1401
- resolved: "resolved";
1402
- unresolved: "unresolved";
1403
- }>;
1404
- reason: z.ZodOptional<z.ZodEnum<{
1405
- "not-selected": "not-selected";
1406
- "not-found": "not-found";
1407
- "depth-exceeded": "depth-exceeded";
1408
- "unsupported-ref-class": "unsupported-ref-class";
1409
- "cycle-detected": "cycle-detected";
1410
- }>>;
1411
- }, z.core.$strip>;
1412
- /** A single resolved or unresolved context ref entry. */
1413
- type ArtifactContextRefEntry = z.infer<typeof ArtifactContextRefEntrySchema>;
1414
- /**
1415
- * Normalized wire format for a resolved artifact context graph.
1416
- *
1417
- * Contains the root artifact reference, all encountered relation entries
1418
- * (both resolved and unresolved), and the pool of resolved artifact
1419
- * revisions referenced by the entries.
517
+ * conflictPolicy: 'supersedes',
518
+ * status: { path: '/data/status', values: ['draft', 'approved'] },
519
+ * indexedFields: ['/data/status'],
520
+ * });
521
+ * ```
1420
522
  */
1421
- declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
1422
- rootRef: z.ZodObject<{
1423
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1424
- kind: z.ZodString;
1425
- id: z.ZodString;
1426
- revision: z.ZodString;
1427
- }, z.core.$strip>;
1428
- refs: z.ZodArray<z.ZodObject<{
1429
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1430
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1431
- kind: z.ZodString;
1432
- id: z.ZodString;
1433
- revision: z.ZodString;
1434
- }, z.core.$strip>, z.ZodObject<{
1435
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1436
- artifact: z.ZodObject<{
1437
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1438
- kind: z.ZodString;
1439
- id: z.ZodString;
1440
- revision: z.ZodString;
1441
- }, z.core.$strip>;
1442
- localId: z.ZodString;
1443
- }, z.core.$strip>, z.ZodObject<{
1444
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1445
- kind: z.ZodString;
1446
- id: z.ZodString;
1447
- revision: z.ZodOptional<z.ZodString>;
1448
- locator: z.ZodOptional<z.ZodString>;
1449
- }, z.core.$strip>], "refClass">>;
1450
- sourceRef: z.ZodObject<{
1451
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1452
- kind: z.ZodString;
1453
- id: z.ZodString;
1454
- revision: z.ZodString;
1455
- }, z.core.$strip>;
1456
- relationType: z.ZodString;
1457
- hint: z.ZodString;
1458
- status: z.ZodEnum<{
1459
- resolved: "resolved";
1460
- unresolved: "unresolved";
1461
- }>;
1462
- reason: z.ZodOptional<z.ZodEnum<{
1463
- "not-selected": "not-selected";
1464
- "not-found": "not-found";
1465
- "depth-exceeded": "depth-exceeded";
1466
- "unsupported-ref-class": "unsupported-ref-class";
1467
- "cycle-detected": "cycle-detected";
1468
- }>>;
1469
- }, z.core.$strip>>;
1470
- resolved: z.ZodArray<z.ZodObject<{
1471
- kind: z.ZodString;
1472
- id: z.ZodString;
1473
- revision: z.ZodString;
1474
- scope: z.ZodObject<{
1475
- level: z.ZodString;
1476
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1477
- }, z.core.$strip>;
1478
- schemaVersion: z.ZodString;
1479
- data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1480
- relations: z.ZodArray<z.ZodObject<{
1481
- type: z.ZodString;
1482
- target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1484
- kind: z.ZodString;
1485
- id: z.ZodString;
1486
- revision: z.ZodString;
1487
- }, z.core.$strip>, z.ZodObject<{
1488
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1489
- artifact: z.ZodObject<{
1490
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1491
- kind: z.ZodString;
1492
- id: z.ZodString;
1493
- revision: z.ZodString;
1494
- }, z.core.$strip>;
1495
- localId: z.ZodString;
1496
- }, z.core.$strip>, z.ZodObject<{
1497
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1498
- kind: z.ZodString;
1499
- id: z.ZodString;
1500
- revision: z.ZodOptional<z.ZodString>;
1501
- locator: z.ZodOptional<z.ZodString>;
1502
- }, z.core.$strip>], "refClass">>;
1503
- }, z.core.$strip>>;
1504
- confidence: z.ZodOptional<z.ZodObject<{
1505
- level: z.ZodEnum<{
1506
- inferred: "inferred";
1507
- assumed: "assumed";
1508
- stated: "stated";
1509
- confirmed: "confirmed";
1510
- verified: "verified";
1511
- }>;
1512
- basis: z.ZodArray<z.ZodObject<{
1513
- kind: z.ZodString;
1514
- actor: z.ZodObject<{
1515
- kind: z.ZodString;
1516
- id: z.ZodString;
1517
- displayName: z.ZodOptional<z.ZodString>;
1518
- }, z.core.$strip>;
1519
- timestamp: z.ZodNumber;
1520
- detail: z.ZodOptional<z.ZodString>;
1521
- evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1522
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1523
- kind: z.ZodString;
1524
- id: z.ZodString;
1525
- revision: z.ZodString;
1526
- }, z.core.$strip>, z.ZodObject<{
1527
- refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1528
- artifact: z.ZodObject<{
1529
- refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1530
- kind: z.ZodString;
1531
- id: z.ZodString;
1532
- revision: z.ZodString;
1533
- }, z.core.$strip>;
1534
- localId: z.ZodString;
1535
- }, z.core.$strip>, z.ZodObject<{
1536
- refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1537
- kind: z.ZodString;
1538
- id: z.ZodString;
1539
- revision: z.ZodOptional<z.ZodString>;
1540
- locator: z.ZodOptional<z.ZodString>;
1541
- }, z.core.$strip>], "refClass">>>;
1542
- }, z.core.$strip>>;
1543
- }, z.core.$strip>>;
1544
- representations: z.ZodOptional<z.ZodObject<{
1545
- markdown: z.ZodOptional<z.ZodString>;
1546
- summary: z.ZodOptional<z.ZodString>;
1547
- plaintext: z.ZodOptional<z.ZodString>;
1548
- }, z.core.$strip>>;
1549
- actor: z.ZodObject<{
1550
- kind: z.ZodString;
1551
- id: z.ZodString;
1552
- displayName: z.ZodOptional<z.ZodString>;
1553
- }, z.core.$strip>;
1554
- timestamp: z.ZodNumber;
1555
- createdAt: z.ZodOptional<z.ZodNumber>;
1556
- }, z.core.$strip>>;
1557
- }, z.core.$strip>;
1558
- /** Normalized wire format for a resolved artifact context graph. */
1559
- type ResolvedArtifactContextWire$1 = z.infer<typeof ResolvedArtifactContextWireSchema>;
523
+ declare function defineArtifactKind<TData extends Record<string, unknown>, TScope extends ArtifactScope = ArtifactScope>(options: DefineArtifactKindOptions<TData, TScope>): ArtifactKindDefinition<TData, TScope>;
1560
524
  //#endregion
1561
525
  //#region core/contracts/src/artifact/context-tree.d.ts
1562
526
  /**
@@ -1665,12 +629,12 @@ declare const ArtifactSchemas: {
1665
629
  projection: z.ZodOptional<z.ZodObject<{
1666
630
  mode: z.ZodEnum<{
1667
631
  none: "none";
1668
- comment: "comment";
1669
632
  surface: "surface";
633
+ comment: "comment";
1670
634
  }>;
1671
635
  defaultRole: z.ZodOptional<z.ZodEnum<{
1672
- artifact: "artifact";
1673
636
  workpiece: "workpiece";
637
+ artifact: "artifact";
1674
638
  }>>;
1675
639
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1676
640
  created: "created";
@@ -1685,7 +649,32 @@ declare const ArtifactSchemas: {
1685
649
  workflow: "workflow";
1686
650
  priority: "priority";
1687
651
  }>>;
652
+ fromLevel: z.ZodOptional<z.ZodEnum<{
653
+ link: "link";
654
+ full: "full";
655
+ summary: "summary";
656
+ }>>;
657
+ viewRole: z.ZodOptional<z.ZodEnum<{
658
+ title: "title";
659
+ summary: "summary";
660
+ }>>;
1688
661
  }, z.core.$strip>>>;
662
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
663
+ kind: z.ZodLiteral<"own-view">;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ kind: z.ZodLiteral<"inline">;
666
+ hostRelation: z.ZodString;
667
+ as: z.ZodOptional<z.ZodEnum<{
668
+ link: "link";
669
+ full: "full";
670
+ summary: "summary";
671
+ }>>;
672
+ }, z.core.$strip>, z.ZodObject<{
673
+ kind: z.ZodLiteral<"entry">;
674
+ via: z.ZodOptional<z.ZodString>;
675
+ collection: z.ZodOptional<z.ZodString>;
676
+ title: z.ZodOptional<z.ZodString>;
677
+ }, z.core.$strip>], "kind">>>;
1689
678
  }, z.core.$strip>>;
1690
679
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
1691
680
  }, z.core.$strip>;
@@ -1729,12 +718,12 @@ declare const ArtifactSchemas: {
1729
718
  projection: z.ZodOptional<z.ZodObject<{
1730
719
  mode: z.ZodEnum<{
1731
720
  none: "none";
1732
- comment: "comment";
1733
721
  surface: "surface";
722
+ comment: "comment";
1734
723
  }>;
1735
724
  defaultRole: z.ZodOptional<z.ZodEnum<{
1736
- artifact: "artifact";
1737
725
  workpiece: "workpiece";
726
+ artifact: "artifact";
1738
727
  }>>;
1739
728
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1740
729
  created: "created";
@@ -1749,7 +738,32 @@ declare const ArtifactSchemas: {
1749
738
  workflow: "workflow";
1750
739
  priority: "priority";
1751
740
  }>>;
741
+ fromLevel: z.ZodOptional<z.ZodEnum<{
742
+ link: "link";
743
+ full: "full";
744
+ summary: "summary";
745
+ }>>;
746
+ viewRole: z.ZodOptional<z.ZodEnum<{
747
+ title: "title";
748
+ summary: "summary";
749
+ }>>;
1752
750
  }, z.core.$strip>>>;
751
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
752
+ kind: z.ZodLiteral<"own-view">;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ kind: z.ZodLiteral<"inline">;
755
+ hostRelation: z.ZodString;
756
+ as: z.ZodOptional<z.ZodEnum<{
757
+ link: "link";
758
+ full: "full";
759
+ summary: "summary";
760
+ }>>;
761
+ }, z.core.$strip>, z.ZodObject<{
762
+ kind: z.ZodLiteral<"entry">;
763
+ via: z.ZodOptional<z.ZodString>;
764
+ collection: z.ZodOptional<z.ZodString>;
765
+ title: z.ZodOptional<z.ZodString>;
766
+ }, z.core.$strip>], "kind">>>;
1753
767
  }, z.core.$strip>>;
1754
768
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
1755
769
  }, z.core.$strip>>;
@@ -1802,16 +816,6 @@ declare const ArtifactSchemas: {
1802
816
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1803
817
  kind: z.ZodString;
1804
818
  createdAt: z.ZodOptional<z.ZodNumber>;
1805
- scope: z.ZodObject<{
1806
- level: z.ZodString;
1807
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1808
- }, z.core.$strip>;
1809
- schemaVersion: z.ZodString;
1810
- actor: z.ZodObject<{
1811
- kind: z.ZodString;
1812
- id: z.ZodString;
1813
- displayName: z.ZodOptional<z.ZodString>;
1814
- }, z.core.$strip>;
1815
819
  relations: z.ZodArray<z.ZodObject<{
1816
820
  type: z.ZodString;
1817
821
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1836,6 +840,16 @@ declare const ArtifactSchemas: {
1836
840
  locator: z.ZodOptional<z.ZodString>;
1837
841
  }, z.core.$strip>], "refClass">>;
1838
842
  }, z.core.$strip>>;
843
+ scope: z.ZodObject<{
844
+ level: z.ZodString;
845
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
846
+ }, z.core.$strip>;
847
+ schemaVersion: z.ZodString;
848
+ actor: z.ZodObject<{
849
+ kind: z.ZodString;
850
+ id: z.ZodString;
851
+ displayName: z.ZodOptional<z.ZodString>;
852
+ }, z.core.$strip>;
1839
853
  confidence: z.ZodOptional<z.ZodObject<{
1840
854
  level: z.ZodEnum<{
1841
855
  inferred: "inferred";
@@ -1984,16 +998,6 @@ declare const ArtifactSchemas: {
1984
998
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1985
999
  kind: z.ZodString;
1986
1000
  createdAt: z.ZodOptional<z.ZodNumber>;
1987
- scope: z.ZodObject<{
1988
- level: z.ZodString;
1989
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1990
- }, z.core.$strip>;
1991
- schemaVersion: z.ZodString;
1992
- actor: z.ZodObject<{
1993
- kind: z.ZodString;
1994
- id: z.ZodString;
1995
- displayName: z.ZodOptional<z.ZodString>;
1996
- }, z.core.$strip>;
1997
1001
  relations: z.ZodArray<z.ZodObject<{
1998
1002
  type: z.ZodString;
1999
1003
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2018,6 +1022,16 @@ declare const ArtifactSchemas: {
2018
1022
  locator: z.ZodOptional<z.ZodString>;
2019
1023
  }, z.core.$strip>], "refClass">>;
2020
1024
  }, z.core.$strip>>;
1025
+ scope: z.ZodObject<{
1026
+ level: z.ZodString;
1027
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1028
+ }, z.core.$strip>;
1029
+ schemaVersion: z.ZodString;
1030
+ actor: z.ZodObject<{
1031
+ kind: z.ZodString;
1032
+ id: z.ZodString;
1033
+ displayName: z.ZodOptional<z.ZodString>;
1034
+ }, z.core.$strip>;
2021
1035
  confidence: z.ZodOptional<z.ZodObject<{
2022
1036
  level: z.ZodEnum<{
2023
1037
  inferred: "inferred";
@@ -3066,12 +2080,12 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3066
2080
  projection: z.ZodOptional<z.ZodObject<{
3067
2081
  mode: z.ZodEnum<{
3068
2082
  none: "none";
3069
- comment: "comment";
3070
2083
  surface: "surface";
2084
+ comment: "comment";
3071
2085
  }>;
3072
2086
  defaultRole: z.ZodOptional<z.ZodEnum<{
3073
- artifact: "artifact";
3074
2087
  workpiece: "workpiece";
2088
+ artifact: "artifact";
3075
2089
  }>>;
3076
2090
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3077
2091
  created: "created";
@@ -3086,7 +2100,32 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3086
2100
  workflow: "workflow";
3087
2101
  priority: "priority";
3088
2102
  }>>;
2103
+ fromLevel: z.ZodOptional<z.ZodEnum<{
2104
+ link: "link";
2105
+ full: "full";
2106
+ summary: "summary";
2107
+ }>>;
2108
+ viewRole: z.ZodOptional<z.ZodEnum<{
2109
+ title: "title";
2110
+ summary: "summary";
2111
+ }>>;
3089
2112
  }, z.core.$strip>>>;
2113
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2114
+ kind: z.ZodLiteral<"own-view">;
2115
+ }, z.core.$strip>, z.ZodObject<{
2116
+ kind: z.ZodLiteral<"inline">;
2117
+ hostRelation: z.ZodString;
2118
+ as: z.ZodOptional<z.ZodEnum<{
2119
+ link: "link";
2120
+ full: "full";
2121
+ summary: "summary";
2122
+ }>>;
2123
+ }, z.core.$strip>, z.ZodObject<{
2124
+ kind: z.ZodLiteral<"entry">;
2125
+ via: z.ZodOptional<z.ZodString>;
2126
+ collection: z.ZodOptional<z.ZodString>;
2127
+ title: z.ZodOptional<z.ZodString>;
2128
+ }, z.core.$strip>], "kind">>>;
3090
2129
  }, z.core.$strip>>;
3091
2130
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
3092
2131
  }, z.core.$strip>;
@@ -3130,12 +2169,12 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3130
2169
  projection: z.ZodOptional<z.ZodObject<{
3131
2170
  mode: z.ZodEnum<{
3132
2171
  none: "none";
3133
- comment: "comment";
3134
2172
  surface: "surface";
2173
+ comment: "comment";
3135
2174
  }>;
3136
2175
  defaultRole: z.ZodOptional<z.ZodEnum<{
3137
- artifact: "artifact";
3138
2176
  workpiece: "workpiece";
2177
+ artifact: "artifact";
3139
2178
  }>>;
3140
2179
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3141
2180
  created: "created";
@@ -3150,7 +2189,32 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3150
2189
  workflow: "workflow";
3151
2190
  priority: "priority";
3152
2191
  }>>;
2192
+ fromLevel: z.ZodOptional<z.ZodEnum<{
2193
+ link: "link";
2194
+ full: "full";
2195
+ summary: "summary";
2196
+ }>>;
2197
+ viewRole: z.ZodOptional<z.ZodEnum<{
2198
+ title: "title";
2199
+ summary: "summary";
2200
+ }>>;
3153
2201
  }, z.core.$strip>>>;
2202
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
+ kind: z.ZodLiteral<"own-view">;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ kind: z.ZodLiteral<"inline">;
2206
+ hostRelation: z.ZodString;
2207
+ as: z.ZodOptional<z.ZodEnum<{
2208
+ link: "link";
2209
+ full: "full";
2210
+ summary: "summary";
2211
+ }>>;
2212
+ }, z.core.$strip>, z.ZodObject<{
2213
+ kind: z.ZodLiteral<"entry">;
2214
+ via: z.ZodOptional<z.ZodString>;
2215
+ collection: z.ZodOptional<z.ZodString>;
2216
+ title: z.ZodOptional<z.ZodString>;
2217
+ }, z.core.$strip>], "kind">>>;
3154
2218
  }, z.core.$strip>>;
3155
2219
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
3156
2220
  }, z.core.$strip>>;
@@ -3203,16 +2267,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3203
2267
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
3204
2268
  kind: z.ZodString;
3205
2269
  createdAt: z.ZodOptional<z.ZodNumber>;
3206
- scope: z.ZodObject<{
3207
- level: z.ZodString;
3208
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3209
- }, z.core.$strip>;
3210
- schemaVersion: z.ZodString;
3211
- actor: z.ZodObject<{
3212
- kind: z.ZodString;
3213
- id: z.ZodString;
3214
- displayName: z.ZodOptional<z.ZodString>;
3215
- }, z.core.$strip>;
3216
2270
  relations: z.ZodArray<z.ZodObject<{
3217
2271
  type: z.ZodString;
3218
2272
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3237,6 +2291,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3237
2291
  locator: z.ZodOptional<z.ZodString>;
3238
2292
  }, z.core.$strip>], "refClass">>;
3239
2293
  }, z.core.$strip>>;
2294
+ scope: z.ZodObject<{
2295
+ level: z.ZodString;
2296
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2297
+ }, z.core.$strip>;
2298
+ schemaVersion: z.ZodString;
2299
+ actor: z.ZodObject<{
2300
+ kind: z.ZodString;
2301
+ id: z.ZodString;
2302
+ displayName: z.ZodOptional<z.ZodString>;
2303
+ }, z.core.$strip>;
3240
2304
  confidence: z.ZodOptional<z.ZodObject<{
3241
2305
  level: z.ZodEnum<{
3242
2306
  inferred: "inferred";
@@ -3385,16 +2449,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3385
2449
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
3386
2450
  kind: z.ZodString;
3387
2451
  createdAt: z.ZodOptional<z.ZodNumber>;
3388
- scope: z.ZodObject<{
3389
- level: z.ZodString;
3390
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3391
- }, z.core.$strip>;
3392
- schemaVersion: z.ZodString;
3393
- actor: z.ZodObject<{
3394
- kind: z.ZodString;
3395
- id: z.ZodString;
3396
- displayName: z.ZodOptional<z.ZodString>;
3397
- }, z.core.$strip>;
3398
2452
  relations: z.ZodArray<z.ZodObject<{
3399
2453
  type: z.ZodString;
3400
2454
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3419,6 +2473,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3419
2473
  locator: z.ZodOptional<z.ZodString>;
3420
2474
  }, z.core.$strip>], "refClass">>;
3421
2475
  }, z.core.$strip>>;
2476
+ scope: z.ZodObject<{
2477
+ level: z.ZodString;
2478
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2479
+ }, z.core.$strip>;
2480
+ schemaVersion: z.ZodString;
2481
+ actor: z.ZodObject<{
2482
+ kind: z.ZodString;
2483
+ id: z.ZodString;
2484
+ displayName: z.ZodOptional<z.ZodString>;
2485
+ }, z.core.$strip>;
3422
2486
  confidence: z.ZodOptional<z.ZodObject<{
3423
2487
  level: z.ZodEnum<{
3424
2488
  inferred: "inferred";
@@ -4481,12 +3545,12 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4481
3545
  projection: z.ZodOptional<z.ZodObject<{
4482
3546
  mode: z.ZodEnum<{
4483
3547
  none: "none";
4484
- comment: "comment";
4485
3548
  surface: "surface";
3549
+ comment: "comment";
4486
3550
  }>;
4487
3551
  defaultRole: z.ZodOptional<z.ZodEnum<{
4488
- artifact: "artifact";
4489
3552
  workpiece: "workpiece";
3553
+ artifact: "artifact";
4490
3554
  }>>;
4491
3555
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4492
3556
  created: "created";
@@ -4501,7 +3565,32 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4501
3565
  workflow: "workflow";
4502
3566
  priority: "priority";
4503
3567
  }>>;
3568
+ fromLevel: z.ZodOptional<z.ZodEnum<{
3569
+ link: "link";
3570
+ full: "full";
3571
+ summary: "summary";
3572
+ }>>;
3573
+ viewRole: z.ZodOptional<z.ZodEnum<{
3574
+ title: "title";
3575
+ summary: "summary";
3576
+ }>>;
4504
3577
  }, z.core.$strip>>>;
3578
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3579
+ kind: z.ZodLiteral<"own-view">;
3580
+ }, z.core.$strip>, z.ZodObject<{
3581
+ kind: z.ZodLiteral<"inline">;
3582
+ hostRelation: z.ZodString;
3583
+ as: z.ZodOptional<z.ZodEnum<{
3584
+ link: "link";
3585
+ full: "full";
3586
+ summary: "summary";
3587
+ }>>;
3588
+ }, z.core.$strip>, z.ZodObject<{
3589
+ kind: z.ZodLiteral<"entry">;
3590
+ via: z.ZodOptional<z.ZodString>;
3591
+ collection: z.ZodOptional<z.ZodString>;
3592
+ title: z.ZodOptional<z.ZodString>;
3593
+ }, z.core.$strip>], "kind">>>;
4505
3594
  }, z.core.$strip>>;
4506
3595
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
4507
3596
  }, z.core.$strip>;
@@ -4545,12 +3634,12 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4545
3634
  projection: z.ZodOptional<z.ZodObject<{
4546
3635
  mode: z.ZodEnum<{
4547
3636
  none: "none";
4548
- comment: "comment";
4549
3637
  surface: "surface";
3638
+ comment: "comment";
4550
3639
  }>;
4551
3640
  defaultRole: z.ZodOptional<z.ZodEnum<{
4552
- artifact: "artifact";
4553
3641
  workpiece: "workpiece";
3642
+ artifact: "artifact";
4554
3643
  }>>;
4555
3644
  semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4556
3645
  created: "created";
@@ -4565,7 +3654,32 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4565
3654
  workflow: "workflow";
4566
3655
  priority: "priority";
4567
3656
  }>>;
3657
+ fromLevel: z.ZodOptional<z.ZodEnum<{
3658
+ link: "link";
3659
+ full: "full";
3660
+ summary: "summary";
3661
+ }>>;
3662
+ viewRole: z.ZodOptional<z.ZodEnum<{
3663
+ title: "title";
3664
+ summary: "summary";
3665
+ }>>;
4568
3666
  }, z.core.$strip>>>;
3667
+ affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3668
+ kind: z.ZodLiteral<"own-view">;
3669
+ }, z.core.$strip>, z.ZodObject<{
3670
+ kind: z.ZodLiteral<"inline">;
3671
+ hostRelation: z.ZodString;
3672
+ as: z.ZodOptional<z.ZodEnum<{
3673
+ link: "link";
3674
+ full: "full";
3675
+ summary: "summary";
3676
+ }>>;
3677
+ }, z.core.$strip>, z.ZodObject<{
3678
+ kind: z.ZodLiteral<"entry">;
3679
+ via: z.ZodOptional<z.ZodString>;
3680
+ collection: z.ZodOptional<z.ZodString>;
3681
+ title: z.ZodOptional<z.ZodString>;
3682
+ }, z.core.$strip>], "kind">>>;
4569
3683
  }, z.core.$strip>>;
4570
3684
  defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
4571
3685
  }, z.core.$strip>>;
@@ -4618,16 +3732,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4618
3732
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4619
3733
  kind: z.ZodString;
4620
3734
  createdAt: z.ZodOptional<z.ZodNumber>;
4621
- scope: z.ZodObject<{
4622
- level: z.ZodString;
4623
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4624
- }, z.core.$strip>;
4625
- schemaVersion: z.ZodString;
4626
- actor: z.ZodObject<{
4627
- kind: z.ZodString;
4628
- id: z.ZodString;
4629
- displayName: z.ZodOptional<z.ZodString>;
4630
- }, z.core.$strip>;
4631
3735
  relations: z.ZodArray<z.ZodObject<{
4632
3736
  type: z.ZodString;
4633
3737
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4652,6 +3756,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4652
3756
  locator: z.ZodOptional<z.ZodString>;
4653
3757
  }, z.core.$strip>], "refClass">>;
4654
3758
  }, z.core.$strip>>;
3759
+ scope: z.ZodObject<{
3760
+ level: z.ZodString;
3761
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3762
+ }, z.core.$strip>;
3763
+ schemaVersion: z.ZodString;
3764
+ actor: z.ZodObject<{
3765
+ kind: z.ZodString;
3766
+ id: z.ZodString;
3767
+ displayName: z.ZodOptional<z.ZodString>;
3768
+ }, z.core.$strip>;
4655
3769
  confidence: z.ZodOptional<z.ZodObject<{
4656
3770
  level: z.ZodEnum<{
4657
3771
  inferred: "inferred";
@@ -4800,16 +3914,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4800
3914
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4801
3915
  kind: z.ZodString;
4802
3916
  createdAt: z.ZodOptional<z.ZodNumber>;
4803
- scope: z.ZodObject<{
4804
- level: z.ZodString;
4805
- ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4806
- }, z.core.$strip>;
4807
- schemaVersion: z.ZodString;
4808
- actor: z.ZodObject<{
4809
- kind: z.ZodString;
4810
- id: z.ZodString;
4811
- displayName: z.ZodOptional<z.ZodString>;
4812
- }, z.core.$strip>;
4813
3917
  relations: z.ZodArray<z.ZodObject<{
4814
3918
  type: z.ZodString;
4815
3919
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4834,6 +3938,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4834
3938
  locator: z.ZodOptional<z.ZodString>;
4835
3939
  }, z.core.$strip>], "refClass">>;
4836
3940
  }, z.core.$strip>>;
3941
+ scope: z.ZodObject<{
3942
+ level: z.ZodString;
3943
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3944
+ }, z.core.$strip>;
3945
+ schemaVersion: z.ZodString;
3946
+ actor: z.ZodObject<{
3947
+ kind: z.ZodString;
3948
+ id: z.ZodString;
3949
+ displayName: z.ZodOptional<z.ZodString>;
3950
+ }, z.core.$strip>;
4837
3951
  confidence: z.ZodOptional<z.ZodObject<{
4838
3952
  level: z.ZodEnum<{
4839
3953
  inferred: "inferred";
@@ -5889,4 +5003,4 @@ type ArtifactStatusChangedPayload = z.infer<(typeof ArtifactSchemas)['status.cha
5889
5003
  /** Payload for the kind registration changed event. */
5890
5004
  type ArtifactKindChangedPayload = z.infer<(typeof ArtifactSchemas)['kind.changed']>;
5891
5005
  //#endregion
5892
- export { BeforeArtifactHookContext as $, ArtifactContextTree as A, ArtifactRelationQueryTargetSchema as At, ArtifactDataOf as B, ConfidenceBasis as Bt, ArtifactRevisedPayload as C, ArtifactQueryRequestSchema as Ct, hydrateArtifactContextTree as D, ArtifactRefSchema as Dt, ArtifactSubjects$1 as E, ArtifactRef$1 as Et, ArtifactContextUnresolvedReason as F, ArtifactRepresentationsSchema as Ft, ArtifactDraftPatch as G, ConfidenceMetadataSchema as Gt, ArtifactOf as H, ConfidenceLevel as Ht, ArtifactContextUnresolvedReasonSchema as I, ArtifactRevision$1 as It, ArtifactLifecycleHookEvent as J, LocalRef as Jt, ArtifactHookFilter as K, EvidenceRef as Kt, ResolvedArtifactContextWire$1 as L, ArtifactRevisionSchema as Lt, UnresolvedArtifactContextNode as M, ArtifactRelationTarget as Mt, ArtifactContextRefEntry as N, ArtifactRelationTargetSchema as Nt, ArtifactContextNode as O, ArtifactRelation as Ot, ArtifactContextRefEntrySchema as P, ArtifactRepresentations as Pt, ArtifactReactionHookRegistration as Q, ResolvedArtifactContextWireSchema as R, ArtifactScope as Rt, ArtifactReviseResponse as S, ArtifactQueryRequest as St, ArtifactStatusChangedPayload as T, ArtifactQueryScopeSchema as Tt, defineArtifactKind as U, ConfidenceLevelSchema as Ut, ArtifactKindDefinition as V, ConfidenceBasisSchema as Vt, ArtifactDraft as W, ConfidenceMetadata as Wt, ArtifactLifecycleSemanticEvent as X, RelationTypeRegistration$1 as Xt, ArtifactLifecycleHookRegistration$1 as Y, LocalRefSchema as Yt, ArtifactReactionHookContext as Z, RelationTypeRegistrationSchema as Zt, ArtifactResolveContextRequest as _, ArtifactConflictPolicySchema as _t, ArtifactKindListRequest as a, ArtifactContextRelationSelectorSchema as at, ArtifactResolveResponse as b, ArtifactObservation$1 as bt, ArtifactKindRegisterResponse as c, ArtifactContextSelector$1 as ct, ArtifactQueryResponse as d, ArtifactActorSchema as dt, BeforeArtifactHookRegistration as et, ArtifactRelationAddedPayload as f, ArtifactCompareRequest as ft, ArtifactRelationTypeRegisterResponse as g, ArtifactConflictPolicy as gt, ArtifactRelationTypeRegisterRequest as h, ArtifactCompareResponseSchema as ht, ArtifactKindChangedPayload as i, ArtifactContextRelationSelector as it, ResolvedArtifactContextNode as j, ArtifactRelationSchema as jt, ArtifactContextRootNode as k, ArtifactRelationQueryTarget as kt, ArtifactNamespace as l, ArtifactContextSelectorSchema as lt, ArtifactRelationTypeListResponse as m, ArtifactCompareResponse as mt, ArtifactCreateResponse as n, ARTIFACT_CONTEXT_RENDER_HINTS as nt, ArtifactKindListResponse as o, ArtifactContextRenderHint as ot, ArtifactRelationTypeListRequest as p, ArtifactCompareRequestSchema as pt, ArtifactLifecycleHookDefinition as q, EvidenceRefSchema as qt, ArtifactCreatedPayload as r, ArtifactContextKnownRenderHint as rt, ArtifactKindRegisterRequest as s, ArtifactContextRenderHintSchema as st, ArtifactCreateRequest as t, defineArtifactLifecycleHooks as tt, ArtifactObservationAddedPayload as u, ArtifactActor as ut, ArtifactResolveContextResponse as v, ArtifactKindRegistration$1 as vt, ArtifactSchemas as w, ArtifactQueryScope as wt, ArtifactReviseRequest as x, ArtifactObservationSchema as xt, ArtifactResolveRequest as y, ArtifactKindRegistrationSchema as yt, AnyArtifactKindDefinition as z, ArtifactScopeSchema as zt };
5006
+ export { ArtifactContextRelationSelectorSchema as $, ArtifactContextTree as A, ArtifactHookFilter as B, ArtifactRevisedPayload as C, hydrateArtifactContextTree as D, ArtifactSubjects$1 as E, ArtifactKindDefinition as F, ArtifactReactionHookContext as G, ArtifactLifecycleHookEvent as H, ArtifactOf as I, BeforeArtifactHookRegistration as J, ArtifactReactionHookRegistration as K, defineArtifactKind as L, UnresolvedArtifactContextNode as M, AnyArtifactKindDefinition as N, ArtifactContextNode as O, ArtifactDataOf as P, ArtifactContextRelationSelector as Q, ArtifactDraft as R, ArtifactReviseResponse as S, ArtifactStatusChangedPayload as T, ArtifactLifecycleHookRegistration$1 as U, ArtifactLifecycleHookDefinition as V, ArtifactLifecycleSemanticEvent as W, ARTIFACT_CONTEXT_RENDER_HINTS as X, defineArtifactLifecycleHooks as Y, ArtifactContextKnownRenderHint as Z, ArtifactResolveContextRequest as _, ArtifactKindListRequest as a, ArtifactResolveResponse as b, ArtifactKindRegisterResponse as c, ArtifactQueryResponse as d, ArtifactContextRenderHint as et, ArtifactRelationAddedPayload as f, ArtifactRelationTypeRegisterResponse as g, ArtifactRelationTypeRegisterRequest as h, ArtifactKindChangedPayload as i, ResolvedArtifactContextNode as j, ArtifactContextRootNode as k, ArtifactNamespace as l, ArtifactRelationTypeListResponse as m, ArtifactCreateResponse as n, ArtifactContextSelector$1 as nt, ArtifactKindListResponse as o, ArtifactRelationTypeListRequest as p, BeforeArtifactHookContext as q, ArtifactCreatedPayload as r, ArtifactContextSelectorSchema as rt, ArtifactKindRegisterRequest as s, ArtifactCreateRequest as t, ArtifactContextRenderHintSchema as tt, ArtifactObservationAddedPayload as u, ArtifactResolveContextResponse as v, ArtifactSchemas as w, ArtifactReviseRequest as x, ArtifactResolveRequest as y, ArtifactDraftPatch as z };