v0.3.0
English
Highlights
- Fix
import_model: now actually opens thebaseScenePathbase scene before importing the model (previously the base scene was ignored). - Fix
set_camera: no longer crashes when the camera object cannot be obtained — it falls back to thelux-level API automatically. - Temp file cleanup: the runner now deletes its temporary
args/resultJSON after every run, sowork/tmpno longer grows unbounded. - Clearer
call_variantssemantics: the first callback that does not throw wins (returningNonecounts as success); only when all fail does it raise. - Test suites added: 25 Vitest (TypeScript) + 5 Python tests covering the fixes above as regression guards.
- Version bumped
0.2.1→0.3.0.
Commit: 3009564
中文说明
主要更新
- 修复
import_model:现在会真正打开baseScenePath指定的基础场景,再导入模型(之前基础场景被忽略了)。 - 修复
set_camera:拿不到相机对象时不再崩溃,会自动回退到lux级 API。 - 临时文件清理:每次运行后自动删除临时的
args/resultJSON,work/tmp不再无限膨胀。 - 澄清
call_variants语义:第一个不抛异常的调用即生效(返回None也算成功),全部失败才报错。 - 新增测试套件:25 个 Vitest(TypeScript)+ 5 个 Python 测试,为上述修复提供回归保护。
- 版本
0.2.1→0.3.0。
对应 commit:3009564