@makaio/framework 1.0.0-dev-1787670071418 → 1.0.0-dev-1787670559522
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/README.md +0 -2
- package/dist/.makaio-build.json +2 -2
- package/dist/{account-identity-B3vLwm9O.mjs → account-identity-DGpXd8h_.mjs} +1 -1
- package/dist/adapter-BkdJaOOG.mjs +1 -0
- package/dist/adapter-subsystem/index.d.mts +76 -118
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/claude/index.d.mts +5 -5
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +53 -73
- package/dist/adapters/index.mjs +6 -6
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/agent-namespace-D51PODFf.mjs +1 -0
- package/dist/{artifact-Btbuib48.mjs → artifact-k3veR4Yx.mjs} +1 -1
- package/dist/attach-error-BSlc7JfL.mjs +1 -0
- package/dist/{auth-C6tVtaOX.mjs → auth-A1K_7q-8.mjs} +1 -1
- package/dist/{authority-state-bootstrap-CLYus369.mjs → authority-state-bootstrap-YwtEImIB.mjs} +1 -1
- package/dist/{automation-trigger-ByjNlClm.mjs → automation-trigger-CuSdQwir.mjs} +1 -1
- package/dist/bus/index.d.mts +4 -22
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-BIj0_aG6.mjs +1 -0
- package/dist/{bus-D6NoBhIV.mjs → bus-CqgrphNE.mjs} +1 -1
- package/dist/{canonical-model-DXOvCaVg.mjs → canonical-model-DJASlL4m.mjs} +1 -1
- package/dist/capabilities-Bqckjh7G.mjs +1 -0
- package/dist/capability-service-CJHNkjvm.mjs +1 -0
- package/dist/{client-BkznbdsO.mjs → client-BL5__WT0.mjs} +1 -1
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/{compression-CtgeVLpP.mjs → compression-BbttSqm8.mjs} +1 -1
- package/dist/{config-namespace-CjWvw8ij.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
- package/dist/{context-resolution-841T7jBI.d.mts → context-resolution-ya9TXKg-.d.mts} +1 -1
- package/dist/contracts/adapter/index.d.mts +3 -3
- 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 +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/auth/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.d.mts +3 -3
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.mjs +1 -1
- 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 +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +5 -5
- 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 +47 -57
- 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/provider/index.mjs +1 -1
- package/dist/contracts/reaction/index.d.mts +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +3 -3
- package/dist/contracts/shared/index.mjs +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/timeout/index.mjs +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/contracts/worker-node/index.d.mts +1 -1
- package/dist/contracts/worker-node/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{contribution-CUHLVLsT.d.mts → contribution-BB5bjx3f.d.mts} +2 -2
- package/dist/core/index.d.mts +2 -25
- package/dist/{definition-DyGImhyi.d.mts → definition-BYgHlmMw.d.mts} +1 -1
- package/dist/{definition-BH4QLGLI.mjs → definition-CDg-Jq1T.mjs} +1 -1
- package/dist/{detached-extension-handle-D0aI0pJA.mjs → detached-extension-handle-DKd17UB6.mjs} +1 -1
- package/dist/drizzle/meta/_journal.json +0 -28
- package/dist/event-DR8U9Efx.mjs +1 -0
- package/dist/{execution-attempt-repository-BJ2W6wwx.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
- package/dist/{execution-target-H0RWV7Py.mjs → execution-target-ByNwZh5-.mjs} +1 -1
- package/dist/{extension-Cz39YNXy.mjs → extension-DMdmj9gi.mjs} +1 -1
- package/dist/{extension-Bfkr2DBs.mjs → extension-DUmibvMk.mjs} +1 -1
- package/dist/{extension-discovery-Dhu3WplO.d.mts → extension-discovery-Fhps4icD.d.mts} +1 -9
- package/dist/{filesystem-service-CiUw0YN5.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
- package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
- package/dist/git/index.mjs +2 -2
- package/dist/{globby-QBDqstzq.mjs → globby-BBLuT_vy.mjs} +1 -1
- package/dist/handlers-2yd00VEq.mjs +57 -0
- package/dist/{harness-YQ2ewID9.mjs → harness-KxbWGL4I.mjs} +1 -1
- package/dist/{hook-responses-9Ywsqzzq.d.mts → hook-responses-uCXAICTU.d.mts} +1 -1
- package/dist/identity-DC3Pk0ps.mjs +1 -0
- package/dist/{index-D-4jv_66.d.mts → index-1UcQWrZy.d.mts} +149 -149
- package/dist/{index-D8D-yibS2.d.mts → index-B0xJgTi-.d.mts} +4 -4
- package/dist/{index-CYjgoYeX.d.mts → index-BMVZs6pm.d.mts} +3 -3
- package/dist/{index-CPi0UpRh.d.mts → index-BSQ30wYP.d.mts} +1 -1
- package/dist/{index-DXtQRehh.d.mts → index-Bl7KWFod.d.mts} +1 -1
- package/dist/{index-D_4K3Tf_.d.mts → index-BtdK8HeH.d.mts} +168 -43
- package/dist/{index-C146Eq_J.d.mts → index-C-JzEkqs.d.mts} +1802 -536
- package/dist/{index-DI2lS7VT.d.mts → index-CER64zYO.d.mts} +15 -15
- package/dist/{index-BkbnC65b.d.mts → index-CM75k-Ff.d.mts} +17 -189
- package/dist/{index-CmwAJ8-5.d.mts → index-CSN_0sCo.d.mts} +1 -1
- package/dist/{index-CIEycZrt.d.mts → index-C__EQfKa.d.mts} +1 -1
- package/dist/{index-B0VO0rAl.d.mts → index-CfiCJPP6.d.mts} +1 -1
- package/dist/{index-BNzUyVwV.d.mts → index-CqQYgsbB.d.mts} +170 -513
- package/dist/{index-B0yMCJW8.d.mts → index-DI7-tIL3.d.mts} +14 -39
- package/dist/{index-CMekqu_D.d.mts → index-DxYDRoDE2.d.mts} +8 -28
- package/dist/index-OsbtyMgx2.d.mts +98 -0
- package/dist/{index-DJ2KgJDJ2.d.mts → index-cPqSpWQC.d.mts} +12 -12
- package/dist/{index-DNI6UF9h.d.mts → index-e4Txan9i.d.mts} +4 -4
- package/dist/{index-CPRQ4dWX.d.mts → index-nydhGvXa.d.mts} +23 -0
- package/dist/json-value-C1RGgS0a.d.mts +72 -0
- package/dist/json-value-D57aJhVn.mjs +1 -0
- 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-Cm-uEoC1.mjs → lib-B_rJ6r0T.mjs} +1 -1
- package/dist/{lib-BpGvHZye.mjs → lib-CnOAtohU.mjs} +2 -2
- package/dist/{load-extensions-DG5LvPyM.mjs → load-extensions-CW9uzNR5.mjs} +1 -1
- package/dist/{load-extensions-BQoXaHhR.d.mts → load-extensions-DUpaMQ7G.d.mts} +1 -1
- package/dist/{materialization-lVd9_-jr.mjs → materialization-CcpCDhXh.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/model-ZH3L1dPW.mjs +1 -0
- package/dist/{namespace-BL7lHlmg.mjs → namespace-B7bntOB8.mjs} +1 -1
- package/dist/{namespace-BNp7n_gu.d.mts → namespace-BgEiY7r1.d.mts} +3 -3
- package/dist/{namespace-DknCutQZ.d.mts → namespace-C6CVEGH8.d.mts} +0 -50
- package/dist/{namespace-C06lJSuj.d.mts → namespace-ChnRTUG4.d.mts} +6 -6
- package/dist/namespace-CxrOLeeP.mjs +1 -0
- package/dist/{namespace-BRuHzhPo.d.mts → namespace-DSlfFhB1.d.mts} +2 -154
- package/dist/{native-session-supervisor-LKio8XZn.mjs → native-session-supervisor-fZYPUk0-.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-CNHSImNY.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +10 -9
- package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
- package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
- package/dist/{package-BNFTUFLB.d.mts → package-Bf3hyuzs.d.mts} +2 -2
- package/dist/{package-JtjbO-Oi.mjs → package-CddkNbZI.mjs} +1 -1
- package/dist/{package-B01gmu75.mjs → package-ypz4rKvn.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{profile-N5qGUpF0.mjs → profile-BtznZlq3.mjs} +1 -1
- package/dist/{provider-context-zTDSH2x9.mjs → provider-context-BrLZYnDW.mjs} +1 -1
- package/dist/{provider-context-CG42JlP9.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
- package/dist/{reaction-D3TNwPK8.mjs → reaction-BS0k4eNN.mjs} +1 -1
- package/dist/{registry-Dk12tAfv.mjs → registry-BO_bOoky.mjs} +1 -1
- package/dist/{resolved-sq8RXNDf.mjs → resolved-DMByz1_2.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 +2 -2
- package/dist/runtime-node/extension-discovery.mjs +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 +4 -6
- package/dist/runtime-node/index.mjs +24 -24
- 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-Dq-7si8u.mjs → schema-DBG7Jq5_.mjs} +1 -1
- package/dist/{schema-B3Pf7JP7.d.mts → schema-DKTzriEY.d.mts} +3 -250
- package/dist/{schemas-C1mxTfd7.d.mts → schemas-B7zo7Zcx.d.mts} +4 -60
- package/dist/schemas-BqD8LlQw.mjs +1 -0
- package/dist/{schemas-QWDnauKX.mjs → schemas-CsjN7cmM.mjs} +1 -1
- package/dist/schemas-CvHFbzdy.mjs +1 -0
- package/dist/{schemas-BfO5jkrL.mjs → schemas-DSkBOdx_.mjs} +1 -1
- package/dist/{schemas-OWvBn7AH.d.mts → schemas-DZH9lpxs.d.mts} +4 -4
- package/dist/schemas-DplrlAyR.mjs +1 -0
- package/dist/{schemas-Dd13TMgU.d.mts → schemas-DvMbcABQ.d.mts} +4 -4
- package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
- package/dist/{selection-DL3ric7K.mjs → selection-7Ku8DBnh.mjs} +1 -1
- package/dist/services/adapter-runtime/index.d.mts +4 -4
- 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 +2 -2
- package/dist/services/adapter-runtime/schemas.mjs +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +3 -3
- 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/automation-trigger/index.mjs +1 -1
- package/dist/services/capability/index.d.mts +2 -3
- 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 +1 -1
- 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/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/index.d.mts +1 -1
- package/dist/services/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.d.mts +0 -18
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +1 -10
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +61 -161
- 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/materialization/index.d.mts +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/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 +10 -10
- 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 +2 -2
- package/dist/services/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.d.mts +1 -22
- package/dist/services/session/testing/index.mjs +14 -38
- 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 +4 -4
- 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/services/workflow-transitions/index.d.mts +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/session-BMy2kRpX.mjs +90 -0
- package/dist/session-Cipx34j6.mjs +1 -0
- package/dist/{shared-B9AWRm9A.mjs → shared-BFVuCDPx.mjs} +1 -1
- package/dist/{skill-DGNtc_ww.mjs → skill-C1D51nhh.mjs} +1 -1
- package/dist/{src-BmSQ3rlz.mjs → src-xbmzokNe.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 +2 -41
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/drizzle/index.d.mts +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.d.mts +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/tool-approval-service-BVgN9Q1r.mjs +1 -0
- package/dist/{tools-DWKWX3eV.mjs → tools-DxwHox1a.mjs} +1 -1
- package/dist/{transition-D3zUBTPc.d.mts → transition-C_Ka6b0-.d.mts} +6 -6
- package/dist/{types-CtDGkyLx2.d.mts → types-BNjPhj_a.d.mts} +1 -1
- package/dist/{types-OKJCOjme.d.mts → types-ClpEaoAm.d.mts} +4 -24
- package/dist/{types-DcxBYlPA.d.mts → types-CwvN4uN2.d.mts} +49 -3029
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/index.d.mts +1 -22
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/project-manifest.mjs +1 -1
- package/dist/{version-BYeVh1pI.mjs → version-BfNnVAGr.mjs} +1 -1
- package/dist/{view-builder-B0j9p5C0.d.mts → view-builder-KYsPqV-5.d.mts} +4 -4
- package/dist/{visibility-DtDLRBdr.mjs → visibility-Dl1o2I01.mjs} +1 -1
- package/dist/worker-node-BDOYPEpi.mjs +1 -0
- package/dist/{worker-node-Dtf9ilsR.mjs → worker-node-DJ41Tr-F.mjs} +1 -1
- package/dist/workflow-Hzc5jlnV.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
- package/dist/workflow-engine/index.d.mts +95 -95
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/provider-operation.d.mts +1 -1
- package/dist/workflow-engine/testing/index.d.mts +2 -2
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-c_VQbyV0.mjs → workflow-transitions-DM0fN_eP.mjs} +1 -1
- package/dist/workflow-worker-DARC7UZl.mjs +1 -0
- package/package.json +1 -18
- package/dist/adapter-Dz1fX5Wa.mjs +0 -1
- package/dist/attach-error-Cb3GbeKe.mjs +0 -1
- package/dist/bus-UgFdHybD.mjs +0 -1
- package/dist/caller-owned-adapter-stub-C1M7FKrv.mjs +0 -1
- package/dist/capabilities-BUwuA7XX.mjs +0 -1
- package/dist/capability-j3NekkIu.mjs +0 -1
- package/dist/code-execution/worker-entry.d.mts +0 -21
- package/dist/code-execution/worker-entry.mjs +0 -1
- package/dist/code-execution-Ckmn8OZu.mjs +0 -1
- package/dist/code-execution-CweDSWco.mjs +0 -1
- package/dist/code-execution-DqkQjKa1.mjs +0 -1
- package/dist/contracts/code-execution/index.d.mts +0 -2
- package/dist/contracts/code-execution/index.mjs +0 -1
- package/dist/drizzle/0034_m_msha1388.sql +0 -41
- package/dist/drizzle/0035_m_mshgj6x7.sql +0 -40
- package/dist/drizzle/0036_m_msivwbgm.sql +0 -1
- package/dist/drizzle/0037_runtime_instance_incarnation_counter.sql +0 -6
- package/dist/event-B8ELuk6k.mjs +0 -1
- package/dist/framework-packages-BHgul8Kl.mjs +0 -1
- package/dist/handlers-BsHAFtye.mjs +0 -57
- package/dist/identity-OjRlG6dZ.mjs +0 -1
- package/dist/index-Bqk0pJBQ2.d.mts +0 -138
- package/dist/index-Cny5RvjO.d.mts +0 -800
- package/dist/index-DHnSLGP4.d.mts +0 -268
- package/dist/index-DQ8o3JGi.d.mts +0 -132
- package/dist/index-DWBkiiXH.d.mts +0 -18
- package/dist/index-Dg11JxKZ.d.mts +0 -496
- package/dist/json-value-BBZ6uGwc.mjs +0 -1
- package/dist/json-value-DPqb-SJ8.d.mts +0 -177
- package/dist/model-DrzPt3ou.mjs +0 -1
- package/dist/namespace-sCPb79-7.mjs +0 -1
- package/dist/npm-package-name-DuTYVICk.mjs +0 -1
- package/dist/orchestrator-shared-BGlN-m-V.mjs +0 -1
- package/dist/ownership-memory-handler-BpGdR_uG.mjs +0 -1
- package/dist/ownership-recovery-guard-DyW5vGBr.mjs +0 -1
- package/dist/package-DttKA9wN.mjs +0 -1
- package/dist/runtime-node/code-execution/index.d.mts +0 -3
- package/dist/runtime-node/code-execution/index.mjs +0 -1
- package/dist/schemas-C3kyQWGf.mjs +0 -1
- package/dist/schemas-TK29KWx-.mjs +0 -1
- package/dist/schemas-_2Syo_01.mjs +0 -1
- package/dist/scoped-bus-DoPmCJeM.mjs +0 -1
- package/dist/services/code-execution/index.d.mts +0 -2
- package/dist/services/code-execution/index.mjs +0 -1
- package/dist/session-BOpTI79g.mjs +0 -1
- package/dist/session-CXOPk3yg.mjs +0 -95
- package/dist/tool-approval-service-BFDOFUGC.mjs +0 -1
- package/dist/types-Cwza95hS.mjs +0 -1
- package/dist/types-DnK6Wa_Y.d.mts +0 -260
- package/dist/worker-node-CjuQb9hl.mjs +0 -1
- package/dist/workflow-C4mck_NW.mjs +0 -1
- package/dist/workflow-worker-aNbdgqml.mjs +0 -1
- /package/dist/{adapter-auth-runtime-DHHppU4f.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
- /package/dist/{adapter-binding-CATvmGuz.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
- /package/dist/{ajv-krzJXh1X.mjs → ajv-L5fKxaia.mjs} +0 -0
- /package/dist/{attempt-record-codec-BYfYkj4M.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
- /package/dist/{await-trigger-Bkg2BQfg.mjs → await-trigger-ph1S0zVI.mjs} +0 -0
- /package/dist/{base-orchestrator-B4YW6z_Q.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
- /package/dist/{client-BG0WX5Vz.d.mts → client-4ihewPUm.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-0lCKZOTg.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
- /package/dist/{client-binary-version-verifier-lcv83Hq3.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
- /package/dist/{clients-namespace-DLAjOTTb.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
- /package/dist/{config-namespace-CH7sJZ4f.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
- /package/dist/{create-static-mount-DxuixuLZ.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
- /package/dist/{cross-spawn-CZygZJMH.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
- /package/dist/{cursor-storage-bsc9lZKk.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
- /package/dist/{definition-BrgzUuFk.d.mts → definition-DB-kKc0d.d.mts} +0 -0
- /package/dist/{definitions-CRpdnHYM.mjs → definitions-CF6YmEhL.mjs} +0 -0
- /package/dist/{descriptor-to-package-CcjdoWP4.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
- /package/dist/{drizzle-Bzc-OGVI.mjs → drizzle-CPv3vdTE.mjs} +0 -0
- /package/dist/{esm-i-S5TW72.mjs → esm-CBFWM8u_.mjs} +0 -0
- /package/dist/{extension-context-QmFuHdq5.d.mts → extension-context-DzB7ydM3.d.mts} +0 -0
- /package/dist/{extension-namespace-QoTTwKPt.mjs → extension-namespace-B554RmCp.mjs} +0 -0
- /package/dist/{extension-package-provenance-aYrZuS4W.mjs → extension-package-provenance-Dh_-Z-tE.mjs} +0 -0
- /package/dist/{facet-BnMh7Jyc.mjs → facet-DVsW12iF.mjs} +0 -0
- /package/dist/{filesystem-service-ZJ43SbBi.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
- /package/dist/{handler-DF1fVDpf.mjs → handler-Bqlk-6BY.mjs} +0 -0
- /package/dist/{host-B-_ntOMH.mjs → host-k5yoyKHg.mjs} +0 -0
- /package/dist/{index-8NdPPzUh2.d.mts → index--atUpi5l2.d.mts} +0 -0
- /package/dist/{index-Ek4y8M9J2.d.mts → index-42UdYStR.d.mts} +0 -0
- /package/dist/{index-C4V8Pmi4.d.mts → index-BJAB-BW_.d.mts} +0 -0
- /package/dist/{index-l01zsChf.d.mts → index-BJMezANn.d.mts} +0 -0
- /package/dist/{index-D037TVsm.d.mts → index-BQprJNA_.d.mts} +0 -0
- /package/dist/{index-B4svZC6L.d.mts → index-BRCrFirq.d.mts} +0 -0
- /package/dist/{index-jxPncqWZ2.d.mts → index-BSbGB23v.d.mts} +0 -0
- /package/dist/{index-BMRB9yhF.d.mts → index-BVcQcphK.d.mts} +0 -0
- /package/dist/{index-B2Y1Wvbh.d.mts → index-BcvqDfcN.d.mts} +0 -0
- /package/dist/{index-DgspOUa72.d.mts → index-BeENojSx2.d.mts} +0 -0
- /package/dist/{index-VzLAV0Yt.d.mts → index-Beo_Ik8-.d.mts} +0 -0
- /package/dist/{index-CqdMbYmR.d.mts → index-BgGe9WZz.d.mts} +0 -0
- /package/dist/{index-kzIjbrS02.d.mts → index-Bqm0ahTQ.d.mts} +0 -0
- /package/dist/{index-B-3I98nw.d.mts → index-C7HcDpHE.d.mts} +0 -0
- /package/dist/{index-pvX-BIpr2.d.mts → index-CK3f0bAL.d.mts} +0 -0
- /package/dist/{index-B5dP8rj6.d.mts → index-CQuRTeRa.d.mts} +0 -0
- /package/dist/{index-BC-6qNeo.d.mts → index-CRmE88hi.d.mts} +0 -0
- /package/dist/{index-CVpaGijY.d.mts → index-CvW9_SzR.d.mts} +0 -0
- /package/dist/{index-BFWvT0NG.d.mts → index-CxSSdIZz.d.mts} +0 -0
- /package/dist/{index-BmevAPME2.d.mts → index-DBadVauL.d.mts} +0 -0
- /package/dist/{index-BM56936c.d.mts → index-DP3o_13U.d.mts} +0 -0
- /package/dist/{index-BfV8U4XX.d.mts → index-DgOfgjx3.d.mts} +0 -0
- /package/dist/{index-8y4hT9WL.d.mts → index-DwLRZscE.d.mts} +0 -0
- /package/dist/{index-CmbkCxj-.d.mts → index-E4SET1AA.d.mts} +0 -0
- /package/dist/{index-BuMsrli0.d.mts → index-OADt3xlS.d.mts} +0 -0
- /package/dist/{capability-service-BW1-teFU.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
- /package/dist/{index-CL0Jo1b92.d.mts → index-aoxdnhJ42.d.mts} +0 -0
- /package/dist/{index-BTEJfzjE.d.mts → index-bIe_57cL.d.mts} +0 -0
- /package/dist/{jsonl-transport-Cyyh5Wje.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
- /package/dist/{lib-BqV8hYtk.mjs → lib-Bwdd2m81.mjs} +0 -0
- /package/dist/{model-registry-Cixxx2jv.mjs → model-registry-Y854mUml.mjs} +0 -0
- /package/dist/{model-registry-C9rFu3kV.mjs → model-registry-yURX738J.mjs} +0 -0
- /package/dist/{modes-DwsJ3yVl.mjs → modes-DmUsjHdV.mjs} +0 -0
- /package/dist/{namespace-jVTsuZHX.mjs → namespace-B9FEGuEu.mjs} +0 -0
- /package/dist/{namespace-NXm_zvL1.mjs → namespace-BFqkUTJp.mjs} +0 -0
- /package/dist/{namespace-BUYDmd0r.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
- /package/dist/{namespace-CVFaZv8x.d.mts → namespace-BusZERU8.d.mts} +0 -0
- /package/dist/{namespace-B0ftHlK3.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
- /package/dist/{namespace-BGRHcrmp.d.mts → namespace-C1D77w7U.d.mts} +0 -0
- /package/dist/{namespace-Du0accdE.mjs → namespace-CFjdyNXG.mjs} +0 -0
- /package/dist/{namespace-DiwqpB-c.mjs → namespace-CfIW0hpQ.mjs} +0 -0
- /package/dist/{namespace-BW3Bfu9h.mjs → namespace-CkBbNFSU.mjs} +0 -0
- /package/dist/{namespace-DOezqDti.d.mts → namespace-CrDlawqu.d.mts} +0 -0
- /package/dist/{namespace-BdAK0lD8.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
- /package/dist/{namespace-tjoxekmf.mjs → namespace-DbNWsPFY.mjs} +0 -0
- /package/dist/{namespace-CPG6u60N.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
- /package/dist/{namespace-l-HG1rLF.d.mts → namespace-DwZwGXgF.d.mts} +0 -0
- /package/dist/{namespace-DqZweTbX.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
- /package/dist/{namespace-DBO1OzYB.d.mts → namespace-yREpGJgG.d.mts} +0 -0
- /package/dist/{out-8bOYN6EF.mjs → out-DrhwCgqM.mjs} +0 -0
- /package/dist/{package-EGTn-Ng1.mjs → package-CBdvjyyZ.mjs} +0 -0
- /package/dist/{packages-Bp124-gx.mjs → packages-FBv3fAOR.mjs} +0 -0
- /package/dist/{packages-CxPMEg8D.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
- /package/dist/{platform-CxyYPrkf.mjs → platform-BrsMv_S3.mjs} +0 -0
- /package/dist/{provider-operation-DbdyFwNm.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
- /package/dist/{providers-C-eekMxD.mjs → providers-CCcn4Ndp.mjs} +0 -0
- /package/dist/{providers-namespace-CfZKp-C0.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
- /package/dist/{quick-lru-CCEnf7y6.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
- /package/dist/{schema-introspection-6-r_KEJQ.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
- /package/dist/{schema-C0opCPww.mjs → schema-jIapW8Kb.mjs} +0 -0
- /package/dist/{schemas-BXc9qOpl.d.mts → schemas-B3bfVYcL.d.mts} +0 -0
- /package/dist/{schemas-BivbWRkG.mjs → schemas-BNdiVBWh.mjs} +0 -0
- /package/dist/{schemas-B6Q-qdmn.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
- /package/dist/{schemas-B50oWBuj.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
- /package/dist/{schemas-ChmQldVH.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
- /package/dist/{schemas-Pe892GgN.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
- /package/dist/{schemas-B8hKbBwI.mjs → schemas-DgwEVUt-.mjs} +0 -0
- /package/dist/{schemas-D7ScxLrf.d.mts → schemas-VbB1FTxx.d.mts} +0 -0
- /package/dist/{schemas-scyC2tFF.mjs → schemas-mLpOfMoN.mjs} +0 -0
- /package/dist/{schemas-bfZNpl0B.d.mts → schemas-qA279_j_.d.mts} +0 -0
- /package/dist/{schemas-BGvkTiCx.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
- /package/dist/{semver-BI7kTNsY.mjs → semver-DTXuyLcK.mjs} +0 -0
- /package/dist/{server-lifecycle-L8zja8t8.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
- /package/dist/{server-lifecycle-B_OZnoe-.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
- /package/dist/{session-lineage-bUkd3fqx.d.mts → session-lineage-D5E142LU.d.mts} +0 -0
- /package/dist/{shared-schemas-CQ6blrEW.mjs → shared-schemas-aahW97QW.mjs} +0 -0
- /package/dist/{src-BacfeiI4.mjs → src-DHqsl5Pg.mjs} +0 -0
- /package/dist/{storage-namespace-BZce8kkW.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
- /package/dist/{storage-namespace-YmE8XCCL.d.mts → storage-namespace-Tf3P5yJ5.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-Cca-zwXU.mjs → storage-namespace-definition-CDef0E20.mjs} +0 -0
- /package/dist/{supports-color-SV_FgSN2.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
- /package/dist/{telemetry-BqoC87F-.mjs → telemetry-BvCBUjFg.mjs} +0 -0
- /package/dist/{timeout-DVlN2Zhy.mjs → timeout-B0nYjLc8.mjs} +0 -0
- /package/dist/{tray-menu-service-eVVxgPLc.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
- /package/dist/{types-DdpSEmTO.d.mts → types-CNS55jvt.d.mts} +0 -0
- /package/dist/{types-tyv0B605.d.mts → types-Ce6LL25v.d.mts} +0 -0
- /package/dist/{types-BlB23n4f.d.mts → types-xCdGghb2.d.mts} +0 -0
- /package/dist/{ui-config-B35GloSX.mjs → ui-config-BIyGzMNL.mjs} +0 -0
- /package/dist/{variant-Dwnge3J_.mjs → variant-B4uWdxW7.mjs} +0 -0
- /package/dist/{window-registry-Pcf35cac.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
- /package/dist/{window-registry-CKiMJjId.mjs → window-registry-CoBJq3u4.mjs} +0 -0
- /package/dist/{zod-json-schema-Dixc-B1T.mjs → zod-json-schema-BAGAFfCN.mjs} +0 -0
|
@@ -1,800 +0,0 @@
|
|
|
1
|
-
import { l as JsonValue$1 } from "./json-value-DPqb-SJ8.mjs";
|
|
2
|
-
import { o as ICapabilityProvider$1 } from "./index-DQ8o3JGi.mjs";
|
|
3
|
-
import * as _$zod from "zod";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
6
|
-
import { MakaioBusLike } from "@makaio/framework/core";
|
|
7
|
-
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
8
|
-
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
9
|
-
|
|
10
|
-
//#region core/contracts/src/code-execution/types.d.ts
|
|
11
|
-
/** Capability identifier used for CodeExecution providers. */
|
|
12
|
-
declare const CODE_EXECUTION_CAPABILITY_ID$1: "code-execution";
|
|
13
|
-
/**
|
|
14
|
-
* Ordered constant array of every trust level a CodeExecution provider may
|
|
15
|
-
* declare.
|
|
16
|
-
*
|
|
17
|
-
* Source of truth for the {@link CodeExecutionTrustLevel} union, and the enum
|
|
18
|
-
* the requirements schema is built from — `CodeExecutionRequirementsSchema`
|
|
19
|
-
* spells its `trust` field as `z.enum(CODE_EXECUTION_TRUST_LEVELS)`, so adding
|
|
20
|
-
* a level here widens the schema with it.
|
|
21
|
-
*/
|
|
22
|
-
declare const CODE_EXECUTION_TRUST_LEVELS$1: readonly ["trusted-code-only", "isolated"];
|
|
23
|
-
/**
|
|
24
|
-
* Trust level a CodeExecution provider declares for the code it runs.
|
|
25
|
-
*
|
|
26
|
-
* - `trusted-code-only`: the provider executes code with the privileges of
|
|
27
|
-
* its host process. Only code the host already trusts may be submitted.
|
|
28
|
-
* - `isolated`: the provider executes code inside an isolation boundary of
|
|
29
|
-
* its own (e.g. a container or microVM).
|
|
30
|
-
*
|
|
31
|
-
* Requirements may demand a trust level, but demanding one never grants it:
|
|
32
|
-
* whether a provider is available and what it is trusted with is decided by
|
|
33
|
-
* local runtime composition, not by the request.
|
|
34
|
-
*/
|
|
35
|
-
type CodeExecutionTrustLevel$1 = (typeof CODE_EXECUTION_TRUST_LEVELS$1)[number];
|
|
36
|
-
/**
|
|
37
|
-
* Prepared, JSON-safe TypeScript/ESM module set to execute.
|
|
38
|
-
*
|
|
39
|
-
* This is a module-materialization contract: the provider materializes the
|
|
40
|
-
* virtual module set into an ESM program root and imports the entry module
|
|
41
|
-
* from it. The path rules keep that materialization well-defined across
|
|
42
|
-
* provider hosts; they do not create runtime filesystem isolation.
|
|
43
|
-
*
|
|
44
|
-
* Virtual paths use canonical POSIX separators independent of the provider
|
|
45
|
-
* host. Every key of {@link files} — and {@link entryFile} — must be a
|
|
46
|
-
* non-empty, relative, normalized path without `.`/`..` segments,
|
|
47
|
-
* backslashes, empty segments, or NUL bytes.
|
|
48
|
-
*/
|
|
49
|
-
interface CodeExecutionProgram {
|
|
50
|
-
/** Virtual module set, keyed by canonical relative POSIX path. */
|
|
51
|
-
readonly files: Readonly<Record<string, string>>;
|
|
52
|
-
/** Virtual path of the entry module. Must name one of {@link files}. */
|
|
53
|
-
readonly entryFile: string;
|
|
54
|
-
/**
|
|
55
|
-
* Name of the export invoked on the entry module (e.g. `'default'`).
|
|
56
|
-
*
|
|
57
|
-
* Bounded in length by the program schema, like every identity string a
|
|
58
|
-
* request carries: no provider budget measures it, and a provider copies it
|
|
59
|
-
* per invocation into whatever runs the program.
|
|
60
|
-
*/
|
|
61
|
-
readonly exportName: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Optional constraints a request places on provider selection.
|
|
65
|
-
*
|
|
66
|
-
* Every field is an exact-match constraint; omitted fields impose no
|
|
67
|
-
* constraint. Requirements only narrow the set of locally registered
|
|
68
|
-
* providers — they never grant trust and never enable a provider that the
|
|
69
|
-
* host did not compose.
|
|
70
|
-
*
|
|
71
|
-
* Each pin is bounded in length by the requirements schema: a pin longer than
|
|
72
|
-
* any value it could ever match narrows nothing, and is only a larger request
|
|
73
|
-
* to retain.
|
|
74
|
-
*/
|
|
75
|
-
interface CodeExecutionRequirements$1 {
|
|
76
|
-
/** Exact provider identifier to pin (matches {@link ICapabilityProvider.id}). */
|
|
77
|
-
readonly providerId?: string;
|
|
78
|
-
/** Required exact runtime tag (matches {@link ICodeExecutionProvider.runtime}). */
|
|
79
|
-
readonly runtime?: string;
|
|
80
|
-
/** Required exact language tag (matches {@link ICodeExecutionProvider.language}). */
|
|
81
|
-
readonly language?: string;
|
|
82
|
-
/** Required exact module format (matches {@link ICodeExecutionProvider.moduleFormat}). */
|
|
83
|
-
readonly moduleFormat?: string;
|
|
84
|
-
/** Required exact trust level (matches {@link ICodeExecutionProvider.trust}). */
|
|
85
|
-
readonly trust?: CodeExecutionTrustLevel$1;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* One prepared, JSON-safe invocation routed to one CodeExecution provider.
|
|
89
|
-
*/
|
|
90
|
-
interface CodeExecutionRequest$1 {
|
|
91
|
-
/**
|
|
92
|
-
* Caller-supplied identifier correlating this invocation across logs and
|
|
93
|
-
* telemetry. Bounded in length by the request schema.
|
|
94
|
-
*/
|
|
95
|
-
readonly invocationId: string;
|
|
96
|
-
/** Prepared virtual TypeScript/ESM module set to execute. */
|
|
97
|
-
readonly program: CodeExecutionProgram;
|
|
98
|
-
/** JSON-safe value passed to the invoked export as its single argument. */
|
|
99
|
-
readonly arguments: JsonValue$1;
|
|
100
|
-
/** Optional exact-match constraints on provider selection. */
|
|
101
|
-
readonly requirements?: CodeExecutionRequirements$1;
|
|
102
|
-
/** Wall-clock budget for the execution, in milliseconds. */
|
|
103
|
-
readonly timeoutMs: number;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Ordered constant array of every terminal outcome status.
|
|
107
|
-
*
|
|
108
|
-
* Neither the {@link CodeExecutionOutcome} union nor
|
|
109
|
-
* `CodeExecutionOutcomeSchema` is derived from this array: the union names its
|
|
110
|
-
* variant interfaces and the schema spells each discriminant as a `z.literal`,
|
|
111
|
-
* because a discriminated union needs literal discriminants a generated enum
|
|
112
|
-
* cannot supply. What keeps the three in step is a type-level assertion in the
|
|
113
|
-
* contract tests, which requires this array's members to equal
|
|
114
|
-
* `CodeExecutionOutcome['status']` exactly. Adding a status therefore fails
|
|
115
|
-
* that assertion until the union, the schema, and this array all name it.
|
|
116
|
-
*/
|
|
117
|
-
declare const CODE_EXECUTION_OUTCOME_STATUSES: readonly ["completed", "failed", "timed_out", "cancelled"];
|
|
118
|
-
/**
|
|
119
|
-
* Ordered constant array of every failure code valid on a `failed` outcome.
|
|
120
|
-
*
|
|
121
|
-
* These are the codes with no dedicated outcome status of their own: the
|
|
122
|
-
* timeout and cancellation codes are excluded because they are pinned to the
|
|
123
|
-
* `timed_out` and `cancelled` variants. Source of truth for the
|
|
124
|
-
* `CodeExecutionFailedOutcomeCodeSchema` and the
|
|
125
|
-
* {@link CodeExecutionFailedOutcomeCode} union.
|
|
126
|
-
*/
|
|
127
|
-
declare const CODE_EXECUTION_FAILED_OUTCOME_CODES$1: readonly ["provider_unavailable", "invalid_provider", "invalid_program", "unsupported_import", "compilation_failed", "entrypoint_not_found", "handler_failed", "invalid_result", "provider_failed"];
|
|
128
|
-
/**
|
|
129
|
-
* Ordered constant array of every stable failure code.
|
|
130
|
-
*
|
|
131
|
-
* Composed from {@link CODE_EXECUTION_FAILED_OUTCOME_CODES} plus the two
|
|
132
|
-
* codes pinned to their own outcome variants. Source of truth for the
|
|
133
|
-
* `CodeExecutionFailureCodeSchema` and the {@link CodeExecutionFailureCode}
|
|
134
|
-
* union.
|
|
135
|
-
*/
|
|
136
|
-
declare const CODE_EXECUTION_FAILURE_CODES: readonly ["provider_unavailable", "invalid_provider", "invalid_program", "unsupported_import", "compilation_failed", "entrypoint_not_found", "handler_failed", "invalid_result", "provider_failed", "execution_timeout", "cancelled"];
|
|
137
|
-
/**
|
|
138
|
-
* Failure classification valid on a `failed` outcome.
|
|
139
|
-
*
|
|
140
|
-
* Excludes `execution_timeout` and `cancelled`, which are pinned to the
|
|
141
|
-
* `timed_out` and `cancelled` outcome variants respectively.
|
|
142
|
-
*/
|
|
143
|
-
type CodeExecutionFailedOutcomeCode$1 = (typeof CODE_EXECUTION_FAILED_OUTCOME_CODES$1)[number];
|
|
144
|
-
/**
|
|
145
|
-
* Stable, machine-readable classification of a non-completed outcome.
|
|
146
|
-
*
|
|
147
|
-
* - `provider_unavailable`: no registered provider satisfies the request, or
|
|
148
|
-
* the admitted provider is not accepting work (disposed, draining, or at
|
|
149
|
-
* capacity).
|
|
150
|
-
* - `invalid_provider`: a registered or selected provider violated the provider
|
|
151
|
-
* contract — a malformed registration as much as a non-conforming outcome.
|
|
152
|
-
* - `invalid_program`: the prepared program failed contract validation.
|
|
153
|
-
* - `unsupported_import`: the program imported something the provider does not resolve.
|
|
154
|
-
* - `compilation_failed`: the program could not be compiled, loaded, or
|
|
155
|
-
* evaluated into runnable code.
|
|
156
|
-
* - `entrypoint_not_found`: the entry module's `exportName` is absent or not callable.
|
|
157
|
-
* - `handler_failed`: the invoked export threw or rejected.
|
|
158
|
-
* - `invalid_result`: the invoked export returned a non-JSON-safe value.
|
|
159
|
-
* - `provider_failed`: the provider itself failed outside the handler.
|
|
160
|
-
* - `execution_timeout`: the execution exceeded `timeoutMs` (only on `timed_out`).
|
|
161
|
-
* - `cancelled`: the execution was cancelled before it completed (only on `cancelled`).
|
|
162
|
-
*/
|
|
163
|
-
type CodeExecutionFailureCode = (typeof CODE_EXECUTION_FAILURE_CODES)[number];
|
|
164
|
-
/**
|
|
165
|
-
* Bounded, JSON-safe description of a non-completed outcome.
|
|
166
|
-
*
|
|
167
|
-
* The strict shape carries a stable code and a short summary — nothing else.
|
|
168
|
-
* Failures must not carry stack traces, absolute temporary paths, environment
|
|
169
|
-
* values, or provider-internal error objects over the bus; producers that
|
|
170
|
-
* hold such data must reduce it to a bounded summary before it can cross
|
|
171
|
-
* this boundary.
|
|
172
|
-
* @typeParam TCode - Failure codes valid for the outcome variant carrying
|
|
173
|
-
* this failure; defaults to the full {@link CodeExecutionFailureCode} union.
|
|
174
|
-
*/
|
|
175
|
-
interface CodeExecutionFailure<TCode extends CodeExecutionFailureCode = CodeExecutionFailureCode> {
|
|
176
|
-
/** Stable failure classification. */
|
|
177
|
-
readonly code: TCode;
|
|
178
|
-
/**
|
|
179
|
-
* Short, human-readable, non-secret summary of what went wrong.
|
|
180
|
-
*
|
|
181
|
-
* Free text is not content-validated by the schema, so this bound is
|
|
182
|
-
* behavioral: producers must not embed stack traces, absolute filesystem
|
|
183
|
-
* paths, environment values, or provider-internal error serializations.
|
|
184
|
-
* Detailed causes belong in local diagnostic logging only.
|
|
185
|
-
*/
|
|
186
|
-
readonly message: string;
|
|
187
|
-
}
|
|
188
|
-
/** Terminal outcome of an execution whose invoked export returned a JSON-safe value. */
|
|
189
|
-
interface CodeExecutionCompletedOutcome {
|
|
190
|
-
/** Discriminant for a completed execution. */
|
|
191
|
-
readonly status: 'completed';
|
|
192
|
-
/** JSON-safe value returned by the invoked export. */
|
|
193
|
-
readonly value: JsonValue$1;
|
|
194
|
-
}
|
|
195
|
-
/** Terminal outcome of an execution that failed before producing a value. */
|
|
196
|
-
interface CodeExecutionFailedOutcome {
|
|
197
|
-
/** Discriminant for a failed execution. */
|
|
198
|
-
readonly status: 'failed';
|
|
199
|
-
/** Bounded failure with a code from {@link CODE_EXECUTION_FAILED_OUTCOME_CODES}. */
|
|
200
|
-
readonly error: CodeExecutionFailure<CodeExecutionFailedOutcomeCode$1>;
|
|
201
|
-
}
|
|
202
|
-
/** Terminal outcome of an execution that exceeded its wall-clock budget. */
|
|
203
|
-
interface CodeExecutionTimedOutOutcome {
|
|
204
|
-
/** Discriminant for a timed-out execution. */
|
|
205
|
-
readonly status: 'timed_out';
|
|
206
|
-
/** Bounded failure describing the exceeded budget; always coded `execution_timeout`. */
|
|
207
|
-
readonly error: CodeExecutionFailure<'execution_timeout'>;
|
|
208
|
-
}
|
|
209
|
-
/** Terminal outcome of an execution that was cancelled before completion. */
|
|
210
|
-
interface CodeExecutionCancelledOutcome {
|
|
211
|
-
/** Discriminant for a cancelled execution. */
|
|
212
|
-
readonly status: 'cancelled';
|
|
213
|
-
/** Bounded failure describing the cancellation; always coded `cancelled`. */
|
|
214
|
-
readonly error: CodeExecutionFailure<'cancelled'>;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Discriminated, JSON-safe union of every terminal execution outcome.
|
|
218
|
-
*
|
|
219
|
-
* Exactly one outcome is produced per invocation. Non-completed variants
|
|
220
|
-
* carry a bounded {@link CodeExecutionFailure} instead of a thrown error so
|
|
221
|
-
* that outcomes stay serializable and secret-free on the bus. Each variant
|
|
222
|
-
* constrains its failure code: `timed_out` is always `execution_timeout`,
|
|
223
|
-
* `cancelled` is always `cancelled`, and `failed` carries one of the
|
|
224
|
-
* remaining codes — contradictory status/code pairings do not exist.
|
|
225
|
-
*/
|
|
226
|
-
type CodeExecutionOutcome$1 = CodeExecutionCompletedOutcome | CodeExecutionFailedOutcome | CodeExecutionTimedOutOutcome | CodeExecutionCancelledOutcome;
|
|
227
|
-
/**
|
|
228
|
-
* Ordered constant array of every reason an execution's effective signal
|
|
229
|
-
* aborts.
|
|
230
|
-
*
|
|
231
|
-
* Source of truth for the {@link CodeExecutionAbortReason} union and for the
|
|
232
|
-
* literal values a routing service places on
|
|
233
|
-
* {@link CodeExecutionProviderContext.signal}'s `reason`.
|
|
234
|
-
*/
|
|
235
|
-
declare const CODE_EXECUTION_ABORT_REASONS: readonly ["timeout", "cancellation"];
|
|
236
|
-
/**
|
|
237
|
-
* Reason an execution's effective signal aborted.
|
|
238
|
-
*
|
|
239
|
-
* - `timeout`: the effective deadline elapsed before the execution completed.
|
|
240
|
-
* - `cancellation`: the invocation's caller went away.
|
|
241
|
-
*
|
|
242
|
-
* The distinction decides which terminal outcome the invocation settles as —
|
|
243
|
-
* `timed_out` versus `cancelled` — and only the signal's owner knows it. It
|
|
244
|
-
* is carried on the signal precisely so that no observer has to re-derive it
|
|
245
|
-
* by comparing a wall clock to {@link CodeExecutionProviderContext.deadlineEpochMs},
|
|
246
|
-
* a comparison that races the settlement it is trying to classify.
|
|
247
|
-
*/
|
|
248
|
-
type CodeExecutionAbortReason$1 = (typeof CODE_EXECUTION_ABORT_REASONS)[number];
|
|
249
|
-
/**
|
|
250
|
-
* Execution context handed to a provider alongside the request.
|
|
251
|
-
*
|
|
252
|
-
* Carries the effective cancellation and deadline signals the router derived
|
|
253
|
-
* from the request's `timeoutMs`, so providers observe one authoritative
|
|
254
|
-
* budget instead of re-deriving their own.
|
|
255
|
-
*/
|
|
256
|
-
interface CodeExecutionProviderContext$1 {
|
|
257
|
-
/**
|
|
258
|
-
* Effective cancellation signal for this execution.
|
|
259
|
-
*
|
|
260
|
-
* Aborts when the execution budget is exhausted or the invocation is
|
|
261
|
-
* cancelled. Providers stop work cooperatively when it fires.
|
|
262
|
-
*
|
|
263
|
-
* When the routing service settles this signal, `signal.reason` is a
|
|
264
|
-
* {@link CodeExecutionAbortReason}, and that value is authoritative:
|
|
265
|
-
* providers classify a timeout against a cancellation from it rather than
|
|
266
|
-
* from their own clock. A provider handed a foreign signal — one it did not
|
|
267
|
-
* receive from the routing service — may fall back to comparing the current
|
|
268
|
-
* time against {@link CodeExecutionProviderContext.deadlineEpochMs}.
|
|
269
|
-
*/
|
|
270
|
-
readonly signal: AbortSignal;
|
|
271
|
-
/**
|
|
272
|
-
* Effective execution deadline as a Unix epoch timestamp in milliseconds.
|
|
273
|
-
*
|
|
274
|
-
* The earlier of the request's `timeoutMs` budget and an inherited bus
|
|
275
|
-
* deadline at dispatch time. Providers that schedule internal work use this
|
|
276
|
-
* absolute instant rather than re-anchoring the relative budget.
|
|
277
|
-
*/
|
|
278
|
-
readonly deadlineEpochMs: number;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Capability provider that executes one prepared program invocation and
|
|
282
|
-
* returns one normalized terminal outcome.
|
|
283
|
-
*
|
|
284
|
-
* Providers are locally registered runtime objects; they are handed over the
|
|
285
|
-
* capability registry as live references and are never serialized. A provider
|
|
286
|
-
* resolves every invocation to a {@link CodeExecutionOutcome} — including
|
|
287
|
-
* timeouts and cancellations — and rejects only on contract-level misuse.
|
|
288
|
-
*/
|
|
289
|
-
interface ICodeExecutionProvider$1 extends ICapabilityProvider$1 {
|
|
290
|
-
/** Request-addressable provider identifier within the public identifier length limit. */
|
|
291
|
-
readonly id: string;
|
|
292
|
-
/** Selection priority among matching providers; higher wins. */
|
|
293
|
-
readonly priority: number;
|
|
294
|
-
/** Request-addressable runtime tag within the public identifier length limit (e.g. `'node'`). */
|
|
295
|
-
readonly runtime: string;
|
|
296
|
-
/** Request-addressable source language within the public identifier length limit (e.g. `'typescript'`). */
|
|
297
|
-
readonly language: string;
|
|
298
|
-
/** Request-addressable module format within the public identifier length limit (e.g. `'esm'`). */
|
|
299
|
-
readonly moduleFormat: string;
|
|
300
|
-
/** Trust level this provider executes submitted code under. */
|
|
301
|
-
readonly trust: CodeExecutionTrustLevel$1;
|
|
302
|
-
/**
|
|
303
|
-
* Execute one prepared invocation to a terminal outcome.
|
|
304
|
-
* @param request - Prepared, JSON-safe invocation to execute.
|
|
305
|
-
* @param context - Effective cancellation signal and deadline for the execution.
|
|
306
|
-
* @returns Exactly one normalized terminal outcome for the invocation.
|
|
307
|
-
*/
|
|
308
|
-
execute(request: CodeExecutionRequest$1, context: CodeExecutionProviderContext$1): Promise<CodeExecutionOutcome$1>;
|
|
309
|
-
}
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region core/contracts/src/code-execution/outcomes.d.ts
|
|
312
|
-
/**
|
|
313
|
-
* Clamp a failure summary to {@link CODE_EXECUTION_FAILURE_MESSAGE_MAX_LENGTH}.
|
|
314
|
-
*
|
|
315
|
-
* Summaries interpolate host-controlled identifiers and provider diagnostics of
|
|
316
|
-
* unbounded length, so the bound is enforced where the failure is built rather
|
|
317
|
-
* than trusted to the length of its inputs. Truncation is marked with an
|
|
318
|
-
* ellipsis so a reader can tell a clipped summary from a complete one, and the
|
|
319
|
-
* result always satisfies the failure schema.
|
|
320
|
-
* @param message - Summary to place on a failure.
|
|
321
|
-
* @returns The summary, truncated to the contract bound when needed.
|
|
322
|
-
*/
|
|
323
|
-
declare function boundCodeExecutionFailureMessage$1(message: string): string;
|
|
324
|
-
/**
|
|
325
|
-
* Build the terminal outcome for an abort reason owned by the caller.
|
|
326
|
-
*
|
|
327
|
-
* This is deliberately separate from {@link codeExecutionAbortOutcome}: a
|
|
328
|
-
* router which owns an effective signal retains its reason privately, while a
|
|
329
|
-
* provider can only observe the signal it was handed. The owning router must
|
|
330
|
-
* not let a provider's mutable view of that signal revise the classification
|
|
331
|
-
* it already recorded.
|
|
332
|
-
* @param reason - Authoritative abort reason recorded by the signal owner.
|
|
333
|
-
* @returns The terminal timeout or cancellation outcome for that reason.
|
|
334
|
-
*/
|
|
335
|
-
declare function codeExecutionAbortOutcomeForReason$1(reason: CodeExecutionAbortReason$1): CodeExecutionTimedOutOutcome | CodeExecutionCancelledOutcome;
|
|
336
|
-
/**
|
|
337
|
-
* Classify a settled execution abort as a timeout or a cancellation.
|
|
338
|
-
*
|
|
339
|
-
* This is the algorithm {@link CodeExecutionProviderContext.signal} documents
|
|
340
|
-
* for a provider's observed or otherwise foreign signal. A routing service
|
|
341
|
-
* which owns the abort reason privately uses
|
|
342
|
-
* {@link codeExecutionAbortOutcomeForReason} instead.
|
|
343
|
-
*
|
|
344
|
-
* The signal's typed reason is authoritative, because only the party that owns
|
|
345
|
-
* the signal knows why it settled. Comparing a wall clock against the deadline
|
|
346
|
-
* instead would misreport a cancellation that happens to be processed after the
|
|
347
|
-
* deadline, and would depend on the host clock not having moved. The deadline
|
|
348
|
-
* comparison survives only as the documented fallback for a foreign signal —
|
|
349
|
-
* one aborted by someone other than the routing service, which therefore
|
|
350
|
-
* carries no `CodeExecutionAbortReason`.
|
|
351
|
-
*
|
|
352
|
-
* Each returned variant carries the failure code the outcome union pins to it,
|
|
353
|
-
* so the mapping is total and cannot produce a contradictory status/code pair.
|
|
354
|
-
* @param context - Effective cancellation signal and deadline for the execution.
|
|
355
|
-
* @returns The `timed_out` or `cancelled` terminal outcome for that abort.
|
|
356
|
-
*/
|
|
357
|
-
declare function codeExecutionAbortOutcome$1(context: CodeExecutionProviderContext$1): CodeExecutionTimedOutOutcome | CodeExecutionCancelledOutcome;
|
|
358
|
-
//#endregion
|
|
359
|
-
//#region core/contracts/src/code-execution/schemas.d.ts
|
|
360
|
-
/**
|
|
361
|
-
* Maximum length of a {@link CodeExecutionFailure} message.
|
|
362
|
-
*
|
|
363
|
-
* Failures travel over the bus and into logs, so their size is bounded at
|
|
364
|
-
* the contract boundary rather than by convention. Producers holding larger
|
|
365
|
-
* diagnostics must reduce them to a summary within this bound.
|
|
366
|
-
*/
|
|
367
|
-
declare const CODE_EXECUTION_FAILURE_MESSAGE_MAX_LENGTH$1 = 512;
|
|
368
|
-
/**
|
|
369
|
-
* Maximum UTF-8 byte length of one segment in a
|
|
370
|
-
* {@link CodeExecutionVirtualPathSchema | virtual path}.
|
|
371
|
-
*
|
|
372
|
-
* 255 bytes is the name-component limit on every filesystem the framework
|
|
373
|
-
* targets (ext4, APFS, NTFS). The filesystem measures bytes, not characters:
|
|
374
|
-
* a segment that is fewer than 255 characters but encodes to more than 255
|
|
375
|
-
* UTF-8 bytes must also be rejected — otherwise the same program is valid on
|
|
376
|
-
* the caller's host and unwritable on the runner's.
|
|
377
|
-
*/
|
|
378
|
-
declare const VIRTUAL_PATH_SEGMENT_MAX_BYTES = 255;
|
|
379
|
-
/**
|
|
380
|
-
* Maximum UTF-8 byte length of a complete
|
|
381
|
-
* {@link CodeExecutionVirtualPathSchema | virtual path}.
|
|
382
|
-
*
|
|
383
|
-
* Measured in bytes for the same reason as
|
|
384
|
-
* {@link VIRTUAL_PATH_SEGMENT_MAX_BYTES}: filesystems bound pathnames in bytes,
|
|
385
|
-
* so a path of fewer than 1024 UTF-16 code units can still encode to more than
|
|
386
|
-
* 1024 UTF-8 bytes and be unwritable on the host that runs it.
|
|
387
|
-
*
|
|
388
|
-
* This bounds the *portable relative* path, and nothing more. The length that
|
|
389
|
-
* finally reaches the filesystem also carries the materialization root the
|
|
390
|
-
* runner prepends, which is a property of that host and unknowable at the
|
|
391
|
-
* contract boundary. So this ceiling does not stand in for the resolved length,
|
|
392
|
-
* and does not promise it: a path near the ceiling still fails under a long
|
|
393
|
-
* enough root, and one at the ceiling fails under every root, because no root is
|
|
394
|
-
* empty. The provider that owns the root is what admits or refuses the resolved
|
|
395
|
-
* pathname, and it reports that refusal as an invalid program rather than as a
|
|
396
|
-
* filesystem error. What this figure is for is judging the program itself,
|
|
397
|
-
* wherever it is submitted and whichever host would run it.
|
|
398
|
-
*/
|
|
399
|
-
declare const VIRTUAL_PATH_MAX_BYTES = 1024;
|
|
400
|
-
/**
|
|
401
|
-
* Maximum length of the identity strings a request carries, in UTF-16 code units.
|
|
402
|
-
*
|
|
403
|
-
* These are the free-text fields that name something rather than carry payload:
|
|
404
|
-
* the invocation's correlation id, the invoked export, and each selection pin in
|
|
405
|
-
* {@link CodeExecutionRequirementsSchema}. None of them is measured by any other
|
|
406
|
-
* budget — a provider bounds the program's sources and the invocation's
|
|
407
|
-
* arguments, and nothing bounds these — while every one of them is retained for
|
|
408
|
-
* as long as the request is, and the export name is copied again into whatever a
|
|
409
|
-
* provider hands its execution host. A schema-valid request carrying a
|
|
410
|
-
* multi-megabyte export name would therefore cost a queued invocation that much
|
|
411
|
-
* memory apiece, so the ceiling belongs at the contract boundary where the field
|
|
412
|
-
* is defined rather than at each provider that happens to retain it.
|
|
413
|
-
*
|
|
414
|
-
* 256 is generous for every one of them: a named export is an ECMAScript
|
|
415
|
-
* identifier, and the runtime, language, module-format, and provider pins are
|
|
416
|
-
* short tags a host chose. The figure is a ceiling on abuse, not a style rule.
|
|
417
|
-
*/
|
|
418
|
-
declare const CODE_EXECUTION_IDENTIFIER_MAX_LENGTH$1 = 256;
|
|
419
|
-
/**
|
|
420
|
-
* Zod schema for a canonical virtual program path.
|
|
421
|
-
*
|
|
422
|
-
* Virtual paths are portable, host-independent input: the same program must be
|
|
423
|
-
* valid or invalid everywhere, never valid on the host that submitted it and
|
|
424
|
-
* unwritable on the host that runs it. So the rules are the intersection of what
|
|
425
|
-
* every supported filesystem can represent, not what the current one accepts:
|
|
426
|
-
*
|
|
427
|
-
* - non-empty, and free of NUL bytes
|
|
428
|
-
* - well-formed Unicode, so no unpaired surrogate code points
|
|
429
|
-
* - POSIX separators only, so no backslashes
|
|
430
|
-
* - relative, so no leading `/` and no drive-letter prefix
|
|
431
|
-
* - normalized, so no empty, `.`, or `..` segments
|
|
432
|
-
* - no segment containing `< > : " | ? *` or a control character
|
|
433
|
-
* - no segment ending in a `.` or a space, which Windows trims away
|
|
434
|
-
* - no segment naming a Windows device (`CON`, `PRN`, `AUX`, `NUL`,
|
|
435
|
-
* `COM0`-`COM9`, `LPT0`-`LPT9`, and the superscript spellings `COM¹`-`COM³`
|
|
436
|
-
* and `LPT¹`-`LPT³`, which name the same devices), with or without an
|
|
437
|
-
* extension
|
|
438
|
-
* - no segment exceeding {@link VIRTUAL_PATH_SEGMENT_MAX_BYTES} UTF-8 bytes —
|
|
439
|
-
* the name-component limit on every supported filesystem
|
|
440
|
-
* - total path at most {@link VIRTUAL_PATH_MAX_BYTES} UTF-8 bytes — a
|
|
441
|
-
* conservative ceiling on the *relative* path, which is the only part of the
|
|
442
|
-
* pathname a portable program can be judged on
|
|
443
|
-
*
|
|
444
|
-
* These rules exist because a host would otherwise reject or silently rewrite
|
|
445
|
-
* the file: Windows refuses or trims certain names, and every filesystem
|
|
446
|
-
* enforces per-component and total absolute-path length limits that vary by
|
|
447
|
-
* platform. A contract-valid program must never degrade into a provider-side
|
|
448
|
-
* write failure on one host while succeeding on another.
|
|
449
|
-
*
|
|
450
|
-
* The well-formedness rule guards the one shape that fails without a write
|
|
451
|
-
* failure at all. An unpaired surrogate has no UTF-8 encoding, so every encoder
|
|
452
|
-
* between a program and the disk substitutes U+FFFD for it: `"\uD800.ts"` and
|
|
453
|
-
* `"\uD801.ts"` are two distinct strings that reach the filesystem as one and
|
|
454
|
-
* the same name, on every platform. A module set carrying both would be accepted
|
|
455
|
-
* as two files and materialize as one, with whichever write landed last silently
|
|
456
|
-
* winning — so the paths are rejected here, where they are still distinguishable,
|
|
457
|
-
* rather than downstream where they no longer are.
|
|
458
|
-
*
|
|
459
|
-
* The total-path rule is the one bound that cannot be completed here. The
|
|
460
|
-
* pathname a host actually writes is its materialization root plus this
|
|
461
|
-
* relative path, and the root belongs to the runner. So the contract bounds
|
|
462
|
-
* what it owns, and the provider bounds the resolved pathname against its own
|
|
463
|
-
* root before creating anything — the two together are what keep an accepted
|
|
464
|
-
* program from degrading into a raw filesystem error.
|
|
465
|
-
*
|
|
466
|
-
* These rules keep module materialization well-defined; they do not create
|
|
467
|
-
* runtime filesystem isolation.
|
|
468
|
-
*/
|
|
469
|
-
declare const CodeExecutionVirtualPathSchema$1: z.ZodString;
|
|
470
|
-
/**
|
|
471
|
-
* Zod schema for the prepared, JSON-safe TypeScript/ESM module set.
|
|
472
|
-
*
|
|
473
|
-
* Every `files` key and the `entryFile` are validated as canonical virtual
|
|
474
|
-
* paths, and the cross-field check requires `entryFile` to name one of
|
|
475
|
-
* `files` — a program whose entry module is absent is invalid at the
|
|
476
|
-
* contract boundary, not at the provider.
|
|
477
|
-
*/
|
|
478
|
-
declare const CodeExecutionProgramSchema$1: z.ZodObject<{
|
|
479
|
-
files: z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>;
|
|
480
|
-
entryFile: z.ZodString;
|
|
481
|
-
exportName: z.ZodString;
|
|
482
|
-
}, z.core.$strict>;
|
|
483
|
-
/**
|
|
484
|
-
* Zod schema for optional exact-match provider selection constraints.
|
|
485
|
-
*
|
|
486
|
-
* Omitted fields impose no constraint. Requirements never grant trust and
|
|
487
|
-
* never enable a provider the host did not compose.
|
|
488
|
-
*
|
|
489
|
-
* Every pin is a tag a host chose for itself, so each is bounded by
|
|
490
|
-
* {@link CODE_EXECUTION_IDENTIFIER_MAX_LENGTH} — a pin longer than any value it
|
|
491
|
-
* could ever match is not a narrower constraint, only a larger retained request.
|
|
492
|
-
*/
|
|
493
|
-
declare const CodeExecutionRequirementsSchema: z.ZodObject<{
|
|
494
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
495
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
496
|
-
language: z.ZodOptional<z.ZodString>;
|
|
497
|
-
moduleFormat: z.ZodOptional<z.ZodString>;
|
|
498
|
-
trust: z.ZodOptional<z.ZodEnum<{
|
|
499
|
-
"trusted-code-only": "trusted-code-only";
|
|
500
|
-
isolated: "isolated";
|
|
501
|
-
}>>;
|
|
502
|
-
}, z.core.$strict>;
|
|
503
|
-
/**
|
|
504
|
-
* Zod schema for one prepared, JSON-safe invocation.
|
|
505
|
-
*
|
|
506
|
-
* Like every schema that backs a bus subject payload, this one infers its own
|
|
507
|
-
* type instead of being annotated `z.ZodType<CodeExecutionRequest>`: subject
|
|
508
|
-
* payloads must be index-signature-compatible object types, which a named
|
|
509
|
-
* interface is not. The `satisfies` clause keeps the published
|
|
510
|
-
* {@link CodeExecutionRequest} interface authoritative over the schema output.
|
|
511
|
-
*
|
|
512
|
-
* The subject's caller-facing payload type is this schema's input. Fidelity
|
|
513
|
-
* checks inspect the raw runtime value without widening JSON-bearing fields to
|
|
514
|
-
* `unknown`.
|
|
515
|
-
*/
|
|
516
|
-
declare const CodeExecutionRequestSchema$1: z.ZodObject<{
|
|
517
|
-
invocationId: z.ZodString;
|
|
518
|
-
program: z.ZodObject<{
|
|
519
|
-
files: z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>;
|
|
520
|
-
entryFile: z.ZodString;
|
|
521
|
-
exportName: z.ZodString;
|
|
522
|
-
}, z.core.$strict>;
|
|
523
|
-
arguments: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
524
|
-
requirements: z.ZodOptional<z.ZodObject<{
|
|
525
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
526
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
527
|
-
language: z.ZodOptional<z.ZodString>;
|
|
528
|
-
moduleFormat: z.ZodOptional<z.ZodString>;
|
|
529
|
-
trust: z.ZodOptional<z.ZodEnum<{
|
|
530
|
-
"trusted-code-only": "trusted-code-only";
|
|
531
|
-
isolated: "isolated";
|
|
532
|
-
}>>;
|
|
533
|
-
}, z.core.$strict>>;
|
|
534
|
-
timeoutMs: z.ZodNumber;
|
|
535
|
-
}, z.core.$strict>;
|
|
536
|
-
/**
|
|
537
|
-
* Zod schema for the stable failure classification codes.
|
|
538
|
-
*/
|
|
539
|
-
declare const CodeExecutionFailureCodeSchema: z.ZodEnum<{
|
|
540
|
-
cancelled: "cancelled";
|
|
541
|
-
provider_unavailable: "provider_unavailable";
|
|
542
|
-
invalid_provider: "invalid_provider";
|
|
543
|
-
invalid_program: "invalid_program";
|
|
544
|
-
unsupported_import: "unsupported_import";
|
|
545
|
-
compilation_failed: "compilation_failed";
|
|
546
|
-
entrypoint_not_found: "entrypoint_not_found";
|
|
547
|
-
handler_failed: "handler_failed";
|
|
548
|
-
invalid_result: "invalid_result";
|
|
549
|
-
provider_failed: "provider_failed";
|
|
550
|
-
execution_timeout: "execution_timeout";
|
|
551
|
-
}>;
|
|
552
|
-
/**
|
|
553
|
-
* Zod schema for the failure codes valid on a `failed` outcome.
|
|
554
|
-
*
|
|
555
|
-
* Excludes `execution_timeout` and `cancelled`, which are pinned to the
|
|
556
|
-
* `timed_out` and `cancelled` outcome variants respectively.
|
|
557
|
-
*/
|
|
558
|
-
declare const CodeExecutionFailedOutcomeCodeSchema: z.ZodEnum<{
|
|
559
|
-
provider_unavailable: "provider_unavailable";
|
|
560
|
-
invalid_provider: "invalid_provider";
|
|
561
|
-
invalid_program: "invalid_program";
|
|
562
|
-
unsupported_import: "unsupported_import";
|
|
563
|
-
compilation_failed: "compilation_failed";
|
|
564
|
-
entrypoint_not_found: "entrypoint_not_found";
|
|
565
|
-
handler_failed: "handler_failed";
|
|
566
|
-
invalid_result: "invalid_result";
|
|
567
|
-
provider_failed: "provider_failed";
|
|
568
|
-
}>;
|
|
569
|
-
/**
|
|
570
|
-
* Zod schema for the discriminated, JSON-safe union of terminal outcomes.
|
|
571
|
-
*
|
|
572
|
-
* `completed` carries the JSON-safe value returned by the invoked export;
|
|
573
|
-
* every other status carries a bounded failure instead of a thrown error.
|
|
574
|
-
* Each variant constrains its failure code: `timed_out` is always
|
|
575
|
-
* `execution_timeout`, `cancelled` is always `cancelled`, and `failed`
|
|
576
|
-
* admits only the codes without a dedicated variant.
|
|
577
|
-
*
|
|
578
|
-
* Inferred rather than annotated, for the same reason as
|
|
579
|
-
* {@link CodeExecutionRequestSchema}: this schema is the response half of a
|
|
580
|
-
* bus subject payload.
|
|
581
|
-
*/
|
|
582
|
-
declare const CodeExecutionOutcomeSchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
583
|
-
status: z.ZodLiteral<"completed">;
|
|
584
|
-
value: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
585
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
586
|
-
status: z.ZodLiteral<"failed">;
|
|
587
|
-
error: z.ZodObject<{
|
|
588
|
-
code: z.ZodType<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown, z.core.$ZodTypeInternals<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown>>;
|
|
589
|
-
message: z.ZodString;
|
|
590
|
-
}, z.core.$strict>;
|
|
591
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
592
|
-
status: z.ZodLiteral<"timed_out">;
|
|
593
|
-
error: z.ZodObject<{
|
|
594
|
-
code: z.ZodType<"execution_timeout", unknown, z.core.$ZodTypeInternals<"execution_timeout", unknown>>;
|
|
595
|
-
message: z.ZodString;
|
|
596
|
-
}, z.core.$strict>;
|
|
597
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
598
|
-
status: z.ZodLiteral<"cancelled">;
|
|
599
|
-
error: z.ZodObject<{
|
|
600
|
-
code: z.ZodType<"cancelled", unknown, z.core.$ZodTypeInternals<"cancelled", unknown>>;
|
|
601
|
-
message: z.ZodString;
|
|
602
|
-
}, z.core.$strict>;
|
|
603
|
-
}, z.core.$strict>], "status">;
|
|
604
|
-
/**
|
|
605
|
-
* CodeExecution domain schemas.
|
|
606
|
-
*
|
|
607
|
-
* Each key becomes a subject identifier as: `code-execution.{key}`.
|
|
608
|
-
*/
|
|
609
|
-
declare const CodeExecutionSchemas: {
|
|
610
|
-
/**
|
|
611
|
-
* Execute one prepared program invocation.
|
|
612
|
-
*
|
|
613
|
-
* Subject: `code-execution.execute`
|
|
614
|
-
* Type: Request (RPC)
|
|
615
|
-
* Purpose: Routes one prepared, JSON-safe invocation to one locally
|
|
616
|
-
* registered provider and returns one normalized terminal outcome.
|
|
617
|
-
*
|
|
618
|
-
* Providers themselves are registered locally through the capability
|
|
619
|
-
* registry (`CapabilitySubjects.register`) as live runtime objects; a
|
|
620
|
-
* provider object is never part of this subject's payload.
|
|
621
|
-
*/
|
|
622
|
-
execute: {
|
|
623
|
-
request: z.ZodObject<{
|
|
624
|
-
invocationId: z.ZodString;
|
|
625
|
-
program: z.ZodObject<{
|
|
626
|
-
files: z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>;
|
|
627
|
-
entryFile: z.ZodString;
|
|
628
|
-
exportName: z.ZodString;
|
|
629
|
-
}, z.core.$strict>;
|
|
630
|
-
arguments: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
631
|
-
requirements: z.ZodOptional<z.ZodObject<{
|
|
632
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
633
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
634
|
-
language: z.ZodOptional<z.ZodString>;
|
|
635
|
-
moduleFormat: z.ZodOptional<z.ZodString>;
|
|
636
|
-
trust: z.ZodOptional<z.ZodEnum<{
|
|
637
|
-
"trusted-code-only": "trusted-code-only";
|
|
638
|
-
isolated: "isolated";
|
|
639
|
-
}>>;
|
|
640
|
-
}, z.core.$strict>>;
|
|
641
|
-
timeoutMs: z.ZodNumber;
|
|
642
|
-
}, z.core.$strict>;
|
|
643
|
-
response: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
644
|
-
status: z.ZodLiteral<"completed">;
|
|
645
|
-
value: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
646
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
647
|
-
status: z.ZodLiteral<"failed">;
|
|
648
|
-
error: z.ZodObject<{
|
|
649
|
-
code: z.ZodType<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown, z.core.$ZodTypeInternals<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown>>;
|
|
650
|
-
message: z.ZodString;
|
|
651
|
-
}, z.core.$strict>;
|
|
652
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
653
|
-
status: z.ZodLiteral<"timed_out">;
|
|
654
|
-
error: z.ZodObject<{
|
|
655
|
-
code: z.ZodType<"execution_timeout", unknown, z.core.$ZodTypeInternals<"execution_timeout", unknown>>;
|
|
656
|
-
message: z.ZodString;
|
|
657
|
-
}, z.core.$strict>;
|
|
658
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
659
|
-
status: z.ZodLiteral<"cancelled">;
|
|
660
|
-
error: z.ZodObject<{
|
|
661
|
-
code: z.ZodType<"cancelled", unknown, z.core.$ZodTypeInternals<"cancelled", unknown>>;
|
|
662
|
-
message: z.ZodString;
|
|
663
|
-
}, z.core.$strict>;
|
|
664
|
-
}, z.core.$strict>], "status">;
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
//#endregion
|
|
668
|
-
//#region core/contracts/src/code-execution/namespace.d.ts
|
|
669
|
-
/**
|
|
670
|
-
* CodeExecution bus namespace.
|
|
671
|
-
*
|
|
672
|
-
* Registers the `code-execution` namespace with the framework's execution
|
|
673
|
-
* routing subject. Part of `FrameworkContractNamespaces`, so hosts can
|
|
674
|
-
* validate and route the subject even when they compose no handler.
|
|
675
|
-
* Use {@link CodeExecutionSubjects} to access typed bus subject descriptors.
|
|
676
|
-
*/
|
|
677
|
-
declare const CodeExecutionNamespace: _$_makaio_core0.BusNamespaceDefinition<"code-execution", {
|
|
678
|
-
execute: {
|
|
679
|
-
request: _$zod.ZodObject<{
|
|
680
|
-
invocationId: _$zod.ZodString;
|
|
681
|
-
program: _$zod.ZodObject<{
|
|
682
|
-
files: _$zod.ZodType<Record<string, string>, Record<string, string>, _$zod_v4_core0.$ZodTypeInternals<Record<string, string>, Record<string, string>>>;
|
|
683
|
-
entryFile: _$zod.ZodString;
|
|
684
|
-
exportName: _$zod.ZodString;
|
|
685
|
-
}, _$zod_v4_core0.$strict>;
|
|
686
|
-
arguments: _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
687
|
-
requirements: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
688
|
-
providerId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
689
|
-
runtime: _$zod.ZodOptional<_$zod.ZodString>;
|
|
690
|
-
language: _$zod.ZodOptional<_$zod.ZodString>;
|
|
691
|
-
moduleFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
692
|
-
trust: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
693
|
-
"trusted-code-only": "trusted-code-only";
|
|
694
|
-
isolated: "isolated";
|
|
695
|
-
}>>;
|
|
696
|
-
}, _$zod_v4_core0.$strict>>;
|
|
697
|
-
timeoutMs: _$zod.ZodNumber;
|
|
698
|
-
}, _$zod_v4_core0.$strict>;
|
|
699
|
-
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
700
|
-
status: _$zod.ZodLiteral<"completed">;
|
|
701
|
-
value: _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
702
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
703
|
-
status: _$zod.ZodLiteral<"failed">;
|
|
704
|
-
error: _$zod.ZodObject<{
|
|
705
|
-
code: _$zod.ZodType<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown, _$zod_v4_core0.$ZodTypeInternals<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown>>;
|
|
706
|
-
message: _$zod.ZodString;
|
|
707
|
-
}, _$zod_v4_core0.$strict>;
|
|
708
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
709
|
-
status: _$zod.ZodLiteral<"timed_out">;
|
|
710
|
-
error: _$zod.ZodObject<{
|
|
711
|
-
code: _$zod.ZodType<"execution_timeout", unknown, _$zod_v4_core0.$ZodTypeInternals<"execution_timeout", unknown>>;
|
|
712
|
-
message: _$zod.ZodString;
|
|
713
|
-
}, _$zod_v4_core0.$strict>;
|
|
714
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
715
|
-
status: _$zod.ZodLiteral<"cancelled">;
|
|
716
|
-
error: _$zod.ZodObject<{
|
|
717
|
-
code: _$zod.ZodType<"cancelled", unknown, _$zod_v4_core0.$ZodTypeInternals<"cancelled", unknown>>;
|
|
718
|
-
message: _$zod.ZodString;
|
|
719
|
-
}, _$zod_v4_core0.$strict>;
|
|
720
|
-
}, _$zod_v4_core0.$strict>], "status">;
|
|
721
|
-
};
|
|
722
|
-
}>;
|
|
723
|
-
/**
|
|
724
|
-
* Typed subjects for CodeExecution bus communication.
|
|
725
|
-
*
|
|
726
|
-
* Available subjects:
|
|
727
|
-
* - `CodeExecutionSubjects.execute` — execute one prepared invocation (RPC)
|
|
728
|
-
*/
|
|
729
|
-
declare const CodeExecutionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"code-execution", {
|
|
730
|
-
execute: {
|
|
731
|
-
request: _$zod.ZodObject<{
|
|
732
|
-
invocationId: _$zod.ZodString;
|
|
733
|
-
program: _$zod.ZodObject<{
|
|
734
|
-
files: _$zod.ZodType<Record<string, string>, Record<string, string>, _$zod_v4_core0.$ZodTypeInternals<Record<string, string>, Record<string, string>>>;
|
|
735
|
-
entryFile: _$zod.ZodString;
|
|
736
|
-
exportName: _$zod.ZodString;
|
|
737
|
-
}, _$zod_v4_core0.$strict>;
|
|
738
|
-
arguments: _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
739
|
-
requirements: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
740
|
-
providerId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
741
|
-
runtime: _$zod.ZodOptional<_$zod.ZodString>;
|
|
742
|
-
language: _$zod.ZodOptional<_$zod.ZodString>;
|
|
743
|
-
moduleFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
744
|
-
trust: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
745
|
-
"trusted-code-only": "trusted-code-only";
|
|
746
|
-
isolated: "isolated";
|
|
747
|
-
}>>;
|
|
748
|
-
}, _$zod_v4_core0.$strict>>;
|
|
749
|
-
timeoutMs: _$zod.ZodNumber;
|
|
750
|
-
}, _$zod_v4_core0.$strict>;
|
|
751
|
-
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
752
|
-
status: _$zod.ZodLiteral<"completed">;
|
|
753
|
-
value: _$zod.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
754
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
755
|
-
status: _$zod.ZodLiteral<"failed">;
|
|
756
|
-
error: _$zod.ZodObject<{
|
|
757
|
-
code: _$zod.ZodType<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown, _$zod_v4_core0.$ZodTypeInternals<"provider_unavailable" | "invalid_provider" | "invalid_program" | "unsupported_import" | "compilation_failed" | "entrypoint_not_found" | "handler_failed" | "invalid_result" | "provider_failed", unknown>>;
|
|
758
|
-
message: _$zod.ZodString;
|
|
759
|
-
}, _$zod_v4_core0.$strict>;
|
|
760
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
761
|
-
status: _$zod.ZodLiteral<"timed_out">;
|
|
762
|
-
error: _$zod.ZodObject<{
|
|
763
|
-
code: _$zod.ZodType<"execution_timeout", unknown, _$zod_v4_core0.$ZodTypeInternals<"execution_timeout", unknown>>;
|
|
764
|
-
message: _$zod.ZodString;
|
|
765
|
-
}, _$zod_v4_core0.$strict>;
|
|
766
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
767
|
-
status: _$zod.ZodLiteral<"cancelled">;
|
|
768
|
-
error: _$zod.ZodObject<{
|
|
769
|
-
code: _$zod.ZodType<"cancelled", unknown, _$zod_v4_core0.$ZodTypeInternals<"cancelled", unknown>>;
|
|
770
|
-
message: _$zod.ZodString;
|
|
771
|
-
}, _$zod_v4_core0.$strict>;
|
|
772
|
-
}, _$zod_v4_core0.$strict>], "status">;
|
|
773
|
-
};
|
|
774
|
-
}>, "code-execution">;
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region core/contracts/src/code-execution/register.d.ts
|
|
777
|
-
/**
|
|
778
|
-
* Register a CodeExecution provider with the capability registry.
|
|
779
|
-
*
|
|
780
|
-
* Registration is local runtime composition: the provider is handed to the
|
|
781
|
-
* registry as a live object reference, is never serialized, and — see
|
|
782
|
-
* {@link LOCAL_COMPOSITION_ONLY} — never reaches a transport.
|
|
783
|
-
* @param bus - Makaio bus instance.
|
|
784
|
-
* @param provider - Provider instance to register.
|
|
785
|
-
* @returns Promise that resolves after registration handlers have completed.
|
|
786
|
-
*/
|
|
787
|
-
declare function registerCodeExecutionProvider(bus: MakaioBusLike, provider: ICodeExecutionProvider$1): Promise<void>;
|
|
788
|
-
/**
|
|
789
|
-
* Unregister a CodeExecution provider from the capability registry.
|
|
790
|
-
*
|
|
791
|
-
* Routed local-only for the same reason the registration is: the bucket this
|
|
792
|
-
* removes from only ever held a locally composed provider, so a peer has
|
|
793
|
-
* nothing to remove and the two emissions must not disagree about scope.
|
|
794
|
-
* @param bus - Makaio bus instance.
|
|
795
|
-
* @param providerId - Provider identifier to remove.
|
|
796
|
-
* @returns Promise that resolves after unregistration handlers have completed.
|
|
797
|
-
*/
|
|
798
|
-
declare function unregisterCodeExecutionProvider(bus: MakaioBusLike, providerId: string): Promise<void>;
|
|
799
|
-
//#endregion
|
|
800
|
-
export { CodeExecutionFailedOutcomeCode$1 as A, ICodeExecutionProvider$1 as B, CODE_EXECUTION_FAILURE_CODES as C, CodeExecutionCancelledOutcome as D, CodeExecutionAbortReason$1 as E, CodeExecutionProviderContext$1 as F, CodeExecutionRequest$1 as I, CodeExecutionRequirements$1 as L, CodeExecutionFailureCode as M, CodeExecutionOutcome$1 as N, CodeExecutionCompletedOutcome as O, CodeExecutionProgram as P, CodeExecutionTimedOutOutcome as R, CODE_EXECUTION_FAILED_OUTCOME_CODES$1 as S, CODE_EXECUTION_TRUST_LEVELS$1 as T, boundCodeExecutionFailureMessage$1 as _, CODE_EXECUTION_FAILURE_MESSAGE_MAX_LENGTH$1 as a, CODE_EXECUTION_ABORT_REASONS as b, CodeExecutionFailureCodeSchema as c, CodeExecutionRequestSchema$1 as d, CodeExecutionRequirementsSchema as f, VIRTUAL_PATH_SEGMENT_MAX_BYTES as g, VIRTUAL_PATH_MAX_BYTES as h, CodeExecutionSubjects$1 as i, CodeExecutionFailure as j, CodeExecutionFailedOutcome as k, CodeExecutionOutcomeSchema$1 as l, CodeExecutionVirtualPathSchema$1 as m, unregisterCodeExecutionProvider as n, CODE_EXECUTION_IDENTIFIER_MAX_LENGTH$1 as o, CodeExecutionSchemas as p, CodeExecutionNamespace as r, CodeExecutionFailedOutcomeCodeSchema as s, registerCodeExecutionProvider as t, CodeExecutionProgramSchema$1 as u, codeExecutionAbortOutcome$1 as v, CODE_EXECUTION_OUTCOME_STATUSES as w, CODE_EXECUTION_CAPABILITY_ID$1 as x, codeExecutionAbortOutcomeForReason$1 as y, CodeExecutionTrustLevel$1 as z };
|