@jcy2387/dsh-conversation-ui 0.2.0-rc.2 → 0.2.0-rc.2.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/README.en.md +16 -17
- package/README.md +16 -17
- package/lib/client.js +237 -1824
- package/lib/client.js.map +1 -1
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +4 -6
- package/src/client/DeliverablesCard.module.css +1 -5
- package/src/client/DeliverablesCard.tsx +20 -44
- package/src/client/NativeAssistantEnhancement.tsx +144 -0
- package/src/client/index.ts +8 -136
- package/src/client/locales.ts +25 -2
- package/src/settings.ts +3 -3
- package/src/client/AnimatedDisclosure.tsx +0 -89
- package/src/client/CodexTurnProcessNodeView.tsx +0 -127
- package/src/client/FollowHost.tsx +0 -31
- package/src/client/ToolActivityGroup.tsx +0 -303
- package/src/client/TranscriptViewBridge.tsx +0 -26
- package/src/client/TypewriterAssistantNodeView.module.css +0 -1226
- package/src/client/TypewriterAssistantNodeView.tsx +0 -422
- package/src/client/TypewriterToolNodeView.tsx +0 -831
- package/src/client/turnElapsed.ts +0 -23
- package/src/client/turnProcessFallback.ts +0 -91
- package/src/client/useChatSeatHidden.ts +0 -91
- package/src/client/useFpsGuard.ts +0 -84
- package/src/client/useSearchableHidden.ts +0 -23
package/README.en.md
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
# @jcy2387/dsh-conversation-ui
|
|
2
2
|
|
|
3
|
-
This release targets Harness `0.2.0-rc.2`. The deliverables card uses an independent list entry alongside native file previews, change review, and other plugins’ Turn-tail contributions. Settings appear on the Suite or standalone bundle page.
|
|
3
|
+
This release targets Harness `0.2.0-rc.2`. The deliverables card uses an independent list entry alongside native file previews, change review, and other plugins’ Turn-tail contributions. Settings appear on the Suite or standalone bundle page. Assistant rows delegate to the native renderer; DSH owns work-details modes, tool groups, folding, and scrolling. Older Harness users should keep the corresponding older plugin version.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/DamonBao/dsh-codex-suite/actions/workflows/ci.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
8
|
English | [简体中文](README.md)
|
|
9
9
|
|
|
10
|
-
A
|
|
10
|
+
A conversation enhancement plugin for DeepSeek Harness (DSH): progressive reveal and auto-expanded thinking augment the native assistant renderer, with deliveries contributed through an independent slot. DSH retains its ChatView, tool cards, Turn controls, and file previews. This is the Conversation UI package of the [DSH Codex Suite](../../README.md) monorepo.
|
|
11
11
|
|
|
12
12
|
**The package is fully independent from the Codex Provider** and can be installed alone to enhance conversations with any model.
|
|
13
13
|
|
|
14
14
|
## Features
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### Native conversation integration
|
|
17
17
|
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- **Markdown images:** local absolute-path images in assistant replies use DSH's authenticated file route.
|
|
22
|
-
|
|
23
|
-
### Semantic tool activity
|
|
24
|
-
|
|
25
|
-
- Search, file read, edit, shell, database, web, skill, and agent tools each render a distinct icon, so the activity stream is scannable at a glance; groups collapse and expand.
|
|
18
|
+
- Compact, Standard, Detailed, and Verbose work-details modes retain DSH's native grouping, reasoning previews, and process disclosure.
|
|
19
|
+
- The native assistant renderer owns Markdown, protected local images, attachments, file mentions, stopped markers, and final-answer actions.
|
|
20
|
+
- Tool, retry, workflow, command, and context rows retain their native layout. The plugin does not mutate registered components or reparent rows with portals.
|
|
26
21
|
|
|
27
22
|
### Two streaming reveal modes
|
|
28
23
|
|
|
@@ -32,12 +27,12 @@ A Codex-style conversation UI enhancement plugin for DeepSeek Harness (DSH): the
|
|
|
32
27
|
| `typewriter` | Progressive reveal by grapheme cluster, safe for CJK text and emoji. |
|
|
33
28
|
|
|
34
29
|
- Three smoothing presets: `realtime` (snappier), `balanced` (default), `silky` (extra smooth). Presets shape the reveal cadence — EMA-smoothed arrival rate, buffer targets, catch-up ceilings, and the settle drain after the input idles — so long replies never dump whole paragraphs at once and fast streams never stutter.
|
|
35
|
-
- `typewriter` mode
|
|
30
|
+
- `typewriter` mode exposes a fixed reveal rate via `revealCharsPerSec`. Completion and interruption immediately display the full snapshot; loading history or switching sessions does not replay the animation.
|
|
36
31
|
|
|
37
32
|
### Streaming viewport cooperation
|
|
38
33
|
|
|
39
34
|
- Current DSH `ChatView` exclusively owns the running status, per-session restoration, bottom-follow, and reader unpinning. The plugin no longer adds a second waiting row or writes `scrollTop` and row transforms.
|
|
40
|
-
- Respects `prefers-reduced-motion
|
|
35
|
+
- Respects `prefers-reduced-motion` by showing the latest snapshot immediately.
|
|
41
36
|
|
|
42
37
|
### Deliverables card
|
|
43
38
|
|
|
@@ -54,7 +49,7 @@ A Codex-style conversation UI enhancement plugin for DeepSeek Harness (DSH): the
|
|
|
54
49
|
Published package:
|
|
55
50
|
|
|
56
51
|
```sh
|
|
57
|
-
dsh plugin --profile web add @jcy2387/dsh-conversation-ui@0.2.0-rc.2
|
|
52
|
+
dsh plugin --profile web add @jcy2387/dsh-conversation-ui@0.2.0-rc.2.1
|
|
58
53
|
dsh web
|
|
59
54
|
```
|
|
60
55
|
|
|
@@ -67,7 +62,7 @@ dsh web
|
|
|
67
62
|
|
|
68
63
|
Alternatively install the [`@jcy2387/dsh-suite`](../all/README.md) bundle to enable both the Codex Provider and this plugin.
|
|
69
64
|
|
|
70
|
-
|
|
65
|
+
Native assistant enhancement activates automatically; existing session data stays unchanged.
|
|
71
66
|
|
|
72
67
|
## Configuration
|
|
73
68
|
|
|
@@ -108,7 +103,11 @@ The package ships a [`conversation-ui-off.yml`](conversation-ui-off.yml) overlay
|
|
|
108
103
|
The package ships two halves that cooperate over one very narrow config channel:
|
|
109
104
|
|
|
110
105
|
- **Host half** (`src/`): a Cordis plugin. It validates the config schema, injects the validated value into every served index HTML (the boot global `window.__DSH_CONVERSATION_UI_CONFIG__`), and registers the user-settings namespace plus a loopback-only settings RPC (read/write preferences, report installation kind, trigger an npm update).
|
|
111
|
-
- **Web half** (`src/client/`):
|
|
106
|
+
- **Web half** (`src/client/`): registers a thin `assistant-step` wrapper in `conversation.chat.node`, preserving the existing renderer's locale and injection while adjusting streaming text and native `useDisclosure`. It does not replace `conversation.view` or `turn-process`, or read host DOM. Deliveries use an independent `conversation.chat.turnTail` list entry; settings use `plugins.bundle.config`. Registration follows the slot declaration lifetime. An assistant renderer owning child slots or a Store remains unwrapped.
|
|
107
|
+
|
|
108
|
+
### Presentation after upgrading
|
|
109
|
+
|
|
110
|
+
The old custom tool icons, tool group frames, and process folding styles now use native DSH presentation. Select a work-details mode in DSH; reveal configuration and the persisted Auto-expand thinking preference continue to apply. No session format or credential migration is needed. Delivery cards read persisted Turn data rather than scanning other rows' DOM or hiding native file previews.
|
|
112
111
|
|
|
113
112
|
## Development
|
|
114
113
|
|
|
@@ -118,7 +117,7 @@ pnpm --filter @jcy2387/dsh-conversation-ui test
|
|
|
118
117
|
pnpm --filter @jcy2387/dsh-conversation-ui build
|
|
119
118
|
```
|
|
120
119
|
|
|
121
|
-
Tests run on vitest + Testing Library, covering
|
|
120
|
+
Tests run on vitest + Testing Library, loading the published DSH Chat factory and covering native modes, reasoning disclosure, images, stream reveal, load/unload order, and the settings card (both client and host sides). See the [monorepo README](../../README.md) for workspace-wide commands.
|
|
122
121
|
|
|
123
122
|
## License
|
|
124
123
|
|
package/README.md
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
# @jcy2387/dsh-conversation-ui
|
|
2
2
|
|
|
3
|
-
本版本面向 Harness `0.2.0-rc.2`。产物卡片使用列表插槽中的独立条目,与原生文件预览、变更审阅及其他插件的回合尾部内容共存;插件设置位于 Suite
|
|
3
|
+
本版本面向 Harness `0.2.0-rc.2`。产物卡片使用列表插槽中的独立条目,与原生文件预览、变更审阅及其他插件的回合尾部内容共存;插件设置位于 Suite 或独立插件的配置页。助手行委托原生组件渲染,工作步骤展示模式、工具分组、折叠和滚动由 DSH 管理。旧版 Harness 用户应继续使用对应旧版插件。
|
|
4
4
|
|
|
5
5
|
[](https://github.com/DamonBao/dsh-codex-suite/actions/workflows/ci.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
8
|
[English](README.en.md) | 简体中文
|
|
9
9
|
|
|
10
|
-
DeepSeek Harness(DSH
|
|
10
|
+
DeepSeek Harness(DSH)的对话增强插件:在原生助手组件上增加逐字揭示和思考自动展开,并通过独立插槽展示产物。原生 ChatView、工具卡片、回合控制和文件预览保持宿主的呈现。本包是 [DSH Codex Suite](../../README.zh.md) Monorepo 的对话 UI 包。
|
|
11
11
|
|
|
12
12
|
**本包与 Codex Provider 完全独立**,可以单独安装并服务任意模型。
|
|
13
13
|
|
|
14
14
|
## 功能
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### 原生对话协作
|
|
17
17
|
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- **Markdown 图片:** 助手回复中的本地绝对路径图片通过 DSH 的受保护文件接口显示。
|
|
22
|
-
|
|
23
|
-
### 语义化 Tool 活动
|
|
24
|
-
|
|
25
|
-
- 搜索、文件读取、编辑、命令、数据库、网页、技能、Agent 等工具各有专属图标,活动流一眼可扫;工具组可折叠/展开。
|
|
18
|
+
- 工作步骤展示的简洁、标准、详细和完全展开模式继续使用 DSH 的原生分组、思考摘要和过程折叠。
|
|
19
|
+
- Markdown、受保护的本地图片、图片附件、文件引用、停止标记和最终答复操作由原生助手组件渲染。
|
|
20
|
+
- 工具、重试、工作流、命令和上下文行保留原生布局;插件不修改注册表中的组件,也不通过 Portal 重排行。
|
|
26
21
|
|
|
27
22
|
### 两种流式揭示模式
|
|
28
23
|
|
|
@@ -32,12 +27,12 @@ DeepSeek Harness(DSH)的 Codex 风格对话界面增强插件:把 Web 对
|
|
|
32
27
|
| `typewriter` | 按字素(grapheme)渐进揭示,对中文、emoji 等宽字符安全。 |
|
|
33
28
|
|
|
34
29
|
- 三档平滑预设:`realtime`(更跟手)、`balanced`(默认)、`silky`(更绵密)。预设控制揭示节奏曲线:到达速率的 EMA 平滑、缓冲目标、追速上限和停顿后的收尾排空速度,让长回复不会整段砸出、快流不会卡顿。
|
|
35
|
-
- `typewriter` 模式另有固定揭示速度 `revealCharsPerSec`
|
|
30
|
+
- `typewriter` 模式另有固定揭示速度 `revealCharsPerSec` 可调。回合完成或停止后立即显示完整快照;加载历史和切换会话不会重播逐字效果。
|
|
36
31
|
|
|
37
32
|
### 流式视口协作
|
|
38
33
|
|
|
39
34
|
- 当前 DSH `ChatView` 独占会话级位置恢复、底部跟随和用户上滑释放;插件不再直接写 `scrollTop` 或行变换,避免切换会话时争抢滚动所有权。
|
|
40
|
-
- 尊重 `prefers-reduced-motion
|
|
35
|
+
- 尊重 `prefers-reduced-motion`,启用减少动态效果时直接显示最新快照。
|
|
41
36
|
|
|
42
37
|
### 产物卡片
|
|
43
38
|
|
|
@@ -54,7 +49,7 @@ DeepSeek Harness(DSH)的 Codex 风格对话界面增强插件:把 Web 对
|
|
|
54
49
|
已发布版本:
|
|
55
50
|
|
|
56
51
|
```sh
|
|
57
|
-
dsh plugin --profile web add @jcy2387/dsh-conversation-ui@0.2.0-rc.2
|
|
52
|
+
dsh plugin --profile web add @jcy2387/dsh-conversation-ui@0.2.0-rc.2.1
|
|
58
53
|
dsh web
|
|
59
54
|
```
|
|
60
55
|
|
|
@@ -67,7 +62,7 @@ dsh web
|
|
|
67
62
|
|
|
68
63
|
也可以安装 [`@jcy2387/dsh-suite`](../all/README.md) 组合包,一次启用 Codex Provider 与本插件。
|
|
69
64
|
|
|
70
|
-
|
|
65
|
+
安装后自动增强原生助手行,既有会话数据不变。
|
|
71
66
|
|
|
72
67
|
## 配置
|
|
73
68
|
|
|
@@ -108,7 +103,11 @@ Overlay 示例:
|
|
|
108
103
|
本包由两半组成,通过一条极窄的配置通道协作:
|
|
109
104
|
|
|
110
105
|
- **Host 半**(`src/`):Cordis 插件。负责校验配置 schema,并把校验后的配置注入每个服务出的 index HTML(启动配置全局变量 `window.__DSH_CONVERSATION_UI_CONFIG__`);同时注册用户设置命名空间与一条仅限 loopback 的设置 RPC(读取/写入偏好、查询安装形态、触发 npm 更新)。
|
|
111
|
-
- **Web 半**(`src/client
|
|
106
|
+
- **Web 半**(`src/client/`):通过 `conversation.chat.node` 的 `assistant-step` 键注册薄包装,保留既有组件的 locale 与注入信息,只调整流式文本和原生 `useDisclosure`。不接管 `conversation.view` 或 `turn-process`,不读取宿主 DOM。产物使用 `conversation.chat.turnTail` 的独立列表条目,设置使用 `plugins.bundle.config`。组件装卸跟随插槽声明;若既有助手组件拥有子插槽或 Store,则保留该组件原样。
|
|
107
|
+
|
|
108
|
+
### 升级后的呈现
|
|
109
|
+
|
|
110
|
+
旧版插件的自定义工具图标、工具分组框和过程折叠样式已交由 DSH 原生 UI。请使用 DSH 的「工作步骤展示」选择呈现模式;插件的揭示配置与持久化「自动展开思考」偏好继续生效。没有会话格式或凭据迁移。产物卡片只读取持久化回合数据,不再扫描其他行的 DOM 或隐藏原生文件预览。
|
|
112
111
|
|
|
113
112
|
## 开发
|
|
114
113
|
|
|
@@ -118,7 +117,7 @@ pnpm --filter @jcy2387/dsh-conversation-ui test
|
|
|
118
117
|
pnpm --filter @jcy2387/dsh-conversation-ui build
|
|
119
118
|
```
|
|
120
119
|
|
|
121
|
-
测试基于 vitest + Testing Library
|
|
120
|
+
测试基于 vitest + Testing Library,加载已发布 DSH Chat 工厂,覆盖原生模式、思考折叠、图片、流式揭示、装卸顺序与设置卡片(客户端与 Host 两侧)。工作区级命令见 [Monorepo README](../../README.zh.md)。
|
|
122
121
|
|
|
123
122
|
## 许可证
|
|
124
123
|
|