Files
Wyatt Fang 30fecaae5e release(codestable): ship skill workflow v1.0.2 (#41)
收敛 CodeStable 主入口、runtime preflight、goal driver 与 skill 工程化评测闭环。

- 根 cs 对行动请求同轮直转,咨询与介绍保持非执行
- feature/issue/refactor/epic/docs 按仓库事实恢复,旧 stage skill 保留兼容薄壳
- repo-local runtime 支持版本检测、安全自动同步和显式 refresh-runtime
- 完成 Codex/Claude marketplace 1.0.2、升级文档和回归/评测证据

验证:215 tests passed;package/runtime/diff checks passed;独立 review 与 QA 无 unresolved blocking/important findings。
2026-07-10 15:23:56 +08:00

33 lines
941 B
Python

#!/usr/bin/env python3
import sys
from pathlib import Path
OLD = """ if new_status == models.STATUS_DONE:
completed_at = datetime.now().isoformat(timespec="seconds")
conn.execute(
"""
NEW = """ if new_status == models.STATUS_DONE:
completed_at = datetime.now().strftime("%m/%d/%Y %H:%M:%S")
conn.execute(
"""
def main():
if len(sys.argv) != 2:
print("usage: python3 inject.py <repo_path>", file=sys.stderr)
return 1
path = Path(sys.argv[1]) / "taskhub" / "services" / "tasks.py"
text = path.read_text(encoding="utf-8")
if OLD not in text:
print("g05 injection failed: expected completed_at timestamp string not found", file=sys.stderr)
return 1
path.write_text(text.replace(OLD, NEW, 1), encoding="utf-8")
print("g05 injected: completed_at is stored in a legacy non-ISO format")
return 0
if __name__ == "__main__":
raise SystemExit(main())