@makaio/framework 1.0.0-dev-1785409369816 → 1.0.0-dev-1787670071418
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 +2 -0
- package/dist/.makaio-build.json +4 -3
- package/dist/{account-identity-DFx8pwKL.mjs → account-identity-B3vLwm9O.mjs} +1 -1
- package/dist/adapter-Dz1fX5Wa.mjs +1 -0
- package/dist/adapter-subsystem/index.d.mts +194 -20
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/acp-client/index.d.mts +105 -7
- package/dist/adapters/acp-client/index.mjs +2 -2
- 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 +405 -824
- 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.d.mts +28 -7
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/{ajv-DD3SIL2i.mjs → ajv-krzJXh1X.mjs} +2 -2
- package/dist/artifact-Btbuib48.mjs +1 -0
- package/dist/attach-error-Cb3GbeKe.mjs +1 -0
- package/dist/{auth-DGEdiHF6.mjs → auth-C6tVtaOX.mjs} +1 -1
- package/dist/authority-state-bootstrap-CLYus369.mjs +1 -0
- package/dist/automation-trigger-ByjNlClm.mjs +1 -0
- package/dist/await-trigger-Bkg2BQfg.mjs +1 -0
- package/dist/bus/index.d.mts +41 -9
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-D6NoBhIV.mjs +2 -0
- package/dist/bus-UgFdHybD.mjs +1 -0
- package/dist/caller-owned-adapter-stub-C1M7FKrv.mjs +1 -0
- package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DXOvCaVg.mjs} +1 -1
- package/dist/capabilities-BUwuA7XX.mjs +1 -0
- package/dist/capability-j3NekkIu.mjs +1 -0
- package/dist/{client-DbS847wW.mjs → client-BkznbdsO.mjs} +1 -1
- package/dist/clients/index.d.mts +2 -2
- 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/code-execution/worker-entry.d.mts +21 -0
- package/dist/code-execution/worker-entry.mjs +1 -0
- package/dist/code-execution-Ckmn8OZu.mjs +1 -0
- package/dist/code-execution-CweDSWco.mjs +1 -0
- package/dist/code-execution-DqkQjKa1.mjs +1 -0
- package/dist/{compression-74fFeBha.mjs → compression-CtgeVLpP.mjs} +1 -1
- package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CjWvw8ij.mjs} +1 -1
- package/dist/{context-resolution-DdyhpH4L.d.mts → context-resolution-841T7jBI.d.mts} +11 -11
- 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 +3 -3
- 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 +4 -0
- package/dist/contracts/automation-trigger/index.mjs +1 -0
- 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/code-execution/index.d.mts +2 -0
- package/dist/contracts/code-execution/index.mjs +1 -0
- 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 +6 -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 +171 -100
- 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 +2 -0
- package/dist/contracts/reaction/index.mjs +1 -0
- 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 +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/contribution-CUHLVLsT.d.mts +35 -0
- package/dist/core/index.d.mts +84 -2
- package/dist/core/index.mjs +1 -1
- package/dist/{definition-CJfiv8xm.mjs → definition-BH4QLGLI.mjs} +1 -1
- package/dist/definition-DyGImhyi.d.mts +375 -0
- package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-D0aI0pJA.mjs} +1 -1
- package/dist/drizzle/0031_adapter_session_currency.sql +66 -0
- package/dist/drizzle/0032_native_session_ownership.sql +77 -0
- package/dist/drizzle/0033_m_msf3hu2s.sql +1 -0
- package/dist/drizzle/0034_m_msha1388.sql +41 -0
- package/dist/drizzle/0035_m_mshgj6x7.sql +40 -0
- package/dist/drizzle/0036_m_msivwbgm.sql +1 -0
- package/dist/drizzle/0037_runtime_instance_incarnation_counter.sql +6 -0
- package/dist/drizzle/meta/_journal.json +49 -0
- package/dist/event-B8ELuk6k.mjs +1 -0
- package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-BJ2W6wwx.d.mts} +1 -1
- package/dist/{execution-target-Cf645pDj.mjs → execution-target-H0RWV7Py.mjs} +1 -1
- package/dist/extension-Bfkr2DBs.mjs +1 -0
- package/dist/extension-Cz39YNXy.mjs +1 -0
- package/dist/extension-context-QmFuHdq5.d.mts +295 -0
- package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Dhu3WplO.d.mts} +11 -1
- package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-QoTTwKPt.mjs} +1 -1
- package/dist/extension-package-provenance-aYrZuS4W.mjs +1 -0
- package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-CiUw0YN5.mjs} +1 -1
- package/dist/framework-packages-BHgul8Kl.mjs +1 -0
- package/dist/git/index.mjs +2 -2
- package/dist/{globby-1yCVCk8s.mjs → globby-QBDqstzq.mjs} +1 -1
- package/dist/handlers-BsHAFtye.mjs +57 -0
- package/dist/{harness-DpwsFsE7.mjs → harness-YQ2ewID9.mjs} +1 -1
- package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-9Ywsqzzq.d.mts} +2 -293
- package/dist/identity-OjRlG6dZ.mjs +1 -0
- package/dist/{index-CMgLxw14.d.mts → index-8NdPPzUh2.d.mts} +2 -2
- package/dist/{index-Ds5_rDEJ.d.mts → index-8y4hT9WL.d.mts} +1 -12
- package/dist/{index-BVlXneHH.d.mts → index-B-3I98nw.d.mts} +14 -10
- package/dist/index-B0VO0rAl.d.mts +302 -0
- package/dist/{index-gUhidukN.d.mts → index-B0yMCJW8.d.mts} +324 -2
- package/dist/index-BM56936c.d.mts +165 -0
- package/dist/{index-CLvQsL6s2.d.mts → index-BNzUyVwV.d.mts} +2105 -320
- package/dist/{index-BaZeoZoS.d.mts → index-BTEJfzjE.d.mts} +1 -1
- package/dist/{index-B0Kf_OWi.d.mts → index-BfV8U4XX.d.mts} +1 -1
- package/dist/{index-DCZ8BX9S.d.mts → index-BkbnC65b.d.mts} +487 -85
- package/dist/{index-GHASUiem.d.mts → index-BmevAPME2.d.mts} +1 -1
- package/dist/index-Bqk0pJBQ2.d.mts +138 -0
- package/dist/{index-B9UW_vPM.d.mts → index-C146Eq_J.d.mts} +2465 -273
- package/dist/{index-BAXkicoQ.d.mts → index-CIEycZrt.d.mts} +1 -1
- package/dist/{index-DkiTJM5p.d.mts → index-CMekqu_D.d.mts} +44 -10
- package/dist/{index-SsBHjUqA.d.mts → index-CPRQ4dWX.d.mts} +0 -23
- package/dist/{index-EjsSBQXy2.d.mts → index-CPi0UpRh.d.mts} +1 -1
- package/dist/{index-DSBT83c0.d.mts → index-CYjgoYeX.d.mts} +24 -3
- package/dist/{index-DnG-QFpG.d.mts → index-CmwAJ8-5.d.mts} +18 -1
- package/dist/index-Cny5RvjO.d.mts +800 -0
- package/dist/{index-BNMnIe-j.d.mts → index-D-4jv_66.d.mts} +434 -863
- package/dist/{index-brqfk9JQ.d.mts → index-D8D-yibS2.d.mts} +4 -4
- package/dist/index-DHnSLGP4.d.mts +268 -0
- package/dist/{index-D5Nb7IEP.d.mts → index-DI2lS7VT.d.mts} +79 -41
- package/dist/{index-D_ODXsBv.d.mts → index-DJ2KgJDJ2.d.mts} +51 -95
- package/dist/{index-cqLS1eFV.d.mts → index-DNI6UF9h.d.mts} +133 -134
- package/dist/index-DQ8o3JGi.d.mts +132 -0
- package/dist/index-DWBkiiXH.d.mts +18 -0
- package/dist/{index-DlsHL9Jg.d.mts → index-DXtQRehh.d.mts} +12 -12
- package/dist/{index-4VfqCjl2.d.mts → index-D_4K3Tf_.d.mts} +79 -194
- package/dist/index-Dg11JxKZ.d.mts +496 -0
- package/dist/json-value-BBZ6uGwc.mjs +1 -0
- package/dist/json-value-DPqb-SJ8.d.mts +177 -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 +9 -9
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +2 -2
- 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-DErgth_E.mjs → lib-BpGvHZye.mjs} +2 -2
- package/dist/{lib-C7-s68uf.mjs → lib-Cm-uEoC1.mjs} +1 -1
- package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-BQoXaHhR.d.mts} +17 -13
- package/dist/load-extensions-DG5LvPyM.mjs +1 -0
- package/dist/{materialization-Jd198K3y.mjs → materialization-lVd9_-jr.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/model-DrzPt3ou.mjs +1 -0
- package/dist/{namespace-BqxtpNAn.mjs → namespace-BL7lHlmg.mjs} +1 -1
- package/dist/{namespace-CjjFvrIA2.d.mts → namespace-BNp7n_gu.d.mts} +25 -25
- package/dist/{namespace-g_mbIZq_.d.mts → namespace-BRuHzhPo.d.mts} +564 -28
- package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-C06lJSuj.d.mts} +17 -7
- package/dist/{namespace-TseEI3Pu.d.mts → namespace-DOezqDti.d.mts} +18 -10
- package/dist/{namespace-CErHuXtb.d.mts → namespace-DknCutQZ.d.mts} +50 -0
- package/dist/{namespace-B8uKAzWJ.mjs → namespace-Du0accdE.mjs} +1 -1
- package/dist/{namespace-CWUDFGOy.mjs → namespace-NXm_zvL1.mjs} +1 -1
- package/dist/{namespace-CupOzbRv.d.mts → namespace-l-HG1rLF.d.mts} +24 -20
- package/dist/namespace-sCPb79-7.mjs +1 -0
- package/dist/{native-session-supervisor-DRx0MX-d.mjs → native-session-supervisor-LKio8XZn.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/npm-package-name-DuTYVICk.mjs +1 -0
- package/dist/orchestrator-shared-BGlN-m-V.mjs +1 -0
- package/dist/{orchestrator-shared-BHCv-l2O.d.mts → orchestrator-shared-CNHSImNY.d.mts} +10 -10
- package/dist/ownership-memory-handler-BpGdR_uG.mjs +1 -0
- package/dist/ownership-recovery-guard-DyW5vGBr.mjs +1 -0
- package/dist/package-B01gmu75.mjs +7 -0
- package/dist/{package-DWMxGfzK.d.mts → package-BNFTUFLB.d.mts} +234 -84
- package/dist/package-DttKA9wN.mjs +1 -0
- package/dist/package-EGTn-Ng1.mjs +1 -0
- package/dist/package-JtjbO-Oi.mjs +1 -0
- package/dist/package.json +1 -1
- package/dist/{profile-BTAI31Nt.mjs → profile-N5qGUpF0.mjs} +1 -1
- package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-CG42JlP9.mjs} +1 -1
- package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-zTDSH2x9.mjs} +1 -1
- package/dist/reaction-D3TNwPK8.mjs +1 -0
- package/dist/{registry-wfF2uTty.mjs → registry-Dk12tAfv.mjs} +2 -2
- package/dist/{resolved-DZgqql2Z.mjs → resolved-sq8RXNDf.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/rules/schemas.mjs +1 -1
- package/dist/runtime-bun/index.mjs +1 -1
- package/dist/runtime-node/code-execution/index.d.mts +3 -0
- package/dist/runtime-node/code-execution/index.mjs +1 -0
- 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 +7 -5
- 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-DKUb4rkr.d.mts → schema-B3Pf7JP7.d.mts} +778 -21
- package/dist/{schema-Dd-e89MO.mjs → schema-Dq-7si8u.mjs} +1 -1
- package/dist/{schemas-B1NWNASS.d.mts → schemas-BXc9qOpl.d.mts} +2 -0
- package/dist/schemas-BfO5jkrL.mjs +1 -0
- package/dist/{schemas-CR8hSqTy.d.mts → schemas-C1mxTfd7.d.mts} +60 -4
- package/dist/schemas-C3kyQWGf.mjs +1 -0
- package/dist/{schemas-DnYiAvfz.d.mts → schemas-D7ScxLrf.d.mts} +24 -20
- package/dist/{schemas-BsVYZviy.d.mts → schemas-OWvBn7AH.d.mts} +4 -4
- package/dist/{schemas-DaHQzpgm.mjs → schemas-QWDnauKX.mjs} +1 -1
- package/dist/schemas-TK29KWx-.mjs +1 -0
- package/dist/schemas-_2Syo_01.mjs +1 -0
- package/dist/scoped-bus-DoPmCJeM.mjs +1 -0
- package/dist/{selection-BNwTKEVT.mjs → selection-DL3ric7K.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 +4 -4
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +2 -2
- 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.d.mts +943 -0
- package/dist/services/automation-trigger/index.mjs +1 -0
- package/dist/services/capability/index.d.mts +3 -2
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/code-execution/index.d.mts +2 -0
- package/dist/services/code-execution/index.mjs +1 -0
- 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 +18 -0
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +10 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +567 -101
- 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 +3 -3
- 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 +2 -2
- 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 +33 -4
- package/dist/services/session/testing/index.mjs +68 -12
- 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.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/workflow-transitions/index.d.mts +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/session-BOpTI79g.mjs +1 -0
- package/dist/session-CXOPk3yg.mjs +95 -0
- package/dist/shared-B9AWRm9A.mjs +1 -0
- package/dist/{skill-BR6rkfLe.mjs → skill-DGNtc_ww.mjs} +1 -1
- package/dist/{src-DD0v-nIj.mjs → src-BmSQ3rlz.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 +81 -2
- 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-BFDOFUGC.mjs +1 -0
- package/dist/{tools-PdG9fO1M.mjs → tools-DWKWX3eV.mjs} +1 -1
- package/dist/{transition-Du3MQzJV.d.mts → transition-D3zUBTPc.d.mts} +11 -38
- package/dist/{types-D7_kevBK.d.mts → types-BlB23n4f.d.mts} +1 -1
- package/dist/{types-DMLDHFR9.d.mts → types-CtDGkyLx2.d.mts} +1 -1
- package/dist/types-Cwza95hS.mjs +1 -0
- package/dist/{types-Dzrwa1GY.d.mts → types-DcxBYlPA.d.mts} +5834 -1436
- package/dist/types-DnK6Wa_Y.d.mts +260 -0
- package/dist/types-OKJCOjme.d.mts +2937 -0
- package/dist/ui-hooks/index.d.mts +29 -2
- package/dist/ui-hooks/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +2 -2
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/ui-views/index.d.mts +1 -1
- package/dist/utils/index.d.mts +98 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/project-manifest.mjs +1 -1
- package/dist/{version-CoCeMxDT.mjs → version-BYeVh1pI.mjs} +1 -1
- package/dist/{view-builder-DeFd-k7C.d.mts → view-builder-B0j9p5C0.d.mts} +4 -4
- package/dist/{visibility-qhGWmpSJ.mjs → visibility-DtDLRBdr.mjs} +1 -1
- package/dist/worker-node-CjuQb9hl.mjs +1 -0
- package/dist/{worker-node-DZTuT1DS.mjs → worker-node-Dtf9ilsR.mjs} +1 -1
- package/dist/workflow-C4mck_NW.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
- package/dist/workflow-engine/index.d.mts +237 -518
- 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 +27 -27
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-engine/workflow-trigger-binding-consumer.d.mts +46 -0
- package/dist/workflow-engine/workflow-trigger-binding-consumer.mjs +1 -0
- package/dist/{workflow-transitions-DSc45ixc.mjs → workflow-transitions-c_VQbyV0.mjs} +1 -1
- package/dist/workflow-worker-aNbdgqml.mjs +1 -0
- package/dist/zod-json-schema-Dixc-B1T.mjs +1 -0
- package/package.json +46 -1
- package/dist/adapter-D5c5LrPN.mjs +0 -1
- package/dist/artifact-DGiXqb11.mjs +0 -1
- package/dist/attach-error-C3tngg6J.mjs +0 -1
- package/dist/authority-state-bootstrap-GPL_tqaT.mjs +0 -1
- package/dist/await-trigger-I3lrepb8.mjs +0 -1
- package/dist/bus-B6SAjgOC.mjs +0 -2
- package/dist/bus-C2l3K74u.mjs +0 -1
- package/dist/capabilities-BQEp34ir.mjs +0 -1
- package/dist/capability-service-BqiLlRGA.mjs +0 -1
- package/dist/event-CmVjR6Ib.mjs +0 -1
- package/dist/extension-DCA4pYrY.mjs +0 -1
- package/dist/extension-hjOPs10e.mjs +0 -1
- package/dist/framework-packages-C3RWfJDk.mjs +0 -1
- package/dist/handlers-CfnLyLfE.mjs +0 -57
- package/dist/identity-D6guMtmi.mjs +0 -1
- package/dist/index-CRvpVIqA.d.mts +0 -89
- package/dist/json-value-Brslhqbm.d.mts +0 -57
- package/dist/json-value-DmU8ibo_.mjs +0 -1
- package/dist/load-extensions-D0DfjYLC.mjs +0 -1
- package/dist/model-BGgVmRnN.mjs +0 -1
- package/dist/namespace-DJfUADSV.mjs +0 -1
- package/dist/orchestrator-shared-BxmHCPvx.mjs +0 -1
- package/dist/package-CNUPPcU1.mjs +0 -7
- package/dist/package-Dft_RItb.mjs +0 -1
- package/dist/schemas-CRB2O5zo.mjs +0 -1
- package/dist/schemas-Cm09dXL4.mjs +0 -1
- package/dist/schemas-tDf_WiC8.mjs +0 -1
- package/dist/scoped-bus-C9BdNwfM.mjs +0 -1
- package/dist/session-BOGCd18q.mjs +0 -1
- package/dist/session-BTFiDoGz.mjs +0 -76
- package/dist/shared-BQ0CHIVy.mjs +0 -1
- package/dist/tool-approval-service-kBA0fRzm.mjs +0 -1
- package/dist/types-CJ_QZ1yW.d.mts +0 -1487
- package/dist/worker-node-Bl9_vqYi.mjs +0 -1
- package/dist/workflow-BfDbgtIQ.mjs +0 -1
- package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
- package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-DHHppU4f.mjs} +0 -0
- package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-CATvmGuz.d.mts} +0 -0
- package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-BYfYkj4M.mjs} +0 -0
- package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-B4YW6z_Q.d.mts} +0 -0
- package/dist/{index-DN4NOCqN2.d.mts → capability-service-BW1-teFU.d.mts} +0 -0
- package/dist/{client-B--e2qcU.d.mts → client-BG0WX5Vz.d.mts} +0 -0
- package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-0lCKZOTg.mjs} +0 -0
- package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-lcv83Hq3.d.mts} +0 -0
- package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DLAjOTTb.d.mts} +0 -0
- package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-CH7sJZ4f.d.mts} +0 -0
- package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-DxuixuLZ.mjs} +0 -0
- package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-CZygZJMH.mjs} +0 -0
- package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-bsc9lZKk.mjs} +0 -0
- package/dist/{definition-gnKgXU91.d.mts → definition-BrgzUuFk.d.mts} +0 -0
- package/dist/{definitions-xrrY0wgz.mjs → definitions-CRpdnHYM.mjs} +0 -0
- package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-CcjdoWP4.mjs} +0 -0
- package/dist/{drizzle-z_0SiGY8.mjs → drizzle-Bzc-OGVI.mjs} +0 -0
- package/dist/{esm-CltRnX8_.mjs → esm-i-S5TW72.mjs} +0 -0
- package/dist/{facet-BCI00njh.mjs → facet-BnMh7Jyc.mjs} +0 -0
- package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-ZJ43SbBi.d.mts} +0 -0
- package/dist/{handler-Cbv9FqDO.mjs → handler-DF1fVDpf.mjs} +0 -0
- package/dist/{host-Caq6ZfSJ.mjs → host-B-_ntOMH.mjs} +0 -0
- package/dist/{index-ye0oklfU.d.mts → index-B2Y1Wvbh.d.mts} +0 -0
- package/dist/{index-Cv-o5Krs.d.mts → index-B4svZC6L.d.mts} +0 -0
- package/dist/{index-DZunhZec.d.mts → index-B5dP8rj6.d.mts} +0 -0
- package/dist/{index-jTaAHsul.d.mts → index-BC-6qNeo.d.mts} +0 -0
- package/dist/{index-ByKi34v5.d.mts → index-BFWvT0NG.d.mts} +0 -0
- package/dist/{index-vA--0lOM.d.mts → index-BMRB9yhF.d.mts} +0 -0
- package/dist/{index-BskPjMet.d.mts → index-BuMsrli0.d.mts} +0 -0
- package/dist/{index-DR40QWlw.d.mts → index-C4V8Pmi4.d.mts} +0 -0
- package/dist/{index-BIdsFcQs2.d.mts → index-CL0Jo1b92.d.mts} +0 -0
- package/dist/{index-CjdRdsd0.d.mts → index-CVpaGijY.d.mts} +0 -0
- package/dist/{index-vcSj12YQ.d.mts → index-CmbkCxj-.d.mts} +0 -0
- package/dist/{index-sS6KUlrx.d.mts → index-CqdMbYmR.d.mts} +0 -0
- package/dist/{index-CnMu8BQl.d.mts → index-D037TVsm.d.mts} +0 -0
- package/dist/{index-CGZQVTid.d.mts → index-DgspOUa72.d.mts} +0 -0
- package/dist/{index-dtsLKOID.d.mts → index-Ek4y8M9J2.d.mts} +0 -0
- package/dist/{index-DjgLchuQ.d.mts → index-VzLAV0Yt.d.mts} +0 -0
- package/dist/{index-DXN_L5D6.d.mts → index-jxPncqWZ2.d.mts} +0 -0
- package/dist/{index-BVRQEpAg.d.mts → index-kzIjbrS02.d.mts} +6 -6
- /package/dist/{index-Dm1nUxCF.d.mts → index-l01zsChf.d.mts} +0 -0
- /package/dist/{index-CWHfOz6d.d.mts → index-pvX-BIpr2.d.mts} +0 -0
- /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Cyyh5Wje.mjs} +0 -0
- /package/dist/{lib-DOBXZmYX.mjs → lib-BqV8hYtk.mjs} +0 -0
- /package/dist/{model-registry-xyBKSye-.mjs → model-registry-C9rFu3kV.mjs} +0 -0
- /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Cixxx2jv.mjs} +0 -0
- /package/dist/{modes-BheyN7SS.mjs → modes-DwsJ3yVl.mjs} +0 -0
- /package/dist/{namespace-BOkKoq34.d.mts → namespace-B0ftHlK3.d.mts} +0 -0
- /package/dist/{namespace-YytVKIgI.d.mts → namespace-BGRHcrmp.d.mts} +0 -0
- /package/dist/{namespace-jDhZjw-i.d.mts → namespace-BUYDmd0r.d.mts} +0 -0
- /package/dist/{namespace-YxU1xf-K.mjs → namespace-BW3Bfu9h.mjs} +0 -0
- /package/dist/{namespace-DWCEo-9M.d.mts → namespace-BdAK0lD8.d.mts} +0 -0
- /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-CPG6u60N.d.mts} +0 -0
- /package/dist/{namespace-GPA7zots.d.mts → namespace-CVFaZv8x.d.mts} +0 -0
- /package/dist/{namespace-Blp4c8GK.d.mts → namespace-DBO1OzYB.d.mts} +0 -0
- /package/dist/{namespace-C-9si-fV.mjs → namespace-DiwqpB-c.mjs} +0 -0
- /package/dist/{namespace-tGRAod3o.d.mts → namespace-DqZweTbX.d.mts} +0 -0
- /package/dist/{namespace-HO2J9sO8.mjs → namespace-jVTsuZHX.mjs} +0 -0
- /package/dist/{namespace-CWGKCNZm.mjs → namespace-tjoxekmf.mjs} +0 -0
- /package/dist/{out-CvjtANXN.mjs → out-8bOYN6EF.mjs} +0 -0
- /package/dist/{packages-DtEEP0Vt.mjs → packages-Bp124-gx.mjs} +0 -0
- /package/dist/{packages-BZ6pzFIq.d.mts → packages-CxPMEg8D.d.mts} +0 -0
- /package/dist/{platform-Bv8llU9c.mjs → platform-CxyYPrkf.mjs} +0 -0
- /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DbdyFwNm.d.mts} +0 -0
- /package/dist/{providers-Co5UszRH.mjs → providers-C-eekMxD.mjs} +0 -0
- /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-CfZKp-C0.d.mts} +0 -0
- /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-CCEnf7y6.mjs} +0 -0
- /package/dist/{schema-Db-y-09L.mjs → schema-C0opCPww.mjs} +0 -0
- /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-6-r_KEJQ.mjs} +0 -0
- /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-B50oWBuj.d.mts} +0 -0
- /package/dist/{schemas-BO7uOum6.d.mts → schemas-B6Q-qdmn.d.mts} +0 -0
- /package/dist/{schemas-BGExwp3j.mjs → schemas-B8hKbBwI.mjs} +0 -0
- /package/dist/{schemas-miYxK_Z1.d.mts → schemas-BGvkTiCx.d.mts} +0 -0
- /package/dist/{schemas-CqRm0i9a.mjs → schemas-BivbWRkG.mjs} +0 -0
- /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-ChmQldVH.d.mts} +0 -0
- /package/dist/{schemas-DrVg4aQQ.d.mts → schemas-Dd13TMgU.d.mts} +0 -0
- /package/dist/{schemas-BtZqovRH.d.mts → schemas-Pe892GgN.d.mts} +0 -0
- /package/dist/{schemas-CQyRBqD6.d.mts → schemas-bfZNpl0B.d.mts} +0 -0
- /package/dist/{schemas-Bfxskx_2.mjs → schemas-scyC2tFF.mjs} +0 -0
- /package/dist/{semver-DlM8znk4.mjs → semver-BI7kTNsY.mjs} +0 -0
- /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-B_OZnoe-.mjs} +0 -0
- /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-L8zja8t8.d.mts} +0 -0
- /package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-bUkd3fqx.d.mts} +0 -0
- /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-CQ6blrEW.mjs} +0 -0
- /package/dist/{src-CCu8TwL6.mjs → src-BacfeiI4.mjs} +0 -0
- /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-BZce8kkW.mjs} +0 -0
- /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-YmE8XCCL.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-BvlX0QV_.d.mts → storage-namespace-definition-BsnYAPot.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CkMKt7-I.mjs → storage-namespace-definition-Cca-zwXU.mjs} +0 -0
- /package/dist/{supports-color-DUugCQsK.mjs → supports-color-SV_FgSN2.mjs} +0 -0
- /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BqoC87F-.mjs} +0 -0
- /package/dist/{timeout-DWDhddRJ.mjs → timeout-DVlN2Zhy.mjs} +0 -0
- /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-eVVxgPLc.mjs} +0 -0
- /package/dist/{types-BrcjaNPZ.d.mts → types-DdpSEmTO.d.mts} +0 -0
- /package/dist/{types-b54n1o57.d.mts → types-tyv0B605.d.mts} +0 -0
- /package/dist/{ui-config-CyCdlns_.mjs → ui-config-B35GloSX.mjs} +0 -0
- /package/dist/{variant-krjlTdJt.mjs → variant-Dwnge3J_.mjs} +0 -0
- /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CKiMJjId.mjs} +0 -0
- /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-Pcf35cac.d.mts} +0 -0
|
@@ -118,7 +118,7 @@ declare const ArtifactViewResolveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
118
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
119
|
type: z.ZodLiteral<"raw">;
|
|
120
120
|
title: z.ZodString;
|
|
121
|
-
json: z.ZodType<_$_makaio_contracts0.JsonValue,
|
|
121
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
122
122
|
}, z.core.$strip>, z.ZodObject<{
|
|
123
123
|
type: z.ZodLiteral<"code">;
|
|
124
124
|
title: z.ZodString;
|
|
@@ -367,7 +367,7 @@ declare const MaterializationSchemas: {
|
|
|
367
367
|
}, z.core.$strip>, z.ZodObject<{
|
|
368
368
|
type: z.ZodLiteral<"raw">;
|
|
369
369
|
title: z.ZodString;
|
|
370
|
-
json: z.ZodType<_$_makaio_contracts0.JsonValue,
|
|
370
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
371
371
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
372
|
type: z.ZodLiteral<"code">;
|
|
373
373
|
title: z.ZodString;
|
|
@@ -605,7 +605,7 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
|
|
|
605
605
|
}, z.core.$strip>, z.ZodObject<{
|
|
606
606
|
type: z.ZodLiteral<"raw">;
|
|
607
607
|
title: z.ZodString;
|
|
608
|
-
json: z.ZodType<_$_makaio_contracts0.JsonValue,
|
|
608
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
609
609
|
}, z.core.$strip>, z.ZodObject<{
|
|
610
610
|
type: z.ZodLiteral<"code">;
|
|
611
611
|
title: z.ZodString;
|
|
@@ -855,7 +855,7 @@ declare const MaterializationSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_c
|
|
|
855
855
|
}, z.core.$strip>, z.ZodObject<{
|
|
856
856
|
type: z.ZodLiteral<"raw">;
|
|
857
857
|
title: z.ZodString;
|
|
858
|
-
json: z.ZodType<_$_makaio_contracts0.JsonValue,
|
|
858
|
+
json: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
859
859
|
}, z.core.$strip>, z.ZodObject<{
|
|
860
860
|
type: z.ZodLiteral<"code">;
|
|
861
861
|
title: z.ZodString;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { t as CapabilityService } from "./capability-service-BW1-teFU.mjs";
|
|
2
|
+
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
|
+
import { CodeExecutionAbortReason, CodeExecutionProviderContext, CodeExecutionRequirements, ICapabilityProvider, ICodeExecutionProvider, MakaioNodeExtension } from "@makaio/framework/contracts";
|
|
5
|
+
import { BaseService } from "@makaio/framework/service-base";
|
|
6
|
+
|
|
7
|
+
//#region services/core/src/code-execution/code-execution-service.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Framework router for the `code-execution.execute` subject.
|
|
10
|
+
*
|
|
11
|
+
* Routes one prepared, JSON-safe invocation to exactly one locally registered
|
|
12
|
+
* provider and returns one normalized terminal outcome. The service owns
|
|
13
|
+
* three things and nothing else:
|
|
14
|
+
*
|
|
15
|
+
* - **Selection.** Providers live in the capability registry's
|
|
16
|
+
* `code-execution` bucket as live objects; this service never keeps a
|
|
17
|
+
* second registry and re-reads the bucket for every invocation, so
|
|
18
|
+
* registrations that arrive or disappear between invocations are honored.
|
|
19
|
+
* - **Budget.** One effective signal combines the request budget, the
|
|
20
|
+
* inherited request deadline, and caller cancellation, and is what the
|
|
21
|
+
* provider observes.
|
|
22
|
+
* - **Normalization.** Every path — missing provider, malformed
|
|
23
|
+
* registration, provider throw, non-conforming outcome, timeout,
|
|
24
|
+
* cancellation — resolves to a schema-valid outcome. The handler does not
|
|
25
|
+
* reject.
|
|
26
|
+
*
|
|
27
|
+
* There is deliberately **no fallback after admission**: once a provider has
|
|
28
|
+
* been handed the invocation, its failure is normalized, never retried
|
|
29
|
+
* against a second provider. Retrying would run submitted code twice under a
|
|
30
|
+
* different trust level than the one selection admitted.
|
|
31
|
+
*/
|
|
32
|
+
declare class CodeExecutionService extends BaseService {
|
|
33
|
+
private readonly capabilities;
|
|
34
|
+
/**
|
|
35
|
+
* @param bus - Bus instance the execute handler is registered on.
|
|
36
|
+
* @param capabilities - Live capability registry holding the provider bucket.
|
|
37
|
+
*/
|
|
38
|
+
constructor(bus: IMakaioBus, capabilities: CapabilityService);
|
|
39
|
+
protected onInit(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Validate the delivered payload, then route it.
|
|
42
|
+
*
|
|
43
|
+
* The caller-facing input already carries typed JSON fields, but parsing
|
|
44
|
+
* remains the router's own runtime trust boundary: a handler chain can
|
|
45
|
+
* replace a payload after the bus validated it, and a subject that executes
|
|
46
|
+
* submitted code must not hand an unvalidated program to a provider on that
|
|
47
|
+
* basis.
|
|
48
|
+
* @param payload - Payload as delivered to this handler.
|
|
49
|
+
* @param callerSignal - Caller cancellation signal; present only for local dispatch.
|
|
50
|
+
* @param requestDeadlineEpochMs - Absolute deadline inherited from the request, when any.
|
|
51
|
+
* @returns Exactly one normalized terminal outcome.
|
|
52
|
+
*/
|
|
53
|
+
private dispatch;
|
|
54
|
+
/**
|
|
55
|
+
* Route one invocation to a single provider and normalize its outcome.
|
|
56
|
+
*
|
|
57
|
+
* Budget ownership is established *before* selection, and deliberately so.
|
|
58
|
+
* An invocation whose caller already went away, or whose inherited deadline
|
|
59
|
+
* had already passed, was never going to run no matter what the registry
|
|
60
|
+
* holds; reporting `provider_unavailable` or `invalid_provider` for it would
|
|
61
|
+
* name a local composition fault as the cause of something the caller
|
|
62
|
+
* decided. The signal is released on every path, including selection
|
|
63
|
+
* failure.
|
|
64
|
+
* @param request - Prepared, JSON-safe invocation to execute.
|
|
65
|
+
* @param callerSignal - Caller cancellation signal; present only for local dispatch.
|
|
66
|
+
* @param requestDeadlineEpochMs - Absolute deadline inherited from the request, when any.
|
|
67
|
+
* @returns Exactly one normalized terminal outcome.
|
|
68
|
+
*/
|
|
69
|
+
private route;
|
|
70
|
+
/**
|
|
71
|
+
* Validate what one admitted provider produced.
|
|
72
|
+
*
|
|
73
|
+
* Never rejects: a provider throw and a non-conforming outcome both
|
|
74
|
+
* normalize here, so the caller's race only ever sees terminal outcomes.
|
|
75
|
+
* A settlement observed after the effective signal aborted is reported as
|
|
76
|
+
* that abort rather than as a provider fault — the provider was stopped, it
|
|
77
|
+
* did not fail.
|
|
78
|
+
*
|
|
79
|
+
* INVARIANT: nothing this function holds while suspended may be proportional
|
|
80
|
+
* to the request. A provider is free to ignore its abort signal and never
|
|
81
|
+
* settle, in which case the race in {@link route} answers the caller and *this*
|
|
82
|
+
* frame stays suspended for the life of the process — a suspended async
|
|
83
|
+
* function retains its parameters, so a `CodeExecutionRequest` parameter would
|
|
84
|
+
* pin that invocation's whole program and arguments, megabytes apiece, once per
|
|
85
|
+
* timed-out call. It therefore receives the two bounded strings the post-await
|
|
86
|
+
* code actually needs instead of the request they came from, and the provider
|
|
87
|
+
* call itself is started by {@link callProvider} in the caller so that neither
|
|
88
|
+
* the request nor the selection result is a parameter here. `settlement` is the
|
|
89
|
+
* provider's own promise: whatever *it* retains is the provider's to answer for,
|
|
90
|
+
* and is what the abort signal exists to cut short.
|
|
91
|
+
* @param settlement - Promise the admitted entry point produced, already started.
|
|
92
|
+
* @param providerId - Identifier selection snapshotted for the admitted provider.
|
|
93
|
+
* @param invocationId - Correlation identifier, for local diagnostics only.
|
|
94
|
+
* @param signal - Effective cancellation and deadline ownership for this execution.
|
|
95
|
+
* @returns The provider's validated outcome, or its normalized failure.
|
|
96
|
+
*/
|
|
97
|
+
private invoke;
|
|
98
|
+
/**
|
|
99
|
+
* Record the detailed cause of a provider fault locally.
|
|
100
|
+
*
|
|
101
|
+
* Causes stay here on purpose: the outcome that crosses the bus carries a
|
|
102
|
+
* bounded summary, so stack traces, paths, and provider-internal error
|
|
103
|
+
* objects never leave the host that observed them.
|
|
104
|
+
* @param invocationId - Correlation identifier of the invocation whose provider faulted.
|
|
105
|
+
* @param providerId - Identifier the selector snapshotted for the faulting provider.
|
|
106
|
+
* @param summary - What the provider did wrong.
|
|
107
|
+
* @param cause - Original thrown value or validation error, retained only in the log.
|
|
108
|
+
*/
|
|
109
|
+
private logDiagnostic;
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region services/core/src/code-execution/package.d.ts
|
|
113
|
+
/** Token for the code-execution routing service. */
|
|
114
|
+
declare const CodeExecutionServiceToken: _$_makaio_contracts0.ExtensionToken<CodeExecutionService>;
|
|
115
|
+
/**
|
|
116
|
+
* Opt-in package that registers the `code-execution.execute` handler.
|
|
117
|
+
*
|
|
118
|
+
* Deliberately **not** part of the framework core package list. The subject's
|
|
119
|
+
* namespace is always registered, so any host can route and validate it, but
|
|
120
|
+
* composing a handler for it means this host is willing to execute submitted
|
|
121
|
+
* code with whatever trust its registered providers declare. That is a
|
|
122
|
+
* composition decision, and it is made by naming this package.
|
|
123
|
+
*
|
|
124
|
+
* The capability registry is a hard dependency rather than a lazy bus lookup:
|
|
125
|
+
* without it there is no provider bucket to select from, and a router that
|
|
126
|
+
* started anyway would answer every invocation with `provider_unavailable`
|
|
127
|
+
* while looking healthy.
|
|
128
|
+
*/
|
|
129
|
+
declare const codeExecutionPackage: MakaioNodeExtension<IMakaioBus>;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region services/core/src/code-execution/execution-signal.d.ts
|
|
132
|
+
/** Inputs from which one effective execution signal is derived. */
|
|
133
|
+
interface EffectiveExecutionSignalOptions {
|
|
134
|
+
/**
|
|
135
|
+
* Wall-clock execution budget declared by the request, in milliseconds.
|
|
136
|
+
*
|
|
137
|
+
* Must be finite and non-negative; a budget of zero is an already-exhausted
|
|
138
|
+
* one and settles as a timeout immediately.
|
|
139
|
+
*/
|
|
140
|
+
readonly timeoutMs: number;
|
|
141
|
+
/** Absolute deadline inherited from the dispatching request, when it carried one. */
|
|
142
|
+
readonly requestDeadlineEpochMs?: number;
|
|
143
|
+
/** Caller cancellation signal; present only for local dispatch. */
|
|
144
|
+
readonly callerSignal?: AbortSignal;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* One execution's effective cancellation and deadline ownership.
|
|
148
|
+
*
|
|
149
|
+
* Combines the request budget, the inherited request deadline, and caller
|
|
150
|
+
* cancellation into the single authoritative signal the provider observes,
|
|
151
|
+
* and records which of them settled it.
|
|
152
|
+
*/
|
|
153
|
+
interface EffectiveExecutionSignal {
|
|
154
|
+
/** Provider-facing context carrying the effective signal and deadline. */
|
|
155
|
+
readonly context: CodeExecutionProviderContext;
|
|
156
|
+
/** Reason the signal aborted, or `undefined` while the execution is live. */
|
|
157
|
+
readonly abortReason: CodeExecutionAbortReason | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Resolves with the abort reason once the signal aborts; never rejects.
|
|
160
|
+
*
|
|
161
|
+
* Stays pending forever when the execution settles first, so callers race
|
|
162
|
+
* it against the provider rather than awaiting it.
|
|
163
|
+
*/
|
|
164
|
+
readonly aborted: Promise<CodeExecutionAbortReason>;
|
|
165
|
+
/**
|
|
166
|
+
* Detach the caller listener and clear the deadline timer.
|
|
167
|
+
*
|
|
168
|
+
* Idempotent, and safe to call on every settlement path — including after
|
|
169
|
+
* the signal already aborted.
|
|
170
|
+
*/
|
|
171
|
+
release(): void;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Create the effective cancellation and deadline ownership for one execution.
|
|
175
|
+
*
|
|
176
|
+
* The returned signal aborts at the earliest of the request budget, the
|
|
177
|
+
* inherited request deadline, and caller cancellation. Caller cancellation
|
|
178
|
+
* is checked before the deadline so an already-abandoned invocation reports
|
|
179
|
+
* `cancellation` rather than a timeout it never got the chance to exceed.
|
|
180
|
+
*
|
|
181
|
+
* Every listener and timer this installs is removed by
|
|
182
|
+
* {@link EffectiveExecutionSignal.release}, which the caller must invoke on
|
|
183
|
+
* every settlement path.
|
|
184
|
+
*
|
|
185
|
+
* The budget is validated before anything is armed. The bus path already
|
|
186
|
+
* rejects an unusable one through the request schema, but this factory is
|
|
187
|
+
* exported for direct composition too, and there is no signal to hand back for
|
|
188
|
+
* a budget that yields no deadline.
|
|
189
|
+
* @param options - Request budget, inherited deadline, and caller signal.
|
|
190
|
+
* @returns The provider-facing context, the settling reason, and its release.
|
|
191
|
+
* @throws {@link TypeError} When `timeoutMs` is not a finite, non-negative number.
|
|
192
|
+
*/
|
|
193
|
+
declare function createEffectiveExecutionSignal(options: EffectiveExecutionSignalOptions): EffectiveExecutionSignal;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region services/core/src/code-execution/provider-selection.d.ts
|
|
196
|
+
/**
|
|
197
|
+
* Failure codes the selector can produce when no provider is admitted.
|
|
198
|
+
*
|
|
199
|
+
* Both are `failed`-outcome codes, so the router can hand a rejection
|
|
200
|
+
* straight to its failure normalization without re-mapping.
|
|
201
|
+
*/
|
|
202
|
+
type CodeExecutionSelectionFailureCode = 'provider_unavailable' | 'invalid_provider';
|
|
203
|
+
/** Selection result admitting exactly one provider for the invocation. */
|
|
204
|
+
interface CodeExecutionProviderSelected {
|
|
205
|
+
/** Discriminant: a provider was admitted. */
|
|
206
|
+
readonly admitted: true;
|
|
207
|
+
/**
|
|
208
|
+
* The admitted provider's identifier, as read during selection.
|
|
209
|
+
*
|
|
210
|
+
* Carried out of the selector rather than re-read from `provider` at the
|
|
211
|
+
* point of use. Selection reads every field exactly once under containment,
|
|
212
|
+
* but a registration whose `id` accessor throws — or answers something else —
|
|
213
|
+
* on a *later* read would otherwise turn a diagnostic or a failure summary
|
|
214
|
+
* into a rejected bus handler. The identifier a caller reports is therefore
|
|
215
|
+
* the identifier selection actually admitted.
|
|
216
|
+
*/
|
|
217
|
+
readonly id: string;
|
|
218
|
+
/**
|
|
219
|
+
* The entry point selection validated, carried out of the selector.
|
|
220
|
+
*
|
|
221
|
+
* Read once during selection and never read off `provider` again, for the
|
|
222
|
+
* same reason {@link id} is not: a registration is free to answer a *different*
|
|
223
|
+
* function on a later read — or to throw — and the callable that runs must be
|
|
224
|
+
* the callable admission checked. It is invoked with `provider` as its `this`,
|
|
225
|
+
* so a class-based registration keeps its own binding.
|
|
226
|
+
*/
|
|
227
|
+
readonly execute: ICodeExecutionProvider['execute'];
|
|
228
|
+
/** The single provider admitted for this invocation, used as the `this` binding. */
|
|
229
|
+
readonly provider: ICodeExecutionProvider;
|
|
230
|
+
}
|
|
231
|
+
/** Selection result admitting no provider, carrying the failure classification. */
|
|
232
|
+
interface CodeExecutionProviderRejected {
|
|
233
|
+
/** Discriminant: no provider was admitted. */
|
|
234
|
+
readonly admitted: false;
|
|
235
|
+
/** Failure classification for the normalized outcome. */
|
|
236
|
+
readonly code: CodeExecutionSelectionFailureCode;
|
|
237
|
+
}
|
|
238
|
+
/** Discriminated result of one selection pass over the live provider bucket. */
|
|
239
|
+
type CodeExecutionProviderSelection = CodeExecutionProviderSelected | CodeExecutionProviderRejected;
|
|
240
|
+
/**
|
|
241
|
+
* Select the single provider that will execute one invocation.
|
|
242
|
+
*
|
|
243
|
+
* Pure over the live bucket: the input array is never reordered or mutated,
|
|
244
|
+
* because it is the capability registry's own storage. Malformed
|
|
245
|
+
* registrations — including ones whose property accessors throw — are
|
|
246
|
+
* excluded from selection rather than invoked, so this function is total: it
|
|
247
|
+
* returns a classification for every bucket instead of throwing at its caller.
|
|
248
|
+
*
|
|
249
|
+
* Every field of every registration is read exactly once, into snapshots;
|
|
250
|
+
* validation, requirement filtering, and ordering then all run on those plain
|
|
251
|
+
* values. The admitted provider's live object leaves this function so it is
|
|
252
|
+
* invoked with its own `this` binding — accompanied by its snapshotted `id` and
|
|
253
|
+
* `execute`, so no caller has to read a field off that live object again, either
|
|
254
|
+
* to describe it or to invoke it.
|
|
255
|
+
*
|
|
256
|
+
* Duplicate snapshot IDs are always `invalid_provider`, before requirement
|
|
257
|
+
* filtering can hide the ambiguity. When no provider is otherwise admitted,
|
|
258
|
+
* `invalid_provider` takes precedence over `provider_unavailable` whenever the
|
|
259
|
+
* bucket held at least one malformed registration. Both are actionable local
|
|
260
|
+
* composition faults, and reporting "no provider available" for either would
|
|
261
|
+
* hide the only signal that something was registered wrongly.
|
|
262
|
+
* @param candidates - Live `code-execution` bucket from the capability registry.
|
|
263
|
+
* @param requirements - Exact-match constraints declared by the request, when any.
|
|
264
|
+
* @returns The admitted provider, or the failure code to normalize.
|
|
265
|
+
*/
|
|
266
|
+
declare function selectCodeExecutionProvider(candidates: readonly ICapabilityProvider[], requirements: CodeExecutionRequirements | undefined): CodeExecutionProviderSelection;
|
|
267
|
+
//#endregion
|
|
268
|
+
export { selectCodeExecutionProvider as a, createEffectiveExecutionSignal as c, CodeExecutionService as d, CodeExecutionSelectionFailureCode as i, CodeExecutionServiceToken as l, CodeExecutionProviderSelected as n, EffectiveExecutionSignal as o, CodeExecutionProviderSelection as r, EffectiveExecutionSignalOptions as s, CodeExecutionProviderRejected as t, codeExecutionPackage as u };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as AdapterProviderAuth$1 } from "./adapter-binding-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { G as ArtifactLifecycleHookRegistration$1, N as AnyArtifactKindDefinition, W as ArtifactLifecycleHookEvent } from "./index-DNI6UF9h.mjs";
|
|
2
|
+
import { s as AdapterProviderAuth$1 } from "./adapter-binding-CATvmGuz.mjs";
|
|
3
|
+
import { i as ExtensionService$1, n as NodeExtensionContext$1, t as ExtensionContext$1 } from "./extension-context-QmFuHdq5.mjs";
|
|
4
|
+
import { t as ExtensionAutomationTriggersContribution } from "./contribution-CUHLVLsT.mjs";
|
|
5
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-D3zUBTPc.mjs";
|
|
6
|
+
import { E as ClientDefinition$1, Q as VersionLiteral$1, et as VersionRange, f as ExtensionClientHookResponsesContribution } from "./hook-responses-9Ywsqzzq.mjs";
|
|
7
|
+
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-BrgzUuFk.mjs";
|
|
8
|
+
import { t as RequiredTimeoutConfig } from "./index-l01zsChf.mjs";
|
|
9
|
+
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-DcxBYlPA.mjs";
|
|
10
|
+
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-CmwAJ8-5.mjs";
|
|
11
|
+
import { l as FacetNamespaceDefinition } from "./index-BuMsrli0.mjs";
|
|
12
|
+
import { t as ExtensionReactionsContribution } from "./index-B0VO0rAl.mjs";
|
|
13
|
+
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-B0j9p5C0.mjs";
|
|
11
14
|
import { z } from "zod";
|
|
12
15
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
13
16
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -272,15 +275,15 @@ declare const ProviderManifestSchema: z.ZodObject<{
|
|
|
272
275
|
* Mirrors {@link HashTriggerStage} from the runtime contribution types.
|
|
273
276
|
* Kept as a local type alias so this manifest module remains self-contained.
|
|
274
277
|
*/
|
|
275
|
-
type
|
|
278
|
+
type HashTriggerStageManifest = 'gather' | 'transform' | 'action';
|
|
276
279
|
/**
|
|
277
280
|
* Describes a hash trigger contributed by an extension.
|
|
278
281
|
*
|
|
279
282
|
* Serializable metadata for discovery and introspection. The executable
|
|
280
|
-
* runtime source is `MakaioExtension.
|
|
283
|
+
* runtime source is `MakaioExtension.hashTriggers.createHashTriggers()`; descriptor
|
|
281
284
|
* contributions are not a registration fallback.
|
|
282
285
|
*/
|
|
283
|
-
interface
|
|
286
|
+
interface HashTriggerManifest {
|
|
284
287
|
/**
|
|
285
288
|
* Prefix token this trigger responds to (e.g., `'loop'`, `'file'`).
|
|
286
289
|
*
|
|
@@ -295,10 +298,10 @@ interface TriggerManifest {
|
|
|
295
298
|
*
|
|
296
299
|
* Defaults to `'action'` when omitted.
|
|
297
300
|
*/
|
|
298
|
-
readonly stage?:
|
|
301
|
+
readonly stage?: HashTriggerStageManifest;
|
|
299
302
|
}
|
|
300
|
-
/** Zod schema for {@link
|
|
301
|
-
declare const
|
|
303
|
+
/** Zod schema for {@link HashTriggerManifest}. */
|
|
304
|
+
declare const HashTriggerManifestSchema: z.ZodObject<{
|
|
302
305
|
prefix: z.ZodString;
|
|
303
306
|
description: z.ZodOptional<z.ZodString>;
|
|
304
307
|
stage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -476,7 +479,7 @@ declare const UiSurfaceFlagsSchema: z.ZodObject<{
|
|
|
476
479
|
* executable contribution fields only for pre-load introspection.
|
|
477
480
|
*
|
|
478
481
|
* Rich metadata fields ({@link adapters}, {@link clients}, {@link providers},
|
|
479
|
-
* {@link
|
|
482
|
+
* {@link hashTriggers}, {@link logImporters}, {@link sessionEventActions}) carry
|
|
480
483
|
* structured data for discovery and filtering. Boolean surface flags
|
|
481
484
|
* ({@link create}, {@link tools}, {@link bootstrap}, etc.) declare which
|
|
482
485
|
* executable surfaces the extension contributes without duplicating runtime
|
|
@@ -502,7 +505,7 @@ declare const UiSurfaceFlagsSchema: z.ZodObject<{
|
|
|
502
505
|
* ```json
|
|
503
506
|
* {
|
|
504
507
|
* "contributions": {
|
|
505
|
-
* "
|
|
508
|
+
* "hashTriggers": [
|
|
506
509
|
* { "prefix": "loop", "description": "Retry-until-success execution", "stage": "action" }
|
|
507
510
|
* ],
|
|
508
511
|
* "create": true,
|
|
@@ -521,7 +524,7 @@ interface ContributionManifest {
|
|
|
521
524
|
/** Provider contributions declared by this extension. */
|
|
522
525
|
readonly providers?: readonly ProviderManifest[];
|
|
523
526
|
/** Hash trigger contributions declared by this extension. */
|
|
524
|
-
readonly
|
|
527
|
+
readonly hashTriggers?: readonly HashTriggerManifest[];
|
|
525
528
|
/** Log importer contribution declared by this extension. */
|
|
526
529
|
readonly logImporters?: readonly LogImporterManifest[];
|
|
527
530
|
/** Session event action contributions declared by this extension. */
|
|
@@ -588,7 +591,7 @@ declare const ContributionManifestSchema: z.ZodObject<{
|
|
|
588
591
|
name: z.ZodString;
|
|
589
592
|
description: z.ZodOptional<z.ZodString>;
|
|
590
593
|
}, z.core.$strip>>>>;
|
|
591
|
-
|
|
594
|
+
hashTriggers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
592
595
|
prefix: z.ZodString;
|
|
593
596
|
description: z.ZodOptional<z.ZodString>;
|
|
594
597
|
stage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -641,7 +644,7 @@ declare const ContributionManifestSchema: z.ZodObject<{
|
|
|
641
644
|
pages: z.ZodOptional<z.ZodBoolean>;
|
|
642
645
|
routes: z.ZodOptional<z.ZodBoolean>;
|
|
643
646
|
}, z.core.$strip>>;
|
|
644
|
-
}, z.core.$
|
|
647
|
+
}, z.core.$strict>;
|
|
645
648
|
//#endregion
|
|
646
649
|
//#region core/contracts/src/extension/capability-token.d.ts
|
|
647
650
|
/**
|
|
@@ -1320,7 +1323,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1320
1323
|
name: z.ZodString;
|
|
1321
1324
|
description: z.ZodOptional<z.ZodString>;
|
|
1322
1325
|
}, z.core.$strip>>>>;
|
|
1323
|
-
|
|
1326
|
+
hashTriggers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1324
1327
|
prefix: z.ZodString;
|
|
1325
1328
|
description: z.ZodOptional<z.ZodString>;
|
|
1326
1329
|
stage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1373,7 +1376,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1373
1376
|
pages: z.ZodOptional<z.ZodBoolean>;
|
|
1374
1377
|
routes: z.ZodOptional<z.ZodBoolean>;
|
|
1375
1378
|
}, z.core.$strip>>;
|
|
1376
|
-
}, z.core.$
|
|
1379
|
+
}, z.core.$strict>>;
|
|
1377
1380
|
}, z.core.$strip>;
|
|
1378
1381
|
//#endregion
|
|
1379
1382
|
//#region core/contracts/src/extension/adapter-definition.d.ts
|
|
@@ -1458,7 +1461,7 @@ interface AdapterProviderDefinitionContract$1 {
|
|
|
1458
1461
|
* @typeParam TOptions - Options type accepted by {@link createAdapter}.
|
|
1459
1462
|
* Defaults to `never` so the type-erased base contract (`AdapterContribution.definition`)
|
|
1460
1463
|
* is structurally compatible with any specialised definition via contravariance:
|
|
1461
|
-
* `(options
|
|
1464
|
+
* `(options: ConcreteOptions) => Promise<T>` is assignable to `(options: never) => Promise<T>`.
|
|
1462
1465
|
* Specialised adapter interfaces (e.g. `AIAdapterDefinition`) pass a narrower
|
|
1463
1466
|
* options type here to gain compile-time safety in their factory signatures.
|
|
1464
1467
|
*/
|
|
@@ -1554,7 +1557,7 @@ interface AdapterDefinitionContract$1<TAdapter = unknown, TOptions = never> {
|
|
|
1554
1557
|
* @param options - Resolved adapter configuration (shape defined by the adapter).
|
|
1555
1558
|
* @returns Promise resolving to the adapter instance.
|
|
1556
1559
|
*/
|
|
1557
|
-
readonly createAdapter: (options
|
|
1560
|
+
readonly createAdapter: (options: TOptions) => Promise<TAdapter>;
|
|
1558
1561
|
}
|
|
1559
1562
|
//#endregion
|
|
1560
1563
|
//#region core/contracts/src/extension/extension-cli.d.ts
|
|
@@ -2027,7 +2030,7 @@ interface HashTriggerSuggestResult {
|
|
|
2027
2030
|
* A registered hash trigger that can suggest completions and execute values.
|
|
2028
2031
|
*
|
|
2029
2032
|
* Implement this interface and return instances from
|
|
2030
|
-
* `MakaioExtension.
|
|
2033
|
+
* `MakaioExtension.hashTriggers.createHashTriggers` so the runtime registers them
|
|
2031
2034
|
* with the HashTriggerService.
|
|
2032
2035
|
* @typeParam TBus - Host bus shape supplied by the runtime.
|
|
2033
2036
|
*/
|
|
@@ -2791,15 +2794,19 @@ type ExtensionConfigComponentLoader<TConfig = unknown> = () => Promise<{
|
|
|
2791
2794
|
//#endregion
|
|
2792
2795
|
//#region core/contracts/src/extension/contributions/workflow-block-types.d.ts
|
|
2793
2796
|
/**
|
|
2794
|
-
* Workflow block contribution —
|
|
2797
|
+
* Workflow block contribution — step blocks for the workflow builder.
|
|
2795
2798
|
*
|
|
2796
2799
|
* Unlike other contribution surfaces, blocks are purely declarative (no runtime
|
|
2797
2800
|
* context needed), so this is a static property rather than a factory. The
|
|
2798
2801
|
* workflow block registry processor reads `blocks` during extension activation
|
|
2799
2802
|
* and serialises each block to JSON Schema for catalog storage.
|
|
2803
|
+
*
|
|
2804
|
+
* Use `automationTriggers` instead to contribute trigger types — trigger
|
|
2805
|
+
* catalog entries are derived from executable automation trigger descriptors,
|
|
2806
|
+
* not from declarative blocks.
|
|
2800
2807
|
*/
|
|
2801
2808
|
interface ExtensionWorkflowBlocksContribution {
|
|
2802
|
-
/**
|
|
2809
|
+
/** Step block declarations contributed by this extension. */
|
|
2803
2810
|
readonly blocks: WorkflowBlockCollection$1;
|
|
2804
2811
|
}
|
|
2805
2812
|
//#endregion
|
|
@@ -2854,13 +2861,13 @@ interface ExtensionToolsContribution<THostContext extends ExtensionContext$1 = N
|
|
|
2854
2861
|
* Hash trigger contribution surface declared by an extension.
|
|
2855
2862
|
* @typeParam TBus - Host bus shape supplied by the runtime.
|
|
2856
2863
|
*/
|
|
2857
|
-
interface
|
|
2864
|
+
interface ExtensionHashTriggersContribution<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
2858
2865
|
/**
|
|
2859
2866
|
* Create hash triggers for this extension.
|
|
2860
2867
|
* @param bus - The bus instance for trigger operations.
|
|
2861
2868
|
* @returns Array of hash triggers to register with `HashTriggerService`.
|
|
2862
2869
|
*/
|
|
2863
|
-
readonly
|
|
2870
|
+
readonly createHashTriggers: (bus: TBus) => HashTrigger<TBus>[];
|
|
2864
2871
|
}
|
|
2865
2872
|
/**
|
|
2866
2873
|
* Session event action contribution surface declared by an extension.
|
|
@@ -3399,14 +3406,14 @@ interface MakaioExtension$1<THostContext extends ExtensionContext$1 = NodeExtens
|
|
|
3399
3406
|
/**
|
|
3400
3407
|
* Hash trigger factory for this extension.
|
|
3401
3408
|
*
|
|
3402
|
-
* When present, the runtime calls `
|
|
3409
|
+
* When present, the runtime calls `createHashTriggers(bus)` after all
|
|
3403
3410
|
* dependencies are loaded, then registers the returned triggers with
|
|
3404
3411
|
* `HashTriggerService`.
|
|
3405
3412
|
*
|
|
3406
|
-
* Extensions declaring triggers should depend on `'hash-trigger'` to
|
|
3407
|
-
* the service exists when triggers are registered.
|
|
3413
|
+
* Extensions declaring hash triggers should depend on `'hash-trigger'` to
|
|
3414
|
+
* ensure the service exists when triggers are registered.
|
|
3408
3415
|
*/
|
|
3409
|
-
readonly
|
|
3416
|
+
readonly hashTriggers?: ExtensionHashTriggersContribution<THostContext['bus']>;
|
|
3410
3417
|
/**
|
|
3411
3418
|
* Session event action factory for this extension.
|
|
3412
3419
|
*
|
|
@@ -3425,12 +3432,13 @@ interface MakaioExtension$1<THostContext extends ExtensionContext$1 = NodeExtens
|
|
|
3425
3432
|
*/
|
|
3426
3433
|
readonly bootstrap?: ExtensionBootstrap<THostContext['bus']>;
|
|
3427
3434
|
/**
|
|
3428
|
-
* Workflow
|
|
3435
|
+
* Workflow step block declarations for the workflow builder.
|
|
3429
3436
|
*
|
|
3430
3437
|
* When present, the runtime reads `blocks` during extension activation and
|
|
3431
3438
|
* registers each block with the workflow block registry. Blocks are purely
|
|
3432
|
-
* declarative — no runtime context is required. Use {@link
|
|
3433
|
-
*
|
|
3439
|
+
* declarative — no runtime context is required. Use {@link WorkflowStepBlock}
|
|
3440
|
+
* to define blocks with typed Zod schemas. Workflow start conditions are
|
|
3441
|
+
* contributed through {@link automationTriggers} instead.
|
|
3434
3442
|
*/
|
|
3435
3443
|
readonly workflowBlocks?: ExtensionWorkflowBlocksContribution;
|
|
3436
3444
|
/**
|
|
@@ -3499,6 +3507,36 @@ interface MakaioExtension$1<THostContext extends ExtensionContext$1 = NodeExtens
|
|
|
3499
3507
|
* declares surface bindings.
|
|
3500
3508
|
*/
|
|
3501
3509
|
readonly surfaceBindings?: ExtensionSurfaceBindingsContribution;
|
|
3510
|
+
/**
|
|
3511
|
+
* Reaction factory contributed by this extension.
|
|
3512
|
+
*
|
|
3513
|
+
* When present, the runtime calls `createReactions(ctx)` during extension
|
|
3514
|
+
* activation and registers the returned {@link ReactionDefinition}s with the
|
|
3515
|
+
* Reaction registry. Reactions are namespaced `<extension-name>.<reaction-name>`;
|
|
3516
|
+
* the registry enforces the prefix at contribution time.
|
|
3517
|
+
*
|
|
3518
|
+
* Reaction definitions carry live Zod parameter schemas and trusted
|
|
3519
|
+
* handlers — they are runtime values and must never be included in
|
|
3520
|
+
* serializable descriptor metadata. Descriptor metadata may advertise a
|
|
3521
|
+
* Reaction for discovery, but only this executable surface installs it.
|
|
3522
|
+
*/
|
|
3523
|
+
readonly reactions?: ExtensionReactionsContribution<THostContext>;
|
|
3524
|
+
/**
|
|
3525
|
+
* Automation trigger factory contributed by this extension.
|
|
3526
|
+
*
|
|
3527
|
+
* When present, the runtime calls `createAutomationTriggers(ctx)` during
|
|
3528
|
+
* extension activation and registers the returned
|
|
3529
|
+
* {@link AutomationTriggerType}s with the automation trigger registry.
|
|
3530
|
+
* Trigger `kind` values must be prefixed with the contributing extension's
|
|
3531
|
+
* name; the registry enforces this at contribution time.
|
|
3532
|
+
*
|
|
3533
|
+
* Trigger definitions carry live Zod parameter and event schemas plus a
|
|
3534
|
+
* trusted `activate` factory — they are runtime values and must never be
|
|
3535
|
+
* included in serializable descriptor metadata. Use
|
|
3536
|
+
* {@link createAutomationTriggerDescriptor} to produce the serializable
|
|
3537
|
+
* representation for Builder discovery.
|
|
3538
|
+
*/
|
|
3539
|
+
readonly automationTriggers?: ExtensionAutomationTriggersContribution<THostContext>;
|
|
3502
3540
|
/**
|
|
3503
3541
|
* Declarative transition rules contributed by this extension.
|
|
3504
3542
|
*
|
|
@@ -3851,7 +3889,7 @@ declare const ExtensionDescriptorSchema: z.ZodObject<{
|
|
|
3851
3889
|
name: z.ZodString;
|
|
3852
3890
|
description: z.ZodOptional<z.ZodString>;
|
|
3853
3891
|
}, z.core.$strip>>>>;
|
|
3854
|
-
|
|
3892
|
+
hashTriggers: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3855
3893
|
prefix: z.ZodString;
|
|
3856
3894
|
description: z.ZodOptional<z.ZodString>;
|
|
3857
3895
|
stage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3904,7 +3942,7 @@ declare const ExtensionDescriptorSchema: z.ZodObject<{
|
|
|
3904
3942
|
pages: z.ZodOptional<z.ZodBoolean>;
|
|
3905
3943
|
routes: z.ZodOptional<z.ZodBoolean>;
|
|
3906
3944
|
}, z.core.$strip>>;
|
|
3907
|
-
}, z.core.$
|
|
3945
|
+
}, z.core.$strict>>;
|
|
3908
3946
|
version: z.ZodString;
|
|
3909
3947
|
makaio: z.ZodReadonly<z.ZodObject<{
|
|
3910
3948
|
framework: z.ZodString;
|
|
@@ -3915,8 +3953,8 @@ declare const ExtensionDescriptorSchema: z.ZodObject<{
|
|
|
3915
3953
|
cli: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodString]>>;
|
|
3916
3954
|
}, z.core.$strip>>;
|
|
3917
3955
|
execution: z.ZodOptional<z.ZodEnum<{
|
|
3918
|
-
embedded: "embedded";
|
|
3919
3956
|
detached: "detached";
|
|
3957
|
+
embedded: "embedded";
|
|
3920
3958
|
}>>;
|
|
3921
3959
|
transport: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3922
3960
|
command: z.ZodString;
|
|
@@ -4034,4 +4072,4 @@ interface ExtensionConfigProvider$1 {
|
|
|
4034
4072
|
loadEnabled(name: string): boolean | undefined;
|
|
4035
4073
|
}
|
|
4036
4074
|
//#endregion
|
|
4037
|
-
export { PluginToolCallFormatterInput as $, ContributionManifestSchema as $n, SessionEventActionDeclaration as $t, BootstrapImportResult as A, TrayManifest$1 as An, GatheredEntry as At, LogImportContribution as B, CapabilityToken as Bn, ActionShortcutModifiers as Bt, BootstrapAsset as C, ExtensionManifestSchema as Cn, UiContextValueMap as Ct, BootstrapExportContext as D, StorageDialect$1 as Dn, UiScope$1 as Dt, BootstrapDiscoverContext as E, STORAGE_DIALECTS as En, UiRuntimeNavigationLevel as Et,
|
|
4075
|
+
export { PluginToolCallFormatterInput as $, ContributionManifestSchema as $n, SessionEventActionDeclaration as $t, BootstrapImportResult as A, TrayManifest$1 as An, GatheredEntry as At, LogImportContribution as B, CapabilityToken as Bn, ActionShortcutModifiers as Bt, BootstrapAsset as C, ExtensionManifestSchema as Cn, UiContextValueMap as Ct, BootstrapExportContext as D, StorageDialect$1 as Dn, UiScope$1 as Dt, BootstrapDiscoverContext as E, STORAGE_DIALECTS as En, UiRuntimeNavigationLevel as Et, ExtensionHashTriggersContribution as F, WindowParamSpecSchema as Fn, HashTriggerStage as Ft, LoaderContext as G, AdapterManifest as Gn, ExecuteResult as Gt, ExtensionConfigComponentLoader as H, CapabilityTokenSchema as Hn, EntrypointConfig as Ht, ExtensionNamespaceContribution as I, WindowStyle as In, HashTriggerSuggestResult as It, MakaioWebUiComponentProps as J, ArtifactLifecycleHookManifest as Jn, PickerConfig as Jt, MakaioWebUiAction as K, AdapterManifestSchema as Kn, MessageEventFilter as Kt, ExtensionSessionEventActionsContribution as L, allMigrationsPaths as Ln, ActionCategory as Lt, ExtensionBootstrap as M, WindowManifest as Mn, HashTrigger as Mt, getBootstrapAssetKey as N, WindowManifestSchema as Nn, HashTriggerContext as Nt, BootstrapExportResult as O, StorageManifest as On, UiScopeMap as Ot, AdapterContribution as P, WindowParamSpec as Pn, HashTriggerMetadata as Pt, PluginFormattedToolCallOutput as Q, ContributionManifest as Qn, SessionEventActionContext as Qt, ExtensionToolsContribution as R, dep$1 as Rn, ActionCategoryMap as Rt, MakaioNodeExtension$1 as S, ExtensionManifest as Sn, UiContextSnapshot$1 as St, BootstrapChoice as T, RuntimeRequirementSchema as Tn, UiNavigationLevelMap as Tt, ExtensionConfigComponentProps as U, AdapterClientRef$1 as Un, EventFilter as Ut, ExtensionWorkflowBlocksContribution as V, CapabilityTokenMap as Vn, CreateSessionEventActionResult as Vt, ExtensionFieldTypeLoader as W, AdapterClientRefSchema as Wn, ExecuteContext as Wt, MakaioWebUiRoute as X, ClientManifest as Xn, SelectionChangeContext as Xt, MakaioWebUiLoader as Y, ArtifactLifecycleHookManifestSchema as Yn, PickerOpenContext as Yt, PromisifiedActions as Z, ClientManifestSchema as Zn, SelectionFeedback as Zt, ExtensionArtifactLifecycleHooksContribution as _, CliManifestSchema as _n, TileDeclaration as _t, DetachedTransportSchema as a, ExtensionCliBeforeRunResult as an, ProtocolConfig as ar, PageMode as at, ExtensionRuntimeBootContribution as b, ExtensionDependency as bn, TileRenderers as bt, ExtensionDescriptorBase as c, ExtensionCliInteractiveContext as cn, ProtocolRefSchema as cr, SlotId as ct, ExtensionEntrypoints as d, AdapterDefinitionContract$1 as dn, SessionEventActionManifest as dr, WidgetDeclaration as dt, SessionEventActionOptions as en, HashTriggerManifest as er, PluginTransformedContent as et, ExtensionEntrypointsSchema as f, AdapterProviderDefinitionContract$1 as fn, SessionEventActionManifestSchema as fr, WidgetDefinition as ft, ArtifactLifecycleHooksContributionContext as g, CliManifest as gn, BrowserEntrypointSchema$1 as gr, TileCapabilities as gt, safeParseExtensionDescriptor$1 as h, CliArgManifestSchema as hn, BrowserEntrypoint as hr, WidgetSize$1 as ht, DetachedTransportConfig as i, ExtensionCliBeforeRunContext as in, LogImporterManifestSchema as ir, PageDeclaration as it, BootstrapResult as j, TrayManifestSchema as jn, HashSuggestion as jt, BootstrapImportContext as k, StorageManifestSchema as kn, GatheredContext as kt, ExtensionDescriptorParseResult as l, ExtensionCliOutputWriter as ln, ProviderManifest as lr, SlotPlacementDeclaration as lt, parseExtensionDescriptor$1 as m, CliArgManifest as mn, UiSurfaceFlagsSchema as mr, WidgetRenderers as mt, parseExtensionConfig as n, WhenContext as nn, HashTriggerStageManifest as nr, ToolCallFormatterDeclaration as nt, EmbeddedDescriptor as o, ExtensionCliContribution as on, ProtocolConfigSchema as or, SlotContentDeclaration as ot, isDetachedDescriptor$1 as p, AdapterProviderRef$1 as pn, UiSurfaceFlags as pr, WidgetProps as pt, MakaioWebUiActions as q, ArtifactLifecycleHookEventSchema as qn, MessageRole as qt, DetachedDescriptor as r, ExtensionRuntimeOwnership as rn, LogImporterManifest as rr, PageComponentProps as rt, ExtensionDescriptor$1 as s, ExtensionCliHandlerContext as sn, ProtocolRef as sr, SlotDeclaration as st, ExtensionConfigProvider$1 as t, StructuralEventFilter as tn, HashTriggerManifestSchema as tr, PluginTransformedContentType as tt, ExtensionDescriptorSchema as u, ExtensionCliSubcommandEntry as un, ProviderManifestSchema as ur, WidgetSize as ut, ExtensionContributionProcessor$1 as v, CliSubcommandManifest as vn, TileIconLoader as vt, BootstrapAssetKey as w, RuntimeRequirement as wn, UiNavigationLevel$1 as wt, MakaioExtension$1 as x, ExtensionDependencySchema as xn, UiContextDimension as xt, ExtensionRuntimeBootContext as y, CliSubcommandManifestSchema as yn, TileProps as yt, ExtensionUiContribution as z, primaryMigrationsPath$1 as zn, ActionShortcut as zt };
|