@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,169 @@
|
|
|
1
|
+
import { FlowBase, FlowRunOptions } from '../../common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import type { SkillLoadResult } from '../skill-storage.interface';
|
|
4
|
+
import type { SkillActivationResult } from '../session/skill-session.types';
|
|
5
|
+
declare const inputSchema: z.ZodObject<{
|
|
6
|
+
request: z.ZodObject<{
|
|
7
|
+
method: z.ZodLiteral<"skills/load">;
|
|
8
|
+
params: z.ZodObject<{
|
|
9
|
+
skillIds: z.ZodArray<z.ZodString>;
|
|
10
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
full: "full";
|
|
12
|
+
"instructions-only": "instructions-only";
|
|
13
|
+
}>>;
|
|
14
|
+
activateSession: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
policyMode: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
strict: "strict";
|
|
17
|
+
approval: "approval";
|
|
18
|
+
permissive: "permissive";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
ctx: z.ZodUnknown;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const outputSchema: z.ZodObject<{
|
|
25
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
description: z.ZodString;
|
|
29
|
+
instructions: z.ZodString;
|
|
30
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
33
|
+
available: z.ZodBoolean;
|
|
34
|
+
inputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
type: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
availableTools: z.ZodArray<z.ZodString>;
|
|
44
|
+
missingTools: z.ZodArray<z.ZodString>;
|
|
45
|
+
isComplete: z.ZodBoolean;
|
|
46
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
47
|
+
formattedContent: z.ZodString;
|
|
48
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
activated: z.ZodBoolean;
|
|
50
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
policyMode: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
strict: "strict";
|
|
53
|
+
approval: "approval";
|
|
54
|
+
permissive: "permissive";
|
|
55
|
+
}>>;
|
|
56
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
summary: z.ZodObject<{
|
|
60
|
+
totalSkills: z.ZodNumber;
|
|
61
|
+
totalTools: z.ZodNumber;
|
|
62
|
+
allToolsAvailable: z.ZodBoolean;
|
|
63
|
+
combinedWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
nextSteps: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
interface LoadResultWithActivation {
|
|
68
|
+
loadResult: SkillLoadResult;
|
|
69
|
+
activationResult?: SkillActivationResult;
|
|
70
|
+
}
|
|
71
|
+
declare const stateSchema: z.ZodObject<{
|
|
72
|
+
skillIds: z.ZodArray<z.ZodString>;
|
|
73
|
+
format: z.ZodEnum<{
|
|
74
|
+
full: "full";
|
|
75
|
+
"instructions-only": "instructions-only";
|
|
76
|
+
}>;
|
|
77
|
+
activateSession: z.ZodBoolean;
|
|
78
|
+
policyMode: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
strict: "strict";
|
|
80
|
+
approval: "approval";
|
|
81
|
+
permissive: "permissive";
|
|
82
|
+
}>>;
|
|
83
|
+
loadResults: z.ZodType<LoadResultWithActivation[] | undefined>;
|
|
84
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
description: z.ZodString;
|
|
90
|
+
instructions: z.ZodString;
|
|
91
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
94
|
+
available: z.ZodBoolean;
|
|
95
|
+
inputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
96
|
+
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
description: z.ZodOptional<z.ZodString>;
|
|
101
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
type: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
availableTools: z.ZodArray<z.ZodString>;
|
|
105
|
+
missingTools: z.ZodArray<z.ZodString>;
|
|
106
|
+
isComplete: z.ZodBoolean;
|
|
107
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
108
|
+
formattedContent: z.ZodString;
|
|
109
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
activated: z.ZodBoolean;
|
|
111
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
policyMode: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
strict: "strict";
|
|
114
|
+
approval: "approval";
|
|
115
|
+
permissive: "permissive";
|
|
116
|
+
}>>;
|
|
117
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
summary: z.ZodObject<{
|
|
121
|
+
totalSkills: z.ZodNumber;
|
|
122
|
+
totalTools: z.ZodNumber;
|
|
123
|
+
allToolsAvailable: z.ZodBoolean;
|
|
124
|
+
combinedWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
nextSteps: z.ZodString;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
declare const plan: {
|
|
130
|
+
readonly pre: ["parseInput"];
|
|
131
|
+
readonly execute: ["loadSkills", "activateSessions"];
|
|
132
|
+
readonly finalize: ["finalize"];
|
|
133
|
+
};
|
|
134
|
+
declare global {
|
|
135
|
+
interface ExtendFlows {
|
|
136
|
+
'skills:load': FlowRunOptions<LoadSkillFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
declare const name: "skills:load";
|
|
140
|
+
/**
|
|
141
|
+
* Flow for loading one or more skills' full content.
|
|
142
|
+
*
|
|
143
|
+
* This flow retrieves skill instructions, tool requirements, and parameters.
|
|
144
|
+
* Use this after searching for skills to get the detailed workflow guides.
|
|
145
|
+
*
|
|
146
|
+
* @example MCP Request
|
|
147
|
+
* ```json
|
|
148
|
+
* {
|
|
149
|
+
* "method": "skills/load",
|
|
150
|
+
* "params": {
|
|
151
|
+
* "skillIds": ["review-pr", "suggest-fixes"],
|
|
152
|
+
* "format": "full"
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
export default class LoadSkillFlow extends FlowBase<typeof name> {
|
|
158
|
+
logger: import("../../common").FrontMcpLogger;
|
|
159
|
+
parseInput(): Promise<void>;
|
|
160
|
+
loadSkills(): Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* Activate skill sessions for tool authorization enforcement.
|
|
163
|
+
* This stage only runs if activateSession is true in the input.
|
|
164
|
+
*/
|
|
165
|
+
activateSessions(): Promise<void>;
|
|
166
|
+
finalize(): Promise<void>;
|
|
167
|
+
}
|
|
168
|
+
export {};
|
|
169
|
+
//# sourceMappingURL=load-skill.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-skill.flow.d.ts","sourceRoot":"","sources":["../../../src/skill/flows/load-skill.flow.ts"],"names":[],"mappings":"AAEA,O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Object<{
|
|
4
|
+
request: z.ZodObject<{
|
|
5
|
+
method: z.ZodLiteral<"skills/search">;
|
|
6
|
+
params: z.ZodObject<{
|
|
7
|
+
query: z.ZodString;
|
|
8
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
requireAllTools: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
ctx: z.ZodUnknown;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const outputSchema: z.ZodObject<{
|
|
17
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
score: z.ZodNumber;
|
|
22
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
available: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
source: z.ZodEnum<{
|
|
28
|
+
local: "local";
|
|
29
|
+
external: "external";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
total: z.ZodNumber;
|
|
33
|
+
hasMore: z.ZodBoolean;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const stateSchema: z.ZodObject<{
|
|
36
|
+
query: z.ZodString;
|
|
37
|
+
options: z.ZodObject<{
|
|
38
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
requireAllTools: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
results: z.ZodArray<z.ZodAny>;
|
|
44
|
+
output: z.ZodObject<{
|
|
45
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
score: z.ZodNumber;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
available: z.ZodBoolean;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
source: z.ZodEnum<{
|
|
56
|
+
local: "local";
|
|
57
|
+
external: "external";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
total: z.ZodNumber;
|
|
61
|
+
hasMore: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const plan: {
|
|
65
|
+
readonly pre: ["parseInput"];
|
|
66
|
+
readonly execute: ["search"];
|
|
67
|
+
readonly finalize: ["finalize"];
|
|
68
|
+
};
|
|
69
|
+
declare global {
|
|
70
|
+
interface ExtendFlows {
|
|
71
|
+
'skills:search': FlowRunOptions<SearchSkillsFlow, typeof plan, typeof inputSchema, typeof outputSchema, typeof stateSchema>;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
declare const name: "skills:search";
|
|
75
|
+
/**
|
|
76
|
+
* Flow for searching skills.
|
|
77
|
+
*
|
|
78
|
+
* This flow handles skill discovery by searching through both local
|
|
79
|
+
* and external skill providers. Results include relevance scores
|
|
80
|
+
* and tool availability information.
|
|
81
|
+
*
|
|
82
|
+
* @example MCP Request
|
|
83
|
+
* ```json
|
|
84
|
+
* {
|
|
85
|
+
* "method": "skills/search",
|
|
86
|
+
* "params": {
|
|
87
|
+
* "query": "review pull request",
|
|
88
|
+
* "tags": ["github"],
|
|
89
|
+
* "limit": 10
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export default class SearchSkillsFlow extends FlowBase<typeof name> {
|
|
95
|
+
logger: import("../../common").FrontMcpLogger;
|
|
96
|
+
parseInput(): Promise<void>;
|
|
97
|
+
search(): Promise<void>;
|
|
98
|
+
finalize(): Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=search-skills.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-skills.flow.d.ts","sourceRoot":"","sources":["../../../src/skill/flows/search-skills.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAyB,cAAc,EAAoB,MAAM,cAAc,CAAC;AACvG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,WAAW;;;;;;;;;;;;iBAYf,CAAC;AAGH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;iBAmBhB,CAAC;AAKH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUf,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,eAAe,EAAE,cAAc,CAC7B,gBAAgB,EAChB,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,eAAwB,CAAC;AAGtC;;;;;;;;;;;;;;;;;;GAkBG;AAQH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IACjE,MAAM,wCAA8C;IAG9C,UAAU;IAyBV,MAAM;IAoBN,QAAQ;CA6Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/guards/index.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { FrontMcpLogger } from '../../common';
|
|
2
|
+
import type { SkillSessionManager } from '../session/skill-session.manager';
|
|
3
|
+
import type { ToolAuthorizationResult, SkillPolicyMode } from '../session/skill-session.types';
|
|
4
|
+
/**
|
|
5
|
+
* Options for the ToolAuthorizationGuard.
|
|
6
|
+
*/
|
|
7
|
+
export interface ToolAuthorizationGuardOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to throw an error when a tool is not allowed.
|
|
10
|
+
* If false, returns the authorization result without throwing.
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
throwOnDenied?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback for handling approval requests.
|
|
16
|
+
* Called when policyMode is 'approval' and tool is not in allowlist.
|
|
17
|
+
*/
|
|
18
|
+
onApprovalRequired?: (toolName: string, skillId: string | undefined) => Promise<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Callback for logging tool authorization attempts.
|
|
21
|
+
*/
|
|
22
|
+
onAuthorizationCheck?: (result: ToolAuthorizationResult) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Guard that checks tool authorization against the active skill session.
|
|
26
|
+
*
|
|
27
|
+
* This guard is used to enforce tool allowlists defined by skills.
|
|
28
|
+
* It integrates with the SkillSessionManager to check if a tool
|
|
29
|
+
* is authorized for the current skill session.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const guard = new ToolAuthorizationGuard(sessionManager, logger);
|
|
34
|
+
*
|
|
35
|
+
* // Before executing a tool
|
|
36
|
+
* await guard.check('github_get_pr'); // Throws if not allowed in strict mode
|
|
37
|
+
*
|
|
38
|
+
* // Or get the result without throwing
|
|
39
|
+
* const result = await guard.check('github_get_pr', { throwOnDenied: false });
|
|
40
|
+
* if (!result.allowed) {
|
|
41
|
+
* // Handle denial
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class ToolAuthorizationGuard {
|
|
46
|
+
private readonly sessionManager;
|
|
47
|
+
private readonly logger?;
|
|
48
|
+
private readonly defaultOptions;
|
|
49
|
+
constructor(sessionManager: SkillSessionManager, logger?: FrontMcpLogger, options?: ToolAuthorizationGuardOptions);
|
|
50
|
+
/**
|
|
51
|
+
* Check if a tool is authorized for the current skill session.
|
|
52
|
+
*
|
|
53
|
+
* @param toolName - Name of the tool to check
|
|
54
|
+
* @param options - Override options for this check
|
|
55
|
+
* @returns Authorization result
|
|
56
|
+
* @throws ToolNotAllowedError if tool is not allowed and throwOnDenied is true
|
|
57
|
+
* @throws ToolApprovalRequiredError if approval is required and not granted
|
|
58
|
+
*/
|
|
59
|
+
check(toolName: string, options?: ToolAuthorizationGuardOptions): Promise<ToolAuthorizationResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Check authorization and return a simple boolean.
|
|
62
|
+
* Does not throw errors.
|
|
63
|
+
*/
|
|
64
|
+
isAllowed(toolName: string): Promise<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the current policy mode.
|
|
67
|
+
*/
|
|
68
|
+
getPolicyMode(): SkillPolicyMode;
|
|
69
|
+
/**
|
|
70
|
+
* Check if there's an active skill session.
|
|
71
|
+
*/
|
|
72
|
+
hasActiveSkill(): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Get the tool allowlist for the current skill.
|
|
75
|
+
*/
|
|
76
|
+
getAllowlist(): string[];
|
|
77
|
+
/**
|
|
78
|
+
* Approve a tool for the current session.
|
|
79
|
+
* Used when handling manual approval flows.
|
|
80
|
+
*/
|
|
81
|
+
approveTool(toolName: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Deny a tool for the current session.
|
|
84
|
+
*/
|
|
85
|
+
denyTool(toolName: string): void;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=tool-authorization.guard.d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,MAAM,EAAE;IAIxB;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAIjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skill/hooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,wBAAwB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type FrontMcpLogger } from '../../common';
|
|
2
|
+
import type { SkillSessionManager } from '../session/skill-session.manager';
|
|
3
|
+
/**
|
|
4
|
+
* Options for configuring the SkillToolGuardHook.
|
|
5
|
+
*/
|
|
6
|
+
export interface SkillToolGuardHookOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Logger instance for debugging and audit logging.
|
|
9
|
+
*/
|
|
10
|
+
logger?: FrontMcpLogger;
|
|
11
|
+
/**
|
|
12
|
+
* Callback invoked when tool approval is required in 'approval' mode.
|
|
13
|
+
* Should return true if approved, false if denied.
|
|
14
|
+
* If not provided, ToolApprovalRequiredError will be thrown.
|
|
15
|
+
*/
|
|
16
|
+
onApprovalRequired?: (toolName: string, skillId: string) => Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to track tool calls for rate limiting.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
trackToolCalls?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Base interface for the skill tool guard hook class.
|
|
25
|
+
*/
|
|
26
|
+
export interface SkillToolGuardHookClass {
|
|
27
|
+
new (): {
|
|
28
|
+
checkSkillToolAuthorization(): Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a skill-based tool authorization guard hook.
|
|
33
|
+
*
|
|
34
|
+
* This hook integrates with the call-tool flow to enforce tool allowlists
|
|
35
|
+
* when a skill is active. It runs BEFORE the existing checkToolAuthorization
|
|
36
|
+
* stage to provide skill-level security.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const sessionManager = new SkillSessionManager({ defaultPolicyMode: 'strict' });
|
|
41
|
+
* const hook = createSkillToolGuardHook(sessionManager, { logger });
|
|
42
|
+
*
|
|
43
|
+
* // Register with hook registry
|
|
44
|
+
* scope.hooks.register(hook);
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param sessionManager - The skill session manager instance
|
|
48
|
+
* @param options - Configuration options
|
|
49
|
+
* @returns Hook class that can be registered with the hook registry
|
|
50
|
+
*/
|
|
51
|
+
export declare function createSkillToolGuardHook(sessionManager: SkillSessionManager, options?: SkillToolGuardHookOptions): SkillToolGuardHookClass;
|
|
52
|
+
//# sourceMappingURL=skill-tool.hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-tool.hook.d.ts","sourceRoot":"","sources":["../../../src/skill/hooks/skill-tool.hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAK5E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7E;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAaD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ;QAAE,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC;CAC1D;AA8DD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,mBAAmB,EACnC,OAAO,GAAE,yBAA8B,GACtC,uBAAuB,CA8EzB"}
|
package/skill/index.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills Module
|
|
3
|
+
*
|
|
4
|
+
* Skills are modular knowledge/workflow packages that teach AI how to perform
|
|
5
|
+
* multi-step tasks using tools. Unlike tools (individual actions), skills are
|
|
6
|
+
* recipes/playbooks that combine tools into coherent workflows.
|
|
7
|
+
*
|
|
8
|
+
* @example Defining a skill with decorator
|
|
9
|
+
* ```typescript
|
|
10
|
+
* @Skill({
|
|
11
|
+
* name: 'review-pr',
|
|
12
|
+
* description: 'Review a GitHub pull request',
|
|
13
|
+
* instructions: `
|
|
14
|
+
* 1. Fetch the PR details using github_get_pr
|
|
15
|
+
* 2. Review each changed file...
|
|
16
|
+
* `,
|
|
17
|
+
* tools: ['github_get_pr', 'github_add_comment'],
|
|
18
|
+
* })
|
|
19
|
+
* class ReviewPRSkill extends SkillContext { ... }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example Defining a skill with helper
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const deploySkill = skill({
|
|
25
|
+
* name: 'deploy-app',
|
|
26
|
+
* description: 'Deploy application to production',
|
|
27
|
+
* instructions: { file: './skills/deploy.md' },
|
|
28
|
+
* tools: ['docker_build', 'k8s_apply'],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @module skill
|
|
33
|
+
*/
|
|
34
|
+
export { default as SkillRegistry } from './skill.registry';
|
|
35
|
+
export type { SkillRegistryInterface, IndexedSkill, SkillRegistryOptions, GetSkillsOptions } from './skill.registry';
|
|
36
|
+
export { SkillInstance, createSkillInstance } from './skill.instance';
|
|
37
|
+
export { SkillEmitter } from './skill.events';
|
|
38
|
+
export type { SkillChangeEvent, SkillChangeKind, SkillChangeScope } from './skill.events';
|
|
39
|
+
export type { SkillStorageProvider, SkillStorageProviderType, SkillSearchOptions, SkillSearchResult, SkillLoadResult, SkillListOptions, SkillListResult, MutableSkillStorageProvider, } from './skill-storage.interface';
|
|
40
|
+
export { MemorySkillProvider } from './providers/memory-skill.provider';
|
|
41
|
+
export type { MemorySkillProviderOptions } from './providers/memory-skill.provider';
|
|
42
|
+
export { ExternalSkillProviderBase } from './providers/external-skill.provider';
|
|
43
|
+
export type { ExternalSkillMode, ExternalSkillProviderOptions, ExternalSkillSearchOptions, ExternalSkillListOptions, } from './providers/external-skill.provider';
|
|
44
|
+
export { SkillToolValidator } from './skill-validator';
|
|
45
|
+
export type { ToolValidationResult } from './skill-validator';
|
|
46
|
+
export { createSkillStorageProvider, createMemorySkillProvider } from './skill-storage.factory';
|
|
47
|
+
export type { SkillStorageFactoryOptions, SkillStorageFactoryResult, VectorDBSkillProviderOptions, ExternalSkillProviderConfig, ExtendedSkillStorageFactoryResult, } from './skill-storage.factory';
|
|
48
|
+
export { computeSkillHash, computeSkillHashComponents, areSkillsEqual, createEmptySyncState, serializeSyncState, deserializeSyncState, MemorySyncStateStore, } from './sync';
|
|
49
|
+
export type { SkillHashComponents, SkillSyncStatus, SkillSyncEntry, SkillSyncState, SerializedSkillSyncState, SkillSyncStateStore, SyncResult, } from './sync';
|
|
50
|
+
export { normalizeSkill, isSkillRecord, skillDiscoveryDeps, collectSkillMetadata, loadInstructions, buildSkillContent, formatSkillForLLM, } from './skill.utils';
|
|
51
|
+
export { formatSkillsForLlmCompact, formatSkillsForLlmFull, formatSkillForLLMWithSchemas, skillToApiResponse, filterSkillsByVisibility, } from './skill-http.utils';
|
|
52
|
+
export type { CompactSkillSummary } from './skill-http.utils';
|
|
53
|
+
export { SearchSkillsFlow, LoadSkillFlow } from './flows';
|
|
54
|
+
export { SearchSkillsTool, LoadSkillsTool, LoadSkillTool, getSkillTools } from './tools';
|
|
55
|
+
export { SkillSessionManager } from './session/skill-session.manager';
|
|
56
|
+
export { MemorySkillSessionStore, createSkillSessionStore } from './session/skill-session-store.interface';
|
|
57
|
+
export type { SkillSessionStore } from './session/skill-session-store.interface';
|
|
58
|
+
export { serializeSessionState, deserializeSessionState, createEmptySessionState } from './session/skill-session.types';
|
|
59
|
+
export type { SkillSessionState, SkillSessionOptions, SkillActivationResult, ToolAuthorizationResult, SkillSessionEvent, SkillSecurityPolicy, SkillPolicyMode, SerializedSkillSessionState, } from './session/skill-session.types';
|
|
60
|
+
export { ToolAuthorizationGuard } from './guards/tool-authorization.guard';
|
|
61
|
+
export type { ToolAuthorizationGuardOptions } from './guards/tool-authorization.guard';
|
|
62
|
+
export { createSkillToolGuardHook, type SkillToolGuardHookOptions, type SkillToolGuardHookClass } from './hooks';
|
|
63
|
+
export { ToolNotAllowedError, ToolApprovalRequiredError } from './errors/tool-not-allowed.error';
|
|
64
|
+
export { SkillValidationError } from './errors/skill-validation.error';
|
|
65
|
+
export type { SkillValidationResult, SkillValidationReport } from './errors/skill-validation.error';
|
|
66
|
+
export { registerSkillCapabilities } from './skill-scope.helper';
|
|
67
|
+
export type { SkillScopeRegistrationOptions } from './skill-scope.helper';
|
|
68
|
+
export { detectSkillsOnlyMode, isSkillsOnlySession } from './skill-mode.utils';
|
|
69
|
+
export type { SkillsOnlySessionPayload } from './skill-mode.utils';
|
|
70
|
+
export { SkillHttpAuthValidator, createSkillHttpAuthValidator } from './auth';
|
|
71
|
+
export type { SkillHttpAuthContext, SkillHttpAuthResult, SkillHttpAuthValidatorOptions } from './auth';
|
|
72
|
+
export { SkillHttpCache, MemorySkillHttpCache, RedisSkillHttpCache, createSkillHttpCache, getSkillHttpCache, invalidateScopeCache, invalidateSkillInCache, disposeAllCaches, } from './cache';
|
|
73
|
+
export type { SkillHttpCacheOptions, SkillHttpCacheResult } from './cache';
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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