feat(file-check): 更新文件检核工具 API Key 配置及相关文档
This commit is contained in:
1 parent
634dee4b81
commit
55cf7ff734
74 files changed
+1525
-1182
No files matched your search
@@ -1,11 +1,9 @@
|
||||
"""Short canonical names for shipping notice API fields and state machine.
|
||||
"""
|
||||
services/shipping_notice/constants.py
|
||||
|
||||
Naming layers (avoid drift):
|
||||
- CP_* — API `checkpoint` / Dify `flow_ckpt` (see state_machine.CHECKPOINT_REGISTRY)
|
||||
- RS_* — DB `review_status` where used
|
||||
- PH_* — DB `pending_human_reason` (may equal CP_* when aligned)
|
||||
- Button ids / registry — state_machine.py only
|
||||
- DB state writes — state_machine.py `TaskTransition` / `apply_task_transition` (tools.py only)
|
||||
用途:发货通知 API 字段名、checkpoint / review_status / pending_human_reason 的规范常量。
|
||||
依赖:无(纯常量模块);state_machine.py 引用 CP_*/PH_*/RS_* 注册按钮与状态迁移。
|
||||
逻辑:tools.py、tool_response、workspace API 统一读本模块,避免 checkpoint id 漂移。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -66,6 +64,7 @@ PH_UPLOAD_RPA_PENDING = "upload_rpa_pending"
|
||||
|
||||
|
||||
def payload_map_json(payload: dict[str, Any]) -> Any:
|
||||
"""从请求体读取列映射 JSON,兼容 map_json 与 legacy column_mapping_json 字段名。"""
|
||||
raw = payload.get(MAP_JSON)
|
||||
if raw is None:
|
||||
raw = payload.get(MAP_JSON_LEGACY)
|
||||
|
||||
Reference in new issue
Block a user