deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
简体中文 | English
这是一个 DeepSeek Harness 内置的插件商店:在「设置 → 插件」里新增插件商店,浏览、搜索、筛选并一键安装 / 更新 / 卸载
dsh-plugin生态插件。
安装:
dsh plugin --profile web add github:0xKcyzz/dsh-plugin-store
安装后重启 DSH,打开 设置 → 插件 → 「插件商店」。
topic:dsh-plugin 拉取插件。搜索接口单查询上限 1000 条,本插件按 Star 分片查询再合并,可加载全部(当前约 1800+ 个)。首屏先秒出前 300 条,其余在后台补全并写入磁盘缓存(30 分钟),之后秒开。作者/仓库名、简介、Star 数、发布日期。pnpm add,并把声明 dsh.bundle 的依赖写进 profile 的 bundle 列表。dsh plugin add github:owner/repo、@scope/pkg、github:owner/repo#subdir 等)。打开 设置 → 插件 → 插件商店:
本插件是双面(dual-face) DSH bundle,由 cordis.patch.yml 以单行挂载:
src/index.ts → lib/index.js):注册 /plugin-store/* HTTP 路由——GET /plugin-store/catalog:抓取 GitHub Search API(按 Star 分片 + 限流重试),归一化、分类,渐进式返回 + 磁盘缓存。GET /plugin-store/installed:读取 profile 的 package.json,报告已安装依赖与 bundle。GET /plugin-store/install-meta:返回安装时间戳记录(用于更新检测)。POST /plugin-store/install:预检 dsh.bundle → pnpm add <spec> → 重排 dsh.profile.bundles → 记录安装时间戳。POST /plugin-store/uninstall:本地移除依赖 + bundle + 目录,记录卸载。src/client/* → lib/client.js):注册 settings.plugins.tab(id=store),渲染商店界面,通过 fetch 调用 Host 路由。包声明 dsh.bundle.patch + dsh.client,所以安装后:Host 入口由 Loader 加载,浏览器半侧由 client-modules 注入 window.__DSH_BOOT__。
| 变量 | 默认值 | 说明 |
|---|---|---|
GITHUB_TOKEN |
空 | 可选 GitHub Token,提升 API 限流额度(未认证搜索 10 次/分钟,认证后 30 次/分钟),建议配置以更快加载全部插件。 |
DSH_PLUGIN_STORE_PROFILE |
web |
安装目标 profile 名。 |
npm install # 安装 esbuild 等构建工具
npm run build # 产出 lib/index.js(Host)+ lib/client.js(浏览器)
仓库已提交
lib/构建产物,github:owner/repo安装时无需构建;改动src/后需重新npm run build并提交。
GITHUB_TOKEN 时后台补全较慢(约 2 分钟),界面会标注「已加载 N(部分)」,配置 token 后约 45 秒。pushed_at:对比「目录里仓库的最新推送时间」与「安装时记录的推送时间」,跟随目录缓存(30 分钟)。dsh-plugin 主题下含不少非 DSH 插件仓库(设计工具、桌面客户端、skill 集、monorepo 皮肤合集等)。「已收录」标签用启发式近似「可安装的 DSH 插件」,非权威口径。dsh.bundle.patch 的 npm 包才会成为真正的 profile bundle;合集仓库(如皮肤库)需用 github:owner/repo#subdir 手动安装其中的具体子包。src/categories.ts)从 topics、语言、名称、简介派生,可按需调整。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: marketplace、plugin-manager。