@makaio/framework 1.0.0-dev-1783705652236 → 1.0.0-dev-1783940945655
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 +110 -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/{base-orchestrator-J1WKAUkF.d.mts → base-orchestrator-BiShpVKL.d.mts} +6 -0
- package/dist/bus/index.d.mts +21 -21
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-DV-Z8gsb.mjs → canonical-model-CVRCW9h7.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 +74 -90
- 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 +1214 -261
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.d.mts +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.d.mts +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.d.mts +2 -2
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- 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 +2 -2
- 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-CTaQoolf.mjs} +1 -1
- 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-C23g_M_J2.d.mts → index-5s_dN3cg2.d.mts} +18 -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-DoEF9LAc.d.mts → index-BcejR1Jc.d.mts} +3 -3
- package/dist/index-BsEvzFey.d.mts +1175 -0
- package/dist/{index-ntS1EXlf.d.mts → index-BtL7ONuM.d.mts} +1 -1
- package/dist/index-BxuiHVFi.d.mts +284 -0
- package/dist/{index-PIlYSC73.d.mts → index-C9Q1E8Y-.d.mts} +66 -53
- package/dist/{index-CaerrEDH.d.mts → index-CB2XTzvd.d.mts} +3 -3
- package/dist/{index-Cx1Bm6WD.d.mts → index-CVs0Qxks.d.mts} +8 -8
- package/dist/{index-WHUV7neB.d.mts → index-CW6-0k3Z.d.mts} +105 -105
- package/dist/index-CagRgpXI2.d.mts +84 -0
- package/dist/{index-DZPNuWMc.d.mts → index-Cw3cjGAT.d.mts} +7 -7
- package/dist/{index-DnnKUwHm.d.mts → index-D5IEq4_E.d.mts} +36 -32
- package/dist/{index-h5go5Dtd.d.mts → index-D75FnT0B.d.mts} +1 -1
- package/dist/{index-O08Q2ikz.d.mts → index-DNc1yLQs.d.mts} +8 -8
- package/dist/{index-FFVwQMad.d.mts → index-DlUPWOh4.d.mts} +737 -97
- package/dist/{index-DScUb-hF.d.mts → index-Do7Wgio_2.d.mts} +35 -12
- package/dist/{index-C9FCWOhp.d.mts → index-DxatNFz7.d.mts} +124 -22
- 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-BcvG3wPv.d.mts → index-p6dWV52m.d.mts} +513 -373
- package/dist/{index-B2DjrVb8.d.mts → index-sCOlgPyj.d.mts} +1589 -482
- 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-Cze1RHcG.mjs → load-extensions-BtUrq2_t.mjs} +1 -1
- package/dist/{load-extensions-DNRIy4zC.d.mts → load-extensions-_EnedkUp.d.mts} +1 -1
- package/dist/{loop-gate-handlers-o2B5FPdF.mjs → loop-gate-handlers-0a3dIY8O.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/model-uE5IyUFJ.mjs +1 -0
- package/dist/namespace-C05pkLbN.mjs +1 -0
- package/dist/{namespace-D8P8Sxce2.d.mts → namespace-CGgOLxiW2.d.mts} +2 -2
- package/dist/{namespace-BGIeqwfU.d.mts → namespace-CQBSXm1U.d.mts} +20 -20
- package/dist/{namespace-CfvtDD_U.d.mts → namespace-CfgtqUWS.d.mts} +156 -156
- package/dist/{namespace-D9PLFmPQ.d.mts → namespace-CpyL93kW.d.mts} +27 -27
- package/dist/{namespace-CZK2ff3B.d.mts → namespace-D3SQQgxa2.d.mts} +1 -1
- 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-Co_GO3UD.mjs → package-0gVhAVkO.mjs} +1 -1
- package/dist/package-BwvGaKwn.mjs +1 -0
- 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 +32 -6
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +1 -1
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-7aKBGB7S.mjs → schema-BI0aCHvV.mjs} +1 -1
- package/dist/{schema-B5vHi7Uu.d.mts → schema-BnTOFCdU.d.mts} +1 -1
- package/dist/{schemas-Br-rSxPE2.d.mts → schemas--uwN5dfK2.d.mts} +11 -11
- package/dist/schemas-C-J4W1ID.mjs +1 -0
- package/dist/{schemas-CoFCV42v.d.mts → schemas-C17AifUQ.d.mts} +156 -156
- package/dist/schemas-D6lj9NMg.mjs +1 -0
- package/dist/schemas-K3Td_WdR.d.mts +3175 -0
- package/dist/schemas-n9Ff6_RX.mjs +1 -0
- package/dist/selection-YRuVSdck.mjs +1 -0
- 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 +1 -1
- 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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- 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 +1671 -253
- 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/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/{session-lineage-C1M7-O3C.d.mts → session-lineage-BLw8iWAj.d.mts} +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 +1 -1
- 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-C8vqn1KY.mjs +1 -0
- package/dist/{transition-OzGXyy3p.d.mts → transition-Bfe8VVc1.d.mts} +2 -2
- package/dist/{types-BWduCvRU.d.mts → types-B-xY9WW2.d.mts} +1 -1
- package/dist/{types-BrUOVfwe.d.mts → types-DvKaEOOn.d.mts} +252 -19
- package/dist/{types-CBLPaQXe.d.mts → types-q95p55BF.d.mts} +437 -287
- 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-CvVAZ89A.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +33 -33
- 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-dH70EbjE.mjs → workflow-worker-CudfEstp.mjs} +1 -1
- package/package.json +5 -1
- 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/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/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/{ajv-B5dPIck0.mjs → ajv-DfHhgdS5.mjs} +0 -0
- /package/dist/{await-trigger-DwVldnMt.mjs → await-trigger-D623tvig.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-D5SWf6TL.mjs} +0 -0
- /package/dist/{drizzle-DVTAl7Us.mjs → drizzle-DYfaDzlO.mjs} +0 -0
- /package/dist/{esm-CQG9Pc7n.mjs → esm-oHhRYTEn.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-DEzdNQum.d.mts → index-DfVSWBBp.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/{index-wq7XeqyG.d.mts → index-iJP-l15K.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-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-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-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/{out-BoEZjBNz.mjs → out-BB6Kb4Xu.mjs} +0 -0
- /package/dist/{package-DmVZxufT.d.mts → package-CdBiknf3.d.mts} +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-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-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/{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
package/dist/.makaio-build.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"builtAt": "2026-07-
|
|
3
|
+
"fingerprint": "03a8031c3db961e4fe3677c3acddf243e48c6e1217d62f3fbc8d712f47fa660a",
|
|
4
|
+
"builtAt": "2026-07-13T11:10:14.890Z"
|
|
5
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./json-value-DmU8ibo_.mjs";import"./shared-RP_KARKF.mjs";import{g as t,h as n,m as r}from"./profile-D2m94ZYD.mjs";import{n as i}from"./version-C1-VD-XL.mjs";import{z as a}from"zod";const o=a.enum([`strong`,`alias`]),s=a.object({scheme:t,value:t,strength:o}),c=a.object({key:t,label:a.string(),usedPercentage:a.number().finite().min(0).max(100),resetsAt:n.optional()}),l=a.object({windows:a.array(c)}),u=a.record(a.string(),a.unknown()).optional(),d=a.object({clientId:t,found:a.boolean(),binaryPath:r.optional(),version:a.string().optional(),warningMessage:a.string().optional()}),f=a.object({clientId:t,binaryName:t,supportedVersions:i.optional()}),p=a.object({clientAccountId:t,clientId:t,observedAt:n,source:t,displayLabel:a.string().optional(),usage:l,metadata:u}),m=a.discriminatedUnion(`kind`,[a.object({kind:a.literal(`session`),sessionId:t}),a.object({kind:a.literal(`adapter-session`),adapterSessionId:t}),a.object({kind:a.literal(`both`),sessionId:t,adapterSessionId:t})]),h=a.object({clientId:a.string(),source:a.string(),kind:a.string(),observedAt:n,payload:e}),g={request:a.object({clientId:t,observedAt:n.optional(),displayLabel:a.string().optional(),identifiers:a.array(s).min(1),metadata:u}),response:a.object({clientAccountId:t,displayLabel:a.string().optional()})},_={request:h.extend({locator:m}),response:a.object({handled:a.boolean(),sessionId:t.nullable(),clientAccountId:t.nullable(),changed:a.boolean()})},v={request:a.object({clientId:t,observedAt:n,source:t,account:a.object({displayLabel:a.string().optional(),identifiers:a.array(s).min(1)}),usage:l,metadata:u}),response:a.object({clientAccountId:t,snapshot:p})};export{u as a,_ as c,p as d,c as f,h as i,m as l,g as n,d as o,l as p,o as r,f as s,s as t,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AuthenticationError as e}from"@makaio/framework/core";import{createBusInstance as t,openChannel as n}from"@makaio/framework/bus";import{AdapterProviderAuthSchema as r,CredentialSubjects as i,ResolvedProviderAuthSchema as a,assertAdapterAuthBindingMatchesMethod as o}from"@makaio/framework/contracts";import{ClientSubjects as s}from"@makaio/framework/contracts/client";import{resolveClientBinary as c}from"@makaio/framework/clients";function l(e,t={}){let n={};if(e)for(let[t,r]of Object.entries(e))r!==void 0&&(n[t]=r);delete n.NODE_OPTIONS,delete n.CLAUDECODE;for(let e of t.omitEnvVars??[])delete n[e];return n}var u=class extends e{reason;constructor(e,t){super(t),this.reason=e,this.name=`AdapterAuthError`}};function d(e){return e.auth.mode===`explicit`?e.auth.definition.fields.filter(e=>!e.required).map(e=>e.id):[]}function f(e){if(Array.isArray(e)){for(let t of e)f(t);return Object.freeze(e)}if(e&&typeof e==`object`){for(let t of Object.values(e))f(t);return Object.freeze(e)}return e}function p(e,t){return e.owner!==t.owner||e.methodId!==t.methodId?!1:e.owner===`provider`?t.owner===`provider`&&e.providerDefinitionId===t.providerDefinitionId:t.owner===`client`&&e.clientId===t.clientId}function m(e,t){return e.bindings.filter(e=>p(e.method,t))}function h(e,t){let n=m(e,t);if(n.length===0)throw new u(`binding-missing`,`No adapter authentication binding matches the selected method.`);if(n.length>1)throw new u(`binding-ambiguous`,`Multiple adapter authentication bindings match the selected method.`);return n[0]}function g(e,t){let n=new Set;for(let e of t){for(let t of e.scrubEnvVars)n.add(t);for(let t of e.bindings)for(let e of t.deliveries)if(e.kind===`process-env`)for(let t of Object.values(e.fields))n.add(t)}if(e.mode===`explicit`)for(let t of Object.values(e.credentialRefs))t.startsWith(`env:`)&&n.add(t.slice(4));return[...n]}function _(e){let t=a.safeParse(e.auth);if(!t.success)throw Error(`Resolved provider authentication is invalid.`);if(m(e.adapterProviderAuth,t.data.method).length>1)throw new u(`binding-ambiguous`,`Multiple adapter authentication bindings match the selected method.`);let n=r.safeParse(e.adapterProviderAuth);if(!n.success)throw Error(`Selected adapter authentication declaration is invalid.`);let i=[n.data];for(let t of e.compatibleProviderAuths??[]){let e=r.safeParse(t);if(!e.success)throw Error(`Compatible adapter authentication declaration is invalid.`);i.push(e.data)}let s=h(n.data,t.data.method);return o(s,t.data.definition),f({auth:t.data,binding:s,scrubEnvVars:g(t.data,i)})}async function v(e,t){let n=await y(e.auth,t),r=[],i=[];for(let t of e.binding.deliveries){if(t.kind===`process-env`){r.push(...b(n,t.fields));continue}if(t.kind!==`connector`)continue;let e=Object.fromEntries(b(n,t.fields)),a={...t.constants,...e};i.push({target:t.target,values:a})}return f({processEnv:Object.fromEntries(r),connectorDeliveries:i,configInheritance:e.auth.mode===`inferred`?`auth-only`:`empty`})}async function y(e,t){if(e.mode!==`explicit`)return Object.freeze({});let n;try{n=await t(e.credentialRefs)}catch(e){throw e instanceof u?e:new u(`credential-resolution-failed`,`Failed to resolve adapter authentication credentials.`)}if(typeof n!=`object`||!n)throw Error(`Credential resolver returned invalid authentication values.`);let r;try{r=Object.entries(n)}catch{throw Error(`Credential resolver returned invalid authentication values.`)}let i=new Set(Object.keys(e.credentialRefs)),a=new Map;for(let[e,t]of r){if(!i.has(e)||typeof t!=`string`)throw Error(`Credential resolver returned values outside the selected authentication fields.`);a.set(e,t)}let o=[];for(let t of e.definition.fields){let e=a.get(t.id);if(typeof e==`string`&&e.length>0)o.push([t.id,e]);else if(t.required)throw new u(`credential-missing`,`Required authentication field "${t.id}" could not be resolved.`)}return Object.freeze(Object.fromEntries(o))}function b(e,t){let n=[];for(let[r,i]of Object.entries(t)){if(!Object.hasOwn(e,r))continue;let t=e[r];typeof t==`string`&&n.push([i,t])}return n}var x=class extends Error{code;constructor(e){super(e===`credential-unavailable`?`A selected credential is unavailable.`:`Credential resolution failed.`),this.code=e,this.name=`ConnectorCredentialResolutionError`}};async function S(e,r,a={}){let o=Object.entries(r);if(o.length===0)return{};let s={},c=new Set(a.optionalFields),l=e.getContext(),{token:u}=await t({context:l}).request(i.getChannelToken,{}),d=await n(l,`credentials`,{token:u,transports:[]});try{let e=await Promise.all(o.map(async([e,t])=>{try{let n=await d.request(i.resolve,{ref:t});if(n.value===null){if(c.has(e))return;throw new x(`credential-unavailable`)}return[e,n.value]}catch(e){throw e instanceof x?e:new x(`credential-request-failed`)}}));for(let[t,n]of e.filter(e=>e!==void 0))s[t]=n}finally{d.close()}return s}async function C(e){let{globalBus:t,clientId:n,baseEnv:r={},sessionEnv:i={},binaryEnv:a={},scrubEnvVars:o=[],leaseEnv:s={},selectedAuthEnv:u={}}=e,d;if(n!==void 0){if(t===void 0)throw Error(`Client binary resolution requires the adapter runtime global bus.`);d=await c(t,n)}let f={...r,...i,...d?.env??{},...a},p={...f,...s},m=Object.keys(s),h=l(f,{omitEnvVars:[...new Set([...o,...m])]}),g={...l(p,{omitEnvVars:o}),...u};return Object.freeze(h),Object.freeze(g),{resolvedBinary:d,connectorEnv:g,contextEnv:h}}var w=class{bus;clientId;leaseId;releasePromise;constructor(e,t,n){this.bus=e,this.clientId=t,this.leaseId=n}release(){return this.releasePromise??=this.destroy(),this.releasePromise}async destroy(){if(!(await this.bus.request(s.sessionConfig.destroy,{clientId:this.clientId,leaseId:this.leaseId})).success)throw Error(`Client config lease release was unsuccessful.`)}};async function T(e){let t=e.boundProviderAuth;if(t===void 0){let t=Object.freeze({...e.env??{}});return{config:{...e,env:Object.freeze({...t}),contextEnv:t}}}let n=D(e.globalBus);O(t,e.clientId);let r=await v(t,async e=>{try{return await S(n,e,{optionalFields:d(t)})}catch(e){throw e instanceof x&&e.code===`credential-unavailable`?new u(`credential-missing`,`A required authentication credential is unavailable.`):e}}),i=await k(n,e,r);try{A(t,i);let a=await C({globalBus:n,clientId:e.clientId,baseEnv:e.env,scrubEnvVars:t.scrubEnvVars,leaseEnv:i?.env,selectedAuthEnv:r.processEnv}),{boundProviderAuth:o,...s}=e;return{config:{...s,env:a.connectorEnv,contextEnv:a.contextEnv,adapterAuth:r,...a.resolvedBinary!==void 0&&{clientExecution:a.resolvedBinary}},...i!==void 0&&{lease:i.handle}}}catch(e){throw await j(i?.handle,e,`Adapter auth preparation and lease rollback both failed.`),e}}async function E(e,t){let n=M(t.selectorValidatedAuth),r=await C({baseEnv:e.env,sessionEnv:t.sessionEnv,binaryEnv:t.binaryEnv,leaseEnv:t.leaseEnv,scrubEnvVars:t.scrubEnvVars,selectedAuthEnv:n.processEnv}),{boundProviderAuth:i,...a}=e;return{...a,env:r.connectorEnv,contextEnv:r.contextEnv,adapterAuth:n}}function D(e){if(e===void 0)throw new u(`runtime-bus-missing`,`Normalized adapter authentication requires a global bus.`);return e}function O(e,t){let n=e.auth.method;if(n.owner===`client`&&n.clientId!==t)throw new u(`client-mismatch`,`Selected authentication client does not match the adapter runtime client.`)}async function k(e,t,n){if(t.clientId===void 0)return;let r=crypto.randomUUID(),i=await e.request(s.sessionConfig.create,{clientId:t.clientId,leaseId:r,...t.sessionId!==void 0&&{ownerSessionId:t.sessionId},...t.clientProfileName!==void 0&&{profileName:t.clientProfileName},projectDir:t.cwd,configInheritance:n.configInheritance});return{handle:new w(e,t.clientId,r),env:Object.freeze({...i.env}),authMaterialized:i.authMaterialized}}function A(e,t){if(e.auth.mode===`inferred`&&t?.authMaterialized!==!0)throw new u(`native-auth-unavailable`,`Selected native client authentication could not be materialized.`)}async function j(e,t,n){if(e!==void 0)try{await e.release()}catch(e){throw AggregateError([t,e],n,{cause:t})}}function M(e){let t=e.connectorDeliveries.map(e=>Object.freeze({target:e.target,values:Object.freeze({...e.values})}));return Object.freeze({processEnv:Object.freeze({...e.processEnv}),connectorDeliveries:Object.freeze(t),configInheritance:e.configInheritance})}export{S as a,d as c,x as i,v as l,T as n,u as o,C as r,_ as s,E as t,l as u};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region core/contracts/src/auth/selection.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Credential reference accepted by normalized authentication selections.
|
|
6
|
+
*
|
|
7
|
+
* Account identity is carried separately through
|
|
8
|
+
* {@link NativeAccountSelectionSchema}; credential refs identify only
|
|
9
|
+
* resolvable secret sources.
|
|
10
|
+
*/
|
|
11
|
+
declare const AuthCredentialRefSchema: z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">;
|
|
12
|
+
/** Reference to an authentication method owned by a provider definition. */
|
|
13
|
+
declare const ProviderAuthMethodRefSchema: z.ZodObject<{
|
|
14
|
+
owner: z.ZodLiteral<"provider">;
|
|
15
|
+
providerDefinitionId: z.ZodString;
|
|
16
|
+
methodId: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/** Reference to an authentication method owned by a native client definition. */
|
|
19
|
+
declare const ClientAuthMethodRefSchema: z.ZodObject<{
|
|
20
|
+
owner: z.ZodLiteral<"client">;
|
|
21
|
+
clientId: z.ZodString;
|
|
22
|
+
methodId: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
/** Reference to either provider-owned or client-owned authentication. */
|
|
25
|
+
declare const AuthMethodRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
owner: z.ZodLiteral<"provider">;
|
|
27
|
+
providerDefinitionId: z.ZodString;
|
|
28
|
+
methodId: z.ZodString;
|
|
29
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
+
owner: z.ZodLiteral<"client">;
|
|
31
|
+
clientId: z.ZodString;
|
|
32
|
+
methodId: z.ZodString;
|
|
33
|
+
}, z.core.$strict>], "owner">;
|
|
34
|
+
/** Optional native account selected for an inferred authentication method. */
|
|
35
|
+
declare const NativeAccountSelectionSchema: z.ZodObject<{
|
|
36
|
+
managerId: z.ZodString;
|
|
37
|
+
accountId: z.ZodString;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
/** Lifecycle manager for a persisted provider configuration. */
|
|
40
|
+
declare const ProviderConfigManagerSchema: z.ZodObject<{
|
|
41
|
+
kind: z.ZodLiteral<"client">;
|
|
42
|
+
clientId: z.ZodString;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
/** Persisted selection of exactly one authentication mode and method. */
|
|
45
|
+
declare const ProviderConfigAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
mode: z.ZodLiteral<"explicit">;
|
|
47
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
owner: z.ZodLiteral<"provider">;
|
|
49
|
+
providerDefinitionId: z.ZodString;
|
|
50
|
+
methodId: z.ZodString;
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52
|
+
owner: z.ZodLiteral<"client">;
|
|
53
|
+
clientId: z.ZodString;
|
|
54
|
+
methodId: z.ZodString;
|
|
55
|
+
}, z.core.$strict>], "owner">;
|
|
56
|
+
credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
mode: z.ZodLiteral<"inferred">;
|
|
59
|
+
method: z.ZodObject<{
|
|
60
|
+
owner: z.ZodLiteral<"client">;
|
|
61
|
+
clientId: z.ZodString;
|
|
62
|
+
methodId: z.ZodString;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
managerId: z.ZodString;
|
|
66
|
+
accountId: z.ZodString;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
mode: z.ZodLiteral<"none">;
|
|
70
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
+
owner: z.ZodLiteral<"provider">;
|
|
72
|
+
providerDefinitionId: z.ZodString;
|
|
73
|
+
methodId: z.ZodString;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
owner: z.ZodLiteral<"client">;
|
|
76
|
+
clientId: z.ZodString;
|
|
77
|
+
methodId: z.ZodString;
|
|
78
|
+
}, z.core.$strict>], "owner">;
|
|
79
|
+
}, z.core.$strict>], "mode">;
|
|
80
|
+
type ProviderAuthMethodRef = z.infer<typeof ProviderAuthMethodRefSchema>;
|
|
81
|
+
type ClientAuthMethodRef = z.infer<typeof ClientAuthMethodRefSchema>;
|
|
82
|
+
type AuthMethodRef = z.infer<typeof AuthMethodRefSchema>;
|
|
83
|
+
type AuthCredentialRef = z.infer<typeof AuthCredentialRefSchema>;
|
|
84
|
+
type NativeAccountSelection = z.infer<typeof NativeAccountSelectionSchema>;
|
|
85
|
+
type ProviderConfigManager = z.infer<typeof ProviderConfigManagerSchema>;
|
|
86
|
+
type ProviderConfigAuth = z.infer<typeof ProviderConfigAuthSchema>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region core/contracts/src/auth/adapter-binding.d.ts
|
|
89
|
+
/** JSON-safe literal supported by connector auth delivery constants. */
|
|
90
|
+
declare const AdapterAuthConstantSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
91
|
+
/** Map resolved credential fields into a spawned process environment. */
|
|
92
|
+
declare const ProcessEnvAdapterAuthDeliverySchema: z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"process-env">;
|
|
94
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
/** Map resolved fields and JSON constants into an adapter-owned operation. */
|
|
97
|
+
declare const ConnectorAdapterAuthDeliverySchema: z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"connector">;
|
|
99
|
+
target: z.ZodString;
|
|
100
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
101
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
/** Delegate authentication materialization to a native client. */
|
|
104
|
+
declare const NativeClientAdapterAuthDeliverySchema: z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"native-client">;
|
|
106
|
+
clientId: z.ZodString;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
/** Declare that the selected path performs no authentication delivery. */
|
|
109
|
+
declare const NoAdapterAuthDeliverySchema: z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"none">;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
/** One runtime-only adapter delivery strategy for a selected auth method. */
|
|
113
|
+
declare const AdapterAuthDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"process-env">;
|
|
115
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"connector">;
|
|
118
|
+
target: z.ZodString;
|
|
119
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
120
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
122
|
+
kind: z.ZodLiteral<"native-client">;
|
|
123
|
+
clientId: z.ZodString;
|
|
124
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
125
|
+
kind: z.ZodLiteral<"none">;
|
|
126
|
+
}, z.core.$strict>], "kind">;
|
|
127
|
+
/** Runtime-only compatibility and delivery declaration for one auth method. */
|
|
128
|
+
declare const AdapterAuthBindingSchema: z.ZodObject<{
|
|
129
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
130
|
+
owner: z.ZodLiteral<"provider">;
|
|
131
|
+
providerDefinitionId: z.ZodString;
|
|
132
|
+
methodId: z.ZodString;
|
|
133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
134
|
+
owner: z.ZodLiteral<"client">;
|
|
135
|
+
clientId: z.ZodString;
|
|
136
|
+
methodId: z.ZodString;
|
|
137
|
+
}, z.core.$strict>], "owner">;
|
|
138
|
+
deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
139
|
+
kind: z.ZodLiteral<"process-env">;
|
|
140
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
kind: z.ZodLiteral<"connector">;
|
|
143
|
+
target: z.ZodString;
|
|
144
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
145
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
kind: z.ZodLiteral<"native-client">;
|
|
148
|
+
clientId: z.ZodString;
|
|
149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
150
|
+
kind: z.ZodLiteral<"none">;
|
|
151
|
+
}, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"process-env">;
|
|
153
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
kind: z.ZodLiteral<"connector">;
|
|
156
|
+
target: z.ZodString;
|
|
157
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
158
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"native-client">;
|
|
161
|
+
clientId: z.ZodString;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
kind: z.ZodLiteral<"none">;
|
|
164
|
+
}, z.core.$strict>], "kind">>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
/** Complete runtime-only authentication metadata for one adapter/provider ref. */
|
|
167
|
+
declare const AdapterProviderAuthSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
168
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
169
|
+
method: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
170
|
+
owner: z.ZodLiteral<"provider">;
|
|
171
|
+
providerDefinitionId: z.ZodString;
|
|
172
|
+
methodId: z.ZodString;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
174
|
+
owner: z.ZodLiteral<"client">;
|
|
175
|
+
clientId: z.ZodString;
|
|
176
|
+
methodId: z.ZodString;
|
|
177
|
+
}, z.core.$strict>], "owner">;
|
|
178
|
+
deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
|
+
kind: z.ZodLiteral<"process-env">;
|
|
180
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
181
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
+
kind: z.ZodLiteral<"connector">;
|
|
183
|
+
target: z.ZodString;
|
|
184
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
185
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
kind: z.ZodLiteral<"native-client">;
|
|
188
|
+
clientId: z.ZodString;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"none">;
|
|
191
|
+
}, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
kind: z.ZodLiteral<"process-env">;
|
|
193
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
+
kind: z.ZodLiteral<"connector">;
|
|
196
|
+
target: z.ZodString;
|
|
197
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
198
|
+
constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
200
|
+
kind: z.ZodLiteral<"native-client">;
|
|
201
|
+
clientId: z.ZodString;
|
|
202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
+
kind: z.ZodLiteral<"none">;
|
|
204
|
+
}, z.core.$strict>], "kind">>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
scrubEnvVars: z.ZodArray<z.ZodString>;
|
|
207
|
+
}, z.core.$strict>, "AdapterProviderAuth", "out">;
|
|
208
|
+
type AdapterAuthConstant = z.infer<typeof AdapterAuthConstantSchema>;
|
|
209
|
+
/** Readonly declaration shape for process-environment auth delivery. */
|
|
210
|
+
interface ProcessEnvAdapterAuthDelivery {
|
|
211
|
+
readonly kind: 'process-env';
|
|
212
|
+
readonly fields: Readonly<Record<string, string>>;
|
|
213
|
+
}
|
|
214
|
+
/** Readonly declaration shape for connector auth delivery. */
|
|
215
|
+
interface ConnectorAdapterAuthDelivery {
|
|
216
|
+
readonly kind: 'connector';
|
|
217
|
+
readonly target: string;
|
|
218
|
+
readonly fields: Readonly<Record<string, string>>;
|
|
219
|
+
readonly constants?: Readonly<Record<string, AdapterAuthConstant>>;
|
|
220
|
+
}
|
|
221
|
+
/** Readonly declaration shape for native-client auth delivery. */
|
|
222
|
+
interface NativeClientAdapterAuthDelivery {
|
|
223
|
+
readonly kind: 'native-client';
|
|
224
|
+
readonly clientId: string;
|
|
225
|
+
}
|
|
226
|
+
/** Readonly declaration shape for an explicit no-delivery binding. */
|
|
227
|
+
interface NoAdapterAuthDelivery {
|
|
228
|
+
readonly kind: 'none';
|
|
229
|
+
}
|
|
230
|
+
type AdapterAuthDelivery = ProcessEnvAdapterAuthDelivery | ConnectorAdapterAuthDelivery | NativeClientAdapterAuthDelivery | NoAdapterAuthDelivery;
|
|
231
|
+
/** Readonly runtime declaration for one method binding. */
|
|
232
|
+
interface AdapterAuthBinding {
|
|
233
|
+
readonly method: AuthMethodRef;
|
|
234
|
+
readonly deliveries: readonly [AdapterAuthDelivery, ...AdapterAuthDelivery[]];
|
|
235
|
+
}
|
|
236
|
+
/** Unvalidated readonly declaration accepted by {@link defineAdapterProviderAuth}. */
|
|
237
|
+
interface AdapterProviderAuthInput {
|
|
238
|
+
readonly bindings: readonly AdapterAuthBinding[];
|
|
239
|
+
readonly scrubEnvVars: readonly string[];
|
|
240
|
+
}
|
|
241
|
+
/** Validated runtime declaration attached to an adapter/provider ref. */
|
|
242
|
+
type AdapterProviderAuth = z.infer<typeof AdapterProviderAuthSchema>;
|
|
243
|
+
/**
|
|
244
|
+
* Validate and clone one runtime-only adapter/provider auth declaration.
|
|
245
|
+
*
|
|
246
|
+
* Adapter definitions call this at declaration time so invalid target names,
|
|
247
|
+
* duplicate bindings, and inconsistent native-client ownership fail before
|
|
248
|
+
* the adapter enters the runtime registry.
|
|
249
|
+
* @param auth - Authentication declaration to validate.
|
|
250
|
+
* @returns Parsed authentication declaration.
|
|
251
|
+
*/
|
|
252
|
+
declare function defineAdapterProviderAuth(auth: AdapterProviderAuthInput): AdapterProviderAuth;
|
|
253
|
+
//#endregion
|
|
254
|
+
export { ProviderConfigAuthSchema as A, ClientAuthMethodRef as C, ProviderAuthMethodRef as D, NativeAccountSelectionSchema as E, ProviderConfigManagerSchema as M, ProviderAuthMethodRefSchema as O, AuthMethodRefSchema as S, NativeAccountSelection as T, ProcessEnvAdapterAuthDeliverySchema as _, AdapterAuthDelivery as a, AuthCredentialRefSchema as b, AdapterProviderAuthInput as c, ConnectorAdapterAuthDeliverySchema as d, NativeClientAdapterAuthDelivery as f, ProcessEnvAdapterAuthDelivery as g, NoAdapterAuthDeliverySchema as h, AdapterAuthConstantSchema as i, ProviderConfigManager as j, ProviderConfigAuth as k, AdapterProviderAuthSchema as l, NoAdapterAuthDelivery as m, AdapterAuthBindingSchema as n, AdapterAuthDeliverySchema as o, NativeClientAdapterAuthDeliverySchema as p, AdapterAuthConstant as r, AdapterProviderAuth as s, AdapterAuthBinding as t, ConnectorAdapterAuthDelivery as u, defineAdapterProviderAuth as v, ClientAuthMethodRefSchema as w, AuthMethodRef as x, AuthCredentialRef as y };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,b as t,c as n,d as r,f as i,g as a,h as o,ht as s,l as c,m as l,o as u,p as d,s as f,t as p,u as m,v as h,y as g}from"./schemas-
|
|
1
|
+
import{_ as e,b as t,c as n,d as r,f as i,g as a,h as o,ht as s,l as c,m as l,o as u,p as d,s as f,t as p,u as m,v as h,y as g}from"./schemas-n9Ff6_RX.mjs";import"./compression-CZ_6fYq8.mjs";import"./provider-context-DOsjOjiR.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as _}from"@makaio/framework/core";const v={getCapabilities:s,startAgent:t,infer:g,listAgents:h,getAgent:e,stopAgent:a,rehydrateAgent:o,getConfigSchema:l,"agent.created":d,"session.created":i,"session.discovered":p,"session.usage":r,"session.closed":m,log:c,error:n,initialized:f,quota:u},y=_(`adapter`,v),b=y.subjects;export{b as n,v as r,y as t};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
3
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
|
-
import { AdapterClientRef, AdapterProviderDefinitionContract, AdapterProviderRef, MakaioNodeExtension, ProtocolId } from "@makaio/framework/contracts";
|
|
4
|
+
import { AdapterClientRef, AdapterProviderDefinitionContract, AdapterProviderRef, MakaioNodeExtension, ProtocolId, ResolvedProviderContext } from "@makaio/framework/contracts";
|
|
5
5
|
import { BaseService } from "@makaio/framework/service-base";
|
|
6
|
+
import { ClientAuthMethodDefinition, ProviderAuthMethodDefinition, ProviderConfigAuth } from "@makaio/framework/contracts/auth";
|
|
6
7
|
import { AdapterFile, ProviderConfigFile } from "@makaio/framework/contracts/config";
|
|
8
|
+
import { ClientDefinition as ClientDefinition$1 } from "@makaio/framework/contracts/client";
|
|
9
|
+
import { ClientRecord, ProviderRecord } from "@makaio/framework/services/settings/storage";
|
|
7
10
|
import { ContributionProcessor, ExtensionCoordinator } from "@makaio/framework/kernel";
|
|
8
11
|
import { AdapterFileConfigSet, IAdapterConfigRepository, IAdapterConfigRepository as IAdapterConfigRepository$1, ProviderConfigFileSet } from "@makaio/framework/services/adapter-subsystem";
|
|
9
12
|
import { AvailableAdapter, HelpLink } from "@makaio/framework/services/settings";
|
|
@@ -65,6 +68,13 @@ interface AdapterInitOptions {
|
|
|
65
68
|
* downstream consumers where the runtime bus differs from the default singleton.
|
|
66
69
|
*/
|
|
67
70
|
globalBus?: IMakaioBus;
|
|
71
|
+
/**
|
|
72
|
+
* Trusted host-layer auth preparer forwarded opaquely to the adapter factory.
|
|
73
|
+
*
|
|
74
|
+
* The core subsystem never invokes or serializes this value, avoiding a
|
|
75
|
+
* dependency on the host adapter runtime types.
|
|
76
|
+
*/
|
|
77
|
+
prepareAuthRuntime?: unknown;
|
|
68
78
|
}
|
|
69
79
|
/**
|
|
70
80
|
* Minimal adapter instance surface returned by the adapter factory.
|
|
@@ -133,8 +143,6 @@ interface LoadedAdapter {
|
|
|
133
143
|
providers: LoadedAdapterProvider[];
|
|
134
144
|
/** Adapter-level provider config schema applied during delayed provider resolution. */
|
|
135
145
|
providerConfigSchema?: z.ZodObject<z.ZodRawShape>;
|
|
136
|
-
/** Adapter-level provider credential schema applied during delayed provider resolution. */
|
|
137
|
-
providerCredentialSchema?: z.ZodObject<z.ZodRawShape>;
|
|
138
146
|
/** Help links for documentation. */
|
|
139
147
|
helpLinks?: readonly HelpLink[];
|
|
140
148
|
/** Setup instructions in Markdown format. */
|
|
@@ -143,6 +151,8 @@ interface LoadedAdapter {
|
|
|
143
151
|
defaultPresetId?: string;
|
|
144
152
|
/** Client extensions this adapter can delegate to, with compatible version ranges. */
|
|
145
153
|
clients?: readonly AdapterClientRef[];
|
|
154
|
+
/** Authoritative definitions for every client this adapter may execute. */
|
|
155
|
+
clientDefinitions?: readonly ClientDefinition$1[];
|
|
146
156
|
/** Wire protocol this adapter speaks (e.g., `'anthropic'`, `'openai'`). */
|
|
147
157
|
protocol?: ProtocolId;
|
|
148
158
|
}
|
|
@@ -230,6 +240,8 @@ interface AdapterSubsystemServiceOptions {
|
|
|
230
240
|
* Platform-provided defaults forwarded to adapter factories.
|
|
231
241
|
*/
|
|
232
242
|
readonly platformDefaults: PlatformDefaults;
|
|
243
|
+
/** Trusted host-layer auth preparer forwarded opaquely to adapter factories. */
|
|
244
|
+
readonly prepareAuthRuntime?: unknown;
|
|
233
245
|
}
|
|
234
246
|
/**
|
|
235
247
|
* File-backed adapter subsystem service.
|
|
@@ -273,6 +285,8 @@ declare class AdapterSubsystemService extends BaseService {
|
|
|
273
285
|
protected onInit(): Promise<void>;
|
|
274
286
|
private registerBusHandlers;
|
|
275
287
|
private registerReadHandlers;
|
|
288
|
+
private registerConfigReadHandlers;
|
|
289
|
+
private registerRuntimeReadHandlers;
|
|
276
290
|
private registerMutationHandlers;
|
|
277
291
|
/**
|
|
278
292
|
* Shut down adapter instances and clear in-memory state on destroy.
|
|
@@ -357,7 +371,9 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
|
|
|
357
371
|
loadAdapterConfigs(): Promise<AdapterFileConfigSet>;
|
|
358
372
|
/**
|
|
359
373
|
* Load all validated provider config files from disk.
|
|
360
|
-
*
|
|
374
|
+
*
|
|
375
|
+
* Structurally invalid provider configs fail the load with a typed diagnostic
|
|
376
|
+
* so legacy authentication semantics are never silently ignored.
|
|
361
377
|
* @returns Validated provider config file set.
|
|
362
378
|
*/
|
|
363
379
|
loadProviderConfigs(): Promise<ProviderConfigFileSet>;
|
|
@@ -389,6 +405,7 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
|
|
|
389
405
|
* Read raw JSON files from a directory, returning an empty array when missing.
|
|
390
406
|
* @param directoryPath - Directory to scan.
|
|
391
407
|
* @param label - Human-readable file label for warnings.
|
|
408
|
+
* @param invalidJsonPolicy - Whether malformed JSON is skipped or rejected.
|
|
392
409
|
* @returns JSON file entries sorted by file name.
|
|
393
410
|
*/
|
|
394
411
|
private readJsonFiles;
|
|
@@ -398,6 +415,13 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
|
|
|
398
415
|
* @param filePath - Absolute path to the skipped file.
|
|
399
416
|
*/
|
|
400
417
|
private warnInvalidFile;
|
|
418
|
+
/**
|
|
419
|
+
* Parse one canonical provider config without reinterpreting legacy fields.
|
|
420
|
+
* @param value - Raw JSON or repository write input.
|
|
421
|
+
* @param source - Safe provider-config ID used in diagnostics.
|
|
422
|
+
* @returns Validated canonical provider config.
|
|
423
|
+
*/
|
|
424
|
+
private parseProviderConfig;
|
|
401
425
|
/**
|
|
402
426
|
* Check a loaded JSON file stem before accepting it as a canonical ID.
|
|
403
427
|
* @param stem - File stem derived from the directory entry.
|
|
@@ -445,6 +469,85 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
|
|
|
445
469
|
private assertCanonicalFileStem;
|
|
446
470
|
}
|
|
447
471
|
//#endregion
|
|
472
|
+
//#region subsystems/adapter/src/provider-config-diagnostic-error.d.ts
|
|
473
|
+
/** Stable diagnostic categories for rejected provider-config files. */
|
|
474
|
+
type ProviderConfigDiagnosticCode = 'legacy-provider-config' | 'unsupported-provider-config-version' | 'invalid-provider-config';
|
|
475
|
+
/**
|
|
476
|
+
* Typed startup/write diagnostic for a provider-config file that cannot be
|
|
477
|
+
* interpreted under the canonical normalized-auth contract.
|
|
478
|
+
*/
|
|
479
|
+
declare class ProviderConfigDiagnosticError extends Error {
|
|
480
|
+
/** Stable machine-readable diagnostic code. */
|
|
481
|
+
readonly code: ProviderConfigDiagnosticCode;
|
|
482
|
+
/** Safe file name or provider-config identifier rejected by the repository. */
|
|
483
|
+
readonly source: string;
|
|
484
|
+
/**
|
|
485
|
+
* Create a provider-config diagnostic.
|
|
486
|
+
* @param code - Stable diagnostic category.
|
|
487
|
+
* @param source - Safe file name or config identifier being parsed.
|
|
488
|
+
* @param detail - Safe structural detail that contains no credential values.
|
|
489
|
+
*/
|
|
490
|
+
constructor(code: ProviderConfigDiagnosticCode, source: string, detail: string);
|
|
491
|
+
}
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region subsystems/adapter/src/provider-config-auth-validation.d.ts
|
|
494
|
+
/** Definition records captured while validating one auth selection. */
|
|
495
|
+
interface ValidatedProviderConfigAuth {
|
|
496
|
+
/** Exact declared method selected by the config. */
|
|
497
|
+
readonly method: ProviderAuthMethodDefinition | ClientAuthMethodDefinition;
|
|
498
|
+
/** Provider definition that owns the containing config. */
|
|
499
|
+
readonly provider: ProviderRecord;
|
|
500
|
+
/** Client definition when the selected method is client-owned. */
|
|
501
|
+
readonly client?: ClientRecord;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Require definition records selected by a structurally valid auth choice to
|
|
505
|
+
* be enabled before the provider config can become executable.
|
|
506
|
+
*
|
|
507
|
+
* Disabled configs may retain structurally valid selections that reference a
|
|
508
|
+
* disabled catalog record. The gate belongs at enable/runtime transitions so
|
|
509
|
+
* drafts and managed desired state remain persistable without becoming usable.
|
|
510
|
+
* @param validated - Definition records returned by structural auth validation.
|
|
511
|
+
*/
|
|
512
|
+
declare function assertProviderConfigAuthDefinitionsEnabled(validated: ValidatedProviderConfigAuth): void;
|
|
513
|
+
/** Stable categories for definition-backed auth-selection validation. */
|
|
514
|
+
type ProviderConfigAuthValidationCode = 'provider-definition-not-found' | 'provider-definition-disabled' | 'client-definition-not-found' | 'client-definition-disabled' | 'auth-method-not-found' | 'auth-mode-mismatch' | 'auth-credential-fields-mismatch';
|
|
515
|
+
/** Typed validation failure for a provider-config auth selection. */
|
|
516
|
+
declare class ProviderConfigAuthValidationError extends Error {
|
|
517
|
+
readonly code: ProviderConfigAuthValidationCode;
|
|
518
|
+
/**
|
|
519
|
+
* Create a definition-backed validation error.
|
|
520
|
+
* @param code - Stable validation category.
|
|
521
|
+
* @param message - Human-readable diagnostic that contains no credential values.
|
|
522
|
+
*/
|
|
523
|
+
constructor(code: ProviderConfigAuthValidationCode, message: string);
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Validate a normalized auth selection against provider/client definition
|
|
527
|
+
* storage. No compatibility is inferred from provider IDs: client-owned
|
|
528
|
+
* methods are resolved only from the referenced client definition.
|
|
529
|
+
* @param bus - Bus used to read provider and client definitions.
|
|
530
|
+
* @param definitionId - Provider definition selected by the containing config.
|
|
531
|
+
* @param auth - Complete normalized auth selection.
|
|
532
|
+
* @param knownProvider - Optional provider record already fetched by the caller.
|
|
533
|
+
* @returns The validated method and definition records from one lookup snapshot.
|
|
534
|
+
*/
|
|
535
|
+
declare function validateProviderConfigAuth(bus: IMakaioBus, definitionId: string, auth: ProviderConfigAuth, knownProvider?: ProviderRecord): Promise<ValidatedProviderConfigAuth>;
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region subsystems/adapter/src/provider-runtime-view.d.ts
|
|
538
|
+
/** Stable runtime-context assembly failure categories. */
|
|
539
|
+
type ProviderRuntimeContextErrorCode = 'provider-config-disabled';
|
|
540
|
+
/** Typed failure raised before a config can reach adapter startup. */
|
|
541
|
+
declare class ProviderRuntimeContextError extends Error {
|
|
542
|
+
readonly code: ProviderRuntimeContextErrorCode;
|
|
543
|
+
/**
|
|
544
|
+
* Create a runtime provider-context failure.
|
|
545
|
+
* @param code - Stable failure category.
|
|
546
|
+
* @param message - Credential-free diagnostic.
|
|
547
|
+
*/
|
|
548
|
+
constructor(code: ProviderRuntimeContextErrorCode, message: string);
|
|
549
|
+
}
|
|
550
|
+
//#endregion
|
|
448
551
|
//#region subsystems/adapter/src/adapter-subsystem-contribution-factory.d.ts
|
|
449
552
|
/**
|
|
450
553
|
* Dependencies for the adapter subsystem contribution processor factory.
|
|
@@ -495,6 +598,8 @@ interface CreateAdapterSubsystemPackageOptions {
|
|
|
495
598
|
* Platform-provided defaults forwarded to adapter factories.
|
|
496
599
|
*/
|
|
497
600
|
readonly platformDefaults: PlatformDefaults;
|
|
601
|
+
/** Trusted host-layer auth preparer forwarded opaquely to adapter factories. */
|
|
602
|
+
readonly prepareAuthRuntime?: unknown;
|
|
498
603
|
}
|
|
499
604
|
/**
|
|
500
605
|
* Create the adapter subsystem extension package.
|
|
@@ -509,4 +614,4 @@ interface CreateAdapterSubsystemPackageOptions {
|
|
|
509
614
|
*/
|
|
510
615
|
declare function createAdapterSubsystemPackage(options: CreateAdapterSubsystemPackageOptions): MakaioNodeExtension<IMakaioBus>;
|
|
511
616
|
//#endregion
|
|
512
|
-
export { type AdapterInitOptions, type AdapterInstance, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName, initializeEnabledAdapters, shutdownAdapterInstances, toAvailableAdapter };
|
|
617
|
+
export { type AdapterInitOptions, type AdapterInstance, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, type ProviderConfigAuthValidationCode, ProviderConfigAuthValidationError, type ProviderConfigDiagnosticCode, ProviderConfigDiagnosticError, ProviderRuntimeContextError, type ProviderRuntimeContextErrorCode, type ValidatedProviderConfigAuth, assertProviderConfigAuthDefinitionsEnabled, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName, initializeEnabledAdapters, shutdownAdapterInstances, toAvailableAdapter, validateProviderConfigAuth };
|