intention-coding 0.5.2 → 0.5.4
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.
- package/dist/index.cjs +1194 -546
- package/dist/services/image-analysis/analyzer.d.ts +4 -18
- package/dist/services/image-analysis/analyzer.d.ts.map +1 -1
- package/dist/services/image-analysis/index.d.ts +2 -2
- package/dist/services/image-analysis/index.d.ts.map +1 -1
- package/dist/services/image-analysis/types.d.ts +1 -148
- package/dist/services/image-analysis/types.d.ts.map +1 -1
- package/dist/services/image-converter/index.d.ts +2 -2
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/project-template/index.d.ts +2 -2
- package/dist/services/requirement/index.d.ts +75 -0
- package/dist/services/requirement/index.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/index.d.ts +4 -4
- package/dist/utils/dify.d.ts +24 -2
- package/dist/utils/dify.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/services/code-generator/index.d.ts +0 -50
- package/dist/services/code-generator/index.d.ts.map +0 -1
- package/dist/services/code-generator/stages/execution-stage.d.ts +0 -96
- package/dist/services/code-generator/stages/execution-stage.d.ts.map +0 -1
- package/dist/services/code-generator/stages/ideation-stage.d.ts +0 -34
- package/dist/services/code-generator/stages/ideation-stage.d.ts.map +0 -1
- package/dist/services/code-generator/stages/optimization-stage.d.ts +0 -47
- package/dist/services/code-generator/stages/optimization-stage.d.ts.map +0 -1
- package/dist/services/code-generator/stages/planning-stage.d.ts +0 -34
- package/dist/services/code-generator/stages/planning-stage.d.ts.map +0 -1
- package/dist/services/code-generator/stages/research-stage.d.ts +0 -36
- package/dist/services/code-generator/stages/research-stage.d.ts.map +0 -1
- package/dist/services/code-generator/stages/review-stage.d.ts +0 -34
- package/dist/services/code-generator/stages/review-stage.d.ts.map +0 -1
- package/dist/services/code-generator/types.d.ts +0 -233
- package/dist/services/code-generator/types.d.ts.map +0 -1
- package/dist/services/code-generator/utils/instruction-executor.d.ts +0 -70
- package/dist/services/code-generator/utils/instruction-executor.d.ts.map +0 -1
- package/dist/services/code-generator/workflow-manager.d.ts +0 -47
- package/dist/services/code-generator/workflow-manager.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/align-agent.d.ts +0 -31
- package/dist/services/requirement-handler/core/agents/align-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/approve-agent.d.ts +0 -33
- package/dist/services/requirement-handler/core/agents/approve-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/architect-agent.d.ts +0 -29
- package/dist/services/requirement-handler/core/agents/architect-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/assess-agent.d.ts +0 -53
- package/dist/services/requirement-handler/core/agents/assess-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/atomize-agent.d.ts +0 -33
- package/dist/services/requirement-handler/core/agents/atomize-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/agents/automate-agent.d.ts +0 -43
- package/dist/services/requirement-handler/core/agents/automate-agent.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/requirement-handler-service.d.ts +0 -35
- package/dist/services/requirement-handler/core/requirement-handler-service.d.ts.map +0 -1
- package/dist/services/requirement-handler/core/types.d.ts +0 -143
- package/dist/services/requirement-handler/core/types.d.ts.map +0 -1
- package/dist/services/requirement-handler/index.d.ts +0 -87
- package/dist/services/requirement-handler/index.d.ts.map +0 -1
|
@@ -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"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AtomizeResult, StageResult } from "../types";
|
|
2
|
-
export interface AtomizeAgentInput {
|
|
3
|
-
previous_stage_output: StageResult;
|
|
4
|
-
workspace_dir: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 任务拆分智能体
|
|
8
|
-
* 负责将架构设计分解为可执行的原子任务
|
|
9
|
-
*/
|
|
10
|
-
export declare class AtomizeAgent {
|
|
11
|
-
execute(input: AtomizeAgentInput): Promise<AtomizeResult>;
|
|
12
|
-
/**
|
|
13
|
-
* 分解为原子任务
|
|
14
|
-
*/
|
|
15
|
-
private decomposeToAtomicTasks;
|
|
16
|
-
/**
|
|
17
|
-
* 分析任务依赖关系
|
|
18
|
-
*/
|
|
19
|
-
private analyzeDependencies;
|
|
20
|
-
/**
|
|
21
|
-
* 评估复杂度
|
|
22
|
-
*/
|
|
23
|
-
private assessComplexity;
|
|
24
|
-
/**
|
|
25
|
-
* 生成任务文档
|
|
26
|
-
*/
|
|
27
|
-
private generateTaskDocument;
|
|
28
|
-
/**
|
|
29
|
-
* 从工作空间路径提取功能名称
|
|
30
|
-
*/
|
|
31
|
-
private extractFeatureName;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=atomize-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atomize-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/atomize-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAA4C,MAAM,UAAU,CAAC;AAMhG,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,EAAE,WAAW,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,qBAAa,YAAY;IACjB,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IA2D/D;;OAEG;YACW,sBAAsB;IAuDpC;;OAEG;YACW,mBAAmB;IA8CjC;;OAEG;YACW,gBAAgB;IAyC9B;;OAEG;YACW,oBAAoB;IA4ElC;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAG3B"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ExecutionResult, StageResult } from "../types";
|
|
2
|
-
export interface AutomateAgentInput {
|
|
3
|
-
all_previous_outputs: StageResult[];
|
|
4
|
-
workspace_dir: string;
|
|
5
|
-
include_tests?: boolean;
|
|
6
|
-
include_docs?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 执行实施智能体
|
|
10
|
-
* 负责按照任务计划逐步实施代码
|
|
11
|
-
*/
|
|
12
|
-
export declare class AutomateAgent {
|
|
13
|
-
execute(input: AutomateAgentInput): Promise<ExecutionResult>;
|
|
14
|
-
/**
|
|
15
|
-
* 实施任务
|
|
16
|
-
*/
|
|
17
|
-
private implementTasks;
|
|
18
|
-
/**
|
|
19
|
-
* 生成代码文件
|
|
20
|
-
*/
|
|
21
|
-
private generateCodeFiles;
|
|
22
|
-
/**
|
|
23
|
-
* 生成测试文件
|
|
24
|
-
*/
|
|
25
|
-
private generateTestFiles;
|
|
26
|
-
/**
|
|
27
|
-
* 生成文档
|
|
28
|
-
*/
|
|
29
|
-
private generateDocumentation;
|
|
30
|
-
/**
|
|
31
|
-
* 评估代码质量
|
|
32
|
-
*/
|
|
33
|
-
private assessCodeQuality;
|
|
34
|
-
/**
|
|
35
|
-
* 生成执行文档
|
|
36
|
-
*/
|
|
37
|
-
private generateExecutionDocument;
|
|
38
|
-
/**
|
|
39
|
-
* 从工作空间路径提取功能名称
|
|
40
|
-
*/
|
|
41
|
-
private extractFeatureName;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=automate-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automate-agent.d.ts","sourceRoot":"","sources":["../../../../../src/services/requirement-handler/core/agents/automate-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAA4C,MAAM,UAAU,CAAC;AAMlG,MAAM,WAAW,kBAAkB;IACjC,oBAAoB,EAAE,WAAW,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,qBAAa,aAAa;IAClB,OAAO,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IA4DlE;;OAEG;YACW,cAAc;IAiD5B;;OAEG;YACW,iBAAiB;IAkD/B;;OAEG;YACW,iBAAiB;IAgD/B;;OAEG;YACW,qBAAqB;IA+CnC;;OAEG;YACW,iBAAiB;IAqB/B;;OAEG;YACW,yBAAyB;IAsDvC;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAG3B"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { RequirementHandlerParams, ProcessResult } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* 需求处理智能体服务 - 最终版本
|
|
4
|
-
* 基于6A工作流:Align, Architect, Atomize, Approve, Automate, Assess
|
|
5
|
-
*/
|
|
6
|
-
export declare class RequirementHandlerService {
|
|
7
|
-
private alignAgent;
|
|
8
|
-
private architectAgent;
|
|
9
|
-
private atomizeAgent;
|
|
10
|
-
private approveAgent;
|
|
11
|
-
private automateAgent;
|
|
12
|
-
private assessAgent;
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* 处理需求的主入口方法
|
|
16
|
-
*/
|
|
17
|
-
processRequirement(params: RequirementHandlerParams): Promise<ProcessResult>;
|
|
18
|
-
/**
|
|
19
|
-
* 创建工作空间目录
|
|
20
|
-
*/
|
|
21
|
-
private createWorkspace;
|
|
22
|
-
/**
|
|
23
|
-
* 判断是否应该执行某个阶段
|
|
24
|
-
*/
|
|
25
|
-
private shouldExecuteStage;
|
|
26
|
-
/**
|
|
27
|
-
* 收集输出文件(从.aico/docs和工作空间目录)
|
|
28
|
-
*/
|
|
29
|
-
private collectOutputFiles;
|
|
30
|
-
/**
|
|
31
|
-
* 从指定目录收集文件
|
|
32
|
-
*/
|
|
33
|
-
private collectFilesFromDirectory;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=requirement-handler-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requirement-handler-service.d.ts","sourceRoot":"","sources":["../../../../src/services/requirement-handler/core/requirement-handler-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAA4C,MAAM,SAAS,CAAC;AAW5G;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,WAAW,CAAc;;IAWjC;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC;IAkPlF;;OAEG;IACH,OAAO,CAAC,eAAe;IAwDvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAY1B;;OAEG;YACW,kBAAkB;IA8BhC;;OAEG;IACH,OAAO,CAAC,yBAAyB;CA8BlC"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
export interface RequirementHandlerParams {
|
|
2
|
-
requirement_text: string;
|
|
3
|
-
project_context?: string;
|
|
4
|
-
feature_name: string;
|
|
5
|
-
enable_human_confirmation?: boolean;
|
|
6
|
-
stage_to_stop?: "align" | "architect" | "atomize" | "approve" | "automate" | "assess" | "complete";
|
|
7
|
-
custom_config?: {
|
|
8
|
-
analysis_depth?: "basic" | "detailed" | "comprehensive";
|
|
9
|
-
include_tests?: boolean;
|
|
10
|
-
include_docs?: boolean;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface AlignmentResult {
|
|
14
|
-
stage: "align";
|
|
15
|
-
requirements_specification: string;
|
|
16
|
-
consensus_document: string;
|
|
17
|
-
clarification_questions: string[];
|
|
18
|
-
boundary_definition: string;
|
|
19
|
-
acceptance_criteria: string[];
|
|
20
|
-
human_confirmation_required: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface ArchitectureResult {
|
|
23
|
-
stage: "architect";
|
|
24
|
-
system_architecture: string;
|
|
25
|
-
module_design: string;
|
|
26
|
-
interface_specifications: string;
|
|
27
|
-
data_flow_diagram: string;
|
|
28
|
-
component_dependencies: string;
|
|
29
|
-
human_confirmation_required: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface AtomizeResult {
|
|
32
|
-
stage: "atomize";
|
|
33
|
-
atomic_tasks: Array<{
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
input_contract: string;
|
|
38
|
-
output_contract: string;
|
|
39
|
-
implementation_constraints: string;
|
|
40
|
-
dependencies: string[];
|
|
41
|
-
acceptance_criteria: string[];
|
|
42
|
-
}>;
|
|
43
|
-
task_dependency_graph: string;
|
|
44
|
-
complexity_assessment: string;
|
|
45
|
-
human_confirmation_required: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface ApprovalResult {
|
|
48
|
-
stage: "approve";
|
|
49
|
-
quality_checklist: Array<{
|
|
50
|
-
item: string;
|
|
51
|
-
status: "pass" | "fail" | "pending";
|
|
52
|
-
comments: string;
|
|
53
|
-
}>;
|
|
54
|
-
risk_assessment: Array<{
|
|
55
|
-
risk: string;
|
|
56
|
-
level: "low" | "medium" | "high";
|
|
57
|
-
mitigation: string;
|
|
58
|
-
}>;
|
|
59
|
-
final_approval_status: "approved" | "needs_revision" | "rejected";
|
|
60
|
-
revision_requirements?: string[];
|
|
61
|
-
human_confirmation_required: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface ExecutionResult {
|
|
64
|
-
stage: "automate";
|
|
65
|
-
implementation_progress: Array<{
|
|
66
|
-
task_id: string;
|
|
67
|
-
status: "pending" | "in_progress" | "completed" | "failed";
|
|
68
|
-
code_files: string[];
|
|
69
|
-
test_files: string[];
|
|
70
|
-
documentation: string[];
|
|
71
|
-
}>;
|
|
72
|
-
code_quality_metrics: {
|
|
73
|
-
coverage: number;
|
|
74
|
-
complexity: string;
|
|
75
|
-
standards_compliance: boolean;
|
|
76
|
-
};
|
|
77
|
-
human_confirmation_required: boolean;
|
|
78
|
-
}
|
|
79
|
-
export interface AssessmentResult {
|
|
80
|
-
stage: "assess";
|
|
81
|
-
quality_assessment: {
|
|
82
|
-
code_quality: "excellent" | "good" | "acceptable" | "needs_improvement";
|
|
83
|
-
test_coverage: number;
|
|
84
|
-
documentation_completeness: number;
|
|
85
|
-
acceptance_criteria_met: boolean;
|
|
86
|
-
};
|
|
87
|
-
deliverables: string[];
|
|
88
|
-
todo_items: Array<{
|
|
89
|
-
item: string;
|
|
90
|
-
priority: "high" | "medium" | "low";
|
|
91
|
-
description: string;
|
|
92
|
-
}>;
|
|
93
|
-
final_report: string;
|
|
94
|
-
project_summary: string;
|
|
95
|
-
human_confirmation_required: boolean;
|
|
96
|
-
}
|
|
97
|
-
export type StageResult = AlignmentResult | ArchitectureResult | AtomizeResult | ApprovalResult | ExecutionResult | AssessmentResult;
|
|
98
|
-
export interface ProcessResult {
|
|
99
|
-
success: boolean;
|
|
100
|
-
message: string;
|
|
101
|
-
feature_name: string;
|
|
102
|
-
completed_stages: string[];
|
|
103
|
-
current_stage: string;
|
|
104
|
-
stage_results: StageResult[];
|
|
105
|
-
output_files: string[];
|
|
106
|
-
human_confirmations_pending: Array<{
|
|
107
|
-
stage: string;
|
|
108
|
-
confirmation_type: string;
|
|
109
|
-
details: string;
|
|
110
|
-
}>;
|
|
111
|
-
}
|
|
112
|
-
export declare class RequirementHandlerError extends Error {
|
|
113
|
-
readonly code: string;
|
|
114
|
-
readonly stage?: string | undefined;
|
|
115
|
-
readonly context?: any | undefined;
|
|
116
|
-
constructor(message: string, code: string, stage?: string | undefined, context?: any | undefined);
|
|
117
|
-
}
|
|
118
|
-
export declare enum StageErrorCodes {
|
|
119
|
-
ALIGN_INVALID_REQUIREMENT = "ALIGN_INVALID_REQUIREMENT",
|
|
120
|
-
ALIGN_PROJECT_ANALYSIS_FAILED = "ALIGN_PROJECT_ANALYSIS_FAILED",
|
|
121
|
-
ALIGN_CONSENSUS_FAILED = "ALIGN_CONSENSUS_FAILED",
|
|
122
|
-
ARCHITECT_DESIGN_FAILED = "ARCHITECT_DESIGN_FAILED",
|
|
123
|
-
ARCHITECT_INTERFACE_FAILED = "ARCHITECT_INTERFACE_FAILED",
|
|
124
|
-
ARCHITECT_COMPATIBILITY_CHECK_FAILED = "ARCHITECT_COMPATIBILITY_CHECK_FAILED",
|
|
125
|
-
ATOMIZE_TASK_DECOMPOSITION_FAILED = "ATOMIZE_TASK_DECOMPOSITION_FAILED",
|
|
126
|
-
ATOMIZE_DEPENDENCY_ANALYSIS_FAILED = "ATOMIZE_DEPENDENCY_ANALYSIS_FAILED",
|
|
127
|
-
ATOMIZE_COMPLEXITY_ASSESSMENT_FAILED = "ATOMIZE_COMPLEXITY_ASSESSMENT_FAILED",
|
|
128
|
-
APPROVE_QUALITY_CHECK_FAILED = "APPROVE_QUALITY_CHECK_FAILED",
|
|
129
|
-
APPROVE_RISK_ASSESSMENT_FAILED = "APPROVE_RISK_ASSESSMENT_FAILED",
|
|
130
|
-
APPROVE_HUMAN_REJECTION = "APPROVE_HUMAN_REJECTION",
|
|
131
|
-
AUTOMATE_IMPLEMENTATION_FAILED = "AUTOMATE_IMPLEMENTATION_FAILED",
|
|
132
|
-
AUTOMATE_TEST_GENERATION_FAILED = "AUTOMATE_TEST_GENERATION_FAILED",
|
|
133
|
-
AUTOMATE_CODE_QUALITY_FAILED = "AUTOMATE_CODE_QUALITY_FAILED",
|
|
134
|
-
ASSESS_QUALITY_EVALUATION_FAILED = "ASSESS_QUALITY_EVALUATION_FAILED",
|
|
135
|
-
ASSESS_ACCEPTANCE_VERIFICATION_FAILED = "ASSESS_ACCEPTANCE_VERIFICATION_FAILED",
|
|
136
|
-
ASSESS_DELIVERABLE_GENERATION_FAILED = "ASSESS_DELIVERABLE_GENERATION_FAILED",
|
|
137
|
-
WORKSPACE_CREATION_FAILED = "WORKSPACE_CREATION_FAILED",
|
|
138
|
-
HUMAN_CONFIRMATION_TIMEOUT = "HUMAN_CONFIRMATION_TIMEOUT",
|
|
139
|
-
STAGE_EXECUTION_TIMEOUT = "STAGE_EXECUTION_TIMEOUT",
|
|
140
|
-
INVALID_STAGE_TRANSITION = "INVALID_STAGE_TRANSITION",
|
|
141
|
-
CONFIGURATION_ERROR = "CONFIGURATION_ERROR"
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/services/requirement-handler/core/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IACnG,aAAa,CAAC,EAAE;QACd,cAAc,CAAC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CAAmC;IACjE,uBAAuB,4BAA4B;IAGnD,8BAA8B,mCAAmC;IACjE,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAG7D,gCAAgC,qCAAqC;IACrE,qCAAqC,0CAA0C;IAC/E,oCAAoC,yCAAyC;IAG7E,yBAAyB,8BAA8B;IACvD,0BAA0B,+BAA+B;IACzD,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,mBAAmB,wBAAwB;CAC5C"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const RequirementHandlerParamsSchema: z.ZodObject<{
|
|
3
|
-
requirement_text: z.ZodString;
|
|
4
|
-
project_context: z.ZodOptional<z.ZodString>;
|
|
5
|
-
feature_name: z.ZodString;
|
|
6
|
-
enable_human_confirmation: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
stage_to_stop: z.ZodDefault<z.ZodEnum<["align", "architect", "atomize", "approve", "automate", "assess", "complete"]>>;
|
|
8
|
-
custom_config: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
analysis_depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>;
|
|
10
|
-
include_tests: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
include_docs: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
include_tests: boolean;
|
|
14
|
-
analysis_depth: "detailed" | "comprehensive" | "basic";
|
|
15
|
-
include_docs: boolean;
|
|
16
|
-
}, {
|
|
17
|
-
include_tests?: boolean | undefined;
|
|
18
|
-
analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
|
|
19
|
-
include_docs?: boolean | undefined;
|
|
20
|
-
}>>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
feature_name: string;
|
|
23
|
-
requirement_text: string;
|
|
24
|
-
enable_human_confirmation: boolean;
|
|
25
|
-
stage_to_stop: "align" | "architect" | "atomize" | "approve" | "automate" | "assess" | "complete";
|
|
26
|
-
project_context?: string | undefined;
|
|
27
|
-
custom_config?: {
|
|
28
|
-
include_tests: boolean;
|
|
29
|
-
analysis_depth: "detailed" | "comprehensive" | "basic";
|
|
30
|
-
include_docs: boolean;
|
|
31
|
-
} | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
feature_name: string;
|
|
34
|
-
requirement_text: string;
|
|
35
|
-
project_context?: string | undefined;
|
|
36
|
-
enable_human_confirmation?: boolean | undefined;
|
|
37
|
-
stage_to_stop?: "align" | "architect" | "atomize" | "approve" | "automate" | "assess" | "complete" | undefined;
|
|
38
|
-
custom_config?: {
|
|
39
|
-
include_tests?: boolean | undefined;
|
|
40
|
-
analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
|
|
41
|
-
include_docs?: boolean | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
export type RequirementHandlerParams = z.infer<typeof RequirementHandlerParamsSchema>;
|
|
45
|
-
/**
|
|
46
|
-
* 需求处理智能体工具
|
|
47
|
-
* 以需求指挥官智能体调度需求对齐智能体,原子任务拆分审查智能体,任务自动执行智能体,执行质量评估智能体的方式完成对需求的处理
|
|
48
|
-
*/
|
|
49
|
-
export declare const requirementHandlerTool: {
|
|
50
|
-
name: string;
|
|
51
|
-
description: string;
|
|
52
|
-
inputSchema: {
|
|
53
|
-
requirement_text: z.ZodString;
|
|
54
|
-
project_context: z.ZodOptional<z.ZodString>;
|
|
55
|
-
feature_name: z.ZodString;
|
|
56
|
-
enable_human_confirmation: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
-
stage_to_stop: z.ZodDefault<z.ZodEnum<["align", "architect", "atomize", "approve", "automate", "assess", "complete"]>>;
|
|
58
|
-
custom_config: z.ZodOptional<z.ZodObject<{
|
|
59
|
-
analysis_depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>;
|
|
60
|
-
include_tests: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
-
include_docs: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
include_tests: boolean;
|
|
64
|
-
analysis_depth: "detailed" | "comprehensive" | "basic";
|
|
65
|
-
include_docs: boolean;
|
|
66
|
-
}, {
|
|
67
|
-
include_tests?: boolean | undefined;
|
|
68
|
-
analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
|
|
69
|
-
include_docs?: boolean | undefined;
|
|
70
|
-
}>>;
|
|
71
|
-
};
|
|
72
|
-
handler: (args: any) => Promise<{
|
|
73
|
-
content: {
|
|
74
|
-
type: string;
|
|
75
|
-
text: string;
|
|
76
|
-
}[];
|
|
77
|
-
isError?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
content: {
|
|
80
|
-
type: string;
|
|
81
|
-
text: string;
|
|
82
|
-
}[];
|
|
83
|
-
isError: boolean;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
export { RequirementHandlerService } from "./core/requirement-handler-service";
|
|
87
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/requirement-handler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BhC,CAAC;AAEL,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;oBAmCX,GAAG;;;;;;;;;;;;;CAyC1B,CAAC;AAGF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC"}
|