intention-coding 0.4.9 → 0.5.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.
@@ -10,14 +10,14 @@ declare const CodeGeneratorParamsSchema: z.ZodObject<{
10
10
  project_path: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  task_description: string;
13
- current_stage: "research" | "ideation" | "planning" | "execution" | "optimization" | "review";
14
- project_path?: string | undefined;
13
+ current_stage: "review" | "planning" | "research" | "ideation" | "execution" | "optimization";
15
14
  user_input?: any;
15
+ project_path?: string | undefined;
16
16
  }, {
17
17
  task_description: string;
18
- project_path?: string | undefined;
19
- current_stage?: "research" | "ideation" | "planning" | "execution" | "optimization" | "review" | undefined;
18
+ current_stage?: "review" | "planning" | "research" | "ideation" | "execution" | "optimization" | undefined;
20
19
  user_input?: any;
20
+ project_path?: string | undefined;
21
21
  }>;
22
22
  export type CodeGeneratorParams = z.infer<typeof CodeGeneratorParamsSchema>;
23
23
  /**
@@ -0,0 +1,172 @@
1
+ import { z } from "zod";
2
+ export declare const ExportExcelParamsSchema: z.ZodObject<{
3
+ data: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">, z.ZodRecord<z.ZodString, z.ZodAny>]>;
4
+ outputPath: z.ZodOptional<z.ZodString>;
5
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
6
+ sheetName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
+ format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["xlsx", "csv", "xls"]>>>;
8
+ header: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ autoWidth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
+ freezePane: z.ZodOptional<z.ZodString>;
11
+ style: z.ZodOptional<z.ZodObject<{
12
+ headerStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13
+ dataStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ headerStyle?: Record<string, any> | undefined;
16
+ dataStyle?: Record<string, any> | undefined;
17
+ }, {
18
+ headerStyle?: Record<string, any> | undefined;
19
+ dataStyle?: Record<string, any> | undefined;
20
+ }>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ format: "xlsx" | "csv" | "xls";
23
+ sheetName: string;
24
+ autoWidth: boolean;
25
+ header?: string[] | undefined;
26
+ freezePane?: string | undefined;
27
+ style?: {
28
+ headerStyle?: Record<string, any> | undefined;
29
+ dataStyle?: Record<string, any> | undefined;
30
+ } | undefined;
31
+ }, {
32
+ format?: "xlsx" | "csv" | "xls" | undefined;
33
+ sheetName?: string | undefined;
34
+ header?: string[] | undefined;
35
+ autoWidth?: boolean | undefined;
36
+ freezePane?: string | undefined;
37
+ style?: {
38
+ headerStyle?: Record<string, any> | undefined;
39
+ dataStyle?: Record<string, any> | undefined;
40
+ } | undefined;
41
+ }>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ options: {
44
+ format: "xlsx" | "csv" | "xls";
45
+ sheetName: string;
46
+ autoWidth: boolean;
47
+ header?: string[] | undefined;
48
+ freezePane?: string | undefined;
49
+ style?: {
50
+ headerStyle?: Record<string, any> | undefined;
51
+ dataStyle?: Record<string, any> | undefined;
52
+ } | undefined;
53
+ };
54
+ data: string | any[] | Record<string, any>;
55
+ outputPath?: string | undefined;
56
+ }, {
57
+ data: string | any[] | Record<string, any>;
58
+ options?: {
59
+ format?: "xlsx" | "csv" | "xls" | undefined;
60
+ sheetName?: string | undefined;
61
+ header?: string[] | undefined;
62
+ autoWidth?: boolean | undefined;
63
+ freezePane?: string | undefined;
64
+ style?: {
65
+ headerStyle?: Record<string, any> | undefined;
66
+ dataStyle?: Record<string, any> | undefined;
67
+ } | undefined;
68
+ } | undefined;
69
+ outputPath?: string | undefined;
70
+ }>;
71
+ export interface ExportExcelParams {
72
+ data: string | any[] | Record<string, any>;
73
+ outputPath?: string;
74
+ options?: {
75
+ sheetName?: string;
76
+ format?: 'xlsx' | 'csv' | 'xls';
77
+ header?: string[];
78
+ autoWidth?: boolean;
79
+ freezePane?: string;
80
+ style?: {
81
+ headerStyle?: Record<string, any>;
82
+ dataStyle?: Record<string, any>;
83
+ };
84
+ };
85
+ }
86
+ export declare const exportExcelTool: {
87
+ name: string;
88
+ description: string;
89
+ inputSchema: z.ZodObject<{
90
+ data: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">, z.ZodRecord<z.ZodString, z.ZodAny>]>;
91
+ outputPath: z.ZodOptional<z.ZodString>;
92
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
93
+ sheetName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
94
+ format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["xlsx", "csv", "xls"]>>>;
95
+ header: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
+ autoWidth: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
97
+ freezePane: z.ZodOptional<z.ZodString>;
98
+ style: z.ZodOptional<z.ZodObject<{
99
+ headerStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
100
+ dataStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ headerStyle?: Record<string, any> | undefined;
103
+ dataStyle?: Record<string, any> | undefined;
104
+ }, {
105
+ headerStyle?: Record<string, any> | undefined;
106
+ dataStyle?: Record<string, any> | undefined;
107
+ }>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ format: "xlsx" | "csv" | "xls";
110
+ sheetName: string;
111
+ autoWidth: boolean;
112
+ header?: string[] | undefined;
113
+ freezePane?: string | undefined;
114
+ style?: {
115
+ headerStyle?: Record<string, any> | undefined;
116
+ dataStyle?: Record<string, any> | undefined;
117
+ } | undefined;
118
+ }, {
119
+ format?: "xlsx" | "csv" | "xls" | undefined;
120
+ sheetName?: string | undefined;
121
+ header?: string[] | undefined;
122
+ autoWidth?: boolean | undefined;
123
+ freezePane?: string | undefined;
124
+ style?: {
125
+ headerStyle?: Record<string, any> | undefined;
126
+ dataStyle?: Record<string, any> | undefined;
127
+ } | undefined;
128
+ }>>>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ options: {
131
+ format: "xlsx" | "csv" | "xls";
132
+ sheetName: string;
133
+ autoWidth: boolean;
134
+ header?: string[] | undefined;
135
+ freezePane?: string | undefined;
136
+ style?: {
137
+ headerStyle?: Record<string, any> | undefined;
138
+ dataStyle?: Record<string, any> | undefined;
139
+ } | undefined;
140
+ };
141
+ data: string | any[] | Record<string, any>;
142
+ outputPath?: string | undefined;
143
+ }, {
144
+ data: string | any[] | Record<string, any>;
145
+ options?: {
146
+ format?: "xlsx" | "csv" | "xls" | undefined;
147
+ sheetName?: string | undefined;
148
+ header?: string[] | undefined;
149
+ autoWidth?: boolean | undefined;
150
+ freezePane?: string | undefined;
151
+ style?: {
152
+ headerStyle?: Record<string, any> | undefined;
153
+ dataStyle?: Record<string, any> | undefined;
154
+ } | undefined;
155
+ } | undefined;
156
+ outputPath?: string | undefined;
157
+ }>;
158
+ handler: (args: any) => Promise<{
159
+ content: {
160
+ type: string;
161
+ text: string;
162
+ }[];
163
+ isError?: undefined;
164
+ } | {
165
+ content: {
166
+ type: string;
167
+ text: string;
168
+ }[];
169
+ isError: boolean;
170
+ }>;
171
+ };
172
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/export-excel/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBlC,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACN,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;QAChC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE;YACJ,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAClC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SACnC,CAAC;KACL,CAAC;CACL;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAIF,GAAG;;;;;;;;;;;;;CA0K5B,CAAC"}
@@ -16,14 +16,6 @@ export declare class ImageAnalyzer {
16
16
  * 构建分析prompt
17
17
  */
