/** * Helper for registering skill capabilities in scope. * * This module extracts skill-specific registration logic from * `scope.instance.ts` to maintain separation of concerns. * * Skill resources are registered exclusively under the SEP-2640 * `skill://` URI scheme. The legacy plural `skills://` scheme has been * removed. * * @module skill/skill-scope.helper */ import type { FrontMcpLogger } from '../common'; import type { SkillsConfigOptions } from '../common/types/options/skills-http'; import type FlowRegistry from '../flows/flow.registry'; import type ProviderRegistry from '../provider/provider.registry'; import type ResourceRegistry from '../resource/resource.registry'; import type SkillRegistry from './skill.registry'; /** * Options for registering skill capabilities. */ export interface SkillScopeRegistrationOptions { /** Skill registry containing registered skills */ skillRegistry: SkillRegistry; /** Flow registry for registering skill flows */ flowRegistry: FlowRegistry; /** Resource registry for registering skill resource templates */ resourceRegistry: ResourceRegistry; /** Provider registry for dependency injection */ providers: ProviderRegistry; /** Skills configuration from @FrontMcp metadata */ skillsConfig?: SkillsConfigOptions; /** Logger instance for logging */ logger: FrontMcpLogger; } /** * Register skill-related flows and resources in the scope. * * Handles: * - MCP flows for skill discovery/loading (SearchSkillsFlow, LoadSkillFlow) * - SEP-2640 conformant `skill://` resources unless disabled via * `skillsConfig.mcpResources: false` * - HTTP flows (`/llm.txt`, `/llm_full.txt`, `/skills`) when * `skillsConfig.enabled` is true * * @param options - Registration options * * @example * ```typescript * await registerSkillCapabilities({ * skillRegistry: this.scopeSkills, * flowRegistry: this.scopeFlows, * resourceRegistry: this.scopeResources, * providers: this.scopeProviders, * skillsConfig: this.metadata.skillsConfig, * logger: this.logger, * }); * ``` */ export declare function registerSkillCapabilities(options: SkillScopeRegistrationOptions): Promise; //# sourceMappingURL=skill-scope.helper.d.ts.map