@midscene/cli 1.13.4-beta-20260928072823.0 → 1.14.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/lib/index.js CHANGED
@@ -4813,7 +4813,9 @@ defineYamlBatchTest(test, testOptions);
4813
4813
  "use strict";
4814
4814
  var core_ = __webpack_require__("@midscene/core");
4815
4815
  const cli_namespaceObject = require("@midscene/shared/cli");
4816
- var package_namespaceObject = JSON.parse('{"rE":"1.13.4-beta-20260928072823.0"}');
4816
+ var package_namespaceObject = {
4817
+ rE: "1.14.0"
4818
+ };
4817
4819
  var external_node_fs_ = __webpack_require__("node:fs");
4818
4820
  var external_node_fs_namespaceObject = /*#__PURE__*/ __webpack_require__.t(external_node_fs_, 2);
4819
4821
  var external_node_path_ = __webpack_require__("node:path");
@@ -10393,7 +10395,7 @@ defineYamlBatchTest(test, testOptions);
10393
10395
  directory: (0, external_path_.resolve)(esm_dirname, '../../../locales'),
10394
10396
  updateFiles: false
10395
10397
  });
10396
- var build = __webpack_require__("../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/index.cjs");
10398
+ var build = __webpack_require__("../../node_modules/.pnpm/yargs@17.7.3/node_modules/yargs/build/index.cjs");
10397
10399
  const { applyExtends: yargs_applyExtends, cjsPlatformShim, Parser: yargs_Parser, processArgv, Yargs } = build;
10398
10400
  Yargs.applyExtends = (config, cwd, mergeExtends)=>yargs_applyExtends(config, cwd, mergeExtends, cjsPlatformShim);
10399
10401
  Yargs.hideBin = processArgv.hideBin;
@@ -10495,7 +10497,7 @@ Usage:
10495
10497
  type: 'boolean',
10496
10498
  description: 'Whether to dismiss the HarmonyOS keyboard after text input'
10497
10499
  }
10498
- }).version('version', 'Show version number', "1.13.4-beta-20260928072823.0").help().epilogue(`For complete list of configuration options, please visit:
10500
+ }).version('version', 'Show version number', "1.14.0").help().epilogue(`For complete list of configuration options, please visit:
10499
10501
  • Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
10500
10502
  • Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
10501
10503
  • HarmonyOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-harmony-part
@@ -14297,7 +14299,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14297
14299
  yargsParser.looksLikeNumber = looksLikeNumber;
14298
14300
  module.exports = yargsParser;
14299
14301
  },
