@yoqa/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.
Files changed (2) hide show
  1. package/dist/main.js +10 -5
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -15698,6 +15698,7 @@ function installedBrowserId(browser) {
15698
15698
  function everydayBrowserId(browser) {
15699
15699
  return `web-${browser}-everyday`;
15700
15700
  }
15701
+ var REMOTE_DEBUGGING_SETTING_URL = "chrome://inspect/#remote-debugging";
15701
15702
  function formatDeviceState(device) {
15702
15703
  const parts = [device.state, device.verified === false ? "unverified" : null].filter(Boolean);
15703
15704
  return parts.length > 0 ? parts.join(" · ") : null;
@@ -16633,7 +16634,7 @@ function recommendScreenDefault(vision, tree) {
16633
16634
  // package.json
16634
16635
  var package_default = {
16635
16636
  name: "@yoqa/cli",
16636
- version: "1.0.6",
16637
+ version: "1.0.7",
16637
16638
  description: "Yoqa CLI — drive local mobile QA from the terminal or CI (talks to the Yoqa runner over HTTP)",
16638
16639
  license: "UNLICENSED",
16639
16640
  type: "module",
@@ -16670,7 +16671,7 @@ var package_default = {
16670
16671
  health: "bun run src/main.ts health"
16671
16672
  },
16672
16673
  dependencies: {
16673
- "@yoqa/runner": "1.0.6"
16674
+ "@yoqa/runner": "1.0.7"
16674
16675
  },
16675
16676
  devDependencies: {
16676
16677
  "@types/node": "^22.15.30",
@@ -17624,6 +17625,10 @@ program2.command("status").description("Show local runner, provider, and active
17624
17625
  }
17625
17626
  });
17626
17627
  var devices = program2.command("devices").description("List local devices, simulators, and emulators");
17628
+ var EVERYDAY_HINTS = {
17629
+ "remote debugging off": `Turn it on at ${REMOTE_DEBUGGING_SETTING_URL}, then connect`,
17630
+ "not running": `Open it, turn on remote debugging at ${REMOTE_DEBUGGING_SETTING_URL}, then connect`
17631
+ };
17627
17632
  function printDevicesTable(devicesList) {
17628
17633
  if (devicesList.length === 0) {
17629
17634
  console.log("No devices found.");
@@ -17638,9 +17643,9 @@ function printDevicesTable(devicesList) {
17638
17643
  if (device.unavailableReason) {
17639
17644
  console.log(` Not a target: ${device.unavailableReason}`);
17640
17645
  }
17641
- if (isEverydayDeviceId(device.id) && device.state === "remote debugging off") {
17642
- console.log(" Turn it on at chrome://inspect/#remote-debugging, then connect");
17643
- }
17646
+ const hint = isEverydayDeviceId(device.id) ? EVERYDAY_HINTS[device.state ?? ""] : undefined;
17647
+ if (hint)
17648
+ console.log(` ${hint}`);
17644
17649
  }
17645
17650
  }
17646
17651
  var platformDevices = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoqa/cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Yoqa CLI — drive local mobile QA from the terminal or CI (talks to the Yoqa runner over HTTP)",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "health": "bun run src/main.ts health"
38
38
  },
39
39
  "dependencies": {
40
- "@yoqa/runner": "1.0.6"
40
+ "@yoqa/runner": "1.0.7"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^22.15.30",