dsh-manage-session 0.5.7 → 2.0.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.
Files changed (67) hide show
  1. package/CHANGELOG.ja.md +33 -229
  2. package/CHANGELOG.ko.md +33 -229
  3. package/CHANGELOG.md +33 -363
  4. package/INSTALL.ja.md +164 -164
  5. package/INSTALL.ko.md +164 -164
  6. package/INSTALL.md +164 -164
  7. package/INSTALL.zh.md +164 -164
  8. package/LICENSE +21 -21
  9. package/README.en.md +41 -46
  10. package/README.ja.md +33 -57
  11. package/README.ko.md +32 -55
  12. package/README.md +64 -64
  13. package/cordis.patch.yml +19 -16
  14. package/dsh.plugin.json +4 -4
  15. package/lib/client.js +661 -3082
  16. package/lib/index.d.ts +79 -970
  17. package/lib/index.js +249 -2669
  18. package/locale/de.json +2 -2
  19. package/locale/en.json +2 -2
  20. package/locale/es.json +2 -2
  21. package/locale/fr.json +2 -2
  22. package/locale/it.json +2 -2
  23. package/locale/ja.json +2 -2
  24. package/locale/ko.json +2 -2
  25. package/locale/ru.json +2 -2
  26. package/locale/zh.json +2 -2
  27. package/package.json +15 -25
  28. package/screenshots.json +3 -3
  29. package/src/client/bridge-scope.ts +202 -213
  30. package/src/client/card.tsx +154 -154
  31. package/src/client/health-panel.tsx +49 -49
  32. package/src/client/host-api.ts +72 -6
  33. package/src/client/index.ts +594 -503
  34. package/src/client/locales.ts +893 -893
  35. package/src/client/manage-locales.ts +178 -0
  36. package/src/client/{search/manage.tsx → manage.tsx} +430 -404
  37. package/src/client/panel.tsx +131 -129
  38. package/src/client/session-menu-legacy.ts +2 -3
  39. package/src/client/session-menu.tsx +5 -5
  40. package/src/config.ts +43 -99
  41. package/src/host/health/attribution.ts +118 -118
  42. package/src/host/health/lossless.ts +128 -128
  43. package/src/host/health/repair.ts +2 -2
  44. package/src/host/health/source-kind.ts +350 -350
  45. package/src/host/history/archive-source.ts +250 -250
  46. package/src/host/history/archive.ts +249 -249
  47. package/src/host/history/favorites.ts +71 -71
  48. package/src/host/history/purge.ts +370 -370
  49. package/src/host/history/tombstones.ts +3 -3
  50. package/src/host/registry/archive-registry.ts +317 -317
  51. package/src/host/settings-bridge.ts +222 -264
  52. package/src/index.ts +66 -694
  53. package/src/client/search/card.tsx +0 -563
  54. package/src/client/search/host-api.ts +0 -213
  55. package/src/client/search/locales.ts +0 -861
  56. package/src/client/search/locate.ts +0 -330
  57. package/src/client/search/panel.tsx +0 -940
  58. package/src/client/search/platform.ts +0 -136
  59. package/src/host/index/archive-source.ts +0 -90
  60. package/src/host/index/drs-source.ts +0 -211
  61. package/src/host/index/engine.ts +0 -699
  62. package/src/host/index/extract.ts +0 -272
  63. package/src/host/index/peers.ts +0 -62
  64. package/src/host/index/rebuild.ts +0 -432
  65. package/src/host/index/schema.ts +0 -136
  66. package/src/host/index/snapshot.ts +0 -135
  67. package/src/host/index/sync.ts +0 -413
package/locale/de.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Sitzungs-Verwalter",
4
- "description": "Sitzungsverlaufsdateien (Archivansicht und Bereinigung) und Sitzungs-Health-Check (Untersuchung → Rezept → Entlassung); keine Eingriffe in Sitzungsprotokolle, nur umkehrbare Vorgänge."
3
+ "title": "Sitzungsmanager",
4
+ "description": "Eine Konsole für aktive und archivierte Sitzungen (Ansehen, Filtern, Favoriten, Archivieren/Zurückholen, Sammelbereinigung, Löschen) plus Sitzungs-Check. Der Eintrag nutzt bevorzugt den oberen Werkzeugplatz der Seitenleiste, sonst den Fußbereich. Keine eigene Suche, keine DRS-Abhängigkeit."
5
5
  }
6
6
  }
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Session Steward",
4
- "description": "Session history files (archive browsing & cleanup) and session health checks (checkup → prescription → discharge) — reversible operations only, no touching of session logs."
3
+ "title": "Session Manager",
4
+ "description": "One console for active and archived sessions (browse, filter, favorite, archive/unarchive, batch purge, delete) plus a four-gate health checkup. The entry prefers the sidebar top tool slot and falls back to the footer. No search/index of its own and no DRS dependency."
5
5
  }
