refactor(agent, shipping): 简化代理模型并完善订单抽取业务

- 移除 Agent 的 exposure_mode 与 internal_executor 相关逻辑,清理关联的过滤、序列化代码
- 删除废弃的 AgentRuntimeBinding 模型及其依赖
- 新增订单抽取上传批次、请求快照等数据库迁移与业务逻辑
- 修复附件完整性检测、订单抽取状态映射问题
- 更新多语言错误文案与前端单元测试配置
- 清理平台配置中不再使用的暴露模式配置
This commit is contained in:
hugo committed 2026-07-28 20:25:48 +08:00
1 parent 1f3ecb87b7
commit 61ac6403c4
159 files changed
+12883 -5099

No files matched your search

+25 -8
View File
@@ -41,13 +41,13 @@
"shippingOrderExtractionRuns": {
"eyebrow": "唯讀執行診斷",
"title": "識別任務",
"subtitle": "用於排查非同步訂單識別的運行、重試嘗試與脫敏節點生命週期;不顯示訂單正文、提示詞、輸入輸出或錯誤堆疊。",
"subtitle": "用於排查非同步訂單識別的運行、重試嘗試與脫敏事件時間線;不顯示訂單正文、提示詞、輸入輸出或錯誤堆疊。",
"refresh": "重新整理",
"status": "狀態",
"allStatuses": "全部狀態",
"total": "共 {count} 筆",
"runNo": "運行編號",
"stage": "目前階段",
"stage": "目前事件",
"attempts": "嘗試次數",
"createdAt": "建立時間",
"totalDuration": "總耗時",
@@ -59,8 +59,19 @@
"loadFailed": "載入識別任務失敗",
"detailFailed": "載入運行詳情失敗",
"detailTitle": "運行診斷詳情",
"workflowRunId": "Workflow Run ID",
"currentEvent": "目前事件",
"candidateMaterializedAt": "候選落庫時間",
"errorCode": "錯誤碼",
"autoFreezePolicy": "自動凍結門禁",
"autoFreezeEnabled": "允許自動凍結",
"autoFreezeMode": "門禁模式",
"autoFreezeQualificationStatus": "範本資格狀態",
"autoFreezeProfile": "命中範本",
"autoFreezeCustomerScopeStatus": "客戶/場景授權",
"autoFreezeBusinessScenarioStatus": "業務場景授權",
"autoFreezeCustomerConfirmation": "需要客戶確認",
"autoFreezeBlockingReasons": "阻斷原因",
"autoFreezeNoBlockingReasons": "目前沒有阻斷原因",
"jobAttempts": "Job 執行嘗試",
"units": "文件單元診斷",
"routeDecision": "範本路由判斷",
@@ -75,16 +86,22 @@
"missingAnchors": "缺少錨點:{ids}",
"yes": "是",
"no": "否",
"executionModes": { "deterministic": "後端確定性解析", "dify": "Dify 補充識別", "blocked": "已阻斷,需人工處理" },
"autoFreezeModes": { "manual_confirmation": "人工確認", "auto_freeze": "自動凍結" },
"autoFreezeQualificationStatuses": { "manual_confirmation": "人工確認", "auto_freeze_approved": "已核准自動凍結", "auto_freeze_suspended": "已暫停自動凍結" },
"autoFreezeCustomerScopeStatuses": { "unconfigured": "未配置", "matched": "已命中授權", "out_of_scope": "超出授權範圍", "customer_unconfirmed": "客戶未確認", "ambiguous": "多個客戶" },
"autoFreezeBusinessScenarioStatuses": { "unconfigured": "未配置", "matched": "已命中授權", "out_of_scope": "超出授權範圍" },
"executionModes": { "deterministic": "後端確定性解析", "review_required": "人工處理", "skipped": "跳過執行" },
"matchStatuses": { "unique_match": "唯一命中", "no_match": "未命中", "ambiguous": "多個範本命中", "layout_drift": "版式漂移", "evidence_insufficient": "證據不足" },
"visibilities": { "workspace": "工作台事件", "admin": "管理診斷事件" },
"reasonCodes": { "profile_evidence_insufficient": "範本證據不足", "profile_no_match": "無合格範本", "profile_ambiguous": "候選範本分差不足", "profile_layout_drift": "表格或錨點與範本不符", "profile_not_auto_create_approved": "範本尚未獲得自動建單核准", "multiple_tables_detected": "偵測到多個表格", "no_parsed_lines": "未解析到有效明細", "row_needs_review": "存在需複核的明細行", "header_value_conflict": "訂單欄位值衝突", "required_header_missing": "缺少必填訂單欄位", "required_line_field_missing": "缺少必填明細欄位", "profile_schema_field_mismatch": "範本欄位與凍結 Schema 不一致" },
"lifecycle": "脫敏節點生命週期",
"autoFreezeReasonCodes": { "profile_not_auto_freeze_approved": "未命中可自動凍結範本", "multiple_profiles_detected": "命中多個範本版本", "profile_auto_freeze_qualification_missing": "缺少自動凍結資格記錄", "profile_manual_confirmation_required": "範本仍需人工確認", "profile_auto_freeze_suspended": "範本自動凍結資格已暫停", "technical_failure_present": "存在技術失敗", "budget_stopped": "觸發預算停止", "review_required": "存在人工複核", "run_failed": "Run 執行失敗", "run_cancelled": "Run 已取消", "pending_orders_present": "仍有待處理訂單", "customer_scope_not_configured": "客戶授權未配置", "customer_scope_out_of_scope": "目前客戶不在授權範圍內", "multiple_customers_detected": "偵測到多個已確認客戶", "business_scenario_not_configured": "業務場景授權未配置", "business_scenario_out_of_scope": "目前業務場景不在授權範圍內", "customer_confirmation_required": "仍需客戶確認" },
"lifecycle": "脫敏事件時間線",
"statuses": {
"queued": "等待執行",
"running": "執行中",
"result_persisted": "結果已落庫",
"processing": "處理中",
"completed": "已完成",
"needs_review": "需使用者處理",
"partially_completed": "部分完成",
"review_required": "全部待人工處理",
"failed": "失敗",
"cancelled": "已取消"
}