feat(chat): 更新发货任务处理逻辑和界面文本
- 移除不必要的状态引用 - 更新上传处理提示文本,使用国际化支持 - 扩展发货任务摘要接口,增加错误信息和短缺信息 - 更新多语言支持的文本,改善用户体验 - 增加批次工作区的汇总信息和操作提示
This commit is contained in:
1 parent
0b083cfdbd
commit
1fc9976ca3
60 files changed
+3876
-639
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"defaultTitle": "Chat",
|
||||
"assistantLabel": "HXOPS AI Assistant",
|
||||
"assistantLabel": "AI Assistant",
|
||||
"placeholder": "Ask anything...",
|
||||
"history": "Chat History",
|
||||
"noHistory": "No history",
|
||||
@@ -13,13 +13,18 @@
|
||||
"loadingAgent": "Loading agent...",
|
||||
"thinking": "Generating response...",
|
||||
"disclaimer": "AI can make mistakes. Please verify important information.",
|
||||
"scrollToLatest": "Scroll to latest message",
|
||||
"createNewChat": "New Chat",
|
||||
"shippingNoticeContinue": "Please continue shipping task {taskId}. Call get_task_status first and tell me the next step.",
|
||||
"shippingNoticeContinue": "Please continue shipping task {taskId}. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result; otherwise explain the current progress and next step.",
|
||||
"shippingNoticeActionsHint": "Choose an action:",
|
||||
"shippingNoticeMissingTaskId": "Task ID not found. Complete shipping notice parsing first.",
|
||||
"shippingNoticeUploadDone": "Inventory file uploaded: {fileName}.",
|
||||
"shippingNoticeUploadOk": "Upload succeeded.",
|
||||
"shippingNoticeUploadFailed": "Inventory upload failed.",
|
||||
"shippingNoticeRefreshDone": "Current task status refreshed.",
|
||||
"shippingNoticeRetryUploadAction": "Retry freight upload",
|
||||
"shippingNoticeRetryUploadQueued": "Upload has been triggered again. Refresh later to check the result.",
|
||||
"shippingNoticeRetryUploadFailed": "Retry upload failed.",
|
||||
"shippingNoticePasteHint": "Paste inventory rows in the input box, then send.",
|
||||
"shippingNoticeDecisionDone": "Action completed.",
|
||||
"shippingNoticePrompt": {
|
||||
@@ -41,8 +46,10 @@
|
||||
"batchLabel": "batch {batchNo}",
|
||||
"taskLabel": "current task {taskId}",
|
||||
"taskList": "Task list: {taskIds}.",
|
||||
"multiTask": "{summary}. {taskListText}Please only handle the current focus task. First call get_task_status to read the current task status; if the current task is still pending parsing, read raw_text, use the LLM to extract structured fields, then call parse_notice(structured=...) to persist them. If the task is already in a later step, directly explain the current status and guide me on the next step for this task. Do not ask me again whether parsing should start, and do not loop through other tasks in the batch.",
|
||||
"singleTask": "{summary}. Please first call get_task_status to read the current task status; if the current task is still pending parsing, read raw_text, use the LLM to extract structured fields, and directly call parse_notice(structured=...) to persist them. If the task is already in a later step, directly explain the current status and guide me on the next step. Do not ask me again whether parsing should start now."
|
||||
"autoInventoryAction": "Upload inventory and align columns",
|
||||
"autoNoticeAction": "Create tasks and parse shipping notices",
|
||||
"multiTask": "{summary}. {taskListText}Please only handle the current focus task. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result. If it is already in a later step, explain the current progress and next step directly. Do not ask me again whether parsing should start, and do not loop through other tasks in the batch.",
|
||||
"singleTask": "{summary}. Read the current task status first; if it still needs parsing, parse the shipping notice and save the result. If it is already in a later step, explain the current progress and next step directly. Do not ask me again whether parsing should start."
|
||||
}
|
||||
},
|
||||
"shippingNoticeMapping": {
|
||||
@@ -104,17 +111,79 @@
|
||||
"batchProgress": "Item {index}/{total}",
|
||||
"batchCurrentIndex": "Currently processing item {index}/{total}",
|
||||
"batchSummaryLine": "Batch {total} items · Completed {completed} · In progress {running} · Pending {pending}",
|
||||
"conversationWorkspaceTitle": "Agent session execution summary",
|
||||
"conversationSummaryLine": "{batches} batches · {total} tasks · {completed} completed · {running} running · {abnormal} need intervention",
|
||||
"batchChromeSummary": "{total} tasks, {completed} done, {running} running, {abnormal} need intervention",
|
||||
"agentExecutionSummary": "Agent execution summary",
|
||||
"workspaceSubtitle": "{batches} batches · {total} tasks, {completed} completed, {abnormal} need intervention",
|
||||
"noBlockingTasks": "No blocking tasks in the current batch. It is completed or being archived automatically.",
|
||||
"focusTaskRecommendation": "Focus this task first, confirm the blocker, then continue recovery within the batch.",
|
||||
"focusThisTask": "Fix this task",
|
||||
"showWorkspace": "Batch workspace",
|
||||
"hideWorkspace": "Hide workspace",
|
||||
"batchWorkspaceTitle": "Batch workspace",
|
||||
"batchWorkspaceSubtitle": "Switch batches, filter tasks, and diagnose steps",
|
||||
"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})",
|
||||
"filterCompleted": "Done ({count})",
|
||||
"emptyFilteredTasks": "No matching tasks",
|
||||
"focusRepair": "Focus repair",
|
||||
"queryShortageDetails": "Query shortage details",
|
||||
"retrySingleTask": "Retry single task",
|
||||
"retrySingleTaskMessage": "Retry current task {taskId}",
|
||||
"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.",
|
||||
"diagnosisUploadFailedTitle": "Freight-system upload failed and no success receipt was returned.",
|
||||
"diagnosisUploadFailedAdvice": "Retry this task. If it keeps failing, check freight login state, field formats, or upload manually.",
|
||||
"diagnosisShortageTitle": "Inventory matching found a shortage, so full shipment cannot continue directly.",
|
||||
"diagnosisShortageAdvice": "Shipment is blocked. Replenish inventory or correct the notice, then match inventory again.",
|
||||
"diagnosisShortageLine": "Line {index}: reservation {reservationId}, SKU {sku}, required {required}, available {available}, shortage {shortage}",
|
||||
"diagnosisShortageAdviceWithLines": "Shortage details: {lines}. Replenish inventory or correct the notice, then match again.",
|
||||
"shortageDetailsMessageTitle": "Inventory shortage details for task {taskId} ({file}):",
|
||||
"shortageNoDetails": "No inventory shortage was found for task {taskId}.",
|
||||
"diagnosisInventoryRpaTitle": "Inventory RPA did not return an available inventory snapshot.",
|
||||
"diagnosisInventoryRpaAdvice": "Retry inventory capture first; if the external system is unavailable, upload an inventory file manually.",
|
||||
"diagnosisAlignReviewTitle": "Inventory column mapping needs manual confirmation.",
|
||||
"diagnosisAlignReviewAdvice": "Confirm SKU, Reservation ID, and available-quantity mappings to avoid matching the wrong item.",
|
||||
"diagnosisParseReviewTitle": "Notice parsing confidence is low and needs review.",
|
||||
"diagnosisParseReviewAdvice": "Check customer, PO, required date, and order lines before continuing.",
|
||||
"diagnosisReservationRequiredTitle": "Reservation ID is missing, so inventory cannot be locked by reservation.",
|
||||
"diagnosisReservationRequiredAdvice": "Add the Reservation ID, or confirm this customer can proceed without one.",
|
||||
"diagnosisInventoryWaitingTitle": "Waiting for inventory file or inventory entry confirmation.",
|
||||
"diagnosisInventoryWaitingAdvice": "Upload the batch inventory snapshot or confirm the automatic capture entry.",
|
||||
"diagnosisCompletedTitle": "Task is completed and archived.",
|
||||
"diagnosisCompletedAdvice": "No action required; review export files or upload receipts if needed.",
|
||||
"diagnosisStepWaitingTitle": "Step {step} is waiting for a prerequisite.",
|
||||
"diagnosisStepWaitingAdvice": "Monitor it in the workspace, or focus this task to inspect context.",
|
||||
"currentTaskDiagnosis": "Current task diagnosis",
|
||||
"currentTaskPosition": "Item {index}/{total}",
|
||||
"batchTabAbnormal": "{completed} completed · {abnormal} abnormal",
|
||||
"batchTabNormal": "{total} tasks normal",
|
||||
"interventionQueue": "Needs intervention",
|
||||
"needsIntervention": "Needs intervention",
|
||||
"currentNotice": "Current notice",
|
||||
"currentStepLabel": "Current",
|
||||
"stepHeadline": "Step {current}/{total} · {label}",
|
||||
"stepFraction": "Step {current}/{total}",
|
||||
"stepNeedsConfirm": "Step {step} needs confirmation",
|
||||
"taskListResume": "Task List / Resume",
|
||||
"retryPendingTasks": "Retry recoverable tasks in current batch",
|
||||
"retryPendingDone": "Recoverable tasks have been resubmitted",
|
||||
"retryFailed": "Retry failed",
|
||||
"retrying": "Retrying...",
|
||||
"taskListTitle": "Task List",
|
||||
"taskListHint": "Switching tasks also updates the top Stepper and available actions",
|
||||
"expandTaskList": "Expand list",
|
||||
"collapseTaskList": "Collapse list",
|
||||
"currentFocus": "Current focus →",
|
||||
"expandTaskList": "Expand task list",
|
||||
"collapseTaskList": "Collapse task list",
|
||||
"currentFocus": "Current focus:",
|
||||
"currentFocusDefaultReason": "Input will apply to this task",
|
||||
"focusInputPlaceholder": "Handling {taskId}. Type an instruction...",
|
||||
"clearFocus": "Clear focus",
|
||||
"runningState": "In progress",
|
||||
"pendingState": "Pending",
|
||||
"completedState": "Completed",
|
||||
|
||||
Reference in new issue
Block a user