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.
Files changed (162) hide show
  1. package/README.md +113 -1642
  2. package/build/index.js +75 -42
  3. package/build/lib/elicitation-helper.d.ts +73 -0
  4. package/build/lib/elicitation-helper.js +130 -0
  5. package/build/lib/response.d.ts +32 -0
  6. package/build/lib/response.js +28 -0
  7. package/build/lib/tasks-manager.d.ts +116 -0
  8. package/build/lib/tasks-manager.js +217 -0
  9. package/build/lib/toolset-manager.d.ts +48 -0
  10. package/build/lib/toolset-manager.js +112 -0
  11. package/build/schemas/basic-tools.d.ts +0 -32
  12. package/build/schemas/basic-tools.js +0 -34
  13. package/build/schemas/code-analysis-tools.d.ts +0 -36
  14. package/build/schemas/code-analysis-tools.js +0 -38
  15. package/build/schemas/code-gen-tools.d.ts +0 -44
  16. package/build/schemas/code-gen-tools.js +0 -46
  17. package/build/schemas/doc-util-tools.d.ts +0 -54
  18. package/build/schemas/doc-util-tools.js +0 -58
  19. package/build/schemas/index.d.ts +0 -188
  20. package/build/schemas/orchestration-tools.d.ts +0 -22
  21. package/build/schemas/orchestration-tools.js +0 -23
  22. package/build/schemas/output/core-tools.d.ts +817 -0
  23. package/build/schemas/output/core-tools.js +421 -0
  24. package/build/schemas/output/generation-tools.d.ts +936 -0
  25. package/build/schemas/output/generation-tools.js +446 -0
  26. package/build/schemas/output/helper-tools.d.ts +243 -0
  27. package/build/schemas/output/helper-tools.js +138 -0
  28. package/build/schemas/output/index.d.ts +76 -0
  29. package/build/schemas/output/index.js +96 -0
  30. package/build/schemas/output/project-tools.d.ts +702 -0
  31. package/build/schemas/output/project-tools.js +339 -0
  32. package/build/schemas/output/ui-ux-tools.d.ts +469 -0
  33. package/build/schemas/output/ui-ux-tools.js +218 -0
  34. package/build/schemas/output/workflow-tools.d.ts +267 -0
  35. package/build/schemas/output/workflow-tools.js +179 -0
  36. package/build/schemas/structured-output.d.ts +1317 -0
  37. package/build/schemas/structured-output.js +1017 -0
  38. package/build/tools/__tests__/start_ui.integration.test.js +5 -5
  39. package/build/tools/__tests__/start_ui.property.test.js +11 -11
  40. package/build/tools/add_feature.d.ts +1 -13
  41. package/build/tools/add_feature.js +48 -13
  42. package/build/tools/analyze_project.js +57 -18
  43. package/build/tools/check_deps.d.ts +1 -13
  44. package/build/tools/check_deps.js +24 -15
  45. package/build/tools/code_review.d.ts +1 -13
  46. package/build/tools/code_review.js +19 -16
  47. package/build/tools/debug.d.ts +1 -13
  48. package/build/tools/debug.js +18 -16
  49. package/build/tools/estimate.d.ts +1 -19
  50. package/build/tools/estimate.js +36 -6
  51. package/build/tools/fix_bug.d.ts +1 -13
  52. package/build/tools/fix_bug.js +24 -6
  53. package/build/tools/gen_mock.d.ts +1 -19
  54. package/build/tools/gen_mock.js +42 -227
  55. package/build/tools/genapi.d.ts +1 -13
  56. package/build/tools/genapi.js +18 -15
  57. package/build/tools/genchangelog.d.ts +1 -13
  58. package/build/tools/genchangelog.js +36 -212
  59. package/build/tools/gencommit.d.ts +1 -7
  60. package/build/tools/gencommit.js +21 -13
  61. package/build/tools/gendoc.d.ts +1 -13
  62. package/build/tools/gendoc.js +18 -15
  63. package/build/tools/genpr.d.ts +1 -13
  64. package/build/tools/genpr.js +28 -157
  65. package/build/tools/genreadme.d.ts +1 -13
  66. package/build/tools/genreadme.js +22 -587
  67. package/build/tools/gensql.d.ts +1 -13
  68. package/build/tools/gensql.js +24 -283
  69. package/build/tools/gentest.d.ts +1 -13
  70. package/build/tools/gentest.js +49 -16
  71. package/build/tools/index.d.ts +0 -10
  72. package/build/tools/index.js +0 -10
  73. package/build/tools/init_component_catalog.d.ts +3 -20
  74. package/build/tools/init_component_catalog.js +141 -786
  75. package/build/tools/init_project.d.ts +7 -13
  76. package/build/tools/init_project.js +54 -16
  77. package/build/tools/init_project_context.d.ts +1 -13
  78. package/build/tools/init_project_context.js +41 -14
  79. package/build/tools/perf.d.ts +1 -13
  80. package/build/tools/perf.js +18 -15
  81. package/build/tools/refactor.d.ts +1 -13
  82. package/build/tools/refactor.js +54 -15
  83. package/build/tools/render_ui.d.ts +2 -19
  84. package/build/tools/render_ui.js +201 -347
  85. package/build/tools/resolve_conflict.d.ts +1 -13
  86. package/build/tools/resolve_conflict.js +18 -15
  87. package/build/tools/security_scan.d.ts +1 -13
  88. package/build/tools/security_scan.js +16 -5
  89. package/build/tools/start_api.d.ts +7 -13
  90. package/build/tools/start_api.js +69 -157
  91. package/build/tools/start_bugfix.d.ts +1 -7
  92. package/build/tools/start_bugfix.js +38 -2
  93. package/build/tools/start_doc.d.ts +7 -13
  94. package/build/tools/start_doc.js +76 -169
  95. package/build/tools/start_feature.d.ts +1 -7
  96. package/build/tools/start_feature.js +54 -2
  97. package/build/tools/start_onboard.d.ts +1 -7
  98. package/build/tools/start_onboard.js +40 -2
  99. package/build/tools/start_ralph.d.ts +1 -7
  100. package/build/tools/start_ralph.js +88 -2
  101. package/build/tools/start_refactor.d.ts +7 -13
  102. package/build/tools/start_refactor.js +75 -148
  103. package/build/tools/start_release.d.ts +7 -13
  104. package/build/tools/start_release.js +56 -131
  105. package/build/tools/start_review.d.ts +7 -13
  106. package/build/tools/start_review.js +70 -142
  107. package/build/tools/start_ui.d.ts +1 -7
  108. package/build/tools/start_ui.js +98 -8
  109. package/build/tools/ui-ux-tools.d.ts +3 -39
  110. package/build/tools/ui-ux-tools.js +201 -125
  111. package/docs/data/tools.js +864 -0
  112. package/docs/index.html +594 -0
  113. package/docs/pages/all-tools.html +649 -0
  114. package/docs/pages/examples.html +564 -0
  115. package/docs/pages/getting-started.html +529 -0
  116. package/docs/pages/migration.html +308 -0
  117. package/docs/specs/algorithm-enhancement/roadmap.md +619 -0
  118. package/docs/specs/vnext-upgrade/00-OVERVIEW.md +258 -0
  119. package/docs/specs/vnext-upgrade/BETA_RELEASE_GUIDE.md +328 -0
  120. package/docs/specs/vnext-upgrade/GITHUB_DISCUSSION_TEMPLATE.md +236 -0
  121. package/docs/specs/vnext-upgrade/M8.9-PROGRESS-UPDATE.md +248 -0
  122. package/docs/specs/vnext-upgrade/PROGRESS-SUMMARY.md +195 -0
  123. package/docs/specs/vnext-upgrade/QUICK_REFERENCE.md +338 -0
  124. package/docs/specs/vnext-upgrade/README.md +125 -0
  125. package/docs/specs/vnext-upgrade/STATUS-UPDATE-2026-01-26.md +230 -0
  126. package/docs/specs/vnext-upgrade/TOOL_CLEANUP.md +343 -0
  127. package/docs/specs/vnext-upgrade/completed/M1-M2-SUMMARY.md +27 -0
  128. package/docs/specs/vnext-upgrade/completed/M3_COMPLETION_SUMMARY.md +273 -0
  129. package/docs/specs/vnext-upgrade/completed/M4-SUMMARY.md +19 -0
  130. package/docs/specs/vnext-upgrade/completed/M5_COMPLETION_SUMMARY.md +0 -0
  131. package/docs/specs/vnext-upgrade/completed/M8.1-SUMMARY.md +247 -0
  132. package/docs/specs/vnext-upgrade/completed/M8.2-SUMMARY.md +296 -0
  133. package/docs/specs/vnext-upgrade/completed/M8.3-SUMMARY.md +241 -0
  134. package/docs/specs/vnext-upgrade/completed/M8.3-TEST-SUMMARY.md +216 -0
  135. package/docs/specs/vnext-upgrade/completed/M8.4-SUMMARY.md +217 -0
  136. package/docs/specs/vnext-upgrade/completed/M8.4-TEST-SUMMARY.md +198 -0
  137. package/docs/specs/vnext-upgrade/completed/M8.5-SUMMARY.md +202 -0
  138. package/docs/specs/vnext-upgrade/completed/M8.5-TEST-SUMMARY.md +223 -0
  139. package/docs/specs/vnext-upgrade/completed/M8.6-SUMMARY.md +299 -0
  140. package/docs/specs/vnext-upgrade/completed/M8.8-TEST-SUMMARY.md +216 -0
  141. package/docs/specs/vnext-upgrade/completed/TOOL-CLEANUP-SUMMARY.md +210 -0
  142. package/docs/specs/vnext-upgrade/design.md +848 -0
  143. package/docs/specs/vnext-upgrade/requirements.md +221 -0
  144. package/docs/specs/vnext-upgrade/tasks/00-INDEX.md +335 -0
  145. package/docs/specs/vnext-upgrade/tasks/M8.1-SCHEMA-DEFINITION.md +300 -0
  146. package/docs/specs/vnext-upgrade/tasks/M8.2-P1-TOOLS.md +249 -0
  147. package/docs/specs/vnext-upgrade/tasks/M8.3-GENERATION-TOOLS.md +49 -0
  148. package/docs/specs/vnext-upgrade/tasks/M8.4-ORCHESTRATION-TOOLS.md +28 -0
  149. package/docs/specs/vnext-upgrade/tasks/M8.5-PROJECT-TOOLS.md +29 -0
  150. package/docs/specs/vnext-upgrade/tasks/M8.6-UI-TOOLS.md +66 -0
  151. package/docs/specs/vnext-upgrade/tasks/M8.7-HELPER-TOOLS.md +24 -0
  152. package/docs/specs/vnext-upgrade/tasks/M8.8-INTEGRATION-TESTS.md +90 -0
  153. package/docs/specs/vnext-upgrade/tasks/M8.9-DOCUMENTATION.md +103 -0
  154. package/docs/styles/docs.css +556 -0
  155. package/docs/styles/page.css +815 -0
  156. package/docs/vnext/MCP_2025-11-25_GUIDE.md +276 -0
  157. package/docs/vnext/vNext-PRD.md +488 -0
  158. package/package.json +6 -6
  159. package/docs/BEST_PRACTICES.md +0 -1185
  160. package/docs/HOW_TO_TRIGGER.md +0 -1141
  161. package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.html +0 -544
  162. package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.md +0 -1447
