sakuraqqq/dsh-auto-paste
sakuraqqq★ 1JavaScript最后同步: 2026-08-19
A DeepSeek Harness plugin that auto-saves large pasted text as attachment files
README 摘要
dsh-auto-paste A DeepSeek Harness plugin generated by create-dsh-plugin (tool template) and extended with a web client paste listener. 由 create-dsh-plugin 生成并扩展的 DeepSeek Harness 插件:输入框大段粘贴自动存为附件文件。 Release / 发布状态 - npm : [email protected] (npm 页面)—— 已发布到官方源 registry.npmjs.org , dist-tag: latest 。安装: npm i dsh-auto-paste (或 --save-exact 锁版)。 - 源仓库 : https://github.com/sakuraqqq/dsh-auto-paste ,tag v0.1.0 。 - 许可 :MIT(见下)。 - 同步提示 :npm 发布后国内镜像(npmmirror)同步有几秒到几分钟延迟,以官方 registry 为准。 License / 许可 MIT License — Copyright (c) 2026 misakamaster。 本插件以 MIT 许可开源:可自由使用、修改、再分发(含商用),需保留版权声明与许可文本。详见 LICENSE。 反馈 (bug/建议)欢迎提交:QQ 群测试反馈或直接联系作者。 What it does / 功能 1. Web 客户端粘贴钩子(主路径) — dsh.client.platform: web 。在输入框粘贴超过阈值(默认 500 字符)的文本时: - 客户端拦截粘贴事件,通过现有 connection RPC( /api → Typert gateway)调用宿主 pasteStore/savePaste ; - 宿主把文本写入当前会话工作区的 pastes/ .txt ; - 输入框里插入文件路径引用(如 [已保存大段粘贴为附件: pastes/20260815-103000.txt (1234 字符)] ),消息里引用该路径,模型可读该文件。 - 保存失败时回退为普通粘贴(原始文本直接进输入框),不丢数据。 - 超过 1 MiB 的文本会被服务端拒绝(大小上限,防资源耗尽):报错并回退为普通粘贴,不落盘。 2. save paste 工具(纪律兜底) — 宿主同时注册 save paste 工具,模型在用户贴大段文字时可主动调用,把文本持久化为 pastes/ .txt 并在回复中引用路径。建议在项目 AGENTS.md 加一行纪律: Install / 安装与激活 方式一:从 npm 安装(推荐) 方式二:本地目录安装(开发/调试) 改动插件后: pnpm ins…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA 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!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784