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
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* 用于 MCP 2025-11-25 协议的 structuredContent
|
|
4
4
|
*
|
|
5
5
|
* 注意:其他工具的 Schema 已按功能分类到 src/schemas/output/ 目录:
|
|
6
|
-
* - core-tools.ts: 核心开发工具 (code_review,
|
|
6
|
+
* - core-tools.ts: 核心开发工具 (code_review, fix_bug, gentest, refactor, security_scan, perf)
|
|
7
7
|
* - generation-tools.ts: 代码生成工具 (gendoc, genapi, gensql, genreadme, genui, gen_mock, etc.)
|
|
8
8
|
* - workflow-tools.ts: 工作流编排工具 (start_review, start_release, start_refactor, start_api, start_doc)
|
|
9
|
-
* - project-tools.ts: 项目管理工具 (init_project, add_feature,
|
|
9
|
+
* - project-tools.ts: 项目管理工具 (init_project, add_feature, estimate, etc.)
|
|
10
10
|
* - ui-ux-tools.ts: UI/UX 工具 (ui_design_system, ui_search, design2code, etc.)
|
|
11
11
|
* - helper-tools.ts: 辅助工具 (detect_shell, init_setting, gen_skill)
|
|
12
12
|
*
|
|
13
13
|
* 使用方式:
|
|
14
|
-
* import { CodeReviewReportSchema
|
|
14
|
+
* import { CodeReviewReportSchema } from '@/schemas/output';
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* Commit Message Schema
|
|
@@ -144,6 +144,69 @@ export declare const WorkflowReportSchema: {
|
|
|
144
144
|
};
|
|
145
145
|
readonly required: readonly ["summary", "status", "steps"];
|
|
146
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* Execution Plan Schema
|
|
149
|
+
* 用于 start_* 编排工具的执行计划(metadata.plan)
|
|
150
|
+
*/
|
|
151
|
+
export declare const ExecutionPlanSchema: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly mode: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly enum: readonly ["delegated"];
|
|
157
|
+
readonly description: "执行模式(delegated = AI 按步骤调用工具)";
|
|
158
|
+
};
|
|
159
|
+
readonly steps: {
|
|
160
|
+
readonly type: "array";
|
|
161
|
+
readonly description: "执行步骤";
|
|
162
|
+
readonly items: {
|
|
163
|
+
readonly type: "object";
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly id: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly description: "步骤 ID";
|
|
168
|
+
};
|
|
169
|
+
readonly tool: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly description: "工具名称(无工具时可省略)";
|
|
172
|
+
};
|
|
173
|
+
readonly action: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly description: "手动操作描述(无工具时使用)";
|
|
176
|
+
};
|
|
177
|
+
readonly args: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly description: "工具参数";
|
|
180
|
+
};
|
|
181
|
+
readonly outputs: {
|
|
182
|
+
readonly type: "array";
|
|
183
|
+
readonly items: {
|
|
184
|
+
readonly type: "string";
|
|
185
|
+
};
|
|
186
|
+
readonly description: "预期产物";
|
|
187
|
+
};
|
|
188
|
+
readonly when: {
|
|
189
|
+
readonly type: "string";
|
|
190
|
+
readonly description: "执行条件(可选)";
|
|
191
|
+
};
|
|
192
|
+
readonly dependsOn: {
|
|
193
|
+
readonly type: "array";
|
|
194
|
+
readonly items: {
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
};
|
|
197
|
+
readonly description: "依赖步骤";
|
|
198
|
+
};
|
|
199
|
+
readonly note: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly description: "补充说明";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly required: readonly ["id"];
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
readonly required: readonly ["mode", "steps"];
|
|
209
|
+
};
|
|
147
210
|
/**
|
|
148
211
|
* Bug Fix Report Schema
|
|
149
212
|
* 用于 start_bugfix 的特定字段
|
|
@@ -489,6 +552,188 @@ export declare const RalphLoopReportSchema: {
|
|
|
489
552
|
};
|
|
490
553
|
readonly required: readonly ["loopPolicy", "iterations", "stopConditions"];
|
|
491
554
|
};
|
|
555
|
+
/**
|
|
556
|
+
* Requirements Loop Schema
|
|
557
|
+
* 用于需求澄清与补全的结构化输出
|
|
558
|
+
*/
|
|
559
|
+
export declare const RequirementsLoopSchema: {
|
|
560
|
+
readonly type: "object";
|
|
561
|
+
readonly properties: {
|
|
562
|
+
readonly mode: {
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly enum: readonly ["loop"];
|
|
565
|
+
readonly description: "需求循环模式标记";
|
|
566
|
+
};
|
|
567
|
+
readonly round: {
|
|
568
|
+
readonly type: "number";
|
|
569
|
+
readonly minimum: 1;
|
|
570
|
+
readonly description: "当前轮次";
|
|
571
|
+
};
|
|
572
|
+
readonly maxRounds: {
|
|
573
|
+
readonly type: "number";
|
|
574
|
+
readonly minimum: 1;
|
|
575
|
+
readonly description: "最大轮次";
|
|
576
|
+
};
|
|
577
|
+
readonly questionBudget: {
|
|
578
|
+
readonly type: "number";
|
|
579
|
+
readonly minimum: 0;
|
|
580
|
+
readonly description: "本轮问题配额";
|
|
581
|
+
};
|
|
582
|
+
readonly assumptionCap: {
|
|
583
|
+
readonly type: "number";
|
|
584
|
+
readonly minimum: 0;
|
|
585
|
+
readonly description: "本轮假设上限";
|
|
586
|
+
};
|
|
587
|
+
readonly requirements: {
|
|
588
|
+
readonly type: "array";
|
|
589
|
+
readonly description: "需求条目列表";
|
|
590
|
+
readonly items: {
|
|
591
|
+
readonly type: "object";
|
|
592
|
+
readonly properties: {
|
|
593
|
+
readonly id: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
readonly description: "需求 ID";
|
|
596
|
+
};
|
|
597
|
+
readonly title: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
readonly description: "需求标题";
|
|
600
|
+
};
|
|
601
|
+
readonly description: {
|
|
602
|
+
readonly type: "string";
|
|
603
|
+
readonly description: "需求描述";
|
|
604
|
+
};
|
|
605
|
+
readonly source: {
|
|
606
|
+
readonly type: "string";
|
|
607
|
+
readonly enum: readonly ["User", "Derived", "Assumption"];
|
|
608
|
+
readonly description: "来源标记";
|
|
609
|
+
};
|
|
610
|
+
readonly acceptance: {
|
|
611
|
+
readonly type: "array";
|
|
612
|
+
readonly items: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
};
|
|
615
|
+
readonly description: "验收标准(EARS)";
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
readonly required: readonly ["id", "title", "description", "source", "acceptance"];
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
readonly openQuestions: {
|
|
622
|
+
readonly type: "array";
|
|
623
|
+
readonly description: "待确认问题";
|
|
624
|
+
readonly items: {
|
|
625
|
+
readonly type: "object";
|
|
626
|
+
readonly properties: {
|
|
627
|
+
readonly id: {
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
};
|
|
630
|
+
readonly question: {
|
|
631
|
+
readonly type: "string";
|
|
632
|
+
};
|
|
633
|
+
readonly context: {
|
|
634
|
+
readonly type: "string";
|
|
635
|
+
};
|
|
636
|
+
readonly required: {
|
|
637
|
+
readonly type: "boolean";
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
readonly required: readonly ["id", "question"];
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly assumptions: {
|
|
644
|
+
readonly type: "array";
|
|
645
|
+
readonly description: "待确认假设";
|
|
646
|
+
readonly items: {
|
|
647
|
+
readonly type: "object";
|
|
648
|
+
readonly properties: {
|
|
649
|
+
readonly id: {
|
|
650
|
+
readonly type: "string";
|
|
651
|
+
};
|
|
652
|
+
readonly statement: {
|
|
653
|
+
readonly type: "string";
|
|
654
|
+
};
|
|
655
|
+
readonly risk: {
|
|
656
|
+
readonly type: "string";
|
|
657
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
658
|
+
};
|
|
659
|
+
readonly needsConfirmation: {
|
|
660
|
+
readonly type: "boolean";
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
readonly required: readonly ["id", "statement", "risk", "needsConfirmation"];
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
readonly delta: {
|
|
667
|
+
readonly type: "object";
|
|
668
|
+
readonly description: "本轮变更摘要";
|
|
669
|
+
readonly properties: {
|
|
670
|
+
readonly added: {
|
|
671
|
+
readonly type: "array";
|
|
672
|
+
readonly items: {
|
|
673
|
+
readonly type: "string";
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
readonly modified: {
|
|
677
|
+
readonly type: "array";
|
|
678
|
+
readonly items: {
|
|
679
|
+
readonly type: "string";
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
readonly removed: {
|
|
683
|
+
readonly type: "array";
|
|
684
|
+
readonly items: {
|
|
685
|
+
readonly type: "string";
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
readonly required: readonly ["added", "modified", "removed"];
|
|
690
|
+
};
|
|
691
|
+
readonly validation: {
|
|
692
|
+
readonly type: "object";
|
|
693
|
+
readonly description: "结构化自检结果";
|
|
694
|
+
readonly properties: {
|
|
695
|
+
readonly passed: {
|
|
696
|
+
readonly type: "boolean";
|
|
697
|
+
};
|
|
698
|
+
readonly missingFields: {
|
|
699
|
+
readonly type: "array";
|
|
700
|
+
readonly items: {
|
|
701
|
+
readonly type: "string";
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
readonly warnings: {
|
|
705
|
+
readonly type: "array";
|
|
706
|
+
readonly items: {
|
|
707
|
+
readonly type: "string";
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly required: readonly ["passed", "missingFields"];
|
|
712
|
+
};
|
|
713
|
+
readonly stopConditions: {
|
|
714
|
+
readonly type: "object";
|
|
715
|
+
readonly description: "结束条件状态";
|
|
716
|
+
readonly properties: {
|
|
717
|
+
readonly ready: {
|
|
718
|
+
readonly type: "boolean";
|
|
719
|
+
};
|
|
720
|
+
readonly reasons: {
|
|
721
|
+
readonly type: "array";
|
|
722
|
+
readonly items: {
|
|
723
|
+
readonly type: "string";
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
readonly required: readonly ["ready", "reasons"];
|
|
728
|
+
};
|
|
729
|
+
readonly metadata: {
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly description: "额外元数据(如 delegated plan)";
|
|
732
|
+
readonly additionalProperties: true;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
readonly required: readonly ["mode", "round", "maxRounds", "requirements", "openQuestions", "assumptions", "delta", "validation", "stopConditions"];
|
|
736
|
+
};
|
|
492
737
|
/**
|
|
493
738
|
* TypeScript 类型定义
|
|
494
739
|
*/
|
|
@@ -522,6 +767,20 @@ export interface WorkflowReport {
|
|
|
522
767
|
warnings?: string[];
|
|
523
768
|
metadata?: Record<string, any>;
|
|
524
769
|
}
|
|
770
|
+
export interface PlanStep {
|
|
771
|
+
id: string;
|
|
772
|
+
tool?: string;
|
|
773
|
+
action?: string;
|
|
774
|
+
args?: Record<string, any>;
|
|
775
|
+
outputs?: string[];
|
|
776
|
+
when?: string;
|
|
777
|
+
dependsOn?: string[];
|
|
778
|
+
note?: string;
|
|
779
|
+
}
|
|
780
|
+
export interface ExecutionPlan {
|
|
781
|
+
mode: 'delegated';
|
|
782
|
+
steps: PlanStep[];
|
|
783
|
+
}
|
|
525
784
|
export interface BugFixReport extends WorkflowReport {
|
|
526
785
|
rootCause: string;
|
|
527
786
|
fixPlan: string;
|
|
@@ -603,6 +862,53 @@ export interface RalphLoopReport extends WorkflowReport {
|
|
|
603
862
|
message?: string;
|
|
604
863
|
}>;
|
|
605
864
|
}
|
|
865
|
+
export interface RequirementItem {
|
|
866
|
+
id: string;
|
|
867
|
+
title: string;
|
|
868
|
+
description: string;
|
|
869
|
+
source: 'User' | 'Derived' | 'Assumption';
|
|
870
|
+
acceptance: string[];
|
|
871
|
+
}
|
|
872
|
+
export interface OpenQuestion {
|
|
873
|
+
id: string;
|
|
874
|
+
question: string;
|
|
875
|
+
context?: string;
|
|
876
|
+
required?: boolean;
|
|
877
|
+
}
|
|
878
|
+
export interface RequirementAssumption {
|
|
879
|
+
id: string;
|
|
880
|
+
statement: string;
|
|
881
|
+
risk: 'low' | 'medium' | 'high';
|
|
882
|
+
needsConfirmation: boolean;
|
|
883
|
+
}
|
|
884
|
+
export interface RequirementsDelta {
|
|
885
|
+
added: string[];
|
|
886
|
+
modified: string[];
|
|
887
|
+
removed: string[];
|
|
888
|
+
}
|
|
889
|
+
export interface RequirementsValidation {
|
|
890
|
+
passed: boolean;
|
|
891
|
+
missingFields: string[];
|
|
892
|
+
warnings?: string[];
|
|
893
|
+
}
|
|
894
|
+
export interface RequirementsStopConditions {
|
|
895
|
+
ready: boolean;
|
|
896
|
+
reasons: string[];
|
|
897
|
+
}
|
|
898
|
+
export interface RequirementsLoopReport {
|
|
899
|
+
mode: 'loop';
|
|
900
|
+
round: number;
|
|
901
|
+
maxRounds: number;
|
|
902
|
+
questionBudget?: number;
|
|
903
|
+
assumptionCap?: number;
|
|
904
|
+
requirements: RequirementItem[];
|
|
905
|
+
openQuestions: OpenQuestion[];
|
|
906
|
+
assumptions: RequirementAssumption[];
|
|
907
|
+
delta: RequirementsDelta;
|
|
908
|
+
validation: RequirementsValidation;
|
|
909
|
+
stopConditions: RequirementsStopConditions;
|
|
910
|
+
metadata?: Record<string, any>;
|
|
911
|
+
}
|
|
606
912
|
/**
|
|
607
913
|
* Code Review Report Schema
|
|
608
914
|
* 用于 code_review 工具的结构化输出
|
|
@@ -695,102 +1001,6 @@ export declare const CodeReviewReportSchema: {
|
|
|
695
1001
|
};
|
|
696
1002
|
readonly required: readonly ["summary", "overallScore", "issues"];
|
|
697
1003
|
};
|
|
698
|
-
/**
|
|
699
|
-
* Debug Report Schema
|
|
700
|
-
* 用于 debug 工具的结构化输出
|
|
701
|
-
*/
|
|
702
|
-
export declare const DebugReportSchema: {
|
|
703
|
-
readonly type: "object";
|
|
704
|
-
readonly properties: {
|
|
705
|
-
readonly summary: {
|
|
706
|
-
readonly type: "string";
|
|
707
|
-
readonly description: "调试摘要";
|
|
708
|
-
};
|
|
709
|
-
readonly rootCause: {
|
|
710
|
-
readonly type: "string";
|
|
711
|
-
readonly description: "根本原因分析";
|
|
712
|
-
};
|
|
713
|
-
readonly errorType: {
|
|
714
|
-
readonly type: "string";
|
|
715
|
-
readonly enum: readonly ["syntax", "runtime", "logic", "performance", "memory", "network", "unknown"];
|
|
716
|
-
readonly description: "错误类型";
|
|
717
|
-
};
|
|
718
|
-
readonly location: {
|
|
719
|
-
readonly type: "object";
|
|
720
|
-
readonly description: "错误位置";
|
|
721
|
-
readonly properties: {
|
|
722
|
-
readonly file: {
|
|
723
|
-
readonly type: "string";
|
|
724
|
-
};
|
|
725
|
-
readonly line: {
|
|
726
|
-
readonly type: "number";
|
|
727
|
-
};
|
|
728
|
-
readonly column: {
|
|
729
|
-
readonly type: "number";
|
|
730
|
-
};
|
|
731
|
-
readonly function: {
|
|
732
|
-
readonly type: "string";
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
readonly stackTrace: {
|
|
737
|
-
readonly type: "array";
|
|
738
|
-
readonly description: "堆栈跟踪";
|
|
739
|
-
readonly items: {
|
|
740
|
-
readonly type: "object";
|
|
741
|
-
readonly properties: {
|
|
742
|
-
readonly file: {
|
|
743
|
-
readonly type: "string";
|
|
744
|
-
};
|
|
745
|
-
readonly line: {
|
|
746
|
-
readonly type: "number";
|
|
747
|
-
};
|
|
748
|
-
readonly function: {
|
|
749
|
-
readonly type: "string";
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
};
|
|
753
|
-
};
|
|
754
|
-
readonly debugStrategy: {
|
|
755
|
-
readonly type: "array";
|
|
756
|
-
readonly description: "调试策略";
|
|
757
|
-
readonly items: {
|
|
758
|
-
readonly type: "string";
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
readonly solutions: {
|
|
762
|
-
readonly type: "array";
|
|
763
|
-
readonly description: "解决方案列表";
|
|
764
|
-
readonly items: {
|
|
765
|
-
readonly type: "object";
|
|
766
|
-
readonly properties: {
|
|
767
|
-
readonly title: {
|
|
768
|
-
readonly type: "string";
|
|
769
|
-
};
|
|
770
|
-
readonly description: {
|
|
771
|
-
readonly type: "string";
|
|
772
|
-
};
|
|
773
|
-
readonly code: {
|
|
774
|
-
readonly type: "string";
|
|
775
|
-
};
|
|
776
|
-
readonly priority: {
|
|
777
|
-
readonly type: "string";
|
|
778
|
-
readonly enum: readonly ["high", "medium", "low"];
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
readonly required: readonly ["title", "description"];
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
readonly relatedIssues: {
|
|
785
|
-
readonly type: "array";
|
|
786
|
-
readonly description: "相关问题";
|
|
787
|
-
readonly items: {
|
|
788
|
-
readonly type: "string";
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
};
|
|
792
|
-
readonly required: readonly ["summary", "rootCause", "errorType", "solutions"];
|
|
793
|
-
};
|
|
794
1004
|
/**
|
|
795
1005
|
* Bug Analysis Schema
|
|
796
1006
|
* 用于 fix_bug 工具的结构化输出
|