@ycodium-ai/plugin-devices 0.2.3506 → 0.2.3566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -86
- package/assets/ui.js +16 -4
- package/dist/environment-helper.mjs +239 -0
- package/dist/helper.mjs +77 -128
- package/dist/index.js +1247 -556
- package/locales/en.json +64 -8
- package/locales/zh-CN.json +64 -8
- package/package.json +2 -2
package/locales/en.json
CHANGED
|
@@ -1,8 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
+
"environment": {
|
|
3
|
+
"title": "Prepare simulator environment",
|
|
4
|
+
"description": "Check this machine first. Existing Android SDKs and Xcode are reused; preparation only starts when you choose it.",
|
|
5
|
+
"directory": "Storage directory on this machine",
|
|
6
|
+
"defaultDirectory": "Ycodium private data directory",
|
|
7
|
+
"directoryHint": "Choose an absolute folder on the desired disk. A dedicated ycodium-devices folder is created inside it. This path belongs to the connected machine.",
|
|
8
|
+
"iosVersion": "iOS runtime version",
|
|
9
|
+
"iosVersionPlaceholder": "For example, 18.0",
|
|
10
|
+
"inspect": "Check prerequisites and storage",
|
|
11
|
+
"source": "Environment source",
|
|
12
|
+
"sources": {
|
|
13
|
+
"external": "Existing Android SDK",
|
|
14
|
+
"private": "Ycodium private environment",
|
|
15
|
+
"apple": "User-installed Xcode and Apple shared runtimes"
|
|
16
|
+
},
|
|
17
|
+
"version": "Components",
|
|
18
|
+
"versionRequired": "Choose an exact iOS version",
|
|
19
|
+
"location": "Private storage",
|
|
20
|
+
"existingSdk": "Detected SDK",
|
|
21
|
+
"download": "Download",
|
|
22
|
+
"free": "Available disk space",
|
|
23
|
+
"required": "Minimum free space",
|
|
24
|
+
"unknownSize": "Unknown; reserve additional storage",
|
|
25
|
+
"external": "Existing SDKs are reused by default. Preparing a private environment selects it unless an SDK location is explicitly set in Settings. Normal use of existing virtual devices writes to their data. Private preparation does not modify the external SDK.",
|
|
26
|
+
"guide": "Official setup guidance",
|
|
27
|
+
"appleOwnership": "Apple installs this runtime in its shared simulator environment. Only its download archive is stored privately. No existing runtime is upgraded or removed. Xcode may require you to complete permissions or initialization yourself.",
|
|
28
|
+
"privateOwnership": "Android 15 AOSP, Platform-Tools and Emulator are downloaded from Google at pinned revisions. SDK files, virtual device data, configuration and temporary files stay in private storage. Applications installed in a virtual device are user data.",
|
|
29
|
+
"appleLicense": "Apple software license agreements",
|
|
30
|
+
"androidLicense": "Android SDK License Agreement",
|
|
31
|
+
"acceptLicense": "I accept the applicable component licenses",
|
|
32
|
+
"confirmApple": "I approve installing this exact runtime into Apple's shared simulator environment",
|
|
33
|
+
"prepare": "Download and prepare",
|
|
34
|
+
"retention": "Disabling or removing this plugin keeps prepared environments and data. Cleanup below affects only plugin-owned resources. External SDKs, external virtual devices and Apple runtimes are retained.",
|
|
35
|
+
"cleanCache": "Delete private download cache ({{size}})",
|
|
36
|
+
"deviceData": "Private virtual device data: {{size}}. Power off private virtual devices before deleting their data.",
|
|
37
|
+
"confirmData": "I understand this permanently deletes apps and data in the private Android virtual device",
|
|
38
|
+
"cleanDevices": "Delete private virtual device data",
|
|
39
|
+
"working": "Checking the machine…",
|
|
40
|
+
"preparing": "Preparing components. Downloads and Apple's installation can take several minutes. You can return to this panel to check progress.",
|
|
41
|
+
"failed": "The operation could not finish. Check the official guidance, selected disk, network and whether the virtual device is powered off, then retry. More detail is available in this machine's plugin logs.",
|
|
42
|
+
"done": "Operation completed. Refresh the device list to check and open the simulator.",
|
|
43
|
+
"reasons": {
|
|
44
|
+
"ios-needs-macos": "iOS simulators require a Mac with Xcode.",
|
|
45
|
+
"ios-tools-missing": "The bundled iOS Simulator helpers are missing or could not load on this machine. Repair or update Ycodium with the matching platform components.",
|
|
46
|
+
"xcode-missing": "Install Xcode from Apple and select it in Xcode settings before preparing a runtime.",
|
|
47
|
+
"xcode-incomplete": "Open Xcode and complete its first launch and required components. Ycodium does not change the selected Xcode or accept its system prompts.",
|
|
48
|
+
"ios-runtime-missing": "No compatible iOS runtime is installed. Choose an exact version supported by your Xcode.",
|
|
49
|
+
"ios-version-required": "Choose an exact iOS version supported by your Xcode. Apple determines the download size and final installation location.",
|
|
50
|
+
"android-platform-unsupported": "Google does not provide this pinned emulator for the machine's operating system and architecture.",
|
|
51
|
+
"virtualization-unavailable": "The emulator's system acceleration is unavailable or not accessible. Follow the official guidance for WHPX, KVM or Hypervisor.framework. Ycodium does not enable system features, elevate privileges or install drivers.",
|
|
52
|
+
"windows-hypervisor-platform-disabled": "Windows Hypervisor Platform is not enabled. This does not mean hardware virtualization is disabled in BIOS/UEFI. Follow the official Windows setup guidance; Ycodium will not change system features.",
|
|
53
|
+
"windows-hypervisor-not-running": "Windows Hypervisor Platform is enabled, but the Windows hypervisor is not currently running. Follow the official guidance to check restart and boot requirements. Ycodium will not change boot settings.",
|
|
54
|
+
"virtualization-firmware-disabled": "Windows reports that virtualization is disabled in BIOS/UEFI. Check the firmware setting using the computer manufacturer's instructions.",
|
|
55
|
+
"virtualization-probe-failed": "The emulator acceleration status could not be determined. This is not evidence that hardware virtualization is disabled. Retry the check or consult the official setup guidance."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
2
58
|
"settings": {
|
|
3
59
|
"card": {
|
|
4
60
|
"title": "Devices",
|
|
5
|
-
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine.
|
|
61
|
+
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine. Helper tools are included with Ycodium. Open the Devices panel to check and prepare simulator environments."
|
|
6
62
|
},
|
|
7
63
|
"androidSdk": {
|
|
8
64
|
"label": "Android SDK location",
|
|
@@ -17,8 +73,8 @@
|
|
|
17
73
|
"failed": "Could not read the device tool versions."
|
|
18
74
|
},
|
|
19
75
|
"updateTools": {
|
|
20
|
-
"label": "
|
|
21
|
-
"description": "
|
|
76
|
+
"label": "Verify bundled tools",
|
|
77
|
+
"description": "Verifies the helper tools included with Ycodium. Missing components require repairing or updating Ycodium on this machine.",
|
|
22
78
|
"hub": "Device hub",
|
|
23
79
|
"agent": "Agent tools",
|
|
24
80
|
"done": "Device tools are up to date.",
|
|
@@ -31,7 +87,7 @@
|
|
|
31
87
|
"platformAndroid": "Android Emulators",
|
|
32
88
|
"empty": "No simulators or emulators were found on this machine.",
|
|
33
89
|
"hubFailed": "The device hub failed to start.",
|
|
34
|
-
"noAvd": "No Android virtual devices found.
|
|
90
|
+
"noAvd": "No Android virtual devices found. Prepare a private simulator below, or create one in Android Studio's Device Manager, then refresh.",
|
|
35
91
|
"refresh": "Refresh devices",
|
|
36
92
|
"open": "Open",
|
|
37
93
|
"start": "Start",
|
|
@@ -89,7 +145,7 @@
|
|
|
89
145
|
"screenshotFailed": "Screenshot capture failed. Try again.",
|
|
90
146
|
"screenshotAlt": "Device screenshot",
|
|
91
147
|
"screenshotSaveHint": "Long-press the image to save it.",
|
|
92
|
-
"
|
|
148
|
+
"closeBrowser": "Close"
|
|
93
149
|
},
|
|
94
150
|
"tools": {
|
|
95
151
|
"title": "Device tools",
|
|
@@ -200,11 +256,11 @@
|
|
|
200
256
|
"running": "Running",
|
|
201
257
|
"none": "—",
|
|
202
258
|
"unknown": "Versions have not been read yet. Check versions to read them.",
|
|
203
|
-
"updateTo": "
|
|
204
|
-
"pendingPolicy": "
|
|
259
|
+
"updateTo": "Verify bundled {{version}}",
|
|
260
|
+
"pendingPolicy": "Device helpers are included with Ycodium. Missing or incomplete components require repairing or updating Ycodium on this machine.",
|
|
205
261
|
"checkHint": "Checking reads the installed tools without installing or starting anything.",
|
|
206
262
|
"check": "Check versions",
|
|
207
263
|
"checkFailed": "Could not read the tool versions. Try again.",
|
|
208
|
-
"updateFailed": "
|
|
264
|
+
"updateFailed": "Bundled components are missing or incomplete. Repair or update Ycodium on this machine."
|
|
209
265
|
}
|
|
210
266
|
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -1,8 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
+
"environment": {
|
|
3
|
+
"title": "准备模拟器环境",
|
|
4
|
+
"description": "先检查这台机器。优先复用已有 Android SDK 和 Xcode,只有主动点击准备才会下载。",
|
|
5
|
+
"directory": "这台机器上的存储目录",
|
|
6
|
+
"defaultDirectory": "Ycodium 私有数据目录",
|
|
7
|
+
"directoryHint": "填写目标磁盘上的绝对路径,组件将放进其中专用的 ycodium-devices 文件夹。路径属于当前连接的机器。",
|
|
8
|
+
"iosVersion": "iOS 运行时版本",
|
|
9
|
+
"iosVersionPlaceholder": "例如 18.0",
|
|
10
|
+
"inspect": "检查条件与存储空间",
|
|
11
|
+
"source": "环境来源",
|
|
12
|
+
"sources": {
|
|
13
|
+
"external": "已有 Android SDK",
|
|
14
|
+
"private": "Ycodium 私有环境",
|
|
15
|
+
"apple": "用户安装的 Xcode 与 Apple 共享运行时"
|
|
16
|
+
},
|
|
17
|
+
"version": "组件版本",
|
|
18
|
+
"versionRequired": "请选择明确的 iOS 版本",
|
|
19
|
+
"location": "私有存储位置",
|
|
20
|
+
"existingSdk": "已检测到的 SDK",
|
|
21
|
+
"download": "下载大小",
|
|
22
|
+
"free": "可用磁盘空间",
|
|
23
|
+
"required": "最低可用空间",
|
|
24
|
+
"unknownSize": "尚不确定,请预留额外空间",
|
|
25
|
+
"external": "默认复用已有 SDK。准备私有环境后会接入它,但设置中明确指定的 SDK 位置优先。正常使用已有虚拟设备会写入其数据;私有准备不会修改外部 SDK。",
|
|
26
|
+
"guide": "官方设置指引",
|
|
27
|
+
"appleOwnership": "Apple 会将运行时安装到共享模拟器环境,只有下载归档存放在私有目录。不会升级或删除已有运行时。Xcode 如需权限或首次初始化,须由你自行完成。",
|
|
28
|
+
"privateOwnership": "从 Google 下载固定版本的 Android 15 AOSP、Platform-Tools 和 Emulator。SDK、虚拟设备数据、配置和临时文件保存在私有目录。虚拟设备中安装的应用属于用户数据。",
|
|
29
|
+
"appleLicense": "Apple 软件许可协议",
|
|
30
|
+
"androidLicense": "Android SDK 许可协议",
|
|
31
|
+
"acceptLicense": "我接受适用的组件许可协议",
|
|
32
|
+
"confirmApple": "我同意将此明确版本安装到 Apple 的共享模拟器环境",
|
|
33
|
+
"prepare": "下载并准备",
|
|
34
|
+
"retention": "停用或移除插件会保留环境和数据。下方仅清理插件拥有的资源,不删除外部 SDK、已有虚拟设备或 Apple 运行时。",
|
|
35
|
+
"cleanCache": "删除私有下载缓存({{size}})",
|
|
36
|
+
"deviceData": "私有虚拟设备数据:{{size}}。删除数据前请先将私有虚拟设备关机。",
|
|
37
|
+
"confirmData": "我理解此操作会永久删除私有 Android 虚拟设备中的应用和数据",
|
|
38
|
+
"cleanDevices": "删除私有虚拟设备数据",
|
|
39
|
+
"working": "正在检查这台机器…",
|
|
40
|
+
"preparing": "正在准备组件。下载与 Apple 安装可能需要几分钟,可稍后回到此面板查看进度。",
|
|
41
|
+
"failed": "操作未能完成。请按官方指引检查所选磁盘、网络及虚拟设备是否已关机,再重试。具体原因可在这台机器的插件日志中查看。",
|
|
42
|
+
"done": "操作已完成。刷新设备列表以检查并打开模拟器。",
|
|
43
|
+
"reasons": {
|
|
44
|
+
"ios-needs-macos": "iOS 模拟器需要装有 Xcode 的 Mac。",
|
|
45
|
+
"ios-tools-missing": "这台机器上的随包 iOS 模拟器助手缺失或无法加载。请使用匹配的平台组件修复或更新 Ycodium。",
|
|
46
|
+
"xcode-missing": "请先从 Apple 安装 Xcode,并在 Xcode 设置中选择它,再准备运行时。",
|
|
47
|
+
"xcode-incomplete": "请打开 Xcode,完成首次初始化和必要组件安装。Ycodium 不会更改所选 Xcode,也不会代你处理系统确认。",
|
|
48
|
+
"ios-runtime-missing": "尚无可用的 iOS 运行时,请选择当前 Xcode 支持的明确版本。",
|
|
49
|
+
"ios-version-required": "请选择当前 Xcode 支持的明确 iOS 版本。下载大小和最终安装位置由 Apple 决定。",
|
|
50
|
+
"android-platform-unsupported": "Google 没有为这台机器的系统和架构提供此固定版本的模拟器。",
|
|
51
|
+
"virtualization-unavailable": "模拟器需要的系统加速功能不可用或无法访问。请按官方指引检查 WHPX、KVM 或 Hypervisor.framework。Ycodium 不会启用系统功能、提权或安装驱动。",
|
|
52
|
+
"windows-hypervisor-platform-disabled": "Windows Hypervisor Platform(Windows 虚拟机监控程序平台)尚未启用。这不代表 BIOS/UEFI 中的硬件虚拟化未开启。请按 Windows 官方指引检查;Ycodium 不会修改系统功能。",
|
|
53
|
+
"windows-hypervisor-not-running": "Windows Hypervisor Platform 已启用,但 Windows hypervisor 当前没有运行。请按官方指引检查是否需要重启及启动配置;Ycodium 不会修改启动设置。",
|
|
54
|
+
"virtualization-firmware-disabled": "Windows 报告 BIOS/UEFI 中的虚拟化未开启。请按电脑厂商的说明检查固件设置。",
|
|
55
|
+
"virtualization-probe-failed": "无法确定模拟器加速状态,不能据此认定硬件虚拟化未开启。请重试检查或参考官方设置指引。"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
2
58
|
"settings": {
|
|
3
59
|
"card": {
|
|
4
60
|
"title": "设备",
|
|
5
|
-
"description": "让 agent 操作这台机器上的 iOS
|
|
61
|
+
"description": "让 agent 操作这台机器上的 iOS 模拟器与安卓模拟器。辅助工具随 Ycodium 提供。打开设备面板可检查并准备模拟器环境。"
|
|
6
62
|
},
|
|
7
63
|
"androidSdk": {
|
|
8
64
|
"label": "Android SDK 位置",
|
|
@@ -17,8 +73,8 @@
|
|
|
17
73
|
"failed": "读取设备工具版本失败。"
|
|
18
74
|
},
|
|
19
75
|
"updateTools": {
|
|
20
|
-
"label": "
|
|
21
|
-
"description": "
|
|
76
|
+
"label": "校验随包工具",
|
|
77
|
+
"description": "检查 Ycodium 随包提供的辅助工具。缺少组件时,请修复或更新这台机器上的 Ycodium。",
|
|
22
78
|
"hub": "设备中枢",
|
|
23
79
|
"agent": "agent 工具",
|
|
24
80
|
"done": "设备工具已是最新。",
|
|
@@ -31,7 +87,7 @@
|
|
|
31
87
|
"platformAndroid": "安卓模拟器",
|
|
32
88
|
"empty": "这台机器上没有找到模拟器。",
|
|
33
89
|
"hubFailed": "设备 hub 没能启动。",
|
|
34
|
-
"noAvd": "
|
|
90
|
+
"noAvd": "没有找到安卓虚拟设备。可在下方准备私有模拟器,或在 Android Studio 的 Device Manager 中创建后刷新。",
|
|
35
91
|
"refresh": "刷新设备",
|
|
36
92
|
"open": "打开",
|
|
37
93
|
"start": "启动",
|
|
@@ -89,7 +145,7 @@
|
|
|
89
145
|
"screenshotFailed": "截图失败,请重试。",
|
|
90
146
|
"screenshotAlt": "设备截图",
|
|
91
147
|
"screenshotSaveHint": "长按图片即可保存。",
|
|
92
|
-
"
|
|
148
|
+
"closeBrowser": "关闭"
|
|
93
149
|
},
|
|
94
150
|
"tools": {
|
|
95
151
|
"title": "设备工具",
|
|
@@ -200,11 +256,11 @@
|
|
|
200
256
|
"running": "运行中",
|
|
201
257
|
"none": "—",
|
|
202
258
|
"unknown": "还没读过版本。点「检查版本」读取。",
|
|
203
|
-
"updateTo": "
|
|
204
|
-
"pendingPolicy": "
|
|
259
|
+
"updateTo": "校验随包版本 {{version}}",
|
|
260
|
+
"pendingPolicy": "设备辅助工具随 Ycodium 提供。组件缺失或不完整时,请修复或更新这台机器上的 Ycodium。",
|
|
205
261
|
"checkHint": "检查只读取已装的工具,不安装也不启动任何东西。",
|
|
206
262
|
"check": "检查版本",
|
|
207
263
|
"checkFailed": "读不到工具版本,请重试。",
|
|
208
|
-
"updateFailed": "
|
|
264
|
+
"updateFailed": "随包组件缺失或不完整,请修复或更新这台机器上的 Ycodium。"
|
|
209
265
|
}
|
|
210
266
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-devices",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3566",
|
|
4
4
|
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"tailwindcss": "^4.0.0",
|
|
34
34
|
"typescript": "~6.0.3",
|
|
35
35
|
"vite-plus": "0.2.2",
|
|
36
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
36
|
+
"@ycodium-ai/plugin-api": "0.2.3566",
|
|
37
37
|
"ycodium-fetch-ports": "0.0.0",
|
|
38
38
|
"ycodium-sse-stream": "0.0.0"
|
|
39
39
|
},
|