feat(shipping-notice): 支持发货通知解析延后至 Dify 画布,优化任务创建流程

This commit is contained in:
hugo committed 2026-06-22 16:59:38 +08:00
1 parent d46d61bfa1
commit 70e8f700ff
38 files changed
+3215 -714

No files matched your search

@@ -25,6 +25,7 @@ export interface ChatPageSendContext {
agentId: number,
kb: string,
files: ChatUploadFileSpec[],
context?: { task_id?: string; batch_no?: string },
) => Promise<void>;
refreshHistoryAfterSend: () => Promise<void>;
tryHandleShippingAttachmentAutoFlow: (
@@ -43,6 +44,7 @@ export interface ChatPageSendContext {
msg: { warning: (text: string) => void; info: (text: string) => void };
t: (key: string) => string;
copiedIndex: Ref<number | null>;
getChatContext?: () => { task_id?: string; batch_no?: string };
}
export function createChatPageSendApi(ctx: ChatPageSendContext) {
@@ -90,7 +92,13 @@ export function createChatPageSendApi(ctx: ChatPageSendContext) {
ctx.clearAttachments();
await ctx.prepareToolRunProgressBeforeSend();
await ctx.sendMessage(content, ctx.currentAgentId.value, ctx.selectedKb.value, files);
await ctx.sendMessage(
content,
ctx.currentAgentId.value,
ctx.selectedKb.value,
files,
ctx.getChatContext?.(),
);
await ctx.refreshHistoryAfterSend();
await ctx.refreshToolRunProgressAfterSend();
};