mcp-probe-kit 1.15.1 → 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/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 +6 -6
- 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,339 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 项目管理工具的结构化输出 Schema
|
|
3
|
+
* 包含: init_project, init_project_context, add_feature, analyze_project, estimate, check_deps, split, resolve_conflict
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Project Init Schema
|
|
7
|
+
* 用于 init_project 工具的结构化输出
|
|
8
|
+
*/
|
|
9
|
+
export const ProjectInitSchema = {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
summary: { type: 'string' },
|
|
13
|
+
projectName: { type: 'string' },
|
|
14
|
+
structure: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
description: '项目结构',
|
|
17
|
+
properties: {
|
|
18
|
+
directories: { type: 'array', items: { type: 'string' } },
|
|
19
|
+
files: { type: 'array', items: { type: 'string' } },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
techStack: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
items: { type: 'string' },
|
|
25
|
+
},
|
|
26
|
+
dependencies: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
additionalProperties: { type: 'string' },
|
|
29
|
+
},
|
|
30
|
+
scripts: {
|
|
31
|
+
type: 'object',
|
|
32
|
+
additionalProperties: { type: 'string' },
|
|
33
|
+
},
|
|
34
|
+
nextSteps: {
|
|
35
|
+
type: 'array',
|
|
36
|
+
items: { type: 'string' },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
required: ['summary', 'projectName', 'structure'],
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Project Context Schema
|
|
43
|
+
* 用于 init_project_context 工具的结构化输出
|
|
44
|
+
*/
|
|
45
|
+
export const ProjectContextSchema = {
|
|
46
|
+
type: 'object',
|
|
47
|
+
properties: {
|
|
48
|
+
summary: { type: 'string' },
|
|
49
|
+
projectOverview: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
properties: {
|
|
52
|
+
name: { type: 'string' },
|
|
53
|
+
description: { type: 'string' },
|
|
54
|
+
techStack: { type: 'array', items: { type: 'string' } },
|
|
55
|
+
architecture: { type: 'string' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
codingStandards: {
|
|
59
|
+
type: 'array',
|
|
60
|
+
items: { type: 'string' },
|
|
61
|
+
},
|
|
62
|
+
workflows: {
|
|
63
|
+
type: 'array',
|
|
64
|
+
items: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
name: { type: 'string' },
|
|
68
|
+
description: { type: 'string' },
|
|
69
|
+
steps: { type: 'array', items: { type: 'string' } },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
documentation: {
|
|
74
|
+
type: 'array',
|
|
75
|
+
items: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
path: { type: 'string' },
|
|
79
|
+
purpose: { type: 'string' },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
required: ['summary', 'projectOverview'],
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Feature Spec Schema
|
|
88
|
+
* 用于 add_feature 工具的结构化输出
|
|
89
|
+
*/
|
|
90
|
+
export const FeatureSpecSchema = {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
summary: { type: 'string' },
|
|
94
|
+
featureName: { type: 'string' },
|
|
95
|
+
requirements: {
|
|
96
|
+
type: 'array',
|
|
97
|
+
items: { type: 'string' },
|
|
98
|
+
},
|
|
99
|
+
design: {
|
|
100
|
+
type: 'object',
|
|
101
|
+
properties: {
|
|
102
|
+
architecture: { type: 'string' },
|
|
103
|
+
components: { type: 'array', items: { type: 'string' } },
|
|
104
|
+
dataFlow: { type: 'string' },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
tasks: {
|
|
108
|
+
type: 'array',
|
|
109
|
+
items: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
properties: {
|
|
112
|
+
id: { type: 'string' },
|
|
113
|
+
title: { type: 'string' },
|
|
114
|
+
description: { type: 'string' },
|
|
115
|
+
estimatedHours: { type: 'number' },
|
|
116
|
+
dependencies: { type: 'array', items: { type: 'string' } },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
estimate: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
properties: {
|
|
123
|
+
storyPoints: { type: 'number' },
|
|
124
|
+
optimistic: { type: 'string' },
|
|
125
|
+
normal: { type: 'string' },
|
|
126
|
+
pessimistic: { type: 'string' },
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
required: ['summary', 'featureName', 'requirements', 'tasks'],
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Project Analysis Schema
|
|
134
|
+
* 用于 analyze_project 工具的结构化输出
|
|
135
|
+
*/
|
|
136
|
+
export const ProjectAnalysisSchema = {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
summary: { type: 'string' },
|
|
140
|
+
structure: {
|
|
141
|
+
type: 'object',
|
|
142
|
+
properties: {
|
|
143
|
+
totalFiles: { type: 'number' },
|
|
144
|
+
totalLines: { type: 'number' },
|
|
145
|
+
languages: { type: 'object', additionalProperties: { type: 'number' } },
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
techStack: {
|
|
149
|
+
type: 'array',
|
|
150
|
+
items: {
|
|
151
|
+
type: 'object',
|
|
152
|
+
properties: {
|
|
153
|
+
name: { type: 'string' },
|
|
154
|
+
version: { type: 'string' },
|
|
155
|
+
purpose: { type: 'string' },
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
architecture: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
pattern: { type: 'string' },
|
|
163
|
+
layers: { type: 'array', items: { type: 'string' } },
|
|
164
|
+
description: { type: 'string' },
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
dependencies: {
|
|
168
|
+
type: 'object',
|
|
169
|
+
properties: {
|
|
170
|
+
production: { type: 'number' },
|
|
171
|
+
development: { type: 'number' },
|
|
172
|
+
outdated: { type: 'number' },
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
codeQuality: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
properties: {
|
|
178
|
+
complexity: { type: 'string', enum: ['low', 'medium', 'high'] },
|
|
179
|
+
maintainability: { type: 'number' },
|
|
180
|
+
testCoverage: { type: 'number' },
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
recommendations: {
|
|
184
|
+
type: 'array',
|
|
185
|
+
items: { type: 'string' },
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
required: ['summary', 'structure', 'techStack'],
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Estimate Schema
|
|
192
|
+
* 用于 estimate 工具的结构化输出
|
|
193
|
+
*/
|
|
194
|
+
export const EstimateSchema = {
|
|
195
|
+
type: 'object',
|
|
196
|
+
properties: {
|
|
197
|
+
summary: { type: 'string' },
|
|
198
|
+
storyPoints: { type: 'number' },
|
|
199
|
+
timeEstimates: {
|
|
200
|
+
type: 'object',
|
|
201
|
+
properties: {
|
|
202
|
+
optimistic: { type: 'string' },
|
|
203
|
+
normal: { type: 'string' },
|
|
204
|
+
pessimistic: { type: 'string' },
|
|
205
|
+
},
|
|
206
|
+
required: ['optimistic', 'normal', 'pessimistic'],
|
|
207
|
+
},
|
|
208
|
+
breakdown: {
|
|
209
|
+
type: 'array',
|
|
210
|
+
items: {
|
|
211
|
+
type: 'object',
|
|
212
|
+
properties: {
|
|
213
|
+
task: { type: 'string' },
|
|
214
|
+
hours: { type: 'number' },
|
|
215
|
+
complexity: { type: 'string', enum: ['low', 'medium', 'high'] },
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
risks: {
|
|
220
|
+
type: 'array',
|
|
221
|
+
items: {
|
|
222
|
+
type: 'object',
|
|
223
|
+
properties: {
|
|
224
|
+
risk: { type: 'string' },
|
|
225
|
+
impact: { type: 'string', enum: ['low', 'medium', 'high'] },
|
|
226
|
+
mitigation: { type: 'string' },
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
assumptions: {
|
|
231
|
+
type: 'array',
|
|
232
|
+
items: { type: 'string' },
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
required: ['summary', 'storyPoints', 'timeEstimates'],
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Dependency Report Schema
|
|
239
|
+
* 用于 check_deps 工具的结构化输出
|
|
240
|
+
*/
|
|
241
|
+
export const DependencyReportSchema = {
|
|
242
|
+
type: 'object',
|
|
243
|
+
properties: {
|
|
244
|
+
summary: { type: 'string' },
|
|
245
|
+
totalDependencies: { type: 'number' },
|
|
246
|
+
outdated: {
|
|
247
|
+
type: 'array',
|
|
248
|
+
items: {
|
|
249
|
+
type: 'object',
|
|
250
|
+
properties: {
|
|
251
|
+
name: { type: 'string' },
|
|
252
|
+
current: { type: 'string' },
|
|
253
|
+
latest: { type: 'string' },
|
|
254
|
+
type: { type: 'string', enum: ['major', 'minor', 'patch'] },
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
vulnerabilities: {
|
|
259
|
+
type: 'array',
|
|
260
|
+
items: {
|
|
261
|
+
type: 'object',
|
|
262
|
+
properties: {
|
|
263
|
+
name: { type: 'string' },
|
|
264
|
+
severity: { type: 'string', enum: ['critical', 'high', 'medium', 'low'] },
|
|
265
|
+
description: { type: 'string' },
|
|
266
|
+
fixAvailable: { type: 'boolean' },
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
unused: {
|
|
271
|
+
type: 'array',
|
|
272
|
+
items: { type: 'string' },
|
|
273
|
+
},
|
|
274
|
+
recommendations: {
|
|
275
|
+
type: 'array',
|
|
276
|
+
items: { type: 'string' },
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
required: ['summary', 'totalDependencies'],
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Split Plan Schema
|
|
283
|
+
* 用于 split 工具的结构化输出
|
|
284
|
+
*/
|
|
285
|
+
export const SplitPlanSchema = {
|
|
286
|
+
type: 'object',
|
|
287
|
+
properties: {
|
|
288
|
+
summary: { type: 'string' },
|
|
289
|
+
strategy: {
|
|
290
|
+
type: 'string',
|
|
291
|
+
enum: ['by-type', 'by-function', 'by-component', 'auto'],
|
|
292
|
+
},
|
|
293
|
+
modules: {
|
|
294
|
+
type: 'array',
|
|
295
|
+
items: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties: {
|
|
298
|
+
name: { type: 'string' },
|
|
299
|
+
path: { type: 'string' },
|
|
300
|
+
purpose: { type: 'string' },
|
|
301
|
+
exports: { type: 'array', items: { type: 'string' } },
|
|
302
|
+
dependencies: { type: 'array', items: { type: 'string' } },
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
benefits: {
|
|
307
|
+
type: 'array',
|
|
308
|
+
items: { type: 'string' },
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
required: ['summary', 'strategy', 'modules'],
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Conflict Resolution Schema
|
|
315
|
+
* 用于 resolve_conflict 工具的结构化输出
|
|
316
|
+
*/
|
|
317
|
+
export const ConflictResolutionSchema = {
|
|
318
|
+
type: 'object',
|
|
319
|
+
properties: {
|
|
320
|
+
summary: { type: 'string' },
|
|
321
|
+
conflicts: {
|
|
322
|
+
type: 'array',
|
|
323
|
+
items: {
|
|
324
|
+
type: 'object',
|
|
325
|
+
properties: {
|
|
326
|
+
file: { type: 'string' },
|
|
327
|
+
line: { type: 'number' },
|
|
328
|
+
ours: { type: 'string' },
|
|
329
|
+
theirs: { type: 'string' },
|
|
330
|
+
resolution: { type: 'string' },
|
|
331
|
+
rationale: { type: 'string' },
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
resolvedCode: { type: 'string' },
|
|
336
|
+
explanation: { type: 'string' },
|
|
337
|
+
},
|
|
338
|
+
required: ['summary', 'conflicts', 'resolvedCode'],
|
|
339
|
+
};
|