dsh-composer-live 0.2.19 → 0.2.21

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,24 @@
2
2
 
3
3
  > 更新日志以中文记录。Changelog entries are written in Chinese.
4
4
 
5
+ ## 0.2.21(2026-11-01)
6
+
7
+ **插件市场元数据补全(用户在 dshmarket 市场条目发现信息不全):宿主声明、插件图标、双语描述门面。**
8
+
9
+ - **新增 `dsh.engines.dsh: ">=0.1.5-rc.2"` 宿主声明**——此前市场条目显示「未声明宿主要求」标签;声明后插件管理器的版本兼容判断与市场信息都有明确依据。
10
+ - **新增插件图标**(`assets/icon-180.png` / `icon-256.png`):墨底圆角方 + 青瓷闪电 + 暖白光标线(Chrome 矢量渲染截图生成);`package.json` 增 `icon` 字段,npm files 白名单与发布白名单同步收录。
11
+ - **package.json description 英文化精炼**(旧的是中文长句,npm 搜索与英文市场不友好):`Type Markdown, see it rendered live — Open-WebUI-style composer for DeepSeek Harness (DSH) web. …`
12
+ - **README(双语)顶部品牌化**:居中 logo + 标题 + 一句话卖点 + 徽章居中。
13
+ - 同步更新 GitHub 仓库 description / homepage(市场英文描述的抓取源)。
14
+
15
+ ## 0.2.20(2026-11-01)
16
+
17
+ **demo GIF 重录:修正分镜与列表自动续项的交互,任务勾选框与代码块补全过程正确呈现。**
18
+
19
+ - 0.2.18 的 GIF 分镜在列表行尾按 Shift+Enter 后**又手打了 `- `**——续项功能已自动补前缀,实际文本变成 `- - [x]`(双横线嵌套),勾选胶囊的渲染条件不满足,GIF 里勾选框没出现(用户指正)。
20
+ - 修正后的分镜**顺着续项行为**:Shift+Enter 接受自动补的 `- ` 直接打 `[x]…`(勾选胶囊正常渲染),任务行后空项再按一次 Shift+Enter **顺带演示「空项退出列表」**,然后围栏补全成代码块。
21
+ - 画面防线加固:hero 态优先(不再点「选择工作区」——进工作区会展开侧栏露出真实工作区名);`[class*="workspaceLabel"]` 隐藏(hero 输入组顶部的工作区选择器);顶部遮罩 52→100px。DOM 级验证:`dsh-cl-task-done` 勾选胶囊、`dsh-cl-dl` 删除线、`dsh-cl-tok-*` 语法高亮 class 全部在位。
22
+
5
23
  ## 0.2.19(2026-11-01)
6
24
 
7
25
  **README 图片引用改为 GitHub 绝对 URL(npm 包页面渲染修复)。** npmjs.com 不解析包内相对路径图片——0.2.18 的 demo GIF 与三张截图在 npm 页面会显示破图。全部改为 `raw/main` 绝对链接,GitHub 与 npm 双端正常渲染。GitHub 仓库同步补齐了全部 8 个版本的 Release(含正文)并加上 `dsh-plugin` topic(dsh-plugin.org 自动发现收录)。
@@ -39,14 +57,15 @@
39
57
  - **新增 CDP trusted op**(run-e2e.mjs 拦截执行,合成事件不触发浏览器默认行为的结构性盲区):`cdpType`(Input.insertText 逐字打字)/ `cdpKey`(trusted keydown)/ `mouseSelect`(真实鼠标拖选)/ `dblClick` / `tripleClick` / `shiftClick`;页内新增 op:`typeChars`(execCommand 逐字符)/ `deleteKey`(前向删除)/ `selectWord` / `expectSel`(选区投影区间断言)/ `stressWrap`(时序压力探测器)。
40
58
  - 单测 188 → 206 项(`_decideWrapAction` 此前零覆盖,补 18 条形态测试)。
41
59
 
60
+ ## 0.2.15(2026-10-22)
42
61
 
43
- **输入 `/` 命令/技能名时文字无颜色、hover 被色块遮挡(用户 0.2.1 实测反馈)。**
62
+ **输入 `/` 命令/技能名时文字无颜色、hover 被色块遮挡(用户 0.2.1 实测反馈)。** 本版本还包含了下面 0.2.14 段(工具栏迁出输入卡)的变更——0.2.14 版本号未单独发布。
44
63
 
45
64
  - **根因**:0.2.x 官方把 `/anatomy` 这类技能命令识别为「文本引用装饰」`[data-composer-text-ref]`——span 带 `color: var(--dsw-alias-state-business-primary)`(主题引用色)与 `:hover { background: var(--dsw-alias-state-business-tertiary) }`。插件把编辑器文字 `-webkit-text-fill-color: transparent` 后由 overlay 重绘,装饰的 `color` 因此不可见(文字显示为普通正文色);而 hover 背景留在编辑器层(`z-index: 1`,画在 overlay 之上),会整块盖住渲染文字。
46
65
  - **修法**:`buildAnchors` 记录 `[data-composer-text-ref]` 的投影区间(挂在 `anchors.refs`),`renderCharOverlay` 按绝对 offset 给对应字符加 `dsh-cl-ref` class,颜色取同一主题变量 `--dsw-alias-state-business-primary`(明暗主题自动跟随,取不到时回退 `#3b82f6`);同时注入 `[data-composer-text-ref]:hover { background: transparent !important }` 禁掉编辑器层 hover 背景,杜绝遮挡。
