Skip to content

Releases: TLEWA/dsh-better-choice

dsh-better-choice 1.0.3

Choose a tag to compare

@github-actions github-actions released this 04 Nov 22:16

Full Changelog: v1.0.2...v1.0.3

dsh-better-choice 1.0.2

Choose a tag to compare

@github-actions github-actions released this 04 Nov 17:58

Full Changelog: v1.0.1...v1.0.2

dsh-better-choice 1.0.1

Choose a tag to compare

@github-actions github-actions released this 04 Nov 14:45

中文

修复

  • 旁问框聚焦时暂停卡片倒计时、失焦恢复;发送旁问后卡片进入「会一直等你回答」,不会再因为等回答而超时。
  • 旁问状态按题隔离(忙碌 / 错误 / 取消不再串题),新增「取消旁问」,每个线程最多保留 20 轮。
  • 宿主旁问线程连续编号;活动题按原始位置标记;用户跳过某题会写进提示词。
  • startActivation 在子代理建立后抛错时,子代理仍受只读 guard 约束。
  • 单选自定义答案提交空 selected,与官方一致;右键菜单只在可补充时拦截。
  • 选项无障碍名称包含描述、推荐与备注状态;空问题批次兜底。
  • RemoteCommands 类型改为真实的 remote.commands.execute 形状;补齐 @deepseek-ai/dsh-api-remotes peer 依赖。

变更

  • 旁问改为 fork 子代理(delivery: 'caller'),继承父会话已完成回合与缓存前缀,不写回父上下文。
  • 新增 tsconfig.json 与 npm run typecheck(prepack / prepublishOnly 会执行);测试 12 项。
  • 文档更新,新增双语更新日志 CHANGELOG.md / CHANGELOG.en.md。

English

Fixed

  • Focusing the side-ask box pauses the card countdown and blur resumes it; sending moves the card to "waits for you", so waiting for an answer can no longer time the card out.
  • Side-ask state is per question (busy / error / cancel no longer leak across questions), with a cancel button and a 20-turn thread cap.
  • Host side-thread turns are numbered consecutively; the active question is marked by wire position; skipped questions are described to the model.
  • A fork child established before a failed startActivation stays covered by the read-only guard.
  • Single-select answers with custom text send an empty selected, matching the official composer; the option context menu is intercepted only when a note can open.
  • Option accessible names include description, recommendation, and note state; an empty question batch falls back safely.
  • The client's RemoteCommands type now models remote.commands.execute; @deepseek-ai/dsh-api-remotes is declared as a peer dependency.

Changed

  • The side ask runs in a fork child (delivery: 'caller') that reuses the parent's completed-turn prefix and cache without writing to the parent session.
  • Added tsconfig.json and npm run typecheck (also run by prepack / prepublishOnly); 12 tests.
  • Docs updated; bilingual changelogs added (CHANGELOG.md / CHANGELOG.en.md).

dsh-better-choice 1.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 20:28

dsh-better-choice 1.0.0

给 DSH 的 ask_user_question 卡片加两件事:右键选项补充备注,以及在卡片里先旁问模型再作答。

亮点

  • 右键任意选项,就地展开补充框;备注随答案一起提交给模型。
  • 底部旁问区可以先追问模型,回答直接流式显示,不提交、不改写当前答案。
  • 左键选择、自由输入、多选与提交语义保持官方原样。
  • 计划审查、审批等非选择题卡片不接管,继续走官方实现。
  • 旁问只读取当前会话上下文,不写入主会话,不破坏主对话缓存前缀。

安装

# npm
dsh plugin --profile desktop add dsh-better-choice@1.0.0

# GitHub
dsh plugin --profile desktop add github:TLEWA/dsh-better-choice#v1.0.0

安装后硬刷新(Ctrl+Shift+R)。

验证

  • npm run check 通过,npm test 6 项全部通过。
  • 在真实 DSH Web GUI 中用 CDP 发送右键 mousePressed/mouseReleased 实测:补充框展开、选项选中、备注进入 custom 并送达模型。
  • 本版本要求 Node.js >= 20。

链接