dsh-delete-session 0.5.3 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-delete-session",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Delete sessions from the DSH Web sidebar: adds a Delete action to the session row menu with a risk-consent dialog, sends the session log, workspace accounting and live session state to the system trash (or removes them outright), and, when opted in, quarantines the files the conversation produced.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/client.js CHANGED
@@ -92,7 +92,7 @@ window.__ModuleLoader__.load({
92
92
  pageHintAutoWithArtifacts: '删除会话仍会弹窗——产出文件要先列清单给你勾选。',
93
93
  pageSummaryAsk: '删除前询问',
94
94
  pageSummaryAuto: '直接删除',
95
- pageArtifactsOff: '不处理产出文件(保持当前行为)',
95
+ pageArtifactsOff: '不处理产出文件',
96
96
  pageHintArtifactsOff: '删除会话只清理对话记录,完全不碰工作目录里的文件。',
97
97
  pageHintArtifactsOn: '删除会话时还会处理这个对话在工作目录里碰过的文件。',
98
98
  pageArtifactsAuto: '产出文件默认全部进隔离夹',
@@ -208,7 +208,7 @@ window.__ModuleLoader__.load({
208
208
  pageHintAutoWithArtifacts: 'A delete still opens a dialog, because the produced-file list has to be shown first.',
209
209
  pageSummaryAsk: 'Ask before deleting',
210
210
  pageSummaryAuto: 'Delete without asking',
211
- pageArtifactsOff: 'Leave produced files alone (current behaviour)',
211
+ pageArtifactsOff: 'Leave produced files alone',
212
212
  pageHintArtifactsOff: 'Deleting a session clears its record only and never touches files in the working directory.',
213
213
  pageHintArtifactsOn: 'Deleting a session also handles the files this conversation touched in its working directory.',
214
214
  pageArtifactsAuto: 'Send produced files straight to quarantine',
@@ -1132,10 +1132,11 @@ window.__ModuleLoader__.load({
1132
1132
  '.dsdel-field:hover{background:var(--dsdel-bg-hover)}',
1133
1133
  '.dsdel-field:focus-within{outline:2px solid var(--dsdel-ring);outline-offset:1px}',
1134
1134
  '.dsdel-page-hint{margin:0;color:var(--dsdel-label-faint);font-size:12.5px;line-height:19px;letter-spacing:.01em}',
1135
- '.dsdel-setting{display:flex;align-items:flex-start;gap:12px;padding:2px 0}',
1136
- '.dsdel-setting-text{display:flex;flex-direction:column;gap:2px;min-width:0}',
1137
- '.dsdel-setting-title{font-size:13px;line-height:20px;color:var(--dsdel-label)}',
1138
- '.dsdel-setting-desc{font-size:12px;line-height:18px;color:var(--dsdel-label-faint)}',
1135
+ '.dsdel-setting{position:relative;display:flex;align-items:flex-start;gap:16px;padding:12px 0;width:100%}',
1136
+ '.dsdel-setting-text{flex:1;min-width:0}',
1137
+ '.dsdel-setting-title{font-size:13px;font-weight:600;line-height:20px}',
1138
+ '.dsdel-setting-desc{position:absolute;left:0;top:100%;z-index:6;max-width:min(560px,100%);margin-top:6px;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.08);background:var(--dsw-alias-bg-layer-2,#fff);box-shadow:0 6px 20px rgba(0,0,0,.10);font-size:12px;line-height:18px;color:var(--dsw-alias-label-primary,#111);opacity:0;pointer-events:none;transition:opacity .12s}',
1139
+ '.dsdel-setting:hover .dsdel-setting-desc{opacity:1}',
1139
1140
  '.dsdel-switch{position:relative;flex:none;width:38px;height:22px;margin-left:auto;border:0;border-radius:11px;padding:0;cursor:pointer;background:rgba(127,127,127,.4);transition:background .12s ease}',
1140
1141
  '.dsdel-switch[aria-checked="true"]{background:#4c8dff}',
1141
1142
  '.dsdel-switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s ease}',
@@ -2839,7 +2839,7 @@ test('a fresh install ticks all four delete switches', async () => {
2839
2839
  ['ask', '删除时询问', 'ask first'],
2840
2840
  ['recycle', '删除至回收站', 'recycle bin'],
2841
2841
  ['syncChildren', '同时删除子会话', 'take the subagent sessions along'],
2842
- ['off', '不处理产出文件(保持当前行为)', 'leave produced files alone'],
2842
+ ['off', '不处理产出文件', 'leave produced files alone'],
2843
2843
  ]
2844
2844
 
2845
2845
  for (const [key, label, why] of expected) {