dshbase

Plugin directory / Developer / long-draft-input

long-draft-input

Verified · install-tested on dsh Heyflyingpig

✓ Actively maintained Builds on 1 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

3Stars
0Forks
0Open issues
TypeScriptLanguage
2026-08-14Last push
Cross-platformPlatform

What it does

DeepSeek Harness plugin: for aggregating long text in send box

✅
Our take
Works — verified, early-stage project

DeepSeek Harness plugin: for aggregating long text in send box It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

long-draft-input

一个面向 DeepSeek Harness 0.1.0-rc.5 的独立插件:当输入框草稿超过阈值时,将发送框向上扩展并显示附件式摘要卡片,但不改变 DSH 原有的草稿状态、消息格式或发送路径。

预览

alt text

行为

  • 长文本仍完整保存在 DSH 的 input.draft 中。
  • 摘要卡片展示首行预览、字符数和行数。
  • 摘要卡片作为原发送框内部的正常布局子项,像附件一样将发送框向上撑高;折叠态隐藏原 textarea 的完整文本,保留原工具栏和发送按钮。
  • 卡片下方保留独立的补充输入区;补充文字会追加到完整长文本后,继续通过原发送按钮提交。
  • 点击“在文本框中显示”后恢复原 textarea,并将焦点交还给它。
  • 点击 × 移除聚合的长文本;如果卡片下方已经输入补充正文,只保留这部分正文。
  • 原 InputBar 的发送按钮仍调用原有 inputActions.submit();插件不定义附件协议,也不改服务端消息格式。
  • 未超过阈值的小文本不渲染插件 UI,因此保持原行为。

默认阈值为 2,000 个 JavaScript 字符,首行预览为 120 个 Unicode code point。可在 profile 的后续 patch 层覆盖;由于 patch 会替换整行配置,覆盖时请同时写出两个字段:

- id: long-draft-input
  config:
    threshold: 20000
    previewChars: 160

安装

在本地目录中执行

dsh plugin --profile demo add github: Heyflyingpig/long-draft-input
dsh --profile web

GitHub 安装会执行 prepare 构建 TypeScript 和浏览器 bundle。pnpm 10+ 可能要求 profile 的 pnpm-workspace.yaml 显式允许该包的构建脚本;也可以发布 npm 包或 pnpm pack tarball,直接携带已构建的 lib/,减少安装时的构建权限。

在 项目源码 checkout 中本地验证:

pnpm dsh plugin --profile demo add /absolute/path/to/long-draft-input
pnpm dsh --profile demo --dump-config
pnpm dsh --profile demo

开发和验证

pnpm install
pnpm test
pnpm run test:unit
pnpm pack:check

真实 Web 组合测试需要先在一个已安装本插件的 DSH profile 中启动 Web:

DSH_WEB_URL=http://127.0.0.1:3080 pnpm run test:web

当前版本限制

这个插件使用公开的 conversation.input.dock 扩展点承载生命周期,再通过 React Portal 把摘要卡片放入原 [data-composer-card],使卡片真正参与发送框内部排版,而不是在对话区上方叠加独立层。折叠态通过 CSS 隐藏原 textarea 的可见文本层,但不会替换输入框的发送逻辑。公开扩展点无法控制 InputBar.tsx 内部的私有 React 渲染逻辑,因此它不能阻止原组件继续构造 backdrop 和 mirror 节点。

友情链接

https://linux.do

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install long-draft-input for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:Heyflyingpig/long-draft-input

Headless (CLI) profile:

dsh plugin --profile headless add github:Heyflyingpig/long-draft-input

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

When to use it

Extend the agent's coding surface — give it a new tool, workflow, or integration so it handles a dev task it couldn't before.

Who it's for

Developers who want dsh to behave like a teammate on real codebases — editing, running, and verifying changes rather than just answering.

For developers — extending it

The tool/command surface is the seam: expose more of the SDK, add smarter context wiring, or tighten the loop between code changes and verification.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7797 plugins →