dsh-talk-map 0.1.79 → 0.1.80

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 +119 -87
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -492,7 +492,7 @@ var zh = {
492
492
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
493
493
  "digest.copy": "复制",
494
494
  "digest.close": "关闭",
495
- "global.searchPlaceholder": "b79 · 搜地图上的卡片(标题/正文)",
495
+ "global.searchPlaceholder": "b80 · 搜地图上的卡片(标题/正文)",
496
496
  "global.searchRun": "搜索",
497
497
  "global.searchTitle": "搜索地图",
498
498
  "font.group": "文字大小",
@@ -679,7 +679,7 @@ var en = {
679
679
  "menu.noGroup": "Remove from group (free card)",
680
680
  "menu.open": "Open conversation",
681
681
  "menu.markUnread": "Mark as unread",
682
- "global.searchPlaceholder": "b79 · Search cards on the map",
682
+ "global.searchPlaceholder": "b80 · Search cards on the map",
683
683
  "global.searchRun": "Search",
684
684
  "global.searchTitle": "Search the map",
685
685
  "font.group": "Text size",
@@ -16460,50 +16460,68 @@ function SidebarQueue() {
16460
16460
  });
16461
16461
  }, [rows]);
16462
16462
  if (rows.length === 0) return null;
16463
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: talk_map_default["sidebarQueue"], lang: locale, "data-talkmap-queue-root": "1", children: [
16464
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: talk_map_default["sidebarQueueHead"], children: [
16465
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["sidebarQueueHeadText"], children: t("statusRail.title") }),
16466
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["sidebarQueueCount"], children: rows.length })
16467
- ] }),
16468
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: talk_map_default["sidebarQueueList"], role: "list", children: rows.map((row) => {
16469
- const draft = row.draft;
16470
- const body = draft !== void 0 && draft.trim() !== "" ? draft : previews[row.sessionId];
16471
- const chip = LAMP_CHIP[row.lamp];
16472
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
16473
- "div",
16474
- {
16475
- className: `${talk_map_default["card"]} ${talk_map_default[LAMP_CLASS[row.lamp]] ?? ""} ${talk_map_default["statusRailCard"]} ${talk_map_default["sidebarQueueCard"]}`,
16476
- "data-talkmap-queue": row.sessionId,
16477
- "data-lamp": row.lamp,
16478
- title: row.title,
16479
- role: "button",
16480
- tabIndex: 0,
16481
- onClick: () => {
16482
- closeMapPanel();
16483
- openSessionInUi(row.sessionId);
16484
- },
16485
- onKeyDown: (event) => {
16486
- if (event.key !== "Enter" && event.key !== " ") return;
16487
- event.preventDefault();
16488
- closeMapPanel();
16489
- openSessionInUi(row.sessionId);
16490
- },
16491
- children: [
16492
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: talk_map_default["cardTop"], children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["cardTitle"], children: row.title }) }),
16493
- body !== void 0 && body.trim() !== "" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: talk_map_default["cardSummary"], children: body }) : null,
16494
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: talk_map_default["cardFooter"], children: [
16495
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["cardTime"], children: relativeTime(row.updatedAt) }),
16496
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: `${talk_map_default["cardChip"]} ${talk_map_default[chip.className]}`, children: [
16497
- chip.dot === true ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["runningDot"] }) : null,
16498
- t(chip.key)
16499
- ] })
16500
- ] })
16501
- ]
16502
- },
16503
- row.cardId
16504
- );
16505
- }) })
16506
- ] });
16463
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
16464
+ "div",
16465
+ {
16466
+ className: talk_map_default["sidebarQueue"],
16467
+ lang: locale,
16468
+ "data-talkmap-queue-root": "1",
16469
+ style: { display: "flex", flexDirection: "column", width: "100%", minWidth: 0, minHeight: 0, maxHeight: "46vh", overflow: "hidden", flex: "1 1 auto" },
16470
+ children: [
16471
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: talk_map_default["sidebarQueueHead"], children: [
16472
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["sidebarQueueHeadText"], children: t("statusRail.title") }),
16473
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["sidebarQueueCount"], children: rows.length })
16474
+ ] }),
16475
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
16476
+ "div",
16477
+ {
16478
+ className: talk_map_default["sidebarQueueList"],
16479
+ role: "list",
16480
+ style: { display: "flex", flexDirection: "column", gap: 6, flex: "1 1 auto", minHeight: 0, overflowY: "auto", overflowX: "hidden", padding: "0 4px 6px", overscrollBehavior: "contain" },
16481
+ children: rows.map((row) => {
16482
+ const draft = row.draft;
16483
+ const body = draft !== void 0 && draft.trim() !== "" ? draft : previews[row.sessionId];
16484
+ const chip = LAMP_CHIP[row.lamp];
16485
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
16486
+ "div",
16487
+ {
16488
+ className: `${talk_map_default["card"]} ${talk_map_default[LAMP_CLASS[row.lamp]] ?? ""} ${talk_map_default["statusRailCard"]} ${talk_map_default["sidebarQueueCard"]}`,
16489
+ style: { width: "100%", maxWidth: "100%", boxSizing: "border-box", flex: "none", alignSelf: "stretch" },
16490
+ "data-talkmap-queue": row.sessionId,
16491
+ "data-lamp": row.lamp,
16492
+ title: row.title,
16493
+ role: "button",
16494
+ tabIndex: 0,
16495
+ onClick: () => {
16496
+ closeMapPanel();
16497
+ openSessionInUi(row.sessionId);
16498
+ },
16499
+ onKeyDown: (event) => {
16500
+ if (event.key !== "Enter" && event.key !== " ") return;
16501
+ event.preventDefault();
16502
+ closeMapPanel();
16503
+ openSessionInUi(row.sessionId);
16504
+ },
16505
+ children: [
16506
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: talk_map_default["cardTop"], children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["cardTitle"], children: row.title }) }),
16507
+ body !== void 0 && body.trim() !== "" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: talk_map_default["cardSummary"], children: body }) : null,
16508
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: talk_map_default["cardFooter"], children: [
16509
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["cardTime"], children: relativeTime(row.updatedAt) }),
16510
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: `${talk_map_default["cardChip"]} ${talk_map_default[chip.className]}`, children: [
16511
+ chip.dot === true ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: talk_map_default["runningDot"] }) : null,
16512
+ t(chip.key)
16513
+ ] })
16514
+ ] })
16515
+ ]
16516
+ },
16517
+ row.cardId
16518
+ );
16519
+ })
16520
+ }
16521
+ )
16522
+ ]
16523
+ }
16524
+ );
16507
16525
  }
