mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 05:20:46 +08:00
feat: add npm update checks and manual installation
Add profile-scoped npm updates for Desktop and Web, protect source installations, and keep restarts manual. Cover stale status recovery, request races, and dialog focus with regression tests. Verified with npm run check (1626 tests) and isolated Desktop/Web npm installation flows. Refs #61
This commit is contained in:
parent
5888641297
commit
f3cefd8a84
23 changed files with 4058 additions and 271 deletions
|
|
@ -9,6 +9,62 @@ const EN = Object.freeze({
|
|||
'IM 渠道': 'IM channels',
|
||||
'让 DeepSeek Harness 触手可及': 'Connecting DeepSeek Harness',
|
||||
'当前版本': 'Current version',
|
||||
'DSH-IM 更新': 'DSH-IM update',
|
||||
'检查更新': 'Check for updates',
|
||||
'重新检查': 'Check again',
|
||||
'刷新状态': 'Refresh status',
|
||||
'更新至': 'Update to',
|
||||
'安装更新': 'Install update',
|
||||
'正在更新…': 'Updating…',
|
||||
'待手动重启': 'Restart needed',
|
||||
'运行版本': 'Running version',
|
||||
'已安装版本': 'Installed version',
|
||||
'npm 最新版本': 'Latest on npm',
|
||||
'目标 profile': 'Target profile',
|
||||
'目标版本': 'Target version',
|
||||
'更新来源': 'Update source',
|
||||
'页面版本': 'Page version',
|
||||
'无法确认': 'Unknown',
|
||||
'发现新版本': 'Update available',
|
||||
'已是最新版本': 'Up to date',
|
||||
'当前版本无需更新': 'No newer version available',
|
||||
'已获取 npm 最新版本': 'Latest npm version retrieved',
|
||||
'检查 npm 最新版本,不会自动安装。': 'Check the latest npm version. Nothing is installed automatically.',
|
||||
'正在从 npm 检查最新版本…': 'Checking npm for the latest version…',
|
||||
'正在安装,请稍候…': 'Installing, please wait…',
|
||||
'正在校验安装结果…': 'Verifying the installation…',
|
||||
'已安装,待手动重启': 'Installed — manual restart needed',
|
||||
'更新已生效': 'Updated version is active',
|
||||
'更新失败': 'Update failed',
|
||||
'更新请求失败': 'Update request failed',
|
||||
'仅更新 DSH-IM。安装完成后需手动重启后台;本功能不会自动重启或主动刷新页面。': 'Only DSH-IM will be updated. Restart the backend manually after installation. This feature does not automatically restart it or initiate a page refresh.',
|
||||
'当前是源码或链接安装,只能检查版本;请手动更新源码,或迁移到 npm 安装。': 'This is a source or linked installation. You can check versions, but must update the source manually or migrate to an npm installation.',
|
||||
'无法确认当前 profile,请在对应的 Harness 环境中手动更新。': 'The current profile could not be identified. Update manually in the corresponding Harness environment.',
|
||||
'当前运行环境不支持按钮安装,请手动更新插件。': 'This runtime cannot install through this button. Update the plugin manually.',
|
||||
'当前 npm 源配置与官方源不一致,请先检查 registry 配置。': 'The npm registry configuration differs from the official registry. Check your registry settings first.',
|
||||
'当前 Host 的 Node.js 版本不满足新版要求,请先更新运行环境。': 'The Host Node.js version does not meet the new version’s requirements. Update the runtime first.',
|
||||
'新版本已安装,请在方便时手动重启当前 Harness 或 Desktop。': 'The new version is installed. Manually restart this Harness or Desktop when convenient.',
|
||||
'上次安装结果无法确认,请先检查此 profile 的插件安装状态。': 'The previous installation result is uncertain. Check this profile’s plugin installation first.',
|
||||
'无法访问 npm 或请求超时,请稍后重新检查。': 'npm is unreachable or the request timed out. Check again later.',
|
||||
'npm 返回的版本信息无效,暂时无法更新。': 'npm returned invalid release information. Updating is unavailable.',
|
||||
'版本确认已过期,请重新检查后再安装。': 'The version confirmation expired. Check again before installing.',
|
||||
'插件安装状态已发生变化,请重新检查。': 'The plugin installation changed. Check again.',
|
||||
'此 profile 正在更新,请稍后查看状态。': 'This profile is already updating. Check its status shortly.',
|
||||
'安装失败,请检查当前安装状态后重试。': 'Installation failed. Check the current installation before retrying.',
|
||||
'安装结果校验失败,请手动检查插件版本。': 'Installation verification failed. Check the plugin version manually.',
|
||||
'无法安全保存更新状态,请先检查当前安装结果。': 'Update state could not be saved safely. Check the current installation result before retrying.',
|
||||
'上次更新已中断,请检查安装状态后重试。': 'The previous update was interrupted. Check the installation before retrying.',
|
||||
'更新服务已关闭,请手动重新打开设置页。': 'The update service has closed. Reopen settings manually.',
|
||||
'更新请求无效,请重新检查版本。': 'The update request is invalid. Check the version again.',
|
||||
'当前插件安装不完整或与 profile 不符,请手动检查安装配置。': 'The plugin installation is incomplete or does not match this profile. Check the installation configuration manually.',
|
||||
'无法确认当前 npm 源配置,暂时不能安装更新。': 'The npm registry configuration could not be verified. Installation is unavailable.',
|
||||
'安装超时,请先确认当前安装状态,再决定是否重试。': 'Installation timed out. Check the current installation before retrying.',
|
||||
'更新请求失败,请重试。': 'The update request failed. Try again.',
|
||||
'更新服务返回了无法识别的响应。': 'The update service returned an unrecognized response.',
|
||||
'当前 Host 不支持更新接口,请先手动更新插件并重启。': 'This Host does not support the update API. Update the plugin manually and restart first.',
|
||||
'关闭窗口不会取消安装。请勿同时在其他窗口管理此 profile 的插件。': 'Closing this window does not cancel installation. Do not manage this profile’s plugins in another window at the same time.',
|
||||
'页面版本与运行版本不同,请手动刷新页面;若仍不一致,请手动重启 Harness 或 Desktop。': 'The page and running versions differ. Refresh the page manually; if they still differ, manually restart Harness or Desktop.',
|
||||
'请在机器人空闲时安装;安装会修改当前 profile 的依赖,完成后需手动重启。': 'Install while bots are idle. This changes the current profile’s dependencies and requires a manual restart afterward.',
|
||||
'AI Office': 'AI Office',
|
||||
'(实验功能)': '(Experimental)',
|
||||
'AI Office 设置': 'AI Office settings',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue