@ycodium-ai/plugin-devices 0.2.4351 → 0.2.4368

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 CHANGED
@@ -114,7 +114,7 @@ helper artifacts require repairing or updating Ycodium on that machine.
114
114
 
115
115
  ## Requirements and verification limits
116
116
 
117
- A Ycodium host supporting `host:node`, plugin network services and the plugin UI is
117
+ A Ycodium host supporting `node`, plugin network services and the plugin UI is
118
118
  required. Preparing Android components needs outbound HTTPS to Google's official
119
119
  download service. Preparing iOS runtimes requires macOS, initialized Xcode and
120
120
  access to Apple's component service.
@@ -1,4 +1,4 @@
1
- // 独立 host:node 助手,只处理指定 SDK 或 Apple 官方工具,不修改系统设置。
1
+ // 独立 node 助手,只处理指定 SDK 或 Apple 官方工具,不修改系统设置。
2
2
  import * as NodeFS from "node:fs";
3
3
  import * as NodePath from "node:path";
4
4
  import * as NodeChildProcess from "node:child_process";
package/dist/helper.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // 设备插件的子进程助手:由插件经 `ctx.process` 以 `host:node helper.mjs <模式> …` 起,
1
+ // 设备插件的子进程助手:由插件经 `ctx.process` 以 `node helper.mjs <模式> …` 起,
2
2
  // 跑在服务器自己的 Node 上(桌面版是带 ELECTRON_RUN_AS_NODE 的 Electron)。
3
3
  //
4
4
  // 宿主不许插件给子进程改 PATH,而 hub 在 Windows 上只靠 PATH 找模拟器、agent-device 的守护进程
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import * as NodePath9 from "node:path";
3
3
  import { definePlugin, PLUGIN_PROXY_DIRECT } from "@ycodium-ai/plugin-api";
4
4
 
5
5
  // ../../packages/plugin-api/src/version.ts
6
- var PLUGIN_API_VERSION = 110;
6
+ var PLUGIN_API_VERSION = 112;
7
7
 
8
8
  // src/types.ts
9
9
  var DEVICE_PLATFORMS = ["ios", "android"];
@@ -1117,7 +1117,7 @@ var DeviceEnvironments = class {
1117
1117
  }
1118
1118
  async probe() {
1119
1119
  const result = await this.options.process.run({
1120
- program: "host:node",
1120
+ program: "node",
1121
1121
  args: [
1122
1122
  this.options.helperPath,
1123
1123
  "environment-probe",
@@ -1320,7 +1320,7 @@ var DeviceEnvironments = class {
1320
1320
  signal.throwIfAborted();
1321
1321
  progress({ phase: "validate" });
1322
1322
  const validated = await this.options.process.run({
1323
- program: "host:node",
1323
+ program: "node",
1324
1324
  args: [this.options.helperPath, "validate-android", "--sdk", paths.sdk],
1325
1325
  cwd: this.options.dataDir,
1326
1326
  timeoutMs: 6e4
@@ -1412,7 +1412,7 @@ target=android-${api}
1412
1412
  async runApple(args, cancelled) {
1413
1413
  cancelled.throwIfAborted();
1414
1414
  const handle = await this.options.process.spawn({
1415
- program: "host:node",
1415
+ program: "node",
1416
1416
  args: [this.options.helperPath, "run", "--", "xcodebuild", ...args],
1417
1417
  cwd: this.options.dataDir
1418
1418
  });
@@ -1655,7 +1655,7 @@ var probeMachine = async (input) => {
1655
1655
  const args = [input.helperPath, "probe"];
1656
1656
  if (input.runtimeDir) args.push("--tools", input.runtimeDir);
1657
1657
  if (input.sdkOverride.trim().length > 0) args.push("--sdk", input.sdkOverride.trim());
1658
- const result = await input.process.run({ program: "host:node", args, cwd: input.cwd, timeoutMs: 3e4 }).catch((error) => {
1658
+ const result = await input.process.run({ program: "node", args, cwd: input.cwd, timeoutMs: 3e4 }).catch((error) => {
1659
1659
  throw new DeviceError(
1660
1660
  "node-unavailable",
1661
1661
  `Could not run Node.js to check device support: ${errorDetail(error)}`,
@@ -1842,7 +1842,7 @@ var AgentDaemon = class {
1842
1842
  args.push("--", input.entryPath, "devices", "--json");
1843
1843
  const timeoutMs = this.options.readyTimeoutMs ?? DAEMON_READY_TIMEOUT_MS;
1844
1844
  await this.options.process.run({
1845
- program: "host:node",
1845
+ program: "node",
1846
1846
  args,
1847
1847
  cwd: this.options.stateDir,
1848
1848
  env: daemonEnvironment(this.options.stateDir),
@@ -1866,7 +1866,7 @@ var AgentDaemon = class {
1866
1866
  const entryPath = this.entryPath;
1867
1867
  if (entryPath === null) return;
1868
1868
  await this.options.process.run({
1869
- program: "host:node",
1869
+ program: "node",
1870
1870
  args: [entryPath, "daemon", "stop", "--state-dir", this.options.stateDir],
1871
1871
  cwd: this.options.stateDir,
1872
1872
  env: { AGENT_DEVICE_NO_UPDATE_NOTIFIER: "1" },
@@ -2166,7 +2166,7 @@ var HubProcess = class {
2166
2166
  let handle;
2167
2167
  try {
2168
2168
  handle = await this.options.process.spawn({
2169
- program: "host:node",
2169
+ program: "node",
2170
2170
  jobPolicy: "allowExplicitBreakaway",
2171
2171
  args,
2172
2172
  cwd: this.options.stateDir,
@@ -2516,7 +2516,7 @@ var LocalDeviceHost = class {
2516
2516
  );
2517
2517
  const stdin = options.stdin === void 0 ? {} : { stdin: options.stdin };
2518
2518
  const base = {
2519
- program: "host:node",
2519
+ program: "node",
2520
2520
  cwd: this.options.dataDir,
2521
2521
  timeoutMs: options.timeoutMs ?? 2e4
2522
2522
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-devices",
3
- "version": "0.2.4351",
3
+ "version": "0.2.4368",
4
4
  "description": "Lets agents drive iOS Simulators and Android Emulators on this machine.",
5
5
  "keywords": [
6
6
  "android",
@@ -34,7 +34,7 @@
34
34
  "tailwindcss": "^4.0.0",
35
35
  "typescript": "~6.0.3",
36
36
  "vite-plus": "0.2.2",
37
- "@ycodium-ai/plugin-api": "0.2.4351",
37
+ "@ycodium-ai/plugin-api": "0.2.4368",
38
38
  "ycodium-sse-stream": "0.0.0",
39
39
  "ycodium-fetch-ports": "0.0.0"
40
40
  },
@@ -96,7 +96,7 @@
96
96
  {
97
97
  "kind": "process.spawn",
98
98
  "programs": [
99
- "host:node"
99
+ "node"
100
100
  ],
101
101
  "maxConcurrent": 8
102
102
  },