Fiker1203/dsh-plugin-renamer
Fiker1203★ 1JavaScriptLast synced: 2026-08-16
DSH Web UI 插件改名器:解决 plugin-switch 插件清单里插件名雷同不好分辨的问题,自动提取每个插件的说明并支持自定义别名(友好名),可与 plugin-switch 搭配使用。| Friendly user-editable names for the DSH plugin inventory, fixing duplicate-looking names in plugin-switch.
README excerpt
dsh-plugin-renamer — DSH 插件改名器 让 DSH Web UI 的插件清单显示 友好名称 :自动从每个插件包的 package.json 提取 description ,并允许用户自定义别名;显示层映射,不删除、不改变底层插件。 解决什么问题: 使用 plugin-switch 时,插件清单里很多插件名是雷同的模块名/条目 ID(如一堆 dsh-xxx ),光靠默认名称很难分辨哪个是哪个。本插件给每个插件显示易读的友好名,并可自定义别名(如「插件开关」「插件市场」),让你一眼认出每个插件;还能直接复用 plugin-switch 的开关做启停,两者互补使用。 功能 - 新增独立设置页标签「插件改名器」(id: renamer ),以卡片形式展示: - 友好名(自定义别名 package.json description 模块名 条目 ID) - 模块名、条目短 ID、启用/停用状态 - 搜索(别名 / 模块名 / 条目 ID)与筛选(全部 / 已启用 / 已停用) - 别名编辑:每条插件可保存自定义别名;留空保存或「恢复自动名」后回落到自动提取的名字 - 别名持久化:浏览器 localStorage (key: dsh.pluginRenamer.aliases.v1 ) - 一键启用/停用:复用 dsh-profile-plugin-switch 的 /plugin-switch/toggle 接口;未安装 plugin-switch 时开关不可用但列表仍可浏览 - 显示层兼容:以 700ms 间隔把 plugin-switch 原始清单中的 .psw-title (条目 ID)和模块名详情替换为友好名(React 重渲染后会自动再次替换) 安装 从 GitHub 安装(推荐): 本地开发时也可直接指定路径安装: 然后重启 Web UI 并刷新浏览器(Ctrl+Shift+R)。 写代码阶段不需要安装;本地安装/写入 profile 需要用户把权限调为 full access(danger-full-access)。 结构 接口 GET /plugin-renamer/list 返回: - description 读取自 profile node modules/ /package.json ;读取失败为 null - switchAvailable 表示 loader 中是否存在 plugin-switch 条目,客户端据此决定是否渲染开关 与 plugin-switch 的兼容性 - 不改写 cordis.patch.yml ,不注册 id 为 all 的 tab,因此不会与 plugin-switch 争夺清单页 - 开关动作直接 POST /plugin-switch/toggle ,写配置与备份仍由 plugin-swit…
View full README on GitHub →Category
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 40,503
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 3,171
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/Git/子代理页面
★ 1,496