dsh-mop 0.1.4 → 0.2.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.
- package/README.md +2 -4
- package/client.js +1319 -392
- package/index.js +21 -6
- package/lib/artifacts.mjs +15 -3
- package/lib/clean.mjs +140 -120
- package/lib/errors.mjs +14 -0
- package/lib/guard.mjs +7 -2
- package/lib/routes.mjs +19 -6
- package/lib/session-shell.mjs +9 -11
- package/lib/store.mjs +130 -42
- package/package.json +9 -3
- package/client.de.js +0 -39
- package/client.en.js +0 -39
- package/client.es.js +0 -39
- package/client.fr.js +0 -39
- package/client.ja.js +0 -39
- package/client.pt.js +0 -39
- package/client.ru.js +0 -39
- package/client.zh.js +0 -39
- package/lib/release-session.mjs +0 -30
package/client.js
CHANGED
|
@@ -1,77 +1,1121 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dsh-mop 浏览器半边:设置 → 归档会话。
|
|
3
3
|
* 查看会话和 DSH 官方归档,支持清理与还原。
|
|
4
|
+
*
|
|
5
|
+
* 官方标准对齐(0.2.0):
|
|
6
|
+
* - 不再读取其他插件的 slot 注册或组件(schedule 任务视图改为自绘行);
|
|
7
|
+
* - 不再手搓 connection RPC wire 帧;blank/updatedAt 等会话事实全部来自
|
|
8
|
+
* 本插件 Host 路由(官方 sessionProjections / sessionProjectionCache 投影);
|
|
9
|
+
* - 全部可见文案走本插件自己的 `dsh-mop` 词典命名空间(通用词经 locale
|
|
10
|
+
* 服务的 common 命名空间回退),不再绑定其他功能的词典键;
|
|
11
|
+
* - hover 卡与对话框只用官方基元的默认定位,不再操纵宿主 DOM/portal。
|
|
12
|
+
* - 词典按官方惯例内联本模块(8 语言一次性注册),不再使用按语言分块文件;
|
|
4
13
|
*/
|
|
5
14
|
window.__ModuleLoader__.load({
|
|
6
15
|
id: 'dsh-mop',
|
|
7
16
|
factory(require) {
|
|
8
17
|
const React = require('react');
|
|
9
18
|
const { HoverCard, HoverCardGroup, StateDot, Button, Input, SegmentedTabs, Toast, Modal } = require('@deepseek-ai/dsh-client-ui-primitives');
|
|
10
|
-
const { useState, useEffect,
|
|
19
|
+
const { useState, useEffect, useCallback, useMemo } = React;
|
|
11
20
|
const h = React.createElement;
|
|
12
21
|
|
|
13
22
|
const NS = 'dsh-mop';
|
|
14
23
|
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
// 官方惯例:全部语言的词典内联本模块(对照官方包的 locales.ts;
|
|
25
|
+
// dsh-mop 无构建,直接以字面量内联),apply 时一次性注册进 locale 服务。
|
|
26
|
+
const dictionaries = {
|
|
27
|
+
zh: {
|
|
28
|
+
'tabs.residue': '残留',
|
|
29
|
+
'selection.summary': '已选 {n} 个 · {size}',
|
|
30
|
+
'selection.summaryCount': '已选 {n} 个',
|
|
31
|
+
'search.placeholder': '搜索{section}',
|
|
32
|
+
'confirm.purge.description': '删除后无法恢复',
|
|
33
|
+
'archive.scheduleDeletion': '发往此会话的活动自动化任务及其已保存的运行记录将被删除。',
|
|
34
|
+
'error.notArchived': '只能删除已归档的会话',
|
|
35
|
+
'error.workspaceProtected': '工作区受保护',
|
|
36
|
+
'protection.label': '受保护',
|
|
37
|
+
'reference.schedule': '关联了计划任务',
|
|
38
|
+
'residue.orphanTask': '关联会话当前不可用',
|
|
39
|
+
'residue.registeredCache': '还有工作区注册',
|
|
40
|
+
'residue.orphanCache': '无对应会话的缓存',
|
|
41
|
+
'residue.ghostRegistry': '无对应会话的注册',
|
|
42
|
+
'residue.sessionDirectory': '未识别会话目录',
|
|
43
|
+
'residue.emptyProject': '空会话目录',
|
|
44
|
+
'residue.memoryResident': '已删除会话仍在内存,重启后自动消散',
|
|
45
|
+
'confirm.tasks.description': '所选任务及其保存的运行记录将被删除',
|
|
46
|
+
'error.schedule_changed': '任务已变化,请刷新后重试',
|
|
47
|
+
'error.session_resident': '会话仍加载在本 DSH,重启后可删除',
|
|
48
|
+
'error.purge_busy': '会话正在清理,请稍后重试',
|
|
49
|
+
'error.cleanup_partial': '清理被中断',
|
|
50
|
+
'error.workspace_unavailable': '无法检查工作区注册',
|
|
51
|
+
'error.workspace_filtered': '工作区含其他隐藏注册,无法单独移除',
|
|
52
|
+
'error.unsupported_storage': '无法确认会话日志位置',
|
|
53
|
+
'error.historical_format': '会话日志需要迁移后才能删除',
|
|
54
|
+
'error.historical_parent': '请先打开父会话完成迁移',
|
|
55
|
+
'error.unsafe_path': '无法确认文件路径',
|
|
56
|
+
'error.unknown_artifact': '会话目录包含未识别文件',
|
|
57
|
+
'error.session_changed': '会话状态已变化,请重试',
|
|
58
|
+
'error.cache_unavailable': '投影缓存服务不可用',
|
|
59
|
+
'error.residue_changed': '残留已变化,请刷新后重试',
|
|
60
|
+
'error.internal': '内部错误,请重试',
|
|
61
|
+
'error.bad_request': '请求无效',
|
|
62
|
+
'tabs.archived': '已归档',
|
|
63
|
+
'notice.archived': '已归档',
|
|
64
|
+
'error.sessionNotFound': '会话不可用',
|
|
65
|
+
'error.referenceCheck': '无法加载任务',
|
|
66
|
+
'error.residue_unavailable': '操作失败,请重试',
|
|
67
|
+
'error.purge_failed': '操作失败,请重试',
|
|
68
|
+
'error.residue_failed': '操作失败,请重试',
|
|
69
|
+
'empty.residue': '暂无结果',
|
|
70
|
+
'notice.purgeFailed': '删除失败:{reasons}',
|
|
71
|
+
'notice.restoreFailed': '取消归档失败:{reasons}',
|
|
72
|
+
'notice.archiveFailed': '归档失败:{reasons}',
|
|
73
|
+
'notice.cleanFailed': '清理失败:{reasons}',
|
|
74
|
+
'notice.listSeparator': ';',
|
|
75
|
+
'selection.selectAll': '全选',
|
|
76
|
+
'selection.deselectAll': '取消全选',
|
|
77
|
+
'confirm.purge.title': '删除 {provider}?',
|
|
78
|
+
'confirm.residue.title': '删除 {provider}?',
|
|
79
|
+
'hover.more': '还有 {count} 个',
|
|
80
|
+
'host.updateRequired': '请重启 DSH 使更改生效。',
|
|
81
|
+
'row.archived': '已归档',
|
|
82
|
+
'toast.archived': '会话已归档,可',
|
|
83
|
+
'toast.stoppedAndArchived': '已停止并归档,可',
|
|
84
|
+
'toast.archivedUndo': '撤销',
|
|
85
|
+
'toast.archivedOr': '或',
|
|
86
|
+
'session.new': '新会话',
|
|
87
|
+
'group.ungrouped': '未分组',
|
|
88
|
+
'actions.archive': '归档会话',
|
|
89
|
+
'actions.unarchive': '取消归档',
|
|
90
|
+
'section.sessions': '会话',
|
|
91
|
+
'empty.noMatches': '无匹配结果',
|
|
92
|
+
'empty.none': '暂无会话',
|
|
93
|
+
'empty.noneArchived': '暂无已归档会话',
|
|
94
|
+
'archive.confirm.title': '停止并归档此会话?',
|
|
95
|
+
'archive.confirm.desc': '“{title}”仍有正在进行的工作。归档会先停止这些工作;之后可在侧栏筛选“全部对话(显示已归档)”中恢复会话,被停止的工作不会自动继续。',
|
|
96
|
+
'archive.confirm.pending': '正在停止并归档…',
|
|
97
|
+
'archive.confirm.action': '停止并归档',
|
|
98
|
+
'archive.confirm.activity': '将被停止的工作',
|
|
99
|
+
'archive.confirm.turn': '进行中的回合',
|
|
100
|
+
'archive.confirm.subagents.one': '{n} 个运行中的子智能体:{names}',
|
|
101
|
+
'archive.confirm.subagents.other': '{n} 个运行中的子智能体:{names}',
|
|
102
|
+
'archive.confirm.jobs.one': '{n} 个后台任务:{names}',
|
|
103
|
+
'archive.confirm.jobs.other': '{n} 个后台任务:{names}',
|
|
104
|
+
'archive.confirm.schedules.one': '{n} 条定时提醒:{names}',
|
|
105
|
+
'archive.confirm.schedules.other': '{n} 条定时提醒:{names}',
|
|
106
|
+
'archive.confirm.other.one': '{n} 项其他工作({kind})',
|
|
107
|
+
'archive.confirm.other.other': '{n} 项其他工作({kind})',
|
|
108
|
+
'archive.confirm.listSeparator': '、',
|
|
109
|
+
'time.now': '刚刚',
|
|
110
|
+
'time.minutes': '{n}分钟',
|
|
111
|
+
'time.hours': '{n}小时',
|
|
112
|
+
'time.days': '{n}天',
|
|
113
|
+
'time.months': '{n}个月',
|
|
114
|
+
'time.years': '{n}年',
|
|
115
|
+
'time.ago': '{t}前',
|
|
116
|
+
'date.ymd': '{y}年{m}月{d}日',
|
|
117
|
+
'hover.created': '创建于 {time}',
|
|
118
|
+
'hover.copied': '已复制',
|
|
119
|
+
'status.running': '进行中',
|
|
120
|
+
'status.idle': '空闲',
|
|
121
|
+
'detail.close': '关闭详情',
|
|
122
|
+
'detail.label': '任务详情',
|
|
123
|
+
'detail.name': '自动化任务名称',
|
|
124
|
+
'detail.instruction': '自动化任务内容',
|
|
125
|
+
'detail.missing': '任务已不可用,可能已被删除',
|
|
126
|
+
'detail.nextRun': '下次运行',
|
|
127
|
+
'statusFilter.label': '任务状态',
|
|
128
|
+
'rule.repeat': '重复',
|
|
129
|
+
'host.target': '执行位置',
|
|
130
|
+
'host.currentConversation': '当前关联会话',
|
|
131
|
+
'host.targetNewOnce': '新建会话并复用',
|
|
132
|
+
'host.targetNew': '每次新建会话',
|
|
133
|
+
'delete.confirm': '确认删除',
|
|
134
|
+
'clear.confirm': '确认清除',
|
|
135
|
+
'error.schedule_delete_failed': '无法删除任务',
|
|
136
|
+
'list.error': '无法加载任务',
|
|
137
|
+
'status.active': '已开启',
|
|
138
|
+
'status.paused': '已暂停',
|
|
139
|
+
'status.ended': '已结束',
|
|
140
|
+
'frequency.once': '仅一次',
|
|
141
|
+
'frequency.every': '每 {value} {unit}',
|
|
142
|
+
'frequency.daily': '每天 {time}({timeZone})',
|
|
143
|
+
'frequency.weekly': '每周{weekdays} {time}({timeZone})',
|
|
144
|
+
'frequency.hostCustom': '自定义',
|
|
145
|
+
'frequency.weekday.join': '、',
|
|
146
|
+
'frequency.weekday.1': '一',
|
|
147
|
+
'frequency.weekday.2': '二',
|
|
148
|
+
'frequency.weekday.3': '三',
|
|
149
|
+
'frequency.weekday.4': '四',
|
|
150
|
+
'frequency.weekday.5': '五',
|
|
151
|
+
'frequency.weekday.6': '六',
|
|
152
|
+
'frequency.weekday.7': '日',
|
|
153
|
+
'unit.day.one': '天',
|
|
154
|
+
'unit.day.other': '天',
|
|
155
|
+
'unit.hour.one': '小时',
|
|
156
|
+
'unit.hour.other': '小时',
|
|
157
|
+
'unit.minute.one': '分钟',
|
|
158
|
+
'unit.minute.other': '分钟',
|
|
159
|
+
'unit.second.one': '秒',
|
|
160
|
+
'unit.second.other': '秒',
|
|
161
|
+
},
|
|
162
|
+
en: {
|
|
163
|
+
'tabs.residue': 'Residue',
|
|
164
|
+
'selection.summary': '{n} selected · {size}',
|
|
165
|
+
'selection.summaryCount': '{n} selected',
|
|
166
|
+
'search.placeholder': 'Search {section}',
|
|
167
|
+
'confirm.purge.description': 'This cannot be undone',
|
|
168
|
+
'archive.scheduleDeletion': 'Active scheduled tasks targeting this session and their saved run history will be deleted.',
|
|
169
|
+
'error.notArchived': 'Only archived sessions can be deleted.',
|
|
170
|
+
'error.workspaceProtected': 'Protected workspace.',
|
|
171
|
+
'protection.label': 'protected',
|
|
172
|
+
'reference.schedule': 'Linked to a scheduled task.',
|
|
173
|
+
'residue.orphanTask': 'The linked session is unavailable.',
|
|
174
|
+
'residue.registeredCache': 'A workspace also retains a registration for this session ID.',
|
|
175
|
+
'residue.orphanCache': 'orphan cache',
|
|
176
|
+
'residue.ghostRegistry': 'ghost registration',
|
|
177
|
+
'residue.sessionDirectory': 'shell dir',
|
|
178
|
+
'residue.emptyProject': 'empty project dir',
|
|
179
|
+
'residue.memoryResident': 'deleted session still in memory, clears on restart',
|
|
180
|
+
'confirm.tasks.description': 'Selected tasks and their saved run history will be deleted',
|
|
181
|
+
'error.schedule_changed': 'Task changed; refresh and try again',
|
|
182
|
+
'error.session_resident': 'Still loaded in this DSH, restart to delete',
|
|
183
|
+
'error.purge_busy': 'Session cleanup is in progress; try again later',
|
|
184
|
+
'error.cleanup_partial': 'Cleanup was interrupted',
|
|
185
|
+
'error.workspace_unavailable': 'Cannot check workspace registrations',
|
|
186
|
+
'error.workspace_filtered': 'Workspace has other hidden registrations; cannot remove this one separately',
|
|
187
|
+
'error.unsupported_storage': 'Cannot identify the session log location',
|
|
188
|
+
'error.historical_format': 'Migrate the session log before deleting',
|
|
189
|
+
'error.historical_parent': 'Open the parent session to complete migration first',
|
|
190
|
+
'error.unsafe_path': 'Cannot verify the file path',
|
|
191
|
+
'error.unknown_artifact': 'Session directory contains unrecognized files',
|
|
192
|
+
'error.session_changed': 'Session state changed; try again',
|
|
193
|
+
'error.cache_unavailable': 'Projection cache service is unavailable',
|
|
194
|
+
'error.residue_changed': 'Residue changed; refresh and try again',
|
|
195
|
+
'error.internal': 'Internal error. Try again.',
|
|
196
|
+
'error.bad_request': 'Invalid request.',
|
|
197
|
+
'tabs.archived': 'Archived',
|
|
198
|
+
'notice.archived': 'Archived',
|
|
199
|
+
'error.sessionNotFound': 'Session unavailable',
|
|
200
|
+
'error.referenceCheck': 'Could not load tasks.',
|
|
201
|
+
'error.residue_unavailable': 'Could not complete the action. Try again.',
|
|
202
|
+
'error.purge_failed': 'Could not complete the action. Try again.',
|
|
203
|
+
'error.residue_failed': 'Could not complete the action. Try again.',
|
|
204
|
+
'empty.residue': 'No results',
|
|
205
|
+
'notice.purgeFailed': 'Delete failed: {reasons}',
|
|
206
|
+
'notice.restoreFailed': 'Unarchive failed: {reasons}',
|
|
207
|
+
'notice.archiveFailed': 'Archive failed: {reasons}',
|
|
208
|
+
'notice.cleanFailed': 'Cleanup failed: {reasons}',
|
|
209
|
+
'notice.listSeparator': '; ',
|
|
210
|
+
'selection.selectAll': 'Select all',
|
|
211
|
+
'selection.deselectAll': 'Deselect all',
|
|
212
|
+
'confirm.purge.title': 'Delete {provider}?',
|
|
213
|
+
'confirm.residue.title': 'Delete {provider}?',
|
|
214
|
+
'hover.more': '{count} more',
|
|
215
|
+
'host.updateRequired': 'Restart DSH to apply the change.',
|
|
216
|
+
'row.archived': 'Archived',
|
|
217
|
+
'toast.archived': 'Session archived. You can ',
|
|
218
|
+
'toast.stoppedAndArchived': 'Session stopped and archived. You can ',
|
|
219
|
+
'toast.archivedUndo': 'undo',
|
|
220
|
+
'toast.archivedOr': ' or ',
|
|
221
|
+
'session.new': 'New Session',
|
|
222
|
+
'group.ungrouped': 'Ungrouped',
|
|
223
|
+
'actions.archive': 'Archive',
|
|
224
|
+
'actions.unarchive': 'Unarchive',
|
|
225
|
+
'section.sessions': 'Sessions',
|
|
226
|
+
'empty.noMatches': 'No matches',
|
|
227
|
+
'empty.none': 'No sessions yet',
|
|
228
|
+
'empty.noneArchived': 'No archived sessions yet',
|
|
229
|
+
'archive.confirm.title': 'Stop and archive this session?',
|
|
230
|
+
'archive.confirm.desc': '“{title}” still has work in progress. Archiving stops it first; you can restore the session later from the “All conversations (show archived)” filter in the sidebar, and the stopped work will not resume on its own.',
|
|
231
|
+
'archive.confirm.pending': 'Stopping and archiving…',
|
|
232
|
+
'archive.confirm.action': 'Stop and archive',
|
|
233
|
+
'archive.confirm.activity': 'Work that will be stopped',
|
|
234
|
+
'archive.confirm.turn': 'The turn in progress',
|
|
235
|
+
'archive.confirm.subagents.one': '{n} running subagent: {names}',
|
|
236
|
+
'archive.confirm.subagents.other': '{n} running subagents: {names}',
|
|
237
|
+
'archive.confirm.jobs.one': '{n} background job: {names}',
|
|
238
|
+
'archive.confirm.jobs.other': '{n} background jobs: {names}',
|
|
239
|
+
'archive.confirm.schedules.one': '{n} scheduled reminder: {names}',
|
|
240
|
+
'archive.confirm.schedules.other': '{n} scheduled reminders: {names}',
|
|
241
|
+
'archive.confirm.other.one': '{n} other item of work ({kind})',
|
|
242
|
+
'archive.confirm.other.other': '{n} other items of work ({kind})',
|
|
243
|
+
'archive.confirm.listSeparator': ', ',
|
|
244
|
+
'time.now': 'now',
|
|
245
|
+
'time.minutes': '{n}min',
|
|
246
|
+
'time.hours': '{n}h',
|
|
247
|
+
'time.days': '{n}d',
|
|
248
|
+
'time.months': '{n}mo',
|
|
249
|
+
'time.years': '{n}y',
|
|
250
|
+
'time.ago': '{t} ago',
|
|
251
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
252
|
+
'hover.created': 'Created {time}',
|
|
253
|
+
'hover.copied': 'Copied',
|
|
254
|
+
'status.running': 'Running',
|
|
255
|
+
'status.idle': 'Idle',
|
|
256
|
+
'detail.close': 'Close details',
|
|
257
|
+
'detail.label': 'Task details',
|
|
258
|
+
'detail.name': 'Automation task name',
|
|
259
|
+
'detail.instruction': 'Automation task instruction',
|
|
260
|
+
'detail.missing': 'Task unavailable. It may have been deleted.',
|
|
261
|
+
'detail.nextRun': 'Next run',
|
|
262
|
+
'statusFilter.label': 'Task status',
|
|
263
|
+
'rule.repeat': 'Repeat',
|
|
264
|
+
'host.target': 'Run in',
|
|
265
|
+
'host.currentConversation': 'Current linked session',
|
|
266
|
+
'host.targetNewOnce': 'Create a session and reuse it',
|
|
267
|
+
'host.targetNew': 'New session for every run',
|
|
268
|
+
'delete.confirm': 'Confirm deletion',
|
|
269
|
+
'clear.confirm': 'Clear tasks',
|
|
270
|
+
'error.schedule_delete_failed': 'Could not delete the task.',
|
|
271
|
+
'list.error': 'Could not load tasks.',
|
|
272
|
+
'status.active': 'Enabled',
|
|
273
|
+
'status.paused': 'Paused',
|
|
274
|
+
'status.ended': 'Ended',
|
|
275
|
+
'frequency.once': 'Once',
|
|
276
|
+
'frequency.every': 'Every {value} {unit}',
|
|
277
|
+
'frequency.daily': 'Daily at {time} ({timeZone})',
|
|
278
|
+
'frequency.weekly': 'Weekly on {weekdays} at {time} ({timeZone})',
|
|
279
|
+
'frequency.hostCustom': 'Custom',
|
|
280
|
+
'frequency.weekday.join': ', ',
|
|
281
|
+
'frequency.weekday.1': 'Mon',
|
|
282
|
+
'frequency.weekday.2': 'Tue',
|
|
283
|
+
'frequency.weekday.3': 'Wed',
|
|
284
|
+
'frequency.weekday.4': 'Thu',
|
|
285
|
+
'frequency.weekday.5': 'Fri',
|
|
286
|
+
'frequency.weekday.6': 'Sat',
|
|
287
|
+
'frequency.weekday.7': 'Sun',
|
|
288
|
+
'unit.day.one': 'day',
|
|
289
|
+
'unit.day.other': 'days',
|
|
290
|
+
'unit.hour.one': 'hour',
|
|
291
|
+
'unit.hour.other': 'hours',
|
|
292
|
+
'unit.minute.one': 'minute',
|
|
293
|
+
'unit.minute.other': 'minutes',
|
|
294
|
+
'unit.second.one': 'second',
|
|
295
|
+
'unit.second.other': 'seconds',
|
|
296
|
+
},
|
|
297
|
+
ja: {
|
|
298
|
+
'tabs.residue': '残余',
|
|
299
|
+
'selection.summary': '{n} 件選択 · {size}',
|
|
300
|
+
'selection.summaryCount': '{n} 件選択',
|
|
301
|
+
'search.placeholder': '{section}を検索',
|
|
302
|
+
'confirm.purge.description': 'この操作は取り消せません',
|
|
303
|
+
'archive.scheduleDeletion': 'このセッション宛ての有効な自動化タスクと保存された実行履歴が削除されます。',
|
|
304
|
+
'error.notArchived': 'アーカイブ済みのセッションのみ削除できます。',
|
|
305
|
+
'error.workspaceProtected': '保護されたワークスペースです。',
|
|
306
|
+
'protection.label': '保護',
|
|
307
|
+
'reference.schedule': '予定タスクに関連しています。',
|
|
308
|
+
'residue.orphanTask': 'リンクされたセッションは利用できません。',
|
|
309
|
+
'residue.registeredCache': 'このセッション ID にはワークスペースの登録も残っています。',
|
|
310
|
+
'residue.orphanCache': '孤児キャッシュ',
|
|
311
|
+
'residue.ghostRegistry': '幽霊登録',
|
|
312
|
+
'residue.sessionDirectory': '殻ディレクトリ',
|
|
313
|
+
'residue.emptyProject': '空プロジェクト',
|
|
314
|
+
'residue.memoryResident': '削除済みセッションがメモリに残存、再起動で消滅',
|
|
315
|
+
'confirm.tasks.description': '選択したタスクと保存された実行履歴が削除されます',
|
|
316
|
+
'error.schedule_changed': 'タスクが変更されました。更新して再試行してください',
|
|
317
|
+
'error.session_resident': 'この DSH に読み込まれたままです。再起動後に削除できます',
|
|
318
|
+
'error.purge_busy': 'セッションのクリーンアップ中です。後でもう一度お試しください',
|
|
319
|
+
'error.cleanup_partial': 'クリーンアップが中断されました',
|
|
320
|
+
'error.workspace_unavailable': 'ワークスペース登録を確認できません',
|
|
321
|
+
'error.workspace_filtered': '他の非表示の登録があるため個別に削除できません',
|
|
322
|
+
'error.unsupported_storage': 'セッションログの場所を確認できません',
|
|
323
|
+
'error.historical_format': '削除する前にセッションログの移行が必要です',
|
|
324
|
+
'error.historical_parent': '先に親セッションを開いて移行を完了してください',
|
|
325
|
+
'error.unsafe_path': 'ファイルパスを確認できません',
|
|
326
|
+
'error.unknown_artifact': 'セッションディレクトリに不明なファイルがあります',
|
|
327
|
+
'error.session_changed': 'セッションの状態が変わりました。再試行してください',
|
|
328
|
+
'error.cache_unavailable': '投影キャッシュサービスを利用できません',
|
|
329
|
+
'error.residue_changed': '残余が変更されました。更新して再試行してください',
|
|
330
|
+
'error.internal': '内部エラーが発生しました。再試行してください。',
|
|
331
|
+
'error.bad_request': '無効なリクエストです。',
|
|
332
|
+
'tabs.archived': 'アーカイブ済み',
|
|
333
|
+
'notice.archived': 'アーカイブ済み',
|
|
334
|
+
'error.sessionNotFound': 'セッションを利用できません',
|
|
335
|
+
'error.referenceCheck': 'タスクを読み込めませんでした。',
|
|
336
|
+
'error.residue_unavailable': '操作に失敗しました。再試行してください。',
|
|
337
|
+
'error.purge_failed': '操作に失敗しました。再試行してください。',
|
|
338
|
+
'error.residue_failed': '操作に失敗しました。再試行してください。',
|
|
339
|
+
'empty.residue': '結果なし',
|
|
340
|
+
'notice.purgeFailed': '削除に失敗しました:{reasons}',
|
|
341
|
+
'notice.restoreFailed': 'アーカイブ解除に失敗しました:{reasons}',
|
|
342
|
+
'notice.archiveFailed': 'アーカイブに失敗しました:{reasons}',
|
|
343
|
+
'notice.cleanFailed': 'クリーンアップに失敗しました:{reasons}',
|
|
344
|
+
'notice.listSeparator': '。',
|
|
345
|
+
'selection.selectAll': 'すべて選択',
|
|
346
|
+
'selection.deselectAll': 'すべて解除',
|
|
347
|
+
'confirm.purge.title': '{provider}を削除しますか?',
|
|
348
|
+
'confirm.residue.title': '{provider}を削除しますか?',
|
|
349
|
+
'hover.more': '他 {count} 件',
|
|
350
|
+
'host.updateRequired': '変更を適用するには DSH を再起動してください。',
|
|
351
|
+
'row.archived': 'アーカイブ済み',
|
|
352
|
+
'toast.archived': 'セッションをアーカイブしました。',
|
|
353
|
+
'toast.stoppedAndArchived': 'セッションを停止してアーカイブしました。',
|
|
354
|
+
'toast.archivedUndo': '元に戻す',
|
|
355
|
+
'toast.archivedOr': ' または ',
|
|
356
|
+
'session.new': '新しいセッション',
|
|
357
|
+
'group.ungrouped': 'グループなし',
|
|
358
|
+
'actions.archive': 'アーカイブ',
|
|
359
|
+
'actions.unarchive': 'アーカイブを解除',
|
|
360
|
+
'section.sessions': 'セッション',
|
|
361
|
+
'empty.noMatches': '一致なし',
|
|
362
|
+
'empty.none': 'セッションはまだありません',
|
|
363
|
+
'empty.noneArchived': 'アーカイブされたセッションはまだありません',
|
|
364
|
+
'archive.confirm.title': 'このセッションを停止してアーカイブしますか?',
|
|
365
|
+
'archive.confirm.desc': '「{title}」には進行中の作業があります。アーカイブするとまず停止されます。セッションは後からサイドバーの「すべての会話(アーカイブを表示)」フィルターで復元できますが、停止された作業は自動的に再開されません。',
|
|
366
|
+
'archive.confirm.pending': '停止してアーカイブ中…',
|
|
367
|
+
'archive.confirm.action': '停止してアーカイブ',
|
|
368
|
+
'archive.confirm.activity': '停止される作業',
|
|
369
|
+
'archive.confirm.turn': '進行中のターン',
|
|
370
|
+
'archive.confirm.subagents.one': '実行中のサブエージェント {n} 件: {names}',
|
|
371
|
+
'archive.confirm.subagents.other': '実行中のサブエージェント {n} 件: {names}',
|
|
372
|
+
'archive.confirm.jobs.one': 'バックグラウンドジョブ {n} 件: {names}',
|
|
373
|
+
'archive.confirm.jobs.other': 'バックグラウンドジョブ {n} 件: {names}',
|
|
374
|
+
'archive.confirm.schedules.one': 'スケジュールされたリマインダー {n} 件: {names}',
|
|
375
|
+
'archive.confirm.schedules.other': 'スケジュールされたリマインダー {n} 件: {names}',
|
|
376
|
+
'archive.confirm.other.one': 'その他の作業 {n} 件({kind})',
|
|
377
|
+
'archive.confirm.other.other': 'その他の作業 {n} 件({kind})',
|
|
378
|
+
'archive.confirm.listSeparator': '、',
|
|
379
|
+
'time.now': '今',
|
|
380
|
+
'time.minutes': '{n}分',
|
|
381
|
+
'time.hours': '{n}時間',
|
|
382
|
+
'time.days': '{n}日',
|
|
383
|
+
'time.months': '{n}か月',
|
|
384
|
+
'time.years': '{n}年',
|
|
385
|
+
'time.ago': '{t}前',
|
|
386
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
387
|
+
'hover.created': '作成日時 {time}',
|
|
388
|
+
'hover.copied': 'コピーしました',
|
|
389
|
+
'status.running': '実行中',
|
|
390
|
+
'status.idle': '待機中',
|
|
391
|
+
'detail.close': '詳細を閉じる',
|
|
392
|
+
'detail.label': 'タスクの詳細',
|
|
393
|
+
'detail.name': '自動化タスク名',
|
|
394
|
+
'detail.instruction': '自動化タスクの指示',
|
|
395
|
+
'detail.missing': 'タスクを利用できません。削除された可能性があります。',
|
|
396
|
+
'detail.nextRun': '次回実行',
|
|
397
|
+
'statusFilter.label': 'タスクの状態',
|
|
398
|
+
'rule.repeat': '繰り返し',
|
|
399
|
+
'host.target': '実行先',
|
|
400
|
+
'host.currentConversation': '現在リンクされている会話',
|
|
401
|
+
'host.targetNewOnce': '会話を作成して再利用',
|
|
402
|
+
'host.targetNew': '実行ごとに新しい会話',
|
|
403
|
+
'delete.confirm': '削除を確定',
|
|
404
|
+
'clear.confirm': 'クリアする',
|
|
405
|
+
'error.schedule_delete_failed': 'タスクを削除できませんでした。',
|
|
406
|
+
'list.error': 'タスクを読み込めませんでした。',
|
|
407
|
+
'status.active': '有効',
|
|
408
|
+
'status.paused': '一時停止中',
|
|
409
|
+
'status.ended': '終了',
|
|
410
|
+
'frequency.once': '1回のみ',
|
|
411
|
+
'frequency.every': '{value}{unit}ごと',
|
|
412
|
+
'frequency.daily': '毎日 {time} ({timeZone})',
|
|
413
|
+
'frequency.weekly': '毎週 {weekdays} の {time} ({timeZone})',
|
|
414
|
+
'frequency.hostCustom': 'カスタム',
|
|
415
|
+
'frequency.weekday.join': '、',
|
|
416
|
+
'frequency.weekday.1': '月',
|
|
417
|
+
'frequency.weekday.2': '火',
|
|
418
|
+
'frequency.weekday.3': '水',
|
|
419
|
+
'frequency.weekday.4': '木',
|
|
420
|
+
'frequency.weekday.5': '金',
|
|
421
|
+
'frequency.weekday.6': '土',
|
|
422
|
+
'frequency.weekday.7': '日',
|
|
423
|
+
'unit.day.one': '日',
|
|
424
|
+
'unit.day.other': '日',
|
|
425
|
+
'unit.hour.one': '時間',
|
|
426
|
+
'unit.hour.other': '時間',
|
|
427
|
+
'unit.minute.one': '分',
|
|
428
|
+
'unit.minute.other': '分',
|
|
429
|
+
'unit.second.one': '秒',
|
|
430
|
+
'unit.second.other': '秒',
|
|
431
|
+
},
|
|
432
|
+
es: {
|
|
433
|
+
'tabs.residue': 'Residuos',
|
|
434
|
+
'selection.summary': '{n} seleccionadas · {size}',
|
|
435
|
+
'selection.summaryCount': '{n} seleccionadas',
|
|
436
|
+
'search.placeholder': 'Buscar {section}',
|
|
437
|
+
'confirm.purge.description': 'Esta acción no se puede deshacer',
|
|
438
|
+
'archive.scheduleDeletion': 'Se eliminarán las tareas automáticas activas dirigidas a esta sesión y su historial de ejecución guardado.',
|
|
439
|
+
'error.notArchived': 'Solo se pueden eliminar sesiones archivadas.',
|
|
440
|
+
'error.workspaceProtected': 'Espacio de trabajo protegido.',
|
|
441
|
+
'protection.label': 'protegida',
|
|
442
|
+
'reference.schedule': 'Vinculada a una tarea programada.',
|
|
443
|
+
'residue.orphanTask': 'La sesión vinculada no está disponible.',
|
|
444
|
+
'residue.registeredCache': 'También existe un registro de espacio de trabajo para esta sesión.',
|
|
445
|
+
'residue.orphanCache': 'caché huérfana',
|
|
446
|
+
'residue.ghostRegistry': 'registro fantasma',
|
|
447
|
+
'residue.sessionDirectory': 'directorio casca',
|
|
448
|
+
'residue.emptyProject': 'directorio de proyecto vacío',
|
|
449
|
+
'residue.memoryResident': 'sesión eliminada aún en memoria, desaparece al reiniciar',
|
|
450
|
+
'confirm.tasks.description': 'Se eliminarán las tareas seleccionadas y su historial guardado',
|
|
451
|
+
'error.schedule_changed': 'La tarea cambió; actualiza e inténtalo de nuevo',
|
|
452
|
+
'error.session_resident': 'Sigue cargada en este DSH, reinicia para eliminarla',
|
|
453
|
+
'error.purge_busy': 'Se está limpiando la sesión; inténtalo más tarde',
|
|
454
|
+
'error.cleanup_partial': 'Se interrumpió la limpieza',
|
|
455
|
+
'error.workspace_unavailable': 'No se pueden comprobar los registros del espacio de trabajo',
|
|
456
|
+
'error.workspace_filtered': 'Otros registros ocultos impiden eliminar este por separado',
|
|
457
|
+
'error.unsupported_storage': 'No se puede identificar la ubicación del registro',
|
|
458
|
+
'error.historical_format': 'Migra el registro de la sesión antes de eliminarlo',
|
|
459
|
+
'error.historical_parent': 'Abre primero la sesión principal para completar la migración',
|
|
460
|
+
'error.unsafe_path': 'No se puede verificar la ruta del archivo',
|
|
461
|
+
'error.unknown_artifact': 'El directorio de sesión contiene archivos desconocidos',
|
|
462
|
+
'error.session_changed': 'El estado de la sesión cambió; inténtalo de nuevo',
|
|
463
|
+
'error.cache_unavailable': 'El servicio de caché de proyección no está disponible',
|
|
464
|
+
'error.residue_changed': 'El residuo cambió; actualiza e inténtalo de nuevo',
|
|
465
|
+
'error.internal': 'Error interno. Inténtalo de nuevo.',
|
|
466
|
+
'error.bad_request': 'Solicitud no válida.',
|
|
467
|
+
'tabs.archived': 'Archivado',
|
|
468
|
+
'notice.archived': 'Archivado',
|
|
469
|
+
'error.sessionNotFound': 'Sesión no disponible',
|
|
470
|
+
'error.referenceCheck': 'No se pudieron cargar las tareas.',
|
|
471
|
+
'error.residue_unavailable': 'No se pudo completar la acción. Inténtelo de nuevo.',
|
|
472
|
+
'error.purge_failed': 'No se pudo completar la acción. Inténtelo de nuevo.',
|
|
473
|
+
'error.residue_failed': 'No se pudo completar la acción. Inténtelo de nuevo.',
|
|
474
|
+
'empty.residue': 'Sin resultados',
|
|
475
|
+
'notice.purgeFailed': 'Error al eliminar: {reasons}',
|
|
476
|
+
'notice.restoreFailed': 'Error al desarchivar: {reasons}',
|
|
477
|
+
'notice.archiveFailed': 'Error al archivar: {reasons}',
|
|
478
|
+
'notice.cleanFailed': 'Error al limpiar: {reasons}',
|
|
479
|
+
'notice.listSeparator': '; ',
|
|
480
|
+
'selection.selectAll': 'Seleccionar todo',
|
|
481
|
+
'selection.deselectAll': 'Deseleccionar todo',
|
|
482
|
+
'confirm.purge.title': '¿Eliminar {provider}?',
|
|
483
|
+
'confirm.residue.title': '¿Eliminar {provider}?',
|
|
484
|
+
'hover.more': '{count} más',
|
|
485
|
+
'host.updateRequired': 'Reinicia DSH para aplicar el cambio.',
|
|
486
|
+
'row.archived': 'Archivado',
|
|
487
|
+
'toast.archived': 'Sesión archivada. tu puedes ',
|
|
488
|
+
'toast.stoppedAndArchived': 'Sesión detenida y archivada. tu puedes ',
|
|
489
|
+
'toast.archivedUndo': 'deshacer',
|
|
490
|
+
'toast.archivedOr': ' o ',
|
|
491
|
+
'session.new': 'Nueva sesión',
|
|
492
|
+
'group.ungrouped': 'Desagrupados',
|
|
493
|
+
'actions.archive': 'Archivo',
|
|
494
|
+
'actions.unarchive': 'Desarchivar',
|
|
495
|
+
'section.sessions': 'Sesiones',
|
|
496
|
+
'empty.noMatches': 'No hay coincidencias',
|
|
497
|
+
'empty.none': 'Aún no hay sesiones',
|
|
498
|
+
'empty.noneArchived': 'Aún no hay sesiones archivadas',
|
|
499
|
+
'archive.confirm.title': '¿Detener y archivar esta sesión?',
|
|
500
|
+
'archive.confirm.desc': '“{title}” todavía tiene trabajo en progreso. Archivarlo lo detiene primero; puedes restaurar la sesión más tarde desde el filtro “Todas las conversaciones (mostrar archivadas)” en la barra lateral, y el trabajo detenido no se reanudará por sí solo.',
|
|
501
|
+
'archive.confirm.pending': 'Deteniendo y archivando…',
|
|
502
|
+
'archive.confirm.action': 'Detener y archivar',
|
|
503
|
+
'archive.confirm.activity': 'Trabajo que será detenido',
|
|
504
|
+
'archive.confirm.turn': 'El turno en curso',
|
|
505
|
+
'archive.confirm.subagents.one': '{n} ejecutando subagente: {names}',
|
|
506
|
+
'archive.confirm.subagents.other': '{n} ejecutando subagentes: {names}',
|
|
507
|
+
'archive.confirm.jobs.one': 'Trabajo en segundo plano {n}: {names}',
|
|
508
|
+
'archive.confirm.jobs.other': 'Trabajos en segundo plano {n}: {names}',
|
|
509
|
+
'archive.confirm.schedules.one': 'Recordatorio programado {n}: {names}',
|
|
510
|
+
'archive.confirm.schedules.other': '{n} recordatorios programados: {names}',
|
|
511
|
+
'archive.confirm.other.one': '{n} otro elemento de trabajo ({kind})',
|
|
512
|
+
'archive.confirm.other.other': '{n} otros elementos de trabajo ({kind})',
|
|
513
|
+
'archive.confirm.listSeparator': ', ',
|
|
514
|
+
'time.now': 'ahora',
|
|
515
|
+
'time.minutes': '{n}min',
|
|
516
|
+
'time.hours': '{n}h',
|
|
517
|
+
'time.days': '{n}d',
|
|
518
|
+
'time.months': '{n}mo',
|
|
519
|
+
'time.years': '{n}y',
|
|
520
|
+
'time.ago': 'Hace {t}',
|
|
521
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
522
|
+
'hover.created': 'Creado {time}',
|
|
523
|
+
'hover.copied': 'Copiado',
|
|
524
|
+
'status.running': 'corriendo',
|
|
525
|
+
'status.idle': 'inactivo',
|
|
526
|
+
'detail.close': 'Cerrar detalles',
|
|
527
|
+
'detail.label': 'Detalles de la tarea',
|
|
528
|
+
'detail.name': 'Nombre de la tarea de automatización',
|
|
529
|
+
'detail.instruction': 'Instrucción de tarea de automatización',
|
|
530
|
+
'detail.missing': 'Tarea no disponible. Es posible que haya sido eliminado.',
|
|
531
|
+
'detail.nextRun': 'Próxima ejecución',
|
|
532
|
+
'statusFilter.label': 'Estado de la tarea',
|
|
533
|
+
'rule.repeat': 'repetir',
|
|
534
|
+
'host.target': 'Ejecutar en',
|
|
535
|
+
'host.currentConversation': 'Conversación vinculada actual',
|
|
536
|
+
'host.targetNewOnce': 'Crear una conversación y reutilizarla',
|
|
537
|
+
'host.targetNew': 'Nueva conversación en cada ejecución',
|
|
538
|
+
'delete.confirm': 'Confirmar eliminación',
|
|
539
|
+
'clear.confirm': 'Borrar tareas',
|
|
540
|
+
'error.schedule_delete_failed': 'No se pudo eliminar la tarea.',
|
|
541
|
+
'list.error': 'No se pudieron cargar las tareas.',
|
|
542
|
+
'status.active': 'Habilitado',
|
|
543
|
+
'status.paused': 'Pausada',
|
|
544
|
+
'status.ended': 'Finalizada',
|
|
545
|
+
'frequency.once': 'una vez',
|
|
546
|
+
'frequency.every': 'Cada {value} {unit}',
|
|
547
|
+
'frequency.daily': 'Diariamente en {time} ({timeZone})',
|
|
548
|
+
'frequency.weekly': 'Semanalmente en {weekdays} en {time} ({timeZone})',
|
|
549
|
+
'frequency.hostCustom': 'Personalizado',
|
|
550
|
+
'frequency.weekday.join': ', ',
|
|
551
|
+
'frequency.weekday.1': 'lun',
|
|
552
|
+
'frequency.weekday.2': 'mar',
|
|
553
|
+
'frequency.weekday.3': 'mié',
|
|
554
|
+
'frequency.weekday.4': 'jueves',
|
|
555
|
+
'frequency.weekday.5': 'viernes',
|
|
556
|
+
'frequency.weekday.6': 'sábado',
|
|
557
|
+
'frequency.weekday.7': 'sol',
|
|
558
|
+
'unit.day.one': 'dia',
|
|
559
|
+
'unit.day.other': 'dias',
|
|
560
|
+
'unit.hour.one': 'hora',
|
|
561
|
+
'unit.hour.other': 'horas',
|
|
562
|
+
'unit.minute.one': 'minuto',
|
|
563
|
+
'unit.minute.other': 'minutos',
|
|
564
|
+
'unit.second.one': 'segundo',
|
|
565
|
+
'unit.second.other': 'segundos',
|
|
566
|
+
},
|
|
567
|
+
fr: {
|
|
568
|
+
'tabs.residue': 'Résidus',
|
|
569
|
+
'selection.summary': '{n} sélectionnées · {size}',
|
|
570
|
+
'selection.summaryCount': '{n} sélectionnées',
|
|
571
|
+
'search.placeholder': 'Rechercher {section}',
|
|
572
|
+
'confirm.purge.description': 'Cette action est irréversible',
|
|
573
|
+
'archive.scheduleDeletion': 'Les tâches automatiques actives destinées à cette session et leur historique enregistré seront supprimés.',
|
|
574
|
+
'error.notArchived': 'Seules les sessions archivées peuvent être supprimées.',
|
|
575
|
+
'error.workspaceProtected': 'Espace de travail protégé.',
|
|
576
|
+
'protection.label': 'protégée',
|
|
577
|
+
'reference.schedule': 'Liée à une tâche planifiée.',
|
|
578
|
+
'residue.orphanTask': 'La session liée n\'est pas disponible.',
|
|
579
|
+
'residue.registeredCache': 'Une entrée d’espace de travail existe aussi pour cette session.',
|
|
580
|
+
'residue.orphanCache': 'cache orpheline',
|
|
581
|
+
'residue.ghostRegistry': 'entrée fantôme',
|
|
582
|
+
'residue.sessionDirectory': 'répertoire coquille',
|
|
583
|
+
'residue.emptyProject': 'répertoire de projet vide',
|
|
584
|
+
'residue.memoryResident': 'session supprimée encore en mémoire, disparaît au redémarrage',
|
|
585
|
+
'confirm.tasks.description': 'Les tâches sélectionnées et leur historique enregistré seront supprimés',
|
|
586
|
+
'error.schedule_changed': 'La tâche a changé ; actualisez et réessayez',
|
|
587
|
+
'error.session_resident': 'Toujours chargée dans ce DSH, redémarrez pour la supprimer',
|
|
588
|
+
'error.purge_busy': 'Nettoyage de la session en cours ; réessayez plus tard',
|
|
589
|
+
'error.cleanup_partial': 'Le nettoyage a été interrompu',
|
|
590
|
+
'error.workspace_unavailable': 'Impossible de vérifier les inscriptions de l’espace de travail',
|
|
591
|
+
'error.workspace_filtered': 'D’autres inscriptions masquées empêchent la suppression individuelle',
|
|
592
|
+
'error.unsupported_storage': 'Impossible de localiser le journal de session',
|
|
593
|
+
'error.historical_format': 'Migrez le journal avant de le supprimer',
|
|
594
|
+
'error.historical_parent': 'Ouvrez d’abord la session parente pour terminer la migration',
|
|
595
|
+
'error.unsafe_path': 'Impossible de vérifier le chemin du fichier',
|
|
596
|
+
'error.unknown_artifact': 'Le dossier de session contient des fichiers inconnus',
|
|
597
|
+
'error.session_changed': 'La session a changé ; réessayez',
|
|
598
|
+
'error.cache_unavailable': 'Le service de cache de projection est indisponible',
|
|
599
|
+
'error.residue_changed': 'Le résidu a changé ; actualisez et réessayez',
|
|
600
|
+
'error.internal': 'Erreur interne. Réessayez.',
|
|
601
|
+
'error.bad_request': 'Requête non valide.',
|
|
602
|
+
'tabs.archived': 'Archivé',
|
|
603
|
+
'notice.archived': 'Archivé',
|
|
604
|
+
'error.sessionNotFound': 'Séance indisponible',
|
|
605
|
+
'error.referenceCheck': 'Impossible de charger les tâches.',
|
|
606
|
+
'error.residue_unavailable': 'Impossible de terminer l’action. Réessayez.',
|
|
607
|
+
'error.purge_failed': 'Impossible de terminer l’action. Réessayez.',
|
|
608
|
+
'error.residue_failed': 'Impossible de terminer l’action. Réessayez.',
|
|
609
|
+
'empty.residue': 'Aucun résultat',
|
|
610
|
+
'notice.purgeFailed': 'Échec de la suppression : {reasons}',
|
|
611
|
+
'notice.restoreFailed': 'Échec de la restauration : {reasons}',
|
|
612
|
+
'notice.archiveFailed': 'Échec de l’archivage : {reasons}',
|
|
613
|
+
'notice.cleanFailed': 'Échec du nettoyage : {reasons}',
|
|
614
|
+
'notice.listSeparator': ' ; ',
|
|
615
|
+
'selection.selectAll': 'Tout sélectionner',
|
|
616
|
+
'selection.deselectAll': 'Tout désélectionner',
|
|
617
|
+
'confirm.purge.title': 'Supprimer {provider} ?',
|
|
618
|
+
'confirm.residue.title': 'Supprimer {provider} ?',
|
|
619
|
+
'hover.more': '{count} de plus',
|
|
620
|
+
'host.updateRequired': 'Redémarrez DSH pour appliquer le changement.',
|
|
621
|
+
'row.archived': 'Archivé',
|
|
622
|
+
'toast.archived': 'Séance archivée. Vous pouvez ',
|
|
623
|
+
'toast.stoppedAndArchived': 'Session arrêtée et archivée. Vous pouvez ',
|
|
624
|
+
'toast.archivedUndo': 'annuler',
|
|
625
|
+
'toast.archivedOr': ' ou ',
|
|
626
|
+
'session.new': 'Nouvelle séance',
|
|
627
|
+
'group.ungrouped': 'Non groupé',
|
|
628
|
+
'actions.archive': 'Archiver',
|
|
629
|
+
'actions.unarchive': 'Désarchiver',
|
|
630
|
+
'section.sessions': 'Séances',
|
|
631
|
+
'empty.noMatches': 'Aucune correspondance',
|
|
632
|
+
'empty.none': 'Aucune séance pour l\'instant',
|
|
633
|
+
'empty.noneArchived': 'Aucune session archivée pour l\'instant',
|
|
634
|
+
'archive.confirm.title': 'Arrêter et archiver cette session ?',
|
|
635
|
+
'archive.confirm.desc': '« {title} » a encore des travaux en cours. L\'archivage l\'arrête en premier ; vous pouvez restaurer la session plus tard à partir du filtre « Toutes les conversations (afficher les archives) » dans la barre latérale, et le travail arrêté ne reprendra pas de lui-même.',
|
|
636
|
+
'archive.confirm.pending': 'Arrêt et archivage…',
|
|
637
|
+
'archive.confirm.action': 'Arrêter et archiver',
|
|
638
|
+
'archive.confirm.activity': 'Travaux qui seront arrêtés',
|
|
639
|
+
'archive.confirm.turn': 'Le tour en cours',
|
|
640
|
+
'archive.confirm.subagents.one': 'Sous-agent en cours d\'exécution {n} : {names}',
|
|
641
|
+
'archive.confirm.subagents.other': '{n} exécutant des sous-agents : {names}',
|
|
642
|
+
'archive.confirm.jobs.one': 'Travail en arrière-plan {n} : {names}',
|
|
643
|
+
'archive.confirm.jobs.other': 'Travaux en arrière-plan {n} : {names}',
|
|
644
|
+
'archive.confirm.schedules.one': 'Rappel programmé {n} : {names}',
|
|
645
|
+
'archive.confirm.schedules.other': 'Rappels programmés {n} : {names}',
|
|
646
|
+
'archive.confirm.other.one': '{n} autre élément de travail ({kind})',
|
|
647
|
+
'archive.confirm.other.other': '{n} autres éléments de travail ({kind})',
|
|
648
|
+
'archive.confirm.listSeparator': ', ',
|
|
649
|
+
'time.now': 'maintenant',
|
|
650
|
+
'time.minutes': '{n}min',
|
|
651
|
+
'time.hours': '{n}h',
|
|
652
|
+
'time.days': '{n}d',
|
|
653
|
+
'time.months': '{n}mo',
|
|
654
|
+
'time.years': '{n}y',
|
|
655
|
+
'time.ago': 'Il y a {t}',
|
|
656
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
657
|
+
'hover.created': 'Créé {time}',
|
|
658
|
+
'hover.copied': 'Copié',
|
|
659
|
+
'status.running': 'Courir',
|
|
660
|
+
'status.idle': 'Inactif',
|
|
661
|
+
'detail.close': 'Fermer les détails',
|
|
662
|
+
'detail.label': 'Détails de la tâche',
|
|
663
|
+
'detail.name': 'Nom de la tâche d\'automatisation',
|
|
664
|
+
'detail.instruction': 'Instruction de tâche d\'automatisation',
|
|
665
|
+
'detail.missing': 'Tâche indisponible. Il a peut-être été supprimé.',
|
|
666
|
+
'detail.nextRun': 'Prochaine exécution',
|
|
667
|
+
'statusFilter.label': 'Statut de la tâche',
|
|
668
|
+
'rule.repeat': 'Répéter',
|
|
669
|
+
'host.target': 'Exécuter dans',
|
|
670
|
+
'host.currentConversation': 'Conversation liée actuelle',
|
|
671
|
+
'host.targetNewOnce': 'Créer une conversation et la réutiliser',
|
|
672
|
+
'host.targetNew': 'Nouvelle conversation à chaque exécution',
|
|
673
|
+
'delete.confirm': 'Confirmer la suppression',
|
|
674
|
+
'clear.confirm': 'Effacer les tâches',
|
|
675
|
+
'error.schedule_delete_failed': 'Impossible de supprimer la tâche.',
|
|
676
|
+
'list.error': 'Impossible de charger les tâches.',
|
|
677
|
+
'status.active': 'Activé',
|
|
678
|
+
'status.paused': 'Suspendue',
|
|
679
|
+
'status.ended': 'Terminée',
|
|
680
|
+
'frequency.once': 'Une fois',
|
|
681
|
+
'frequency.every': 'Chaque {value} {unit}',
|
|
682
|
+
'frequency.daily': 'Tous les jours à {time} ({timeZone})',
|
|
683
|
+
'frequency.weekly': 'Hebdomadaire sur {weekdays} à {time} ({timeZone})',
|
|
684
|
+
'frequency.hostCustom': 'Personnalisé',
|
|
685
|
+
'frequency.weekday.join': ', ',
|
|
686
|
+
'frequency.weekday.1': 'lundi',
|
|
687
|
+
'frequency.weekday.2': 'mar.',
|
|
688
|
+
'frequency.weekday.3': 'mer',
|
|
689
|
+
'frequency.weekday.4': 'jeu.',
|
|
690
|
+
'frequency.weekday.5': 'vendredi',
|
|
691
|
+
'frequency.weekday.6': 'Samedi',
|
|
692
|
+
'frequency.weekday.7': 'Soleil',
|
|
693
|
+
'unit.day.one': 'jour',
|
|
694
|
+
'unit.day.other': 'jours',
|
|
695
|
+
'unit.hour.one': 'heure',
|
|
696
|
+
'unit.hour.other': 'heures',
|
|
697
|
+
'unit.minute.one': 'minute',
|
|
698
|
+
'unit.minute.other': 'minutes',
|
|
699
|
+
'unit.second.one': 'seconde',
|
|
700
|
+
'unit.second.other': 'secondes',
|
|
701
|
+
},
|
|
702
|
+
de: {
|
|
703
|
+
'tabs.residue': 'Rückstände',
|
|
704
|
+
'selection.summary': '{n} ausgewählt · {size}',
|
|
705
|
+
'selection.summaryCount': '{n} ausgewählt',
|
|
706
|
+
'search.placeholder': '{section} suchen',
|
|
707
|
+
'confirm.purge.description': 'Dies kann nicht rückgängig gemacht werden',
|
|
708
|
+
'archive.scheduleDeletion': 'Aktive automatisierte Aufgaben für diese Sitzung und ihre gespeicherten Ausführungsprotokolle werden gelöscht.',
|
|
709
|
+
'error.notArchived': 'Nur archivierte Sitzungen können gelöscht werden.',
|
|
710
|
+
'error.workspaceProtected': 'Geschützter Arbeitsbereich.',
|
|
711
|
+
'protection.label': 'geschützt',
|
|
712
|
+
'reference.schedule': 'Mit einer geplanten Aufgabe verknüpft.',
|
|
713
|
+
'residue.orphanTask': 'Die verknüpfte Sitzung ist nicht verfügbar.',
|
|
714
|
+
'residue.registeredCache': 'Für diese Sitzungs-ID besteht auch ein Arbeitsbereichseintrag.',
|
|
715
|
+
'residue.orphanCache': 'verwaister Cache',
|
|
716
|
+
'residue.ghostRegistry': 'Geister-Eintrag',
|
|
717
|
+
'residue.sessionDirectory': 'Hüllen-Verzeichnis',
|
|
718
|
+
'residue.emptyProject': 'leeres Projektverzeichnis',
|
|
719
|
+
'residue.memoryResident': 'gelöschte Sitzung noch im Speicher, verschwindet nach Neustart',
|
|
720
|
+
'confirm.tasks.description': 'Ausgewählte Aufgaben und gespeicherte Ausführungen werden gelöscht',
|
|
721
|
+
'error.schedule_changed': 'Aufgabe geändert; aktualisieren und erneut versuchen',
|
|
722
|
+
'error.session_resident': 'Noch in dieser DSH geladen, nach Neustart löschen',
|
|
723
|
+
'error.purge_busy': 'Sitzung wird bereinigt; später erneut versuchen',
|
|
724
|
+
'error.cleanup_partial': 'Die Bereinigung wurde unterbrochen',
|
|
725
|
+
'error.workspace_unavailable': 'Arbeitsbereichseinträge können nicht geprüft werden',
|
|
726
|
+
'error.workspace_filtered': 'Andere verborgene Einträge verhindern das einzelne Entfernen',
|
|
727
|
+
'error.unsupported_storage': 'Speicherort des Sitzungsprotokolls nicht ermittelbar',
|
|
728
|
+
'error.historical_format': 'Sitzungsprotokoll vor dem Löschen migrieren',
|
|
729
|
+
'error.historical_parent': 'Zuerst die übergeordnete Sitzung zur Migration öffnen',
|
|
730
|
+
'error.unsafe_path': 'Dateipfad kann nicht überprüft werden',
|
|
731
|
+
'error.unknown_artifact': 'Sitzungsverzeichnis enthält unbekannte Dateien',
|
|
732
|
+
'error.session_changed': 'Sitzungsstatus geändert; erneut versuchen',
|
|
733
|
+
'error.cache_unavailable': 'Projektions-Cache-Dienst nicht verfügbar',
|
|
734
|
+
'error.residue_changed': 'Rückstand geändert; aktualisieren und erneut versuchen',
|
|
735
|
+
'error.internal': 'Interner Fehler. Versuchen Sie es erneut.',
|
|
736
|
+
'error.bad_request': 'Ungültige Anfrage.',
|
|
737
|
+
'tabs.archived': 'Archiviert',
|
|
738
|
+
'notice.archived': 'Archiviert',
|
|
739
|
+
'error.sessionNotFound': 'Sitzung nicht verfügbar',
|
|
740
|
+
'error.referenceCheck': 'Aufgaben konnten nicht geladen werden.',
|
|
741
|
+
'error.residue_unavailable': 'Die Aktion konnte nicht abgeschlossen werden. Versuchen Sie es erneut.',
|
|
742
|
+
'error.purge_failed': 'Die Aktion konnte nicht abgeschlossen werden. Versuchen Sie es erneut.',
|
|
743
|
+
'error.residue_failed': 'Die Aktion konnte nicht abgeschlossen werden. Versuchen Sie es erneut.',
|
|
744
|
+
'empty.residue': 'Keine Ergebnisse',
|
|
745
|
+
'notice.purgeFailed': 'Löschen fehlgeschlagen: {reasons}',
|
|
746
|
+
'notice.restoreFailed': 'Dearchivieren fehlgeschlagen: {reasons}',
|
|
747
|
+
'notice.archiveFailed': 'Archivieren fehlgeschlagen: {reasons}',
|
|
748
|
+
'notice.cleanFailed': 'Bereinigung fehlgeschlagen: {reasons}',
|
|
749
|
+
'notice.listSeparator': '; ',
|
|
750
|
+
'selection.selectAll': 'Alles auswählen',
|
|
751
|
+
'selection.deselectAll': 'Alle abwählen',
|
|
752
|
+
'confirm.purge.title': '{provider} löschen?',
|
|
753
|
+
'confirm.residue.title': '{provider} löschen?',
|
|
754
|
+
'hover.more': '{count} weitere',
|
|
755
|
+
'host.updateRequired': 'Starten Sie DSH neu, um die Änderung anzuwenden.',
|
|
756
|
+
'row.archived': 'Archiviert',
|
|
757
|
+
'toast.archived': 'Sitzung archiviert. Du kannst ',
|
|
758
|
+
'toast.stoppedAndArchived': 'Sitzung gestoppt und archiviert. Du kannst ',
|
|
759
|
+
'toast.archivedUndo': 'rückgängig machen',
|
|
760
|
+
'toast.archivedOr': ' oder ',
|
|
761
|
+
'session.new': 'Neue Sitzung',
|
|
762
|
+
'group.ungrouped': 'Nicht gruppiert',
|
|
763
|
+
'actions.archive': 'Archiv',
|
|
764
|
+
'actions.unarchive': 'Dearchivieren',
|
|
765
|
+
'section.sessions': 'Sitzungen',
|
|
766
|
+
'empty.noMatches': 'Keine Übereinstimmungen',
|
|
767
|
+
'empty.none': 'Noch keine Sitzungen',
|
|
768
|
+
'empty.noneArchived': 'Noch keine archivierten Sitzungen',
|
|
769
|
+
'archive.confirm.title': 'Diese Sitzung stoppen und archivieren?',
|
|
770
|
+
'archive.confirm.desc': '„{title}“ ist noch in Arbeit. Die Archivierung stoppt es zunächst; Sie können die Sitzung später über den Filter „Alle Konversationen (archivierte anzeigen)“ in der Seitenleiste wiederherstellen, und die angehaltene Arbeit wird nicht von alleine fortgesetzt.',
|
|
771
|
+
'archive.confirm.pending': 'Stoppen und archivieren…',
|
|
772
|
+
'archive.confirm.action': 'Stoppen und archivieren',
|
|
773
|
+
'archive.confirm.activity': 'Arbeiten, die gestoppt werden',
|
|
774
|
+
'archive.confirm.turn': 'Die laufende Runde',
|
|
775
|
+
'archive.confirm.subagents.one': '{n}, laufender Subagent: {names}',
|
|
776
|
+
'archive.confirm.subagents.other': '{n}, auf dem Subagenten ausgeführt werden: {names}',
|
|
777
|
+
'archive.confirm.jobs.one': '{n} Hintergrundjob: {names}',
|
|
778
|
+
'archive.confirm.jobs.other': '{n} Hintergrundjobs: {names}',
|
|
779
|
+
'archive.confirm.schedules.one': '{n} geplante Erinnerung: {names}',
|
|
780
|
+
'archive.confirm.schedules.other': '{n} geplante Erinnerungen: {names}',
|
|
781
|
+
'archive.confirm.other.one': '{n} sonstiger Arbeitsgegenstand ({kind})',
|
|
782
|
+
'archive.confirm.other.other': '{n} sonstige Arbeiten ({kind})',
|
|
783
|
+
'archive.confirm.listSeparator': ', ',
|
|
784
|
+
'time.now': 'jetzt',
|
|
785
|
+
'time.minutes': '{n}min',
|
|
786
|
+
'time.hours': '{n}h',
|
|
787
|
+
'time.days': '{n}d',
|
|
788
|
+
'time.months': '{n}mo',
|
|
789
|
+
'time.years': '{n}y',
|
|
790
|
+
'time.ago': 'Vor {t}',
|
|
791
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
792
|
+
'hover.created': 'Erstellt {time}',
|
|
793
|
+
'hover.copied': 'Kopiert',
|
|
794
|
+
'status.running': 'Laufen',
|
|
795
|
+
'status.idle': 'Leerlauf',
|
|
796
|
+
'detail.close': 'Details schließen',
|
|
797
|
+
'detail.label': 'Aufgabendetails',
|
|
798
|
+
'detail.name': 'Name der Automatisierungsaufgabe',
|
|
799
|
+
'detail.instruction': 'Anleitung zur Automatisierungsaufgabe',
|
|
800
|
+
'detail.missing': 'Aufgabe nicht verfügbar. Möglicherweise wurde es gelöscht.',
|
|
801
|
+
'detail.nextRun': 'Nächster Lauf',
|
|
802
|
+
'statusFilter.label': 'Aufgabenstatus',
|
|
803
|
+
'rule.repeat': 'Wiederholen',
|
|
804
|
+
'host.target': 'Ausführen in',
|
|
805
|
+
'host.currentConversation': 'Aktuell verknüpfte Unterhaltung',
|
|
806
|
+
'host.targetNewOnce': 'Eine Unterhaltung erstellen und wiederverwenden',
|
|
807
|
+
'host.targetNew': 'Neue Unterhaltung bei jeder Ausführung',
|
|
808
|
+
'delete.confirm': 'Bestätigen Sie den Löschvorgang',
|
|
809
|
+
'clear.confirm': 'Aufgaben löschen',
|
|
810
|
+
'error.schedule_delete_failed': 'Die Aufgabe konnte nicht gelöscht werden.',
|
|
811
|
+
'list.error': 'Aufgaben konnten nicht geladen werden.',
|
|
812
|
+
'status.active': 'Aktiviert',
|
|
813
|
+
'status.paused': 'Pausiert',
|
|
814
|
+
'status.ended': 'Beendet',
|
|
815
|
+
'frequency.once': 'Einmal',
|
|
816
|
+
'frequency.every': 'Jeder {value} {unit}',
|
|
817
|
+
'frequency.daily': 'Täglich um {time} ({timeZone})',
|
|
818
|
+
'frequency.weekly': 'Wöchentlich auf {weekdays} um {time} ({timeZone})',
|
|
819
|
+
'frequency.hostCustom': 'Benutzerdefiniert',
|
|
820
|
+
'frequency.weekday.join': ', ',
|
|
821
|
+
'frequency.weekday.1': 'Mo',
|
|
822
|
+
'frequency.weekday.2': 'Di',
|
|
823
|
+
'frequency.weekday.3': 'Mi',
|
|
824
|
+
'frequency.weekday.4': 'Do',
|
|
825
|
+
'frequency.weekday.5': 'Fr',
|
|
826
|
+
'frequency.weekday.6': 'Sa',
|
|
827
|
+
'frequency.weekday.7': 'Sonne',
|
|
828
|
+
'unit.day.one': 'Tag',
|
|
829
|
+
'unit.day.other': 'Tage',
|
|
830
|
+
'unit.hour.one': 'Stunde',
|
|
831
|
+
'unit.hour.other': 'Stunden',
|
|
832
|
+
'unit.minute.one': 'Minute',
|
|
833
|
+
'unit.minute.other': 'Minuten',
|
|
834
|
+
'unit.second.one': 'zweitens',
|
|
835
|
+
'unit.second.other': 'Sekunden',
|
|
836
|
+
},
|
|
837
|
+
ru: {
|
|
838
|
+
'tabs.residue': 'Остатки',
|
|
839
|
+
'selection.summary': 'выбрано {n} · {size}',
|
|
840
|
+
'selection.summaryCount': 'выбрано {n}',
|
|
841
|
+
'search.placeholder': 'Поиск: {section}',
|
|
842
|
+
'confirm.purge.description': 'Это действие нельзя отменить',
|
|
843
|
+
'archive.scheduleDeletion': 'Активные автоматические задачи для этой сессии и их сохранённая история будут удалены.',
|
|
844
|
+
'error.notArchived': 'Удалять можно только архивированные сессии.',
|
|
845
|
+
'error.workspaceProtected': 'Рабочее пространство защищено.',
|
|
846
|
+
'protection.label': 'защищена',
|
|
847
|
+
'reference.schedule': 'Связана с запланированной задачей.',
|
|
848
|
+
'residue.orphanTask': 'Связанный сеанс недоступен.',
|
|
849
|
+
'residue.registeredCache': 'Для этого сеанса также существует запись рабочего пространства.',
|
|
850
|
+
'residue.orphanCache': 'осиротевший кэш',
|
|
851
|
+
'residue.ghostRegistry': 'запись-призрак',
|
|
852
|
+
'residue.sessionDirectory': 'каталог-оболочка',
|
|
853
|
+
'residue.emptyProject': 'пустой каталог проекта',
|
|
854
|
+
'residue.memoryResident': 'удалённый сеанс ещё в памяти, исчезнет после перезапуска',
|
|
855
|
+
'confirm.tasks.description': 'Выбранные задачи и сохранённая история будут удалены',
|
|
856
|
+
'error.schedule_changed': 'Задача изменилась; обновите данные и повторите попытку',
|
|
857
|
+
'error.session_resident': 'Всё ещё загружен в этом DSH, перезапустите для удаления',
|
|
858
|
+
'error.purge_busy': 'Идёт очистка сеанса; повторите попытку позже',
|
|
859
|
+
'error.cleanup_partial': 'Очистка была прервана',
|
|
860
|
+
'error.workspace_unavailable': 'Не удалось проверить записи рабочего пространства',
|
|
861
|
+
'error.workspace_filtered': 'Другие скрытые записи мешают удалить эту запись отдельно',
|
|
862
|
+
'error.unsupported_storage': 'Не удалось определить расположение журнала сеанса',
|
|
863
|
+
'error.historical_format': 'Перед удалением необходимо перенести журнал сеанса',
|
|
864
|
+
'error.historical_parent': 'Сначала откройте родительский сеанс для переноса',
|
|
865
|
+
'error.unsafe_path': 'Не удалось проверить путь к файлу',
|
|
866
|
+
'error.unknown_artifact': 'Каталог сеанса содержит неизвестные файлы',
|
|
867
|
+
'error.session_changed': 'Состояние сеанса изменилось; повторите попытку',
|
|
868
|
+
'error.cache_unavailable': 'Служба кэша проекций недоступна',
|
|
869
|
+
'error.residue_changed': 'Остаточные данные изменились; обновите и повторите попытку',
|
|
870
|
+
'error.internal': 'Внутренняя ошибка. Повторите попытку.',
|
|
871
|
+
'error.bad_request': 'Недопустимый запрос.',
|
|
872
|
+
'tabs.archived': 'В архиве',
|
|
873
|
+
'notice.archived': 'В архиве',
|
|
874
|
+
'error.sessionNotFound': 'Сеанс недоступен',
|
|
875
|
+
'error.referenceCheck': 'Не удалось загрузить задачи.',
|
|
876
|
+
'error.residue_unavailable': 'Не удалось выполнить действие. Повторите попытку.',
|
|
877
|
+
'error.purge_failed': 'Не удалось выполнить действие. Повторите попытку.',
|
|
878
|
+
'error.residue_failed': 'Не удалось выполнить действие. Повторите попытку.',
|
|
879
|
+
'empty.residue': 'Нет результатов',
|
|
880
|
+
'notice.purgeFailed': 'Не удалось удалить: {reasons}',
|
|
881
|
+
'notice.restoreFailed': 'Не удалось разархивировать: {reasons}',
|
|
882
|
+
'notice.archiveFailed': 'Не удалось архивировать: {reasons}',
|
|
883
|
+
'notice.cleanFailed': 'Не удалось очистить: {reasons}',
|
|
884
|
+
'notice.listSeparator': '; ',
|
|
885
|
+
'selection.selectAll': 'Выбрать все',
|
|
886
|
+
'selection.deselectAll': 'Отменить выбор всех',
|
|
887
|
+
'confirm.purge.title': 'Удалить {provider}?',
|
|
888
|
+
'confirm.residue.title': 'Удалить {provider}?',
|
|
889
|
+
'hover.more': 'Ещё {count}',
|
|
890
|
+
'host.updateRequired': 'Перезапустите DSH, чтобы применить изменение.',
|
|
891
|
+
'row.archived': 'В архиве',
|
|
892
|
+
'toast.archived': 'Сессия заархивирована. Вы можете ',
|
|
893
|
+
'toast.stoppedAndArchived': 'Сеанс остановлен и заархивирован. Вы можете ',
|
|
894
|
+
'toast.archivedUndo': 'отменить',
|
|
895
|
+
'toast.archivedOr': ' или ',
|
|
896
|
+
'session.new': 'Новая сессия',
|
|
897
|
+
'group.ungrouped': 'Разгруппировано',
|
|
898
|
+
'actions.archive': 'Архив',
|
|
899
|
+
'actions.unarchive': 'Разархивировать',
|
|
900
|
+
'section.sessions': 'Сессии',
|
|
901
|
+
'empty.noMatches': 'Нет совпадений',
|
|
902
|
+
'empty.none': 'Сеансов пока нет',
|
|
903
|
+
'empty.noneArchived': 'Архивированных сессий пока нет',
|
|
904
|
+
'archive.confirm.title': 'Остановить и заархивировать этот сеанс?',
|
|
905
|
+
'archive.confirm.desc': 'Над «{title}» все еще ведется работа. Архивирование останавливает его первым; восстановить сессию можно позже из фильтра «Все разговоры (показать в архиве)» в боковой панели, при этом остановленная работа не возобновится сама по себе.',
|
|
906
|
+
'archive.confirm.pending': 'Остановка и архивирование…',
|
|
907
|
+
'archive.confirm.action': 'Остановить и заархивировать',
|
|
908
|
+
'archive.confirm.activity': 'Работа, которая будет остановлена',
|
|
909
|
+
'archive.confirm.turn': 'Текущий ход',
|
|
910
|
+
'archive.confirm.subagents.one': '{n} работающий субагент: {names}',
|
|
911
|
+
'archive.confirm.subagents.other': '{n} работающие субагенты: {names}',
|
|
912
|
+
'archive.confirm.jobs.one': '{n} фоновое задание: {names}',
|
|
913
|
+
'archive.confirm.jobs.other': '{n} фоновые задания: {names}',
|
|
914
|
+
'archive.confirm.schedules.one': 'Запланированное напоминание {n}: {names}',
|
|
915
|
+
'archive.confirm.schedules.other': 'Запланированные напоминания {n}: {names}',
|
|
916
|
+
'archive.confirm.other.one': '{n} другой элемент работы ({kind})',
|
|
917
|
+
'archive.confirm.other.other': '{n} прочие работы ({kind})',
|
|
918
|
+
'archive.confirm.listSeparator': ', ',
|
|
919
|
+
'time.now': 'сейчас',
|
|
920
|
+
'time.minutes': '{n}мин',
|
|
921
|
+
'time.hours': '{n}h',
|
|
922
|
+
'time.days': '{n}d',
|
|
923
|
+
'time.months': '{n}mo',
|
|
924
|
+
'time.years': '{n}y',
|
|
925
|
+
'time.ago': '{t} назад',
|
|
926
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
927
|
+
'hover.created': 'Создано {time}',
|
|
928
|
+
'hover.copied': 'Скопировано',
|
|
929
|
+
'status.running': 'Бег',
|
|
930
|
+
'status.idle': 'Простой',
|
|
931
|
+
'detail.close': 'Закрыть детали',
|
|
932
|
+
'detail.label': 'Подробности задачи',
|
|
933
|
+
'detail.name': 'Название задачи автоматизации',
|
|
934
|
+
'detail.instruction': 'Инструкция по задаче автоматизации',
|
|
935
|
+
'detail.missing': 'Задача недоступна. Возможно, оно было удалено.',
|
|
936
|
+
'detail.nextRun': 'Следующий запуск',
|
|
937
|
+
'statusFilter.label': 'Статус задачи',
|
|
938
|
+
'rule.repeat': 'Повторить',
|
|
939
|
+
'host.target': 'Запускать в',
|
|
940
|
+
'host.currentConversation': 'Текущая связанная беседа',
|
|
941
|
+
'host.targetNewOnce': 'Создать беседу и использовать её повторно',
|
|
942
|
+
'host.targetNew': 'Новой беседе при каждом запуске',
|
|
943
|
+
'delete.confirm': 'Подтвердить удаление',
|
|
944
|
+
'clear.confirm': 'Удалить задачи',
|
|
945
|
+
'error.schedule_delete_failed': 'Не удалось удалить задачу.',
|
|
946
|
+
'list.error': 'Не удалось загрузить задачи.',
|
|
947
|
+
'status.active': 'Включено',
|
|
948
|
+
'status.paused': 'Приостановлена',
|
|
949
|
+
'status.ended': 'Завершена',
|
|
950
|
+
'frequency.once': 'Однажды',
|
|
951
|
+
'frequency.every': 'Каждый {value} {unit}',
|
|
952
|
+
'frequency.daily': 'Ежедневно по адресу {time} ({timeZone})',
|
|
953
|
+
'frequency.weekly': 'Еженедельно на {weekdays} по адресу {time} ({timeZone})',
|
|
954
|
+
'frequency.hostCustom': 'Произвольно',
|
|
955
|
+
'frequency.weekday.join': ', ',
|
|
956
|
+
'frequency.weekday.1': 'Пн.',
|
|
957
|
+
'frequency.weekday.2': 'Вт',
|
|
958
|
+
'frequency.weekday.3': 'ср.',
|
|
959
|
+
'frequency.weekday.4': 'Чт',
|
|
960
|
+
'frequency.weekday.5': 'Пт',
|
|
961
|
+
'frequency.weekday.6': 'Суббота',
|
|
962
|
+
'frequency.weekday.7': 'Солнце',
|
|
963
|
+
'unit.day.one': 'день',
|
|
964
|
+
'unit.day.other': 'дни',
|
|
965
|
+
'unit.hour.one': 'час',
|
|
966
|
+
'unit.hour.other': 'часы',
|
|
967
|
+
'unit.minute.one': 'минута',
|
|
968
|
+
'unit.minute.other': 'минуты',
|
|
969
|
+
'unit.second.one': 'второй',
|
|
970
|
+
'unit.second.other': 'секунды',
|
|
971
|
+
},
|
|
972
|
+
pt: {
|
|
973
|
+
'tabs.residue': 'Resíduos',
|
|
974
|
+
'selection.summary': '{n} selecionadas · {size}',
|
|
975
|
+
'selection.summaryCount': '{n} selecionadas',
|
|
976
|
+
'search.placeholder': 'Buscar {section}',
|
|
977
|
+
'confirm.purge.description': 'Esta ação não pode ser desfeita',
|
|
978
|
+
'archive.scheduleDeletion': 'As tarefas automáticas ativas destinadas a esta sessão e seu histórico de execução serão excluídos.',
|
|
979
|
+
'error.notArchived': 'Somente sessões arquivadas podem ser excluídas.',
|
|
980
|
+
'error.workspaceProtected': 'Espaço de trabalho protegido.',
|
|
981
|
+
'protection.label': 'protegida',
|
|
982
|
+
'reference.schedule': 'Associada a uma tarefa agendada.',
|
|
983
|
+
'residue.orphanTask': 'A sessão vinculada não está disponível.',
|
|
984
|
+
'residue.registeredCache': 'Também há um registro de espaço de trabalho para esta sessão.',
|
|
985
|
+
'residue.orphanCache': 'cache órfã',
|
|
986
|
+
'residue.ghostRegistry': 'registro fantasma',
|
|
987
|
+
'residue.sessionDirectory': 'diretório casca',
|
|
988
|
+
'residue.emptyProject': 'diretório de projeto vazio',
|
|
989
|
+
'residue.memoryResident': 'sessão excluída ainda na memória, some ao reiniciar',
|
|
990
|
+
'confirm.tasks.description': 'As tarefas selecionadas e seu histórico salvo serão excluídos',
|
|
991
|
+
'error.schedule_changed': 'A tarefa mudou; atualize e tente novamente',
|
|
992
|
+
'error.session_resident': 'Ainda carregada neste DSH, reinicie para excluí-la',
|
|
993
|
+
'error.purge_busy': 'Limpeza da sessão em andamento; tente novamente mais tarde',
|
|
994
|
+
'error.cleanup_partial': 'A limpeza foi interrompida',
|
|
995
|
+
'error.workspace_unavailable': 'Não foi possível verificar os registros do espaço de trabalho',
|
|
996
|
+
'error.workspace_filtered': 'Outros registros ocultos impedem a remoção individual',
|
|
997
|
+
'error.unsupported_storage': 'Não foi possível identificar a localização do log',
|
|
998
|
+
'error.historical_format': 'Migre o log da sessão antes de excluí-lo',
|
|
999
|
+
'error.historical_parent': 'Abra a sessão principal para concluir a migração',
|
|
1000
|
+
'error.unsafe_path': 'Não foi possível verificar o caminho do arquivo',
|
|
1001
|
+
'error.unknown_artifact': 'O diretório da sessão contém arquivos desconhecidos',
|
|
1002
|
+
'error.session_changed': 'O estado da sessão mudou; tente novamente',
|
|
1003
|
+
'error.cache_unavailable': 'O serviço de cache de projeção está indisponível',
|
|
1004
|
+
'error.residue_changed': 'O resíduo mudou; atualize e tente novamente',
|
|
1005
|
+
'error.internal': 'Erro interno. Tente novamente.',
|
|
1006
|
+
'error.bad_request': 'Solicitação inválida.',
|
|
1007
|
+
'tabs.archived': 'Arquivado',
|
|
1008
|
+
'notice.archived': 'Arquivado',
|
|
1009
|
+
'error.sessionNotFound': 'Sessão indisponível',
|
|
1010
|
+
'error.referenceCheck': 'Não foi possível carregar tarefas.',
|
|
1011
|
+
'error.residue_unavailable': 'Não foi possível concluir a ação. Tente novamente.',
|
|
1012
|
+
'error.purge_failed': 'Não foi possível concluir a ação. Tente novamente.',
|
|
1013
|
+
'error.residue_failed': 'Não foi possível concluir a ação. Tente novamente.',
|
|
1014
|
+
'empty.residue': 'Nenhum resultado',
|
|
1015
|
+
'notice.purgeFailed': 'Falha ao excluir: {reasons}',
|
|
1016
|
+
'notice.restoreFailed': 'Falha ao restaurar: {reasons}',
|
|
1017
|
+
'notice.archiveFailed': 'Falha ao arquivar: {reasons}',
|
|
1018
|
+
'notice.cleanFailed': 'Falha na limpeza: {reasons}',
|
|
1019
|
+
'notice.listSeparator': '; ',
|
|
1020
|
+
'selection.selectAll': 'Selecionar tudo',
|
|
1021
|
+
'selection.deselectAll': 'Desmarcar tudo',
|
|
1022
|
+
'confirm.purge.title': 'Excluir {provider}?',
|
|
1023
|
+
'confirm.residue.title': 'Excluir {provider}?',
|
|
1024
|
+
'hover.more': 'mais {count}',
|
|
1025
|
+
'host.updateRequired': 'Reinicie o DSH para aplicar a alteração.',
|
|
1026
|
+
'row.archived': 'Arquivado',
|
|
1027
|
+
'toast.archived': 'Sessão arquivada. Você pode ',
|
|
1028
|
+
'toast.stoppedAndArchived': 'Sessão interrompida e arquivada. Você pode ',
|
|
1029
|
+
'toast.archivedUndo': 'desfazer',
|
|
1030
|
+
'toast.archivedOr': ' ou ',
|
|
1031
|
+
'session.new': 'Nova sessão',
|
|
1032
|
+
'group.ungrouped': 'Desagrupado',
|
|
1033
|
+
'actions.archive': 'Arquivo',
|
|
1034
|
+
'actions.unarchive': 'Desarquivar',
|
|
1035
|
+
'section.sessions': 'Sessões',
|
|
1036
|
+
'empty.noMatches': 'Nenhuma correspondência',
|
|
1037
|
+
'empty.none': 'Ainda não há sessões',
|
|
1038
|
+
'empty.noneArchived': 'Ainda não há sessões arquivadas',
|
|
1039
|
+
'archive.confirm.title': 'Parar e arquivar esta sessão?',
|
|
1040
|
+
'archive.confirm.desc': '“{title}” ainda tem trabalho em andamento. O arquivamento interrompe primeiro; você pode restaurar a sessão posteriormente a partir do filtro “Todas as conversas (mostrar arquivadas)” na barra lateral, e o trabalho interrompido não será retomado por conta própria.',
|
|
1041
|
+
'archive.confirm.pending': 'Parando e arquivando…',
|
|
1042
|
+
'archive.confirm.action': 'Pare e arquive',
|
|
1043
|
+
'archive.confirm.activity': 'Obra que será interrompida',
|
|
1044
|
+
'archive.confirm.turn': 'O turno em andamento',
|
|
1045
|
+
'archive.confirm.subagents.one': '{n} subagente em execução: {names}',
|
|
1046
|
+
'archive.confirm.subagents.other': '{n} executando subagentes: {names}',
|
|
1047
|
+
'archive.confirm.jobs.one': '{n} trabalho em segundo plano: {names}',
|
|
1048
|
+
'archive.confirm.jobs.other': '{n} trabalhos em segundo plano: {names}',
|
|
1049
|
+
'archive.confirm.schedules.one': '{n} lembrete programado: {names}',
|
|
1050
|
+
'archive.confirm.schedules.other': '{n} lembretes programados: {names}',
|
|
1051
|
+
'archive.confirm.other.one': '{n} outro item de trabalho ({kind})',
|
|
1052
|
+
'archive.confirm.other.other': '{n} outros itens de trabalho ({kind})',
|
|
1053
|
+
'archive.confirm.listSeparator': ', ',
|
|
1054
|
+
'time.now': 'agora',
|
|
1055
|
+
'time.minutes': '{n}min',
|
|
1056
|
+
'time.hours': '{n}h',
|
|
1057
|
+
'time.days': '{n}d',
|
|
1058
|
+
'time.months': '{n} mês',
|
|
1059
|
+
'time.years': '{n}s',
|
|
1060
|
+
'time.ago': '{t} atrás',
|
|
1061
|
+
'date.ymd': '{y}-{m}-{d}',
|
|
1062
|
+
'hover.created': 'Criado {time}',
|
|
1063
|
+
'hover.copied': 'Copiado',
|
|
1064
|
+
'status.running': 'Correndo',
|
|
1065
|
+
'status.idle': 'Inativo',
|
|
1066
|
+
'detail.close': 'Fechar detalhes',
|
|
1067
|
+
'detail.label': 'Detalhes da tarefa',
|
|
1068
|
+
'detail.name': 'Nome da tarefa de automação',
|
|
1069
|
+
'detail.instruction': 'Instrução de tarefa de automação',
|
|
1070
|
+
'detail.missing': 'Tarefa indisponível. Pode ter sido excluído.',
|
|
1071
|
+
'detail.nextRun': 'Próxima execução',
|
|
1072
|
+
'statusFilter.label': 'Status da tarefa',
|
|
1073
|
+
'rule.repeat': 'Repetir',
|
|
1074
|
+
'host.target': 'Executar em',
|
|
1075
|
+
'host.currentConversation': 'Conversa vinculada atual',
|
|
1076
|
+
'host.targetNewOnce': 'Criar uma conversa e reutilizá-la',
|
|
1077
|
+
'host.targetNew': 'Nova conversa a cada execução',
|
|
1078
|
+
'delete.confirm': 'Confirmar exclusão',
|
|
1079
|
+
'clear.confirm': 'Limpar tarefas',
|
|
1080
|
+
'error.schedule_delete_failed': 'Não foi possível excluir a tarefa.',
|
|
1081
|
+
'list.error': 'Não foi possível carregar tarefas.',
|
|
1082
|
+
'status.active': 'Habilitado',
|
|
1083
|
+
'status.paused': 'Pausada',
|
|
1084
|
+
'status.ended': 'Concluída',
|
|
1085
|
+
'frequency.once': 'Uma vez',
|
|
1086
|
+
'frequency.every': 'A cada {value} {unit}',
|
|
1087
|
+
'frequency.daily': 'Diariamente às {time} ({timeZone})',
|
|
1088
|
+
'frequency.weekly': 'Semanalmente em {weekdays} às {time} ({timeZone})',
|
|
1089
|
+
'frequency.hostCustom': 'Personalizado',
|
|
1090
|
+
'frequency.weekday.join': ', ',
|
|
1091
|
+
'frequency.weekday.1': 'segunda-feira',
|
|
1092
|
+
'frequency.weekday.2': 'Terça',
|
|
1093
|
+
'frequency.weekday.3': 'Quarta',
|
|
1094
|
+
'frequency.weekday.4': 'Qui',
|
|
1095
|
+
'frequency.weekday.5': 'Sexta-feira',
|
|
1096
|
+
'frequency.weekday.6': 'Sábado',
|
|
1097
|
+
'frequency.weekday.7': 'Sol',
|
|
1098
|
+
'unit.day.one': 'dia',
|
|
1099
|
+
'unit.day.other': 'dias',
|
|
1100
|
+
'unit.hour.one': 'hora',
|
|
1101
|
+
'unit.hour.other': 'horas',
|
|
1102
|
+
'unit.minute.one': 'minuto',
|
|
1103
|
+
'unit.minute.other': 'minutos',
|
|
1104
|
+
'unit.second.one': 'segundo',
|
|
1105
|
+
'unit.second.other': 'segundos',
|
|
1106
|
+
},
|
|
40
1107
|
};
|
|
41
1108
|
|
|
42
|
-
const fill = (template, params) => String(template ?? '').replace(/\{(\w+)\}/g, (_, k) => String(params?.[k] ?? ''));
|
|
43
|
-
|
|
44
|
-
// Use the live official dictionaries first. Official keys have no plugin
|
|
45
|
-
// copy (client.<language>.js must not define them), so an absent official
|
|
46
|
-
// namespace leaves only the host's missing-key rendering.
|
|
47
|
-
function officialTranslator(locale) {
|
|
48
|
-
const own = locale.bind(NS);
|
|
49
|
-
const translators = new Map();
|
|
50
|
-
return (key, params) => {
|
|
51
|
-
const entry = OFFICIAL_COPY[key];
|
|
52
|
-
if (!entry) return own(key, params);
|
|
53
|
-
const { namespace, key: officialKey, params: paramMap } = entry;
|
|
54
|
-
if (!translators.has(namespace)) translators.set(namespace, locale.bind(namespace));
|
|
55
|
-
const mapped = paramMap && Object.fromEntries(Object.entries(paramMap).map(([name, source]) => [
|
|
56
|
-
name, Array.isArray(source) ? source.map((part) => params?.[part]).find((value) => value !== undefined) : source,
|
|
57
|
-
]));
|
|
58
|
-
const value = translators.get(namespace)(officialKey, mapped ?? params);
|
|
59
|
-
if (typeof value === 'string' && value !== officialKey) return key === 'host.updateRequired' ? value.trimEnd() : value;
|
|
60
|
-
// Generic actions have no plugin translation: the official label is their only source.
|
|
61
|
-
return ['action.archiveCleanup', 'action.purge', 'action.clean'].includes(key) ? value : own(key, params);
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
1109
|
const ERROR_KEYS = { session_not_archived: 'error.notArchived',
|
|
66
1110
|
session_not_found: 'error.sessionNotFound', protected_workspace: 'error.workspaceProtected', schedule_reference: 'reference.schedule',
|
|
67
1111
|
reference_check_failed: 'error.referenceCheck' };
|
|
68
|
-
function errorText(error, t
|
|
1112
|
+
function errorText(error, t) {
|
|
69
1113
|
const message = String(error?.message ?? error ?? '');
|
|
70
1114
|
const embedded = /dsh-mop:([a-z_]+)/.exec(message);
|
|
71
1115
|
const code = embedded?.[1] || error?.code;
|
|
72
1116
|
const errorKey = `error.${code}`;
|
|
73
|
-
const key = ERROR_KEYS[code] || (Object.hasOwn(
|
|
74
|
-
const reason = code === 'already_archived' ?
|
|
1117
|
+
const key = ERROR_KEYS[code] || (Object.hasOwn(dictionaries.en, errorKey) ? errorKey : null);
|
|
1118
|
+
const reason = code === 'already_archived' ? t('row.archived') : key ? t(key) : message;
|
|
75
1119
|
// Preserve diagnostics supplied by the host for failures without a
|
|
76
1120
|
// plugin-defined code, while translating the actionable heading.
|
|
77
1121
|
const diagnostic = ['purge_failed', 'residue_failed'].includes(code) ? error?.message : error?.detail;
|
|
@@ -80,13 +1124,41 @@ window.__ModuleLoader__.load({
|
|
|
80
1124
|
return reason + count + detail;
|
|
81
1125
|
}
|
|
82
1126
|
|
|
83
|
-
|
|
1127
|
+
/** 官方失败模板句(toast.createFailed 同款):「{动作}失败:{reasons}」,
|
|
1128
|
+
* 冒号烘焙在 locale 模板里;原因去重、以分句符号相连。无原因时去掉
|
|
1129
|
+
* 尾随冒号即短句(toast.pinFailed 同款)。哪个条目失败看列表里保持
|
|
1130
|
+
* 勾选的行,toast 不计数。 */
|
|
1131
|
+
function resultText(t, completed, successText, failureKey, detail) {
|
|
84
1132
|
const parts = [];
|
|
85
|
-
if (completed > 0 ||
|
|
86
|
-
if (
|
|
1133
|
+
if (completed > 0 || !failureKey) parts.push(successText);
|
|
1134
|
+
if (failureKey) {
|
|
1135
|
+
const reasons = [...new Set((Array.isArray(detail) ? detail : detail ? [detail] : []).filter(Boolean))]
|
|
1136
|
+
.join(t('notice.listSeparator'));
|
|
1137
|
+
const text = t(failureKey, { reasons });
|
|
1138
|
+
parts.push(reasons ? text : text.replace(/[::]\s*$/, ''));
|
|
1139
|
+
}
|
|
87
1140
|
return parts.join(' · ');
|
|
88
1141
|
}
|
|
89
1142
|
|
|
1143
|
+
/** 搜索匹配:会话与残留条目共用的字段集(空白词 = 全匹配)。 */
|
|
1144
|
+
function matchesTerm(item, term) {
|
|
1145
|
+
return !term || [item.id, item.title, item.workspaceTitle, item.workspacePath, item.label, item.hint, item.targetSessionId]
|
|
1146
|
+
.some((value) => String(value ?? '').toLocaleLowerCase().includes(term));
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/** 按工作区归桶(两个列表共用);items 须已按展示时间排序。 */
|
|
1150
|
+
function groupedByWorkspace(items, t) {
|
|
1151
|
+
const byWorkspace = new Map();
|
|
1152
|
+
for (const item of items) {
|
|
1153
|
+
const key = item.workspacePath || item.workspaceTitle || '';
|
|
1154
|
+
if (!byWorkspace.has(key)) byWorkspace.set(key, {
|
|
1155
|
+
title: item.workspaceTitle || item.workspacePath || t('group.ungrouped'), path: item.workspacePath, createdAt: item.workspaceCreatedAt, list: [],
|
|
1156
|
+
});
|
|
1157
|
+
byWorkspace.get(key).list.push(item);
|
|
1158
|
+
}
|
|
1159
|
+
return byWorkspace;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
90
1162
|
/** Use the same theme-managed sprite symbols as DSH's product icons. */
|
|
91
1163
|
function officialIcon(glyph, size, className) {
|
|
92
1164
|
const id = `dsw-icon-${glyph}-regular`;
|
|
@@ -159,53 +1231,22 @@ window.__ModuleLoader__.load({
|
|
|
159
1231
|
return path.startsWith(`${root}/`) ? `~${path.slice(root.length)}` : path;
|
|
160
1232
|
}
|
|
161
1233
|
|
|
162
|
-
|
|
163
|
-
function HoverPlacement({ anchorRef }) {
|
|
164
|
-
const marker = useRef(null);
|
|
165
|
-
useLayoutEffect(() => {
|
|
166
|
-
const card = marker.current?.closest('.dsh-mop-hover-content')?.parentElement;
|
|
167
|
-
const portal = card?.parentElement;
|
|
168
|
-
const anchor = anchorRef.current;
|
|
169
|
-
const panel = anchor?.closest('[data-shortcut-modal="settings"]');
|
|
170
|
-
if (!card || !portal || !panel) return;
|
|
171
|
-
// The official component temporarily replaces card content after copy.
|
|
172
|
-
// Keep placement on its portal, which survives the feedback state.
|
|
173
|
-
portal.dataset.dshMopPositioned = '';
|
|
174
|
-
const place = () => {
|
|
175
|
-
const width = card.getBoundingClientRect().width;
|
|
176
|
-
const anchorBounds = anchor.getBoundingClientRect();
|
|
177
|
-
const right = anchorBounds.right + 24 + 1;
|
|
178
|
-
const left = anchorBounds.left - width - 1;
|
|
179
|
-
const x = right + width <= window.innerWidth - 8 ? right : Math.max(8, left);
|
|
180
|
-
portal.style.setProperty('--dsh-mop-card-left', `${x}px`);
|
|
181
|
-
};
|
|
182
|
-
place();
|
|
183
|
-
window.addEventListener('resize', place);
|
|
184
|
-
window.addEventListener('scroll', place, true);
|
|
185
|
-
return () => { window.removeEventListener('resize', place); window.removeEventListener('scroll', place, true); };
|
|
186
|
-
}, [anchorRef]);
|
|
187
|
-
return h('span', { ref: marker, hidden: true });
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function cardContent({ title, path, time, statuses, archived, reason, tasks = [], anchorRef, onOpenTask, officialSchedule, scheduleSnapshot, catalogT, scheduleT }, t) {
|
|
1234
|
+
function cardContent({ title, path, time, statuses, archived, reason, tasks = [], onOpenTask }, t) {
|
|
191
1235
|
const active = tasks.filter((task) => task.status === 'active').sort((a, b) => {
|
|
192
1236
|
const next = (task) => Math.max(Date.parse(task.record?.scheduledAt) || 0, Date.parse(task.record?.deliveryFloorEndsAt) || 0);
|
|
193
1237
|
return next(a) - next(b);
|
|
194
1238
|
});
|
|
195
1239
|
const visibleTasks = [...active.slice(0, 2), ...tasks.filter((task) => task.status !== 'active')];
|
|
196
1240
|
return h('div', { className: 'dsh-mop-hover-content' },
|
|
197
|
-
h(
|
|
1241
|
+
h('div', { className: 'dsh-mop-hover-title' }, title),
|
|
198
1242
|
path ? h('div', { className: 'dsh-mop-hover-path' }, path) : null,
|
|
199
1243
|
time ? h('div', { className: 'dsh-mop-hover-time' }, time) : null,
|
|
200
1244
|
...visibleTasks.map((task, index) => h('button', { key: task.id || index, type: 'button', className: 'dsh-mop-hover-status dsh-mop-hover-archived dsh-mop-hover-task-button',
|
|
201
1245
|
disabled: !task.id, onClick: (event) => { event.stopPropagation(); return onOpenTask?.(task.id); },
|
|
202
1246
|
onKeyDown: (event) => { event.stopPropagation(); } },
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
: h(React.Fragment, null, officialIcon('clock-outline', 14), h('span', null, task.title || task.id),
|
|
207
|
-
task.showStatus || task.status === 'paused' || task.status === 'ended' ? h('span', null, scheduleT?.(`status.${task.status}`)) : null))),
|
|
208
|
-
active.length > 2 ? h('div', { className: 'dsh-mop-hover-time' }, catalogT?.('hover.more', { count: active.length - 2 })) : null,
|
|
1247
|
+
officialIcon('clock-outline', 14), h('span', null, task.title || task.id),
|
|
1248
|
+
task.showStatus || task.status === 'paused' || task.status === 'ended' ? h('span', null, t(`status.${task.status}`)) : null)),
|
|
1249
|
+
active.length > 2 ? h('div', { className: 'dsh-mop-hover-time' }, t('hover.more', { count: active.length - 2 })) : null,
|
|
209
1250
|
...(statuses ?? []).map((entry) => h('div', { key: entry.key, className: 'dsh-mop-hover-status' },
|
|
210
1251
|
h(StateDot, { state: entry.state }), h('span', null, t(entry.key, entry.params)))),
|
|
211
1252
|
archived ? h('div', { className: 'dsh-mop-hover-status dsh-mop-hover-archived' },
|
|
@@ -256,90 +1297,6 @@ window.__ModuleLoader__.load({
|
|
|
256
1297
|
delete element.dataset.clipped;
|
|
257
1298
|
}
|
|
258
1299
|
|
|
259
|
-
/** Join DSH's authoritative session-list flags without inferring from titles. */
|
|
260
|
-
function mergeSessionSummaries(data, summary, rpcId) {
|
|
261
|
-
if (summary.rpcId !== rpcId || !summary.result?.ok || !Array.isArray(summary.result.value?.items)) {
|
|
262
|
-
throw new Error('session/list unavailable');
|
|
263
|
-
}
|
|
264
|
-
const byId = new Map(summary.result.value.items.map((item) => [item.sessionId, item]));
|
|
265
|
-
const merge = (item) => {
|
|
266
|
-
const current = byId.get(item.id);
|
|
267
|
-
return current ? { ...item, blank: current.blank,
|
|
268
|
-
updatedAt: Number.isFinite(current.updatedAt) && current.updatedAt > 0 ? current.updatedAt : item.mtimeMs,
|
|
269
|
-
running: current.running,
|
|
270
|
-
live: typeof current.running === 'boolean' ? current.running : item.live } : item;
|
|
271
|
-
};
|
|
272
|
-
return { ...data, sessions: (data.sessions ?? []).map(merge), recycled: (data.recycled ?? []).map(merge) };
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/** Read the same root hooks used by the official workspace sidebar. */
|
|
276
|
-
function LiveSection(props) {
|
|
277
|
-
const liveSessions = props.useSessions((value) => value);
|
|
278
|
-
const liveStatuses = props.useSessionStatus((value) => value);
|
|
279
|
-
return h(SectionContent, { ...props, liveSessions, liveStatuses });
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
function SessionSection(props) {
|
|
283
|
-
return typeof props.useSessions === 'function' && typeof props.useSessionStatus === 'function'
|
|
284
|
-
? h(LiveSection, props) : h(SectionContent, props);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
function ScheduleSection(props) {
|
|
288
|
-
const scheduleSnapshot = useSyncExternalStore(props.scheduleSource.subscribe, props.scheduleSource.getSnapshot, props.scheduleSource.getSnapshot);
|
|
289
|
-
return h(SessionSection, { ...props, scheduleSnapshot });
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function Section(props) {
|
|
293
|
-
return props.scheduleSource && typeof useSyncExternalStore === 'function'
|
|
294
|
-
? h(ScheduleSection, props) : h(SessionSection, props);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
function withSchedule(item, snapshot) {
|
|
298
|
-
if (!snapshot?.settled || !Array.isArray(snapshot.records)) return item;
|
|
299
|
-
const records = snapshot.records.filter((task) => (task.involvedSessionIds ?? []).includes(item.id)
|
|
300
|
-
|| (task.target?.kind !== 'new' && task.target?.sessionId === item.id)
|
|
301
|
-
|| task.lastDelivery?.targetSessionId === item.id);
|
|
302
|
-
return { ...item,
|
|
303
|
-
purgeBlock: item.purgeBlock === 'reference_check_failed' ? item.purgeBlock : records.length ? 'schedule_reference' : null,
|
|
304
|
-
scheduleTasks: records.map((task) => ({ id: task.id, title: task.title || task.id, status: task.status, sessionId: item.id, record: task,
|
|
305
|
-
officialVisible: (task.involvedSessionIds ?? []).includes(item.id) || (task.target?.kind !== 'new' && task.target?.sessionId === item.id) })) };
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/** Overlay the authoritative live state without changing the persisted overview. */
|
|
309
|
-
function liveItem(item, liveSessions, liveStatuses) {
|
|
310
|
-
const current = liveSessions?.byId?.[item.id];
|
|
311
|
-
const status = liveStatuses?.get?.(item.id);
|
|
312
|
-
const running = status?.running ?? current?.running ?? item.running ?? item.live;
|
|
313
|
-
const pending = ['approval', 'plan-review', 'question'].includes(status?.pendingInteraction?.kind)
|
|
314
|
-
? status.pendingInteraction.kind : undefined;
|
|
315
|
-
const children = liveSessions?.projectionsBySession?.[item.id]?.values?.subagentCatalog;
|
|
316
|
-
const runningChildren = Array.isArray(children) ? children.reduce((count, child) =>
|
|
317
|
-
count + ((liveStatuses?.get?.(child.id)?.running ?? liveSessions?.byId?.[child.id]?.running) === true ? 1 : 0), 0) : 0;
|
|
318
|
-
return { ...item,
|
|
319
|
-
title: typeof current?.title === 'string' && current.title ? current.title : item.title,
|
|
320
|
-
blank: typeof current?.blank === 'boolean' ? current.blank : item.blank,
|
|
321
|
-
updatedAt: Number.isFinite(current?.updatedAt) && current.updatedAt > 0 ? current.updatedAt : item.updatedAt,
|
|
322
|
-
running: running === true, pending, runningChildren,
|
|
323
|
-
completed: status?.completionUnread === true,
|
|
324
|
-
live: running === true || pending !== undefined || runningChildren > 0,
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// Mirrors the official workspace row's status precedence.
|
|
329
|
-
function sessionStatuses(item) {
|
|
330
|
-
const labels = { approval: 'status.waitingApproval', 'plan-review': 'status.planReview', question: 'status.waitingAnswer' };
|
|
331
|
-
const child = item.runningChildren > 0 ? { state: 'ongoing',
|
|
332
|
-
key: item.runningChildren === 1 ? 'status.subagentsRunning.one' : 'status.subagentsRunning.other',
|
|
333
|
-
params: { n: item.runningChildren } } : null;
|
|
334
|
-
let primary;
|
|
335
|
-
if (labels[item.pending]) primary = { state: 'warning', key: labels[item.pending] };
|
|
336
|
-
else if (item.running ?? item.live) primary = { state: 'ongoing', key: 'status.running' };
|
|
337
|
-
else if (child) return [child];
|
|
338
|
-
else if (item.completed) primary = { state: 'done', key: 'status.completed' };
|
|
339
|
-
else primary = { state: 'idle', key: 'status.idle' };
|
|
340
|
-
return child ? [primary, child] : [primary];
|
|
341
|
-
}
|
|
342
|
-
|
|
343
1300
|
function archiveActivityLine(entry, t) {
|
|
344
1301
|
const items = Array.isArray(entry.items) ? entry.items : [];
|
|
345
1302
|
const n = items.length;
|
|
@@ -368,7 +1325,7 @@ window.__ModuleLoader__.load({
|
|
|
368
1325
|
return t('frequency.hostCustom');
|
|
369
1326
|
}
|
|
370
1327
|
|
|
371
|
-
function SectionContent({ t,
|
|
1328
|
+
function SectionContent({ t, archiveNotice, workspaceActions, sessionsService }) {
|
|
372
1329
|
const [tab, setTab] = useState('sessions');
|
|
373
1330
|
const [query, setQuery] = useState('');
|
|
374
1331
|
const [overview, setOverview] = useState(null);
|
|
@@ -382,14 +1339,16 @@ window.__ModuleLoader__.load({
|
|
|
382
1339
|
|
|
383
1340
|
const workspaceName = (item) => {
|
|
384
1341
|
const title = item.workspaceTitle || item.workspacePath;
|
|
385
|
-
return title === 'default-workspace' ? t('workspace.defaultName') : title ||
|
|
1342
|
+
return title === 'default-workspace' ? t('workspace.defaultName') : title || t('group.ungrouped');
|
|
386
1343
|
};
|
|
387
|
-
const displayTitle = (item) => item.blank === true ?
|
|
1344
|
+
const displayTitle = (item) => item.blank === true ? t('session.new')
|
|
388
1345
|
: item.title === 'default-workspace' ? t('workspace.defaultName') : item.title;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
const
|
|
392
|
-
const
|
|
1346
|
+
// Sessions and residue facts (blank/updatedAt/running) all come from the
|
|
1347
|
+
// plugin's own Host route, over official services; refresh on every action.
|
|
1348
|
+
const sessionItems = overview?.sessions ?? [];
|
|
1349
|
+
const archivedItems = overview?.recycled ?? [];
|
|
1350
|
+
const selectableIds = useMemo(() => new Set((tab === 'sessions' ? sessionItems : archivedItems)
|
|
1351
|
+
.filter((item) => !item.protected).map((item) => item.id)), [overview, tab]);
|
|
393
1352
|
const selectedSessionIds = [...checked].filter((id) => selectableIds.has(id));
|
|
394
1353
|
|
|
395
1354
|
useEffect(() => {
|
|
@@ -398,7 +1357,7 @@ window.__ModuleLoader__.load({
|
|
|
398
1357
|
const next = new Set([...current].filter((id) => selectableIds.has(id)));
|
|
399
1358
|
return next.size === current.size ? current : next;
|
|
400
1359
|
});
|
|
401
|
-
}, [tab, overview
|
|
1360
|
+
}, [tab, overview]);
|
|
402
1361
|
|
|
403
1362
|
const refresh = useCallback(async () => {
|
|
404
1363
|
setBusy(true);
|
|
@@ -413,22 +1372,7 @@ window.__ModuleLoader__.load({
|
|
|
413
1372
|
return;
|
|
414
1373
|
}
|
|
415
1374
|
if (!Array.isArray(raw?.residue?.items)) throw new Error('invalid residue response');
|
|
416
|
-
|
|
417
|
-
// DSH 的 session/list 含官方 blank 标志;标题不等于空白状态。
|
|
418
|
-
try {
|
|
419
|
-
const rpcId = globalThis.crypto?.randomUUID?.() ?? `dsh-mop-${Date.now()}-${Math.random()}`;
|
|
420
|
-
const summaryResponse = await fetch('api/session/list', {
|
|
421
|
-
method: 'POST', headers: { 'content-type': 'application/json' },
|
|
422
|
-
body: JSON.stringify({ type: 'client-request', rpcId, method: 'session/list', payload: { args: { _request: {} } } }),
|
|
423
|
-
});
|
|
424
|
-
if (!summaryResponse.ok) throw new Error(`HTTP ${summaryResponse.status}`);
|
|
425
|
-
const summary = await summaryResponse.json();
|
|
426
|
-
Object.assign(data, mergeSessionSummaries(data, summary, rpcId));
|
|
427
|
-
} catch (error) {
|
|
428
|
-
// 无法取得标记时仍展示清单;不要根据标题猜测空白状态。
|
|
429
|
-
console.warn('dsh-mop: session status unavailable', error);
|
|
430
|
-
}
|
|
431
|
-
setOverview(data);
|
|
1375
|
+
setOverview(raw);
|
|
432
1376
|
setLoadError(false);
|
|
433
1377
|
} catch {
|
|
434
1378
|
setLoadError(true);
|
|
@@ -474,35 +1418,54 @@ window.__ModuleLoader__.load({
|
|
|
474
1418
|
void refresh();
|
|
475
1419
|
}, [refresh, showNotice]);
|
|
476
1420
|
|
|
1421
|
+
// 切换标签的公共状态重置(调用方可再叠加 setNotice/setDialog)。
|
|
1422
|
+
const switchTab = (next) => {
|
|
1423
|
+
setChecked(new Set()); setQuery(''); setSearchCollapsed(new Set()); setTab(next);
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
// 批量取消归档:优先官方 uiWorkspace 动作,缺失时走本插件 Host 路由;
|
|
1427
|
+
// 两个入口都收敛为 {done, failed} 形状(撤销 toast 与还原按钮共用)。
|
|
1428
|
+
const unarchiveIds = useCallback(async (ids, { busy = true } = {}) => {
|
|
1429
|
+
if (!workspaceActions) return post('unarchive', { sessionIds: ids });
|
|
1430
|
+
const done = [], failed = [];
|
|
1431
|
+
const run = async () => {
|
|
1432
|
+
for (const id of ids) {
|
|
1433
|
+
try { await workspaceActions.unarchiveSession(id); done.push(id); }
|
|
1434
|
+
catch (error) { failed.push({ id, message: errorText(error, t) }); }
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
try { if (busy) setBusy(true); await run(); } finally { if (busy) setBusy(false); }
|
|
1438
|
+
return { done, failed };
|
|
1439
|
+
}, [post, t, workspaceActions]);
|
|
1440
|
+
|
|
1441
|
+
/** 批量动作收尾的公共尾部:默认保留失败行的勾选,构造去重原因的
|
|
1442
|
+
* 失败 toast(无失败则空文本→清除提示),并刷新。 */
|
|
1443
|
+
const reportFailures = useCallback((r, keyOf, failureKey, actions, { retain = true } = {}) => {
|
|
1444
|
+
if (retain) setChecked(new Set(r.failed.map(keyOf)));
|
|
1445
|
+
const detail = r.failed.map((item) => errorText(item, t)).filter(Boolean);
|
|
1446
|
+
report(r.failed.length ? resultText(t, 0, '', failureKey, detail) : '', r.failed.length > 0, actions);
|
|
1447
|
+
}, [report, t]);
|
|
1448
|
+
|
|
477
1449
|
const reportArchived = async (done, failed = [], stopped = false) => {
|
|
478
|
-
const detail = failed.map((item) => errorText(item, t
|
|
1450
|
+
const detail = failed.map((item) => errorText(item, t)).filter(Boolean);
|
|
479
1451
|
const single = done.length === 1 && failed.length === 0;
|
|
480
1452
|
const notices = archiveNotice ? await Promise.all(done.map(async (id) => {
|
|
481
1453
|
try { return await archiveNotice(id); } catch { return undefined; }
|
|
482
1454
|
})) : [];
|
|
483
1455
|
const extra = notices.filter((notice) => notice?.text);
|
|
484
|
-
const text = single ? extra[0]?.text ??
|
|
485
|
-
: resultText(t, done.length,
|
|
1456
|
+
const text = single ? extra[0]?.text ?? t(stopped ? 'toast.stoppedAndArchived' : 'toast.archived')
|
|
1457
|
+
: resultText(t, done.length, t('notice.archived', { n: done.length }), failed.length ? 'notice.archiveFailed' : '', detail);
|
|
486
1458
|
const actions = done.length ? [{
|
|
487
|
-
label:
|
|
488
|
-
onClick: async () => {
|
|
1459
|
+
label: t('toast.archivedUndo'), ...(single ? {} : { prefix: t('toast.archivedOr') }), onClick: async () => {
|
|
489
1460
|
try {
|
|
490
1461
|
setNotice(null);
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
for (const id of done) {
|
|
495
|
-
try { await workspaceActions.unarchiveSession(id); }
|
|
496
|
-
catch (error) { errors.push({ id, message: errorText(error, t) }); }
|
|
497
|
-
}
|
|
498
|
-
result = { failed: errors };
|
|
499
|
-
} else result = await post('unarchive', { sessionIds: done });
|
|
500
|
-
const detail = result.failed.map((failure) => errorText(failure, t, workspaceT)).filter(Boolean).join('; ');
|
|
501
|
-
report(result.failed.length ? resultText(t, 0, '', result.failed.length, detail) : '', result.failed.length > 0);
|
|
1462
|
+
// 撤销不占用主区 busy(toast 即时反馈),也不改勾选(原行为)。
|
|
1463
|
+
reportFailures(await unarchiveIds(done, { busy: false }), (item) => item.id, 'notice.restoreFailed',
|
|
1464
|
+
undefined, { retain: false });
|
|
502
1465
|
} catch (error) { showNotice(errorText(error, t), true); }
|
|
503
1466
|
},
|
|
504
|
-
}, { prefix:
|
|
505
|
-
setNotice(null);
|
|
1467
|
+
}, { prefix: t('toast.archivedOr'), label: t('delete'), onClick: () => {
|
|
1468
|
+
setNotice(null); switchTab('recycled');
|
|
506
1469
|
} }] : undefined;
|
|
507
1470
|
report(single || !extra.length ? text : `${text} · ${extra.map((notice) => notice.text).join(' · ')}`,
|
|
508
1471
|
failed.length > 0 || extra.some((notice) => notice.tone === 'warning'), actions);
|
|
@@ -550,7 +1513,7 @@ window.__ModuleLoader__.load({
|
|
|
550
1513
|
await reportArchived(retry.done, [], true);
|
|
551
1514
|
next();
|
|
552
1515
|
} else {
|
|
553
|
-
showNotice(retry.failed.map((failure) => errorText(failure, t
|
|
1516
|
+
showNotice(retry.failed.map((failure) => errorText(failure, t) || t('load.failed')).join('; '), true);
|
|
554
1517
|
}
|
|
555
1518
|
} catch (error) { showNotice(errorText(error, t), true); }
|
|
556
1519
|
} });
|
|
@@ -559,78 +1522,55 @@ window.__ModuleLoader__.load({
|
|
|
559
1522
|
} catch (error) {
|
|
560
1523
|
showNotice(errorText(error, t), true);
|
|
561
1524
|
}
|
|
562
|
-
}, [checked, tab, overview,
|
|
1525
|
+
}, [checked, tab, overview, post, report, showNotice, t, workspaceActions, archiveNotice]);
|
|
563
1526
|
|
|
564
1527
|
const runPurge = useCallback(async () => {
|
|
565
1528
|
try {
|
|
566
1529
|
if (selectedSessionIds.length === 0) return;
|
|
567
1530
|
const r = await post('purge', { sessionIds: selectedSessionIds });
|
|
568
1531
|
await syncSessionList();
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
report(r.failed.length ? resultText(t, 0, '', r.failed.length, detail) : '', r.failed.length > 0);
|
|
1532
|
+
// 原因去重后进 toast;哪个会话失败看列表里保持勾选的行。
|
|
1533
|
+
// 夹层失败的主场景:剩余的锁壳目录会落在「残留」栏,给一个直达入口。
|
|
1534
|
+
const partial = r.failed.some((item) => item.code === 'cleanup_partial');
|
|
1535
|
+
reportFailures(r, (item) => item.id, 'notice.purgeFailed', partial ? [{ label: t('tabs.residue'), onClick: () => {
|
|
1536
|
+
setNotice(null); switchTab('residue');
|
|
1537
|
+
} }] : undefined);
|
|
576
1538
|
} catch (error) {
|
|
577
1539
|
showNotice(errorText(error, t), true);
|
|
578
1540
|
}
|
|
579
|
-
}, [checked, tab, overview,
|
|
1541
|
+
}, [checked, tab, overview, post, reportFailures, showNotice, t, syncSessionList]);
|
|
580
1542
|
|
|
581
1543
|
const runRestore = useCallback(async () => {
|
|
582
1544
|
try {
|
|
583
1545
|
if (selectedSessionIds.length === 0) return;
|
|
584
|
-
|
|
585
|
-
if (workspaceActions) {
|
|
586
|
-
const done = [], failed = [];
|
|
587
|
-
setBusy(true);
|
|
588
|
-
try {
|
|
589
|
-
for (const id of selectedSessionIds) {
|
|
590
|
-
try { await workspaceActions.unarchiveSession(id); done.push(id); }
|
|
591
|
-
catch (error) { failed.push({ id, message: errorText(error, t) }); }
|
|
592
|
-
}
|
|
593
|
-
r = { done, failed };
|
|
594
|
-
} finally { setBusy(false); }
|
|
595
|
-
} else r = await post('unarchive', { sessionIds: selectedSessionIds });
|
|
596
|
-
setChecked(new Set(r.failed.map((item) => item.id)));
|
|
597
|
-
const detail = r.failed.map((item) => errorText(item, t, workspaceT)).filter(Boolean).join('; ');
|
|
598
|
-
report(r.failed.length ? resultText(t, 0, '', r.failed.length, detail) : '', r.failed.length > 0);
|
|
1546
|
+
reportFailures(await unarchiveIds(selectedSessionIds), (item) => item.id, 'notice.restoreFailed');
|
|
599
1547
|
} catch (error) {
|
|
600
1548
|
showNotice(errorText(error, t), true);
|
|
601
1549
|
}
|
|
602
|
-
}, [checked, tab, overview,
|
|
1550
|
+
}, [checked, tab, overview, reportFailures, showNotice, t, unarchiveIds]);
|
|
603
1551
|
|
|
604
1552
|
const runClean = useCallback(async (confirmedTasks = {}) => {
|
|
605
1553
|
try {
|
|
606
1554
|
const r = await post('residue', { keys: [...checked], confirmedTasks });
|
|
607
1555
|
await syncSessionList();
|
|
608
|
-
|
|
609
|
-
const detail = r.failed.map((item) => {
|
|
610
|
-
const reason = errorText(item, t);
|
|
611
|
-
const entry = overview?.residue?.items?.find((row) => row.key === item.key);
|
|
612
|
-
const name = entry?.label || item.id || item.key;
|
|
613
|
-
return reason ? `${name ? `${name}: ` : ''}${reason}` : '';
|
|
614
|
-
}).filter(Boolean).join('; ');
|
|
615
|
-
report(r.failed.length ? resultText(t, 0, '', r.failed.length, detail) : '', r.failed.length > 0);
|
|
1556
|
+
reportFailures(r, (item) => item.key, 'notice.cleanFailed');
|
|
616
1557
|
} catch (error) {
|
|
617
1558
|
showNotice(errorText(error, t), true);
|
|
618
1559
|
}
|
|
619
|
-
}, [checked, overview, post,
|
|
1560
|
+
}, [checked, overview, post, reportFailures, showNotice, t, syncSessionList]);
|
|
620
1561
|
|
|
621
1562
|
const ui = {
|
|
622
1563
|
checked,
|
|
623
1564
|
home: overview?.home,
|
|
624
|
-
officialSchedule, scheduleSnapshot, catalogT, scheduleT,
|
|
625
1565
|
onOpenTask: async (sessionId, taskId) => {
|
|
626
1566
|
try {
|
|
627
1567
|
const result = await post('task', { sessionId, id: taskId });
|
|
628
|
-
if (!result.task) throw new Error(
|
|
1568
|
+
if (!result.task) throw new Error(t('detail.missing'));
|
|
629
1569
|
setDialog({ kind: 'taskDetail', task: result.task });
|
|
630
1570
|
} catch (error) {
|
|
631
1571
|
const message = String(error?.message ?? error);
|
|
632
|
-
showNotice(message.includes('dsh-mop:task_not_found') ?
|
|
633
|
-
: message.includes('dsh-mop:task_unavailable') ?
|
|
1572
|
+
showNotice(message.includes('dsh-mop:task_not_found') ? t('detail.missing')
|
|
1573
|
+
: message.includes('dsh-mop:task_unavailable') ? t('list.error') : errorText(error, t), true);
|
|
634
1574
|
}
|
|
635
1575
|
},
|
|
636
1576
|
onSelect: (key, on) => setChecked((prev) => {
|
|
@@ -646,25 +1586,29 @@ window.__ModuleLoader__.load({
|
|
|
646
1586
|
}),
|
|
647
1587
|
};
|
|
648
1588
|
|
|
1589
|
+
// 派生列表(本地化标题、搜索过滤、分组排序)只在数据源变化时重算;
|
|
1590
|
+
// 勾选、toast 等交互不触发。
|
|
649
1591
|
const term = query.trim().toLocaleLowerCase();
|
|
650
|
-
const
|
|
651
|
-
.
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
const visibleItems = displayItems.filter(matches);
|
|
1592
|
+
const displayItems = useMemo(() => sortByDisplayedTime((tab === 'sessions' ? sessionItems : archivedItems)
|
|
1593
|
+
.map((item) => ({ ...item,
|
|
1594
|
+
title: displayTitle(item),
|
|
1595
|
+
workspaceTitle: workspaceName(item),
|
|
1596
|
+
})), sessionTime), [overview, tab, t]);
|
|
1597
|
+
const visibleItems = useMemo(() => displayItems.filter((item) => matchesTerm(item, term)), [displayItems, term]);
|
|
657
1598
|
const ready = !!overview && !busy;
|
|
658
1599
|
const kindLabels = { 'orphan-cache': 'residue.orphanCache', 'orphan-task': 'residue.orphanTask', 'ghost-registry': 'residue.ghostRegistry',
|
|
659
|
-
'shell-dir': 'residue.sessionDirectory', 'empty-project': 'residue.emptyProject' };
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
1600
|
+
'shell-dir': 'residue.sessionDirectory', 'empty-project': 'residue.emptyProject', 'memory-resident': 'residue.memoryResident' };
|
|
1601
|
+
const residueItems = useMemo(() => {
|
|
1602
|
+
const allResidue = overview?.residue?.items ?? [];
|
|
1603
|
+
const registeredIds = new Set(allResidue.filter((item) => item.kind === 'ghost-registry').map((item) => item.id));
|
|
1604
|
+
return sortByDisplayedTime(allResidue.map((item) => ({ ...item,
|
|
1605
|
+
workspaceTitle: workspaceName(item),
|
|
1606
|
+
hint: t(kindLabels[item.kind]),
|
|
1607
|
+
relatedRegistration: item.kind === 'orphan-cache' && registeredIds.has(item.id) })), residueTime);
|
|
1608
|
+
}, [overview, t]);
|
|
1609
|
+
const visibleResidue = useMemo(() => residueItems.filter((item) => matchesTerm(item, term)), [residueItems, term]);
|
|
1610
|
+
// 内存常驻行不可清理(数据已删净,仅剩进程内条目),不进入选择集。
|
|
1611
|
+
const allKeys = tab === 'residue' ? visibleResidue.filter((x) => x.kind !== 'memory-resident').map((x) => x.key)
|
|
668
1612
|
: visibleItems.filter((x) => selectableIds.has(x.id)).map((x) => x.id);
|
|
669
1613
|
const allSelected = allKeys.length > 0 && allKeys.every((k) => checked.has(k));
|
|
670
1614
|
const toggleVisible = () => setChecked((prev) => {
|
|
@@ -673,10 +1617,10 @@ window.__ModuleLoader__.load({
|
|
|
673
1617
|
return next;
|
|
674
1618
|
});
|
|
675
1619
|
const selectedItems = tab === 'residue' ? residueItems.filter((x) => checked.has(x.key))
|
|
676
|
-
:
|
|
1620
|
+
: displayItems.filter((x) => checked.has(x.id));
|
|
677
1621
|
const measuredItems = selectedItems.filter((x) => typeof x.sizeBytes === 'number' && Number.isFinite(x.sizeBytes));
|
|
678
1622
|
const selectedBytes = measuredItems.length ? measuredItems.reduce((sum, x) => sum + x.sizeBytes, 0) : null;
|
|
679
|
-
const tabLabels = { sessions:
|
|
1623
|
+
const tabLabels = { sessions: t('section.sessions'), recycled: t('tabs.archived'), residue: t('tabs.residue') };
|
|
680
1624
|
const searchPlaceholder = t('search.placeholder', { section: tabLabels[tab] });
|
|
681
1625
|
const confirmResidue = () => {
|
|
682
1626
|
const tasks = selectedItems.filter((item) => item.kind === 'orphan-task');
|
|
@@ -689,10 +1633,10 @@ window.__ModuleLoader__.load({
|
|
|
689
1633
|
return h('div', { className: 'dsh-mop' },
|
|
690
1634
|
h(Style, null),
|
|
691
1635
|
h('div', { className: 'dsh-mop-header' }, h(SegmentedTabs, {
|
|
692
|
-
className: 'dsh-mop-tabs', size: 'sm', label:
|
|
1636
|
+
className: 'dsh-mop-tabs', size: 'sm', label: t('actions.archive'), value: tab,
|
|
693
1637
|
items: [['sessions', tabLabels.sessions], ['recycled', tabLabels.recycled], ['residue', tabLabels.residue]]
|
|
694
1638
|
.map(([value, label]) => ({ value, label, id: `dsh-mop-tab-${value}`, panelId: `dsh-mop-panel-${value}` })),
|
|
695
|
-
onChange: (key) => { if (busy) return;
|
|
1639
|
+
onChange: (key) => { if (busy) return; switchTab(key); setDialog(null); },
|
|
696
1640
|
}),
|
|
697
1641
|
h('div', { className: 'dsh-mop-search' },
|
|
698
1642
|
h(Input, { className: 'dsh-mop-search-input', icon: officialIcon('search-outline', 16),
|
|
@@ -703,48 +1647,47 @@ window.__ModuleLoader__.load({
|
|
|
703
1647
|
!overview ? h('div', { className: 'dsh-mop-body dsh-mop-state' },
|
|
704
1648
|
loadError ? [t(loadError === 'host-version' ? 'host.updateRequired' : 'load.failed'), ' ', h(Button, { variant: 'outline', size: 'sm', onClick: () => { setLoadError(false); void refresh(); } }, t('retry'))] : t('loading')) : null,
|
|
705
1649
|
overview && tab !== 'residue' ? h('div', { className: 'dsh-mop-body', role: 'tabpanel', id: `dsh-mop-panel-${tab}`, 'aria-labelledby': `dsh-mop-tab-${tab}` },
|
|
706
|
-
visibleItems.length === 0 ? h('p', { className: 'dsh-mop-state' }, query.trim() ?
|
|
707
|
-
: (tab === 'sessions' ?
|
|
708
|
-
h(HoverCardGroup, null, ...renderGroups(visibleItems, (x,
|
|
709
|
-
{ t, workspaceT }))) : null,
|
|
1650
|
+
visibleItems.length === 0 ? h('p', { className: 'dsh-mop-state' }, query.trim() ? t('empty.noMatches')
|
|
1651
|
+
: (tab === 'sessions' ? t('empty.none') : t('empty.noneArchived'))) :
|
|
1652
|
+
h(HoverCardGroup, null, ...renderGroups(visibleItems, (x, checkNode) => sessionCard(x, t, checkNode), ui, t))) : null,
|
|
710
1653
|
overview && tab === 'residue' ? h('div', { className: 'dsh-mop-body', role: 'tabpanel', id: `dsh-mop-panel-${tab}`, 'aria-labelledby': `dsh-mop-tab-${tab}` },
|
|
711
|
-
visibleResidue.length === 0 ? h('p', { className: 'dsh-mop-state' }, query.trim() ?
|
|
712
|
-
h(HoverCardGroup, null, ...renderResidueGroups(visibleResidue, ui, t
|
|
1654
|
+
visibleResidue.length === 0 ? h('p', { className: 'dsh-mop-state' }, query.trim() ? t('empty.noMatches') : t('empty.residue')) :
|
|
1655
|
+
h(HoverCardGroup, null, ...renderResidueGroups(visibleResidue, ui, t))) : null,
|
|
713
1656
|
h('div', { className: 'dsh-mop-foot' },
|
|
714
1657
|
dialog?.kind === 'taskDetail' ? h(Modal, {
|
|
715
|
-
open: true, onClose: () => setDialog(null), closeLabel:
|
|
716
|
-
title:
|
|
717
|
-
footer: h(Button, { variant: 'outline', onClick: () => setDialog(null) },
|
|
1658
|
+
open: true, onClose: () => setDialog(null), closeLabel: t('detail.close'), className: 'dsh-mop-dialog',
|
|
1659
|
+
title: t('detail.label'),
|
|
1660
|
+
footer: h(Button, { variant: 'outline', onClick: () => setDialog(null) }, t('close')),
|
|
718
1661
|
}, h('dl', { className: 'dsh-mop-task-detail' },
|
|
719
1662
|
...[
|
|
720
|
-
[
|
|
721
|
-
[
|
|
722
|
-
[
|
|
723
|
-
[
|
|
1663
|
+
[t('detail.name'), dialog.task.title],
|
|
1664
|
+
[t('detail.instruction'), dialog.task.prompt],
|
|
1665
|
+
[t('statusFilter.label'), t(`status.${dialog.task.status}`)],
|
|
1666
|
+
[t('rule.repeat'), taskRule(dialog.task, t)],
|
|
724
1667
|
...(dialog.task.status === 'active' && dialog.task.scheduledAt && Number.isFinite(Date.parse(dialog.task.scheduledAt))
|
|
725
|
-
? [[
|
|
726
|
-
[
|
|
1668
|
+
? [[t('detail.nextRun'), new Date(dialog.task.scheduledAt).toLocaleString()]] : []),
|
|
1669
|
+
[t('host.target'), t(dialog.task.target?.kind === 'session' ? 'host.currentConversation'
|
|
727
1670
|
: dialog.task.target?.kind === 'new_once' ? 'host.targetNewOnce' : 'host.targetNew')],
|
|
728
1671
|
].flatMap(([label, value], index) => [h('dt', { key: `label-${index}` }, label), h('dd', { key: `value-${index}` }, value)])))
|
|
729
1672
|
: dialog?.kind === 'archiveActive' ? h(Modal, {
|
|
730
|
-
open: true, onClose: () => { if (!busy) dialog.next(); }, closeLabel:
|
|
731
|
-
title:
|
|
732
|
-
description:
|
|
1673
|
+
open: true, onClose: () => { if (!busy) dialog.next(); }, closeLabel: t('close'), className: 'dsh-mop-dialog',
|
|
1674
|
+
title: t('archive.confirm.title'),
|
|
1675
|
+
description: t('archive.confirm.desc', { title: dialog.item.title || dialog.item.id }),
|
|
733
1676
|
footer: h(React.Fragment, null,
|
|
734
|
-
h(Button, { variant: 'outline', disabled: busy, onClick: dialog.next, 'data-modal-autofocus': '' },
|
|
1677
|
+
h(Button, { variant: 'outline', disabled: busy, onClick: dialog.next, 'data-modal-autofocus': '' }, t('cancel')),
|
|
735
1678
|
h(Button, { variant: 'outline', className: 'dsh-mop-danger', disabled: busy, onClick: dialog.run },
|
|
736
|
-
|
|
737
|
-
}, h('ul', { 'aria-label':
|
|
738
|
-
...dialog.item.activity.map((entry, index) => h('li', { key: index }, archiveActivityLine(entry,
|
|
1679
|
+
t(busy ? 'archive.confirm.pending' : 'archive.confirm.action'))),
|
|
1680
|
+
}, h('ul', { 'aria-label': t('archive.confirm.activity') },
|
|
1681
|
+
...dialog.item.activity.map((entry, index) => h('li', { key: index }, archiveActivityLine(entry, t)))),
|
|
739
1682
|
dialog.item.activity.some((entry) => entry.kind === 'schedule') ? h('p', { role: 'note' }, t('archive.scheduleDeletion')) : null)
|
|
740
1683
|
: dialog ? h(Modal, {
|
|
741
1684
|
open: true, className: 'dsh-mop-dialog', title: dialog.text,
|
|
742
1685
|
description: dialog.kind === 'purge' ? t('confirm.purge.description') : dialog.taskNames?.length ? t('confirm.tasks.description') : undefined,
|
|
743
|
-
closeLabel:
|
|
1686
|
+
closeLabel: t('close'), onClose: () => setDialog(null),
|
|
744
1687
|
footer: h('div', { className: 'dsh-mop-confirm-actions' },
|
|
745
|
-
h(Button, { variant: 'outline', onClick: () => setDialog(null), 'data-modal-autofocus': '' },
|
|
1688
|
+
h(Button, { variant: 'outline', onClick: () => setDialog(null), 'data-modal-autofocus': '' }, t('cancel')),
|
|
746
1689
|
h(Button, { variant: 'outline', className: 'dsh-mop-danger',
|
|
747
|
-
onClick: async () => { const d = dialog; setDialog(null); await d.run(); } },
|
|
1690
|
+
onClick: async () => { const d = dialog; setDialog(null); await d.run(); } }, t(dialog.kind === 'purge' ? 'delete.confirm' : 'clear.confirm'))),
|
|
748
1691
|
}, dialog.taskNames?.length ? h('div', { className: 'dsh-mop-confirm-tasks' },
|
|
749
1692
|
h('ul', null, ...dialog.taskNames.map((name, index) => h('li', { key: index }, name)))) : null)
|
|
750
1693
|
: null,
|
|
@@ -753,43 +1696,49 @@ window.__ModuleLoader__.load({
|
|
|
753
1696
|
onDone: () => setNotice((current) => current?.seq === notice.seq ? null : current) }) : null,
|
|
754
1697
|
h(React.Fragment, null,
|
|
755
1698
|
h('span', { className: 'dsh-mop-foot-info' },
|
|
756
|
-
|
|
1699
|
+
selectedBytes === null
|
|
1700
|
+
? t('selection.summaryCount', { n: checked.size })
|
|
1701
|
+
: t('selection.summary', { n: checked.size, size: formatBytes(selectedBytes) })),
|
|
757
1702
|
tab === 'sessions' ? h(Button, { variant: 'outline', disabled: !ready || selectedSessionIds.length === 0,
|
|
758
|
-
onClick: runArchive },
|
|
1703
|
+
onClick: runArchive }, t('actions.archive')) : null,
|
|
759
1704
|
tab === 'recycled' ? [
|
|
760
1705
|
h(Button, { key: 'restore', variant: 'outline', disabled: !ready || selectedSessionIds.length === 0,
|
|
761
|
-
onClick: runRestore },
|
|
1706
|
+
onClick: runRestore }, t('actions.unarchive')),
|
|
762
1707
|
h(Button, { key: 'action.purge', variant: 'outline', className: 'dsh-mop-danger', disabled: !ready || selectedSessionIds.length === 0,
|
|
763
|
-
onClick: () => setDialog({ kind: 'purge', text: t('confirm.purge.title', { provider: t('tabs.archived') }), run: runPurge }) }, t('
|
|
1708
|
+
onClick: () => setDialog({ kind: 'purge', text: t('confirm.purge.title', { provider: t('tabs.archived') }), run: runPurge }) }, t('delete')),
|
|
764
1709
|
] : null,
|
|
765
1710
|
tab === 'residue' ? h(Button, { variant: 'outline', className: 'dsh-mop-danger', disabled: !ready || checked.size === 0,
|
|
766
|
-
onClick: confirmResidue }, t('
|
|
1711
|
+
onClick: confirmResidue }, t('delete')) : null)));
|
|
767
1712
|
}
|
|
768
1713
|
|
|
769
|
-
/**
|
|
770
|
-
function sessionCard(x, t, checkNode
|
|
1714
|
+
/** 会话行的子节点:状态/选择框 + 标题 + 右侧元信息。 */
|
|
1715
|
+
function sessionCard(x, t, checkNode) {
|
|
771
1716
|
const timestamp = sessionTime(x);
|
|
772
|
-
const time = timestamp > 0 ? relativeTime(timestamp,
|
|
773
|
-
const status =
|
|
774
|
-
return
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
h('span', { className: 'dsh-mop-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
1717
|
+
const time = timestamp > 0 ? relativeTime(timestamp, t) : '';
|
|
1718
|
+
const status = sessionStatus(x);
|
|
1719
|
+
return [
|
|
1720
|
+
x.protected ? h('span', { className: 'dsh-mop-lead', 'aria-label': t('protection.label') }, officialIcon('shield-outline', 14)) : checkNode,
|
|
1721
|
+
...(x.live && !x.protected ? [h('span', { className: 'dsh-mop-lead', 'aria-label': t(status.key, status.params) }, h(StateDot, { state: status.state }))] : []),
|
|
1722
|
+
h('span', { className: 'dsh-mop-title' }, x.blank === true ? t('session.new') : x.title),
|
|
1723
|
+
h('span', { className: 'dsh-mop-row-side has-columns' },
|
|
1724
|
+
h('span', { className: 'dsh-mop-marker', ...(x.purgeBlock && !x.protected ? { 'aria-label': t(x.purgeBlock === 'schedule_reference' ? 'reference.schedule' : 'error.referenceCheck') } : { 'aria-hidden': true }) },
|
|
1725
|
+
x.purgeBlock && !x.protected ? officialIcon('shield-outline', 14) : null),
|
|
1726
|
+
h('span', { className: 'dsh-mop-size' }, typeof x.sizeBytes === 'number' ? formatBytes(x.sizeBytes) : ''),
|
|
1727
|
+
h('span', { className: 'dsh-mop-time' }, time)),
|
|
1728
|
+
];
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
// Mirrors the official workspace row's status precedence over the facts the
|
|
1732
|
+
// host route supplies (running/live only; pending states belong to the
|
|
1733
|
+
// official sidebar, which owns live session state).
|
|
1734
|
+
const SESSION_STATUS = { ongoing: { state: 'ongoing', key: 'status.running' }, idle: { state: 'idle', key: 'status.idle' } };
|
|
1735
|
+
function sessionStatus(item) {
|
|
1736
|
+
return item.live ? SESSION_STATUS.ongoing : SESSION_STATUS.idle;
|
|
786
1737
|
}
|
|
787
1738
|
|
|
788
1739
|
/** DSH theme's shared icon sprite, used by the official workspace rows. */
|
|
789
|
-
function groupHeading(key, title, isCollapsed, ui, path, createdAt,
|
|
790
|
-
const anchorRef = { current: null };
|
|
1740
|
+
function groupHeading(key, title, isCollapsed, ui, path, createdAt, t) {
|
|
791
1741
|
const button = h('button', {
|
|
792
|
-
ref: anchorRef,
|
|
793
1742
|
type: 'button', className: 'dsh-mop-group-name',
|
|
794
1743
|
onClick: () => ui.onToggleCollapse(key), 'aria-expanded': !isCollapsed,
|
|
795
1744
|
},
|
|
@@ -798,80 +1747,68 @@ window.__ModuleLoader__.load({
|
|
|
798
1747
|
officialIcon('triangle-right-fill', 14, `dsh-mop-chevron${isCollapsed ? '' : ' is-open'}`)),
|
|
799
1748
|
h('span', { className: 'dsh-mop-group-label' }, title));
|
|
800
1749
|
return h('div', { className: 'dsh-mop-group-title' }, path && createdAt != null && Number.isFinite(new Date(createdAt).getTime())
|
|
801
|
-
? rowWithHover(`workspace:${key}`, button, cardContent({
|
|
802
|
-
time: workspaceCreatedLabel(createdAt,
|
|
1750
|
+
? rowWithHover(`workspace:${key}`, button, cardContent({ title, path: displayPath(path, ui.home),
|
|
1751
|
+
time: workspaceCreatedLabel(createdAt, t) }, t), t, path)
|
|
803
1752
|
: button);
|
|
804
1753
|
}
|
|
805
1754
|
|
|
806
|
-
/**
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
const key = it.workspacePath || it.workspaceTitle || '';
|
|
811
|
-
if (!byWs.has(key)) byWs.set(key, { title: it.workspaceTitle || it.workspacePath || workspaceT('group.ungrouped'), path: it.workspacePath, createdAt: it.workspaceCreatedAt, list: [] });
|
|
812
|
-
byWs.get(key).list.push(it);
|
|
813
|
-
}
|
|
1755
|
+
/** 按工作区分组的行(items 须已按展示时间排序);
|
|
1756
|
+
* ui = {checked, onSelect(key), collapsed, onToggleCollapse(key)}。 */
|
|
1757
|
+
function renderGroups(items, cardOf, ui, t) {
|
|
1758
|
+
const byWs = groupedByWorkspace(items, t);
|
|
814
1759
|
return [...byWs.entries()].map(([wsKey, group]) => {
|
|
815
1760
|
const isCollapsed = ui.collapsed.has(wsKey);
|
|
816
1761
|
return h('div', { key: wsKey, className: 'dsh-mop-group' },
|
|
817
|
-
groupHeading(wsKey, group.title, isCollapsed, ui, group.path, group.createdAt,
|
|
1762
|
+
groupHeading(wsKey, group.title, isCollapsed, ui, group.path, group.createdAt, t),
|
|
818
1763
|
isCollapsed ? null : group.list.map((x) => {
|
|
819
|
-
const anchorRef = { current: null };
|
|
820
1764
|
const blocked = x.protected;
|
|
821
1765
|
const card = cardOf(x, blocked ? h('span', { className: 'dsh-mop-lead' }, '·') : h('input', {
|
|
822
1766
|
type: 'checkbox', className: 'dsh-mop-check', checked: ui.checked.has(x.id),
|
|
823
1767
|
onChange: () => ui.onSelect(x.id, !ui.checked.has(x.id)), 'aria-label': x.title,
|
|
824
1768
|
}));
|
|
825
|
-
const row = h('label', {
|
|
1769
|
+
const row = h('label', { className: `dsh-mop-row${blocked ? ' is-static' : ''}${x.archived ? ' is-archived' : ''}${ui.checked.has(x.id) ? ' is-selected' : ''}`,
|
|
826
1770
|
onPointerEnter: titleEnter, onPointerLeave: titleLeave },
|
|
827
|
-
h('div', { className: 'dsh-mop-row-main' }, ...card
|
|
1771
|
+
h('div', { className: 'dsh-mop-row-main' }, ...card));
|
|
828
1772
|
const timestamp = sessionTime(x);
|
|
829
|
-
return rowWithHover(x.id, row, cardContent({
|
|
830
|
-
time: x.blank ? '' : hoverTime(timestamp,
|
|
831
|
-
statuses:
|
|
1773
|
+
return rowWithHover(x.id, row, cardContent({ title: x.title, path: displayPath(x.cwd || x.workspacePath, ui.home),
|
|
1774
|
+
time: x.blank ? '' : hoverTime(timestamp, t),
|
|
1775
|
+
statuses: x.live || !x.archived ? [sessionStatus(x)] : [],
|
|
832
1776
|
archived: x.archived, tasks: x.purgeBlock === 'schedule_reference' ? x.scheduleTasks ?? [] : [],
|
|
833
|
-
officialSchedule: ui.officialSchedule, scheduleSnapshot: ui.scheduleSnapshot, catalogT: ui.catalogT, scheduleT: ui.scheduleT,
|
|
834
1777
|
onOpenTask: (taskId) => ui.onOpenTask?.(x.id, taskId),
|
|
835
|
-
reason: x.protected ? t('protection.label') : x.purgeBlock === 'reference_check_failed' ? t('error.referenceCheck') : x.purgeBlock === 'schedule_reference' && !x.scheduleTasks?.length ? t('reference.schedule') : '' },
|
|
836
|
-
|
|
1778
|
+
reason: x.protected ? t('protection.label') : x.purgeBlock === 'reference_check_failed' ? t('error.referenceCheck') : x.purgeBlock === 'schedule_reference' && !x.scheduleTasks?.length ? t('reference.schedule') : '' }, t),
|
|
1779
|
+
t, x.blank ? undefined : x.title);
|
|
837
1780
|
}));
|
|
838
1781
|
});
|
|
839
1782
|
}
|
|
840
1783
|
|
|
841
|
-
/**
|
|
842
|
-
function renderResidueGroups(items, ui, t
|
|
843
|
-
const byWorkspace =
|
|
844
|
-
for (const item of sortByDisplayedTime(items, residueTime)) {
|
|
845
|
-
const workspaceKey = item.workspacePath || '';
|
|
846
|
-
if (!byWorkspace.has(workspaceKey)) byWorkspace.set(workspaceKey, {
|
|
847
|
-
title: item.workspaceTitle || item.workspacePath || workspaceT('group.ungrouped'), path: item.workspacePath, createdAt: item.workspaceCreatedAt, entries: [],
|
|
848
|
-
});
|
|
849
|
-
byWorkspace.get(workspaceKey).entries.push(item);
|
|
850
|
-
}
|
|
1784
|
+
/** 按可核实的工作区分组(items 须已按展示时间排序)。 */
|
|
1785
|
+
function renderResidueGroups(items, ui, t) {
|
|
1786
|
+
const byWorkspace = groupedByWorkspace(items, t);
|
|
851
1787
|
return [...byWorkspace].map(([workspaceKey, group]) => {
|
|
852
1788
|
const key = `residue:workspace:${workspaceKey}`;
|
|
853
1789
|
const isCollapsed = ui.collapsed.has(key);
|
|
854
1790
|
return h('div', { key, className: 'dsh-mop-group' },
|
|
855
|
-
groupHeading(key, group.title, isCollapsed, ui, group.path, group.createdAt,
|
|
856
|
-
isCollapsed ? null : group.
|
|
857
|
-
const
|
|
858
|
-
const reason = item.kind === 'orphan-task' ? t('residue.orphanTask') : item.relatedRegistration ? t('residue.registeredCache')
|
|
859
|
-
|
|
860
|
-
|
|
1791
|
+
groupHeading(key, group.title, isCollapsed, ui, group.path, group.createdAt, t),
|
|
1792
|
+
isCollapsed ? null : group.list.map((item) => {
|
|
1793
|
+
const memory = item.kind === 'memory-resident';
|
|
1794
|
+
const reason = item.kind === 'orphan-task' ? t('residue.orphanTask') : item.relatedRegistration ? t('residue.registeredCache')
|
|
1795
|
+
: memory ? t('residue.memoryResident') : '';
|
|
1796
|
+
const row = h('label', { onPointerEnter: titleEnter, onPointerLeave: titleLeave,
|
|
1797
|
+
className: `dsh-mop-row${memory ? ' is-static' : ''}${ui.checked.has(item.key) ? ' is-selected' : ''}` },
|
|
861
1798
|
h('div', { className: 'dsh-mop-row-main' },
|
|
862
|
-
h('input', { type: 'checkbox', className: 'dsh-mop-check', checked: ui.checked.has(item.key),
|
|
1799
|
+
memory ? h('span', { className: 'dsh-mop-lead', 'aria-label': t('residue.memoryResident') }, '·') : h('input', { type: 'checkbox', className: 'dsh-mop-check', checked: ui.checked.has(item.key),
|
|
863
1800
|
onChange: () => ui.onSelect(item.key, !ui.checked.has(item.key)), 'aria-label': item.label }),
|
|
864
1801
|
h('span', { className: 'dsh-mop-title' }, item.label),
|
|
865
1802
|
h('span', { className: 'dsh-mop-row-side has-columns' },
|
|
866
1803
|
h('span', { className: 'dsh-mop-marker', 'aria-hidden': true }, item.kind === 'orphan-task' ? officialIcon('clock-outline', 14) : null),
|
|
867
1804
|
h('span', { className: 'dsh-mop-size' }, typeof item.sizeBytes === 'number' ? formatBytes(item.sizeBytes) : ''),
|
|
868
|
-
h('span', { className: 'dsh-mop-time' }, residueTime(item) > 0 ? relativeTime(residueTime(item),
|
|
869
|
-
return rowWithHover(item.key, row, cardContent({
|
|
1805
|
+
h('span', { className: 'dsh-mop-time' }, residueTime(item) > 0 ? relativeTime(residueTime(item), t) : ''))));
|
|
1806
|
+
return rowWithHover(item.key, row, cardContent({ title: item.label,
|
|
870
1807
|
path: displayPath(item.kind === 'orphan-task' ? item.targetSessionId : item.workspacePath || (item.id !== item.label ? item.id : ''), ui.home),
|
|
871
|
-
time: hoverTime(residueTime(item),
|
|
1808
|
+
time: hoverTime(residueTime(item), t), reason,
|
|
872
1809
|
tasks: item.kind === 'orphan-task' ? [{ id: item.id, title: item.label, status: item.status, showStatus: true }] : [],
|
|
873
|
-
|
|
874
|
-
|
|
1810
|
+
onOpenTask: (taskId) => ui.onOpenTask?.(item.targetSessionId, taskId) }, t),
|
|
1811
|
+
t, item.label);
|
|
875
1812
|
}));
|
|
876
1813
|
});
|
|
877
1814
|
}
|
|
@@ -894,8 +1831,6 @@ window.__ModuleLoader__.load({
|
|
|
894
1831
|
.dsh-mop-group-title > span:has(> .dsh-mop-group-name) { display: block; width: 100%; }
|
|
895
1832
|
.dsh-mop-group-name { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 0; border-radius: var(--dsw-radius-md, 8px); background: transparent; color: var(--dsw-alias-label-primary); font-size: 14px; line-height: 20px; cursor: pointer; text-align: left; }
|
|
896
1833
|
.dsh-mop-group-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
897
|
-
/* Official compact card is portaled above the settings panel. */
|
|
898
|
-
span[data-dsh-mop-positioned] > div { z-index: 1001; max-width: calc(100vw - 16px); left: var(--dsh-mop-card-left) !important; }
|
|
899
1834
|
.dsh-mop-hover-content { display: flex; flex-direction: column; gap: 8px; }
|
|
900
1835
|
.dsh-mop-hover-title { color: var(--dsw-alias-hovercard-label-primary); font-size: 14px; line-height: 20px; overflow-wrap: break-word; }
|
|
901
1836
|
.dsh-mop-hover-path { color: var(--dsw-alias-hovercard-label-secondary); font-size: 12px; line-height: 16px; word-break: break-all; }
|
|
@@ -939,7 +1874,6 @@ span[data-dsh-mop-positioned] > div { z-index: 1001; max-width: calc(100vw - 16p
|
|
|
939
1874
|
.dsh-mop-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
|
|
940
1875
|
.dsh-mop-confirm-tasks { min-width: 0; }
|
|
941
1876
|
.dsh-mop-confirm-tasks ul { margin: 4px 0 0; padding-left: 20px; }
|
|
942
|
-
div:has(> .dsh-mop-dialog) { z-index: 1002; }
|
|
943
1877
|
.dsh-mop-task-detail { display: grid; gap: 6px; margin: 0; font-size: 14px; }
|
|
944
1878
|
.dsh-mop-task-detail dt { color: var(--dsw-alias-label-secondary); }
|
|
945
1879
|
.dsh-mop-task-detail dd { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
@@ -953,40 +1887,32 @@ div:has(> .dsh-mop-dialog) { z-index: 1002; }
|
|
|
953
1887
|
|
|
954
1888
|
return {
|
|
955
1889
|
inject: ['slots', 'locale'],
|
|
956
|
-
|
|
957
|
-
//
|
|
958
|
-
//
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
}
|
|
964
|
-
LOCALES = Object.fromEntries(loaded.filter((item) => item.status === 'fulfilled').map((item) => item.value));
|
|
965
|
-
if (!LOCALES.en) throw new Error('dsh-mop: English UI text could not be loaded');
|
|
966
|
-
ctx.effect(() => ctx.locale.register(NS, LOCALES));
|
|
967
|
-
const t = officialTranslator(ctx.locale);
|
|
1890
|
+
apply(ctx) {
|
|
1891
|
+
// 官方惯例:全部语言的词典随模块一次性注册;查找链自动回退英文与
|
|
1892
|
+
// locale 服务的 common 共享词典。
|
|
1893
|
+
ctx.effect(() => ctx.locale.register(NS, dictionaries), 'dsh-mop: dictionaries');
|
|
1894
|
+
// 所有文案都来自本插件命名空间;通用词(delete/close/retry 等)经
|
|
1895
|
+
// locale 服务的 common 命名空间自动回退。
|
|
1896
|
+
const t = ctx.locale.bind(NS);
|
|
968
1897
|
ctx.slots.inject('settings.section', () => ctx.slots.register({
|
|
969
1898
|
name: 'settings.section',
|
|
970
1899
|
id: 'dsh-mop',
|
|
971
1900
|
order: 60,
|
|
972
|
-
label: () =>
|
|
1901
|
+
label: () => t('actions.archive'),
|
|
973
1902
|
locale: NS,
|
|
974
1903
|
inject: () => {
|
|
1904
|
+
// 官方客户端服务(可选依赖,缺失时走本插件 Host 路由):
|
|
1905
|
+
// uiWorkspace 的归档动作与官方 toast 文案;sessions 列表刷新。
|
|
975
1906
|
const workspace = ctx.get?.('uiWorkspace');
|
|
976
1907
|
const sessionsService = ctx.get?.('sessions');
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
let scheduleSource;
|
|
980
|
-
try { scheduleSource = entry?.inject?.()?.hooks?.catalog; } catch { /* optional official task view */ }
|
|
981
|
-
return { t, workspaceT: ctx.locale.bind('workspace'), scheduleT: ctx.locale.bind('schedule.manager'),
|
|
982
|
-
catalogT: ctx.locale.bind('schedule.catalog'),
|
|
1908
|
+
return {
|
|
1909
|
+
t,
|
|
983
1910
|
...(typeof ctx.waterfall === 'function' ? { archiveNotice: (id) => ctx.waterfall('workspace/archive-notice', id, () => Promise.resolve(undefined)) } : {}),
|
|
984
1911
|
...(workspace && typeof workspace.archiveSession === 'function' && typeof workspace.unarchiveSession === 'function' ? { workspaceActions: workspace } : {}),
|
|
985
1912
|
...(sessionsService && typeof sessionsService.refresh === 'function' ? { sessionsService } : {}),
|
|
986
|
-
|
|
987
|
-
? { officialSchedule: entry.component, scheduleSource } : {}) };
|
|
1913
|
+
};
|
|
988
1914
|
},
|
|
989
|
-
},
|
|
1915
|
+
}, SectionContent));
|
|
990
1916
|
ctx.slots.inject('settings.section.icon', () => ctx.slots.register({
|
|
991
1917
|
name: 'settings.section.icon',
|
|
992
1918
|
id: 'dsh-mop',
|
|
@@ -995,3 +1921,4 @@ div:has(> .dsh-mop-dialog) { z-index: 1002; }
|
|
|
995
1921
|
};
|
|
996
1922
|
},
|
|
997
1923
|
});
|
|
1924
|
+
|