feat: Update CoreML device support and server controls

- Replace 'mps' with 'coreml' as the identifier for Apple CoreML Execution Provider across the codebase.
- Remove Apple chip generation checks and ensure CoreML is available on all macOS arm64 devices.
- Adjust ONNX Runtime session creation to use default CoreML configurations without forcing 'MLProgram'.
- Implement support for MoGe-2 to utilize CoreML with static input shape requirements.
- Enhance server panel to display restart and stop controls consistently across running states, including 'BUSY'.
- Update UI tests to verify new behavior for server controls and cached model display.
- Bump blendjob dependency version to 0.1.16 in packaging tests and configurations.
This commit is contained in:
2026-09-02 10:50:02 +08:00
parent 7f6e47432e
commit 5a011b3b57
24 changed files with 619 additions and 117 deletions

View File

@@ -0,0 +1,27 @@
## Why
Server 处于 Busy 时仍然是 Running,但当前面板会隐藏重启和停止按钮,导致用户在任务执行期间无法直接管理 Server 生命周期。Running 的控制入口应保持一致,不应受 Busy、等待或其他运行中子状态影响。
## What Changes
- Server 只要处于 Running,就显示重启和停止按钮。
- Busy、等待及其他运行中子状态继续显示各自的状态信息,但不再隐藏生命周期控制按钮。
- Cached 列表包含多个模型时,每个模型换行显示,避免单行内容过长。
- 补充 UI 测试,覆盖运行中状态的按钮可见性与 Cached 列表布局。
## Capabilities
### New Capabilities
- `server-lifecycle-controls`: 规定 Server 在所有 Running 子状态下提供一致的重启与停止入口。
- `server-cache-display`: 规定 Server 面板中 Cached 模型列表的分行展示行为。
### Modified Capabilities
无。
## Impact
- `src/anyimage/panel.py` 中 Server 状态与控制按钮的展示逻辑。
- Blender Add-on UI 测试。
- 不改变 Server API、状态协议或依赖。