feat(shipping-notice): 新增通用解析能力,优化性能并清理遗留废弃代码
This commit is contained in:
1 parent
935bf26fa6
commit
7cfd5d167e
230 files changed
+9337
-10989
No files matched your search
@@ -19,7 +19,6 @@ const createContext = (
|
||||
attachments: ref([]),
|
||||
shippingAutoFlowRequested: ref(true),
|
||||
resolvedShippingTaskId: ref(''),
|
||||
getActiveShippingBatchNo: () => '',
|
||||
currentAgentId: computed(() => 1),
|
||||
selectedKb: ref(''),
|
||||
attachmentPolicy: computed(() => ({ anyEnabled: true })),
|
||||
@@ -47,7 +46,6 @@ const createContext = (
|
||||
getParsedIntakeNos: () => [],
|
||||
startOrderExtractionRun: vi.fn(async () => true),
|
||||
applyShippingMessageRecovery: vi.fn(async () => false),
|
||||
applyShippingBatchSnapshot: vi.fn(() => false),
|
||||
syncShippingConversationWorkspace: vi.fn(async () => true),
|
||||
refreshShippingActions: vi.fn(async () => undefined),
|
||||
shippingSuggestedPrompt: computed(() => ''),
|
||||
@@ -254,7 +252,6 @@ describe('useChatShippingSendHandler', () => {
|
||||
|
||||
it('warns and consumes send when user tries batch task switching (co8 batch API retired)', async () => {
|
||||
const ctx = createContext({
|
||||
getActiveShippingBatchNo: () => 'SB-TEST',
|
||||
});
|
||||
const { tryHandleShippingSend } = createShippingSendHandlers(ctx);
|
||||
|
||||
|
||||
Reference in new issue
Block a user