dsh-ws-recency 0.19.1 → 0.19.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.
- package/README.md +1 -1
- package/client.js +16 -12
- 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.2/dsh-ws-recency-0.19.2.tgz
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
装完把 `dsh-ws-recency` 加进 `~/.hypers-work/profiles/<profile>/package.json` 的 `dsh.profile.bundles`,重启应用。
|
package/client.js
CHANGED
|
@@ -140,8 +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-
|
|
144
|
-
".wsr-
|
|
143
|
+
".wsr-msg-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer}",
|
|
144
|
+
".wsr-msg-btn:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.08));color:var(--dsw-alias-label-primary)}",
|
|
145
145
|
".wsr-handoff-status{font-size:12px;color:var(--dsw-alias-label-tertiary);line-height:1.6}",
|
|
146
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)}",
|
|
147
147
|
".wsr-page-head{display:flex;align-items:center;gap:8px}",
|
|
@@ -2082,21 +2082,25 @@
|
|
|
2082
2082
|
poll(1500);
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
-
/**
|
|
2086
|
-
|
|
2085
|
+
/**
|
|
2086
|
+
* Turn actions: the handoff sits in the same row as copy / rate / branch,
|
|
2087
|
+
* which the chat renders once at the end of a completed turn.
|
|
2088
|
+
*/
|
|
2089
|
+
function HandoffTurnAction(props) {
|
|
2087
2090
|
var Icon = ui.IconShareOutlineRegular;
|
|
2091
|
+
var Tooltip = ui.Tooltip;
|
|
2088
2092
|
var label = t("menu.handoff");
|
|
2089
|
-
|
|
2093
|
+
var button = h("button", {
|
|
2090
2094
|
type: "button",
|
|
2091
|
-
className: "wsr-
|
|
2092
|
-
title: label,
|
|
2095
|
+
className: "wsr-msg-btn",
|
|
2093
2096
|
"aria-label": label,
|
|
2094
|
-
"data-wsr-handoff-
|
|
2097
|
+
"data-wsr-handoff-action": "true",
|
|
2095
2098
|
onClick: function () {
|
|
2096
2099
|
var sessionId = props !== undefined && props !== null && typeof props.sessionId === "string" ? props.sessionId : null;
|
|
2097
2100
|
if (sessionId !== null) openHandoffPanel(sessionId);
|
|
2098
2101
|
},
|
|
2099
2102
|
}, typeof Icon === "function" ? h(Icon, { size: 16 }) : null);
|
|
2103
|
+
return typeof Tooltip === "function" ? h(Tooltip, { label: label, side: "bottom" }, button) : button;
|
|
2100
2104
|
}
|
|
2101
2105
|
|
|
2102
2106
|
/** Session "..." menu row: hand the work over to a fresh Session. */
|
|
@@ -2893,14 +2897,14 @@
|
|
|
2893
2897
|
}, ArgModeRow);
|
|
2894
2898
|
});
|
|
2895
2899
|
|
|
2896
|
-
ctx.slots.inject("conversation.
|
|
2900
|
+
ctx.slots.inject("conversation.chat.assistant-actions", function () {
|
|
2897
2901
|
return ctx.slots.register({
|
|
2898
|
-
name: "conversation.
|
|
2902
|
+
name: "conversation.chat.assistant-actions",
|
|
2899
2903
|
id: "ws-recency-handoff",
|
|
2900
|
-
order:
|
|
2904
|
+
order: 20,
|
|
2901
2905
|
locale: NS,
|
|
2902
2906
|
inject: function (sessionId) { return { sessionId: sessionId }; },
|
|
2903
|
-
},
|
|
2907
|
+
}, HandoffTurnAction);
|
|
2904
2908
|
});
|
|
2905
2909
|
|
|
2906
2910
|
ctx.slots.inject("sidebar.workspaces.session.menu.item", function () {
|
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.2";
|
|
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.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, and moving a session to another workspace.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chyxhtc",
|