OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:doudoudouhuahua/dsh-copy-file
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness (DSH) 的右侧文档预览加一个「复制文件」按钮: 点击后把当前预览的文件放进 Windows 剪贴板,直接到任意文件夹里 Ctrl+V 就能粘贴这个文件, 不用再回原文件夹里找。
要求:Windows + DSH Desktop(0.2.x,自带 PowerShell 5.1)。
在 DSH 会话里执行:
plugin_manager(action: "install_bundle", target: "github:doudoudouhuahua/dsh-copy-file")
安装完成后 完全退出并重新打开 DSH Desktop。
# 1) 克隆到任意目录
git clone https://github.com/doudoudouhuahua/dsh-copy-file.git D:\AI\dsh-copy-file
# 2) 在 profile 的 package.json 里加依赖
# "dsh-copy-file": "link:D:/AI/dsh-copy-file"
# 并把 "dsh-copy-file" 加到 dsh.profile.bundles 末尾
# 3) 建 junction(Windows)
cmd /c mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-copy-file" "D:\AI\dsh-copy-file"
# 4) 完全退出并重新打开 DSH Desktop
注意:复制会覆盖剪贴板当前内容;一次复制一个文件(预览本身也是单文件)。
| 半边 | 作用 |
|---|---|
lib/client.js |
在 sidebar.right.tab.document.actions 插槽注册按钮,把 absolutePath POST 给宿主 |
lib/index.js |
注册 POST /dsh-copy-file,校验绝对路径存在且是普通文件;调用 powershell.exe -Sta -Command "Set-Clipboard -LiteralPath ..." |
cordis.patch.yml |
bundle 挂载声明(host 行 dsh-copy-file) |
宿主路由只接受本机同源、已认证的 POST;不会读取文件内容,也不把路径写进日志。
sidebar.right.tab.document.actions 插槽与 webServer.register 路由 API)。Set-Clipboard -LiteralPath 需要 Windows PowerShell 5.1;无需管理员权限)。package.json 删除依赖与 bundles 项;cmd /c rmdir "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-copy-file"(只删链接);CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: clipboard。