RicardoYan/dsh-symlink-passthrough ↗★ 0
dsh-symlink-passthrough
Open in-workspace symlinks and junctions in the DSH sidebar · 让 DSH 侧边栏能展开、打开工作区内的符号链接(含 Windows junction) 适合在工作区中大量使用symlink或junction,且需要通过侧边栏直接访问的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:RicardoYan/dsh-symlink-passthroughドキュメント
README 全文を読む ↗dsh-symlink-passthrough
让 DSH 侧边栏「文件」树能展开、打开工作区里的符号链接(含 Windows junction)。
DSH 默认按链接的真实路径判断是否在工作区内,所以指向工作区外的链接会报错:展开时报 outside-workspace,打开时报 not-regular-file。
安装
dsh plugin --profile desktop add github:RicardoYan/dsh-symlink-passthrough#v0.1.0
Web 端把 desktop 换成你的 profile 名(一般是 web)。装完重启 DSH。
卸载:dsh plugin --profile desktop remove dsh-symlink-passthrough
安全边界
- 只放行位于工作区内的链接,链接目标可以是磁盘上任意位置
- 照旧拒绝:工作区外的路径、带
..的路径、其他盘符 - 只影响侧边栏,agent 的读写权限不变
- 能访问 DSH Web 端口的本地程序,也能借这些链接浏览链接目标
注意
- 依赖 DSH 的两个内部方法(
fs.contains、workspaceFiles.locateFile),适用于@deepseek-ai/dsh>=0.2.0-rc.2 <0.3.0-0 - 这两个方法缺失时,启动日志会出现
[symlink-passthrough] ... missing告警,插件不再生效,普通文件不受影响 - 在 bundle 配置里写
enabled: false可以关闭插件
许可证
MIT