Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): clarify reserved prefix install rules
fmfsaisai99063723c294
diff --git a/apps/desktop/src/renderer/cindy-brain/__tests__/installErrorKey.test.ts b/apps/desktop/src/renderer/cindy-brain/__tests__/installErrorKey.test.tsindex c49626c629..064e922541 100644--- a/apps/desktop/src/renderer/cindy-brain/__tests__/installErrorKey.test.ts+++ b/apps/desktop/src/renderer/cindy-brain/__tests__/installErrorKey.test.ts@@ -104,4 +104,25 @@ describe('ghostInstallErrorKey', () => {expect(rawMessage).toEqual(expect.any(String));for (const fragment of fragments) expect(rawMessage).toContain(fragment);});++ it.each([+ {+ locale: 'zh-CN',+ fragment: 'id 使用官方保留前缀({{reservedGhostIdPrefixes}})',+ },+ {+ locale: 'zh-TW',+ fragment: 'id 使用官方保留字首({{reservedGhostIdPrefixes}})',+ },+ ])('puts the reserved-prefix category before its id list in $locale', ({ locale, fragment }) => {+ const rawMessage = i18n.getResource(+ locale,+ 'common',+ 'settings.ghosts.market.sources.guide.rulesBody',+ );++ // This excludes the ambiguous Chinese order that placed the list before+ // “official reserved prefix” and omitted that the prefix belongs to id.+ expect(rawMessage).toContain(fragment);+ });});diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex b698034c1b..8cac6d2cf6 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -4206,7 +4206,7 @@"authTitle": "私有仓库","authBody": "认证完全依赖系统的 Git 配置,Cindy 不保存任何 Git 凭证。SSH 方式:本机已配置可用的 key;若组织开启了 SAML SSO,还需在 GitHub 的 SSH key 设置里为该组织点 Configure SSO 授权。HTTPS 方式:使用 Personal Access Token,并由系统 credential helper 保存。","rulesTitle": "安装规则",- "rulesBody": "插件 id 全局唯一、先装先得——与已安装插件冲突时会明确提示。使用 {{reservedGhostIdPrefixes}} 官方保留前缀的插件不能通过拖入、选择文件、ghost_forge_pack 转交或自定义插件市场装入。安装前会逐项展示插件声明的权限,确认后即完成安装并自动开启。",+ "rulesBody": "插件 id 全局唯一、先装先得——与已安装插件冲突时会明确提示。id 使用官方保留前缀({{reservedGhostIdPrefixes}})的插件,不能通过拖入、选择文件、ghost_forge_pack 转交或自定义插件市场装入。安装前会逐项展示插件声明的权限,确认后即完成安装并自动开启。","copy": "复制指南","copied": "指南已复制到剪贴板。","copyFailed": "复制失败,请重试。"diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 4a50e5a222..3481f29ee2 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -4205,7 +4205,7 @@"authTitle": "私有倉庫","authBody": "認證完全依賴系統的 Git 配置,Cindy 不儲存任何 Git 憑證。SSH 方式:本機已配置可用的 key;若組織開啟了 SAML SSO,還需在 GitHub 的 SSH key 設定裡為該組織點 Configure SSO 授權。HTTPS 方式:使用 Personal Access Token,並由系統 credential helper 儲存。","rulesTitle": "安裝規則",- "rulesBody": "插件 id 全域性唯一、先裝先得——與已安裝插件衝突時會明確提示。使用 {{reservedGhostIdPrefixes}} 官方保留字首的插件無法透過拖入、選取檔案、ghost_forge_pack 轉交或自訂插件市場安裝。安裝前會逐項展示插件宣告的權限,確認後即完成安裝並自動開啟。",+ "rulesBody": "插件 id 全域性唯一、先裝先得——與已安裝插件衝突時會明確提示。id 使用官方保留字首({{reservedGhostIdPrefixes}})的插件,無法透過拖入、選取檔案、ghost_forge_pack 轉交或自訂插件市場安裝。安裝前會逐項展示插件宣告的權限,確認後即完成安裝並自動開啟。","copy": "複製指南","copied": "指南已複製到剪貼簿。","copyFailed": "複製失敗,請重試。"