@makaio/framework 1.0.0-dev-1788721567504 → 1.0.0-dev-1788811230746
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/node.d.mts +1 -1
- package/dist/attempt-fixtures-CnrnF5_4.mjs +1 -0
- package/dist/attempt-record-codec-B32Whx75.mjs +1 -0
- package/dist/authority-state-bootstrap-7Cgb9TR2.mjs +1 -0
- package/dist/bootstrap-start-client-DrvofWwi.mjs +1 -0
- package/dist/bus/index.d.mts +46 -28
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-CobBUqjo.mjs +2 -0
- package/dist/bus-Uy9C3TBM.mjs +1 -0
- 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/{context-resolution-CoKFKIqz.d.mts → context-resolution-C2VBZhaR.d.mts} +2 -2
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- 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 +2 -2
- 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 +876 -158
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- 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/{contribution-CUHLVLsT.d.mts → contribution-Crm-mctl.d.mts} +2 -2
- package/dist/{definition-DyGImhyi.d.mts → definition-u_5rYQtc.d.mts} +1 -1
- package/dist/{detached-extension-handle-D0aI0pJA.mjs → detached-extension-handle-DAXKQT9c.mjs} +1 -1
- package/dist/execution-attempt-repository-Djg3qDRv.mjs +1 -0
- package/dist/{execution-attempt-repository-CRdrgou3.d.mts → execution-attempt-repository-OryBjQQI.d.mts} +231 -9
- package/dist/{execution-target-H0RWV7Py.mjs → execution-target-BcoF_oDB.mjs} +1 -1
- package/dist/{hook-responses-9Ywsqzzq.d.mts → hook-responses-DcapjzLb.d.mts} +1 -1
- package/dist/{index-BJdkVFX9.d.mts → index-9PUmCySn.d.mts} +334 -78
- package/dist/{index-DV38-klA2.d.mts → index-B6Kr3cxD2.d.mts} +243 -20
- package/dist/{index-BNzUyVwV.d.mts → index-BDDavX2S.d.mts} +2 -2
- package/dist/{index-DHnSLGP4.d.mts → index-BDzqNCXs.d.mts} +1 -1
- package/dist/{index-37_b--BH.d.mts → index-BTCodvXA.d.mts} +37 -32
- package/dist/{index-8NdPPzUh2.d.mts → index-BhOMZWZa2.d.mts} +12 -12
- package/dist/{index-B0VO0rAl.d.mts → index-Bo3LRb2u.d.mts} +1 -1
- package/dist/{index-Dg11JxKZ.d.mts → index-BwccWakG.d.mts} +1 -1
- package/dist/{index-CYjgoYeX.d.mts → index-BxTM9lY0.d.mts} +3 -3
- package/dist/{index-CyWGSxrs.d.mts → index-C-cnB1Te.d.mts} +294 -294
- package/dist/{index-CxwqnZpT.d.mts → index-CAYbui7g.d.mts} +66 -59
- package/dist/{index-CPRQ4dWX.d.mts → index-CBixkF0n.d.mts} +12 -0
- package/dist/{index--Ws52sWV2.d.mts → index-COOM1j_L2.d.mts} +4 -4
- package/dist/{index-D1wTWSLR.d.mts → index-CXH1Bk0W.d.mts} +333 -333
- package/dist/{index-BmevAPME2.d.mts → index-Cbv_3Xi12.d.mts} +1 -1
- package/dist/{index-DWBkiiXH.d.mts → index-CfJKwWJa.d.mts} +1 -1
- package/dist/{index-B0yMCJW8.d.mts → index-CgqEyk9R.d.mts} +1 -1
- package/dist/{index-CVcG4Q3X.d.mts → index-CnGHGFMC.d.mts} +13 -13
- package/dist/{index-AdcDBUnc.d.mts → index-D6RMsZko.d.mts} +95 -95
- package/dist/{index-B_8bA2JW.d.mts → index-DEpAI8CY.d.mts} +1 -1
- package/dist/{index-CIEycZrt.d.mts → index-DIhkK4Y0.d.mts} +1 -1
- package/dist/{index-I5a37JCm.d.mts → index-Df9L5wwp.d.mts} +7 -7
- package/dist/{index-DBD_oFEt2.d.mts → index-DrO6QLwf2.d.mts} +1 -1
- package/dist/{index-BKIxdzIw.d.mts → index-DsjUnKyr.d.mts} +12 -12
- package/dist/{index-Cny5RvjO.d.mts → index-J-kv32zv.d.mts} +2 -2
- package/dist/{index-CFI6FxC7.d.mts → index-QJW9g1mG.d.mts} +2 -2
- 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-Cm-uEoC1.mjs → lib-271rPR7A.mjs} +1 -1
- package/dist/{lib-BpGvHZye.mjs → lib-RFpLjUda.mjs} +1 -1
- package/dist/{load-extensions-BQoXaHhR.d.mts → load-extensions-CY8ELnCp.d.mts} +1 -1
- package/dist/{load-extensions-DG5LvPyM.mjs → load-extensions-D9inWcDy.mjs} +1 -1
- package/dist/{namespace-CPm9dhi2.d.mts → namespace-2qvc6E2Y.d.mts} +2 -2
- package/dist/{namespace-K23m4b0n.d.mts → namespace-BkOvOAU5.d.mts} +6 -6
- package/dist/{namespace-Bo94cenp.d.mts → namespace-Cs-cOyrn.d.mts} +136 -136
- package/dist/{namespace-CsnrP8AD.d.mts → namespace-CxXNlHpn.d.mts} +3 -3
- package/dist/{namespace-CstawJgN.d.mts → namespace-DykqxEyX.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/node/transports/index.d.mts +56 -16
- package/dist/node/transports/index.mjs +2 -2
- package/dist/package-DEYXB80d.mjs +7 -0
- package/dist/{package-DkZmsdCd.d.mts → package-eOEt1w6u.d.mts} +450 -17
- 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 +6 -6
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +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/runtime-node/workflow-worker/worker-entry.d.mts +22 -2
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/schemas-CeHU889f.mjs +1 -0
- package/dist/{schemas-DTJtS14K.d.mts → schemas-ClGDFa44.d.mts} +136 -136
- package/dist/{schemas-CenET9Cq.d.mts → schemas-D0_kfoDf.d.mts} +1 -1
- package/dist/{schemas-BCXvEWyF.d.mts → schemas-DqnA42bw.d.mts} +4 -4
- package/dist/{schemas-CJKHYluy.d.mts → schemas-DuJs6Iqj.d.mts} +15 -15
- package/dist/scoped-bus-DwVrmi_1.mjs +1 -0
- 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/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/index.d.mts +121 -119
- 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/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 +12 -12
- 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/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/{src-BmSQ3rlz.mjs → src-DEgV239R.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-DxsrTsn4.d.mts → transition-BB138WkK.d.mts} +2 -2
- package/dist/{types-Czdm5op1.d.mts → types-CR23FzmK.d.mts} +315 -315
- package/dist/{types-CtDGkyLx2.d.mts → types-p55qvq922.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-D-Wz_l_B.d.mts → view-builder-qIGQrZfs.d.mts} +1 -1
- package/dist/worker-DPTYFyNP.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +299 -215
- 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 +85 -0
- package/dist/workflow-engine/testing/conformance.mjs +1 -0
- package/dist/workflow-engine/testing/index.d.mts +12 -5
- 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 +71 -42
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-BW3CE0YG.mjs +2 -0
- package/package.json +13 -1
- package/dist/attempt-record-codec-BORASgzn.mjs +0 -1
- package/dist/authority-state-bootstrap-eitx6Ukn.mjs +0 -1
- package/dist/bus-D6NoBhIV.mjs +0 -2
- package/dist/bus-UgFdHybD.mjs +0 -1
- package/dist/package-UemD2NWn.mjs +0 -7
- package/dist/runtime-registration-client-BTtFpt_k.mjs +0 -1
- package/dist/schemas-TK29KWx-.mjs +0 -1
- package/dist/scoped-bus-DoPmCJeM.mjs +0 -1
- package/dist/worker-DlRdLf2d.mjs +0 -1
- package/dist/workflow-worker-DjUfKshi.mjs +0 -1
- /package/dist/{adapter-binding-CATvmGuz.d.mts → adapter-binding-D68U_Hmh.d.mts} +0 -0
- /package/dist/{base-orchestrator-B4YW6z_Q.d.mts → base-orchestrator-DA95InJU.d.mts} +0 -0
- /package/dist/{capability-service-BW1-teFU.d.mts → capability-service-s4ZYSEWc.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-lcv83Hq3.d.mts → client-binary-version-verifier-kd9LP9AQ.d.mts} +0 -0
- /package/dist/{client-BG0WX5Vz.d.mts → client-f5A-6La5.d.mts} +0 -0
- /package/dist/{clients-namespace-DLAjOTTb.d.mts → clients-namespace-q4PqU1cA.d.mts} +0 -0
- /package/dist/{config-namespace-CH7sJZ4f.d.mts → config-namespace-Cp71zTT0.d.mts} +0 -0
- /package/dist/{create-static-mount-DxuixuLZ.mjs → create-static-mount-CmQgA0jq.mjs} +0 -0
- /package/dist/{definition-BrgzUuFk.d.mts → definition-BHSzhrUf.d.mts} +0 -0
- /package/dist/{extension-context-QmFuHdq5.d.mts → extension-context-BmU5XKjI.d.mts} +0 -0
- /package/dist/{extension-discovery-Dhu3WplO.d.mts → extension-discovery-DnO7bINK.d.mts} +0 -0
- /package/dist/{filesystem-service-ZJ43SbBi.d.mts → filesystem-service-BBArEDPL.d.mts} +0 -0
- /package/dist/{index-BC-6qNeo.d.mts → index-B-zl-O-Y.d.mts} +0 -0
- /package/dist/{index-BfV8U4XX.d.mts → index-BB0HypzC.d.mts} +0 -0
- /package/dist/{index-8y4hT9WL.d.mts → index-Bf2MgOni.d.mts} +0 -0
- /package/dist/{index-B4svZC6L.d.mts → index-C9xVZ-gt.d.mts} +0 -0
- /package/dist/{index-kzIjbrS02.d.mts → index-CDLf3Fka2.d.mts} +0 -0
- /package/dist/{index-BuMsrli0.d.mts → index-CPWBGotQ.d.mts} +0 -0
- /package/dist/{index-pvX-BIpr2.d.mts → index-CcrXttC02.d.mts} +0 -0
- /package/dist/{index-B5dP8rj6.d.mts → index-CkpR5sIH.d.mts} +0 -0
- /package/dist/{index-CmbkCxj-.d.mts → index-Co1da7YK.d.mts} +0 -0
- /package/dist/{index-VzLAV0Yt.d.mts → index-CrcfeFOo.d.mts} +0 -0
- /package/dist/{index-BM56936c.d.mts → index-CsFN2nv7.d.mts} +0 -0
- /package/dist/{index-CVpaGijY.d.mts → index-D-JbTXIH.d.mts} +0 -0
- /package/dist/{index-l01zsChf.d.mts → index-D94yE5Dr.d.mts} +0 -0
- /package/dist/{index-D037TVsm.d.mts → index-DQD2-jcL.d.mts} +0 -0
- /package/dist/{index-D8D-yibS2.d.mts → index-DSLTgc7h2.d.mts} +0 -0
- /package/dist/{index-CL0Jo1b92.d.mts → index-DSN2t48K.d.mts} +0 -0
- /package/dist/{index-DQ8o3JGi.d.mts → index-DW4SE_sH.d.mts} +0 -0
- /package/dist/{index-DgspOUa72.d.mts → index-DYHxzwok2.d.mts} +0 -0
- /package/dist/{index-BMRB9yhF.d.mts → index-D_sMzTvv.d.mts} +0 -0
- /package/dist/{index-BFWvT0NG.d.mts → index-Df1c_2PF.d.mts} +0 -0
- /package/dist/{index-B2Y1Wvbh.d.mts → index-Dn_SGTgp.d.mts} +0 -0
- /package/dist/{index-C4V8Pmi4.d.mts → index-KAAnSRZt.d.mts} +0 -0
- /package/dist/{index-Ek4y8M9J2.d.mts → index-NhW2h2wH2.d.mts} +0 -0
- /package/dist/{index-CqdMbYmR.d.mts → index-mK-rgiit.d.mts} +0 -0
- /package/dist/{index-BTEJfzjE.d.mts → index-xaBSwHxJ.d.mts} +0 -0
- /package/dist/{json-value-DPqb-SJ8.d.mts → json-value-pX6xnLGw.d.mts} +0 -0
- /package/dist/{jsonl-transport-Cyyh5Wje.mjs → jsonl-transport-DQIlRX_y.mjs} +0 -0
- /package/dist/{lib-BqV8hYtk.mjs → lib-6eNAiNK7.mjs} +0 -0
- /package/dist/{namespace-DBO1OzYB.d.mts → namespace-9ychTEk_.d.mts} +0 -0
- /package/dist/{namespace-CVFaZv8x.d.mts → namespace-BGDq7HmW.d.mts} +0 -0
- /package/dist/{namespace-BUYDmd0r.d.mts → namespace-CPR2xem0.d.mts} +0 -0
- /package/dist/{namespace-CPG6u60N.d.mts → namespace-CQEYu8az.d.mts} +0 -0
- /package/dist/{namespace-DqZweTbX.d.mts → namespace-CVg_cpkh.d.mts} +0 -0
- /package/dist/{namespace-DOezqDti.d.mts → namespace-CirognbA.d.mts} +0 -0
- /package/dist/{namespace-BdAK0lD8.d.mts → namespace-DAINF1II.d.mts} +0 -0
- /package/dist/{namespace-B0ftHlK3.d.mts → namespace-DG0hjPcx.d.mts} +0 -0
- /package/dist/{namespace-BRuHzhPo.d.mts → namespace-DokogwAZ.d.mts} +0 -0
- /package/dist/{orchestrator-shared-CNHSImNY.d.mts → orchestrator-shared-BzqqcY2z.d.mts} +0 -0
- /package/dist/{packages-CxPMEg8D.d.mts → packages-Cx-BwSZr.d.mts} +0 -0
- /package/dist/{provider-operation-DbdyFwNm.d.mts → provider-operation-B2wQST6N.d.mts} +0 -0
- /package/dist/{providers-namespace-CfZKp-C0.d.mts → providers-namespace-DsKTnuO1.d.mts} +0 -0
- /package/dist/{schema-B3Pf7JP7.d.mts → schema-zSyY22Ck.d.mts} +0 -0
- /package/dist/{schemas-ChmQldVH.d.mts → schemas--LAbwXvw.d.mts} +0 -0
- /package/dist/{schemas-CF8QwRqt.d.mts → schemas-Bk50UoMA.d.mts} +0 -0
- /package/dist/{schemas-bfZNpl0B.d.mts → schemas-CHRuwe18.d.mts} +0 -0
- /package/dist/{schemas-BGvkTiCx.d.mts → schemas-CzGN0eqW.d.mts} +0 -0
- /package/dist/{schemas-Pe892GgN.d.mts → schemas-DmULJ7Jk.d.mts} +0 -0
- /package/dist/{schemas-B50oWBuj.d.mts → schemas-Dn1JDTPw.d.mts} +0 -0
- /package/dist/{schemas-B6Q-qdmn.d.mts → schemas-Dxvjq-Bi.d.mts} +0 -0
- /package/dist/{server-lifecycle-L8zja8t8.d.mts → server-lifecycle-WFZcCMwF.d.mts} +0 -0
- /package/dist/{session-lineage-bUkd3fqx.d.mts → session-lineage-C9kppcCa.d.mts} +0 -0
- /package/dist/{src-BacfeiI4.mjs → src-DIyWekjW.mjs} +0 -0
- /package/dist/{storage-namespace-YmE8XCCL.d.mts → storage-namespace-BWU-8rvj.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-BsnYAPot.d.mts → storage-namespace-definition-B-8JKvzm.d.mts} +0 -0
- /package/dist/{types-DdpSEmTO.d.mts → types-8rMNe3AS.d.mts} +0 -0
- /package/dist/{types-DnK6Wa_Y.d.mts → types-BFeWU3WM.d.mts} +0 -0
- /package/dist/{types-tyv0B605.d.mts → types-BnPJa-C_.d.mts} +0 -0
- /package/dist/{types-OKJCOjme.d.mts → types-DQTCNM2i.d.mts} +0 -0
- /package/dist/{types-BlB23n4f.d.mts → types-DxHeL0pF.d.mts} +0 -0
- /package/dist/{window-registry-Pcf35cac.d.mts → window-registry-DQP5P2_0.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ExtensionDiscovery, t as DiscoveredExtension } from "../extension-discovery-
|
|
1
|
+
import { r as ExtensionDiscovery, t as DiscoveredExtension } from "../extension-discovery-DnO7bINK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region runtimes/node/src/makaio-config.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{registerHmacIdentitySecret as s,resolveHmacIdentityPeer as c,resolveHmacIdentitySecret as l,rotateHmacIdentitySecret as u}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as d}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as f}from"@makaio/framework/workflow-engine";const p=[r.runtime.register,r.operation.admit,r.operation.deliver,a.control.outcome.submit,o.getRunContext,d.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,f.getExecution,f.setFrame,f.setSpan,f.listFrames,f.getGateInstance,f.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.query,n.create,n.revise,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function m(e){return[...p.map(t),`workflow.${e}.cancel`]}function h(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??m(n);return{secret:r,cleanup:s(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function g(t){let n=e(32).toString(`hex`);return h({...t,secret:n})}function _(t){let{executionAttemptId:n,executionId:r}=t,i=c(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:u(n,a)}}function v(e){return l(e.executionAttemptId)===null?g(e):_(e)}function y(e){return l(e)??void 0}export{m as buildExecutionAttemptAllowedSubjects,v as mintOrRotateWorkflowExecutionBusSecret,g as mintWorkflowExecutionBusSecret,h as registerWorkflowExecutionBusSecret,y as resolveWorkflowExecutionBusSecret,_ as rotateWorkflowExecutionBusSecret};
|
|
1
|
+
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{registerHmacIdentitySecret as s,resolveHmacIdentityPeer as c,resolveHmacIdentitySecret as l,rotateHmacIdentitySecret as u}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as d}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as f}from"@makaio/framework/workflow-engine";const p=[r.runtime.register,r.bootstrap.awaitStart,r.instruction.get,r.operation.admit,r.operation.report,r.operation.deliver,r.outcome.submit,a.runtime.inputs.get,a.control.outcome.submit,o.getRunContext,d.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,f.getExecution,f.setFrame,f.setSpan,f.listFrames,f.getGateInstance,f.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.query,n.create,n.revise,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function m(e){return[...p.map(t),`workflow.${e}.cancel`]}function h(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??m(n);return{secret:r,cleanup:s(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function g(t){let n=e(32).toString(`hex`);return h({...t,secret:n})}function _(t){let{executionAttemptId:n,executionId:r}=t,i=c(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:u(n,a)}}function v(e){return l(e.executionAttemptId)===null?g(e):_(e)}function y(e){return l(e)??void 0}export{m as buildExecutionAttemptAllowedSubjects,v as mintOrRotateWorkflowExecutionBusSecret,g as mintWorkflowExecutionBusSecret,h as registerWorkflowExecutionBusSecret,y as resolveWorkflowExecutionBusSecret,_ as rotateWorkflowExecutionBusSecret};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export {
|
|
1
|
+
import { $ as AuthorityRequestDeliveryError, A as HeadlessWorkerBootstrap, B as runHeadlessWorkflowWorker, Bt as computeFileDigest, C as loadWorkflowFromConfig, Ct as WorkflowRunResult, D as WorkloadInvocationPreparation, E as WorkloadControlBinding, F as HeadlessWorkerMaterializer, Ft as WorkspaceRootResolver, G as WorkflowRuntimeContributionLoader, Gt as WorkflowWorkerEntryResolverOptions, H as IsolatedWorkflowRuntime, Ht as parseSriIntegrity, I as HeadlessWorkerPostCommitObserver, It as assertContainedIn, J as InProcessWorkflowRunnerOptions, K as createIsolatedWorkflowRuntime, Kt as resolveWorkflowWorkerEntry, L as HeadlessWorkflowWorkerDeps, Lt as assertNoSymlinkEscape, M as HeadlessWorkerBusConnector, Mt as LocalDirectoryMaterializerOptions, N as HeadlessWorkerContributionLoader, Nt as MaterializationError, O as WorkloadInvocationResult, P as HeadlessWorkerExecutor, Pt as ParsedSriIntegrity, Q as AttemptOutcomeSubmitPayload, R as HeadlessWorkflowWorkerResult, Rt as computeContributionPackageDigest, S as loadWorkflowModules, St as ThinWorkflowPiscinaRunnerOptions, T as RunWorkloadInvocationOptions, U as IsolatedWorkflowRuntimeContext, Ut as verifyContribution, V as CreateIsolatedWorkflowRuntimeOptions, Vt as materializeLocalDirectory, W as WorkflowRuntimeAuthorityConnector, Wt as WorkflowWorkerEntryMode, X as PiscinaThinWorkflowProviderOptions, Y as PiscinaThinWorkflowProvider, Z as AttemptOutcomeDeliveryError, _ as admitWorkflowRunOperation, _t as withWorkerBootstrapDeadline, a as bootstrapWorkerRuntime, at as submitAttemptOutcomeWithAck, b as registerWorkerRuntime, bt as IWorkflowRunner, c as DeliverableOperationKind, ct as WorkerRunnerOptions, d as OperationDeliveryEndpointIdentity, dt as createNodeWorkflowRunner, et as DELIVERED_DECISIONS, f as OperationDeliveryHandler, ft as createNodeWorkflowRunnerPackageOptions, g as RuntimeRegistrationRefusedError, gt as BootstrapDeadlineExceededError, h as RegisterWorkerRuntimeOptions, ht as runWorkerBootstrapExchange, i as StartedWorkerRuntime, it as OutcomeSubmitRetryConfig, j as HeadlessWorkerBootstrapCredentials, k as runWorkloadInvocation, l as OperationAdmissionRefusedError, lt as CreateNodeWorkflowRunnerPackageOptionsParams, m as RegisterAndAdmitWorkflowRunOptions, mt as WorkerBootstrapExchangeOptions, n as BootstrapStartRefusedError, nt as OutcomeReconnect, o as AdmitWorkflowRunOperationOptions, ot as submitOutcomeWithAck, p as OperationDeliveryHandlers, pt as BootstrapExchangeResult, q as InProcessWorkflowRunner, r as BootstrapWorkerRuntimeOptions, rt as OutcomeSubmitPayload, s as AdmittedWorkflowRun, st as WorkerRunner, t as BootstrapRuntimeConnection, tt as OutcomeDeliveryError, u as OperationDeliveryEndpoint, ut as NodeWorkflowRunnerPackageOptions, v as installOperationDeliveryEndpoint, vt as createWorkerBusAuth, w as InstalledWorkloadAdapter, x as loadWorkflowModule, xt as RuntimeLoadedWorkflow, y as registerAndAdmitWorkflowRun, yt as ThinWorkflowPiscinaRunner, z as MaterializedWorkspace, zt as computeDirectoryDigest } from "../../index-9PUmCySn.mjs";
|
|
2
|
+
export { AdmitWorkflowRunOperationOptions, AdmittedWorkflowRun, AttemptOutcomeDeliveryError, AttemptOutcomeSubmitPayload, AuthorityRequestDeliveryError, BootstrapDeadlineExceededError, BootstrapExchangeResult, BootstrapRuntimeConnection, BootstrapStartRefusedError, BootstrapWorkerRuntimeOptions, CreateIsolatedWorkflowRuntimeOptions, CreateNodeWorkflowRunnerPackageOptionsParams, DELIVERED_DECISIONS, DeliverableOperationKind, HeadlessWorkerBootstrap, HeadlessWorkerBootstrapCredentials, HeadlessWorkerBusConnector, HeadlessWorkerContributionLoader, HeadlessWorkerExecutor, HeadlessWorkerMaterializer, HeadlessWorkerPostCommitObserver, HeadlessWorkflowWorkerDeps, HeadlessWorkflowWorkerResult, IWorkflowRunner, InProcessWorkflowRunner, InProcessWorkflowRunnerOptions, InstalledWorkloadAdapter, IsolatedWorkflowRuntime, IsolatedWorkflowRuntimeContext, LocalDirectoryMaterializerOptions, MaterializationError, MaterializedWorkspace, NodeWorkflowRunnerPackageOptions, OperationAdmissionRefusedError, OperationDeliveryEndpoint, OperationDeliveryEndpointIdentity, OperationDeliveryHandler, OperationDeliveryHandlers, OutcomeDeliveryError, OutcomeReconnect, OutcomeSubmitPayload, OutcomeSubmitRetryConfig, ParsedSriIntegrity, PiscinaThinWorkflowProvider, PiscinaThinWorkflowProviderOptions, RegisterAndAdmitWorkflowRunOptions, RegisterWorkerRuntimeOptions, RunWorkloadInvocationOptions, RuntimeLoadedWorkflow, RuntimeRegistrationRefusedError, StartedWorkerRuntime, ThinWorkflowPiscinaRunner, ThinWorkflowPiscinaRunnerOptions, WorkerBootstrapExchangeOptions, WorkerRunner, WorkerRunnerOptions, WorkflowRunResult, WorkflowRuntimeAuthorityConnector, WorkflowRuntimeContributionLoader, WorkflowWorkerEntryMode, WorkflowWorkerEntryResolverOptions, WorkloadControlBinding, WorkloadInvocationPreparation, WorkloadInvocationResult, WorkspaceRootResolver, admitWorkflowRunOperation, assertContainedIn, assertNoSymlinkEscape, bootstrapWorkerRuntime, computeContributionPackageDigest, computeDirectoryDigest, computeFileDigest, createIsolatedWorkflowRuntime, createNodeWorkflowRunner, createNodeWorkflowRunnerPackageOptions, createWorkerBusAuth, installOperationDeliveryEndpoint, loadWorkflowFromConfig, loadWorkflowModule, loadWorkflowModules, materializeLocalDirectory, parseSriIntegrity, registerAndAdmitWorkflowRun, registerWorkerRuntime, resolveWorkflowWorkerEntry, runHeadlessWorkflowWorker, runWorkerBootstrapExchange, runWorkloadInvocation, submitAttemptOutcomeWithAck, submitOutcomeWithAck, verifyContribution, withWorkerBootstrapDeadline };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{C as e,S as t,T as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,h as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b,v as x,w as S,x as C,y as w}from"../../workflow-worker-BW3CE0YG.mjs";import{_ as T,a as E,c as D,d as O,f as k,i as A,m as j,n as M,o as N,p as P,r as F,s as I,t as L,u as R,v as z}from"../../bootstrap-start-client-DrvofWwi.mjs";export{i as AttemptOutcomeDeliveryError,h as AuthorityRequestDeliveryError,T as BootstrapDeadlineExceededError,L as BootstrapStartRefusedError,v as DELIVERED_DECISIONS,g as InProcessWorkflowRunner,r as MaterializationError,F as OperationAdmissionRefusedError,o as OutcomeDeliveryError,d as PiscinaThinWorkflowProvider,A as RuntimeRegistrationRefusedError,l as ThinWorkflowPiscinaRunner,p as WorkerRunner,E as admitWorkflowRunOperation,x as assertContainedIn,w as assertNoSymlinkEscape,M as bootstrapWorkerRuntime,a as computeContributionPackageDigest,C as computeDirectoryDigest,t as computeFileDigest,_ as createIsolatedWorkflowRuntime,s as createNodeWorkflowRunner,c as createNodeWorkflowRunnerPackageOptions,j as createWorkerBusAuth,N as installOperationDeliveryEndpoint,R as loadWorkflowFromConfig,O as loadWorkflowModule,k as loadWorkflowModules,e as materializeLocalDirectory,S as parseSriIntegrity,I as registerAndAdmitWorkflowRun,D as registerWorkerRuntime,u as resolveWorkflowWorkerEntry,y as runHeadlessWorkflowWorker,P as runWorkerBootstrapExchange,m as runWorkloadInvocation,f as submitAttemptOutcomeWithAck,b as submitOutcomeWithAck,n as verifyContribution,z as withWorkerBootstrapDeadline};
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { WorkerContributionManifest, WorkflowRunResult } from "@makaio/framework/contracts";
|
|
2
|
+
import { MessagePort } from "node:worker_threads";
|
|
2
3
|
|
|
4
|
+
//#region runtimes/node/src/workflow-worker/piscina-bootstrap-handoff.d.ts
|
|
5
|
+
/** Per-dispatch channel used only to transfer ownership of the bootstrap deadline. */
|
|
6
|
+
interface PiscinaBootstrapBinding {
|
|
7
|
+
/** Original creation-time deadline, shared by host and worker scopes. */
|
|
8
|
+
readonly bootstrapDeadlineAt: string;
|
|
9
|
+
/** Dedicated endpoint transferred exactly once to this task. */
|
|
10
|
+
readonly bootstrapPort: MessagePort;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
3
13
|
//#region runtimes/node/src/workflow-worker/worker-entry.d.ts
|
|
4
14
|
/**
|
|
5
15
|
* Fields every worker-entry invocation carries, whatever gate it runs behind.
|
|
@@ -48,9 +58,13 @@ interface AttemptBoundWorkerParams extends WorkflowWorkerRunParamsBase {
|
|
|
48
58
|
readonly kind: 'attempt-bound';
|
|
49
59
|
/** Authority-created attempt this runtime registers itself as the endpoint of. */
|
|
50
60
|
readonly executionAttemptId: string;
|
|
61
|
+
/** Persisted absolute bootstrap deadline, unchanged across reconnects. */
|
|
62
|
+
readonly bootstrapDeadlineAt: string;
|
|
51
63
|
}
|
|
52
|
-
/** Parameters accepted by the
|
|
64
|
+
/** Parameters accepted by the direct runtime entrypoint. */
|
|
53
65
|
type WorkflowWorkerRunParams = UnboundWorkerParams | AttemptBoundWorkerParams;
|
|
66
|
+
/** Piscina-owned attempt tasks require a host budget handoff before runtime boot. */
|
|
67
|
+
type PiscinaWorkerRunParams = UnboundWorkerParams | (AttemptBoundWorkerParams & PiscinaBootstrapBinding);
|
|
54
68
|
/**
|
|
55
69
|
* Execute a complete workflow inside an isolated worker context.
|
|
56
70
|
*
|
|
@@ -78,5 +92,11 @@ type WorkflowWorkerRunParams = UnboundWorkerParams | AttemptBoundWorkerParams;
|
|
|
78
92
|
* @throws {@link OperationAdmissionRefusedError} When the Authority refuses the run.
|
|
79
93
|
*/
|
|
80
94
|
declare function runWorkflowInWorker(params: WorkflowWorkerRunParams): Promise<WorkflowRunResult>;
|
|
95
|
+
/**
|
|
96
|
+
* Receive host bootstrap ownership before entering the ordinary worker lifecycle.
|
|
97
|
+
* @param params - Piscina task, including a required handoff port for bound attempts.
|
|
98
|
+
* @returns The terminal workflow result.
|
|
99
|
+
*/
|
|
100
|
+
declare function runPiscinaWorkflow(params: PiscinaWorkerRunParams): Promise<WorkflowRunResult>;
|
|
81
101
|
//#endregion
|
|
82
|
-
export { AttemptBoundWorkerParams, UnboundWorkerParams, WorkflowWorkerRunParams, WorkflowWorkerRunParamsBase,
|
|
102
|
+
export { AttemptBoundWorkerParams, UnboundWorkerParams, WorkflowWorkerRunParams, WorkflowWorkerRunParamsBase, runPiscinaWorkflow as default, runWorkflowInWorker };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as e,l as t,m as n,n as r,s as i,u as a,y as o}from"../../bootstrap-start-client-DrvofWwi.mjs";import{pathToFileURL as s}from"node:url";import*as c from"node:path";import{randomUUID as l}from"node:crypto";import{createBusInstance as u,waitForSubscriptionPropagation as d}from"@makaio/framework/bus";import{FrameworkContractNamespaces as f,FrameworkStorageNamespaces as p,WorkflowWorkerConfigSchema as m,createWorkflowCancelSubject as h}from"@makaio/framework/contracts";import{WebSocketClientTransport as g}from"@makaio/framework/node/transports";import{parentPort as _}from"node:worker_threads";import{runWorkflowOrchestrator as v}from"@makaio/framework/workflow-engine/workflow-orchestrator";import{McpServerBridgeService as y}from"@makaio/framework/mcp-http-server";import{ToolRegistry as b}from"@makaio/framework/services/tools";function x(e){let t=u();if(t.registerNamespaces(f),t.registerNamespaces(p),!e.busUrl)return{bus:t,connect:async e=>e.throwIfAborted(),close:()=>t.disconnect()};let r=n(e.busAuth.kind===`hmac`?e.busAuth.secret:void 0,e.identityId),i=new g({url:e.busUrl,auth:r,autoReconnect:!1});return t.registerTransport(i),{bus:t,async connect(e){try{e.throwIfAborted();let n=()=>t.disconnect();e.addEventListener(`abort`,n,{once:!0});try{await t.connect()}finally{e.removeEventListener(`abort`,n)}e.throwIfAborted()}catch(e){throw t.disconnect(),e}},async close(){await t.disconnect()}}}async function S(e,t=new AbortController().signal){let n=x(e);try{return await n.connect(t),n}catch(e){throw await n.close(),e}}async function C(e,t){let n=new b({bus:e.bus}),r=new y(e.bus),i=async()=>{try{await r.destroy()}finally{n.dispose()}};try{await r.init();for(let e of t.toolsets)await w(n,e)}catch(e){throw await i(),e}return{close:i}}async function w(e,t){await e.register(t)}function T(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.name==`string`?typeof t.tools==`object`&&t.tools!==null||Array.isArray(t.adapters):!1}function E(e,t){if(T(e.default))return e.default;for(let t of Object.keys(e))if(t!==`default`&&T(e[t]))return e[t]}function D(e){return Object.freeze({bus:e?.bus,identity:Object.freeze({extensionName:`__worker__`}),dataDir:``,machineId:``,platform:process.platform,homedir:``,makaioHome:``,username:``,signal:e?.signal??new AbortController().signal,tryImport:async()=>null,getService:()=>{throw Error(`Worker-local contribution context does not expose host services.`)},hasExtension:()=>!1})}async function O(e,t){let n=await Promise.all(e.map(e=>k(e,t))),r=[];for(let e of n)r.push(...e.toolsets);return{toolsets:r}}async function k(e,t){if(!c.isAbsolute(e))throw Error(`Worker contribution entrypoint must be an absolute materialized path: ${e}`);let n=E(await import(s(e).href),e);if(!n)throw Error(`No recognizable extension export in "${e}". Expected a default export or named export with a "name" field and "tools" or "adapters" surface.`);let r=[];if(n.tools?.createToolsets){let e=n.tools.createToolsets(D(t));r.push(...e)}return{toolsets:r}}async function A(e){let n=m.parse(e.config),r=new AbortController,s=()=>r.abort(),c=e.signal??r.signal;c!==r.signal&&(c.aborted?r.abort():c.addEventListener(`abort`,s,{once:!0}));let u,d,f;try{if(e.contributionEntrypoints.length!==e.manifest.contributionRefs.length)throw Error(`Worker contribution materialization does not match the declared contribution identity set.`);if(e.kind===`attempt-bound`){let t=l(),a=await j(e,n,t,r);u=a.connection,f=a.endpoint,await i(u.bus,{executionAttemptId:e.executionAttemptId,runtimeIncarnationId:t,endpoint:f,signal:r.signal}),_?.postMessage(o(n.executionId,n.cancelSubject,e.executionAttemptId))}else u=await M(n,r);let s=await O(e.contributionEntrypoints,{bus:u.bus,signal:r.signal});s.toolsets.length>0&&(d=await C(u,s));let c=await a(n);return await v({config:await t(n,c,u.bus,r.signal),loaded:c,bus:u.bus,signal:r.signal})}finally{f?.cleanup(),c.removeEventListener(`abort`,s);try{d&&await d.close()}finally{u&&await u.close()}}}function j(e,t,n,i){return r({executionAttemptId:e.executionAttemptId,runtimeIncarnationId:n,bootstrapDeadlineAt:e.bootstrapDeadlineAt,signal:i.signal,createConnection:()=>N(x({busUrl:t.busUrl,busAuth:t.busAuth,identityId:e.executionAttemptId}),t.cancelSubject,i)})}async function M(e,t){let n=N({...await S({busUrl:e.busUrl,busAuth:e.busAuth},t.signal),connect:async e=>e.throwIfAborted()},e.cancelSubject,t);try{return await n.connect(t.signal),n}catch(e){throw await n.close(),e}}function N(e,t,n){let r;return{bus:e.bus,async connect(i){await e.connect(i),i.throwIfAborted(),r=e.bus.on(h(t),()=>n.abort()),await d(r),i.throwIfAborted()},async close(){r?.(),r=void 0,await e.close()}}}async function P(t){return t.kind===`attempt-bound`&&await e(t,t.signal),A(t)}export{P as default,A as runWorkflowInWorker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as e}from"zod";import{WorkerBootstrapDeadlineAtSchema as t}from"@makaio/framework/contracts";import{AdapterAuthConstantSchema as n,AuthEnvironmentVariableNameSchema as r,AuthMethodRefSchema as i}from"@makaio/framework/contracts/auth";const a=[`MAKAIO_GIT_TOKEN`,`MAKAIO_BUS_AUTH_SECRET`],o=n,s=e.object({machineId:e.string().trim().min(1),packageNames:e.array(e.string().trim().min(1)).min(1).refine(e=>new Set(e).size===e.length,{message:`Session runtime package names must be unique.`}).readonly()}).strict().readonly(),c=e.object({sessionId:e.string().trim().min(1),adapterName:e.string().trim().min(1),providerConfigId:e.string().trim().min(1),definitionId:e.string().trim().min(1),runtime:s,auth:e.object({mode:e.enum([`explicit`,`none`]),method:i}).strict().readonly()}).strict().superRefine((t,n)=>{t.auth.method.owner===`provider`&&t.auth.method.providerDefinitionId!==t.definitionId&&n.addIssue({code:e.ZodIssueCode.custom,message:`Provider-owned auth method must belong to the selected provider definition.`,path:[`auth`,`method`,`providerDefinitionId`]})}).readonly(),l=e.object({target:e.string().trim().min(1),values:e.record(e.string().trim().min(1),o).readonly()}).strict().readonly(),u=e.object({selector:c,scrubEnvVars:e.array(r).readonly(),processEnv:e.record(r,e.string()).readonly(),connectorDeliveries:e.array(l).readonly()}).strict().superRefine((t,n)=>{let r=new Set;for(let[i,a]of t.scrubEnvVars.entries())r.has(a)&&n.addIssue({code:e.ZodIssueCode.custom,message:`Duplicate scrub environment variable "${a}".`,path:[`scrubEnvVars`,i]}),r.add(a);for(let i of Object.keys(t.processEnv))r.has(i)||n.addIssue({code:e.ZodIssueCode.custom,message:`Every process-environment auth delivery must also belong to the scrub set.`,path:[`processEnv`,i]});let i=new Set;for(let[r,a]of t.connectorDeliveries.entries())i.has(a.target)&&n.addIssue({code:e.ZodIssueCode.custom,message:`Duplicate connector auth target "${a.target}".`,path:[`connectorDeliveries`,r,`target`]}),i.add(a.target)}).readonly(),d=e.object({busAuthSecret:e.string().optional(),gitToken:e.string().optional(),runtimeEnv:e.record(r,e.string()).optional(),sessionRuntime:s.optional(),adapterAuth:u.optional()}).strict(),f=e.enum([`simple`,`full`]),p=e.enum([`created`,`running`,`stopped`,`destroyed`]),m=e.object({sessionId:e.string(),adapter:e.string(),runtime:f.default(`simple`),image:e.string().optional()}).strict(),h=new Set([`git:`,`http:`,`https:`,`ssh:`]),g=/^git@[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?:[^\s?#]+$/;function _(e,t,n){let r=e.indexOf(`://`);if(e.length===0||e.trim()!==e||r<=0||e.includes(`?`)||e.includes(`#`))return!1;try{let i=new URL(e);if(!t.has(i.protocol)||i.hostname.length===0||i.password.length>0||i.search.length>0||i.hash.length>0)return!1;let a=(e.slice(r+3).split(`/`,1)[0]??``).includes(`@`);return n?!a||i.username.length>0:!a&&i.username.length===0}catch{return!1}}function v(e){if(g.test(e))return!0;try{let t=new URL(e).protocol;return _(e,h,t===`ssh:`)}catch{return!1}}const y=e.string().refine(v,{message:`Repository remote must use a supported credential-free Git URL.`}),b=m.extend({mode:e.literal(`container-local`),repoPath:e.string(),baseBranch:e.string()}).strict(),x=b,S=b.extend({executionId:e.string(),executionAttemptId:e.string(),bootstrapDeadlineAt:t}).strict(),C=e.union([x,S]),w=m.extend({mode:e.literal(`container-isolated`),repoUrl:y,branch:e.string().optional()}).strict(),T=e.union([C,w]),E=e.object({descriptor:T,bootstrapConfig:d}).strict().superRefine((t,n)=>{let r=t.bootstrapConfig.adapterAuth?.selector;if(r===void 0)return;r.sessionId!==t.descriptor.sessionId&&n.addIssue({code:e.ZodIssueCode.custom,message:`Container auth selector session must match the Docker descriptor.`,path:[`bootstrapConfig`,`adapterAuth`,`selector`,`sessionId`]}),r.adapterName!==t.descriptor.adapter&&n.addIssue({code:e.ZodIssueCode.custom,message:`Container auth selector adapter must match the Docker descriptor.`,path:[`bootstrapConfig`,`adapterAuth`,`selector`,`adapterName`]});let i=t.bootstrapConfig.sessionRuntime;if(i===void 0){n.addIssue({code:e.ZodIssueCode.custom,message:`Container auth selector requires a session runtime binding.`,path:[`bootstrapConfig`,`sessionRuntime`]});return}r.runtime.machineId!==i.machineId&&n.addIssue({code:e.ZodIssueCode.custom,message:`Container auth selector machine must match the session runtime.`,path:[`bootstrapConfig`,`adapterAuth`,`selector`,`runtime`,`machineId`]}),(r.runtime.packageNames.length!==i.packageNames.length||r.runtime.packageNames.some((e,t)=>e!==i.packageNames[t]))&&n.addIssue({code:e.ZodIssueCode.custom,message:`Container auth selector packages must exactly match the session runtime selection.`,path:[`bootstrapConfig`,`adapterAuth`,`selector`,`runtime`,`packageNames`]})}).readonly(),D=e.object({containerId:e.string(),worktreePath:e.string().optional(),worktreeBranch:e.string().optional()}),O=e.object({containerId:e.string(),deleteBranch:e.boolean().default(!1)}),k=e.object({success:e.boolean()}),A=e.object({containerId:e.string()}),j=e.object({state:p,sessionId:e.string(),worktreePath:e.string().optional()}),M=e.object({containerId:e.string(),sessionId:e.string(),worktreePath:e.string().optional()}),N=e.object({containerId:e.string(),sessionId:e.string(),worktreePath:e.string().optional()}),P=e.object({containerId:e.string(),sessionId:e.string(),exitCode:e.number()}),F=e.object({containerId:e.string(),sessionId:e.string()}),I=e.object({id:e.string(),name:e.string(),description:e.string().optional(),scope:e.string(),enabled:e.boolean(),createdAt:e.number(),updatedAt:e.number()}),L=I.extend({type:e.literal(`local`)}),R=I.extend({type:e.literal(`container-local`),image:e.string().optional(),env:e.record(e.string(),e.string()).optional(),busUrl:e.string().optional()}),z=I.extend({type:e.literal(`container-isolated`),image:e.string().optional(),env:e.record(e.string(),e.string()).optional(),gitCredentialMode:e.enum([`token`,`ssh-agent`]).default(`token`),repoUrl:y.optional()}),B=e.discriminatedUnion(`type`,[L,R,z]),V=e.enum([`local`,`container-local`,`container-isolated`]),H=e.discriminatedUnion(`type`,[L.omit({createdAt:!0,updatedAt:!0}),R.omit({createdAt:!0,updatedAt:!0}),z.omit({createdAt:!0,updatedAt:!0})]),U=e.object({scope:e.string().optional(),type:V.optional()}),W=e.object({executionTargetId:e.string().optional()}),G={get:{request:e.object({id:e.string()}),response:e.object({executionTarget:B.nullable()})},set:{request:e.object({executionTarget:H}),response:e.object({id:e.string()})},delete:{request:e.object({id:e.string()}),response:e.object({deleted:e.boolean()})},list:{request:U,response:e.object({executionTargets:e.array(B)})},resolve:{request:W,response:e.object({executionTarget:B})},created:B,updated:B,deleted:e.object({id:e.string()})};export{A,s as C,y as D,P as E,O as M,k as N,T as O,f as S,p as T,M as _,W as a,C as b,V as c,u as d,c as f,o as g,l as h,U as i,j,D as k,L as l,E as m,R as n,B as o,d as p,H as r,G as s,z as t,a as u,F as v,N as w,S as x,w as y};
|
|
@@ -37,25 +37,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
37
37
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
38
|
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
sessionId: z.ZodString;
|
|
40
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
41
|
-
fullName: z.ZodString;
|
|
42
|
-
originalName: z.ZodString;
|
|
43
|
-
serverName: z.ZodString;
|
|
44
|
-
description: z.ZodOptional<z.ZodString>;
|
|
45
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
-
exposureMode: z.ZodEnum<{
|
|
47
|
-
direct: "direct";
|
|
48
|
-
discovery: "discovery";
|
|
49
|
-
hidden: "hidden";
|
|
50
|
-
}>;
|
|
51
|
-
enabled: z.ZodBoolean;
|
|
52
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
discovery: "discovery";
|
|
54
|
-
toolset: "toolset";
|
|
55
|
-
}>>;
|
|
56
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
exposed: z.ZodBoolean;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
40
|
servers: z.ZodArray<z.ZodObject<{
|
|
60
41
|
name: z.ZodString;
|
|
61
42
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -96,6 +77,25 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
96
77
|
discovery: "discovery";
|
|
97
78
|
}>;
|
|
98
79
|
}, z.core.$strip>>;
|
|
80
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
81
|
+
fullName: z.ZodString;
|
|
82
|
+
originalName: z.ZodString;
|
|
83
|
+
serverName: z.ZodString;
|
|
84
|
+
description: z.ZodOptional<z.ZodString>;
|
|
85
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
exposureMode: z.ZodEnum<{
|
|
87
|
+
direct: "direct";
|
|
88
|
+
discovery: "discovery";
|
|
89
|
+
hidden: "hidden";
|
|
90
|
+
}>;
|
|
91
|
+
enabled: z.ZodBoolean;
|
|
92
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
discovery: "discovery";
|
|
94
|
+
toolset: "toolset";
|
|
95
|
+
}>>;
|
|
96
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
exposed: z.ZodBoolean;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
99
|
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
100
100
|
fullName: z.ZodString;
|
|
101
101
|
originalName: z.ZodString;
|
|
@@ -134,18 +134,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
134
134
|
env?: Record<string, string> | undefined;
|
|
135
135
|
mcpSessionContext?: {
|
|
136
136
|
sessionId: string;
|
|
137
|
-
directTools: {
|
|
138
|
-
fullName: string;
|
|
139
|
-
originalName: string;
|
|
140
|
-
serverName: string;
|
|
141
|
-
inputSchema: Record<string, unknown>;
|
|
142
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
143
|
-
enabled: boolean;
|
|
144
|
-
exposed: boolean;
|
|
145
|
-
description?: string | undefined;
|
|
146
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
147
|
-
enabledAt?: number | undefined;
|
|
148
|
-
}[];
|
|
149
137
|
servers: {
|
|
150
138
|
name: string;
|
|
151
139
|
transport: {
|
|
@@ -175,6 +163,18 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
175
163
|
};
|
|
176
164
|
exposureMode: "direct" | "discovery";
|
|
177
165
|
}[];
|
|
166
|
+
directTools: {
|
|
167
|
+
fullName: string;
|
|
168
|
+
originalName: string;
|
|
169
|
+
serverName: string;
|
|
170
|
+
inputSchema: Record<string, unknown>;
|
|
171
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
exposed: boolean;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
176
|
+
enabledAt?: number | undefined;
|
|
177
|
+
}[];
|
|
178
178
|
discoverableTools: {
|
|
179
179
|
fullName: string;
|
|
180
180
|
originalName: string;
|
|
@@ -209,18 +209,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
209
209
|
env?: Record<string, string> | undefined;
|
|
210
210
|
mcpSessionContext?: {
|
|
211
211
|
sessionId: string;
|
|
212
|
-
directTools: {
|
|
213
|
-
fullName: string;
|
|
214
|
-
originalName: string;
|
|
215
|
-
serverName: string;
|
|
216
|
-
inputSchema: Record<string, unknown>;
|
|
217
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
218
|
-
enabled: boolean;
|
|
219
|
-
exposed: boolean;
|
|
220
|
-
description?: string | undefined;
|
|
221
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
222
|
-
enabledAt?: number | undefined;
|
|
223
|
-
}[];
|
|
224
212
|
servers: {
|
|
225
213
|
name: string;
|
|
226
214
|
transport: {
|
|
@@ -250,6 +238,18 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
250
238
|
};
|
|
251
239
|
exposureMode: "direct" | "discovery";
|
|
252
240
|
}[];
|
|
241
|
+
directTools: {
|
|
242
|
+
fullName: string;
|
|
243
|
+
originalName: string;
|
|
244
|
+
serverName: string;
|
|
245
|
+
inputSchema: Record<string, unknown>;
|
|
246
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
247
|
+
enabled: boolean;
|
|
248
|
+
exposed: boolean;
|
|
249
|
+
description?: string | undefined;
|
|
250
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
251
|
+
enabledAt?: number | undefined;
|
|
252
|
+
}[];
|
|
253
253
|
discoverableTools: {
|
|
254
254
|
fullName: string;
|
|
255
255
|
originalName: string;
|
|
@@ -281,18 +281,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
281
281
|
env?: Record<string, string> | undefined;
|
|
282
282
|
mcpSessionContext?: {
|
|
283
283
|
sessionId: string;
|
|
284
|
-
directTools: {
|
|
285
|
-
fullName: string;
|
|
286
|
-
originalName: string;
|
|
287
|
-
serverName: string;
|
|
288
|
-
inputSchema: Record<string, unknown>;
|
|
289
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
290
|
-
enabled: boolean;
|
|
291
|
-
exposed: boolean;
|
|
292
|
-
description?: string | undefined;
|
|
293
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
294
|
-
enabledAt?: number | undefined;
|
|
295
|
-
}[];
|
|
296
284
|
servers: {
|
|
297
285
|
name: string;
|
|
298
286
|
transport: {
|
|
@@ -322,6 +310,18 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
322
310
|
};
|
|
323
311
|
exposureMode: "direct" | "discovery";
|
|
324
312
|
}[];
|
|
313
|
+
directTools: {
|
|
314
|
+
fullName: string;
|
|
315
|
+
originalName: string;
|
|
316
|
+
serverName: string;
|
|
317
|
+
inputSchema: Record<string, unknown>;
|
|
318
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
exposed: boolean;
|
|
321
|
+
description?: string | undefined;
|
|
322
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
323
|
+
enabledAt?: number | undefined;
|
|
324
|
+
}[];
|
|
325
325
|
discoverableTools: {
|
|
326
326
|
fullName: string;
|
|
327
327
|
originalName: string;
|
|
@@ -356,18 +356,6 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
356
356
|
env?: Record<string, string> | undefined;
|
|
357
357
|
mcpSessionContext?: {
|
|
358
358
|
sessionId: string;
|
|
359
|
-
directTools: {
|
|
360
|
-
fullName: string;
|
|
361
|
-
originalName: string;
|
|
362
|
-
serverName: string;
|
|
363
|
-
inputSchema: Record<string, unknown>;
|
|
364
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
365
|
-
enabled: boolean;
|
|
366
|
-
exposed: boolean;
|
|
367
|
-
description?: string | undefined;
|
|
368
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
369
|
-
enabledAt?: number | undefined;
|
|
370
|
-
}[];
|
|
371
359
|
servers: {
|
|
372
360
|
name: string;
|
|
373
361
|
transport: {
|
|
@@ -397,6 +385,18 @@ declare const AgentRuntimeSelectionSchema: z.ZodObject<{
|
|
|
397
385
|
};
|
|
398
386
|
exposureMode: "direct" | "discovery";
|
|
399
387
|
}[];
|
|
388
|
+
directTools: {
|
|
389
|
+
fullName: string;
|
|
390
|
+
originalName: string;
|
|
391
|
+
serverName: string;
|
|
392
|
+
inputSchema: Record<string, unknown>;
|
|
393
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
394
|
+
enabled: boolean;
|
|
395
|
+
exposed: boolean;
|
|
396
|
+
description?: string | undefined;
|
|
397
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
398
|
+
enabledAt?: number | undefined;
|
|
399
|
+
}[];
|
|
400
400
|
discoverableTools: {
|
|
401
401
|
fullName: string;
|
|
402
402
|
originalName: string;
|
|
@@ -427,9 +427,9 @@ declare const AgentInstanceStatusSchema: z.ZodObject<{
|
|
|
427
427
|
status: z.ZodEnum<{
|
|
428
428
|
completed: "completed";
|
|
429
429
|
cancelled: "cancelled";
|
|
430
|
+
failed: "failed";
|
|
430
431
|
running: "running";
|
|
431
432
|
waiting_input: "waiting_input";
|
|
432
|
-
failed: "failed";
|
|
433
433
|
}>;
|
|
434
434
|
result: z.ZodOptional<z.ZodString>;
|
|
435
435
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -490,25 +490,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
490
490
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
491
491
|
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
492
492
|
sessionId: z.ZodString;
|
|
493
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
494
|
-
fullName: z.ZodString;
|
|
495
|
-
originalName: z.ZodString;
|
|
496
|
-
serverName: z.ZodString;
|
|
497
|
-
description: z.ZodOptional<z.ZodString>;
|
|
498
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
499
|
-
exposureMode: z.ZodEnum<{
|
|
500
|
-
direct: "direct";
|
|
501
|
-
discovery: "discovery";
|
|
502
|
-
hidden: "hidden";
|
|
503
|
-
}>;
|
|
504
|
-
enabled: z.ZodBoolean;
|
|
505
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
506
|
-
discovery: "discovery";
|
|
507
|
-
toolset: "toolset";
|
|
508
|
-
}>>;
|
|
509
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
510
|
-
exposed: z.ZodBoolean;
|
|
511
|
-
}, z.core.$strip>>;
|
|
512
493
|
servers: z.ZodArray<z.ZodObject<{
|
|
513
494
|
name: z.ZodString;
|
|
514
495
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -549,6 +530,25 @@ declare const AgentRuntimeSchemas: {
|
|
|
549
530
|
discovery: "discovery";
|
|
550
531
|
}>;
|
|
551
532
|
}, z.core.$strip>>;
|
|
533
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
534
|
+
fullName: z.ZodString;
|
|
535
|
+
originalName: z.ZodString;
|
|
536
|
+
serverName: z.ZodString;
|
|
537
|
+
description: z.ZodOptional<z.ZodString>;
|
|
538
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
539
|
+
exposureMode: z.ZodEnum<{
|
|
540
|
+
direct: "direct";
|
|
541
|
+
discovery: "discovery";
|
|
542
|
+
hidden: "hidden";
|
|
543
|
+
}>;
|
|
544
|
+
enabled: z.ZodBoolean;
|
|
545
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
546
|
+
discovery: "discovery";
|
|
547
|
+
toolset: "toolset";
|
|
548
|
+
}>>;
|
|
549
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
exposed: z.ZodBoolean;
|
|
551
|
+
}, z.core.$strip>>;
|
|
552
552
|
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
553
553
|
fullName: z.ZodString;
|
|
554
554
|
originalName: z.ZodString;
|
|
@@ -587,18 +587,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
587
587
|
env?: Record<string, string> | undefined;
|
|
588
588
|
mcpSessionContext?: {
|
|
589
589
|
sessionId: string;
|
|
590
|
-
directTools: {
|
|
591
|
-
fullName: string;
|
|
592
|
-
originalName: string;
|
|
593
|
-
serverName: string;
|
|
594
|
-
inputSchema: Record<string, unknown>;
|
|
595
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
596
|
-
enabled: boolean;
|
|
597
|
-
exposed: boolean;
|
|
598
|
-
description?: string | undefined;
|
|
599
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
600
|
-
enabledAt?: number | undefined;
|
|
601
|
-
}[];
|
|
602
590
|
servers: {
|
|
603
591
|
name: string;
|
|
604
592
|
transport: {
|
|
@@ -628,6 +616,18 @@ declare const AgentRuntimeSchemas: {
|
|
|
628
616
|
};
|
|
629
617
|
exposureMode: "direct" | "discovery";
|
|
630
618
|
}[];
|
|
619
|
+
directTools: {
|
|
620
|
+
fullName: string;
|
|
621
|
+
originalName: string;
|
|
622
|
+
serverName: string;
|
|
623
|
+
inputSchema: Record<string, unknown>;
|
|
624
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
625
|
+
enabled: boolean;
|
|
626
|
+
exposed: boolean;
|
|
627
|
+
description?: string | undefined;
|
|
628
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
629
|
+
enabledAt?: number | undefined;
|
|
630
|
+
}[];
|
|
631
631
|
discoverableTools: {
|
|
632
632
|
fullName: string;
|
|
633
633
|
originalName: string;
|
|
@@ -662,18 +662,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
662
662
|
env?: Record<string, string> | undefined;
|
|
663
663
|
mcpSessionContext?: {
|
|
664
664
|
sessionId: string;
|
|
665
|
-
directTools: {
|
|
666
|
-
fullName: string;
|
|
667
|
-
originalName: string;
|
|
668
|
-
serverName: string;
|
|
669
|
-
inputSchema: Record<string, unknown>;
|
|
670
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
671
|
-
enabled: boolean;
|
|
672
|
-
exposed: boolean;
|
|
673
|
-
description?: string | undefined;
|
|
674
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
675
|
-
enabledAt?: number | undefined;
|
|
676
|
-
}[];
|
|
677
665
|
servers: {
|
|
678
666
|
name: string;
|
|
679
667
|
transport: {
|
|
@@ -703,6 +691,18 @@ declare const AgentRuntimeSchemas: {
|
|
|
703
691
|
};
|
|
704
692
|
exposureMode: "direct" | "discovery";
|
|
705
693
|
}[];
|
|
694
|
+
directTools: {
|
|
695
|
+
fullName: string;
|
|
696
|
+
originalName: string;
|
|
697
|
+
serverName: string;
|
|
698
|
+
inputSchema: Record<string, unknown>;
|
|
699
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
700
|
+
enabled: boolean;
|
|
701
|
+
exposed: boolean;
|
|
702
|
+
description?: string | undefined;
|
|
703
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
704
|
+
enabledAt?: number | undefined;
|
|
705
|
+
}[];
|
|
706
706
|
discoverableTools: {
|
|
707
707
|
fullName: string;
|
|
708
708
|
originalName: string;
|
|
@@ -734,18 +734,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
734
734
|
env?: Record<string, string> | undefined;
|
|
735
735
|
mcpSessionContext?: {
|
|
736
736
|
sessionId: string;
|
|
737
|
-
directTools: {
|
|
738
|
-
fullName: string;
|
|
739
|
-
originalName: string;
|
|
740
|
-
serverName: string;
|
|
741
|
-
inputSchema: Record<string, unknown>;
|
|
742
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
743
|
-
enabled: boolean;
|
|
744
|
-
exposed: boolean;
|
|
745
|
-
description?: string | undefined;
|
|
746
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
747
|
-
enabledAt?: number | undefined;
|
|
748
|
-
}[];
|
|
749
737
|
servers: {
|
|
750
738
|
name: string;
|
|
751
739
|
transport: {
|
|
@@ -775,6 +763,18 @@ declare const AgentRuntimeSchemas: {
|
|
|
775
763
|
};
|
|
776
764
|
exposureMode: "direct" | "discovery";
|
|
777
765
|
}[];
|
|
766
|
+
directTools: {
|
|
767
|
+
fullName: string;
|
|
768
|
+
originalName: string;
|
|
769
|
+
serverName: string;
|
|
770
|
+
inputSchema: Record<string, unknown>;
|
|
771
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
772
|
+
enabled: boolean;
|
|
773
|
+
exposed: boolean;
|
|
774
|
+
description?: string | undefined;
|
|
775
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
776
|
+
enabledAt?: number | undefined;
|
|
777
|
+
}[];
|
|
778
778
|
discoverableTools: {
|
|
779
779
|
fullName: string;
|
|
780
780
|
originalName: string;
|
|
@@ -809,18 +809,6 @@ declare const AgentRuntimeSchemas: {
|
|
|
809
809
|
env?: Record<string, string> | undefined;
|
|
810
810
|
mcpSessionContext?: {
|
|
811
811
|
sessionId: string;
|
|
812
|
-
directTools: {
|
|
813
|
-
fullName: string;
|
|
814
|
-
originalName: string;
|
|
815
|
-
serverName: string;
|
|
816
|
-
inputSchema: Record<string, unknown>;
|
|
817
|
-
exposureMode: "direct" | "discovery" | "hidden";
|
|
818
|
-
enabled: boolean;
|
|
819
|
-
exposed: boolean;
|
|
820
|
-
description?: string | undefined;
|
|
821
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
822
|
-
enabledAt?: number | undefined;
|
|
823
|
-
}[];
|
|
824
812
|
servers: {
|
|
825
813
|
name: string;
|
|
826
814
|
transport: {
|
|
@@ -850,6 +838,18 @@ declare const AgentRuntimeSchemas: {
|
|
|
850
838
|
};
|
|
851
839
|
exposureMode: "direct" | "discovery";
|
|
852
840
|
}[];
|
|
841
|
+
directTools: {
|
|
842
|
+
fullName: string;
|
|
843
|
+
originalName: string;
|
|
844
|
+
serverName: string;
|
|
845
|
+
inputSchema: Record<string, unknown>;
|
|
846
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
847
|
+
enabled: boolean;
|
|
848
|
+
exposed: boolean;
|
|
849
|
+
description?: string | undefined;
|
|
850
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
851
|
+
enabledAt?: number | undefined;
|
|
852
|
+
}[];
|
|
853
853
|
discoverableTools: {
|
|
854
854
|
fullName: string;
|
|
855
855
|
originalName: string;
|
|
@@ -892,9 +892,9 @@ declare const AgentRuntimeSchemas: {
|
|
|
892
892
|
status: z.ZodEnum<{
|
|
893
893
|
completed: "completed";
|
|
894
894
|
cancelled: "cancelled";
|
|
895
|
+
failed: "failed";
|
|
895
896
|
running: "running";
|
|
896
897
|
waiting_input: "waiting_input";
|
|
897
|
-
failed: "failed";
|
|
898
898
|
}>;
|
|
899
899
|
result: z.ZodOptional<z.ZodString>;
|
|
900
900
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -143,8 +143,8 @@ declare const AdapterRuntimeSchemas: {
|
|
|
143
143
|
teardownCompleted: z.ZodObject<{
|
|
144
144
|
evidence: z.ZodEnum<{
|
|
145
145
|
unknown: "unknown";
|
|
146
|
-
closed: "closed";
|
|
147
146
|
exited: "exited";
|
|
147
|
+
closed: "closed";
|
|
148
148
|
released: "released";
|
|
149
149
|
detached: "detached";
|
|
150
150
|
}>;
|
|
@@ -18,8 +18,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
18
18
|
config: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
description: z.ZodOptional<z.ZodString>;
|
|
20
20
|
displayName: z.ZodOptional<z.ZodString>;
|
|
21
|
-
protocol: z.ZodOptional<z.ZodString>;
|
|
22
21
|
clientId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
protocol: z.ZodOptional<z.ZodString>;
|
|
23
23
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
24
|
label: z.ZodString;
|
|
25
25
|
url: z.ZodString;
|
|
@@ -46,8 +46,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
46
46
|
configs: z.ZodArray<z.ZodObject<{
|
|
47
47
|
description: z.ZodOptional<z.ZodString>;
|
|
48
48
|
displayName: z.ZodOptional<z.ZodString>;
|
|
49
|
-
protocol: z.ZodOptional<z.ZodString>;
|
|
50
49
|
clientId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
protocol: z.ZodOptional<z.ZodString>;
|
|
51
51
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
52
|
label: z.ZodString;
|
|
53
53
|
url: z.ZodString;
|
|
@@ -1717,8 +1717,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
1717
1717
|
config: z.ZodObject<{
|
|
1718
1718
|
description: z.ZodOptional<z.ZodString>;
|
|
1719
1719
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1720
|
-
protocol: z.ZodOptional<z.ZodString>;
|
|
1721
1720
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
protocol: z.ZodOptional<z.ZodString>;
|
|
1722
1722
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1723
1723
|
label: z.ZodString;
|
|
1724
1724
|
url: z.ZodString;
|
|
@@ -3122,8 +3122,8 @@ type BindingRecord = z.infer<typeof BindingRecordSchema>;
|
|
|
3122
3122
|
declare const AdapterFileConfigSchema: z.ZodObject<{
|
|
3123
3123
|
description: z.ZodOptional<z.ZodString>;
|
|
3124
3124
|
displayName: z.ZodOptional<z.ZodString>;
|
|
3125
|
-
protocol: z.ZodOptional<z.ZodString>;
|
|
3126
3125
|
clientId: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
protocol: z.ZodOptional<z.ZodString>;
|
|
3127
3127
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3128
3128
|
label: z.ZodString;
|
|
3129
3129
|
url: z.ZodString;
|