dsh-ws-recency 0.34.1 → 0.34.2

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 (3) hide show
  1. package/client.js +7 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/client.js CHANGED
@@ -514,7 +514,7 @@
514
514
  "move.done": "已移动到「{workspace}」。若列表没刷新,切换一下工作区或重启应用。",
515
515
  "move.doneLive": "\n\n这个会话刚才是打开状态:建议重启应用后再继续对话,避免它沿用旧的目录。",
516
516
  "move.repaired": "已补登记到「{workspace}」:上一次移动只搬了日志、没登记工作区,这次把它补上了。",
517
- "move.live": "这个会话正开着,不能移动。先切到别的会话,或重启应用后不要打开它,再来移动。",
517
+ "move.live": "这个会话正开着,无法移动。请重启应用,重启后不要打开它,再从列表里移动。",
518
518
  "adopt.title": "补登记游离会话",
519
519
  "adopt.description": "修复会话归属:把“目录属于某工作区却不在任何分组”的会话挂回去,并把仍挂在旧工作区分组里的重复归属清掉。",
520
520
  "adopt.action": "扫描并刷新",
@@ -820,7 +820,7 @@
820
820
  "archive.blank": "blank draft",
821
821
  "archive.workspace": "workspace",
822
822
  "move.failed": "Move failed: ",
823
- "move.live": "This session is open, so it cannot be moved. Switch to another conversation, or restart the app and do not open it, then move it.",
823
+ "move.live": "This session is open, so it cannot be moved. Restart the app, do not open it, then move it from the list.",
824
824
  "stats.chart": "Where the tokens went",
825
825
  "stats.family.shell": "shell",
826
826
  "stats.family.files": "files",
@@ -3015,6 +3015,11 @@
3015
3015
  panel.appendChild(body);
3016
3016
  body.appendChild(statsDiv("wsr-stats-note", t("move.note")));
3017
3017
  body.appendChild(statsDiv("wsr-move-warning", t("move.warning")));
3018
+ if (currentConversationId() === sessionId) {
3019
+ var liveNote = statsDiv("wsr-move-warning", t("move.live"));
3020
+ liveNote.setAttribute("data-wsr-move-live", "true");
3021
+ body.appendChild(liveNote);
3022
+ }
3018
3023
 
3019
3024
  var current = workspaceOfSession(sessionId);
3020
3025
  var items = (data.workspaces && data.workspaces.items) || [];
package/index.js CHANGED
@@ -32,7 +32,7 @@ import { dirname, join } from "node:path";
32
32
  export const name = "ws-recency";
33
33
 
34
34
  /** Version marker reported by the health route. */
35
- export const HOST_VERSION = "0.34.1";
35
+ export const HOST_VERSION = "0.34.2";
36
36
 
37
37
  /**
38
38
  * Exact routes the client half calls. Registered on the bare web server, so they
@@ -1294,7 +1294,7 @@ export async function moveSessionToWorkspace(ctx, sessionId, workspaceId) {
1294
1294
  return {
1295
1295
  ok: false,
1296
1296
  code: "session-live",
1297
- error: "会话正开着:先切到别的会话或重启应用(且不要打开它),再移动",
1297
+ error: "会话正开着:重启应用,重启后不要打开它,再从列表里移动",
1298
1298
  };
1299
1299
  }
1300
1300
  if (header === undefined || header === null) return { ok: false, error: "session header unavailable" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ws-recency",
3
- "version": "0.34.1",
3
+ "version": "0.34.2",
4
4
  "description": "Sidebar session management for DeepSeek Harness: workspace groups sorted by latest activity, stale history folded, a global pinned section, follow-up marks, session delete into a recoverable trash, archived sessions managed from that same trash panel, per-session token statistics with an argument/result split and an option to count tool arguments as the agent's writing, moving a session to another workspace, and a literal content search that jumps to the turn a word was said in.",
5
5
  "license": "MIT",
6
6
  "author": "chyxhtc",