@@ -0,0 +1,702 @@
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 declare const ProjectInitSchema: {
10
+ readonly type: "object";
11
+ readonly properties: {
12
+ readonly summary: {
13
+ readonly type: "string";
14
+ };
15
+ readonly projectName: {
16
+ readonly type: "string";
17
+ };
18
+ readonly structure: {
19
+ readonly type: "object";
20
+ readonly description: "项目结构";
21
+ readonly properties: {
22
+ readonly directories: {
23
+ readonly type: "array";
24
+ readonly items: {
25
+ readonly type: "string";
26
+ };
27
+ };
28
+ readonly files: {
29
+ readonly type: "array";
30
+ readonly items: {
31
+ readonly type: "string";
32
+ };
33
+ };
34
+ };
35
+ };
36
+ readonly techStack: {
37
+ readonly type: "array";
38
+ readonly items: {
39
+ readonly type: "string";
40
+ };
41
+ };
42
+ readonly dependencies: {
43
+ readonly type: "object";
44
+ readonly additionalProperties: {
45
+ readonly type: "string";
46
+ };
47
+ };
48
+ readonly scripts: {
49
+ readonly type: "object";
50
+ readonly additionalProperties: {
51
+ readonly type: "string";
52
+ };
53
+ };
54
+ readonly nextSteps: {
55
+ readonly type: "array";
56
+ readonly items: {
57
+ readonly type: "string";
58
+ };
59
+ };
60
+ };
61
+ readonly required: readonly ["summary", "projectName", "structure"];
62
+ };
63
+ /**
64
+ * Project Context Schema
65
+ * 用于 init_project_context 工具的结构化输出
66
+ */
67
+ export declare const ProjectContextSchema: {
68
+ readonly type: "object";
69
+ readonly properties: {
70
+ readonly summary: {
71
+ readonly type: "string";
72
+ };
73
+ readonly projectOverview: {
74
+ readonly type: "object";
75
+ readonly properties: {
76
+ readonly name: {
77
+ readonly type: "string";
78
+ };
79
+ readonly description: {
80
+ readonly type: "string";
81
+ };
82
+ readonly techStack: {
83
+ readonly type: "array";
84
+ readonly items: {
85
+ readonly type: "string";
86
+ };
87
+ };
88
+ readonly architecture: {
89
+ readonly type: "string";
90
+ };
91
+ };
92
+ };
93
+ readonly codingStandards: {
94
+ readonly type: "array";
95
+ readonly items: {
96
+ readonly type: "string";
97
+ };
98
+ };
99
+ readonly workflows: {
100
+ readonly type: "array";
101
+ readonly items: {
102
+ readonly type: "object";
103
+ readonly properties: {
104
+ readonly name: {
105
+ readonly type: "string";
106
+ };
107
+ readonly description: {
108
+ readonly type: "string";
109
+ };
110
+ readonly steps: {
111
+ readonly type: "array";
112
+ readonly items: {
113
+ readonly type: "string";
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ readonly documentation: {
120
+ readonly type: "array";
121
+ readonly items: {
122
+ readonly type: "object";
123
+ readonly properties: {
124
+ readonly path: {
125
+ readonly type: "string";
126
+ };
127
+ readonly purpose: {
128
+ readonly type: "string";
129
+ };
130
+ };
131
+ };
132
+ };
133
+ };
134
+ readonly required: readonly ["summary", "projectOverview"];
135
+ };
136
+ /**
137
+ * Feature Spec Schema
138
+ * 用于 add_feature 工具的结构化输出
139
+ */
140
+ export declare const FeatureSpecSchema: {
141
+ readonly type: "object";
142
+ readonly properties: {
143
+ readonly summary: {
144
+ readonly type: "string";
145
+ };
146
+ readonly featureName: {
147
+ readonly type: "string";
148
+ };
149
+ readonly requirements: {
150
+ readonly type: "array";
151
+ readonly items: {
152
+ readonly type: "string";
153
+ };
154
+ };
155
+ readonly design: {
156
+ readonly type: "object";
157
+ readonly properties: {
158
+ readonly architecture: {
159
+ readonly type: "string";
160
+ };
161
+ readonly components: {
162
+ readonly type: "array";
163
+ readonly items: {
164
+ readonly type: "string";
165
+ };
166
+ };
167
+ readonly dataFlow: {
168
+ readonly type: "string";
169
+ };
170
+ };
171
+ };
172
+ readonly tasks: {
173
+ readonly type: "array";
174
+ readonly items: {
175
+ readonly type: "object";
176
+ readonly properties: {
177
+ readonly id: {
178
+ readonly type: "string";
179
+ };
180
+ readonly title: {
181
+ readonly type: "string";
182
+ };
183
+ readonly description: {
184
+ readonly type: "string";
185
+ };
186
+ readonly estimatedHours: {
187
+ readonly type: "number";
188
+ };
189
+ readonly dependencies: {
190
+ readonly type: "array";
191
+ readonly items: {
192
+ readonly type: "string";
193
+ };
194
+ };
195
+ };
196
+ };
197
+ };
198
+ readonly estimate: {
199
+ readonly type: "object";
200
+ readonly properties: {
201
+ readonly storyPoints: {
202
+ readonly type: "number";
203
+ };
204
+ readonly optimistic: {
205
+ readonly type: "string";
206
+ };
207
+ readonly normal: {
208
+ readonly type: "string";
209
+ };
210
+ readonly pessimistic: {
211
+ readonly type: "string";
212
+ };
213
+ };
214
+ };
215
+ };
216
+ readonly required: readonly ["summary", "featureName", "requirements", "tasks"];
217
+ };
218
+ /**
219
+ * Project Analysis Schema
220
+ * 用于 analyze_project 工具的结构化输出
221
+ */
222
+ export declare const ProjectAnalysisSchema: {
223
+ readonly type: "object";
224
+ readonly properties: {
225
+ readonly summary: {
226
+ readonly type: "string";
227
+ };
228
+ readonly structure: {
229
+ readonly type: "object";
230
+ readonly properties: {
231
+ readonly totalFiles: {
232
+ readonly type: "number";
233
+ };
234
+ readonly totalLines: {
235
+ readonly type: "number";
236
+ };
237
+ readonly languages: {
238
+ readonly type: "object";
239
+ readonly additionalProperties: {
240
+ readonly type: "number";
241
+ };
242
+ };
243
+ };
244
+ };
245
+ readonly techStack: {
246
+ readonly type: "array";
247
+ readonly items: {
248
+ readonly type: "object";
249
+ readonly properties: {
250
+ readonly name: {
251
+ readonly type: "string";
252
+ };
253
+ readonly version: {
254
+ readonly type: "string";
255
+ };
256
+ readonly purpose: {
257
+ readonly type: "string";
258
+ };
259
+ };
260
+ };
261
+ };
262
+ readonly architecture: {
263
+ readonly type: "object";
264
+ readonly properties: {
265
+ readonly pattern: {
266
+ readonly type: "string";
267
+ };
268
+ readonly layers: {
269
+ readonly type: "array";
270
+ readonly items: {
271
+ readonly type: "string";
272
+ };
273
+ };
274
+ readonly description: {
275
+ readonly type: "string";
276
+ };
277
+ };
278
+ };
279
+ readonly dependencies: {
280
+ readonly type: "object";
281
+ readonly properties: {
282
+ readonly production: {
283
+ readonly type: "number";
284
+ };
285
+ readonly development: {
286
+ readonly type: "number";
287
+ };
288
+ readonly outdated: {
289
+ readonly type: "number";
290
+ };
291
+ };
292
+ };
293
+ readonly codeQuality: {
294
+ readonly type: "object";
295
+ readonly properties: {
296
+ readonly complexity: {
297
+ readonly type: "string";
298
+ readonly enum: readonly ["low", "medium", "high"];
299
+ };
300
+ readonly maintainability: {
301
+ readonly type: "number";
302
+ };
303
+ readonly testCoverage: {
304
+ readonly type: "number";
305
+ };
306
+ };
307
+ };
308
+ readonly recommendations: {
309
+ readonly type: "array";
310
+ readonly items: {
311
+ readonly type: "string";
312
+ };
313
+ };
314
+ };
315
+ readonly required: readonly ["summary", "structure", "techStack"];
316
+ };
317
+ /**
318
+ * Estimate Schema
319
+ * 用于 estimate 工具的结构化输出
320
+ */
321
+ export declare const EstimateSchema: {
322
+ readonly type: "object";
323
+ readonly properties: {
324
+ readonly summary: {
325
+ readonly type: "string";
326
+ };
327
+ readonly storyPoints: {
328
+ readonly type: "number";
329
+ };
330
+ readonly timeEstimates: {
331
+ readonly type: "object";
332
+ readonly properties: {
333
+ readonly optimistic: {
334
+ readonly type: "string";
335
+ };
336
+ readonly normal: {
337
+ readonly type: "string";
338
+ };
339
+ readonly pessimistic: {
340
+ readonly type: "string";
341
+ };
342
+ };
343
+ readonly required: readonly ["optimistic", "normal", "pessimistic"];
344
+ };
345
+ readonly breakdown: {
346
+ readonly type: "array";
347
+ readonly items: {
348
+ readonly type: "object";
349
+ readonly properties: {
350
+ readonly task: {
351
+ readonly type: "string";
352
+ };
353
+ readonly hours: {
354
+ readonly type: "number";
355
+ };
356
+ readonly complexity: {
357
+ readonly type: "string";
358
+ readonly enum: readonly ["low", "medium", "high"];
359
+ };
360
+ };
361
+ };
362
+ };
363
+ readonly risks: {
364
+ readonly type: "array";
365
+ readonly items: {
366
+ readonly type: "object";
367
+ readonly properties: {
368
+ readonly risk: {
369
+ readonly type: "string";
370
+ };
371
+ readonly impact: {
372
+ readonly type: "string";
373
+ readonly enum: readonly ["low", "medium", "high"];
374
+ };
375
+ readonly mitigation: {
376
+ readonly type: "string";
377
+ };
378
+ };
379
+ };
380
+ };
381
+ readonly assumptions: {
382
+ readonly type: "array";
383
+ readonly items: {
384
+ readonly type: "string";
385
+ };
386
+ };
387
+ };
388
+ readonly required: readonly ["summary", "storyPoints", "timeEstimates"];
389
+ };
390
+ /**
391
+ * Dependency Report Schema
392
+ * 用于 check_deps 工具的结构化输出
393
+ */
394
+ export declare const DependencyReportSchema: {
395
+ readonly type: "object";
396
+ readonly properties: {
397
+ readonly summary: {
398
+ readonly type: "string";
399
+ };
400
+ readonly totalDependencies: {
401
+ readonly type: "number";
402
+ };
403
+ readonly outdated: {
404
+ readonly type: "array";
405
+ readonly items: {
406
+ readonly type: "object";
407
+ readonly properties: {
408
+ readonly name: {
409
+ readonly type: "string";
410
+ };
411
+ readonly current: {
412
+ readonly type: "string";
413
+ };
414
+ readonly latest: {
415
+ readonly type: "string";
416
+ };
417
+ readonly type: {
418
+ readonly type: "string";
419
+ readonly enum: readonly ["major", "minor", "patch"];
420
+ };
421
+ };
422
+ };
423
+ };
424
+ readonly vulnerabilities: {
425
+ readonly type: "array";
426
+ readonly items: {
427
+ readonly type: "object";
428
+ readonly properties: {
429
+ readonly name: {
430
+ readonly type: "string";
431
+ };
432
+ readonly severity: {
433
+ readonly type: "string";
434
+ readonly enum: readonly ["critical", "high", "medium", "low"];
435
+ };
436
+ readonly description: {
437
+ readonly type: "string";
438
+ };
439
+ readonly fixAvailable: {
440
+ readonly type: "boolean";
441
+ };
442
+ };
443
+ };
444
+ };
445
+ readonly unused: {
446
+ readonly type: "array";
447
+ readonly items: {
448
+ readonly type: "string";
449
+ };
450
+ };
451
+ readonly recommendations: {
452
+ readonly type: "array";
453
+ readonly items: {
454
+ readonly type: "string";
455
+ };
456
+ };
457
+ };
458
+ readonly required: readonly ["summary", "totalDependencies"];
459
+ };
460
+ /**
461
+ * Split Plan Schema
462
+ * 用于 split 工具的结构化输出
463
+ */
464
+ export declare const SplitPlanSchema: {
465
+ readonly type: "object";
466
+ readonly properties: {
467
+ readonly summary: {
468
+ readonly type: "string";
469
+ };
470
+ readonly strategy: {
471
+ readonly type: "string";
472
+ readonly enum: readonly ["by-type", "by-function", "by-component", "auto"];
473
+ };
474
+ readonly modules: {
475
+ readonly type: "array";
476
+ readonly items: {
477
+ readonly type: "object";
478
+ readonly properties: {
479
+ readonly name: {
480
+ readonly type: "string";
481
+ };
482
+ readonly path: {
483
+ readonly type: "string";
484
+ };
485
+ readonly purpose: {
486
+ readonly type: "string";
487
+ };
488
+ readonly exports: {
489
+ readonly type: "array";
490
+ readonly items: {
491
+ readonly type: "string";
492
+ };
493
+ };
494
+ readonly dependencies: {
495
+ readonly type: "array";
496
+ readonly items: {
497
+ readonly type: "string";
498
+ };
499
+ };
500
+ };
501
+ };
502
+ };
503
+ readonly benefits: {
504
+ readonly type: "array";
505
+ readonly items: {
506
+ readonly type: "string";
507
+ };
508
+ };
509
+ };
510
+ readonly required: readonly ["summary", "strategy", "modules"];
511
+ };
512
+ /**
513
+ * Conflict Resolution Schema
514
+ * 用于 resolve_conflict 工具的结构化输出
515
+ */
516
+ export declare const ConflictResolutionSchema: {
517
+ readonly type: "object";
518
+ readonly properties: {
519
+ readonly summary: {
520
+ readonly type: "string";
521
+ };
522
+ readonly conflicts: {
523
+ readonly type: "array";
524
+ readonly items: {
525
+ readonly type: "object";
526
+ readonly properties: {
527
+ readonly file: {
528
+ readonly type: "string";
529
+ };
530
+ readonly line: {
531
+ readonly type: "number";
532
+ };
533
+ readonly ours: {
534
+ readonly type: "string";
535
+ };
536
+ readonly theirs: {
537
+ readonly type: "string";
538
+ };
539
+ readonly resolution: {
540
+ readonly type: "string";
541
+ };
542
+ readonly rationale: {
543
+ readonly type: "string";
544
+ };
545
+ };
546
+ };
547
+ };
548
+ readonly resolvedCode: {
549
+ readonly type: "string";
550
+ };
551
+ readonly explanation: {
552
+ readonly type: "string";
553
+ };
554
+ };
555
+ readonly required: readonly ["summary", "conflicts", "resolvedCode"];
556
+ };
557
+ export interface ProjectInit {
558
+ summary: string;
559
+ projectName: string;
560
+ structure: {
561
+ directories?: string[];
562
+ files?: string[];
563
+ };
564
+ techStack?: string[];
565
+ dependencies?: Record<string, string>;
566
+ scripts?: Record<string, string>;
567
+ nextSteps?: string[];
568
+ }
569
+ export interface ProjectContext {
570
+ summary: string;
571
+ projectOverview: {
572
+ name?: string;
573
+ description?: string;
574
+ techStack?: string[];
575
+ architecture?: string;
576
+ };
577
+ codingStandards?: string[];
578
+ workflows?: Array<{
579
+ name?: string;
580
+ description?: string;
581
+ steps?: string[];
582
+ }>;
583
+ documentation?: Array<{
584
+ path?: string;
585
+ purpose?: string;
586
+ }>;
587
+ }
588
+ export interface FeatureSpec {
589
+ summary: string;
590
+ featureName: string;
591
+ requirements: string[];
592
+ design?: {
593
+ architecture?: string;
594
+ components?: string[];
595
+ dataFlow?: string;
596
+ };
597
+ tasks: Array<{
598
+ id?: string;
599
+ title?: string;
600
+ description?: string;
601
+ estimatedHours?: number;
602
+ dependencies?: string[];
603
+ }>;
604
+ estimate?: {
605
+ storyPoints?: number;
606
+ optimistic?: string;
607
+ normal?: string;
608
+ pessimistic?: string;
609
+ };
610
+ }
611
+ export interface ProjectAnalysis {
612
+ summary: string;
613
+ structure: {
614
+ totalFiles?: number;
615
+ totalLines?: number;
616
+ languages?: Record<string, number>;
617
+ };
618
+ techStack: Array<{
619
+ name?: string;
620
+ version?: string;
621
+ purpose?: string;
622
+ }>;
623
+ architecture?: {
624
+ pattern?: string;
625
+ layers?: string[];
626
+ description?: string;
627
+ };
628
+ dependencies?: {
629
+ production?: number;
630
+ development?: number;
631
+ outdated?: number;
632
+ };
633
+ codeQuality?: {
634
+ complexity?: 'low' | 'medium' | 'high';
635
+ maintainability?: number;
636
+ testCoverage?: number;
637
+ };
638
+ recommendations?: string[];
639
+ }
640
+ export interface Estimate {
641
+ summary: string;
642
+ storyPoints: number;
643
+ timeEstimates: {
644
+ optimistic: string;
645
+ normal: string;
646
+ pessimistic: string;
647
+ };
648
+ breakdown?: Array<{
649
+ task?: string;
650
+ hours?: number;
651
+ complexity?: 'low' | 'medium' | 'high';
652
+ }>;
653
+ risks?: Array<{
654
+ risk?: string;
655
+ impact?: 'low' | 'medium' | 'high';
656
+ mitigation?: string;
657
+ }>;
658
+ assumptions?: string[];
659
+ }
660
+ export interface DependencyReport {
661
+ summary: string;
662
+ totalDependencies: number;
663
+ outdated?: Array<{
664
+ name?: string;
665
+ current?: string;
666
+ latest?: string;
667
+ type?: 'major' | 'minor' | 'patch';
668
+ }>;
669
+ vulnerabilities?: Array<{
670
+ name?: string;
671
+ severity?: 'critical' | 'high' | 'medium' | 'low';
672
+ description?: string;
673
+ fixAvailable?: boolean;
674
+ }>;
675
+ unused?: string[];
676
+ recommendations?: string[];
677
+ }
678
+ export interface SplitPlan {
679
+ summary: string;
680
+ strategy: 'by-type' | 'by-function' | 'by-component' | 'auto';
681
+ modules: Array<{
682
+ name?: string;
683
+ path?: string;
684
+ purpose?: string;
685
+ exports?: string[];
686
+ dependencies?: string[];
687
+ }>;
688
+ benefits?: string[];
689
+ }
690
+ export interface ConflictResolution {
691
+ summary: string;
692
+ conflicts: Array<{
693
+ file?: string;
694
+ line?: number;
695
+ ours?: string;
696
+ theirs?: string;
697
+ resolution?: string;
698
+ rationale?: string;
699
+ }>;
700
+ resolvedCode: string;
701
+ explanation?: string;
702
+ }