intention-coding 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/index.cjs +1523 -541
  2. package/dist/services/change-summarizer/index.d.ts.map +1 -1
  3. package/dist/services/image-analysis/analyzer.d.ts +0 -18
  4. package/dist/services/image-analysis/analyzer.d.ts.map +1 -1
  5. package/dist/services/image-analysis/index.d.ts +2 -2
  6. package/dist/services/image-analysis/index.d.ts.map +1 -1
  7. package/dist/services/image-analysis/types.d.ts +1 -148
  8. package/dist/services/image-analysis/types.d.ts.map +1 -1
  9. package/dist/services/index.d.ts.map +1 -1
  10. package/dist/services/project-template/index.d.ts +2 -2
  11. package/dist/services/requirement/index.d.ts +75 -0
  12. package/dist/services/requirement/index.d.ts.map +1 -0
  13. package/dist/services/requirement-analyzer/index.d.ts +4 -4
  14. package/dist/services/requirement-analyzer/index.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/dist/services/code-generator/index.d.ts +0 -50
  17. package/dist/services/code-generator/index.d.ts.map +0 -1
  18. package/dist/services/code-generator/stages/execution-stage.d.ts +0 -96
  19. package/dist/services/code-generator/stages/execution-stage.d.ts.map +0 -1
  20. package/dist/services/code-generator/stages/ideation-stage.d.ts +0 -34
  21. package/dist/services/code-generator/stages/ideation-stage.d.ts.map +0 -1
  22. package/dist/services/code-generator/stages/optimization-stage.d.ts +0 -47
  23. package/dist/services/code-generator/stages/optimization-stage.d.ts.map +0 -1
  24. package/dist/services/code-generator/stages/planning-stage.d.ts +0 -34
  25. package/dist/services/code-generator/stages/planning-stage.d.ts.map +0 -1
  26. package/dist/services/code-generator/stages/research-stage.d.ts +0 -36
  27. package/dist/services/code-generator/stages/research-stage.d.ts.map +0 -1
  28. package/dist/services/code-generator/stages/review-stage.d.ts +0 -34
  29. package/dist/services/code-generator/stages/review-stage.d.ts.map +0 -1
  30. package/dist/services/code-generator/types.d.ts +0 -233
  31. package/dist/services/code-generator/types.d.ts.map +0 -1
  32. package/dist/services/code-generator/utils/instruction-executor.d.ts +0 -70
  33. package/dist/services/code-generator/utils/instruction-executor.d.ts.map +0 -1
  34. package/dist/services/code-generator/workflow-manager.d.ts +0 -47
  35. package/dist/services/code-generator/workflow-manager.d.ts.map +0 -1
  36. package/dist/services/requirement-handler/core/agents/align-agent.d.ts +0 -31
  37. package/dist/services/requirement-handler/core/agents/align-agent.d.ts.map +0 -1
  38. package/dist/services/requirement-handler/core/agents/approve-agent.d.ts +0 -33
  39. package/dist/services/requirement-handler/core/agents/approve-agent.d.ts.map +0 -1
  40. package/dist/services/requirement-handler/core/agents/architect-agent.d.ts +0 -29
  41. package/dist/services/requirement-handler/core/agents/architect-agent.d.ts.map +0 -1
  42. package/dist/services/requirement-handler/core/agents/assess-agent.d.ts +0 -53
  43. package/dist/services/requirement-handler/core/agents/assess-agent.d.ts.map +0 -1
  44. package/dist/services/requirement-handler/core/agents/atomize-agent.d.ts +0 -33
  45. package/dist/services/requirement-handler/core/agents/atomize-agent.d.ts.map +0 -1
  46. package/dist/services/requirement-handler/core/agents/automate-agent.d.ts +0 -43
  47. package/dist/services/requirement-handler/core/agents/automate-agent.d.ts.map +0 -1
  48. package/dist/services/requirement-handler/core/requirement-handler-service.d.ts +0 -35
  49. package/dist/services/requirement-handler/core/requirement-handler-service.d.ts.map +0 -1
  50. package/dist/services/requirement-handler/core/types.d.ts +0 -143
  51. package/dist/services/requirement-handler/core/types.d.ts.map +0 -1
  52. package/dist/services/requirement-handler/index.d.ts +0 -87
  53. package/dist/services/requirement-handler/index.d.ts.map +0 -1
