rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gejx-gejingxuan/dsh-archive-sidebar
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DeepSeek Harness Web UI 的右侧边栏里的压缩包管理器:像原生解压软件一样浏览 zip / rar / 7z / tar / gz / bz2 / xz,预览并直接编辑里面的文本文件、把未解压的子文件开成侧边栏标签、用系统默认程序打开文档;需要时再让 AI 帮忙改。
截图:暂缺(欢迎 PR 补充)。面板按 Harness 原生右侧边栏组件绘制,跟随明暗主题。
本插件是 DSH 的 bundle(Host 插件 + Web 客户端插件),无需构建:client.js 是手写的 __ModuleLoader__ bundle,Host 侧是纯 Node ESM。
https://github.com/gejx-gejingxuan/dsh-archive-sidebarplugin_manager 工具的 install_bundle,target 填 clone 后的绝对目录或上面的 git 地址(需要 full-access 权限或审批)。要求:Node.js ≥ 20(Engine 用 node:test 做测试);Windows 上想要 rar 读写请安装 WinRAR(默认路径 C:\Program Files\WinRAR\)。
.zip / .rar / .7z 等文件,由本插件接管并解析。Ctrl+S 保存、换行开关、脏标记与还原;保存即原地写回压缩包。archive_* 工具完成修改。日常操作用面板本身即可,不需要 AI。.5px 分隔线、28×28 图标工具按钮、文件树样式条目、原生输入框/等宽编辑器、原生 chip(16px 线框图标 + 标题)与向导卡片图标;颜色只使用主题 token,自动跟随明暗主题。D:\data\site.zip)。| 格式 | 浏览 / 读取 | 原地修改 | 引擎 |
|---|---|---|---|
| zip / zipx | ✅ | ✅ | 随包 7-Zip (bin/7za.exe) |
| 7z | ✅ | ✅ | 随包 7-Zip |
| tar / gz / tgz / bz2 / xz / cab / iso / lzh / zst | ✅(读取/解压) | ❌ | 随包 7-Zip |
| rar / rar5 | ✅(读取/解压) | ✅(写入需 WinRAR 的 Rar.exe) |
本机 WinRAR (UnRAR.exe / Rar.exe) |
RAR 解包与写入依赖本机安装的 WinRAR。未安装时 RAR 仍会尝试用 7-Zip 读取(7-Zip 支持 RAR 解包),但写入会提示不可用。
注册为全局工具,任何会话都可直接使用:
| 工具 | 作用 |
|---|---|
archive_list |
列出压缩包条目 |
archive_read |
读取一个文本条目 |
archive_write |
覆盖/新增文本条目(mode: replace \| add) |
archive_add_file |
把磁盘上的一个文件加入压缩包(保留原字节) |
archive_rename |
重命名压缩包内的一个条目 |
archive_delete |
删除条目 |
archive_extract |
解压全部或部分条目到目录 |
archive_create |
把目录打包成新压缩包 |
路径一律使用绝对路径,条目一律使用 POSIX 风格(dir/file.txt)。
可以在 profile 的 cordis.patch.yml 中覆盖工具位置(通常不需要):
- id: archive-sidebar
config:
sevenZip: 'D:\tools\7-Zip\7za.exe'
rar: 'D:\tools\WinRAR\Rar.exe'
unrar: 'D:\tools\WinRAR\UnRAR.exe'
node --check client.js # 浏览器半边语法
node --test tests/ # 引擎单测(zip/7z/tar/gz/tgz,以及有 WinRAR 时的 rar)
node scripts/rpc-smoke.mjs # Host RPC 端到端(含 addFile/rename/openEntry/reveal/错误码)
node scripts/client-smoke.mjs # 客户端 bundle 注册 + 资源协议 + 原生样式守卫
tests/ 在缺少 WinRAR 的机器(例如 CI)上会自动跳过 rar 用例;scripts/client-smoke.mjs 用假 Cordis 客户端上下文加载 client.js,不需要浏览器。
目录结构:
index.js — Host 入口:注册 RPC 路由、archive_* 工具、AI 请求转发lib/archive.mjs — 归档引擎(7-Zip / WinRAR 子进程封装、列表解析、原地更新)lib/paths.mjs — 路径与条目名校验lib/rpc.mjs — 面板 RPC 分发(含 openEntry/reveal 桌面动作)lib/tools.mjs — Agent 工具定义client.js — 浏览器半边:两个侧边栏 Tab 类型、UI、archive-entry 资源协议bin/7za.exe — 随包 7-Zip 控制台版(见 bin/7z-License.txt)tests/、scripts/ — 单测与端到端 smokeDESIGN.md — 实现契约(并行开发/维护用)/api/dsh-archive/rpc,只接受已认证的浏览器连接(与 Harness 其它 /api 路由同一套校验)。..、绝对路径、盘符)。truncated)。%TEMP%\dsh-archive-open\…)再交给系统默认程序,不会修改压缩包。A sidebar archive manager for the DeepSeek Harness Web UI. It opens zip / rar / 7z / tar / gz / bz2 / xz archives in the right sidebar, previews and edits text entries in place, opens an archived file as its own sidebar tab without extracting, hands documents (docx, pdf, …) to the OS default application, and can ask the session agent to modify an archive through the bundled archive_* tools. The UI follows the native Harness sidebar components and theme tokens.
Install it as a DSH bundle (no build step required) from a local checkout or a git URL via the Plugins page, or with plugin_manager install_bundle. RAR read/write requires a local WinRAR installation; everything else uses the bundled 7-Zip console binary.
本项目代码使用 MIT License(见 LICENSE)。
随包的 7-Zip(bin/7za.exe)、以及运行时依赖的本机 WinRAR,见 THIRD-PARTY-NOTICES.md。7-Zip 的完整许可见 bin/7z-License.txt(GNU LGPL + unRAR restriction);RAR 相关功能不包含任何 RAR 代码或二进制,仅调用本机已安装的 WinRAR 可执行文件。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。