dsh-mop 0.0.0-stage → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tryhub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,44 @@
1
- # Temporary Holding Version
1
+ # dsh-mop
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 在 DeepSeek Harness(DSH)中查看和管理会话、归档和残留数据。插件提供搜索、多选和删除操作,也显示新建后尚未交互的会话。
4
+
5
+ ## 可以做什么
6
+
7
+ - 查看并搜索会话,包括新建后尚未交互的会话,使用 DSH 的归档操作。
8
+ - 查看已归档会话,取消归档或删除所选会话。
9
+ - 查看并删除残留的任务、缓存、工作区注册和会话目录等数据。
10
+ - 按工作区浏览列表,查看会话状态和关联的自动化任务。
11
+
12
+ ## 用命令行安装
13
+
14
+ 使用 DSH 的插件命令安装。下面以 `web` profile 为例;使用其他 profile 时,请替换 profile 名称:
15
+
16
+ ```sh
17
+ dsh plugin --profile web add dsh-mop
18
+ ```
19
+
20
+ ## 使用
21
+
22
+ 在「设置 → 归档会话」中选择页签,搜索并勾选需要操作的项目:
23
+
24
+ - **会话**:选择「归档会话」。
25
+ - **已归档**:选择「取消归档」或「删除」。
26
+ - **残留**:选择需要清理的项目,点击「删除」。
27
+
28
+ 归档和取消归档使用 DSH 的操作。删除已归档会话或残留由本插件处理,删除后无法恢复。
29
+
30
+ ## 多语言
31
+
32
+ 界面文案按语言放在包根目录的 `client.<语言>.js`,由 DSH 按需下发,无需构建;修改文案直接改对应文件。插件在插件列表中的名称和简介在 `locale/<语言>.json`,DSH 只从 `locale/` 读取 JSON,所以这两类文件并存。`client.js` 中的 `OFFICIAL_COPY` 列出直接复用的 DSH 官方词条,语言文件里不要再定义这些键。英文是回退语言,词条需完整;其他语言缺的键回退英文。新增语言需先在 DSH 中注册,再添加 `client.<语言>.js` 和 `locale/<语言>.json`,并把语言代码加入 `client.js` 的 `LANGUAGE_FILES`。
33
+
34
+ DSH 下发语言文件时使用的版本号只由 `client.js` 决定。用本地目录安装调试时,只改语言文件可能仍显示浏览器缓存里的旧文案,需同时改动 `client.js` 或清除缓存。
35
+
36
+ ## 升级与卸载
37
+
38
+ 从 npm 安装后,可在插件详情的「版本」区块检查和安装更新。卸载时在 DSH 的「插件」页面选择本插件并卸载。
39
+
40
+ 命令行卸载时,请使用安装时所选的 profile,例如:
41
+
42
+ ```sh
43
+ dsh plugin --profile web remove dsh-mop
44
+ ```
package/client.de.js ADDED
@@ -0,0 +1,39 @@
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 ADDED
@@ -0,0 +1,39 @@
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 ADDED
@@ -0,0 +1,39 @@
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 ADDED
@@ -0,0 +1,39 @@
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 ADDED
@@ -0,0 +1,39 @@
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
+ });