@makaio/framework 1.0.0-dev-1788914730846 → 1.0.0-dev-1788955549564
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/{account-identity-DCBpVurJ.mjs → account-identity-B0NsOILM.mjs} +1 -1
- package/dist/{adapter-D6IpEDIo.mjs → adapter-DYE_oWjj.mjs} +1 -1
- package/dist/artifact-nArLAotB.mjs +1 -0
- package/dist/{automation-trigger-D_xKqEoV.mjs → automation-trigger-CZfH94Fr.mjs} +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-DwuFQ02A.mjs → canonical-model-oFNty7hj.mjs} +1 -1
- package/dist/{client-CTqzLpVx.mjs → client-DJMzCHRm.mjs} +1 -1
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/code-execution/worker-entry.d.mts +1 -1
- package/dist/{compression-3DauETKU.mjs → compression-nZhMDRTA.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +2 -2
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/code-execution/index.d.mts +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +4 -4
- 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 +69 -68
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- 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/reaction/index.d.mts +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/shared/index.mjs +1 -1
- 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/worker/index.d.mts +2 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{framework-packages-B3SQPHD7.mjs → framework-packages-25GUGzJ-.mjs} +1 -1
- package/dist/{index-CRQ2U0jE.d.mts → index-99Gz8ezO.d.mts} +3 -3
- package/dist/{index-Aomg_qFA2.d.mts → index-Bak5iKWv2.d.mts} +4 -24
- package/dist/{index-DfYMmJDZ.d.mts → index-C9J8wBLV.d.mts} +38 -2
- package/dist/{index-DI-1HK7v2.d.mts → index-CKjFFP6W2.d.mts} +1 -1
- package/dist/{index-BtC1JP5D.d.mts → index-CcgI6r0K.d.mts} +1 -1
- package/dist/{index-jXU4dntl.d.mts → index-ConotXyG.d.mts} +12 -12
- package/dist/{index-D3-21gUP.d.mts → index-CuLDybz3.d.mts} +1 -1
- package/dist/{index-C50sVXO7.d.mts → index-CwJaE0fT.d.mts} +13 -13
- package/dist/{index-ZEQDAT9K.d.mts → index-CyB6POkH.d.mts} +1 -1
- package/dist/{index-BjcJH3I-.d.mts → index-D2sbGoGS.d.mts} +1 -1
- package/dist/{index-D7j6v0-L.d.mts → index-D3RZEEE3.d.mts} +1 -1
- package/dist/{index-CmAJx-cX.d.mts → index-DfJNJYPV.d.mts} +3 -3
- package/dist/{index-BfXf_CcM.d.mts → index-GNRWZONO.d.mts} +1 -1
- package/dist/{index-KZ4YllPp.d.mts → index-OUtnmQ8t2.d.mts} +47 -47
- package/dist/{index-DRryNq7D.d.mts → index-OXuby-ee.d.mts} +10 -10
- package/dist/{index-BQv9mUzn.d.mts → index-SDXlgq07.d.mts} +36 -8
- package/dist/{index-CtlurrJF.d.mts → index-VbqrC9qf.d.mts} +45 -29
- 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/{load-extensions-un9Md47Z.d.mts → load-extensions-DM1PgW4a.d.mts} +1 -1
- package/dist/{materialization-CDemi12q.mjs → materialization-BQuh_gaE.mjs} +1 -1
- package/dist/{namespace-D9ToNQPp.d.mts → namespace-BQ7eiQwr.d.mts} +25 -25
- package/dist/{namespace-thsiHTFH.d.mts → namespace-Cb0XKb4v.d.mts} +2 -2
- package/dist/{namespace-CizM5GXh.d.mts → namespace-DAbT1F_n.d.mts} +6 -6
- package/dist/{namespace-DF9m7PLi.d.mts → namespace-c5XPzbf3.d.mts} +6 -6
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/{package-BR0pO5BI.d.mts → package-x2wRhcUt.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/packages-Dhgmy_LJ.mjs +1 -0
- package/dist/{reaction-OQibmmDW.mjs → reaction-6e4v007b.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-inputs-CMjGjK7W.d.mts +23 -0
- package/dist/runtime-node/code-execution/index.d.mts +2 -2
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/index.d.mts +5 -5
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/{schema-7GukLoee.d.mts → schema-DIgKUfuF.d.mts} +1 -1
- package/dist/{schemas-Df52igU4.d.mts → schemas-BFwNBMIj.d.mts} +4 -4
- package/dist/{schemas-CSDiTBsU.mjs → schemas-BIU9Org_.mjs} +1 -1
- package/dist/{schemas-CkOVC3ip.d.mts → schemas-COnD70WD.d.mts} +4 -4
- package/dist/{schemas-6FlRULSc.d.mts → schemas-Di_kpQ0C.d.mts} +1 -0
- package/dist/schemas-FiFC_DI6.mjs +1 -0
- package/dist/{schemas-DQ5iRisA.d.mts → schemas-I9dZtAkj.d.mts} +2 -2
- package/dist/{schemas-BUK9I-Oz.mjs → schemas-abY5VbS4.mjs} +1 -1
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- 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 +2 -2
- package/dist/services/code-execution/index.d.mts +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 +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- 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/git/namespace.d.mts +4 -4
- package/dist/services/git/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +46 -46
- 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/materialization/index.d.mts +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +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/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/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/orchestrator-shared.d.mts +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 +4 -4
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- 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-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/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/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/services/workflow-transitions/index.d.mts +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{session-CQAuApxe.mjs → session-A-h_Dwcs.mjs} +1 -1
- package/dist/{session-lineage-BtvnGkoC.d.mts → session-lineage-BzlpfLgC.d.mts} +1 -1
- package/dist/{shared-BYP7z9xy.mjs → shared-BZf2zoxL.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/testing/drizzle-harness.d.mts +8 -0
- package/dist/testing/drizzle-harness.mjs +1 -1
- package/dist/{tools-2INrWlnS.mjs → tools-oQPsY7v2.mjs} +1 -1
- package/dist/{transition-C1rMI1ue.d.mts → transition-BeWq5nKg.d.mts} +1 -1
- package/dist/{types-DIHb_m2K.d.mts → types-CIEJ91wm.d.mts} +13 -13
- package/dist/{types-CR415CdC2.d.mts → types-FNVbwd7z2.d.mts} +1 -1
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-Dt9UEsPc.d.mts → view-builder-BwGugMWz.d.mts} +1 -1
- package/dist/{worker-Bn0x5MSH.mjs → worker-Csadr_du.mjs} +1 -1
- package/dist/{workflow-B6C3Pf66.mjs → workflow-Cb2Pj1h3.mjs} +1 -1
- package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
- package/dist/workflow-engine/index.d.mts +25 -25
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/provider-operation.d.mts +1 -1
- package/dist/workflow-engine/testing/conformance.d.mts +1 -1
- package/dist/workflow-engine/testing/index.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/{workflow-transitions-BbhM_zPm.mjs → workflow-transitions-BI7PbrXv.mjs} +1 -1
- package/dist/workflow-worker-Db7EBUgh.mjs +2 -0
- package/package.json +1 -1
- package/dist/artifact-DtmJR46g.mjs +0 -1
- package/dist/packages-7CsXP86g.mjs +0 -1
- package/dist/schemas-BahXrOYa.mjs +0 -1
- package/dist/workflow-worker-BSJ6F4P0.mjs +0 -2
- /package/dist/{capability-service-CsWaOwvH.d.mts → capability-service-23Ot2J9A.d.mts} +0 -0
- /package/dist/{client-DP4ksY9q.d.mts → client-BwFqO0cG.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-BoXRTyae.d.mts → client-binary-version-verifier-DySlUy9m.d.mts} +0 -0
- /package/dist/{clients-namespace-BVDmj8uV.d.mts → clients-namespace-Dh0SNZcQ.d.mts} +0 -0
- /package/dist/{config-namespace-BMOKEuyf.d.mts → config-namespace-CZqPIAWt.d.mts} +0 -0
- /package/dist/{definition-ByVJ3n6o.d.mts → definition-D3HjoK-4.d.mts} +0 -0
- /package/dist/{execution-attempt-repository-dE889kHj.d.mts → execution-attempt-repository-CJVlPFMM.d.mts} +0 -0
- /package/dist/{extension-discovery-C0Nj5EVZ.d.mts → extension-discovery-CZkaPQBo.d.mts} +0 -0
- /package/dist/{filesystem-service-C6D7oABi.d.mts → filesystem-service-UYYyRL2y.d.mts} +0 -0
- /package/dist/{hook-responses-Cs8A07ZP.d.mts → hook-responses-chgDiS8D.d.mts} +0 -0
- /package/dist/{index-CNOqYviR.d.mts → index-6wmqw_ng.d.mts} +0 -0
- /package/dist/{index-BrRCVo9r.d.mts → index-B5kqAW7h.d.mts} +0 -0
- /package/dist/{index-DxaQ-ceV.d.mts → index-B6Kq1BtL.d.mts} +0 -0
- /package/dist/{index-l9WK9El6.d.mts → index-BAL1FiaJ.d.mts} +0 -0
- /package/dist/{index-BR7IiCib.d.mts → index-BCKhrNLC.d.mts} +0 -0
- /package/dist/{index-HRn0Kun0.d.mts → index-BU8uFswE.d.mts} +0 -0
- /package/dist/{index-fzrPfhS0.d.mts → index-BjELPYLF2.d.mts} +0 -0
- /package/dist/{index-B_VcKELo.d.mts → index-BrelUXBT.d.mts} +0 -0
- /package/dist/{index-BgY_UzH82.d.mts → index-BtPZcp4M2.d.mts} +0 -0
- /package/dist/{index-BGWkmG9i.d.mts → index-Bxs-oIo4.d.mts} +0 -0
- /package/dist/{index-BpWoCe22.d.mts → index-C-6g2xzN.d.mts} +0 -0
- /package/dist/{index-BHZlMm_I.d.mts → index-C6eJrtTA.d.mts} +0 -0
- /package/dist/{index-Bpv8EpBa.d.mts → index-CDeN0mdC.d.mts} +0 -0
- /package/dist/{index-_Ngf4KAa.d.mts → index-CU_HMaeC.d.mts} +0 -0
- /package/dist/{index-B_rFtKIO2.d.mts → index-CVx7li6B2.d.mts} +0 -0
- /package/dist/{index-CIV2G6uX2.d.mts → index-CYUhTE552.d.mts} +0 -0
- /package/dist/{index-CKvOECeR.d.mts → index-CuPq_ap8.d.mts} +0 -0
- /package/dist/{index-D6qlh6Td.d.mts → index-DB4Xggtt.d.mts} +0 -0
- /package/dist/{index-DZv9yNKF2.d.mts → index-DGlSbpgS2.d.mts} +0 -0
- /package/dist/{index-BnLp-7qH.d.mts → index-DNp9DP6W.d.mts} +0 -0
- /package/dist/{index-ksNVQHeY2.d.mts → index-DOkenapA.d.mts} +0 -0
- /package/dist/{index-BbjxBrcp2.d.mts → index-DQbcfjIb2.d.mts} +0 -0
- /package/dist/{index-DOKPbF-y2.d.mts → index-DX_2kGSg.d.mts} +0 -0
- /package/dist/{index-IkeLI7uY.d.mts → index-DbYjMWlj.d.mts} +0 -0
- /package/dist/{index-CHuB40EK.d.mts → index-DcG3r0VL.d.mts} +0 -0
- /package/dist/{index-B04VAxlm2.d.mts → index-Dmwnhnio2.d.mts} +0 -0
- /package/dist/{index-DLlTuugR.d.mts → index-LsZNB_gb.d.mts} +0 -0
- /package/dist/{index-CSEhxhIc.d.mts → index-SIP-fI28.d.mts} +0 -0
- /package/dist/{index-B7g7e7_f.d.mts → index-zvoiT54b.d.mts} +0 -0
- /package/dist/{namespace-CcHA54E1.d.mts → namespace-69c5HXtL.d.mts} +0 -0
- /package/dist/{namespace-DdcRYk7b.d.mts → namespace-B7fMkHmy.d.mts} +0 -0
- /package/dist/{namespace-CQaL10rI.d.mts → namespace-BoOLmi67.d.mts} +0 -0
- /package/dist/{namespace-Ct2DKREI.d.mts → namespace-CBf5xG_A.d.mts} +0 -0
- /package/dist/{namespace-sTMm1voF.d.mts → namespace-CIF_1OWi.d.mts} +0 -0
- /package/dist/{namespace-nE7vRctI.d.mts → namespace-CUXZS_Ia.d.mts} +0 -0
- /package/dist/{namespace-Ciyw6FxO.d.mts → namespace-DAW4OY3-.d.mts} +0 -0
- /package/dist/{namespace-DtXYm32M.d.mts → namespace-De25c2ds.d.mts} +0 -0
- /package/dist/{namespace-CePc0U4N.d.mts → namespace-DiTFR4Zt.d.mts} +0 -0
- /package/dist/{namespace-B_Gw6BMX.d.mts → namespace-JqvomFSV.d.mts} +0 -0
- /package/dist/{orchestrator-shared-CYnIz5Zd.d.mts → orchestrator-shared-BRNZ6it3.d.mts} +0 -0
- /package/dist/{packages-DtsjAYuf.d.mts → packages-BSVxszLf.d.mts} +0 -0
- /package/dist/{providers-namespace-BxknJ03z.d.mts → providers-namespace-DcPil5uz.d.mts} +0 -0
- /package/dist/{schemas-CKGHlsMd.d.mts → schemas-BZabEyEV.d.mts} +0 -0
- /package/dist/{schemas-0VbIjfrW.d.mts → schemas-CM3Ejp-n.d.mts} +0 -0
- /package/dist/{schemas-CsRcSlvA2.d.mts → schemas-DTyZjKQf2.d.mts} +0 -0
- /package/dist/{schemas-Cg2gAars.d.mts → schemas-DYeS-mtz.d.mts} +0 -0
- /package/dist/{schemas-KDl7p-wr.d.mts → schemas-Ge_bamoP.d.mts} +0 -0
- /package/dist/{schemas-Yp3PvwsM.d.mts → schemas-NwKrrrPF.d.mts} +0 -0
- /package/dist/{schemas-CmUWeOkr.d.mts → schemas-Vv0GtBaZ.d.mts} +0 -0
- /package/dist/{schemas-DzDVjYjt.d.mts → schemas-qbaSxHDL.d.mts} +0 -0
- /package/dist/{server-lifecycle-Ck6_8o8v.d.mts → server-lifecycle-BPAN-b0i.d.mts} +0 -0
- /package/dist/{storage-namespace-CRdQoXZ9.d.mts → storage-namespace-C9oFExfb.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-NBw1Y8Pa.d.mts → storage-namespace-definition-D6soSjKE.d.mts} +0 -0
- /package/dist/{types-CXrp5ldz.d.mts → types-BOsf2SVm.d.mts} +0 -0
- /package/dist/{types-CUCFeisO.d.mts → types-BZnJ_4e2.d.mts} +0 -0
- /package/dist/{types-BFv-EK2G.d.mts → types-CWgYlxjU.d.mts} +0 -0
- /package/dist/{types-BcGXdeva.d.mts → types-DZvkUmHS.d.mts} +0 -0
- /package/dist/{window-registry-Chi2qJ5k.d.mts → window-registry-Bvjvpwhn.d.mts} +0 -0
- /package/dist/{zod-json-schema-B9TYYq3e.mjs → zod-json-schema-B1mZz7S4.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ExtensionDiscovery } from "./extension-discovery-
|
|
1
|
+
import { r as ExtensionDiscovery } from "./extension-discovery-CZkaPQBo.mjs";
|
|
2
2
|
import { RegistrableBusNamespaceDefinition } from "@makaio/framework/core";
|
|
3
3
|
import { BusTransport, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
|
|
4
4
|
import { ExecutionAttemptBootstrapStartRefusalReason, ExecutionAttemptInstruction, ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptOutcome, ExecutionAttemptRuntimeRegisterRefusalReason, ExecutionAttemptWorkspaceBinding, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, JsonValue, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerAllocatedOutcome, WorkerBootstrapCredentials, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas, WorkspaceRequirement } from "@makaio/framework/contracts";
|
|
@@ -1812,6 +1812,30 @@ declare function submitOutcomeWithAck(bus: IMakaioBus, payload: OutcomeSubmitPay
|
|
|
1812
1812
|
*/
|
|
1813
1813
|
declare function submitAttemptOutcomeWithAck(bus: IMakaioBus, payload: AttemptOutcomeSubmitPayload, options?: OutcomeSubmitOptions): Promise<OutcomeAckDecision>;
|
|
1814
1814
|
//#endregion
|
|
1815
|
+
//#region runtimes/node/src/workflow-worker/workflow-launch-resolver.d.ts
|
|
1816
|
+
/** Owner-scoped reader for an Attempt's immutable instruction. */
|
|
1817
|
+
type WorkflowAttemptInstructionReader = (input: {
|
|
1818
|
+
readonly executionId: string;
|
|
1819
|
+
readonly executionAttemptId: string;
|
|
1820
|
+
}) => Promise<ExecutionAttemptInstruction | null>;
|
|
1821
|
+
/**
|
|
1822
|
+
* Resolves a workflow-specific launch configuration from a generic Worker request.
|
|
1823
|
+
*
|
|
1824
|
+
* This is intentionally a narrow adapter seam: common Worker provisioning never
|
|
1825
|
+
* interprets workload input, while the Piscina provider remains explicitly a
|
|
1826
|
+
* workflow runtime.
|
|
1827
|
+
*/
|
|
1828
|
+
type WorkflowLaunchResolver = (request: WorkerProvisionRequest, signal: AbortSignal) => Promise<WorkflowWorkerConfig>;
|
|
1829
|
+
/**
|
|
1830
|
+
* Create the workflow adapter used by the local Piscina provider.
|
|
1831
|
+
*
|
|
1832
|
+
* The reader is owner-scoped rather than bus-backed because a Worker has not
|
|
1833
|
+
* registered a runtime generation before the provider launches it.
|
|
1834
|
+
* @param readInstruction - Trusted Authority read for one owner and Attempt.
|
|
1835
|
+
* @returns Resolver that reconstructs the worker configuration for that Attempt.
|
|
1836
|
+
*/
|
|
1837
|
+
declare function createWorkflowLaunchResolver(readInstruction: WorkflowAttemptInstructionReader): WorkflowLaunchResolver;
|
|
1838
|
+
//#endregion
|
|
1815
1839
|
//#region runtimes/node/src/workflow-worker/piscina-thin-workflow-provider.d.ts
|
|
1816
1840
|
/**
|
|
1817
1841
|
* Construction options for {@link PiscinaThinWorkflowProvider}.
|
|
@@ -1840,6 +1864,11 @@ interface PiscinaThinWorkflowProviderOptions {
|
|
|
1840
1864
|
* durable `control.outcome.submit` protocol after the runner settles.
|
|
1841
1865
|
*/
|
|
1842
1866
|
readonly bus: IMakaioBus;
|
|
1867
|
+
/**
|
|
1868
|
+
* Workflow adapter that reconstructs a launch configuration from the
|
|
1869
|
+
* Attempt's canonical instruction and the selected Worker Runtime inputs.
|
|
1870
|
+
*/
|
|
1871
|
+
readonly launchResolver: WorkflowLaunchResolver;
|
|
1843
1872
|
/**
|
|
1844
1873
|
* Capabilities advertised when this provider is registered.
|
|
1845
1874
|
*
|
|
@@ -1880,7 +1909,7 @@ interface ReadinessAwareWorkflowRunner extends IWorkflowRunner {
|
|
|
1880
1909
|
* @param attempt - Attempt identity the dispatched worker registers against.
|
|
1881
1910
|
* @returns Terminal result promise and registration readiness promise.
|
|
1882
1911
|
*/
|
|
1883
|
-
runWithReadiness(config:
|
|
1912
|
+
runWithReadiness(config: WorkflowWorkerConfig, signal: AbortSignal, manifest: WorkerProvisionRequest['runtimeInputs']['workerManifest'] | undefined, attempt: ThinWorkflowPiscinaAttemptBinding): ThinWorkflowPiscinaRunWithReadiness;
|
|
1884
1913
|
}
|
|
1885
1914
|
/**
|
|
1886
1915
|
* Built-in thin workflow provider backed by the existing workflow-level
|
|
@@ -1931,8 +1960,7 @@ declare class PiscinaThinWorkflowProvider implements IWorkerProvider {
|
|
|
1931
1960
|
/** @returns Human-readable display name for this provider. */
|
|
1932
1961
|
get displayName(): string;
|
|
1933
1962
|
/**
|
|
1934
|
-
* Provision a new local execution allocation for the given
|
|
1935
|
-
* request.
|
|
1963
|
+
* Provision a new local execution allocation for the given Worker request.
|
|
1936
1964
|
*
|
|
1937
1965
|
* Starts the underlying runner and returns a validated allocation
|
|
1938
1966
|
* reference together with an infrastructure-only handle. The handle
|
|
@@ -1950,14 +1978,14 @@ declare class PiscinaThinWorkflowProvider implements IWorkerProvider {
|
|
|
1950
1978
|
* way to positively prove that nothing was created. The narrow type states
|
|
1951
1979
|
* what it can prove today. Gaining the ability to confirm absence means
|
|
1952
1980
|
* deliberately widening this signature back to the contract union.
|
|
1953
|
-
* A
|
|
1981
|
+
* A resolved workflow configuration without a bus URL is rejected loudly rather than
|
|
1954
1982
|
* allocated: the thread would have no transport, so it could never
|
|
1955
1983
|
* authenticate as the attempt or register its runtime, and the allocation
|
|
1956
1984
|
* would be a worker that is provisioned and permanently unready.
|
|
1957
|
-
* @param request -
|
|
1985
|
+
* @param request - Generic provision request with selected Runtime inputs.
|
|
1958
1986
|
* @param signal - AbortSignal for cooperative cancellation of the provision operation.
|
|
1959
1987
|
* @returns Allocated outcome with a validated allocation reference and infrastructure handle.
|
|
1960
|
-
* @throws When the
|
|
1988
|
+
* @throws When the workflow adapter cannot resolve a launch configuration or it carries no bus URL.
|
|
1961
1989
|
*/
|
|
1962
1990
|
provision(request: WorkerProvisionRequest, signal: AbortSignal): Promise<WorkerAllocatedOutcome>;
|
|
1963
1991
|
/**
|
|
@@ -2719,4 +2747,4 @@ declare class BootstrapStartRefusedError extends Error {
|
|
|
2719
2747
|
*/
|
|
2720
2748
|
declare function bootstrapWorkerRuntime(options: BootstrapWorkerRuntimeOptions): Promise<StartedWorkerRuntime>;
|
|
2721
2749
|
//#endregion
|
|
2722
|
-
export {
|
|
2750
|
+
export { WorkflowAttemptInstructionReader as $, InitializeNodeDatabaseOptions as $t, HeadlessWorkerExecutor as A, BootMakaioRuntimeOptions as At, WorkloadInvocationPreparation as B, WorkspaceRootResolver as Bt, loadWorkflowFromConfig as C, prepareAdapterRuntime as Cn, createWorkerBusAuth as Ct, HeadlessWorkerBootstrapCredentials as D, ThinWorkflowPiscinaRunnerOptions as Dt, HeadlessWorkerBootstrap as E, RuntimeLoadedWorkflow as Et, MaterializedWorkspace as F, UpstreamTelemetryBootOptions as Ft, IsolatedWorkflowRuntimeContext as G, computeFileDigest as Gt, runWorkloadInvocation as H, assertNoSymlinkEscape as Ht, runHeadlessWorkflowWorker as I, WorkflowRunnerBootOptions as It, createIsolatedWorkflowRuntime as J, verifyContribution as Jt, WorkflowRuntimeAuthorityConnector as K, materializeLocalDirectory as Kt, InstalledWorkloadAdapter as L, LocalDirectoryMaterializerOptions as Lt, HeadlessWorkerPostCommitObserver as M, MakaioRuntime as Mt, HeadlessWorkflowWorkerDeps as N, ServerTransportProvider as Nt, HeadlessWorkerBusConnector as O, WorkflowRunResult$1 as Ot, HeadlessWorkflowWorkerResult as P, TransportReadyInfo as Pt, PiscinaThinWorkflowProviderOptions as Q, DatabaseBootOptions as Qt, RunWorkloadInvocationOptions as R, MaterializationError as Rt, loadWorkflowModules as S, activateAdapterRuntimeIdentity as Sn, withWorkerBootstrapDeadline as St, LocalGitSourceOptions as T, IWorkflowRunner$1 as Tt, CreateIsolatedWorkflowRuntimeOptions as U, computeContributionPackageDigest as Ut, WorkloadInvocationResult as V, assertContainedIn as Vt, IsolatedWorkflowRuntime as W, computeDirectoryDigest as Wt, InProcessWorkflowRunnerOptions as X, WorkflowWorkerEntryResolverOptions as Xt, InProcessWorkflowRunner as Y, WorkflowWorkerEntryMode as Yt, PiscinaThinWorkflowProvider as Z, resolveWorkflowWorkerEntry as Zt, admitWorkflowRunOperation as _, createHonoRouteGraph as _n, createNodeWorkflowRunnerPackageOptions as _t, bootstrapWorkerRuntime as a, ShutdownStep as an, DELIVERED_DECISIONS as at, registerWorkerRuntime as b, PrepareAdapterRuntimeInput as bn, runWorkerBootstrapExchange as bt, DeliverableOperationKind as c, NodeFrameworkModuleResolver as cn, OutcomeSubmitPayload as ct, OperationDeliveryEndpointIdentity as d, HttpRouteGraphBuilder as dn, submitOutcomeWithAck as dt, InitializeNodeDatabaseResult as en, WorkflowLaunchResolver as et, OperationDeliveryHandler as f, createHttpRouteGraphBuilder as fn, WorkerRunner as ft, RuntimeRegistrationRefusedError as g, HonoRouteGraphOptions as gn, createNodeWorkflowRunner as gt, RegisterWorkerRuntimeOptions as h, HonoRouteGraph as hn, NodeWorkflowRunnerPackageOptions as ht, StartedWorkerRuntime as i, selectFrameworkCorePackages as in, AuthorityRequestDeliveryError as it, HeadlessWorkerMaterializer as j, CoreBootOptions as jt, HeadlessWorkerContributionLoader as k, BootCoordinatorSetupContext as kt, OperationAdmissionRefusedError as l, NoopFrameworkModuleResolver as ln, OutcomeSubmitRetryConfig as lt, RegisterAndAdmitWorkflowRunOptions as m, HttpRouteContribution as mn, CreateNodeWorkflowRunnerPackageOptionsParams as mt, BootstrapStartRefusedError as n, HostCapabilityDeclaration as nn, AttemptOutcomeDeliveryError as nt, AdmitWorkflowRunOperationOptions as o, BridgeBrowserOptions as on, OutcomeDeliveryError as ot, OperationDeliveryHandlers as p, HttpContributionPhase as pn, WorkerRunnerOptions as pt, WorkflowRuntimeContributionLoader as q, parseSriIntegrity as qt, BootstrapWorkerRuntimeOptions as r, normalizeNodeHostCapabilities as rn, AttemptOutcomeSubmitPayload as rt, AdmittedWorkflowRun as s, FrameworkModuleResolver as sn, OutcomeReconnect as st, BootstrapRuntimeConnection as t, initializeNodeDatabase as tn, createWorkflowLaunchResolver as tt, OperationDeliveryEndpoint as u, resolveFrameworkSpecifier as un, submitAttemptOutcomeWithAck as ut, installOperationDeliveryEndpoint as v, ActivateAdapterRuntimeIdentityInput as vn, BootstrapExchangeResult as vt, createLocalGitWorkspacePreparation as w, ThinWorkflowPiscinaRunner as wt, loadWorkflowModule as x, PreparedAdapterRuntime as xn, BootstrapDeadlineExceededError as xt, registerAndAdmitWorkflowRun as y, ActivatedAdapterRuntimeIdentity as yn, WorkerBootstrapExchangeOptions as yt, WorkloadControlBinding as z, ParsedSriIntegrity as zt };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { a as JsonObjectContractSchema } from "./json-value-DyMQrwGz.mjs";
|
|
2
2
|
import { o as ICapabilityProvider } from "./index-D3_QOfke.mjs";
|
|
3
|
-
import { Qt as WorkerContributionManifest, ln as WorkflowWorkerConfig } from "./index-
|
|
3
|
+
import { Qt as WorkerContributionManifest, ln as WorkflowWorkerConfig, sn as WorkflowWorkerBusAuth } from "./index-CwJaE0fT.mjs";
|
|
4
|
+
import { t as WorkerRuntimeInputs } from "./runtime-inputs-CMjGjK7W.mjs";
|
|
4
5
|
import * as _$zod from "zod";
|
|
5
6
|
import { z } from "zod";
|
|
6
7
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -2054,13 +2055,13 @@ declare const ReviewSchemas: {
|
|
|
2054
2055
|
deferred: "deferred";
|
|
2055
2056
|
}>;
|
|
2056
2057
|
startLine: z.ZodNullable<z.ZodNumber>;
|
|
2057
|
-
sourceId: z.ZodString;
|
|
2058
2058
|
severity: z.ZodEnum<{
|
|
2059
2059
|
critical: "critical";
|
|
2060
2060
|
major: "major";
|
|
2061
2061
|
minor: "minor";
|
|
2062
2062
|
nitpick: "nitpick";
|
|
2063
2063
|
}>;
|
|
2064
|
+
sourceId: z.ZodString;
|
|
2064
2065
|
reviewer: z.ZodString;
|
|
2065
2066
|
threadId: z.ZodNullable<z.ZodString>;
|
|
2066
2067
|
endLine: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2731,13 +2732,13 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2731
2732
|
deferred: "deferred";
|
|
2732
2733
|
}>;
|
|
2733
2734
|
startLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
2734
|
-
sourceId: _$zod.ZodString;
|
|
2735
2735
|
severity: _$zod.ZodEnum<{
|
|
2736
2736
|
critical: "critical";
|
|
2737
2737
|
major: "major";
|
|
2738
2738
|
minor: "minor";
|
|
2739
2739
|
nitpick: "nitpick";
|
|
2740
2740
|
}>;
|
|
2741
|
+
sourceId: _$zod.ZodString;
|
|
2741
2742
|
reviewer: _$zod.ZodString;
|
|
2742
2743
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2743
2744
|
endLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
@@ -3183,13 +3184,13 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3183
3184
|
deferred: "deferred";
|
|
3184
3185
|
}>;
|
|
3185
3186
|
startLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
3186
|
-
sourceId: _$zod.ZodString;
|
|
3187
3187
|
severity: _$zod.ZodEnum<{
|
|
3188
3188
|
critical: "critical";
|
|
3189
3189
|
major: "major";
|
|
3190
3190
|
minor: "minor";
|
|
3191
3191
|
nitpick: "nitpick";
|
|
3192
3192
|
}>;
|
|
3193
|
+
sourceId: _$zod.ZodString;
|
|
3193
3194
|
reviewer: _$zod.ZodString;
|
|
3194
3195
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3195
3196
|
endLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
@@ -3732,8 +3733,8 @@ type VoiceStatusState = z.infer<typeof VoiceStatusStateSchema>;
|
|
|
3732
3733
|
*/
|
|
3733
3734
|
declare const VoicePipelineLegSchema: z.ZodObject<{
|
|
3734
3735
|
runtime: z.ZodEnum<{
|
|
3735
|
-
client: "client";
|
|
3736
3736
|
server: "server";
|
|
3737
|
+
client: "client";
|
|
3737
3738
|
}>;
|
|
3738
3739
|
providerId: z.ZodString;
|
|
3739
3740
|
providerName: z.ZodString;
|
|
@@ -3752,16 +3753,16 @@ type VoicePipelineLegSchemaType = VoicePipelineLeg;
|
|
|
3752
3753
|
declare const VoicePipelineStrategySchema: z.ZodObject<{
|
|
3753
3754
|
stt: z.ZodObject<{
|
|
3754
3755
|
runtime: z.ZodEnum<{
|
|
3755
|
-
client: "client";
|
|
3756
3756
|
server: "server";
|
|
3757
|
+
client: "client";
|
|
3757
3758
|
}>;
|
|
3758
3759
|
providerId: z.ZodString;
|
|
3759
3760
|
providerName: z.ZodString;
|
|
3760
3761
|
}, z.core.$strip>;
|
|
3761
3762
|
tts: z.ZodObject<{
|
|
3762
3763
|
runtime: z.ZodEnum<{
|
|
3763
|
-
client: "client";
|
|
3764
3764
|
server: "server";
|
|
3765
|
+
client: "client";
|
|
3765
3766
|
}>;
|
|
3766
3767
|
providerId: z.ZodString;
|
|
3767
3768
|
providerName: z.ZodString;
|
|
@@ -3810,16 +3811,16 @@ declare const VoiceSchemas: {
|
|
|
3810
3811
|
strategy: z.ZodObject<{
|
|
3811
3812
|
stt: z.ZodObject<{
|
|
3812
3813
|
runtime: z.ZodEnum<{
|
|
3813
|
-
client: "client";
|
|
3814
3814
|
server: "server";
|
|
3815
|
+
client: "client";
|
|
3815
3816
|
}>;
|
|
3816
3817
|
providerId: z.ZodString;
|
|
3817
3818
|
providerName: z.ZodString;
|
|
3818
3819
|
}, z.core.$strip>;
|
|
3819
3820
|
tts: z.ZodObject<{
|
|
3820
3821
|
runtime: z.ZodEnum<{
|
|
3821
|
-
client: "client";
|
|
3822
3822
|
server: "server";
|
|
3823
|
+
client: "client";
|
|
3823
3824
|
}>;
|
|
3824
3825
|
providerId: z.ZodString;
|
|
3825
3826
|
providerName: z.ZodString;
|
|
@@ -3832,16 +3833,16 @@ declare const VoiceSchemas: {
|
|
|
3832
3833
|
strategy: z.ZodObject<{
|
|
3833
3834
|
stt: z.ZodObject<{
|
|
3834
3835
|
runtime: z.ZodEnum<{
|
|
3835
|
-
client: "client";
|
|
3836
3836
|
server: "server";
|
|
3837
|
+
client: "client";
|
|
3837
3838
|
}>;
|
|
3838
3839
|
providerId: z.ZodString;
|
|
3839
3840
|
providerName: z.ZodString;
|
|
3840
3841
|
}, z.core.$strip>;
|
|
3841
3842
|
tts: z.ZodObject<{
|
|
3842
3843
|
runtime: z.ZodEnum<{
|
|
3843
|
-
client: "client";
|
|
3844
3844
|
server: "server";
|
|
3845
|
+
client: "client";
|
|
3845
3846
|
}>;
|
|
3846
3847
|
providerId: z.ZodString;
|
|
3847
3848
|
providerName: z.ZodString;
|
|
@@ -3942,16 +3943,16 @@ declare const VoiceNamespace: _$_makaio_core0.BusNamespaceDefinition<"voice", {
|
|
|
3942
3943
|
strategy: _$zod.ZodObject<{
|
|
3943
3944
|
stt: _$zod.ZodObject<{
|
|
3944
3945
|
runtime: _$zod.ZodEnum<{
|
|
3945
|
-
client: "client";
|
|
3946
3946
|
server: "server";
|
|
3947
|
+
client: "client";
|
|
3947
3948
|
}>;
|
|
3948
3949
|
providerId: _$zod.ZodString;
|
|
3949
3950
|
providerName: _$zod.ZodString;
|
|
3950
3951
|
}, _$zod_v4_core0.$strip>;
|
|
3951
3952
|
tts: _$zod.ZodObject<{
|
|
3952
3953
|
runtime: _$zod.ZodEnum<{
|
|
3953
|
-
client: "client";
|
|
3954
3954
|
server: "server";
|
|
3955
|
+
client: "client";
|
|
3955
3956
|
}>;
|
|
3956
3957
|
providerId: _$zod.ZodString;
|
|
3957
3958
|
providerName: _$zod.ZodString;
|
|
@@ -3964,16 +3965,16 @@ declare const VoiceNamespace: _$_makaio_core0.BusNamespaceDefinition<"voice", {
|
|
|
3964
3965
|
strategy: _$zod.ZodObject<{
|
|
3965
3966
|
stt: _$zod.ZodObject<{
|
|
3966
3967
|
runtime: _$zod.ZodEnum<{
|
|
3967
|
-
client: "client";
|
|
3968
3968
|
server: "server";
|
|
3969
|
+
client: "client";
|
|
3969
3970
|
}>;
|
|
3970
3971
|
providerId: _$zod.ZodString;
|
|
3971
3972
|
providerName: _$zod.ZodString;
|
|
3972
3973
|
}, _$zod_v4_core0.$strip>;
|
|
3973
3974
|
tts: _$zod.ZodObject<{
|
|
3974
3975
|
runtime: _$zod.ZodEnum<{
|
|
3975
|
-
client: "client";
|
|
3976
3976
|
server: "server";
|
|
3977
|
+
client: "client";
|
|
3977
3978
|
}>;
|
|
3978
3979
|
providerId: _$zod.ZodString;
|
|
3979
3980
|
providerName: _$zod.ZodString;
|
|
@@ -4028,16 +4029,16 @@ declare const VoiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
4028
4029
|
strategy: _$zod.ZodObject<{
|
|
4029
4030
|
stt: _$zod.ZodObject<{
|
|
4030
4031
|
runtime: _$zod.ZodEnum<{
|
|
4031
|
-
client: "client";
|
|
4032
4032
|
server: "server";
|
|
4033
|
+
client: "client";
|
|
4033
4034
|
}>;
|
|
4034
4035
|
providerId: _$zod.ZodString;
|
|
4035
4036
|
providerName: _$zod.ZodString;
|
|
4036
4037
|
}, _$zod_v4_core0.$strip>;
|
|
4037
4038
|
tts: _$zod.ZodObject<{
|
|
4038
4039
|
runtime: _$zod.ZodEnum<{
|
|
4039
|
-
client: "client";
|
|
4040
4040
|
server: "server";
|
|
4041
|
+
client: "client";
|
|
4041
4042
|
}>;
|
|
4042
4043
|
providerId: _$zod.ZodString;
|
|
4043
4044
|
providerName: _$zod.ZodString;
|
|
@@ -4050,16 +4051,16 @@ declare const VoiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
4050
4051
|
strategy: _$zod.ZodObject<{
|
|
4051
4052
|
stt: _$zod.ZodObject<{
|
|
4052
4053
|
runtime: _$zod.ZodEnum<{
|
|
4053
|
-
client: "client";
|
|
4054
4054
|
server: "server";
|
|
4055
|
+
client: "client";
|
|
4055
4056
|
}>;
|
|
4056
4057
|
providerId: _$zod.ZodString;
|
|
4057
4058
|
providerName: _$zod.ZodString;
|
|
4058
4059
|
}, _$zod_v4_core0.$strip>;
|
|
4059
4060
|
tts: _$zod.ZodObject<{
|
|
4060
4061
|
runtime: _$zod.ZodEnum<{
|
|
4061
|
-
client: "client";
|
|
4062
4062
|
server: "server";
|
|
4063
|
+
client: "client";
|
|
4063
4064
|
}>;
|
|
4064
4065
|
providerId: _$zod.ZodString;
|
|
4065
4066
|
providerName: _$zod.ZodString;
|
|
@@ -6341,6 +6342,21 @@ declare const WorkerRequirementsSchema: z.ZodObject<{
|
|
|
6341
6342
|
type WorkerRequirements = z.input<typeof WorkerRequirementsSchema>;
|
|
6342
6343
|
/** Resource requirements after schema defaults have been applied. */
|
|
6343
6344
|
type NormalizedWorkerRequirements = z.output<typeof WorkerRequirementsSchema>;
|
|
6345
|
+
/**
|
|
6346
|
+
* Private, ephemeral connection values supplied to a Worker provider.
|
|
6347
|
+
*
|
|
6348
|
+
* These values are resolved only for the current provisioning or recovery
|
|
6349
|
+
* operation. They must not be persisted in provider bindings or exposed
|
|
6350
|
+
* through public runtime inputs.
|
|
6351
|
+
*/
|
|
6352
|
+
interface WorkerRuntimeConnection {
|
|
6353
|
+
/** Bus server WebSocket URL for the Worker to connect to, when applicable. */
|
|
6354
|
+
readonly busUrl?: string;
|
|
6355
|
+
/** Bus authentication strategy resolved for this Worker connection. */
|
|
6356
|
+
readonly busAuth: WorkflowWorkerBusAuth;
|
|
6357
|
+
/** Additional resolved environment variables injected into the Worker process. */
|
|
6358
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
6359
|
+
}
|
|
6344
6360
|
/**
|
|
6345
6361
|
* Attempt context shared by initial provisioning and allocation recovery.
|
|
6346
6362
|
*
|
|
@@ -6349,16 +6365,16 @@ type NormalizedWorkerRequirements = z.output<typeof WorkerRequirementsSchema>;
|
|
|
6349
6365
|
* in the host-owned dispatch layer above this contract.
|
|
6350
6366
|
*/
|
|
6351
6367
|
interface WorkerProviderContext {
|
|
6352
|
-
/**
|
|
6368
|
+
/** Generic execution-owner key that scopes this Worker allocation. */
|
|
6353
6369
|
readonly executionId: string;
|
|
6354
6370
|
/** Authority-created attempt identifier for this dispatch. */
|
|
6355
6371
|
readonly executionAttemptId: string;
|
|
6356
6372
|
/** Execution environment tag matching the provider's `environment` field. */
|
|
6357
6373
|
readonly environment: string;
|
|
6358
|
-
/**
|
|
6359
|
-
readonly
|
|
6360
|
-
/**
|
|
6361
|
-
readonly
|
|
6374
|
+
/** Non-secret Runtime composition selected for this Worker allocation. */
|
|
6375
|
+
readonly runtimeInputs: WorkerRuntimeInputs;
|
|
6376
|
+
/** Private, ephemeral connection values resolved for this provider operation. */
|
|
6377
|
+
readonly connection: WorkerRuntimeConnection;
|
|
6362
6378
|
/**
|
|
6363
6379
|
* Non-secret ISO 8601 instant, with `Z` or a numeric offset, at which
|
|
6364
6380
|
* provisioning for this attempt began.
|
|
@@ -6579,10 +6595,10 @@ interface WorkerConfirmedAbsentOutcome {
|
|
|
6579
6595
|
*/
|
|
6580
6596
|
type WorkerProvisionOutcome = WorkerAllocatedOutcome | WorkerConfirmedAbsentOutcome;
|
|
6581
6597
|
/**
|
|
6582
|
-
* Capability provider that can provision one-shot Worker allocations for
|
|
6598
|
+
* Capability provider that can provision one-shot Worker allocations for workload execution.
|
|
6583
6599
|
*
|
|
6584
6600
|
* Implementations must extend {@link ICapabilityProvider} and declare the
|
|
6585
|
-
* execution `environment` tag used to match
|
|
6601
|
+
* execution `environment` tag used to match workload requirements, plus the
|
|
6586
6602
|
* {@link WorkerAllocationLifetime} of the allocations they create.
|
|
6587
6603
|
*
|
|
6588
6604
|
* Provisioning accepts a cancellation signal from its first async operation.
|
|
@@ -6608,7 +6624,7 @@ interface IWorkerProvider extends ICapabilityProvider {
|
|
|
6608
6624
|
* allocation with a validated reference and infrastructure-only handle, or
|
|
6609
6625
|
* a positively confirmed absence supported by bounded evidence. Ambiguous
|
|
6610
6626
|
* failures reject instead of resolving.
|
|
6611
|
-
* @param request - Full provision request containing
|
|
6627
|
+
* @param request - Full provision request containing Runtime inputs and private connection values.
|
|
6612
6628
|
* @param signal - AbortSignal for cooperative cancellation of the provision operation.
|
|
6613
6629
|
* @returns Allocated reference and handle, or confirmed absence with bounded evidence.
|
|
6614
6630
|
*/
|
|
@@ -6781,9 +6797,9 @@ type OutcomeAckDecision = 'accepted' | 'duplicate' | 'conflict' | 'fenced';
|
|
|
6781
6797
|
* Zod schema for outcome ACK decisions.
|
|
6782
6798
|
*/
|
|
6783
6799
|
declare const OutcomeAckDecisionSchema: z.ZodEnum<{
|
|
6784
|
-
fenced: "fenced";
|
|
6785
6800
|
accepted: "accepted";
|
|
6786
6801
|
duplicate: "duplicate";
|
|
6802
|
+
fenced: "fenced";
|
|
6787
6803
|
conflict: "conflict";
|
|
6788
6804
|
}>;
|
|
6789
6805
|
/**
|
|
@@ -7236,4 +7252,4 @@ declare function registerGitHookEventsProvider(bus: MakaioBusLike, provider: IGi
|
|
|
7236
7252
|
*/
|
|
7237
7253
|
declare function unregisterGitHookEventsProvider(bus: MakaioBusLike, providerId: string): Promise<void>;
|
|
7238
7254
|
//#endregion
|
|
7239
|
-
export { ProviderAllocationRef as $,
|
|
7255
|
+
export { ProviderAllocationRef as $, ReviewTriggerResult as $n, STTResult as $t, AllocationInspection as A, VisionAnalysisRequest as An, VCSCommitStatus as Ar, CheckRunDetail as At, IWorkerRecoveryCapability as B, unregisterReviewerProcessor as Bn, VCSRepository as Br, PullRequestState as Bt, unregisterWorkerProvider as C, STTMode as Cn, VCSSubjects as Cr, WorkerProvisionRequest as Ct, createAllocationRefCodec as D, VisionNamespace as Dn, VCSSchemas as Dr, WorkspaceSnapshotMaterializationSchema as Dt, ProviderAllocationRefError as E, TTS_MODE_LITERALS as En, MergeOptions as Er, WorkerRuntimeConnection as Et, BoundedRecoveryEvidence as F, REVIEWER_PROCESSOR_CAPABILITY_ID as Fn, VCSPullRequestDetail as Fr, FindingsSummarySchema as Ft, NO_ALLOCATION_OBSERVED_CODE as G, IReviewerProcessor as Gn, IServerProvider as Gr, ReadinessAssessmentSchema as Gt, MATERIALIZATION_MODES as H, ReviewSubjects as Hn, registerServerProvider as Hr, PullRequestTarget as Ht, BoundedRecoveryEvidenceSchema as I, REVIEW_SOURCE_CAPABILITY_ID as In, VCSPullRequestDetailSchema as Ir, LabelInfo as It, OutcomeAckDecision as J, ProcessIssueCommentsParams as Jn, UpgradeHandler as Jr, ReviewsSummary as Jt, NormalizedWorkerCapabilities as K, ProcessCliOutputParams as Kn, SERVER_CAPABILITY_ID as Kr, ReviewerState as Kt, EXHAUSTIVE_SEARCH_UNAVAILABLE_CODE as L, registerReviewSource as Ln, VCSPullRequestSchema as Lr, LabelInfoSchema as Lt, AllocationState as M, VisionAnalysisResult as Mn, VCSCheckRun as Mr, ChecksSummary as Mt, AllocationStateSchema as N, VisionAnalysisResultSchema as Nn, VCSCheckRunSchema as Nr, ChecksSummarySchema as Nt, ALLOCATION_STATES as O, VisionSubjects as On, VCSReviewComment as Or, VCSPRNamespace as Ot, BUILT_IN_THIN_WORKFLOW_PROVIDER_ID as P, VisionSchemas as Pn, VCSPullRequest as Pr, FindingsSummary as Pt, PROVISIONING_DISCOVERY_KINDS as Q, ReviewTriggerParams as Qn, VoiceSubjects as Qt, IRecoverableWorkerProvider as R, registerReviewerProcessor as Rn, VCSReview as Rr, LabelSemantic as Rt, registerWorkerProvider as S, VoiceProviderPreference as Sn, VCSNamespace as Sr, WorkerProvisionOutcome as St, ProviderAllocationRefCodec as T, TTSMode as Tn, IVCSProvider as Tr, WorkerRequirementsSchema as Tt, MaterializationMode as U, FetchFindingsParams as Un, unregisterServerProvider as Ur, PullRequestTargetSchema as Ut, LocalDirectoryMaterializationSchema as V, ReviewNamespace as Vn, VCSRepositorySchema as Vr, PullRequestStateSchema as Vt, MaterializationModeSchema as W, IReviewSource as Wn, HttpServerLike as Wr, ReadinessAssessment as Wt, PRE_REQUEST_REJECTION_CODE as X, ReviewRequestContext as Xn, registerAutoLaunchProvider as Xr, VCSPRSchemas as Xt, OutcomeAckDecisionSchema as Y, ProcessReviewBodyParams as Yn, AUTO_LAUNCH_CAPABILITY_ID as Yr, ReviewsSummarySchema as Yt, PROVIDER_ALLOCATION_REF_VERSION as Z, ReviewSourceSnapshot as Zn, IAutoLaunchProvider as Zr, VoiceNamespace as Zt, GitHookRewritePair as _, STTRequest as _n, VCS_CAPABILITY_ID as _r, WorkerHandle as _t, GitHookCoverageReason as a, VoiceProviderPreferenceSchema as an, FindingStatusSchema as ar, WORKER_CAPABILITY_ID as at, GitHookNamespace as b, VoicePipelineLeg as bn, VCSEvents as br, WorkerMaterializationSpecSchema as bt, GitHookCoverageRequestSchema as c, VoiceStatusState as cn, ReviewFinding as cr, WorkerAllocationLifetimeSchema as ct, GitHookCoveredOperation as d, ClientVoiceProviderDescriptor as dn, ReviewIssueCommentSchema as dr, WorkerCapabilitiesSchema as dt, STTResultSchema as en, FindingOrigin as er, ProviderAllocationRefSchema as et, GitHookCoveredOperationSchema as f, ISTTProvider as fn, ReviewSchemas as fr, WorkerConfirmedAbsentOutcome as ft, GitHookRewriteEventSchema as g, STTProviderCapabilities as gn, SuggestedChangeSchema as gr, WorkerDispatchAck as gt, GitHookRewriteEvent as h, ProviderRuntime as hn, SuggestedChange as hr, WorkerDispatch as ht, IGitHookEventsProvider as i, VoicePipelineStrategySchemaType as in, FindingStatus as ir, WORKER_ALLOCATION_LIFETIMES as it, AllocationInspectionSchema as j, VisionAnalysisRequestSchema as jn, VCSCommitStatusSchema as jr, CheckRunDetailSchema as jt, AMBIGUOUS_ALLOCATION_MATCH_CODE as k, IVisionProvider as kn, VCSReviewCommentSchema as kr, VCSPRSubjects as kt, GitHookCoverageResponse as l, VoiceStatusStateSchema as ln, ReviewFindingSchema as lr, WorkerCapabilities as lt, GitHookNativeMergeEventSchema as m, IVocabularyProvider as mn, ReviewSourceRateLimitSchema as mr, WorkerContributionRefSchema as mt, registerGitHookEventsProvider as n, VoicePipelineLegSchemaType as nn, FindingSeverity as nr, ProvisioningDiscoverySchema as nt, GitHookCoverageReasonSchema as o, VoiceSchemas as on, FindingTarget as or, WorkerAllocatedOutcome as ot, GitHookNativeMergeEvent as p, ITTSProvider as pn, ReviewSourceRateLimit as pr, WorkerContributionRef as pt, NormalizedWorkerRequirements as q, ProcessCommentsParams as qn, ServerAddress as qr, ReviewerStateSchema as qt, unregisterGitHookEventsProvider as r, VoicePipelineStrategySchema as rn, FindingSeveritySchema as rr, RECOVERY_EVIDENCE_LIMITS as rt, GitHookCoverageRequest as s, VoiceSessionStartResponse as sn, FindingTargetSchema as sr, WorkerAllocationLifetime as st, GIT_HOOK_EVENTS_CAPABILITY_ID as t, VoicePipelineLegSchema as tn, FindingOriginSchema as tr, ProvisioningDiscovery as tt, GitHookCoverageResponseSchema as u, AudioChunk as un, ReviewIssueComment as ur, WorkerCapabilitiesInput as ut, GitHookRewritePairSchema as v, TTSProviderCapabilities as vn, registerVCSProvider as vr, WorkerInfrastructureConclusion as vt, boundedProviderEvidence as w, STT_MODE_LITERALS as wn, CreatePROptions as wr, WorkerRequirements as wt, GitHookSubjects as x, VoicePipelineStrategy as xn, VCSEventsNamespace as xr, WorkerProviderContext as xt, GitHookSchemas as y, TTSRequest as yn, unregisterVCSProvider as yr, WorkerMaterializationSpec as yt, IWorkerProvider as z, unregisterReviewSource as zn, VCSReviewSchema as zr, LabelSemanticSchema as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CliSubcommandDefinition, c as EmbeddedBusHandle, d as ProvideBusContext, f as defineCliSubcommand, i as CliContribution, l as INTERACTIVE_SUBCOMMAND, n as BeforeRunContext, o as CliSubcommandEntry, p as requireBus, r as BeforeRunResult, s as CommandContext, t as ALWAYS_PROCEED, u as OutputWriter } from "../../types-
|
|
2
|
-
import { n as CliRpcSubjects, t as CliNamespace } from "../../namespace-
|
|
1
|
+
import { a as CliSubcommandDefinition, c as EmbeddedBusHandle, d as ProvideBusContext, f as defineCliSubcommand, i as CliContribution, l as INTERACTIVE_SUBCOMMAND, n as BeforeRunContext, o as CliSubcommandEntry, p as requireBus, r as BeforeRunResult, s as CommandContext, t as ALWAYS_PROCEED, u as OutputWriter } from "../../types-CWgYlxjU.mjs";
|
|
2
|
+
import { n as CliRpcSubjects, t as CliNamespace } from "../../namespace-De25c2ds.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { CliArgManifest } from "@makaio/framework/contracts/extension";
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CliRpcSubjects, t as CliNamespace } from "../../namespace-
|
|
1
|
+
import { n as CliRpcSubjects, t as CliNamespace } from "../../namespace-De25c2ds.mjs";
|
|
2
2
|
export { CliNamespace, CliRpcSubjects };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-
|
|
1
|
+
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-DfJNJYPV.mjs";
|
|
2
2
|
export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
|
package/dist/kernel/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-
|
|
2
|
-
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-
|
|
3
|
-
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-
|
|
4
|
-
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-
|
|
5
|
-
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-
|
|
1
|
+
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-CVx7li6B2.mjs";
|
|
2
|
+
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-DfJNJYPV.mjs";
|
|
3
|
+
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-Bvjvpwhn.mjs";
|
|
4
|
+
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-DcG3r0VL.mjs";
|
|
5
|
+
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-DQbcfjIb2.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
8
8
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../../index-
|
|
1
|
+
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../../index-DcG3r0VL.mjs";
|
|
2
2
|
export { KernelNamespace, KernelSchemas, KernelSubjects };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-
|
|
1
|
+
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-CVx7li6B2.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../../index-
|
|
1
|
+
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../../index-DQbcfjIb2.mjs";
|
|
2
2
|
export { EphemeralIdentityProvider, IdentityProvider, MachineIdentity, MemoryStorageProvider, NoTransportProvider, StorageCleanup, StorageProvider, TransportProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../../window-registry-
|
|
1
|
+
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../../window-registry-Bvjvpwhn.mjs";
|
|
2
2
|
export { STYLE_DEFAULTS, type WindowRegistration, WindowRegistry, type WindowStyle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ExtensionEntrypointModule, t as DiscoveredExtension } from "./extension-discovery-
|
|
1
|
+
import { i as ExtensionEntrypointModule, t as DiscoveredExtension } from "./extension-discovery-CZkaPQBo.mjs";
|
|
2
2
|
import { KernelMakaioExtension } from "@makaio/framework/kernel";
|
|
3
3
|
import { CliContribution } from "@makaio/framework/kernel/cli";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{C as n}from"./schemas-FiFC_DI6.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=r.enum([`link`,`summary`,`full`]),o=r.object({artifactId:r.string().min(1).optional(),url:r.string().min(1).optional(),label:r.string().min(1)}),s=r.object({id:r.string().min(1),kind:r.string().min(1),revision:r.string().min(1),status:r.string().min(1).optional()}),c=r.object({breadcrumbs:r.array(o),related:r.array(o)}),l=r.object({dashboard:r.string().min(1).optional(),materialized:r.string().min(1).optional()}),u=r.object({type:r.literal(`summary`),title:r.string().min(1),text:r.string().min(1)}),d=r.object({type:r.literal(`properties`),title:r.string().min(1),rows:r.array(r.object({label:r.string().min(1),value:r.string()}))}),f=r.object({type:r.literal(`table`),title:r.string().min(1),columns:r.array(r.string().min(1)),rows:r.array(r.object({cells:r.array(r.string()),link:o.optional()}))}),p=r.object({type:r.literal(`relations`),title:r.string().min(1),groups:r.array(r.object({type:r.string().min(1),items:r.array(o)}))}),m=r.object({type:r.literal(`evidence`),title:r.string().min(1),items:r.array(r.object({kind:r.string().min(1),id:r.string().min(1),locator:r.string().min(1).optional()}))}),h=r.object({type:r.literal(`raw`),title:r.string().min(1),json:t}),g=r.object({type:r.literal(`code`),title:r.string().min(1),language:r.string().min(1),content:r.string()}),_=r.object({type:r.literal(`diagram`),title:r.string().min(1),notation:r.literal(`mermaid`),source:r.string().min(1)}),v=r.discriminatedUnion(`type`,[u,d,f,p,m,h,g,_]),y=r.object({title:r.string().min(1),artifact:s,navigation:c,sections:r.array(v),links:l}),b=e,x=r.object({level:a,params:b.optional()}),S=r.object({kind:r.literal(`entry`),via:r.string().min(1).optional(),collection:r.string().min(1).optional()});function C(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:r.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const w=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1),as:a.optional()}),S.extend({title:r.string().min(1).optional(),hostRelation:r.string().min(1).optional()}).superRefine(C(`affordance`))]),T=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1)}),S.superRefine(C(`request`))]);function E(e){return e}const D=r.enum([`title`,`summary`]),O=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`label`),prefix:r.string().min(1).optional()}),r.object({kind:r.literal(`field`),name:r.string().min(1),fieldId:r.string().min(1).optional()}),r.object({kind:r.literal(`issue-type`),name:r.string().min(1),typeId:r.string().min(1).optional()}),r.object({kind:r.literal(`body-fragment`),slot:r.string().min(1)}),r.object({kind:r.literal(`comment`),template:r.string().min(1)})]),k=r.object({id:r.string().min(1),provider:r.string().min(1),namespace:r.string().min(1),target:O,appliesTo:r.array(r.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:r.record(r.string(),r.string()).optional(),description:r.string().min(1).optional(),params:e.optional()}),A=r.enum([`status`,`workflow`,`priority`]),j=r.object({path:r.string().min(1),semantic:A.optional(),fromLevel:a.optional(),viewRole:D.optional()}),M=r.object({mode:r.enum([`none`,`surface`,`comment`]),defaultRole:r.enum([`workpiece`,`artifact`]).optional(),semanticEvents:r.array(r.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:r.array(j).optional(),affordances:r.array(w).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,i=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&i++;n>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),i>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),N=r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),externalUrl:r.string().optional(),surfaceRole:r.enum([`workpiece`,`artifact`]),lastSyncedRevision:r.string().optional(),metadata:r.record(r.string(),r.unknown()).optional()}),P=x.extend({ref:n,affordance:T}),F=r.discriminatedUnion(`status`,[r.object({status:r.literal(`ok`),view:y,builderVersion:r.number().int().positive(),sourceRevision:r.string().min(1)}),r.object({status:r.literal(`artifact-not-found`),view:r.null()}),r.object({status:r.literal(`not-rendered`),view:r.null()})]),I={"surfaceBinding.register":{request:k,response:r.object({registered:r.boolean()})},"surfaceBinding.list":{request:r.object({id:r.string().min(1).optional(),provider:r.string().min(1).optional(),namespace:r.string().min(1).optional()}),response:r.object({bindings:r.array(k)})},"surfaceBinding.changed":r.object({id:r.string().min(1),provider:r.string().min(1)}),"ref.changed":r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),operation:r.enum([`upserted`,`deleted`]),origin:r.enum([`factory`,`external`]).optional()}),"capability.resolved":r.object({provider:r.string().min(1),surface:r.string().min(1),capabilities:r.record(r.string().min(1),r.boolean()),degraded:r.boolean()}),"artifact.view.resolve":{request:P,response:F}},L=i(`materialization`,I),R=L.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}export{v as A,a as C,d as D,c as E,l as M,f as N,h as O,s as S,y as T,x as _,I as a,_ as b,M as c,D as d,k as f,b as g,T as h,L as i,u as j,p as k,j as l,w as m,P as n,R as o,O as p,F as r,N as s,z as t,A as u,E as v,o as w,m as x,g as y};
|