@makaio/framework 1.0.0-dev-1783705652236 → 1.0.0-dev-1783973359164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/account-identity-BYfeWLe-.mjs +1 -0
- package/dist/adapter-auth-runtime-a4O7cSNP.mjs +1 -0
- package/dist/adapter-binding-DDUyv1JK.d.mts +254 -0
- package/dist/{adapter-CA8rPIUz.mjs → adapter-nl_xz9dz.mjs} +1 -1
- package/dist/adapter-subsystem/index.d.mts +120 -5
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/acp-client/index.d.mts +10 -0
- package/dist/adapters/acp-client/index.mjs +2 -2
- package/dist/adapters/config/index.d.mts +176 -153
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +1021 -1005
- 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 +7 -5
- package/dist/adapters/stream-session/index.mjs +1 -1
- package/dist/auth-C3NOWqTU.mjs +1 -0
- package/dist/authority-state-bootstrap-CEuKScnL.mjs +1 -0
- package/dist/{base-orchestrator-J1WKAUkF.d.mts → base-orchestrator-BiShpVKL.d.mts} +6 -0
- package/dist/bus/index.d.mts +10 -10
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-DV-Z8gsb.mjs → canonical-model-C31NaBJs.mjs} +1 -1
- package/dist/client-BkpLM8Fx.mjs +1 -0
- package/dist/client-binary-version-verifier-BK_vIjIo.mjs +2 -0
- package/dist/client-binary-version-verifier-BwrMTAh2.d.mts +179 -0
- package/dist/clients/index.d.mts +69 -85
- package/dist/clients/index.mjs +1 -2
- package/dist/clients/managed-install.d.mts +2 -0
- package/dist/clients/managed-install.mjs +1 -0
- package/dist/{clients-namespace-Bt_VTkEU.d.mts → clients-namespace-B96QIJOs.d.mts} +224 -21
- package/dist/compression-CZ_6fYq8.mjs +1 -0
- package/dist/config-namespace-DTA6EQL8.mjs +1 -0
- package/dist/{config-namespace-DqdFE6zk.d.mts → config-namespace-x0fuhEXe.d.mts} +73 -1
- package/dist/contracts/adapter/index.d.mts +3 -3
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/auth/index.d.mts +3 -0
- package/dist/contracts/auth/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/client/index.d.mts +3 -3
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +20 -93
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.d.mts +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +1161 -140
- 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 +2 -2
- 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/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +2 -2
- 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/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-s9PIua2B.d.mts → definition-Bj9Vr16H.d.mts} +1 -1
- package/dist/{definition-Cllhr9mi.d.mts → definition-BsTlOz99.d.mts} +36 -4
- package/dist/{definition-CuJvtYeG.d.mts → definition-Cbl0k6Fc.d.mts} +31 -1
- package/dist/definition-K3m51lgO.mjs +1 -0
- package/dist/definitions-C1pgx0Nq.mjs +1 -0
- package/dist/{detached-extension-handle-Cx6-0eqg.mjs → detached-extension-handle-vDK194QV.mjs} +1 -1
- package/dist/drizzle/0026_m_mrgvi7fq.sql +16 -0
- package/dist/drizzle/0027_m_mrgw0uzg.sql +1 -0
- package/dist/drizzle/0028_m_mrgx04i1.sql +1 -0
- package/dist/drizzle/0029_terminal-authority.sql +1 -0
- package/dist/drizzle/meta/_journal.json +28 -0
- package/dist/execution-target-Bg2wpfML.mjs +1 -0
- package/dist/{extension-CJClssfp.mjs → extension-CjTu6mzW.mjs} +1 -1
- package/dist/extension-D4iKUUMG.mjs +1 -0
- package/dist/{filesystem-service-Bmyqo6po.mjs → filesystem-service-maY_P3yA.mjs} +1 -1
- package/dist/git/index.mjs +1 -1
- package/dist/{globby-D4SANVoq.mjs → globby-CisClzat.mjs} +1 -1
- package/dist/handlers-RGs3eC9X.mjs +57 -0
- package/dist/{harness-DkUpbsuY.mjs → harness-DflvHAGV.mjs} +1 -1
- package/dist/index-9dISOTLT.d.mts +174 -0
- package/dist/{index-B9d_8_V2.d.mts → index-9g0agW_p.d.mts} +55 -55
- package/dist/{index-DScUb-hF.d.mts → index-BDr2Ba122.d.mts} +34 -11
- package/dist/{index-BcvG3wPv.d.mts → index-BKZAAWo2.d.mts} +185 -45
- package/dist/{index-CaerrEDH.d.mts → index-Bbr5LEUc.d.mts} +2 -2
- package/dist/{index-C23g_M_J2.d.mts → index-BmsPH78f2.d.mts} +50 -5
- package/dist/index-ButbwvVY.d.mts +1175 -0
- package/dist/index-BxuiHVFi.d.mts +284 -0
- package/dist/{index-DnnKUwHm.d.mts → index-C2C1qH1Y.d.mts} +38 -32
- package/dist/{index-ntS1EXlf.d.mts → index-C6LZOiDv.d.mts} +150 -2
- package/dist/{index-C9FCWOhp.d.mts → index-COC9jCdc.d.mts} +124 -22
- package/dist/{index-Cx1Bm6WD.d.mts → index-CVs0Qxks.d.mts} +8 -8
- package/dist/index-CagRgpXI2.d.mts +84 -0
- package/dist/{index-DoEF9LAc.d.mts → index-CtjLeK1F.d.mts} +3 -3
- package/dist/{index-DZPNuWMc.d.mts → index-Cx8jGKOs.d.mts} +4 -4
- package/dist/{index-h5go5Dtd.d.mts → index-D75FnT0B.d.mts} +1 -1
- package/dist/{index-FFVwQMad.d.mts → index-DNkR5yTY.d.mts} +3401 -594
- package/dist/{index-wq7XeqyG.d.mts → index-DXBiCH2y.d.mts} +27 -1
- package/dist/{index-B2DjrVb8.d.mts → index-DpZbaS7y.d.mts} +1194 -87
- package/dist/{index-BvTd61i5.d.mts → index-T96ydgVk.d.mts} +260 -160
- package/dist/{index-DLNRgZPo2.d.mts → index-j2YlW_Fc.d.mts} +1 -1
- package/dist/{index-PIlYSC73.d.mts → index-x2gFj3BK.d.mts} +41 -28
- 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-BOmKyjWD.mjs → lib-DIVnpS8e.mjs} +1 -1
- package/dist/{lib-DLZYp5z3.mjs → lib-DymjnkAP.mjs} +1 -1
- package/dist/{load-extensions-DNRIy4zC.d.mts → load-extensions-_EnedkUp.d.mts} +1 -1
- package/dist/{load-extensions-Cze1RHcG.mjs → load-extensions-nqL5WAKj.mjs} +1 -1
- package/dist/mcp-http-server/index.d.mts +27 -90
- package/dist/mcp-http-server/index.mjs +2 -2
- package/dist/model-uE5IyUFJ.mjs +1 -0
- package/dist/namespace-C05pkLbN.mjs +1 -0
- package/dist/{namespace-D9PLFmPQ.d.mts → namespace-CCZXyxSe.d.mts} +18 -18
- package/dist/namespace-D7pE2QWv.mjs +1 -0
- package/dist/{namespace-dFBD2ZmS.mjs → namespace-DwQtzlY-.mjs} +1 -1
- package/dist/namespace-HsI0Jbbr.mjs +1 -0
- package/dist/namespace-VmsT_tLJ.d.mts +3729 -0
- package/dist/namespace-Xp9-g_r-.mjs +1 -0
- package/dist/{native-session-supervisor-7ElwM6Is.mjs → native-session-supervisor-CdtVGWA9.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/node/transports/index.d.mts +36 -1
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{orchestrator-shared-ChygCvR1.mjs → orchestrator-shared-DAkGOu9H.mjs} +1 -1
- package/dist/{orchestrator-shared-DFLb1otg.d.mts → orchestrator-shared-pxtyNu3W.d.mts} +13 -6
- package/dist/package-BYpWkSuQ.mjs +1 -0
- package/dist/package-CsFFT9iR.mjs +7 -0
- package/dist/{package-DmVZxufT.d.mts → package-DG9GSY8M.d.mts} +52 -1
- package/dist/package.json +1 -1
- package/dist/{profile-BMBXUqqh.mjs → profile-D2m94ZYD.mjs} +1 -1
- package/dist/provider-context-BYkMl--1.mjs +1 -0
- package/dist/provider-context-DOsjOjiR.mjs +1 -0
- package/dist/{providers-namespace-5GoTlHXz.d.mts → providers-namespace-O4de1tgO.d.mts} +161 -14
- package/dist/resolved-O2XXjTeu.mjs +1 -0
- 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/client-binary-strategy-dependencies.d.mts +34 -0
- package/dist/runtime-node/client-binary-strategy-dependencies.mjs +1 -0
- 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 +25 -84
- 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 +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-7aKBGB7S.mjs → schema-BI0aCHvV.mjs} +1 -1
- package/dist/schemas-C-J4W1ID.mjs +1 -0
- package/dist/{schemas-Br-rSxPE2.d.mts → schemas-CoJCTFod2.d.mts} +8 -8
- package/dist/schemas-K3Td_WdR.d.mts +3175 -0
- package/dist/schemas-n9Ff6_RX.mjs +1 -0
- package/dist/schemas-th_nuC5t.mjs +1 -0
- package/dist/selection-YRuVSdck.mjs +1 -0
- package/dist/service-base/index.d.mts +4 -3
- package/dist/service-base/index.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 -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/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/definition/namespace.d.mts +1 -19
- package/dist/services/definition/schemas.d.mts +0 -9
- package/dist/services/definition/schemas.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +4 -4
- 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/git/namespace.mjs +1 -1
- package/dist/services/git/schemas.mjs +1 -1
- package/dist/services/harness/index.d.mts +6 -6
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +1591 -173
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/model-registry/index.d.mts +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +2 -2
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.d.mts +18 -0
- 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 +1 -1
- package/dist/services/session/testing/index.d.mts +2 -2
- package/dist/services/session/testing/index.mjs +10 -10
- 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 +18 -25
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +3 -3
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.d.mts +2 -2
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +3 -3
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/session-CAjudDuJ.mjs +76 -0
- package/dist/{session-DBfQkgdy.mjs → session-lRd8HZNZ.mjs} +1 -1
- package/dist/{shared-BVW-3Dhy.mjs → shared-RP_KARKF.mjs} +1 -1
- package/dist/{skill-N-ttlp1i.mjs → skill-CpNjWFuE.mjs} +1 -1
- package/dist/{src-Ck2sbaDa.mjs → src-Bo2eA51B.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 +9 -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-DEiMKTv9.mjs → tool-approval-service-Dh0XI21f.mjs} +1 -1
- package/dist/tools/index.d.mts +1 -1
- package/dist/tools-PC_L6g2m.mjs +1 -0
- package/dist/{transition-OzGXyy3p.d.mts → transition-CwUIm1hJ.d.mts} +10 -2
- package/dist/{types-BWduCvRU.d.mts → types-B-xY9WW2.d.mts} +1 -1
- package/dist/{types-CBLPaQXe.d.mts → types-BaDYigzD.d.mts} +486 -25
- package/dist/{types-BrUOVfwe.d.mts → types-DvKaEOOn.d.mts} +252 -19
- package/dist/ui-hooks/index.d.mts +103 -14
- package/dist/ui-hooks/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +3 -3
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/utils/keychain.mjs +1 -1
- package/dist/{version-DoV_pSzT.mjs → version-C1-VD-XL.mjs} +1 -1
- package/dist/workflow-DFJYGjq_.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +663 -60
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-BEFjCccX.mjs +1 -0
- package/package.json +13 -8
- package/dist/account-identity-C7Kx_ieU.mjs +0 -1
- package/dist/cleanEnvForAdapter-BooAgM2R.mjs +0 -1
- package/dist/client-DaR4mzqn.mjs +0 -1
- package/dist/compression-C5JAWdgZ.mjs +0 -1
- package/dist/config-namespace-CY9leBnE.mjs +0 -1
- package/dist/credential-ref-YWQQENEo.mjs +0 -1
- package/dist/definition-C-GVz7uw.mjs +0 -1
- package/dist/execution-target-BR8bLkCR.mjs +0 -1
- package/dist/extension-BS_4BOeO.mjs +0 -1
- package/dist/handlers-B74FvKlA.mjs +0 -57
- package/dist/index-BcwOnvUh.d.mts +0 -749
- package/dist/index-D6aAzr32.d.mts +0 -997
- package/dist/index-DtwGhFFQ.d.mts +0 -40
- package/dist/loop-gate-handlers-o2B5FPdF.mjs +0 -1
- package/dist/namespace-B4cV_pk3.d.mts +0 -1317
- package/dist/namespace-BO3tODGC.mjs +0 -1
- package/dist/namespace-CVMZVqB5.mjs +0 -1
- package/dist/namespace-DBHwyhME.mjs +0 -1
- package/dist/namespace-DibbhCPP.mjs +0 -1
- package/dist/package-CF_Zm2v4.mjs +0 -1
- package/dist/package-Co_GO3UD.mjs +0 -7
- package/dist/provider-context-CqMgPOWF.mjs +0 -1
- package/dist/provider-context-DC_eq7es.mjs +0 -1
- package/dist/schemas-CVo8qAK-.mjs +0 -1
- package/dist/schemas-CuG17U3L.mjs +0 -1
- package/dist/session-CX6QDhi2.mjs +0 -76
- package/dist/tools-CGFZkB7F.mjs +0 -1
- package/dist/workflow-C3dgVwTY.mjs +0 -1
- package/dist/workflow-worker-dH70EbjE.mjs +0 -1
- /package/dist/{ajv-B5dPIck0.mjs → ajv-DfHhgdS5.mjs} +0 -0
- /package/dist/{await-trigger-DwVldnMt.mjs → await-trigger-DP-fTQc4.mjs} +0 -0
- /package/dist/{capability-service-XlymTzz1.mjs → capability-service-Dg2bU8qc.mjs} +0 -0
- /package/dist/{client-CebV_fZc.d.mts → client-DmJwprw1.d.mts} +0 -0
- /package/dist/{create-static-mount-DkK28kKW.mjs → create-static-mount-CBTXRtbN.mjs} +0 -0
- /package/dist/{cross-spawn-CDXy3BjE.mjs → cross-spawn-D9WWFl2a.mjs} +0 -0
- /package/dist/{cursor-storage-luQAg7E_.mjs → cursor-storage-Bw-7ROzx.mjs} +0 -0
- /package/dist/{descriptor-to-package-DdpjpT7n.mjs → descriptor-to-package-Rs-OjOQU.mjs} +0 -0
- /package/dist/{drizzle-DVTAl7Us.mjs → drizzle-DYfaDzlO.mjs} +0 -0
- /package/dist/{esm-CQG9Pc7n.mjs → esm-C_WW4-pP.mjs} +0 -0
- /package/dist/{event-DguYjV6D.mjs → event-DTM0-qWP.mjs} +0 -0
- /package/dist/{extension-discovery-CIZn5bkq.d.mts → extension-discovery-APMf1Tes.d.mts} +0 -0
- /package/dist/{extension-namespace-v3K0qVry.mjs → extension-namespace-vrh4ERXR.mjs} +0 -0
- /package/dist/{facet-BM4y4aQP.mjs → facet-DqPBpqkl.mjs} +0 -0
- /package/dist/{filesystem-service-Cwp0sWNc.d.mts → filesystem-service-Bx0bR2Lb.d.mts} +0 -0
- /package/dist/{handler-BFNvtv5t.mjs → handler-4pKQi3eo.mjs} +0 -0
- /package/dist/{host-vY07gek-.mjs → host-BfgdjlII.mjs} +0 -0
- /package/dist/{identity-DC3Pk0ps.mjs → identity-2qUT1NME.mjs} +0 -0
- /package/dist/{index-COI1tjAf.d.mts → index-BZ_DSGnE.d.mts} +0 -0
- /package/dist/{index-D7rWAEY0.d.mts → index-Bd52mmj9.d.mts} +0 -0
- /package/dist/{index-Dfi8Rorw.d.mts → index-BkAKfh4d.d.mts} +0 -0
- /package/dist/{index-CuHqL95P.d.mts → index-Bv9lm0Kf.d.mts} +0 -0
- /package/dist/{index-C4nStEdA.d.mts → index-C18Pn3zP.d.mts} +0 -0
- /package/dist/{index-Cr9lh21j.d.mts → index-CarbJsC92.d.mts} +0 -0
- /package/dist/{index-BjoOSg95.d.mts → index-Ctw617Tj.d.mts} +0 -0
- /package/dist/{index-DUD7wikz2.d.mts → index-D0eUQjTU2.d.mts} +0 -0
- /package/dist/{index-O08Q2ikz.d.mts → index-DHGW7dFf.d.mts} +0 -0
- /package/dist/{index-DEzdNQum.d.mts → index-DfVSWBBp.d.mts} +0 -0
- /package/dist/{index-WHUV7neB.d.mts → index-DlAfs3RD.d.mts} +0 -0
- /package/dist/{index-D3ahzHwb.d.mts → index-DnWZdG6C.d.mts} +0 -0
- /package/dist/{index-CpKikwK4.d.mts → index-DoLdETfR.d.mts} +0 -0
- /package/dist/{index-B92mToDo2.d.mts → index-DvaPrL6C.d.mts} +0 -0
- /package/dist/{index-D7Hkmrr3.d.mts → index-DwDBa2mb.d.mts} +0 -0
- /package/dist/{index-Y8rMeYYX.d.mts → index-FDyqQIt5.d.mts} +0 -0
- /package/dist/{index-BWIkf5oJ.d.mts → index-Lp0T_V1W.d.mts} +0 -0
- /package/dist/{index-OGIC4puQ.d.mts → index-Rhcr4YNA.d.mts} +0 -0
- /package/dist/{index-BvLXySoB2.d.mts → index-S-mAqWwq.d.mts} +0 -0
- /package/dist/{index-DOOrKin9.d.mts → index-_zsihEmk.d.mts} +0 -0
- /package/dist/{json-value-DtIkQN7g.d.mts → json-value-C8duSh9X.d.mts} +0 -0
- /package/dist/{jsonl-transport-CGPgD8iU.mjs → jsonl-transport-l5NPcQ_2.mjs} +0 -0
- /package/dist/{lib-ZKtnbCqH.mjs → lib-ClRTNIuz.mjs} +0 -0
- /package/dist/{materialization-CUYxZCfk.mjs → materialization-BwTORtBr.mjs} +0 -0
- /package/dist/{model-registry-C2VXobZj.mjs → model-registry-BneK5SGo.mjs} +0 -0
- /package/dist/{model-registry-rYICIwyR.mjs → model-registry-C8MInDtX.mjs} +0 -0
- /package/dist/{namespace-65uwTpbg.d.mts → namespace-3YVLQ_bM.d.mts} +0 -0
- /package/dist/{namespace-BGIeqwfU.d.mts → namespace-B0uZIZYT.d.mts} +0 -0
- /package/dist/{namespace-CQ8uza7o.d.mts → namespace-BcDHt-ww.d.mts} +0 -0
- /package/dist/{namespace-BigVYQyx.d.mts → namespace-BhVlHfoO.d.mts} +0 -0
- /package/dist/{namespace-j7vFsmYL.d.mts → namespace-Bl1UhLnK.d.mts} +0 -0
- /package/dist/{namespace-CfvtDD_U.d.mts → namespace-BoA6u44C.d.mts} +0 -0
- /package/dist/{namespace-Dk4OslmY.d.mts → namespace-BsEoWXV_.d.mts} +0 -0
- /package/dist/{namespace-DYSFDC2G.mjs → namespace-C238RqwB.mjs} +0 -0
- /package/dist/{namespace-BdO4e1Fm.mjs → namespace-CDO4rY11.mjs} +0 -0
- /package/dist/{namespace-CZK2ff3B.d.mts → namespace-CukqFYHf2.d.mts} +0 -0
- /package/dist/{namespace-wke7juzy.mjs → namespace-DDx4NVJm.mjs} +0 -0
- /package/dist/{namespace-D1_9WVCo.d.mts → namespace-Dar3O6iT.d.mts} +0 -0
- /package/dist/{namespace-DAj_riOn.d.mts → namespace-DoNigVgx.d.mts} +0 -0
- /package/dist/{namespace-D2s-4pyg.d.mts → namespace-Dvi66QS6.d.mts} +0 -0
- /package/dist/{namespace-D8P8Sxce2.d.mts → namespace-rO-C2Dgu2.d.mts} +0 -0
- /package/dist/{out-BoEZjBNz.mjs → out-BB6Kb4Xu.mjs} +0 -0
- /package/dist/{platform-DnbSvm2u.mjs → platform-CWhGFQFX.mjs} +0 -0
- /package/dist/{providers-Bd7BOZs0.mjs → providers-CUnrif24.mjs} +0 -0
- /package/dist/{quick-lru-6e7I1Bgf.mjs → quick-lru-BLaSzINB.mjs} +0 -0
- /package/dist/{registry-U_3aYSin.mjs → registry-TJjQgTgp.mjs} +0 -0
- /package/dist/{schema-B5vHi7Uu.d.mts → schema-aOwmHxaF.d.mts} +0 -0
- /package/dist/{schema-CHp6I33k.mjs → schema-cus0dJ81.mjs} +0 -0
- /package/dist/{schema-introspection-B7xODt4I.mjs → schema-introspection-BsWLmoFp.mjs} +0 -0
- /package/dist/{schemas-KlH1hB7u.d.mts → schemas-9QJf1FtS.d.mts} +0 -0
- /package/dist/{schemas-CJ2JvA7d.d.mts → schemas-BolSW7pQ.d.mts} +0 -0
- /package/dist/{schemas-D4zaFE2p.d.mts → schemas-CLsbsX1W.d.mts} +0 -0
- /package/dist/{schemas-XeIBqwvE.mjs → schemas-CMyv7l7-.mjs} +0 -0
- /package/dist/{schemas-CPI00yvh.mjs → schemas-CWxf_Yut.mjs} +0 -0
- /package/dist/{schemas-BemsLc_V.d.mts → schemas-D_9X_CRo.d.mts} +0 -0
- /package/dist/{schemas-DZGnr9Tl.mjs → schemas-DwfTUQIa.mjs} +0 -0
- /package/dist/{schemas-CoFCV42v.d.mts → schemas-OaBqeEUT.d.mts} +0 -0
- /package/dist/{schemas-B6tEKf9T.d.mts → schemas-XRhqOgVE.d.mts} +0 -0
- /package/dist/{schemas-DKncXGnb.d.mts → schemas-fRLDhefF.d.mts} +0 -0
- /package/dist/{schemas-DWfo0wp4.d.mts → schemas-jDRSOXJL.d.mts} +0 -0
- /package/dist/{schemas-lnE9YoG7.d.mts → schemas-qpo1Goit.d.mts} +0 -0
- /package/dist/{schemas-t6h9oSct.d.mts → schemas-qt5QTjVc.d.mts} +0 -0
- /package/dist/{semver-CIhHqMkw.mjs → semver-BccS1s9R.mjs} +0 -0
- /package/dist/{server-lifecycle-C5Z5PSMD.mjs → server-lifecycle-D-jxVr_0.mjs} +0 -0
- /package/dist/{server-lifecycle-_AA6EfzL.d.mts → server-lifecycle-r5Tkk8bU.d.mts} +0 -0
- /package/dist/{session-lineage-C1M7-O3C.d.mts → session-lineage-YShrn77v.d.mts} +0 -0
- /package/dist/{shared-schemas-BEVG96xW.mjs → shared-schemas-BNCPgGYP.mjs} +0 -0
- /package/dist/{src-_VODAJnf.mjs → src-Ci_WY9uw.mjs} +0 -0
- /package/dist/{storage-namespace-D5q9CrBp.mjs → storage-namespace-BzE2M4Hq.mjs} +0 -0
- /package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-DWKFqEW-.d.mts} +0 -0
- /package/dist/{storage-namespace-definition-CzXPW45M.mjs → storage-namespace-definition-4UYuij1r.mjs} +0 -0
- /package/dist/{storage-namespace-definition-BffdI5Bz.d.mts → storage-namespace-definition-BZJGSaX3.d.mts} +0 -0
- /package/dist/{supports-color-DcXkvGDF.mjs → supports-color-Dzp6WuF5.mjs} +0 -0
- /package/dist/{telemetry-Cvi4rxiE.mjs → telemetry-B42EMbZt.mjs} +0 -0
- /package/dist/{timeout-XsYIOKrc.mjs → timeout-CvONPl0l.mjs} +0 -0
- /package/dist/{tray-menu-service-B2AxiQqL.mjs → tray-menu-service-Bonl2KXf.mjs} +0 -0
- /package/dist/{types-Bo78h9e3.d.mts → types-BCW9kr4L.d.mts} +0 -0
- /package/dist/{types-DCvp_swt.d.mts → types-CrJ7KEZ0.d.mts} +0 -0
- /package/dist/{types-BNW5n6qm.d.mts → types-DWNoZ3Sd.d.mts} +0 -0
- /package/dist/{ui-config-9bDRwFZr.mjs → ui-config-B2L3Xgqo.mjs} +0 -0
- /package/dist/{variant-5huHjUTm.mjs → variant-ByI-RZua.mjs} +0 -0
- /package/dist/{window-registry-PkrFIwX2.mjs → window-registry-DsWnCc8z.mjs} +0 -0
- /package/dist/{window-registry-ofIUQnfo.d.mts → window-registry-WsWu-rcK.d.mts} +0 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { t as AdapterAuthBinding } from "./adapter-binding-DDUyv1JK.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region core/contracts/src/auth/definitions.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Portable identifier used as an own-property key in authentication field maps.
|
|
7
|
+
*
|
|
8
|
+
* Prototype-mutating property names are rejected even when a specific consumer
|
|
9
|
+
* currently constructs null-prototype records. Keeping the restriction in the
|
|
10
|
+
* contract prevents a later plain-object consumer from changing field meaning.
|
|
11
|
+
*/
|
|
12
|
+
declare const AuthFieldIdSchema: z.ZodString;
|
|
13
|
+
/**
|
|
14
|
+
* Environment variable name accepted by authentication declarations.
|
|
15
|
+
*
|
|
16
|
+
* The contract intentionally models portable process-environment identifiers,
|
|
17
|
+
* not shell expressions or assignments.
|
|
18
|
+
*/
|
|
19
|
+
declare const AuthEnvironmentVariableNameSchema: z.ZodString;
|
|
20
|
+
/** Environment-variable source hint for an explicit credential field. */
|
|
21
|
+
declare const AuthCredentialSourceHintSchema: z.ZodObject<{
|
|
22
|
+
kind: z.ZodLiteral<"environment">;
|
|
23
|
+
variable: z.ZodString;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
/** Static declaration of one credential field required by an auth method. */
|
|
26
|
+
declare const AuthCredentialFieldDefinitionSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
label: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
required: z.ZodBoolean;
|
|
31
|
+
secret: z.ZodBoolean;
|
|
32
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"environment">;
|
|
34
|
+
variable: z.ZodString;
|
|
35
|
+
}, z.core.$strict>>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
/** Authentication method whose credential values must be resolved explicitly. */
|
|
38
|
+
declare const ExplicitAuthMethodDefinitionSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
mode: z.ZodLiteral<"explicit">;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
label: z.ZodString;
|
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
|
+
required: z.ZodBoolean;
|
|
48
|
+
secret: z.ZodBoolean;
|
|
49
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"environment">;
|
|
51
|
+
variable: z.ZodString;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
}, z.core.$strict>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
/** Authentication method backed by a native client's persisted auth state. */
|
|
56
|
+
declare const InferredAuthMethodDefinitionSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
mode: z.ZodLiteral<"inferred">;
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
description: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
/** Explicit declaration that a provider/client path requires no authentication. */
|
|
63
|
+
declare const NoAuthMethodDefinitionSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
mode: z.ZodLiteral<"none">;
|
|
66
|
+
label: z.ZodString;
|
|
67
|
+
description: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
/** Provider-owned auth methods are explicit or deliberately unauthenticated. */
|
|
70
|
+
declare const ProviderAuthMethodDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
mode: z.ZodLiteral<"explicit">;
|
|
73
|
+
label: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
description: z.ZodOptional<z.ZodString>;
|
|
79
|
+
required: z.ZodBoolean;
|
|
80
|
+
secret: z.ZodBoolean;
|
|
81
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
82
|
+
kind: z.ZodLiteral<"environment">;
|
|
83
|
+
variable: z.ZodString;
|
|
84
|
+
}, z.core.$strict>>;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
mode: z.ZodLiteral<"none">;
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
description: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>], "mode">;
|
|
92
|
+
/** Client-owned auth methods may additionally use native inferred auth. */
|
|
93
|
+
declare const ClientAuthMethodDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
mode: z.ZodLiteral<"explicit">;
|
|
96
|
+
label: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
label: z.ZodString;
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
required: z.ZodBoolean;
|
|
103
|
+
secret: z.ZodBoolean;
|
|
104
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"environment">;
|
|
106
|
+
variable: z.ZodString;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
mode: z.ZodLiteral<"inferred">;
|
|
112
|
+
label: z.ZodString;
|
|
113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
mode: z.ZodLiteral<"none">;
|
|
117
|
+
label: z.ZodString;
|
|
118
|
+
description: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strict>], "mode">;
|
|
120
|
+
/** Unique provider-owned auth method declarations. */
|
|
121
|
+
declare const ProviderAuthMethodsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
mode: z.ZodLiteral<"explicit">;
|
|
124
|
+
label: z.ZodString;
|
|
125
|
+
description: z.ZodOptional<z.ZodString>;
|
|
126
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
label: z.ZodString;
|
|
129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
130
|
+
required: z.ZodBoolean;
|
|
131
|
+
secret: z.ZodBoolean;
|
|
132
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
133
|
+
kind: z.ZodLiteral<"environment">;
|
|
134
|
+
variable: z.ZodString;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
mode: z.ZodLiteral<"none">;
|
|
140
|
+
label: z.ZodString;
|
|
141
|
+
description: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strict>], "mode">>;
|
|
143
|
+
/** Unique client-owned auth method declarations. */
|
|
144
|
+
declare const ClientAuthMethodsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
mode: z.ZodLiteral<"explicit">;
|
|
147
|
+
label: z.ZodString;
|
|
148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
149
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
label: z.ZodString;
|
|
152
|
+
description: z.ZodOptional<z.ZodString>;
|
|
153
|
+
required: z.ZodBoolean;
|
|
154
|
+
secret: z.ZodBoolean;
|
|
155
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"environment">;
|
|
157
|
+
variable: z.ZodString;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
mode: z.ZodLiteral<"inferred">;
|
|
163
|
+
label: z.ZodString;
|
|
164
|
+
description: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
mode: z.ZodLiteral<"none">;
|
|
168
|
+
label: z.ZodString;
|
|
169
|
+
description: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strict>], "mode">>;
|
|
171
|
+
/** Default native-auth selection declared by a client definition. */
|
|
172
|
+
declare const ClientDefaultAuthSchema: z.ZodObject<{
|
|
173
|
+
providerDefinitionId: z.ZodString;
|
|
174
|
+
methodId: z.ZodString;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
type AuthEnvironmentVariableName = z.infer<typeof AuthEnvironmentVariableNameSchema>;
|
|
177
|
+
type AuthFieldId = z.infer<typeof AuthFieldIdSchema>;
|
|
178
|
+
type AuthCredentialSourceHint = z.infer<typeof AuthCredentialSourceHintSchema>;
|
|
179
|
+
type AuthCredentialFieldDefinition = z.infer<typeof AuthCredentialFieldDefinitionSchema>;
|
|
180
|
+
type ExplicitAuthMethodDefinition = z.infer<typeof ExplicitAuthMethodDefinitionSchema>;
|
|
181
|
+
type InferredAuthMethodDefinition = z.infer<typeof InferredAuthMethodDefinitionSchema>;
|
|
182
|
+
type NoAuthMethodDefinition = z.infer<typeof NoAuthMethodDefinitionSchema>;
|
|
183
|
+
type ProviderAuthMethodDefinition = z.infer<typeof ProviderAuthMethodDefinitionSchema>;
|
|
184
|
+
type ClientAuthMethodDefinition = z.infer<typeof ClientAuthMethodDefinitionSchema>;
|
|
185
|
+
type ClientDefaultAuth = z.infer<typeof ClientDefaultAuthSchema>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region core/contracts/src/auth/resolved.d.ts
|
|
188
|
+
/**
|
|
189
|
+
* Provider authentication after the selected static method has been resolved.
|
|
190
|
+
* Plaintext values are deliberately absent; explicit credentials remain refs.
|
|
191
|
+
*/
|
|
192
|
+
declare const ResolvedProviderAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
mode: z.ZodLiteral<"explicit">;
|
|
194
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
195
|
+
owner: z.ZodLiteral<"provider">;
|
|
196
|
+
providerDefinitionId: z.ZodString;
|
|
197
|
+
methodId: z.ZodString;
|
|
198
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
199
|
+
owner: z.ZodLiteral<"client">;
|
|
200
|
+
clientId: z.ZodString;
|
|
201
|
+
methodId: z.ZodString;
|
|
202
|
+
}, z.core.$strict>], "owner">;
|
|
203
|
+
definition: z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
mode: z.ZodLiteral<"explicit">;
|
|
206
|
+
label: z.ZodString;
|
|
207
|
+
description: z.ZodOptional<z.ZodString>;
|
|
208
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
label: z.ZodString;
|
|
211
|
+
description: z.ZodOptional<z.ZodString>;
|
|
212
|
+
required: z.ZodBoolean;
|
|
213
|
+
secret: z.ZodBoolean;
|
|
214
|
+
sourceHints: z.ZodArray<z.ZodObject<{
|
|
215
|
+
kind: z.ZodLiteral<"environment">;
|
|
216
|
+
variable: z.ZodString;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
}, z.core.$strict>>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
222
|
+
mode: z.ZodLiteral<"inferred">;
|
|
223
|
+
method: z.ZodObject<{
|
|
224
|
+
owner: z.ZodLiteral<"client">;
|
|
225
|
+
clientId: z.ZodString;
|
|
226
|
+
methodId: z.ZodString;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
definition: z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
mode: z.ZodLiteral<"inferred">;
|
|
231
|
+
label: z.ZodString;
|
|
232
|
+
description: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
managerId: z.ZodString;
|
|
236
|
+
accountId: z.ZodString;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
+
mode: z.ZodLiteral<"none">;
|
|
240
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
+
owner: z.ZodLiteral<"provider">;
|
|
242
|
+
providerDefinitionId: z.ZodString;
|
|
243
|
+
methodId: z.ZodString;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
owner: z.ZodLiteral<"client">;
|
|
246
|
+
clientId: z.ZodString;
|
|
247
|
+
methodId: z.ZodString;
|
|
248
|
+
}, z.core.$strict>], "owner">;
|
|
249
|
+
definition: z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
mode: z.ZodLiteral<"none">;
|
|
252
|
+
label: z.ZodString;
|
|
253
|
+
description: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
}, z.core.$strict>], "mode">;
|
|
256
|
+
type ResolvedProviderAuth = z.infer<typeof ResolvedProviderAuthSchema>;
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region core/contracts/src/auth/binding-validation.d.ts
|
|
259
|
+
/** Credential-field subset required for delivery-semantic validation. */
|
|
260
|
+
interface AdapterAuthBindingCredentialFieldDefinition {
|
|
261
|
+
readonly id: string;
|
|
262
|
+
readonly required: boolean;
|
|
263
|
+
}
|
|
264
|
+
/** Static auth method accepted by adapter binding validation. */
|
|
265
|
+
type AdapterAuthBindingMethodDefinition = {
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly mode: 'explicit';
|
|
268
|
+
readonly fields: readonly AdapterAuthBindingCredentialFieldDefinition[];
|
|
269
|
+
} | {
|
|
270
|
+
readonly id: string;
|
|
271
|
+
readonly mode: 'inferred' | 'none';
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Assert that one adapter binding can faithfully deliver one static auth method.
|
|
275
|
+
*
|
|
276
|
+
* This is the single semantic validator shared by contribution discovery, UI
|
|
277
|
+
* compatibility reads, and Adapter Core. Structural Zod parsing remains the
|
|
278
|
+
* responsibility of the surrounding declaration contract.
|
|
279
|
+
* @param binding - Structurally valid adapter delivery binding.
|
|
280
|
+
* @param method - Authoritative provider/client auth method definition.
|
|
281
|
+
*/
|
|
282
|
+
declare function assertAdapterAuthBindingMatchesMethod(binding: AdapterAuthBinding, method: AdapterAuthBindingMethodDefinition): void;
|
|
283
|
+
//#endregion
|
|
284
|
+
export { NoAuthMethodDefinitionSchema as C, ProviderAuthMethodsSchema as E, NoAuthMethodDefinition as S, ProviderAuthMethodDefinitionSchema as T, ClientDefaultAuthSchema as _, AuthCredentialFieldDefinition as a, InferredAuthMethodDefinition as b, AuthCredentialSourceHintSchema as c, AuthFieldId as d, AuthFieldIdSchema as f, ClientDefaultAuth as g, ClientAuthMethodsSchema as h, ResolvedProviderAuthSchema as i, AuthEnvironmentVariableName as l, ClientAuthMethodDefinitionSchema as m, assertAdapterAuthBindingMatchesMethod as n, AuthCredentialFieldDefinitionSchema as o, ClientAuthMethodDefinition as p, ResolvedProviderAuth as r, AuthCredentialSourceHint as s, AdapterAuthBindingMethodDefinition as t, AuthEnvironmentVariableNameSchema as u, ExplicitAuthMethodDefinition as v, ProviderAuthMethodDefinition as w, InferredAuthMethodDefinitionSchema as x, ExplicitAuthMethodDefinitionSchema as y };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { J as ArtifactLifecycleHookEvent, Y as ArtifactLifecycleHookRegistration$1, z as AnyArtifactKindDefinition } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { J as ArtifactLifecycleHookEvent, Y as ArtifactLifecycleHookRegistration$1, z as AnyArtifactKindDefinition } from "./index-9g0agW_p.mjs";
|
|
2
|
+
import { s as AdapterProviderAuth$1 } from "./adapter-binding-DDUyv1JK.mjs";
|
|
3
|
+
import { A as VersionRange, O as VersionLiteral$1, r as ClientDefinition$1 } from "./definition-Cbl0k6Fc.mjs";
|
|
4
|
+
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-BsTlOz99.mjs";
|
|
5
|
+
import { t as RequiredTimeoutConfig } from "./index-Bv9lm0Kf.mjs";
|
|
6
|
+
import { H as SessionMessage$1, b as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1 } from "./types-BaDYigzD.mjs";
|
|
7
|
+
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-Bbr5LEUc.mjs";
|
|
8
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, y as WorkflowBlockCollection$1 } from "./transition-CwUIm1hJ.mjs";
|
|
9
|
+
import { l as FacetNamespaceDefinition } from "./index-DHGW7dFf.mjs";
|
|
10
|
+
import { t as SurfaceBindingDefinition } from "./definition-Bj9Vr16H.mjs";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
12
13
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -140,9 +141,10 @@ interface AdapterManifest {
|
|
|
140
141
|
/**
|
|
141
142
|
* Wire protocol(s) this adapter implements.
|
|
142
143
|
*
|
|
143
|
-
*
|
|
144
|
-
* {@link
|
|
145
|
-
*
|
|
144
|
+
* Each entry is either a plain {@link ProtocolId} string or a
|
|
145
|
+
* {@link ProtocolRef} config object with per-protocol overrides. An empty
|
|
146
|
+
* array explicitly identifies an SDK-native adapter that does not implement
|
|
147
|
+
* a framework wire protocol.
|
|
146
148
|
*/
|
|
147
149
|
readonly protocols: readonly ProtocolRef[];
|
|
148
150
|
/**
|
|
@@ -1408,12 +1410,19 @@ declare function extensionToken$1<T>(name: string): ExtensionToken$1<T>;
|
|
|
1408
1410
|
*
|
|
1409
1411
|
* The adapter declares which providers it can serve by stable definition ID.
|
|
1410
1412
|
* The adapter subsystem resolves each ID to a full {@link ProviderDefinitionInput}
|
|
1411
|
-
* from the provider registry at boot.
|
|
1412
|
-
*
|
|
1413
|
+
* from the provider registry at boot. An optional config schema overrides the
|
|
1414
|
+
* adapter-level default for this specific provider.
|
|
1413
1415
|
*/
|
|
1414
1416
|
interface AdapterProviderRef$1 {
|
|
1415
1417
|
/** Stable provider definition ID (e.g., `'anthropic'`, `'openai'`). */
|
|
1416
1418
|
readonly definitionId: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Exact HTTP inference protocol used through this adapter/provider path.
|
|
1421
|
+
*
|
|
1422
|
+
* Omit for SDK-native or subprocess-native transports that do not consume a
|
|
1423
|
+
* Makaio protocol endpoint.
|
|
1424
|
+
*/
|
|
1425
|
+
readonly protocol?: ProtocolId$1;
|
|
1417
1426
|
/**
|
|
1418
1427
|
* Provider-specific config schema override.
|
|
1419
1428
|
*
|
|
@@ -1421,11 +1430,10 @@ interface AdapterProviderRef$1 {
|
|
|
1421
1430
|
*/
|
|
1422
1431
|
readonly configSchema?: z.ZodObject<z.ZodRawShape>;
|
|
1423
1432
|
/**
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1426
|
-
* When present, overrides any adapter-level credential schema for this provider.
|
|
1433
|
+
* Runtime-only compatibility, delivery, and environment-scrubbing metadata
|
|
1434
|
+
* for authentication methods supported through this provider path.
|
|
1427
1435
|
*/
|
|
1428
|
-
readonly
|
|
1436
|
+
readonly auth?: AdapterProviderAuth$1;
|
|
1429
1437
|
}
|
|
1430
1438
|
/**
|
|
1431
1439
|
* Runtime contract for a single provider supported by an adapter.
|
|
@@ -1444,6 +1452,8 @@ interface AdapterProviderDefinitionContract$1 {
|
|
|
1444
1452
|
* narrows after the adapter subsystem merges the registry data.
|
|
1445
1453
|
*/
|
|
1446
1454
|
readonly definition: ProviderDefinitionInput$1;
|
|
1455
|
+
/** Exact protocol copied from the selected adapter/provider declaration. */
|
|
1456
|
+
readonly protocol?: ProtocolId$1;
|
|
1447
1457
|
/**
|
|
1448
1458
|
* Zod schema for provider-specific configuration fields.
|
|
1449
1459
|
*
|
|
@@ -1453,13 +1463,12 @@ interface AdapterProviderDefinitionContract$1 {
|
|
|
1453
1463
|
*/
|
|
1454
1464
|
readonly configSchema?: z.ZodObject<z.ZodRawShape>;
|
|
1455
1465
|
/**
|
|
1456
|
-
*
|
|
1466
|
+
* Validated adapter-specific authentication compatibility and delivery metadata.
|
|
1457
1467
|
*
|
|
1458
|
-
*
|
|
1459
|
-
*
|
|
1460
|
-
* Not serializable — kept in the definition, not the manifest.
|
|
1468
|
+
* Runtime-only: the adapter subsystem resolves this from the matching
|
|
1469
|
+
* {@link AdapterProviderRef} and carries it alongside the provider definition.
|
|
1461
1470
|
*/
|
|
1462
|
-
readonly
|
|
1471
|
+
readonly auth?: AdapterProviderAuth$1;
|
|
1463
1472
|
}
|
|
1464
1473
|
/**
|
|
1465
1474
|
* Runtime contract for an adapter contributed by an extension.
|
|
@@ -1519,11 +1528,6 @@ interface AdapterDefinitionContract$1<TAdapter = unknown, TOptions = never> {
|
|
|
1519
1528
|
* per-provider via {@link AdapterProviderRef.configSchema}.
|
|
1520
1529
|
*/
|
|
1521
1530
|
readonly providerConfigSchema?: z.ZodObject<z.ZodRawShape>;
|
|
1522
|
-
/**
|
|
1523
|
-
* Default credential schema applied to all providers unless overridden
|
|
1524
|
-
* per-provider via {@link AdapterProviderRef.credentialSchema}.
|
|
1525
|
-
*/
|
|
1526
|
-
readonly providerCredentialSchema?: z.ZodObject<z.ZodRawShape>;
|
|
1527
1531
|
/**
|
|
1528
1532
|
* Required timeout defaults for all adapter operations.
|
|
1529
1533
|
*
|
|
@@ -1615,8 +1619,8 @@ declare const ExtensionWarningActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1615
1619
|
* - `'degraded'` — the extension is operating in a degraded fallback mode.
|
|
1616
1620
|
*/
|
|
1617
1621
|
declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
|
|
1618
|
-
info: "info";
|
|
1619
1622
|
degraded: "degraded";
|
|
1623
|
+
info: "info";
|
|
1620
1624
|
recommended: "recommended";
|
|
1621
1625
|
}>;
|
|
1622
1626
|
/**
|
|
@@ -1627,8 +1631,8 @@ declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
|
|
|
1627
1631
|
*/
|
|
1628
1632
|
declare const ExtensionWarningSchema: z.ZodObject<{
|
|
1629
1633
|
severity: z.ZodEnum<{
|
|
1630
|
-
info: "info";
|
|
1631
1634
|
degraded: "degraded";
|
|
1635
|
+
info: "info";
|
|
1632
1636
|
recommended: "recommended";
|
|
1633
1637
|
}>;
|
|
1634
1638
|
title: z.ZodString;
|
|
@@ -1674,8 +1678,8 @@ declare const ExtensionWarningEntrySchema: z.ZodObject<{
|
|
|
1674
1678
|
extensionName: z.ZodString;
|
|
1675
1679
|
warnings: z.ZodArray<z.ZodObject<{
|
|
1676
1680
|
severity: z.ZodEnum<{
|
|
1677
|
-
info: "info";
|
|
1678
1681
|
degraded: "degraded";
|
|
1682
|
+
info: "info";
|
|
1679
1683
|
recommended: "recommended";
|
|
1680
1684
|
}>;
|
|
1681
1685
|
title: z.ZodString;
|
|
@@ -1825,6 +1829,8 @@ interface ExtensionContext$1<TBus extends MakaioBusLike = MakaioBusLike> {
|
|
|
1825
1829
|
* host-agnostic extensions can type themselves against {@link ExtensionContext}.
|
|
1826
1830
|
*/
|
|
1827
1831
|
interface NodeExtensionContext$1<TBus extends MakaioBusLike = MakaioBusLike> extends ExtensionContext$1<TBus> {
|
|
1832
|
+
/** Working directory selected by the Node host for relative filesystem operations. */
|
|
1833
|
+
readonly cwd?: string;
|
|
1828
1834
|
/** Current platform identifier (e.g., `'darwin'`, `'linux'`, `'win32'`). */
|
|
1829
1835
|
readonly platform: NodeJS.Platform;
|
|
1830
1836
|
/** User's home directory path. */
|
|
@@ -3620,7 +3626,7 @@ interface MakaioExtension$1<THostContext extends ExtensionContext$1 = NodeExtens
|
|
|
3620
3626
|
* which fields to hide, and per-field widget overrides (e.g. slider, color
|
|
3621
3627
|
* picker). Only meaningful when {@link configSchema} is also declared.
|
|
3622
3628
|
*/
|
|
3623
|
-
readonly uiConfig?: EntityUIConfig;
|
|
3629
|
+
readonly uiConfig?: EntityUIConfig$1;
|
|
3624
3630
|
/**
|
|
3625
3631
|
* Client runtime definitions contributed by this extension.
|
|
3626
3632
|
*
|
|
@@ -1,18 +1,109 @@
|
|
|
1
|
-
import { r as ExtensionDiscovery } from "./extension-discovery-
|
|
1
|
+
import { r as ExtensionDiscovery } from "./extension-discovery-APMf1Tes.mjs";
|
|
2
2
|
import { RegistrableBusNamespaceDefinition } from "@makaio/framework/core";
|
|
3
3
|
import { BusTransport, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
|
|
4
4
|
import { ExtensionConfigProvider, IWorkerNodeProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, LoopGateHandler, NormalizedWorkerNodeCapabilities, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerContributionManifest, WorkerNodeCapabilities, WorkerNodeDispatch, WorkerNodeHandle, WorkerNodeProvisionRequest, WorkerNodeRequirements, WorkflowDefinition, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas } from "@makaio/framework/contracts";
|
|
5
5
|
import { DispatchingAuth, TransportAuth } from "@makaio/framework/node/transports";
|
|
6
6
|
import { StorageEngine } from "@makaio/framework/storage/drizzle";
|
|
7
|
+
import { Toolset } from "@makaio/framework/tools";
|
|
7
8
|
import { ContributionProcessor, ExtensionCoordinator, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, TransportProvider, WindowRegistry } from "@makaio/framework/kernel";
|
|
8
9
|
import { IAdapterConfigRepository } from "@makaio/framework/services/adapter-subsystem";
|
|
9
10
|
import { PostInstallHandler, StrategyDependencies } from "@makaio/framework/clients";
|
|
10
11
|
import { DatabaseClient } from "@makaio/framework/storage/drizzle/client";
|
|
12
|
+
import { IAdapterConfigRepository as IAdapterConfigRepository$1, PlatformDefaults, createAdapterSubsystemPackage } from "@makaio/framework/adapter-subsystem";
|
|
11
13
|
import { PersistedMachineIdentity } from "@makaio/framework/node/machine-identity";
|
|
12
14
|
import { Hono } from "hono";
|
|
13
15
|
import { ConfigProvider } from "@makaio/framework/providers";
|
|
14
16
|
import { Server } from "node:http";
|
|
15
17
|
|
|
18
|
+
//#region runtimes/node/src/compose-adapter-runtime.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* Composition seam for booting a local adapter runtime.
|
|
21
|
+
*
|
|
22
|
+
* Encapsulates the proven host sequence for making `adapter.*` execution
|
|
23
|
+
* subjects locally owned, so every adapter-capable runtime composes it the
|
|
24
|
+
* same way instead of reinventing it. There are two phases because the kernel
|
|
25
|
+
* lifecycle requires it:
|
|
26
|
+
*
|
|
27
|
+
* 1. {@link prepareAdapterRuntime} — call **before** `coordinator.startAll()`:
|
|
28
|
+
* builds the adapter-subsystem package (add it to the coordinator load set)
|
|
29
|
+
* and registers the adapter contribution processor so adapter contributions
|
|
30
|
+
* are awaited during activation.
|
|
31
|
+
* 2. {@link activateAdapterRuntimeIdentity} — call **after** `coordinator.startAll()`:
|
|
32
|
+
* registers the adapter-runtime identity handlers and the adapter-name
|
|
33
|
+
* resolver, which resolve `adapterName` to the deterministic adapter id that
|
|
34
|
+
* live `AIAdapter` instances filter `AdapterSubjects.startAgent` on.
|
|
35
|
+
*
|
|
36
|
+
* The locality invariant this seam upholds: the `currentMachineId` passed to
|
|
37
|
+
* {@link activateAdapterRuntimeIdentity} MUST be the same machine id the
|
|
38
|
+
* coordinator injects as `extensionContextBase.machineId` (and therefore the
|
|
39
|
+
* id `AdapterSubsystemService` and `SubagentService` derive adapter ids from).
|
|
40
|
+
* If they diverge, `AdapterRuntimeSubjects.resolveId` yields an id no local
|
|
41
|
+
* adapter listens on and `startAgent` silently falls through to the transport.
|
|
42
|
+
*/
|
|
43
|
+
/** Input for {@link prepareAdapterRuntime} (the pre-`startAll` phase). */
|
|
44
|
+
interface PrepareAdapterRuntimeInput {
|
|
45
|
+
/** Coordinator that loads the adapter-subsystem package and owns activation. */
|
|
46
|
+
readonly coordinator: ExtensionCoordinator;
|
|
47
|
+
/** Persistence seam for adapter/provider configuration. */
|
|
48
|
+
readonly configRepository: IAdapterConfigRepository$1;
|
|
49
|
+
/** Platform defaults (cwd/env) supplied to adapter instances. */
|
|
50
|
+
readonly platformDefaults: PlatformDefaults;
|
|
51
|
+
/** Trusted non-serializable auth preparer forwarded to every loaded adapter. */
|
|
52
|
+
readonly prepareAuthRuntime?: unknown;
|
|
53
|
+
/** Priority for runtime snapshot handlers relative to connected control-plane peers. */
|
|
54
|
+
readonly runtimeSnapshotHandlerPriority?: number;
|
|
55
|
+
/** Priority for provider/client definition reads backing local runtime snapshots. */
|
|
56
|
+
readonly runtimeDefinitionHandlerPriority?: number;
|
|
57
|
+
}
|
|
58
|
+
/** Result of {@link prepareAdapterRuntime}. */
|
|
59
|
+
interface PreparedAdapterRuntime {
|
|
60
|
+
/**
|
|
61
|
+
* The adapter-subsystem package. The caller MUST add this to the array passed
|
|
62
|
+
* to `coordinator.load(...)`; its `create` reads `ctx.machineId`, so adapter
|
|
63
|
+
* ids derive from the coordinator's machine id.
|
|
64
|
+
*/
|
|
65
|
+
readonly adapterSubsystemPackage: ReturnType<typeof createAdapterSubsystemPackage>;
|
|
66
|
+
}
|
|
67
|
+
/** Input for {@link activateAdapterRuntimeIdentity} (the post-`startAll` phase). */
|
|
68
|
+
interface ActivateAdapterRuntimeIdentityInput {
|
|
69
|
+
/** Bus the identity handlers and name resolver are registered on. */
|
|
70
|
+
readonly bus: IMakaioBus;
|
|
71
|
+
/**
|
|
72
|
+
* The runtime's machine id. MUST equal the coordinator's
|
|
73
|
+
* `extensionContextBase.machineId` (see the locality invariant above).
|
|
74
|
+
*/
|
|
75
|
+
readonly currentMachineId: string;
|
|
76
|
+
/**
|
|
77
|
+
* Optional override for enumerating known adapter names. Defaults to querying
|
|
78
|
+
* `AdapterSubsystemSubjects.listAdapterConfigs` on the bus, matching the host.
|
|
79
|
+
*/
|
|
80
|
+
readonly listKnownAdapterNames?: () => Promise<Iterable<string>>;
|
|
81
|
+
}
|
|
82
|
+
/** Result of {@link activateAdapterRuntimeIdentity}. */
|
|
83
|
+
interface ActivatedAdapterRuntimeIdentity {
|
|
84
|
+
/** Tear down the identity handlers and the adapter-name resolver. */
|
|
85
|
+
readonly cleanup: () => void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Build the adapter-subsystem package and register its contribution processor.
|
|
89
|
+
*
|
|
90
|
+
* Call before `coordinator.startAll()`. Registering the contribution processor
|
|
91
|
+
* only stores it for use during activation, so it is order-independent relative
|
|
92
|
+
* to `coordinator.load(...)` as long as it happens before `startAll()`.
|
|
93
|
+
* @param input - Coordinator, config repository, and platform defaults.
|
|
94
|
+
* @returns The adapter-subsystem package to add to the coordinator load set.
|
|
95
|
+
*/
|
|
96
|
+
declare function prepareAdapterRuntime(input: PrepareAdapterRuntimeInput): PreparedAdapterRuntime;
|
|
97
|
+
/**
|
|
98
|
+
* Register the adapter-runtime identity handlers and adapter-name resolver.
|
|
99
|
+
*
|
|
100
|
+
* Call after `coordinator.startAll()` so that `CapabilityService` and the
|
|
101
|
+
* adapter subsystem have registered their handlers.
|
|
102
|
+
* @param input - Bus, the runtime machine id, and an optional name enumerator.
|
|
103
|
+
* @returns A cleanup that tears both registrations down.
|
|
104
|
+
*/
|
|
105
|
+
declare function activateAdapterRuntimeIdentity(input: ActivateAdapterRuntimeIdentityInput): ActivatedAdapterRuntimeIdentity;
|
|
106
|
+
//#endregion
|
|
16
107
|
//#region runtimes/node/src/hono-route-graph.d.ts
|
|
17
108
|
/**
|
|
18
109
|
* Options for {@link createHonoRouteGraph}.
|
|
@@ -1262,6 +1353,63 @@ declare class InProcessWorkflowRunner implements IWorkflowRunner {
|
|
|
1262
1353
|
run(config: WorkflowWorkerConfig, signal: AbortSignal, _manifest?: WorkerContributionManifest): Promise<WorkflowRunResult>;
|
|
1263
1354
|
}
|
|
1264
1355
|
//#endregion
|
|
1356
|
+
//#region runtimes/node/src/workflow-worker/isolated-workflow-runtime.d.ts
|
|
1357
|
+
/** Connect an isolated runtime bus to its authenticated authority. */
|
|
1358
|
+
type WorkflowRuntimeAuthorityConnector = (bus: IMakaioBus) => Promise<void>;
|
|
1359
|
+
/** Discover runtime contributions after the authority connection is authenticated. */
|
|
1360
|
+
type WorkflowRuntimeContributionLoader = (bus: IMakaioBus) => Promise<readonly KernelMakaioExtension[]>;
|
|
1361
|
+
/** Node host context supplied by the runtime composition root. */
|
|
1362
|
+
interface IsolatedWorkflowRuntimeContext {
|
|
1363
|
+
/** Working directory exposed to adapters and contributed packages. */
|
|
1364
|
+
readonly cwd: string;
|
|
1365
|
+
/** Current platform identifier. */
|
|
1366
|
+
readonly platform: NodeJS.Platform;
|
|
1367
|
+
/** User's home directory path. */
|
|
1368
|
+
readonly homedir: string;
|
|
1369
|
+
/** Resolved `.makaio` home directory. */
|
|
1370
|
+
readonly makaioHome: string;
|
|
1371
|
+
/** Current OS username. */
|
|
1372
|
+
readonly username: string;
|
|
1373
|
+
/** Stable runtime machine identity. */
|
|
1374
|
+
readonly machineId: string;
|
|
1375
|
+
}
|
|
1376
|
+
/** Inputs for composing an authority-backed isolated workflow runtime. */
|
|
1377
|
+
interface CreateIsolatedWorkflowRuntimeOptions {
|
|
1378
|
+
/** Connect the new bus to an already authenticated authority transport. */
|
|
1379
|
+
readonly connectAuthority: WorkflowRuntimeAuthorityConnector;
|
|
1380
|
+
/** Load authority-dependent contribution packages after authentication. */
|
|
1381
|
+
readonly loadContributedPackages?: WorkflowRuntimeContributionLoader;
|
|
1382
|
+
/** Exact extension packages contributed to this runtime. */
|
|
1383
|
+
readonly contributedPackages: readonly KernelMakaioExtension[];
|
|
1384
|
+
/** Adapter configuration persistence supplied by the authority host. */
|
|
1385
|
+
readonly configRepository: PrepareAdapterRuntimeInput['configRepository'];
|
|
1386
|
+
/** Trusted non-serializable adapter authentication preparer. */
|
|
1387
|
+
readonly prepareAuthRuntime?: PrepareAdapterRuntimeInput['prepareAuthRuntime'];
|
|
1388
|
+
/** Explicit Node host context for adapters and contributed packages. */
|
|
1389
|
+
readonly context: IsolatedWorkflowRuntimeContext;
|
|
1390
|
+
/** Toolsets explicitly authorized for this runtime. */
|
|
1391
|
+
readonly toolsets: readonly Toolset[];
|
|
1392
|
+
}
|
|
1393
|
+
/** Active isolated workflow runtime and its owned lifecycle. */
|
|
1394
|
+
interface IsolatedWorkflowRuntime {
|
|
1395
|
+
readonly bus: IMakaioBus;
|
|
1396
|
+
readonly coordinator: ExtensionCoordinator;
|
|
1397
|
+
readonly machineId: string;
|
|
1398
|
+
/** Release all runtime-owned resources in reverse startup order. */
|
|
1399
|
+
readonly shutdown: () => Promise<void>;
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* Compose an isolated, authority-backed runtime for workflow agent steps.
|
|
1403
|
+
*
|
|
1404
|
+
* The runtime deliberately owns no database and installs no local storage
|
|
1405
|
+
* handlers. Session lifecycle and usage requests therefore cross the supplied
|
|
1406
|
+
* authenticated authority connection. Product bootstrap, package discovery,
|
|
1407
|
+
* relay policy, and worker-pool concerns remain with the caller.
|
|
1408
|
+
* @param options - Authority connection, packages, adapter preparation, host context, and tools.
|
|
1409
|
+
* @returns A started runtime with an idempotent shutdown handle.
|
|
1410
|
+
*/
|
|
1411
|
+
declare function createIsolatedWorkflowRuntime(options: CreateIsolatedWorkflowRuntimeOptions): Promise<IsolatedWorkflowRuntime>;
|
|
1412
|
+
//#endregion
|
|
1265
1413
|
//#region runtimes/node/src/workflow-worker/workflow-loader.d.ts
|
|
1266
1414
|
/**
|
|
1267
1415
|
* Resolve a {@link RuntimeLoadedWorkflow} from the parsed worker config.
|
|
@@ -1324,4 +1472,4 @@ declare function loadWorkflowModules(source: Exclude<WorkflowWorkerSource, {
|
|
|
1324
1472
|
*/
|
|
1325
1473
|
declare function loadWorkflowModule(source: WorkflowWorkerSource): Promise<RuntimeLoadedWorkflow>;
|
|
1326
1474
|
//#endregion
|
|
1327
|
-
export {
|
|
1475
|
+
export { HonoRouteGraph as $, TransportReadyInfo as A, HostCapabilityDeclaration as B, ThinWorkflowPiscinaRunnerOptions as C, CoreBootOptions as D, BootMakaioRuntimeOptions as E, resolveWorkflowWorkerEntry as F, FrameworkModuleResolver as G, selectFrameworkCorePackages as H, DatabaseBootOptions as I, resolveFrameworkSpecifier as J, NodeFrameworkModuleResolver as K, InitializeNodeDatabaseOptions as L, WorkflowRunnerBootOptions as M, WorkflowWorkerEntryMode as N, MakaioRuntime as O, WorkflowWorkerEntryResolverOptions as P, HttpRouteContribution as Q, InitializeNodeDatabaseResult as R, RuntimeLoadedWorkflow as S, BootCoordinatorSetupContext as T, ShutdownStep as U, normalizeNodeHostCapabilities as V, BridgeBrowserOptions as W, createHttpRouteGraphBuilder as X, HttpRouteGraphBuilder as Y, HttpContributionPhase as Z, NodeWorkflowRunnerPackageOptions as _, IsolatedWorkflowRuntime as a, PreparedAdapterRuntime as at, ThinWorkflowPiscinaRunner as b, WorkflowRuntimeContributionLoader as c, InProcessWorkflowRunnerOptions as d, HonoRouteGraphOptions as et, PiscinaThinWorkflowProvider as f, CreateNodeWorkflowRunnerPackageOptionsParams as g, WorkerNodeRunnerOptions as h, CreateIsolatedWorkflowRuntimeOptions as i, PrepareAdapterRuntimeInput as it, UpstreamTelemetryBootOptions as j, ServerTransportProvider as k, createIsolatedWorkflowRuntime as l, WorkerNodeRunner as m, loadWorkflowModules as n, ActivateAdapterRuntimeIdentityInput as nt, IsolatedWorkflowRuntimeContext as o, activateAdapterRuntimeIdentity as ot, PiscinaThinWorkflowProviderOptions as p, NoopFrameworkModuleResolver as q, loadWorkflowFromConfig as r, ActivatedAdapterRuntimeIdentity as rt, WorkflowRuntimeAuthorityConnector as s, prepareAdapterRuntime as st, loadWorkflowModule as t, createHonoRouteGraph as tt, InProcessWorkflowRunner as u, createNodeWorkflowRunner as v, WorkflowRunResult$1 as w, IWorkflowRunner$1 as x, createNodeWorkflowRunnerPackageOptions as y, initializeNodeDatabase as z };
|