18
18
  private buildAnalysisPrompt;
19
- /**
20
- * 检测是否为UI设计稿
21
- */
22
- private detectUIDesign;
23
- /**
24
- * 获取详细程度指令
25
- */
26
- private getDetailInstruction;
27
19
  /**
28
20
  * 解析AI响应
29
21
  */
@@ -32,14 +24,6 @@ export declare class ImageAnalyzer {
32
24
  * 清理AI响应内容
33
25
  */
34
26
  private cleanAIResponse;
35
- /**
36
- * 提取详细信息
37
- */
38
- private extractDetails;
39
- /**
40
- * 提取章节标题
41
- */
42
- private extractSectionTitle;
43
27
  /**
44
28
  * 获取图片基本信息
45
29
  */
@@ -56,18 +40,6 @@ export declare class ImageAnalyzer {
56
40
  * 计算置信度分数
57
41
  */
58
42
  private calculateConfidenceScore;
59
- private extractTags;
60
- private extractObjects;
61
- private extractTextContent;
62
- /**
63
- * 检测语言
64
- */
65
- private detectLanguage;
66
- private extractSceneInfo;
67
- private extractPeopleInfo;
68
- private extractTechnicalInfo;
69
- private extractUIDesignInfo;
70
- private extractRequirementInfo;
71
43
  private extractValue;
72
44
  private extractBoolean;
73
45
  private extractList;
@@ -1 +1 @@
1
- {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../src/services/image-analysis/analyzer.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,cAAc,EAQf,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAmDhF;;OAEG;YACW,iBAAiB;IAkC/B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsC3B;;OAEG;IACH,OAAO,CAAC,cAAc;IAyBtB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAY5B;;OAEG;IACH,OAAO,CAAC,eAAe;IAgCvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAqBvB;;OAEG;IACH,OAAO,CAAC,cAAc;IAqBtB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;YACW,iBAAiB;IAyB/B;;OAEG;YACW,aAAa;IAsC3B;;OAEG;YACW,cAAc;IA0B5B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,WAAW;IAuDnB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,kBAAkB;IAiC1B;;OAEG;IACH,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,sBAAsB;IAe9B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,mBAAmB;IA2B3B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,6BAA6B;IA2BrC,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,cAAc;CASvB"}
1
+ {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../src/services/image-analysis/analyzer.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,cAAc,EAQf,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,qBAAa,aAAa;IACxB;;OAEG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAmDhF;;OAEG;YACW,iBAAiB;IAkC/B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAwB3B;;OAEG;IACH,OAAO,CAAC,eAAe;IAgCvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAqBvB;;OAEG;YACW,iBAAiB;IAyB/B;;OAEG;YACW,aAAa;IAsC3B;;OAEG;YACW,cAAc;IA0B5B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,mBAAmB;IA2B3B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,6BAA6B;IA2BrC,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,cAAc;CASvB"}
@@ -1,15 +1,12 @@
1
1
  import { z } from "zod";
2
2
  declare const ImageAnalysisParamsSchema: z.ZodObject<{
3
3
  image_path: z.ZodString;
4
- output_path: z.ZodOptional<z.ZodString>;
5
4
  context: z.ZodOptional<z.ZodString>;
6
5
  }, "strip", z.ZodTypeAny, {
7
6
  image_path: string;
8
- output_path?: string | undefined;
9
7
  context?: string | undefined;
10
8
  }, {
11
9
  image_path: string;
12
- output_path?: string | undefined;
13
10
  context?: string | undefined;
14
11
  }>;
15
12
  export type ImageAnalysisToolParams = z.infer<typeof ImageAnalysisParamsSchema>;
@@ -22,25 +19,16 @@ export declare const read_imageTool: {
22
19
  description: string;
23
20
  inputSchema: {
24
21
  image_path: z.ZodString;
25
- output_path: z.ZodOptional<z.ZodString>;
26
22
  context: z.ZodOptional<z.ZodString>;
27
23
  };
28
24
  handler: (args: {
29
25
  image_path: string;
30
- output_path?: string;
31
26
  context?: string;
32
27
  }) => Promise<{
33
28
  content: {
34
29
  type: string;
35
30
  text: string;
36
31
  }[];
37
- metadata: {
38
- actions: {
39
- type: string;
40
- path: string;
41
- description: string;
42
- }[];
43
- };
44
32
  isError?: undefined;
45
33
  } | {
46
34
  content: {
@@ -48,7 +36,6 @@ export declare const read_imageTool: {
48
36
  text: string;
49
37
  }[];
50
38
  isError: boolean;
51
- metadata?: undefined;
52
39
  }>;
53
40
  };
54
41
  export declare const imageAnalysisTool: {
@@ -56,25 +43,16 @@ export declare const imageAnalysisTool: {
56
43
  description: string;
57
44
  inputSchema: {
58
45
  image_path: z.ZodString;
59
- output_path: z.ZodOptional<z.ZodString>;
60
46
  context: z.ZodOptional<z.ZodString>;
61
47
  };
62
48
  handler: (args: {
63
49
  image_path: string;
64
- output_path?: string;
65
50
  context?: string;
66
51
  }) => Promise<{
67
52
  content: {
68
53
  type: string;
69
54
  text: string;
70
55
  }[];
71
- metadata: {
72
- actions: {
73
- type: string;
74
- path: string;
75
- description: string;
76
- }[];
77
- };
78
56
  isError?: undefined;
79
57
  } | {
80
58
  content: {
@@ -82,7 +60,6 @@ export declare const imageAnalysisTool: {
82
60
  text: string;
83
61
  }[];
84
62
  isError: boolean;
85
- metadata?: undefined;
86
63
  }>;
87
64
  };
88
65
  export { ImageAnalyzer } from "./analyzer";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/image-analysis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,yBAAyB;;;;;;;;;;;;EAK3B,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;oBAUH;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;CA6FrF,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;oBAhGN;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;CAgGvC,CAAC;AAiehD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,WAAW,GACZ,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/image-analysis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,yBAAyB;;;;;;;;;EAI3B,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;oBASH;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;CAqD/D,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;oBAxDN;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;CAwDjB,CAAC;AA4GhD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,WAAW,GACZ,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAcpE,wBAAgB,eAAe,cA6B9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgBpE,wBAAgB,eAAe,cA+B9B"}
@@ -15,17 +15,17 @@ export declare const IntegratedGeneratorParams: z.ZodObject<{
15
15
  technical_requirements: z.ZodOptional<z.ZodString>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  project_name: string;
18
- include_tests: boolean;
19
18
  project_description: string;
20
19
  user_story: string;
21
20
  acceptance_criteria: string[];
22
21
  programming_language: string;
23
22
  generation_type: "full_project" | "module_only" | "feature_only";
24
23
  include_examples: boolean;
25
- business_rules?: string[] | undefined;
24
+ include_tests: boolean;
26
25
  framework?: string | undefined;
27
26
  architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
28
27
  custom_context?: string | undefined;
28
+ business_rules?: string[] | undefined;
29
29
  technical_requirements?: string | undefined;
30
30
  }, {
31
31
  project_name: string;
@@ -33,13 +33,13 @@ export declare const IntegratedGeneratorParams: z.ZodObject<{
33
33
  user_story: string;
34
34
  acceptance_criteria: string[];
35
35
  programming_language: string;
36
- business_rules?: string[] | undefined;
37
- include_tests?: boolean | undefined;
38
36
  framework?: string | undefined;
39
37
  architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
40
38
  generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
41
39
  include_examples?: boolean | undefined;
40
+ include_tests?: boolean | undefined;
42
41
  custom_context?: string | undefined;
42
+ business_rules?: string[] | undefined;
43
43
  technical_requirements?: string | undefined;
44
44
  }>;
45
45
  export interface IntegratedGeneratorParams {
@@ -4,12 +4,12 @@ export declare const ProjectTemplateParams: z.ZodObject<{
4
4
  project_path: z.ZodOptional<z.ZodString>;
5
5
  custom_rules: z.ZodOptional<z.ZodString>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- project_name?: string | undefined;
8
7
  project_path?: string | undefined;
8
+ project_name?: string | undefined;
9
9
  custom_rules?: string | undefined;
10
10
  }, {
11
- project_name?: string | undefined;
12
11
  project_path?: string | undefined;
12
+ project_name?: string | undefined;
13
13
  custom_rules?: string | undefined;
14
14
  }>;
15
15
  export interface ProjectTemplateParams {
@@ -0,0 +1,120 @@
1
+ import { z } from "zod";
2
+ export declare const ReadExcelParamsSchema: z.ZodObject<{
3
+ filePath: z.ZodString;
4
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
5
+ sheetName: z.ZodOptional<z.ZodString>;
6
+ range: z.ZodOptional<z.ZodString>;
7
+ headerRow: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
+ raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
+ dateFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10
+ skipEmptyRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ raw: boolean;
13
+ headerRow: number;
14
+ dateFormat: string;
15
+ skipEmptyRows: boolean;
16
+ sheetName?: string | undefined;
17
+ range?: string | undefined;
18
+ }, {
19
+ raw?: boolean | undefined;
20
+ sheetName?: string | undefined;
21
+ range?: string | undefined;
22
+ headerRow?: number | undefined;
23
+ dateFormat?: string | undefined;
24
+ skipEmptyRows?: boolean | undefined;
25
+ }>>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ options: {
28
+ raw: boolean;
29
+ headerRow: number;
30
+ dateFormat: string;
31
+ skipEmptyRows: boolean;
32
+ sheetName?: string | undefined;
33
+ range?: string | undefined;
34
+ };
35
+ filePath: string;
36
+ }, {
37
+ filePath: string;
38
+ options?: {
39
+ raw?: boolean | undefined;
40
+ sheetName?: string | undefined;
41
+ range?: string | undefined;
42
+ headerRow?: number | undefined;
43
+ dateFormat?: string | undefined;
44
+ skipEmptyRows?: boolean | undefined;
45
+ } | undefined;
46
+ }>;
47
+ export interface ReadExcelParams {
48
+ filePath: string;
49
+ options?: {
50
+ sheetName?: string;
51
+ range?: string;
52
+ headerRow?: number;
53
+ raw?: boolean;
54
+ dateFormat?: string;
55
+ skipEmptyRows?: boolean;
56
+ };
57
+ }
58
+ export declare const readExcelTool: {
59
+ name: string;
60
+ description: string;
61
+ inputSchema: z.ZodObject<{
62
+ filePath: z.ZodString;
63
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
64
+ sheetName: z.ZodOptional<z.ZodString>;
65
+ range: z.ZodOptional<z.ZodString>;
66
+ headerRow: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
67
+ raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
68
+ dateFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
69
+ skipEmptyRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ raw: boolean;
72
+ headerRow: number;
73
+ dateFormat: string;
74
+ skipEmptyRows: boolean;
75
+ sheetName?: string | undefined;
76
+ range?: string | undefined;
77
+ }, {
78
+ raw?: boolean | undefined;
79
+ sheetName?: string | undefined;
80
+ range?: string | undefined;
81
+ headerRow?: number | undefined;
82
+ dateFormat?: string | undefined;
83
+ skipEmptyRows?: boolean | undefined;
84
+ }>>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ options: {
87
+ raw: boolean;
88
+ headerRow: number;
89
+ dateFormat: string;
90
+ skipEmptyRows: boolean;
91
+ sheetName?: string | undefined;
92
+ range?: string | undefined;
93
+ };
94
+ filePath: string;
95
+ }, {
96
+ filePath: string;
97
+ options?: {
98
+ raw?: boolean | undefined;
99
+ sheetName?: string | undefined;
100
+ range?: string | undefined;
101
+ headerRow?: number | undefined;
102
+ dateFormat?: string | undefined;
103
+ skipEmptyRows?: boolean | undefined;
104
+ } | undefined;
105
+ }>;
106
+ handler: (args: any) => Promise<{
107
+ content: {
108
+ type: string;
109
+ text: string;
110
+ }[];
111
+ isError?: undefined;
112
+ } | {
113
+ content: {
114
+ type: string;
115
+ text: string;
116
+ }[];
117
+ isError: boolean;
118
+ }>;
119
+ };
120
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/read-excel/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QACN,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,GAAG,CAAC,EAAE,OAAO,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACL;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAIA,GAAG;;;;;;;;;;;;;CAsI5B,CAAC"}
@@ -12,7 +12,7 @@ declare const RequirementAnalyzerParamsSchema: z.ZodEffects<z.ZodObject<{
12
12
  chunk_size: number;
13
13
  input_type: "text" | "md_file";
14
14
  feature_name: string;
15
- analysis_depth: "basic" | "detailed" | "comprehensive";
15
+ analysis_depth: "detailed" | "comprehensive" | "basic";
16
16
  use_streaming: boolean;
17
17
  content?: string | undefined;
18
18
  md_file_path?: string | undefined;
@@ -24,13 +24,13 @@ declare const RequirementAnalyzerParamsSchema: z.ZodEffects<z.ZodObject<{
24
24
  content?: string | undefined;
25
25
  md_file_path?: string | undefined;
26
26
  custom_prompt?: string | undefined;
27
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
27
+ analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
28
28
  use_streaming?: boolean | undefined;
29
29
  }>, {
30
30
  chunk_size: number;
31
31
  input_type: "text" | "md_file";
32
32
  feature_name: string;
33
- analysis_depth: "basic" | "detailed" | "comprehensive";
33
+ analysis_depth: "detailed" | "comprehensive" | "basic";
34
34
  use_streaming: boolean;
35
35
  content?: string | undefined;
36
36
  md_file_path?: string | undefined;
@@ -42,7 +42,7 @@ declare const RequirementAnalyzerParamsSchema: z.ZodEffects<z.ZodObject<{
42
42
  content?: string | undefined;
43
43
  md_file_path?: string | undefined;
44
44
  custom_prompt?: string | undefined;
45
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
45
+ analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
46
46
  use_streaming?: boolean | undefined;
47
47
  }>;
48
48
  export type RequirementAnalyzerParams = z.infer<typeof RequirementAnalyzerParamsSchema>;
@@ -10,12 +10,12 @@ declare const RequirementHandlerParamsSchema: z.ZodObject<{
10
10
  include_tests: z.ZodDefault<z.ZodBoolean>;
11
11
  include_docs: z.ZodDefault<z.ZodBoolean>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- analysis_depth: "basic" | "detailed" | "comprehensive";
14
13
  include_tests: boolean;
14
+ analysis_depth: "detailed" | "comprehensive" | "basic";
15
15
  include_docs: boolean;
16
16
  }, {
17
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
18
17
  include_tests?: boolean | undefined;
18
+ analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
19
19
  include_docs?: boolean | undefined;
20
20
  }>>;
21
21
  }, "strip", z.ZodTypeAny, {
@@ -25,8 +25,8 @@ declare const RequirementHandlerParamsSchema: z.ZodObject<{
25
25
  stage_to_stop: "align" | "architect" | "atomize" | "approve" | "automate" | "assess" | "complete";
26
26
  project_context?: string | undefined;
27
27
  custom_config?: {
28
- analysis_depth: "basic" | "detailed" | "comprehensive";
29
28
  include_tests: boolean;
29
+ analysis_depth: "detailed" | "comprehensive" | "basic";
30
30
  include_docs: boolean;
31
31
  } | undefined;
32
32
  }, {
@@ -36,8 +36,8 @@ declare const RequirementHandlerParamsSchema: z.ZodObject<{
36
36
  enable_human_confirmation?: boolean | undefined;
37
37
  stage_to_stop?: "align" | "architect" | "atomize" | "approve" | "automate" | "assess" | "complete" | undefined;
38
38
  custom_config?: {
39
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
40
39
  include_tests?: boolean | undefined;
40
+ analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
41
41
  include_docs?: boolean | undefined;
42
42
  } | undefined;
43
43
  }>;
@@ -60,12 +60,12 @@ export declare const requirementHandlerTool: {
60
60
  include_tests: z.ZodDefault<z.ZodBoolean>;
61
61
  include_docs: z.ZodDefault<z.ZodBoolean>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- analysis_depth: "basic" | "detailed" | "comprehensive";
64
63
  include_tests: boolean;
64
+ analysis_depth: "detailed" | "comprehensive" | "basic";
65
65
  include_docs: boolean;
66
66
  }, {
67
- analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
68
67
  include_tests?: boolean | undefined;
68
+ analysis_depth?: "detailed" | "comprehensive" | "basic" | undefined;
69
69
  include_docs?: boolean | undefined;
70
70
  }>>;
71
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intention-coding",
3
- "version": "0.4.9",
3
+ "version": "0.5.1",
4
4
  "description": "软件工程化的需求分析,功能设计,代码编写,测试运行和发布部署",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.11.0",
@@ -47,6 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@antfu/eslint-config": "^4.13.0",
50
+ "@biomejs/biome": "2.2.4",
50
51
  "@esbuild-plugins/tsconfig-paths": "^0.1.2",
51
52
  "@eslint-react/eslint-plugin": "^1.49.0",
52
53
  "@eslint/js": "^9.26.0",
@@ -71,6 +72,7 @@
71
72
  "tsx": "^4.19.4",
72
73
  "typescript": "^5.8.3",
73
74
  "typescript-eslint": "^8.32.1",
75
+ "ultracite": "5.4.4",
74
76
  "vitest": "3.2.3",
75
77
  "zod": "^3.25.76"
76
78
  }