dsh-cookie-cleaner 0.7.1 → 0.7.2

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.
@@ -1,39 +1,39 @@
1
- /**
2
- * dsh-cookie-cleaner — 「文件属于别的用户」这一档的 9 语文案(单文件集中放,便于核对)。
3
- *
4
- * 触发条件见 core.js 的 classifyOpenFailure:POSIX 上 stat.uid ≠ process.getuid()。
5
- * 实测 node:sqlite 在权限不足时**不报 EACCES**(只报 unable to open database file),
6
- * 所以这一档不能靠错误码判定,只能自己探属主。
7
- */
8
-
9
- /** @type {Record<string,string>} */
10
- export const ADVISE_OWNER = {
11
- zh: ' 处置:这个文件属于另一个用户(不是跑本命令的你)。用那个账号跑,或用 --db=<完整路径> 指向你自己那份库。',
12
- en: ' What to do: this file belongs to another user, not the one running this command. Run it as that account, or point at your own store with --db=<full path>.',
13
- ja: ' 対処:このファイルは別ユーザーの所有です(本コマンドの実行者ではありません)。そのアカウントで実行するか、--db=<フルパス> で自身のデータベースを指定してください。',
14
- ko: ' 조치: 이 파일은 다른 사용자의 소유입니다(본 명령의 실행자가 아님). 해당 계정으로 실행하거나 --db=<전체 경로>로 자신의 데이터베이스를 지정하세요.',
15
- fr: ' À faire : ce fichier appartient à un autre utilisateur que celui qui lance la commande. Exécutez-le sous ce compte, ou désignez votre propre base avec --db=<chemin complet>.',
16
- de: ' Vorgehen: diese Datei gehört einem anderen Nutzer als dem, der diesen Befehl ausführt. Führen Sie ihn als diesen Nutzer aus, oder zeigen Sie mit --db=<vollständiger Pfad> auf Ihre eigene Datenbank.',
17
- it: ' Cosa fare: questo file appartiene a un utente diverso da chi esegue il comando. Esegilo come quell’account, oppure indica il tuo archivio con --db=<percorso completo>.',
18
- ru: ' Что делать: этот файл принадлежит другому пользователю, а не тому, кто запускает команду. Запустите её от того аккаунта или укажите свою базу через --db=<полный путь>.',
19
- es: ' Qué hacer: este archivo pertenece a otro usuario, no al que ejecuta este comando. Ejecútalo con esa cuenta, o señala tu propio almacén con --db=<ruta completa>.',
20
- }
21
-
22
- /**
23
- * 「读不到 = 库里没这个文件」的统计行(9 语)。跟 classifyOpenFailure 的 missing 档配对;
24
- * 实测:首次使用前的空目录、自定义安装位置都会落在这里,归成 busy 就是误报。
25
- */
26
- /** @type {Record<string,string>} */
27
- export const STAT_MISSING = {
28
- zh: 'cookie 库不在这个位置(客户端从未起过、或装在了别处):{path}',
29
- en: 'No cookie database at this location (the client never ran, or it lives elsewhere): {path}',
30
- ja: 'この位置に cookie データベースがありません(クライアント未起動、か別の場所にあります):{path}',
31
- ko: '이 위치에 cookie 데이터베이스가 없습니다(클라이언트를 실행한 적 없거나 다른 곳에 있습니다): {path}',
32
- fr: 'Pas de base de cookies à cet emplacement (le client n’a jamais tourné, ou elle est ailleurs) : {path}',
33
- de: 'Keine Cookie-Datenbank an diesem Ort (der Client lief nie, oder sie liegt woanders): {path}',
34
- it: 'Nessun database dei cookie in questa posizione (il client non è mai partito, oppure sta altrove): {path}',
35
- ru: 'Базы cookie в этом месте нет (клиент не запускался или хранится elsewhere): {path}',
36
- es: 'No hay base de cookies en esta ubicación (el cliente nunca se ejecutó, o está en otro sitio): {path}',
37
- }
38
- // ru 文案里的英文残留清掉
39
- STAT_MISSING.ru = STAT_MISSING.ru.replace('хранится elsewhere', 'лежит в другом месте')
1
+ /**
2
+ * dsh-cookie-cleaner — 「文件属于别的用户」这一档的 9 语文案(单文件集中放,便于核对)。
3
+ *
4
+ * 触发条件见 core.js 的 classifyOpenFailure:POSIX 上 stat.uid ≠ process.getuid()。
5
+ * 实测 node:sqlite 在权限不足时**不报 EACCES**(只报 unable to open database file),
6
+ * 所以这一档不能靠错误码判定,只能自己探属主。
7
+ */
8
+
9
+ /** @type {Record<string,string>} */
10
+ export const ADVISE_OWNER = {
11
+ zh: ' 处置:这个文件属于另一个用户(不是跑本命令的你)。用那个账号跑,或用 --db=<完整路径> 指向你自己那份库。',
12
+ en: ' What to do: this file belongs to another user, not the one running this command. Run it as that account, or point at your own store with --db=<full path>.',
13
+ ja: ' 対処:このファイルは別ユーザーの所有です(本コマンドの実行者ではありません)。そのアカウントで実行するか、--db=<フルパス> で自身のデータベースを指定してください。',
14
+ ko: ' 조치: 이 파일은 다른 사용자의 소유입니다(본 명령의 실행자가 아님). 해당 계정으로 실행하거나 --db=<전체 경로>로 자신의 데이터베이스를 지정하세요.',
15
+ fr: ' À faire : ce fichier appartient à un autre utilisateur que celui qui lance la commande. Exécutez-le sous ce compte, ou désignez votre propre base avec --db=<chemin complet>.',
16
+ de: ' Vorgehen: diese Datei gehört einem anderen Nutzer als dem, der diesen Befehl ausführt. Führen Sie ihn als diesen Nutzer aus, oder zeigen Sie mit --db=<vollständiger Pfad> auf Ihre eigene Datenbank.',
17
+ it: ' Cosa fare: questo file appartiene a un utente diverso da chi esegue il comando. Esegilo come quell’account, oppure indica il tuo archivio con --db=<percorso completo>.',
18
+ ru: ' Что делать: этот файл принадлежит другому пользователю, а не тому, кто запускает команду. Запустите её от того аккаунта или укажите свою базу через --db=<полный путь>.',
19
+ es: ' Qué hacer: este archivo pertenece a otro usuario, no al que ejecuta este comando. Ejecútalo con esa cuenta, o señala tu propio almacén con --db=<ruta completa>.',
20
+ }
21
+
22
+ /**
23
+ * 「读不到 = 库里没这个文件」的统计行(9 语)。跟 classifyOpenFailure 的 missing 档配对;
24
+ * 实测:首次使用前的空目录、自定义安装位置都会落在这里,归成 busy 就是误报。
25
+ */
26
+ /** @type {Record<string,string>} */
27
+ export const STAT_MISSING = {
28
+ zh: 'cookie 库不在这个位置(客户端从未起过、或装在了别处):{path}',
29
+ en: 'No cookie database at this location (the client never ran, or it lives elsewhere): {path}',
30
+ ja: 'この位置に cookie データベースがありません(クライアント未起動、か別の場所にあります):{path}',
31
+ ko: '이 위치에 cookie 데이터베이스가 없습니다(클라이언트를 실행한 적 없거나 다른 곳에 있습니다): {path}',
32
+ fr: 'Pas de base de cookies à cet emplacement (le client n’a jamais tourné, ou elle est ailleurs) : {path}',
33
+ de: 'Keine Cookie-Datenbank an diesem Ort (der Client lief nie, oder sie liegt woanders): {path}',
34
+ it: 'Nessun database dei cookie in questa posizione (il client non è mai partito, oppure sta altrove): {path}',
35
+ ru: 'Базы cookie в этом месте нет (клиент не запускался или хранится elsewhere): {path}',
36
+ es: 'No hay base de cookies en esta ubicación (el cliente nunca se ejecutó, o está en otro sitio): {path}',
37
+ }
38
+ // ru 文案里的英文残留清掉
39
+ STAT_MISSING.ru = STAT_MISSING.ru.replace('хранится elsewhere', 'лежит в другом месте')
@@ -1,220 +1,220 @@
1
- /**
2
- * dsh-cookie-cleaner — 运行时文案字典(en / ja / ko / fr)。
3
- *
4
- * 键集必须与 `zh`(i18n.js 里的真理源)逐键相等:`registerDictionary` 会在装载时
5
- * 机械核对缺键/多键并直接抛错,所以这里不做兜底、不加解释性键。
6
- * 占位符名({path} / {count} …)原样保留,只调整语序。
7
- */
8
- import { registerDictionary } from './i18n.js'
9
- import { ADVISE_OWNER, STAT_MISSING } from './locales-advise-owner.js'
10
-
11
- registerDictionary('en', {
12
- skipped: 'No cookie database located — if you are running the Web edition instead of the desktop client, the browser owns its own cookies and there is nothing for this tool to clean.',
13
- skippedCandidates: 'Candidate paths:',
14
- skippedHint: 'If you use the Web edition (browser talking to the host directly) there is no such file locally; for the desktop client point at it with userDataRoot or --db.',
15
- busy: 'The cookie database is currently unreadable (the client is running and Chromium holds it exclusively): {path}',
16
- busyWhy: 'A host plugin cannot clean this database while it runs — that is an operating-system file lock, not a limitation of this tool.',
17
- permission: 'The cookie database cannot be read: insufficient permission (the file belongs to another user, or a flatpak/snap install keeps it outside the usual location): {path}',
18
- permissionHint: 'What to do: confirm which user runs the command, or point at the database directly:',
19
- dbRequired: '--db=<full path>',
20
- exitWin: 'Quit the DSH client completely (tray icon → Exit, and make sure no DeepSeek Harness remains in the process list)',
21
- exitMac: 'Quit the DSH client completely (Cmd+Q or the menu → Quit; an icon disappearing from the Dock is not enough — confirm no DeepSeek Harness remains in ps)',
22
- exitLinux: 'Quit the DSH client completely (close the main window, then confirm no DeepSeek Harness / dsh-desktop process remains)',
23
- dbLine: 'Cookie database: {path} ({bytes} B, {total} entries total)',
24
- ok: 'Status: ok — no dsh-auth-* leftovers, nothing to clean.',
25
- found: 'Status: found {count} dsh-auth-* entries (expired {expired} / still valid {live})',
26
- span: 'Expiry window: {oldest} to {newest}',
27
- hostLine: 'host_key distribution: ',
28
- note: 'Note: dsh-auth-* names are hashed from host:port, so every port change leaves one entry, and unexpired ones linger until the 30-day term ends. They do not affect login (the main window uses in-memory credentials and auth only ever reads the entry matching the current port) and they do not involve account credentials, sessions or plugin config.',
29
- nextStatus: 'Next: after you {exit}, run this in a terminal (add --dry-run to preview the count):',
30
- nextClean: 'Cleanup command (make sure to {exit} first — it cannot run while the client is up):',
31
- cleanFooter: ' The default tier removes every dsh-auth-* entry; --expired-only limits it to expired ones; a .bak copy is written before any change.',
32
- statClean: 'Clean: {path} ({total} cookies, no dsh-auth-* leftovers)',
33
- statBusy: 'Cannot read (the client is running and holds the database): {path}',
34
- statMissing: STAT_MISSING['en'],
35
- statPermission: 'No permission to read the cookie database (wrong directory ownership or the file is not yours): {path}',
36
- statFound: 'Found {count} dsh-auth-* entries (expired {expired} / still valid {live}) across {hosts} host_key value(s), database size {bytes} B: {path}',
37
- deleted: 'Deleted {count} dsh-auth-* entries ({scope})',
38
- scopeAll: 'all',
39
- scopeExpired: 'expired only',
40
- scopeOlderThan: 'older than {hours}h',
41
- dbSize: ' Database: {path} {before} B → {after} B',
42
- backup: ' Backup: {backup}',
43
- backupWith: ' (incl. {sidecars})',
44
- backupSkipped: ' Backup: skipped via --no-backup',
45
- backupWarn: ' Note: {sidecars} could not be copied (locked); the main database copy is still complete and this deletion is unaffected.',
46
- untouched: ' Account credentials, sessions and plugin configuration were not touched; the local cookie is re-issued on next start.',
47
- dryRun: '[dry-run] would delete {count} entries: {path}',
48
- dryRunTail: 'Nothing was written. Drop --dry-run to actually do it.',
49
- notFound: 'Cookie database not found. Candidate paths: {candidates} You can pass --db=<full path>.',
50
- nextCliClean: 'Next: after you {exit}, run `dsh-cookie-cleaner --clean` (the default also removes unexpired entries; login is unaffected, see README).',
51
- nextCliRerun: 'Next: after you {exit}, rerun this command.',
52
- nextCliPermission: 'Next: confirm the user running this command owns the file, or point at your database with --db=<full path>.',
53
- openFailed: 'Cannot open the cookie database: {path}',
54
- reason: ' Reason: {reason}',
55
- adviseBusy: ' What to do: Chromium holds this database while the client runs. Please {exit}, then rerun this command.',
56
- adviseMissing: ' What to do: the file is not here — the path moved, the client never ran, or it was marked for deletion. Point at the real cookie store with --db=<full path>.',
57
- advisePermission: ' What to do: this account cannot read the file (permissions or ownership). Make sure it belongs to the user running this command; flatpak/snap stores sit outside the usual path, so point at yours with --db=<full path>.',
58
- adviseOwner: ADVISE_OWNER['en'],
59
- missingFile: 'the file does not exist (or is marked for deletion)',
60
- cleanFailed: 'Cleanup failed: ',
61
- })
62
-
63
- /** de/it/ru/es 单拆一文件(免单文件过大),装载时一并注册。 */
64
- import './locales-dict2.js'
65
-
66
- registerDictionary('ja', {
67
- skipped: 'cookie データベースが見つかりません——デスクトップクライアントではなく Web 版をご利用の場合、cookie はブラウザー側が管理するため、本ツールが掃除するものではありません。',
68
- skippedCandidates: '候補パス:',
69
- skippedHint: 'Web 版(ブラウザーからホストへ直接接続)ではこのファイルは存在しません。デスクトップ版は userDataRoot または --db で指定してください。',
70
- busy: 'cookie データベースを現在読み取れません(クライアント起動中で Chromium が独占しています):{path}',
71
- busyWhy: 'ホストプラグインは実行中にこのデータベースを掃除できません——これは本ツールの制限ではなく OS のファイルロックです。',
72
- permission: 'cookie データベースを読めません:権限不足(ファイルの所有者が違う、または flatpak/snap 版が通常以外の場所に置いています):{path}',
73
- permissionHint: '対処:コマンドを実行するユーザーを確認するか、データベースを直接指定してください:',
74
- dbRequired: '--db=<フルパス>',
75
- exitWin: 'DSH クライアントを完全に終了(トレイアイコン → 終了、プロセス一覧に DeepSeek Harness が無いことを確認)',
76
- exitMac: 'DSH クライアントを完全に終了(Cmd+Q またはメニュー → Quit;Dock のアイコンが消えるだけでは不十分、ps に DeepSeek Harness が無いことを確認)',
77
- exitLinux: 'DSH クライアントを完全に終了(メインウィンドウを閉じ、プロセス一覧に DeepSeek Harness / dsh-desktop が無いことを確認)',
78
- dbLine: 'cookie データベース:{path}({bytes} B、合計 {total} 件)',
79
- ok: '状態:ok —— dsh-auth-* の残りはなく、掃除は不要です。',
80
- found: '状態:dsh-auth-* を {count} 件発見(期限切れ {expired} / 有効 {live})',
81
- span: '期限の範囲:{oldest} ~ {newest}',
82
- hostLine: 'host_key 分布:',
83
- note: '補足:dsh-auth-* の名前は host:port のハッシュで、ポートが変わるたびに 1 件残り、有効なものは 30 日期限まで残ります。ログインには影響しません(メインウィンドウはメモリ上の資格情報を使い、認証は現在のポートの 1 件しか読みません)。アカウント資格情報・セッション・プラグイン設定にも無関係です。',
84
- nextStatus: '次:{exit}後、ターミナルで次を実行(先に件数だけ見るなら --dry-run を付記):',
85
- nextClean: '掃除コマンド(必ず先に{exit}——起動中は実行できません):',
86
- cleanFooter: ' 既定では dsh-auth-* を全消し、--expired-only は期限切れのみ。書き込み前に .bak を自動保存します。',
87
- statClean: 'クリーン:{path}(cookie 合計 {total} 件、dsh-auth-* の残りはなし)',
88
- statBusy: '読み取れません(クライアント起動中でデータベースが独占されています):{path}',
89
- statMissing: STAT_MISSING['ja'],
90
- statPermission: 'cookie データベースを読む権限がありません(場所が不適切、または所有者が違います):{path}',
91
- statFound: 'dsh-auth-* を {count} 件発見(期限切れ {expired} / 有効 {live})、{hosts} 個の host_key、サイズ {bytes} B:{path}',
92
- deleted: 'dsh-auth-* を {count} 件削除しました({scope})',
93
- scopeAll: 'すべて',
94
- scopeExpired: '期限切れのみ',
95
- scopeOlderThan: '{hours} 時間より古い',
96
- dbSize: ' データベース:{path} {before} B → {after} B',
97
- backup: ' バックアップ:{backup}',
98
- backupWith: '({sidecars} を含む)',
99
- backupSkipped: ' バックアップ:--no-backup により省略',
100
- backupWarn: ' 注意:{sidecars} はロックされてコピーできませんでしたが、本体の複製は完全で、今回の削除に影響はありません。',
101
- untouched: ' アカウント資格情報・セッション・プラグイン設定には触れていません。ローカル cookie は次回起動時に再発行されます。',
102
- dryRun: '[dry-run] {count} 件を削除する想定:{path}',
103
- dryRunTail: '書き込んでいません。実行するには --dry-run を外してください。',
104
- notFound: 'cookie データベースが見つかりません。候補パス:{candidates} --db=<フルパス> で指定できます。',
105
- nextCliClean: '次:{exit}後に `dsh-cookie-cleaner --clean` を実行(既定は有効期限内も削除しますがログインに影響しません。README 参照)。',
106
- nextCliRerun: '次:{exit}後にこのコマンドを再実行してください。',
107
- nextCliPermission: '次:実行ユーザーがファイルの所有者か確認するか、--db=<フルパス> でデータベースを指定してください。',
108
- openFailed: 'cookie データベースを開けません:{path}',
109
- reason: ' 理由:{reason}',
110
- adviseBusy: ' 対処:クライアント起動中は Chromium がこのデータベースを独占します。{exit}後に再実行してください。',
111
- adviseMissing: ' 対処:このファイルは存在しません(パス変更、クライアント未起動、削除マークのいずれか)。--db=<フルパス> で実在するデータベースを指定してください。',
112
- advisePermission: ' 対処:このユーザーではファイルを読めません(権限か所有の問題)。本コマンドの実行者のファイルか確認してください。flatpak/snap 版は通常の場所にないため --db=<フルパス> で指定します。',
113
- adviseOwner: ADVISE_OWNER['ja'],
114
- missingFile: 'ファイルが存在しない(または削除マーク済み)',
115
- cleanFailed: '掃除に失敗:',
116
- })
117
-
118
- registerDictionary('ko', {
119
- skipped: 'cookie 데이터베이스를 찾지 못했습니다 — 데스크톱 클라이언트가 아니라 Web 버전을 쓴다면 cookie는 브라우저가 관리하므로 이 도구가 정리할 것이 없습니다.',
120
- skippedCandidates: '후보 경로:',
121
- skippedHint: 'Web 버전(브라우저가 호스트에 직접 접속)에서는 이 파일이 없습니다. 데스크톱 버전은 userDataRoot 또는 --db로 지정하세요.',
122
- busy: '지금 cookie 데이터베이스를 읽을 수 없습니다(클라이언트가 실행 중이며 Chromium이 독점): {path}',
123
- busyWhy: '호스트 플러그인은 실행 중에 이 데이터베이스를 정리할 수 없습니다 — 이는 본 도구의 한계가 아니라 운영체제의 파일 잠금입니다.',
124
- permission: 'cookie 데이터베이스를 읽을 수 없습니다: 권한 부족(파일 소유자가 다르거나 flatpak/snap 설치가 일반 위치에 있지 않음): {path}',
125
- permissionHint: '조치: 어떤 사용자로 실행하는지 확인하거나 데이터베이스를 직접 지정하세요:',
126
- dbRequired: '--db=<전체 경로>',
127
- exitWin: 'DSH 클라이언트를 완전히 종료(트레이 아이콘 → 종료, 프로세스 목록에 DeepSeek Harness가 남지 않았는지 확인)',
128
- exitMac: 'DSH 클라이언트를 완전히 종료(Cmd+Q 또는 메뉴 → Quit; Dock에서 아이콘이 사라지는 것으로는 부족하고, ps에 DeepSeek Harness가 없는지 확인)',
129
- exitLinux: 'DSH 클라이언트를 완전히 종료(메인 창을 닫은 뒤 프로세스 목록에 DeepSeek Harness / dsh-desktop가 남지 않았는지 확인)',
130
- dbLine: 'cookie 데이터베이스: {path} ({bytes} B, 전체 {total} 개)',
131
- ok: '상태: ok — dsh-auth-* 잔여물이 없어 정리할 필요가 없습니다.',
132
- found: '상태: dsh-auth-* {count} 개 발견(만료 {expired} / 유효 {live})',
133
- span: '만료 범위: {oldest} ~ {newest}',
134
- hostLine: 'host_key 분포: ',
135
- note: '참고: dsh-auth-* 이름은 host:port 해시라 포트가 바뀔 때마다 하나 남고, 유효한 항목은 30일 만료까지 남아 있습니다. 로그인에 영향이 없습니다(메인 창은 메모리 자격 증명을 쓰고, 인증은 현재 포트에 해당하는 하나만 읽습니다). 계정 자격 증명/세션/플러그인 설정과도 무관합니다.',
136
- nextStatus: '다음: {exit} 후 터미널에서 실행(몇 개 지울지 먼저 보려면 --dry-run 추가):',
137
- nextClean: '정리 명령(반드시 먼저 {exit} — 클라이언트가 뜨는 동안에는 실행 불가):',
138
- cleanFooter: ' 기본값은 dsh-auth-* 전체 삭제, --expired-only는 만료분만. 쓰기 전 .bak 사본을 자동 저장합니다.',
139
- statClean: '깨끗함: {path} (cookie 전체 {total} 개, dsh-auth-* 잔여물 없음)',
140
- statBusy: '읽을 수 없음(클라이언트 실행 중이며 데이터베이스가 독점됨): {path}',
141
- statMissing: STAT_MISSING['ko'],
142
- statPermission: 'cookie 데이터베이스를 읽을 권한이 없음(위치가 맞지 않거나 파일 소유자가 다름): {path}',
143
- statFound: 'dsh-auth-* {count} 개 발견(만료 {expired} / 유효 {live}), host_key {hosts} 개, 크기 {bytes} B: {path}',
144
- deleted: 'dsh-auth-* {count} 개 삭제({scope})',
145
- scopeAll: '전체',
146
- scopeExpired: '만료분만',
147
- scopeOlderThan: '{hours}시간 초과',
148
- dbSize: ' 데이터베이스: {path} {before} B → {after} B',
149
- backup: ' 백업: {backup}',
150
- backupWith: ' ({sidecars} 포함)',
151
- backupSkipped: ' 백업: --no-backup으로 생략',
152
- backupWarn: ' 참고: {sidecars}는 잠겨 복사하지 못했지만 본문 사본은 완전하며 이번 삭제에 영향이 없습니다.',
153
- untouched: ' 계정 자격 증명, 세션, 플러그인 설정은 건드리지 않았고, 로컬 cookie는 다음 시작 때 다시 발급됩니다.',
154
- dryRun: '[dry-run] {count} 개 삭제 예정: {path}',
155
- dryRunTail: '쓰지 않았습니다. 실행하려면 --dry-run을 빼세요.',
156
- notFound: 'cookie 데이터베이스를 찾지 못했습니다. 후보 경로: {candidates} --db=<전체 경로>로 지정할 수 있습니다.',
157
- nextCliClean: '다음: {exit} 후 `dsh-cookie-cleaner --clean` 실행(기본은 유효분도 삭제하지만 로그인에 영향 없음, README 참조).',
158
- nextCliRerun: '다음: {exit} 후 이 명령을 다시 실행하세요.',
159
- nextCliPermission: '다음: 실행 사용자가 파일 소유자인지 확인하거나 --db=<전체 경로>로 데이터베이스를 지정하세요.',
160
- openFailed: 'cookie 데이터베이스를 열 수 없음: {path}',
161
- reason: ' 원인: {reason}',
162
- adviseBusy: ' 조치: 클라이언트 실행 중에는 Chromium이 이 데이터베이스를 독점합니다. {exit} 후 다시 실행하세요.',
163
- adviseMissing: ' 조치: 이 파일이 존재하지 않습니다(경로 변경, 클라이언트 미실행, 삭제 표시 중 하나). --db=<전체 경로>로 실제 데이터베이스를 지정하세요.',
164
- advisePermission: ' 조치: 이 사용자로는 파일을 읽을 수 없습니다(권한 또는 소유 문제). 본 명령을 실행하는 사용자의 파일인지 확인하세요. flatpak/snap 설치는 일반 경로 밖이므로 --db=<전체 경로>로 지정하십시오.',
165
- adviseOwner: ADVISE_OWNER['ko'],
166
- missingFile: '파일이 없음(또는 삭제 표시됨)',
167
- cleanFailed: '정리 실패: ',
168
- })
169
-
170
- registerDictionary('fr', {
171
- skipped: 'Aucune base de cookies trouvée — si vous utilisez la version Web plutôt que le client desktop, le navigateur gère ses propres cookies et cet outil n’a rien à nettoyer.',
172
- skippedCandidates: 'Chemins candidats :',
173
- skippedHint: 'En version Web (navigateur parlant directement à l’hôte), ce fichier n’existe pas ; côté desktop, indiquez-le via userDataRoot ou --db.',
174
- busy: 'Base de cookies illisible pour le moment (le client tourne et Chromium la détient en exclusivité) : {path}',
175
- busyWhy: 'Un plugin hôte ne peut pas nettoyer cette base pendant l’exécution — c’est un verrou du système d’exploitation, pas une limite de l’outil.',
176
- permission: 'Lecture impossible : droits insuffisants (le fichier n’appartient pas à cet utilisateur, ou une installation flatpak/snap le place hors des chemins habituels) : {path}',
177
- permissionHint: 'À faire : vérifiez quel utilisateur lance la commande, ou désignez la base directement :',
178
- dbRequired: '--db=<chemin complet>',
179
- exitWin: 'Quittez complètement le client DSH (icône de zone de notification → Quitter, et vérifiez qu’il ne reste aucun DeepSeek Harness dans la liste des processus)',
180
- exitMac: 'Quittez complètement le client DSH (Cmd+Q ou menu → Quit ; voir l’icône disparaître du Dock ne suffit pas — vérifiez dans ps qu’aucun DeepSeek Harness ne subsiste)',
181
- exitLinux: 'Quittez complètement le client DSH (fermez la fenêtre principale, puis vérifiez qu’il ne reste aucun processus DeepSeek Harness / dsh-desktop)',
182
- dbLine: 'Base de cookies : {path} ({bytes} o, {total} entrées au total)',
183
- ok: 'État : ok — aucun résidu dsh-auth-*, rien à nettoyer.',
184
- found: 'État : {count} entrées dsh-auth-* trouvées (expirées {expired} / encore valides {live})',
185
- span: 'Plage d’expiration : {oldest} à {newest}',
186
- hostLine: 'Répartition par host_key : ',
187
- note: 'Remarque : le nom des dsh-auth-* est un empreinte de host:port, donc chaque changement de port laisse une entrée, et les entrées valides restent jusqu’à la fin des 30 jours. Cela n’affecte pas la connexion (la fenêtre principale utilise des identifiants en mémoire et l’authentification ne lit que l’entrée du port courant) et ne touche ni identifiants de compte, ni sessions, ni configuration des plugins.',
188
- nextStatus: 'Ensuite : après avoir {exit}, lancez ceci dans un terminal (ajoutez --dry-run pour prévisualiser le nombre) :',
189
- nextClean: 'Commande de nettoyage (il faut d’abord {exit} — impossible pendant l’exécution) :',
190
- cleanFooter: ' Par défaut toutes les dsh-auth-* sont supprimées ; --expired-only limite aux expirées ; une copie .bak est écrite avant toute modification.',
191
- statClean: 'Propre : {path} ({total} cookies, aucun résidu dsh-auth-*)',
192
- statBusy: 'Lecture impossible (le client tourne et détient la base) : {path}',
193
- statMissing: STAT_MISSING['fr'],
194
- statPermission: 'Droits insuffisants pour lire la base de cookies (mauvais emplacement ou fichier appartenant à un autre utilisateur) : {path}',
195
- statFound: '{count} entrées dsh-auth-* trouvées (expirées {expired} / valides {live}) sur {hosts} host_key, taille {bytes} o : {path}',
196
- deleted: '{count} entrées dsh-auth-* supprimées ({scope})',
197
- scopeAll: 'toutes',
198
- scopeExpired: 'expirées uniquement',
199
- scopeOlderThan: 'plus de {hours} h',
200
- dbSize: ' Base : {path} {before} o → {after} o',
201
- backup: ' Sauvegarde : {backup}',
202
- backupWith: ' (dont {sidecars})',
203
- backupSkipped: ' Sauvegarde : ignorée via --no-backup',
204
- backupWarn: ' Attention : {sidecars} n’ont pas pu être copiés (verrouillés) ; la copie principale reste complète et cette suppression n’est pas affectée.',
205
- untouched: ' Identifiants de compte, sessions et configuration des plugins n’ont pas été touchés ; le cookie local est réémis au démarrage suivant.',
206
- dryRun: '[dry-run] supprimerait {count} entrées : {path}',
207
- dryRunTail: 'Rien n’a été écrit. Retirez --dry-run pour exécuter.',
208
- notFound: 'Base de cookies introuvable. Chemins candidats : {candidates} Vous pouvez passer --db=<chemin complet>.',
209
- nextCliClean: 'Ensuite : après avoir {exit}, lancez `dsh-cookie-cleaner --clean` (par défaut les entrées valides partent aussi ; la connexion n’est pas affectée, voir le README).',
210
- nextCliRerun: 'Ensuite : après avoir {exit}, relancez cette commande.',
211
- nextCliPermission: 'Ensuite : vérifiez que l’utilisateur qui lance la commande possède le fichier, ou désignez la base avec --db=<chemin complet>.',
212
- openFailed: 'Impossible d’ouvrir la base de cookies : {path}',
213
- reason: ' Motif : {reason}',
214
- adviseBusy: ' À faire : Chromium détient cette base pendant l’exécution du client. Veuillez {exit}, puis relancer cette commande.',
215
- adviseMissing: ' À faire : ce fichier n’existe pas (chemin déplacé, client jamais lancé, ou marqué pour suppression). Désignez la vraie base avec --db=<chemin complet>.',
216
- advisePermission: ' À faire : ce compte ne peut pas lire le fichier (droits ou propriété). Vérifiez qu’il appartient à l’utilisateur qui lance la commande ; les bases flatpak/snap sont hors des chemins habituels, indiquez la vôtre avec --db=<chemin complet>.',
217
- adviseOwner: ADVISE_OWNER['fr'],
218
- missingFile: 'le fichier n’existe pas (ou est marqué pour suppression)',
219
- cleanFailed: 'Échec du nettoyage : ',
220
- })
1
+ /**
2
+ * dsh-cookie-cleaner — 运行时文案字典(en / ja / ko / fr)。
3
+ *
4
+ * 键集必须与 `zh`(i18n.js 里的真理源)逐键相等:`registerDictionary` 会在装载时
5
+ * 机械核对缺键/多键并直接抛错,所以这里不做兜底、不加解释性键。
6
+ * 占位符名({path} / {count} …)原样保留,只调整语序。
7
+ */
8
+ import { registerDictionary } from './i18n.js'
9
+ import { ADVISE_OWNER, STAT_MISSING } from './locales-advise-owner.js'
10
+
11
+ registerDictionary('en', {
12
+ skipped: 'No cookie database located — if you are running the Web edition instead of the desktop client, the browser owns its own cookies and there is nothing for this tool to clean.',
13
+ skippedCandidates: 'Candidate paths:',
14
+ skippedHint: 'If you use the Web edition (browser talking to the host directly) there is no such file locally; for the desktop client point at it with userDataRoot or --db.',
15
+ busy: 'The cookie database is currently unreadable (the client is running and Chromium holds it exclusively): {path}',
16
+ busyWhy: 'A host plugin cannot clean this database while it runs — that is an operating-system file lock, not a limitation of this tool.',
17
+ permission: 'The cookie database cannot be read: insufficient permission (the file belongs to another user, or a flatpak/snap install keeps it outside the usual location): {path}',
18
+ permissionHint: 'What to do: confirm which user runs the command, or point at the database directly:',
19
+ dbRequired: '--db=<full path>',
20
+ exitWin: 'Quit the DSH client completely (tray icon → Exit, and make sure no DeepSeek Harness remains in the process list)',
21
+ exitMac: 'Quit the DSH client completely (Cmd+Q or the menu → Quit; an icon disappearing from the Dock is not enough — confirm no DeepSeek Harness remains in ps)',
22
+ exitLinux: 'Quit the DSH client completely (close the main window, then confirm no DeepSeek Harness / dsh-desktop process remains)',
23
+ dbLine: 'Cookie database: {path} ({bytes} B, {total} entries total)',
24
+ ok: 'Status: ok — no dsh-auth-* leftovers, nothing to clean.',
25
+ found: 'Status: found {count} dsh-auth-* entries (expired {expired} / still valid {live})',
26
+ span: 'Expiry window: {oldest} to {newest}',
27
+ hostLine: 'host_key distribution: ',
28
+ note: 'Note: dsh-auth-* names are hashed from host:port, so every port change leaves one entry, and unexpired ones linger until the 30-day term ends. They do not affect login (the main window uses in-memory credentials and auth only ever reads the entry matching the current port) and they do not involve account credentials, sessions or plugin config.',
29
+ nextStatus: 'Next: after you {exit}, run this in a terminal (add --dry-run to preview the count):',
30
+ nextClean: 'Cleanup command (make sure to {exit} first — it cannot run while the client is up):',
31
+ cleanFooter: ' The default tier removes every dsh-auth-* entry; --expired-only limits it to expired ones; a .bak copy is written before any change.',
32
+ statClean: 'Clean: {path} ({total} cookies, no dsh-auth-* leftovers)',
33
+ statBusy: 'Cannot read (the client is running and holds the database): {path}',
34
+ statMissing: STAT_MISSING['en'],
35
+ statPermission: 'No permission to read the cookie database (wrong directory ownership or the file is not yours): {path}',
36
+ statFound: 'Found {count} dsh-auth-* entries (expired {expired} / still valid {live}) across {hosts} host_key value(s), database size {bytes} B: {path}',
37
+ deleted: 'Deleted {count} dsh-auth-* entries ({scope})',
38
+ scopeAll: 'all',
39
+ scopeExpired: 'expired only',
40
+ scopeOlderThan: 'older than {hours}h',
41
+ dbSize: ' Database: {path} {before} B → {after} B',
42
+ backup: ' Backup: {backup}',
43
+ backupWith: ' (incl. {sidecars})',
44
+ backupSkipped: ' Backup: skipped via --no-backup',
45
+ backupWarn: ' Note: {sidecars} could not be copied (locked); the main database copy is still complete and this deletion is unaffected.',
46
+ untouched: ' Account credentials, sessions and plugin configuration were not touched; the local cookie is re-issued on next start.',
47
+ dryRun: '[dry-run] would delete {count} entries: {path}',
48
+ dryRunTail: 'Nothing was written. Drop --dry-run to actually do it.',
49
+ notFound: 'Cookie database not found. Candidate paths: {candidates} You can pass --db=<full path>.',
50
+ nextCliClean: 'Next: after you {exit}, run `dsh-cookie-cleaner --clean` (the default also removes unexpired entries; login is unaffected, see README).',
51
+ nextCliRerun: 'Next: after you {exit}, rerun this command.',
52
+ nextCliPermission: 'Next: confirm the user running this command owns the file, or point at your database with --db=<full path>.',
53
+ openFailed: 'Cannot open the cookie database: {path}',
54
+ reason: ' Reason: {reason}',
55
+ adviseBusy: ' What to do: Chromium holds this database while the client runs. Please {exit}, then rerun this command.',
56
+ adviseMissing: ' What to do: the file is not here — the path moved, the client never ran, or it was marked for deletion. Point at the real cookie store with --db=<full path>.',
57
+ advisePermission: ' What to do: this account cannot read the file (permissions or ownership). Make sure it belongs to the user running this command; flatpak/snap stores sit outside the usual path, so point at yours with --db=<full path>.',
58
+ adviseOwner: ADVISE_OWNER['en'],
59
+ missingFile: 'the file does not exist (or is marked for deletion)',
60
+ cleanFailed: 'Cleanup failed: ',
61
+ })
62
+
63
+ /** de/it/ru/es 单拆一文件(免单文件过大),装载时一并注册。 */
64
+ import './locales-dict2.js'
65
+
66
+ registerDictionary('ja', {
67
+ skipped: 'cookie データベースが見つかりません——デスクトップクライアントではなく Web 版をご利用の場合、cookie はブラウザー側が管理するため、本ツールが掃除するものではありません。',
68
+ skippedCandidates: '候補パス:',
69
+ skippedHint: 'Web 版(ブラウザーからホストへ直接接続)ではこのファイルは存在しません。デスクトップ版は userDataRoot または --db で指定してください。',
70
+ busy: 'cookie データベースを現在読み取れません(クライアント起動中で Chromium が独占しています):{path}',
71
+ busyWhy: 'ホストプラグインは実行中にこのデータベースを掃除できません——これは本ツールの制限ではなく OS のファイルロックです。',
72
+ permission: 'cookie データベースを読めません:権限不足(ファイルの所有者が違う、または flatpak/snap 版が通常以外の場所に置いています):{path}',
73
+ permissionHint: '対処:コマンドを実行するユーザーを確認するか、データベースを直接指定してください:',
74
+ dbRequired: '--db=<フルパス>',
75
+ exitWin: 'DSH クライアントを完全に終了(トレイアイコン → 終了、プロセス一覧に DeepSeek Harness が無いことを確認)',
76
+ exitMac: 'DSH クライアントを完全に終了(Cmd+Q またはメニュー → Quit;Dock のアイコンが消えるだけでは不十分、ps に DeepSeek Harness が無いことを確認)',
77
+ exitLinux: 'DSH クライアントを完全に終了(メインウィンドウを閉じ、プロセス一覧に DeepSeek Harness / dsh-desktop が無いことを確認)',
78
+ dbLine: 'cookie データベース:{path}({bytes} B、合計 {total} 件)',
79
+ ok: '状態:ok —— dsh-auth-* の残りはなく、掃除は不要です。',
80
+ found: '状態:dsh-auth-* を {count} 件発見(期限切れ {expired} / 有効 {live})',
81
+ span: '期限の範囲:{oldest} ~ {newest}',
82
+ hostLine: 'host_key 分布:',
83
+ note: '補足:dsh-auth-* の名前は host:port のハッシュで、ポートが変わるたびに 1 件残り、有効なものは 30 日期限まで残ります。ログインには影響しません(メインウィンドウはメモリ上の資格情報を使い、認証は現在のポートの 1 件しか読みません)。アカウント資格情報・セッション・プラグイン設定にも無関係です。',
84
+ nextStatus: '次:{exit}後、ターミナルで次を実行(先に件数だけ見るなら --dry-run を付記):',
85
+ nextClean: '掃除コマンド(必ず先に{exit}——起動中は実行できません):',
86
+ cleanFooter: ' 既定では dsh-auth-* を全消し、--expired-only は期限切れのみ。書き込み前に .bak を自動保存します。',
87
+ statClean: 'クリーン:{path}(cookie 合計 {total} 件、dsh-auth-* の残りはなし)',
88
+ statBusy: '読み取れません(クライアント起動中でデータベースが独占されています):{path}',
89
+ statMissing: STAT_MISSING['ja'],
90
+ statPermission: 'cookie データベースを読む権限がありません(場所が不適切、または所有者が違います):{path}',
91
+ statFound: 'dsh-auth-* を {count} 件発見(期限切れ {expired} / 有効 {live})、{hosts} 個の host_key、サイズ {bytes} B:{path}',
92
+ deleted: 'dsh-auth-* を {count} 件削除しました({scope})',
93
+ scopeAll: 'すべて',
94
+ scopeExpired: '期限切れのみ',
95
+ scopeOlderThan: '{hours} 時間より古い',
96
+ dbSize: ' データベース:{path} {before} B → {after} B',
97
+ backup: ' バックアップ:{backup}',
98
+ backupWith: '({sidecars} を含む)',
99
+ backupSkipped: ' バックアップ:--no-backup により省略',
100
+ backupWarn: ' 注意:{sidecars} はロックされてコピーできませんでしたが、本体の複製は完全で、今回の削除に影響はありません。',
101
+ untouched: ' アカウント資格情報・セッション・プラグイン設定には触れていません。ローカル cookie は次回起動時に再発行されます。',
102
+ dryRun: '[dry-run] {count} 件を削除する想定:{path}',
103
+ dryRunTail: '書き込んでいません。実行するには --dry-run を外してください。',
104
+ notFound: 'cookie データベースが見つかりません。候補パス:{candidates} --db=<フルパス> で指定できます。',
105
+ nextCliClean: '次:{exit}後に `dsh-cookie-cleaner --clean` を実行(既定は有効期限内も削除しますがログインに影響しません。README 参照)。',
106
+ nextCliRerun: '次:{exit}後にこのコマンドを再実行してください。',
107
+ nextCliPermission: '次:実行ユーザーがファイルの所有者か確認するか、--db=<フルパス> でデータベースを指定してください。',
108
+ openFailed: 'cookie データベースを開けません:{path}',
109
+ reason: ' 理由:{reason}',
110
+ adviseBusy: ' 対処:クライアント起動中は Chromium がこのデータベースを独占します。{exit}後に再実行してください。',
111
+ adviseMissing: ' 対処:このファイルは存在しません(パス変更、クライアント未起動、削除マークのいずれか)。--db=<フルパス> で実在するデータベースを指定してください。',
112
+ advisePermission: ' 対処:このユーザーではファイルを読めません(権限か所有の問題)。本コマンドの実行者のファイルか確認してください。flatpak/snap 版は通常の場所にないため --db=<フルパス> で指定します。',
113
+ adviseOwner: ADVISE_OWNER['ja'],
114
+ missingFile: 'ファイルが存在しない(または削除マーク済み)',
115
+ cleanFailed: '掃除に失敗:',
116
+ })
117
+
118
+ registerDictionary('ko', {
119
+ skipped: 'cookie 데이터베이스를 찾지 못했습니다 — 데스크톱 클라이언트가 아니라 Web 버전을 쓴다면 cookie는 브라우저가 관리하므로 이 도구가 정리할 것이 없습니다.',
120
+ skippedCandidates: '후보 경로:',
121
+ skippedHint: 'Web 버전(브라우저가 호스트에 직접 접속)에서는 이 파일이 없습니다. 데스크톱 버전은 userDataRoot 또는 --db로 지정하세요.',
122
+ busy: '지금 cookie 데이터베이스를 읽을 수 없습니다(클라이언트가 실행 중이며 Chromium이 독점): {path}',
123
+ busyWhy: '호스트 플러그인은 실행 중에 이 데이터베이스를 정리할 수 없습니다 — 이는 본 도구의 한계가 아니라 운영체제의 파일 잠금입니다.',
124
+ permission: 'cookie 데이터베이스를 읽을 수 없습니다: 권한 부족(파일 소유자가 다르거나 flatpak/snap 설치가 일반 위치에 있지 않음): {path}',
125
+ permissionHint: '조치: 어떤 사용자로 실행하는지 확인하거나 데이터베이스를 직접 지정하세요:',
126
+ dbRequired: '--db=<전체 경로>',
127
+ exitWin: 'DSH 클라이언트를 완전히 종료(트레이 아이콘 → 종료, 프로세스 목록에 DeepSeek Harness가 남지 않았는지 확인)',
128
+ exitMac: 'DSH 클라이언트를 완전히 종료(Cmd+Q 또는 메뉴 → Quit; Dock에서 아이콘이 사라지는 것으로는 부족하고, ps에 DeepSeek Harness가 없는지 확인)',
129
+ exitLinux: 'DSH 클라이언트를 완전히 종료(메인 창을 닫은 뒤 프로세스 목록에 DeepSeek Harness / dsh-desktop가 남지 않았는지 확인)',
130
+ dbLine: 'cookie 데이터베이스: {path} ({bytes} B, 전체 {total} 개)',
131
+ ok: '상태: ok — dsh-auth-* 잔여물이 없어 정리할 필요가 없습니다.',
132
+ found: '상태: dsh-auth-* {count} 개 발견(만료 {expired} / 유효 {live})',
133
+ span: '만료 범위: {oldest} ~ {newest}',
134
+ hostLine: 'host_key 분포: ',
135
+ note: '참고: dsh-auth-* 이름은 host:port 해시라 포트가 바뀔 때마다 하나 남고, 유효한 항목은 30일 만료까지 남아 있습니다. 로그인에 영향이 없습니다(메인 창은 메모리 자격 증명을 쓰고, 인증은 현재 포트에 해당하는 하나만 읽습니다). 계정 자격 증명/세션/플러그인 설정과도 무관합니다.',
136
+ nextStatus: '다음: {exit} 후 터미널에서 실행(몇 개 지울지 먼저 보려면 --dry-run 추가):',
137
+ nextClean: '정리 명령(반드시 먼저 {exit} — 클라이언트가 뜨는 동안에는 실행 불가):',
138
+ cleanFooter: ' 기본값은 dsh-auth-* 전체 삭제, --expired-only는 만료분만. 쓰기 전 .bak 사본을 자동 저장합니다.',
139
+ statClean: '깨끗함: {path} (cookie 전체 {total} 개, dsh-auth-* 잔여물 없음)',
140
+ statBusy: '읽을 수 없음(클라이언트 실행 중이며 데이터베이스가 독점됨): {path}',
141
+ statMissing: STAT_MISSING['ko'],
142
+ statPermission: 'cookie 데이터베이스를 읽을 권한이 없음(위치가 맞지 않거나 파일 소유자가 다름): {path}',
143
+ statFound: 'dsh-auth-* {count} 개 발견(만료 {expired} / 유효 {live}), host_key {hosts} 개, 크기 {bytes} B: {path}',
144
+ deleted: 'dsh-auth-* {count} 개 삭제({scope})',
145
+ scopeAll: '전체',
146
+ scopeExpired: '만료분만',
147
+ scopeOlderThan: '{hours}시간 초과',
148
+ dbSize: ' 데이터베이스: {path} {before} B → {after} B',
149
+ backup: ' 백업: {backup}',
150
+ backupWith: ' ({sidecars} 포함)',
151
+ backupSkipped: ' 백업: --no-backup으로 생략',
152
+ backupWarn: ' 참고: {sidecars}는 잠겨 복사하지 못했지만 본문 사본은 완전하며 이번 삭제에 영향이 없습니다.',
153
+ untouched: ' 계정 자격 증명, 세션, 플러그인 설정은 건드리지 않았고, 로컬 cookie는 다음 시작 때 다시 발급됩니다.',
154
+ dryRun: '[dry-run] {count} 개 삭제 예정: {path}',
155
+ dryRunTail: '쓰지 않았습니다. 실행하려면 --dry-run을 빼세요.',
156
+ notFound: 'cookie 데이터베이스를 찾지 못했습니다. 후보 경로: {candidates} --db=<전체 경로>로 지정할 수 있습니다.',
157
+ nextCliClean: '다음: {exit} 후 `dsh-cookie-cleaner --clean` 실행(기본은 유효분도 삭제하지만 로그인에 영향 없음, README 참조).',
158
+ nextCliRerun: '다음: {exit} 후 이 명령을 다시 실행하세요.',
159
+ nextCliPermission: '다음: 실행 사용자가 파일 소유자인지 확인하거나 --db=<전체 경로>로 데이터베이스를 지정하세요.',
160
+ openFailed: 'cookie 데이터베이스를 열 수 없음: {path}',
161
+ reason: ' 원인: {reason}',
162
+ adviseBusy: ' 조치: 클라이언트 실행 중에는 Chromium이 이 데이터베이스를 독점합니다. {exit} 후 다시 실행하세요.',
163
+ adviseMissing: ' 조치: 이 파일이 존재하지 않습니다(경로 변경, 클라이언트 미실행, 삭제 표시 중 하나). --db=<전체 경로>로 실제 데이터베이스를 지정하세요.',
164
+ advisePermission: ' 조치: 이 사용자로는 파일을 읽을 수 없습니다(권한 또는 소유 문제). 본 명령을 실행하는 사용자의 파일인지 확인하세요. flatpak/snap 설치는 일반 경로 밖이므로 --db=<전체 경로>로 지정하십시오.',
165
+ adviseOwner: ADVISE_OWNER['ko'],
166
+ missingFile: '파일이 없음(또는 삭제 표시됨)',
167
+ cleanFailed: '정리 실패: ',
168
+ })
169
+
170
+ registerDictionary('fr', {
171
+ skipped: 'Aucune base de cookies trouvée — si vous utilisez la version Web plutôt que le client desktop, le navigateur gère ses propres cookies et cet outil n’a rien à nettoyer.',
172
+ skippedCandidates: 'Chemins candidats :',
173
+ skippedHint: 'En version Web (navigateur parlant directement à l’hôte), ce fichier n’existe pas ; côté desktop, indiquez-le via userDataRoot ou --db.',
174
+ busy: 'Base de cookies illisible pour le moment (le client tourne et Chromium la détient en exclusivité) : {path}',
175
+ busyWhy: 'Un plugin hôte ne peut pas nettoyer cette base pendant l’exécution — c’est un verrou du système d’exploitation, pas une limite de l’outil.',
176
+ permission: 'Lecture impossible : droits insuffisants (le fichier n’appartient pas à cet utilisateur, ou une installation flatpak/snap le place hors des chemins habituels) : {path}',
177
+ permissionHint: 'À faire : vérifiez quel utilisateur lance la commande, ou désignez la base directement :',
178
+ dbRequired: '--db=<chemin complet>',
179
+ exitWin: 'Quittez complètement le client DSH (icône de zone de notification → Quitter, et vérifiez qu’il ne reste aucun DeepSeek Harness dans la liste des processus)',
180
+ exitMac: 'Quittez complètement le client DSH (Cmd+Q ou menu → Quit ; voir l’icône disparaître du Dock ne suffit pas — vérifiez dans ps qu’aucun DeepSeek Harness ne subsiste)',
181
+ exitLinux: 'Quittez complètement le client DSH (fermez la fenêtre principale, puis vérifiez qu’il ne reste aucun processus DeepSeek Harness / dsh-desktop)',
182
+ dbLine: 'Base de cookies : {path} ({bytes} o, {total} entrées au total)',
183
+ ok: 'État : ok — aucun résidu dsh-auth-*, rien à nettoyer.',
184
+ found: 'État : {count} entrées dsh-auth-* trouvées (expirées {expired} / encore valides {live})',
185
+ span: 'Plage d’expiration : {oldest} à {newest}',
186
+ hostLine: 'Répartition par host_key : ',
187
+ note: 'Remarque : le nom des dsh-auth-* est un empreinte de host:port, donc chaque changement de port laisse une entrée, et les entrées valides restent jusqu’à la fin des 30 jours. Cela n’affecte pas la connexion (la fenêtre principale utilise des identifiants en mémoire et l’authentification ne lit que l’entrée du port courant) et ne touche ni identifiants de compte, ni sessions, ni configuration des plugins.',
188
+ nextStatus: 'Ensuite : après avoir {exit}, lancez ceci dans un terminal (ajoutez --dry-run pour prévisualiser le nombre) :',
189
+ nextClean: 'Commande de nettoyage (il faut d’abord {exit} — impossible pendant l’exécution) :',
190
+ cleanFooter: ' Par défaut toutes les dsh-auth-* sont supprimées ; --expired-only limite aux expirées ; une copie .bak est écrite avant toute modification.',
191
+ statClean: 'Propre : {path} ({total} cookies, aucun résidu dsh-auth-*)',
192
+ statBusy: 'Lecture impossible (le client tourne et détient la base) : {path}',
193
+ statMissing: STAT_MISSING['fr'],
194
+ statPermission: 'Droits insuffisants pour lire la base de cookies (mauvais emplacement ou fichier appartenant à un autre utilisateur) : {path}',
195
+ statFound: '{count} entrées dsh-auth-* trouvées (expirées {expired} / valides {live}) sur {hosts} host_key, taille {bytes} o : {path}',
196
+ deleted: '{count} entrées dsh-auth-* supprimées ({scope})',
197
+ scopeAll: 'toutes',
198
+ scopeExpired: 'expirées uniquement',
199
+ scopeOlderThan: 'plus de {hours} h',
200
+ dbSize: ' Base : {path} {before} o → {after} o',
201
+ backup: ' Sauvegarde : {backup}',
202
+ backupWith: ' (dont {sidecars})',
203
+ backupSkipped: ' Sauvegarde : ignorée via --no-backup',
204
+ backupWarn: ' Attention : {sidecars} n’ont pas pu être copiés (verrouillés) ; la copie principale reste complète et cette suppression n’est pas affectée.',
205
+ untouched: ' Identifiants de compte, sessions et configuration des plugins n’ont pas été touchés ; le cookie local est réémis au démarrage suivant.',
206
+ dryRun: '[dry-run] supprimerait {count} entrées : {path}',
207
+ dryRunTail: 'Rien n’a été écrit. Retirez --dry-run pour exécuter.',
208
+ notFound: 'Base de cookies introuvable. Chemins candidats : {candidates} Vous pouvez passer --db=<chemin complet>.',
209
+ nextCliClean: 'Ensuite : après avoir {exit}, lancez `dsh-cookie-cleaner --clean` (par défaut les entrées valides partent aussi ; la connexion n’est pas affectée, voir le README).',
210
+ nextCliRerun: 'Ensuite : après avoir {exit}, relancez cette commande.',
211
+ nextCliPermission: 'Ensuite : vérifiez que l’utilisateur qui lance la commande possède le fichier, ou désignez la base avec --db=<chemin complet>.',
212
+ openFailed: 'Impossible d’ouvrir la base de cookies : {path}',
213
+ reason: ' Motif : {reason}',
214
+ adviseBusy: ' À faire : Chromium détient cette base pendant l’exécution du client. Veuillez {exit}, puis relancer cette commande.',
215
+ adviseMissing: ' À faire : ce fichier n’existe pas (chemin déplacé, client jamais lancé, ou marqué pour suppression). Désignez la vraie base avec --db=<chemin complet>.',
216
+ advisePermission: ' À faire : ce compte ne peut pas lire le fichier (droits ou propriété). Vérifiez qu’il appartient à l’utilisateur qui lance la commande ; les bases flatpak/snap sont hors des chemins habituels, indiquez la vôtre avec --db=<chemin complet>.',
217
+ adviseOwner: ADVISE_OWNER['fr'],
218
+ missingFile: 'le fichier n’existe pas (ou est marqué pour suppression)',
219
+ cleanFailed: 'Échec du nettoyage : ',
220
+ })