6
6
  }
package/locale/es.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Mayordomo de sesión",
4
- "description": "Archivos de historial de sesión (visualización y limpieza del archivo) y comprobación de salud de las sesiones (revisión → receta → alta); no toca los registros de sesión, solo operaciones reversibles."
3
+ "title": "Gestor de sesiones",
4
+ "description": "Una consola para sesiones activas y archivadas (explorar, filtrar, favoritos, archivar/desarchivar, limpieza por lotes, eliminar) y revisión de salud. La entrada usa la ranura de herramientas superior y, si no existe, el pie. Sin búsqueda propia ni dependencia de DRS."
5
5
  }
6
6
  }
package/locale/fr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Intendant de session",
4
- "description": "Fichiers d'historique de session (consultation et nettoyage des archives) et contrôle de santé des sessions (examen → ordonnance → sortie) ; aucune modification des journaux de session, opérations réversibles uniquement."
3
+ "title": "Gestionnaire de sessions",
4
+ "description": "Une console pour les sessions actives et archivées (parcourir, filtrer, favoris, archiver/désarchiver, nettoyage par lot, supprimer) et un bilan de santé. L’entrée privilégie l’emplacement d’outils en haut de la barre latérale, sinon le pied. Pas de recherche propre, aucune dépendance DRS."
5
5
  }
6
6
  }
package/locale/it.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Amministratore di sessione",
4
- "description": "File della cronologia delle sessioni (consultazione e pulizia degli archivi) e controllo di salute delle sessioni (visita → prescrizione → dimissione); non tocca i log di sessione, solo operazioni reversibili."
3
+ "title": "Gestore sessioni",
4
+ "description": "Una console per sessioni attive e archiviate (sfoglia, filtra, preferiti, archivia/ripristina, pulizia in blocco, elimina) e controllo di salute. La voce usa lo slot strumenti in alto nella barra laterale, altrimenti il piè di pagina. Nessuna ricerca propria, nessuna dipendenza DRS."
5
5
  }
6
6
  }
package/locale/ja.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "セッションスチュワード",
4
- "description": "セッション履歴ファイル(アーカイブの閲覧とクリーンアップ)とセッションのヘルスチェック(健診 → 処方 → 退院)。セッションログには触れず、可逆的な操作のみを行います。"
3
+ "title": "セッションマネージャー",
4
+ "description": "アクティブ/アーカイブ済みセッションの統合管理(閲覧・絞り込み・お気に入り・アーカイブ/解除・一括整理・削除)とセッション健診。入口はサイドバー上部のツール枠を優先し、無い場合は下部に配置。検索・索引は含まず DRS 依存もありません。"
5
5
  }
6
6
  }
package/locale/ko.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "세션 스튜어드",
4
- "description": "세션 기록 파일(아카이브 탐색 및 정리)과 세션 건강 점검(진료 → 처방 → 퇴원). 세션 로그는 건드리지 않으며 되돌릴 수 있는 작업만 수행합니다."
3
+ "title": "세션 매니저",
4
+ "description": "활성·보관 세션 통합 관리(탐색·필터·즐겨찾기·보관/해제·일괄 정리·삭제)와 세션 건강 점검. 진입점은 사이드바 상단 도구 슬롯을 우선하며 없으면 하단으로 대체. 검색·색인은 없고 DRS 의존도 없습니다."
5
5
  }
6
6
  }
package/locale/ru.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Распорядитель сессий",
4
- "description": "Файлы истории сессий (просмотр и очистка архивов) и проверка здоровья сессий (осмотр → рецепт → выписка); не затрагивает журналы сессий, только обратимые операции."
3
+ "title": "Менеджер сессий",
4
+ "description": "Единая консоль для активных и архивных сессий (просмотр, фильтры, избранное, архивация/разархивация, пакетная очистка, удаление) и проверка сессий. Пункт занимает верхний слот инструментов боковой панели, иначе — нижнюю область. Своего поиска нет, зависимости от DRS нет."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "会话管家",
4
- "description": "会话历史文件(归档浏览与清理)与会话健康检查(体检 → 处方 → 出院),不碰会话日志、只做可逆处置。"
3
+ "title": "会话管理",
4
+ "description": "活跃与归档会话的一体化管理台(浏览、筛选、收藏、归档与取消归档、批量清理、删除)与四门会话体检;侧栏入口优先落顶部工具槽位,无该槽位时回落底栏。不含搜索/索引、不依赖 DRS。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,24 +1,23 @@
1
1
  {
2
2
  "name": "dsh-manage-session",
3
- "version": "0.5.7",
3
+ "version": "2.0.4",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "tag": "beta",
7
7
  "access": "public"
8
8
  },
