dsh-ws-recency 0.34.2 → 0.35.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.
Files changed (4) hide show
  1. package/README.md +16 -0
  2. package/client.js +257 -16
  3. package/index.js +1 -1
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -207,6 +207,22 @@ DSH 原生的置顶只把会话顶到**它所属工作区分组的第一行**,
207
207
 
208
208
  交接在每轮回复下方的动作行里;Token 统计在输入框上方的「分析」胶囊里;删除会话(移入回收站)的菜单项在 0.34.0 移除——要恢复它,把 `ctx.slots.inject("sidebar.workspaces.session.menu.item", … , TrashMenuItem)` 那段注册加回去即可,宿主侧的删除/回收站路由一直都在。
209
209
 
210
+ ## 插件功能开关
211
+
212
+ 开关在插件自己的页面上:侧栏「插件」→ `dsh-ws-recency` → 页面底部的「插件功能」一节(`plugins.detail.section`)。每一项都能单独开关,默认全开:
213
+
214
+ | 开关 | 关掉之后 |
215
+ |---|---|
216
+ | 侧栏会话管理 | 旧会话折叠、会话颜色、置顶分区都停下,并撤掉已画的标记,侧栏回到宿主原样 |
217
+ | 标记需要跟进 | 会话菜单里的标记与侧栏旁边的圆点消失 |
218
+ | 搜索会话内容 | 搜索面板与其入口消失;如果你已经装了别的搜索插件,用它就行 |
219
+ | 回收站 | 回收站面板消失,归档与彻底删除改由宿主/别处处理 |
220
+ | Token 消耗统计 | 输入框上方的「用量分析」胶囊与统计面板消失 |
221
+ | 交接到新会话 | 每轮回复下方的交接按钮消失 |
222
+ | 移动到工作区 | 会话菜单里的移动项消失 |
223
+
224
+ 面板底部有「全部启用」一键恢复。开关状态和别的偏好一起存在本地,重装升级不丢。
225
+
210
226
  ## 已知边界
211
227
 
212
228
  - 依赖宿主 DOM:分组容器带 `_groupSection`、分组头带 `data-row-key="workspace:<id>"`、行带 `data-row-key="session:<id>"`、溢出按钮类名含 `sessionOverflowButton`。宿主改结构就要跟着改。
package/client.js CHANGED
@@ -76,6 +76,49 @@
76
76
  var MAX_DAYS = 90;
77
77
  var DEFAULT_DAYS = 3;
78
78
 
79
+ /**
80
+ * Which parts of this plugin are on.
81
+ *
82
+ * The plugin grew several unrelated abilities; someone who already has
83
+ * another plugin for search, or for statistics, should be able to turn that
84
+ * part off here instead of living with two answers for one question.
85
+ */
86
+ var FEATURE_IDS = ["sidebar", "followUp", "search", "trash", "stats", "handoff", "move"];
87
+ var FEATURE_DEFAULTS = {
88
+ sidebar: true,
89
+ followUp: true,
90
+ search: true,
91
+ trash: true,
92
+ stats: true,
93
+ handoff: true,
94
+ move: true,
95
+ };
96
+
97
+ /**
98
+ * Wrap a component in one feature switch.
99
+ *
100
+ * The wrapper calls exactly one hook on every render, then decides: a guard
101
+ * inside the component itself would change its hook count the moment the
102
+ * switch flips, and React rejects that. Switching off unmounts the component,
103
+ * so its background work stops with it.
104
+ */
105
+ function withFeature(Component, feature) {
106
+ var FeatureGated = function (props) {
107
+ var settingsNow = typeof props.useStore === "function" ? props.useStore(function (state) { return state; }) : data.settings;
108
+ if (!featureOn(settingsNow, feature)) return null;
109
+ return h(Component, props);
110
+ };
111
+ FeatureGated.__featureGate = feature;
112
+ return FeatureGated;
113
+ }
114
+
115
+ /** One feature's switch, with `on` as the default for a missing value. */
116
+ function featureOn(state, name) {
117
+ var bag = state !== null && state !== undefined ? state.features : undefined;
118
+ if (bag !== null && bag !== undefined && typeof bag === "object" && typeof bag[name] === "boolean") return bag[name];
119
+ return FEATURE_DEFAULTS[name] !== false;
120
+ }
121
+
79
122
  /** Turns behind the newest that make a jump ask first; 0 disables asking. */
