article-writer-cn
Version:
AI 驱动的智能写作系统 - 专注公众号/自媒体文章创作
27 lines • 839 B
TypeScript
export interface ProjectInfo {
root: string;
version: string;
installedAI: string[];
}
/**
* 向上查找项目根目录
* 通过查找 .content/config.json 来识别项目根目录
*/
export declare function findProjectRoot(startDir?: string): Promise<string | null>;
/**
* 验证是否是有效的 article-writer 项目
*/
export declare function validateProject(projectPath: string): Promise<boolean>;
/**
* 检测项目安装了哪些 AI 配置
*/
export declare function detectInstalledAI(projectPath: string): Promise<string[]>;
/**
* 获取项目信息
*/
export declare function getProjectInfo(projectPath: string): Promise<ProjectInfo | null>;
/**
* 确保在有效的项目目录中,否则抛出错误
*/
export declare function ensureProjectRoot(): Promise<string>;
//# sourceMappingURL=project.d.ts.map