Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

feat(plugins): 内置模拟器迁移提示改指向官方「iOS 模拟器」

Dash0e6ad92d2e8a
diff --git a/apps/desktop/src/renderer/features/bots/BotsHomeView.tsx b/apps/desktop/src/renderer/features/bots/BotsHomeView.tsx
index 99ebd5d8d4..ea35b7d6c1 100644
--- a/apps/desktop/src/renderer/features/bots/BotsHomeView.tsx
+++ b/apps/desktop/src/renderer/features/bots/BotsHomeView.tsx
@@ -655,7 +655,6 @@ export function BotSettings({
contacts: 'personalization&section=personalization.contacts',
ssh: 'remote-control&section=remoteControl.ssh',
slack: 'im-bot&section=imBot.cindy.slack', feishu_bot: 'im-bot', wechat: 'im-bot',
- 'ios-simulator': 'ghosts',
};
navigate(kind === 'skill' ? '/skillhub/local' : `/settings?tab=${toolSettings[id ?? ''] ?? 'builtin-tools'}`);
});
diff --git a/apps/desktop/src/renderer/features/plugin/RetiredFeatureDetail.tsx b/apps/desktop/src/renderer/features/plugin/RetiredFeatureDetail.tsx
index 5deeea80ce..3c12c35989 100644
--- a/apps/desktop/src/renderer/features/plugin/RetiredFeatureDetail.tsx
+++ b/apps/desktop/src/renderer/features/plugin/RetiredFeatureDetail.tsx
@@ -81,7 +81,7 @@ export function RetiredFeatureDetail({
<Button variant="cta" loading={busy} disabled={busy} onClick={onReplace}>
{t(
`${base}.${replacement ? (replacement.enabled ? 'open' : 'enable') : 'install'}`,
- { name: descriptor.replacement.name },
+ { name: t(`${descriptor.copyKey}.replacementName`) },
)}
</Button>
{!replacement && (
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 4180915775..f5f1ac2515 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -5054,10 +5054,6 @@
"name": "Android automation",
"description": "View and operate Android devices connected to this computer."
},
- "ios-simulator": {
- "name": "iOS Simulator",
- "description": "Install, run and inspect apps in an iOS Simulator."
- },
"browser": {
"name": "Browser",
"description": "Browse, read, capture and interact with web pages."
@@ -6965,10 +6961,10 @@
"embeddedSimulator": {
"title": "The original built-in simulator has been retired",
"description": "Cindy has removed the original built-in simulator.",
- "replacementName": "Baguette Simulator",
- "replacementDescription": "View a live screen in the Cindy sidebar, control devices, run apps, and take screenshots.",
+ "replacementName": "iOS Simulator",
+ "replacementDescription": "View a live screen in the Cindy sidebar, control devices, run apps, and take screenshots. Built on the open-source Baguette.",
"requirements": "Requires an Apple Silicon Mac, macOS 15 or later, and full Xcode.",
- "dataNotice": "Your original simulator devices and app data will not be deleted. Installing Baguette does not automatically migrate devices, apps, or sign-ins."
+ "dataNotice": "Your original simulator devices and app data will not be deleted. Installing the new iOS Simulator does not automatically migrate devices, apps, or sign-ins."
}
},
"usage": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 9c32d24d38..bcb57d2376 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -5023,10 +5023,6 @@
"name": "Android 自動化",
"description": "接続された Android デバイスを表示・操作します。"
},
- "ios-simulator": {
- "name": "iOS シミュレータ",
- "description": "iOS シミュレータでアプリをインストール、実行、検証します。"
- },
"browser": {
"name": "ブラウザ",
"description": "Web ページを閲覧、読み取り、撮影、操作します。"
@@ -6934,10 +6930,10 @@
"embeddedSimulator": {
"title": "旧内蔵シミュレーターは提供を終了しました",
"description": "Cindy は旧内蔵シミュレーターを削除しました。",
- "replacementName": "Baguette シミュレーター",
+ "replacementName": "iOS シミュレータ",
"replacementDescription": "Cindy のサイドバーでリアルタイム画面を表示し、デバイスの操作、App の実行、スクリーンショットの撮影ができます。",
"requirements": "Apple Silicon Mac、macOS 15 以降、フルバージョンの Xcode が必要です。",
- "dataNotice": "元のシミュレーターのデバイスや App データは削除されません。Baguette をインストールしても、デバイス、App、ログイン状態は自動移行されません。"
+ "dataNotice": "元のシミュレーターのデバイスや App データは削除されません。新しい iOS シミュレータをインストールしても、デバイス、App、ログイン状態は自動移行されません。"
}
},
"usage": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index 0d78614e69..a8b44e648a 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -5023,10 +5023,6 @@
"name": "Android 자동화",
"description": "이 컴퓨터에 연결된 Android 기기를 확인하고 조작합니다."
},
- "ios-simulator": {
- "name": "iOS 시뮬레이터",
- "description": "iOS 시뮬레이터에서 앱을 설치, 실행 및 검사합니다."
- },
"browser": {
"name": "브라우저",
"description": "웹 페이지를 탐색하고 읽고 캡처하며 조작합니다."
@@ -6934,10 +6930,10 @@
"embeddedSimulator": {
"title": "기존 내장 시뮬레이터 지원이 종료되었습니다",
"description": "Cindy에서 기존 내장 시뮬레이터를 제거했습니다.",
- "replacementName": "Baguette 시뮬레이터",
+ "replacementName": "iOS 시뮬레이터",
"replacementDescription": "Cindy 사이드바에서 실시간 화면을 보고 기기를 조작하며 App 실행과 스크린샷 촬영을 할 수 있습니다.",
"requirements": "Apple Silicon Mac, macOS 15 이상 및 전체 Xcode가 필요합니다.",
- "dataNotice": "기존 시뮬레이터 기기와 App 데이터는 삭제되지 않습니다. Baguette를 설치해도 기기, App, 로그인 상태는 자동으로 이전되지 않습니다."
+ "dataNotice": "기존 시뮬레이터 기기와 App 데이터는 삭제되지 않습니다. 새 iOS 시뮬레이터를 설치해도 기기, App, 로그인 상태는 자동으로 이전되지 않습니다."
}
},
"usage": {
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index 396c906213..1cdc17ce1a 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -5023,10 +5023,6 @@
"name": "Android 自动化",
"description": "查看、点击和操作连接到本机的 Android 设备。"
},
- "ios-simulator": {
- "name": "iOS 模拟器",
- "description": "在 iOS 模拟器中安装、运行和检查应用。"
- },
"browser": {
"name": "浏览器",
"description": "浏览网页、读取页面、截图和操作网页。"
@@ -6934,10 +6930,10 @@
"embeddedSimulator": {
"title": "原内置模拟器已下线",
"description": "Cindy 已移除原内置模拟器。",
- "replacementName": "Baguette 模拟器",
- "replacementDescription": "在 Cindy 侧边栏查看实时画面,操作设备、运行 App 和截图。",
+ "replacementName": "iOS 模拟器",
+ "replacementDescription": "在 Cindy 侧边栏查看实时画面,操作设备、运行 App 和截图。基于开源项目 Baguette。",
"requirements": "需要 Apple Silicon Mac、macOS 15 或更高版本及完整 Xcode。",
- "dataNotice": "原模拟器的设备和应用数据不会被删除。安装 Baguette 不会自动迁移设备、App 或登录状态。"
+ "dataNotice": "原模拟器的设备和应用数据不会被删除。安装新的 iOS 模拟器不会自动迁移设备、App 或登录状态。"
}
},
"usage": {
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index 9ebd83bc41..f2d82ebe2f 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -5023,10 +5023,6 @@
"name": "Android 自動化",
"description": "檢視、點擊和操作連接到本機的 Android 裝置。"
},
- "ios-simulator": {
- "name": "iOS 模擬器",
- "description": "在 iOS 模擬器中安裝、執行和檢查應用程式。"
- },
"browser": {
"name": "瀏覽器",
"description": "瀏覽網頁、讀取頁面、擷取畫面和操作網頁。"
@@ -6934,10 +6930,10 @@
"embeddedSimulator": {
"title": "原內建模擬器已下線",
"description": "Cindy 已移除原內建模擬器。",
- "replacementName": "Baguette 模擬器",
+ "replacementName": "iOS 模擬器",
"replacementDescription": "在 Cindy 側邊欄查看即時畫面、操作裝置、執行 App 和擷取畫面。",
"requirements": "需要 Apple Silicon Mac、macOS 15 或更新版本及完整 Xcode。",
- "dataNotice": "原模擬器的裝置和應用程式資料不會被刪除。安裝 Baguette 不會自動遷移裝置、App 或登入狀態。"
+ "dataNotice": "原模擬器的裝置和應用程式資料不會被刪除。安裝新的 iOS 模擬器不會自動遷移裝置、App 或登入狀態。"
}
},
"usage": {
diff --git a/apps/desktop/src/shared/featureRetirements.ts b/apps/desktop/src/shared/featureRetirements.ts
index 369be68c50..2d64b7f7ae 100644
--- a/apps/desktop/src/shared/featureRetirements.ts
+++ b/apps/desktop/src/shared/featureRetirements.ts
@@ -9,7 +9,8 @@ export interface FeatureRetirement {
sidebarKinds?: readonly string[];
builtinToolsetIds?: readonly string[];
};
- replacement?: { ghostId: string; marketId: string; name: string };
+ /** Display copy lives under `${copyKey}.replacementName`. */
+ replacement?: { ghostId: string; marketId: string };
}
export interface InstalledFeatureRetirement {
@@ -34,7 +35,6 @@ export const FEATURE_RETIREMENTS: readonly FeatureRetirement[] = [
replacement: {
ghostId: 'baguette-simulator',
marketId: 'cb93909aaa6ac600bbc2f6b8a',
- name: 'Baguette',
},
},
];
diff --git a/docs/product-rules/feature-retirements.md b/docs/product-rules/feature-retirements.md
index 28ab53e0fe..2a64e78ad9 100644
--- a/docs/product-rules/feature-retirements.md
+++ b/docs/product-rules/feature-retirements.md
@@ -4,7 +4,7 @@
下线必须删除旧功能的运行实现、Agent 工具、权限项、控制接口、设置、构建依赖和打包资源。Core 只保留通用下线通知机制与识别旧安装所必需的兼容字段,不用保留旧实现来展示通知。
-当前迁移:原内置 iOS 模拟器下线,替代插件为 Baguette。未安装原插件的用户不新增卡片、不提醒、不推荐。已安装但原先停用的用户只在原插件位置看到下线状态,不展示迁移推荐。原先已安装且启用的用户,在插件入口及原卡片看到一次未读提示,打开详情即标记已读;「暂不迁移」保留详情入口,不反复提醒。
+当前迁移:原内置 iOS 模拟器下线,替代插件为官方「iOS 模拟器」(插件 ID `baguette-simulator`,基于开源项目 Baguette)。未安装原插件的用户不新增卡片、不提醒、不推荐。已安装但原先停用的用户只在原插件位置看到下线状态,不展示迁移推荐。原先已安装且启用的用户,在插件入口及原卡片看到一次未读提示,打开详情即标记已读;「暂不迁移」保留详情入口,不反复提醒。
“正在使用”的确定性依据是首次升级扫描时实际安装目录及有效安装凭据中的启用状态,兼容旧 `.disabled` 标记;不把默认权限开关、历史工具调用或残留凭据当作安装证据。跨版本升级先复用已有安装凭据迁移,再识别下线状态。
diff --git a/i18n/GLOSSARY.md b/i18n/GLOSSARY.md
index bbe73321d3..ac69943da8 100644
--- a/i18n/GLOSSARY.md
+++ b/i18n/GLOSSARY.md
@@ -357,7 +357,7 @@ Agent 遇到需要主人填写的界面(选择、文本、密码、验证码
### iOS Simulator
-Apple Simulator 的用户可见名称,也用于原内置模拟器的下线说明。Cindy 已移除内置查看器能力。iOS 保留官方大小写;中文使用「模拟器」,日语使用「シミュレータ」,韩语使用「시뮬레이터」。译法仍为 proposed。
+Apple Simulator 的用户可见名称,也用于原内置模拟器的下线说明及替代它的官方插件(baguette-simulator)。Cindy 已移除内置查看器能力。iOS 保留官方大小写;中文使用「模拟器」,日语使用「シミュレータ」,韩语使用「시뮬레이터」。译法仍为 proposed。
### Lark
diff --git a/i18n/glossary.json b/i18n/glossary.json
index 7769144c1e..b33e293be9 100644
--- a/i18n/glossary.json
+++ b/i18n/glossary.json
@@ -1714,7 +1714,7 @@
"ja": "iOS シミュレータ",
"ko": "iOS 시뮬레이터"
},
- "note": "Apple Simulator 的用户可见名称,也用于原内置模拟器的下线说明。Cindy 已移除内置查看器能力。iOS 保留官方大小写;中文使用「模拟器」,日语使用「シミュレータ」,韩语使用「시뮬레이터」。译法仍为 proposed。"
+ "note": "Apple Simulator 的用户可见名称,也用于原内置模拟器的下线说明及替代它的官方插件(baguette-simulator)。Cindy 已移除内置查看器能力。iOS 保留官方大小写;中文使用「模拟器」,日语使用「シミュレータ」,韩语使用「시뮬레이터」。译法仍为 proposed。"
},
{
"id": "lead",