dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
维吾尔语插件 — 让 DeepSeek Harness 里的 AI 用维吾尔文(UEY 阿拉伯字母)回复,附带开发术语表和 UEY↔ULY 转写工具。
Uyghur language plugin for DeepSeek Harness: replies in UEY (Arabic script) by default, with a dev-term glossary and a UEY↔ULY transliteration tool.
dir="auto" + text-align: start,MutationObserver 覆盖流式渲染)。uyghur_transliterate:UEY(阿拉伯字母)↔ ULY(拉丁字母)双向转写,纯本地确定性算法。uyghur_glossary:按英文/ULY/UEY/中文查术语表。/uyghur:on / off / status / uly never|uncertain|always,实时切换,无需重启。cordis.patch.yml 中的 config 块(strategy / attachUly / includeGlossary)。# 从 GitHub 安装(推荐)
dsh plugin --profile web add github:Furdavus/dsh-uyghurche
# 或从本地目录安装
dsh plugin --profile web add <path-to-this-directory>
或手动:把本目录加入 profile 的 dependencies(link: 或 file: 方式),并把 dsh-uyghurche 加入 package.json 的 dsh.profile.bundles 数组,然后重启 profile。
安装后需重启 web profile 使 bundle 层生效(bundle 在启动时装载,不参与热重载)。
编辑插件包内 cordis.patch.yml 的 config 块(或在 profile 的 cordis.patch.yml 中覆盖),重启后生效:
| 键 | 值 | 说明 |
|---|---|---|
strategy | uyghur-always(默认)/ follow-user | 始终维吾尔语回复 / 跟随用户语言 |
attachUly | never / uncertain(默认)/ always | 不附 ULY / 拼写没把握时附 / 每句附 |
includeGlossary | true(默认)/ false | 是否在系统提示词中内嵌术语表(约 1500 token) |
运行时开关(/uyghur)持久化在 $DSH_HOME/uyghur-plugin/state.json。
node test/smoke.mjs # 宿主半部:转写、术语一致性、提示词
node test/client.mjs # 客户端半部:DOM mock 下的方向应用与幂等性
无外部依赖。
lib/glossary.js。/uyghur 运行时开关除外)。data-chat-flow-kind(assistant/message、assistant/live-chunk、user/message);Web 客户端升级若改动了这些节点类型,需同步更新 lib/client.js 的选择器。