Skip to content

Releases

v0.4.1

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 27 Nov 15:30

What changed / 更新内容

  • 思考图标改为分层原子(固定核心 + 两条倾斜轨道):开启时双轨反向扫掠并带轻微透视,关闭时原路回转并淡出;每个真实状态变化只播一次,首次挂载、无关重绘与主题切换不动,尊重 prefers-reduced-motion。
    The thinking icon is now a layered atom (fixed core + two tilted orbits) that sweeps apart on enable and runs back on disable, once per real state change.
  • 搜索图标外圈与赤道静止,三条经线在 clip path 内水平滑动;点击不再出现红色禁用光标,按钮先乐观切态、失败回滚,内部锁吞掉连点。
    The globe keeps its ring still while three meridians slide; the search pill is never disabled, flips optimistically and rolls back on failure.
  • 提示气泡改为网页端同款深炭黑底纯白字(明暗主题一致),仍保留 380ms 悬停延迟与点击后抑制。
    The tooltip is now the dark web-app bubble in both themes.

Notes / 说明

  • client half 仍是无构建的 classic script(window.__ModuleLoader__.load),本版只改 client.js 与 test/client.test.js。
  • 更新后需要重启 DSH 才会加载新的 client bundle(宿主按文件 mtime 生成 rev,并用 immutable 缓存提供)。
    Restart DSH after upgrading so the host recomputes the client bundle revision.

v0.4.0

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 22 Nov 13:35

Chat 模式现在能直接收图、收文档了

v0.4.0 给 Chat(轻量对话)补上了附件能力,同时守住「没有附件就零工具、零额外 token」的底线。

新增

  • 原生识图:图片走宿主的视觉模型(≤1024 token/张),不需要任何工具。
  • 小文本内联:TXT / MD / JSON / CSV / 源码等 ≤8 KiB 直接进消息,模型立刻能读。
  • 零依赖 DOCX:自己读 word/document.xml(zlib.inflateRawSync,单段 8 MiB 上限),段落、表格、标点符号都还原;.doc、PDF 与其它二进制给一行诚实说明,建议截图上传或切 Standard。
  • 按需出现的 read_attachment:只在当前这条用户消息带上传时出现,并且只接受该消息的 sha256: attachment_id,不接触任何路径;大文件用 offset/limit 分页续读。
  • 与 /web on 组合:放行列表精确为 web_search + web_fetch + read_attachment。

行为

  • 没有附件的回合:请求里没有 tools,toolCount: 0,与 0.3.x 完全一致。
  • 下一条纯文字消息进来,白名单立刻清空,工具自动消失。
  • 当前消息的附件块会被替换成抽取文本,这会显示在会话气泡里(历史消息不改写)——这样多轮追问不必重复上传,8 KiB 上限保证体积可控。

升级

dsh plugin --profile <profile> add github:XiaoFeng7418/dsh-plugin-chat-mode

桌面端是本地 link 安装的话,改完 client.js 需要彻底退出(含托盘)再启动才会加载新的客户端产物。

验证

  • npm test 96/96,npm run typecheck 通过。
  • 四条请求形状实测:DOCX 轮 toolCount:1 ["read_attachment"]、下一句纯文字 0、图片轮 0(images:1)、/web on + DOCX 3 ["read_attachment","web_fetch","web_search"];宿主 Read that path with your file tools… 句柄不再出现。

Attachments now work in Chat mode

v0.4.0 adds attachments to Chat (lightweight) while keeping the promise: no attachment means no tools and no extra tokens.

Added

  • Native vision: images go through the host's vision model (≤1024 tokens each) and need no tool.
  • Inline small text: TXT / MD / JSON / CSV / source up to 8 KiB lands in the message directly.
  • Zero-dependency DOCX: reads word/document.xml with zlib.inflateRawSync (8 MiB per-part cap) and restores paragraphs, tables and punctuation; legacy .doc, PDF and other binaries get one honest note suggesting a screenshot or Standard mode.
  • On-demand read_attachment: exists only for the step whose current user message carries an upload, accepts only that message's sha256: ids, and never touches a path; larger files page through with offset/limit.
  • With /web on: the allow list is exactly web_search + web_fetch + read_attachment.

