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/lib/store.mjs CHANGED
@@ -2,24 +2,36 @@
2
2
  * dsh-mop · 会话存储索引
3
3
  *
4
4
  * 会话清单、标题、工作区分组、活跃状态一律走官方服务
5
- * (sessionQuery / workspaceRegistry / agents);磁盘只补服务不提供的
6
- * 事实:日志路径与体积、投影缓存孤儿、残壳目录、空项目目录。
5
+ * (sessionQuery / workspaceRegistry / agents / sessionProjections);
6
+ * 磁盘只补服务不提供的事实:日志路径与体积、投影缓存孤儿、残壳目录、
7
+ * 空项目目录。
7
8
  */
8
9
  import { readdir, readFile, stat, lstat } from 'node:fs/promises';
9
10
  import { basename as pathBasename, join } from 'node:path';
10
11
  import { homedir } from 'node:os';
11
12
  import { dshHome } from './home.mjs';
12
- import { isSystemMetadata } from './artifacts.mjs';
13
+ import { reject } from './errors.mjs';
14
+ import { isSystemMetadata, SESSION_DIR_RE, SESSION_LOG_RE, EVENT_ONLY_LOG_NAMES, SESSION_LOCK } from './artifacts.mjs';
13
15
 
14
- const SESSION_DIR_RE = /^session-[0-9a-zA-Z-]+$/;
15
- const SESSION_LOG_RE = /^session(?:\.v\d+)?\.jsonl(?:\.zstd)?$/;
16
+ /** A session still mounted in this instance's memory registry. No public API
17
+ * releases the entry; only a process restart reclaims it. */
18
+ export const isResidentSession = (ctx, id) => !!(ctx.get('sessions')?.get(id) || ctx.get('agents')?.get(id));
19
+
20
+ /** Whether the official registry still tracks the id as archived. */
21
+ export const isArchivedSession = (ctx, id) => (ctx.workspaceRegistry.archivedSessionIds ?? []).includes(id);
22
+
23
+ /** Ids this process purged while their memory entry remained. In-memory only:
24
+ * the plugin keeps no state of its own, and a restart empties both the set
25
+ * and the registry it tracks. */
26
+ const purgedResident = new Set();
27
+ export function markPurgedResident(id) { purgedResident.add(id); }
16
28
 
17
29
  // The official reader distinguishes an event-only v4 log from unsupported
18
30
  // formats and other corruption, for both raw and compressed storage.
