intention-coding 0.5.0 → 0.5.2

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;;;;;;;;;;;;;CA+K5B,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,13 +15,13 @@ 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;
24
+ include_tests: boolean;
25
25
  framework?: string | undefined;
26
26
  architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
27
27
  custom_context?: string | undefined;
@@ -33,11 +33,11 @@ export declare const IntegratedGeneratorParams: z.ZodObject<{
33
33
  user_story: string;
34
34
  acceptance_criteria: string[];
35
35
  programming_language: string;
36
- include_tests?: boolean | undefined;
37
36
  framework?: string | undefined;
38
37
  architecture_pattern?: "microservices" | "monolithic" | "layered" | "event-driven" | undefined;
39
38
  generation_type?: "full_project" | "module_only" | "feature_only" | undefined;
40
39
  include_examples?: boolean | undefined;
40
+ include_tests?: boolean | undefined;
41
41
  custom_context?: string | undefined;
42
42
  business_rules?: string[] | undefined;
43
43
  technical_requirements?: string | undefined;
@@ -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;;;;;;;;;;;;;CA+J5B,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
  };
@@ -10,8 +10,16 @@ export declare const sanitizeFileName: (input: string) => string;
10
10
  * @returns 不含图片的纯文本Markdown
11
11
  */
12
12
  export declare function removeImagesFromMarkdown(content: string): string;
13
+ /**
14
+ * 跨平台路径标准化处理
15
+ */
16
+ export declare function normalizePath(filePath: string): string;
13
17
  /**
14
18
  * 安全验证并标准化路径
15
19
  */
16
20
  export declare function validateAndResolvePath(filePath: string): Promise<string>;
21
+ /**
22
+ * 检查路径是否为有效的Excel文件
23
+ */
24
+ export declare function isValidExcelPath(filePath: string): boolean;
17
25
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/utils/common.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CActC;AAED,iBAAiB;AACjB,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,MAWhD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBhE;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB9E"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/utils/common.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CActC;AAED,iBAAiB;AACjB,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,MAWhD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBhE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA8BtD;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB9E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAO1D"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * 跨平台路径工具集
3
+ * 提供Windows、Linux、macOS三平台的路径兼容性处理
4
+ */
5
+ export interface PathInfo {
6
+ original: string;
7
+ normalized: string;
8
+ absolute: string;
9
+ exists: boolean;
10
+ isFile: boolean;
11
+ isDirectory: boolean;
12
+ size?: number;
13
+ platform: string;
14
+ isValid: boolean;
15
+ }
16
+ /**
17
+ * 检测操作系统类型
18
+ */
19
+ export declare function getPlatformInfo(): {
20
+ platform: NodeJS.Platform;
21
+ arch: NodeJS.Architecture;
22
+ version: string;
23
+ cwd: string;
24
+ homedir: string;
25
+ tmpdir: string;
26
+ };
27
+ /**
28
+ * 检查路径是否为Windows路径
29
+ */
30
+ export declare function isWindowsPath(filePath: string): boolean;
31
+ /**
32
+ * 检查路径是否为Linux/macOS路径
33
+ */
34
+ export declare function isUnixPath(filePath: string): boolean;
35
+ /**
36
+ * 将Windows路径转换为Unix风格路径
37
+ */
38
+ export declare function windowsToUnixPath(filePath: string): string;
39
+ /**
40
+ * 将Unix路径转换为Windows路径
41
+ */
42
+ export declare function unixToWindowsPath(filePath: string): string;
43
+ /**
44
+ * 跨平台路径标准化
45
+ */
46
+ export declare function normalizeCrossPlatformPath(filePath: string): string;
47
+ /**
48
+ * 获取路径详细信息
49
+ */
50
+ export declare function getPathInfo(filePath: string): Promise<PathInfo>;
51
+ /**
52
+ * 验证路径是否可读
53
+ */
54
+ export declare function validatePathAccess(filePath: string): Promise<boolean>;
55
+ /**
56
+ * 检查是否为Excel文件路径
57
+ */
58
+ export declare function isExcelFilePath(filePath: string): boolean;
59
+ /**
60
+ * 安全地解析和验证文件路径
61
+ */
62
+ export declare function safeResolvePath(filePath: string): Promise<{
63
+ success: boolean;
64
+ resolvedPath?: string;
65
+ error?: string;
66
+ info?: PathInfo;
67
+ }>;
68
+ /**
69
+ * 获取跨平台路径兼容性建议
70
+ */
71
+ export declare function getPathCompatibilityAdvice(filePath: string): string[];
72
+ //# sourceMappingURL=path-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-utils.d.ts","sourceRoot":"","sources":["../../src/utils/path-utils.ts"],"names":[],"mappings":"AAMA;;;GAGG;AAEH,MAAM,WAAW,QAAQ;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,eAAe;;;;;;;EAS9B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY1D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAsB1D;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqCnE;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CA8BrE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ3E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7D,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC,CAsCD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intention-coding",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "软件工程化的需求分析,功能设计,代码编写,测试运行和发布部署",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.11.0",