Behaviour

  • A turn without attachments still sends no tools field and shows toolCount: 0, identical to 0.3.x.
  • The next text-only message clears the allow list, so the tool disappears immediately.
  • The current message's file block becomes the extracted text, which shows in the transcript (history is not rewritten) so follow-ups never need a re-upload, with an 8 KiB cap keeping it bounded.

Upgrade

dsh plugin --profile <profile> add github:XiaoFeng7418/dsh-plugin-chat-mode

If the desktop profile links to a local checkout, fully quit the app (tray included) and relaunch so the new client artifact is picked up.

Verification

  • npm test 96/96, npm run typecheck passes.
  • Four measured request shapes: DOCX turn toolCount:1 ["read_attachment"], next plain turn 0, image turn 0 (images:1), /web on + DOCX 3 ["read_attachment","web_fetch","web_search"]; the host's Read that path with your file tools… sentence is gone.

v0.3.3

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 22 Nov 05:33

v0.3.3 — 修复「从 Chat 切到 PTC 后工具全被屏蔽」

修复(Fixed)

  • 离开 Chat 不再让会话丢失工具。 空白会话允许切换预设,宿主会复用同一个 Agent scope、只替换父链。此前每一步的 allow 列表追加在该共享 scope 上却不保存 disposer,切换 Chat → PTC(或 Chat → 标准模式)后 allow: [] 仍生效,所有继承工具被过滤掉,PTC 里连 tools.compress 都消失。
    现在每条 mask 自己持有 disposer,在「会话切换预设」「Agent 销毁」「插件卸载」三处释放;切回 Chat 时下一步会按新状态重建 mask。

验证

  • npm test 72/72、npm run typecheck 通过;隐私扫描无命中。
  • 实机回归(本地 mock 捕获请求体):Chat 首轮 tools: 0;同一会话在首轮之前切到 PTC 再发消息,请求带 run_code、系统提示 56 KB —— 修复前该请求会是 0 个工具。

说明

  • 已经运行中的 DSH 实例仍持有旧限制,需更新插件后**重启 DSH(含托盘)**才生效。

English

Fixed

  • Leaving Chat no longer starves the session of tools. A blank session may switch presets, and the host reuses the same Agent scope while swapping the preset in the parent chain. The per-step allow list was appended to that shared scope without keeping its disposer, so after Chat -> PTC (or Chat -> Standard) allow: [] kept filtering every inherited tool and tools.compress disappeared.
    Each mask now owns its disposer and is released when the session's preset changes, when the agent is disposed, or when the plugin unloads; switching back to Chat rebuilds the mask on the next step.

Verification

  • npm test 72/72, npm run typecheck clean, privacy scan clean.
  • Live regression with a local mock recording request bodies: the first Chat turn carries tools: 0; switching that same blank session to PTC before the first turn now sends run_code with a 56 KB system prompt — it used to send zero tools.

Notes

  • A DSH instance that is already running still holds the old restriction: update the plugin and restart DSH completely (including the tray) for the fix to take effect.

v0.3.2

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 20 Nov 14:19

v0.3.2 — 与网页端同款的开关动效

Added / 新增

  • 激活动效对齐 DeepSeek 网页端:真实 off → on 时图标只转一次(深度思考 0deg → 180deg,440ms,cubic-bezier(0.22, 1, 0.36, 1);联网搜索 -24deg → 0deg,400ms),关闭时只做颜色过渡,不会倒转。
    旋转标记来自上一次渲染状态,主题变化或任何普通的重新渲染都不会再触发。
  • Tooltip 在点击后到指针离开按钮前保持收起,点完开关不会再有气泡挂在输入框上方。

