@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,108 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DottedPath, PathValue } from '../../../common/providers/base-config.provider';
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when a required config key is missing.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ConfigMissingError extends Error {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
constructor(key: string);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Error thrown when config validation fails.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ConfigValidationError extends Error {
|
|
14
|
+
readonly zodError: z.ZodError;
|
|
15
|
+
constructor(message: string, zodError: z.ZodError);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe configuration service with convict-like nested path access.
|
|
19
|
+
*
|
|
20
|
+
* Provides typed access to configuration values using dot notation paths.
|
|
21
|
+
* When used with a Zod schema, provides full type inference and autocomplete.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const schema = z.object({
|
|
26
|
+
* database: z.object({
|
|
27
|
+
* url: z.string(),
|
|
28
|
+
* port: z.number().default(5432),
|
|
29
|
+
* }),
|
|
30
|
+
* debug: z.boolean().default(false),
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* type Config = z.infer<typeof schema>;
|
|
34
|
+
* const config = new ConfigService<Config>(loadedConfig);
|
|
35
|
+
*
|
|
36
|
+
* // Full autocomplete and type inference
|
|
37
|
+
* config.get('database.url'); // string | undefined
|
|
38
|
+
* config.get('database.port'); // number | undefined
|
|
39
|
+
* config.getOrThrow('debug'); // boolean
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class ConfigService<TConfig extends object = Record<string, string>> {
|
|
43
|
+
private readonly config;
|
|
44
|
+
constructor(config: TConfig);
|
|
45
|
+
/**
|
|
46
|
+
* Get a configuration value using dot notation path.
|
|
47
|
+
* Returns undefined if not found.
|
|
48
|
+
*
|
|
49
|
+
* @param path - Dot notation path (e.g., 'database.url')
|
|
50
|
+
* @returns Value at path or undefined
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* config.get('database.url') // string | undefined
|
|
54
|
+
* config.get('server.port', 3000) // number
|
|
55
|
+
*/
|
|
56
|
+
get<P extends DottedPath<TConfig>>(path: P): PathValue<TConfig, P> | undefined;
|
|
57
|
+
get<P extends DottedPath<TConfig>>(path: P, defaultValue: PathValue<TConfig, P>): PathValue<TConfig, P>;
|
|
58
|
+
/**
|
|
59
|
+
* Get a required configuration value. Throws if not found.
|
|
60
|
+
*
|
|
61
|
+
* @param path - Dot notation path (e.g., 'database.url')
|
|
62
|
+
* @returns Value at path
|
|
63
|
+
* @throws ConfigMissingError if not defined
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* config.getOrThrow('database.url') // string (throws if missing)
|
|
67
|
+
*/
|
|
68
|
+
getOrThrow<P extends DottedPath<TConfig>>(path: P): PathValue<TConfig, P>;
|
|
69
|
+
/**
|
|
70
|
+
* Alias for getOrThrow.
|
|
71
|
+
*/
|
|
72
|
+
getRequired<P extends DottedPath<TConfig>>(path: P): PathValue<TConfig, P>;
|
|
73
|
+
/**
|
|
74
|
+
* Check if a configuration path exists and has a value.
|
|
75
|
+
*
|
|
76
|
+
* @param path - Dot notation path (e.g., 'database.url')
|
|
77
|
+
* @returns True if path exists and has a defined value
|
|
78
|
+
*/
|
|
79
|
+
has(path: string): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Get the entire configuration object.
|
|
82
|
+
*/
|
|
83
|
+
getAll(): TConfig;
|
|
84
|
+
/**
|
|
85
|
+
* Get the parsed configuration with a specific type.
|
|
86
|
+
* Useful when you need to cast to a known type.
|
|
87
|
+
*/
|
|
88
|
+
getParsed<T = TConfig>(): T;
|
|
89
|
+
/**
|
|
90
|
+
* Get a number value from configuration.
|
|
91
|
+
* Parses string values to numbers if needed.
|
|
92
|
+
*
|
|
93
|
+
* @param path - Dot notation path
|
|
94
|
+
* @param defaultValue - Default value if not found or not a number
|
|
95
|
+
* @returns Number value or NaN
|
|
96
|
+
*/
|
|
97
|
+
getNumber(path: string, defaultValue?: number): number;
|
|
98
|
+
/**
|
|
99
|
+
* Get a boolean value from configuration.
|
|
100
|
+
* Parses string values: 'true', '1', 'yes', 'on' -> true (case-insensitive)
|
|
101
|
+
*
|
|
102
|
+
* @param path - Dot notation path
|
|
103
|
+
* @param defaultValue - Default value if not found
|
|
104
|
+
* @returns Boolean value
|
|
105
|
+
*/
|
|
106
|
+
getBoolean(path: string, defaultValue?: boolean): boolean;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=config.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../../src/builtin/config/providers/config.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAEvF;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBAET,GAAG,EAAE,MAAM;CAKxB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC;gBAElB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ;CAMlD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAKa,aAAa,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IACxE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;gBAErB,MAAM,EAAE,OAAO;IAI3B;;;;;;;;;;OAUG;IACH,GAAG,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,SAAS;IAC9E,GAAG,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IAgBvG;;;;;;;;;OASG;IACH,UAAU,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IAQzE;;OAEG;IACH,WAAW,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IAI1E;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAe1B;;OAEG;IACH,MAAM,IAAI,OAAO;IAIjB;;;OAGG;IACH,SAAS,CAAC,CAAC,GAAG,OAAO,KAAK,CAAC;IAI3B;;;;;;;OAOG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM;IAYtD;;;;;;;OAOG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO;CAW1D"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Parse a .env file content into key-value pairs.
|
|
4
|
+
* Follows dotenv parsing rules:
|
|
5
|
+
* - Supports KEY=value format
|
|
6
|
+
* - Supports quoted values (single and double quotes)
|
|
7
|
+
* - Supports # comments
|
|
8
|
+
* - Trims whitespace
|
|
9
|
+
* - Expands escape sequences in double-quoted values (\n, \r, \t)
|
|
10
|
+
*
|
|
11
|
+
* @param content - Raw content of a .env file
|
|
12
|
+
* @returns Record of key-value pairs
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseEnvContent(content: string): Record<string, string>;
|
|
15
|
+
/**
|
|
16
|
+
* Load environment variables from .env files.
|
|
17
|
+
* Follows NestJS-style priority: .env.local overrides .env
|
|
18
|
+
*
|
|
19
|
+
* @param basePath - Base directory to resolve files from
|
|
20
|
+
* @param envPath - Path to base .env file (relative to basePath)
|
|
21
|
+
* @param localEnvPath - Path to local override file (relative to basePath)
|
|
22
|
+
* @returns Record of merged environment variables
|
|
23
|
+
*/
|
|
24
|
+
export declare function loadEnvFiles(basePath?: string, envPath?: string, localEnvPath?: string): Promise<Record<string, string>>;
|
|
25
|
+
/**
|
|
26
|
+
* Synchronously parse environment content.
|
|
27
|
+
* Use this for CLI where async is not needed.
|
|
28
|
+
*/
|
|
29
|
+
export declare function parseEnvContentSync(content: string): Record<string, string>;
|
|
30
|
+
/**
|
|
31
|
+
* Populate process.env with loaded values.
|
|
32
|
+
* By default, does not override existing values.
|
|
33
|
+
*
|
|
34
|
+
* @param env - Environment variables to populate
|
|
35
|
+
* @param override - Whether to override existing values (default: false)
|
|
36
|
+
*/
|
|
37
|
+
export declare function populateProcessEnv(env: Record<string, string>, override?: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Convert a schema path to environment variable name.
|
|
40
|
+
* Example: 'database.url' -> 'DATABASE_URL'
|
|
41
|
+
*/
|
|
42
|
+
export declare function pathToEnvKey(path: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* Set a value at a nested path in an object.
|
|
45
|
+
* Example: setNestedValue({}, 'database.url', 'x') -> { database: { url: 'x' } }
|
|
46
|
+
*
|
|
47
|
+
* @security Validates keys to prevent prototype pollution attacks.
|
|
48
|
+
* Paths containing __proto__, constructor, or prototype are silently ignored.
|
|
49
|
+
* Uses Object.create(null) for new nested objects to avoid prototype chain.
|
|
50
|
+
*/
|
|
51
|
+
export declare function setNestedValue(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
52
|
+
/**
|
|
53
|
+
* Get a value from a nested path in an object.
|
|
54
|
+
* Example: getNestedValue({ database: { url: 'x' } }, 'database.url') -> 'x'
|
|
55
|
+
*
|
|
56
|
+
* @security Validates keys to prevent prototype pollution attacks.
|
|
57
|
+
* Paths containing __proto__, constructor, or prototype return undefined.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getNestedValue(obj: Record<string, unknown>, path: string): unknown;
|
|
60
|
+
/**
|
|
61
|
+
* Extract all leaf paths from a Zod schema.
|
|
62
|
+
* Handles ZodDefault, ZodOptional, and other wrapper types.
|
|
63
|
+
*
|
|
64
|
+
* Example: z.object({ database: z.object({ url: z.string() }) }) -> ['database.url']
|
|
65
|
+
*/
|
|
66
|
+
export declare function extractSchemaPaths(schema: z.ZodType, prefix?: string): string[];
|
|
67
|
+
/**
|
|
68
|
+
* Map flat environment variables to nested config object.
|
|
69
|
+
* Uses schema paths to determine which env vars to look for.
|
|
70
|
+
*
|
|
71
|
+
* @param env - Flat environment variables (e.g., { DATABASE_URL: '...' })
|
|
72
|
+
* @param paths - Schema paths to look for (e.g., ['database.url', 'database.port'])
|
|
73
|
+
* @returns Nested config object
|
|
74
|
+
*/
|
|
75
|
+
export declare function mapEnvToNestedConfig(env: Record<string, string | undefined>, paths: string[]): Record<string, unknown>;
|
|
76
|
+
//# sourceMappingURL=env-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-loader.d.ts","sourceRoot":"","sources":["../../../../src/builtin/config/providers/env-loader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2CvE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAChC,QAAQ,SAAgB,EACxB,OAAO,SAAS,EAChB,YAAY,SAAe,GAC1B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAkBjC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,UAAQ,GAAG,IAAI,CAMtF;AAoBD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA+B/F;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAyBlF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,SAAK,GAAG,MAAM,EAAE,CAoC3E;AAyBD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EACvC,KAAK,EAAE,MAAM,EAAE,GACd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAazB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/builtin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-mcp.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/front-mcp.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"front-mcp.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/front-mcp.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAC;AAoCvE;;GAEG;AACH,wBAAgB,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,cAAc,CA2D3E"}
|
|
@@ -10,16 +10,6 @@ import { HookOptions, FlowName, HookMetadata } from '../metadata';
|
|
|
10
10
|
* This is called by collectFlowHookMap during flow registration
|
|
11
11
|
*/
|
|
12
12
|
export declare function resolvePendingTC39HooksForClass(ctor: Function): HookMetadata[];
|
|
13
|
-
/**
|
|
14
|
-
* Store a pending hook for TC39 mode
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare function registerPendingTC39Hook(method: Function, meta: HookMetadata): void;
|
|
18
|
-
/**
|
|
19
|
-
* Get and clear pending hooks for a method (TC39 mode)
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare function consumePendingTC39Hooks(method: Function): HookMetadata[];
|
|
23
13
|
/**
|
|
24
14
|
* Creates a typed Stage hook decorator for a specific flow
|
|
25
15
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/hook.decorator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAmBjF;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,EAAE,CAE9E;
|
|
1
|
+
{"version":3,"file":"hook.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/hook.decorator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAmBjF;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,EAAE,CAE9E;AAkFD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,SAAS,QAAQ,EAAE,IAAI,EAAE,IAAI,IAI1C,iCAAQ,EAAE,OAAM,WAAW,0BAAU,qBAGvD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,QAAQ,EAAE,IAAI,EAAE,IAAI,IAIzC,iCAAQ,EAAE,OAAM,WAAW,0BAAU,qBAGvD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,SAAS,QAAQ,EAAE,IAAI,EAAE,IAAI,IAIxC,iCAAQ,EAAE,OAAM,WAAW,0BAAU,qBAGvD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,QAAQ,EAAE,IAAI,EAAE,IAAI,IAI3C,iCAAQ,EAAE,OAAM,WAAW,0BAAU,qBAGvD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,IAAI,SAAS,QAAQ,EAAE,IAAI,EAAE,IAAI;;;;;EAO5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { SkillMetadata } from '../metadata';
|
|
3
|
+
import { SkillValueRecord } from '../records';
|
|
4
|
+
/**
|
|
5
|
+
* Class decorator that marks a class as a Skill and provides metadata.
|
|
6
|
+
*
|
|
7
|
+
* Skills are knowledge/workflow packages that teach AI how to perform
|
|
8
|
+
* multi-step tasks using tools. Unlike tools, skills don't execute
|
|
9
|
+
* directly - they provide instructions and context for LLMs.
|
|
10
|
+
*
|
|
11
|
+
* @param providedMetadata - Skill metadata including name, description, and instructions
|
|
12
|
+
* @returns Class decorator
|
|
13
|
+
*
|
|
14
|
+
* @example Basic skill
|
|
15
|
+
* ```typescript
|
|
16
|
+
* @Skill({
|
|
17
|
+
* name: 'review-pr',
|
|
18
|
+
* description: 'Review a GitHub pull request',
|
|
19
|
+
* instructions: 'Step 1: Fetch PR details...',
|
|
20
|
+
* tools: ['github_get_pr', 'github_add_comment'],
|
|
21
|
+
* })
|
|
22
|
+
* class ReviewPRSkill extends SkillContext {
|
|
23
|
+
* async loadInstructions() { return this.metadata.instructions as string; }
|
|
24
|
+
* async build() { ... }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @example Skill with file-based instructions
|
|
29
|
+
* ```typescript
|
|
30
|
+
* @Skill({
|
|
31
|
+
* name: 'deploy-app',
|
|
32
|
+
* description: 'Deploy application to production',
|
|
33
|
+
* instructions: { file: './skills/deploy.md' },
|
|
34
|
+
* tools: ['docker_build', 'k8s_apply'],
|
|
35
|
+
* tags: ['devops', 'deployment'],
|
|
36
|
+
* })
|
|
37
|
+
* class DeploySkill extends SkillContext { ... }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @example Skill with URL-based instructions
|
|
41
|
+
* ```typescript
|
|
42
|
+
* @Skill({
|
|
43
|
+
* name: 'security-audit',
|
|
44
|
+
* description: 'Perform security audit on codebase',
|
|
45
|
+
* instructions: { url: 'https://example.com/skills/security-audit.md' },
|
|
46
|
+
* tools: ['code_search', 'file_read'],
|
|
47
|
+
* })
|
|
48
|
+
* class SecurityAuditSkill extends SkillContext { ... }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare function FrontMcpSkill(providedMetadata: SkillMetadata): ClassDecorator;
|
|
52
|
+
/**
|
|
53
|
+
* Function helper that creates an inline skill record.
|
|
54
|
+
*
|
|
55
|
+
* Use this when you want to define a skill without creating a class.
|
|
56
|
+
* The skill is registered as a value record with a unique symbol token.
|
|
57
|
+
*
|
|
58
|
+
* @param providedMetadata - Skill metadata including name, description, and instructions
|
|
59
|
+
* @returns A skill value record that can be passed to app/plugin skills array
|
|
60
|
+
*
|
|
61
|
+
* @example Inline skill
|
|
62
|
+
* ```typescript
|
|
63
|
+
* const reviewPRSkill = skill({
|
|
64
|
+
* name: 'review-pr',
|
|
65
|
+
* description: 'Review a GitHub pull request',
|
|
66
|
+
* instructions: `
|
|
67
|
+
* ## PR Review Process
|
|
68
|
+
* 1. Fetch the PR details using github_get_pr
|
|
69
|
+
* 2. Review each changed file...
|
|
70
|
+
* `,
|
|
71
|
+
* tools: [
|
|
72
|
+
* { name: 'github_get_pr', purpose: 'Fetch PR details', required: true },
|
|
73
|
+
* { name: 'github_add_comment', purpose: 'Add review comments' },
|
|
74
|
+
* ],
|
|
75
|
+
* tags: ['github', 'code-review'],
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* @FrontMcp({
|
|
79
|
+
* name: 'my-app',
|
|
80
|
+
* skills: [reviewPRSkill],
|
|
81
|
+
* })
|
|
82
|
+
* class MyApp {}
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @example Skill with file-based instructions
|
|
86
|
+
* ```typescript
|
|
87
|
+
* const deploySkill = skill({
|
|
88
|
+
* name: 'deploy-app',
|
|
89
|
+
* description: 'Deploy application to production',
|
|
90
|
+
* instructions: { file: './skills/deploy.md' },
|
|
91
|
+
* tools: ['docker_build', 'docker_push', 'k8s_apply'],
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function frontMcpSkill(providedMetadata: SkillMetadata): SkillValueRecord;
|
|
96
|
+
export { FrontMcpSkill, FrontMcpSkill as Skill, frontMcpSkill, frontMcpSkill as skill };
|
|
97
|
+
/**
|
|
98
|
+
* Check if a class has the @Skill decorator.
|
|
99
|
+
*/
|
|
100
|
+
export declare function isSkillDecorated(target: object): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Get skill metadata from a decorated class.
|
|
103
|
+
*/
|
|
104
|
+
export declare function getSkillMetadata(target: object): SkillMetadata | undefined;
|
|
105
|
+
//# sourceMappingURL=skill.decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/skill.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAuB,MAAM,aAAa,CAAC;AACjE,OAAO,EAAa,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,iBAAS,aAAa,CAAC,gBAAgB,EAAE,aAAa,GAAG,cAAc,CAgBtE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,iBAAS,aAAa,CAAC,gBAAgB,EAAE,aAAa,GAAG,gBAAgB,CAYxE;AAGD,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,KAAK,EAAE,aAAa,EAAE,aAAa,IAAI,KAAK,EAAE,CAAC;AAExF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAuB1E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Reference, FrontMcpAdapterResponse, AdapterType, AdapterInterface } from '../interfaces';
|
|
2
|
-
type InitOptions<T> = (
|
|
2
|
+
type InitOptions<T> = (T & {
|
|
3
3
|
useFactory?: never;
|
|
4
4
|
inject?: never;
|
|
5
5
|
name: string;
|
|
6
|
-
})
|
|
6
|
+
}) | {
|
|
7
7
|
inject: () => readonly Reference<any>[];
|
|
8
8
|
useFactory: (...args: any[]) => T;
|
|
9
9
|
name: string;
|
|
@@ -24,8 +24,18 @@ export declare abstract class DynamicAdapter<TOptions extends object> implements
|
|
|
24
24
|
*/
|
|
25
25
|
__options_brand: TOptions;
|
|
26
26
|
/**
|
|
27
|
-
* Static init() method to create
|
|
28
|
-
*
|
|
27
|
+
* Static init() method to create an adapter provider.
|
|
28
|
+
*
|
|
29
|
+
* Each call to init() creates a unique adapter instance with its own token,
|
|
30
|
+
* keyed by `${ClassName}:${options.name}`. This allows multiple adapters
|
|
31
|
+
* of the same class with different configurations (e.g., multiple OpenAPI
|
|
32
|
+
* adapters for different APIs).
|
|
33
|
+
*
|
|
34
|
+
* **IMPORTANT:** The `name` option must be unique per adapter class.
|
|
35
|
+
* Registering two adapters with the same class and name will throw an error.
|
|
36
|
+
*
|
|
37
|
+
* @param options - Adapter options including required `name` field
|
|
38
|
+
* @throws Error if `name` is missing/empty or if a duplicate name is detected
|
|
29
39
|
*/
|
|
30
40
|
static init<TThis extends AdapterClassWithOptions<any>>(this: TThis, options: InitOptions<TThis['prototype'] extends {
|
|
31
41
|
__options_brand?: infer O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic.adapter.d.ts","sourceRoot":"","sources":["../../../src/common/dynamic/dynamic.adapter.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,KAAK,CAAC,GACzF,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,KAAK,CAAC;IAiDtF;;;;OAIG;IACH,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,uBAAuB,CAAC,GAAG,uBAAuB;CAC7E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntry } from './base.entry';
|
|
2
2
|
import { AppRecord } from '../records';
|
|
3
3
|
import { AdapterRegistryInterface, AppInterface, PluginRegistryInterface, PromptRegistryInterface, ProviderRegistryInterface, ResourceRegistryInterface, ToolRegistryInterface } from '../interfaces';
|
|
4
|
+
import type { SkillRegistryInterface } from '../../skill/skill.registry';
|
|
4
5
|
import { AppMetadata } from '../metadata';
|
|
5
6
|
export declare abstract class AppEntry<Metadata = AppMetadata> extends BaseEntry<AppRecord, AppInterface, Metadata> {
|
|
6
7
|
readonly id: string;
|
|
@@ -17,5 +18,6 @@ export declare abstract class AppEntry<Metadata = AppMetadata> extends BaseEntry
|
|
|
17
18
|
abstract get tools(): ToolRegistryInterface;
|
|
18
19
|
abstract get resources(): ResourceRegistryInterface;
|
|
19
20
|
abstract get prompts(): PromptRegistryInterface;
|
|
21
|
+
abstract get skills(): SkillRegistryInterface;
|
|
20
22
|
}
|
|
21
23
|
//# sourceMappingURL=app.entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/app.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACL,wBAAwB,EACxB,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AACvB,O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AQ,IAAI,wBAAwB,CAAC;IAElD,QAAQ,KAAK,OAAO,IAAI,uBAAuB,CAAC;IAEhD,QAAQ,KAAK,KAAK,IAAI,qBAAqB,CAAC;IAE5C,QAAQ,KAAK,SAAS,IAAI,yBAAyB,CAAC;IAEpD,QAAQ,KAAK,OAAO,IAAI,uBAAuB,CAAC;IAEhD,QAAQ,KAAK,MAAM,IAAI,sBAAsB,CAAC;CAC/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/entries/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/entries/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -5,15 +5,9 @@ import { PromptMetadata } from '../metadata';
|
|
|
5
5
|
import { GetPromptResult, Request, Notification } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
7
7
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
8
|
-
import { ProviderRegistryInterface } from '../interfaces/internal';
|
|
9
8
|
import type ProviderRegistry from '../../provider/provider.registry';
|
|
10
9
|
export type PromptGetExtra = RequestHandlerExtra<Request, Notification> & {
|
|
11
10
|
authInfo: AuthInfo;
|
|
12
|
-
/**
|
|
13
|
-
* Optional context-aware providers from the flow.
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
contextProviders?: ProviderRegistryInterface;
|
|
17
11
|
};
|
|
18
12
|
export type ParsedPromptResult = GetPromptResult;
|
|
19
13
|
export type PromptSafeTransformResult<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/prompt.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/prompt.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CA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AAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAE9E;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB;IAEtD;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,yBAAyB,CAAC,kBAAkB,CAAC;CACtF"}
|
|
@@ -5,14 +5,8 @@ import { ResourceMetadata, ResourceTemplateMetadata } from '../metadata';
|
|
|
5
5
|
import { ReadResourceResult, Request, Notification } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
7
7
|
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
8
|
-
import { ProviderRegistryInterface } from '../interfaces/internal';
|
|
9
8
|
export type ResourceReadExtra = RequestHandlerExtra<Request, Notification> & {
|
|
10
9
|
authInfo: AuthInfo;
|
|
11
|
-
/**
|
|
12
|
-
* Optional context-aware providers from the flow.
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
contextProviders?: ProviderRegistryInterface;
|
|
16
10
|
};
|
|
17
11
|
export type ParsedResourceResult = ReadResourceResult;
|
|
18
12
|
export type ResourceSafeTransformResult<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/resource.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC/F,OA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B,CAAC;IACjH,KAAK,EAAE,aAAa,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC;IAElG;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,GAAG,oBAAoB;IAEvD;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAErF;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;CACrE"}
|
|
@@ -4,6 +4,7 @@ import { ScopeRecord } from '../records';
|
|
|
4
4
|
import { ScopeInterface, ProviderRegistryInterface, AppRegistryInterface, AuthRegistryInterface, FrontMcpAuth, FlowInputOf, FlowOutputOf, FlowType, FrontMcpLogger, ToolRegistryInterface, HookRegistryInterface, ResourceRegistryInterface, PromptRegistryInterface } from '../interfaces';
|
|
5
5
|
import { FlowName, ScopeMetadata } from '../metadata';
|
|
6
6
|
import type { NotificationService } from '../../notification';
|
|
7
|
+
import type { SkillRegistryInterface } from '../../skill/skill.registry';
|
|
7
8
|
export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, ScopeInterface, ScopeMetadata> {
|
|
8
9
|
abstract readonly id: string;
|
|
9
10
|
abstract readonly entryPath: string;
|
|
@@ -18,6 +19,7 @@ export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, ScopeInt
|
|
|
18
19
|
abstract get tools(): ToolRegistryInterface;
|
|
19
20
|
abstract get resources(): ResourceRegistryInterface;
|
|
20
21
|
abstract get prompts(): PromptRegistryInterface;
|
|
22
|
+
abstract get skills(): SkillRegistryInterface;
|
|
21
23
|
abstract get notifications(): NotificationService;
|
|
22
24
|
abstract registryFlows(...flows: FlowType[]): Promise<void>;
|
|
23
25
|
abstract runFlow<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, additionalDeps?: Map<Token, Type>): Promise<FlowOutputOf<Name> | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/scope.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"scope.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/scope.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,O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AAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3D,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,QAAQ,EACpC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,cAAc,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;CAC3C"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { BaseEntry, EntryOwnerRef } from './base.entry';
|
|
2
|
+
import { SkillRecord } from '../records';
|
|
3
|
+
import { SkillContext, SkillContent } from '../interfaces';
|
|
4
|
+
import { SkillMetadata, SkillToolRef } from '../metadata';
|
|
5
|
+
/**
|
|
6
|
+
* Result of loading a skill with tool validation information.
|
|
7
|
+
*/
|
|
8
|
+
export type SkillLoadResult = {
|
|
9
|
+
/**
|
|
10
|
+
* The loaded skill content.
|
|
11
|
+
*/
|
|
12
|
+
skill: SkillContent;
|
|
13
|
+
/**
|
|
14
|
+
* Tools that are available in the current scope.
|
|
15
|
+
*/
|
|
16
|
+
availableTools: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Tools that are referenced but not available.
|
|
19
|
+
*/
|
|
20
|
+
missingTools: string[];
|
|
21
|
+
/**
|
|
22
|
+
* True if all required tools are available.
|
|
23
|
+
*/
|
|
24
|
+
isComplete: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Warning message if tools are missing.
|
|
27
|
+
*/
|
|
28
|
+
warning?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Result returned from skill validation.
|
|
32
|
+
*/
|
|
33
|
+
export type SafeSkillLoadResult<T> = {
|
|
34
|
+
success: true;
|
|
35
|
+
data: T;
|
|
36
|
+
} | {
|
|
37
|
+
success: false;
|
|
38
|
+
error: Error;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Abstract base class for skill entries.
|
|
42
|
+
*
|
|
43
|
+
* Skills are knowledge/workflow packages that don't execute directly.
|
|
44
|
+
* Instead, they provide instructions and context for LLMs to perform tasks.
|
|
45
|
+
*/
|
|
46
|
+
export declare abstract class SkillEntry extends BaseEntry<SkillRecord, SkillContext, SkillMetadata> {
|
|
47
|
+
/**
|
|
48
|
+
* The owner of this skill (app, plugin, etc.).
|
|
49
|
+
*/
|
|
50
|
+
owner: EntryOwnerRef;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the skill, as declared in the metadata.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* The full qualified name of the skill, including the owner name as prefix.
|
|
57
|
+
*/
|
|
58
|
+
fullName: string;
|
|
59
|
+
/**
|
|
60
|
+
* Get a short description of the skill.
|
|
61
|
+
*/
|
|
62
|
+
abstract getDescription(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Load the skill's detailed instructions.
|
|
65
|
+
* Resolves from inline string, file path, or URL based on metadata.
|
|
66
|
+
*/
|
|
67
|
+
abstract loadInstructions(): Promise<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Load the full skill content.
|
|
70
|
+
* Returns the complete skill with resolved instructions.
|
|
71
|
+
*/
|
|
72
|
+
abstract load(): Promise<SkillContent>;
|
|
73
|
+
/**
|
|
74
|
+
* Get the tool references from the skill metadata.
|
|
75
|
+
* Returns normalized SkillToolRef objects.
|
|
76
|
+
*/
|
|
77
|
+
getToolRefs(): SkillToolRef[];
|
|
78
|
+
/**
|
|
79
|
+
* Get tool names from the skill metadata.
|
|
80
|
+
*/
|
|
81
|
+
getToolNames(): string[];
|
|
82
|
+
/**
|
|
83
|
+
* Get the skill's tags for categorization.
|
|
84
|
+
*/
|
|
85
|
+
getTags(): string[];
|
|
86
|
+
/**
|
|
87
|
+
* Check if the skill should be hidden from discovery.
|
|
88
|
+
*/
|
|
89
|
+
isHidden(): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Get the skill's priority for search ranking.
|
|
92
|
+
*/
|
|
93
|
+
getPriority(): number;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=skill.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/skill.entry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAoB,MAAM,aAAa,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnG;;;;;GAKG;AACH,8BAAsB,UAAW,SAAQ,SAAS,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC;IAC1F;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,cAAc,IAAI,MAAM;IAEjC;;;OAGG;IACH,QAAQ,CA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