dsh-session-drafts

DSH PLUGIN记忆与知识

仓库 ne-ilyxa/dsh-session-drafts · npm @ne-ilyxa/dsh-session-drafts

记忆与知识 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

为 DeepSeek Harness 提供 Cursor 风格的草稿会话:新建会话复用空草稿,避免空占位堆积,草稿以侧边栏行展示并持久化。

验证等级 L5 L5 · 运行验证通过
GitHub 星标 2 复刻 0 · 未关闭 issue 未标注
最近更新 2026-10-04 创建于 2026-08-21
README 9.3 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add @ne-ilyxa/[email protected]
兼容 DSH 版本0.2.0-rc.2 等 12 个版本版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名@ne-ilyxa/dsh-session-drafts可用 npm view 查看包信息

能做什么

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

dsh-session-drafts:让 DeepSeek Harness 的会话像 Cursor 一样支持草稿

  • 复用空草稿
  • 草稿侧边栏展示
  • 实时预览标题
  • 一键丢弃草稿
  • 视觉标识区分

适用场景

记忆存储通知

上游标签

cursor-styledeepseek-harnessdeepseek-harness-plugindeepseek-harness-pluginsdraftdraftsdshdsh-plugindsh-plugin-marketdsh-pluginsnew-sessionsession-persistenceui-plugin

验证等级与安全审查

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 插件清单中已激活 方式:插件清单查询

风险详情

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

仓库档案

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方ne-ilyxa仓库 dsh-session-drafts · 默认分支 未标注
分类记忆与知识memory
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证BSD-3-Clause商用或二次分发前请确认条款原文
星标 / 复刻 / issue2 / 0 / 未标注收录时的数值,非实时
创建 / 更新2026-08-21 · 2026-10-04最后推送 未标注
本站收录2026-08-27首次进入本站目录的时间

README 全文

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

dsh-session-drafts

Cursor-style draft chats for DeepSeek Harness (DSH): New Session reuses the empty draft — and only mints a fresh one when every draft has unsent text — so empty placeholders never stack, exactly like Cursor's (or Telegram's) chat list. Every draft lives in the sidebar tree as an ordinary row: unsent-text preview title, creation time, a pencil mark and a gray tint, persistent across page reloads and host restarts. No popup, no drafts menu.

The stock web shell reuses a workspace's single blank session regardless of typed text (one empty chat per workspace, silently discarding your draft), and hides every other blank from the tree. This plugin replaces both behaviors.

What it does

  1. Never stack empty drafts — on every mint path. Since the harness 0.2 refactor the mint flow lives on the uiWorkspace navigation service, and uiWorkspace.connectWorkspace is the funnel every New Session surface goes through (the sidebar button, the folder +, Ctrl+Alt+N, the hero workspace picker, the boot initial selection) — so that is the seat the rule patches. Connect first jumps to the workspace's existing EMPTY draft (a session the host says has no sent turn and whose composer carries no unsent text) and only mints a fresh durable session (session.create) when every draft is occupied. The stock method is replaced — not wrapped — because its blank-reuse scan reuses the workspace's blank regardless of typed text (one empty chat per workspace, silently discarding the draft you were writing). The per-workspace in-flight dedupe survives in the patch (a rapid double-click collapses into ONE connect), a never-engaged placeholder is adopted through the stock create handshake, and a session/writer-held refusal falls through to the fresh mint. Typed drafts stay put as their own chats; empty placeholders never multiply.
  2. Drafts as tree rows. The stock tree hides blank sessions other than the current one, so the plugin overlays the data: sessions.list.getSnapshot is shadowed on the live store object (identity-stable, HMR-safe) to project every draft with blank: false and a draft title. The stock tree then renders each draft as a first-class row under its workspace — creation time in the trailing cell, click to open. "Draft" follows the host's own truth (sessionListMetadata.blank — the folded prefix contains no turn), which survives the 0.2 semantic change where opening a session flips the client blank bit: an opened-but-never-prompted draft keeps its row, its preview and its ×. The first sent message ends the draft state and the row becomes an ordinary chat, untouched by the overlay. The projection is idempotent over its own output (rows it produced are branded), so a re-captured snapshot face can never freeze a title.
  3. One affordance: ×. A draft is a placeholder, not a chat — every stock row control (the ⋯ menu, the row-level archive/pin buttons) is muted, and the only trailing control is a × in the same hover cell: hidden until the row is hovered, gray, 16px, and one click discards the draft (workspace archive — the row disappears, the session log remains; the main selection clears when it was the open draft). After the first sent message the row graduates into an ordinary chat and its stock controls return.
  4. Live preview titles. A draft's row title is its unsent composer text (Telegram-style, whitespace-collapsed, 60 chars), read live through conversation.input and mirrored to localStorage so previews survive reloads; an empty composer shows the localized New Session. The title is written to both summary faces the tree consumes — title (the renderer's row label) and displayTitle (archive-confirm and hover-copy) — and overlay-only changes wake the store's raw subscribers, so the tree retitles on every keystroke.
  5. Visual draft identity. Draft rows get a gray title (theme-aware design token — gray-next-to-white in dark, muted-next-to-black in light) and a pencil icon in the row's empty status slot, painted by a MutationObserver marker. Rows are identified by the explicit data-row-key="session:" attribute the 0.2 renderer stamps, with the React-fiber walk as the fallback — never by text, which can collide with a graduated chat's title. The gray tint targets the title span itself (the stock row CSS carries an explicit title color since 0.2). Purely cosmetic and self-healing: if the DOM shape drifts, the rows keep working and only lose the tint.
  6. Zero core edits. Instance-level property shadowing guarded by Symbol.for markers (idempotent across HMR), restored on plugin unload, falling back to the stock behavior on any synchronous failure. No harness files are modified — install the plugin and it works.

