dsh-talk-map 0.1.16 → 0.1.18
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/client/client.js +14 -15
- package/package.json +1 -1
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": "搜地图上的卡片(标题/正文)· v0.1.
|
|
451
|
+
"global.searchPlaceholder": "搜地图上的卡片(标题/正文)· v0.1.18",
|
|
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": "Search cards on the map · v0.1.
|
|
602
|
+
"global.searchPlaceholder": "Search cards on the map · v0.1.18",
|
|
603
603
|
"global.searchRun": "Search",
|
|
604
604
|
"global.searchTitle": "Search the map",
|
|
605
605
|
"font.group": "Text size",
|
|
@@ -12011,13 +12011,14 @@ function routeBetween(ends, from, to, obstacles, options = {}) {
|
|
|
12011
12011
|
const near = obstacles.filter((rect) => rect.x + rect.w >= window2.x1 && rect.x <= window2.x2 && rect.y + rect.h >= window2.y1 && rect.y <= window2.y2);
|
|
12012
12012
|
const withinX = (value) => value >= window2.x1 && value <= window2.x2;
|
|
12013
12013
|
const withinY = (value) => value >= window2.y1 && value <= window2.y2;
|
|
12014
|
-
const
|
|
12015
|
-
const
|
|
12016
|
-
const
|
|
12017
|
-
const
|
|
12014
|
+
const lanes = obstacles;
|
|
12015
|
+
const xs = corridors(lanes, "x", minCorridor).filter(withinX);
|
|
12016
|
+
const ys = corridors(lanes, "y", minCorridor).filter(withinY);
|
|
12017
|
+
const xOuter = outerLines(lanes, "x", margin + 6).filter(withinX);
|
|
12018
|
+
const yOuter = outerLines(lanes, "y", margin + 6).filter(withinY);
|
|
12018
12019
|
const hug = margin + 6;
|
|
12019
|
-
const xHug =
|
|
12020
|
-
const yHug =
|
|
12020
|
+
const xHug = lanes.flatMap((rect) => [rect.x - hug, rect.x + rect.w + hug]);
|
|
12021
|
+
const yHug = lanes.flatMap((rect) => [rect.y - hug, rect.y + rect.h + hug]);
|
|
12021
12022
|
const xCands = dedupe([start2.x, end.x, startStub.x, endStub.x, ...xs, ...xOuter, ...xHug]);
|
|
12022
12023
|
const yCands = dedupe([start2.y, end.y, startStub.y, endStub.y, ...ys, ...yOuter, ...yHug]);
|
|
12023
12024
|
const trim = (values, mustKeep, limit) => {
|
|
@@ -14109,7 +14110,7 @@ function CanvasInner(props) {
|
|
|
14109
14110
|
}
|
|
14110
14111
|
});
|
|
14111
14112
|
}
|
|
14112
|
-
if (DRAW_LINEAGE_LINKS) {
|
|
14113
|
+
if (DRAW_LINEAGE_LINKS && !lineageHidden) {
|
|
14113
14114
|
for (const [cardId, card] of Object.entries(visibleCards)) {
|
|
14114
14115
|
if (foldedSet.has(cardId)) continue;
|
|
14115
14116
|
const parentSessionId = sessions.byId[card.sessionId]?.parentId;
|
|
@@ -14139,14 +14140,12 @@ function CanvasInner(props) {
|
|
|
14139
14140
|
type: TALK_MAP_EDGE_TYPE,
|
|
14140
14141
|
// Selectable on purpose: right-clicking it must answer "what is this",
|
|
14141
14142
|
// and offer to hide it. It used to be un-clickable mystery wiring.
|
|
14142
|
-
//
|
|
14143
|
-
//
|
|
14144
|
-
// stays visible even when the pair is in sync.
|
|
14143
|
+
// 血缘线就按“一条还没同步的普通连线”渲染:同样的虚线、同样的箭头、
|
|
14144
|
+
// 同样的避障规则,没有单独样式,也不参与同步状态。
|
|
14145
14145
|
data: {
|
|
14146
14146
|
fromCardId: parentCardId,
|
|
14147
14147
|
toCardId: cardId,
|
|
14148
|
-
sync:
|
|
14149
|
-
structural: true,
|
|
14148
|
+
sync: "idle",
|
|
14150
14149
|
obstacles: obstaclesFor(parentCardId, cardId),
|
|
14151
14150
|
...boxOf(parentCardId) !== void 0 ? { fromRect: boxOf(parentCardId) } : {},
|
|
14152
14151
|
...boxOf(cardId) !== void 0 ? { toRect: boxOf(cardId) } : {}
|
|
@@ -15220,7 +15219,7 @@ function BatchBar(props) {
|
|
|
15220
15219
|
)
|
|
15221
15220
|
] });
|
|
15222
15221
|
}
|
|
15223
|
-
var DRAW_LINEAGE_LINKS =
|
|
15222
|
+
var DRAW_LINEAGE_LINKS = true;
|
|
15224
15223
|
function MapCanvas(props) {
|
|
15225
15224
|
const canvasState = (0, import_react12.useSyncExternalStore)(canvas.subscribe, canvas.get);
|
|
15226
15225
|
(0, import_react12.useEffect)(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
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",
|