@makaio/framework 1.0.0-dev-1783977266352 → 1.0.0-dev-1784144891135
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.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/config/index.d.mts +2 -2
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.mjs +3 -3
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{artifact-CGjnoyCC.mjs → artifact-Dnpy5ei_.mjs} +1 -1
- package/dist/{authority-state-bootstrap-CEuKScnL.mjs → authority-state-bootstrap-BlbmQ9A5.mjs} +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/context-resolution-CE1o3wTv.d.mts +1268 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -1
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +75 -75
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +4 -4
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +2 -2
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{detached-extension-handle-vDK194QV.mjs → detached-extension-handle-BVM-Ic-4.mjs} +1 -1
- package/dist/{filesystem-service-maY_P3yA.mjs → filesystem-service-qR9Zy5-r.mjs} +1 -1
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-CisClzat.mjs → globby-DE358g5u.mjs} +1 -1
- package/dist/{index-D3Eek6kd.d.mts → index-4WQgnxfO.d.mts} +158 -1044
- package/dist/{index-C6LZOiDv.d.mts → index-B96HlWaM.d.mts} +1 -1
- package/dist/{index-DMQlLz2W.d.mts → index-BB5xeWrm.d.mts} +6 -6
- package/dist/{index-DpZbaS7y.d.mts → index-BB6bmH1n.d.mts} +3 -3
- package/dist/{index-Bbr5LEUc.d.mts → index-BFAc9Mqw.d.mts} +1 -1
- package/dist/{index-Cx8jGKOs.d.mts → index-BMmJJJmZ.d.mts} +7 -7
- package/dist/{index-j2YlW_Fc.d.mts → index-B_KmL_z8.d.mts} +1 -1
- package/dist/{index-CagRgpXI2.d.mts → index-ChB3K_a12.d.mts} +1 -1
- package/dist/{index-BrAp9ntB.d.mts → index-CxxqBc3y.d.mts} +87 -87
- package/dist/{index-BxuiHVFi.d.mts → index-DA5S_dj8.d.mts} +1 -1
- package/dist/{index-BXWTilGs.d.mts → index-DHejCnq8.d.mts} +3 -3
- package/dist/{index-kqxUXYe7.d.mts → index-DL1L6Pvw.d.mts} +6 -6
- package/dist/{index-CHjKP5G0.d.mts → index-DeLkAZZ2.d.mts} +23 -10
- package/dist/{index-Cq6rXKae.d.mts → index-GmoTPQcx.d.mts} +92 -92
- package/dist/{index-D75FnT0B.d.mts → index-TWs1TQ2-.d.mts} +1 -1
- package/dist/index-n9dy5seY.d.mts +817 -0
- package/dist/{index-MTvmxwiu2.d.mts → index-wP-qhIoT2.d.mts} +4 -4
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/{lib-DktBDEoY.mjs → lib-6P8_sBCe.mjs} +1 -1
- package/dist/{lib-DIVnpS8e.mjs → lib-DhbCgfYD.mjs} +1 -1
- package/dist/{load-extensions-nqL5WAKj.mjs → load-extensions-5VckHXuw.mjs} +1 -1
- package/dist/{load-extensions-_EnedkUp.d.mts → load-extensions-jGQgvw6Z.d.mts} +1 -1
- package/dist/materialization-BBxXhthv.mjs +1 -0
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-dgNmx9g3.d.mts → namespace-BF1FZKiV.d.mts} +27 -27
- package/dist/{namespace-CukqFYHf2.d.mts → namespace-BQhnjUvN2.d.mts} +1 -1
- package/dist/{namespace-TLkZRkcU.d.mts → namespace-CXoCX9u1.d.mts} +20 -20
- package/dist/{namespace-BoA6u44C.d.mts → namespace-CbQ8hdd8.d.mts} +2 -2
- package/dist/{namespace-rO-C2Dgu2.d.mts → namespace-Cv8zbqwY.d.mts} +2 -2
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/{package-CsFFT9iR.mjs → package-Brt4dhRC.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/packages-BBJsifai.d.mts +532 -0
- package/dist/packages-I0D3JP9L.mjs +1 -0
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +3 -3
- package/dist/runtime-node/index.mjs +23 -23
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-CxN7d_MU.d.mts → schema-BwJf2zRN.d.mts} +1 -1
- package/dist/schemas-6H-dlMrB.mjs +1 -0
- package/dist/{schemas-OaBqeEUT.d.mts → schemas-D6zcRPQo.d.mts} +2 -2
- package/dist/{schemas-CIO03KSD2.d.mts → schemas-tF70HEfT.d.mts} +17 -17
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +3 -3
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/filesystem/namespace.d.mts +12 -12
- package/dist/services/filesystem/schemas.d.mts +6 -6
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +59 -308
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/materialization/index.d.mts +76 -0
- package/dist/services/materialization/index.mjs +1 -0
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/namespace.d.mts +14 -14
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/{src-Bo2eA51B.mjs → src-T5DtFSyU.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/tools-CWSuNk-M.mjs +1 -0
- package/dist/{transition-DjipYcC3.d.mts → transition-C9UOqw0W.d.mts} +2 -2
- package/dist/{types-B-xY9WW2.d.mts → types-Be7wY1De.d.mts} +1 -1
- package/dist/{types-DQsYUZwa.d.mts → types-he1s7Vd_.d.mts} +37 -37
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/index.d.mts +20 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/view-builder-D75mQTa1.d.mts +618 -0
- package/dist/{workflow-DFJYGjq_.mjs → workflow-DPeE6-Ta.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +68 -68
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-worker-BEFjCccX.mjs → workflow-worker-CPCh68Qf.mjs} +1 -1
- package/package.json +6 -2
- package/dist/definition-D7qCBmtc.d.mts +0 -60
- package/dist/index-CidblQAY.d.mts +0 -355
- package/dist/materialization-BwTORtBr.mjs +0 -1
- package/dist/schemas-DlCdlCEF.d.mts +0 -153
- package/dist/schemas-DlrQ0227.mjs +0 -1
- package/dist/tools-PC_L6g2m.mjs +0 -1
- /package/dist/{adapter-auth-runtime-a4O7cSNP.mjs → adapter-auth-runtime-CotG_6M4.mjs} +0 -0
- /package/dist/{adapter-binding-DDUyv1JK.d.mts → adapter-binding-DQ1HrGcH.d.mts} +0 -0
- /package/dist/{ajv-DfHhgdS5.mjs → ajv-WvFKnw8d.mjs} +0 -0
- /package/dist/{await-trigger-DP-fTQc4.mjs → await-trigger-COHFNyNi.mjs} +0 -0
- /package/dist/{base-orchestrator-BiShpVKL.d.mts → base-orchestrator-p3zIcnaJ.d.mts} +0 -0
- /package/dist/{capability-service-Dg2bU8qc.mjs → capability-service-TCOwWrLi.mjs} +0 -0
- /package/dist/{client-DmJwprw1.d.mts → client-CGEyBWKl.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-BK_vIjIo.mjs → client-binary-version-verifier-CaFlNNjs.mjs} +0 -0
- /package/dist/{client-binary-version-verifier-BwrMTAh2.d.mts → client-binary-version-verifier-WsNRplFB.d.mts} +0 -0
- /package/dist/{clients-namespace-B96QIJOs.d.mts → clients-namespace-ClKm1GLT.d.mts} +0 -0
- /package/dist/{config-namespace-x0fuhEXe.d.mts → config-namespace-DOw8R5eb.d.mts} +0 -0
- /package/dist/{create-static-mount-CBTXRtbN.mjs → create-static-mount-DM9qO98Q.mjs} +0 -0
- /package/dist/{cross-spawn-D9WWFl2a.mjs → cross-spawn-CVfmnMVP.mjs} +0 -0
- /package/dist/{cursor-storage-Bw-7ROzx.mjs → cursor-storage-BoFVjVGq.mjs} +0 -0
- /package/dist/{definition-BsTlOz99.d.mts → definition-BZrouYAq.d.mts} +0 -0
- /package/dist/{definition-Cbl0k6Fc.d.mts → definition-ClKlXenJ.d.mts} +0 -0
- /package/dist/{descriptor-to-package-Rs-OjOQU.mjs → descriptor-to-package-DCwvJoUE.mjs} +0 -0
- /package/dist/{drizzle-DYfaDzlO.mjs → drizzle-BQDvlDL2.mjs} +0 -0
- /package/dist/{esm-C_WW4-pP.mjs → esm-1UzF2r1U.mjs} +0 -0
- /package/dist/{event-DTM0-qWP.mjs → event-Ddxe4yp9.mjs} +0 -0
- /package/dist/{execution-target-Bg2wpfML.mjs → execution-target-D6PoGaO8.mjs} +0 -0
- /package/dist/{extension-discovery-APMf1Tes.d.mts → extension-discovery-Cce4FmRu.d.mts} +0 -0
- /package/dist/{filesystem-service-Bx0bR2Lb.d.mts → filesystem-service-CWBzOEAA.d.mts} +0 -0
- /package/dist/{handler-4pKQi3eo.mjs → handler-Bxs0moLY.mjs} +0 -0
- /package/dist/{identity-2qUT1NME.mjs → identity-D481xSkS.mjs} +0 -0
- /package/dist/{index-FDyqQIt5.d.mts → index-4b-ig5Uf.d.mts} +0 -0
- /package/dist/{index-Bv9lm0Kf.d.mts → index-BOlzcjwS.d.mts} +0 -0
- /package/dist/{index-S-mAqWwq.d.mts → index-BRdPSBFH2.d.mts} +0 -0
- /package/dist/{index-BmsPH78f2.d.mts → index-BcqWLD6J.d.mts} +0 -0
- /package/dist/{index-DmuGKvE2.d.mts → index-BfNfKh4y.d.mts} +0 -0
- /package/dist/{index-CSxfU0tB.d.mts → index-BjgfHTX4.d.mts} +0 -0
- /package/dist/{index-CarbJsC92.d.mts → index-BrvsExEF.d.mts} +0 -0
- /package/dist/{index-D0eUQjTU2.d.mts → index-C2PHX5Em.d.mts} +0 -0
- /package/dist/{index-BZ_DSGnE.d.mts → index-CNS1jyBU.d.mts} +0 -0
- /package/dist/{index-DoLdETfR.d.mts → index-CQco6KNL.d.mts} +0 -0
- /package/dist/{index-C18Pn3zP.d.mts → index-ChsmMZmN.d.mts} +0 -0
- /package/dist/{index-DwDBa2mb.d.mts → index-D3cH5U0n.d.mts} +0 -0
- /package/dist/{index-T96ydgVk.d.mts → index-DAVLhzkq.d.mts} +0 -0
- /package/dist/{index-9dISOTLT.d.mts → index-DIAmg04s.d.mts} +0 -0
- /package/dist/{index-DlAfs3RD.d.mts → index-DKCFz7dL.d.mts} +0 -0
- /package/dist/{index-DvaPrL6C.d.mts → index-DbP0yaRw.d.mts} +0 -0
- /package/dist/{index-2PsDAhPN.d.mts → index-DnPJWaO7.d.mts} +0 -0
- /package/dist/{index-DXBiCH2y.d.mts → index-Dx6P-ajY.d.mts} +0 -0
- /package/dist/{index-Rhcr4YNA.d.mts → index-Jec13bI-2.d.mts} +0 -0
- /package/dist/{index-BkAKfh4d.d.mts → index-M8rNEeH8.d.mts} +0 -0
- /package/dist/{index-DnWZdG6C.d.mts → index-NZ-gfUOw.d.mts} +0 -0
- /package/dist/{index-DfVSWBBp.d.mts → index-RtP5Mi4D.d.mts} +0 -0
- /package/dist/{index-_zsihEmk.d.mts → index-XLGBNeu0.d.mts} +0 -0
- /package/dist/{index-Bd52mmj9.d.mts → index-fFSPF7N0.d.mts} +0 -0
- /package/dist/{index-Ctw617Tj.d.mts → index-p1N3ZuqF.d.mts} +0 -0
- /package/dist/{json-value-C8duSh9X.d.mts → json-value-BsWNQQbr.d.mts} +0 -0
- /package/dist/{jsonl-transport-l5NPcQ_2.mjs → jsonl-transport-B70HQ9l1.mjs} +0 -0
- /package/dist/{lib-ClRTNIuz.mjs → lib-C_apP_9s.mjs} +0 -0
- /package/dist/{model-registry-C8MInDtX.mjs → model-registry-C3NX834K.mjs} +0 -0
- /package/dist/{namespace-HsI0Jbbr.mjs → namespace-B1_egU5J.mjs} +0 -0
- /package/dist/{namespace-Dar3O6iT.d.mts → namespace-BTp6-zD8.d.mts} +0 -0
- /package/dist/{namespace-Bl1UhLnK.d.mts → namespace-BqlDkdht2.d.mts} +0 -0
- /package/dist/{namespace-DoNigVgx.d.mts → namespace-BwAiuQ2_.d.mts} +0 -0
- /package/dist/{namespace-3YVLQ_bM.d.mts → namespace-CU1jSw6E.d.mts} +0 -0
- /package/dist/{namespace-BcDHt-ww.d.mts → namespace-CddQuUvG.d.mts} +0 -0
- /package/dist/{namespace-BsEoWXV_.d.mts → namespace-DNgZ_rfi.d.mts} +0 -0
- /package/dist/{namespace-VmsT_tLJ.d.mts → namespace-Dzbt8LqQ.d.mts} +0 -0
- /package/dist/{namespace-Dvi66QS6.d.mts → namespace-SwgMs4rw.d.mts} +0 -0
- /package/dist/{namespace-BhVlHfoO.d.mts → namespace-UCwUrFRx.d.mts} +0 -0
- /package/dist/{namespace-Xp9-g_r-.mjs → namespace-kIjqar0Y.mjs} +0 -0
- /package/dist/{orchestrator-shared-pxtyNu3W.d.mts → orchestrator-shared-DrEFeZYw.d.mts} +0 -0
- /package/dist/{orchestrator-shared-DAkGOu9H.mjs → orchestrator-shared-jYk9mi5C.mjs} +0 -0
- /package/dist/{out-BB6Kb4Xu.mjs → out-B6fO6go6.mjs} +0 -0
- /package/dist/{package-BYpWkSuQ.mjs → package-3cW8oIkI.mjs} +0 -0
- /package/dist/{package-DG9GSY8M.d.mts → package-BVm1EakP.d.mts} +0 -0
- /package/dist/{providers-namespace-O4de1tgO.d.mts → providers-namespace-Bl3M8Ibo.d.mts} +0 -0
- /package/dist/{quick-lru-BLaSzINB.mjs → quick-lru-Coxb6GVa.mjs} +0 -0
- /package/dist/{registry-TJjQgTgp.mjs → registry-ElIHcMM2.mjs} +0 -0
- /package/dist/{schemas-9QJf1FtS.d.mts → schemas-B3K1ekm7.d.mts} +0 -0
- /package/dist/{schemas-jDRSOXJL.d.mts → schemas-BKgUDm_a2.d.mts} +0 -0
- /package/dist/{schemas-XRhqOgVE.d.mts → schemas-CVbfHPw-.d.mts} +0 -0
- /package/dist/{schemas-CLsbsX1W.d.mts → schemas-CzT0LApM.d.mts} +0 -0
- /package/dist/{schemas-D_9X_CRo.d.mts → schemas-DPosZWw-.d.mts} +0 -0
- /package/dist/{schemas-fRLDhefF.d.mts → schemas-D_H0ztxl.d.mts} +0 -0
- /package/dist/{schemas-qpo1Goit.d.mts → schemas-DfZ85CRF2.d.mts} +0 -0
- /package/dist/{schemas-K3Td_WdR.d.mts → schemas-Dq_g7Giu.d.mts} +0 -0
- /package/dist/{schemas-DwfTUQIa.mjs → schemas-FiDj_kLq.mjs} +0 -0
- /package/dist/{schemas-qt5QTjVc.d.mts → schemas-pl0mzEtO.d.mts} +0 -0
- /package/dist/{server-lifecycle-D-jxVr_0.mjs → server-lifecycle-DLdh0-4H.mjs} +0 -0
- /package/dist/{server-lifecycle-r5Tkk8bU.d.mts → server-lifecycle-DzO3rjKP.d.mts} +0 -0
- /package/dist/{session-lineage-YShrn77v.d.mts → session-lineage-COFDOi7x.d.mts} +0 -0
- /package/dist/{src-Ci_WY9uw.mjs → src-Dqa1n_kI.mjs} +0 -0
- /package/dist/{storage-namespace-BzE2M4Hq.mjs → storage-namespace-B1_x8Ho2.mjs} +0 -0
- /package/dist/{storage-namespace-DWKFqEW-.d.mts → storage-namespace-D4yQ--Sp.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-BZJGSaX3.d.mts → storage-namespace-definition-BzSaRLtZ.d.mts} +0 -0
- /package/dist/{supports-color-Dzp6WuF5.mjs → supports-color-CCdGjFUY.mjs} +0 -0
- /package/dist/{tool-approval-service-Dh0XI21f.mjs → tool-approval-service-BgSn_6NT.mjs} +0 -0
- /package/dist/{tray-menu-service-Bonl2KXf.mjs → tray-menu-service-BJ9r7IY3.mjs} +0 -0
- /package/dist/{types-BCW9kr4L.d.mts → types-B9QOZAZ5.d.mts} +0 -0
- /package/dist/{types-DWNoZ3Sd.d.mts → types-Bgb8eQkd.d.mts} +0 -0
- /package/dist/{types-DvKaEOOn.d.mts → types-C8_OhAFv.d.mts} +0 -0
- /package/dist/{types-CrJ7KEZ0.d.mts → types-Diu9uAnB.d.mts} +0 -0
- /package/dist/{window-registry-WsWu-rcK.d.mts → window-registry-CHv3cgSN.d.mts} +0 -0
|
@@ -0,0 +1,1268 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
3
|
+
|
|
4
|
+
//#region core/contracts/src/artifact/schemas.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Identifies the actor (agent, user, system) that produced or asserted
|
|
7
|
+
* an artifact revision or confidence basis.
|
|
8
|
+
*/
|
|
9
|
+
declare const ArtifactActorSchema: z.ZodObject<{
|
|
10
|
+
kind: z.ZodString;
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/**
|
|
15
|
+
* Describes the scope at which an artifact revision is relevant.
|
|
16
|
+
*
|
|
17
|
+
* `level` is an open string (e.g. `'session'`, `'project'`, `'global'`)
|
|
18
|
+
* so that product-owned kinds can declare domain-specific scope levels
|
|
19
|
+
* without modifying the framework contract.
|
|
20
|
+
*
|
|
21
|
+
* `ids` carries the scope-identifying foreign keys when `level` names a
|
|
22
|
+
* concrete artifact owner. Query filters use {@link ArtifactQueryScopeSchema}
|
|
23
|
+
* because level-only queries are valid there but not for persisted revisions.
|
|
24
|
+
*/
|
|
25
|
+
declare const ArtifactScopeSchema: z.ZodObject<{
|
|
26
|
+
level: z.ZodString;
|
|
27
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
/**
|
|
30
|
+
* Scope filter for artifact queries.
|
|
31
|
+
*
|
|
32
|
+
* Unlike persisted artifact scopes, query scopes may be level-only to request
|
|
33
|
+
* all revisions at a level, e.g. `{ level: 'session' }`.
|
|
34
|
+
*/
|
|
35
|
+
declare const ArtifactQueryScopeSchema: z.ZodObject<{
|
|
36
|
+
level: z.ZodString;
|
|
37
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
/**
|
|
40
|
+
* An immutable pointer to a specific revision of an artifact.
|
|
41
|
+
*
|
|
42
|
+
* All three fields together uniquely identify a persisted snapshot
|
|
43
|
+
* and are safe to store as foreign keys.
|
|
44
|
+
*
|
|
45
|
+
* `refClass` is a literal discriminant that allows {@link ArtifactRelationTargetSchema}
|
|
46
|
+
* to use a discriminated union and prevents silent field-stripping when an
|
|
47
|
+
* {@link EvidenceRefSchema} carrying a `locator` is parsed against this schema.
|
|
48
|
+
*/
|
|
49
|
+
declare const ArtifactRefSchema: z.ZodObject<{
|
|
50
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
revision: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
/**
|
|
56
|
+
* A pointer to a named sub-element within a specific artifact revision.
|
|
57
|
+
*
|
|
58
|
+
* Used when a relation target is a structural part of an artifact rather
|
|
59
|
+
* than the artifact itself (e.g. a specific line in a code-review artifact).
|
|
60
|
+
*
|
|
61
|
+
* `refClass` is a literal discriminant for {@link ArtifactRelationTargetSchema}.
|
|
62
|
+
*/
|
|
63
|
+
declare const LocalRefSchema: z.ZodObject<{
|
|
64
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
65
|
+
artifact: z.ZodObject<{
|
|
66
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
67
|
+
kind: z.ZodString;
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
revision: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
localId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
/**
|
|
74
|
+
* A pointer to external evidence — a source outside the artifact store.
|
|
75
|
+
*
|
|
76
|
+
* `revision` and `locator` are both optional so callers can supply as
|
|
77
|
+
* much precision as is available (e.g. a commit SHA + file path, or just
|
|
78
|
+
* a document URL).
|
|
79
|
+
*
|
|
80
|
+
* `refClass` is a literal discriminant for {@link ArtifactRelationTargetSchema}.
|
|
81
|
+
*/
|
|
82
|
+
declare const EvidenceRefSchema: z.ZodObject<{
|
|
83
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
84
|
+
kind: z.ZodString;
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
87
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const ArtifactRelationTargetSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
90
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
91
|
+
kind: z.ZodString;
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
revision: z.ZodString;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
96
|
+
artifact: z.ZodObject<{
|
|
97
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
98
|
+
kind: z.ZodString;
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
revision: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
localId: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
105
|
+
kind: z.ZodString;
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
108
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>], "refClass">>;
|
|
110
|
+
/**
|
|
111
|
+
* Relation target schema for use in {@link ArtifactQueryRequestSchema}.
|
|
112
|
+
*
|
|
113
|
+
* Relaxes the `artifact` variant to allow identity-only lookups (kind + id)
|
|
114
|
+
* without a specific revision. Storage relations must still use the exact
|
|
115
|
+
* {@link ArtifactRelationTargetSchema} which requires revision.
|
|
116
|
+
*
|
|
117
|
+
* Supports `refClass` inference via {@link inferArtifactRelationQueryTargetRefClass}
|
|
118
|
+
* for wire payloads that omit the discriminant. Defaults to `'artifact'` when
|
|
119
|
+
* neither local-ref nor evidence fields are present, unlike storage inference
|
|
120
|
+
* which requires `revision` to distinguish artifact from evidence refs.
|
|
121
|
+
*/
|
|
122
|
+
declare const ArtifactRelationQueryTargetSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
123
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
124
|
+
kind: z.ZodString;
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
129
|
+
artifact: z.ZodObject<{
|
|
130
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
131
|
+
kind: z.ZodString;
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
revision: z.ZodString;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
localId: z.ZodString;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
138
|
+
kind: z.ZodString;
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
141
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>], "refClass">>;
|
|
143
|
+
/**
|
|
144
|
+
* A typed directional link from one artifact to a relation target.
|
|
145
|
+
*
|
|
146
|
+
* `type` is an open string registered via {@link RelationTypeRegistrationSchema}.
|
|
147
|
+
*/
|
|
148
|
+
declare const ArtifactRelationSchema: z.ZodObject<{
|
|
149
|
+
type: z.ZodString;
|
|
150
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
152
|
+
kind: z.ZodString;
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
revision: z.ZodString;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
157
|
+
artifact: z.ZodObject<{
|
|
158
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
159
|
+
kind: z.ZodString;
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
revision: z.ZodString;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
localId: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
166
|
+
kind: z.ZodString;
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
169
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>], "refClass">>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
/**
|
|
173
|
+
* Ordered confidence levels for artifact assertions.
|
|
174
|
+
*
|
|
175
|
+
* Levels progress from weakest to strongest epistemic warrant:
|
|
176
|
+
* `assumed` → `inferred` → `stated` → `confirmed` → `verified`
|
|
177
|
+
*/
|
|
178
|
+
declare const ConfidenceLevelSchema: z.ZodEnum<{
|
|
179
|
+
inferred: "inferred";
|
|
180
|
+
assumed: "assumed";
|
|
181
|
+
stated: "stated";
|
|
182
|
+
confirmed: "confirmed";
|
|
183
|
+
verified: "verified";
|
|
184
|
+
}>;
|
|
185
|
+
/**
|
|
186
|
+
* One piece of evidence contributing to the overall confidence of an artifact.
|
|
187
|
+
*
|
|
188
|
+
* Multiple bases can be accumulated for the same artifact revision as
|
|
189
|
+
* additional actors review or verify it.
|
|
190
|
+
*/
|
|
191
|
+
declare const ConfidenceBasisSchema: z.ZodObject<{
|
|
192
|
+
kind: z.ZodString;
|
|
193
|
+
actor: z.ZodObject<{
|
|
194
|
+
kind: z.ZodString;
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
timestamp: z.ZodNumber;
|
|
199
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
200
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
202
|
+
kind: z.ZodString;
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
revision: z.ZodString;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
207
|
+
artifact: z.ZodObject<{
|
|
208
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
209
|
+
kind: z.ZodString;
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
revision: z.ZodString;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
localId: z.ZodString;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
216
|
+
kind: z.ZodString;
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
219
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>], "refClass">>>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
/**
|
|
223
|
+
* Aggregated confidence metadata for an artifact revision.
|
|
224
|
+
*
|
|
225
|
+
* `basis` carries the ordered set of individual evidence entries that
|
|
226
|
+
* together justify the overall `level`.
|
|
227
|
+
*/
|
|
228
|
+
declare const ConfidenceMetadataSchema: z.ZodObject<{
|
|
229
|
+
level: z.ZodEnum<{
|
|
230
|
+
inferred: "inferred";
|
|
231
|
+
assumed: "assumed";
|
|
232
|
+
stated: "stated";
|
|
233
|
+
confirmed: "confirmed";
|
|
234
|
+
verified: "verified";
|
|
235
|
+
}>;
|
|
236
|
+
basis: z.ZodArray<z.ZodObject<{
|
|
237
|
+
kind: z.ZodString;
|
|
238
|
+
actor: z.ZodObject<{
|
|
239
|
+
kind: z.ZodString;
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
timestamp: z.ZodNumber;
|
|
244
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
245
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
246
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
247
|
+
kind: z.ZodString;
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
revision: z.ZodString;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
252
|
+
artifact: z.ZodObject<{
|
|
253
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
254
|
+
kind: z.ZodString;
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
revision: z.ZodString;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
localId: z.ZodString;
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
261
|
+
kind: z.ZodString;
|
|
262
|
+
id: z.ZodString;
|
|
263
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
264
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>], "refClass">>>;
|
|
266
|
+
}, z.core.$strip>>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
/**
|
|
269
|
+
* A single typed observation attached to an artifact revision.
|
|
270
|
+
*
|
|
271
|
+
* Observations are append-only — they do not mutate the revision's `data`
|
|
272
|
+
* but augment it with actor-sourced findings.
|
|
273
|
+
*/
|
|
274
|
+
declare const ArtifactObservationSchema: z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
kind: z.ZodString;
|
|
277
|
+
summary: z.ZodString;
|
|
278
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
279
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
info: "info";
|
|
281
|
+
warning: "warning";
|
|
282
|
+
blocker: "blocker";
|
|
283
|
+
}>>;
|
|
284
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
regarding: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
286
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
287
|
+
kind: z.ZodString;
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
revision: z.ZodString;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
292
|
+
artifact: z.ZodObject<{
|
|
293
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
294
|
+
kind: z.ZodString;
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
revision: z.ZodString;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
localId: z.ZodString;
|
|
299
|
+
}, z.core.$strip>]>>;
|
|
300
|
+
evidence: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
301
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
302
|
+
kind: z.ZodString;
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
revision: z.ZodString;
|
|
305
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
307
|
+
kind: z.ZodString;
|
|
308
|
+
id: z.ZodString;
|
|
309
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
310
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>]>>;
|
|
312
|
+
actor: z.ZodObject<{
|
|
313
|
+
kind: z.ZodString;
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
timestamp: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
/**
|
|
320
|
+
* Human-readable rendering hints for an artifact revision.
|
|
321
|
+
*
|
|
322
|
+
* All fields are optional — consumers may fall back to raw `data` when
|
|
323
|
+
* none are provided.
|
|
324
|
+
*/
|
|
325
|
+
declare const ArtifactRepresentationsSchema: z.ZodObject<{
|
|
326
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
327
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
328
|
+
plaintext: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
/**
|
|
331
|
+
* A complete, immutable artifact revision.
|
|
332
|
+
*
|
|
333
|
+
* Each write to the artifact store creates a new revision; the previous
|
|
334
|
+
* revision is never mutated. Callers should use the generic {@link ArtifactRevision}
|
|
335
|
+
* type alias when they need a strongly-typed `data` field.
|
|
336
|
+
*/
|
|
337
|
+
declare const ArtifactRevisionSchema: z.ZodObject<{
|
|
338
|
+
kind: z.ZodString;
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
revision: z.ZodString;
|
|
341
|
+
scope: z.ZodObject<{
|
|
342
|
+
level: z.ZodString;
|
|
343
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
schemaVersion: z.ZodString;
|
|
346
|
+
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
347
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
348
|
+
type: z.ZodString;
|
|
349
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
350
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
351
|
+
kind: z.ZodString;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
revision: z.ZodString;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
356
|
+
artifact: z.ZodObject<{
|
|
357
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
358
|
+
kind: z.ZodString;
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
revision: z.ZodString;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
localId: z.ZodString;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
365
|
+
kind: z.ZodString;
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
368
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>], "refClass">>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
confidence: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
level: z.ZodEnum<{
|
|
373
|
+
inferred: "inferred";
|
|
374
|
+
assumed: "assumed";
|
|
375
|
+
stated: "stated";
|
|
376
|
+
confirmed: "confirmed";
|
|
377
|
+
verified: "verified";
|
|
378
|
+
}>;
|
|
379
|
+
basis: z.ZodArray<z.ZodObject<{
|
|
380
|
+
kind: z.ZodString;
|
|
381
|
+
actor: z.ZodObject<{
|
|
382
|
+
kind: z.ZodString;
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
timestamp: z.ZodNumber;
|
|
387
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
388
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
389
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
390
|
+
kind: z.ZodString;
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
revision: z.ZodString;
|
|
393
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
394
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
395
|
+
artifact: z.ZodObject<{
|
|
396
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
397
|
+
kind: z.ZodString;
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
revision: z.ZodString;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
localId: z.ZodString;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
404
|
+
kind: z.ZodString;
|
|
405
|
+
id: z.ZodString;
|
|
406
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
407
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>], "refClass">>>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
representations: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
413
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
414
|
+
plaintext: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
|
+
actor: z.ZodObject<{
|
|
417
|
+
kind: z.ZodString;
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
timestamp: z.ZodNumber;
|
|
422
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
/**
|
|
425
|
+
* Strategy used when two revisions of the same artifact conflict.
|
|
426
|
+
*
|
|
427
|
+
* - `supersedes` — newer revision wins; older is archived automatically
|
|
428
|
+
* - `manual` — host must resolve the conflict explicitly
|
|
429
|
+
* - `coexist` — both revisions are kept; conflict is surfaced to consumers
|
|
430
|
+
*/
|
|
431
|
+
declare const ArtifactConflictPolicySchema: z.ZodEnum<{
|
|
432
|
+
manual: "manual";
|
|
433
|
+
supersedes: "supersedes";
|
|
434
|
+
coexist: "coexist";
|
|
435
|
+
}>;
|
|
436
|
+
/**
|
|
437
|
+
* Registration record for a named artifact kind.
|
|
438
|
+
*
|
|
439
|
+
* Kind registrations are declared by product extensions and consumed by the
|
|
440
|
+
* artifact service to validate, index, and lifecycle-manage revisions of that kind.
|
|
441
|
+
*/
|
|
442
|
+
declare const ArtifactKindRegistrationSchema: z.ZodObject<{
|
|
443
|
+
kind: z.ZodString;
|
|
444
|
+
description: z.ZodString;
|
|
445
|
+
schemaVersion: z.ZodString;
|
|
446
|
+
dataSchema: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
447
|
+
scopeSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
448
|
+
observationSchema: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
449
|
+
discriminator: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
450
|
+
conflictPolicy: z.ZodEnum<{
|
|
451
|
+
manual: "manual";
|
|
452
|
+
supersedes: "supersedes";
|
|
453
|
+
coexist: "coexist";
|
|
454
|
+
}>;
|
|
455
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
path: z.ZodString;
|
|
457
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
defaultRelevance: z.ZodOptional<z.ZodEnum<{
|
|
461
|
+
active: "active";
|
|
462
|
+
fading: "fading";
|
|
463
|
+
retired: "retired";
|
|
464
|
+
archived: "archived";
|
|
465
|
+
}>>;
|
|
466
|
+
decayPolicy: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
indexedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
469
|
+
searchableFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
mode: z.ZodEnum<{
|
|
472
|
+
none: "none";
|
|
473
|
+
comment: "comment";
|
|
474
|
+
surface: "surface";
|
|
475
|
+
}>;
|
|
476
|
+
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
477
|
+
artifact: "artifact";
|
|
478
|
+
workpiece: "workpiece";
|
|
479
|
+
}>>;
|
|
480
|
+
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
481
|
+
created: "created";
|
|
482
|
+
revised: "revised";
|
|
483
|
+
"status-changed": "status-changed";
|
|
484
|
+
"observation-added": "observation-added";
|
|
485
|
+
}>>>;
|
|
486
|
+
projectedFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
487
|
+
path: z.ZodString;
|
|
488
|
+
semantic: z.ZodOptional<z.ZodEnum<{
|
|
489
|
+
status: "status";
|
|
490
|
+
workflow: "workflow";
|
|
491
|
+
priority: "priority";
|
|
492
|
+
}>>;
|
|
493
|
+
fromLevel: z.ZodOptional<z.ZodEnum<{
|
|
494
|
+
link: "link";
|
|
495
|
+
summary: "summary";
|
|
496
|
+
full: "full";
|
|
497
|
+
}>>;
|
|
498
|
+
viewRole: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
title: "title";
|
|
500
|
+
summary: "summary";
|
|
501
|
+
}>>;
|
|
502
|
+
}, z.core.$strip>>>;
|
|
503
|
+
affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
504
|
+
kind: z.ZodLiteral<"own-view">;
|
|
505
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
506
|
+
kind: z.ZodLiteral<"inline">;
|
|
507
|
+
hostRelation: z.ZodString;
|
|
508
|
+
as: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
link: "link";
|
|
510
|
+
summary: "summary";
|
|
511
|
+
full: "full";
|
|
512
|
+
}>>;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"entry">;
|
|
515
|
+
via: z.ZodOptional<z.ZodString>;
|
|
516
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
517
|
+
title: z.ZodOptional<z.ZodString>;
|
|
518
|
+
}, z.core.$strip>], "kind">>>;
|
|
519
|
+
}, z.core.$strip>>;
|
|
520
|
+
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>>>>>;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
/**
|
|
523
|
+
* Registration record for a named relation type.
|
|
524
|
+
*
|
|
525
|
+
* Relation type registrations declare the semantics and valid endpoints
|
|
526
|
+
* for a given relation `type` string.
|
|
527
|
+
*/
|
|
528
|
+
declare const RelationTypeRegistrationSchema: z.ZodObject<{
|
|
529
|
+
type: z.ZodString;
|
|
530
|
+
symmetry: z.ZodEnum<{
|
|
531
|
+
asymmetric: "asymmetric";
|
|
532
|
+
symmetric: "symmetric";
|
|
533
|
+
}>;
|
|
534
|
+
implication: z.ZodOptional<z.ZodString>;
|
|
535
|
+
sourceKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
536
|
+
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
537
|
+
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
538
|
+
local: "local";
|
|
539
|
+
artifact: "artifact";
|
|
540
|
+
evidence: "evidence";
|
|
541
|
+
}>>>;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
/**
|
|
544
|
+
* Query parameters for retrieving artifact revisions from the store.
|
|
545
|
+
*
|
|
546
|
+
* All fields are optional and composed with AND semantics; omitting a field
|
|
547
|
+
* leaves that dimension unconstrained.
|
|
548
|
+
*/
|
|
549
|
+
declare const ArtifactQueryRequestSchema: z.ZodObject<{
|
|
550
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
551
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
level: z.ZodString;
|
|
553
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
554
|
+
}, z.core.$strip>>;
|
|
555
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
556
|
+
currentOnly: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
+
search: z.ZodOptional<z.ZodString>;
|
|
558
|
+
relation: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
type: z.ZodOptional<z.ZodString>;
|
|
560
|
+
target: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
561
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
562
|
+
kind: z.ZodString;
|
|
563
|
+
id: z.ZodString;
|
|
564
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
567
|
+
artifact: z.ZodObject<{
|
|
568
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
569
|
+
kind: z.ZodString;
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
revision: z.ZodString;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
localId: z.ZodString;
|
|
574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
575
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
576
|
+
kind: z.ZodString;
|
|
577
|
+
id: z.ZodString;
|
|
578
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
579
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
580
|
+
}, z.core.$strip>], "refClass">>>;
|
|
581
|
+
}, z.core.$strip>>;
|
|
582
|
+
confidence: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
maxLevel: z.ZodOptional<z.ZodEnum<{
|
|
584
|
+
inferred: "inferred";
|
|
585
|
+
assumed: "assumed";
|
|
586
|
+
stated: "stated";
|
|
587
|
+
confirmed: "confirmed";
|
|
588
|
+
verified: "verified";
|
|
589
|
+
}>>;
|
|
590
|
+
minLevel: z.ZodOptional<z.ZodEnum<{
|
|
591
|
+
inferred: "inferred";
|
|
592
|
+
assumed: "assumed";
|
|
593
|
+
stated: "stated";
|
|
594
|
+
confirmed: "confirmed";
|
|
595
|
+
verified: "verified";
|
|
596
|
+
}>>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
indexed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
599
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
/**
|
|
602
|
+
* Request to compare two artifact revisions.
|
|
603
|
+
*/
|
|
604
|
+
declare const ArtifactCompareRequestSchema: z.ZodObject<{
|
|
605
|
+
base: z.ZodObject<{
|
|
606
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
607
|
+
kind: z.ZodString;
|
|
608
|
+
id: z.ZodString;
|
|
609
|
+
revision: z.ZodString;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
target: z.ZodObject<{
|
|
612
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
613
|
+
kind: z.ZodString;
|
|
614
|
+
id: z.ZodString;
|
|
615
|
+
revision: z.ZodString;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
/**
|
|
619
|
+
* Result of comparing two artifact revisions.
|
|
620
|
+
*
|
|
621
|
+
* `changedPaths` lists the dot-separated paths within `data` that differ
|
|
622
|
+
* between `base` and `target`.
|
|
623
|
+
*/
|
|
624
|
+
declare const ArtifactCompareResponseSchema: z.ZodObject<{
|
|
625
|
+
base: z.ZodObject<{
|
|
626
|
+
kind: z.ZodString;
|
|
627
|
+
id: z.ZodString;
|
|
628
|
+
revision: z.ZodString;
|
|
629
|
+
scope: z.ZodObject<{
|
|
630
|
+
level: z.ZodString;
|
|
631
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
632
|
+
}, z.core.$strip>;
|
|
633
|
+
schemaVersion: z.ZodString;
|
|
634
|
+
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
635
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
636
|
+
type: z.ZodString;
|
|
637
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
638
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
639
|
+
kind: z.ZodString;
|
|
640
|
+
id: z.ZodString;
|
|
641
|
+
revision: z.ZodString;
|
|
642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
643
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
644
|
+
artifact: z.ZodObject<{
|
|
645
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
646
|
+
kind: z.ZodString;
|
|
647
|
+
id: z.ZodString;
|
|
648
|
+
revision: z.ZodString;
|
|
649
|
+
}, z.core.$strip>;
|
|
650
|
+
localId: z.ZodString;
|
|
651
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
652
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
653
|
+
kind: z.ZodString;
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
656
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
657
|
+
}, z.core.$strip>], "refClass">>;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
confidence: z.ZodOptional<z.ZodObject<{
|
|
660
|
+
level: z.ZodEnum<{
|
|
661
|
+
inferred: "inferred";
|
|
662
|
+
assumed: "assumed";
|
|
663
|
+
stated: "stated";
|
|
664
|
+
confirmed: "confirmed";
|
|
665
|
+
verified: "verified";
|
|
666
|
+
}>;
|
|
667
|
+
basis: z.ZodArray<z.ZodObject<{
|
|
668
|
+
kind: z.ZodString;
|
|
669
|
+
actor: z.ZodObject<{
|
|
670
|
+
kind: z.ZodString;
|
|
671
|
+
id: z.ZodString;
|
|
672
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
timestamp: z.ZodNumber;
|
|
675
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
676
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
677
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
678
|
+
kind: z.ZodString;
|
|
679
|
+
id: z.ZodString;
|
|
680
|
+
revision: z.ZodString;
|
|
681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
682
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
683
|
+
artifact: z.ZodObject<{
|
|
684
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
685
|
+
kind: z.ZodString;
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
revision: z.ZodString;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
localId: z.ZodString;
|
|
690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
691
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
692
|
+
kind: z.ZodString;
|
|
693
|
+
id: z.ZodString;
|
|
694
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
695
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$strip>], "refClass">>>;
|
|
697
|
+
}, z.core.$strip>>;
|
|
698
|
+
}, z.core.$strip>>;
|
|
699
|
+
representations: z.ZodOptional<z.ZodObject<{
|
|
700
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
701
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
702
|
+
plaintext: z.ZodOptional<z.ZodString>;
|
|
703
|
+
}, z.core.$strip>>;
|
|
704
|
+
actor: z.ZodObject<{
|
|
705
|
+
kind: z.ZodString;
|
|
706
|
+
id: z.ZodString;
|
|
707
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
timestamp: z.ZodNumber;
|
|
710
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
target: z.ZodObject<{
|
|
713
|
+
kind: z.ZodString;
|
|
714
|
+
id: z.ZodString;
|
|
715
|
+
revision: z.ZodString;
|
|
716
|
+
scope: z.ZodObject<{
|
|
717
|
+
level: z.ZodString;
|
|
718
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
schemaVersion: z.ZodString;
|
|
721
|
+
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
722
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
723
|
+
type: z.ZodString;
|
|
724
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
725
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
726
|
+
kind: z.ZodString;
|
|
727
|
+
id: z.ZodString;
|
|
728
|
+
revision: z.ZodString;
|
|
729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
730
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
731
|
+
artifact: z.ZodObject<{
|
|
732
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
733
|
+
kind: z.ZodString;
|
|
734
|
+
id: z.ZodString;
|
|
735
|
+
revision: z.ZodString;
|
|
736
|
+
}, z.core.$strip>;
|
|
737
|
+
localId: z.ZodString;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
740
|
+
kind: z.ZodString;
|
|
741
|
+
id: z.ZodString;
|
|
742
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
743
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
744
|
+
}, z.core.$strip>], "refClass">>;
|
|
745
|
+
}, z.core.$strip>>;
|
|
746
|
+
confidence: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
level: z.ZodEnum<{
|
|
748
|
+
inferred: "inferred";
|
|
749
|
+
assumed: "assumed";
|
|
750
|
+
stated: "stated";
|
|
751
|
+
confirmed: "confirmed";
|
|
752
|
+
verified: "verified";
|
|
753
|
+
}>;
|
|
754
|
+
basis: z.ZodArray<z.ZodObject<{
|
|
755
|
+
kind: z.ZodString;
|
|
756
|
+
actor: z.ZodObject<{
|
|
757
|
+
kind: z.ZodString;
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
timestamp: z.ZodNumber;
|
|
762
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
763
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
764
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
765
|
+
kind: z.ZodString;
|
|
766
|
+
id: z.ZodString;
|
|
767
|
+
revision: z.ZodString;
|
|
768
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
769
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
770
|
+
artifact: z.ZodObject<{
|
|
771
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
772
|
+
kind: z.ZodString;
|
|
773
|
+
id: z.ZodString;
|
|
774
|
+
revision: z.ZodString;
|
|
775
|
+
}, z.core.$strip>;
|
|
776
|
+
localId: z.ZodString;
|
|
777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
778
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
779
|
+
kind: z.ZodString;
|
|
780
|
+
id: z.ZodString;
|
|
781
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
782
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
783
|
+
}, z.core.$strip>], "refClass">>>;
|
|
784
|
+
}, z.core.$strip>>;
|
|
785
|
+
}, z.core.$strip>>;
|
|
786
|
+
representations: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
788
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
789
|
+
plaintext: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strip>>;
|
|
791
|
+
actor: z.ZodObject<{
|
|
792
|
+
kind: z.ZodString;
|
|
793
|
+
id: z.ZodString;
|
|
794
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
timestamp: z.ZodNumber;
|
|
797
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
}, z.core.$strip>;
|
|
799
|
+
changedPaths: z.ZodArray<z.ZodString>;
|
|
800
|
+
}, z.core.$strip>;
|
|
801
|
+
/** Actor identity for artifact authorship and confidence attribution. */
|
|
802
|
+
type ArtifactActor = z.infer<typeof ArtifactActorSchema>;
|
|
803
|
+
/** Scope descriptor for an artifact revision. */
|
|
804
|
+
type ArtifactScope = z.infer<typeof ArtifactScopeSchema>;
|
|
805
|
+
/** Scope descriptor for artifact query filters. */
|
|
806
|
+
type ArtifactQueryScope = z.infer<typeof ArtifactQueryScopeSchema>;
|
|
807
|
+
/** Immutable pointer to a specific artifact revision. */
|
|
808
|
+
type ArtifactRef$1 = z.infer<typeof ArtifactRefSchema>;
|
|
809
|
+
/** Pointer to a named sub-element within a specific artifact revision. */
|
|
810
|
+
type LocalRef = z.infer<typeof LocalRefSchema>;
|
|
811
|
+
/** Pointer to external evidence outside the artifact store. */
|
|
812
|
+
type EvidenceRef = z.infer<typeof EvidenceRefSchema>;
|
|
813
|
+
/** Union of all valid relation-target reference classes. */
|
|
814
|
+
type ArtifactRelationTarget = z.infer<typeof ArtifactRelationTargetSchema>;
|
|
815
|
+
/** Union of all valid relation-target reference classes for query filters. Artifact refs may omit revision. */
|
|
816
|
+
type ArtifactRelationQueryTarget = z.infer<typeof ArtifactRelationQueryTargetSchema>;
|
|
817
|
+
/** A typed directional link from an artifact to a relation target. */
|
|
818
|
+
type ArtifactRelation = z.infer<typeof ArtifactRelationSchema>;
|
|
819
|
+
/** Ordered confidence level for an artifact assertion. */
|
|
820
|
+
type ConfidenceLevel = z.infer<typeof ConfidenceLevelSchema>;
|
|
821
|
+
/** One piece of evidence contributing to overall artifact confidence. */
|
|
822
|
+
type ConfidenceBasis = z.infer<typeof ConfidenceBasisSchema>;
|
|
823
|
+
/** Aggregated confidence metadata for an artifact revision. */
|
|
824
|
+
type ConfidenceMetadata = z.infer<typeof ConfidenceMetadataSchema>;
|
|
825
|
+
/** A typed observation attached to an artifact revision. */
|
|
826
|
+
type ArtifactObservation$1 = z.infer<typeof ArtifactObservationSchema>;
|
|
827
|
+
/** Human-readable rendering hints for an artifact revision. */
|
|
828
|
+
type ArtifactRepresentations = z.infer<typeof ArtifactRepresentationsSchema>;
|
|
829
|
+
/**
|
|
830
|
+
* A complete, immutable artifact revision.
|
|
831
|
+
*
|
|
832
|
+
* The generic `TData` parameter narrows the `data` field to a specific
|
|
833
|
+
* kind-validated shape, while defaulting to `Record<string, unknown>` for
|
|
834
|
+
* untyped call sites.
|
|
835
|
+
* @typeParam TData - Kind-specific payload type for the `data` field.
|
|
836
|
+
*/
|
|
837
|
+
type ArtifactRevision$1<TData extends Record<string, unknown> = Record<string, unknown>> = Omit<z.infer<typeof ArtifactRevisionSchema>, 'data'> & {
|
|
838
|
+
data: TData;
|
|
839
|
+
};
|
|
840
|
+
/** Conflict resolution strategy for an artifact kind. */
|
|
841
|
+
type ArtifactConflictPolicy = z.infer<typeof ArtifactConflictPolicySchema>;
|
|
842
|
+
/** Registration record for a named artifact kind. */
|
|
843
|
+
type ArtifactKindRegistration$1 = z.infer<typeof ArtifactKindRegistrationSchema>;
|
|
844
|
+
/** Registration record for a named relation type. */
|
|
845
|
+
type RelationTypeRegistration$1 = z.infer<typeof RelationTypeRegistrationSchema>;
|
|
846
|
+
/** Query parameters for retrieving artifact revisions from the store. */
|
|
847
|
+
type ArtifactQueryRequest = z.infer<typeof ArtifactQueryRequestSchema>;
|
|
848
|
+
/** Request to compare two artifact revisions. */
|
|
849
|
+
type ArtifactCompareRequest = z.infer<typeof ArtifactCompareRequestSchema>;
|
|
850
|
+
/** Result of comparing two artifact revisions. */
|
|
851
|
+
type ArtifactCompareResponse = z.infer<typeof ArtifactCompareResponseSchema>;
|
|
852
|
+
//#endregion
|
|
853
|
+
//#region core/contracts/src/materialization/schemas.d.ts
|
|
854
|
+
/** View role that a projected field may declare for view rendering. */
|
|
855
|
+
declare const ProjectedFieldViewRoleSchema: z.ZodEnum<{
|
|
856
|
+
title: "title";
|
|
857
|
+
summary: "summary";
|
|
858
|
+
}>;
|
|
859
|
+
/**
|
|
860
|
+
* Discriminated target that a surface binding maps to on the external provider.
|
|
861
|
+
*
|
|
862
|
+
* Each variant carries the fields required to identify the target element
|
|
863
|
+
* on the provider surface:
|
|
864
|
+
*
|
|
865
|
+
* - `'label'` — a label or tag on the issue/work item (optional prefix filter)
|
|
866
|
+
* - `'field'` — a named custom field on the work item (optional external field id)
|
|
867
|
+
* - `'issue-type'` — a named issue type classification (optional external type id)
|
|
868
|
+
* - `'body-fragment'` — a named slot in the issue or PR body
|
|
869
|
+
* - `'comment'` — a structured comment rendered from a template string
|
|
870
|
+
*/
|
|
871
|
+
declare const SurfaceBindingTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
872
|
+
kind: z.ZodLiteral<"label">;
|
|
873
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
kind: z.ZodLiteral<"field">;
|
|
876
|
+
name: z.ZodString;
|
|
877
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
kind: z.ZodLiteral<"issue-type">;
|
|
880
|
+
name: z.ZodString;
|
|
881
|
+
typeId: z.ZodOptional<z.ZodString>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
kind: z.ZodLiteral<"body-fragment">;
|
|
884
|
+
slot: z.ZodString;
|
|
885
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
886
|
+
kind: z.ZodLiteral<"comment">;
|
|
887
|
+
template: z.ZodString;
|
|
888
|
+
}, z.core.$strip>], "kind">;
|
|
889
|
+
/**
|
|
890
|
+
* Serializable registration record for a surface binding.
|
|
891
|
+
*
|
|
892
|
+
* Surface binding registrations describe how a framework namespace maps to a
|
|
893
|
+
* provider-specific surface element (field, label, issue type, etc.).
|
|
894
|
+
* Registrations are declared by product extensions and consumed by
|
|
895
|
+
* materialization adapters at sync time.
|
|
896
|
+
*
|
|
897
|
+
* The `id` field is a dot-namespaced stable string (e.g. `'github.status.field'`).
|
|
898
|
+
*/
|
|
899
|
+
declare const SurfaceBindingRegistrationSchema: z.ZodObject<{
|
|
900
|
+
id: z.ZodString;
|
|
901
|
+
provider: z.ZodString;
|
|
902
|
+
namespace: z.ZodString;
|
|
903
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
904
|
+
kind: z.ZodLiteral<"label">;
|
|
905
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
906
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
907
|
+
kind: z.ZodLiteral<"field">;
|
|
908
|
+
name: z.ZodString;
|
|
909
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
+
kind: z.ZodLiteral<"issue-type">;
|
|
912
|
+
name: z.ZodString;
|
|
913
|
+
typeId: z.ZodOptional<z.ZodString>;
|
|
914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
915
|
+
kind: z.ZodLiteral<"body-fragment">;
|
|
916
|
+
slot: z.ZodString;
|
|
917
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
918
|
+
kind: z.ZodLiteral<"comment">;
|
|
919
|
+
template: z.ZodString;
|
|
920
|
+
}, z.core.$strip>], "kind">;
|
|
921
|
+
appliesTo: z.ZodArray<z.ZodEnum<{
|
|
922
|
+
artifact: "artifact";
|
|
923
|
+
workpiece: "workpiece";
|
|
924
|
+
surface: "surface";
|
|
925
|
+
}>>;
|
|
926
|
+
valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
927
|
+
description: z.ZodOptional<z.ZodString>;
|
|
928
|
+
params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
929
|
+
}, z.core.$strip>;
|
|
930
|
+
/** Serializable registration record for a surface binding. */
|
|
931
|
+
type SurfaceBindingRegistration = z.infer<typeof SurfaceBindingRegistrationSchema>;
|
|
932
|
+
/** Discriminated target on the external provider surface. */
|
|
933
|
+
type SurfaceBindingTarget = z.infer<typeof SurfaceBindingTargetSchema>;
|
|
934
|
+
/** Semantic hint for provider-neutral artifact projected fields. */
|
|
935
|
+
declare const ProjectedFieldSemanticSchema: z.ZodEnum<{
|
|
936
|
+
status: "status";
|
|
937
|
+
workflow: "workflow";
|
|
938
|
+
priority: "priority";
|
|
939
|
+
}>;
|
|
940
|
+
/**
|
|
941
|
+
* A provider-neutral field from artifact data that may be projected to an
|
|
942
|
+
* external surface or used in view rendering.
|
|
943
|
+
*
|
|
944
|
+
* Extended fields for the view projection system:
|
|
945
|
+
* - `fromLevel` — the minimum detail level at which this field becomes
|
|
946
|
+
* available. Levels order monotonically: `link < summary < full`. Omitted
|
|
947
|
+
* `fromLevel` means `full` during generic resolution.
|
|
948
|
+
* - `viewRole` — declares whether this field serves as the artifact's display
|
|
949
|
+
* `title` or `summary` in rendered views. At most one of each role may be
|
|
950
|
+
* declared per artifact kind.
|
|
951
|
+
*/
|
|
952
|
+
declare const ProjectedFieldSchema: z.ZodObject<{
|
|
953
|
+
path: z.ZodString;
|
|
954
|
+
semantic: z.ZodOptional<z.ZodEnum<{
|
|
955
|
+
status: "status";
|
|
956
|
+
workflow: "workflow";
|
|
957
|
+
priority: "priority";
|
|
958
|
+
}>>;
|
|
959
|
+
fromLevel: z.ZodOptional<z.ZodEnum<{
|
|
960
|
+
link: "link";
|
|
961
|
+
summary: "summary";
|
|
962
|
+
full: "full";
|
|
963
|
+
}>>;
|
|
964
|
+
viewRole: z.ZodOptional<z.ZodEnum<{
|
|
965
|
+
title: "title";
|
|
966
|
+
summary: "summary";
|
|
967
|
+
}>>;
|
|
968
|
+
}, z.core.$strip>;
|
|
969
|
+
/** Semantic hint for provider-neutral artifact projected fields. */
|
|
970
|
+
type ProjectedFieldSemantic = z.infer<typeof ProjectedFieldSemanticSchema>;
|
|
971
|
+
/** View role for a projected field. */
|
|
972
|
+
type ProjectedFieldViewRole = z.infer<typeof ProjectedFieldViewRoleSchema>;
|
|
973
|
+
/** A provider-neutral artifact field projection declaration. */
|
|
974
|
+
type ProjectedField = z.infer<typeof ProjectedFieldSchema>;
|
|
975
|
+
/**
|
|
976
|
+
* Projection policy that controls how an artifact kind surfaces on a provider.
|
|
977
|
+
*
|
|
978
|
+
* - `'none'` — the artifact is never materialized to a provider surface
|
|
979
|
+
* - `'surface'` — the artifact maps to a provider work item or issue
|
|
980
|
+
* - `'comment'` — the artifact is rendered as a structured comment on an existing item
|
|
981
|
+
*/
|
|
982
|
+
declare const ArtifactProjectionPolicySchema: z.ZodObject<{
|
|
983
|
+
mode: z.ZodEnum<{
|
|
984
|
+
none: "none";
|
|
985
|
+
comment: "comment";
|
|
986
|
+
surface: "surface";
|
|
987
|
+
}>;
|
|
988
|
+
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
989
|
+
artifact: "artifact";
|
|
990
|
+
workpiece: "workpiece";
|
|
991
|
+
}>>;
|
|
992
|
+
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
993
|
+
created: "created";
|
|
994
|
+
revised: "revised";
|
|
995
|
+
"status-changed": "status-changed";
|
|
996
|
+
"observation-added": "observation-added";
|
|
997
|
+
}>>>;
|
|
998
|
+
projectedFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
999
|
+
path: z.ZodString;
|
|
1000
|
+
semantic: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
+
status: "status";
|
|
1002
|
+
workflow: "workflow";
|
|
1003
|
+
priority: "priority";
|
|
1004
|
+
}>>;
|
|
1005
|
+
fromLevel: z.ZodOptional<z.ZodEnum<{
|
|
1006
|
+
link: "link";
|
|
1007
|
+
summary: "summary";
|
|
1008
|
+
full: "full";
|
|
1009
|
+
}>>;
|
|
1010
|
+
viewRole: z.ZodOptional<z.ZodEnum<{
|
|
1011
|
+
title: "title";
|
|
1012
|
+
summary: "summary";
|
|
1013
|
+
}>>;
|
|
1014
|
+
}, z.core.$strip>>>;
|
|
1015
|
+
affordances: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1016
|
+
kind: z.ZodLiteral<"own-view">;
|
|
1017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1018
|
+
kind: z.ZodLiteral<"inline">;
|
|
1019
|
+
hostRelation: z.ZodString;
|
|
1020
|
+
as: z.ZodOptional<z.ZodEnum<{
|
|
1021
|
+
link: "link";
|
|
1022
|
+
summary: "summary";
|
|
1023
|
+
full: "full";
|
|
1024
|
+
}>>;
|
|
1025
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1026
|
+
kind: z.ZodLiteral<"entry">;
|
|
1027
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
}, z.core.$strip>], "kind">>>;
|
|
1031
|
+
}, z.core.$strip>;
|
|
1032
|
+
/** Projection policy that controls how an artifact kind surfaces on a provider. */
|
|
1033
|
+
type ArtifactProjectionPolicy$1 = z.infer<typeof ArtifactProjectionPolicySchema>;
|
|
1034
|
+
/**
|
|
1035
|
+
* A reference linking a framework artifact to an external provider object.
|
|
1036
|
+
*
|
|
1037
|
+
* `artifactId` and `provider`+`externalId` together form the composite primary
|
|
1038
|
+
* key for a materialization ref. The `surfaceRole` captures whether the artifact
|
|
1039
|
+
* was materialized as the top-level workpiece or as a subordinate artifact record.
|
|
1040
|
+
*/
|
|
1041
|
+
declare const ArtifactMaterializationRefSchema: z.ZodObject<{
|
|
1042
|
+
artifactId: z.ZodString;
|
|
1043
|
+
provider: z.ZodString;
|
|
1044
|
+
externalId: z.ZodString;
|
|
1045
|
+
externalUrl: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
surfaceRole: z.ZodEnum<{
|
|
1047
|
+
artifact: "artifact";
|
|
1048
|
+
workpiece: "workpiece";
|
|
1049
|
+
}>;
|
|
1050
|
+
lastSyncedRevision: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1052
|
+
}, z.core.$strip>;
|
|
1053
|
+
/** A reference linking a framework artifact to an external provider object. */
|
|
1054
|
+
type ArtifactMaterializationRef = z.infer<typeof ArtifactMaterializationRefSchema>;
|
|
1055
|
+
//#endregion
|
|
1056
|
+
//#region core/contracts/src/artifact/context-resolution.d.ts
|
|
1057
|
+
/**
|
|
1058
|
+
* Reasons why a relation target was not resolved during context resolution.
|
|
1059
|
+
*
|
|
1060
|
+
* v1 omits `scope-denied` -- no scope policy seam exists yet.
|
|
1061
|
+
*/
|
|
1062
|
+
declare const ArtifactContextUnresolvedReasonSchema: z.ZodEnum<{
|
|
1063
|
+
"not-selected": "not-selected";
|
|
1064
|
+
"not-found": "not-found";
|
|
1065
|
+
"depth-exceeded": "depth-exceeded";
|
|
1066
|
+
"unsupported-ref-class": "unsupported-ref-class";
|
|
1067
|
+
"cycle-detected": "cycle-detected";
|
|
1068
|
+
}>;
|
|
1069
|
+
/** An unresolved reason for a context ref entry. */
|
|
1070
|
+
type ArtifactContextUnresolvedReason = z.infer<typeof ArtifactContextUnresolvedReasonSchema>;
|
|
1071
|
+
/**
|
|
1072
|
+
* A single entry in the normalized artifact context wire format.
|
|
1073
|
+
*
|
|
1074
|
+
* Each entry records one outbound relation from a source artifact to a
|
|
1075
|
+
* target, along with resolution status and the render hint used.
|
|
1076
|
+
*/
|
|
1077
|
+
declare const ArtifactContextRefEntrySchema: z.ZodObject<{
|
|
1078
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1079
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1080
|
+
kind: z.ZodString;
|
|
1081
|
+
id: z.ZodString;
|
|
1082
|
+
revision: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1084
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
1085
|
+
artifact: z.ZodObject<{
|
|
1086
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1087
|
+
kind: z.ZodString;
|
|
1088
|
+
id: z.ZodString;
|
|
1089
|
+
revision: z.ZodString;
|
|
1090
|
+
}, z.core.$strip>;
|
|
1091
|
+
localId: z.ZodString;
|
|
1092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1093
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
1094
|
+
kind: z.ZodString;
|
|
1095
|
+
id: z.ZodString;
|
|
1096
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
}, z.core.$strip>], "refClass">>;
|
|
1099
|
+
sourceRef: z.ZodObject<{
|
|
1100
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1101
|
+
kind: z.ZodString;
|
|
1102
|
+
id: z.ZodString;
|
|
1103
|
+
revision: z.ZodString;
|
|
1104
|
+
}, z.core.$strip>;
|
|
1105
|
+
relationType: z.ZodString;
|
|
1106
|
+
hint: z.ZodString;
|
|
1107
|
+
status: z.ZodEnum<{
|
|
1108
|
+
resolved: "resolved";
|
|
1109
|
+
unresolved: "unresolved";
|
|
1110
|
+
}>;
|
|
1111
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1112
|
+
"not-selected": "not-selected";
|
|
1113
|
+
"not-found": "not-found";
|
|
1114
|
+
"depth-exceeded": "depth-exceeded";
|
|
1115
|
+
"unsupported-ref-class": "unsupported-ref-class";
|
|
1116
|
+
"cycle-detected": "cycle-detected";
|
|
1117
|
+
}>>;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
/** A single resolved or unresolved context ref entry. */
|
|
1120
|
+
type ArtifactContextRefEntry = z.infer<typeof ArtifactContextRefEntrySchema>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Normalized wire format for a resolved artifact context graph.
|
|
1123
|
+
*
|
|
1124
|
+
* Contains the root artifact reference, all encountered relation entries
|
|
1125
|
+
* (both resolved and unresolved), and the pool of resolved artifact
|
|
1126
|
+
* revisions referenced by the entries.
|
|
1127
|
+
*/
|
|
1128
|
+
declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
|
|
1129
|
+
rootRef: z.ZodObject<{
|
|
1130
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1131
|
+
kind: z.ZodString;
|
|
1132
|
+
id: z.ZodString;
|
|
1133
|
+
revision: z.ZodString;
|
|
1134
|
+
}, z.core.$strip>;
|
|
1135
|
+
refs: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1137
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1138
|
+
kind: z.ZodString;
|
|
1139
|
+
id: z.ZodString;
|
|
1140
|
+
revision: z.ZodString;
|
|
1141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1142
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
1143
|
+
artifact: z.ZodObject<{
|
|
1144
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1145
|
+
kind: z.ZodString;
|
|
1146
|
+
id: z.ZodString;
|
|
1147
|
+
revision: z.ZodString;
|
|
1148
|
+
}, z.core.$strip>;
|
|
1149
|
+
localId: z.ZodString;
|
|
1150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1151
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
1152
|
+
kind: z.ZodString;
|
|
1153
|
+
id: z.ZodString;
|
|
1154
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
}, z.core.$strip>], "refClass">>;
|
|
1157
|
+
sourceRef: z.ZodObject<{
|
|
1158
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1159
|
+
kind: z.ZodString;
|
|
1160
|
+
id: z.ZodString;
|
|
1161
|
+
revision: z.ZodString;
|
|
1162
|
+
}, z.core.$strip>;
|
|
1163
|
+
relationType: z.ZodString;
|
|
1164
|
+
hint: z.ZodString;
|
|
1165
|
+
status: z.ZodEnum<{
|
|
1166
|
+
resolved: "resolved";
|
|
1167
|
+
unresolved: "unresolved";
|
|
1168
|
+
}>;
|
|
1169
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1170
|
+
"not-selected": "not-selected";
|
|
1171
|
+
"not-found": "not-found";
|
|
1172
|
+
"depth-exceeded": "depth-exceeded";
|
|
1173
|
+
"unsupported-ref-class": "unsupported-ref-class";
|
|
1174
|
+
"cycle-detected": "cycle-detected";
|
|
1175
|
+
}>>;
|
|
1176
|
+
}, z.core.$strip>>;
|
|
1177
|
+
resolved: z.ZodArray<z.ZodObject<{
|
|
1178
|
+
kind: z.ZodString;
|
|
1179
|
+
id: z.ZodString;
|
|
1180
|
+
revision: z.ZodString;
|
|
1181
|
+
scope: z.ZodObject<{
|
|
1182
|
+
level: z.ZodString;
|
|
1183
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
schemaVersion: z.ZodString;
|
|
1186
|
+
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1187
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
1188
|
+
type: z.ZodString;
|
|
1189
|
+
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1190
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1191
|
+
kind: z.ZodString;
|
|
1192
|
+
id: z.ZodString;
|
|
1193
|
+
revision: z.ZodString;
|
|
1194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1195
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
1196
|
+
artifact: z.ZodObject<{
|
|
1197
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1198
|
+
kind: z.ZodString;
|
|
1199
|
+
id: z.ZodString;
|
|
1200
|
+
revision: z.ZodString;
|
|
1201
|
+
}, z.core.$strip>;
|
|
1202
|
+
localId: z.ZodString;
|
|
1203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1204
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
1205
|
+
kind: z.ZodString;
|
|
1206
|
+
id: z.ZodString;
|
|
1207
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
}, z.core.$strip>], "refClass">>;
|
|
1210
|
+
}, z.core.$strip>>;
|
|
1211
|
+
confidence: z.ZodOptional<z.ZodObject<{
|
|
1212
|
+
level: z.ZodEnum<{
|
|
1213
|
+
inferred: "inferred";
|
|
1214
|
+
assumed: "assumed";
|
|
1215
|
+
stated: "stated";
|
|
1216
|
+
confirmed: "confirmed";
|
|
1217
|
+
verified: "verified";
|
|
1218
|
+
}>;
|
|
1219
|
+
basis: z.ZodArray<z.ZodObject<{
|
|
1220
|
+
kind: z.ZodString;
|
|
1221
|
+
actor: z.ZodObject<{
|
|
1222
|
+
kind: z.ZodString;
|
|
1223
|
+
id: z.ZodString;
|
|
1224
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
}, z.core.$strip>;
|
|
1226
|
+
timestamp: z.ZodNumber;
|
|
1227
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1229
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1230
|
+
kind: z.ZodString;
|
|
1231
|
+
id: z.ZodString;
|
|
1232
|
+
revision: z.ZodString;
|
|
1233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1234
|
+
refClass: z.ZodDefault<z.ZodLiteral<"local">>;
|
|
1235
|
+
artifact: z.ZodObject<{
|
|
1236
|
+
refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
|
|
1237
|
+
kind: z.ZodString;
|
|
1238
|
+
id: z.ZodString;
|
|
1239
|
+
revision: z.ZodString;
|
|
1240
|
+
}, z.core.$strip>;
|
|
1241
|
+
localId: z.ZodString;
|
|
1242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1243
|
+
refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
|
|
1244
|
+
kind: z.ZodString;
|
|
1245
|
+
id: z.ZodString;
|
|
1246
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
}, z.core.$strip>], "refClass">>>;
|
|
1249
|
+
}, z.core.$strip>>;
|
|
1250
|
+
}, z.core.$strip>>;
|
|
1251
|
+
representations: z.ZodOptional<z.ZodObject<{
|
|
1252
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
plaintext: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
}, z.core.$strip>>;
|
|
1256
|
+
actor: z.ZodObject<{
|
|
1257
|
+
kind: z.ZodString;
|
|
1258
|
+
id: z.ZodString;
|
|
1259
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1260
|
+
}, z.core.$strip>;
|
|
1261
|
+
timestamp: z.ZodNumber;
|
|
1262
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1263
|
+
}, z.core.$strip>>;
|
|
1264
|
+
}, z.core.$strip>;
|
|
1265
|
+
/** Normalized wire format for a resolved artifact context graph. */
|
|
1266
|
+
type ResolvedArtifactContextWire$1 = z.infer<typeof ResolvedArtifactContextWireSchema>;
|
|
1267
|
+
//#endregion
|
|
1268
|
+
export { ConfidenceLevel as $, ArtifactKindRegistrationSchema as A, ArtifactRelationQueryTarget as B, ArtifactCompareRequest as C, ArtifactConflictPolicy as D, ArtifactCompareResponseSchema as E, ArtifactQueryScope as F, ArtifactRepresentations as G, ArtifactRelationSchema as H, ArtifactQueryScopeSchema as I, ArtifactRevisionSchema as J, ArtifactRepresentationsSchema as K, ArtifactRef$1 as L, ArtifactObservationSchema as M, ArtifactQueryRequest as N, ArtifactConflictPolicySchema as O, ArtifactQueryRequestSchema as P, ConfidenceBasisSchema as Q, ArtifactRefSchema as R, ArtifactActorSchema as S, ArtifactCompareResponse as T, ArtifactRelationTarget as U, ArtifactRelationQueryTargetSchema as V, ArtifactRelationTargetSchema as W, ArtifactScopeSchema as X, ArtifactScope as Y, ConfidenceBasis as Z, SurfaceBindingRegistration as _, ResolvedArtifactContextWire$1 as a, LocalRef as at, SurfaceBindingTargetSchema as b, ArtifactMaterializationRefSchema as c, RelationTypeRegistrationSchema as ct, ProjectedField as d, ConfidenceLevelSchema as et, ProjectedFieldSchema as f, ProjectedFieldViewRoleSchema as g, ProjectedFieldViewRole as h, ArtifactContextUnresolvedReasonSchema as i, EvidenceRefSchema as it, ArtifactObservation$1 as j, ArtifactKindRegistration$1 as k, ArtifactProjectionPolicy$1 as l, ProjectedFieldSemanticSchema as m, ArtifactContextRefEntrySchema as n, ConfidenceMetadataSchema as nt, ResolvedArtifactContextWireSchema as o, LocalRefSchema as ot, ProjectedFieldSemantic as p, ArtifactRevision$1 as q, ArtifactContextUnresolvedReason as r, EvidenceRef as rt, ArtifactMaterializationRef as s, RelationTypeRegistration$1 as st, ArtifactContextRefEntry as t, ConfidenceMetadata as tt, ArtifactProjectionPolicySchema as u, SurfaceBindingRegistrationSchema as v, ArtifactCompareRequestSchema as w, ArtifactActor as x, SurfaceBindingTarget as y, ArtifactRelation as z };
|