mcp-probe-kit 2.3.0 → 2.5.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 +131 -48
- package/build/index.js +1 -7
- package/build/lib/guidance.d.ts +8 -0
- package/build/lib/guidance.js +30 -0
- package/build/lib/orchestration-guidance.d.ts +8 -0
- package/build/lib/orchestration-guidance.js +16 -0
- package/build/lib/template-loader.d.ts +25 -0
- package/build/lib/template-loader.js +473 -0
- package/build/lib/toolset-manager.d.ts +4 -4
- package/build/lib/toolset-manager.js +10 -13
- package/build/schemas/code-analysis-tools.d.ts +0 -18
- package/build/schemas/code-analysis-tools.js +0 -19
- package/build/schemas/doc-util-tools.d.ts +0 -9
- package/build/schemas/doc-util-tools.js +0 -10
- package/build/schemas/index.d.ts +46 -47
- package/build/schemas/orchestration-tools.d.ts +42 -2
- package/build/schemas/orchestration-tools.js +42 -2
- package/build/schemas/output/core-tools.d.ts +1 -117
- package/build/schemas/output/core-tools.js +1 -60
- package/build/schemas/output/index.d.ts +5 -4
- package/build/schemas/output/index.js +6 -4
- package/build/schemas/output/product-design-tools.d.ts +160 -0
- package/build/schemas/output/product-design-tools.js +75 -0
- package/build/schemas/output/project-tools.d.ts +1 -217
- package/build/schemas/output/project-tools.js +1 -103
- package/build/schemas/project-tools.d.ts +4 -18
- package/build/schemas/project-tools.js +4 -19
- package/build/schemas/structured-output.d.ts +309 -99
- package/build/schemas/structured-output.js +174 -72
- package/build/schemas/ui-ux-schemas.d.ts +26 -0
- package/build/schemas/ui-ux-schemas.js +26 -0
- package/build/tools/__tests__/add_feature.template.test.d.ts +4 -0
- package/build/tools/__tests__/add_feature.template.test.js +47 -0
- package/build/tools/__tests__/start_bugfix.unit.test.d.ts +4 -0
- package/build/tools/__tests__/start_bugfix.unit.test.js +85 -0
- package/build/tools/__tests__/start_feature.unit.test.d.ts +4 -0
- package/build/tools/__tests__/start_feature.unit.test.js +83 -0
- package/build/tools/__tests__/start_ui.integration.test.js +4 -3
- package/build/tools/__tests__/start_ui.loop.test.d.ts +4 -0
- package/build/tools/__tests__/start_ui.loop.test.js +24 -0
- package/build/tools/__tests__/start_ui.unit.test.js +39 -1
- package/build/tools/add_feature.js +184 -406
- package/build/tools/ask_user.js +18 -5
- package/build/tools/code_review.js +8 -1
- package/build/tools/estimate.js +9 -2
- package/build/tools/fix_bug.js +9 -2
- package/build/tools/gen_mock.js +8 -1
- package/build/tools/gen_prd.d.ts +1 -7
- package/build/tools/gen_prd.js +41 -27
- package/build/tools/gen_prototype.d.ts +1 -7
- package/build/tools/gen_prototype.js +47 -27
- package/build/tools/genapi.js +8 -1
- package/build/tools/genchangelog.js +8 -1
- package/build/tools/gencommit.d.ts +1 -1
- package/build/tools/gencommit.js +49 -18
- package/build/tools/gendoc.js +9 -1
- package/build/tools/genpr.js +8 -1
- package/build/tools/genreadme.js +8 -1
- package/build/tools/gensql.js +8 -1
- package/build/tools/gentest.js +8 -1
- package/build/tools/index.d.ts +0 -3
- package/build/tools/index.js +0 -3
- package/build/tools/interview.d.ts +1 -13
- package/build/tools/interview.js +96 -31
- package/build/tools/perf.js +8 -1
- package/build/tools/refactor.js +8 -1
- package/build/tools/resolve_conflict.js +8 -1
- package/build/tools/security_scan.js +9 -2
- package/build/tools/start_api.js +44 -4
- package/build/tools/start_bugfix.js +377 -15
- package/build/tools/start_doc.js +40 -4
- package/build/tools/start_feature.js +287 -92
- package/build/tools/start_onboard.js +83 -100
- package/build/tools/start_product.d.ts +1 -1
- package/build/tools/start_product.js +183 -6
- package/build/tools/start_ralph.js +51 -2
- package/build/tools/start_refactor.js +39 -4
- package/build/tools/start_release.js +33 -4
- package/build/tools/start_review.js +39 -4
- package/build/tools/start_ui.js +669 -52
- package/build/utils/design-reasoning-engine.d.ts +5 -0
- package/build/utils/design-reasoning-engine.js +85 -5
- package/docs/data/tools.js +308 -478
- package/docs/index.html +1 -1
- package/docs/pages/all-tools.html +37 -22
- package/docs/pages/examples.html +100 -35
- package/docs/pages/getting-started.html +43 -3
- package/docs/pages/migration.html +14 -8
- package/package.json +79 -79
- package/build/lib/analysis-tasks.d.ts +0 -35
- package/build/lib/analysis-tasks.js +0 -788
- package/build/lib/elicitation-helper.d.ts +0 -73
- package/build/lib/elicitation-helper.js +0 -130
- package/build/lib/task-generator.d.ts +0 -11
- package/build/lib/task-generator.js +0 -109
- package/build/lib/template-generator.d.ts +0 -14
- package/build/lib/template-generator.js +0 -62
- package/build/lib/templates/backend-templates.d.ts +0 -8
- package/build/lib/templates/backend-templates.js +0 -26
- package/build/resources/index.d.ts +0 -4
- package/build/resources/index.js +0 -4
- package/build/resources/tool-params-guide.d.ts +0 -571
- package/build/resources/tool-params-guide.js +0 -488
- package/build/tools/analyze_project.d.ts +0 -1
- package/build/tools/analyze_project.js +0 -566
- package/build/tools/check_deps.d.ts +0 -1
- package/build/tools/check_deps.js +0 -213
- package/build/tools/convert.d.ts +0 -13
- package/build/tools/convert.js +0 -599
- package/build/tools/css_order.d.ts +0 -13
- package/build/tools/css_order.js +0 -81
- package/build/tools/debug.d.ts +0 -1
- package/build/tools/debug.js +0 -133
- package/build/tools/design2code.d.ts +0 -20
- package/build/tools/design2code.js +0 -426
- package/build/tools/detect_shell.d.ts +0 -6
- package/build/tools/detect_shell.js +0 -151
- package/build/tools/explain.d.ts +0 -13
- package/build/tools/explain.js +0 -390
- package/build/tools/fix.d.ts +0 -13
- package/build/tools/fix.js +0 -303
- package/build/tools/gen_skill.d.ts +0 -13
- package/build/tools/gen_skill.js +0 -560
- package/build/tools/genui.d.ts +0 -13
- package/build/tools/genui.js +0 -803
- package/build/tools/init_setting.d.ts +0 -13
- package/build/tools/init_setting.js +0 -47
- package/build/tools/split.d.ts +0 -13
- package/build/tools/split.js +0 -599
- package/build/tools/templates/architecture-template.d.ts +0 -5
- package/build/tools/templates/architecture-template.js +0 -42
- package/build/tools/templates/coding-standards-template.d.ts +0 -5
- package/build/tools/templates/coding-standards-template.js +0 -41
- package/build/tools/templates/dependencies-template.d.ts +0 -5
- package/build/tools/templates/dependencies-template.js +0 -38
- package/build/tools/templates/index-template.d.ts +0 -5
- package/build/tools/templates/index-template.js +0 -64
- package/build/tools/templates/tech-stack-template.d.ts +0 -5
- package/build/tools/templates/tech-stack-template.js +0 -35
- package/build/tools/templates/workflows-template.d.ts +0 -5
- package/build/tools/templates/workflows-template.js +0 -31
- package/docs/specs/algorithm-enhancement/roadmap.md +0 -619
- package/docs/specs/project-context-modular/design.md +0 -722
- package/docs/specs/project-context-modular/example-output.md +0 -123
- package/docs/specs/project-context-modular/implementation-v2.md +0 -275
- package/docs/specs/project-context-modular/requirements.md +0 -234
- package/docs/specs/project-context-modular/tasks.md +0 -386
- package/docs/specs/v2.1-planning.md +0 -335
- package/docs/specs/vnext-upgrade/00-OVERVIEW.md +0 -258
- package/docs/specs/vnext-upgrade/BETA_RELEASE_GUIDE.md +0 -328
- package/docs/specs/vnext-upgrade/GITHUB_DISCUSSION_TEMPLATE.md +0 -236
- package/docs/specs/vnext-upgrade/M8.9-PROGRESS-UPDATE.md +0 -248
- package/docs/specs/vnext-upgrade/PROGRESS-SUMMARY.md +0 -195
- package/docs/specs/vnext-upgrade/QUICK_REFERENCE.md +0 -338
- package/docs/specs/vnext-upgrade/README.md +0 -125
- package/docs/specs/vnext-upgrade/STATUS-UPDATE-2026-01-26.md +0 -230
- package/docs/specs/vnext-upgrade/TOOL_CLEANUP.md +0 -343
- package/docs/specs/vnext-upgrade/completed/M1-M2-SUMMARY.md +0 -27
- package/docs/specs/vnext-upgrade/completed/M3_COMPLETION_SUMMARY.md +0 -273
- package/docs/specs/vnext-upgrade/completed/M4-SUMMARY.md +0 -19
- package/docs/specs/vnext-upgrade/completed/M5_COMPLETION_SUMMARY.md +0 -0
- package/docs/specs/vnext-upgrade/completed/M8.1-SUMMARY.md +0 -247
- package/docs/specs/vnext-upgrade/completed/M8.2-SUMMARY.md +0 -296
- package/docs/specs/vnext-upgrade/completed/M8.3-SUMMARY.md +0 -241
- package/docs/specs/vnext-upgrade/completed/M8.3-TEST-SUMMARY.md +0 -216
- package/docs/specs/vnext-upgrade/completed/M8.4-SUMMARY.md +0 -217
- package/docs/specs/vnext-upgrade/completed/M8.4-TEST-SUMMARY.md +0 -198
- package/docs/specs/vnext-upgrade/completed/M8.5-SUMMARY.md +0 -202
- package/docs/specs/vnext-upgrade/completed/M8.5-TEST-SUMMARY.md +0 -223
- package/docs/specs/vnext-upgrade/completed/M8.6-SUMMARY.md +0 -299
- package/docs/specs/vnext-upgrade/completed/M8.8-TEST-SUMMARY.md +0 -216
- package/docs/specs/vnext-upgrade/completed/TOOL-CLEANUP-SUMMARY.md +0 -210
- package/docs/specs/vnext-upgrade/design.md +0 -848
- package/docs/specs/vnext-upgrade/requirements.md +0 -221
- package/docs/specs/vnext-upgrade/tasks/00-INDEX.md +0 -335
- package/docs/specs/vnext-upgrade/tasks/M8.1-SCHEMA-DEFINITION.md +0 -300
- package/docs/specs/vnext-upgrade/tasks/M8.2-P1-TOOLS.md +0 -249
- package/docs/specs/vnext-upgrade/tasks/M8.3-GENERATION-TOOLS.md +0 -49
- package/docs/specs/vnext-upgrade/tasks/M8.4-ORCHESTRATION-TOOLS.md +0 -28
- package/docs/specs/vnext-upgrade/tasks/M8.5-PROJECT-TOOLS.md +0 -29
- package/docs/specs/vnext-upgrade/tasks/M8.6-UI-TOOLS.md +0 -66
- package/docs/specs/vnext-upgrade/tasks/M8.7-HELPER-TOOLS.md +0 -24
- package/docs/specs/vnext-upgrade/tasks/M8.8-INTEGRATION-TESTS.md +0 -90
- package/docs/specs/vnext-upgrade/tasks/M8.9-DOCUMENTATION.md +0 -103
- package/docs/vnext/MCP_2025-11-25_GUIDE.md +0 -276
- package/docs/vnext/vNext-PRD.md +0 -488
package/build/schemas/index.d.ts
CHANGED
|
@@ -91,24 +91,6 @@ export declare const allToolSchemas: ({
|
|
|
91
91
|
readonly required: readonly [];
|
|
92
92
|
readonly additionalProperties: true;
|
|
93
93
|
};
|
|
94
|
-
} | {
|
|
95
|
-
readonly name: "debug";
|
|
96
|
-
readonly description: "当用户遇到错误、需要调试问题时使用。分析错误信息和堆栈跟踪,定位问题根因,提供调试策略和解决方案";
|
|
97
|
-
readonly inputSchema: {
|
|
98
|
-
readonly type: "object";
|
|
99
|
-
readonly properties: {
|
|
100
|
-
readonly error: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
readonly description: "错误信息。可以是错误消息、堆栈跟踪或完整的错误输出";
|
|
103
|
-
};
|
|
104
|
-
readonly context: {
|
|
105
|
-
readonly type: "string";
|
|
106
|
-
readonly description: "相关代码上下文。可选,有助于更准确的分析";
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly required: readonly [];
|
|
110
|
-
readonly additionalProperties: true;
|
|
111
|
-
};
|
|
112
94
|
} | {
|
|
113
95
|
readonly name: "code_review";
|
|
114
96
|
readonly description: "当用户需要审查代码质量、检查代码问题时使用。审查代码的质量、安全性、性能,输出结构化问题清单(severity/category/suggestion)";
|
|
@@ -327,33 +309,6 @@ export declare const allToolSchemas: ({
|
|
|
327
309
|
readonly required: readonly [];
|
|
328
310
|
readonly additionalProperties: true;
|
|
329
311
|
};
|
|
330
|
-
} | {
|
|
331
|
-
readonly name: "check_deps";
|
|
332
|
-
readonly description: "当用户需要检查项目依赖健康度、查找过期依赖时使用。检查依赖版本、安全漏洞、体积,输出升级建议";
|
|
333
|
-
readonly inputSchema: {
|
|
334
|
-
readonly type: "object";
|
|
335
|
-
readonly properties: {};
|
|
336
|
-
readonly required: readonly [];
|
|
337
|
-
readonly additionalProperties: true;
|
|
338
|
-
};
|
|
339
|
-
} | {
|
|
340
|
-
readonly name: "analyze_project";
|
|
341
|
-
readonly description: "当用户需要了解项目结构、分析项目技术栈时使用。分析项目结构、技术栈、架构模式,输出项目全景报告";
|
|
342
|
-
readonly inputSchema: {
|
|
343
|
-
readonly type: "object";
|
|
344
|
-
readonly properties: {
|
|
345
|
-
readonly project_path: {
|
|
346
|
-
readonly type: "string";
|
|
347
|
-
readonly description: "项目路径。可选,默认为当前目录";
|
|
348
|
-
};
|
|
349
|
-
readonly max_depth: {
|
|
350
|
-
readonly type: "number";
|
|
351
|
-
readonly description: "分析深度。可选,默认 5";
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
readonly required: readonly [];
|
|
355
|
-
readonly additionalProperties: true;
|
|
356
|
-
};
|
|
357
312
|
} | {
|
|
358
313
|
readonly name: "init_project_context";
|
|
359
314
|
readonly description: "当用户需要生成项目上下文文档、帮助团队快速上手时使用。生成项目上下文文档(技术栈/架构/编码规范),供后续开发参考";
|
|
@@ -386,6 +341,10 @@ export declare const allToolSchemas: ({
|
|
|
386
341
|
readonly type: "string";
|
|
387
342
|
readonly description: "文档输出目录,默认为 docs";
|
|
388
343
|
};
|
|
344
|
+
readonly template_profile: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)";
|
|
347
|
+
};
|
|
389
348
|
};
|
|
390
349
|
readonly required: readonly [];
|
|
391
350
|
readonly additionalProperties: true;
|
|
@@ -434,13 +393,33 @@ export declare const allToolSchemas: ({
|
|
|
434
393
|
readonly type: "string";
|
|
435
394
|
readonly description: "文档输出目录,默认为 docs";
|
|
436
395
|
};
|
|
396
|
+
readonly template_profile: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)";
|
|
399
|
+
};
|
|
400
|
+
readonly requirements_mode: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly description: "需求模式:steady(默认,直接生成规格)或 loop(需求澄清与补全)";
|
|
403
|
+
};
|
|
404
|
+
readonly loop_max_rounds: {
|
|
405
|
+
readonly type: "number";
|
|
406
|
+
readonly description: "需求 loop 最大轮次(默认 2)";
|
|
407
|
+
};
|
|
408
|
+
readonly loop_question_budget: {
|
|
409
|
+
readonly type: "number";
|
|
410
|
+
readonly description: "每轮最多提问数量(默认 5)";
|
|
411
|
+
};
|
|
412
|
+
readonly loop_assumption_cap: {
|
|
413
|
+
readonly type: "number";
|
|
414
|
+
readonly description: "每轮假设上限(默认 3)";
|
|
415
|
+
};
|
|
437
416
|
};
|
|
438
417
|
readonly required: readonly [];
|
|
439
418
|
readonly additionalProperties: true;
|
|
440
419
|
};
|
|
441
420
|
} | {
|
|
442
421
|
readonly name: "start_bugfix";
|
|
443
|
-
readonly description: "当用户需要完整的 Bug
|
|
422
|
+
readonly description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。";
|
|
444
423
|
readonly inputSchema: {
|
|
445
424
|
readonly type: "object";
|
|
446
425
|
readonly properties: {
|
|
@@ -456,6 +435,26 @@ export declare const allToolSchemas: ({
|
|
|
456
435
|
readonly type: "string";
|
|
457
436
|
readonly description: "相关代码。可选";
|
|
458
437
|
};
|
|
438
|
+
readonly template_profile: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)";
|
|
441
|
+
};
|
|
442
|
+
readonly requirements_mode: {
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly description: "需求模式:steady(默认,直接修复)或 loop(需求澄清与补全)";
|
|
445
|
+
};
|
|
446
|
+
readonly loop_max_rounds: {
|
|
447
|
+
readonly type: "number";
|
|
448
|
+
readonly description: "需求 loop 最大轮次(默认 2)";
|
|
449
|
+
};
|
|
450
|
+
readonly loop_question_budget: {
|
|
451
|
+
readonly type: "number";
|
|
452
|
+
readonly description: "每轮最多提问数量(默认 5)";
|
|
453
|
+
};
|
|
454
|
+
readonly loop_assumption_cap: {
|
|
455
|
+
readonly type: "number";
|
|
456
|
+
readonly description: "每轮假设上限(默认 3)";
|
|
457
|
+
};
|
|
459
458
|
};
|
|
460
459
|
readonly required: readonly [];
|
|
461
460
|
readonly additionalProperties: true;
|
|
@@ -516,7 +515,7 @@ export declare const allToolSchemas: ({
|
|
|
516
515
|
};
|
|
517
516
|
} | {
|
|
518
517
|
readonly name: "start_onboard";
|
|
519
|
-
readonly description: "
|
|
518
|
+
readonly description: "当用户需要快速上手新项目时使用。编排:生成上下文文档。";
|
|
520
519
|
readonly inputSchema: {
|
|
521
520
|
readonly type: "object";
|
|
522
521
|
readonly properties: {
|
|
@@ -19,13 +19,33 @@ export declare const orchestrationToolSchemas: readonly [{
|
|
|
19
19
|
readonly type: "string";
|
|
20
20
|
readonly description: "文档输出目录,默认为 docs";
|
|
21
21
|
};
|
|
22
|
+
readonly template_profile: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)";
|
|
25
|
+
};
|
|
26
|
+
readonly requirements_mode: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly description: "需求模式:steady(默认,直接生成规格)或 loop(需求澄清与补全)";
|
|
29
|
+
};
|
|
30
|
+
readonly loop_max_rounds: {
|
|
31
|
+
readonly type: "number";
|
|
32
|
+
readonly description: "需求 loop 最大轮次(默认 2)";
|
|
33
|
+
};
|
|
34
|
+
readonly loop_question_budget: {
|
|
35
|
+
readonly type: "number";
|
|
36
|
+
readonly description: "每轮最多提问数量(默认 5)";
|
|
37
|
+
};
|
|
38
|
+
readonly loop_assumption_cap: {
|
|
39
|
+
readonly type: "number";
|
|
40
|
+
readonly description: "每轮假设上限(默认 3)";
|
|
41
|
+
};
|
|
22
42
|
};
|
|
23
43
|
readonly required: readonly [];
|
|
24
44
|
readonly additionalProperties: true;
|
|
25
45
|
};
|
|
26
46
|
}, {
|
|
27
47
|
readonly name: "start_bugfix";
|
|
28
|
-
readonly description: "当用户需要完整的 Bug
|
|
48
|
+
readonly description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。";
|
|
29
49
|
readonly inputSchema: {
|
|
30
50
|
readonly type: "object";
|
|
31
51
|
readonly properties: {
|
|
@@ -41,6 +61,26 @@ export declare const orchestrationToolSchemas: readonly [{
|
|
|
41
61
|
readonly type: "string";
|
|
42
62
|
readonly description: "相关代码。可选";
|
|
43
63
|
};
|
|
64
|
+
readonly template_profile: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)";
|
|
67
|
+
};
|
|
68
|
+
readonly requirements_mode: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly description: "需求模式:steady(默认,直接修复)或 loop(需求澄清与补全)";
|
|
71
|
+
};
|
|
72
|
+
readonly loop_max_rounds: {
|
|
73
|
+
readonly type: "number";
|
|
74
|
+
readonly description: "需求 loop 最大轮次(默认 2)";
|
|
75
|
+
};
|
|
76
|
+
readonly loop_question_budget: {
|
|
77
|
+
readonly type: "number";
|
|
78
|
+
readonly description: "每轮最多提问数量(默认 5)";
|
|
79
|
+
};
|
|
80
|
+
readonly loop_assumption_cap: {
|
|
81
|
+
readonly type: "number";
|
|
82
|
+
readonly description: "每轮假设上限(默认 3)";
|
|
83
|
+
};
|
|
44
84
|
};
|
|
45
85
|
readonly required: readonly [];
|
|
46
86
|
readonly additionalProperties: true;
|
|
@@ -101,7 +141,7 @@ export declare const orchestrationToolSchemas: readonly [{
|
|
|
101
141
|
};
|
|
102
142
|
}, {
|
|
103
143
|
readonly name: "start_onboard";
|
|
104
|
-
readonly description: "
|
|
144
|
+
readonly description: "当用户需要快速上手新项目时使用。编排:生成上下文文档。";
|
|
105
145
|
readonly inputSchema: {
|
|
106
146
|
readonly type: "object";
|
|
107
147
|
readonly properties: {
|
|
@@ -20,6 +20,26 @@ export const orchestrationToolSchemas = [
|
|
|
20
20
|
type: "string",
|
|
21
21
|
description: "文档输出目录,默认为 docs",
|
|
22
22
|
},
|
|
23
|
+
template_profile: {
|
|
24
|
+
type: "string",
|
|
25
|
+
description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)",
|
|
26
|
+
},
|
|
27
|
+
requirements_mode: {
|
|
28
|
+
type: "string",
|
|
29
|
+
description: "需求模式:steady(默认,直接生成规格)或 loop(需求澄清与补全)",
|
|
30
|
+
},
|
|
31
|
+
loop_max_rounds: {
|
|
32
|
+
type: "number",
|
|
33
|
+
description: "需求 loop 最大轮次(默认 2)",
|
|
34
|
+
},
|
|
35
|
+
loop_question_budget: {
|
|
36
|
+
type: "number",
|
|
37
|
+
description: "每轮最多提问数量(默认 5)",
|
|
38
|
+
},
|
|
39
|
+
loop_assumption_cap: {
|
|
40
|
+
type: "number",
|
|
41
|
+
description: "每轮假设上限(默认 3)",
|
|
42
|
+
},
|
|
23
43
|
},
|
|
24
44
|
required: [],
|
|
25
45
|
additionalProperties: true,
|
|
@@ -27,7 +47,7 @@ export const orchestrationToolSchemas = [
|
|
|
27
47
|
},
|
|
28
48
|
{
|
|
29
49
|
name: "start_bugfix",
|
|
30
|
-
description: "当用户需要完整的 Bug
|
|
50
|
+
description: "当用户需要完整的 Bug 修复流程时使用。编排:检查上下文→分析定位→修复方案→生成测试。",
|
|
31
51
|
inputSchema: {
|
|
32
52
|
type: "object",
|
|
33
53
|
properties: {
|
|
@@ -43,6 +63,26 @@ export const orchestrationToolSchemas = [
|
|
|
43
63
|
type: "string",
|
|
44
64
|
description: "相关代码。可选",
|
|
45
65
|
},
|
|
66
|
+
template_profile: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "模板档位:auto(默认,自动选择 guided/strict)、guided(普通模型友好)或 strict(结构更紧凑)",
|
|
69
|
+
},
|
|
70
|
+
requirements_mode: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "需求模式:steady(默认,直接修复)或 loop(需求澄清与补全)",
|
|
73
|
+
},
|
|
74
|
+
loop_max_rounds: {
|
|
75
|
+
type: "number",
|
|
76
|
+
description: "需求 loop 最大轮次(默认 2)",
|
|
77
|
+
},
|
|
78
|
+
loop_question_budget: {
|
|
79
|
+
type: "number",
|
|
80
|
+
description: "每轮最多提问数量(默认 5)",
|
|
81
|
+
},
|
|
82
|
+
loop_assumption_cap: {
|
|
83
|
+
type: "number",
|
|
84
|
+
description: "每轮假设上限(默认 3)",
|
|
85
|
+
},
|
|
46
86
|
},
|
|
47
87
|
required: [],
|
|
48
88
|
additionalProperties: true,
|
|
@@ -107,7 +147,7 @@ export const orchestrationToolSchemas = [
|
|
|
107
147
|
},
|
|
108
148
|
{
|
|
109
149
|
name: "start_onboard",
|
|
110
|
-
description: "
|
|
150
|
+
description: "当用户需要快速上手新项目时使用。编排:生成上下文文档。",
|
|
111
151
|
inputSchema: {
|
|
112
152
|
type: "object",
|
|
113
153
|
properties: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 核心开发工具的结构化输出 Schema
|
|
3
|
-
* 包含: code_review,
|
|
3
|
+
* 包含: code_review, fix_bug, gentest, refactor, security_scan, perf
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Code Review Report Schema
|
|
@@ -91,98 +91,6 @@ export declare const CodeReviewReportSchema: {
|
|
|
91
91
|
};
|
|
92
92
|
readonly required: readonly ["summary", "overallScore", "issues"];
|
|
93
93
|
};
|
|
94
|
-
/**
|
|
95
|
-
* Debug Report Schema
|
|
96
|
-
* 用于 debug 工具的结构化输出
|
|
97
|
-
*/
|
|
98
|
-
export declare const DebugReportSchema: {
|
|
99
|
-
readonly type: "object";
|
|
100
|
-
readonly properties: {
|
|
101
|
-
readonly summary: {
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly description: "调试摘要";
|
|
104
|
-
};
|
|
105
|
-
readonly rootCause: {
|
|
106
|
-
readonly type: "string";
|
|
107
|
-
readonly description: "根本原因分析";
|
|
108
|
-
};
|
|
109
|
-
readonly errorType: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
readonly enum: readonly ["syntax", "runtime", "logic", "performance", "memory", "network", "unknown"];
|
|
112
|
-
readonly description: "错误类型";
|
|
113
|
-
};
|
|
114
|
-
readonly location: {
|
|
115
|
-
readonly type: "object";
|
|
116
|
-
readonly properties: {
|
|
117
|
-
readonly file: {
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
};
|
|
120
|
-
readonly line: {
|
|
121
|
-
readonly type: "number";
|
|
122
|
-
};
|
|
123
|
-
readonly column: {
|
|
124
|
-
readonly type: "number";
|
|
125
|
-
};
|
|
126
|
-
readonly function: {
|
|
127
|
-
readonly type: "string";
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
readonly stackTrace: {
|
|
132
|
-
readonly type: "array";
|
|
133
|
-
readonly items: {
|
|
134
|
-
readonly type: "object";
|
|
135
|
-
readonly properties: {
|
|
136
|
-
readonly file: {
|
|
137
|
-
readonly type: "string";
|
|
138
|
-
};
|
|
139
|
-
readonly line: {
|
|
140
|
-
readonly type: "number";
|
|
141
|
-
};
|
|
142
|
-
readonly function: {
|
|
143
|
-
readonly type: "string";
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
readonly debugStrategy: {
|
|
149
|
-
readonly type: "array";
|
|
150
|
-
readonly items: {
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
};
|
|
153
|
-
readonly description: "调试策略";
|
|
154
|
-
};
|
|
155
|
-
readonly solutions: {
|
|
156
|
-
readonly type: "array";
|
|
157
|
-
readonly items: {
|
|
158
|
-
readonly type: "object";
|
|
159
|
-
readonly properties: {
|
|
160
|
-
readonly title: {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
};
|
|
163
|
-
readonly description: {
|
|
164
|
-
readonly type: "string";
|
|
165
|
-
};
|
|
166
|
-
readonly code: {
|
|
167
|
-
readonly type: "string";
|
|
168
|
-
};
|
|
169
|
-
readonly priority: {
|
|
170
|
-
readonly type: "string";
|
|
171
|
-
readonly enum: readonly ["high", "medium", "low"];
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
readonly required: readonly ["title", "description"];
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
readonly relatedIssues: {
|
|
178
|
-
readonly type: "array";
|
|
179
|
-
readonly items: {
|
|
180
|
-
readonly type: "string";
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
readonly required: readonly ["summary", "rootCause", "errorType", "solutions"];
|
|
185
|
-
};
|
|
186
94
|
/**
|
|
187
95
|
* Bug Analysis Schema
|
|
188
96
|
* 用于 fix_bug 工具的结构化输出
|
|
@@ -668,30 +576,6 @@ export interface CodeReviewReport {
|
|
|
668
576
|
testCoverage?: number;
|
|
669
577
|
};
|
|
670
578
|
}
|
|
671
|
-
export interface DebugReport {
|
|
672
|
-
summary: string;
|
|
673
|
-
rootCause: string;
|
|
674
|
-
errorType: 'syntax' | 'runtime' | 'logic' | 'performance' | 'memory' | 'network' | 'unknown';
|
|
675
|
-
location?: {
|
|
676
|
-
file?: string;
|
|
677
|
-
line?: number;
|
|
678
|
-
column?: number;
|
|
679
|
-
function?: string;
|
|
680
|
-
};
|
|
681
|
-
stackTrace?: Array<{
|
|
682
|
-
file?: string;
|
|
683
|
-
line?: number;
|
|
684
|
-
function?: string;
|
|
685
|
-
}>;
|
|
686
|
-
debugStrategy?: string[];
|
|
687
|
-
solutions: Array<{
|
|
688
|
-
title: string;
|
|
689
|
-
description: string;
|
|
690
|
-
code?: string;
|
|
691
|
-
priority?: 'high' | 'medium' | 'low';
|
|
692
|
-
}>;
|
|
693
|
-
relatedIssues?: string[];
|
|
694
|
-
}
|
|
695
579
|
export interface BugAnalysis {
|
|
696
580
|
summary: string;
|
|
697
581
|
bugType: 'functional' | 'performance' | 'security' | 'ui' | 'data' | 'integration';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 核心开发工具的结构化输出 Schema
|
|
3
|
-
* 包含: code_review,
|
|
3
|
+
* 包含: code_review, fix_bug, gentest, refactor, security_scan, perf
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Code Review Report Schema
|
|
@@ -66,65 +66,6 @@ export const CodeReviewReportSchema = {
|
|
|
66
66
|
},
|
|
67
67
|
required: ['summary', 'overallScore', 'issues'],
|
|
68
68
|
};
|
|
69
|
-
/**
|
|
70
|
-
* Debug Report Schema
|
|
71
|
-
* 用于 debug 工具的结构化输出
|
|
72
|
-
*/
|
|
73
|
-
export const DebugReportSchema = {
|
|
74
|
-
type: 'object',
|
|
75
|
-
properties: {
|
|
76
|
-
summary: { type: 'string', description: '调试摘要' },
|
|
77
|
-
rootCause: { type: 'string', description: '根本原因分析' },
|
|
78
|
-
errorType: {
|
|
79
|
-
type: 'string',
|
|
80
|
-
enum: ['syntax', 'runtime', 'logic', 'performance', 'memory', 'network', 'unknown'],
|
|
81
|
-
description: '错误类型',
|
|
82
|
-
},
|
|
83
|
-
location: {
|
|
84
|
-
type: 'object',
|
|
85
|
-
properties: {
|
|
86
|
-
file: { type: 'string' },
|
|
87
|
-
line: { type: 'number' },
|
|
88
|
-
column: { type: 'number' },
|
|
89
|
-
function: { type: 'string' },
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
stackTrace: {
|
|
93
|
-
type: 'array',
|
|
94
|
-
items: {
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: {
|
|
97
|
-
file: { type: 'string' },
|
|
98
|
-
line: { type: 'number' },
|
|
99
|
-
function: { type: 'string' },
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
debugStrategy: {
|
|
104
|
-
type: 'array',
|
|
105
|
-
items: { type: 'string' },
|
|
106
|
-
description: '调试策略',
|
|
107
|
-
},
|
|
108
|
-
solutions: {
|
|
109
|
-
type: 'array',
|
|
110
|
-
items: {
|
|
111
|
-
type: 'object',
|
|
112
|
-
properties: {
|
|
113
|
-
title: { type: 'string' },
|
|
114
|
-
description: { type: 'string' },
|
|
115
|
-
code: { type: 'string' },
|
|
116
|
-
priority: { type: 'string', enum: ['high', 'medium', 'low'] },
|
|
117
|
-
},
|
|
118
|
-
required: ['title', 'description'],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
relatedIssues: {
|
|
122
|
-
type: 'array',
|
|
123
|
-
items: { type: 'string' },
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
required: ['summary', 'rootCause', 'errorType', 'solutions'],
|
|
127
|
-
};
|
|
128
69
|
/**
|
|
129
70
|
* Bug Analysis Schema
|
|
130
71
|
* 用于 fix_bug 工具的结构化输出
|
|
@@ -7,8 +7,9 @@ export * from './generation-tools.js';
|
|
|
7
7
|
export * from './workflow-tools.js';
|
|
8
8
|
export * from './project-tools.js';
|
|
9
9
|
export * from './ui-ux-tools.js';
|
|
10
|
+
export * from './product-design-tools.js';
|
|
10
11
|
export * from './helper-tools.js';
|
|
11
|
-
export { CommitMessageSchema, WorkflowReportSchema, BugFixReportSchema, FeatureReportSchema, UIReportSchema, OnboardingReportSchema, RalphLoopReportSchema, CommitMessage, WorkflowStep, Artifact, WorkflowReport, BugFixReport, FeatureReport, UIReport, OnboardingReport, RalphLoopReport, } from '../structured-output.js';
|
|
12
|
+
export { CommitMessageSchema, WorkflowReportSchema, BugFixReportSchema, FeatureReportSchema, UIReportSchema, OnboardingReportSchema, RalphLoopReportSchema, RequirementsLoopSchema, CommitMessage, WorkflowStep, Artifact, WorkflowReport, BugFixReport, FeatureReport, UIReport, OnboardingReport, RalphLoopReport, RequirementsLoopReport, } from '../structured-output.js';
|
|
12
13
|
/**
|
|
13
14
|
* Schema 映射表
|
|
14
15
|
* 工具名称 -> Schema 对象
|
|
@@ -20,8 +21,10 @@ export declare const SCHEMA_MAP: {
|
|
|
20
21
|
readonly start_ui: "UIReportSchema";
|
|
21
22
|
readonly start_onboard: "OnboardingReportSchema";
|
|
22
23
|
readonly start_ralph: "RalphLoopReportSchema";
|
|
24
|
+
readonly gen_prd: "GenPrdSchema";
|
|
25
|
+
readonly gen_prototype: "GenPrototypeSchema";
|
|
26
|
+
readonly interview: "InterviewReportSchema";
|
|
23
27
|
readonly code_review: "CodeReviewReportSchema";
|
|
24
|
-
readonly debug: "DebugReportSchema";
|
|
25
28
|
readonly fix_bug: "BugAnalysisSchema";
|
|
26
29
|
readonly gentest: "TestSuiteSchema";
|
|
27
30
|
readonly refactor: "RefactorPlanSchema";
|
|
@@ -47,9 +50,7 @@ export declare const SCHEMA_MAP: {
|
|
|
47
50
|
readonly init_project: "ProjectInitSchema";
|
|
48
51
|
readonly init_project_context: "ProjectContextSchema";
|
|
49
52
|
readonly add_feature: "FeatureSpecSchema";
|
|
50
|
-
readonly analyze_project: "ProjectAnalysisSchema";
|
|
51
53
|
readonly estimate: "EstimateSchema";
|
|
52
|
-
readonly check_deps: "DependencyReportSchema";
|
|
53
54
|
readonly split: "SplitPlanSchema";
|
|
54
55
|
readonly resolve_conflict: "ConflictResolutionSchema";
|
|
55
56
|
readonly ui_design_system: "DesignSystemSchema";
|
|
@@ -12,10 +12,12 @@ export * from './workflow-tools.js';
|
|
|
12
12
|
export * from './project-tools.js';
|
|
13
13
|
// UI/UX 工具 (6 个)
|
|
14
14
|
export * from './ui-ux-tools.js';
|
|
15
|
+
// 产品设计工具 (3 个)
|
|
16
|
+
export * from './product-design-tools.js';
|
|
15
17
|
// 辅助工具 (3 个)
|
|
16
18
|
export * from './helper-tools.js';
|
|
17
19
|
// 从主 Schema 文件导出基础 Schema(P0 工具)
|
|
18
|
-
export { CommitMessageSchema, WorkflowReportSchema, BugFixReportSchema, FeatureReportSchema, UIReportSchema, OnboardingReportSchema, RalphLoopReportSchema, } from '../structured-output.js';
|
|
20
|
+
export { CommitMessageSchema, WorkflowReportSchema, BugFixReportSchema, FeatureReportSchema, UIReportSchema, OnboardingReportSchema, RalphLoopReportSchema, RequirementsLoopSchema, } from '../structured-output.js';
|
|
19
21
|
/**
|
|
20
22
|
* Schema 映射表
|
|
21
23
|
* 工具名称 -> Schema 对象
|
|
@@ -28,9 +30,11 @@ export const SCHEMA_MAP = {
|
|
|
28
30
|
start_ui: 'UIReportSchema',
|
|
29
31
|
start_onboard: 'OnboardingReportSchema',
|
|
30
32
|
start_ralph: 'RalphLoopReportSchema',
|
|
33
|
+
gen_prd: 'GenPrdSchema',
|
|
34
|
+
gen_prototype: 'GenPrototypeSchema',
|
|
35
|
+
interview: 'InterviewReportSchema',
|
|
31
36
|
// 核心开发工具
|
|
32
37
|
code_review: 'CodeReviewReportSchema',
|
|
33
|
-
debug: 'DebugReportSchema',
|
|
34
38
|
fix_bug: 'BugAnalysisSchema',
|
|
35
39
|
gentest: 'TestSuiteSchema',
|
|
36
40
|
refactor: 'RefactorPlanSchema',
|
|
@@ -59,9 +63,7 @@ export const SCHEMA_MAP = {
|
|
|
59
63
|
init_project: 'ProjectInitSchema',
|
|
60
64
|
init_project_context: 'ProjectContextSchema',
|
|
61
65
|
add_feature: 'FeatureSpecSchema',
|
|
62
|
-
analyze_project: 'ProjectAnalysisSchema',
|
|
63
66
|
estimate: 'EstimateSchema',
|
|
64
|
-
check_deps: 'DependencyReportSchema',
|
|
65
67
|
split: 'SplitPlanSchema',
|
|
66
68
|
resolve_conflict: 'ConflictResolutionSchema',
|
|
67
69
|
// UI/UX 工具
|