DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(plugin): 拦截提示写清两个角色,并精简文案
hairyf2393d3f4a912
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.jsonindex b8fa04f0..4dc6d401 100644--- a/src/i18n/locales/en-US.json+++ b/src/i18n/locales/en-US.json@@ -40,7 +40,7 @@"preinstall.failed": "Installation failed","preinstall.network_error": "Network connection failed. Check your network or proxy settings and try again.","preinstall.policy_title": "These versions are still inside the release-age window",- "preinstall.policy_desc": "pnpm does not resolve releases younger than 24 hours, yet the profile already declares them, so plugin operations are blocked. Authorising the checked ones writes their exact versions into the profile's exemption list (exact versions only) and re-runs the install.",+ "preinstall.policy_desc": "pnpm skips releases younger than 24 hours. Authorising the checked ones records the exemption and re-runs the install.","preinstall.load_failed": "Failed to load preinstall plugin list","preinstall.empty": "No preinstalled plugins available.","preinstall.settings_title": "Recommended Plugins",@@ -49,7 +49,7 @@"preinstall.open_preset": "Open Preset","preinstall.can_uncheck_hint": "You can uncheck plugins you don't want. Unchecked plugins won't be installed.","preinstall.incompatible_title": "Installation blocked by the core",- "preinstall.incompatible_desc": "Running them may cause crashes or data loss. Update the plugin, or install a plugin version compatible with this dsh runtime. To accept this risk explicitly, check and grant the exact version exemptions below (they apply only to the exact versions listed and expire when the plugin or the core is upgraded):",+ "preinstall.incompatible_desc": "Running them may cause crashes or data loss. Check the exact versions to authorise and retry (exact versions only, not inherited by upgrades):","preinstall.granting": "Granting…","plugins.title": "Installed Plugins","plugins.empty": "No plugins installed",@@ -266,9 +266,9 @@"plugins.remove_failed": "Failed to uninstall {{name}}","plugins.upgrade_failed": "Failed to upgrade {{name}}","plugins.blocked_incompatible_title": "{{name}} is incompatible with the current core",- "plugins.blocked_incompatible_desc": "The blocked version {{blocked}} declares DSH dependencies that do not match the running core; running it may cause crashes or data loss. Authorising records the exact-version exemption and retries.",- "plugins.blocked_policy_title": "{{name}}'s new version is still inside the release-age window",- "plugins.blocked_policy_desc": "The blocked version {{blocked}} was published less than 24 hours ago and pnpm does not resolve it by default, while the profile already declares it. Authorising records the exact-version exemption and retries.",+ "plugins.blocked_incompatible_desc": "Rejected version: {{blocked}} (running it may crash or lose data). Authorising records the exemption and retries.",+ "plugins.blocked_policy_title": "{{name}}'s update is blocked by the release-age window",+ "plugins.blocked_policy_desc": "Blocked version: {{blocked}} (published under 24 hours ago, so pnpm skips it). Authorising records the exemption and retries.","plugins.authorize_failed": "Authorisation failed","plugins.updated_toast": "Plugin {{name}} updated","plugins.removed_toast": "Plugin {{name}} uninstalled",diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.jsonindex b0c87fdb..4a1ccded 100644--- a/src/i18n/locales/zh-CN.json+++ b/src/i18n/locales/zh-CN.json@@ -40,7 +40,7 @@"preinstall.failed": "安装失败","preinstall.network_error": "网络连接失败,请检查网络或代理设置后重试。","preinstall.policy_title": "这些版本还在发布保护期内",- "preinstall.policy_desc": "pnpm 默认不解析发布不足 24 小时的新版本,而档案已经声明了它们,因此插件操作会被拦下。勾选后授权会把精确版本写进档案豁免清单(只对这些版本生效)并重跑安装。",+ "preinstall.policy_desc": "pnpm 默认不解析发布不足 24 小时的新版本。勾选授权后写入豁免并重跑安装。","preinstall.load_failed": "预装插件列表加载失败","preinstall.empty": "暂无可预装的插件。","preinstall.settings_title": "预装插件",@@ -49,7 +49,7 @@"preinstall.open_preset": "打开预设","preinstall.can_uncheck_hint": "你可以取消勾选不需要的插件,取消后不会安装。","preinstall.incompatible_title": "安装被核心拦截",- "preinstall.incompatible_desc": "运行它们可能会导致崩溃或数据丢失。请更新插件,或安装与此 dsh 运行时兼容的插件版本。要明确接受此风险,请勾选并授予以下确切的版本豁免(仅对列出的精确版本生效,插件或核心升级后失效):",+ "preinstall.incompatible_desc": "运行它们可能导致崩溃或数据丢失。勾选授权以下精确版本后重试(仅限这些版本,插件或核心升级后失效):","preinstall.granting": "正在授权…","plugins.title": "已安装插件","plugins.empty": "暂无已安装插件",@@ -266,9 +266,9 @@"plugins.remove_failed": "卸载插件 {{name}} 失败","plugins.upgrade_failed": "升级插件 {{name}} 失败","plugins.blocked_incompatible_title": "{{name}} 与当前核心不兼容",- "plugins.blocked_incompatible_desc": "被拦下的版本 {{blocked}} 声明的 DSH 依赖与当前核心不一致,运行它可能导致崩溃或数据丢失。授权后写入精确版本豁免并重试。",- "plugins.blocked_policy_title": "{{name}} 的新版本还在发布保护期内",- "plugins.blocked_policy_desc": "被拦下的版本 {{blocked}} 发布不足 24 小时,pnpm 默认不解析,而档案已经声明了它。授权后写入精确版本豁免并重试。",+ "plugins.blocked_incompatible_desc": "被拒绝的版本:{{blocked}}(运行可能崩溃或丢数据)。授权后写入豁免并重试。",+ "plugins.blocked_policy_title": "{{name}} 的更新被发布保护期拦下",+ "plugins.blocked_policy_desc": "被挡住的版本:{{blocked}}(发布不足 24 小时,pnpm 默认不解析)。授权后写入豁免并重试。","plugins.authorize_failed": "授权失败","plugins.updated_toast": "插件 {{name}} 已更新","plugins.removed_toast": "插件 {{name}} 已卸载",diff --git a/src/ui/config/plugin.tsx b/src/ui/config/plugin.tsxindex 2bdac912..4042e97b 100644--- a/src/ui/config/plugin.tsx+++ b/src/ui/config/plugin.tsx@@ -108,6 +108,11 @@ export function ConfigPlugin() {* 插件操作被拦下时的出路:标题 + 说明 + 被拦下的精确版本,动作按钮「授权」点一次补齐* 所需豁免并重跑原操作(不想要就关掉气泡,不另设取消按钮)。*+ * 标题是**这次操作的插件名**,清单是**档案里真正挡住它的条目**——两者可以不同:插件+ * 操作要过整份 lockfile 校验,档案里任何一个太新的条目都会拦下别人的升级;兼容性拒绝+ * 同理扫的是档案里声明的插件。所以文案把角色分开写(标题=操作对象,说明=被挡住的版本),+ * 不写成「{{name}} 的版本…」那种看起来自相矛盾的句子。+ ** 常驻(`timeout: 0`):这是需要用户决定的岔口,超时消失等于把人晾在原地。授权后重跑* 原操作——豁免写进档案后仍要由 pnpm 真正改一遍依赖,不能假定写入即生效。*/