80
123
  var DEFAULT_COLD_JUMP = 40;
81
124
  var MAX_COLD_JUMP = 500;
@@ -355,6 +398,9 @@
355
398
  ".wsr-amplified-subtitle{font-size:11px;font-weight:600;color:var(--dsw-alias-label-secondary);margin-top:4px}",
356
399
  ".wsr-amplified-lead{font-size:11px;line-height:1.6;color:var(--dsw-alias-label-tertiary)}",
357
400
  ".wsr-stats-footnote{padding-top:6px;border-top:.5px solid rgba(255,255,255,.06)}",
401
+ ".wsr-plugin-features{display:flex;flex-direction:column;gap:2px;margin-top:18px;padding-top:14px;border-top:1px solid var(--dsw-alias-border-1,rgba(255,255,255,.10))}",
402
+ ".wsr-features-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 6px}",
403
+ ".wsr-features-title{font-size:14px;font-weight:600}",
358
404
  ".wsr-toggle{width:100%;height:28px;padding:0 12px 0 calc(28px + var(--dsh-workspace-indent,0px));cursor:pointer;text-align:left;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;font-size:12px}",
359
405
  ".wsr-toggle:hover{color:var(--dsw-alias-label-secondary)}",
360
406
  '[' + STATE_ATTR + '="running"] [class*="_title"]{color:#4f8ef7}',
@@ -522,6 +568,26 @@
522
568
  "adopt.done": "已补登记 {n} 个会话。",
523
569
  "adopt.cleaned": "清理了 {n} 处重复/失效的工作区归属。",
524
570
  "adopt.failed": "扫描失败:",
571
+ "features.title": "插件功能",
572
+ "features.on": "已启用",
573
+ "features.off": "已关闭",
574
+ "features.reset": "全部启用",
575
+ "features.note": "只关掉你不需要的部分:关掉的入口会从界面上消失,相关的后台逻辑也会停下。",
576
+ "features.takesEffect": "当前启用 {on} / {all} 项。",
577
+ "features.sidebar.title": "侧栏会话管理",
578
+ "features.sidebar.desc": "旧会话折叠、会话颜色、置顶分区。关掉后侧栏交回宿主原样。",
579
+ "features.followUp.title": "标记需要跟进",
580
+ "features.followUp.desc": "会话菜单里的标记与侧栏旁边的圆点。",
581
+ "features.search.title": "搜索会话内容",
582
+ "features.search.desc": "侧栏搜索面板:全文搜索、筛选、跳转。装了别的搜索插件可以关掉这个。",
583
+ "features.trash.title": "回收站",
584
+ "features.trash.desc": "侧栏回收站面板:管理已归档会话和彻底删除。",
585
+ "features.stats.title": "Token 消耗统计",
586
+ "features.stats.desc": "输入框上方的「用量分析」胶囊与统计面板。",
587
+ "features.handoff.title": "交接到新会话",
588
+ "features.handoff.desc": "每轮回复下方的交接按钮,把要点写成文档带到新会话。",
589
+ "features.move.title": "移动到工作区",
590
+ "features.move.desc": "把会话改登记到另一个工作区(会重写日志 header,需重启后操作)。",
525
591
  "search.title": "搜索会话内容",
526
592
  "search.placeholder": "输入关键词后回车;多个词用空格分隔,要求同时出现",
527
593
  "search.run": "搜索",
@@ -739,6 +805,26 @@
739
805
  "adopt.done": "Re-attached {n} session(s).",
740
806
  "adopt.cleaned": " Cleared {n} stale membership(s).",
741
807
  "adopt.failed": "Scan failed: ",
808
+ "features.title": "Plugin features",
809
+ "features.on": "On",
810
+ "features.off": "Off",
811
+ "features.reset": "Enable all",
812
+ "features.note": "Turn off only what you do not need: the entry disappears from the interface and its background work stops.",
813
+ "features.takesEffect": "{on} of {all} features are on.",
814
+ "features.sidebar.title": "Sidebar session management",
815
+ "features.sidebar.desc": "Folding old sessions, session colours, the pinned section. Off returns the sidebar to the host.",
816
+ "features.followUp.title": "Follow-up marks",
817
+ "features.followUp.desc": "The mark in the session menu and the dot beside the row.",
818
+ "features.search.title": "Search sessions",
819
+ "features.search.desc": "The search panel: full text, filters, jumping. Turn it off if another search plugin owns this.",
820
+ "features.trash.title": "Trash",
821
+ "features.trash.desc": "The trash panel: manage archived sessions and delete for good.",
822
+ "features.stats.title": "Token statistics",
823
+ "features.stats.desc": "The usage pill above the composer and the statistics panel.",
824
+ "features.handoff.title": "Hand off to a new session",
825
+ "features.handoff.desc": "The action under each reply that carries the gist into a fresh session.",
826
+ "features.move.title": "Move to workspace",
827
+ "features.move.desc": "Re-register a session under another workspace (rewrites the log header; restart first).",
742
828
  "search.title": "Search session content",