Fixed / 修复

  • 彻底去掉按钮外围的直角黑框:按钮自己声明 appearance、border-style/width/color、outline: none、box-shadow: none 与 tap-highlight,选择器提升为容器级 + 元素限定,Electron 宿主的按钮重置无法再画自己的方形边框;只有键盘 :focus-visible 会得到 2px 圆角柔光,鼠标点击后是干净的胶囊。
  • 激活态的填充/边框/文字在亮暗两套主题下保持 WCAG AA 对比度。

Notes / 说明

  • 客户端半由宿主按文件时间戳生成 rev,bundle 以 immutable 缓存;改了 client.js 需要重启 DSH(桌面端连托盘一起退出)才生效,浏览器硬刷新不够。

Full changelog / 完整变更: CHANGELOG.md

Install / 安装

dsh plugin --profile <profile> add https://github.com/XiaoFeng7418/dsh-plugin-chat-mode/releases/download/v0.3.2/dsh-plugin-chat-mode-0.3.2.tgz
# or / 或者
dsh plugin --profile <profile> add github:XiaoFeng7418/dsh-plugin-chat-mode#v0.3.2

v0.3.1

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 20 Nov 11:32

What's new in v0.3.1

Composer buttons now look and feel like chat.deepseek.com.

  • DeepSeek-style toggles — two-tone SVG line icons (no emoji), 深度思考 / 联网搜索 labels (English builds: DeepThink / Search), 34px pills, DeepSeek blue when on.
  • Hover hints — a CSS-only bubble that appears after 380ms (「先思考后回答,解决推理问题」/「按需搜索网页」) and collapses instantly on press.
  • Subtle motion — 180ms easing, scale(0.95) press, 220ms icon pop, soft 2px glow; disabled entirely under prefers-reduced-motion: reduce.
  • Leak-proof tool mask — the Chat request now uses a per-session allow list, so a global tool added by a newer DSH build (working_directory) can no longer slip in.
  • rc.2 compatible — @deepseek-ai/dsh 0.2.1-rc.2 restricts tools only in an agent scope and ignores { when }, so the web tools stay registered there and the allow list does the gating.

Verification: npm test 64/64, npm run typecheck clean, CI green on main (44727998645), WCAG AA contrast re-checked (5.07:1 idle, 4.68:1 hover, 6.31:1 / 5.38:1 dark).


v0.3.1 更新

输入框里的两个按钮现在和 chat.deepseek.com 一致。

  • DeepSeek 风格开关:单色线框 SVG 图标(去掉 emoji),中文「深度思考」「联网搜索」(英文构建为 DeepThink / Search),34px 胶囊,开启时 DeepSeek 蓝。
  • 悬停提示:纯 CSS 气泡,悬停 380ms 后淡入(「先思考后回答,解决推理问题」/「按需搜索网页」),按下立即收起。
  • 柔和微交互:180ms 缓动、按下 scale(0.95)、220ms 图标弹入、2px 柔光;prefers-reduced-motion: reduce 时全部关闭。
  • 工具掩蔽不再漏:Chat 请求改为按会话计算的白名单,DSH 新版本新增的全局工具(working_directory)不会再混进来。
  • 兼容 rc.2:@deepseek-ai/dsh 0.2.1-rc.2 只能在 agent scope 限制工具且忽略 { when },因此联网工具在旧引擎上恒定注册,由白名单控制可见性。

验证:npm test 64/64、npm run typecheck 通过、main CI 绿灯(44727998645)、对比度重新校验通过 WCAG AA(5.07:1 / 4.68:1,暗色 6.31:1 / 5.38:1)。

v0.3.0

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 20 Nov 05:28

v0.3.0 — 输入框双开关(深度思考 / 联网)

在 Chat(轻量对话)模式下,输入框右侧新增两个与 DeepSeek 网页端一致的快捷开关,与斜杠命令双向同步、纯零构建实现。

