mcp-probe-kit 1.15.0 → 2.0.0
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 +113 -1642
- package/build/index.js +75 -42
- package/build/lib/elicitation-helper.d.ts +73 -0
- package/build/lib/elicitation-helper.js +130 -0
- package/build/lib/response.d.ts +32 -0
- package/build/lib/response.js +28 -0
- package/build/lib/tasks-manager.d.ts +116 -0
- package/build/lib/tasks-manager.js +217 -0
- package/build/lib/toolset-manager.d.ts +48 -0
- package/build/lib/toolset-manager.js +112 -0
- package/build/schemas/basic-tools.d.ts +0 -32
- package/build/schemas/basic-tools.js +0 -34
- package/build/schemas/code-analysis-tools.d.ts +0 -36
- package/build/schemas/code-analysis-tools.js +0 -38
- package/build/schemas/code-gen-tools.d.ts +0 -44
- package/build/schemas/code-gen-tools.js +0 -46
- package/build/schemas/doc-util-tools.d.ts +0 -54
- package/build/schemas/doc-util-tools.js +0 -58
- package/build/schemas/index.d.ts +0 -188
- package/build/schemas/orchestration-tools.d.ts +0 -22
- package/build/schemas/orchestration-tools.js +0 -23
- package/build/schemas/output/core-tools.d.ts +817 -0
- package/build/schemas/output/core-tools.js +421 -0
- package/build/schemas/output/generation-tools.d.ts +936 -0
- package/build/schemas/output/generation-tools.js +446 -0
- package/build/schemas/output/helper-tools.d.ts +243 -0
- package/build/schemas/output/helper-tools.js +138 -0
- package/build/schemas/output/index.d.ts +76 -0
- package/build/schemas/output/index.js +96 -0
- package/build/schemas/output/project-tools.d.ts +702 -0
- package/build/schemas/output/project-tools.js +339 -0
- package/build/schemas/output/ui-ux-tools.d.ts +469 -0
- package/build/schemas/output/ui-ux-tools.js +218 -0
- package/build/schemas/output/workflow-tools.d.ts +267 -0
- package/build/schemas/output/workflow-tools.js +179 -0
- package/build/schemas/structured-output.d.ts +1317 -0
- package/build/schemas/structured-output.js +1017 -0
- package/build/tools/__tests__/start_ui.integration.test.js +5 -5
- package/build/tools/__tests__/start_ui.property.test.js +11 -11
- package/build/tools/add_feature.d.ts +1 -13
- package/build/tools/add_feature.js +48 -13
- package/build/tools/analyze_project.js +57 -18
- package/build/tools/check_deps.d.ts +1 -13
- package/build/tools/check_deps.js +24 -15
- package/build/tools/code_review.d.ts +1 -13
- package/build/tools/code_review.js +19 -16
- package/build/tools/css_order.js +55 -55
- package/build/tools/debug.d.ts +1 -13
- package/build/tools/debug.js +18 -16
- package/build/tools/estimate.d.ts +1 -19
- package/build/tools/estimate.js +36 -6
- package/build/tools/fix_bug.d.ts +1 -13
- package/build/tools/fix_bug.js +24 -6
- package/build/tools/gen_mock.d.ts +1 -19
- package/build/tools/gen_mock.js +42 -227
- package/build/tools/genapi.d.ts +1 -13
- package/build/tools/genapi.js +18 -15
- package/build/tools/genchangelog.d.ts +1 -13
- package/build/tools/genchangelog.js +36 -212
- package/build/tools/gencommit.d.ts +1 -7
- package/build/tools/gencommit.js +21 -13
- package/build/tools/gendoc.d.ts +1 -13
- package/build/tools/gendoc.js +18 -15
- package/build/tools/genpr.d.ts +1 -13
- package/build/tools/genpr.js +28 -157
- package/build/tools/genreadme.d.ts +1 -13
- package/build/tools/genreadme.js +22 -587
- package/build/tools/gensql.d.ts +1 -13
- package/build/tools/gensql.js +24 -283
- package/build/tools/gentest.d.ts +1 -13
- package/build/tools/gentest.js +49 -16
- package/build/tools/index.d.ts +0 -10
- package/build/tools/index.js +0 -10
- package/build/tools/init_component_catalog.d.ts +3 -20
- package/build/tools/init_component_catalog.js +141 -786
- package/build/tools/init_project.d.ts +7 -13
- package/build/tools/init_project.js +54 -16
- package/build/tools/init_project_context.d.ts +1 -13
- package/build/tools/init_project_context.js +41 -14
- package/build/tools/perf.d.ts +1 -13
- package/build/tools/perf.js +18 -15
- package/build/tools/refactor.d.ts +1 -13
- package/build/tools/refactor.js +54 -15
- package/build/tools/render_ui.d.ts +2 -19
- package/build/tools/render_ui.js +201 -347
- package/build/tools/resolve_conflict.d.ts +1 -13
- package/build/tools/resolve_conflict.js +18 -15
- package/build/tools/security_scan.d.ts +1 -13
- package/build/tools/security_scan.js +16 -5
- package/build/tools/start_api.d.ts +7 -13
- package/build/tools/start_api.js +69 -157
- package/build/tools/start_bugfix.d.ts +1 -7
- package/build/tools/start_bugfix.js +38 -2
- package/build/tools/start_doc.d.ts +7 -13
- package/build/tools/start_doc.js +76 -169
- package/build/tools/start_feature.d.ts +1 -7
- package/build/tools/start_feature.js +54 -2
- package/build/tools/start_onboard.d.ts +1 -7
- package/build/tools/start_onboard.js +40 -2
- package/build/tools/start_ralph.d.ts +1 -7
- package/build/tools/start_ralph.js +88 -2
- package/build/tools/start_refactor.d.ts +7 -13
- package/build/tools/start_refactor.js +75 -148
- package/build/tools/start_release.d.ts +7 -13
- package/build/tools/start_release.js +56 -131
- package/build/tools/start_review.d.ts +7 -13
- package/build/tools/start_review.js +70 -142
- package/build/tools/start_ui.d.ts +1 -7
- package/build/tools/start_ui.js +98 -8
- package/build/tools/ui-ux-tools.d.ts +3 -39
- package/build/tools/ui-ux-tools.js +201 -125
- package/docs/data/tools.js +864 -0
- package/docs/index.html +594 -0
- package/docs/pages/all-tools.html +649 -0
- package/docs/pages/examples.html +564 -0
- package/docs/pages/getting-started.html +529 -0
- package/docs/pages/migration.html +308 -0
- package/docs/specs/algorithm-enhancement/roadmap.md +619 -0
- package/docs/specs/vnext-upgrade/00-OVERVIEW.md +258 -0
- package/docs/specs/vnext-upgrade/BETA_RELEASE_GUIDE.md +328 -0
- package/docs/specs/vnext-upgrade/GITHUB_DISCUSSION_TEMPLATE.md +236 -0
- package/docs/specs/vnext-upgrade/M8.9-PROGRESS-UPDATE.md +248 -0
- package/docs/specs/vnext-upgrade/PROGRESS-SUMMARY.md +195 -0
- package/docs/specs/vnext-upgrade/QUICK_REFERENCE.md +338 -0
- package/docs/specs/vnext-upgrade/README.md +125 -0
- package/docs/specs/vnext-upgrade/STATUS-UPDATE-2026-01-26.md +230 -0
- package/docs/specs/vnext-upgrade/TOOL_CLEANUP.md +343 -0
- package/docs/specs/vnext-upgrade/completed/M1-M2-SUMMARY.md +27 -0
- package/docs/specs/vnext-upgrade/completed/M3_COMPLETION_SUMMARY.md +273 -0
- package/docs/specs/vnext-upgrade/completed/M4-SUMMARY.md +19 -0
- package/docs/specs/vnext-upgrade/completed/M5_COMPLETION_SUMMARY.md +0 -0
- package/docs/specs/vnext-upgrade/completed/M8.1-SUMMARY.md +247 -0
- package/docs/specs/vnext-upgrade/completed/M8.2-SUMMARY.md +296 -0
- package/docs/specs/vnext-upgrade/completed/M8.3-SUMMARY.md +241 -0
- package/docs/specs/vnext-upgrade/completed/M8.3-TEST-SUMMARY.md +216 -0
- package/docs/specs/vnext-upgrade/completed/M8.4-SUMMARY.md +217 -0
- package/docs/specs/vnext-upgrade/completed/M8.4-TEST-SUMMARY.md +198 -0
- package/docs/specs/vnext-upgrade/completed/M8.5-SUMMARY.md +202 -0
- package/docs/specs/vnext-upgrade/completed/M8.5-TEST-SUMMARY.md +223 -0
- package/docs/specs/vnext-upgrade/completed/M8.6-SUMMARY.md +299 -0
- package/docs/specs/vnext-upgrade/completed/M8.8-TEST-SUMMARY.md +216 -0
- package/docs/specs/vnext-upgrade/completed/TOOL-CLEANUP-SUMMARY.md +210 -0
- package/docs/specs/vnext-upgrade/design.md +848 -0
- package/docs/specs/vnext-upgrade/requirements.md +221 -0
- package/docs/specs/vnext-upgrade/tasks/00-INDEX.md +335 -0
- package/docs/specs/vnext-upgrade/tasks/M8.1-SCHEMA-DEFINITION.md +300 -0
- package/docs/specs/vnext-upgrade/tasks/M8.2-P1-TOOLS.md +249 -0
- package/docs/specs/vnext-upgrade/tasks/M8.3-GENERATION-TOOLS.md +49 -0
- package/docs/specs/vnext-upgrade/tasks/M8.4-ORCHESTRATION-TOOLS.md +28 -0
- package/docs/specs/vnext-upgrade/tasks/M8.5-PROJECT-TOOLS.md +29 -0
- package/docs/specs/vnext-upgrade/tasks/M8.6-UI-TOOLS.md +66 -0
- package/docs/specs/vnext-upgrade/tasks/M8.7-HELPER-TOOLS.md +24 -0
- package/docs/specs/vnext-upgrade/tasks/M8.8-INTEGRATION-TESTS.md +90 -0
- package/docs/specs/vnext-upgrade/tasks/M8.9-DOCUMENTATION.md +103 -0
- package/docs/styles/docs.css +556 -0
- package/docs/styles/page.css +815 -0
- package/docs/vnext/MCP_2025-11-25_GUIDE.md +276 -0
- package/docs/vnext/vNext-PRD.md +488 -0
- package/package.json +4 -4
- package/build/utils/design-docs-generator.d.ts +0 -1
- package/build/utils/design-docs-generator.js +0 -1
- package/docs/BEST_PRACTICES.md +0 -1185
- package/docs/HOW_TO_TRIGGER.md +0 -1141
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.html +0 -544
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.md +0 -1447
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工作流编排工具的结构化输出 Schema
|
|
3
|
+
* 包含: start_review, start_release, start_refactor, start_api, start_doc
|
|
4
|
+
*
|
|
5
|
+
* 注意:这些工具都基于 WorkflowReportSchema(在 structured-output.ts 中定义)
|
|
6
|
+
*/
|
|
7
|
+
import { WorkflowReport } from '../structured-output.js';
|
|
8
|
+
/**
|
|
9
|
+
* Review Workflow Schema
|
|
10
|
+
* 用于 start_review 工具的结构化输出
|
|
11
|
+
*/
|
|
12
|
+
export declare const ReviewWorkflowSchema: {
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly allOf: readonly [{
|
|
15
|
+
readonly $ref: "#/definitions/WorkflowReport";
|
|
16
|
+
}];
|
|
17
|
+
readonly properties: {
|
|
18
|
+
readonly reviewResults: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly description: "审查结果";
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly codeReview: {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly description: "代码审查结果";
|
|
25
|
+
};
|
|
26
|
+
readonly securityScan: {
|
|
27
|
+
readonly type: "object";
|
|
28
|
+
readonly description: "安全扫描结果";
|
|
29
|
+
};
|
|
30
|
+
readonly perfAnalysis: {
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly description: "性能分析结果";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly overallScore: {
|
|
37
|
+
readonly type: "number";
|
|
38
|
+
readonly minimum: 0;
|
|
39
|
+
readonly maximum: 100;
|
|
40
|
+
readonly description: "总体评分";
|
|
41
|
+
};
|
|
42
|
+
readonly recommendations: {
|
|
43
|
+
readonly type: "array";
|
|
44
|
+
readonly items: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly description: "改进建议";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["reviewResults", "overallScore"];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Release Workflow Schema
|
|
54
|
+
* 用于 start_release 工具的结构化输出
|
|
55
|
+
*/
|
|
56
|
+
export declare const ReleaseWorkflowSchema: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly allOf: readonly [{
|
|
59
|
+
readonly $ref: "#/definitions/WorkflowReport";
|
|
60
|
+
}];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly version: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly description: "发布版本号";
|
|
65
|
+
};
|
|
66
|
+
readonly changelog: {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly description: "Changelog 内容";
|
|
69
|
+
};
|
|
70
|
+
readonly pullRequest: {
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly description: "PR 描述";
|
|
73
|
+
};
|
|
74
|
+
readonly releaseNotes: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly description: "发布说明";
|
|
77
|
+
};
|
|
78
|
+
readonly checklist: {
|
|
79
|
+
readonly type: "array";
|
|
80
|
+
readonly items: {
|
|
81
|
+
readonly type: "object";
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly item: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly completed: {
|
|
87
|
+
readonly type: "boolean";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly required: readonly ["version", "changelog"];
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Refactor Workflow Schema
|
|
97
|
+
* 用于 start_refactor 工具的结构化输出
|
|
98
|
+
*/
|
|
99
|
+
export declare const RefactorWorkflowSchema: {
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly allOf: readonly [{
|
|
102
|
+
readonly $ref: "#/definitions/WorkflowReport";
|
|
103
|
+
}];
|
|
104
|
+
readonly properties: {
|
|
105
|
+
readonly refactorPlan: {
|
|
106
|
+
readonly type: "object";
|
|
107
|
+
readonly description: "重构计划";
|
|
108
|
+
};
|
|
109
|
+
readonly codeReview: {
|
|
110
|
+
readonly type: "object";
|
|
111
|
+
readonly description: "代码审查结果";
|
|
112
|
+
};
|
|
113
|
+
readonly testSuite: {
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly description: "测试套件";
|
|
116
|
+
};
|
|
117
|
+
readonly riskAssessment: {
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly properties: {
|
|
120
|
+
readonly level: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
123
|
+
};
|
|
124
|
+
readonly risks: {
|
|
125
|
+
readonly type: "array";
|
|
126
|
+
readonly items: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly required: readonly ["refactorPlan", "riskAssessment"];
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* API Workflow Schema
|
|
137
|
+
* 用于 start_api 工具的结构化输出
|
|
138
|
+
*/
|
|
139
|
+
export declare const APIWorkflowSchema: {
|
|
140
|
+
readonly type: "object";
|
|
141
|
+
readonly allOf: readonly [{
|
|
142
|
+
readonly $ref: "#/definitions/WorkflowReport";
|
|
143
|
+
}];
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly apiDocumentation: {
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly description: "API 文档";
|
|
148
|
+
};
|
|
149
|
+
readonly mockData: {
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly description: "Mock 数据";
|
|
152
|
+
};
|
|
153
|
+
readonly testSuite: {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly description: "测试套件";
|
|
156
|
+
};
|
|
157
|
+
readonly endpoints: {
|
|
158
|
+
readonly type: "array";
|
|
159
|
+
readonly items: {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly method: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
readonly path: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
};
|
|
168
|
+
readonly status: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly enum: readonly ["implemented", "documented", "tested"];
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly required: readonly ["apiDocumentation", "endpoints"];
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Documentation Workflow Schema
|
|
180
|
+
* 用于 start_doc 工具的结构化输出
|
|
181
|
+
*/
|
|
182
|
+
export declare const DocWorkflowSchema: {
|
|
183
|
+
readonly type: "object";
|
|
184
|
+
readonly allOf: readonly [{
|
|
185
|
+
readonly $ref: "#/definitions/WorkflowReport";
|
|
186
|
+
}];
|
|
187
|
+
readonly properties: {
|
|
188
|
+
readonly codeDocumentation: {
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
readonly description: "代码文档";
|
|
191
|
+
};
|
|
192
|
+
readonly apiDocumentation: {
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly description: "API 文档";
|
|
195
|
+
};
|
|
196
|
+
readonly readme: {
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly description: "README 文档";
|
|
199
|
+
};
|
|
200
|
+
readonly coverage: {
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly properties: {
|
|
203
|
+
readonly functions: {
|
|
204
|
+
readonly type: "number";
|
|
205
|
+
readonly description: "函数文档覆盖率";
|
|
206
|
+
};
|
|
207
|
+
readonly classes: {
|
|
208
|
+
readonly type: "number";
|
|
209
|
+
readonly description: "类文档覆盖率";
|
|
210
|
+
};
|
|
211
|
+
readonly modules: {
|
|
212
|
+
readonly type: "number";
|
|
213
|
+
readonly description: "模块文档覆盖率";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly required: readonly ["coverage"];
|
|
219
|
+
};
|
|
220
|
+
export interface ReviewWorkflowReport extends WorkflowReport {
|
|
221
|
+
reviewResults: {
|
|
222
|
+
codeReview?: any;
|
|
223
|
+
securityScan?: any;
|
|
224
|
+
perfAnalysis?: any;
|
|
225
|
+
};
|
|
226
|
+
overallScore: number;
|
|
227
|
+
recommendations?: string[];
|
|
228
|
+
}
|
|
229
|
+
export interface ReleaseWorkflowReport extends WorkflowReport {
|
|
230
|
+
version: string;
|
|
231
|
+
changelog: any;
|
|
232
|
+
pullRequest?: any;
|
|
233
|
+
releaseNotes?: string;
|
|
234
|
+
checklist?: Array<{
|
|
235
|
+
item?: string;
|
|
236
|
+
completed?: boolean;
|
|
237
|
+
}>;
|
|
238
|
+
}
|
|
239
|
+
export interface RefactorWorkflowReport extends WorkflowReport {
|
|
240
|
+
refactorPlan: any;
|
|
241
|
+
codeReview?: any;
|
|
242
|
+
testSuite?: any;
|
|
243
|
+
riskAssessment: {
|
|
244
|
+
level: 'low' | 'medium' | 'high';
|
|
245
|
+
risks?: string[];
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
export interface APIWorkflowReport extends WorkflowReport {
|
|
249
|
+
apiDocumentation: any;
|
|
250
|
+
mockData?: any;
|
|
251
|
+
testSuite?: any;
|
|
252
|
+
endpoints: Array<{
|
|
253
|
+
method?: string;
|
|
254
|
+
path?: string;
|
|
255
|
+
status?: 'implemented' | 'documented' | 'tested';
|
|
256
|
+
}>;
|
|
257
|
+
}
|
|
258
|
+
export interface DocWorkflowReport extends WorkflowReport {
|
|
259
|
+
codeDocumentation?: any;
|
|
260
|
+
apiDocumentation?: any;
|
|
261
|
+
readme?: any;
|
|
262
|
+
coverage: {
|
|
263
|
+
functions?: number;
|
|
264
|
+
classes?: number;
|
|
265
|
+
modules?: number;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工作流编排工具的结构化输出 Schema
|
|
3
|
+
* 包含: start_review, start_release, start_refactor, start_api, start_doc
|
|
4
|
+
*
|
|
5
|
+
* 注意:这些工具都基于 WorkflowReportSchema(在 structured-output.ts 中定义)
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Review Workflow Schema
|
|
9
|
+
* 用于 start_review 工具的结构化输出
|
|
10
|
+
*/
|
|
11
|
+
export const ReviewWorkflowSchema = {
|
|
12
|
+
type: 'object',
|
|
13
|
+
allOf: [
|
|
14
|
+
{ $ref: '#/definitions/WorkflowReport' },
|
|
15
|
+
],
|
|
16
|
+
properties: {
|
|
17
|
+
reviewResults: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
description: '审查结果',
|
|
20
|
+
properties: {
|
|
21
|
+
codeReview: { type: 'object', description: '代码审查结果' },
|
|
22
|
+
securityScan: { type: 'object', description: '安全扫描结果' },
|
|
23
|
+
perfAnalysis: { type: 'object', description: '性能分析结果' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
overallScore: {
|
|
27
|
+
type: 'number',
|
|
28
|
+
minimum: 0,
|
|
29
|
+
maximum: 100,
|
|
30
|
+
description: '总体评分',
|
|
31
|
+
},
|
|
32
|
+
recommendations: {
|
|
33
|
+
type: 'array',
|
|
34
|
+
items: { type: 'string' },
|
|
35
|
+
description: '改进建议',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
required: ['reviewResults', 'overallScore'],
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Release Workflow Schema
|
|
42
|
+
* 用于 start_release 工具的结构化输出
|
|
43
|
+
*/
|
|
44
|
+
export const ReleaseWorkflowSchema = {
|
|
45
|
+
type: 'object',
|
|
46
|
+
allOf: [
|
|
47
|
+
{ $ref: '#/definitions/WorkflowReport' },
|
|
48
|
+
],
|
|
49
|
+
properties: {
|
|
50
|
+
version: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: '发布版本号',
|
|
53
|
+
},
|
|
54
|
+
changelog: {
|
|
55
|
+
type: 'object',
|
|
56
|
+
description: 'Changelog 内容',
|
|
57
|
+
},
|
|
58
|
+
pullRequest: {
|
|
59
|
+
type: 'object',
|
|
60
|
+
description: 'PR 描述',
|
|
61
|
+
},
|
|
62
|
+
releaseNotes: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: '发布说明',
|
|
65
|
+
},
|
|
66
|
+
checklist: {
|
|
67
|
+
type: 'array',
|
|
68
|
+
items: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
properties: {
|
|
71
|
+
item: { type: 'string' },
|
|
72
|
+
completed: { type: 'boolean' },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
required: ['version', 'changelog'],
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Refactor Workflow Schema
|
|
81
|
+
* 用于 start_refactor 工具的结构化输出
|
|
82
|
+
*/
|
|
83
|
+
export const RefactorWorkflowSchema = {
|
|
84
|
+
type: 'object',
|
|
85
|
+
allOf: [
|
|
86
|
+
{ $ref: '#/definitions/WorkflowReport' },
|
|
87
|
+
],
|
|
88
|
+
properties: {
|
|
89
|
+
refactorPlan: {
|
|
90
|
+
type: 'object',
|
|
91
|
+
description: '重构计划',
|
|
92
|
+
},
|
|
93
|
+
codeReview: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
description: '代码审查结果',
|
|
96
|
+
},
|
|
97
|
+
testSuite: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
description: '测试套件',
|
|
100
|
+
},
|
|
101
|
+
riskAssessment: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
properties: {
|
|
104
|
+
level: { type: 'string', enum: ['low', 'medium', 'high'] },
|
|
105
|
+
risks: { type: 'array', items: { type: 'string' } },
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
required: ['refactorPlan', 'riskAssessment'],
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* API Workflow Schema
|
|
113
|
+
* 用于 start_api 工具的结构化输出
|
|
114
|
+
*/
|
|
115
|
+
export const APIWorkflowSchema = {
|
|
116
|
+
type: 'object',
|
|
117
|
+
allOf: [
|
|
118
|
+
{ $ref: '#/definitions/WorkflowReport' },
|
|
119
|
+
],
|
|
120
|
+
properties: {
|
|
121
|
+
apiDocumentation: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
description: 'API 文档',
|
|
124
|
+
},
|
|
125
|
+
mockData: {
|
|
126
|
+
type: 'object',
|
|
127
|
+
description: 'Mock 数据',
|
|
128
|
+
},
|
|
129
|
+
testSuite: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
description: '测试套件',
|
|
132
|
+
},
|
|
133
|
+
endpoints: {
|
|
134
|
+
type: 'array',
|
|
135
|
+
items: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
method: { type: 'string' },
|
|
139
|
+
path: { type: 'string' },
|
|
140
|
+
status: { type: 'string', enum: ['implemented', 'documented', 'tested'] },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
required: ['apiDocumentation', 'endpoints'],
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Documentation Workflow Schema
|
|
149
|
+
* 用于 start_doc 工具的结构化输出
|
|
150
|
+
*/
|
|
151
|
+
export const DocWorkflowSchema = {
|
|
152
|
+
type: 'object',
|
|
153
|
+
allOf: [
|
|
154
|
+
{ $ref: '#/definitions/WorkflowReport' },
|
|
155
|
+
],
|
|
156
|
+
properties: {
|
|
157
|
+
codeDocumentation: {
|
|
158
|
+
type: 'object',
|
|
159
|
+
description: '代码文档',
|
|
160
|
+
},
|
|
161
|
+
apiDocumentation: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
description: 'API 文档',
|
|
164
|
+
},
|
|
165
|
+
readme: {
|
|
166
|
+
type: 'object',
|
|
167
|
+
description: 'README 文档',
|
|
168
|
+
},
|
|
169
|
+
coverage: {
|
|
170
|
+
type: 'object',
|
|
171
|
+
properties: {
|
|
172
|
+
functions: { type: 'number', description: '函数文档覆盖率' },
|
|
173
|
+
classes: { type: 'number', description: '类文档覆盖率' },
|
|
174
|
+
modules: { type: 'number', description: '模块文档覆盖率' },
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
required: ['coverage'],
|
|
179
|
+
};
|