@icyfenix-dmla/cli 2026.5.2-2234 → 2026.5.2-2258

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icyfenix-dmla/cli",
3
- "version": "2026.5.2-2234",
3
+ "version": "2026.5.2-2258",
4
4
  "description": "DMLA 沙箱服务命令行工具",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -417,10 +417,12 @@ export async function runPythonCode(code, useGpu = false, imageOverride = null,
417
417
  console.log(`[Sandbox] 提示: 运行 'dmla data' 创建数据目录`)
418
418
  }
419
419
 
420
- // 挂载共享模块
420
+ // 挂载共享模块到 /workspace/shared(而非 site-packages)
421
+ // 原因:PYTHONPATH=/workspace,这样 Python 可以直接导入 shared.xxx
422
+ // 避免 Windows Docker 的 site-packages 路径兼容性问题
421
423
  if (useMount && sharedModulesPath && fs.existsSync(sharedModulesPath)) {
422
- binds.push(`${sharedModulesPath}:/usr/local/lib/python3.11/site-packages/shared:ro`)
423
- console.log(`[Sandbox] 共享模块 Volume Mount: ${sharedModulesPath}`)
424
+ binds.push(`${sharedModulesPath}:/workspace/shared:ro`)
425
+ console.log(`[Sandbox] 共享模块 Volume Mount: ${sharedModulesPath} -> /workspace/shared`)
424
426
  } else if (useMount && sharedModulesPath) {
425
427
  console.warn(`[Sandbox] 警告: 共享模块目录不存在: ${sharedModulesPath}`)
426
428
  }
package/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "buildTime": "2026-05-02T14:35:49.471Z",
3
- "cliVersion": "2026.5.2-2234"
2
+ "buildTime": "2026-05-02T14:58:54.734Z",
3
+ "cliVersion": "2026.5.2-2258"
4
4
  }