新增

  • 深度思考:一键在 off ↔ high 之间切换(等价 /think off / /think on),开启时自动不发送 temperature。
  • 联网搜索:一键开关(等价 /web on / /web off),开启后请求只多 web_search / web_fetch 两个 schema(实测约 +455 input tokens),默认使用预设内隔离的 deepseek-official(模型调用触发的搜索只计 token)。
  • 两个按钮仅在 Chat(轻量对话) 模式显示,与模型选择器、斜杠命令共享同一会话状态,切换不产生额外 LLM 请求。

说明

  • 手写 client.js(经典脚本 + window.__ModuleLoader__.load)即可挂载客户端,无需构建步骤;宿主侧新增一个 clientOnly: true 的根级行用于让客户端半被发现。
  • 保留 v0.1.2 / v0.1.3 / v0.2.0 的历史 Release 不变。

校验

  • pnpm run typecheck 通过、pnpm test 56/56。
  • E2E(临时 profile + 本地 mock + 无头浏览器):按钮渲染、thinking 开/关请求形态、web 开/关工具数量、手敲命令后按钮同步、标准模式隐藏。

English

Added

  • Think toggle in the Chat preset: one click switches reasoning between off and high (same as /think off / /think on) and omits temperature while thinking is on.
  • Web toggle: one click turns web_search / web_fetch on or off (same as /web on / /web off). Enabling adds only those two schemas (about +455 input tokens) and uses the preset-local deepseek-official runtime, whose searches are billed as model tokens only.
  • Both toggles appear only in the Chat(轻量对话) preset and stay in sync with the model picker and slash commands; switching them makes no LLM request.

Notes

  • A hand-written classic client.js registered through window.__ModuleLoader__.load is enough; no build step. A root-level clientOnly: true row makes the client half discoverable.
  • The v0.1.2 / v0.1.3 / v0.2.0 releases are left untouched.

v0.2.0

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 20 Nov 02:27

v0.2.0 — 本地斜杠命令 / 轻量语气档 / 按需联网

新增(中文)

  • 零 Token 本地斜杠命令:/chat(状态 / help / savings / save)、/tone web|empty|concise|creative|custom、/temp 0-1.5|auto|off、/web on|off、/think on|off|low|high|max|auto;命令在本地执行,不产生模型请求。
  • concise 与 creative 语气:concise 先给结论、能一句不说三句;creative 多联想多思路,并默认联动温度 1.28(/temp 手动锁定则尊重手动值)。
  • 按需联网:默认关闭时请求体没有任何联网工具;/web on 只额外提供 web_search 与 web_fetch,实测约 +455 input tokens。
  • 预设内隔离的联网通道:preset-chat 内挂隔离的 @deepseek-ai/dsh-web,默认 deepseek-official(模型调用触发的搜索只计 token、不按次收费)+ http 抓取,不影响 Standard 或全局设置;~/.dsh/chat-mode.json 的 webSearchProvider 可选 inherit 跟随宿主。
  • 思考档位:/think 直接对齐 DeepSeek 网页端深度思考,on = high;思考开启时不发送 emperature,关闭后恢复发送。
  • 工程门面:GitHub Actions CI(typecheck + test)、CHANGELOG.md、README 徽章与命令文档。

Added (English)

  • Local, zero-token slash commands: /chat, /tone, /temp, /web, /think.
  • New concise and creative tones; creative pairs with temperature 1.28 unless /temp pins one.
  • Opt-in web tools: web_search + web_fetch only when /web on (about +455 input tokens); no web tool at all when off.
  • Isolated web runtime inside the preset (deepseek-official search + local http fetch), leaving Standard and global settings untouched.
  • /think maps to DeepSeek reasoning levels (on = high); temperature is never sent while thinking is on.

修复 / Fixed

  • 会话内 /temp 覆盖持久化的请求头温度;思考模式下彻底剥离 emperature 字段。
  • 每轮掩蔽不会误伤本插件自己的 web_search / web_fetch。
  • 会话状态按 session.id 键控,多个会话的语气 / 联网 / 温度互不影响。