19
31
  export async function isEventOnlyLog(ctx, id, dir) {
20
32
  const names = (await readdir(dir)).filter((name) => !isSystemMetadata(name));
21
- const log = names.find((name) => name === 'session.v4.jsonl' || name === 'session.v4.jsonl.zstd');
22
- if (!log || names.some((name) => name !== 'session.lock' && name !== log)) return false;
33
+ const log = names.find((name) => EVENT_ONLY_LOG_NAMES.includes(name));
34
+ if (!log || names.some((name) => name !== SESSION_LOCK && name !== log)) return false;
23
35
  const path = join(dir, log);
24
36
  const info = await lstat(path);
25
37
  if (!info.isFile() || info.isSymbolicLink()) return false;
@@ -42,16 +54,46 @@ export function projcacheDir() {
42
54
  return dshHome('storages', 'session_projcache', 'sessions');
43
55
  }
44
56
 
57
+ /** The storageDomain workspace table behind the registry; read-only view. */
58
+ export function workspaceTable(ctx) {
59
+ const table = ctx.get('storageDomain')?.get('workspace')?.table('workspaces');
60
+ return table && typeof table.get === 'function' ? table : undefined;
61
+ }
62
+
63
+ /** The official projection-cache table: it owns the in-memory view as well as
64
+ * the file, so deletion must go through it rather than unlink. */
65
+ export function projcacheTable(ctx) {
66
+ const table = ctx.get('storageDomain')?.get('session_projcache')?.table('sessions');
67
+ return table && typeof table.delete === 'function' ? table : undefined;
68
+ }
69
+
70
+ /** Hidden registrations: ids present in the storageDomain record that the
71
+ * official getter (workspace.sessionIds) does not expose. */
72
+ export function hiddenSessionIds(workspace, record) {
73
+ const visible = new Set(workspace.sessionIds ?? []);
74
+ return record.sessionIds.filter((other) => !visible.has(other));
75
+ }
76
+
77
+ /** Validated registration record (shape + detachSession callable), or
78
+ * workspace_unavailable. */
79
+ export function registrationRecord(ctx, workspace) {
80
+ const record = workspaceTable(ctx)?.get(workspace.id);
81
+ if (!record || !Array.isArray(record.sessionIds) || typeof workspace.detachSession !== 'function') reject('workspace_unavailable');
82
+ return record;
83
+ }
84
+
45
85
  // Size is the sum of regular file contents, never follows symlinks. Unknown
46
86
  // entries, access errors or very large trees produce an unknown measurement.
47
- async function directoryMetrics(path) {
87
+ // Callers that already readdir'd the directory may pass its Dirent[] to skip
88
+ // the repeated read.
89
+ async function directoryMetrics(path, dirents) {
48
90
  let files = 0;
49
- async function visit(dir) {
91
+ async function visit(dir, entries) {
50
92
  const info = await lstat(dir);
51
93
  if (!info.isDirectory() || info.isSymbolicLink()) throw new Error('not a directory');
52
94
  let sizeBytes = 0;
53
95
  let mtimeMs = info.mtimeMs;
54
- for (const entry of await readdir(dir, { withFileTypes: true })) {
96
+ for (const entry of entries ?? await readdir(dir, { withFileTypes: true })) {
55
97
  if (++files > 10000) throw new Error('directory too large to measure');
56
98
  const target = join(dir, entry.name);
57
99
  if (entry.isDirectory()) {
@@ -67,7 +109,7 @@ async function directoryMetrics(path) {
67
109
  }
68
110
  return { sizeBytes, mtimeMs };
69
111
  }
70
- try { return await visit(path); } catch { return { sizeBytes: null, mtimeMs: null }; }
112
+ try { return await visit(path, dirents); } catch { return { sizeBytes: null, mtimeMs: null }; }
71
113
  }
72
114
 
73
115
  /** 官方 listSessions 条目 → 统一头部(跨形状防御)。 */
@@ -83,13 +125,15 @@ async function scanDisk() {
83
125
  const projects = await readdir(root, { withFileTypes: true })
84
126
  .then((entries) => entries.filter((e) => e.isDirectory()).map((e) => e.name))
85
127
  .catch((error) => { if (error.code === 'ENOENT') return []; throw error; });
86
- for (const project of projects) {
128
+ // Projects (and the session dirs within) are independent; walk them
129
+ // concurrently — results land in shared maps/arrays, order is irrelevant.
130
+ await Promise.all(projects.map(async (project) => {
87
131
  const projectDir = join(root, project);
88
132
  let entries;
89
133
  try {
90
134
  entries = await readdir(projectDir, { withFileTypes: true });
91
135
  } catch (error) {
92
- if (error.code === 'ENOENT') continue;
136
+ if (error.code === 'ENOENT') return;
93
137
  throw error;
94
138
  }
95
139
  let sessionCount = 0;
@@ -97,16 +141,19 @@ async function scanDisk() {
97
141
  if (!entry.isDirectory() || !SESSION_DIR_RE.test(entry.name)) continue;
98
142
  sessionCount += 1;
99
143
  const sessionDir = join(projectDir, entry.name);
100
- const names = (await readdir(sessionDir).catch((error) => { if (error.code === 'ENOENT') return []; throw error; }))
101
- .filter((name) => !isSystemMetadata(name));
144
+ // 目录在父级 entries 与本次 readdir 之间被删(race):按空残壳记账,
145
+ // 与原串行扫描的语义一致。
146
+ const dirEntries = await readdir(sessionDir, { withFileTypes: true })
147
+ .catch((error) => { if (error.code === 'ENOENT') return []; throw error; });
148
+ const names = dirEntries.map((e) => e.name).filter((name) => !isSystemMetadata(name));
102
149
  const logName = names.find((n) => SESSION_LOG_RE.test(n));
103
150
  if (!logName) {
104
151
  let shellType = names.length === 0 ? 'empty' : 'unknown';
105
- if (names.length === 1 && names[0] === 'session.lock') {
106
- const lock = await lstat(join(sessionDir, 'session.lock')).catch(() => null);
107
- if (lock?.isFile() && !lock.isSymbolicLink()) shellType = 'lock';
152
+ if (names.length === 1 && names[0] === SESSION_LOCK) {
153
+ // Dirent.isFile() is lstat semantics: a symlink is not a file here.
154
+ if (dirEntries.some((e) => e.name === SESSION_LOCK && e.isFile())) shellType = 'lock';
108
155
  }
109
- shellDirs.push({ sessionId: entry.name, sessionDir, shellType, ...await directoryMetrics(sessionDir) });
156
+ shellDirs.push({ sessionId: entry.name, sessionDir, shellType, ...await directoryMetrics(sessionDir, dirEntries) });
110
157
  continue;
111
158
  }
112
159
  const logPath = join(sessionDir, logName);
@@ -121,11 +168,14 @@ async function scanDisk() {
121
168
  const info = await stat(projectDir).catch(() => null);
122
169
  emptyProjectDirs.push({ path: projectDir, sizeBytes: 0, mtimeMs: info?.mtimeMs ?? null });
123
170
  }
124
- }
171
+ }));
125
172
  return { logs, shellDirs, emptyProjectDirs };
126
173
  }
127
174
 
128
- async function scanProjcache(knownIds) {
175
+ /** knownTitles: id → 已从官方 readTitleSnapshots 拿到的标题。文件内容只在
176
+ * 展示需要时读取:orphan 行要 title/cwd,官方标题缺漏时作回退源;其余
177
+ * (绝大多数)只登记路径,避免与官方读侧重复解析同一 JSON。 */
178
+ async function scanProjcache(knownIds, knownTitles) {
129
179
  const orphans = [];
130
180
  const files = new Map(); // id → 缓存文件路径
131
181
  const titles = new Map(); // id → rows.title.val(侧边栏同源标题)
@@ -135,6 +185,10 @@ async function scanProjcache(knownIds) {
135
185
  for (const name of names) {
136
186
  const id = name.replace(/\.json$/, '');
137
187
  const path = join(projcacheDir(), name);
188
+ if (knownIds.has(id) && knownTitles.has(id)) {
189
+ files.set(id, path);
190
+ continue;
191
+ }
138
192
  let title, cwd;
139
193
  try {
140
194
  const record = JSON.parse(await readFile(path, 'utf8'))?.record;
@@ -152,22 +206,35 @@ async function scanProjcache(knownIds) {
152
206
  return { orphans, files, titles };
153
207
  }
154
208
 
155
- /** DSH rc.5's workspace getter hides filtered candidates. Read its JSON
156
- * snapshot only to display those registrations; never mutate this file. */
157
- async function filteredWorkspaceRegistrations(workspaces) {
158
- let snapshot;
159
- try { snapshot = JSON.parse(await readFile(dshHome('storages', 'workspace.json'), 'utf8')); }
160
- catch { return []; }
161
- if (snapshot?.unit?.name !== 'workspace' || snapshot.unit.version !== 2) return [];
162
- const records = snapshot?.tables?.workspaces;
163
- if (!records || typeof records !== 'object' || Array.isArray(records)) return [];
209
+ /**
210
+ * 会话列表元数据(blank / lastPromptAt),与官方 session/list 同源:
211
+ * 已挂载会话读 sessionProjections 投影,冷会话读 sessionProjectionCache。
212
+ * 服务缺失或投影未注册时按官方 summarizeCold 语义降级(blank=false)。
213
+ */
214
+ async function listMetadataOf(ctx, header) {
215
+ try {
216
+ const attached = ctx.get('sessions')?.get(header.id);
217
+ const snapshot = attached !== undefined
218
+ ? ctx.get('sessionProjections')?.snapshot(attached, ['sessionListMetadata'])
219
+ : ctx.get('sessionProjectionCache')?.cachedSnapshot(header, ['sessionListMetadata']);
220
+ return snapshot?.values?.sessionListMetadata;
221
+ } catch { return undefined; }
222
+ }
223
+
224
+ /**
225
+ * DSH 的 workspace getter 只暴露可见注册。隐藏注册(被过滤的候选)通过
226
+ * storageDomain 的 workspace 域表读取——与 clean.mjs 校验所用的同一官方
227
+ * 服务面;只读用于展示,从不写该表。
228
+ */
229
+ function filteredWorkspaceRegistrations(ctx, workspaces) {
230
+ const table = workspaceTable(ctx);
231
+ if (!table) return [];
164
232
  const filtered = [];
165
233
  for (const workspace of workspaces) {
166
- const stored = records[workspace.id];
167
- if (!stored || stored.path !== workspace.path || !Array.isArray(stored.sessionIds)) continue;
168
- const visible = new Set(workspace.sessionIds ?? []);
169
- for (const id of stored.sessionIds) {
170
- if (typeof id === 'string' && SESSION_DIR_RE.test(id) && !visible.has(id)) filtered.push({ id, workspace });
234
+ const record = table.get(workspace.id);
235
+ if (!record || record.path !== workspace.path || !Array.isArray(record.sessionIds)) continue;
236
+ for (const id of hiddenSessionIds(workspace, record)) {
237
+ if (typeof id === 'string' && SESSION_DIR_RE.test(id)) filtered.push({ id, workspace });
171
238
  }
172
239
  }
173
240
  return filtered;
@@ -256,24 +323,35 @@ export async function buildOverview(ctx, config) {
256
323
  const diskIds = new Set(disk.logs.keys());
257
324
  const sessionIds = new Set([...diskIds, ...listedIds, ...persistedIds].filter(Boolean));
258
325
  const knownIds = new Set([...sessionIds, ...disk.shellDirs.map((s) => s.sessionId)]);
259
- const cache = await scanProjcache(knownIds);
326
+ const cache = await scanProjcache(knownIds, titles);
260
327
 
328
+ // 官方列表元数据(blank / lastPromptAt)相互独立,并行预取。
329
+ const metadataList = await Promise.all(sessions.map((header) => listMetadataOf(ctx, header)));
330
+ const purgeStateOf = (id) => ({
331
+ purgeBlock: scheduleCheckFailed ? 'reference_check_failed' : scheduleRefs.has(id) ? 'schedule_reference' : null,
332
+ scheduleTasks: scheduleRefs.get(id) ?? [],
333
+ });
261
334
  const items = [];
262
- for (const header of sessions) {
335
+ for (const [index, header] of sessions.entries()) {
263
336
  const log = disk.logs.get(header.id);
264
337
  const agent = ctx.get('agents')?.get(header.id);
265
338
  const live = agent !== undefined && agent.status !== 'idle';
266
339
  // 官方查询包含尚未落盘的空白会话;即使无日志也应显示。
267
340
  const workspace = registered.get(header.id);
341
+ const metadata = metadataList[index];
268
342
  items.push({
269
343
  id: header.id,
270
344
  title: titles.get(header.id) ?? cache.titles.get(header.id) ?? basename(header.cwd) ?? header.id,
271
345
  cwd: header.cwd ?? null,
272
346
  live,
347
+ blank: metadata?.blank === true,
348
+ updatedAt: Math.max(
349
+ Number.isFinite(header.createdAt) ? header.createdAt : 0,
350
+ Number.isFinite(metadata?.lastPromptAt) ? metadata.lastPromptAt : 0,
351
+ ) || null,
273
352
  archived: archivedSet.has(header.id),
274
353
  protected: protectedWorkspaces.has(workspace?.path ?? header.cwd),
275
- purgeBlock: scheduleCheckFailed ? 'reference_check_failed' : scheduleRefs.has(header.id) ? 'schedule_reference' : null,
276
- scheduleTasks: scheduleRefs.get(header.id) ?? [],
354
+ ...purgeStateOf(header.id),
277
355
  workspacePath: workspace?.path ?? header.cwd ?? null,
278
356
  workspaceTitle: workspace?.title ?? basename(header.cwd) ?? '',
279
357
  workspaceCreatedAt: workspace?.createdAt ?? null,
@@ -283,7 +361,14 @@ export async function buildOverview(ctx, config) {
283
361
  });
284
362
  }
285
363
 
286
- const filteredRegistrations = await filteredWorkspaceRegistrations(workspaces);
364
+ // Purged-but-resident entries are deleted, not selectable or restorable:
365
+ // they leave the session lists and reappear below as residue rows.
366
+ const memoryResidentIds = new Set([...purgedResident].filter((id) => isResidentSession(ctx, id)));
367
+ for (let i = items.length - 1; i >= 0; i -= 1) {
368
+ if (memoryResidentIds.has(items[i].id)) items.splice(i, 1);
369
+ }
370
+
371
+ const filteredRegistrations = filteredWorkspaceRegistrations(ctx, workspaces);
287
372
  const registrations = new Map();
288
373
  for (const workspace of workspaces) {
289
374
  for (const id of workspace.sessionIds ?? []) registrations.set(`${workspace.id}:${id}`, { id, workspace });
@@ -308,8 +393,7 @@ export async function buildOverview(ctx, config) {
308
393
  items.push({ id, title: cache.titles.get(id) ?? id, cwd: workspace?.path ?? null,
309
394
  live: false,
310
395
  archived: true, protected: protectedWorkspaces.has(workspace?.path),
311
- purgeBlock: scheduleCheckFailed ? 'reference_check_failed' : scheduleRefs.has(id) ? 'schedule_reference' : null,
312
- scheduleTasks: scheduleRefs.get(id) ?? [], workspacePath: workspace?.path ?? null,
396
+ ...purgeStateOf(id), workspacePath: workspace?.path ?? null,
313
397
  workspaceTitle: workspace?.title ?? '', workspaceCreatedAt: workspace?.createdAt ?? null,
314
398
  sizeBytes: null, mtimeMs: null, sessionDir: null });
315
399
  }
@@ -338,6 +422,9 @@ export async function buildOverview(ctx, config) {
338
422
  const workspace = uniqueRegisteredWorkspace(item.sessionId);
339
423
  return { ...item, workspacePath: workspace?.path, workspaceTitle: workspace?.title, workspaceCreatedAt: workspace?.createdAt ?? null };
340
424
  });
425
+ const memoryResidents = [...memoryResidentIds].map((id) => ({
426
+ id, title: titles.get(id) ?? cache.titles.get(id) ?? null,
427
+ }));
341
428
  return {
342
429
  sessions: items,
343
430
  residue: {
@@ -346,6 +433,7 @@ export async function buildOverview(ctx, config) {
346
433
  ghostRegistrations,
347
434
  shellDirs,
348
435
  emptyProjectDirs: disk.emptyProjectDirs,
436
+ memoryResidents,
349
437
  },
350
438
  cacheFiles: cache.files,
351
439
  home: homedir(),
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "dsh-mop",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
+ "description": "View, archive, and clean DSH sessions and residual data",
4
5
  "author": "tryhub",
5
6
  "homepage": "https://gitee.com/tryhub/dsh-mop",
6
7
  "repository": {
@@ -17,14 +18,19 @@
17
18
  "files": [
18
19
  "index.js",
19
20
  "client.js",
20
- "client.*.js",
21
21
  "cordis.patch.yml",
22
22
  "lib",
23
23
  "locale/*.json",
24
24
  "icon.svg"
25
25
  ],
26
+ "license": "MIT",
27
+ "dependencies": {
28
+ "@deepseek-ai/schemastery": "~3.19.0"
29
+ },
30
+ "peerDependencies": {
31
+ "@deepseek-ai/cordis": "~4.1.0"
32
+ },
26
33
  "dsh": {
27
- "displayName": "dsh-mop",
28
34
  "bundle": {
29
35
  "patch": "./cordis.patch.yml"
30
36
  },
package/client.de.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的德文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.de.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Rückstände',
9
- 'selection.summary': '{n} ausgewählt · {size}',
10
- 'search.placeholder': '{section} suchen',
11
- 'confirm.purge.description': 'Dies kann nicht rückgängig gemacht werden',
12
- 'archive.scheduleDeletion': 'Aktive automatisierte Aufgaben für diese Sitzung und ihre gespeicherten Ausführungsprotokolle werden gelöscht.',
13
- 'error.notArchived': 'Nur archivierte Sitzungen können gelöscht werden.',
14
- 'error.workspaceProtected': 'Geschützter Arbeitsbereich.',
15
- 'protection.label': 'geschützt',
16
- 'reference.schedule': 'Mit einer geplanten Aufgabe verknüpft.',
17
- 'residue.registeredCache': 'Für diese Sitzungs-ID besteht auch ein Arbeitsbereichseintrag.',
18
- 'residue.orphanCache': 'verwaister Cache',
19
- 'residue.ghostRegistry': 'Geister-Eintrag',
20
- 'residue.sessionDirectory': 'Hüllen-Verzeichnis',
21
- 'residue.emptyProject': 'leeres Projektverzeichnis',
22
- 'confirm.tasks.description': 'Ausgewählte Aufgaben und gespeicherte Ausführungen werden gelöscht',
23
- 'error.schedule_changed': 'Aufgabe geändert; aktualisieren und erneut versuchen',
24
- 'error.session_resident': 'Sitzung hat noch aktive Vorgänge',
25
- 'error.purge_busy': 'Sitzung wird bereinigt; später erneut versuchen',
26
- 'error.workspace_unavailable': 'Arbeitsbereichseinträge können nicht geprüft werden',
27
- 'error.workspace_filtered': 'Andere verborgene Einträge verhindern das einzelne Entfernen',
28
- 'error.unsupported_storage': 'Speicherort des Sitzungsprotokolls nicht ermittelbar',
29
- 'error.historical_format': 'Sitzungsprotokoll vor dem Löschen migrieren',
30
- 'error.historical_parent': 'Zuerst die übergeordnete Sitzung zur Migration öffnen',
31
- 'error.unsafe_path': 'Dateipfad kann nicht überprüft werden',
32
- 'error.unknown_artifact': 'Sitzungsverzeichnis enthält unbekannte Dateien',
33
- 'error.session_changed': 'Sitzungsstatus geändert; erneut versuchen',
34
- 'error.cache_unavailable': 'Projektions-Cache-Dienst nicht verfügbar',
35
- 'error.residue_changed': 'Rückstand geändert; aktualisieren und erneut versuchen',
36
- },
37
- };
38
- },
39
- });
package/client.en.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的英文界面文案。英文是其他语言缺键时的回退,键必须完整。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.en.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Residue',
9
- 'selection.summary': '{n} selected · {size}',
10
- 'search.placeholder': 'Search {section}',
11
- 'confirm.purge.description': 'This cannot be undone',
12
- 'archive.scheduleDeletion': 'Active scheduled tasks targeting this session and their saved run history will be deleted.',
13
- 'error.notArchived': 'Only archived sessions can be deleted.',
14
- 'error.workspaceProtected': 'Protected workspace.',
15
- 'protection.label': 'protected',
16
- 'reference.schedule': 'Linked to a scheduled task.',
17
- 'residue.registeredCache': 'A workspace also retains a registration for this session ID.',
18
- 'residue.orphanCache': 'orphan cache',
19
- 'residue.ghostRegistry': 'ghost registration',
20
- 'residue.sessionDirectory': 'shell dir',
21
- 'residue.emptyProject': 'empty project dir',
22
- 'confirm.tasks.description': 'Selected tasks and their saved run history will be deleted',
23
- 'error.schedule_changed': 'Task changed; refresh and try again',
24
- 'error.session_resident': 'Session still has active work',
25
- 'error.purge_busy': 'Session cleanup is in progress; try again later',
26
- 'error.workspace_unavailable': 'Cannot check workspace registrations',
27
- 'error.workspace_filtered': 'Workspace has other hidden registrations; cannot remove this one separately',
28
- 'error.unsupported_storage': 'Cannot identify the session log location',
29
- 'error.historical_format': 'Migrate the session log before deleting',
30
- 'error.historical_parent': 'Open the parent session to complete migration first',
31
- 'error.unsafe_path': 'Cannot verify the file path',
32
- 'error.unknown_artifact': 'Session directory contains unrecognized files',
33
- 'error.session_changed': 'Session state changed; try again',
34
- 'error.cache_unavailable': 'Projection cache service is unavailable',
35
- 'error.residue_changed': 'Residue changed; refresh and try again',
36
- },
37
- };
38
- },
39
- });
package/client.es.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的西班牙文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.es.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Residuos',
9
- 'selection.summary': '{n} seleccionadas · {size}',
10
- 'search.placeholder': 'Buscar {section}',
11
- 'confirm.purge.description': 'Esta acción no se puede deshacer',
12
- 'archive.scheduleDeletion': 'Se eliminarán las tareas automáticas activas dirigidas a esta sesión y su historial de ejecución guardado.',
13
- 'error.notArchived': 'Solo se pueden eliminar sesiones archivadas.',
14
- 'error.workspaceProtected': 'Espacio de trabajo protegido.',
15
- 'protection.label': 'protegida',
16
- 'reference.schedule': 'Vinculada a una tarea programada.',
17
- 'residue.registeredCache': 'También existe un registro de espacio de trabajo para esta sesión.',
18
- 'residue.orphanCache': 'caché huérfana',
19
- 'residue.ghostRegistry': 'registro fantasma',
20
- 'residue.sessionDirectory': 'directorio casca',
21
- 'residue.emptyProject': 'directorio de proyecto vacío',
22
- 'confirm.tasks.description': 'Se eliminarán las tareas seleccionadas y su historial guardado',
23
- 'error.schedule_changed': 'La tarea cambió; actualiza e inténtalo de nuevo',
24
- 'error.session_resident': 'La sesión aún tiene actividad',
25
- 'error.purge_busy': 'Se está limpiando la sesión; inténtalo más tarde',
26
- 'error.workspace_unavailable': 'No se pueden comprobar los registros del espacio de trabajo',
27
- 'error.workspace_filtered': 'Otros registros ocultos impiden eliminar este por separado',
28
- 'error.unsupported_storage': 'No se puede identificar la ubicación del registro',
29
- 'error.historical_format': 'Migra el registro de la sesión antes de eliminarlo',
30
- 'error.historical_parent': 'Abre primero la sesión principal para completar la migración',
31
- 'error.unsafe_path': 'No se puede verificar la ruta del archivo',
32
- 'error.unknown_artifact': 'El directorio de sesión contiene archivos desconocidos',
33
- 'error.session_changed': 'El estado de la sesión cambió; inténtalo de nuevo',
34
- 'error.cache_unavailable': 'El servicio de caché de proyección no está disponible',
35
- 'error.residue_changed': 'El residuo cambió; actualiza e inténtalo de nuevo',
36
- },
37
- };
38
- },
39
- });
package/client.fr.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的法文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.fr.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Résidus',
9
- 'selection.summary': '{n} sélectionnées · {size}',
10
- 'search.placeholder': 'Rechercher {section}',
11
- 'confirm.purge.description': 'Cette action est irréversible',
12
- 'archive.scheduleDeletion': 'Les tâches automatiques actives destinées à cette session et leur historique enregistré seront supprimés.',
13
- 'error.notArchived': 'Seules les sessions archivées peuvent être supprimées.',
14
- 'error.workspaceProtected': 'Espace de travail protégé.',
15
- 'protection.label': 'protégée',
16
- 'reference.schedule': 'Liée à une tâche planifiée.',
17
- 'residue.registeredCache': 'Une entrée d’espace de travail existe aussi pour cette session.',
18
- 'residue.orphanCache': 'cache orpheline',
19
- 'residue.ghostRegistry': 'entrée fantôme',
20
- 'residue.sessionDirectory': 'répertoire coquille',
21
- 'residue.emptyProject': 'répertoire de projet vide',
22
- 'confirm.tasks.description': 'Les tâches sélectionnées et leur historique enregistré seront supprimés',
23
- 'error.schedule_changed': 'La tâche a changé ; actualisez et réessayez',
24
- 'error.session_resident': 'La session comporte encore une activité',
25
- 'error.purge_busy': 'Nettoyage de la session en cours ; réessayez plus tard',
26
- 'error.workspace_unavailable': 'Impossible de vérifier les inscriptions de l’espace de travail',
27
- 'error.workspace_filtered': 'D’autres inscriptions masquées empêchent la suppression individuelle',
28
- 'error.unsupported_storage': 'Impossible de localiser le journal de session',
29
- 'error.historical_format': 'Migrez le journal avant de le supprimer',
30
- 'error.historical_parent': 'Ouvrez d’abord la session parente pour terminer la migration',
31
- 'error.unsafe_path': 'Impossible de vérifier le chemin du fichier',
32
- 'error.unknown_artifact': 'Le dossier de session contient des fichiers inconnus',
33
- 'error.session_changed': 'La session a changé ; réessayez',
34
- 'error.cache_unavailable': 'Le service de cache de projection est indisponible',
35
- 'error.residue_changed': 'Le résidu a changé ; actualisez et réessayez',
36
- },
37
- };
38
- },
39
- });
package/client.ja.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的日文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.ja.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': '残余',
9
- 'selection.summary': '{n} 件選択 · {size}',
10
- 'search.placeholder': '{section}を検索',
11
- 'confirm.purge.description': 'この操作は取り消せません',
12
- 'archive.scheduleDeletion': 'このセッション宛ての有効な自動化タスクと保存された実行履歴が削除されます。',
13
- 'error.notArchived': 'アーカイブ済みのセッションのみ削除できます。',
14
- 'error.workspaceProtected': '保護されたワークスペースです。',
15
- 'protection.label': '保護',
16
- 'reference.schedule': '予定タスクに関連しています。',
17
- 'residue.registeredCache': 'このセッション ID にはワークスペースの登録も残っています。',
18
- 'residue.orphanCache': '孤児キャッシュ',
19
- 'residue.ghostRegistry': '幽霊登録',
20
- 'residue.sessionDirectory': '殻ディレクトリ',
21
- 'residue.emptyProject': '空プロジェクト',
22
- 'confirm.tasks.description': '選択したタスクと保存された実行履歴が削除されます',
23
- 'error.schedule_changed': 'タスクが変更されました。更新して再試行してください',
24
- 'error.session_resident': 'セッションで処理が実行中です',
25
- 'error.purge_busy': 'セッションのクリーンアップ中です。後でもう一度お試しください',
26
- 'error.workspace_unavailable': 'ワークスペース登録を確認できません',
27
- 'error.workspace_filtered': '他の非表示の登録があるため個別に削除できません',
28
- 'error.unsupported_storage': 'セッションログの場所を確認できません',
29
- 'error.historical_format': '削除する前にセッションログの移行が必要です',
30
- 'error.historical_parent': '先に親セッションを開いて移行を完了してください',
31
- 'error.unsafe_path': 'ファイルパスを確認できません',
32
- 'error.unknown_artifact': 'セッションディレクトリに不明なファイルがあります',
33
- 'error.session_changed': 'セッションの状態が変わりました。再試行してください',
34
- 'error.cache_unavailable': '投影キャッシュサービスを利用できません',
35
- 'error.residue_changed': '残余が変更されました。更新して再試行してください',
36
- },
37
- };
38
- },
39
- });
package/client.pt.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的葡萄牙文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.pt.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Resíduos',
9
- 'selection.summary': '{n} selecionadas · {size}',
10
- 'search.placeholder': 'Buscar {section}',
11
- 'confirm.purge.description': 'Esta ação não pode ser desfeita',
12
- 'archive.scheduleDeletion': 'As tarefas automáticas ativas destinadas a esta sessão e seu histórico de execução serão excluídos.',
13
- 'error.notArchived': 'Somente sessões arquivadas podem ser excluídas.',
14
- 'error.workspaceProtected': 'Espaço de trabalho protegido.',
15
- 'protection.label': 'protegida',
16
- 'reference.schedule': 'Associada a uma tarefa agendada.',
17
- 'residue.registeredCache': 'Também há um registro de espaço de trabalho para esta sessão.',
18
- 'residue.orphanCache': 'cache órfã',
19
- 'residue.ghostRegistry': 'registro fantasma',
20
- 'residue.sessionDirectory': 'diretório casca',
21
- 'residue.emptyProject': 'diretório de projeto vazio',
22
- 'confirm.tasks.description': 'As tarefas selecionadas e seu histórico salvo serão excluídos',
23
- 'error.schedule_changed': 'A tarefa mudou; atualize e tente novamente',
24
- 'error.session_resident': 'A sessão ainda tem atividades em andamento',
25
- 'error.purge_busy': 'Limpeza da sessão em andamento; tente novamente mais tarde',
26
- 'error.workspace_unavailable': 'Não foi possível verificar os registros do espaço de trabalho',
27
- 'error.workspace_filtered': 'Outros registros ocultos impedem a remoção individual',
28
- 'error.unsupported_storage': 'Não foi possível identificar a localização do log',
29
- 'error.historical_format': 'Migre o log da sessão antes de excluí-lo',
30
- 'error.historical_parent': 'Abra a sessão principal para concluir a migração',
31
- 'error.unsafe_path': 'Não foi possível verificar o caminho do arquivo',
32
- 'error.unknown_artifact': 'O diretório da sessão contém arquivos desconhecidos',
33
- 'error.session_changed': 'O estado da sessão mudou; tente novamente',
34
- 'error.cache_unavailable': 'O serviço de cache de projeção está indisponível',
35
- 'error.residue_changed': 'O resíduo mudou; atualize e tente novamente',
36
- },
37
- };
38
- },
39
- });
package/client.ru.js DELETED
@@ -1,39 +0,0 @@
1
- /** dsh-mop 的俄文界面文案。键名与 client.en.js 保持一致,缺的键会回退到英文。 */
2
- window.__ModuleLoader__.load({
3
- id: 'dsh-mop',
4
- chunk: 'client.ru.js',
5
- factory() {
6
- return {
7
- messages: {
8
- 'tabs.residue': 'Остатки',
9
- 'selection.summary': 'выбрано {n} · {size}',
10
- 'search.placeholder': 'Поиск: {section}',
11
- 'confirm.purge.description': 'Это действие нельзя отменить',
12
- 'archive.scheduleDeletion': 'Активные автоматические задачи для этой сессии и их сохранённая история будут удалены.',
13
- 'error.notArchived': 'Удалять можно только архивированные сессии.',
14
- 'error.workspaceProtected': 'Рабочее пространство защищено.',
15
- 'protection.label': 'защищена',
16
- 'reference.schedule': 'Связана с запланированной задачей.',
17
- 'residue.registeredCache': 'Для этого сеанса также существует запись рабочего пространства.',
18
- 'residue.orphanCache': 'осиротевший кэш',
19
- 'residue.ghostRegistry': 'запись-призрак',
20
- 'residue.sessionDirectory': 'каталог-оболочка',
21
- 'residue.emptyProject': 'пустой каталог проекта',
22
- 'confirm.tasks.description': 'Выбранные задачи и сохранённая история будут удалены',
23
- 'error.schedule_changed': 'Задача изменилась; обновите данные и повторите попытку',
24
- 'error.session_resident': 'В сеансе ещё выполняются задачи',
25
- 'error.purge_busy': 'Идёт очистка сеанса; повторите попытку позже',
26
- 'error.workspace_unavailable': 'Не удалось проверить записи рабочего пространства',
27
- 'error.workspace_filtered': 'Другие скрытые записи мешают удалить эту запись отдельно',
28
- 'error.unsupported_storage': 'Не удалось определить расположение журнала сеанса',
29
- 'error.historical_format': 'Перед удалением необходимо перенести журнал сеанса',
30
- 'error.historical_parent': 'Сначала откройте родительский сеанс для переноса',
31
- 'error.unsafe_path': 'Не удалось проверить путь к файлу',
32
- 'error.unknown_artifact': 'Каталог сеанса содержит неизвестные файлы',
33
- 'error.session_changed': 'Состояние сеанса изменилось; повторите попытку',
34
- 'error.cache_unavailable': 'Служба кэша проекций недоступна',
35
- 'error.residue_changed': 'Остаточные данные изменились; обновите и повторите попытку',
36
- },
37
- };
38
- },
39
- });