dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Lightweight notes & todo panel plugin for the DeepSeek Harness (DSH) Web UI: work/personal todo columns, five autosaving memo windows, drag-to-reorder, inline editing, local JSON storage.
A lightweight notes & todo panel plugin for the DeepSeek Harness (DSH) Web UI. Everything is stored locally on your machine — no account, no sync, no network calls.
DSH Web UI 的「备忘」插件:左侧栏一个入口,面板顶部一个 sheet 页签切换 待办 / 备忘;其中最大的「主要备忘」窗口同时出现在右侧栏(作为独立的「备忘」页签),可以一边聊天一边记。数据全部保存在本机,可直接阅读和备份。
Esc 取消;没有多余的编辑按钮。--dsw-alias-* 主题 token,浅色/深色自动适配;中英文文案走 ctx.locale。插件是纯 JavaScript 包,无构建步骤、无第三方运行时依赖。
在 DSH 里让助手执行 plugin_manager 的 install_bundle,目标填:
github:nin2c/dsh-plugin-memo或在终端(选择合适的 profile,desktop / web):
dsh plugin --profile desktop add github:nin2c/dsh-plugin-memo然后重启 DSH(或让插件经理热加载)。安装后在左侧栏会出现「备忘」图标。
git clone https://github.com/nin2c/dsh-plugin-memo.git再用 plugin_manager 的 install_bundle 指向该目录(本地目录会以 link: 方式安装)。
把本包加入 profile 的依赖与 dsh.profile.bundles,由 DSH 的 bundle 层加载。
$DSH_HOME/plugin-data/notes-todo/data.json(默认 ~/.dsh/plugin-data/notes-todo/data.json)。数据目录名notes-todo是历史命名,包名已改为dsh-plugin-memo,升级不会丢数据。
{
"version": 2,
"todos": [
{ "id": "t_…", "text": "…", "done": false, "category": "work", "createdAt": "…", "doneAt": null }
],
"memos": {
"topLeft": "…", "topRight": "…", "bottomLeft": "…", "bottomRight": "…", "main": "…"
},
"updatedAt": "…"
}category 为 work 或 personal;数组顺序即待办显示顺序。旧版数据(v1 的 notes 列表、无分类待办、三窗口备忘)会在读取时自动迁移。
插件在宿主注册同源 HTTP 路由 /notes-todo(由 webServer 提供):
方法 · 路径 · 说明 GET · /notes-todo/api/ping · 版本、数据文件路径、计数 GET · /notes-todo/api/state · { ok, todos, memos, updatedAt } POST · /notes-todo/api/mutate · 一次原子操作,返回完整新状态 POST · /notes-todo/api/client-log · 面板崩溃上报
mutate 的 op:todo.add / todo.update / todo.toggle / todo.move / todo.delete / todo.clearCompleted / memo.set。操作只在插件自己的 Host 与页面之间使用。
sidebar.panellist、main、右侧栏的 sidebar.right.pane.tab 与 ctx.sidebarRightTabs)与 webServer 路由,不依赖 DSH 内部私有包。右侧栏扩展在缺少该能力的 DSH 版本上会自动跳过,面板功能不受影响。0.2.1-rc.2(Desktop profile)上开发与验证。require('react') 与主题 token;宿主只使用 Node 内置模块,因此不需要构建。# 语法检查
npm run checkindex.js — 宿主半:webServer 前缀路由 + JSON 存储 + 数据迁移。client.js — Web 半:插件面板与右侧栏备忘页签的注册、React 视图、拖拽与行内编辑、自动保存与跨视图同步。cordis.patch.yml — 插入 memo 插件行。locale/{en,zh}.json、icon.svg — 插件管理页的标题、描述与图标。源码是手写的可读 JavaScript,没有压缩产物;改完重新加载插件(或重启 DSH)即可生效。
$DSH_HOME/plugin-data/notes-todo/ 下的 JSON 文件。MIT © 2026 nin2c