feat(shipping-notice): 完成货代发货通知全流程开发与代码重构

- 新增PO号提取、预约ID解析(支持`PR@xxx`格式)工具,完善库存匹配逻辑
- 新增库存映射缓存、匹配/解析结果格式化摘要,优化用户提示
- 修复数据库迁移脚本未检查表存在的问题,避免全新部署失败
- 新增路径工具类统一管理相对路径,优化配置文件处理逻辑
- 归档旧文档,将部署、Dify配置合并到`shipping_notice.md`
- 新增完整单元测试与集成测试覆盖核心流程
- 更新前端国际化与会话管理逻辑,优化界面交互
This commit is contained in:
hugo committed 2026-06-04 15:26:34 +08:00
1 parent b62082758b
commit 8deae3146b
65 files changed
+6477 -1937

No files matched your search

@@ -6,7 +6,7 @@ from typing import Any
def tool_response(
*,
status: str,
case_id: str | None = None,
task_id: str | None = None,
message: str = "",
data: dict[str, Any] | None = None,
human_options: list[str] | None = None,
@@ -20,8 +20,8 @@ def tool_response(
"message": message,
"data": data or {},
}
if case_id:
payload["case_id"] = case_id
if task_id:
payload["task_id"] = task_id
if human_options:
payload["human_options"] = human_options
if checkpoint: