@frontmcp/sdk 0.6.3 → 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 +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 +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 +14039 -7081
- 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 +14250 -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":"hook.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/hook.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,8BAAsB,SAAS,CAC7B,EAAE,GAAG,GAAG,EACR,IAAI,SAAS,QAAQ,GAAG,QAAQ,EAChC,KAAK,GAAG,MAAM,EACd,GAAG,GAAG,GAAG,CACT,SAAQ,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAChF,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAEnC,SAAS,aACP,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,yBAAyB,EACpC,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC;IAW1C,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CACjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/entries/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/logger.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,8BAAsB,WAAY,SAAQ,SAAS,CAAC,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,CAAC;CAG7G"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
1
2
|
import { BaseEntry } from './base.entry';
|
|
2
3
|
import { PluginRecord } from '../records';
|
|
3
|
-
import { PluginInterface
|
|
4
|
+
import { PluginInterface } from '../interfaces';
|
|
4
5
|
import { PluginMetadata } from '../metadata';
|
|
5
6
|
export declare abstract class PluginEntry extends BaseEntry<PluginRecord, PluginInterface, PluginMetadata> {
|
|
6
7
|
abstract get<T>(token: Token<T>): T;
|
|
7
8
|
}
|
|
9
|
+
//# sourceMappingURL=plugin.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/plugin.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,8BAAsB,WAAY,SAAQ,SAAS,CAAC,YAAY,EAAE,eAAe,EAAE,cAAc,CAAC;IAChG,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;CACpC"}
|
|
@@ -5,8 +5,15 @@ import { PromptMetadata } from '../metadata';
|
|
|
5
5
|
import { GetPromptResult, Request, Notification } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
7
7
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
8
|
+
import { ProviderRegistryInterface } from '../interfaces/internal';
|
|
9
|
+
import type ProviderRegistry from '../../provider/provider.registry';
|
|
8
10
|
export type PromptGetExtra = RequestHandlerExtra<Request, Notification> & {
|
|
9
11
|
authInfo: AuthInfo;
|
|
12
|
+
/**
|
|
13
|
+
* Optional context-aware providers from the flow.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
contextProviders?: ProviderRegistryInterface;
|
|
10
17
|
};
|
|
11
18
|
export type ParsedPromptResult = GetPromptResult;
|
|
12
19
|
export type PromptSafeTransformResult<T> = {
|
|
@@ -26,6 +33,11 @@ export declare abstract class PromptEntry extends BaseEntry<PromptRecord, Prompt
|
|
|
26
33
|
* The full name of the prompt, including the owner name as prefix.
|
|
27
34
|
*/
|
|
28
35
|
fullName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Get the provider registry for this prompt.
|
|
38
|
+
* Used by flows to build context-aware providers for CONTEXT-scoped dependencies.
|
|
39
|
+
*/
|
|
40
|
+
abstract get providers(): ProviderRegistry;
|
|
29
41
|
/**
|
|
30
42
|
* Create a prompt context (class or function wrapper).
|
|
31
43
|
* @param args Arguments passed to the prompt
|
|
@@ -48,3 +60,4 @@ export declare abstract class PromptEntry extends BaseEntry<PromptRecord, Prompt
|
|
|
48
60
|
*/
|
|
49
61
|
abstract safeParseOutput(raw: unknown): PromptSafeTransformResult<ParsedPromptResult>;
|
|
50
62
|
}
|
|
63
|
+
//# sourceMappingURL=prompt.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/prompt.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAA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Aa;IAEjF;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAE9E;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB;IAEtD;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,yBAAyB,CAAC,kBAAkB,CAAC;CACtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,uBAAe,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CAGlG;AAGD,OAAO,EACL,aAAa,GACd,CAAC"}
|
|
@@ -5,8 +5,14 @@ import { ResourceMetadata, ResourceTemplateMetadata } from '../metadata';
|
|
|
5
5
|
import { ReadResourceResult, Request, Notification } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
7
7
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
8
|
+
import { ProviderRegistryInterface } from '../interfaces/internal';
|
|
8
9
|
export type ResourceReadExtra = RequestHandlerExtra<Request, Notification> & {
|
|
9
10
|
authInfo: AuthInfo;
|
|
11
|
+
/**
|
|
12
|
+
* Optional context-aware providers from the flow.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
contextProviders?: ProviderRegistryInterface;
|
|
10
16
|
};
|
|
11
17
|
export type ParsedResourceResult = ReadResourceResult;
|
|
12
18
|
export type ResourceSafeTransformResult<T> = {
|
|
@@ -68,3 +74,4 @@ export declare abstract class ResourceEntry<Params extends Record<string, string
|
|
|
68
74
|
params: Params;
|
|
69
75
|
};
|
|
70
76
|
}
|
|
77
|
+
//# sourceMappingURL=resource.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/resource.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAC3E,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AACtD,MAAM,MAAM,2BAA2B,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3G;;;;GAIG;AACH,8BAAsB,aAAa,CACjC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9D,GAAG,GAAG,OAAO,CACb,SAAQ,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,gBAAgB,GAAG,wBAAwB,CAAC;IACjH,KAAK,EAAE,aAAa,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC;IAElG;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,GAAG,oBAAoB;IAEvD;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAErF;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CACrE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Token, Type } from '@frontmcp/di';
|
|
1
2
|
import { BaseEntry } from './base.entry';
|
|
2
3
|
import { ScopeRecord } from '../records';
|
|
3
|
-
import { ScopeInterface, ProviderRegistryInterface, AppRegistryInterface, AuthRegistryInterface, FrontMcpAuth,
|
|
4
|
+
import { ScopeInterface, ProviderRegistryInterface, AppRegistryInterface, AuthRegistryInterface, FrontMcpAuth, FlowInputOf, FlowOutputOf, FlowType, FrontMcpLogger, ToolRegistryInterface, HookRegistryInterface, ResourceRegistryInterface, PromptRegistryInterface } from '../interfaces';
|
|
4
5
|
import { FlowName, ScopeMetadata } from '../metadata';
|
|
5
6
|
import type { NotificationService } from '../../notification';
|
|
6
7
|
export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, ScopeInterface, ScopeMetadata> {
|
|
@@ -21,3 +22,4 @@ export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, ScopeInt
|
|
|
21
22
|
abstract registryFlows(...flows: FlowType[]): Promise<void>;
|
|
22
23
|
abstract runFlow<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, additionalDeps?: Map<Token, Type>): Promise<FlowOutputOf<Name> | undefined>;
|
|
23
24
|
}
|
|
25
|
+
//# sourceMappingURL=scope.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/scope.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,8BAAsB,UAAW,SAAQ,SAAS,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa,CAAC;IAC5F,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEzC,IAAI,QAAQ,IAAI,MAAM,CAIrB;IAED,QAAQ,KAAK,IAAI,IAAI,YAAY,CAAC;IAElC,QAAQ,KAAK,KAAK,IAAI,qBAAqB,CAAC;IAE5C,QAAQ,KAAK,aAAa,IAAI,qBAAqB,CAAC;IAEpD,QAAQ,KAAK,SAAS,IAAI,yBAAyB,CAAC;IAEpD,QAAQ,KAAK,IAAI,IAAI,oBAAoB,CAAC;IAE1C,QAAQ,KAAK,KAAK,IAAI,qBAAqB,CAAC;IAE5C,QAAQ,KAAK,SAAS,IAAI,yBAAyB,CAAC;IAEpD,QAAQ,KAAK,OAAO,IAAI,uBAAuB,CAAC;IAEhD,QAAQ,KAAK,aAAa,IAAI,mBAAmB,CAAC;IAElD,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3D,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,QAAQ,EACpC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,cAAc,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;CAC3C"}
|
|
@@ -6,9 +6,20 @@ import { Request, Notification, CallToolRequest, CallToolResult } from '@modelco
|
|
|
6
6
|
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
7
7
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
8
8
|
import { ToolInputOf, ToolOutputOf } from '../decorators';
|
|
9
|
+
import { ProviderRegistryInterface } from '../interfaces/internal';
|
|
10
|
+
import type ProviderRegistry from '../../provider/provider.registry';
|
|
9
11
|
export type ToolCallArgs = CallToolRequest['params']['arguments'];
|
|
10
12
|
export type ToolCallExtra = RequestHandlerExtra<Request, Notification> & {
|
|
11
13
|
authInfo: AuthInfo;
|
|
14
|
+
/** Progress token from the request's _meta, used for progress notifications */
|
|
15
|
+
progressToken?: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* Optional context-aware providers from the flow.
|
|
18
|
+
* When provided, this is used instead of the tool's default providers.
|
|
19
|
+
* This enables access to context-scoped providers (from plugins) during tool execution.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
contextProviders?: ProviderRegistryInterface;
|
|
12
23
|
};
|
|
13
24
|
export type ParsedToolResult = CallToolResult;
|
|
14
25
|
export type SafeTransformResult<T> = {
|
|
@@ -32,6 +43,11 @@ export declare abstract class ToolEntry<InSchema extends ToolInputType = ToolInp
|
|
|
32
43
|
* The full name of the tool, including the owner name as prefix.
|
|
33
44
|
*/
|
|
34
45
|
fullName: string;
|
|
46
|
+
/**
|
|
47
|
+
* Get the provider registry for this tool.
|
|
48
|
+
* Used by flows to build context-aware providers for CONTEXT-scoped dependencies.
|
|
49
|
+
*/
|
|
50
|
+
abstract get providers(): ProviderRegistry;
|
|
35
51
|
inputSchema: InSchema;
|
|
36
52
|
rawInputSchema: any;
|
|
37
53
|
outputSchema?: OutSchema;
|
|
@@ -60,3 +76,4 @@ export declare abstract class ToolEntry<InSchema extends ToolInputType = ToolInp
|
|
|
60
76
|
*/
|
|
61
77
|
abstract safeParseOutput(raw: Out | Partial<Out> | any): SafeTransformResult<ParsedToolResult>;
|
|
62
78
|
}
|
|
79
|
+
//# sourceMappingURL=tool.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.entry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.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
1
|
export * from './decorators';
|
|
3
2
|
export * from './types';
|
|
4
3
|
export * from './metadata';
|
|
@@ -14,3 +13,4 @@ export * from './interfaces/tool-hook.interface';
|
|
|
14
13
|
export * from './interfaces/session-hook.interface';
|
|
15
14
|
export * from './interfaces/auth-hook.interface';
|
|
16
15
|
export * from './providers/base-config.provider';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAElC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassType, FactoryType, Token, Type, ValueType } from '
|
|
1
|
+
import { ClassType, FactoryType, Token, Type, ValueType } from '@frontmcp/di';
|
|
2
2
|
import { ToolType } from './tool.interface';
|
|
3
3
|
import { ResourceType } from './resource.interface';
|
|
4
4
|
import { PromptType } from './prompt.interface';
|
|
@@ -24,3 +24,4 @@ export type AdapterClassType<Provide> = ClassType<Provide> & AdapterMetadata;
|
|
|
24
24
|
export type AdapterValueType<Provide> = ValueType<Provide> & AdapterMetadata;
|
|
25
25
|
export type AdapterFactoryType<Provide, Tokens extends readonly Token[]> = FactoryType<Provide, Tokens> & AdapterMetadata;
|
|
26
26
|
export type AdapterType<Provide extends AdapterInterface = any> = Type<Provide> | AdapterClassType<Provide> | AdapterValueType<Provide> | AdapterFactoryType<Provide, any[]>;
|
|
27
|
+
//# sourceMappingURL=adapter.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/adapter.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,KAAK,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAC;CACzE;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,gBAAgB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC;AAC7E,MAAM,MAAM,gBAAgB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC;AAC7E,MAAM,MAAM,kBAAkB,CAAC,OAAO,EAAE,MAAM,SAAS,SAAS,KAAK,EAAE,IAAI,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,GACrG,eAAe,CAAC;AAElB,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,gBAAgB,GAAG,GAAG,IAC1D,IAAI,CAAC,OAAO,CAAC,GACb,gBAAgB,CAAC,OAAO,CAAC,GACzB,gBAAgB,CAAC,OAAO,CAAC,GACzB,kBAAkB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { ProviderRegistryInterface } from './internal';
|
|
2
|
+
import { ToolInputType, ToolOutputType, AgentMetadata, AgentType } from '../metadata';
|
|
3
|
+
import { ExecutionContextBase, ExecutionContextBaseArgs } from './execution-context.interface';
|
|
4
|
+
import type { AIPlatformType, ClientInfo, McpLoggingLevel } from '../../notification';
|
|
5
|
+
import { AgentLlmAdapter, AgentPrompt, AgentToolDefinition, AgentCompletion, AgentCompletionChunk, AgentCompletionOptions } from './llm-adapter.interface';
|
|
6
|
+
import { AgentInputOf, AgentOutputOf } from '../decorators';
|
|
7
|
+
import { ToolExecutor } from '../../agent/agent-execution-loop';
|
|
8
|
+
export { AgentType };
|
|
9
|
+
/**
|
|
10
|
+
* History entry for tracking input/output changes during execution.
|
|
11
|
+
*/
|
|
12
|
+
type HistoryEntry<T> = {
|
|
13
|
+
at: number;
|
|
14
|
+
stage?: string;
|
|
15
|
+
value: T | undefined;
|
|
16
|
+
note?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Constructor arguments for AgentContext.
|
|
20
|
+
*/
|
|
21
|
+
export type AgentCtorArgs<In> = ExecutionContextBaseArgs & {
|
|
22
|
+
metadata: AgentMetadata;
|
|
23
|
+
input: In;
|
|
24
|
+
llmAdapter: AgentLlmAdapter;
|
|
25
|
+
agentScope?: ProviderRegistryInterface;
|
|
26
|
+
/** Tool definitions available to this agent */
|
|
27
|
+
toolDefinitions?: AgentToolDefinition[];
|
|
28
|
+
/** Function to execute tools - provided by AgentInstance */
|
|
29
|
+
toolExecutor?: ToolExecutor;
|
|
30
|
+
/** Progress token from the request's _meta, used for progress notifications */
|
|
31
|
+
progressToken?: string | number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Abstract base class for agent execution contexts.
|
|
35
|
+
*
|
|
36
|
+
* Agents are autonomous units with their own LLM provider, isolated scope,
|
|
37
|
+
* and the ability to be invoked as tools by other agents or the parent app.
|
|
38
|
+
*
|
|
39
|
+
* Override the protected methods to customize agent behavior:
|
|
40
|
+
* - `completion()` - Override for custom LLM completion logic
|
|
41
|
+
* - `streamCompletion()` - Override for custom streaming logic
|
|
42
|
+
* - `executeTool()` - Override for custom tool execution logic
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* // Default behavior - works automatically (no execute() needed!)
|
|
47
|
+
* @Agent({
|
|
48
|
+
* name: 'research-agent',
|
|
49
|
+
* description: 'Researches topics',
|
|
50
|
+
* systemInstructions: 'You are a research assistant. Search and summarize topics.',
|
|
51
|
+
* llm: { adapter: 'openai', model: 'gpt-4-turbo', apiKey: { env: 'OPENAI_API_KEY' } },
|
|
52
|
+
* tools: [WebSearchTool],
|
|
53
|
+
* })
|
|
54
|
+
* export default class ResearchAgent extends AgentContext {}
|
|
55
|
+
*
|
|
56
|
+
* // Custom behavior - override execute() only when needed
|
|
57
|
+
* @Agent({ ... })
|
|
58
|
+
* export default class CustomAgent extends AgentContext {
|
|
59
|
+
* async execute(input: Input): Promise<Output> {
|
|
60
|
+
* // Custom pre-processing
|
|
61
|
+
* const result = await super.execute(input); // Call default loop
|
|
62
|
+
* // Custom post-processing
|
|
63
|
+
* return result;
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare class AgentContext<InSchema extends ToolInputType = ToolInputType, OutSchema extends ToolOutputType = ToolOutputType, In = AgentInputOf<{
|
|
69
|
+
inputSchema: InSchema;
|
|
70
|
+
}>, Out = AgentOutputOf<{
|
|
71
|
+
outputSchema: OutSchema;
|
|
72
|
+
}>> extends ExecutionContextBase<Out> {
|
|
73
|
+
protected readonly agentId: string;
|
|
74
|
+
protected readonly agentName: string;
|
|
75
|
+
readonly metadata: AgentMetadata;
|
|
76
|
+
/** The LLM adapter for this agent */
|
|
77
|
+
protected readonly llmAdapter: AgentLlmAdapter;
|
|
78
|
+
/** Agent-scoped provider registry (if isolated scope is enabled) */
|
|
79
|
+
protected readonly agentScope?: ProviderRegistryInterface;
|
|
80
|
+
/** System instructions for the agent's LLM */
|
|
81
|
+
protected readonly systemInstructions: string;
|
|
82
|
+
/** Tool definitions available to this agent */
|
|
83
|
+
protected readonly toolDefinitions: AgentToolDefinition[];
|
|
84
|
+
/** Function to execute tools - provided by AgentInstance */
|
|
85
|
+
protected readonly toolExecutor?: ToolExecutor;
|
|
86
|
+
private _rawInput?;
|
|
87
|
+
private _input?;
|
|
88
|
+
private _outputDraft?;
|
|
89
|
+
private _output?;
|
|
90
|
+
private readonly _inputHistory;
|
|
91
|
+
private readonly _outputHistory;
|
|
92
|
+
private readonly _progressToken?;
|
|
93
|
+
constructor(args: AgentCtorArgs<In>);
|
|
94
|
+
/**
|
|
95
|
+
* Execute the agent with the given input.
|
|
96
|
+
*
|
|
97
|
+
* **Default behavior:** Runs the agent execution loop automatically:
|
|
98
|
+
* - Sends input + system instructions to the LLM
|
|
99
|
+
* - Executes tool calls as needed
|
|
100
|
+
* - Sends notifications on tool calls and output
|
|
101
|
+
* - Returns the final response
|
|
102
|
+
*
|
|
103
|
+
* **Override this method** only when you need custom behavior:
|
|
104
|
+
* - Custom pre/post processing
|
|
105
|
+
* - Custom response formatting
|
|
106
|
+
* - Multi-step workflows
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* // Custom behavior - call super.execute() for default loop
|
|
111
|
+
* async execute(input: Input): Promise<Output> {
|
|
112
|
+
* this.notify('Starting custom agent...', 'info');
|
|
113
|
+
* const result = await super.execute(input);
|
|
114
|
+
* return { ...result, customField: 'added' };
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
execute(input: In): Promise<Out>;
|
|
119
|
+
/**
|
|
120
|
+
* Run the agent execution loop.
|
|
121
|
+
*
|
|
122
|
+
* This is the default implementation that:
|
|
123
|
+
* 1. Builds prompt from input + system instructions
|
|
124
|
+
* 2. Sends to LLM with available tools
|
|
125
|
+
* 3. Executes tool calls and loops until final response
|
|
126
|
+
* 4. Sends notifications on tool calls and output
|
|
127
|
+
*/
|
|
128
|
+
protected runAgentLoop(input: In): Promise<Out>;
|
|
129
|
+
/**
|
|
130
|
+
* Build the user message from input.
|
|
131
|
+
* Override this to customize how input is formatted for the LLM.
|
|
132
|
+
*/
|
|
133
|
+
protected buildUserMessage(input: In): string;
|
|
134
|
+
/**
|
|
135
|
+
* Parse the LLM response into the expected output format.
|
|
136
|
+
* Override this to customize response parsing.
|
|
137
|
+
*/
|
|
138
|
+
protected parseAgentResponse(content: string | null): Out;
|
|
139
|
+
get input(): In;
|
|
140
|
+
set input(v: In | undefined);
|
|
141
|
+
get inputHistory(): ReadonlyArray<HistoryEntry<In>>;
|
|
142
|
+
get output(): Out | undefined;
|
|
143
|
+
set output(v: Out | undefined);
|
|
144
|
+
get outputHistory(): ReadonlyArray<HistoryEntry<Out>>;
|
|
145
|
+
/**
|
|
146
|
+
* Generate a completion from the LLM.
|
|
147
|
+
*
|
|
148
|
+
* Override this method to add custom pre/post processing:
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```typescript
|
|
152
|
+
* protected override async completion(prompt, tools, options) {
|
|
153
|
+
* console.log('Pre-processing...');
|
|
154
|
+
* const result = await super.completion(prompt, tools, options);
|
|
155
|
+
* console.log('Post-processing...');
|
|
156
|
+
* return result;
|
|
157
|
+
* }
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
protected completion(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): Promise<AgentCompletion>;
|
|
161
|
+
/**
|
|
162
|
+
* Stream a completion from the LLM.
|
|
163
|
+
*
|
|
164
|
+
* Override this method to add custom streaming logic.
|
|
165
|
+
*/
|
|
166
|
+
protected streamCompletion(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): AsyncGenerator<AgentCompletionChunk>;
|
|
167
|
+
/**
|
|
168
|
+
* Execute a tool by name with the given arguments.
|
|
169
|
+
*
|
|
170
|
+
* Override this method to add custom tool execution logic:
|
|
171
|
+
* - Logging
|
|
172
|
+
* - Caching
|
|
173
|
+
* - Error handling
|
|
174
|
+
* - Tool call interception
|
|
175
|
+
*/
|
|
176
|
+
protected executeTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
177
|
+
/**
|
|
178
|
+
* Invoke another agent by ID.
|
|
179
|
+
*
|
|
180
|
+
* Only available if `swarm.canSeeOtherAgents` is true or the target agent
|
|
181
|
+
* is in `swarm.visibleAgents`.
|
|
182
|
+
*/
|
|
183
|
+
protected invokeAgent(agentId: string, input: unknown): Promise<unknown>;
|
|
184
|
+
/**
|
|
185
|
+
* Send a notification message to the current session.
|
|
186
|
+
* Uses 'notifications/message' per MCP 2025-11-25 spec.
|
|
187
|
+
*
|
|
188
|
+
* Use this to report progress during long-running operations.
|
|
189
|
+
*
|
|
190
|
+
* @param message - The notification message (string) or structured data (object)
|
|
191
|
+
* @param level - Log level: 'debug', 'info', 'warning', or 'error' (default: 'info')
|
|
192
|
+
* @returns true if the notification was sent, false if session unavailable
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```typescript
|
|
196
|
+
* async execute(input: Input): Promise<Output> {
|
|
197
|
+
* await this.notify('Starting agent processing...', 'info');
|
|
198
|
+
* await this.notify({ step: 1, total: 5, status: 'in_progress' });
|
|
199
|
+
* // ... processing
|
|
200
|
+
* return result;
|
|
201
|
+
* }
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
protected notify(message: string | Record<string, unknown>, level?: McpLoggingLevel): Promise<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Send a progress notification to the current session.
|
|
207
|
+
* Uses 'notifications/progress' per MCP 2025-11-25 spec.
|
|
208
|
+
*
|
|
209
|
+
* Only works if the client requested progress updates by including a
|
|
210
|
+
* progressToken in the request's _meta field. If no progressToken was
|
|
211
|
+
* provided, this method logs a debug message and returns false.
|
|
212
|
+
*
|
|
213
|
+
* @param progress - Current progress value (should increase monotonically)
|
|
214
|
+
* @param total - Total progress value (optional)
|
|
215
|
+
* @param message - Progress message (optional)
|
|
216
|
+
* @returns true if the notification was sent, false if no progressToken or session
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* async execute(input: Input): Promise<Output> {
|
|
221
|
+
* for (let i = 0; i < 10; i++) {
|
|
222
|
+
* await this.progress(i + 1, 10, `Step ${i + 1} of 10`);
|
|
223
|
+
* await doWork();
|
|
224
|
+
* }
|
|
225
|
+
* return result;
|
|
226
|
+
* }
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
protected progress(progress: number, total?: number, message?: string): Promise<boolean>;
|
|
230
|
+
/**
|
|
231
|
+
* Elicit user input during agent execution.
|
|
232
|
+
*
|
|
233
|
+
* This allows the agent to ask the user for input when needed.
|
|
234
|
+
*
|
|
235
|
+
* @param message - The prompt to show the user
|
|
236
|
+
* @param schema - Zod schema for validating user response
|
|
237
|
+
* @returns The user's response, or undefined if cancelled
|
|
238
|
+
*/
|
|
239
|
+
protected elicit<T>(message: string, schema?: unknown): Promise<T | undefined>;
|
|
240
|
+
/**
|
|
241
|
+
* Respond with the final output and end execution.
|
|
242
|
+
*
|
|
243
|
+
* This sets the output and throws to exit the flow immediately.
|
|
244
|
+
*/
|
|
245
|
+
respond(value: Out): never;
|
|
246
|
+
/**
|
|
247
|
+
* Get the detected AI platform type for the current session.
|
|
248
|
+
*/
|
|
249
|
+
get platform(): AIPlatformType;
|
|
250
|
+
/**
|
|
251
|
+
* Get the client info (name and version) for the current session.
|
|
252
|
+
*/
|
|
253
|
+
get clientInfo(): ClientInfo | undefined;
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=agent.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/agent.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EACL,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAsB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGpF,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB;;GAEG;AACH,KAAK,YAAY,CAAC,CAAC,IAAI;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,EAAE,IAAI,wBAAwB,GAAG;IACzD,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,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AC,EAAE,sBAAsB,GAC/B,cAAc,CAAC,oBAAoB,CAAC;IAUvC;;;;;;;;OAQG;cACa,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAK1F;;;;;OAKG;cACa,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAS9E;;;;;;;;;;;;;;;;;;;OAmBG;cACa,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,GAAE,eAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAqBpH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;cACa,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAe9F;;;;;;;;OAQG;cACa,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAMpF;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;IAS1B;;OAEG;IACH,IAAI,QAAQ,IAAI,cAAc,CAU7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,UAAU,GAAG,SAAS,CAMvC;CACF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { Type, ValueType } from '
|
|
2
|
-
import { AppMetadata } from '../metadata';
|
|
1
|
+
import { Type, ValueType } from '@frontmcp/di';
|
|
2
|
+
import { AppMetadata, RemoteAppMetadata } from '../metadata';
|
|
3
|
+
/** Marker interface for FrontMCP application classes */
|
|
3
4
|
export interface AppInterface {
|
|
4
5
|
}
|
|
5
6
|
export type AppValueType<Provide> = ValueType<Provide> & AppMetadata;
|
|
6
|
-
export type AppType<T extends AppInterface = any> = Type<T> | AppValueType<T
|
|
7
|
+
export type AppType<T extends AppInterface = any> = Type<T> | AppValueType<T> | RemoteAppMetadata;
|
|
8
|
+
//# sourceMappingURL=app.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/app.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE7D,wDAAwD;AAExD,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,MAAM,YAAY,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC;AAIrE,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,YAAY,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-hook.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/auth-hook.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,oBAAY,aAAa;IACvB;;;;;;OAMG;IACH,iBAAiB,sBAAsB;IAGvC;;;;OAIG;IACH,gBAAgB,qBAAqB;IAErC;;;;OAIG;IACH,iBAAiB,sBAAsB;IAIvC;;;;OAIG;IACH,aAAa,kBAAkB;IAE/B;;;;OAIG;IACH,aAAa,kBAAkB,CAAE,kCAAkC;IAEnE;;;;;;OAMG;IACH,iBAAiB,sBAAsB;IAEvC;;;;;OAKG;IACH,iBAAiB,sBAAsB;IAEvC;;;;OAIG;IACH,eAAe,oBAAoB;IAInC;;;;OAIG;IACH,cAAc,mBAAmB;IAEjC;;;;OAIG;IACH,aAAa,kBAAkB;IAI/B;;;OAGG;IACH,kBAAkB,uBAAuB;IAEzC;;;OAGG;IACH,iBAAiB,sBAAsB;IAIvC;;;;;OAKG;IACH,YAAY,iBAAiB;IAE7B;;;;;;OAMG;IACH,OAAO,YAAY;IAEnB;;;;OAIG;IACH,SAAS,cAAc;IAEvB;;;;OAIG;IACH,QAAQ,aAAa;IAErB;;;;;;OAMG;IACH,SAAS,cAAc;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, Token, ClassType, ValueType, FactoryType, ClassToken } from '
|
|
1
|
+
import { Type, Token, ClassType, ValueType, FactoryType, ClassToken } from '@frontmcp/di';
|
|
2
2
|
import { AuthProviderMetadata } from '../metadata';
|
|
3
3
|
export interface AuthProviderInterface {
|
|
4
4
|
headers(): Record<string, string>;
|
|
@@ -20,3 +20,4 @@ export type AuthProviderType<Provide extends AuthProviderInterface = any, Tokens
|
|
|
20
20
|
* });
|
|
21
21
|
*/
|
|
22
22
|
export declare function AsyncAuthProvider<Provide, const Tokens extends readonly (ClassToken | Token)[]>(cfg: AuthProviderFactoryType<Provide, Tokens>): AuthProviderFactoryType<Provide, Tokens>;
|
|
23
|
+
//# sourceMappingURL=auth-provider.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-provider.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/auth-provider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,qBAAqB;IACpC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElC,YAAY,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,MAAM,MAAM,qBAAqB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC;AACvF,MAAM,MAAM,qBAAqB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC;AACvF,MAAM,MAAM,uBAAuB,CAAC,OAAO,EAAE,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,IAAI,WAAW,CACxG,OAAO,EACP,MAAM,CACP,GACC,oBAAoB,CAAC;AAEvB,MAAM,MAAM,gBAAgB,CAC1B,OAAO,SAAS,qBAAqB,GAAG,GAAG,EAC3C,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,IAE9E,IAAI,CAAC,OAAO,CAAC,GACb,qBAAqB,CAAC,OAAO,CAAC,GAC9B,qBAAqB,CAAC,OAAO,CAAC,GAC9B,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,EAC7F,GAAG,EAAE,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,GAC5C,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,CAE1C"}
|
|
@@ -1,77 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Useful anywhere a factory/DI container expects a class reference that can be
|
|
5
|
-
* `new`-ed. For example: `getProvider(UserRepo as Type<UserRepo>)`.
|
|
6
|
-
*/
|
|
7
|
-
export interface Type<T = unknown> extends Function {
|
|
8
|
-
new (...args: any[]): T;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Constructor type for a concrete class that produces instances of T.
|
|
12
|
-
*
|
|
13
|
-
* Useful anywhere a factory/DI container expects a class reference that can be
|
|
14
|
-
* `new`-ed. For example: `getProvider(UserRepo as Type<UserRepo>)`.
|
|
15
|
-
*/
|
|
16
|
-
export type FuncType<T> = (...args: any[]) => any | Promise<any>;
|
|
17
|
-
export type PartialStagesType<T extends string> = Partial<Record<T, Type[]>>;
|
|
18
|
-
/**
|
|
19
|
-
* Empty Constructor type for a concrete class that produces instances of T.
|
|
20
|
-
*
|
|
21
|
-
* Useful anywhere a factory/DI container expects a class reference that can be
|
|
22
|
-
* `new`-ed. For example: `getProvider(UserRepo as Type<UserRepo>)`.
|
|
23
|
-
*/
|
|
24
|
-
export interface CtorType<T = unknown> extends Function {
|
|
25
|
-
new (): T;
|
|
26
|
-
}
|
|
27
|
-
export type Ctor<T> = new (...args: any[]) => T;
|
|
28
|
-
/**
|
|
29
|
-
* Shape of an abstract class (or interface-like constructor) whose instances
|
|
30
|
-
* cannot be created directly but still expose a prototype of T.
|
|
31
|
-
*
|
|
32
|
-
* This is handy when accepting references that may point at abstract bases
|
|
33
|
-
* instead of concrete implementors.
|
|
34
|
-
*/
|
|
35
|
-
export interface Abstract<T> extends Function {
|
|
36
|
-
prototype: T;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* A reference token that may be used to look up or identify a dependency.
|
|
40
|
-
*
|
|
41
|
-
* Typical usages:
|
|
42
|
-
* - string | symbol: named tokens (e.g., provider IDs like "provider:redis").
|
|
43
|
-
* - Type<T>: a concrete class constructor (can be instantiated).
|
|
44
|
-
* - Abstract<T>: an abstract base reference (resolved to a concrete impl).
|
|
45
|
-
* - Function: generic function references when needed.
|
|
46
|
-
*/
|
|
47
|
-
export type Reference<T = unknown> = string | symbol | Type<T> | Abstract<T> | Function;
|
|
48
|
-
/** A DI token that can be either a class constructor or a logical reference. */
|
|
49
|
-
export type Token<T = any> = Type<T> | Reference<T>;
|
|
50
|
-
export interface ClassType<Provide> {
|
|
51
|
-
provide: Reference<Provide>;
|
|
52
|
-
useClass: Type<Provide>;
|
|
53
|
-
}
|
|
54
|
-
export interface ValueType<Provide> {
|
|
55
|
-
provide: Reference<Provide>;
|
|
56
|
-
useValue: Provide;
|
|
57
|
-
}
|
|
58
|
-
/** Map a tuple of tokens to a tuple of their instance types (order preserved). */
|
|
59
|
-
export type ClassToken<T = any> = abstract new (...a: any) => T;
|
|
60
|
-
/** 2) Map tokens -> runtime parameter types **/
|
|
61
|
-
type ResolveToken<T> = T extends ClassToken<infer R> ? R : T extends symbol & {
|
|
62
|
-
readonly __di_type?: infer R;
|
|
63
|
-
} ? R : never;
|
|
64
|
-
type ResolveTokens<Tokens extends readonly unknown[]> = {
|
|
65
|
-
[K in keyof Tokens]: Tokens[K] extends Token<infer R> ? R : ResolveToken<Tokens[K]>;
|
|
66
|
-
};
|
|
67
|
-
type Mutable<T extends readonly unknown[]> = {
|
|
68
|
-
-readonly [K in keyof T]: T[K];
|
|
69
|
-
};
|
|
70
|
-
/** 3) FactoryType with correct useFactory shape **/
|
|
71
|
-
export interface FactoryType<Provide, Tokens extends readonly (ClassToken | Token)[]> {
|
|
72
|
-
provide: Reference<Provide>;
|
|
73
|
-
inject: () => Tokens;
|
|
74
|
-
useFactory: (...args: Mutable<ResolveTokens<Tokens>>) => Provide | Promise<Provide>;
|
|
75
|
-
}
|
|
76
|
-
export type RequiredByKey<T, K extends keyof T> = T & Required<Omit<T, K>>;
|
|
77
|
-
export {};
|
|
1
|
+
export type { Type, FuncType, PartialStagesType, CtorType, Ctor, Abstract, Reference, Token, ClassType, ValueType, ClassToken, FactoryType, RequiredByKey, } from '@frontmcp/di';
|
|
2
|
+
//# sourceMappingURL=base.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/base.interface.ts"],"names":[],"mappings":"AACA,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,GACd,MAAM,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Token } from '
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
2
|
import { ProviderRegistryInterface } from './internal';
|
|
3
3
|
import { FrontMcpLogger } from './logger.interface';
|
|
4
4
|
import { URL } from 'url';
|
|
@@ -106,3 +106,4 @@ export declare abstract class ExecutionContextBase<Out = unknown> {
|
|
|
106
106
|
*/
|
|
107
107
|
protected get error(): Error | undefined;
|
|
108
108
|
}
|
|
109
|
+
//# sourceMappingURL=execution-context.interface.d.ts.map
|