Install

dsh plugin --profile web add link:/path/to/dsh-session-drafts
# or from a published copy:
dsh plugin --profile web add @ne-ilyxa/dsh-session-drafts

Then restart the DSH web host (a profile boot composes the client bundle into the boot graph; hot activation is not attempted by this plugin).

Release channels

  • npm — @ne-ilyxa/dsh-session-drafts; published manually by the maintainer (npm login && npm publish --access public — prepack builds the package). CI never touches the registry.
  • Prebuilt tarball — pushing a v* tag runs release.yml: checks → pnpm pack → dsh-session-drafts.tgz attached to the GitHub Release. Installable without npm and without pnpm's allowBuilds build approval; this is the artifact storefronts prefer.

Keyboard shortcuts

Shortcut Action
Ctrl+Alt+N New Session from anywhere — same rule as the button: jump to the empty draft, mint only when all are occupied (layout-independent — matches the physical KeyN, Russian layouts included)

(The v0.1 Ctrl+Alt+D popover toggle died with the popover.)

Verify it works

  1. With an empty draft under the workspace, click New Session — you land on that empty draft; nothing new is created (empty placeholders never stack).
  2. Type something in it and click New Session again — now a fresh draft is minted and selected; the typed one stays in the tree, retitled to your unsent text. Refresh the page — everything is still there.
  3. Hover a draft row — a gray × appears where other rows have ⋯; click it to discard the draft. Send a message in one and it graduates into an ordinary chat row (⋯ menu back).
  4. Host truth: a mint happens only when it should — sessions survive a page refresh and the host restart.

Screenshots

The plugin in the DSH web UI — drafts living in the sidebar tree:

Development

pnpm install
pnpm run check     # typecheck + build + node --test tests/*.test.mjs
pnpm run build     # host no-op + browser bundle (lib/client.js, module-loader wrapped)
pnpm test:e2e      # full UI flow on an isolated DSH host (needs a harness checkout + Chrome)
node scripts/capture-screens.mjs   # re-shoot assets/drafts-*.png against a live isolated host

The E2E smoke boots a throwaway DSH web host (its own DSH_HOME scratch profile with this checkout installed), drives the real UI in headless Chrome, and asserts host-side session truth plus the tree DOM. It skips with exit 0 when the environment is missing — configure via E2E_DSH_ROOT (harness checkout, default /home/ilya/deepseek-harness) and CHROME_PATH (default /usr/bin/google-chrome).

Layout:

  • src/index.ts — host half, a deliberate no-op (the package must be a loadable Profile Bundle; all behavior is browser-side).
  • src/client/index.tsx — browser half: the uiWorkspace.connectWorkspace patch (the empty-draft reuse rule on every mint path), the sessions.list draft projection (projectDraftList), the live preview mirror, the DOM row marker, the hotkey, zh/en dictionaries. No React, no slots — the stock tree renders the drafts.
  • tests/ — pure-logic tests over the built bundle (VM-loaded) + package-layout guards; tests/e2e/ — the isolated-host UI smoke.

Compatibility

Which harness versions each plugin line was verified against:

Plugin DSH harness Status
0.7.x 0.2.0-rc.2 Current. Verified end-to-end (unit + full UI smoke on an isolated host): the uiWorkspace mint flow, sessionListMetadata draft truth (the 0.2 engaged-session blank semantics), title/displayTitle row labels, data-row-key row identity, muted row archive/pin buttons, token-gated web surface.
0.6.x and older 0.1.x (rc.8-era service shapes: workspaces.startSession, dotted RPC names, textarea composer) Historical. On a 0.2+ harness these versions degrade: rows label every draft Untitled, previews freeze, and New Session stops reusing empty drafts — upgrade to 0.7.

The patches still degrade loudly-but-safely: if the runtime shape ever drifts again, a console warning fires and the corresponding piece stays stock.

License

BSD-3-Clause © ne-ilyxa

常见问题

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

在 DSH 里执行 `dsh plugin --profile web add @ne-ilyxa/[email protected]` 即可。对应的 npm 包名是 `@ne-ilyxa/dsh-session-drafts`。

dsh-session-drafts 的验证等级是什么意思?

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

dsh-session-drafts 安全吗?

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

dsh-session-drafts 支持哪些 DSH 版本?

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

dsh-session-drafts 用的是什么许可证?

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

dsh-session-drafts 有哪些功能?

复用空草稿、草稿侧边栏展示、实时预览标题、一键丢弃草稿、视觉标识区分。

这条记录的数据可靠吗?

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

记忆与知识
按星标排序,可作替代方案

ruflo

ruflo

L3 · 安装规范通过 7.4 万 星

OpenViking

OpenViking

面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`vik

L3 · 安装规范通过 3.9 万 星

WeKnora

WeKnora

把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己

L4 · 沙盒安装通过 3.3 万 星

distilly

distilly

Distilly — Distill how they think into reusable Skills for any Agent o

L4 · 沙盒安装通过 2.5 万 星

EverOS

EverOS

L4 · 沙盒安装通过 1.3 万 星

MemOS

MemOS

L4 · 沙盒安装通过 1.2 万 星

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