@midscene/cli 1.2.1-beta-20260112112154.0 → 1.2.1-beta-20260113073450.0

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/es/index.mjs CHANGED
@@ -8,7 +8,6 @@ import puppeteer from "puppeteer";
8
8
  import { createServer } from "http-server";
9
9
  import node_assert from "node:assert";
10
10
  import { agentFromAdbDevice } from "@midscene/android";
11
- import { agentFromComputer } from "@midscene/computer";
12
11
  import { createAgent } from "@midscene/core/agent";
13
12
  import { processCacheConfig } from "@midscene/core/utils";
14
13
  import { agentFromWebDriverAgent } from "@midscene/ios";
@@ -3025,7 +3024,7 @@ var __webpack_modules__ = {
3025
3024
  "./src/index.ts" (__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
3026
3025
  var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js");
3027
3026
  var main_default = /*#__PURE__*/ __webpack_require__.n(main);
3028
- var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-20260112112154.0"}');
3027
+ var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-20260113073450.0"}');
3029
3028
  class Node {
3030
3029
  value;
3031
3030
  next;
@@ -3178,7 +3177,6 @@ var __webpack_modules__ = {
3178
3177
  void 0 !== webTarget,
3179
3178
  void 0 !== clonedYamlScript.android,
3180
3179
  void 0 !== clonedYamlScript.ios,
3181
- void 0 !== clonedYamlScript.computer,
3182
3180
  void 0 !== clonedYamlScript.interface
3183
3181
  ].filter(Boolean).length;
3184
3182
  if (targetCount > 1) {
@@ -3186,10 +3184,9 @@ var __webpack_modules__ = {
3186
3184
  void 0 !== webTarget ? 'web' : null,
3187
3185
  void 0 !== clonedYamlScript.android ? 'android' : null,
3188
3186
  void 0 !== clonedYamlScript.ios ? 'ios' : null,
3189
- void 0 !== clonedYamlScript.computer ? 'computer' : null,
3190
3187
  void 0 !== clonedYamlScript.interface ? 'interface' : null
3191
3188
  ].filter(Boolean);
3192
- throw new Error(`Only one target type can be specified, but found multiple: ${specifiedTargets.join(', ')}. Please specify only one of: web, android, ios, computer, or interface.`);
3189
+ throw new Error(`Only one target type can be specified, but found multiple: ${specifiedTargets.join(', ')}. Please specify only one of: web, android, ios, or interface.`);
3193
3190
  }
3194
3191
  if (void 0 !== webTarget) {
3195
3192
  if (void 0 !== clonedYamlScript.target) console.warn("target is deprecated, please use web instead. See https://midscenejs.com/automate-with-scripts-in-yaml for more information. Sorry for the inconvenience.");
@@ -3269,21 +3266,6 @@ var __webpack_modules__ = {
3269
3266
  freeFn
3270
3267
  };
3271
3268
  }
3272
- if (void 0 !== clonedYamlScript.computer) {
3273
- const computerTarget = clonedYamlScript.computer;
3274
- const agent = await agentFromComputer({
3275
- ...computerTarget,
3276
- ...buildAgentOptions(clonedYamlScript.agent, preference.testId, fileName)
3277
- });
3278
- freeFn.push({
3279
- name: 'destroy_computer_agent',
3280
- fn: ()=>agent.destroy()
3281
- });
3282
- return {
3283
- agent,
3284
- freeFn
3285
- };
3286
- }
3287
3269
  if (void 0 !== clonedYamlScript.interface) {
3288
3270
  const interfaceTarget = clonedYamlScript.interface;
3289
3271
  const moduleSpecifier = interfaceTarget.module;
@@ -3310,7 +3292,7 @@ var __webpack_modules__ = {
3310
3292
  freeFn
3311
3293
  };
3312
3294
  }
3313
- throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", "computer", or "interface"');
3295
+ throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", or "interface"');
3314
3296
  }, void 0, file);
3315
3297
  return player;
3316
3298
  }
@@ -11906,7 +11888,7 @@ Usage:
11906
11888
  type: 'boolean',
11907
11889
  description: `Turn on logging to help debug why certain keys or values are not being set as you expect, default is ${config_factory_defaultConfig.dotenvDebug}`
11908
11890
  }
11909
- }).version('version', 'Show version number', "1.2.1-beta-20260112112154.0").help().epilogue(`For complete list of configuration options, please visit:
11891
+ }).version('version', 'Show version number', "1.2.1-beta-20260113073450.0").help().epilogue(`For complete list of configuration options, please visit:
11910
11892
  • Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
11911
11893
  • Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
11912
11894
  • iOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-ios-part