@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 +4 -22
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/index.js +4 -22
- package/dist/lib/index.js.map +1 -1
- package/package.json +6 -7
package/dist/lib/index.js
CHANGED
|
@@ -3015,7 +3015,7 @@ var __webpack_modules__ = {
|
|
|
3015
3015
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
3016
3016
|
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js");
|
|
3017
3017
|
var main_default = /*#__PURE__*/ __webpack_require__.n(main);
|
|
3018
|
-
var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-
|
|
3018
|
+
var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-20260113073450.0"}');
|
|
3019
3019
|
const yaml_namespaceObject = require("@midscene/core/yaml");
|
|
3020
3020
|
const common_namespaceObject = require("@midscene/shared/common");
|
|
3021
3021
|
const puppeteer_agent_launcher_namespaceObject = require("@midscene/web/puppeteer-agent-launcher");
|
|
@@ -3144,7 +3144,6 @@ var __webpack_modules__ = {
|
|
|
3144
3144
|
const external_node_assert_namespaceObject = require("node:assert");
|
|
3145
3145
|
var external_node_assert_default = /*#__PURE__*/ __webpack_require__.n(external_node_assert_namespaceObject);
|
|
3146
3146
|
const android_namespaceObject = require("@midscene/android");
|
|
3147
|
-
const computer_namespaceObject = require("@midscene/computer");
|
|
3148
3147
|
const agent_namespaceObject = require("@midscene/core/agent");
|
|
3149
3148
|
const utils_namespaceObject = require("@midscene/core/utils");
|
|
3150
3149
|
const ios_namespaceObject = require("@midscene/ios");
|
|
@@ -3185,7 +3184,6 @@ var __webpack_modules__ = {
|
|
|
3185
3184
|
void 0 !== webTarget,
|
|
3186
3185
|
void 0 !== clonedYamlScript.android,
|
|
3187
3186
|
void 0 !== clonedYamlScript.ios,
|
|
3188
|
-
void 0 !== clonedYamlScript.computer,
|
|
3189
3187
|
void 0 !== clonedYamlScript.interface
|
|
3190
3188
|
].filter(Boolean).length;
|
|
3191
3189
|
if (targetCount > 1) {
|
|
@@ -3193,10 +3191,9 @@ var __webpack_modules__ = {
|
|
|
3193
3191
|
void 0 !== webTarget ? 'web' : null,
|
|
3194
3192
|
void 0 !== clonedYamlScript.android ? 'android' : null,
|
|
3195
3193
|
void 0 !== clonedYamlScript.ios ? 'ios' : null,
|
|
3196
|
-
void 0 !== clonedYamlScript.computer ? 'computer' : null,
|
|
3197
3194
|
void 0 !== clonedYamlScript.interface ? 'interface' : null
|
|
3198
3195
|
].filter(Boolean);
|
|
3199
|
-
throw new Error(`Only one target type can be specified, but found multiple: ${specifiedTargets.join(', ')}. Please specify only one of: web, android, ios,
|
|
3196
|
+
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.`);
|
|
3200
3197
|
}
|
|
3201
3198
|
if (void 0 !== webTarget) {
|
|
3202
3199
|
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.");
|
|
@@ -3276,21 +3273,6 @@ var __webpack_modules__ = {
|
|
|
3276
3273
|
freeFn
|
|
3277
3274
|
};
|
|
3278
3275
|
}
|
|
3279
|
-
if (void 0 !== clonedYamlScript.computer) {
|
|
3280
|
-
const computerTarget = clonedYamlScript.computer;
|
|
3281
|
-
const agent = await (0, computer_namespaceObject.agentFromComputer)({
|
|
3282
|
-
...computerTarget,
|
|
3283
|
-
...buildAgentOptions(clonedYamlScript.agent, preference.testId, fileName)
|
|
3284
|
-
});
|
|
3285
|
-
freeFn.push({
|
|
3286
|
-
name: 'destroy_computer_agent',
|
|
3287
|
-
fn: ()=>agent.destroy()
|
|
3288
|
-
});
|
|
3289
|
-
return {
|
|
3290
|
-
agent,
|
|
3291
|
-
freeFn
|
|
3292
|
-
};
|
|
3293
|
-
}
|
|
3294
3276
|
if (void 0 !== clonedYamlScript.interface) {
|
|
3295
3277
|
const interfaceTarget = clonedYamlScript.interface;
|
|
3296
3278
|
const moduleSpecifier = interfaceTarget.module;
|
|
@@ -3317,7 +3299,7 @@ var __webpack_modules__ = {
|
|
|
3317
3299
|
freeFn
|
|
3318
3300
|
};
|
|
3319
3301
|
}
|
|
3320
|
-
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios",
|
|
3302
|
+
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", or "interface"');
|
|
3321
3303
|
}, void 0, file);
|
|
3322
3304
|
return player;
|
|
3323
3305
|
}
|
|
@@ -11921,7 +11903,7 @@ Usage:
|
|
|
11921
11903
|
type: 'boolean',
|
|
11922
11904
|
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}`
|
|
11923
11905
|
}
|
|
11924
|
-
}).version('version', 'Show version number', "1.2.1-beta-
|
|
11906
|
+
}).version('version', 'Show version number', "1.2.1-beta-20260113073450.0").help().epilogue(`For complete list of configuration options, please visit:
|
|
11925
11907
|
• Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
|
|
11926
11908
|
• Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
|
|
11927
11909
|
• iOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-ios-part
|