feat(hermes): add docker env forwarding config

This commit is contained in:
晴天
2026-05-26 06:52:16 +08:00
parent 7ca586694b
commit 45aadbdc63
7 changed files with 166 additions and 4 deletions

View File

@@ -527,13 +527,14 @@ export default {
hermesTerminalConfigSshPort: _('SSH 端口', 'SSH port', 'SSH 連接埠'),
hermesTerminalConfigSshKey: _('SSH 密钥路径(可选)', 'SSH key path (optional)', 'SSH 金鑰路徑(可選)'),
hermesTerminalConfigDockerImage: _('Docker 镜像(可选)', 'Docker image (optional)', 'Docker 映像(可選)'),
hermesTerminalConfigDockerForwardEnv: _('Docker 转发环境变量名', 'Docker forwarded env names', 'Docker 轉發環境變數名'),
hermesTerminalConfigSingularityImage: _('Singularity 镜像(可选)', 'Singularity image (optional)', 'Singularity 映像(可選)'),
hermesTerminalConfigModalImage: _('Modal 镜像(可选)', 'Modal image (optional)', 'Modal 映像(可選)'),
hermesTerminalConfigDaytonaImage: _('Daytona 镜像(可选)', 'Daytona image (optional)', 'Daytona 映像(可選)'),
hermesTerminalConfigContainerCpu: _('CPU 核数', 'CPU cores', 'CPU 核心數'),
hermesTerminalConfigContainerMemory: _('内存 MB', 'Memory MB', '記憶體 MB'),
hermesTerminalConfigContainerDisk: _('磁盘 MB', 'Disk MB', '磁碟 MB'),
hermesTerminalConfigFootnote: _('SSH 字段只在 SSH 后端生效,留空会移除主机、用户和密钥覆盖;面板不保存 SSH 密码。镜像字段只在对应 Docker、Singularity、Modal 或 Daytona 后端生效;留空会移除覆盖并使用 Hermes 默认值。Docker 挂载启动目录会把宿主目录暴露给沙箱,仅在可信项目和无人值守任务中开启;环境变量等高级参数仍可在 raw YAML 中编辑。', 'SSH fields only apply to the SSH backend. Leaving them blank removes host, user, and key overrides; the panel does not save SSH passwords. Image fields only apply to the matching Docker, Singularity, Modal, or Daytona backend. Leaving them blank removes the override and uses Hermes defaults. Mounting the launch cwd exposes host files to the sandbox; enable it only for trusted projects or unattended jobs. Environment advanced fields remain editable in raw YAML.', 'SSH 欄位只在 SSH 後端生效,留空會移除主機、使用者和金鑰覆蓋;面板不儲存 SSH 密碼。映像欄位只在對應 Docker、Singularity、Modal 或 Daytona 後端生效;留空會移除覆蓋並使用 Hermes 預設值。Docker 掛載啟動目錄會把宿主目錄暴露給沙箱,僅在可信專案和無人值守任務中開啟;環境變數等進階參數仍可在 raw YAML 中編輯。'),
hermesTerminalConfigFootnote: _('SSH 字段只在 SSH 后端生效,留空会移除主机、用户和密钥覆盖;面板不保存 SSH 密码。镜像字段只在对应 Docker、Singularity、Modal 或 Daytona 后端生效;留空会移除覆盖并使用 Hermes 默认值。Docker 环境变量转发只保存变量名不保存密钥值每行一个变量名留空会移除覆盖。Docker 挂载启动目录会把宿主目录暴露给沙箱,仅在可信项目和无人值守任务中开启。', 'SSH fields only apply to the SSH backend. Leaving them blank removes host, user, and key overrides; the panel does not save SSH passwords. Image fields only apply to the matching Docker, Singularity, Modal, or Daytona backend. Leaving them blank removes the override and uses Hermes defaults. Docker env forwarding stores variable names only, not secret values; use one name per line, or leave blank to remove the override. Mounting the launch cwd exposes host files to the sandbox; enable it only for trusted projects or unattended jobs.', 'SSH 欄位只在 SSH 後端生效,留空會移除主機、使用者和金鑰覆蓋;面板不儲存 SSH 密碼。映像欄位只在對應 Docker、Singularity、Modal 或 Daytona 後端生效;留空會移除覆蓋並使用 Hermes 預設值。Docker 環境變數轉發只儲存變數名不儲存密鑰值每行一個變數名留空會移除覆蓋。Docker 掛載啟動目錄會把宿主目錄暴露給沙箱,僅在可信專案和無人值守任務中開啟。'),
hermesStreamingConfigTitle: _('网关流式输出', 'Gateway streaming output', '閘道流式輸出'),
hermesStreamingConfigDesc: _('控制 Hermes Gateway 回复时是否边生成边更新消息,以及消息刷新节奏。适合需要更快看到长回复进度的渠道。', 'Control whether Hermes Gateway updates messages while replies are generated, plus the refresh cadence. Useful when channels need quicker progress for long replies.', '控制 Hermes Gateway 回覆時是否邊生成邊更新訊息,以及訊息刷新節奏。適合需要更快看到長回覆進度的渠道。'),
hermesStreamingConfigStatusReady: _('结构化配置', 'structured settings', '結構化設定'),