@midscene/cli 1.2.1-beta-20260108154312.0 → 1.2.1-beta-20260109075435.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 +10 -4
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/index.js +10 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +6 -6
package/dist/es/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import node_path, { basename, dirname, extname, join, posix, relative as external_node_path_relative, resolve as external_node_path_resolve, win32 } from "node:path";
|
|
3
3
|
import { ScriptPlayer, interpolateEnvVars, parseYamlScript } from "@midscene/core/yaml";
|
|
4
4
|
import { getMidsceneRunSubDir } from "@midscene/shared/common";
|
|
5
|
+
import { buildChromeArgs, puppeteerAgentForTarget } from "@midscene/web/puppeteer-agent-launcher";
|
|
5
6
|
import lodash_merge from "lodash.merge";
|
|
6
7
|
import puppeteer from "puppeteer";
|
|
7
8
|
import { createServer } from "http-server";
|
|
@@ -12,7 +13,6 @@ import { processCacheConfig } from "@midscene/core/utils";
|
|
|
12
13
|
import { agentFromWebDriverAgent } from "@midscene/ios";
|
|
13
14
|
import { getDebug } from "@midscene/shared/logger";
|
|
14
15
|
import { AgentOverChromeBridge } from "@midscene/web/bridge-mode";
|
|
15
|
-
import { puppeteerAgentForTarget } from "@midscene/web/puppeteer-agent-launcher";
|
|
16
16
|
import { stripVTControlCharacters } from "node:util";
|
|
17
17
|
import node_process, { cwd as external_node_process_cwd } from "node:process";
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -3024,7 +3024,7 @@ var __webpack_modules__ = {
|
|
|
3024
3024
|
"./src/index.ts" (__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
3025
3025
|
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js");
|
|
3026
3026
|
var main_default = /*#__PURE__*/ __webpack_require__.n(main);
|
|
3027
|
-
var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-
|
|
3027
|
+
var package_namespaceObject = JSON.parse('{"rE":"1.2.1-beta-20260109075435.0"}');
|
|
3028
3028
|
class Node {
|
|
3029
3029
|
value;
|
|
3030
3030
|
next;
|
|
@@ -3751,8 +3751,14 @@ var __webpack_modules__ = {
|
|
|
3751
3751
|
}
|
|
3752
3752
|
const needsBrowser = fileContextList.some((ctx)=>Object.keys(ctx.executionConfig.web || ctx.executionConfig.target || {}).length > 0);
|
|
3753
3753
|
if (needsBrowser && this.config.shareBrowserContext) {
|
|
3754
|
+
const globalWebConfig = this.config.globalConfig?.web;
|
|
3755
|
+
const args = buildChromeArgs({
|
|
3756
|
+
chromeArgs: globalWebConfig?.chromeArgs
|
|
3757
|
+
});
|
|
3754
3758
|
browser = await puppeteer.launch({
|
|
3755
|
-
headless: !headed
|
|
3759
|
+
headless: !headed,
|
|
3760
|
+
args,
|
|
3761
|
+
acceptInsecureCerts: globalWebConfig?.acceptInsecureCerts
|
|
3756
3762
|
});
|
|
3757
3763
|
for (const context of fileContextList)context.options.browser = browser;
|
|
3758
3764
|
}
|
|
@@ -11882,7 +11888,7 @@ Usage:
|
|
|
11882
11888
|
type: 'boolean',
|
|
11883
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}`
|
|
11884
11890
|
}
|
|
11885
|
-
}).version('version', 'Show version number', "1.2.1-beta-
|
|
11891
|
+
}).version('version', 'Show version number', "1.2.1-beta-20260109075435.0").help().epilogue(`For complete list of configuration options, please visit:
|
|
11886
11892
|
• Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
|
|
11887
11893
|
• Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
|
|
11888
11894
|
• iOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-ios-part
|