dsh-ws-recency 0.11.0 → 0.11.1
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/README.md +3 -1
- package/client.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,8 @@ DSH 原生的置顶只把会话顶到**它所属工作区分组的第一行**,
|
|
|
91
91
|
6. 先 attach 到目标工作区(失败就回滚原目录),再 detach 旧工作区;
|
|
92
92
|
7. 删投影缓存,让它按新路径重建。
|
|
93
93
|
|
|
94
|
+
**只移动会话**:对话框里明确提示——它在旧工作区里创建/修改的文件不会跟着走,仍留在原目录(附件与 rewind 快照按会话 id 存,不受影响)。
|
|
95
|
+
|
|
94
96
|
**风险与退路**:这是插件里唯一改写会话存储的操作。备份会保留,回滚 = 把备份目录移回 `sessions/<project>/<id>`。
|
|
95
97
|
|
|
96
98
|
## 设置
|
|
@@ -128,7 +130,7 @@ dsh plugin --profile <profile> add github:chyxhtc/dsh-ws-recency
|
|
|
128
130
|
或固定版本的预构建包:
|
|
129
131
|
|
|
130
132
|
```powershell
|
|
131
|
-
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.11.
|
|
133
|
+
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.11.1/dsh-ws-recency-0.11.1.tgz
|
|
132
134
|
```
|
|
133
135
|
|
|
134
136
|
装完把 `dsh-ws-recency` 加进 `~/.hypers-work/profiles/<profile>/package.json` 的 `dsh.profile.bundles`,重启应用。
|
package/client.js
CHANGED
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
".wsr-stats-legend{display:flex;flex-wrap:wrap;gap:10px}",
|
|
124
124
|
".wsr-stats-legend-item{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--dsw-alias-label-tertiary)}",
|
|
125
125
|
".wsr-stats-swatch{width:8px;height:8px;border-radius:2px}",
|
|
126
|
+
".wsr-move-warning{color:var(--dsw-alias-state-warn-primary,#d9a72c);font-size:11px;line-height:1.5}",
|
|
126
127
|
".wsr-move-list{display:flex;flex-direction:column;gap:4px}",
|
|
127
128
|
".wsr-move-row{display:flex;align-items:center;gap:8px;text-align:left;border:none;background:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.04));color:inherit;font:inherit;padding:8px 10px;border-radius:8px;cursor:pointer}",
|
|
128
129
|
".wsr-move-row:hover:not([disabled]){background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.08))}",
|
|
@@ -205,8 +206,9 @@
|
|
|
205
206
|
"stats.diagnose.noHost": "\n\n(宿主半未加载:需要重启应用加载新版本)",
|
|
206
207
|
"menu.move": "移动到工作区…",
|
|
207
208
|
"move.title": "移动到工作区",
|
|
209
|
+
"move.warning": "只移动会话本身:它在旧工作区里创建或修改的文件不会跟着走,仍留在原目录。",
|
|
208
210
|
"move.note": "会话属于哪个工作区,由它创建时的目录决定;移动会改写会话记录的 cwd,把日志搬到新工作区目录,旧日志备份在 .trash/ws-recency。",
|
|
209
|
-
"move.confirm": "把会话移动到「{workspace}
|
|
211
|
+
"move.confirm": "把会话移动到「{workspace}」?\n\n只移动会话记录,旧工作区里的文件不会跟着搬。",
|
|
210
212
|
"move.current": "当前",
|
|
211
213
|
"move.working": "移动中…(会先停止会话)",
|
|
212
214
|
"move.done": "已移动到「{workspace}」。若列表没刷新,切换一下工作区或重启应用。",
|
|
@@ -257,8 +259,9 @@
|
|
|
257
259
|
"stats.diagnose.noHost": "\n\n(the host half is not loaded: restart the app to pick up the new version)",
|
|
258
260
|
"menu.move": "Move to workspace\u2026",
|
|
259
261
|
"move.title": "Move to workspace",
|
|
262
|
+
"move.warning": "Only the session moves: files it created or changed in the old workspace stay where they are.",
|
|
260
263
|
"move.note": "A session belongs to the workspace of the directory it was created in. Moving rewrites the stored cwd, relocates the log and keeps the old one as a backup in .trash/ws-recency.",
|
|
261
|
-
"move.confirm": "Move this session to \"{workspace}\"
|
|
264
|
+
"move.confirm": "Move this session to \"{workspace}\"?\n\nOnly the session record moves; its files stay in the old workspace.",
|
|
262
265
|
"move.current": "current",
|
|
263
266
|
"move.working": "Moving\u2026 (the session is stopped first)",
|
|
264
267
|
"move.done": "Moved to \"{workspace}\". If the list has not refreshed, switch workspaces or restart the app.",
|
|
@@ -1406,6 +1409,7 @@
|
|
|
1406
1409
|
var body = statsDiv("wsr-modal-body");
|
|
1407
1410
|
panel.appendChild(body);
|
|
1408
1411
|
body.appendChild(statsDiv("wsr-stats-note", t("move.note")));
|
|
1412
|
+
body.appendChild(statsDiv("wsr-move-warning", t("move.warning")));
|
|
1409
1413
|
|
|
1410
1414
|
var current = workspaceOfSession(sessionId);
|
|
1411
1415
|
var items = (data.workspaces && data.workspaces.items) || [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ws-recency",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
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, per-session token statistics split by tool, and moving a session to another workspace.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chyxhtc",
|