@makaio/framework 1.0.0-dev-1781382091626 → 1.0.0-dev-1781397017668
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/{account-identity-CgzOqnVm.mjs → account-identity-D-9gunfD.mjs} +1 -1
- package/dist/adapter-D_p5kKxi.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/bus/index.d.mts +6 -5
- package/dist/bus/index.mjs +1 -1
- package/dist/canonical-model-BNb0IFWC.mjs +1 -0
- package/dist/{client-BBJf1mVA.mjs → client-D24ebgGH.mjs} +1 -1
- package/dist/compression-vRUOO-28.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.d.mts +2 -0
- package/dist/contracts/canonical-model/index.mjs +1 -0
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +7 -7
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +1117 -1559
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/{definition-DWWzV-k0.d.mts → definition-CPc6oKaF.d.mts} +1 -1
- package/dist/{detached-extension-handle-Diiwgm13.mjs → detached-extension-handle-BYxNmLfv.mjs} +1 -1
- package/dist/{extension-ZBN4BGre.mjs → extension-CTkoi8MV.mjs} +1 -1
- package/dist/{extension-DfNcE0zm.mjs → extension-DEUfzXcg.mjs} +1 -1
- package/dist/{filesystem-service-BjfrUmGS.mjs → filesystem-service-T8JOIWeP.mjs} +1 -1
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-BIH65cbN.mjs → globby-Bos1vjKj.mjs} +1 -1
- package/dist/{handlers-BAB4fQNH.mjs → handlers-CTrL8wmC.mjs} +2 -2
- package/dist/{harness-B8E_wRwa.mjs → harness-HEpELa_v.mjs} +1 -1
- package/dist/{index-Bw_zL7Rs.d.mts → index-6QvT0ljq.d.mts} +1 -1
- package/dist/{index-BT5tNA3Y.d.mts → index-B3mq3Qjf.d.mts} +1 -1
- package/dist/{index-DQppnGdC.d.mts → index-B92SK0rO.d.mts} +5 -5
- package/dist/index-B99Prx5a.d.mts +859 -0
- package/dist/{index-B1Rz7oUy.d.mts → index-BLqtL-_a.d.mts} +11 -11
- package/dist/{index-Dyz7dzLW.d.mts → index-BM_y78ZA2.d.mts} +9 -9
- package/dist/{index-CKP_uNGT.d.mts → index-BQ8H7cvY.d.mts} +16 -16
- package/dist/{index-C3zfJg6s.d.mts → index-BSFmBEDL.d.mts} +1 -1
- package/dist/{index-wP87FKTQ2.d.mts → index-C0TEY7RE.d.mts} +3 -3
- package/dist/{index-RUN1iHYu.d.mts → index-C24PcW2r.d.mts} +8 -8
- package/dist/{index-Buo9H8RK.d.mts → index-CEdOq5Om.d.mts} +1 -1
- package/dist/{index-Abq3I8wg.d.mts → index-CszoKxxO.d.mts} +141 -138
- package/dist/{index-COwW_2Gb.d.mts → index-DBgv39-Q.d.mts} +60 -60
- package/dist/{index-B2xbnMZe.d.mts → index-DLPjliGd.d.mts} +1 -1
- package/dist/{index-BpniJgxu.d.mts → index-DfNIhEm_.d.mts} +16 -16
- package/dist/{index-dAjtejnc.d.mts → index-DvETyI0_.d.mts} +1 -1
- package/dist/{index-DW8EiMJ9.d.mts → index-NyKdb8kT.d.mts} +28 -28
- package/dist/{index-B8tAGwHR.d.mts → index-QvciMc7_.d.mts} +387 -160
- package/dist/{index-DlvMtyHK.d.mts → index-WKF5BHsw.d.mts} +8 -8
- package/dist/kernel/cli/index.d.mts +2 -2
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.d.mts +1 -1
- package/dist/kernel/cli/register.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +5 -5
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/{lib-Cq5R6Tx9.mjs → lib-DkLlhp9Z.mjs} +1 -1
- package/dist/{lib-nlcl5kRW.mjs → lib-jOuIcSs9.mjs} +1 -1
- package/dist/{load-extensions-D9nbDIiW.d.mts → load-extensions-CQqw0Smr.d.mts} +1 -1
- package/dist/{load-extensions-wELQ4BBN.mjs → load-extensions-D-DyzN4j.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-BPlAuhc_.d.mts → namespace-B1Bldc48.d.mts} +117 -9
- package/dist/{namespace-5BLWcC3Q.d.mts → namespace-BAJTZXWc.d.mts} +42 -42
- package/dist/{namespace-Dfq6MDN9.mjs → namespace-BxrHvS5c.mjs} +1 -1
- package/dist/namespace-CH_NWUKW.mjs +1 -0
- package/dist/{namespace-BSNFeJA4.d.mts → namespace-CN2TfSCY.d.mts} +4 -4
- package/dist/{namespace--ROWLToE.d.mts → namespace-C_kaVySz.d.mts} +10 -10
- package/dist/{namespace-CHMszppN.d.mts → namespace-D_ZXa76m.d.mts} +26 -26
- package/dist/{namespace-Ds6HkJEU.d.mts → namespace-DbvQ4HYc.d.mts} +44 -34
- package/dist/{native-session-supervisor-DeKpxhWO.mjs → native-session-supervisor-DbrqcFq9.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/{orchestrator-shared-BKFXaKPL.mjs → orchestrator-shared-yFP8e7d5.mjs} +1 -1
- package/dist/{package-DzN_jdqd.mjs → package-Bn665ylV.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/primitive-runtime-C2yw4-F8.mjs +1 -0
- package/dist/{profile-D39-Zy_W.mjs → profile-r4G32bCH.mjs} +1 -1
- package/dist/{provider-context-wp4VSJFI.mjs → provider-context-Ds6GNYnE.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/extension-discovery.d.mts +1 -1
- package/dist/runtime-node/extension-validation.d.mts +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +3 -3
- package/dist/runtime-node/index.mjs +24 -26
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-C3TgjrsV.mjs → schema-atatXwNg.mjs} +1 -1
- package/dist/{schema-cNoxaiT0.d.mts → schema-msWs4YhT.d.mts} +2 -2
- package/dist/{schemas-DUE6mc1O.d.mts → schemas-CN9hprME.d.mts} +6 -6
- package/dist/schemas-CiMm2zrE.mjs +1 -0
- package/dist/{schemas-o2Q24yOF.d.mts → schemas-DMl7IKG-.d.mts} +5 -5
- package/dist/{schemas-DsyYsfVN2.d.mts → schemas-DRZJK6hW2.d.mts} +12 -12
- package/dist/{schemas-on3_N5HP.d.mts → schemas-xoTn8JZb.d.mts} +44 -34
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/capability/index.d.mts +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +12 -12
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +84 -79
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +3 -3
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +12 -12
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/{session-P4nX60Xx.mjs → session-Me3XO-l9.mjs} +2 -2
- package/dist/session-bKk-XeaY.mjs +1 -0
- package/dist/{skill-BNQnWVIG.mjs → skill-B_VlGon5.mjs} +1 -1
- package/dist/{src-CBG3IHUl.mjs → src-6n-8M8EU.mjs} +1 -1
- package/dist/storage/drizzle/client.d.mts +1 -1
- package/dist/storage/drizzle/client.mjs +1 -1
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/{tool-approval-service-DNHV5x0M.mjs → tool-approval-service-C2xXBtdJ.mjs} +1 -1
- package/dist/{tools-CQImrHAp.mjs → tools-DEUzCPBB.mjs} +1 -1
- package/dist/{types-BtsKrzK7.d.mts → types-4LKM7ZfA.d.mts} +200 -81
- package/dist/{types-D5IMwOkJ.d.mts → types-BB8iIAjZ.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/{version-B4NO_fID.mjs → version-SYP_DX4M.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +57 -57
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-worker-CK9Sqj7D.mjs → workflow-worker-CjuRYLmJ.mjs} +1 -1
- package/package.json +5 -1
- package/dist/adapter-UpcpZDOv.mjs +0 -1
- package/dist/namespace-BXqetkc3.mjs +0 -1
- package/dist/primitive-runtime-CNC_bSac.mjs +0 -1
- package/dist/schemas-CuKayWhA.mjs +0 -1
- package/dist/session-BwX5_k47.mjs +0 -1
- /package/dist/{ajv-BA2z5ztb.mjs → ajv-Cx19PP7Q.mjs} +0 -0
- /package/dist/{await-trigger-DREnXCEJ.mjs → await-trigger-uKEHY8E4.mjs} +0 -0
- /package/dist/{base-orchestrator-M5mAB5-w.d.mts → base-orchestrator-BRq4MXa7.d.mts} +0 -0
- /package/dist/{capability-service-jjrFLM6r.mjs → capability-service-CHl8rrwb.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-vZfPGi0X.mjs → cleanEnvForAdapter-D32WnVuy.mjs} +0 -0
- /package/dist/{client-BJVDImPV.d.mts → client-D2ZftNb6.d.mts} +0 -0
- /package/dist/{clients-namespace-SFk7OTop.d.mts → clients-namespace-CeAB0t06.d.mts} +0 -0
- /package/dist/{config-namespace-DydHz9so.mjs → config-namespace-DW5KHKPW.mjs} +0 -0
- /package/dist/{config-namespace-BzAvE2nY.d.mts → config-namespace-DloU-hNB.d.mts} +0 -0
- /package/dist/{create-static-mount-BB1MIQ9J.mjs → create-static-mount-Bi0VpYS8.mjs} +0 -0
- /package/dist/{cross-spawn-BL6EvJBv.mjs → cross-spawn-C58yEvsS.mjs} +0 -0
- /package/dist/{cursor-storage-CmKjSvKY.mjs → cursor-storage-CpuT5POU.mjs} +0 -0
- /package/dist/{definition-BSghHJpQ.d.mts → definition-BdxbXbrq.d.mts} +0 -0
- /package/dist/{definition-q6iLw11H.d.mts → definition-BwLJnqEo.d.mts} +0 -0
- /package/dist/{descriptor-to-package-CY8oc2gl.mjs → descriptor-to-package-D-FNxohm.mjs} +0 -0
- /package/dist/{drizzle-wjquQK2m.mjs → drizzle-D7dkDEB5.mjs} +0 -0
- /package/dist/{esm-CQVFKEW5.mjs → esm-CP2zvvlx.mjs} +0 -0
- /package/dist/{event-BEllCn16.mjs → event-DaXakaHo.mjs} +0 -0
- /package/dist/{execution-target-CQGYaaM2.mjs → execution-target-Da6Vjvba.mjs} +0 -0
- /package/dist/{extension-discovery-CkV_VRdJ.d.mts → extension-discovery-Bv5FDtrM.d.mts} +0 -0
- /package/dist/{extension-namespace-BBgYOttA.mjs → extension-namespace-O3sKdnY9.mjs} +0 -0
- /package/dist/{facet-DMrryX_0.mjs → facet-Q_vgXb23.mjs} +0 -0
- /package/dist/{filesystem-service-Ddngll0j.d.mts → filesystem-service-89fN-2Dd.d.mts} +0 -0
- /package/dist/{handler-DqpiV9eA.mjs → handler-BIA3ld4C.mjs} +0 -0
- /package/dist/{host-DbMiI5wQ.mjs → host-DFqmG2qO.mjs} +0 -0
- /package/dist/{identity-Bmx-8fPa.mjs → identity-CA5MzB19.mjs} +0 -0
- /package/dist/{index-Dsq2zKvu.d.mts → index-BE-yMFTz.d.mts} +0 -0
- /package/dist/{index-CDU_s69P.d.mts → index-BUilJdHr.d.mts} +0 -0
- /package/dist/{index-C33Tq1ei2.d.mts → index-BVhnqzDC2.d.mts} +0 -0
- /package/dist/{index-Cz9JMjZK.d.mts → index-BeNVLvtk2.d.mts} +0 -0
- /package/dist/{index-D0SUjZmU.d.mts → index-BplsE3qw.d.mts} +0 -0
- /package/dist/{index-C6BhKRnH.d.mts → index-BtL_9HBk.d.mts} +0 -0
- /package/dist/{index-Bsp0O_sI.d.mts → index-CBTp2XuF.d.mts} +0 -0
- /package/dist/{index-BMpRB6iE.d.mts → index-CYZqADXY2.d.mts} +0 -0
- /package/dist/{index-DSV1aFgK.d.mts → index-CfpfkKih.d.mts} +0 -0
- /package/dist/{index-BxFA1XcP.d.mts → index-CkPIPbx9.d.mts} +0 -0
- /package/dist/{index-DOfq0qqv.d.mts → index-D0RWuwl5.d.mts} +0 -0
- /package/dist/{index-CGJjA-hR2.d.mts → index-DHHKwLww.d.mts} +0 -0
- /package/dist/{index-zgm2j9V92.d.mts → index-DJSffYTW2.d.mts} +0 -0
- /package/dist/{index-BpXX9WZJ.d.mts → index-DNmENr9M.d.mts} +0 -0
- /package/dist/{index-9IDJUJ4X.d.mts → index-DVgKfgh1.d.mts} +0 -0
- /package/dist/{index-D6Iyvz9T.d.mts → index-DWqSqcpW.d.mts} +0 -0
- /package/dist/{index-BBvcP-P0.d.mts → index-DdCyeZ59.d.mts} +0 -0
- /package/dist/{index-EsXVjKsv.d.mts → index-GuspCNLR.d.mts} +0 -0
- /package/dist/{index-Drz_a7kW.d.mts → index-cFuQpzIm.d.mts} +0 -0
- /package/dist/{index-BnQSPC6c.d.mts → index-kOSSuOcK.d.mts} +0 -0
- /package/dist/{index-BbCjtc3h.d.mts → index-orAkFukT.d.mts} +0 -0
- /package/dist/{jsonl-transport-C21tpVfe.mjs → jsonl-transport-Bb8ltqOe.mjs} +0 -0
- /package/dist/{lib-CNOQJtgs.mjs → lib-BmcGxHXH.mjs} +0 -0
- /package/dist/{materialization-3QUnQLbC.mjs → materialization-DsPIGQP1.mjs} +0 -0
- /package/dist/{model-registry-B0AIdj7O.mjs → model-registry-DLeMw3l8.mjs} +0 -0
- /package/dist/{model-registry-j-rCKcik.mjs → model-registry-DQDclqdw.mjs} +0 -0
- /package/dist/{namespace--s0d86h-.d.mts → namespace-2G7A4Sza.d.mts} +0 -0
- /package/dist/{namespace-BBVtD1gu.d.mts → namespace-CEqkI6Zu.d.mts} +0 -0
- /package/dist/{namespace-BbjCyZC9.mjs → namespace-CN-Llu7H.mjs} +0 -0
- /package/dist/{namespace-aJJfBJU5.d.mts → namespace-DKnJL0Ja.d.mts} +0 -0
- /package/dist/{namespace-XTGCaSXj.d.mts → namespace-DMhz3yvr.d.mts} +0 -0
- /package/dist/{namespace-DzVf1hVH.d.mts → namespace-DcUwOJ4f.d.mts} +0 -0
- /package/dist/{namespace-B60mn8J-2.d.mts → namespace-Dr1wDUZA2.d.mts} +0 -0
- /package/dist/{namespace-BgPoC46Q.mjs → namespace-DrpHLJAy.mjs} +0 -0
- /package/dist/{namespace-ENv7H7Na.mjs → namespace-FJsnoEQy.mjs} +0 -0
- /package/dist/{namespace-D6X67cUk.mjs → namespace-UUw-S7ia.mjs} +0 -0
- /package/dist/{namespace-uuR0Fg5r.d.mts → namespace-nQS4XwnT.d.mts} +0 -0
- /package/dist/{namespace-nlsvvMtD.d.mts → namespace-q5dD3acO.d.mts} +0 -0
- /package/dist/{namespace-FT8igkn4.mjs → namespace-uGUGfpGQ.mjs} +0 -0
- /package/dist/{namespace-CUOGcGPG.mjs → namespace-zWB-ULrX.mjs} +0 -0
- /package/dist/{orchestrator-shared-D91Wk7z-.d.mts → orchestrator-shared-CbS4ueeq.d.mts} +0 -0
- /package/dist/{out-C1JFb2Bp.mjs → out-BUHr98Xe.mjs} +0 -0
- /package/dist/{package--RZnpN2J.d.mts → package-BEbo1-6S.d.mts} +0 -0
- /package/dist/{package-BzJvtM5O.mjs → package-YQeRE8bV.mjs} +0 -0
- /package/dist/{platform-Dhv22LiX.mjs → platform-CsO-MRJP.mjs} +0 -0
- /package/dist/{providers-B1p0P-vB.mjs → providers-FEZT2bQG.mjs} +0 -0
- /package/dist/{providers-namespace-BqWYkydw.d.mts → providers-namespace-DMUyEbmp.d.mts} +0 -0
- /package/dist/{quick-lru-B9nWXbXI.mjs → quick-lru-C7AXdpbU.mjs} +0 -0
- /package/dist/{registry-RG-bkw3c.mjs → registry-udUhXSIC.mjs} +0 -0
- /package/dist/{schema-CzhOc7TV.mjs → schema-Ba64XQjo.mjs} +0 -0
- /package/dist/{schema-introspection-CuRZPYEc.mjs → schema-introspection-D5FaI5B_.mjs} +0 -0
- /package/dist/{schemas-BCIuTWRl2.mjs → schemas-5kegIs9D.mjs} +0 -0
- /package/dist/{schemas-B77Gi8Xr.d.mts → schemas-9Ifo5zSf.d.mts} +0 -0
- /package/dist/{schemas-BdAf5u58.mjs → schemas-9QC3nvYP.mjs} +0 -0
- /package/dist/{schemas-Dyk7JuVl.d.mts → schemas-BSAKbVyd.d.mts} +0 -0
- /package/dist/{schemas-Kq33MTPY.d.mts → schemas-BxI5Yq8d.d.mts} +0 -0
- /package/dist/{schemas-Chyj6HuZ.d.mts → schemas-CRS7tkFP.d.mts} +0 -0
- /package/dist/{schemas-B5ToLwIs.d.mts → schemas-Cae5dubB.d.mts} +0 -0
- /package/dist/{schemas-hSrzflwZ.mjs → schemas-DAYPhB5K.mjs} +0 -0
- /package/dist/{schemas-DZUaRcYl.d.mts → schemas-DZfBym73.d.mts} +0 -0
- /package/dist/{schemas-C792eVAZ.d.mts → schemas-DznsZ0bq.d.mts} +0 -0
- /package/dist/{semver-DhHJv6Dt.mjs → semver-ClOD8k8c.mjs} +0 -0
- /package/dist/{server-lifecycle-47mygK3E.d.mts → server-lifecycle-5iHxcgBO.d.mts} +0 -0
- /package/dist/{server-lifecycle-Cg47L59Q.mjs → server-lifecycle-CFQaPTf7.mjs} +0 -0
- /package/dist/{session-lineage-CKg6mErA.d.mts → session-lineage-DFkJgYt5.d.mts} +0 -0
- /package/dist/{shared-schemas-DYL7a-No.mjs → shared-schemas-jG3EtHZT.mjs} +0 -0
- /package/dist/{src-DedDL9iv.mjs → src-CRDOZl7K.mjs} +0 -0
- /package/dist/{storage-namespace-BXO3lDVy.mjs → storage-namespace-C1JVmZF1.mjs} +0 -0
- /package/dist/{storage-namespace-definition-C3XbpiP8.d.mts → storage-namespace-definition-BPYSLTfN.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-RvjfFysN.mjs → storage-namespace-definition-Df8S3E3r.mjs} +0 -0
- /package/dist/{storage-namespace-BXmMUd7a.d.mts → storage-namespace-gey7EUhM.d.mts} +0 -0
- /package/dist/{supports-color-fVsgozsi.mjs → supports-color-AnssSSH9.mjs} +0 -0
- /package/dist/{telemetry-O0394b7p.mjs → telemetry-DdbvlZ8s.mjs} +0 -0
- /package/dist/{tray-menu-service-B5YPK_YF.mjs → tray-menu-service-am356993.mjs} +0 -0
- /package/dist/{types-D-bP8RRE.d.mts → types-Bj7cOrBQ.d.mts} +0 -0
- /package/dist/{types-D6jnDjP2.d.mts → types-D-GeeSdd.d.mts} +0 -0
- /package/dist/{types-5Gw3iVpK.d.mts → types-DhlQpVEb.d.mts} +0 -0
- /package/dist/{types-B0BtvVAq.d.mts → types-xLd-e0wf.d.mts} +0 -0
- /package/dist/{variant-COVbYmMs.mjs → variant-BdNN5edM.mjs} +0 -0
- /package/dist/{window-registry-CfEi_Ji4.d.mts → window-registry-CA6AC8n7.d.mts} +0 -0
- /package/dist/{window-registry-XjOExitT.mjs → window-registry-LRjWPwr4.mjs} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { C as AdapterNamespace, _ as StartAgentRequest, a as AgentSelection, b as AdapterRuntimeOptions, c as AgentSelectionKindMap, d as SessionDiscoveredSchema, l as AgentSelectionSchema, n as ProviderContextSchema, o as AgentSelectionBase, r as AdapterSelection, s as AgentSelectionBaseSchema, t as ProviderContext, u as SessionDiscovered, v as StartAgentResponse, w as AdapterSubjects } from "../index-
|
|
2
|
-
import { a as ROOT_SESSION_LINEAGE_KIND, c as SUBAGENT_SESSION_LINEAGE_KIND, d as SessionLineageKindSchema, i as ForkSessionLineageSchema, l as SessionLineage, n as CompressSessionLineageSchema, o as RootSessionLineageSchema, p as SubagentSessionLineageSchema, r as FORK_SESSION_LINEAGE_KIND, s as SESSION_LINEAGE_KINDS, t as COMPRESS_SESSION_LINEAGE_KIND, u as SessionLineageKind } from "../session-lineage-
|
|
3
|
-
import { $ as ArtifactObservationSchema, A as ArtifactDraft, B as BeforeArtifactHookRegistration, C as ArtifactStatusChangedPayload, Ct as ConfidenceMetadataSchema, D as ArtifactKindDefinition, Dt as LocalRefSchema, E as ArtifactDataOf, Et as LocalRef, F as ArtifactLifecycleHookRegistration, G as ArtifactCompareRequestSchema, H as ArtifactActor, I as ArtifactLifecycleSemanticEvent, J as ArtifactConflictPolicy, K as ArtifactCompareResponse, L as ArtifactReactionHookContext, M as ArtifactHookFilter, N as ArtifactLifecycleHookDefinition, O as ArtifactOf, Ot as RelationTypeRegistration, P as ArtifactLifecycleHookEvent, Q as ArtifactObservation, R as ArtifactReactionHookRegistration, S as ArtifactSchemas, St as ConfidenceMetadata, T as AnyArtifactKindDefinition, Tt as EvidenceRefSchema, U as ArtifactActorSchema, V as defineArtifactLifecycleHooks, W as ArtifactCompareRequest, X as ArtifactKindRegistration, Y as ArtifactConflictPolicySchema, Z as ArtifactKindRegistrationSchema, _ as ArtifactResolveRequest, _t as ArtifactScopeSchema, a as ArtifactKindListRequest, at as ArtifactRefSchema, b as ArtifactReviseResponse, bt as ConfidenceLevel, c as ArtifactKindRegisterResponse, d as ArtifactQueryResponse, dt as ArtifactRelationTargetSchema, et as ArtifactQueryRequest, f as ArtifactRelationAddedPayload, ft as ArtifactRepresentations, g as ArtifactRelationTypeRegisterResponse, gt as ArtifactScope, h as ArtifactRelationTypeRegisterRequest, ht as ArtifactRevisionSchema, i as ArtifactKindChangedPayload, it as ArtifactRef, j as ArtifactDraftPatch, k as defineArtifactKind, kt as RelationTypeRegistrationSchema, l as ArtifactNamespace, lt as ArtifactRelationSchema, m as ArtifactRelationTypeListResponse, mt as ArtifactRevision, n as ArtifactCreateResponse, nt as ArtifactQueryScope, o as ArtifactKindListResponse, ot as ArtifactRelation, p as ArtifactRelationTypeListRequest, pt as ArtifactRepresentationsSchema, q as ArtifactCompareResponseSchema, r as ArtifactCreatedPayload, rt as ArtifactQueryScopeSchema, s as ArtifactKindRegisterRequest, t as ArtifactCreateRequest, tt as ArtifactQueryRequestSchema, u as ArtifactObservationAddedPayload, ut as ArtifactRelationTarget, v as ArtifactResolveResponse, vt as ConfidenceBasis, w as ArtifactSubjects, wt as EvidenceRef, x as ArtifactRevisedPayload, xt as ConfidenceLevelSchema, y as ArtifactReviseRequest, yt as ConfidenceBasisSchema, z as BeforeArtifactHookContext } from "../index-
|
|
4
|
-
import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../schemas-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
11
|
-
import { i as
|
|
12
|
-
import {
|
|
13
|
-
import { $ as
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { a as
|
|
19
|
-
import { a as
|
|
20
|
-
import { a as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { a as
|
|
1
|
+
import { C as AdapterNamespace, _ as StartAgentRequest, a as AgentSelection, b as AdapterRuntimeOptions, c as AgentSelectionKindMap, d as SessionDiscoveredSchema, l as AgentSelectionSchema, n as ProviderContextSchema, o as AgentSelectionBase, r as AdapterSelection, s as AgentSelectionBaseSchema, t as ProviderContext, u as SessionDiscovered, v as StartAgentResponse, w as AdapterSubjects } from "../index-CszoKxxO.mjs";
|
|
2
|
+
import { a as ROOT_SESSION_LINEAGE_KIND, c as SUBAGENT_SESSION_LINEAGE_KIND, d as SessionLineageKindSchema, i as ForkSessionLineageSchema, l as SessionLineage, n as CompressSessionLineageSchema, o as RootSessionLineageSchema, p as SubagentSessionLineageSchema, r as FORK_SESSION_LINEAGE_KIND, s as SESSION_LINEAGE_KINDS, t as COMPRESS_SESSION_LINEAGE_KIND, u as SessionLineageKind } from "../session-lineage-DFkJgYt5.mjs";
|
|
3
|
+
import { $ as ArtifactObservationSchema, A as ArtifactDraft, B as BeforeArtifactHookRegistration, C as ArtifactStatusChangedPayload, Ct as ConfidenceMetadataSchema, D as ArtifactKindDefinition, Dt as LocalRefSchema, E as ArtifactDataOf, Et as LocalRef, F as ArtifactLifecycleHookRegistration, G as ArtifactCompareRequestSchema, H as ArtifactActor, I as ArtifactLifecycleSemanticEvent, J as ArtifactConflictPolicy, K as ArtifactCompareResponse, L as ArtifactReactionHookContext, M as ArtifactHookFilter, N as ArtifactLifecycleHookDefinition, O as ArtifactOf, Ot as RelationTypeRegistration, P as ArtifactLifecycleHookEvent, Q as ArtifactObservation, R as ArtifactReactionHookRegistration, S as ArtifactSchemas, St as ConfidenceMetadata, T as AnyArtifactKindDefinition, Tt as EvidenceRefSchema, U as ArtifactActorSchema, V as defineArtifactLifecycleHooks, W as ArtifactCompareRequest, X as ArtifactKindRegistration, Y as ArtifactConflictPolicySchema, Z as ArtifactKindRegistrationSchema, _ as ArtifactResolveRequest, _t as ArtifactScopeSchema, a as ArtifactKindListRequest, at as ArtifactRefSchema, b as ArtifactReviseResponse, bt as ConfidenceLevel, c as ArtifactKindRegisterResponse, d as ArtifactQueryResponse, dt as ArtifactRelationTargetSchema, et as ArtifactQueryRequest, f as ArtifactRelationAddedPayload, ft as ArtifactRepresentations, g as ArtifactRelationTypeRegisterResponse, gt as ArtifactScope, h as ArtifactRelationTypeRegisterRequest, ht as ArtifactRevisionSchema, i as ArtifactKindChangedPayload, it as ArtifactRef, j as ArtifactDraftPatch, k as defineArtifactKind, kt as RelationTypeRegistrationSchema, l as ArtifactNamespace, lt as ArtifactRelationSchema, m as ArtifactRelationTypeListResponse, mt as ArtifactRevision, n as ArtifactCreateResponse, nt as ArtifactQueryScope, o as ArtifactKindListResponse, ot as ArtifactRelation, p as ArtifactRelationTypeListRequest, pt as ArtifactRepresentationsSchema, q as ArtifactCompareResponseSchema, r as ArtifactCreatedPayload, rt as ArtifactQueryScopeSchema, s as ArtifactKindRegisterRequest, t as ArtifactCreateRequest, tt as ArtifactQueryRequestSchema, u as ArtifactObservationAddedPayload, ut as ArtifactRelationTarget, v as ArtifactResolveResponse, vt as ConfidenceBasis, w as ArtifactSubjects, wt as EvidenceRef, x as ArtifactRevisedPayload, xt as ConfidenceLevelSchema, y as ArtifactReviseRequest, yt as ConfidenceBasisSchema, z as BeforeArtifactHookContext } from "../index-DBgv39-Q.mjs";
|
|
4
|
+
import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../schemas-DMl7IKG-.mjs";
|
|
5
|
+
import { T as ResolvableCanonicalModel, d as parseCanonicalModel, l as VIRTUAL_NAME_RE, n as CanonicalModelSubjects, o as CanonicalModelSelection, r as CanonicalModelResolvedSelection, u as isCanonicalModelParseError } from "../index-B99Prx5a.mjs";
|
|
6
|
+
import { A as VersionRange, M as isUniversalRange, N as versionSatisfies, O as VersionLiteral, S as PostInstallDescriptor, _ as LogSourceDefinitionSchema, a as ClientDefinitionSchema, b as NpmInstallDescriptor, f as ClientToolDefinition, g as LogSourceDefinition, j as VersionRangeSchema, k as VersionLiteralSchema, n as ClientBinaryCompatibilitySchema, p as ClientToolDefinitionSchema, r as ClientDefinition, t as ClientBinaryCompatibility, v as ManagedInstallDescriptor, w as SignedBinaryBucketInstallDescriptor, y as ManagedInstallDescriptorSchema } from "../definition-BdxbXbrq.mjs";
|
|
7
|
+
import { Cn as ClientExecutionContext, Ht as InstallStage, J as ClientSessionToolPost, Jt as ClientAccountIdentifier, K as ClientSessionStarted, Kt as ManagedInstallStrategy, Q as ClientSessionTurnCompleted, Rt as ClientVersionChanged, U as ClientSubjects, V as createClientDefinition, W as ClientSessionObservedBase, Wt as InstalledVersionEntry, X as ClientSessionToolPre, Xt as ClientAccountObserveRequest, Yt as ClientAccountIdentifierSchema, _t as ClientBinaryListEntry, at as ClientWiringEntrySchema, cn as ClientSessionAccountObserveRequest, ct as ClientRuntimeObserveRequest, dn as ClientSessionLocator, gn as ClientUsageSnapshot, ht as ClientRuntimeStarted, in as ClientScanResult, it as ClientWiringEntry, ln as ClientSessionAccountObserveResponse, nn as ClientIdentityObservationSchema, nt as ClientSessionUserPromptSubmitted, on as ClientScanTarget, pn as ClientUsageIngestRequest, tn as ClientIdentityObservation, un as ClientSessionAccountObserveSchema, vn as ClientUsageWindow, xt as ClientInstallProgress, yt as ClientInstallCompleted } from "../index-BSFmBEDL.mjs";
|
|
8
|
+
import { a as FocusContext, i as ActionIntent, t as SurfaceType } from "../index-BE-yMFTz.mjs";
|
|
9
|
+
import { _ as TTSCapability, a as ConfigUpdateRequest, b as RelayConfig, c as AIModelMetadata, d as AIReasoningLevelSchema, f as DiscoveredAIModel, g as STTCapability, h as ReasoningLevelMap, i as ConfigSchemas, l as AIModelSchema, m as ProviderAIModelSchema, n as ConfigSubjects, o as ConfigUpdateResponse, p as ProviderAIModel, r as ConfigGetResponse, s as AIModel, u as AIReasoningLevel, v as Config, y as ConfigSchema } from "../config-namespace-DloU-hNB.mjs";
|
|
10
|
+
import { $n as CliArgManifest, A as TransitionConditionSchema, B as BootstrapExportContext, Bn as ExtensionWarningAction, Bt as TileDeclaration, C as ExtensionTransitionActionsContribution, Cn as SessionEventActionOptions, Cr as dep, D as TransitionActionInvocation, Dt as PageDeclaration, E as TransitionActionHandler, Et as PageComponentProps, F as TransitionRuleDefinitionSchema, Fn as NodeExtensionContext, G as ExtensionBootstrap, Gt as UiContextSnapshot, H as BootstrapImportContext, Hn as ExtensionWarningEntry, Ht as TileProps, I as BootstrapAsset, In as ExtensionIdentity, It as WidgetProps, Jn as AdapterDefinitionContract, Jt as UiNavigationLevelMap, K as getBootstrapAssetKey, Kt as UiContextValueMap, L as BootstrapAssetKey, Ln as ExtensionService, M as TransitionEventType, N as TransitionEventTypeSchema, O as TransitionActionInvocationSchema, Or as AdapterClientRef, P as TransitionRuleDefinition, Pn as ExtensionContext, Pt as WidgetDeclaration, Qn as extensionToken, R as BootstrapChoice, Rn as ExtensionServiceLifecycle, S as MakaioNodeExtension, Sn as SessionEventActionDeclaration, Sr as allMigrationsPaths, T as TransitionActionFactory, Tn as WhenContext, Tr as CapabilityToken, Tt as ToolCallFormatterDeclaration, U as BootstrapImportResult, Un as ExtensionWarningEntrySchema, V as BootstrapExportResult, W as BootstrapResult, Wn as ExtensionWarningSchema, Wt as UiContextDimension, Xn as AdapterProviderRef, Xt as UiScope, Yn as AdapterProviderDefinitionContract, Yt as UiRuntimeNavigationLevel, Zn as ExtensionToken, Zt as UiScopeMap, _ as ExtensionArtifactLifecycleHooksContribution, _n as PickerConfig, _t as MakaioWebUiComponentProps, a as DetachedTransportSchema, an as HashTriggerSuggestResult, ar as ExtensionDependency, at as StationNodeBlockRun, bn as SelectionFeedback, c as ExtensionDescriptorBase, cn as ActionShortcut, ct as WorkflowStepBlock, d as ExtensionEntrypoints, dn as EntrypointConfig, dr as STORAGE_DIALECTS, f as ExtensionEntrypointsSchema, fn as EventFilter, fr as StorageDialect, ft as ExtensionConfigComponentProps, g as ArtifactLifecycleHooksContributionContext, gn as MessageRole, gt as MakaioWebUiActions, h as safeParseExtensionDescriptor, hn as MessageEventFilter, hr as TrayManifest, i as DetachedTransportConfig, it as RegisteredTriggerBlock, j as TransitionEvaluationContext, k as TransitionCondition, ln as ActionShortcutModifiers, lt as WorkflowStepBlockRun, m as parseExtensionDescriptor, mn as ExecuteResult, mt as LoaderContext, n as parseExtensionConfig, nn as HashTriggerContext, nr as CliManifestSchema, nt as DelegateRoleNodeBlockRun, o as EmbeddedDescriptor, on as ActionCategory, or as ExtensionDependencySchema, ot as WorkflowBlockCollection, p as isDetachedDescriptor, pn as ExecuteContext, pr as StorageManifest, pt as ExtensionFieldTypeLoader, q as AdapterContribution, qn as getExtensionWarningActionLabel, qt as UiNavigationLevel, r as DetachedDescriptor, rn as HashTriggerMetadata, rr as CliSubcommandManifest, rt as RegisteredStepBlock, s as ExtensionDescriptor, sn as ActionCategoryMap, st as WorkflowBlockMetadata, t as ExtensionConfigProvider, ti as BrowserEntrypointSchema, tn as HashTrigger, tr as CliManifest, tt as DelegateAgentNodeBlockRun, u as ExtensionDescriptorSchema, un as CreateSessionEventActionResult, ut as WorkflowTriggerBlock, v as ExtensionContributionProcessor, vn as PickerOpenContext, w as ExtensionTransitionRulesContribution, wn as StructuralEventFilter, wr as primaryMigrationsPath, x as MakaioExtension, xn as SessionEventActionContext, yn as SelectionChangeContext, yr as WindowParamSpec, yt as MakaioWebUiRoute, z as BootstrapDiscoverContext, zn as ExtensionWarning } from "../index-BLqtL-_a.mjs";
|
|
11
|
+
import { a as ProviderDefinition, i as ProtocolIdSchema, n as ProtocolEndpointsSchema, o as ProviderDefinitionInput, r as ProtocolId, s as ProviderDefinitionSchema, t as ProtocolEndpoints } from "../definition-BwLJnqEo.mjs";
|
|
12
|
+
import { i as TimeoutConfigSchema, n as TimeoutCategory, r as TimeoutConfig, t as RequiredTimeoutConfig } from "../index-CBTp2XuF.mjs";
|
|
13
|
+
import { $ as ImportStatus, B as TurnInitiator, C as SessionEventTypeMap, D as MessageRouting, G as TurnUsage, H as TurnSchema, K as TurnUsageSchema, M as SessionMessageBlock, O as MessageRoutingSchema, P as SessionMessageOrigin, R as SessionMessageSchema, S as SessionEventType, T as SendMessageRequest$1, U as TurnStatus, V as TurnInitiatorSchema, W as TurnStatusSchema, Y as AgentRole, Z as BranchKind, _ as ForkChildInfo, a as SessionPreviewData, b as SESSION_EVENT_TYPES, ct as safeValidateSnapshot, d as SegmentPolicy, dt as SessionPreviewDataSchema, ft as SessionWithPreviewSchema, h as SessionUpdatedEvent, ht as MakaioSessionAgentSchema, i as MakaioSessionEvent, it as SnapshotExportOptions, j as SessionMessage, k as MessageRoutingStatus, l as ForkTransforms, lt as validateSnapshot, mt as AgentStatusSchema, nt as SessionSnapshot, o as SessionWithPreview, ot as SnapshotImportConflictErrorData, p as SessionCreated, q as UsageMetrics, r as MakaioSessionAgent, rt as SessionSnapshotSchema, s as isKnownSessionEvent, st as SnapshotPreviewData, t as IMakaioSession, tt as SNAPSHOT_VERSION, u as ForkTransformsSchema, ut as MakaioSessionSchema, x as SessionEventPayload, y as MakaioSessionEventSchema, z as Turn } from "../types-4LKM7ZfA.mjs";
|
|
14
|
+
import { $ as JsonValueSchema, A as FieldOption, B as ResponseSchemaDescriptorSchema, D as EntityUIConfig, E as CustomFieldDefinition, F as FieldWidget, G as StructuredOutputValidationErrorSchema, H as ResponseSchemaNameSchema, I as FormFieldProps, J as StructuredOutputValidationStatusSchema, K as StructuredOutputValidationSchema, O as EntityUIConfigSchema, P as FieldType, Q as JsonValue, R as StandardFieldDefinition, S as SystemPrompt, U as StructuredOutputValidation, V as ResponseSchemaName, W as StructuredOutputValidationError, Y as JsonObjectContractSchema, a as ErrorCategorySchema, d as MessageInput, i as ErrorCategory, k as FieldDefinition, l as MessageDeliveryMode, o as Message$1, p as MessageOutcome, q as StructuredOutputValidationStatus, r as ERROR_CATEGORIES, s as MessageBlock, t as ContentSource, y as SendMessageResultInnerResult, z as ResponseSchemaDescriptor } from "../index-B3mq3Qjf.mjs";
|
|
15
|
+
import { _ as FacetNamespaceRegistration, a as FacetNamespaceRegisterRequest, c as FacetSubjects, d as FacetAppliesTo, f as FacetAppliesToSchema, g as FacetCardinalitySchema, h as FacetCardinality, i as FacetNamespaceListResponse, l as FacetNamespaceDefinition, m as FacetAuthoritySchema, n as FacetNamespaceChangedPayload, o as FacetNamespaceRegisterResponse, p as FacetAuthority, r as FacetNamespaceListRequest, s as FacetSchemas, t as FacetNamespace, u as defineFacetNamespace, v as FacetNamespaceRegistrationSchema } from "../index-WKF5BHsw.mjs";
|
|
16
|
+
import { n as defineSurfaceBinding, t as SurfaceBindingDefinition } from "../definition-CPc6oKaF.mjs";
|
|
17
|
+
import { A as HarnessDefinitionSchema, C as ApprovalPolicy, D as HarnessDefinitionBaseSchema, E as HarnessDefinition, O as HarnessDefinitionCreate, S as HarnessSubjects, _ as ToolCapabilitySchema, d as expandProfileToolCapabilities, g as ToolCapability, h as CapabilityPickerValue, k as HarnessDefinitionCreateSchema, l as ProfileToolCapabilitiesConfig, m as CapabilityItem, o as codexCapabilityMap, p as CapabilityGroup, r as DEFAULT_HARNESSES, u as expandCapabilities, v as ToolMetaTag, w as ApprovalPolicySchema, y as computeMetaTags } from "../index-C24PcW2r.mjs";
|
|
18
|
+
import { a as WindowCreateRequest, c as WindowFocusResponse, d as WindowListResponse, f as WindowOpenedEvent, g as HostSubjects, h as HostNamespace, i as WindowClosedEvent, l as WindowLabelChangedEvent, m as WindowStateSchema, n as TrayActivateRequest, o as WindowCreateResponse, p as WindowState, r as TrayActivateResponse, s as WindowFocusRequest, t as HostSchemas, u as WindowListRequest } from "../index-BUilJdHr.mjs";
|
|
19
|
+
import { a as resolveModelVisibility, i as ModelVisibilitySchema, n as ModelFilterModeSchema, r as ModelVisibility, t as ModelFilterMode } from "../index-CEdOq5Om.mjs";
|
|
20
|
+
import { a as ModelRegistrySupportedModelsResponse, i as ModelRegistrySupportedModelsRequest, n as ModelRegistrySupportedModel, o as ModelRegistryPublicNamespace, r as ModelRegistrySupportedModelSchema, s as ModelRegistryPublicSubjects } from "../index-CfpfkKih.mjs";
|
|
21
|
+
import { a as PlatformSchemas, i as AutoLaunchStatusResponse, n as AutoLaunchEnableRequest, o as PlatformNamespace, r as AutoLaunchEnableResponse, s as PlatformSubjects, t as AutoLaunchDisableResponse } from "../index-DWqSqcpW.mjs";
|
|
22
|
+
import { F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, K as ForkOptions, L as isConnectorSwapCancelledError, N as ResolveAgentConfigResponse, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, a as SessionStorageSubjects, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../index-QvciMc7_.mjs";
|
|
23
|
+
import { A as SkillRecordInputSchema, C as SkillGetActiveSkillsResponse, E as SkillQuery, F as SkillRuntimePolicySchema, L as SkillScope, M as SkillReinjection, O as SkillRecord, P as SkillRuntimePolicy, S as SkillGetActiveSkillsRequest, T as SkillGetCatalogResponse, U as SkillNamespace, V as SkillTurnEntry, W as SkillSubjects, b as SkillFrontmatter, c as SkillActivateRequest, f as SkillActivationTrigger, g as SkillCatalogTurnEntry, i as ActivatedSkillMetadata, k as SkillRecordInput, l as SkillActivateResponse, m as SkillCatalogEntry, n as SkillStorageSubjects, o as ActiveSkillState, p as SkillActivationTriggerSchema, r as validateSkillScope, t as SkillStorageNamespace, u as SkillActivationMode, v as SkillDeactivationReason, w as SkillGetCatalogRequest, x as SkillFrontmatterSchema, y as SkillDeactivationReasonSchema, z as SkillSource } from "../index-BQ8H7cvY.mjs";
|
|
24
|
+
import { a as VariantGetInfoResponse, d as VariantUpgradeStatusSchema, i as MakaioVariantSchema, l as VariantUpgradeProgressEvent, n as VariantSubjects, o as VariantRequestUpgradeRequest, r as MakaioVariant, s as VariantRequestUpgradeResponse, t as VariantNamespace, u as VariantUpgradeStatus } from "../index-GuspCNLR.mjs";
|
|
25
|
+
import { _ as SupervisorSessionStatusSchema, a as NativeSupervisorLaunchRequest, c as NativeSupervisorStatusRequest, d as NativeSupervisorStopRequest, g as SupervisorSessionStatus, m as SupervisorRuntimeSnapshot, n as NativeSupervisorAttachRequest, y as NativeSessionSupervisorSubjects } from "../index-DdCyeZ59.mjs";
|
|
26
|
+
import { a as MaterializationSubjects, c as SurfaceBindingListResponse, i as MaterializationSchemas, l as SurfaceBindingRegisterRequest, n as MaterializationNamespace, o as SurfaceBindingChangedPayload, s as SurfaceBindingListRequest, u as SurfaceBindingRegisterResponse } from "../index-BM_y78ZA2.mjs";
|
|
27
|
+
import { a as SubjectTelemetryFactSchema, c as SubjectTelemetryNamespace, i as SubjectTelemetryFact, l as SubjectTelemetrySubjects, n as SubjectTelemetryAttributeValueSchema, o as SubjectTelemetryMessageTypeSchema, r as SubjectTelemetryDirectionSchema, s as SubjectTelemetrySchemas, t as SubjectTelemetryAttributeValue } from "../index-DHHKwLww.mjs";
|
|
27
28
|
import * as _$zod from "zod";
|
|
28
29
|
import { z } from "zod";
|
|
29
30
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -31,497 +32,6 @@ import { ExtractSubjectPayload, MakaioBusLike, RegistrableBusNamespaceDefinition
|
|
|
31
32
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
32
33
|
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
33
34
|
|
|
34
|
-
//#region core/contracts/src/canonical-model/types.d.ts
|
|
35
|
-
/** Exhaustive tuple of all {@link CanonicalModelParseErrorCode} values. */
|
|
36
|
-
declare const CANONICAL_MODEL_PARSE_ERROR_CODES: readonly ["empty", "empty-model", "empty-routing", "empty-segment", "too-many-segments", "invalid-segment", "invalid-virtual-name", "empty-virtual-name"];
|
|
37
|
-
/**
|
|
38
|
-
* Error codes produced by the canonical model parser.
|
|
39
|
-
*
|
|
40
|
-
* Each code identifies a distinct malformed-input condition:
|
|
41
|
-
* - `'empty'` - empty or whitespace-only input
|
|
42
|
-
* - `'empty-model'` - `'::'` present with nothing after it
|
|
43
|
-
* - `'empty-routing'` - `'::'` present with nothing before it
|
|
44
|
-
* - `'empty-segment'` - consecutive slashes produce an empty routing segment
|
|
45
|
-
* - `'too-many-segments'` - more than two routing segments before `'::'`
|
|
46
|
-
* - `'invalid-segment'` - routing segment contains characters outside `[a-z0-9._-]`
|
|
47
|
-
* - `'invalid-virtual-name'` - virtual model name contains characters outside `[a-z0-9_-]`
|
|
48
|
-
* - `'empty-virtual-name'` - bare `'~'` sigil with no name following it
|
|
49
|
-
*/
|
|
50
|
-
type CanonicalModelParseErrorCode = (typeof CANONICAL_MODEL_PARSE_ERROR_CODES)[number];
|
|
51
|
-
/**
|
|
52
|
-
* Parse error returned by the canonical model parser.
|
|
53
|
-
*
|
|
54
|
-
* Discriminated by `kind: 'parse-error'` so it can be combined into
|
|
55
|
-
* {@link CanonicalModelParseResult} and narrowed with a type guard.
|
|
56
|
-
*/
|
|
57
|
-
interface CanonicalModelParseError {
|
|
58
|
-
readonly kind: 'parse-error';
|
|
59
|
-
/** Machine-readable error category. */
|
|
60
|
-
readonly code: CanonicalModelParseErrorCode;
|
|
61
|
-
/** Human-readable description of the problem. */
|
|
62
|
-
readonly message: string;
|
|
63
|
-
/** The verbatim input string that produced the error. */
|
|
64
|
-
readonly input: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Bare model reference - no routing qualifier.
|
|
68
|
-
*
|
|
69
|
-
* The entire input is treated as the verbatim model name and resolved
|
|
70
|
-
* against the default adapter/provider at runtime.
|
|
71
|
-
*/
|
|
72
|
-
interface BareModelRef {
|
|
73
|
-
readonly kind: 'bare';
|
|
74
|
-
/** Verbatim model name as provided by the caller (for example `'sonnet'`). */
|
|
75
|
-
readonly model: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Qualified model reference - one or two routing segments followed by `'::'` and a model name.
|
|
79
|
-
*
|
|
80
|
-
* Routing segments are case-normalised to lowercase during parsing.
|
|
81
|
-
* The model name is passed through verbatim.
|
|
82
|
-
*/
|
|
83
|
-
interface QualifiedModelRef {
|
|
84
|
-
readonly kind: 'qualified';
|
|
85
|
-
/** First routing segment - adapter or provider slug, lowercased. */
|
|
86
|
-
readonly segment1: string;
|
|
87
|
-
/** Second routing segment - provider slug when `segment1` is an adapter, lowercased. */
|
|
88
|
-
readonly segment2?: string;
|
|
89
|
-
/** Verbatim model name appearing after `'::'`. */
|
|
90
|
-
readonly model: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Virtual model reference - a logical alias introduced with the `'~'` sigil.
|
|
94
|
-
*
|
|
95
|
-
* Hosts may translate this higher-level reference through the existing
|
|
96
|
-
* virtual-model resolution seam. The framework-owned canonical-model resolver
|
|
97
|
-
* intentionally does not consume this parsed form.
|
|
98
|
-
*/
|
|
99
|
-
interface VirtualModelRef {
|
|
100
|
-
readonly kind: 'virtual';
|
|
101
|
-
/** Virtual model name without the leading `'~'` sigil. */
|
|
102
|
-
readonly name: string;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Discriminated union of all successfully parsed canonical model forms.
|
|
106
|
-
*
|
|
107
|
-
* Narrow with `result.kind` or use the {@link isCanonicalModelParseError} type
|
|
108
|
-
* guard to separate success from failure.
|
|
109
|
-
*/
|
|
110
|
-
type ParsedCanonicalModel = BareModelRef | QualifiedModelRef | VirtualModelRef;
|
|
111
|
-
/**
|
|
112
|
-
* Framework-resolvable parsed canonical model forms.
|
|
113
|
-
*
|
|
114
|
-
* Host-only `kind: 'virtual'` expansion is intentionally excluded from the
|
|
115
|
-
* framework resolver contract.
|
|
116
|
-
*/
|
|
117
|
-
type ResolvableCanonicalModel = BareModelRef | QualifiedModelRef;
|
|
118
|
-
/**
|
|
119
|
-
* Result of parsing a canonical model string.
|
|
120
|
-
*
|
|
121
|
-
* Either a successfully parsed {@link ParsedCanonicalModel} or a
|
|
122
|
-
* {@link CanonicalModelParseError} describing why parsing failed.
|
|
123
|
-
*/
|
|
124
|
-
type CanonicalModelParseResult = ParsedCanonicalModel | CanonicalModelParseError;
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region core/contracts/src/canonical-model/parser.d.ts
|
|
127
|
-
/**
|
|
128
|
-
* Matches a valid virtual model name: starts with `[a-z0-9]`, followed by
|
|
129
|
-
* `[a-z0-9_-]*`.
|
|
130
|
-
*
|
|
131
|
-
* Exported so host-owned virtual-model schemas can enforce the same naming
|
|
132
|
-
* rule at write time.
|
|
133
|
-
*/
|
|
134
|
-
declare const VIRTUAL_NAME_RE: RegExp;
|
|
135
|
-
/**
|
|
136
|
-
* Parse a canonical model string into a structured reference.
|
|
137
|
-
*
|
|
138
|
-
* The grammar is:
|
|
139
|
-
* ```
|
|
140
|
-
* canonical := "~" virtual_model_name
|
|
141
|
-
* | routing "::" model_name
|
|
142
|
-
* | model_name
|
|
143
|
-
*
|
|
144
|
-
* routing := segment
|
|
145
|
-
* | segment "/" segment
|
|
146
|
-
*
|
|
147
|
-
* segment := [a-z0-9][a-z0-9._-]*
|
|
148
|
-
* model_name := <any non-empty string>
|
|
149
|
-
* virtual_model_name := [a-z0-9][a-z0-9_-]*
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* Routing segments are lowercased during parsing because they are
|
|
153
|
-
* case-insensitive for matching purposes. Model names are passed through
|
|
154
|
-
* verbatim as they are provider-defined and case-sensitive.
|
|
155
|
-
* @param input - The canonical model string to parse
|
|
156
|
-
* @returns A parsed reference or a parse error
|
|
157
|
-
*/
|
|
158
|
-
declare function parseCanonicalModel(input: string): CanonicalModelParseResult;
|
|
159
|
-
/**
|
|
160
|
-
* Type guard for distinguishing parse errors from successful parse results.
|
|
161
|
-
* @param result - The parse result to check
|
|
162
|
-
* @returns `true` when the result is a parse error
|
|
163
|
-
*/
|
|
164
|
-
declare function isCanonicalModelParseError(result: CanonicalModelParseResult): result is CanonicalModelParseError;
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region core/contracts/src/canonical-model/selection.d.ts
|
|
167
|
-
/**
|
|
168
|
-
* Agent selection for `kind: 'canonical-model'`.
|
|
169
|
-
*
|
|
170
|
-
* The `model` field carries the canonical model reference string verbatim.
|
|
171
|
-
* Resolution happens immediately at the `AgentResolutionSubjects.resolve`
|
|
172
|
-
* chokepoint, so this kind never persists into runtime spawn paths.
|
|
173
|
-
*/
|
|
174
|
-
declare const CanonicalModelSelectionSchema: z.ZodObject<{
|
|
175
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
176
|
-
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
177
|
-
none: "none";
|
|
178
|
-
low: "low";
|
|
179
|
-
medium: "medium";
|
|
180
|
-
high: "high";
|
|
181
|
-
"extra-high": "extra-high";
|
|
182
|
-
}>>;
|
|
183
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
184
|
-
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
185
|
-
mode: z.ZodLiteral<"append">;
|
|
186
|
-
content: z.ZodString;
|
|
187
|
-
}, z.core.$strip>]>>;
|
|
188
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
-
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
191
|
-
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
sessionId: z.ZodString;
|
|
193
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
194
|
-
fullName: z.ZodString;
|
|
195
|
-
originalName: z.ZodString;
|
|
196
|
-
serverName: z.ZodString;
|
|
197
|
-
description: z.ZodOptional<z.ZodString>;
|
|
198
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
199
|
-
exposureMode: z.ZodEnum<{
|
|
200
|
-
direct: "direct";
|
|
201
|
-
discovery: "discovery";
|
|
202
|
-
hidden: "hidden";
|
|
203
|
-
}>;
|
|
204
|
-
enabled: z.ZodBoolean;
|
|
205
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
206
|
-
discovery: "discovery";
|
|
207
|
-
toolset: "toolset";
|
|
208
|
-
}>>;
|
|
209
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
210
|
-
exposed: z.ZodBoolean;
|
|
211
|
-
}, z.core.$strip>>;
|
|
212
|
-
servers: z.ZodArray<z.ZodObject<{
|
|
213
|
-
name: z.ZodString;
|
|
214
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
215
|
-
type: z.ZodLiteral<"stdio">;
|
|
216
|
-
command: z.ZodString;
|
|
217
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
218
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
219
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
-
url: z.ZodString;
|
|
222
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
223
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
-
name: z.ZodString;
|
|
225
|
-
permission_policy: z.ZodEnum<{
|
|
226
|
-
always_allow: "always_allow";
|
|
227
|
-
always_ask: "always_ask";
|
|
228
|
-
always_deny: "always_deny";
|
|
229
|
-
}>;
|
|
230
|
-
}, z.core.$strip>>>;
|
|
231
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
type: z.ZodLiteral<"sse">;
|
|
233
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
-
url: z.ZodString;
|
|
235
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
|
-
name: z.ZodString;
|
|
238
|
-
permission_policy: z.ZodEnum<{
|
|
239
|
-
always_allow: "always_allow";
|
|
240
|
-
always_ask: "always_ask";
|
|
241
|
-
always_deny: "always_deny";
|
|
242
|
-
}>;
|
|
243
|
-
}, z.core.$strip>>>;
|
|
244
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
-
type: z.ZodLiteral<"http">;
|
|
246
|
-
}, z.core.$strip>], "type">;
|
|
247
|
-
exposureMode: z.ZodEnum<{
|
|
248
|
-
direct: "direct";
|
|
249
|
-
discovery: "discovery";
|
|
250
|
-
}>;
|
|
251
|
-
}, z.core.$strip>>;
|
|
252
|
-
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
253
|
-
fullName: z.ZodString;
|
|
254
|
-
originalName: z.ZodString;
|
|
255
|
-
serverName: z.ZodString;
|
|
256
|
-
description: z.ZodOptional<z.ZodString>;
|
|
257
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
258
|
-
exposureMode: z.ZodEnum<{
|
|
259
|
-
direct: "direct";
|
|
260
|
-
discovery: "discovery";
|
|
261
|
-
hidden: "hidden";
|
|
262
|
-
}>;
|
|
263
|
-
enabled: z.ZodBoolean;
|
|
264
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
265
|
-
discovery: "discovery";
|
|
266
|
-
toolset: "toolset";
|
|
267
|
-
}>>;
|
|
268
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
269
|
-
exposed: z.ZodBoolean;
|
|
270
|
-
}, z.core.$strip>>;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
-
kind: z.ZodLiteral<"canonical-model">;
|
|
274
|
-
model: z.ZodString;
|
|
275
|
-
}, z.core.$loose>;
|
|
276
|
-
type CanonicalModelSelection = z.infer<typeof CanonicalModelSelectionSchema>;
|
|
277
|
-
declare module '@makaio/framework/contracts' {
|
|
278
|
-
interface AgentSelectionKindMap {
|
|
279
|
-
'canonical-model': CanonicalModelSelection;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region core/contracts/src/canonical-model/schemas.d.ts
|
|
284
|
-
/**
|
|
285
|
-
* Resolved adapter selection produced by framework canonical-model resolution.
|
|
286
|
-
*
|
|
287
|
-
* Canonical-model resolution is intentionally limited to adapter/provider/model
|
|
288
|
-
* routing. Host-only virtual-model expansion happens at the higher-level
|
|
289
|
-
* agent-resolution seam.
|
|
290
|
-
*/
|
|
291
|
-
declare const CanonicalModelResolvedSelectionSchema: z.ZodObject<{
|
|
292
|
-
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
293
|
-
none: "none";
|
|
294
|
-
low: "low";
|
|
295
|
-
medium: "medium";
|
|
296
|
-
high: "high";
|
|
297
|
-
"extra-high": "extra-high";
|
|
298
|
-
}>>;
|
|
299
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
300
|
-
systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
301
|
-
mode: z.ZodLiteral<"append">;
|
|
302
|
-
content: z.ZodString;
|
|
303
|
-
}, z.core.$strip>]>>;
|
|
304
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
-
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
307
|
-
mcpSessionContext: z.ZodOptional<z.ZodObject<{
|
|
308
|
-
sessionId: z.ZodString;
|
|
309
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
310
|
-
fullName: z.ZodString;
|
|
311
|
-
originalName: z.ZodString;
|
|
312
|
-
serverName: z.ZodString;
|
|
313
|
-
description: z.ZodOptional<z.ZodString>;
|
|
314
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
315
|
-
exposureMode: z.ZodEnum<{
|
|
316
|
-
direct: "direct";
|
|
317
|
-
discovery: "discovery";
|
|
318
|
-
hidden: "hidden";
|
|
319
|
-
}>;
|
|
320
|
-
enabled: z.ZodBoolean;
|
|
321
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
322
|
-
discovery: "discovery";
|
|
323
|
-
toolset: "toolset";
|
|
324
|
-
}>>;
|
|
325
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
exposed: z.ZodBoolean;
|
|
327
|
-
}, z.core.$strip>>;
|
|
328
|
-
servers: z.ZodArray<z.ZodObject<{
|
|
329
|
-
name: z.ZodString;
|
|
330
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
331
|
-
type: z.ZodLiteral<"stdio">;
|
|
332
|
-
command: z.ZodString;
|
|
333
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
335
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
337
|
-
url: z.ZodString;
|
|
338
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
339
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
340
|
-
name: z.ZodString;
|
|
341
|
-
permission_policy: z.ZodEnum<{
|
|
342
|
-
always_allow: "always_allow";
|
|
343
|
-
always_ask: "always_ask";
|
|
344
|
-
always_deny: "always_deny";
|
|
345
|
-
}>;
|
|
346
|
-
}, z.core.$strip>>>;
|
|
347
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
-
type: z.ZodLiteral<"sse">;
|
|
349
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
-
url: z.ZodString;
|
|
351
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
352
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
353
|
-
name: z.ZodString;
|
|
354
|
-
permission_policy: z.ZodEnum<{
|
|
355
|
-
always_allow: "always_allow";
|
|
356
|
-
always_ask: "always_ask";
|
|
357
|
-
always_deny: "always_deny";
|
|
358
|
-
}>;
|
|
359
|
-
}, z.core.$strip>>>;
|
|
360
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
-
type: z.ZodLiteral<"http">;
|
|
362
|
-
}, z.core.$strip>], "type">;
|
|
363
|
-
exposureMode: z.ZodEnum<{
|
|
364
|
-
direct: "direct";
|
|
365
|
-
discovery: "discovery";
|
|
366
|
-
}>;
|
|
367
|
-
}, z.core.$strip>>;
|
|
368
|
-
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
369
|
-
fullName: z.ZodString;
|
|
370
|
-
originalName: z.ZodString;
|
|
371
|
-
serverName: z.ZodString;
|
|
372
|
-
description: z.ZodOptional<z.ZodString>;
|
|
373
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
374
|
-
exposureMode: z.ZodEnum<{
|
|
375
|
-
direct: "direct";
|
|
376
|
-
discovery: "discovery";
|
|
377
|
-
hidden: "hidden";
|
|
378
|
-
}>;
|
|
379
|
-
enabled: z.ZodBoolean;
|
|
380
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
381
|
-
discovery: "discovery";
|
|
382
|
-
toolset: "toolset";
|
|
383
|
-
}>>;
|
|
384
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
385
|
-
exposed: z.ZodBoolean;
|
|
386
|
-
}, z.core.$strip>>;
|
|
387
|
-
}, z.core.$strip>>;
|
|
388
|
-
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
|
-
adapterId: z.ZodOptional<z.ZodString>;
|
|
390
|
-
kind: z.ZodLiteral<"adapter">;
|
|
391
|
-
adapterName: z.ZodString;
|
|
392
|
-
providerConfigId: z.ZodString;
|
|
393
|
-
model: z.ZodString;
|
|
394
|
-
}, z.core.$loose>;
|
|
395
|
-
type CanonicalModelResolvedSelection = z.infer<typeof CanonicalModelResolvedSelectionSchema>;
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region core/contracts/src/canonical-model/namespace.d.ts
|
|
398
|
-
/** Typed subjects for canonical model bus operations. */
|
|
399
|
-
declare const CanonicalModelSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"canonicalModel", {
|
|
400
|
-
resolve: {
|
|
401
|
-
request: _$zod.ZodObject<{
|
|
402
|
-
parsed: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
403
|
-
kind: _$zod.ZodLiteral<"bare">;
|
|
404
|
-
model: _$zod.ZodString;
|
|
405
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
406
|
-
kind: _$zod.ZodLiteral<"qualified">;
|
|
407
|
-
segment1: _$zod.ZodString;
|
|
408
|
-
segment2: _$zod.ZodOptional<_$zod.ZodString>;
|
|
409
|
-
model: _$zod.ZodString;
|
|
410
|
-
}, _$zod_v4_core0.$strip>], "kind">;
|
|
411
|
-
context: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
412
|
-
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
413
|
-
projectId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
414
|
-
promptText: _$zod.ZodOptional<_$zod.ZodString>;
|
|
415
|
-
sessionContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
|
|
416
|
-
}, _$zod_v4_core0.$strip>>;
|
|
417
|
-
}, _$zod_v4_core0.$strip>;
|
|
418
|
-
response: _$zod.ZodObject<{
|
|
419
|
-
reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
420
|
-
none: "none";
|
|
421
|
-
low: "low";
|
|
422
|
-
medium: "medium";
|
|
423
|
-
high: "high";
|
|
424
|
-
"extra-high": "extra-high";
|
|
425
|
-
}>>;
|
|
426
|
-
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
427
|
-
systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
|
|
428
|
-
mode: _$zod.ZodLiteral<"append">;
|
|
429
|
-
content: _$zod.ZodString;
|
|
430
|
-
}, _$zod_v4_core0.$strip>]>>;
|
|
431
|
-
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
432
|
-
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
433
|
-
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
434
|
-
mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
435
|
-
sessionId: _$zod.ZodString;
|
|
436
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
437
|
-
fullName: _$zod.ZodString;
|
|
438
|
-
originalName: _$zod.ZodString;
|
|
439
|
-
serverName: _$zod.ZodString;
|
|
440
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
441
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
442
|
-
exposureMode: _$zod.ZodEnum<{
|
|
443
|
-
direct: "direct";
|
|
444
|
-
discovery: "discovery";
|
|
445
|
-
hidden: "hidden";
|
|
446
|
-
}>;
|
|
447
|
-
enabled: _$zod.ZodBoolean;
|
|
448
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
449
|
-
discovery: "discovery";
|
|
450
|
-
toolset: "toolset";
|
|
451
|
-
}>>;
|
|
452
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
453
|
-
exposed: _$zod.ZodBoolean;
|
|
454
|
-
}, _$zod_v4_core0.$strip>>;
|
|
455
|
-
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
456
|
-
name: _$zod.ZodString;
|
|
457
|
-
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
458
|
-
type: _$zod.ZodLiteral<"stdio">;
|
|
459
|
-
command: _$zod.ZodString;
|
|
460
|
-
args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
461
|
-
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
462
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
463
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
464
|
-
url: _$zod.ZodString;
|
|
465
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
466
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
467
|
-
name: _$zod.ZodString;
|
|
468
|
-
permission_policy: _$zod.ZodEnum<{
|
|
469
|
-
always_allow: "always_allow";
|
|
470
|
-
always_ask: "always_ask";
|
|
471
|
-
always_deny: "always_deny";
|
|
472
|
-
}>;
|
|
473
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
474
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
475
|
-
type: _$zod.ZodLiteral<"sse">;
|
|
476
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
477
|
-
url: _$zod.ZodString;
|
|
478
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
479
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
480
|
-
name: _$zod.ZodString;
|
|
481
|
-
permission_policy: _$zod.ZodEnum<{
|
|
482
|
-
always_allow: "always_allow";
|
|
483
|
-
always_ask: "always_ask";
|
|
484
|
-
always_deny: "always_deny";
|
|
485
|
-
}>;
|
|
486
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
487
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
488
|
-
type: _$zod.ZodLiteral<"http">;
|
|
489
|
-
}, _$zod_v4_core0.$strip>], "type">;
|
|
490
|
-
exposureMode: _$zod.ZodEnum<{
|
|
491
|
-
direct: "direct";
|
|
492
|
-
discovery: "discovery";
|
|
493
|
-
}>;
|
|
494
|
-
}, _$zod_v4_core0.$strip>>;
|
|
495
|
-
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
496
|
-
fullName: _$zod.ZodString;
|
|
497
|
-
originalName: _$zod.ZodString;
|
|
498
|
-
serverName: _$zod.ZodString;
|
|
499
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
500
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
501
|
-
exposureMode: _$zod.ZodEnum<{
|
|
502
|
-
direct: "direct";
|
|
503
|
-
discovery: "discovery";
|
|
504
|
-
hidden: "hidden";
|
|
505
|
-
}>;
|
|
506
|
-
enabled: _$zod.ZodBoolean;
|
|
507
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
508
|
-
discovery: "discovery";
|
|
509
|
-
toolset: "toolset";
|
|
510
|
-
}>>;
|
|
511
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
512
|
-
exposed: _$zod.ZodBoolean;
|
|
513
|
-
}, _$zod_v4_core0.$strip>>;
|
|
514
|
-
}, _$zod_v4_core0.$strip>>;
|
|
515
|
-
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
516
|
-
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
517
|
-
kind: _$zod.ZodLiteral<"adapter">;
|
|
518
|
-
adapterName: _$zod.ZodString;
|
|
519
|
-
providerConfigId: _$zod.ZodString;
|
|
520
|
-
model: _$zod.ZodString;
|
|
521
|
-
}, _$zod_v4_core0.$loose>;
|
|
522
|
-
};
|
|
523
|
-
}>, "canonicalModel">;
|
|
524
|
-
//#endregion
|
|
525
35
|
//#region core/contracts/src/agent/namespace.d.ts
|
|
526
36
|
declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
527
37
|
'user_message.sent': _$zod.ZodObject<{
|
|
@@ -765,9 +275,9 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
765
275
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
766
276
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
767
277
|
exposureMode: _$zod.ZodEnum<{
|
|
768
|
-
direct: "direct";
|
|
769
|
-
discovery: "discovery";
|
|
770
278
|
hidden: "hidden";
|
|
279
|
+
discovery: "discovery";
|
|
280
|
+
direct: "direct";
|
|
771
281
|
}>;
|
|
772
282
|
enabled: _$zod.ZodBoolean;
|
|
773
283
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -813,8 +323,8 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
813
323
|
type: _$zod.ZodLiteral<"http">;
|
|
814
324
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
815
325
|
exposureMode: _$zod.ZodEnum<{
|
|
816
|
-
direct: "direct";
|
|
817
326
|
discovery: "discovery";
|
|
327
|
+
direct: "direct";
|
|
818
328
|
}>;
|
|
819
329
|
}, _$zod_v4_core0.$strip>>;
|
|
820
330
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -824,9 +334,9 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
824
334
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
825
335
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
826
336
|
exposureMode: _$zod.ZodEnum<{
|
|
827
|
-
direct: "direct";
|
|
828
|
-
discovery: "discovery";
|
|
829
337
|
hidden: "hidden";
|
|
338
|
+
discovery: "discovery";
|
|
339
|
+
direct: "direct";
|
|
830
340
|
}>;
|
|
831
341
|
enabled: _$zod.ZodBoolean;
|
|
832
342
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -1255,8 +765,8 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
1255
765
|
cachedTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1256
766
|
percentage: _$zod.ZodNumber;
|
|
1257
767
|
level: _$zod.ZodEnum<{
|
|
1258
|
-
ok: "ok";
|
|
1259
768
|
warn: "warn";
|
|
769
|
+
ok: "ok";
|
|
1260
770
|
critical: "critical";
|
|
1261
771
|
}>;
|
|
1262
772
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -2050,9 +1560,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2050
1560
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2051
1561
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2052
1562
|
exposureMode: _$zod.ZodEnum<{
|
|
2053
|
-
direct: "direct";
|
|
2054
|
-
discovery: "discovery";
|
|
2055
1563
|
hidden: "hidden";
|
|
1564
|
+
discovery: "discovery";
|
|
1565
|
+
direct: "direct";
|
|
2056
1566
|
}>;
|
|
2057
1567
|
enabled: _$zod.ZodBoolean;
|
|
2058
1568
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -2098,8 +1608,8 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2098
1608
|
type: _$zod.ZodLiteral<"http">;
|
|
2099
1609
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
2100
1610
|
exposureMode: _$zod.ZodEnum<{
|
|
2101
|
-
direct: "direct";
|
|
2102
1611
|
discovery: "discovery";
|
|
1612
|
+
direct: "direct";
|
|
2103
1613
|
}>;
|
|
2104
1614
|
}, _$zod_v4_core0.$strip>>;
|
|
2105
1615
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -2109,9 +1619,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2109
1619
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2110
1620
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2111
1621
|
exposureMode: _$zod.ZodEnum<{
|
|
2112
|
-
direct: "direct";
|
|
2113
|
-
discovery: "discovery";
|
|
2114
1622
|
hidden: "hidden";
|
|
1623
|
+
discovery: "discovery";
|
|
1624
|
+
direct: "direct";
|
|
2115
1625
|
}>;
|
|
2116
1626
|
enabled: _$zod.ZodBoolean;
|
|
2117
1627
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -2540,8 +2050,8 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2540
2050
|
cachedTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2541
2051
|
percentage: _$zod.ZodNumber;
|
|
2542
2052
|
level: _$zod.ZodEnum<{
|
|
2543
|
-
ok: "ok";
|
|
2544
2053
|
warn: "warn";
|
|
2054
|
+
ok: "ok";
|
|
2545
2055
|
critical: "critical";
|
|
2546
2056
|
}>;
|
|
2547
2057
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -3362,9 +2872,9 @@ declare const AgentSchemas: {
|
|
|
3362
2872
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3363
2873
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
3364
2874
|
exposureMode: _$zod.ZodEnum<{
|
|
3365
|
-
direct: "direct";
|
|
3366
|
-
discovery: "discovery";
|
|
3367
2875
|
hidden: "hidden";
|
|
2876
|
+
discovery: "discovery";
|
|
2877
|
+
direct: "direct";
|
|
3368
2878
|
}>;
|
|
3369
2879
|
enabled: _$zod.ZodBoolean;
|
|
3370
2880
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -3410,8 +2920,8 @@ declare const AgentSchemas: {
|
|
|
3410
2920
|
type: _$zod.ZodLiteral<"http">;
|
|
3411
2921
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
3412
2922
|
exposureMode: _$zod.ZodEnum<{
|
|
3413
|
-
direct: "direct";
|
|
3414
2923
|
discovery: "discovery";
|
|
2924
|
+
direct: "direct";
|
|
3415
2925
|
}>;
|
|
3416
2926
|
}, _$zod_v4_core0.$strip>>;
|
|
3417
2927
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -3421,9 +2931,9 @@ declare const AgentSchemas: {
|
|
|
3421
2931
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3422
2932
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
3423
2933
|
exposureMode: _$zod.ZodEnum<{
|
|
3424
|
-
direct: "direct";
|
|
3425
|
-
discovery: "discovery";
|
|
3426
2934
|
hidden: "hidden";
|
|
2935
|
+
discovery: "discovery";
|
|
2936
|
+
direct: "direct";
|
|
3427
2937
|
}>;
|
|
3428
2938
|
enabled: _$zod.ZodBoolean;
|
|
3429
2939
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -3852,8 +3362,8 @@ declare const AgentSchemas: {
|
|
|
3852
3362
|
cachedTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3853
3363
|
percentage: _$zod.ZodNumber;
|
|
3854
3364
|
level: _$zod.ZodEnum<{
|
|
3855
|
-
ok: "ok";
|
|
3856
3365
|
warn: "warn";
|
|
3366
|
+
ok: "ok";
|
|
3857
3367
|
critical: "critical";
|
|
3858
3368
|
}>;
|
|
3859
3369
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -5151,9 +4661,9 @@ declare const ResolvedAgentConfigSchema: z.ZodObject<{
|
|
|
5151
4661
|
directTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5152
4662
|
discoveryTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5153
4663
|
toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
5154
|
-
direct: "direct";
|
|
5155
|
-
discovery: "discovery";
|
|
5156
4664
|
hidden: "hidden";
|
|
4665
|
+
discovery: "discovery";
|
|
4666
|
+
direct: "direct";
|
|
5157
4667
|
}>>>;
|
|
5158
4668
|
}, z.core.$strip>>;
|
|
5159
4669
|
}, z.core.$strip>;
|
|
@@ -5209,9 +4719,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5209
4719
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5210
4720
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
5211
4721
|
exposureMode: _$zod.ZodEnum<{
|
|
5212
|
-
direct: "direct";
|
|
5213
|
-
discovery: "discovery";
|
|
5214
4722
|
hidden: "hidden";
|
|
4723
|
+
discovery: "discovery";
|
|
4724
|
+
direct: "direct";
|
|
5215
4725
|
}>;
|
|
5216
4726
|
enabled: _$zod.ZodBoolean;
|
|
5217
4727
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -5257,8 +4767,8 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5257
4767
|
type: _$zod.ZodLiteral<"http">;
|
|
5258
4768
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
5259
4769
|
exposureMode: _$zod.ZodEnum<{
|
|
5260
|
-
direct: "direct";
|
|
5261
4770
|
discovery: "discovery";
|
|
4771
|
+
direct: "direct";
|
|
5262
4772
|
}>;
|
|
5263
4773
|
}, _$zod_v4_core0.$strip>>;
|
|
5264
4774
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -5268,9 +4778,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5268
4778
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5269
4779
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
5270
4780
|
exposureMode: _$zod.ZodEnum<{
|
|
5271
|
-
direct: "direct";
|
|
5272
|
-
discovery: "discovery";
|
|
5273
4781
|
hidden: "hidden";
|
|
4782
|
+
discovery: "discovery";
|
|
4783
|
+
direct: "direct";
|
|
5274
4784
|
}>;
|
|
5275
4785
|
enabled: _$zod.ZodBoolean;
|
|
5276
4786
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -5282,6 +4792,7 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5282
4792
|
}, _$zod_v4_core0.$strip>>;
|
|
5283
4793
|
}, _$zod_v4_core0.$strip>>;
|
|
5284
4794
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
4795
|
+
adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
5285
4796
|
}, _$zod_v4_core0.$loose>;
|
|
5286
4797
|
context: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
5287
4798
|
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -5325,9 +4836,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5325
4836
|
directTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
5326
4837
|
discoveryTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
5327
4838
|
toolExposure: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
|
|
5328
|
-
direct: "direct";
|
|
5329
|
-
discovery: "discovery";
|
|
5330
4839
|
hidden: "hidden";
|
|
4840
|
+
discovery: "discovery";
|
|
4841
|
+
direct: "direct";
|
|
5331
4842
|
}>>>;
|
|
5332
4843
|
}, _$zod_v4_core0.$strip>>;
|
|
5333
4844
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -5906,8 +5417,8 @@ declare const VCSCheckRunSchema: z.ZodObject<{
|
|
|
5906
5417
|
conclusion: z.ZodNullable<z.ZodEnum<{
|
|
5907
5418
|
success: "success";
|
|
5908
5419
|
cancelled: "cancelled";
|
|
5909
|
-
neutral: "neutral";
|
|
5910
5420
|
skipped: "skipped";
|
|
5421
|
+
neutral: "neutral";
|
|
5911
5422
|
failure: "failure";
|
|
5912
5423
|
timed_out: "timed_out";
|
|
5913
5424
|
action_required: "action_required";
|
|
@@ -6346,8 +5857,8 @@ declare const VCSSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
6346
5857
|
conclusion: _$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6347
5858
|
success: "success";
|
|
6348
5859
|
cancelled: "cancelled";
|
|
6349
|
-
neutral: "neutral";
|
|
6350
5860
|
skipped: "skipped";
|
|
5861
|
+
neutral: "neutral";
|
|
6351
5862
|
failure: "failure";
|
|
6352
5863
|
timed_out: "timed_out";
|
|
6353
5864
|
action_required: "action_required";
|
|
@@ -6934,6 +6445,12 @@ declare const ReviewSchemas: {
|
|
|
6934
6445
|
"cli-output": "cli-output";
|
|
6935
6446
|
}>;
|
|
6936
6447
|
id: z.ZodString;
|
|
6448
|
+
severity: z.ZodEnum<{
|
|
6449
|
+
critical: "critical";
|
|
6450
|
+
major: "major";
|
|
6451
|
+
minor: "minor";
|
|
6452
|
+
nitpick: "nitpick";
|
|
6453
|
+
}>;
|
|
6937
6454
|
status: z.ZodEnum<{
|
|
6938
6455
|
verified: "verified";
|
|
6939
6456
|
open: "open";
|
|
@@ -6941,12 +6458,6 @@ declare const ReviewSchemas: {
|
|
|
6941
6458
|
dismissed: "dismissed";
|
|
6942
6459
|
deferred: "deferred";
|
|
6943
6460
|
}>;
|
|
6944
|
-
severity: z.ZodEnum<{
|
|
6945
|
-
critical: "critical";
|
|
6946
|
-
major: "major";
|
|
6947
|
-
minor: "minor";
|
|
6948
|
-
nitpick: "nitpick";
|
|
6949
|
-
}>;
|
|
6950
6461
|
sourceId: z.ZodString;
|
|
6951
6462
|
reviewer: z.ZodString;
|
|
6952
6463
|
threadId: z.ZodNullable<z.ZodString>;
|
|
@@ -7609,6 +7120,12 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7609
7120
|
"cli-output": "cli-output";
|
|
7610
7121
|
}>;
|
|
7611
7122
|
id: _$zod.ZodString;
|
|
7123
|
+
severity: _$zod.ZodEnum<{
|
|
7124
|
+
critical: "critical";
|
|
7125
|
+
major: "major";
|
|
7126
|
+
minor: "minor";
|
|
7127
|
+
nitpick: "nitpick";
|
|
7128
|
+
}>;
|
|
7612
7129
|
status: _$zod.ZodEnum<{
|
|
7613
7130
|
verified: "verified";
|
|
7614
7131
|
open: "open";
|
|
@@ -7616,12 +7133,6 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7616
7133
|
dismissed: "dismissed";
|
|
7617
7134
|
deferred: "deferred";
|
|
7618
7135
|
}>;
|
|
7619
|
-
severity: _$zod.ZodEnum<{
|
|
7620
|
-
critical: "critical";
|
|
7621
|
-
major: "major";
|
|
7622
|
-
minor: "minor";
|
|
7623
|
-
nitpick: "nitpick";
|
|
7624
|
-
}>;
|
|
7625
7136
|
sourceId: _$zod.ZodString;
|
|
7626
7137
|
reviewer: _$zod.ZodString;
|
|
7627
7138
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -8059,6 +7570,12 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8059
7570
|
"cli-output": "cli-output";
|
|
8060
7571
|
}>;
|
|
8061
7572
|
id: _$zod.ZodString;
|
|
7573
|
+
severity: _$zod.ZodEnum<{
|
|
7574
|
+
critical: "critical";
|
|
7575
|
+
major: "major";
|
|
7576
|
+
minor: "minor";
|
|
7577
|
+
nitpick: "nitpick";
|
|
7578
|
+
}>;
|
|
8062
7579
|
status: _$zod.ZodEnum<{
|
|
8063
7580
|
verified: "verified";
|
|
8064
7581
|
open: "open";
|
|
@@ -8066,12 +7583,6 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8066
7583
|
dismissed: "dismissed";
|
|
8067
7584
|
deferred: "deferred";
|
|
8068
7585
|
}>;
|
|
8069
|
-
severity: _$zod.ZodEnum<{
|
|
8070
|
-
critical: "critical";
|
|
8071
|
-
major: "major";
|
|
8072
|
-
minor: "minor";
|
|
8073
|
-
nitpick: "nitpick";
|
|
8074
|
-
}>;
|
|
8075
7586
|
sourceId: _$zod.ZodString;
|
|
8076
7587
|
reviewer: _$zod.ZodString;
|
|
8077
7588
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -10953,10 +10464,10 @@ type WorkflowSourceLocation = z.infer<typeof WorkflowSourceLocationSchema>;
|
|
|
10953
10464
|
* - `sequence` — ordered list of child nodes (the structural container)
|
|
10954
10465
|
*/
|
|
10955
10466
|
declare const WorkflowNodeTypeSchema: z.ZodEnum<{
|
|
10956
|
-
sequence: "sequence";
|
|
10957
10467
|
station: "station";
|
|
10958
10468
|
"delegate-agent": "delegate-agent";
|
|
10959
10469
|
"delegate-role": "delegate-role";
|
|
10470
|
+
sequence: "sequence";
|
|
10960
10471
|
parallel: "parallel";
|
|
10961
10472
|
gate: "gate";
|
|
10962
10473
|
iterate: "iterate";
|
|
@@ -11068,6 +10579,10 @@ declare const WorkflowStationNodeSchema: z.ZodObject<{
|
|
|
11068
10579
|
role: z.ZodOptional<z.ZodString>;
|
|
11069
10580
|
outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
11070
10581
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
10582
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
10583
|
+
tool: "tool";
|
|
10584
|
+
turn: "turn";
|
|
10585
|
+
}>>;
|
|
11071
10586
|
}, z.core.$strip>;
|
|
11072
10587
|
type WorkflowStationNode = z.infer<typeof WorkflowStationNodeSchema>;
|
|
11073
10588
|
/**
|
|
@@ -11120,6 +10635,10 @@ declare const WorkflowDelegateRoleNodeSchema: z.ZodObject<{
|
|
|
11120
10635
|
prompt: z.ZodString;
|
|
11121
10636
|
outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
11122
10637
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
10638
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
10639
|
+
tool: "tool";
|
|
10640
|
+
turn: "turn";
|
|
10641
|
+
}>>;
|
|
11123
10642
|
}, z.core.$strip>;
|
|
11124
10643
|
type WorkflowDelegateRoleNode = z.infer<typeof WorkflowDelegateRoleNodeSchema>;
|
|
11125
10644
|
/**
|
|
@@ -11482,8 +11001,8 @@ declare const ExecutionStatusSchema: z.ZodEnum<{
|
|
|
11482
11001
|
completed: "completed";
|
|
11483
11002
|
cancelled: "cancelled";
|
|
11484
11003
|
failed: "failed";
|
|
11485
|
-
paused: "paused";
|
|
11486
11004
|
running: "running";
|
|
11005
|
+
paused: "paused";
|
|
11487
11006
|
}>;
|
|
11488
11007
|
type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
|
|
11489
11008
|
/**
|
|
@@ -11498,8 +11017,8 @@ declare const WorkflowExecutionSchema: z.ZodObject<{
|
|
|
11498
11017
|
completed: "completed";
|
|
11499
11018
|
cancelled: "cancelled";
|
|
11500
11019
|
failed: "failed";
|
|
11501
|
-
paused: "paused";
|
|
11502
11020
|
running: "running";
|
|
11021
|
+
paused: "paused";
|
|
11503
11022
|
}>;
|
|
11504
11023
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
11505
11024
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -11538,10 +11057,10 @@ declare const WorkflowFrameStateSchema: z.ZodObject<{
|
|
|
11538
11057
|
frameId: z.ZodString;
|
|
11539
11058
|
nodeId: z.ZodString;
|
|
11540
11059
|
nodeType: z.ZodEnum<{
|
|
11541
|
-
sequence: "sequence";
|
|
11542
11060
|
station: "station";
|
|
11543
11061
|
"delegate-agent": "delegate-agent";
|
|
11544
11062
|
"delegate-role": "delegate-role";
|
|
11063
|
+
sequence: "sequence";
|
|
11545
11064
|
parallel: "parallel";
|
|
11546
11065
|
gate: "gate";
|
|
11547
11066
|
iterate: "iterate";
|
|
@@ -11555,8 +11074,8 @@ declare const WorkflowFrameStateSchema: z.ZodObject<{
|
|
|
11555
11074
|
cancelled: "cancelled";
|
|
11556
11075
|
failed: "failed";
|
|
11557
11076
|
running: "running";
|
|
11558
|
-
waiting: "waiting";
|
|
11559
11077
|
skipped: "skipped";
|
|
11078
|
+
waiting: "waiting";
|
|
11560
11079
|
}>;
|
|
11561
11080
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
11562
11081
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11571,8 +11090,8 @@ type WorkflowFrameState = z.infer<typeof WorkflowFrameStateSchema>;
|
|
|
11571
11090
|
declare const WorkflowGateStatusSchema: z.ZodEnum<{
|
|
11572
11091
|
cancelled: "cancelled";
|
|
11573
11092
|
rejected: "rejected";
|
|
11574
|
-
waiting: "waiting";
|
|
11575
11093
|
resumed: "resumed";
|
|
11094
|
+
waiting: "waiting";
|
|
11576
11095
|
"timed-out": "timed-out";
|
|
11577
11096
|
}>;
|
|
11578
11097
|
type WorkflowGateStatus = z.infer<typeof WorkflowGateStatusSchema>;
|
|
@@ -11592,8 +11111,8 @@ declare const WorkflowGateInstanceSchema: z.ZodObject<{
|
|
|
11592
11111
|
status: z.ZodEnum<{
|
|
11593
11112
|
cancelled: "cancelled";
|
|
11594
11113
|
rejected: "rejected";
|
|
11595
|
-
waiting: "waiting";
|
|
11596
11114
|
resumed: "resumed";
|
|
11115
|
+
waiting: "waiting";
|
|
11597
11116
|
"timed-out": "timed-out";
|
|
11598
11117
|
}>;
|
|
11599
11118
|
autoAction: z.ZodEnum<{
|
|
@@ -11642,6 +11161,10 @@ declare const WorkflowResolvedRoleSchema: z.ZodObject<{
|
|
|
11642
11161
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11643
11162
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11644
11163
|
}, z.core.$strip>>;
|
|
11164
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
11165
|
+
tool: "tool";
|
|
11166
|
+
turn: "turn";
|
|
11167
|
+
}>>;
|
|
11645
11168
|
}, z.core.$strip>;
|
|
11646
11169
|
type WorkflowResolvedRole = z.infer<typeof WorkflowResolvedRoleSchema>;
|
|
11647
11170
|
/**
|
|
@@ -11679,6 +11202,10 @@ declare const WorkflowResolvedAgentSchema: z.ZodObject<{
|
|
|
11679
11202
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11680
11203
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11681
11204
|
}, z.core.$strip>>;
|
|
11205
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
11206
|
+
tool: "tool";
|
|
11207
|
+
turn: "turn";
|
|
11208
|
+
}>>;
|
|
11682
11209
|
}, z.core.$strip>;
|
|
11683
11210
|
type WorkflowResolvedAgent = WorkflowResolvedRole;
|
|
11684
11211
|
/**
|
|
@@ -11744,8 +11271,8 @@ declare const ExecutionListQuerySchema: z.ZodObject<{
|
|
|
11744
11271
|
completed: "completed";
|
|
11745
11272
|
cancelled: "cancelled";
|
|
11746
11273
|
failed: "failed";
|
|
11747
|
-
paused: "paused";
|
|
11748
11274
|
running: "running";
|
|
11275
|
+
paused: "paused";
|
|
11749
11276
|
}>>;
|
|
11750
11277
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
11751
11278
|
kind: z.ZodString;
|
|
@@ -11769,8 +11296,8 @@ declare const GateInstanceListQuerySchema: z.ZodObject<{
|
|
|
11769
11296
|
status: z.ZodOptional<z.ZodEnum<{
|
|
11770
11297
|
cancelled: "cancelled";
|
|
11771
11298
|
rejected: "rejected";
|
|
11772
|
-
waiting: "waiting";
|
|
11773
11299
|
resumed: "resumed";
|
|
11300
|
+
waiting: "waiting";
|
|
11774
11301
|
"timed-out": "timed-out";
|
|
11775
11302
|
}>>;
|
|
11776
11303
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -11973,6 +11500,10 @@ declare const StepRunConfigSchema: z.ZodObject<{
|
|
|
11973
11500
|
role: z.ZodOptional<z.ZodString>;
|
|
11974
11501
|
outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
11975
11502
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
11503
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
11504
|
+
tool: "tool";
|
|
11505
|
+
turn: "turn";
|
|
11506
|
+
}>>;
|
|
11976
11507
|
}, z.core.$strip>;
|
|
11977
11508
|
resolvedInputs: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
11978
11509
|
busUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -13037,8 +12568,8 @@ declare const WorkflowSchemas: {
|
|
|
13037
12568
|
completed: "completed";
|
|
13038
12569
|
cancelled: "cancelled";
|
|
13039
12570
|
failed: "failed";
|
|
13040
|
-
paused: "paused";
|
|
13041
12571
|
running: "running";
|
|
12572
|
+
paused: "paused";
|
|
13042
12573
|
}>;
|
|
13043
12574
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
13044
12575
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -13094,8 +12625,8 @@ declare const WorkflowSchemas: {
|
|
|
13094
12625
|
completed: "completed";
|
|
13095
12626
|
cancelled: "cancelled";
|
|
13096
12627
|
failed: "failed";
|
|
13097
|
-
paused: "paused";
|
|
13098
12628
|
running: "running";
|
|
12629
|
+
paused: "paused";
|
|
13099
12630
|
}>>;
|
|
13100
12631
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
13101
12632
|
kind: z.ZodString;
|
|
@@ -13117,8 +12648,8 @@ declare const WorkflowSchemas: {
|
|
|
13117
12648
|
completed: "completed";
|
|
13118
12649
|
cancelled: "cancelled";
|
|
13119
12650
|
failed: "failed";
|
|
13120
|
-
paused: "paused";
|
|
13121
12651
|
running: "running";
|
|
12652
|
+
paused: "paused";
|
|
13122
12653
|
}>;
|
|
13123
12654
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
13124
12655
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -13201,8 +12732,8 @@ declare const WorkflowSchemas: {
|
|
|
13201
12732
|
status: z.ZodOptional<z.ZodEnum<{
|
|
13202
12733
|
cancelled: "cancelled";
|
|
13203
12734
|
rejected: "rejected";
|
|
13204
|
-
waiting: "waiting";
|
|
13205
12735
|
resumed: "resumed";
|
|
12736
|
+
waiting: "waiting";
|
|
13206
12737
|
"timed-out": "timed-out";
|
|
13207
12738
|
}>>;
|
|
13208
12739
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -13217,8 +12748,8 @@ declare const WorkflowSchemas: {
|
|
|
13217
12748
|
status: z.ZodEnum<{
|
|
13218
12749
|
cancelled: "cancelled";
|
|
13219
12750
|
rejected: "rejected";
|
|
13220
|
-
waiting: "waiting";
|
|
13221
12751
|
resumed: "resumed";
|
|
12752
|
+
waiting: "waiting";
|
|
13222
12753
|
"timed-out": "timed-out";
|
|
13223
12754
|
}>;
|
|
13224
12755
|
autoAction: z.ZodEnum<{
|
|
@@ -13295,10 +12826,10 @@ declare const WorkflowSchemas: {
|
|
|
13295
12826
|
frameId: z.ZodString;
|
|
13296
12827
|
nodeId: z.ZodString;
|
|
13297
12828
|
nodeType: z.ZodEnum<{
|
|
13298
|
-
sequence: "sequence";
|
|
13299
12829
|
station: "station";
|
|
13300
12830
|
"delegate-agent": "delegate-agent";
|
|
13301
12831
|
"delegate-role": "delegate-role";
|
|
12832
|
+
sequence: "sequence";
|
|
13302
12833
|
parallel: "parallel";
|
|
13303
12834
|
gate: "gate";
|
|
13304
12835
|
iterate: "iterate";
|
|
@@ -13312,8 +12843,8 @@ declare const WorkflowSchemas: {
|
|
|
13312
12843
|
cancelled: "cancelled";
|
|
13313
12844
|
failed: "failed";
|
|
13314
12845
|
running: "running";
|
|
13315
|
-
waiting: "waiting";
|
|
13316
12846
|
skipped: "skipped";
|
|
12847
|
+
waiting: "waiting";
|
|
13317
12848
|
}>;
|
|
13318
12849
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
13319
12850
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13407,6 +12938,10 @@ declare const WorkflowSchemas: {
|
|
|
13407
12938
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13408
12939
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13409
12940
|
}, z.core.$strip>>;
|
|
12941
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
12942
|
+
tool: "tool";
|
|
12943
|
+
turn: "turn";
|
|
12944
|
+
}>>;
|
|
13410
12945
|
}, z.core.$strip>;
|
|
13411
12946
|
};
|
|
13412
12947
|
/**
|
|
@@ -13444,6 +12979,10 @@ declare const WorkflowSchemas: {
|
|
|
13444
12979
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13445
12980
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13446
12981
|
}, z.core.$strip>>;
|
|
12982
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
12983
|
+
tool: "tool";
|
|
12984
|
+
turn: "turn";
|
|
12985
|
+
}>>;
|
|
13447
12986
|
}, z.core.$strip>;
|
|
13448
12987
|
};
|
|
13449
12988
|
/**
|
|
@@ -13872,10 +13411,10 @@ declare const WorkflowSchemas: {
|
|
|
13872
13411
|
frameId: z.ZodString;
|
|
13873
13412
|
nodeId: z.ZodString;
|
|
13874
13413
|
nodeType: z.ZodEnum<{
|
|
13875
|
-
sequence: "sequence";
|
|
13876
13414
|
station: "station";
|
|
13877
13415
|
"delegate-agent": "delegate-agent";
|
|
13878
13416
|
"delegate-role": "delegate-role";
|
|
13417
|
+
sequence: "sequence";
|
|
13879
13418
|
parallel: "parallel";
|
|
13880
13419
|
gate: "gate";
|
|
13881
13420
|
iterate: "iterate";
|
|
@@ -14001,8 +13540,8 @@ declare const WorkflowSchemas: {
|
|
|
14001
13540
|
completed: "completed";
|
|
14002
13541
|
cancelled: "cancelled";
|
|
14003
13542
|
failed: "failed";
|
|
14004
|
-
paused: "paused";
|
|
14005
13543
|
running: "running";
|
|
13544
|
+
paused: "paused";
|
|
14006
13545
|
}>;
|
|
14007
13546
|
startedAt: z.ZodNumber;
|
|
14008
13547
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -14029,8 +13568,8 @@ declare const WorkflowSchemas: {
|
|
|
14029
13568
|
completed: "completed";
|
|
14030
13569
|
cancelled: "cancelled";
|
|
14031
13570
|
failed: "failed";
|
|
14032
|
-
paused: "paused";
|
|
14033
13571
|
running: "running";
|
|
13572
|
+
paused: "paused";
|
|
14034
13573
|
}>>;
|
|
14035
13574
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
14036
13575
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -14045,8 +13584,8 @@ declare const WorkflowSchemas: {
|
|
|
14045
13584
|
completed: "completed";
|
|
14046
13585
|
cancelled: "cancelled";
|
|
14047
13586
|
failed: "failed";
|
|
14048
|
-
paused: "paused";
|
|
14049
13587
|
running: "running";
|
|
13588
|
+
paused: "paused";
|
|
14050
13589
|
}>;
|
|
14051
13590
|
startedAt: z.ZodNumber;
|
|
14052
13591
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -14756,8 +14295,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14756
14295
|
completed: "completed";
|
|
14757
14296
|
cancelled: "cancelled";
|
|
14758
14297
|
failed: "failed";
|
|
14759
|
-
paused: "paused";
|
|
14760
14298
|
running: "running";
|
|
14299
|
+
paused: "paused";
|
|
14761
14300
|
}>;
|
|
14762
14301
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
14763
14302
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -14813,8 +14352,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14813
14352
|
completed: "completed";
|
|
14814
14353
|
cancelled: "cancelled";
|
|
14815
14354
|
failed: "failed";
|
|
14816
|
-
paused: "paused";
|
|
14817
14355
|
running: "running";
|
|
14356
|
+
paused: "paused";
|
|
14818
14357
|
}>>;
|
|
14819
14358
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
14820
14359
|
kind: z.ZodString;
|
|
@@ -14836,8 +14375,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14836
14375
|
completed: "completed";
|
|
14837
14376
|
cancelled: "cancelled";
|
|
14838
14377
|
failed: "failed";
|
|
14839
|
-
paused: "paused";
|
|
14840
14378
|
running: "running";
|
|
14379
|
+
paused: "paused";
|
|
14841
14380
|
}>;
|
|
14842
14381
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
14843
14382
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -14920,8 +14459,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14920
14459
|
status: z.ZodOptional<z.ZodEnum<{
|
|
14921
14460
|
cancelled: "cancelled";
|
|
14922
14461
|
rejected: "rejected";
|
|
14923
|
-
waiting: "waiting";
|
|
14924
14462
|
resumed: "resumed";
|
|
14463
|
+
waiting: "waiting";
|
|
14925
14464
|
"timed-out": "timed-out";
|
|
14926
14465
|
}>>;
|
|
14927
14466
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -14936,8 +14475,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14936
14475
|
status: z.ZodEnum<{
|
|
14937
14476
|
cancelled: "cancelled";
|
|
14938
14477
|
rejected: "rejected";
|
|
14939
|
-
waiting: "waiting";
|
|
14940
14478
|
resumed: "resumed";
|
|
14479
|
+
waiting: "waiting";
|
|
14941
14480
|
"timed-out": "timed-out";
|
|
14942
14481
|
}>;
|
|
14943
14482
|
autoAction: z.ZodEnum<{
|
|
@@ -15014,10 +14553,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15014
14553
|
frameId: z.ZodString;
|
|
15015
14554
|
nodeId: z.ZodString;
|
|
15016
14555
|
nodeType: z.ZodEnum<{
|
|
15017
|
-
sequence: "sequence";
|
|
15018
14556
|
station: "station";
|
|
15019
14557
|
"delegate-agent": "delegate-agent";
|
|
15020
14558
|
"delegate-role": "delegate-role";
|
|
14559
|
+
sequence: "sequence";
|
|
15021
14560
|
parallel: "parallel";
|
|
15022
14561
|
gate: "gate";
|
|
15023
14562
|
iterate: "iterate";
|
|
@@ -15031,8 +14570,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15031
14570
|
cancelled: "cancelled";
|
|
15032
14571
|
failed: "failed";
|
|
15033
14572
|
running: "running";
|
|
15034
|
-
waiting: "waiting";
|
|
15035
14573
|
skipped: "skipped";
|
|
14574
|
+
waiting: "waiting";
|
|
15036
14575
|
}>;
|
|
15037
14576
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
15038
14577
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15126,6 +14665,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15126
14665
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15127
14666
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15128
14667
|
}, z.core.$strip>>;
|
|
14668
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
14669
|
+
tool: "tool";
|
|
14670
|
+
turn: "turn";
|
|
14671
|
+
}>>;
|
|
15129
14672
|
}, z.core.$strip>;
|
|
15130
14673
|
};
|
|
15131
14674
|
/**
|
|
@@ -15163,6 +14706,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15163
14706
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15164
14707
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15165
14708
|
}, z.core.$strip>>;
|
|
14709
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
14710
|
+
tool: "tool";
|
|
14711
|
+
turn: "turn";
|
|
14712
|
+
}>>;
|
|
15166
14713
|
}, z.core.$strip>;
|
|
15167
14714
|
};
|
|
15168
14715
|
/**
|
|
@@ -15591,10 +15138,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15591
15138
|
frameId: z.ZodString;
|
|
15592
15139
|
nodeId: z.ZodString;
|
|
15593
15140
|
nodeType: z.ZodEnum<{
|
|
15594
|
-
sequence: "sequence";
|
|
15595
15141
|
station: "station";
|
|
15596
15142
|
"delegate-agent": "delegate-agent";
|
|
15597
15143
|
"delegate-role": "delegate-role";
|
|
15144
|
+
sequence: "sequence";
|
|
15598
15145
|
parallel: "parallel";
|
|
15599
15146
|
gate: "gate";
|
|
15600
15147
|
iterate: "iterate";
|
|
@@ -15720,8 +15267,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15720
15267
|
completed: "completed";
|
|
15721
15268
|
cancelled: "cancelled";
|
|
15722
15269
|
failed: "failed";
|
|
15723
|
-
paused: "paused";
|
|
15724
15270
|
running: "running";
|
|
15271
|
+
paused: "paused";
|
|
15725
15272
|
}>;
|
|
15726
15273
|
startedAt: z.ZodNumber;
|
|
15727
15274
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15748,8 +15295,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15748
15295
|
completed: "completed";
|
|
15749
15296
|
cancelled: "cancelled";
|
|
15750
15297
|
failed: "failed";
|
|
15751
|
-
paused: "paused";
|
|
15752
15298
|
running: "running";
|
|
15299
|
+
paused: "paused";
|
|
15753
15300
|
}>>;
|
|
15754
15301
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
15755
15302
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15764,8 +15311,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15764
15311
|
completed: "completed";
|
|
15765
15312
|
cancelled: "cancelled";
|
|
15766
15313
|
failed: "failed";
|
|
15767
|
-
paused: "paused";
|
|
15768
15314
|
running: "running";
|
|
15315
|
+
paused: "paused";
|
|
15769
15316
|
}>;
|
|
15770
15317
|
startedAt: z.ZodNumber;
|
|
15771
15318
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16475,8 +16022,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16475
16022
|
completed: "completed";
|
|
16476
16023
|
cancelled: "cancelled";
|
|
16477
16024
|
failed: "failed";
|
|
16478
|
-
paused: "paused";
|
|
16479
16025
|
running: "running";
|
|
16026
|
+
paused: "paused";
|
|
16480
16027
|
}>;
|
|
16481
16028
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
16482
16029
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -16532,8 +16079,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16532
16079
|
completed: "completed";
|
|
16533
16080
|
cancelled: "cancelled";
|
|
16534
16081
|
failed: "failed";
|
|
16535
|
-
paused: "paused";
|
|
16536
16082
|
running: "running";
|
|
16083
|
+
paused: "paused";
|
|
16537
16084
|
}>>;
|
|
16538
16085
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
16539
16086
|
kind: z.ZodString;
|
|
@@ -16555,8 +16102,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16555
16102
|
completed: "completed";
|
|
16556
16103
|
cancelled: "cancelled";
|
|
16557
16104
|
failed: "failed";
|
|
16558
|
-
paused: "paused";
|
|
16559
16105
|
running: "running";
|
|
16106
|
+
paused: "paused";
|
|
16560
16107
|
}>;
|
|
16561
16108
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
16562
16109
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -16639,8 +16186,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16639
16186
|
status: z.ZodOptional<z.ZodEnum<{
|
|
16640
16187
|
cancelled: "cancelled";
|
|
16641
16188
|
rejected: "rejected";
|
|
16642
|
-
waiting: "waiting";
|
|
16643
16189
|
resumed: "resumed";
|
|
16190
|
+
waiting: "waiting";
|
|
16644
16191
|
"timed-out": "timed-out";
|
|
16645
16192
|
}>>;
|
|
16646
16193
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -16655,8 +16202,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16655
16202
|
status: z.ZodEnum<{
|
|
16656
16203
|
cancelled: "cancelled";
|
|
16657
16204
|
rejected: "rejected";
|
|
16658
|
-
waiting: "waiting";
|
|
16659
16205
|
resumed: "resumed";
|
|
16206
|
+
waiting: "waiting";
|
|
16660
16207
|
"timed-out": "timed-out";
|
|
16661
16208
|
}>;
|
|
16662
16209
|
autoAction: z.ZodEnum<{
|
|
@@ -16733,10 +16280,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16733
16280
|
frameId: z.ZodString;
|
|
16734
16281
|
nodeId: z.ZodString;
|
|
16735
16282
|
nodeType: z.ZodEnum<{
|
|
16736
|
-
sequence: "sequence";
|
|
16737
16283
|
station: "station";
|
|
16738
16284
|
"delegate-agent": "delegate-agent";
|
|
16739
16285
|
"delegate-role": "delegate-role";
|
|
16286
|
+
sequence: "sequence";
|
|
16740
16287
|
parallel: "parallel";
|
|
16741
16288
|
gate: "gate";
|
|
16742
16289
|
iterate: "iterate";
|
|
@@ -16750,8 +16297,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16750
16297
|
cancelled: "cancelled";
|
|
16751
16298
|
failed: "failed";
|
|
16752
16299
|
running: "running";
|
|
16753
|
-
waiting: "waiting";
|
|
16754
16300
|
skipped: "skipped";
|
|
16301
|
+
waiting: "waiting";
|
|
16755
16302
|
}>;
|
|
16756
16303
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
16757
16304
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16845,6 +16392,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16845
16392
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16846
16393
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16847
16394
|
}, z.core.$strip>>;
|
|
16395
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
16396
|
+
tool: "tool";
|
|
16397
|
+
turn: "turn";
|
|
16398
|
+
}>>;
|
|
16848
16399
|
}, z.core.$strip>;
|
|
16849
16400
|
};
|
|
16850
16401
|
/**
|
|
@@ -16882,6 +16433,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16882
16433
|
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16883
16434
|
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16884
16435
|
}, z.core.$strip>>;
|
|
16436
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
16437
|
+
tool: "tool";
|
|
16438
|
+
turn: "turn";
|
|
16439
|
+
}>>;
|
|
16885
16440
|
}, z.core.$strip>;
|
|
16886
16441
|
};
|
|
16887
16442
|
/**
|
|
@@ -17310,10 +16865,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17310
16865
|
frameId: z.ZodString;
|
|
17311
16866
|
nodeId: z.ZodString;
|
|
17312
16867
|
nodeType: z.ZodEnum<{
|
|
17313
|
-
sequence: "sequence";
|
|
17314
16868
|
station: "station";
|
|
17315
16869
|
"delegate-agent": "delegate-agent";
|
|
17316
16870
|
"delegate-role": "delegate-role";
|
|
16871
|
+
sequence: "sequence";
|
|
17317
16872
|
parallel: "parallel";
|
|
17318
16873
|
gate: "gate";
|
|
17319
16874
|
iterate: "iterate";
|
|
@@ -17439,8 +16994,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17439
16994
|
completed: "completed";
|
|
17440
16995
|
cancelled: "cancelled";
|
|
17441
16996
|
failed: "failed";
|
|
17442
|
-
paused: "paused";
|
|
17443
16997
|
running: "running";
|
|
16998
|
+
paused: "paused";
|
|
17444
16999
|
}>;
|
|
17445
17000
|
startedAt: z.ZodNumber;
|
|
17446
17001
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -17467,8 +17022,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17467
17022
|
completed: "completed";
|
|
17468
17023
|
cancelled: "cancelled";
|
|
17469
17024
|
failed: "failed";
|
|
17470
|
-
paused: "paused";
|
|
17471
17025
|
running: "running";
|
|
17026
|
+
paused: "paused";
|
|
17472
17027
|
}>>;
|
|
17473
17028
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
17474
17029
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -17483,8 +17038,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17483
17038
|
completed: "completed";
|
|
17484
17039
|
cancelled: "cancelled";
|
|
17485
17040
|
failed: "failed";
|
|
17486
|
-
paused: "paused";
|
|
17487
17041
|
running: "running";
|
|
17042
|
+
paused: "paused";
|
|
17488
17043
|
}>;
|
|
17489
17044
|
startedAt: z.ZodNumber;
|
|
17490
17045
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18294,8 +17849,8 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
|
|
|
18294
17849
|
completed: "completed";
|
|
18295
17850
|
cancelled: "cancelled";
|
|
18296
17851
|
failed: "failed";
|
|
18297
|
-
paused: "paused";
|
|
18298
17852
|
running: "running";
|
|
17853
|
+
paused: "paused";
|
|
18299
17854
|
}>;
|
|
18300
17855
|
startedAt: z.ZodNumber;
|
|
18301
17856
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18332,8 +17887,8 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
18332
17887
|
cancelled: "cancelled";
|
|
18333
17888
|
failed: "failed";
|
|
18334
17889
|
running: "running";
|
|
18335
|
-
waiting: "waiting";
|
|
18336
17890
|
skipped: "skipped";
|
|
17891
|
+
waiting: "waiting";
|
|
18337
17892
|
}>;
|
|
18338
17893
|
attempt: z.ZodNumber;
|
|
18339
17894
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18386,8 +17941,8 @@ declare const WorkLogGateEventSchema: z.ZodObject<{
|
|
|
18386
17941
|
status: z.ZodEnum<{
|
|
18387
17942
|
cancelled: "cancelled";
|
|
18388
17943
|
rejected: "rejected";
|
|
18389
|
-
waiting: "waiting";
|
|
18390
17944
|
resumed: "resumed";
|
|
17945
|
+
waiting: "waiting";
|
|
18391
17946
|
"timed-out": "timed-out";
|
|
18392
17947
|
}>;
|
|
18393
17948
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -18452,443 +18007,777 @@ declare const WorkLogDynamicNodeMaterializationSchema: z.ZodObject<{
|
|
|
18452
18007
|
}, z.core.$strip>;
|
|
18453
18008
|
type WorkLogDynamicNodeMaterialization = z.infer<typeof WorkLogDynamicNodeMaterializationSchema>;
|
|
18454
18009
|
//#endregion
|
|
18455
|
-
//#region core/contracts/src/
|
|
18010
|
+
//#region core/contracts/src/subagent/schemas.d.ts
|
|
18456
18011
|
/**
|
|
18457
|
-
*
|
|
18458
|
-
*
|
|
18459
|
-
* -
|
|
18460
|
-
* - `set` — replace the current data entirely with the patch
|
|
18461
|
-
* - `append` — for array-typed fields in the patch, append items instead of replacing
|
|
18012
|
+
* Context mode for subagent spawning.
|
|
18013
|
+
* - fork: Inherit parent's conversation history
|
|
18014
|
+
* - fresh: Start with clean context
|
|
18462
18015
|
*/
|
|
18463
|
-
|
|
18016
|
+
declare const ContextModeSchema: z.ZodEnum<{
|
|
18017
|
+
fork: "fork";
|
|
18018
|
+
fresh: "fresh";
|
|
18019
|
+
}>;
|
|
18020
|
+
type ContextMode = z.infer<typeof ContextModeSchema>;
|
|
18464
18021
|
/**
|
|
18465
|
-
*
|
|
18466
|
-
*
|
|
18467
|
-
*
|
|
18468
|
-
*
|
|
18469
|
-
*
|
|
18022
|
+
* Subagent status enum.
|
|
18023
|
+
* - spawning: Session creation in progress (set by spawn tool)
|
|
18024
|
+
* - running: Session created, agent executing (set by SubagentService)
|
|
18025
|
+
* - waiting_input: Blocked on request_input
|
|
18026
|
+
* - hung: No activity within inactivity timeout (non-terminal; coordinator decides action)
|
|
18027
|
+
* - completed/failed/cancelled: Terminal states
|
|
18470
18028
|
*/
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18029
|
+
declare const SubagentStatusSchema: z.ZodEnum<{
|
|
18030
|
+
completed: "completed";
|
|
18031
|
+
cancelled: "cancelled";
|
|
18032
|
+
failed: "failed";
|
|
18033
|
+
running: "running";
|
|
18034
|
+
spawning: "spawning";
|
|
18035
|
+
waiting_input: "waiting_input";
|
|
18036
|
+
hung: "hung";
|
|
18037
|
+
}>;
|
|
18038
|
+
type SubagentStatus = z.infer<typeof SubagentStatusSchema>;
|
|
18477
18039
|
/**
|
|
18478
|
-
*
|
|
18040
|
+
* Completion mode for a spawned subagent.
|
|
18479
18041
|
*
|
|
18480
|
-
*
|
|
18481
|
-
*
|
|
18482
|
-
*
|
|
18483
|
-
*
|
|
18484
|
-
* @param current - Read-only snapshot of the current artifact data.
|
|
18485
|
-
* @returns The full next artifact data payload.
|
|
18486
|
-
*/
|
|
18487
|
-
type ArtifactUpdater<TData extends Record<string, unknown>> = (current: Readonly<TData>) => TData | Promise<TData>;
|
|
18488
|
-
/**
|
|
18489
|
-
* Artifact access API exposed on {@link StepContext}.
|
|
18490
|
-
*
|
|
18491
|
-
* Provides a read-only snapshot of the current artifact data and the two
|
|
18492
|
-
* mutation methods — `updateArtifact` and `updateStatus` — that write new
|
|
18493
|
-
* revisions through the generic artifact bus.
|
|
18042
|
+
* - `'tool'` — the child must call `completeTask` to terminate (default, existing semantics).
|
|
18043
|
+
* - `'turn'` — the first completed agent turn terminalizes the subagent with the final
|
|
18044
|
+
* assistant message as its result. Use this for single-shot subagents that produce prose
|
|
18045
|
+
* or structured output without needing to call a completion tool.
|
|
18494
18046
|
*
|
|
18495
|
-
*
|
|
18496
|
-
*
|
|
18047
|
+
* Conceptual note: subagents are conversations, not one-shot calls — the parent can send
|
|
18048
|
+
* follow-ups and the child can ask questions. "The agent stopped talking" does not generally
|
|
18049
|
+
* mean "the task is done", which is why `'tool'` is the default. Declare `'turn'` only when
|
|
18050
|
+
* the subagent's first response IS the result.
|
|
18497
18051
|
*/
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
-
|
|
18502
|
-
|
|
18503
|
-
* Mutations are not allowed directly on this object — use `updateArtifact`
|
|
18504
|
-
* or `updateStatus` to produce a new revision.
|
|
18505
|
-
*/
|
|
18506
|
-
readonly data: Readonly<TData>;
|
|
18507
|
-
/**
|
|
18508
|
-
* Write a new artifact revision using a declarative patch or a functional
|
|
18509
|
-
* updater.
|
|
18510
|
-
*
|
|
18511
|
-
* When a {@link ArtifactPatch} is supplied, the runtime applies the
|
|
18512
|
-
* declared `operation` to produce the next data payload. When an
|
|
18513
|
-
* {@link ArtifactUpdater} function is supplied, it receives the current
|
|
18514
|
-
* data snapshot and must return the full next state.
|
|
18515
|
-
*
|
|
18516
|
-
* Every call validates the next data against the workflow's declared artifact
|
|
18517
|
-
* schema and writes a new revision through the artifact bus before emitting
|
|
18518
|
-
* a `workflow.artifact.updated` event.
|
|
18519
|
-
* @param update - Declarative patch or functional updater.
|
|
18520
|
-
* @returns The revision identifier assigned by the artifact service.
|
|
18521
|
-
*/
|
|
18522
|
-
updateArtifact(update: ArtifactPatch<TData> | ArtifactUpdater<TData>): Promise<string>;
|
|
18523
|
-
/**
|
|
18524
|
-
* Convenience shorthand for updating the status field declared via
|
|
18525
|
-
* `statusPath` on the artifact binding.
|
|
18526
|
-
*
|
|
18527
|
-
* Equivalent to calling `updateArtifact` with a `set` patch targeting only
|
|
18528
|
-
* the status field. Throws if the workflow's artifact binding has no
|
|
18529
|
-
* `statusPath` configured.
|
|
18530
|
-
* @param value - The new status string value.
|
|
18531
|
-
* @returns The revision identifier assigned by the artifact service.
|
|
18532
|
-
*/
|
|
18533
|
-
updateStatus(value: string): Promise<string>;
|
|
18534
|
-
}
|
|
18052
|
+
declare const CompletionModeSchema: z.ZodEnum<{
|
|
18053
|
+
tool: "tool";
|
|
18054
|
+
turn: "turn";
|
|
18055
|
+
}>;
|
|
18056
|
+
type CompletionMode = z.infer<typeof CompletionModeSchema>;
|
|
18535
18057
|
/**
|
|
18536
|
-
*
|
|
18537
|
-
* and {@link StepContext}.
|
|
18538
|
-
*
|
|
18539
|
-
* Separating these base fields from the trigger field allows {@link StepContext}
|
|
18540
|
-
* to narrow `trigger` to the concrete payload type while re-using all other fields.
|
|
18058
|
+
* Configuration for spawning a subagent.
|
|
18541
18059
|
*/
|
|
18542
|
-
|
|
18543
|
-
|
|
18544
|
-
|
|
18545
|
-
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18060
|
+
declare const SubagentConfigSchema: z.ZodObject<{
|
|
18061
|
+
task: z.ZodString;
|
|
18062
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
18063
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
18064
|
+
providerContext: z.ZodOptional<z.ZodObject<{
|
|
18065
|
+
providerConfigId: z.ZodString;
|
|
18066
|
+
definitionId: z.ZodString;
|
|
18067
|
+
endpointOverrides: z.ZodOptional<z.ZodObject<{
|
|
18068
|
+
anthropic: z.ZodOptional<z.ZodString>;
|
|
18069
|
+
openai: z.ZodOptional<z.ZodString>;
|
|
18070
|
+
}, z.core.$strip>>;
|
|
18071
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
18072
|
+
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18073
|
+
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18074
|
+
}, z.core.$strip>>;
|
|
18075
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
18076
|
+
model: z.ZodOptional<z.ZodString>;
|
|
18077
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
18078
|
+
none: "none";
|
|
18079
|
+
low: "low";
|
|
18080
|
+
medium: "medium";
|
|
18081
|
+
high: "high";
|
|
18082
|
+
"extra-high": "extra-high";
|
|
18083
|
+
}>>;
|
|
18084
|
+
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
18085
|
+
fork: "fork";
|
|
18086
|
+
fresh: "fresh";
|
|
18087
|
+
}>>;
|
|
18088
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18089
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18090
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18091
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
18092
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
18093
|
+
responseSchema: z.ZodOptional<z.ZodObject<{
|
|
18094
|
+
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
18095
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18096
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
18097
|
+
}, z.core.$strict>>;
|
|
18098
|
+
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
18099
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
18100
|
+
tool: "tool";
|
|
18101
|
+
turn: "turn";
|
|
18102
|
+
}>>;
|
|
18103
|
+
}, z.core.$strip>;
|
|
18104
|
+
type SubagentConfig = z.infer<typeof SubagentConfigSchema>;
|
|
18564
18105
|
/**
|
|
18565
|
-
* Platform
|
|
18566
|
-
*
|
|
18567
|
-
* These fields are populated from the coordinator context at dispatch time.
|
|
18106
|
+
* Platform-level constraints for subagent spawning.
|
|
18568
18107
|
*/
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18108
|
+
declare const SubagentConstraintsSchema: z.ZodObject<{
|
|
18109
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
18110
|
+
maxConcurrentPerSession: z.ZodDefault<z.ZodNumber>;
|
|
18111
|
+
maxTotalActive: z.ZodDefault<z.ZodNumber>;
|
|
18112
|
+
defaultRequestTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
18113
|
+
defaultAwaitTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
18114
|
+
stateRetentionMs: z.ZodDefault<z.ZodNumber>;
|
|
18115
|
+
inactivityTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
18116
|
+
sweepIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
18117
|
+
allowedAdapters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18118
|
+
allowedModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18119
|
+
}, z.core.$strip>;
|
|
18120
|
+
type SubagentConstraints = z.infer<typeof SubagentConstraintsSchema>;
|
|
18573
18121
|
/**
|
|
18574
|
-
*
|
|
18575
|
-
*
|
|
18576
|
-
* Predecessors can be completed or skipped. Both remain visible so downstream
|
|
18577
|
-
* functions can branch on the terminal status of every declared predecessor.
|
|
18578
|
-
* @typeParam TOutput - The station's inferred output type
|
|
18122
|
+
* Default runtime constraints (derived from schema defaults to avoid duplication).
|
|
18579
18123
|
*/
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18124
|
+
declare const DEFAULT_CONSTRAINTS: SubagentConstraints;
|
|
18125
|
+
declare const PendingRequestSchema: z.ZodObject<{
|
|
18126
|
+
messageId: z.ZodString;
|
|
18127
|
+
question: z.ZodString;
|
|
18128
|
+
context: z.ZodOptional<z.ZodString>;
|
|
18129
|
+
}, z.core.$strip>;
|
|
18130
|
+
type PendingRequest = z.infer<typeof PendingRequestSchema>;
|
|
18131
|
+
declare const ExecuteSubagentResponseSchema: z.ZodObject<{
|
|
18132
|
+
success: z.ZodBoolean;
|
|
18133
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
18134
|
+
error: z.ZodOptional<z.ZodString>;
|
|
18135
|
+
}, z.core.$strip>;
|
|
18136
|
+
type ExecuteSubagentResponse = z.infer<typeof ExecuteSubagentResponseSchema>;
|
|
18587
18137
|
/**
|
|
18588
|
-
*
|
|
18589
|
-
*
|
|
18590
|
-
* Extends {@link WorkflowContextBase} with a typed `trigger` field and the
|
|
18591
|
-
* `previousSteps` map.
|
|
18592
|
-
* @typeParam TTrigger - The trigger payload type
|
|
18593
|
-
* @typeParam TPreviousSteps - Map of completed predecessor station outputs
|
|
18594
|
-
* @typeParam TArtifactData - Artifact data shape; defaults to `Record<string, unknown>`
|
|
18595
|
-
* when no artifact binding is declared
|
|
18596
|
-
* @typeParam TBus - Runtime bus type supplied by the host runtime; defaults to
|
|
18597
|
-
* `unknown` so the contracts package stays free of any bus implementation dependency.
|
|
18598
|
-
* Bind to `IMakaioBus` (from `@makaio/bus-core`) in host layers that need full bus
|
|
18599
|
-
* authoring surface access inside station handlers.
|
|
18138
|
+
* Subagent execution failed during startup.
|
|
18600
18139
|
*/
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
readonly index?: number;
|
|
18613
|
-
/** Output from the previous chain item when running inside an `iterate-chain`. */
|
|
18614
|
-
readonly previous?: JsonValue;
|
|
18615
|
-
/** Abort signal for cooperative cancellation of long-running station handlers. */
|
|
18616
|
-
readonly signal: AbortSignal;
|
|
18617
|
-
/**
|
|
18618
|
-
* Artifact access API for the workflow's primary artifact binding.
|
|
18619
|
-
*
|
|
18620
|
-
* Present when the workflow declares an artifact binding via `.artifact()`
|
|
18621
|
-
* and the runtime has successfully resolved or created the artifact at
|
|
18622
|
-
* execution start. `undefined` when no binding is configured or the
|
|
18623
|
-
* artifact could not be initialised.
|
|
18624
|
-
*/
|
|
18625
|
-
readonly artifact?: ArtifactContext<TArtifactData>;
|
|
18626
|
-
/**
|
|
18627
|
-
* Runtime bus for station handlers that need to query or write durable
|
|
18628
|
-
* artifacts as part of their authored output.
|
|
18629
|
-
*
|
|
18630
|
-
* Typed as the `TBus` type parameter (defaults to `unknown` in the
|
|
18631
|
-
* contracts package). Host runtimes that thread `IMakaioBus` through the
|
|
18632
|
-
* execution pipeline will expose the fully-typed bus here.
|
|
18633
|
-
*/
|
|
18634
|
-
readonly bus: TBus;
|
|
18635
|
-
/**
|
|
18636
|
-
* Emit a structured progress signal.
|
|
18637
|
-
*
|
|
18638
|
-
* Progress updates are consumed by observers and materialization providers
|
|
18639
|
-
* for real-time projections, but are not durable WorkLog entries.
|
|
18640
|
-
* @param update - The progress signal to emit.
|
|
18641
|
-
*/
|
|
18642
|
-
readonly updateProgress: (update: WorkflowProgressUpdate) => Promise<void>;
|
|
18643
|
-
}
|
|
18140
|
+
declare const SubagentExecutionFailedSchema: z.ZodObject<{
|
|
18141
|
+
subagentId: z.ZodString;
|
|
18142
|
+
parentSessionId: z.ZodString;
|
|
18143
|
+
error: z.ZodString;
|
|
18144
|
+
phase: z.ZodEnum<{
|
|
18145
|
+
session_create: "session_create";
|
|
18146
|
+
adapter_start: "adapter_start";
|
|
18147
|
+
agent_start: "agent_start";
|
|
18148
|
+
}>;
|
|
18149
|
+
}, z.core.$strip>;
|
|
18150
|
+
type SubagentExecutionFailed = z.infer<typeof SubagentExecutionFailedSchema>;
|
|
18644
18151
|
/**
|
|
18645
|
-
*
|
|
18646
|
-
*
|
|
18647
|
-
*
|
|
18648
|
-
* Used in the fluent builder methods where trigger and dependency types are
|
|
18649
|
-
* not tracked at the builder call site.
|
|
18152
|
+
* Spawn RPC - replaces tool calling manager.track().
|
|
18153
|
+
* Service validates constraints, tracks subagent, emits spawned event.
|
|
18650
18154
|
*/
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18155
|
+
declare const SpawnSubagentRpcRequestSchema: z.ZodObject<{
|
|
18156
|
+
parentSessionId: z.ZodString;
|
|
18157
|
+
config: z.ZodObject<{
|
|
18158
|
+
task: z.ZodString;
|
|
18159
|
+
adapterName: z.ZodOptional<z.ZodString>;
|
|
18160
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
18161
|
+
providerContext: z.ZodOptional<z.ZodObject<{
|
|
18162
|
+
providerConfigId: z.ZodString;
|
|
18163
|
+
definitionId: z.ZodString;
|
|
18164
|
+
endpointOverrides: z.ZodOptional<z.ZodObject<{
|
|
18165
|
+
anthropic: z.ZodOptional<z.ZodString>;
|
|
18166
|
+
openai: z.ZodOptional<z.ZodString>;
|
|
18167
|
+
}, z.core.$strip>>;
|
|
18168
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
18169
|
+
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18170
|
+
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18171
|
+
}, z.core.$strip>>;
|
|
18172
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
18173
|
+
model: z.ZodOptional<z.ZodString>;
|
|
18174
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
18175
|
+
none: "none";
|
|
18176
|
+
low: "low";
|
|
18177
|
+
medium: "medium";
|
|
18178
|
+
high: "high";
|
|
18179
|
+
"extra-high": "extra-high";
|
|
18180
|
+
}>>;
|
|
18181
|
+
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
18182
|
+
fork: "fork";
|
|
18183
|
+
fresh: "fresh";
|
|
18184
|
+
}>>;
|
|
18185
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18186
|
+
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18187
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18188
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
18189
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
18190
|
+
responseSchema: z.ZodOptional<z.ZodObject<{
|
|
18191
|
+
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
18192
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18193
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
18194
|
+
}, z.core.$strict>>;
|
|
18195
|
+
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
18196
|
+
completion: z.ZodOptional<z.ZodEnum<{
|
|
18197
|
+
tool: "tool";
|
|
18198
|
+
turn: "turn";
|
|
18199
|
+
}>>;
|
|
18200
|
+
}, z.core.$strip>;
|
|
18201
|
+
depth: z.ZodNumber;
|
|
18202
|
+
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
18203
|
+
}, z.core.$strip>;
|
|
18204
|
+
type SpawnSubagentRpcRequest = z.infer<typeof SpawnSubagentRpcRequestSchema>;
|
|
18205
|
+
declare const SpawnSubagentRpcResponseSchema: z.ZodObject<{
|
|
18206
|
+
subagentId: z.ZodString;
|
|
18207
|
+
status: z.ZodLiteral<"spawning">;
|
|
18208
|
+
}, z.core.$strip>;
|
|
18209
|
+
type SpawnSubagentRpcResponse = z.infer<typeof SpawnSubagentRpcResponseSchema>;
|
|
18210
|
+
/**
|
|
18211
|
+
* Await RPC - replaces callback-based awaiter.
|
|
18212
|
+
* Blocks until subagent reaches terminal state or timeout.
|
|
18655
18213
|
*/
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18214
|
+
declare const AwaitSubagentRequestSchema: z.ZodObject<{
|
|
18215
|
+
subagentId: z.ZodString;
|
|
18216
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
18217
|
+
}, z.core.$strip>;
|
|
18218
|
+
type AwaitSubagentRequest = z.infer<typeof AwaitSubagentRequestSchema>;
|
|
18219
|
+
declare const AwaitSubagentResponseSchema: z.ZodObject<{
|
|
18220
|
+
status: z.ZodEnum<{
|
|
18221
|
+
completed: "completed";
|
|
18222
|
+
cancelled: "cancelled";
|
|
18223
|
+
failed: "failed";
|
|
18224
|
+
waiting_input: "waiting_input";
|
|
18225
|
+
timeout: "timeout";
|
|
18226
|
+
}>;
|
|
18227
|
+
result: z.ZodOptional<z.ZodString>;
|
|
18228
|
+
error: z.ZodOptional<z.ZodString>;
|
|
18229
|
+
pendingRequest: z.ZodOptional<z.ZodObject<{
|
|
18230
|
+
messageId: z.ZodString;
|
|
18231
|
+
question: z.ZodString;
|
|
18232
|
+
context: z.ZodOptional<z.ZodString>;
|
|
18233
|
+
}, z.core.$strip>>;
|
|
18234
|
+
completionSource: z.ZodOptional<z.ZodEnum<{
|
|
18235
|
+
tool: "tool";
|
|
18236
|
+
turn: "turn";
|
|
18237
|
+
}>>;
|
|
18238
|
+
}, z.core.$strip>;
|
|
18239
|
+
type AwaitSubagentResponse = z.infer<typeof AwaitSubagentResponseSchema>;
|
|
18659
18240
|
/**
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
18662
|
-
* Intentionally not an interface extending `WorkflowTrigger` because
|
|
18663
|
-
* `WorkflowTrigger` is a discriminated union — TypeScript does not permit
|
|
18664
|
-
* extending unions. Instead this type uses an intersection so the full trigger
|
|
18665
|
-
* shape is preserved while the phantom `__payload` field threads through.
|
|
18666
|
-
* @typeParam TPayload - The trigger event payload type
|
|
18241
|
+
* Send RPC - sends message to subagent, optionally resolving pending request.
|
|
18667
18242
|
*/
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18243
|
+
declare const SendToSubagentRequestSchema: z.ZodObject<{
|
|
18244
|
+
subagentId: z.ZodString;
|
|
18245
|
+
content: z.ZodString;
|
|
18246
|
+
inResponseTo: z.ZodOptional<z.ZodString>;
|
|
18247
|
+
}, z.core.$strip>;
|
|
18248
|
+
type SendToSubagentRequest = z.infer<typeof SendToSubagentRequestSchema>;
|
|
18249
|
+
declare const SendToSubagentResponseSchema: z.ZodObject<{
|
|
18250
|
+
sent: z.ZodBoolean;
|
|
18251
|
+
resolvedPending: z.ZodBoolean;
|
|
18252
|
+
}, z.core.$strip>;
|
|
18253
|
+
type SendToSubagentResponse = z.infer<typeof SendToSubagentResponseSchema>;
|
|
18675
18254
|
/**
|
|
18676
|
-
*
|
|
18677
|
-
* @typeParam T - The typed trigger definition
|
|
18255
|
+
* Kill RPC - terminates a running subagent.
|
|
18678
18256
|
*/
|
|
18679
|
-
|
|
18257
|
+
declare const KillSubagentRequestSchema: z.ZodObject<{
|
|
18258
|
+
subagentId: z.ZodString;
|
|
18259
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
18260
|
+
}, z.core.$strip>;
|
|
18261
|
+
type KillSubagentRequest = z.infer<typeof KillSubagentRequestSchema>;
|
|
18262
|
+
declare const KillSubagentResponseSchema: z.ZodObject<{
|
|
18263
|
+
killed: z.ZodBoolean;
|
|
18264
|
+
}, z.core.$strip>;
|
|
18265
|
+
type KillSubagentResponse = z.infer<typeof KillSubagentResponseSchema>;
|
|
18680
18266
|
/**
|
|
18681
|
-
*
|
|
18682
|
-
* @typeParam TTriggers - Trigger tuple supplied to `defineWorkflow`
|
|
18267
|
+
* Report Progress RPC - child reports progress update.
|
|
18683
18268
|
*/
|
|
18684
|
-
|
|
18269
|
+
declare const ReportProgressRequestSchema: z.ZodObject<{
|
|
18270
|
+
subagentId: z.ZodString;
|
|
18271
|
+
update: z.ZodString;
|
|
18272
|
+
percentComplete: z.ZodOptional<z.ZodNumber>;
|
|
18273
|
+
}, z.core.$strip>;
|
|
18274
|
+
type ReportProgressRequest = z.infer<typeof ReportProgressRequestSchema>;
|
|
18275
|
+
declare const ReportProgressResponseSchema: z.ZodObject<{
|
|
18276
|
+
reported: z.ZodBoolean;
|
|
18277
|
+
}, z.core.$strip>;
|
|
18278
|
+
type ReportProgressResponse = z.infer<typeof ReportProgressResponseSchema>;
|
|
18685
18279
|
/**
|
|
18686
|
-
*
|
|
18687
|
-
*
|
|
18688
|
-
* @param options - Trigger configuration options
|
|
18689
|
-
* @returns A typed workflow trigger definition
|
|
18690
|
-
* @example
|
|
18691
|
-
* ```typescript
|
|
18692
|
-
* const trigger = BusEventWorkflowTrigger({
|
|
18693
|
-
* subject: GitNamespace.subjects.checkout,
|
|
18694
|
-
* filter: { isNewWorktree: true },
|
|
18695
|
-
* });
|
|
18696
|
-
* ```
|
|
18280
|
+
* Request Input RPC - child requests input from parent.
|
|
18281
|
+
* Blocks until parent responds or timeout.
|
|
18697
18282
|
*/
|
|
18698
|
-
declare
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
|
|
18703
|
-
|
|
18704
|
-
|
|
18283
|
+
declare const RequestInputRpcRequestSchema: z.ZodObject<{
|
|
18284
|
+
subagentId: z.ZodString;
|
|
18285
|
+
question: z.ZodString;
|
|
18286
|
+
context: z.ZodOptional<z.ZodString>;
|
|
18287
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
18288
|
+
}, z.core.$strip>;
|
|
18289
|
+
type RequestInputRpcRequest = z.infer<typeof RequestInputRpcRequestSchema>;
|
|
18290
|
+
declare const RequestInputRpcResponseSchema: z.ZodObject<{
|
|
18291
|
+
responded: z.ZodBoolean;
|
|
18292
|
+
response: z.ZodOptional<z.ZodString>;
|
|
18293
|
+
timedOut: z.ZodBoolean;
|
|
18294
|
+
}, z.core.$strip>;
|
|
18295
|
+
type RequestInputRpcResponse = z.infer<typeof RequestInputRpcResponseSchema>;
|
|
18705
18296
|
/**
|
|
18706
|
-
*
|
|
18707
|
-
* @returns A typed workflow trigger definition with `void` payload
|
|
18297
|
+
* Complete Task RPC - child signals task completion.
|
|
18708
18298
|
*/
|
|
18709
|
-
declare
|
|
18299
|
+
declare const CompleteTaskRequestSchema: z.ZodObject<{
|
|
18300
|
+
subagentId: z.ZodString;
|
|
18301
|
+
result: z.ZodString;
|
|
18302
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
18303
|
+
}, z.core.$strip>;
|
|
18304
|
+
type CompleteTaskRequest = z.infer<typeof CompleteTaskRequestSchema>;
|
|
18305
|
+
declare const CompleteTaskResponseSchema: z.ZodObject<{
|
|
18306
|
+
completed: z.ZodBoolean;
|
|
18307
|
+
}, z.core.$strip>;
|
|
18308
|
+
type CompleteTaskResponse = z.infer<typeof CompleteTaskResponseSchema>;
|
|
18710
18309
|
/**
|
|
18711
|
-
*
|
|
18310
|
+
* List subagents by parent session RPC.
|
|
18311
|
+
* Returns all non-terminal subagents spawned by the given parent session.
|
|
18312
|
+
*
|
|
18313
|
+
* Note: SubagentService tracks subagents in memory only. This list will be
|
|
18314
|
+
* empty after a process restart — subagents re-register as they report back.
|
|
18712
18315
|
*/
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18316
|
+
declare const ListSubagentsBySessionRequestSchema: z.ZodObject<{
|
|
18317
|
+
parentSessionId: z.ZodString;
|
|
18318
|
+
}, z.core.$strip>;
|
|
18319
|
+
type ListSubagentsBySessionRequest = z.infer<typeof ListSubagentsBySessionRequestSchema>;
|
|
18320
|
+
declare const ListSubagentsBySessionResponseSchema: z.ZodObject<{
|
|
18321
|
+
subagents: z.ZodArray<z.ZodObject<{
|
|
18322
|
+
subagentId: z.ZodString;
|
|
18323
|
+
task: z.ZodString;
|
|
18324
|
+
status: z.ZodEnum<{
|
|
18325
|
+
completed: "completed";
|
|
18326
|
+
cancelled: "cancelled";
|
|
18327
|
+
failed: "failed";
|
|
18328
|
+
running: "running";
|
|
18329
|
+
spawning: "spawning";
|
|
18330
|
+
waiting_input: "waiting_input";
|
|
18331
|
+
hung: "hung";
|
|
18332
|
+
}>;
|
|
18333
|
+
}, z.core.$strip>>;
|
|
18334
|
+
}, z.core.$strip>;
|
|
18335
|
+
type ListSubagentsBySessionResponse = z.infer<typeof ListSubagentsBySessionResponseSchema>;
|
|
18336
|
+
//#endregion
|
|
18337
|
+
//#region core/contracts/src/workflow/authoring-context.d.ts
|
|
18719
18338
|
/**
|
|
18720
|
-
*
|
|
18721
|
-
*
|
|
18722
|
-
*
|
|
18339
|
+
* Declarative operations for {@link ArtifactContext.updateArtifact} patches.
|
|
18340
|
+
*
|
|
18341
|
+
* - `merge` — deep-merge the patch into the current data
|
|
18342
|
+
* - `set` — replace the current data entirely with the patch
|
|
18343
|
+
* - `append` — for array-typed fields in the patch, append items instead of replacing
|
|
18723
18344
|
*/
|
|
18724
|
-
|
|
18725
|
-
/** Cron expression (e.g. `'0 9 * * 1'`). */readonly schedule: string; /** Optional IANA timezone string; defaults to UTC at runtime. */
|
|
18726
|
-
readonly timezone?: string;
|
|
18727
|
-
}): WorkflowTriggerDef<CronTriggerPayload>;
|
|
18345
|
+
type ArtifactUpdateOperation = 'merge' | 'set' | 'append';
|
|
18728
18346
|
/**
|
|
18729
|
-
*
|
|
18347
|
+
* Declarative patch descriptor for {@link ArtifactContext.updateArtifact}.
|
|
18348
|
+
*
|
|
18349
|
+
* When passed instead of a functional updater, `operation` controls how the
|
|
18350
|
+
* runtime merges `data` into the current artifact snapshot.
|
|
18351
|
+
* @typeParam TData - Artifact data shape for this workflow's binding.
|
|
18730
18352
|
*/
|
|
18731
|
-
interface
|
|
18732
|
-
/**
|
|
18733
|
-
readonly
|
|
18734
|
-
/**
|
|
18735
|
-
readonly
|
|
18736
|
-
/** Repository slug (`owner/name`), if configured. */
|
|
18737
|
-
readonly repo?: string;
|
|
18738
|
-
/** Raw webhook payload forwarded from the webhook handler. */
|
|
18739
|
-
readonly body: Record<string, unknown>;
|
|
18353
|
+
interface ArtifactPatch<TData extends Record<string, unknown>> {
|
|
18354
|
+
/** Declarative operation applied to the current data. */
|
|
18355
|
+
readonly operation: ArtifactUpdateOperation;
|
|
18356
|
+
/** Partial or full data payload to apply. */
|
|
18357
|
+
readonly data: Partial<TData>;
|
|
18740
18358
|
}
|
|
18741
18359
|
/**
|
|
18742
|
-
*
|
|
18743
|
-
*
|
|
18744
|
-
*
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
}): WorkflowTriggerDef<WebhookTriggerPayload>;
|
|
18751
|
-
/**
|
|
18752
|
-
* Creates an extension-contributed workflow trigger.
|
|
18753
|
-
* @param options - Trigger configuration options
|
|
18754
|
-
* @returns A typed workflow trigger definition with `Record<string, unknown>` payload
|
|
18360
|
+
* Functional updater signature for {@link ArtifactContext.updateArtifact}.
|
|
18361
|
+
*
|
|
18362
|
+
* Receives the current artifact data snapshot and returns the full next state.
|
|
18363
|
+
* The runtime validates the returned value against the workflow's artifact
|
|
18364
|
+
* schema before writing a new revision.
|
|
18365
|
+
* @typeParam TData - Artifact data shape for this workflow's binding.
|
|
18366
|
+
* @param current - Read-only snapshot of the current artifact data.
|
|
18367
|
+
* @returns The full next artifact data payload.
|
|
18755
18368
|
*/
|
|
18756
|
-
|
|
18757
|
-
/** Extension trigger type identifier (`extensionName:eventName`). */readonly extensionType: `${string}:${string}`; /** Optional opaque runtime configuration. */
|
|
18758
|
-
readonly config?: Record<string, unknown>;
|
|
18759
|
-
}): WorkflowTriggerDef<Record<string, unknown>>;
|
|
18760
|
-
//#endregion
|
|
18761
|
-
//#region core/contracts/src/workflow/authoring-builder.d.ts
|
|
18369
|
+
type ArtifactUpdater<TData extends Record<string, unknown>> = (current: Readonly<TData>) => TData | Promise<TData>;
|
|
18762
18370
|
/**
|
|
18763
|
-
*
|
|
18371
|
+
* Artifact access API exposed on {@link StepContext}.
|
|
18372
|
+
*
|
|
18373
|
+
* Provides a read-only snapshot of the current artifact data and the two
|
|
18374
|
+
* mutation methods — `updateArtifact` and `updateStatus` — that write new
|
|
18375
|
+
* revisions through the generic artifact bus.
|
|
18376
|
+
*
|
|
18377
|
+
* Present only when the workflow declares an artifact binding via `.artifact()`.
|
|
18378
|
+
* @typeParam TData - Artifact data shape for this workflow's binding.
|
|
18764
18379
|
*/
|
|
18765
|
-
interface
|
|
18766
|
-
/**
|
|
18767
|
-
* jexl expression evaluated at runtime.
|
|
18768
|
-
* When present and falsy, the node and its subtree are skipped.
|
|
18769
|
-
*/
|
|
18770
|
-
readonly when?: string;
|
|
18380
|
+
interface ArtifactContext<TData extends Record<string, unknown> = Record<string, unknown>> {
|
|
18771
18381
|
/**
|
|
18772
|
-
*
|
|
18773
|
-
*
|
|
18382
|
+
* Read-only snapshot of the artifact data as it was at the start of the
|
|
18383
|
+
* current station execution.
|
|
18384
|
+
*
|
|
18385
|
+
* Mutations are not allowed directly on this object — use `updateArtifact`
|
|
18386
|
+
* or `updateStatus` to produce a new revision.
|
|
18774
18387
|
*/
|
|
18775
|
-
readonly
|
|
18776
|
-
}
|
|
18777
|
-
/**
|
|
18778
|
-
* Configuration for a delegate-agent node created via the fluent builder.
|
|
18779
|
-
*/
|
|
18780
|
-
interface AgentConfig {
|
|
18781
|
-
/** Identifier of the registered agent definition to invoke. */
|
|
18782
|
-
readonly agentId: string;
|
|
18388
|
+
readonly data: Readonly<TData>;
|
|
18783
18389
|
/**
|
|
18784
|
-
*
|
|
18785
|
-
*
|
|
18390
|
+
* Write a new artifact revision using a declarative patch or a functional
|
|
18391
|
+
* updater.
|
|
18392
|
+
*
|
|
18393
|
+
* When a {@link ArtifactPatch} is supplied, the runtime applies the
|
|
18394
|
+
* declared `operation` to produce the next data payload. When an
|
|
18395
|
+
* {@link ArtifactUpdater} function is supplied, it receives the current
|
|
18396
|
+
* data snapshot and must return the full next state.
|
|
18397
|
+
*
|
|
18398
|
+
* Every call validates the next data against the workflow's declared artifact
|
|
18399
|
+
* schema and writes a new revision through the artifact bus before emitting
|
|
18400
|
+
* a `workflow.artifact.updated` event.
|
|
18401
|
+
* @param update - Declarative patch or functional updater.
|
|
18402
|
+
* @returns The revision identifier assigned by the artifact service.
|
|
18786
18403
|
*/
|
|
18787
|
-
|
|
18404
|
+
updateArtifact(update: ArtifactPatch<TData> | ArtifactUpdater<TData>): Promise<string>;
|
|
18788
18405
|
/**
|
|
18789
|
-
*
|
|
18406
|
+
* Convenience shorthand for updating the status field declared via
|
|
18407
|
+
* `statusPath` on the artifact binding.
|
|
18408
|
+
*
|
|
18409
|
+
* Equivalent to calling `updateArtifact` with a `set` patch targeting only
|
|
18410
|
+
* the status field. Throws if the workflow's artifact binding has no
|
|
18411
|
+
* `statusPath` configured.
|
|
18412
|
+
* @param value - The new status string value.
|
|
18413
|
+
* @returns The revision identifier assigned by the artifact service.
|
|
18790
18414
|
*/
|
|
18791
|
-
|
|
18415
|
+
updateStatus(value: string): Promise<string>;
|
|
18792
18416
|
}
|
|
18793
18417
|
/**
|
|
18794
|
-
*
|
|
18418
|
+
* Platform and workspace context fields shared by both {@link WorkflowContext}
|
|
18419
|
+
* and {@link StepContext}.
|
|
18420
|
+
*
|
|
18421
|
+
* Separating these base fields from the trigger field allows {@link StepContext}
|
|
18422
|
+
* to narrow `trigger` to the concrete payload type while re-using all other fields.
|
|
18795
18423
|
*/
|
|
18796
|
-
interface
|
|
18797
|
-
/**
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
|
|
18804
|
-
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
readonly
|
|
18815
|
-
/**
|
|
18816
|
-
|
|
18817
|
-
* Captured in `zodSchemas.gates[id]`; the JSON Schema equivalent goes in
|
|
18818
|
-
* the node's `resumeSchema` field.
|
|
18819
|
-
*/
|
|
18820
|
-
readonly resume?: z.ZodTypeAny;
|
|
18424
|
+
interface WorkflowContextBase {
|
|
18425
|
+
/** Absolute path to the active repository root. */
|
|
18426
|
+
readonly repoPath: string;
|
|
18427
|
+
/** Absolute path to the Makaio home directory. */
|
|
18428
|
+
readonly makaioHome: string;
|
|
18429
|
+
/** Host operating system. */
|
|
18430
|
+
readonly os: 'darwin' | 'linux' | 'win32';
|
|
18431
|
+
/** CPU architecture (e.g. `'arm64'`, `'x64'`). */
|
|
18432
|
+
readonly arch: string;
|
|
18433
|
+
/** Active git worktree path, if different from `repoPath`. */
|
|
18434
|
+
readonly worktree?: string;
|
|
18435
|
+
/** Bound input value for this execution. */
|
|
18436
|
+
readonly inputs: JsonValue;
|
|
18437
|
+
/** Bound workflow configuration values for this execution. */
|
|
18438
|
+
readonly config: Record<string, unknown>;
|
|
18439
|
+
/** Extra environment variables injected into the worker process. */
|
|
18440
|
+
readonly env: Record<string, string>;
|
|
18441
|
+
/** Unique execution identifier. */
|
|
18442
|
+
readonly executionId: string;
|
|
18443
|
+
/** Workflow definition identifier. */
|
|
18444
|
+
readonly workflowId: string;
|
|
18821
18445
|
}
|
|
18822
18446
|
/**
|
|
18823
|
-
*
|
|
18447
|
+
* Platform and workspace context available to every workflow station function.
|
|
18448
|
+
*
|
|
18449
|
+
* These fields are populated from the coordinator context at dispatch time.
|
|
18824
18450
|
*/
|
|
18825
|
-
interface
|
|
18826
|
-
/**
|
|
18827
|
-
|
|
18828
|
-
*/
|
|
18829
|
-
readonly collection: string;
|
|
18830
|
-
/**
|
|
18831
|
-
* Maximum number of concurrent item executions (iterate only).
|
|
18832
|
-
* `0` or absent means unlimited concurrency.
|
|
18833
|
-
*/
|
|
18834
|
-
readonly concurrency?: number;
|
|
18835
|
-
/** Common node conditions. */
|
|
18836
|
-
readonly when?: string;
|
|
18837
|
-
/** Common node skip condition. */
|
|
18838
|
-
readonly skip?: string;
|
|
18451
|
+
interface WorkflowContext extends WorkflowContextBase {
|
|
18452
|
+
/** Payload from the trigger that started this execution. */
|
|
18453
|
+
readonly trigger: Record<string, unknown>;
|
|
18839
18454
|
}
|
|
18840
18455
|
/**
|
|
18841
|
-
*
|
|
18456
|
+
* The shape of a declared predecessor entry in `ctx.previousSteps`.
|
|
18842
18457
|
*
|
|
18843
|
-
*
|
|
18844
|
-
*
|
|
18845
|
-
|
|
18846
|
-
type ParallelMode = 'all-settled' | 'fail-fast';
|
|
18847
|
-
/**
|
|
18848
|
-
* Options for parallel nodes created via the fluent builder.
|
|
18458
|
+
* Predecessors can be completed or skipped. Both remain visible so downstream
|
|
18459
|
+
* functions can branch on the terminal status of every declared predecessor.
|
|
18460
|
+
* @typeParam TOutput - The station's inferred output type
|
|
18849
18461
|
*/
|
|
18850
|
-
|
|
18851
|
-
/**
|
|
18852
|
-
readonly
|
|
18853
|
-
|
|
18854
|
-
readonly
|
|
18855
|
-
|
|
18856
|
-
|
|
18857
|
-
}
|
|
18462
|
+
type PreviousStepOutput<TOutput extends JsonValue> = {
|
|
18463
|
+
/** JSON-serializable value produced by the completed station. */readonly output: TOutput; /** Upstream station completed and produced an output. */
|
|
18464
|
+
readonly status: 'completed';
|
|
18465
|
+
} | {
|
|
18466
|
+
/** Skipped upstream stations do not produce an output. */readonly output?: undefined; /** Upstream station was skipped by its `when`/`skip` condition. */
|
|
18467
|
+
readonly status: 'skipped';
|
|
18468
|
+
};
|
|
18858
18469
|
/**
|
|
18859
|
-
*
|
|
18470
|
+
* Full execution context passed to a station handler function.
|
|
18860
18471
|
*
|
|
18861
|
-
* Extends {@link
|
|
18862
|
-
*
|
|
18472
|
+
* Extends {@link WorkflowContextBase} with a typed `trigger` field and the
|
|
18473
|
+
* `previousSteps` map.
|
|
18474
|
+
* @typeParam TTrigger - The trigger payload type
|
|
18475
|
+
* @typeParam TPreviousSteps - Map of completed predecessor station outputs
|
|
18476
|
+
* @typeParam TArtifactData - Artifact data shape; defaults to `Record<string, unknown>`
|
|
18477
|
+
* when no artifact binding is declared
|
|
18478
|
+
* @typeParam TBus - Runtime bus type supplied by the host runtime; defaults to
|
|
18479
|
+
* `unknown` so the contracts package stays free of any bus implementation dependency.
|
|
18480
|
+
* Bind to `IMakaioBus` (from `@makaio/bus-core`) in host layers that need full bus
|
|
18481
|
+
* authoring surface access inside station handlers.
|
|
18863
18482
|
*/
|
|
18864
|
-
interface
|
|
18865
|
-
/**
|
|
18866
|
-
readonly
|
|
18867
|
-
/** Schema version validated by the artifact service. */
|
|
18868
|
-
readonly schemaVersion: string;
|
|
18869
|
-
/** Scope at which the artifact is stored. */
|
|
18870
|
-
readonly scope: WorkflowArtifactBinding['scope'];
|
|
18871
|
-
/** Optional Zod schema for the artifact data payload. */
|
|
18872
|
-
readonly schema?: z.ZodTypeAny;
|
|
18483
|
+
interface StepContext<TTrigger, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown> extends WorkflowContextBase {
|
|
18484
|
+
/** Typed payload from the trigger that started this execution. */
|
|
18485
|
+
readonly trigger: TTrigger;
|
|
18873
18486
|
/**
|
|
18874
|
-
*
|
|
18487
|
+
* Outputs from earlier completed nodes keyed by node ID.
|
|
18488
|
+
* Entries may be absent when an earlier node was not executed in this path.
|
|
18875
18489
|
*/
|
|
18876
|
-
readonly
|
|
18490
|
+
readonly previousSteps: TPreviousSteps;
|
|
18491
|
+
/** Current collection item when running inside an `iterate` expansion. */
|
|
18492
|
+
readonly item?: unknown;
|
|
18493
|
+
/** Zero-based iteration index when running inside an `iterate` expansion. */
|
|
18494
|
+
readonly index?: number;
|
|
18495
|
+
/** Output from the previous chain item when running inside an `iterate-chain`. */
|
|
18496
|
+
readonly previous?: JsonValue;
|
|
18497
|
+
/** Abort signal for cooperative cancellation of long-running station handlers. */
|
|
18498
|
+
readonly signal: AbortSignal;
|
|
18877
18499
|
/**
|
|
18878
|
-
*
|
|
18500
|
+
* Artifact access API for the workflow's primary artifact binding.
|
|
18501
|
+
*
|
|
18502
|
+
* Present when the workflow declares an artifact binding via `.artifact()`
|
|
18503
|
+
* and the runtime has successfully resolved or created the artifact at
|
|
18504
|
+
* execution start. `undefined` when no binding is configured or the
|
|
18505
|
+
* artifact could not be initialised.
|
|
18879
18506
|
*/
|
|
18880
|
-
readonly
|
|
18507
|
+
readonly artifact?: ArtifactContext<TArtifactData>;
|
|
18881
18508
|
/**
|
|
18882
|
-
*
|
|
18509
|
+
* Runtime bus for station handlers that need to query or write durable
|
|
18510
|
+
* artifacts as part of their authored output.
|
|
18511
|
+
*
|
|
18512
|
+
* Typed as the `TBus` type parameter (defaults to `unknown` in the
|
|
18513
|
+
* contracts package). Host runtimes that thread `IMakaioBus` through the
|
|
18514
|
+
* execution pipeline will expose the fully-typed bus here.
|
|
18883
18515
|
*/
|
|
18884
|
-
readonly
|
|
18516
|
+
readonly bus: TBus;
|
|
18517
|
+
/**
|
|
18518
|
+
* Emit a structured progress signal.
|
|
18519
|
+
*
|
|
18520
|
+
* Progress updates are consumed by observers and materialization providers
|
|
18521
|
+
* for real-time projections, but are not durable WorkLog entries.
|
|
18522
|
+
* @param update - The progress signal to emit.
|
|
18523
|
+
*/
|
|
18524
|
+
readonly updateProgress: (update: WorkflowProgressUpdate) => Promise<void>;
|
|
18885
18525
|
}
|
|
18886
18526
|
/**
|
|
18887
|
-
*
|
|
18527
|
+
* Generic station handler — a function accepting a {@link StepContext} and
|
|
18528
|
+
* returning a JSON-serializable value.
|
|
18888
18529
|
*
|
|
18889
|
-
*
|
|
18890
|
-
*
|
|
18891
|
-
|
|
18530
|
+
* Used in the fluent builder methods where trigger and dependency types are
|
|
18531
|
+
* not tracked at the builder call site.
|
|
18532
|
+
*/
|
|
18533
|
+
type StationHandler = (ctx: StepContext<unknown, Record<string, PreviousStepOutput<JsonValue>>>) => JsonValue | Promise<JsonValue>;
|
|
18534
|
+
/**
|
|
18535
|
+
* Generic iterate handler — same signature as {@link StationHandler} but
|
|
18536
|
+
* semantically used for `iterate` node bodies.
|
|
18537
|
+
*/
|
|
18538
|
+
type IterateHandler = StationHandler;
|
|
18539
|
+
//#endregion
|
|
18540
|
+
//#region core/contracts/src/workflow/authoring-triggers.d.ts
|
|
18541
|
+
/**
|
|
18542
|
+
* A workflow trigger with a phantom type parameter carrying the payload type.
|
|
18543
|
+
*
|
|
18544
|
+
* Intentionally not an interface extending `WorkflowTrigger` because
|
|
18545
|
+
* `WorkflowTrigger` is a discriminated union — TypeScript does not permit
|
|
18546
|
+
* extending unions. Instead this type uses an intersection so the full trigger
|
|
18547
|
+
* shape is preserved while the phantom `__payload` field threads through.
|
|
18548
|
+
* @typeParam TPayload - The trigger event payload type
|
|
18549
|
+
*/
|
|
18550
|
+
type WorkflowTriggerDef<TPayload> = WorkflowTrigger & {
|
|
18551
|
+
/**
|
|
18552
|
+
* Phantom type carrier — never present at runtime.
|
|
18553
|
+
* Use `ExtractTriggerPayload<T>` to access this type.
|
|
18554
|
+
*/
|
|
18555
|
+
readonly __payload?: TPayload;
|
|
18556
|
+
};
|
|
18557
|
+
/**
|
|
18558
|
+
* Extract the payload type from a {@link WorkflowTriggerDef}.
|
|
18559
|
+
* @typeParam T - The typed trigger definition
|
|
18560
|
+
*/
|
|
18561
|
+
type ExtractTriggerPayload<T extends WorkflowTriggerDef<unknown>> = T extends WorkflowTriggerDef<infer TPayload> ? TPayload : never;
|
|
18562
|
+
/**
|
|
18563
|
+
* Derives the trigger payload union from a tuple of typed trigger definitions.
|
|
18564
|
+
* @typeParam TTriggers - Trigger tuple supplied to `defineWorkflow`
|
|
18565
|
+
*/
|
|
18566
|
+
type TriggerPayloadFromTriggers<TTriggers extends readonly WorkflowTriggerDef<unknown>[] | undefined> = TTriggers extends readonly WorkflowTriggerDef<unknown>[] ? ExtractTriggerPayload<TTriggers[number]> : never;
|
|
18567
|
+
/**
|
|
18568
|
+
* Creates a bus-event workflow trigger that fires when a typed subject emits
|
|
18569
|
+
* a matching message.
|
|
18570
|
+
* @param options - Trigger configuration options
|
|
18571
|
+
* @returns A typed workflow trigger definition
|
|
18572
|
+
* @example
|
|
18573
|
+
* ```typescript
|
|
18574
|
+
* const trigger = BusEventWorkflowTrigger({
|
|
18575
|
+
* subject: GitNamespace.subjects.checkout,
|
|
18576
|
+
* filter: { isNewWorktree: true },
|
|
18577
|
+
* });
|
|
18578
|
+
* ```
|
|
18579
|
+
*/
|
|
18580
|
+
declare function BusEventWorkflowTrigger<S extends SubjectDefinition>(options: {
|
|
18581
|
+
/** The bus subject to subscribe to. */readonly subject: S; /** Optional structural payload filter (AND semantics). */
|
|
18582
|
+
readonly filter?: TypedPayloadFilter<ExtractSubjectPayload<S>>; /** Optional jexl expression for complex filter conditions. */
|
|
18583
|
+
readonly filterExpression?: string;
|
|
18584
|
+
}): BusEventTrigger & {
|
|
18585
|
+
readonly __payload?: ExtractSubjectPayload<S>;
|
|
18586
|
+
};
|
|
18587
|
+
/**
|
|
18588
|
+
* Creates a manual workflow trigger (user-initiated only).
|
|
18589
|
+
* @returns A typed workflow trigger definition with `void` payload
|
|
18590
|
+
*/
|
|
18591
|
+
declare function ManualWorkflowTrigger(): WorkflowTriggerDef<void>;
|
|
18592
|
+
/**
|
|
18593
|
+
* Cron trigger payload — injected into `context.trigger` at execution time.
|
|
18594
|
+
*/
|
|
18595
|
+
interface CronTriggerPayload {
|
|
18596
|
+
/** Epoch milliseconds when the cron fired. */
|
|
18597
|
+
readonly firedAt: number;
|
|
18598
|
+
/** Zero-based index of this trigger in the workflow's `triggers` array. */
|
|
18599
|
+
readonly triggerIndex: number;
|
|
18600
|
+
}
|
|
18601
|
+
/**
|
|
18602
|
+
* Creates a cron-based workflow trigger.
|
|
18603
|
+
* @param options - Trigger configuration options
|
|
18604
|
+
* @returns A typed workflow trigger definition with {@link CronTriggerPayload}
|
|
18605
|
+
*/
|
|
18606
|
+
declare function CronWorkflowTrigger(options: {
|
|
18607
|
+
/** Cron expression (e.g. `'0 9 * * 1'`). */readonly schedule: string; /** Optional IANA timezone string; defaults to UTC at runtime. */
|
|
18608
|
+
readonly timezone?: string;
|
|
18609
|
+
}): WorkflowTriggerDef<CronTriggerPayload>;
|
|
18610
|
+
/**
|
|
18611
|
+
* Webhook trigger payload — injected into `context.trigger` at execution time.
|
|
18612
|
+
*/
|
|
18613
|
+
interface WebhookTriggerPayload {
|
|
18614
|
+
/** Webhook event name (e.g. `'push'`, `'pull_request'`). */
|
|
18615
|
+
readonly event: string;
|
|
18616
|
+
/** Branch filter value, if configured. */
|
|
18617
|
+
readonly branch?: string;
|
|
18618
|
+
/** Repository slug (`owner/name`), if configured. */
|
|
18619
|
+
readonly repo?: string;
|
|
18620
|
+
/** Raw webhook payload forwarded from the webhook handler. */
|
|
18621
|
+
readonly body: Record<string, unknown>;
|
|
18622
|
+
}
|
|
18623
|
+
/**
|
|
18624
|
+
* Creates a webhook-based workflow trigger.
|
|
18625
|
+
* @param options - Trigger configuration options
|
|
18626
|
+
* @returns A typed workflow trigger definition with {@link WebhookTriggerPayload}
|
|
18627
|
+
*/
|
|
18628
|
+
declare function WebhookWorkflowTrigger(options: {
|
|
18629
|
+
/** Webhook event name. */readonly event: string; /** Optional branch filter. */
|
|
18630
|
+
readonly branch?: string; /** Optional repository filter (`owner/name`). */
|
|
18631
|
+
readonly repo?: string;
|
|
18632
|
+
}): WorkflowTriggerDef<WebhookTriggerPayload>;
|
|
18633
|
+
/**
|
|
18634
|
+
* Creates an extension-contributed workflow trigger.
|
|
18635
|
+
* @param options - Trigger configuration options
|
|
18636
|
+
* @returns A typed workflow trigger definition with `Record<string, unknown>` payload
|
|
18637
|
+
*/
|
|
18638
|
+
declare function ExtensionWorkflowTrigger(options: {
|
|
18639
|
+
/** Extension trigger type identifier (`extensionName:eventName`). */readonly extensionType: `${string}:${string}`; /** Optional opaque runtime configuration. */
|
|
18640
|
+
readonly config?: Record<string, unknown>;
|
|
18641
|
+
}): WorkflowTriggerDef<Record<string, unknown>>;
|
|
18642
|
+
//#endregion
|
|
18643
|
+
//#region core/contracts/src/workflow/authoring-builder.d.ts
|
|
18644
|
+
/**
|
|
18645
|
+
* Common per-node options shared by all fluent builder node methods.
|
|
18646
|
+
*/
|
|
18647
|
+
interface NodeOptions {
|
|
18648
|
+
/**
|
|
18649
|
+
* jexl expression evaluated at runtime.
|
|
18650
|
+
* When present and falsy, the node and its subtree are skipped.
|
|
18651
|
+
*/
|
|
18652
|
+
readonly when?: string;
|
|
18653
|
+
/**
|
|
18654
|
+
* jexl expression evaluated at runtime.
|
|
18655
|
+
* When present and truthy, the node is skipped without propagating failure.
|
|
18656
|
+
*/
|
|
18657
|
+
readonly skip?: string;
|
|
18658
|
+
}
|
|
18659
|
+
/**
|
|
18660
|
+
* Options for delegate-role nodes created via the fluent builder or standalone factory.
|
|
18661
|
+
*/
|
|
18662
|
+
type DelegateToRoleOptions = NodeOptions & {
|
|
18663
|
+
/** Prompt text passed to the role subagent. Defaults to the node ID. */readonly prompt?: string; /** Completion behavior requested from the spawned role subagent. */
|
|
18664
|
+
readonly completion?: CompletionMode;
|
|
18665
|
+
};
|
|
18666
|
+
/**
|
|
18667
|
+
* Configuration for a delegate-agent node created via the fluent builder.
|
|
18668
|
+
*/
|
|
18669
|
+
interface AgentConfig {
|
|
18670
|
+
/** Identifier of the registered agent definition to invoke. */
|
|
18671
|
+
readonly agentId: string;
|
|
18672
|
+
/**
|
|
18673
|
+
* jexl expression resolving to the agent input payload.
|
|
18674
|
+
* When omitted the agent receives the full execution context.
|
|
18675
|
+
*/
|
|
18676
|
+
readonly inputExpression?: string;
|
|
18677
|
+
/**
|
|
18678
|
+
* JSON Schema for the expected agent output.
|
|
18679
|
+
*/
|
|
18680
|
+
readonly outputSchema?: Record<string, JsonValue>;
|
|
18681
|
+
}
|
|
18682
|
+
/**
|
|
18683
|
+
* Options for gate nodes, including the required resume schema.
|
|
18684
|
+
*/
|
|
18685
|
+
interface GateOptions {
|
|
18686
|
+
/**
|
|
18687
|
+
* Message shown to the reviewer in the approval dialog.
|
|
18688
|
+
* Supports `{{ }}` template interpolation.
|
|
18689
|
+
*/
|
|
18690
|
+
readonly prompt: string;
|
|
18691
|
+
/** Optional title for the approval dialog. */
|
|
18692
|
+
readonly title?: string;
|
|
18693
|
+
/**
|
|
18694
|
+
* Action to take when the timeout expires.
|
|
18695
|
+
* - `'approve'`: auto-approve and continue
|
|
18696
|
+
* - `'reject'`: auto-reject and fail
|
|
18697
|
+
*/
|
|
18698
|
+
readonly autoAction: 'approve' | 'reject';
|
|
18699
|
+
/**
|
|
18700
|
+
* Timeout in milliseconds before `autoAction` fires.
|
|
18701
|
+
* `null` blocks indefinitely.
|
|
18702
|
+
*/
|
|
18703
|
+
readonly timeoutMs: number | null;
|
|
18704
|
+
/**
|
|
18705
|
+
* Zod schema for the resume data payload.
|
|
18706
|
+
* Captured in `zodSchemas.gates[id]`; the JSON Schema equivalent goes in
|
|
18707
|
+
* the node's `resumeSchema` field.
|
|
18708
|
+
*/
|
|
18709
|
+
readonly resume?: z.ZodTypeAny;
|
|
18710
|
+
}
|
|
18711
|
+
/**
|
|
18712
|
+
* Options for iterate and iterate-chain nodes.
|
|
18713
|
+
*/
|
|
18714
|
+
interface IterateOptions {
|
|
18715
|
+
/**
|
|
18716
|
+
* jexl expression that resolves to an array at runtime.
|
|
18717
|
+
*/
|
|
18718
|
+
readonly collection: string;
|
|
18719
|
+
/**
|
|
18720
|
+
* Maximum number of concurrent item executions (iterate only).
|
|
18721
|
+
* `0` or absent means unlimited concurrency.
|
|
18722
|
+
*/
|
|
18723
|
+
readonly concurrency?: number;
|
|
18724
|
+
/** Common node conditions. */
|
|
18725
|
+
readonly when?: string;
|
|
18726
|
+
/** Common node skip condition. */
|
|
18727
|
+
readonly skip?: string;
|
|
18728
|
+
}
|
|
18729
|
+
/**
|
|
18730
|
+
* Parallel node execution mode.
|
|
18731
|
+
*
|
|
18732
|
+
* - `'all-settled'`: wait for all branches to settle (complete or fail)
|
|
18733
|
+
* - `'fail-fast'`: fail the node as soon as one branch fails
|
|
18734
|
+
*/
|
|
18735
|
+
type ParallelMode = 'all-settled' | 'fail-fast';
|
|
18736
|
+
/**
|
|
18737
|
+
* Options for parallel nodes created via the fluent builder.
|
|
18738
|
+
*/
|
|
18739
|
+
interface ParallelOptions {
|
|
18740
|
+
/** Execution mode controlling when the parallel node resolves. */
|
|
18741
|
+
readonly mode?: ParallelMode;
|
|
18742
|
+
/** Common node conditions. */
|
|
18743
|
+
readonly when?: string;
|
|
18744
|
+
/** Common node skip condition. */
|
|
18745
|
+
readonly skip?: string;
|
|
18746
|
+
}
|
|
18747
|
+
/**
|
|
18748
|
+
* Options accepted by the fluent `.artifact()` builder method.
|
|
18749
|
+
*
|
|
18750
|
+
* Extends {@link WorkflowArtifactBinding} with an optional Zod schema that
|
|
18751
|
+
* is captured in `zodSchemas.artifact` for runtime validation.
|
|
18752
|
+
*/
|
|
18753
|
+
interface ArtifactBindingOptions {
|
|
18754
|
+
/** Artifact kind string (e.g. `'implementation-review'`). */
|
|
18755
|
+
readonly kind: string;
|
|
18756
|
+
/** Schema version validated by the artifact service. */
|
|
18757
|
+
readonly schemaVersion: string;
|
|
18758
|
+
/** Scope at which the artifact is stored. */
|
|
18759
|
+
readonly scope: WorkflowArtifactBinding['scope'];
|
|
18760
|
+
/** Optional Zod schema for the artifact data payload. */
|
|
18761
|
+
readonly schema?: z.ZodTypeAny;
|
|
18762
|
+
/**
|
|
18763
|
+
* Optional jexl expression to resolve the artifact scope dynamically at runtime.
|
|
18764
|
+
*/
|
|
18765
|
+
readonly resolve?: string;
|
|
18766
|
+
/**
|
|
18767
|
+
* Optional jexl expression to create an artifact revision at runtime.
|
|
18768
|
+
*/
|
|
18769
|
+
readonly create?: string;
|
|
18770
|
+
/**
|
|
18771
|
+
* Optional jexl path expression pointing to a status field within the artifact.
|
|
18772
|
+
*/
|
|
18773
|
+
readonly statusPath?: string;
|
|
18774
|
+
}
|
|
18775
|
+
/**
|
|
18776
|
+
* Container for all Zod schemas kept out of the serializable `definition`.
|
|
18777
|
+
*
|
|
18778
|
+
* Schemas in this object are used for runtime validation and type inference.
|
|
18779
|
+
* Their JSON Schema equivalents are stored in the corresponding
|
|
18780
|
+
* `definition.inputSchema`, `definition.outputSchema`, etc. fields.
|
|
18892
18781
|
*/
|
|
18893
18782
|
interface WorkflowZodSchemas {
|
|
18894
18783
|
/** Zod schema for the workflow's input parameters. */
|
|
@@ -19019,9 +18908,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
|
|
|
19019
18908
|
* @param options - Optional node conditions; `prompt` defaults to the node ID
|
|
19020
18909
|
* @returns This builder for chaining
|
|
19021
18910
|
*/
|
|
19022
|
-
delegateToRole(id: string, role: string, options?:
|
|
19023
|
-
readonly prompt?: string;
|
|
19024
|
-
}): WorkflowBuilder<TTrigger>;
|
|
18911
|
+
delegateToRole(id: string, role: string, options?: DelegateToRoleOptions): WorkflowBuilder<TTrigger>;
|
|
19025
18912
|
/**
|
|
19026
18913
|
* Appends a parallel node with static branches to the root sequence.
|
|
19027
18914
|
*
|
|
@@ -19120,12 +19007,10 @@ declare function delegateToAgent(id: string, config: AgentConfig, options?: Node
|
|
|
19120
19007
|
* or an `iterateChain()` sub-chain.
|
|
19121
19008
|
* @param id - Unique node identifier
|
|
19122
19009
|
* @param role - Named product role to delegate to
|
|
19123
|
-
* @param options - Optional node conditions plus optional `prompt`
|
|
19010
|
+
* @param options - Optional node conditions plus optional `prompt` and `completion` overrides
|
|
19124
19011
|
* @returns A {@link WorkflowDelegateRoleNode}
|
|
19125
19012
|
*/
|
|
19126
|
-
declare function delegateToRole(id: string, role: string, options?:
|
|
19127
|
-
readonly prompt?: string;
|
|
19128
|
-
}): WorkflowDelegateRoleNode;
|
|
19013
|
+
declare function delegateToRole(id: string, role: string, options?: DelegateToRoleOptions): WorkflowDelegateRoleNode;
|
|
19129
19014
|
/**
|
|
19130
19015
|
* Creates a gate node for use as a standalone node or as a branch entry.
|
|
19131
19016
|
* @param id - Unique gate node identifier
|
|
@@ -19781,14 +19666,14 @@ declare const McpTransportConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
19781
19666
|
}, z.core.$strip>], "type">;
|
|
19782
19667
|
/** Exposure mode for MCP tools */
|
|
19783
19668
|
declare const McpExposureModeSchema: z.ZodEnum<{
|
|
19784
|
-
direct: "direct";
|
|
19785
|
-
discovery: "discovery";
|
|
19786
19669
|
hidden: "hidden";
|
|
19670
|
+
discovery: "discovery";
|
|
19671
|
+
direct: "direct";
|
|
19787
19672
|
}>;
|
|
19788
19673
|
/** Exposure mode variant that excludes hidden. */
|
|
19789
19674
|
declare const McpNonHiddenExposureModeSchema: z.ZodEnum<{
|
|
19790
|
-
direct: "direct";
|
|
19791
19675
|
discovery: "discovery";
|
|
19676
|
+
direct: "direct";
|
|
19792
19677
|
}>;
|
|
19793
19678
|
/**
|
|
19794
19679
|
* Glob-style MCP tool pattern used by expose/hide/direct/discovery filters.
|
|
@@ -19807,10 +19692,10 @@ declare const McpProfileConfigSchema: z.ZodObject<{
|
|
|
19807
19692
|
directTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19808
19693
|
discoveryTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19809
19694
|
toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
19810
|
-
direct: "direct";
|
|
19811
|
-
discovery: "discovery";
|
|
19812
19695
|
hidden: "hidden";
|
|
19813
|
-
|
|
19696
|
+
discovery: "discovery";
|
|
19697
|
+
direct: "direct";
|
|
19698
|
+
}>>>;
|
|
19814
19699
|
}, z.core.$strip>;
|
|
19815
19700
|
/** Resolved server info passed to adapter strategies */
|
|
19816
19701
|
declare const McpResolvedServerSchema: z.ZodObject<{
|
|
@@ -19849,8 +19734,8 @@ declare const McpResolvedServerSchema: z.ZodObject<{
|
|
|
19849
19734
|
type: z.ZodLiteral<"http">;
|
|
19850
19735
|
}, z.core.$strip>], "type">;
|
|
19851
19736
|
exposureMode: z.ZodEnum<{
|
|
19852
|
-
direct: "direct";
|
|
19853
19737
|
discovery: "discovery";
|
|
19738
|
+
direct: "direct";
|
|
19854
19739
|
}>;
|
|
19855
19740
|
}, z.core.$strip>;
|
|
19856
19741
|
/** Tool state in the MCP tool registry */
|
|
@@ -19861,9 +19746,9 @@ declare const McpToolStateSchema: z.ZodObject<{
|
|
|
19861
19746
|
description: z.ZodOptional<z.ZodString>;
|
|
19862
19747
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19863
19748
|
exposureMode: z.ZodEnum<{
|
|
19864
|
-
direct: "direct";
|
|
19865
|
-
discovery: "discovery";
|
|
19866
19749
|
hidden: "hidden";
|
|
19750
|
+
discovery: "discovery";
|
|
19751
|
+
direct: "direct";
|
|
19867
19752
|
}>;
|
|
19868
19753
|
enabled: z.ZodBoolean;
|
|
19869
19754
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19914,8 +19799,8 @@ declare const McpSessionContextSchema: z.ZodObject<{
|
|
|
19914
19799
|
type: z.ZodLiteral<"http">;
|
|
19915
19800
|
}, z.core.$strip>], "type">;
|
|
19916
19801
|
exposureMode: z.ZodEnum<{
|
|
19917
|
-
direct: "direct";
|
|
19918
19802
|
discovery: "discovery";
|
|
19803
|
+
direct: "direct";
|
|
19919
19804
|
}>;
|
|
19920
19805
|
}, z.core.$strip>>;
|
|
19921
19806
|
directTools: z.ZodArray<z.ZodObject<{
|
|
@@ -19925,9 +19810,9 @@ declare const McpSessionContextSchema: z.ZodObject<{
|
|
|
19925
19810
|
description: z.ZodOptional<z.ZodString>;
|
|
19926
19811
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19927
19812
|
exposureMode: z.ZodEnum<{
|
|
19928
|
-
direct: "direct";
|
|
19929
|
-
discovery: "discovery";
|
|
19930
19813
|
hidden: "hidden";
|
|
19814
|
+
discovery: "discovery";
|
|
19815
|
+
direct: "direct";
|
|
19931
19816
|
}>;
|
|
19932
19817
|
enabled: z.ZodBoolean;
|
|
19933
19818
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19944,9 +19829,9 @@ declare const McpSessionContextSchema: z.ZodObject<{
|
|
|
19944
19829
|
description: z.ZodOptional<z.ZodString>;
|
|
19945
19830
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19946
19831
|
exposureMode: z.ZodEnum<{
|
|
19947
|
-
direct: "direct";
|
|
19948
|
-
discovery: "discovery";
|
|
19949
19832
|
hidden: "hidden";
|
|
19833
|
+
discovery: "discovery";
|
|
19834
|
+
direct: "direct";
|
|
19950
19835
|
}>;
|
|
19951
19836
|
enabled: z.ZodBoolean;
|
|
19952
19837
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19972,9 +19857,9 @@ declare const McpRuntimeSessionContextSchema: z.ZodObject<{
|
|
|
19972
19857
|
description: z.ZodOptional<z.ZodString>;
|
|
19973
19858
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19974
19859
|
exposureMode: z.ZodEnum<{
|
|
19975
|
-
direct: "direct";
|
|
19976
|
-
discovery: "discovery";
|
|
19977
19860
|
hidden: "hidden";
|
|
19861
|
+
discovery: "discovery";
|
|
19862
|
+
direct: "direct";
|
|
19978
19863
|
}>;
|
|
19979
19864
|
enabled: z.ZodBoolean;
|
|
19980
19865
|
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20006,568 +19891,241 @@ declare const McpRuntimeSessionContextSchema: z.ZodObject<{
|
|
|
20006
19891
|
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
20007
19892
|
type: z.ZodLiteral<"sse">;
|
|
20008
19893
|
}, z.core.$strip>, z.ZodObject<{
|
|
20009
|
-
url: z.ZodString;
|
|
20010
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20011
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20012
|
-
name: z.ZodString;
|
|
20013
|
-
permission_policy: z.ZodEnum<{
|
|
20014
|
-
always_allow: "always_allow";
|
|
20015
|
-
always_ask: "always_ask";
|
|
20016
|
-
always_deny: "always_deny";
|
|
20017
|
-
}>;
|
|
20018
|
-
}, z.core.$strip>>>;
|
|
20019
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
20020
|
-
type: z.ZodLiteral<"http">;
|
|
20021
|
-
}, z.core.$strip>], "type">;
|
|
20022
|
-
exposureMode: z.ZodEnum<{
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
}>;
|
|
20026
|
-
}, z.core.$strip>>;
|
|
20027
|
-
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
20028
|
-
fullName: z.ZodString;
|
|
20029
|
-
originalName: z.ZodString;
|
|
20030
|
-
serverName: z.ZodString;
|
|
20031
|
-
description: z.ZodOptional<z.ZodString>;
|
|
20032
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20033
|
-
exposureMode: z.ZodEnum<{
|
|
20034
|
-
|
|
20035
|
-
discovery: "discovery";
|
|
20036
|
-
|
|
20037
|
-
}>;
|
|
20038
|
-
enabled: z.ZodBoolean;
|
|
20039
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
20040
|
-
discovery: "discovery";
|
|
20041
|
-
toolset: "toolset";
|
|
20042
|
-
}>>;
|
|
20043
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
20044
|
-
exposed: z.ZodBoolean;
|
|
20045
|
-
}, z.core.$strip>>;
|
|
20046
|
-
}, z.core.$strip>;
|
|
20047
|
-
/**
|
|
20048
|
-
* Identifies the agent and adapter session that opened an MCP connection.
|
|
20049
|
-
*
|
|
20050
|
-
* Carried through the HTTP transport headers on every request so the
|
|
20051
|
-
* singleton MCP server can route tool executions back to the correct
|
|
20052
|
-
* adapter session without a separate lookup.
|
|
20053
|
-
*/
|
|
20054
|
-
declare const McpAgentContextSchema: z.ZodObject<{
|
|
20055
|
-
agentId: z.ZodString;
|
|
20056
|
-
adapterId: z.ZodString;
|
|
20057
|
-
adapterName: z.ZodString;
|
|
20058
|
-
adapterSessionId: z.ZodString;
|
|
20059
|
-
sessionId: z.ZodString;
|
|
20060
|
-
}, z.core.$strip>;
|
|
20061
|
-
/** Inferred TypeScript type for `McpAgentContextSchema`. */
|
|
20062
|
-
type McpAgentContext = z.infer<typeof McpAgentContextSchema>;
|
|
20063
|
-
/** Inferred TypeScript type for `McpRuntimeSessionContextSchema`. */
|
|
20064
|
-
type McpRuntimeSessionContext = z.infer<typeof McpRuntimeSessionContextSchema>;
|
|
20065
|
-
type McpTransportConfig = z.infer<typeof McpTransportConfigSchema>;
|
|
20066
|
-
type McpExposureMode = z.infer<typeof McpExposureModeSchema>;
|
|
20067
|
-
type McpAutoReconnectConfig = z.infer<typeof McpAutoReconnectConfigSchema>;
|
|
20068
|
-
type McpProfileConfig = z.infer<typeof McpProfileConfigSchema>;
|
|
20069
|
-
type McpResolvedServer = z.infer<typeof McpResolvedServerSchema>;
|
|
20070
|
-
type McpToolState = z.infer<typeof McpToolStateSchema>;
|
|
20071
|
-
type McpSessionContext = z.infer<typeof McpSessionContextSchema>;
|
|
20072
|
-
//#endregion
|
|
20073
|
-
//#region core/contracts/src/mcp/constants.d.ts
|
|
20074
|
-
/** Tool name string constants for the MCP discovery meta-tools. */
|
|
20075
|
-
/** Tool name for invoking an MCP tool by full name. */
|
|
20076
|
-
declare const MCP_CALL_TOOL_NAME: "mcp_call";
|
|
20077
|
-
/** Tool name for discovering available MCP tools. */
|
|
20078
|
-
declare const MCP_DISCOVER_TOOL_NAME: "mcp_discover";
|
|
20079
|
-
/** Tool name for retrieving MCP tool input schema. */
|
|
20080
|
-
declare const MCP_SCHEMA_TOOL_NAME: "mcp_schema";
|
|
20081
|
-
//#endregion
|
|
20082
|
-
//#region core/contracts/src/mcp/namespace.d.ts
|
|
20083
|
-
/** Typed subject accessors for the MCP namespace. */
|
|
20084
|
-
declare const McpSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"mcp", {
|
|
20085
|
-
'server.connected': _$zod.ZodObject<{
|
|
20086
|
-
serverName: _$zod.ZodString;
|
|
20087
|
-
toolCount: _$zod.ZodNumber;
|
|
20088
|
-
}, _$zod_v4_core0.$strip>;
|
|
20089
|
-
'server.disconnected': _$zod.ZodObject<{
|
|
20090
|
-
serverName: _$zod.ZodString;
|
|
20091
|
-
reason: _$zod.ZodString;
|
|
20092
|
-
}, _$zod_v4_core0.$strip>;
|
|
20093
|
-
'server.reconnecting': _$zod.ZodObject<{
|
|
20094
|
-
serverName: _$zod.ZodString;
|
|
20095
|
-
attempt: _$zod.ZodNumber;
|
|
20096
|
-
}, _$zod_v4_core0.$strip>;
|
|
20097
|
-
'server.error': _$zod.ZodObject<{
|
|
20098
|
-
serverName: _$zod.ZodString;
|
|
20099
|
-
error: _$zod.ZodString;
|
|
20100
|
-
}, _$zod_v4_core0.$strip>;
|
|
20101
|
-
'tools.updated': _$zod.ZodObject<{
|
|
20102
|
-
added: _$zod.ZodArray<_$zod.ZodString>;
|
|
20103
|
-
removed: _$zod.ZodArray<_$zod.ZodString>;
|
|
20104
|
-
}, _$zod_v4_core0.$strip>;
|
|
20105
|
-
'tools.enabled': _$zod.ZodObject<{
|
|
20106
|
-
tools: _$zod.ZodArray<_$zod.ZodString>;
|
|
20107
|
-
source: _$zod.ZodEnum<{
|
|
20108
|
-
discovery: "discovery";
|
|
20109
|
-
toolset: "toolset";
|
|
20110
|
-
}>;
|
|
20111
|
-
}, _$zod_v4_core0.$strip>;
|
|
20112
|
-
'session.resolve': {
|
|
20113
|
-
request: _$zod.ZodObject<{
|
|
20114
|
-
sessionId: _$zod.ZodString;
|
|
20115
|
-
profileId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20116
|
-
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20117
|
-
profileMcpConfig: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
20118
|
-
directTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20119
|
-
discoveryTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20120
|
-
toolExposure: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
|
|
20121
|
-
direct: "direct";
|
|
20122
|
-
discovery: "discovery";
|
|
20123
|
-
hidden: "hidden";
|
|
20124
|
-
}>>>;
|
|
20125
|
-
}, _$zod_v4_core0.$strip>>;
|
|
20126
|
-
}, _$zod_v4_core0.$strip>;
|
|
20127
|
-
response: _$zod.ZodObject<{
|
|
20128
|
-
sessionId: _$zod.ZodString;
|
|
20129
|
-
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20130
|
-
profileId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20131
|
-
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20132
|
-
name: _$zod.ZodString;
|
|
20133
|
-
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
20134
|
-
type: _$zod.ZodLiteral<"stdio">;
|
|
20135
|
-
command: _$zod.ZodString;
|
|
20136
|
-
args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20137
|
-
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20138
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20139
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
20140
|
-
url: _$zod.ZodString;
|
|
20141
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20142
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
20143
|
-
name: _$zod.ZodString;
|
|
20144
|
-
permission_policy: _$zod.ZodEnum<{
|
|
20145
|
-
always_allow: "always_allow";
|
|
20146
|
-
always_ask: "always_ask";
|
|
20147
|
-
always_deny: "always_deny";
|
|
20148
|
-
}>;
|
|
20149
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
20150
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20151
|
-
type: _$zod.ZodLiteral<"sse">;
|
|
20152
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
20153
|
-
url: _$zod.ZodString;
|
|
20154
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20155
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
20156
|
-
name: _$zod.ZodString;
|
|
20157
|
-
permission_policy: _$zod.ZodEnum<{
|
|
20158
|
-
always_allow: "always_allow";
|
|
20159
|
-
always_ask: "always_ask";
|
|
20160
|
-
always_deny: "always_deny";
|
|
20161
|
-
}>;
|
|
20162
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
20163
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20164
|
-
type: _$zod.ZodLiteral<"http">;
|
|
20165
|
-
}, _$zod_v4_core0.$strip>], "type">;
|
|
20166
|
-
exposureMode: _$zod.ZodEnum<{
|
|
20167
|
-
direct: "direct";
|
|
20168
|
-
discovery: "discovery";
|
|
20169
|
-
}>;
|
|
20170
|
-
}, _$zod_v4_core0.$strip>>;
|
|
20171
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20172
|
-
fullName: _$zod.ZodString;
|
|
20173
|
-
originalName: _$zod.ZodString;
|
|
20174
|
-
serverName: _$zod.ZodString;
|
|
20175
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20176
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
20177
|
-
exposureMode: _$zod.ZodEnum<{
|
|
20178
|
-
direct: "direct";
|
|
20179
|
-
discovery: "discovery";
|
|
20180
|
-
hidden: "hidden";
|
|
20181
|
-
}>;
|
|
20182
|
-
enabled: _$zod.ZodBoolean;
|
|
20183
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
20184
|
-
discovery: "discovery";
|
|
20185
|
-
toolset: "toolset";
|
|
20186
|
-
}>>;
|
|
20187
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
20188
|
-
exposed: _$zod.ZodBoolean;
|
|
20189
|
-
}, _$zod_v4_core0.$strip>>;
|
|
20190
|
-
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20191
|
-
fullName: _$zod.ZodString;
|
|
20192
|
-
originalName: _$zod.ZodString;
|
|
20193
|
-
serverName: _$zod.ZodString;
|
|
20194
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20195
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
20196
|
-
exposureMode: _$zod.ZodEnum<{
|
|
20197
|
-
direct: "direct";
|
|
20198
|
-
discovery: "discovery";
|
|
20199
|
-
hidden: "hidden";
|
|
20200
|
-
}>;
|
|
20201
|
-
enabled: _$zod.ZodBoolean;
|
|
20202
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
20203
|
-
discovery: "discovery";
|
|
20204
|
-
toolset: "toolset";
|
|
20205
|
-
}>>;
|
|
20206
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
20207
|
-
exposed: _$zod.ZodBoolean;
|
|
20208
|
-
}, _$zod_v4_core0.$strip>>;
|
|
20209
|
-
}, _$zod_v4_core0.$strip>;
|
|
20210
|
-
};
|
|
20211
|
-
'session.register': {
|
|
20212
|
-
request: _$zod.ZodObject<{
|
|
20213
|
-
agentId: _$zod.ZodString;
|
|
20214
|
-
adapterId: _$zod.ZodString;
|
|
20215
|
-
adapterName: _$zod.ZodString;
|
|
20216
|
-
adapterSessionId: _$zod.ZodString;
|
|
20217
|
-
sessionId: _$zod.ZodString;
|
|
20218
|
-
contextOverrides: _$zod.ZodObject<{
|
|
20219
|
-
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20220
|
-
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20221
|
-
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20222
|
-
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20223
|
-
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20224
|
-
adapterName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20225
|
-
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20226
|
-
turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
20227
|
-
reasoning: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20228
|
-
toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20229
|
-
constraints: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
20230
|
-
}, _$zod_v4_core0.$strip>;
|
|
20231
|
-
pinned: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20232
|
-
}, _$zod_v4_core0.$strip>;
|
|
20233
|
-
response: _$zod.ZodObject<{
|
|
20234
|
-
port: _$zod.ZodNumber;
|
|
20235
|
-
}, _$zod_v4_core0.$strip>;
|
|
20236
|
-
};
|
|
20237
|
-
'session.unregister': {
|
|
20238
|
-
request: _$zod.ZodObject<{
|
|
20239
|
-
adapterSessionId: _$zod.ZodString;
|
|
20240
|
-
}, _$zod_v4_core0.$strip>;
|
|
20241
|
-
response: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
|
|
20242
|
-
};
|
|
20243
|
-
}>, "mcp">;
|
|
20244
|
-
//#endregion
|
|
20245
|
-
//#region core/contracts/src/subagent/schemas.d.ts
|
|
20246
|
-
/**
|
|
20247
|
-
* Context mode for subagent spawning.
|
|
20248
|
-
* - fork: Inherit parent's conversation history
|
|
20249
|
-
* - fresh: Start with clean context
|
|
20250
|
-
*/
|
|
20251
|
-
declare const ContextModeSchema: z.ZodEnum<{
|
|
20252
|
-
fork: "fork";
|
|
20253
|
-
fresh: "fresh";
|
|
20254
|
-
}>;
|
|
20255
|
-
type ContextMode = z.infer<typeof ContextModeSchema>;
|
|
20256
|
-
/**
|
|
20257
|
-
* Subagent status enum.
|
|
20258
|
-
* - spawning: Session creation in progress (set by spawn tool)
|
|
20259
|
-
* - running: Session created, agent executing (set by SubagentService)
|
|
20260
|
-
* - waiting_input: Blocked on request_input
|
|
20261
|
-
* - hung: No activity within inactivity timeout (non-terminal; coordinator decides action)
|
|
20262
|
-
* - completed/failed/cancelled: Terminal states
|
|
20263
|
-
*/
|
|
20264
|
-
declare const SubagentStatusSchema: z.ZodEnum<{
|
|
20265
|
-
completed: "completed";
|
|
20266
|
-
cancelled: "cancelled";
|
|
20267
|
-
failed: "failed";
|
|
20268
|
-
spawning: "spawning";
|
|
20269
|
-
running: "running";
|
|
20270
|
-
waiting_input: "waiting_input";
|
|
20271
|
-
hung: "hung";
|
|
20272
|
-
}>;
|
|
20273
|
-
type SubagentStatus = z.infer<typeof SubagentStatusSchema>;
|
|
20274
|
-
/**
|
|
20275
|
-
* Completion mode for a spawned subagent.
|
|
20276
|
-
*
|
|
20277
|
-
* - `'tool'` — the child must call `completeTask` to terminate (default, existing semantics).
|
|
20278
|
-
* - `'turn'` — the first completed agent turn terminalizes the subagent with the final
|
|
20279
|
-
* assistant message as its result. Use this for single-shot subagents that produce prose
|
|
20280
|
-
* or structured output without needing to call a completion tool.
|
|
20281
|
-
*
|
|
20282
|
-
* Conceptual note: subagents are conversations, not one-shot calls — the parent can send
|
|
20283
|
-
* follow-ups and the child can ask questions. "The agent stopped talking" does not generally
|
|
20284
|
-
* mean "the task is done", which is why `'tool'` is the default. Declare `'turn'` only when
|
|
20285
|
-
* the subagent's first response IS the result.
|
|
20286
|
-
*/
|
|
20287
|
-
declare const CompletionModeSchema: z.ZodEnum<{
|
|
20288
|
-
tool: "tool";
|
|
20289
|
-
turn: "turn";
|
|
20290
|
-
}>;
|
|
20291
|
-
type CompletionMode = z.infer<typeof CompletionModeSchema>;
|
|
20292
|
-
/**
|
|
20293
|
-
* Configuration for spawning a subagent.
|
|
20294
|
-
*/
|
|
20295
|
-
declare const SubagentConfigSchema: z.ZodObject<{
|
|
20296
|
-
task: z.ZodString;
|
|
20297
|
-
adapterName: z.ZodOptional<z.ZodString>;
|
|
20298
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
20299
|
-
providerContext: z.ZodOptional<z.ZodObject<{
|
|
20300
|
-
providerConfigId: z.ZodString;
|
|
20301
|
-
definitionId: z.ZodString;
|
|
20302
|
-
endpointOverrides: z.ZodOptional<z.ZodObject<{
|
|
20303
|
-
anthropic: z.ZodOptional<z.ZodString>;
|
|
20304
|
-
openai: z.ZodOptional<z.ZodString>;
|
|
20305
|
-
}, z.core.$strip>>;
|
|
20306
|
-
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
20307
|
-
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20308
|
-
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20309
|
-
}, z.core.$strip>>;
|
|
20310
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
20311
|
-
model: z.ZodOptional<z.ZodString>;
|
|
20312
|
-
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
20313
|
-
none: "none";
|
|
20314
|
-
low: "low";
|
|
20315
|
-
medium: "medium";
|
|
20316
|
-
high: "high";
|
|
20317
|
-
"extra-high": "extra-high";
|
|
20318
|
-
}>>;
|
|
20319
|
-
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
20320
|
-
fork: "fork";
|
|
20321
|
-
fresh: "fresh";
|
|
20322
|
-
}>>;
|
|
20323
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20324
|
-
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20325
|
-
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20326
|
-
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
20327
|
-
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
20328
|
-
responseSchema: z.ZodOptional<z.ZodObject<{
|
|
20329
|
-
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
20330
|
-
name: z.ZodOptional<z.ZodString>;
|
|
20331
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
20332
|
-
}, z.core.$strict>>;
|
|
20333
|
-
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
20334
|
-
completion: z.ZodOptional<z.ZodEnum<{
|
|
20335
|
-
tool: "tool";
|
|
20336
|
-
turn: "turn";
|
|
20337
|
-
}>>;
|
|
20338
|
-
}, z.core.$strip>;
|
|
20339
|
-
type SubagentConfig = z.infer<typeof SubagentConfigSchema>;
|
|
20340
|
-
/**
|
|
20341
|
-
* Platform-level constraints for subagent spawning.
|
|
20342
|
-
*/
|
|
20343
|
-
declare const SubagentConstraintsSchema: z.ZodObject<{
|
|
20344
|
-
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
20345
|
-
maxConcurrentPerSession: z.ZodDefault<z.ZodNumber>;
|
|
20346
|
-
maxTotalActive: z.ZodDefault<z.ZodNumber>;
|
|
20347
|
-
defaultRequestTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
20348
|
-
defaultAwaitTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
20349
|
-
stateRetentionMs: z.ZodDefault<z.ZodNumber>;
|
|
20350
|
-
inactivityTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
20351
|
-
sweepIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
20352
|
-
allowedAdapters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20353
|
-
allowedModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20354
|
-
}, z.core.$strip>;
|
|
20355
|
-
type SubagentConstraints = z.infer<typeof SubagentConstraintsSchema>;
|
|
20356
|
-
/**
|
|
20357
|
-
* Default runtime constraints (derived from schema defaults to avoid duplication).
|
|
20358
|
-
*/
|
|
20359
|
-
declare const DEFAULT_CONSTRAINTS: SubagentConstraints;
|
|
20360
|
-
declare const PendingRequestSchema: z.ZodObject<{
|
|
20361
|
-
messageId: z.ZodString;
|
|
20362
|
-
question: z.ZodString;
|
|
20363
|
-
context: z.ZodOptional<z.ZodString>;
|
|
20364
|
-
}, z.core.$strip>;
|
|
20365
|
-
type PendingRequest = z.infer<typeof PendingRequestSchema>;
|
|
20366
|
-
declare const ExecuteSubagentResponseSchema: z.ZodObject<{
|
|
20367
|
-
success: z.ZodBoolean;
|
|
20368
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
20369
|
-
error: z.ZodOptional<z.ZodString>;
|
|
20370
|
-
}, z.core.$strip>;
|
|
20371
|
-
type ExecuteSubagentResponse = z.infer<typeof ExecuteSubagentResponseSchema>;
|
|
20372
|
-
/**
|
|
20373
|
-
* Subagent execution failed during startup.
|
|
20374
|
-
*/
|
|
20375
|
-
declare const SubagentExecutionFailedSchema: z.ZodObject<{
|
|
20376
|
-
subagentId: z.ZodString;
|
|
20377
|
-
parentSessionId: z.ZodString;
|
|
20378
|
-
error: z.ZodString;
|
|
20379
|
-
phase: z.ZodEnum<{
|
|
20380
|
-
session_create: "session_create";
|
|
20381
|
-
adapter_start: "adapter_start";
|
|
20382
|
-
agent_start: "agent_start";
|
|
20383
|
-
}>;
|
|
20384
|
-
}, z.core.$strip>;
|
|
20385
|
-
type SubagentExecutionFailed = z.infer<typeof SubagentExecutionFailedSchema>;
|
|
20386
|
-
/**
|
|
20387
|
-
* Spawn RPC - replaces tool calling manager.track().
|
|
20388
|
-
* Service validates constraints, tracks subagent, emits spawned event.
|
|
20389
|
-
*/
|
|
20390
|
-
declare const SpawnSubagentRpcRequestSchema: z.ZodObject<{
|
|
20391
|
-
parentSessionId: z.ZodString;
|
|
20392
|
-
config: z.ZodObject<{
|
|
20393
|
-
task: z.ZodString;
|
|
20394
|
-
adapterName: z.ZodOptional<z.ZodString>;
|
|
20395
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
20396
|
-
providerContext: z.ZodOptional<z.ZodObject<{
|
|
20397
|
-
providerConfigId: z.ZodString;
|
|
20398
|
-
definitionId: z.ZodString;
|
|
20399
|
-
endpointOverrides: z.ZodOptional<z.ZodObject<{
|
|
20400
|
-
anthropic: z.ZodOptional<z.ZodString>;
|
|
20401
|
-
openai: z.ZodOptional<z.ZodString>;
|
|
20402
|
-
}, z.core.$strip>>;
|
|
20403
|
-
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
20404
|
-
credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20405
|
-
ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20406
|
-
}, z.core.$strip>>;
|
|
20407
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
20408
|
-
model: z.ZodOptional<z.ZodString>;
|
|
20409
|
-
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
20410
|
-
none: "none";
|
|
20411
|
-
low: "low";
|
|
20412
|
-
medium: "medium";
|
|
20413
|
-
high: "high";
|
|
20414
|
-
"extra-high": "extra-high";
|
|
20415
|
-
}>>;
|
|
20416
|
-
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
20417
|
-
fork: "fork";
|
|
20418
|
-
fresh: "fresh";
|
|
20419
|
-
}>>;
|
|
20420
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20421
|
-
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20422
|
-
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20423
|
-
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
20424
|
-
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
20425
|
-
responseSchema: z.ZodOptional<z.ZodObject<{
|
|
20426
|
-
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
20427
|
-
name: z.ZodOptional<z.ZodString>;
|
|
20428
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
20429
|
-
}, z.core.$strict>>;
|
|
20430
|
-
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
20431
|
-
completion: z.ZodOptional<z.ZodEnum<{
|
|
20432
|
-
tool: "tool";
|
|
20433
|
-
turn: "turn";
|
|
20434
|
-
}>>;
|
|
20435
|
-
}, z.core.$strip>;
|
|
20436
|
-
depth: z.ZodNumber;
|
|
20437
|
-
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
20438
|
-
}, z.core.$strip>;
|
|
20439
|
-
type SpawnSubagentRpcRequest = z.infer<typeof SpawnSubagentRpcRequestSchema>;
|
|
20440
|
-
declare const SpawnSubagentRpcResponseSchema: z.ZodObject<{
|
|
20441
|
-
subagentId: z.ZodString;
|
|
20442
|
-
status: z.ZodLiteral<"spawning">;
|
|
20443
|
-
}, z.core.$strip>;
|
|
20444
|
-
type SpawnSubagentRpcResponse = z.infer<typeof SpawnSubagentRpcResponseSchema>;
|
|
20445
|
-
/**
|
|
20446
|
-
* Await RPC - replaces callback-based awaiter.
|
|
20447
|
-
* Blocks until subagent reaches terminal state or timeout.
|
|
20448
|
-
*/
|
|
20449
|
-
declare const AwaitSubagentRequestSchema: z.ZodObject<{
|
|
20450
|
-
subagentId: z.ZodString;
|
|
20451
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
20452
|
-
}, z.core.$strip>;
|
|
20453
|
-
type AwaitSubagentRequest = z.infer<typeof AwaitSubagentRequestSchema>;
|
|
20454
|
-
declare const AwaitSubagentResponseSchema: z.ZodObject<{
|
|
20455
|
-
status: z.ZodEnum<{
|
|
20456
|
-
completed: "completed";
|
|
20457
|
-
cancelled: "cancelled";
|
|
20458
|
-
failed: "failed";
|
|
20459
|
-
waiting_input: "waiting_input";
|
|
20460
|
-
timeout: "timeout";
|
|
20461
|
-
}>;
|
|
20462
|
-
result: z.ZodOptional<z.ZodString>;
|
|
20463
|
-
error: z.ZodOptional<z.ZodString>;
|
|
20464
|
-
pendingRequest: z.ZodOptional<z.ZodObject<{
|
|
20465
|
-
messageId: z.ZodString;
|
|
20466
|
-
question: z.ZodString;
|
|
20467
|
-
context: z.ZodOptional<z.ZodString>;
|
|
20468
|
-
}, z.core.$strip>>;
|
|
20469
|
-
completionSource: z.ZodOptional<z.ZodEnum<{
|
|
20470
|
-
tool: "tool";
|
|
20471
|
-
turn: "turn";
|
|
20472
|
-
}>>;
|
|
20473
|
-
}, z.core.$strip>;
|
|
20474
|
-
type AwaitSubagentResponse = z.infer<typeof AwaitSubagentResponseSchema>;
|
|
20475
|
-
/**
|
|
20476
|
-
* Send RPC - sends message to subagent, optionally resolving pending request.
|
|
20477
|
-
*/
|
|
20478
|
-
declare const SendToSubagentRequestSchema: z.ZodObject<{
|
|
20479
|
-
subagentId: z.ZodString;
|
|
20480
|
-
content: z.ZodString;
|
|
20481
|
-
inResponseTo: z.ZodOptional<z.ZodString>;
|
|
20482
|
-
}, z.core.$strip>;
|
|
20483
|
-
type SendToSubagentRequest = z.infer<typeof SendToSubagentRequestSchema>;
|
|
20484
|
-
declare const SendToSubagentResponseSchema: z.ZodObject<{
|
|
20485
|
-
sent: z.ZodBoolean;
|
|
20486
|
-
resolvedPending: z.ZodBoolean;
|
|
20487
|
-
}, z.core.$strip>;
|
|
20488
|
-
type SendToSubagentResponse = z.infer<typeof SendToSubagentResponseSchema>;
|
|
20489
|
-
/**
|
|
20490
|
-
* Kill RPC - terminates a running subagent.
|
|
20491
|
-
*/
|
|
20492
|
-
declare const KillSubagentRequestSchema: z.ZodObject<{
|
|
20493
|
-
subagentId: z.ZodString;
|
|
20494
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
20495
|
-
}, z.core.$strip>;
|
|
20496
|
-
type KillSubagentRequest = z.infer<typeof KillSubagentRequestSchema>;
|
|
20497
|
-
declare const KillSubagentResponseSchema: z.ZodObject<{
|
|
20498
|
-
killed: z.ZodBoolean;
|
|
20499
|
-
}, z.core.$strip>;
|
|
20500
|
-
type KillSubagentResponse = z.infer<typeof KillSubagentResponseSchema>;
|
|
20501
|
-
/**
|
|
20502
|
-
* Report Progress RPC - child reports progress update.
|
|
20503
|
-
*/
|
|
20504
|
-
declare const ReportProgressRequestSchema: z.ZodObject<{
|
|
20505
|
-
subagentId: z.ZodString;
|
|
20506
|
-
update: z.ZodString;
|
|
20507
|
-
percentComplete: z.ZodOptional<z.ZodNumber>;
|
|
20508
|
-
}, z.core.$strip>;
|
|
20509
|
-
type ReportProgressRequest = z.infer<typeof ReportProgressRequestSchema>;
|
|
20510
|
-
declare const ReportProgressResponseSchema: z.ZodObject<{
|
|
20511
|
-
reported: z.ZodBoolean;
|
|
20512
|
-
}, z.core.$strip>;
|
|
20513
|
-
type ReportProgressResponse = z.infer<typeof ReportProgressResponseSchema>;
|
|
20514
|
-
/**
|
|
20515
|
-
* Request Input RPC - child requests input from parent.
|
|
20516
|
-
* Blocks until parent responds or timeout.
|
|
20517
|
-
*/
|
|
20518
|
-
declare const RequestInputRpcRequestSchema: z.ZodObject<{
|
|
20519
|
-
subagentId: z.ZodString;
|
|
20520
|
-
question: z.ZodString;
|
|
20521
|
-
context: z.ZodOptional<z.ZodString>;
|
|
20522
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
20523
|
-
}, z.core.$strip>;
|
|
20524
|
-
type RequestInputRpcRequest = z.infer<typeof RequestInputRpcRequestSchema>;
|
|
20525
|
-
declare const RequestInputRpcResponseSchema: z.ZodObject<{
|
|
20526
|
-
responded: z.ZodBoolean;
|
|
20527
|
-
response: z.ZodOptional<z.ZodString>;
|
|
20528
|
-
timedOut: z.ZodBoolean;
|
|
20529
|
-
}, z.core.$strip>;
|
|
20530
|
-
type RequestInputRpcResponse = z.infer<typeof RequestInputRpcResponseSchema>;
|
|
20531
|
-
/**
|
|
20532
|
-
* Complete Task RPC - child signals task completion.
|
|
20533
|
-
*/
|
|
20534
|
-
declare const CompleteTaskRequestSchema: z.ZodObject<{
|
|
20535
|
-
subagentId: z.ZodString;
|
|
20536
|
-
result: z.ZodString;
|
|
20537
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
20538
|
-
}, z.core.$strip>;
|
|
20539
|
-
type CompleteTaskRequest = z.infer<typeof CompleteTaskRequestSchema>;
|
|
20540
|
-
declare const CompleteTaskResponseSchema: z.ZodObject<{
|
|
20541
|
-
completed: z.ZodBoolean;
|
|
19894
|
+
url: z.ZodString;
|
|
19895
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19896
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19897
|
+
name: z.ZodString;
|
|
19898
|
+
permission_policy: z.ZodEnum<{
|
|
19899
|
+
always_allow: "always_allow";
|
|
19900
|
+
always_ask: "always_ask";
|
|
19901
|
+
always_deny: "always_deny";
|
|
19902
|
+
}>;
|
|
19903
|
+
}, z.core.$strip>>>;
|
|
19904
|
+
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
19905
|
+
type: z.ZodLiteral<"http">;
|
|
19906
|
+
}, z.core.$strip>], "type">;
|
|
19907
|
+
exposureMode: z.ZodEnum<{
|
|
19908
|
+
discovery: "discovery";
|
|
19909
|
+
direct: "direct";
|
|
19910
|
+
}>;
|
|
19911
|
+
}, z.core.$strip>>;
|
|
19912
|
+
discoverableTools: z.ZodArray<z.ZodObject<{
|
|
19913
|
+
fullName: z.ZodString;
|
|
19914
|
+
originalName: z.ZodString;
|
|
19915
|
+
serverName: z.ZodString;
|
|
19916
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19917
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19918
|
+
exposureMode: z.ZodEnum<{
|
|
19919
|
+
hidden: "hidden";
|
|
19920
|
+
discovery: "discovery";
|
|
19921
|
+
direct: "direct";
|
|
19922
|
+
}>;
|
|
19923
|
+
enabled: z.ZodBoolean;
|
|
19924
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
19925
|
+
discovery: "discovery";
|
|
19926
|
+
toolset: "toolset";
|
|
19927
|
+
}>>;
|
|
19928
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
19929
|
+
exposed: z.ZodBoolean;
|
|
19930
|
+
}, z.core.$strip>>;
|
|
20542
19931
|
}, z.core.$strip>;
|
|
20543
|
-
type CompleteTaskResponse = z.infer<typeof CompleteTaskResponseSchema>;
|
|
20544
19932
|
/**
|
|
20545
|
-
*
|
|
20546
|
-
* Returns all non-terminal subagents spawned by the given parent session.
|
|
19933
|
+
* Identifies the agent and adapter session that opened an MCP connection.
|
|
20547
19934
|
*
|
|
20548
|
-
*
|
|
20549
|
-
*
|
|
19935
|
+
* Carried through the HTTP transport headers on every request so the
|
|
19936
|
+
* singleton MCP server can route tool executions back to the correct
|
|
19937
|
+
* adapter session without a separate lookup.
|
|
20550
19938
|
*/
|
|
20551
|
-
declare const
|
|
20552
|
-
|
|
19939
|
+
declare const McpAgentContextSchema: z.ZodObject<{
|
|
19940
|
+
agentId: z.ZodString;
|
|
19941
|
+
adapterId: z.ZodString;
|
|
19942
|
+
adapterName: z.ZodString;
|
|
19943
|
+
adapterSessionId: z.ZodString;
|
|
19944
|
+
sessionId: z.ZodString;
|
|
20553
19945
|
}, z.core.$strip>;
|
|
20554
|
-
type
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20561
|
-
|
|
20562
|
-
|
|
20563
|
-
|
|
20564
|
-
|
|
20565
|
-
|
|
20566
|
-
|
|
19946
|
+
/** Inferred TypeScript type for `McpAgentContextSchema`. */
|
|
19947
|
+
type McpAgentContext = z.infer<typeof McpAgentContextSchema>;
|
|
19948
|
+
/** Inferred TypeScript type for `McpRuntimeSessionContextSchema`. */
|
|
19949
|
+
type McpRuntimeSessionContext = z.infer<typeof McpRuntimeSessionContextSchema>;
|
|
19950
|
+
type McpTransportConfig = z.infer<typeof McpTransportConfigSchema>;
|
|
19951
|
+
type McpExposureMode = z.infer<typeof McpExposureModeSchema>;
|
|
19952
|
+
type McpAutoReconnectConfig = z.infer<typeof McpAutoReconnectConfigSchema>;
|
|
19953
|
+
type McpProfileConfig = z.infer<typeof McpProfileConfigSchema>;
|
|
19954
|
+
type McpResolvedServer = z.infer<typeof McpResolvedServerSchema>;
|
|
19955
|
+
type McpToolState = z.infer<typeof McpToolStateSchema>;
|
|
19956
|
+
type McpSessionContext = z.infer<typeof McpSessionContextSchema>;
|
|
19957
|
+
//#endregion
|
|
19958
|
+
//#region core/contracts/src/mcp/constants.d.ts
|
|
19959
|
+
/** Tool name string constants for the MCP discovery meta-tools. */
|
|
19960
|
+
/** Tool name for invoking an MCP tool by full name. */
|
|
19961
|
+
declare const MCP_CALL_TOOL_NAME: "mcp_call";
|
|
19962
|
+
/** Tool name for discovering available MCP tools. */
|
|
19963
|
+
declare const MCP_DISCOVER_TOOL_NAME: "mcp_discover";
|
|
19964
|
+
/** Tool name for retrieving MCP tool input schema. */
|
|
19965
|
+
declare const MCP_SCHEMA_TOOL_NAME: "mcp_schema";
|
|
19966
|
+
//#endregion
|
|
19967
|
+
//#region core/contracts/src/mcp/namespace.d.ts
|
|
19968
|
+
/** Typed subject accessors for the MCP namespace. */
|
|
19969
|
+
declare const McpSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"mcp", {
|
|
19970
|
+
'server.connected': _$zod.ZodObject<{
|
|
19971
|
+
serverName: _$zod.ZodString;
|
|
19972
|
+
toolCount: _$zod.ZodNumber;
|
|
19973
|
+
}, _$zod_v4_core0.$strip>;
|
|
19974
|
+
'server.disconnected': _$zod.ZodObject<{
|
|
19975
|
+
serverName: _$zod.ZodString;
|
|
19976
|
+
reason: _$zod.ZodString;
|
|
19977
|
+
}, _$zod_v4_core0.$strip>;
|
|
19978
|
+
'server.reconnecting': _$zod.ZodObject<{
|
|
19979
|
+
serverName: _$zod.ZodString;
|
|
19980
|
+
attempt: _$zod.ZodNumber;
|
|
19981
|
+
}, _$zod_v4_core0.$strip>;
|
|
19982
|
+
'server.error': _$zod.ZodObject<{
|
|
19983
|
+
serverName: _$zod.ZodString;
|
|
19984
|
+
error: _$zod.ZodString;
|
|
19985
|
+
}, _$zod_v4_core0.$strip>;
|
|
19986
|
+
'tools.updated': _$zod.ZodObject<{
|
|
19987
|
+
added: _$zod.ZodArray<_$zod.ZodString>;
|
|
19988
|
+
removed: _$zod.ZodArray<_$zod.ZodString>;
|
|
19989
|
+
}, _$zod_v4_core0.$strip>;
|
|
19990
|
+
'tools.enabled': _$zod.ZodObject<{
|
|
19991
|
+
tools: _$zod.ZodArray<_$zod.ZodString>;
|
|
19992
|
+
source: _$zod.ZodEnum<{
|
|
19993
|
+
discovery: "discovery";
|
|
19994
|
+
toolset: "toolset";
|
|
20567
19995
|
}>;
|
|
20568
|
-
},
|
|
20569
|
-
|
|
20570
|
-
|
|
19996
|
+
}, _$zod_v4_core0.$strip>;
|
|
19997
|
+
'session.resolve': {
|
|
19998
|
+
request: _$zod.ZodObject<{
|
|
19999
|
+
sessionId: _$zod.ZodString;
|
|
20000
|
+
profileId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20001
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20002
|
+
profileMcpConfig: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
20003
|
+
directTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20004
|
+
discoveryTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20005
|
+
toolExposure: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
|
|
20006
|
+
hidden: "hidden";
|
|
20007
|
+
discovery: "discovery";
|
|
20008
|
+
direct: "direct";
|
|
20009
|
+
}>>>;
|
|
20010
|
+
}, _$zod_v4_core0.$strip>>;
|
|
20011
|
+
}, _$zod_v4_core0.$strip>;
|
|
20012
|
+
response: _$zod.ZodObject<{
|
|
20013
|
+
sessionId: _$zod.ZodString;
|
|
20014
|
+
projectId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20015
|
+
profileId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
20016
|
+
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20017
|
+
name: _$zod.ZodString;
|
|
20018
|
+
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
20019
|
+
type: _$zod.ZodLiteral<"stdio">;
|
|
20020
|
+
command: _$zod.ZodString;
|
|
20021
|
+
args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
20022
|
+
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20023
|
+
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20024
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
20025
|
+
url: _$zod.ZodString;
|
|
20026
|
+
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20027
|
+
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
20028
|
+
name: _$zod.ZodString;
|
|
20029
|
+
permission_policy: _$zod.ZodEnum<{
|
|
20030
|
+
always_allow: "always_allow";
|
|
20031
|
+
always_ask: "always_ask";
|
|
20032
|
+
always_deny: "always_deny";
|
|
20033
|
+
}>;
|
|
20034
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
20035
|
+
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20036
|
+
type: _$zod.ZodLiteral<"sse">;
|
|
20037
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
20038
|
+
url: _$zod.ZodString;
|
|
20039
|
+
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20040
|
+
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
20041
|
+
name: _$zod.ZodString;
|
|
20042
|
+
permission_policy: _$zod.ZodEnum<{
|
|
20043
|
+
always_allow: "always_allow";
|
|
20044
|
+
always_ask: "always_ask";
|
|
20045
|
+
always_deny: "always_deny";
|
|
20046
|
+
}>;
|
|
20047
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
20048
|
+
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20049
|
+
type: _$zod.ZodLiteral<"http">;
|
|
20050
|
+
}, _$zod_v4_core0.$strip>], "type">;
|
|
20051
|
+
exposureMode: _$zod.ZodEnum<{
|
|
20052
|
+
discovery: "discovery";
|
|
20053
|
+
direct: "direct";
|
|
20054
|
+
}>;
|
|
20055
|
+
}, _$zod_v4_core0.$strip>>;
|
|
20056
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20057
|
+
fullName: _$zod.ZodString;
|
|
20058
|
+
originalName: _$zod.ZodString;
|
|
20059
|
+
serverName: _$zod.ZodString;
|
|
20060
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20061
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
20062
|
+
exposureMode: _$zod.ZodEnum<{
|
|
20063
|
+
hidden: "hidden";
|
|
20064
|
+
discovery: "discovery";
|
|
20065
|
+
direct: "direct";
|
|
20066
|
+
}>;
|
|
20067
|
+
enabled: _$zod.ZodBoolean;
|
|
20068
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
20069
|
+
discovery: "discovery";
|
|
20070
|
+
toolset: "toolset";
|
|
20071
|
+
}>>;
|
|
20072
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
20073
|
+
exposed: _$zod.ZodBoolean;
|
|
20074
|
+
}, _$zod_v4_core0.$strip>>;
|
|
20075
|
+
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
20076
|
+
fullName: _$zod.ZodString;
|
|
20077
|
+
originalName: _$zod.ZodString;
|
|
20078
|
+
serverName: _$zod.ZodString;
|
|
20079
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20080
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
20081
|
+
exposureMode: _$zod.ZodEnum<{
|
|
20082
|
+
hidden: "hidden";
|
|
20083
|
+
discovery: "discovery";
|
|
20084
|
+
direct: "direct";
|
|
20085
|
+
}>;
|
|
20086
|
+
enabled: _$zod.ZodBoolean;
|
|
20087
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
20088
|
+
discovery: "discovery";
|
|
20089
|
+
toolset: "toolset";
|
|
20090
|
+
}>>;
|
|
20091
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
20092
|
+
exposed: _$zod.ZodBoolean;
|
|
20093
|
+
}, _$zod_v4_core0.$strip>>;
|
|
20094
|
+
}, _$zod_v4_core0.$strip>;
|
|
20095
|
+
};
|
|
20096
|
+
'session.register': {
|
|
20097
|
+
request: _$zod.ZodObject<{
|
|
20098
|
+
agentId: _$zod.ZodString;
|
|
20099
|
+
adapterId: _$zod.ZodString;
|
|
20100
|
+
adapterName: _$zod.ZodString;
|
|
20101
|
+
adapterSessionId: _$zod.ZodString;
|
|
20102
|
+
sessionId: _$zod.ZodString;
|
|
20103
|
+
contextOverrides: _$zod.ZodObject<{
|
|
20104
|
+
cwd: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20105
|
+
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
20106
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20107
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20108
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20109
|
+
adapterName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20110
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20111
|
+
turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
20112
|
+
reasoning: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20113
|
+
toolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20114
|
+
constraints: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
20115
|
+
}, _$zod_v4_core0.$strip>;
|
|
20116
|
+
pinned: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
20117
|
+
}, _$zod_v4_core0.$strip>;
|
|
20118
|
+
response: _$zod.ZodObject<{
|
|
20119
|
+
port: _$zod.ZodNumber;
|
|
20120
|
+
}, _$zod_v4_core0.$strip>;
|
|
20121
|
+
};
|
|
20122
|
+
'session.unregister': {
|
|
20123
|
+
request: _$zod.ZodObject<{
|
|
20124
|
+
adapterSessionId: _$zod.ZodString;
|
|
20125
|
+
}, _$zod_v4_core0.$strip>;
|
|
20126
|
+
response: _$zod.ZodObject<{}, _$zod_v4_core0.$strip>;
|
|
20127
|
+
};
|
|
20128
|
+
}>, "mcp">;
|
|
20571
20129
|
//#endregion
|
|
20572
20130
|
//#region core/contracts/src/subagent/errors.d.ts
|
|
20573
20131
|
/**
|
|
@@ -20715,8 +20273,8 @@ declare const SubagentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
20715
20273
|
completed: "completed";
|
|
20716
20274
|
cancelled: "cancelled";
|
|
20717
20275
|
failed: "failed";
|
|
20718
|
-
spawning: "spawning";
|
|
20719
20276
|
running: "running";
|
|
20277
|
+
spawning: "spawning";
|
|
20720
20278
|
waiting_input: "waiting_input";
|
|
20721
20279
|
hung: "hung";
|
|
20722
20280
|
}>;
|
|
@@ -20950,8 +20508,8 @@ declare const SubagentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
20950
20508
|
completed: "completed";
|
|
20951
20509
|
cancelled: "cancelled";
|
|
20952
20510
|
failed: "failed";
|
|
20953
|
-
spawning: "spawning";
|
|
20954
20511
|
running: "running";
|
|
20512
|
+
spawning: "spawning";
|
|
20955
20513
|
waiting_input: "waiting_input";
|
|
20956
20514
|
hung: "hung";
|
|
20957
20515
|
}>;
|