feat: 扩展 DocumentConfig 增加 depend 字段,新增 DocumentStatus 类型,扩展 ChangeStatus
This commit is contained in:
11
src/types.ts
11
src/types.ts
@@ -2,6 +2,13 @@ export interface DocumentConfig {
|
||||
name: string;
|
||||
prompt: string;
|
||||
template?: string;
|
||||
depend?: string[];
|
||||
}
|
||||
|
||||
export interface DocumentStatus {
|
||||
name: string;
|
||||
completed: boolean;
|
||||
dependMet: boolean;
|
||||
}
|
||||
|
||||
export interface DiscussStage {
|
||||
@@ -38,7 +45,9 @@ export interface TaskItem {
|
||||
|
||||
export interface ChangeStatus {
|
||||
name: string;
|
||||
documents: string[];
|
||||
documents: DocumentStatus[];
|
||||
planCompleted: boolean;
|
||||
buildUnlocked: boolean;
|
||||
taskProgress: { completed: number; total: number } | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user