feat(freight-rpa): 批次R解耦编排层并切换 onhand/inbound 契约

将 RPA 编排收编至 freight_rpa,回调迁 /api/freight-rpa/*。
共享目录与 Worker 契约一次切换至 onhand/inbound/upload,
并补 outbound 骨架与 tt16 排程 job key 迁移。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-10-17 23:18:48 +08:00
1 parent bf3154033b
commit ffc0d4a430
147 files changed
+4221 -2678

No files matched your search

@@ -520,7 +520,7 @@ def _task_tool_payload(task: ShippingNotice) -> dict[str, Any]:
'inventory_snapshot': _serialize_inventory_snapshot(task),
}
from app.services.shipping_notice.notice_upload import max_notice_chars
from app.services.shipping_notice.rpa import rpa_runtime_mode
from app.services.freight_rpa.common.rpa_runtime import rpa_runtime_mode
workflow_owner = (
db.session.get(ShippingOrderTask, int(task.order_task_id))
@@ -787,7 +787,7 @@ def _serialize_source_candidate_projection(task: ShippingNotice) -> dict[str, An
def serialize_task(task: ShippingNotice, projection: TaskProjection) -> dict[str, Any]:
"""按投影类型序列化任务;TOOL 会剔除 Agent 不应复述的内部状态码。"""
from app.services.shipping_notice.rpa import rpa_runtime_mode
from app.services.freight_rpa.common.rpa_runtime import rpa_runtime_mode
workflow_owner = (
db.session.get(ShippingOrderTask, int(task.order_task_id))