743
829
  "search.placeholder": "Type a word and press Enter; separate words with spaces to require all of them",
744
830
  "search.run": "Search",
@@ -1828,6 +1914,12 @@
1828
1914
  */
1829
1915
  function decorateComposerStats() {
1830
1916
  if (typeof document === "undefined") return;
1917
+ /* Switch off: take the pill away rather than leave a dead one. */
1918
+ if (!featureOn(data.settings, "stats")) {
1919
+ var stale = document.querySelector("[data-wsr-composer-analysis]");
1920
+ if (stale !== null && typeof stale.remove === "function") stale.remove();
1921
+ return;
1922
+ }
1831
1923
  var existing = document.querySelector("[data-wsr-composer-analysis]");
1832
1924
  var seat = document.querySelector("[data-composer-seat]");
1833
1925
  var anchors = seat === null || typeof seat.querySelectorAll !== "function" ? [] : seat.querySelectorAll("[data-composer-stat]");
@@ -1953,6 +2045,23 @@
1953
2045
  }, delay);
1954
2046
  }
1955
2047
  /** `shell.overlay` occupant; it renders no chrome of its own. */
2048
+ /** Remove every mark this plugin paints on the sidebar rows. */
2049
+ function unpaintSidebar() {
2050
+ if (typeof document === "undefined") return;
2051
+ try {
2052
+ var painted = document.querySelectorAll("[data-wsr-rank],[data-wsr-dot]");
2053
+ for (var i = 0; i < painted.length; i += 1) {
2054
+ painted[i].removeAttribute("data-wsr-rank");
2055
+ painted[i].removeAttribute("data-wsr-dot");
2056
+ painted[i].style.removeProperty("order");
2057
+ }
2058
+ var hidden = document.querySelectorAll(".wsr-hidden");
2059
+ for (var j = 0; j < hidden.length; j += 1) hidden[j].classList.remove("wsr-hidden");
2060
+ } catch (error) {
2061
+ /* a half-painted list is not worth a crash */
2062
+ }
2063
+ }
2064
+
1956
2065
  function Sorter(props) {
1957
2066
  if (typeof props.useSessions === "function") {
1958
2067
  data.sessions = props.useSessions(function (state) { return state; });
@@ -1968,7 +2077,15 @@
1968
2077
  }
1969
2078
  if (props.actions !== undefined && props.actions !== null) data.actions = props.actions;
1970
2079
  if (typeof props.t === "function") data.t = props.t;
1971
- react.useEffect(function () { schedule(); });
2080
+ /* With the sidebar half off, drop our paint and stop the timer. */
2081
+ var sidebarOn = featureOn(data.settings, "sidebar");
2082
+ react.useEffect(function () {
2083
+ if (sidebarOn) {
2084
+ schedule();
2085
+ return;
2086
+ }
2087
+ unpaintSidebar();
2088
+ });
1972
2089
  return null;
1973
2090
  }
1974
2091
 
@@ -5203,6 +5320,7 @@
5203
5320
  }
5204
5321
 
5205
5322
  /** The sidebar's trash entry glyph. */
5323
+
5206
5324
  function TrashPanelIcon(props) {
5207
5325
  var Icon = ui.IconTrashOutlineRegular;
5208
5326
  if (typeof Icon !== "function") return null;
@@ -5210,7 +5328,106 @@
5210
5328
  return h(Icon, { size: size });
5211
5329
  }
5212
5330
 
