/** * prompts - 提示词库管理命令 * 提供预置提示词模板和用户自定义提示词,支持搜索、分类、CRUD、复制 */ export interface PromptsOptions { web?: boolean; output?: string; /** 导入自定义提示词 JSON 落盘到 .speccore/prompts/user/ */ import?: string; /** 导出当前自定义提示词为 JSON 文件 */ export?: string; /** 项目根目录(默认 process.cwd(),供 --project-dir / 联动调用场景使用) */ projectDir?: string; } export interface PromptTemplate { id: string; name: string; category: string; icon: string; description: string; prompt: string; command?: string; skill?: string; env?: 'cli' | 'both' | 'ai'; tags?: string[]; examples?: string[]; params: PromptParam[]; builtin: boolean; sort: number; createdAt?: string; updatedAt?: string; } export interface PromptParam { key: string; placeholder: string; required: boolean; /** CLI flag(如 --task / -I),用于「复制 Skill」生成 flag 风格参数;为空表示位置参数 */ flag?: string; } /** * 生成提示词库 HTML 页面并落盘(供 prompts 命令与 init/welcome 联动调用)。 * v8.3.338+: init/welcome 生成静态页面时联动产出,保证 setup-guide/项目名片页内 * 「查看提示词库」链接指向的 speccore-prompts.html 真实存在,杜绝 404。 */ export declare function generatePromptsPage(outputPath?: string, projectRoot?: string): Promise; export declare function promptsCommand(options: PromptsOptions): Promise; /** 导入自定义提示词:合并写入 user 目录(覆盖同名 id,保留其他条目) */ export declare function importUserPrompts(filePath: string, projectRoot: string): Promise; /** 导出当前自定义提示词为 JSON 文件 */ export declare function exportUserPrompts(filePath: string, projectRoot: string): Promise; //# sourceMappingURL=prompts.d.ts.map