@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ExtractSubjectPayload, ExtractSubjectResponse, HandlerForSubjectDefinition, ScopedSubjectDefinition, SubjectRecord } from "@makaio/framework/core";
|
|
2
|
+
import { AuthenticationError, ExtractSubjectPayload, ExtractSubjectResponse, HandlerForSubjectDefinition, ScopedSubjectDefinition, SubjectRecord } from "@makaio/framework/core";
|
|
3
3
|
import { IFilteredBus, IMakaioBus, OnOptions, ScopedBus } from "@makaio/framework/bus";
|
|
4
|
-
import { AIModel, AIReasoningLevel, AIReasoningLevel as AIReasoningLevel$1, AgentSchemas, AgentSubjects, CacheStrategy, JsonValue, McpRuntimeSessionContext, McpSessionContext, McpToolState, Message, MessageBlock, MessageDeliveryMode, MessageDeliveryMode as MessageDeliveryMode$1, MessageInput, MessageOutcome, NativeForkDirective, ProviderContext, ReasoningLevelMap as ReasoningLevelMap$1, RequestCorrelationContext, ResponseSchemaDescriptor, SendMessageResultInnerResult, SessionContext, StructuredOutputValidation, SystemPrompt, ToolListItem } from "@makaio/framework/contracts";
|
|
4
|
+
import { AIModel, AIReasoningLevel, AIReasoningLevel as AIReasoningLevel$1, AdapterAuthBinding, AdapterAuthConstant, AdapterProviderAuth, AdapterProviderDefinitionContract, AgentSchemas, AgentSubjects, AuthCredentialRef, CacheStrategy, JsonValue, McpRuntimeSessionContext, McpSessionContext, McpToolState, Message, MessageBlock, MessageDeliveryMode, MessageDeliveryMode as MessageDeliveryMode$1, MessageInput, MessageOutcome, NativeForkDirective, ProtocolId, ProviderContext, ReasoningLevelMap as ReasoningLevelMap$1, RequestCorrelationContext, ResolvedProviderAuth, ResponseSchemaDescriptor, SendMessageResultInnerResult, SessionContext, StructuredOutputValidation, SystemPrompt, ToolListItem } from "@makaio/framework/contracts";
|
|
5
|
+
import { ClientExecutionContext } from "@makaio/framework/contracts/client";
|
|
5
6
|
import { DeferredPromise, TimeoutConfig, TrackedTimeoutConfig } from "@makaio/framework/utils";
|
|
6
7
|
import { SetRequired } from "type-fest";
|
|
7
8
|
|
|
@@ -240,6 +241,13 @@ interface MessageHandleOptions {
|
|
|
240
241
|
* `user_message.sent` event is emitted for the synthetic retry message.
|
|
241
242
|
*/
|
|
242
243
|
internalRetry?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Lifecycle turnId from the session orchestrator. Distinct from
|
|
246
|
+
* `requestCorrelation.turnId` (transport correlation, which may be present
|
|
247
|
+
* when no lifecycle turn exists): all user_message lifecycle events for the
|
|
248
|
+
* handle pair by this value.
|
|
249
|
+
*/
|
|
250
|
+
turnId?: string;
|
|
243
251
|
}
|
|
244
252
|
/**
|
|
245
253
|
* Processing state for agent orchestration.
|
|
@@ -279,6 +287,14 @@ declare class MessageHandle {
|
|
|
279
287
|
readonly internalRetry: boolean;
|
|
280
288
|
/** Content-free transport correlation for provider requests. */
|
|
281
289
|
readonly requestCorrelation?: RequestCorrelationContext | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* Lifecycle turnId from the session orchestrator (`agent.sendMessage.turnId`).
|
|
292
|
+
* Distinct from `requestCorrelation.turnId`, which is transport correlation
|
|
293
|
+
* and may be present when no lifecycle turn exists. All user_message
|
|
294
|
+
* lifecycle events for this handle (sent/acknowledged/completed) pair by
|
|
295
|
+
* this value.
|
|
296
|
+
*/
|
|
297
|
+
readonly turnId?: string | undefined;
|
|
282
298
|
protected readonly deferredCompletion: DeferredPromise<MessageResult>;
|
|
283
299
|
protected readonly deferredAcknowledgement: DeferredPromise<boolean>;
|
|
284
300
|
state: MessageState;
|
|
@@ -323,7 +339,16 @@ declare class MessageHandle {
|
|
|
323
339
|
|
|
324
340
|
cacheStrategy?: CacheStrategy, /** Content-free transport correlation for provider requests. */
|
|
325
341
|
|
|
326
|
-
requestCorrelation?: RequestCorrelationContext | undefined
|
|
342
|
+
requestCorrelation?: RequestCorrelationContext | undefined,
|
|
343
|
+
/**
|
|
344
|
+
* Lifecycle turnId from the session orchestrator (`agent.sendMessage.turnId`).
|
|
345
|
+
* Distinct from `requestCorrelation.turnId`, which is transport correlation
|
|
346
|
+
* and may be present when no lifecycle turn exists. All user_message
|
|
347
|
+
* lifecycle events for this handle (sent/acknowledged/completed) pair by
|
|
348
|
+
* this value.
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
turnId?: string | undefined);
|
|
327
352
|
/**
|
|
328
353
|
* Curated message history from sessionContext
|
|
329
354
|
* @returns The message history array or undefined if not set
|
|
@@ -760,11 +785,16 @@ interface ConfigFactoryInput<TBus extends ScopedBus<string> = ScopedBus<string>>
|
|
|
760
785
|
adapterId: string;
|
|
761
786
|
/** Adapter type name (required - provided by AIAgent from adapter) */
|
|
762
787
|
adapterName: string;
|
|
763
|
-
/**
|
|
764
|
-
* Unresolved provider context (credential refs, not plaintext).
|
|
765
|
-
* Connectors resolve credentials locally via `resolveConnectorCredentials()`.
|
|
766
|
-
*/
|
|
788
|
+
/** Refs-only normalized provider selection consumed by the common auth runtime. */
|
|
767
789
|
providerContext: ProviderContext;
|
|
790
|
+
/** Exact HTTP protocol declared by the selected adapter/provider reference. */
|
|
791
|
+
providerProtocol?: ProtocolId;
|
|
792
|
+
/** Adapter/provider auth metadata selected by `providerContext.definitionId`. */
|
|
793
|
+
adapterProviderAuth?: AdapterProviderAuth;
|
|
794
|
+
/** Other adapter/provider auth declarations contributing to the scrub union. */
|
|
795
|
+
compatibleProviderAuths?: readonly AdapterProviderAuth[];
|
|
796
|
+
/** Whether this adapter rejects the unresolved provider state. */
|
|
797
|
+
providerContextRequired?: boolean;
|
|
768
798
|
/** Provider's session ID for resuming existing conversations */
|
|
769
799
|
adapterSessionId?: string;
|
|
770
800
|
/** Makaio session ID for tool execution context and multi-session correlation */
|
|
@@ -843,6 +873,175 @@ interface IAdapterConfigFactory<TConfig extends BaseAgentConnectorConfig, TBus e
|
|
|
843
873
|
getConfig(input: ConfigFactoryInput<TBus>): Promise<TConfig>;
|
|
844
874
|
}
|
|
845
875
|
//#endregion
|
|
876
|
+
//#region adapters/core/src/types/provider-definition.d.ts
|
|
877
|
+
/**
|
|
878
|
+
* Runtime adapter provider definition pairing a serializable provider definition
|
|
879
|
+
* with optional runtime-only provider configuration metadata.
|
|
880
|
+
*
|
|
881
|
+
* Aliases {@link AdapterProviderDefinitionContract} from `@makaio/contracts`,
|
|
882
|
+
* the single source of truth for the `definition` and `configSchema` fields.
|
|
883
|
+
* The domain-specific name keeps adapter implementation signatures readable
|
|
884
|
+
* without creating a second provider-definition contract.
|
|
885
|
+
*
|
|
886
|
+
* Each adapter exports an array of these from its `definition.ts` (via `providers`).
|
|
887
|
+
* The `definition` field contains serializable data (models, endpoints, etc.).
|
|
888
|
+
* Config schemas are runtime-only — used for UI form generation, never serialized.
|
|
889
|
+
*/
|
|
890
|
+
type AdapterProviderDefinition = AdapterProviderDefinitionContract;
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region adapters/core/src/config/resolve-adapter-auth.d.ts
|
|
893
|
+
/** Stable normalized adapter-auth failure categories. */
|
|
894
|
+
type AdapterAuthErrorReason = 'provider-context-unresolved' | 'binding-missing' | 'binding-ambiguous' | 'client-mismatch' | 'credential-resolution-failed' | 'credential-missing' | 'runtime-bus-missing' | 'native-auth-unavailable';
|
|
895
|
+
/** Typed, credential-free failure at the normalized adapter-auth boundary. */
|
|
896
|
+
declare class AdapterAuthError extends AuthenticationError {
|
|
897
|
+
readonly reason: AdapterAuthErrorReason;
|
|
898
|
+
/**
|
|
899
|
+
* Create a normalized adapter-auth failure.
|
|
900
|
+
* @param reason - Stable failure category
|
|
901
|
+
* @param message - Credential-free diagnostic
|
|
902
|
+
*/
|
|
903
|
+
constructor(reason: AdapterAuthErrorReason, message: string);
|
|
904
|
+
}
|
|
905
|
+
/** Plaintext values produced by the trusted credential resolver. */
|
|
906
|
+
type ResolvedAuthCredentialValues = Readonly<Record<string, string>>;
|
|
907
|
+
/** Resolve normalized credential refs without exposing them outside the trusted consumer. */
|
|
908
|
+
type ResolveAuthCredentialRefs = (credentialRefs: Readonly<Record<string, AuthCredentialRef>>) => Promise<ResolvedAuthCredentialValues>;
|
|
909
|
+
/** Input for binding one normalized provider selection to an adapter declaration. */
|
|
910
|
+
interface BindProviderAuthOptions {
|
|
911
|
+
/** Resolved provider authentication selection containing refs but no plaintext. */
|
|
912
|
+
readonly auth: ResolvedProviderAuth;
|
|
913
|
+
/** Authentication declaration for the selected adapter/provider junction. */
|
|
914
|
+
readonly adapterProviderAuth: AdapterProviderAuth;
|
|
915
|
+
/** Other compatible declarations whose environment sinks must also be scrubbed. */
|
|
916
|
+
readonly compatibleProviderAuths?: readonly AdapterProviderAuth[];
|
|
917
|
+
}
|
|
918
|
+
/** Immutable refs-only adapter binding emitted before connector-local resolution. */
|
|
919
|
+
interface BoundProviderAuthContext {
|
|
920
|
+
/** Selected normalized provider authentication. */
|
|
921
|
+
readonly auth: ResolvedProviderAuth;
|
|
922
|
+
/** The single adapter delivery binding matching the selected method exactly. */
|
|
923
|
+
readonly binding: AdapterAuthBinding;
|
|
924
|
+
/** Complete adapter-wide environment variables removed before selected delivery. */
|
|
925
|
+
readonly scrubEnvVars: readonly string[];
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Select optional field IDs from an explicit normalized auth selection.
|
|
929
|
+
*
|
|
930
|
+
* Trusted credential resolvers use this policy to omit only selected optional
|
|
931
|
+
* refs whose backing secret is unavailable. Keeping it next to the binding
|
|
932
|
+
* contract guarantees host and container materialization share one rule.
|
|
933
|
+
* @param bound - Exact provider/auth binding selected for one adapter runtime.
|
|
934
|
+
* @returns Field IDs whose unavailable refs may be omitted during resolution.
|
|
935
|
+
*/
|
|
936
|
+
declare function getOptionalAuthCredentialFields(bound: BoundProviderAuthContext): readonly string[];
|
|
937
|
+
/** One immutable connector-owned authentication operation. */
|
|
938
|
+
interface ResolvedConnectorAuthDelivery {
|
|
939
|
+
/** Adapter-specific operation identifier. */
|
|
940
|
+
readonly target: string;
|
|
941
|
+
/** Plaintext fields and constant/null suppressions consumed by the operation. */
|
|
942
|
+
readonly values: Readonly<Record<string, AdapterAuthConstant>>;
|
|
943
|
+
}
|
|
944
|
+
/** Immutable connector-local authentication snapshot. */
|
|
945
|
+
interface ResolvedAdapterAuth {
|
|
946
|
+
/** Selected plaintext values delivered to a spawned process. */
|
|
947
|
+
readonly processEnv: Readonly<Record<string, string>>;
|
|
948
|
+
/** Selected adapter-specific connector operations. */
|
|
949
|
+
readonly connectorDeliveries: readonly ResolvedConnectorAuthDelivery[];
|
|
950
|
+
/** Native auth is inherited only for inferred methods. */
|
|
951
|
+
readonly configInheritance: 'auth-only' | 'empty';
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Bind normalized provider authentication to one exact adapter delivery declaration.
|
|
955
|
+
*
|
|
956
|
+
* The result remains refs-only and can therefore travel through adapter configuration
|
|
957
|
+
* plumbing without exposing plaintext. Every object is cloned by schema parsing and
|
|
958
|
+
* deeply frozen so connector startup observes one stable selection.
|
|
959
|
+
* @param options - Selected auth plus selected and compatible adapter declarations.
|
|
960
|
+
* @returns Immutable refs-only provider auth binding.
|
|
961
|
+
*/
|
|
962
|
+
declare function bindProviderAuth(options: BindProviderAuthOptions): BoundProviderAuthContext;
|
|
963
|
+
/**
|
|
964
|
+
* Resolve a bound provider auth context into one immutable connector-local snapshot.
|
|
965
|
+
*
|
|
966
|
+
* Explicit refs are resolved exactly once. Only required fields must materialize;
|
|
967
|
+
* unavailable optional fields are omitted from every delivery. Inferred and no-auth
|
|
968
|
+
* methods never invoke the credential resolver.
|
|
969
|
+
* @param bound - Immutable refs-only adapter binding.
|
|
970
|
+
* @param resolveCredentialRefs - Trusted local credential resolver.
|
|
971
|
+
* @returns Immutable plaintext delivery snapshot.
|
|
972
|
+
*/
|
|
973
|
+
declare function resolveBoundProviderAuth(bound: BoundProviderAuthContext, resolveCredentialRefs: ResolveAuthCredentialRefs): Promise<ResolvedAdapterAuth>;
|
|
974
|
+
//#endregion
|
|
975
|
+
//#region adapters/core/src/config/adapter-auth-runtime.d.ts
|
|
976
|
+
/** Refs-only config emitted by the common adapter factory. */
|
|
977
|
+
type BoundAdapterRuntimeConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus> = BaseAgentConnectorConfig<TBus>> = TConfig & {
|
|
978
|
+
/** Adapter instance identifier required by connector factories. */adapterId: string; /** Exact normalized auth selection and adapter delivery binding. */
|
|
979
|
+
boundProviderAuth?: BoundProviderAuthContext;
|
|
980
|
+
};
|
|
981
|
+
/** Connector-facing config after auth refs and client state have been materialized. */
|
|
982
|
+
type ResolvedAdapterRuntimeConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus> = BaseAgentConnectorConfig<TBus>> = Omit<TConfig, 'boundProviderAuth'> & {
|
|
983
|
+
/** Adapter instance identifier required by connector factories. */adapterId: string; /** Selected connector-local auth delivery, including plaintext. */
|
|
984
|
+
adapterAuth?: ResolvedAdapterAuth; /** Selected managed client binary, when this adapter has a client. */
|
|
985
|
+
clientExecution?: ClientExecutionContext; /** Auth-free environment safe for routable/shared execution contexts. */
|
|
986
|
+
contextEnv: Readonly<Record<string, string>>;
|
|
987
|
+
};
|
|
988
|
+
/** Explicit connector-owned client config lease. */
|
|
989
|
+
interface AdapterAuthLeaseHandle {
|
|
990
|
+
/** Client whose isolated config directory is leased. */
|
|
991
|
+
readonly clientId: string;
|
|
992
|
+
/** Connector-unique lease identifier. */
|
|
993
|
+
readonly leaseId: string;
|
|
994
|
+
/** Release the lease exactly once. Repeated calls share the same result. */
|
|
995
|
+
release(): Promise<void>;
|
|
996
|
+
}
|
|
997
|
+
/** Runtime config plus the lease whose lifetime must match its connector. */
|
|
998
|
+
interface PreparedAdapterAuthRuntime<TBus extends ScopedBus<string> = ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus> = BaseAgentConnectorConfig<TBus>> {
|
|
999
|
+
/** Connector-facing config with one immutable auth snapshot. */
|
|
1000
|
+
readonly config: ResolvedAdapterRuntimeConfig<TBus, TConfig>;
|
|
1001
|
+
/** Explicit lease handle, present only for client-backed adapters. */
|
|
1002
|
+
readonly lease?: AdapterAuthLeaseHandle;
|
|
1003
|
+
}
|
|
1004
|
+
/** Trusted non-serializable strategy for preparing auth in the current host. */
|
|
1005
|
+
type AdapterAuthRuntimePreparer<TBus extends ScopedBus<string> = ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus> = BaseAgentConnectorConfig<TBus>> = (config: BoundAdapterRuntimeConfig<TBus, TConfig>) => Promise<PreparedAdapterAuthRuntime<TBus, TConfig>>;
|
|
1006
|
+
/** Host-resolved auth material supplied to a runtime without local secret services. */
|
|
1007
|
+
interface SuppliedAdapterAuthRuntime {
|
|
1008
|
+
/** Auth snapshot already compiled against the selected adapter binding by the host. */
|
|
1009
|
+
readonly selectorValidatedAuth: ResolvedAdapterAuth;
|
|
1010
|
+
/** Complete host-compiled adapter auth source/sink scrub union. */
|
|
1011
|
+
readonly scrubEnvVars: readonly string[];
|
|
1012
|
+
/** Non-auth session environment supplied by the host. */
|
|
1013
|
+
readonly sessionEnv?: Readonly<Record<string, string>>;
|
|
1014
|
+
/** Pre-resolved non-auth binary environment supplied by the host. */
|
|
1015
|
+
readonly binaryEnv?: Readonly<Record<string, string>>;
|
|
1016
|
+
/** Environment for an externally-owned config lease or mounted native state. */
|
|
1017
|
+
readonly leaseEnv?: Readonly<Record<string, string>>;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Prepare the single connector-local auth snapshot and client config lease.
|
|
1021
|
+
*
|
|
1022
|
+
* Explicit credential refs are resolved exactly once through the encrypted
|
|
1023
|
+
* credential channel. The existing session-environment helper remains the
|
|
1024
|
+
* sole merge authority: it scrubs the full adapter set before selected auth
|
|
1025
|
+
* values are applied last. The caller owns the returned lease and must release
|
|
1026
|
+
* it in every connector close or rollback path.
|
|
1027
|
+
* @param config - Refs-only config emitted by the adapter config factory
|
|
1028
|
+
* @returns Connector-facing config and its explicit lease handle
|
|
1029
|
+
*/
|
|
1030
|
+
declare function prepareAdapterAuthRuntime<TBus extends ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus>>(config: BoundAdapterRuntimeConfig<TBus, TConfig>): Promise<PreparedAdapterAuthRuntime<TBus, TConfig>>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Apply host-resolved auth without opening credential channels or owning leases.
|
|
1033
|
+
*
|
|
1034
|
+
* This is the container/bootstrap seam. Its input must already have been
|
|
1035
|
+
* selector-validated with {@link resolveBoundProviderAuth} by the trusted host.
|
|
1036
|
+
* Every supplied non-auth source is merged before the full scrub union, then
|
|
1037
|
+
* only the selected process delivery is injected. Connector deliveries remain
|
|
1038
|
+
* structured values and are never serialized or logged here.
|
|
1039
|
+
* @param config - Connector config containing only non-auth runtime inputs
|
|
1040
|
+
* @param supplied - Host-compiled auth and non-auth environment sources
|
|
1041
|
+
* @returns Connector-facing config with one immutable auth snapshot
|
|
1042
|
+
*/
|
|
1043
|
+
declare function applySuppliedAdapterAuthRuntime<TBus extends ScopedBus<string>, TConfig extends BaseAgentConnectorConfig<TBus>>(config: BoundAdapterRuntimeConfig<TBus, TConfig>, supplied: SuppliedAdapterAuthRuntime): Promise<ResolvedAdapterRuntimeConfig<TBus, TConfig>>;
|
|
1044
|
+
//#endregion
|
|
846
1045
|
//#region adapters/core/src/agent/types.d.ts
|
|
847
1046
|
/**
|
|
848
1047
|
* Core agent identity fields.
|
|
@@ -911,14 +1110,12 @@ interface BaseAgentConnectorConfig<TBus extends ScopedBus<string> = ScopedBus<st
|
|
|
911
1110
|
*/
|
|
912
1111
|
providerConfigId?: string;
|
|
913
1112
|
/**
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
* Passed through from the factory input so connectors can call
|
|
917
|
-
* `resolveConnectorCredentials()` locally during initialization.
|
|
918
|
-
* Connectors must NOT read plaintext credentials from this field —
|
|
919
|
-
* they must resolve refs via `resolveConnectorCredentials()`.
|
|
1113
|
+
* Refs-only normalized provider selection retained for runtime introspection.
|
|
1114
|
+
* Plaintext authentication is available only through {@link adapterAuth}.
|
|
920
1115
|
*/
|
|
921
1116
|
providerContext?: ProviderContext;
|
|
1117
|
+
/** Exact HTTP protocol selected by the active adapter/provider reference. */
|
|
1118
|
+
providerProtocol?: ProtocolId;
|
|
922
1119
|
providerConfig?: TProviderConfig;
|
|
923
1120
|
/**
|
|
924
1121
|
* Maps supported reasoning levels to provider-native values for the active model.
|
|
@@ -941,6 +1138,22 @@ interface BaseAgentConnectorConfig<TBus extends ScopedBus<string> = ScopedBus<st
|
|
|
941
1138
|
clientId?: string;
|
|
942
1139
|
/** Client profile name for session-scoped config isolation. */
|
|
943
1140
|
clientProfileName?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* Auth-free environment safe for bus-routable tool and MCP contexts.
|
|
1143
|
+
*
|
|
1144
|
+
* The central adapter runtime derives this from the same merged inputs as
|
|
1145
|
+
* `env`, but omits the selected process authentication delivery.
|
|
1146
|
+
*/
|
|
1147
|
+
contextEnv?: Readonly<Record<string, string>>;
|
|
1148
|
+
/**
|
|
1149
|
+
* Single connector-local normalized auth snapshot.
|
|
1150
|
+
*
|
|
1151
|
+
* Plaintext exists only on this trusted connector config and must never be
|
|
1152
|
+
* emitted, persisted, stringified, or copied back into provider context.
|
|
1153
|
+
*/
|
|
1154
|
+
adapterAuth?: ResolvedAdapterAuth;
|
|
1155
|
+
/** Managed client binary selected by the central runtime, when applicable. */
|
|
1156
|
+
clientExecution?: ClientExecutionContext;
|
|
944
1157
|
/** Callback when a user message is enqueued */
|
|
945
1158
|
onMessageSent?: (messageHandle: MessageHandle) => void;
|
|
946
1159
|
/**
|
|
@@ -987,11 +1200,7 @@ interface AIAgentConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TCon
|
|
|
987
1200
|
adapterSessionId?: string;
|
|
988
1201
|
/** Makaio session identifier */
|
|
989
1202
|
sessionId?: string;
|
|
990
|
-
/**
|
|
991
|
-
* Unresolved provider context (credential refs, not plaintext).
|
|
992
|
-
* Set by the orchestrator before forwarding the startAgent request.
|
|
993
|
-
* Connectors resolve credentials locally via `resolveConnectorCredentials()`.
|
|
994
|
-
*/
|
|
1203
|
+
/** Refs-only normalized provider selection set by session orchestration. */
|
|
995
1204
|
providerContext?: ProviderContext;
|
|
996
1205
|
/** Previous adapter session ID for resume attempts (from recovery). */
|
|
997
1206
|
resumeAdapterSessionId?: string;
|
|
@@ -1001,6 +1210,8 @@ interface AIAgentConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TCon
|
|
|
1001
1210
|
clientId?: string;
|
|
1002
1211
|
/** Client profile name for session-scoped config isolation. */
|
|
1003
1212
|
clientProfileName?: string;
|
|
1213
|
+
/** Trusted non-serializable auth preparation strategy injected by the host. */
|
|
1214
|
+
prepareAuthRuntime?: AdapterAuthRuntimePreparer<TBus>;
|
|
1004
1215
|
/** Global bus instance (defaults to MakaioBus singleton) */
|
|
1005
1216
|
globalBus?: IMakaioBus;
|
|
1006
1217
|
/** Scoped bus for adapter-specific events */
|
|
@@ -1011,6 +1222,8 @@ interface AIAgentConfig<TBus extends ScopedBus<string> = ScopedBus<string>, TCon
|
|
|
1011
1222
|
nativeTools: string[];
|
|
1012
1223
|
/** Available models for this adapter (used for context window lookup) */
|
|
1013
1224
|
availableModels?: AIModel[];
|
|
1225
|
+
/** Resolved provider definitions, including adapter-provider auth metadata. */
|
|
1226
|
+
definitionProviders?: readonly AdapterProviderDefinition[];
|
|
1014
1227
|
/** Allowed tool names (adapter-specific). Empty array = disable all tools. */
|
|
1015
1228
|
allowedTools?: string[];
|
|
1016
1229
|
/** Disallowed tool names (adapter-specific). Takes precedence over allowedTools. */
|
|
@@ -1120,6 +1333,13 @@ interface ConnectorSendMessageOptions extends AgentSendMessageOptions {
|
|
|
1120
1333
|
* message handle and never materialized into the LLM-facing message.
|
|
1121
1334
|
*/
|
|
1122
1335
|
requestCorrelation?: RequestCorrelationContext;
|
|
1336
|
+
/**
|
|
1337
|
+
* Lifecycle turnId from the session orchestrator (`agent.sendMessage.turnId`).
|
|
1338
|
+
* Carried on the message handle so user_message lifecycle events pair by it.
|
|
1339
|
+
* Distinct from `requestCorrelation.turnId`, which is transport correlation
|
|
1340
|
+
* and may be present when no lifecycle turn exists.
|
|
1341
|
+
*/
|
|
1342
|
+
turnId?: string;
|
|
1123
1343
|
/**
|
|
1124
1344
|
* Turn-scoped context assembled by PreUserMessage hooks and the orchestrator.
|
|
1125
1345
|
* Extracted from sessionContext.turnContext by AIAgent.
|
|
@@ -1178,6 +1398,11 @@ type EmitteryEvents = {
|
|
|
1178
1398
|
/**
|
|
1179
1399
|
* Normalized usage metrics for a single agent call.
|
|
1180
1400
|
* Adapter implementations normalize provider-specific usage data to this format.
|
|
1401
|
+
*
|
|
1402
|
+
* Derived from the `agent.usage` schema, so the mandatory `granularity` field
|
|
1403
|
+
* is part of this type: adapters MUST declare the truthful measurement
|
|
1404
|
+
* granularity of every usage signal they normalize (see
|
|
1405
|
+
* `docs/architecture/adapters/usage-and-provenance.md`).
|
|
1181
1406
|
*/
|
|
1182
1407
|
type NormalizedCallUsage = Omit<z.infer<typeof AgentSchemas.usage>, keyof AgentContext | 'model'>;
|
|
1183
1408
|
/**
|
|
@@ -1205,6 +1430,14 @@ type AgentConnectorConfigOverrides = Partial<{
|
|
|
1205
1430
|
adapterSessionId: string;
|
|
1206
1431
|
resumeAdapterSessionId: string;
|
|
1207
1432
|
mcpSessionContext: McpRuntimeSessionContext | McpSessionContext | LedgerSessionContext;
|
|
1433
|
+
/**
|
|
1434
|
+
* Target reasoning effort for the replacement generation. Key presence (not
|
|
1435
|
+
* value) selects this over the live connector's current effort, so an
|
|
1436
|
+
* explicit `undefined` builds a reasoning-less connector. Adapters may
|
|
1437
|
+
* consume reasoning only at construction/start, so the replacement must be
|
|
1438
|
+
* built with its target effort rather than mutated afterwards.
|
|
1439
|
+
*/
|
|
1440
|
+
reasoningEffort: AIReasoningLevel$1 | undefined;
|
|
1208
1441
|
}>;
|
|
1209
1442
|
//#endregion
|
|
1210
|
-
export {
|
|
1443
|
+
export { NormalizedMessageInput as $, PreparedAdapterAuthRuntime as A, ResolvedAdapterAuth as B, NormalizedCallUsage as C, AdapterAuthLeaseHandle as D, StartAgentOptions as E, AdapterAuthError as F, resolveBoundProviderAuth as G, ResolvedConnectorAuthDelivery as H, AdapterAuthErrorReason as I, IAdapterConfigFactory as J, AdapterProviderDefinition as K, BindProviderAuthOptions as L, SuppliedAdapterAuthRuntime as M, applySuppliedAdapterAuthRuntime as N, AdapterAuthRuntimePreparer as O, prepareAdapterAuthRuntime as P, markCompletedWithFinalResult as Q, BoundProviderAuthContext as R, GetCapabilitiesResponsePayload as S, SendMessageResponsePayload as T, bindProviderAuth as U, ResolvedAuthCredentialValues as V, getOptionalAuthCredentialFields as W, MessageDeliveryMode$1 as X, AIAgentConnector as Y, MessageHandle as Z, BaseAgentConnectorConfig as _, AgentCredentialChangeResponsePayload as a, AIModel as at, ContextWindowInput as b, AgentIdentity as c, ISessionToolLedger as ct, AgentMcpServersSetRequestPayload as d, ToolLedgerEntry as dt, normalizeMessageInput as et, AgentMcpServersSetResponsePayload as f, AgentStartResult as g, AgentSendMessageOptions as h, AgentCredentialChangeRequestPayload as i, SendMessageOptions as it, ResolvedAdapterRuntimeConfig as j, BoundAdapterRuntimeConfig as k, AgentInterruptRequestPayload as l, LedgerSessionContext as lt, AgentModelChangeResponsePayload as m, AgentConnectorConfigOverrides as n, MessageState as nt, AgentCwdChangeRequestPayload as o, AIReasoningLevel$1 as ot, AgentModelChangeRequestPayload as p, ConfigFactoryInput as q, AgentContext as r, ProcessingState as rt, AgentCwdChangeResponsePayload as s, ReasoningLevelMap$1 as st, AIAgentConfig as t, MessageResult as tt, AgentInterruptResponsePayload as u, SessionToolLedger as ut, ConnectorSendMessageOptions as v, SendMessageRequestPayload as w, ExecutionContext as x, ConnectorStartOptions as y, ResolveAuthCredentialRefs as z };
|
|
@@ -5,10 +5,10 @@ import { AdapterInfo, ComponentLike, NavigationGroupConfig, OnboardingContext, O
|
|
|
5
5
|
import { ExtensionInfo } from "@makaio/framework/kernel";
|
|
6
6
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
7
7
|
import { AIModel, AgentSelection, ModelFilterMode, ModelVisibility, UiContextSnapshot, UiRuntimeNavigationLevel, UiScope } from "@makaio/framework/contracts";
|
|
8
|
-
import { BindingRecord, ProviderConfigFileRecord } from "@makaio/framework/services/adapter-subsystem";
|
|
8
|
+
import { BindingRecord, CompatibleAuthOption, ProviderConfigFileRecord } from "@makaio/framework/services/adapter-subsystem";
|
|
9
9
|
import { LogImportMode } from "@makaio/framework/services/log-import/log-import";
|
|
10
|
+
import { AuthMethodRef, ClientAuthMethodRef, NativeAccountSelection, ProviderConfigAuth } from "@makaio/framework/contracts/auth";
|
|
10
11
|
import { EventHandler, EventMessagePayload, ExtractSubjectPayload, SubjectDefinition } from "@makaio/framework/core";
|
|
11
|
-
import { CredentialRef } from "@makaio/framework/contracts/config";
|
|
12
12
|
import { ModelFilterMode as ModelFilterMode$1, ModelVisibility as ModelVisibility$1, ProtocolEndpoints, ProtocolId } from "@makaio/framework/contracts/provider";
|
|
13
13
|
|
|
14
14
|
//#region ui/hooks/src/bus/bus-provider.d.ts
|
|
@@ -1226,10 +1226,7 @@ interface ProviderConfigSummaryView extends ProviderConfigFileRecord {
|
|
|
1226
1226
|
/**
|
|
1227
1227
|
* UI-facing provider-config detail enriched with provider definition metadata.
|
|
1228
1228
|
*/
|
|
1229
|
-
|
|
1230
|
-
/** Credential refs resolved through the runtime context seam. */
|
|
1231
|
-
credentialRefs?: Record<string, CredentialRef>;
|
|
1232
|
-
}
|
|
1229
|
+
type ProviderConfigDetailView = ProviderConfigSummaryView;
|
|
1233
1230
|
/**
|
|
1234
1231
|
* List provider-config summaries enriched for UI consumption.
|
|
1235
1232
|
* @param bus - Bus used to load subsystem configs and provider definitions.
|
|
@@ -1241,11 +1238,93 @@ declare function listProviderConfigSummaryViews(bus: IMakaioBus, options?: {
|
|
|
1241
1238
|
}): Promise<ProviderConfigSummaryView[]>;
|
|
1242
1239
|
/**
|
|
1243
1240
|
* Load one provider-config detail view enriched for UI consumption.
|
|
1244
|
-
* @param bus - Bus used to load
|
|
1241
|
+
* @param bus - Bus used to load the safe config summary and provider metadata.
|
|
1245
1242
|
* @param id - Provider-config identifier.
|
|
1246
1243
|
* @returns Enriched detail view or `null` when missing.
|
|
1247
1244
|
*/
|
|
1248
1245
|
declare function getProviderConfigDetailView(bus: IMakaioBus, id: string): Promise<ProviderConfigDetailView | null>;
|
|
1246
|
+
/**
|
|
1247
|
+
* List adapter-deliverable authentication methods for one provider definition.
|
|
1248
|
+
* @param bus - Bus used to query the adapter subsystem.
|
|
1249
|
+
* @param definitionId - Provider definition whose auth methods are requested.
|
|
1250
|
+
* @returns Safe method declarations with fields/source hints but no credential refs.
|
|
1251
|
+
*/
|
|
1252
|
+
declare function listCompatibleAuthOptions(bus: IMakaioBus, definitionId: string): Promise<CompatibleAuthOption[]>;
|
|
1253
|
+
//#endregion
|
|
1254
|
+
//#region ui/hooks/src/provider-config/auth-draft.d.ts
|
|
1255
|
+
/** One explicit credential field sourced from encrypted product storage. */
|
|
1256
|
+
interface StoredAuthFieldDraft {
|
|
1257
|
+
readonly source: 'stored';
|
|
1258
|
+
readonly value: string;
|
|
1259
|
+
}
|
|
1260
|
+
/** One explicit credential field sourced from a declared environment variable. */
|
|
1261
|
+
interface EnvironmentAuthFieldDraft {
|
|
1262
|
+
readonly source: 'environment';
|
|
1263
|
+
readonly variable: string;
|
|
1264
|
+
}
|
|
1265
|
+
/** UI selection for one explicit authentication field. */
|
|
1266
|
+
type AuthFieldDraft = StoredAuthFieldDraft | EnvironmentAuthFieldDraft;
|
|
1267
|
+
/** UI authentication selection before plaintext fields are persisted. */
|
|
1268
|
+
type ProviderConfigAuthDraft = {
|
|
1269
|
+
readonly mode: 'explicit';
|
|
1270
|
+
readonly method: AuthMethodRef;
|
|
1271
|
+
readonly fields: Readonly<Record<string, AuthFieldDraft>>;
|
|
1272
|
+
} | {
|
|
1273
|
+
readonly mode: 'inferred';
|
|
1274
|
+
readonly method: ClientAuthMethodRef;
|
|
1275
|
+
readonly account?: NativeAccountSelection;
|
|
1276
|
+
} | {
|
|
1277
|
+
readonly mode: 'none';
|
|
1278
|
+
readonly method: AuthMethodRef;
|
|
1279
|
+
};
|
|
1280
|
+
/** Normalized refs-only auth plus plaintext values that still need storage. */
|
|
1281
|
+
interface CompiledProviderConfigAuthDraft {
|
|
1282
|
+
/** Canonical refs-only selection persisted in the provider config. */
|
|
1283
|
+
readonly auth: ProviderConfigAuth;
|
|
1284
|
+
/** Plaintext values destined for the encrypted credential service. */
|
|
1285
|
+
readonly storedCredentials: Readonly<Record<string, string>>;
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Create editable field drafts for one compatible authentication option.
|
|
1289
|
+
* @param option - Exact adapter-compatible method selected by the UI.
|
|
1290
|
+
* @returns Stored-source drafts for every explicit field, or an empty map for non-explicit methods.
|
|
1291
|
+
*/
|
|
1292
|
+
declare function createInitialAuthFieldDrafts(option: CompatibleAuthOption): Record<string, AuthFieldDraft>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Build one strict provider-config auth draft from an adapter-compatible option.
|
|
1295
|
+
*
|
|
1296
|
+
* This is the shared form boundary for onboarding and settings. It preserves
|
|
1297
|
+
* optional omissions, rejects undeclared field/source selections, and keeps
|
|
1298
|
+
* inferred account selection separate from explicit credential fields.
|
|
1299
|
+
* @param option - Exact adapter-compatible method selected by the UI.
|
|
1300
|
+
* @param fieldDrafts - Current explicit field-source/value drafts.
|
|
1301
|
+
* @param account - Optional native account selected for an inferred method.
|
|
1302
|
+
* @returns Complete mode-specific provider-config auth draft.
|
|
1303
|
+
*/
|
|
1304
|
+
declare function buildProviderConfigAuthDraft(option: CompatibleAuthOption, fieldDrafts?: Readonly<Record<string, AuthFieldDraft>>, account?: NativeAccountSelection): ProviderConfigAuthDraft;
|
|
1305
|
+
/**
|
|
1306
|
+
* Build a collision-free owner-qualified key for UI method controls.
|
|
1307
|
+
* @param method - Normalized provider- or client-owned auth method.
|
|
1308
|
+
* @returns Stable key suitable for form control values.
|
|
1309
|
+
*/
|
|
1310
|
+
declare function authMethodRefKey(method: AuthMethodRef): string;
|
|
1311
|
+
/**
|
|
1312
|
+
* Compile one UI auth draft into the canonical refs-only selection.
|
|
1313
|
+
*
|
|
1314
|
+
* Stored refs are deterministic from the final provider-config ID, allowing a
|
|
1315
|
+
* disabled reservation to contain its final auth snapshot before plaintext is
|
|
1316
|
+
* written. Environment-only, inferred, and no-auth drafts do not need an ID.
|
|
1317
|
+
* @param draft - Complete UI authentication selection.
|
|
1318
|
+
* @param providerConfigId - Final canonical ID when any field uses stored plaintext.
|
|
1319
|
+
* @returns Canonical auth plus the plaintext subset that still needs storage.
|
|
1320
|
+
*/
|
|
1321
|
+
declare function compileProviderConfigAuthDraft(draft: ProviderConfigAuthDraft, providerConfigId?: string): CompiledProviderConfigAuthDraft;
|
|
1322
|
+
/**
|
|
1323
|
+
* Return whether an auth draft contains at least one stored plaintext field.
|
|
1324
|
+
* @param draft - UI authentication selection to inspect.
|
|
1325
|
+
* @returns Whether the host-owned encrypted storage bridge is required.
|
|
1326
|
+
*/
|
|
1327
|
+
declare function authDraftRequiresStorage(draft: ProviderConfigAuthDraft): boolean;
|
|
1249
1328
|
//#endregion
|
|
1250
1329
|
//#region ui/hooks/src/onboarding/scan-onboarding-adapters.d.ts
|
|
1251
1330
|
/**
|
|
@@ -1432,10 +1511,8 @@ interface OnboardingProviderConfigDraft {
|
|
|
1432
1511
|
definitionId: string;
|
|
1433
1512
|
/** Optional display name. */
|
|
1434
1513
|
name?: string;
|
|
1435
|
-
/**
|
|
1436
|
-
|
|
1437
|
-
/** Pre-resolved credential refs for externally managed credentials. */
|
|
1438
|
-
credentialRefs?: Record<string, CredentialRef>;
|
|
1514
|
+
/** Exactly one normalized authentication method and its UI field sources. */
|
|
1515
|
+
auth: ProviderConfigAuthDraft;
|
|
1439
1516
|
/** Optional endpoint overrides. */
|
|
1440
1517
|
endpointOverrides?: ProtocolEndpoints;
|
|
1441
1518
|
/** Optional per-model visibility overrides. */
|
|
@@ -1833,8 +1910,6 @@ interface ProviderInfo {
|
|
|
1833
1910
|
enabled: boolean;
|
|
1834
1911
|
/** Controls default visibility for models without explicit overrides. */
|
|
1835
1912
|
modelFilterMode: ModelFilterMode;
|
|
1836
|
-
/** True when at least one credential key exists in storage. */
|
|
1837
|
-
hasCredentials: boolean;
|
|
1838
1913
|
/** Sparse per-model visibility overrides. */
|
|
1839
1914
|
modelVisibility?: Record<string, ModelVisibility>;
|
|
1840
1915
|
/**
|
|
@@ -1885,6 +1960,20 @@ interface ProviderState {
|
|
|
1885
1960
|
}
|
|
1886
1961
|
declare const useProviderStore: UseBoundStore<StoreApi<ProviderState>>;
|
|
1887
1962
|
//#endregion
|
|
1963
|
+
//#region ui/hooks/src/provider-config/use-compatible-auth-options.d.ts
|
|
1964
|
+
/** Reactive result for one definition's adapter-compatible auth methods. */
|
|
1965
|
+
interface UseCompatibleAuthOptionsResult {
|
|
1966
|
+
readonly options: CompatibleAuthOption[];
|
|
1967
|
+
readonly isLoading: boolean;
|
|
1968
|
+
readonly error: Error | null;
|
|
1969
|
+
}
|
|
1970
|
+
/**
|
|
1971
|
+
* Load the safe adapter-compatible authentication methods for one definition.
|
|
1972
|
+
* @param definitionId - Provider definition ID, or empty while no definition is selected.
|
|
1973
|
+
* @returns Current options plus loading and error state.
|
|
1974
|
+
*/
|
|
1975
|
+
declare function useCompatibleAuthOptions(definitionId: string): UseCompatibleAuthOptionsResult;
|
|
1976
|
+
//#endregion
|
|
1888
1977
|
//#region ui/hooks/src/utils/persisted-agent-selection.d.ts
|
|
1889
1978
|
type PersistableAdapterSelection = Extract<AgentSelection, {
|
|
1890
1979
|
kind: 'adapter';
|
|
@@ -1912,4 +2001,4 @@ declare function parsePersistedAgentSelection(value: unknown): AgentSelection |
|
|
|
1912
2001
|
*/
|
|
1913
2002
|
declare function isPersistableProjectSelection(selection: AgentSelection): selection is PersistableProjectSelection;
|
|
1914
2003
|
//#endregion
|
|
1915
|
-
export { type AppContextState, type BoundAdapter, BusContext, BusProvider, type BusProviderProps, type CoreOnboardingStepComponents, type ExecutablePage, type ExtensionBrowserLoadOptions, type ExtensionBrowserLoadResult, type FocusContextId, type FocusContextLayout, type FocusContextObject, type FocusContextWidgetSize, type FocusState, type GroupedPages, type HealthCheckResult, type OnboardingAdapter, type OnboardingClient, type OnboardingFlowActions, type OnboardingFlowState, type OnboardingStepDefinition, type OnboardingStepProps, type PageOverlayState, type PersistableAdapterSelection, type PersistableProjectSelection, type PersistedExtensionConfigEntry, type PersistedStoreConfig, type PlacedFocusWidget, type ProviderConfigDetailView, type ProviderConfigSummaryView, type ProviderInfo, type RuntimeNavigationLevel, type ScanContext, type SharedLoaderState, type SidebarState, type StorageType, type UseBusQueryOptions, type UseBusQueryResult, type UseOnboardingFlowOptions, type UseOnboardingFlowResult, type UseWidgetConfigOptions, type UseWidgetConfigResult, type UseWidgetRegistryOptions, type UseWidgetsOptions, type UseWidgetsResult, type WindowContextState, addWidgetToFocusLayout, buildScanContext, clearOnboardingCompleted, clearOnboardingSkipped, createEmptyFocusContextLayout, createPersistedStore, getOnboardingCompleted, getOnboardingSkipped, getProviderConfigDetailView, groupPagesByNavigationGroup, isPersistableProjectSelection, listProviderConfigSummaryViews, loadExtensionBrowserContributions, noopStorage, parsePersistedAgentSelection, persistPluginEnabled, registerCoreOnboardingSteps, registerNavigationHandler, removeWidgetFromFocusLayout, scanOnboarding, scanOnboardingAdapters, scanOnboardingClients, setOnboardingCompleted, setOnboardingSkipped, updateFocusContextWidgetPosition, updateFocusContextWidgetSize, useAppContext, useBus, useBusEvent, useBusQuery, useFocusStore, useNavigationLevel, useOnboardingFlow, useOptionalBus, usePageComponent, usePageDefinitions, usePageOverlayStore, usePages, useProviderStore, useSidebarStore, useTrayLayout, useWidgetConfig, useWidgetLayout, useWidgetLayoutActions, useWidgetRegistry, useWidgets, useWindowContext, useWindowIdPages };
|
|
2004
|
+
export { type AppContextState, type AuthFieldDraft, type BoundAdapter, BusContext, BusProvider, type BusProviderProps, type CompiledProviderConfigAuthDraft, type CoreOnboardingStepComponents, type EnvironmentAuthFieldDraft, type ExecutablePage, type ExtensionBrowserLoadOptions, type ExtensionBrowserLoadResult, type FocusContextId, type FocusContextLayout, type FocusContextObject, type FocusContextWidgetSize, type FocusState, type GroupedPages, type HealthCheckResult, type OnboardingAdapter, type OnboardingClient, type OnboardingFlowActions, type OnboardingFlowState, type OnboardingProviderConfigCreator, type OnboardingProviderConfigDraft, type OnboardingStepDefinition, type OnboardingStepProps, type PageOverlayState, type PersistableAdapterSelection, type PersistableProjectSelection, type PersistedExtensionConfigEntry, type PersistedStoreConfig, type PlacedFocusWidget, type ProviderConfigAuthDraft, type ProviderConfigDetailView, type ProviderConfigSummaryView, type ProviderInfo, type RuntimeNavigationLevel, type ScanContext, type SharedLoaderState, type SidebarState, type StorageType, type StoredAuthFieldDraft, type UseBusQueryOptions, type UseBusQueryResult, type UseCompatibleAuthOptionsResult, type UseOnboardingFlowOptions, type UseOnboardingFlowResult, type UseWidgetConfigOptions, type UseWidgetConfigResult, type UseWidgetRegistryOptions, type UseWidgetsOptions, type UseWidgetsResult, type WindowContextState, addWidgetToFocusLayout, authDraftRequiresStorage, authMethodRefKey, buildProviderConfigAuthDraft, buildScanContext, clearOnboardingCompleted, clearOnboardingSkipped, compileProviderConfigAuthDraft, createEmptyFocusContextLayout, createInitialAuthFieldDrafts, createPersistedStore, getOnboardingCompleted, getOnboardingSkipped, getProviderConfigDetailView, groupPagesByNavigationGroup, isPersistableProjectSelection, listCompatibleAuthOptions, listProviderConfigSummaryViews, loadExtensionBrowserContributions, noopStorage, parsePersistedAgentSelection, persistPluginEnabled, registerCoreOnboardingSteps, registerNavigationHandler, removeWidgetFromFocusLayout, scanOnboarding, scanOnboardingAdapters, scanOnboardingClients, setOnboardingCompleted, setOnboardingSkipped, updateFocusContextWidgetPosition, updateFocusContextWidgetSize, useAppContext, useBus, useBusEvent, useBusQuery, useCompatibleAuthOptions, useFocusStore, useNavigationLevel, useOnboardingFlow, useOptionalBus, usePageComponent, usePageDefinitions, usePageOverlayStore, usePages, useProviderStore, useSidebarStore, useTrayLayout, useWidgetConfig, useWidgetLayout, useWidgetLayoutActions, useWidgetRegistry, useWidgets, useWindowContext, useWindowIdPages };
|