v0.5.7 - Fix non-Windows CLI startup
v0.5.7
修复
- 修复 Linux/macOS 等非 Windows 环境下启动 CLI 失败的问题。
- 原因是
workspace.py顶层导入了 Windows 专属的os.startfile,导致在 Linux 上执行uv run lc --help时直
接抛出ImportError。 - 现在改为按平台选择打开方式:
- Windows:
os.startfile - macOS:
open - Linux:
xdg-open
- Windows:
文档
- README 当前版本更新为
v0.5.7。 - 环境要求从仅 Windows 更新为 Windows / Linux / macOS。
- 补充
lc solve生成模板后会尝试打开solution.py的跨平台说明。
验证
uv run lc --helpuv run ruff check src pyproject.toml testsuv run pytest
测试结果:12 passed