sloth-d2c-mcp 1.0.4-beta83 → 1.0.4-beta84

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.
@@ -100,6 +100,8 @@ mcpServer.tool('d2c_figma', 'Convert Figma Design File to Code', {
100
100
  const rootRes = await mcpServer.server.listRoots();
101
101
  Logger.log('获取根目录:', rootRes);
102
102
  root = rootRes.roots[0]?.uri?.slice(7) || './';
103
+ // 兼容window下roots返回的路径是url编码的
104
+ root = decodeURIComponent(root);
103
105
  // 设置 fileManager 的工作目录根路径
104
106
  fileManager.setWorkspaceRoot(root);
105
107
  }
@@ -531,6 +533,8 @@ mcpServer.tool('mark_components', 'Mark and save components to project component
531
533
  const rootRes = await mcpServer.server.listRoots();
532
534
  Logger.log('获取根目录:', rootRes);
533
535
  root = rootRes.roots[0]?.uri?.slice(7) || './';
536
+ // 兼容window下roots返回的路径是url编码的
537
+ root = decodeURIComponent(root);
534
538
  // 设置 fileManager 的工作目录根路径
535
539
  fileManager.setWorkspaceRoot(root);
536
540
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "buildTime": "2025-12-24T13:36:17.450Z",
2
+ "buildTime": "2025-12-25T13:17:35.078Z",
3
3
  "mode": "build",
4
4
  "pages": {
5
5
  "main": {