refactor(agent, shipping): 简化代理模型并完善订单抽取业务
- 移除 Agent 的 exposure_mode 与 internal_executor 相关逻辑,清理关联的过滤、序列化代码 - 删除废弃的 AgentRuntimeBinding 模型及其依赖 - 新增订单抽取上传批次、请求快照等数据库迁移与业务逻辑 - 修复附件完整性检测、订单抽取状态映射问题 - 更新多语言错误文案与前端单元测试配置 - 清理平台配置中不再使用的暴露模式配置
This commit is contained in:
1 parent
1f3ecb87b7
commit
61ac6403c4
159 files changed
+12883
-5099
No files matched your search
@@ -55,14 +55,17 @@
|
||||
"shippingNoticeUploading": "Uploading",
|
||||
"shippingNoticeParsing": "Parsing",
|
||||
"shippingNoticeParsed": "Parsed",
|
||||
"shippingNoticeReady": "Ready",
|
||||
"shippingNoticeAttachmentHint": "Attachments {ok}/{total}",
|
||||
"shippingNoticeAttachmentHintLayoutProcessing": "Attachments {ok}/{total}, parsing order layout",
|
||||
"shippingNoticeAttachmentHintPartial": "Attachments {ok}/{total} ({failed} incomplete)",
|
||||
"shippingNoticeAttachmentHintWithDup": "Attachments {ok}/{total} ({duplicates} duplicates skipped)",
|
||||
"shippingNoticeAttachmentHintDiscovered": "{total} attachment(s) found",
|
||||
"shippingNoticeAttachmentHintDiscoveredWithDup": "{total} attachment(s) found ({duplicates} duplicates skipped)",
|
||||
"shippingNoticeAttachmentIncompleteWarn": "Attachment parse incomplete",
|
||||
"shippingNoticeParseFailed": "Parse failed",
|
||||
"shippingNoticeRetryParse": "Retry parse",
|
||||
"shippingNoticeConfirmBatchHint": "Send to confirm batch creation after parsing completes",
|
||||
"shippingNoticeConfirmBatchHint": "Review this batch, then send to start identification",
|
||||
"shippingNoticeBatchReplayed": "Restored the previously created batch.",
|
||||
"shippingNoticeDuplicatesRemoved": "Duplicate files were removed automatically.",
|
||||
"shippingNoticeDuplicateNeedsResolution": "A duplicate shipping notice was detected. Choose how to proceed.",
|
||||
@@ -127,31 +130,161 @@
|
||||
"shippingCandidateReviewRequired": "A selected order candidate still needs review. Correct its conflicting fields first.",
|
||||
"shippingCandidateSelectRequired": "Select at least one order candidate before creating tasks.",
|
||||
"shippingOrderExtractionDefaultPrompt": "Fully parse the shipping orders in the uploaded email and attachments, then create eligible tasks automatically.",
|
||||
"shippingOrderExtractionProcessing": "Identifying orders in the email and attachments",
|
||||
"shippingOrderExtractionElapsed": "Running for {seconds} seconds",
|
||||
"shippingOrderExtractionIdle": "No new recognition progress yet. The system is still waiting.",
|
||||
"shippingOrderExtractionSlow": "The recognition service is responding slowly. The system is still waiting.",
|
||||
"shippingOrderExtractionShowDetails": "Show details",
|
||||
"shippingOrderExtractionHideDetails": "Hide details",
|
||||
"shippingOrderExtractionLoadingDetails": "Loading stage details...",
|
||||
"shippingOrderExtractionDetailsUnavailable": "Stage details are temporarily unavailable. Please try again later.",
|
||||
"shippingOrderExtractionNoDetails": "No new stage information is available yet",
|
||||
"shippingOrderExtractionUnread": "{count} order identification result(s) need review",
|
||||
"shippingOrderExtractionEventStatus": {
|
||||
"started": "started",
|
||||
"running": "in progress",
|
||||
"completed": "completed",
|
||||
"failed": "issue detected",
|
||||
"recovered": "recovered",
|
||||
"updated": "updated"
|
||||
"shippingOrderExtractionCardTitle": {
|
||||
"queued": "Order parsing is queued",
|
||||
"processing": "Order parsing is in progress",
|
||||
"completed": "Order parsing is complete",
|
||||
"partially_completed": "Order parsing is partially complete",
|
||||
"review_required": "All order attachments need manual review",
|
||||
"failed": "Order parsing failed",
|
||||
"cancelled": "Order parsing was cancelled"
|
||||
},
|
||||
"shippingOrderExtractionStage": {"queued":"Waiting for background execution","workflow_accepted":"Connected to the recognition service","document_processing":"Parsing the email and attachments","order_recognition":"Identifying order information","result_processing":"Organizing and validating results","provider_result_ready":"Recognition complete; saving results","hxops_persistence":"Creating order tasks","auto_recovering":"The service is recovering automatically","generic_processing":"Processing the recognition task"},
|
||||
"shippingOrderExtractionPartiallyCompleted": "Some orders were processed; others need more information or confirmation",
|
||||
"shippingOrderExtractionCompleted": "Order identification completed",
|
||||
"shippingOrderExtractionFailed": "Order identification failed",
|
||||
"shippingOrderExtractionFailureHint": "The recognition service is temporarily unavailable. Try identifying again later.",
|
||||
"shippingOrderExtractionRetry": "Identify again",
|
||||
"shippingOrderExtractionRetrying": "Identifying again...",
|
||||
"shippingOrderExtractionProcessing": "Order parsing is in progress",
|
||||
"shippingOrderExtractionPartiallyCompleted": "Order parsing is partially complete",
|
||||
"shippingOrderExtractionCompleted": "Order parsing is complete",
|
||||
"shippingOrderExtractionFailed": "Order parsing failed",
|
||||
"shippingOrderExtractionSummary": {
|
||||
"total": "{count} PDF(s)",
|
||||
"completed": "{count} completed",
|
||||
"completedProgress": "Progress {value}",
|
||||
"candidates": "{count} candidate(s)",
|
||||
"reviewRequired": "{count} need review",
|
||||
"failed": "{count} failed"
|
||||
},
|
||||
"shippingOrderExtractionCurrentFile": "Current: {fileName}",
|
||||
"shippingOrderExtractionRefreshFailed": "Status could not be refreshed right now. Processing is still continuing in the background.",
|
||||
"shippingOrderExtractionDetailsTitle": "Processing details",
|
||||
"shippingOrderExtractionCloseDetails": "Close processing details",
|
||||
"shippingOrderExtractionTimelineTitle": "Run timeline",
|
||||
"shippingOrderExtractionTimelineLoading": "Loading the processing timeline...",
|
||||
"shippingOrderExtractionTimelineUnavailable": "Unable to load the processing timeline right now. Please try again later.",
|
||||
"shippingOrderExtractionTimelineEmpty": "No processing timeline is available yet.",
|
||||
"shippingOrderExtractionTimelineTag": {
|
||||
"business": "Business review",
|
||||
"technical": "Technical failure",
|
||||
"budget": "Budget stop",
|
||||
"progress": "Progress"
|
||||
},
|
||||
"shippingOrderExtractionDocumentsLoading": "Loading PDF processing results...",
|
||||
"shippingOrderExtractionDocumentsUnavailable": "PDF processing results are temporarily unavailable. Please try again later.",
|
||||
"shippingOrderExtractionNoDocuments": "No PDF results are available yet.",
|
||||
"shippingOrderExtractionUnknownDocument": "Unnamed PDF",
|
||||
"shippingOrderExtractionUnread": "{count} order identification result(s) need review",
|
||||
"shippingOrderExtractionActivity": {
|
||||
"plan_created": "The extraction plan is ready and the first wave is being prepared.",
|
||||
"initial_wave_started": "The system has started analyzing the first wave of attachments.",
|
||||
"expansion_wave_started": "The system has started analyzing the next wave of candidate attachments.",
|
||||
"document_queued": "The attachment has been accepted and is waiting for a worker.",
|
||||
"routing": "Analysing the document layout.",
|
||||
"profile_matching": "Matching a published order template.",
|
||||
"matching_profile": "Matching a published order template.",
|
||||
"profile_matched": "A unique template was found. Extracting fields now.",
|
||||
"extracting": "Extracting order fields and table data.",
|
||||
"table_reconstructed": "The order table was reconstructed. Validating fields now.",
|
||||
"order_fields_extracted": "Key order fields were extracted. Preparing the result now.",
|
||||
"merging_supplement": "Merging supporting details from the email body.",
|
||||
"email_supplement_merged": "Supporting details from the email body were merged.",
|
||||
"candidate_ready": "An order candidate is ready for confirmation.",
|
||||
"review_required": "This PDF requires manual review.",
|
||||
"technical_retrying": "Retrying the failed attachment.",
|
||||
"technical_failed": "The system could not finish this attachment.",
|
||||
"budget_stopped": "The current attachment budget has been reached. Remaining attachments require manual review.",
|
||||
"run_completed": "This order parsing run is complete.",
|
||||
"generic_processing": "The system is processing the order attachment."
|
||||
},
|
||||
"shippingOrderExtractionAction": {
|
||||
"view_details": "View details",
|
||||
"enter_manual_review": "Open manual review",
|
||||
"retry_failed_attachments": "Retry failed attachments",
|
||||
"view_evidence": "View evidence",
|
||||
"review_candidate": "Confirm manually",
|
||||
"manual_review": "Manual review"
|
||||
},
|
||||
"shippingOrderExtractionDocumentStatus": {
|
||||
"pending": "Pending",
|
||||
"routing": "Analysing document",
|
||||
"matching_profile": "Matching template",
|
||||
"extracting": "Extracting fields",
|
||||
"merging_supplement": "Merging supplement",
|
||||
"candidate_ready": "Candidate ready",
|
||||
"review_required": "Manual review required",
|
||||
"failed": "Processing failed",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"shippingOrderExtractionReason": {
|
||||
"profile_not_found": "No suitable published order template was found.",
|
||||
"profile_ambiguous": "Multiple templates matched and the system will not guess.",
|
||||
"profile_not_published": "The matched template is not published.",
|
||||
"profile_auto_create_not_approved": "The template matched, but is not approved for automatic extraction.",
|
||||
"profile_drift_detected": "The document layout differs significantly from the published template.",
|
||||
"required_anchor_missing": "Required anchor text or regions are missing.",
|
||||
"business_table_not_found": "No order table was found in the attachment.",
|
||||
"multiple_business_tables": "Multiple possible order tables were found.",
|
||||
"multiple_po_detected": "Multiple PO numbers were detected in one PDF.",
|
||||
"po_missing": "The customer PO number could not be identified.",
|
||||
"required_field_missing": "Key order fields are incomplete.",
|
||||
"row_needs_review": "The template matched, but one or more line-item fields need review.",
|
||||
"email_supplement_ambiguous": "The email body could not be matched to this order uniquely.",
|
||||
"email_supplement_conflict": "Supporting details in the email body conflict with each other.",
|
||||
"supplement_relation_ambiguous": "The email body cannot be attached to the target order uniquely.",
|
||||
"missing_reservation_id": "Reservation is still missing and needs evidence from later attachments.",
|
||||
"document_unreadable": "The file is damaged, encrypted, or unreadable.",
|
||||
"technical_failure": "System processing failed. Retry is available."
|
||||
},
|
||||
"shippingOrderExtractionPoNumber": "PO: {value}",
|
||||
"shippingOrderExtractionLineCount": "Lines: {count}",
|
||||
"shippingOrderExtractionReviewDetail": "Line {line}: {field} needs to be completed or corrected",
|
||||
"shippingOrderExtractionReviewField": { "qty": "Quantity", "unknown": "Line-item field" },
|
||||
"shippingOrderExtractionProfileSummary": "Template: {name} V{version}",
|
||||
"shippingOrderExtractionPlanSummary": "This run planned {groups} order group(s) from {total} attachment(s). The first wave may process up to {attachments} attachment(s) with concurrency {concurrency}.",
|
||||
"shippingOrderExtractionPlanSelected": "{count} attachment(s) selected",
|
||||
"shippingOrderExtractionPlanPendingExpansion": "{count} attachment(s) queued for later waves",
|
||||
"shippingOrderExtractionPlanSkipped": "{count} attachment(s) skipped",
|
||||
"shippingOrderExtractionPlanBudgetLimited": "{count} attachment(s) stopped by budget",
|
||||
"shippingOrderExtractionPlanRetrying": "{count} attachment(s) retrying",
|
||||
"shippingOrderExtractionPlanTechnicalFailures": "{count} technical failure(s)",
|
||||
"shippingOrderExtractionReviewReasonCodes": "Review reasons: {codes}",
|
||||
"shippingOrderExtractionExpansionTriggerCodes": "Expansion triggered by: {codes}",
|
||||
"shippingOrderExtractionActivitySelectionBatch": "Current wave: batch {batch}",
|
||||
"shippingOrderExtractionActivityReasonCodes": "Current reasons: {codes}",
|
||||
"shippingOrderExtractionSelectionBatch": "Selection batch: round {batch}",
|
||||
"shippingOrderExtractionGroupKey": "Order group: {key}",
|
||||
"shippingOrderExtractionBudgetCost": "Initial budget: {attachments} attachment(s), concurrency {concurrency}, selected in this round {selected}",
|
||||
"shippingOrderExtractionTechnicalFailureCode": "The system could not complete processing",
|
||||
"shippingOrderExtractionTechnicalFailureCodes": "Some attachments could not be completed",
|
||||
"shippingOrderExtractionTechnicalFailureUserHint": "The system could not complete processing. Please try again later.",
|
||||
"shippingOrderExtractionRetryStatus": {
|
||||
"not_started": "not started",
|
||||
"running": "processing",
|
||||
"retrying": "retrying",
|
||||
"pending_retry": "waiting to retry",
|
||||
"failed": "technical failure",
|
||||
"review_required": "manual review required",
|
||||
"succeeded": "completed",
|
||||
"cancelled": "cancelled"
|
||||
},
|
||||
"shippingOrderExtractionEmailSupplement": {
|
||||
"none": "Email supplement: none",
|
||||
"merged": "Email supplement: merged with no conflict",
|
||||
"conflict": "Email supplement: conflict found, manual confirmation required"
|
||||
},
|
||||
"shippingOrderExtractionEmailSupplementRelation": {
|
||||
"po_mpn": "Relation: PO + part number",
|
||||
"po_fallback": "Relation: PO fallback"
|
||||
},
|
||||
"shippingOrderExtractionEmailSupplementField": {
|
||||
"reservation": "Reservation: ",
|
||||
"sourceType": "Source Type: "
|
||||
},
|
||||
"shippingOrderExtractionEmailSupplementFieldStatus": {
|
||||
"none": "no supplement",
|
||||
"merged": "supplemented",
|
||||
"conflict": "conflict",
|
||||
"unavailable": "not included in this template"
|
||||
},
|
||||
"shippingOrderExtractionEmailSupplementConflictCount": "{count} email supplement conflict(s)",
|
||||
"shippingOrderExtractionRetry": "Retry failed attachments",
|
||||
"shippingOrderExtractionRetrying": "Retrying parsing...",
|
||||
"shippingOrderExtractionRetryFailed": "Could not restart order identification. Try again later.",
|
||||
"shippingOrderExtractionReparse": "Reidentify with current rules",
|
||||
"shippingOrderExtractionReparsing": "Creating a new identification version...",
|
||||
@@ -163,11 +296,6 @@
|
||||
"document_quality": "Document quality issue",
|
||||
"other": "Other"
|
||||
},
|
||||
"shippingOrderExtractionCreatedCount": "{count} task(s) created",
|
||||
"shippingOrderExtractionOpenedExistingCount": "{count} existing task(s) opened",
|
||||
"shippingOrderExtractionPendingCount": "{count} awaiting details or confirmation",
|
||||
"shippingOrderExtractionIgnoredCount": "{count} non-shipping item(s) ignored",
|
||||
"shippingOrderExtractionMissingFieldsCount": "{count} task(s) still missing workflow fields",
|
||||
"shippingCandidateInvalidLine": "Every order line requires an internal part number and a quantity greater than zero.",
|
||||
"shippingCandidatePoNumber": "PO Number",
|
||||
"shippingCandidateSku": "SKU",
|
||||
|
||||
Reference in new issue
Block a user