dsh-ws-recency 0.19.0 → 0.19.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 +1 -1
- package/client.js +29 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -167,7 +167,7 @@ dsh plugin --profile <profile> add github:chyxhtc/dsh-ws-recency
|
|
|
167
167
|
或固定版本的预构建包:
|
|
168
168
|
|
|
169
169
|
```powershell
|
|
170
|
-
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.19.
|
|
170
|
+
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.19.1/dsh-ws-recency-0.19.1.tgz
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
装完把 `dsh-ws-recency` 加进 `~/.hypers-work/profiles/<profile>/package.json` 的 `dsh.profile.bundles`,重启应用。
|
package/client.js
CHANGED
|
@@ -140,6 +140,8 @@
|
|
|
140
140
|
".wsr-footer-action{display:flex;box-sizing:border-box;flex:none;align-items:center;justify-content:flex-start;gap:8px;width:calc(100% + 4px);min-width:0;height:42px;margin:4px -2px;padding:0 10px 0 8px;border:0;border-radius:12px;background:transparent;color:var(--dsw-alias-label-primary);font-family:inherit;font-size:14px;line-height:22px;text-align:left;cursor:pointer}",
|
|
141
141
|
".wsr-footer-action:hover{background:var(--dsw-alias-interactive-bg-hover)}",
|
|
142
142
|
".wsr-page{display:flex;flex-direction:column;gap:10px;padding:16px 18px;min-width:0;box-sizing:border-box;height:100%;overflow:auto}",
|
|
143
|
+
".wsr-header-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--dsw-alias-label-secondary);cursor:pointer}",
|
|
144
|
+
".wsr-header-btn:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.08));color:var(--dsw-alias-label-primary)}",
|
|
143
145
|
".wsr-handoff-status{font-size:12px;color:var(--dsw-alias-label-tertiary);line-height:1.6}",
|
|
144
146
|
".wsr-handoff-text{width:100%;box-sizing:border-box;min-height:220px;max-height:46vh;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.6;padding:10px;border-radius:8px;border:.5px solid var(--dsw-alias-border-l2,rgba(255,255,255,.16));background:var(--dsw-alias-bg-layer-1,#1b1b1b);color:var(--dsw-alias-label-primary,#e6e6e6)}",
|
|
145
147
|
".wsr-page-head{display:flex;align-items:center;gap:8px}",
|
|
@@ -2080,6 +2082,23 @@
|
|
|
2080
2082
|
poll(1500);
|
|
2081
2083
|
}
|
|
2082
2084
|
|
|
2085
|
+
/** Conversation header: the same handoff, one click from the branch button. */
|
|
2086
|
+
function HandoffHeaderButton(props) {
|
|
2087
|
+
var Icon = ui.IconShareOutlineRegular;
|
|
2088
|
+
var label = t("menu.handoff");
|
|
2089
|
+
return h("button", {
|
|
2090
|
+
type: "button",
|
|
2091
|
+
className: "wsr-header-btn",
|
|
2092
|
+
title: label,
|
|
2093
|
+
"aria-label": label,
|
|
2094
|
+
"data-wsr-handoff-header": "true",
|
|
2095
|
+
onClick: function () {
|
|
2096
|
+
var sessionId = props !== undefined && props !== null && typeof props.sessionId === "string" ? props.sessionId : null;
|
|
2097
|
+
if (sessionId !== null) openHandoffPanel(sessionId);
|
|
2098
|
+
},
|
|
2099
|
+
}, typeof Icon === "function" ? h(Icon, { size: 16 }) : null);
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2083
2102
|
/** Session "..." menu row: hand the work over to a fresh Session. */
|
|
2084
2103
|
function HandoffMenuItem(props) {
|
|
2085
2104
|
var Item = ui.MenuItemButton;
|
|
@@ -2874,6 +2893,16 @@
|
|
|
2874
2893
|
}, ArgModeRow);
|
|
2875
2894
|
});
|
|
2876
2895
|
|
|
2896
|
+
ctx.slots.inject("conversation.session.header.utilities", function () {
|
|
2897
|
+
return ctx.slots.register({
|
|
2898
|
+
name: "conversation.session.header.utilities",
|
|
2899
|
+
id: "ws-recency-handoff",
|
|
2900
|
+
order: 10,
|
|
2901
|
+
locale: NS,
|
|
2902
|
+
inject: function (sessionId) { return { sessionId: sessionId }; },
|
|
2903
|
+
}, HandoffHeaderButton);
|
|
2904
|
+
});
|
|
2905
|
+
|
|
2877
2906
|
ctx.slots.inject("sidebar.workspaces.session.menu.item", function () {
|
|
2878
2907
|
return ctx.slots.register({
|
|
2879
2908
|
name: "sidebar.workspaces.session.menu.item",
|
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.19.
|
|
35
|
+
export const HOST_VERSION = "0.19.1";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Exact routes the client half calls. Registered on the bare web server, so they
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ws-recency",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.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, 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, and moving a session to another workspace.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chyxhtc",
|