@michengai/dsh-btw 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/CHANGELOG.zh-CN.md +13 -0
- package/assets/icon.svg +18 -0
- package/lib/client.js +494 -7375
- package/lib/index.js +4 -2
- package/lib/types/client/NativeBtwAsk.d.ts +49 -0
- package/lib/types/client/SelectionAsk.d.ts +3 -1
- package/lib/types/client/official-quote.d.ts +52 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/client/user-quote-chip.d.ts +4 -1
- package/lib/types/locales.d.ts +1 -0
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0] - 2026-10-29
|
|
4
|
+
|
|
5
|
+
- Align with official message quotes specification: Pixel-perfect adoption of `@deepseek-ai/dsh-message-quotes` text selection interactions. Seamlessly integrate into the native `conversation.chat.text-interaction` slot on newer hosts while providing an exact floating fallback on older hosts.
|
|
6
|
+
- Deterministic selection toolbar ordering: Lock toolbar layout with "Quote text" on the left and "Ask BTW" on the right with a 6px gap, completely eliminating race-condition button jumping and capsule squeezing.
|
|
7
|
+
- Clean composer with rich-text quote link: Render quotes as inline rich-text link cards inside the input composer and completely eliminate obsolete floating pill bars above the composer.
|
|
8
|
+
- Bubble quote cards and HoverCard full-text preview: Elevate user bubble quotes to inline quote cards with native double-quote SVG markers and ellipsis overflow, accompanied by full-text HoverCard popovers on mouse hover.
|
|
9
|
+
- Compatibility matrix expansion: Broaden multi-host compatibility test suites to encompass the latest Release Candidate (`0.2.1-rc.4`) and latest Alpha release (`0.2.2-alpha.2`), ensuring 100% parity from `0.2.0-rc.1` through cutting-edge hosts.
|
|
10
|
+
|
|
11
|
+
## [1.1.1] - 2026-10-27
|
|
12
|
+
|
|
13
|
+
- Add official plugin vector icon: Introduce `assets/icon.svg` (transparent vector icon designed with dual bubbles and thought sparkles) and declare `icon` in the plugin manifest for better visual representation in the host extension manager and marketplace.
|
|
14
|
+
- Update release verification whitelist: Include plugin icon in npm package check and file integrity validation.
|
|
15
|
+
|
|
3
16
|
## [1.1.0] - 2026-10-26
|
|
4
17
|
|
|
5
18
|
- Return an answer to the main conversation on request: a side ask may now call the host's inherited `send_message` — but only addressed at its own parent session (`agent_id` = `session.header.parentSession`) — so the conclusion can be delivered back when the user asks for it. Every other tool call, and any `send_message` aimed at another agent, stays rejected. Reusing one inherited tool instead of registering a new one keeps the side-ask request's tool list byte-identical, so parent prompt cache reuse is preserved.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.2.0] - 2026-10-29
|
|
4
|
+
|
|
5
|
+
- 接入官方选区引用规范:1:1 像素级复刻官方 `@deepseek-ai/dsh-message-quotes` 选区交互体验。在新版本宿主中自动接入原生 `conversation.chat.text-interaction` 插槽;在老版本宿主中通过高精度浮层降级承接。
|
|
6
|
+
- 选区工具栏顺序与间距锁死:锁定浮层为「引用文本」在左、「旁问」在右,间距固定 6px,彻底消除渲染竞争导致的前后跳变与胶囊挤压。
|
|
7
|
+
- 输入框引用富文本链接呈现:点击引用后在输入框内以富文本链接卡片样式呈现引文,彻底拔除输入框上方多余的悬浮药丸横条,保持输入区域干净整洁。
|
|
8
|
+
- 消息气泡引文与悬停预览升级:消息气泡内的引用升级为多行内联卡片(带原生双引号图标、无多余下划线、单行截断),并在鼠标悬停时通过 HoverCard 原生浮层展示完整引文全文。
|
|
9
|
+
- 兼容性矩阵扩展:官方兼容性测试矩阵全面覆盖最新版 RC(`0.2.1-rc.4`)与最新版阿尔法宿主(`0.2.2-alpha.2`),实现从 `0.2.0-rc.1` 至最新宿主的双轨无缝运行与 1:1 体验一致性。
|
|
10
|
+
|
|
11
|
+
## [1.1.1] - 2026-10-27
|
|
12
|
+
|
|
13
|
+
- 补充插件官方矢量图标:新增 `assets/icon.svg` 透明矢量图标(双层气泡与思考火花造型),并在插件清单中声明 `icon` 字段,提升宿主扩展管理面板与插件市场的视觉呈现。
|
|
14
|
+
- 完善发布白名单校验:将插件图标纳入打包与完整性校验清单。
|
|
15
|
+
|
|
3
16
|
## [1.1.0] - 2026-10-26
|
|
4
17
|
|
|
5
18
|
- 按需回传答案到主对话:旁问现在可以调用宿主继承来的 `send_message`,但仅限发给自己的父会话(`agent_id` = `session.header.parentSession`),用户明确要求时才把结论带回主对话。其余任何工具调用、以及发给其他 agent 的 `send_message` 仍然一律拒绝。复用已有的继承工具而不是新注册一个,可以保持旁问请求的工具列表与主会话逐字节一致,不破坏主会话 prompt cache 复用。
|
package/assets/icon.svg
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="dsh_svg_btw_g" x1="6" y1="8" x2="28" y2="28" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop stop-color="#F97316"/>
|
|
5
|
+
<stop offset="1" stop-color="#FB7185"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<!-- Secondary Top-Right Bubble -->
|
|
9
|
+
<path d="M19 8C23.97 8 28 11.58 28 16C28 17.6 27.2 19.1 25.9 20.2L27 24L23.3 22.6C22 23.5 20.5 24 19 24C14.03 24 10 20.42 10 16C10 11.58 14.03 8 19 8Z" fill="#FDBA74" fill-opacity="0.4"/>
|
|
10
|
+
<!-- Primary Chat Bubble -->
|
|
11
|
+
<path d="M7 11C7 8.79 8.79 7 11 7H21C23.21 7 25 8.79 25 11V18C25 20.21 23.21 22 21 22H13L8 26V22C7.4 21.4 7 20.8 7 19.9V11Z" fill="url(#dsh_svg_btw_g)"/>
|
|
12
|
+
<!-- Three Dots Inside Bubble -->
|
|
13
|
+
<circle cx="12" cy="14.5" r="1.5" fill="#FFFFFF"/>
|
|
14
|
+
<circle cx="16" cy="14.5" r="1.5" fill="#FFFFFF"/>
|
|
15
|
+
<circle cx="20" cy="14.5" r="1.5" fill="#FFFFFF"/>
|
|
16
|
+
<!-- Sparkle of Thought -->
|
|
17
|
+
<path d="M29 5L29.8 7.2L32 8L29.8 8.8L29 11L28.2 8.8L26 8L28.2 7.2L29 5Z" fill="#F59E0B"/>
|
|
18
|
+
</svg>
|