@luziyang2026/dsh-question-nav 0.4.2 → 0.6.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.md +29 -9
- package/README.zh.md +22 -7
- package/lib/client.js +408 -50
- package/lib/client.js.map +1 -1
- package/lib/index.js +832 -4
- package/lib/types/client/QuestionNavSettingsTab.d.ts +14 -0
- package/lib/types/client/QuestionNavStrip.d.ts +7 -0
- package/lib/types/client/locales.d.ts +10 -0
- package/lib/types/client/settings.d.ts +52 -0
- package/lib/types/core/align.d.ts +18 -0
- package/lib/types/core/focus.d.ts +44 -0
- package/lib/types/core/time.d.ts +19 -0
- package/lib/types/index.d.ts +5 -4
- package/lib/types/settings.d.ts +24 -0
- package/package.json +7 -3
- package/src/client/QuestionNavSettingsTab.tsx +53 -0
- package/src/client/QuestionNavStrip.tsx +225 -46
- package/src/client/index.ts +28 -2
- package/src/client/locales.ts +10 -0
- package/src/client/question-nav.module.css +147 -16
- package/src/client/settings.ts +105 -0
- package/src/core/align.ts +23 -0
- package/src/core/focus.ts +76 -0
- package/src/core/time.ts +39 -0
- package/src/index.ts +9 -4
- package/src/settings.ts +33 -0
package/README.md
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
# dsh-question-nav
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://github.com/AbelKeithsun/dsh-question-nav/blob/main/README.md">English</a> |
|
|
5
|
+
<a href="https://github.com/AbelKeithsun/dsh-question-nav/blob/main/README.zh.md">简体中文</a>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
3
8
|
In-session question navigator for the [DeepSeek Harness (DSH) Web GUI][dsh]: a
|
|
4
9
|
vertical column of small round dots overlaid on the **left edge** of the
|
|
5
|
-
conversation column — one dot per user question. Hover a dot to
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
conversation column — one dot per user question. Hover a dot to magnify it
|
|
11
|
+
(together with its two neighbors on each side) and reveal a vertical cascade
|
|
12
|
+
of crisp question cards with each question's **full text** and **sent time**
|
|
13
|
+
(clicking any card jumps to it); click a dot to scroll the chat to that
|
|
14
|
+
question.
|
|
8
15
|
|
|
9
16
|
It is an external plugin bundle with zero runtime dependencies — the browser
|
|
10
17
|
half (`lib/client.js`) externalizes everything to the DSH shell, so it adds
|
|
@@ -14,12 +21,17 @@ Package: **`@luziyang2026/dsh-question-nav`** ([npm][npm] · [GitHub][github]).
|
|
|
14
21
|
|
|
15
22
|
## Preview
|
|
16
23
|
|
|
17
|
-

