feat: add ASRX processor config support

新增:
- ASRX 處理器配置
- ToolSelector 支持 ASRX 工具

工具優先級:
1. swift (priority=0, enabled=true) - Apple Vision
2. rust (priority=1, enabled=false) - 待實現
3. python (priority=2, enabled=true) - 備用

配置:
- processor_tools.json 新增 asrx 配置
- tool_selector.rs 支持 asrx_swift, rust_asrx, python

目的:
- 為未來 Rust ASRX 實現預留接口
- 統一處理器配置架構
This commit is contained in:
Accusys
2026-09-28 01:57:35 +08:00
parent 0af9082aa9
commit 9003aa0548
2 changed files with 40 additions and 0 deletions
+16
View File
@@ -108,6 +108,22 @@ impl ToolSelector {
executor.rust_binary_path("rust_asr")
}
// ASRX processor tools
("asrx", "swift") => {
let swift_path = std::path::Path::new(
"/Users/accusys/momentry_core/scripts/swift_processors/.build/release/asrx_swift"
);
if swift_path.exists() { Some(swift_path.to_path_buf()) } else { None }
}
("asrx", "rust") => {
// Future: Rust ASRX implementation
executor.rust_binary_path("rust_asrx")
}
("asrx", "python") => {
let script = executor.script_path("asrx_processor.py");
if script.exists() { Some(script) } else { None }
}
// OCR processor tools
("ocr", "swift") => {
let swift_path = std::path::Path::new(