修复:Agent state 枚举语义反了,0=草稿 1=已发布

list/detail 两处 STATE_MAP 均将 0/1 含义对调,同步更新 README.agent.md 枚举说明。
This commit is contained in:
gitea committed 2026-04-08 14:48:28 +08:00
1 parent 6f5c93f387
commit 8ae14842cc
3 files changed
+6 -8

No files matched your search

+4 -6
View File
@@ -12,13 +12,11 @@
**state(Agent 状态)**
| 值 | 含义 | 接口 |
| 值 | 含义 | 备注 |
|---|---|---|
| `0` | 启用(已关联审批流) | `GET /agent/active?state=0` |
| `1` | 未启用(未关联审批流) | `GET /agent/active?state=1` 或新建默认值 |
| `2` | 已删除 | `GET /agent/active?state=2`(不可恢复) |
> `state` 通过 `/agent/active` 接口单独变更,与 `/agent/save` 无关。
| `0` | 草稿 | 新建默认值,未发布 |
| `1` | 已发布 | 已关联审批流并生效 |
| `2` | 已删除 | 不可恢复 |
## 四类条款语义(对应前端「AI审核决策偏好」)