export type ManagedSkillInterface = { displayName?: string; shortDescription?: string; defaultPrompt?: string; }; export type ManagedSkillDetail = { name: string; description: string; instructions: string; interface?: ManagedSkillInterface; path: string; revision: string; managed: true; }; export type CreateManagedSkillInput = { name: string; description: string; instructions: string; interface?: ManagedSkillInterface | null; }; export type UpdateManagedSkillInput = { description: string; instructions: string; interface?: ManagedSkillInterface | null; expectedRevision: string; }; export declare class SkillStoreError extends Error { readonly statusCode: 400 | 404 | 409 | 500; name: string; constructor(message: string, statusCode: 400 | 404 | 409 | 500); } /** 只管理站点工作空间下 `.agents/skills` 中的画布专属 Skill。 */ export declare class SkillStore { readonly workspacePath: string; readonly skillsPath: string; private writeQueue; constructor(workspacePath: string); /** 判断 Codex 返回的绝对路径是否属于本 Store 的标准 Skill 入口。 */ isManagedPath(filePath: string): boolean; /** 读取一个可编辑 Skill 的正文与界面元数据。 */ get(name: string): Promise; /** 创建新的画布专属 Skill。 */ create(input: CreateManagedSkillInput): Promise; /** 通过 revision 防止覆盖已被其他窗口或外部编辑器修改的内容。 */ update(nameValue: string, input: UpdateManagedSkillInput): Promise; /** 删除 revision 仍匹配的画布专属 Skill。 */ delete(nameValue: string, expectedRevisionValueInput: string): Promise; private mutate; private ensureRoot; private safeExistingPaths; private assertExistingRoot; private readDetail; private writeOpenAi; }