dsh-talk-map 0.1.52 → 0.1.54
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 +9 -12
- 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": "
|
|
451
|
+
"global.searchPlaceholder": "b54 · 搜地图上的卡片(标题/正文)",
|
|
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": "b54 · Search cards on the map",
|
|
603
603
|
"global.searchRun": "Search",
|
|
604
604
|
"global.searchTitle": "Search the map",
|
|
605
605
|
"font.group": "Text size",
|
|
@@ -12270,6 +12270,11 @@ function TalkMapEdge(props) {
|
|
|
12270
12270
|
const measuredBoxes = boardBoxes();
|
|
12271
12271
|
const sameCorner = (box, other) => other !== void 0 && Math.abs(box.x - other.x) < 6 && Math.abs(box.y - other.y) < 6;
|
|
12272
12272
|
const merged = (obstacles !== void 0 && obstacles.length > 0 ? obstacles : measuredBoxes).filter((box) => !sameCorner(box, data.fromRect)).filter((box) => !sameCorner(box, data.toRect)).filter((box) => !sameCorner(box, data.fromRect)).filter((box) => !sameCorner(box, data.toRect));
|
|
12273
|
+
const laneOffset = (() => {
|
|
12274
|
+
let hash = 7;
|
|
12275
|
+
for (const character of String(props.id)) hash = (hash * 31 + character.charCodeAt(0)) % 997;
|
|
12276
|
+
return (hash % 5 - 2) * 1.2;
|
|
12277
|
+
})();
|
|
12273
12278
|
const route = data.fromRect === void 0 || data.toRect === void 0 ? void 0 : routeBetween(
|
|
12274
12279
|
{
|
|
12275
12280
|
// Rounded to whole flow pixels: anchors carry sub-pixel noise after a zoom,
|
|
@@ -12374,14 +12379,6 @@ function TalkMapEdge(props) {
|
|
|
12374
12379
|
const safeRoute = routed ? finalRoute : void 0;
|
|
12375
12380
|
const path = safeRoute !== void 0 ? roundedPath(safeRoute, 10) : smoothPath;
|
|
12376
12381
|
const arrowAngle = (() => {
|
|
12377
|
-
if (routed) {
|
|
12378
|
-
const end = route[route.length - 1];
|
|
12379
|
-
const before = route[route.length - 2];
|
|
12380
|
-
const dx = end.x - before.x;
|
|
12381
|
-
const dy = end.y - before.y;
|
|
12382
|
-
if (Math.abs(dx) >= Math.abs(dy)) return dx >= 0 ? 0 : 180;
|
|
12383
|
-
return dy >= 0 ? 90 : -90;
|
|
12384
|
-
}
|
|
12385
12382
|
const position = String(props.targetPosition ?? "left");
|
|
12386
12383
|
if (position === "right") return 180;
|
|
12387
12384
|
if (position === "top") return 90;
|
|
@@ -14519,8 +14516,8 @@ function CanvasInner(props) {
|
|
|
14519
14516
|
if (parentSessionId === void 0) continue;
|
|
14520
14517
|
const parentCardId = sessionIdToCardId.get(parentSessionId);
|
|
14521
14518
|
if (parentCardId === void 0) continue;
|
|
14522
|
-
if (explicitPairs.has(
|
|
14523
|
-
if (
|
|
14519
|
+
if (explicitPairs.has(parentCardId + "->" + cardId)) continue;
|
|
14520
|
+
if (explicitPairs.has(cardId + "->" + parentCardId)) continue;
|
|
14524
14521
|
const parentSession = sessions.byId[visibleCards[parentCardId]?.sessionId ?? ""];
|
|
14525
14522
|
const childSession = sessions.byId[card.sessionId];
|
|
14526
14523
|
const lineagePush = lastPushOf(parentCardId, cardId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
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",
|