dsh-talk-map 0.0.0-stage → 0.1.3

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tasihi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,61 @@
1
- # Temporary Holding Version
1
+ # dsh-talk-map · Talk Map
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+ - **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.
8
+ - **Double-click to chat**: double-click empty canvas to start a new session; the card is born exactly where you clicked.
9
+ - **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.
14
+
15
+ ## Install
16
+
17
+ ```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
+ ```
21
+
22
+ npm package (`dsh plugin --profile web add dsh-talk-map`) coming soon.
23
+
24
+ Restart `dsh web`; a map button appears at the sidebar foot.
25
+
26
+ ## Usage
27
+
28
+ | Action | Effect |
29
+ |---|---|
30
+ | Sidebar map button / Esc | toggle the map |
31
+ | Drag a card | place it (16px grid snap, persisted) |
32
+ | Double-click empty space | create a session there and enter it |
33
+ | Double-click a card | open that session |
34
+ | Drag from a card's right handle to empty space | preview injection → fork a new session |
35
+ | ⟳ on a card | regenerate the digest |
36
+ | Language pill in the map header | cycle Auto → 中文 → English |
37
+
38
+ ## Where data lives
39
+
40
+ - Canvas data (positions, edges, digests): `$DSH_HOME/storages/talk_map.json` via dsh's official storage-domain, atomically persisted.
41
+ - Sessions themselves stay fully owned by dsh — this plugin reads them, and creates new ones only through official APIs when forking.
42
+ - Digests use your configured default model through dsh's local LLM channel; there are no other external requests.
43
+
44
+ ## Compatibility
45
+
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.
47
+
48
+ ## Roadmap
49
+
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.
51
+
52
+ ## Development
53
+
54
+ ```sh
55
+ pnpm install
56
+ pnpm run build # host → lib/, client → client/client.js
57
+ 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
+ ```
60
+
61
+ MIT License.
package/README.zh.md ADDED
@@ -0,0 +1,61 @@
1
+ # dsh-talk-map · 对话地图
2
+
3
+ [English](README.md) | 中文
4
+
5
+ DeepSeek Harness(dsh)的可视化对话地图插件:把你的每一个会话变成白板上的一张卡片。
6
+
7
+ - **空间记忆代替脑内记忆**:卡片自由摆放 + 网格吸附,位置永远不会被自动打乱——你记得"那个对话在左下角",它就一直在左下角。为 ADHD 用户设计,对所有人有效。
8
+ - **双击即聊**:双击白板空白处,就地新建一个会话,卡片出生在你点的位置。
9
+ - **连线分叉**:从一张卡拉一根线到空白处,预览(可编辑)将要注入的上下文摘要,确认后开一个"带着旧对话记忆"的新会话。
10
+ - **卡片正面 = 恢复现场**:标题、摘要的"下一步"、相对时间、运行状态。回来扫一眼就知道该干嘛。
11
+ - **自动摘要**:会话空闲后自动生成三字段摘要(概要 / 关键结论 / 下一步),用你部署里的默认模型;卡片上的 ⟳ 可手动重生成。
12
+ - **中英双语界面**:地图自己的文案可以选中文或英文。地图顶栏那颗药丸按钮循环切换 自动 → 中文 → English,「自动」跟随 dsh 本身的语言,选择会记住,重启也在。(摘要仍然跟随被摘要的那段对话的语言。)
13
+ - **血缘可见**:dsh 原生的 fork/子代理血缘自动画成虚线,你拉的注入线是实线。
14
+
15
+ ## 安装
16
+
17
+ ```sh
18
+ # GitHub(构建产物已随仓库提交,免构建、无需 allowBuilds)
19
+ dsh plugin --profile web add github:Tasihi89/dsh-talk-map
20
+ ```
21
+
22
+ npm 包(`dsh plugin --profile web add dsh-talk-map`)待发布。
23
+
24
+ 重启 `dsh web`,侧栏底部出现地图按钮。
25
+
26
+ ## 使用
27
+
28
+ | 动作 | 效果 |
29
+ |---|---|
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 通道;除此之外无任何外部请求。
43
+
44
+ ## 兼容性
45
+
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 · 选段注入 · 卡上速问 · 两周未动变暗。
51
+
52
+ ## 开发
53
+
54
+ ```sh
55
+ 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 换端口即可与主实例共存
59
+ ```
60
+
61
+ MIT License.