feat(shipping-notice): 增强订单抽取功能,添加进度事件和诊断运行管理,优化数据模型和访问控制

This commit is contained in:
hugo committed 2026-07-21 23:17:29 +08:00
1 parent ce26d6d0c4
commit c4095b08da
175 files changed
+13064 -1814

No files matched your search

+31 -4
View File
@@ -30,10 +30,18 @@
"shippingCustomers": "Shipping Customers",
"shippingConfig": "Shipping Configuration",
"shippingInventory": "Inventory Configuration",
"shippingIdentityRules": "Customer Identity Rules"
"shippingIdentityRules": "Customer Identity Rules",
"shippingOrderExtractionRuns": "Order Recognition Runs"
,
"platformApps": "Platform Apps"
},
"shippingOrderExtractionRuns": {
"eyebrow": "READ-ONLY RUN DIAGNOSTICS",
"title": "Order Recognition Runs",
"subtitle": "Inspect asynchronous order-recognition runs, job attempts, and redacted node lifecycles. 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", "attempts": "Attempts", "createdAt": "Created", "totalDuration": "Total duration", "viewDetail": "View details", "previous": "Previous", "next": "Next", "loading": "Loading...", "empty": "No runs found", "loadFailed": "Failed to load order recognition runs", "detailFailed": "Failed to load run details", "detailTitle": "Run diagnostics", "workflowRunId": "Workflow Run ID", "errorCode": "Error code", "jobAttempts": "Job attempts", "units": "Document unit diagnostics", "lifecycle": "Redacted node lifecycle",
"statuses": { "queued": "Queued", "running": "Running", "result_persisted": "Result persisted", "completed": "Completed", "needs_review": "Needs user action", "failed": "Failed", "cancelled": "Cancelled" }
},
"shippingOrderSchema": {
"eyebrow": "Order field template",
"title": "Order Template Configuration",
@@ -116,6 +124,12 @@
"searchFields": "Search display name or field code",
"fieldCount": "{count} fields",
"selectedInGroup": "Selected",
"dragToReorder": "Drag to change the global field catalog order.",
"dragGuide": "Drag the handle on the left to reorder fields within the same category.",
"globalOrderGuide": "Drag the handle to change the global order. No draft or published version is required, and the order persists after refresh.",
"orderSaved": "Field order saved",
"orderSaveMismatch": "The persisted field order does not match. Refresh and try again.",
"dragDisabledBySearch": "Clear the search field to enable drag reordering.",
"noMatchingFields": "No matching fields",
"cancelAddField": "Close add form",
"publishedRuleViewer": "Published field configuration",
@@ -207,7 +221,9 @@
"difyExposurePolicy": "Dify read-only exposure",
"difyExposurePolicyOption": {"never":"Never expose","redacted":"Redacted read-only","confirmed_readonly":"Frozen value read-only"},
"difyExposurePolicyHint": {"never":"This field is omitted from Dify inputs.","redacted":"Only an irreversible placeholder is sent; the original email, domain, and recoverable patterns are excluded.","confirmed_readonly":"Sends the deterministic value frozen for this HXOPS run. This does not mean customer-confirmed, and Dify must not write it back."},
"availableForCustomerIdentity": "Allow the published field for customer identity"
"availableForCustomerIdentity": "Allow the published field for customer identity",
"orderHeaderIdentityTitle": "Available as customer identity candidate evidence",
"orderHeaderIdentityHint": "Order information is a Header field and may provide customer or ship-to candidate evidence. It cannot auto-confirm a customer by itself. Item details do not support this setting."
},
"shippingInventory": {
"title": "Shipping Configuration",
@@ -634,6 +650,11 @@
"title": "Agent Configuration",
"subtitle": "Manage AI assistants and their integrations",
"new": "New Agent",
"newInternalExecutor": "New Internal Executor",
"editInternalExecutor": "Edit Internal Executor",
"createInternalExecutor": "Create Internal Executor",
"tabs": { "applications": "Applications", "executors": "Internal Executors" },
"executor": { "internalOnly": "Backend use only", "empty": "No internal executors configured", "formSubtitle": "Configure an internal executor for background capability bindings", "workflowExecutor": "Workflow executor" },
"edit": "Edit Agent",
"create": "Create New Agent",
"noAgents": "No agents configured yet",
@@ -644,7 +665,9 @@
"config": "Configuration",
"status": "Status",
"actions": "Actions",
"aggregation": "Aggregation"
"aggregation": "Aggregation",
"executorType": "Executor type",
"runtimeProtocol": "Runtime protocol"
},
"fields": {
"name": "Name",
@@ -831,7 +854,7 @@
"normalListHint": "This app only"
}
,
"runtimeBinding": {"title":"Background business capability binding","subtitle":"Explicitly select a background business provider; no name or environment fallback is used.","exposureMode":"Application visibility","exposureWorkspace":"Workspace entry","exposureInternal":"Internal business provider","exposureHint":"Internal applications are only available for background business bindings and are hidden from users.","enabled":"Enable order extraction service","provider":"Order extraction service provider","selectProvider":"Select an internal Dify Workflow","timeout":"Timeout (seconds)","maxAttempts":"Maximum attempts","noProvider":"No eligible internal Dify Workflow exists. Create and test the service provider application first.","providerRequired":"Select an order extraction service provider first."}
"runtimeBinding": {"title":"Background business capability binding","subtitle":"Explicitly select a background business provider; no name or environment fallback is used.","exposureMode":"Application visibility","exposureWorkspace":"Workspace entry","exposureInternal":"Internal business provider","exposureHint":"Internal applications are only available for background business bindings and are hidden from users.","enabled":"Enable order extraction service","provider":"Order extraction service provider","selectProvider":"Select an internal Dify Workflow","timeout":"Timeout (seconds)","maxAttempts":"Maximum attempts","unitConcurrency":"Document concurrency (2-4)","unitMaxAttempts":"Attempts per document (1-3)","unitRetryBackoff":"Document retry backoff (ms)","maxModelUnits":"Maximum model documents per Run","providerMaxConcurrency":"Provider process concurrency","circuitFailureThreshold":"Circuit consecutive failure threshold","circuitCooldown":"Circuit cooldown (seconds)","autoCreateEnabled":"Allow automatic task creation after all gates pass","noProvider":"No eligible internal Dify Workflow exists. Create and test the service provider application first.","providerRequired":"Select an order extraction service provider first."}
},
"question": {
"title": "Common Questions",
@@ -1764,6 +1787,8 @@
"target": "Target",
"source": "Source",
"automation": "Automation ceiling",
"automationPolicy": "Automation limit (user-authorized)",
"automationPolicyHint": "Manual review is the default. Controlled auto-confirm still requires approved evidence, a unique match, and quality gates.",
"normalizer": "Text handling",
"displayName": "Rule name", "displayNamePlaceholder": "For example: US customer sender email", "evidenceLabel": "Evidence name in customer master data", "evidenceLabelPlaceholder": "For example: Customer business email", "description": "Usage note (optional)", "descriptionPlaceholder": "For example: Identifies Bill-to customers in the US region", "formGuide": "Name this rule in business terms and select where the information comes from. The system applies the required technical rules.", "emailType": "Email information to use", "identityAttribute": "What to identify", "templateValue": "Layout signature of the current document", "selectionResult": "This rule will use",
"selectField": "Select a published order field",
@@ -1774,6 +1799,8 @@
"openCustomerMaster": "Open customer master data",
"ruleSets": "Rule set versions",
"ruleSetHint": "Published snapshots are immutable. Replace or retire definitions before retiring a referenced order field.",
"publishedDefinitions": "Definitions actually published in this version",
"publishedDefinitionsEmpty": "This version contains no identity definitions.",
"createDraft": "Create rule draft",
"saveDraft": "Save draft",
"publish": "Publish rule set",