import { SkillsService } from './skills.service.js'; import { AgentsService } from '../agents/agents.service.js'; import { AgentConfigService } from '../agent-config/agent-config.service.js'; export declare class SkillsController { private readonly skillsService; private readonly agentsService; private readonly agentConfigService; constructor(skillsService: SkillsService, agentsService: AgentsService, agentConfigService: AgentConfigService); getSkills(workspace?: string, scope?: string): Promise<{ success: boolean; data: import("./skills.service.js").Skill[]; }>; /** 静态 POST 路由放在 :name 等参数路由之前,确保能被正确匹配 */ installSkill(body: { url: string; scope?: 'global' | 'workspace'; workspace?: string; sessionId?: string; /** 安装目标:具体 agentId,或 "global"|"all" 表示全局;优先于 sessionId */ targetAgentId?: string; }): Promise<{ success: boolean; data: { stdout: string; stderr: string; installDir: string; }; }>; installSkillFromPath(body: { path: string; scope?: 'global' | 'workspace'; workspace?: string; targetAgentId?: string; }): Promise<{ success: boolean; data: { installDir: string; name: string; }; }>; getSkill(name: string): Promise<{ success: boolean; data: import("./skills.service.js").Skill; }>; getSkillContent(name: string, workspace?: string): Promise<{ success: boolean; data: { content: string; }; }>; addSkill(body: { workspace: string; name: string; description?: string; content?: string; }): Promise<{ success: boolean; data: import("./skills.service.js").Skill; }>; deleteSkill(name: string, workspace?: string, scope?: string): Promise<{ success: boolean; }>; }