@@ -1,34 +0,0 @@
1
- import { WorkflowTask, WorkflowResponse } from '../types';
2
- /**
3
- * 计划阶段处理器
4
- * 职责:将选定方案细化为详尽、有序、可执行的步骤清单
5
- */
6
- export declare class PlanningStage {
7
- /**
8
- * 执行计划阶段
9
- */
10
- handler(task: WorkflowTask, input?: any): Promise<WorkflowResponse>;
11
- /**
12
- * 获取选定的方案
13
- */
14
- private getSelectedSolution;
15
- /**
16
- * 生成执行计划
17
- */
18
- private generateExecutionPlan;
19
- /**
20
- * 生成响应
21
- */
22
- private generateResponse;
23
- /**
24
- * 格式化计划消息
25
- */
26
- private formatPlanMessage;
27
- /**
28
- * 获取默认执行计划
29
- */
30
- private getDefaultExecutionPlan;
31
- private getStepTypeLabel;
32
- private getOperationLabel;
33
- }
34
- //# sourceMappingURL=planning-stage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planning-stage.d.ts","sourceRoot":"","sources":["../../../../src/services/code-generator/stages/planning-stage.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EAEZ,gBAAgB,EAKjB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA+BzE;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;YACW,qBAAqB;IAmGnC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA8CzB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IA+C/B,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -1,36 +0,0 @@
1
- import { WorkflowTask, WorkflowResponse } from '../types';
2
- /**
3
- * 研究阶段处理器
4
- * 职责:理解需求并评估完整性,收集项目上下文
5
- */
6
- export declare class ResearchStage {
7
- /**
8
- * 执行研究阶段
9
- */
10
- handler(task: WorkflowTask, _input?: any): Promise<WorkflowResponse>;
11
- /**
12
- * 分析项目信息
13
- */
14
- private analyzeProject;
15
- /**
16
- * 解析项目信息
17
- */
18
- private parseProjectInfo;
19
- /**
20
- * 分析需求完整性
21
- */
22
- private analyzeRequirements;
23
- /**
24
- * 生成响应
25
- */
26
- private generateResponse;
27
- /**
28
- * 格式化需要澄清的消息
29
- */
30
- private formatClarificationMessage;
31
- /**
32
- * 格式化成功消息
33
- */
34
- private formatSuccessMessage;
35
- }
36
- //# sourceMappingURL=research-stage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"research-stage.d.ts","sourceRoot":"","sources":["../../../../src/services/code-generator/stages/research-stage.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EAEZ,gBAAgB,EAKjB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkC1E;;OAEG;YACW,cAAc;IAoB5B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAwBxB;;OAEG;YACW,mBAAmB;IAwEjC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA2BxB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IA0BlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;CA0B7B"}
@@ -1,34 +0,0 @@
1
- import { WorkflowTask, WorkflowResponse } from '../types';
2
- /**
3
- * 评审阶段处理器
4
- * 职责:对照计划评估执行结果,报告问题与建议
5
- */
6
- export declare class ReviewStage {
7
- /**
8
- * 执行评审阶段
9
- */
10
- handler(task: WorkflowTask, _input?: any): Promise<WorkflowResponse>;
11
- /**
12
- * 收集所有阶段的结果
13
- */
14
- private collectStageResults;
15
- /**
16
- * 执行综合评审
17
- */
18
- private performComprehensiveReview;
19
- /**
20
- * 生成最终响应
21
- */
22
- private generateFinalResponse;
23
- /**
24
- * 格式化评审消息
25
- */
26
- private formatReviewMessage;
27
- /**
28
- * 获取默认评审结果
29
- */
30
- private getDefaultReviewResult;
31
- private getGradeLabel;
32
- private getScoreEmoji;
33
- }
34
- //# sourceMappingURL=review-stage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"review-stage.d.ts","sourceRoot":"","sources":["../../../../src/services/code-generator/stages/review-stage.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EAEZ,gBAAgB,EAKjB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAgC1E;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAY3B;;OAEG;YACW,0BAA0B;IAiFxC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAwE3B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAyB9B,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,aAAa;CAKtB"}
@@ -1,233 +0,0 @@
1
- export interface WorkflowTask {
2
- id: string;
3
- description: string;
4
- currentStage: WorkflowStage;
5
- context: TaskContext;
6
- stages: StageResult[];
7
- createdAt: Date;
8
- updatedAt: Date;
9
- }
10
- export declare enum WorkflowStage {
11
- RESEARCH = "research",// 研究
12
- IDEATION = "ideation",// 构思
13
- PLANNING = "planning",// 计划
14
- EXECUTION = "execution",// 执行
15
- OPTIMIZATION = "optimization",// 优化
16
- REVIEW = "review"
17
- }
18
- export interface TaskContext {
19
- taskDescription: string;
20
- projectInfo?: ProjectInfo;
21
- requirements: RequirementAnalysis;
22
- constraints: Constraint[];
23
- successCriteria: string[];
24
- }
25
- export interface ProjectInfo {
26
- name: string;
27
- path: string;
28
- techStack: string[];
29
- frameworks: string[];
30
- language: string;
31
- structure: FileStructure;
32
- devCommands: DevCommand[];
33
- }
34
- export interface FileStructure {
35
- [path: string]: {
36
- type: 'file' | 'directory';
37
- content?: string;
38
- children?: FileStructure;
39
- };
40
- }
41
- export interface DevCommand {
42
- name: string;
43
- command: string;
44
- description: string;
45
- }
46
- export interface RequirementAnalysis {
47
- completenessScore: number;
48
- targetClarity: number;
49
- expectedResults: number;
50
- scopeBoundary: number;
51
- constraints: number;
52
- missingInfo: string[];
53
- clarificationQuestions: string[];
54
- }
55
- export interface Constraint {
56
- type: 'time' | 'performance' | 'business' | 'technical';
57
- description: string;
58
- priority: 'high' | 'medium' | 'low';
59
- }
60
- export interface StageResult {
61
- stage: WorkflowStage;
62
- status: 'pending' | 'in_progress' | 'completed' | 'failed';
63
- input: any;
64
- output: any;
65
- feedback?: string;
66
- timestamp: Date;
67
- duration?: number;
68
- }
69
- export interface Solution {
70
- id: string;
71
- name: string;
72
- description: string;
73
- pros: string[];
74
- cons: string[];
75
- complexity: 'low' | 'medium' | 'high';
76
- estimatedTime: string;
77
- techRequirements: string[];
78
- riskLevel: 'low' | 'medium' | 'high';
79
- score: number;
80
- }
81
- export interface ExecutionPlan {
82
- id: string;
83
- solutionId: string;
84
- steps: ExecutionStep[];
85
- estimatedDuration: string;
86
- dependencies: string[];
87
- riskAssessment: string;
88
- rollbackPlan: string;
89
- }
90
- export interface ExecutionStep {
91
- id: string;
92
- name: string;
93
- description: string;
94
- type: 'file_creation' | 'file_modification' | 'function_implementation' | 'class_implementation' | 'test_creation' | 'configuration';
95
- targetFiles: string[];
96
- atomicOperations: AtomicOperation[];
97
- expectedResult: string;
98
- dependencies: string[];
99
- estimatedTime: string;
100
- }
101
- export interface AtomicOperation {
102
- type: 'create_file' | 'modify_file' | 'create_function' | 'create_class' | 'add_import' | 'install_dependency';
103
- target: string;
104
- content?: string;
105
- inputSchema?: Record<string, any>;
106
- }
107
- export interface OptimizationSuggestion {
108
- id: string;
109
- type: 'redundancy' | 'performance' | 'maintainability' | 'security' | 'best_practice';
110
- description: string;
111
- currentCode: string;
112
- optimizedCode: string;
113
- reason: string;
114
- expectedBenefit: string;
115
- impact: 'low' | 'medium' | 'high';
116
- effort: 'low' | 'medium' | 'high';
117
- }
118
- export interface ReviewResult {
119
- overallScore: number;
120
- planAdherence: number;
121
- codeQuality: number;
122
- testCoverage: number;
123
- documentation: number;
124
- issues: Issue[];
125
- recommendations: string[];
126
- nextSteps: string[];
127
- }
128
- export interface Issue {
129
- type: 'bug' | 'performance' | 'security' | 'maintainability' | 'documentation';
130
- severity: 'low' | 'medium' | 'high' | 'critical';
131
- description: string;
132
- location: string;
133
- suggestion: string;
134
- }
135
- export interface WorkflowResponse {
136
- stage: WorkflowStage;
137
- status: 'success' | 'error' | 'pending_approval' | 'needs_clarification';
138
- message: string;
139
- data?: any;
140
- nextActions: string[];
141
- requiresUserConfirmation: boolean;
142
- clarificationQuestions?: string[];
143
- executionInstructions?: AnyExecutionInstruction[];
144
- }
145
- export interface ExecutionInstruction {
146
- id: string;
147
- type: 'file_operation' | 'shell_command' | 'dependency_install' | 'configuration' | 'workflow_guidance';
148
- description: string;
149
- priority: number;
150
- }
151
- export interface FileOperationInstruction extends ExecutionInstruction {
152
- type: 'file_operation';
153
- operation: 'create' | 'modify' | 'delete' | 'move' | 'copy';
154
- targetPath: string;
155
- content?: string;
156
- sourceContent?: string;
157
- newContent?: string;
158
- sourcePath?: string;
159
- }
160
- export interface ShellCommandInstruction extends ExecutionInstruction {
161
- type: 'shell_command';
162
- command: string;
163
- workingDirectory?: string;
164
- environment?: Record<string, string>;
165
- expectedOutput?: string;
166
- }
167
- export interface DependencyInstallInstruction extends ExecutionInstruction {
168
- type: 'dependency_install';
169
- packageManager: 'npm' | 'yarn' | 'pnpm' | 'pip' | 'cargo';
170
- packages: string[];
171
- isDev?: boolean;
172
- }
173
- export interface ConfigurationInstruction extends ExecutionInstruction {
174
- type: 'configuration';
175
- configType: 'package.json' | 'tsconfig.json' | 'eslint' | 'prettier' | 'custom';
176
- configPath: string;
177
- changes: Record<string, any>;
178
- }
179
- export interface WorkflowInstruction extends ExecutionInstruction {
180
- type: 'workflow_guidance';
181
- stage: WorkflowStage;
182
- mode: string;
183
- guidance: {
184
- description: string;
185
- steps: string[];
186
- expectedOutput: string;
187
- userPrompt?: string;
188
- requiresUserInput: boolean;
189
- completenessCheck?: {
190
- minScore: number;
191
- scoringCriteria: string[];
192
- };
193
- };
194
- }
195
- export type AnyExecutionInstruction = FileOperationInstruction | ShellCommandInstruction | DependencyInstallInstruction | ConfigurationInstruction | WorkflowInstruction;
196
- export interface ExecutionResult {
197
- instructionId: string;
198
- status: 'success' | 'failed' | 'skipped';
199
- output?: string;
200
- error?: string;
201
- handlerdAt: Date;
202
- }
203
- export interface ExecutionSummary {
204
- totalInstructions: number;
205
- completedInstructions: number;
206
- failedInstructions: number;
207
- skippedInstructions: number;
208
- results: ExecutionResult[];
209
- errors: Array<{
210
- instructionId: string;
211
- description: string;
212
- error: string;
213
- }>;
214
- }
215
- export declare class CodeGeneratorError extends Error {
216
- readonly code: string;
217
- readonly stage: WorkflowStage;
218
- readonly context?: any | undefined;
219
- constructor(message: string, code: string, stage: WorkflowStage, context?: any | undefined);
220
- }
221
- export declare enum ErrorCodes {
222
- INVALID_TASK_DESCRIPTION = "INVALID_TASK_DESCRIPTION",
223
- INCOMPLETE_REQUIREMENTS = "INCOMPLETE_REQUIREMENTS",
224
- PROJECT_ANALYSIS_FAILED = "PROJECT_ANALYSIS_FAILED",
225
- SOLUTION_GENERATION_FAILED = "SOLUTION_GENERATION_FAILED",
226
- PLAN_CREATION_FAILED = "PLAN_CREATION_FAILED",
227
- EXECUTION_FAILED = "EXECUTION_FAILED",
228
- OPTIMIZATION_FAILED = "OPTIMIZATION_FAILED",
229
- REVIEW_FAILED = "REVIEW_FAILED",
230
- USER_APPROVAL_REQUIRED = "USER_APPROVAL_REQUIRED",
231
- STAGE_TRANSITION_FAILED = "STAGE_TRANSITION_FAILED"
232
- }
233
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/code-generator/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,aAAa,CAAC;IAC5B,O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方法
4
- */
5
- import { AnyExecutionInstruction, FileOperationInstruction, ShellCommandInstruction, DependencyInstallInstruction, ConfigurationInstruction, ExecutionResult, ExecutionSummary } from '../types';
6
- export declare class InstructionExecutor {
7
- /**
8
- * 验证执行指令的有效性
9
- */
10
- static validateInstructions(instructions: AnyExecutionInstruction[]): {
11
- valid: boolean;
12
- errors: string[];
13
- };
14
- /**
15
- * 按优先级排序指令
16
- */
17
- static sortInstructionsByPriority(instructions: AnyExecutionInstruction[]): AnyExecutionInstruction[];
18
- /**
19
- * 按类型分组指令
20
- */
21
- static groupInstructionsByType(instructions: AnyExecutionInstruction[]): {
22
- fileOperations: FileOperationInstruction[];
23
- shellCommands: ShellCommandInstruction[];
24
- dependencyInstalls: DependencyInstallInstruction[];
25
- configurations: ConfigurationInstruction[];
26
- };
27
- /**
28
- * 生成执行摘要
29
- */
30
- static generateExecutionSummary(results: ExecutionResult[]): ExecutionSummary;
31
- /**
32
- * 生成执行报告
33
- */
34
- static generateExecutionReport(summary: ExecutionSummary): string;
35
- private static validateFileOperation;
36
- private static validateShellCommand;
37
- private static validateDependencyInstall;
38
- private static validateConfiguration;
39
- }
40
- /**
41
- * 指令执行状态跟踪器
42
- */
43
- export declare class InstructionTracker {
44
- private results;
45
- /**
46
- * 记录指令执行结果
47
- */
48
- recordResult(result: ExecutionResult): void;
49
- /**
50
- * 获取所有结果
51
- */
52
- getAllResults(): ExecutionResult[];
53
- /**
54
- * 获取执行摘要
55
- */
56
- getSummary(): ExecutionSummary;
57
- /**
58
- * 清空结果
59
- */
60
- clear(): void;
61
- /**
62
- * 检查是否有失败的指令
63
- */
64
- hasFailures(): boolean;
65
- /**
66
- * 获取失败的指令
67
- */
68
- getFailures(): ExecutionResult[];
69
- }
70
- //# sourceMappingURL=instruction-executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instruction-executor.d.ts","sourceRoot":"","sources":["../../../../src/services/code-generator/utils/instruction-executor.ts"],"names":[],"mappings":"AAAA;;;GAG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IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,WAAW,IAAI,eAAe,EAAE;CAGjC"}
@@ -1,47 +0,0 @@
1
- import { WorkflowTask, WorkflowStage, WorkflowResponse } from './types';
2
- /**
3
- * 工作流程管理器
4
- * 职责:管理六阶段开发工作流的执行和状态转换
5
- */
6
- export declare class WorkflowManager {
7
- private tasks;
8
- private stages;
9
- constructor();
10
- /**
11
- * 初始化各个阶段的处理器
12
- */
13
- private initializeStages;
14
- /**
15
- * 创建新的工作流任务
16
- */
17
- createTask(taskDescription: string): Promise<WorkflowResponse>;
18
- /**
19
- * 执行指定阶段
20
- */
21
- handlerStage(taskId: string, stage: WorkflowStage, input?: any): Promise<WorkflowResponse>;
22
- /**
23
- * 继续到下一个阶段
24
- */
25
- proceedToNextStage(taskId: string, feedback?: any): Promise<WorkflowResponse>;
26
- /**
27
- * 跳转到指定阶段
28
- */
29
- jumpToStage(taskId: string, targetStage: WorkflowStage): Promise<WorkflowResponse>;
30
- /**
31
- * 获取任务状态
32
- */
33
- getTaskStatus(taskId: string): WorkflowTask;
34
- /**
35
- * 获取所有任务
36
- */
37
- getAllTasks(): WorkflowTask[];
38
- /**
39
- * 删除任务
40
- */
41
- deleteTask(taskId: string): boolean;
42
- private getTask;
43
- private generateTaskId;
44
- private validateStageTransition;
45
- private getNextStage;
46
- }
47
- //# sourceMappingURL=workflow-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-manager.d.ts","sourceRoot":"","sources":["../../../src/services/code-generator/workflow-manager.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,gBAAgB,EAKjB,MAAM,SAAS,CAAC;AAQjB;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,KAAK,CAAmC;IAChD,OAAO,CAAC,MAAM,CAAiC;;IAM/C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACG,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA4CpE;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA2EhG;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAyBnF;;OAEG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYxF;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAI3C;;OAEG;IACH,WAAW,IAAI,YAAY,EAAE;IAI7B;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAMnC,OAAO,CAAC,OAAO;IAaf,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,uBAAuB;IA6B/B,OAAO,CAAC,YAAY;CAiBrB"}
@@ -1,31 +0,0 @@
1
- import { AlignmentResult } from "../types";
2
- export interface AlignAgentInput {
3
- requirement_text: string;
4
- project_context?: string;
5
- feature_name: string;
6
- workspace_dir: string;
7
- }
8
- /**
9
- * 需求对齐智能体
10
- * 负责将模糊需求转化为精确的技术规范
11
- */
12
- export declare class AlignAgent {
13
- execute(input: AlignAgentInput): Promise<AlignmentResult>;
14
- /**
15
- * 分析项目上下文
16
- */
17
- private analyzeProjectContext;
18
- /**
19
- * 分析需求
20
- */
21
- private analyzeRequirement;
22
- /**
23
- * 生成对齐文档
24
- */
25
- private generateAlignmentDocument;
26
- /**
27
- * 生成共识文档
28
- */
29
- private generateConsensusDocument;
30
- }
31
- //# sourceMappingURL=align-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"align-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/align-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA4C,MAAM,UAAU,CAAC;AAMrF,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,UAAU;IACf,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAyD/D;;OAEG;YACW,qBAAqB;IAwCnC;;OAEG;YACW,kBAAkB;IA2DhC;;OAEG;YACW,yBAAyB;IA0CvC;;OAEG;YACW,yBAAyB;CAmCxC"}
@@ -1,33 +0,0 @@
1
- import { ApprovalResult, StageResult } from "../types";
2
- export interface ApproveAgentInput {
3
- all_previous_outputs: StageResult[];
4
- workspace_dir: string;
5
- }
6
- /**
7
- * 审查评估智能体
8
- * 负责全面审查前三个阶段的输出质量
9
- */
10
- export declare class ApproveAgent {
11
- execute(input: ApproveAgentInput): Promise<ApprovalResult>;
12
- /**
13
- * 执行质量检查清单
14
- */
15
- private executeQualityChecklist;
16
- /**
17
- * 评估风险
18
- */
19
- private assessRisks;
20
- /**
21
- * 做出最终批准决定
22
- */
23
- private makeFinalApproval;
24
- /**
25
- * 生成审批文档
26
- */
27
- private generateApprovalDocument;
28
- /**
29
- * 从工作空间路径提取功能名称
30
- */
31
- private extractFeatureName;
32
- }
33
- //# sourceMappingURL=approve-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approve-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/approve-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAA4C,MAAM,UAAU,CAAC;AAMjG,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,EAAE,WAAW,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,YAAY;IACjB,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;IAsDhE;;OAEG;YACW,uBAAuB;IA2DrC;;OAEG;YACW,WAAW;IAkEzB;;OAEG;YACW,iBAAiB;IAmC/B;;OAEG;YACW,wBAAwB;IA2EtC;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAG3B"}
@@ -1,29 +0,0 @@
1
- import { ArchitectureResult, StageResult } from "../types";
2
- export interface ArchitectAgentInput {
3
- previous_stage_output: StageResult;
4
- workspace_dir: string;
5
- }
6
- /**
7
- * 系统架构智能体
8
- * 负责基于需求共识设计系统架构
9
- */
10
- export declare class ArchitectAgent {
11
- execute(input: ArchitectAgentInput): Promise<ArchitectureResult>;
12
- /**
13
- * 设计系统架构
14
- */
15
- private designSystemArchitecture;
16
- /**
17
- * 设计模块和接口
18
- */
19
- private designModules;
20
- /**
21
- * 生成设计文档
22
- */
23
- private generateDesignDocument;
24
- /**
25
- * 从工作空间路径提取功能名称
26
- */
27
- private extractFeatureName;
28
- }
29
- //# sourceMappingURL=architect-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"architect-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/architect-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAA4C,MAAM,UAAU,CAAC;AAMrG,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,EAAE,WAAW,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,cAAc;IACnB,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA0DtE;;OAEG;YACW,wBAAwB;IA8CtC;;OAEG;YACW,aAAa;IA8C3B;;OAEG;YACW,sBAAsB;IAqEpC;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAG3B"}
@@ -1,53 +0,0 @@
1
- import { AssessmentResult, StageResult } from "../types";
2
- export interface AssessAgentInput {
3
- all_previous_outputs: StageResult[];
4
- workspace_dir: string;
5
- }
6
- /**
7
- * 质量评估智能体
8
- * 负责全面评估项目交付质量
9
- */
10
- export declare class AssessAgent {
11
- execute(input: AssessAgentInput): Promise<AssessmentResult>;
12
- /**
13
- * 验证执行结果
14
- */
15
- private validateExecution;
16
- /**
17
- * 评估质量
18
- */
19
- private assessQuality;
20
- /**
21
- * 生成交付物清单
22
- */
23
- private generateDeliverables;
24
- /**
25
- * 生成TODO清单
26
- */
27
- private generateTodoItems;
28
- /**
29
- * 生成最终报告
30
- */
31
- private generateFinalReport;
32
- /**
33
- * 生成项目总结
34
- */
35
- private generateProjectSummary;
36
- /**
37
- * 生成验收文档
38
- */
39
- private generateAcceptanceDocument;
40
- /**
41
- * 生成TODO文档
42
- */
43
- private generateTodoDocument;
44
- /**
45
- * 收集所有文件
46
- */
47
- private collectAllFiles;
48
- /**
49
- * 从工作空间路径提取功能名称
50
- */
51
- private extractFeatureName;
52
- }
53
- //# sourceMappingURL=assess-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assess-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/assess-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAA4C,MAAM,UAAU,CAAC;AAMnG,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB,EAAE,WAAW,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,WAAW;IAChB,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqEjE;;OAEG;YACW,iBAAiB;IAuD/B;;OAEG;YACW,aAAa;IAgE3B;;OAEG;YACW,oBAAoB;IAwBlC;;OAEG;YACW,iBAAiB;IAwC/B;;OAEG;YACW,mBAAmB;IAoEjC;;OAEG;YACW,sBAAsB;IAIpC;;OAEG;YACW,0BAA0B;IAyCxC;;OAEG;YACW,oBAAoB;IAoDlC;;OAEG;IACH,OAAO,CAAC,eAAe;IA6BvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAG3B"}