5331
+ /** One switch: a title, what it costs to turn off, and a toggle. */
5332
+ function FeatureRow(props) {
5333
+ var on = props.on === true;
5334
+ return h("div", { className: "wsr-setRow", "data-wsr-feature": props.id },
5335
+ h("div", { className: "wsr-setText" },
5336
+ h("div", { className: "wsr-setTitle" }, props.title),
5337
+ h("div", { className: "wsr-setDesc" }, props.description),
5338
+ ),
5339
+ h("div", { className: "wsr-controls" },
5340
+ h("button", {
5341
+ type: "button",
5342
+ className: on ? "wsr-toggle wsr-toggle-on" : "wsr-toggle",
5343
+ "aria-pressed": on ? "true" : "false",
5344
+ "data-wsr-feature-toggle": props.id,
5345
+ onClick: function () {
5346
+ if (typeof props.onToggle === "function") props.onToggle(props.id);
5347
+ },
5348
+ }, t(on ? "features.on" : "features.off")),
5349
+ ),
5350
+ );
5351
+ }
5352
+ /** The package this section belongs to, as the plugin page names it. */
5353
+ var OUR_PACKAGE = "dsh-ws-recency";
5354
+
5355
+ /** The package name a detail subject stands for, whichever shape it takes. */
5356
+ function subjectPackageName(subject) {
5357
+ if (subject === null || subject === undefined || typeof subject !== "object") return "";
5358
+ if (typeof subject.name === "string" && subject.name !== "") return subject.name;
5359
+ var pkg = subject.pkg;
5360
+ if (typeof pkg === "string") return pkg;
5361
+ if (pkg !== null && pkg !== undefined && typeof pkg === "object") {
5362
+ if (typeof pkg.name === "string") return pkg.name;
5363
+ if (typeof pkg.id === "string") return pkg.id;
5364
+ }
5365
+ var row = subject.row;
5366
+ if (row !== null && row !== undefined && typeof row === "object" && typeof row.package === "string") return row.package;
5367
+ return "";
5368
+ }
5369
+
5213
5370
  /**
5371
+ * The plugin page's own section: every ability of this plugin, on or off.
5372
+ *
5373
+ * It renders nothing for another package's page, which is the contract for a
5374
+ * detail section.
5375
+ */
5376
+ function FeaturesSection(props) {
5377
+ var storeSettings = typeof props.useStore === "function" ? props.useStore(function (state) { return state; }) : data.settings;
5378
+ var name = subjectPackageName(props.subject);
5379
+ /* A row subject carries the package differently; accept both spellings. */
5380
+ if (name !== OUR_PACKAGE && String(name).indexOf(OUR_PACKAGE) !== 0) return null;
5381
+
5382
+ /* A toggle is visible at once, even where the slot hands us no store hook. */
5383
+ var overrides = react.useState({});
5384
+ var valueOf = function (id) {
5385
+ var bag = overrides[0] || {};
5386
+ if (typeof bag[id] === "boolean") return bag[id];
5387
+ return featureOn(storeSettings, id);
5388
+ };
5389
+ var setAll = function (bag) { overrides[1](bag); };
5390
+ var toggle = function (id) {
5391
+ var next = {};
5392
+ var bag = overrides[0] || {};
5393
+ next[id] = !valueOf(id);
5394
+ setAll(Object.assign({}, bag, next));
5395
+ if (props.actions !== undefined) props.actions.setFeature(id);
5396
+ };
5397
+ var reset = function () {
5398
+ setAll({});
5399
+ if (props.actions !== undefined) props.actions.resetFeatures();
5400
+ };
5401
+
5402
+ var rows = FEATURE_IDS.map(function (id) {
5403
+ return h(FeatureRow, {
5404
+ key: id,
5405
+ id: id,
5406
+ title: t("features." + id + ".title"),
5407
+ description: t("features." + id + ".desc"),
5408
+ on: valueOf(id),
5409
+ onToggle: toggle,
5410
+ });
5411
+ });
5412
+ var onCount = FEATURE_IDS.filter(function (id) { return valueOf(id); }).length;
5413
+ return h("section", { className: "wsr-plugin-features", "data-wsr-features": OUR_PACKAGE },
5414
+ h("div", { className: "wsr-features-head" },
5415
+ h("div", { className: "wsr-features-title" }, t("features.title")),
5416
+ h("button", {
5417
+ type: "button",
5418
+ className: "wsr-btn",
5419
+ "data-wsr-features-reset": "true",
5420
+ onClick: reset,
5421
+ }, t("features.reset")),
5422
+ ),
5423
+ h("div", { className: "wsr-setNote" }, t("features.note")),
5424
+ rows,
5425
+ h("div", { className: "wsr-setNote" }, t("features.takesEffect", {
5426
+ on: String(onCount),
5427
+ all: String(FEATURE_IDS.length),
5428
+ })),
5429
+ );
5430
+ } /**
5214
5431
  * The trash page itself: the plugin's trash (deleted logs) on top, the
5215
5432
  * Host's archive set (hidden sessions whose logs are still in place)
5216
5433
  * below. Both are "put away", so both are managed from here.
@@ -5632,7 +5849,7 @@
5632
5849
  }
5633
5850
  var prefs = clientStore.defineStore({
5634
5851
  init: function () {
5635
- return { enabled: true, foldDays: DEFAULT_DAYS, keepActive: true, colors: true, pinnedSection: true, argMode: "tool", followUps: {}, searchHistory: [], coldJumpTurns: DEFAULT_COLD_JUMP };
5852
+ return { enabled: true, foldDays: DEFAULT_DAYS, keepActive: true, colors: true, pinnedSection: true, argMode: "tool", followUps: {}, searchHistory: [], coldJumpTurns: DEFAULT_COLD_JUMP, features: {} };
5636
5853
  },
5637
5854
  persist: "dsh.ws-recency.prefs.v1",
5638
5855
  actions: {
@@ -5641,6 +5858,14 @@
5641
5858
  setColors: function (draft, value) { draft.colors = value === true; },
5642
5859
  setPinnedSection: function (draft, value) { draft.pinnedSection = value === true; },
5643
5860
  setArgMode: function (draft, value) { draft.argMode = value === "agent" ? "agent" : "tool"; },
5861
+ setFeature: function (draft, name) {
5862
+ if (FEATURE_IDS.indexOf(String(name)) === -1) return;
5863
+ if (draft.features === null || draft.features === undefined || typeof draft.features !== "object") draft.features = {};
5864
+ draft.features[String(name)] = !featureOn(draft, String(name));
5865
+ },
5866
+ resetFeatures: function (draft) {
5867
+ draft.features = {};
5868
+ },
5644
5869
  setColdJumpTurns: function (draft, value) {
5645
5870
  var next = Number(value);
5646
5871
  if (!Number.isFinite(next)) return;
@@ -5736,7 +5961,7 @@
5736
5961
  order: 45,
5737
5962
  store: prefs,
5738
5963
  locale: NS,
5739
- }, SettingsRow);
5964
+ }, withFeature(SettingsRow, "sidebar"));
5740
5965
  });
5741
5966
 
5742
5967
  ctx.slots.inject("settings.general.item", function () {
@@ -5746,7 +5971,7 @@
5746
5971
  order: 45,
5747
5972
  store: prefs,
5748
5973
  locale: NS,
5749
- }, ColdJumpRow);
5974
+ }, withFeature(ColdJumpRow, "search"));
5750
5975
  });
5751
5976
 
5752
5977
  ctx.slots.inject("settings.general.item", function () {
@@ -5756,7 +5981,7 @@
5756
5981
  order: 46,
5757
5982
  store: prefs,
5758
5983
  locale: NS,
5759
- }, ColorsRow);
5984
+ }, withFeature(ColorsRow, "sidebar"));
5760
5985
  });
5761
5986
 
5762
5987
  if (SEARCH_ENABLED) {
@@ -5765,9 +5990,10 @@
5765
5990
  name: "sidebar.panellist",
5766
5991
  id: "ws-recency-search",
5767
5992
  order: 19,
5993
+ store: prefs,
5768
5994
  locale: NS,
5769
5995
  label: function () { return t("search.title"); },
5770
- }, SearchPanelIcon);
5996
+ }, withFeature(SearchPanelIcon, "search"));
5771
5997
  });
5772
5998
 
5773
5999
  ctx.slots.inject("main", function () {
@@ -5776,27 +6002,40 @@
5776
6002
  key: "ws-recency-search",
5777
6003
  locale: NS,
5778
6004
  store: prefs,
5779
- }, SearchPanelPage);
6005
+ }, withFeature(SearchPanelPage, "search"));
5780
6006
  });
5781
6007
  }
5782
6008
 
5783
6009
 
6010
+
5784
6011
  ctx.slots.inject("sidebar.panellist", function () {
5785
6012
  return ctx.slots.register({
5786
6013
  name: "sidebar.panellist",
5787
6014
  id: "ws-recency-trash",
5788
6015
  order: 20,
6016
+ store: prefs,
5789
6017
  locale: NS,
5790
6018
  label: function () { return t("trash.title"); },
5791
- }, TrashPanelIcon);
6019
+ }, withFeature(TrashPanelIcon, "trash"));
6020
+ });
6021
+
6022
+ ctx.slots.inject("plugins.detail.section", function () {
6023
+ return ctx.slots.register({
6024
+ name: "plugins.detail.section",
6025
+ id: "ws-recency-features",
6026
+ order: 60,
6027
+ store: prefs,
6028
+ locale: NS,
6029
+ }, FeaturesSection);
5792
6030
  });
5793
6031
 
5794
6032
  ctx.slots.inject("main", function () {
5795
6033
  return ctx.slots.register({
5796
6034
  name: "main",
5797
6035
  key: "ws-recency-trash",
6036
+ store: prefs,
5798
6037
  locale: NS,
5799
- }, TrashPanelPage);
6038
+ }, withFeature(TrashPanelPage, "trash"));
5800
6039
  });
5801
6040
 
5802
6041
  ctx.slots.inject("settings.general.item", function () {
@@ -5806,7 +6045,7 @@
5806
6045
  order: 47,
5807
6046
  store: prefs,
5808
6047
  locale: NS,
5809
- }, PinSectionRow);
6048
+ }, withFeature(PinSectionRow, "sidebar"));
5810
6049
  });
5811
6050
 
5812
6051
  ctx.slots.inject("settings.general.item", function () {
@@ -5816,7 +6055,7 @@
5816
6055
  order: 48,
5817
6056
  store: prefs,
5818
6057
  locale: NS,
5819
- }, ArgModeRow);
6058
+ }, withFeature(ArgModeRow, "stats"));
5820
6059
  });
5821
6060
 
5822
6061
  ctx.slots.inject("conversation.chat.assistant-actions", function () {
@@ -5824,9 +6063,10 @@
5824
6063
  name: "conversation.chat.assistant-actions",
5825
6064
  id: "ws-recency-handoff",
5826
6065
  order: 20,
6066
+ store: prefs,
5827
6067
  locale: NS,
5828
6068
  inject: function (sessionId) { return { sessionId: sessionId }; },
5829
- }, HandoffTurnAction);
6069
+ }, withFeature(HandoffTurnAction, "handoff"));
5830
6070
  });
5831
6071
 
5832
6072
  ctx.slots.inject("conversation.chat.turnTail", function () {
@@ -5834,9 +6074,10 @@
5834
6074
  name: "conversation.chat.turnTail",
5835
6075
  id: "ws-recency-handoff-card",
5836
6076
  order: 30,
6077
+ store: prefs,
5837
6078
  locale: NS,
5838
6079
  inject: function (sessionId) { return { sessionId: sessionId }; },
5839
- }, HandoffTailCard);
6080
+ }, withFeature(HandoffTailCard, "handoff"));
5840
6081
  });
5841
6082
 
5842
6083
  ctx.slots.inject("sidebar.workspaces.session.menu.item", function () {
@@ -5846,7 +6087,7 @@
5846
6087
  order: MENU_ORDER,
5847
6088
  store: prefs,
5848
6089
  locale: NS,
5849
- }, FollowUpMenuItem);
6090
+ }, withFeature(FollowUpMenuItem, "followUp"));
5850
6091
  });
5851
6092
 
5852
6093
  ctx.slots.inject("sidebar.session.row.leading", function () {
@@ -5856,7 +6097,7 @@
5856
6097
  order: 400,
5857
6098
  store: prefs,
5858
6099
  locale: NS,
5859
- }, FollowUpDot);
6100
+ }, withFeature(FollowUpDot, "followUp"));
5860
6101
  });
5861
6102
 
5862
6103
  ctx.slots.inject("sidebar.workspaces.session.menu.item", function () {
@@ -5866,7 +6107,7 @@
5866
6107
  order: 690,
5867
6108
  store: prefs,
5868
6109
  locale: NS,
5869
- }, MoveMenuItem);
6110
+ }, withFeature(MoveMenuItem, "move"));
5870
6111
  });
5871
6112
 
5872
6113
 
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.2";
35
+ export const HOST_VERSION = "0.35.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.34.2",
3
+ "version": "0.35.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, 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",