@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-mcp.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/front-mcp.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EAEX,
|
|
1
|
+
{"version":3,"file":"front-mcp.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/front-mcp.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EAEX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AmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/F,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACrE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Token } from '@frontmcp/di';
|
|
3
|
-
import { ProviderType, PluginType, AdapterType, ToolType, ResourceType, PromptType } from '../interfaces';
|
|
3
|
+
import { ProviderType, PluginType, AdapterType, ToolType, ResourceType, PromptType, SkillType } from '../interfaces';
|
|
4
4
|
/**
|
|
5
5
|
* Context extension declaration for plugins.
|
|
6
6
|
* Allows plugins to add properties to ExecutionContextBase (ToolContext, etc.)
|
|
@@ -90,6 +90,12 @@ export interface PluginMetadata {
|
|
|
90
90
|
tools?: ToolType[];
|
|
91
91
|
resources?: ResourceType[];
|
|
92
92
|
prompts?: PromptType[];
|
|
93
|
+
/**
|
|
94
|
+
* Plugin-scoped Skills that teach AI how to perform multi-step tasks.
|
|
95
|
+
* Skills are workflow guides that combine tools into coherent recipes.
|
|
96
|
+
* They can be discovered via searchSkills and loaded via loadSkill.
|
|
97
|
+
*/
|
|
98
|
+
skills?: SkillType[];
|
|
93
99
|
/**
|
|
94
100
|
* Determines where plugin hooks are registered:
|
|
95
101
|
* - 'app' (default): Hooks fire only for requests to this app
|
|
@@ -125,6 +131,7 @@ export declare const frontMcpPluginMetadataSchema: z.ZodObject<{
|
|
|
125
131
|
tools: z.ZodOptional<z.ZodArray<z.ZodCustom<import("@frontmcp/di").Type<unknown>, import("@frontmcp/di").Type<unknown>>>>;
|
|
126
132
|
resources: z.ZodOptional<z.ZodArray<z.ZodCustom<import("@frontmcp/di").Type<unknown>, import("@frontmcp/di").Type<unknown>>>>;
|
|
127
133
|
prompts: z.ZodOptional<z.ZodArray<z.ZodCustom<import("@frontmcp/di").Type<unknown>, import("@frontmcp/di").Type<unknown>>>>;
|
|
134
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodCustom<import("@frontmcp/di").Type<unknown>, import("@frontmcp/di").Type<unknown>>>>;
|
|
128
135
|
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
129
136
|
app: "app";
|
|
130
137
|
server: "server";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/plugin.metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/plugin.metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAWrH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAEzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAEnB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAEzB;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC;AAWD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;iBAgBzB,CAAC"}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Type } from '@frontmcp/di';
|
|
3
|
+
import type { ToolContext } from '../interfaces';
|
|
4
|
+
declare global {
|
|
5
|
+
/**
|
|
6
|
+
* Declarative metadata extends to the Skill decorator.
|
|
7
|
+
*/
|
|
8
|
+
interface ExtendFrontMcpSkillMetadata {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Reference to a tool used by a skill.
|
|
13
|
+
* Can be a simple string (tool name), a tool class, or a detailed reference with purpose.
|
|
14
|
+
*/
|
|
15
|
+
export interface SkillToolRef {
|
|
16
|
+
/**
|
|
17
|
+
* The name of the tool being referenced.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional description of why/how this tool is used in the skill.
|
|
22
|
+
* Helps LLMs understand the tool's role in the workflow.
|
|
23
|
+
*/
|
|
24
|
+
purpose?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether this tool is required for the skill to function.
|
|
27
|
+
* If true and the tool is missing, skill execution may fail.
|
|
28
|
+
* Default: false
|
|
29
|
+
*/
|
|
30
|
+
required?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Input type for tool references in skill metadata.
|
|
34
|
+
* Supports:
|
|
35
|
+
* - Tool class (recommended): Automatically extracts tool name from decorated class
|
|
36
|
+
* - String: Tool name directly (useful for dynamic/external tools)
|
|
37
|
+
* - SkillToolRef: Detailed reference with purpose and required flag
|
|
38
|
+
*/
|
|
39
|
+
export type SkillToolInput = string | Type<ToolContext> | SkillToolRef | SkillToolRefWithClass;
|
|
40
|
+
/**
|
|
41
|
+
* Detailed tool reference that includes a class for automatic name extraction.
|
|
42
|
+
*/
|
|
43
|
+
export interface SkillToolRefWithClass {
|
|
44
|
+
/**
|
|
45
|
+
* The tool class decorated with @Tool.
|
|
46
|
+
* The tool name will be extracted automatically.
|
|
47
|
+
*/
|
|
48
|
+
tool: Type<ToolContext>;
|
|
49
|
+
/**
|
|
50
|
+
* Optional description of why/how this tool is used in the skill.
|
|
51
|
+
*/
|
|
52
|
+
purpose?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether this tool is required for the skill to function.
|
|
55
|
+
*/
|
|
56
|
+
required?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Parameter definition for a skill.
|
|
60
|
+
* Parameters are inputs that customize skill behavior.
|
|
61
|
+
*/
|
|
62
|
+
export interface SkillParameter {
|
|
63
|
+
/**
|
|
64
|
+
* Parameter name (identifier).
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* Human-readable description of the parameter.
|
|
69
|
+
*/
|
|
70
|
+
description?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Whether this parameter is required.
|
|
73
|
+
* Default: false
|
|
74
|
+
*/
|
|
75
|
+
required?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Type hint for the parameter value.
|
|
78
|
+
* Default: 'string'
|
|
79
|
+
*/
|
|
80
|
+
type?: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
81
|
+
/**
|
|
82
|
+
* Default value for the parameter.
|
|
83
|
+
*/
|
|
84
|
+
default?: unknown;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Example usage scenario for a skill.
|
|
88
|
+
* Helps LLMs understand when and how to use the skill.
|
|
89
|
+
*/
|
|
90
|
+
export interface SkillExample {
|
|
91
|
+
/**
|
|
92
|
+
* Description of the scenario where this skill applies.
|
|
93
|
+
*/
|
|
94
|
+
scenario: string;
|
|
95
|
+
/**
|
|
96
|
+
* Optional parameter values for this example.
|
|
97
|
+
*/
|
|
98
|
+
parameters?: Record<string, unknown>;
|
|
99
|
+
/**
|
|
100
|
+
* Description of the expected outcome when the skill completes.
|
|
101
|
+
*/
|
|
102
|
+
expectedOutcome?: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Instruction source for a skill.
|
|
106
|
+
* Instructions can be provided inline, from a file, or from a URL.
|
|
107
|
+
*/
|
|
108
|
+
export type SkillInstructionSource = string | {
|
|
109
|
+
file: string;
|
|
110
|
+
} | {
|
|
111
|
+
url: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Declarative metadata describing what a Skill provides.
|
|
115
|
+
* Skills are modular knowledge/workflow packages that teach AI how to perform multi-step tasks.
|
|
116
|
+
*/
|
|
117
|
+
export interface SkillMetadata extends ExtendFrontMcpSkillMetadata {
|
|
118
|
+
/**
|
|
119
|
+
* Optional unique identifier for the skill.
|
|
120
|
+
* If omitted, the name will be used as the identifier.
|
|
121
|
+
*/
|
|
122
|
+
id?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Unique name for the skill.
|
|
125
|
+
* Used for discovery and invocation.
|
|
126
|
+
*/
|
|
127
|
+
name: string;
|
|
128
|
+
/**
|
|
129
|
+
* Short description of what the skill does.
|
|
130
|
+
* Used in search results and discovery.
|
|
131
|
+
*/
|
|
132
|
+
description: string;
|
|
133
|
+
/**
|
|
134
|
+
* Detailed instructions for performing the skill.
|
|
135
|
+
* Can be an inline string, file path, or URL.
|
|
136
|
+
*
|
|
137
|
+
* @example Inline instructions
|
|
138
|
+
* ```typescript
|
|
139
|
+
* instructions: 'Step 1: Review the PR...\nStep 2: Check for issues...'
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* @example File-based instructions
|
|
143
|
+
* ```typescript
|
|
144
|
+
* instructions: { file: './skills/review-pr.md' }
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* @example URL-based instructions
|
|
148
|
+
* ```typescript
|
|
149
|
+
* instructions: { url: 'https://example.com/skills/review-pr.md' }
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
instructions: SkillInstructionSource;
|
|
153
|
+
/**
|
|
154
|
+
* Tools that this skill uses or depends on.
|
|
155
|
+
* Can be tool classes (recommended), tool names, or detailed references.
|
|
156
|
+
*
|
|
157
|
+
* @example Using tool classes (recommended)
|
|
158
|
+
* ```typescript
|
|
159
|
+
* tools: [GitHubGetPRTool, GitHubAddCommentTool]
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @example Using tool classes with purpose
|
|
163
|
+
* ```typescript
|
|
164
|
+
* tools: [
|
|
165
|
+
* { tool: GitHubGetPRTool, purpose: 'Fetch PR details', required: true },
|
|
166
|
+
* { tool: GitHubAddCommentTool, purpose: 'Add review comments' },
|
|
167
|
+
* ]
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @example Using string names (for dynamic/external tools)
|
|
171
|
+
* ```typescript
|
|
172
|
+
* tools: ['github_create_pr', 'github_add_comment']
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* @example Mixed references
|
|
176
|
+
* ```typescript
|
|
177
|
+
* tools: [
|
|
178
|
+
* GitHubGetPRTool, // Class - name auto-extracted
|
|
179
|
+
* { tool: GitHubAddCommentTool, purpose: 'Add comments' },
|
|
180
|
+
* 'external_api_tool', // String - for dynamic tools
|
|
181
|
+
* { name: 'legacy_tool', purpose: 'Legacy integration', required: true },
|
|
182
|
+
* ]
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
tools?: SkillToolInput[];
|
|
186
|
+
/**
|
|
187
|
+
* Tags for categorization and discovery.
|
|
188
|
+
* Used to filter and search for skills.
|
|
189
|
+
*/
|
|
190
|
+
tags?: string[];
|
|
191
|
+
/**
|
|
192
|
+
* Input parameters that customize skill behavior.
|
|
193
|
+
*/
|
|
194
|
+
parameters?: SkillParameter[];
|
|
195
|
+
/**
|
|
196
|
+
* Usage examples demonstrating when to use this skill.
|
|
197
|
+
*/
|
|
198
|
+
examples?: SkillExample[];
|
|
199
|
+
/**
|
|
200
|
+
* Priority weight for search ranking.
|
|
201
|
+
* Higher values appear earlier in search results.
|
|
202
|
+
* Default: 0
|
|
203
|
+
*/
|
|
204
|
+
priority?: number;
|
|
205
|
+
/**
|
|
206
|
+
* If true, the skill will not be shown in discovery/search results.
|
|
207
|
+
* Can still be loaded directly by ID/name.
|
|
208
|
+
* Use case: internal skills not meant for general discovery.
|
|
209
|
+
* Default: false
|
|
210
|
+
*/
|
|
211
|
+
hideFromDiscovery?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Validation mode for tool references.
|
|
214
|
+
* Controls what happens when the skill references tools that are missing or hidden.
|
|
215
|
+
*
|
|
216
|
+
* - 'strict': Fail initialization if any referenced tools are missing/hidden
|
|
217
|
+
* - 'warn': Log warnings but continue initialization (default)
|
|
218
|
+
* - 'ignore': Skip tool validation entirely
|
|
219
|
+
*
|
|
220
|
+
* @default 'warn'
|
|
221
|
+
*
|
|
222
|
+
* @example Strict validation (fail on missing tools)
|
|
223
|
+
* ```typescript
|
|
224
|
+
* @Skill({
|
|
225
|
+
* name: 'review-pr',
|
|
226
|
+
* tools: ['github_get_pr', 'github_add_comment'],
|
|
227
|
+
* toolValidation: 'strict', // Fail if tools missing
|
|
228
|
+
* })
|
|
229
|
+
* class ReviewPRSkill {}
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
toolValidation?: 'strict' | 'warn' | 'ignore';
|
|
233
|
+
/**
|
|
234
|
+
* Where this skill is visible for discovery.
|
|
235
|
+
* Controls which discovery mechanisms can find this skill.
|
|
236
|
+
*
|
|
237
|
+
* - 'mcp': Only via searchSkills/loadSkill MCP tools
|
|
238
|
+
* - 'http': Only via HTTP API endpoints (/llm.txt, /skills)
|
|
239
|
+
* - 'both': Visible in both MCP and HTTP (default)
|
|
240
|
+
*
|
|
241
|
+
* Note: hideFromDiscovery=true hides from search but skill is still loadable by ID.
|
|
242
|
+
*
|
|
243
|
+
* @default 'both'
|
|
244
|
+
*
|
|
245
|
+
* @example HTTP-only skill (not visible via MCP searchSkills)
|
|
246
|
+
* ```typescript
|
|
247
|
+
* @Skill({
|
|
248
|
+
* name: 'internal-process',
|
|
249
|
+
* visibility: 'http',
|
|
250
|
+
* instructions: { file: './internal.md' },
|
|
251
|
+
* })
|
|
252
|
+
* class InternalProcessSkill {}
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
visibility?: 'mcp' | 'http' | 'both';
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Validation mode for skill tool references.
|
|
259
|
+
*/
|
|
260
|
+
export type SkillToolValidationMode = 'strict' | 'warn' | 'ignore';
|
|
261
|
+
/**
|
|
262
|
+
* Zod schema for validating SkillMetadata.
|
|
263
|
+
*/
|
|
264
|
+
/**
|
|
265
|
+
* Visibility mode for skill discovery.
|
|
266
|
+
* Controls which mechanisms can find this skill.
|
|
267
|
+
*/
|
|
268
|
+
export type SkillVisibility = 'mcp' | 'http' | 'both';
|
|
269
|
+
export declare const skillMetadataSchema: z.ZodObject<{
|
|
270
|
+
id: z.ZodOptional<z.ZodString>;
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
description: z.ZodString;
|
|
273
|
+
instructions: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
274
|
+
file: z.ZodString;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
url: z.ZodString;
|
|
277
|
+
}, z.core.$strict>]>;
|
|
278
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>, z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
281
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
tool: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
284
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
285
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
286
|
+
}, z.core.$strip>]>>>;
|
|
287
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
description: z.ZodOptional<z.ZodString>;
|
|
291
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
292
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
string: "string";
|
|
294
|
+
number: "number";
|
|
295
|
+
boolean: "boolean";
|
|
296
|
+
object: "object";
|
|
297
|
+
array: "array";
|
|
298
|
+
}>>>;
|
|
299
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
300
|
+
}, z.core.$strip>>>;
|
|
301
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
|
+
scenario: z.ZodString;
|
|
303
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
304
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
305
|
+
}, z.core.$strip>>>;
|
|
306
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
307
|
+
hideFromDiscovery: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
308
|
+
toolValidation: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
strict: "strict";
|
|
310
|
+
warn: "warn";
|
|
311
|
+
ignore: "ignore";
|
|
312
|
+
}>>>;
|
|
313
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
http: "http";
|
|
315
|
+
mcp: "mcp";
|
|
316
|
+
both: "both";
|
|
317
|
+
}>>>;
|
|
318
|
+
}, z.core.$loose>;
|
|
319
|
+
/**
|
|
320
|
+
* Type-safe parsed SkillMetadata from Zod schema.
|
|
321
|
+
*/
|
|
322
|
+
export type ParsedSkillMetadata = z.output<typeof skillMetadataSchema>;
|
|
323
|
+
/**
|
|
324
|
+
* Check if a value is a SkillToolRefWithClass (has 'tool' property with a class).
|
|
325
|
+
*/
|
|
326
|
+
export declare function isToolRefWithClass(ref: unknown): ref is SkillToolRefWithClass;
|
|
327
|
+
/**
|
|
328
|
+
* Check if a value is a standard SkillToolRef (has 'name' property).
|
|
329
|
+
*/
|
|
330
|
+
export declare function isToolRefWithName(ref: unknown): ref is SkillToolRef;
|
|
331
|
+
/**
|
|
332
|
+
* Extract tool name from a tool class decorated with @Tool.
|
|
333
|
+
* Returns undefined if the class is not a valid tool or lacks a name.
|
|
334
|
+
*/
|
|
335
|
+
export declare function getToolNameFromClass(toolClass: Type<ToolContext>): string | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* Normalize a tool reference to the full SkillToolRef format.
|
|
338
|
+
* Supports: string, tool class, SkillToolRef, or SkillToolRefWithClass.
|
|
339
|
+
*
|
|
340
|
+
* @param ref - The tool reference to normalize
|
|
341
|
+
* @returns Normalized SkillToolRef with name, purpose, and required flag
|
|
342
|
+
* @throws InvalidInputError if tool class doesn't have a valid name
|
|
343
|
+
*/
|
|
344
|
+
export declare function normalizeToolRef(ref: SkillToolInput): SkillToolRef;
|
|
345
|
+
/**
|
|
346
|
+
* Extract tool names from skill metadata.
|
|
347
|
+
* Handles all supported tool reference formats.
|
|
348
|
+
*/
|
|
349
|
+
export declare function extractToolNames(metadata: SkillMetadata): string[];
|
|
350
|
+
/**
|
|
351
|
+
* Check if instruction source is inline string.
|
|
352
|
+
*/
|
|
353
|
+
export declare function isInlineInstructions(source: SkillInstructionSource): source is string;
|
|
354
|
+
/**
|
|
355
|
+
* Check if instruction source is a file path.
|
|
356
|
+
*/
|
|
357
|
+
export declare function isFileInstructions(source: SkillInstructionSource): source is {
|
|
358
|
+
file: string;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Check if instruction source is a URL.
|
|
362
|
+
*/
|
|
363
|
+
export declare function isUrlInstructions(source: SkillInstructionSource): source is {
|
|
364
|
+
url: string;
|
|
365
|
+
};
|
|
366
|
+
//# sourceMappingURL=skill.metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/skill.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAI1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,CAAC,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,2BAA2B;KAAG;CACzC;AAED;;;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I,qBAAqB,CAO7E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,YAAY,CAEnE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,MAAM,GAAG,SAAS,CAQrF;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,YAAY,CAuClE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,EAAE,CAsBlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,IAAI,MAAM,CAErF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,IAAI;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAE7F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,IAAI;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAE3F"}
|
|
@@ -2,6 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { JSONSchema } from 'zod/v4/core';
|
|
3
3
|
/** JSON Schema type from Zod v4 */
|
|
4
4
|
type JsonSchema = JSONSchema.JSONSchema;
|
|
5
|
+
/**
|
|
6
|
+
* Auth provider mapping for tool metadata.
|
|
7
|
+
* Used in @Tool({ authProviders: [...] }) decorator.
|
|
8
|
+
*/
|
|
9
|
+
export interface ToolAuthProviderMapping {
|
|
10
|
+
/** Provider name */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Whether credential is required (default: true) */
|
|
13
|
+
required?: boolean;
|
|
14
|
+
/** Required scopes for OAuth providers */
|
|
15
|
+
scopes?: string[];
|
|
16
|
+
/** Alias to use when injecting (for multiple providers) */
|
|
17
|
+
alias?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Auth provider reference - can be a string (provider name) or full mapping
|
|
21
|
+
*/
|
|
22
|
+
export type ToolAuthProviderRef = string | ToolAuthProviderMapping;
|
|
5
23
|
import { ToolUIConfig } from './tool-ui.metadata';
|
|
6
24
|
import { ToolInputOf, ToolOutputOf } from '../decorators';
|
|
7
25
|
declare global {
|
|
@@ -210,6 +228,11 @@ export interface ToolMetadata<InSchema = ToolInputType, OutSchema extends ToolOu
|
|
|
210
228
|
* Zod schema describing the structure of the tool's successful output.
|
|
211
229
|
*/
|
|
212
230
|
outputSchema?: OutSchema;
|
|
231
|
+
/**
|
|
232
|
+
* Raw JSON Schema representation of the output schema.
|
|
233
|
+
* Used by OpenAPI tools and tool/list to expose structured output schema.
|
|
234
|
+
*/
|
|
235
|
+
rawOutputSchema?: JsonSchema;
|
|
213
236
|
/**
|
|
214
237
|
* Optional list of tags/labels that categorize the tool for discovery and filtering.
|
|
215
238
|
*/
|
|
@@ -229,6 +252,47 @@ export interface ToolMetadata<InSchema = ToolInputType, OutSchema extends ToolOu
|
|
|
229
252
|
*/
|
|
230
253
|
examples?: ToolExample[];
|
|
231
254
|
ui?: ToolUIConfig<ToolInputOf<InSchema>, ToolOutputOf<OutSchema>>;
|
|
255
|
+
/**
|
|
256
|
+
* Auth providers required by this tool.
|
|
257
|
+
* Credentials will be loaded before tool execution.
|
|
258
|
+
*
|
|
259
|
+
* @example Single provider (shorthand)
|
|
260
|
+
* ```typescript
|
|
261
|
+
* @Tool({ name: 'create-issue', authProviders: ['github'] })
|
|
262
|
+
* ```
|
|
263
|
+
*
|
|
264
|
+
* @example Single provider with options
|
|
265
|
+
* ```typescript
|
|
266
|
+
* @Tool({
|
|
267
|
+
* name: 'deploy',
|
|
268
|
+
* authProviders: [{
|
|
269
|
+
* name: 'github',
|
|
270
|
+
* required: true,
|
|
271
|
+
* scopes: ['repo', 'workflow']
|
|
272
|
+
* }]
|
|
273
|
+
* })
|
|
274
|
+
* ```
|
|
275
|
+
*
|
|
276
|
+
* @example Multiple providers
|
|
277
|
+
* ```typescript
|
|
278
|
+
* @Tool({
|
|
279
|
+
* name: 'sync-data',
|
|
280
|
+
* authProviders: ['github', 'jira']
|
|
281
|
+
* })
|
|
282
|
+
* ```
|
|
283
|
+
*
|
|
284
|
+
* @example Multiple providers with options
|
|
285
|
+
* ```typescript
|
|
286
|
+
* @Tool({
|
|
287
|
+
* name: 'multi-sync',
|
|
288
|
+
* authProviders: [
|
|
289
|
+
* { name: 'github', required: true },
|
|
290
|
+
* { name: 'jira', required: false }
|
|
291
|
+
* ]
|
|
292
|
+
* })
|
|
293
|
+
* ```
|
|
294
|
+
*/
|
|
295
|
+
authProviders?: ToolAuthProviderRef[];
|
|
232
296
|
}
|
|
233
297
|
export declare const frontMcpToolMetadataSchema: z.ZodObject<{
|
|
234
298
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -257,6 +321,7 @@ export declare const frontMcpToolMetadataSchema: z.ZodObject<{
|
|
|
257
321
|
resource: "resource";
|
|
258
322
|
resource_link: "resource_link";
|
|
259
323
|
}>]>, z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.ZodRecord<z.ZodString, z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>]>>]>>;
|
|
324
|
+
rawOutputSchema: z.ZodOptional<z.ZodAny>;
|
|
260
325
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
326
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
262
327
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -272,6 +337,12 @@ export declare const frontMcpToolMetadataSchema: z.ZodObject<{
|
|
|
272
337
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
273
338
|
}, z.core.$strip>>>;
|
|
274
339
|
ui: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
340
|
+
authProviders: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
341
|
+
name: z.ZodString;
|
|
342
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
343
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
344
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strict>]>>>;
|
|
275
346
|
}, z.core.$loose>;
|
|
276
347
|
export {};
|
|
277
348
|
//# sourceMappingURL=tool.metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/tool.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,mCAAmC;AACnC,KAAK,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tool.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/tool.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,mCAAmC;AACnC,KAAK,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;AAMxC;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MA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B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/records/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Type } from '@frontmcp/di';
|
|
2
|
+
import { SkillContext } from '../interfaces';
|
|
3
|
+
import { SkillMetadata } from '../metadata';
|
|
4
|
+
/**
|
|
5
|
+
* Kinds of skill records supported by the framework.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SkillKind {
|
|
8
|
+
/**
|
|
9
|
+
* Class-based skill defined with @Skill decorator.
|
|
10
|
+
*/
|
|
11
|
+
CLASS_TOKEN = "CLASS_TOKEN",
|
|
12
|
+
/**
|
|
13
|
+
* Inline skill object created with skill() helper.
|
|
14
|
+
*/
|
|
15
|
+
VALUE = "VALUE",
|
|
16
|
+
/**
|
|
17
|
+
* File-based skill loaded from a .skill.md or similar file.
|
|
18
|
+
*/
|
|
19
|
+
FILE = "FILE"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Record for class-based skills using @Skill decorator.
|
|
23
|
+
*/
|
|
24
|
+
export type SkillClassTokenRecord = {
|
|
25
|
+
kind: SkillKind.CLASS_TOKEN;
|
|
26
|
+
provide: Type<SkillContext>;
|
|
27
|
+
metadata: SkillMetadata;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Record for inline skill objects created with skill() helper.
|
|
31
|
+
* The token is a Symbol used for registration.
|
|
32
|
+
*/
|
|
33
|
+
export type SkillValueRecord = {
|
|
34
|
+
kind: SkillKind.VALUE;
|
|
35
|
+
provide: symbol;
|
|
36
|
+
metadata: SkillMetadata;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Record for file-based skills loaded from external files.
|
|
40
|
+
* Used by loaders (e.g., markdown loader) to register skills.
|
|
41
|
+
*/
|
|
42
|
+
export type SkillFileRecord = {
|
|
43
|
+
kind: SkillKind.FILE;
|
|
44
|
+
provide: symbol;
|
|
45
|
+
metadata: SkillMetadata;
|
|
46
|
+
/**
|
|
47
|
+
* Path to the source file (for reloading/hot-reload support).
|
|
48
|
+
*/
|
|
49
|
+
filePath: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Union of all skill record types.
|
|
53
|
+
*/
|
|
54
|
+
export type SkillRecord = SkillClassTokenRecord | SkillValueRecord | SkillFileRecord;
|
|
55
|
+
//# sourceMappingURL=skill.record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.record.d.ts","sourceRoot":"","sources":["../../../src/common/records/skill.record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC;IAC5B,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,qBAAqB,GAAG,gBAAgB,GAAG,eAAe,CAAC"}
|
|
@@ -11,4 +11,5 @@ export declare const annotatedFrontMcpResourcesSchema: z.ZodCustom<Type<unknown>
|
|
|
11
11
|
export declare const annotatedFrontMcpPromptsSchema: z.ZodCustom<Type<unknown>, Type<unknown>>;
|
|
12
12
|
export declare const annotatedFrontMcpLoggerSchema: z.ZodCustom<Type<unknown>, Type<unknown>>;
|
|
13
13
|
export declare const annotatedFrontMcpAgentsSchema: z.ZodCustom<AgentType, AgentType>;
|
|
14
|
+
export declare const annotatedFrontMcpSkillsSchema: z.ZodCustom<Type<unknown>, Type<unknown>>;
|
|
14
15
|
//# sourceMappingURL=annotated-class.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotated-class.schema.d.ts","sourceRoot":"","sources":["../../../src/common/schemas/annotated-class.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"annotated-class.schema.d.ts","sourceRoot":"","sources":["../../../src/common/schemas/annotated-class.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,0BAA0B,2CAkBtC,CAAC;AAEF,eAAO,MAAM,gCAAgC,2CAqB5C,CAAC;AAEF,eAAO,MAAM,oCAAoC,2CAqBhD,CAAC;AAEF,eAAO,MAAM,8BAA8B,2CAqB1C,CAAC;AAEF,eAAO,MAAM,+BAA+B,2CAqB3C,CAAC;AAEF,eAAO,MAAM,4BAA4B,2CAQxC,CAAC;AAEF,eAAO,MAAM,gCAAgC,2CAkB5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,2CAW1C,CAAC;AAEF,eAAO,MAAM,6BAA6B,2CAGzC,CAAC;AAEF,eAAO,MAAM,6BAA6B,mCA6BzC,CAAC;AAEF,eAAO,MAAM,6BAA6B,2CA6BzC,CAAC"}
|