@frontmcp/sdk 0.6.3 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter/adapter.instance.d.ts +3 -1
- package/adapter/adapter.instance.d.ts.map +1 -0
- package/adapter/adapter.regsitry.d.ts +1 -0
- package/adapter/adapter.regsitry.d.ts.map +1 -0
- package/adapter/adapter.utils.d.ts +3 -1
- package/adapter/adapter.utils.d.ts.map +1 -0
- package/agent/adapters/adapter.factory.d.ts +105 -0
- package/agent/adapters/adapter.factory.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts +116 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -0
- package/agent/adapters/index.d.ts +47 -0
- package/agent/adapters/index.d.ts.map +1 -0
- package/agent/adapters/langchain.adapter.d.ts +178 -0
- package/agent/adapters/langchain.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +36 -0
- package/agent/adapters/providers/index.d.ts.map +1 -0
- package/agent/adapters/providers/types.d.ts +15 -0
- package/agent/adapters/providers/types.d.ts.map +1 -0
- package/agent/agent-execution-loop.d.ts +209 -0
- package/agent/agent-execution-loop.d.ts.map +1 -0
- package/agent/agent.events.d.ts +149 -0
- package/agent/agent.events.d.ts.map +1 -0
- package/agent/agent.instance.d.ts +201 -0
- package/agent/agent.instance.d.ts.map +1 -0
- package/agent/agent.registry.d.ts +137 -0
- package/agent/agent.registry.d.ts.map +1 -0
- package/agent/agent.scope.d.ts +333 -0
- package/agent/agent.scope.d.ts.map +1 -0
- package/agent/agent.utils.d.ts +72 -0
- package/agent/agent.utils.d.ts.map +1 -0
- package/agent/flows/call-agent.flow.d.ts +306 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -0
- package/agent/flows/index.d.ts +2 -0
- package/agent/flows/index.d.ts.map +1 -0
- package/agent/hooks/agent.hooks.d.ts +52 -0
- package/agent/hooks/agent.hooks.d.ts.map +1 -0
- package/agent/hooks/index.d.ts +2 -0
- package/agent/hooks/index.d.ts.map +1 -0
- package/agent/index.d.ts +51 -0
- package/agent/index.d.ts.map +1 -0
- package/app/app.registry.d.ts +1 -0
- package/app/app.registry.d.ts.map +1 -0
- package/app/app.utils.d.ts +3 -1
- package/app/app.utils.d.ts.map +1 -0
- package/app/instances/app.local.instance.d.ts +4 -0
- package/app/instances/app.local.instance.d.ts.map +1 -0
- package/app/instances/app.remote.instance.d.ts +98 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -0
- package/auth/auth.registry.d.ts +1 -0
- package/auth/auth.registry.d.ts.map +1 -0
- package/auth/auth.utils.d.ts +3 -1
- package/auth/auth.utils.d.ts.map +1 -0
- package/auth/authorization/authorization.class.d.ts +1 -0
- package/auth/authorization/authorization.class.d.ts.map +1 -0
- package/auth/authorization/authorization.types.d.ts +1 -0
- package/auth/authorization/authorization.types.d.ts.map +1 -0
- package/auth/authorization/index.d.ts +1 -0
- package/auth/authorization/index.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -0
- package/auth/authorization/public.authorization.d.ts +1 -0
- package/auth/authorization/public.authorization.d.ts.map +1 -0
- package/auth/authorization/transparent.authorization.d.ts +1 -0
- package/auth/authorization/transparent.authorization.d.ts.map +1 -0
- package/auth/consent/consent.types.d.ts +1 -0
- package/auth/consent/consent.types.d.ts.map +1 -0
- package/auth/consent/index.d.ts +1 -0
- package/auth/consent/index.d.ts.map +1 -0
- package/auth/detection/auth-provider-detection.d.ts +1 -0
- package/auth/detection/auth-provider-detection.d.ts.map +1 -0
- package/auth/detection/index.d.ts +1 -0
- package/auth/detection/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts +8 -2
- package/auth/flows/auth.verify.flow.d.ts.map +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/flows/oauth.callback.flow.d.ts +1 -0
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +4 -3
- package/auth/flows/oauth.register.flow.d.ts.map +1 -0
- package/auth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/flows/session.verify.flow.d.ts +12 -1
- package/auth/flows/session.verify.flow.d.ts.map +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -0
- package/auth/flows/well-known.prm.flow.d.ts +1 -0
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -0
- package/auth/jwks/dev-key-persistence.d.ts +1 -0
- package/auth/jwks/dev-key-persistence.d.ts.map +1 -0
- package/auth/jwks/index.d.ts +1 -0
- package/auth/jwks/index.d.ts.map +1 -0
- package/auth/jwks/jwks.service.d.ts +16 -2
- package/auth/jwks/jwks.service.d.ts.map +1 -0
- package/auth/jwks/jwks.types.d.ts +1 -0
- package/auth/jwks/jwks.types.d.ts.map +1 -0
- package/auth/jwks/jwks.utils.d.ts +1 -0
- package/auth/jwks/jwks.utils.d.ts.map +1 -0
- package/auth/machine-id.d.ts +1 -0
- package/auth/machine-id.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +1 -0
- package/auth/session/authorization-vault.d.ts +5 -4
- package/auth/session/authorization-vault.d.ts.map +1 -0
- package/auth/session/authorization.store.d.ts +1 -0
- package/auth/session/authorization.store.d.ts.map +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -0
- package/auth/session/index.d.ts +1 -0
- package/auth/session/index.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +1 -0
- package/auth/session/record/session.base.d.ts.map +1 -0
- package/auth/session/record/session.stateful.d.ts +1 -0
- package/auth/session/record/session.stateful.d.ts.map +1 -0
- package/auth/session/record/session.stateless.d.ts +1 -0
- package/auth/session/record/session.stateless.d.ts.map +1 -0
- package/auth/session/record/session.transparent.d.ts +1 -0
- package/auth/session/record/session.transparent.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +1 -0
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +1 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +1 -0
- package/auth/session/session-rate-limiter.d.ts.map +1 -0
- package/auth/session/session.crypto.d.ts +1 -0
- package/auth/session/session.crypto.d.ts.map +1 -0
- package/auth/session/session.schema.d.ts +1 -0
- package/auth/session/session.schema.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +1 -0
- package/auth/session/session.service.d.ts.map +1 -0
- package/auth/session/session.transport.d.ts +1 -0
- package/auth/session/session.transport.d.ts.map +1 -0
- package/auth/session/session.types.d.ts +1 -0
- package/auth/session/session.types.d.ts.map +1 -0
- package/auth/session/token.refresh.d.ts +1 -0
- package/auth/session/token.refresh.d.ts.map +1 -0
- package/auth/session/token.store.d.ts +3 -2
- package/auth/session/token.store.d.ts.map +1 -0
- package/auth/session/token.vault.d.ts +1 -0
- package/auth/session/token.vault.d.ts.map +1 -0
- package/auth/session/transport-session.manager.d.ts +1 -0
- package/auth/session/transport-session.manager.d.ts.map +1 -0
- package/auth/session/transport-session.types.d.ts +9 -8
- package/auth/session/transport-session.types.d.ts.map +1 -0
- package/auth/session/utils/auth-token.utils.d.ts +1 -0
- package/auth/session/utils/auth-token.utils.d.ts.map +1 -0
- package/auth/session/utils/session-id.utils.d.ts +1 -0
- package/auth/session/utils/session-id.utils.d.ts.map +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts.map +1 -0
- package/auth/session/vault-encryption.d.ts +1 -0
- package/auth/session/vault-encryption.d.ts.map +1 -0
- package/auth/session/vercel-kv-session.store.d.ts +1 -0
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -0
- package/auth/ui/base-layout.d.ts +1 -0
- package/auth/ui/base-layout.d.ts.map +1 -0
- package/auth/ui/index.d.ts +1 -0
- package/auth/ui/index.d.ts.map +1 -0
- package/auth/ui/templates.d.ts +1 -0
- package/auth/ui/templates.d.ts.map +1 -0
- package/auth/utils/audience.validator.d.ts +1 -0
- package/auth/utils/audience.validator.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -0
- package/auth/utils/index.d.ts.map +1 -0
- package/auth/utils/www-authenticate.utils.d.ts +1 -0
- package/auth/utils/www-authenticate.utils.d.ts.map +1 -0
- package/common/common.schema.d.ts +1 -0
- package/common/common.schema.d.ts.map +1 -0
- package/common/decorators/adapter.decorator.d.ts +1 -0
- package/common/decorators/adapter.decorator.d.ts.map +1 -0
- package/common/decorators/agent.decorator.d.ts +116 -0
- package/common/decorators/agent.decorator.d.ts.map +1 -0
- package/common/decorators/app.decorator.d.ts +1 -0
- package/common/decorators/app.decorator.d.ts.map +1 -0
- package/common/decorators/auth-provider.decorator.d.ts +1 -0
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -0
- package/common/decorators/decorator-utils.d.ts +1 -0
- package/common/decorators/decorator-utils.d.ts.map +1 -0
- package/common/decorators/flow.decorator.d.ts +1 -0
- package/common/decorators/flow.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -0
- package/common/decorators/hook.decorator.d.ts +1 -0
- package/common/decorators/hook.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -0
- package/common/decorators/logger.decorator.d.ts +1 -0
- package/common/decorators/logger.decorator.d.ts.map +1 -0
- package/common/decorators/plugin.decorator.d.ts +1 -0
- package/common/decorators/plugin.decorator.d.ts.map +1 -0
- package/common/decorators/prompt.decorator.d.ts +8 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -0
- package/common/decorators/provider.decorator.d.ts +1 -0
- package/common/decorators/provider.decorator.d.ts.map +1 -0
- package/common/decorators/resource.decorator.d.ts +1 -0
- package/common/decorators/resource.decorator.d.ts.map +1 -0
- package/common/decorators/tool.decorator.d.ts +1 -0
- package/common/decorators/tool.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +1 -0
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -0
- package/common/dynamic/dynamic.plugin.d.ts +3 -1
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -0
- package/common/dynamic/dynamic.utils.d.ts +1 -0
- package/common/dynamic/dynamic.utils.d.ts.map +1 -0
- package/common/dynamic/index.d.ts +1 -0
- package/common/dynamic/index.d.ts.map +1 -0
- package/common/entries/adapter.entry.d.ts +1 -0
- package/common/entries/adapter.entry.d.ts.map +1 -0
- package/common/entries/agent.entry.d.ts +143 -0
- package/common/entries/agent.entry.d.ts.map +1 -0
- package/common/entries/app.entry.d.ts +8 -0
- package/common/entries/app.entry.d.ts.map +1 -0
- package/common/entries/auth-provider.entry.d.ts +2 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -0
- package/common/entries/base.entry.d.ts +3 -2
- package/common/entries/base.entry.d.ts.map +1 -0
- package/common/entries/flow.entry.d.ts +3 -1
- package/common/entries/flow.entry.d.ts.map +1 -0
- package/common/entries/hook.entry.d.ts +7 -5
- package/common/entries/hook.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +2 -0
- package/common/entries/index.d.ts.map +1 -0
- package/common/entries/logger.entry.d.ts +1 -0
- package/common/entries/logger.entry.d.ts.map +1 -0
- package/common/entries/plugin.entry.d.ts +3 -1
- package/common/entries/plugin.entry.d.ts.map +1 -0
- package/common/entries/prompt.entry.d.ts +13 -0
- package/common/entries/prompt.entry.d.ts.map +1 -0
- package/common/entries/provider.entry.d.ts +5 -4
- package/common/entries/provider.entry.d.ts.map +1 -0
- package/common/entries/resource.entry.d.ts +7 -0
- package/common/entries/resource.entry.d.ts.map +1 -0
- package/common/entries/scope.entry.d.ts +3 -1
- package/common/entries/scope.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -0
- package/common/entries/tool.entry.d.ts.map +1 -0
- package/common/flow/flow.utils.d.ts +1 -0
- package/common/flow/flow.utils.d.ts.map +1 -0
- package/common/index.d.ts +1 -1
- package/common/index.d.ts.map +1 -0
- package/common/interfaces/adapter.interface.d.ts +2 -1
- package/common/interfaces/adapter.interface.d.ts.map +1 -0
- package/common/interfaces/agent.interface.d.ts +255 -0
- package/common/interfaces/agent.interface.d.ts.map +1 -0
- package/common/interfaces/app.interface.d.ts +5 -3
- package/common/interfaces/app.interface.d.ts.map +1 -0
- package/common/interfaces/auth-hook.interface.d.ts +1 -0
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -0
- package/common/interfaces/auth-provider.interface.d.ts +2 -1
- package/common/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/base.interface.d.ts +2 -77
- package/common/interfaces/base.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +2 -1
- package/common/interfaces/execution-context.interface.d.ts.map +1 -0
- package/common/interfaces/flow.interface.d.ts +2 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -0
- package/common/interfaces/front-mcp.interface.d.ts +1 -0
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -0
- package/common/interfaces/hook.interface.d.ts +2 -1
- package/common/interfaces/hook.interface.d.ts.map +1 -0
- package/common/interfaces/index.d.ts +4 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/interfaces/internal/flow.utils.d.ts +1 -0
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -0
- package/common/interfaces/internal/index.d.ts +1 -0
- package/common/interfaces/internal/index.d.ts.map +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/internal/registry.interface.d.ts +13 -3
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -0
- package/common/interfaces/llm-adapter.interface.d.ts +221 -0
- package/common/interfaces/llm-adapter.interface.d.ts.map +1 -0
- package/common/interfaces/logger.interface.d.ts +7 -6
- package/common/interfaces/logger.interface.d.ts.map +1 -0
- package/common/interfaces/plugin.interface.d.ts +2 -1
- package/common/interfaces/plugin.interface.d.ts.map +1 -0
- package/common/interfaces/prompt.interface.d.ts +10 -2
- package/common/interfaces/prompt.interface.d.ts.map +1 -0
- package/common/interfaces/provider.interface.d.ts +2 -1
- package/common/interfaces/provider.interface.d.ts.map +1 -0
- package/common/interfaces/resource.interface.d.ts +12 -2
- package/common/interfaces/resource.interface.d.ts.map +1 -0
- package/common/interfaces/scope.interface.d.ts +3 -2
- package/common/interfaces/scope.interface.d.ts.map +1 -0
- package/common/interfaces/server.interface.d.ts +1 -0
- package/common/interfaces/server.interface.d.ts.map +1 -0
- package/common/interfaces/session-hook.interface.d.ts +1 -0
- package/common/interfaces/session-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool-hook.interface.d.ts +1 -0
- package/common/interfaces/tool-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +52 -2
- package/common/interfaces/tool.interface.d.ts.map +1 -0
- package/common/metadata/adapter.metadata.d.ts +1 -0
- package/common/metadata/adapter.metadata.d.ts.map +1 -0
- package/common/metadata/agent.metadata.d.ts +398 -0
- package/common/metadata/agent.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +162 -16
- package/common/metadata/app.metadata.d.ts.map +1 -0
- package/common/metadata/auth-provider.metadata.d.ts +1 -0
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +5 -3
- package/common/metadata/flow.metadata.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +138 -46
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -0
- package/common/metadata/hook.metadata.d.ts +2 -1
- package/common/metadata/hook.metadata.d.ts.map +1 -0
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -0
- package/common/metadata/logger.metadata.d.ts +1 -0
- package/common/metadata/logger.metadata.d.ts.map +1 -0
- package/common/metadata/plugin.metadata.d.ts +74 -7
- package/common/metadata/plugin.metadata.d.ts.map +1 -0
- package/common/metadata/prompt.metadata.d.ts +1 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -0
- package/common/metadata/provider.metadata.d.ts +5 -30
- package/common/metadata/provider.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -0
- package/common/metadata/tool-ui.metadata.d.ts +1 -0
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +1 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -0
- package/common/migrate/auth-transport.migrate.d.ts +1 -0
- package/common/migrate/auth-transport.migrate.d.ts.map +1 -0
- package/common/migrate/index.d.ts +1 -0
- package/common/migrate/index.d.ts.map +1 -0
- package/common/providers/base-config.provider.d.ts +1 -0
- package/common/providers/base-config.provider.d.ts.map +1 -0
- package/common/records/adapter.record.d.ts +2 -1
- package/common/records/adapter.record.d.ts.map +1 -0
- package/common/records/agent.record.d.ts +89 -0
- package/common/records/agent.record.d.ts.map +1 -0
- package/common/records/app.record.d.ts +2 -1
- package/common/records/app.record.d.ts.map +1 -0
- package/common/records/auth-provider.record.d.ts +3 -1
- package/common/records/auth-provider.record.d.ts.map +1 -0
- package/common/records/flow.record.d.ts +1 -0
- package/common/records/flow.record.d.ts.map +1 -0
- package/common/records/hook.record.d.ts +1 -0
- package/common/records/hook.record.d.ts.map +1 -0
- package/common/records/index.d.ts +4 -0
- package/common/records/index.d.ts.map +1 -0
- package/common/records/logger.record.d.ts +4 -2
- package/common/records/logger.record.d.ts.map +1 -0
- package/common/records/plugin.record.d.ts +3 -1
- package/common/records/plugin.record.d.ts.map +1 -0
- package/common/records/prompt.record.d.ts +2 -1
- package/common/records/prompt.record.d.ts.map +1 -0
- package/common/records/provider.record.d.ts +2 -36
- package/common/records/provider.record.d.ts.map +1 -0
- package/common/records/resource.record.d.ts +2 -1
- package/common/records/resource.record.d.ts.map +1 -0
- package/common/records/scope.record.d.ts +2 -1
- package/common/records/scope.record.d.ts.map +1 -0
- package/common/records/tool.record.d.ts +3 -1
- package/common/records/tool.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +4 -1
- package/common/schemas/annotated-class.schema.d.ts.map +1 -0
- package/common/schemas/http-input.schema.d.ts +1 -0
- package/common/schemas/http-input.schema.d.ts.map +1 -0
- package/common/schemas/http-output.schema.d.ts +1 -0
- package/common/schemas/http-output.schema.d.ts.map +1 -0
- package/common/schemas/index.d.ts +1 -0
- package/common/schemas/index.d.ts.map +1 -0
- package/common/schemas/session-header.schema.d.ts +1 -0
- package/common/schemas/session-header.schema.d.ts.map +1 -0
- package/common/tokens/adapter.tokens.d.ts +1 -0
- package/common/tokens/adapter.tokens.d.ts.map +1 -0
- package/common/tokens/agent.tokens.d.ts +33 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -0
- package/common/tokens/app.tokens.d.ts +1 -0
- package/common/tokens/app.tokens.d.ts.map +1 -0
- package/common/tokens/auth-provider.tokens.d.ts +1 -0
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -0
- package/common/tokens/base.tokens.d.ts +6 -4
- package/common/tokens/base.tokens.d.ts.map +1 -0
- package/common/tokens/flow-hook.tokens.d.ts +1 -0
- package/common/tokens/flow-hook.tokens.d.ts.map +1 -0
- package/common/tokens/flow.tokens.d.ts +1 -0
- package/common/tokens/flow.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts +1 -0
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -0
- package/common/tokens/index.d.ts +2 -0
- package/common/tokens/index.d.ts.map +1 -0
- package/common/tokens/logger.tokens.d.ts +1 -0
- package/common/tokens/logger.tokens.d.ts.map +1 -0
- package/common/tokens/plugin.tokens.d.ts +3 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -0
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -0
- package/common/tokens/provider.tokens.d.ts +1 -0
- package/common/tokens/provider.tokens.d.ts.map +1 -0
- package/common/tokens/resource.tokens.d.ts +1 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -0
- package/common/tokens/server.tokens.d.ts +1 -0
- package/common/tokens/server.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -0
- package/common/types/auth/index.d.ts +1 -0
- package/common/types/auth/index.d.ts.map +1 -0
- package/common/types/auth/jwt.types.d.ts +1 -0
- package/common/types/auth/jwt.types.d.ts.map +1 -0
- package/common/types/auth/session.types.d.ts +1 -0
- package/common/types/auth/session.types.d.ts.map +1 -0
- package/common/types/common.types.d.ts +1 -0
- package/common/types/common.types.d.ts.map +1 -0
- package/common/types/index.d.ts +1 -0
- package/common/types/index.d.ts.map +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts.map +1 -0
- package/common/types/options/auth/auth.schema.d.ts +1 -0
- package/common/types/options/auth/auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts.map +1 -0
- package/common/types/options/auth/auth.utils.d.ts +1 -0
- package/common/types/options/auth/auth.utils.d.ts.map +1 -0
- package/common/types/options/auth/index.d.ts +1 -0
- package/common/types/options/auth/index.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -0
- package/common/types/options/auth/public.schema.d.ts +1 -0
- package/common/types/options/auth/public.schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +1 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -0
- package/common/types/options/auth/transparent.schema.d.ts +1 -0
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts.map +1 -0
- package/common/types/options/http.options.d.ts +1 -0
- package/common/types/options/http.options.d.ts.map +1 -0
- package/common/types/options/index.d.ts +1 -0
- package/common/types/options/index.d.ts.map +1 -0
- package/common/types/options/logging.options.d.ts +2 -5
- package/common/types/options/logging.options.d.ts.map +1 -0
- package/common/types/options/redis.options.d.ts +1 -0
- package/common/types/options/redis.options.d.ts.map +1 -0
- package/common/types/options/server-info.options.d.ts +1 -0
- package/common/types/options/server-info.options.d.ts.map +1 -0
- package/common/types/options/session.options.d.ts +1 -0
- package/common/types/options/session.options.d.ts.map +1 -0
- package/common/types/options/transport.options.d.ts +25 -0
- package/common/types/options/transport.options.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +1 -0
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -0
- package/common/utils/global-config.utils.d.ts +1 -0
- package/common/utils/global-config.utils.d.ts.map +1 -0
- package/common/utils/index.d.ts +1 -0
- package/common/utils/index.d.ts.map +1 -0
- package/common/utils/path.utils.d.ts +3 -4
- package/common/utils/path.utils.d.ts.map +1 -0
- package/completion/flows/complete.flow.d.ts +1 -0
- package/completion/flows/complete.flow.d.ts.map +1 -0
- package/context/context-extension.d.ts +52 -0
- package/context/context-extension.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -0
- package/context/frontmcp-context-storage.d.ts.map +1 -0
- package/context/frontmcp-context.d.ts +1 -0
- package/context/frontmcp-context.d.ts.map +1 -0
- package/context/frontmcp-context.provider.d.ts +3 -2
- package/context/frontmcp-context.provider.d.ts.map +1 -0
- package/context/index.d.ts +1 -0
- package/context/index.d.ts.map +1 -0
- package/context/request-context-storage.d.ts +1 -0
- package/context/request-context-storage.d.ts.map +1 -0
- package/context/request-context.d.ts +1 -0
- package/context/request-context.d.ts.map +1 -0
- package/context/request-context.provider.d.ts +1 -0
- package/context/request-context.provider.d.ts.map +1 -0
- package/context/session-key.provider.d.ts +1 -0
- package/context/session-key.provider.d.ts.map +1 -0
- package/context/trace-context.d.ts +1 -0
- package/context/trace-context.d.ts.map +1 -0
- package/errors/agent.errors.d.ts +80 -0
- package/errors/agent.errors.d.ts.map +1 -0
- package/errors/authorization-required.error.d.ts +1 -0
- package/errors/authorization-required.error.d.ts.map +1 -0
- package/errors/error-handler.d.ts +1 -0
- package/errors/error-handler.d.ts.map +1 -0
- package/errors/index.d.ts +4 -1
- package/errors/index.d.ts.map +1 -0
- package/errors/mcp.error.d.ts +31 -0
- package/errors/mcp.error.d.ts.map +1 -0
- package/errors/remote.errors.d.ts +156 -0
- package/errors/remote.errors.d.ts.map +1 -0
- package/esm/index.mjs +13968 -7053
- package/esm/package.json +12 -12
- package/flows/flow.instance.d.ts +1 -0
- package/flows/flow.instance.d.ts.map +1 -0
- package/flows/flow.registry.d.ts +3 -1
- package/flows/flow.registry.d.ts.map +1 -0
- package/flows/flow.stages.d.ts +1 -0
- package/flows/flow.stages.d.ts.map +1 -0
- package/flows/flow.utils.d.ts +3 -1
- package/flows/flow.utils.d.ts.map +1 -0
- package/front-mcp/front-mcp.d.ts +21 -1
- package/front-mcp/front-mcp.d.ts.map +1 -0
- package/front-mcp/front-mcp.providers.d.ts +42 -21
- package/front-mcp/front-mcp.providers.d.ts.map +1 -0
- package/front-mcp/front-mcp.tokens.d.ts +3 -1
- package/front-mcp/front-mcp.tokens.d.ts.map +1 -0
- package/front-mcp/index.d.ts +1 -0
- package/front-mcp/index.d.ts.map +1 -0
- package/front-mcp/serverless-handler.d.ts +1 -0
- package/front-mcp/serverless-handler.d.ts.map +1 -0
- package/hooks/hook.instance.d.ts +1 -0
- package/hooks/hook.instance.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +1 -0
- package/hooks/hook.registry.d.ts.map +1 -0
- package/hooks/hooks.utils.d.ts +3 -1
- package/hooks/hooks.utils.d.ts.map +1 -0
- package/index.d.ts +29 -20
- package/index.d.ts.map +1 -0
- package/index.js +14208 -7223
- package/logger/instances/instance.console-logger.d.ts +1 -0
- package/logger/instances/instance.console-logger.d.ts.map +1 -0
- package/logger/instances/instance.logger.d.ts +1 -0
- package/logger/instances/instance.logger.d.ts.map +1 -0
- package/logger/logger.registry.d.ts +1 -0
- package/logger/logger.registry.d.ts.map +1 -0
- package/logger/logger.tokens.d.ts +1 -0
- package/logger/logger.tokens.d.ts.map +1 -0
- package/logger/logger.types.d.ts +1 -0
- package/logger/logger.types.d.ts.map +1 -0
- package/logger/logger.utils.d.ts +3 -1
- package/logger/logger.utils.d.ts.map +1 -0
- package/logging/flows/set-level.flow.d.ts +1 -0
- package/logging/flows/set-level.flow.d.ts.map +1 -0
- package/notification/index.d.ts +1 -0
- package/notification/index.d.ts.map +1 -0
- package/notification/notification.service.d.ts +17 -4
- package/notification/notification.service.d.ts.map +1 -0
- package/package.json +12 -12
- package/plugin/plugin.registry.d.ts +25 -6
- package/plugin/plugin.registry.d.ts.map +1 -0
- package/plugin/plugin.utils.d.ts +3 -1
- package/plugin/plugin.utils.d.ts.map +1 -0
- package/prompt/flows/get-prompt.flow.d.ts +8 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -0
- package/prompt/flows/prompts-list.flow.d.ts +8 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -0
- package/prompt/index.d.ts +1 -0
- package/prompt/index.d.ts.map +1 -0
- package/prompt/prompt.events.d.ts +3 -2
- package/prompt/prompt.events.d.ts.map +1 -0
- package/prompt/prompt.instance.d.ts +7 -1
- package/prompt/prompt.instance.d.ts.map +1 -0
- package/prompt/prompt.registry.d.ts +32 -7
- package/prompt/prompt.registry.d.ts.map +1 -0
- package/prompt/prompt.types.d.ts +5 -4
- package/prompt/prompt.types.d.ts.map +1 -0
- package/prompt/prompt.utils.d.ts +3 -3
- package/prompt/prompt.utils.d.ts.map +1 -0
- package/provider/flow-context-providers.d.ts +24 -0
- package/provider/flow-context-providers.d.ts.map +1 -0
- package/provider/provider.registry.d.ts +26 -4
- package/provider/provider.registry.d.ts.map +1 -0
- package/provider/provider.types.d.ts +2 -1
- package/provider/provider.types.d.ts.map +1 -0
- package/provider/provider.utils.d.ts +21 -2
- package/provider/provider.utils.d.ts.map +1 -0
- package/regsitry/index.d.ts +1 -0
- package/regsitry/index.d.ts.map +1 -0
- package/regsitry/registry.base.d.ts +3 -1
- package/regsitry/registry.base.d.ts.map +1 -0
- package/remote-mcp/cache/capability-cache.d.ts +87 -0
- package/remote-mcp/cache/capability-cache.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +6 -0
- package/remote-mcp/cache/index.d.ts.map +1 -0
- package/remote-mcp/factories/context-factories.d.ts +43 -0
- package/remote-mcp/factories/context-factories.d.ts.map +1 -0
- package/remote-mcp/factories/index.d.ts +12 -0
- package/remote-mcp/factories/index.d.ts.map +1 -0
- package/remote-mcp/factories/instance-factories.d.ts +81 -0
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -0
- package/remote-mcp/factories/record-builders.d.ts +50 -0
- package/remote-mcp/factories/record-builders.d.ts.map +1 -0
- package/remote-mcp/index.d.ts +14 -0
- package/remote-mcp/index.d.ts.map +1 -0
- package/remote-mcp/mcp-client.service.d.ts +169 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -0
- package/remote-mcp/mcp-client.types.d.ts +298 -0
- package/remote-mcp/mcp-client.types.d.ts.map +1 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts +100 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -0
- package/remote-mcp/resilience/health-check.d.ts +107 -0
- package/remote-mcp/resilience/health-check.d.ts.map +1 -0
- package/remote-mcp/resilience/index.d.ts +8 -0
- package/remote-mcp/resilience/index.d.ts.map +1 -0
- package/remote-mcp/resilience/retry.d.ts +37 -0
- package/remote-mcp/resilience/retry.d.ts.map +1 -0
- package/resource/flows/read-resource.flow.d.ts +8 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -0
- package/resource/flows/resource-templates-list.flow.d.ts +8 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -0
- package/resource/flows/resources-list.flow.d.ts +8 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -0
- package/resource/index.d.ts +1 -0
- package/resource/index.d.ts.map +1 -0
- package/resource/resource.events.d.ts +3 -2
- package/resource/resource.events.d.ts.map +1 -0
- package/resource/resource.instance.d.ts +1 -0
- package/resource/resource.instance.d.ts.map +1 -0
- package/resource/resource.registry.d.ts +33 -8
- package/resource/resource.registry.d.ts.map +1 -0
- package/resource/resource.types.d.ts +5 -4
- package/resource/resource.types.d.ts.map +1 -0
- package/resource/resource.utils.d.ts +3 -5
- package/resource/resource.utils.d.ts.map +1 -0
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -0
- package/scope/index.d.ts +1 -0
- package/scope/index.d.ts.map +1 -0
- package/scope/scope.instance.d.ts +7 -0
- package/scope/scope.instance.d.ts.map +1 -0
- package/scope/scope.registry.d.ts +6 -0
- package/scope/scope.registry.d.ts.map +1 -0
- package/scope/scope.utils.d.ts +3 -1
- package/scope/scope.utils.d.ts.map +1 -0
- package/server/adapters/base.host.adapter.d.ts +1 -0
- package/server/adapters/base.host.adapter.d.ts.map +1 -0
- package/server/adapters/express.host.adapter.d.ts +1 -0
- package/server/adapters/express.host.adapter.d.ts.map +1 -0
- package/server/server.instance.d.ts +1 -0
- package/server/server.instance.d.ts.map +1 -0
- package/server/server.types.d.ts +1 -0
- package/server/server.types.d.ts.map +1 -0
- package/server/server.validation.d.ts +1 -0
- package/server/server.validation.d.ts.map +1 -0
- package/store/adapters/store.base.adapter.d.ts +1 -0
- package/store/adapters/store.base.adapter.d.ts.map +1 -0
- package/store/adapters/store.memory.adapter.d.ts +1 -0
- package/store/adapters/store.memory.adapter.d.ts.map +1 -0
- package/store/adapters/store.redis.adapter.d.ts +1 -0
- package/store/adapters/store.redis.adapter.d.ts.map +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +1 -0
- package/store/index.d.ts +1 -0
- package/store/index.d.ts.map +1 -0
- package/store/store.factory.d.ts +1 -0
- package/store/store.factory.d.ts.map +1 -0
- package/store/store.helpers.d.ts +1 -0
- package/store/store.helpers.d.ts.map +1 -0
- package/store/store.registry.d.ts +1 -0
- package/store/store.registry.d.ts.map +1 -0
- package/store/store.tokens.d.ts +1 -0
- package/store/store.tokens.d.ts.map +1 -0
- package/store/store.types.d.ts +1 -0
- package/store/store.types.d.ts.map +1 -0
- package/store/store.utils.d.ts +1 -0
- package/store/store.utils.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +9 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -0
- package/tool/flows/tools-list.flow.d.ts +8 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -0
- package/tool/tool.events.d.ts +3 -2
- package/tool/tool.events.d.ts.map +1 -0
- package/tool/tool.instance.d.ts +18 -1
- package/tool/tool.instance.d.ts.map +1 -0
- package/tool/tool.registry.d.ts +57 -5
- package/tool/tool.registry.d.ts.map +1 -0
- package/tool/tool.types.d.ts +5 -4
- package/tool/tool.types.d.ts.map +1 -0
- package/tool/tool.utils.d.ts +20 -3
- package/tool/tool.utils.d.ts.map +1 -0
- package/tool/ui/index.d.ts +1 -0
- package/tool/ui/index.d.ts.map +1 -0
- package/tool/ui/platform-adapters.d.ts +1 -0
- package/tool/ui/platform-adapters.d.ts.map +1 -0
- package/tool/ui/template-helpers.d.ts +1 -0
- package/tool/ui/template-helpers.d.ts.map +1 -0
- package/tool/ui/ui-resource-template.d.ts +1 -0
- package/tool/ui/ui-resource-template.d.ts.map +1 -0
- package/tool/ui/ui-resource.handler.d.ts +1 -0
- package/tool/ui/ui-resource.handler.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +27 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +12 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -0
- package/transport/index.d.ts +1 -0
- package/transport/index.d.ts.map +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/index.d.ts +2 -1
- package/transport/mcp-handlers/index.d.ts.map +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -0
- package/transport/transport.error.d.ts +1 -0
- package/transport/transport.error.d.ts.map +1 -0
- package/transport/transport.event-store.d.ts +1 -0
- package/transport/transport.event-store.d.ts.map +1 -0
- package/transport/transport.local.d.ts +1 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +1 -0
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +1 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +2 -1
- package/transport/transport.types.d.ts.map +1 -0
- package/types/drinen-hooks.types.d.ts +1 -0
- package/types/drinen-hooks.types.d.ts.map +1 -0
- package/types/invoke.type.d.ts +1 -0
- package/types/invoke.type.d.ts.map +1 -0
- package/types/token.types.d.ts +1 -0
- package/types/token.types.d.ts.map +1 -0
- package/{utils/types.utils.d.ts → types/zod.types.d.ts} +1 -0
- package/types/zod.types.d.ts.map +1 -0
- package/utils/content.utils.d.ts +1 -19
- package/utils/content.utils.d.ts.map +1 -0
- package/utils/index.d.ts +3 -7
- package/utils/index.d.ts.map +1 -0
- package/utils/lineage.utils.d.ts +1 -0
- package/utils/lineage.utils.d.ts.map +1 -0
- package/utils/naming.utils.d.ts +2 -34
- package/utils/naming.utils.d.ts.map +1 -0
- package/common/constants.d.ts +0 -5
- package/esm/mcp-apps/index.mjs +0 -723
- package/exceptions/mcp-exceptions/session-missing.exception.d.ts +0 -3
- package/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +0 -5
- package/mcp-apps/csp.d.ts +0 -111
- package/mcp-apps/index.d.ts +0 -23
- package/mcp-apps/index.js +0 -799
- package/mcp-apps/schemas.d.ts +0 -403
- package/mcp-apps/template.d.ts +0 -94
- package/mcp-apps/types.d.ts +0 -323
- package/utils/metadata.utils.d.ts +0 -5
- package/utils/server.utils.d.ts +0 -19
- package/utils/string.utils.d.ts +0 -1
- package/utils/token.utils.d.ts +0 -11
- package/utils/uri-template.utils.d.ts +0 -57
- package/utils/uri-validation.utils.d.ts +0 -40
|
@@ -1,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-context.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/execution-context.interface.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAoB,MAAM,eAAe,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,yBAAyB,CAAC;IACrC,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,8BAAsB,oBAAoB,CAAC,GAAG,GAAG,OAAO;IACtD,OAAO,CAAC,SAAS,CAA4B;IAE7C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,+CAA+C;IAC/C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAE1C,gDAAgD;IAChD,SAAS,CAAC,WAAW,SAAU;IAE/B,gCAAgC;IAChC,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,IAAI,EAAE,wBAAwB;IAQ1C;;;;;;;OAOG;IACH,IAAI,OAAO,IAAI,eAAe,CAO7B;IAED;;;;OAIG;IACH,aAAa,IAAI,eAAe,GAAG,SAAS;IAQ5C;;;;OAIG;IACH,IAAI,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,CAEhC;IAED;;;;;;;;OAQG;IACH,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC;IAQhC;;;;OAIG;IACH,SAAS,KAAK,aAAa,IAAI,cAAc,CAO5C;IAED;;;OAGG;IACH,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;IAI1B;;OAEG;IACH,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED;;OAEG;IACH,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS;IAUzC;;OAEG;IACH,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,KAAK;IAKjC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIzB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQtE;;OAEG;IACH,SAAS,KAAK,KAAK,IAAI,KAAK,GAAG,SAAS,CAEvC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Token, Type } from '
|
|
1
|
+
import { Token, Type } from '@frontmcp/di';
|
|
2
2
|
import { FlowMetadata, FlowName } from '../metadata';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { HookEntry, ScopeEntry } from '../entries';
|
|
@@ -52,3 +52,4 @@ export declare abstract class FlowBase<N extends FlowName = FlowName> {
|
|
|
52
52
|
protected tryGetContext(): FrontMcpContext | undefined;
|
|
53
53
|
}
|
|
54
54
|
export type FlowType<Provide = FlowBase<any>> = Type<Provide>;
|
|
55
|
+
//# sourceMappingURL=flow.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/flow.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAa,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGtE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/E,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAClE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AACvE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,C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AE,UAAU,EACjB,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,EAChD,IAAI,GAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAa;IAMlE,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;IAK1B,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAI/B,IAAI,CAAC,KAAK,EAAE,KAAK;IAIjB,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM;IAI/B,SAAS,CAAC,IAAI;IAId,SAAS,CAAC,OAAO;IAIjB;;;;;OAKG;IACH,SAAS,KAAK,OAAO,IAAI,eAAe,CAGvC;IAED;;;OAGG;IACH,SAAS,CAAC,aAAa,IAAI,eAAe,GAAG,SAAS;CAQvD;AAED,MAAM,MAAM,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"front-mcp.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/front-mcp.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAE/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/hook.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,MAAM,QAAQ,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAExE,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { Type, FuncType, PartialStagesType, CtorType, Ctor, Abstract, Reference, Token, ClassType, ValueType, ClassToken, FactoryType, RequiredByKey, } from '@frontmcp/di';
|
|
1
2
|
export * from './base.interface';
|
|
2
3
|
export * from './execution-context.interface';
|
|
3
4
|
export * from './front-mcp.interface';
|
|
@@ -14,4 +15,7 @@ export * from './tool.interface';
|
|
|
14
15
|
export * from './resource.interface';
|
|
15
16
|
export * from './prompt.interface';
|
|
16
17
|
export * from './logger.interface';
|
|
18
|
+
export * from './llm-adapter.interface';
|
|
19
|
+
export * from './agent.interface';
|
|
17
20
|
export * from './internal';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/index.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;AAEtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,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GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAClE,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,CAAC;AAEF,qBAAa,SAAS;IACpB,OAAO;IAIP,MAAM,CAAC,MAAM,CAAC,IAAI,SAAS,QAAQ,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC;CA2EnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/interfaces/internal/index.ts"],"names":[],"mappings":"AACA,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary-auth-provider.interface.d.ts","sourceRoot":"","sources":["../../../../src/common/interfaces/internal/primary-auth-provider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,WAAW,EACX,eAAe,EAMhB,MAAM,aAAa,CAAC;AAgBrB;;;;;;;;;;;GAWG;AACH,8BAAsB,YAAY,CAAC,OAAO,SAAS,WAAW,GAAG,WAAW;IAC1E,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,OAAO;IAK5B;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAoBhB,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAE/E,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAExD,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC;IAE9B;;;;OAIG;IACH,IAAI,SAAS,IAAI,eAAe,CAE/B;CACF;AAED,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { ScopeEntry, FlowEntry, AuthProviderEntry, AppEntry, ProviderEntry, PluginEntry, AdapterEntry, PromptEntry, ResourceEntry, ToolEntry, LoggerEntry, AgentEntry, EntryOwnerRef, HookEntry } from '../../entries';
|
|
3
3
|
import { FrontMcpAuth } from './primary-auth-provider.interface';
|
|
4
4
|
import { FlowName } from '../../metadata';
|
|
5
5
|
import { FlowCtxOf, FlowInputOf, FlowStagesOf } from '../flow.interface';
|
|
@@ -97,9 +97,17 @@ export interface PromptRegistryInterface {
|
|
|
97
97
|
export interface LoggerRegistryInterface {
|
|
98
98
|
getLoggers(): LoggerEntry[];
|
|
99
99
|
}
|
|
100
|
+
export interface AgentRegistryInterface {
|
|
101
|
+
owner: EntryOwnerRef;
|
|
102
|
+
getAgents(includeHidden?: boolean): AgentEntry[];
|
|
103
|
+
getInlineAgents(): AgentEntry[];
|
|
104
|
+
findById(id: string): AgentEntry | undefined;
|
|
105
|
+
findByName(name: string): AgentEntry | undefined;
|
|
106
|
+
getVisibleAgentsFor(agentId: string): AgentEntry[];
|
|
107
|
+
}
|
|
100
108
|
export type GlobalRegistryKind = 'LoggerRegistry' | 'ScopeRegistry';
|
|
101
109
|
export type ScopedRegistryKind = 'AppRegistry' | 'AuthRegistry' | 'FlowRegistry' | 'HookRegistry';
|
|
102
|
-
export type AppRegistryKind = 'ProviderRegistry' | 'PluginRegistry' | 'AdapterRegistry' | 'ToolRegistry' | 'PromptRegistry' | 'ResourceRegistry';
|
|
110
|
+
export type AppRegistryKind = 'ProviderRegistry' | 'PluginRegistry' | 'AdapterRegistry' | 'ToolRegistry' | 'PromptRegistry' | 'ResourceRegistry' | 'AgentRegistry';
|
|
103
111
|
export type RegistryKind = GlobalRegistryKind | ScopedRegistryKind | AppRegistryKind;
|
|
104
112
|
export type RegistryType = {
|
|
105
113
|
LoggerRegistry: LoggerRegistryInterface;
|
|
@@ -114,4 +122,6 @@ export type RegistryType = {
|
|
|
114
122
|
ToolRegistry: ToolRegistryInterface;
|
|
115
123
|
ResourceRegistry: ResourceRegistryInterface;
|
|
116
124
|
PromptRegistry: PromptRegistryInterface;
|
|
125
|
+
AgentRegistry: AgentRegistryInterface;
|
|
117
126
|
};
|
|
127
|
+
//# sourceMappingURL=registry.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.interface.d.ts","sourceRoot":"","sources":["../../../../src/common/interfaces/internal/registry.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EACL,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,aAAa,EACb,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EA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EpE,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,GAAG,cAAc,CAAC;AAElG,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,CAAC;AAEpB,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,eAAe,CAAC;AAErF,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,uBAAuB,CAAC;IACxC,aAAa,EAAE,sBAAsB,CAAC;IACtC,YAAY,EAAE,qBAAqB,CAAC;IACpC,YAAY,EAAE,qBAAqB,CAAC;IACpC,WAAW,EAAE,oBAAoB,CAAC;IAClC,YAAY,EAAE,qBAAqB,CAAC;IACpC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,cAAc,EAAE,uBAAuB,CAAC;IACxC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,YAAY,EAAE,qBAAqB,CAAC;IACpC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,cAAc,EAAE,uBAAuB,CAAC;IACxC,aAAa,EAAE,sBAAsB,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Injection token for the LLM adapter.
|
|
3
|
+
* Use this to inject a custom LLM adapter via the provider system.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* @Agent({
|
|
8
|
+
* name: 'my-agent',
|
|
9
|
+
* llm: LLM_ADAPTER, // Use injected adapter
|
|
10
|
+
* providers: [
|
|
11
|
+
* { provide: LLM_ADAPTER, useFactory: () => new OpenAIAdapter(...) },
|
|
12
|
+
* ],
|
|
13
|
+
* })
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const LLM_ADAPTER: symbol & {
|
|
17
|
+
__type: AgentLlmAdapter;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Represents a message in the agent conversation.
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentMessage {
|
|
23
|
+
/**
|
|
24
|
+
* Role of the message sender.
|
|
25
|
+
*/
|
|
26
|
+
role: 'user' | 'assistant' | 'tool' | 'system';
|
|
27
|
+
/**
|
|
28
|
+
* Text content of the message (null if only tool calls).
|
|
29
|
+
*/
|
|
30
|
+
content: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Tool calls made by the assistant (only for assistant messages).
|
|
33
|
+
*/
|
|
34
|
+
toolCalls?: AgentToolCall[];
|
|
35
|
+
/**
|
|
36
|
+
* ID of the tool call this message is responding to (only for tool messages).
|
|
37
|
+
*/
|
|
38
|
+
toolCallId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Name of the tool (only for tool messages).
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents a tool call made by the LLM.
|
|
46
|
+
*/
|
|
47
|
+
export interface AgentToolCall {
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier for this tool call.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Name of the tool to call.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Arguments to pass to the tool.
|
|
58
|
+
*/
|
|
59
|
+
arguments: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Represents a tool definition for the LLM.
|
|
63
|
+
*/
|
|
64
|
+
export interface AgentToolDefinition {
|
|
65
|
+
/**
|
|
66
|
+
* Name of the tool.
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* Description of what the tool does.
|
|
71
|
+
*/
|
|
72
|
+
description?: string;
|
|
73
|
+
/**
|
|
74
|
+
* JSON Schema describing the tool's parameters.
|
|
75
|
+
*/
|
|
76
|
+
parameters: Record<string, unknown>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether this tool requires user confirmation before execution.
|
|
79
|
+
*/
|
|
80
|
+
requiresConfirmation?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Prompt to send to the LLM.
|
|
84
|
+
*/
|
|
85
|
+
export interface AgentPrompt {
|
|
86
|
+
/**
|
|
87
|
+
* System instructions for the LLM.
|
|
88
|
+
*/
|
|
89
|
+
system?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Conversation history.
|
|
92
|
+
*/
|
|
93
|
+
messages: AgentMessage[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Options for LLM completion requests.
|
|
97
|
+
*/
|
|
98
|
+
export interface AgentCompletionOptions {
|
|
99
|
+
/**
|
|
100
|
+
* Temperature for generation (0-2).
|
|
101
|
+
* Lower values make output more deterministic.
|
|
102
|
+
*/
|
|
103
|
+
temperature?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Maximum tokens to generate.
|
|
106
|
+
*/
|
|
107
|
+
maxTokens?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Stop sequences to end generation.
|
|
110
|
+
*/
|
|
111
|
+
stopSequences?: string[];
|
|
112
|
+
/**
|
|
113
|
+
* Whether to force a tool call.
|
|
114
|
+
*/
|
|
115
|
+
toolChoice?: 'auto' | 'required' | 'none' | {
|
|
116
|
+
name: string;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Additional provider-specific options.
|
|
120
|
+
*/
|
|
121
|
+
[key: string]: unknown;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Result from an LLM completion request.
|
|
125
|
+
*/
|
|
126
|
+
export interface AgentCompletion {
|
|
127
|
+
/**
|
|
128
|
+
* Text content of the response (null if only tool calls).
|
|
129
|
+
*/
|
|
130
|
+
content: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* Tool calls requested by the LLM.
|
|
133
|
+
*/
|
|
134
|
+
toolCalls?: AgentToolCall[];
|
|
135
|
+
/**
|
|
136
|
+
* Reason the generation stopped.
|
|
137
|
+
*/
|
|
138
|
+
finishReason: 'stop' | 'tool_calls' | 'length' | 'content_filter';
|
|
139
|
+
/**
|
|
140
|
+
* Token usage statistics.
|
|
141
|
+
*/
|
|
142
|
+
usage?: {
|
|
143
|
+
promptTokens: number;
|
|
144
|
+
completionTokens: number;
|
|
145
|
+
totalTokens?: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Raw response from the LLM provider (for debugging/advanced use).
|
|
149
|
+
*/
|
|
150
|
+
raw?: unknown;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Chunk from a streaming LLM completion.
|
|
154
|
+
*/
|
|
155
|
+
export interface AgentCompletionChunk {
|
|
156
|
+
/**
|
|
157
|
+
* Type of chunk.
|
|
158
|
+
*/
|
|
159
|
+
type: 'content' | 'tool_call' | 'done';
|
|
160
|
+
/**
|
|
161
|
+
* Partial content (for 'content' type).
|
|
162
|
+
*/
|
|
163
|
+
content?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Partial tool call (for 'tool_call' type).
|
|
166
|
+
*/
|
|
167
|
+
toolCall?: Partial<AgentToolCall> & {
|
|
168
|
+
id: string;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Full completion (for 'done' type).
|
|
172
|
+
*/
|
|
173
|
+
completion?: AgentCompletion;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Abstract adapter interface for LLM integration.
|
|
177
|
+
*
|
|
178
|
+
* Implement this interface to connect agents to different LLM providers
|
|
179
|
+
* like OpenAI, Anthropic, LangChain, or custom solutions.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```typescript
|
|
183
|
+
* class MyAdapter implements AgentLlmAdapter {
|
|
184
|
+
* async completion(prompt, tools, options) {
|
|
185
|
+
* // Call your LLM provider
|
|
186
|
+
* return { content: 'Hello!', finishReason: 'stop' };
|
|
187
|
+
* }
|
|
188
|
+
*
|
|
189
|
+
* async *streamCompletion(prompt, tools, options) {
|
|
190
|
+
* yield { type: 'content', content: 'Hello' };
|
|
191
|
+
* yield { type: 'content', content: '!' };
|
|
192
|
+
* yield { type: 'done', completion: { content: 'Hello!', finishReason: 'stop' } };
|
|
193
|
+
* }
|
|
194
|
+
* }
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
export interface AgentLlmAdapter {
|
|
198
|
+
/**
|
|
199
|
+
* Generate a completion from the LLM.
|
|
200
|
+
*
|
|
201
|
+
* @param prompt - The prompt to send (system + messages)
|
|
202
|
+
* @param tools - Available tools the LLM can call
|
|
203
|
+
* @param options - Completion options (temperature, maxTokens, etc.)
|
|
204
|
+
* @returns The LLM's response
|
|
205
|
+
*/
|
|
206
|
+
completion(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): Promise<AgentCompletion>;
|
|
207
|
+
/**
|
|
208
|
+
* Stream a completion from the LLM.
|
|
209
|
+
*
|
|
210
|
+
* @param prompt - The prompt to send (system + messages)
|
|
211
|
+
* @param tools - Available tools the LLM can call
|
|
212
|
+
* @param options - Completion options (temperature, maxTokens, etc.)
|
|
213
|
+
* @returns AsyncGenerator yielding completion chunks
|
|
214
|
+
*/
|
|
215
|
+
streamCompletion?(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): AsyncGenerator<AgentCompletionChunk>;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Type guard to check if an adapter supports streaming.
|
|
219
|
+
*/
|
|
220
|
+
export declare function supportsStreaming(adapter: AgentLlmAdapter): adapter is AgentLlmAdapter & Required<Pick<AgentLlmAdapter, 'streamCompletion'>>;
|
|
221
|
+
//# sourceMappingURL=llm-adapter.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-adapter.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/llm-adapter.interface.ts"],"names":[],"mappings":"A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,EAAE,mBAAmB,EAAE,EAC7B,OAAO,CAAC,EAAE,sBAAsB,GAC/B,cAAc,CAAC,oBAAoB,CAAC,CAAC;CACzC;AAMD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,eAAe,GACvB,OAAO,IAAI,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAElF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type } from '
|
|
1
|
+
import { Type } from '@frontmcp/di';
|
|
2
2
|
import { LogLevel } from '../types';
|
|
3
3
|
export interface LogRecord {
|
|
4
4
|
level: LogLevel;
|
|
@@ -19,24 +19,25 @@ export declare abstract class FrontMcpLogger {
|
|
|
19
19
|
* Verbose — extremely granular, high-volume logs useful when diagnosing tricky bugs
|
|
20
20
|
* (function entry/exit, detailed branches, low-level I/O). Disable in most environments.
|
|
21
21
|
*/
|
|
22
|
-
abstract get verbose(): (
|
|
22
|
+
abstract get verbose(): (...args: any[]) => void;
|
|
23
23
|
/**
|
|
24
24
|
* Debug — development-focused diagnostics (state changes, computed values, API request params),
|
|
25
25
|
* still fairly verbose but less noisy than TRACE. Typically disabled in production.
|
|
26
26
|
*/
|
|
27
|
-
abstract get debug(): (
|
|
27
|
+
abstract get debug(): (...args: any[]) => void;
|
|
28
28
|
/**
|
|
29
29
|
* Info — key milestones in normal operation (server start, feature toggles, user actions,
|
|
30
30
|
* successful requests). Safe to keep enabled in production.
|
|
31
31
|
*/
|
|
32
|
-
abstract get info(): (
|
|
32
|
+
abstract get info(): (...args: any[]) => void;
|
|
33
33
|
/**
|
|
34
34
|
* Warn — unexpected or suboptimal situations that the system handled and continued
|
|
35
35
|
* (fallbacks, retries, partial failures). Worth investigating but not service-breaking.
|
|
36
36
|
*/
|
|
37
|
-
abstract get warn(): (
|
|
37
|
+
abstract get warn(): (...args: any[]) => void;
|
|
38
38
|
/**
|
|
39
39
|
* Error — failures where an operation could not complete or data is invalid,
|
|
40
40
|
*/
|
|
41
|
-
abstract get error(): (
|
|
41
|
+
abstract get error(): (...args: any[]) => void;
|
|
42
42
|
}
|
|
43
|
+
//# sourceMappingURL=logger.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/logger.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAExD,8BAAsB,qBAAqB;IACzC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;CACnC;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAEhD,8BAAsB,cAAc;IAClC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;IAE9C;;;OAGG;IACH,QAAQ,KAAK,OAAO,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAEjD;;;OAGG;IACH,QAAQ,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAE/C;;;OAGG;IACH,QAAQ,KAAK,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,QAAQ,KAAK,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,QAAQ,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAChD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, Token, ValueType, ClassType, FactoryType } from '
|
|
1
|
+
import { Type, Token, ValueType, ClassType, FactoryType } from '@frontmcp/di';
|
|
2
2
|
import { PluginMetadata } from '../metadata';
|
|
3
3
|
export interface PluginInterface {
|
|
4
4
|
}
|
|
@@ -6,3 +6,4 @@ export type PluginClassType<Provide> = ClassType<Provide> & PluginMetadata;
|
|
|
6
6
|
export type PluginValueType<Provide> = ValueType<Provide> & PluginMetadata;
|
|
7
7
|
export type PluginFactoryType<Provide, Tokens extends readonly Token[]> = FactoryType<Provide, Tokens> & PluginMetadata;
|
|
8
8
|
export type PluginType<Provide extends PluginInterface = PluginInterface> = Type<Provide> | PluginClassType<Provide> | PluginValueType<Provide> | PluginFactoryType<Provide, readonly any[]>;
|
|
9
|
+
//# sourceMappingURL=plugin.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/plugin.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,eAAe;CAAG;AAEnC,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC;AAC3E,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC;AAC3E,MAAM,MAAM,iBAAiB,CAAC,OAAO,EAAE,MAAM,SAAS,SAAS,KAAK,EAAE,IAAI,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,cAAc,CAAC;AAExH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IACpE,IAAI,CAAC,OAAO,CAAC,GACb,eAAe,CAAC,OAAO,CAAC,GACxB,eAAe,CAAC,OAAO,CAAC,GACxB,iBAAiB,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { FuncType, Token, Type } from '@frontmcp/di';
|
|
1
2
|
import { PromptMetadata } from '../metadata';
|
|
2
|
-
import { FuncType, Token, Type } from './base.interface';
|
|
3
3
|
import { ProviderRegistryInterface } from './internal';
|
|
4
4
|
import { FrontMcpLogger } from './logger.interface';
|
|
5
5
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
@@ -8,7 +8,14 @@ import { GetPromptResult } from '@modelcontextprotocol/sdk/types.js';
|
|
|
8
8
|
export interface PromptInterface {
|
|
9
9
|
execute(args: Record<string, string>): Promise<GetPromptResult>;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Functional prompt pattern - returned by prompt() builder.
|
|
13
|
+
* A callable that returns an execute handler, with metadata attached.
|
|
14
|
+
*/
|
|
15
|
+
export type FunctionalPromptType = (() => any) & {
|
|
16
|
+
[key: symbol]: unknown;
|
|
17
|
+
};
|
|
18
|
+
export type PromptType = Type<PromptInterface> | FuncType<PromptInterface> | FunctionalPromptType;
|
|
12
19
|
type HistoryEntry<T> = {
|
|
13
20
|
at: number;
|
|
14
21
|
stage?: string;
|
|
@@ -52,3 +59,4 @@ export declare abstract class PromptContext {
|
|
|
52
59
|
mark(stage: string): void;
|
|
53
60
|
}
|
|
54
61
|
export {};
|
|
62
|
+
//# sourceMappingURL=prompt.interface.d.ts.map
|
|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,KAAK;IAMtC,4DAA4D;IAC5D,IAAW,KAAK,IAAI,KAAK,GAAG,SAAS,CAEpC;IAED,sDAAsD;IACtD,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,KAAK;IAKjC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAG1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, Token, ValueType, ClassType, FactoryType, ClassToken } from '
|
|
1
|
+
import { Type, Token, ValueType, ClassType, FactoryType, ClassToken } from '@frontmcp/di';
|
|
2
2
|
import { ProviderMetadata } from '../metadata';
|
|
3
3
|
export interface ProviderInterface {
|
|
4
4
|
}
|
|
@@ -18,3 +18,4 @@ export type ProviderType<Provide extends ProviderInterface = any, Tokens extends
|
|
|
18
18
|
* });
|
|
19
19
|
*/
|
|
20
20
|
export declare function AsyncProvider<Provide, const Tokens extends readonly (ClassToken | Token)[]>(cfg: ProviderFactoryType<Provide, Tokens>): ProviderFactoryType<Provide, Tokens>;
|
|
21
|
+
//# sourceMappingURL=provider.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/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,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,iBAAiB;CAAG;AAErC,MAAM,MAAM,iBAAiB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC;AAC/E,MAAM,MAAM,iBAAiB,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC;AAC/E,MAAM,MAAM,mBAAmB,CAAC,OAAO,EAAE,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,IAAI,WAAW,CACpG,OAAO,EACP,MAAM,CACP,GACC,gBAAgB,CAAC;AAEnB,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,iBAAiB,GAAG,GAAG,EACvC,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,IAC9E,IAAI,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAEnH;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,EACzF,GAAG,EAAE,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,GACxC,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,CAEtC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Type } from '@frontmcp/di';
|
|
1
2
|
import { ResourceMetadata, ResourceTemplateMetadata } from '../metadata';
|
|
2
|
-
import { FuncType, Type } from './base.interface';
|
|
3
3
|
import { ExecutionContextBase, ExecutionContextBaseArgs } from './execution-context.interface';
|
|
4
4
|
/**
|
|
5
5
|
* Base interface for resource implementations.
|
|
@@ -9,12 +9,21 @@ import { ExecutionContextBase, ExecutionContextBaseArgs } from './execution-cont
|
|
|
9
9
|
export interface ResourceInterface<Params extends Record<string, string> = Record<string, string>, Out = unknown> {
|
|
10
10
|
execute(uri: string, params: Params): Promise<Out>;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Function-style resource type.
|
|
14
|
+
* This represents resources created via resource() or resourceTemplate() builders.
|
|
15
|
+
* The function returns a handler that will be invoked for the resource.
|
|
16
|
+
*/
|
|
17
|
+
export type FunctionResourceType = (...args: any[]) => any;
|
|
12
18
|
/**
|
|
13
19
|
* Type for resource class or function.
|
|
20
|
+
* Supports both class-based resources (implementing ResourceInterface)
|
|
21
|
+
* and function-style resources (created via resource/resourceTemplate builders).
|
|
22
|
+
*
|
|
14
23
|
* @template Params - Type for URI template parameters
|
|
15
24
|
* @template Out - Type for the resource output
|
|
16
25
|
*/
|
|
17
|
-
export type ResourceType<Params extends Record<string, string> = Record<string, string>, Out = unknown> = Type<ResourceInterface<Params, Out>> |
|
|
26
|
+
export type ResourceType<Params extends Record<string, string> = Record<string, string>, Out = unknown> = Type<ResourceInterface<Params, Out>> | FunctionResourceType;
|
|
18
27
|
type HistoryEntry<T> = {
|
|
19
28
|
at: number;
|
|
20
29
|
stage?: string;
|
|
@@ -49,3 +58,4 @@ export declare abstract class ResourceContext<Params extends Record<string, stri
|
|
|
49
58
|
respond(value: Out): never;
|
|
50
59
|
}
|
|
51
60
|
export {};
|
|
61
|
+
//# sourceMappingURL=resource.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/resource.interface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,iBAAiB,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO;IAC9G,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACpD;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,GAA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GxB,OAAO,CAAC,OAAO,CAAC,CAAM;IAGtB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;gBAE9C,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAgB1C,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAE3D,IAAW,MAAM,IAAI,GAAG,GAAG,SAAS,CAEnC;IAED,IAAW,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,SAAS,EAGnC;IAED,IAAW,aAAa,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAE3D;IAED,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK;CAK3B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Type } from '
|
|
1
|
+
import { Type } from '@frontmcp/di';
|
|
2
2
|
export interface ScopeInterface {
|
|
3
3
|
}
|
|
4
4
|
export type ScopeType = Type<ScopeInterface>;
|
|
5
|
-
export { ScopeInterface as FrontMcpScopeInterface, ScopeType as FrontMcpScopeType
|
|
5
|
+
export { ScopeInterface as FrontMcpScopeInterface, ScopeType as FrontMcpScopeType };
|
|
6
|
+
//# sourceMappingURL=scope.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.interface.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/scope.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;AAE7C,OAAO,EAAE,cAAc,IAAI,sBAAsB,EAAE,SAAS,IAAI,iBAAiB,EAAE,CAAC"}
|