@frontmcp/sdk 0.6.3 → 0.7.2
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/adapter/adapter.instance.d.ts +3 -1
- package/adapter/adapter.instance.d.ts.map +1 -0
- package/adapter/adapter.regsitry.d.ts +1 -0
- package/adapter/adapter.regsitry.d.ts.map +1 -0
- package/adapter/adapter.utils.d.ts +3 -1
- package/adapter/adapter.utils.d.ts.map +1 -0
- package/agent/adapters/adapter.factory.d.ts +105 -0
- package/agent/adapters/adapter.factory.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts +116 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -0
- package/agent/adapters/index.d.ts +47 -0
- package/agent/adapters/index.d.ts.map +1 -0
- package/agent/adapters/langchain.adapter.d.ts +178 -0
- package/agent/adapters/langchain.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +36 -0
- package/agent/adapters/providers/index.d.ts.map +1 -0
- package/agent/adapters/providers/types.d.ts +15 -0
- package/agent/adapters/providers/types.d.ts.map +1 -0
- package/agent/agent-execution-loop.d.ts +209 -0
- package/agent/agent-execution-loop.d.ts.map +1 -0
- package/agent/agent.events.d.ts +149 -0
- package/agent/agent.events.d.ts.map +1 -0
- package/agent/agent.instance.d.ts +201 -0
- package/agent/agent.instance.d.ts.map +1 -0
- package/agent/agent.registry.d.ts +137 -0
- package/agent/agent.registry.d.ts.map +1 -0
- package/agent/agent.scope.d.ts +333 -0
- package/agent/agent.scope.d.ts.map +1 -0
- package/agent/agent.utils.d.ts +72 -0
- package/agent/agent.utils.d.ts.map +1 -0
- package/agent/flows/call-agent.flow.d.ts +306 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -0
- package/agent/flows/index.d.ts +2 -0
- package/agent/flows/index.d.ts.map +1 -0
- package/agent/hooks/agent.hooks.d.ts +52 -0
- package/agent/hooks/agent.hooks.d.ts.map +1 -0
- package/agent/hooks/index.d.ts +2 -0
- package/agent/hooks/index.d.ts.map +1 -0
- package/agent/index.d.ts +51 -0
- package/agent/index.d.ts.map +1 -0
- package/app/app.registry.d.ts +1 -0
- package/app/app.registry.d.ts.map +1 -0
- package/app/app.utils.d.ts +3 -1
- package/app/app.utils.d.ts.map +1 -0
- package/app/instances/app.local.instance.d.ts +4 -0
- package/app/instances/app.local.instance.d.ts.map +1 -0
- package/app/instances/app.remote.instance.d.ts +98 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -0
- package/auth/auth.registry.d.ts +1 -0
- package/auth/auth.registry.d.ts.map +1 -0
- package/auth/auth.utils.d.ts +3 -1
- package/auth/auth.utils.d.ts.map +1 -0
- package/auth/authorization/authorization.class.d.ts +1 -0
- package/auth/authorization/authorization.class.d.ts.map +1 -0
- package/auth/authorization/authorization.types.d.ts +1 -0
- package/auth/authorization/authorization.types.d.ts.map +1 -0
- package/auth/authorization/index.d.ts +1 -0
- package/auth/authorization/index.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -0
- package/auth/authorization/public.authorization.d.ts +1 -0
- package/auth/authorization/public.authorization.d.ts.map +1 -0
- package/auth/authorization/transparent.authorization.d.ts +1 -0
- package/auth/authorization/transparent.authorization.d.ts.map +1 -0
- package/auth/consent/consent.types.d.ts +1 -0
- package/auth/consent/consent.types.d.ts.map +1 -0
- package/auth/consent/index.d.ts +1 -0
- package/auth/consent/index.d.ts.map +1 -0
- package/auth/detection/auth-provider-detection.d.ts +1 -0
- package/auth/detection/auth-provider-detection.d.ts.map +1 -0
- package/auth/detection/index.d.ts +1 -0
- package/auth/detection/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts +8 -2
- package/auth/flows/auth.verify.flow.d.ts.map +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/flows/oauth.callback.flow.d.ts +1 -0
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +4 -3
- package/auth/flows/oauth.register.flow.d.ts.map +1 -0
- package/auth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/flows/session.verify.flow.d.ts +12 -1
- package/auth/flows/session.verify.flow.d.ts.map +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -0
- package/auth/flows/well-known.prm.flow.d.ts +1 -0
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -0
- package/auth/jwks/dev-key-persistence.d.ts +1 -0
- package/auth/jwks/dev-key-persistence.d.ts.map +1 -0
- package/auth/jwks/index.d.ts +1 -0
- package/auth/jwks/index.d.ts.map +1 -0
- package/auth/jwks/jwks.service.d.ts +16 -2
- package/auth/jwks/jwks.service.d.ts.map +1 -0
- package/auth/jwks/jwks.types.d.ts +1 -0
- package/auth/jwks/jwks.types.d.ts.map +1 -0
- package/auth/jwks/jwks.utils.d.ts +1 -0
- package/auth/jwks/jwks.utils.d.ts.map +1 -0
- package/auth/machine-id.d.ts +1 -0
- package/auth/machine-id.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +1 -0
- package/auth/session/authorization-vault.d.ts +5 -4
- package/auth/session/authorization-vault.d.ts.map +1 -0
- package/auth/session/authorization.store.d.ts +1 -0
- package/auth/session/authorization.store.d.ts.map +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -0
- package/auth/session/index.d.ts +1 -0
- package/auth/session/index.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +1 -0
- package/auth/session/record/session.base.d.ts.map +1 -0
- package/auth/session/record/session.stateful.d.ts +1 -0
- package/auth/session/record/session.stateful.d.ts.map +1 -0
- package/auth/session/record/session.stateless.d.ts +1 -0
- package/auth/session/record/session.stateless.d.ts.map +1 -0
- package/auth/session/record/session.transparent.d.ts +1 -0
- package/auth/session/record/session.transparent.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +1 -0
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +1 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +1 -0
- package/auth/session/session-rate-limiter.d.ts.map +1 -0
- package/auth/session/session.crypto.d.ts +1 -0
- package/auth/session/session.crypto.d.ts.map +1 -0
- package/auth/session/session.schema.d.ts +1 -0
- package/auth/session/session.schema.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +1 -0
- package/auth/session/session.service.d.ts.map +1 -0
- package/auth/session/session.transport.d.ts +1 -0
- package/auth/session/session.transport.d.ts.map +1 -0
- package/auth/session/session.types.d.ts +1 -0
- package/auth/session/session.types.d.ts.map +1 -0
- package/auth/session/token.refresh.d.ts +1 -0
- package/auth/session/token.refresh.d.ts.map +1 -0
- package/auth/session/token.store.d.ts +3 -2
- package/auth/session/token.store.d.ts.map +1 -0
- package/auth/session/token.vault.d.ts +1 -0
- package/auth/session/token.vault.d.ts.map +1 -0
- package/auth/session/transport-session.manager.d.ts +1 -0
- package/auth/session/transport-session.manager.d.ts.map +1 -0
- package/auth/session/transport-session.types.d.ts +9 -8
- package/auth/session/transport-session.types.d.ts.map +1 -0
- package/auth/session/utils/auth-token.utils.d.ts +1 -0
- package/auth/session/utils/auth-token.utils.d.ts.map +1 -0
- package/auth/session/utils/session-id.utils.d.ts +1 -0
- package/auth/session/utils/session-id.utils.d.ts.map +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts.map +1 -0
- package/auth/session/vault-encryption.d.ts +1 -0
- package/auth/session/vault-encryption.d.ts.map +1 -0
- package/auth/session/vercel-kv-session.store.d.ts +1 -0
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -0
- package/auth/ui/base-layout.d.ts +1 -0
- package/auth/ui/base-layout.d.ts.map +1 -0
- package/auth/ui/index.d.ts +1 -0
- package/auth/ui/index.d.ts.map +1 -0
- package/auth/ui/templates.d.ts +1 -0
- package/auth/ui/templates.d.ts.map +1 -0
- package/auth/utils/audience.validator.d.ts +1 -0
- package/auth/utils/audience.validator.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -0
- package/auth/utils/index.d.ts.map +1 -0
- package/auth/utils/www-authenticate.utils.d.ts +1 -0
- package/auth/utils/www-authenticate.utils.d.ts.map +1 -0
- package/common/common.schema.d.ts +1 -0
- package/common/common.schema.d.ts.map +1 -0
- package/common/decorators/adapter.decorator.d.ts +1 -0
- package/common/decorators/adapter.decorator.d.ts.map +1 -0
- package/common/decorators/agent.decorator.d.ts +116 -0
- package/common/decorators/agent.decorator.d.ts.map +1 -0
- package/common/decorators/app.decorator.d.ts +1 -0
- package/common/decorators/app.decorator.d.ts.map +1 -0
- package/common/decorators/auth-provider.decorator.d.ts +1 -0
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -0
- package/common/decorators/decorator-utils.d.ts +1 -0
- package/common/decorators/decorator-utils.d.ts.map +1 -0
- package/common/decorators/flow.decorator.d.ts +1 -0
- package/common/decorators/flow.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -0
- package/common/decorators/hook.decorator.d.ts +1 -0
- package/common/decorators/hook.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -0
- package/common/decorators/logger.decorator.d.ts +1 -0
- package/common/decorators/logger.decorator.d.ts.map +1 -0
- package/common/decorators/plugin.decorator.d.ts +1 -0
- package/common/decorators/plugin.decorator.d.ts.map +1 -0
- package/common/decorators/prompt.decorator.d.ts +8 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -0
- package/common/decorators/provider.decorator.d.ts +1 -0
- package/common/decorators/provider.decorator.d.ts.map +1 -0
- package/common/decorators/resource.decorator.d.ts +1 -0
- package/common/decorators/resource.decorator.d.ts.map +1 -0
- package/common/decorators/tool.decorator.d.ts +1 -0
- package/common/decorators/tool.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +1 -0
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -0
- package/common/dynamic/dynamic.plugin.d.ts +3 -1
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -0
- package/common/dynamic/dynamic.utils.d.ts +1 -0
- package/common/dynamic/dynamic.utils.d.ts.map +1 -0
- package/common/dynamic/index.d.ts +1 -0
- package/common/dynamic/index.d.ts.map +1 -0
- package/common/entries/adapter.entry.d.ts +1 -0
- package/common/entries/adapter.entry.d.ts.map +1 -0
- package/common/entries/agent.entry.d.ts +143 -0
- package/common/entries/agent.entry.d.ts.map +1 -0
- package/common/entries/app.entry.d.ts +8 -0
- package/common/entries/app.entry.d.ts.map +1 -0
- package/common/entries/auth-provider.entry.d.ts +2 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -0
- package/common/entries/base.entry.d.ts +3 -2
- package/common/entries/base.entry.d.ts.map +1 -0
- package/common/entries/flow.entry.d.ts +3 -1
- package/common/entries/flow.entry.d.ts.map +1 -0
- package/common/entries/hook.entry.d.ts +7 -5
- package/common/entries/hook.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +2 -0
- package/common/entries/index.d.ts.map +1 -0
- package/common/entries/logger.entry.d.ts +1 -0
- package/common/entries/logger.entry.d.ts.map +1 -0
- package/common/entries/plugin.entry.d.ts +3 -1
- package/common/entries/plugin.entry.d.ts.map +1 -0
- package/common/entries/prompt.entry.d.ts +13 -0
- package/common/entries/prompt.entry.d.ts.map +1 -0
- package/common/entries/provider.entry.d.ts +5 -4
- package/common/entries/provider.entry.d.ts.map +1 -0
- package/common/entries/resource.entry.d.ts +7 -0
- package/common/entries/resource.entry.d.ts.map +1 -0
- package/common/entries/scope.entry.d.ts +3 -1
- package/common/entries/scope.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -0
- package/common/entries/tool.entry.d.ts.map +1 -0
- package/common/flow/flow.utils.d.ts +1 -0
- package/common/flow/flow.utils.d.ts.map +1 -0
- package/common/index.d.ts +1 -1
- package/common/index.d.ts.map +1 -0
- package/common/interfaces/adapter.interface.d.ts +2 -1
- package/common/interfaces/adapter.interface.d.ts.map +1 -0
- package/common/interfaces/agent.interface.d.ts +255 -0
- package/common/interfaces/agent.interface.d.ts.map +1 -0
- package/common/interfaces/app.interface.d.ts +5 -3
- package/common/interfaces/app.interface.d.ts.map +1 -0
- package/common/interfaces/auth-hook.interface.d.ts +1 -0
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -0
- package/common/interfaces/auth-provider.interface.d.ts +2 -1
- package/common/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/base.interface.d.ts +2 -77
- package/common/interfaces/base.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +2 -1
- package/common/interfaces/execution-context.interface.d.ts.map +1 -0
- package/common/interfaces/flow.interface.d.ts +2 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -0
- package/common/interfaces/front-mcp.interface.d.ts +1 -0
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -0
- package/common/interfaces/hook.interface.d.ts +2 -1
- package/common/interfaces/hook.interface.d.ts.map +1 -0
- package/common/interfaces/index.d.ts +4 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/interfaces/internal/flow.utils.d.ts +1 -0
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -0
- package/common/interfaces/internal/index.d.ts +1 -0
- package/common/interfaces/internal/index.d.ts.map +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/internal/registry.interface.d.ts +13 -3
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -0
- package/common/interfaces/llm-adapter.interface.d.ts +221 -0
- package/common/interfaces/llm-adapter.interface.d.ts.map +1 -0
- package/common/interfaces/logger.interface.d.ts +7 -6
- package/common/interfaces/logger.interface.d.ts.map +1 -0
- package/common/interfaces/plugin.interface.d.ts +2 -1
- package/common/interfaces/plugin.interface.d.ts.map +1 -0
- package/common/interfaces/prompt.interface.d.ts +10 -2
- package/common/interfaces/prompt.interface.d.ts.map +1 -0
- package/common/interfaces/provider.interface.d.ts +2 -1
- package/common/interfaces/provider.interface.d.ts.map +1 -0
- package/common/interfaces/resource.interface.d.ts +12 -2
- package/common/interfaces/resource.interface.d.ts.map +1 -0
- package/common/interfaces/scope.interface.d.ts +3 -2
- package/common/interfaces/scope.interface.d.ts.map +1 -0
- package/common/interfaces/server.interface.d.ts +1 -0
- package/common/interfaces/server.interface.d.ts.map +1 -0
- package/common/interfaces/session-hook.interface.d.ts +1 -0
- package/common/interfaces/session-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool-hook.interface.d.ts +1 -0
- package/common/interfaces/tool-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +52 -2
- package/common/interfaces/tool.interface.d.ts.map +1 -0
- package/common/metadata/adapter.metadata.d.ts +1 -0
- package/common/metadata/adapter.metadata.d.ts.map +1 -0
- package/common/metadata/agent.metadata.d.ts +398 -0
- package/common/metadata/agent.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +162 -16
- package/common/metadata/app.metadata.d.ts.map +1 -0
- package/common/metadata/auth-provider.metadata.d.ts +1 -0
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +5 -3
- package/common/metadata/flow.metadata.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +138 -46
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -0
- package/common/metadata/hook.metadata.d.ts +2 -1
- package/common/metadata/hook.metadata.d.ts.map +1 -0
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -0
- package/common/metadata/logger.metadata.d.ts +1 -0
- package/common/metadata/logger.metadata.d.ts.map +1 -0
- package/common/metadata/plugin.metadata.d.ts +74 -7
- package/common/metadata/plugin.metadata.d.ts.map +1 -0
- package/common/metadata/prompt.metadata.d.ts +1 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -0
- package/common/metadata/provider.metadata.d.ts +5 -30
- package/common/metadata/provider.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -0
- package/common/metadata/tool-ui.metadata.d.ts +1 -0
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +1 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -0
- package/common/migrate/auth-transport.migrate.d.ts +1 -0
- package/common/migrate/auth-transport.migrate.d.ts.map +1 -0
- package/common/migrate/index.d.ts +1 -0
- package/common/migrate/index.d.ts.map +1 -0
- package/common/providers/base-config.provider.d.ts +1 -0
- package/common/providers/base-config.provider.d.ts.map +1 -0
- package/common/records/adapter.record.d.ts +2 -1
- package/common/records/adapter.record.d.ts.map +1 -0
- package/common/records/agent.record.d.ts +89 -0
- package/common/records/agent.record.d.ts.map +1 -0
- package/common/records/app.record.d.ts +2 -1
- package/common/records/app.record.d.ts.map +1 -0
- package/common/records/auth-provider.record.d.ts +3 -1
- package/common/records/auth-provider.record.d.ts.map +1 -0
- package/common/records/flow.record.d.ts +1 -0
- package/common/records/flow.record.d.ts.map +1 -0
- package/common/records/hook.record.d.ts +1 -0
- package/common/records/hook.record.d.ts.map +1 -0
- package/common/records/index.d.ts +4 -0
- package/common/records/index.d.ts.map +1 -0
- package/common/records/logger.record.d.ts +4 -2
- package/common/records/logger.record.d.ts.map +1 -0
- package/common/records/plugin.record.d.ts +3 -1
- package/common/records/plugin.record.d.ts.map +1 -0
- package/common/records/prompt.record.d.ts +2 -1
- package/common/records/prompt.record.d.ts.map +1 -0
- package/common/records/provider.record.d.ts +2 -36
- package/common/records/provider.record.d.ts.map +1 -0
- package/common/records/resource.record.d.ts +2 -1
- package/common/records/resource.record.d.ts.map +1 -0
- package/common/records/scope.record.d.ts +2 -1
- package/common/records/scope.record.d.ts.map +1 -0
- package/common/records/tool.record.d.ts +3 -1
- package/common/records/tool.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +4 -1
- package/common/schemas/annotated-class.schema.d.ts.map +1 -0
- package/common/schemas/http-input.schema.d.ts +1 -0
- package/common/schemas/http-input.schema.d.ts.map +1 -0
- package/common/schemas/http-output.schema.d.ts +1 -0
- package/common/schemas/http-output.schema.d.ts.map +1 -0
- package/common/schemas/index.d.ts +1 -0
- package/common/schemas/index.d.ts.map +1 -0
- package/common/schemas/session-header.schema.d.ts +1 -0
- package/common/schemas/session-header.schema.d.ts.map +1 -0
- package/common/tokens/adapter.tokens.d.ts +1 -0
- package/common/tokens/adapter.tokens.d.ts.map +1 -0
- package/common/tokens/agent.tokens.d.ts +33 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -0
- package/common/tokens/app.tokens.d.ts +1 -0
- package/common/tokens/app.tokens.d.ts.map +1 -0
- package/common/tokens/auth-provider.tokens.d.ts +1 -0
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -0
- package/common/tokens/base.tokens.d.ts +6 -4
- package/common/tokens/base.tokens.d.ts.map +1 -0
- package/common/tokens/flow-hook.tokens.d.ts +1 -0
- package/common/tokens/flow-hook.tokens.d.ts.map +1 -0
- package/common/tokens/flow.tokens.d.ts +1 -0
- package/common/tokens/flow.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts +1 -0
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -0
- package/common/tokens/index.d.ts +2 -0
- package/common/tokens/index.d.ts.map +1 -0
- package/common/tokens/logger.tokens.d.ts +1 -0
- package/common/tokens/logger.tokens.d.ts.map +1 -0
- package/common/tokens/plugin.tokens.d.ts +3 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -0
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -0
- package/common/tokens/provider.tokens.d.ts +1 -0
- package/common/tokens/provider.tokens.d.ts.map +1 -0
- package/common/tokens/resource.tokens.d.ts +1 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -0
- package/common/tokens/server.tokens.d.ts +1 -0
- package/common/tokens/server.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -0
- package/common/types/auth/index.d.ts +1 -0
- package/common/types/auth/index.d.ts.map +1 -0
- package/common/types/auth/jwt.types.d.ts +1 -0
- package/common/types/auth/jwt.types.d.ts.map +1 -0
- package/common/types/auth/session.types.d.ts +1 -0
- package/common/types/auth/session.types.d.ts.map +1 -0
- package/common/types/common.types.d.ts +1 -0
- package/common/types/common.types.d.ts.map +1 -0
- package/common/types/index.d.ts +1 -0
- package/common/types/index.d.ts.map +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts.map +1 -0
- package/common/types/options/auth/auth.schema.d.ts +1 -0
- package/common/types/options/auth/auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts.map +1 -0
- package/common/types/options/auth/auth.utils.d.ts +1 -0
- package/common/types/options/auth/auth.utils.d.ts.map +1 -0
- package/common/types/options/auth/index.d.ts +1 -0
- package/common/types/options/auth/index.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -0
- package/common/types/options/auth/public.schema.d.ts +1 -0
- package/common/types/options/auth/public.schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +1 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -0
- package/common/types/options/auth/transparent.schema.d.ts +1 -0
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts.map +1 -0
- package/common/types/options/http.options.d.ts +1 -0
- package/common/types/options/http.options.d.ts.map +1 -0
- package/common/types/options/index.d.ts +1 -0
- package/common/types/options/index.d.ts.map +1 -0
- package/common/types/options/logging.options.d.ts +2 -5
- package/common/types/options/logging.options.d.ts.map +1 -0
- package/common/types/options/redis.options.d.ts +1 -0
- package/common/types/options/redis.options.d.ts.map +1 -0
- package/common/types/options/server-info.options.d.ts +1 -0
- package/common/types/options/server-info.options.d.ts.map +1 -0
- package/common/types/options/session.options.d.ts +1 -0
- package/common/types/options/session.options.d.ts.map +1 -0
- package/common/types/options/transport.options.d.ts +25 -0
- package/common/types/options/transport.options.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +1 -0
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -0
- package/common/utils/global-config.utils.d.ts +1 -0
- package/common/utils/global-config.utils.d.ts.map +1 -0
- package/common/utils/index.d.ts +1 -0
- package/common/utils/index.d.ts.map +1 -0
- package/common/utils/path.utils.d.ts +3 -4
- package/common/utils/path.utils.d.ts.map +1 -0
- package/completion/flows/complete.flow.d.ts +1 -0
- package/completion/flows/complete.flow.d.ts.map +1 -0
- package/context/context-extension.d.ts +52 -0
- package/context/context-extension.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -0
- package/context/frontmcp-context-storage.d.ts.map +1 -0
- package/context/frontmcp-context.d.ts +1 -0
- package/context/frontmcp-context.d.ts.map +1 -0
- package/context/frontmcp-context.provider.d.ts +3 -2
- package/context/frontmcp-context.provider.d.ts.map +1 -0
- package/context/index.d.ts +1 -0
- package/context/index.d.ts.map +1 -0
- package/context/request-context-storage.d.ts +1 -0
- package/context/request-context-storage.d.ts.map +1 -0
- package/context/request-context.d.ts +1 -0
- package/context/request-context.d.ts.map +1 -0
- package/context/request-context.provider.d.ts +1 -0
- package/context/request-context.provider.d.ts.map +1 -0
- package/context/session-key.provider.d.ts +1 -0
- package/context/session-key.provider.d.ts.map +1 -0
- package/context/trace-context.d.ts +1 -0
- package/context/trace-context.d.ts.map +1 -0
- package/errors/agent.errors.d.ts +80 -0
- package/errors/agent.errors.d.ts.map +1 -0
- package/errors/authorization-required.error.d.ts +1 -0
- package/errors/authorization-required.error.d.ts.map +1 -0
- package/errors/error-handler.d.ts +1 -0
- package/errors/error-handler.d.ts.map +1 -0
- package/errors/index.d.ts +4 -1
- package/errors/index.d.ts.map +1 -0
- package/errors/mcp.error.d.ts +31 -0
- package/errors/mcp.error.d.ts.map +1 -0
- package/errors/remote.errors.d.ts +156 -0
- package/errors/remote.errors.d.ts.map +1 -0
- package/esm/index.mjs +13968 -7053
- package/esm/package.json +12 -12
- package/flows/flow.instance.d.ts +1 -0
- package/flows/flow.instance.d.ts.map +1 -0
- package/flows/flow.registry.d.ts +3 -1
- package/flows/flow.registry.d.ts.map +1 -0
- package/flows/flow.stages.d.ts +1 -0
- package/flows/flow.stages.d.ts.map +1 -0
- package/flows/flow.utils.d.ts +3 -1
- package/flows/flow.utils.d.ts.map +1 -0
- package/front-mcp/front-mcp.d.ts +21 -1
- package/front-mcp/front-mcp.d.ts.map +1 -0
- package/front-mcp/front-mcp.providers.d.ts +42 -21
- package/front-mcp/front-mcp.providers.d.ts.map +1 -0
- package/front-mcp/front-mcp.tokens.d.ts +3 -1
- package/front-mcp/front-mcp.tokens.d.ts.map +1 -0
- package/front-mcp/index.d.ts +1 -0
- package/front-mcp/index.d.ts.map +1 -0
- package/front-mcp/serverless-handler.d.ts +1 -0
- package/front-mcp/serverless-handler.d.ts.map +1 -0
- package/hooks/hook.instance.d.ts +1 -0
- package/hooks/hook.instance.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +1 -0
- package/hooks/hook.registry.d.ts.map +1 -0
- package/hooks/hooks.utils.d.ts +3 -1
- package/hooks/hooks.utils.d.ts.map +1 -0
- package/index.d.ts +29 -20
- package/index.d.ts.map +1 -0
- package/index.js +14208 -7223
- package/logger/instances/instance.console-logger.d.ts +1 -0
- package/logger/instances/instance.console-logger.d.ts.map +1 -0
- package/logger/instances/instance.logger.d.ts +1 -0
- package/logger/instances/instance.logger.d.ts.map +1 -0
- package/logger/logger.registry.d.ts +1 -0
- package/logger/logger.registry.d.ts.map +1 -0
- package/logger/logger.tokens.d.ts +1 -0
- package/logger/logger.tokens.d.ts.map +1 -0
- package/logger/logger.types.d.ts +1 -0
- package/logger/logger.types.d.ts.map +1 -0
- package/logger/logger.utils.d.ts +3 -1
- package/logger/logger.utils.d.ts.map +1 -0
- package/logging/flows/set-level.flow.d.ts +1 -0
- package/logging/flows/set-level.flow.d.ts.map +1 -0
- package/notification/index.d.ts +1 -0
- package/notification/index.d.ts.map +1 -0
- package/notification/notification.service.d.ts +17 -4
- package/notification/notification.service.d.ts.map +1 -0
- package/package.json +12 -12
- package/plugin/plugin.registry.d.ts +25 -6
- package/plugin/plugin.registry.d.ts.map +1 -0
- package/plugin/plugin.utils.d.ts +3 -1
- package/plugin/plugin.utils.d.ts.map +1 -0
- package/prompt/flows/get-prompt.flow.d.ts +8 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -0
- package/prompt/flows/prompts-list.flow.d.ts +8 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -0
- package/prompt/index.d.ts +1 -0
- package/prompt/index.d.ts.map +1 -0
- package/prompt/prompt.events.d.ts +3 -2
- package/prompt/prompt.events.d.ts.map +1 -0
- package/prompt/prompt.instance.d.ts +7 -1
- package/prompt/prompt.instance.d.ts.map +1 -0
- package/prompt/prompt.registry.d.ts +32 -7
- package/prompt/prompt.registry.d.ts.map +1 -0
- package/prompt/prompt.types.d.ts +5 -4
- package/prompt/prompt.types.d.ts.map +1 -0
- package/prompt/prompt.utils.d.ts +3 -3
- package/prompt/prompt.utils.d.ts.map +1 -0
- package/provider/flow-context-providers.d.ts +24 -0
- package/provider/flow-context-providers.d.ts.map +1 -0
- package/provider/provider.registry.d.ts +26 -4
- package/provider/provider.registry.d.ts.map +1 -0
- package/provider/provider.types.d.ts +2 -1
- package/provider/provider.types.d.ts.map +1 -0
- package/provider/provider.utils.d.ts +21 -2
- package/provider/provider.utils.d.ts.map +1 -0
- package/regsitry/index.d.ts +1 -0
- package/regsitry/index.d.ts.map +1 -0
- package/regsitry/registry.base.d.ts +3 -1
- package/regsitry/registry.base.d.ts.map +1 -0
- package/remote-mcp/cache/capability-cache.d.ts +87 -0
- package/remote-mcp/cache/capability-cache.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +6 -0
- package/remote-mcp/cache/index.d.ts.map +1 -0
- package/remote-mcp/factories/context-factories.d.ts +43 -0
- package/remote-mcp/factories/context-factories.d.ts.map +1 -0
- package/remote-mcp/factories/index.d.ts +12 -0
- package/remote-mcp/factories/index.d.ts.map +1 -0
- package/remote-mcp/factories/instance-factories.d.ts +81 -0
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -0
- package/remote-mcp/factories/record-builders.d.ts +50 -0
- package/remote-mcp/factories/record-builders.d.ts.map +1 -0
- package/remote-mcp/index.d.ts +14 -0
- package/remote-mcp/index.d.ts.map +1 -0
- package/remote-mcp/mcp-client.service.d.ts +169 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -0
- package/remote-mcp/mcp-client.types.d.ts +298 -0
- package/remote-mcp/mcp-client.types.d.ts.map +1 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts +100 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -0
- package/remote-mcp/resilience/health-check.d.ts +107 -0
- package/remote-mcp/resilience/health-check.d.ts.map +1 -0
- package/remote-mcp/resilience/index.d.ts +8 -0
- package/remote-mcp/resilience/index.d.ts.map +1 -0
- package/remote-mcp/resilience/retry.d.ts +37 -0
- package/remote-mcp/resilience/retry.d.ts.map +1 -0
- package/resource/flows/read-resource.flow.d.ts +8 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -0
- package/resource/flows/resource-templates-list.flow.d.ts +8 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -0
- package/resource/flows/resources-list.flow.d.ts +8 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -0
- package/resource/index.d.ts +1 -0
- package/resource/index.d.ts.map +1 -0
- package/resource/resource.events.d.ts +3 -2
- package/resource/resource.events.d.ts.map +1 -0
- package/resource/resource.instance.d.ts +1 -0
- package/resource/resource.instance.d.ts.map +1 -0
- package/resource/resource.registry.d.ts +33 -8
- package/resource/resource.registry.d.ts.map +1 -0
- package/resource/resource.types.d.ts +5 -4
- package/resource/resource.types.d.ts.map +1 -0
- package/resource/resource.utils.d.ts +3 -5
- package/resource/resource.utils.d.ts.map +1 -0
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -0
- package/scope/index.d.ts +1 -0
- package/scope/index.d.ts.map +1 -0
- package/scope/scope.instance.d.ts +7 -0
- package/scope/scope.instance.d.ts.map +1 -0
- package/scope/scope.registry.d.ts +6 -0
- package/scope/scope.registry.d.ts.map +1 -0
- package/scope/scope.utils.d.ts +3 -1
- package/scope/scope.utils.d.ts.map +1 -0
- package/server/adapters/base.host.adapter.d.ts +1 -0
- package/server/adapters/base.host.adapter.d.ts.map +1 -0
- package/server/adapters/express.host.adapter.d.ts +1 -0
- package/server/adapters/express.host.adapter.d.ts.map +1 -0
- package/server/server.instance.d.ts +1 -0
- package/server/server.instance.d.ts.map +1 -0
- package/server/server.types.d.ts +1 -0
- package/server/server.types.d.ts.map +1 -0
- package/server/server.validation.d.ts +1 -0
- package/server/server.validation.d.ts.map +1 -0
- package/store/adapters/store.base.adapter.d.ts +1 -0
- package/store/adapters/store.base.adapter.d.ts.map +1 -0
- package/store/adapters/store.memory.adapter.d.ts +1 -0
- package/store/adapters/store.memory.adapter.d.ts.map +1 -0
- package/store/adapters/store.redis.adapter.d.ts +1 -0
- package/store/adapters/store.redis.adapter.d.ts.map +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +1 -0
- package/store/index.d.ts +1 -0
- package/store/index.d.ts.map +1 -0
- package/store/store.factory.d.ts +1 -0
- package/store/store.factory.d.ts.map +1 -0
- package/store/store.helpers.d.ts +1 -0
- package/store/store.helpers.d.ts.map +1 -0
- package/store/store.registry.d.ts +1 -0
- package/store/store.registry.d.ts.map +1 -0
- package/store/store.tokens.d.ts +1 -0
- package/store/store.tokens.d.ts.map +1 -0
- package/store/store.types.d.ts +1 -0
- package/store/store.types.d.ts.map +1 -0
- package/store/store.utils.d.ts +1 -0
- package/store/store.utils.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +9 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -0
- package/tool/flows/tools-list.flow.d.ts +8 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -0
- package/tool/tool.events.d.ts +3 -2
- package/tool/tool.events.d.ts.map +1 -0
- package/tool/tool.instance.d.ts +18 -1
- package/tool/tool.instance.d.ts.map +1 -0
- package/tool/tool.registry.d.ts +57 -5
- package/tool/tool.registry.d.ts.map +1 -0
- package/tool/tool.types.d.ts +5 -4
- package/tool/tool.types.d.ts.map +1 -0
- package/tool/tool.utils.d.ts +20 -3
- package/tool/tool.utils.d.ts.map +1 -0
- package/tool/ui/index.d.ts +1 -0
- package/tool/ui/index.d.ts.map +1 -0
- package/tool/ui/platform-adapters.d.ts +1 -0
- package/tool/ui/platform-adapters.d.ts.map +1 -0
- package/tool/ui/template-helpers.d.ts +1 -0
- package/tool/ui/template-helpers.d.ts.map +1 -0
- package/tool/ui/ui-resource-template.d.ts +1 -0
- package/tool/ui/ui-resource-template.d.ts.map +1 -0
- package/tool/ui/ui-resource.handler.d.ts +1 -0
- package/tool/ui/ui-resource.handler.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +27 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +12 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -0
- package/transport/index.d.ts +1 -0
- package/transport/index.d.ts.map +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/index.d.ts +2 -1
- package/transport/mcp-handlers/index.d.ts.map +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -0
- package/transport/transport.error.d.ts +1 -0
- package/transport/transport.error.d.ts.map +1 -0
- package/transport/transport.event-store.d.ts +1 -0
- package/transport/transport.event-store.d.ts.map +1 -0
- package/transport/transport.local.d.ts +1 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +1 -0
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +1 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +2 -1
- package/transport/transport.types.d.ts.map +1 -0
- package/types/drinen-hooks.types.d.ts +1 -0
- package/types/drinen-hooks.types.d.ts.map +1 -0
- package/types/invoke.type.d.ts +1 -0
- package/types/invoke.type.d.ts.map +1 -0
- package/types/token.types.d.ts +1 -0
- package/types/token.types.d.ts.map +1 -0
- package/{utils/types.utils.d.ts → types/zod.types.d.ts} +1 -0
- package/types/zod.types.d.ts.map +1 -0
- package/utils/content.utils.d.ts +1 -19
- package/utils/content.utils.d.ts.map +1 -0
- package/utils/index.d.ts +3 -7
- package/utils/index.d.ts.map +1 -0
- package/utils/lineage.utils.d.ts +1 -0
- package/utils/lineage.utils.d.ts.map +1 -0
- package/utils/naming.utils.d.ts +2 -34
- package/utils/naming.utils.d.ts.map +1 -0
- package/common/constants.d.ts +0 -5
- package/esm/mcp-apps/index.mjs +0 -723
- package/exceptions/mcp-exceptions/session-missing.exception.d.ts +0 -3
- package/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +0 -5
- package/mcp-apps/csp.d.ts +0 -111
- package/mcp-apps/index.d.ts +0 -23
- package/mcp-apps/index.js +0 -799
- package/mcp-apps/schemas.d.ts +0 -403
- package/mcp-apps/template.d.ts +0 -94
- package/mcp-apps/types.d.ts +0 -323
- package/utils/metadata.utils.d.ts +0 -5
- package/utils/server.utils.d.ts +0 -19
- package/utils/string.utils.d.ts +0 -1
- package/utils/token.utils.d.ts +0 -11
- package/utils/uri-template.utils.d.ts +0 -57
- package/utils/uri-validation.utils.d.ts +0 -40
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import {
|
|
2
|
+
import { ProviderScope, Token, ProviderRecord, ProviderInjectedRecord } from '@frontmcp/di';
|
|
3
|
+
import { ProviderInterface, ProviderType, ProviderRegistryInterface, ScopeEntry, RegistryKind, RegistryType, ProviderEntry, FrontMcpServer } from '../common';
|
|
3
4
|
import { RegistryAbstract, RegistryBuildMapResult } from '../regsitry';
|
|
4
5
|
import { ProviderViews } from './provider.types';
|
|
5
6
|
import { Scope } from '../scope';
|
|
6
7
|
import HookRegistry from '../hooks/hook.registry';
|
|
8
|
+
import { type DistributedConfigInput } from '../common/types/options/transport.options';
|
|
9
|
+
/**
|
|
10
|
+
* Configuration options for ProviderRegistry.
|
|
11
|
+
*/
|
|
12
|
+
export interface ProviderRegistryOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Distributed mode configuration.
|
|
15
|
+
* Controls provider caching behavior for serverless/distributed deployments.
|
|
16
|
+
*/
|
|
17
|
+
distributed?: DistributedConfigInput;
|
|
18
|
+
}
|
|
7
19
|
export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, ProviderRecord, ProviderType[], ProviderRegistry | undefined> implements ProviderRegistryInterface {
|
|
8
20
|
private readonly parentProviders?;
|
|
9
21
|
/** used to track which registry provided which token */
|
|
@@ -23,7 +35,9 @@ export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, Pr
|
|
|
23
35
|
private static readonly SESSION_CLEANUP_INTERVAL_MS;
|
|
24
36
|
/** Handle for the session cleanup interval */
|
|
25
37
|
private sessionCleanupInterval;
|
|
26
|
-
|
|
38
|
+
/** Whether session caching is enabled (disabled in distributed/serverless mode) */
|
|
39
|
+
private readonly sessionCacheEnabled;
|
|
40
|
+
constructor(list: ProviderType[], parentProviders?: ProviderRegistry | undefined, options?: ProviderRegistryOptions);
|
|
27
41
|
getProviders(): ProviderEntry[];
|
|
28
42
|
/** Walk up the registry chain to find a def for a token. */
|
|
29
43
|
private lookupDefInHierarchy;
|
|
@@ -78,13 +92,14 @@ export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, Pr
|
|
|
78
92
|
mergeFromRegistry(providedBy: ProviderRegistry, exported: {
|
|
79
93
|
token: Token<ProviderInterface>;
|
|
80
94
|
def: ProviderRecord;
|
|
81
|
-
|
|
95
|
+
/** Instance may be undefined for CONTEXT-scoped providers (built per-request) */
|
|
96
|
+
instance: ProviderEntry | undefined;
|
|
82
97
|
}[]): void;
|
|
83
98
|
/**
|
|
84
99
|
* Used by plugins to get the exported provider definitions.
|
|
85
100
|
*/
|
|
86
101
|
getProviderInfo(token: Token<ProviderInterface>): {
|
|
87
|
-
token: import("
|
|
102
|
+
token: import("@frontmcp/di").Reference<ProviderInterface>;
|
|
88
103
|
def: ProviderRecord;
|
|
89
104
|
instance: ProviderEntry;
|
|
90
105
|
};
|
|
@@ -134,10 +149,16 @@ export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, Pr
|
|
|
134
149
|
* Get session cache statistics for monitoring.
|
|
135
150
|
*/
|
|
136
151
|
getSessionCacheStats(): {
|
|
152
|
+
enabled: boolean;
|
|
137
153
|
size: number;
|
|
138
154
|
maxSize: number;
|
|
139
155
|
ttlMs: number;
|
|
140
156
|
};
|
|
157
|
+
/**
|
|
158
|
+
* Check if session caching is enabled.
|
|
159
|
+
* Returns false in distributed/serverless mode.
|
|
160
|
+
*/
|
|
161
|
+
isSessionCacheEnabled(): boolean;
|
|
141
162
|
/**
|
|
142
163
|
* Build provider instance views for different scopes.
|
|
143
164
|
*
|
|
@@ -172,3 +193,4 @@ export default class ProviderRegistry extends RegistryAbstract<ProviderEntry, Pr
|
|
|
172
193
|
*/
|
|
173
194
|
getScoped<T>(token: Token<T>, views: ProviderViews): T;
|
|
174
195
|
}
|
|
196
|
+
//# sourceMappingURL=provider.registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.registry.d.ts","sourceRoot":"","sources":["../../src/provider/provider.registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Token } from '
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
2
|
/**
|
|
3
3
|
* Provider instance views for different scopes.
|
|
4
4
|
*
|
|
@@ -25,3 +25,4 @@ export interface ProviderViews {
|
|
|
25
25
|
*/
|
|
26
26
|
request: Map<Token, unknown>;
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=provider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.types.d.ts","sourceRoot":"","sources":["../../src/provider/provider.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,yEAAyE;IACzE,MAAM,EAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEpC,kFAAkF;IAClF,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAE7B;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAE7B;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;CAC9B"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Type, Token } from '@frontmcp/di';
|
|
2
|
+
import type { ProviderMetadata, ProviderRecord, ProviderScope } from '../common';
|
|
3
|
+
/**
|
|
4
|
+
* Shape for provider input items (used during normalization).
|
|
5
|
+
* Supports both class-based providers and configuration objects.
|
|
6
|
+
*/
|
|
7
|
+
interface ProviderLike {
|
|
8
|
+
provide?: Token;
|
|
9
|
+
useClass?: Type;
|
|
10
|
+
useValue?: unknown;
|
|
11
|
+
useFactory?: (...args: unknown[]) => unknown;
|
|
12
|
+
inject?: () => readonly Token[];
|
|
13
|
+
name?: string;
|
|
14
|
+
scope?: ProviderScope;
|
|
15
|
+
description?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
metadata?: ProviderMetadata;
|
|
18
|
+
}
|
|
19
|
+
export declare function normalizeProvider(item: Type | ProviderLike): ProviderRecord;
|
|
3
20
|
/**
|
|
4
21
|
* For graph/cycle detection. Returns dependency tokens that should be graphed.
|
|
5
22
|
* - VALUE: no deps
|
|
@@ -11,3 +28,5 @@ export declare function providerDiscoveryDeps(rec: ProviderRecord, tokens: Set<T
|
|
|
11
28
|
* For invocation time. Returns full dependency tokens list that must be resolved.
|
|
12
29
|
*/
|
|
13
30
|
export declare function providerInvocationTokens(rec: ProviderRecord, depsOfClass: (klass: any, phase: 'invocation' | 'discovery') => Token[]): Token[];
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=provider.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.utils.d.ts","sourceRoot":"","sources":["../../src/provider/provider.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAiD,MAAM,cAAc,CAAC;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEjF;;;GAGG;AACH,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,SAAS,KAAK,EAAE,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAkCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,CAwD3E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAmBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,EACnB,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,GAAG,WAAW,KAAK,KAAK,EAAE,GACtE,KAAK,EAAE,CAaT"}
|
package/regsitry/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/regsitry/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { RegistryKind } from '../common';
|
|
2
3
|
import ProviderRegistry from '../provider/provider.registry';
|
|
3
4
|
export type RegistryBuildMapResult<Record> = {
|
|
4
5
|
tokens: Set<Token>;
|
|
@@ -23,3 +24,4 @@ export declare abstract class RegistryAbstract<Interface, Record, MetadataType,
|
|
|
23
24
|
protected abstract buildGraph(): void;
|
|
24
25
|
protected abstract initialize(): Promise<void>;
|
|
25
26
|
}
|
|
27
|
+
//# sourceMappingURL=registry.base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.base.d.ts","sourceRoot":"","sources":["../../src/regsitry/registry.base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAgB,MAAM,WAAW,CAAC;AACvD,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,MAAM,MAAM,sBAAsB,CAAC,MAAM,IAAI;IAC3C,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACzB,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;CAC/B,CAAC;AAEF,8BAAsB,gBAAgB,CACpC,SAAS,EACT,MAAM,EACN,YAAY,EACZ,oBAAoB,SAAS,gBAAgB,GAAG,SAAS,GAAG,gBAAgB;IAE5E,SAAS,CAAC,cAAc,EAAE,KAAK,CAAC;IAEhC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAErB,SAAS,CAAC,SAAS,EAAE,oBAAoB,CAAC;IAC1C,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC;IAE7B,iDAAiD;IACjD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACnC,gCAAgC;IAChC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAExC,+CAA+C;IAC/C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAa;IAE3E,SAAS,aAAa,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,UAAO;IAiB9G,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,sBAAsB,CAAC,MAAM,CAAC;IAE/E,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI;IAErC,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAC/C"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file capability-cache.ts
|
|
3
|
+
* @description TTL-based capability cache for remote MCP servers
|
|
4
|
+
*/
|
|
5
|
+
import type { McpRemoteCapabilities } from '../mcp-client.types';
|
|
6
|
+
/**
|
|
7
|
+
* Configuration for the capability cache
|
|
8
|
+
*/
|
|
9
|
+
export interface CapabilityCacheConfig {
|
|
10
|
+
/** Default TTL in milliseconds (default: 60000 = 60 seconds) */
|
|
11
|
+
defaultTTL?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* TTL-based capability cache for remote MCP servers.
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Configurable TTL per app or global default
|
|
18
|
+
* - Automatic expiration checking
|
|
19
|
+
* - Thread-safe for single-threaded Node.js
|
|
20
|
+
*/
|
|
21
|
+
export declare class CapabilityCache {
|
|
22
|
+
private readonly cache;
|
|
23
|
+
private readonly defaultTTL;
|
|
24
|
+
constructor(config?: CapabilityCacheConfig);
|
|
25
|
+
/**
|
|
26
|
+
* Get cached capabilities for an app.
|
|
27
|
+
* Returns null if not cached or expired.
|
|
28
|
+
*
|
|
29
|
+
* @param appId - The remote app ID
|
|
30
|
+
* @returns Cached capabilities or null
|
|
31
|
+
*/
|
|
32
|
+
get(appId: string): McpRemoteCapabilities | null;
|
|
33
|
+
/**
|
|
34
|
+
* Store capabilities in the cache.
|
|
35
|
+
*
|
|
36
|
+
* @param appId - The remote app ID
|
|
37
|
+
* @param capabilities - The capabilities to cache
|
|
38
|
+
* @param ttl - Optional TTL in milliseconds (uses default if not specified)
|
|
39
|
+
*/
|
|
40
|
+
set(appId: string, capabilities: McpRemoteCapabilities, ttl?: number): void;
|
|
41
|
+
/**
|
|
42
|
+
* Invalidate cached capabilities for an app.
|
|
43
|
+
*
|
|
44
|
+
* @param appId - The remote app ID
|
|
45
|
+
*/
|
|
46
|
+
invalidate(appId: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* Clear all cached capabilities.
|
|
49
|
+
*/
|
|
50
|
+
clear(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Check if capabilities are expired or not cached.
|
|
53
|
+
*
|
|
54
|
+
* @param appId - The remote app ID
|
|
55
|
+
* @returns True if expired or not cached
|
|
56
|
+
*/
|
|
57
|
+
isExpired(appId: string): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Get the time remaining until expiration.
|
|
60
|
+
*
|
|
61
|
+
* @param appId - The remote app ID
|
|
62
|
+
* @returns Time remaining in milliseconds, or 0 if expired/not cached
|
|
63
|
+
*/
|
|
64
|
+
getTimeToExpiry(appId: string): number;
|
|
65
|
+
/**
|
|
66
|
+
* Get the timestamp when capabilities were fetched.
|
|
67
|
+
*
|
|
68
|
+
* @param appId - The remote app ID
|
|
69
|
+
* @returns Fetch timestamp or null if not cached
|
|
70
|
+
*/
|
|
71
|
+
getFetchedAt(appId: string): Date | null;
|
|
72
|
+
/**
|
|
73
|
+
* Get all cached app IDs.
|
|
74
|
+
*
|
|
75
|
+
* @returns Array of app IDs with active (non-expired) cache entries
|
|
76
|
+
*/
|
|
77
|
+
getCachedAppIds(): string[];
|
|
78
|
+
/**
|
|
79
|
+
* Get cache statistics.
|
|
80
|
+
*/
|
|
81
|
+
getStats(): {
|
|
82
|
+
totalEntries: number;
|
|
83
|
+
activeEntries: number;
|
|
84
|
+
expiredEntries: number;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=capability-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-cache.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/cache/capability-cache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAcjE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyC;IAC/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAExB,MAAM,GAAE,qBAA0B;IAI9C;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,GAAG,IAAI;IAehD;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAU3E;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;;;OAKG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAQjC;;;;;OAKG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAStC;;;;;OAKG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAKxC;;;;OAIG;IACH,eAAe,IAAI,MAAM,EAAE;IAa3B;;OAEG;IACH,QAAQ,IAAI;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE;CAmBpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/cache/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file context-factories.ts
|
|
3
|
+
* @description Factory functions that create context classes with closed-over dependencies.
|
|
4
|
+
*
|
|
5
|
+
* These factories enable using standard ToolInstance, ResourceInstance, and PromptInstance
|
|
6
|
+
* with remote MCP servers by creating dynamic context classes that capture the McpClientService
|
|
7
|
+
* and remote identifiers via closure.
|
|
8
|
+
*/
|
|
9
|
+
import { Type } from '@frontmcp/di';
|
|
10
|
+
import { ToolContext, ToolInputType, ToolOutputType, ResourceContext, PromptContext } from '../../common';
|
|
11
|
+
import type { McpClientService } from '../mcp-client.service';
|
|
12
|
+
import type { CallToolResult, ReadResourceResult } from '@modelcontextprotocol/sdk/types.js';
|
|
13
|
+
/**
|
|
14
|
+
* Creates a remote tool context class with closed-over dependencies.
|
|
15
|
+
*
|
|
16
|
+
* The returned class can be used with standard ToolInstance. The closure captures
|
|
17
|
+
* mcpClient, remoteAppId, and remoteToolName, so the class constructor only needs
|
|
18
|
+
* standard ToolCtorArgs.
|
|
19
|
+
*
|
|
20
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
21
|
+
* @param remoteAppId - The ID of the remote app
|
|
22
|
+
* @param remoteToolName - The name of the tool on the remote server
|
|
23
|
+
* @returns A ToolContext class that executes tools on the remote server
|
|
24
|
+
*/
|
|
25
|
+
export declare function createRemoteToolContextClass(mcpClient: McpClientService, remoteAppId: string, remoteToolName: string): Type<ToolContext<ToolInputType, ToolOutputType, unknown, CallToolResult>>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a remote resource context class with closed-over dependencies.
|
|
28
|
+
*
|
|
29
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
30
|
+
* @param remoteAppId - The ID of the remote app
|
|
31
|
+
* @returns A ResourceContext class that reads resources from the remote server
|
|
32
|
+
*/
|
|
33
|
+
export declare function createRemoteResourceContextClass<Params extends Record<string, string> = Record<string, string>>(mcpClient: McpClientService, remoteAppId: string): Type<ResourceContext<Params, ReadResourceResult>>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a remote prompt context class with closed-over dependencies.
|
|
36
|
+
*
|
|
37
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
38
|
+
* @param remoteAppId - The ID of the remote app
|
|
39
|
+
* @param remotePromptName - The name of the prompt on the remote server
|
|
40
|
+
* @returns A PromptContext class that gets prompts from the remote server
|
|
41
|
+
*/
|
|
42
|
+
export declare function createRemotePromptContextClass(mcpClient: McpClientService, remoteAppId: string, remotePromptName: string): Type<PromptContext>;
|
|
43
|
+
//# sourceMappingURL=context-factories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-factories.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/factories/context-factories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAmB,MAAM,oCAAoC,CAAC;AAE9G;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,GACrB,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAO3E;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7G,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,GAClB,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAOnD;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,GACvB,IAAI,CAAC,aAAa,CAAC,CAOrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file remote/index.ts
|
|
3
|
+
* @description Barrel exports for the remote app instances module.
|
|
4
|
+
*
|
|
5
|
+
* This module provides factory functions for creating standard instances
|
|
6
|
+
* (ToolInstance, ResourceInstance, PromptInstance) that forward execution
|
|
7
|
+
* to remote MCP servers via the McpClientService.
|
|
8
|
+
*/
|
|
9
|
+
export { createRemoteToolContextClass, createRemoteResourceContextClass, createRemotePromptContextClass, } from './context-factories';
|
|
10
|
+
export { buildRemoteToolRecord, buildRemoteResourceRecord, buildRemoteResourceTemplateRecord, buildRemotePromptRecord, } from './record-builders';
|
|
11
|
+
export { createRemoteToolInstance, createRemoteResourceInstance, createRemoteResourceTemplateInstance, createRemotePromptInstance, } from './instance-factories';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/factories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,iCAAiC,EACjC,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oCAAoC,EACpC,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file instance-factories.ts
|
|
3
|
+
* @description Factory functions that create standard instances for remote MCP entities.
|
|
4
|
+
*
|
|
5
|
+
* These factories use the record-builders to create records with dynamically generated
|
|
6
|
+
* context classes, then instantiate standard ToolInstance, ResourceInstance, and PromptInstance.
|
|
7
|
+
* This allows remote entities to use the same hook lifecycle and registry infrastructure
|
|
8
|
+
* as local entities.
|
|
9
|
+
*/
|
|
10
|
+
import type { Tool, Resource, ResourceTemplate, Prompt } from '@modelcontextprotocol/sdk/types.js';
|
|
11
|
+
import type { EntryOwnerRef } from '../../common';
|
|
12
|
+
import type ProviderRegistry from '../../provider/provider.registry';
|
|
13
|
+
import type { McpClientService } from '../mcp-client.service';
|
|
14
|
+
import { ToolInstance } from '../../tool/tool.instance';
|
|
15
|
+
import { ResourceInstance } from '../../resource/resource.instance';
|
|
16
|
+
import { PromptInstance } from '../../prompt/prompt.instance';
|
|
17
|
+
/**
|
|
18
|
+
* Create a standard ToolInstance for a remote tool.
|
|
19
|
+
*
|
|
20
|
+
* Uses factory-created context class via buildRemoteToolRecord, which returns
|
|
21
|
+
* a ToolClassTokenRecord. The resulting ToolInstance participates fully in the
|
|
22
|
+
* hook lifecycle.
|
|
23
|
+
*
|
|
24
|
+
* @param remoteTool - The tool definition from the remote MCP server
|
|
25
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
26
|
+
* @param remoteAppId - The ID of the remote app
|
|
27
|
+
* @param providers - The provider registry for DI and scope access
|
|
28
|
+
* @param owner - The entry owner reference (app owner)
|
|
29
|
+
* @param namespace - Optional namespace prefix for the tool name
|
|
30
|
+
* @returns A standard ToolInstance that executes on the remote server
|
|
31
|
+
*/
|
|
32
|
+
export declare function createRemoteToolInstance(remoteTool: Tool, mcpClient: McpClientService, remoteAppId: string, providers: ProviderRegistry, owner: EntryOwnerRef, namespace?: string): ToolInstance;
|
|
33
|
+
/**
|
|
34
|
+
* Create a standard ResourceInstance for a remote resource.
|
|
35
|
+
*
|
|
36
|
+
* Uses factory-created context class via buildRemoteResourceRecord, which returns
|
|
37
|
+
* a ResourceClassTokenRecord. The resulting ResourceInstance participates fully in the
|
|
38
|
+
* hook lifecycle.
|
|
39
|
+
*
|
|
40
|
+
* @param remoteResource - The resource definition from the remote MCP server
|
|
41
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
42
|
+
* @param remoteAppId - The ID of the remote app
|
|
43
|
+
* @param providers - The provider registry for DI and scope access
|
|
44
|
+
* @param owner - The entry owner reference (app owner)
|
|
45
|
+
* @param namespace - Optional namespace prefix for the resource name
|
|
46
|
+
* @returns A standard ResourceInstance that reads from the remote server
|
|
47
|
+
*/
|
|
48
|
+
export declare function createRemoteResourceInstance(remoteResource: Resource, mcpClient: McpClientService, remoteAppId: string, providers: ProviderRegistry, owner: EntryOwnerRef, namespace?: string): ResourceInstance;
|
|
49
|
+
/**
|
|
50
|
+
* Create a standard ResourceInstance for a remote resource template.
|
|
51
|
+
*
|
|
52
|
+
* Uses factory-created context class via buildRemoteResourceTemplateRecord, which returns
|
|
53
|
+
* a ResourceTemplateClassTokenRecord. The resulting ResourceInstance participates fully in the
|
|
54
|
+
* hook lifecycle.
|
|
55
|
+
*
|
|
56
|
+
* @param remoteTemplate - The resource template definition from the remote MCP server
|
|
57
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
58
|
+
* @param remoteAppId - The ID of the remote app
|
|
59
|
+
* @param providers - The provider registry for DI and scope access
|
|
60
|
+
* @param owner - The entry owner reference (app owner)
|
|
61
|
+
* @param namespace - Optional namespace prefix for the resource template name
|
|
62
|
+
* @returns A standard ResourceInstance that reads from the remote server
|
|
63
|
+
*/
|
|
64
|
+
export declare function createRemoteResourceTemplateInstance(remoteTemplate: ResourceTemplate, mcpClient: McpClientService, remoteAppId: string, providers: ProviderRegistry, owner: EntryOwnerRef, namespace?: string): ResourceInstance;
|
|
65
|
+
/**
|
|
66
|
+
* Create a standard PromptInstance for a remote prompt.
|
|
67
|
+
*
|
|
68
|
+
* Uses factory-created context class via buildRemotePromptRecord, which returns
|
|
69
|
+
* a PromptClassTokenRecord. The resulting PromptInstance participates fully in the
|
|
70
|
+
* hook lifecycle.
|
|
71
|
+
*
|
|
72
|
+
* @param remotePrompt - The prompt definition from the remote MCP server
|
|
73
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
74
|
+
* @param remoteAppId - The ID of the remote app
|
|
75
|
+
* @param providers - The provider registry for DI and scope access
|
|
76
|
+
* @param owner - The entry owner reference (app owner)
|
|
77
|
+
* @param namespace - Optional namespace prefix for the prompt name
|
|
78
|
+
* @returns A standard PromptInstance that gets prompts from the remote server
|
|
79
|
+
*/
|
|
80
|
+
export declare function createRemotePromptInstance(remotePrompt: Prompt, mcpClient: McpClientService, remoteAppId: string, providers: ProviderRegistry, owner: EntryOwnerRef, namespace?: string): PromptInstance;
|
|
81
|
+
//# sourceMappingURL=instance-factories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-factories.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/factories/instance-factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,gBAAgB,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ9D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,IAAI,EAChB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,GACjB,YAAY,CAGd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,QAAQ,EACxB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,GACjB,gBAAgB,CAGlB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oCAAoC,CAClD,cAAc,EAAE,gBAAgB,EAChC,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,GACjB,gBAAgB,CAGlB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAGhB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file record-builders.ts
|
|
3
|
+
* @description Functions that build standard records using factory-created context classes.
|
|
4
|
+
*
|
|
5
|
+
* These builders create ToolClassTokenRecord, ResourceClassTokenRecord, and PromptClassTokenRecord
|
|
6
|
+
* with dynamically created context classes that forward execution to remote MCP servers.
|
|
7
|
+
*/
|
|
8
|
+
import type { Tool, Resource, ResourceTemplate, Prompt } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
+
import { ToolClassTokenRecord, ResourceClassTokenRecord, ResourceTemplateClassTokenRecord, PromptClassTokenRecord } from '../../common';
|
|
10
|
+
import type { McpClientService } from '../mcp-client.service';
|
|
11
|
+
/**
|
|
12
|
+
* Build a ToolClassTokenRecord for a remote tool.
|
|
13
|
+
*
|
|
14
|
+
* Uses CLASS_TOKEN kind with a dynamically created context class.
|
|
15
|
+
* The context class closes over mcpClient, remoteAppId, and the tool name.
|
|
16
|
+
*
|
|
17
|
+
* @param remoteTool - The tool definition from the remote MCP server
|
|
18
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
19
|
+
* @param remoteAppId - The ID of the remote app
|
|
20
|
+
* @param namespace - Optional namespace prefix for the tool name
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildRemoteToolRecord(remoteTool: Tool, mcpClient: McpClientService, remoteAppId: string, namespace?: string): ToolClassTokenRecord;
|
|
23
|
+
/**
|
|
24
|
+
* Build a ResourceClassTokenRecord for a remote resource.
|
|
25
|
+
*
|
|
26
|
+
* @param remoteResource - The resource definition from the remote MCP server
|
|
27
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
28
|
+
* @param remoteAppId - The ID of the remote app
|
|
29
|
+
* @param namespace - Optional namespace prefix for the resource name
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildRemoteResourceRecord(remoteResource: Resource, mcpClient: McpClientService, remoteAppId: string, namespace?: string): ResourceClassTokenRecord;
|
|
32
|
+
/**
|
|
33
|
+
* Build a ResourceTemplateClassTokenRecord for a remote resource template.
|
|
34
|
+
*
|
|
35
|
+
* @param remoteTemplate - The resource template definition from the remote MCP server
|
|
36
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
37
|
+
* @param remoteAppId - The ID of the remote app
|
|
38
|
+
* @param namespace - Optional namespace prefix for the resource name
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildRemoteResourceTemplateRecord(remoteTemplate: ResourceTemplate, mcpClient: McpClientService, remoteAppId: string, namespace?: string): ResourceTemplateClassTokenRecord;
|
|
41
|
+
/**
|
|
42
|
+
* Build a PromptClassTokenRecord for a remote prompt.
|
|
43
|
+
*
|
|
44
|
+
* @param remotePrompt - The prompt definition from the remote MCP server
|
|
45
|
+
* @param mcpClient - The MCP client service for remote communication
|
|
46
|
+
* @param remoteAppId - The ID of the remote app
|
|
47
|
+
* @param namespace - Optional namespace prefix for the prompt name
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildRemotePromptRecord(remotePrompt: Prompt, mcpClient: McpClientService, remoteAppId: string, namespace?: string): PromptClassTokenRecord;
|
|
50
|
+
//# sourceMappingURL=record-builders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-builders.d.ts","sourceRoot":"","sources":["../../../src/remote-mcp/factories/record-builders.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACnG,OAAO,EAEL,oBAAoB,EAIpB,wBAAwB,EAIxB,gCAAgC,EAGhC,sBAAsB,EAGvB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAO9D;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,IAAI,EAChB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,oBAAoB,CA0BtB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,QAAQ,EACxB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,wBAAwB,CAkB1B;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,gBAAgB,EAChC,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,gCAAgC,CAkBlC;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,sBAAsB,CAsBxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file remote-mcp/index.ts
|
|
3
|
+
* @description Barrel exports for the remote MCP module
|
|
4
|
+
*
|
|
5
|
+
* This module provides functionality for connecting to remote MCP servers
|
|
6
|
+
* and exposing their capabilities (tools, resources, prompts) through
|
|
7
|
+
* factory-created instances that integrate with the FrontMCP hook system.
|
|
8
|
+
*/
|
|
9
|
+
export { McpClientService } from './mcp-client.service';
|
|
10
|
+
export type { McpClientConnection, McpConnectionStatus, McpConnectionInfo, McpTransportType, McpHttpTransportOptions, McpWorkerTransportOptions, McpEsmTransportOptions, McpTransportOptions, McpStaticCredentials, McpRemoteAuthConfig, McpRemoteAuthContext, McpRemoteCapabilities, McpCapabilityChangeEvent, McpClientServiceOptions, McpConnectRequest, McpRemoteCallToolResult, McpRemoteReadResourceResult, McpRemoteGetPromptResult, McpCapabilityChangeCallback, McpConnectionChangeCallback, McpUnsubscribeFn, } from './mcp-client.types';
|
|
11
|
+
export { CapabilityCache, type CapabilityCacheConfig } from './cache';
|
|
12
|
+
export { withRetry, isTransientError, isConnectionError, isAuthError, type RetryOptions, CircuitBreaker, CircuitBreakerManager, CircuitOpenError, type CircuitState, type CircuitBreakerOptions, HealthChecker, HealthCheckManager, type HealthStatus, type HealthCheckResult, type HealthCheckOptions, } from './resilience';
|
|
13
|
+
export { createRemoteToolContextClass, createRemoteResourceContextClass, createRemotePromptContextClass, buildRemoteToolRecord, buildRemoteResourceRecord, buildRemoteResourceTemplateRecord, buildRemotePromptRecord, createRemoteToolInstance, createRemoteResourceInstance, createRemoteResourceTemplateInstance, createRemotePromptInstance, } from './factories';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/remote-mcp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,YAAY,EAEV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EAEjB,gBAAgB,EAChB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EAEnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EAEpB,qBAAqB,EACrB,wBAAwB,EAExB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EAExB,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EAEL,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,KAAK,YAAY,EAEjB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAE1B,aAAa,EACb,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,4BAA4B,EAC5B,gCAAgC,EAChC,8BAA8B,EAE9B,qBAAqB,EACrB,yBAAyB,EACzB,iCAAiC,EACjC,uBAAuB,EAEvB,wBAAwB,EACxB,4BAA4B,EAC5B,oCAAoC,EACpC,0BAA0B,GAC3B,MAAM,aAAa,CAAC"}
|