mirror of
https://mirror.skon.top/github.com/cft0808/edict
synced 2026-04-20 21:00:16 +08:00
状态机:
- kanban_update.py 新增 _VALID_TRANSITIONS 校验, 非法状态跳转被拒绝
- _STATE_AGENT_MAP['Taizi'] 从旧 ID 'main' 修正为 'taizi'
数据一致性:
- zaochao emoji 前后端统一为 📰 (store.ts + dashboard.html)
- zaochao org '朝报司' 修正为 '钦天监' (sync_from_openclaw_runtime.py)
- server.py _MIN_TITLE_LEN 10→6, 与 kanban_update.py 保持一致
- schema.json 从 v2 重写为 v3, 对齐实际 11 状态 + 14 字段 + 11 角色
安装:
- install.sh first_sync 补充 sync_officials_stats.py 调用
文档:
- README 新增朝堂议政面板说明 + 状态机校验说明 + install 步骤更新
- CONTRIBUTING 更新测试断言数 + 新增 court_discuss.py 条目
40 lines
871 B
JSON
40 lines
871 B
JSON
{
|
|
"meta": {
|
|
"title": "军机处",
|
|
"ownerTitle": "皇上",
|
|
"version": "v3"
|
|
},
|
|
"states": ["Pending", "Taizi", "Zhongshu", "Menxia", "Assigned", "Next", "Doing", "Review", "Done", "Blocked", "Cancelled"],
|
|
"stateFlow": "Pending → Taizi → Zhongshu → Menxia → Assigned → Doing → Review → Done",
|
|
"terminalStates": ["Done", "Cancelled"],
|
|
"roles": {
|
|
"taizi": "太子",
|
|
"zhongshu": "中书省",
|
|
"menxia": "门下省",
|
|
"shangshu": "尚书省",
|
|
"hubu": "户部",
|
|
"libu": "礼部",
|
|
"bingbu": "兵部",
|
|
"xingbu": "刑部",
|
|
"gongbu": "工部",
|
|
"libu_hr": "吏部",
|
|
"zaochao": "钦天监"
|
|
},
|
|
"taskFields": [
|
|
"id",
|
|
"title",
|
|
"official",
|
|
"org",
|
|
"state",
|
|
"now",
|
|
"eta",
|
|
"block",
|
|
"output",
|
|
"ac",
|
|
"flow_log",
|
|
"updatedAt",
|
|
"todos",
|
|
"progress_log"
|
|
]
|
|
}
|