intention-coding 0.5.4 → 0.5.6
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 +4255 -353
- package/dist/services/change-summarizer/index.d.ts.map +1 -1
- package/dist/services/image-analysis/index.d.ts.map +1 -1
- package/dist/services/requirement/index.d.ts.map +1 -1
- package/dist/services/requirement-analyzer/core/parameter-bridge.d.ts +44 -0
- package/dist/services/requirement-analyzer/core/parameter-bridge.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/index.d.ts +4 -56
- package/dist/services/requirement-analyzer/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/change-summarizer/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;oBASL,oBAAoB;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/change-summarizer/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;oBASL,oBAAoB;;;;;;;;;;;;;CAwP3C,CAAC"}
|
|
@@ -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;AAWxB,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;;;;;;;;;;;;;
|
|
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;AAWxB,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;;;;;;;;;;;;;CAoN/D,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;oBAvNN;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;CAuNjB,CAAC;AA0ChD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACV,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/requirement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;oBAQd,GAAG;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/requirement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;oBAQd,GAAG;;;;;;;;;;;;;CAoK1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;oBAQX,GAAG;;;;;;;;;;;;;CAyL1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;oBASL,GAAG;;;;;;;;;;;;;CAgP1B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AnalysisParams } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* 参数桥接器 - 负责将工具参数转换为服务参数
|
|
5
|
+
*/
|
|
6
|
+
export declare class ParameterBridge {
|
|
7
|
+
/**
|
|
8
|
+
* 工具参数验证Schema
|
|
9
|
+
*/
|
|
10
|
+
private static readonly ToolParamsSchema;
|
|
11
|
+
/**
|
|
12
|
+
* 验证工具参数
|
|
13
|
+
*/
|
|
14
|
+
static validateToolParams(args: any): {
|
|
15
|
+
success: boolean;
|
|
16
|
+
data?: z.infer<typeof ParameterBridge.ToolParamsSchema>;
|
|
17
|
+
error?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 将工具参数转换为服务参数
|
|
21
|
+
*/
|
|
22
|
+
static convertToServiceParams(toolParams: z.infer<typeof ParameterBridge.ToolParamsSchema>): AnalysisParams;
|
|
23
|
+
/**
|
|
24
|
+
* 将服务结果转换为工具响应格式
|
|
25
|
+
*/
|
|
26
|
+
static convertToToolResponse(serviceResult: any): {
|
|
27
|
+
content: Array<{
|
|
28
|
+
type: string;
|
|
29
|
+
text: string;
|
|
30
|
+
}>;
|
|
31
|
+
isError?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 将错误转换为工具响应格式
|
|
35
|
+
*/
|
|
36
|
+
static convertErrorToToolResponse(error: any): {
|
|
37
|
+
content: Array<{
|
|
38
|
+
type: string;
|
|
39
|
+
text: string;
|
|
40
|
+
}>;
|
|
41
|
+
isError: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=parameter-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter-bridge.d.ts","sourceRoot":"","sources":["../../../../src/services/requirement-analyzer/core/parameter-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,qBAAa,eAAe;IAE1B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CA+CpC;IAEJ;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG;QACpC,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC;QACxD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAuBD;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,GAAG,cAAc;IAa3G;;OAEG;IACH,MAAM,CAAC,qBAAqB,CAAC,aAAa,EAAE,GAAG,GAAG;QAChD,OAAO,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB;IA+BD;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,KAAK,EAAE,GAAG,GAAG;QAC7C,OAAO,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC/C,OAAO,EAAE,OAAO,CAAC;KAClB;CAgBF"}
|
|
@@ -1,51 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const RequirementAnalyzerParamsSchema: 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
|
-
custom_prompt: z.ZodOptional<z.ZodString>;
|
|
8
|
-
analysis_depth: z.ZodDefault<z.ZodEnum<["basic", "detailed", "comprehensive"]>>;
|
|
9
|
-
use_streaming: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
chunk_size: z.ZodDefault<z.ZodNumber>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
chunk_size: number;
|
|
13
|
-
input_type: "text" | "md_file";
|
|
14
|
-
feature_name: string;
|
|
15
|
-
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
16
|
-
use_streaming: boolean;
|
|
17
|
-
content?: string | undefined;
|
|
18
|
-
md_file_path?: string | undefined;
|
|
19
|
-
custom_prompt?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
input_type: "text" | "md_file";
|
|
22
|
-
feature_name: string;
|
|
23
|
-
chunk_size?: number | undefined;
|
|
24
|
-
content?: string | undefined;
|
|
25
|
-
md_file_path?: string | undefined;
|
|
26
|
-
custom_prompt?: string | undefined;
|
|
27
|
-
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
28
|
-
use_streaming?: boolean | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
chunk_size: number;
|
|
31
|
-
input_type: "text" | "md_file";
|
|
32
|
-
feature_name: string;
|
|
33
|
-
analysis_depth: "basic" | "detailed" | "comprehensive";
|
|
34
|
-
use_streaming: boolean;
|
|
35
|
-
content?: string | undefined;
|
|
36
|
-
md_file_path?: string | undefined;
|
|
37
|
-
custom_prompt?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
input_type: "text" | "md_file";
|
|
40
|
-
feature_name: string;
|
|
41
|
-
chunk_size?: number | undefined;
|
|
42
|
-
content?: string | undefined;
|
|
43
|
-
md_file_path?: string | undefined;
|
|
44
|
-
custom_prompt?: string | undefined;
|
|
45
|
-
analysis_depth?: "basic" | "detailed" | "comprehensive" | undefined;
|
|
46
|
-
use_streaming?: boolean | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export type RequirementAnalyzerParams = z.infer<typeof RequirementAnalyzerParamsSchema>;
|
|
49
2
|
/**
|
|
50
3
|
* 需求分析智能体工具
|
|
51
4
|
*/
|
|
@@ -63,20 +16,15 @@ export declare const requirementAnalyzerTool: {
|
|
|
63
16
|
chunk_size: z.ZodDefault<z.ZodNumber>;
|
|
64
17
|
};
|
|
65
18
|
handler: (args: any) => Promise<{
|
|
66
|
-
content: {
|
|
19
|
+
content: Array<{
|
|
67
20
|
type: string;
|
|
68
21
|
text: string;
|
|
69
|
-
}
|
|
70
|
-
isError?:
|
|
71
|
-
} | {
|
|
72
|
-
content: {
|
|
73
|
-
type: string;
|
|
74
|
-
text: string;
|
|
75
|
-
}[];
|
|
76
|
-
isError: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
isError?: boolean;
|
|
77
24
|
}>;
|
|
78
25
|
};
|
|
79
26
|
export { RequirementAnalyzerService } from "./core/requirement-analyzer-service";
|
|
80
27
|
export { RequirementAnalysisError, ErrorCodes } from "./core/types";
|
|
81
28
|
export type { AnalysisParams, AnalysisResult, ProjectInfo } from "./core/types";
|
|
29
|
+
export { ParameterBridge } from "./core/parameter-bridge";
|
|
82
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/requirement-analyzer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/requirement-analyzer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;oBAqCZ,GAAG;;;;;;;CAyB1B,CAAC;AAGF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|