Files
kxkm_clown/scripts/patch-tab-complete.py
Codex Local a117a69d24 feat: /changelog, /version, PLAN+STATUS update — session wrap 104 lots
34 commands, 425 tests, 12 services, all green
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 13:17:55 +01:00

15 lines
410 B
Python

#!/usr/bin/env python3
"""Patch useChatState.ts to add /changelog and /version to tab-completion."""
filepath = "/home/kxkm/KXKM_Clown/apps/web/src/hooks/useChatState.ts"
with open(filepath, "r") as f:
content = f.read()
old = '"/flip"'
new = '"/flip", "/changelog", "/version"'
content = content.replace(old, new)
with open(filepath, "w") as f:
f.write(content)
print("OK: tab-completion patched")