@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.validation.d.ts","sourceRoot":"","sources":["../../src/server/server.validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,cAAc,EAAE,MAAM,WAAW,CAAC;AAoDzE,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAuJtF"}
|
|
@@ -19,3 +19,4 @@ export declare abstract class StoreBaseAdapter implements StoreDriver {
|
|
|
19
19
|
publish(_channel: string, _message: string): Promise<number>;
|
|
20
20
|
subscribe(_channel: string, _handler: (message: string) => void): Promise<() => Promise<void>>;
|
|
21
21
|
}
|
|
22
|
+
//# sourceMappingURL=store.base.adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.base.adapter.d.ts","sourceRoot":"","sources":["../../../src/store/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A;KAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAItF,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC5D,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAGrG"}
|
|
@@ -24,3 +24,4 @@ export declare class ScopedInMemoryStore extends StoreBaseAdapter {
|
|
|
24
24
|
publish(channel: string, message: string): Promise<number>;
|
|
25
25
|
subscribe(channel: string, handler: (message: string) => void): Promise<() => Promise<void>>;
|
|
26
26
|
}
|
|
27
|
+
//# sourceMappingURL=store.memory.adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.memory.adapter.d.ts","sourceRoot":"","sources":["../../../src/store/adapters/store.memory.adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,GAAG,CAA4B;IACvC,OAAO,CAAC,GAAG,CAAsB;IAE3B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAGxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC,OAAO,CAAC,SAAS;IAGjB,OAAO,CAAC,QAAQ;IASV,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIxC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAKjE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAG/B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAG5B,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAGhD,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAG/F,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAMlC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAMlC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtD,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAM/B,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK1D,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAM5G"}
|
|
@@ -31,3 +31,4 @@ export declare class ScopedRedisStore extends StoreBaseAdapter {
|
|
|
31
31
|
publish(channel: string, message: string): Promise<number>;
|
|
32
32
|
subscribe(channel: string, handler: (message: string) => void): Promise<() => Promise<void>>;
|
|
33
33
|
}
|
|
34
|
+
//# sourceMappingURL=store.redis.adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.redis.adapter.d.ts","sourceRoot":"","sources":["../../../src/store/adapters/store.redis.adapter.ts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gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC"}
|
package/store/store.factory.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.factory.d.ts","sourceRoot":"","sources":["../../src/store/store.factory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,aAAa,EAGnB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAWpE;AAqCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAW9G;AAmDD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,YAAY,CAsBnG;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,WAAW,CAIrE"}
|
package/store/store.helpers.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare function setMany<P extends AllPrefixes, K extends KeysFor<P>>(sco
|
|
|
7
7
|
opts?: SetOptions;
|
|
8
8
|
}>): Promise<void>;
|
|
9
9
|
export declare function getMany<P extends AllPrefixes, K extends KeysFor<P>, V = ValueFor<P, K>>(scope: Scope, storeName: string, prefix: P, keys: K[]): Promise<Array<V | null>>;
|
|
10
|
+
//# sourceMappingURL=store.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.helpers.d.ts","sourceRoot":"","sources":["../../src/store/store.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG7F,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,IAI5B,CAAC,SAAS,WAAW,EAAE,QAAQ,CAAC,KAAG,WAAW,CAAC,CAAC,CAAC,CAwC5E;AAGD,wBAAsB,OAAO,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACvE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,KAAK,CAAC;IAAE,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC,GACnE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAsB,OAAO,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAC3F,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,CAAC,EAAE,GACR,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAK1B"}
|
|
@@ -11,3 +11,4 @@ export declare class StoreRegistry implements StoreRegistryInterface {
|
|
|
11
11
|
export type StoreRegistryLocator = (scopeId: Scope['id']) => StoreRegistryInterface;
|
|
12
12
|
export declare function configureStoreRegistryLocator(l: StoreRegistryLocator): void;
|
|
13
13
|
export declare function getRegistryForScope(scopeId: Scope['id']): StoreRegistryInterface;
|
|
14
|
+
//# sourceMappingURL=store.registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.registry.d.ts","sourceRoot":"","sources":["../../src/store/store.registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,qBAAa,aAAc,YAAW,sBAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAkC;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI;IAGjD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAG1C,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW;IAKjC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAG1B,IAAI,IAAI,MAAM,EAAE;CAGjB;AAED,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,sBAAsB,CAAC;AAGpF,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,oBAAoB,QAEpE;AACD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,sBAAsB,CAGhF"}
|
package/store/store.tokens.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.tokens.d.ts","sourceRoot":"","sources":["../../src/store/store.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,eAA2C,CAAC;AACrF,eAAO,MAAM,0BAA0B,eAAyC,CAAC;AACjF,eAAO,MAAM,kBAAkB,eAAiC,CAAC"}
|
package/store/store.types.d.ts
CHANGED
|
@@ -62,3 +62,4 @@ declare global {
|
|
|
62
62
|
export type AllPrefixes = keyof McpKVNamespaces extends never ? string : Extract<keyof McpKVNamespaces, string>;
|
|
63
63
|
export type KeysFor<P> = P extends keyof McpKVNamespaces ? Extract<keyof McpKVNamespaces[P], string> : string;
|
|
64
64
|
export type ValueFor<P, K> = P extends keyof McpKVNamespaces ? K extends keyof McpKVNamespaces[P] ? McpKVNamespaces[P][K] : unknown : unknown;
|
|
65
|
+
//# sourceMappingURL=store.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.types.d.ts","sourceRoot":"","sources":["../../src/store/store.types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAGzC,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEzC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAA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@
|
|
|
1
|
+
{"version":3,"file":"store.utils.d.ts","sourceRoot":"","sources":["../../src/store/store.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAA0B;AAEhF,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAElF;AAED,eAAO,MAAM,IAAI;WACR,CAAC,SAAS,CAAC,GAAG,MAAM;WACpB,CAAC,OAAO,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI;CACxC,CAAC"}
|
|
@@ -225,9 +225,10 @@ declare const stateSchema: z.ZodObject<{
|
|
|
225
225
|
_toolOwnerId: z.ZodOptional<z.ZodString>;
|
|
226
226
|
uiResult: z.ZodType<ToolResponseContent | undefined>;
|
|
227
227
|
uiMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
228
|
+
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
228
229
|
}, z.core.$strip>;
|
|
229
230
|
declare const plan: {
|
|
230
|
-
readonly pre: ["parseInput", "findTool", "checkToolAuthorization", "createToolCallContext", "acquireQuota", "acquireSemaphore"];
|
|
231
|
+
readonly pre: ["parseInput", "ensureRemoteCapabilities", "findTool", "checkToolAuthorization", "createToolCallContext", "acquireQuota", "acquireSemaphore"];
|
|
231
232
|
readonly execute: ["validateInput", "execute", "validateOutput"];
|
|
232
233
|
readonly finalize: ["releaseSemaphore", "releaseQuota", "applyUI", "finalize"];
|
|
233
234
|
};
|
|
@@ -240,6 +241,12 @@ declare const name: "tools:call-tool";
|
|
|
240
241
|
export default class CallToolFlow extends FlowBase<typeof name> {
|
|
241
242
|
logger: import("../../common").FrontMcpLogger;
|
|
242
243
|
parseInput(): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Ensure remote app capabilities are loaded before looking up tools.
|
|
246
|
+
* Remote apps use lazy capability discovery - this triggers the loading.
|
|
247
|
+
* Uses provider registry to find all remote apps across all app registries.
|
|
248
|
+
*/
|
|
249
|
+
ensureRemoteCapabilities(): Promise<void>;
|
|
243
250
|
findTool(): Promise<void>;
|
|
244
251
|
/**
|
|
245
252
|
* Check if the tool's parent app is authorized.
|
|
@@ -277,3 +284,4 @@ export default class CallToolFlow extends FlowBase<typeof name> {
|
|
|
277
284
|
finalize(): Promise<void>;
|
|
278
285
|
}
|
|
279
286
|
export {};
|
|
287
|
+
//# sourceMappingURL=call-tool.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-tool.flow.d.ts","sourceRoot":"","sources":["../../../src/tool/flows/call-tool.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,QAAQ,EAGR,cAAc,EACd,WAAW,EAEX,SAAS,EAEV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAW1E,OAAO,EAAgD,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAInH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;iBAIf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAE1C,QAAA,MAAM,WAAW;;;;;cAKiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASnB,CAAC,CAAC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;;;iBAK1E,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAY2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,iBAAiB,EAAE,cAAc,CAC/B,YAAY,EACZ,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,iBAA0B,CAAC;AAUxC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC7D,MAAM,wCAA0C;IAG1C,UAAU;IAuChB;;;;OAIG;IAEG,wBAAwB;IA2CxB,QAAQ;IAiDd;;;;OAIG;IAEG,sBAAsB;IA6E5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAMzB,qBAAqB;IA4CrB,YAAY;IAQZ,gBAAgB;IAQhB,aAAa;IAuBb,OAAO;IAqBP,cAAc;IAed,gBAAgB;IAQhB,YAAY;IAOlB;;;;OAIG;IAEG,OAAO;IAqLb;;;;;;;;OAQG;IAEG,QAAQ;CAsEf"}
|
|
@@ -81,7 +81,7 @@ declare const stateSchema: z.ZodObject<{
|
|
|
81
81
|
}, z.core.$strip>>;
|
|
82
82
|
}, z.core.$strip>;
|
|
83
83
|
declare const plan: {
|
|
84
|
-
readonly pre: ["parseInput"];
|
|
84
|
+
readonly pre: ["parseInput", "ensureRemoteCapabilities"];
|
|
85
85
|
readonly execute: ["findTools", "resolveConflicts"];
|
|
86
86
|
readonly post: ["parseTools"];
|
|
87
87
|
};
|
|
@@ -95,8 +95,15 @@ export default class ToolsListFlow extends FlowBase<typeof name> {
|
|
|
95
95
|
logger: import("../../common").FrontMcpLogger;
|
|
96
96
|
private sample;
|
|
97
97
|
parseInput(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Ensure remote app capabilities are loaded before listing tools.
|
|
100
|
+
* Remote apps use lazy capability discovery - this triggers the loading.
|
|
101
|
+
* Uses provider registry to find all remote apps across all app registries.
|
|
102
|
+
*/
|
|
103
|
+
ensureRemoteCapabilities(): Promise<void>;
|
|
98
104
|
findTools(): Promise<void>;
|
|
99
105
|
resolveConflicts(): Promise<void>;
|
|
100
106
|
parseTools(): Promise<void>;
|
|
101
107
|
}
|
|
102
108
|
export {};
|
|
109
|
+
//# sourceMappingURL=tools-list.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-list.flow.d.ts","sourceRoot":"","sources":["../../../src/tool/flows/tools-list.flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAsC,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7G,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAE/E,QAAA,MAAM,WAAW;;;;;;;;;;;;;;iBAGf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAE3C,QAAA,MAAM,WAAW;;cAGiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;kBACZ,CAAC,CAAC,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;;;;;;;;;;iBAc5E,CAAC;AAMH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,kBAAkB,EAAE,cAAc,CAChC,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,kBAA2B,CAAC;AAUzC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC9D,MAAM,wCAA2C;IAEjD,OAAO,CAAC,MAAM;IAKR,UAAU;IA2ChB;;;;OAIG;IAEG,wBAAwB;IA2CxB,SAAS;IAsCT,gBAAgB;IAqChB,UAAU;CAqKjB"}
|
package/tool/tool.events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToolEntry } from '../common';
|
|
2
2
|
export type ToolChangeKind = 'added' | 'updated' | 'removed' | 'reset';
|
|
3
3
|
/**
|
|
4
4
|
* The scope of a change event.
|
|
@@ -13,7 +13,7 @@ export type ToolChangeEvent = {
|
|
|
13
13
|
sessionId?: string;
|
|
14
14
|
relatedRequestId?: string;
|
|
15
15
|
version: number;
|
|
16
|
-
snapshot: readonly
|
|
16
|
+
snapshot: readonly ToolEntry[];
|
|
17
17
|
};
|
|
18
18
|
type Listener = (e: ToolChangeEvent) => void;
|
|
19
19
|
export declare class ToolEmitter {
|
|
@@ -22,3 +22,4 @@ export declare class ToolEmitter {
|
|
|
22
22
|
emit(e: ToolChangeEvent): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=tool.events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.events.d.ts","sourceRoot":"","sources":["../../src/tool/tool.events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,oEAAoE;IACpE,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;CAChC,CAAC;AAEF,KAAK,QAAQ,GAAG,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;AAE7C,qBAAa,WAAW;IACtB,OAAO,CAAC,SAAS,CAAuB;IAExC,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,IAAI;IAK3B,IAAI,CAAC,CAAC,EAAE,eAAe;CAGxB"}
|
package/tool/tool.instance.d.ts
CHANGED
|
@@ -3,18 +3,34 @@ import ProviderRegistry from '../provider/provider.registry';
|
|
|
3
3
|
import HookRegistry from '../hooks/hook.registry';
|
|
4
4
|
import { Scope } from '../scope';
|
|
5
5
|
import type { CallToolRequest } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Concrete implementation of a tool that can be executed.
|
|
8
|
+
*
|
|
9
|
+
* **Scope Binding:** The ToolInstance captures its scope and providers at construction time.
|
|
10
|
+
* All operations (hook registration, tool context creation) use the captured scope.
|
|
11
|
+
* If you need a tool to operate in a different scope (e.g., agent scope), you must
|
|
12
|
+
* create a new ToolInstance with that scope's providers.
|
|
13
|
+
*/
|
|
6
14
|
export declare class ToolInstance<InSchema extends ToolInputType = ToolInputType, OutSchema extends ToolOutputType = ToolOutputType, In = ToolInputOf<{
|
|
7
15
|
inputSchema: InSchema;
|
|
8
16
|
}>, Out = ToolOutputOf<{
|
|
9
17
|
outputSchema: OutSchema;
|
|
10
18
|
}>> extends ToolEntry<InSchema, OutSchema, In, Out> {
|
|
11
|
-
|
|
19
|
+
/** The provider registry this tool is bound to (captured at construction) */
|
|
20
|
+
private readonly _providers;
|
|
21
|
+
/** The scope this tool operates in (captured at construction from providers) */
|
|
12
22
|
readonly scope: Scope;
|
|
23
|
+
/** The hook registry for this tool's scope (captured at construction) */
|
|
13
24
|
readonly hooks: HookRegistry;
|
|
14
25
|
constructor(record: ToolRecord, providers: ProviderRegistry, owner: EntryOwnerRef);
|
|
15
26
|
protected initialize(): Promise<void>;
|
|
16
27
|
getMetadata(): import("../common").ToolMetadata<ToolInputType, ToolOutputType>;
|
|
17
28
|
getOutputSchema(): OutSchema | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Get the provider registry for this tool.
|
|
31
|
+
* Used by flows to build context-aware providers for CONTEXT-scoped dependencies.
|
|
32
|
+
*/
|
|
33
|
+
get providers(): ProviderRegistry;
|
|
18
34
|
create(input: ToolCallArgs, ctx: ToolCallExtra): ToolContext<InSchema, OutSchema, In, Out>;
|
|
19
35
|
parseInput(input: CallToolRequest['params']): CallToolRequest['params']['arguments'];
|
|
20
36
|
/**
|
|
@@ -31,3 +47,4 @@ export declare class ToolInstance<InSchema extends ToolInputType = ToolInputType
|
|
|
31
47
|
parseOutput(raw: Out | Partial<Out> | any): ParsedToolResult;
|
|
32
48
|
safeParseOutput(raw: Out | Partial<Out> | any): SafeTransformResult<ParsedToolResult>;
|
|
33
49
|
}
|
|
50
|
+
//# sourceMappingURL=tool.instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.instance.d.ts","sourceRoot":"","sources":["../../src/tool/tool.instance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EAEX,SAAS,EAET,aAAa,EAEb,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,KA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
|
@@ -15,6 +15,8 @@ ToolRecord, ToolType[]> implements ToolRegistryInterface {
|
|
|
15
15
|
private adopted;
|
|
16
16
|
/** Children registries that we track */
|
|
17
17
|
private children;
|
|
18
|
+
/** Remote app tools tracked by app ID for efficient cleanup during re-adoption */
|
|
19
|
+
private remoteAppTools;
|
|
18
20
|
private byQualifiedId;
|
|
19
21
|
private byName;
|
|
20
22
|
private byOwnerAndName;
|
|
@@ -35,15 +37,31 @@ ToolRecord, ToolType[]> implements ToolRegistryInterface {
|
|
|
35
37
|
* - Here we only prepend the **parent's** owner, to avoid double-prefixing the child.
|
|
36
38
|
*/
|
|
37
39
|
adoptFromChild(child: ToolRegistry, _childOwner: EntryOwnerRef): void;
|
|
40
|
+
/**
|
|
41
|
+
* Type guard to check if an object has the ToolRegistry subscribe interface.
|
|
42
|
+
* Used for duck-typing remote registries that may not be full ToolRegistry instances.
|
|
43
|
+
*/
|
|
44
|
+
private hasSubscribeInterface;
|
|
45
|
+
/**
|
|
46
|
+
* Adopt tools directly from a remote app's tools registry.
|
|
47
|
+
* Remote apps expose tools via proxy entries that forward execution to the remote server.
|
|
48
|
+
* This also subscribes to updates from the remote app's registry for lazy-loaded tools.
|
|
49
|
+
*/
|
|
50
|
+
private adoptToolsFromRemoteApp;
|
|
51
|
+
/**
|
|
52
|
+
* Adopt tools from a local app's child ToolRegistry instances.
|
|
53
|
+
* Local apps use the hierarchical registry pattern for tool discovery.
|
|
54
|
+
*/
|
|
55
|
+
private adoptToolsFromLocalApp;
|
|
38
56
|
getTools(includeHidden?: boolean): ToolEntry<any, any>[];
|
|
39
57
|
getInlineTools(): ToolEntry<any, any>[];
|
|
40
58
|
/** Internal snapshot of effective indexed rows (locals + adopted). */
|
|
41
59
|
private listAllIndexed;
|
|
42
60
|
private reindex;
|
|
43
61
|
/** List all instances (locals + adopted). */
|
|
44
|
-
listAllInstances(): readonly
|
|
62
|
+
listAllInstances(): readonly ToolEntry[];
|
|
45
63
|
/** List instances by owner path (e.g. "app:Portal/plugin:Okta") */
|
|
46
|
-
listByOwner(ownerPath: string): readonly
|
|
64
|
+
listByOwner(ownerPath: string): readonly ToolEntry[];
|
|
47
65
|
/**
|
|
48
66
|
* Produce unique, MCP-valid exported names.
|
|
49
67
|
* - Base (standardized) = metadata.name cased (snake/camel/kebab/dot)
|
|
@@ -53,13 +71,13 @@ ToolRecord, ToolType[]> implements ToolRegistryInterface {
|
|
|
53
71
|
*/
|
|
54
72
|
exportResolvedNames(opts?: ExportNameOptions): Array<{
|
|
55
73
|
name: string;
|
|
56
|
-
instance:
|
|
74
|
+
instance: ToolEntry;
|
|
57
75
|
}>;
|
|
58
76
|
/** Lookup by the exported (resolved) name. */
|
|
59
|
-
getExported(name: string, opts?: ExportNameOptions):
|
|
77
|
+
getExported(name: string, opts?: ExportNameOptions): ToolEntry | undefined;
|
|
60
78
|
subscribe(opts: {
|
|
61
79
|
immediate?: boolean;
|
|
62
|
-
filter?: (i:
|
|
80
|
+
filter?: (i: ToolEntry) => boolean;
|
|
63
81
|
}, cb: (evt: ToolChangeEvent) => void): () => void;
|
|
64
82
|
private bump;
|
|
65
83
|
/** Build an IndexedTool row */
|
|
@@ -70,9 +88,43 @@ ToolRecord, ToolType[]> implements ToolRegistryInterface {
|
|
|
70
88
|
private providerIdOf;
|
|
71
89
|
/** True if this registry (or adopted children) has any tools. */
|
|
72
90
|
hasAny(): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Type guard to check if a ToolEntry has the required properties for registration.
|
|
93
|
+
* Validates that the tool has record with provide, kind, metadata, and a valid name.
|
|
94
|
+
*/
|
|
95
|
+
private isRegisterableTool;
|
|
96
|
+
/**
|
|
97
|
+
* Register an existing ToolInstance directly (for agent-scoped or remote tools).
|
|
98
|
+
* This allows pre-constructed tool instances to be added without going through
|
|
99
|
+
* the standard token-based initialization flow.
|
|
100
|
+
*
|
|
101
|
+
* **IMPORTANT: Scope Binding**
|
|
102
|
+
* The ToolInstance captures its scope and providers at construction time.
|
|
103
|
+
* The tool will use the scope from its original `providers` argument, NOT this registry's scope.
|
|
104
|
+
* Therefore, you must create the ToolInstance with the correct providers for the target scope:
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* // Correct: Create with agent's providers
|
|
108
|
+
* const tool = new ToolInstance(record, agentProviders, owner);
|
|
109
|
+
* agentTools.registerToolInstance(tool);
|
|
110
|
+
*
|
|
111
|
+
* // For remote tools: Use RemoteToolInstance
|
|
112
|
+
* const remoteTool = new RemoteToolInstance(record, mcpClient, providers, owner);
|
|
113
|
+
* remoteTools.registerToolInstance(remoteTool);
|
|
114
|
+
*
|
|
115
|
+
* // Wrong: Reusing app-scoped tool in agent context
|
|
116
|
+
* // The tool will still use app's scope/hooks, not agent's!
|
|
117
|
+
* agentTools.registerToolInstance(existingAppTool);
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param tool - The tool instance to register (ToolInstance or RemoteToolInstance)
|
|
121
|
+
* @throws Error if tool is not a valid instance
|
|
122
|
+
*/
|
|
123
|
+
registerToolInstance(tool: ToolEntry): void;
|
|
73
124
|
/**
|
|
74
125
|
* Get the MCP capabilities for tools.
|
|
75
126
|
* These are reported to clients during initialization.
|
|
76
127
|
*/
|
|
77
128
|
getCapabilities(): Partial<ServerCapabilities>;
|
|
78
129
|
}
|
|
130
|
+
//# sourceMappingURL=tool.registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.registry.d.ts","sourceRoot":"","sources":["../../src/tool/tool.registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAChH,OAAO,EAAE,eAAe,EAAe,MAAM,eAAe,CAAC;AAC7D,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAK7D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,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ineage, Token } from '../common';
|
|
2
|
-
import { ToolInstance } from './tool.instance';
|
|
1
|
+
import { EntryLineage, Token, ToolEntry } from '../common';
|
|
3
2
|
import ToolRegistry from './tool.registry';
|
|
4
|
-
import type { NameCase } from '
|
|
3
|
+
import type { NameCase } from '@frontmcp/utils';
|
|
5
4
|
/** Internal augmented row: instance + provenance + token */
|
|
6
5
|
export type IndexedTool = {
|
|
7
6
|
token: Token;
|
|
8
|
-
|
|
7
|
+
/** The tool entry (can be ToolInstance or remote proxy entry) */
|
|
8
|
+
instance: ToolEntry;
|
|
9
9
|
/** base tool name from metadata (unmodified) */
|
|
10
10
|
baseName: string;
|
|
11
11
|
/** lineage & qualified info */
|
|
@@ -23,3 +23,4 @@ export type ExportNameOptions = {
|
|
|
23
23
|
prefixSource?: 'provider' | 'owner';
|
|
24
24
|
};
|
|
25
25
|
export declare const DEFAULT_EXPORT_OPTS: Required<ExportNameOptions>;
|
|
26
|
+
//# sourceMappingURL=tool.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.types.d.ts","sourceRoot":"","sources":["../../src/tool/tool.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,4DAA4D;AAC5D,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,iEAAiE;IACjE,QAAQ,EAAE,SAAS,CAAC;IACpB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,YAAY,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAK3D,CAAC"}
|
package/tool/tool.utils.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { ownerKeyOf, qualifiedNameOf } from '../utils/lineage.utils';
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { ToolMetadata, ToolType, ToolRecord, ToolEntry, ParsedToolResult, AgentToolDefinition } from '../common';
|
|
4
3
|
export declare function collectToolMetadata(cls: ToolType): ToolMetadata;
|
|
5
4
|
export declare function normalizeTool(item: any): ToolRecord;
|
|
6
5
|
/**
|
|
@@ -10,3 +9,21 @@ export declare function normalizeTool(item: any): ToolRecord;
|
|
|
10
9
|
*/
|
|
11
10
|
export declare function toolDiscoveryDeps(rec: ToolRecord): Token[];
|
|
12
11
|
export declare function buildParsedToolResult(descriptor: any, raw: unknown): ParsedToolResult;
|
|
12
|
+
/**
|
|
13
|
+
* Build agent tool definitions from tool entries.
|
|
14
|
+
*
|
|
15
|
+
* Converts `ToolEntry[]` to `AgentToolDefinition[]` format suitable for
|
|
16
|
+
* passing to an LLM adapter. This is a simpler format than full MCP Tool
|
|
17
|
+
* definitions, containing only the information needed by the LLM.
|
|
18
|
+
*
|
|
19
|
+
* @param tools - Array of tool entries from the tool registry
|
|
20
|
+
* @returns Array of agent tool definitions
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const tools = scope.tools.getTools(true);
|
|
25
|
+
* const definitions = buildAgentToolDefinitions(tools);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildAgentToolDefinitions(tools: ToolEntry[]): AgentToolDefinition[];
|
|
29
|
+
//# sourceMappingURL=tool.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.utils.d.ts","sourceRoot":"","sources":["../../src/tool/tool.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAuD,MAAM,cAAc,CAAC;AAC1F,OAAO,EACL,YAAY,EAEZ,QAAQ,EACR,UAAU,EAGV,SAAS,EAET,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAuBnB,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAa/D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAqBnD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,KAAK,EAAE,CAO1D;AA4BD,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAwFrF;AA0OD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,mBAAmB,EAAE,CA0BnF"}
|
package/tool/ui/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export { escapeHtml, formatDate, formatCurrency, uniqueId, jsonEmbed, createTemp
|
|
|
20
20
|
export { handleUIResourceRead, createUIResourceHandler } from './ui-resource.handler';
|
|
21
21
|
export type { UIResourceHandleResult, UIResourceHandlerOptions, HandleUIResourceOptions } from './ui-resource.handler';
|
|
22
22
|
export { StaticWidgetResourceTemplate } from './ui-resource-template';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,EAEL,cAAc,EAEd,uBAAuB,EACvB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EAEjB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EAEV,aAAa,EACb,cAAc,EACd,0BAA0B,EAC1B,sBAAsB,EACtB,kCAAkC,EAElC,qBAAqB,EAErB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,OAAO,EACL,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,qBAAqB,EACrB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACtF,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGvH,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -8,3 +8,4 @@
|
|
|
8
8
|
* @see {@link https://docs.agentfront.dev/docs/servers/tools#tool-ui | Tool UI Documentation}
|
|
9
9
|
*/
|
|
10
10
|
export { type AIPlatformType, type UIMetadata, type BuildUIMetaOptions, type BuildToolDiscoveryMetaOptions, buildUIMeta, buildToolDiscoveryMeta, buildOpenAICSP, } from '@frontmcp/uipack/adapters';
|
|
11
|
+
//# sourceMappingURL=platform-adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-adapters.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/platform-adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,WAAW,EACX,sBAAsB,EACtB,cAAc,GACf,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-helpers.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/template-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AASjE,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAgBvE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAKvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAQ,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAM/C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAQ5D;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-resource-template.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/ui-resource-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B,mGAwBvC,CAAC"}
|
|
@@ -72,3 +72,4 @@ export interface UIResourceHandlerOptions {
|
|
|
72
72
|
* @returns Handler function that can be used in the read-resource flow
|
|
73
73
|
*/
|
|
74
74
|
export declare function createUIResourceHandler(options: UIResourceHandlerOptions): (uri: string) => UIResourceHandleResult;
|
|
75
|
+
//# sourceMappingURL=ui-resource.handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-resource.handler.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/ui-resource.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAqBD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,cAAc,EACxB,YAAY,CAAC,EAAE,cAAc,GAC5B,sBAAsB,CA4DxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,QAAQ,EAAE,cAAc,CAAC;IACzB,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,IAGtC,KAAK,MAAM,KAAG,sBAAsB,CAStE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sse-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/sse-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,MAAM,WAAW,qCAAsC,SAAQ,yBAAyB;IACtF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,8BAA+B,SAAQ,kBAAkB;IACpE,OAAO,CAAC,mBAAmB,CAAS;gBAExB,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,qCAAqC;IAUlG;;;OAGG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;;;;OAMG;IACH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAcxC;;;;;;OAMG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;CAiB/D"}
|
|
@@ -49,11 +49,21 @@ export interface StreamableHTTPServerTransportOptions {
|
|
|
49
49
|
* adding public methods to set initialization state.
|
|
50
50
|
*/
|
|
51
51
|
export declare class RecreateableStreamableHTTPServerTransport extends StreamableHTTPServerTransport {
|
|
52
|
+
/**
|
|
53
|
+
* Stores pending initialization state when setInitializationState is called
|
|
54
|
+
* before _webStandardTransport is ready. Applied on first handleRequest.
|
|
55
|
+
*/
|
|
56
|
+
private _pendingInitState?;
|
|
52
57
|
constructor(options?: StreamableHTTPServerTransportOptions);
|
|
53
58
|
/**
|
|
54
59
|
* Returns whether the transport has been initialized.
|
|
55
60
|
*/
|
|
56
61
|
get isInitialized(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Returns whether there's a pending initialization state waiting to be applied.
|
|
64
|
+
* This is true when setInitializationState was called before _webStandardTransport existed.
|
|
65
|
+
*/
|
|
66
|
+
get hasPendingInitState(): boolean;
|
|
57
67
|
/**
|
|
58
68
|
* Sets the transport to an initialized state with the given session ID.
|
|
59
69
|
* Use this when recreating a transport from a stored session.
|
|
@@ -62,8 +72,25 @@ export declare class RecreateableStreamableHTTPServerTransport extends Streamabl
|
|
|
62
72
|
* initialization handshake. After calling this method, the transport
|
|
63
73
|
* will accept requests with the given session ID.
|
|
64
74
|
*
|
|
75
|
+
* If the internal transport is not ready yet (common in serverless cold starts),
|
|
76
|
+
* the state is stored and applied on the first handleRequest call.
|
|
77
|
+
*
|
|
65
78
|
* @param sessionId - The session ID that was previously assigned to this session
|
|
66
79
|
* @throws Error if sessionId is empty or invalid
|
|
67
80
|
*/
|
|
68
81
|
setInitializationState(sessionId: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Applies initialization state to the internal transport.
|
|
84
|
+
* @param webTransport - The internal _webStandardTransport object
|
|
85
|
+
* @param sessionId - The session ID to set
|
|
86
|
+
* @throws Error if the MCP SDK version is incompatible
|
|
87
|
+
*/
|
|
88
|
+
private _applyInitState;
|
|
89
|
+
/**
|
|
90
|
+
* Override handleRequest to apply any pending initialization state before processing.
|
|
91
|
+
* This handles the case where setInitializationState was called before _webStandardTransport
|
|
92
|
+
* was created (common in serverless cold start scenarios).
|
|
93
|
+
*/
|
|
94
|
+
handleRequest(req: any, res: any, body?: any): Promise<void>;
|
|
69
95
|
}
|
|
96
|
+
//# sourceMappingURL=streamable-http-transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamable-http-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/streamable-http-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,MAAM,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,yCAA0C,SAAQ,6BAA6B;IAC1F;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAC,CAAS;gBAEvB,OAAO,GAAE,oCAAyC;IAI9D;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAK3B;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAqB/C;;;;;OAKG;IAEH,OAAO,CAAC,eAAe;IAavB;;;;OAIG;IAEY,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAY5E"}
|
|
@@ -52,4 +52,16 @@ export declare abstract class LocalTransportAdapter<T extends SupportedTransport
|
|
|
52
52
|
ping(timeoutMs?: number): Promise<boolean>;
|
|
53
53
|
protected ensureAuthInfo(req: AuthenticatedServerRequest, transport: LocalTransportAdapter<T>): AuthInfo;
|
|
54
54
|
handleIfElicitResult(req: AuthenticatedServerRequest): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Type predicate to check if an app configuration represents a remote MCP app.
|
|
57
|
+
* Remote apps have a 'urlType' property and are not standalone.
|
|
58
|
+
*/
|
|
59
|
+
private isRemoteApp;
|
|
60
|
+
/**
|
|
61
|
+
* Build capabilities that should be pre-advertised for remote apps.
|
|
62
|
+
* Remote apps load their tools/resources/prompts asynchronously after connection,
|
|
63
|
+
* so we need to pre-advertise listChanged capabilities for proper notification support.
|
|
64
|
+
*/
|
|
65
|
+
private buildRemoteCapabilities;
|
|
55
66
|
}
|
|
67
|
+
//# sourceMappingURL=transport.local.adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.local.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.local.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAqB,YAAY,EAAE,SAAS,EAAsB,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,yCAAyC,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAuB,cAAc,EAAE,MAAM,cAAc,CAAC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AC,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3F;;;OAGG;IACH,iBAAiB,IAAI,IAAI;IAIzB,aAAa;IA6Db,IAAI,YAAY,IAAI,SAAS,CAE5B;IAEK,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB7C;;;OAGG;IACG,IAAI,CAAC,SAAS,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC;IAchD,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,0BAA0B,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAoB7F,oBAAoB,CAAC,GAAG,EAAE,0BAA0B,GAAG,OAAO;IAqB9D;;;OAGG;IACH,OAAO,CAAC,WAAW;IAQnB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAOhC"}
|
|
@@ -25,3 +25,4 @@ export declare class TransportSSEAdapter extends LocalTransportAdapter<Recreatea
|
|
|
25
25
|
handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
26
26
|
sendElicitRequest<T extends ZodType>(relatedRequestId: RequestId, message: string, requestedSchema: T): Promise<TypedElicitResult<T>>;
|
|
27
27
|
}
|
|
28
|
+
//# sourceMappingURL=transport.sse.adapter.d.ts.map
|