@uipath/vertical-solutions-tool 0.1.9 → 0.1.10
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/tool.js +197 -796
- package/package.json +3 -3
package/dist/tool.js
CHANGED
|
@@ -45,7 +45,7 @@ var __export = (target, all) => {
|
|
|
45
45
|
};
|
|
46
46
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/cli-width/index.js
|
|
48
|
+
// ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/core/node_modules/cli-width/index.js
|
|
49
49
|
var require_cli_width = __commonJS((exports, module) => {
|
|
50
50
|
module.exports = cliWidth;
|
|
51
51
|
function normalizeOpts(options) {
|
|
@@ -325,9 +325,49 @@ var require_lib2 = __commonJS((exports, module) => {
|
|
|
325
325
|
module.exports = MuteStream2;
|
|
326
326
|
});
|
|
327
327
|
|
|
328
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/cli-width/index.js
|
|
329
|
+
var require_cli_width2 = __commonJS((exports, module) => {
|
|
330
|
+
module.exports = cliWidth2;
|
|
331
|
+
function normalizeOpts(options) {
|
|
332
|
+
const defaultOpts = {
|
|
333
|
+
defaultWidth: 0,
|
|
334
|
+
output: process.stdout,
|
|
335
|
+
tty: __require("tty")
|
|
336
|
+
};
|
|
337
|
+
if (!options) {
|
|
338
|
+
return defaultOpts;
|
|
339
|
+
}
|
|
340
|
+
Object.keys(defaultOpts).forEach(function(key) {
|
|
341
|
+
if (!options[key]) {
|
|
342
|
+
options[key] = defaultOpts[key];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
return options;
|
|
346
|
+
}
|
|
347
|
+
function cliWidth2(options) {
|
|
348
|
+
const opts = normalizeOpts(options);
|
|
349
|
+
if (opts.output.getWindowSize) {
|
|
350
|
+
return opts.output.getWindowSize()[0] || opts.defaultWidth;
|
|
351
|
+
}
|
|
352
|
+
if (opts.tty.getWindowSize) {
|
|
353
|
+
return opts.tty.getWindowSize()[1] || opts.defaultWidth;
|
|
354
|
+
}
|
|
355
|
+
if (opts.output.columns) {
|
|
356
|
+
return opts.output.columns;
|
|
357
|
+
}
|
|
358
|
+
if (process.env.CLI_WIDTH) {
|
|
359
|
+
const width = parseInt(process.env.CLI_WIDTH, 10);
|
|
360
|
+
if (!isNaN(width) && width !== 0) {
|
|
361
|
+
return width;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return opts.defaultWidth;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
328
368
|
// ../../node_modules/@ts-morph/common/dist/typescript.js
|
|
329
369
|
var require_typescript = __commonJS((exports, module) => {
|
|
330
|
-
var __dirname = "/home/runner/work/
|
|
370
|
+
var __dirname = "/home/runner/work/cli/cli/node_modules/@ts-morph/common/dist", __filename = "/home/runner/work/cli/cli/node_modules/@ts-morph/common/dist/typescript.js";
|
|
331
371
|
/*! *****************************************************************************
|
|
332
372
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
333
373
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -30672,17 +30712,17 @@ ${lanes.join(`
|
|
|
30672
30712
|
}
|
|
30673
30713
|
})(BinaryExpressionState || (BinaryExpressionState = {}));
|
|
30674
30714
|
var BinaryExpressionStateMachine = class {
|
|
30675
|
-
constructor(onEnter, onLeft, onOperator, onRight,
|
|
30715
|
+
constructor(onEnter, onLeft, onOperator, onRight, onExit2, foldState) {
|
|
30676
30716
|
this.onEnter = onEnter;
|
|
30677
30717
|
this.onLeft = onLeft;
|
|
30678
30718
|
this.onOperator = onOperator;
|
|
30679
30719
|
this.onRight = onRight;
|
|
30680
|
-
this.onExit =
|
|
30720
|
+
this.onExit = onExit2;
|
|
30681
30721
|
this.foldState = foldState;
|
|
30682
30722
|
}
|
|
30683
30723
|
};
|
|
30684
|
-
function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
30685
|
-
const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight,
|
|
30724
|
+
function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, foldState) {
|
|
30725
|
+
const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit2, foldState);
|
|
30686
30726
|
return trampoline;
|
|
30687
30727
|
function trampoline(node, outerState) {
|
|
30688
30728
|
const resultHolder = { value: undefined };
|
|
@@ -44459,7 +44499,7 @@ ${lanes.join(`
|
|
|
44459
44499
|
bindAssignmentTargetFlow(node.left);
|
|
44460
44500
|
}
|
|
44461
44501
|
function createBindBinaryExpressionFlow() {
|
|
44462
|
-
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
44502
|
+
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, undefined);
|
|
44463
44503
|
function onEnter(node, state) {
|
|
44464
44504
|
if (state) {
|
|
44465
44505
|
state.stackIndex++;
|
|
@@ -44519,7 +44559,7 @@ ${lanes.join(`
|
|
|
44519
44559
|
return maybeBound;
|
|
44520
44560
|
}
|
|
44521
44561
|
}
|
|
44522
|
-
function
|
|
44562
|
+
function onExit2(node, state) {
|
|
44523
44563
|
if (!state.skip) {
|
|
44524
44564
|
const operator = node.operatorToken.kind;
|
|
44525
44565
|
if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) {
|
|
@@ -75087,7 +75127,7 @@ ${lanes.join(`
|
|
|
75087
75127
|
return (target.flags & 98304) !== 0 || isTypeComparableTo(source, target);
|
|
75088
75128
|
}
|
|
75089
75129
|
function createCheckBinaryExpression() {
|
|
75090
|
-
const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
75130
|
+
const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, foldState);
|
|
75091
75131
|
return (node, checkMode) => {
|
|
75092
75132
|
const result = trampoline(node, checkMode);
|
|
75093
75133
|
Debug.assertIsDefined(result);
|
|
@@ -75152,7 +75192,7 @@ ${lanes.join(`
|
|
|
75152
75192
|
return maybeCheckExpression(state, right);
|
|
75153
75193
|
}
|
|
75154
75194
|
}
|
|
75155
|
-
function
|
|
75195
|
+
function onExit2(node, state) {
|
|
75156
75196
|
let result;
|
|
75157
75197
|
if (state.skip) {
|
|
75158
75198
|
result = getLastResult(state);
|
|
@@ -104078,7 +104118,7 @@ ${lanes.join(`
|
|
|
104078
104118
|
writeTokenText(node.operator, writeOperator);
|
|
104079
104119
|
}
|
|
104080
104120
|
function createEmitBinaryExpression() {
|
|
104081
|
-
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight,
|
|
104121
|
+
return createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit2, undefined);
|
|
104082
104122
|
function onEnter(node, state) {
|
|
104083
104123
|
if (state) {
|
|
104084
104124
|
state.stackIndex++;
|
|
@@ -104123,7 +104163,7 @@ ${lanes.join(`
|
|
|
104123
104163
|
function onRight(next, _workArea, parent2) {
|
|
104124
104164
|
return maybeEmitExpression(next, parent2, "right");
|
|
104125
104165
|
}
|
|
104126
|
-
function
|
|
104166
|
+
function onExit2(node, state) {
|
|
104127
104167
|
const linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken);
|
|
104128
104168
|
const linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right);
|
|
104129
104169
|
decreaseIndentIf(linesBeforeOperator, linesAfterOperator);
|
|
@@ -169111,7 +169151,7 @@ var require_commonjs2 = __commonJS((exports) => {
|
|
|
169111
169151
|
var openPattern = /\\{/g;
|
|
169112
169152
|
var closePattern = /\\}/g;
|
|
169113
169153
|
var commaPattern = /\\,/g;
|
|
169114
|
-
var periodPattern =
|
|
169154
|
+
var periodPattern = /\\./g;
|
|
169115
169155
|
exports.EXPANSION_MAX = 1e5;
|
|
169116
169156
|
function numeric(str) {
|
|
169117
169157
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
@@ -169205,7 +169245,7 @@ var require_commonjs2 = __commonJS((exports) => {
|
|
|
169205
169245
|
const x = numeric(n[0]);
|
|
169206
169246
|
const y = numeric(n[1]);
|
|
169207
169247
|
const width = Math.max(n[0].length, n[1].length);
|
|
169208
|
-
let incr = n.length === 3 && n[2] !== undefined ? Math.
|
|
169248
|
+
let incr = n.length === 3 && n[2] !== undefined ? Math.abs(numeric(n[2])) : 1;
|
|
169209
169249
|
let test = lte;
|
|
169210
169250
|
const reverse = y < x;
|
|
169211
169251
|
if (reverse) {
|
|
@@ -169256,7 +169296,7 @@ var require_commonjs2 = __commonJS((exports) => {
|
|
|
169256
169296
|
}
|
|
169257
169297
|
});
|
|
169258
169298
|
|
|
169259
|
-
// ../../node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
169299
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
169260
169300
|
var require_assert_valid_pattern = __commonJS((exports) => {
|
|
169261
169301
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169262
169302
|
exports.assertValidPattern = undefined;
|
|
@@ -169272,7 +169312,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
|
|
|
169272
169312
|
exports.assertValidPattern = assertValidPattern;
|
|
169273
169313
|
});
|
|
169274
169314
|
|
|
169275
|
-
// ../../node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
169315
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
169276
169316
|
var require_brace_expressions = __commonJS((exports) => {
|
|
169277
169317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169278
169318
|
exports.parseClass = undefined;
|
|
@@ -169387,7 +169427,7 @@ var require_brace_expressions = __commonJS((exports) => {
|
|
|
169387
169427
|
exports.parseClass = parseClass;
|
|
169388
169428
|
});
|
|
169389
169429
|
|
|
169390
|
-
// ../../node_modules/minimatch/dist/commonjs/unescape.js
|
|
169430
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/unescape.js
|
|
169391
169431
|
var require_unescape = __commonJS((exports) => {
|
|
169392
169432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169393
169433
|
exports.unescape = undefined;
|
|
@@ -169400,7 +169440,7 @@ var require_unescape = __commonJS((exports) => {
|
|
|
169400
169440
|
exports.unescape = unescape;
|
|
169401
169441
|
});
|
|
169402
169442
|
|
|
169403
|
-
// ../../node_modules/minimatch/dist/commonjs/ast.js
|
|
169443
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/ast.js
|
|
169404
169444
|
var require_ast = __commonJS((exports) => {
|
|
169405
169445
|
var _a;
|
|
169406
169446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -169975,7 +170015,7 @@ var require_ast = __commonJS((exports) => {
|
|
|
169975
170015
|
_a = AST;
|
|
169976
170016
|
});
|
|
169977
170017
|
|
|
169978
|
-
// ../../node_modules/minimatch/dist/commonjs/escape.js
|
|
170018
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/escape.js
|
|
169979
170019
|
var require_escape = __commonJS((exports) => {
|
|
169980
170020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169981
170021
|
exports.escape = undefined;
|
|
@@ -169988,7 +170028,7 @@ var require_escape = __commonJS((exports) => {
|
|
|
169988
170028
|
exports.escape = escape;
|
|
169989
170029
|
});
|
|
169990
170030
|
|
|
169991
|
-
// ../../node_modules/minimatch/dist/commonjs/index.js
|
|
170031
|
+
// ../../node_modules/@ts-morph/common/node_modules/minimatch/dist/commonjs/index.js
|
|
169992
170032
|
var require_commonjs3 = __commonJS((exports) => {
|
|
169993
170033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169994
170034
|
exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
|
|
@@ -170488,11 +170528,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170488
170528
|
#matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
170489
170529
|
const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
|
|
170490
170530
|
const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
|
|
170491
|
-
const [head, body, tail] =
|
|
170492
|
-
pattern.slice(patternIndex, firstgs),
|
|
170493
|
-
pattern.slice(firstgs + 1),
|
|
170494
|
-
[]
|
|
170495
|
-
] : [
|
|
170531
|
+
const [head, body, tail] = [
|
|
170496
170532
|
pattern.slice(patternIndex, firstgs),
|
|
170497
170533
|
pattern.slice(firstgs + 1, lastgs),
|
|
170498
170534
|
pattern.slice(lastgs + 1)
|
|
@@ -170532,7 +170568,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170532
170568
|
return false;
|
|
170533
170569
|
}
|
|
170534
170570
|
}
|
|
170535
|
-
return
|
|
170571
|
+
return sawSome;
|
|
170536
170572
|
}
|
|
170537
170573
|
const bodySegments = [[[], 0]];
|
|
170538
170574
|
let currentBody = bodySegments[0];
|
|
@@ -170582,7 +170618,7 @@ var require_commonjs3 = __commonJS((exports) => {
|
|
|
170582
170618
|
}
|
|
170583
170619
|
fileIndex++;
|
|
170584
170620
|
}
|
|
170585
|
-
return
|
|
170621
|
+
return null;
|
|
170586
170622
|
}
|
|
170587
170623
|
#matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
170588
170624
|
let fi;
|
|
@@ -171208,7 +171244,6 @@ var require_path_browserify = __commonJS((exports, module) => {
|
|
|
171208
171244
|
var require_constants = __commonJS((exports, module) => {
|
|
171209
171245
|
var WIN_SLASH = "\\\\/";
|
|
171210
171246
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
171211
|
-
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
171212
171247
|
var DOT_LITERAL = "\\.";
|
|
171213
171248
|
var PLUS_LITERAL = "\\+";
|
|
171214
171249
|
var QMARK_LITERAL = "\\?";
|
|
@@ -171259,7 +171294,6 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
171259
171294
|
SEP: "\\"
|
|
171260
171295
|
};
|
|
171261
171296
|
var POSIX_REGEX_SOURCE = {
|
|
171262
|
-
__proto__: null,
|
|
171263
171297
|
alnum: "a-zA-Z0-9",
|
|
171264
171298
|
alpha: "a-zA-Z",
|
|
171265
171299
|
ascii: "\\x00-\\x7F",
|
|
@@ -171276,7 +171310,6 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
171276
171310
|
xdigit: "A-Fa-f0-9"
|
|
171277
171311
|
};
|
|
171278
171312
|
module.exports = {
|
|
171279
|
-
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
171280
171313
|
MAX_LENGTH: 1024 * 64,
|
|
171281
171314
|
POSIX_REGEX_SOURCE,
|
|
171282
171315
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
@@ -171754,213 +171787,6 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
171754
171787
|
var syntaxError = (type, char) => {
|
|
171755
171788
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
171756
171789
|
};
|
|
171757
|
-
var splitTopLevel = (input) => {
|
|
171758
|
-
const parts = [];
|
|
171759
|
-
let bracket = 0;
|
|
171760
|
-
let paren = 0;
|
|
171761
|
-
let quote = 0;
|
|
171762
|
-
let value = "";
|
|
171763
|
-
let escaped = false;
|
|
171764
|
-
for (const ch of input) {
|
|
171765
|
-
if (escaped === true) {
|
|
171766
|
-
value += ch;
|
|
171767
|
-
escaped = false;
|
|
171768
|
-
continue;
|
|
171769
|
-
}
|
|
171770
|
-
if (ch === "\\") {
|
|
171771
|
-
value += ch;
|
|
171772
|
-
escaped = true;
|
|
171773
|
-
continue;
|
|
171774
|
-
}
|
|
171775
|
-
if (ch === '"') {
|
|
171776
|
-
quote = quote === 1 ? 0 : 1;
|
|
171777
|
-
value += ch;
|
|
171778
|
-
continue;
|
|
171779
|
-
}
|
|
171780
|
-
if (quote === 0) {
|
|
171781
|
-
if (ch === "[") {
|
|
171782
|
-
bracket++;
|
|
171783
|
-
} else if (ch === "]" && bracket > 0) {
|
|
171784
|
-
bracket--;
|
|
171785
|
-
} else if (bracket === 0) {
|
|
171786
|
-
if (ch === "(") {
|
|
171787
|
-
paren++;
|
|
171788
|
-
} else if (ch === ")" && paren > 0) {
|
|
171789
|
-
paren--;
|
|
171790
|
-
} else if (ch === "|" && paren === 0) {
|
|
171791
|
-
parts.push(value);
|
|
171792
|
-
value = "";
|
|
171793
|
-
continue;
|
|
171794
|
-
}
|
|
171795
|
-
}
|
|
171796
|
-
}
|
|
171797
|
-
value += ch;
|
|
171798
|
-
}
|
|
171799
|
-
parts.push(value);
|
|
171800
|
-
return parts;
|
|
171801
|
-
};
|
|
171802
|
-
var isPlainBranch = (branch) => {
|
|
171803
|
-
let escaped = false;
|
|
171804
|
-
for (const ch of branch) {
|
|
171805
|
-
if (escaped === true) {
|
|
171806
|
-
escaped = false;
|
|
171807
|
-
continue;
|
|
171808
|
-
}
|
|
171809
|
-
if (ch === "\\") {
|
|
171810
|
-
escaped = true;
|
|
171811
|
-
continue;
|
|
171812
|
-
}
|
|
171813
|
-
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
171814
|
-
return false;
|
|
171815
|
-
}
|
|
171816
|
-
}
|
|
171817
|
-
return true;
|
|
171818
|
-
};
|
|
171819
|
-
var normalizeSimpleBranch = (branch) => {
|
|
171820
|
-
let value = branch.trim();
|
|
171821
|
-
let changed = true;
|
|
171822
|
-
while (changed === true) {
|
|
171823
|
-
changed = false;
|
|
171824
|
-
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
171825
|
-
value = value.slice(2, -1);
|
|
171826
|
-
changed = true;
|
|
171827
|
-
}
|
|
171828
|
-
}
|
|
171829
|
-
if (!isPlainBranch(value)) {
|
|
171830
|
-
return;
|
|
171831
|
-
}
|
|
171832
|
-
return value.replace(/\\(.)/g, "$1");
|
|
171833
|
-
};
|
|
171834
|
-
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
171835
|
-
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
171836
|
-
for (let i = 0;i < values.length; i++) {
|
|
171837
|
-
for (let j = i + 1;j < values.length; j++) {
|
|
171838
|
-
const a = values[i];
|
|
171839
|
-
const b = values[j];
|
|
171840
|
-
const char = a[0];
|
|
171841
|
-
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
171842
|
-
continue;
|
|
171843
|
-
}
|
|
171844
|
-
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
171845
|
-
return true;
|
|
171846
|
-
}
|
|
171847
|
-
}
|
|
171848
|
-
}
|
|
171849
|
-
return false;
|
|
171850
|
-
};
|
|
171851
|
-
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
171852
|
-
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
171853
|
-
return;
|
|
171854
|
-
}
|
|
171855
|
-
let bracket = 0;
|
|
171856
|
-
let paren = 0;
|
|
171857
|
-
let quote = 0;
|
|
171858
|
-
let escaped = false;
|
|
171859
|
-
for (let i = 1;i < pattern.length; i++) {
|
|
171860
|
-
const ch = pattern[i];
|
|
171861
|
-
if (escaped === true) {
|
|
171862
|
-
escaped = false;
|
|
171863
|
-
continue;
|
|
171864
|
-
}
|
|
171865
|
-
if (ch === "\\") {
|
|
171866
|
-
escaped = true;
|
|
171867
|
-
continue;
|
|
171868
|
-
}
|
|
171869
|
-
if (ch === '"') {
|
|
171870
|
-
quote = quote === 1 ? 0 : 1;
|
|
171871
|
-
continue;
|
|
171872
|
-
}
|
|
171873
|
-
if (quote === 1) {
|
|
171874
|
-
continue;
|
|
171875
|
-
}
|
|
171876
|
-
if (ch === "[") {
|
|
171877
|
-
bracket++;
|
|
171878
|
-
continue;
|
|
171879
|
-
}
|
|
171880
|
-
if (ch === "]" && bracket > 0) {
|
|
171881
|
-
bracket--;
|
|
171882
|
-
continue;
|
|
171883
|
-
}
|
|
171884
|
-
if (bracket > 0) {
|
|
171885
|
-
continue;
|
|
171886
|
-
}
|
|
171887
|
-
if (ch === "(") {
|
|
171888
|
-
paren++;
|
|
171889
|
-
continue;
|
|
171890
|
-
}
|
|
171891
|
-
if (ch === ")") {
|
|
171892
|
-
paren--;
|
|
171893
|
-
if (paren === 0) {
|
|
171894
|
-
if (requireEnd === true && i !== pattern.length - 1) {
|
|
171895
|
-
return;
|
|
171896
|
-
}
|
|
171897
|
-
return {
|
|
171898
|
-
type: pattern[0],
|
|
171899
|
-
body: pattern.slice(2, i),
|
|
171900
|
-
end: i
|
|
171901
|
-
};
|
|
171902
|
-
}
|
|
171903
|
-
}
|
|
171904
|
-
}
|
|
171905
|
-
};
|
|
171906
|
-
var getStarExtglobSequenceOutput = (pattern) => {
|
|
171907
|
-
let index = 0;
|
|
171908
|
-
const chars = [];
|
|
171909
|
-
while (index < pattern.length) {
|
|
171910
|
-
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
171911
|
-
if (!match || match.type !== "*") {
|
|
171912
|
-
return;
|
|
171913
|
-
}
|
|
171914
|
-
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
171915
|
-
if (branches.length !== 1) {
|
|
171916
|
-
return;
|
|
171917
|
-
}
|
|
171918
|
-
const branch = normalizeSimpleBranch(branches[0]);
|
|
171919
|
-
if (!branch || branch.length !== 1) {
|
|
171920
|
-
return;
|
|
171921
|
-
}
|
|
171922
|
-
chars.push(branch);
|
|
171923
|
-
index += match.end + 1;
|
|
171924
|
-
}
|
|
171925
|
-
if (chars.length < 1) {
|
|
171926
|
-
return;
|
|
171927
|
-
}
|
|
171928
|
-
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
171929
|
-
return `${source}*`;
|
|
171930
|
-
};
|
|
171931
|
-
var repeatedExtglobRecursion = (pattern) => {
|
|
171932
|
-
let depth = 0;
|
|
171933
|
-
let value = pattern.trim();
|
|
171934
|
-
let match = parseRepeatedExtglob(value);
|
|
171935
|
-
while (match) {
|
|
171936
|
-
depth++;
|
|
171937
|
-
value = match.body.trim();
|
|
171938
|
-
match = parseRepeatedExtglob(value);
|
|
171939
|
-
}
|
|
171940
|
-
return depth;
|
|
171941
|
-
};
|
|
171942
|
-
var analyzeRepeatedExtglob = (body, options) => {
|
|
171943
|
-
if (options.maxExtglobRecursion === false) {
|
|
171944
|
-
return { risky: false };
|
|
171945
|
-
}
|
|
171946
|
-
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
171947
|
-
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
171948
|
-
if (branches.length > 1) {
|
|
171949
|
-
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
171950
|
-
return { risky: true };
|
|
171951
|
-
}
|
|
171952
|
-
}
|
|
171953
|
-
for (const branch of branches) {
|
|
171954
|
-
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
171955
|
-
if (safeOutput) {
|
|
171956
|
-
return { risky: true, safeOutput };
|
|
171957
|
-
}
|
|
171958
|
-
if (repeatedExtglobRecursion(branch) > max) {
|
|
171959
|
-
return { risky: true };
|
|
171960
|
-
}
|
|
171961
|
-
}
|
|
171962
|
-
return { risky: false };
|
|
171963
|
-
};
|
|
171964
171790
|
var parse = (input, options) => {
|
|
171965
171791
|
if (typeof input !== "string") {
|
|
171966
171792
|
throw new TypeError("Expected a string");
|
|
@@ -172092,8 +171918,6 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
172092
171918
|
token.prev = prev;
|
|
172093
171919
|
token.parens = state.parens;
|
|
172094
171920
|
token.output = state.output;
|
|
172095
|
-
token.startIndex = state.index;
|
|
172096
|
-
token.tokensIndex = tokens.length;
|
|
172097
171921
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
172098
171922
|
increment("parens");
|
|
172099
171923
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -172101,26 +171925,6 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
172101
171925
|
extglobs.push(token);
|
|
172102
171926
|
};
|
|
172103
171927
|
const extglobClose = (token) => {
|
|
172104
|
-
const literal = input.slice(token.startIndex, state.index + 1);
|
|
172105
|
-
const body = input.slice(token.startIndex + 2, state.index);
|
|
172106
|
-
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
172107
|
-
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
172108
|
-
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : undefined;
|
|
172109
|
-
const open = tokens[token.tokensIndex];
|
|
172110
|
-
open.type = "text";
|
|
172111
|
-
open.value = literal;
|
|
172112
|
-
open.output = safeOutput || utils.escapeRegex(literal);
|
|
172113
|
-
for (let i = token.tokensIndex + 1;i < tokens.length; i++) {
|
|
172114
|
-
tokens[i].value = "";
|
|
172115
|
-
tokens[i].output = "";
|
|
172116
|
-
delete tokens[i].suffix;
|
|
172117
|
-
}
|
|
172118
|
-
state.output = token.output + open.output;
|
|
172119
|
-
state.backtrack = true;
|
|
172120
|
-
push({ type: "paren", extglob: true, value, output: "" });
|
|
172121
|
-
decrement("parens");
|
|
172122
|
-
return;
|
|
172123
|
-
}
|
|
172124
171928
|
let output = token.close + (opts.capture ? ")" : "");
|
|
172125
171929
|
let rest;
|
|
172126
171930
|
if (token.type === "negate") {
|
|
@@ -217154,13 +216958,13 @@ interface CSSNumericArray{[Symbol.iterator]():ArrayIterator<CSSNumericValue>;ent
|
|
|
217154
216958
|
const result = [];
|
|
217155
216959
|
for (const path2 of paths) {
|
|
217156
216960
|
for (let pattern of patterns) {
|
|
217157
|
-
let
|
|
216961
|
+
let process4 = addArray;
|
|
217158
216962
|
if (FileUtils.isNegatedGlob(pattern)) {
|
|
217159
|
-
|
|
216963
|
+
process4 = removeArray;
|
|
217160
216964
|
pattern = pattern.slice(1);
|
|
217161
216965
|
}
|
|
217162
216966
|
if (runtime.getPathMatchesPattern(path2, pattern))
|
|
217163
|
-
|
|
216967
|
+
process4(result, path2);
|
|
217164
216968
|
}
|
|
217165
216969
|
}
|
|
217166
216970
|
return result;
|
|
@@ -245822,13 +245626,13 @@ var require_getMachineId_bsd = __commonJS((exports) => {
|
|
|
245822
245626
|
var require_getMachineId_win = __commonJS((exports) => {
|
|
245823
245627
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
245824
245628
|
exports.getMachineId = undefined;
|
|
245825
|
-
var
|
|
245629
|
+
var process11 = __require("process");
|
|
245826
245630
|
var execAsync_1 = require_execAsync();
|
|
245827
245631
|
var api_1 = require_src();
|
|
245828
245632
|
async function getMachineId() {
|
|
245829
245633
|
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
245830
245634
|
let command = "%windir%\\System32\\REG.exe";
|
|
245831
|
-
if (
|
|
245635
|
+
if (process11.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process11.env) {
|
|
245832
245636
|
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
245833
245637
|
}
|
|
245834
245638
|
try {
|
|
@@ -245861,11 +245665,11 @@ var require_getMachineId_unsupported = __commonJS((exports) => {
|
|
|
245861
245665
|
var require_getMachineId = __commonJS((exports) => {
|
|
245862
245666
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
245863
245667
|
exports.getMachineId = undefined;
|
|
245864
|
-
var
|
|
245668
|
+
var process11 = __require("process");
|
|
245865
245669
|
var getMachineIdImpl;
|
|
245866
245670
|
async function getMachineId() {
|
|
245867
245671
|
if (!getMachineIdImpl) {
|
|
245868
|
-
switch (
|
|
245672
|
+
switch (process11.platform) {
|
|
245869
245673
|
case "darwin":
|
|
245870
245674
|
getMachineIdImpl = (await Promise.resolve().then(() => __toESM(require_getMachineId_darwin()))).getMachineId;
|
|
245871
245675
|
break;
|
|
@@ -246791,19 +246595,19 @@ var require_src6 = __commonJS((exports) => {
|
|
|
246791
246595
|
// package.json
|
|
246792
246596
|
var package_default = {
|
|
246793
246597
|
name: "@uipath/vertical-solutions-tool",
|
|
246794
|
-
version: "0.1.
|
|
246598
|
+
version: "0.1.10",
|
|
246795
246599
|
description: "Scaffold and generate Vertical Solution projects.",
|
|
246796
246600
|
private: false,
|
|
246797
246601
|
repository: {
|
|
246798
246602
|
type: "git",
|
|
246799
|
-
url: "https://github.com/UiPath/
|
|
246603
|
+
url: "https://github.com/UiPath/cli.git",
|
|
246800
246604
|
directory: "packages/vertical-solutions-tool"
|
|
246801
246605
|
},
|
|
246802
246606
|
publishConfig: {
|
|
246803
246607
|
registry: "https://registry.npmjs.org/"
|
|
246804
246608
|
},
|
|
246805
246609
|
keywords: [
|
|
246806
|
-
"
|
|
246610
|
+
"cli-tool",
|
|
246807
246611
|
"uipath",
|
|
246808
246612
|
"cli",
|
|
246809
246613
|
"plugin",
|
|
@@ -247855,7 +247659,7 @@ var import_mute_stream = __toESM(require_lib(), 1);
|
|
|
247855
247659
|
import * as readline2 from "node:readline";
|
|
247856
247660
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
247857
247661
|
|
|
247858
|
-
// ../../node_modules
|
|
247662
|
+
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
247859
247663
|
var signals = [];
|
|
247860
247664
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
247861
247665
|
if (process.platform !== "win32") {
|
|
@@ -247865,7 +247669,7 @@ if (process.platform === "linux") {
|
|
|
247865
247669
|
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
247866
247670
|
}
|
|
247867
247671
|
|
|
247868
|
-
// ../../node_modules
|
|
247672
|
+
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
247869
247673
|
var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
247870
247674
|
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
247871
247675
|
var global2 = globalThis;
|
|
@@ -248066,7 +247870,7 @@ var {
|
|
|
248066
247870
|
// ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248067
247871
|
import { stripVTControlCharacters } from "node:util";
|
|
248068
247872
|
|
|
248069
|
-
// ../../node_modules/@inquirer/ansi/dist/index.js
|
|
247873
|
+
// ../../node_modules/@inquirer/checkbox/node_modules/@inquirer/ansi/dist/index.js
|
|
248070
247874
|
var ESC2 = "\x1B[";
|
|
248071
247875
|
var cursorLeft = ESC2 + "G";
|
|
248072
247876
|
var cursorHide = ESC2 + "?25l";
|
|
@@ -248735,219 +248539,11 @@ var import_mute_stream2 = __toESM(require_lib2(), 1);
|
|
|
248735
248539
|
import * as readline4 from "node:readline";
|
|
248736
248540
|
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
248737
248541
|
|
|
248738
|
-
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/signal-exit/dist/mjs/signals.js
|
|
248739
|
-
var signals2 = [];
|
|
248740
|
-
signals2.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
248741
|
-
if (process.platform !== "win32") {
|
|
248742
|
-
signals2.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
248743
|
-
}
|
|
248744
|
-
if (process.platform === "linux") {
|
|
248745
|
-
signals2.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
248746
|
-
}
|
|
248747
|
-
|
|
248748
|
-
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/signal-exit/dist/mjs/index.js
|
|
248749
|
-
var processOk2 = (process4) => !!process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
248750
|
-
var kExitEmitter2 = Symbol.for("signal-exit emitter");
|
|
248751
|
-
var global3 = globalThis;
|
|
248752
|
-
var ObjectDefineProperty2 = Object.defineProperty.bind(Object);
|
|
248753
|
-
|
|
248754
|
-
class Emitter2 {
|
|
248755
|
-
emitted = {
|
|
248756
|
-
afterExit: false,
|
|
248757
|
-
exit: false
|
|
248758
|
-
};
|
|
248759
|
-
listeners = {
|
|
248760
|
-
afterExit: [],
|
|
248761
|
-
exit: []
|
|
248762
|
-
};
|
|
248763
|
-
count = 0;
|
|
248764
|
-
id = Math.random();
|
|
248765
|
-
constructor() {
|
|
248766
|
-
if (global3[kExitEmitter2]) {
|
|
248767
|
-
return global3[kExitEmitter2];
|
|
248768
|
-
}
|
|
248769
|
-
ObjectDefineProperty2(global3, kExitEmitter2, {
|
|
248770
|
-
value: this,
|
|
248771
|
-
writable: false,
|
|
248772
|
-
enumerable: false,
|
|
248773
|
-
configurable: false
|
|
248774
|
-
});
|
|
248775
|
-
}
|
|
248776
|
-
on(ev, fn) {
|
|
248777
|
-
this.listeners[ev].push(fn);
|
|
248778
|
-
}
|
|
248779
|
-
removeListener(ev, fn) {
|
|
248780
|
-
const list = this.listeners[ev];
|
|
248781
|
-
const i = list.indexOf(fn);
|
|
248782
|
-
if (i === -1) {
|
|
248783
|
-
return;
|
|
248784
|
-
}
|
|
248785
|
-
if (i === 0 && list.length === 1) {
|
|
248786
|
-
list.length = 0;
|
|
248787
|
-
} else {
|
|
248788
|
-
list.splice(i, 1);
|
|
248789
|
-
}
|
|
248790
|
-
}
|
|
248791
|
-
emit(ev, code, signal) {
|
|
248792
|
-
if (this.emitted[ev]) {
|
|
248793
|
-
return false;
|
|
248794
|
-
}
|
|
248795
|
-
this.emitted[ev] = true;
|
|
248796
|
-
let ret = false;
|
|
248797
|
-
for (const fn of this.listeners[ev]) {
|
|
248798
|
-
ret = fn(code, signal) === true || ret;
|
|
248799
|
-
}
|
|
248800
|
-
if (ev === "exit") {
|
|
248801
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
248802
|
-
}
|
|
248803
|
-
return ret;
|
|
248804
|
-
}
|
|
248805
|
-
}
|
|
248806
|
-
|
|
248807
|
-
class SignalExitBase2 {
|
|
248808
|
-
}
|
|
248809
|
-
var signalExitWrap2 = (handler) => {
|
|
248810
|
-
return {
|
|
248811
|
-
onExit(cb, opts) {
|
|
248812
|
-
return handler.onExit(cb, opts);
|
|
248813
|
-
},
|
|
248814
|
-
load() {
|
|
248815
|
-
return handler.load();
|
|
248816
|
-
},
|
|
248817
|
-
unload() {
|
|
248818
|
-
return handler.unload();
|
|
248819
|
-
}
|
|
248820
|
-
};
|
|
248821
|
-
};
|
|
248822
|
-
|
|
248823
|
-
class SignalExitFallback2 extends SignalExitBase2 {
|
|
248824
|
-
onExit() {
|
|
248825
|
-
return () => {};
|
|
248826
|
-
}
|
|
248827
|
-
load() {}
|
|
248828
|
-
unload() {}
|
|
248829
|
-
}
|
|
248830
|
-
|
|
248831
|
-
class SignalExit2 extends SignalExitBase2 {
|
|
248832
|
-
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
248833
|
-
#emitter = new Emitter2;
|
|
248834
|
-
#process;
|
|
248835
|
-
#originalProcessEmit;
|
|
248836
|
-
#originalProcessReallyExit;
|
|
248837
|
-
#sigListeners = {};
|
|
248838
|
-
#loaded = false;
|
|
248839
|
-
constructor(process4) {
|
|
248840
|
-
super();
|
|
248841
|
-
this.#process = process4;
|
|
248842
|
-
this.#sigListeners = {};
|
|
248843
|
-
for (const sig of signals2) {
|
|
248844
|
-
this.#sigListeners[sig] = () => {
|
|
248845
|
-
const listeners = this.#process.listeners(sig);
|
|
248846
|
-
let { count } = this.#emitter;
|
|
248847
|
-
const p = process4;
|
|
248848
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
248849
|
-
count += p.__signal_exit_emitter__.count;
|
|
248850
|
-
}
|
|
248851
|
-
if (listeners.length === count) {
|
|
248852
|
-
this.unload();
|
|
248853
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
248854
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
248855
|
-
if (!ret)
|
|
248856
|
-
process4.kill(process4.pid, s);
|
|
248857
|
-
}
|
|
248858
|
-
};
|
|
248859
|
-
}
|
|
248860
|
-
this.#originalProcessReallyExit = process4.reallyExit;
|
|
248861
|
-
this.#originalProcessEmit = process4.emit;
|
|
248862
|
-
}
|
|
248863
|
-
onExit(cb, opts) {
|
|
248864
|
-
if (!processOk2(this.#process)) {
|
|
248865
|
-
return () => {};
|
|
248866
|
-
}
|
|
248867
|
-
if (this.#loaded === false) {
|
|
248868
|
-
this.load();
|
|
248869
|
-
}
|
|
248870
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
248871
|
-
this.#emitter.on(ev, cb);
|
|
248872
|
-
return () => {
|
|
248873
|
-
this.#emitter.removeListener(ev, cb);
|
|
248874
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
248875
|
-
this.unload();
|
|
248876
|
-
}
|
|
248877
|
-
};
|
|
248878
|
-
}
|
|
248879
|
-
load() {
|
|
248880
|
-
if (this.#loaded) {
|
|
248881
|
-
return;
|
|
248882
|
-
}
|
|
248883
|
-
this.#loaded = true;
|
|
248884
|
-
this.#emitter.count += 1;
|
|
248885
|
-
for (const sig of signals2) {
|
|
248886
|
-
try {
|
|
248887
|
-
const fn = this.#sigListeners[sig];
|
|
248888
|
-
if (fn)
|
|
248889
|
-
this.#process.on(sig, fn);
|
|
248890
|
-
} catch (_) {}
|
|
248891
|
-
}
|
|
248892
|
-
this.#process.emit = (ev, ...a) => {
|
|
248893
|
-
return this.#processEmit(ev, ...a);
|
|
248894
|
-
};
|
|
248895
|
-
this.#process.reallyExit = (code) => {
|
|
248896
|
-
return this.#processReallyExit(code);
|
|
248897
|
-
};
|
|
248898
|
-
}
|
|
248899
|
-
unload() {
|
|
248900
|
-
if (!this.#loaded) {
|
|
248901
|
-
return;
|
|
248902
|
-
}
|
|
248903
|
-
this.#loaded = false;
|
|
248904
|
-
signals2.forEach((sig) => {
|
|
248905
|
-
const listener = this.#sigListeners[sig];
|
|
248906
|
-
if (!listener) {
|
|
248907
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
248908
|
-
}
|
|
248909
|
-
try {
|
|
248910
|
-
this.#process.removeListener(sig, listener);
|
|
248911
|
-
} catch (_) {}
|
|
248912
|
-
});
|
|
248913
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
248914
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
248915
|
-
this.#emitter.count -= 1;
|
|
248916
|
-
}
|
|
248917
|
-
#processReallyExit(code) {
|
|
248918
|
-
if (!processOk2(this.#process)) {
|
|
248919
|
-
return 0;
|
|
248920
|
-
}
|
|
248921
|
-
this.#process.exitCode = code || 0;
|
|
248922
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
248923
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
248924
|
-
}
|
|
248925
|
-
#processEmit(ev, ...args) {
|
|
248926
|
-
const og = this.#originalProcessEmit;
|
|
248927
|
-
if (ev === "exit" && processOk2(this.#process)) {
|
|
248928
|
-
if (typeof args[0] === "number") {
|
|
248929
|
-
this.#process.exitCode = args[0];
|
|
248930
|
-
}
|
|
248931
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
248932
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
248933
|
-
return ret;
|
|
248934
|
-
} else {
|
|
248935
|
-
return og.call(this.#process, ev, ...args);
|
|
248936
|
-
}
|
|
248937
|
-
}
|
|
248938
|
-
}
|
|
248939
|
-
var process4 = globalThis.process;
|
|
248940
|
-
var {
|
|
248941
|
-
onExit: onExit2,
|
|
248942
|
-
load: load2,
|
|
248943
|
-
unload: unload2
|
|
248944
|
-
} = signalExitWrap2(processOk2(process4) ? new SignalExit2(process4) : new SignalExitFallback2);
|
|
248945
|
-
|
|
248946
248542
|
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248947
248543
|
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
|
248948
248544
|
|
|
248949
248545
|
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/utils.js
|
|
248950
|
-
var import_cli_width2 = __toESM(
|
|
248546
|
+
var import_cli_width2 = __toESM(require_cli_width2(), 1);
|
|
248951
248547
|
function breakLines2(content, width) {
|
|
248952
248548
|
return content.split(`
|
|
248953
248549
|
`).flatMap((line) => wrapAnsi(line, width, { trim: false, hard: true }).split(`
|
|
@@ -248958,6 +248554,22 @@ function readlineWidth2() {
|
|
|
248958
248554
|
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
248959
248555
|
}
|
|
248960
248556
|
|
|
248557
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/ansi/dist/index.js
|
|
248558
|
+
var ESC3 = "\x1B[";
|
|
248559
|
+
var cursorLeft2 = ESC3 + "G";
|
|
248560
|
+
var cursorHide2 = ESC3 + "?25l";
|
|
248561
|
+
var cursorShow2 = ESC3 + "?25h";
|
|
248562
|
+
var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC3}${rows}A` : "";
|
|
248563
|
+
var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC3}${rows}B` : "";
|
|
248564
|
+
var cursorTo2 = (x, y) => {
|
|
248565
|
+
if (typeof y === "number" && !Number.isNaN(y)) {
|
|
248566
|
+
return `${ESC3}${y + 1};${x + 1}H`;
|
|
248567
|
+
}
|
|
248568
|
+
return `${ESC3}${x + 1}G`;
|
|
248569
|
+
};
|
|
248570
|
+
var eraseLine2 = ESC3 + "2K";
|
|
248571
|
+
var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
|
|
248572
|
+
|
|
248961
248573
|
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
248962
248574
|
var height2 = (content) => content.split(`
|
|
248963
248575
|
`).length;
|
|
@@ -248999,25 +248611,25 @@ class ScreenManager2 {
|
|
|
248999
248611
|
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
249000
248612
|
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
249001
248613
|
if (bottomContentHeight > 0)
|
|
249002
|
-
output +=
|
|
249003
|
-
output +=
|
|
249004
|
-
this.write(
|
|
248614
|
+
output += cursorUp2(bottomContentHeight);
|
|
248615
|
+
output += cursorTo2(this.cursorPos.cols);
|
|
248616
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
|
|
249005
248617
|
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
249006
248618
|
this.height = height2(output);
|
|
249007
248619
|
}
|
|
249008
248620
|
checkCursorPos() {
|
|
249009
248621
|
const cursorPos = this.rl.getCursorPos();
|
|
249010
248622
|
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
249011
|
-
this.write(
|
|
248623
|
+
this.write(cursorTo2(cursorPos.cols));
|
|
249012
248624
|
this.cursorPos = cursorPos;
|
|
249013
248625
|
}
|
|
249014
248626
|
}
|
|
249015
248627
|
done({ clearContent }) {
|
|
249016
248628
|
this.rl.setPrompt("");
|
|
249017
|
-
let output =
|
|
249018
|
-
output += clearContent ?
|
|
248629
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
248630
|
+
output += clearContent ? eraseLines2(this.height) : `
|
|
249019
248631
|
`;
|
|
249020
|
-
output +=
|
|
248632
|
+
output += cursorShow2;
|
|
249021
248633
|
this.write(output);
|
|
249022
248634
|
this.rl.close();
|
|
249023
248635
|
}
|
|
@@ -249079,7 +248691,7 @@ function createPrompt2(view) {
|
|
|
249079
248691
|
signal.addEventListener("abort", abort);
|
|
249080
248692
|
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
249081
248693
|
}
|
|
249082
|
-
cleanups.add(
|
|
248694
|
+
cleanups.add(onExit((code, signal2) => {
|
|
249083
248695
|
reject(new ExitPromptError2(`User force closed the prompt with ${code} ${signal2}`));
|
|
249084
248696
|
}));
|
|
249085
248697
|
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
|
@@ -249483,7 +249095,7 @@ __export(exports_core2, {
|
|
|
249483
249095
|
safeDecode: () => safeDecode,
|
|
249484
249096
|
registry: () => registry,
|
|
249485
249097
|
regexes: () => exports_regexes,
|
|
249486
|
-
process: () =>
|
|
249098
|
+
process: () => process4,
|
|
249487
249099
|
prettifyError: () => prettifyError,
|
|
249488
249100
|
parseAsync: () => parseAsync,
|
|
249489
249101
|
parse: () => parse,
|
|
@@ -259947,7 +259559,7 @@ function initializeContext(params) {
|
|
|
259947
259559
|
external: params?.external ?? undefined
|
|
259948
259560
|
};
|
|
259949
259561
|
}
|
|
259950
|
-
function
|
|
259562
|
+
function process4(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
259951
259563
|
var _a2;
|
|
259952
259564
|
const def = schema._zod.def;
|
|
259953
259565
|
const seen = ctx.seen.get(schema);
|
|
@@ -259984,7 +259596,7 @@ function process5(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
259984
259596
|
if (parent) {
|
|
259985
259597
|
if (!result.ref)
|
|
259986
259598
|
result.ref = parent;
|
|
259987
|
-
|
|
259599
|
+
process4(parent, ctx, params);
|
|
259988
259600
|
ctx.seen.get(parent).isParent = true;
|
|
259989
259601
|
}
|
|
259990
259602
|
}
|
|
@@ -260260,14 +259872,14 @@ function isTransforming(_schema, _ctx) {
|
|
|
260260
259872
|
}
|
|
260261
259873
|
var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
260262
259874
|
const ctx = initializeContext({ ...params, processors });
|
|
260263
|
-
|
|
259875
|
+
process4(schema, ctx);
|
|
260264
259876
|
extractDefs(ctx, schema);
|
|
260265
259877
|
return finalize(ctx, schema);
|
|
260266
259878
|
};
|
|
260267
259879
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
260268
259880
|
const { libraryOptions, target } = params ?? {};
|
|
260269
259881
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
260270
|
-
|
|
259882
|
+
process4(schema, ctx);
|
|
260271
259883
|
extractDefs(ctx, schema);
|
|
260272
259884
|
return finalize(ctx, schema);
|
|
260273
259885
|
};
|
|
@@ -260518,7 +260130,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
260518
260130
|
if (typeof maximum === "number")
|
|
260519
260131
|
json.maxItems = maximum;
|
|
260520
260132
|
json.type = "array";
|
|
260521
|
-
json.items =
|
|
260133
|
+
json.items = process4(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
260522
260134
|
};
|
|
260523
260135
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
260524
260136
|
const json = _json;
|
|
@@ -260527,7 +260139,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260527
260139
|
json.properties = {};
|
|
260528
260140
|
const shape = def.shape;
|
|
260529
260141
|
for (const key in shape) {
|
|
260530
|
-
json.properties[key] =
|
|
260142
|
+
json.properties[key] = process4(shape[key], ctx, {
|
|
260531
260143
|
...params,
|
|
260532
260144
|
path: [...params.path, "properties", key]
|
|
260533
260145
|
});
|
|
@@ -260550,7 +260162,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260550
260162
|
if (ctx.io === "output")
|
|
260551
260163
|
json.additionalProperties = false;
|
|
260552
260164
|
} else if (def.catchall) {
|
|
260553
|
-
json.additionalProperties =
|
|
260165
|
+
json.additionalProperties = process4(def.catchall, ctx, {
|
|
260554
260166
|
...params,
|
|
260555
260167
|
path: [...params.path, "additionalProperties"]
|
|
260556
260168
|
});
|
|
@@ -260559,7 +260171,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
260559
260171
|
var unionProcessor = (schema, ctx, json, params) => {
|
|
260560
260172
|
const def = schema._zod.def;
|
|
260561
260173
|
const isExclusive = def.inclusive === false;
|
|
260562
|
-
const options = def.options.map((x, i) =>
|
|
260174
|
+
const options = def.options.map((x, i) => process4(x, ctx, {
|
|
260563
260175
|
...params,
|
|
260564
260176
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
260565
260177
|
}));
|
|
@@ -260571,11 +260183,11 @@ var unionProcessor = (schema, ctx, json, params) => {
|
|
|
260571
260183
|
};
|
|
260572
260184
|
var intersectionProcessor = (schema, ctx, json, params) => {
|
|
260573
260185
|
const def = schema._zod.def;
|
|
260574
|
-
const a =
|
|
260186
|
+
const a = process4(def.left, ctx, {
|
|
260575
260187
|
...params,
|
|
260576
260188
|
path: [...params.path, "allOf", 0]
|
|
260577
260189
|
});
|
|
260578
|
-
const b =
|
|
260190
|
+
const b = process4(def.right, ctx, {
|
|
260579
260191
|
...params,
|
|
260580
260192
|
path: [...params.path, "allOf", 1]
|
|
260581
260193
|
});
|
|
@@ -260592,11 +260204,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
260592
260204
|
json.type = "array";
|
|
260593
260205
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
260594
260206
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
260595
|
-
const prefixItems = def.items.map((x, i) =>
|
|
260207
|
+
const prefixItems = def.items.map((x, i) => process4(x, ctx, {
|
|
260596
260208
|
...params,
|
|
260597
260209
|
path: [...params.path, prefixPath, i]
|
|
260598
260210
|
}));
|
|
260599
|
-
const rest = def.rest ?
|
|
260211
|
+
const rest = def.rest ? process4(def.rest, ctx, {
|
|
260600
260212
|
...params,
|
|
260601
260213
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
260602
260214
|
}) : null;
|
|
@@ -260636,7 +260248,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260636
260248
|
const keyBag = keyType._zod.bag;
|
|
260637
260249
|
const patterns = keyBag?.patterns;
|
|
260638
260250
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
260639
|
-
const valueSchema =
|
|
260251
|
+
const valueSchema = process4(def.valueType, ctx, {
|
|
260640
260252
|
...params,
|
|
260641
260253
|
path: [...params.path, "patternProperties", "*"]
|
|
260642
260254
|
});
|
|
@@ -260646,12 +260258,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260646
260258
|
}
|
|
260647
260259
|
} else {
|
|
260648
260260
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
260649
|
-
json.propertyNames =
|
|
260261
|
+
json.propertyNames = process4(def.keyType, ctx, {
|
|
260650
260262
|
...params,
|
|
260651
260263
|
path: [...params.path, "propertyNames"]
|
|
260652
260264
|
});
|
|
260653
260265
|
}
|
|
260654
|
-
json.additionalProperties =
|
|
260266
|
+
json.additionalProperties = process4(def.valueType, ctx, {
|
|
260655
260267
|
...params,
|
|
260656
260268
|
path: [...params.path, "additionalProperties"]
|
|
260657
260269
|
});
|
|
@@ -260666,7 +260278,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
260666
260278
|
};
|
|
260667
260279
|
var nullableProcessor = (schema, ctx, json, params) => {
|
|
260668
260280
|
const def = schema._zod.def;
|
|
260669
|
-
const inner =
|
|
260281
|
+
const inner = process4(def.innerType, ctx, params);
|
|
260670
260282
|
const seen = ctx.seen.get(schema);
|
|
260671
260283
|
if (ctx.target === "openapi-3.0") {
|
|
260672
260284
|
seen.ref = def.innerType;
|
|
@@ -260677,20 +260289,20 @@ var nullableProcessor = (schema, ctx, json, params) => {
|
|
|
260677
260289
|
};
|
|
260678
260290
|
var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
260679
260291
|
const def = schema._zod.def;
|
|
260680
|
-
|
|
260292
|
+
process4(def.innerType, ctx, params);
|
|
260681
260293
|
const seen = ctx.seen.get(schema);
|
|
260682
260294
|
seen.ref = def.innerType;
|
|
260683
260295
|
};
|
|
260684
260296
|
var defaultProcessor = (schema, ctx, json, params) => {
|
|
260685
260297
|
const def = schema._zod.def;
|
|
260686
|
-
|
|
260298
|
+
process4(def.innerType, ctx, params);
|
|
260687
260299
|
const seen = ctx.seen.get(schema);
|
|
260688
260300
|
seen.ref = def.innerType;
|
|
260689
260301
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
260690
260302
|
};
|
|
260691
260303
|
var prefaultProcessor = (schema, ctx, json, params) => {
|
|
260692
260304
|
const def = schema._zod.def;
|
|
260693
|
-
|
|
260305
|
+
process4(def.innerType, ctx, params);
|
|
260694
260306
|
const seen = ctx.seen.get(schema);
|
|
260695
260307
|
seen.ref = def.innerType;
|
|
260696
260308
|
if (ctx.io === "input")
|
|
@@ -260698,7 +260310,7 @@ var prefaultProcessor = (schema, ctx, json, params) => {
|
|
|
260698
260310
|
};
|
|
260699
260311
|
var catchProcessor = (schema, ctx, json, params) => {
|
|
260700
260312
|
const def = schema._zod.def;
|
|
260701
|
-
|
|
260313
|
+
process4(def.innerType, ctx, params);
|
|
260702
260314
|
const seen = ctx.seen.get(schema);
|
|
260703
260315
|
seen.ref = def.innerType;
|
|
260704
260316
|
let catchValue;
|
|
@@ -260712,32 +260324,32 @@ var catchProcessor = (schema, ctx, json, params) => {
|
|
|
260712
260324
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
260713
260325
|
const def = schema._zod.def;
|
|
260714
260326
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
260715
|
-
|
|
260327
|
+
process4(innerType, ctx, params);
|
|
260716
260328
|
const seen = ctx.seen.get(schema);
|
|
260717
260329
|
seen.ref = innerType;
|
|
260718
260330
|
};
|
|
260719
260331
|
var readonlyProcessor = (schema, ctx, json, params) => {
|
|
260720
260332
|
const def = schema._zod.def;
|
|
260721
|
-
|
|
260333
|
+
process4(def.innerType, ctx, params);
|
|
260722
260334
|
const seen = ctx.seen.get(schema);
|
|
260723
260335
|
seen.ref = def.innerType;
|
|
260724
260336
|
json.readOnly = true;
|
|
260725
260337
|
};
|
|
260726
260338
|
var promiseProcessor = (schema, ctx, _json, params) => {
|
|
260727
260339
|
const def = schema._zod.def;
|
|
260728
|
-
|
|
260340
|
+
process4(def.innerType, ctx, params);
|
|
260729
260341
|
const seen = ctx.seen.get(schema);
|
|
260730
260342
|
seen.ref = def.innerType;
|
|
260731
260343
|
};
|
|
260732
260344
|
var optionalProcessor = (schema, ctx, _json, params) => {
|
|
260733
260345
|
const def = schema._zod.def;
|
|
260734
|
-
|
|
260346
|
+
process4(def.innerType, ctx, params);
|
|
260735
260347
|
const seen = ctx.seen.get(schema);
|
|
260736
260348
|
seen.ref = def.innerType;
|
|
260737
260349
|
};
|
|
260738
260350
|
var lazyProcessor = (schema, ctx, _json, params) => {
|
|
260739
260351
|
const innerType = schema._zod.innerType;
|
|
260740
|
-
|
|
260352
|
+
process4(innerType, ctx, params);
|
|
260741
260353
|
const seen = ctx.seen.get(schema);
|
|
260742
260354
|
seen.ref = innerType;
|
|
260743
260355
|
};
|
|
@@ -260789,7 +260401,7 @@ function toJSONSchema(input, params) {
|
|
|
260789
260401
|
const defs = {};
|
|
260790
260402
|
for (const entry of registry2._idmap.entries()) {
|
|
260791
260403
|
const [_, schema] = entry;
|
|
260792
|
-
|
|
260404
|
+
process4(schema, ctx2);
|
|
260793
260405
|
}
|
|
260794
260406
|
const schemas = {};
|
|
260795
260407
|
const external = {
|
|
@@ -260812,7 +260424,7 @@ function toJSONSchema(input, params) {
|
|
|
260812
260424
|
return { schemas };
|
|
260813
260425
|
}
|
|
260814
260426
|
const ctx = initializeContext({ ...params, processors: allProcessors });
|
|
260815
|
-
|
|
260427
|
+
process4(input, ctx);
|
|
260816
260428
|
extractDefs(ctx, input);
|
|
260817
260429
|
return finalize(ctx, input);
|
|
260818
260430
|
}
|
|
@@ -260858,7 +260470,7 @@ class JSONSchemaGenerator {
|
|
|
260858
260470
|
});
|
|
260859
260471
|
}
|
|
260860
260472
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
260861
|
-
return
|
|
260473
|
+
return process4(schema, this.ctx, _params);
|
|
260862
260474
|
}
|
|
260863
260475
|
emit(schema, _params) {
|
|
260864
260476
|
if (_params) {
|
|
@@ -262963,11 +262575,11 @@ var addEntityToConfig = async (entity, targetPath = ".") => {
|
|
|
262963
262575
|
// src/api/fetchEnteties.ts
|
|
262964
262576
|
import { catchError as catchError2 } from "@uipath/common";
|
|
262965
262577
|
|
|
262966
|
-
//
|
|
262967
|
-
import
|
|
262578
|
+
// node_modules/ora/index.js
|
|
262579
|
+
import process10 from "node:process";
|
|
262968
262580
|
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
|
262969
262581
|
|
|
262970
|
-
// ../../node_modules/
|
|
262582
|
+
// ../../node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
262971
262583
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
262972
262584
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
262973
262585
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -263144,17 +262756,17 @@ function assembleStyles() {
|
|
|
263144
262756
|
var ansiStyles = assembleStyles();
|
|
263145
262757
|
var ansi_styles_default = ansiStyles;
|
|
263146
262758
|
|
|
263147
|
-
// ../../node_modules/
|
|
263148
|
-
import
|
|
262759
|
+
// ../../node_modules/chalk/source/vendor/supports-color/index.js
|
|
262760
|
+
import process5 from "node:process";
|
|
263149
262761
|
import os from "node:os";
|
|
263150
262762
|
import tty from "node:tty";
|
|
263151
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
262763
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.argv) {
|
|
263152
262764
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
263153
262765
|
const position = argv.indexOf(prefix + flag);
|
|
263154
262766
|
const terminatorPosition = argv.indexOf("--");
|
|
263155
262767
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
263156
262768
|
}
|
|
263157
|
-
var { env } =
|
|
262769
|
+
var { env } = process5;
|
|
263158
262770
|
var flagForceColor;
|
|
263159
262771
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
263160
262772
|
flagForceColor = 0;
|
|
@@ -263210,7 +262822,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
263210
262822
|
if (env.TERM === "dumb") {
|
|
263211
262823
|
return min;
|
|
263212
262824
|
}
|
|
263213
|
-
if (
|
|
262825
|
+
if (process5.platform === "win32") {
|
|
263214
262826
|
const osRelease = os.release().split(".");
|
|
263215
262827
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
263216
262828
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
@@ -263276,7 +262888,7 @@ var supportsColor = {
|
|
|
263276
262888
|
};
|
|
263277
262889
|
var supports_color_default = supportsColor;
|
|
263278
262890
|
|
|
263279
|
-
// ../../node_modules/
|
|
262891
|
+
// ../../node_modules/chalk/source/utilities.js
|
|
263280
262892
|
function stringReplaceAll(string4, substring, replacer) {
|
|
263281
262893
|
let index = string4.indexOf(substring);
|
|
263282
262894
|
if (index === -1) {
|
|
@@ -263309,7 +262921,7 @@ function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index) {
|
|
|
263309
262921
|
return returnValue;
|
|
263310
262922
|
}
|
|
263311
262923
|
|
|
263312
|
-
// ../../node_modules/
|
|
262924
|
+
// ../../node_modules/chalk/source/index.js
|
|
263313
262925
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
263314
262926
|
var GENERATOR = Symbol("GENERATOR");
|
|
263315
262927
|
var STYLER = Symbol("STYLER");
|
|
@@ -263456,11 +263068,11 @@ var chalk = createChalk();
|
|
|
263456
263068
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
263457
263069
|
var source_default = chalk;
|
|
263458
263070
|
|
|
263459
|
-
//
|
|
263460
|
-
import
|
|
263071
|
+
// node_modules/ora/node_modules/cli-cursor/index.js
|
|
263072
|
+
import process7 from "node:process";
|
|
263461
263073
|
|
|
263462
|
-
//
|
|
263463
|
-
import
|
|
263074
|
+
// node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
263075
|
+
import process6 from "node:process";
|
|
263464
263076
|
|
|
263465
263077
|
// ../../node_modules/mimic-function/index.js
|
|
263466
263078
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -263508,7 +263120,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
263508
263120
|
return to;
|
|
263509
263121
|
}
|
|
263510
263122
|
|
|
263511
|
-
//
|
|
263123
|
+
// node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/onetime/index.js
|
|
263512
263124
|
var calledFunctions = new WeakMap;
|
|
263513
263125
|
var onetime = (function_, options = {}) => {
|
|
263514
263126
|
if (typeof function_ !== "function") {
|
|
@@ -263539,234 +263151,26 @@ onetime.callCount = (function_) => {
|
|
|
263539
263151
|
};
|
|
263540
263152
|
var onetime_default = onetime;
|
|
263541
263153
|
|
|
263542
|
-
//
|
|
263543
|
-
var
|
|
263544
|
-
signals3.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
263545
|
-
if (process.platform !== "win32") {
|
|
263546
|
-
signals3.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
263547
|
-
}
|
|
263548
|
-
if (process.platform === "linux") {
|
|
263549
|
-
signals3.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
263550
|
-
}
|
|
263551
|
-
|
|
263552
|
-
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/signal-exit/dist/mjs/index.js
|
|
263553
|
-
var processOk3 = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
263554
|
-
var kExitEmitter3 = Symbol.for("signal-exit emitter");
|
|
263555
|
-
var global4 = globalThis;
|
|
263556
|
-
var ObjectDefineProperty3 = Object.defineProperty.bind(Object);
|
|
263557
|
-
|
|
263558
|
-
class Emitter3 {
|
|
263559
|
-
emitted = {
|
|
263560
|
-
afterExit: false,
|
|
263561
|
-
exit: false
|
|
263562
|
-
};
|
|
263563
|
-
listeners = {
|
|
263564
|
-
afterExit: [],
|
|
263565
|
-
exit: []
|
|
263566
|
-
};
|
|
263567
|
-
count = 0;
|
|
263568
|
-
id = Math.random();
|
|
263569
|
-
constructor() {
|
|
263570
|
-
if (global4[kExitEmitter3]) {
|
|
263571
|
-
return global4[kExitEmitter3];
|
|
263572
|
-
}
|
|
263573
|
-
ObjectDefineProperty3(global4, kExitEmitter3, {
|
|
263574
|
-
value: this,
|
|
263575
|
-
writable: false,
|
|
263576
|
-
enumerable: false,
|
|
263577
|
-
configurable: false
|
|
263578
|
-
});
|
|
263579
|
-
}
|
|
263580
|
-
on(ev, fn) {
|
|
263581
|
-
this.listeners[ev].push(fn);
|
|
263582
|
-
}
|
|
263583
|
-
removeListener(ev, fn) {
|
|
263584
|
-
const list = this.listeners[ev];
|
|
263585
|
-
const i = list.indexOf(fn);
|
|
263586
|
-
if (i === -1) {
|
|
263587
|
-
return;
|
|
263588
|
-
}
|
|
263589
|
-
if (i === 0 && list.length === 1) {
|
|
263590
|
-
list.length = 0;
|
|
263591
|
-
} else {
|
|
263592
|
-
list.splice(i, 1);
|
|
263593
|
-
}
|
|
263594
|
-
}
|
|
263595
|
-
emit(ev, code, signal) {
|
|
263596
|
-
if (this.emitted[ev]) {
|
|
263597
|
-
return false;
|
|
263598
|
-
}
|
|
263599
|
-
this.emitted[ev] = true;
|
|
263600
|
-
let ret = false;
|
|
263601
|
-
for (const fn of this.listeners[ev]) {
|
|
263602
|
-
ret = fn(code, signal) === true || ret;
|
|
263603
|
-
}
|
|
263604
|
-
if (ev === "exit") {
|
|
263605
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
263606
|
-
}
|
|
263607
|
-
return ret;
|
|
263608
|
-
}
|
|
263609
|
-
}
|
|
263610
|
-
|
|
263611
|
-
class SignalExitBase3 {
|
|
263612
|
-
}
|
|
263613
|
-
var signalExitWrap3 = (handler) => {
|
|
263614
|
-
return {
|
|
263615
|
-
onExit(cb, opts) {
|
|
263616
|
-
return handler.onExit(cb, opts);
|
|
263617
|
-
},
|
|
263618
|
-
load() {
|
|
263619
|
-
return handler.load();
|
|
263620
|
-
},
|
|
263621
|
-
unload() {
|
|
263622
|
-
return handler.unload();
|
|
263623
|
-
}
|
|
263624
|
-
};
|
|
263625
|
-
};
|
|
263626
|
-
|
|
263627
|
-
class SignalExitFallback3 extends SignalExitBase3 {
|
|
263628
|
-
onExit() {
|
|
263629
|
-
return () => {};
|
|
263630
|
-
}
|
|
263631
|
-
load() {}
|
|
263632
|
-
unload() {}
|
|
263633
|
-
}
|
|
263634
|
-
|
|
263635
|
-
class SignalExit3 extends SignalExitBase3 {
|
|
263636
|
-
#hupSig = process7.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
263637
|
-
#emitter = new Emitter3;
|
|
263638
|
-
#process;
|
|
263639
|
-
#originalProcessEmit;
|
|
263640
|
-
#originalProcessReallyExit;
|
|
263641
|
-
#sigListeners = {};
|
|
263642
|
-
#loaded = false;
|
|
263643
|
-
constructor(process7) {
|
|
263644
|
-
super();
|
|
263645
|
-
this.#process = process7;
|
|
263646
|
-
this.#sigListeners = {};
|
|
263647
|
-
for (const sig of signals3) {
|
|
263648
|
-
this.#sigListeners[sig] = () => {
|
|
263649
|
-
const listeners = this.#process.listeners(sig);
|
|
263650
|
-
let { count } = this.#emitter;
|
|
263651
|
-
const p = process7;
|
|
263652
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
263653
|
-
count += p.__signal_exit_emitter__.count;
|
|
263654
|
-
}
|
|
263655
|
-
if (listeners.length === count) {
|
|
263656
|
-
this.unload();
|
|
263657
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
263658
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
263659
|
-
if (!ret)
|
|
263660
|
-
process7.kill(process7.pid, s);
|
|
263661
|
-
}
|
|
263662
|
-
};
|
|
263663
|
-
}
|
|
263664
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
263665
|
-
this.#originalProcessEmit = process7.emit;
|
|
263666
|
-
}
|
|
263667
|
-
onExit(cb, opts) {
|
|
263668
|
-
if (!processOk3(this.#process)) {
|
|
263669
|
-
return () => {};
|
|
263670
|
-
}
|
|
263671
|
-
if (this.#loaded === false) {
|
|
263672
|
-
this.load();
|
|
263673
|
-
}
|
|
263674
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
263675
|
-
this.#emitter.on(ev, cb);
|
|
263676
|
-
return () => {
|
|
263677
|
-
this.#emitter.removeListener(ev, cb);
|
|
263678
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
263679
|
-
this.unload();
|
|
263680
|
-
}
|
|
263681
|
-
};
|
|
263682
|
-
}
|
|
263683
|
-
load() {
|
|
263684
|
-
if (this.#loaded) {
|
|
263685
|
-
return;
|
|
263686
|
-
}
|
|
263687
|
-
this.#loaded = true;
|
|
263688
|
-
this.#emitter.count += 1;
|
|
263689
|
-
for (const sig of signals3) {
|
|
263690
|
-
try {
|
|
263691
|
-
const fn = this.#sigListeners[sig];
|
|
263692
|
-
if (fn)
|
|
263693
|
-
this.#process.on(sig, fn);
|
|
263694
|
-
} catch (_) {}
|
|
263695
|
-
}
|
|
263696
|
-
this.#process.emit = (ev, ...a) => {
|
|
263697
|
-
return this.#processEmit(ev, ...a);
|
|
263698
|
-
};
|
|
263699
|
-
this.#process.reallyExit = (code) => {
|
|
263700
|
-
return this.#processReallyExit(code);
|
|
263701
|
-
};
|
|
263702
|
-
}
|
|
263703
|
-
unload() {
|
|
263704
|
-
if (!this.#loaded) {
|
|
263705
|
-
return;
|
|
263706
|
-
}
|
|
263707
|
-
this.#loaded = false;
|
|
263708
|
-
signals3.forEach((sig) => {
|
|
263709
|
-
const listener = this.#sigListeners[sig];
|
|
263710
|
-
if (!listener) {
|
|
263711
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
263712
|
-
}
|
|
263713
|
-
try {
|
|
263714
|
-
this.#process.removeListener(sig, listener);
|
|
263715
|
-
} catch (_) {}
|
|
263716
|
-
});
|
|
263717
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
263718
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
263719
|
-
this.#emitter.count -= 1;
|
|
263720
|
-
}
|
|
263721
|
-
#processReallyExit(code) {
|
|
263722
|
-
if (!processOk3(this.#process)) {
|
|
263723
|
-
return 0;
|
|
263724
|
-
}
|
|
263725
|
-
this.#process.exitCode = code || 0;
|
|
263726
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
263727
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
263728
|
-
}
|
|
263729
|
-
#processEmit(ev, ...args) {
|
|
263730
|
-
const og = this.#originalProcessEmit;
|
|
263731
|
-
if (ev === "exit" && processOk3(this.#process)) {
|
|
263732
|
-
if (typeof args[0] === "number") {
|
|
263733
|
-
this.#process.exitCode = args[0];
|
|
263734
|
-
}
|
|
263735
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
263736
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
263737
|
-
return ret;
|
|
263738
|
-
} else {
|
|
263739
|
-
return og.call(this.#process, ev, ...args);
|
|
263740
|
-
}
|
|
263741
|
-
}
|
|
263742
|
-
}
|
|
263743
|
-
var process7 = globalThis.process;
|
|
263744
|
-
var {
|
|
263745
|
-
onExit: onExit3,
|
|
263746
|
-
load: load3,
|
|
263747
|
-
unload: unload3
|
|
263748
|
-
} = signalExitWrap3(processOk3(process7) ? new SignalExit3(process7) : new SignalExitFallback3);
|
|
263749
|
-
|
|
263750
|
-
// ../../node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
263751
|
-
var terminal = process8.stderr.isTTY ? process8.stderr : process8.stdout.isTTY ? process8.stdout : undefined;
|
|
263154
|
+
// node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
263155
|
+
var terminal = process6.stderr.isTTY ? process6.stderr : process6.stdout.isTTY ? process6.stdout : undefined;
|
|
263752
263156
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
263753
|
-
|
|
263157
|
+
onExit(() => {
|
|
263754
263158
|
terminal.write("\x1B[?25h");
|
|
263755
263159
|
}, { alwaysLast: true });
|
|
263756
263160
|
}) : () => {};
|
|
263757
263161
|
var restore_cursor_default = restoreCursor;
|
|
263758
263162
|
|
|
263759
|
-
//
|
|
263163
|
+
// node_modules/ora/node_modules/cli-cursor/index.js
|
|
263760
263164
|
var isHidden = false;
|
|
263761
263165
|
var cliCursor = {};
|
|
263762
|
-
cliCursor.show = (writableStream =
|
|
263166
|
+
cliCursor.show = (writableStream = process7.stderr) => {
|
|
263763
263167
|
if (!writableStream.isTTY) {
|
|
263764
263168
|
return;
|
|
263765
263169
|
}
|
|
263766
263170
|
isHidden = false;
|
|
263767
263171
|
writableStream.write("\x1B[?25h");
|
|
263768
263172
|
};
|
|
263769
|
-
cliCursor.hide = (writableStream =
|
|
263173
|
+
cliCursor.hide = (writableStream = process7.stderr) => {
|
|
263770
263174
|
if (!writableStream.isTTY) {
|
|
263771
263175
|
return;
|
|
263772
263176
|
}
|
|
@@ -263785,7 +263189,7 @@ cliCursor.toggle = (force, writableStream) => {
|
|
|
263785
263189
|
}
|
|
263786
263190
|
};
|
|
263787
263191
|
var cli_cursor_default = cliCursor;
|
|
263788
|
-
//
|
|
263192
|
+
// node_modules/ora/node_modules/cli-spinners/spinners.json
|
|
263789
263193
|
var spinners_default = {
|
|
263790
263194
|
dots: {
|
|
263791
263195
|
interval: 80,
|
|
@@ -265484,11 +264888,11 @@ var spinners_default = {
|
|
|
265484
264888
|
}
|
|
265485
264889
|
};
|
|
265486
264890
|
|
|
265487
|
-
//
|
|
264891
|
+
// node_modules/ora/node_modules/cli-spinners/index.js
|
|
265488
264892
|
var cli_spinners_default = spinners_default;
|
|
265489
264893
|
var spinnersList = Object.keys(spinners_default);
|
|
265490
264894
|
|
|
265491
|
-
//
|
|
264895
|
+
// node_modules/ora/node_modules/log-symbols/symbols.js
|
|
265492
264896
|
var exports_symbols = {};
|
|
265493
264897
|
__export(exports_symbols, {
|
|
265494
264898
|
warning: () => warning,
|
|
@@ -265568,23 +264972,23 @@ var bgCyanBright = format(106, 49);
|
|
|
265568
264972
|
var bgWhiteBright = format(107, 49);
|
|
265569
264973
|
|
|
265570
264974
|
// ../../node_modules/is-unicode-supported/index.js
|
|
265571
|
-
import
|
|
264975
|
+
import process8 from "node:process";
|
|
265572
264976
|
function isUnicodeSupported2() {
|
|
265573
|
-
const { env: env2 } =
|
|
264977
|
+
const { env: env2 } = process8;
|
|
265574
264978
|
const { TERM, TERM_PROGRAM } = env2;
|
|
265575
|
-
if (
|
|
264979
|
+
if (process8.platform !== "win32") {
|
|
265576
264980
|
return TERM !== "linux";
|
|
265577
264981
|
}
|
|
265578
264982
|
return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
265579
264983
|
}
|
|
265580
264984
|
|
|
265581
|
-
//
|
|
264985
|
+
// node_modules/ora/node_modules/log-symbols/symbols.js
|
|
265582
264986
|
var _isUnicodeSupported = isUnicodeSupported2();
|
|
265583
264987
|
var info = blue(_isUnicodeSupported ? "ℹ" : "i");
|
|
265584
264988
|
var success2 = green(_isUnicodeSupported ? "✔" : "√");
|
|
265585
264989
|
var warning = yellow(_isUnicodeSupported ? "⚠" : "‼");
|
|
265586
264990
|
var error48 = red(_isUnicodeSupported ? "✖" : "×");
|
|
265587
|
-
// ../../node_modules/
|
|
264991
|
+
// ../../node_modules/ansi-regex/index.js
|
|
265588
264992
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
265589
264993
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
265590
264994
|
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
@@ -265593,15 +264997,12 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
265593
264997
|
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
265594
264998
|
}
|
|
265595
264999
|
|
|
265596
|
-
// ../../node_modules/
|
|
265000
|
+
// ../../node_modules/strip-ansi/index.js
|
|
265597
265001
|
var regex = ansiRegex();
|
|
265598
265002
|
function stripAnsi(string4) {
|
|
265599
265003
|
if (typeof string4 !== "string") {
|
|
265600
265004
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
|
|
265601
265005
|
}
|
|
265602
|
-
if (!string4.includes("\x1B") && !string4.includes("")) {
|
|
265603
|
-
return string4;
|
|
265604
|
-
}
|
|
265605
265006
|
return string4.replace(regex, "");
|
|
265606
265007
|
}
|
|
265607
265008
|
|
|
@@ -265695,7 +265096,7 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
|
265695
265096
|
return 1;
|
|
265696
265097
|
}
|
|
265697
265098
|
|
|
265698
|
-
//
|
|
265099
|
+
// node_modules/ora/node_modules/string-width/index.js
|
|
265699
265100
|
var segmenter = new Intl.Segmenter;
|
|
265700
265101
|
var zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v;
|
|
265701
265102
|
var leadingNonPrintingRegex = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v;
|
|
@@ -265772,8 +265173,8 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
265772
265173
|
return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
|
|
265773
265174
|
}
|
|
265774
265175
|
|
|
265775
|
-
//
|
|
265776
|
-
import
|
|
265176
|
+
// node_modules/ora/node_modules/stdin-discarder/index.js
|
|
265177
|
+
import process9 from "node:process";
|
|
265777
265178
|
var ASCII_ETX_CODE = 3;
|
|
265778
265179
|
|
|
265779
265180
|
class StdinDiscarder {
|
|
@@ -265787,10 +265188,10 @@ class StdinDiscarder {
|
|
|
265787
265188
|
}
|
|
265788
265189
|
const code = typeof chunk === "string" ? chunk.codePointAt(0) : chunk[0];
|
|
265789
265190
|
if (code === ASCII_ETX_CODE) {
|
|
265790
|
-
if (
|
|
265791
|
-
|
|
265191
|
+
if (process9.listenerCount("SIGINT") > 0) {
|
|
265192
|
+
process9.emit("SIGINT");
|
|
265792
265193
|
} else {
|
|
265793
|
-
|
|
265194
|
+
process9.kill(process9.pid, "SIGINT");
|
|
265794
265195
|
}
|
|
265795
265196
|
}
|
|
265796
265197
|
};
|
|
@@ -265809,8 +265210,8 @@ class StdinDiscarder {
|
|
|
265809
265210
|
}
|
|
265810
265211
|
}
|
|
265811
265212
|
#realStart() {
|
|
265812
|
-
const { stdin } =
|
|
265813
|
-
if (
|
|
265213
|
+
const { stdin } = process9;
|
|
265214
|
+
if (process9.platform === "win32" || !stdin?.isTTY || typeof stdin.setRawMode !== "function") {
|
|
265814
265215
|
this.#stdin = undefined;
|
|
265815
265216
|
return;
|
|
265816
265217
|
}
|
|
@@ -265843,7 +265244,7 @@ class StdinDiscarder {
|
|
|
265843
265244
|
var stdinDiscarder = new StdinDiscarder;
|
|
265844
265245
|
var stdin_discarder_default = Object.freeze(stdinDiscarder);
|
|
265845
265246
|
|
|
265846
|
-
//
|
|
265247
|
+
// node_modules/ora/index.js
|
|
265847
265248
|
var RENDER_DEFERRAL_TIMEOUT = 200;
|
|
265848
265249
|
var SYNCHRONIZED_OUTPUT_ENABLE = "\x1B[?2026h";
|
|
265849
265250
|
var SYNCHRONIZED_OUTPUT_DISABLE = "\x1B[?2026l";
|
|
@@ -265932,7 +265333,7 @@ class Ora {
|
|
|
265932
265333
|
}
|
|
265933
265334
|
this.#options = {
|
|
265934
265335
|
color: "cyan",
|
|
265935
|
-
stream:
|
|
265336
|
+
stream: process10.stderr,
|
|
265936
265337
|
discardStdin: true,
|
|
265937
265338
|
hideCursor: true,
|
|
265938
265339
|
...options
|
|
@@ -265952,7 +265353,7 @@ class Ora {
|
|
|
265952
265353
|
this.prefixText = this.#options.prefixText;
|
|
265953
265354
|
this.suffixText = this.#options.suffixText;
|
|
265954
265355
|
this.indent = this.#options.indent;
|
|
265955
|
-
if (
|
|
265356
|
+
if (process10.env.NODE_ENV === "test") {
|
|
265956
265357
|
this._stream = this.#stream;
|
|
265957
265358
|
this._isEnabled = this.#options.isEnabled;
|
|
265958
265359
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -266129,7 +265530,7 @@ class Ora {
|
|
|
266129
265530
|
if (!this.isEnabled || this.#hookedStreams.size > 0) {
|
|
266130
265531
|
return;
|
|
266131
265532
|
}
|
|
266132
|
-
const streamsToHook = new Set([this.#stream,
|
|
265533
|
+
const streamsToHook = new Set([this.#stream, process10.stdout, process10.stderr]);
|
|
266133
265534
|
for (const stream of streamsToHook) {
|
|
266134
265535
|
this.#hookStream(stream);
|
|
266135
265536
|
}
|
|
@@ -266226,7 +265627,7 @@ class Ora {
|
|
|
266226
265627
|
if (this.#options.hideCursor) {
|
|
266227
265628
|
cli_cursor_default.hide(this.#stream);
|
|
266228
265629
|
}
|
|
266229
|
-
if (this.#options.discardStdin &&
|
|
265630
|
+
if (this.#options.discardStdin && process10.stdin.isTTY) {
|
|
266230
265631
|
stdin_discarder_default.start();
|
|
266231
265632
|
this.#isDiscardingStdin = true;
|
|
266232
265633
|
}
|
|
@@ -268790,7 +268191,7 @@ function initializeContext2(params) {
|
|
|
268790
268191
|
external: params?.external ?? undefined
|
|
268791
268192
|
};
|
|
268792
268193
|
}
|
|
268793
|
-
function
|
|
268194
|
+
function process11(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
268794
268195
|
var _a3;
|
|
268795
268196
|
const def = schema._zod.def;
|
|
268796
268197
|
const seen = ctx.seen.get(schema);
|
|
@@ -268827,7 +268228,7 @@ function process13(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
268827
268228
|
if (parent) {
|
|
268828
268229
|
if (!result.ref)
|
|
268829
268230
|
result.ref = parent;
|
|
268830
|
-
|
|
268231
|
+
process11(parent, ctx, params);
|
|
268831
268232
|
ctx.seen.get(parent).isParent = true;
|
|
268832
268233
|
}
|
|
268833
268234
|
}
|
|
@@ -269108,14 +268509,14 @@ function isTransforming2(_schema, _ctx) {
|
|
|
269108
268509
|
}
|
|
269109
268510
|
var createToJSONSchemaMethod2 = (schema, processors = {}) => (params) => {
|
|
269110
268511
|
const ctx = initializeContext2({ ...params, processors });
|
|
269111
|
-
|
|
268512
|
+
process11(schema, ctx);
|
|
269112
268513
|
extractDefs2(ctx, schema);
|
|
269113
268514
|
return finalize2(ctx, schema);
|
|
269114
268515
|
};
|
|
269115
268516
|
var createStandardJSONSchemaMethod2 = (schema, io, processors = {}) => (params) => {
|
|
269116
268517
|
const { libraryOptions, target } = params ?? {};
|
|
269117
268518
|
const ctx = initializeContext2({ ...libraryOptions ?? {}, target, io, processors });
|
|
269118
|
-
|
|
268519
|
+
process11(schema, ctx);
|
|
269119
268520
|
extractDefs2(ctx, schema);
|
|
269120
268521
|
return finalize2(ctx, schema);
|
|
269121
268522
|
};
|
|
@@ -269190,7 +268591,7 @@ var arrayProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269190
268591
|
if (typeof maximum === "number")
|
|
269191
268592
|
json2.maxItems = maximum;
|
|
269192
268593
|
json2.type = "array";
|
|
269193
|
-
json2.items =
|
|
268594
|
+
json2.items = process11(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
269194
268595
|
};
|
|
269195
268596
|
var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
269196
268597
|
const json2 = _json;
|
|
@@ -269199,7 +268600,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269199
268600
|
json2.properties = {};
|
|
269200
268601
|
const shape = def.shape;
|
|
269201
268602
|
for (const key in shape) {
|
|
269202
|
-
json2.properties[key] =
|
|
268603
|
+
json2.properties[key] = process11(shape[key], ctx, {
|
|
269203
268604
|
...params,
|
|
269204
268605
|
path: [...params.path, "properties", key]
|
|
269205
268606
|
});
|
|
@@ -269222,7 +268623,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269222
268623
|
if (ctx.io === "output")
|
|
269223
268624
|
json2.additionalProperties = false;
|
|
269224
268625
|
} else if (def.catchall) {
|
|
269225
|
-
json2.additionalProperties =
|
|
268626
|
+
json2.additionalProperties = process11(def.catchall, ctx, {
|
|
269226
268627
|
...params,
|
|
269227
268628
|
path: [...params.path, "additionalProperties"]
|
|
269228
268629
|
});
|
|
@@ -269231,7 +268632,7 @@ var objectProcessor2 = (schema, ctx, _json, params) => {
|
|
|
269231
268632
|
var unionProcessor2 = (schema, ctx, json2, params) => {
|
|
269232
268633
|
const def = schema._zod.def;
|
|
269233
268634
|
const isExclusive = def.inclusive === false;
|
|
269234
|
-
const options = def.options.map((x, i) =>
|
|
268635
|
+
const options = def.options.map((x, i) => process11(x, ctx, {
|
|
269235
268636
|
...params,
|
|
269236
268637
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
269237
268638
|
}));
|
|
@@ -269243,11 +268644,11 @@ var unionProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269243
268644
|
};
|
|
269244
268645
|
var intersectionProcessor2 = (schema, ctx, json2, params) => {
|
|
269245
268646
|
const def = schema._zod.def;
|
|
269246
|
-
const a =
|
|
268647
|
+
const a = process11(def.left, ctx, {
|
|
269247
268648
|
...params,
|
|
269248
268649
|
path: [...params.path, "allOf", 0]
|
|
269249
268650
|
});
|
|
269250
|
-
const b =
|
|
268651
|
+
const b = process11(def.right, ctx, {
|
|
269251
268652
|
...params,
|
|
269252
268653
|
path: [...params.path, "allOf", 1]
|
|
269253
268654
|
});
|
|
@@ -269260,7 +268661,7 @@ var intersectionProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269260
268661
|
};
|
|
269261
268662
|
var nullableProcessor2 = (schema, ctx, json2, params) => {
|
|
269262
268663
|
const def = schema._zod.def;
|
|
269263
|
-
const inner =
|
|
268664
|
+
const inner = process11(def.innerType, ctx, params);
|
|
269264
268665
|
const seen = ctx.seen.get(schema);
|
|
269265
268666
|
if (ctx.target === "openapi-3.0") {
|
|
269266
268667
|
seen.ref = def.innerType;
|
|
@@ -269271,20 +268672,20 @@ var nullableProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269271
268672
|
};
|
|
269272
268673
|
var nonoptionalProcessor2 = (schema, ctx, _json, params) => {
|
|
269273
268674
|
const def = schema._zod.def;
|
|
269274
|
-
|
|
268675
|
+
process11(def.innerType, ctx, params);
|
|
269275
268676
|
const seen = ctx.seen.get(schema);
|
|
269276
268677
|
seen.ref = def.innerType;
|
|
269277
268678
|
};
|
|
269278
268679
|
var defaultProcessor2 = (schema, ctx, json2, params) => {
|
|
269279
268680
|
const def = schema._zod.def;
|
|
269280
|
-
|
|
268681
|
+
process11(def.innerType, ctx, params);
|
|
269281
268682
|
const seen = ctx.seen.get(schema);
|
|
269282
268683
|
seen.ref = def.innerType;
|
|
269283
268684
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
269284
268685
|
};
|
|
269285
268686
|
var prefaultProcessor2 = (schema, ctx, json2, params) => {
|
|
269286
268687
|
const def = schema._zod.def;
|
|
269287
|
-
|
|
268688
|
+
process11(def.innerType, ctx, params);
|
|
269288
268689
|
const seen = ctx.seen.get(schema);
|
|
269289
268690
|
seen.ref = def.innerType;
|
|
269290
268691
|
if (ctx.io === "input")
|
|
@@ -269292,7 +268693,7 @@ var prefaultProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269292
268693
|
};
|
|
269293
268694
|
var catchProcessor2 = (schema, ctx, json2, params) => {
|
|
269294
268695
|
const def = schema._zod.def;
|
|
269295
|
-
|
|
268696
|
+
process11(def.innerType, ctx, params);
|
|
269296
268697
|
const seen = ctx.seen.get(schema);
|
|
269297
268698
|
seen.ref = def.innerType;
|
|
269298
268699
|
let catchValue;
|
|
@@ -269306,20 +268707,20 @@ var catchProcessor2 = (schema, ctx, json2, params) => {
|
|
|
269306
268707
|
var pipeProcessor2 = (schema, ctx, _json, params) => {
|
|
269307
268708
|
const def = schema._zod.def;
|
|
269308
268709
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
269309
|
-
|
|
268710
|
+
process11(innerType, ctx, params);
|
|
269310
268711
|
const seen = ctx.seen.get(schema);
|
|
269311
268712
|
seen.ref = innerType;
|
|
269312
268713
|
};
|
|
269313
268714
|
var readonlyProcessor2 = (schema, ctx, json2, params) => {
|
|
269314
268715
|
const def = schema._zod.def;
|
|
269315
|
-
|
|
268716
|
+
process11(def.innerType, ctx, params);
|
|
269316
268717
|
const seen = ctx.seen.get(schema);
|
|
269317
268718
|
seen.ref = def.innerType;
|
|
269318
268719
|
json2.readOnly = true;
|
|
269319
268720
|
};
|
|
269320
268721
|
var optionalProcessor2 = (schema, ctx, _json, params) => {
|
|
269321
268722
|
const def = schema._zod.def;
|
|
269322
|
-
|
|
268723
|
+
process11(def.innerType, ctx, params);
|
|
269323
268724
|
const seen = ctx.seen.get(schema);
|
|
269324
268725
|
seen.ref = def.innerType;
|
|
269325
268726
|
};
|
|
@@ -272937,11 +272338,11 @@ class MaestroProcessesService extends BaseService {
|
|
|
272937
272338
|
async getAll() {
|
|
272938
272339
|
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL);
|
|
272939
272340
|
const processes = response.data?.processes || [];
|
|
272940
|
-
const processesWithName = processes.map((
|
|
272941
|
-
...
|
|
272942
|
-
name:
|
|
272341
|
+
const processesWithName = processes.map((process12) => ({
|
|
272342
|
+
...process12,
|
|
272343
|
+
name: process12.packageId
|
|
272943
272344
|
}));
|
|
272944
|
-
return processesWithName.map((
|
|
272345
|
+
return processesWithName.map((process12) => createProcessWithMethods(process12, this));
|
|
272945
272346
|
}
|
|
272946
272347
|
async getIncidents(processKey, folderKey) {
|
|
272947
272348
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
|
|
@@ -273830,7 +273231,7 @@ var ProcessMap = {
|
|
|
273830
273231
|
|
|
273831
273232
|
class ProcessService extends BaseService {
|
|
273832
273233
|
async getAll(options) {
|
|
273833
|
-
const transformProcessResponse = (
|
|
273234
|
+
const transformProcessResponse = (process12) => transformData(pascalToCamelCaseKeys(process12), ProcessMap);
|
|
273834
273235
|
return PaginationHelpers.getAll({
|
|
273835
273236
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
273836
273237
|
getEndpoint: () => PROCESS_ENDPOINTS.GET_ALL,
|
|
@@ -273860,7 +273261,7 @@ class ProcessService extends BaseService {
|
|
|
273860
273261
|
params: apiOptions,
|
|
273861
273262
|
headers
|
|
273862
273263
|
});
|
|
273863
|
-
const transformedProcess = response.data?.value.map((
|
|
273264
|
+
const transformedProcess = response.data?.value.map((process12) => transformData(pascalToCamelCaseKeys(process12), ProcessMap));
|
|
273864
273265
|
return transformedProcess;
|
|
273865
273266
|
}
|
|
273866
273267
|
async getById(id, folderId, options = {}) {
|