14300
- "../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/index.cjs" (module, __unused_rspack_exports, __webpack_require__) {
14302
+ "../../node_modules/.pnpm/yargs@17.7.3/node_modules/yargs/build/index.cjs" (module, __unused_rspack_exports, __webpack_require__) {
14301
14303
  "use strict";
14302
14304
  var t1 = __webpack_require__("assert");
14303
14305
  class e1 extends Error {
@@ -14443,6 +14445,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14443
14445
  if ("function" == typeof e1 ? t1 !== e1 || !n : !e1.has(t1)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14444
14446
  return "a" === i ? n.call(t1, s) : n ? n.value = s : e1.set(t1, s), s;
14445
14447
  }
14448
+ "function" == typeof SuppressedError && SuppressedError;
14446
14449
  class w {
14447
14450
  constructor(t1){
14448
14451
  this.globalMiddleware = [], this.frozens = [], this.yargs = t1;
@@ -14599,7 +14602,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14599
14602
  applyBuilderUpdateUsageAndParse(t1, e1, s, i, n, r, o, a) {
14600
14603
  const h = e1.builder;
14601
14604
  let l = s;
14602
- if (x(h)) {
14605
+ if (E(h)) {
14603
14606
  s.getInternalMethods().getUsageInstance().freeze();
14604
14607
  const c = h(s.getInternalMethods().reset(i), a);
14605
14608
  if (f(c)) return c.then((i)=>{
@@ -14732,7 +14735,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14732
14735
  t1.getInternalMethods().getUsageInstance().usage(e1, this.defaultCommand.description);
14733
14736
  }
14734
14737
  const e1 = this.defaultCommand.builder;
14735
- if (x(e1)) return e1(t1, !0);
14738
+ if (E(e1)) return e1(t1, !0);
14736
14739
  k(e1) || Object.keys(e1).forEach((s)=>{
14737
14740
  t1.option(s, e1[s]);
14738
14741
  });
@@ -14777,10 +14780,10 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14777
14780
  function k(t1) {
14778
14781
  return "object" == typeof t1 && !!t1.builder && "function" == typeof t1.handler;
14779
14782
  }
14780
- function x(t1) {
14783
+ function E(t1) {
14781
14784
  return "function" == typeof t1;
14782
14785
  }
14783
- function E(t1) {
14786
+ function x(t1) {
14784
14787
  "undefined" != typeof process && [
14785
14788
  process.stdout,
14786
14789
  process.stderr
@@ -14812,7 +14815,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14812
14815
  n.fail = function(s, i) {
14813
14816
  const c = t1.getInternalMethods().getLoggerInstance();
14814
14817
  if (!r.length) {
14815
- if (t1.getExitProcess() && E(!0), !l) {
14818
+ if (t1.getExitProcess() && x(!0), !l) {
14816
14819
  l = !0, h && (t1.showHelp("error"), c.error()), (s || i) && c.error(s || i);
14817
14820
  const e1 = o || a;
14818
14821
  e1 && ((s || i) && c.error(""), c.error(e1));
@@ -14980,7 +14983,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14980
14983
  ].concat(e1[t1]), r.some((t1)=>-1 !== n.indexOf(t1)) || s[i].push(t1);
14981
14984
  });
14982
14985
  }(g, l.alias, h, _);
14983
- const k = (t1)=>/^--/.test(I(t1)), x = Object.keys(h).filter((t1)=>h[t1].length > 0).map((t1)=>({
14986
+ const k = (t1)=>/^--/.test(I(t1)), E = Object.keys(h).filter((t1)=>h[t1].length > 0).map((t1)=>({
14984
14987
  groupName: t1,
14985
14988
  normalizedKeys: h[t1].filter(C).map((t1)=>{
14986
14989
  if (M.includes(t1)) return t1;
@@ -14997,7 +15000,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
14997
15000
  switches: s
14998
15001
  };
14999
15002
  });
15000
- if (x.filter(({ groupName: t1 })=>t1 !== n.getPositionalGroupName()).some(({ normalizedKeys: t1, switches: e1 })=>!t1.every((t1)=>k(e1[t1]))) && x.filter(({ groupName: t1 })=>t1 !== n.getPositionalGroupName()).forEach(({ normalizedKeys: t1, switches: e1 })=>{
15003
+ if (E.filter(({ groupName: t1 })=>t1 !== n.getPositionalGroupName()).some(({ normalizedKeys: t1, switches: e1 })=>!t1.every((t1)=>k(e1[t1]))) && E.filter(({ groupName: t1 })=>t1 !== n.getPositionalGroupName()).forEach(({ normalizedKeys: t1, switches: e1 })=>{
15001
15004
  t1.forEach((t1)=>{
15002
15005
  var s, i;
15003
15006
  k(e1[t1]) && (e1[t1] = (s = e1[t1], i = 4, S(s) ? {
@@ -15008,7 +15011,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
15008
15011
  indentation: i
15009
15012
  }));
15010
15013
  });
15011
- }), x.forEach(({ groupName: e1, normalizedKeys: s, switches: o })=>{
15014
+ }), E.forEach(({ groupName: e1, normalizedKeys: s, switches: o })=>{
15012
15015
  b.div(e1), s.forEach((e1)=>{
15013
15016
  const s = o[e1];
15014
15017
  let h = p[e1] || "", c = null;
@@ -15152,7 +15155,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
15152
15155
  const n = this.command.getCommandHandlers();
15153
15156
  for(let e1 = 0, s = t1.length; e1 < s; ++e1)if (n[t1[e1]] && n[t1[e1]].builder) {
15154
15157
  const s = n[t1[e1]].builder;
15155
- if (x(s)) {
15158
+ if (E(s)) {
15156
15159
  this.indexAfterLastReset = e1 + 1;
15157
15160
  const t1 = this.yargs.getInternalMethods().reset();
15158
15161
  return s(t1, !0), t1.argv;
@@ -15289,7 +15292,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
15289
15292
  "_"
15290
15293
  ];
15291
15294
  var z, W, q, U, F, L, V, G, R, T, B, Y, K, J, Z, X, Q, tt, et, st, it, nt, rt, ot, at, ht, lt, ct, ft, dt, ut, pt, gt, mt, yt;
15292
- const bt = Symbol("copyDoubleDash"), vt = Symbol("copyDoubleDash"), Ot = Symbol("deleteFromParserHintObject"), wt = Symbol("emitWarning"), Ct = Symbol("freeze"), jt = Symbol("getDollarZero"), Mt = Symbol("getParserConfiguration"), _t = Symbol("getUsageConfiguration"), kt = Symbol("guessLocale"), xt = Symbol("guessVersion"), Et = Symbol("parsePositionalNumbers"), At = Symbol("pkgUp"), Pt = Symbol("populateParserHintArray"), St = Symbol("populateParserHintSingleValueDictionary"), $t = Symbol("populateParserHintArrayDictionary"), It = Symbol("populateParserHintDictionary"), Dt = Symbol("sanitizeKey"), Nt = Symbol("setKey"), Ht = Symbol("unfreeze"), zt = Symbol("validateAsync"), Wt = Symbol("getCommandInstance"), qt = Symbol("getContext"), Ut = Symbol("getHasOutput"), Ft = Symbol("getLoggerInstance"), Lt = Symbol("getParseContext"), Vt = Symbol("getUsageInstance"), Gt = Symbol("getValidationInstance"), Rt = Symbol("hasParseCallback"), Tt = Symbol("isGlobalContext"), Bt = Symbol("postProcess"), Yt = Symbol("rebase"), Kt = Symbol("reset"), Jt = Symbol("runYargsParserAndExecuteCommands"), Zt = Symbol("runValidation"), Xt = Symbol("setHasOutput"), Qt = Symbol("kTrackManuallySetKeys");
15295
+ const bt = Symbol("copyDoubleDash"), vt = Symbol("copyDoubleDash"), Ot = Symbol("deleteFromParserHintObject"), wt = Symbol("emitWarning"), Ct = Symbol("freeze"), jt = Symbol("getDollarZero"), Mt = Symbol("getParserConfiguration"), _t = Symbol("getUsageConfiguration"), kt = Symbol("guessLocale"), Et = Symbol("guessVersion"), xt = Symbol("parsePositionalNumbers"), At = Symbol("pkgUp"), Pt = Symbol("populateParserHintArray"), St = Symbol("populateParserHintSingleValueDictionary"), $t = Symbol("populateParserHintArrayDictionary"), It = Symbol("populateParserHintDictionary"), Dt = Symbol("sanitizeKey"), Nt = Symbol("setKey"), Ht = Symbol("unfreeze"), zt = Symbol("validateAsync"), Wt = Symbol("getCommandInstance"), qt = Symbol("getContext"), Ut = Symbol("getHasOutput"), Ft = Symbol("getLoggerInstance"), Lt = Symbol("getParseContext"), Vt = Symbol("getUsageInstance"), Gt = Symbol("getValidationInstance"), Rt = Symbol("hasParseCallback"), Tt = Symbol("isGlobalContext"), Bt = Symbol("postProcess"), Yt = Symbol("rebase"), Kt = Symbol("reset"), Jt = Symbol("runYargsParserAndExecuteCommands"), Zt = Symbol("runValidation"), Xt = Symbol("setHasOutput"), Qt = Symbol("kTrackManuallySetKeys");
15293
15296
  class te {
15294
15297
  constructor(t1 = [], e1, s, i){
15295
15298
  this.customScriptName = !1, this.parsed = !1, z.set(this, void 0), W.set(this, void 0), q.set(this, {
@@ -15818,7 +15821,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
15818
15821
  t1,
15819
15822
  e1,
15820
15823
  s
15821
- ], arguments.length), v(this, mt, "f") && (this[Ot](v(this, mt, "f")), v(this, pt, "f").version(void 0), O(this, mt, null, "f")), 0 === arguments.length) s = this[xt](), t1 = i;
15824
+ ], arguments.length), v(this, mt, "f") && (this[Ot](v(this, mt, "f")), v(this, pt, "f").version(void 0), O(this, mt, null, "f")), 0 === arguments.length) s = this[Et](), t1 = i;
15822
15825
  else if (1 === arguments.length) {
15823
15826
  if (!1 === t1) return this;
15824
15827
  s = t1, t1 = i;
@@ -15894,10 +15897,10 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
15894
15897
  const t1 = v(this, ct, "f").getEnv("LC_ALL") || v(this, ct, "f").getEnv("LC_MESSAGES") || v(this, ct, "f").getEnv("LANG") || v(this, ct, "f").getEnv("LANGUAGE") || "en_US";
15895
15898
  this.locale(t1.replace(/[.:].*/, ""));
15896
15899
  }
15897
- [xt]() {
15900
+ [Et]() {
15898
15901
  return this[At]().version || "unknown";
15899
15902
  }
15900
- [Et](t1) {
15903
+ [xt](t1) {
15901
15904
  const e1 = t1["--"] ? t1["--"] : t1._;
15902
15905
  for(let t1, s = 0; void 0 !== (t1 = e1[s]); s++)v(this, ct, "f").Parser.looksLikeNumber(t1) && Number.isSafeInteger(Math.floor(parseFloat(`${t1}`))) && (e1[s] = Number(t1));
15903
15906
  return t1;
@@ -16050,7 +16053,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
16050
16053
  if (s) return t1;
16051
16054
  if (f(t1)) return t1;
16052
16055
  e1 || (t1 = this[bt](t1));
16053
- return (this[Mt]()["parse-positional-numbers"] || void 0 === this[Mt]()["parse-positional-numbers"]) && (t1 = this[Et](t1)), i && (t1 = C(t1, this, v(this, Y, "f").getMiddleware(), !1)), t1;
16056
+ return (this[Mt]()["parse-positional-numbers"] || void 0 === this[Mt]()["parse-positional-numbers"]) && (t1 = this[xt](t1)), i && (t1 = C(t1, this, v(this, Y, "f").getMiddleware(), !1)), t1;
16054
16057
  }
16055
16058
  [Kt](t1 = {}) {
16056
16059
  O(this, et, v(this, et, "f") || {}, "f");
@@ -16273,14 +16276,14 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
16273
16276
  }
16274
16277
  !v(this, z, "f").hasDefaultCommand() && v(this, lt, "f") && t1 && !y && v(this, yt, "f").recommendCommands(t1, h);
16275
16278
  }
16276
- v(this, F, "f") && c._.includes(v(this, F, "f")) && !m && (v(this, T, "f") && E(!0), this.showCompletionScript(), this.exit(0));
16279
+ v(this, F, "f") && c._.includes(v(this, F, "f")) && !m && (v(this, T, "f") && x(!0), this.showCompletionScript(), this.exit(0));
16277
16280
  }
16278
16281
  if (v(this, z, "f").hasDefaultCommand() && !y) {
16279
16282
  const t1 = v(this, z, "f").runCommand(null, this, l, 0, r, p || g || r);
16280
16283
  return this[Bt](t1, a, !!i, !1);
16281
16284
  }
16282
16285
  if (m) {
16283
- v(this, T, "f") && E(!0);
16286
+ v(this, T, "f") && x(!0);
16284
16287
  const s = (t1 = [].concat(t1)).slice(t1.indexOf(`--${v(this, U, "f").completionKey}`) + 1);
16285
16288
  return v(this, U, "f").getCompletion(s, (t1, s)=>{
16286
16289
  if (t1) throw new e1(t1.message);
@@ -16289,7 +16292,7 @@ Native cases/steps Test projects use the midscene-test command.`).wrap(yargs().t
16289
16292
  }), this.exit(0);
16290
16293
  }), this[Bt](c, !a, !!i, !1);
16291
16294
  }
16292
- if (v(this, J, "f") || (p ? (v(this, T, "f") && E(!0), o = !0, this.showHelp("log"), this.exit(0)) : g && (v(this, T, "f") && E(!0), o = !0, v(this, pt, "f").showVersion("log"), this.exit(0))), !o && v(this, et, "f").skipValidation.length > 0 && (o = Object.keys(c).some((t1)=>v(this, et, "f").skipValidation.indexOf(t1) >= 0 && !0 === c[t1])), !o) {
16295
+ if (v(this, J, "f") || (p ? (v(this, T, "f") && x(!0), o = !0, this.showHelp("log"), this.exit(0)) : g && (v(this, T, "f") && x(!0), o = !0, v(this, pt, "f").showVersion("log"), this.exit(0))), !o && v(this, et, "f").skipValidation.length > 0 && (o = Object.keys(c).some((t1)=>v(this, et, "f").skipValidation.indexOf(t1) >= 0 && !0 === c[t1])), !o) {
16293
16296
  if (l.error) throw new e1(l.error.message);
16294
16297
  if (!m) {
16295
16298
  const t1 = this[Zt](u, {}, l.error);