DosterBool/dsh-ocr-seam-guard

DosterBool★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

Self-healing guard for dsh-ocr: auto re-applies the llm-deepseek adapter OCR seam and plugin fixes wiped by dsh upgrades

README excerpt

dsh-ocr-seam-guard Self-healing guard for the dsh-ocr plugin on DeepSeek Harness: automatically re-applies the local patches that npm i -g @deepseek-ai/dsh upgrades (or a plugin re-install) wipe out. 中文说明见下方。 What it guards The dsh-ocr plugin needs three fixes that live OUTSIDE the profile (so profile reconcile never touches them, and a harness upgrade wipes the adapter one): Fix File Wiped by The ocr service seam in the official dsh-llm-deepseek adapter /node modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js npm i -g @deepseek-ai/dsh upgrade UTF-8 stdout enforcement for the Python OCR subprocess /profiles/node modules/@deepseek-ai/dsh-ocr/lib/index.js plugin re-install rapidocr 1.2.3 API fix ( text det → text detector , text rec → text recognizer ) /profiles/node modules/@deepseek-ai/dsh-ocr/tools/ocr image.py plugin re-install How it works On every harness boot the plugin checks the three sites. A missing fix is re-applied with anchored string replacements — every anchor must match exactly once or the whole site is skipped (never a partial patch) — then the patched module is import-verified in a child node process. A failed verification rolls the file back and reports the error.…

View full README on GitHub →
Media / Contentdsh-pluginocr

Category