@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":"skill-http-cache.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory for creating skill HTTP cache instances.
|
|
3
|
+
*
|
|
4
|
+
* @module skill/cache/skill-http-cache.factory
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontMcpLogger } from '../../common/index.js';
|
|
7
|
+
import { SkillHttpCache } from './skill-http-cache.js';
|
|
8
|
+
/**
|
|
9
|
+
* Redis configuration options for the cache.
|
|
10
|
+
*
|
|
11
|
+
* Supports 'redis' (uses ioredis under the hood) and 'vercel-kv' providers.
|
|
12
|
+
*/
|
|
13
|
+
export interface SkillHttpCacheRedisOptions {
|
|
14
|
+
/** Redis provider type */
|
|
15
|
+
provider: 'redis' | 'vercel-kv' | '@vercel/kv';
|
|
16
|
+
/** Redis host */
|
|
17
|
+
host?: string;
|
|
18
|
+
/** Redis port */
|
|
19
|
+
port?: number;
|
|
20
|
+
/** Redis password */
|
|
21
|
+
password?: string;
|
|
22
|
+
/** Redis database number */
|
|
23
|
+
db?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Options for creating a skill HTTP cache.
|
|
27
|
+
*/
|
|
28
|
+
export interface SkillHttpCacheOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Redis configuration for distributed caching.
|
|
31
|
+
* If not provided, falls back to memory cache.
|
|
32
|
+
*/
|
|
33
|
+
redis?: SkillHttpCacheRedisOptions;
|
|
34
|
+
/**
|
|
35
|
+
* Cache TTL in milliseconds.
|
|
36
|
+
* @default 60000 (1 minute)
|
|
37
|
+
*/
|
|
38
|
+
ttlMs?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Key prefix for Redis cache.
|
|
41
|
+
* @default 'frontmcp:skills:cache:'
|
|
42
|
+
*/
|
|
43
|
+
keyPrefix?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional logger for cache operations.
|
|
46
|
+
*/
|
|
47
|
+
logger?: FrontMcpLogger;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Result of creating a skill HTTP cache.
|
|
51
|
+
*/
|
|
52
|
+
export interface SkillHttpCacheResult {
|
|
53
|
+
/** The cache instance */
|
|
54
|
+
cache: SkillHttpCache;
|
|
55
|
+
/** The cache type that was created */
|
|
56
|
+
type: 'memory' | 'redis';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a skill HTTP cache from configuration.
|
|
60
|
+
*
|
|
61
|
+
* If Redis configuration is provided, creates a Redis-backed cache.
|
|
62
|
+
* Otherwise, falls back to an in-memory cache.
|
|
63
|
+
*
|
|
64
|
+
* @param options - Cache configuration
|
|
65
|
+
* @returns Cache instance and type
|
|
66
|
+
*
|
|
67
|
+
* @example Memory cache (default)
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const { cache, type } = await createSkillHttpCache({ ttlMs: 30000 });
|
|
70
|
+
* // type === 'memory'
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @example Redis cache
|
|
74
|
+
* ```typescript
|
|
75
|
+
* const { cache, type } = await createSkillHttpCache({
|
|
76
|
+
* redis: { provider: 'redis', host: 'localhost', port: 6379 },
|
|
77
|
+
* ttlMs: 60000,
|
|
78
|
+
* });
|
|
79
|
+
* // type === 'redis'
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function createSkillHttpCache(options?: SkillHttpCacheOptions): Promise<SkillHttpCacheResult>;
|
|
83
|
+
//# sourceMappingURL=skill-http-cache.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-http-cache.factory.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.factory.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAA6C,MAAM,uBAAuB,CAAC;AAElG;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,0BAA0B;IAC1B,QAAQ,EAAE,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC;IAC/C,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC;IAEnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,yBAAyB;IACzB,KAAK,EAAE,cAAc,CAAC;IACtB,sCAAsC;IACtC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B;AAWD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAyB7G"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Singleton holder for skill HTTP cache instances.
|
|
3
|
+
*
|
|
4
|
+
* This provides a way to share cache instances across flows
|
|
5
|
+
* without requiring full scope integration.
|
|
6
|
+
*
|
|
7
|
+
* @module skill/cache/skill-http-cache.holder
|
|
8
|
+
*/
|
|
9
|
+
import type { ScopeEntry } from '../../common/index.js';
|
|
10
|
+
import { SkillHttpCache } from './skill-http-cache.js';
|
|
11
|
+
/**
|
|
12
|
+
* Get or create a skill HTTP cache for a scope.
|
|
13
|
+
*
|
|
14
|
+
* @param scope - The scope entry
|
|
15
|
+
* @returns Cache instance (may be shared with other flows in same scope)
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSkillHttpCache(scope: ScopeEntry): Promise<SkillHttpCache | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Invalidate cache for a scope.
|
|
20
|
+
*
|
|
21
|
+
* @param scopeId - Scope identifier
|
|
22
|
+
*/
|
|
23
|
+
export declare function invalidateScopeCache(scopeId: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Invalidate a specific skill in a scope's cache.
|
|
26
|
+
*
|
|
27
|
+
* @param scopeId - Scope identifier
|
|
28
|
+
* @param skillId - Skill identifier
|
|
29
|
+
*/
|
|
30
|
+
export declare function invalidateSkillInCache(scopeId: string, skillId: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Dispose all caches (for testing/cleanup).
|
|
33
|
+
*/
|
|
34
|
+
export declare function disposeAllCaches(): Promise<void>;
|
|
35
|
+
//# sourceMappingURL=skill-http-cache.holder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-http-cache.holder.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.holder.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAc7E;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAkCzF;AA0CD;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKzE;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK5F;AAED;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAMtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/errors/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PublicMcpError } from '../../errors';
|
|
2
|
+
/**
|
|
3
|
+
* Result of validating a single skill's tool references.
|
|
4
|
+
*/
|
|
5
|
+
export interface SkillValidationResult {
|
|
6
|
+
/**
|
|
7
|
+
* Unique identifier of the skill.
|
|
8
|
+
*/
|
|
9
|
+
skillId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the skill.
|
|
12
|
+
*/
|
|
13
|
+
skillName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Validation status.
|
|
16
|
+
* - 'valid': All tools are available
|
|
17
|
+
* - 'warning': Some tools are missing/hidden but validation mode is 'warn'
|
|
18
|
+
* - 'failed': Tools are missing/hidden and validation mode is 'strict'
|
|
19
|
+
*/
|
|
20
|
+
status: 'valid' | 'warning' | 'failed';
|
|
21
|
+
/**
|
|
22
|
+
* Tools that are referenced but not found in the registry.
|
|
23
|
+
*/
|
|
24
|
+
missingTools: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Tools that exist but are hidden (not visible to clients).
|
|
27
|
+
*/
|
|
28
|
+
hiddenTools: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Validation mode used for this skill.
|
|
31
|
+
*/
|
|
32
|
+
validationMode: 'strict' | 'warn' | 'ignore';
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Report of validating all skills in a registry.
|
|
36
|
+
*/
|
|
37
|
+
export interface SkillValidationReport {
|
|
38
|
+
/**
|
|
39
|
+
* Validation results for each skill.
|
|
40
|
+
*/
|
|
41
|
+
results: SkillValidationResult[];
|
|
42
|
+
/**
|
|
43
|
+
* Whether all skills passed validation (no 'failed' status).
|
|
44
|
+
*/
|
|
45
|
+
isValid: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Total number of skills validated.
|
|
48
|
+
*/
|
|
49
|
+
totalSkills: number;
|
|
50
|
+
/**
|
|
51
|
+
* Number of skills with 'failed' status.
|
|
52
|
+
*/
|
|
53
|
+
failedCount: number;
|
|
54
|
+
/**
|
|
55
|
+
* Number of skills with 'warning' status.
|
|
56
|
+
*/
|
|
57
|
+
warningCount: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Error thrown when skill tool validation fails in strict mode.
|
|
61
|
+
*
|
|
62
|
+
* This error is thrown during skill registry initialization when:
|
|
63
|
+
* 1. A skill references tools that don't exist in the tool registry
|
|
64
|
+
* 2. The skill's toolValidation mode is 'strict'
|
|
65
|
+
* 3. failOnInvalidSkills is enabled (registry-level)
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* try {
|
|
70
|
+
* await skillRegistry.validateAllTools();
|
|
71
|
+
* } catch (error) {
|
|
72
|
+
* if (error instanceof SkillValidationError) {
|
|
73
|
+
* console.log('Failed skills:', error.failedSkills);
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare class SkillValidationError extends PublicMcpError {
|
|
79
|
+
readonly mcpErrorCode: -32602;
|
|
80
|
+
/**
|
|
81
|
+
* Skills that failed validation.
|
|
82
|
+
*/
|
|
83
|
+
readonly failedSkills: SkillValidationResult[];
|
|
84
|
+
/**
|
|
85
|
+
* Full validation report including all skills.
|
|
86
|
+
*/
|
|
87
|
+
readonly report: SkillValidationReport;
|
|
88
|
+
constructor(message: string, report: SkillValidationReport);
|
|
89
|
+
/**
|
|
90
|
+
* Create a SkillValidationError from a validation report.
|
|
91
|
+
*/
|
|
92
|
+
static fromReport(report: SkillValidationReport): SkillValidationError;
|
|
93
|
+
getPublicMessage(): string;
|
|
94
|
+
toJsonRpcError(): {
|
|
95
|
+
code: -32602;
|
|
96
|
+
message: string;
|
|
97
|
+
data: {
|
|
98
|
+
failedSkills: {
|
|
99
|
+
skillId: string;
|
|
100
|
+
skillName: string;
|
|
101
|
+
missingTools: string[];
|
|
102
|
+
hiddenTools: string[];
|
|
103
|
+
}[];
|
|
104
|
+
totalSkills: number;
|
|
105
|
+
failedCount: number;
|
|
106
|
+
warningCount: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=skill-validation.error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-validation.error.d.ts","sourceRoot":"","sources":["../../../src/skill/errors/skill-validation.error.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAmB,MAAM,cAAc,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAEvC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB;;OAEG;IACH,cAAc,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAEjC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,QAAQ,CAAC,YAAY,SAAkC;IAEvD;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,qBAAqB,EAAE,CAAC;IAE/C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;gBAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB;IAO1D;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,qBAAqB,GAAG,oBAAoB;IAW7D,gBAAgB,IAAI,MAAM;IAInC,cAAc;;;;;;;;;;;;;;;CAiBf"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PublicMcpError } from '../../errors';
|
|
2
|
+
import type { ToolAuthorizationResult } from '../session/skill-session.types';
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when a tool call is not authorized by the active skill(s).
|
|
5
|
+
*
|
|
6
|
+
* This error is thrown in 'strict' policy mode when a tool not in the
|
|
7
|
+
* skill's allowlist is called. Supports both single and multiple active skills.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const authResult = sessionManager.checkToolAuthorization('some_tool');
|
|
12
|
+
* if (!authResult.allowed) {
|
|
13
|
+
* throw new ToolNotAllowedError(authResult);
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class ToolNotAllowedError extends PublicMcpError {
|
|
18
|
+
readonly mcpErrorCode: -32600;
|
|
19
|
+
readonly toolName: string;
|
|
20
|
+
readonly skillId: string | undefined;
|
|
21
|
+
readonly skillName: string | undefined;
|
|
22
|
+
readonly activeSkillIds: string[];
|
|
23
|
+
readonly activeSkillNames: string[];
|
|
24
|
+
readonly reason: ToolAuthorizationResult['reason'];
|
|
25
|
+
readonly allowedTools: string[];
|
|
26
|
+
constructor(authResult: ToolAuthorizationResult, allowedTools?: string[]);
|
|
27
|
+
private static formatMessage;
|
|
28
|
+
/**
|
|
29
|
+
* Format the skill display string, handling multiple active skills.
|
|
30
|
+
*/
|
|
31
|
+
private static formatSkillDisplay;
|
|
32
|
+
getPublicMessage(): string;
|
|
33
|
+
toJsonRpcError(): {
|
|
34
|
+
code: -32600;
|
|
35
|
+
message: string;
|
|
36
|
+
data: {
|
|
37
|
+
toolName: string;
|
|
38
|
+
skillId: string | undefined;
|
|
39
|
+
skillName: string | undefined;
|
|
40
|
+
activeSkillIds: string[];
|
|
41
|
+
activeSkillNames: string[];
|
|
42
|
+
reason: "skill_allowlist" | "dynamically_approved" | "no_active_skill" | "not_in_allowlist" | "denied" | "rate_limited";
|
|
43
|
+
allowedTools: string[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Error thrown when tool approval is required but not granted.
|
|
49
|
+
*/
|
|
50
|
+
export declare class ToolApprovalRequiredError extends PublicMcpError {
|
|
51
|
+
readonly mcpErrorCode: -32600;
|
|
52
|
+
readonly toolName: string;
|
|
53
|
+
readonly skillId: string | undefined;
|
|
54
|
+
constructor(toolName: string, skillId?: string);
|
|
55
|
+
getPublicMessage(): string;
|
|
56
|
+
toJsonRpcError(): {
|
|
57
|
+
code: -32600;
|
|
58
|
+
message: string;
|
|
59
|
+
data: {
|
|
60
|
+
toolName: string;
|
|
61
|
+
skillId: string | undefined;
|
|
62
|
+
requiresApproval: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=tool-not-allowed.error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-not-allowed.error.d.ts","sourceRoot":"","sources":["../../../src/skill/errors/tool-not-allowed.error.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAmB,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,QAAQ,CAAC,YAAY,SAAmC;IACxD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;gBAEpB,UAAU,EAAE,uBAAuB,EAAE,YAAY,GAAE,MAAM,EAAO;IAa5E,OAAO,CAAC,MAAM,CAAC,aAAa;IA8C5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAaxB,gBAAgB,IAAI,MAAM;IAInC,cAAc;;;;;;;;;;;;;CAef;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,cAAc;IAC3D,QAAQ,CAAC,YAAY,SAAmC;IACxD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEzB,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAUrC,gBAAgB,IAAI,MAAM;IAInC,cAAc;;;;;;;;;CAWf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills HTTP Flows
|
|
3
|
+
*
|
|
4
|
+
* HTTP endpoints for skill discovery and loading.
|
|
5
|
+
* These flows are conditionally registered when skillsConfig.enabled is true.
|
|
6
|
+
*
|
|
7
|
+
* @module skill/flows/http
|
|
8
|
+
*/
|
|
9
|
+
export { default as LlmTxtFlow } from './llm-txt.flow';
|
|
10
|
+
export { default as LlmFullTxtFlow } from './llm-full-txt.flow';
|
|
11
|
+
export { default as SkillsApiFlow } from './skills-api.flow';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP flow for GET /llm_full.txt endpoint.
|
|
3
|
+
* Returns full skill content with instructions and tool schemas.
|
|
4
|
+
*/
|
|
5
|
+
import { FlowBase, FlowRunOptions, ScopeEntry, ServerRequest } from '../../../common';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
declare const inputSchema: z.ZodObject<{
|
|
8
|
+
request: z.ZodObject<{}, z.core.$loose>;
|
|
9
|
+
response: z.ZodObject<{}, z.core.$loose>;
|
|
10
|
+
next: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const stateSchema: z.ZodObject<{
|
|
13
|
+
prefix: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const outputSchema: z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"text">;
|
|
17
|
+
status: z.ZodNumber;
|
|
18
|
+
body: z.ZodString;
|
|
19
|
+
contentType: z.ZodDefault<z.ZodString>;
|
|
20
|
+
headers: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>]>>>>;
|
|
21
|
+
cookies: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
path: z.ZodDefault<z.ZodString>;
|
|
25
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
26
|
+
httpOnly: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
strict: "strict";
|
|
30
|
+
lax: "lax";
|
|
31
|
+
none: "none";
|
|
32
|
+
}>>;
|
|
33
|
+
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
expires: z.ZodOptional<z.ZodDate>;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const plan: {
|
|
38
|
+
readonly pre: ["checkEnabled"];
|
|
39
|
+
readonly execute: ["generateContent"];
|
|
40
|
+
};
|
|
41
|
+
declare global {
|
|
42
|
+
interface ExtendFlows {
|
|
43
|
+
'skills-http:llm-full-txt': FlowRunOptions<LlmFullTxtFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
declare const name: "skills-http:llm-full-txt";
|
|
47
|
+
/**
|
|
48
|
+
* Flow for serving full skill content at /llm_full.txt.
|
|
49
|
+
*
|
|
50
|
+
* This endpoint provides complete skill information including:
|
|
51
|
+
* - Full instructions
|
|
52
|
+
* - Complete tool schemas (input/output)
|
|
53
|
+
* - Parameters
|
|
54
|
+
* - Examples
|
|
55
|
+
*
|
|
56
|
+
* Useful for multi-agent architectures where planner agents need
|
|
57
|
+
* comprehensive skill information to create execution plans.
|
|
58
|
+
*/
|
|
59
|
+
export default class LlmFullTxtFlow extends FlowBase<typeof name> {
|
|
60
|
+
logger: import("../../../common").FrontMcpLogger;
|
|
61
|
+
/**
|
|
62
|
+
* Check if this flow should handle the request.
|
|
63
|
+
* Matches GET requests to /llm_full.txt or configured path.
|
|
64
|
+
*/
|
|
65
|
+
static canActivate(request: ServerRequest, scope: ScopeEntry): boolean;
|
|
66
|
+
checkEnabled(): Promise<void>;
|
|
67
|
+
generateContent(): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=llm-full-txt.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-full-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-full-txt.flow.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAEL,QAAQ,EAER,cAAc,EAId,UAAU,EACV,aAAa,EAId,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,WAAW;;;;iBAAkB,CAAC;AAEpC,QAAA,MAAM,WAAW;;iBAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,0BAA0B,EAAE,cAAc,CACxC,cAAc,EACd,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,0BAAmC,CAAC;AAGjD;;;;;;;;;;;GAWG;AAWH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC/D,MAAM,2CAA4C;IAElD;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAqBhE,YAAY;IAoCZ,eAAe;CAsDtB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP flow for GET /llm.txt endpoint.
|
|
3
|
+
* Returns compact skill summaries in plain text format.
|
|
4
|
+
*/
|
|
5
|
+
import { FlowBase, FlowRunOptions, ScopeEntry, ServerRequest } from '../../../common';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
declare const inputSchema: z.ZodObject<{
|
|
8
|
+
request: z.ZodObject<{}, z.core.$loose>;
|
|
9
|
+
response: z.ZodObject<{}, z.core.$loose>;
|
|
10
|
+
next: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const stateSchema: z.ZodObject<{
|
|
13
|
+
prefix: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const outputSchema: z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"text">;
|
|
17
|
+
status: z.ZodNumber;
|
|
18
|
+
body: z.ZodString;
|
|
19
|
+
contentType: z.ZodDefault<z.ZodString>;
|
|
20
|
+
headers: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>]>>>>;
|
|
21
|
+
cookies: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
path: z.ZodDefault<z.ZodString>;
|
|
25
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
26
|
+
httpOnly: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
strict: "strict";
|
|
30
|
+
lax: "lax";
|
|
31
|
+
none: "none";
|
|
32
|
+
}>>;
|
|
33
|
+
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
expires: z.ZodOptional<z.ZodDate>;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
declare const plan: {
|
|
38
|
+
readonly pre: ["checkEnabled"];
|
|
39
|
+
readonly execute: ["generateContent"];
|
|
40
|
+
};
|
|
41
|
+
declare global {
|
|
42
|
+
interface ExtendFlows {
|
|
43
|
+
'skills-http:llm-txt': FlowRunOptions<LlmTxtFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
declare const name: "skills-http:llm-txt";
|
|
47
|
+
/**
|
|
48
|
+
* Flow for serving skill summaries at /llm.txt.
|
|
49
|
+
*
|
|
50
|
+
* This endpoint provides a compact, LLM-friendly summary of all available skills.
|
|
51
|
+
* Each skill is listed with its name, description, tools, and tags.
|
|
52
|
+
*
|
|
53
|
+
* @example Response format
|
|
54
|
+
* ```
|
|
55
|
+
* # review-pr
|
|
56
|
+
* Review a GitHub pull request
|
|
57
|
+
* Tools: github_get_pr, github_add_comment
|
|
58
|
+
* Tags: github, code-review
|
|
59
|
+
*
|
|
60
|
+
* ---
|
|
61
|
+
*
|
|
62
|
+
* # deploy-app
|
|
63
|
+
* Deploy application to production
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export default class LlmTxtFlow extends FlowBase<typeof name> {
|
|
67
|
+
logger: import("../../../common").FrontMcpLogger;
|
|
68
|
+
/**
|
|
69
|
+
* Check if this flow should handle the request.
|
|
70
|
+
* Matches GET requests to /llm.txt or configured path.
|
|
71
|
+
*/
|
|
72
|
+
static canActivate(request: ServerRequest, scope: ScopeEntry): boolean;
|
|
73
|
+
checkEnabled(): Promise<void>;
|
|
74
|
+
generateContent(): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=llm-txt.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-txt.flow.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAEL,QAAQ,EAER,cAAc,EAId,UAAU,EACV,aAAa,EAId,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,QAAA,MAAM,WAAW;;;;iBAAkB,CAAC;AAEpC,QAAA,MAAM,WAAW;;iBAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,qBAAqB,EAAE,cAAc,CACnC,UAAU,EACV,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,qBAA8B,CAAC;AAG5C;;;;;;;;;;;;;;;;;;GAkBG;AAWH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC3D,MAAM,2CAAwC;IAE9C;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAqBhE,YAAY;IAoCZ,eAAe;CAuDtB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP flow for GET /skills/* API endpoints.
|
|
3
|
+
* Provides JSON API for listing, searching, and loading skills.
|
|
4
|
+
*/
|
|
5
|
+
import { FlowBase, FlowRunOptions, ScopeEntry, ServerRequest } from '../../../common';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
declare const inputSchema: z.ZodObject<{
|
|
8
|
+
request: z.ZodObject<{}, z.core.$loose>;
|
|
9
|
+
response: z.ZodObject<{}, z.core.$loose>;
|
|
10
|
+
next: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const stateSchema: z.ZodObject<{
|
|
13
|
+
action: z.ZodEnum<{
|
|
14
|
+
search: "search";
|
|
15
|
+
list: "list";
|
|
16
|
+
get: "get";
|
|
17
|
+
}>;
|
|
18
|
+
skillId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
query: z.ZodOptional<z.ZodString>;
|
|
20
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const outputSchema: z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"json">;
|
|
27
|
+
status: z.ZodNumber;
|
|
28
|
+
body: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
29
|
+
contentType: z.ZodDefault<z.ZodString>;
|
|
30
|
+
headers: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>]>>>>;
|
|
31
|
+
cookies: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
value: z.ZodString;
|
|
34
|
+
path: z.ZodDefault<z.ZodString>;
|
|
35
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
36
|
+
httpOnly: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
strict: "strict";
|
|
40
|
+
lax: "lax";
|
|
41
|
+
none: "none";
|
|
42
|
+
}>>;
|
|
43
|
+
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
expires: z.ZodOptional<z.ZodDate>;
|
|
45
|
+
}, z.core.$strip>>>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const plan: {
|
|
48
|
+
readonly pre: ["checkEnabled", "parseRequest"];
|
|
49
|
+
readonly execute: ["handleRequest"];
|
|
50
|
+
};
|
|
51
|
+
declare global {
|
|
52
|
+
interface ExtendFlows {
|
|
53
|
+
'skills-http:api': FlowRunOptions<SkillsApiFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
declare const name: "skills-http:api";
|
|
57
|
+
/**
|
|
58
|
+
* Flow for serving skills via JSON API.
|
|
59
|
+
*
|
|
60
|
+
* Endpoints:
|
|
61
|
+
* - GET /skills - List all skills
|
|
62
|
+
* - GET /skills?query=X - Search skills
|
|
63
|
+
* - GET /skills?tags=a,b - Filter by tags
|
|
64
|
+
* - GET /skills/{id} - Get specific skill by ID/name
|
|
65
|
+
*/
|
|
66
|
+
export default class SkillsApiFlow extends FlowBase<typeof name> {
|
|
67
|
+
logger: import("../../../common").FrontMcpLogger;
|
|
68
|
+
/**
|
|
69
|
+
* Check if this flow should handle the request.
|
|
70
|
+
* Matches GET requests to /skills or /skills/{id}.
|
|
71
|
+
*/
|
|
72
|
+
static canActivate(request: ServerRequest, scope: ScopeEntry): boolean;
|
|
73
|
+
checkEnabled(): Promise<void>;
|
|
74
|
+
parseRequest(): Promise<void>;
|
|
75
|
+
handleRequest(): Promise<void>;
|
|
76
|
+
private handleGetSkill;
|
|
77
|
+
private handleSearchSkills;
|
|
78
|
+
private handleListSkills;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=skills-api.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills-api.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/skills-api.flow.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,EAEL,QAAQ,EAER,cAAc,EAId,UAAU,EACV,aAAa,EAKd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,WAAW;;;;iBAAkB,CAAC;AAEpC,QAAA,MAAM,WAAW;;;;;;;;;;;;iBAQf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,iBAAiB,EAAE,cAAc,CAC/B,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,iBAA0B,CAAC;AAGxC;;;;;;;;GAQG;AAWH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC9D,MAAM,2CAA2C;IAEjD;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAsBhE,YAAY;IAsCZ,YAAY;IAqEZ,aAAa;YAuCL,cAAc;YA8Dd,kBAAkB;YAkClB,gBAAgB;CA2C/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill Flows
|
|
3
|
+
*
|
|
4
|
+
* MCP flows for discovering and loading skills.
|
|
5
|
+
* These flows provide dedicated handlers for skill operations,
|
|
6
|
+
* making it easier to hook and debug skill-related functionality.
|
|
7
|
+
*
|
|
8
|
+
* @module skill/flows
|
|
9
|
+
*/
|
|
10
|
+
export { default as SearchSkillsFlow } from './search-skills.flow';
|
|
11
|
+
export { default as LoadSkillFlow } from './load-skill.flow';
|
|
12
|
+
export { LlmTxtFlow, LlmFullTxtFlow, SkillsApiFlow } from './http';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/flows/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC"}
|