dsh-codinput 0.3.0 → 0.3.2

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 CHANGED
@@ -2,6 +2,46 @@
2
2
 
3
3
  本项目遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 与 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.3.2] — 2026-10-18
6
+
7
+ 桌面版 0.2.1 模型区同步(官方 1017 发布徽章);侧栏标签与指南页条目上品牌标。
8
+
9
+ ### 新增
10
+
11
+ - **模型名 1017 发布徽章同步(桌面版 `0.2.1-rc.2`)**:官方给模型座位新增了模型名标签子槽位(`conversation.input.model.label`),并以内置插件给 DeepSeek 官方通道的 flash 模型显示名后追加一枚 info 色发布徽章「1017」。Codinput 原样渲染该槽位的官方条目组件——触发器、模型菜单根页与模型列表三处与原生输入框同款(徽章样式随官方插件自带注入)。官方未提供条目时(web 各版本、桌面 `0.2.0-rc.2` 及更早)自动回退纯模型名,与各自宿主的原生表现一致。
12
+ - **侧栏标签与指南页条目上品牌标**:侧栏标签芯片改走官方标签标题座位(`sidebar.right.pane.tab.title`,与官方 Files / Guide 标签同构),在标签名前渲染鲸鱼蓝 `#3964FE` 品牌标(此前是无图标的纯文本);指南页「Codinput」条目同样以品牌标替换官方的灰色立方体兜底图标;拖出浮动后窗口标题同享。
13
+
14
+ ### 变更
15
+
16
+ - **思考强度显示对齐官方公式**:会话未显式指定强度时回落当前模型的默认强度并显示其名字(此前一律显示「Default」,官方显示的是默认强度名,如 Max / High);模型未提供推理元数据时显示会话保留强度。推理等级菜单在模型未声明默认强度时补官方的「Default(跟随提供方默认)」行;模型无推理元数据时不再显示强度入口(官方同款)。
17
+ - **触发器样式逐值对齐**:圆角走 `--dsw-radius-sm` 令牌链(无令牌的旧宿主回退原 24px 视觉);模型触发器字重 400、权限触发器保持 500——官方两款触发器本就不同,此前共用类一律 500。
18
+
19
+ ### 说明
20
+
21
+ - **检测即兼容**:模型徽章经官方槽位条目渲染,条目缺席时自动回退纯名,无样式无行为残留。桌面版 `0.2.1-rc.2` 端到端实测(徽章、强度显示、品牌标、触发器);web `0.1.7-rc.2` 按官方包逐行取证(无该子槽位与徽章插件、目录快照字段一致)加守卫降级覆盖;`0.1.5-rc.2` / `0.1.6-alpha.2` 沿用既往结论。升级宿主后建议按 [TESTING.md](./TESTING.md) 冒烟。
22
+
23
+ [0.3.2]: https://github.com/Witherwithwinter/DSH-Codinput/compare/v0.3.1...v0.3.2
24
+
25
+ ## [0.3.1] — 2026-10-11
26
+
27
+ 编辑 + 预览分屏同步滚动;README 展示图与品牌视觉更新;第三方归属补全。
28
+
29
+ ### 新增
30
+
31
+ - **分屏同步滚动**:编辑 + 预览分屏时两栏按滚动比例互随(两侧内容高度不同,按比例映射);只保留编辑栏一个滚动条,预览栏藏起滚动条但滚轮仍可反向带动编辑器;进入分屏、草稿更新或切换会话后,预览按编辑器当前比例自动对齐。同时修复分屏内容过高时两栏都出不了滚动条的布局缺陷(grid 隐式行随内容撑高、不受 `max-height` 钳制——两栏改 `minmax(0,1fr)` + `min-height:0`)。
32
+
33
+ ### 变更
34
+
35
+ - **README 展示图更新为桌面版实拍四图**(普通 / 编辑+预览分屏 / 悬浮 / 侧栏,2×2 布局),并改用**无损 webp**(体积约为原 PNG 的 1/4,像素级无损);英文 README 与中文共用同一套配图(`assets/en/` 移除);DSH 兼容徽章更新为 `0.2.0-rc.2+`(展示图摄于桌面版 `0.2.0-rc.2`)。
36
+ - **品牌图标重上色**:描边由紫蓝 `#4632DE` 换为 DeepSeek 鲸鱼蓝 `#3964FE`(README 头图、`icon.svg` / `icon.png` 同步,PNG 重渲染仍为 320×320 透明底)。
37
+ - **第三方归属补全**:内置依赖(CodeMirror 6、marked、DOMPurify)的版权行与许可声明集中进 [NOTICE](./NOTICE)——压缩产物不留许可注释,NOTICE 随 npm 包分发,覆盖源码与包两种安装路径。
38
+
39
+ ### 说明
40
+
41
+ - 宿主兼容不变:桌面版(Electron,`0.2.0-rc.2`)与 `0.1.7-rc.2`(next)实测通过,`0.1.5-rc.2` / `0.1.6-alpha.2` 沿用既往结论;升级宿主后建议按 [TESTING.md](./TESTING.md) 冒烟。
42
+
43
+ [0.3.1]: https://github.com/Witherwithwinter/DSH-Codinput/compare/v0.3.0...v0.3.1
44
+
5
45
  ## [0.3.0] — 2026-10-02
