mcp-probe-kit 3.6.9 → 3.6.11
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 +13 -7
- package/build/index.js +16 -13
- package/build/lib/__tests__/gitnexus-bridge.unit.test.js +28 -1
- package/build/lib/__tests__/src8-guidance.unit.test.d.ts +1 -0
- package/build/lib/__tests__/src8-guidance.unit.test.js +62 -0
- package/build/lib/__tests__/task-defaults.unit.test.js +16 -2
- package/build/lib/code-review-input.d.ts +15 -0
- package/build/lib/code-review-input.js +47 -0
- package/build/lib/gitnexus-bridge.d.ts +1 -0
- package/build/lib/gitnexus-bridge.js +15 -6
- package/build/lib/src8-guidance.d.ts +178 -0
- package/build/lib/src8-guidance.js +633 -0
- package/build/lib/task-defaults.d.ts +2 -1
- package/build/lib/task-defaults.js +7 -4
- package/build/lib/tbp8-guidance.d.ts +4 -0
- package/build/lib/tbp8-guidance.js +4 -0
- package/build/schemas/code-analysis-tools.d.ts +49 -5
- package/build/schemas/code-analysis-tools.js +49 -5
- package/build/schemas/code-gen-tools.d.ts +9 -1
- package/build/schemas/code-gen-tools.js +9 -1
- package/build/schemas/index.d.ts +65 -9
- package/build/schemas/orchestration-tools.d.ts +7 -3
- package/build/schemas/orchestration-tools.js +7 -3
- package/build/schemas/output/core-tools.d.ts +238 -13
- package/build/schemas/output/core-tools.js +63 -13
- package/build/schemas/structured-output.d.ts +26 -8
- package/build/schemas/structured-output.js +17 -7
- package/build/tools/__tests__/code_review.unit.test.d.ts +1 -0
- package/build/tools/__tests__/code_review.unit.test.js +43 -0
- package/build/tools/__tests__/fix_bug.unit.test.js +54 -17
- package/build/tools/__tests__/gentest.unit.test.d.ts +1 -0
- package/build/tools/__tests__/gentest.unit.test.js +40 -0
- package/build/tools/__tests__/refactor.unit.test.d.ts +1 -0
- package/build/tools/__tests__/refactor.unit.test.js +40 -0
- package/build/tools/__tests__/start_bugfix.unit.test.js +31 -18
- package/build/tools/code_review.js +149 -164
- package/build/tools/fix_bug.d.ts +1 -9
- package/build/tools/fix_bug.js +137 -289
- package/build/tools/gentest.js +149 -186
- package/build/tools/refactor.js +132 -360
- package/build/tools/start_bugfix.js +258 -344
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const codeAnalysisToolSchemas: readonly [{
|
|
5
5
|
readonly name: "code_review";
|
|
6
|
-
readonly description: "
|
|
6
|
+
readonly description: "当用户需要审查代码质量、检查代码问题时使用。指南型工具:注入 code/file_path 与审查清单,由 Agent 阅读代码后输出结构化问题清单(severity/category/suggestion);MCP 不做静态规则扫描";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
@@ -11,6 +11,14 @@ export declare const codeAnalysisToolSchemas: readonly [{
|
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
readonly description: "要审查的代码。可以是代码片段、完整文件或 git diff 输出";
|
|
13
13
|
};
|
|
14
|
+
readonly file_path: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "要审查的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
17
|
+
};
|
|
18
|
+
readonly project_root: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
21
|
+
};
|
|
14
22
|
readonly focus: {
|
|
15
23
|
readonly type: "string";
|
|
16
24
|
readonly description: "审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all";
|
|
@@ -71,7 +79,7 @@ export declare const codeAnalysisToolSchemas: readonly [{
|
|
|
71
79
|
};
|
|
72
80
|
}, {
|
|
73
81
|
readonly name: "refactor";
|
|
74
|
-
readonly description: "
|
|
82
|
+
readonly description: "当用户需要重构代码、改善代码结构时使用。指南型工具:注入 code/file_path 与重构清单,由 Agent 分析后输出重构计划 JSON;MCP 不自动修改源文件";
|
|
75
83
|
readonly inputSchema: {
|
|
76
84
|
readonly type: "object";
|
|
77
85
|
readonly properties: {
|
|
@@ -79,6 +87,14 @@ export declare const codeAnalysisToolSchemas: readonly [{
|
|
|
79
87
|
readonly type: "string";
|
|
80
88
|
readonly description: "要重构的代码";
|
|
81
89
|
};
|
|
90
|
+
readonly file_path: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly description: "要重构的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
93
|
+
};
|
|
94
|
+
readonly project_root: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
97
|
+
};
|
|
82
98
|
readonly goal: {
|
|
83
99
|
readonly type: "string";
|
|
84
100
|
readonly description: "重构目标:improve_readability(可读性)、reduce_complexity(复杂度)、performance(性能)。可选";
|
|
@@ -89,7 +105,7 @@ export declare const codeAnalysisToolSchemas: readonly [{
|
|
|
89
105
|
};
|
|
90
106
|
}, {
|
|
91
107
|
readonly name: "fix_bug";
|
|
92
|
-
readonly description: "当用户需要找问题、修 bug
|
|
108
|
+
readonly description: "当用户需要找问题、修 bug、排查异常时使用。指南型 SRC-8(TBP-inspired):注入真因工作表与门禁,由 Agent 完成 rootCauseAnalysis 并修复;MCP 不自动修 Bug";
|
|
93
109
|
readonly inputSchema: {
|
|
94
110
|
readonly type: "object";
|
|
95
111
|
readonly properties: {
|
|
@@ -103,11 +119,39 @@ export declare const codeAnalysisToolSchemas: readonly [{
|
|
|
103
119
|
};
|
|
104
120
|
readonly code_context: {
|
|
105
121
|
readonly type: "string";
|
|
106
|
-
readonly description: "
|
|
122
|
+
readonly description: "相关代码或图谱摘要。可选";
|
|
123
|
+
};
|
|
124
|
+
readonly file_path: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly description: "相关代码文件路径(相对 project_root 或绝对路径)。未传 code_context 时从磁盘读取";
|
|
127
|
+
};
|
|
128
|
+
readonly project_root: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
131
|
+
};
|
|
132
|
+
readonly actual_behavior: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly description: "实际行为。可选,用于 TBP-1 现象定义";
|
|
135
|
+
};
|
|
136
|
+
readonly success_sample: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly description: "成功/正常样本描述(Step 4 对比用)。无则 Agent 须标注对比样本不足";
|
|
139
|
+
};
|
|
140
|
+
readonly verification_target: {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
readonly description: "验收目标(Step 3 SMART 目标),如:原复现步骤通过、特定测试绿";
|
|
143
|
+
};
|
|
144
|
+
readonly steps_to_reproduce: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly description: "复现步骤。可选,用于 TBP-2 时间线";
|
|
147
|
+
};
|
|
148
|
+
readonly expected_behavior: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly description: "期望行为。可选";
|
|
107
151
|
};
|
|
108
152
|
readonly analysis_mode: {
|
|
109
153
|
readonly type: "string";
|
|
110
|
-
readonly description: "分析方法。默认
|
|
154
|
+
readonly description: "分析方法。默认 src8(Software Root-Cause 8-step,受丰田 TBP 启发);tbp8 为兼容别名";
|
|
111
155
|
};
|
|
112
156
|
};
|
|
113
157
|
readonly required: readonly [];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export const codeAnalysisToolSchemas = [
|
|
5
5
|
{
|
|
6
6
|
name: "code_review",
|
|
7
|
-
description: "
|
|
7
|
+
description: "当用户需要审查代码质量、检查代码问题时使用。指南型工具:注入 code/file_path 与审查清单,由 Agent 阅读代码后输出结构化问题清单(severity/category/suggestion);MCP 不做静态规则扫描",
|
|
8
8
|
inputSchema: {
|
|
9
9
|
type: "object",
|
|
10
10
|
properties: {
|
|
@@ -12,6 +12,14 @@ export const codeAnalysisToolSchemas = [
|
|
|
12
12
|
type: "string",
|
|
13
13
|
description: "要审查的代码。可以是代码片段、完整文件或 git diff 输出",
|
|
14
14
|
},
|
|
15
|
+
file_path: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "要审查的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取",
|
|
18
|
+
},
|
|
19
|
+
project_root: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "项目根目录绝对路径。配合 file_path 解析相对路径",
|
|
22
|
+
},
|
|
15
23
|
focus: {
|
|
16
24
|
type: "string",
|
|
17
25
|
description: "审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all",
|
|
@@ -74,7 +82,7 @@ export const codeAnalysisToolSchemas = [
|
|
|
74
82
|
},
|
|
75
83
|
{
|
|
76
84
|
name: "refactor",
|
|
77
|
-
description: "
|
|
85
|
+
description: "当用户需要重构代码、改善代码结构时使用。指南型工具:注入 code/file_path 与重构清单,由 Agent 分析后输出重构计划 JSON;MCP 不自动修改源文件",
|
|
78
86
|
inputSchema: {
|
|
79
87
|
type: "object",
|
|
80
88
|
properties: {
|
|
@@ -82,6 +90,14 @@ export const codeAnalysisToolSchemas = [
|
|
|
82
90
|
type: "string",
|
|
83
91
|
description: "要重构的代码",
|
|
84
92
|
},
|
|
93
|
+
file_path: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "要重构的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取",
|
|
96
|
+
},
|
|
97
|
+
project_root: {
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "项目根目录绝对路径。配合 file_path 解析相对路径",
|
|
100
|
+
},
|
|
85
101
|
goal: {
|
|
86
102
|
type: "string",
|
|
87
103
|
description: "重构目标:improve_readability(可读性)、reduce_complexity(复杂度)、performance(性能)。可选",
|
|
@@ -93,7 +109,7 @@ export const codeAnalysisToolSchemas = [
|
|
|
93
109
|
},
|
|
94
110
|
{
|
|
95
111
|
name: "fix_bug",
|
|
96
|
-
description: "当用户需要找问题、修 bug
|
|
112
|
+
description: "当用户需要找问题、修 bug、排查异常时使用。指南型 SRC-8(TBP-inspired):注入真因工作表与门禁,由 Agent 完成 rootCauseAnalysis 并修复;MCP 不自动修 Bug",
|
|
97
113
|
inputSchema: {
|
|
98
114
|
type: "object",
|
|
99
115
|
properties: {
|
|
@@ -107,11 +123,39 @@ export const codeAnalysisToolSchemas = [
|
|
|
107
123
|
},
|
|
108
124
|
code_context: {
|
|
109
125
|
type: "string",
|
|
110
|
-
description: "
|
|
126
|
+
description: "相关代码或图谱摘要。可选",
|
|
127
|
+
},
|
|
128
|
+
file_path: {
|
|
129
|
+
type: "string",
|
|
130
|
+
description: "相关代码文件路径(相对 project_root 或绝对路径)。未传 code_context 时从磁盘读取",
|
|
131
|
+
},
|
|
132
|
+
project_root: {
|
|
133
|
+
type: "string",
|
|
134
|
+
description: "项目根目录绝对路径。配合 file_path 解析相对路径",
|
|
135
|
+
},
|
|
136
|
+
actual_behavior: {
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "实际行为。可选,用于 TBP-1 现象定义",
|
|
139
|
+
},
|
|
140
|
+
success_sample: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "成功/正常样本描述(Step 4 对比用)。无则 Agent 须标注对比样本不足",
|
|
143
|
+
},
|
|
144
|
+
verification_target: {
|
|
145
|
+
type: "string",
|
|
146
|
+
description: "验收目标(Step 3 SMART 目标),如:原复现步骤通过、特定测试绿",
|
|
147
|
+
},
|
|
148
|
+
steps_to_reproduce: {
|
|
149
|
+
type: "string",
|
|
150
|
+
description: "复现步骤。可选,用于 TBP-2 时间线",
|
|
151
|
+
},
|
|
152
|
+
expected_behavior: {
|
|
153
|
+
type: "string",
|
|
154
|
+
description: "期望行为。可选",
|
|
111
155
|
},
|
|
112
156
|
analysis_mode: {
|
|
113
157
|
type: "string",
|
|
114
|
-
description: "分析方法。默认
|
|
158
|
+
description: "分析方法。默认 src8(Software Root-Cause 8-step,受丰田 TBP 启发);tbp8 为兼容别名",
|
|
115
159
|
},
|
|
116
160
|
},
|
|
117
161
|
required: [],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const codeGenToolSchemas: readonly [{
|
|
5
5
|
readonly name: "gentest";
|
|
6
|
-
readonly description: "
|
|
6
|
+
readonly description: "当用户需要为代码生成单元测试时使用。指南型工具:注入 code/file_path 与测试清单,由 Agent 生成完整测试代码;MCP 不自动生成或运行测试";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
@@ -11,6 +11,14 @@ export declare const codeGenToolSchemas: readonly [{
|
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
readonly description: "要生成测试的代码。可以是函数、类或模块";
|
|
13
13
|
};
|
|
14
|
+
readonly file_path: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "要生成测试的源文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
17
|
+
};
|
|
18
|
+
readonly project_root: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
21
|
+
};
|
|
14
22
|
readonly framework: {
|
|
15
23
|
readonly type: "string";
|
|
16
24
|
readonly description: "测试框架:jest、vitest、mocha。可选,会自动识别项目使用的框架";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export const codeGenToolSchemas = [
|
|
5
5
|
{
|
|
6
6
|
name: "gentest",
|
|
7
|
-
description: "
|
|
7
|
+
description: "当用户需要为代码生成单元测试时使用。指南型工具:注入 code/file_path 与测试清单,由 Agent 生成完整测试代码;MCP 不自动生成或运行测试",
|
|
8
8
|
inputSchema: {
|
|
9
9
|
type: "object",
|
|
10
10
|
properties: {
|
|
@@ -12,6 +12,14 @@ export const codeGenToolSchemas = [
|
|
|
12
12
|
type: "string",
|
|
13
13
|
description: "要生成测试的代码。可以是函数、类或模块",
|
|
14
14
|
},
|
|
15
|
+
file_path: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "要生成测试的源文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取",
|
|
18
|
+
},
|
|
19
|
+
project_root: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "项目根目录绝对路径。配合 file_path 解析相对路径",
|
|
22
|
+
},
|
|
15
23
|
framework: {
|
|
16
24
|
type: "string",
|
|
17
25
|
description: "测试框架:jest、vitest、mocha。可选,会自动识别项目使用的框架",
|
package/build/schemas/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const allToolSchemas: ({
|
|
|
69
69
|
};
|
|
70
70
|
} | {
|
|
71
71
|
readonly name: "code_review";
|
|
72
|
-
readonly description: "
|
|
72
|
+
readonly description: "当用户需要审查代码质量、检查代码问题时使用。指南型工具:注入 code/file_path 与审查清单,由 Agent 阅读代码后输出结构化问题清单(severity/category/suggestion);MCP 不做静态规则扫描";
|
|
73
73
|
readonly inputSchema: {
|
|
74
74
|
readonly type: "object";
|
|
75
75
|
readonly properties: {
|
|
@@ -77,6 +77,14 @@ export declare const allToolSchemas: ({
|
|
|
77
77
|
readonly type: "string";
|
|
78
78
|
readonly description: "要审查的代码。可以是代码片段、完整文件或 git diff 输出";
|
|
79
79
|
};
|
|
80
|
+
readonly file_path: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
readonly description: "要审查的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
83
|
+
};
|
|
84
|
+
readonly project_root: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
87
|
+
};
|
|
80
88
|
readonly focus: {
|
|
81
89
|
readonly type: "string";
|
|
82
90
|
readonly description: "审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all";
|
|
@@ -137,7 +145,7 @@ export declare const allToolSchemas: ({
|
|
|
137
145
|
};
|
|
138
146
|
} | {
|
|
139
147
|
readonly name: "refactor";
|
|
140
|
-
readonly description: "
|
|
148
|
+
readonly description: "当用户需要重构代码、改善代码结构时使用。指南型工具:注入 code/file_path 与重构清单,由 Agent 分析后输出重构计划 JSON;MCP 不自动修改源文件";
|
|
141
149
|
readonly inputSchema: {
|
|
142
150
|
readonly type: "object";
|
|
143
151
|
readonly properties: {
|
|
@@ -145,6 +153,14 @@ export declare const allToolSchemas: ({
|
|
|
145
153
|
readonly type: "string";
|
|
146
154
|
readonly description: "要重构的代码";
|
|
147
155
|
};
|
|
156
|
+
readonly file_path: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly description: "要重构的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
159
|
+
};
|
|
160
|
+
readonly project_root: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
163
|
+
};
|
|
148
164
|
readonly goal: {
|
|
149
165
|
readonly type: "string";
|
|
150
166
|
readonly description: "重构目标:improve_readability(可读性)、reduce_complexity(复杂度)、performance(性能)。可选";
|
|
@@ -155,7 +171,7 @@ export declare const allToolSchemas: ({
|
|
|
155
171
|
};
|
|
156
172
|
} | {
|
|
157
173
|
readonly name: "fix_bug";
|
|
158
|
-
readonly description: "当用户需要找问题、修 bug
|
|
174
|
+
readonly description: "当用户需要找问题、修 bug、排查异常时使用。指南型 SRC-8(TBP-inspired):注入真因工作表与门禁,由 Agent 完成 rootCauseAnalysis 并修复;MCP 不自动修 Bug";
|
|
159
175
|
readonly inputSchema: {
|
|
160
176
|
readonly type: "object";
|
|
161
177
|
readonly properties: {
|
|
@@ -169,11 +185,39 @@ export declare const allToolSchemas: ({
|
|
|
169
185
|
};
|
|
170
186
|
readonly code_context: {
|
|
171
187
|
readonly type: "string";
|
|
172
|
-
readonly description: "
|
|
188
|
+
readonly description: "相关代码或图谱摘要。可选";
|
|
189
|
+
};
|
|
190
|
+
readonly file_path: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly description: "相关代码文件路径(相对 project_root 或绝对路径)。未传 code_context 时从磁盘读取";
|
|
193
|
+
};
|
|
194
|
+
readonly project_root: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
197
|
+
};
|
|
198
|
+
readonly actual_behavior: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly description: "实际行为。可选,用于 TBP-1 现象定义";
|
|
201
|
+
};
|
|
202
|
+
readonly success_sample: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly description: "成功/正常样本描述(Step 4 对比用)。无则 Agent 须标注对比样本不足";
|
|
205
|
+
};
|
|
206
|
+
readonly verification_target: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly description: "验收目标(Step 3 SMART 目标),如:原复现步骤通过、特定测试绿";
|
|
209
|
+
};
|
|
210
|
+
readonly steps_to_reproduce: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly description: "复现步骤。可选,用于 TBP-2 时间线";
|
|
213
|
+
};
|
|
214
|
+
readonly expected_behavior: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly description: "期望行为。可选";
|
|
173
217
|
};
|
|
174
218
|
readonly analysis_mode: {
|
|
175
219
|
readonly type: "string";
|
|
176
|
-
readonly description: "分析方法。默认
|
|
220
|
+
readonly description: "分析方法。默认 src8(Software Root-Cause 8-step,受丰田 TBP 启发);tbp8 为兼容别名";
|
|
177
221
|
};
|
|
178
222
|
};
|
|
179
223
|
readonly required: readonly [];
|
|
@@ -181,7 +225,7 @@ export declare const allToolSchemas: ({
|
|
|
181
225
|
};
|
|
182
226
|
} | {
|
|
183
227
|
readonly name: "gentest";
|
|
184
|
-
readonly description: "
|
|
228
|
+
readonly description: "当用户需要为代码生成单元测试时使用。指南型工具:注入 code/file_path 与测试清单,由 Agent 生成完整测试代码;MCP 不自动生成或运行测试";
|
|
185
229
|
readonly inputSchema: {
|
|
186
230
|
readonly type: "object";
|
|
187
231
|
readonly properties: {
|
|
@@ -189,6 +233,14 @@ export declare const allToolSchemas: ({
|
|
|
189
233
|
readonly type: "string";
|
|
190
234
|
readonly description: "要生成测试的代码。可以是函数、类或模块";
|
|
191
235
|
};
|
|
236
|
+
readonly file_path: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly description: "要生成测试的源文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取";
|
|
239
|
+
};
|
|
240
|
+
readonly project_root: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly description: "项目根目录绝对路径。配合 file_path 解析相对路径";
|
|
243
|
+
};
|
|
192
244
|
readonly framework: {
|
|
193
245
|
readonly type: "string";
|
|
194
246
|
readonly description: "测试框架:jest、vitest、mocha。可选,会自动识别项目使用的框架";
|
|
@@ -374,13 +426,17 @@ export declare const allToolSchemas: ({
|
|
|
374
426
|
};
|
|
375
427
|
} | {
|
|
376
428
|
readonly name: "start_bugfix";
|
|
377
|
-
readonly description: "当用户需要找问题、修 bug
|
|
429
|
+
readonly description: "当用户需要找问题、修 bug、排查异常时使用。默认按 SRC-8(TBP-inspired)编排:收敛边界→真因工作表→修复→测试→记忆沉淀。";
|
|
378
430
|
readonly inputSchema: {
|
|
379
431
|
readonly type: "object";
|
|
380
432
|
readonly properties: {
|
|
381
433
|
readonly error_message: {
|
|
382
434
|
readonly type: "string";
|
|
383
|
-
readonly description: "
|
|
435
|
+
readonly description: "错误信息(可与 description 二选一)";
|
|
436
|
+
};
|
|
437
|
+
readonly description: {
|
|
438
|
+
readonly type: "string";
|
|
439
|
+
readonly description: "Bug 描述(与 error_message 同义;仅传 description 时自动作为错误信息)";
|
|
384
440
|
};
|
|
385
441
|
readonly stack_trace: {
|
|
386
442
|
readonly type: "string";
|
|
@@ -404,7 +460,7 @@ export declare const allToolSchemas: ({
|
|
|
404
460
|
};
|
|
405
461
|
readonly analysis_mode: {
|
|
406
462
|
readonly type: "string";
|
|
407
|
-
readonly description: "分析方法。默认 tbp8
|
|
463
|
+
readonly description: "分析方法。默认 src8;tbp8 为兼容别名";
|
|
408
464
|
};
|
|
409
465
|
readonly template_profile: {
|
|
410
466
|
readonly type: "string";
|
|
@@ -49,13 +49,17 @@ export declare const orchestrationToolSchemas: readonly [{
|
|
|
49
49
|
};
|
|
50
50
|
}, {
|
|
51
51
|
readonly name: "start_bugfix";
|
|
52
|
-
readonly description: "当用户需要找问题、修 bug
|
|
52
|
+
readonly description: "当用户需要找问题、修 bug、排查异常时使用。默认按 SRC-8(TBP-inspired)编排:收敛边界→真因工作表→修复→测试→记忆沉淀。";
|
|
53
53
|
readonly inputSchema: {
|
|
54
54
|
readonly type: "object";
|
|
55
55
|
readonly properties: {
|
|
56
56
|
readonly error_message: {
|
|
57
57
|
readonly type: "string";
|
|
58
|
-
readonly description: "
|
|
58
|
+
readonly description: "错误信息(可与 description 二选一)";
|
|
59
|
+
};
|
|
60
|
+
readonly description: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly description: "Bug 描述(与 error_message 同义;仅传 description 时自动作为错误信息)";
|
|
59
63
|
};
|
|
60
64
|
readonly stack_trace: {
|
|
61
65
|
readonly type: "string";
|
|
@@ -79,7 +83,7 @@ export declare const orchestrationToolSchemas: readonly [{
|
|
|
79
83
|
};
|
|
80
84
|
readonly analysis_mode: {
|
|
81
85
|
readonly type: "string";
|
|
82
|
-
readonly description: "分析方法。默认 tbp8
|
|
86
|
+
readonly description: "分析方法。默认 src8;tbp8 为兼容别名";
|
|
83
87
|
};
|
|
84
88
|
readonly template_profile: {
|
|
85
89
|
readonly type: "string";
|
|
@@ -51,13 +51,17 @@ export const orchestrationToolSchemas = [
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
name: "start_bugfix",
|
|
54
|
-
description: "当用户需要找问题、修 bug
|
|
54
|
+
description: "当用户需要找问题、修 bug、排查异常时使用。默认按 SRC-8(TBP-inspired)编排:收敛边界→真因工作表→修复→测试→记忆沉淀。",
|
|
55
55
|
inputSchema: {
|
|
56
56
|
type: "object",
|
|
57
57
|
properties: {
|
|
58
58
|
error_message: {
|
|
59
59
|
type: "string",
|
|
60
|
-
description: "
|
|
60
|
+
description: "错误信息(可与 description 二选一)",
|
|
61
|
+
},
|
|
62
|
+
description: {
|
|
63
|
+
type: "string",
|
|
64
|
+
description: "Bug 描述(与 error_message 同义;仅传 description 时自动作为错误信息)",
|
|
61
65
|
},
|
|
62
66
|
stack_trace: {
|
|
63
67
|
type: "string",
|
|
@@ -81,7 +85,7 @@ export const orchestrationToolSchemas = [
|
|
|
81
85
|
},
|
|
82
86
|
analysis_mode: {
|
|
83
87
|
type: "string",
|
|
84
|
-
description: "分析方法。默认 tbp8
|
|
88
|
+
description: "分析方法。默认 src8;tbp8 为兼容别名",
|
|
85
89
|
},
|
|
86
90
|
template_profile: {
|
|
87
91
|
type: "string",
|