@makaio/framework 1.0.0-dev-1785407933303 → 1.0.0-dev-1786014320559
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +4 -3
- package/dist/{account-identity-DFx8pwKL.mjs → account-identity-DGpXd8h_.mjs} +1 -1
- package/dist/adapter-BkdJaOOG.mjs +1 -0
- package/dist/adapter-subsystem/index.d.mts +138 -6
- 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 +24 -24
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +379 -812
- 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/agent-namespace-D51PODFf.mjs +1 -0
- package/dist/{ajv-DD3SIL2i.mjs → ajv-L5fKxaia.mjs} +2 -2
- package/dist/artifact-k3veR4Yx.mjs +1 -0
- package/dist/attach-error-BSlc7JfL.mjs +1 -0
- package/dist/{auth-DGEdiHF6.mjs → auth-A1K_7q-8.mjs} +1 -1
- package/dist/authority-state-bootstrap-YwtEImIB.mjs +1 -0
- package/dist/automation-trigger-CuSdQwir.mjs +1 -0
- package/dist/await-trigger-ph1S0zVI.mjs +1 -0
- package/dist/bus/index.d.mts +17 -3
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-BIj0_aG6.mjs +1 -0
- package/dist/bus-CqgrphNE.mjs +2 -0
- package/dist/{canonical-model-BAytQ4NV.mjs → canonical-model-DJASlL4m.mjs} +1 -1
- package/dist/{capabilities-BQEp34ir.mjs → capabilities-Bqckjh7G.mjs} +1 -1
- package/dist/{client-DbS847wW.mjs → client-BL5__WT0.mjs} +1 -1
- package/dist/clients/index.d.mts +7 -7
- 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-74fFeBha.mjs → compression-BbttSqm8.mjs} +1 -1
- package/dist/{config-namespace-TVX-hG4I.mjs → config-namespace-CyzeLWSg.mjs} +1 -1
- package/dist/{context-resolution-DNRkyQto.d.mts → context-resolution-CW0ya4QO.d.mts} +14 -14
- 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/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 +161 -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-BH-wKsWI.d.mts +35 -0
- package/dist/core/index.d.mts +60 -1
- package/dist/core/index.mjs +1 -1
- package/dist/definition-BYgHlmMw.d.mts +375 -0
- package/dist/{definition-CJfiv8xm.mjs → definition-CDg-Jq1T.mjs} +1 -1
- package/dist/{detached-extension-handle-Ddfquy5_.mjs → detached-extension-handle-DKd17UB6.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/meta/_journal.json +21 -0
- package/dist/{execution-attempt-repository-DWXKY41_.d.mts → execution-attempt-repository-DFyAnchJ.d.mts} +1 -1
- package/dist/{execution-target-Cf645pDj.mjs → execution-target-ByNwZh5-.mjs} +1 -1
- package/dist/extension-DMdmj9gi.mjs +1 -0
- package/dist/extension-DUmibvMk.mjs +1 -0
- package/dist/extension-context-CqfddWXs.d.mts +295 -0
- package/dist/{extension-discovery-CQRdbVQ6.d.mts → extension-discovery-Fhps4icD.d.mts} +2 -0
- package/dist/{extension-namespace-Yu41YepM.mjs → extension-namespace-B554RmCp.mjs} +1 -1
- package/dist/extension-package-provenance-Dh_-Z-tE.mjs +1 -0
- package/dist/{filesystem-service-DlP2HfDg.mjs → filesystem-service-FAtd9gWH.mjs} +1 -1
- package/dist/framework-packages-D_2hBZ-p.mjs +1 -0
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-1yCVCk8s.mjs → globby-BBLuT_vy.mjs} +1 -1
- package/dist/handlers-2yd00VEq.mjs +57 -0
- package/dist/{harness-DpwsFsE7.mjs → harness-KxbWGL4I.mjs} +1 -1
- package/dist/{hook-responses-Dh1PWXqJ.d.mts → hook-responses-CQZIv3L3.d.mts} +2 -293
- package/dist/{index-HsTxm-R3.d.mts → index-3eUIRy7T.d.mts} +250 -20
- package/dist/{index-brqfk9JQ.d.mts → index-B4xdTT3c.d.mts} +6 -6
- package/dist/{index-CmFbzuiW.d.mts → index-B5op6AsV.d.mts} +72 -62
- package/dist/{index-CMgLxw14.d.mts → index-B6GOuxVy2.d.mts} +18 -18
- package/dist/index-BFhJe-Sb.d.mts +302 -0
- package/dist/{index-fmR2JNgJ.d.mts → index-BQprJNA_.d.mts} +4 -4
- package/dist/{index-EjsSBQXy2.d.mts → index-BSQ30wYP.d.mts} +1 -1
- package/dist/{index-Hk9mpC3o.d.mts → index-BSbGB23v.d.mts} +8 -8
- package/dist/{index-BbF2gRwd.d.mts → index-BiAYXjgM.d.mts} +41 -41
- package/dist/{index-sFsAqeK1.d.mts → index-ByZi9bml.d.mts} +7616 -4158
- package/dist/{index-CMJZ2Z8m.d.mts → index-C7HcDpHE.d.mts} +4 -0
- package/dist/{index-BskPjMet.d.mts → index-CB4aIUoF.d.mts} +16 -16
- package/dist/{index-B-xrJCwa.d.mts → index-CDusRXio.d.mts} +136 -137
- package/dist/{index-CUvNKYkV.d.mts → index-CSN_0sCo.d.mts} +19 -2
- package/dist/{index-BAXkicoQ.d.mts → index-C__EQfKa.d.mts} +1 -1
- package/dist/{index-BfLulUMy2.d.mts → index-CqQYgsbB.d.mts} +1659 -217
- package/dist/{index-DF9ffhVe.d.mts → index-CwDiyJkJ.d.mts} +327 -756
- package/dist/{index-GHASUiem.d.mts → index-DBadVauL.d.mts} +1 -1
- package/dist/{index-gUhidukN.d.mts → index-DI7-tIL3.d.mts} +299 -2
- package/dist/index-DP3o_13U.d.mts +165 -0
- package/dist/{index-DSBT83c0.d.mts → index-DcYAAJ0V.d.mts} +24 -3
- package/dist/{index-DqkjRTr7.d.mts → index-Dch_AxUg.d.mts} +77 -39
- package/dist/{index-XZyMxxnU.d.mts → index-DcqSUsX6.d.mts} +39 -83
- package/dist/{index-B0Kf_OWi.d.mts → index-DgOfgjx3.d.mts} +1 -1
- package/dist/{index-Ds5_rDEJ.d.mts → index-DwLRZscE.d.mts} +1 -12
- package/dist/{index-DkiTJM5p.d.mts → index-DxYDRoDE2.d.mts} +17 -3
- package/dist/{index-CRvpVIqA.d.mts → index-OsbtyMgx2.d.mts} +10 -1
- package/dist/{index-BaZeoZoS.d.mts → index-bIe_57cL.d.mts} +1 -1
- package/dist/{json-value-Brslhqbm.d.mts → json-value-C1RGgS0a.d.mts} +16 -1
- package/dist/{json-value-DmU8ibo_.mjs → json-value-D57aJhVn.mjs} +1 -1
- 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-C7-s68uf.mjs → lib-B_rJ6r0T.mjs} +1 -1
- package/dist/{lib-DErgth_E.mjs → lib-CnOAtohU.mjs} +1 -1
- package/dist/load-extensions-CW9uzNR5.mjs +1 -0
- package/dist/{load-extensions-BxsDB87B.d.mts → load-extensions-DUpaMQ7G.d.mts} +17 -13
- package/dist/{materialization-Jd198K3y.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-BqxtpNAn.mjs → namespace-B7bntOB8.mjs} +1 -1
- package/dist/{namespace-CWUDFGOy.mjs → namespace-BFqkUTJp.mjs} +1 -1
- package/dist/{namespace-D-WH2uYV2.d.mts → namespace-CAy4P5mW.d.mts} +8 -8
- package/dist/{namespace-B8uKAzWJ.mjs → namespace-CFjdyNXG.mjs} +1 -1
- package/dist/{namespace-DV-Hr9sZ.d.mts → namespace-ChnRTUG4.d.mts} +11 -1
- package/dist/namespace-CxrOLeeP.mjs +1 -0
- package/dist/{namespace-g_mbIZq_.d.mts → namespace-DSlfFhB1.d.mts} +410 -26
- package/dist/{namespace-Dkod-w11.d.mts → namespace-DwZwGXgF.d.mts} +4 -0
- package/dist/{namespace-BXvD9t0I.d.mts → namespace-Rge9mMI-.d.mts} +27 -19
- package/dist/{native-session-supervisor-DRx0MX-d.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-BHCv-l2O.d.mts → orchestrator-shared-B-KRW1Z0.d.mts} +1 -0
- package/dist/orchestrator-shared-CTCZc6Vl.mjs +1 -0
- package/dist/ownership-memory-handler-Bblp93YC.mjs +1 -0
- package/dist/{package-DWMxGfzK.d.mts → package-Bf3hyuzs.d.mts} +234 -84
- package/dist/package-CBdvjyyZ.mjs +1 -0
- package/dist/package-CddkNbZI.mjs +1 -0
- package/dist/package-ypz4rKvn.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/{profile-BTAI31Nt.mjs → profile-BtznZlq3.mjs} +1 -1
- package/dist/{provider-context-Dq53Cgzz.mjs → provider-context-BrLZYnDW.mjs} +1 -1
- package/dist/{provider-context-PZIQWcqQ.mjs → provider-context-Dh-VOOYF.mjs} +1 -1
- package/dist/reaction-BS0k4eNN.mjs +1 -0
- package/dist/{registry-wfF2uTty.mjs → registry-BO_bOoky.mjs} +2 -2
- package/dist/{resolved-DZgqql2Z.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 +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 -4
- 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-Dd-e89MO.mjs → schema-DBG7Jq5_.mjs} +1 -1
- package/dist/{schema-DKUb4rkr.d.mts → schema-DKTzriEY.d.mts} +519 -9
- package/dist/{schemas-B5eUUi6u.d.mts → schemas-9qeeHGBf.d.mts} +8 -8
- package/dist/{schemas-CRB2O5zo.mjs → schemas-BqD8LlQw.mjs} +1 -1
- package/dist/{schemas-DaHQzpgm.mjs → schemas-CsjN7cmM.mjs} +1 -1
- package/dist/schemas-DSkBOdx_.mjs +1 -0
- package/dist/schemas-DplrlAyR.mjs +1 -0
- package/dist/{schemas-DuIlOWR3.d.mts → schemas-VbB1FTxx.d.mts} +4 -0
- package/dist/scoped-bus-ClwTWqX8.mjs +1 -0
- package/dist/{selection-BNwTKEVT.mjs → selection-7Ku8DBnh.mjs} +1 -1
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +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 +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/codebase/index.d.mts +2 -2
- package/dist/services/codebase/namespace.d.mts +1 -1
- package/dist/services/codebase/schemas.d.mts +1 -1
- package/dist/services/compression/index.d.mts +2 -2
- package/dist/services/compression/namespace.d.mts +1 -1
- package/dist/services/compression/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +4 -4
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/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 +2 -2
- package/dist/services/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +449 -83
- 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 +12 -4
- package/dist/services/session/testing/index.mjs +36 -4
- 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 +8 -8
- 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-BMy2kRpX.mjs +90 -0
- package/dist/session-Cipx34j6.mjs +1 -0
- package/dist/{session-lineage-B_JW5LpF.d.mts → session-lineage-B_PVa1XN.d.mts} +1 -1
- package/dist/shared-BFVuCDPx.mjs +1 -0
- package/dist/{skill-BR6rkfLe.mjs → skill-C1D51nhh.mjs} +1 -1
- package/dist/{src-DD0v-nIj.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 +42 -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-BVgN9Q1r.mjs +1 -0
- package/dist/{tools-PdG9fO1M.mjs → tools-DxwHox1a.mjs} +1 -1
- package/dist/{transition-DwqL8W9V.d.mts → transition-BF1nevaC.d.mts} +7 -34
- package/dist/{types-DMLDHFR9.d.mts → types-BNjPhj_a.d.mts} +1 -1
- package/dist/{types-DR60yv6W.d.mts → types-CijlWGwb.d.mts} +1575 -157
- package/dist/types-ClpEaoAm.d.mts +2917 -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 +77 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/{version-CoCeMxDT.mjs → version-BfNnVAGr.mjs} +1 -1
- package/dist/{view-builder-qp51cMWh.d.mts → view-builder-Bc9dx6jF.d.mts} +1 -1
- package/dist/{visibility-qhGWmpSJ.mjs → visibility-Dl1o2I01.mjs} +1 -1
- package/dist/{worker-node-Bl9_vqYi.mjs → worker-node-BDOYPEpi.mjs} +1 -1
- package/dist/{worker-node-DZTuT1DS.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 +161 -442
- 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-DM0fN_eP.mjs} +1 -1
- package/dist/workflow-worker-DARC7UZl.mjs +1 -0
- package/dist/zod-json-schema-BAGAFfCN.mjs +1 -0
- package/package.json +29 -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/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/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-Cm09dXL4.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/workflow-BfDbgtIQ.mjs +0 -1
- package/dist/workflow-worker-BN9XPxQO.mjs +0 -1
- package/dist/{adapter-auth-runtime-DO-FVTXg.mjs → adapter-auth-runtime-D9Lnl7cc.mjs} +0 -0
- package/dist/{adapter-binding-DQchUtrK.d.mts → adapter-binding-B-FBoCys.d.mts} +0 -0
- package/dist/{attempt-record-codec-CqO1_XnE.mjs → attempt-record-codec-DaFLKR5C.mjs} +0 -0
- package/dist/{base-orchestrator-BilsQNW1.d.mts → base-orchestrator-D9u4NyiM.d.mts} +0 -0
- package/dist/{capability-service-BqiLlRGA.mjs → capability-service-CJHNkjvm.mjs} +0 -0
- package/dist/{client-B--e2qcU.d.mts → client-4ihewPUm.d.mts} +0 -0
- package/dist/{client-binary-version-verifier-taewmKTY.mjs → client-binary-version-verifier-DJajc_Ff.mjs} +0 -0
- package/dist/{client-binary-version-verifier-CgjM_vGF.d.mts → client-binary-version-verifier-jDDZ64Ah.d.mts} +0 -0
- package/dist/{clients-namespace-DfxjG2ZP.d.mts → clients-namespace-DFWuUawf.d.mts} +0 -0
- package/dist/{config-namespace-BCqvufbD.d.mts → config-namespace-D1kyZj0B.d.mts} +0 -0
- package/dist/{create-static-mount-bbQhTt6W.mjs → create-static-mount-9tnGpIeK.mjs} +0 -0
- package/dist/{cross-spawn-B57KZuns.mjs → cross-spawn-BIgueAqr.mjs} +0 -0
- package/dist/{cursor-storage-DIFK_9hg.mjs → cursor-storage-ROWfiTh1.mjs} +0 -0
- package/dist/{definition-gnKgXU91.d.mts → definition-DB-kKc0d.d.mts} +0 -0
- package/dist/{definitions-xrrY0wgz.mjs → definitions-CF6YmEhL.mjs} +0 -0
- package/dist/{descriptor-to-package-DvF08krT.mjs → descriptor-to-package-BecVCopf.mjs} +0 -0
- package/dist/{drizzle-z_0SiGY8.mjs → drizzle-CPv3vdTE.mjs} +0 -0
- package/dist/{esm-CltRnX8_.mjs → esm-CBFWM8u_.mjs} +0 -0
- package/dist/{event-CmVjR6Ib.mjs → event-DR8U9Efx.mjs} +0 -0
- package/dist/{facet-BCI00njh.mjs → facet-DVsW12iF.mjs} +0 -0
- package/dist/{filesystem-service-CQ9yVkSz.d.mts → filesystem-service-Cm2RHKBa.d.mts} +0 -0
- package/dist/{handler-Cbv9FqDO.mjs → handler-Bqlk-6BY.mjs} +0 -0
- package/dist/{host-Caq6ZfSJ.mjs → host-k5yoyKHg.mjs} +0 -0
- package/dist/{identity-D6guMtmi.mjs → identity-DC3Pk0ps.mjs} +0 -0
- package/dist/{index-dtsLKOID.d.mts → index-42UdYStR.d.mts} +0 -0
- package/dist/{index-DR40QWlw.d.mts → index-BJAB-BW_.d.mts} +0 -0
- package/dist/{index-Dm1nUxCF.d.mts → index-BJMezANn.d.mts} +0 -0
- package/dist/{index-Cv-o5Krs.d.mts → index-BRCrFirq.d.mts} +0 -0
- package/dist/{index-BVRQEpAg.d.mts → index-BRzHs7Bx.d.mts} +6 -6
- /package/dist/{index-vA--0lOM.d.mts → index-BVcQcphK.d.mts} +0 -0
- /package/dist/{index-ye0oklfU.d.mts → index-BcvqDfcN.d.mts} +0 -0
- /package/dist/{index-CGZQVTid.d.mts → index-BeENojSx2.d.mts} +0 -0
- /package/dist/{index-DjgLchuQ.d.mts → index-Beo_Ik8-.d.mts} +0 -0
- /package/dist/{index-sS6KUlrx.d.mts → index-BgGe9WZz.d.mts} +0 -0
- /package/dist/{index-CWHfOz6d.d.mts → index-CK3f0bAL.d.mts} +0 -0
- /package/dist/{index-DZunhZec.d.mts → index-CQuRTeRa.d.mts} +0 -0
- /package/dist/{index-jTaAHsul.d.mts → index-CRmE88hi.d.mts} +0 -0
- /package/dist/{index-CjdRdsd0.d.mts → index-CvW9_SzR.d.mts} +0 -0
- /package/dist/{index-ByKi34v5.d.mts → index-CxSSdIZz.d.mts} +0 -0
- /package/dist/{index-vcSj12YQ.d.mts → index-E4SET1AA.d.mts} +0 -0
- /package/dist/{index-DN4NOCqN2.d.mts → index-Ol9RBB0W2.d.mts} +0 -0
- /package/dist/{index-BIdsFcQs2.d.mts → index-aoxdnhJ42.d.mts} +0 -0
- /package/dist/{index-SsBHjUqA.d.mts → index-nydhGvXa.d.mts} +0 -0
- /package/dist/{jsonl-transport-bQl3JwIu.mjs → jsonl-transport-Bp_6pB2a.mjs} +0 -0
- /package/dist/{lib-DOBXZmYX.mjs → lib-Bwdd2m81.mjs} +0 -0
- /package/dist/{model-registry-CmgcPDH3.mjs → model-registry-Y854mUml.mjs} +0 -0
- /package/dist/{model-registry-xyBKSye-.mjs → model-registry-yURX738J.mjs} +0 -0
- /package/dist/{modes-BheyN7SS.mjs → modes-DmUsjHdV.mjs} +0 -0
- /package/dist/{namespace-HO2J9sO8.mjs → namespace-B9FEGuEu.mjs} +0 -0
- /package/dist/{namespace-jDhZjw-i.d.mts → namespace-Bi3CmYQy.d.mts} +0 -0
- /package/dist/{namespace-GPA7zots.d.mts → namespace-BusZERU8.d.mts} +0 -0
- /package/dist/{namespace-BOkKoq34.d.mts → namespace-ByP1Iipi.d.mts} +0 -0
- /package/dist/{namespace-YytVKIgI.d.mts → namespace-C1D77w7U.d.mts} +0 -0
- /package/dist/{namespace-CErHuXtb.d.mts → namespace-C6CVEGH8.d.mts} +0 -0
- /package/dist/{namespace-C-9si-fV.mjs → namespace-CfIW0hpQ.mjs} +0 -0
- /package/dist/{namespace-YxU1xf-K.mjs → namespace-CkBbNFSU.mjs} +0 -0
- /package/dist/{namespace-DWCEo-9M.d.mts → namespace-DX1Ec15L.d.mts} +0 -0
- /package/dist/{namespace-CWGKCNZm.mjs → namespace-DbNWsPFY.mjs} +0 -0
- /package/dist/{namespace-Cv1RFP7n.d.mts → namespace-Dgg0uoe6.d.mts} +0 -0
- /package/dist/{namespace-tGRAod3o.d.mts → namespace-s2y_NFKf.d.mts} +0 -0
- /package/dist/{namespace-Blp4c8GK.d.mts → namespace-yREpGJgG.d.mts} +0 -0
- /package/dist/{out-CvjtANXN.mjs → out-DrhwCgqM.mjs} +0 -0
- /package/dist/{packages-DtEEP0Vt.mjs → packages-FBv3fAOR.mjs} +0 -0
- /package/dist/{packages-BZ6pzFIq.d.mts → packages-N3-2Kl-Y.d.mts} +0 -0
- /package/dist/{platform-Bv8llU9c.mjs → platform-BrsMv_S3.mjs} +0 -0
- /package/dist/{provider-operation-Cxoe2SUr.d.mts → provider-operation-DJ_TLZFf.d.mts} +0 -0
- /package/dist/{providers-Co5UszRH.mjs → providers-CCcn4Ndp.mjs} +0 -0
- /package/dist/{providers-namespace-DjFkmvBR.d.mts → providers-namespace-DeJBh6MP.d.mts} +0 -0
- /package/dist/{quick-lru-CrOpWwrf.mjs → quick-lru-uwB0hP-y.mjs} +0 -0
- /package/dist/{schema-introspection-DgWQCpwx.mjs → schema-introspection-C1wvklj9.mjs} +0 -0
- /package/dist/{schema-Db-y-09L.mjs → schema-jIapW8Kb.mjs} +0 -0
- /package/dist/{schemas-CR8hSqTy.d.mts → schemas-B7zo7Zcx.d.mts} +0 -0
- /package/dist/{schemas-CqRm0i9a.mjs → schemas-BNdiVBWh.mjs} +0 -0
- /package/dist/{schemas-B1NWNASS.d.mts → schemas-C-Bm6Oac.d.mts} +0 -0
- /package/dist/{schemas-BO7uOum6.d.mts → schemas-CD0wOQxx.d.mts} +0 -0
- /package/dist/{schemas-N6x2z7Lf.d.mts → schemas-CeUI2i5j.d.mts} +0 -0
- /package/dist/{schemas-CwbYk_kZ.d.mts → schemas-Cg-Kwp8c.d.mts} +0 -0
- /package/dist/{schemas-BtZqovRH.d.mts → schemas-Cv3rR9Sz.d.mts} +0 -0
- /package/dist/{schemas-tDf_WiC8.mjs → schemas-CvHFbzdy.mjs} +0 -0
- /package/dist/{schemas-BsVYZviy.d.mts → schemas-DZH9lpxs.d.mts} +0 -0
- /package/dist/{schemas-BGExwp3j.mjs → schemas-DgwEVUt-.mjs} +0 -0
- /package/dist/{schemas-Bfxskx_2.mjs → schemas-mLpOfMoN.mjs} +0 -0
- /package/dist/{schemas-CQyRBqD6.d.mts → schemas-qA279_j_.d.mts} +0 -0
- /package/dist/{schemas-miYxK_Z1.d.mts → schemas-sMoRnBdZ.d.mts} +0 -0
- /package/dist/{semver-DlM8znk4.mjs → semver-DTXuyLcK.mjs} +0 -0
- /package/dist/{server-lifecycle-Dsq56aqC.d.mts → server-lifecycle-C_8iKgat.d.mts} +0 -0
- /package/dist/{server-lifecycle-kmQ5PUDv.mjs → server-lifecycle-DKx_fWlq.mjs} +0 -0
- /package/dist/{shared-schemas-DXwyMCwZ.mjs → shared-schemas-aahW97QW.mjs} +0 -0
- /package/dist/{src-CCu8TwL6.mjs → src-DHqsl5Pg.mjs} +0 -0
- /package/dist/{storage-namespace-BSrv0vXR.mjs → storage-namespace-Dz2jsssp.mjs} +0 -0
- /package/dist/{storage-namespace-dfywhXR3.d.mts → storage-namespace-Tf3P5yJ5.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-CDef0E20.mjs} +0 -0
- /package/dist/{supports-color-DUugCQsK.mjs → supports-color-i7OTnKcZ.mjs} +0 -0
- /package/dist/{telemetry-Pr3oP2rk.mjs → telemetry-BvCBUjFg.mjs} +0 -0
- /package/dist/{timeout-DWDhddRJ.mjs → timeout-B0nYjLc8.mjs} +0 -0
- /package/dist/{tray-menu-service-BBLa-Rcv.mjs → tray-menu-service-Deo6yyP8.mjs} +0 -0
- /package/dist/{types-BrcjaNPZ.d.mts → types-CNS55jvt.d.mts} +0 -0
- /package/dist/{types-b54n1o57.d.mts → types-Ce6LL25v.d.mts} +0 -0
- /package/dist/{types-DHmPneIO.d.mts → types-xCdGghb2.d.mts} +0 -0
- /package/dist/{ui-config-CyCdlns_.mjs → ui-config-BIyGzMNL.mjs} +0 -0
- /package/dist/{variant-krjlTdJt.mjs → variant-B4uWdxW7.mjs} +0 -0
- /package/dist/{window-registry-BDnZLPVx.d.mts → window-registry-BLtVx3Iw.d.mts} +0 -0
- /package/dist/{window-registry-I-imZHV_.mjs → window-registry-CoBJq3u4.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-
|
|
1
|
+
import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-BsnYAPot.mjs";
|
|
2
2
|
import * as _$zod from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { r as ExecutionTarget } from "./schemas-CeUI2i5j.mjs";
|
|
1
2
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
2
|
-
import { IMakaioSession, MakaioSessionAgent, Message, MessageInput, MessageOutcome, ResponseSchemaDescriptor, SessionContext, TurnInitiator } from "@makaio/framework/contracts";
|
|
3
|
+
import { IMakaioSession, MakaioSessionAgent, Message, MessageInput, MessageOutcome, ReasoningLevelMap, ResponseSchemaDescriptor, SessionContext, TurnInitiator } from "@makaio/framework/contracts";
|
|
3
4
|
|
|
4
5
|
//#region services/core/src/session/entities/turn.d.ts
|
|
5
6
|
/**
|
|
@@ -541,6 +542,198 @@ declare class SessionTurnManager {
|
|
|
541
542
|
private findTurnForCompletion;
|
|
542
543
|
}
|
|
543
544
|
//#endregion
|
|
545
|
+
//#region services/core/src/session/utils/resolution.d.ts
|
|
546
|
+
/**
|
|
547
|
+
* Resolve adapterName → adapterId for bus routing.
|
|
548
|
+
* Queries the adapters table for a local enabled instance.
|
|
549
|
+
* @param bus - Bus instance
|
|
550
|
+
* @param adapterName - Adapter type name
|
|
551
|
+
* @param machineId - Optional machine ID for deterministic local resolution
|
|
552
|
+
* @returns Canonical adapter ID for bus routing
|
|
553
|
+
* @throws if no enabled instance found for this adapterName
|
|
554
|
+
*/
|
|
555
|
+
declare function resolveAdapterId(bus: IMakaioBus, adapterName: string, machineId?: string): Promise<string>;
|
|
556
|
+
/**
|
|
557
|
+
* The adapter instance an ownership act runs against, together with the machine
|
|
558
|
+
* whose namespace it acts in.
|
|
559
|
+
*
|
|
560
|
+
* **One value, because it is one key.** The ownership key is
|
|
561
|
+
* `(machine, adapter instance, provider session)` and an instance ID is derived
|
|
562
|
+
* from `(machineId, adapterName)`, so an act that took its instance from one
|
|
563
|
+
* source and its machine from another files itself under a pair nobody else
|
|
564
|
+
* computes. Carrying both halves in one object is what makes "instance and
|
|
565
|
+
* namespace come from one identity" structural rather than a rule every call
|
|
566
|
+
* site has to remember.
|
|
567
|
+
*
|
|
568
|
+
* `machineId` is absent for exactly one caller shape — one that named no machine
|
|
569
|
+
* and is therefore not acting for any: it gets the unscoped answer, the
|
|
570
|
+
* authority acts under its own composed identity, and there are no two
|
|
571
|
+
* identities to mix.
|
|
572
|
+
*/
|
|
573
|
+
interface OwnedAdapterInstance {
|
|
574
|
+
/** Live adapter instance every act of the attempt addresses. */
|
|
575
|
+
readonly adapterId: string;
|
|
576
|
+
/** Machine whose namespace those acts are filed under, or `undefined` when the caller named none. */
|
|
577
|
+
readonly machineId?: string;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* An owned instance whose machine is named.
|
|
581
|
+
*
|
|
582
|
+
* The shape a path that performs a **keyed** ownership act needs, stated as a
|
|
583
|
+
* type so the requirement is checked rather than remembered: a keyed act files
|
|
584
|
+
* itself under `(machine, instance, provider session)`, so a path that can reach
|
|
585
|
+
* one may not hold an instance whose machine is unnamed. Wave 3 left exactly
|
|
586
|
+
* that hole — a fresh lead start reserves keyless, which hides the machine's
|
|
587
|
+
* absence, and then settles on the provider session the connector confirms,
|
|
588
|
+
* which does not.
|
|
589
|
+
*/
|
|
590
|
+
type MachineScopedAdapterInstance = OwnedAdapterInstance & {
|
|
591
|
+
readonly machineId: string;
|
|
592
|
+
};
|
|
593
|
+
/** What a caller knows about the instance it wants, before it is resolved. */
|
|
594
|
+
interface OwnedAdapterInstanceTarget {
|
|
595
|
+
/** Adapter type name the instance belongs to. */
|
|
596
|
+
readonly adapterName: string;
|
|
597
|
+
/**
|
|
598
|
+
* Instance the caller named itself, when it named one.
|
|
599
|
+
*
|
|
600
|
+
* Only usable together with {@link OwnedAdapterInstanceTarget.machineId}: the
|
|
601
|
+
* derivation is one-way, so a named instance whose machine is unnamed is half
|
|
602
|
+
* an identity, and half an identity is worse than none.
|
|
603
|
+
*/
|
|
604
|
+
readonly adapterId?: string;
|
|
605
|
+
/**
|
|
606
|
+
* Machine every act of this attempt names, or `undefined` when the caller
|
|
607
|
+
* names none.
|
|
608
|
+
*/
|
|
609
|
+
readonly machineId?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Instance this agent was last known to live on, offered as a fallback for the
|
|
612
|
+
* unscoped form only.
|
|
613
|
+
*
|
|
614
|
+
* A persisted instance goes stale across a runtime restart or a failover, so
|
|
615
|
+
* it is never preferred — but for a caller that names no machine it beats
|
|
616
|
+
* failing a whole recovery because a registry lookup was momentarily
|
|
617
|
+
* unavailable, and it cannot mix two identities because there is only one.
|
|
618
|
+
*/
|
|
619
|
+
readonly storedAdapterId?: string;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Resolve the instance an attempt addresses **and** the machine it acts for, or
|
|
623
|
+
* answer that this runtime may not act at all.
|
|
624
|
+
*
|
|
625
|
+
* One seam for a rule that was split in three: a fresh resolution for every act
|
|
626
|
+
* (a persisted instance goes stale across a restart or a failover), the machine
|
|
627
|
+
* carried alongside it, and the refusal when the two cannot be produced
|
|
628
|
+
* together. Reserving against one instance and dispatching to another reserves
|
|
629
|
+
* in a namespace the dispatch never uses, and reserving under machine X while
|
|
630
|
+
* dispatching to machine R's instance builds a key no other actor computes — it
|
|
631
|
+
* collides with nothing, so it protects nothing, and the runtime that really
|
|
632
|
+
* owns that instance claims the same provider session beside it.
|
|
633
|
+
*
|
|
634
|
+
* **The three answers, and why each is the honest one:**
|
|
635
|
+
*
|
|
636
|
+
* - **A named instance with its machine** is returned unresolved. The caller
|
|
637
|
+
* already holds both halves from one source — the selection schema refuses the
|
|
638
|
+
* pair any other way — so there is nothing to look up and nothing to second-guess.
|
|
639
|
+
* - **A named instance without a machine** is `undefined`. This is the handler-side
|
|
640
|
+
* half of the schema's refinement, and it is needed as well as the schema:
|
|
641
|
+
* the test bus does not validate, and defaulting to this runtime's own identity
|
|
642
|
+
* here is precisely the silent mis-key the refinement exists to prevent.
|
|
643
|
+
* - **No named instance** derives one. With a machine named, a derivation that
|
|
644
|
+
* cannot answer is `undefined` — the stored instance may not stand in, because
|
|
645
|
+
* the machine it belongs to cannot be recovered from it. With no machine named,
|
|
646
|
+
* the attempt is unscoped in every act, so the stored instance is an honest
|
|
647
|
+
* fallback.
|
|
648
|
+
*
|
|
649
|
+
* `undefined` means *this runtime may not act for that machine*, never *this
|
|
650
|
+
* failed*. Translating it is the caller's job, because only the caller knows
|
|
651
|
+
* what its own refusal looks like: a send defers the agent, a restart reports a
|
|
652
|
+
* non-native recovery, a start refuses to dispatch.
|
|
653
|
+
* @param bus - Bus the lookup is issued on.
|
|
654
|
+
* @param target - What the caller knows about the instance and the machine it acts for.
|
|
655
|
+
* @returns Both halves of the key, or `undefined` when this runtime may not act for that machine.
|
|
656
|
+
*/
|
|
657
|
+
declare function resolveOwnedAdapterInstance(bus: IMakaioBus, target: OwnedAdapterInstanceTarget): Promise<OwnedAdapterInstance | undefined>;
|
|
658
|
+
/**
|
|
659
|
+
* Resolve supported reasoning levels for a model from provider definitions.
|
|
660
|
+
*
|
|
661
|
+
* Looks up the provider config by ID, finds the provider definition it belongs to,
|
|
662
|
+
* then finds the model's `supportedReasoningLevels` in the provider's `availableModels`
|
|
663
|
+
* catalog.
|
|
664
|
+
* @param bus - Bus instance for RPC calls
|
|
665
|
+
* @param providerConfigId - Canonical provider config ID (ProviderConfigRecord.id)
|
|
666
|
+
* @param model - Model identifier to look up in the provider's catalog
|
|
667
|
+
* @returns Object with `supportedReasoningLevels` when found, or `undefined` when not resolvable
|
|
668
|
+
*/
|
|
669
|
+
declare function resolveModelCapabilities(bus: IMakaioBus, providerConfigId: string | undefined, model: string | undefined): Promise<{
|
|
670
|
+
supportedReasoningLevels?: ReasoningLevelMap;
|
|
671
|
+
} | undefined>;
|
|
672
|
+
/**
|
|
673
|
+
* Resolves the effective execution target for a session.
|
|
674
|
+
* Priority: explicit executionTargetId → system default (local).
|
|
675
|
+
* @param bus - Makaio bus instance
|
|
676
|
+
* @param params - Resolution parameters from session context
|
|
677
|
+
* @returns Resolved execution target
|
|
678
|
+
*/
|
|
679
|
+
declare function resolveExecutionTarget(bus: IMakaioBus, params: {
|
|
680
|
+
executionTargetId?: string;
|
|
681
|
+
}): Promise<ExecutionTarget>;
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region services/core/src/session/handlers/session-start-error.d.ts
|
|
684
|
+
/**
|
|
685
|
+
* Why a reserved start could not be completed, as a value the caller can branch
|
|
686
|
+
* on.
|
|
687
|
+
*
|
|
688
|
+
* Every member names a *modeled* outcome of the ownership seam, not a bug: a
|
|
689
|
+
* start that reaches a live connector can still be refused ownership of what
|
|
690
|
+
* that connector is talking to, and the caller has to be told which of those
|
|
691
|
+
* happened rather than being handed a message to match on.
|
|
692
|
+
*/
|
|
693
|
+
type SessionStartFailureCode = /** The adapter refused or threw; the reservation was rolled back or retired. */'start-failed'
|
|
694
|
+
/**
|
|
695
|
+
* The connector is live but another generation owns the provider session it
|
|
696
|
+
* speaks to. The connector was stopped and the claims retired.
|
|
697
|
+
*/
|
|
698
|
+
| 'ownership-refused' /** The agent row is `disposed` or gone; the connector was stopped. */ | 'agent-unavailable'
|
|
699
|
+
/**
|
|
700
|
+
* The settlement neither landed nor was refused on ownership grounds — a raw
|
|
701
|
+
* throw from one of its guarded acts, not a modeled answer. The attempt is
|
|
702
|
+
* torn down on the caller-owned paths: the connector is stopped best-effort,
|
|
703
|
+
* the attempt's tokens are retired as `abandoned`, and the row is committed
|
|
704
|
+
* `dead` — the durable state must not advertise a start whose settlement
|
|
705
|
+
* this process can no longer vouch for.
|
|
706
|
+
*/
|
|
707
|
+
| 'settlement-unresolved' /** A joined start left the row `starting` more often than the bounded re-read allows. */ | 'start-unresolved' /** Another start won the lead designation and the session still has no agents. */ | 'lead-conflict';
|
|
708
|
+
/** A reserved start that did not end with a usable agent. */
|
|
709
|
+
declare class SessionStartError extends Error {
|
|
710
|
+
readonly code: SessionStartFailureCode;
|
|
711
|
+
/**
|
|
712
|
+
* The named targets this call could not act for — exactly the set the
|
|
713
|
+
* `agent-unavailable` code refuses. Two producers fill it: a total deferral
|
|
714
|
+
* (every named agent's provider session is held by a generation this runtime
|
|
715
|
+
* does not own) and a stated-target send against a session with no agents
|
|
716
|
+
* (the named agents do not exist). The field deliberately does not separate
|
|
717
|
+
* the two, because the code does not either: which one it was is a statement
|
|
718
|
+
* about the session, carried by the message, not a distinct caller branch —
|
|
719
|
+
* in particular, no entry is guaranteed to be foreign-held-and-retryable.
|
|
720
|
+
*
|
|
721
|
+
* A response field is unreachable on a path that throws, and a send that
|
|
722
|
+
* silently reaches fewer agents than it was asked to is exactly the failure
|
|
723
|
+
* this contract refuses everywhere else. The field carries the set for
|
|
724
|
+
* in-process callers; the message names the agents as well, for anything
|
|
725
|
+
* crossing a transport that may not preserve custom error properties.
|
|
726
|
+
*/
|
|
727
|
+
readonly deferredAgentIds?: readonly string[];
|
|
728
|
+
/**
|
|
729
|
+
* @param code - Which modeled outcome this is; the value callers branch on.
|
|
730
|
+
* @param message - Human-readable detail, including the identifiers involved.
|
|
731
|
+
* @param cause - Underlying failure, when one exists.
|
|
732
|
+
* @param deferredAgentIds - The named targets this call could not act for, when the send named any.
|
|
733
|
+
*/
|
|
734
|
+
constructor(code: SessionStartFailureCode, message: string, cause?: unknown, deferredAgentIds?: readonly string[]);
|
|
735
|
+
}
|
|
736
|
+
//#endregion
|
|
544
737
|
//#region services/core/src/session/handlers/abandon-handler.d.ts
|
|
545
738
|
/**
|
|
546
739
|
* Registers the session.abandon RPC handler.
|
|
@@ -602,6 +795,110 @@ declare function registerForkHandler(bus: IMakaioBus, machineId?: string): () =>
|
|
|
602
795
|
*/
|
|
603
796
|
declare function registerMergeHandler(bus: IMakaioBus): () => void;
|
|
604
797
|
//#endregion
|
|
798
|
+
//#region services/core/src/session/handlers/in-flight-start-join.d.ts
|
|
799
|
+
/** What a consumer does with an agent whose start it joined or arbitrated. */
|
|
800
|
+
type StartResolution = /** The agent is usable as it stands. */'use' /** The agent is not part of this send: the row is gone, or terminal. */ | 'drop' /** The agent needs the ordinary fresh-with-history recovery. */ | 'recover';
|
|
801
|
+
/** How a send's target set changed once every in-flight start was resolved. */
|
|
802
|
+
interface InFlightStartResolution {
|
|
803
|
+
/** Agents that left the session's target set — deleted or `disposed` rows. */
|
|
804
|
+
readonly droppedAgentIds: ReadonlySet<string>;
|
|
805
|
+
/** Agents this send must recover before using. */
|
|
806
|
+
readonly recoveringAgentIds: ReadonlySet<string>;
|
|
807
|
+
/**
|
|
808
|
+
* The subset whose recovery this send claimed by **compare-and-swap**, not by
|
|
809
|
+
* consuming a local attempt.
|
|
810
|
+
*
|
|
811
|
+
* The two provenances carry different evidence and must not be treated alike.
|
|
812
|
+
* A locally joined attempt reported its own verdict: this process ran it, and
|
|
813
|
+
* it said whether a connector exists. A won compare-and-swap says only that
|
|
814
|
+
* this caller wrote a status first — the attempt it outran belongs to a
|
|
815
|
+
* process this runtime cannot see, and Wave 3 has no way to ask whether that
|
|
816
|
+
* process is alive (OQ-B, deferred to Wave 4). Writing `dead` does not make
|
|
817
|
+
* the agent dead, so a consumer must still find out for itself before opening
|
|
818
|
+
* a second lifecycle.
|
|
819
|
+
*/
|
|
820
|
+
readonly arbitratedAgentIds: ReadonlySet<string>;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Apply the in-flight-start consumer rule to a session's agents.
|
|
824
|
+
*
|
|
825
|
+
* Runs *before* the liveness probe and before the fresh-start branch, and only
|
|
826
|
+
* for agents whose stored status is `starting` — every other row costs nothing.
|
|
827
|
+
* The ordering matters at both ends: probing a `starting` agent would find no
|
|
828
|
+
* registered connector and walk into a second lifecycle for an identity that
|
|
829
|
+
* already has one in flight, and an agent dropped here may be the session's last,
|
|
830
|
+
* which must then start fresh rather than fail for having no targets.
|
|
831
|
+
*
|
|
832
|
+
* Dropped agents are removed from `session.agents` in place, and every agent that
|
|
833
|
+
* survives is **replaced by the row this resolution read**, so every later step
|
|
834
|
+
* of the send sees both the target set and the identities this resolution
|
|
835
|
+
* produced. The second half matters as much as the first: a joined attempt can
|
|
836
|
+
* bind its agent to a different adapter instance, and a send that kept the
|
|
837
|
+
* pre-join snapshot would probe liveness and route at the instance that attempt
|
|
838
|
+
* moved off.
|
|
839
|
+
* @param bus - Bus the joins, reads and compare-and-swaps are issued on.
|
|
840
|
+
* @param session - Session whose agents are resolved; its `agents` are filtered and refreshed in place.
|
|
841
|
+
* @returns Which agents left the set, and which the send must recover.
|
|
842
|
+
*/
|
|
843
|
+
declare function resolveInFlightStarts(bus: IMakaioBus, session: IMakaioSession): Promise<InFlightStartResolution>;
|
|
844
|
+
//#endregion
|
|
845
|
+
//#region services/core/src/session/handlers/deferred-agents.d.ts
|
|
846
|
+
/**
|
|
847
|
+
* Admit a send to the fresh-start branch, or refuse the targets it stated.
|
|
848
|
+
*
|
|
849
|
+
* **Decided before that branch runs, and the ordering is the whole point.**
|
|
850
|
+
* `lead-default` is the only form that asks for *an* agent rather than asserting
|
|
851
|
+
* something about the ones the session has; every other form states a target,
|
|
852
|
+
* and a session with no agents answers every such statement the same way. So
|
|
853
|
+
* only `lead-default` may bring a session its first agent:
|
|
854
|
+
*
|
|
855
|
+
* - **`explicit`** — the session cannot contain the ids the caller named, and
|
|
856
|
+
* substituting a freshly started agent would answer a question nobody asked.
|
|
857
|
+
* - **`'all'`** — "all of them" of nothing is not a delivery, exactly as it is
|
|
858
|
+
* not one when every target defers ({@link refuseTotalDeferral}).
|
|
859
|
+
*
|
|
860
|
+
* Either send was already decided at this moment, so starting a lead first only
|
|
861
|
+
* changes *what the failure leaves behind* — an agent row, a lead designation
|
|
862
|
+
* and a reserved provider session created by a send that never delivered.
|
|
863
|
+
*
|
|
864
|
+
* This admits, it does not clear: a named agent the session *has* may still turn
|
|
865
|
+
* out to be undrivable, which is what the post-recovery validation decides.
|
|
866
|
+
*
|
|
867
|
+
* `agent-unavailable` is reused rather than invented, exactly as
|
|
868
|
+
* {@link refuseTotalDeferral} reuses it: the code means "this runtime may not act
|
|
869
|
+
* for these agents", and an agent that does not exist is the strongest form of
|
|
870
|
+
* that, not a different fact. Only the named form carries `deferredAgentIds` — a
|
|
871
|
+
* throw makes the response field unreachable, so the ids travel on the error
|
|
872
|
+
* where there are ids to travel; a broadcast named none, and inventing a payload
|
|
873
|
+
* for it would say the session held agents it never held.
|
|
874
|
+
* @param caller - Log prefix of the send path raising this, e.g. `[session.sendMessage]`.
|
|
875
|
+
* @param sessionId - Session the send was for.
|
|
876
|
+
* @param session - Session as this send resolved it, after any in-flight start.
|
|
877
|
+
* @param targetSpec - The request's `agentIds`, as the schema models it.
|
|
878
|
+
* @throws A {@link SessionStartError} naming the agents, when the send named any.
|
|
879
|
+
*/
|
|
880
|
+
declare function admitFreshStartTargets(caller: string, sessionId: string, session: IMakaioSession, targetSpec: readonly string[] | 'all' | undefined): void;
|
|
881
|
+
/**
|
|
882
|
+
* Refuse a send whose every target is held elsewhere.
|
|
883
|
+
*
|
|
884
|
+
* `agent-unavailable` is reused rather than invented: it already means "this
|
|
885
|
+
* runtime may not act for this agent". A broadcast with no recipient is not a
|
|
886
|
+
* delivery, and a caller that named its agents is owed the failure rather than
|
|
887
|
+
* a substitute.
|
|
888
|
+
*
|
|
889
|
+
* **Exported for the send pipelines a product composes itself.** *Whether* a
|
|
890
|
+
* total deferral is a refusal is a product decision — this framework's
|
|
891
|
+
* orchestrator and a product's may guard it differently — but the refusal it
|
|
892
|
+
* raises is one fact with one wording and one code, and a second copy of it is a
|
|
893
|
+
* second answer to "what did the caller just fail with". The caller names itself
|
|
894
|
+
* so the message still says where the send stopped.
|
|
895
|
+
* @param caller - Log prefix of the send path raising this, e.g. `[session.sendMessage]`.
|
|
896
|
+
* @param sessionId - Session the send was for.
|
|
897
|
+
* @param deferredAgentIds - Agents held by a generation this runtime does not own.
|
|
898
|
+
* @throws A {@link SessionStartError} naming the agents in both the field and the message.
|
|
899
|
+
*/
|
|
900
|
+
declare function refuseTotalDeferral(caller: string, sessionId: string, deferredAgentIds: ReadonlySet<string>): never;
|
|
901
|
+
//#endregion
|
|
605
902
|
//#region services/core/src/session/handlers/routing-lifecycle.d.ts
|
|
606
903
|
/** Narrow ledger transition owned by SessionTurnManager and injected into routing. */
|
|
607
904
|
interface TurnCompletionRecorder {
|
|
@@ -722,4 +1019,4 @@ declare function routeToAgentsCore(bus: IMakaioBus, session: IMakaioSession, age
|
|
|
722
1019
|
adapterId: string;
|
|
723
1020
|
}>, message: MessageInput, messageId: string, turn: Turn$1, deliveryMode: 'enqueue' | 'immediate' | undefined, onTurnComplete: TurnCompleteCallback, turnManager: TurnCompletionRecorder, sessionContext?: SessionContext, responseSchema?: ResponseSchemaDescriptor, assertDispatch?: () => void): Promise<readonly AgentDispatchOutcome[]>;
|
|
724
1021
|
//#endregion
|
|
725
|
-
export {
|
|
1022
|
+
export { Turn$1 as C, TurnPairTerminalOutcome as D, TurnPairStateChange as E, TurnResult as O, SessionTurnManager as S, TurnContext as T, OwnedAdapterInstanceTarget as _, InFlightStartResolution as a, resolveModelCapabilities as b, registerMergeHandler as c, registerAttachHandler as d, registerAbandonHandler as f, OwnedAdapterInstance as g, MachineScopedAdapterInstance as h, refuseTotalDeferral as i, registerForkHandler as l, SessionStartFailureCode as m, routeToAgents as n, StartResolution as o, SessionStartError as p, admitFreshStartTargets as r, resolveInFlightStarts as s, routeToAgentsCore as t, registerCompressHandler as u, resolveAdapterId as v, TurnConfig as w, resolveOwnedAdapterInstance as x, resolveExecutionTarget as y };
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
3
|
+
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
|
+
|
|
5
|
+
//#region core/contracts/src/automation-trigger/namespace.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Framework-level automation trigger discovery bus schemas.
|
|
8
|
+
*
|
|
9
|
+
* Defines the RPC and event subjects for the automation trigger registry.
|
|
10
|
+
* The schema set covers:
|
|
11
|
+
*
|
|
12
|
+
* - `list` — query all currently registered trigger descriptors (RPC)
|
|
13
|
+
* - `changed` — emitted when the trigger registry changes (event)
|
|
14
|
+
*
|
|
15
|
+
* Callers use `list` to populate the Builder UI's trigger catalog.
|
|
16
|
+
* The `changed` event enables reactive updates without polling.
|
|
17
|
+
*
|
|
18
|
+
* Hosts that extend the trigger surface should register an additional
|
|
19
|
+
* host-owned namespace rather than merging subjects into this one.
|
|
20
|
+
*/
|
|
21
|
+
declare const AutomationTriggerSchemas: {
|
|
22
|
+
/**
|
|
23
|
+
* List all currently registered automation trigger descriptors (RPC).
|
|
24
|
+
*
|
|
25
|
+
* Returns the complete set of serializable descriptors contributed by all
|
|
26
|
+
* active extensions. Callers should re-query on {@link changed} events to
|
|
27
|
+
* keep their catalog current.
|
|
28
|
+
*/
|
|
29
|
+
list: {
|
|
30
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
31
|
+
response: z.ZodObject<{
|
|
32
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
33
|
+
kind: z.ZodString;
|
|
34
|
+
label: z.ZodString;
|
|
35
|
+
description: z.ZodString;
|
|
36
|
+
categories: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
37
|
+
parameterSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
38
|
+
eventSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
39
|
+
workflowCompatible: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Emitted when the automation trigger registry changes.
|
|
45
|
+
*
|
|
46
|
+
* Fired whenever an extension registers or deregisters its trigger batch.
|
|
47
|
+
* The `revision` counter monotonically increases so that subscribers can
|
|
48
|
+
* detect missed events. `kinds` is the exact union of the owner's previous
|
|
49
|
+
* and replacement batches, so consumers can refresh only identities whose
|
|
50
|
+
* registration may have changed without inferring ownership from a prefix.
|
|
51
|
+
*/
|
|
52
|
+
changed: z.ZodObject<{
|
|
53
|
+
owner: z.ZodString;
|
|
54
|
+
revision: z.ZodNumber;
|
|
55
|
+
kinds: z.ZodArray<z.ZodString>;
|
|
56
|
+
reason: z.ZodEnum<{
|
|
57
|
+
registered: "registered";
|
|
58
|
+
deregistered: "deregistered";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Automation trigger discovery bus namespace.
|
|
64
|
+
*
|
|
65
|
+
* Registers the `automation-triggers` namespace with framework-level RPC and
|
|
66
|
+
* event subjects for the trigger registry. Use {@link AutomationTriggerSubjects}
|
|
67
|
+
* to access typed bus subject descriptors.
|
|
68
|
+
*/
|
|
69
|
+
declare const AutomationTriggerNamespace: _$_makaio_core0.BusNamespaceDefinition<"automation-triggers", {
|
|
70
|
+
/**
|
|
71
|
+
* List all currently registered automation trigger descriptors (RPC).
|
|
72
|
+
*
|
|
73
|
+
* Returns the complete set of serializable descriptors contributed by all
|
|
74
|
+
* active extensions. Callers should re-query on {@link changed} events to
|
|
75
|
+
* keep their catalog current.
|
|
76
|
+
*/
|
|
77
|
+
list: {
|
|
78
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
79
|
+
response: z.ZodObject<{
|
|
80
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
81
|
+
kind: z.ZodString;
|
|
82
|
+
label: z.ZodString;
|
|
83
|
+
description: z.ZodString;
|
|
84
|
+
categories: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
85
|
+
parameterSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
86
|
+
eventSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
87
|
+
workflowCompatible: z.ZodBoolean;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Emitted when the automation trigger registry changes.
|
|
93
|
+
*
|
|
94
|
+
* Fired whenever an extension registers or deregisters its trigger batch.
|
|
95
|
+
* The `revision` counter monotonically increases so that subscribers can
|
|
96
|
+
* detect missed events. `kinds` is the exact union of the owner's previous
|
|
97
|
+
* and replacement batches, so consumers can refresh only identities whose
|
|
98
|
+
* registration may have changed without inferring ownership from a prefix.
|
|
99
|
+
*/
|
|
100
|
+
changed: z.ZodObject<{
|
|
101
|
+
owner: z.ZodString;
|
|
102
|
+
revision: z.ZodNumber;
|
|
103
|
+
kinds: z.ZodArray<z.ZodString>;
|
|
104
|
+
reason: z.ZodEnum<{
|
|
105
|
+
registered: "registered";
|
|
106
|
+
deregistered: "deregistered";
|
|
107
|
+
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}>;
|
|
110
|
+
/**
|
|
111
|
+
* Typed subjects for automation trigger bus communication.
|
|
112
|
+
*
|
|
113
|
+
* Available subjects:
|
|
114
|
+
* - `AutomationTriggerSubjects['list']` — list registered triggers (RPC)
|
|
115
|
+
* - `AutomationTriggerSubjects['changed']` — trigger registry changed event
|
|
116
|
+
*/
|
|
117
|
+
declare const AutomationTriggerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"automation-triggers", {
|
|
118
|
+
/**
|
|
119
|
+
* List all currently registered automation trigger descriptors (RPC).
|
|
120
|
+
*
|
|
121
|
+
* Returns the complete set of serializable descriptors contributed by all
|
|
122
|
+
* active extensions. Callers should re-query on {@link changed} events to
|
|
123
|
+
* keep their catalog current.
|
|
124
|
+
*/
|
|
125
|
+
list: {
|
|
126
|
+
request: z.ZodObject<{}, z.core.$strip>;
|
|
127
|
+
response: z.ZodObject<{
|
|
128
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
129
|
+
kind: z.ZodString;
|
|
130
|
+
label: z.ZodString;
|
|
131
|
+
description: z.ZodString;
|
|
132
|
+
categories: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
133
|
+
parameterSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
134
|
+
eventSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
135
|
+
workflowCompatible: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Emitted when the automation trigger registry changes.
|
|
141
|
+
*
|
|
142
|
+
* Fired whenever an extension registers or deregisters its trigger batch.
|
|
143
|
+
* The `revision` counter monotonically increases so that subscribers can
|
|
144
|
+
* detect missed events. `kinds` is the exact union of the owner's previous
|
|
145
|
+
* and replacement batches, so consumers can refresh only identities whose
|
|
146
|
+
* registration may have changed without inferring ownership from a prefix.
|
|
147
|
+
*/
|
|
148
|
+
changed: z.ZodObject<{
|
|
149
|
+
owner: z.ZodString;
|
|
150
|
+
revision: z.ZodNumber;
|
|
151
|
+
kinds: z.ZodArray<z.ZodString>;
|
|
152
|
+
reason: z.ZodEnum<{
|
|
153
|
+
registered: "registered";
|
|
154
|
+
deregistered: "deregistered";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
}>, "automation-triggers">;
|
|
158
|
+
/** Request payload for listing registered automation triggers. */
|
|
159
|
+
type AutomationTriggerListRequest = z.infer<(typeof AutomationTriggerSchemas)['list']['request']>;
|
|
160
|
+
/** Response payload for listing registered automation triggers. */
|
|
161
|
+
type AutomationTriggerListResponse = z.infer<(typeof AutomationTriggerSchemas)['list']['response']>;
|
|
162
|
+
/** Payload for the automation trigger registry changed event. */
|
|
163
|
+
type AutomationTriggerChangedPayload = z.infer<(typeof AutomationTriggerSchemas)['changed']>;
|
|
164
|
+
//#endregion
|
|
165
|
+
export { AutomationTriggerSchemas as a, AutomationTriggerNamespace as i, AutomationTriggerListRequest as n, AutomationTriggerSubjects$1 as o, AutomationTriggerListResponse as r, AutomationTriggerChangedPayload as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as CliContribution } from "./types-
|
|
2
|
-
import { c as ExtensionInfo } from "./index-
|
|
3
|
-
import { r as WindowRegistry } from "./window-registry-
|
|
1
|
+
import { i as CliContribution } from "./types-Ce6LL25v.mjs";
|
|
2
|
+
import { c as ExtensionInfo } from "./index-B6GOuxVy2.mjs";
|
|
3
|
+
import { r as WindowRegistry } from "./window-registry-BLtVx3Iw.mjs";
|
|
4
4
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
5
5
|
import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";
|
|
6
6
|
|
|
@@ -167,6 +167,9 @@ interface ExtensionCoordinatorOptions {
|
|
|
167
167
|
* Non-critical failures are isolated so remaining extensions continue to start.
|
|
168
168
|
* Critical extension failures abort boot because the host declared them mandatory.
|
|
169
169
|
*
|
|
170
|
+
* Lifecycle transitions are serialized. Extension lifecycle callbacks must not
|
|
171
|
+
* await another coordinator lifecycle call, because it waits in the same lane.
|
|
172
|
+
*
|
|
170
173
|
* During {@link load}, window manifests are registered into
|
|
171
174
|
* {@link windowRegistry}, tray entries are collected into {@link trayEntries},
|
|
172
175
|
* and CLI contributions are collected into {@link cliContributions}. Static
|
|
@@ -197,6 +200,10 @@ declare class ExtensionCoordinator {
|
|
|
197
200
|
private loadOrder;
|
|
198
201
|
private loaded;
|
|
199
202
|
private started;
|
|
203
|
+
private shutdownRequested;
|
|
204
|
+
private shutdownPromise;
|
|
205
|
+
/** FIFO lane for lifecycle transitions that mutate extension entries. */
|
|
206
|
+
private lifecycleTail;
|
|
200
207
|
private rpcCleanups;
|
|
201
208
|
private readonly contributionProcessors;
|
|
202
209
|
/**
|
|
@@ -286,6 +293,8 @@ declare class ExtensionCoordinator {
|
|
|
286
293
|
* critical package fails.
|
|
287
294
|
*/
|
|
288
295
|
startAll(): Promise<void>;
|
|
296
|
+
/** Run the admitted startup transition in the coordinator lifecycle lane. */
|
|
297
|
+
private startAllInLifecycleLane;
|
|
289
298
|
/**
|
|
290
299
|
* Shut down all active packages in reverse dependency order.
|
|
291
300
|
*
|
|
@@ -295,9 +304,12 @@ declare class ExtensionCoordinator {
|
|
|
295
304
|
* together so the caller can treat termination as unclean.
|
|
296
305
|
*
|
|
297
306
|
* Safe to call even if {@link startAll} was never called.
|
|
307
|
+
* @returns A promise that settles after every admitted transition and teardown complete.
|
|
298
308
|
* @throws An AggregateError when any package failed to shut down cleanly.
|
|
299
309
|
*/
|
|
300
310
|
shutdown(): Promise<void>;
|
|
311
|
+
/** Run shutdown after every lifecycle transition admitted before shutdown. */
|
|
312
|
+
private shutdownInLifecycleLane;
|
|
301
313
|
/**
|
|
302
314
|
* Return the current state snapshot for all registered packages.
|
|
303
315
|
* @returns Array of {@link ExtensionInfo} objects reflecting current observable states.
|
|
@@ -377,6 +389,15 @@ declare class ExtensionCoordinator {
|
|
|
377
389
|
* @returns `true` on success, `false` when the state machine rejects.
|
|
378
390
|
*/
|
|
379
391
|
handleSetEnabled(name: string, enabled: boolean): Promise<boolean>;
|
|
392
|
+
/**
|
|
393
|
+
* Schedule a lifecycle transition after every previously admitted transition.
|
|
394
|
+
*
|
|
395
|
+
* The tail recovers from failures so one rejected operation cannot strand
|
|
396
|
+
* later shutdown or toggle work behind a rejected promise.
|
|
397
|
+
* @param operation - Lifecycle transition to run exclusively.
|
|
398
|
+
* @returns The operation's result.
|
|
399
|
+
*/
|
|
400
|
+
private enqueueLifecycle;
|
|
380
401
|
/**
|
|
381
402
|
* Create the shared extension-context helper host without exposing coordinator internals.
|
|
382
403
|
* @returns Helper host for config resolution and ExtensionContext construction.
|