dsh-session-relocate 0.3.0 → 0.3.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 (2) hide show
  1. package/lib/client.js +15 -5
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -138,8 +138,13 @@ window.__ModuleLoader__.load({
138
138
  '.dshsm-menu-disambig{display:flex;align-items:center;gap:4px;min-width:0}',
139
139
  '.dshsm-menu-title{text-overflow:ellipsis;min-width:0;overflow:hidden}',
140
140
  '.dshsm-menu-suffix{flex:none;max-width:75%;text-overflow:ellipsis;min-width:0;overflow:hidden;color:var(--dsw-alias-label-secondary,inherit)}',
141
+ // hover → 整行悬浮显形(盯 .dshsm-dock)
142
+ // hover-self → 只有指针落进胶囊自己那一小块才显形(最早的做法)。
143
+ // 两种都只是 opacity:0,仍然占位、仍然收得到指针事件,所以不会跳、也好点。
141
144
  '.dshsm-chip[data-mode="hover"]{opacity:0;transition:opacity .12s ease}',
142
145
  '.dshsm-dock:hover .dshsm-chip[data-mode="hover"]{opacity:1}',
146
+ '.dshsm-chip[data-mode="hover-self"]{opacity:0;transition:opacity .12s ease}',
147
+ '.dshsm-chip[data-mode="hover-self"]:hover,.dshsm-chip[data-mode="hover-self"]:focus-visible{opacity:1}',
143
148
  '.dshsm-dock--hidden{justify-content:flex-end}',
144
149
  // 皮肤插件(@linxin666/dsh-client-ui-skin-center)把 input.dock 的每个直接子元素都当
145
150
  // 「小配件」刷底板:
@@ -276,9 +281,10 @@ window.__ModuleLoader__.load({
276
281
  childrenSettingTitle: '连同子对话一起移动',
277
282
  childrenSettingDesc: '默认开。移动父对话时,它的子智能体会话(侧边栏里隐藏的 subagent 会话)一起搬到目标工作区;关掉后只搬父对话。',
278
283
  chipModeTitle: '工作区 chip 什么时候出现',
279
- chipModeDesc: '「一直出现」常驻在输入框上方;「悬浮才出现」鼠标移到那一行才显示(位置不变,不会跳);「不出现」完全不渲染,预设胶囊会自动回到右边。',
284
+ chipModeDesc: '「一直出现」常驻在输入框上方;「悬浮在那一行才出现」鼠标移到整行才显示;「只悬浮胶囊才出现」鼠标要正好落在胶囊那一小块;两者都保留占位,不会跳。「不出现」完全不渲染,预设胶囊会自动回到右边。',
280
285
  chipModeAlways: '一直出现',
281
- chipModeHover: '悬浮才出现',
286
+ chipModeHover: '悬浮在那一行才出现',
287
+ chipModeHoverSelf: '只悬浮胶囊才出现',
282
288
  chipModeNever: '不出现',
283
289
  starPrompt: '顺手留颗 Star,作者能高兴一整天',
284
290
  starCta: '行,给你一颗 Star',
@@ -331,9 +337,10 @@ window.__ModuleLoader__.load({
331
337
  childrenSettingTitle: 'Move child conversations too',
332
338
  childrenSettingDesc: 'On by default. Moving a conversation also moves its hidden subagent sessions to the target workspace; turn it off to move only the parent conversation.',
333
339
  chipModeTitle: 'When to show the workspace chip',
334
- chipModeDesc: '"Always" keeps it above the composer; "On hover" reveals it when the pointer enters that row (no layout shift); "Never" hides it and the preset chip moves back to the right.',
340
+ chipModeDesc: '"Always" keeps it above the composer; "On row hover" reveals it when the pointer enters that row; "Only when hovering the chip" needs the pointer on the chip itself. Both keep their space, so nothing jumps. "Never" hides it and the preset chip moves back to the right.',
335
341
  chipModeAlways: 'Always',
336
- chipModeHover: 'On hover',
342
+ chipModeHover: 'On row hover',
343
+ chipModeHoverSelf: 'Only when hovering the chip',
337
344
  chipModeNever: 'Never',
338
345
  starPrompt: 'Leave a star — it makes the author’s day',
339
346
  starCta: 'Give a star',
@@ -368,7 +375,9 @@ window.__ModuleLoader__.load({
368
375
 
369
376
  // ── 工作区 chip 的出现方式:一直出现 / 悬浮才出现 / 不出现 ────────────────
370
377
  var CHIP_MODE_KEY = 'dsh-session-relocate.chipMode';
371
- var CHIP_MODES = ['always', 'hover', 'never'];
378
+ // always = 常驻;hover = 整行悬浮显形;hover-self = 只悬浮胶囊那一小块才显形;
379
+ // never = 完全不渲染。(和预设工作台的四种模式同名同义)
380
+ var CHIP_MODES = ['always', 'hover', 'hover-self', 'never'];
372
381
  var chipModeListeners = [];
373
382
 
374
383
  function chipMode() {
@@ -443,6 +452,7 @@ window.__ModuleLoader__.load({
443
452
  react.createElement('div', { className: 'dshsm-seg', key: 'seg' }, [
444
453
  modeButton('always', strings.chipModeAlways),
445
454
  modeButton('hover', strings.chipModeHover),
455
+ modeButton('hover-self', strings.chipModeHoverSelf),
446
456
  modeButton('never', strings.chipModeNever),
447
457
  ]),
448
458
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-relocate",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "跨工作区移动 DSH 对话:把某个 Session 的日志文件与工作区归属整体搬到另一个工作区(可自动注册新工作区)。带日志级崩溃恢复的安全事务,并且会先安全释放「已打开但空闲」的会话 —— 所以正在打开的对话也能直接搬,不需要重启 DSH。",
5
5
  "type": "module",
6
6
  "main": "src/plugin.js",