mcp-ssh-manager 4.2.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,96 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.3.1] - 2026-11-20
11
+
12
+ **A security release: upgrade.** An `ssh_deploy` request showed no command on the
13
+ approval card, so what it was going to do could not be read
14
+ ([GHSA-vx67-5jmh-4xq2](https://github.com/bvisible/mcp-ssh-manager/security/advisories/GHSA-vx67-5jmh-4xq2),
15
+ moderate, reported by @Fastyyy123). Every release from 3.0.0 is affected; nothing
16
+ else changes (the release pipeline upgrades 3.8.5, 3.8.6, 3.8.7, every 4.0.x,
17
+ 4.1.0, 4.2.0 and 4.3.0 from the registry to this version and back).
18
+
19
+ The Windows installer is still **not Authenticode-signed**, for the same reason
20
+ as 4.0.0: Windows shows *"Windows protected your PC"*, *More info → Run anyway*,
21
+ and `ssh-manager app` checks the installer against the SHA-256 in
22
+ `release-manifest-win32.json`. macOS builds are signed and notarized.
23
+
24
+ ### Security
25
+
26
+ - **The approval card shows what a deploy or an upload is going to do**
27
+ (GHSA-vx67-5jmh-4xq2, reported by @Fastyyy123). A request without a command line
28
+ read "(no command)", so someone approving an `ssh_deploy` could not see its files,
29
+ their target paths, or its `restart` option, which runs as a shell command on the
30
+ server as the SSH user (the Deployment Guide has always shown it as one, while the
31
+ tool description called it a service). The card now shows the arguments the engine
32
+ sent, with every secret already removed, and the tool description and the guide
33
+ say what `restart` is. `restart` itself is unchanged, because existing deployments
34
+ pass commands such as `cd /opt/app && ./bin/restart`; `readonly` and `restricted`
35
+ servers still refuse `ssh_deploy`.
36
+
37
+ ## [4.3.0] - 2026-11-19
38
+
39
+ **French and Japanese interfaces, the SSH agent key in the server form, and long
40
+ commands shown in full.** Nothing to change on upgrade: the tools of the engine are
41
+ the same (its only change is one boolean added to the interface's `/api/options`),
42
+ and the release pipeline upgrades 3.8.5, 3.8.6, 3.8.7, every 4.0.x, 4.1.0 and 4.2.0
43
+ from the registry to this version and back. One thing does behave differently
44
+ without being asked: the interface and the desktop menus follow a French or a
45
+ Japanese system language until you choose one, as they already did for Chinese.
46
+
47
+ The Windows installer is still **not Authenticode-signed**, for the same reason
48
+ as 4.0.0: Windows shows *"Windows protected your PC"*, *More info → Run anyway*,
49
+ and `ssh-manager app` checks the installer against the SHA-256 in
50
+ `release-manifest-win32.json`. macOS builds are signed and notarized.
51
+
52
+ Three of these came from people who read the project closely: thanks to
53
+ @zenk-sugimoto (the Japanese interface), @TillNano (the agent key in the form) and
54
+ @congzhou09 (whole commands in Live and Activity).
55
+
56
+ ### Added
57
+
58
+ - **A French interface (Français), and a way to add any other language in minutes.**
59
+ *Options → Appearance → Language* now offers Français, and the desktop menus,
60
+ dialogs and notifications follow it (the Windows installer has a French page).
61
+ Languages are no longer listed anywhere in the code: the interface and the desktop
62
+ application find their catalogues in their folders, the selector is built from what
63
+ they find, and the tests loop over what exists. `npm run lang -- add <code>` creates
64
+ a language's three files from the English text, and `npm run lang -- status` shows
65
+ how much of each is still English; the steps are in `ui/README.md`, "Adding a
66
+ language". A system language is matched by its exact tag, else its family (`fr-CH`
67
+ uses French), else English; nothing changes for a language that is not shipped.
68
+ - **The server form can name an SSH agent key** (#148, thanks to @TillNano).
69
+ *Agent public key*, in the authentication section, takes the path of a `.pub`
70
+ file: the engine then offers only that identity from your SSH agent and signs
71
+ with it, so the private key never reaches the engine (the setting existed since
72
+ 4.1.0, but only in `.env`, TOML or the environment, which left a server managed
73
+ in the interface with no way to use it). The engine refuses an agent key
74
+ together with a password, a private key or agent forwarding, so the form
75
+ disables the others while one is chosen, says why when the agent key field is
76
+ the one that is closed, and tells you that saving removes a password or a key
77
+ already saved for that server. It warns when this application sees no SSH agent
78
+ (`SSH_AUTH_SOCK` empty): the interface's `/api/options` now says whether one is
79
+ visible. Nothing changes for a server that does not use it.
80
+ - **A Japanese interface (日本語).** *Options → Appearance → Language* now offers
81
+ English, 简体中文 and 日本語, for the desktop application and the web interface;
82
+ the desktop menus, dialogs and notifications follow it, and the Windows installer
83
+ has Japanese and Chinese pages. Until you choose, a Japanese system or browser
84
+ language selects Japanese, as a Chinese one selects Chinese; the choice is
85
+ remembered and English is exactly as it was. The translation is @zenk-sugimoto's
86
+ (#149): thank you. Japanese is set in Japanese fonts only, Chinese in Chinese
87
+ fonts only, because the same Han characters are drawn differently in the two.
88
+
89
+ ### Fixed
90
+
91
+ - **Live and Activity show the whole command.** A long command was cut off with an
92
+ ellipsis on both pages, and an Activity → Commands entry could only be opened when
93
+ its output had been recorded (`SSH_MANAGER_LOG_OUTPUT=1`, off by default), so in
94
+ practice you could not read what an agent had run. A row keeps its one-line
95
+ overview, with the full command as its tooltip; opening it shows the command in
96
+ full, wrapped, with the copy button of the approval card. Every Commands entry now
97
+ opens, several can stay open together, and an open entry no longer collapses or
98
+ loses a text selection when a new one arrives. By @congzhou09 (#151): thank you.
99
+
10
100
  ## [4.2.0] - 2026-11-13
11
101
 
12
102
  **A Chinese interface, a fuller audit log, and a guard against raw ssh.** Nothing
@@ -13,8 +13,8 @@
13
13
  class SshManager < Formula
14
14
  desc "SSH server management for AI agents, with approval and audit"
15
15
  homepage "https://github.com/bvisible/mcp-ssh-manager"
16
- url "https://registry.npmjs.org/mcp-ssh-manager/-/mcp-ssh-manager-4.1.0.tgz"
17
- sha256 "c0a5df702f4014aeb9f8b13b4bb91fcc2ed5433d6917ec14fb1d4cc59742bf74"
16
+ url "https://registry.npmjs.org/mcp-ssh-manager/-/mcp-ssh-manager-4.3.0.tgz"
17
+ sha256 "dc0c2cf43db88dba5ee5eda69249e755d91c3311c78f3627ff4a3fb46f6419e2"
18
18
  license "MIT"
19
19
 
20
20
  depends_on "node"
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
  [![npm downloads](https://img.shields.io/npm/dm/mcp-ssh-manager.svg?style=flat-square&logo=npm&color=c04500)](https://www.npmjs.com/package/mcp-ssh-manager)
25
25
  [![Desktop app downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fbvisible%2Fmcp-ssh-manager%2Fstats%2Fdesktop.json&style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/latest)
26
26
  [![GitHub stars](https://img.shields.io/github/stars/bvisible/mcp-ssh-manager?style=flat-square&color=c04500)](https://github.com/bvisible/mcp-ssh-manager/stargazers)
27
- [![Version](https://img.shields.io/badge/release-4.2.0-c04500?style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.2.0)
27
+ [![Version](https://img.shields.io/badge/release-4.3.1-c04500?style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.3.1)
28
28
  [![Claude Code](https://img.shields.io/badge/Claude_Code-Compatible-5A67D8?style=flat-square&logo=anthropic)](https://claude.ai/code)
29
29
  [![OpenAI Codex](https://img.shields.io/badge/OpenAI_Codex-Compatible-00A67E?style=flat-square&logo=openai)](https://openai.com/codex)
30
30
  [![MCP](https://img.shields.io/badge/MCP-Server-orange?style=flat-square)](https://modelcontextprotocol.io)
@@ -57,9 +57,9 @@ An MCP SSH server is the most dangerous tool you can hand an agent: a shell on m
57
57
 
58
58
  ## Choose your workspace
59
59
 
60
- **Desktop application (`4.2.0`):** one installation with its own runtime,
60
+ **Desktop application (`4.3.1`):** one installation with its own runtime,
61
61
  terminal, file browser and server settings. No separate Node.js or npm
62
- installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.2.0):
62
+ installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.3.1):
63
63
 
64
64
  | Platform | File | Signature |
65
65
  |---|---|---|
@@ -67,7 +67,7 @@ installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases
67
67
  | Windows x64 / arm64 | `…-setup.exe` | **Not code-signed yet.** Windows shows *"Windows protected your PC"*: *More info → Run anyway*. Check the file against the SHA-256 in `release-manifest-win32.json` on the release (`ssh-manager app` does it for you). Signing comes in a later release. |
68
68
  | Linux x64 | `.deb`, `.AppImage` | Unsigned, as Linux packages usually are |
69
69
 
70
- **Already using npm / the CLI?** `npm update -g mcp-ssh-manager` brings 4.2.0,
70
+ **Already using npm / the CLI?** `npm update -g mcp-ssh-manager` brings 4.3.1,
71
71
  and the V4 engine runs without an interface, from your existing `.env`, TOML or
72
72
  process variables — no automatic import, no forced wizard, no approval prompt
73
73
  unless you enable one per server. The one behaviour that tightens is **SSH
@@ -194,6 +194,12 @@ ssh-manager control # prints a local URL — or `ssh-manager app` for t
194
194
 
195
195
  One thing in two wrappers. `ssh-manager control` runs the whole interface in a browser tab with nothing extra to install; the desktop builds for macOS, Windows and Linux are that same page with the engine inside them, so they need neither Node nor the npm package.
196
196
 
197
+ The interface, desktop menus and notifications support English, Français, 简体中文 and 日本語.
198
+ Choose **Options → Appearance → Language** to switch languages.
199
+ Until you choose, your system or browser language selects the matching one; other
200
+ languages use English. Your saved choice takes precedence. A new language is three
201
+ files and one command (`npm run lang -- add <code>`): see [Adding a language](ui/README.md#adding-a-language).
202
+
197
203
  The desktop build adds the two things a browser tab cannot do:
198
204
 
199
205
  - **It lives in the menu bar.** The icon carries a count when something is waiting, and its menu lists what is blocked on you, which shells and commands are open right now, and your servers — so "is anything waiting on me?" costs a glance instead of a window switch. Closing the window leaves it there rather than quitting.
@@ -578,7 +584,7 @@ user = "admin"
578
584
  agent_public_key_path = "~/.ssh/id_ed25519.pub"
579
585
  ```
580
586
 
581
- The `.env` equivalent is `SSH_SERVER_[NAME]_AGENT_PUBLIC_KEY_PATH`; the internal configuration field is `agentPublicKeyPath`. This option fails if the public key file is missing or invalid, the agent is unavailable, or the agent does not offer a matching identity. It cannot be combined with `key_path`, `password`, `cert_path`, or enabled `forward_agent`; conflicting configuration is rejected. Omitting the option preserves the existing authentication behavior. `ssh_sync` uses system OpenSSH and does not apply this filter: configure its `IdentityFile` and `IdentitiesOnly yes` in your SSH client configuration separately.
587
+ In the desktop application and the browser interface it is the *Agent public key* field of the server form, which also closes the password, private key and agent-forwarding inputs while it is set. The `.env` equivalent is `SSH_SERVER_[NAME]_AGENT_PUBLIC_KEY_PATH`; the internal configuration field is `agentPublicKeyPath`. This option fails if the public key file is missing or invalid, the agent is unavailable, or the agent does not offer a matching identity. It cannot be combined with `key_path`, `password`, `cert_path`, or enabled `forward_agent`; conflicting configuration is rejected. Omitting the option preserves the existing authentication behavior. `ssh_sync` uses system OpenSSH and does not apply this filter: configure its `IdentityFile` and `IdentitiesOnly yes` in your SSH client configuration separately.
582
588
 
583
589
  **OpenSSH user certificates** — for servers that trust a certificate authority (`TrustedUserCAKeys`), point `CERTPATH` / `cert_path` at the certificate signed for `KEYPATH` (usually `<key>-cert.pub`). It is read on every connection, so a short-lived certificate renewed on disk needs no restart, and a missing file fails the connection instead of falling back to the bare key. It takes effect once `ssh2` ships certificate support ([mscdex/ssh2#1495](https://github.com/mscdex/ssh2/pull/1495)); until then the plain key is offered, as before. `ssh_sync` uses the system `ssh`, which finds `<key>-cert.pub` next to the key on its own.
584
590
 
@@ -713,6 +719,10 @@ The hero animation ships twice, light and dark, swapped by `<picture>` on `prefe
713
719
 
714
720
  ## What's new
715
721
 
722
+ **[4.3.1](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.3.1) — a security fix: the approval card shows what a deploy or an upload will do.** A request without a command line used to read "(no command)", so a deploy could be approved without seeing its files, their target paths or its `restart` command. The card now shows them. Nothing else changes; upgrade. Reported by @Fastyyy123 (GHSA-vx67-5jmh-4xq2). See the [CHANGELOG](CHANGELOG.md#431---2026-11-20).
723
+
724
+ **[4.3.0](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.3.0) — French and Japanese interfaces, and the agent key in the server form.** The interface and the desktop menus now come in Français and 日本語 next to English and 简体中文 (*Options → Appearance → Language*; the Japanese is @zenk-sugimoto's), and a new language is three files and one command (`npm run lang -- add <code>`, see [Adding a language](ui/README.md#adding-a-language)). The server form has an *Agent public key* field, so a server can use one identity of your SSH agent without its private key reaching the engine (asked for by @TillNano), and Live and Activity show a command in full instead of cutting it off (@congzhou09). See the [CHANGELOG](CHANGELOG.md#430---2026-11-19).
725
+
716
726
  **[4.2.0](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.2.0) — a Chinese interface, a fuller audit log, and a guard against raw ssh.** The interface and the desktop menus come in 简体中文 (*Options → Appearance → Language*; thanks to @xutianhao6). With `AUDIT_LOG` on, every tool now records what it did, not only a few. `ssh_execute` can start a long job in the background (`background: true`, an idea from @SEU-zhc), and the opt-in `ssh-manager guard` keeps an agent from running `ssh` in its own shell, where approval and audit do not apply (an idea from @fyq163). Fixed, thanks to @jaredshuai's fork: **backups that reported success when the dump had failed** (an empty archive, every night from `ssh_backup_schedule`), a corrupt archive restored in part, MongoDB backups that could not be restored, `ssh-manager server remove` deleting a look-alike server, editing a server turning read-only into unrestricted, remote tunnels that never worked, a database password in the audit log, and six simultaneous calls opening six connections. `ssh-manager codex setup` now exists. A tool that fails now sets `isError` in its reply. See the [CHANGELOG](CHANGELOG.md#420---2026-11-13).
717
727
 
718
728
  **[4.1.0](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.1.0) — choose the agent key per server, and sudo in the audit log.** A server can name the one key of your SSH agent it uses, so an agent that holds many keys (a password manager's, say) no longer runs into `MaxAuthTries` before the right one is offered (thanks to @RebornOnce, [#128](https://github.com/bvisible/mcp-ssh-manager/pull/128)); with `AUDIT_LOG` on, `ssh_execute_sudo`, downloads, group commands and commands sent to a session now record what they did, never the sudo password ([#134](https://github.com/bvisible/mcp-ssh-manager/pull/134), thanks to @orshih6, reported by @revert12); [`llms-install.md`](llms-install.md) lets an agent set the server up for you; dependencies refreshed. Nothing to change on upgrade. See the [CHANGELOG](CHANGELOG.md#410---2026-11-13).
@@ -13,7 +13,8 @@ files:
13
13
  - main.js
14
14
  - locale.mjs
15
15
  - native-menu.mjs
16
- - native.zh-CN.json
16
+ # One file per language, found by locale.mjs at start: a new language needs no change here.
17
+ - native.*.json
17
18
  - local-shell.mjs
18
19
  - smoke-test.mjs
19
20
  - package.json
@@ -123,6 +124,7 @@ win:
123
124
  artifactName: ${productName}-${version}-setup.${ext}
124
125
 
125
126
  nsis:
127
+ installerLanguages: [en_US, zh_CN, ja_JP, fr_FR]
126
128
  oneClick: false
127
129
  perMachine: false
128
130
  allowToChangeInstallationDirectory: true
@@ -1,14 +1,35 @@
1
1
  import fs from 'node:fs';
2
2
  import os from 'node:os';
3
3
  import path from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
4
5
 
5
- // Strings of the application's own native surfaces (menus, tray, notifications)
6
- // in Chinese. English is the key itself, so English needs no catalogue.
7
- const messages = JSON.parse(fs.readFileSync(new URL('./native.zh-CN.json', import.meta.url), 'utf8'));
6
+ // Strings of the application's own native surfaces (menus, tray, notifications).
7
+ // English is the key itself, so it needs no catalogue; every other language is a
8
+ // file next to this one, `native.<code>.json`, found here at start. Nothing in
9
+ // this module names a language: adding the file adds the language (`npm run lang`,
10
+ // ui/README.md "Adding a language"). The same codes exist in ui/src/locales.
11
+ const folder = path.dirname(fileURLToPath(import.meta.url));
12
+ const messages = new Map();
13
+ for (const file of fs.readdirSync(folder)) {
14
+ const code = /^native\.([A-Za-z0-9-]+)\.json$/.exec(file)?.[1];
15
+ if (code) messages.set(code, JSON.parse(fs.readFileSync(path.join(folder, file), 'utf8')));
16
+ }
17
+
18
+ /** The languages the native surfaces speak: English, then the catalogues found, by code. */
19
+ export const nativeLanguages = ['en', ...[...messages.keys()].sort()];
8
20
 
9
- /** The language a system locale asks for: Chinese for any `zh` tag, English otherwise. */
10
- export function languageForLocale(locale) {
11
- return /^zh(?:[-_]|$)/i.test(String(locale ?? '')) ? 'zh-CN' : 'en';
21
+ /**
22
+ * Map a system locale tag to a language that exists: the tag itself (`zh-CN`), else
23
+ * the first language with the same main subtag (`zh-TW` -> `zh-CN`, `fr-CH` -> `fr`),
24
+ * else English. The same rule as `languageFor` in ui/src/lib/i18n.ts.
25
+ */
26
+ export function languageForLocale(locale, available = nativeLanguages) {
27
+ const tag = String(locale ?? '').replace(/_/g, '-').toLowerCase();
28
+ if (!tag) return 'en';
29
+ const exact = available.find(code => code.toLowerCase() === tag);
30
+ if (exact) return exact;
31
+ const main = tag.split('-')[0];
32
+ return available.find(code => code.toLowerCase().split('-')[0] === main) ?? 'en';
12
33
  }
13
34
 
14
35
  /**
@@ -23,12 +44,12 @@ export function nativeLanguage({ home = process.env.SSH_MANAGER_HOME || path.joi
23
44
  try {
24
45
  const preferences = JSON.parse(fs.readFileSync(path.join(home, 'preferences.json'), 'utf8'));
25
46
  const saved = preferences['ssh-manager.language'];
26
- if (saved === 'en' || saved === 'zh-CN') return saved;
47
+ if (typeof saved === 'string' && nativeLanguages.includes(saved)) return saved;
27
48
  } catch { /* no preferences yet, or unreadable: fall through to the system */ }
28
49
  return languageForLocale(systemLocale);
29
50
  }
30
51
 
31
52
  export function nativeText(message, values = {}, language = nativeLanguage()) {
32
- const text = language === 'en' ? message : messages[message] || message;
53
+ const text = messages.get(language)?.[message] || message;
33
54
  return text.replace(/\{\{(\w+)\}\}/g, (match, key) => String(values[key] ?? match));
34
55
  }
@@ -0,0 +1,58 @@
1
+ {
2
+ "Copy": "Copier",
3
+ "Checking for updates…": "Recherche de mises à jour…",
4
+ "Close": "Fermer",
5
+ "Nothing is waiting": "Aucune demande en attente",
6
+ "File": "Fichier",
7
+ "View": "Présentation",
8
+ "Edit": "Édition",
9
+ "Window": "Fenêtre",
10
+ "Help": "Aide",
11
+ "Open in browser": "Ouvrir dans le navigateur",
12
+ "Check for Updates…": "Rechercher les mises à jour…",
13
+ "Show SSH Manager": "Afficher SSH Manager",
14
+ "Quit SSH Manager": "Quitter SSH Manager",
15
+ "Open right now": "Ouvrir maintenant",
16
+ "Updates are turned off in this build": "Les mises à jour sont désactivées dans cette version",
17
+ "{{v0}}: destructive command waiting": "{{v0}} : commande destructrice en attente",
18
+ "{{v0}}: waiting for your decision": "{{v0}} : en attente de votre décision",
19
+ "{{v0}} waiting for your decision": "{{v0}} en attente de votre décision",
20
+ " Shell on {{v0}}": " Shell sur {{v0}}",
21
+ "Servers ({{v0}})": "Serveurs ({{v0}})",
22
+ "SSH Manager — {{v0}} waiting for your decision": "SSH Manager — {{v0}} en attente de votre décision",
23
+ "SSH Manager {{v0}} is available": "SSH Manager {{v0}} est disponible",
24
+ "Open Options → Updates to download it. Nothing is installed until you restart.": "Ouvrez Options → Mises à jour pour la télécharger. Rien n’est installé avant le redémarrage.",
25
+ "Update to {{v0}}": "Mettre à jour vers {{v0}}",
26
+ "Downloading update… {{v0}}%": "Téléchargement de la mise à jour… {{v0}} %",
27
+ "Restart to update to {{v0}}": "Redémarrer pour passer à {{v0}}",
28
+ "Reload": "Actualiser",
29
+ "Force reload": "Forcer l’actualisation",
30
+ "Developer tools": "Outils de développement",
31
+ "Actual size": "Taille réelle",
32
+ "Zoom in": "Zoom avant",
33
+ "Zoom out": "Zoom arrière",
34
+ "Toggle fullscreen": "Activer/désactiver le plein écran",
35
+ "Quit": "Quitter",
36
+ "About SSH Manager": "À propos de SSH Manager",
37
+ "Services": "Services",
38
+ "Hide SSH Manager": "Masquer SSH Manager",
39
+ "Hide Others": "Masquer les autres",
40
+ "Show All": "Tout afficher",
41
+ "Undo": "Annuler",
42
+ "Redo": "Rétablir",
43
+ "Cut": "Couper",
44
+ "Paste": "Coller",
45
+ "Paste and Match Style": "Coller en adaptant le style",
46
+ "Delete": "Supprimer",
47
+ "Select All": "Tout sélectionner",
48
+ "Speech": "Voix",
49
+ "Start Speaking": "Commencer la lecture",
50
+ "Stop Speaking": "Arrêter la lecture",
51
+ "Minimize": "Réduire",
52
+ "Zoom": "Zoom",
53
+ "Bring All to Front": "Tout ramener au premier plan",
54
+ "SSH Manager could not start": "SSH Manager n’a pas pu démarrer",
55
+ "The application is missing part of itself. This is a packaging fault, not something you can fix here — please report it with this message.": "Il manque une partie de l’application. Il s’agit d’un défaut d’empaquetage, que vous ne pouvez pas corriger ici — signalez-le avec ce message.",
56
+ "Another copy is already running, or a stale socket is in the way.": "Une autre copie est déjà en cours d’exécution, ou un socket périmé fait obstacle.",
57
+ "The socket path may be too long for this system, or the port could not be opened.": "Le chemin du socket est peut-être trop long pour ce système, ou le port n’a pas pu être ouvert."
58
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "Copy": "コピー",
3
+ "Checking for updates…": "更新を確認中…",
4
+ "Close": "閉じる",
5
+ "Nothing is waiting": "承認待ちのリクエストはありません",
6
+ "File": "ファイル",
7
+ "View": "表示",
8
+ "Edit": "編集",
9
+ "Window": "ウィンドウ",
10
+ "Help": "ヘルプ",
11
+ "Open in browser": "ブラウザーで開く",
12
+ "Check for Updates…": "更新を確認…",
13
+ "Show SSH Manager": "SSH Managerを表示",
14
+ "Quit SSH Manager": "SSH Managerを終了",
15
+ "Open right now": "現在開いているセッション",
16
+ "Updates are turned off in this build": "このビルドでは更新が無効です",
17
+ "{{v0}}: destructive command waiting": "{{v0}}: 破壊的なコマンドが承認待ちです",
18
+ "{{v0}}: waiting for your decision": "{{v0}}: 承認待ちです",
19
+ "{{v0}} waiting for your decision": "{{v0}}件が承認待ちです",
20
+ " Shell on {{v0}}": " {{v0}}のシェル",
21
+ "Servers ({{v0}})": "サーバー ({{v0}})",
22
+ "SSH Manager — {{v0}} waiting for your decision": "SSH Manager — {{v0}}件が承認待ちです",
23
+ "SSH Manager {{v0}} is available": "SSH Manager {{v0}}を利用できます",
24
+ "Open Options → Updates to download it. Nothing is installed until you restart.": "「設定 → 更新」からダウンロードできます。再起動するまでインストールされません。",
25
+ "Update to {{v0}}": "{{v0}}に更新",
26
+ "Downloading update… {{v0}}%": "更新をダウンロード中… {{v0}}%",
27
+ "Restart to update to {{v0}}": "再起動して{{v0}}に更新",
28
+ "Reload": "再読み込み",
29
+ "Force reload": "強制再読み込み",
30
+ "Developer tools": "開発者ツール",
31
+ "Actual size": "実際のサイズ",
32
+ "Zoom in": "拡大",
33
+ "Zoom out": "縮小",
34
+ "Toggle fullscreen": "全画面表示を切り替え",
35
+ "Quit": "終了",
36
+ "About SSH Manager": "SSH Managerについて",
37
+ "Services": "サービス",
38
+ "Hide SSH Manager": "SSH Managerを非表示",
39
+ "Hide Others": "ほかを非表示",
40
+ "Show All": "すべて表示",
41
+ "Undo": "元に戻す",
42
+ "Redo": "やり直す",
43
+ "Cut": "切り取り",
44
+ "Paste": "貼り付け",
45
+ "Paste and Match Style": "スタイルを合わせて貼り付け",
46
+ "Delete": "削除",
47
+ "Select All": "すべて選択",
48
+ "Speech": "スピーチ",
49
+ "Start Speaking": "読み上げを開始",
50
+ "Stop Speaking": "読み上げを停止",
51
+ "Minimize": "最小化",
52
+ "Zoom": "ズーム",
53
+ "Bring All to Front": "すべてを手前に移動",
54
+ "SSH Manager could not start": "SSH Managerを起動できませんでした",
55
+ "The application is missing part of itself. This is a packaging fault, not something you can fix here — please report it with this message.": "アプリケーションの一部が欠落しています。パッケージの不具合のため、この画面では修復できません。このメッセージを添えて報告してください。",
56
+ "Another copy is already running, or a stale socket is in the way.": "別のインスタンスがすでに実行中か、残っているソケットが起動を妨げています。",
57
+ "The socket path may be too long for this system, or the port could not be opened.": "ソケットのパスがこのシステムでは長すぎるか、ポートを開けませんでした。"
58
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ssh-manager-desktop",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "ssh-manager-desktop",
9
- "version": "4.2.0",
9
+ "version": "4.3.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "electron-updater": "^6.8.9",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ssh-manager-desktop",
3
3
  "productName": "SSH Manager",
4
- "version": "4.2.0",
4
+ "version": "4.3.1",
5
5
  "private": true,
6
6
  "description": "The SSH Manager control plane as a desktop application",
7
7
  "main": "main.js",
@@ -1,6 +1,7 @@
1
1
  // Runs only through --release-smoke-test, with an isolated directory supplied
2
2
  // by scripts/smoke-desktop.mjs. Exercise the packaged code, UI and native PTY.
3
3
  import assert from 'node:assert/strict';
4
+ import { nativeLanguages, nativeText } from './locale.mjs';
4
5
  import { applicationMenuTemplate } from './native-menu.mjs';
5
6
  import { spawn } from 'node:child_process';
6
7
  import fs from 'node:fs';
@@ -127,15 +128,18 @@ export async function verifyEngineAnswers(engine, { timeoutMs = 30000, stage = (
127
128
  export async function runSmokeTest({ app, BrowserWindow, Menu, url, root, localShellProvider }) {
128
129
  const stage = createStages();
129
130
  stage('control plane started');
130
- for (const language of ['zh-CN', 'en']) {
131
+ // Every language the application ships, found from its catalogues: the menu is built in each one.
132
+ for (const language of nativeLanguages) {
133
+ const help = nativeText('Help', {}, language);
134
+ const quit = nativeText('Quit SSH Manager', {}, language);
131
135
  const menu = Menu.buildFromTemplate(applicationMenuTemplate({ isMac: process.platform === 'darwin', language }));
132
136
  const items = menu.items.flatMap(item => [item, ...(item.submenu?.items || [])]);
133
- assert.ok(items.some(item => item.label === (language === 'zh-CN' ? '帮助' : 'Help')), 'localized native help menu');
137
+ assert.ok(items.some(item => item.label === help), 'localized native help menu: ' + language);
134
138
  if (process.platform === 'darwin') {
135
- assert.ok(items.some(item => item.label === (language === 'zh-CN' ? '退出 SSH Manager' : 'Quit SSH Manager')), 'localized native application submenu');
139
+ assert.ok(items.some(item => item.label === quit), 'localized native application submenu: ' + language);
136
140
  }
137
141
  }
138
- stage('native menus built in Chinese and English');
142
+ stage('native menus built in ' + nativeLanguages.join(', '));
139
143
  const page = new BrowserWindow({ show: false, webPreferences: { contextIsolation: true, nodeIntegration: false } });
140
144
  const failures = [];
141
145
  page.webContents.on('render-process-gone', (_event, details) => failures.push(details.reason));