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
@@ -42,13 +42,13 @@
"shippingOrderExtractionRuns": {
"eyebrow": "READ-ONLY RUN DIAGNOSTICS",
"title": "Recognition Tasks",
"subtitle": "Inspect asynchronous order-recognition runs, job attempts, and redacted node lifecycles. Order content, prompts, inputs, outputs, and stack traces are never shown.",
"subtitle": "Inspect asynchronous order-recognition runs, job attempts, and the redacted event timeline. Order content, prompts, inputs, outputs, and stack traces are never shown.",
"refresh": "Refresh",
"status": "Status",
"allStatuses": "All statuses",
"total": "{count} total",
"runNo": "Run no.",
"stage": "Current stage",
"stage": "Current event",
"attempts": "Attempts",
"createdAt": "Created",
"totalDuration": "Total duration",
@@ -60,8 +60,19 @@
"loadFailed": "Failed to load recognition tasks",
"detailFailed": "Failed to load run details",
"detailTitle": "Run diagnostics",
"workflowRunId": "Workflow Run ID",
"currentEvent": "Current event",
"candidateMaterializedAt": "Candidate materialized at",
"errorCode": "Error code",
"autoFreezePolicy": "Auto-freeze gate",
"autoFreezeEnabled": "Auto-freeze enabled",
"autoFreezeMode": "Gate mode",
"autoFreezeQualificationStatus": "Template qualification",
"autoFreezeProfile": "Matched template",
"autoFreezeCustomerScopeStatus": "Customer/scope authorization",
"autoFreezeBusinessScenarioStatus": "Business scenario authorization",
"autoFreezeCustomerConfirmation": "Customer confirmation required",
"autoFreezeBlockingReasons": "Blocking reasons",
"autoFreezeNoBlockingReasons": "No blocking reasons",
"jobAttempts": "Job attempts",
"units": "Document unit diagnostics",
"routeDecision": "Template routing decision",
@@ -76,16 +87,22 @@
"missingAnchors": "Missing anchors: {ids}",
"yes": "Yes",
"no": "No",
"executionModes": { "deterministic": "Backend deterministic parsing", "dify": "Dify supplemental extraction", "blocked": "Blocked; manual action required" },
"autoFreezeModes": { "manual_confirmation": "Manual confirmation", "auto_freeze": "Auto freeze" },
"autoFreezeQualificationStatuses": { "manual_confirmation": "Manual confirmation", "auto_freeze_approved": "Auto-freeze approved", "auto_freeze_suspended": "Auto-freeze suspended" },
"autoFreezeCustomerScopeStatuses": { "unconfigured": "Unconfigured", "matched": "Authorized", "out_of_scope": "Out of scope", "customer_unconfirmed": "Customer unconfirmed", "ambiguous": "Multiple customers" },
"autoFreezeBusinessScenarioStatuses": { "unconfigured": "Unconfigured", "matched": "Authorized", "out_of_scope": "Out of scope" },
"executionModes": { "deterministic": "Backend deterministic parsing", "review_required": "Manual handling", "skipped": "Skipped" },
"matchStatuses": { "unique_match": "Unique match", "no_match": "No match", "ambiguous": "Multiple templates matched", "layout_drift": "Layout drift", "evidence_insufficient": "Insufficient evidence" },
"visibilities": { "workspace": "Workspace event", "admin": "Admin diagnostic event" },
"reasonCodes": { "profile_evidence_insufficient": "Insufficient template evidence", "profile_no_match": "No eligible template", "profile_ambiguous": "Candidate margin is insufficient", "profile_layout_drift": "Table or anchor differs from the template", "profile_not_auto_create_approved": "Template is not approved for automatic creation", "multiple_tables_detected": "Multiple tables detected", "no_parsed_lines": "No valid lines parsed", "row_needs_review": "A line requires review", "header_value_conflict": "Order field values conflict", "required_header_missing": "Required order field missing", "required_line_field_missing": "Required line field missing", "profile_schema_field_mismatch": "Template fields differ from frozen Schema" },
"lifecycle": "Redacted node lifecycle",
"autoFreezeReasonCodes": { "profile_not_auto_freeze_approved": "No auto-freeze-approved template matched", "multiple_profiles_detected": "Multiple template versions matched", "profile_auto_freeze_qualification_missing": "Auto-freeze qualification record is missing", "profile_manual_confirmation_required": "Template still requires manual confirmation", "profile_auto_freeze_suspended": "Template auto-freeze qualification is suspended", "technical_failure_present": "Technical failures are present", "budget_stopped": "Budget stop was triggered", "review_required": "Manual review is required", "run_failed": "Run failed", "run_cancelled": "Run was cancelled", "pending_orders_present": "Pending orders remain", "customer_scope_not_configured": "Customer authorization is not configured", "customer_scope_out_of_scope": "Current customer is out of scope", "multiple_customers_detected": "Multiple confirmed customers were detected", "business_scenario_not_configured": "Business scenario authorization is not configured", "business_scenario_out_of_scope": "Current business scenario is out of scope", "customer_confirmation_required": "Customer confirmation is still required" },
"lifecycle": "Redacted event timeline",
"statuses": {
"queued": "Queued",
"running": "Running",
"result_persisted": "Result persisted",
"processing": "Processing",
"completed": "Completed",
"needs_review": "Needs user action",
"partially_completed": "Partially completed",
"review_required": "Manual review required",
"failed": "Failed",
"cancelled": "Cancelled"
}