dsh-mop 0.1.4 → 0.2.0

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/index.js CHANGED
@@ -1,17 +1,32 @@
1
- /** dsh-mop 宿主半边:清理遗留会话数据,经 connection.fetch 路由暴露给浏览器。 */
1
+ /**
2
+ * dsh-mop 宿主半边:清理遗留会话数据,经 connection.fetch 路由暴露给浏览器。
3
+ *
4
+ * 行级配置(protectWorkspaces)通过官方 Loader 的 Config 校验与编辑面
5
+ * (设置 → 插件 → dsh-mop 行 → 配置)读写。
6
+ * @module dsh-mop
7
+ */
8
+ import z from '@deepseek-ai/schemastery';
2
9
  import { registerRoutes } from './lib/routes.mjs';
3
10
  import { isPurgingSession, isExternalUnarchive } from './lib/clean.mjs';
4
11
  import { cleanError } from './lib/errors.mjs';
5
12
 
6
13
  export const inject = ['connection', 'sessionQuery', 'sessionPersistence', 'workspaceRegistry'];
7
14
 
15
+ /** 行配置 schema:受保护的工作区根路径列表(绝对路径)。 */
16
+ export const Config = z.object({
17
+ protectWorkspaces: z.array(z.string()).default([]),
18
+ });
19
+
8
20
  export function apply(ctx, rawConfig = {}) {
9
- const config = {
10
- protectWorkspaces: Array.isArray(rawConfig.protectWorkspaces)
11
- ? rawConfig.protectWorkspaces.filter((p) => typeof p === 'string' && p)
12
- : [],
13
- };
21
+ // Config 是唯一解析点:Loader 校验过的输入直接通过;未经校验的
22
+ // 畸形输入退回默认值,不让插件加载失败。
23
+ let config;
24
+ try { config = Config(rawConfig); } catch { config = Config({}); }
14
25
  // Coordinate same-host activation and unarchive with the deletion window.
26
+ // session/created 的同步 throw 是官方支持的否决路径(dsh-session 注释:
27
+ // "Synchronous throws intentionally propagate and veto publication");
28
+ // workspace/session-unarchiving 的 parallel 分发会把 rejection 聚合后
29
+ // 抛给调用方,同样阻断外部取消归档。
15
30
  if (typeof ctx.on === 'function') ctx.effect(() => {
16
31
  const stopUnarchive = ctx.on('workspace/session-unarchiving', ({ sessionId }) => {
17
32
  if (isExternalUnarchive(sessionId)) throw cleanError('purge_busy');
package/lib/clean.mjs CHANGED
@@ -1,12 +1,14 @@
1
- /** dsh-mop · 永久删除:日志目录、投影缓存、工作区注册一并清除,不留自有数据。 */
1
+ /** dsh-mop · 永久删除:日志目录、投影缓存、工作区注册一并清除,不留自有数据。
2
+ * 仍在本实例中挂载的会话(agents/sessions 注册表)会以 session_resident 拒绝:
3
+ * DSH 未提供跨组件释放常驻 Agent 的公开 API,官方标准下不做内部拆卸,
4
+ * 用户重启 DSH 后即可清理。 */
2
5
  import { lstat, readdir, unlink } from 'node:fs/promises';
3
6
  import { basename, dirname, isAbsolute, relative, resolve, sep } from 'node:path';
4
7
  import { AsyncLocalStorage } from 'node:async_hooks';
5
8
  import { assertSessionDirSafe } from './guard.mjs';
6
9
  import { removeSessionShell } from './session-shell.mjs';
7
10
  import { cleanError, reject } from './errors.mjs';
8
- import { buildOverview, isEventOnlyLog, sessionsRoot, projcacheDir } from './store.mjs';
9
- import { releaseResidentSession } from './release-session.mjs';
11
+ import { buildOverview, isEventOnlyLog, sessionsRoot, projcacheDir, workspaceTable } from './store.mjs';
10
12
  import { assertCanonicalSessionPath, isSystemMetadata, removeEmptyProject } from './artifacts.mjs';
11
13
 
12
14
  /** Server-derived keys identify the only paths and registry entries eligible for selection. */
@@ -47,6 +49,9 @@ const unarchiveOwner = new AsyncLocalStorage();
47
49
  export function isPurgingSession(id) { return purging.has(id); }
48
50
  export function isExternalUnarchive(id) { return purging.has(id) && unarchiveOwner.getStore() !== id; }
49
51
 
52
+ /** A session still mounted in this DSH instance; releasing it needs a restart. */
53
+ const isResidentSession = (ctx, id) => !!(ctx.get('sessions')?.get(id) || ctx.get('agents')?.get(id));
54
+
50
55
  const isTaskTarget = (task, id) => (task.target?.kind === 'session' || task.target?.kind === 'new_once') && task.target.sessionId === id;
51
56
 
52
57
  async function checkCurrent(ctx, id) {
@@ -69,9 +74,8 @@ async function checkCurrent(ctx, id) {
69
74
 
70
75
  async function workspaceTargets(ctx, id) {
71
76
  const workspaces = await ctx.workspaceRegistry.list();
72
- const domain = ctx.get('storageDomain')?.get('workspace');
73
- const table = domain?.table('workspaces');
74
- if (!table || typeof table.get !== 'function') reject('workspace_unavailable');
77
+ const table = workspaceTable(ctx);
78
+ if (!table) reject('workspace_unavailable');
75
79
  const targets = [];
76
80
  for (const workspace of workspaces) {
77
81
  const record = table.get(workspace.id);
@@ -112,7 +116,7 @@ async function logFiles(snapshot, id) {
112
116
  return files.sort((a, b) => (a === selected ? 1 : 0) - (b === selected ? 1 : 0));
113
117
  }
114
118
 
115
- /** Delete verified JSONL generations after releasing the local resident session. */
119
+ /** Delete verified JSONL generations of non-resident archived sessions. */
116
120
  export async function purgeSessions(ctx, overview, sessionIds) {
117
121
  const byId = new Map(overview.sessions.map((session) => [session.id, session]));
118
122
  const deleted = [], failed = [];
@@ -128,8 +132,6 @@ export async function purgeSessions(ctx, overview, sessionIds) {
128
132
  purging.add(id);
129
133
  claimed = true;
130
134
  await checkCurrent(ctx, id);
131
- await releaseResidentSession(ctx, id);
132
- await checkCurrent(ctx, id);
133
135
  const snapshot = await ctx.sessionPersistence.stat(id);
134
136
  let files = [];
135
137
  const remaining = snapshot ? [] : (await buildOverview(ctx, { protectWorkspaces: [] })).residue.shellDirs
@@ -155,7 +157,7 @@ export async function purgeSessions(ctx, overview, sessionIds) {
155
157
  const cache = ctx.get('storageDomain')?.get('session_projcache')?.table('sessions');
156
158
  if (!cache || typeof cache.delete !== 'function') reject('cache_unavailable');
157
159
  await checkCurrent(ctx, id);
158
- if (ctx.get('sessions')?.get(id) || ctx.get('agents')?.get(id)) reject('session_resident');
160
+ if (isResidentSession(ctx, id)) reject('session_resident');
159
161
  if (snapshot) {
160
162
  const current = await ctx.sessionPersistence.stat(id);
161
163
  if (!current || current.revision !== snapshot.revision || current.location?.path !== snapshot.location.path) reject('session_changed');
@@ -211,8 +213,7 @@ export async function cleanResidue(ctx, overview, selectedKeys, confirmedTasks =
211
213
  if (item.kind === 'ghost-registry') {
212
214
  if (!completedRegistrations.has(key)) {
213
215
  const workspace = (await ctx.workspaceRegistry.list()).find((entry) => entry.id === item.workspaceId);
214
- const table = ctx.get('storageDomain')?.get('workspace')?.table('workspaces');
215
- const record = table?.get(item.workspaceId);
216
+ const record = workspaceTable(ctx)?.get(item.workspaceId);
216
217
  if (!workspace || typeof workspace.detachSession !== 'function' || !Array.isArray(record?.sessionIds)) reject('workspace_unavailable');
217
218
  if (!record.sessionIds.includes(item.id)) reject('residue_changed');
218
219
  const visible = new Set(workspace.sessionIds ?? []);
@@ -224,7 +225,7 @@ export async function cleanResidue(ctx, overview, selectedKeys, confirmedTasks =
224
225
  });
225
226
  if (blockedIds.length) throw Object.assign(cleanError('workspace_filtered'), { blockedIds });
226
227
  for (const id of affected) {
227
- if (ctx.get('sessions')?.get(id) || ctx.get('agents')?.get(id)
228
+ if (isResidentSession(ctx, id)
228
229
  || (ctx.workspaceRegistry.archivedSessionIds ?? []).includes(id)
229
230
  || await ctx.sessionPersistence.stat(id)) reject('session_changed');
230
231
  }
@@ -245,7 +246,7 @@ export async function cleanResidue(ctx, overview, selectedKeys, confirmedTasks =
245
246
  const listed = await ctx.sessionQuery.listSessions();
246
247
  if (!Array.isArray(listed)) reject('reference_check_failed');
247
248
  if (listed.some((entry) => (entry?.header?.id ?? entry?.id) === item.targetSessionId)
248
- || ctx.get('sessions')?.get(item.targetSessionId) || ctx.get('agents')?.get(item.targetSessionId)
249
+ || isResidentSession(ctx, item.targetSessionId)
249
250
  || (ctx.workspaceRegistry.archivedSessionIds ?? []).includes(item.targetSessionId)
250
251
  || await ctx.sessionPersistence.stat(item.targetSessionId)) reject('session_changed');
251
252
  let result;
@@ -268,7 +269,9 @@ export async function cleanResidue(ctx, overview, selectedKeys, confirmedTasks =
268
269
  purging.add(item.id);
269
270
  try {
270
271
  if ((ctx.workspaceRegistry.archivedSessionIds ?? []).includes(item.id)) await checkCurrent(ctx, item.id);
271
- await releaseResidentSession(ctx, item.id);
272
+ // A shell whose session is still mounted in this instance is not
273
+ // removable without a DSH restart (no public release API).
274
+ if (isResidentSession(ctx, item.id)) reject('session_resident');
272
275
  // Disposing an older, partially deleted session may flush events and
273
276
  // recreate an event-only log before its writer closes.
274
277
  const eventOnly = await isEventOnlyLog(ctx, item.id, target).catch(() => false);
@@ -279,7 +282,7 @@ export async function cleanResidue(ctx, overview, selectedKeys, confirmedTasks =
279
282
  await removeSessionShell(target, item.id, {
280
283
  mode,
281
284
  recheck: async () => {
282
- if (ctx.get('sessions')?.get(item.id) || ctx.get('agents')?.get(item.id)
285
+ if (isResidentSession(ctx, item.id)
283
286
  || await ctx.sessionPersistence.stat(item.id)) reject('session_changed');
284
287
  if (mode === 'event-only' && !await isEventOnlyLog(ctx, item.id, target)) reject('session_changed');
285
288
  // A shell and its cache/registrations are one cleanup, whether
package/lib/routes.mjs CHANGED
@@ -34,15 +34,27 @@ function sessionIdsOf(body) {
34
34
 
35
35
  /** 注册全部路由(每条路由的注销由 ctx.effect 承载)。 */
36
36
  export function registerRoutes(ctx, config) {
37
+ /** Route failures answer a stable code; the raw error goes to the Host log. */
38
+ const fail = (path, error) => {
39
+ ctx.logger.warn(`dsh-mop: route ${path} failed`, error);
40
+ return json({ error: `dsh-mop:${error?.cleanCode ?? 'internal'}` }, 500);
41
+ };
37
42
  const get = (path, handler) => ctx.effect(() => ctx.connection.fetch.register({
38
43
  path: `${PREFIX}.${path}`, methods: ['GET', 'HEAD'], requestBody: 'buffered',
39
- fetch: async (request) => (request.method === 'HEAD' ? new Response(null, { status: 200 }) : handler(request)),
44
+ fetch: async (request) => {
45
+ if (request.method === 'HEAD') return new Response(null, { status: 200 });
46
+ try { return await handler(request); }
47
+ catch (error) { return fail(path, error); }
48
+ },
40
49
  }), `dsh-mop: ${PREFIX}.${path}`);
41
50
  const post = (path, handler) => ctx.effect(() => ctx.connection.fetch.register({
42
51
  path: `${PREFIX}.${path}`, methods: ['POST'], requestBody: 'buffered',
43
52
  fetch: async (request) => {
44
- try { return await handler(await readJsonBody(request)); }
45
- catch (error) { return json({ error: String(error?.message ?? error) }, 500); }
53
+ let body;
54
+ try { body = await readJsonBody(request); }
55
+ catch { return json({ error: 'dsh-mop:bad_request' }, 400); }
56
+ try { return await handler(body); }
57
+ catch (error) { return fail(path, error); }
46
58
  },
47
59
  }), `dsh-mop: ${PREFIX}.${path}`);
48
60
 
@@ -50,7 +62,7 @@ export function registerRoutes(ctx, config) {
50
62
  const overview = await buildOverview(ctx, config);
51
63
  const pick = (s) => ({
52
64
  id: s.id, title: s.title,
53
- live: s.live,
65
+ live: s.live, blank: s.blank, updatedAt: s.updatedAt,
54
66
  archived: s.archived, protected: s.protected, purgeBlock: s.purgeBlock, scheduleTasks: s.scheduleTasks,
55
67
  cwd: s.cwd, workspacePath: s.workspacePath, workspaceTitle: s.workspaceTitle, workspaceCreatedAt: s.workspaceCreatedAt,
56
68
  sizeBytes: s.sizeBytes, mtimeMs: s.mtimeMs,
package/lib/store.mjs CHANGED
@@ -2,8 +2,9 @@
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';
@@ -42,6 +43,12 @@ export function projcacheDir() {
42
43
  return dshHome('storages', 'session_projcache', 'sessions');
43
44
  }
44
45
 
46
+ /** The storageDomain workspace table behind the registry; read-only view. */
47
+ export function workspaceTable(ctx) {
48
+ const table = ctx.get('storageDomain')?.get('workspace')?.table('workspaces');
49
+ return table && typeof table.get === 'function' ? table : undefined;
50
+ }
51
+
45
52
  // Size is the sum of regular file contents, never follows symlinks. Unknown
46
53
  // entries, access errors or very large trees produce an unknown measurement.
47
54
  async function directoryMetrics(path) {
@@ -152,21 +159,35 @@ async function scanProjcache(knownIds) {
152
159
  return { orphans, files, titles };
153
160
  }
154
161
 
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 [];
162
+ /**
163
+ * 会话列表元数据(blank / lastPromptAt),与官方 session/list 同源:
164
+ * 已挂载会话读 sessionProjections 投影,冷会话读 sessionProjectionCache。
165
+ * 服务缺失或投影未注册时按官方 summarizeCold 语义降级(blank=false)。
166
+ */
167
+ async function listMetadataOf(ctx, header) {
168
+ try {
169
+ const attached = ctx.get('sessions')?.get(header.id);
170
+ const snapshot = attached !== undefined
171
+ ? ctx.get('sessionProjections')?.snapshot(attached, ['sessionListMetadata'])
172
+ : ctx.get('sessionProjectionCache')?.cachedSnapshot(header, ['sessionListMetadata']);
173
+ return snapshot?.values?.sessionListMetadata;
174
+ } catch { return undefined; }
175
+ }
176
+
177
+ /**
178
+ * DSH 的 workspace getter 只暴露可见注册。隐藏注册(被过滤的候选)通过
179
+ * storageDomain 的 workspace 域表读取——与 clean.mjs 校验所用的同一官方
180
+ * 服务面;只读用于展示,从不写该表。
181
+ */
182
+ function filteredWorkspaceRegistrations(ctx, workspaces) {
183
+ const table = workspaceTable(ctx);
184
+ if (!table) return [];
164
185
  const filtered = [];
165
186
  for (const workspace of workspaces) {
166
- const stored = records[workspace.id];
167
- if (!stored || stored.path !== workspace.path || !Array.isArray(stored.sessionIds)) continue;
187
+ const record = table.get(workspace.id);
188
+ if (!record || record.path !== workspace.path || !Array.isArray(record.sessionIds)) continue;
168
189
  const visible = new Set(workspace.sessionIds ?? []);
169
- for (const id of stored.sessionIds) {
190
+ for (const id of record.sessionIds) {
170
191
  if (typeof id === 'string' && SESSION_DIR_RE.test(id) && !visible.has(id)) filtered.push({ id, workspace });
171
192
  }
172
193
  }
@@ -265,11 +286,18 @@ export async function buildOverview(ctx, config) {
265
286
  const live = agent !== undefined && agent.status !== 'idle';
266
287
  // 官方查询包含尚未落盘的空白会话;即使无日志也应显示。
267
288
  const workspace = registered.get(header.id);
289
+ // 官方 session/list 同源的列表元数据:blank 标志与最近活动时间。
290
+ const metadata = await listMetadataOf(ctx, header);
268
291
  items.push({
269
292
  id: header.id,
270
293
  title: titles.get(header.id) ?? cache.titles.get(header.id) ?? basename(header.cwd) ?? header.id,
271
294
  cwd: header.cwd ?? null,
272
295
  live,
296
+ blank: metadata?.blank === true,
297
+ updatedAt: Math.max(
298
+ Number.isFinite(header.createdAt) ? header.createdAt : 0,
299
+ Number.isFinite(metadata?.lastPromptAt) ? metadata.lastPromptAt : 0,
300
+ ) || null,
273
301
  archived: archivedSet.has(header.id),
274
302
  protected: protectedWorkspaces.has(workspace?.path ?? header.cwd),
275
303
  purgeBlock: scheduleCheckFailed ? 'reference_check_failed' : scheduleRefs.has(header.id) ? 'schedule_reference' : null,
@@ -283,7 +311,7 @@ export async function buildOverview(ctx, config) {
283
311
  });
284
312
  }
285
313
 
286
- const filteredRegistrations = await filteredWorkspaceRegistrations(workspaces);
314
+ const filteredRegistrations = filteredWorkspaceRegistrations(ctx, workspaces);
287
315
  const registrations = new Map();
288
316
  for (const workspace of workspaces) {
289
317
  for (const id of workspace.sessionIds ?? []) registrations.set(`${workspace.id}:${id}`, { id, workspace });
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "dsh-mop",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
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
- });