dsh-talk-map 0.1.53 → 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.
Files changed (2) hide show
  1. package/client/client.js +9 -4
  2. 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": "b53 · 搜地图上的卡片(标题/正文)",
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": "b53 · Search cards on the map",
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,
@@ -14511,8 +14516,8 @@ function CanvasInner(props) {
14511
14516
  if (parentSessionId === void 0) continue;
14512
14517
  const parentCardId = sessionIdToCardId.get(parentSessionId);
14513
14518
  if (parentCardId === void 0) continue;
14514
- if (explicitPairs.has(`${parentCardId}->${cardId}`)) continue;
14515
- if (lineageCut.includes(parentCardId + "->" + cardId)) continue;
14519
+ if (explicitPairs.has(parentCardId + "->" + cardId)) continue;
14520
+ if (explicitPairs.has(cardId + "->" + parentCardId)) continue;
14516
14521
  const parentSession = sessions.byId[visibleCards[parentCardId]?.sessionId ?? ""];
14517
14522
  const childSession = sessions.byId[card.sessionId];
14518
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.53",
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",