6
46
 
7
47
  官方桌面版语音输入同步:原生输入框有语音按钮时,Codinput 在一模一样的位置渲染一模一样的按钮。
package/NOTICE CHANGED
@@ -16,3 +16,22 @@ Portions of this project replicate DeepSeek Harness (`@deepseek-ai/dsh`, MIT
16
16
  License, Copyright (c) 2026 DeepSeek), as detailed above. They are used under
17
17
  the MIT license, and the original copyright and permission notice are retained
18
18
  alongside this repository's LICENSE file.
19
+
20
+ 内置第三方依赖的版权与许可声明 / Bundled third-party dependencies
21
+ =====================================================================
22
+
23
+ 发布产物 `lib/client.js` 内置以下第三方库(压缩构建剥离了许可注释,故在此
24
+ 集中保留其版权行;许可全文见各上游仓库 / npm 包):
25
+
26
+ - CodeMirror 6(@codemirror/state / view / language / commands)
27
+ MIT License
28
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
29
+
30
+ - marked
31
+ MIT License
32
+ Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
33
+ Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
34
+
35
+ - DOMPurify
36
+ (MPL-2.0 OR Apache-2.0) 双许可,本项目按 Apache-2.0 条款使用
37
+ Copyright (c) Cure53 and contributors (https://cure53.de/)
package/README.en.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://www.npmjs.com/package/dsh-codinput"><img src="https://img.shields.io/npm/v/dsh-codinput" alt="npm Version" /></a>
9
- <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/DSH-0.1.5--rc.2%2B-blue" alt="DSH Version" /></a>
9
+ <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/DSH-0.2.0--rc.2%2B-blue" alt="DSH Version" /></a>
10
10
  <a href="https://www.npmjs.com/package/dsh-codinput"><img src="https://img.shields.io/npm/dm/dsh-codinput" alt="Downloads" /></a>
11
11
  <a href="https://github.com/Witherwithwinter/DSH-Codinput/stargazers"><img src="https://img.shields.io/github/stars/Witherwithwinter/DSH-Codinput" alt="GitHub Stars" /></a>
12
12
  <a href="./LICENSE"><img src="https://img.shields.io/github/license/Witherwithwinter/DSH-Codinput" alt="License" /></a>
@@ -16,23 +16,17 @@
16
16
 
17
17
  <p align="center">An editor-style input panel, right where the DeepSeek Harness chat composer used to be.</p>
18
18
 
19
- ![Default mode](./assets/en/preview-normal.png)
20
-
21
19
  <table>
22
20
  <tr>
23
- <td width="50%"><img src="./assets/en/preview-split.png" alt="Edit + preview split" /><br /><sub>Edit + preview split (exactly half and half)</sub></td>
24
- <td width="50%"><img src="./assets/en/preview-float.png" alt="Floating mode" /><br /><sub>Floating mode (draggable, resizable from all 8 edges/corners)</sub></td>
21
+ <td width="50%"><img src="./assets/preview-normal.webp" alt="Default mode" /><br /><sub>Default mode (takes over the original composer slot)</sub></td>
22
+ <td width="50%"><img src="./assets/preview-split.webp" alt="Edit + preview split" /><br /><sub>Edit + preview split (exactly half and half)</sub></td>
25
23
  </tr>
26
24
  <tr>
27
- <td width="50%"><img src="./assets/en/preview-side.png" alt="Sidebar tab mode" /><br /><sub>Sidebar tab mode (full-height, VS Code panel style)</sub></td>
28
- <td width="50%"><img src="./assets/en/preview-ball-detail.png" alt="Recall ball" /><br /><sub>The recall ball shown when the sidebar is collapsed (close-up)</sub></td>
25
+ <td width="50%"><img src="./assets/preview-float.webp" alt="Floating mode" /><br /><sub>Floating mode (draggable, resizable from all 8 edges/corners)</sub></td>
26
+ <td width="50%"><img src="./assets/preview-side.webp" alt="Sidebar tab mode" /><br /><sub>Sidebar tab mode (full-height, VS Code panel style)</sub></td>
29
27
  </tr>
30
28
  </table>
31
29
 
32
- <p align="center">
33
- <sub>Every string goes through the host locale service, so the UI follows the host language setting (中文 / English) — the screenshots above are the English UI, the Chinese ones live in the <a href="./README.md">中文 README</a></sub>
34
- </p>
35
-
36
30
  ## Features
37
31
 
38
32
  **Three modes, one instance** — the input surface exists in exactly one of three states at any moment, and never coexists with the official composer:
@@ -167,7 +161,7 @@ npm run typecheck
167
161
 
168
162
  Parts of this project **replicate DeepSeek Harness** (`@deepseek-ai/dsh`, MIT License, Copyright (c) 2026 DeepSeek): several SVG icon paths (the permission shield set, plus, paperclip, close, arrow-up, the generic file glyph, …) and CSS values for the composer card, the attachment rail and the original-image lightbox. They are used under the MIT license; the original copyright and permission notice are retained in [NOTICE](./NOTICE) alongside [LICENSE](./LICENSE).
169
163
 
170
- Bundled third-party dependencies: CodeMirror 6 (MIT), marked (MIT), DOMPurify (Apache-2.0 / MPL-2.0 dual licensed).
164
+ Bundled third-party dependencies: CodeMirror 6 (MIT), marked (MIT), DOMPurify (Apache-2.0 / MPL-2.0 dual licensed, used under Apache-2.0) — the minified bundle strips license comments, so their copyright and license notices are retained in [NOTICE](./NOTICE).
171
165
 
172
166
  ## License
173
167
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://www.npmjs.com/package/dsh-codinput"><img src="https://img.shields.io/npm/v/dsh-codinput" alt="npm Version" /></a>
9
- <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/DSH-0.1.5--rc.2%2B-blue" alt="DSH Version" /></a>
9
+ <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/DSH-0.2.0--rc.2%2B-blue" alt="DSH Version" /></a>
10
10
  <a href="https://www.npmjs.com/package/dsh-codinput"><img src="https://img.shields.io/npm/dm/dsh-codinput" alt="Downloads" /></a>
11
11
  <a href="https://github.com/Witherwithwinter/DSH-Codinput/stargazers"><img src="https://img.shields.io/github/stars/Witherwithwinter/DSH-Codinput" alt="GitHub Stars" /></a>
12
12
  <a href="./LICENSE"><img src="https://img.shields.io/github/license/Witherwithwinter/DSH-Codinput" alt="License" /></a>
@@ -16,23 +16,17 @@
16
16
 
17
17
  <p align="center">把 DeepSeek Harness 的聊天输入框,换成编辑器式的输入面板。</p>
18
18
 
19
- ![普通模式](./assets/preview-normal.png)
20
-
21
19
  <table>
22
20
  <tr>
23
- <td width="50%"><img src="./assets/preview-split.png" alt="编辑 + 预览分屏" /><br /><sub>编辑 + 预览分屏(严格对半)</sub></td>
24
- <td width="50%"><img src="./assets/preview-float.png" alt="悬浮模式" /><br /><sub>悬浮模式(可拖动位置、八向缩放)</sub></td>
21
+ <td width="50%"><img src="./assets/preview-normal.webp" alt="普通模式" /><br /><sub>普通模式(接管原输入位)</sub></td>
22
+ <td width="50%"><img src="./assets/preview-split.webp" alt="编辑 + 预览分屏" /><br /><sub>编辑 + 预览分屏(严格对半)</sub></td>
25
23
  </tr>
26
24
  <tr>
27
- <td width="50%"><img src="./assets/preview-side.png" alt="侧栏标签模式" /><br /><sub>侧栏标签模式(VS Code 面板式全高)</sub></td>
28
- <td width="50%"><img src="./assets/preview-ball-detail.png" alt="右上角小球" /><br /><sub>侧栏收起时的唤出小球(特写)</sub></td>
25
+ <td width="50%"><img src="./assets/preview-float.webp" alt="悬浮模式" /><br /><sub>悬浮模式(可拖动位置、八向缩放)</sub></td>
26
+ <td width="50%"><img src="./assets/preview-side.webp" alt="侧栏标签模式" /><br /><sub>侧栏标签模式(VS Code 面板式全高)</sub></td>
29
27
  </tr>
30
28
  </table>
31
29
 
32
- <p align="center">
33
- <sub>界面语言跟随宿主设置(中文 / English)—— 文案全部走宿主 locale 服务,上图为中文界面;英文界面见 <a href="./README.en.md">English README</a></sub>
34
- </p>
35
-
36
30
  ## 特性
37
31
 
38
32
  **三态单实例**——输入入口只有三种形态,任一时刻恰好一个,绝不与官方输入框共存:
@@ -165,7 +159,7 @@ npm run typecheck
165
159
 
166
160
  本项目的部分视觉素材与样式取值**复刻自 DeepSeek Harness**(`@deepseek-ai/dsh`,MIT License,Copyright (c) 2026 DeepSeek),包括若干 SVG 图标路径(权限盾牌系列、plus / paperclip / close / arrow-up 等)与输入框卡片、原图预览层的 CSS 取值。依 MIT 许可使用,原始版权与许可声明见仓库根目录 [NOTICE](./NOTICE) 与 [LICENSE](./LICENSE)。
167
161
 
168
- 内置第三方依赖:CodeMirror 6(MIT)、marked(MIT)、DOMPurify(Apache-2.0 / MPL-2.0 双许可)。
162
+ 内置第三方依赖:CodeMirror 6(MIT)、marked(MIT)、DOMPurify(Apache-2.0 / MPL-2.0 双许可,按 Apache-2.0 使用)——压缩产物不保留许可注释,其版权与许可声明集中保留在 [NOTICE](./NOTICE)。
169
163
 
170
164
  ## 许可
171
165
 
package/assets/icon.png CHANGED
Binary file
package/assets/icon.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="320" height="320" viewBox="0 0 320 320" fill="none" stroke="#4632de" stroke-width="6.5" stroke-linecap="round" stroke-linejoin="round">
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="320" height="320" viewBox="0 0 320 320" fill="none" stroke="#3964FE" stroke-width="6.5" stroke-linecap="round" stroke-linejoin="round">
2
2
  <!-- 左尖括号:发卡弯 + 内腿悬停收笔 + 底部小钩 -->
3
3
  <path d="M 99 204 Q 93 215 86 205 L 35 148 L 88 87 Q 96 79 104 86 L 52 147 L 84 181" />
4
4
  <!-- 右尖括号:闭合环带 -->
Binary file
Binary file
Binary file
Binary file