@frontmcp/sdk 0.7.2 → 0.8.0
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/agent/adapters/adapter.factory.d.ts +27 -18
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +5 -0
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +54 -72
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +1 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts +3 -0
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +3 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/authorization/authorization.types.d.ts +7 -180
- package/auth/authorization/authorization.types.d.ts.map +1 -1
- package/auth/authorization/index.d.ts +2 -0
- package/auth/authorization/index.d.ts.map +1 -1
- package/auth/authorization/orchestrated.accessor.d.ts +161 -0
- package/auth/authorization/orchestrated.accessor.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +19 -4
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -1
- package/auth/authorization/orchestrated.context-extension.d.ts +108 -0
- package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -0
- package/auth/cimd/index.d.ts +14 -0
- package/auth/cimd/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +30 -3
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +11 -3
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +118 -0
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/session.verify.flow.d.ts +8 -0
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +3 -3
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +3 -2
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +88 -1
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/machine-id.d.ts +14 -0
- package/auth/machine-id.d.ts.map +1 -1
- package/auth/session/encrypted-authorization-vault.d.ts +2 -3
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -1
- package/auth/session/federated-auth.session.d.ts +252 -0
- package/auth/session/federated-auth.session.d.ts.map +1 -0
- package/auth/session/index.d.ts +6 -2
- package/auth/session/index.d.ts.map +1 -1
- package/auth/session/orchestrated-token.store.d.ts +155 -0
- package/auth/session/orchestrated-token.store.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +7 -7
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/record/session.mcp.d.ts +11 -0
- package/auth/session/record/session.mcp.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +10 -5
- package/auth/session/redis-session.store.d.ts.map +1 -1
- package/auth/session/session-crypto.d.ts +6 -9
- package/auth/session/session-crypto.d.ts.map +1 -1
- package/{store/store.factory.d.ts → auth/session/session-store.factory.d.ts} +10 -36
- package/auth/session/session-store.factory.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +4 -8
- package/auth/session/session.service.d.ts.map +1 -1
- package/auth/session/session.transport.d.ts +8 -2
- package/auth/session/session.transport.d.ts.map +1 -1
- package/auth/session/session.types.d.ts +5 -5
- package/auth/session/session.types.d.ts.map +1 -1
- package/auth/session/token.refresh.d.ts +1 -2
- package/auth/session/token.refresh.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts +7 -6
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +18 -1
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/auth/session/vercel-kv-session.store.d.ts +16 -16
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -1
- package/auth/utils/authorization-id.utils.d.ts +12 -0
- package/auth/utils/authorization-id.utils.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -2
- package/auth/utils/index.d.ts.map +1 -1
- package/auth/vault/auth-providers.accessor.d.ts +153 -0
- package/auth/vault/auth-providers.accessor.d.ts.map +1 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts +52 -0
- package/auth/vault/auth-providers.accessor.impl.d.ts.map +1 -0
- package/auth/vault/auth-providers.context-extension.d.ts +68 -0
- package/auth/vault/auth-providers.context-extension.d.ts.map +1 -0
- package/auth/vault/auth-providers.providers.d.ts +40 -0
- package/auth/vault/auth-providers.providers.d.ts.map +1 -0
- package/auth/vault/auth-providers.registry.d.ts +110 -0
- package/auth/vault/auth-providers.registry.d.ts.map +1 -0
- package/auth/vault/auth-providers.vault.d.ts +93 -0
- package/auth/vault/auth-providers.vault.d.ts.map +1 -0
- package/auth/vault/credential-cache.d.ts +13 -0
- package/auth/vault/credential-cache.d.ts.map +1 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts +46 -0
- package/auth/vault/credential-loaders/eager-loader.d.ts.map +1 -0
- package/auth/vault/credential-loaders/index.d.ts +7 -0
- package/auth/vault/credential-loaders/index.d.ts.map +1 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts +53 -0
- package/auth/vault/credential-loaders/lazy-loader.d.ts.map +1 -0
- package/auth/vault/index.d.ts +56 -0
- package/auth/vault/index.d.ts.map +1 -0
- package/builtin/config/config-resolver.d.ts +162 -0
- package/builtin/config/config-resolver.d.ts.map +1 -0
- package/builtin/config/config.plugin.d.ts +63 -0
- package/builtin/config/config.plugin.d.ts.map +1 -0
- package/builtin/config/config.symbols.d.ts +7 -0
- package/builtin/config/config.symbols.d.ts.map +1 -0
- package/builtin/config/config.types.d.ts +71 -0
- package/builtin/config/config.types.d.ts.map +1 -0
- package/builtin/config/index.d.ts +68 -0
- package/builtin/config/index.d.ts.map +1 -0
- package/builtin/config/providers/config-loader.d.ts +36 -0
- package/builtin/config/providers/config-loader.d.ts.map +1 -0
- package/builtin/config/providers/config.service.d.ts +108 -0
- package/builtin/config/providers/config.service.d.ts.map +1 -0
- package/builtin/config/providers/env-loader.d.ts +76 -0
- package/builtin/config/providers/env-loader.d.ts.map +1 -0
- package/builtin/index.d.ts +7 -0
- package/builtin/index.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/hook.decorator.d.ts +0 -10
- package/common/decorators/hook.decorator.d.ts.map +1 -1
- package/common/decorators/index.d.ts +1 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +105 -0
- package/common/decorators/skill.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +14 -4
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
- package/common/entries/app.entry.d.ts +2 -0
- package/common/entries/app.entry.d.ts.map +1 -1
- package/common/entries/index.d.ts +1 -0
- package/common/entries/index.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +0 -6
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +0 -6
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +2 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/skill.entry.d.ts +95 -0
- package/common/entries/skill.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -9
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +35 -6
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +14 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +1 -0
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -7
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +4 -1
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +91 -0
- package/common/interfaces/skill.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +39 -0
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +62 -2
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +168 -169
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +2182 -721
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +1 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +8 -1
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +366 -0
- package/common/metadata/skill.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +71 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/records/index.d.ts +1 -0
- package/common/records/index.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +55 -0
- package/common/records/skill.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +1 -0
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +24 -24
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/index.d.ts +1 -0
- package/common/tokens/index.d.ts.map +1 -1
- package/common/tokens/plugin.tokens.d.ts +1 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -1
- package/common/tokens/skill.tokens.d.ts +18 -0
- package/common/tokens/skill.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +2 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/auth/session.types.d.ts +21 -0
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/options/auth/app-auth.schema.d.ts +80 -84
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +6 -8
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/auth/{auth.interfaces.d.ts → interfaces.d.ts} +17 -48
- package/common/types/options/auth/interfaces.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +160 -84
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -1
- package/common/types/options/auth/public.schema.d.ts +0 -21
- package/common/types/options/auth/public.schema.d.ts.map +1 -1
- package/common/types/options/auth/{auth.schema.d.ts → schema.d.ts} +81 -85
- package/common/types/options/auth/schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +12 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
- package/common/types/options/auth/transparent.schema.d.ts +0 -21
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -1
- package/common/types/options/auth/typecheck.d.ts +2 -0
- package/common/types/options/auth/typecheck.d.ts.map +1 -0
- package/common/types/options/auth/{auth.utils.d.ts → utils.d.ts} +2 -2
- package/common/types/options/auth/utils.d.ts.map +1 -0
- package/common/types/options/elicitation/index.d.ts +4 -0
- package/common/types/options/elicitation/index.d.ts.map +1 -0
- package/common/types/options/elicitation/interfaces.d.ts +80 -0
- package/common/types/options/elicitation/interfaces.d.ts.map +1 -0
- package/common/types/options/elicitation/schema.d.ts +75 -0
- package/common/types/options/elicitation/schema.d.ts.map +1 -0
- package/common/types/options/ext-apps/index.d.ts +3 -0
- package/common/types/options/ext-apps/index.d.ts.map +1 -0
- package/common/types/options/ext-apps/interfaces.d.ts +2 -0
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -0
- package/common/types/options/ext-apps/schema.d.ts +80 -0
- package/common/types/options/ext-apps/schema.d.ts.map +1 -0
- package/common/types/options/http/index.d.ts +4 -0
- package/common/types/options/http/index.d.ts.map +1 -0
- package/common/types/options/http/interfaces.d.ts +23 -0
- package/common/types/options/http/interfaces.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts +18 -0
- package/common/types/options/http/schema.d.ts.map +1 -0
- package/common/types/options/index.d.ts +10 -6
- package/common/types/options/index.d.ts.map +1 -1
- package/common/types/options/logging/index.d.ts +5 -0
- package/common/types/options/logging/index.d.ts.map +1 -0
- package/common/types/options/logging/interfaces.d.ts +41 -0
- package/common/types/options/logging/interfaces.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +24 -0
- package/common/types/options/logging/schema.d.ts.map +1 -0
- package/common/types/options/pagination/index.d.ts +4 -0
- package/common/types/options/pagination/index.d.ts.map +1 -0
- package/common/types/options/pagination/interfaces.d.ts +43 -0
- package/common/types/options/pagination/interfaces.d.ts.map +1 -0
- package/common/types/options/pagination/schema.d.ts +41 -0
- package/common/types/options/pagination/schema.d.ts.map +1 -0
- package/common/types/options/redis/index.d.ts +4 -0
- package/common/types/options/redis/index.d.ts.map +1 -0
- package/common/types/options/redis/interfaces.d.ts +81 -0
- package/common/types/options/redis/interfaces.d.ts.map +1 -0
- package/common/types/options/{redis.options.d.ts → redis/schema.d.ts} +2 -2
- package/common/types/options/redis/schema.d.ts.map +1 -0
- package/common/types/options/server-info/index.d.ts +4 -0
- package/common/types/options/server-info/index.d.ts.map +1 -0
- package/common/types/options/server-info/interfaces.d.ts +27 -0
- package/common/types/options/server-info/interfaces.d.ts.map +1 -0
- package/common/types/options/{server-info.options.d.ts → server-info/schema.d.ts} +13 -10
- package/common/types/options/server-info/schema.d.ts.map +1 -0
- package/common/types/options/session/index.d.ts +4 -0
- package/common/types/options/session/index.d.ts.map +1 -0
- package/common/types/options/session/interfaces.d.ts +66 -0
- package/common/types/options/session/interfaces.d.ts.map +1 -0
- package/common/types/options/session/schema.d.ts +79 -0
- package/common/types/options/session/schema.d.ts.map +1 -0
- package/common/types/options/skills-http/index.d.ts +4 -0
- package/common/types/options/skills-http/index.d.ts.map +1 -0
- package/common/types/options/skills-http/interfaces.d.ts +321 -0
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -0
- package/common/types/options/skills-http/schema.d.ts +139 -0
- package/common/types/options/skills-http/schema.d.ts.map +1 -0
- package/common/types/options/transport/index.d.ts +4 -0
- package/common/types/options/transport/index.d.ts.map +1 -0
- package/common/types/options/transport/interfaces.d.ts +354 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -0
- package/common/types/options/transport/schema.d.ts +309 -0
- package/common/types/options/transport/schema.d.ts.map +1 -0
- package/common/types/options/transport/typecheck.d.ts +2 -0
- package/common/types/options/transport/typecheck.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +3 -3
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/context/context-extension.d.ts +1 -28
- package/context/context-extension.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +36 -39
- package/context/frontmcp-context.d.ts.map +1 -1
- package/context/frontmcp-context.provider.d.ts +3 -9
- package/context/frontmcp-context.provider.d.ts.map +1 -1
- package/context/index.d.ts +5 -20
- package/context/index.d.ts.map +1 -1
- package/context/metadata.utils.d.ts +24 -0
- package/context/metadata.utils.d.ts.map +1 -0
- package/direct/client.types.d.ts +447 -0
- package/direct/client.types.d.ts.map +1 -0
- package/direct/connect.d.ts +188 -0
- package/direct/connect.d.ts.map +1 -0
- package/direct/direct-client.d.ts +7 -0
- package/direct/direct-client.d.ts.map +1 -0
- package/direct/direct-server.d.ts +38 -0
- package/direct/direct-server.d.ts.map +1 -0
- package/direct/direct.types.d.ts +134 -0
- package/direct/direct.types.d.ts.map +1 -0
- package/direct/index.d.ts +15 -0
- package/direct/index.d.ts.map +1 -0
- package/direct/llm-platform.d.ts +94 -0
- package/direct/llm-platform.d.ts.map +1 -0
- package/elicitation/elicitation-fallback.schema.d.ts +32 -0
- package/elicitation/elicitation-fallback.schema.d.ts.map +1 -0
- package/elicitation/elicitation.types.d.ts +160 -0
- package/elicitation/elicitation.types.d.ts.map +1 -0
- package/elicitation/flows/elicitation-request.flow.d.ts +98 -0
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -0
- package/elicitation/flows/elicitation-result.flow.d.ts +79 -0
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -0
- package/elicitation/flows/index.d.ts +10 -0
- package/elicitation/flows/index.d.ts.map +1 -0
- package/elicitation/helpers/elicit.helper.d.ts +65 -0
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -0
- package/elicitation/helpers/extend-output-schema.d.ts +31 -0
- package/elicitation/helpers/extend-output-schema.d.ts.map +1 -0
- package/elicitation/helpers/fallback.helper.d.ts +60 -0
- package/elicitation/helpers/fallback.helper.d.ts.map +1 -0
- package/elicitation/helpers/index.d.ts +12 -0
- package/elicitation/helpers/index.d.ts.map +1 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts +52 -0
- package/elicitation/helpers/validate-elicitation-content.d.ts.map +1 -0
- package/elicitation/hooks/elicitation.hooks.d.ts +66 -0
- package/elicitation/hooks/elicitation.hooks.d.ts.map +1 -0
- package/elicitation/hooks/index.d.ts +9 -0
- package/elicitation/hooks/index.d.ts.map +1 -0
- package/elicitation/index.d.ts +18 -0
- package/elicitation/index.d.ts.map +1 -0
- package/elicitation/send-elicitation-result.tool.d.ts +18 -0
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -0
- package/elicitation/store/elicitation-encryption.d.ts +134 -0
- package/elicitation/store/elicitation-encryption.d.ts.map +1 -0
- package/elicitation/store/elicitation-store.factory.d.ts +197 -0
- package/elicitation/store/elicitation-store.factory.d.ts.map +1 -0
- package/elicitation/store/elicitation.store.d.ts +191 -0
- package/elicitation/store/elicitation.store.d.ts.map +1 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts +121 -0
- package/elicitation/store/encrypted-elicitation.store.d.ts.map +1 -0
- package/elicitation/store/index.d.ts +14 -0
- package/elicitation/store/index.d.ts.map +1 -0
- package/elicitation/store/storage-elicitation.store.d.ts +118 -0
- package/elicitation/store/storage-elicitation.store.d.ts.map +1 -0
- package/errors/elicitation.error.d.ts +115 -0
- package/errors/elicitation.error.d.ts.map +1 -0
- package/errors/index.d.ts +1 -0
- package/errors/index.d.ts.map +1 -1
- package/esm/index.mjs +30824 -19537
- package/esm/package.json +13 -7
- package/ext-apps/ext-apps.handler.d.ts +177 -0
- package/ext-apps/ext-apps.handler.d.ts.map +1 -0
- package/ext-apps/ext-apps.types.d.ts +273 -0
- package/ext-apps/ext-apps.types.d.ts.map +1 -0
- package/ext-apps/index.d.ts +13 -0
- package/ext-apps/index.d.ts.map +1 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +64 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +604 -236
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/index.d.ts +17 -0
- package/index.d.ts.map +1 -1
- package/index.js +31066 -19707
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +18 -0
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +13 -7
- package/plugin/plugin.registry.d.ts +2 -0
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +8 -3
- package/provider/provider.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +4 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +74 -0
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/server.instance.d.ts +3 -3
- package/server/server.instance.d.ts.map +1 -1
- package/skill/auth/index.d.ts +10 -0
- package/skill/auth/index.d.ts.map +1 -0
- package/skill/auth/skill-http-auth.d.ts +112 -0
- package/skill/auth/skill-http-auth.d.ts.map +1 -0
- package/skill/cache/index.d.ts +13 -0
- package/skill/cache/index.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.d.ts +144 -0
- package/skill/cache/skill-http-cache.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.factory.d.ts +83 -0
- package/skill/cache/skill-http-cache.factory.d.ts.map +1 -0
- package/skill/cache/skill-http-cache.holder.d.ts +35 -0
- package/skill/cache/skill-http-cache.holder.d.ts.map +1 -0
- package/skill/errors/index.d.ts +3 -0
- package/skill/errors/index.d.ts.map +1 -0
- package/skill/errors/skill-validation.error.d.ts +110 -0
- package/skill/errors/skill-validation.error.d.ts.map +1 -0
- package/skill/errors/tool-not-allowed.error.d.ts +66 -0
- package/skill/errors/tool-not-allowed.error.d.ts.map +1 -0
- package/skill/flows/http/index.d.ts +12 -0
- package/skill/flows/http/index.d.ts.map +1 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts +70 -0
- package/skill/flows/http/llm-full-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/llm-txt.flow.d.ts +77 -0
- package/skill/flows/http/llm-txt.flow.d.ts.map +1 -0
- package/skill/flows/http/skills-api.flow.d.ts +81 -0
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -0
- package/skill/flows/index.d.ts +13 -0
- package/skill/flows/index.d.ts.map +1 -0
- package/skill/flows/load-skill.flow.d.ts +169 -0
- package/skill/flows/load-skill.flow.d.ts.map +1 -0
- package/skill/flows/search-skills.flow.d.ts +101 -0
- package/skill/flows/search-skills.flow.d.ts.map +1 -0
- package/skill/guards/index.d.ts +2 -0
- package/skill/guards/index.d.ts.map +1 -0
- package/skill/guards/tool-authorization.guard.d.ts +87 -0
- package/skill/guards/tool-authorization.guard.d.ts.map +1 -0
- package/skill/hooks/index.d.ts +2 -0
- package/skill/hooks/index.d.ts.map +1 -0
- package/skill/hooks/skill-tool.hook.d.ts +52 -0
- package/skill/hooks/skill-tool.hook.d.ts.map +1 -0
- package/skill/index.d.ts +74 -0
- package/skill/index.d.ts.map +1 -0
- package/skill/providers/external-skill.provider.d.ts +240 -0
- package/skill/providers/external-skill.provider.d.ts.map +1 -0
- package/skill/providers/index.d.ts +12 -0
- package/skill/providers/index.d.ts.map +1 -0
- package/skill/providers/memory-skill.provider.d.ts +97 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -0
- package/skill/session/index.d.ts +4 -0
- package/skill/session/index.d.ts.map +1 -0
- package/skill/session/skill-session-store.interface.d.ts +79 -0
- package/skill/session/skill-session-store.interface.d.ts.map +1 -0
- package/skill/session/skill-session.manager.d.ts +137 -0
- package/skill/session/skill-session.manager.d.ts.map +1 -0
- package/skill/session/skill-session.types.d.ts +303 -0
- package/skill/session/skill-session.types.d.ts.map +1 -0
- package/skill/skill-http.utils.d.ts +107 -0
- package/skill/skill-http.utils.d.ts.map +1 -0
- package/skill/skill-mode.utils.d.ts +53 -0
- package/skill/skill-mode.utils.d.ts.map +1 -0
- package/skill/skill-scope.helper.d.ts +55 -0
- package/skill/skill-scope.helper.d.ts.map +1 -0
- package/skill/skill-storage.factory.d.ts +194 -0
- package/skill/skill-storage.factory.d.ts.map +1 -0
- package/skill/skill-storage.interface.d.ts +230 -0
- package/skill/skill-storage.interface.d.ts.map +1 -0
- package/skill/skill-validator.d.ts +63 -0
- package/skill/skill-validator.d.ts.map +1 -0
- package/skill/skill.events.d.ts +88 -0
- package/skill/skill.events.d.ts.map +1 -0
- package/skill/skill.instance.d.ts +92 -0
- package/skill/skill.instance.d.ts.map +1 -0
- package/skill/skill.registry.d.ts +309 -0
- package/skill/skill.registry.d.ts.map +1 -0
- package/skill/skill.utils.d.ts +90 -0
- package/skill/skill.utils.d.ts.map +1 -0
- package/skill/sync/index.d.ts +16 -0
- package/skill/sync/index.d.ts.map +1 -0
- package/skill/sync/memory-sync-state.store.d.ts +49 -0
- package/skill/sync/memory-sync-state.store.d.ts.map +1 -0
- package/skill/sync/skill-hash.d.ts +65 -0
- package/skill/sync/skill-hash.d.ts.map +1 -0
- package/skill/sync/sync-state.interface.d.ts +125 -0
- package/skill/sync/sync-state.interface.d.ts.map +1 -0
- package/skill/tools/index.d.ts +21 -0
- package/skill/tools/index.d.ts.map +1 -0
- package/skill/tools/load-skills.tool.d.ts +76 -0
- package/skill/tools/load-skills.tool.d.ts.map +1 -0
- package/skill/tools/search-skills.tool.d.ts +61 -0
- package/skill/tools/search-skills.tool.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +1 -0
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +15 -0
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +8 -0
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +11 -0
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/template-helpers.d.ts +0 -5
- package/tool/ui/template-helpers.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +54 -9
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +11 -2
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +21 -2
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts +96 -0
- package/transport/event-stores/event-store.factory.d.ts.map +1 -0
- package/transport/event-stores/index.d.ts +47 -0
- package/transport/event-stores/index.d.ts.map +1 -0
- package/transport/event-stores/memory.event-store.d.ts +51 -0
- package/transport/event-stores/memory.event-store.d.ts.map +1 -0
- package/transport/event-stores/redis.event-store.d.ts +79 -0
- package/transport/event-stores/redis.event-store.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +3 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +85 -0
- package/transport/in-memory-server.d.ts.map +1 -0
- package/transport/index.d.ts +47 -0
- package/transport/index.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +3 -84
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +3 -128
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +463 -490
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +3 -70
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +3 -72
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +3 -85
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +3 -61
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-list-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-list-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-load-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts +157 -0
- package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts +9 -0
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +9 -1
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.types.d.ts +1 -8
- package/transport/transport.types.d.ts.map +1 -1
- package/auth/jwks/dev-key-persistence.d.ts +0 -64
- package/auth/jwks/dev-key-persistence.d.ts.map +0 -1
- package/auth/jwks/index.d.ts +0 -4
- package/auth/jwks/index.d.ts.map +0 -1
- package/auth/jwks/jwks.service.d.ts +0 -58
- package/auth/jwks/jwks.service.d.ts.map +0 -1
- package/auth/jwks/jwks.types.d.ts +0 -33
- package/auth/jwks/jwks.types.d.ts.map +0 -1
- package/auth/jwks/jwks.utils.d.ts +0 -5
- package/auth/jwks/jwks.utils.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +0 -32
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +0 -47
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +0 -27
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.par.flow.d.ts +0 -28
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +0 -26
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.token.flow.d.ts +0 -58
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +0 -23
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +0 -1
- package/auth/oauth/flows/oidc.logout.flow.d.ts +0 -19
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +0 -1
- package/auth/session/authorization-vault.d.ts +0 -612
- package/auth/session/authorization-vault.d.ts.map +0 -1
- package/auth/session/authorization.store.d.ts +0 -302
- package/auth/session/authorization.store.d.ts.map +0 -1
- package/auth/session/record/session.stateful.d.ts +0 -21
- package/auth/session/record/session.stateful.d.ts.map +0 -1
- package/auth/session/record/session.stateless.d.ts +0 -18
- package/auth/session/record/session.stateless.d.ts.map +0 -1
- package/auth/session/record/session.transparent.d.ts +0 -18
- package/auth/session/record/session.transparent.d.ts.map +0 -1
- package/auth/session/session.crypto.d.ts +0 -8
- package/auth/session/session.crypto.d.ts.map +0 -1
- package/auth/session/session.schema.d.ts +0 -6
- package/auth/session/session.schema.d.ts.map +0 -1
- package/auth/session/token.store.d.ts +0 -36
- package/auth/session/token.store.d.ts.map +0 -1
- package/auth/session/token.vault.d.ts +0 -27
- package/auth/session/token.vault.d.ts.map +0 -1
- package/auth/session/vault-encryption.d.ts +0 -190
- package/auth/session/vault-encryption.d.ts.map +0 -1
- package/auth/utils/audience.validator.d.ts +0 -130
- package/auth/utils/audience.validator.d.ts.map +0 -1
- package/auth/utils/www-authenticate.utils.d.ts +0 -98
- package/auth/utils/www-authenticate.utils.d.ts.map +0 -1
- package/common/migrate/auth-transport.migrate.d.ts +0 -63
- package/common/migrate/auth-transport.migrate.d.ts.map +0 -1
- package/common/migrate/index.d.ts +0 -2
- package/common/migrate/index.d.ts.map +0 -1
- package/common/types/options/auth/auth.interfaces.d.ts.map +0 -1
- package/common/types/options/auth/auth.schema.d.ts.map +0 -1
- package/common/types/options/auth/auth.typecheck.d.ts +0 -2
- package/common/types/options/auth/auth.typecheck.d.ts.map +0 -1
- package/common/types/options/auth/auth.utils.d.ts.map +0 -1
- package/common/types/options/auth/transport.deprecated.d.ts +0 -64
- package/common/types/options/auth/transport.deprecated.d.ts.map +0 -1
- package/common/types/options/http.options.d.ts +0 -15
- package/common/types/options/http.options.d.ts.map +0 -1
- package/common/types/options/logging.options.d.ts +0 -29
- package/common/types/options/logging.options.d.ts.map +0 -1
- package/common/types/options/redis.options.d.ts.map +0 -1
- package/common/types/options/server-info.options.d.ts.map +0 -1
- package/common/types/options/session.options.d.ts +0 -148
- package/common/types/options/session.options.d.ts.map +0 -1
- package/common/types/options/transport.options.d.ts +0 -178
- package/common/types/options/transport.options.d.ts.map +0 -1
- package/context/request-context-storage.d.ts +0 -90
- package/context/request-context-storage.d.ts.map +0 -1
- package/context/request-context.d.ts +0 -185
- package/context/request-context.d.ts.map +0 -1
- package/context/request-context.provider.d.ts +0 -38
- package/context/request-context.provider.d.ts.map +0 -1
- package/context/session-key.provider.d.ts +0 -46
- package/context/session-key.provider.d.ts.map +0 -1
- package/store/adapters/store.base.adapter.d.ts +0 -22
- package/store/adapters/store.base.adapter.d.ts.map +0 -1
- package/store/adapters/store.memory.adapter.d.ts +0 -27
- package/store/adapters/store.memory.adapter.d.ts.map +0 -1
- package/store/adapters/store.redis.adapter.d.ts +0 -34
- package/store/adapters/store.redis.adapter.d.ts.map +0 -1
- package/store/adapters/store.vercel-kv.adapter.d.ts +0 -87
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +0 -1
- package/store/index.d.ts +0 -11
- package/store/index.d.ts.map +0 -1
- package/store/store.factory.d.ts.map +0 -1
- package/store/store.helpers.d.ts +0 -10
- package/store/store.helpers.d.ts.map +0 -1
- package/store/store.registry.d.ts +0 -14
- package/store/store.registry.d.ts.map +0 -1
- package/store/store.tokens.d.ts +0 -4
- package/store/store.tokens.d.ts.map +0 -1
- package/store/store.types.d.ts +0 -65
- package/store/store.types.d.ts.map +0 -1
- package/store/store.utils.d.ts +0 -9
- package/store/store.utils.d.ts.map +0 -1
- package/transport/transport.event-store.d.ts +0 -11
- package/transport/transport.event-store.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-state.interface.d.ts","sourceRoot":"","sources":["../../../src/skill/sync/sync-state.interface.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAE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ED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,wBAAwB,CAMlF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,GAAG,cAAc,CAMnF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Tools
|
|
3
|
+
*
|
|
4
|
+
* MCP tools for discovering and loading skills.
|
|
5
|
+
* These tools are automatically registered when skills are available.
|
|
6
|
+
*
|
|
7
|
+
* @module skill/tools
|
|
8
|
+
*/
|
|
9
|
+
import { SearchSkillsTool } from './search-skills.tool';
|
|
10
|
+
import { LoadSkillsTool, LoadSkillTool } from './load-skills.tool';
|
|
11
|
+
export { SearchSkillsTool, LoadSkillsTool };
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use LoadSkillsTool instead
|
|
14
|
+
*/
|
|
15
|
+
export { LoadSkillTool };
|
|
16
|
+
/**
|
|
17
|
+
* Get all skill-related tools.
|
|
18
|
+
* Used by the SDK to register skill tools when skills are available.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getSkillTools(): (typeof SearchSkillsTool | typeof LoadSkillsTool)[];
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/tools/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE5C;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;GAGG;AACH,wBAAgB,aAAa,wDAE5B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ToolContext } from '../../common';
|
|
3
|
+
/**
|
|
4
|
+
* Input schema for loadSkills tool.
|
|
5
|
+
*/
|
|
6
|
+
declare const inputSchema: {
|
|
7
|
+
skillIds: z.ZodArray<z.ZodString>;
|
|
8
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
full: "full";
|
|
10
|
+
"instructions-only": "instructions-only";
|
|
11
|
+
}>>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Output schema for loadSkills tool.
|
|
15
|
+
*/
|
|
16
|
+
declare const outputSchema: {
|
|
17
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
instructions: z.ZodString;
|
|
22
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
25
|
+
available: z.ZodBoolean;
|
|
26
|
+
inputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
27
|
+
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
type: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
availableTools: z.ZodArray<z.ZodString>;
|
|
36
|
+
missingTools: z.ZodArray<z.ZodString>;
|
|
37
|
+
isComplete: z.ZodBoolean;
|
|
38
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
39
|
+
formattedContent: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
summary: z.ZodObject<{
|
|
42
|
+
totalSkills: z.ZodNumber;
|
|
43
|
+
totalTools: z.ZodNumber;
|
|
44
|
+
allToolsAvailable: z.ZodBoolean;
|
|
45
|
+
combinedWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
nextSteps: z.ZodString;
|
|
48
|
+
};
|
|
49
|
+
type Input = z.infer<z.ZodObject<typeof inputSchema>>;
|
|
50
|
+
type Output = z.infer<z.ZodObject<typeof outputSchema>>;
|
|
51
|
+
/**
|
|
52
|
+
* Tool for loading one or more skills' full content.
|
|
53
|
+
*
|
|
54
|
+
* This tool retrieves skill instructions, tool requirements, and parameters.
|
|
55
|
+
* Use this after searching for skills to get the detailed workflow guides.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* // Load a single skill by ID
|
|
60
|
+
* const result = await loadSkills({ skillIds: ['review-pr'] });
|
|
61
|
+
*
|
|
62
|
+
* // Load multiple related skills
|
|
63
|
+
* const result = await loadSkills({ skillIds: ['review-pr', 'suggest-fixes'] });
|
|
64
|
+
*
|
|
65
|
+
* // Get instructions only (shorter response)
|
|
66
|
+
* const result = await loadSkills({ skillIds: ['deploy-app'], format: 'instructions-only' });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare class LoadSkillsTool extends ToolContext<typeof inputSchema, typeof outputSchema, Input, Output> {
|
|
70
|
+
execute(input: Input): Promise<Output>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use LoadSkillsTool instead
|
|
74
|
+
*/
|
|
75
|
+
export { LoadSkillsTool as LoadSkillTool };
|
|
76
|
+
//# sourceMappingURL=load-skills.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-skills.tool.d.ts","sourceRoot":"","sources":["../../../src/skill/tools/load-skills.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAQ,WAAW,EAAE,MAAM,cAAc,CAAC;AAKjD;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;CAQhB,CAAC;AA+CF;;GAEG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASjB,CAAC;AAEF,KAAK,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AACtD,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBA8Ba,cAAe,SAAQ,WAAW,CAAC,OAAO,WAAW,EAAE,OAAO,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC;IAC/F,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CA0G7C;AAED;;GAEG;AACH,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ToolContext } from '../../common';
|
|
3
|
+
/**
|
|
4
|
+
* Input schema for searchSkills tool.
|
|
5
|
+
*/
|
|
6
|
+
declare const inputSchema: {
|
|
7
|
+
query: z.ZodString;
|
|
8
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
requireAllTools: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Output schema for searchSkills tool.
|
|
15
|
+
*/
|
|
16
|
+
declare const outputSchema: {
|
|
17
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
score: z.ZodNumber;
|
|
22
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
available: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
source: z.ZodEnum<{
|
|
28
|
+
local: "local";
|
|
29
|
+
external: "external";
|
|
30
|
+
}>;
|
|
31
|
+
canExecute: z.ZodBoolean;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
total: z.ZodNumber;
|
|
34
|
+
hasMore: z.ZodBoolean;
|
|
35
|
+
guidance: z.ZodString;
|
|
36
|
+
};
|
|
37
|
+
type Input = z.infer<z.ZodObject<typeof inputSchema>>;
|
|
38
|
+
type Output = z.infer<z.ZodObject<typeof outputSchema>>;
|
|
39
|
+
/**
|
|
40
|
+
* Tool for searching skills in the registry.
|
|
41
|
+
*
|
|
42
|
+
* This tool allows LLMs to discover skills based on natural language queries,
|
|
43
|
+
* tags, or required tools. Results include relevance scores and tool availability.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* // Search for PR review skills
|
|
48
|
+
* const result = await searchSkills({ query: 'review pull request' });
|
|
49
|
+
*
|
|
50
|
+
* // Filter by tags
|
|
51
|
+
* const result = await searchSkills({ query: 'deploy', tags: ['devops'] });
|
|
52
|
+
*
|
|
53
|
+
* // Only skills with all tools available
|
|
54
|
+
* const result = await searchSkills({ query: 'git', requireAllTools: true });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare class SearchSkillsTool extends ToolContext<typeof inputSchema, typeof outputSchema, Input, Output> {
|
|
58
|
+
execute(input: Input): Promise<Output>;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=search-skills.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-skills.tool.d.ts","sourceRoot":"","sources":["../../../src/skill/tools/search-skills.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAQ,WAAW,EAAoB,MAAM,cAAc,CAAC;AAInE;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;CAMhB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAqBjB,CAAC;AAEF,KAAK,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AACtD,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBA+Ba,gBAAiB,SAAQ,WAAW,CAAC,OAAO,WAAW,EAAE,OAAO,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC;IACjG,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAkF7C"}
|
|
@@ -226,6 +226,7 @@ declare const stateSchema: z.ZodObject<{
|
|
|
226
226
|
uiResult: z.ZodType<ToolResponseContent | undefined>;
|
|
227
227
|
uiMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
228
228
|
progressToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
229
|
+
jsonRpcRequestId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
229
230
|
}, z.core.$strip>;
|
|
230
231
|
declare const plan: {
|
|
231
232
|
readonly pre: ["parseInput", "ensureRemoteCapabilities", "findTool", "checkToolAuthorization", "createToolCallContext", "acquireQuota", "acquireSemaphore"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-tool.flow.d.ts","sourceRoot":"","sources":["../../../src/tool/flows/call-tool.flow.ts"],"names":[],"mappings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0C;IAG1C,UAAU;IAgDhB;;;;OAIG;IAEG,wBAAwB;IA2CxB,QAAQ;IAiDd;;;;OAIG;IAEG,sBAAsB;IA6E5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAMzB,qBAAqB;IAmErB,YAAY;IAQZ,gBAAgB;IAQhB,aAAa;IAuBb,OAAO;IAmGP,cAAc;IAed,gBAAgB;IAQhB,YAAY;IAOlB;;;;OAIG;IAEG,OAAO;IAqLb;;;;;;;;OAQG;IAEG,QAAQ;CAsEf"}
|
|
@@ -94,6 +94,21 @@ declare const name: "tools:list-tools";
|
|
|
94
94
|
export default class ToolsListFlow extends FlowBase<typeof name> {
|
|
95
95
|
logger: import("../../common").FrontMcpLogger;
|
|
96
96
|
private sample;
|
|
97
|
+
/**
|
|
98
|
+
* Determine if pagination should be applied based on tool count and config.
|
|
99
|
+
*/
|
|
100
|
+
private shouldPaginate;
|
|
101
|
+
/**
|
|
102
|
+
* Parse a cursor string to extract the offset.
|
|
103
|
+
* Cursor format: Base64-encoded JSON { offset: number }
|
|
104
|
+
*
|
|
105
|
+
* @throws InvalidInputError if cursor is malformed or contains invalid offset
|
|
106
|
+
*/
|
|
107
|
+
private parseCursor;
|
|
108
|
+
/**
|
|
109
|
+
* Encode an offset into a cursor string.
|
|
110
|
+
*/
|
|
111
|
+
private encodeCursor;
|
|
97
112
|
parseInput(): Promise<void>;
|
|
98
113
|
/**
|
|
99
114
|
* Ensure remote app capabilities are loaded before listing tools.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-list.flow.d.ts","sourceRoot":"","sources":["../../../src/tool/flows/tools-list.flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAsC,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7G,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,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d,UAAU;IAkDhB;;;;OAIG;IAEG,wBAAwB;IA2CxB,SAAS;IAoDT,gBAAgB;IAqChB,UAAU;CAgPjB"}
|
package/tool/tool.instance.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export declare class ToolInstance<InSchema extends ToolInputType = ToolInputType
|
|
|
26
26
|
protected initialize(): Promise<void>;
|
|
27
27
|
getMetadata(): import("../common").ToolMetadata<ToolInputType, ToolOutputType>;
|
|
28
28
|
getOutputSchema(): OutSchema | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Get the raw JSON Schema for output, optionally extended with elicitation fallback type.
|
|
31
|
+
*
|
|
32
|
+
* When elicitation is enabled in scope configuration, the output schema is
|
|
33
|
+
* automatically wrapped in a oneOf union to allow either the original output
|
|
34
|
+
* OR an elicitation pending response. This is transparent to consumers.
|
|
35
|
+
*/
|
|
36
|
+
getRawOutputSchema(): unknown;
|
|
29
37
|
/**
|
|
30
38
|
* Get the provider registry for this tool.
|
|
31
39
|
* Used by flows to build context-aware providers for CONTEXT-scoped dependencies.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.instance.d.ts","sourceRoot":"","sources":["../../src/tool/tool.instance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EAEX,SAAS,EAET,aAAa,EAEb,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"tool.instance.d.ts","sourceRoot":"","sources":["../../src/tool/tool.instance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAC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,CAAC,QAAQ,CAAC,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC;IAe7F;;;;;;;;;;OAUG;IACM,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,gBAAgB;IAM5D,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;CAQ/F"}
|
package/tool/tool.registry.d.ts
CHANGED
|
@@ -54,6 +54,17 @@ ToolRecord, ToolType[]> implements ToolRegistryInterface {
|
|
|
54
54
|
*/
|
|
55
55
|
private adoptToolsFromLocalApp;
|
|
56
56
|
getTools(includeHidden?: boolean): ToolEntry<any, any>[];
|
|
57
|
+
/**
|
|
58
|
+
* Get tools appropriate for MCP listing based on client elicitation support.
|
|
59
|
+
*
|
|
60
|
+
* This method handles capability-based tool filtering:
|
|
61
|
+
* - Always returns non-hidden tools
|
|
62
|
+
* - If client doesn't support elicitation, includes the sendElicitationResult fallback tool
|
|
63
|
+
*
|
|
64
|
+
* @param supportsElicitation - Whether the client supports MCP elicitation (from session payload)
|
|
65
|
+
* @returns Tools appropriate for this client
|
|
66
|
+
*/
|
|
67
|
+
getToolsForListing(supportsElicitation?: boolean): ToolEntry<any, any>[];
|
|
57
68
|
getInlineTools(): ToolEntry<any, any>[];
|
|
58
69
|
/** Internal snapshot of effective indexed rows (locals + adopted). */
|
|
59
70
|
private listAllIndexed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.registry.d.ts","sourceRoot":"","sources":["../../src/tool/tool.registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAChH,OAAO,EAAE,eAAe,EAAe,MAAM,eAAe,CAAC;AAC7D,OAAO,gBAAgB,MAAM,+BA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AE,iBAAiB,GAAG,SAAS,GAAG,SAAS;IAO1E,SAAS,CACP,IAAI,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,OAAO,CAAA;KAAE,EACjE,EAAE,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,GACjC,MAAM,IAAI;IAab,OAAO,CAAC,IAAI;IAOZ,+BAA+B;IAC/B,OAAO,CAAC,OAAO;IAQf,6FAA6F;IAC7F,OAAO,CAAC,SAAS;IAmBjB,uFAAuF;IACvF,OAAO,CAAC,YAAY;IAqBpB,iEAAiE;IACjE,MAAM,IAAI,OAAO;IAIjB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAkB1B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,oBAAoB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAwC3C;;;OAGG;IACH,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAU/C"}
|
package/tool/tool.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.utils.d.ts","sourceRoot":"","sources":["../../src/tool/tool.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAuD,MAAM,cAAc,CAAC;AAC1F,OAAO,EACL,YAAY,EAEZ,QAAQ,EACR,UAAU,EAGV,SAAS,EAET,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tool.utils.d.ts","sourceRoot":"","sources":["../../src/tool/tool.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAuD,MAAM,cAAc,CAAC;AAC1F,OAAO,EACL,YAAY,EAEZ,QAAQ,EACR,UAAU,EAGV,SAAS,EAET,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAmBnB,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAa/D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAqBnD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,KAAK,EAAE,CAO1D;AA4BD,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAwFrF;AA0OD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,mBAAmB,EAAE,CA0BnF"}
|
|
@@ -37,9 +37,4 @@ export declare function jsonEmbed(data: unknown): string;
|
|
|
37
37
|
* @deprecated Use createTemplateHelpers from @frontmcp/uipack/runtime instead
|
|
38
38
|
*/
|
|
39
39
|
export declare function createTemplateHelpersLocal(): TemplateHelpers;
|
|
40
|
-
/**
|
|
41
|
-
* Reset the ID counter (useful for testing).
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare function resetIdCounter(): void;
|
|
45
40
|
//# sourceMappingURL=template-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-helpers.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/template-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AASjE,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAgBvE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAKvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAQ,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAM/C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAQ5D
|
|
1
|
+
{"version":3,"file":"template-helpers.d.ts","sourceRoot":"","sources":["../../../src/tool/ui/template-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AASjE,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAgBvE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAKvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAQ,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAM/C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAQ5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamable-http-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/streamable-http-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,MAAM,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,yCAA0C,SAAQ,6BAA6B;IAC1F;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAC,CAAS;gBAEvB,OAAO,GAAE,oCAAyC;IAI9D;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAK3B;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAqB/C;;;;;OAKG;IAEH,OAAO,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"streamable-http-transport.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/streamable-http-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,MAAM,WAAW,oCAAoC;IACnD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,MAAM,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,yCAA0C,SAAQ,6BAA6B;IAC1F;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAC,CAAS;gBAEvB,OAAO,GAAE,oCAAyC;IAI9D;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAK3B;IAED;;;OAGG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAqB/C;;;;;OAKG;IAEH,OAAO,CAAC,eAAe;IAevB;;;;OAIG;IAEY,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAY5E"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
2
|
-
import { TransportKey,
|
|
2
|
+
import { TransportKey, TransportType } from '../transport.types';
|
|
3
3
|
import { Server as McpServer } from '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { InMemoryEventStore } from '../transport.event-store';
|
|
4
|
+
import { RequestId } from '@modelcontextprotocol/sdk/types.js';
|
|
6
5
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
7
6
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
8
7
|
import { SSEServerTransport } from '../legacy/legacy.sse.tranporter';
|
|
@@ -11,6 +10,7 @@ import { RecreateableSSEServerTransport } from './sse-transport';
|
|
|
11
10
|
import { ZodType } from 'zod';
|
|
12
11
|
import { FrontMcpLogger, ServerResponse } from '../../common';
|
|
13
12
|
import { Scope } from '../../scope';
|
|
13
|
+
import { ElicitResult, ElicitOptions, PendingElicit, ElicitationStore } from '../../elicitation';
|
|
14
14
|
/**
|
|
15
15
|
* Base transport type that includes all supported transports.
|
|
16
16
|
* RecreateableStreamableHTTPServerTransport extends StreamableHTTPServerTransport
|
|
@@ -25,17 +25,26 @@ export declare abstract class LocalTransportAdapter<T extends SupportedTransport
|
|
|
25
25
|
protected readonly onDispose: () => void;
|
|
26
26
|
protected logger: FrontMcpLogger;
|
|
27
27
|
protected transport: T;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Pending elicitation request. Only one elicit per session is allowed.
|
|
30
|
+
* New elicit requests will cancel any pending one.
|
|
31
|
+
*/
|
|
32
|
+
protected pendingElicit?: PendingElicit;
|
|
33
33
|
ready: Promise<void>;
|
|
34
34
|
server: McpServer;
|
|
35
35
|
constructor(scope: Scope, key: TransportKey, onDispose: () => void, res: ServerResponse);
|
|
36
36
|
abstract createTransport(sessionId: string, response: ServerResponse): T;
|
|
37
37
|
abstract initialize(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Send an elicitation request to the client.
|
|
40
|
+
*
|
|
41
|
+
* @param relatedRequestId - The request ID that triggered this elicit
|
|
42
|
+
* @param message - Message to display to the user
|
|
43
|
+
* @param requestedSchema - Zod schema for the expected response
|
|
44
|
+
* @param options - Elicit options (mode, ttl, elicitationId)
|
|
45
|
+
* @returns ElicitResult with status and typed content
|
|
46
|
+
*/
|
|
47
|
+
abstract sendElicitRequest<S extends ZodType>(relatedRequestId: RequestId, message: string, requestedSchema: S, options?: ElicitOptions): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
|
|
39
48
|
abstract handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
40
49
|
/**
|
|
41
50
|
* Marks this transport as pre-initialized for session recreation.
|
|
@@ -44,6 +53,11 @@ export declare abstract class LocalTransportAdapter<T extends SupportedTransport
|
|
|
44
53
|
markAsInitialized(): void;
|
|
45
54
|
connectServer(): Promise<void>;
|
|
46
55
|
get newRequestId(): RequestId;
|
|
56
|
+
/**
|
|
57
|
+
* Get the transport type (sse, streamable-http, etc.).
|
|
58
|
+
* Used for transport-specific behavior detection.
|
|
59
|
+
*/
|
|
60
|
+
get type(): TransportType;
|
|
47
61
|
destroy(reason?: string): Promise<void>;
|
|
48
62
|
/**
|
|
49
63
|
* Ping the connected client for this transport.
|
|
@@ -51,7 +65,38 @@ export declare abstract class LocalTransportAdapter<T extends SupportedTransport
|
|
|
51
65
|
*/
|
|
52
66
|
ping(timeoutMs?: number): Promise<boolean>;
|
|
53
67
|
protected ensureAuthInfo(req: AuthenticatedServerRequest, transport: LocalTransportAdapter<T>): AuthInfo;
|
|
68
|
+
/**
|
|
69
|
+
* Get the elicitation store for distributed elicitation support.
|
|
70
|
+
* Uses Redis in distributed mode, in-memory for single-node.
|
|
71
|
+
*/
|
|
72
|
+
protected get elicitStore(): ElicitationStore;
|
|
73
|
+
/**
|
|
74
|
+
* Cancel any pending elicitation request.
|
|
75
|
+
* Called before sending a new elicit to enforce single-elicit-per-session.
|
|
76
|
+
*
|
|
77
|
+
* This cancels both the local pending elicit (for timeout handling)
|
|
78
|
+
* and publishes cancel to the store (for distributed mode).
|
|
79
|
+
*
|
|
80
|
+
* Note: The local promise is resolved immediately for responsiveness,
|
|
81
|
+
* then distributed state cleanup follows asynchronously. This non-atomic
|
|
82
|
+
* sequence is intentional - the worst case is publishing a cancel for
|
|
83
|
+
* an already-processed elicitation, which is harmless.
|
|
84
|
+
*/
|
|
85
|
+
protected cancelPendingElicit(): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Handle an incoming elicitation result from the client.
|
|
88
|
+
* Returns true if the request was an elicit result and was handled.
|
|
89
|
+
*
|
|
90
|
+
* Uses ElicitationResultFlow for processing (with hook support).
|
|
91
|
+
* In distributed mode, this publishes the result via the elicitation store,
|
|
92
|
+
* which routes it to the correct node that's waiting for it.
|
|
93
|
+
*/
|
|
54
94
|
handleIfElicitResult(req: AuthenticatedServerRequest): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Async handler for elicit result - uses ElicitationResultFlow for processing.
|
|
97
|
+
* Called from handleIfElicitResult without awaiting to avoid blocking the response.
|
|
98
|
+
*/
|
|
99
|
+
private handleElicitResultAsync;
|
|
55
100
|
/**
|
|
56
101
|
* Type predicate to check if an app configuration represents a remote MCP app.
|
|
57
102
|
* Remote apps have a 'urlType' property and are not standalone.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.local.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.local.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"transport.local.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.local.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAqB,SAAS,EAAsB,MAAM,oCAAoC,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,yCAAyC,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAuB,cAAc,EAAE,MAAM,cAAc,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AAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAElE,QAAQ,CAAC,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3F;;;OAGG;IACH,iBAAiB,IAAI,IAAI;IAIzB,aAAa;IA6Db,IAAI,YAAY,IAAI,SAAS,CAE5B;IAED;;;OAGG;IACH,IAAI,IAAI,IAAI,aAAa,CAExB;IAEK,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB7C;;;OAGG;IACG,IAAI,CAAC,SAAS,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC;IAchD,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,0BAA0B,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAoB7F;;;OAGG;IACH,SAAS,KAAK,WAAW,IAAI,gBAAgB,CAE5C;IAED;;;;;;;;;;;OAWG;cACa,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBpD;;;;;;;OAOG;IACH,oBAAoB,CAAC,GAAG,EAAE,0BAA0B,GAAG,OAAO;IA+C9D;;;OAGG;YACW,uBAAuB;IAuBrC;;;OAGG;IACH,OAAO,CAAC,WAAW;IAQnB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAOhC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
2
|
-
import { TypedElicitResult } from '../transport.types';
|
|
3
2
|
import { RecreateableSSEServerTransport } from './sse-transport';
|
|
4
3
|
import { LocalTransportAdapter } from './transport.local.adapter';
|
|
5
4
|
import { RequestId } from '@modelcontextprotocol/sdk/types.js';
|
|
6
5
|
import { ZodType } from 'zod';
|
|
7
6
|
import { ServerResponse } from '../../common';
|
|
7
|
+
import { ElicitResult, ElicitOptions } from '../../elicitation';
|
|
8
8
|
export declare class TransportSSEAdapter extends LocalTransportAdapter<RecreateableSSEServerTransport> {
|
|
9
9
|
sessionId: string;
|
|
10
10
|
/**
|
|
@@ -23,6 +23,15 @@ export declare class TransportSSEAdapter extends LocalTransportAdapter<Recreatea
|
|
|
23
23
|
createTransportFromSession(sessionId: string, res: ServerResponse, lastEventId?: number): RecreateableSSEServerTransport;
|
|
24
24
|
initialize(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
25
25
|
handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Send an elicitation request to the client.
|
|
28
|
+
*
|
|
29
|
+
* Only one elicit per session is allowed. A new elicit will cancel any pending one.
|
|
30
|
+
* On timeout, an ElicitationTimeoutError is thrown to kill tool execution.
|
|
31
|
+
*
|
|
32
|
+
* In distributed mode, the pending elicitation is stored in Redis and results
|
|
33
|
+
* are routed via pub/sub, allowing the response to be received by any node.
|
|
34
|
+
*/
|
|
35
|
+
sendElicitRequest<S extends ZodType>(relatedRequestId: RequestId, message: string, requestedSchema: S, options?: ElicitOptions): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
|
|
27
36
|
}
|
|
28
37
|
//# sourceMappingURL=transport.sse.adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.sse.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.sse.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transport.sse.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.sse.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAG9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAsB,MAAM,mBAAmB,CAAC;AAGpF,qBAAa,mBAAoB,SAAQ,qBAAqB,CAAC,8BAA8B,CAAC;IAC5F,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAQzB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,8BAA8B;IAUhG;;;;;;;OAOG;IACH,0BAA0B,CACxB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc,EACnB,WAAW,CAAC,EAAE,MAAM,GACnB,8BAA8B;IAWjC,UAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzE,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBxF;;;;;;;;OAQG;IACG,iBAAiB,CAAC,CAAC,SAAS,OAAO,EACvC,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;CAgHnE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TransportType
|
|
1
|
+
import { TransportType } from '../transport.types';
|
|
2
2
|
import { AuthenticatedServerRequest } from '../../server/server.types';
|
|
3
3
|
import { LocalTransportAdapter } from './transport.local.adapter';
|
|
4
4
|
import { RequestId } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import { ZodType } from 'zod';
|
|
6
6
|
import { ServerResponse } from '../../common';
|
|
7
7
|
import { RecreateableStreamableHTTPServerTransport } from './streamable-http-transport';
|
|
8
|
+
import { ElicitResult, ElicitOptions } from '../../elicitation';
|
|
8
9
|
/**
|
|
9
10
|
* Stateless HTTP requests must be able to send multiple initialize calls without
|
|
10
11
|
* tripping the MCP transport's "already initialized" guard. The upstream SDK
|
|
@@ -16,7 +17,25 @@ export declare class TransportStreamableHttpAdapter extends LocalTransportAdapte
|
|
|
16
17
|
createTransport(sessionId: string, response: ServerResponse): RecreateableStreamableHTTPServerTransport;
|
|
17
18
|
initialize(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
18
19
|
handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Send an elicitation request to the client.
|
|
22
|
+
*
|
|
23
|
+
* Only one elicit per session is allowed. A new elicit will cancel any pending one.
|
|
24
|
+
* On timeout, an ElicitationTimeoutError is thrown to kill tool execution.
|
|
25
|
+
*
|
|
26
|
+
* Uses the ElicitationRequestFlow for preparation (validation, ID generation,
|
|
27
|
+
* storing pending record, building params) with hook support for middleware.
|
|
28
|
+
*
|
|
29
|
+
* In distributed mode, the pending elicitation is stored in Redis and results
|
|
30
|
+
* are routed via pub/sub, allowing the response to be received by any node.
|
|
31
|
+
*
|
|
32
|
+
* @param relatedRequestId - The request ID that triggered this elicit
|
|
33
|
+
* @param message - Message to display to the user
|
|
34
|
+
* @param requestedSchema - Zod schema for the expected response
|
|
35
|
+
* @param options - Elicit options (mode, ttl, elicitationId)
|
|
36
|
+
* @returns ElicitResult with status and typed content
|
|
37
|
+
*/
|
|
38
|
+
sendElicitRequest<S extends ZodType>(relatedRequestId: RequestId, message: string, requestedSchema: S, options?: ElicitOptions): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
|
|
20
39
|
/**
|
|
21
40
|
* Marks this transport as pre-initialized for session recreation.
|
|
22
41
|
* This is needed when recreating a transport from Redis because the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.streamable-http.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.streamable-http.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"transport.streamable-http.adapter.d.ts","sourceRoot":"","sources":["../../../src/transport/adapters/transport.streamable-http.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAG9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,yCAAyC,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGhE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GACpC,eAAe,aAAa,EAC5B,WAAW,MAAM,KAChB,CAAC,MAAM,MAAM,CAAC,GAAG,SAEnB,CAAC;AAEF,qBAAa,8BAA+B,SAAQ,qBAAqB,CAAC,yCAAyC,CAAC;IACzG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,yCAAyC;IA6B1G,UAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA4D/E,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBxF;;;;;;;;;;;;;;;;;OAiBG;IACG,iBAAiB,CAAC,CAAC,SAAS,OAAO,EACvC,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAiHlE;;;;;;;OAOG;IACM,iBAAiB,IAAI,IAAI;CAOnC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventStore Factory
|
|
3
|
+
*
|
|
4
|
+
* Factory functions for creating EventStore instances based on configuration.
|
|
5
|
+
* Supports Memory and Redis backends with automatic provider detection.
|
|
6
|
+
*
|
|
7
|
+
* @module transport/event-stores/event-store.factory
|
|
8
|
+
*/
|
|
9
|
+
import type { EventStore } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
10
|
+
import type { FrontMcpLogger, RedisOptionsInput } from '../../common';
|
|
11
|
+
/**
|
|
12
|
+
* EventStore configuration for SSE resumability support.
|
|
13
|
+
*/
|
|
14
|
+
export interface EventStoreConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Whether EventStore is enabled.
|
|
17
|
+
* When true, clients can reconnect and resume missed SSE messages using Last-Event-ID header.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Storage provider type.
|
|
23
|
+
* - 'memory': In-memory storage (single-node only)
|
|
24
|
+
* - 'redis': Redis-backed storage (distributed)
|
|
25
|
+
* @default 'memory'
|
|
26
|
+
*/
|
|
27
|
+
provider?: 'memory' | 'redis';
|
|
28
|
+
/**
|
|
29
|
+
* Maximum number of events to store before eviction.
|
|
30
|
+
* @default 10000
|
|
31
|
+
*/
|
|
32
|
+
maxEvents?: number;
|
|
33
|
+
/**
|
|
34
|
+
* TTL in milliseconds for stored events.
|
|
35
|
+
* @default 300000 (5 minutes)
|
|
36
|
+
*/
|
|
37
|
+
ttlMs?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Redis configuration (required if provider is 'redis').
|
|
40
|
+
*/
|
|
41
|
+
redis?: RedisOptionsInput;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Result of creating an EventStore.
|
|
45
|
+
*/
|
|
46
|
+
export interface EventStoreResult {
|
|
47
|
+
/**
|
|
48
|
+
* The created EventStore instance, or undefined if disabled.
|
|
49
|
+
*/
|
|
50
|
+
eventStore: EventStore | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The type of storage backend used.
|
|
53
|
+
*/
|
|
54
|
+
type: 'memory' | 'redis' | 'disabled';
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create an EventStore based on configuration.
|
|
58
|
+
*
|
|
59
|
+
* If EventStore is disabled (config.enabled is false or undefined),
|
|
60
|
+
* returns undefined. This disables SSE resumability support.
|
|
61
|
+
*
|
|
62
|
+
* @param config - EventStore configuration
|
|
63
|
+
* @param logger - Optional logger for store operations
|
|
64
|
+
* @returns EventStore instance and type, or undefined if disabled
|
|
65
|
+
*
|
|
66
|
+
* @example Disabled (default)
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const { eventStore, type } = createEventStore(undefined);
|
|
69
|
+
* // eventStore === undefined, type === 'disabled'
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @example Memory (single-node)
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const { eventStore, type } = createEventStore({
|
|
75
|
+
* enabled: true,
|
|
76
|
+
* provider: 'memory',
|
|
77
|
+
* maxEvents: 10000,
|
|
78
|
+
* ttlMs: 300000,
|
|
79
|
+
* });
|
|
80
|
+
* // type === 'memory'
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @example Redis (distributed)
|
|
84
|
+
* ```typescript
|
|
85
|
+
* const { eventStore, type } = createEventStore({
|
|
86
|
+
* enabled: true,
|
|
87
|
+
* provider: 'redis',
|
|
88
|
+
* redis: { host: 'localhost', port: 6379 },
|
|
89
|
+
* maxEvents: 10000,
|
|
90
|
+
* ttlMs: 300000,
|
|
91
|
+
* });
|
|
92
|
+
* // type === 'redis'
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare function createEventStore(config: EventStoreConfig | undefined, logger?: FrontMcpLogger): EventStoreResult;
|
|
96
|
+
//# sourceMappingURL=event-store.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-store.factory.d.ts","sourceRoot":"","sources":["../../../src/transport/event-stores/event-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAE9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAsDhH"}
|