@ycodium-ai/plugin-devices 0.2.3265 → 0.2.3306
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/dist/helper.mjs +6 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/helper.mjs
CHANGED
|
@@ -369,7 +369,12 @@ async function main() {
|
|
|
369
369
|
: command === "adb" && options.sdk
|
|
370
370
|
? NodePath.join(options.sdk, "platform-tools", exe("adb"))
|
|
371
371
|
: command;
|
|
372
|
-
|
|
372
|
+
// run 只跑后台 SDK 命令;模拟器开机由 hub 的 node 路径负责。
|
|
373
|
+
const child = NodeChildProcess.spawn(resolved, args, {
|
|
374
|
+
stdio: "inherit",
|
|
375
|
+
env: process.env,
|
|
376
|
+
windowsHide: true,
|
|
377
|
+
});
|
|
373
378
|
child.on("error", (error) => {
|
|
374
379
|
process.stderr.write(`${error.message}\n`);
|
|
375
380
|
process.exitCode = 127;
|
package/dist/index.js
CHANGED
|
@@ -589,7 +589,7 @@ const env = { ...process.env };
|
|
|
589
589
|
delete env.AGENT_DEVICE_DAEMON_BASE_URL;
|
|
590
590
|
delete env.AGENT_DEVICE_DAEMON_AUTH_TOKEN;
|
|
591
591
|
delete env.AGENT_DEVICE_CONFIG;
|
|
592
|
-
const child = spawn(${JSON.stringify(input.nodePath)}, [${JSON.stringify(input.entryPath)}, ...args], { stdio: "inherit", env });
|
|
592
|
+
const child = spawn(${JSON.stringify(input.nodePath)}, [${JSON.stringify(input.entryPath)}, ...args], { stdio: "inherit", env, windowsHide: true });
|
|
593
593
|
child.on("error", error => { console.error(error.message); process.exitCode = 1; });
|
|
594
594
|
child.on("exit", code => { process.exitCode = code ?? 1; });
|
|
595
595
|
`
|
|
@@ -1386,7 +1386,7 @@ async function withToolMaintenance(root, operation) {
|
|
|
1386
1386
|
function pruneTools(root, specs) {
|
|
1387
1387
|
return withToolMaintenance(root, () => {
|
|
1388
1388
|
const scan = process.platform === 'win32'
|
|
1389
|
-
? require('node:child_process').spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', 'Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine'], { encoding: 'utf8', timeout: 10000 })
|
|
1389
|
+
? require('node:child_process').spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', 'Get-CimInstance Win32_Process | Select-Object -ExpandProperty CommandLine'], { encoding: 'utf8', timeout: 10000, windowsHide: true })
|
|
1390
1390
|
: require('node:child_process').spawnSync('ps', ['-ax', '-o', 'command='], { encoding: 'utf8', timeout: 10000 });
|
|
1391
1391
|
if (scan.status !== 0 || !scan.stdout) return;
|
|
1392
1392
|
for (const [name, required] of specs) {
|
|
@@ -2857,7 +2857,7 @@ var deviceToolkit = (service) => ({
|
|
|
2857
2857
|
var HUB_SERVICE = "hub";
|
|
2858
2858
|
var index_default = definePlugin({
|
|
2859
2859
|
id: "devices",
|
|
2860
|
-
apiVersion:
|
|
2860
|
+
apiVersion: 34,
|
|
2861
2861
|
activate: async (ctx) => {
|
|
2862
2862
|
const direct = (input, init) => ctx.proxies.fetch(PLUGIN_PROXY_DIRECT).then((fetchDirect) => fetchDirect(input, init));
|
|
2863
2863
|
const host = new LocalDeviceHost({
|
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.3306",
|
|
4
4
|
"description": "Lets agents drive iOS Simulators and Android Emulators on this machine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -33,8 +33,8 @@
|
|
|
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.3265",
|
|
37
36
|
"ycodium-fetch-ports": "0.0.0",
|
|
37
|
+
"@ycodium-ai/plugin-api": "0.2.3306",
|
|
38
38
|
"ycodium-sse-stream": "0.0.0"
|
|
39
39
|
},
|
|
40
40
|
"ycodium": {
|