9
- "description": "DSH Web 插件:会话管家(合并包)—— 会话历史文件(归档浏览与清理)与健康检查(体检 → 处方 → 出院),外加独立 FTS5 会话内容搜索索引(标题/内容双模式、增量同步、非破坏性整理与快照导入导出)。不碰会话日志、只做可逆处置。",
9
+ "description": "DSH Web 插件:会话管理台 —— 统一管理活跃与归档会话(列表/筛选/收藏/归档与取消归档/批量清理/删除),外加四门会话体检。侧栏入口优先落在顶部工具槽位(插件行之后),宿主无该槽位时回落底栏。不维护索引、不依赖 DRS;搜索能力由 dsh-search-index 提供。(原名 dsh-session-steward,2.0.0 起搜索能力拆回 dsh-search-index)",
10
10
  "keywords": [
11
11
  "archive",
12
12
  "deepseek-harness",
13
13
  "doctor",
14
14
  "dsh",
15
15
  "dsh-plugin",
16
- "fts5",
17
16
  "health",
18
- "index",
19
- "search",
17
+ "manage",
18
+ "manager",
20
19
  "session",
21
- "sqlite"
20
+ "sessions"
22
21
  ],
23
22
  "repository": {
24
23
  "type": "git",
@@ -50,10 +49,7 @@
50
49
  "@deepseek-ai/dsh-client-ui-settings",
51
50
  "@deepseek-ai/dsh-client-ui-settings-general"
52
51
  ]
53
- },
54
- "pluginDependencies": [
55
- "dsh-reference-session-collector"
56
- ]
52
+ }
57
53
  },
58
54
  "scripts": {
59
55
  "build": "node -e \"require('fs').rmSync('lib',{recursive:true,force:true})\" && tsc -b && tsdown",
@@ -61,7 +57,7 @@
61
57
  "prepublishOnly": "npm run build && node scripts/check-release.mjs",
62
58
  "typecheck": "tsc -b --pretty false",
63
59
  "test": "vitest run",
64
- "test:client": "node tests/client-store.test.mjs && node tests/client-panel-key.test.mjs && node tests/client-styles.test.mjs && node --import tsx tests/client-platform.test.mjs && node --import tsx tests/client-host-api.test.mjs && node --import tsx tests/client-locales.test.mjs && node --import tsx tests/client-open-session.test.mjs",
60
+ "test:client": "node tests/client-store.test.mjs && node --import tsx tests/client-locales.test.mjs && node --import tsx tests/client-open-session.test.mjs",
65
61
  "test:release": "node scripts/check-release.mjs"
66
62
  },
67
63
  "files": [
@@ -86,18 +82,18 @@
86
82
  ],
87
83
  "engines": {
88
84
  "node": ">=20",
89
- "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3"
85
+ "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4"
90
86
  },
91
87
  "license": "MIT",
92
88
  "peerDependencies": {
93
89
  "@deepseek-ai/cordis": "^4.0.1",
94
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
95
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
96
- "@deepseek-ai/dsh-client-ui-settings-general": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
97
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3",
90
+ "@deepseek-ai/dsh-client-locale": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4",
91
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4",
92
+ "@deepseek-ai/dsh-client-ui-settings-general": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4",
93
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4",
98
94
  "@deepseek-ai/schemastery": "^3.18.4",
99
95
  "react": "^18.2.0",
100
- "@deepseek-ai/dsh-session": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3"
96
+ "@deepseek-ai/dsh-session": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4"
101
97
  },
102
98
  "peerDependenciesMeta": {
103
99
  "@deepseek-ai/dsh-client-locale": {
@@ -118,7 +114,7 @@
118
114
  },
119
115
  "devDependencies": {
120
116
  "@deepseek-ai/cordis": "^4.0.1",
121
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.1",
117
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.4",
122
118
  "@deepseek-ai/schemastery": "^3.18.4",
123
119
  "@types/node": "^24.0.0",
124
120
  "@types/react": "~18.3.1",
@@ -131,12 +127,6 @@
131
127
  "typescript": "^5.6.0",
132
128
  "vite-tsconfig-paths": "^6.1.1",
133
129
  "vitest": "^4.1.1",
134
- "@deepseek-ai/dsh-session": "0.2.1-rc.1"
135
- },
136
- "optionalDependencies": {
137
- "better-sqlite3": "12.11.1"
138
- },
139
- "dependencies": {
140
- "dsh-reference-session-collector": ">=0.2.0-beta.0 <0.3.0"
130
+ "@deepseek-ai/dsh-session": "0.2.1-rc.4"
141
131
  }
142
132
  }
package/screenshots.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "screenshots": [
3
- "assets/left-sidebar.png",
4
- "assets/archive.png",
5
- "assets/doctor.png"
3
+ "assets/new-manager.png",
4
+ "assets/old-archive.png",
5
+ "assets/left-sidebar-old.png"
6
6
  ]
7
7
  }