dsh-sidebar-explorer-plus

DSH PLUGIN会话与消息

仓库 Wulabalabo/dsh-sidebar-Explorer-Plus · npm dsh-sidebar-explorer-plus

会话与消息 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

DSH plugin 为侧边栏新增「文件」tab,内置固定于工作区的文件树,支持上传、移动、删除、重命名与新建文件夹,补齐 better-sidebar Explorer 的写操作。

验证等级 L5 L5 · 运行验证通过
GitHub 星标 3 复刻 1 · 未关闭 issue 0
最近更新 2026-09-06 创建于 2026-08-18
README 6.4 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:Wulabalabo/dsh-sidebar-Explorer-Plus
兼容 DSH 版本0.2.0-rc.2 等 12 个版本版本不匹配时安装会报错
Node.js 要求>=20来自仓库 package.json 的 engines 字段
前置依赖cordis@^4.0.0-rc.7、dsh-better-sidebar@>=0.4.0 等 3 个需要同时安装的同级依赖
npm 包名dsh-sidebar-explorer-plus可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-sidebar-explorer-plus:DeepSeek Harness 侧边栏文件管理插件

  • 拖拽上传文件/文件夹
  • 文件树浏览与打开
  • 拖拽移动与重命名
  • 删除与新建文件夹

适用场景

文件读写存储

上游标签

dshdsh-better-sidebardsh-plugindsh-plugin-marketdsh-plugins

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度稳定按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✓ 通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询
— · 其它检查项
  • L4_0_SANDBOX 沙盒安装判定 方式:沙盒安装执行

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方Wulabalabo仓库 dsh-sidebar-Explorer-Plus · 默认分支 main
分类会话与消息desktop
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue3 / 1 / 0收录时的数值,非实时
创建 / 更新2026-08-18 · 2026-09-06最后推送 2026-09-06
本站收录2026-08-18首次进入本站目录的时间

README 全文

6.4 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-sidebar-explorer-plus

A TypeScript / React file manager for the DeepSeek Harness sidebar.

English · 中文

English

Adds a Files tab to dsh-better-sidebar through its public ctx.betterSidebar.registerTab service. The plugin combines a React file tree with host-side file operations, without modifying the sidebar foundation.

Features

  • Drag and drop files or folders to upload, preserving folder structure.
  • Move, rename, delete, and create directories from the file tree.
  • Open files in the sidebar editor.
  • Reject existing destinations when moving or renaming. Uploads can replace existing files; deletion is permanent and asks for confirmation in the UI.
  • Host/origin request checks, upload-size limits, and working-directory path checks in the host API.

Install

Requires a running DSH web profile, dsh-better-sidebar (peer dependency >=0.4.0), and Node.js 20 or newer.

dsh plugin --profile web add github:Wulabalabo/dsh-sidebar-Explorer-Plus

Restart dsh web, then hard-refresh the browser. Open the sidebar + menu and select Files / 文件. The repository includes built files in lib/, so Git-based installation does not require a local build.

Code and API map

Part Responsibility
src/index.ts Host routes, request checks, upload limits, file operations, and structured errors.
src/client/index.tsx React file tree, drag and drop, context menus, and tab registration.
build.mjs Host/client bundling; the build script also generates TypeScript declarations.
cordis.patch.yml Plugin mounting configuration.

All operations use POST /sidebar-explorer/:

Operation Payload
upload Query: sessionId, name, optional dir and cwd; raw bytes in the body.
delete / mkdir JSON: sessionId, absolute path, optional cwd.
move JSON: sessionId, absolute from and to, optional cwd.
rename JSON: sessionId, absolute path, new name, optional cwd.

Successful operations return { ok: true, value }. Operation errors return { ok: false, error: { code, message } }; rejected trust checks and unsupported HTTP methods return plain HTTP 403/405 responses.

Development

npm ci
npm run typecheck
npm run build

The default upload limit is 50 MiB per file. Set uploadLimit in the profile config to change the byte limit; see the configuration example below.

Troubleshooting and operating scope

  • Tab missing: confirm the sidebar dependency is installed, restart the host, and hard-refresh the browser.
  • HTTP 403: check the configured trusted host and the browser origin.
  • HTTP 409 on move/rename: choose a destination that does not already exist.
  • Upload too large: reduce the file size or adjust uploadLimit.

