@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.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.d.mts +8192 -0
- package/dist/adapters/claude/index.mjs +3 -0
- package/dist/adapters/claude/testing.d.mts +17 -0
- package/dist/adapters/claude/testing.mjs +1 -0
- 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-D5jHK1w-.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 +68 -68
- 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-C6LZOiDv.d.mts → index-B96HlWaM.d.mts} +1 -1
- package/dist/{index-BrAp9ntB.d.mts → index-BM7u_OTo.d.mts} +35 -35
- package/dist/{index-DMQlLz2W.d.mts → index-BPBSMsc8.d.mts} +15 -15
- package/dist/{index-j2YlW_Fc.d.mts → index-B_KmL_z8.d.mts} +1 -1
- package/dist/{index-CSxfU0tB.d.mts → index-BdsuBxEz.d.mts} +4 -4
- package/dist/{index-MTvmxwiu2.d.mts → index-CSyR9Fie2.d.mts} +3 -3
- package/dist/{index-CagRgpXI2.d.mts → index-ChB3K_a12.d.mts} +1 -1
- package/dist/{index-Cx8jGKOs.d.mts → index-CrbFA2kp.d.mts} +4 -4
- package/dist/{index-BxuiHVFi.d.mts → index-DA5S_dj8.d.mts} +1 -1
- package/dist/{index-2PsDAhPN.d.mts → index-DE29b4QM.d.mts} +8 -8
- package/dist/{index-BXWTilGs.d.mts → index-DHejCnq8.d.mts} +3 -3
- package/dist/{index-Cq6rXKae.d.mts → index-D_lLZ2dU.d.mts} +3 -3
- package/dist/{index-D3Eek6kd.d.mts → index-DoJRv-c3.d.mts} +230 -1116
- package/dist/{index-D75FnT0B.d.mts → index-TWs1TQ2-.d.mts} +1 -1
- package/dist/index-XzetMf0e.d.mts +817 -0
- package/dist/{index-CHjKP5G0.d.mts → index-ZGPSCZdC.d.mts} +23 -10
- 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/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/schemas-6H-dlMrB.mjs +1 -0
- 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/git/namespace.d.mts +2 -2
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +46 -295
- 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.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/{session-lineage-YShrn77v.d.mts → session-lineage-CWlcOKBZ.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-CukPcOG5.d.mts} +2 -2
- package/dist/{types-B-xY9WW2.d.mts → types-Be7wY1De.d.mts} +1 -1
- package/dist/{types-DQsYUZwa.d.mts → types-DiZJnwN0.d.mts} +2 -2
- package/dist/ui-components/index.d.mts +4 -4
- 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-DQiA4wDH.d.mts +618 -0
- package/dist/{workflow-DFJYGjq_.mjs → workflow-DPeE6-Ta.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +25 -25
- 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 +10 -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-DpZbaS7y.d.mts → index-BoCL9IHT.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-Bbr5LEUc.d.mts → index-DD9inq5h.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-kqxUXYe7.d.mts → index-Du-AJm69.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-BoA6u44C.d.mts → namespace-Bldr5X64.d.mts} +0 -0
- /package/dist/{namespace-TLkZRkcU.d.mts → namespace-Bogua97s.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-CukqFYHf2.d.mts → namespace-C_phrzqu2.d.mts} +0 -0
- /package/dist/{namespace-BcDHt-ww.d.mts → namespace-CddQuUvG.d.mts} +0 -0
- /package/dist/{namespace-dgNmx9g3.d.mts → namespace-CpSZfHLv.d.mts} +0 -0
- /package/dist/{namespace-rO-C2Dgu2.d.mts → namespace-CzZmsumy.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/{schema-CxN7d_MU.d.mts → schema-DOPEco97.d.mts} +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-OaBqeEUT.d.mts → schemas-BLJ2k226.d.mts} +0 -0
- /package/dist/{schemas-XRhqOgVE.d.mts → schemas-CVbfHPw-.d.mts} +0 -0
- /package/dist/{schemas-CIO03KSD2.d.mts → schemas-Ca3BLPH5.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/{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,618 @@
|
|
|
1
|
+
import { _ as SurfaceBindingRegistration, a as ResolvedArtifactContextWire$1, q as ArtifactRevision$1, z as ArtifactRelation } from "./context-resolution-D5jHK1w-.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
|
+
|
|
5
|
+
//#region core/contracts/src/materialization/definition.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* A surface binding definition with a serializable registration record.
|
|
8
|
+
*
|
|
9
|
+
* Created by {@link defineSurfaceBinding}. The definition retains the original
|
|
10
|
+
* options and produces a bus-transportable {@link SurfaceBindingRegistration}
|
|
11
|
+
* via `toRegistration()`.
|
|
12
|
+
*
|
|
13
|
+
* The interface is intentionally opaque: only `id` is exposed directly so
|
|
14
|
+
* that callers have a stable, lightweight handle. All other properties are
|
|
15
|
+
* accessible exclusively through `toRegistration()`, keeping the contract
|
|
16
|
+
* aligned with the bus registration shape.
|
|
17
|
+
*/
|
|
18
|
+
interface SurfaceBindingDefinition {
|
|
19
|
+
/** Stable identifier for this surface binding (e.g. `'github.status.field'`). */
|
|
20
|
+
readonly id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Produces a serializable registration record suitable for bus transport.
|
|
23
|
+
* @returns A {@link SurfaceBindingRegistration} snapshot with `target`
|
|
24
|
+
* deep-cloned and all array fields copied to prevent shared-reference
|
|
25
|
+
* mutation.
|
|
26
|
+
*/
|
|
27
|
+
readonly toRegistration: () => SurfaceBindingRegistration;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Options for {@link defineSurfaceBinding}.
|
|
31
|
+
*
|
|
32
|
+
* Structurally identical to {@link SurfaceBindingRegistration} — every field
|
|
33
|
+
* is included in the serializable registration output.
|
|
34
|
+
*/
|
|
35
|
+
type DefineSurfaceBindingOptions = SurfaceBindingRegistration;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a surface binding definition with a serializable registration.
|
|
38
|
+
*
|
|
39
|
+
* The returned definition exposes the `id` identifier directly and produces
|
|
40
|
+
* a bus-transportable {@link SurfaceBindingRegistration} via `toRegistration()`.
|
|
41
|
+
* The `target` object is deep-cloned via `structuredClone` (consistent with
|
|
42
|
+
* how {@link SurfaceBindingRegistry} clones at storage boundaries), and array
|
|
43
|
+
* fields (`appliesTo`) are defensively copied so callers cannot mutate the
|
|
44
|
+
* registration snapshot.
|
|
45
|
+
* @param options - Surface binding registration options including provider,
|
|
46
|
+
* namespace, target, and entity classes the binding applies to.
|
|
47
|
+
* @returns A {@link SurfaceBindingDefinition} with a `toRegistration` method.
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* export const githubStatusFieldBinding = defineSurfaceBinding({
|
|
51
|
+
* id: 'github.status.field',
|
|
52
|
+
* provider: 'github',
|
|
53
|
+
* namespace: 'status',
|
|
54
|
+
* target: { kind: 'field', name: 'Status' },
|
|
55
|
+
* appliesTo: ['workpiece'],
|
|
56
|
+
* valueMapping: { pending: 'In Progress', completed: 'Done' },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare function defineSurfaceBinding(options: DefineSurfaceBindingOptions): SurfaceBindingDefinition;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region core/contracts/src/materialization/view-model.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Closed set of artifact view detail levels.
|
|
65
|
+
*
|
|
66
|
+
* Levels order monotonically: `link < summary < full`. A field declared at
|
|
67
|
+
* `link` is available at every level; a field declared at `full` appears only
|
|
68
|
+
* when the full view is requested.
|
|
69
|
+
*/
|
|
70
|
+
declare const ArtifactViewLevelSchema: z.ZodEnum<{
|
|
71
|
+
link: "link";
|
|
72
|
+
full: "full";
|
|
73
|
+
summary: "summary";
|
|
74
|
+
}>;
|
|
75
|
+
/** Artifact view detail level. */
|
|
76
|
+
type ArtifactViewLevel$1 = z.infer<typeof ArtifactViewLevelSchema>;
|
|
77
|
+
/**
|
|
78
|
+
* A provider-neutral navigation link.
|
|
79
|
+
*
|
|
80
|
+
* Links may reference a framework artifact by its stable id, an external URL,
|
|
81
|
+
* or both. At least one locator (`artifactId` or `url`) should be present for
|
|
82
|
+
* the link to be useful, but the schema does not enforce exclusivity — both
|
|
83
|
+
* may coexist when an artifact has a known external counterpart.
|
|
84
|
+
* @param artifactId - Stable framework artifact identity (open string).
|
|
85
|
+
* @param url - External deep-link URL.
|
|
86
|
+
* @param label - Human-readable label for the link.
|
|
87
|
+
*/
|
|
88
|
+
declare const ArtifactViewLinkSchema: z.ZodObject<{
|
|
89
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
url: z.ZodOptional<z.ZodString>;
|
|
91
|
+
label: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
/** A provider-neutral navigation link. */
|
|
94
|
+
type ArtifactViewLink = z.infer<typeof ArtifactViewLinkSchema>;
|
|
95
|
+
/**
|
|
96
|
+
* Summary section: a short prose description.
|
|
97
|
+
* @param type - Section discriminant. Always `'summary'`.
|
|
98
|
+
* @param title - Human-readable section heading.
|
|
99
|
+
* @param text - Plain-text summary content.
|
|
100
|
+
*/
|
|
101
|
+
declare const ArtifactViewSummarySectionSchema: z.ZodObject<{
|
|
102
|
+
type: z.ZodLiteral<"summary">;
|
|
103
|
+
title: z.ZodString;
|
|
104
|
+
text: z.ZodString;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
/**
|
|
107
|
+
* Properties section: key-value metadata rows.
|
|
108
|
+
* @param type - Section discriminant. Always `'properties'`.
|
|
109
|
+
* @param title - Human-readable section heading.
|
|
110
|
+
* @param rows - Ordered key-value pairs.
|
|
111
|
+
*/
|
|
112
|
+
declare const ArtifactViewPropertiesSectionSchema: z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"properties">;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
value: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
/**
|
|
121
|
+
* Table section: columnar data with optional row-level links.
|
|
122
|
+
* @param type - Section discriminant. Always `'table'`.
|
|
123
|
+
* @param title - Human-readable section heading.
|
|
124
|
+
* @param columns - Column header labels.
|
|
125
|
+
* @param rows - Table rows; each row carries an array of cell values and an
|
|
126
|
+
* optional link that may reference a framework artifact or an external URL.
|
|
127
|
+
*/
|
|
128
|
+
declare const ArtifactViewTableSectionSchema: z.ZodObject<{
|
|
129
|
+
type: z.ZodLiteral<"table">;
|
|
130
|
+
title: z.ZodString;
|
|
131
|
+
columns: z.ZodArray<z.ZodString>;
|
|
132
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
133
|
+
cells: z.ZodArray<z.ZodString>;
|
|
134
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
url: z.ZodOptional<z.ZodString>;
|
|
137
|
+
label: z.ZodString;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
/**
|
|
142
|
+
* Relations section: grouped relation items with open type strings.
|
|
143
|
+
*
|
|
144
|
+
* Relation types remain open strings so that product-owned kinds and
|
|
145
|
+
* extensions can declare custom relation semantics without modifying
|
|
146
|
+
* the framework contract.
|
|
147
|
+
* @param type - Section discriminant. Always `'relations'`.
|
|
148
|
+
* @param title - Human-readable section heading.
|
|
149
|
+
* @param groups - Grouped relation items, each group keyed by an open relation
|
|
150
|
+
* type string.
|
|
151
|
+
*/
|
|
152
|
+
declare const ArtifactViewRelationsSectionSchema: z.ZodObject<{
|
|
153
|
+
type: z.ZodLiteral<"relations">;
|
|
154
|
+
title: z.ZodString;
|
|
155
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
156
|
+
type: z.ZodString;
|
|
157
|
+
items: z.ZodArray<z.ZodObject<{
|
|
158
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
url: z.ZodOptional<z.ZodString>;
|
|
160
|
+
label: z.ZodString;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
/**
|
|
165
|
+
* Evidence section: references to external evidence sources.
|
|
166
|
+
* @param type - Section discriminant. Always `'evidence'`.
|
|
167
|
+
* @param title - Human-readable section heading.
|
|
168
|
+
* @param items - Evidence items; `kind` and `id` are open strings to allow
|
|
169
|
+
* product-defined evidence categories.
|
|
170
|
+
*/
|
|
171
|
+
declare const ArtifactViewEvidenceSectionSchema: z.ZodObject<{
|
|
172
|
+
type: z.ZodLiteral<"evidence">;
|
|
173
|
+
title: z.ZodString;
|
|
174
|
+
items: z.ZodArray<z.ZodObject<{
|
|
175
|
+
kind: z.ZodString;
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
/**
|
|
181
|
+
* Raw section: opaque JSON-safe data for inspection or debugging.
|
|
182
|
+
*
|
|
183
|
+
* The `json` field is validated recursively against the JSON value contract
|
|
184
|
+
* to ensure the view model remains serializable.
|
|
185
|
+
* @param type - Section discriminant. Always `'raw'`.
|
|
186
|
+
* @param title - Human-readable section heading.
|
|
187
|
+
* @param json - Arbitrary JSON-safe value.
|
|
188
|
+
*/
|
|
189
|
+
declare const ArtifactViewRawSectionSchema: z.ZodObject<{
|
|
190
|
+
type: z.ZodLiteral<"raw">;
|
|
191
|
+
title: z.ZodString;
|
|
192
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
/**
|
|
195
|
+
* Code section: source code or structured text with a language hint.
|
|
196
|
+
* @param type - Section discriminant. Always `'code'`.
|
|
197
|
+
* @param title - Human-readable section heading.
|
|
198
|
+
* @param language - Language identifier (e.g. `'typescript'`, `'go'`). Open string.
|
|
199
|
+
* @param content - Source code content.
|
|
200
|
+
*/
|
|
201
|
+
declare const ArtifactViewCodeSectionSchema: z.ZodObject<{
|
|
202
|
+
type: z.ZodLiteral<"code">;
|
|
203
|
+
title: z.ZodString;
|
|
204
|
+
language: z.ZodString;
|
|
205
|
+
content: z.ZodString;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
/**
|
|
208
|
+
* Diagram section: structured diagram source with a notation identifier.
|
|
209
|
+
*
|
|
210
|
+
* Currently only `'mermaid'` is supported as a notation, but the field is
|
|
211
|
+
* a literal to allow future additions through a discriminated union.
|
|
212
|
+
* @param type - Section discriminant. Always `'diagram'`.
|
|
213
|
+
* @param title - Human-readable section heading.
|
|
214
|
+
* @param notation - Diagram notation identifier. Currently only `'mermaid'`.
|
|
215
|
+
* @param source - Diagram source text.
|
|
216
|
+
*/
|
|
217
|
+
declare const ArtifactViewDiagramSectionSchema: z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"diagram">;
|
|
219
|
+
title: z.ZodString;
|
|
220
|
+
notation: z.ZodLiteral<"mermaid">;
|
|
221
|
+
source: z.ZodString;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
/**
|
|
224
|
+
* Discriminated union of all artifact view section variants.
|
|
225
|
+
*
|
|
226
|
+
* The `type` field is the discriminant. Each variant carries its own typed
|
|
227
|
+
* payload; see the individual section schemas for details.
|
|
228
|
+
*/
|
|
229
|
+
declare const ArtifactViewSectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
+
type: z.ZodLiteral<"summary">;
|
|
231
|
+
title: z.ZodString;
|
|
232
|
+
text: z.ZodString;
|
|
233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
+
type: z.ZodLiteral<"properties">;
|
|
235
|
+
title: z.ZodString;
|
|
236
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
237
|
+
label: z.ZodString;
|
|
238
|
+
value: z.ZodString;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<"table">;
|
|
242
|
+
title: z.ZodString;
|
|
243
|
+
columns: z.ZodArray<z.ZodString>;
|
|
244
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
245
|
+
cells: z.ZodArray<z.ZodString>;
|
|
246
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
url: z.ZodOptional<z.ZodString>;
|
|
249
|
+
label: z.ZodString;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"relations">;
|
|
254
|
+
title: z.ZodString;
|
|
255
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
256
|
+
type: z.ZodString;
|
|
257
|
+
items: z.ZodArray<z.ZodObject<{
|
|
258
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
259
|
+
url: z.ZodOptional<z.ZodString>;
|
|
260
|
+
label: z.ZodString;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
type: z.ZodLiteral<"evidence">;
|
|
265
|
+
title: z.ZodString;
|
|
266
|
+
items: z.ZodArray<z.ZodObject<{
|
|
267
|
+
kind: z.ZodString;
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"raw">;
|
|
273
|
+
title: z.ZodString;
|
|
274
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"code">;
|
|
277
|
+
title: z.ZodString;
|
|
278
|
+
language: z.ZodString;
|
|
279
|
+
content: z.ZodString;
|
|
280
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
281
|
+
type: z.ZodLiteral<"diagram">;
|
|
282
|
+
title: z.ZodString;
|
|
283
|
+
notation: z.ZodLiteral<"mermaid">;
|
|
284
|
+
source: z.ZodString;
|
|
285
|
+
}, z.core.$strip>], "type">;
|
|
286
|
+
/** Any artifact view section variant. */
|
|
287
|
+
type ArtifactViewSection = z.infer<typeof ArtifactViewSectionSchema>;
|
|
288
|
+
/** Summary section. */
|
|
289
|
+
type ArtifactViewSummarySection = z.infer<typeof ArtifactViewSummarySectionSchema>;
|
|
290
|
+
/** Properties section. */
|
|
291
|
+
type ArtifactViewPropertiesSection = z.infer<typeof ArtifactViewPropertiesSectionSchema>;
|
|
292
|
+
/** Table section. */
|
|
293
|
+
type ArtifactViewTableSection = z.infer<typeof ArtifactViewTableSectionSchema>;
|
|
294
|
+
/** Relations section. */
|
|
295
|
+
type ArtifactViewRelationsSection = z.infer<typeof ArtifactViewRelationsSectionSchema>;
|
|
296
|
+
/** Evidence section. */
|
|
297
|
+
type ArtifactViewEvidenceSection = z.infer<typeof ArtifactViewEvidenceSectionSchema>;
|
|
298
|
+
/** Raw section. */
|
|
299
|
+
type ArtifactViewRawSection = z.infer<typeof ArtifactViewRawSectionSchema>;
|
|
300
|
+
/** Code section. */
|
|
301
|
+
type ArtifactViewCodeSection = z.infer<typeof ArtifactViewCodeSectionSchema>;
|
|
302
|
+
/** Diagram section. */
|
|
303
|
+
type ArtifactViewDiagramSection = z.infer<typeof ArtifactViewDiagramSectionSchema>;
|
|
304
|
+
/**
|
|
305
|
+
* Provider-neutral artifact view model.
|
|
306
|
+
*
|
|
307
|
+
* Contains semantic content and navigation, not Markdown, provider-specific
|
|
308
|
+
* field names, or renderer-specific layout directives. The model is
|
|
309
|
+
* JSON-safe: every value in every section must survive a JSON round-trip.
|
|
310
|
+
* @param title - Human-readable title for the artifact view.
|
|
311
|
+
* @param summary - Optional prose summary.
|
|
312
|
+
* @param navigation - Optional ordered set of navigation links.
|
|
313
|
+
* @param sections - Ordered array of typed sections.
|
|
314
|
+
*/
|
|
315
|
+
declare const ArtifactViewModelSchema$1: z.ZodObject<{
|
|
316
|
+
title: z.ZodString;
|
|
317
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
318
|
+
navigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
320
|
+
url: z.ZodOptional<z.ZodString>;
|
|
321
|
+
label: z.ZodString;
|
|
322
|
+
}, z.core.$strip>>>;
|
|
323
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"summary">;
|
|
325
|
+
title: z.ZodString;
|
|
326
|
+
text: z.ZodString;
|
|
327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
+
type: z.ZodLiteral<"properties">;
|
|
329
|
+
title: z.ZodString;
|
|
330
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
331
|
+
label: z.ZodString;
|
|
332
|
+
value: z.ZodString;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
+
type: z.ZodLiteral<"table">;
|
|
336
|
+
title: z.ZodString;
|
|
337
|
+
columns: z.ZodArray<z.ZodString>;
|
|
338
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
339
|
+
cells: z.ZodArray<z.ZodString>;
|
|
340
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
342
|
+
url: z.ZodOptional<z.ZodString>;
|
|
343
|
+
label: z.ZodString;
|
|
344
|
+
}, z.core.$strip>>;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
type: z.ZodLiteral<"relations">;
|
|
348
|
+
title: z.ZodString;
|
|
349
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
350
|
+
type: z.ZodString;
|
|
351
|
+
items: z.ZodArray<z.ZodObject<{
|
|
352
|
+
artifactId: z.ZodOptional<z.ZodString>;
|
|
353
|
+
url: z.ZodOptional<z.ZodString>;
|
|
354
|
+
label: z.ZodString;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"evidence">;
|
|
359
|
+
title: z.ZodString;
|
|
360
|
+
items: z.ZodArray<z.ZodObject<{
|
|
361
|
+
kind: z.ZodString;
|
|
362
|
+
id: z.ZodString;
|
|
363
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
366
|
+
type: z.ZodLiteral<"raw">;
|
|
367
|
+
title: z.ZodString;
|
|
368
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
370
|
+
type: z.ZodLiteral<"code">;
|
|
371
|
+
title: z.ZodString;
|
|
372
|
+
language: z.ZodString;
|
|
373
|
+
content: z.ZodString;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
type: z.ZodLiteral<"diagram">;
|
|
376
|
+
title: z.ZodString;
|
|
377
|
+
notation: z.ZodLiteral<"mermaid">;
|
|
378
|
+
source: z.ZodString;
|
|
379
|
+
}, z.core.$strip>], "type">>;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
/** Provider-neutral artifact view model. */
|
|
382
|
+
type ArtifactViewModel$1 = z.infer<typeof ArtifactViewModelSchema$1>;
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region core/contracts/src/materialization/view-builder.d.ts
|
|
385
|
+
/**
|
|
386
|
+
* Empty interface intended for declaration merging.
|
|
387
|
+
*
|
|
388
|
+
* Extension or product code augments this interface to register provider- or
|
|
389
|
+
* kind-specific view parameter shapes:
|
|
390
|
+
*
|
|
391
|
+
* ```ts
|
|
392
|
+
* declare module '@makaio/framework/contracts' {
|
|
393
|
+
* interface ArtifactViewParamsMap {
|
|
394
|
+
* 'my-kind': { depth: number; includeArchived: boolean };
|
|
395
|
+
* }
|
|
396
|
+
* }
|
|
397
|
+
* ```
|
|
398
|
+
*
|
|
399
|
+
* A builder's literal `kind` selects its corresponding shape through
|
|
400
|
+
* {@link ArtifactViewParamsFor}. Unregistered kinds remain open so artifact
|
|
401
|
+
* kinds never need central registration before they can be rendered.
|
|
402
|
+
*/
|
|
403
|
+
interface ArtifactViewParamsMap {}
|
|
404
|
+
/**
|
|
405
|
+
* Resolve the authoring params for an artifact kind.
|
|
406
|
+
*
|
|
407
|
+
* Registered literal kinds receive their declaration-merged shape only when
|
|
408
|
+
* it is object-shaped. Arrays and functions are not valid parameter objects,
|
|
409
|
+
* so invalid registrations resolve to `never`; every other string receives
|
|
410
|
+
* the same open JSON-object-shaped type used by the runtime request schema.
|
|
411
|
+
* @typeParam K - Artifact kind handled by the builder.
|
|
412
|
+
*/
|
|
413
|
+
type ArtifactViewParamsFor<K extends string> = K extends keyof ArtifactViewParamsMap ? ArtifactViewParamsMap[K] extends object ? ArtifactViewParamsMap[K] extends readonly unknown[] ? never : ArtifactViewParamsMap[K] extends ((...args: never[]) => unknown) ? never : ArtifactViewParamsMap[K] : never : Readonly<Record<string, unknown>>;
|
|
414
|
+
/**
|
|
415
|
+
* Runtime artifact view params schema.
|
|
416
|
+
*
|
|
417
|
+
* Validates that params are JSON-safe objects. The runtime schema is always
|
|
418
|
+
* {@link JsonObjectContractSchema}: requests cross process boundaries and must
|
|
419
|
+
* accept arbitrary artifact kinds without depending on declaration merging.
|
|
420
|
+
*/
|
|
421
|
+
declare const ArtifactViewParamsSchema: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
422
|
+
/**
|
|
423
|
+
* A request for an artifact view at a specific detail level.
|
|
424
|
+
*
|
|
425
|
+
* The same schema is used by surface bindings, resolver requests, and builder
|
|
426
|
+
* context — no parallel parameter types.
|
|
427
|
+
* @param level - Requested detail level (`link`, `summary`, or `full`).
|
|
428
|
+
* @param params - Optional JSON-safe runtime parameters.
|
|
429
|
+
*/
|
|
430
|
+
declare const ArtifactViewRequestSchema: z.ZodObject<{
|
|
431
|
+
level: z.ZodEnum<{
|
|
432
|
+
link: "link";
|
|
433
|
+
full: "full";
|
|
434
|
+
summary: "summary";
|
|
435
|
+
}>;
|
|
436
|
+
params: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
/** A request for an artifact view at a specific detail level. */
|
|
439
|
+
type ArtifactViewRequest = z.infer<typeof ArtifactViewRequestSchema>;
|
|
440
|
+
/**
|
|
441
|
+
* Affordance declaration for artifact view rendering.
|
|
442
|
+
*
|
|
443
|
+
* Affordances are exact and authoritative when present. Each variant declares
|
|
444
|
+
* where and how an artifact kind may be rendered:
|
|
445
|
+
*
|
|
446
|
+
* - `'own-view'` — the artifact has its own full view (always at `full` level).
|
|
447
|
+
* - `'inline'` — the artifact may be inlined within a host artifact's view,
|
|
448
|
+
* keyed by the host relation type. The optional `as` field is declaration
|
|
449
|
+
* policy controlling the inline level; callers never supply it.
|
|
450
|
+
* - `'entry'` — the artifact may appear as an entry in a container (dashboard,
|
|
451
|
+
* collection). Exactly one of `via` or `collection` must be present. The
|
|
452
|
+
* optional `title` is declaration policy. The container caller selects
|
|
453
|
+
* `request.level`; there is no separate entry-level property.
|
|
454
|
+
*
|
|
455
|
+
* Multiple entry declarations are legal.
|
|
456
|
+
*/
|
|
457
|
+
declare const ArtifactViewAffordanceDeclarationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
kind: z.ZodLiteral<"own-view">;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
kind: z.ZodLiteral<"inline">;
|
|
461
|
+
hostRelation: z.ZodString;
|
|
462
|
+
as: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
link: "link";
|
|
464
|
+
full: "full";
|
|
465
|
+
summary: "summary";
|
|
466
|
+
}>>;
|
|
467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
468
|
+
kind: z.ZodLiteral<"entry">;
|
|
469
|
+
via: z.ZodOptional<z.ZodString>;
|
|
470
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
471
|
+
title: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>], "kind">;
|
|
473
|
+
/** Affordance declaration for artifact view rendering. */
|
|
474
|
+
type ArtifactViewAffordanceDeclaration = z.infer<typeof ArtifactViewAffordanceDeclarationSchema>;
|
|
475
|
+
/**
|
|
476
|
+
* Structural selector for requesting an artifact view through an affordance.
|
|
477
|
+
*
|
|
478
|
+
* Requests use only structural selectors — declaration-policy fields (`as`,
|
|
479
|
+
* `title`) are stripped. The container caller selects the detail level via
|
|
480
|
+
* the resolve request's top-level `level`, not on the affordance itself.
|
|
481
|
+
*
|
|
482
|
+
* - `'own-view'` — request the artifact's own full view.
|
|
483
|
+
* - `'inline'` + `hostRelation` — request an inline view keyed by relation.
|
|
484
|
+
* - `'entry'` + (`via` | `collection`) — request an entry view.
|
|
485
|
+
*/
|
|
486
|
+
declare const ArtifactViewAffordanceRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
487
|
+
kind: z.ZodLiteral<"own-view">;
|
|
488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
+
kind: z.ZodLiteral<"inline">;
|
|
490
|
+
hostRelation: z.ZodString;
|
|
491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
+
kind: z.ZodLiteral<"entry">;
|
|
493
|
+
via: z.ZodOptional<z.ZodString>;
|
|
494
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, z.core.$strip>], "kind">;
|
|
496
|
+
/** Structural selector for requesting an artifact view through an affordance. */
|
|
497
|
+
type ArtifactViewAffordanceRequest$1 = z.infer<typeof ArtifactViewAffordanceRequestSchema>;
|
|
498
|
+
/**
|
|
499
|
+
* Context supplied to an {@link ArtifactViewBuilder}'s `build` method.
|
|
500
|
+
*
|
|
501
|
+
* Contains the resolved artifact, the requested view parameters, the
|
|
502
|
+
* deterministic generic sections produced by the framework, and the
|
|
503
|
+
* direct relations already present on the artifact. The context is
|
|
504
|
+
* readonly — builders compose their output from it without side effects.
|
|
505
|
+
*
|
|
506
|
+
* Deliberately excludes provider IDs, raw storage handles, `find`
|
|
507
|
+
* helpers, and bus transport concerns. Builders operate on fully
|
|
508
|
+
* resolved snapshots.
|
|
509
|
+
*/
|
|
510
|
+
interface ArtifactViewBuilderContext<K extends string = string> {
|
|
511
|
+
/** The fully resolved artifact revision. */
|
|
512
|
+
readonly artifact: ArtifactRevision$1;
|
|
513
|
+
/** Requested view detail level. */
|
|
514
|
+
readonly level: ArtifactViewLevel$1;
|
|
515
|
+
/** Structural affordance selector for the view. */
|
|
516
|
+
readonly affordance: ArtifactViewAffordanceRequest$1;
|
|
517
|
+
/** Optional JSON-safe runtime parameters. */
|
|
518
|
+
readonly params: ArtifactViewParamsFor<K> | undefined;
|
|
519
|
+
/**
|
|
520
|
+
* Deterministic generic sections produced by the framework's generic
|
|
521
|
+
* builder for this artifact, level, and kind registration.
|
|
522
|
+
*
|
|
523
|
+
* Builders may compose from these sections when they want to augment
|
|
524
|
+
* rather than fully replace the generic projection.
|
|
525
|
+
*/
|
|
526
|
+
readonly genericSections: readonly ArtifactViewSection[];
|
|
527
|
+
/** Direct relations already present on the artifact revision. */
|
|
528
|
+
readonly relations: readonly ArtifactRelation[];
|
|
529
|
+
/**
|
|
530
|
+
* The context graph resolved from the kind registration's declared
|
|
531
|
+
* `defaultContext` selector via `ArtifactSubjects.resolveContext`.
|
|
532
|
+
*
|
|
533
|
+
* Present only when the kind registration declares a `defaultContext`
|
|
534
|
+
* selector AND context resolution succeeded (the resolve-context RPC
|
|
535
|
+
* was handled). `undefined` when the registration declares no selector
|
|
536
|
+
* or no resolver handled the request.
|
|
537
|
+
*/
|
|
538
|
+
readonly defaultContext: ResolvedArtifactContextWire$1 | undefined;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Builder output for a single artifact view.
|
|
542
|
+
*
|
|
543
|
+
* Exactly three outcomes:
|
|
544
|
+
* - `undefined` — keep the generic sections unchanged.
|
|
545
|
+
* - `{ sections }` — completely replace the generic sections with the
|
|
546
|
+
* supplied array. Builders that want to augment generic sections
|
|
547
|
+
* compose explicitly from `context.genericSections`.
|
|
548
|
+
* - `{ render: false }` — suppress rendering entirely. The resolver
|
|
549
|
+
* produces a `not-rendered` result.
|
|
550
|
+
*/
|
|
551
|
+
type ArtifactViewBuilderResult = undefined | {
|
|
552
|
+
readonly sections: readonly ArtifactViewSection[];
|
|
553
|
+
} | {
|
|
554
|
+
readonly render: false;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* Live artifact view builder registration.
|
|
558
|
+
*
|
|
559
|
+
* Builders match an exact `kind + schemaVersion` pair and carry a
|
|
560
|
+
* positive monotonic version. Only one active builder per key is
|
|
561
|
+
* allowed; collisions across owners are hard errors.
|
|
562
|
+
*
|
|
563
|
+
* Builder functions are live extension contributions and must not cross
|
|
564
|
+
* the bus. Only serializable requests and responses travel over the bus;
|
|
565
|
+
* the builder registry is an in-process construct.
|
|
566
|
+
*/
|
|
567
|
+
interface ArtifactViewBuilder<K extends string = string> {
|
|
568
|
+
/** Exact artifact kind this builder handles. */
|
|
569
|
+
readonly kind: K;
|
|
570
|
+
/** Exact schema version this builder handles. */
|
|
571
|
+
readonly schemaVersion: string;
|
|
572
|
+
/**
|
|
573
|
+
* Positive monotonic version of this builder.
|
|
574
|
+
*
|
|
575
|
+
* Used by the resolve protocol's `builderVersion` field. Must be a
|
|
576
|
+
* positive integer.
|
|
577
|
+
*/
|
|
578
|
+
readonly version: number;
|
|
579
|
+
/**
|
|
580
|
+
* Build an artifact view for the given context.
|
|
581
|
+
* @param context - Fully resolved builder context.
|
|
582
|
+
* @returns Builder result, or a promise that resolves to one.
|
|
583
|
+
*/
|
|
584
|
+
build(context: ArtifactViewBuilderContext<K>): Promise<ArtifactViewBuilderResult>;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Define a live artifact view builder while preserving its literal kind for
|
|
588
|
+
* declaration-merged {@link ArtifactViewParamsFor} inference.
|
|
589
|
+
*
|
|
590
|
+
* Contributions erase builders to `ArtifactViewBuilder<string>` when they
|
|
591
|
+
* enter the runtime registry. Define builders first so their `build` context
|
|
592
|
+
* remains correlated with the literal `kind` at the authoring boundary.
|
|
593
|
+
* @typeParam K - Literal artifact kind handled by the builder.
|
|
594
|
+
* @param builder - Builder registration with a literal artifact kind.
|
|
595
|
+
* @returns The same builder with its kind-specific context retained.
|
|
596
|
+
*/
|
|
597
|
+
declare function defineArtifactViewBuilder<const K extends string>(builder: ArtifactViewBuilder<K>): ArtifactViewBuilder<K>;
|
|
598
|
+
/**
|
|
599
|
+
* Executable artifact view builders contribution declared by an
|
|
600
|
+
* extension package.
|
|
601
|
+
*
|
|
602
|
+
* The `createBuilders` factory is called during extension activation and
|
|
603
|
+
* must return the set of builder registrations to install. Returning a
|
|
604
|
+
* `Promise` allows async resource acquisition (e.g. lazy loading).
|
|
605
|
+
*/
|
|
606
|
+
interface ExtensionArtifactViewBuildersContribution {
|
|
607
|
+
/**
|
|
608
|
+
* Factory that produces the builder registrations for this extension.
|
|
609
|
+
*
|
|
610
|
+
* Called once during extension activation. The returned builders are
|
|
611
|
+
* registered with the artifact view builder registry under the
|
|
612
|
+
* extension's owner key, replacing any previous set.
|
|
613
|
+
* @returns Builder registrations or a promise resolving to them.
|
|
614
|
+
*/
|
|
615
|
+
readonly createBuilders: () => readonly ArtifactViewBuilder[] | Promise<readonly ArtifactViewBuilder[]>;
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
export { ArtifactViewRawSectionSchema as A, defineSurfaceBinding as B, ArtifactViewLink as C, ArtifactViewPropertiesSection as D, ArtifactViewModelSchema$1 as E, ArtifactViewSummarySection as F, ArtifactViewSummarySectionSchema as I, ArtifactViewTableSection as L, ArtifactViewRelationsSectionSchema as M, ArtifactViewSection as N, ArtifactViewPropertiesSectionSchema as O, ArtifactViewSectionSchema as P, ArtifactViewTableSectionSchema as R, ArtifactViewLevelSchema as S, ArtifactViewModel$1 as T, ArtifactViewDiagramSection as _, ArtifactViewBuilder as a, ArtifactViewEvidenceSectionSchema as b, ArtifactViewParamsFor as c, ArtifactViewRequest as d, ArtifactViewRequestSchema as f, ArtifactViewCodeSectionSchema as g, ArtifactViewCodeSection as h, ArtifactViewAffordanceRequestSchema as i, ArtifactViewRelationsSection as j, ArtifactViewRawSection as k, ArtifactViewParamsMap as l, defineArtifactViewBuilder as m, ArtifactViewAffordanceDeclarationSchema as n, ArtifactViewBuilderContext as o, ExtensionArtifactViewBuildersContribution as p, ArtifactViewAffordanceRequest$1 as r, ArtifactViewBuilderResult as s, ArtifactViewAffordanceDeclaration as t, ArtifactViewParamsSchema as u, ArtifactViewDiagramSectionSchema as v, ArtifactViewLinkSchema as w, ArtifactViewLevel$1 as x, ArtifactViewEvidenceSection as y, SurfaceBindingDefinition as z };
|