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,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 辅助工具的结构化输出 Schema
|
|
3
|
+
* 包含: detect_shell, init_setting, gen_skill
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shell Detection Schema
|
|
7
|
+
* 用于 detect_shell 工具的结构化输出
|
|
8
|
+
*/
|
|
9
|
+
export const ShellDetectionSchema = {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
summary: { type: 'string' },
|
|
13
|
+
shell: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: ['bash', 'zsh', 'fish', 'powershell', 'cmd', 'sh', 'unknown'],
|
|
16
|
+
description: '检测到的 Shell 类型',
|
|
17
|
+
},
|
|
18
|
+
version: { type: 'string', description: 'Shell 版本' },
|
|
19
|
+
os: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
enum: ['linux', 'macos', 'windows', 'unknown'],
|
|
22
|
+
description: '操作系统',
|
|
23
|
+
},
|
|
24
|
+
features: {
|
|
25
|
+
type: 'array',
|
|
26
|
+
items: { type: 'string' },
|
|
27
|
+
description: 'Shell 特性',
|
|
28
|
+
},
|
|
29
|
+
configFiles: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
items: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
path: { type: 'string' },
|
|
35
|
+
exists: { type: 'boolean' },
|
|
36
|
+
purpose: { type: 'string' },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
recommendations: {
|
|
41
|
+
type: 'array',
|
|
42
|
+
items: { type: 'string' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
required: ['summary', 'shell', 'os'],
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Setting Init Schema
|
|
49
|
+
* 用于 init_setting 工具的结构化输出
|
|
50
|
+
*/
|
|
51
|
+
export const SettingInitSchema = {
|
|
52
|
+
type: 'object',
|
|
53
|
+
properties: {
|
|
54
|
+
summary: { type: 'string' },
|
|
55
|
+
settingsPath: { type: 'string', description: '设置文件路径' },
|
|
56
|
+
settings: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
description: '推荐的设置',
|
|
59
|
+
additionalProperties: true,
|
|
60
|
+
},
|
|
61
|
+
applied: {
|
|
62
|
+
type: 'array',
|
|
63
|
+
items: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: {
|
|
66
|
+
key: { type: 'string' },
|
|
67
|
+
value: { type: 'string' },
|
|
68
|
+
reason: { type: 'string' },
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
nextSteps: {
|
|
73
|
+
type: 'array',
|
|
74
|
+
items: { type: 'string' },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
required: ['summary', 'settingsPath', 'settings'],
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Skill Doc Schema
|
|
81
|
+
* 用于 gen_skill 工具的结构化输出
|
|
82
|
+
*/
|
|
83
|
+
export const SkillDocSchema = {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
summary: { type: 'string' },
|
|
87
|
+
scope: {
|
|
88
|
+
type: 'string',
|
|
89
|
+
enum: ['all', 'single'],
|
|
90
|
+
description: '生成范围',
|
|
91
|
+
},
|
|
92
|
+
skills: {
|
|
93
|
+
type: 'array',
|
|
94
|
+
items: {
|
|
95
|
+
type: 'object',
|
|
96
|
+
properties: {
|
|
97
|
+
toolName: { type: 'string' },
|
|
98
|
+
title: { type: 'string' },
|
|
99
|
+
description: { type: 'string' },
|
|
100
|
+
category: { type: 'string' },
|
|
101
|
+
useCases: {
|
|
102
|
+
type: 'array',
|
|
103
|
+
items: { type: 'string' },
|
|
104
|
+
},
|
|
105
|
+
examples: {
|
|
106
|
+
type: 'array',
|
|
107
|
+
items: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
scenario: { type: 'string' },
|
|
111
|
+
input: { type: 'string' },
|
|
112
|
+
output: { type: 'string' },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
parameters: {
|
|
117
|
+
type: 'array',
|
|
118
|
+
items: {
|
|
119
|
+
type: 'object',
|
|
120
|
+
properties: {
|
|
121
|
+
name: { type: 'string' },
|
|
122
|
+
type: { type: 'string' },
|
|
123
|
+
required: { type: 'boolean' },
|
|
124
|
+
description: { type: 'string' },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
outputPath: { type: 'string', description: '输出路径' },
|
|
132
|
+
format: {
|
|
133
|
+
type: 'string',
|
|
134
|
+
enum: ['markdown', 'json'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
required: ['summary', 'scope', 'skills'],
|
|
138
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 结构化输出 Schema 索引
|
|
3
|
+
* 统一导出所有工具的结构化输出 Schema 和类型定义
|
|
4
|
+
*/
|
|
5
|
+
export * from './core-tools.js';
|
|
6
|
+
export * from './generation-tools.js';
|
|
7
|
+
export * from './workflow-tools.js';
|
|
8
|
+
export * from './project-tools.js';
|
|
9
|
+
export * from './ui-ux-tools.js';
|
|
10
|
+
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
|
+
/**
|
|
13
|
+
* Schema 映射表
|
|
14
|
+
* 工具名称 -> Schema 对象
|
|
15
|
+
*/
|
|
16
|
+
export declare const SCHEMA_MAP: {
|
|
17
|
+
readonly gencommit: "CommitMessageSchema";
|
|
18
|
+
readonly start_feature: "FeatureReportSchema";
|
|
19
|
+
readonly start_bugfix: "BugFixReportSchema";
|
|
20
|
+
readonly start_ui: "UIReportSchema";
|
|
21
|
+
readonly start_onboard: "OnboardingReportSchema";
|
|
22
|
+
readonly start_ralph: "RalphLoopReportSchema";
|
|
23
|
+
readonly code_review: "CodeReviewReportSchema";
|
|
24
|
+
readonly debug: "DebugReportSchema";
|
|
25
|
+
readonly fix_bug: "BugAnalysisSchema";
|
|
26
|
+
readonly gentest: "TestSuiteSchema";
|
|
27
|
+
readonly refactor: "RefactorPlanSchema";
|
|
28
|
+
readonly security_scan: "SecurityReportSchema";
|
|
29
|
+
readonly perf: "PerformanceReportSchema";
|
|
30
|
+
readonly gendoc: "DocumentationSchema";
|
|
31
|
+
readonly genapi: "APIDocumentationSchema";
|
|
32
|
+
readonly gensql: "SQLQuerySchema";
|
|
33
|
+
readonly genreadme: "ReadmeSchema";
|
|
34
|
+
readonly genui: "UIComponentSchema";
|
|
35
|
+
readonly gen_mock: "MockDataSchema";
|
|
36
|
+
readonly genchangelog: "ChangelogSchema";
|
|
37
|
+
readonly genpr: "PullRequestSchema";
|
|
38
|
+
readonly fix: "CodeFixSchema";
|
|
39
|
+
readonly explain: "ExplanationSchema";
|
|
40
|
+
readonly convert: "ConversionSchema";
|
|
41
|
+
readonly css_order: "CSSOrderSchema";
|
|
42
|
+
readonly start_review: "ReviewWorkflowSchema";
|
|
43
|
+
readonly start_release: "ReleaseWorkflowSchema";
|
|
44
|
+
readonly start_refactor: "RefactorWorkflowSchema";
|
|
45
|
+
readonly start_api: "APIWorkflowSchema";
|
|
46
|
+
readonly start_doc: "DocWorkflowSchema";
|
|
47
|
+
readonly init_project: "ProjectInitSchema";
|
|
48
|
+
readonly init_project_context: "ProjectContextSchema";
|
|
49
|
+
readonly add_feature: "FeatureSpecSchema";
|
|
50
|
+
readonly analyze_project: "ProjectAnalysisSchema";
|
|
51
|
+
readonly estimate: "EstimateSchema";
|
|
52
|
+
readonly check_deps: "DependencyReportSchema";
|
|
53
|
+
readonly split: "SplitPlanSchema";
|
|
54
|
+
readonly resolve_conflict: "ConflictResolutionSchema";
|
|
55
|
+
readonly ui_design_system: "DesignSystemSchema";
|
|
56
|
+
readonly ui_search: "UISearchResultSchema";
|
|
57
|
+
readonly sync_ui_data: "SyncReportSchema";
|
|
58
|
+
readonly design2code: "Design2CodeSchema";
|
|
59
|
+
readonly init_component_catalog: "ComponentCatalogSchema";
|
|
60
|
+
readonly render_ui: "RenderResultSchema";
|
|
61
|
+
readonly detect_shell: "ShellDetectionSchema";
|
|
62
|
+
readonly init_setting: "SettingInitSchema";
|
|
63
|
+
readonly gen_skill: "SkillDocSchema";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* 获取工具的 Schema 名称
|
|
67
|
+
*/
|
|
68
|
+
export declare function getSchemaName(toolName: string): string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* 检查工具是否支持结构化输出
|
|
71
|
+
*/
|
|
72
|
+
export declare function supportsStructuredOutput(toolName: string): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* 获取所有支持结构化输出的工具列表
|
|
75
|
+
*/
|
|
76
|
+
export declare function getSupportedTools(): string[];
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 结构化输出 Schema 索引
|
|
3
|
+
* 统一导出所有工具的结构化输出 Schema 和类型定义
|
|
4
|
+
*/
|
|
5
|
+
// 核心开发工具 (7 个)
|
|
6
|
+
export * from './core-tools.js';
|
|
7
|
+
// 代码生成工具 (12 个)
|
|
8
|
+
export * from './generation-tools.js';
|
|
9
|
+
// 工作流编排工具 (5 个)
|
|
10
|
+
export * from './workflow-tools.js';
|
|
11
|
+
// 项目管理工具 (8 个)
|
|
12
|
+
export * from './project-tools.js';
|
|
13
|
+
// UI/UX 工具 (6 个)
|
|
14
|
+
export * from './ui-ux-tools.js';
|
|
15
|
+
// 辅助工具 (3 个)
|
|
16
|
+
export * from './helper-tools.js';
|
|
17
|
+
// 从主 Schema 文件导出基础 Schema(P0 工具)
|
|
18
|
+
export { CommitMessageSchema, WorkflowReportSchema, BugFixReportSchema, FeatureReportSchema, UIReportSchema, OnboardingReportSchema, RalphLoopReportSchema, } from '../structured-output.js';
|
|
19
|
+
/**
|
|
20
|
+
* Schema 映射表
|
|
21
|
+
* 工具名称 -> Schema 对象
|
|
22
|
+
*/
|
|
23
|
+
export const SCHEMA_MAP = {
|
|
24
|
+
// P0 工具(已完成)
|
|
25
|
+
gencommit: 'CommitMessageSchema',
|
|
26
|
+
start_feature: 'FeatureReportSchema',
|
|
27
|
+
start_bugfix: 'BugFixReportSchema',
|
|
28
|
+
start_ui: 'UIReportSchema',
|
|
29
|
+
start_onboard: 'OnboardingReportSchema',
|
|
30
|
+
start_ralph: 'RalphLoopReportSchema',
|
|
31
|
+
// 核心开发工具
|
|
32
|
+
code_review: 'CodeReviewReportSchema',
|
|
33
|
+
debug: 'DebugReportSchema',
|
|
34
|
+
fix_bug: 'BugAnalysisSchema',
|
|
35
|
+
gentest: 'TestSuiteSchema',
|
|
36
|
+
refactor: 'RefactorPlanSchema',
|
|
37
|
+
security_scan: 'SecurityReportSchema',
|
|
38
|
+
perf: 'PerformanceReportSchema',
|
|
39
|
+
// 代码生成工具
|
|
40
|
+
gendoc: 'DocumentationSchema',
|
|
41
|
+
genapi: 'APIDocumentationSchema',
|
|
42
|
+
gensql: 'SQLQuerySchema',
|
|
43
|
+
genreadme: 'ReadmeSchema',
|
|
44
|
+
genui: 'UIComponentSchema',
|
|
45
|
+
gen_mock: 'MockDataSchema',
|
|
46
|
+
genchangelog: 'ChangelogSchema',
|
|
47
|
+
genpr: 'PullRequestSchema',
|
|
48
|
+
fix: 'CodeFixSchema',
|
|
49
|
+
explain: 'ExplanationSchema',
|
|
50
|
+
convert: 'ConversionSchema',
|
|
51
|
+
css_order: 'CSSOrderSchema',
|
|
52
|
+
// 工作流编排工具
|
|
53
|
+
start_review: 'ReviewWorkflowSchema',
|
|
54
|
+
start_release: 'ReleaseWorkflowSchema',
|
|
55
|
+
start_refactor: 'RefactorWorkflowSchema',
|
|
56
|
+
start_api: 'APIWorkflowSchema',
|
|
57
|
+
start_doc: 'DocWorkflowSchema',
|
|
58
|
+
// 项目管理工具
|
|
59
|
+
init_project: 'ProjectInitSchema',
|
|
60
|
+
init_project_context: 'ProjectContextSchema',
|
|
61
|
+
add_feature: 'FeatureSpecSchema',
|
|
62
|
+
analyze_project: 'ProjectAnalysisSchema',
|
|
63
|
+
estimate: 'EstimateSchema',
|
|
64
|
+
check_deps: 'DependencyReportSchema',
|
|
65
|
+
split: 'SplitPlanSchema',
|
|
66
|
+
resolve_conflict: 'ConflictResolutionSchema',
|
|
67
|
+
// UI/UX 工具
|
|
68
|
+
ui_design_system: 'DesignSystemSchema',
|
|
69
|
+
ui_search: 'UISearchResultSchema',
|
|
70
|
+
sync_ui_data: 'SyncReportSchema',
|
|
71
|
+
design2code: 'Design2CodeSchema',
|
|
72
|
+
init_component_catalog: 'ComponentCatalogSchema',
|
|
73
|
+
render_ui: 'RenderResultSchema',
|
|
74
|
+
// 辅助工具
|
|
75
|
+
detect_shell: 'ShellDetectionSchema',
|
|
76
|
+
init_setting: 'SettingInitSchema',
|
|
77
|
+
gen_skill: 'SkillDocSchema',
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* 获取工具的 Schema 名称
|
|
81
|
+
*/
|
|
82
|
+
export function getSchemaName(toolName) {
|
|
83
|
+
return SCHEMA_MAP[toolName];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 检查工具是否支持结构化输出
|
|
87
|
+
*/
|
|
88
|
+
export function supportsStructuredOutput(toolName) {
|
|
89
|
+
return toolName in SCHEMA_MAP;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 获取所有支持结构化输出的工具列表
|
|
93
|
+
*/
|
|
94
|
+
export function getSupportedTools() {
|
|
95
|
+
return Object.keys(SCHEMA_MAP);
|
|
96
|
+
}
|