@ycodium-ai/plugin-devices 0.0.0-stage → 0.2.2800
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 +92 -2
- package/assets/icon.svg +5 -0
- package/assets/ui.js +545 -0
- package/dist/helper.mjs +286 -0
- package/dist/index.js +2870 -0
- package/locales/en.json +209 -0
- package/locales/zh-CN.json +209 -0
- package/package.json +160 -3
package/locales/en.json
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"card": {
|
|
4
|
+
"title": "Devices",
|
|
5
|
+
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine. The device tools are installed the first time a device is used."
|
|
6
|
+
},
|
|
7
|
+
"androidSdk": {
|
|
8
|
+
"label": "Android SDK location",
|
|
9
|
+
"description": "Leave empty to use ANDROID_HOME or Android Studio's default location.",
|
|
10
|
+
"placeholder": "Detect automatically"
|
|
11
|
+
},
|
|
12
|
+
"checkTools": {
|
|
13
|
+
"label": "Check tool versions",
|
|
14
|
+
"description": "Reads the installed device tools without installing or starting anything.",
|
|
15
|
+
"versions": "Device hub: needs {{hubRequired}}, installed {{hubInstalled}}, running {{hubRunning}}. Agent tools: needs {{agentRequired}}, installed {{agentInstalled}}, running {{agentRunning}}.",
|
|
16
|
+
"done": "Versions read.",
|
|
17
|
+
"failed": "Could not read the device tool versions."
|
|
18
|
+
},
|
|
19
|
+
"updateTools": {
|
|
20
|
+
"label": "Install or update tools",
|
|
21
|
+
"description": "Installs the versions this plugin needs. Running tools switch over the next time they start.",
|
|
22
|
+
"hub": "Device hub",
|
|
23
|
+
"agent": "Agent tools",
|
|
24
|
+
"done": "Device tools are up to date.",
|
|
25
|
+
"failed": "Installing the device tools failed."
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"panel": {
|
|
29
|
+
"title": "Devices",
|
|
30
|
+
"platformIos": "iOS Simulators",
|
|
31
|
+
"platformAndroid": "Android Emulators",
|
|
32
|
+
"empty": "No simulators or emulators were found on this machine.",
|
|
33
|
+
"hubFailed": "The device hub failed to start.",
|
|
34
|
+
"noAvd": "No Android virtual devices found. Create one in Android Studio's Device Manager, then refresh.",
|
|
35
|
+
"refresh": "Refresh devices",
|
|
36
|
+
"open": "Open",
|
|
37
|
+
"start": "Start",
|
|
38
|
+
"running": "Running",
|
|
39
|
+
"stopped": "Stopped",
|
|
40
|
+
"booting": "Starting {{names}}… This can take a minute.",
|
|
41
|
+
"opening": "Opening device…",
|
|
42
|
+
"starting": "Starting device…",
|
|
43
|
+
"finding": "Finding devices…",
|
|
44
|
+
"installing": "Installing device support…",
|
|
45
|
+
"dismissError": "Dismiss device error",
|
|
46
|
+
"unavailable": "The Devices plugin is not enabled on this machine. Turn it on in Settings → Plugins.",
|
|
47
|
+
"startingHost": "Starting device support…",
|
|
48
|
+
"installingTool": "Installing {{tool}} {{to}}…",
|
|
49
|
+
"updatingTool": "Updating {{tool}} from {{from}} to {{to}}…",
|
|
50
|
+
"hostFailed": "Device support could not start.",
|
|
51
|
+
"retry": "Retry",
|
|
52
|
+
"retrying": "Retrying…"
|
|
53
|
+
},
|
|
54
|
+
"rail": {
|
|
55
|
+
"label": "Device controls",
|
|
56
|
+
"home": "Home",
|
|
57
|
+
"back": "Back",
|
|
58
|
+
"recents": "Recents",
|
|
59
|
+
"rotate": "Rotate device",
|
|
60
|
+
"portrait": "Portrait",
|
|
61
|
+
"landscape": "Landscape",
|
|
62
|
+
"toDark": "Switch device to dark mode",
|
|
63
|
+
"toLight": "Switch device to light mode",
|
|
64
|
+
"textSize": "Device text size",
|
|
65
|
+
"textSmall": "Small",
|
|
66
|
+
"textDefault": "Default",
|
|
67
|
+
"textLarge": "Large",
|
|
68
|
+
"textExtraLarge": "Extra large",
|
|
69
|
+
"tools": "Device tools",
|
|
70
|
+
"screenshot": "Save screenshot",
|
|
71
|
+
"capturing": "Capturing screenshot",
|
|
72
|
+
"more": "More device actions",
|
|
73
|
+
"closePanel": "Close device",
|
|
74
|
+
"powerOff": "Power off device"
|
|
75
|
+
},
|
|
76
|
+
"stream": {
|
|
77
|
+
"iosScreen": "iOS Simulator screen",
|
|
78
|
+
"androidScreen": "Android Emulator screen",
|
|
79
|
+
"connecting": "Connecting video…",
|
|
80
|
+
"failed": "The video stream failed.",
|
|
81
|
+
"reconnect": "Reconnect",
|
|
82
|
+
"inputLost": "Input disconnected, reconnecting…",
|
|
83
|
+
"inputLostDetail": "Input disconnected ({{detail}}), reconnecting…"
|
|
84
|
+
},
|
|
85
|
+
"workspace": {
|
|
86
|
+
"needsNewerApp": "This app can't show device screens. Update the app.",
|
|
87
|
+
"allDevices": "All devices",
|
|
88
|
+
"screenshotFailed": "Screenshot capture failed. Try again.",
|
|
89
|
+
"screenshotAlt": "Device screenshot",
|
|
90
|
+
"screenshotSaveHint": "Long-press the image to save it.",
|
|
91
|
+
"closePreview": "Close"
|
|
92
|
+
},
|
|
93
|
+
"tools": {
|
|
94
|
+
"title": "Device tools",
|
|
95
|
+
"close": "Close tools",
|
|
96
|
+
"reading": "Reading device settings…",
|
|
97
|
+
"unknown": "Unknown",
|
|
98
|
+
"app": {
|
|
99
|
+
"title": "App",
|
|
100
|
+
"foreground": "Foreground",
|
|
101
|
+
"none": "—",
|
|
102
|
+
"terminate": "Terminate",
|
|
103
|
+
"relaunch": "Relaunch",
|
|
104
|
+
"open": "Open",
|
|
105
|
+
"launch": "Launch",
|
|
106
|
+
"urlPlaceholder": "https://… or myapp://",
|
|
107
|
+
"bundleIdPlaceholder": "Bundle ID to launch",
|
|
108
|
+
"packagePlaceholder": "Package name to launch"
|
|
109
|
+
},
|
|
110
|
+
"settings": {
|
|
111
|
+
"titleIos": "Simulator",
|
|
112
|
+
"titleAndroid": "Emulator",
|
|
113
|
+
"appearance": "Appearance",
|
|
114
|
+
"light": "Light",
|
|
115
|
+
"dark": "Dark",
|
|
116
|
+
"textSize": "Text size",
|
|
117
|
+
"textSmall": "Small",
|
|
118
|
+
"textDefault": "Default",
|
|
119
|
+
"textLarge": "Large",
|
|
120
|
+
"textExtraLarge": "Extra large",
|
|
121
|
+
"liquidGlass": "Liquid Glass",
|
|
122
|
+
"glassClear": "Clear",
|
|
123
|
+
"glassTinted": "Tinted",
|
|
124
|
+
"colorFilter": "Color filter",
|
|
125
|
+
"filterNone": "None",
|
|
126
|
+
"filterGrayscale": "Grayscale",
|
|
127
|
+
"filterRedGreen": "Red / green (protanopia)",
|
|
128
|
+
"filterGreenRed": "Green / red (deuteranopia)",
|
|
129
|
+
"filterBlueYellow": "Blue / yellow (tritanopia)",
|
|
130
|
+
"orientation": "Orientation",
|
|
131
|
+
"rotateTo": "Rotate to…",
|
|
132
|
+
"orientationPortrait": "Portrait",
|
|
133
|
+
"orientationLandscapeLeft": "Landscape left",
|
|
134
|
+
"orientationUpsideDown": "Upside down",
|
|
135
|
+
"orientationLandscapeRight": "Landscape right",
|
|
136
|
+
"reduceMotion": "Reduce Motion",
|
|
137
|
+
"increaseContrast": "Increase Contrast",
|
|
138
|
+
"reduceTransparency": "Reduce Transparency",
|
|
139
|
+
"showBorders": "Show Borders",
|
|
140
|
+
"voiceOver": "VoiceOver",
|
|
141
|
+
"network": "Network"
|
|
142
|
+
},
|
|
143
|
+
"accessibility": {
|
|
144
|
+
"title": "Accessibility",
|
|
145
|
+
"overlay": "Overlay element frames"
|
|
146
|
+
},
|
|
147
|
+
"location": {
|
|
148
|
+
"title": "Location",
|
|
149
|
+
"latitude": "Latitude",
|
|
150
|
+
"longitude": "Longitude",
|
|
151
|
+
"preset": "Location preset",
|
|
152
|
+
"presetPlaceholder": "Preset…",
|
|
153
|
+
"set": "Set",
|
|
154
|
+
"clear": "Clear",
|
|
155
|
+
"sanFrancisco": "San Francisco",
|
|
156
|
+
"newYork": "New York",
|
|
157
|
+
"london": "London",
|
|
158
|
+
"stockholm": "Stockholm",
|
|
159
|
+
"tokyo": "Tokyo"
|
|
160
|
+
},
|
|
161
|
+
"permissions": {
|
|
162
|
+
"title": "Permissions",
|
|
163
|
+
"appId": "App ID",
|
|
164
|
+
"permission": "Permission",
|
|
165
|
+
"grant": "Grant",
|
|
166
|
+
"revoke": "Revoke",
|
|
167
|
+
"reset": "Reset",
|
|
168
|
+
"camera": "Camera",
|
|
169
|
+
"microphone": "Microphone",
|
|
170
|
+
"photos": "Photos",
|
|
171
|
+
"contacts": "Contacts",
|
|
172
|
+
"calendar": "Calendar",
|
|
173
|
+
"reminders": "Reminders",
|
|
174
|
+
"location": "Location",
|
|
175
|
+
"notifications": "Notifications",
|
|
176
|
+
"motion": "Motion",
|
|
177
|
+
"activity": "Physical activity",
|
|
178
|
+
"mediaLibrary": "Media library",
|
|
179
|
+
"faceId": "Face ID"
|
|
180
|
+
},
|
|
181
|
+
"push": {
|
|
182
|
+
"title": "Push notification",
|
|
183
|
+
"placeholder": "Alert text, or an APNs JSON payload",
|
|
184
|
+
"send": "Send",
|
|
185
|
+
"needsApp": "Open an app first.",
|
|
186
|
+
"invalid": "The payload must be under 4 KB."
|
|
187
|
+
},
|
|
188
|
+
"eventLog": {
|
|
189
|
+
"title": "Event log",
|
|
190
|
+
"empty": "No events yet."
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"versions": {
|
|
194
|
+
"title": "Tool versions",
|
|
195
|
+
"hubName": "Device hub",
|
|
196
|
+
"agentName": "Agent tools",
|
|
197
|
+
"required": "Required",
|
|
198
|
+
"installed": "Installed",
|
|
199
|
+
"running": "Running",
|
|
200
|
+
"none": "—",
|
|
201
|
+
"unknown": "Versions have not been read yet. Check versions to read them.",
|
|
202
|
+
"updateTo": "Update to {{version}}",
|
|
203
|
+
"pendingPolicy": "The required versions install automatically the next time a device is used. Installing needs network access; an older install is never used instead.",
|
|
204
|
+
"checkHint": "Checking reads the installed tools without installing or starting anything.",
|
|
205
|
+
"check": "Check versions",
|
|
206
|
+
"checkFailed": "Could not read the tool versions. Try again.",
|
|
207
|
+
"updateFailed": "Update failed. Check this machine's network connection and try again."
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"card": {
|
|
4
|
+
"title": "设备",
|
|
5
|
+
"description": "让 agent 操作这台机器上的 iOS 模拟器与安卓模拟器。设备工具在第一次用到设备时安装。"
|
|
6
|
+
},
|
|
7
|
+
"androidSdk": {
|
|
8
|
+
"label": "Android SDK 位置",
|
|
9
|
+
"description": "留空则使用 ANDROID_HOME 或 Android Studio 的默认位置。",
|
|
10
|
+
"placeholder": "自动检测"
|
|
11
|
+
},
|
|
12
|
+
"checkTools": {
|
|
13
|
+
"label": "检查工具版本",
|
|
14
|
+
"description": "读取已安装的设备工具,不安装也不启动任何东西。",
|
|
15
|
+
"versions": "设备中枢:需要 {{hubRequired}},已装 {{hubInstalled}},在跑 {{hubRunning}}。agent 工具:需要 {{agentRequired}},已装 {{agentInstalled}},在跑 {{agentRunning}}。",
|
|
16
|
+
"done": "已读取版本。",
|
|
17
|
+
"failed": "读取设备工具版本失败。"
|
|
18
|
+
},
|
|
19
|
+
"updateTools": {
|
|
20
|
+
"label": "安装或更新工具",
|
|
21
|
+
"description": "安装本插件需要的版本。正在运行的工具下次启动时换用新版本。",
|
|
22
|
+
"hub": "设备中枢",
|
|
23
|
+
"agent": "agent 工具",
|
|
24
|
+
"done": "设备工具已是最新。",
|
|
25
|
+
"failed": "安装设备工具失败。"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"panel": {
|
|
29
|
+
"title": "设备",
|
|
30
|
+
"platformIos": "iOS 模拟器",
|
|
31
|
+
"platformAndroid": "安卓模拟器",
|
|
32
|
+
"empty": "这台机器上没有找到模拟器。",
|
|
33
|
+
"hubFailed": "设备 hub 没能启动。",
|
|
34
|
+
"noAvd": "没有找到安卓虚拟设备。先在 Android Studio 的 Device Manager 里建一台,再刷新。",
|
|
35
|
+
"refresh": "刷新设备",
|
|
36
|
+
"open": "打开",
|
|
37
|
+
"start": "启动",
|
|
38
|
+
"running": "运行中",
|
|
39
|
+
"stopped": "已停止",
|
|
40
|
+
"booting": "正在启动 {{names}}……可能要一分钟。",
|
|
41
|
+
"opening": "正在打开设备……",
|
|
42
|
+
"starting": "正在启动设备……",
|
|
43
|
+
"finding": "正在查找设备……",
|
|
44
|
+
"installing": "正在安装设备支持……",
|
|
45
|
+
"dismissError": "关闭设备错误提示",
|
|
46
|
+
"unavailable": "这台机器上没有启用设备插件。到 设置 → 插件 里打开。",
|
|
47
|
+
"startingHost": "正在启动设备支持……",
|
|
48
|
+
"installingTool": "正在安装{{tool}} {{to}}……",
|
|
49
|
+
"updatingTool": "正在把{{tool}}从 {{from}} 更新到 {{to}}……",
|
|
50
|
+
"hostFailed": "设备支持没能启动。",
|
|
51
|
+
"retry": "重试",
|
|
52
|
+
"retrying": "正在重试……"
|
|
53
|
+
},
|
|
54
|
+
"rail": {
|
|
55
|
+
"label": "设备操作",
|
|
56
|
+
"home": "主屏幕",
|
|
57
|
+
"back": "返回",
|
|
58
|
+
"recents": "最近任务",
|
|
59
|
+
"rotate": "旋转设备",
|
|
60
|
+
"portrait": "竖屏",
|
|
61
|
+
"landscape": "横屏",
|
|
62
|
+
"toDark": "把设备切到深色模式",
|
|
63
|
+
"toLight": "把设备切到浅色模式",
|
|
64
|
+
"textSize": "设备字号",
|
|
65
|
+
"textSmall": "小",
|
|
66
|
+
"textDefault": "默认",
|
|
67
|
+
"textLarge": "大",
|
|
68
|
+
"textExtraLarge": "特大",
|
|
69
|
+
"tools": "设备工具",
|
|
70
|
+
"screenshot": "保存截图",
|
|
71
|
+
"capturing": "正在截图",
|
|
72
|
+
"more": "更多设备操作",
|
|
73
|
+
"closePanel": "关闭设备",
|
|
74
|
+
"powerOff": "关机"
|
|
75
|
+
},
|
|
76
|
+
"stream": {
|
|
77
|
+
"iosScreen": "iOS 模拟器画面",
|
|
78
|
+
"androidScreen": "安卓模拟器画面",
|
|
79
|
+
"connecting": "正在连接画面……",
|
|
80
|
+
"failed": "画面流中断了。",
|
|
81
|
+
"reconnect": "重新连接",
|
|
82
|
+
"inputLost": "输入断开了,正在重连……",
|
|
83
|
+
"inputLostDetail": "输入断开了({{detail}}),正在重连……"
|
|
84
|
+
},
|
|
85
|
+
"workspace": {
|
|
86
|
+
"needsNewerApp": "这个应用显示不了设备画面,请更新应用。",
|
|
87
|
+
"allDevices": "全部设备",
|
|
88
|
+
"screenshotFailed": "截图失败,请重试。",
|
|
89
|
+
"screenshotAlt": "设备截图",
|
|
90
|
+
"screenshotSaveHint": "长按图片即可保存。",
|
|
91
|
+
"closePreview": "关闭"
|
|
92
|
+
},
|
|
93
|
+
"tools": {
|
|
94
|
+
"title": "设备工具",
|
|
95
|
+
"close": "关闭工具",
|
|
96
|
+
"reading": "正在读取设备设置…",
|
|
97
|
+
"unknown": "未知",
|
|
98
|
+
"app": {
|
|
99
|
+
"title": "应用",
|
|
100
|
+
"foreground": "前台应用",
|
|
101
|
+
"none": "—",
|
|
102
|
+
"terminate": "终止",
|
|
103
|
+
"relaunch": "重新启动",
|
|
104
|
+
"open": "打开",
|
|
105
|
+
"launch": "启动",
|
|
106
|
+
"urlPlaceholder": "https://… 或 myapp://",
|
|
107
|
+
"bundleIdPlaceholder": "要启动的 Bundle ID",
|
|
108
|
+
"packagePlaceholder": "要启动的包名"
|
|
109
|
+
},
|
|
110
|
+
"settings": {
|
|
111
|
+
"titleIos": "模拟器",
|
|
112
|
+
"titleAndroid": "模拟器",
|
|
113
|
+
"appearance": "外观",
|
|
114
|
+
"light": "浅色",
|
|
115
|
+
"dark": "深色",
|
|
116
|
+
"textSize": "文字大小",
|
|
117
|
+
"textSmall": "小",
|
|
118
|
+
"textDefault": "默认",
|
|
119
|
+
"textLarge": "大",
|
|
120
|
+
"textExtraLarge": "特大",
|
|
121
|
+
"liquidGlass": "液态玻璃",
|
|
122
|
+
"glassClear": "透明",
|
|
123
|
+
"glassTinted": "着色",
|
|
124
|
+
"colorFilter": "色彩滤镜",
|
|
125
|
+
"filterNone": "无",
|
|
126
|
+
"filterGrayscale": "灰度",
|
|
127
|
+
"filterRedGreen": "红 / 绿(红色盲)",
|
|
128
|
+
"filterGreenRed": "绿 / 红(绿色盲)",
|
|
129
|
+
"filterBlueYellow": "蓝 / 黄(蓝色盲)",
|
|
130
|
+
"orientation": "屏幕方向",
|
|
131
|
+
"rotateTo": "旋转到…",
|
|
132
|
+
"orientationPortrait": "竖屏",
|
|
133
|
+
"orientationLandscapeLeft": "向左横屏",
|
|
134
|
+
"orientationUpsideDown": "倒置竖屏",
|
|
135
|
+
"orientationLandscapeRight": "向右横屏",
|
|
136
|
+
"reduceMotion": "减弱动态效果",
|
|
137
|
+
"increaseContrast": "增强对比度",
|
|
138
|
+
"reduceTransparency": "降低透明度",
|
|
139
|
+
"showBorders": "显示按钮形状",
|
|
140
|
+
"voiceOver": "旁白",
|
|
141
|
+
"network": "网络"
|
|
142
|
+
},
|
|
143
|
+
"accessibility": {
|
|
144
|
+
"title": "辅助功能",
|
|
145
|
+
"overlay": "叠加元素边框"
|
|
146
|
+
},
|
|
147
|
+
"location": {
|
|
148
|
+
"title": "定位",
|
|
149
|
+
"latitude": "纬度",
|
|
150
|
+
"longitude": "经度",
|
|
151
|
+
"preset": "预设位置",
|
|
152
|
+
"presetPlaceholder": "预设…",
|
|
153
|
+
"set": "设置",
|
|
154
|
+
"clear": "清除",
|
|
155
|
+
"sanFrancisco": "旧金山",
|
|
156
|
+
"newYork": "纽约",
|
|
157
|
+
"london": "伦敦",
|
|
158
|
+
"stockholm": "斯德哥尔摩",
|
|
159
|
+
"tokyo": "东京"
|
|
160
|
+
},
|
|
161
|
+
"permissions": {
|
|
162
|
+
"title": "权限",
|
|
163
|
+
"appId": "应用 ID",
|
|
164
|
+
"permission": "权限",
|
|
165
|
+
"grant": "授予",
|
|
166
|
+
"revoke": "撤销",
|
|
167
|
+
"reset": "重置",
|
|
168
|
+
"camera": "相机",
|
|
169
|
+
"microphone": "麦克风",
|
|
170
|
+
"photos": "照片",
|
|
171
|
+
"contacts": "通讯录",
|
|
172
|
+
"calendar": "日历",
|
|
173
|
+
"reminders": "提醒事项",
|
|
174
|
+
"location": "定位",
|
|
175
|
+
"notifications": "通知",
|
|
176
|
+
"motion": "运动与健身",
|
|
177
|
+
"activity": "身体活动",
|
|
178
|
+
"mediaLibrary": "媒体资料库",
|
|
179
|
+
"faceId": "面容 ID"
|
|
180
|
+
},
|
|
181
|
+
"push": {
|
|
182
|
+
"title": "推送通知",
|
|
183
|
+
"placeholder": "提醒文本,或 APNs JSON 负载",
|
|
184
|
+
"send": "发送",
|
|
185
|
+
"needsApp": "请先打开一个应用。",
|
|
186
|
+
"invalid": "负载必须小于 4 KB。"
|
|
187
|
+
},
|
|
188
|
+
"eventLog": {
|
|
189
|
+
"title": "事件日志",
|
|
190
|
+
"empty": "还没有事件。"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"versions": {
|
|
194
|
+
"title": "工具版本",
|
|
195
|
+
"hubName": "设备 hub",
|
|
196
|
+
"agentName": "agent 工具",
|
|
197
|
+
"required": "需要",
|
|
198
|
+
"installed": "已安装",
|
|
199
|
+
"running": "运行中",
|
|
200
|
+
"none": "—",
|
|
201
|
+
"unknown": "还没读过版本。点「检查版本」读取。",
|
|
202
|
+
"updateTo": "更新到 {{version}}",
|
|
203
|
+
"pendingPolicy": "下次用到设备时会自动安装需要的版本。安装要联网;不会退回使用旧版本。",
|
|
204
|
+
"checkHint": "检查只读取已装的工具,不安装也不启动任何东西。",
|
|
205
|
+
"check": "检查版本",
|
|
206
|
+
"checkFailed": "读不到工具版本,请重试。",
|
|
207
|
+
"updateFailed": "更新失败。检查这台机器的网络后重试。"
|
|
208
|
+
}
|
|
209
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,163 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-devices",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.2800",
|
|
4
|
+
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"android",
|
|
7
|
+
"devices",
|
|
8
|
+
"emulator",
|
|
9
|
+
"ios",
|
|
10
|
+
"simulator",
|
|
11
|
+
"ycodium",
|
|
12
|
+
"ycodium-plugin"
|
|
13
|
+
],
|
|
14
|
+
"license": "UNLICENSED",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"locales",
|
|
18
|
+
"assets",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@effect/vitest": "4.0.0-beta.103",
|
|
27
|
+
"@tailwindcss/node": "^4.3.0",
|
|
28
|
+
"@tailwindcss/oxide": "^4.3.0",
|
|
29
|
+
"@types/react": "~19.2.14",
|
|
30
|
+
"esbuild": "0.28.1",
|
|
31
|
+
"lucide-react": "^0.564.0",
|
|
32
|
+
"react": "19.2.6",
|
|
33
|
+
"tailwindcss": "^4.0.0",
|
|
34
|
+
"typescript": "~6.0.3",
|
|
35
|
+
"vite-plus": "0.2.2",
|
|
36
|
+
"@ycodium-ai/plugin-api": "0.2.2800",
|
|
37
|
+
"ycodium-fetch-ports": "0.0.0"
|
|
38
|
+
},
|
|
39
|
+
"ycodium": {
|
|
40
|
+
"plugin": "./dist/index.js",
|
|
41
|
+
"displayName": "Devices",
|
|
42
|
+
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine.",
|
|
43
|
+
"icon": "./assets/icon.svg",
|
|
44
|
+
"ui": {
|
|
45
|
+
"assets": "./assets",
|
|
46
|
+
"entry": "ui.js",
|
|
47
|
+
"panels": [
|
|
48
|
+
{
|
|
49
|
+
"id": "device",
|
|
50
|
+
"titleKey": "panel.title",
|
|
51
|
+
"icon": "smartphone"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"permissions": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "process.spawn",
|
|
58
|
+
"programs": [
|
|
59
|
+
"host:node"
|
|
60
|
+
],
|
|
61
|
+
"maxConcurrent": 8
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"kind": "network.serve",
|
|
65
|
+
"services": [
|
|
66
|
+
{
|
|
67
|
+
"name": "hub",
|
|
68
|
+
"routes": [
|
|
69
|
+
{
|
|
70
|
+
"path": "/api/devices"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "/api/devices/ws",
|
|
74
|
+
"websocket": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"path": "/vendor/serve-sim/api/screenshot",
|
|
78
|
+
"methods": [
|
|
79
|
+
"GET",
|
|
80
|
+
"HEAD",
|
|
81
|
+
"POST"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "/vendor/serve-sim/api/event-log"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "/vendor/serve-sim/api/event-log/events"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "/vendor/serve-sim/appstate"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "/vendor/serve-sim/helper/:device/stream.mjpeg"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "/vendor/serve-sim/helper/:device/stream.avcc"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "/vendor/serve-sim/helper/:device/config"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"path": "/vendor/serve-sim/helper/:device/health"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "/vendor/serve-sim/helper/:device/ax"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"path": "/vendor/serve-sim/helper/:device/foreground"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "/vendor/serve-sim/helper/ws",
|
|
113
|
+
"websocket": true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "/vendor/serve-emu/api/devices"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"path": "/vendor/serve-emu/api/screenshot",
|
|
120
|
+
"methods": [
|
|
121
|
+
"GET",
|
|
122
|
+
"HEAD",
|
|
123
|
+
"POST"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"path": "/vendor/serve-emu/api/stream-mode",
|
|
128
|
+
"methods": [
|
|
129
|
+
"GET",
|
|
130
|
+
"HEAD",
|
|
131
|
+
"POST"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"path": "/vendor/serve-emu/api/stream-settings",
|
|
136
|
+
"methods": [
|
|
137
|
+
"GET",
|
|
138
|
+
"HEAD",
|
|
139
|
+
"POST"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"path": "/vendor/serve-emu/api/accessibility"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"path": "/vendor/serve-emu/health"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"path": "/vendor/serve-emu/ws",
|
|
150
|
+
"websocket": true
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"scripts": {
|
|
159
|
+
"build": "node build.mjs",
|
|
160
|
+
"typecheck": "tsgo --noEmit && tsgo --noEmit -p tsconfig.ui.json",
|
|
161
|
+
"test": "vp test run"
|
|
162
|
+
}
|
|
6
163
|
}
|