dsh-talk-map 0.1.60 → 0.1.61
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 +27 -11
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -327,10 +327,11 @@ var zh = {
|
|
|
327
327
|
"map.toggle": "对话地图",
|
|
328
328
|
"map.empty": "地图是空的 —— 右键导入工作区或对话;双击空白直接开新对话",
|
|
329
329
|
"statusRail.title": "队列中的任务",
|
|
330
|
-
"confirm.removeGroup.title": "
|
|
331
|
-
"confirm.removeGroup.body": "
|
|
332
|
-
"confirm.removeGroup.ok": "
|
|
330
|
+
"confirm.removeGroup.title": "删除这个分组?",
|
|
331
|
+
"confirm.removeGroup.body": "分组里的 {n} 个会话会被移入回收站(可在回收站恢复),卡片和分组框同时从地图上移除。仍在运行的会话会先被停止。",
|
|
332
|
+
"confirm.removeGroup.ok": "移入回收站",
|
|
333
333
|
"confirm.cancel": "取消",
|
|
334
|
+
"toast.workspaceTrashed": "已把 {n} 个会话移入回收站,分组已从地图移除",
|
|
334
335
|
"statusRail.open": "展开状态栏",
|
|
335
336
|
"statusRail.close": "收起状态栏",
|
|
336
337
|
"statusRail.empty": "暂时没有带状态的卡片",
|
|
@@ -460,7 +461,7 @@ var zh = {
|
|
|
460
461
|
"digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
|
|
461
462
|
"digest.copy": "复制",
|
|
462
463
|
"digest.close": "关闭",
|
|
463
|
-
"global.searchPlaceholder": "
|
|
464
|
+
"global.searchPlaceholder": "b61 · 搜地图上的卡片(标题/正文)",
|
|
464
465
|
"global.searchRun": "搜索",
|
|
465
466
|
"global.searchTitle": "搜索地图",
|
|
466
467
|
"font.group": "文字大小",
|
|
@@ -488,7 +489,7 @@ var zh = {
|
|
|
488
489
|
"lang.zh": "中文",
|
|
489
490
|
"lang.en": "English",
|
|
490
491
|
"menu.syncGroup": "同步该工作区的新会话",
|
|
491
|
-
"menu.removeGroup": "
|
|
492
|
+
"menu.removeGroup": "删除分组(连同会话)"
|
|
492
493
|
};
|
|
493
494
|
var en = {
|
|
494
495
|
"map.title": "Talk Map ·v2",
|
|
@@ -497,10 +498,11 @@ var en = {
|
|
|
497
498
|
"map.toggle": "Talk Map",
|
|
498
499
|
"map.empty": "The map is empty — right-click to import a workspace or conversation; double-click to start a chat",
|
|
499
500
|
"statusRail.title": "Tasks in the queue",
|
|
500
|
-
"confirm.removeGroup.title": "
|
|
501
|
-
"confirm.removeGroup.body": "
|
|
502
|
-
"confirm.removeGroup.ok": "
|
|
501
|
+
"confirm.removeGroup.title": "Delete this group?",
|
|
502
|
+
"confirm.removeGroup.body": "Its {n} conversations go to the recycle bin (restorable from there) and the cards and frame leave the map. Anything still running is stopped first.",
|
|
503
|
+
"confirm.removeGroup.ok": "Move to recycle bin",
|
|
503
504
|
"confirm.cancel": "Cancel",
|
|
505
|
+
"toast.workspaceTrashed": "Moved {n} conversations to the recycle bin; the group is off the map",
|
|
504
506
|
"statusRail.open": "Open the status rail",
|
|
505
507
|
"statusRail.close": "Close the status rail",
|
|
506
508
|
"statusRail.empty": "No card carries a status right now",
|
|
@@ -623,7 +625,7 @@ var en = {
|
|
|
623
625
|
"menu.noGroup": "Remove from group (free card)",
|
|
624
626
|
"menu.open": "Open conversation",
|
|
625
627
|
"menu.markUnread": "Mark as unread",
|
|
626
|
-
"global.searchPlaceholder": "
|
|
628
|
+
"global.searchPlaceholder": "b61 · Search cards on the map",
|
|
627
629
|
"global.searchRun": "Search",
|
|
628
630
|
"global.searchTitle": "Search the map",
|
|
629
631
|
"font.group": "Text size",
|
|
@@ -651,7 +653,7 @@ var en = {
|
|
|
651
653
|
"lang.zh": "中文",
|
|
652
654
|
"lang.en": "English",
|
|
653
655
|
"menu.syncGroup": "Sync new sessions of this workspace",
|
|
654
|
-
"menu.removeGroup": "
|
|
656
|
+
"menu.removeGroup": "Delete group (with its conversations)"
|
|
655
657
|
};
|
|
656
658
|
var preference = "auto";
|
|
657
659
|
var localeListeners = /* @__PURE__ */ new Set();
|
|
@@ -15400,6 +15402,20 @@ function CanvasInner(props) {
|
|
|
15400
15402
|
});
|
|
15401
15403
|
canvas.addCards(added);
|
|
15402
15404
|
};
|
|
15405
|
+
const deleteWorkspace = async (groupId) => {
|
|
15406
|
+
const sessionIds = (membersByGroup.get(groupId) ?? []).map((cardId) => visibleCards[cardId]?.sessionId).filter((sessionId) => sessionId !== void 0);
|
|
15407
|
+
try {
|
|
15408
|
+
if (sessionIds.length > 0) {
|
|
15409
|
+
await trashSessions(sessionIds, () => {
|
|
15410
|
+
showToast(t("toast.stopping"));
|
|
15411
|
+
});
|
|
15412
|
+
}
|
|
15413
|
+
removeGroup(groupId);
|
|
15414
|
+
showToast(t("toast.workspaceTrashed", { n: String(sessionIds.length) }));
|
|
15415
|
+
} catch (error) {
|
|
15416
|
+
showToast(String(error?.message ?? error));
|
|
15417
|
+
}
|
|
15418
|
+
};
|
|
15403
15419
|
const removeGroup = (groupId) => {
|
|
15404
15420
|
for (const cardId of membersByGroup.get(groupId) ?? []) canvas.removeCard(cardId);
|
|
15405
15421
|
const framesNext = { ...wsFrames };
|
|
@@ -15844,7 +15860,7 @@ function CanvasInner(props) {
|
|
|
15844
15860
|
type: "button",
|
|
15845
15861
|
className: talk_map_default["dangerOk"],
|
|
15846
15862
|
onClick: () => {
|
|
15847
|
-
|
|
15863
|
+
void deleteWorkspace(confirmRemove.groupId);
|
|
15848
15864
|
setConfirmRemove(null);
|
|
15849
15865
|
},
|
|
15850
15866
|
children: t("confirm.removeGroup.ok")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-talk-map",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.61",
|
|
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",
|