sloth-d2c-mcp 1.0.4-beta74 → 1.0.4-beta75

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.
@@ -79,16 +79,13 @@ export function buildComponentMappingPrompt(componentMappings, componentContexts
79
79
  : '无';
80
80
  const libInfo = component.lib ? ` (来自 ${component.lib})` : ' (项目组件)';
81
81
  const descInfo = component.description ? `\n- **描述**: ${component.description}` : '';
82
- // 构建导入方式文案
83
- const importType = component.importType || 'default'; // 默认为 default 导入
84
- const importTypeText = importType === 'named' ? '具名导入' : '默认导入';
85
82
  prompt += `### ${component.name}${libInfo}\n`;
86
83
  prompt += `- **文件路径**: ${component.path}\n`;
87
- prompt += `- **导入方式**: ${importTypeText}\n`;
84
+ prompt += `- **导入方式**: ${component.import}\n`;
88
85
  prompt += `- **Props**: ${propsInfo}${descInfo}\n\n`;
89
86
  });
90
87
  prompt +=
91
- '**重要**:在最终写入代码时,请严格按照上述"导入方式"来编写 import 语句。"具名导入"表示 import { 组件名 } from \'路径\',"默认导入"表示 import 组件名 from \'路径\'。请根据设计稿需求合理传递 props 参数。请按照项目路径规范合理使用相对路径和路径别名引入组件。\n';
88
+ '**重要**:在最终写入代码时,请根据设计稿需求合理传递 props 参数。请按照项目路径规范合理引入组件。\n';
92
89
  return prompt;
93
90
  }
94
91
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
- "buildTime": "2025-12-02T08:10:20.565Z",
2
+ "buildTime": "2025-12-02T10:30:59.228Z",
3
3
  "mode": "build",
4
4
  "pages": {
5
5
  "main": {