@midscene/cli 1.13.4-beta-20260928083351.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/es/index.mjs +24 -21
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/index.js +24 -21
- package/dist/lib/index.js.map +1 -1
- package/package.json +10 -10
package/dist/es/index.mjs
CHANGED
|
@@ -3023,7 +3023,9 @@ var __webpack_modules__ = {
|
|
|
3023
3023
|
module.exports = (string, columns, options)=>String(string).normalize().replace(/\r\n/g, '\n').split('\n').map((line)=>exec(line, columns, options)).join('\n');
|
|
3024
3024
|
},
|
|
3025
3025
|
"./src/index.ts" (__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
3026
|
-
var package_namespaceObject =
|
|
3026
|
+
var package_namespaceObject = {
|
|
3027
|
+
rE: "1.14.0"
|
|
3028
|
+
};
|
|
3027
3029
|
var brace_expansion = __webpack_require__("../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js");
|
|
3028
3030
|
const MAX_PATTERN_LENGTH = 65536;
|
|
3029
3031
|
const assertValidPattern = (pattern)=>{
|
|
@@ -8592,7 +8594,7 @@ var __webpack_modules__ = {
|
|
|
8592
8594
|
directory: (0, external_path_.resolve)(esm_dirname, '../../../locales'),
|
|
8593
8595
|
updateFiles: false
|
|
8594
8596
|
});
|
|
8595
|
-
var build = __webpack_require__("../../node_modules/.pnpm/yargs@17.7.
|
|
8597
|
+
var build = __webpack_require__("../../node_modules/.pnpm/yargs@17.7.3/node_modules/yargs/build/index.cjs");
|
|
8596
8598
|
const { applyExtends: yargs_applyExtends, cjsPlatformShim, Parser: yargs_Parser, processArgv, Yargs } = build;
|
|
8597
8599
|
Yargs.applyExtends = (config, cwd, mergeExtends)=>yargs_applyExtends(config, cwd, mergeExtends, cjsPlatformShim);
|
|
8598
8600
|
Yargs.hideBin = processArgv.hideBin;
|
|
@@ -8694,7 +8696,7 @@ Usage:
|
|
|
8694
8696
|
type: 'boolean',
|
|
8695
8697
|
description: 'Whether to dismiss the HarmonyOS keyboard after text input'
|
|
8696
8698
|
}
|
|
8697
|
-
}).version('version', 'Show version number', "1.
|
|
8699
|
+
}).version('version', 'Show version number', "1.14.0").help().epilogue(`For complete list of configuration options, please visit:
|
|
8698
8700
|
• Web options: https://midscenejs.com/automate-with-scripts-in-yaml#the-web-part
|
|
8699
8701
|
• Android options: https://midscenejs.com/automate-with-scripts-in-yaml#the-android-part
|
|
8700
8702
|
• HarmonyOS options: https://midscenejs.com/automate-with-scripts-in-yaml#the-harmony-part
|
|
@@ -14214,7 +14216,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14214
14216
|
yargsParser.looksLikeNumber = looksLikeNumber;
|
|
14215
14217
|
module.exports = yargsParser;
|
|
14216
14218
|
},
|
|
14217
|
-
"../../node_modules/.pnpm/yargs@17.7.
|
|
14219
|
+
"../../node_modules/.pnpm/yargs@17.7.3/node_modules/yargs/build/index.cjs" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14218
14220
|
var t1 = __webpack_require__("assert");
|
|
14219
14221
|
class e1 extends Error {
|
|
14220
14222
|
constructor(t1){
|
|
@@ -14359,6 +14361,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14359
14361
|
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");
|
|
14360
14362
|
return "a" === i ? n.call(t1, s) : n ? n.value = s : e1.set(t1, s), s;
|
|
14361
14363
|
}
|
|
14364
|
+
"function" == typeof SuppressedError && SuppressedError;
|
|
14362
14365
|
class w {
|
|
14363
14366
|
constructor(t1){
|
|
14364
14367
|
this.globalMiddleware = [], this.frozens = [], this.yargs = t1;
|
|
@@ -14515,7 +14518,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14515
14518
|
applyBuilderUpdateUsageAndParse(t1, e1, s, i, n, r, o, a) {
|
|
14516
14519
|
const h = e1.builder;
|
|
14517
14520
|
let l = s;
|
|
14518
|
-
if (
|
|
14521
|
+
if (E(h)) {
|
|
14519
14522
|
s.getInternalMethods().getUsageInstance().freeze();
|
|
14520
14523
|
const c = h(s.getInternalMethods().reset(i), a);
|
|
14521
14524
|
if (f(c)) return c.then((i)=>{
|
|
@@ -14648,7 +14651,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14648
14651
|
t1.getInternalMethods().getUsageInstance().usage(e1, this.defaultCommand.description);
|
|
14649
14652
|
}
|
|
14650
14653
|
const e1 = this.defaultCommand.builder;
|
|
14651
|
-
if (
|
|
14654
|
+
if (E(e1)) return e1(t1, !0);
|
|
14652
14655
|
k(e1) || Object.keys(e1).forEach((s)=>{
|
|
14653
14656
|
t1.option(s, e1[s]);
|
|
14654
14657
|
});
|
|
@@ -14693,10 +14696,10 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14693
14696
|
function k(t1) {
|
|
14694
14697
|
return "object" == typeof t1 && !!t1.builder && "function" == typeof t1.handler;
|
|
14695
14698
|
}
|
|
14696
|
-
function
|
|
14699
|
+
function E(t1) {
|
|
14697
14700
|
return "function" == typeof t1;
|
|
14698
14701
|
}
|
|
14699
|
-
function
|
|
14702
|
+
function x(t1) {
|
|
14700
14703
|
"undefined" != typeof process && [
|
|
14701
14704
|
process.stdout,
|
|
14702
14705
|
process.stderr
|
|
@@ -14728,7 +14731,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14728
14731
|
n.fail = function(s, i) {
|
|
14729
14732
|
const c = t1.getInternalMethods().getLoggerInstance();
|
|
14730
14733
|
if (!r.length) {
|
|
14731
|
-
if (t1.getExitProcess() &&
|
|
14734
|
+
if (t1.getExitProcess() && x(!0), !l) {
|
|
14732
14735
|
l = !0, h && (t1.showHelp("error"), c.error()), (s || i) && c.error(s || i);
|
|
14733
14736
|
const e1 = o || a;
|
|
14734
14737
|
e1 && ((s || i) && c.error(""), c.error(e1));
|
|
@@ -14896,7 +14899,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14896
14899
|
].concat(e1[t1]), r.some((t1)=>-1 !== n.indexOf(t1)) || s[i].push(t1);
|
|
14897
14900
|
});
|
|
14898
14901
|
}(g, l.alias, h, _);
|
|
14899
|
-
const k = (t1)=>/^--/.test(I(t1)),
|
|
14902
|
+
const k = (t1)=>/^--/.test(I(t1)), E = Object.keys(h).filter((t1)=>h[t1].length > 0).map((t1)=>({
|
|
14900
14903
|
groupName: t1,
|
|
14901
14904
|
normalizedKeys: h[t1].filter(C).map((t1)=>{
|
|
14902
14905
|
if (M.includes(t1)) return t1;
|
|
@@ -14913,7 +14916,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14913
14916
|
switches: s
|
|
14914
14917
|
};
|
|
14915
14918
|
});
|
|
14916
|
-
if (
|
|
14919
|
+
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 })=>{
|
|
14917
14920
|
t1.forEach((t1)=>{
|
|
14918
14921
|
var s, i;
|
|
14919
14922
|
k(e1[t1]) && (e1[t1] = (s = e1[t1], i = 4, S(s) ? {
|
|
@@ -14924,7 +14927,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
14924
14927
|
indentation: i
|
|
14925
14928
|
}));
|
|
14926
14929
|
});
|
|
14927
|
-
}),
|
|
14930
|
+
}), E.forEach(({ groupName: e1, normalizedKeys: s, switches: o })=>{
|
|
14928
14931
|
b.div(e1), s.forEach((e1)=>{
|
|
14929
14932
|
const s = o[e1];
|
|
14930
14933
|
let h = p[e1] || "", c = null;
|
|
@@ -15068,7 +15071,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
15068
15071
|
const n = this.command.getCommandHandlers();
|
|
15069
15072
|
for(let e1 = 0, s = t1.length; e1 < s; ++e1)if (n[t1[e1]] && n[t1[e1]].builder) {
|
|
15070
15073
|
const s = n[t1[e1]].builder;
|
|
15071
|
-
if (
|
|
15074
|
+
if (E(s)) {
|
|
15072
15075
|
this.indexAfterLastReset = e1 + 1;
|
|
15073
15076
|
const t1 = this.yargs.getInternalMethods().reset();
|
|
15074
15077
|
return s(t1, !0), t1.argv;
|
|
@@ -15205,7 +15208,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
15205
15208
|
"_"
|
|
15206
15209
|
];
|
|
15207
15210
|
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;
|
|
15208
|
-
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"),
|
|
15211
|
+
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");
|
|
15209
15212
|
class te {
|
|
15210
15213
|
constructor(t1 = [], e1, s, i){
|
|
15211
15214
|
this.customScriptName = !1, this.parsed = !1, z.set(this, void 0), W.set(this, void 0), q.set(this, {
|
|
@@ -15734,7 +15737,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
15734
15737
|
t1,
|
|
15735
15738
|
e1,
|
|
15736
15739
|
s
|
|
15737
|
-
], 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[
|
|
15740
|
+
], 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;
|
|
15738
15741
|
else if (1 === arguments.length) {
|
|
15739
15742
|
if (!1 === t1) return this;
|
|
15740
15743
|
s = t1, t1 = i;
|
|
@@ -15810,10 +15813,10 @@ defineYamlBatchTest(test, testOptions);
|
|
|
15810
15813
|
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";
|
|
15811
15814
|
this.locale(t1.replace(/[.:].*/, ""));
|
|
15812
15815
|
}
|
|
15813
|
-
[
|
|
15816
|
+
[Et]() {
|
|
15814
15817
|
return this[At]().version || "unknown";
|
|
15815
15818
|
}
|
|
15816
|
-
[
|
|
15819
|
+
[xt](t1) {
|
|
15817
15820
|
const e1 = t1["--"] ? t1["--"] : t1._;
|
|
15818
15821
|
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));
|
|
15819
15822
|
return t1;
|
|
@@ -15966,7 +15969,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
15966
15969
|
if (s) return t1;
|
|
15967
15970
|
if (f(t1)) return t1;
|
|
15968
15971
|
e1 || (t1 = this[bt](t1));
|
|
15969
|
-
return (this[Mt]()["parse-positional-numbers"] || void 0 === this[Mt]()["parse-positional-numbers"]) && (t1 = this[
|
|
15972
|
+
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;
|
|
15970
15973
|
}
|
|
15971
15974
|
[Kt](t1 = {}) {
|
|
15972
15975
|
O(this, et, v(this, et, "f") || {}, "f");
|
|
@@ -16189,14 +16192,14 @@ defineYamlBatchTest(test, testOptions);
|
|
|
16189
16192
|
}
|
|
16190
16193
|
!v(this, z, "f").hasDefaultCommand() && v(this, lt, "f") && t1 && !y && v(this, yt, "f").recommendCommands(t1, h);
|
|
16191
16194
|
}
|
|
16192
|
-
v(this, F, "f") && c._.includes(v(this, F, "f")) && !m && (v(this, T, "f") &&
|
|
16195
|
+
v(this, F, "f") && c._.includes(v(this, F, "f")) && !m && (v(this, T, "f") && x(!0), this.showCompletionScript(), this.exit(0));
|
|
16193
16196
|
}
|
|
16194
16197
|
if (v(this, z, "f").hasDefaultCommand() && !y) {
|
|
16195
16198
|
const t1 = v(this, z, "f").runCommand(null, this, l, 0, r, p || g || r);
|
|
16196
16199
|
return this[Bt](t1, a, !!i, !1);
|
|
16197
16200
|
}
|
|
16198
16201
|
if (m) {
|
|
16199
|
-
v(this, T, "f") &&
|
|
16202
|
+
v(this, T, "f") && x(!0);
|
|
16200
16203
|
const s = (t1 = [].concat(t1)).slice(t1.indexOf(`--${v(this, U, "f").completionKey}`) + 1);
|
|
16201
16204
|
return v(this, U, "f").getCompletion(s, (t1, s)=>{
|
|
16202
16205
|
if (t1) throw new e1(t1.message);
|
|
@@ -16205,7 +16208,7 @@ defineYamlBatchTest(test, testOptions);
|
|
|
16205
16208
|
}), this.exit(0);
|
|
16206
16209
|
}), this[Bt](c, !a, !!i, !1);
|
|
16207
16210
|
}
|
|
16208
|
-
if (v(this, J, "f") || (p ? (v(this, T, "f") &&
|
|
16211
|
+
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) {
|
|
16209
16212
|
if (l.error) throw new e1(l.error.message);
|
|
16210
16213
|
if (!m) {
|
|
16211
16214
|
const t1 = this[Zt](u, {}, l.error);
|