feat(shipping-notice): 新增发货通知自动上传功能与候选资格评估

- 在环境配置中新增 SHIPPING_NOTICE_AUTO_UPLOAD_ENABLED 选项,默认关闭,需显式开启以支持自动上传。
- 引入新的 pytest.ini 文件,增加测试标记以支持自动化测试。
- 删除不再使用的 seed_shipping_notice_agents.py 文件,简化代码库。
- 更新相关 API,增强发货通知与候选资格评估功能,支持多种筛选条件。
- 增强文档与代码注释,反映新的业务逻辑与功能要求。
This commit is contained in:
hugo committed 2026-08-02 19:26:35 +08:00
1 parent cef3d5b26a
commit 3a9fbac2fc
226 files changed
+25010 -2098

No files matched your search

@@ -38,14 +38,14 @@ def build_chat_actions_payload(task) -> dict:
"""
构建聊天气泡侧动作按钮兼容 payload。
核心逻辑:复用统一 UI State 读模型,只抽取聊天侧需要的 checkpoint/action_buttons/summary,
避免 workspace 路由继续依赖已删除的旧读模型实现。
核心逻辑:复用统一 UI State 读模型,抽取聊天侧 checkpoint/summary/process_gate;
action_buttons 已由 ui_state 在存在 ProcessExecution 时按 Gate 规则收缩(阻断清零)。
Args:
task: ShippingTask 模型实例。
Returns:
包含 task_no、checkpoint、action_buttons 与摘要的字典。
包含 task_no、checkpoint、process_gate、action_buttons 与摘要的字典。
"""
state = build_task_ui_state(task)
return {
@@ -58,6 +58,7 @@ def build_chat_actions_payload(task) -> dict:
"match_status": state.get("match_status"),
"current_step": state.get("current_step"),
"summary": state.get("summary"),
"process_gate": state.get("process_gate"),
"action_buttons": state.get("action_buttons") or [],
"updated_at": state.get("updated_at"),
}