feat(shipping-notice): 完成货代发货通知全门禁恢复MVP收口

完成全门禁恢复MVP版本交付:调整自动上传与重试配置,重构正式执行链路;修复多处代码bug,新增测试与审计工具;更新全流程文档与契约规范。
This commit is contained in:
hugo committed 2026-08-11 14:04:39 +08:00
1 parent 8e0bbf7a81
commit c94d173f92
181 files changed
+12947 -1724

No files matched your search

@@ -212,6 +212,24 @@ describe('useShippingNoticeWorkflow', () => {
ctl.stop();
});
it('ignores external refresh triggers once only manual Gate tasks remain', async () => {
const refreshTrigger = ref(0);
api.getShippingProcessing.mockResolvedValue(buildUnifiedProcessing());
const ctl = useShippingNoticeWorkflow({ conversationId: ref('conv-1'), refreshTrigger });
await vi.advanceTimersByTimeAsync(0);
await nextTick();
await Promise.resolve();
expect(api.getShippingProcessing).toHaveBeenCalledTimes(1);
refreshTrigger.value += 1;
await nextTick();
await vi.advanceTimersByTimeAsync(0);
// 仅待人工处理时,Run 轮询的旁路 refreshTrigger 不得重复唤醒右侧 GET。
expect(api.getShippingProcessing).toHaveBeenCalledTimes(1);
ctl.stop();
});
it('uses unified work_items as the sole processing read source', async () => {
api.getShippingProcessing.mockResolvedValue({
conversation_id: 'conv-1',