@robiteame/dsh-client-ui-session-tree 0.1.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/README.i18n.yaml +6 -0
- package/README.md +35 -0
- package/README.zh.md +27 -0
- package/lib/client.js +19616 -0
- package/lib/index.js +6 -0
- package/lib/invariant.js +12 -0
- package/lib/types/client/SessionTreeOverlay.d.ts +39 -0
- package/lib/types/client/SessionTreePanel.d.ts +4 -0
- package/lib/types/client/index.d.ts +24 -0
- package/lib/types/client/locales.d.ts +51 -0
- package/lib/types/client/slots.d.ts +23 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/invariant.d.ts +15 -0
- package/package.json +71 -0
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
|
+
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
|
+
# after editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/client/ui-session-tree/README.md
|
|
5
|
+
README.md: 5cd37722f4aff41762c8f1585227c53dda87430a
|
|
6
|
+
README.zh.md: ab54d9012e48943e9b06783e65778712f1e76610
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ui-session-tree
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
Browser half of the session-tree plugin. In a patched source checkout it
|
|
6
|
+
occupies the native `conversation.details.panel` seat in DeepSeek Harness'
|
|
7
|
+
right details sidebar; in an official unmodified Web profile it uses the
|
|
8
|
+
additive `shell.overlay` seat so the shipped Tool-details surface remains
|
|
9
|
+
available. It never renders above the composer and creates no standalone page.
|
|
10
|
+
|
|
11
|
+
- `/tree` opens or refreshes the right sidebar.
|
|
12
|
+
- Clicking a node binds that exact node as the active `/fork` and `/clone`
|
|
13
|
+
context and shows a clear selected-state highlight.
|
|
14
|
+
- A fixed 44px, three-lane graph gutter draws vertical rails and curved branch
|
|
15
|
+
connectors in an IDEA Git-log style. Tree depth never becomes CSS margin or
|
|
16
|
+
padding, so horizontal width is bounded.
|
|
17
|
+
- Branch heads, role, branch name, summary, refresh, close, and one-click fork
|
|
18
|
+
use native `--dsw-alias-*` design tokens in light and dark themes.
|
|
19
|
+
|
|
20
|
+
## Composition
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
- id: ui-session-tree
|
|
24
|
+
name: '@robiteame/dsh-client-ui-session-tree'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The official standalone Bundle already supplies both Host services and this
|
|
28
|
+
browser package. A patched source checkout additionally requires the two Host
|
|
29
|
+
packages and the `conversation.details.panel` integration from
|
|
30
|
+
`dev/harness.patch`.
|
|
31
|
+
|
|
32
|
+
## Model Experience
|
|
33
|
+
|
|
34
|
+
This is presentation-only. It reads and navigates the shared SessionTree; no
|
|
35
|
+
panel content enters model context or changes KV-cache prefixes.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ui-session-tree
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
会话树插件的浏览器端。在应用 `dev/harness.patch` 的源码集成中,组件占用
|
|
6
|
+
DeepSeek Harness 原生右侧详情栏的 `conversation.details.panel` 槽位;在未
|
|
7
|
+
修改的官方 Web profile 中使用叠加式 `shell.overlay` 槽位,因此不会占用工具
|
|
8
|
+
详情;不再渲染于输入框上方,也不会创建独立页面。
|
|
9
|
+
|
|
10
|
+
- 输入 `/tree` 打开或刷新右侧会话树。
|
|
11
|
+
- 鼠标点击节点后,该节点成为 `/fork`、`/clone` 的当前上下文,并显示明确高亮。
|
|
12
|
+
- 固定 44px、三轨道的图形栏使用纵向轨道和曲线连接线表达分支,视觉参考 IDEA Git Log;树深度不会转化为 margin/padding,因此不会横向无限增长。
|
|
13
|
+
- 分支头、角色、分支名、摘要、刷新、关闭和一键 fork 全部复用 Harness 的 `--dsw-alias-*` 原生主题 token,自动适配明暗主题。
|
|
14
|
+
|
|
15
|
+
## 组合
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
- id: ui-session-tree
|
|
19
|
+
name: '@robiteame/dsh-client-ui-session-tree'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
官方独立 Bundle 已经同时提供 Host 端两个扩展包和本浏览器包。打补丁的源码
|
|
23
|
+
集成还需 `dev/harness.patch` 对 `conversation.details.panel` 的 Harness 本体集成。
|
|
24
|
+
|
|
25
|
+
## 模型体验
|
|
26
|
+
|
|
27
|
+
本包只负责展示。它读取、导航共享 SessionTree;面板内容不会进入模型上下文,也不会改变 KV Cache 前缀。
|