dsh-talk-map 0.1.3 → 0.1.4

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.
Files changed (3) hide show
  1. package/README.md +20 -12
  2. package/README.zh.md +37 -33
  3. package/package.json +7 -7
package/README.md CHANGED
@@ -4,22 +4,28 @@ English | [中文](README.zh.md)
4
4
 
5
5
  A visual conversation map plugin for DeepSeek Harness (dsh): every session becomes a card on an infinite whiteboard.
6
6
 
7
+ ![Workspaces, pinned cards and live status](https://raw.githubusercontent.com/Da0Mine/dsh-talk-map/main/docs/screenshots/workspaces-and-pins.png)
8
+
9
+ ![Cards connected by links, with running / waiting / unread lamps](https://raw.githubusercontent.com/Da0Mine/dsh-talk-map/main/docs/screenshots/cards-and-links.png)
10
+
7
11
  - **Spatial memory instead of working memory**: free placement + grid snapping, and nothing ever rearranges your cards — if you remember "that conversation was bottom-left", it stays bottom-left. Designed for ADHD users, useful for everyone.
12
+ - **Folders stay readable**: a workspace becomes a frame that auto-expands or folds its overflow into a stack cell you can open as a drawer; pinned cards stay in front.
8
13
  - **Double-click to chat**: double-click empty canvas to start a new session; the card is born exactly where you clicked.
9
14
  - **Draw an edge to fork**: drag a line from a card onto empty space, preview (and edit) the context digest to inject, confirm — a new session starts *knowing* the old conversation.
10
- - **Card front = resume surface**: title, the digest's "next step", relative time, running state. One glance tells you what to do next.
11
- - **Automatic digests**: after a session goes idle, a three-field digest (summary / key findings / next step) is generated with your deployment's default model; hit ⟳ on a card to regenerate manually.
12
- - **Bilingual interface**: the map's own copy renders in Chinese or English. The pill in the map header cycles Auto → 中文 → English; Auto follows dsh's own language, and the choice is remembered across restarts. (Digests stay in the language of the conversation they summarise.)
13
- - **Provenance visible**: dsh's native fork/subagent lineage renders as dashed edges; your injection edges are solid.
15
+ - **Card front = resume surface**: title, the last thing you said, relative time and a status lamp (running / finished / unread / waiting / interrupted). One glance tells you what to do next.
16
+ - **Lines mean something**: a link whose context is still up to date disappears; one that has fallen behind stays visible as a dashed line with an arrow. Fork lineage is always drawn.
17
+ - **Automatic digests**: a three-field digest (summary / key findings / next step) is generated on demand through your deployment's default model; hit ⟳ on a card to regenerate.
18
+ - **Bilingual interface**: the map's own copy renders in Chinese or English. The pill in the map header cycles Auto → 中文 → English; Auto follows dsh's own language, and the choice is remembered across restarts.
14
19
 
15
20
  ## Install
16
21
 
17
22
  ```sh
18
- # GitHub (built artifacts are committed — no build step, no allowBuilds needed)
19
- dsh plugin --profile web add github:Tasihi89/dsh-talk-map
20
- ```
23
+ # npm (recommended)
24
+ dsh plugin add dsh-talk-map
21
25
 
22
- npm package (`dsh plugin --profile web add dsh-talk-map`) coming soon.
26
+ # or straight from GitHub — built artifacts are committed, so there is no build step
27
+ dsh plugin add github:Da0Mine/dsh-talk-map
28
+ ```
23
29
 
24
30
  Restart `dsh web`; a map button appears at the sidebar foot.
25
31
 
@@ -31,8 +37,10 @@ Restart `dsh web`; a map button appears at the sidebar foot.
31
37
  | Drag a card | place it (16px grid snap, persisted) |
32
38
  | Double-click empty space | create a session there and enter it |
33
39
  | Double-click a card | open that session |
34
- | Drag from a card's right handle to empty space | preview injection → fork a new session |
40
+ | Drag from a card handle to empty space | preview injection → fork a new session |
41
+ | Click a stack cell | open the drawer listing the folded conversations |
35
42
  | ⟳ on a card | regenerate the digest |
43
+ | Right-click a card / a line / a folder | pin, rename, mark unread, archive, delete, push switch, delete line |
36
44
  | Language pill in the map header | cycle Auto → 中文 → English |
37
45
 
38
46
  ## Where data lives
@@ -43,19 +51,19 @@ Restart `dsh web`; a map button appears at the sidebar foot.
43
51
 
44
52
  ## Compatibility
45
53
 
46
- Built against deepseek-harness `0.1.0-rc.6` (rc-stage APIs may drift). The structural contracts live in `src/client/dsh.ts` and `src/host/dsh-host.ts` — start there when upgrading.
54
+ Built and tested against DeepSeek Harness `0.2.1-rc.3`. The structural contracts live in `src/client/dsh.ts` and `src/host/dsh-host.ts` — start there when upgrading.
47
55
 
48
56
  ## Roadmap
49
57
 
50
- Multi-board shelf (project = board, WIP limit) · whole-board archive/shelve · timeline view (camera fly-back) · alias cards · multi-parent merge UI · selection-level injection · quick-ask on card · two-week fade.
58
+ Multi-board shelf (project = board, WIP limit) · whole-board archive/shelve · timeline view (camera fly-back) · alias cards · multi-parent merge UI · selection-level injection · quick-ask on card.
51
59
 
52
60
  ## Development
53
61
 
54
62
  ```sh
55
63
  pnpm install
56
64
  pnpm run build # host → lib/, client → client/client.js
65
+ pnpm run probe # headless end-to-end probe (150 checks)
57
66
  dsh plugin --profile dev add /abs/path/dsh-talk-map
58
- dsh --profile dev # add a profile patch to change the port and coexist with your main instance
59
67
  ```
60
68
 
61
69
  MIT License.
package/README.zh.md CHANGED
@@ -4,58 +4,62 @@
4
4
 
5
5
  DeepSeek Harness(dsh)的可视化对话地图插件:把你的每一个会话变成白板上的一张卡片。
6
6
 
7
- - **空间记忆代替脑内记忆**:卡片自由摆放 + 网格吸附,位置永远不会被自动打乱——你记得"那个对话在左下角",它就一直在左下角。为 ADHD 用户设计,对所有人有效。
7
+ ![工作区分组、置顶卡片与状态灯](https://raw.githubusercontent.com/Da0Mine/dsh-talk-map/main/docs/screenshots/workspaces-and-pins.png)
8
+
9
+ ![卡片之间的连线,以及运行中 / 等你回复 / 待查看的指示灯](https://raw.githubusercontent.com/Da0Mine/dsh-talk-map/main/docs/screenshots/cards-and-links.png)
10
+
11
+ - **空间记忆代替脑内记忆**:卡片自由摆放 + 网格吸附,位置永远不会被自动打乱——你记得「那个对话在左下角」,它就一直在左下角。为 ADHD 用户设计,对所有人有效。
12
+ - **工作区是收纳盒**:一个工作区就是一块框,装不下时把多出来的会话折进一个堆叠格,点开是抽屉;置顶的卡片永远排在最前。
8
13
  - **双击即聊**:双击白板空白处,就地新建一个会话,卡片出生在你点的位置。
9
- - **连线分叉**:从一张卡拉一根线到空白处,预览(可编辑)将要注入的上下文摘要,确认后开一个"带着旧对话记忆"的新会话。
10
- - **卡片正面 = 恢复现场**:标题、摘要的"下一步"、相对时间、运行状态。回来扫一眼就知道该干嘛。
11
- - **自动摘要**:会话空闲后自动生成三字段摘要(概要 / 关键结论 / 下一步),用你部署里的默认模型;卡片上的 ⟳ 可手动重生成。
12
- - **中英双语界面**:地图自己的文案可以选中文或英文。地图顶栏那颗药丸按钮循环切换 自动 → 中文 → English,「自动」跟随 dsh 本身的语言,选择会记住,重启也在。(摘要仍然跟随被摘要的那段对话的语言。)
13
- - **血缘可见**:dsh 原生的 fork/子代理血缘自动画成虚线,你拉的注入线是实线。
14
+ - **连线分叉**:从一张卡的接口拉一根线到空白处,预览(可编辑)将要注入的上下文摘要,确认后开一个「带着旧对话记忆」的新会话。
15
+ - **卡片正面 = 恢复现场**:标题、你最后说的那句话、相对时间,以及状态灯(运行中 / 已完成 / 待查看 / 等你回复 / 已中断)。回来扫一眼就知道该干嘛。
16
+ - **连线的含义**:上下文已经同步过去的线自动隐去;落后了的线是带箭头的虚线;分叉血缘始终画出来。线会自动选面,两张卡贴太近时绕到上下边走,不会挤成一截看不见的短墩。
17
+ - **按需摘要**:三字段摘要(概要 / 关键结论 / 下一步)用你部署里的默认模型生成,卡片上的 ⟳ 可手动重生成。
18
+ - **中英双语界面**:地图顶栏那颗药丸按钮循环切换 自动 → 中文 → English,「自动」跟随 dsh 本身的语言,选择会记住。
14
19
 
15
20
  ## 安装
16
21
 
17
22
  ```sh
18
- # GitHub(构建产物已随仓库提交,免构建、无需 allowBuilds)
19
- dsh plugin --profile web add github:Tasihi89/dsh-talk-map
20
- ```
23
+ # npm(推荐)
24
+ dsh plugin add dsh-talk-map
21
25
 
22
- npm 包(`dsh plugin --profile web add dsh-talk-map`)待发布。
26
+ # 或直接从 GitHub 装——构建产物已随仓库提交,免构建
27
+ dsh plugin add github:Da0Mine/dsh-talk-map
28
+ ```
23
29
 
24
30
  重启 `dsh web`,侧栏底部出现地图按钮。
25
31
 
26
- ## 使用
32
+ ## 用法
27
33
 
28
- | 动作 | 效果 |
34
+ | 操作 | 效果 |
29
35
  |---|---|
30
- | 点侧栏地图按钮 / Esc | 开关地图 |
31
- | 拖动卡片 | 摆放(16px 网格吸附,位置持久化) |
32
- | 双击空白 | 在该位置新建会话并进入 |
33
- | 双击卡片 | 打开该会话 |
34
- | 从卡片右侧拉线到空白 | 预览注入上下文 → 开分叉会话 |
35
- | 卡片上的 ⟳ | 手动重新生成摘要 |
36
- | 地图顶栏的语言按钮 | 循环切换 自动 → 中文 → English |
37
-
38
- ## 数据存哪
39
-
40
- - 画布数据(卡片位置、连线、摘要):`$DSH_HOME/storages/talk_map.json`,走 dsh 官方 storage-domain,原子落盘。
41
- - 会话本身:完全归 dsh 管,本插件只读会话、只在分叉时通过官方 API 创建新会话。
42
- - 摘要生成用你配置的默认模型,走本地 dsh 的 LLM 通道;除此之外无任何外部请求。
36
+ | 侧栏地图按钮 / Esc | 打开或收起地图 |
37
+ | 拖卡片 | 摆放(16px 网格吸附,会保存) |
38
+ | 双击空白处 | 在那里新建会话并进入 |
39
+ | 双击卡片 | 打开那个会话 |
40
+ | 从卡片接口拖到空白处 | 预览注入内容 → 分叉出新会话 |
41
+ | 点堆叠格 | 打开抽屉,列出被折叠的会话 |
42
+ | 卡片上的 ⟳ | 重新生成摘要 |
43
+ | 右键卡片 / 连线 / 工作区 | 置顶、重命名、标为未读、查看摘要、归档、删除、推送开关、删除连线 |
44
+ | 顶栏语言药丸 | 循环 自动 → 中文 → English |
45
+
46
+ ## 数据放在哪
47
+
48
+ - 画布数据(位置、连线、摘要):`$DSH_HOME/storages/talk_map.json`,走 dsh 官方 storage-domain,原子写入。
49
+ - 会话本身完全归 dsh 所有——本插件只读它们,只有分叉时才通过官方 API 新建。
50
+ - 摘要走 dsh 本地 LLM 通道使用你配置的默认模型,没有其他外部请求。
43
51
 
44
52
  ## 兼容性
45
53
 
46
- 针对 deepseek-harness `0.1.0-rc.6` 开发(rc 阶段 API 可能漂移)。结构化契约集中在 `src/client/dsh.ts` 与 `src/host/dsh-host.ts`,升级排查从这两个文件开始。
47
-
48
- ## Roadmap(第三刀)
49
-
50
- 多板架子(项目=白板,WIP 上限)· 整板归档/搁置 · 时间视图(镜头飞回)· 替身卡 · 多父合并注入 UI · 选段注入 · 卡上速问 · 两周未动变暗。
54
+ 在 DeepSeek Harness `0.2.1-rc.3` 上构建与验证。结构契约在 `src/client/dsh.ts` 与 `src/host/dsh-host.ts`,升级时从这两处入手。
51
55
 
52
56
  ## 开发
53
57
 
54
58
  ```sh
55
59
  pnpm install
56
- pnpm run build # host → lib/,client → client/client.js
57
- dsh plugin --profile dev add /绝对路径/dsh-talk-map
58
- dsh --profile dev # 配一份 profile patch 换端口即可与主实例共存
60
+ pnpm run build # 宿主 → lib/,客户端 → client/client.js
61
+ pnpm run probe # 无头端到端探针(150 项)
62
+ dsh plugin --profile dev add /abs/path/dsh-talk-map
59
63
  ```
60
64
 
61
65
  MIT License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Visual conversation map for DeepSeek Harness: an infinite whiteboard where every session is a card — drag to arrange, double-click to start a chat in place, draw an edge to fork a new session with injected context. Built for ADHD-friendly spatial memory. · DSH 可视化对话地图:会话即卡片,双击即聊,连线分叉带上下文的新对话。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -10,14 +10,13 @@
10
10
  "url": "git+https://github.com/Da0Mine/dsh-talk-map.git"
11
11
  },
12
12
  "keywords": [
13
- "deepseek",
14
- "harness",
15
13
  "dsh",
16
14
  "dsh-plugin",
17
- "canvas",
18
- "whiteboard",
15
+ "deepseek-harness",
16
+ "talk-map",
19
17
  "conversation-map",
20
- "adhd"
18
+ "whiteboard",
19
+ "session-manager"
21
20
  ],
22
21
  "scripts": {
23
22
  "build": "tsdown && node scripts/normalize-client-banner.mjs",
@@ -74,7 +73,8 @@
74
73
  "typescript": "^7.0.2"
75
74
  },
76
75
  "engines": {
77
- "node": ">=22.19.0"
76
+ "node": ">=22.19.0",
77
+ "dsh": ">=0.2.1-rc.1 <0.3.0-0"
78
78
  },
79
79
  "publishConfig": {
80
80
  "registry": "https://registry.npmjs.org/",