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.

パッケージ
dsh-golden-ward
互換性
未検証
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/10/31

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xushilianzhuren/dsh-golden-ward

ドキュメント

README 全文を読む ↗

Usage

  1. Customize your target file as usual.
  2. Capture the golden copy once: curl -X POST "http://127.0.0.1: /goldenward/api?act=init"
  3. Check any time: curl "http://127.0.0.1: /goldenward/api?act=status"
  4. 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).