@makaio/framework 1.0.0-dev-1787670559522 → 1.0.0-dev-1788258714339
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 +2 -2
- package/dist/{account-identity-DGpXd8h_.mjs → account-identity-B3vLwm9O.mjs} +1 -1
- package/dist/adapter-Dz1fX5Wa.mjs +1 -0
- package/dist/adapter-subsystem/index.d.mts +118 -76
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/claude/index.d.mts +5 -5
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +73 -53
- package/dist/adapters/index.mjs +6 -6
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/{artifact-k3veR4Yx.mjs → artifact-Btbuib48.mjs} +1 -1
- package/dist/attach-error-Cb3GbeKe.mjs +1 -0
- package/dist/{auth-A1K_7q-8.mjs → auth-C6tVtaOX.mjs} +1 -1
- package/dist/{authority-state-bootstrap-YwtEImIB.mjs → authority-state-bootstrap-CLYus369.mjs} +1 -1
- package/dist/{automation-trigger-CuSdQwir.mjs → automation-trigger-ByjNlClm.mjs} +1 -1
- package/dist/bus/index.d.mts +22 -4
- package/dist/bus/index.mjs +1 -1
- package/dist/{bus-CqgrphNE.mjs → bus-D6NoBhIV.mjs} +1 -1
- package/dist/bus-UgFdHybD.mjs +1 -0
- package/dist/caller-owned-adapter-stub-C1M7FKrv.mjs +1 -0
- package/dist/{canonical-model-DJASlL4m.mjs → canonical-model-DXOvCaVg.mjs} +1 -1
- package/dist/capabilities-BUwuA7XX.mjs +1 -0
- package/dist/capability-j3NekkIu.mjs +1 -0
- package/dist/{client-BL5__WT0.mjs → client-BkznbdsO.mjs} +1 -1
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/index.mjs +1 -1
- package/dist/clients/managed-install.d.mts +1 -1
- package/dist/clients/managed-install.mjs +1 -1
- package/dist/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-BbttSqm8.mjs → compression-CtgeVLpP.mjs} +1 -1
- package/dist/{config-namespace-CyzeLWSg.mjs → config-namespace-CjWvw8ij.mjs} +1 -1
- package/dist/{context-resolution-ya9TXKg-.d.mts → context-resolution-CW4OtPrS.d.mts} +3 -3
- package/dist/contracts/adapter/index.d.mts +3 -3
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/auth/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.d.mts +3 -3
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/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 +5 -5
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +57 -47
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/reaction/index.d.mts +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +3 -3
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.d.mts +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/contracts/worker-node/index.d.mts +1 -1
- package/dist/contracts/worker-node/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{contribution-BB5bjx3f.d.mts → contribution-CUHLVLsT.d.mts} +2 -2
- package/dist/core/index.d.mts +25 -2
- package/dist/{definition-CDg-Jq1T.mjs → definition-BH4QLGLI.mjs} +1 -1
- package/dist/{definition-BYgHlmMw.d.mts → definition-DyGImhyi.d.mts} +1 -1
- package/dist/{detached-extension-handle-DKd17UB6.mjs → detached-extension-handle-D0aI0pJA.mjs} +1 -1
- 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 +28 -0
- package/dist/event-B8ELuk6k.mjs +1 -0
- package/dist/{execution-attempt-repository-DFyAnchJ.d.mts → execution-attempt-repository-BJ2W6wwx.d.mts} +1 -1
- package/dist/{execution-target-ByNwZh5-.mjs → execution-target-H0RWV7Py.mjs} +1 -1
- package/dist/{extension-DUmibvMk.mjs → extension-Bfkr2DBs.mjs} +1 -1
- package/dist/{extension-DMdmj9gi.mjs → extension-Cz39YNXy.mjs} +1 -1
- package/dist/{extension-discovery-Fhps4icD.d.mts → extension-discovery-Dhu3WplO.d.mts} +9 -1
- package/dist/{filesystem-service-FAtd9gWH.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-BBLuT_vy.mjs → globby-QBDqstzq.mjs} +1 -1
- package/dist/handlers-BsHAFtye.mjs +57 -0
- package/dist/{harness-KxbWGL4I.mjs → harness-YQ2ewID9.mjs} +1 -1
- package/dist/{hook-responses-uCXAICTU.d.mts → hook-responses-9Ywsqzzq.d.mts} +1 -1
- package/dist/identity-OjRlG6dZ.mjs +1 -0
- package/dist/{index-Bl7KWFod.d.mts → index-4KJ6IDE7.d.mts} +7 -7
- package/dist/{index-CfiCJPP6.d.mts → index-B0VO0rAl.d.mts} +1 -1
- package/dist/{index-DI7-tIL3.d.mts → index-B0yMCJW8.d.mts} +39 -14
- package/dist/{index-BQprJNA_.d.mts → index-B9V3T4EQ.d.mts} +4 -4
- package/dist/{index-CqQYgsbB.d.mts → index-BNzUyVwV.d.mts} +513 -170
- package/dist/{index-CM75k-Ff.d.mts → index-BkbnC65b.d.mts} +189 -17
- package/dist/index-Bqk0pJBQ2.d.mts +138 -0
- package/dist/{index-CER64zYO.d.mts → index-BqlCDBfc.d.mts} +15 -15
- package/dist/{index-C-JzEkqs.d.mts → index-C146Eq_J.d.mts} +535 -1801
- package/dist/{index-e4Txan9i.d.mts → index-C3lu_fy5.d.mts} +76 -76
- package/dist/{index-C__EQfKa.d.mts → index-CIEycZrt.d.mts} +1 -1
- package/dist/{index-DxYDRoDE2.d.mts → index-CMekqu_D.d.mts} +28 -8
- package/dist/{index-nydhGvXa.d.mts → index-CPRQ4dWX.d.mts} +0 -23
- package/dist/{index-BSQ30wYP.d.mts → index-CPi0UpRh.d.mts} +1 -1
- package/dist/{index-BMVZs6pm.d.mts → index-CYjgoYeX.d.mts} +3 -3
- package/dist/{index-CSN_0sCo.d.mts → index-CmwAJ8-5.d.mts} +1 -1
- package/dist/index-Cny5RvjO.d.mts +800 -0
- package/dist/index-DHnSLGP4.d.mts +268 -0
- package/dist/{index-cPqSpWQC.d.mts → index-DJ2KgJDJ2.d.mts} +12 -12
- package/dist/index-DQ8o3JGi.d.mts +132 -0
- package/dist/index-DWBkiiXH.d.mts +18 -0
- package/dist/{index-B0xJgTi-.d.mts → index-DWkFkvRn2.d.mts} +7 -7
- package/dist/{index-1UcQWrZy.d.mts → index-DXqG0r3o.d.mts} +155 -155
- package/dist/index-Dg11JxKZ.d.mts +496 -0
- package/dist/{index-BtdK8HeH.d.mts → index-OG402CBI.d.mts} +43 -168
- 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 +5 -5
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.d.mts +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.d.mts +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.d.mts +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/{lib-CnOAtohU.mjs → lib-BpGvHZye.mjs} +2 -2
- package/dist/{lib-B_rJ6r0T.mjs → lib-Cm-uEoC1.mjs} +1 -1
- package/dist/{load-extensions-DUpaMQ7G.d.mts → load-extensions-BQoXaHhR.d.mts} +1 -1
- package/dist/{load-extensions-CW9uzNR5.mjs → load-extensions-DG5LvPyM.mjs} +1 -1
- package/dist/{materialization-CcpCDhXh.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-B7bntOB8.mjs → namespace-BL7lHlmg.mjs} +1 -1
- package/dist/{namespace-BgEiY7r1.d.mts → namespace-BNp7n_gu.d.mts} +3 -3
- package/dist/{namespace-DSlfFhB1.d.mts → namespace-BRuHzhPo.d.mts} +154 -2
- package/dist/{namespace-ChnRTUG4.d.mts → namespace-C06lJSuj.d.mts} +6 -6
- package/dist/{namespace-C6CVEGH8.d.mts → namespace-DknCutQZ.d.mts} +50 -0
- package/dist/namespace-sCPb79-7.mjs +1 -0
- package/dist/{native-session-supervisor-fZYPUk0-.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-B-KRW1Z0.d.mts → orchestrator-shared-CNHSImNY.d.mts} +9 -10
- package/dist/ownership-memory-handler-BpGdR_uG.mjs +1 -0
- package/dist/ownership-recovery-guard-DyW5vGBr.mjs +1 -0
- package/dist/{package-ypz4rKvn.mjs → package-B01gmu75.mjs} +1 -1
- package/dist/{package-Bf3hyuzs.d.mts → package-BNFTUFLB.d.mts} +2 -2
- package/dist/package-DttKA9wN.mjs +1 -0
- package/dist/{package-CddkNbZI.mjs → package-JtjbO-Oi.mjs} +1 -1
- package/dist/package.json +1 -1
- package/dist/{profile-BtznZlq3.mjs → profile-N5qGUpF0.mjs} +1 -1
- package/dist/{provider-context-Dh-VOOYF.mjs → provider-context-CG42JlP9.mjs} +1 -1
- package/dist/{provider-context-BrLZYnDW.mjs → provider-context-zTDSH2x9.mjs} +1 -1
- package/dist/{reaction-BS0k4eNN.mjs → reaction-D3TNwPK8.mjs} +1 -1
- package/dist/{registry-BO_bOoky.mjs → registry-Dk12tAfv.mjs} +1 -1
- package/dist/{resolved-DMByz1_2.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 +6 -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-DKTzriEY.d.mts → schema-B3Pf7JP7.d.mts} +250 -3
- package/dist/{schema-DBG7Jq5_.mjs → schema-Dq-7si8u.mjs} +1 -1
- package/dist/{schemas-DSkBOdx_.mjs → schemas-BfO5jkrL.mjs} +1 -1
- package/dist/{schemas-B7zo7Zcx.d.mts → schemas-C1mxTfd7.d.mts} +60 -4
- package/dist/schemas-C3kyQWGf.mjs +1 -0
- package/dist/{schemas-B3bfVYcL.d.mts → schemas-CF8QwRqt.d.mts} +2 -0
- package/dist/{schemas-DZH9lpxs.d.mts → schemas-OWvBn7AH.d.mts} +4 -4
- package/dist/{schemas-CsjN7cmM.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-7Ku8DBnh.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 +3 -3
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/automation-trigger/index.mjs +1 -1
- package/dist/services/capability/index.d.mts +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.d.mts +3 -3
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +159 -59
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/materialization/index.d.mts +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +10 -10
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +2 -2
- package/dist/services/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.d.mts +22 -1
- package/dist/services/session/testing/index.mjs +38 -14
- 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-BFVuCDPx.mjs → shared-B9AWRm9A.mjs} +1 -1
- package/dist/{skill-C1D51nhh.mjs → skill-DGNtc_ww.mjs} +1 -1
- package/dist/{src-xbmzokNe.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 +41 -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-DxwHox1a.mjs → tools-DWKWX3eV.mjs} +1 -1
- package/dist/{transition-C_Ka6b0-.d.mts → transition-DXmCUq6w.d.mts} +6 -6
- package/dist/{types-BNjPhj_a.d.mts → types-CtDGkyLx2.d.mts} +1 -1
- package/dist/types-Cwza95hS.mjs +1 -0
- package/dist/{types-CwvN4uN2.d.mts → types-DcxBYlPA.d.mts} +3018 -38
- package/dist/types-DnK6Wa_Y.d.mts +260 -0
- package/dist/{types-ClpEaoAm.d.mts → types-OKJCOjme.d.mts} +24 -4
- package/dist/ui-components/index.d.mts +4 -4
- package/dist/ui-kernel/index.d.mts +1 -1
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/index.d.mts +22 -1
- package/dist/utils/index.mjs +2 -2
- package/dist/utils/project-manifest.mjs +1 -1
- package/dist/{version-BfNnVAGr.mjs → version-BYeVh1pI.mjs} +1 -1
- package/dist/{view-builder-KYsPqV-5.d.mts → view-builder-k82f5KFd.d.mts} +4 -4
- package/dist/{visibility-Dl1o2I01.mjs → visibility-DtDLRBdr.mjs} +1 -1
- package/dist/worker-node-CjuQb9hl.mjs +1 -0
- package/dist/{worker-node-DJ41Tr-F.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 +103 -103
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/provider-operation.d.mts +1 -1
- package/dist/workflow-engine/testing/index.d.mts +2 -2
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-DM0fN_eP.mjs → workflow-transitions-c_VQbyV0.mjs} +1 -1
- package/dist/workflow-worker-aNbdgqml.mjs +1 -0
- package/package.json +18 -1
- package/dist/adapter-BkdJaOOG.mjs +0 -1
- package/dist/agent-namespace-D51PODFf.mjs +0 -1
- package/dist/attach-error-BSlc7JfL.mjs +0 -1
- package/dist/bus-BIj0_aG6.mjs +0 -1
- package/dist/capabilities-Bqckjh7G.mjs +0 -1
- package/dist/capability-service-CJHNkjvm.mjs +0 -1
- package/dist/event-DR8U9Efx.mjs +0 -1
- package/dist/framework-packages-D_2hBZ-p.mjs +0 -1
- package/dist/handlers-2yd00VEq.mjs +0 -57
- package/dist/identity-DC3Pk0ps.mjs +0 -1
- package/dist/index-OsbtyMgx2.d.mts +0 -98
- package/dist/json-value-C1RGgS0a.d.mts +0 -72
- package/dist/json-value-D57aJhVn.mjs +0 -1
- package/dist/model-ZH3L1dPW.mjs +0 -1
- package/dist/namespace-CxrOLeeP.mjs +0 -1
- package/dist/orchestrator-shared-CTCZc6Vl.mjs +0 -1
- package/dist/ownership-memory-handler-Bblp93YC.mjs +0 -1
- package/dist/schemas-BqD8LlQw.mjs +0 -1
- package/dist/schemas-CvHFbzdy.mjs +0 -1
- package/dist/schemas-DplrlAyR.mjs +0 -1
- package/dist/scoped-bus-ClwTWqX8.mjs +0 -1
- package/dist/session-BMy2kRpX.mjs +0 -90
- package/dist/session-Cipx34j6.mjs +0 -1
- package/dist/tool-approval-service-BVgN9Q1r.mjs +0 -1
- package/dist/worker-node-BDOYPEpi.mjs +0 -1
- package/dist/workflow-Hzc5jlnV.mjs +0 -1
- package/dist/workflow-worker-DARC7UZl.mjs +0 -1
- /package/dist/{adapter-auth-runtime-D9Lnl7cc.mjs → adapter-auth-runtime-DHHppU4f.mjs} +0 -0
- /package/dist/{adapter-binding-B-FBoCys.d.mts → adapter-binding-CATvmGuz.d.mts} +0 -0
- /package/dist/{ajv-L5fKxaia.mjs → ajv-krzJXh1X.mjs} +0 -0
- /package/dist/{attempt-record-codec-DaFLKR5C.mjs → attempt-record-codec-BYfYkj4M.mjs} +0 -0
- /package/dist/{await-trigger-ph1S0zVI.mjs → await-trigger-Bkg2BQfg.mjs} +0 -0
- /package/dist/{base-orchestrator-D9u4NyiM.d.mts → base-orchestrator-B4YW6z_Q.d.mts} +0 -0
- /package/dist/{index-Ol9RBB0W2.d.mts → capability-service-BW1-teFU.d.mts} +0 -0
- /package/dist/{client-4ihewPUm.d.mts → client-BG0WX5Vz.d.mts} +0 -0
- /package/dist/{client-binary-version-verifier-DJajc_Ff.mjs → client-binary-version-verifier-0lCKZOTg.mjs} +0 -0
- /package/dist/{client-binary-version-verifier-jDDZ64Ah.d.mts → client-binary-version-verifier-lcv83Hq3.d.mts} +0 -0
- /package/dist/{clients-namespace-DFWuUawf.d.mts → clients-namespace-DLAjOTTb.d.mts} +0 -0
- /package/dist/{config-namespace-D1kyZj0B.d.mts → config-namespace-CH7sJZ4f.d.mts} +0 -0
- /package/dist/{create-static-mount-9tnGpIeK.mjs → create-static-mount-DxuixuLZ.mjs} +0 -0
- /package/dist/{cross-spawn-BIgueAqr.mjs → cross-spawn-CZygZJMH.mjs} +0 -0
- /package/dist/{cursor-storage-ROWfiTh1.mjs → cursor-storage-bsc9lZKk.mjs} +0 -0
- /package/dist/{definition-DB-kKc0d.d.mts → definition-BrgzUuFk.d.mts} +0 -0
- /package/dist/{definitions-CF6YmEhL.mjs → definitions-CRpdnHYM.mjs} +0 -0
- /package/dist/{descriptor-to-package-BecVCopf.mjs → descriptor-to-package-CcjdoWP4.mjs} +0 -0
- /package/dist/{drizzle-CPv3vdTE.mjs → drizzle-Bzc-OGVI.mjs} +0 -0
- /package/dist/{esm-CBFWM8u_.mjs → esm-i-S5TW72.mjs} +0 -0
- /package/dist/{extension-context-DzB7ydM3.d.mts → extension-context-QmFuHdq5.d.mts} +0 -0
- /package/dist/{extension-namespace-B554RmCp.mjs → extension-namespace-QoTTwKPt.mjs} +0 -0
- /package/dist/{extension-package-provenance-Dh_-Z-tE.mjs → extension-package-provenance-aYrZuS4W.mjs} +0 -0
- /package/dist/{facet-DVsW12iF.mjs → facet-BnMh7Jyc.mjs} +0 -0
- /package/dist/{filesystem-service-Cm2RHKBa.d.mts → filesystem-service-ZJ43SbBi.d.mts} +0 -0
- /package/dist/{handler-Bqlk-6BY.mjs → handler-DF1fVDpf.mjs} +0 -0
- /package/dist/{host-k5yoyKHg.mjs → host-B-_ntOMH.mjs} +0 -0
- /package/dist/{index--atUpi5l2.d.mts → index-8NdPPzUh2.d.mts} +0 -0
- /package/dist/{index-DwLRZscE.d.mts → index-8y4hT9WL.d.mts} +0 -0
- /package/dist/{index-C7HcDpHE.d.mts → index-B-3I98nw.d.mts} +0 -0
- /package/dist/{index-BcvqDfcN.d.mts → index-B2Y1Wvbh.d.mts} +0 -0
- /package/dist/{index-BRCrFirq.d.mts → index-B4svZC6L.d.mts} +0 -0
- /package/dist/{index-CQuRTeRa.d.mts → index-B5dP8rj6.d.mts} +0 -0
- /package/dist/{index-CRmE88hi.d.mts → index-BC-6qNeo.d.mts} +0 -0
- /package/dist/{index-CxSSdIZz.d.mts → index-BFWvT0NG.d.mts} +0 -0
- /package/dist/{index-DP3o_13U.d.mts → index-BM56936c.d.mts} +0 -0
- /package/dist/{index-BVcQcphK.d.mts → index-BMRB9yhF.d.mts} +0 -0
- /package/dist/{index-bIe_57cL.d.mts → index-BTEJfzjE.d.mts} +0 -0
- /package/dist/{index-DgOfgjx3.d.mts → index-BfV8U4XX.d.mts} +0 -0
- /package/dist/{index-DBadVauL.d.mts → index-BmevAPME2.d.mts} +0 -0
- /package/dist/{index-OADt3xlS.d.mts → index-BuMsrli0.d.mts} +0 -0
- /package/dist/{index-BJAB-BW_.d.mts → index-C4V8Pmi4.d.mts} +0 -0
- /package/dist/{index-aoxdnhJ42.d.mts → index-CL0Jo1b92.d.mts} +0 -0
- /package/dist/{index-CvW9_SzR.d.mts → index-CVpaGijY.d.mts} +0 -0
- /package/dist/{index-E4SET1AA.d.mts → index-CmbkCxj-.d.mts} +0 -0
- /package/dist/{index-BgGe9WZz.d.mts → index-CqdMbYmR.d.mts} +0 -0
- /package/dist/{index-BeENojSx2.d.mts → index-DgspOUa72.d.mts} +0 -0
- /package/dist/{index-42UdYStR.d.mts → index-Ek4y8M9J2.d.mts} +0 -0
- /package/dist/{index-Beo_Ik8-.d.mts → index-VzLAV0Yt.d.mts} +0 -0
- /package/dist/{index-BSbGB23v.d.mts → index-jxPncqWZ2.d.mts} +0 -0
- /package/dist/{index-Bqm0ahTQ.d.mts → index-kzIjbrS02.d.mts} +0 -0
- /package/dist/{index-BJMezANn.d.mts → index-l01zsChf.d.mts} +0 -0
- /package/dist/{index-CK3f0bAL.d.mts → index-pvX-BIpr2.d.mts} +0 -0
- /package/dist/{jsonl-transport-Bp_6pB2a.mjs → jsonl-transport-Cyyh5Wje.mjs} +0 -0
- /package/dist/{lib-Bwdd2m81.mjs → lib-BqV8hYtk.mjs} +0 -0
- /package/dist/{model-registry-yURX738J.mjs → model-registry-C9rFu3kV.mjs} +0 -0
- /package/dist/{model-registry-Y854mUml.mjs → model-registry-Cixxx2jv.mjs} +0 -0
- /package/dist/{modes-DmUsjHdV.mjs → modes-DwsJ3yVl.mjs} +0 -0
- /package/dist/{namespace-ByP1Iipi.d.mts → namespace-B0ftHlK3.d.mts} +0 -0
- /package/dist/{namespace-C1D77w7U.d.mts → namespace-BGRHcrmp.d.mts} +0 -0
- /package/dist/{namespace-Bi3CmYQy.d.mts → namespace-BUYDmd0r.d.mts} +0 -0
- /package/dist/{namespace-CkBbNFSU.mjs → namespace-BW3Bfu9h.mjs} +0 -0
- /package/dist/{namespace-DX1Ec15L.d.mts → namespace-BdAK0lD8.d.mts} +0 -0
- /package/dist/{namespace-Dgg0uoe6.d.mts → namespace-CPG6u60N.d.mts} +0 -0
- /package/dist/{namespace-BusZERU8.d.mts → namespace-CVFaZv8x.d.mts} +0 -0
- /package/dist/{namespace-yREpGJgG.d.mts → namespace-DBO1OzYB.d.mts} +0 -0
- /package/dist/{namespace-CrDlawqu.d.mts → namespace-DOezqDti.d.mts} +0 -0
- /package/dist/{namespace-CfIW0hpQ.mjs → namespace-DiwqpB-c.mjs} +0 -0
- /package/dist/{namespace-s2y_NFKf.d.mts → namespace-DqZweTbX.d.mts} +0 -0
- /package/dist/{namespace-CFjdyNXG.mjs → namespace-Du0accdE.mjs} +0 -0
- /package/dist/{namespace-BFqkUTJp.mjs → namespace-NXm_zvL1.mjs} +0 -0
- /package/dist/{namespace-B9FEGuEu.mjs → namespace-jVTsuZHX.mjs} +0 -0
- /package/dist/{namespace-DwZwGXgF.d.mts → namespace-l-HG1rLF.d.mts} +0 -0
- /package/dist/{namespace-DbNWsPFY.mjs → namespace-tjoxekmf.mjs} +0 -0
- /package/dist/{out-DrhwCgqM.mjs → out-8bOYN6EF.mjs} +0 -0
- /package/dist/{package-CBdvjyyZ.mjs → package-EGTn-Ng1.mjs} +0 -0
- /package/dist/{packages-FBv3fAOR.mjs → packages-Bp124-gx.mjs} +0 -0
- /package/dist/{packages-N3-2Kl-Y.d.mts → packages-CxPMEg8D.d.mts} +0 -0
- /package/dist/{platform-BrsMv_S3.mjs → platform-CxyYPrkf.mjs} +0 -0
- /package/dist/{provider-operation-DJ_TLZFf.d.mts → provider-operation-DbdyFwNm.d.mts} +0 -0
- /package/dist/{providers-CCcn4Ndp.mjs → providers-C-eekMxD.mjs} +0 -0
- /package/dist/{providers-namespace-DeJBh6MP.d.mts → providers-namespace-CfZKp-C0.d.mts} +0 -0
- /package/dist/{quick-lru-uwB0hP-y.mjs → quick-lru-CCEnf7y6.mjs} +0 -0
- /package/dist/{schema-jIapW8Kb.mjs → schema-C0opCPww.mjs} +0 -0
- /package/dist/{schema-introspection-C1wvklj9.mjs → schema-introspection-6-r_KEJQ.mjs} +0 -0
- /package/dist/{schemas-CeUI2i5j.d.mts → schemas-B50oWBuj.d.mts} +0 -0
- /package/dist/{schemas-CD0wOQxx.d.mts → schemas-B6Q-qdmn.d.mts} +0 -0
- /package/dist/{schemas-DgwEVUt-.mjs → schemas-B8hKbBwI.mjs} +0 -0
- /package/dist/{schemas-sMoRnBdZ.d.mts → schemas-BGvkTiCx.d.mts} +0 -0
- /package/dist/{schemas-BNdiVBWh.mjs → schemas-BivbWRkG.mjs} +0 -0
- /package/dist/{schemas-Cg-Kwp8c.d.mts → schemas-ChmQldVH.d.mts} +0 -0
- /package/dist/{schemas-VbB1FTxx.d.mts → schemas-D7ScxLrf.d.mts} +0 -0
- /package/dist/{schemas-DvMbcABQ.d.mts → schemas-Dd0po67F.d.mts} +0 -0
- /package/dist/{schemas-Cv3rR9Sz.d.mts → schemas-Pe892GgN.d.mts} +0 -0
- /package/dist/{schemas-qA279_j_.d.mts → schemas-bfZNpl0B.d.mts} +0 -0
- /package/dist/{schemas-mLpOfMoN.mjs → schemas-scyC2tFF.mjs} +0 -0
- /package/dist/{semver-DTXuyLcK.mjs → semver-BI7kTNsY.mjs} +0 -0
- /package/dist/{server-lifecycle-DKx_fWlq.mjs → server-lifecycle-B_OZnoe-.mjs} +0 -0
- /package/dist/{server-lifecycle-C_8iKgat.d.mts → server-lifecycle-L8zja8t8.d.mts} +0 -0
- /package/dist/{session-lineage-D5E142LU.d.mts → session-lineage-bUkd3fqx.d.mts} +0 -0
- /package/dist/{shared-schemas-aahW97QW.mjs → shared-schemas-CQ6blrEW.mjs} +0 -0
- /package/dist/{src-DHqsl5Pg.mjs → src-BacfeiI4.mjs} +0 -0
- /package/dist/{storage-namespace-Dz2jsssp.mjs → storage-namespace-BZce8kkW.mjs} +0 -0
- /package/dist/{storage-namespace-Tf3P5yJ5.d.mts → storage-namespace-YmE8XCCL.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CDef0E20.mjs → storage-namespace-definition-Cca-zwXU.mjs} +0 -0
- /package/dist/{supports-color-i7OTnKcZ.mjs → supports-color-SV_FgSN2.mjs} +0 -0
- /package/dist/{telemetry-BvCBUjFg.mjs → telemetry-BqoC87F-.mjs} +0 -0
- /package/dist/{timeout-B0nYjLc8.mjs → timeout-DVlN2Zhy.mjs} +0 -0
- /package/dist/{tray-menu-service-Deo6yyP8.mjs → tray-menu-service-eVVxgPLc.mjs} +0 -0
- /package/dist/{types-xCdGghb2.d.mts → types-BlB23n4f.d.mts} +0 -0
- /package/dist/{types-CNS55jvt.d.mts → types-DdpSEmTO.d.mts} +0 -0
- /package/dist/{types-Ce6LL25v.d.mts → types-tyv0B605.d.mts} +0 -0
- /package/dist/{ui-config-BIyGzMNL.mjs → ui-config-B35GloSX.mjs} +0 -0
- /package/dist/{variant-B4uWdxW7.mjs → variant-Dwnge3J_.mjs} +0 -0
- /package/dist/{window-registry-CoBJq3u4.mjs → window-registry-CKiMJjId.mjs} +0 -0
- /package/dist/{window-registry-BLtVx3Iw.d.mts → window-registry-Pcf35cac.d.mts} +0 -0
- /package/dist/{zod-json-schema-BAGAFfCN.mjs → zod-json-schema-Dixc-B1T.mjs} +0 -0
package/README.md
CHANGED
package/dist/.makaio-build.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-
|
|
3
|
+
"fingerprint": "25ca69d297c0d5b224063509e81806dd8302c105d6d0004126a233f97aa2d635",
|
|
4
|
+
"builtAt": "2026-09-01T10:32:58.708Z",
|
|
5
5
|
"declarations": true,
|
|
6
6
|
"declarationBackend": "tsc"
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e}from"./json-value-BBZ6uGwc.mjs";import"./shared-B9AWRm9A.mjs";import{g as t,h as n,m as r}from"./profile-N5qGUpF0.mjs";import{n as i}from"./version-BYeVh1pI.mjs";import{z as a}from"zod";const o=a.enum([`strong`,`alias`]),s=a.object({scheme:t,value:t,strength:o}),c=a.object({key:t,label:a.string(),usedPercentage:a.number().finite().min(0).max(100),resetsAt:n.optional()}),l=a.object({windows:a.array(c)}),u=a.record(a.string(),a.unknown()).optional(),d=a.object({clientId:t,found:a.boolean(),binaryPath:r.optional(),version:a.string().optional(),warningMessage:a.string().optional()}),f=a.object({clientId:t,binaryName:t,supportedVersions:i.optional()}),p=a.object({clientAccountId:t,clientId:t,observedAt:n,source:t,displayLabel:a.string().optional(),usage:l,metadata:u}),m=a.discriminatedUnion(`kind`,[a.object({kind:a.literal(`session`),sessionId:t}),a.object({kind:a.literal(`adapter-session`),adapterSessionId:t}),a.object({kind:a.literal(`both`),sessionId:t,adapterSessionId:t})]),h=a.object({clientId:a.string(),source:a.string(),kind:a.string(),observedAt:n,payload:e}),g={request:a.object({clientId:t,observedAt:n.optional(),displayLabel:a.string().optional(),identifiers:a.array(s).min(1),metadata:u}),response:a.object({clientAccountId:t,displayLabel:a.string().optional()})},_={request:h.extend({locator:m}),response:a.object({handled:a.boolean(),sessionId:t.nullable(),clientAccountId:t.nullable(),changed:a.boolean()})},v={request:a.object({clientId:t,observedAt:n,source:t,account:a.object({displayLabel:a.string().optional(),identifiers:a.array(s).min(1)}),usage:l,metadata:u}),response:a.object({clientAccountId:t,snapshot:p})};export{u as a,_ as c,p as d,c as f,h as i,m as l,g as n,d as o,l as p,o as r,f as s,s as t,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,T as n,c as r,d as i,f as a,g as o,h as s,k as c,l,m as u,o as d,p as f,s as p,t as m,u as h,v as g,wn as _,y as v}from"./schemas-_2Syo_01.mjs";import"./compression-CtgeVLpP.mjs";import"./provider-context-zTDSH2x9.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as y}from"@makaio/framework/core";const b={getCapabilities:_,startAgent:c,infer:e,listAgents:t,getAgent:n,stopAgent:v,rehydrateAgent:g,acknowledgeCallerSettlement:o,getConfigSchema:s,"agent.created":u,"session.created":f,"session.discovered":m,"session.usage":a,"session.closed":i,log:h,error:l,initialized:r,deinitialized:p,quota:d},x=y(`adapter`,b),S=x.subjects;export{S as n,b as r,x as t};
|
|
@@ -12,6 +12,68 @@ import { AdapterFileConfigSet, IAdapterConfigRepository, IAdapterConfigRepositor
|
|
|
12
12
|
import { AvailableAdapter, HelpLink } from "@makaio/framework/services/settings";
|
|
13
13
|
import { KernelExtensionContext as KernelExtensionContext$1, KernelMakaioExtension as KernelMakaioExtension$1 } from "@makaio/framework/kernel/extension";
|
|
14
14
|
|
|
15
|
+
//#region subsystems/adapter/src/adapter-instance-teardown.d.ts
|
|
16
|
+
/** One adapter instance's teardown, named so a caller can act per instance. */
|
|
17
|
+
interface AdapterInstanceTeardownResult extends ConnectorTeardownResult {
|
|
18
|
+
/** Runtime adapter ID whose instance this result belongs to. */
|
|
19
|
+
readonly adapterId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Every instance teardown of one shutdown, plus the class standing for all of them.
|
|
23
|
+
*
|
|
24
|
+
* Both halves are carried because they answer different questions: the aggregate
|
|
25
|
+
* is what a future instance retirement branches on, and the per-instance results
|
|
26
|
+
* are what a human triaging a weak aggregate needs in order to find the adapter
|
|
27
|
+
* responsible for it.
|
|
28
|
+
*/
|
|
29
|
+
interface AdapterInstanceShutdownReport extends ConnectorTeardownResult {
|
|
30
|
+
/** One result per instance that was live, in shutdown order. */
|
|
31
|
+
readonly results: readonly AdapterInstanceTeardownResult[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The failure a close hook that outlived its budget produces.
|
|
35
|
+
*
|
|
36
|
+
* A distinct type rather than a message, because the two failures this layer can
|
|
37
|
+
* see mean different things to whoever reads the report: a hook that **threw**
|
|
38
|
+
* reported its own failure, a hook that **timed out** reported nothing at all and
|
|
39
|
+
* may still be running. Both are `unknown`, and a reader that has to tell them
|
|
40
|
+
* apart should not be parsing prose to do it.
|
|
41
|
+
*/
|
|
42
|
+
declare class AdapterInstanceCloseTimeoutError extends Error {
|
|
43
|
+
readonly adapterId: string;
|
|
44
|
+
readonly timeoutMs: number;
|
|
45
|
+
/**
|
|
46
|
+
* @param adapterId - Runtime adapter ID whose close hook did not return.
|
|
47
|
+
* @param timeoutMs - Budget the hook was given.
|
|
48
|
+
*/
|
|
49
|
+
constructor(adapterId: string, timeoutMs: number);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Classify one attempted instance close.
|
|
53
|
+
*
|
|
54
|
+
* Declared beside the taxonomy it applies rather than inside the shutdown loop, so
|
|
55
|
+
* the rule stays readable and a second caller cannot restate it differently.
|
|
56
|
+
* @param adapterId - Runtime adapter ID being closed.
|
|
57
|
+
* @param failure - Failure the attempt produced, or `undefined` when it returned.
|
|
58
|
+
* @param hadCloseHook - Whether the instance exposed a close hook at all.
|
|
59
|
+
* @param reported - Evidence returned directly by the close hook, when available.
|
|
60
|
+
* @returns The class this attempt proves, with a `detail` for the weak ones.
|
|
61
|
+
*/
|
|
62
|
+
declare function classifyAdapterInstanceClose(adapterId: string, failure: unknown, hadCloseHook: boolean, reported: ConnectorTeardownResult | void): AdapterInstanceTeardownResult;
|
|
63
|
+
/**
|
|
64
|
+
* Reduce every instance teardown of one shutdown to the report a host publishes.
|
|
65
|
+
*
|
|
66
|
+
* Class and joined `detail` come from the contract's
|
|
67
|
+
* {@link aggregateTeardownResults} — the weakest in the set, `released` for an
|
|
68
|
+
* empty set — so a shutdown that hosted nothing and one whose adapters all let go
|
|
69
|
+
* answer the same, which is correct for every consumer of "may this instance be
|
|
70
|
+
* retired". What this layer adds is the per-instance breakdown the aggregate was
|
|
71
|
+
* derived from.
|
|
72
|
+
* @param results - Per-instance results, in shutdown order.
|
|
73
|
+
* @returns The aggregate class plus the results it was derived from.
|
|
74
|
+
*/
|
|
75
|
+
declare function aggregateAdapterInstanceTeardowns(results: readonly AdapterInstanceTeardownResult[]): AdapterInstanceShutdownReport;
|
|
76
|
+
//#endregion
|
|
15
77
|
//#region subsystems/adapter/src/adapter-runtime-types.d.ts
|
|
16
78
|
/**
|
|
17
79
|
* Minimal log import configuration surface needed by adapter lifecycle utilities.
|
|
@@ -76,6 +138,21 @@ interface AdapterInitOptions {
|
|
|
76
138
|
*/
|
|
77
139
|
prepareAuthRuntime?: unknown;
|
|
78
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Runtime identity injected immediately before the adapter factory is called.
|
|
143
|
+
*
|
|
144
|
+
* Stored adapter options intentionally exclude these values: the active
|
|
145
|
+
* authority incarnation changes across runtime lifetimes and must never be
|
|
146
|
+
* captured in contribution-time configuration.
|
|
147
|
+
*/
|
|
148
|
+
interface AdapterRuntimeInitOptions extends AdapterInitOptions {
|
|
149
|
+
/** Per-adapter unique identifier assigned by the runtime. */
|
|
150
|
+
adapterId: string;
|
|
151
|
+
/** Session-ownership authority incarnation hosting this adapter. */
|
|
152
|
+
ownerInstanceId: string;
|
|
153
|
+
/** Stable machine identity hosting this adapter runtime. */
|
|
154
|
+
machineId: string;
|
|
155
|
+
}
|
|
79
156
|
/**
|
|
80
157
|
* Minimal adapter instance surface returned by the adapter factory.
|
|
81
158
|
*
|
|
@@ -85,6 +162,12 @@ interface AdapterInitOptions {
|
|
|
85
162
|
interface AdapterInstance {
|
|
86
163
|
/** Unique identifier assigned when the adapter instance is created. */
|
|
87
164
|
adapterId?: string;
|
|
165
|
+
/** Preferred awaitable shutdown hook, which may report actual teardown evidence. */
|
|
166
|
+
closeAsync?: () => void | ConnectorTeardownResult | Promise<void | ConnectorTeardownResult>;
|
|
167
|
+
/** Legacy shutdown hook, which may report actual teardown evidence. */
|
|
168
|
+
shutdown?: () => void | ConnectorTeardownResult | Promise<void | ConnectorTeardownResult>;
|
|
169
|
+
/** Fire-and-forget compatible shutdown hook, which may report actual teardown evidence. */
|
|
170
|
+
close?: () => void | ConnectorTeardownResult | Promise<void | ConnectorTeardownResult>;
|
|
88
171
|
}
|
|
89
172
|
/**
|
|
90
173
|
* Provider definition resolved for one loaded adapter.
|
|
@@ -113,14 +196,13 @@ interface LoadedAdapter {
|
|
|
113
196
|
/**
|
|
114
197
|
* Factory function that creates a live adapter instance.
|
|
115
198
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* avoids a contravariant incompatibility at the core/host boundary.
|
|
199
|
+
* This core-layer runtime shape carries the authority and machine identities
|
|
200
|
+
* required by every live adapter. Host-specific fields stay opaque where the
|
|
201
|
+
* core layer does not need to inspect them.
|
|
120
202
|
* @param options - Initialization options forwarded by the runtime
|
|
121
203
|
* @returns Promise resolving to a live adapter instance
|
|
122
204
|
*/
|
|
123
|
-
factory: (options
|
|
205
|
+
factory: (options: AdapterRuntimeInitOptions) => Promise<AdapterInstance>;
|
|
124
206
|
/** Runtime initialization options merged from config and defaults. */
|
|
125
207
|
options: AdapterInitOptions;
|
|
126
208
|
/** Adapter-wide config schema (runtime-only, for adapter-level settings). */
|
|
@@ -157,67 +239,6 @@ interface LoadedAdapter {
|
|
|
157
239
|
protocol?: ProtocolId;
|
|
158
240
|
}
|
|
159
241
|
//#endregion
|
|
160
|
-
//#region subsystems/adapter/src/adapter-instance-teardown.d.ts
|
|
161
|
-
/** One adapter instance's teardown, named so a caller can act per instance. */
|
|
162
|
-
interface AdapterInstanceTeardownResult extends ConnectorTeardownResult {
|
|
163
|
-
/** Runtime adapter ID whose instance this result belongs to. */
|
|
164
|
-
readonly adapterId: string;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Every instance teardown of one shutdown, plus the class standing for all of them.
|
|
168
|
-
*
|
|
169
|
-
* Both halves are carried because they answer different questions: the aggregate
|
|
170
|
-
* is what a future instance retirement branches on, and the per-instance results
|
|
171
|
-
* are what a human triaging a weak aggregate needs in order to find the adapter
|
|
172
|
-
* responsible for it.
|
|
173
|
-
*/
|
|
174
|
-
interface AdapterInstanceShutdownReport extends ConnectorTeardownResult {
|
|
175
|
-
/** One result per instance that was live, in shutdown order. */
|
|
176
|
-
readonly results: readonly AdapterInstanceTeardownResult[];
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* The failure a close hook that outlived its budget produces.
|
|
180
|
-
*
|
|
181
|
-
* A distinct type rather than a message, because the two failures this layer can
|
|
182
|
-
* see mean different things to whoever reads the report: a hook that **threw**
|
|
183
|
-
* reported its own failure, a hook that **timed out** reported nothing at all and
|
|
184
|
-
* may still be running. Both are `unknown`, and a reader that has to tell them
|
|
185
|
-
* apart should not be parsing prose to do it.
|
|
186
|
-
*/
|
|
187
|
-
declare class AdapterInstanceCloseTimeoutError extends Error {
|
|
188
|
-
readonly adapterId: string;
|
|
189
|
-
readonly timeoutMs: number;
|
|
190
|
-
/**
|
|
191
|
-
* @param adapterId - Runtime adapter ID whose close hook did not return.
|
|
192
|
-
* @param timeoutMs - Budget the hook was given.
|
|
193
|
-
*/
|
|
194
|
-
constructor(adapterId: string, timeoutMs: number);
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Classify one attempted instance close.
|
|
198
|
-
*
|
|
199
|
-
* Declared beside the taxonomy it applies rather than inside the shutdown loop, so
|
|
200
|
-
* the rule stays readable and a second caller cannot restate it differently.
|
|
201
|
-
* @param adapterId - Runtime adapter ID being closed.
|
|
202
|
-
* @param failure - Failure the attempt produced, or `undefined` when it returned.
|
|
203
|
-
* @param hadCloseHook - Whether the instance exposed a close hook at all.
|
|
204
|
-
* @returns The class this attempt proves, with a `detail` for the weak ones.
|
|
205
|
-
*/
|
|
206
|
-
declare function classifyAdapterInstanceClose(adapterId: string, failure: unknown, hadCloseHook: boolean): AdapterInstanceTeardownResult;
|
|
207
|
-
/**
|
|
208
|
-
* Reduce every instance teardown of one shutdown to the report a host publishes.
|
|
209
|
-
*
|
|
210
|
-
* Class and joined `detail` come from the contract's
|
|
211
|
-
* {@link aggregateTeardownResults} — the weakest in the set, `released` for an
|
|
212
|
-
* empty set — so a shutdown that hosted nothing and one whose adapters all let go
|
|
213
|
-
* answer the same, which is correct for every consumer of "may this instance be
|
|
214
|
-
* retired". What this layer adds is the per-instance breakdown the aggregate was
|
|
215
|
-
* derived from.
|
|
216
|
-
* @param results - Per-instance results, in shutdown order.
|
|
217
|
-
* @returns The aggregate class plus the results it was derived from.
|
|
218
|
-
*/
|
|
219
|
-
declare function aggregateAdapterInstanceTeardowns(results: readonly AdapterInstanceTeardownResult[]): AdapterInstanceShutdownReport;
|
|
220
|
-
//#endregion
|
|
221
242
|
//#region subsystems/adapter/src/adapter-runtime-lifecycle.d.ts
|
|
222
243
|
/**
|
|
223
244
|
* Platform-provided defaults injected by the runtime host.
|
|
@@ -268,15 +289,6 @@ declare function toAvailableAdapter(adapter: LoadedAdapter): AvailableAdapter;
|
|
|
268
289
|
* @returns Per-instance results and the class standing for all of them.
|
|
269
290
|
*/
|
|
270
291
|
declare function shutdownAdapterInstances(instances: Map<string, AdapterInstance>): Promise<AdapterInstanceShutdownReport>;
|
|
271
|
-
/**
|
|
272
|
-
* Initialize the subset of loaded adapters that are enabled in settings.
|
|
273
|
-
* @param bus - Bus instance used for adapter-subsystem requests.
|
|
274
|
-
* @param machineId - Current machine identifier.
|
|
275
|
-
* @param adapters - Loaded adapter definitions to initialize.
|
|
276
|
-
* @param adapterInstances - Mutable instance registry.
|
|
277
|
-
* @param platformDefaults - Platform-provided adapter defaults.
|
|
278
|
-
*/
|
|
279
|
-
declare function initializeEnabledAdapters(bus: IMakaioBus, machineId: string, adapters: readonly LoadedAdapter[], adapterInstances: Map<string, AdapterInstance>, platformDefaults: PlatformDefaults): Promise<void>;
|
|
280
292
|
/**
|
|
281
293
|
* Ensure a file-backed adapter config exists for each loaded adapter.
|
|
282
294
|
*
|
|
@@ -312,6 +324,8 @@ interface AdapterSubsystemServiceOptions {
|
|
|
312
324
|
* Stable machine identifier used for deterministic adapter ID derivation.
|
|
313
325
|
*/
|
|
314
326
|
readonly machineId: string;
|
|
327
|
+
/** Resolve the currently active session-ownership authority incarnation. */
|
|
328
|
+
readonly resolveOwnerInstanceId?: () => string;
|
|
315
329
|
/**
|
|
316
330
|
* Platform-provided defaults forwarded to adapter factories.
|
|
317
331
|
*/
|
|
@@ -351,6 +365,7 @@ declare class AdapterSubsystemService extends BaseService {
|
|
|
351
365
|
private readonly contributionProcessor;
|
|
352
366
|
private readonly runtimeSnapshotHandlerPriority;
|
|
353
367
|
private readonly runtimeDefinitionHandlerPriority;
|
|
368
|
+
private readonly resolveOwnerInstanceId;
|
|
354
369
|
/**
|
|
355
370
|
* Create a new adapter subsystem service.
|
|
356
371
|
* @param options - Service dependencies provided by the package factory.
|
|
@@ -397,6 +412,33 @@ declare class AdapterSubsystemService extends BaseService {
|
|
|
397
412
|
* @returns Readonly map of adapter ID to live adapter instance.
|
|
398
413
|
*/
|
|
399
414
|
getAdapterInstances(): ReadonlyMap<string, AdapterInstance>;
|
|
415
|
+
/**
|
|
416
|
+
* Resolve a named adapter to its currently registered local instance ID.
|
|
417
|
+
* @param adapterName - Adapter driver name.
|
|
418
|
+
* @returns Live instance ID, or undefined when the adapter is not dispatchable.
|
|
419
|
+
*/
|
|
420
|
+
resolveLiveAdapterId(adapterName: string): string | undefined;
|
|
421
|
+
/**
|
|
422
|
+
* Resolve an exact currently live adapter identity.
|
|
423
|
+
* @param adapterId - Instance ID to resolve from the live runtime registry.
|
|
424
|
+
* @returns Exact identity, or `undefined` when no matching instance is live.
|
|
425
|
+
*/
|
|
426
|
+
resolveLiveAdapterIdentity(adapterId: string): {
|
|
427
|
+
adapterId: string;
|
|
428
|
+
adapterName: string;
|
|
429
|
+
machineId: string;
|
|
430
|
+
ownerInstanceId: string;
|
|
431
|
+
} | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* Snapshot every currently live adapter identity.
|
|
434
|
+
* @returns Exact identities for all dispatchable local instances.
|
|
435
|
+
*/
|
|
436
|
+
getLiveAdapterIdentities(): Array<{
|
|
437
|
+
adapterId: string;
|
|
438
|
+
adapterName: string;
|
|
439
|
+
machineId: string;
|
|
440
|
+
ownerInstanceId: string;
|
|
441
|
+
}>;
|
|
400
442
|
/**
|
|
401
443
|
* Return settings-facing available-adapter list derived from loaded adapters.
|
|
402
444
|
* @returns Readonly list of adapter metadata for the settings UI.
|
|
@@ -756,4 +798,4 @@ interface CreateAdapterSubsystemPackageOptions {
|
|
|
756
798
|
*/
|
|
757
799
|
declare function createAdapterSubsystemPackage(options: CreateAdapterSubsystemPackageOptions): MakaioNodeExtension<IMakaioBus>;
|
|
758
800
|
//#endregion
|
|
759
|
-
export { type AdapterInitOptions, type AdapterInstance, AdapterInstanceCloseTimeoutError, type AdapterInstanceShutdownReport, type AdapterInstanceTeardownResult, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, type ProviderConfigAuthValidationCode, ProviderConfigAuthValidationError, type ProviderConfigDiagnosticCode, ProviderConfigDiagnosticError, ProviderRuntimeContextError, type ProviderRuntimeContextErrorCode, type ValidatedProviderConfigAuth, aggregateAdapterInstanceTeardowns, assertProviderConfigAuthDefinitionsEnabled, classifyAdapterInstanceClose, contributesToAdapterSubsystem, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName,
|
|
801
|
+
export { type AdapterInitOptions, type AdapterInstance, AdapterInstanceCloseTimeoutError, type AdapterInstanceShutdownReport, type AdapterInstanceTeardownResult, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, type ProviderConfigAuthValidationCode, ProviderConfigAuthValidationError, type ProviderConfigDiagnosticCode, ProviderConfigDiagnosticError, ProviderRuntimeContextError, type ProviderRuntimeContextErrorCode, type ValidatedProviderConfigAuth, aggregateAdapterInstanceTeardowns, assertProviderConfigAuthDefinitionsEnabled, classifyAdapterInstanceClose, contributesToAdapterSubsystem, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName, orderAfterAdapterSubsystem, shutdownAdapterInstances, toAvailableAdapter, validateProviderConfigAuth };
|