dsh-ws-recency 0.19.0 → 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 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.0/dsh-ws-recency-0.19.0.tgz
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,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-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)}",
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,27 @@
2080
2082
  poll(1500);
2081
2083
  }
2082
2084
 
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) {
2090
+ var Icon = ui.IconShareOutlineRegular;
2091
+ var Tooltip = ui.Tooltip;
2092
+ var label = t("menu.handoff");
2093
+ var button = h("button", {
2094
+ type: "button",
2095
+ className: "wsr-msg-btn",
2096
+ "aria-label": label,
2097
+ "data-wsr-handoff-action": "true",
2098
+ onClick: function () {
2099
+ var sessionId = props !== undefined && props !== null && typeof props.sessionId === "string" ? props.sessionId : null;
2100
+ if (sessionId !== null) openHandoffPanel(sessionId);
2101
+ },
2102
+ }, typeof Icon === "function" ? h(Icon, { size: 16 }) : null);
2103
+ return typeof Tooltip === "function" ? h(Tooltip, { label: label, side: "bottom" }, button) : button;
2104
+ }
2105
+
2083
2106
  /** Session "..." menu row: hand the work over to a fresh Session. */
2084
2107
  function HandoffMenuItem(props) {
2085
2108
  var Item = ui.MenuItemButton;
@@ -2874,6 +2897,16 @@
2874
2897
  }, ArgModeRow);
2875
2898
  });
2876
2899
 
2900
+ ctx.slots.inject("conversation.chat.assistant-actions", function () {
2901
+ return ctx.slots.register({
2902
+ name: "conversation.chat.assistant-actions",
2903
+ id: "ws-recency-handoff",
2904
+ order: 20,
2905
+ locale: NS,
2906
+ inject: function (sessionId) { return { sessionId: sessionId }; },
2907
+ }, HandoffTurnAction);
2908
+ });
2909
+
2877
2910
  ctx.slots.inject("sidebar.workspaces.session.menu.item", function () {
2878
2911
  return ctx.slots.register({
2879
2912
  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.0";
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.0",
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",