47
66
  - 单测 188 项通过。
48
67
 
49
- ## 0.2.14(2026-10-06)
68
+ ## 0.2.14(2026-10-06,未单独发布——随 0.2.15 一同发布)
50
69
 
51
70
  **工具栏迁出输入卡:放卡外正上方,不再占输入框内部空间(用户反馈「工具栏阻碍输入框空间」)。**
52
71
 
package/README.md CHANGED
@@ -1,12 +1,16 @@
1
- # dsh-composer-live
1
+ <p align="center"><img src="https://github.com/zeusxx/dsh-composer-live/raw/main/assets/icon-180.png" width="96" alt="dsh-composer-live logo"></p>
2
2
 
3
- **Live Markdown rendering and typing enhancements for the DeepSeek Harness (DSH) web composer.**
3
+ <h1 align="center">dsh-composer-live</h1>
4
4
 
5
- [English](./README.md) · [简体中文](./README.zh-CN.md)
5
+ <p align="center"><b>Type Markdown, see it rendered live</b> — Open-WebUI-style composer for the DeepSeek Harness (DSH) web.</p>
6
6
 
7
- ![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
8
- ![DSH](https://img.shields.io/badge/DSH-%3E%3D%200.1.5--rc.2-4c6ef5)
9
- ![Tests](https://img.shields.io/badge/tests-206%20unit%20%C2%B7%20129%20E2E-2ea44f)
7
+ <p align="center">[English](./README.md) · [简体中文](./README.zh-CN.md)</p>
8
+
9
+ <p align="center">
10
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT">
11
+ <img src="https://img.shields.io/badge/DSH-%3E%3D%200.1.5--rc.2-4c6ef5" alt="DSH >= 0.1.5-rc.2">
12
+ <img src="https://img.shields.io/badge/tests-206%20unit%20%C2%B7%20129%20E2E-2ea44f" alt="tests">
13
+ </p>
10
14
 
11
15
  ![Live typing demo: inline styles, lists, task items, then a ```js code block auto-completes and highlights as you type](https://github.com/zeusxx/dsh-composer-live/raw/main/docs/screenshots/demo.gif)
12
16
 
package/README.zh-CN.md CHANGED
@@ -1,12 +1,16 @@
1
- # dsh-composer-live
1
+ <p align="center"><img src="https://github.com/zeusxx/dsh-composer-live/raw/main/assets/icon-180.png" width="96" alt="dsh-composer-live 图标"></p>
2
2
 
3
- **为 DeepSeek Harness(DSH)Web 输入框带来 Markdown 实时渲染与输入体验增强。**
3
+ <h1 align="center">dsh-composer-live</h1>
4
4
 
5
- [English](./README.md) · [简体中文](./README.zh-CN.md)
5
+ <p align="center"><b>打 Markdown,边打边渲染</b>——给 DeepSeek Harness(DSH)Web 输入框带来 Open WebUI 风格的实时编辑体验。</p>
6
6
 
7
- ![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
8
- ![DSH](https://img.shields.io/badge/DSH-%3E%3D%200.1.5--rc.2-4c6ef5)
9
- ![Tests](https://img.shields.io/badge/tests-206%20unit%20%C2%B7%20129%20E2E-2ea44f)
7
+ <p align="center">[English](./README.md) · [简体中文](./README.zh-CN.md)</p>
8
+
9
+ <p align="center">
10
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT">
11
+ <img src="https://img.shields.io/badge/DSH-%3E%3D%200.1.5--rc.2-4c6ef5" alt="DSH >= 0.1.5-rc.2">
12
+ <img src="https://img.shields.io/badge/tests-206%20unit%20%C2%B7%20129%20E2E-2ea44f" alt="tests">
13
+ </p>
10
14
 
11
15
  ![实时打字演示:行内格式、列表、任务项,```js 代码块自动补全并语法高亮](https://github.com/zeusxx/dsh-composer-live/raw/main/docs/screenshots/demo.gif)
12
16
 
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "dsh-composer-live",
3
- "version": "0.2.19",
4
- "description": "DSH Web 0.1.5+ 输入框增强(Lexical contenteditable 架构版):markdown 实时渲染 + 代码块语法高亮/段落级等宽 + 格式工具栏(常驻顶条 + 选区浮动条)+ 70vh 展开 + 大段粘贴包代码块 + Esc 分发。纯浏览器端插件,零依赖,不改官方源码。仿 Open WebUI 输入体验。",
3
+ "version": "0.2.21",
4
+ "description": "Type Markdown, see it rendered live — Open-WebUI-style composer for DeepSeek Harness (DSH) web. Syntax-highlighted code blocks, task lists, format toolbars, smart paste. Pure browser-side, zero dependencies.",
5
+ "icon": "./assets/icon-180.png",
5
6
  "type": "module",
6
7
  "main": "index.js",
7
8
  "exports": {
@@ -18,6 +19,7 @@
18
19
  "README.zh-CN.md",
19
20
  "CHANGELOG.md",
20
21
  "docs",
22
+ "assets",
21
23
  "LICENSE"
22
24
  ],
23
25
  "scripts": {
@@ -32,6 +34,9 @@
32
34
  "inject": [],
33
35
  "platform": "web",
34
36
  "immediately": true
37
+ },
38
+ "engines": {
39
+ "dsh": ">=0.1.5-rc.2"
35
40
  }
36
41
  },
37
42
  "peerDependencies": {