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

@@ -35,6 +35,7 @@ type ShippingHandlerSource = Pick<
| 'updateShippingParseReviewLine'
| 'addShippingParseReviewLine'
| 'removeShippingParseReviewLine'
| 'retryOrderExtractionRun'
>;
type TrainingHandlerSource = ReturnType<typeof useTrainingWorkspace>;
@@ -68,6 +69,7 @@ export function createShippingMessageHandlers(shipping: ShippingHandlerSource):
updateLine: shipping.updateShippingParseReviewLine,
addLine: shipping.addShippingParseReviewLine,
removeLine: shipping.removeShippingParseReviewLine,
retryOrderExtractionRun: shipping.retryOrderExtractionRun,
};
}
@@ -580,6 +580,9 @@ export function useChatPageToolRun(ctx: ChatPageToolRunContext) {
if (msg?.role !== 'assistant') return false;
// 订单抽取 Run 有专用状态卡,不能再叠加通用工具进度卡。
if (msg.shipping_order_extraction_state) return false;
if (!toolRunProgressConfig.value) return false;
if (assistantMessageHasError(msg)) return false;