UNPKG

article-writer-cn

Version:

AI 驱动的智能写作系统 - 专注公众号/自媒体文章创作

67 lines 1.84 kB
/** * 工作区检测和管理工具 */ export type WorkspaceType = 'wechat' | 'video' | 'general'; export interface WorkspaceConfig { name: string; description: string; features: { 字数要求: string; 配图?: string; 风格: string; 排版?: string; 特殊限制?: string; 结构?: string; 特殊要求?: string; }; briefTemplate: { 必填字段: string[]; 建议字数范围: string; 默认平台: string; }; specificationTemplate: { 结构建议: string; 语言风格: string; 配图要求?: string; 特殊标注?: string; }; auditRules: { AI味目标: string; 段落长度?: string; 句子长度?: string; 敏感词检查: boolean; 标点规范?: string; 口语化程度?: string; }; publishFormats: string[]; } export interface WorkspaceDetectionResult { workspace: WorkspaceType; confidence: 'high' | 'medium' | 'low'; reason: string; config: WorkspaceConfig; } /** * 加载工作区配置 */ export declare function loadWorkspaceConfig(): Promise<Record<WorkspaceType, WorkspaceConfig>>; /** * 自动检测当前项目的工作区类型 */ export declare function detectWorkspace(projectPath: string): Promise<WorkspaceDetectionResult>; /** * 获取工作区的推荐配置 */ export declare function getWorkspaceRecommendations(workspace: WorkspaceType): Promise<{ briefTips: string[]; writingTips: string[]; auditTips: string[]; }>; /** * 验证当前项目是否符合工作区要求 */ export declare function validateWorkspace(projectPath: string, expectedWorkspace: WorkspaceType): Promise<{ valid: boolean; warnings: string[]; }>; //# sourceMappingURL=workspace.d.ts.map