16508
16526
 
16509
16527
  // src/client/MapToggleButton.tsx
@@ -16532,47 +16550,61 @@ function MapToggleButton(props) {
16532
16550
  const classNames = [wide ? talk_map_default["toggleRow"] : talk_map_default["toggleButton"]];
16533
16551
  if (open) classNames.push(talk_map_default["toggleButtonActive"]);
16534
16552
  const backTitle = t("map.backToCurrent");
16535
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: `${talk_map_default["toggleWrap"]}${wide ? ` ${talk_map_default["toggleWrapWide"]}` : ""}`, children: [
16536
- wide ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SidebarQueue, {}) : null,
16537
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: talk_map_default["toggleControls"], children: [
16538
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
16539
- "button",
16540
- {
16541
- type: "button",
16542
- className: classNames.filter(Boolean).join(" "),
16543
- lang: locale,
16544
- title: t("map.toggle"),
16545
- "aria-label": t("map.toggle"),
16546
- "aria-pressed": open,
16547
- onClick: () => {
16548
- mapUi.toggle();
16549
- },
16550
- children: [
16551
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(MapIcon, {}),
16552
- wide ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: talk_map_default["toggleLabel"], children: t("map.toggle") }) : null
16553
- ]
16554
- }
16555
- ),
16556
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
16557
- "button",
16558
- {
16559
- type: "button",
16560
- className: talk_map_default["backToCurrent"],
16561
- lang: locale,
16562
- title: backTitle,
16563
- "aria-label": backTitle,
16564
- "data-talkmap-back": "1",
16565
- onClick: () => {
16566
- const sessionId = currentSessionId();
16567
- if (sessionId === void 0) return;
16568
- closeMapPanel();
16569
- openSessionInUi(sessionId);
16570
- },
16571
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BackIcon2, {})
16572
- }
16573
- )
16574
- ] })
16575
- ] });
16553
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
16554
+ "div",
16555
+ {
16556
+ className: `${talk_map_default["toggleWrap"]}${wide ? ` ${talk_map_default["toggleWrapWide"]}` : ""}`,
16557
+ style: wide ? { display: "flex", flexDirection: "column", alignItems: "stretch", gap: 6, width: "100%", minWidth: 0, flex: "1 1 100%" } : void 0,
16558
+ children: [
16559
+ wide ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SidebarQueue, {}) : null,
16560
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
16561
+ "div",
16562
+ {
16563
+ className: talk_map_default["toggleControls"],
16564
+ style: { display: "flex", alignItems: "center", gap: 4, flex: "none" },
16565
+ children: [
16566
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
16567
+ "button",
16568
+ {
16569
+ type: "button",
16570
+ className: classNames.filter(Boolean).join(" "),
16571
+ lang: locale,
16572
+ title: t("map.toggle"),
16573
+ "aria-label": t("map.toggle"),
16574
+ "aria-pressed": open,
16575
+ onClick: () => {
16576
+ mapUi.toggle();
16577
+ },
16578
+ children: [
16579
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(MapIcon, {}),
16580
+ wide ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: talk_map_default["toggleLabel"], children: t("map.toggle") }) : null
16581
+ ]
16582
+ }
16583
+ ),
16584
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
16585
+ "button",
16586
+ {
16587
+ type: "button",
16588
+ className: talk_map_default["backToCurrent"],
16589
+ lang: locale,
16590
+ title: backTitle,
16591
+ "aria-label": backTitle,
16592
+ "data-talkmap-back": "1",
16593
+ onClick: () => {
16594
+ const sessionId = currentSessionId();
16595
+ if (sessionId === void 0) return;
16596
+ closeMapPanel();
16597
+ openSessionInUi(sessionId);
16598
+ },
16599
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BackIcon2, {})
16600
+ }
16601
+ )
16602
+ ]
16603
+ }
16604
+ )
16605
+ ]
16606
+ }
16607
+ );
16576
16608
  }
16577
16609
 
16578
16610
  // src/client/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
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",