@makaio/framework 1.0.0-dev-1789000242829 → 1.0.0-dev-1789034250920
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 +24 -24
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/node.d.mts +1 -1
- package/dist/artifact--nbPrvm5.mjs +1 -0
- package/dist/attempt-control-evidence-BKw1U3wL.mjs +1 -0
- package/dist/bus/index.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/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 +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/automation-trigger/index.d.mts +3 -3
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- 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/extension/index.d.mts +5 -5
- 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 +301 -75
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- 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/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/worker/index.d.mts +2 -2
- 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/{contribution-BfEEQ8YZ.d.mts → contribution-CejwVIb3.d.mts} +2 -2
- package/dist/{definition-6d5JBi55.d.mts → definition-DSOXLpQj.d.mts} +1 -1
- package/dist/{detached-extension-handle-BJnk3WEh.mjs → detached-extension-handle-BNvRSUVO.mjs} +1 -1
- package/dist/{execution-attempt-repository-DSpz2kyW.d.mts → execution-attempt-repository-BoNwNybg.d.mts} +85 -3
- package/dist/{extension-context-Cpf_n5FH.d.mts → extension-context-SrQpa_kp.d.mts} +3 -3
- package/dist/{hook-responses-CpEfxEmG.d.mts → hook-responses-E1gipXIp.d.mts} +1 -1
- package/dist/{index-BxJRljy-.d.mts → index-0_Ao0hwU.d.mts} +236 -101
- package/dist/{index-C75h1xHF2.d.mts → index-6BDbhx3A2.d.mts} +1 -1
- package/dist/{index-hm8NV4CJ2.d.mts → index-B7VWSBm72.d.mts} +4 -4
- package/dist/{index-BTluq4-E.d.mts → index-B94tZHiU.d.mts} +6295 -3178
- package/dist/{index-Dzozmb5u.d.mts → index-BFchykav.d.mts} +3 -3
- package/dist/{index-Dckvm0Ml2.d.mts → index-BN0qpem12.d.mts} +16 -16
- package/dist/{index-CVh7ZP2I.d.mts → index-BN2_TMtX.d.mts} +6 -6
- package/dist/{index-CilWtThn.d.mts → index-BPrpnLRQ.d.mts} +4 -4
- package/dist/{index-BfwHYuRf.d.mts → index-BTwMms1p.d.mts} +1 -1
- package/dist/{index-Bj2JCo9V.d.mts → index-BXair-QK.d.mts} +1 -1
- package/dist/{index-DR308wUB2.d.mts → index-BeLI73yw2.d.mts} +3 -3
- package/dist/{index-CRM23ToM2.d.mts → index-BncQwKi-2.d.mts} +39 -39
- package/dist/{index-BlHq_Ksb.d.mts → index-CLmjrH8K.d.mts} +2 -2
- package/dist/{index-BM-FPWjs2.d.mts → index-CTNGL-cq2.d.mts} +1 -1
- package/dist/{index-D7IZQNhD.d.mts → index-CgYGg-Ne2.d.mts} +2 -2
- package/dist/{index-DY_0TRvM.d.mts → index-Cp9olTr7.d.mts} +8 -8
- package/dist/{index-CCNCo440.d.mts → index-D1rYHYPO.d.mts} +16 -16
- package/dist/{index-DvoitgXV.d.mts → index-DKq33gti.d.mts} +22 -22
- package/dist/{index-Bn6sN1op.d.mts → index-DUH2eTyC.d.mts} +1 -1
- package/dist/{index-C742b1FV.d.mts → index-DUdGqxHD.d.mts} +1 -1
- package/dist/{index-BfzuauBt2.d.mts → index-DWlmiprx2.d.mts} +1 -1
- package/dist/{index-6kg8YFYt.d.mts → index-DnZksNTM.d.mts} +1 -1
- package/dist/{index-B3G-Hzwn.d.mts → index-Dp3UZQv_.d.mts} +1 -1
- package/dist/{index-CjMMvZch.d.mts → index-DxUstDMY.d.mts} +1 -1
- package/dist/{index-GTCM4lXx.d.mts → index-MKNhvbfG.d.mts} +4 -4
- package/dist/{index-CDhbUjUH.d.mts → index-OLGGmjgd.d.mts} +1 -1
- package/dist/{index-Bzxs2nVR.d.mts → index-yapYXeah.d.mts} +8 -8
- 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-BmXBuE-w.mjs → lib-B1Mvm4hQ.mjs} +1 -1
- package/dist/{lib-R-c_q77C.mjs → lib-D1-cvcTz.mjs} +1 -1
- package/dist/{load-extensions-Bu10B5B1.d.mts → load-extensions-D6SVKBPw.d.mts} +1 -1
- package/dist/{load-extensions-s4YmICgn.mjs → load-extensions-bwisKaW0.mjs} +1 -1
- package/dist/{namespace-CY-9Evdf.d.mts → namespace-BYBMtQUy.d.mts} +4 -4
- package/dist/{namespace-btfJrUf6.d.mts → namespace-CYYFqmtJ.d.mts} +6 -6
- package/dist/{namespace-fEBskugJ.d.mts → namespace-CZJQrexB.d.mts} +18 -18
- package/dist/{namespace-CfA0C0JR.d.mts → namespace-CfNNUjVv.d.mts} +2 -2
- package/dist/{namespace-B0_Sg-1m.d.mts → namespace-CjFT0wBT.d.mts} +2 -2
- package/dist/{namespace-Dmbm2JzV.d.mts → namespace-l1Rcc4mp.d.mts} +2 -2
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/{package-BaTrCWZl.d.mts → package-CnR_tOsW.d.mts} +21 -3
- package/dist/package-tvzH3A0x.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- 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/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +5 -5
- package/dist/runtime-node/index.mjs +2 -2
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/{schemas-yXs929kr.d.mts → schemas-Ct0tTtkV.d.mts} +11 -11
- package/dist/{schemas-CQe4xCRn.d.mts → schemas-D6JvwH-h.d.mts} +2 -2
- package/dist/{schemas-Cz7H2f7S.d.mts → schemas-DChhgfU0.d.mts} +7 -7
- package/dist/{schemas-CSeLgroC.d.mts → schemas-DNUfTOJ0.d.mts} +1 -1
- package/dist/{schemas-bcDK-fK3.d.mts → schemas-mTWvDwx9.d.mts} +8 -8
- 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 +4 -4
- 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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +57 -57
- 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/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/materialization/index.d.mts +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 +8 -8
- 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-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/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/{session-lineage-CEyJWg_J.d.mts → session-lineage-9_qwkjUq.d.mts} +1 -1
- package/dist/{src-CmLn6zYj.mjs → src-BZdlyUxT.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/{transition-bYkXnLY2.d.mts → transition-DNi6L7i2.d.mts} +2 -2
- package/dist/{types-Bnc-pdB12.d.mts → types-BeAxyCuU2.d.mts} +1 -1
- package/dist/{types-BNKqcHfP.d.mts → types-DXobLxrf.d.mts} +18 -18
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-CA5qUx85.d.mts → view-builder-B5gP9RnN.d.mts} +1 -1
- package/dist/worker-Cmme3rMM.mjs +1 -0
- package/dist/{workflow-5yHn_Knq.mjs → workflow-DNks09Ip.mjs} +1 -1
- package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
- package/dist/workflow-engine/index.d.mts +89 -51
- 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/provider-operation.d.mts +1 -1
- package/dist/workflow-engine/testing/conformance.d.mts +1 -1
- package/dist/workflow-engine/testing/conformance.mjs +2 -2
- package/dist/workflow-engine/testing/index.d.mts +3 -1
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +50 -33
- package/package.json +1 -1
- package/dist/artifact-Cxm5ZX7L.mjs +0 -1
- package/dist/package-BT94BLu4.mjs +0 -7
- package/dist/worker-Cx1JDOB9.mjs +0 -1
- package/dist/{adapter-binding-DhANVB-O.d.mts → adapter-binding-CTssGlH_.d.mts} +0 -0
- package/dist/{attempt-fixtures-CMx-2OlG.mjs → attempt-fixtures-B8FSy_vs.mjs} +0 -0
- package/dist/{attempt-record-codec-D2Gb_epJ.mjs → attempt-record-codec-BrungudT.mjs} +0 -0
- package/dist/{base-orchestrator-tAgnJAKu.d.mts → base-orchestrator-C5Z9Aowq.d.mts} +0 -0
- package/dist/{capability-service-Cpkonrc0.d.mts → capability-service-DX3wLjdt.d.mts} +0 -0
- package/dist/{client-At2zn3yg.d.mts → client-BsXMxeCN.d.mts} +0 -0
- package/dist/{client-binary-version-verifier-EOj8xXqm.d.mts → client-binary-version-verifier-uMFQoKZj.d.mts} +0 -0
- package/dist/{clients-namespace-CVRwXq8f.d.mts → clients-namespace-1hXA6qNd.d.mts} +0 -0
- package/dist/{config-namespace-D7GbrasR.d.mts → config-namespace-Bpq9WOY4.d.mts} +0 -0
- package/dist/{create-static-mount-BIH26VH8.mjs → create-static-mount-Cr24q94C.mjs} +0 -0
- package/dist/{definition-VK1rERAp.d.mts → definition-Ckt_WmJw.d.mts} +0 -0
- package/dist/{extension-discovery-B0ZL076T.d.mts → extension-discovery-Dx118u_N.d.mts} +0 -0
- package/dist/{filesystem-service-BWoNtujU.d.mts → filesystem-service-DtApanQk.d.mts} +0 -0
- package/dist/{index-Bk0Xjk-B.d.mts → index-1AKlC3kZ.d.mts} +0 -0
- package/dist/{index-CDA33y5A.d.mts → index-5KVPGsig.d.mts} +0 -0
- package/dist/{index-8a41yDOl.d.mts → index-B4lidHiL.d.mts} +0 -0
- package/dist/{index-DzHc6hsJ.d.mts → index-Bw7benCh.d.mts} +0 -0
- package/dist/{index-DXSVC0bM.d.mts → index-C0zo4Id_.d.mts} +0 -0
- package/dist/{index-BL1F1xYB.d.mts → index-C3n8beRR.d.mts} +0 -0
- package/dist/{index-BBkJsViX2.d.mts → index-C4DMSFLE2.d.mts} +6 -6
- /package/dist/{index-C8oBOTl_.d.mts → index-C86rKLPD.d.mts} +0 -0
- /package/dist/{index-BIlFSGnW.d.mts → index-CIl66QhT.d.mts} +0 -0
- /package/dist/{index-D4XNkbM4.d.mts → index-CUcEfh31.d.mts} +0 -0
- /package/dist/{index-DwY1Mt9a.d.mts → index-CrDp6vHG.d.mts} +0 -0
- /package/dist/{index-DCfYa3cF.d.mts → index-CzKJC3Bt.d.mts} +0 -0
- /package/dist/{index-Ccaqmi0J.d.mts → index-DK8lSIvY.d.mts} +0 -0
- /package/dist/{index-Du-eXjEN.d.mts → index-DLsopffG.d.mts} +0 -0
- /package/dist/{index-BcPO9w0j.d.mts → index-DNN9jOVO.d.mts} +0 -0
- /package/dist/{index-krTCFThl2.d.mts → index-DSRxn5Zr2.d.mts} +0 -0
- /package/dist/{index-CSJOBx3H.d.mts → index-Dfv9hyZE.d.mts} +0 -0
- /package/dist/{index-BpsurXEW.d.mts → index-DqS8eCAT.d.mts} +0 -0
- /package/dist/{index-CjazerMN.d.mts → index-Dv5aNxoa.d.mts} +0 -0
- /package/dist/{index-CWeWBh-_.d.mts → index-DxxORQny.d.mts} +0 -0
- /package/dist/{index-BTHdi23O.d.mts → index-DyBuGOvY.d.mts} +0 -0
- /package/dist/{index-DwKPj8jD.d.mts → index-lLuIAmRB.d.mts} +0 -0
- /package/dist/{index-Bn1JTbn_2.d.mts → index-qLkIGcgv2.d.mts} +0 -0
- /package/dist/{index-DCHdW5g-.d.mts → index-tCFckLG6.d.mts} +0 -0
- /package/dist/{json-value-BKUDMT7k.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
- /package/dist/{jsonl-transport-3yp3clGp.mjs → jsonl-transport-D4ch0vsf.mjs} +0 -0
- /package/dist/{lib-DF6sgNx_.mjs → lib-BLdnqIFF.mjs} +0 -0
- /package/dist/{namespace-BHb_9sh4.d.mts → namespace-BHkEHrUG.d.mts} +0 -0
- /package/dist/{namespace-KTRWfIPy.d.mts → namespace-Bivbsfms.d.mts} +0 -0
- /package/dist/{namespace-BiEV44Mk.d.mts → namespace-C-4xI2rm.d.mts} +0 -0
- /package/dist/{namespace-BNNFD-ul.d.mts → namespace-CvCk6Y9i.d.mts} +0 -0
- /package/dist/{namespace-BgaVgd00.d.mts → namespace-DXrdGpbs.d.mts} +0 -0
- /package/dist/{namespace-B3MnuAqp.d.mts → namespace-Dwf7aOLt.d.mts} +0 -0
- /package/dist/{namespace-Czr38fiF.d.mts → namespace-E4ajXk0W.d.mts} +0 -0
- /package/dist/{namespace-CjmNxtr1.d.mts → namespace-XUB3XnBK.d.mts} +0 -0
- /package/dist/{orchestrator-shared-Cwc6JKkV.d.mts → orchestrator-shared-D2I9gyOl.d.mts} +0 -0
- /package/dist/{packages-DTz_1dCa.d.mts → packages-Dj9Nul23.d.mts} +0 -0
- /package/dist/{providers-namespace-Bming6U8.d.mts → providers-namespace-BA0JT--_.d.mts} +0 -0
- /package/dist/{runtime-inputs-DeOea-ab.d.mts → runtime-inputs-CIYLDuBM.d.mts} +0 -0
- /package/dist/{schema-DFCBjTB7.d.mts → schema-B098Jz9p.d.mts} +0 -0
- /package/dist/{schemas-DqWwz4eR.d.mts → schemas-ADuQFkhH.d.mts} +0 -0
- /package/dist/{schemas-BLy33xay.d.mts → schemas-BZyi7v9g.d.mts} +0 -0
- /package/dist/{schemas-DYIVJDlx.d.mts → schemas-COQUToGQ.d.mts} +0 -0
- /package/dist/{schemas-DwqibWUL.d.mts → schemas-DKy_XYjq.d.mts} +0 -0
- /package/dist/{schemas-DTBWnWjN.d.mts → schemas-DMxM4U1A.d.mts} +0 -0
- /package/dist/{schemas-GyKYcV-Z2.d.mts → schemas-DNvDh0eE2.d.mts} +0 -0
- /package/dist/{schemas-BkCqhK3X.d.mts → schemas-DYtUc2WA.d.mts} +0 -0
- /package/dist/{server-lifecycle-_m_x1_TC.d.mts → server-lifecycle-B8UabaW3.d.mts} +0 -0
- /package/dist/{src-DdaPoQOD.mjs → src-D9PYcdDS.mjs} +0 -0
- /package/dist/{storage-namespace-zRXWqAfO.d.mts → storage-namespace-DITavhRL.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CsaZPU3n.d.mts → storage-namespace-definition-1uCuoHvM.d.mts} +0 -0
- /package/dist/{types-CccTiXH2.d.mts → types-BlaguWul.d.mts} +0 -0
- /package/dist/{types-nor1SQLZ.d.mts → types-CbXf822E.d.mts} +0 -0
- /package/dist/{types-DjxvRcX6.d.mts → types-KF8zuMhi.d.mts} +0 -0
- /package/dist/{types-Dswhi1L9.d.mts → types-RWRXplnM.d.mts} +0 -0
- /package/dist/{types-DXGVwrQn.d.mts → types-nY8yr3th.d.mts} +0 -0
- /package/dist/{window-registry-DQ7udUzI.d.mts → window-registry-Dq5uOWpH.d.mts} +0 -0
package/dist/.makaio-build.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-09-
|
|
3
|
+
"fingerprint": "9588996cb75a2156eb6f211be634389a15c4840680dc5ce09d1666acb8a3814b",
|
|
4
|
+
"builtAt": "2026-09-10T09:58:38.085Z",
|
|
5
5
|
"declarations": true,
|
|
6
6
|
"declarationBackend": "tsc"
|
|
7
7
|
}
|
|
@@ -4993,16 +4993,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
4993
4993
|
adapterId: z.ZodString;
|
|
4994
4994
|
agentId: z.ZodString;
|
|
4995
4995
|
oldState: z.ZodEnum<{
|
|
4996
|
-
paused: "paused";
|
|
4997
4996
|
idle: "idle";
|
|
4997
|
+
paused: "paused";
|
|
4998
4998
|
turn_started: "turn_started";
|
|
4999
4999
|
step_started: "step_started";
|
|
5000
5000
|
step_finished: "step_finished";
|
|
5001
5001
|
turn_finished: "turn_finished";
|
|
5002
5002
|
}>;
|
|
5003
5003
|
newState: z.ZodEnum<{
|
|
5004
|
-
paused: "paused";
|
|
5005
5004
|
idle: "idle";
|
|
5005
|
+
paused: "paused";
|
|
5006
5006
|
turn_started: "turn_started";
|
|
5007
5007
|
step_started: "step_started";
|
|
5008
5008
|
step_finished: "step_finished";
|
|
@@ -5014,16 +5014,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
5014
5014
|
adapterId: z.ZodString;
|
|
5015
5015
|
agentId: z.ZodString;
|
|
5016
5016
|
oldState: z.ZodEnum<{
|
|
5017
|
-
paused: "paused";
|
|
5018
5017
|
idle: "idle";
|
|
5018
|
+
paused: "paused";
|
|
5019
5019
|
turn_started: "turn_started";
|
|
5020
5020
|
step_started: "step_started";
|
|
5021
5021
|
step_finished: "step_finished";
|
|
5022
5022
|
turn_finished: "turn_finished";
|
|
5023
5023
|
}>;
|
|
5024
5024
|
newState: z.ZodEnum<{
|
|
5025
|
-
paused: "paused";
|
|
5026
5025
|
idle: "idle";
|
|
5026
|
+
paused: "paused";
|
|
5027
5027
|
turn_started: "turn_started";
|
|
5028
5028
|
step_started: "step_started";
|
|
5029
5029
|
step_finished: "step_finished";
|
|
@@ -5035,16 +5035,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
5035
5035
|
adapterId: z.ZodString;
|
|
5036
5036
|
agentId: z.ZodString;
|
|
5037
5037
|
oldState: z.ZodEnum<{
|
|
5038
|
-
paused: "paused";
|
|
5039
5038
|
idle: "idle";
|
|
5039
|
+
paused: "paused";
|
|
5040
5040
|
turn_started: "turn_started";
|
|
5041
5041
|
step_started: "step_started";
|
|
5042
5042
|
step_finished: "step_finished";
|
|
5043
5043
|
turn_finished: "turn_finished";
|
|
5044
5044
|
}>;
|
|
5045
5045
|
newState: z.ZodEnum<{
|
|
5046
|
-
paused: "paused";
|
|
5047
5046
|
idle: "idle";
|
|
5047
|
+
paused: "paused";
|
|
5048
5048
|
turn_started: "turn_started";
|
|
5049
5049
|
step_started: "step_started";
|
|
5050
5050
|
step_finished: "step_finished";
|
|
@@ -5056,16 +5056,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
5056
5056
|
adapterId: z.ZodString;
|
|
5057
5057
|
agentId: z.ZodString;
|
|
5058
5058
|
oldState: z.ZodEnum<{
|
|
5059
|
-
paused: "paused";
|
|
5060
5059
|
idle: "idle";
|
|
5060
|
+
paused: "paused";
|
|
5061
5061
|
turn_started: "turn_started";
|
|
5062
5062
|
step_started: "step_started";
|
|
5063
5063
|
step_finished: "step_finished";
|
|
5064
5064
|
turn_finished: "turn_finished";
|
|
5065
5065
|
}>;
|
|
5066
5066
|
newState: z.ZodEnum<{
|
|
5067
|
-
paused: "paused";
|
|
5068
5067
|
idle: "idle";
|
|
5068
|
+
paused: "paused";
|
|
5069
5069
|
turn_started: "turn_started";
|
|
5070
5070
|
step_started: "step_started";
|
|
5071
5071
|
step_finished: "step_finished";
|
|
@@ -5077,16 +5077,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
5077
5077
|
adapterId: z.ZodString;
|
|
5078
5078
|
agentId: z.ZodString;
|
|
5079
5079
|
oldState: z.ZodEnum<{
|
|
5080
|
-
paused: "paused";
|
|
5081
5080
|
idle: "idle";
|
|
5081
|
+
paused: "paused";
|
|
5082
5082
|
turn_started: "turn_started";
|
|
5083
5083
|
step_started: "step_started";
|
|
5084
5084
|
step_finished: "step_finished";
|
|
5085
5085
|
turn_finished: "turn_finished";
|
|
5086
5086
|
}>;
|
|
5087
5087
|
newState: z.ZodEnum<{
|
|
5088
|
-
paused: "paused";
|
|
5089
5088
|
idle: "idle";
|
|
5089
|
+
paused: "paused";
|
|
5090
5090
|
turn_started: "turn_started";
|
|
5091
5091
|
step_started: "step_started";
|
|
5092
5092
|
step_finished: "step_finished";
|
|
@@ -5098,16 +5098,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
5098
5098
|
adapterId: z.ZodString;
|
|
5099
5099
|
agentId: z.ZodString;
|
|
5100
5100
|
oldState: z.ZodEnum<{
|
|
5101
|
-
paused: "paused";
|
|
5102
5101
|
idle: "idle";
|
|
5102
|
+
paused: "paused";
|
|
5103
5103
|
turn_started: "turn_started";
|
|
5104
5104
|
step_started: "step_started";
|
|
5105
5105
|
step_finished: "step_finished";
|
|
5106
5106
|
turn_finished: "turn_finished";
|
|
5107
5107
|
}>;
|
|
5108
5108
|
newState: z.ZodEnum<{
|
|
5109
|
-
paused: "paused";
|
|
5110
5109
|
idle: "idle";
|
|
5110
|
+
paused: "paused";
|
|
5111
5111
|
turn_started: "turn_started";
|
|
5112
5112
|
step_started: "step_started";
|
|
5113
5113
|
step_finished: "step_finished";
|
|
@@ -7620,16 +7620,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7620
7620
|
adapterId: z.ZodString;
|
|
7621
7621
|
agentId: z.ZodString;
|
|
7622
7622
|
oldState: z.ZodEnum<{
|
|
7623
|
-
paused: "paused";
|
|
7624
7623
|
idle: "idle";
|
|
7624
|
+
paused: "paused";
|
|
7625
7625
|
turn_started: "turn_started";
|
|
7626
7626
|
step_started: "step_started";
|
|
7627
7627
|
step_finished: "step_finished";
|
|
7628
7628
|
turn_finished: "turn_finished";
|
|
7629
7629
|
}>;
|
|
7630
7630
|
newState: z.ZodEnum<{
|
|
7631
|
-
paused: "paused";
|
|
7632
7631
|
idle: "idle";
|
|
7632
|
+
paused: "paused";
|
|
7633
7633
|
turn_started: "turn_started";
|
|
7634
7634
|
step_started: "step_started";
|
|
7635
7635
|
step_finished: "step_finished";
|
|
@@ -7641,16 +7641,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7641
7641
|
adapterId: z.ZodString;
|
|
7642
7642
|
agentId: z.ZodString;
|
|
7643
7643
|
oldState: z.ZodEnum<{
|
|
7644
|
-
paused: "paused";
|
|
7645
7644
|
idle: "idle";
|
|
7645
|
+
paused: "paused";
|
|
7646
7646
|
turn_started: "turn_started";
|
|
7647
7647
|
step_started: "step_started";
|
|
7648
7648
|
step_finished: "step_finished";
|
|
7649
7649
|
turn_finished: "turn_finished";
|
|
7650
7650
|
}>;
|
|
7651
7651
|
newState: z.ZodEnum<{
|
|
7652
|
-
paused: "paused";
|
|
7653
7652
|
idle: "idle";
|
|
7653
|
+
paused: "paused";
|
|
7654
7654
|
turn_started: "turn_started";
|
|
7655
7655
|
step_started: "step_started";
|
|
7656
7656
|
step_finished: "step_finished";
|
|
@@ -7662,16 +7662,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7662
7662
|
adapterId: z.ZodString;
|
|
7663
7663
|
agentId: z.ZodString;
|
|
7664
7664
|
oldState: z.ZodEnum<{
|
|
7665
|
-
paused: "paused";
|
|
7666
7665
|
idle: "idle";
|
|
7666
|
+
paused: "paused";
|
|
7667
7667
|
turn_started: "turn_started";
|
|
7668
7668
|
step_started: "step_started";
|
|
7669
7669
|
step_finished: "step_finished";
|
|
7670
7670
|
turn_finished: "turn_finished";
|
|
7671
7671
|
}>;
|
|
7672
7672
|
newState: z.ZodEnum<{
|
|
7673
|
-
paused: "paused";
|
|
7674
7673
|
idle: "idle";
|
|
7674
|
+
paused: "paused";
|
|
7675
7675
|
turn_started: "turn_started";
|
|
7676
7676
|
step_started: "step_started";
|
|
7677
7677
|
step_finished: "step_finished";
|
|
@@ -7683,16 +7683,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7683
7683
|
adapterId: z.ZodString;
|
|
7684
7684
|
agentId: z.ZodString;
|
|
7685
7685
|
oldState: z.ZodEnum<{
|
|
7686
|
-
paused: "paused";
|
|
7687
7686
|
idle: "idle";
|
|
7687
|
+
paused: "paused";
|
|
7688
7688
|
turn_started: "turn_started";
|
|
7689
7689
|
step_started: "step_started";
|
|
7690
7690
|
step_finished: "step_finished";
|
|
7691
7691
|
turn_finished: "turn_finished";
|
|
7692
7692
|
}>;
|
|
7693
7693
|
newState: z.ZodEnum<{
|
|
7694
|
-
paused: "paused";
|
|
7695
7694
|
idle: "idle";
|
|
7695
|
+
paused: "paused";
|
|
7696
7696
|
turn_started: "turn_started";
|
|
7697
7697
|
step_started: "step_started";
|
|
7698
7698
|
step_finished: "step_finished";
|
|
@@ -7704,16 +7704,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7704
7704
|
adapterId: z.ZodString;
|
|
7705
7705
|
agentId: z.ZodString;
|
|
7706
7706
|
oldState: z.ZodEnum<{
|
|
7707
|
-
paused: "paused";
|
|
7708
7707
|
idle: "idle";
|
|
7708
|
+
paused: "paused";
|
|
7709
7709
|
turn_started: "turn_started";
|
|
7710
7710
|
step_started: "step_started";
|
|
7711
7711
|
step_finished: "step_finished";
|
|
7712
7712
|
turn_finished: "turn_finished";
|
|
7713
7713
|
}>;
|
|
7714
7714
|
newState: z.ZodEnum<{
|
|
7715
|
-
paused: "paused";
|
|
7716
7715
|
idle: "idle";
|
|
7716
|
+
paused: "paused";
|
|
7717
7717
|
turn_started: "turn_started";
|
|
7718
7718
|
step_started: "step_started";
|
|
7719
7719
|
step_finished: "step_finished";
|
|
@@ -7725,16 +7725,16 @@ declare function createClaudeConnectorNamespace<N extends string>(namespaceName:
|
|
|
7725
7725
|
adapterId: z.ZodString;
|
|
7726
7726
|
agentId: z.ZodString;
|
|
7727
7727
|
oldState: z.ZodEnum<{
|
|
7728
|
-
paused: "paused";
|
|
7729
7728
|
idle: "idle";
|
|
7729
|
+
paused: "paused";
|
|
7730
7730
|
turn_started: "turn_started";
|
|
7731
7731
|
step_started: "step_started";
|
|
7732
7732
|
step_finished: "step_finished";
|
|
7733
7733
|
turn_finished: "turn_finished";
|
|
7734
7734
|
}>;
|
|
7735
7735
|
newState: z.ZodEnum<{
|
|
7736
|
-
paused: "paused";
|
|
7737
7736
|
idle: "idle";
|
|
7737
|
+
paused: "paused";
|
|
7738
7738
|
turn_started: "turn_started";
|
|
7739
7739
|
step_started: "step_started";
|
|
7740
7740
|
step_finished: "step_finished";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as bindProviderAuth, B as PreparedAdapterAuthRuntime, G as AdapterAuthError, H as SuppliedAdapterAuthRuntime, J as BoundProviderAuthContext, K as AdapterAuthErrorReason, L as AdapterAuthLeaseHandle, Q as ResolvedConnectorAuthDelivery, R as AdapterAuthRuntimePreparer, U as applySuppliedAdapterAuthRuntime, V as ResolvedAdapterRuntimeConfig, W as prepareAdapterAuthRuntime, X as ResolvedAdapterAuth, Y as ResolveAuthCredentialRefs, Z as ResolvedAuthCredentialValues, _ as BaseAgentConnectorConfig, et as getOptionalAuthCredentialFields, q as BindProviderAuthOptions, tt as resolveBoundProviderAuth, z as BoundAdapterRuntimeConfig } from "../../types-
|
|
1
|
+
import { $ as bindProviderAuth, B as PreparedAdapterAuthRuntime, G as AdapterAuthError, H as SuppliedAdapterAuthRuntime, J as BoundProviderAuthContext, K as AdapterAuthErrorReason, L as AdapterAuthLeaseHandle, Q as ResolvedConnectorAuthDelivery, R as AdapterAuthRuntimePreparer, U as applySuppliedAdapterAuthRuntime, V as ResolvedAdapterRuntimeConfig, W as prepareAdapterAuthRuntime, X as ResolvedAdapterAuth, Y as ResolveAuthCredentialRefs, Z as ResolvedAuthCredentialValues, _ as BaseAgentConnectorConfig, et as getOptionalAuthCredentialFields, q as BindProviderAuthOptions, tt as resolveBoundProviderAuth, z as BoundAdapterRuntimeConfig } from "../../types-RWRXplnM.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { TimeoutConfig, TrackedTimeoutConfig } from "@makaio/framework/utils";
|
|
4
4
|
import { AIModelSchema, AdapterProviderAuth, ProtocolId, ProviderContext, ResolvedProviderAuth } from "@makaio/framework/contracts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as SessionToolLedger, A as AgentTeardownArbiter, At as runBestEffortStage, Bt as MessageHandle, C as NormalizedCallUsage, Ct as ObservedExitOptions, D as AdapterProviderDefinition, Dt as reportBestEffortStages, E as StartAgentOptions, Et as exitWasObserved, F as TeardownSubject, Ft as unknownTeardown, Gt as MessageState, Ht as NormalizedMessageInput, I as CreateConnectorRuntimeOptions, It as CONNECTOR_EXIT_OBSERVATION_MS, Jt as AIModel, Kt as ProcessingState, Lt as SWAP_SETTLEMENT_WAIT_MS, M as ConnectorReplacementSettlement, Mt as TeardownReport, N as ConnectorSwapAdmission, Nt as aggregateTeardownReports, O as ConfigFactoryInput, Ot as reportObservedExit, P as ConnectorSwapHandover, Pt as rethrowTeardownFailure, Qt as LedgerSessionContext, R as AdapterAuthRuntimePreparer, Rt as AIAgentConnector, S as GetCapabilitiesResponsePayload, St as SupersededGeneration, T as SendMessageResponsePayload, Tt as describeTeardownFailure, Ut as normalizeMessageInput, Vt as markCompletedWithFinalResult, Wt as MessageResult, Xt as ReasoningLevelMap, Yt as AIReasoningLevel, Zt as ISessionToolLedger, _ as BaseAgentConnectorConfig, _t as BaseConnectorTurn, a as AgentCredentialChangeResponsePayload, at as WireSessionSubjects, b as ContextWindowInput, bt as ConnectorSessionConfig, c as AgentIdentity, ct as QueueableTurn, d as AgentMcpServersSetRequestPayload, dt as rejectQueuedHandles, en as ToolLedgerEntry, f as AgentMcpServersSetResponsePayload, ft as UserMessageQueue, g as AgentStartResult, gt as TurnSubjects, h as AgentSendMessageOptions, ht as ProceduralTurnState, i as AgentCredentialChangeRequestPayload, it as WireSessionConfig, j as ClosableConnectorRuntime, jt as stageFailure, k as IAdapterConfigFactory, kt as reportRepeatTeardown, l as AgentInterruptRequestPayload, lt as SESSION_CLOSED_QUEUE_ERROR, m as AgentModelChangeResponsePayload, mt as ProceduralTurnConfig, n as AgentConnectorConfigOverrides, nt as ProceduralAgentConnector, o as AgentCwdChangeRequestPayload, ot as MergeResult, p as AgentModelChangeRequestPayload, pt as ProceduralConnectorTurn, qt as SendMessageOptions, r as AgentContext, rt as ProceduralConnectorSession, s as AgentCwdChangeResponsePayload, st as ProcessQueueCallbacks, t as AIAgentConfig, u as AgentInterruptResponsePayload, ut as processQueueMessages, v as ConnectorSendMessageOptions, vt as PauseResult, w as SendMessageRequestPayload, wt as capTeardownEvidence, x as ExecutionContext, xt as GenerationRetirementLedger, y as ConnectorStartOptions, yt as BaseConnectorSession, zt as MessageDeliveryMode } from "../types-
|
|
2
|
-
import { S as toImportSegment, _ as LogImporter, a as CompactionMetadata, b as ProcessLogFileResult, c as ExternalToolIdentifiers, d as ImportMetadata, f as ImportSegment, g as LogImportTestConfig, h as LogImportSessionContext, l as ExternalToolMeta, m as ImportSegmentTurn, n as LogOrchestratorConfig, o as DiscoveryMetadata, p as ImportSegmentLineage, r as ParseFileResult, s as ExternalToolIdentifier, u as ImportCursorPosition, v as LogImporterConfig, x as StorageMessagePayload, y as NormalizedEvent } from "../base-orchestrator-
|
|
1
|
+
import { $t as SessionToolLedger, A as AgentTeardownArbiter, At as runBestEffortStage, Bt as MessageHandle, C as NormalizedCallUsage, Ct as ObservedExitOptions, D as AdapterProviderDefinition, Dt as reportBestEffortStages, E as StartAgentOptions, Et as exitWasObserved, F as TeardownSubject, Ft as unknownTeardown, Gt as MessageState, Ht as NormalizedMessageInput, I as CreateConnectorRuntimeOptions, It as CONNECTOR_EXIT_OBSERVATION_MS, Jt as AIModel, Kt as ProcessingState, Lt as SWAP_SETTLEMENT_WAIT_MS, M as ConnectorReplacementSettlement, Mt as TeardownReport, N as ConnectorSwapAdmission, Nt as aggregateTeardownReports, O as ConfigFactoryInput, Ot as reportObservedExit, P as ConnectorSwapHandover, Pt as rethrowTeardownFailure, Qt as LedgerSessionContext, R as AdapterAuthRuntimePreparer, Rt as AIAgentConnector, S as GetCapabilitiesResponsePayload, St as SupersededGeneration, T as SendMessageResponsePayload, Tt as describeTeardownFailure, Ut as normalizeMessageInput, Vt as markCompletedWithFinalResult, Wt as MessageResult, Xt as ReasoningLevelMap, Yt as AIReasoningLevel, Zt as ISessionToolLedger, _ as BaseAgentConnectorConfig, _t as BaseConnectorTurn, a as AgentCredentialChangeResponsePayload, at as WireSessionSubjects, b as ContextWindowInput, bt as ConnectorSessionConfig, c as AgentIdentity, ct as QueueableTurn, d as AgentMcpServersSetRequestPayload, dt as rejectQueuedHandles, en as ToolLedgerEntry, f as AgentMcpServersSetResponsePayload, ft as UserMessageQueue, g as AgentStartResult, gt as TurnSubjects, h as AgentSendMessageOptions, ht as ProceduralTurnState, i as AgentCredentialChangeRequestPayload, it as WireSessionConfig, j as ClosableConnectorRuntime, jt as stageFailure, k as IAdapterConfigFactory, kt as reportRepeatTeardown, l as AgentInterruptRequestPayload, lt as SESSION_CLOSED_QUEUE_ERROR, m as AgentModelChangeResponsePayload, mt as ProceduralTurnConfig, n as AgentConnectorConfigOverrides, nt as ProceduralAgentConnector, o as AgentCwdChangeRequestPayload, ot as MergeResult, p as AgentModelChangeRequestPayload, pt as ProceduralConnectorTurn, qt as SendMessageOptions, r as AgentContext, rt as ProceduralConnectorSession, s as AgentCwdChangeResponsePayload, st as ProcessQueueCallbacks, t as AIAgentConfig, u as AgentInterruptResponsePayload, ut as processQueueMessages, v as ConnectorSendMessageOptions, vt as PauseResult, w as SendMessageRequestPayload, wt as capTeardownEvidence, x as ExecutionContext, xt as GenerationRetirementLedger, y as ConnectorStartOptions, yt as BaseConnectorSession, zt as MessageDeliveryMode } from "../types-RWRXplnM.mjs";
|
|
2
|
+
import { S as toImportSegment, _ as LogImporter, a as CompactionMetadata, b as ProcessLogFileResult, c as ExternalToolIdentifiers, d as ImportMetadata, f as ImportSegment, g as LogImportTestConfig, h as LogImportSessionContext, l as ExternalToolMeta, m as ImportSegmentTurn, n as LogOrchestratorConfig, o as DiscoveryMetadata, p as ImportSegmentLineage, r as ParseFileResult, s as ExternalToolIdentifier, u as ImportCursorPosition, v as LogImporterConfig, x as StorageMessagePayload, y as NormalizedEvent } from "../base-orchestrator-C5Z9Aowq.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
5
5
|
import { CreateBusNamespaceOptions, ExtractSubjectPayload, FilterablePayloadIntersection, HandlerForSubjectDefinition, RegistrableBusNamespaceDefinition, RequestContext, SchemaRecord, ScopedSubjectDefinition, SubjectDefinition, SubjectRecordFromSchemaRecord } from "@makaio/framework/core";
|
package/dist/adapters/node.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as LogImporter, i as LogFileChangeEvent, n as LogOrchestratorConfig, t as BaseLogOrchestrator } from "../base-orchestrator-
|
|
1
|
+
import { _ as LogImporter, i as LogFileChangeEvent, n as LogOrchestratorConfig, t as BaseLogOrchestrator } from "../base-orchestrator-C5Z9Aowq.mjs";
|
|
2
2
|
|
|
3
3
|
//#region adapters/core/src/log-importer/jsonl-parser.d.ts
|
|
4
4
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-DTipWd-i.mjs";import{C as t,S as n,a as r,b as i,c as a,d as o,i as s,l as c,n as l,r as ee,t as u,y as d}from"./schemas-NKlV5jqJ.mjs";import{a as f,f as te,l as ne,m as re,s as p,t as m}from"./kind-registration-BanX_UAF.mjs";import{t as ie}from"./zod-json-schema-DGWHUOK0.mjs";import{t as ae}from"./ajv-Dz-0DD7m.mjs";import{t as oe}from"./2020-DvDj4r_K.mjs";import{t as se}from"./dist-DMIaE8sg.mjs";import{z as h}from"zod";import{createBusNamespace as ce}from"@makaio/framework/core";const g=h.strictObject({evidence:n}),_=h.strictObject({kind:h.literal(`text`),text:h.string()}),[le,ue,de]=n.options,v=h.union([le.pick({source:!0,location:!0}).extend({content:_}),ue.pick({source:!0,location:!0}).extend({content:_}),de.pick({source:!0,location:!0}).extend({content:_})]);function y(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function b(e){return e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`)}function x(e,t){if(t===`#`)return{node:e,pointer:``};if(!t.startsWith(`#/`))return;let n;try{n=decodeURIComponent(t.slice(1))}catch{return}let r=e;for(let e of n.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(Array.isArray(r)){if(!/^(0|[1-9]\d*)$/.test(t)||Number(t)>=r.length)return;r=r[Number(t)]}else{let e=y(r);if(!e||!Object.hasOwn(e,t))return;r=e[t]}}let i=typeof r==`boolean`?r:y(r);return i===void 0?void 0:{node:i,pointer:n}}function S(e,t){if(t===``)return!1;let n=e;for(let e of t.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(n=Array.isArray(n)?n[Number(t)]:y(n)?.[t],typeof y(n)?.$id==`string`)return!0}return!1}function fe(e,t,r){if(e[`x-makaio-value-type`]!==`evidence/v1`)return;let i=n.safeParse(t);if(!i.success)throw Error(`Invalid schema-declared evidence at ${r}`);return{evidence:i.data,dataPath:r}}function pe(e,t,n,r){if(typeof t.$ref!=`string`)return!1;if(r)return!0;let i=x(e,t.$ref);return i===void 0?!0:typeof i.node!=`boolean`&&C(e,i.node,n,S(e,i.pointer))}function C(e,t,n=new WeakSet,r=!1){let i=y(t);if(!i||n.has(i))return!1;n.add(i);let a=r||i!==e&&typeof i.$id==`string`;if(i[`x-makaio-value-type`]===`evidence/v1`||typeof i.$dynamicRef==`string`||pe(e,i,n,a)||[`additionalItems`,`additionalProperties`,`contains`,`else`,`if`,`items`,`then`,`unevaluatedItems`,`unevaluatedProperties`].some(t=>C(e,i[t],n,a))||[`allOf`,`anyOf`,`oneOf`,`prefixItems`].some(t=>Array.isArray(i[t])&&i[t].some(t=>C(e,t,n,a)))||Array.isArray(i.items)&&i.items.some(t=>C(e,t,n,a)))return!0;for(let t of[`dependentSchemas`,`dependencies`,`patternProperties`,`properties`]){let r=y(i[t]);if(r&&Object.values(r).some(t=>C(e,t,n,a)))return!0}return!1}var me=class{dataSchema;matchesSchema;occurrences=new Map;visited=new WeakMap;constructor(e,t){this.dataSchema=e,this.matchesSchema=t}extract(e){return this.visit(this.dataSchema,e,`/data`),[...this.occurrences.values()]}visit(e,t,n,r=``){let i=this.visited.get(e)??new Set;if(i.has(n))return;if(i.add(n),this.visited.set(e,i),typeof e.$dynamicRef==`string`)throw Error(`Evidence discovery does not support active $dynamicRef at ${n}`);if(typeof e.$ref==`string`){if(S(this.dataSchema,r))throw Error(`Evidence discovery does not support local $ref inside nested $id resource at ${n}`);let i=x(this.dataSchema,e.$ref);if(i===void 0)throw Error(`Cannot resolve local schema reference ${e.$ref} at ${n}`);if(typeof i.node!=`boolean`&&this.visit(i.node,t,n,i.pointer),this.dataSchema.$schema!==`https://json-schema.org/draft/2020-12/schema`)return}let a=fe(e,t,n);if(a){this.occurrences.set(n,a);return}this.visitCombiners(e,t,n,r),this.visitConditional(e,t,n,r),this.visitDependencies(e,t,n,r),this.assertSupportedApplicators(e,n,r),Array.isArray(t)?this.visitArray(e,t,n,r):typeof t==`object`&&t&&this.visitObject(e,t,n,r)}visitCombiners(e,t,n,r){for(let i of[`allOf`,`anyOf`,`oneOf`]){let a=e[i];if(Array.isArray(a))for(let[e,o]of a.entries()){let a=y(o),s=`${r}/${i}/${e}`;a&&(i===`allOf`||this.matchesSchema(this.dataSchema,s,t))&&this.visit(a,t,n,s)}}}visitConditional(e,t,n,r){let i=typeof e.if==`boolean`?e.if:y(e.if);if(i===void 0)return;let a=`${r}/if`,o=this.matchesSchema(this.dataSchema,a,t);o&&typeof i!=`boolean`&&this.visit(i,t,n,a);let s=o?`then`:`else`,c=y(e[s]);c&&this.visit(c,t,n,`${r}/${s}`)}visitDependencies(e,t,n,r){if(!(typeof t!=`object`||!t||Array.isArray(t)))for(let i of[`dependentSchemas`,`dependencies`]){let a=y(e[i]);if(a)for(let[e,o]of Object.entries(a)){let a=y(o);Object.hasOwn(t,e)&&a&&this.visit(a,t,n,`${r}/${i}/${b(e)}`)}}}assertSupportedApplicators(e,t,n){for(let r of[`unevaluatedProperties`,`unevaluatedItems`])if(C(this.dataSchema,e[r],void 0,S(this.dataSchema,n)))throw Error(`Evidence under unsupported ${r} applicator at ${t}`)}visitArray(e,t,n,r){let i=Array.isArray(e.prefixItems),a=i?e.prefixItems:Array.isArray(e.items)?e.items:[];a.forEach((e,a)=>{let o=y(e),s=i?`prefixItems`:`items`;o&&a<t.length&&this.visit(o,t[a],`${n}/${a}`,`${r}/${s}/${a}`)});let o=Array.isArray(e.items)?y(e.additionalItems):y(e.items);if(o){let i=Array.isArray(e.items)?`additionalItems`:`items`;t.slice(a.length).forEach((e,t)=>this.visit(o,e,`${n}/${a.length+t}`,`${r}/${i}`))}this.visitContains(e,t,n,r)}visitContains(e,t,n,r){let i=y(e.contains);if(!i)return;let a=`${r}/contains`;t.forEach((e,t)=>{this.matchesSchema(this.dataSchema,a,e)&&this.visit(i,e,`${n}/${t}`,a)})}visitObject(e,t,n,r){let i=y(e.properties),a=y(e.patternProperties);for(let[o,s]of Object.entries(t)){let t=b(o),c=i!==void 0&&Object.hasOwn(i,o),l=y(i?.[o]);l&&this.visit(l,s,`${n}/${t}`,`${r}/properties/${t}`);let ee=this.visitPatterns(a,o,s,`${n}/${t}`,r),u=y(e.additionalProperties);!c&&!ee&&u&&this.visit(u,s,`${n}/${t}`,`${r}/additionalProperties`)}}visitPatterns(e,t,n,r,i){let a=!1;for(let[o,s]of Object.entries(e??{})){if(!new RegExp(o,`u`).test(t))continue;a=!0;let e=y(s);e&&this.visit(e,n,r,`${i}/patternProperties/${b(o)}`)}return a}};function he(e,t,n){return new me(e,n.matchesSchema).extract(t)}function ge(e){let{dataSchema:t,hooks:n,...r}=e,i={$schema:`https://json-schema.org/draft/2020-12/schema`,...ie(t)};te(i);let a=f.parse({...r,dataSchema:i});if(a.kind!==e.kind)throw Error(`Artifact kind identifiers must not contain surrounding whitespace`);let o=h.fromJSONSchema(a.dataSchema),s=h.unknown().superRefine((e,t)=>{let n=o.safeParse(e);if(!n.success)for(let e of n.error.issues)t.addIssue({code:`custom`,path:e.path,message:e.message})}).pipe(t).superRefine((e,t)=>{try{re(e,a.titlePath)}catch(e){t.addIssue({code:`custom`,path:a.titlePath.split(`.`),message:e instanceof Error?e.message:`Artifact title must be a nonblank string`})}});return{...structuredClone(a),kind:e.kind,schemaVersion:e.schemaVersion,dataSchema:s,...n?{hooks:n}:{},toRegistration:()=>structuredClone(a)}}var _e=e(ae(),1),ve=e(oe(),1),ye=e(se(),1);function be(e){let t={allErrors:!0,strict:!1,strictSchema:!0},n=e.dataSchema.$schema===`https://json-schema.org/draft/2020-12/schema`?new ve.default(t):new _e.default(t);return(0,ye.default)(n),n.addKeyword({keyword:i,schemaType:`string`,valid:!0}),n.compile(e.dataSchema)}function xe(e){return{hooks:[...e.hooks]}}const Se=[`inline`,`summary`,`link`,`omit`],w=h.string().min(1),T=h.object({kinds:h.array(h.string().min(1)).optional(),hint:w.optional(),depth:h.number().int().min(1).max(20).optional(),nested:h.lazy(()=>E).optional()}),E=h.record(h.string().min(1),T);function D(e){return JSON.stringify([e.kind,e.id,e.revision])}const O=h.enum([`not-selected`,`not-found`,`depth-exceeded`,`unsupported-ref-class`,`cycle-detected`]),k=h.object({target:c,sourceRef:t,relationType:h.string().min(1),hint:w,status:h.enum([`resolved`,`unresolved`]),reason:O.optional()}).superRefine((e,t)=>{e.status===`unresolved`&&e.reason===void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason is required for unresolved artifact context refs`}),e.status===`resolved`&&e.reason!==void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason must be omitted for resolved artifact context refs`}),e.status===`resolved`&&e.target.refClass!==`artifact`&&t.addIssue({code:h.ZodIssueCode.custom,path:[`target`],message:`resolved artifact context refs must target an artifact revision`})}),A=h.object({rootRef:t,refs:h.array(k),resolved:h.array(o)}).superRefine((e,t)=>{let n=new Set(e.resolved.map(D));n.has(D(e.rootRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`resolved`],message:`resolved artifact context wire payloads must include the root artifact revision`}),e.refs.forEach((e,r)=>{n.has(D(e.sourceRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`sourceRef`],message:`artifact context ref sources must have a matching revision in resolved`}),!(e.status!==`resolved`||e.target.refClass!==`artifact`)&&(n.has(D(e.target))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`target`],message:`resolved artifact context refs must have a matching revision in resolved`}))})});function Ce(e){let t=A.parse(e),n=new Map(t.resolved.map(e=>[N(e),e])),r=new Map;for(let e of t.refs){let t=N(e.sourceRef),n=r.get(t);n||(n=[],r.set(t,n)),n.push(e)}let i=n.get(N(t.rootRef));if(!i)throw Error(`Resolved artifact context is missing root artifact '${N(t.rootRef)}'`);let a=we(t.rootRef,i,`inline`,r,n);return{root:a,flatten(){let e=[];return M(a,e),e}}}function we(e,t,n,r,i){return{status:`resolved`,ref:e,artifact:t,hint:n,children:j(e,r,i,new Set([N(e)]))}}function Te(e,t,n,r,i,a,o){let s=N(e),c=new Set(o);return c.add(s),{status:`resolved`,ref:e,artifact:t,relation:n,hint:r,children:j(e,i,a,c)}}function j(e,t,n,r){return(t.get(N(e))??[]).map(e=>{if(e.status===`unresolved`)return{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:e.reason};if(e.target.refClass!==`artifact`)throw Error(`Resolved artifact context refs must target an artifact revision`);let i=N(e.target),a=n.get(i);if(!a)throw Error(`Resolved artifact context is missing target artifact '${i}'`);return r.has(i)?{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:`cycle-detected`}:Te(e.target,a,e.relationType,e.hint,t,n,r)})}function M(e,t){if(e.status!==`unresolved`){t.push(e.artifact);for(let n of e.children)M(n,t)}}function N(e){return JSON.stringify([e.kind,e.id,e.revision])}const P=t.pick({kind:!0,id:!0}),F=h.number().int().positive(),I=F,L={knowledge:`valid`,commitment:`proposed`,interaction:`open`},R=h.discriminatedUnion(`category`,[h.strictObject({category:h.literal(`knowledge`),state:h.enum(m.knowledge),version:I}),h.strictObject({category:h.literal(`commitment`),state:h.enum(m.commitment),version:I}),h.strictObject({category:h.literal(`interaction`),state:h.enum(m.interaction),version:I})]).superRefine((e,t)=>{e.version===1&&e.state!==L[e.category]&&t.addIssue({code:`custom`,path:[`state`],message:`Lifecycle version 1 is reserved for the category initial state`})}),z=h.union([R,h.strictObject({category:h.literal(`record`)})]),B=h.string().trim().min(1),V=h.strictObject({kind:B,ref:B}),H=h.discriminatedUnion(`kind`,[h.strictObject({kind:h.literal(`revision-assessment`),assessedRevision:t.shape.revision,source:V.optional()}),h.strictObject({kind:h.literal(`handover`),source:V})]),U={artifact:P,expectedVersion:I,state:p,situation:H,reason:B.optional()},W=h.strictObject(U),G=h.strictObject({...U,actor:u}),Ee={valid:[`retired`],retired:[],proposed:[`decided`],decided:[`fulfilled`,`revoked`],fulfilled:[],revoked:[],open:[`resolved`,`closed-without-resolution`],resolved:[],"closed-without-resolution":[]};function K(e,t){return Ee[e].includes(t)}const De={artifact:P,lifecycle:R,actor:u,timestamp:h.number().int().nonnegative(),observedRevision:t.shape.revision},Oe=h.strictObject({...De,operation:h.literal(`initialized`)}).superRefine((e,t)=>{(e.lifecycle.version!==1||e.lifecycle.state!==L[e.lifecycle.category])&&t.addIssue({code:`custom`,path:[`lifecycle`],message:`Initialization requires the category initial state and version 1`})}),q=h.strictObject({...De,operation:h.literal(`transitioned`),previousState:p,situation:H,reason:W.shape.reason}).superRefine((e,t)=>{(!K(e.previousState,e.lifecycle.state)||e.lifecycle.version<=1)&&t.addIssue({code:`custom`,path:[`lifecycle`],message:`History requires a category-compatible transition after initialization`}),e.lifecycle.state===`retired`&&!e.reason&&t.addIssue({code:`custom`,path:[`reason`],message:`Retiring knowledge requires a reason`}),e.situation.kind===`revision-assessment`&&e.situation.assessedRevision!==e.observedRevision&&t.addIssue({code:`custom`,path:[`situation`],message:`An assessment cannot authorize a different observed content revision`})}),ke=h.discriminatedUnion(`operation`,[Oe,q]),J=h.discriminatedUnion(`reason`,[h.strictObject({reason:h.literal(`lifecycle-version-conflict`),expectedVersion:I,current:R,requestedState:p}),h.strictObject({reason:h.literal(`content-basis-conflict`),assessedRevision:t.shape.revision,currentRevision:t.shape.revision}),h.strictObject({reason:h.literal(`invalid-transition`),current:z,requestedState:p}),h.strictObject({reason:h.literal(`precondition-failed`),current:R,requestedState:p})]),Y=`artifact-lifecycle-rejected`;var X=class extends Error{code=Y;data;constructor(e,t){super(e),this.name=`ArtifactLifecycleError`,this.data=J.parse(t)}};function Ae(e){return e===`record`?{category:`record`}:R.parse({category:e,state:L[e],version:1})}function je(e){let n=z.parse(e.current),r=t.shape.revision.parse(e.currentRevision),i=G.parse(e.command);if(n.category===`record`)throw new X(`Record artifacts do not have a lifecycle`,{reason:`invalid-transition`,current:n,requestedState:i.state});if(i.expectedVersion!==n.version)throw new X(`Artifact lifecycle changed since the supplied baseline`,{reason:`lifecycle-version-conflict`,expectedVersion:i.expectedVersion,current:n,requestedState:i.state});if(i.situation.kind===`revision-assessment`&&i.situation.assessedRevision!==r)throw new X(`Assessed content revision is no longer current`,{reason:`content-basis-conflict`,assessedRevision:i.situation.assessedRevision,currentRevision:r});if(!K(n.state,i.state))throw new X(`Artifact lifecycle transition is not allowed`,{reason:`invalid-transition`,current:n,requestedState:i.state});if(i.state===`retired`&&!i.reason)throw new X(`Retiring knowledge requires a reason`,{reason:`precondition-failed`,current:n,requestedState:i.state});return R.parse({...n,state:i.state,version:n.version+1})}const Me=h.strictObject({artifact:P}),Z=h.strictObject({lifecycle:z}),Ne=h.strictObject({artifact:P,afterVersion:F.optional(),limit:h.number().int().min(1).max(100).default(50)}),Pe=h.strictObject({entries:h.array(ke).max(100),nextCursor:F.optional()}).superRefine(({entries:e,nextCursor:t},n)=>{let r=e[0],i;for(let[t,a]of e.entries()){let e=a.artifact.kind===r?.artifact.kind&&a.artifact.id===r?.artifact.id,o=i===void 0||a.lifecycle.version===i.lifecycle.version+1,s=i===void 0||a.operation===`transitioned`&&a.lifecycle.category===i.lifecycle.category&&a.previousState===i.lifecycle.state;if(!e||!o||!s){n.addIssue({code:`custom`,path:[`entries`,t],message:`History pages contain one artifact in contiguous ascending, state-linked order`});break}i=a}t!==void 0&&t!==i?.lifecycle.version&&n.addIssue({code:`custom`,path:[`nextCursor`],message:`nextCursor must equal the last returned lifecycle version`})}),Q=h.strictObject({entry:q}),Fe=Q,Ie=h.strictObject({code:h.literal(Y),message:h.string().min(1),data:J});function Le(e){return{code:e.code,message:e.message,data:e.data}}function Re(e,t){switch(t.reason){case`content-basis-conflict`:return Ve(e,t);case`lifecycle-version-conflict`:return[...ze(e,t),...Be(e,t)];case`invalid-transition`:case`precondition-failed`:return[...ze(e,t),...He(e,t)]}}function ze(e,t){return t.requestedState===e.state?[]:[{path:[`requestedState`],message:`Rejection requestedState must match the rejected transition`}]}function Be(e,t){let n=[];return t.expectedVersion!==e.expectedVersion&&n.push({path:[`expectedVersion`],message:`Version conflict baseline must match the rejected transition`}),t.current.version===e.expectedVersion&&n.push({path:[`current`,`version`],message:`Version conflict requires a current version different from the supplied baseline`}),n}function Ve(e,t){let n=[];return(e.situation.kind!==`revision-assessment`||t.assessedRevision!==e.situation.assessedRevision)&&n.push({path:[`assessedRevision`],message:`Content conflict must identify the rejected revision assessment`}),t.currentRevision===t.assessedRevision&&n.push({path:[`currentRevision`],message:`Content conflict requires a current revision different from the assessed revision`}),n}function He(e,t){if(t.current.category===`record`)return[];let n=[];t.current.version!==e.expectedVersion&&n.push({path:[`current`,`version`],message:`A rejection after the version check must report the supplied baseline version`});let r=K(t.current.state,t.requestedState);return t.reason===`invalid-transition`&&r&&n.push({path:[`reason`],message:`invalid-transition requires a transition the lifecycle matrix disallows`}),t.reason===`precondition-failed`&&!r&&n.push({path:[`reason`],message:`precondition-failed requires a transition the lifecycle matrix allows`}),n}const Ue=h.strictObject({transition:W,error:Ie}).superRefine(({transition:e,error:t},n)=>{for(let r of Re(e,t.data))n.addIssue({code:`custom`,path:[`error`,`data`,...r.path],message:r.message})}),We={"lifecycle.get":{request:Me,response:Z},"lifecycle.history":{request:Ne,response:Pe},"lifecycle.transition":{request:W,response:Q},"lifecycle.committed":Fe,"lifecycle.rejected":Ue},Ge={...We,"kind.register":{request:f,response:h.object({registered:h.boolean()})},"kind.list":{request:h.object({kind:h.string().min(1).optional()}),response:h.object({kinds:h.array(f)})},"relation-type.register":{request:d,response:h.object({registered:h.boolean()})},"relation-type.list":{request:h.object({type:h.string().min(1).optional()}),response:h.object({relationTypes:h.array(d)})},create:{request:o.omit({id:!0,revision:!0,timestamp:!0}).extend({id:t.shape.id.optional()}),response:h.object({artifact:o})},revise:{request:h.object({previous:t,statusPath:h.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`).optional(),revision:o.omit({id:!0,revision:!0,timestamp:!0})}),response:h.object({artifact:o})},resolve:{request:h.object({ref:t}),response:h.object({artifact:o.nullable()})},query:{request:r,response:h.object({artifacts:h.array(o)})},compare:{request:l,response:ee},"evidence.resolve":{request:g,response:v},resolveContext:{request:h.object({ref:t,selectors:E.optional(),maxDepth:h.number().int().min(1).max(20).default(5)}),response:h.object({context:A})},created:h.object({artifact:o}),revised:h.object({previous:t,artifact:o}),"relation.added":h.object({artifact:t,relation:a}),"observation.added":h.object({artifact:t,observation:s}),"status.changed":h.object({artifact:t,path:h.string().min(1),previous:h.unknown().optional(),current:h.unknown().optional()}),"kind.changed":h.object({kind:h.string().min(1),schemaVersion:ne})},$=ce(`artifact`,Ge),Ke=$.subjects;export{Ce as A,ge as B,G as C,je as D,F as E,T as F,g as H,w as I,E as L,O as M,A as N,Ae as O,Se as P,xe as R,R as S,q as T,v as U,he as V,ke as _,Ie as a,J as b,Ne as c,We as d,Q as f,X as g,z as h,Fe as i,k as j,K as k,Pe as l,Y as m,Ge as n,Me as o,Le as p,Ke as r,Z as s,$ as t,Ue as u,P as v,W as w,H as x,Oe as y,be as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{canonicalStringify as e}from"@makaio/framework/utils";import{ExecutionAttemptControlReceiptSchema as t,ExecutionAttemptControlReportSchema as n}from"@makaio/framework/contracts";function r(e){if(typeof e!=`string`||e.length===0)throw TypeError(`executionId must be a non-empty string`);return e}function i(e){let{executionId:n,...i}=e;return{executionId:r(n),...t.parse(i)}}function a(e){let{executionId:t,...i}=e;return{executionId:r(t),...n.parse(i)}}function o(e,t,n){return e===null||e.executionId!==n.executionId?{kind:`not-found`}:t?.controlRevision!==n.controlRevision||t.requestKey!==n.requestKey?{kind:`cancel-mismatch`}:e.runtimeGeneration!==n.runtimeGeneration||e.runtimeIncarnationId!==n.runtimeIncarnationId?{kind:`stale-generation`}:null}function s(t,n){let{executionId:r,...i}=n;return{kind:e(t)===e(i)?`duplicate`:`conflict`}}function c(e,t,n,r){return e===null||e.executionId!==r.executionId?{kind:`not-found`}:n===null?o(e,t,r)??{kind:`accepted`}:s(n,r)}function l(e,t){if(t.conclusion.boundary===`admission-closed`)return t.operationId===void 0&&e.operationStartGate===`closed`&&(e.activeOperationId===null||e.activeOperationKind===`runtime-probe`);if(t.operationId===void 0)return!1;let n=e.activeOperationId===t.operationId&&e.activeOperationGeneration===t.runtimeGeneration;return t.conclusion.boundary===`setup-process-group`?n&&e.activeOperationKind===`workspace-preparation`||e.preparationReceipts.some(e=>e.operationId===t.operationId&&e.runtimeGeneration===t.runtimeGeneration):n&&(e.activeOperationKind===`workload-invocation`||e.activeOperationKind===`workflow-run`)}function u(e,t,n,r){if(e===null||e.executionId!==r.executionId)return{kind:`not-found`};if(n!==null)return s(n,r);let i=o(e,t,r);return i===null?l(e,r)?{kind:`accepted`}:{kind:`operation-mismatch`}:i}export{a as i,u as n,i as r,c as t};
|