xushilianzhuren/dsh-golden-ward ↗★ 0
dsh-golden-ward
Customization golden guardian: capture a golden copy of any frequently-overwritten file (default: the dsh-market web client) and restore it whole-file via /goldenward/api (status/init/restore). Pair with a watchdog for 60s auto-heal after upgrades.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xushilianzhuren/dsh-golden-wardREADME
Read the full README ↗Usage
- Customize your target file as usual.
- Capture the golden copy once:
curl -X POST "http://127.0.0.1: /goldenward/api?act=init" - Check any time:
curl "http://127.0.0.1: /goldenward/api?act=status" - Restore after an upgrade clobbers it:
curl -X POST "http://127.0.0.1: /goldenward/api?act=restore"
Restore is guarded: it refuses when golden or target is missing, or when the
golden copy lacks the configured marker string (defaults to golden-ward;
set your own marker in config so it matches your customization).