ponytail/scripts
DietrichGebert 40e50d9e03
fix: don't crash uninstall on malformed settings.json (#481)
If settings.json contained invalid JSON, JSON.parse threw a SyntaxError, which
has no .code, so the catch rethrew it and crashed the script — after the mode
flag and config file were already removed, leaving cleanup half-done. Handle
SyntaxError explicitly: warn that the statusLine entry couldn't be removed and
leave the file untouched, since invalid JSON can't be safely edited. Adds a
regression test that a malformed settings.json exits 0, warns, and is left
byte-for-byte intact.

Closes #434

Co-authored-by: isaukywhite <50426537+isaukywhite@users.noreply.github.com>
2026-07-02 01:30:30 +02:00
..
build-openclaw-skills.js Trigger ponytail skill on any coding task, not just keywords 2026-06-29 07:06:59 +02:00
check-rule-copies.js feat: add Antigravity .agents/rules/ponytail.md rule copy (#119) 2026-06-19 00:24:49 +02:00
check-versions.js Add Devin CLI plugin manifest (#318) 2026-06-26 02:26:13 +02:00
publish-openclaw-skills.js fix: use --tags (not --tag) for clawhub skill publish (#277) 2026-06-23 23:12:19 +02:00
uninstall.js fix: don't crash uninstall on malformed settings.json (#481) 2026-07-02 01:30:30 +02:00