dsh-codinput 0.3.0 → 0.3.1
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 +20 -0
- package/NOTICE +19 -0
- package/README.en.md +6 -12
- package/README.md +6 -12
- package/assets/icon.png +0 -0
- package/assets/icon.svg +1 -1
- package/assets/preview-float.webp +0 -0
- package/assets/preview-normal.webp +0 -0
- package/assets/preview-side.webp +0 -0
- package/assets/preview-split.webp +0 -0
- package/lib/client.js +39 -33
- package/package.json +1 -1
- package/src/client/components/CodinputSurface.tsx +31 -1
- package/src/client/styles.ts +8 -2
- package/assets/en/preview-ball-detail.png +0 -0
- package/assets/en/preview-float.png +0 -0
- package/assets/en/preview-normal.png +0 -0
- package/assets/en/preview-side.png +0 -0
- package/assets/en/preview-split.png +0 -0
- package/assets/preview-ball-detail.png +0 -0
- package/assets/preview-float.png +0 -0
- package/assets/preview-normal.png +0 -0
- package/assets/preview-side.png +0 -0
- package/assets/preview-split.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.1] — 2026-10-11
|
|
6
|
+
|
|
7
|
+
编辑 + 预览分屏同步滚动;README 展示图与品牌视觉更新;第三方归属补全。
|
|
8
|
+
|
|
9
|
+
### 新增
|
|
10
|
+
|
|
11
|
+
- **分屏同步滚动**:编辑 + 预览分屏时两栏按滚动比例互随(两侧内容高度不同,按比例映射);只保留编辑栏一个滚动条,预览栏藏起滚动条但滚轮仍可反向带动编辑器;进入分屏、草稿更新或切换会话后,预览按编辑器当前比例自动对齐。同时修复分屏内容过高时两栏都出不了滚动条的布局缺陷(grid 隐式行随内容撑高、不受 `max-height` 钳制——两栏改 `minmax(0,1fr)` + `min-height:0`)。
|
|
12
|
+
|
|
13
|
+
### 变更
|
|
14
|
+
|
|
15
|
+
- **README 展示图更新为桌面版实拍四图**(普通 / 编辑+预览分屏 / 悬浮 / 侧栏,2×2 布局),并改用**无损 webp**(体积约为原 PNG 的 1/4,像素级无损);英文 README 与中文共用同一套配图(`assets/en/` 移除);DSH 兼容徽章更新为 `0.2.0-rc.2+`(展示图摄于桌面版 `0.2.0-rc.2`)。
|
|
16
|
+
- **品牌图标重上色**:描边由紫蓝 `#4632DE` 换为 DeepSeek 鲸鱼蓝 `#3964FE`(README 头图、`icon.svg` / `icon.png` 同步,PNG 重渲染仍为 320×320 透明底)。
|
|
17
|
+
- **第三方归属补全**:内置依赖(CodeMirror 6、marked、DOMPurify)的版权行与许可声明集中进 [NOTICE](./NOTICE)——压缩产物不留许可注释,NOTICE 随 npm 包分发,覆盖源码与包两种安装路径。
|
|
18
|
+
|
|
19
|
+
### 说明
|
|
20
|
+
|
|
21
|
+
- 宿主兼容不变:桌面版(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) 冒烟。
|
|
22
|
+
|
|
23
|
+
[0.3.1]: https://github.com/Witherwithwinter/DSH-Codinput/compare/v0.3.0...v0.3.1
|
|
24
|
+
|
|
5
25
|
## [0.3.0] — 2026-10-02
|
|
6
26
|
|
|
7
27
|
官方桌面版语音输入同步:原生输入框有语音按钮时,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.
|
|
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
|
-

|
|
20
|
-
|
|
21
19
|
<table>
|
|
22
20
|
<tr>
|
|
23
|
-
<td width="50%"><img src="./assets/
|
|
24
|
-
<td width="50%"><img src="./assets/
|
|
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/
|
|
28
|
-
<td width="50%"><img src="./assets/
|
|
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.
|
|
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
|
-

|
|
20
|
-
|
|
21
19
|
<table>
|
|
22
20
|
<tr>
|
|
23
|
-
<td width="50%"><img src="./assets/preview-
|
|
24
|
-
<td width="50%"><img src="./assets/preview-
|
|
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-
|
|
28
|
-
<td width="50%"><img src="./assets/preview-
|
|
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="#
|
|
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
|