Skip to content

Releases: Starxer/chatterbox4dsh

chatterbox4dsh 0.2.0

Choose a tag to compare

@Starxer Starxer released this 08 Sep 16:40

chatterbox4dsh 0.2.0

首个独立发布的版本(npm 上一个版本是 0.1.0)。要求 DSH 0.1.3-alpha.x:assistant/chunk 已被 DSH 移除,插件改从 assistant/message.stream 重建流式内容,不再向前兼容 0.1.2。

The first independent release (npm was at 0.1.0). Requires DSH 0.1.3-alpha.x — DSH removed assistant/chunk, so the plugin rebuilds streaming content from assistant/message.stream. 0.1.2 compatibility was intentionally dropped.

亮点 / Highlights

  • 步骤卡片更可靠:一步一卡、首发防抖合并(快步骤只发一张卡)、CardKit 实例更新严格排在消息发出之后——不再出现「卡片只剩 reasoning」或「工具停在 ⏳ running…」。

  • 每张助手卡都有 tok/s:步骤卡 footer、溢出续卡、兜底回复卡;Turn Complete 的吞吐量口径对齐 DSH Web UI(首 token 判定含 tool-call delta,token 与 decode 时间同批配对)。

  • 步骤卡定位信息:标题带「第 N 轮 · 第 M 步」,reasoning 标题带思考耗时与思考 token,footer 拆成两行。

  • 运行中交互:发普通消息先回一条纯文本提示(已插入 / 已排队);steer 注入的消息不再重复回卡。

  • 文件收发:图片按真实字节判型(PNG/JPEG/WebP/GIF);文件与图片统一落 DSH 原生附件库;feishu_send_file(图片内联预览)与 feishu_receive_file。

  • 工作区选择 / 目录浏览:改用 interactive_container 可点击整行(无按钮外观、名字不省略);被替换的旧卡片自动改写为「已失效」提示。

  • 命令与双语:/thread → /session;移除 /stream;/permission、/busy、/model 交互式卡片;中英双语(/lang);错误回报带具体原因与错误码。

  • 文档:README 改为中英文对照;架构、能力、安装文档同步到当前实现。

  • More reliable step cards: one card per step, a debounced first send (a fast step posts a single card), and CardKit instance updates strictly after the message is sent — no more "reasoning-only" cards or "⏳ running…" tools.

  • tok/s on every assistant card: step-card footer, overflow continuation cards and fallback reply cards; Turn Complete throughput matches the DSH Web UI (tool-call deltas count as the first token; tokens and decode time are paired).

  • Step card orientation: title tagged with "turn N · step M", reasoning header showing thinking time and tokens, footer split into two lines.

  • Busy-chat behavior: a plain message sent while running gets a plain-text notice (injected / queued), and a steered message no longer produces a duplicate reply card.

  • File transfer: images are typed from real bytes; files and images land in the native DSH attachment store; feishu_send_file (inline image preview) and feishu_receive_file.

  • Workspace picking / directory browser: clickable interactive_container rows; superseded cards are rewritten into a "no longer active" notice.

  • Commands and i18n: /thread → /session, /stream removed, interactive cards for /permission, /busy and /model, Chinese/English UI (/lang), and concrete error causes with error codes.

  • Docs: the README is now bilingual (Chinese + English); architecture, capabilities and setup docs are synced to the implementation.

破坏性变更 / Breaking changes

  • 要求 DSH 0.1.3-alpha.x,不再支持 0.1.2。

  • /thread 更名为 /session(不保留别名)。

  • 移除 /stream 命令与 showIntermediateMessages 配置。

  • 不再注册 compact(与 DSH 内置 command-compact 同名冲突;请使用 DSH 自带的 /compact)。

  • Requires DSH 0.1.3-alpha.x; 0.1.2 is no longer supported.

  • /thread renamed to /session (no alias kept).

  • /stream and the showIntermediateMessages setting were removed.

  • compact is not registered (same-name conflict with DSH's built-in command-compact); use the built-in /compact.

Full changelog: CHANGELOG.md