@makaio/framework 1.0.0-dev-1781368534585 → 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 +22 -21
- 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 +1387 -1829
- 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-DqJOg6Lv.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-7EPRy0nT.d.mts → index-B92SK0rO.d.mts} +4 -4
- package/dist/index-B99Prx5a.d.mts +859 -0
- package/dist/{index-BZPdJ-cc.d.mts → index-BLqtL-_a.d.mts} +8 -8
- package/dist/{index-BheaEhyI.d.mts → index-BM_y78ZA2.d.mts} +6 -6
- package/dist/{index-BYkOUd0x.d.mts → index-BQ8H7cvY.d.mts} +1 -1
- package/dist/{index-D--1C5cq.d.mts → index-BSFmBEDL.d.mts} +10 -10
- package/dist/{index-BfUq8fO52.d.mts → index-C0TEY7RE.d.mts} +3 -3
- package/dist/{index-D0KbxzzL.d.mts → index-C24PcW2r.d.mts} +8 -8
- package/dist/{index-Buo9H8RK.d.mts → index-CEdOq5Om.d.mts} +1 -1
- package/dist/{index-ClJybiRp.d.mts → index-CszoKxxO.d.mts} +380 -377
- package/dist/{index-BFuke0jw.d.mts → index-DBgv39-Q.d.mts} +38 -38
- package/dist/{index-DVhdhnCz.d.mts → index-DfNIhEm_.d.mts} +20 -20
- package/dist/{index-dAjtejnc.d.mts → index-DvETyI0_.d.mts} +1 -1
- package/dist/{index-DfyXMHbr.d.mts → index-GuspCNLR.d.mts} +4 -4
- package/dist/{index-DdZ9PDEE.d.mts → index-NyKdb8kT.d.mts} +12 -12
- package/dist/{index-V-TYYJbM.d.mts → index-QvciMc7_.d.mts} +502 -275
- package/dist/{index-zvz6W1SY.d.mts → index-WKF5BHsw.d.mts} +16 -16
- 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.d.mts +73 -4
- package/dist/mcp-http-server/index.mjs +4 -4
- package/dist/{namespace-BxxBhcV_.d.mts → namespace-B1Bldc48.d.mts} +108 -0
- package/dist/{namespace-Cq8ScJGp.d.mts → namespace-BAJTZXWc.d.mts} +22 -22
- package/dist/{namespace-Dfq6MDN9.mjs → namespace-BxrHvS5c.mjs} +1 -1
- package/dist/{namespace-Do0AUzwu.d.mts → namespace-CEqkI6Zu.d.mts} +6 -6
- package/dist/namespace-CH_NWUKW.mjs +1 -0
- package/dist/{namespace-Bx40zNgT.d.mts → namespace-CN2TfSCY.d.mts} +2 -2
- package/dist/{namespace-Dg8SmyyE.d.mts → namespace-C_kaVySz.d.mts} +4 -4
- package/dist/{namespace-CWqZfW61.d.mts → namespace-D_ZXa76m.d.mts} +32 -32
- package/dist/{namespace-BybC0T6L.d.mts → namespace-DbvQ4HYc.d.mts} +166 -156
- package/dist/{namespace-DC1VWMKj2.d.mts → namespace-Dr1wDUZA2.d.mts} +2 -2
- 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-C-yfxlRI.d.mts → schema-msWs4YhT.d.mts} +1 -1
- package/dist/{schemas-CW0h1h6l.d.mts → schemas-CN9hprME.d.mts} +3 -3
- package/dist/{schemas-BFO5Ovdp.d.mts → schemas-CRS7tkFP.d.mts} +4 -4
- package/dist/{schemas-CJYNpT6v.d.mts → schemas-Cae5dubB.d.mts} +6 -6
- package/dist/schemas-CiMm2zrE.mjs +1 -0
- package/dist/{schemas-t1VR6_b_.d.mts → schemas-DMl7IKG-.d.mts} +3 -3
- package/dist/{schemas-BFYzBjpp2.d.mts → schemas-DRZJK6hW2.d.mts} +9 -9
- package/dist/{schemas-CTgHFHmK.d.mts → schemas-DZfBym73.d.mts} +7 -7
- package/dist/{schemas-Dk1d5uZE.d.mts → schemas-xoTn8JZb.d.mts} +166 -156
- 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 +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/filesystem/index.mjs +1 -1
- package/dist/services/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 +152 -147
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/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 +6 -6
- 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/extension-configs/namespace.d.mts +3 -3
- 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/{session-lineage-BoyuhtiV.d.mts → session-lineage-DFkJgYt5.d.mts} +1 -1
- 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/{storage-namespace-n4KCNecF.d.mts → storage-namespace-gey7EUhM.d.mts} +10 -10
- 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-8pL9-Me7.d.mts → types-4LKM7ZfA.d.mts} +320 -201
- package/dist/{types-D0fPFh-D.d.mts → types-BB8iIAjZ.d.mts} +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- 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 +31 -31
- 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-BCKRUuI2.d.mts → index-DLPjliGd.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-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-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-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-hSrzflwZ.mjs → schemas-DAYPhB5K.mjs} +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/{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/{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
|
-
servers: z.ZodArray<z.ZodObject<{
|
|
194
|
-
name: z.ZodString;
|
|
195
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
196
|
-
type: z.ZodLiteral<"stdio">;
|
|
197
|
-
command: z.ZodString;
|
|
198
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
199
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
200
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
-
url: z.ZodString;
|
|
203
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
204
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
-
name: z.ZodString;
|
|
206
|
-
permission_policy: z.ZodEnum<{
|
|
207
|
-
always_allow: "always_allow";
|
|
208
|
-
always_ask: "always_ask";
|
|
209
|
-
always_deny: "always_deny";
|
|
210
|
-
}>;
|
|
211
|
-
}, z.core.$strip>>>;
|
|
212
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
-
type: z.ZodLiteral<"sse">;
|
|
214
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
-
url: z.ZodString;
|
|
216
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
217
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
-
name: z.ZodString;
|
|
219
|
-
permission_policy: z.ZodEnum<{
|
|
220
|
-
always_allow: "always_allow";
|
|
221
|
-
always_ask: "always_ask";
|
|
222
|
-
always_deny: "always_deny";
|
|
223
|
-
}>;
|
|
224
|
-
}, z.core.$strip>>>;
|
|
225
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
-
type: z.ZodLiteral<"http">;
|
|
227
|
-
}, z.core.$strip>], "type">;
|
|
228
|
-
exposureMode: z.ZodEnum<{
|
|
229
|
-
direct: "direct";
|
|
230
|
-
discovery: "discovery";
|
|
231
|
-
}>;
|
|
232
|
-
}, z.core.$strip>>;
|
|
233
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
234
|
-
fullName: z.ZodString;
|
|
235
|
-
originalName: z.ZodString;
|
|
236
|
-
serverName: z.ZodString;
|
|
237
|
-
description: z.ZodOptional<z.ZodString>;
|
|
238
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
239
|
-
exposureMode: z.ZodEnum<{
|
|
240
|
-
direct: "direct";
|
|
241
|
-
discovery: "discovery";
|
|
242
|
-
hidden: "hidden";
|
|
243
|
-
}>;
|
|
244
|
-
enabled: z.ZodBoolean;
|
|
245
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
246
|
-
discovery: "discovery";
|
|
247
|
-
toolset: "toolset";
|
|
248
|
-
}>>;
|
|
249
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
250
|
-
exposed: z.ZodBoolean;
|
|
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
|
-
servers: z.ZodArray<z.ZodObject<{
|
|
310
|
-
name: z.ZodString;
|
|
311
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
312
|
-
type: z.ZodLiteral<"stdio">;
|
|
313
|
-
command: z.ZodString;
|
|
314
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
315
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
316
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
-
url: z.ZodString;
|
|
319
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
320
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
|
-
name: z.ZodString;
|
|
322
|
-
permission_policy: z.ZodEnum<{
|
|
323
|
-
always_allow: "always_allow";
|
|
324
|
-
always_ask: "always_ask";
|
|
325
|
-
always_deny: "always_deny";
|
|
326
|
-
}>;
|
|
327
|
-
}, z.core.$strip>>>;
|
|
328
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
-
type: z.ZodLiteral<"sse">;
|
|
330
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
-
url: z.ZodString;
|
|
332
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
333
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
-
name: z.ZodString;
|
|
335
|
-
permission_policy: z.ZodEnum<{
|
|
336
|
-
always_allow: "always_allow";
|
|
337
|
-
always_ask: "always_ask";
|
|
338
|
-
always_deny: "always_deny";
|
|
339
|
-
}>;
|
|
340
|
-
}, z.core.$strip>>>;
|
|
341
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
342
|
-
type: z.ZodLiteral<"http">;
|
|
343
|
-
}, z.core.$strip>], "type">;
|
|
344
|
-
exposureMode: z.ZodEnum<{
|
|
345
|
-
direct: "direct";
|
|
346
|
-
discovery: "discovery";
|
|
347
|
-
}>;
|
|
348
|
-
}, z.core.$strip>>;
|
|
349
|
-
directTools: z.ZodArray<z.ZodObject<{
|
|
350
|
-
fullName: z.ZodString;
|
|
351
|
-
originalName: z.ZodString;
|
|
352
|
-
serverName: z.ZodString;
|
|
353
|
-
description: z.ZodOptional<z.ZodString>;
|
|
354
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
355
|
-
exposureMode: z.ZodEnum<{
|
|
356
|
-
direct: "direct";
|
|
357
|
-
discovery: "discovery";
|
|
358
|
-
hidden: "hidden";
|
|
359
|
-
}>;
|
|
360
|
-
enabled: z.ZodBoolean;
|
|
361
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
362
|
-
discovery: "discovery";
|
|
363
|
-
toolset: "toolset";
|
|
364
|
-
}>>;
|
|
365
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
366
|
-
exposed: z.ZodBoolean;
|
|
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
|
-
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
437
|
-
name: _$zod.ZodString;
|
|
438
|
-
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
439
|
-
type: _$zod.ZodLiteral<"stdio">;
|
|
440
|
-
command: _$zod.ZodString;
|
|
441
|
-
args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
442
|
-
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
443
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
444
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
445
|
-
url: _$zod.ZodString;
|
|
446
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
447
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
448
|
-
name: _$zod.ZodString;
|
|
449
|
-
permission_policy: _$zod.ZodEnum<{
|
|
450
|
-
always_allow: "always_allow";
|
|
451
|
-
always_ask: "always_ask";
|
|
452
|
-
always_deny: "always_deny";
|
|
453
|
-
}>;
|
|
454
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
455
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
456
|
-
type: _$zod.ZodLiteral<"sse">;
|
|
457
|
-
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
458
|
-
url: _$zod.ZodString;
|
|
459
|
-
headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
460
|
-
tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
461
|
-
name: _$zod.ZodString;
|
|
462
|
-
permission_policy: _$zod.ZodEnum<{
|
|
463
|
-
always_allow: "always_allow";
|
|
464
|
-
always_ask: "always_ask";
|
|
465
|
-
always_deny: "always_deny";
|
|
466
|
-
}>;
|
|
467
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
468
|
-
alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
469
|
-
type: _$zod.ZodLiteral<"http">;
|
|
470
|
-
}, _$zod_v4_core0.$strip>], "type">;
|
|
471
|
-
exposureMode: _$zod.ZodEnum<{
|
|
472
|
-
direct: "direct";
|
|
473
|
-
discovery: "discovery";
|
|
474
|
-
}>;
|
|
475
|
-
}, _$zod_v4_core0.$strip>>;
|
|
476
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
477
|
-
fullName: _$zod.ZodString;
|
|
478
|
-
originalName: _$zod.ZodString;
|
|
479
|
-
serverName: _$zod.ZodString;
|
|
480
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
481
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
482
|
-
exposureMode: _$zod.ZodEnum<{
|
|
483
|
-
direct: "direct";
|
|
484
|
-
discovery: "discovery";
|
|
485
|
-
hidden: "hidden";
|
|
486
|
-
}>;
|
|
487
|
-
enabled: _$zod.ZodBoolean;
|
|
488
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
489
|
-
discovery: "discovery";
|
|
490
|
-
toolset: "toolset";
|
|
491
|
-
}>>;
|
|
492
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
493
|
-
exposed: _$zod.ZodBoolean;
|
|
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<{
|
|
@@ -758,6 +268,25 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
758
268
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
759
269
|
mcpSessionContext: _$zod.ZodObject<{
|
|
760
270
|
sessionId: _$zod.ZodString;
|
|
271
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
272
|
+
fullName: _$zod.ZodString;
|
|
273
|
+
originalName: _$zod.ZodString;
|
|
274
|
+
serverName: _$zod.ZodString;
|
|
275
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
276
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
277
|
+
exposureMode: _$zod.ZodEnum<{
|
|
278
|
+
hidden: "hidden";
|
|
279
|
+
discovery: "discovery";
|
|
280
|
+
direct: "direct";
|
|
281
|
+
}>;
|
|
282
|
+
enabled: _$zod.ZodBoolean;
|
|
283
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
284
|
+
discovery: "discovery";
|
|
285
|
+
toolset: "toolset";
|
|
286
|
+
}>>;
|
|
287
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
288
|
+
exposed: _$zod.ZodBoolean;
|
|
289
|
+
}, _$zod_v4_core0.$strip>>;
|
|
761
290
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
762
291
|
name: _$zod.ZodString;
|
|
763
292
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -794,39 +323,20 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
794
323
|
type: _$zod.ZodLiteral<"http">;
|
|
795
324
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
796
325
|
exposureMode: _$zod.ZodEnum<{
|
|
797
|
-
direct: "direct";
|
|
798
326
|
discovery: "discovery";
|
|
327
|
+
direct: "direct";
|
|
799
328
|
}>;
|
|
800
329
|
}, _$zod_v4_core0.$strip>>;
|
|
801
|
-
|
|
330
|
+
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
802
331
|
fullName: _$zod.ZodString;
|
|
803
332
|
originalName: _$zod.ZodString;
|
|
804
333
|
serverName: _$zod.ZodString;
|
|
805
334
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
806
335
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
807
336
|
exposureMode: _$zod.ZodEnum<{
|
|
808
|
-
direct: "direct";
|
|
809
|
-
discovery: "discovery";
|
|
810
337
|
hidden: "hidden";
|
|
811
|
-
}>;
|
|
812
|
-
enabled: _$zod.ZodBoolean;
|
|
813
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
814
338
|
discovery: "discovery";
|
|
815
|
-
toolset: "toolset";
|
|
816
|
-
}>>;
|
|
817
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
818
|
-
exposed: _$zod.ZodBoolean;
|
|
819
|
-
}, _$zod_v4_core0.$strip>>;
|
|
820
|
-
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
821
|
-
fullName: _$zod.ZodString;
|
|
822
|
-
originalName: _$zod.ZodString;
|
|
823
|
-
serverName: _$zod.ZodString;
|
|
824
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
825
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
826
|
-
exposureMode: _$zod.ZodEnum<{
|
|
827
339
|
direct: "direct";
|
|
828
|
-
discovery: "discovery";
|
|
829
|
-
hidden: "hidden";
|
|
830
340
|
}>;
|
|
831
341
|
enabled: _$zod.ZodBoolean;
|
|
832
342
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -853,11 +363,11 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
|
|
|
853
363
|
request: _$zod.ZodObject<{
|
|
854
364
|
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
855
365
|
messageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
856
|
-
adapterName: _$zod.ZodString;
|
|
857
366
|
agentId: _$zod.ZodString;
|
|
858
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
859
367
|
adapterId: _$zod.ZodString;
|
|
368
|
+
adapterName: _$zod.ZodString;
|
|
860
369
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
370
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
861
371
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
862
372
|
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
863
373
|
providerConfigId: _$zod.ZodString;
|
|
@@ -2043,6 +1553,25 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2043
1553
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2044
1554
|
mcpSessionContext: _$zod.ZodObject<{
|
|
2045
1555
|
sessionId: _$zod.ZodString;
|
|
1556
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
1557
|
+
fullName: _$zod.ZodString;
|
|
1558
|
+
originalName: _$zod.ZodString;
|
|
1559
|
+
serverName: _$zod.ZodString;
|
|
1560
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1561
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
1562
|
+
exposureMode: _$zod.ZodEnum<{
|
|
1563
|
+
hidden: "hidden";
|
|
1564
|
+
discovery: "discovery";
|
|
1565
|
+
direct: "direct";
|
|
1566
|
+
}>;
|
|
1567
|
+
enabled: _$zod.ZodBoolean;
|
|
1568
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1569
|
+
discovery: "discovery";
|
|
1570
|
+
toolset: "toolset";
|
|
1571
|
+
}>>;
|
|
1572
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
1573
|
+
exposed: _$zod.ZodBoolean;
|
|
1574
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2046
1575
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2047
1576
|
name: _$zod.ZodString;
|
|
2048
1577
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -2079,28 +1608,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2079
1608
|
type: _$zod.ZodLiteral<"http">;
|
|
2080
1609
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
2081
1610
|
exposureMode: _$zod.ZodEnum<{
|
|
2082
|
-
direct: "direct";
|
|
2083
1611
|
discovery: "discovery";
|
|
2084
|
-
}>;
|
|
2085
|
-
}, _$zod_v4_core0.$strip>>;
|
|
2086
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2087
|
-
fullName: _$zod.ZodString;
|
|
2088
|
-
originalName: _$zod.ZodString;
|
|
2089
|
-
serverName: _$zod.ZodString;
|
|
2090
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2091
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2092
|
-
exposureMode: _$zod.ZodEnum<{
|
|
2093
1612
|
direct: "direct";
|
|
2094
|
-
discovery: "discovery";
|
|
2095
|
-
hidden: "hidden";
|
|
2096
1613
|
}>;
|
|
2097
|
-
enabled: _$zod.ZodBoolean;
|
|
2098
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2099
|
-
discovery: "discovery";
|
|
2100
|
-
toolset: "toolset";
|
|
2101
|
-
}>>;
|
|
2102
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2103
|
-
exposed: _$zod.ZodBoolean;
|
|
2104
1614
|
}, _$zod_v4_core0.$strip>>;
|
|
2105
1615
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2106
1616
|
fullName: _$zod.ZodString;
|
|
@@ -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<{
|
|
@@ -2138,11 +1648,11 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
2138
1648
|
request: _$zod.ZodObject<{
|
|
2139
1649
|
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2140
1650
|
messageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2141
|
-
adapterName: _$zod.ZodString;
|
|
2142
1651
|
agentId: _$zod.ZodString;
|
|
2143
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2144
1652
|
adapterId: _$zod.ZodString;
|
|
1653
|
+
adapterName: _$zod.ZodString;
|
|
2145
1654
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2146
1656
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2147
1657
|
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2148
1658
|
providerConfigId: _$zod.ZodString;
|
|
@@ -3355,6 +2865,25 @@ declare const AgentSchemas: {
|
|
|
3355
2865
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3356
2866
|
mcpSessionContext: _$zod.ZodObject<{
|
|
3357
2867
|
sessionId: _$zod.ZodString;
|
|
2868
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2869
|
+
fullName: _$zod.ZodString;
|
|
2870
|
+
originalName: _$zod.ZodString;
|
|
2871
|
+
serverName: _$zod.ZodString;
|
|
2872
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2873
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2874
|
+
exposureMode: _$zod.ZodEnum<{
|
|
2875
|
+
hidden: "hidden";
|
|
2876
|
+
discovery: "discovery";
|
|
2877
|
+
direct: "direct";
|
|
2878
|
+
}>;
|
|
2879
|
+
enabled: _$zod.ZodBoolean;
|
|
2880
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2881
|
+
discovery: "discovery";
|
|
2882
|
+
toolset: "toolset";
|
|
2883
|
+
}>>;
|
|
2884
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2885
|
+
exposed: _$zod.ZodBoolean;
|
|
2886
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3358
2887
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
3359
2888
|
name: _$zod.ZodString;
|
|
3360
2889
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -3391,28 +2920,9 @@ declare const AgentSchemas: {
|
|
|
3391
2920
|
type: _$zod.ZodLiteral<"http">;
|
|
3392
2921
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
3393
2922
|
exposureMode: _$zod.ZodEnum<{
|
|
3394
|
-
direct: "direct";
|
|
3395
2923
|
discovery: "discovery";
|
|
3396
|
-
}>;
|
|
3397
|
-
}, _$zod_v4_core0.$strip>>;
|
|
3398
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
3399
|
-
fullName: _$zod.ZodString;
|
|
3400
|
-
originalName: _$zod.ZodString;
|
|
3401
|
-
serverName: _$zod.ZodString;
|
|
3402
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3403
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
3404
|
-
exposureMode: _$zod.ZodEnum<{
|
|
3405
2924
|
direct: "direct";
|
|
3406
|
-
discovery: "discovery";
|
|
3407
|
-
hidden: "hidden";
|
|
3408
2925
|
}>;
|
|
3409
|
-
enabled: _$zod.ZodBoolean;
|
|
3410
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3411
|
-
discovery: "discovery";
|
|
3412
|
-
toolset: "toolset";
|
|
3413
|
-
}>>;
|
|
3414
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3415
|
-
exposed: _$zod.ZodBoolean;
|
|
3416
2926
|
}, _$zod_v4_core0.$strip>>;
|
|
3417
2927
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
3418
2928
|
fullName: _$zod.ZodString;
|
|
@@ -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<{
|
|
@@ -3450,11 +2960,11 @@ declare const AgentSchemas: {
|
|
|
3450
2960
|
request: _$zod.ZodObject<{
|
|
3451
2961
|
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3452
2962
|
messageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3453
|
-
adapterName: _$zod.ZodString;
|
|
3454
2963
|
agentId: _$zod.ZodString;
|
|
3455
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3456
2964
|
adapterId: _$zod.ZodString;
|
|
2965
|
+
adapterName: _$zod.ZodString;
|
|
3457
2966
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2967
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3458
2968
|
occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3459
2969
|
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3460
2970
|
providerConfigId: _$zod.ZodString;
|
|
@@ -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>;
|
|
@@ -5202,6 +4712,25 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5202
4712
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
5203
4713
|
mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
5204
4714
|
sessionId: _$zod.ZodString;
|
|
4715
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
4716
|
+
fullName: _$zod.ZodString;
|
|
4717
|
+
originalName: _$zod.ZodString;
|
|
4718
|
+
serverName: _$zod.ZodString;
|
|
4719
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4720
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
4721
|
+
exposureMode: _$zod.ZodEnum<{
|
|
4722
|
+
hidden: "hidden";
|
|
4723
|
+
discovery: "discovery";
|
|
4724
|
+
direct: "direct";
|
|
4725
|
+
}>;
|
|
4726
|
+
enabled: _$zod.ZodBoolean;
|
|
4727
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
4728
|
+
discovery: "discovery";
|
|
4729
|
+
toolset: "toolset";
|
|
4730
|
+
}>>;
|
|
4731
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
4732
|
+
exposed: _$zod.ZodBoolean;
|
|
4733
|
+
}, _$zod_v4_core0.$strip>>;
|
|
5205
4734
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5206
4735
|
name: _$zod.ZodString;
|
|
5207
4736
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -5238,28 +4767,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5238
4767
|
type: _$zod.ZodLiteral<"http">;
|
|
5239
4768
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
5240
4769
|
exposureMode: _$zod.ZodEnum<{
|
|
5241
|
-
direct: "direct";
|
|
5242
4770
|
discovery: "discovery";
|
|
5243
|
-
}>;
|
|
5244
|
-
}, _$zod_v4_core0.$strip>>;
|
|
5245
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5246
|
-
fullName: _$zod.ZodString;
|
|
5247
|
-
originalName: _$zod.ZodString;
|
|
5248
|
-
serverName: _$zod.ZodString;
|
|
5249
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5250
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
5251
|
-
exposureMode: _$zod.ZodEnum<{
|
|
5252
4771
|
direct: "direct";
|
|
5253
|
-
discovery: "discovery";
|
|
5254
|
-
hidden: "hidden";
|
|
5255
4772
|
}>;
|
|
5256
|
-
enabled: _$zod.ZodBoolean;
|
|
5257
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5258
|
-
discovery: "discovery";
|
|
5259
|
-
toolset: "toolset";
|
|
5260
|
-
}>>;
|
|
5261
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
5262
|
-
exposed: _$zod.ZodBoolean;
|
|
5263
4773
|
}, _$zod_v4_core0.$strip>>;
|
|
5264
4774
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5265
4775
|
fullName: _$zod.ZodString;
|
|
@@ -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>;
|
|
@@ -5794,8 +5305,8 @@ declare const VCSPullRequestSchema: z.ZodObject<{
|
|
|
5794
5305
|
title: z.ZodString;
|
|
5795
5306
|
state: z.ZodEnum<{
|
|
5796
5307
|
merged: "merged";
|
|
5797
|
-
open: "open";
|
|
5798
5308
|
closed: "closed";
|
|
5309
|
+
open: "open";
|
|
5799
5310
|
}>;
|
|
5800
5311
|
draft: z.ZodBoolean;
|
|
5801
5312
|
author: z.ZodString;
|
|
@@ -5842,8 +5353,8 @@ declare const VCSPullRequestDetailSchema: z.ZodObject<{
|
|
|
5842
5353
|
title: z.ZodString;
|
|
5843
5354
|
state: z.ZodEnum<{
|
|
5844
5355
|
merged: "merged";
|
|
5845
|
-
open: "open";
|
|
5846
5356
|
closed: "closed";
|
|
5357
|
+
open: "open";
|
|
5847
5358
|
}>;
|
|
5848
5359
|
draft: z.ZodBoolean;
|
|
5849
5360
|
author: z.ZodString;
|
|
@@ -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";
|
|
@@ -6222,8 +5733,8 @@ declare const VCSSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
6222
5733
|
title: _$zod.ZodString;
|
|
6223
5734
|
state: _$zod.ZodEnum<{
|
|
6224
5735
|
merged: "merged";
|
|
6225
|
-
open: "open";
|
|
6226
5736
|
closed: "closed";
|
|
5737
|
+
open: "open";
|
|
6227
5738
|
}>;
|
|
6228
5739
|
draft: _$zod.ZodBoolean;
|
|
6229
5740
|
author: _$zod.ZodString;
|
|
@@ -6257,8 +5768,8 @@ declare const VCSSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
6257
5768
|
title: _$zod.ZodString;
|
|
6258
5769
|
state: _$zod.ZodEnum<{
|
|
6259
5770
|
merged: "merged";
|
|
6260
|
-
open: "open";
|
|
6261
5771
|
closed: "closed";
|
|
5772
|
+
open: "open";
|
|
6262
5773
|
}>;
|
|
6263
5774
|
draft: _$zod.ZodBoolean;
|
|
6264
5775
|
author: _$zod.ZodString;
|
|
@@ -6311,8 +5822,8 @@ declare const VCSSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
6311
5822
|
title: _$zod.ZodString;
|
|
6312
5823
|
state: _$zod.ZodEnum<{
|
|
6313
5824
|
merged: "merged";
|
|
6314
|
-
open: "open";
|
|
6315
5825
|
closed: "closed";
|
|
5826
|
+
open: "open";
|
|
6316
5827
|
}>;
|
|
6317
5828
|
draft: _$zod.ZodBoolean;
|
|
6318
5829
|
author: _$zod.ZodString;
|
|
@@ -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";
|
|
@@ -6562,8 +6073,8 @@ type FindingSeverity = z.infer<typeof FindingSeveritySchema>;
|
|
|
6562
6073
|
* How the finding was produced.
|
|
6563
6074
|
*/
|
|
6564
6075
|
declare const FindingOriginSchema: z.ZodEnum<{
|
|
6565
|
-
inline: "inline";
|
|
6566
6076
|
agent: "agent";
|
|
6077
|
+
inline: "inline";
|
|
6567
6078
|
"review-body": "review-body";
|
|
6568
6079
|
"issue-comment": "issue-comment";
|
|
6569
6080
|
"cli-output": "cli-output";
|
|
@@ -6602,8 +6113,8 @@ declare const ReviewFindingSchema: z.ZodObject<{
|
|
|
6602
6113
|
sourceId: z.ZodString;
|
|
6603
6114
|
reviewer: z.ZodString;
|
|
6604
6115
|
origin: z.ZodEnum<{
|
|
6605
|
-
inline: "inline";
|
|
6606
6116
|
agent: "agent";
|
|
6117
|
+
inline: "inline";
|
|
6607
6118
|
"review-body": "review-body";
|
|
6608
6119
|
"issue-comment": "issue-comment";
|
|
6609
6120
|
"cli-output": "cli-output";
|
|
@@ -6780,8 +6291,8 @@ declare const ReviewSchemas: {
|
|
|
6780
6291
|
sourceId: z.ZodString;
|
|
6781
6292
|
reviewer: z.ZodString;
|
|
6782
6293
|
origin: z.ZodEnum<{
|
|
6783
|
-
inline: "inline";
|
|
6784
6294
|
agent: "agent";
|
|
6295
|
+
inline: "inline";
|
|
6785
6296
|
"review-body": "review-body";
|
|
6786
6297
|
"issue-comment": "issue-comment";
|
|
6787
6298
|
"cli-output": "cli-output";
|
|
@@ -6855,8 +6366,8 @@ declare const ReviewSchemas: {
|
|
|
6855
6366
|
sourceId: z.ZodString;
|
|
6856
6367
|
reviewer: z.ZodString;
|
|
6857
6368
|
origin: z.ZodEnum<{
|
|
6858
|
-
inline: "inline";
|
|
6859
6369
|
agent: "agent";
|
|
6370
|
+
inline: "inline";
|
|
6860
6371
|
"review-body": "review-body";
|
|
6861
6372
|
"issue-comment": "issue-comment";
|
|
6862
6373
|
"cli-output": "cli-output";
|
|
@@ -6927,13 +6438,19 @@ declare const ReviewSchemas: {
|
|
|
6927
6438
|
}, z.core.$strip>;
|
|
6928
6439
|
message: z.ZodString;
|
|
6929
6440
|
origin: z.ZodEnum<{
|
|
6930
|
-
inline: "inline";
|
|
6931
6441
|
agent: "agent";
|
|
6442
|
+
inline: "inline";
|
|
6932
6443
|
"review-body": "review-body";
|
|
6933
6444
|
"issue-comment": "issue-comment";
|
|
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>;
|
|
@@ -6976,8 +6487,8 @@ declare const ReviewSchemas: {
|
|
|
6976
6487
|
sourceId: z.ZodString;
|
|
6977
6488
|
reviewer: z.ZodString;
|
|
6978
6489
|
origin: z.ZodEnum<{
|
|
6979
|
-
inline: "inline";
|
|
6980
6490
|
agent: "agent";
|
|
6491
|
+
inline: "inline";
|
|
6981
6492
|
"review-body": "review-body";
|
|
6982
6493
|
"issue-comment": "issue-comment";
|
|
6983
6494
|
"cli-output": "cli-output";
|
|
@@ -7053,8 +6564,8 @@ declare const ReviewSchemas: {
|
|
|
7053
6564
|
sourceId: z.ZodString;
|
|
7054
6565
|
reviewer: z.ZodString;
|
|
7055
6566
|
origin: z.ZodEnum<{
|
|
7056
|
-
inline: "inline";
|
|
7057
6567
|
agent: "agent";
|
|
6568
|
+
inline: "inline";
|
|
7058
6569
|
"review-body": "review-body";
|
|
7059
6570
|
"issue-comment": "issue-comment";
|
|
7060
6571
|
"cli-output": "cli-output";
|
|
@@ -7110,8 +6621,8 @@ declare const ReviewSchemas: {
|
|
|
7110
6621
|
sourceId: z.ZodString;
|
|
7111
6622
|
reviewer: z.ZodString;
|
|
7112
6623
|
origin: z.ZodEnum<{
|
|
7113
|
-
inline: "inline";
|
|
7114
6624
|
agent: "agent";
|
|
6625
|
+
inline: "inline";
|
|
7115
6626
|
"review-body": "review-body";
|
|
7116
6627
|
"issue-comment": "issue-comment";
|
|
7117
6628
|
"cli-output": "cli-output";
|
|
@@ -7470,8 +6981,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7470
6981
|
sourceId: _$zod.ZodString;
|
|
7471
6982
|
reviewer: _$zod.ZodString;
|
|
7472
6983
|
origin: _$zod.ZodEnum<{
|
|
7473
|
-
inline: "inline";
|
|
7474
6984
|
agent: "agent";
|
|
6985
|
+
inline: "inline";
|
|
7475
6986
|
"review-body": "review-body";
|
|
7476
6987
|
"issue-comment": "issue-comment";
|
|
7477
6988
|
"cli-output": "cli-output";
|
|
@@ -7540,8 +7051,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7540
7051
|
sourceId: _$zod.ZodString;
|
|
7541
7052
|
reviewer: _$zod.ZodString;
|
|
7542
7053
|
origin: _$zod.ZodEnum<{
|
|
7543
|
-
inline: "inline";
|
|
7544
7054
|
agent: "agent";
|
|
7055
|
+
inline: "inline";
|
|
7545
7056
|
"review-body": "review-body";
|
|
7546
7057
|
"issue-comment": "issue-comment";
|
|
7547
7058
|
"cli-output": "cli-output";
|
|
@@ -7602,13 +7113,19 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7602
7113
|
}, _$zod_v4_core0.$strip>;
|
|
7603
7114
|
message: _$zod.ZodString;
|
|
7604
7115
|
origin: _$zod.ZodEnum<{
|
|
7605
|
-
inline: "inline";
|
|
7606
7116
|
agent: "agent";
|
|
7117
|
+
inline: "inline";
|
|
7607
7118
|
"review-body": "review-body";
|
|
7608
7119
|
"issue-comment": "issue-comment";
|
|
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>;
|
|
@@ -7651,8 +7162,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7651
7162
|
sourceId: _$zod.ZodString;
|
|
7652
7163
|
reviewer: _$zod.ZodString;
|
|
7653
7164
|
origin: _$zod.ZodEnum<{
|
|
7654
|
-
inline: "inline";
|
|
7655
7165
|
agent: "agent";
|
|
7166
|
+
inline: "inline";
|
|
7656
7167
|
"review-body": "review-body";
|
|
7657
7168
|
"issue-comment": "issue-comment";
|
|
7658
7169
|
"cli-output": "cli-output";
|
|
@@ -7723,8 +7234,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7723
7234
|
sourceId: _$zod.ZodString;
|
|
7724
7235
|
reviewer: _$zod.ZodString;
|
|
7725
7236
|
origin: _$zod.ZodEnum<{
|
|
7726
|
-
inline: "inline";
|
|
7727
7237
|
agent: "agent";
|
|
7238
|
+
inline: "inline";
|
|
7728
7239
|
"review-body": "review-body";
|
|
7729
7240
|
"issue-comment": "issue-comment";
|
|
7730
7241
|
"cli-output": "cli-output";
|
|
@@ -7775,8 +7286,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
7775
7286
|
sourceId: _$zod.ZodString;
|
|
7776
7287
|
reviewer: _$zod.ZodString;
|
|
7777
7288
|
origin: _$zod.ZodEnum<{
|
|
7778
|
-
inline: "inline";
|
|
7779
7289
|
agent: "agent";
|
|
7290
|
+
inline: "inline";
|
|
7780
7291
|
"review-body": "review-body";
|
|
7781
7292
|
"issue-comment": "issue-comment";
|
|
7782
7293
|
"cli-output": "cli-output";
|
|
@@ -7920,8 +7431,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
7920
7431
|
sourceId: _$zod.ZodString;
|
|
7921
7432
|
reviewer: _$zod.ZodString;
|
|
7922
7433
|
origin: _$zod.ZodEnum<{
|
|
7923
|
-
inline: "inline";
|
|
7924
7434
|
agent: "agent";
|
|
7435
|
+
inline: "inline";
|
|
7925
7436
|
"review-body": "review-body";
|
|
7926
7437
|
"issue-comment": "issue-comment";
|
|
7927
7438
|
"cli-output": "cli-output";
|
|
@@ -7990,8 +7501,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
7990
7501
|
sourceId: _$zod.ZodString;
|
|
7991
7502
|
reviewer: _$zod.ZodString;
|
|
7992
7503
|
origin: _$zod.ZodEnum<{
|
|
7993
|
-
inline: "inline";
|
|
7994
7504
|
agent: "agent";
|
|
7505
|
+
inline: "inline";
|
|
7995
7506
|
"review-body": "review-body";
|
|
7996
7507
|
"issue-comment": "issue-comment";
|
|
7997
7508
|
"cli-output": "cli-output";
|
|
@@ -8052,13 +7563,19 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8052
7563
|
}, _$zod_v4_core0.$strip>;
|
|
8053
7564
|
message: _$zod.ZodString;
|
|
8054
7565
|
origin: _$zod.ZodEnum<{
|
|
8055
|
-
inline: "inline";
|
|
8056
7566
|
agent: "agent";
|
|
7567
|
+
inline: "inline";
|
|
8057
7568
|
"review-body": "review-body";
|
|
8058
7569
|
"issue-comment": "issue-comment";
|
|
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>;
|
|
@@ -8101,8 +7612,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8101
7612
|
sourceId: _$zod.ZodString;
|
|
8102
7613
|
reviewer: _$zod.ZodString;
|
|
8103
7614
|
origin: _$zod.ZodEnum<{
|
|
8104
|
-
inline: "inline";
|
|
8105
7615
|
agent: "agent";
|
|
7616
|
+
inline: "inline";
|
|
8106
7617
|
"review-body": "review-body";
|
|
8107
7618
|
"issue-comment": "issue-comment";
|
|
8108
7619
|
"cli-output": "cli-output";
|
|
@@ -8173,8 +7684,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8173
7684
|
sourceId: _$zod.ZodString;
|
|
8174
7685
|
reviewer: _$zod.ZodString;
|
|
8175
7686
|
origin: _$zod.ZodEnum<{
|
|
8176
|
-
inline: "inline";
|
|
8177
7687
|
agent: "agent";
|
|
7688
|
+
inline: "inline";
|
|
8178
7689
|
"review-body": "review-body";
|
|
8179
7690
|
"issue-comment": "issue-comment";
|
|
8180
7691
|
"cli-output": "cli-output";
|
|
@@ -8225,8 +7736,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
8225
7736
|
sourceId: _$zod.ZodString;
|
|
8226
7737
|
reviewer: _$zod.ZodString;
|
|
8227
7738
|
origin: _$zod.ZodEnum<{
|
|
8228
|
-
inline: "inline";
|
|
8229
7739
|
agent: "agent";
|
|
7740
|
+
inline: "inline";
|
|
8230
7741
|
"review-body": "review-body";
|
|
8231
7742
|
"issue-comment": "issue-comment";
|
|
8232
7743
|
"cli-output": "cli-output";
|
|
@@ -9012,8 +8523,8 @@ declare const PullRequestStateSchema: z.ZodObject<{
|
|
|
9012
8523
|
url: z.ZodString;
|
|
9013
8524
|
state: z.ZodEnum<{
|
|
9014
8525
|
merged: "merged";
|
|
9015
|
-
open: "open";
|
|
9016
8526
|
closed: "closed";
|
|
8527
|
+
open: "open";
|
|
9017
8528
|
}>;
|
|
9018
8529
|
draft: z.ZodBoolean;
|
|
9019
8530
|
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -9128,8 +8639,8 @@ declare const VCSPRSchemas: {
|
|
|
9128
8639
|
url: z.ZodString;
|
|
9129
8640
|
state: z.ZodEnum<{
|
|
9130
8641
|
merged: "merged";
|
|
9131
|
-
open: "open";
|
|
9132
8642
|
closed: "closed";
|
|
8643
|
+
open: "open";
|
|
9133
8644
|
}>;
|
|
9134
8645
|
draft: z.ZodBoolean;
|
|
9135
8646
|
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -9238,8 +8749,8 @@ declare const VCSPRSchemas: {
|
|
|
9238
8749
|
url: z.ZodString;
|
|
9239
8750
|
state: z.ZodEnum<{
|
|
9240
8751
|
merged: "merged";
|
|
9241
|
-
open: "open";
|
|
9242
8752
|
closed: "closed";
|
|
8753
|
+
open: "open";
|
|
9243
8754
|
}>;
|
|
9244
8755
|
draft: z.ZodBoolean;
|
|
9245
8756
|
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -9348,8 +8859,8 @@ declare const VCSPRSchemas: {
|
|
|
9348
8859
|
url: z.ZodString;
|
|
9349
8860
|
state: z.ZodEnum<{
|
|
9350
8861
|
merged: "merged";
|
|
9351
|
-
open: "open";
|
|
9352
8862
|
closed: "closed";
|
|
8863
|
+
open: "open";
|
|
9353
8864
|
}>;
|
|
9354
8865
|
draft: z.ZodBoolean;
|
|
9355
8866
|
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -9459,8 +8970,8 @@ declare const VCSPRSchemas: {
|
|
|
9459
8970
|
url: z.ZodString;
|
|
9460
8971
|
state: z.ZodEnum<{
|
|
9461
8972
|
merged: "merged";
|
|
9462
|
-
open: "open";
|
|
9463
8973
|
closed: "closed";
|
|
8974
|
+
open: "open";
|
|
9464
8975
|
}>;
|
|
9465
8976
|
draft: z.ZodBoolean;
|
|
9466
8977
|
mergeable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -9671,8 +9182,8 @@ declare const VCSPRNamespace: _$_makaio_core0.BusNamespaceDefinition<"vcs:pr", {
|
|
|
9671
9182
|
url: _$zod.ZodString;
|
|
9672
9183
|
state: _$zod.ZodEnum<{
|
|
9673
9184
|
merged: "merged";
|
|
9674
|
-
open: "open";
|
|
9675
9185
|
closed: "closed";
|
|
9186
|
+
open: "open";
|
|
9676
9187
|
}>;
|
|
9677
9188
|
draft: _$zod.ZodBoolean;
|
|
9678
9189
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -9781,8 +9292,8 @@ declare const VCSPRNamespace: _$_makaio_core0.BusNamespaceDefinition<"vcs:pr", {
|
|
|
9781
9292
|
url: _$zod.ZodString;
|
|
9782
9293
|
state: _$zod.ZodEnum<{
|
|
9783
9294
|
merged: "merged";
|
|
9784
|
-
open: "open";
|
|
9785
9295
|
closed: "closed";
|
|
9296
|
+
open: "open";
|
|
9786
9297
|
}>;
|
|
9787
9298
|
draft: _$zod.ZodBoolean;
|
|
9788
9299
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -9891,8 +9402,8 @@ declare const VCSPRNamespace: _$_makaio_core0.BusNamespaceDefinition<"vcs:pr", {
|
|
|
9891
9402
|
url: _$zod.ZodString;
|
|
9892
9403
|
state: _$zod.ZodEnum<{
|
|
9893
9404
|
merged: "merged";
|
|
9894
|
-
open: "open";
|
|
9895
9405
|
closed: "closed";
|
|
9406
|
+
open: "open";
|
|
9896
9407
|
}>;
|
|
9897
9408
|
draft: _$zod.ZodBoolean;
|
|
9898
9409
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -10002,8 +9513,8 @@ declare const VCSPRNamespace: _$_makaio_core0.BusNamespaceDefinition<"vcs:pr", {
|
|
|
10002
9513
|
url: _$zod.ZodString;
|
|
10003
9514
|
state: _$zod.ZodEnum<{
|
|
10004
9515
|
merged: "merged";
|
|
10005
|
-
open: "open";
|
|
10006
9516
|
closed: "closed";
|
|
9517
|
+
open: "open";
|
|
10007
9518
|
}>;
|
|
10008
9519
|
draft: _$zod.ZodBoolean;
|
|
10009
9520
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -10209,8 +9720,8 @@ declare const VCSPRSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
10209
9720
|
url: _$zod.ZodString;
|
|
10210
9721
|
state: _$zod.ZodEnum<{
|
|
10211
9722
|
merged: "merged";
|
|
10212
|
-
open: "open";
|
|
10213
9723
|
closed: "closed";
|
|
9724
|
+
open: "open";
|
|
10214
9725
|
}>;
|
|
10215
9726
|
draft: _$zod.ZodBoolean;
|
|
10216
9727
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -10319,8 +9830,8 @@ declare const VCSPRSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
10319
9830
|
url: _$zod.ZodString;
|
|
10320
9831
|
state: _$zod.ZodEnum<{
|
|
10321
9832
|
merged: "merged";
|
|
10322
|
-
open: "open";
|
|
10323
9833
|
closed: "closed";
|
|
9834
|
+
open: "open";
|
|
10324
9835
|
}>;
|
|
10325
9836
|
draft: _$zod.ZodBoolean;
|
|
10326
9837
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -10429,8 +9940,8 @@ declare const VCSPRSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
10429
9940
|
url: _$zod.ZodString;
|
|
10430
9941
|
state: _$zod.ZodEnum<{
|
|
10431
9942
|
merged: "merged";
|
|
10432
|
-
open: "open";
|
|
10433
9943
|
closed: "closed";
|
|
9944
|
+
open: "open";
|
|
10434
9945
|
}>;
|
|
10435
9946
|
draft: _$zod.ZodBoolean;
|
|
10436
9947
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -10540,8 +10051,8 @@ declare const VCSPRSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
10540
10051
|
url: _$zod.ZodString;
|
|
10541
10052
|
state: _$zod.ZodEnum<{
|
|
10542
10053
|
merged: "merged";
|
|
10543
|
-
open: "open";
|
|
10544
10054
|
closed: "closed";
|
|
10055
|
+
open: "open";
|
|
10545
10056
|
}>;
|
|
10546
10057
|
draft: _$zod.ZodBoolean;
|
|
10547
10058
|
mergeable: _$zod.ZodNullable<_$zod.ZodBoolean>;
|
|
@@ -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
|
/**
|
|
@@ -11481,8 +11000,8 @@ declare const ExecutionStatusSchema: z.ZodEnum<{
|
|
|
11481
11000
|
pending: "pending";
|
|
11482
11001
|
completed: "completed";
|
|
11483
11002
|
cancelled: "cancelled";
|
|
11484
|
-
running: "running";
|
|
11485
11003
|
failed: "failed";
|
|
11004
|
+
running: "running";
|
|
11486
11005
|
paused: "paused";
|
|
11487
11006
|
}>;
|
|
11488
11007
|
type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
|
|
@@ -11497,8 +11016,8 @@ declare const WorkflowExecutionSchema: z.ZodObject<{
|
|
|
11497
11016
|
pending: "pending";
|
|
11498
11017
|
completed: "completed";
|
|
11499
11018
|
cancelled: "cancelled";
|
|
11500
|
-
running: "running";
|
|
11501
11019
|
failed: "failed";
|
|
11020
|
+
running: "running";
|
|
11502
11021
|
paused: "paused";
|
|
11503
11022
|
}>;
|
|
11504
11023
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -11553,8 +11072,8 @@ declare const WorkflowFrameStateSchema: z.ZodObject<{
|
|
|
11553
11072
|
pending: "pending";
|
|
11554
11073
|
completed: "completed";
|
|
11555
11074
|
cancelled: "cancelled";
|
|
11556
|
-
running: "running";
|
|
11557
11075
|
failed: "failed";
|
|
11076
|
+
running: "running";
|
|
11558
11077
|
skipped: "skipped";
|
|
11559
11078
|
waiting: "waiting";
|
|
11560
11079
|
}>;
|
|
@@ -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
|
/**
|
|
@@ -11743,8 +11270,8 @@ declare const ExecutionListQuerySchema: z.ZodObject<{
|
|
|
11743
11270
|
pending: "pending";
|
|
11744
11271
|
completed: "completed";
|
|
11745
11272
|
cancelled: "cancelled";
|
|
11746
|
-
running: "running";
|
|
11747
11273
|
failed: "failed";
|
|
11274
|
+
running: "running";
|
|
11748
11275
|
paused: "paused";
|
|
11749
11276
|
}>>;
|
|
11750
11277
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -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>;
|
|
@@ -12068,8 +11599,8 @@ interface IStepRunner {
|
|
|
12068
11599
|
*/
|
|
12069
11600
|
declare const SpanStatusSchema: z.ZodEnum<{
|
|
12070
11601
|
completed: "completed";
|
|
12071
|
-
running: "running";
|
|
12072
11602
|
failed: "failed";
|
|
11603
|
+
running: "running";
|
|
12073
11604
|
skipped: "skipped";
|
|
12074
11605
|
}>;
|
|
12075
11606
|
type SpanStatus = z.infer<typeof SpanStatusSchema>;
|
|
@@ -12093,8 +11624,8 @@ declare const SpanRecordSchema: z.ZodObject<{
|
|
|
12093
11624
|
}>;
|
|
12094
11625
|
status: z.ZodEnum<{
|
|
12095
11626
|
completed: "completed";
|
|
12096
|
-
running: "running";
|
|
12097
11627
|
failed: "failed";
|
|
11628
|
+
running: "running";
|
|
12098
11629
|
skipped: "skipped";
|
|
12099
11630
|
}>;
|
|
12100
11631
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13036,8 +12567,8 @@ declare const WorkflowSchemas: {
|
|
|
13036
12567
|
pending: "pending";
|
|
13037
12568
|
completed: "completed";
|
|
13038
12569
|
cancelled: "cancelled";
|
|
13039
|
-
running: "running";
|
|
13040
12570
|
failed: "failed";
|
|
12571
|
+
running: "running";
|
|
13041
12572
|
paused: "paused";
|
|
13042
12573
|
}>;
|
|
13043
12574
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -13093,8 +12624,8 @@ declare const WorkflowSchemas: {
|
|
|
13093
12624
|
pending: "pending";
|
|
13094
12625
|
completed: "completed";
|
|
13095
12626
|
cancelled: "cancelled";
|
|
13096
|
-
running: "running";
|
|
13097
12627
|
failed: "failed";
|
|
12628
|
+
running: "running";
|
|
13098
12629
|
paused: "paused";
|
|
13099
12630
|
}>>;
|
|
13100
12631
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -13116,8 +12647,8 @@ declare const WorkflowSchemas: {
|
|
|
13116
12647
|
pending: "pending";
|
|
13117
12648
|
completed: "completed";
|
|
13118
12649
|
cancelled: "cancelled";
|
|
13119
|
-
running: "running";
|
|
13120
12650
|
failed: "failed";
|
|
12651
|
+
running: "running";
|
|
13121
12652
|
paused: "paused";
|
|
13122
12653
|
}>;
|
|
13123
12654
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -13170,8 +12701,8 @@ declare const WorkflowSchemas: {
|
|
|
13170
12701
|
}>;
|
|
13171
12702
|
status: z.ZodEnum<{
|
|
13172
12703
|
completed: "completed";
|
|
13173
|
-
running: "running";
|
|
13174
12704
|
failed: "failed";
|
|
12705
|
+
running: "running";
|
|
13175
12706
|
skipped: "skipped";
|
|
13176
12707
|
}>;
|
|
13177
12708
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13310,8 +12841,8 @@ declare const WorkflowSchemas: {
|
|
|
13310
12841
|
pending: "pending";
|
|
13311
12842
|
completed: "completed";
|
|
13312
12843
|
cancelled: "cancelled";
|
|
13313
|
-
running: "running";
|
|
13314
12844
|
failed: "failed";
|
|
12845
|
+
running: "running";
|
|
13315
12846
|
skipped: "skipped";
|
|
13316
12847
|
waiting: "waiting";
|
|
13317
12848
|
}>;
|
|
@@ -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
|
/**
|
|
@@ -14000,8 +13539,8 @@ declare const WorkflowSchemas: {
|
|
|
14000
13539
|
pending: "pending";
|
|
14001
13540
|
completed: "completed";
|
|
14002
13541
|
cancelled: "cancelled";
|
|
14003
|
-
running: "running";
|
|
14004
13542
|
failed: "failed";
|
|
13543
|
+
running: "running";
|
|
14005
13544
|
paused: "paused";
|
|
14006
13545
|
}>;
|
|
14007
13546
|
startedAt: z.ZodNumber;
|
|
@@ -14028,8 +13567,8 @@ declare const WorkflowSchemas: {
|
|
|
14028
13567
|
pending: "pending";
|
|
14029
13568
|
completed: "completed";
|
|
14030
13569
|
cancelled: "cancelled";
|
|
14031
|
-
running: "running";
|
|
14032
13570
|
failed: "failed";
|
|
13571
|
+
running: "running";
|
|
14033
13572
|
paused: "paused";
|
|
14034
13573
|
}>>;
|
|
14035
13574
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -14044,8 +13583,8 @@ declare const WorkflowSchemas: {
|
|
|
14044
13583
|
pending: "pending";
|
|
14045
13584
|
completed: "completed";
|
|
14046
13585
|
cancelled: "cancelled";
|
|
14047
|
-
running: "running";
|
|
14048
13586
|
failed: "failed";
|
|
13587
|
+
running: "running";
|
|
14049
13588
|
paused: "paused";
|
|
14050
13589
|
}>;
|
|
14051
13590
|
startedAt: z.ZodNumber;
|
|
@@ -14755,8 +14294,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14755
14294
|
pending: "pending";
|
|
14756
14295
|
completed: "completed";
|
|
14757
14296
|
cancelled: "cancelled";
|
|
14758
|
-
running: "running";
|
|
14759
14297
|
failed: "failed";
|
|
14298
|
+
running: "running";
|
|
14760
14299
|
paused: "paused";
|
|
14761
14300
|
}>;
|
|
14762
14301
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -14812,8 +14351,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14812
14351
|
pending: "pending";
|
|
14813
14352
|
completed: "completed";
|
|
14814
14353
|
cancelled: "cancelled";
|
|
14815
|
-
running: "running";
|
|
14816
14354
|
failed: "failed";
|
|
14355
|
+
running: "running";
|
|
14817
14356
|
paused: "paused";
|
|
14818
14357
|
}>>;
|
|
14819
14358
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -14835,8 +14374,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14835
14374
|
pending: "pending";
|
|
14836
14375
|
completed: "completed";
|
|
14837
14376
|
cancelled: "cancelled";
|
|
14838
|
-
running: "running";
|
|
14839
14377
|
failed: "failed";
|
|
14378
|
+
running: "running";
|
|
14840
14379
|
paused: "paused";
|
|
14841
14380
|
}>;
|
|
14842
14381
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -14889,8 +14428,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
14889
14428
|
}>;
|
|
14890
14429
|
status: z.ZodEnum<{
|
|
14891
14430
|
completed: "completed";
|
|
14892
|
-
running: "running";
|
|
14893
14431
|
failed: "failed";
|
|
14432
|
+
running: "running";
|
|
14894
14433
|
skipped: "skipped";
|
|
14895
14434
|
}>;
|
|
14896
14435
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15029,8 +14568,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15029
14568
|
pending: "pending";
|
|
15030
14569
|
completed: "completed";
|
|
15031
14570
|
cancelled: "cancelled";
|
|
15032
|
-
running: "running";
|
|
15033
14571
|
failed: "failed";
|
|
14572
|
+
running: "running";
|
|
15034
14573
|
skipped: "skipped";
|
|
15035
14574
|
waiting: "waiting";
|
|
15036
14575
|
}>;
|
|
@@ -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
|
/**
|
|
@@ -15719,8 +15266,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15719
15266
|
pending: "pending";
|
|
15720
15267
|
completed: "completed";
|
|
15721
15268
|
cancelled: "cancelled";
|
|
15722
|
-
running: "running";
|
|
15723
15269
|
failed: "failed";
|
|
15270
|
+
running: "running";
|
|
15724
15271
|
paused: "paused";
|
|
15725
15272
|
}>;
|
|
15726
15273
|
startedAt: z.ZodNumber;
|
|
@@ -15747,8 +15294,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15747
15294
|
pending: "pending";
|
|
15748
15295
|
completed: "completed";
|
|
15749
15296
|
cancelled: "cancelled";
|
|
15750
|
-
running: "running";
|
|
15751
15297
|
failed: "failed";
|
|
15298
|
+
running: "running";
|
|
15752
15299
|
paused: "paused";
|
|
15753
15300
|
}>>;
|
|
15754
15301
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15763,8 +15310,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
|
|
|
15763
15310
|
pending: "pending";
|
|
15764
15311
|
completed: "completed";
|
|
15765
15312
|
cancelled: "cancelled";
|
|
15766
|
-
running: "running";
|
|
15767
15313
|
failed: "failed";
|
|
15314
|
+
running: "running";
|
|
15768
15315
|
paused: "paused";
|
|
15769
15316
|
}>;
|
|
15770
15317
|
startedAt: z.ZodNumber;
|
|
@@ -16474,8 +16021,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16474
16021
|
pending: "pending";
|
|
16475
16022
|
completed: "completed";
|
|
16476
16023
|
cancelled: "cancelled";
|
|
16477
|
-
running: "running";
|
|
16478
16024
|
failed: "failed";
|
|
16025
|
+
running: "running";
|
|
16479
16026
|
paused: "paused";
|
|
16480
16027
|
}>;
|
|
16481
16028
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -16531,8 +16078,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16531
16078
|
pending: "pending";
|
|
16532
16079
|
completed: "completed";
|
|
16533
16080
|
cancelled: "cancelled";
|
|
16534
|
-
running: "running";
|
|
16535
16081
|
failed: "failed";
|
|
16082
|
+
running: "running";
|
|
16536
16083
|
paused: "paused";
|
|
16537
16084
|
}>>;
|
|
16538
16085
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -16554,8 +16101,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16554
16101
|
pending: "pending";
|
|
16555
16102
|
completed: "completed";
|
|
16556
16103
|
cancelled: "cancelled";
|
|
16557
|
-
running: "running";
|
|
16558
16104
|
failed: "failed";
|
|
16105
|
+
running: "running";
|
|
16559
16106
|
paused: "paused";
|
|
16560
16107
|
}>;
|
|
16561
16108
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
@@ -16608,8 +16155,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16608
16155
|
}>;
|
|
16609
16156
|
status: z.ZodEnum<{
|
|
16610
16157
|
completed: "completed";
|
|
16611
|
-
running: "running";
|
|
16612
16158
|
failed: "failed";
|
|
16159
|
+
running: "running";
|
|
16613
16160
|
skipped: "skipped";
|
|
16614
16161
|
}>;
|
|
16615
16162
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16748,8 +16295,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
16748
16295
|
pending: "pending";
|
|
16749
16296
|
completed: "completed";
|
|
16750
16297
|
cancelled: "cancelled";
|
|
16751
|
-
running: "running";
|
|
16752
16298
|
failed: "failed";
|
|
16299
|
+
running: "running";
|
|
16753
16300
|
skipped: "skipped";
|
|
16754
16301
|
waiting: "waiting";
|
|
16755
16302
|
}>;
|
|
@@ -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
|
/**
|
|
@@ -17438,8 +16993,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17438
16993
|
pending: "pending";
|
|
17439
16994
|
completed: "completed";
|
|
17440
16995
|
cancelled: "cancelled";
|
|
17441
|
-
running: "running";
|
|
17442
16996
|
failed: "failed";
|
|
16997
|
+
running: "running";
|
|
17443
16998
|
paused: "paused";
|
|
17444
16999
|
}>;
|
|
17445
17000
|
startedAt: z.ZodNumber;
|
|
@@ -17466,8 +17021,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17466
17021
|
pending: "pending";
|
|
17467
17022
|
completed: "completed";
|
|
17468
17023
|
cancelled: "cancelled";
|
|
17469
|
-
running: "running";
|
|
17470
17024
|
failed: "failed";
|
|
17025
|
+
running: "running";
|
|
17471
17026
|
paused: "paused";
|
|
17472
17027
|
}>>;
|
|
17473
17028
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -17482,8 +17037,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
17482
17037
|
pending: "pending";
|
|
17483
17038
|
completed: "completed";
|
|
17484
17039
|
cancelled: "cancelled";
|
|
17485
|
-
running: "running";
|
|
17486
17040
|
failed: "failed";
|
|
17041
|
+
running: "running";
|
|
17487
17042
|
paused: "paused";
|
|
17488
17043
|
}>;
|
|
17489
17044
|
startedAt: z.ZodNumber;
|
|
@@ -18293,8 +17848,8 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
|
|
|
18293
17848
|
pending: "pending";
|
|
18294
17849
|
completed: "completed";
|
|
18295
17850
|
cancelled: "cancelled";
|
|
18296
|
-
running: "running";
|
|
18297
17851
|
failed: "failed";
|
|
17852
|
+
running: "running";
|
|
18298
17853
|
paused: "paused";
|
|
18299
17854
|
}>;
|
|
18300
17855
|
startedAt: z.ZodNumber;
|
|
@@ -18330,8 +17885,8 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
18330
17885
|
pending: "pending";
|
|
18331
17886
|
completed: "completed";
|
|
18332
17887
|
cancelled: "cancelled";
|
|
18333
|
-
running: "running";
|
|
18334
17888
|
failed: "failed";
|
|
17889
|
+
running: "running";
|
|
18335
17890
|
skipped: "skipped";
|
|
18336
17891
|
waiting: "waiting";
|
|
18337
17892
|
}>;
|
|
@@ -18452,644 +18007,976 @@ 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/
|
|
18456
|
-
/**
|
|
18457
|
-
* Declarative operations for {@link ArtifactContext.updateArtifact} patches.
|
|
18458
|
-
*
|
|
18459
|
-
* - `merge` — deep-merge the patch into the current data
|
|
18460
|
-
* - `set` — replace the current data entirely with the patch
|
|
18461
|
-
* - `append` — for array-typed fields in the patch, append items instead of replacing
|
|
18462
|
-
*/
|
|
18463
|
-
type ArtifactUpdateOperation = 'merge' | 'set' | 'append';
|
|
18010
|
+
//#region core/contracts/src/subagent/schemas.d.ts
|
|
18464
18011
|
/**
|
|
18465
|
-
*
|
|
18466
|
-
*
|
|
18467
|
-
*
|
|
18468
|
-
* runtime merges `data` into the current artifact snapshot.
|
|
18469
|
-
* @typeParam TData - Artifact data shape for this workflow's binding.
|
|
18012
|
+
* Context mode for subagent spawning.
|
|
18013
|
+
* - fork: Inherit parent's conversation history
|
|
18014
|
+
* - fresh: Start with clean context
|
|
18470
18015
|
*/
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
}
|
|
18016
|
+
declare const ContextModeSchema: z.ZodEnum<{
|
|
18017
|
+
fork: "fork";
|
|
18018
|
+
fresh: "fresh";
|
|
18019
|
+
}>;
|
|
18020
|
+
type ContextMode = z.infer<typeof ContextModeSchema>;
|
|
18477
18021
|
/**
|
|
18478
|
-
*
|
|
18479
|
-
*
|
|
18480
|
-
*
|
|
18481
|
-
*
|
|
18482
|
-
*
|
|
18483
|
-
*
|
|
18484
|
-
* @param current - Read-only snapshot of the current artifact data.
|
|
18485
|
-
* @returns The full next artifact data payload.
|
|
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
|
|
18486
18028
|
*/
|
|
18487
|
-
|
|
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>;
|
|
18488
18039
|
/**
|
|
18489
|
-
*
|
|
18040
|
+
* Completion mode for a spawned subagent.
|
|
18490
18041
|
*
|
|
18491
|
-
*
|
|
18492
|
-
*
|
|
18493
|
-
*
|
|
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
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
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>;
|
|
18573
18105
|
/**
|
|
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
|
|
18106
|
+
* Platform-level constraints for subagent spawning.
|
|
18579
18107
|
*/
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
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>;
|
|
18587
18121
|
/**
|
|
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.
|
|
18122
|
+
* Default runtime constraints (derived from schema defaults to avoid duplication).
|
|
18600
18123
|
*/
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
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
|
-
}
|
|
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>;
|
|
18644
18137
|
/**
|
|
18645
|
-
*
|
|
18646
|
-
* returning a JSON-serializable value.
|
|
18647
|
-
*
|
|
18648
|
-
* Used in the fluent builder methods where trigger and dependency types are
|
|
18649
|
-
* not tracked at the builder call site.
|
|
18138
|
+
* Subagent execution failed during startup.
|
|
18650
18139
|
*/
|
|
18651
|
-
|
|
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>;
|
|
18652
18151
|
/**
|
|
18653
|
-
*
|
|
18654
|
-
*
|
|
18152
|
+
* Spawn RPC - replaces tool calling manager.track().
|
|
18153
|
+
* Service validates constraints, tracks subagent, emits spawned event.
|
|
18655
18154
|
*/
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
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>;
|
|
18659
18210
|
/**
|
|
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
|
|
18211
|
+
* Await RPC - replaces callback-based awaiter.
|
|
18212
|
+
* Blocks until subagent reaches terminal state or timeout.
|
|
18667
18213
|
*/
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
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>;
|
|
18675
18240
|
/**
|
|
18676
|
-
*
|
|
18677
|
-
* @typeParam T - The typed trigger definition
|
|
18241
|
+
* Send RPC - sends message to subagent, optionally resolving pending request.
|
|
18678
18242
|
*/
|
|
18679
|
-
|
|
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>;
|
|
18680
18254
|
/**
|
|
18681
|
-
*
|
|
18682
|
-
* @typeParam TTriggers - Trigger tuple supplied to `defineWorkflow`
|
|
18255
|
+
* Kill RPC - terminates a running subagent.
|
|
18683
18256
|
*/
|
|
18684
|
-
|
|
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>;
|
|
18685
18266
|
/**
|
|
18686
|
-
*
|
|
18687
|
-
* a matching message.
|
|
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
|
-
* ```
|
|
18267
|
+
* Report Progress RPC - child reports progress update.
|
|
18697
18268
|
*/
|
|
18698
|
-
declare
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
}
|
|
18703
|
-
|
|
18704
|
-
|
|
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>;
|
|
18705
18279
|
/**
|
|
18706
|
-
*
|
|
18707
|
-
*
|
|
18280
|
+
* Request Input RPC - child requests input from parent.
|
|
18281
|
+
* Blocks until parent responds or timeout.
|
|
18708
18282
|
*/
|
|
18709
|
-
declare
|
|
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>;
|
|
18710
18296
|
/**
|
|
18711
|
-
*
|
|
18297
|
+
* Complete Task RPC - child signals task completion.
|
|
18712
18298
|
*/
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
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>;
|
|
18719
18309
|
/**
|
|
18720
|
-
*
|
|
18721
|
-
*
|
|
18722
|
-
*
|
|
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.
|
|
18723
18315
|
*/
|
|
18724
|
-
declare
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
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
|
|
18728
18338
|
/**
|
|
18729
|
-
*
|
|
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
|
|
18730
18344
|
*/
|
|
18731
|
-
|
|
18732
|
-
/** Webhook event name (e.g. `'push'`, `'pull_request'`). */
|
|
18733
|
-
readonly event: string;
|
|
18734
|
-
/** Branch filter value, if configured. */
|
|
18735
|
-
readonly branch?: string;
|
|
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>;
|
|
18740
|
-
}
|
|
18345
|
+
type ArtifactUpdateOperation = 'merge' | 'set' | 'append';
|
|
18741
18346
|
/**
|
|
18742
|
-
*
|
|
18743
|
-
*
|
|
18744
|
-
*
|
|
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.
|
|
18745
18352
|
*/
|
|
18746
|
-
|
|
18747
|
-
/**
|
|
18748
|
-
readonly
|
|
18749
|
-
|
|
18750
|
-
|
|
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>;
|
|
18358
|
+
}
|
|
18751
18359
|
/**
|
|
18752
|
-
*
|
|
18753
|
-
*
|
|
18754
|
-
*
|
|
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
|
|
18380
|
+
interface ArtifactContext<TData extends Record<string, unknown> = Record<string, unknown>> {
|
|
18766
18381
|
/**
|
|
18767
|
-
*
|
|
18768
|
-
*
|
|
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.
|
|
18769
18387
|
*/
|
|
18770
|
-
readonly
|
|
18388
|
+
readonly data: Readonly<TData>;
|
|
18771
18389
|
/**
|
|
18772
|
-
*
|
|
18773
|
-
*
|
|
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.
|
|
18774
18403
|
*/
|
|
18775
|
-
|
|
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;
|
|
18404
|
+
updateArtifact(update: ArtifactPatch<TData> | ArtifactUpdater<TData>): Promise<string>;
|
|
18783
18405
|
/**
|
|
18784
|
-
*
|
|
18785
|
-
*
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
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
|
-
* `definition.inputSchema`, `definition.outputSchema`, etc. fields.
|
|
18530
|
+
* Used in the fluent builder methods where trigger and dependency types are
|
|
18531
|
+
* not tracked at the builder call site.
|
|
18892
18532
|
*/
|
|
18893
|
-
|
|
18894
|
-
/** Zod schema for the workflow's input parameters. */
|
|
18895
|
-
readonly input?: z.ZodTypeAny;
|
|
18896
|
-
/** Zod schema for the workflow's configuration values. */
|
|
18897
|
-
readonly config?: z.ZodTypeAny;
|
|
18898
|
-
/** Zod schema for the workflow's primary output. */
|
|
18899
|
-
readonly output?: z.ZodTypeAny;
|
|
18900
|
-
/** Zod schema for the workflow's primary artifact data. */
|
|
18901
|
-
readonly artifact?: z.ZodTypeAny;
|
|
18902
|
-
/** Gate resume schemas keyed by gate node ID. */
|
|
18903
|
-
readonly gates: Record<string, z.ZodTypeAny>;
|
|
18904
|
-
}
|
|
18533
|
+
type StationHandler = (ctx: StepContext<unknown, Record<string, PreviousStepOutput<JsonValue>>>) => JsonValue | Promise<JsonValue>;
|
|
18905
18534
|
/**
|
|
18906
|
-
*
|
|
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.
|
|
18907
18543
|
*
|
|
18908
|
-
*
|
|
18909
|
-
*
|
|
18910
|
-
*
|
|
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
|
|
18911
18549
|
*/
|
|
18912
|
-
|
|
18913
|
-
/** Unique workflow definition identifier. */
|
|
18914
|
-
readonly id: string;
|
|
18915
|
-
/**
|
|
18916
|
-
* Serializable workflow definition — safe to store, send over the bus,
|
|
18917
|
-
* and display in the UI. Contains no function bodies.
|
|
18918
|
-
*/
|
|
18919
|
-
readonly definition: WorkflowDefinition;
|
|
18920
|
-
/**
|
|
18921
|
-
* Station handler functions keyed by node ID.
|
|
18922
|
-
* Populated by `.station()` calls and standalone `station()` factories.
|
|
18923
|
-
*/
|
|
18924
|
-
readonly runtimeHandlers: ReadonlyMap<string, StationHandler>;
|
|
18550
|
+
type WorkflowTriggerDef<TPayload> = WorkflowTrigger & {
|
|
18925
18551
|
/**
|
|
18926
|
-
*
|
|
18927
|
-
*
|
|
18552
|
+
* Phantom type carrier — never present at runtime.
|
|
18553
|
+
* Use `ExtractTriggerPayload<T>` to access this type.
|
|
18928
18554
|
*/
|
|
18929
|
-
readonly
|
|
18930
|
-
|
|
18931
|
-
readonly zodSchemas: WorkflowZodSchemas;
|
|
18932
|
-
/** Optional authoring-time source metadata for diagnostics. */
|
|
18933
|
-
readonly source?: WorkflowSourceLocation;
|
|
18934
|
-
}
|
|
18555
|
+
readonly __payload?: TPayload;
|
|
18556
|
+
};
|
|
18935
18557
|
/**
|
|
18936
|
-
*
|
|
18558
|
+
* Extract the payload type from a {@link WorkflowTriggerDef}.
|
|
18559
|
+
* @typeParam T - The typed trigger definition
|
|
18937
18560
|
*/
|
|
18938
|
-
|
|
18939
|
-
/** Human-readable workflow name. */
|
|
18940
|
-
readonly name?: string;
|
|
18941
|
-
/** Human-readable description of what this workflow does. */
|
|
18942
|
-
readonly description?: string;
|
|
18943
|
-
/** Initial trigger set. Additional triggers can be added via `addTrigger`. */
|
|
18944
|
-
readonly triggers?: TTriggers;
|
|
18945
|
-
}
|
|
18561
|
+
type ExtractTriggerPayload<T extends WorkflowTriggerDef<unknown>> = T extends WorkflowTriggerDef<infer TPayload> ? TPayload : never;
|
|
18946
18562
|
/**
|
|
18947
|
-
*
|
|
18948
|
-
*
|
|
18949
|
-
* Collects trigger definitions, Zod schemas, and typed station registrations,
|
|
18950
|
-
* then exposes the serializable `WorkflowDefinition` alongside runtime maps
|
|
18951
|
-
* for the worker executor.
|
|
18952
|
-
*
|
|
18953
|
-
* All fluent methods mutate internal state and return `this` so chains can be
|
|
18954
|
-
* composed freely. The builder also implements {@link BuiltWorkflow} so it can
|
|
18955
|
-
* be passed wherever a built workflow is expected without an explicit `.build()`
|
|
18956
|
-
* call.
|
|
18957
|
-
* @typeParam TTrigger - Trigger payload type (from the union of added triggers)
|
|
18563
|
+
* Derives the trigger payload union from a tuple of typed trigger definitions.
|
|
18564
|
+
* @typeParam TTriggers - Trigger tuple supplied to `defineWorkflow`
|
|
18958
18565
|
*/
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
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 {
|
|
18969
18648
|
/**
|
|
18970
|
-
*
|
|
18971
|
-
*
|
|
18972
|
-
* The Zod schema is stored in `zodSchemas.config`; its JSON Schema equivalent
|
|
18973
|
-
* is written to `definition.configSchema`.
|
|
18974
|
-
* @param schema - Zod schema describing the workflow's static configuration
|
|
18975
|
-
* @returns This builder for chaining
|
|
18649
|
+
* jexl expression evaluated at runtime.
|
|
18650
|
+
* When present and falsy, the node and its subtree are skipped.
|
|
18976
18651
|
*/
|
|
18977
|
-
|
|
18652
|
+
readonly when?: string;
|
|
18978
18653
|
/**
|
|
18979
|
-
*
|
|
18980
|
-
*
|
|
18981
|
-
* The Zod schema is stored in `zodSchemas.output`; its JSON Schema equivalent
|
|
18982
|
-
* is written to `definition.outputSchema`.
|
|
18983
|
-
* @param schema - Zod schema describing the workflow's primary output
|
|
18984
|
-
* @returns This builder for chaining
|
|
18654
|
+
* jexl expression evaluated at runtime.
|
|
18655
|
+
* When present and truthy, the node is skipped without propagating failure.
|
|
18985
18656
|
*/
|
|
18986
|
-
|
|
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;
|
|
18987
18672
|
/**
|
|
18988
|
-
*
|
|
18989
|
-
*
|
|
18990
|
-
* The artifact Zod schema (if provided) is stored in `zodSchemas.artifact`;
|
|
18991
|
-
* the binding metadata is written to `definition.artifact`.
|
|
18992
|
-
* @param options - Artifact binding configuration
|
|
18993
|
-
* @returns This builder for chaining
|
|
18673
|
+
* jexl expression resolving to the agent input payload.
|
|
18674
|
+
* When omitted the agent receives the full execution context.
|
|
18994
18675
|
*/
|
|
18995
|
-
|
|
18676
|
+
readonly inputExpression?: string;
|
|
18996
18677
|
/**
|
|
18997
|
-
*
|
|
18998
|
-
*
|
|
18999
|
-
* The handler is captured in `runtimeHandlers[id]`; the station node in
|
|
19000
|
-
* `definition.root.nodes` carries only serializable metadata.
|
|
19001
|
-
* @param id - Unique station identifier within this workflow
|
|
19002
|
-
* @param handler - Station handler function
|
|
19003
|
-
* @param options - Optional node conditions (`when`, `skip`)
|
|
19004
|
-
* @returns This builder for chaining
|
|
18678
|
+
* JSON Schema for the expected agent output.
|
|
19005
18679
|
*/
|
|
19006
|
-
|
|
18680
|
+
readonly outputSchema?: Record<string, JsonValue>;
|
|
18681
|
+
}
|
|
18682
|
+
/**
|
|
18683
|
+
* Options for gate nodes, including the required resume schema.
|
|
18684
|
+
*/
|
|
18685
|
+
interface GateOptions {
|
|
19007
18686
|
/**
|
|
19008
|
-
*
|
|
19009
|
-
*
|
|
19010
|
-
* @param agentConfig - Agent delegation configuration
|
|
19011
|
-
* @param options - Optional node conditions
|
|
19012
|
-
* @returns This builder for chaining
|
|
18687
|
+
* Message shown to the reviewer in the approval dialog.
|
|
18688
|
+
* Supports `{{ }}` template interpolation.
|
|
19013
18689
|
*/
|
|
19014
|
-
|
|
18690
|
+
readonly prompt: string;
|
|
18691
|
+
/** Optional title for the approval dialog. */
|
|
18692
|
+
readonly title?: string;
|
|
19015
18693
|
/**
|
|
19016
|
-
*
|
|
19017
|
-
*
|
|
19018
|
-
*
|
|
19019
|
-
* @param options - Optional node conditions; `prompt` defaults to the node ID
|
|
19020
|
-
* @returns This builder for chaining
|
|
18694
|
+
* Action to take when the timeout expires.
|
|
18695
|
+
* - `'approve'`: auto-approve and continue
|
|
18696
|
+
* - `'reject'`: auto-reject and fail
|
|
19021
18697
|
*/
|
|
19022
|
-
|
|
19023
|
-
readonly prompt?: string;
|
|
19024
|
-
}): WorkflowBuilder<TTrigger>;
|
|
18698
|
+
readonly autoAction: 'approve' | 'reject';
|
|
19025
18699
|
/**
|
|
19026
|
-
*
|
|
19027
|
-
*
|
|
19028
|
-
* Each branch is a {@link WorkflowNode} produced by one of the standalone
|
|
19029
|
-
* factory functions (`station`, `delegateToAgent`, `delegateToRole`, etc.).
|
|
19030
|
-
* The nodes are wrapped in a sequence branch per entry in `branches`.
|
|
19031
|
-
* @param id - Unique parallel node identifier
|
|
19032
|
-
* @param options - Parallel execution options
|
|
19033
|
-
* @param branches - Ordered list of branch nodes
|
|
19034
|
-
* @returns This builder for chaining
|
|
18700
|
+
* Timeout in milliseconds before `autoAction` fires.
|
|
18701
|
+
* `null` blocks indefinitely.
|
|
19035
18702
|
*/
|
|
19036
|
-
|
|
18703
|
+
readonly timeoutMs: number | null;
|
|
19037
18704
|
/**
|
|
19038
|
-
*
|
|
19039
|
-
*
|
|
19040
|
-
* When a `resume` Zod schema is provided in `options`, it is stored in
|
|
19041
|
-
* `zodSchemas.gates[id]` and its JSON Schema equivalent is written to
|
|
18705
|
+
* Zod schema for the resume data payload.
|
|
18706
|
+
* Captured in `zodSchemas.gates[id]`; the JSON Schema equivalent goes in
|
|
19042
18707
|
* the node's `resumeSchema` field.
|
|
19043
|
-
* @param id - Unique gate node identifier
|
|
19044
|
-
* @param options - Gate configuration including prompt and timeout
|
|
19045
|
-
* @returns This builder for chaining
|
|
19046
|
-
*/
|
|
19047
|
-
gate(id: string, options: GateOptions): WorkflowBuilder<TTrigger>;
|
|
19048
|
-
/**
|
|
19049
|
-
* Appends an iterate node to the root sequence and registers the handler.
|
|
19050
|
-
* @param id - Unique iterate node identifier
|
|
19051
|
-
* @param handler - Station handler executed for each collection item
|
|
19052
|
-
* @param options - Iterate configuration including collection expression
|
|
19053
|
-
* @returns This builder for chaining
|
|
19054
|
-
*/
|
|
19055
|
-
iterate(id: string, handler: IterateHandler, options: IterateOptions): WorkflowBuilder<TTrigger>;
|
|
19056
|
-
/**
|
|
19057
|
-
* Appends an iterate-chain node to the root sequence.
|
|
19058
|
-
*
|
|
19059
|
-
* Unlike `iterate`, the sub-chain is expressed as a static list of
|
|
19060
|
-
* {@link WorkflowNode} objects rather than a single handler.
|
|
19061
|
-
* @param id - Unique iterate-chain node identifier
|
|
19062
|
-
* @param chain - Ordered list of nodes forming the chain body
|
|
19063
|
-
* @param options - Iterate configuration including collection expression
|
|
19064
|
-
* @returns This builder for chaining
|
|
19065
18708
|
*/
|
|
19066
|
-
|
|
18709
|
+
readonly resume?: z.ZodTypeAny;
|
|
18710
|
+
}
|
|
18711
|
+
/**
|
|
18712
|
+
* Options for iterate and iterate-chain nodes.
|
|
18713
|
+
*/
|
|
18714
|
+
interface IterateOptions {
|
|
19067
18715
|
/**
|
|
19068
|
-
*
|
|
19069
|
-
* @param trigger - The trigger to add
|
|
19070
|
-
* @returns This builder with an expanded trigger payload union
|
|
18716
|
+
* jexl expression that resolves to an array at runtime.
|
|
19071
18717
|
*/
|
|
19072
|
-
|
|
18718
|
+
readonly collection: string;
|
|
19073
18719
|
/**
|
|
19074
|
-
*
|
|
19075
|
-
*
|
|
19076
|
-
* Use this escape hatch to include gate nodes, parallel nodes, iterate nodes,
|
|
19077
|
-
* and other primitive node types without registering a runtime handler.
|
|
19078
|
-
* @param node - A fully-constructed workflow node (schema-validated at runtime)
|
|
18720
|
+
* Maximum number of concurrent item executions (iterate only).
|
|
18721
|
+
* `0` or absent means unlimited concurrency.
|
|
19079
18722
|
*/
|
|
19080
|
-
|
|
18723
|
+
readonly concurrency?: number;
|
|
18724
|
+
/** Common node conditions. */
|
|
18725
|
+
readonly when?: string;
|
|
18726
|
+
/** Common node skip condition. */
|
|
18727
|
+
readonly skip?: string;
|
|
19081
18728
|
}
|
|
19082
|
-
//#endregion
|
|
19083
|
-
//#region core/contracts/src/workflow/authoring-node-factories.d.ts
|
|
19084
18729
|
/**
|
|
19085
|
-
*
|
|
19086
|
-
* `JsonSchemaRecordSchema`.
|
|
18730
|
+
* Parallel node execution mode.
|
|
19087
18731
|
*
|
|
19088
|
-
*
|
|
19089
|
-
*
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
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.
|
|
18781
|
+
*/
|
|
18782
|
+
interface WorkflowZodSchemas {
|
|
18783
|
+
/** Zod schema for the workflow's input parameters. */
|
|
18784
|
+
readonly input?: z.ZodTypeAny;
|
|
18785
|
+
/** Zod schema for the workflow's configuration values. */
|
|
18786
|
+
readonly config?: z.ZodTypeAny;
|
|
18787
|
+
/** Zod schema for the workflow's primary output. */
|
|
18788
|
+
readonly output?: z.ZodTypeAny;
|
|
18789
|
+
/** Zod schema for the workflow's primary artifact data. */
|
|
18790
|
+
readonly artifact?: z.ZodTypeAny;
|
|
18791
|
+
/** Gate resume schemas keyed by gate node ID. */
|
|
18792
|
+
readonly gates: Record<string, z.ZodTypeAny>;
|
|
18793
|
+
}
|
|
18794
|
+
/**
|
|
18795
|
+
* The result of defining a workflow via the fluent builder.
|
|
18796
|
+
*
|
|
18797
|
+
* `definition` is fully serializable — it contains no functions.
|
|
18798
|
+
* Station handlers and dynamic factories are carried in the runtime maps,
|
|
18799
|
+
* which are consumed by the executor at runtime without persisting.
|
|
18800
|
+
*/
|
|
18801
|
+
interface BuiltWorkflow {
|
|
18802
|
+
/** Unique workflow definition identifier. */
|
|
18803
|
+
readonly id: string;
|
|
18804
|
+
/**
|
|
18805
|
+
* Serializable workflow definition — safe to store, send over the bus,
|
|
18806
|
+
* and display in the UI. Contains no function bodies.
|
|
18807
|
+
*/
|
|
18808
|
+
readonly definition: WorkflowDefinition;
|
|
18809
|
+
/**
|
|
18810
|
+
* Station handler functions keyed by node ID.
|
|
18811
|
+
* Populated by `.station()` calls and standalone `station()` factories.
|
|
18812
|
+
*/
|
|
18813
|
+
readonly runtimeHandlers: ReadonlyMap<string, StationHandler>;
|
|
18814
|
+
/**
|
|
18815
|
+
* Dynamic region factory functions keyed by factory ID.
|
|
18816
|
+
* Empty while the v1 authoring surface exposes only static topology.
|
|
18817
|
+
*/
|
|
18818
|
+
readonly runtimeFactories: ReadonlyMap<string, () => WorkflowNode[]>;
|
|
18819
|
+
/** Zod schemas extracted from the builder for runtime validation. */
|
|
18820
|
+
readonly zodSchemas: WorkflowZodSchemas;
|
|
18821
|
+
/** Optional authoring-time source metadata for diagnostics. */
|
|
18822
|
+
readonly source?: WorkflowSourceLocation;
|
|
18823
|
+
}
|
|
18824
|
+
/**
|
|
18825
|
+
* Options accepted by {@link defineWorkflow} to configure workflow metadata.
|
|
18826
|
+
*/
|
|
18827
|
+
interface DefineWorkflowOptions<TTriggers extends readonly WorkflowTriggerDef<unknown>[] | undefined = undefined> {
|
|
18828
|
+
/** Human-readable workflow name. */
|
|
18829
|
+
readonly name?: string;
|
|
18830
|
+
/** Human-readable description of what this workflow does. */
|
|
18831
|
+
readonly description?: string;
|
|
18832
|
+
/** Initial trigger set. Additional triggers can be added via `addTrigger`. */
|
|
18833
|
+
readonly triggers?: TTriggers;
|
|
18834
|
+
}
|
|
18835
|
+
/**
|
|
18836
|
+
* A fluent workflow builder returned by {@link defineWorkflow}.
|
|
18837
|
+
*
|
|
18838
|
+
* Collects trigger definitions, Zod schemas, and typed station registrations,
|
|
18839
|
+
* then exposes the serializable `WorkflowDefinition` alongside runtime maps
|
|
18840
|
+
* for the worker executor.
|
|
18841
|
+
*
|
|
18842
|
+
* All fluent methods mutate internal state and return `this` so chains can be
|
|
18843
|
+
* composed freely. The builder also implements {@link BuiltWorkflow} so it can
|
|
18844
|
+
* be passed wherever a built workflow is expected without an explicit `.build()`
|
|
18845
|
+
* call.
|
|
18846
|
+
* @typeParam TTrigger - Trigger payload type (from the union of added triggers)
|
|
18847
|
+
*/
|
|
18848
|
+
interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
|
|
18849
|
+
/**
|
|
18850
|
+
* Sets the workflow's input schema.
|
|
18851
|
+
*
|
|
18852
|
+
* The Zod schema is stored in `zodSchemas.input`; its JSON Schema equivalent
|
|
18853
|
+
* is written to `definition.inputSchema`.
|
|
18854
|
+
* @param schema - Zod schema describing the workflow's input parameters
|
|
18855
|
+
* @returns This builder for chaining
|
|
18856
|
+
*/
|
|
18857
|
+
input(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
|
|
18858
|
+
/**
|
|
18859
|
+
* Sets the workflow's config schema.
|
|
18860
|
+
*
|
|
18861
|
+
* The Zod schema is stored in `zodSchemas.config`; its JSON Schema equivalent
|
|
18862
|
+
* is written to `definition.configSchema`.
|
|
18863
|
+
* @param schema - Zod schema describing the workflow's static configuration
|
|
18864
|
+
* @returns This builder for chaining
|
|
18865
|
+
*/
|
|
18866
|
+
config(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
|
|
18867
|
+
/**
|
|
18868
|
+
* Sets the workflow's output schema.
|
|
18869
|
+
*
|
|
18870
|
+
* The Zod schema is stored in `zodSchemas.output`; its JSON Schema equivalent
|
|
18871
|
+
* is written to `definition.outputSchema`.
|
|
18872
|
+
* @param schema - Zod schema describing the workflow's primary output
|
|
18873
|
+
* @returns This builder for chaining
|
|
18874
|
+
*/
|
|
18875
|
+
output(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
|
|
18876
|
+
/**
|
|
18877
|
+
* Binds a primary artifact to the workflow.
|
|
18878
|
+
*
|
|
18879
|
+
* The artifact Zod schema (if provided) is stored in `zodSchemas.artifact`;
|
|
18880
|
+
* the binding metadata is written to `definition.artifact`.
|
|
18881
|
+
* @param options - Artifact binding configuration
|
|
18882
|
+
* @returns This builder for chaining
|
|
18883
|
+
*/
|
|
18884
|
+
artifact(options: ArtifactBindingOptions): WorkflowBuilder<TTrigger>;
|
|
18885
|
+
/**
|
|
18886
|
+
* Appends a station node to the root sequence and registers the handler.
|
|
18887
|
+
*
|
|
18888
|
+
* The handler is captured in `runtimeHandlers[id]`; the station node in
|
|
18889
|
+
* `definition.root.nodes` carries only serializable metadata.
|
|
18890
|
+
* @param id - Unique station identifier within this workflow
|
|
18891
|
+
* @param handler - Station handler function
|
|
18892
|
+
* @param options - Optional node conditions (`when`, `skip`)
|
|
18893
|
+
* @returns This builder for chaining
|
|
18894
|
+
*/
|
|
18895
|
+
station(id: string, handler: StationHandler, options?: NodeOptions): WorkflowBuilder<TTrigger>;
|
|
18896
|
+
/**
|
|
18897
|
+
* Appends a delegate-agent node to the root sequence.
|
|
18898
|
+
* @param id - Unique node identifier
|
|
18899
|
+
* @param agentConfig - Agent delegation configuration
|
|
18900
|
+
* @param options - Optional node conditions
|
|
18901
|
+
* @returns This builder for chaining
|
|
18902
|
+
*/
|
|
18903
|
+
delegateToAgent(id: string, agentConfig: AgentConfig, options?: NodeOptions): WorkflowBuilder<TTrigger>;
|
|
18904
|
+
/**
|
|
18905
|
+
* Appends a delegate-role node to the root sequence.
|
|
18906
|
+
* @param id - Unique node identifier
|
|
18907
|
+
* @param role - Named product role to delegate to
|
|
18908
|
+
* @param options - Optional node conditions; `prompt` defaults to the node ID
|
|
18909
|
+
* @returns This builder for chaining
|
|
18910
|
+
*/
|
|
18911
|
+
delegateToRole(id: string, role: string, options?: DelegateToRoleOptions): WorkflowBuilder<TTrigger>;
|
|
18912
|
+
/**
|
|
18913
|
+
* Appends a parallel node with static branches to the root sequence.
|
|
18914
|
+
*
|
|
18915
|
+
* Each branch is a {@link WorkflowNode} produced by one of the standalone
|
|
18916
|
+
* factory functions (`station`, `delegateToAgent`, `delegateToRole`, etc.).
|
|
18917
|
+
* The nodes are wrapped in a sequence branch per entry in `branches`.
|
|
18918
|
+
* @param id - Unique parallel node identifier
|
|
18919
|
+
* @param options - Parallel execution options
|
|
18920
|
+
* @param branches - Ordered list of branch nodes
|
|
18921
|
+
* @returns This builder for chaining
|
|
18922
|
+
*/
|
|
18923
|
+
parallel(id: string, options: ParallelOptions, branches: WorkflowNode[]): WorkflowBuilder<TTrigger>;
|
|
18924
|
+
/**
|
|
18925
|
+
* Appends a gate node to the root sequence.
|
|
18926
|
+
*
|
|
18927
|
+
* When a `resume` Zod schema is provided in `options`, it is stored in
|
|
18928
|
+
* `zodSchemas.gates[id]` and its JSON Schema equivalent is written to
|
|
18929
|
+
* the node's `resumeSchema` field.
|
|
18930
|
+
* @param id - Unique gate node identifier
|
|
18931
|
+
* @param options - Gate configuration including prompt and timeout
|
|
18932
|
+
* @returns This builder for chaining
|
|
18933
|
+
*/
|
|
18934
|
+
gate(id: string, options: GateOptions): WorkflowBuilder<TTrigger>;
|
|
18935
|
+
/**
|
|
18936
|
+
* Appends an iterate node to the root sequence and registers the handler.
|
|
18937
|
+
* @param id - Unique iterate node identifier
|
|
18938
|
+
* @param handler - Station handler executed for each collection item
|
|
18939
|
+
* @param options - Iterate configuration including collection expression
|
|
18940
|
+
* @returns This builder for chaining
|
|
18941
|
+
*/
|
|
18942
|
+
iterate(id: string, handler: IterateHandler, options: IterateOptions): WorkflowBuilder<TTrigger>;
|
|
18943
|
+
/**
|
|
18944
|
+
* Appends an iterate-chain node to the root sequence.
|
|
18945
|
+
*
|
|
18946
|
+
* Unlike `iterate`, the sub-chain is expressed as a static list of
|
|
18947
|
+
* {@link WorkflowNode} objects rather than a single handler.
|
|
18948
|
+
* @param id - Unique iterate-chain node identifier
|
|
18949
|
+
* @param chain - Ordered list of nodes forming the chain body
|
|
18950
|
+
* @param options - Iterate configuration including collection expression
|
|
18951
|
+
* @returns This builder for chaining
|
|
18952
|
+
*/
|
|
18953
|
+
iterateChain(id: string, chain: WorkflowNode[], options: IterateOptions): WorkflowBuilder<TTrigger>;
|
|
18954
|
+
/**
|
|
18955
|
+
* Appends a trigger to the workflow definition.
|
|
18956
|
+
* @param trigger - The trigger to add
|
|
18957
|
+
* @returns This builder with an expanded trigger payload union
|
|
18958
|
+
*/
|
|
18959
|
+
addTrigger<TPayload>(trigger: WorkflowTriggerDef<TPayload>): WorkflowBuilder<TTrigger | TPayload>;
|
|
18960
|
+
/**
|
|
18961
|
+
* Appends an arbitrary pre-built node to the root sequence.
|
|
18962
|
+
*
|
|
18963
|
+
* Use this escape hatch to include gate nodes, parallel nodes, iterate nodes,
|
|
18964
|
+
* and other primitive node types without registering a runtime handler.
|
|
18965
|
+
* @param node - A fully-constructed workflow node (schema-validated at runtime)
|
|
18966
|
+
*/
|
|
18967
|
+
addNode(node: WorkflowNode): void;
|
|
18968
|
+
}
|
|
18969
|
+
//#endregion
|
|
18970
|
+
//#region core/contracts/src/workflow/authoring-node-factories.d.ts
|
|
18971
|
+
/**
|
|
18972
|
+
* Converts a Zod schema to a JSON Schema record compatible with
|
|
18973
|
+
* `JsonSchemaRecordSchema`.
|
|
18974
|
+
*
|
|
18975
|
+
* Uses Zod v4's built-in `z.toJSONSchema()` and strips the `$schema` key so
|
|
18976
|
+
* the result is a plain JSON Schema document without the meta-schema pointer.
|
|
18977
|
+
* @param schema - Any Zod schema to convert
|
|
18978
|
+
* @returns A `Record<string, JsonValue>` suitable for storage in a workflow definition
|
|
18979
|
+
*/
|
|
19093
18980
|
declare function zodSchemaToJsonRecord(schema: z.ZodTypeAny): Record<string, JsonValue>;
|
|
19094
18981
|
/**
|
|
19095
18982
|
* Creates a station node for use as a branch inside a `parallel()` call or
|
|
@@ -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<{
|
|
@@ -19965,6 +19850,25 @@ declare const McpSessionContextSchema: z.ZodObject<{
|
|
|
19965
19850
|
*/
|
|
19966
19851
|
declare const McpRuntimeSessionContextSchema: z.ZodObject<{
|
|
19967
19852
|
sessionId: z.ZodString;
|
|
19853
|
+
directTools: z.ZodArray<z.ZodObject<{
|
|
19854
|
+
fullName: z.ZodString;
|
|
19855
|
+
originalName: z.ZodString;
|
|
19856
|
+
serverName: z.ZodString;
|
|
19857
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19858
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19859
|
+
exposureMode: z.ZodEnum<{
|
|
19860
|
+
hidden: "hidden";
|
|
19861
|
+
discovery: "discovery";
|
|
19862
|
+
direct: "direct";
|
|
19863
|
+
}>;
|
|
19864
|
+
enabled: z.ZodBoolean;
|
|
19865
|
+
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
19866
|
+
discovery: "discovery";
|
|
19867
|
+
toolset: "toolset";
|
|
19868
|
+
}>>;
|
|
19869
|
+
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
19870
|
+
exposed: z.ZodBoolean;
|
|
19871
|
+
}, z.core.$strip>>;
|
|
19968
19872
|
servers: z.ZodArray<z.ZodObject<{
|
|
19969
19873
|
name: z.ZodString;
|
|
19970
19874
|
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -19993,581 +19897,235 @@ declare const McpRuntimeSessionContextSchema: z.ZodObject<{
|
|
|
19993
19897
|
name: z.ZodString;
|
|
19994
19898
|
permission_policy: z.ZodEnum<{
|
|
19995
19899
|
always_allow: "always_allow";
|
|
19996
|
-
always_ask: "always_ask";
|
|
19997
|
-
always_deny: "always_deny";
|
|
19998
|
-
}>;
|
|
19999
|
-
}, z.core.$strip>>>;
|
|
20000
|
-
alwaysLoad: z.ZodOptional<z.ZodBoolean>;
|
|
20001
|
-
type: z.ZodLiteral<"http">;
|
|
20002
|
-
}, z.core.$strip>], "type">;
|
|
20003
|
-
exposureMode: z.ZodEnum<{
|
|
20004
|
-
|
|
20005
|
-
|
|
20006
|
-
}>;
|
|
20007
|
-
}, z.core.$strip>>;
|
|
20008
|
-
|
|
20009
|
-
fullName: z.ZodString;
|
|
20010
|
-
originalName: z.ZodString;
|
|
20011
|
-
serverName: z.ZodString;
|
|
20012
|
-
description: z.ZodOptional<z.ZodString>;
|
|
20013
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20014
|
-
exposureMode: z.ZodEnum<{
|
|
20015
|
-
|
|
20016
|
-
discovery: "discovery";
|
|
20017
|
-
|
|
20018
|
-
}>;
|
|
20019
|
-
enabled: z.ZodBoolean;
|
|
20020
|
-
enabledBy: z.ZodOptional<z.ZodEnum<{
|
|
20021
|
-
discovery: "discovery";
|
|
20022
|
-
toolset: "toolset";
|
|
20023
|
-
}>>;
|
|
20024
|
-
enabledAt: z.ZodOptional<z.ZodNumber>;
|
|
20025
|
-
exposed: z.ZodBoolean;
|
|
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
|
-
direct: "direct";
|
|
20035
|
-
discovery: "discovery";
|
|
20036
|
-
hidden: "hidden";
|
|
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
|
-
spawning: "spawning";
|
|
20268
|
-
running: "running";
|
|
20269
|
-
waiting_input: "waiting_input";
|
|
20270
|
-
hung: "hung";
|
|
20271
|
-
failed: "failed";
|
|
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
|
-
waiting_input: "waiting_input";
|
|
20459
|
-
failed: "failed";
|
|
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;
|
|
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
|
/**
|
|
@@ -20714,11 +20272,11 @@ declare const SubagentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
20714
20272
|
status: z.ZodEnum<{
|
|
20715
20273
|
completed: "completed";
|
|
20716
20274
|
cancelled: "cancelled";
|
|
20717
|
-
|
|
20275
|
+
failed: "failed";
|
|
20718
20276
|
running: "running";
|
|
20277
|
+
spawning: "spawning";
|
|
20719
20278
|
waiting_input: "waiting_input";
|
|
20720
20279
|
hung: "hung";
|
|
20721
|
-
failed: "failed";
|
|
20722
20280
|
}>;
|
|
20723
20281
|
childSessionId: z.ZodOptional<z.ZodString>;
|
|
20724
20282
|
pendingRequest: z.ZodOptional<z.ZodObject<{
|
|
@@ -20863,8 +20421,8 @@ declare const SubagentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
20863
20421
|
status: z.ZodEnum<{
|
|
20864
20422
|
completed: "completed";
|
|
20865
20423
|
cancelled: "cancelled";
|
|
20866
|
-
waiting_input: "waiting_input";
|
|
20867
20424
|
failed: "failed";
|
|
20425
|
+
waiting_input: "waiting_input";
|
|
20868
20426
|
timeout: "timeout";
|
|
20869
20427
|
}>;
|
|
20870
20428
|
result: z.ZodOptional<z.ZodString>;
|
|
@@ -20949,11 +20507,11 @@ declare const SubagentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
20949
20507
|
status: z.ZodEnum<{
|
|
20950
20508
|
completed: "completed";
|
|
20951
20509
|
cancelled: "cancelled";
|
|
20952
|
-
|
|
20510
|
+
failed: "failed";
|
|
20953
20511
|
running: "running";
|
|
20512
|
+
spawning: "spawning";
|
|
20954
20513
|
waiting_input: "waiting_input";
|
|
20955
20514
|
hung: "hung";
|
|
20956
|
-
failed: "failed";
|
|
20957
20515
|
}>;
|
|
20958
20516
|
}, z.core.$strip>>;
|
|
20959
20517
|
}, z.core.$strip>;
|