Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@gavinc-cn/dsh-plugins-ui

Latest version: v0.2.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: gavinc-cn
1 Stars
0 Forks
8 Versions
1.4K Downloads
JavaScript Repo language

Scan summary

@gavinc-cn/dsh-plugins-ui was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 3 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 0.2.0.
  • Downloads: 1,396 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 29 Nov 2026 No rules fired
0.1.9 25 Nov 2026 No rules fired
0.1.8 24 Nov 2026 No rules fired
0.1.7 19 Nov 2026 Not shown
0.1.6 18 Nov 2026 Not shown

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@gavinc-cn/dsh-plugins-ui

把面向 Web GUI 的自研插件收成一个可安装单位的 bundle 包:装上它,Plugins 面板里多出 一张标题为包名的卡片(@gavinc-cn/dsh-plugins-ui);卡片里的每个组件(组合行)= 一个独立开关。

标题为什么是包名:面板标题的取值链是「locale/*.json 的 meta.title → 缺省回落 package.json 的 name」。本包故意不写 meta.title(2026-10-15 起),只保留 meta.description 供描述 本地化 —— 这样卡片标题与 @gavinc-cn/touchstone-dsh 一样直接显示包名。

  • 一个包 = 面板一张卡片:包名出现在 profile 的 dsh.profile.bundles 里,本包的 cordis.patch.yml 就会被当作一个配置层叠加进组合树。
  • 组件 = 行 = 开关:本包每条 - insert: 声明一个组件;行状态(disabled)由各 profile 的 cordis.patch.yml 覆盖行持有,面板里拨开关就是往那里写回。
  • 整包开关:包名在不在 dsh.profile.bundles(改它要重启宿主)。

归属判据

面向 Web GUI 的组件归本包(2026-10-15 修订;此前是「声明了 dsh.client.platform: "web" 才算」):

组件 形态
dsh-dim-text / dsh-session-unread-persist / dsh-turn-labels / dsh-sidebar-width-persist / dsh-prompt-recall / dsh-session-skill-usage(2026-11-28 新增) 纯浏览器组件:exports["./client"] 指向 lib/client.bundle.js,node 半边是空 apply()
dsh-feishu Host + client 同包(2026-10-29 新增):宿主半边负责飞书扫码/绑定/收发出站/提问审批,浏览器半边提供侧栏面板;因「面向 GUI」归本包
dsh-session-live-metrics Host projection + client 胶囊(2026-10-30 新增):宿主累计逐请求 DeepSeek token 费用和最近 5 分钟 decode 样本,浏览器在状态栏显示近 1 分钟速度与 session 费用估算
dsh-deepseek-account Host routes + client 胶囊(2026-11-23 新增):宿主查询官方余额并增量聚合全部会话的北京时间当日 token 费用,浏览器只读脱敏状态
dsh-patch-ask-expand 运行体在宿主侧(没有 dsh.client):启动时对官方 dsh-client-ui-tool 的 client bundle 打幂等文本补丁;效果完全是 GUI 观感(提问行默认展开)
dsh-patch-unsent-session 运行体在宿主侧(2026-11-18 新增):对官方 dsh-client-ui-workspace 打幂等文本补丁,让写过草稿的 blank 会话留在侧栏、标题取草稿首行
dsh-patch-draft-attachment 运行体在宿主侧(2026-11-18 新增):对官方 dsh-client-ui-conversation 打幂等文本补丁,让草稿里的附件跨会话/刷新保留(localStorage 索引 + IndexedDB)

修订缘由:按旧判据它属运行时包,但「只想装 UI 包」的人就永远发现不了它。判据因此从 「代码跑在哪」改成「面向谁」。其余宿主侧组件(记忆/守卫/沙箱等)仍在 @gavinc-cn/dsh-plugins-runtime。 两个包的行合起来 = 20 个组件 = 本包 12 + 运行时 bundle 8。kanban-board、 sandbox-path-allowlist、dsh-readonly-guard 与 2026-11-01 迁入 @gavinc-cn/touchstone-dsh 的 dsh-autocommit 不随本包下发;本包第 5 行是 2026-10-30 新增的 dsh-session-live-metrics,第 6 行是 2026-11-23 的 dsh-deepseek-account, 第 7/8 行是 dsh-prompt-recall / dsh-feishu;第 9–11 行是三个 dsh-patch-* 宿主侧补丁,最后两个 dsh-patch-unsent-session / dsh-patch-draft-attachment 于 2026-11-18 追加;第 12 行是 2026-11-28 追加的 dsh-session-skill-usage(会话头部「技能」标签页)。

安装

# 装进某个 profile(pnpm 会把 optionalDependencies 里的 12 个组件包一并装上;
# 镜像缺个别包时只跳过那一个,见下一节)
dsh plugin --profile web add @gavinc-cn/dsh-plugins-ui
  • CLI 这条路径会在 pnpm 成功后自动把新 bundle 追加进 dsh.profile.bundles(装完即启用)。
  • 走 Plugins 面板的安装入口则不会自动选择 bundle,装完要自己把整包开关打开。
  • dsh.profile.bundles 与 dependencies 两处都要有本包名:前者决定是否作为配置层加载, 后者决定面板里卡片是否显示(客户端按 installed 过滤,只看 dependencies)。
  • 改了 dsh.profile.bundles 要重启宿主才生效(启动时读);profile patch 层是 live 热重载, 行级开关不需要重启。
组件依赖是可选的(2026-11-19 起,缺包不阻塞整包)

12 个组件包写在 optionalDependencies 里:镜像缺某个组件时,pnpm 只跳过那一个,其余组件和 bundle 本体照常安装(pnpm 12.4.1 实测)。bundle 仍会进入 dsh.profile.bundles;缺失组件的行仍留在 组合树里,宿主启动时只打一条 warning(非 required 行不阻断启动):

dsh: warning: 1 entry did not activate
dsh-dim-text (@gavinc-cn/dsh-dim-text): failed to import: ... ERR_MODULE_NOT_FOUND

面板里该行显示为 failed,其他行不受影响。装成功 ≠ 12 个组件都在:缺失的包补装后重启宿主 (重跑 dsh plugin --profile <p> install,或镜像恢复后重装本包)即可恢复。若手里已有缺失包的 tgz,也可以在 profile 的 pnpm-workspace.yaml 用 file: overrides 补上,保留完整 12 个组件; 镜像恢复本身仍按发布 spec 逐包核对。

组件(12 个)

行 id 包 做什么
dsh-dim-text @gavinc-cn/dsh-dim-text 把 Web GUI 文字梯度整体调暗(仅深色模式);该行详情页可选 高/中/低 三档亮度(原来的效果 = 最高档,2026-10-24 新增)
dsh-session-unread-persist @gavinc-cn/dsh-session-unread-persist 会话列表「已完成未查看」绿点持久化到 localStorage
dsh-turn-labels @gavinc-cn/dsh-turn-labels 右侧轮次刻度轨换成常驻文字(每轮一行显示该轮提问;提问条目直接显示用户回答——蓝色区分、hover 出完整问答,读不到回答时退回原版小横杠)
dsh-sidebar-width-persist @gavinc-cn/dsh-sidebar-width-persist 左侧边栏拖动宽度持久化
dsh-session-live-metrics @gavinc-cn/dsh-session-live-metrics 状态栏新增近 1 分钟 decode 加权速度与当前主 session 的 DeepSeek 模型 token 费用估算;含宿主 projection,新增后需重启
dsh-deepseek-account @gavinc-cn/dsh-deepseek-account 状态栏显示 DeepSeek 官方 API 余额与本机全部会话的北京时间当日 token 费用估算;宿主持有凭据、查询与用量索引,新增后需重启
dsh-prompt-recall @gavinc-cn/dsh-prompt-recall 当前会话空输入框按 ArrowUp 召回上一条真人提问的完整文本;召回后按 ArrowDown 恢复原草稿。不自动发送
dsh-feishu @gavinc-cn/dsh-feishu 飞书私聊桥:扫码配置应用、一次性绑定码绑定 open_id、文本/图片/文件入站、答复与云文档出站、飞书内提问/审批双通道;仅私聊且仅插件自建会话
dsh-patch-ask-expand @gavinc-cn/dsh-patch-ask-expand 「提问 / 回答」那一行默认展开。宿主侧实现:启动时写官方 @deepseek-ai/dsh-client-ui-tool 的 lib/client.js(保留 .orig 备份;锚点对不上就跳过,只记日志)
dsh-patch-unsent-session @gavinc-cn/dsh-patch-unsent-session 写过草稿但未发送的 blank 会话继续留在侧栏,行标题取草稿首个非空行。宿主侧实现:写官方 @deepseek-ai/dsh-client-ui-workspace 的 lib/client.js
dsh-patch-draft-attachment @gavinc-cn/dsh-patch-draft-attachment composer 草稿里的截图/图片/文件跨会话与刷新保留。宿主侧实现:写官方 @deepseek-ai/dsh-client-ui-conversation 的 lib/client.js,附件字节额外落 localStorage 索引 + IndexedDB
dsh-session-skill-usage @gavinc-cn/dsh-session-skill-usage 会话头部新增「技能」标签页:按加载次序列出本会话每一次 skill 加载(轮次 / 时间 / 名称 / 来源 / 状态)。数据只来自会话事件(含 session.loadOlder() 补历史),不改官方组件

行 id 的约定是包名去掉 scope(@gavinc-cn/dsh-turn-labels → dsh-turn-labels):profile 覆盖行 按它命中,面板开关按它写回。要改组件集合,改本包的 cordis.patch.yml 即可(改完 patch 层当场热重载)。

不随本包下发的组件

@gavinc-cn/kanban-board(Web GUI 任务看板)不在本包内(2026-10-15 从本包移除:行与 dependencies 都删了)。它仍是本仓库 packages/ui/kanban-board/ 里的组件包(npm 上的 0.1.3 也仍可单独安装),只是不随任何 bundle 下发 ⇒ 装本包不会带上它。

要在某个 profile 里挂它,就在该 profile 的 cordis.patch.yml 里手写一条 insert:

- insert:
    - id: kanban-board
      name: "@gavinc-cn/kanban-board"

注意两点:① 手写 insert 在 Plugins 面板里没有行、也没有开关(面板只渲染 bundle 包自带 patch 里 insert 的行);② 同一个行 id 在整棵组合树里只能出现一次,所以别在别处再写同名 insert。

机器相关配置不要写进这里

本包只下发「有哪些组件 + 默认行为」。只有某台机器才成立的值(本地检出路径、状态目录、日志路径) 请写在 profile 覆盖层,例如:

# ~/.dsh/profiles/<profile>/cordis.patch.yml
- id: dsh-superpowers-priming      # 该组件在 runtime 包里,这里只演示覆盖行形状
  config:
    skillPath: /path/to/using-superpowers/SKILL.md

覆盖行只按 id 命中,不要写 insert、也不写 name(与官方 writePluginEnabled() 同形状)。

已知限制

  • 面板里组件的标题/说明来自各组件包自己的 locale/*.json;本包的 locale/*.json 只提供卡片 标题与描述。pluginPackages.metaOf() 每次列举都实时读盘(2026-10-15 实测)⇒ 改 locale 刷新面板即可,不必重启宿主(旧版「启动时缓存」的说法已证伪)。
  • 组件依赖是 optionalDependencies(2026-11-19 起):缺包时 pnpm 通常不打印明确的警告, 只能从启动 warning 或面板 failed 行发现;若某组件行一直 failed,先查它的包是否真的装上。
  • 卡片描述里的组件数是写死的文案(locale/*.json),加组件/减组件时要一起改(kanban-board 移出、dsh-patch-ask-expand 移入、2026-11-18 追加两个 dsh-patch-*、2026-11-28 追加 dsh-session-skill-usage 时都已同步;当前是 *12 个 = 9 个带 dsh.client + 3 个 `dsh-patch-`**)。
  • 本包因此不是纯浏览器组件集合:dsh-feishu 的宿主半边会在 DSH 进程内连接飞书并持有 WS/定时器;dsh-session-live-metrics 在宿主注册 projection;dsh-deepseek-account 持有余额查询与跨会话用量索引;三个 dsh-patch-* 会在宿主启动时写官方 npm 包的安装目录 (<dsh home>/profiles/node_modules/@deepseek-ai/dsh-client-ui-{tool,workspace,conversation}/lib/client.js)。 它们幂等、失败只记日志(~/.kimi-code/hooks/logs/patch_{ask_expand,unsent_session,draft_attachment}.log), 但如果你在只读挂载或共享安装上跑,会看到「跳过/失败」日志而不是补丁生效。

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @gavinc-cn/dsh-plugins-ui

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229