intention-coding 0.1.0 → 0.2.1
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/README.md +262 -0
- package/dist/config.d.ts +1 -0
- package/dist/db/file-storage.d.ts +255 -0
- package/dist/index.cjs +10825 -4643
- package/dist/index.js +10805 -4634
- package/dist/services/api-test/add-tasks-to-plan.d.ts +97 -0
- package/dist/services/api-test/api-test.d.ts +86 -0
- package/dist/services/api-test/batch-update-task-summaries.d.ts +61 -0
- package/dist/services/api-test/execute-test-plan.d.ts +21 -0
- package/dist/services/api-test/export-test-results.d.ts +21 -0
- package/dist/services/api-test/get-test-plans.d.ts +21 -0
- package/dist/services/api-test/index.d.ts +285 -0
- package/dist/services/api-test/test-plan.d.ts +119 -0
- package/dist/services/api-test/update-task.d.ts +147 -0
- package/dist/services/change-summarizer/index.d.ts +39 -0
- package/dist/services/claude-code/index.d.ts +200 -0
- package/dist/services/code-generator/database-manager.d.ts +65 -0
- package/dist/services/code-generator/enhanced-tools.d.ts +392 -0
- package/dist/services/code-generator/export-excel.d.ts +21 -0
- package/dist/services/code-generator/index.d.ts +102 -0
- package/dist/services/code-generator/task-queue.d.ts +114 -0
- package/dist/services/integrated-generator/index.d.ts +107 -0
- package/dist/services/openai-service.d.ts +29 -0
- package/dist/services/pdf2md/index.d.ts +74 -0
- package/dist/services/project-template/index.d.ts +51 -0
- package/dist/services/requirement-analyzer/auto-trigger.d.ts +1 -0
- package/dist/services/requirement-analyzer/index.d.ts +311 -0
- package/dist/services/velocity-template/index.d.ts +334 -0
- package/dist/services/world2md/index.d.ts +69 -0
- package/dist/utils/common.d.ts +1 -1
- package/package.json +12 -7
- package/dist/prompt/tech.d.ts +0 -1
- package/dist/schemas/intent-recognizer.d.ts +0 -33
- package/dist/schemas/types.d.ts +0 -34
- package/dist/schemas/word2md.d.ts +0 -34
- package/dist/tools/architecture-designer.d.ts +0 -12
- package/dist/tools/export-final-document.d.ts +0 -7
- package/dist/tools/index.d.ts +0 -6
- package/dist/tools/intent-recognizer.d.ts +0 -15
- package/dist/tools/requirement-clarifier.d.ts +0 -15
- package/dist/tools/requirement-manager.d.ts +0 -18
- package/dist/tools/utils.d.ts +0 -0
- package/dist/tools/view-requirements-status.d.ts +0 -7
- package/dist/tools/word2md.d.ts +0 -36
- package/dist/utils/mcp-server.d.ts +0 -28
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const IntegratedGeneratorParams: z.ZodObject<{
|
|
3
|
+
project_name: z.ZodString;
|
|
4
|
+
project_description: z.ZodString;
|
|
5
|
+
user_story: z.ZodString;
|
|
6
|
+
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
programming_language: z.ZodString;
|
|
8
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
9
|
+
architecture_pattern: z.ZodOptional<z.ZodEnum<["microservices", "monolithic", "layered", "event-driven"]>>;
|
|
10
|
+
generation_type: z.ZodDefault<z.ZodEnum<["full_project", "module_only", "feature_only"]>>;
|
|
11
|
+
include_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
include_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
custom_context: z.ZodOptional<z.ZodString>;
|
|
14
|
+
business_rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
|
+
technical_requirements: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
project_name: string;
|
|
18
|
+
include_examples: boolean;
|
|
19
|
+
programming_language: string;
|
|
20
|
+
user_story: string;
|
|
21
|
+
acceptance_criteria: string[];
|
|
22
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
23
|
+
include_tests: boolean;
|
|
24
|
+
project_description: string;
|
|
25
|
+
framework?: string | undefined;
|
|
26
|
+
technical_requirements?: string | undefined;
|
|
27
|
+
custom_context?: string | undefined;
|
|
28
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
29
|
+
business_rules?: string[] | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
project_name: string;
|
|
32
|
+
programming_language: string;
|
|
33
|
+
user_story: string;
|
|
34
|
+
acceptance_criteria: string[];
|
|
35
|
+
project_description: string;
|
|
36
|
+
include_examples?: boolean | undefined;
|
|
37
|
+
framework?: string | undefined;
|
|
38
|
+
technical_requirements?: string | undefined;
|
|
39
|
+
custom_context?: string | undefined;
|
|
40
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
41
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
42
|
+
include_tests?: boolean | undefined;
|
|
43
|
+
business_rules?: string[] | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export interface IntegratedGeneratorParams {
|
|
46
|
+
project_name: string;
|
|
47
|
+
project_description: string;
|
|
48
|
+
user_story: string;
|
|
49
|
+
acceptance_criteria: string[];
|
|
50
|
+
programming_language: string;
|
|
51
|
+
framework?: string;
|
|
52
|
+
architecture_pattern?: 'microservices' | 'monolithic' | 'layered' | 'event-driven';
|
|
53
|
+
generation_type?: 'full_project' | 'module_only' | 'feature_only';
|
|
54
|
+
include_examples?: boolean;
|
|
55
|
+
include_tests?: boolean;
|
|
56
|
+
custom_context?: string;
|
|
57
|
+
business_rules?: string[];
|
|
58
|
+
technical_requirements?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const integratedGenerator: {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
parameters: z.ZodObject<{
|
|
64
|
+
project_name: z.ZodString;
|
|
65
|
+
project_description: z.ZodString;
|
|
66
|
+
user_story: z.ZodString;
|
|
67
|
+
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
68
|
+
programming_language: z.ZodString;
|
|
69
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
70
|
+
architecture_pattern: z.ZodOptional<z.ZodEnum<["microservices", "monolithic", "layered", "event-driven"]>>;
|
|
71
|
+
generation_type: z.ZodDefault<z.ZodEnum<["full_project", "module_only", "feature_only"]>>;
|
|
72
|
+
include_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
73
|
+
include_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
74
|
+
custom_context: z.ZodOptional<z.ZodString>;
|
|
75
|
+
business_rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
|
+
technical_requirements: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
project_name: string;
|
|
79
|
+
include_examples: boolean;
|
|
80
|
+
programming_language: string;
|
|
81
|
+
user_story: string;
|
|
82
|
+
acceptance_criteria: string[];
|
|
83
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
84
|
+
include_tests: boolean;
|
|
85
|
+
project_description: string;
|
|
86
|
+
framework?: string | undefined;
|
|
87
|
+
technical_requirements?: string | undefined;
|
|
88
|
+
custom_context?: string | undefined;
|
|
89
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
90
|
+
business_rules?: string[] | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
project_name: string;
|
|
93
|
+
programming_language: string;
|
|
94
|
+
user_story: string;
|
|
95
|
+
acceptance_criteria: string[];
|
|
96
|
+
project_description: string;
|
|
97
|
+
include_examples?: boolean | undefined;
|
|
98
|
+
framework?: string | undefined;
|
|
99
|
+
technical_requirements?: string | undefined;
|
|
100
|
+
custom_context?: string | undefined;
|
|
101
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
102
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
103
|
+
include_tests?: boolean | undefined;
|
|
104
|
+
business_rules?: string[] | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
execute: (args: IntegratedGeneratorParams) => Promise<string>;
|
|
107
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OpenAIParams: z.ZodObject<{
|
|
3
|
+
prompt: z.ZodString;
|
|
4
|
+
model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
max_tokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6
|
+
temperature: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
system_prompt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
prompt: string;
|
|
10
|
+
model: string;
|
|
11
|
+
max_tokens: number;
|
|
12
|
+
temperature: number;
|
|
13
|
+
system_prompt?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
prompt: string;
|
|
16
|
+
model?: string | undefined;
|
|
17
|
+
max_tokens?: number | undefined;
|
|
18
|
+
temperature?: number | undefined;
|
|
19
|
+
system_prompt?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type OpenAIParams = z.infer<typeof OpenAIParams>;
|
|
22
|
+
export declare class OpenAIService {
|
|
23
|
+
private apiKey;
|
|
24
|
+
private baseUrl;
|
|
25
|
+
constructor(apiKey?: string, baseUrl?: string);
|
|
26
|
+
generateText(params: OpenAIParams): Promise<string>;
|
|
27
|
+
generateStream(params: OpenAIParams): Promise<AsyncIterable<string>>;
|
|
28
|
+
}
|
|
29
|
+
export declare const openAIService: OpenAIService;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Pdf2MdParams: z.ZodObject<{
|
|
3
|
+
file_path: z.ZodString;
|
|
4
|
+
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
preserve_formatting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
+
chunk_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
extract_metadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
preserve_formatting: boolean;
|
|
10
|
+
chunk_size: number;
|
|
11
|
+
extract_metadata: boolean;
|
|
12
|
+
}, {
|
|
13
|
+
preserve_formatting?: boolean | undefined;
|
|
14
|
+
chunk_size?: number | undefined;
|
|
15
|
+
extract_metadata?: boolean | undefined;
|
|
16
|
+
}>>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
options: {
|
|
19
|
+
preserve_formatting: boolean;
|
|
20
|
+
chunk_size: number;
|
|
21
|
+
extract_metadata: boolean;
|
|
22
|
+
};
|
|
23
|
+
file_path: string;
|
|
24
|
+
}, {
|
|
25
|
+
file_path: string;
|
|
26
|
+
options?: {
|
|
27
|
+
preserve_formatting?: boolean | undefined;
|
|
28
|
+
chunk_size?: number | undefined;
|
|
29
|
+
extract_metadata?: boolean | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export interface Pdf2MdParams {
|
|
33
|
+
file_path: string;
|
|
34
|
+
options?: {
|
|
35
|
+
preserve_formatting?: boolean;
|
|
36
|
+
chunk_size?: number;
|
|
37
|
+
extract_metadata?: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare const pdf2mdTool: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
parameters: z.ZodObject<{
|
|
44
|
+
file_path: z.ZodString;
|
|
45
|
+
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
preserve_formatting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
chunk_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
48
|
+
extract_metadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
preserve_formatting: boolean;
|
|
51
|
+
chunk_size: number;
|
|
52
|
+
extract_metadata: boolean;
|
|
53
|
+
}, {
|
|
54
|
+
preserve_formatting?: boolean | undefined;
|
|
55
|
+
chunk_size?: number | undefined;
|
|
56
|
+
extract_metadata?: boolean | undefined;
|
|
57
|
+
}>>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
options: {
|
|
60
|
+
preserve_formatting: boolean;
|
|
61
|
+
chunk_size: number;
|
|
62
|
+
extract_metadata: boolean;
|
|
63
|
+
};
|
|
64
|
+
file_path: string;
|
|
65
|
+
}, {
|
|
66
|
+
file_path: string;
|
|
67
|
+
options?: {
|
|
68
|
+
preserve_formatting?: boolean | undefined;
|
|
69
|
+
chunk_size?: number | undefined;
|
|
70
|
+
extract_metadata?: boolean | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
execute: (args: Pdf2MdParams) => Promise<string>;
|
|
74
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProjectTemplateParams: z.ZodObject<{
|
|
3
|
+
project_name: z.ZodOptional<z.ZodString>;
|
|
4
|
+
output_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cursorrules", "instructions", "both"]>>>;
|
|
5
|
+
analysis_depth: z.ZodDefault<z.ZodOptional<z.ZodEnum<["basic", "detailed", "comprehensive"]>>>;
|
|
6
|
+
include_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
custom_rules: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
output_type: "cursorrules" | "instructions" | "both";
|
|
10
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
11
|
+
include_examples: boolean;
|
|
12
|
+
project_name?: string | undefined;
|
|
13
|
+
custom_rules?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
project_name?: string | undefined;
|
|
16
|
+
output_type?: "cursorrules" | "instructions" | "both" | undefined;
|
|
17
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
18
|
+
include_examples?: boolean | undefined;
|
|
19
|
+
custom_rules?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export interface ProjectTemplateParams {
|
|
22
|
+
project_name?: string;
|
|
23
|
+
output_type?: 'cursorrules' | 'instructions' | 'both';
|
|
24
|
+
analysis_depth?: 'basic' | 'detailed' | 'comprehensive';
|
|
25
|
+
include_examples?: boolean;
|
|
26
|
+
custom_rules?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const initProjectStandard: {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
parameters: z.ZodObject<{
|
|
32
|
+
project_name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
output_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cursorrules", "instructions", "both"]>>>;
|
|
34
|
+
analysis_depth: z.ZodDefault<z.ZodOptional<z.ZodEnum<["basic", "detailed", "comprehensive"]>>>;
|
|
35
|
+
include_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
36
|
+
custom_rules: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
output_type: "cursorrules" | "instructions" | "both";
|
|
39
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
40
|
+
include_examples: boolean;
|
|
41
|
+
project_name?: string | undefined;
|
|
42
|
+
custom_rules?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
project_name?: string | undefined;
|
|
45
|
+
output_type?: "cursorrules" | "instructions" | "both" | undefined;
|
|
46
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
47
|
+
include_examples?: boolean | undefined;
|
|
48
|
+
custom_rules?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
execute: (args: ProjectTemplateParams) => Promise<string>;
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function extractTaskDescriptionFromRequirement(requirementDoc: string, featureName: string): Promise<string>;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RequirementAnalyzerParams: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
input_type: z.ZodEnum<["text", "md_file"]>;
|
|
4
|
+
content: z.ZodOptional<z.ZodString>;
|
|
5
|
+
md_file_path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
feature_name: z.ZodString;
|
|
7
|
+
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
analysis_depth: z.ZodDefault<z.ZodOptional<z.ZodEnum<["basic", "detailed", "comprehensive"]>>>;
|
|
9
|
+
generate_sequence_diagram: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
business_domain: z.ZodOptional<z.ZodString>;
|
|
11
|
+
prompt_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["standard", "technical", "business"]>>>;
|
|
12
|
+
include_code_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
custom_prompt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
17
|
+
generate_sequence_diagram: boolean;
|
|
18
|
+
prompt_style: "standard" | "technical" | "business";
|
|
19
|
+
include_code_examples: boolean;
|
|
20
|
+
language: "zh-CN" | "en";
|
|
21
|
+
business_domain?: string | undefined;
|
|
22
|
+
custom_prompt?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
25
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
26
|
+
business_domain?: string | undefined;
|
|
27
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
28
|
+
include_code_examples?: boolean | undefined;
|
|
29
|
+
custom_prompt?: string | undefined;
|
|
30
|
+
language?: "zh-CN" | "en" | undefined;
|
|
31
|
+
}>>>;
|
|
32
|
+
auto_trigger: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
33
|
+
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
34
|
+
programming_language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
36
|
+
architecture_pattern: z.ZodOptional<z.ZodEnum<["microservices", "monolithic", "layered", "event-driven"]>>;
|
|
37
|
+
generation_type: z.ZodDefault<z.ZodEnum<["full_project", "module_only", "feature_only"]>>;
|
|
38
|
+
include_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
programming_language: string;
|
|
41
|
+
enable: boolean;
|
|
42
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
43
|
+
include_tests: boolean;
|
|
44
|
+
framework?: string | undefined;
|
|
45
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
framework?: string | undefined;
|
|
48
|
+
programming_language?: string | undefined;
|
|
49
|
+
enable?: boolean | undefined;
|
|
50
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
51
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
52
|
+
include_tests?: boolean | undefined;
|
|
53
|
+
}>>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
options: {
|
|
56
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
57
|
+
generate_sequence_diagram: boolean;
|
|
58
|
+
prompt_style: "standard" | "technical" | "business";
|
|
59
|
+
include_code_examples: boolean;
|
|
60
|
+
language: "zh-CN" | "en";
|
|
61
|
+
business_domain?: string | undefined;
|
|
62
|
+
custom_prompt?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
input_type: "text" | "md_file";
|
|
65
|
+
feature_name: string;
|
|
66
|
+
auto_trigger: {
|
|
67
|
+
programming_language: string;
|
|
68
|
+
enable: boolean;
|
|
69
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
70
|
+
include_tests: boolean;
|
|
71
|
+
framework?: string | undefined;
|
|
72
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
73
|
+
};
|
|
74
|
+
content?: string | undefined;
|
|
75
|
+
md_file_path?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
input_type: "text" | "md_file";
|
|
78
|
+
feature_name: string;
|
|
79
|
+
options?: {
|
|
80
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
81
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
82
|
+
business_domain?: string | undefined;
|
|
83
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
84
|
+
include_code_examples?: boolean | undefined;
|
|
85
|
+
custom_prompt?: string | undefined;
|
|
86
|
+
language?: "zh-CN" | "en" | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
content?: string | undefined;
|
|
89
|
+
md_file_path?: string | undefined;
|
|
90
|
+
auto_trigger?: {
|
|
91
|
+
framework?: string | undefined;
|
|
92
|
+
programming_language?: string | undefined;
|
|
93
|
+
enable?: boolean | undefined;
|
|
94
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
95
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
96
|
+
include_tests?: boolean | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
options: {
|
|
100
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
101
|
+
generate_sequence_diagram: boolean;
|
|
102
|
+
prompt_style: "standard" | "technical" | "business";
|
|
103
|
+
include_code_examples: boolean;
|
|
104
|
+
language: "zh-CN" | "en";
|
|
105
|
+
business_domain?: string | undefined;
|
|
106
|
+
custom_prompt?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
input_type: "text" | "md_file";
|
|
109
|
+
feature_name: string;
|
|
110
|
+
auto_trigger: {
|
|
111
|
+
programming_language: string;
|
|
112
|
+
enable: boolean;
|
|
113
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
114
|
+
include_tests: boolean;
|
|
115
|
+
framework?: string | undefined;
|
|
116
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
117
|
+
};
|
|
118
|
+
content?: string | undefined;
|
|
119
|
+
md_file_path?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
input_type: "text" | "md_file";
|
|
122
|
+
feature_name: string;
|
|
123
|
+
options?: {
|
|
124
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
125
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
126
|
+
business_domain?: string | undefined;
|
|
127
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
128
|
+
include_code_examples?: boolean | undefined;
|
|
129
|
+
custom_prompt?: string | undefined;
|
|
130
|
+
language?: "zh-CN" | "en" | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
content?: string | undefined;
|
|
133
|
+
md_file_path?: string | undefined;
|
|
134
|
+
auto_trigger?: {
|
|
135
|
+
framework?: string | undefined;
|
|
136
|
+
programming_language?: string | undefined;
|
|
137
|
+
enable?: boolean | undefined;
|
|
138
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
139
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
140
|
+
include_tests?: boolean | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export interface RequirementAnalyzerParams {
|
|
144
|
+
input_type: 'text' | 'md_file';
|
|
145
|
+
content?: string;
|
|
146
|
+
md_file_path?: string;
|
|
147
|
+
feature_name: string;
|
|
148
|
+
options?: {
|
|
149
|
+
analysis_depth?: 'basic' | 'detailed' | 'comprehensive';
|
|
150
|
+
generate_sequence_diagram?: boolean;
|
|
151
|
+
business_domain?: string;
|
|
152
|
+
prompt_style?: 'standard' | 'technical' | 'business';
|
|
153
|
+
include_code_examples?: boolean;
|
|
154
|
+
custom_prompt?: string;
|
|
155
|
+
language?: 'zh-CN' | 'en';
|
|
156
|
+
};
|
|
157
|
+
auto_trigger?: {
|
|
158
|
+
enable?: boolean;
|
|
159
|
+
programming_language?: string;
|
|
160
|
+
framework?: string;
|
|
161
|
+
architecture_pattern?: 'microservices' | 'monolithic' | 'layered' | 'event-driven';
|
|
162
|
+
generation_type?: 'full_project' | 'module_only' | 'feature_only';
|
|
163
|
+
include_tests?: boolean;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export declare const requirementAnalyzerTool: {
|
|
167
|
+
name: string;
|
|
168
|
+
description: string;
|
|
169
|
+
parameters: z.ZodEffects<z.ZodObject<{
|
|
170
|
+
input_type: z.ZodEnum<["text", "md_file"]>;
|
|
171
|
+
content: z.ZodOptional<z.ZodString>;
|
|
172
|
+
md_file_path: z.ZodOptional<z.ZodString>;
|
|
173
|
+
feature_name: z.ZodString;
|
|
174
|
+
options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
175
|
+
analysis_depth: z.ZodDefault<z.ZodOptional<z.ZodEnum<["basic", "detailed", "comprehensive"]>>>;
|
|
176
|
+
generate_sequence_diagram: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
177
|
+
business_domain: z.ZodOptional<z.ZodString>;
|
|
178
|
+
prompt_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["standard", "technical", "business"]>>>;
|
|
179
|
+
include_code_examples: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
180
|
+
custom_prompt: z.ZodOptional<z.ZodString>;
|
|
181
|
+
language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
184
|
+
generate_sequence_diagram: boolean;
|
|
185
|
+
prompt_style: "standard" | "technical" | "business";
|
|
186
|
+
include_code_examples: boolean;
|
|
187
|
+
language: "zh-CN" | "en";
|
|
188
|
+
business_domain?: string | undefined;
|
|
189
|
+
custom_prompt?: string | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
192
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
193
|
+
business_domain?: string | undefined;
|
|
194
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
195
|
+
include_code_examples?: boolean | undefined;
|
|
196
|
+
custom_prompt?: string | undefined;
|
|
197
|
+
language?: "zh-CN" | "en" | undefined;
|
|
198
|
+
}>>>;
|
|
199
|
+
auto_trigger: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
200
|
+
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
201
|
+
programming_language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
202
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
203
|
+
architecture_pattern: z.ZodOptional<z.ZodEnum<["microservices", "monolithic", "layered", "event-driven"]>>;
|
|
204
|
+
generation_type: z.ZodDefault<z.ZodEnum<["full_project", "module_only", "feature_only"]>>;
|
|
205
|
+
include_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
programming_language: string;
|
|
208
|
+
enable: boolean;
|
|
209
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
210
|
+
include_tests: boolean;
|
|
211
|
+
framework?: string | undefined;
|
|
212
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
framework?: string | undefined;
|
|
215
|
+
programming_language?: string | undefined;
|
|
216
|
+
enable?: boolean | undefined;
|
|
217
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
218
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
219
|
+
include_tests?: boolean | undefined;
|
|
220
|
+
}>>>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
options: {
|
|
223
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
224
|
+
generate_sequence_diagram: boolean;
|
|
225
|
+
prompt_style: "standard" | "technical" | "business";
|
|
226
|
+
include_code_examples: boolean;
|
|
227
|
+
language: "zh-CN" | "en";
|
|
228
|
+
business_domain?: string | undefined;
|
|
229
|
+
custom_prompt?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
input_type: "text" | "md_file";
|
|
232
|
+
feature_name: string;
|
|
233
|
+
auto_trigger: {
|
|
234
|
+
programming_language: string;
|
|
235
|
+
enable: boolean;
|
|
236
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
237
|
+
include_tests: boolean;
|
|
238
|
+
framework?: string | undefined;
|
|
239
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
240
|
+
};
|
|
241
|
+
content?: string | undefined;
|
|
242
|
+
md_file_path?: string | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
input_type: "text" | "md_file";
|
|
245
|
+
feature_name: string;
|
|
246
|
+
options?: {
|
|
247
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
248
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
249
|
+
business_domain?: string | undefined;
|
|
250
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
251
|
+
include_code_examples?: boolean | undefined;
|
|
252
|
+
custom_prompt?: string | undefined;
|
|
253
|
+
language?: "zh-CN" | "en" | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
content?: string | undefined;
|
|
256
|
+
md_file_path?: string | undefined;
|
|
257
|
+
auto_trigger?: {
|
|
258
|
+
framework?: string | undefined;
|
|
259
|
+
programming_language?: string | undefined;
|
|
260
|
+
enable?: boolean | undefined;
|
|
261
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
262
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
263
|
+
include_tests?: boolean | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
}>, {
|
|
266
|
+
options: {
|
|
267
|
+
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
268
|
+
generate_sequence_diagram: boolean;
|
|
269
|
+
prompt_style: "standard" | "technical" | "business";
|
|
270
|
+
include_code_examples: boolean;
|
|
271
|
+
language: "zh-CN" | "en";
|
|
272
|
+
business_domain?: string | undefined;
|
|
273
|
+
custom_prompt?: string | undefined;
|
|
274
|
+
};
|
|
275
|
+
input_type: "text" | "md_file";
|
|
276
|
+
feature_name: string;
|
|
277
|
+
auto_trigger: {
|
|
278
|
+
programming_language: string;
|
|
279
|
+
enable: boolean;
|
|
280
|
+
generation_type: "full_project" | "module_only" | "feature_only";
|
|
281
|
+
include_tests: boolean;
|
|
282
|
+
framework?: string | undefined;
|
|
283
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
284
|
+
};
|
|
285
|
+
content?: string | undefined;
|
|
286
|
+
md_file_path?: string | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
input_type: "text" | "md_file";
|
|
289
|
+
feature_name: string;
|
|
290
|
+
options?: {
|
|
291
|
+
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
292
|
+
generate_sequence_diagram?: boolean | undefined;
|
|
293
|
+
business_domain?: string | undefined;
|
|
294
|
+
prompt_style?: "standard" | "technical" | "business" | undefined;
|
|
295
|
+
include_code_examples?: boolean | undefined;
|
|
296
|
+
custom_prompt?: string | undefined;
|
|
297
|
+
language?: "zh-CN" | "en" | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
content?: string | undefined;
|
|
300
|
+
md_file_path?: string | undefined;
|
|
301
|
+
auto_trigger?: {
|
|
302
|
+
framework?: string | undefined;
|
|
303
|
+
programming_language?: string | undefined;
|
|
304
|
+
enable?: boolean | undefined;
|
|
305
|
+
architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
|
|
306
|
+
generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
|
|
307
|
+
include_tests?: boolean | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
}>;
|
|
310
|
+
execute: (args: RequirementAnalyzerParams) => Promise<string>;
|
|
311
|
+
};
|