mcp-probe-kit 1.11.0 → 1.15.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 +215 -21
- package/build/index.js +21 -1
- package/build/schemas/index.d.ts +234 -0
- package/build/schemas/index.js +4 -0
- package/build/schemas/interview-tools.d.ts +72 -0
- package/build/schemas/interview-tools.js +64 -0
- package/build/schemas/orchestration-tools.d.ts +58 -0
- package/build/schemas/orchestration-tools.js +59 -0
- package/build/schemas/ui-ux-schemas.d.ts +248 -0
- package/build/schemas/ui-ux-schemas.js +147 -0
- package/build/tools/__tests__/start_ui.integration.test.d.ts +6 -0
- package/build/tools/__tests__/start_ui.integration.test.js +179 -0
- package/build/tools/__tests__/start_ui.property.test.d.ts +6 -0
- package/build/tools/__tests__/start_ui.property.test.js +263 -0
- package/build/tools/__tests__/start_ui.unit.test.d.ts +6 -0
- package/build/tools/__tests__/start_ui.unit.test.js +109 -0
- package/build/tools/ask_user.d.ts +17 -0
- package/build/tools/ask_user.js +124 -0
- package/build/tools/index.d.ts +7 -0
- package/build/tools/index.js +9 -0
- package/build/tools/init_component_catalog.d.ts +22 -0
- package/build/tools/init_component_catalog.js +809 -0
- package/build/tools/interview.d.ts +18 -0
- package/build/tools/interview.js +418 -0
- package/build/tools/render_ui.d.ts +22 -0
- package/build/tools/render_ui.js +384 -0
- package/build/tools/start_ralph.d.ts +16 -0
- package/build/tools/start_ralph.js +779 -0
- package/build/tools/start_ui.d.ts +25 -0
- package/build/tools/start_ui.js +299 -0
- package/build/tools/ui-ux-tools.d.ts +116 -0
- package/build/tools/ui-ux-tools.js +756 -0
- package/build/tools/ui-ux-tools.test.d.ts +6 -0
- package/build/tools/ui-ux-tools.test.js +132 -0
- package/build/utils/ascii-box-formatter.d.ts +29 -0
- package/build/utils/ascii-box-formatter.js +195 -0
- package/build/utils/bm25.d.ts +60 -0
- package/build/utils/bm25.js +139 -0
- package/build/utils/cache-manager.d.ts +65 -0
- package/build/utils/cache-manager.js +156 -0
- package/build/utils/design-docs-generator.d.ts +1 -0
- package/build/utils/design-docs-generator.js +1 -0
- package/build/utils/design-reasoning-engine.d.ts +158 -0
- package/build/utils/design-reasoning-engine.js +363 -0
- package/build/utils/design-system-json-formatter.d.ts +41 -0
- package/build/utils/design-system-json-formatter.js +165 -0
- package/build/utils/ui-data-loader.d.ts +56 -0
- package/build/utils/ui-data-loader.js +164 -0
- package/build/utils/ui-search-engine.d.ts +57 -0
- package/build/utils/ui-search-engine.js +123 -0
- package/build/utils/ui-sync.d.ts +13 -0
- package/build/utils/ui-sync.js +241 -0
- package/docs/BEST_PRACTICES.md +456 -6
- package/docs/HOW_TO_TRIGGER.md +195 -64
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.html +158 -63
- package/docs/MCP-Probe-Kit-/344/275/277/347/224/250/346/211/213/345/206/214.md +872 -34
- package/package.json +18 -5
- package/docs/HOW_TO_TRIGGER.html +0 -243
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 统一 UI 开发编排工具
|
|
3
|
+
*
|
|
4
|
+
* 一键完成整个 UI 开发流程:
|
|
5
|
+
* 1. 检查设计规范
|
|
6
|
+
* 2. 检查/生成组件目录
|
|
7
|
+
* 3. 搜索/生成 UI 模板
|
|
8
|
+
* 4. 渲染最终代码
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* 统一 UI 开发编排工具
|
|
12
|
+
*/
|
|
13
|
+
export declare function startUi(args: any): Promise<{
|
|
14
|
+
content: {
|
|
15
|
+
type: string;
|
|
16
|
+
text: string;
|
|
17
|
+
}[];
|
|
18
|
+
isError: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
content: {
|
|
21
|
+
type: string;
|
|
22
|
+
text: string;
|
|
23
|
+
}[];
|
|
24
|
+
isError?: undefined;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 统一 UI 开发编排工具
|
|
3
|
+
*
|
|
4
|
+
* 一键完成整个 UI 开发流程:
|
|
5
|
+
* 1. 检查设计规范
|
|
6
|
+
* 2. 检查/生成组件目录
|
|
7
|
+
* 3. 搜索/生成 UI 模板
|
|
8
|
+
* 4. 渲染最终代码
|
|
9
|
+
*/
|
|
10
|
+
import { parseArgs, getString } from "../utils/parseArgs.js";
|
|
11
|
+
import { getReasoningEngine } from "./ui-ux-tools.js";
|
|
12
|
+
const PROMPT_TEMPLATE = `# 快速开始
|
|
13
|
+
|
|
14
|
+
**职责说明**: 本工具仅提供执行指导,不执行实际操作。请按顺序调用以下 MCP 工具。
|
|
15
|
+
|
|
16
|
+
执行以下工具:
|
|
17
|
+
|
|
18
|
+
1. 检查 \`docs/design-system.md\` 是否存在,不存在则调用 \`ui_design_system --product_type="SaaS" --stack="{framework}"\`
|
|
19
|
+
2. 检查 \`docs/component-catalog.json\` 是否存在,不存在则调用 \`init_component_catalog\`
|
|
20
|
+
3. \`ui_search --mode=template --query="{description}"\`
|
|
21
|
+
4. \`render_ui --template="docs/ui/{templateName}.json" --framework="{framework}"\`
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 步骤 1: 生成设计系统(如不存在)✅
|
|
26
|
+
|
|
27
|
+
**检查**: 查看 \`docs/design-system.md\` 是否存在
|
|
28
|
+
|
|
29
|
+
**如果不存在,调用工具**: \`ui_design_system\`
|
|
30
|
+
**参数**:
|
|
31
|
+
\`\`\`json
|
|
32
|
+
{
|
|
33
|
+
"product_type": "{description}",
|
|
34
|
+
"stack": "{framework}",
|
|
35
|
+
"description": "{description}"
|
|
36
|
+
}
|
|
37
|
+
\`\`\`
|
|
38
|
+
|
|
39
|
+
**预期输出**: \`docs/design-system.json\` 和 \`docs/design-system.md\`
|
|
40
|
+
**失败处理**: 检查 docs 目录是否存在,确保有写入权限
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 步骤 2: 生成组件目录(如不存在)🔄
|
|
45
|
+
|
|
46
|
+
**检查**: 查看 \`docs/component-catalog.json\` 是否存在
|
|
47
|
+
|
|
48
|
+
**如果不存在,调用工具**: \`init_component_catalog\`
|
|
49
|
+
**参数**: 无
|
|
50
|
+
|
|
51
|
+
**预期输出**: \`docs/component-catalog.json\`
|
|
52
|
+
**失败处理**: 确保步骤 1 的设计系统文件已生成
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 步骤 3: 搜索 UI 模板 🔍
|
|
57
|
+
|
|
58
|
+
**工具**: \`ui_search\`
|
|
59
|
+
**参数**:
|
|
60
|
+
\`\`\`json
|
|
61
|
+
{
|
|
62
|
+
"mode": "template",
|
|
63
|
+
"query": "{description}"
|
|
64
|
+
}
|
|
65
|
+
\`\`\`
|
|
66
|
+
|
|
67
|
+
**预期输出**: 匹配的模板列表(可能为空)
|
|
68
|
+
**失败处理**: 如果没有找到模板,继续到步骤 4 使用默认模板
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 步骤 4: 渲染最终代码 🎨
|
|
73
|
+
|
|
74
|
+
**工具**: \`render_ui\`
|
|
75
|
+
**参数**:
|
|
76
|
+
\`\`\`json
|
|
77
|
+
{
|
|
78
|
+
"template": "docs/ui/{templateName}.json",
|
|
79
|
+
"framework": "{framework}"
|
|
80
|
+
}
|
|
81
|
+
\`\`\`
|
|
82
|
+
|
|
83
|
+
**预期输出**: 完整的 {framework} 组件代码
|
|
84
|
+
**失败处理**: 如果模板不存在,工具会使用默认模板生成代码
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 高级选项
|
|
89
|
+
|
|
90
|
+
### 自定义设计系统
|
|
91
|
+
编辑 \`docs/design-system.json\` 修改颜色、字体等,然后重新运行。
|
|
92
|
+
|
|
93
|
+
### 自定义组件
|
|
94
|
+
编辑 \`docs/component-catalog.json\` 添加新组件定义。
|
|
95
|
+
|
|
96
|
+
### 常见问题
|
|
97
|
+
|
|
98
|
+
**Q: 设计系统文件已存在,还需要重新生成吗?**
|
|
99
|
+
A: 不需要。如果文件已存在,直接跳过步骤 1。
|
|
100
|
+
|
|
101
|
+
**Q: 如何使用自定义模板?**
|
|
102
|
+
A: 在 \`docs/ui/\` 目录创建 JSON 模板文件,然后在步骤 4 中指定模板路径。
|
|
103
|
+
`;
|
|
104
|
+
/**
|
|
105
|
+
* 统一 UI 开发编排工具
|
|
106
|
+
*/
|
|
107
|
+
export async function startUi(args) {
|
|
108
|
+
try {
|
|
109
|
+
// 智能参数解析
|
|
110
|
+
const parsedArgs = parseArgs(args, {
|
|
111
|
+
defaultValues: {
|
|
112
|
+
description: "",
|
|
113
|
+
framework: "react",
|
|
114
|
+
template: "",
|
|
115
|
+
mode: "manual",
|
|
116
|
+
},
|
|
117
|
+
primaryField: "description",
|
|
118
|
+
fieldAliases: {
|
|
119
|
+
description: ["desc", "ui", "page", "需求", "描述"],
|
|
120
|
+
framework: ["stack", "lib", "框架"],
|
|
121
|
+
template: ["name", "模板名"],
|
|
122
|
+
mode: ["模式"],
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
const description = getString(parsedArgs.description);
|
|
126
|
+
const framework = getString(parsedArgs.framework) || "react";
|
|
127
|
+
const mode = getString(parsedArgs.mode) || "manual";
|
|
128
|
+
let templateName = getString(parsedArgs.template);
|
|
129
|
+
// 验证 mode 参数
|
|
130
|
+
const validModes = ["auto", "manual"];
|
|
131
|
+
if (mode && !validModes.includes(mode)) {
|
|
132
|
+
return {
|
|
133
|
+
content: [
|
|
134
|
+
{
|
|
135
|
+
type: "text",
|
|
136
|
+
text: `❌ 无效的模式: ${mode}
|
|
137
|
+
|
|
138
|
+
**有效选项**: auto, manual
|
|
139
|
+
|
|
140
|
+
**示例**:
|
|
141
|
+
\`\`\`
|
|
142
|
+
start_ui "登录页面" --mode=manual
|
|
143
|
+
start_ui "用户列表" --mode=auto
|
|
144
|
+
\`\`\`
|
|
145
|
+
`,
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
isError: true,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// 自动模式实现
|
|
152
|
+
if (mode === "auto") {
|
|
153
|
+
// 1. 获取推理引擎
|
|
154
|
+
const engine = await getReasoningEngine();
|
|
155
|
+
// 2. 构造设计请求
|
|
156
|
+
const request = {
|
|
157
|
+
productType: description, // 初始尝试用描述作为类型
|
|
158
|
+
description: description,
|
|
159
|
+
stack: framework,
|
|
160
|
+
};
|
|
161
|
+
// 3. 生成推荐
|
|
162
|
+
const recommendation = engine.generateRecommendation(request);
|
|
163
|
+
// 4. 提取推理结果
|
|
164
|
+
const inferredProductType = recommendation.target;
|
|
165
|
+
const inferredKeywords = recommendation.style.keywords.join(", ");
|
|
166
|
+
const inferredStack = framework; // 保持用户指定的技术栈,或默认为 react
|
|
167
|
+
// 5. 生成智能执行计划
|
|
168
|
+
const smartPlan = `# 🚀 智能 UI 开发计划
|
|
169
|
+
|
|
170
|
+
基于您的描述 "**${description}**",AI 引擎已为您规划了最佳开发路径。
|
|
171
|
+
|
|
172
|
+
## 🧠 智能分析结果
|
|
173
|
+
|
|
174
|
+
- **产品类型**: ${inferredProductType}
|
|
175
|
+
- **推荐风格**: ${recommendation.style.primary}
|
|
176
|
+
- **关键特性**: ${inferredKeywords}
|
|
177
|
+
- **技术栈**: ${inferredStack}
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 📋 执行步骤(已自动优化参数)
|
|
182
|
+
|
|
183
|
+
请按顺序执行以下命令:
|
|
184
|
+
|
|
185
|
+
### 1. 生成设计系统 🎨
|
|
186
|
+
\`\`\`bash
|
|
187
|
+
ui_design_system --product_type="${inferredProductType}" --stack="${inferredStack}" --keywords="${inferredKeywords}" --description="${description}"
|
|
188
|
+
\`\`\`
|
|
189
|
+
|
|
190
|
+
### 2. 生成组件目录 📦
|
|
191
|
+
\`\`\`bash
|
|
192
|
+
init_component_catalog
|
|
193
|
+
\`\`\`
|
|
194
|
+
|
|
195
|
+
### 3. 生成 UI 模板 📄
|
|
196
|
+
\`\`\`bash
|
|
197
|
+
# 搜索现有模板或生成新模板
|
|
198
|
+
ui_search --mode=template --query="${templateName || description}"
|
|
199
|
+
\`\`\`
|
|
200
|
+
|
|
201
|
+
### 4. 渲染代码 💻
|
|
202
|
+
\`\`\`bash
|
|
203
|
+
render_ui docs/ui/${templateName || 'template'}.json --framework="${inferredStack}"
|
|
204
|
+
\`\`\`
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## 💡 为什么选择这个方案?
|
|
209
|
+
|
|
210
|
+
${recommendation.reasoning}
|
|
211
|
+
`;
|
|
212
|
+
return {
|
|
213
|
+
content: [
|
|
214
|
+
{
|
|
215
|
+
type: "text",
|
|
216
|
+
text: smartPlan,
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
// 如果没有提供模板名,从描述中生成
|
|
222
|
+
if (!templateName && description) {
|
|
223
|
+
// 简单的命名转换:登录页面 → login-page
|
|
224
|
+
// 移除特殊字符,只保留字母、数字、中文和连字符
|
|
225
|
+
templateName = description
|
|
226
|
+
.toLowerCase()
|
|
227
|
+
.replace(/页面|表单|组件/g, '')
|
|
228
|
+
.trim()
|
|
229
|
+
.replace(/[^\w\u4e00-\u9fa5-]/g, '-')
|
|
230
|
+
.replace(/-+/g, '-')
|
|
231
|
+
.replace(/^-|-$/g, '');
|
|
232
|
+
}
|
|
233
|
+
if (!description) {
|
|
234
|
+
return {
|
|
235
|
+
content: [
|
|
236
|
+
{
|
|
237
|
+
type: "text",
|
|
238
|
+
text: `❌ 缺少必要参数
|
|
239
|
+
|
|
240
|
+
**用法**:
|
|
241
|
+
\`\`\`
|
|
242
|
+
start_ui <描述> [--framework=react|vue|html]
|
|
243
|
+
\`\`\`
|
|
244
|
+
|
|
245
|
+
**示例**:
|
|
246
|
+
\`\`\`
|
|
247
|
+
start_ui "登录页面"
|
|
248
|
+
start_ui "用户列表" --framework=vue
|
|
249
|
+
start_ui "设置页面" --framework=react
|
|
250
|
+
\`\`\`
|
|
251
|
+
|
|
252
|
+
**提示**:
|
|
253
|
+
- 确保已运行 \`ui_design_system\` 生成设计系统
|
|
254
|
+
- 组件目录会自动生成(如果不存在)
|
|
255
|
+
`,
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
isError: true,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
// 转义 JSON 字符串中的特殊字符
|
|
262
|
+
const escapeJson = (str) => {
|
|
263
|
+
return str
|
|
264
|
+
.replace(/\\/g, '\\\\')
|
|
265
|
+
.replace(/"/g, '\\"')
|
|
266
|
+
.replace(/\n/g, '\\n')
|
|
267
|
+
.replace(/\r/g, '\\r')
|
|
268
|
+
.replace(/\t/g, '\\t');
|
|
269
|
+
};
|
|
270
|
+
// 安全的字符串替换,避免 $& 等特殊字符被解释为替换模式
|
|
271
|
+
const safeReplace = (template, placeholder, value) => {
|
|
272
|
+
return template.split(placeholder).join(value);
|
|
273
|
+
};
|
|
274
|
+
let guide = PROMPT_TEMPLATE;
|
|
275
|
+
guide = safeReplace(guide, '{description}', escapeJson(description));
|
|
276
|
+
guide = safeReplace(guide, '{framework}', framework);
|
|
277
|
+
guide = safeReplace(guide, '{templateName}', templateName || 'ui-template');
|
|
278
|
+
return {
|
|
279
|
+
content: [
|
|
280
|
+
{
|
|
281
|
+
type: "text",
|
|
282
|
+
text: guide,
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
289
|
+
return {
|
|
290
|
+
content: [
|
|
291
|
+
{
|
|
292
|
+
type: "text",
|
|
293
|
+
text: `❌ UI 开发流程失败: ${errorMessage}`,
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
isError: true,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI/UX Pro Max 工具集(重构版)
|
|
3
|
+
*
|
|
4
|
+
* 提供智能设计系统生成、UI/UX 数据搜索和数据同步功能
|
|
5
|
+
* 使用模板类实现文档生成的原子化
|
|
6
|
+
*/
|
|
7
|
+
import { DesignReasoningEngine, DesignSystemRecommendation } from '../utils/design-reasoning-engine.js';
|
|
8
|
+
/**
|
|
9
|
+
* 文件索引接口
|
|
10
|
+
* 定义需要创建的文件及其元数据
|
|
11
|
+
*/
|
|
12
|
+
export interface FileIndex {
|
|
13
|
+
path: string;
|
|
14
|
+
purpose: string;
|
|
15
|
+
order: number;
|
|
16
|
+
required: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 创作指导接口
|
|
20
|
+
* 为 AI 提供文档创作的主题和提示,而非具体内容
|
|
21
|
+
*/
|
|
22
|
+
export interface CreationGuidance {
|
|
23
|
+
principles: string[];
|
|
24
|
+
interaction: string[];
|
|
25
|
+
layout: string[];
|
|
26
|
+
config: string[];
|
|
27
|
+
tips: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* UI 设计系统输出接口(重构版)
|
|
31
|
+
* 返回核心数据和创作指导,而非预生成的文档内容
|
|
32
|
+
*/
|
|
33
|
+
export interface UIDesignSystemOutput {
|
|
34
|
+
asciiBox: string;
|
|
35
|
+
designSystemJson: object;
|
|
36
|
+
fileIndex: FileIndex[];
|
|
37
|
+
creationGuidance: CreationGuidance;
|
|
38
|
+
recommendation: DesignSystemRecommendation;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 生成文件索引
|
|
42
|
+
* 定义需要创建的文件列表及其创建顺序
|
|
43
|
+
*
|
|
44
|
+
* @returns FileIndex[] - 按创建顺序排列的文件索引数组
|
|
45
|
+
*
|
|
46
|
+
* Requirements: 3.1, 3.2, 3.3, 3.4
|
|
47
|
+
*/
|
|
48
|
+
export declare function generateFileIndex(): FileIndex[];
|
|
49
|
+
/**
|
|
50
|
+
* 生成创作指导
|
|
51
|
+
* 为 AI 提供文档创作的主题和提示,而非具体内容
|
|
52
|
+
*
|
|
53
|
+
* @param productType - 产品类型(如 "SaaS", "E-commerce")
|
|
54
|
+
* @param stack - 技术栈(如 "react", "vue", "nextjs")
|
|
55
|
+
* @returns CreationGuidance - 包含各类文档的主题列表和创作提示
|
|
56
|
+
*
|
|
57
|
+
* Requirements: 4.2, 4.3, 4.4, 4.5, 5.3, 5.4
|
|
58
|
+
*/
|
|
59
|
+
export declare function generateCreationGuidance(productType: string, stack?: string): CreationGuidance;
|
|
60
|
+
/**
|
|
61
|
+
* 获取推理引擎实例
|
|
62
|
+
*/
|
|
63
|
+
export declare function getReasoningEngine(): Promise<DesignReasoningEngine>;
|
|
64
|
+
/**
|
|
65
|
+
* UI 设计系统生成工具(重构版 - AI 驱动的文档生成)
|
|
66
|
+
*
|
|
67
|
+
* 不再使用硬编码模板,而是返回核心数据和创作指导,
|
|
68
|
+
* 让 AI 根据推荐自由创建文档内容
|
|
69
|
+
*
|
|
70
|
+
* Requirements: 1.1, 1.2, 1.3, 1.4, 2.1, 2.2, 2.3, 2.5, 6.1-6.6
|
|
71
|
+
*/
|
|
72
|
+
export declare function uiDesignSystem(args: any): Promise<{
|
|
73
|
+
content: {
|
|
74
|
+
type: string;
|
|
75
|
+
text: string;
|
|
76
|
+
}[];
|
|
77
|
+
isError?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
content: {
|
|
80
|
+
type: string;
|
|
81
|
+
text: string;
|
|
82
|
+
}[];
|
|
83
|
+
isError: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* UI 搜索工具(增强版)
|
|
87
|
+
*/
|
|
88
|
+
export declare function uiSearch(args: any): Promise<{
|
|
89
|
+
content: {
|
|
90
|
+
type: string;
|
|
91
|
+
text: string;
|
|
92
|
+
}[];
|
|
93
|
+
isError?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
content: {
|
|
96
|
+
type: string;
|
|
97
|
+
text: string;
|
|
98
|
+
}[];
|
|
99
|
+
isError: boolean;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* UI 数据同步工具
|
|
103
|
+
*/
|
|
104
|
+
export declare function syncUiData(args: any): Promise<{
|
|
105
|
+
content: {
|
|
106
|
+
type: string;
|
|
107
|
+
text: string;
|
|
108
|
+
}[];
|
|
109
|
+
isError?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
content: {
|
|
112
|
+
type: string;
|
|
113
|
+
text: string;
|
|
114
|
+
}[];
|
|
115
|
+
isError: boolean;
|
|
116
|
+
}>;
|