@beeos-ai/cli 1.0.6 → 1.0.7

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/index.js CHANGED
@@ -1881,7 +1881,7 @@ var init_scrcpy_bridge = __esm({
1881
1881
  },
1882
1882
  /**
1883
1883
  * Build the environment map used when launching scrcpy-bridge for a
1884
- * device. Exposed separately so the supervisor target-spec builder
1884
+ * device. Exposed separately so the service target-spec builder
1885
1885
  * can reuse the same logic without duplicating it.
1886
1886
  *
1887
1887
  * scrcpy-bridge authenticates to EMQX exclusively via Agent Gateway
@@ -1911,8 +1911,8 @@ var init_scrcpy_bridge = __esm({
1911
1911
  },
1912
1912
  /**
1913
1913
  * Spawn scrcpy-bridge detached for a single device. Kept for callers
1914
- * that haven't migrated to the supervisor yet — new code should use
1915
- * `buildScrcpyBridgeTargetSpec` + supervisor `upsertTarget` instead.
1914
+ * that haven't migrated to the service manager yet — new code should
1915
+ * use `buildScrcpyBridgeTargetSpec` + `ServiceManager.install`.
1916
1916
  */
1917
1917
  async spawnForDevice(opts, progress) {
1918
1918
  const binary = await this.ensureInstalled(progress);
@@ -1963,7 +1963,7 @@ var init_vnc_bridge = __esm({
1963
1963
  },
1964
1964
  /**
1965
1965
  * Build the environment map used when launching vnc-bridge for a
1966
- * device. Exposed separately so the supervisor target-spec builder
1966
+ * device. Exposed separately so the service target-spec builder
1967
1967
  * can reuse the same logic without duplicating it.
1968
1968
  */
1969
1969
  buildEnv(opts) {
@@ -1989,8 +1989,8 @@ var init_vnc_bridge = __esm({
1989
1989
  },
1990
1990
  /**
1991
1991
  * Spawn vnc-bridge detached for a single device. Kept for callers
1992
- * that haven't migrated to the supervisor yet — new code should use
1993
- * `buildVncBridgeTargetSpec` + supervisor `upsertTarget` instead.
1992
+ * that haven't migrated to the service manager yet — new code should
1993
+ * use `buildVncBridgeTargetSpec` + `ServiceManager.install`.
1994
1994
  */
1995
1995
  async spawnForDevice(opts, progress) {
1996
1996
  const binary = await this.ensureInstalled(progress);
@@ -2255,7 +2255,7 @@ var init_detect = __esm({
2255
2255
  }
2256
2256
  });
2257
2257
 
2258
- // ../core/dist/supervisor-spec.js
2258
+ // ../core/dist/service-target-spec.js
2259
2259
  function buildOpenclawTargetSpec(ctx) {
2260
2260
  const isMjs = ctx.agentBinary.endsWith(".mjs") || ctx.agentBinary.endsWith(".js");
2261
2261
  const command = isMjs ? "node" : ctx.agentBinary;
@@ -2326,8 +2326,8 @@ function buildVncBridgeTargetSpec(binary, opts) {
2326
2326
  label: `vnc-bridge (${opts.deviceId})`
2327
2327
  };
2328
2328
  }
2329
- var init_supervisor_spec = __esm({
2330
- "../core/dist/supervisor-spec.js"() {
2329
+ var init_service_target_spec = __esm({
2330
+ "../core/dist/service-target-spec.js"() {
2331
2331
  "use strict";
2332
2332
  init_scrcpy_bridge();
2333
2333
  init_vnc_bridge();
@@ -3494,7 +3494,7 @@ var init_dist = __esm({
3494
3494
  init_registry();
3495
3495
  init_local_agent();
3496
3496
  init_detect();
3497
- init_supervisor_spec();
3497
+ init_service_target_spec();
3498
3498
  init_services();
3499
3499
  }
3500
3500
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeos-ai/cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "BeeOS CLI — run AI agents from your desktop",
6
6
  "bin": {
@@ -191,6 +191,15 @@ function Invoke-BeeosCli {
191
191
  } else {
192
192
  Write-BeeWarn "npx not found, installing globally..."
193
193
  & npm install -g $CliPackage
194
+ if ($LASTEXITCODE -ne 0) {
195
+ Write-BeeError "npm install -g $CliPackage failed."
196
+ Write-BeeError ""
197
+ Write-BeeError "Common fixes:"
198
+ Write-BeeError " - EEXIST on beeos from another package:"
199
+ Write-BeeError " npm uninstall -g beeos # then re-run installer"
200
+ Write-BeeError " - EACCES / permission error: run PowerShell as Administrator"
201
+ exit 1
202
+ }
194
203
  & beeos @args
195
204
  }
196
205
  }
@@ -304,7 +304,16 @@ run_cli() {
304
304
  exec npx --yes "$CLI_PACKAGE" "$subcmd" "$@"
305
305
  else
306
306
  warn "npx not found, installing globally..."
307
- npm install -g "$CLI_PACKAGE"
307
+ if ! npm install -g "$CLI_PACKAGE"; then
308
+ error "npm install -g ${CLI_PACKAGE} failed."
309
+ error ""
310
+ error "Common fixes:"
311
+ error " - EEXIST on /bin/beeos from another package:"
312
+ error " npm uninstall -g beeos # then re-run installer"
313
+ error " - EACCES permission error:"
314
+ error " use a node version manager (nvm / fnm) or sudo"
315
+ exit 1
316
+ fi
308
317
  exec beeos "$subcmd" "$@"
309
318
  fi
310
319
  }