|
|
18
25
|
|
|
19
26
|
## What it does
|
|
20
27
|
|
|
21
|
-
- **Left-edge dot minimap** (embedded, not reserving any width).
|
|
22
|
-
|
|
28
|
+
- **Left-edge dot minimap** (embedded, not reserving any width). The rail's
|
|
29
|
+
anchor edge is configurable — **Settings → Plugins → Question Nav → Rail
|
|
30
|
+
alignment** switches it between the left and right edge of the conversation
|
|
31
|
+
column.
|
|
32
|
+
- **Height-capped and scrollable**: the dot column is vertically centered and
|
|
33
|
+
uses at most **60%** of the conversation height; longer sessions scroll
|
|
34
|
+
inside that band (wheel over the dots or the gaps between them).
|
|
23
35
|
- **One dot = one turn that asked a question** (strictly aligned with the
|
|
24
36
|
Trajectory view's turn numbering), with a small count above the dot column.
|
|
25
37
|
- **Full history, persisted, no render-window expansion**: the plugin's host
|
|
@@ -27,9 +39,17 @@ Package: **`@luziyang2026/dsh-question-nav`** ([npm][npm] · [GitHub][github]).
|
|
|
27
39
|
registry folds the whole event log (read-only, the chat's paged window is
|
|
28
40
|
never touched), the official projection cache persists it across restarts,
|
|
29
41
|
and push frames deliver new questions live.
|
|
30
|
-
- **Hover**: the dot
|
|
31
|
-
|
|
32
|
-
**
|
|
42
|
+
- **Hover (focus)**: the dot and its **two neighbors on each side** magnify
|
|
43
|
+
progressively (selected largest), the rail auto-centers the selection, and a
|
|
44
|
+
**vertical cascade of five crisp question cards** (portal-rendered, no
|
|
45
|
+
native-title delay) appears beside the rail — one card per window dot,
|
|
46
|
+
stacked top-to-bottom without overlap and centered on the selected dot. Each
|
|
47
|
+
card shows the turn's **full question text** (all of them, when one turn
|
|
48
|
+
batched several) and the question's **sent time** (`HH:MM` on the same day,
|
|
49
|
+
`MM-DD HH:MM` across days, `YYYY-MM-DD HH:MM` across years). The **center
|
|
50
|
+
card is the brightest** and marked with a brand edge; cards further from it
|
|
51
|
+
are slightly narrower, dimmer and show fewer lines. **Clicking any card
|
|
52
|
+
jumps to that question** exactly like clicking its dot.
|
|
33
53
|
- **Click**: jumps to that question. Only then does the jump loop page the
|
|
34
54
|
window (`loadOlder()`) to bring that specific page into view — never the
|
|
35
55
|
whole history up front.
|
package/README.zh.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# dsh-question-nav
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://github.com/AbelKeithsun/dsh-question-nav/blob/main/README.md">English</a> |
|
|
5
|
+
<a href="https://github.com/AbelKeithsun/dsh-question-nav/blob/main/README.zh.md">简体中文</a>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
3
8
|
[DeepSeek Harness (DSH) Web GUI][dsh] 的**会话内提问导航**插件:在对话栏**左侧**
|
|
4
|
-
内嵌一列竖排的圆点小按钮 ——
|
|
5
|
-
|
|
9
|
+
内嵌一列竖排的圆点小按钮 —— 每个圆点对应一个用户提问。鼠标悬停圆点会把该圆点
|
|
10
|
+
连同其**上下各两个**圆点一起放大,并弹出**竖排的清晰问题卡片**显示对应提问的
|
|
11
|
+
**全文**与**发出时间**(点击任意卡片即可跳转);点击圆点则把对话滚动跳到那一
|
|
12
|
+
提问的位置。
|
|
6
13
|
|
|
7
14
|
它是外部插件 bundle,**零运行时依赖** —— 浏览器半区(`lib/client.js`)把一切
|
|
8
15
|
外部化给 DSH 外壳,加载时只往 GUI 里加一个很小的 bundle。
|
|
@@ -11,20 +18,28 @@
|
|
|
11
18
|
|
|
12
19
|
## 效果展示
|
|
13
20
|
|
|
14
|
-

|
|
15
22
|
|
|
16
23
|
## 功能
|
|
17
24
|
|
|
18
|
-
-
|
|
19
|
-
|
|
25
|
+
- **左缘圆点迷你地图**:内嵌,**不占任何宽度**。导航条锚定边**可配置**——
|
|
26
|
+
**设置 → 插件 → 提问导航 → 导航条对齐**可在对话栏左/右缘之间切换。
|
|
27
|
+
- **限高 + 可滚动**:圆点列垂直居中,最多占用对话栏高度的 **60%**;会话提问
|
|
28
|
+
更多时在带内上下滚动(滚轮在圆点上或圆点间隙上都能滚)。
|
|
20
29
|
- **一个圆点 = 一个含提问的 turn**(与轨迹视图的 Turn 编号严格对齐),
|
|
21
30
|
圆点列上方有圆点数量。
|
|
22
31
|
- **完整历史、持久化、不展开渲染窗口**:插件的 host 半面注册
|
|
23
32
|
`questionIndex` 会话投影——投影注册表折叠完整事件日志(只读,对话的
|
|
24
33
|
分页窗口完全不被动),官方 projection-cache 跨重启持久化,新提问通过
|
|
25
34
|
推送帧实时到达。
|
|
26
|
-
-
|
|
27
|
-
|
|
35
|
+
- **悬停(聚焦)**:圆点与其**上下各两个**圆点一起渐进放大(选中最大),
|
|
36
|
+
导航条自动把选中点居中;导航条旁出现一列**竖排的 5 张清晰问题卡片**
|
|
37
|
+
(portal 渲染,无原生 `title` 延迟)——窗口内每个圆点一张卡片,上下排布、
|
|
38
|
+
**互不遮挡**,以选中点为中心垂直居中。每张卡片显示该轮提问**全文**(一轮
|
|
39
|
+
多条提问时全部列出)与提问的**发出时间**(当天 `HH:MM`,跨天
|
|
40
|
+
`MM-DD HH:MM`,跨年 `YYYY-MM-DD HH:MM`)。**中心卡片最亮**并带品牌色描边,
|
|
41
|
+
离中心越远的卡片稍窄、稍暗、行数更少;**点击任意卡片即跳转到对应提问**,
|
|
42
|
+
与点击圆点效果一致。
|
|
28
43
|
- **点击**:跳转到该提问;只有这时跳转循环才 `loadOlder()` 扩窗,把**那一页**
|
|
29
44
|
带进视图——绝不会一次性展开整个历史。
|
|
30
45
|
- 圆点列空白区域**点穿**到对话内容,不会挡住聊天。
|