c.1 兼容:改用 pre-step /
equest 路径,不依赖 �gent/inbox/claimed。

  • /temp 空参数不再被当成 0;损坏的 ~/.dsh/chat-mode.json 不会让插件启动失败。

说明 / Notes

  • 安卓 DSH Go(App 1.1.0 / 1.2.0,内置引擎 �.2.2-rc.1)已实机验证 /web on 联网搜索与引用渲染;
    c.1 下仍可能残留其他插件注入的少量工具或上下文。

c.5 在关闭工具时请求体会出现空 "tools": [](约 15 字节、无任何 schema),属引擎层行为。

  • �0.1.3 Release 保持不动。

v0.1.3

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 18 Nov 15:32

更新 / What's new in v0.1.3

  • 每一轮都重新掩蔽全局工具:preset 挂载时先用 tools.restrict 掩蔽,随后每轮 agent/inbox/claimed 与 agent/pre-step 再掩蔽一次,插件晚注册的工具也不会漏进 chat 请求。
  • 安卓 DSH Go 实机验证:在 DSH Go 1.1.0(内置引擎 0.2.2-rc.1)上确认可安装、模式可选中、61 字中文系统提示词生效;原生界面只显示内置模式,需「切换到网页界面」再选「Chat(轻量对话)」。
  • 文档:中英 README 补齐 DSH Go 安装与效果差异说明(桌面 rc.3+ 约 1.9K input tokens、DSH Go rc.1 约 3.9K 且可能残留其他插件注入的上下文/工具,待引擎升级对齐)。
  • 测试 21/21、typecheck 通过。

说明 / Notes

  • 安装:dsh plugin --profile <profile> add github:XiaoFeng7418/dsh-plugin-chat-mode,或下载本页 .tgz 后 add <路径>,或在桌面端「插件 → 添加插件」里填 GitHub 地址。
  • 不修改 node_modules,不覆写 standard / creative / ptc 等内置模式。

v0.1.2

Choose a tag to compare

@XiaoFeng7418 XiaoFeng7418 released this 18 Nov 12:48

中文 · 更新说明(0.1.2)

  • 主文档改为简体中文(README.md),英文版迁到 README_en.md,两版顶部都带语言切换。
  • 默认 web-tone 提示词重写为中文:约 61 字、跟随用户语言;实测系统提示 61 字符、首条请求 1,880 input tokens(英文版为 1,896,无膨胀)。
  • 模式名与插件元数据中文化:模式选择器显示「Chat(轻量对话)」,附中文简介。
  • 安装方式新增 Release .tgz 一条。

核心特性

  • 零工具:请求体完全不含 tools 字段(预设作用域掩蔽 + 每个 agent 首步再掩蔽)。
  • 系统提示:web-tone 约 61 字;empty 档完全不发 system。
  • 默认关闭思考(仅 DeepSeek 路由),非思考请求 temperature: 1.0。
  • 不修改 Standard / PTC / Minimal / Creator 预设。

对比实测:Standard 模式 24,243 input tokens → Chat 模式 1,880 tokens(约 12.9×)。

English · What's new in 0.1.2

  • The primary README is now Simplified Chinese (README.md); the English version moved to README_en.md, and both link to each other.
  • The default web-tone prompt is rewritten in Chinese: ~61 characters, replies in the user's language. Measured: 61-character system prompt, 1,880 input tokens on the first request (1,896 with the English prompt — no token growth).
  • Localized preset label and metadata: the mode picker shows Chat(轻量对话) with a Chinese description.
  • Added a Release .tgz install path.

Highlights

  • Tool-free: the request body contains no tools field at all (preset-scope mask plus a per-agent re-mask on the first step).
  • System prompt: ~61 characters with web-tone; empty sends no system field whatsoever.
  • Thinking off by default on DeepSeek routes; non-thinking requests use temperature: 1.0.
  • Leaves Standard / PTC / Minimal / Creator presets untouched.

Measured: Standard used 24,243 input tokens, Chat uses 1,880 (about 12.9×).