feat: 整体更新同步

This commit is contained in:
2025-12-15 02:59:03 +08:00
parent ee1468492a
commit ed7c45b48e
15 changed files with 143 additions and 80 deletions

View File

@@ -61,12 +61,12 @@ def cmd_decide_result() -> bool:
return False
if pending is None:
_print_error("未找到待定项数据", "请先执行 aide decide '<json>'")
_print_error("未找到待定项数据", "请先执行 aide decide submit '<json>'")
return False
session_id = pending.meta.session_id if pending.meta else None
if not session_id:
_print_error("决策结果已过期", "pending.json 已被更新,请重新执行 aide decide '<json>'")
_print_error("决策结果已过期", "pending.json 已被更新,请重新执行 aide decide submit '<json>'")
return False
try:
@@ -83,7 +83,7 @@ def cmd_decide_result() -> bool:
for path in storage.decisions_dir.glob("*.json")
)
if has_history:
_print_error("决策结果已过期", "pending.json 已被更新,请重新执行 aide decide '<json>'")
_print_error("决策结果已过期", "pending.json 已被更新,请重新执行 aide decide submit '<json>'")
else:
_print_error("尚无决策结果", "请等待用户在 Web 界面完成操作")
return False

View File

@@ -57,7 +57,7 @@ class DecideStorage:
"""保存用户决策为历史记录。"""
pending = self.load_pending()
if pending is None:
raise DecideError("未找到待定项数据,请先执行 aide decide '<json>'")
raise DecideError("未找到待定项数据,请先执行 aide decide submit '<json>'")
if pending.meta is None:
raise DecideError("pending.json 缺少 _meta.session_id")
record = DecisionRecord(