dsh-talk-map 0.1.54 → 0.1.55
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/LICENSE +22 -21
- package/README.md +71 -69
- package/README.zh.md +67 -65
- package/client/client.js +2 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 tasihi
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
SOFTWARE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tasihi
|
|
4
|
+
Copyright (c) 2026 Da0Mine (modifications in this fork)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
# dsh-talk-map · Talk Map
|
|
2
|
-
|
|
3
|
-
English | [中文](README.zh.md)
|
|
4
|
-
|
|
5
|
-
A visual conversation map plugin for DeepSeek Harness (dsh): every session becomes a card on an infinite whiteboard.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-

|
|
4
|
+
|
|
5
|
+
A visual conversation map plugin for DeepSeek Harness (dsh): every session becomes a card on an infinite whiteboard.
|
|
6
|
+
|
|
7
|
+
> Derived from [Tasihi89/dsh-talk-map](https://github.com/Tasihi89/dsh-talk-map) (MIT). This repository is a heavily reworked fork: slot layout, resizable workspaces, the overflow drawer and the routed links are additions or rewrites here.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
- **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.
|
|
14
|
+
- **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.
|
|
15
|
+
- **Double-click to chat**: double-click empty canvas to start a new session; the card is born exactly where you clicked.
|
|
16
|
+
- **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.
|
|
17
|
+
- **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.
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
- **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.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
# npm (recommended)
|
|
26
|
+
dsh plugin add dsh-talk-map
|
|
27
|
+
|
|
28
|
+
# or straight from GitHub — built artifacts are committed, so there is no build step
|
|
29
|
+
dsh plugin add github:Da0Mine/dsh-talk-map
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Restart `dsh web`; a map button appears at the sidebar foot.
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
| Action | Effect |
|
|
37
|
+
|---|---|
|
|
38
|
+
| Sidebar map button / Esc | toggle the map |
|
|
39
|
+
| Drag a card | place it (16px grid snap, persisted) |
|
|
40
|
+
| Double-click empty space | create a session there and enter it |
|
|
41
|
+
| Double-click a card | open that session |
|
|
42
|
+
| Drag from a card handle to empty space | preview injection → fork a new session |
|
|
43
|
+
| Click a stack cell | open the drawer listing the folded conversations |
|
|
44
|
+
| ⟳ on a card | regenerate the digest |
|
|
45
|
+
| Right-click a card / a line / a folder | pin, rename, mark unread, archive, delete, push switch, delete line |
|
|
46
|
+
| Language pill in the map header | cycle Auto → 中文 → English |
|
|
47
|
+
|
|
48
|
+
## Where data lives
|
|
49
|
+
|
|
50
|
+
- Canvas data (positions, edges, digests): `$DSH_HOME/storages/talk_map.json` via dsh's official storage-domain, atomically persisted.
|
|
51
|
+
- Sessions themselves stay fully owned by dsh — this plugin reads them, and creates new ones only through official APIs when forking.
|
|
52
|
+
- Digests use your configured default model through dsh's local LLM channel; there are no other external requests.
|
|
53
|
+
|
|
54
|
+
## Compatibility
|
|
55
|
+
|
|
56
|
+
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.
|
|
57
|
+
|
|
58
|
+
## Roadmap
|
|
59
|
+
|
|
60
|
+
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.
|
|
61
|
+
|
|
62
|
+
## Development
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
pnpm install
|
|
66
|
+
pnpm run build # host → lib/, client → client/client.js
|
|
67
|
+
pnpm run probe # headless end-to-end probe (150 checks)
|
|
68
|
+
dsh plugin --profile dev add /abs/path/dsh-talk-map
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
MIT License.
|
package/README.zh.md
CHANGED
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
# dsh-talk-map · 对话地图
|
|
2
|
-
|
|
3
|
-
[English](README.md) | 中文
|
|
4
|
-
|
|
5
|
-
DeepSeek Harness(dsh)的可视化对话地图插件:把你的每一个会话变成白板上的一张卡片。
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
 | 中文
|
|
4
|
+
|
|
5
|
+
DeepSeek Harness(dsh)的可视化对话地图插件:把你的每一个会话变成白板上的一张卡片。
|
|
6
|
+
|
|
7
|
+
> 源自 [Tasihi89/dsh-talk-map](https://github.com/Tasihi89/dsh-talk-map)(MIT)。本仓库是在其基础上大幅改造的分支:槽位布局、可缩放工作区、溢出抽屉、避让连线的路由都是在这里新增或重写的。
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
- **空间记忆代替脑内记忆**:卡片自由摆放 + 网格吸附,位置永远不会被自动打乱——你记得「那个对话在左下角」,它就一直在左下角。为 ADHD 用户设计,对所有人有效。
|
|
14
|
+
- **工作区是收纳盒**:一个工作区就是一块框,装不下时把多出来的会话折进一个堆叠格,点开是抽屉;置顶的卡片永远排在最前。
|
|
15
|
+
- **双击即聊**:双击白板空白处,就地新建一个会话,卡片出生在你点的位置。
|
|
16
|
+
- **连线分叉**:从一张卡的接口拉一根线到空白处,预览(可编辑)将要注入的上下文摘要,确认后开一个「带着旧对话记忆」的新会话。
|
|
17
|
+
- **卡片正面 = 恢复现场**:标题、你最后说的那句话、相对时间,以及状态灯(运行中 / 已完成 / 待查看 / 等你回复 / 已中断)。回来扫一眼就知道该干嘛。
|
|
18
|
+
- **连线的含义**:上下文已经同步过去的线自动隐去;落后了的线是带箭头的虚线;分叉血缘始终画出来。线会自动选面,两张卡贴太近时绕到上下边走,不会挤成一截看不见的短墩。
|
|
19
|
+
- **按需摘要**:三字段摘要(概要 / 关键结论 / 下一步)用你部署里的默认模型生成,卡片上的 ⟳ 可手动重生成。
|
|
20
|
+
- **中英双语界面**:地图顶栏那颗药丸按钮循环切换 自动 → 中文 → English,「自动」跟随 dsh 本身的语言,选择会记住。
|
|
21
|
+
|
|
22
|
+
## 安装
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
# npm(推荐)
|
|
26
|
+
dsh plugin add dsh-talk-map
|
|
27
|
+
|
|
28
|
+
# 或直接从 GitHub 装——构建产物已随仓库提交,免构建
|
|
29
|
+
dsh plugin add github:Da0Mine/dsh-talk-map
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
重启 `dsh web`,侧栏底部出现地图按钮。
|
|
33
|
+
|
|
34
|
+
## 用法
|
|
35
|
+
|
|
36
|
+
| 操作 | 效果 |
|
|
37
|
+
|---|---|
|
|
38
|
+
| 侧栏地图按钮 / Esc | 打开或收起地图 |
|
|
39
|
+
| 拖卡片 | 摆放(16px 网格吸附,会保存) |
|
|
40
|
+
| 双击空白处 | 在那里新建会话并进入 |
|
|
41
|
+
| 双击卡片 | 打开那个会话 |
|
|
42
|
+
| 从卡片接口拖到空白处 | 预览注入内容 → 分叉出新会话 |
|
|
43
|
+
| 点堆叠格 | 打开抽屉,列出被折叠的会话 |
|
|
44
|
+
| 卡片上的 ⟳ | 重新生成摘要 |
|
|
45
|
+
| 右键卡片 / 连线 / 工作区 | 置顶、重命名、标为未读、查看摘要、归档、删除、推送开关、删除连线 |
|
|
46
|
+
| 顶栏语言药丸 | 循环 自动 → 中文 → English |
|
|
47
|
+
|
|
48
|
+
## 数据放在哪
|
|
49
|
+
|
|
50
|
+
- 画布数据(位置、连线、摘要):`$DSH_HOME/storages/talk_map.json`,走 dsh 官方 storage-domain,原子写入。
|
|
51
|
+
- 会话本身完全归 dsh 所有——本插件只读它们,只有分叉时才通过官方 API 新建。
|
|
52
|
+
- 摘要走 dsh 本地 LLM 通道使用你配置的默认模型,没有其他外部请求。
|
|
53
|
+
|
|
54
|
+
## 兼容性
|
|
55
|
+
|
|
56
|
+
在 DeepSeek Harness `0.2.1-rc.3` 上构建与验证。结构契约在 `src/client/dsh.ts` 与 `src/host/dsh-host.ts`,升级时从这两处入手。
|
|
57
|
+
|
|
58
|
+
## 开发
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
pnpm install
|
|
62
|
+
pnpm run build # 宿主 → lib/,客户端 → client/client.js
|
|
63
|
+
pnpm run probe # 无头端到端探针(150 项)
|
|
64
|
+
dsh plugin --profile dev add /abs/path/dsh-talk-map
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
MIT License.
|
package/client/client.js
CHANGED
|
@@ -448,7 +448,7 @@ var zh = {
|
|
|
448
448
|
"digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
|
|
449
449
|
"digest.copy": "复制",
|
|
450
450
|
"digest.close": "关闭",
|
|
451
|
-
"global.searchPlaceholder": "
|
|
451
|
+
"global.searchPlaceholder": "b55 · 搜地图上的卡片(标题/正文)",
|
|
452
452
|
"global.searchRun": "搜索",
|
|
453
453
|
"global.searchTitle": "搜索地图",
|
|
454
454
|
"font.group": "文字大小",
|
|
@@ -599,7 +599,7 @@ var en = {
|
|
|
599
599
|
"menu.noGroup": "Remove from group (free card)",
|
|
600
600
|
"menu.open": "Open conversation",
|
|
601
601
|
"menu.markUnread": "Mark as unread",
|
|
602
|
-
"global.searchPlaceholder": "
|
|
602
|
+
"global.searchPlaceholder": "b55 · Search cards on the map",
|
|
603
603
|
"global.searchRun": "Search",
|
|
604
604
|
"global.searchTitle": "Search the map",
|
|
605
605
|
"font.group": "Text size",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
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",
|