The current path checks compare path strings; they do not resolve symlinks or fully canonicalize traversal segments in every operation. Working-directory selection also has client/process fallbacks. Run this in a trusted workspace; these checks do not establish isolation for untrusted filesystem content or callers.

中文

一个 dsh-better-sidebar 的消费插件:在侧边栏新增一个「文件」tab,内置一棵固定在工作区(cwd)内的文件树,提供真正的文件管理能力——上传、移动、删除、重命名、新建文件夹。它补充了 better-sidebar 自带 Explorer 缺失的「写」操作(Explorer 只读)。

它通过 dsh-better-sidebar 公开的 ctx.betterSidebar.registerTab 服务注册,是一个独立插件,不改动 better-sidebar 源码。

功能

  • 🗂️ 拖拽任意文件(文本 / 图片 / PDF / 二进制…)上传,上传到指定目录
  • 📁 拖拽整个文件夹上传,按原目录结构落盘
  • 📂 文件树展示文件与文件夹;点文件在侧边栏编辑器打开
  • ↕️ 拖拽移动:把文件/文件夹拖到另一个文件夹上移动(冲突报错跳过,不覆盖)
  • ✏️ 重命名:右键 → 重命名
  • 🗑️ 删除:右键 → 删除(永久删除 + 二次确认;文件夹递归删除)
  • ➕ 新建文件夹:在选中目录下建子目录
  • 🔒 Host/Origin 请求检查、上传大小限制及工作目录路径检查;当前实现使用路径字符串比较,不保证符号链接或所有路径穿越场景的隔离,请用于可信工作区。

安装

> 前置:已安装 dsh-better-sidebar(本插件通过其 betterSidebar 服务注册 tab)。

dsh plugin --profile web add github:Wulabalabo/dsh-sidebar-Explorer-Plus

装完重启 dsh web(本插件含 host 半),再浏览器硬刷新(Cmd/Ctrl+Shift+R),侧边栏 + 菜单里就会出现「文件」tab。

工作原理

半边 作用
host(src/index.ts → lib/index.js) 注册 /sidebar-explorer/* 路由:upload(原始字节)/ delete / move / rename / mkdir(JSON),全部限定在会话 cwd 内
client(src/client/index.tsx → lib/client.js) ctx.betterSidebar.registerTab 注册 sidebar-explorer tab,渲染文件树 + 拖拽区 + 右键菜单

路由契约:POST /sidebar-explorer/;upload 用 query(sessionId/dir/name)+ 原始 body,其余用 JSON body(sessionId/path/from/to/name),均可携带可选 cwd。成功响应为 { ok: true, value },操作错误为 { ok: false, error: { code, message } };请求信任检查失败或 HTTP 方法不支持时直接返回 403/405。

开发 / 构建

npm install           # 安装 devDependencies
npm run typecheck     # tsc --noEmit
npm run build         # esbuild 打包 + 生成 lib/types/*.d.ts
  • lib/ 是构建产物,已提交进仓库,因此从 git 安装无需任何构建步骤。
  • 客户端 bundle 走 window.__ModuleLoader__.load({ id: 'dsh-sidebar-explorer-plus', factory }) 注册,react 作为 external 由模块表运行时解析。

配置(可选)

在 profile 的挂载行加 config 可调上传大小上限(默认 50 MB):

- insert:
- id: sidebar-explorer
name: 'dsh-sidebar-explorer-plus'
config:
uploadLimit: 104857600   # 100 MB

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-sidebar-explorer-plus 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:Wulabalabo/dsh-sidebar-Explorer-Plus` 即可。对应的 npm 包名是 `dsh-sidebar-explorer-plus`。

dsh-sidebar-explorer-plus 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-sidebar-explorer-plus 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-sidebar-explorer-plus 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.2.0-rc.2、0.2.0-rc.1、0.1.7-rc.2、0.1.7-alpha.2、0.1.6-alpha.2、0.1.6-alpha.1、0.1.5-rc.2、0.1.3-alpha.2。版本较多,只列出前 8 个。

dsh-sidebar-explorer-plus 需要什么运行环境?

Node.js >=20;需要同时安装 cordis@^4.0.0-rc.7、dsh-better-sidebar@>=0.4.0、react@^18.2.0。环境不满足时安装会失败,建议先确认本机版本。

dsh-sidebar-explorer-plus 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-sidebar-explorer-plus 有哪些功能?

拖拽上传文件/文件夹、文件树浏览与打开、拖拽移动与重命名、删除与新建文件夹。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。