dsh-compat-shims
其他 活跃维护

dsh-compat-shims

xiaohj233/dsh-compat-shims

为DeepSeek Harness 0.1.0-rc.6提供跨版本兼容垫片,内置pi-ai适配、沙盒架构修正、键盘防护三类模块,无需修改原有代码即可平滑适配不同版本特性,开箱即用。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
151 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xiaohj233/dsh-compat-shims
git clone https://github.com/xiaohj233/dsh-compat-shims.git
git clone git@github.com:xiaohj233/dsh-compat-shims.git
README.md main

dsh-compat-shims

English | 中文

Compatibility packages for specific DeepSeek Harness 0.1.0-rc.6 behavior. The repository root is not a DSH bundle; install one package from its subdirectory and package-specific tag.

Package Status Purpose
dsh-pi-ai-compat Compatibility Patch Restores configurable pi-ai compatibility fields and model-level reasoning defaults that are not exposed by the rc.6 Harness schema/UI.
dsh-sandbox-schema-shim Compatibility Shim Removes redundant escalation fields from model-facing tool schemas only in danger-full-access.
dsh-keyboard-guard Compatibility Shim Prevents programmatic focus from opening a touch device's keyboard.

Install

dsh plugin --profile web add "github:xiaohj233/dsh-compat-shims#pi-ai-compat-v0.1.0&path:/packages/pi-ai-compat"
dsh plugin --profile web add "github:xiaohj233/dsh-compat-shims#sandbox-schema-shim-v0.1.1&path:/packages/sandbox-schema-shim"
dsh plugin --profile web add "github:xiaohj233/dsh-compat-shims#keyboard-guard-v0.1.0&path:/packages/keyboard-guard"

On Windows, the dsh plugin forwarder runs pnpm through cmd.exe, which splits the & in the subdirectory fragment. Install with pnpm directly, then let the next dsh plugin call reconcile the bundle layer:

pnpm --dir %USERPROFILE%\.dsh\profiles\web add "github:xiaohj233/dsh-compat-shims#sandbox-schema-shim-v0.1.1&path:/packages/sandbox-schema-shim"
dsh plugin --profile web update

Each package has its own configuration, safety, testing, and uninstall instructions in its directory.

Compatibility policy

The packages are tested against DSH 0.1.0-rc.6, Node.js ^22.19.0 || >=24, and pnpm >=10. The pi-ai package also targets @earendil-works/pi-ai@0.82.1. File patches refuse untested versions or structural mismatches. The event-based and client-only shims do not patch upstream files but still rely on rc.6 contracts.

Development

pnpm test
pnpm run check

The repository intentionally has no CI workflow or release automation. Releases use package-specific tags whose versions match the corresponding package.json.

License

MIT. Patch targets retain their upstream licenses; see THIRD_PARTY_NOTICES.md and package documentation.