@frontmcp/sdk 0.6.2 → 0.7.1
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 +5 -2
- 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 +27 -3
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +87 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +114 -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 +60 -42
- 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 +23 -2
- 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 +1 -0
- 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 +1 -0
- 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 +3 -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 +3 -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 +18399 -10886
- package/esm/package.json +26 -18
- 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 +18589 -11006
- 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 +17 -7
- 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 +66 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +96 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +27 -1
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +17 -3
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +13 -3
- 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 +22 -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 +7 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +8 -1
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +2 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +8 -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
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { FlowBase, FlowRunOptions, AgentContext, AgentEntry } from '../../common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
4
|
+
declare const inputSchema: z.ZodObject<{
|
|
5
|
+
request: z.ZodObject<{
|
|
6
|
+
method: z.ZodLiteral<"tools/call">;
|
|
7
|
+
params: z.ZodObject<{
|
|
8
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
10
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
11
|
+
taskId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
task: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
ctx: z.ZodAny;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const outputSchema: z.ZodObject<{
|
|
24
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
26
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
27
|
+
taskId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"text">;
|
|
32
|
+
text: z.ZodString;
|
|
33
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
35
|
+
user: "user";
|
|
36
|
+
assistant: "assistant";
|
|
37
|
+
}>>>;
|
|
38
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"image">;
|
|
44
|
+
data: z.ZodString;
|
|
45
|
+
mimeType: z.ZodString;
|
|
46
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
48
|
+
user: "user";
|
|
49
|
+
assistant: "assistant";
|
|
50
|
+
}>>>;
|
|
51
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"audio">;
|
|
57
|
+
data: z.ZodString;
|
|
58
|
+
mimeType: z.ZodString;
|
|
59
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
61
|
+
user: "user";
|
|
62
|
+
assistant: "assistant";
|
|
63
|
+
}>>>;
|
|
64
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
uri: z.ZodString;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
72
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
74
|
+
user: "user";
|
|
75
|
+
assistant: "assistant";
|
|
76
|
+
}>>>;
|
|
77
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
81
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
+
src: z.ZodString;
|
|
83
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
84
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
light: "light";
|
|
87
|
+
dark: "dark";
|
|
88
|
+
}>>;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
title: z.ZodOptional<z.ZodString>;
|
|
92
|
+
type: z.ZodLiteral<"resource_link">;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<"resource">;
|
|
95
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
96
|
+
uri: z.ZodString;
|
|
97
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
98
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
|
+
text: z.ZodString;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
uri: z.ZodString;
|
|
102
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
103
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
blob: z.ZodString;
|
|
105
|
+
}, z.core.$strip>]>;
|
|
106
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
108
|
+
user: "user";
|
|
109
|
+
assistant: "assistant";
|
|
110
|
+
}>>>;
|
|
111
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
115
|
+
}, z.core.$strip>]>>>;
|
|
116
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
}, z.core.$loose>;
|
|
119
|
+
declare const stateSchema: z.ZodObject<{
|
|
120
|
+
input: z.ZodObject<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
arguments: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
123
|
+
}, z.core.$loose>;
|
|
124
|
+
authInfo: z.ZodType<AuthInfo>;
|
|
125
|
+
agent: z.ZodCustom<AgentEntry<import("../../common").ToolInputType, import("../../common").ToolOutputType, unknown, unknown>, AgentEntry<import("../../common").ToolInputType, import("../../common").ToolOutputType, unknown, unknown>>;
|
|
126
|
+
agentContext: z.ZodCustom<AgentContext<import("../../common").ToolInputType, import("../../common").ToolOutputType, unknown, unknown>, AgentContext<import("../../common").ToolInputType, import("../../common").ToolOutputType, unknown, unknown>>;
|
|
127
|
+
rawOutput: z.ZodOptional<z.ZodAny>;
|
|
128
|
+
output: z.ZodObject<{
|
|
129
|
+
_meta: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
131
|
+
"io.modelcontextprotocol/related-task": z.ZodOptional<z.ZodObject<{
|
|
132
|
+
taskId: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$loose>>;
|
|
135
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"text">;
|
|
137
|
+
text: z.ZodString;
|
|
138
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
140
|
+
user: "user";
|
|
141
|
+
assistant: "assistant";
|
|
142
|
+
}>>>;
|
|
143
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<"image">;
|
|
149
|
+
data: z.ZodString;
|
|
150
|
+
mimeType: z.ZodString;
|
|
151
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
153
|
+
user: "user";
|
|
154
|
+
assistant: "assistant";
|
|
155
|
+
}>>>;
|
|
156
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"audio">;
|
|
162
|
+
data: z.ZodString;
|
|
163
|
+
mimeType: z.ZodString;
|
|
164
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
166
|
+
user: "user";
|
|
167
|
+
assistant: "assistant";
|
|
168
|
+
}>>>;
|
|
169
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
+
uri: z.ZodString;
|
|
175
|
+
description: z.ZodOptional<z.ZodString>;
|
|
176
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
177
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
179
|
+
user: "user";
|
|
180
|
+
assistant: "assistant";
|
|
181
|
+
}>>>;
|
|
182
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
186
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
187
|
+
src: z.ZodString;
|
|
188
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
189
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
light: "light";
|
|
192
|
+
dark: "dark";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$strip>>>;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
title: z.ZodOptional<z.ZodString>;
|
|
197
|
+
type: z.ZodLiteral<"resource_link">;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
type: z.ZodLiteral<"resource">;
|
|
200
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
201
|
+
uri: z.ZodString;
|
|
202
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
203
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
204
|
+
text: z.ZodString;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
uri: z.ZodString;
|
|
207
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
208
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
209
|
+
blob: z.ZodString;
|
|
210
|
+
}, z.core.$strip>]>;
|
|
211
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
213
|
+
user: "user";
|
|
214
|
+
assistant: "assistant";
|
|
215
|
+
}>>>;
|
|
216
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
|
+
}, z.core.$strip>]>>>;
|
|
221
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
222
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
}, z.core.$loose>;
|
|
224
|
+
_agentOwnerId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
226
|
+
executionMeta: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
declare const plan: {
|
|
237
|
+
readonly pre: ["parseInput", "findAgent", "checkAgentAuthorization", "createAgentContext", "acquireQuota", "acquireSemaphore"];
|
|
238
|
+
readonly execute: ["validateInput", "execute", "validateOutput"];
|
|
239
|
+
readonly finalize: ["releaseSemaphore", "releaseQuota", "finalize"];
|
|
240
|
+
};
|
|
241
|
+
declare global {
|
|
242
|
+
interface ExtendFlows {
|
|
243
|
+
'agents:call-agent': FlowRunOptions<CallAgentFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
declare const name: "agents:call-agent";
|
|
247
|
+
export default class CallAgentFlow extends FlowBase<typeof name> {
|
|
248
|
+
logger: import("../../common").FrontMcpLogger;
|
|
249
|
+
/**
|
|
250
|
+
* Parse and validate the incoming request.
|
|
251
|
+
*/
|
|
252
|
+
parseInput(): Promise<void>;
|
|
253
|
+
/**
|
|
254
|
+
* Find the agent in the registry.
|
|
255
|
+
*/
|
|
256
|
+
findAgent(): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Check if the agent's parent app is authorized.
|
|
259
|
+
*/
|
|
260
|
+
checkAgentAuthorization(): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* Create the agent execution context.
|
|
263
|
+
*/
|
|
264
|
+
createAgentContext(): Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* Acquire quota for rate limiting.
|
|
267
|
+
*/
|
|
268
|
+
acquireQuota(): Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Acquire semaphore for concurrency control.
|
|
271
|
+
*/
|
|
272
|
+
acquireSemaphore(): Promise<void>;
|
|
273
|
+
/**
|
|
274
|
+
* Validate the agent input against its schema.
|
|
275
|
+
*/
|
|
276
|
+
validateInput(): Promise<void>;
|
|
277
|
+
/**
|
|
278
|
+
* Execute the agent.
|
|
279
|
+
*/
|
|
280
|
+
execute(): Promise<void>;
|
|
281
|
+
/**
|
|
282
|
+
* Validate the agent output.
|
|
283
|
+
*/
|
|
284
|
+
validateOutput(): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Release the semaphore.
|
|
287
|
+
*/
|
|
288
|
+
releaseSemaphore(): Promise<void>;
|
|
289
|
+
/**
|
|
290
|
+
* Release the quota.
|
|
291
|
+
*/
|
|
292
|
+
releaseQuota(): Promise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* Finalize the agent response.
|
|
295
|
+
*
|
|
296
|
+
* Validates output and sends the response.
|
|
297
|
+
*
|
|
298
|
+
* Note: This stage runs even when execute fails (as part of cleanup).
|
|
299
|
+
* If rawOutput is undefined, it means an error occurred during execution
|
|
300
|
+
* and the error will be propagated by the flow framework - we should not
|
|
301
|
+
* throw a new error here.
|
|
302
|
+
*/
|
|
303
|
+
finalize(): Promise<void>;
|
|
304
|
+
}
|
|
305
|
+
export {};
|
|
306
|
+
//# sourceMappingURL=call-agent.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAyB,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAc1E,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;iBAIf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAE1C,QAAA,MAAM,WAAW;;;;;cAKiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBnD,CAAC;AAMH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAMtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,mBAAmB,EAAE,cAAc,CACjC,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,mBAA4B,CAAC;AAc1C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC9D,MAAM,wCAA2C;IAEjD;;OAEG;IAEG,UAAU;IA4ChB;;OAEG;IAEG,SAAS;IA2Cf;;OAEG;IAEG,uBAAuB;IAuC7B;;OAEG;IAEG,kBAAkB;IAmCxB;;OAEG;IAEG,YAAY;IAOlB;;OAEG;IAEG,gBAAgB;IAOtB;;OAEG;IAEG,aAAa;IAsBnB;;OAEG;IAEG,OAAO;IA0Bb;;OAEG;IAEG,cAAc;IAcpB;;OAEG;IAEG,gBAAgB;IAOtB;;OAEG;IAEG,YAAY;IAOlB;;;;;;;;;OASG;IAEG,QAAQ;CA2Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook decorators for the call-agent flow.
|
|
3
|
+
*
|
|
4
|
+
* Use these decorators to hook into agent execution stages:
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { AgentHook } from '@frontmcp/sdk';
|
|
9
|
+
*
|
|
10
|
+
* @Agent({
|
|
11
|
+
* name: 'my-agent',
|
|
12
|
+
* // ...
|
|
13
|
+
* })
|
|
14
|
+
* export class MyAgent extends AgentContext {
|
|
15
|
+
* @AgentHook.Will.execute()
|
|
16
|
+
* onBeforeExecute() {
|
|
17
|
+
* this.logger.info('About to execute agent...');
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* @AgentHook.Did.execute()
|
|
21
|
+
* onAfterExecute() {
|
|
22
|
+
* this.logger.info('Agent execution completed');
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* @AgentHook.Stage('validateInput')
|
|
26
|
+
* onValidateInput() {
|
|
27
|
+
* this.logger.info('Validating input...');
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const Will: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
33
|
+
/**
|
|
34
|
+
* Agent hook decorators for the call-agent flow.
|
|
35
|
+
*
|
|
36
|
+
* Available hooks:
|
|
37
|
+
* - `AgentHook.Will.*` - Run before a stage
|
|
38
|
+
* - `AgentHook.Did.*` - Run after a stage
|
|
39
|
+
* - `AgentHook.Stage(name)` - Run at a specific stage
|
|
40
|
+
*
|
|
41
|
+
* Stages available:
|
|
42
|
+
* - Pre stages: parseInput, findAgent, checkAgentAuthorization, createAgentContext, acquireQuota, acquireSemaphore
|
|
43
|
+
* - Execute stages: validateInput, execute, validateOutput
|
|
44
|
+
* - Finalize stages: releaseSemaphore, releaseQuota, finalize
|
|
45
|
+
*/
|
|
46
|
+
export declare const AgentHook: {
|
|
47
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
48
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
49
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "validateOutput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
50
|
+
};
|
|
51
|
+
export { Will as WillAgentStage, Did as DidAgentStage, Stage as OnAgentStage };
|
|
52
|
+
//# sourceMappingURL=agent.hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.hooks.d.ts","sourceRoot":"","sources":["../../../src/agent/hooks/agent.hooks.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,QAAA,MAAQ,IAAI,8TAAE,GAAG,8TAAE,KAAK,4TAA0D,CAAC;AAEnF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;CAAuB,CAAC;AAG9C,OAAO,EAAE,IAAI,IAAI,cAAc,EAAE,GAAG,IAAI,aAAa,EAAE,KAAK,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/hooks/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC"}
|
package/agent/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent system for FrontMCP SDK.
|
|
3
|
+
*
|
|
4
|
+
* This module provides the infrastructure for creating autonomous AI agents
|
|
5
|
+
* that can have their own LLM providers, isolated scopes, and be invoked as tools.
|
|
6
|
+
*
|
|
7
|
+
* @example Creating an agent
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { Agent, AgentContext } from '@frontmcp/sdk';
|
|
10
|
+
* import { z } from 'zod';
|
|
11
|
+
*
|
|
12
|
+
* @Agent({
|
|
13
|
+
* name: 'research-agent',
|
|
14
|
+
* description: 'Researches topics and compiles reports',
|
|
15
|
+
* systemInstructions: 'You are a research assistant...',
|
|
16
|
+
* inputSchema: {
|
|
17
|
+
* topic: z.string().describe('Topic to research'),
|
|
18
|
+
* },
|
|
19
|
+
* llm: {
|
|
20
|
+
* adapter: 'openai',
|
|
21
|
+
* model: 'gpt-4-turbo',
|
|
22
|
+
* apiKey: { env: 'OPENAI_API_KEY' },
|
|
23
|
+
* },
|
|
24
|
+
* tools: [WebSearchTool, SummarizeTool],
|
|
25
|
+
* })
|
|
26
|
+
* export default class ResearchAgent extends AgentContext {
|
|
27
|
+
* async execute(input: { topic: string }) {
|
|
28
|
+
* // Agent implementation
|
|
29
|
+
* return { summary: 'Research results...' };
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @module agent
|
|
35
|
+
*/
|
|
36
|
+
export * from './agent.events';
|
|
37
|
+
export * from './agent.utils';
|
|
38
|
+
export { AgentInstance } from './agent.instance';
|
|
39
|
+
export { default as AgentRegistry, IndexedAgent } from './agent.registry';
|
|
40
|
+
export * from './agent-execution-loop';
|
|
41
|
+
export * from './flows';
|
|
42
|
+
export * from './hooks';
|
|
43
|
+
export * from './adapters';
|
|
44
|
+
export { AgentContext, AgentCtorArgs } from '../common/interfaces/agent.interface';
|
|
45
|
+
export { AgentEntry, AgentCallArgs, AgentCallExtra, ParsedAgentResult } from '../common/entries/agent.entry';
|
|
46
|
+
export { AgentMetadata, AgentLlmConfig, AgentLlmBuiltinConfig, AgentLlmAdapterConfig, AgentSwarmConfig, AgentExecutionConfig, AgentExportsConfig, AgentApiKeyConfig, AgentLlmProviderType, WithConfig, withConfig, AgentType, frontMcpAgentMetadataSchema, } from '../common/metadata/agent.metadata';
|
|
47
|
+
export { annotatedFrontMcpAgentsSchema } from '../common/schemas';
|
|
48
|
+
export { AgentRecord, AgentKind, AgentClassTokenRecord, AgentFunctionTokenRecord, AgentValueRecord, AgentFactoryRecord, } from '../common/records/agent.record';
|
|
49
|
+
export { FrontMcpAgentTokens, extendedAgentMetadata } from '../common/tokens/agent.tokens';
|
|
50
|
+
export { Agent, FrontMcpAgent, agent, frontMcpAgent, AgentInputOf, AgentOutputOf, FrontMcpAgentExecuteHandler, } from '../common/decorators/agent.decorator';
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,cAAc,wBAAwB,CAAC;AAGvC,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEnF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAE7G,OAAO,EACL,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,SAAS,EACT,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,EACL,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EACL,KAAK,EACL,aAAa,EACb,KAAK,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,2BAA2B,GAC5B,MAAM,sCAAsC,CAAC"}
|
package/app/app.registry.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.registry.d.ts","sourceRoot":"","sources":["../../src/app/app.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAW,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEjF,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGvE,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IACvF,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;gBAE1B,eAAe,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa;IAKpF,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAC,SAAS,CAAC;IActE,SAAS,CAAC,UAAU;IAapB,0EAA0E;cAC1D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3C,OAAO,IAAI,QAAQ,EAAE;CAGtB"}
|
package/app/app.utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { LocalAppMetadata, AppType, AppRecord } from '../common';
|
|
2
3
|
export declare function collectAppMetadata(cls: AppType): LocalAppMetadata;
|
|
3
4
|
/**
|
|
4
5
|
* Normalize a raw app metadata list into useful maps/sets.
|
|
@@ -13,3 +14,4 @@ export declare function normalizeApp(item: AppType): AppRecord;
|
|
|
13
14
|
* - LOCAL_CLASS: deps come from the class constructor
|
|
14
15
|
*/
|
|
15
16
|
export declare function appDiscoveryDeps(rec: AppRecord): Token[];
|
|
17
|
+
//# sourceMappingURL=app.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.utils.d.ts","sourceRoot":"","sources":["../../src/app/app.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAqC,MAAM,cAAc,CAAC;AAE9E,OAAO,EACL,gBAAgB,EAEhB,OAAO,EACP,SAAS,EAIV,MAAM,WAAW,CAAC;AAGnB,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAMjE;AAmBD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,CAwCrD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,KAAK,EAAE,CAOxD"}
|
|
@@ -5,6 +5,7 @@ import ResourceRegistry from '../../resource/resource.registry';
|
|
|
5
5
|
import PromptRegistry from '../../prompt/prompt.registry';
|
|
6
6
|
import AdapterRegistry from '../../adapter/adapter.regsitry';
|
|
7
7
|
import PluginRegistry from '../../plugin/plugin.registry';
|
|
8
|
+
import AgentRegistry from '../../agent/agent.registry';
|
|
8
9
|
export declare class AppLocalInstance extends AppEntry<LocalAppMetadata> {
|
|
9
10
|
readonly id: string;
|
|
10
11
|
private scopeProviders;
|
|
@@ -14,6 +15,7 @@ export declare class AppLocalInstance extends AppEntry<LocalAppMetadata> {
|
|
|
14
15
|
private appTools;
|
|
15
16
|
private appResources;
|
|
16
17
|
private appPrompts;
|
|
18
|
+
private appAgents;
|
|
17
19
|
constructor(record: AppRecord, scopeProviders: ProviderRegistry);
|
|
18
20
|
protected initialize(): Promise<void>;
|
|
19
21
|
get providers(): Readonly<ProviderRegistry>;
|
|
@@ -22,4 +24,6 @@ export declare class AppLocalInstance extends AppEntry<LocalAppMetadata> {
|
|
|
22
24
|
get tools(): Readonly<ToolRegistry>;
|
|
23
25
|
get resources(): Readonly<ResourceRegistry>;
|
|
24
26
|
get prompts(): Readonly<PromptRegistry>;
|
|
27
|
+
get agents(): Readonly<AgentRegistry>;
|
|
25
28
|
}
|
|
29
|
+
//# sourceMappingURL=app.local.instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.local.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.local.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,cAAmC,MAAM,8BAA8B,CAAC;AAC/E,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD,qBAAa,gBAAiB,SAAQ,QAAQ,CAAC,gBAAgB,CAAC;IAC9D,SAAkB,EAAE,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,SAAS,CAAgB;gBAErB,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB;cAO/C,UAAU;IAuC1B,IAAI,SAAS,IAAI,QAAQ,CAAC,gBAAgB,CAAC,CAE1C;IAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,eAAe,CAAC,CAExC;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,cAAc,CAAC,CAEtC;IAED,IAAI,KAAK,IAAI,QAAQ,CAAC,YAAY,CAAC,CAElC;IAED,IAAI,SAAS,IAAI,QAAQ,CAAC,gBAAgB,CAAC,CAE1C;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,cAAc,CAAC,CAEtC;IAED,IAAI,MAAM,IAAI,QAAQ,CAAC,aAAa,CAAC,CAEpC;CACF"}
|
|
@@ -1,13 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file app.remote.instance.ts
|
|
3
|
+
* @description Remote MCP app instance that proxies to a remote MCP server
|
|
4
|
+
*
|
|
5
|
+
* This implementation uses standard registries (ToolRegistry, ResourceRegistry, PromptRegistry)
|
|
6
|
+
* like local apps, but with lazy capability discovery and TTL-based caching.
|
|
7
|
+
*/
|
|
1
8
|
import { AdapterRegistryInterface, AppEntry, AppRecord, PluginRegistryInterface, PromptRegistryInterface, ProviderRegistryInterface, RemoteAppMetadata, ResourceRegistryInterface, ToolRegistryInterface } from '../../common';
|
|
2
9
|
import ProviderRegistry from '../../provider/provider.registry';
|
|
10
|
+
import { McpClientService } from '../../remote-mcp';
|
|
11
|
+
/**
|
|
12
|
+
* Remote MCP app instance that connects to and proxies a remote MCP server.
|
|
13
|
+
*
|
|
14
|
+
* This class uses standard registries (ToolRegistry, ResourceRegistry, PromptRegistry)
|
|
15
|
+
* like local apps, providing consistent behavior for:
|
|
16
|
+
* - Hook lifecycle (beforeExec, afterExec)
|
|
17
|
+
* - Tool/resource/prompt discovery
|
|
18
|
+
* - Change event notifications
|
|
19
|
+
*
|
|
20
|
+
* Key features:
|
|
21
|
+
* - Lazy capability discovery: Capabilities are discovered on first access
|
|
22
|
+
* - TTL-based caching: Capabilities are cached with configurable TTL
|
|
23
|
+
* - Full hook support: Remote tools participate in the hook lifecycle
|
|
24
|
+
*/
|
|
3
25
|
export declare class AppRemoteInstance extends AppEntry<RemoteAppMetadata> {
|
|
4
26
|
readonly id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Remote apps return true to indicate entries should be adopted directly
|
|
29
|
+
* from the app's registries rather than through child registry hierarchy.
|
|
30
|
+
*/
|
|
31
|
+
get isRemote(): boolean;
|
|
32
|
+
private readonly scopeProviders;
|
|
33
|
+
private readonly mcpClient;
|
|
34
|
+
private readonly appOwner;
|
|
35
|
+
private readonly capabilityCache;
|
|
36
|
+
private readonly _tools;
|
|
37
|
+
private readonly _resources;
|
|
38
|
+
private readonly _prompts;
|
|
39
|
+
private readonly _plugins;
|
|
40
|
+
private readonly _adapters;
|
|
41
|
+
private isConnected;
|
|
42
|
+
private capabilitiesLoaded;
|
|
43
|
+
private loadingPromise;
|
|
44
|
+
private _unsubscribeCapability?;
|
|
5
45
|
constructor(record: AppRecord, scopeProviders: ProviderRegistry);
|
|
6
46
|
protected initialize(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Ensure capabilities are loaded, using cache if available.
|
|
49
|
+
* This is called lazily when tools/resources/prompts are accessed.
|
|
50
|
+
*/
|
|
51
|
+
ensureCapabilitiesLoaded(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Force refresh capabilities from the remote server.
|
|
54
|
+
*/
|
|
55
|
+
refreshCapabilities(): Promise<void>;
|
|
7
56
|
get providers(): ProviderRegistryInterface;
|
|
8
57
|
get adapters(): AdapterRegistryInterface;
|
|
9
58
|
get plugins(): PluginRegistryInterface;
|
|
10
59
|
get tools(): ToolRegistryInterface;
|
|
11
60
|
get resources(): ResourceRegistryInterface;
|
|
12
61
|
get prompts(): PromptRegistryInterface;
|
|
62
|
+
/**
|
|
63
|
+
* Get the MCP client service for this remote app
|
|
64
|
+
*/
|
|
65
|
+
getMcpClient(): McpClientService;
|
|
66
|
+
/**
|
|
67
|
+
* Check if this remote app is connected
|
|
68
|
+
*/
|
|
69
|
+
getIsConnected(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Check if capabilities have been loaded
|
|
72
|
+
*/
|
|
73
|
+
getCapabilitiesLoaded(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Get cache statistics
|
|
76
|
+
*/
|
|
77
|
+
getCacheStats(): {
|
|
78
|
+
totalEntries: number;
|
|
79
|
+
activeEntries: number;
|
|
80
|
+
expiredEntries: number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Disconnect from the remote server
|
|
84
|
+
*/
|
|
85
|
+
disconnect(): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Reconnect to the remote server
|
|
88
|
+
*/
|
|
89
|
+
reconnect(): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Get or create the MCP client service from scope
|
|
92
|
+
*/
|
|
93
|
+
private getOrCreateMcpClientService;
|
|
94
|
+
/**
|
|
95
|
+
* Build the connection request from metadata
|
|
96
|
+
*/
|
|
97
|
+
private buildConnectRequest;
|
|
98
|
+
/**
|
|
99
|
+
* Map urlType to transport type
|
|
100
|
+
*/
|
|
101
|
+
private mapUrlTypeToTransportType;
|
|
102
|
+
/**
|
|
103
|
+
* Map remote auth config from metadata format to MCP client format
|
|
104
|
+
*/
|
|
105
|
+
private mapRemoteAuth;
|
|
106
|
+
/**
|
|
107
|
+
* Discover remote capabilities and register them in standard registries.
|
|
108
|
+
*/
|
|
109
|
+
private discoverAndRegisterCapabilities;
|
|
13
110
|
}
|
|
111
|
+
//# sourceMappingURL=app.remote.instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.remote.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.remote.instance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,wBAAwB,EACxB,QAAQ,EACR,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EAEjB,yBAAyB,EACzB,qBAAqB,EAKtB,MAAM,cAAc,CAAC;AAEtB,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAIhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAyCpD;;;;;;;;;;;;;GAaG;AACH,qBAAa,iBAAkB,SAAQ,QAAQ,CAAC,iBAAiB,CAAC;IAChE,SAAkB,EAAE,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAGlD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiB;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;IAC/C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IAGjD,OAAO,CAAC,WAAW,CAAS;IAG5B,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,cAAc,CAA8B;IAGpD,OAAO,CAAC,sBAAsB,CAAC,CAAa;gBAEhC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB;cA8B/C,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAoC3C;;;OAGG;IACG,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB/C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU1C,IAAa,SAAS,IAAI,yBAAyB,CAElD;IAED,IAAa,QAAQ,IAAI,wBAAwB,CAEhD;IAED,IAAa,OAAO,IAAI,uBAAuB,CAE9C;IAED,IAAa,KAAK,IAAI,qBAAqB,CAE1C;IAED,IAAa,SAAS,IAAI,yBAAyB,CAElD;IAED,IAAa,OAAO,IAAI,uBAAuB,CAE9C;IAED;;OAEG;IACH,YAAY,IAAI,gBAAgB;IAIhC;;OAEG;IACH,cAAc,IAAI,OAAO;IAIzB;;OAEG;IACH,qBAAqB,IAAI,OAAO;IAIhC;;OAEG;IACH,aAAa,IAAI;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE;IAIxF;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAejC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAkBnC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAejC;;OAEG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;YACW,+BAA+B;CAgF9C"}
|
package/app/instances/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/instances/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
package/auth/auth.registry.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.registry.d.ts","sourceRoot":"","sources":["../../src/auth/auth.registry.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACL,YAAY,EAEZ,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAElB,aAAa,EAEb,UAAU,EAEV,gBAAgB,EAQjB,MAAM,WAAW,CAAC;AAInB,OAAO,EAAuB,2BAA2B,EAAe,MAAM,aAAa,CAAC;AAY5F,qBAAa,YACX,SAAQ,gBAAgB,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,CAClF,YAAW,qBAAqB;IAEhC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAc;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IAEtC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAEhD;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC;gBAGtC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,gBAAgB,EAAE,EAC5B,KAAK,EAAE,aAAa,EACpB,YAAY,CAAC,EAAE,gBAAgB;IAuCjC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAmB1B;;OAEG;IACH,OAAO,CAAC,cAAc;IA0BtB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAiB3B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAuB7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;cAwBN,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC,kBAAkB,CAAC;IAgBjG,SAAS,CAAC,UAAU;cAqBJ,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3C,UAAU,IAAI,YAAY;IAO1B,gBAAgB,IAAI,iBAAiB,EAAE;CAGxC"}
|
package/auth/auth.utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { AuthProviderMetadata, AuthProviderType, AuthProviderRecord } from '../common';
|
|
2
3
|
export declare function collectAuthMetadata(cls: AuthProviderType): AuthProviderMetadata;
|
|
3
4
|
export declare function normalizeAuth(item: AuthProviderType): AuthProviderRecord;
|
|
4
5
|
/**
|
|
@@ -8,3 +9,4 @@ export declare function normalizeAuth(item: AuthProviderType): AuthProviderRecor
|
|
|
8
9
|
* - CLASS / CLASS_TOKEN: deps come from the class constructor or static with(...)
|
|
9
10
|
*/
|
|
10
11
|
export declare function authDiscoveryDeps(rec: AuthProviderRecord): Token[];
|
|
12
|
+
//# sourceMappingURL=auth.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.utils.d.ts","sourceRoot":"","sources":["../../src/auth/auth.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgD,MAAM,cAAc,CAAC;AACnF,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,WAAW,CAAC;AAEnB,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,GAAG,oBAAoB,CAM/E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,CAoDxE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,KAAK,EAAE,CAelE"}
|