feat(queue): 添加旧知识库任务入队兼容入口
- 增加 enqueue_kb_job 和 enqueue_clean_job 函数以支持旧 KB 清洗任务入队 - 在 enqueue 函数中处理 KB_CLEAN 和 KB_DIFY_SYNC 类型的任务 - 引入 ValidationError 以处理 job_id 缺失的情况 feat(shipping_notice): 更新库存 RPA 工作流逻辑 - 修改 ensure_inventory_via_rpa 函数以支持手动重试逻辑 - 优化库存导出触发和状态更新的消息提示 fix(i18n): 更新任务未找到的提示信息 - 修改中文和英文提示,明确用户操作要求 feat(shipping_notice): 增强任务解析逻辑 - 添加缺失 Reservation ID 的检查,阻止任务进入确认阶段 - 更新 get_task_status 函数以处理多票会话的任务解析
This commit is contained in:
1 parent
eb0466245b
commit
4cd987eef6
45 files changed
+2748
-1406
No files matched your search
@@ -19,6 +19,7 @@
|
||||
"shippingNoticeActionsHint": "Choose an action:",
|
||||
"shippingNoticeMissingTaskId": "Task ID not found. Complete shipping notice parsing first.",
|
||||
"shippingNoticeUploadDone": "Inventory file uploaded: {fileName}.",
|
||||
"shippingNoticeInventoryUploadStarted": "I selected inventory file {fileName}. Uploading it and reading the inventory columns now.",
|
||||
"shippingNoticeUploadOk": "Upload succeeded.",
|
||||
"shippingNoticeUploadFailed": "Inventory upload failed.",
|
||||
"shippingNoticeRefreshDone": "Current task status refreshed.",
|
||||
@@ -33,10 +34,10 @@
|
||||
"prefixWithFile": "I have uploaded the inventory file \"{fileName}\"",
|
||||
"prefixBatch": "I have uploaded the batch inventory snapshot for batch {batchNo}",
|
||||
"prefixBatchWithFile": "I have uploaded the batch inventory snapshot \"{fileName}\" for batch {batchNo}",
|
||||
"mapInferSuggested": "{prefix}. Please continue the inventory column mapping. If the system has already identified a complete mapping, apply it directly and show me the field alignment result for confirmation.",
|
||||
"mapInferPending": "{prefix}. Please continue parsing the inventory column mapping, and after a usable mapping is available, show me the field alignment result for confirmation.",
|
||||
"alignReview": "{prefix}. Please show the inventory field alignment result and guide me to confirm or correct the mapping.",
|
||||
"default": "{prefix}. Please continue the inventory import and tell me the next step."
|
||||
"mapInferSuggested": "{prefix}. Continue the inventory column mapping. If a complete mapping is available, apply it directly and reply with one short status sentence that the inventory field confirmation is ready. Do not list operation menus, numbered options, button lists, or phrases like \"choose one of the following\"; clickable actions are rendered by system buttons.",
|
||||
"mapInferPending": "{prefix}. Continue parsing the inventory column mapping, then reply with one short status sentence when the inventory field confirmation is ready. Do not list operation menus, numbered options, button lists, or phrases like \"choose one of the following\"; clickable actions are rendered by system buttons.",
|
||||
"alignReview": "{prefix}. Reply with one short sentence saying the inventory field confirmation is ready and ask me to check the columns before continuing. Do not list operation menus, numbered options, button lists, or phrases like \"choose one of the following\"; clickable actions are rendered by system buttons.",
|
||||
"default": "{prefix}. Continue the inventory import and only state the current status. Do not list operation menus, numbered options, button lists, or phrases like \"choose one of the following\"; clickable actions are rendered by system buttons."
|
||||
},
|
||||
"notice": {
|
||||
"fileLabelSingleFile": "\"{fileName}\"",
|
||||
@@ -123,18 +124,25 @@
|
||||
"hideWorkspace": "Hide workspace",
|
||||
"batchWorkspaceTitle": "Batch workspace",
|
||||
"batchWorkspaceSubtitle": "Switch batches, filter tasks, and diagnose steps",
|
||||
"taskQueueTitle": "Task queue",
|
||||
"taskQueueHint": "Use this panel to spot blockers and recovery entries. Final confirmations stay in chat.",
|
||||
"batchActionsTitle": "Batch actions",
|
||||
"retryFailedTasks": "Retry all failed",
|
||||
"batchActionSafetyNotice": "Human-review tasks are not retried in bulk; completed tasks are not uploaded again. Batch recovery only handles failed or queued tasks.",
|
||||
"taskDetailCount": "Task details ({count})",
|
||||
"filterAll": "All",
|
||||
"filterAbnormal": "Abnormal ({count})",
|
||||
"filterWaitingHuman": "Waiting human ({count})",
|
||||
"filterResumable": "Resumable ({count})",
|
||||
"filterCompleted": "Done ({count})",
|
||||
"emptyFilteredTasks": "No matching tasks",
|
||||
"focusRepair": "Focus repair",
|
||||
"switchCurrentTask": "Make current",
|
||||
"queryShortageDetails": "Query shortage details",
|
||||
"retryRpa": "Retry RPA",
|
||||
"retrySingleTask": "Retry single task",
|
||||
"retrySingleTaskMessage": "Retry current task {taskId}",
|
||||
"continueTask": "Continue",
|
||||
"viewDetail": "View details",
|
||||
"mobileWorkspaceHint": "The workspace is open on mobile. Pick a task from the list to continue.",
|
||||
"diagnosisAdviceRetryOrFocus": "Focus this task first to inspect context; retry only if it is a transient external-system failure.",
|
||||
@@ -168,6 +176,17 @@
|
||||
"needsIntervention": "Needs intervention",
|
||||
"currentNotice": "Current notice",
|
||||
"currentStepLabel": "Current",
|
||||
"blockedWaitingHuman": "Waiting for confirmation",
|
||||
"blockedShortage": "Blocked by shortage",
|
||||
"blockedParseReview": "Parse review required",
|
||||
"blockedUploadRetryable": "Upload failed, retry available",
|
||||
"suggestedAction": "Suggested action:",
|
||||
"suggestShortageActions": "View shortage / revise notice / rematch",
|
||||
"suggestConfirmMapping": "Confirm column mapping, then continue matching",
|
||||
"suggestReviewParse": "Review parsed fields, then confirm or revise",
|
||||
"suggestRetryStep": "Inspect the blocker, then retry this step",
|
||||
"suggestViewOnly": "Review export files or receipts",
|
||||
"suggestContinue": "Make it current and continue in chat",
|
||||
"stepHeadline": "Step {current}/{total} · {label}",
|
||||
"stepFraction": "Step {current}/{total}",
|
||||
"stepNeedsConfirm": "Step {step} needs confirmation",
|
||||
|
||||
@@ -183,12 +183,39 @@
|
||||
"status": {
|
||||
"all": "All",
|
||||
"created": "Created",
|
||||
"parsed": "Parsed",
|
||||
"pendingReview": "Pending review",
|
||||
"alignReview": "Confirm fields",
|
||||
"shortageReview": "Inventory shortage",
|
||||
"waitingInventory": "Waiting inventory",
|
||||
"inventoryReady": "Inventory ready",
|
||||
"matched": "Matched",
|
||||
"waitingUpload": "Waiting upload",
|
||||
"uploaded": "Uploaded",
|
||||
"uploadFailed": "Upload failed"
|
||||
"uploadFailed": "Upload failed",
|
||||
"rejected": "Rejected",
|
||||
"closed": "Closed",
|
||||
"unknown": "Processing"
|
||||
},
|
||||
"matchStatus": {
|
||||
"fulfillable": "Fulfillable",
|
||||
"partial": "Partially short",
|
||||
"unfulfillable": "Not fulfillable",
|
||||
"unknown": "Pending"
|
||||
},
|
||||
"eventTypes": {
|
||||
"system": "System event",
|
||||
"created": "Task created",
|
||||
"parsed": "Notice parsed",
|
||||
"parse_failed": "Parse failed",
|
||||
"inventory_uploaded": "Inventory uploaded",
|
||||
"inventory_parsed": "Inventory parsed",
|
||||
"matched_fulfillable": "Inventory matched",
|
||||
"match_needs_review": "Inventory match needs review",
|
||||
"excel_generated": "Shipment file generated",
|
||||
"uploaded": "Uploaded to freight",
|
||||
"upload_failed": "Freight upload failed",
|
||||
"backend_orchestrator_task_finished": "Background task completed"
|
||||
}
|
||||
},
|
||||
"profile": {
|
||||
|
||||
Reference in new issue
Block a user