zhou1736948757-cpu/dsh-plugin-safe

zhou1736948757-cpu★ 0Shell最后同步: 2026-08-15

在 GitHub 打开

Safe wrapper around dsh plugin for DeepSeek Harness — prevents Symbol-conflict tool crashes and global dsh deletion

README 摘要

dsh-plugin-safe Safe wrapper around dsh plugin for DeepSeek Harness — install/remove community plugins without breaking the harness. dsh plugin 的安全包装脚本 —— 装/删社区插件时不再踩两个经典大坑: 工具调用全部崩溃 和 全局 dsh 被误删 。 The problem / 问题背景 Installing community plugins into a dsh profile makes pnpm hoist physical copies of @deepseek-ai/ packages into /node modules . Those copies carry different module-level Symbols from the global dsh install (e.g. TOOL RUNTIME SCHEDULER ), so the plugins and the agent loop disagree — and every tool call crashes with: The known fix is replacing those copies with symlinks pointing back at the global install. But pnpm treats symlinked node modules as writable directories: the next dsh plugin run follows the links and can delete the global dsh packages entirely ( ERR MODULE NOT FOUND on the next boot). dsh-plugin-safe reconciles both requirements around every pnpm operation. How it works / 原理 Usage / 用法 The script prints the restart command at the end; bundle changes need a web restart: Requirements / 依赖 - macOS / Linux, bash - dsh installed globally via npm - npm on PATH (used to locate the global install) Notes / 注意事项 - DSH HOME overrides /.dsh ; DSH PLUGIN PROFILE selects…

在 GitHub 查看完整 README →
工具/开发bashdeepseek-harnessdshdsh-pluginplugin-managersymlinkagent

分类