@melson/sdlc-mcp 0.1.1 → 0.1.2
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/{cli.js → cli.cjs} +757 -753
- package/package.json +4 -4
package/dist/{cli.js → cli.cjs}
RENAMED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
15
10
|
try {
|
|
16
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
12
|
} catch (e) {
|
|
@@ -38,13 +33,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
33
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
34
|
mod
|
|
40
35
|
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
37
|
|
|
42
38
|
// ../../node_modules/isexe/windows.js
|
|
43
39
|
var require_windows = __commonJS({
|
|
44
|
-
"../../node_modules/isexe/windows.js"(
|
|
45
|
-
|
|
40
|
+
"../../node_modules/isexe/windows.js"(exports2, module2) {
|
|
41
|
+
module2.exports = isexe;
|
|
46
42
|
isexe.sync = sync;
|
|
47
|
-
var fs =
|
|
43
|
+
var fs = require("fs");
|
|
48
44
|
function checkPathExt(path, options) {
|
|
49
45
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
50
46
|
if (!pathext) {
|
|
@@ -81,10 +77,10 @@ var require_windows = __commonJS({
|
|
|
81
77
|
|
|
82
78
|
// ../../node_modules/isexe/mode.js
|
|
83
79
|
var require_mode = __commonJS({
|
|
84
|
-
"../../node_modules/isexe/mode.js"(
|
|
85
|
-
|
|
80
|
+
"../../node_modules/isexe/mode.js"(exports2, module2) {
|
|
81
|
+
module2.exports = isexe;
|
|
86
82
|
isexe.sync = sync;
|
|
87
|
-
var fs =
|
|
83
|
+
var fs = require("fs");
|
|
88
84
|
function isexe(path, options, cb) {
|
|
89
85
|
fs.stat(path, function(er, stat) {
|
|
90
86
|
cb(er, er ? false : checkStat(stat, options));
|
|
@@ -114,15 +110,15 @@ var require_mode = __commonJS({
|
|
|
114
110
|
|
|
115
111
|
// ../../node_modules/isexe/index.js
|
|
116
112
|
var require_isexe = __commonJS({
|
|
117
|
-
"../../node_modules/isexe/index.js"(
|
|
118
|
-
var fs =
|
|
113
|
+
"../../node_modules/isexe/index.js"(exports2, module2) {
|
|
114
|
+
var fs = require("fs");
|
|
119
115
|
var core;
|
|
120
116
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
121
117
|
core = require_windows();
|
|
122
118
|
} else {
|
|
123
119
|
core = require_mode();
|
|
124
120
|
}
|
|
125
|
-
|
|
121
|
+
module2.exports = isexe;
|
|
126
122
|
isexe.sync = sync;
|
|
127
123
|
function isexe(path, options, cb) {
|
|
128
124
|
if (typeof options === "function") {
|
|
@@ -133,12 +129,12 @@ var require_isexe = __commonJS({
|
|
|
133
129
|
if (typeof Promise !== "function") {
|
|
134
130
|
throw new TypeError("callback not provided");
|
|
135
131
|
}
|
|
136
|
-
return new Promise(function(
|
|
132
|
+
return new Promise(function(resolve4, reject) {
|
|
137
133
|
isexe(path, options || {}, function(er, is) {
|
|
138
134
|
if (er) {
|
|
139
135
|
reject(er);
|
|
140
136
|
} else {
|
|
141
|
-
|
|
137
|
+
resolve4(is);
|
|
142
138
|
}
|
|
143
139
|
});
|
|
144
140
|
});
|
|
@@ -169,9 +165,9 @@ var require_isexe = __commonJS({
|
|
|
169
165
|
|
|
170
166
|
// ../../node_modules/which/which.js
|
|
171
167
|
var require_which = __commonJS({
|
|
172
|
-
"../../node_modules/which/which.js"(
|
|
168
|
+
"../../node_modules/which/which.js"(exports2, module2) {
|
|
173
169
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
174
|
-
var path =
|
|
170
|
+
var path = require("path");
|
|
175
171
|
var COLON = isWindows ? ";" : ":";
|
|
176
172
|
var isexe = require_isexe();
|
|
177
173
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -204,27 +200,27 @@ var require_which = __commonJS({
|
|
|
204
200
|
opt = {};
|
|
205
201
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
206
202
|
const found = [];
|
|
207
|
-
const step = (i) => new Promise((
|
|
203
|
+
const step = (i) => new Promise((resolve4, reject) => {
|
|
208
204
|
if (i === pathEnv.length)
|
|
209
|
-
return opt.all && found.length ?
|
|
205
|
+
return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
210
206
|
const ppRaw = pathEnv[i];
|
|
211
207
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
212
208
|
const pCmd = path.join(pathPart, cmd);
|
|
213
209
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
214
|
-
|
|
210
|
+
resolve4(subStep(p, i, 0));
|
|
215
211
|
});
|
|
216
|
-
const subStep = (p, i, ii) => new Promise((
|
|
212
|
+
const subStep = (p, i, ii) => new Promise((resolve4, reject) => {
|
|
217
213
|
if (ii === pathExt.length)
|
|
218
|
-
return
|
|
214
|
+
return resolve4(step(i + 1));
|
|
219
215
|
const ext = pathExt[ii];
|
|
220
216
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
221
217
|
if (!er && is) {
|
|
222
218
|
if (opt.all)
|
|
223
219
|
found.push(p + ext);
|
|
224
220
|
else
|
|
225
|
-
return
|
|
221
|
+
return resolve4(p + ext);
|
|
226
222
|
}
|
|
227
|
-
return
|
|
223
|
+
return resolve4(subStep(p, i, ii + 1));
|
|
228
224
|
});
|
|
229
225
|
});
|
|
230
226
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -258,14 +254,14 @@ var require_which = __commonJS({
|
|
|
258
254
|
return null;
|
|
259
255
|
throw getNotFoundError(cmd);
|
|
260
256
|
};
|
|
261
|
-
|
|
257
|
+
module2.exports = which;
|
|
262
258
|
which.sync = whichSync;
|
|
263
259
|
}
|
|
264
260
|
});
|
|
265
261
|
|
|
266
262
|
// ../../node_modules/path-key/index.js
|
|
267
263
|
var require_path_key = __commonJS({
|
|
268
|
-
"../../node_modules/path-key/index.js"(
|
|
264
|
+
"../../node_modules/path-key/index.js"(exports2, module2) {
|
|
269
265
|
"use strict";
|
|
270
266
|
var pathKey = (options = {}) => {
|
|
271
267
|
const environment = options.env || process.env;
|
|
@@ -275,16 +271,16 @@ var require_path_key = __commonJS({
|
|
|
275
271
|
}
|
|
276
272
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
277
273
|
};
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
module2.exports = pathKey;
|
|
275
|
+
module2.exports.default = pathKey;
|
|
280
276
|
}
|
|
281
277
|
});
|
|
282
278
|
|
|
283
279
|
// ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
284
280
|
var require_resolveCommand = __commonJS({
|
|
285
|
-
"../../node_modules/cross-spawn/lib/util/resolveCommand.js"(
|
|
281
|
+
"../../node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
286
282
|
"use strict";
|
|
287
|
-
var path =
|
|
283
|
+
var path = require("path");
|
|
288
284
|
var which = require_which();
|
|
289
285
|
var getPathKey = require_path_key();
|
|
290
286
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -318,13 +314,13 @@ var require_resolveCommand = __commonJS({
|
|
|
318
314
|
function resolveCommand(parsed) {
|
|
319
315
|
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
320
316
|
}
|
|
321
|
-
|
|
317
|
+
module2.exports = resolveCommand;
|
|
322
318
|
}
|
|
323
319
|
});
|
|
324
320
|
|
|
325
321
|
// ../../node_modules/cross-spawn/lib/util/escape.js
|
|
326
322
|
var require_escape = __commonJS({
|
|
327
|
-
"../../node_modules/cross-spawn/lib/util/escape.js"(
|
|
323
|
+
"../../node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
328
324
|
"use strict";
|
|
329
325
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
330
326
|
function escapeCommand(arg) {
|
|
@@ -342,25 +338,25 @@ var require_escape = __commonJS({
|
|
|
342
338
|
}
|
|
343
339
|
return arg;
|
|
344
340
|
}
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
module2.exports.command = escapeCommand;
|
|
342
|
+
module2.exports.argument = escapeArgument;
|
|
347
343
|
}
|
|
348
344
|
});
|
|
349
345
|
|
|
350
346
|
// ../../node_modules/shebang-regex/index.js
|
|
351
347
|
var require_shebang_regex = __commonJS({
|
|
352
|
-
"../../node_modules/shebang-regex/index.js"(
|
|
348
|
+
"../../node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
353
349
|
"use strict";
|
|
354
|
-
|
|
350
|
+
module2.exports = /^#!(.*)/;
|
|
355
351
|
}
|
|
356
352
|
});
|
|
357
353
|
|
|
358
354
|
// ../../node_modules/shebang-command/index.js
|
|
359
355
|
var require_shebang_command = __commonJS({
|
|
360
|
-
"../../node_modules/shebang-command/index.js"(
|
|
356
|
+
"../../node_modules/shebang-command/index.js"(exports2, module2) {
|
|
361
357
|
"use strict";
|
|
362
358
|
var shebangRegex = require_shebang_regex();
|
|
363
|
-
|
|
359
|
+
module2.exports = (string4 = "") => {
|
|
364
360
|
const match = string4.match(shebangRegex);
|
|
365
361
|
if (!match) {
|
|
366
362
|
return null;
|
|
@@ -377,9 +373,9 @@ var require_shebang_command = __commonJS({
|
|
|
377
373
|
|
|
378
374
|
// ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
379
375
|
var require_readShebang = __commonJS({
|
|
380
|
-
"../../node_modules/cross-spawn/lib/util/readShebang.js"(
|
|
376
|
+
"../../node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
381
377
|
"use strict";
|
|
382
|
-
var fs =
|
|
378
|
+
var fs = require("fs");
|
|
383
379
|
var shebangCommand = require_shebang_command();
|
|
384
380
|
function readShebang(command) {
|
|
385
381
|
const size = 150;
|
|
@@ -393,15 +389,15 @@ var require_readShebang = __commonJS({
|
|
|
393
389
|
}
|
|
394
390
|
return shebangCommand(buffer.toString());
|
|
395
391
|
}
|
|
396
|
-
|
|
392
|
+
module2.exports = readShebang;
|
|
397
393
|
}
|
|
398
394
|
});
|
|
399
395
|
|
|
400
396
|
// ../../node_modules/cross-spawn/lib/parse.js
|
|
401
397
|
var require_parse = __commonJS({
|
|
402
|
-
"../../node_modules/cross-spawn/lib/parse.js"(
|
|
398
|
+
"../../node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
403
399
|
"use strict";
|
|
404
|
-
var path =
|
|
400
|
+
var path = require("path");
|
|
405
401
|
var resolveCommand = require_resolveCommand();
|
|
406
402
|
var escape2 = require_escape();
|
|
407
403
|
var readShebang = require_readShebang();
|
|
@@ -455,13 +451,13 @@ var require_parse = __commonJS({
|
|
|
455
451
|
};
|
|
456
452
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
457
453
|
}
|
|
458
|
-
|
|
454
|
+
module2.exports = parse3;
|
|
459
455
|
}
|
|
460
456
|
});
|
|
461
457
|
|
|
462
458
|
// ../../node_modules/cross-spawn/lib/enoent.js
|
|
463
459
|
var require_enoent = __commonJS({
|
|
464
|
-
"../../node_modules/cross-spawn/lib/enoent.js"(
|
|
460
|
+
"../../node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
465
461
|
"use strict";
|
|
466
462
|
var isWin = process.platform === "win32";
|
|
467
463
|
function notFoundError(original, syscall) {
|
|
@@ -500,7 +496,7 @@ var require_enoent = __commonJS({
|
|
|
500
496
|
}
|
|
501
497
|
return null;
|
|
502
498
|
}
|
|
503
|
-
|
|
499
|
+
module2.exports = {
|
|
504
500
|
hookChildProcess,
|
|
505
501
|
verifyENOENT,
|
|
506
502
|
verifyENOENTSync,
|
|
@@ -511,9 +507,9 @@ var require_enoent = __commonJS({
|
|
|
511
507
|
|
|
512
508
|
// ../../node_modules/cross-spawn/index.js
|
|
513
509
|
var require_cross_spawn = __commonJS({
|
|
514
|
-
"../../node_modules/cross-spawn/index.js"(
|
|
510
|
+
"../../node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
515
511
|
"use strict";
|
|
516
|
-
var cp =
|
|
512
|
+
var cp = require("child_process");
|
|
517
513
|
var parse3 = require_parse();
|
|
518
514
|
var enoent = require_enoent();
|
|
519
515
|
function spawn3(command, args, options) {
|
|
@@ -528,28 +524,28 @@ var require_cross_spawn = __commonJS({
|
|
|
528
524
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
529
525
|
return result;
|
|
530
526
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
module2.exports = spawn3;
|
|
528
|
+
module2.exports.spawn = spawn3;
|
|
529
|
+
module2.exports.sync = spawnSync;
|
|
530
|
+
module2.exports._parse = parse3;
|
|
531
|
+
module2.exports._enoent = enoent;
|
|
536
532
|
}
|
|
537
533
|
});
|
|
538
534
|
|
|
539
535
|
// ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
540
536
|
var require_code = __commonJS({
|
|
541
|
-
"../../node_modules/ajv/dist/compile/codegen/code.js"(
|
|
537
|
+
"../../node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
|
|
542
538
|
"use strict";
|
|
543
|
-
Object.defineProperty(
|
|
544
|
-
|
|
539
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
540
|
+
exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
|
|
545
541
|
var _CodeOrName = class {
|
|
546
542
|
};
|
|
547
|
-
|
|
548
|
-
|
|
543
|
+
exports2._CodeOrName = _CodeOrName;
|
|
544
|
+
exports2.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
549
545
|
var Name = class extends _CodeOrName {
|
|
550
546
|
constructor(s) {
|
|
551
547
|
super();
|
|
552
|
-
if (!
|
|
548
|
+
if (!exports2.IDENTIFIER.test(s))
|
|
553
549
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
554
550
|
this.str = s;
|
|
555
551
|
}
|
|
@@ -563,7 +559,7 @@ var require_code = __commonJS({
|
|
|
563
559
|
return { [this.str]: 1 };
|
|
564
560
|
}
|
|
565
561
|
};
|
|
566
|
-
|
|
562
|
+
exports2.Name = Name;
|
|
567
563
|
var _Code = class extends _CodeOrName {
|
|
568
564
|
constructor(code) {
|
|
569
565
|
super();
|
|
@@ -591,8 +587,8 @@ var require_code = __commonJS({
|
|
|
591
587
|
}, {});
|
|
592
588
|
}
|
|
593
589
|
};
|
|
594
|
-
|
|
595
|
-
|
|
590
|
+
exports2._Code = _Code;
|
|
591
|
+
exports2.nil = new _Code("");
|
|
596
592
|
function _(strs, ...args) {
|
|
597
593
|
const code = [strs[0]];
|
|
598
594
|
let i = 0;
|
|
@@ -602,7 +598,7 @@ var require_code = __commonJS({
|
|
|
602
598
|
}
|
|
603
599
|
return new _Code(code);
|
|
604
600
|
}
|
|
605
|
-
|
|
601
|
+
exports2._ = _;
|
|
606
602
|
var plus = new _Code("+");
|
|
607
603
|
function str(strs, ...args) {
|
|
608
604
|
const expr = [safeStringify(strs[0])];
|
|
@@ -615,7 +611,7 @@ var require_code = __commonJS({
|
|
|
615
611
|
optimize(expr);
|
|
616
612
|
return new _Code(expr);
|
|
617
613
|
}
|
|
618
|
-
|
|
614
|
+
exports2.str = str;
|
|
619
615
|
function addCodeArg(code, arg) {
|
|
620
616
|
if (arg instanceof _Code)
|
|
621
617
|
code.push(...arg._items);
|
|
@@ -624,7 +620,7 @@ var require_code = __commonJS({
|
|
|
624
620
|
else
|
|
625
621
|
code.push(interpolate(arg));
|
|
626
622
|
}
|
|
627
|
-
|
|
623
|
+
exports2.addCodeArg = addCodeArg;
|
|
628
624
|
function optimize(expr) {
|
|
629
625
|
let i = 1;
|
|
630
626
|
while (i < expr.length - 1) {
|
|
@@ -660,42 +656,42 @@ var require_code = __commonJS({
|
|
|
660
656
|
function strConcat(c1, c2) {
|
|
661
657
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
662
658
|
}
|
|
663
|
-
|
|
659
|
+
exports2.strConcat = strConcat;
|
|
664
660
|
function interpolate(x) {
|
|
665
661
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
666
662
|
}
|
|
667
663
|
function stringify(x) {
|
|
668
664
|
return new _Code(safeStringify(x));
|
|
669
665
|
}
|
|
670
|
-
|
|
666
|
+
exports2.stringify = stringify;
|
|
671
667
|
function safeStringify(x) {
|
|
672
668
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
673
669
|
}
|
|
674
|
-
|
|
670
|
+
exports2.safeStringify = safeStringify;
|
|
675
671
|
function getProperty(key) {
|
|
676
|
-
return typeof key == "string" &&
|
|
672
|
+
return typeof key == "string" && exports2.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
677
673
|
}
|
|
678
|
-
|
|
674
|
+
exports2.getProperty = getProperty;
|
|
679
675
|
function getEsmExportName(key) {
|
|
680
|
-
if (typeof key == "string" &&
|
|
676
|
+
if (typeof key == "string" && exports2.IDENTIFIER.test(key)) {
|
|
681
677
|
return new _Code(`${key}`);
|
|
682
678
|
}
|
|
683
679
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
684
680
|
}
|
|
685
|
-
|
|
681
|
+
exports2.getEsmExportName = getEsmExportName;
|
|
686
682
|
function regexpCode(rx) {
|
|
687
683
|
return new _Code(rx.toString());
|
|
688
684
|
}
|
|
689
|
-
|
|
685
|
+
exports2.regexpCode = regexpCode;
|
|
690
686
|
}
|
|
691
687
|
});
|
|
692
688
|
|
|
693
689
|
// ../../node_modules/ajv/dist/compile/codegen/scope.js
|
|
694
690
|
var require_scope = __commonJS({
|
|
695
|
-
"../../node_modules/ajv/dist/compile/codegen/scope.js"(
|
|
691
|
+
"../../node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
|
|
696
692
|
"use strict";
|
|
697
|
-
Object.defineProperty(
|
|
698
|
-
|
|
693
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
694
|
+
exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
|
|
699
695
|
var code_1 = require_code();
|
|
700
696
|
var ValueError = class extends Error {
|
|
701
697
|
constructor(name) {
|
|
@@ -707,8 +703,8 @@ var require_scope = __commonJS({
|
|
|
707
703
|
(function(UsedValueState2) {
|
|
708
704
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
709
705
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
710
|
-
})(UsedValueState || (
|
|
711
|
-
|
|
706
|
+
})(UsedValueState || (exports2.UsedValueState = UsedValueState = {}));
|
|
707
|
+
exports2.varKinds = {
|
|
712
708
|
const: new code_1.Name("const"),
|
|
713
709
|
let: new code_1.Name("let"),
|
|
714
710
|
var: new code_1.Name("var")
|
|
@@ -737,7 +733,7 @@ var require_scope = __commonJS({
|
|
|
737
733
|
return this._names[prefix] = { prefix, index: 0 };
|
|
738
734
|
}
|
|
739
735
|
};
|
|
740
|
-
|
|
736
|
+
exports2.Scope = Scope;
|
|
741
737
|
var ValueScopeName = class extends code_1.Name {
|
|
742
738
|
constructor(prefix, nameStr) {
|
|
743
739
|
super(nameStr);
|
|
@@ -748,7 +744,7 @@ var require_scope = __commonJS({
|
|
|
748
744
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
749
745
|
}
|
|
750
746
|
};
|
|
751
|
-
|
|
747
|
+
exports2.ValueScopeName = ValueScopeName;
|
|
752
748
|
var line = (0, code_1._)`\n`;
|
|
753
749
|
var ValueScope = class extends Scope {
|
|
754
750
|
constructor(opts) {
|
|
@@ -818,7 +814,7 @@ var require_scope = __commonJS({
|
|
|
818
814
|
nameSet.set(name, UsedValueState.Started);
|
|
819
815
|
let c = valueCode(name);
|
|
820
816
|
if (c) {
|
|
821
|
-
const def = this.opts.es5 ?
|
|
817
|
+
const def = this.opts.es5 ? exports2.varKinds.var : exports2.varKinds.const;
|
|
822
818
|
code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
|
|
823
819
|
} else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
|
|
824
820
|
code = (0, code_1._)`${code}${c}${this.opts._n}`;
|
|
@@ -831,57 +827,57 @@ var require_scope = __commonJS({
|
|
|
831
827
|
return code;
|
|
832
828
|
}
|
|
833
829
|
};
|
|
834
|
-
|
|
830
|
+
exports2.ValueScope = ValueScope;
|
|
835
831
|
}
|
|
836
832
|
});
|
|
837
833
|
|
|
838
834
|
// ../../node_modules/ajv/dist/compile/codegen/index.js
|
|
839
835
|
var require_codegen = __commonJS({
|
|
840
|
-
"../../node_modules/ajv/dist/compile/codegen/index.js"(
|
|
836
|
+
"../../node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
|
|
841
837
|
"use strict";
|
|
842
|
-
Object.defineProperty(
|
|
843
|
-
|
|
838
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
839
|
+
exports2.or = exports2.and = exports2.not = exports2.CodeGen = exports2.operators = exports2.varKinds = exports2.ValueScopeName = exports2.ValueScope = exports2.Scope = exports2.Name = exports2.regexpCode = exports2.stringify = exports2.getProperty = exports2.nil = exports2.strConcat = exports2.str = exports2._ = void 0;
|
|
844
840
|
var code_1 = require_code();
|
|
845
841
|
var scope_1 = require_scope();
|
|
846
842
|
var code_2 = require_code();
|
|
847
|
-
Object.defineProperty(
|
|
843
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
848
844
|
return code_2._;
|
|
849
845
|
} });
|
|
850
|
-
Object.defineProperty(
|
|
846
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
851
847
|
return code_2.str;
|
|
852
848
|
} });
|
|
853
|
-
Object.defineProperty(
|
|
849
|
+
Object.defineProperty(exports2, "strConcat", { enumerable: true, get: function() {
|
|
854
850
|
return code_2.strConcat;
|
|
855
851
|
} });
|
|
856
|
-
Object.defineProperty(
|
|
852
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
857
853
|
return code_2.nil;
|
|
858
854
|
} });
|
|
859
|
-
Object.defineProperty(
|
|
855
|
+
Object.defineProperty(exports2, "getProperty", { enumerable: true, get: function() {
|
|
860
856
|
return code_2.getProperty;
|
|
861
857
|
} });
|
|
862
|
-
Object.defineProperty(
|
|
858
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
863
859
|
return code_2.stringify;
|
|
864
860
|
} });
|
|
865
|
-
Object.defineProperty(
|
|
861
|
+
Object.defineProperty(exports2, "regexpCode", { enumerable: true, get: function() {
|
|
866
862
|
return code_2.regexpCode;
|
|
867
863
|
} });
|
|
868
|
-
Object.defineProperty(
|
|
864
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
869
865
|
return code_2.Name;
|
|
870
866
|
} });
|
|
871
867
|
var scope_2 = require_scope();
|
|
872
|
-
Object.defineProperty(
|
|
868
|
+
Object.defineProperty(exports2, "Scope", { enumerable: true, get: function() {
|
|
873
869
|
return scope_2.Scope;
|
|
874
870
|
} });
|
|
875
|
-
Object.defineProperty(
|
|
871
|
+
Object.defineProperty(exports2, "ValueScope", { enumerable: true, get: function() {
|
|
876
872
|
return scope_2.ValueScope;
|
|
877
873
|
} });
|
|
878
|
-
Object.defineProperty(
|
|
874
|
+
Object.defineProperty(exports2, "ValueScopeName", { enumerable: true, get: function() {
|
|
879
875
|
return scope_2.ValueScopeName;
|
|
880
876
|
} });
|
|
881
|
-
Object.defineProperty(
|
|
877
|
+
Object.defineProperty(exports2, "varKinds", { enumerable: true, get: function() {
|
|
882
878
|
return scope_2.varKinds;
|
|
883
879
|
} });
|
|
884
|
-
|
|
880
|
+
exports2.operators = {
|
|
885
881
|
GT: new code_1._Code(">"),
|
|
886
882
|
GTE: new code_1._Code(">="),
|
|
887
883
|
LT: new code_1._Code("<"),
|
|
@@ -1294,7 +1290,7 @@ var require_codegen = __commonJS({
|
|
|
1294
1290
|
}
|
|
1295
1291
|
// `+=` code
|
|
1296
1292
|
add(lhs, rhs) {
|
|
1297
|
-
return this._leafNode(new AssignOp(lhs,
|
|
1293
|
+
return this._leafNode(new AssignOp(lhs, exports2.operators.ADD, rhs));
|
|
1298
1294
|
}
|
|
1299
1295
|
// appends passed SafeExpr to code or executes Block
|
|
1300
1296
|
code(c) {
|
|
@@ -1494,7 +1490,7 @@ var require_codegen = __commonJS({
|
|
|
1494
1490
|
ns[ns.length - 1] = node2;
|
|
1495
1491
|
}
|
|
1496
1492
|
};
|
|
1497
|
-
|
|
1493
|
+
exports2.CodeGen = CodeGen;
|
|
1498
1494
|
function addNames(names, from) {
|
|
1499
1495
|
for (const n in from)
|
|
1500
1496
|
names[n] = (names[n] || 0) + (from[n] || 0);
|
|
@@ -1535,17 +1531,17 @@ var require_codegen = __commonJS({
|
|
|
1535
1531
|
function not(x) {
|
|
1536
1532
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1537
1533
|
}
|
|
1538
|
-
|
|
1539
|
-
var andCode = mappend(
|
|
1534
|
+
exports2.not = not;
|
|
1535
|
+
var andCode = mappend(exports2.operators.AND);
|
|
1540
1536
|
function and(...args) {
|
|
1541
1537
|
return args.reduce(andCode);
|
|
1542
1538
|
}
|
|
1543
|
-
|
|
1544
|
-
var orCode = mappend(
|
|
1539
|
+
exports2.and = and;
|
|
1540
|
+
var orCode = mappend(exports2.operators.OR);
|
|
1545
1541
|
function or(...args) {
|
|
1546
1542
|
return args.reduce(orCode);
|
|
1547
1543
|
}
|
|
1548
|
-
|
|
1544
|
+
exports2.or = or;
|
|
1549
1545
|
function mappend(op) {
|
|
1550
1546
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1551
1547
|
}
|
|
@@ -1557,10 +1553,10 @@ var require_codegen = __commonJS({
|
|
|
1557
1553
|
|
|
1558
1554
|
// ../../node_modules/ajv/dist/compile/util.js
|
|
1559
1555
|
var require_util = __commonJS({
|
|
1560
|
-
"../../node_modules/ajv/dist/compile/util.js"(
|
|
1556
|
+
"../../node_modules/ajv/dist/compile/util.js"(exports2) {
|
|
1561
1557
|
"use strict";
|
|
1562
|
-
Object.defineProperty(
|
|
1563
|
-
|
|
1558
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1559
|
+
exports2.checkStrictMode = exports2.getErrorPath = exports2.Type = exports2.useFunc = exports2.setEvaluated = exports2.evaluatedPropsToName = exports2.mergeEvaluated = exports2.eachItem = exports2.unescapeJsonPointer = exports2.escapeJsonPointer = exports2.escapeFragment = exports2.unescapeFragment = exports2.schemaRefOrVal = exports2.schemaHasRulesButRef = exports2.schemaHasRules = exports2.checkUnknownRules = exports2.alwaysValidSchema = exports2.toHash = void 0;
|
|
1564
1560
|
var codegen_1 = require_codegen();
|
|
1565
1561
|
var code_1 = require_code();
|
|
1566
1562
|
function toHash(arr) {
|
|
@@ -1569,7 +1565,7 @@ var require_util = __commonJS({
|
|
|
1569
1565
|
hash2[item] = true;
|
|
1570
1566
|
return hash2;
|
|
1571
1567
|
}
|
|
1572
|
-
|
|
1568
|
+
exports2.toHash = toHash;
|
|
1573
1569
|
function alwaysValidSchema(it, schema) {
|
|
1574
1570
|
if (typeof schema == "boolean")
|
|
1575
1571
|
return schema;
|
|
@@ -1578,7 +1574,7 @@ var require_util = __commonJS({
|
|
|
1578
1574
|
checkUnknownRules(it, schema);
|
|
1579
1575
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1580
1576
|
}
|
|
1581
|
-
|
|
1577
|
+
exports2.alwaysValidSchema = alwaysValidSchema;
|
|
1582
1578
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1583
1579
|
const { opts, self } = it;
|
|
1584
1580
|
if (!opts.strictSchema)
|
|
@@ -1591,7 +1587,7 @@ var require_util = __commonJS({
|
|
|
1591
1587
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1592
1588
|
}
|
|
1593
1589
|
}
|
|
1594
|
-
|
|
1590
|
+
exports2.checkUnknownRules = checkUnknownRules;
|
|
1595
1591
|
function schemaHasRules(schema, rules) {
|
|
1596
1592
|
if (typeof schema == "boolean")
|
|
1597
1593
|
return !schema;
|
|
@@ -1600,7 +1596,7 @@ var require_util = __commonJS({
|
|
|
1600
1596
|
return true;
|
|
1601
1597
|
return false;
|
|
1602
1598
|
}
|
|
1603
|
-
|
|
1599
|
+
exports2.schemaHasRules = schemaHasRules;
|
|
1604
1600
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1605
1601
|
if (typeof schema == "boolean")
|
|
1606
1602
|
return !schema;
|
|
@@ -1609,7 +1605,7 @@ var require_util = __commonJS({
|
|
|
1609
1605
|
return true;
|
|
1610
1606
|
return false;
|
|
1611
1607
|
}
|
|
1612
|
-
|
|
1608
|
+
exports2.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1613
1609
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1614
1610
|
if (!$data) {
|
|
1615
1611
|
if (typeof schema == "number" || typeof schema == "boolean")
|
|
@@ -1619,25 +1615,25 @@ var require_util = __commonJS({
|
|
|
1619
1615
|
}
|
|
1620
1616
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1621
1617
|
}
|
|
1622
|
-
|
|
1618
|
+
exports2.schemaRefOrVal = schemaRefOrVal;
|
|
1623
1619
|
function unescapeFragment(str) {
|
|
1624
1620
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1625
1621
|
}
|
|
1626
|
-
|
|
1622
|
+
exports2.unescapeFragment = unescapeFragment;
|
|
1627
1623
|
function escapeFragment(str) {
|
|
1628
1624
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1629
1625
|
}
|
|
1630
|
-
|
|
1626
|
+
exports2.escapeFragment = escapeFragment;
|
|
1631
1627
|
function escapeJsonPointer(str) {
|
|
1632
1628
|
if (typeof str == "number")
|
|
1633
1629
|
return `${str}`;
|
|
1634
1630
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1635
1631
|
}
|
|
1636
|
-
|
|
1632
|
+
exports2.escapeJsonPointer = escapeJsonPointer;
|
|
1637
1633
|
function unescapeJsonPointer(str) {
|
|
1638
1634
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1639
1635
|
}
|
|
1640
|
-
|
|
1636
|
+
exports2.unescapeJsonPointer = unescapeJsonPointer;
|
|
1641
1637
|
function eachItem(xs, f) {
|
|
1642
1638
|
if (Array.isArray(xs)) {
|
|
1643
1639
|
for (const x of xs)
|
|
@@ -1646,14 +1642,14 @@ var require_util = __commonJS({
|
|
|
1646
1642
|
f(xs);
|
|
1647
1643
|
}
|
|
1648
1644
|
}
|
|
1649
|
-
|
|
1645
|
+
exports2.eachItem = eachItem;
|
|
1650
1646
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues3, resultToName }) {
|
|
1651
1647
|
return (gen, from, to, toName) => {
|
|
1652
1648
|
const res = to === void 0 ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues3(from, to);
|
|
1653
1649
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1654
1650
|
};
|
|
1655
1651
|
}
|
|
1656
|
-
|
|
1652
|
+
exports2.mergeEvaluated = {
|
|
1657
1653
|
props: makeMergeEvaluated({
|
|
1658
1654
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1659
1655
|
gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`));
|
|
@@ -1684,11 +1680,11 @@ var require_util = __commonJS({
|
|
|
1684
1680
|
setEvaluated(gen, props, ps);
|
|
1685
1681
|
return props;
|
|
1686
1682
|
}
|
|
1687
|
-
|
|
1683
|
+
exports2.evaluatedPropsToName = evaluatedPropsToName;
|
|
1688
1684
|
function setEvaluated(gen, props, ps) {
|
|
1689
1685
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1690
1686
|
}
|
|
1691
|
-
|
|
1687
|
+
exports2.setEvaluated = setEvaluated;
|
|
1692
1688
|
var snippets = {};
|
|
1693
1689
|
function useFunc(gen, f) {
|
|
1694
1690
|
return gen.scopeValue("func", {
|
|
@@ -1696,12 +1692,12 @@ var require_util = __commonJS({
|
|
|
1696
1692
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1697
1693
|
});
|
|
1698
1694
|
}
|
|
1699
|
-
|
|
1695
|
+
exports2.useFunc = useFunc;
|
|
1700
1696
|
var Type;
|
|
1701
1697
|
(function(Type2) {
|
|
1702
1698
|
Type2[Type2["Num"] = 0] = "Num";
|
|
1703
1699
|
Type2[Type2["Str"] = 1] = "Str";
|
|
1704
|
-
})(Type || (
|
|
1700
|
+
})(Type || (exports2.Type = Type = {}));
|
|
1705
1701
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1706
1702
|
if (dataProp instanceof codegen_1.Name) {
|
|
1707
1703
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -1709,7 +1705,7 @@ var require_util = __commonJS({
|
|
|
1709
1705
|
}
|
|
1710
1706
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1711
1707
|
}
|
|
1712
|
-
|
|
1708
|
+
exports2.getErrorPath = getErrorPath;
|
|
1713
1709
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1714
1710
|
if (!mode)
|
|
1715
1711
|
return;
|
|
@@ -1718,15 +1714,15 @@ var require_util = __commonJS({
|
|
|
1718
1714
|
throw new Error(msg);
|
|
1719
1715
|
it.self.logger.warn(msg);
|
|
1720
1716
|
}
|
|
1721
|
-
|
|
1717
|
+
exports2.checkStrictMode = checkStrictMode;
|
|
1722
1718
|
}
|
|
1723
1719
|
});
|
|
1724
1720
|
|
|
1725
1721
|
// ../../node_modules/ajv/dist/compile/names.js
|
|
1726
1722
|
var require_names = __commonJS({
|
|
1727
|
-
"../../node_modules/ajv/dist/compile/names.js"(
|
|
1723
|
+
"../../node_modules/ajv/dist/compile/names.js"(exports2) {
|
|
1728
1724
|
"use strict";
|
|
1729
|
-
Object.defineProperty(
|
|
1725
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1730
1726
|
var codegen_1 = require_codegen();
|
|
1731
1727
|
var names = {
|
|
1732
1728
|
// validation function arguments
|
|
@@ -1757,26 +1753,26 @@ var require_names = __commonJS({
|
|
|
1757
1753
|
jsonLen: new codegen_1.Name("jsonLen"),
|
|
1758
1754
|
jsonPart: new codegen_1.Name("jsonPart")
|
|
1759
1755
|
};
|
|
1760
|
-
|
|
1756
|
+
exports2.default = names;
|
|
1761
1757
|
}
|
|
1762
1758
|
});
|
|
1763
1759
|
|
|
1764
1760
|
// ../../node_modules/ajv/dist/compile/errors.js
|
|
1765
1761
|
var require_errors = __commonJS({
|
|
1766
|
-
"../../node_modules/ajv/dist/compile/errors.js"(
|
|
1762
|
+
"../../node_modules/ajv/dist/compile/errors.js"(exports2) {
|
|
1767
1763
|
"use strict";
|
|
1768
|
-
Object.defineProperty(
|
|
1769
|
-
|
|
1764
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1765
|
+
exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
|
|
1770
1766
|
var codegen_1 = require_codegen();
|
|
1771
1767
|
var util_1 = require_util();
|
|
1772
1768
|
var names_1 = require_names();
|
|
1773
|
-
|
|
1769
|
+
exports2.keywordError = {
|
|
1774
1770
|
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
|
|
1775
1771
|
};
|
|
1776
|
-
|
|
1772
|
+
exports2.keyword$DataError = {
|
|
1777
1773
|
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
|
|
1778
1774
|
};
|
|
1779
|
-
function reportError(cxt, error62 =
|
|
1775
|
+
function reportError(cxt, error62 = exports2.keywordError, errorPaths, overrideAllErrors) {
|
|
1780
1776
|
const { it } = cxt;
|
|
1781
1777
|
const { gen, compositeRule, allErrors } = it;
|
|
1782
1778
|
const errObj = errorObjectCode(cxt, error62, errorPaths);
|
|
@@ -1786,8 +1782,8 @@ var require_errors = __commonJS({
|
|
|
1786
1782
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1787
1783
|
}
|
|
1788
1784
|
}
|
|
1789
|
-
|
|
1790
|
-
function reportExtraError(cxt, error62 =
|
|
1785
|
+
exports2.reportError = reportError;
|
|
1786
|
+
function reportExtraError(cxt, error62 = exports2.keywordError, errorPaths) {
|
|
1791
1787
|
const { it } = cxt;
|
|
1792
1788
|
const { gen, compositeRule, allErrors } = it;
|
|
1793
1789
|
const errObj = errorObjectCode(cxt, error62, errorPaths);
|
|
@@ -1796,12 +1792,12 @@ var require_errors = __commonJS({
|
|
|
1796
1792
|
returnErrors(it, names_1.default.vErrors);
|
|
1797
1793
|
}
|
|
1798
1794
|
}
|
|
1799
|
-
|
|
1795
|
+
exports2.reportExtraError = reportExtraError;
|
|
1800
1796
|
function resetErrorsCount(gen, errsCount) {
|
|
1801
1797
|
gen.assign(names_1.default.errors, errsCount);
|
|
1802
1798
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
|
|
1803
1799
|
}
|
|
1804
|
-
|
|
1800
|
+
exports2.resetErrorsCount = resetErrorsCount;
|
|
1805
1801
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1806
1802
|
if (errsCount === void 0)
|
|
1807
1803
|
throw new Error("ajv implementation error");
|
|
@@ -1816,7 +1812,7 @@ var require_errors = __commonJS({
|
|
|
1816
1812
|
}
|
|
1817
1813
|
});
|
|
1818
1814
|
}
|
|
1819
|
-
|
|
1815
|
+
exports2.extendErrors = extendErrors;
|
|
1820
1816
|
function addError(gen, errObj) {
|
|
1821
1817
|
const err = gen.const("err", errObj);
|
|
1822
1818
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
|
|
@@ -1885,10 +1881,10 @@ var require_errors = __commonJS({
|
|
|
1885
1881
|
|
|
1886
1882
|
// ../../node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1887
1883
|
var require_boolSchema = __commonJS({
|
|
1888
|
-
"../../node_modules/ajv/dist/compile/validate/boolSchema.js"(
|
|
1884
|
+
"../../node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
|
|
1889
1885
|
"use strict";
|
|
1890
|
-
Object.defineProperty(
|
|
1891
|
-
|
|
1886
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1887
|
+
exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
|
|
1892
1888
|
var errors_1 = require_errors();
|
|
1893
1889
|
var codegen_1 = require_codegen();
|
|
1894
1890
|
var names_1 = require_names();
|
|
@@ -1906,7 +1902,7 @@ var require_boolSchema = __commonJS({
|
|
|
1906
1902
|
gen.return(true);
|
|
1907
1903
|
}
|
|
1908
1904
|
}
|
|
1909
|
-
|
|
1905
|
+
exports2.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1910
1906
|
function boolOrEmptySchema(it, valid) {
|
|
1911
1907
|
const { gen, schema } = it;
|
|
1912
1908
|
if (schema === false) {
|
|
@@ -1916,7 +1912,7 @@ var require_boolSchema = __commonJS({
|
|
|
1916
1912
|
gen.var(valid, true);
|
|
1917
1913
|
}
|
|
1918
1914
|
}
|
|
1919
|
-
|
|
1915
|
+
exports2.boolOrEmptySchema = boolOrEmptySchema;
|
|
1920
1916
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1921
1917
|
const { gen, data } = it;
|
|
1922
1918
|
const cxt = {
|
|
@@ -1936,16 +1932,16 @@ var require_boolSchema = __commonJS({
|
|
|
1936
1932
|
|
|
1937
1933
|
// ../../node_modules/ajv/dist/compile/rules.js
|
|
1938
1934
|
var require_rules = __commonJS({
|
|
1939
|
-
"../../node_modules/ajv/dist/compile/rules.js"(
|
|
1935
|
+
"../../node_modules/ajv/dist/compile/rules.js"(exports2) {
|
|
1940
1936
|
"use strict";
|
|
1941
|
-
Object.defineProperty(
|
|
1942
|
-
|
|
1937
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1938
|
+
exports2.getRules = exports2.isJSONType = void 0;
|
|
1943
1939
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
1944
1940
|
var jsonTypes = new Set(_jsonTypes);
|
|
1945
1941
|
function isJSONType(x) {
|
|
1946
1942
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1947
1943
|
}
|
|
1948
|
-
|
|
1944
|
+
exports2.isJSONType = isJSONType;
|
|
1949
1945
|
function getRules() {
|
|
1950
1946
|
const groups = {
|
|
1951
1947
|
number: { type: "number", rules: [] },
|
|
@@ -1961,39 +1957,39 @@ var require_rules = __commonJS({
|
|
|
1961
1957
|
keywords: {}
|
|
1962
1958
|
};
|
|
1963
1959
|
}
|
|
1964
|
-
|
|
1960
|
+
exports2.getRules = getRules;
|
|
1965
1961
|
}
|
|
1966
1962
|
});
|
|
1967
1963
|
|
|
1968
1964
|
// ../../node_modules/ajv/dist/compile/validate/applicability.js
|
|
1969
1965
|
var require_applicability = __commonJS({
|
|
1970
|
-
"../../node_modules/ajv/dist/compile/validate/applicability.js"(
|
|
1966
|
+
"../../node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
|
|
1971
1967
|
"use strict";
|
|
1972
|
-
Object.defineProperty(
|
|
1973
|
-
|
|
1968
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1969
|
+
exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
|
|
1974
1970
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
1975
1971
|
const group = self.RULES.types[type];
|
|
1976
1972
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1977
1973
|
}
|
|
1978
|
-
|
|
1974
|
+
exports2.schemaHasRulesForType = schemaHasRulesForType;
|
|
1979
1975
|
function shouldUseGroup(schema, group) {
|
|
1980
1976
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1981
1977
|
}
|
|
1982
|
-
|
|
1978
|
+
exports2.shouldUseGroup = shouldUseGroup;
|
|
1983
1979
|
function shouldUseRule(schema, rule) {
|
|
1984
1980
|
var _a3;
|
|
1985
1981
|
return schema[rule.keyword] !== void 0 || ((_a3 = rule.definition.implements) === null || _a3 === void 0 ? void 0 : _a3.some((kwd) => schema[kwd] !== void 0));
|
|
1986
1982
|
}
|
|
1987
|
-
|
|
1983
|
+
exports2.shouldUseRule = shouldUseRule;
|
|
1988
1984
|
}
|
|
1989
1985
|
});
|
|
1990
1986
|
|
|
1991
1987
|
// ../../node_modules/ajv/dist/compile/validate/dataType.js
|
|
1992
1988
|
var require_dataType = __commonJS({
|
|
1993
|
-
"../../node_modules/ajv/dist/compile/validate/dataType.js"(
|
|
1989
|
+
"../../node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
|
|
1994
1990
|
"use strict";
|
|
1995
|
-
Object.defineProperty(
|
|
1996
|
-
|
|
1991
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1992
|
+
exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
|
|
1997
1993
|
var rules_1 = require_rules();
|
|
1998
1994
|
var applicability_1 = require_applicability();
|
|
1999
1995
|
var errors_1 = require_errors();
|
|
@@ -2003,7 +1999,7 @@ var require_dataType = __commonJS({
|
|
|
2003
1999
|
(function(DataType2) {
|
|
2004
2000
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
2005
2001
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
2006
|
-
})(DataType || (
|
|
2002
|
+
})(DataType || (exports2.DataType = DataType = {}));
|
|
2007
2003
|
function getSchemaTypes(schema) {
|
|
2008
2004
|
const types = getJSONTypes(schema.type);
|
|
2009
2005
|
const hasNull = types.includes("null");
|
|
@@ -2019,14 +2015,14 @@ var require_dataType = __commonJS({
|
|
|
2019
2015
|
}
|
|
2020
2016
|
return types;
|
|
2021
2017
|
}
|
|
2022
|
-
|
|
2018
|
+
exports2.getSchemaTypes = getSchemaTypes;
|
|
2023
2019
|
function getJSONTypes(ts) {
|
|
2024
2020
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
2025
2021
|
if (types.every(rules_1.isJSONType))
|
|
2026
2022
|
return types;
|
|
2027
2023
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
2028
2024
|
}
|
|
2029
|
-
|
|
2025
|
+
exports2.getJSONTypes = getJSONTypes;
|
|
2030
2026
|
function coerceAndCheckDataType(it, types) {
|
|
2031
2027
|
const { gen, data, opts } = it;
|
|
2032
2028
|
const coerceTo = coerceToTypes(types, opts.coerceTypes);
|
|
@@ -2042,7 +2038,7 @@ var require_dataType = __commonJS({
|
|
|
2042
2038
|
}
|
|
2043
2039
|
return checkTypes;
|
|
2044
2040
|
}
|
|
2045
|
-
|
|
2041
|
+
exports2.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
2046
2042
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
2047
2043
|
function coerceToTypes(types, coerceTypes) {
|
|
2048
2044
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
@@ -2122,7 +2118,7 @@ var require_dataType = __commonJS({
|
|
|
2122
2118
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
2123
2119
|
}
|
|
2124
2120
|
}
|
|
2125
|
-
|
|
2121
|
+
exports2.checkDataType = checkDataType;
|
|
2126
2122
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
2127
2123
|
if (dataTypes.length === 1) {
|
|
2128
2124
|
return checkDataType(dataTypes[0], data, strictNums, correct);
|
|
@@ -2144,7 +2140,7 @@ var require_dataType = __commonJS({
|
|
|
2144
2140
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
2145
2141
|
return cond;
|
|
2146
2142
|
}
|
|
2147
|
-
|
|
2143
|
+
exports2.checkDataTypes = checkDataTypes;
|
|
2148
2144
|
var typeError = {
|
|
2149
2145
|
message: ({ schema }) => `must be ${schema}`,
|
|
2150
2146
|
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
|
|
@@ -2153,7 +2149,7 @@ var require_dataType = __commonJS({
|
|
|
2153
2149
|
const cxt = getTypeErrorContext(it);
|
|
2154
2150
|
(0, errors_1.reportError)(cxt, typeError);
|
|
2155
2151
|
}
|
|
2156
|
-
|
|
2152
|
+
exports2.reportTypeError = reportTypeError;
|
|
2157
2153
|
function getTypeErrorContext(it) {
|
|
2158
2154
|
const { gen, data, schema } = it;
|
|
2159
2155
|
const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
|
|
@@ -2174,10 +2170,10 @@ var require_dataType = __commonJS({
|
|
|
2174
2170
|
|
|
2175
2171
|
// ../../node_modules/ajv/dist/compile/validate/defaults.js
|
|
2176
2172
|
var require_defaults = __commonJS({
|
|
2177
|
-
"../../node_modules/ajv/dist/compile/validate/defaults.js"(
|
|
2173
|
+
"../../node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
|
|
2178
2174
|
"use strict";
|
|
2179
|
-
Object.defineProperty(
|
|
2180
|
-
|
|
2175
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2176
|
+
exports2.assignDefaults = void 0;
|
|
2181
2177
|
var codegen_1 = require_codegen();
|
|
2182
2178
|
var util_1 = require_util();
|
|
2183
2179
|
function assignDefaults(it, ty) {
|
|
@@ -2190,7 +2186,7 @@ var require_defaults = __commonJS({
|
|
|
2190
2186
|
items.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
2191
2187
|
}
|
|
2192
2188
|
}
|
|
2193
|
-
|
|
2189
|
+
exports2.assignDefaults = assignDefaults;
|
|
2194
2190
|
function assignDefault(it, prop, defaultValue) {
|
|
2195
2191
|
const { gen, compositeRule, data, opts } = it;
|
|
2196
2192
|
if (defaultValue === void 0)
|
|
@@ -2211,10 +2207,10 @@ var require_defaults = __commonJS({
|
|
|
2211
2207
|
|
|
2212
2208
|
// ../../node_modules/ajv/dist/vocabularies/code.js
|
|
2213
2209
|
var require_code2 = __commonJS({
|
|
2214
|
-
"../../node_modules/ajv/dist/vocabularies/code.js"(
|
|
2210
|
+
"../../node_modules/ajv/dist/vocabularies/code.js"(exports2) {
|
|
2215
2211
|
"use strict";
|
|
2216
|
-
Object.defineProperty(
|
|
2217
|
-
|
|
2212
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2213
|
+
exports2.validateUnion = exports2.validateArray = exports2.usePattern = exports2.callValidateCode = exports2.schemaProperties = exports2.allSchemaProperties = exports2.noPropertyInData = exports2.propertyInData = exports2.isOwnProperty = exports2.hasPropFunc = exports2.reportMissingProp = exports2.checkMissingProp = exports2.checkReportMissingProp = void 0;
|
|
2218
2214
|
var codegen_1 = require_codegen();
|
|
2219
2215
|
var util_1 = require_util();
|
|
2220
2216
|
var names_1 = require_names();
|
|
@@ -2226,16 +2222,16 @@ var require_code2 = __commonJS({
|
|
|
2226
2222
|
cxt.error();
|
|
2227
2223
|
});
|
|
2228
2224
|
}
|
|
2229
|
-
|
|
2225
|
+
exports2.checkReportMissingProp = checkReportMissingProp;
|
|
2230
2226
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
2231
2227
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
2232
2228
|
}
|
|
2233
|
-
|
|
2229
|
+
exports2.checkMissingProp = checkMissingProp;
|
|
2234
2230
|
function reportMissingProp(cxt, missing) {
|
|
2235
2231
|
cxt.setParams({ missingProperty: missing }, true);
|
|
2236
2232
|
cxt.error();
|
|
2237
2233
|
}
|
|
2238
|
-
|
|
2234
|
+
exports2.reportMissingProp = reportMissingProp;
|
|
2239
2235
|
function hasPropFunc(gen) {
|
|
2240
2236
|
return gen.scopeValue("func", {
|
|
2241
2237
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -2243,29 +2239,29 @@ var require_code2 = __commonJS({
|
|
|
2243
2239
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
2244
2240
|
});
|
|
2245
2241
|
}
|
|
2246
|
-
|
|
2242
|
+
exports2.hasPropFunc = hasPropFunc;
|
|
2247
2243
|
function isOwnProperty(gen, data, property) {
|
|
2248
2244
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
2249
2245
|
}
|
|
2250
|
-
|
|
2246
|
+
exports2.isOwnProperty = isOwnProperty;
|
|
2251
2247
|
function propertyInData(gen, data, property, ownProperties) {
|
|
2252
2248
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
2253
2249
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
2254
2250
|
}
|
|
2255
|
-
|
|
2251
|
+
exports2.propertyInData = propertyInData;
|
|
2256
2252
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
2257
2253
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
2258
2254
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
2259
2255
|
}
|
|
2260
|
-
|
|
2256
|
+
exports2.noPropertyInData = noPropertyInData;
|
|
2261
2257
|
function allSchemaProperties(schemaMap) {
|
|
2262
2258
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
2263
2259
|
}
|
|
2264
|
-
|
|
2260
|
+
exports2.allSchemaProperties = allSchemaProperties;
|
|
2265
2261
|
function schemaProperties(it, schemaMap) {
|
|
2266
2262
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
2267
2263
|
}
|
|
2268
|
-
|
|
2264
|
+
exports2.schemaProperties = schemaProperties;
|
|
2269
2265
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
2270
2266
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
2271
2267
|
const valCxt = [
|
|
@@ -2279,7 +2275,7 @@ var require_code2 = __commonJS({
|
|
|
2279
2275
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
2280
2276
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
2281
2277
|
}
|
|
2282
|
-
|
|
2278
|
+
exports2.callValidateCode = callValidateCode;
|
|
2283
2279
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
2284
2280
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
2285
2281
|
const u = opts.unicodeRegExp ? "u" : "";
|
|
@@ -2291,7 +2287,7 @@ var require_code2 = __commonJS({
|
|
|
2291
2287
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
|
|
2292
2288
|
});
|
|
2293
2289
|
}
|
|
2294
|
-
|
|
2290
|
+
exports2.usePattern = usePattern;
|
|
2295
2291
|
function validateArray(cxt) {
|
|
2296
2292
|
const { gen, data, keyword, it } = cxt;
|
|
2297
2293
|
const valid = gen.name("valid");
|
|
@@ -2315,7 +2311,7 @@ var require_code2 = __commonJS({
|
|
|
2315
2311
|
});
|
|
2316
2312
|
}
|
|
2317
2313
|
}
|
|
2318
|
-
|
|
2314
|
+
exports2.validateArray = validateArray;
|
|
2319
2315
|
function validateUnion(cxt) {
|
|
2320
2316
|
const { gen, schema, keyword, it } = cxt;
|
|
2321
2317
|
if (!Array.isArray(schema))
|
|
@@ -2338,16 +2334,16 @@ var require_code2 = __commonJS({
|
|
|
2338
2334
|
}));
|
|
2339
2335
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
2340
2336
|
}
|
|
2341
|
-
|
|
2337
|
+
exports2.validateUnion = validateUnion;
|
|
2342
2338
|
}
|
|
2343
2339
|
});
|
|
2344
2340
|
|
|
2345
2341
|
// ../../node_modules/ajv/dist/compile/validate/keyword.js
|
|
2346
2342
|
var require_keyword = __commonJS({
|
|
2347
|
-
"../../node_modules/ajv/dist/compile/validate/keyword.js"(
|
|
2343
|
+
"../../node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
|
|
2348
2344
|
"use strict";
|
|
2349
|
-
Object.defineProperty(
|
|
2350
|
-
|
|
2345
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2346
|
+
exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
|
|
2351
2347
|
var codegen_1 = require_codegen();
|
|
2352
2348
|
var names_1 = require_names();
|
|
2353
2349
|
var code_1 = require_code2();
|
|
@@ -2368,7 +2364,7 @@ var require_keyword = __commonJS({
|
|
|
2368
2364
|
}, valid);
|
|
2369
2365
|
cxt.pass(valid, () => cxt.error(true));
|
|
2370
2366
|
}
|
|
2371
|
-
|
|
2367
|
+
exports2.macroKeywordCode = macroKeywordCode;
|
|
2372
2368
|
function funcKeywordCode(cxt, def) {
|
|
2373
2369
|
var _a3;
|
|
2374
2370
|
const { gen, keyword, schema, parentSchema, $data, it } = cxt;
|
|
@@ -2412,7 +2408,7 @@ var require_keyword = __commonJS({
|
|
|
2412
2408
|
gen.if((0, codegen_1.not)((_a4 = def.valid) !== null && _a4 !== void 0 ? _a4 : valid), errors);
|
|
2413
2409
|
}
|
|
2414
2410
|
}
|
|
2415
|
-
|
|
2411
|
+
exports2.funcKeywordCode = funcKeywordCode;
|
|
2416
2412
|
function modifyData(cxt) {
|
|
2417
2413
|
const { gen, data, it } = cxt;
|
|
2418
2414
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
@@ -2436,7 +2432,7 @@ var require_keyword = __commonJS({
|
|
|
2436
2432
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
2437
2433
|
return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined");
|
|
2438
2434
|
}
|
|
2439
|
-
|
|
2435
|
+
exports2.validSchemaType = validSchemaType;
|
|
2440
2436
|
function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {
|
|
2441
2437
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
2442
2438
|
throw new Error("ajv implementation error");
|
|
@@ -2456,16 +2452,16 @@ var require_keyword = __commonJS({
|
|
|
2456
2452
|
}
|
|
2457
2453
|
}
|
|
2458
2454
|
}
|
|
2459
|
-
|
|
2455
|
+
exports2.validateKeywordUsage = validateKeywordUsage;
|
|
2460
2456
|
}
|
|
2461
2457
|
});
|
|
2462
2458
|
|
|
2463
2459
|
// ../../node_modules/ajv/dist/compile/validate/subschema.js
|
|
2464
2460
|
var require_subschema = __commonJS({
|
|
2465
|
-
"../../node_modules/ajv/dist/compile/validate/subschema.js"(
|
|
2461
|
+
"../../node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
|
|
2466
2462
|
"use strict";
|
|
2467
|
-
Object.defineProperty(
|
|
2468
|
-
|
|
2463
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2464
|
+
exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
|
|
2469
2465
|
var codegen_1 = require_codegen();
|
|
2470
2466
|
var util_1 = require_util();
|
|
2471
2467
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
@@ -2497,7 +2493,7 @@ var require_subschema = __commonJS({
|
|
|
2497
2493
|
}
|
|
2498
2494
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
2499
2495
|
}
|
|
2500
|
-
|
|
2496
|
+
exports2.getSubschema = getSubschema;
|
|
2501
2497
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
2502
2498
|
if (data !== void 0 && dataProp !== void 0) {
|
|
2503
2499
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -2528,7 +2524,7 @@ var require_subschema = __commonJS({
|
|
|
2528
2524
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
2529
2525
|
}
|
|
2530
2526
|
}
|
|
2531
|
-
|
|
2527
|
+
exports2.extendSubschemaData = extendSubschemaData;
|
|
2532
2528
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
2533
2529
|
if (compositeRule !== void 0)
|
|
2534
2530
|
subschema.compositeRule = compositeRule;
|
|
@@ -2539,15 +2535,15 @@ var require_subschema = __commonJS({
|
|
|
2539
2535
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
2540
2536
|
subschema.jtdMetadata = jtdMetadata;
|
|
2541
2537
|
}
|
|
2542
|
-
|
|
2538
|
+
exports2.extendSubschemaMode = extendSubschemaMode;
|
|
2543
2539
|
}
|
|
2544
2540
|
});
|
|
2545
2541
|
|
|
2546
2542
|
// ../../node_modules/fast-deep-equal/index.js
|
|
2547
2543
|
var require_fast_deep_equal = __commonJS({
|
|
2548
|
-
"../../node_modules/fast-deep-equal/index.js"(
|
|
2544
|
+
"../../node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2549
2545
|
"use strict";
|
|
2550
|
-
|
|
2546
|
+
module2.exports = function equal(a, b) {
|
|
2551
2547
|
if (a === b) return true;
|
|
2552
2548
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
2553
2549
|
if (a.constructor !== b.constructor) return false;
|
|
@@ -2580,9 +2576,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2580
2576
|
|
|
2581
2577
|
// ../../node_modules/json-schema-traverse/index.js
|
|
2582
2578
|
var require_json_schema_traverse = __commonJS({
|
|
2583
|
-
"../../node_modules/json-schema-traverse/index.js"(
|
|
2579
|
+
"../../node_modules/json-schema-traverse/index.js"(exports2, module2) {
|
|
2584
2580
|
"use strict";
|
|
2585
|
-
var traverse =
|
|
2581
|
+
var traverse = module2.exports = function(schema, opts, cb) {
|
|
2586
2582
|
if (typeof opts == "function") {
|
|
2587
2583
|
cb = opts;
|
|
2588
2584
|
opts = {};
|
|
@@ -2668,10 +2664,10 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2668
2664
|
|
|
2669
2665
|
// ../../node_modules/ajv/dist/compile/resolve.js
|
|
2670
2666
|
var require_resolve = __commonJS({
|
|
2671
|
-
"../../node_modules/ajv/dist/compile/resolve.js"(
|
|
2667
|
+
"../../node_modules/ajv/dist/compile/resolve.js"(exports2) {
|
|
2672
2668
|
"use strict";
|
|
2673
|
-
Object.defineProperty(
|
|
2674
|
-
|
|
2669
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2670
|
+
exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
|
|
2675
2671
|
var util_1 = require_util();
|
|
2676
2672
|
var equal = require_fast_deep_equal();
|
|
2677
2673
|
var traverse = require_json_schema_traverse();
|
|
@@ -2702,7 +2698,7 @@ var require_resolve = __commonJS({
|
|
|
2702
2698
|
return false;
|
|
2703
2699
|
return countKeys(schema) <= limit;
|
|
2704
2700
|
}
|
|
2705
|
-
|
|
2701
|
+
exports2.inlineRef = inlineRef;
|
|
2706
2702
|
var REF_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2707
2703
|
"$ref",
|
|
2708
2704
|
"$recursiveRef",
|
|
@@ -2744,22 +2740,22 @@ var require_resolve = __commonJS({
|
|
|
2744
2740
|
const p = resolver.parse(id);
|
|
2745
2741
|
return _getFullPath(resolver, p);
|
|
2746
2742
|
}
|
|
2747
|
-
|
|
2743
|
+
exports2.getFullPath = getFullPath;
|
|
2748
2744
|
function _getFullPath(resolver, p) {
|
|
2749
2745
|
const serialized = resolver.serialize(p);
|
|
2750
2746
|
return serialized.split("#")[0] + "#";
|
|
2751
2747
|
}
|
|
2752
|
-
|
|
2748
|
+
exports2._getFullPath = _getFullPath;
|
|
2753
2749
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2754
2750
|
function normalizeId(id) {
|
|
2755
2751
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2756
2752
|
}
|
|
2757
|
-
|
|
2753
|
+
exports2.normalizeId = normalizeId;
|
|
2758
2754
|
function resolveUrl(resolver, baseId, id) {
|
|
2759
2755
|
id = normalizeId(id);
|
|
2760
2756
|
return resolver.resolve(baseId, id);
|
|
2761
2757
|
}
|
|
2762
|
-
|
|
2758
|
+
exports2.resolveUrl = resolveUrl;
|
|
2763
2759
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2764
2760
|
function getSchemaRefs(schema, baseId) {
|
|
2765
2761
|
if (typeof schema == "boolean")
|
|
@@ -2818,16 +2814,16 @@ var require_resolve = __commonJS({
|
|
|
2818
2814
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2819
2815
|
}
|
|
2820
2816
|
}
|
|
2821
|
-
|
|
2817
|
+
exports2.getSchemaRefs = getSchemaRefs;
|
|
2822
2818
|
}
|
|
2823
2819
|
});
|
|
2824
2820
|
|
|
2825
2821
|
// ../../node_modules/ajv/dist/compile/validate/index.js
|
|
2826
2822
|
var require_validate = __commonJS({
|
|
2827
|
-
"../../node_modules/ajv/dist/compile/validate/index.js"(
|
|
2823
|
+
"../../node_modules/ajv/dist/compile/validate/index.js"(exports2) {
|
|
2828
2824
|
"use strict";
|
|
2829
|
-
Object.defineProperty(
|
|
2830
|
-
|
|
2825
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2826
|
+
exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
|
|
2831
2827
|
var boolSchema_1 = require_boolSchema();
|
|
2832
2828
|
var dataType_1 = require_dataType();
|
|
2833
2829
|
var applicability_1 = require_applicability();
|
|
@@ -2850,7 +2846,7 @@ var require_validate = __commonJS({
|
|
|
2850
2846
|
}
|
|
2851
2847
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2852
2848
|
}
|
|
2853
|
-
|
|
2849
|
+
exports2.validateFunctionCode = validateFunctionCode;
|
|
2854
2850
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2855
2851
|
if (opts.code.es5) {
|
|
2856
2852
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
|
|
@@ -3271,7 +3267,7 @@ var require_validate = __commonJS({
|
|
|
3271
3267
|
}
|
|
3272
3268
|
}
|
|
3273
3269
|
};
|
|
3274
|
-
|
|
3270
|
+
exports2.KeywordCxt = KeywordCxt;
|
|
3275
3271
|
function keywordCode(it, keyword, def, ruleType) {
|
|
3276
3272
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
3277
3273
|
if ("code" in def) {
|
|
@@ -3326,15 +3322,15 @@ var require_validate = __commonJS({
|
|
|
3326
3322
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
3327
3323
|
}
|
|
3328
3324
|
}
|
|
3329
|
-
|
|
3325
|
+
exports2.getData = getData;
|
|
3330
3326
|
}
|
|
3331
3327
|
});
|
|
3332
3328
|
|
|
3333
3329
|
// ../../node_modules/ajv/dist/runtime/validation_error.js
|
|
3334
3330
|
var require_validation_error = __commonJS({
|
|
3335
|
-
"../../node_modules/ajv/dist/runtime/validation_error.js"(
|
|
3331
|
+
"../../node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
|
|
3336
3332
|
"use strict";
|
|
3337
|
-
Object.defineProperty(
|
|
3333
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3338
3334
|
var ValidationError = class extends Error {
|
|
3339
3335
|
constructor(errors) {
|
|
3340
3336
|
super("validation failed");
|
|
@@ -3342,15 +3338,15 @@ var require_validation_error = __commonJS({
|
|
|
3342
3338
|
this.ajv = this.validation = true;
|
|
3343
3339
|
}
|
|
3344
3340
|
};
|
|
3345
|
-
|
|
3341
|
+
exports2.default = ValidationError;
|
|
3346
3342
|
}
|
|
3347
3343
|
});
|
|
3348
3344
|
|
|
3349
3345
|
// ../../node_modules/ajv/dist/compile/ref_error.js
|
|
3350
3346
|
var require_ref_error = __commonJS({
|
|
3351
|
-
"../../node_modules/ajv/dist/compile/ref_error.js"(
|
|
3347
|
+
"../../node_modules/ajv/dist/compile/ref_error.js"(exports2) {
|
|
3352
3348
|
"use strict";
|
|
3353
|
-
Object.defineProperty(
|
|
3349
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3354
3350
|
var resolve_1 = require_resolve();
|
|
3355
3351
|
var MissingRefError = class extends Error {
|
|
3356
3352
|
constructor(resolver, baseId, ref, msg) {
|
|
@@ -3359,16 +3355,16 @@ var require_ref_error = __commonJS({
|
|
|
3359
3355
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
3360
3356
|
}
|
|
3361
3357
|
};
|
|
3362
|
-
|
|
3358
|
+
exports2.default = MissingRefError;
|
|
3363
3359
|
}
|
|
3364
3360
|
});
|
|
3365
3361
|
|
|
3366
3362
|
// ../../node_modules/ajv/dist/compile/index.js
|
|
3367
3363
|
var require_compile = __commonJS({
|
|
3368
|
-
"../../node_modules/ajv/dist/compile/index.js"(
|
|
3364
|
+
"../../node_modules/ajv/dist/compile/index.js"(exports2) {
|
|
3369
3365
|
"use strict";
|
|
3370
|
-
Object.defineProperty(
|
|
3371
|
-
|
|
3366
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3367
|
+
exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
|
|
3372
3368
|
var codegen_1 = require_codegen();
|
|
3373
3369
|
var validation_error_1 = require_validation_error();
|
|
3374
3370
|
var names_1 = require_names();
|
|
@@ -3394,7 +3390,7 @@ var require_compile = __commonJS({
|
|
|
3394
3390
|
this.refs = {};
|
|
3395
3391
|
}
|
|
3396
3392
|
};
|
|
3397
|
-
|
|
3393
|
+
exports2.SchemaEnv = SchemaEnv;
|
|
3398
3394
|
function compileSchema(sch) {
|
|
3399
3395
|
const _sch = getCompilingSchema.call(this, sch);
|
|
3400
3396
|
if (_sch)
|
|
@@ -3480,14 +3476,14 @@ var require_compile = __commonJS({
|
|
|
3480
3476
|
this._compilations.delete(sch);
|
|
3481
3477
|
}
|
|
3482
3478
|
}
|
|
3483
|
-
|
|
3479
|
+
exports2.compileSchema = compileSchema;
|
|
3484
3480
|
function resolveRef2(root, baseId, ref) {
|
|
3485
3481
|
var _a3;
|
|
3486
3482
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
3487
3483
|
const schOrFunc = root.refs[ref];
|
|
3488
3484
|
if (schOrFunc)
|
|
3489
3485
|
return schOrFunc;
|
|
3490
|
-
let _sch =
|
|
3486
|
+
let _sch = resolve4.call(this, root, ref);
|
|
3491
3487
|
if (_sch === void 0) {
|
|
3492
3488
|
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[ref];
|
|
3493
3489
|
const { schemaId } = this.opts;
|
|
@@ -3498,7 +3494,7 @@ var require_compile = __commonJS({
|
|
|
3498
3494
|
return;
|
|
3499
3495
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
3500
3496
|
}
|
|
3501
|
-
|
|
3497
|
+
exports2.resolveRef = resolveRef2;
|
|
3502
3498
|
function inlineOrCompile(sch) {
|
|
3503
3499
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
3504
3500
|
return sch.schema;
|
|
@@ -3510,11 +3506,11 @@ var require_compile = __commonJS({
|
|
|
3510
3506
|
return sch;
|
|
3511
3507
|
}
|
|
3512
3508
|
}
|
|
3513
|
-
|
|
3509
|
+
exports2.getCompilingSchema = getCompilingSchema;
|
|
3514
3510
|
function sameSchemaEnv(s1, s2) {
|
|
3515
3511
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
3516
3512
|
}
|
|
3517
|
-
function
|
|
3513
|
+
function resolve4(root, ref) {
|
|
3518
3514
|
let sch;
|
|
3519
3515
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
3520
3516
|
ref = sch;
|
|
@@ -3549,7 +3545,7 @@ var require_compile = __commonJS({
|
|
|
3549
3545
|
}
|
|
3550
3546
|
return getJsonPointer.call(this, p, schOrRef);
|
|
3551
3547
|
}
|
|
3552
|
-
|
|
3548
|
+
exports2.resolveSchema = resolveSchema;
|
|
3553
3549
|
var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
|
|
3554
3550
|
"properties",
|
|
3555
3551
|
"patternProperties",
|
|
@@ -3589,8 +3585,8 @@ var require_compile = __commonJS({
|
|
|
3589
3585
|
|
|
3590
3586
|
// ../../node_modules/ajv/dist/refs/data.json
|
|
3591
3587
|
var require_data = __commonJS({
|
|
3592
|
-
"../../node_modules/ajv/dist/refs/data.json"(
|
|
3593
|
-
|
|
3588
|
+
"../../node_modules/ajv/dist/refs/data.json"(exports2, module2) {
|
|
3589
|
+
module2.exports = {
|
|
3594
3590
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3595
3591
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
3596
3592
|
type: "object",
|
|
@@ -3608,7 +3604,7 @@ var require_data = __commonJS({
|
|
|
3608
3604
|
|
|
3609
3605
|
// ../../node_modules/fast-uri/lib/utils.js
|
|
3610
3606
|
var require_utils = __commonJS({
|
|
3611
|
-
"../../node_modules/fast-uri/lib/utils.js"(
|
|
3607
|
+
"../../node_modules/fast-uri/lib/utils.js"(exports2, module2) {
|
|
3612
3608
|
"use strict";
|
|
3613
3609
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3614
3610
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -4087,7 +4083,7 @@ var require_utils = __commonJS({
|
|
|
4087
4083
|
}
|
|
4088
4084
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
4089
4085
|
}
|
|
4090
|
-
|
|
4086
|
+
module2.exports = {
|
|
4091
4087
|
nonSimpleDomain,
|
|
4092
4088
|
recomposeAuthority,
|
|
4093
4089
|
reescapeHostDelimiters,
|
|
@@ -4110,7 +4106,7 @@ var require_utils = __commonJS({
|
|
|
4110
4106
|
|
|
4111
4107
|
// ../../node_modules/fast-uri/lib/schemes.js
|
|
4112
4108
|
var require_schemes = __commonJS({
|
|
4113
|
-
"../../node_modules/fast-uri/lib/schemes.js"(
|
|
4109
|
+
"../../node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
|
|
4114
4110
|
"use strict";
|
|
4115
4111
|
var { isUUID } = require_utils();
|
|
4116
4112
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -4310,7 +4306,7 @@ var require_schemes = __commonJS({
|
|
|
4310
4306
|
scheme.toLowerCase()
|
|
4311
4307
|
]) || void 0;
|
|
4312
4308
|
}
|
|
4313
|
-
|
|
4309
|
+
module2.exports = {
|
|
4314
4310
|
wsIsSecure,
|
|
4315
4311
|
SCHEMES,
|
|
4316
4312
|
isValidSchemeName,
|
|
@@ -4321,7 +4317,7 @@ var require_schemes = __commonJS({
|
|
|
4321
4317
|
|
|
4322
4318
|
// ../../node_modules/fast-uri/index.js
|
|
4323
4319
|
var require_fast_uri = __commonJS({
|
|
4324
|
-
"../../node_modules/fast-uri/index.js"(
|
|
4320
|
+
"../../node_modules/fast-uri/index.js"(exports2, module2) {
|
|
4325
4321
|
"use strict";
|
|
4326
4322
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
4327
4323
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -4344,7 +4340,7 @@ var require_fast_uri = __commonJS({
|
|
|
4344
4340
|
}
|
|
4345
4341
|
return uri;
|
|
4346
4342
|
}
|
|
4347
|
-
function
|
|
4343
|
+
function resolve4(baseURI, relativeURI, options) {
|
|
4348
4344
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
4349
4345
|
const {
|
|
4350
4346
|
parsed: baseParsed,
|
|
@@ -4713,56 +4709,56 @@ var require_fast_uri = __commonJS({
|
|
|
4713
4709
|
var fastUri = {
|
|
4714
4710
|
SCHEMES,
|
|
4715
4711
|
normalize,
|
|
4716
|
-
resolve:
|
|
4712
|
+
resolve: resolve4,
|
|
4717
4713
|
resolveComponent,
|
|
4718
4714
|
equal,
|
|
4719
4715
|
serialize,
|
|
4720
4716
|
parse: parse3
|
|
4721
4717
|
};
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4718
|
+
module2.exports = fastUri;
|
|
4719
|
+
module2.exports.default = fastUri;
|
|
4720
|
+
module2.exports.fastUri = fastUri;
|
|
4725
4721
|
}
|
|
4726
4722
|
});
|
|
4727
4723
|
|
|
4728
4724
|
// ../../node_modules/ajv/dist/runtime/uri.js
|
|
4729
4725
|
var require_uri = __commonJS({
|
|
4730
|
-
"../../node_modules/ajv/dist/runtime/uri.js"(
|
|
4726
|
+
"../../node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
4731
4727
|
"use strict";
|
|
4732
|
-
Object.defineProperty(
|
|
4728
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4733
4729
|
var uri = require_fast_uri();
|
|
4734
4730
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
4735
|
-
|
|
4731
|
+
exports2.default = uri;
|
|
4736
4732
|
}
|
|
4737
4733
|
});
|
|
4738
4734
|
|
|
4739
4735
|
// ../../node_modules/ajv/dist/core.js
|
|
4740
4736
|
var require_core = __commonJS({
|
|
4741
|
-
"../../node_modules/ajv/dist/core.js"(
|
|
4737
|
+
"../../node_modules/ajv/dist/core.js"(exports2) {
|
|
4742
4738
|
"use strict";
|
|
4743
|
-
Object.defineProperty(
|
|
4744
|
-
|
|
4739
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4740
|
+
exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
4745
4741
|
var validate_1 = require_validate();
|
|
4746
|
-
Object.defineProperty(
|
|
4742
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
4747
4743
|
return validate_1.KeywordCxt;
|
|
4748
4744
|
} });
|
|
4749
4745
|
var codegen_1 = require_codegen();
|
|
4750
|
-
Object.defineProperty(
|
|
4746
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
4751
4747
|
return codegen_1._;
|
|
4752
4748
|
} });
|
|
4753
|
-
Object.defineProperty(
|
|
4749
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
4754
4750
|
return codegen_1.str;
|
|
4755
4751
|
} });
|
|
4756
|
-
Object.defineProperty(
|
|
4752
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
4757
4753
|
return codegen_1.stringify;
|
|
4758
4754
|
} });
|
|
4759
|
-
Object.defineProperty(
|
|
4755
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
4760
4756
|
return codegen_1.nil;
|
|
4761
4757
|
} });
|
|
4762
|
-
Object.defineProperty(
|
|
4758
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
4763
4759
|
return codegen_1.Name;
|
|
4764
4760
|
} });
|
|
4765
|
-
Object.defineProperty(
|
|
4761
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
4766
4762
|
return codegen_1.CodeGen;
|
|
4767
4763
|
} });
|
|
4768
4764
|
var validation_error_1 = require_validation_error();
|
|
@@ -5216,7 +5212,7 @@ var require_core = __commonJS({
|
|
|
5216
5212
|
};
|
|
5217
5213
|
Ajv2.ValidationError = validation_error_1.default;
|
|
5218
5214
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
5219
|
-
|
|
5215
|
+
exports2.default = Ajv2;
|
|
5220
5216
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
5221
5217
|
for (const key in checkOpts) {
|
|
5222
5218
|
const opt = key;
|
|
@@ -5349,25 +5345,25 @@ var require_core = __commonJS({
|
|
|
5349
5345
|
|
|
5350
5346
|
// ../../node_modules/ajv/dist/vocabularies/core/id.js
|
|
5351
5347
|
var require_id = __commonJS({
|
|
5352
|
-
"../../node_modules/ajv/dist/vocabularies/core/id.js"(
|
|
5348
|
+
"../../node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
|
|
5353
5349
|
"use strict";
|
|
5354
|
-
Object.defineProperty(
|
|
5350
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5355
5351
|
var def = {
|
|
5356
5352
|
keyword: "id",
|
|
5357
5353
|
code() {
|
|
5358
5354
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
5359
5355
|
}
|
|
5360
5356
|
};
|
|
5361
|
-
|
|
5357
|
+
exports2.default = def;
|
|
5362
5358
|
}
|
|
5363
5359
|
});
|
|
5364
5360
|
|
|
5365
5361
|
// ../../node_modules/ajv/dist/vocabularies/core/ref.js
|
|
5366
5362
|
var require_ref = __commonJS({
|
|
5367
|
-
"../../node_modules/ajv/dist/vocabularies/core/ref.js"(
|
|
5363
|
+
"../../node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
5368
5364
|
"use strict";
|
|
5369
|
-
Object.defineProperty(
|
|
5370
|
-
|
|
5365
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5366
|
+
exports2.callRef = exports2.getValidate = void 0;
|
|
5371
5367
|
var ref_error_1 = require_ref_error();
|
|
5372
5368
|
var code_1 = require_code2();
|
|
5373
5369
|
var codegen_1 = require_codegen();
|
|
@@ -5418,7 +5414,7 @@ var require_ref = __commonJS({
|
|
|
5418
5414
|
const { gen } = cxt;
|
|
5419
5415
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
5420
5416
|
}
|
|
5421
|
-
|
|
5417
|
+
exports2.getValidate = getValidate;
|
|
5422
5418
|
function callRef(cxt, v, sch, $async) {
|
|
5423
5419
|
const { gen, it } = cxt;
|
|
5424
5420
|
const { allErrors, schemaEnv: env, opts } = it;
|
|
@@ -5479,16 +5475,16 @@ var require_ref = __commonJS({
|
|
|
5479
5475
|
}
|
|
5480
5476
|
}
|
|
5481
5477
|
}
|
|
5482
|
-
|
|
5483
|
-
|
|
5478
|
+
exports2.callRef = callRef;
|
|
5479
|
+
exports2.default = def;
|
|
5484
5480
|
}
|
|
5485
5481
|
});
|
|
5486
5482
|
|
|
5487
5483
|
// ../../node_modules/ajv/dist/vocabularies/core/index.js
|
|
5488
5484
|
var require_core2 = __commonJS({
|
|
5489
|
-
"../../node_modules/ajv/dist/vocabularies/core/index.js"(
|
|
5485
|
+
"../../node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
5490
5486
|
"use strict";
|
|
5491
|
-
Object.defineProperty(
|
|
5487
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5492
5488
|
var id_1 = require_id();
|
|
5493
5489
|
var ref_1 = require_ref();
|
|
5494
5490
|
var core = [
|
|
@@ -5501,15 +5497,15 @@ var require_core2 = __commonJS({
|
|
|
5501
5497
|
id_1.default,
|
|
5502
5498
|
ref_1.default
|
|
5503
5499
|
];
|
|
5504
|
-
|
|
5500
|
+
exports2.default = core;
|
|
5505
5501
|
}
|
|
5506
5502
|
});
|
|
5507
5503
|
|
|
5508
5504
|
// ../../node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
5509
5505
|
var require_limitNumber = __commonJS({
|
|
5510
|
-
"../../node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(
|
|
5506
|
+
"../../node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
|
|
5511
5507
|
"use strict";
|
|
5512
|
-
Object.defineProperty(
|
|
5508
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5513
5509
|
var codegen_1 = require_codegen();
|
|
5514
5510
|
var ops = codegen_1.operators;
|
|
5515
5511
|
var KWDs = {
|
|
@@ -5533,15 +5529,15 @@ var require_limitNumber = __commonJS({
|
|
|
5533
5529
|
cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
5534
5530
|
}
|
|
5535
5531
|
};
|
|
5536
|
-
|
|
5532
|
+
exports2.default = def;
|
|
5537
5533
|
}
|
|
5538
5534
|
});
|
|
5539
5535
|
|
|
5540
5536
|
// ../../node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
5541
5537
|
var require_multipleOf = __commonJS({
|
|
5542
|
-
"../../node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(
|
|
5538
|
+
"../../node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
|
|
5543
5539
|
"use strict";
|
|
5544
|
-
Object.defineProperty(
|
|
5540
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5545
5541
|
var codegen_1 = require_codegen();
|
|
5546
5542
|
var error62 = {
|
|
5547
5543
|
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
@@ -5561,15 +5557,15 @@ var require_multipleOf = __commonJS({
|
|
|
5561
5557
|
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
5562
5558
|
}
|
|
5563
5559
|
};
|
|
5564
|
-
|
|
5560
|
+
exports2.default = def;
|
|
5565
5561
|
}
|
|
5566
5562
|
});
|
|
5567
5563
|
|
|
5568
5564
|
// ../../node_modules/ajv/dist/runtime/ucs2length.js
|
|
5569
5565
|
var require_ucs2length = __commonJS({
|
|
5570
|
-
"../../node_modules/ajv/dist/runtime/ucs2length.js"(
|
|
5566
|
+
"../../node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
|
|
5571
5567
|
"use strict";
|
|
5572
|
-
Object.defineProperty(
|
|
5568
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5573
5569
|
function ucs2length(str) {
|
|
5574
5570
|
const len = str.length;
|
|
5575
5571
|
let length = 0;
|
|
@@ -5586,16 +5582,16 @@ var require_ucs2length = __commonJS({
|
|
|
5586
5582
|
}
|
|
5587
5583
|
return length;
|
|
5588
5584
|
}
|
|
5589
|
-
|
|
5585
|
+
exports2.default = ucs2length;
|
|
5590
5586
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
5591
5587
|
}
|
|
5592
5588
|
});
|
|
5593
5589
|
|
|
5594
5590
|
// ../../node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
5595
5591
|
var require_limitLength = __commonJS({
|
|
5596
|
-
"../../node_modules/ajv/dist/vocabularies/validation/limitLength.js"(
|
|
5592
|
+
"../../node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
|
|
5597
5593
|
"use strict";
|
|
5598
|
-
Object.defineProperty(
|
|
5594
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5599
5595
|
var codegen_1 = require_codegen();
|
|
5600
5596
|
var util_1 = require_util();
|
|
5601
5597
|
var ucs2length_1 = require_ucs2length();
|
|
@@ -5619,15 +5615,15 @@ var require_limitLength = __commonJS({
|
|
|
5619
5615
|
cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
|
|
5620
5616
|
}
|
|
5621
5617
|
};
|
|
5622
|
-
|
|
5618
|
+
exports2.default = def;
|
|
5623
5619
|
}
|
|
5624
5620
|
});
|
|
5625
5621
|
|
|
5626
5622
|
// ../../node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
5627
5623
|
var require_pattern = __commonJS({
|
|
5628
|
-
"../../node_modules/ajv/dist/vocabularies/validation/pattern.js"(
|
|
5624
|
+
"../../node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
|
|
5629
5625
|
"use strict";
|
|
5630
|
-
Object.defineProperty(
|
|
5626
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5631
5627
|
var code_1 = require_code2();
|
|
5632
5628
|
var util_1 = require_util();
|
|
5633
5629
|
var codegen_1 = require_codegen();
|
|
@@ -5656,15 +5652,15 @@ var require_pattern = __commonJS({
|
|
|
5656
5652
|
}
|
|
5657
5653
|
}
|
|
5658
5654
|
};
|
|
5659
|
-
|
|
5655
|
+
exports2.default = def;
|
|
5660
5656
|
}
|
|
5661
5657
|
});
|
|
5662
5658
|
|
|
5663
5659
|
// ../../node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
5664
5660
|
var require_limitProperties = __commonJS({
|
|
5665
|
-
"../../node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(
|
|
5661
|
+
"../../node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
|
|
5666
5662
|
"use strict";
|
|
5667
|
-
Object.defineProperty(
|
|
5663
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5668
5664
|
var codegen_1 = require_codegen();
|
|
5669
5665
|
var error62 = {
|
|
5670
5666
|
message({ keyword, schemaCode }) {
|
|
@@ -5685,15 +5681,15 @@ var require_limitProperties = __commonJS({
|
|
|
5685
5681
|
cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
5686
5682
|
}
|
|
5687
5683
|
};
|
|
5688
|
-
|
|
5684
|
+
exports2.default = def;
|
|
5689
5685
|
}
|
|
5690
5686
|
});
|
|
5691
5687
|
|
|
5692
5688
|
// ../../node_modules/ajv/dist/vocabularies/validation/required.js
|
|
5693
5689
|
var require_required = __commonJS({
|
|
5694
|
-
"../../node_modules/ajv/dist/vocabularies/validation/required.js"(
|
|
5690
|
+
"../../node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
|
|
5695
5691
|
"use strict";
|
|
5696
|
-
Object.defineProperty(
|
|
5692
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5697
5693
|
var code_1 = require_code2();
|
|
5698
5694
|
var codegen_1 = require_codegen();
|
|
5699
5695
|
var util_1 = require_util();
|
|
@@ -5767,15 +5763,15 @@ var require_required = __commonJS({
|
|
|
5767
5763
|
}
|
|
5768
5764
|
}
|
|
5769
5765
|
};
|
|
5770
|
-
|
|
5766
|
+
exports2.default = def;
|
|
5771
5767
|
}
|
|
5772
5768
|
});
|
|
5773
5769
|
|
|
5774
5770
|
// ../../node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
5775
5771
|
var require_limitItems = __commonJS({
|
|
5776
|
-
"../../node_modules/ajv/dist/vocabularies/validation/limitItems.js"(
|
|
5772
|
+
"../../node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
|
|
5777
5773
|
"use strict";
|
|
5778
|
-
Object.defineProperty(
|
|
5774
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5779
5775
|
var codegen_1 = require_codegen();
|
|
5780
5776
|
var error62 = {
|
|
5781
5777
|
message({ keyword, schemaCode }) {
|
|
@@ -5796,26 +5792,26 @@ var require_limitItems = __commonJS({
|
|
|
5796
5792
|
cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
|
|
5797
5793
|
}
|
|
5798
5794
|
};
|
|
5799
|
-
|
|
5795
|
+
exports2.default = def;
|
|
5800
5796
|
}
|
|
5801
5797
|
});
|
|
5802
5798
|
|
|
5803
5799
|
// ../../node_modules/ajv/dist/runtime/equal.js
|
|
5804
5800
|
var require_equal = __commonJS({
|
|
5805
|
-
"../../node_modules/ajv/dist/runtime/equal.js"(
|
|
5801
|
+
"../../node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
5806
5802
|
"use strict";
|
|
5807
|
-
Object.defineProperty(
|
|
5803
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5808
5804
|
var equal = require_fast_deep_equal();
|
|
5809
5805
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
5810
|
-
|
|
5806
|
+
exports2.default = equal;
|
|
5811
5807
|
}
|
|
5812
5808
|
});
|
|
5813
5809
|
|
|
5814
5810
|
// ../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
5815
5811
|
var require_uniqueItems = __commonJS({
|
|
5816
|
-
"../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(
|
|
5812
|
+
"../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
|
|
5817
5813
|
"use strict";
|
|
5818
|
-
Object.defineProperty(
|
|
5814
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5819
5815
|
var dataType_1 = require_dataType();
|
|
5820
5816
|
var codegen_1 = require_codegen();
|
|
5821
5817
|
var util_1 = require_util();
|
|
@@ -5874,15 +5870,15 @@ var require_uniqueItems = __commonJS({
|
|
|
5874
5870
|
}
|
|
5875
5871
|
}
|
|
5876
5872
|
};
|
|
5877
|
-
|
|
5873
|
+
exports2.default = def;
|
|
5878
5874
|
}
|
|
5879
5875
|
});
|
|
5880
5876
|
|
|
5881
5877
|
// ../../node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5882
5878
|
var require_const = __commonJS({
|
|
5883
|
-
"../../node_modules/ajv/dist/vocabularies/validation/const.js"(
|
|
5879
|
+
"../../node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
|
|
5884
5880
|
"use strict";
|
|
5885
|
-
Object.defineProperty(
|
|
5881
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5886
5882
|
var codegen_1 = require_codegen();
|
|
5887
5883
|
var util_1 = require_util();
|
|
5888
5884
|
var equal_1 = require_equal();
|
|
@@ -5903,15 +5899,15 @@ var require_const = __commonJS({
|
|
|
5903
5899
|
}
|
|
5904
5900
|
}
|
|
5905
5901
|
};
|
|
5906
|
-
|
|
5902
|
+
exports2.default = def;
|
|
5907
5903
|
}
|
|
5908
5904
|
});
|
|
5909
5905
|
|
|
5910
5906
|
// ../../node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5911
5907
|
var require_enum = __commonJS({
|
|
5912
|
-
"../../node_modules/ajv/dist/vocabularies/validation/enum.js"(
|
|
5908
|
+
"../../node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
|
|
5913
5909
|
"use strict";
|
|
5914
|
-
Object.defineProperty(
|
|
5910
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5915
5911
|
var codegen_1 = require_codegen();
|
|
5916
5912
|
var util_1 = require_util();
|
|
5917
5913
|
var equal_1 = require_equal();
|
|
@@ -5952,15 +5948,15 @@ var require_enum = __commonJS({
|
|
|
5952
5948
|
}
|
|
5953
5949
|
}
|
|
5954
5950
|
};
|
|
5955
|
-
|
|
5951
|
+
exports2.default = def;
|
|
5956
5952
|
}
|
|
5957
5953
|
});
|
|
5958
5954
|
|
|
5959
5955
|
// ../../node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5960
5956
|
var require_validation = __commonJS({
|
|
5961
|
-
"../../node_modules/ajv/dist/vocabularies/validation/index.js"(
|
|
5957
|
+
"../../node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
|
|
5962
5958
|
"use strict";
|
|
5963
|
-
Object.defineProperty(
|
|
5959
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5964
5960
|
var limitNumber_1 = require_limitNumber();
|
|
5965
5961
|
var multipleOf_1 = require_multipleOf();
|
|
5966
5962
|
var limitLength_1 = require_limitLength();
|
|
@@ -5990,16 +5986,16 @@ var require_validation = __commonJS({
|
|
|
5990
5986
|
const_1.default,
|
|
5991
5987
|
enum_1.default
|
|
5992
5988
|
];
|
|
5993
|
-
|
|
5989
|
+
exports2.default = validation;
|
|
5994
5990
|
}
|
|
5995
5991
|
});
|
|
5996
5992
|
|
|
5997
5993
|
// ../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5998
5994
|
var require_additionalItems = __commonJS({
|
|
5999
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(
|
|
5995
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
|
|
6000
5996
|
"use strict";
|
|
6001
|
-
Object.defineProperty(
|
|
6002
|
-
|
|
5997
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5998
|
+
exports2.validateAdditionalItems = void 0;
|
|
6003
5999
|
var codegen_1 = require_codegen();
|
|
6004
6000
|
var util_1 = require_util();
|
|
6005
6001
|
var error62 = {
|
|
@@ -6042,17 +6038,17 @@ var require_additionalItems = __commonJS({
|
|
|
6042
6038
|
});
|
|
6043
6039
|
}
|
|
6044
6040
|
}
|
|
6045
|
-
|
|
6046
|
-
|
|
6041
|
+
exports2.validateAdditionalItems = validateAdditionalItems;
|
|
6042
|
+
exports2.default = def;
|
|
6047
6043
|
}
|
|
6048
6044
|
});
|
|
6049
6045
|
|
|
6050
6046
|
// ../../node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
6051
6047
|
var require_items = __commonJS({
|
|
6052
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/items.js"(
|
|
6048
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
|
|
6053
6049
|
"use strict";
|
|
6054
|
-
Object.defineProperty(
|
|
6055
|
-
|
|
6050
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6051
|
+
exports2.validateTuple = void 0;
|
|
6056
6052
|
var codegen_1 = require_codegen();
|
|
6057
6053
|
var util_1 = require_util();
|
|
6058
6054
|
var code_1 = require_code2();
|
|
@@ -6099,16 +6095,16 @@ var require_items = __commonJS({
|
|
|
6099
6095
|
}
|
|
6100
6096
|
}
|
|
6101
6097
|
}
|
|
6102
|
-
|
|
6103
|
-
|
|
6098
|
+
exports2.validateTuple = validateTuple;
|
|
6099
|
+
exports2.default = def;
|
|
6104
6100
|
}
|
|
6105
6101
|
});
|
|
6106
6102
|
|
|
6107
6103
|
// ../../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
6108
6104
|
var require_prefixItems = __commonJS({
|
|
6109
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(
|
|
6105
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
|
|
6110
6106
|
"use strict";
|
|
6111
|
-
Object.defineProperty(
|
|
6107
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6112
6108
|
var items_1 = require_items();
|
|
6113
6109
|
var def = {
|
|
6114
6110
|
keyword: "prefixItems",
|
|
@@ -6117,15 +6113,15 @@ var require_prefixItems = __commonJS({
|
|
|
6117
6113
|
before: "uniqueItems",
|
|
6118
6114
|
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
6119
6115
|
};
|
|
6120
|
-
|
|
6116
|
+
exports2.default = def;
|
|
6121
6117
|
}
|
|
6122
6118
|
});
|
|
6123
6119
|
|
|
6124
6120
|
// ../../node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
6125
6121
|
var require_items2020 = __commonJS({
|
|
6126
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/items2020.js"(
|
|
6122
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
|
|
6127
6123
|
"use strict";
|
|
6128
|
-
Object.defineProperty(
|
|
6124
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6129
6125
|
var codegen_1 = require_codegen();
|
|
6130
6126
|
var util_1 = require_util();
|
|
6131
6127
|
var code_1 = require_code2();
|
|
@@ -6152,15 +6148,15 @@ var require_items2020 = __commonJS({
|
|
|
6152
6148
|
cxt.ok((0, code_1.validateArray)(cxt));
|
|
6153
6149
|
}
|
|
6154
6150
|
};
|
|
6155
|
-
|
|
6151
|
+
exports2.default = def;
|
|
6156
6152
|
}
|
|
6157
6153
|
});
|
|
6158
6154
|
|
|
6159
6155
|
// ../../node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
6160
6156
|
var require_contains = __commonJS({
|
|
6161
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/contains.js"(
|
|
6157
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
|
|
6162
6158
|
"use strict";
|
|
6163
|
-
Object.defineProperty(
|
|
6159
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6164
6160
|
var codegen_1 = require_codegen();
|
|
6165
6161
|
var util_1 = require_util();
|
|
6166
6162
|
var error62 = {
|
|
@@ -6246,20 +6242,20 @@ var require_contains = __commonJS({
|
|
|
6246
6242
|
}
|
|
6247
6243
|
}
|
|
6248
6244
|
};
|
|
6249
|
-
|
|
6245
|
+
exports2.default = def;
|
|
6250
6246
|
}
|
|
6251
6247
|
});
|
|
6252
6248
|
|
|
6253
6249
|
// ../../node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
6254
6250
|
var require_dependencies = __commonJS({
|
|
6255
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(
|
|
6251
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
|
|
6256
6252
|
"use strict";
|
|
6257
|
-
Object.defineProperty(
|
|
6258
|
-
|
|
6253
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6254
|
+
exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
|
|
6259
6255
|
var codegen_1 = require_codegen();
|
|
6260
6256
|
var util_1 = require_util();
|
|
6261
6257
|
var code_1 = require_code2();
|
|
6262
|
-
|
|
6258
|
+
exports2.error = {
|
|
6263
6259
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
6264
6260
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
6265
6261
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -6274,7 +6270,7 @@ var require_dependencies = __commonJS({
|
|
|
6274
6270
|
keyword: "dependencies",
|
|
6275
6271
|
type: "object",
|
|
6276
6272
|
schemaType: "object",
|
|
6277
|
-
error:
|
|
6273
|
+
error: exports2.error,
|
|
6278
6274
|
code(cxt) {
|
|
6279
6275
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
6280
6276
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -6320,7 +6316,7 @@ var require_dependencies = __commonJS({
|
|
|
6320
6316
|
}
|
|
6321
6317
|
}
|
|
6322
6318
|
}
|
|
6323
|
-
|
|
6319
|
+
exports2.validatePropertyDeps = validatePropertyDeps;
|
|
6324
6320
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
6325
6321
|
const { gen, data, keyword, it } = cxt;
|
|
6326
6322
|
const valid = gen.name("valid");
|
|
@@ -6339,16 +6335,16 @@ var require_dependencies = __commonJS({
|
|
|
6339
6335
|
cxt.ok(valid);
|
|
6340
6336
|
}
|
|
6341
6337
|
}
|
|
6342
|
-
|
|
6343
|
-
|
|
6338
|
+
exports2.validateSchemaDeps = validateSchemaDeps;
|
|
6339
|
+
exports2.default = def;
|
|
6344
6340
|
}
|
|
6345
6341
|
});
|
|
6346
6342
|
|
|
6347
6343
|
// ../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
6348
6344
|
var require_propertyNames = __commonJS({
|
|
6349
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(
|
|
6345
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
|
|
6350
6346
|
"use strict";
|
|
6351
|
-
Object.defineProperty(
|
|
6347
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6352
6348
|
var codegen_1 = require_codegen();
|
|
6353
6349
|
var util_1 = require_util();
|
|
6354
6350
|
var error62 = {
|
|
@@ -6383,15 +6379,15 @@ var require_propertyNames = __commonJS({
|
|
|
6383
6379
|
cxt.ok(valid);
|
|
6384
6380
|
}
|
|
6385
6381
|
};
|
|
6386
|
-
|
|
6382
|
+
exports2.default = def;
|
|
6387
6383
|
}
|
|
6388
6384
|
});
|
|
6389
6385
|
|
|
6390
6386
|
// ../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
6391
6387
|
var require_additionalProperties = __commonJS({
|
|
6392
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(
|
|
6388
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
|
|
6393
6389
|
"use strict";
|
|
6394
|
-
Object.defineProperty(
|
|
6390
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6395
6391
|
var code_1 = require_code2();
|
|
6396
6392
|
var codegen_1 = require_codegen();
|
|
6397
6393
|
var names_1 = require_names();
|
|
@@ -6489,15 +6485,15 @@ var require_additionalProperties = __commonJS({
|
|
|
6489
6485
|
}
|
|
6490
6486
|
}
|
|
6491
6487
|
};
|
|
6492
|
-
|
|
6488
|
+
exports2.default = def;
|
|
6493
6489
|
}
|
|
6494
6490
|
});
|
|
6495
6491
|
|
|
6496
6492
|
// ../../node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
6497
6493
|
var require_properties = __commonJS({
|
|
6498
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/properties.js"(
|
|
6494
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
|
|
6499
6495
|
"use strict";
|
|
6500
|
-
Object.defineProperty(
|
|
6496
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6501
6497
|
var validate_1 = require_validate();
|
|
6502
6498
|
var code_1 = require_code2();
|
|
6503
6499
|
var util_1 = require_util();
|
|
@@ -6547,15 +6543,15 @@ var require_properties = __commonJS({
|
|
|
6547
6543
|
}
|
|
6548
6544
|
}
|
|
6549
6545
|
};
|
|
6550
|
-
|
|
6546
|
+
exports2.default = def;
|
|
6551
6547
|
}
|
|
6552
6548
|
});
|
|
6553
6549
|
|
|
6554
6550
|
// ../../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
6555
6551
|
var require_patternProperties = __commonJS({
|
|
6556
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(
|
|
6552
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
|
|
6557
6553
|
"use strict";
|
|
6558
|
-
Object.defineProperty(
|
|
6554
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6559
6555
|
var code_1 = require_code2();
|
|
6560
6556
|
var codegen_1 = require_codegen();
|
|
6561
6557
|
var util_1 = require_util();
|
|
@@ -6621,15 +6617,15 @@ var require_patternProperties = __commonJS({
|
|
|
6621
6617
|
}
|
|
6622
6618
|
}
|
|
6623
6619
|
};
|
|
6624
|
-
|
|
6620
|
+
exports2.default = def;
|
|
6625
6621
|
}
|
|
6626
6622
|
});
|
|
6627
6623
|
|
|
6628
6624
|
// ../../node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
6629
6625
|
var require_not = __commonJS({
|
|
6630
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/not.js"(
|
|
6626
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
|
|
6631
6627
|
"use strict";
|
|
6632
|
-
Object.defineProperty(
|
|
6628
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6633
6629
|
var util_1 = require_util();
|
|
6634
6630
|
var def = {
|
|
6635
6631
|
keyword: "not",
|
|
@@ -6652,15 +6648,15 @@ var require_not = __commonJS({
|
|
|
6652
6648
|
},
|
|
6653
6649
|
error: { message: "must NOT be valid" }
|
|
6654
6650
|
};
|
|
6655
|
-
|
|
6651
|
+
exports2.default = def;
|
|
6656
6652
|
}
|
|
6657
6653
|
});
|
|
6658
6654
|
|
|
6659
6655
|
// ../../node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
6660
6656
|
var require_anyOf = __commonJS({
|
|
6661
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(
|
|
6657
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
|
|
6662
6658
|
"use strict";
|
|
6663
|
-
Object.defineProperty(
|
|
6659
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6664
6660
|
var code_1 = require_code2();
|
|
6665
6661
|
var def = {
|
|
6666
6662
|
keyword: "anyOf",
|
|
@@ -6669,15 +6665,15 @@ var require_anyOf = __commonJS({
|
|
|
6669
6665
|
code: code_1.validateUnion,
|
|
6670
6666
|
error: { message: "must match a schema in anyOf" }
|
|
6671
6667
|
};
|
|
6672
|
-
|
|
6668
|
+
exports2.default = def;
|
|
6673
6669
|
}
|
|
6674
6670
|
});
|
|
6675
6671
|
|
|
6676
6672
|
// ../../node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
6677
6673
|
var require_oneOf = __commonJS({
|
|
6678
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(
|
|
6674
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
|
|
6679
6675
|
"use strict";
|
|
6680
|
-
Object.defineProperty(
|
|
6676
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6681
6677
|
var codegen_1 = require_codegen();
|
|
6682
6678
|
var util_1 = require_util();
|
|
6683
6679
|
var error62 = {
|
|
@@ -6727,15 +6723,15 @@ var require_oneOf = __commonJS({
|
|
|
6727
6723
|
}
|
|
6728
6724
|
}
|
|
6729
6725
|
};
|
|
6730
|
-
|
|
6726
|
+
exports2.default = def;
|
|
6731
6727
|
}
|
|
6732
6728
|
});
|
|
6733
6729
|
|
|
6734
6730
|
// ../../node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
6735
6731
|
var require_allOf = __commonJS({
|
|
6736
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/allOf.js"(
|
|
6732
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
|
|
6737
6733
|
"use strict";
|
|
6738
|
-
Object.defineProperty(
|
|
6734
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6739
6735
|
var util_1 = require_util();
|
|
6740
6736
|
var def = {
|
|
6741
6737
|
keyword: "allOf",
|
|
@@ -6754,15 +6750,15 @@ var require_allOf = __commonJS({
|
|
|
6754
6750
|
});
|
|
6755
6751
|
}
|
|
6756
6752
|
};
|
|
6757
|
-
|
|
6753
|
+
exports2.default = def;
|
|
6758
6754
|
}
|
|
6759
6755
|
});
|
|
6760
6756
|
|
|
6761
6757
|
// ../../node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
6762
6758
|
var require_if = __commonJS({
|
|
6763
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/if.js"(
|
|
6759
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
|
|
6764
6760
|
"use strict";
|
|
6765
|
-
Object.defineProperty(
|
|
6761
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6766
6762
|
var codegen_1 = require_codegen();
|
|
6767
6763
|
var util_1 = require_util();
|
|
6768
6764
|
var error62 = {
|
|
@@ -6823,15 +6819,15 @@ var require_if = __commonJS({
|
|
|
6823
6819
|
const schema = it.schema[keyword];
|
|
6824
6820
|
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
6825
6821
|
}
|
|
6826
|
-
|
|
6822
|
+
exports2.default = def;
|
|
6827
6823
|
}
|
|
6828
6824
|
});
|
|
6829
6825
|
|
|
6830
6826
|
// ../../node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6831
6827
|
var require_thenElse = __commonJS({
|
|
6832
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(
|
|
6828
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
|
|
6833
6829
|
"use strict";
|
|
6834
|
-
Object.defineProperty(
|
|
6830
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6835
6831
|
var util_1 = require_util();
|
|
6836
6832
|
var def = {
|
|
6837
6833
|
keyword: ["then", "else"],
|
|
@@ -6841,15 +6837,15 @@ var require_thenElse = __commonJS({
|
|
|
6841
6837
|
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
6842
6838
|
}
|
|
6843
6839
|
};
|
|
6844
|
-
|
|
6840
|
+
exports2.default = def;
|
|
6845
6841
|
}
|
|
6846
6842
|
});
|
|
6847
6843
|
|
|
6848
6844
|
// ../../node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6849
6845
|
var require_applicator = __commonJS({
|
|
6850
|
-
"../../node_modules/ajv/dist/vocabularies/applicator/index.js"(
|
|
6846
|
+
"../../node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
|
|
6851
6847
|
"use strict";
|
|
6852
|
-
Object.defineProperty(
|
|
6848
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6853
6849
|
var additionalItems_1 = require_additionalItems();
|
|
6854
6850
|
var prefixItems_1 = require_prefixItems();
|
|
6855
6851
|
var items_1 = require_items();
|
|
@@ -6889,15 +6885,15 @@ var require_applicator = __commonJS({
|
|
|
6889
6885
|
applicator.push(contains_1.default);
|
|
6890
6886
|
return applicator;
|
|
6891
6887
|
}
|
|
6892
|
-
|
|
6888
|
+
exports2.default = getApplicator;
|
|
6893
6889
|
}
|
|
6894
6890
|
});
|
|
6895
6891
|
|
|
6896
6892
|
// ../../node_modules/ajv/dist/vocabularies/format/format.js
|
|
6897
6893
|
var require_format = __commonJS({
|
|
6898
|
-
"../../node_modules/ajv/dist/vocabularies/format/format.js"(
|
|
6894
|
+
"../../node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
|
|
6899
6895
|
"use strict";
|
|
6900
|
-
Object.defineProperty(
|
|
6896
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6901
6897
|
var codegen_1 = require_codegen();
|
|
6902
6898
|
var error62 = {
|
|
6903
6899
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
@@ -6979,28 +6975,28 @@ var require_format = __commonJS({
|
|
|
6979
6975
|
}
|
|
6980
6976
|
}
|
|
6981
6977
|
};
|
|
6982
|
-
|
|
6978
|
+
exports2.default = def;
|
|
6983
6979
|
}
|
|
6984
6980
|
});
|
|
6985
6981
|
|
|
6986
6982
|
// ../../node_modules/ajv/dist/vocabularies/format/index.js
|
|
6987
6983
|
var require_format2 = __commonJS({
|
|
6988
|
-
"../../node_modules/ajv/dist/vocabularies/format/index.js"(
|
|
6984
|
+
"../../node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
|
|
6989
6985
|
"use strict";
|
|
6990
|
-
Object.defineProperty(
|
|
6986
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6991
6987
|
var format_1 = require_format();
|
|
6992
6988
|
var format = [format_1.default];
|
|
6993
|
-
|
|
6989
|
+
exports2.default = format;
|
|
6994
6990
|
}
|
|
6995
6991
|
});
|
|
6996
6992
|
|
|
6997
6993
|
// ../../node_modules/ajv/dist/vocabularies/metadata.js
|
|
6998
6994
|
var require_metadata = __commonJS({
|
|
6999
|
-
"../../node_modules/ajv/dist/vocabularies/metadata.js"(
|
|
6995
|
+
"../../node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
|
|
7000
6996
|
"use strict";
|
|
7001
|
-
Object.defineProperty(
|
|
7002
|
-
|
|
7003
|
-
|
|
6997
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6998
|
+
exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
|
|
6999
|
+
exports2.metadataVocabulary = [
|
|
7004
7000
|
"title",
|
|
7005
7001
|
"description",
|
|
7006
7002
|
"default",
|
|
@@ -7009,7 +7005,7 @@ var require_metadata = __commonJS({
|
|
|
7009
7005
|
"writeOnly",
|
|
7010
7006
|
"examples"
|
|
7011
7007
|
];
|
|
7012
|
-
|
|
7008
|
+
exports2.contentVocabulary = [
|
|
7013
7009
|
"contentMediaType",
|
|
7014
7010
|
"contentEncoding",
|
|
7015
7011
|
"contentSchema"
|
|
@@ -7019,9 +7015,9 @@ var require_metadata = __commonJS({
|
|
|
7019
7015
|
|
|
7020
7016
|
// ../../node_modules/ajv/dist/vocabularies/draft7.js
|
|
7021
7017
|
var require_draft7 = __commonJS({
|
|
7022
|
-
"../../node_modules/ajv/dist/vocabularies/draft7.js"(
|
|
7018
|
+
"../../node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
|
|
7023
7019
|
"use strict";
|
|
7024
|
-
Object.defineProperty(
|
|
7020
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7025
7021
|
var core_1 = require_core2();
|
|
7026
7022
|
var validation_1 = require_validation();
|
|
7027
7023
|
var applicator_1 = require_applicator();
|
|
@@ -7035,29 +7031,29 @@ var require_draft7 = __commonJS({
|
|
|
7035
7031
|
metadata_1.metadataVocabulary,
|
|
7036
7032
|
metadata_1.contentVocabulary
|
|
7037
7033
|
];
|
|
7038
|
-
|
|
7034
|
+
exports2.default = draft7Vocabularies;
|
|
7039
7035
|
}
|
|
7040
7036
|
});
|
|
7041
7037
|
|
|
7042
7038
|
// ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
7043
7039
|
var require_types = __commonJS({
|
|
7044
|
-
"../../node_modules/ajv/dist/vocabularies/discriminator/types.js"(
|
|
7040
|
+
"../../node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
|
|
7045
7041
|
"use strict";
|
|
7046
|
-
Object.defineProperty(
|
|
7047
|
-
|
|
7042
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7043
|
+
exports2.DiscrError = void 0;
|
|
7048
7044
|
var DiscrError;
|
|
7049
7045
|
(function(DiscrError2) {
|
|
7050
7046
|
DiscrError2["Tag"] = "tag";
|
|
7051
7047
|
DiscrError2["Mapping"] = "mapping";
|
|
7052
|
-
})(DiscrError || (
|
|
7048
|
+
})(DiscrError || (exports2.DiscrError = DiscrError = {}));
|
|
7053
7049
|
}
|
|
7054
7050
|
});
|
|
7055
7051
|
|
|
7056
7052
|
// ../../node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
7057
7053
|
var require_discriminator = __commonJS({
|
|
7058
|
-
"../../node_modules/ajv/dist/vocabularies/discriminator/index.js"(
|
|
7054
|
+
"../../node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
|
|
7059
7055
|
"use strict";
|
|
7060
|
-
Object.defineProperty(
|
|
7056
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7061
7057
|
var codegen_1 = require_codegen();
|
|
7062
7058
|
var types_1 = require_types();
|
|
7063
7059
|
var compile_1 = require_compile();
|
|
@@ -7154,14 +7150,14 @@ var require_discriminator = __commonJS({
|
|
|
7154
7150
|
}
|
|
7155
7151
|
}
|
|
7156
7152
|
};
|
|
7157
|
-
|
|
7153
|
+
exports2.default = def;
|
|
7158
7154
|
}
|
|
7159
7155
|
});
|
|
7160
7156
|
|
|
7161
7157
|
// ../../node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
7162
7158
|
var require_json_schema_draft_07 = __commonJS({
|
|
7163
|
-
"../../node_modules/ajv/dist/refs/json-schema-draft-07.json"(
|
|
7164
|
-
|
|
7159
|
+
"../../node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
|
|
7160
|
+
module2.exports = {
|
|
7165
7161
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
7166
7162
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
7167
7163
|
title: "Core schema meta-schema",
|
|
@@ -7317,10 +7313,10 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
7317
7313
|
|
|
7318
7314
|
// ../../node_modules/ajv/dist/ajv.js
|
|
7319
7315
|
var require_ajv = __commonJS({
|
|
7320
|
-
"../../node_modules/ajv/dist/ajv.js"(
|
|
7316
|
+
"../../node_modules/ajv/dist/ajv.js"(exports2, module2) {
|
|
7321
7317
|
"use strict";
|
|
7322
|
-
Object.defineProperty(
|
|
7323
|
-
|
|
7318
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7319
|
+
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
|
|
7324
7320
|
var core_1 = require_core();
|
|
7325
7321
|
var draft7_1 = require_draft7();
|
|
7326
7322
|
var discriminator_1 = require_discriminator();
|
|
@@ -7346,40 +7342,40 @@ var require_ajv = __commonJS({
|
|
|
7346
7342
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
7347
7343
|
}
|
|
7348
7344
|
};
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
Object.defineProperty(
|
|
7353
|
-
|
|
7345
|
+
exports2.Ajv = Ajv2;
|
|
7346
|
+
module2.exports = exports2 = Ajv2;
|
|
7347
|
+
module2.exports.Ajv = Ajv2;
|
|
7348
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7349
|
+
exports2.default = Ajv2;
|
|
7354
7350
|
var validate_1 = require_validate();
|
|
7355
|
-
Object.defineProperty(
|
|
7351
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
7356
7352
|
return validate_1.KeywordCxt;
|
|
7357
7353
|
} });
|
|
7358
7354
|
var codegen_1 = require_codegen();
|
|
7359
|
-
Object.defineProperty(
|
|
7355
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
7360
7356
|
return codegen_1._;
|
|
7361
7357
|
} });
|
|
7362
|
-
Object.defineProperty(
|
|
7358
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
7363
7359
|
return codegen_1.str;
|
|
7364
7360
|
} });
|
|
7365
|
-
Object.defineProperty(
|
|
7361
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
7366
7362
|
return codegen_1.stringify;
|
|
7367
7363
|
} });
|
|
7368
|
-
Object.defineProperty(
|
|
7364
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
7369
7365
|
return codegen_1.nil;
|
|
7370
7366
|
} });
|
|
7371
|
-
Object.defineProperty(
|
|
7367
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
7372
7368
|
return codegen_1.Name;
|
|
7373
7369
|
} });
|
|
7374
|
-
Object.defineProperty(
|
|
7370
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
7375
7371
|
return codegen_1.CodeGen;
|
|
7376
7372
|
} });
|
|
7377
7373
|
var validation_error_1 = require_validation_error();
|
|
7378
|
-
Object.defineProperty(
|
|
7374
|
+
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: function() {
|
|
7379
7375
|
return validation_error_1.default;
|
|
7380
7376
|
} });
|
|
7381
7377
|
var ref_error_1 = require_ref_error();
|
|
7382
|
-
Object.defineProperty(
|
|
7378
|
+
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: function() {
|
|
7383
7379
|
return ref_error_1.default;
|
|
7384
7380
|
} });
|
|
7385
7381
|
}
|
|
@@ -7387,14 +7383,14 @@ var require_ajv = __commonJS({
|
|
|
7387
7383
|
|
|
7388
7384
|
// ../../node_modules/ajv-formats/dist/formats.js
|
|
7389
7385
|
var require_formats = __commonJS({
|
|
7390
|
-
"../../node_modules/ajv-formats/dist/formats.js"(
|
|
7386
|
+
"../../node_modules/ajv-formats/dist/formats.js"(exports2) {
|
|
7391
7387
|
"use strict";
|
|
7392
|
-
Object.defineProperty(
|
|
7393
|
-
|
|
7388
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7389
|
+
exports2.formatNames = exports2.fastFormats = exports2.fullFormats = void 0;
|
|
7394
7390
|
function fmtDef(validate2, compare) {
|
|
7395
7391
|
return { validate: validate2, compare };
|
|
7396
7392
|
}
|
|
7397
|
-
|
|
7393
|
+
exports2.fullFormats = {
|
|
7398
7394
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
7399
7395
|
date: fmtDef(date5, compareDate),
|
|
7400
7396
|
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -7441,8 +7437,8 @@ var require_formats = __commonJS({
|
|
|
7441
7437
|
// unchecked string payload
|
|
7442
7438
|
binary: true
|
|
7443
7439
|
};
|
|
7444
|
-
|
|
7445
|
-
...
|
|
7440
|
+
exports2.fastFormats = {
|
|
7441
|
+
...exports2.fullFormats,
|
|
7446
7442
|
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
7447
7443
|
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
7448
7444
|
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
@@ -7456,7 +7452,7 @@ var require_formats = __commonJS({
|
|
|
7456
7452
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
7457
7453
|
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
7458
7454
|
};
|
|
7459
|
-
|
|
7455
|
+
exports2.formatNames = Object.keys(exports2.fullFormats);
|
|
7460
7456
|
function isLeapYear(year) {
|
|
7461
7457
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
7462
7458
|
}
|
|
@@ -7590,10 +7586,10 @@ var require_formats = __commonJS({
|
|
|
7590
7586
|
|
|
7591
7587
|
// ../../node_modules/ajv-formats/dist/limit.js
|
|
7592
7588
|
var require_limit = __commonJS({
|
|
7593
|
-
"../../node_modules/ajv-formats/dist/limit.js"(
|
|
7589
|
+
"../../node_modules/ajv-formats/dist/limit.js"(exports2) {
|
|
7594
7590
|
"use strict";
|
|
7595
|
-
Object.defineProperty(
|
|
7596
|
-
|
|
7591
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7592
|
+
exports2.formatLimitDefinition = void 0;
|
|
7597
7593
|
var ajv_1 = require_ajv();
|
|
7598
7594
|
var codegen_1 = require_codegen();
|
|
7599
7595
|
var ops = codegen_1.operators;
|
|
@@ -7607,7 +7603,7 @@ var require_limit = __commonJS({
|
|
|
7607
7603
|
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
7608
7604
|
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
|
|
7609
7605
|
};
|
|
7610
|
-
|
|
7606
|
+
exports2.formatLimitDefinition = {
|
|
7611
7607
|
keyword: Object.keys(KWDs),
|
|
7612
7608
|
type: "string",
|
|
7613
7609
|
schemaType: "string",
|
|
@@ -7653,18 +7649,18 @@ var require_limit = __commonJS({
|
|
|
7653
7649
|
dependencies: ["format"]
|
|
7654
7650
|
};
|
|
7655
7651
|
var formatLimitPlugin = (ajv) => {
|
|
7656
|
-
ajv.addKeyword(
|
|
7652
|
+
ajv.addKeyword(exports2.formatLimitDefinition);
|
|
7657
7653
|
return ajv;
|
|
7658
7654
|
};
|
|
7659
|
-
|
|
7655
|
+
exports2.default = formatLimitPlugin;
|
|
7660
7656
|
}
|
|
7661
7657
|
});
|
|
7662
7658
|
|
|
7663
7659
|
// ../../node_modules/ajv-formats/dist/index.js
|
|
7664
7660
|
var require_dist = __commonJS({
|
|
7665
|
-
"../../node_modules/ajv-formats/dist/index.js"(
|
|
7661
|
+
"../../node_modules/ajv-formats/dist/index.js"(exports2, module2) {
|
|
7666
7662
|
"use strict";
|
|
7667
|
-
Object.defineProperty(
|
|
7663
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7668
7664
|
var formats_1 = require_formats();
|
|
7669
7665
|
var limit_1 = require_limit();
|
|
7670
7666
|
var codegen_1 = require_codegen();
|
|
@@ -7696,15 +7692,15 @@ var require_dist = __commonJS({
|
|
|
7696
7692
|
for (const f of list)
|
|
7697
7693
|
ajv.addFormat(f, fs[f]);
|
|
7698
7694
|
}
|
|
7699
|
-
|
|
7700
|
-
Object.defineProperty(
|
|
7701
|
-
|
|
7695
|
+
module2.exports = exports2 = formatsPlugin;
|
|
7696
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7697
|
+
exports2.default = formatsPlugin;
|
|
7702
7698
|
}
|
|
7703
7699
|
});
|
|
7704
7700
|
|
|
7705
7701
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
7706
7702
|
var require_identity = __commonJS({
|
|
7707
|
-
"../../node_modules/yaml/dist/nodes/identity.js"(
|
|
7703
|
+
"../../node_modules/yaml/dist/nodes/identity.js"(exports2) {
|
|
7708
7704
|
"use strict";
|
|
7709
7705
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
7710
7706
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -7740,28 +7736,28 @@ var require_identity = __commonJS({
|
|
|
7740
7736
|
return false;
|
|
7741
7737
|
}
|
|
7742
7738
|
var hasAnchor = (node2) => (isScalar(node2) || isCollection(node2)) && !!node2.anchor;
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7739
|
+
exports2.ALIAS = ALIAS;
|
|
7740
|
+
exports2.DOC = DOC;
|
|
7741
|
+
exports2.MAP = MAP;
|
|
7742
|
+
exports2.NODE_TYPE = NODE_TYPE;
|
|
7743
|
+
exports2.PAIR = PAIR;
|
|
7744
|
+
exports2.SCALAR = SCALAR;
|
|
7745
|
+
exports2.SEQ = SEQ;
|
|
7746
|
+
exports2.hasAnchor = hasAnchor;
|
|
7747
|
+
exports2.isAlias = isAlias;
|
|
7748
|
+
exports2.isCollection = isCollection;
|
|
7749
|
+
exports2.isDocument = isDocument;
|
|
7750
|
+
exports2.isMap = isMap;
|
|
7751
|
+
exports2.isNode = isNode;
|
|
7752
|
+
exports2.isPair = isPair;
|
|
7753
|
+
exports2.isScalar = isScalar;
|
|
7754
|
+
exports2.isSeq = isSeq;
|
|
7759
7755
|
}
|
|
7760
7756
|
});
|
|
7761
7757
|
|
|
7762
7758
|
// ../../node_modules/yaml/dist/visit.js
|
|
7763
7759
|
var require_visit = __commonJS({
|
|
7764
|
-
"../../node_modules/yaml/dist/visit.js"(
|
|
7760
|
+
"../../node_modules/yaml/dist/visit.js"(exports2) {
|
|
7765
7761
|
"use strict";
|
|
7766
7762
|
var identity = require_identity();
|
|
7767
7763
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -7912,14 +7908,14 @@ var require_visit = __commonJS({
|
|
|
7912
7908
|
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
7913
7909
|
}
|
|
7914
7910
|
}
|
|
7915
|
-
|
|
7916
|
-
|
|
7911
|
+
exports2.visit = visit2;
|
|
7912
|
+
exports2.visitAsync = visitAsync;
|
|
7917
7913
|
}
|
|
7918
7914
|
});
|
|
7919
7915
|
|
|
7920
7916
|
// ../../node_modules/yaml/dist/doc/directives.js
|
|
7921
7917
|
var require_directives = __commonJS({
|
|
7922
|
-
"../../node_modules/yaml/dist/doc/directives.js"(
|
|
7918
|
+
"../../node_modules/yaml/dist/doc/directives.js"(exports2) {
|
|
7923
7919
|
"use strict";
|
|
7924
7920
|
var identity = require_identity();
|
|
7925
7921
|
var visit2 = require_visit();
|
|
@@ -8084,13 +8080,13 @@ var require_directives = __commonJS({
|
|
|
8084
8080
|
};
|
|
8085
8081
|
Directives.defaultYaml = { explicit: false, version: "1.2" };
|
|
8086
8082
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
8087
|
-
|
|
8083
|
+
exports2.Directives = Directives;
|
|
8088
8084
|
}
|
|
8089
8085
|
});
|
|
8090
8086
|
|
|
8091
8087
|
// ../../node_modules/yaml/dist/doc/anchors.js
|
|
8092
8088
|
var require_anchors = __commonJS({
|
|
8093
|
-
"../../node_modules/yaml/dist/doc/anchors.js"(
|
|
8089
|
+
"../../node_modules/yaml/dist/doc/anchors.js"(exports2) {
|
|
8094
8090
|
"use strict";
|
|
8095
8091
|
var identity = require_identity();
|
|
8096
8092
|
var visit2 = require_visit();
|
|
@@ -8151,16 +8147,16 @@ var require_anchors = __commonJS({
|
|
|
8151
8147
|
sourceObjects
|
|
8152
8148
|
};
|
|
8153
8149
|
}
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8150
|
+
exports2.anchorIsValid = anchorIsValid;
|
|
8151
|
+
exports2.anchorNames = anchorNames;
|
|
8152
|
+
exports2.createNodeAnchors = createNodeAnchors;
|
|
8153
|
+
exports2.findNewAnchor = findNewAnchor;
|
|
8158
8154
|
}
|
|
8159
8155
|
});
|
|
8160
8156
|
|
|
8161
8157
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
8162
8158
|
var require_applyReviver = __commonJS({
|
|
8163
|
-
"../../node_modules/yaml/dist/doc/applyReviver.js"(
|
|
8159
|
+
"../../node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
|
|
8164
8160
|
"use strict";
|
|
8165
8161
|
function applyReviver(reviver, obj, key, val) {
|
|
8166
8162
|
if (val && typeof val === "object") {
|
|
@@ -8204,13 +8200,13 @@ var require_applyReviver = __commonJS({
|
|
|
8204
8200
|
}
|
|
8205
8201
|
return reviver.call(obj, key, val);
|
|
8206
8202
|
}
|
|
8207
|
-
|
|
8203
|
+
exports2.applyReviver = applyReviver;
|
|
8208
8204
|
}
|
|
8209
8205
|
});
|
|
8210
8206
|
|
|
8211
8207
|
// ../../node_modules/yaml/dist/nodes/toJS.js
|
|
8212
8208
|
var require_toJS = __commonJS({
|
|
8213
|
-
"../../node_modules/yaml/dist/nodes/toJS.js"(
|
|
8209
|
+
"../../node_modules/yaml/dist/nodes/toJS.js"(exports2) {
|
|
8214
8210
|
"use strict";
|
|
8215
8211
|
var identity = require_identity();
|
|
8216
8212
|
function toJS(value, arg, ctx) {
|
|
@@ -8234,13 +8230,13 @@ var require_toJS = __commonJS({
|
|
|
8234
8230
|
return Number(value);
|
|
8235
8231
|
return value;
|
|
8236
8232
|
}
|
|
8237
|
-
|
|
8233
|
+
exports2.toJS = toJS;
|
|
8238
8234
|
}
|
|
8239
8235
|
});
|
|
8240
8236
|
|
|
8241
8237
|
// ../../node_modules/yaml/dist/nodes/Node.js
|
|
8242
8238
|
var require_Node = __commonJS({
|
|
8243
|
-
"../../node_modules/yaml/dist/nodes/Node.js"(
|
|
8239
|
+
"../../node_modules/yaml/dist/nodes/Node.js"(exports2) {
|
|
8244
8240
|
"use strict";
|
|
8245
8241
|
var applyReviver = require_applyReviver();
|
|
8246
8242
|
var identity = require_identity();
|
|
@@ -8275,13 +8271,13 @@ var require_Node = __commonJS({
|
|
|
8275
8271
|
return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
|
|
8276
8272
|
}
|
|
8277
8273
|
};
|
|
8278
|
-
|
|
8274
|
+
exports2.NodeBase = NodeBase;
|
|
8279
8275
|
}
|
|
8280
8276
|
});
|
|
8281
8277
|
|
|
8282
8278
|
// ../../node_modules/yaml/dist/nodes/Alias.js
|
|
8283
8279
|
var require_Alias = __commonJS({
|
|
8284
|
-
"../../node_modules/yaml/dist/nodes/Alias.js"(
|
|
8280
|
+
"../../node_modules/yaml/dist/nodes/Alias.js"(exports2) {
|
|
8285
8281
|
"use strict";
|
|
8286
8282
|
var anchors = require_anchors();
|
|
8287
8283
|
var visit2 = require_visit();
|
|
@@ -8393,13 +8389,13 @@ var require_Alias = __commonJS({
|
|
|
8393
8389
|
}
|
|
8394
8390
|
return 1;
|
|
8395
8391
|
}
|
|
8396
|
-
|
|
8392
|
+
exports2.Alias = Alias;
|
|
8397
8393
|
}
|
|
8398
8394
|
});
|
|
8399
8395
|
|
|
8400
8396
|
// ../../node_modules/yaml/dist/nodes/Scalar.js
|
|
8401
8397
|
var require_Scalar = __commonJS({
|
|
8402
|
-
"../../node_modules/yaml/dist/nodes/Scalar.js"(
|
|
8398
|
+
"../../node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
|
|
8403
8399
|
"use strict";
|
|
8404
8400
|
var identity = require_identity();
|
|
8405
8401
|
var Node = require_Node();
|
|
@@ -8422,14 +8418,14 @@ var require_Scalar = __commonJS({
|
|
|
8422
8418
|
Scalar.PLAIN = "PLAIN";
|
|
8423
8419
|
Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
8424
8420
|
Scalar.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
8425
|
-
|
|
8426
|
-
|
|
8421
|
+
exports2.Scalar = Scalar;
|
|
8422
|
+
exports2.isScalarValue = isScalarValue;
|
|
8427
8423
|
}
|
|
8428
8424
|
});
|
|
8429
8425
|
|
|
8430
8426
|
// ../../node_modules/yaml/dist/doc/createNode.js
|
|
8431
8427
|
var require_createNode = __commonJS({
|
|
8432
|
-
"../../node_modules/yaml/dist/doc/createNode.js"(
|
|
8428
|
+
"../../node_modules/yaml/dist/doc/createNode.js"(exports2) {
|
|
8433
8429
|
"use strict";
|
|
8434
8430
|
var Alias = require_Alias();
|
|
8435
8431
|
var identity = require_identity();
|
|
@@ -8498,13 +8494,13 @@ var require_createNode = __commonJS({
|
|
|
8498
8494
|
ref.node = node2;
|
|
8499
8495
|
return node2;
|
|
8500
8496
|
}
|
|
8501
|
-
|
|
8497
|
+
exports2.createNode = createNode;
|
|
8502
8498
|
}
|
|
8503
8499
|
});
|
|
8504
8500
|
|
|
8505
8501
|
// ../../node_modules/yaml/dist/nodes/Collection.js
|
|
8506
8502
|
var require_Collection = __commonJS({
|
|
8507
|
-
"../../node_modules/yaml/dist/nodes/Collection.js"(
|
|
8503
|
+
"../../node_modules/yaml/dist/nodes/Collection.js"(exports2) {
|
|
8508
8504
|
"use strict";
|
|
8509
8505
|
var createNode = require_createNode();
|
|
8510
8506
|
var identity = require_identity();
|
|
@@ -8639,15 +8635,15 @@ var require_Collection = __commonJS({
|
|
|
8639
8635
|
}
|
|
8640
8636
|
}
|
|
8641
8637
|
};
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8638
|
+
exports2.Collection = Collection;
|
|
8639
|
+
exports2.collectionFromPath = collectionFromPath;
|
|
8640
|
+
exports2.isEmptyPath = isEmptyPath;
|
|
8645
8641
|
}
|
|
8646
8642
|
});
|
|
8647
8643
|
|
|
8648
8644
|
// ../../node_modules/yaml/dist/stringify/stringifyComment.js
|
|
8649
8645
|
var require_stringifyComment = __commonJS({
|
|
8650
|
-
"../../node_modules/yaml/dist/stringify/stringifyComment.js"(
|
|
8646
|
+
"../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
|
|
8651
8647
|
"use strict";
|
|
8652
8648
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
8653
8649
|
function indentComment(comment, indent) {
|
|
@@ -8656,15 +8652,15 @@ var require_stringifyComment = __commonJS({
|
|
|
8656
8652
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
8657
8653
|
}
|
|
8658
8654
|
var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8655
|
+
exports2.indentComment = indentComment;
|
|
8656
|
+
exports2.lineComment = lineComment;
|
|
8657
|
+
exports2.stringifyComment = stringifyComment;
|
|
8662
8658
|
}
|
|
8663
8659
|
});
|
|
8664
8660
|
|
|
8665
8661
|
// ../../node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
8666
8662
|
var require_foldFlowLines = __commonJS({
|
|
8667
|
-
"../../node_modules/yaml/dist/stringify/foldFlowLines.js"(
|
|
8663
|
+
"../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
|
|
8668
8664
|
"use strict";
|
|
8669
8665
|
var FOLD_FLOW = "flow";
|
|
8670
8666
|
var FOLD_BLOCK = "block";
|
|
@@ -8791,16 +8787,16 @@ ${indent}${text2.slice(fold + 1, end2)}`;
|
|
|
8791
8787
|
}
|
|
8792
8788
|
return end;
|
|
8793
8789
|
}
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8790
|
+
exports2.FOLD_BLOCK = FOLD_BLOCK;
|
|
8791
|
+
exports2.FOLD_FLOW = FOLD_FLOW;
|
|
8792
|
+
exports2.FOLD_QUOTED = FOLD_QUOTED;
|
|
8793
|
+
exports2.foldFlowLines = foldFlowLines;
|
|
8798
8794
|
}
|
|
8799
8795
|
});
|
|
8800
8796
|
|
|
8801
8797
|
// ../../node_modules/yaml/dist/stringify/stringifyString.js
|
|
8802
8798
|
var require_stringifyString = __commonJS({
|
|
8803
|
-
"../../node_modules/yaml/dist/stringify/stringifyString.js"(
|
|
8799
|
+
"../../node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
|
|
8804
8800
|
"use strict";
|
|
8805
8801
|
var Scalar = require_Scalar();
|
|
8806
8802
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -9077,13 +9073,13 @@ ${indent}`);
|
|
|
9077
9073
|
}
|
|
9078
9074
|
return res;
|
|
9079
9075
|
}
|
|
9080
|
-
|
|
9076
|
+
exports2.stringifyString = stringifyString;
|
|
9081
9077
|
}
|
|
9082
9078
|
});
|
|
9083
9079
|
|
|
9084
9080
|
// ../../node_modules/yaml/dist/stringify/stringify.js
|
|
9085
9081
|
var require_stringify = __commonJS({
|
|
9086
|
-
"../../node_modules/yaml/dist/stringify/stringify.js"(
|
|
9082
|
+
"../../node_modules/yaml/dist/stringify/stringify.js"(exports2) {
|
|
9087
9083
|
"use strict";
|
|
9088
9084
|
var anchors = require_anchors();
|
|
9089
9085
|
var identity = require_identity();
|
|
@@ -9200,14 +9196,14 @@ var require_stringify = __commonJS({
|
|
|
9200
9196
|
return identity.isScalar(node2) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
|
|
9201
9197
|
${ctx.indent}${str}`;
|
|
9202
9198
|
}
|
|
9203
|
-
|
|
9204
|
-
|
|
9199
|
+
exports2.createStringifyContext = createStringifyContext;
|
|
9200
|
+
exports2.stringify = stringify;
|
|
9205
9201
|
}
|
|
9206
9202
|
});
|
|
9207
9203
|
|
|
9208
9204
|
// ../../node_modules/yaml/dist/stringify/stringifyPair.js
|
|
9209
9205
|
var require_stringifyPair = __commonJS({
|
|
9210
|
-
"../../node_modules/yaml/dist/stringify/stringifyPair.js"(
|
|
9206
|
+
"../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
|
|
9211
9207
|
"use strict";
|
|
9212
9208
|
var identity = require_identity();
|
|
9213
9209
|
var Scalar = require_Scalar();
|
|
@@ -9334,15 +9330,15 @@ ${ctx.indent}`;
|
|
|
9334
9330
|
}
|
|
9335
9331
|
return str;
|
|
9336
9332
|
}
|
|
9337
|
-
|
|
9333
|
+
exports2.stringifyPair = stringifyPair;
|
|
9338
9334
|
}
|
|
9339
9335
|
});
|
|
9340
9336
|
|
|
9341
9337
|
// ../../node_modules/yaml/dist/log.js
|
|
9342
9338
|
var require_log = __commonJS({
|
|
9343
|
-
"../../node_modules/yaml/dist/log.js"(
|
|
9339
|
+
"../../node_modules/yaml/dist/log.js"(exports2) {
|
|
9344
9340
|
"use strict";
|
|
9345
|
-
var node_process =
|
|
9341
|
+
var node_process = require("process");
|
|
9346
9342
|
function debug(logLevel, ...messages) {
|
|
9347
9343
|
if (logLevel === "debug")
|
|
9348
9344
|
console.log(...messages);
|
|
@@ -9355,14 +9351,14 @@ var require_log = __commonJS({
|
|
|
9355
9351
|
console.warn(warning);
|
|
9356
9352
|
}
|
|
9357
9353
|
}
|
|
9358
|
-
|
|
9359
|
-
|
|
9354
|
+
exports2.debug = debug;
|
|
9355
|
+
exports2.warn = warn;
|
|
9360
9356
|
}
|
|
9361
9357
|
});
|
|
9362
9358
|
|
|
9363
9359
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
9364
9360
|
var require_merge = __commonJS({
|
|
9365
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(
|
|
9361
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
|
|
9366
9362
|
"use strict";
|
|
9367
9363
|
var identity = require_identity();
|
|
9368
9364
|
var Scalar = require_Scalar();
|
|
@@ -9414,15 +9410,15 @@ var require_merge = __commonJS({
|
|
|
9414
9410
|
function resolveAliasValue(ctx, value) {
|
|
9415
9411
|
return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
9416
9412
|
}
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9413
|
+
exports2.addMergeToJSMap = addMergeToJSMap;
|
|
9414
|
+
exports2.isMergeKey = isMergeKey;
|
|
9415
|
+
exports2.merge = merge2;
|
|
9420
9416
|
}
|
|
9421
9417
|
});
|
|
9422
9418
|
|
|
9423
9419
|
// ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
9424
9420
|
var require_addPairToJSMap = __commonJS({
|
|
9425
|
-
"../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(
|
|
9421
|
+
"../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
|
|
9426
9422
|
"use strict";
|
|
9427
9423
|
var log = require_log();
|
|
9428
9424
|
var merge2 = require_merge();
|
|
@@ -9480,13 +9476,13 @@ var require_addPairToJSMap = __commonJS({
|
|
|
9480
9476
|
}
|
|
9481
9477
|
return JSON.stringify(jsKey);
|
|
9482
9478
|
}
|
|
9483
|
-
|
|
9479
|
+
exports2.addPairToJSMap = addPairToJSMap;
|
|
9484
9480
|
}
|
|
9485
9481
|
});
|
|
9486
9482
|
|
|
9487
9483
|
// ../../node_modules/yaml/dist/nodes/Pair.js
|
|
9488
9484
|
var require_Pair = __commonJS({
|
|
9489
|
-
"../../node_modules/yaml/dist/nodes/Pair.js"(
|
|
9485
|
+
"../../node_modules/yaml/dist/nodes/Pair.js"(exports2) {
|
|
9490
9486
|
"use strict";
|
|
9491
9487
|
var createNode = require_createNode();
|
|
9492
9488
|
var stringifyPair = require_stringifyPair();
|
|
@@ -9519,14 +9515,14 @@ var require_Pair = __commonJS({
|
|
|
9519
9515
|
return ctx?.doc ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
|
|
9520
9516
|
}
|
|
9521
9517
|
};
|
|
9522
|
-
|
|
9523
|
-
|
|
9518
|
+
exports2.Pair = Pair;
|
|
9519
|
+
exports2.createPair = createPair;
|
|
9524
9520
|
}
|
|
9525
9521
|
});
|
|
9526
9522
|
|
|
9527
9523
|
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
9528
9524
|
var require_stringifyCollection = __commonJS({
|
|
9529
|
-
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(
|
|
9525
|
+
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
9530
9526
|
"use strict";
|
|
9531
9527
|
var identity = require_identity();
|
|
9532
9528
|
var stringify = require_stringify();
|
|
@@ -9671,13 +9667,13 @@ ${indent}${end}`;
|
|
|
9671
9667
|
lines.push(ic.trimStart());
|
|
9672
9668
|
}
|
|
9673
9669
|
}
|
|
9674
|
-
|
|
9670
|
+
exports2.stringifyCollection = stringifyCollection;
|
|
9675
9671
|
}
|
|
9676
9672
|
});
|
|
9677
9673
|
|
|
9678
9674
|
// ../../node_modules/yaml/dist/nodes/YAMLMap.js
|
|
9679
9675
|
var require_YAMLMap = __commonJS({
|
|
9680
|
-
"../../node_modules/yaml/dist/nodes/YAMLMap.js"(
|
|
9676
|
+
"../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
|
|
9681
9677
|
"use strict";
|
|
9682
9678
|
var stringifyCollection = require_stringifyCollection();
|
|
9683
9679
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -9814,14 +9810,14 @@ var require_YAMLMap = __commonJS({
|
|
|
9814
9810
|
});
|
|
9815
9811
|
}
|
|
9816
9812
|
};
|
|
9817
|
-
|
|
9818
|
-
|
|
9813
|
+
exports2.YAMLMap = YAMLMap;
|
|
9814
|
+
exports2.findPair = findPair;
|
|
9819
9815
|
}
|
|
9820
9816
|
});
|
|
9821
9817
|
|
|
9822
9818
|
// ../../node_modules/yaml/dist/schema/common/map.js
|
|
9823
9819
|
var require_map = __commonJS({
|
|
9824
|
-
"../../node_modules/yaml/dist/schema/common/map.js"(
|
|
9820
|
+
"../../node_modules/yaml/dist/schema/common/map.js"(exports2) {
|
|
9825
9821
|
"use strict";
|
|
9826
9822
|
var identity = require_identity();
|
|
9827
9823
|
var YAMLMap = require_YAMLMap();
|
|
@@ -9837,13 +9833,13 @@ var require_map = __commonJS({
|
|
|
9837
9833
|
},
|
|
9838
9834
|
createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
|
|
9839
9835
|
};
|
|
9840
|
-
|
|
9836
|
+
exports2.map = map2;
|
|
9841
9837
|
}
|
|
9842
9838
|
});
|
|
9843
9839
|
|
|
9844
9840
|
// ../../node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
9845
9841
|
var require_YAMLSeq = __commonJS({
|
|
9846
|
-
"../../node_modules/yaml/dist/nodes/YAMLSeq.js"(
|
|
9842
|
+
"../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
|
|
9847
9843
|
"use strict";
|
|
9848
9844
|
var createNode = require_createNode();
|
|
9849
9845
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -9953,13 +9949,13 @@ var require_YAMLSeq = __commonJS({
|
|
|
9953
9949
|
idx = Number(idx);
|
|
9954
9950
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
9955
9951
|
}
|
|
9956
|
-
|
|
9952
|
+
exports2.YAMLSeq = YAMLSeq;
|
|
9957
9953
|
}
|
|
9958
9954
|
});
|
|
9959
9955
|
|
|
9960
9956
|
// ../../node_modules/yaml/dist/schema/common/seq.js
|
|
9961
9957
|
var require_seq = __commonJS({
|
|
9962
|
-
"../../node_modules/yaml/dist/schema/common/seq.js"(
|
|
9958
|
+
"../../node_modules/yaml/dist/schema/common/seq.js"(exports2) {
|
|
9963
9959
|
"use strict";
|
|
9964
9960
|
var identity = require_identity();
|
|
9965
9961
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -9975,13 +9971,13 @@ var require_seq = __commonJS({
|
|
|
9975
9971
|
},
|
|
9976
9972
|
createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
|
|
9977
9973
|
};
|
|
9978
|
-
|
|
9974
|
+
exports2.seq = seq;
|
|
9979
9975
|
}
|
|
9980
9976
|
});
|
|
9981
9977
|
|
|
9982
9978
|
// ../../node_modules/yaml/dist/schema/common/string.js
|
|
9983
9979
|
var require_string = __commonJS({
|
|
9984
|
-
"../../node_modules/yaml/dist/schema/common/string.js"(
|
|
9980
|
+
"../../node_modules/yaml/dist/schema/common/string.js"(exports2) {
|
|
9985
9981
|
"use strict";
|
|
9986
9982
|
var stringifyString = require_stringifyString();
|
|
9987
9983
|
var string4 = {
|
|
@@ -9994,13 +9990,13 @@ var require_string = __commonJS({
|
|
|
9994
9990
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
9995
9991
|
}
|
|
9996
9992
|
};
|
|
9997
|
-
|
|
9993
|
+
exports2.string = string4;
|
|
9998
9994
|
}
|
|
9999
9995
|
});
|
|
10000
9996
|
|
|
10001
9997
|
// ../../node_modules/yaml/dist/schema/common/null.js
|
|
10002
9998
|
var require_null = __commonJS({
|
|
10003
|
-
"../../node_modules/yaml/dist/schema/common/null.js"(
|
|
9999
|
+
"../../node_modules/yaml/dist/schema/common/null.js"(exports2) {
|
|
10004
10000
|
"use strict";
|
|
10005
10001
|
var Scalar = require_Scalar();
|
|
10006
10002
|
var nullTag = {
|
|
@@ -10012,13 +10008,13 @@ var require_null = __commonJS({
|
|
|
10012
10008
|
resolve: () => new Scalar.Scalar(null),
|
|
10013
10009
|
stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
10014
10010
|
};
|
|
10015
|
-
|
|
10011
|
+
exports2.nullTag = nullTag;
|
|
10016
10012
|
}
|
|
10017
10013
|
});
|
|
10018
10014
|
|
|
10019
10015
|
// ../../node_modules/yaml/dist/schema/core/bool.js
|
|
10020
10016
|
var require_bool = __commonJS({
|
|
10021
|
-
"../../node_modules/yaml/dist/schema/core/bool.js"(
|
|
10017
|
+
"../../node_modules/yaml/dist/schema/core/bool.js"(exports2) {
|
|
10022
10018
|
"use strict";
|
|
10023
10019
|
var Scalar = require_Scalar();
|
|
10024
10020
|
var boolTag = {
|
|
@@ -10036,13 +10032,13 @@ var require_bool = __commonJS({
|
|
|
10036
10032
|
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
10037
10033
|
}
|
|
10038
10034
|
};
|
|
10039
|
-
|
|
10035
|
+
exports2.boolTag = boolTag;
|
|
10040
10036
|
}
|
|
10041
10037
|
});
|
|
10042
10038
|
|
|
10043
10039
|
// ../../node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
10044
10040
|
var require_stringifyNumber = __commonJS({
|
|
10045
|
-
"../../node_modules/yaml/dist/stringify/stringifyNumber.js"(
|
|
10041
|
+
"../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
|
|
10046
10042
|
"use strict";
|
|
10047
10043
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
10048
10044
|
if (typeof value === "bigint")
|
|
@@ -10063,13 +10059,13 @@ var require_stringifyNumber = __commonJS({
|
|
|
10063
10059
|
}
|
|
10064
10060
|
return n;
|
|
10065
10061
|
}
|
|
10066
|
-
|
|
10062
|
+
exports2.stringifyNumber = stringifyNumber;
|
|
10067
10063
|
}
|
|
10068
10064
|
});
|
|
10069
10065
|
|
|
10070
10066
|
// ../../node_modules/yaml/dist/schema/core/float.js
|
|
10071
10067
|
var require_float = __commonJS({
|
|
10072
|
-
"../../node_modules/yaml/dist/schema/core/float.js"(
|
|
10068
|
+
"../../node_modules/yaml/dist/schema/core/float.js"(exports2) {
|
|
10073
10069
|
"use strict";
|
|
10074
10070
|
var Scalar = require_Scalar();
|
|
10075
10071
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -10107,15 +10103,15 @@ var require_float = __commonJS({
|
|
|
10107
10103
|
},
|
|
10108
10104
|
stringify: stringifyNumber.stringifyNumber
|
|
10109
10105
|
};
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10106
|
+
exports2.float = float;
|
|
10107
|
+
exports2.floatExp = floatExp;
|
|
10108
|
+
exports2.floatNaN = floatNaN;
|
|
10113
10109
|
}
|
|
10114
10110
|
});
|
|
10115
10111
|
|
|
10116
10112
|
// ../../node_modules/yaml/dist/schema/core/int.js
|
|
10117
10113
|
var require_int = __commonJS({
|
|
10118
|
-
"../../node_modules/yaml/dist/schema/core/int.js"(
|
|
10114
|
+
"../../node_modules/yaml/dist/schema/core/int.js"(exports2) {
|
|
10119
10115
|
"use strict";
|
|
10120
10116
|
var stringifyNumber = require_stringifyNumber();
|
|
10121
10117
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -10152,15 +10148,15 @@ var require_int = __commonJS({
|
|
|
10152
10148
|
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
10153
10149
|
stringify: (node2) => intStringify(node2, 16, "0x")
|
|
10154
10150
|
};
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10151
|
+
exports2.int = int2;
|
|
10152
|
+
exports2.intHex = intHex;
|
|
10153
|
+
exports2.intOct = intOct;
|
|
10158
10154
|
}
|
|
10159
10155
|
});
|
|
10160
10156
|
|
|
10161
10157
|
// ../../node_modules/yaml/dist/schema/core/schema.js
|
|
10162
10158
|
var require_schema = __commonJS({
|
|
10163
|
-
"../../node_modules/yaml/dist/schema/core/schema.js"(
|
|
10159
|
+
"../../node_modules/yaml/dist/schema/core/schema.js"(exports2) {
|
|
10164
10160
|
"use strict";
|
|
10165
10161
|
var map2 = require_map();
|
|
10166
10162
|
var _null4 = require_null();
|
|
@@ -10182,13 +10178,13 @@ var require_schema = __commonJS({
|
|
|
10182
10178
|
float.floatExp,
|
|
10183
10179
|
float.float
|
|
10184
10180
|
];
|
|
10185
|
-
|
|
10181
|
+
exports2.schema = schema;
|
|
10186
10182
|
}
|
|
10187
10183
|
});
|
|
10188
10184
|
|
|
10189
10185
|
// ../../node_modules/yaml/dist/schema/json/schema.js
|
|
10190
10186
|
var require_schema2 = __commonJS({
|
|
10191
|
-
"../../node_modules/yaml/dist/schema/json/schema.js"(
|
|
10187
|
+
"../../node_modules/yaml/dist/schema/json/schema.js"(exports2) {
|
|
10192
10188
|
"use strict";
|
|
10193
10189
|
var Scalar = require_Scalar();
|
|
10194
10190
|
var map2 = require_map();
|
|
@@ -10249,15 +10245,15 @@ var require_schema2 = __commonJS({
|
|
|
10249
10245
|
}
|
|
10250
10246
|
};
|
|
10251
10247
|
var schema = [map2.map, seq.seq].concat(jsonScalars, jsonError);
|
|
10252
|
-
|
|
10248
|
+
exports2.schema = schema;
|
|
10253
10249
|
}
|
|
10254
10250
|
});
|
|
10255
10251
|
|
|
10256
10252
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
10257
10253
|
var require_binary = __commonJS({
|
|
10258
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(
|
|
10254
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
|
|
10259
10255
|
"use strict";
|
|
10260
|
-
var node_buffer =
|
|
10256
|
+
var node_buffer = require("buffer");
|
|
10261
10257
|
var Scalar = require_Scalar();
|
|
10262
10258
|
var stringifyString = require_stringifyString();
|
|
10263
10259
|
var binary = {
|
|
@@ -10315,13 +10311,13 @@ var require_binary = __commonJS({
|
|
|
10315
10311
|
return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
|
|
10316
10312
|
}
|
|
10317
10313
|
};
|
|
10318
|
-
|
|
10314
|
+
exports2.binary = binary;
|
|
10319
10315
|
}
|
|
10320
10316
|
});
|
|
10321
10317
|
|
|
10322
10318
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
10323
10319
|
var require_pairs = __commonJS({
|
|
10324
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(
|
|
10320
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
|
|
10325
10321
|
"use strict";
|
|
10326
10322
|
var identity = require_identity();
|
|
10327
10323
|
var Pair = require_Pair();
|
|
@@ -10391,15 +10387,15 @@ ${cn.comment}` : item.comment;
|
|
|
10391
10387
|
resolve: resolvePairs,
|
|
10392
10388
|
createNode: createPairs
|
|
10393
10389
|
};
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10390
|
+
exports2.createPairs = createPairs;
|
|
10391
|
+
exports2.pairs = pairs;
|
|
10392
|
+
exports2.resolvePairs = resolvePairs;
|
|
10397
10393
|
}
|
|
10398
10394
|
});
|
|
10399
10395
|
|
|
10400
10396
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
10401
10397
|
var require_omap = __commonJS({
|
|
10402
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(
|
|
10398
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
|
|
10403
10399
|
"use strict";
|
|
10404
10400
|
var identity = require_identity();
|
|
10405
10401
|
var toJS = require_toJS();
|
|
@@ -10470,14 +10466,14 @@ var require_omap = __commonJS({
|
|
|
10470
10466
|
},
|
|
10471
10467
|
createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
|
|
10472
10468
|
};
|
|
10473
|
-
|
|
10474
|
-
|
|
10469
|
+
exports2.YAMLOMap = YAMLOMap;
|
|
10470
|
+
exports2.omap = omap;
|
|
10475
10471
|
}
|
|
10476
10472
|
});
|
|
10477
10473
|
|
|
10478
10474
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
10479
10475
|
var require_bool2 = __commonJS({
|
|
10480
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(
|
|
10476
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
|
|
10481
10477
|
"use strict";
|
|
10482
10478
|
var Scalar = require_Scalar();
|
|
10483
10479
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -10502,14 +10498,14 @@ var require_bool2 = __commonJS({
|
|
|
10502
10498
|
resolve: () => new Scalar.Scalar(false),
|
|
10503
10499
|
stringify: boolStringify
|
|
10504
10500
|
};
|
|
10505
|
-
|
|
10506
|
-
|
|
10501
|
+
exports2.falseTag = falseTag;
|
|
10502
|
+
exports2.trueTag = trueTag;
|
|
10507
10503
|
}
|
|
10508
10504
|
});
|
|
10509
10505
|
|
|
10510
10506
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
10511
10507
|
var require_float2 = __commonJS({
|
|
10512
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(
|
|
10508
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
|
|
10513
10509
|
"use strict";
|
|
10514
10510
|
var Scalar = require_Scalar();
|
|
10515
10511
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -10550,15 +10546,15 @@ var require_float2 = __commonJS({
|
|
|
10550
10546
|
},
|
|
10551
10547
|
stringify: stringifyNumber.stringifyNumber
|
|
10552
10548
|
};
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10549
|
+
exports2.float = float;
|
|
10550
|
+
exports2.floatExp = floatExp;
|
|
10551
|
+
exports2.floatNaN = floatNaN;
|
|
10556
10552
|
}
|
|
10557
10553
|
});
|
|
10558
10554
|
|
|
10559
10555
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
10560
10556
|
var require_int2 = __commonJS({
|
|
10561
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(
|
|
10557
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
|
|
10562
10558
|
"use strict";
|
|
10563
10559
|
var stringifyNumber = require_stringifyNumber();
|
|
10564
10560
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -10628,16 +10624,16 @@ var require_int2 = __commonJS({
|
|
|
10628
10624
|
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
10629
10625
|
stringify: (node2) => intStringify(node2, 16, "0x")
|
|
10630
10626
|
};
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10627
|
+
exports2.int = int2;
|
|
10628
|
+
exports2.intBin = intBin;
|
|
10629
|
+
exports2.intHex = intHex;
|
|
10630
|
+
exports2.intOct = intOct;
|
|
10635
10631
|
}
|
|
10636
10632
|
});
|
|
10637
10633
|
|
|
10638
10634
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
10639
10635
|
var require_set = __commonJS({
|
|
10640
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(
|
|
10636
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
|
|
10641
10637
|
"use strict";
|
|
10642
10638
|
var identity = require_identity();
|
|
10643
10639
|
var Pair = require_Pair();
|
|
@@ -10719,14 +10715,14 @@ var require_set = __commonJS({
|
|
|
10719
10715
|
return map2;
|
|
10720
10716
|
}
|
|
10721
10717
|
};
|
|
10722
|
-
|
|
10723
|
-
|
|
10718
|
+
exports2.YAMLSet = YAMLSet;
|
|
10719
|
+
exports2.set = set2;
|
|
10724
10720
|
}
|
|
10725
10721
|
});
|
|
10726
10722
|
|
|
10727
10723
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
10728
10724
|
var require_timestamp = __commonJS({
|
|
10729
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(
|
|
10725
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
|
|
10730
10726
|
"use strict";
|
|
10731
10727
|
var stringifyNumber = require_stringifyNumber();
|
|
10732
10728
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -10806,15 +10802,15 @@ var require_timestamp = __commonJS({
|
|
|
10806
10802
|
},
|
|
10807
10803
|
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
10808
10804
|
};
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10805
|
+
exports2.floatTime = floatTime;
|
|
10806
|
+
exports2.intTime = intTime;
|
|
10807
|
+
exports2.timestamp = timestamp;
|
|
10812
10808
|
}
|
|
10813
10809
|
});
|
|
10814
10810
|
|
|
10815
10811
|
// ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
10816
10812
|
var require_schema3 = __commonJS({
|
|
10817
|
-
"../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(
|
|
10813
|
+
"../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
|
|
10818
10814
|
"use strict";
|
|
10819
10815
|
var map2 = require_map();
|
|
10820
10816
|
var _null4 = require_null();
|
|
@@ -10852,13 +10848,13 @@ var require_schema3 = __commonJS({
|
|
|
10852
10848
|
timestamp.floatTime,
|
|
10853
10849
|
timestamp.timestamp
|
|
10854
10850
|
];
|
|
10855
|
-
|
|
10851
|
+
exports2.schema = schema;
|
|
10856
10852
|
}
|
|
10857
10853
|
});
|
|
10858
10854
|
|
|
10859
10855
|
// ../../node_modules/yaml/dist/schema/tags.js
|
|
10860
10856
|
var require_tags = __commonJS({
|
|
10861
|
-
"../../node_modules/yaml/dist/schema/tags.js"(
|
|
10857
|
+
"../../node_modules/yaml/dist/schema/tags.js"(exports2) {
|
|
10862
10858
|
"use strict";
|
|
10863
10859
|
var map2 = require_map();
|
|
10864
10860
|
var _null4 = require_null();
|
|
@@ -10945,14 +10941,14 @@ var require_tags = __commonJS({
|
|
|
10945
10941
|
return tags2;
|
|
10946
10942
|
}, []);
|
|
10947
10943
|
}
|
|
10948
|
-
|
|
10949
|
-
|
|
10944
|
+
exports2.coreKnownTags = coreKnownTags;
|
|
10945
|
+
exports2.getTags = getTags;
|
|
10950
10946
|
}
|
|
10951
10947
|
});
|
|
10952
10948
|
|
|
10953
10949
|
// ../../node_modules/yaml/dist/schema/Schema.js
|
|
10954
10950
|
var require_Schema = __commonJS({
|
|
10955
|
-
"../../node_modules/yaml/dist/schema/Schema.js"(
|
|
10951
|
+
"../../node_modules/yaml/dist/schema/Schema.js"(exports2) {
|
|
10956
10952
|
"use strict";
|
|
10957
10953
|
var identity = require_identity();
|
|
10958
10954
|
var map2 = require_map();
|
|
@@ -10978,13 +10974,13 @@ var require_Schema = __commonJS({
|
|
|
10978
10974
|
return copy;
|
|
10979
10975
|
}
|
|
10980
10976
|
};
|
|
10981
|
-
|
|
10977
|
+
exports2.Schema = Schema;
|
|
10982
10978
|
}
|
|
10983
10979
|
});
|
|
10984
10980
|
|
|
10985
10981
|
// ../../node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
10986
10982
|
var require_stringifyDocument = __commonJS({
|
|
10987
|
-
"../../node_modules/yaml/dist/stringify/stringifyDocument.js"(
|
|
10983
|
+
"../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
|
|
10988
10984
|
"use strict";
|
|
10989
10985
|
var identity = require_identity();
|
|
10990
10986
|
var stringify = require_stringify();
|
|
@@ -11058,13 +11054,13 @@ var require_stringifyDocument = __commonJS({
|
|
|
11058
11054
|
}
|
|
11059
11055
|
return lines.join("\n") + "\n";
|
|
11060
11056
|
}
|
|
11061
|
-
|
|
11057
|
+
exports2.stringifyDocument = stringifyDocument;
|
|
11062
11058
|
}
|
|
11063
11059
|
});
|
|
11064
11060
|
|
|
11065
11061
|
// ../../node_modules/yaml/dist/doc/Document.js
|
|
11066
11062
|
var require_Document = __commonJS({
|
|
11067
|
-
"../../node_modules/yaml/dist/doc/Document.js"(
|
|
11063
|
+
"../../node_modules/yaml/dist/doc/Document.js"(exports2) {
|
|
11068
11064
|
"use strict";
|
|
11069
11065
|
var Alias = require_Alias();
|
|
11070
11066
|
var Collection = require_Collection();
|
|
@@ -11367,13 +11363,13 @@ var require_Document = __commonJS({
|
|
|
11367
11363
|
return true;
|
|
11368
11364
|
throw new Error("Expected a YAML collection as document contents");
|
|
11369
11365
|
}
|
|
11370
|
-
|
|
11366
|
+
exports2.Document = Document;
|
|
11371
11367
|
}
|
|
11372
11368
|
});
|
|
11373
11369
|
|
|
11374
11370
|
// ../../node_modules/yaml/dist/errors.js
|
|
11375
11371
|
var require_errors2 = __commonJS({
|
|
11376
|
-
"../../node_modules/yaml/dist/errors.js"(
|
|
11372
|
+
"../../node_modules/yaml/dist/errors.js"(exports2) {
|
|
11377
11373
|
"use strict";
|
|
11378
11374
|
var YAMLError = class extends Error {
|
|
11379
11375
|
constructor(name, pos, code, message) {
|
|
@@ -11429,16 +11425,16 @@ ${pointer}
|
|
|
11429
11425
|
`;
|
|
11430
11426
|
}
|
|
11431
11427
|
};
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11428
|
+
exports2.YAMLError = YAMLError;
|
|
11429
|
+
exports2.YAMLParseError = YAMLParseError;
|
|
11430
|
+
exports2.YAMLWarning = YAMLWarning;
|
|
11431
|
+
exports2.prettifyError = prettifyError2;
|
|
11436
11432
|
}
|
|
11437
11433
|
});
|
|
11438
11434
|
|
|
11439
11435
|
// ../../node_modules/yaml/dist/compose/resolve-props.js
|
|
11440
11436
|
var require_resolve_props = __commonJS({
|
|
11441
|
-
"../../node_modules/yaml/dist/compose/resolve-props.js"(
|
|
11437
|
+
"../../node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
|
|
11442
11438
|
"use strict";
|
|
11443
11439
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
11444
11440
|
let spaceBefore = false;
|
|
@@ -11566,13 +11562,13 @@ var require_resolve_props = __commonJS({
|
|
|
11566
11562
|
start: start ?? end
|
|
11567
11563
|
};
|
|
11568
11564
|
}
|
|
11569
|
-
|
|
11565
|
+
exports2.resolveProps = resolveProps;
|
|
11570
11566
|
}
|
|
11571
11567
|
});
|
|
11572
11568
|
|
|
11573
11569
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
11574
11570
|
var require_util_contains_newline = __commonJS({
|
|
11575
|
-
"../../node_modules/yaml/dist/compose/util-contains-newline.js"(
|
|
11571
|
+
"../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
|
|
11576
11572
|
"use strict";
|
|
11577
11573
|
function containsNewline(key) {
|
|
11578
11574
|
if (!key)
|
|
@@ -11608,13 +11604,13 @@ var require_util_contains_newline = __commonJS({
|
|
|
11608
11604
|
return true;
|
|
11609
11605
|
}
|
|
11610
11606
|
}
|
|
11611
|
-
|
|
11607
|
+
exports2.containsNewline = containsNewline;
|
|
11612
11608
|
}
|
|
11613
11609
|
});
|
|
11614
11610
|
|
|
11615
11611
|
// ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
11616
11612
|
var require_util_flow_indent_check = __commonJS({
|
|
11617
|
-
"../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(
|
|
11613
|
+
"../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
|
|
11618
11614
|
"use strict";
|
|
11619
11615
|
var utilContainsNewline = require_util_contains_newline();
|
|
11620
11616
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -11626,13 +11622,13 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
11626
11622
|
}
|
|
11627
11623
|
}
|
|
11628
11624
|
}
|
|
11629
|
-
|
|
11625
|
+
exports2.flowIndentCheck = flowIndentCheck;
|
|
11630
11626
|
}
|
|
11631
11627
|
});
|
|
11632
11628
|
|
|
11633
11629
|
// ../../node_modules/yaml/dist/compose/util-map-includes.js
|
|
11634
11630
|
var require_util_map_includes = __commonJS({
|
|
11635
|
-
"../../node_modules/yaml/dist/compose/util-map-includes.js"(
|
|
11631
|
+
"../../node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
|
|
11636
11632
|
"use strict";
|
|
11637
11633
|
var identity = require_identity();
|
|
11638
11634
|
function mapIncludes(ctx, items, search) {
|
|
@@ -11642,13 +11638,13 @@ var require_util_map_includes = __commonJS({
|
|
|
11642
11638
|
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
|
|
11643
11639
|
return items.some((pair) => isEqual(pair.key, search));
|
|
11644
11640
|
}
|
|
11645
|
-
|
|
11641
|
+
exports2.mapIncludes = mapIncludes;
|
|
11646
11642
|
}
|
|
11647
11643
|
});
|
|
11648
11644
|
|
|
11649
11645
|
// ../../node_modules/yaml/dist/compose/resolve-block-map.js
|
|
11650
11646
|
var require_resolve_block_map = __commonJS({
|
|
11651
|
-
"../../node_modules/yaml/dist/compose/resolve-block-map.js"(
|
|
11647
|
+
"../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
|
|
11652
11648
|
"use strict";
|
|
11653
11649
|
var Pair = require_Pair();
|
|
11654
11650
|
var YAMLMap = require_YAMLMap();
|
|
@@ -11750,13 +11746,13 @@ var require_resolve_block_map = __commonJS({
|
|
|
11750
11746
|
map2.range = [bm.offset, offset, commentEnd ?? offset];
|
|
11751
11747
|
return map2;
|
|
11752
11748
|
}
|
|
11753
|
-
|
|
11749
|
+
exports2.resolveBlockMap = resolveBlockMap;
|
|
11754
11750
|
}
|
|
11755
11751
|
});
|
|
11756
11752
|
|
|
11757
11753
|
// ../../node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
11758
11754
|
var require_resolve_block_seq = __commonJS({
|
|
11759
|
-
"../../node_modules/yaml/dist/compose/resolve-block-seq.js"(
|
|
11755
|
+
"../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
|
|
11760
11756
|
"use strict";
|
|
11761
11757
|
var YAMLSeq = require_YAMLSeq();
|
|
11762
11758
|
var resolveProps = require_resolve_props();
|
|
@@ -11801,13 +11797,13 @@ var require_resolve_block_seq = __commonJS({
|
|
|
11801
11797
|
seq.range = [bs.offset, offset, commentEnd ?? offset];
|
|
11802
11798
|
return seq;
|
|
11803
11799
|
}
|
|
11804
|
-
|
|
11800
|
+
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
11805
11801
|
}
|
|
11806
11802
|
});
|
|
11807
11803
|
|
|
11808
11804
|
// ../../node_modules/yaml/dist/compose/resolve-end.js
|
|
11809
11805
|
var require_resolve_end = __commonJS({
|
|
11810
|
-
"../../node_modules/yaml/dist/compose/resolve-end.js"(
|
|
11806
|
+
"../../node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
|
|
11811
11807
|
"use strict";
|
|
11812
11808
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
11813
11809
|
let comment = "";
|
|
@@ -11844,13 +11840,13 @@ var require_resolve_end = __commonJS({
|
|
|
11844
11840
|
}
|
|
11845
11841
|
return { comment, offset };
|
|
11846
11842
|
}
|
|
11847
|
-
|
|
11843
|
+
exports2.resolveEnd = resolveEnd;
|
|
11848
11844
|
}
|
|
11849
11845
|
});
|
|
11850
11846
|
|
|
11851
11847
|
// ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
11852
11848
|
var require_resolve_flow_collection = __commonJS({
|
|
11853
|
-
"../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(
|
|
11849
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
|
|
11854
11850
|
"use strict";
|
|
11855
11851
|
var identity = require_identity();
|
|
11856
11852
|
var Pair = require_Pair();
|
|
@@ -12038,13 +12034,13 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
12038
12034
|
}
|
|
12039
12035
|
return coll;
|
|
12040
12036
|
}
|
|
12041
|
-
|
|
12037
|
+
exports2.resolveFlowCollection = resolveFlowCollection;
|
|
12042
12038
|
}
|
|
12043
12039
|
});
|
|
12044
12040
|
|
|
12045
12041
|
// ../../node_modules/yaml/dist/compose/compose-collection.js
|
|
12046
12042
|
var require_compose_collection = __commonJS({
|
|
12047
|
-
"../../node_modules/yaml/dist/compose/compose-collection.js"(
|
|
12043
|
+
"../../node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
|
|
12048
12044
|
"use strict";
|
|
12049
12045
|
var identity = require_identity();
|
|
12050
12046
|
var Scalar = require_Scalar();
|
|
@@ -12103,13 +12099,13 @@ var require_compose_collection = __commonJS({
|
|
|
12103
12099
|
node2.format = tag.format;
|
|
12104
12100
|
return node2;
|
|
12105
12101
|
}
|
|
12106
|
-
|
|
12102
|
+
exports2.composeCollection = composeCollection;
|
|
12107
12103
|
}
|
|
12108
12104
|
});
|
|
12109
12105
|
|
|
12110
12106
|
// ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
12111
12107
|
var require_resolve_block_scalar = __commonJS({
|
|
12112
|
-
"../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(
|
|
12108
|
+
"../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
|
|
12113
12109
|
"use strict";
|
|
12114
12110
|
var Scalar = require_Scalar();
|
|
12115
12111
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -12286,13 +12282,13 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
12286
12282
|
lines.push([split[i], split[i + 1]]);
|
|
12287
12283
|
return lines;
|
|
12288
12284
|
}
|
|
12289
|
-
|
|
12285
|
+
exports2.resolveBlockScalar = resolveBlockScalar;
|
|
12290
12286
|
}
|
|
12291
12287
|
});
|
|
12292
12288
|
|
|
12293
12289
|
// ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
12294
12290
|
var require_resolve_flow_scalar = __commonJS({
|
|
12295
|
-
"../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(
|
|
12291
|
+
"../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
|
|
12296
12292
|
"use strict";
|
|
12297
12293
|
var Scalar = require_Scalar();
|
|
12298
12294
|
var resolveEnd = require_resolve_end();
|
|
@@ -12507,13 +12503,13 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
12507
12503
|
return raw;
|
|
12508
12504
|
}
|
|
12509
12505
|
}
|
|
12510
|
-
|
|
12506
|
+
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
12511
12507
|
}
|
|
12512
12508
|
});
|
|
12513
12509
|
|
|
12514
12510
|
// ../../node_modules/yaml/dist/compose/compose-scalar.js
|
|
12515
12511
|
var require_compose_scalar = __commonJS({
|
|
12516
|
-
"../../node_modules/yaml/dist/compose/compose-scalar.js"(
|
|
12512
|
+
"../../node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
|
|
12517
12513
|
"use strict";
|
|
12518
12514
|
var identity = require_identity();
|
|
12519
12515
|
var Scalar = require_Scalar();
|
|
@@ -12588,13 +12584,13 @@ var require_compose_scalar = __commonJS({
|
|
|
12588
12584
|
}
|
|
12589
12585
|
return tag;
|
|
12590
12586
|
}
|
|
12591
|
-
|
|
12587
|
+
exports2.composeScalar = composeScalar;
|
|
12592
12588
|
}
|
|
12593
12589
|
});
|
|
12594
12590
|
|
|
12595
12591
|
// ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
12596
12592
|
var require_util_empty_scalar_position = __commonJS({
|
|
12597
|
-
"../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(
|
|
12593
|
+
"../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
|
|
12598
12594
|
"use strict";
|
|
12599
12595
|
function emptyScalarPosition(offset, before, pos) {
|
|
12600
12596
|
if (before) {
|
|
@@ -12618,13 +12614,13 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
12618
12614
|
}
|
|
12619
12615
|
return offset;
|
|
12620
12616
|
}
|
|
12621
|
-
|
|
12617
|
+
exports2.emptyScalarPosition = emptyScalarPosition;
|
|
12622
12618
|
}
|
|
12623
12619
|
});
|
|
12624
12620
|
|
|
12625
12621
|
// ../../node_modules/yaml/dist/compose/compose-node.js
|
|
12626
12622
|
var require_compose_node = __commonJS({
|
|
12627
|
-
"../../node_modules/yaml/dist/compose/compose-node.js"(
|
|
12623
|
+
"../../node_modules/yaml/dist/compose/compose-node.js"(exports2) {
|
|
12628
12624
|
"use strict";
|
|
12629
12625
|
var Alias = require_Alias();
|
|
12630
12626
|
var identity = require_identity();
|
|
@@ -12723,14 +12719,14 @@ var require_compose_node = __commonJS({
|
|
|
12723
12719
|
alias.comment = re.comment;
|
|
12724
12720
|
return alias;
|
|
12725
12721
|
}
|
|
12726
|
-
|
|
12727
|
-
|
|
12722
|
+
exports2.composeEmptyNode = composeEmptyNode;
|
|
12723
|
+
exports2.composeNode = composeNode;
|
|
12728
12724
|
}
|
|
12729
12725
|
});
|
|
12730
12726
|
|
|
12731
12727
|
// ../../node_modules/yaml/dist/compose/compose-doc.js
|
|
12732
12728
|
var require_compose_doc = __commonJS({
|
|
12733
|
-
"../../node_modules/yaml/dist/compose/compose-doc.js"(
|
|
12729
|
+
"../../node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
12734
12730
|
"use strict";
|
|
12735
12731
|
var Document = require_Document();
|
|
12736
12732
|
var composeNode = require_compose_node();
|
|
@@ -12767,15 +12763,15 @@ var require_compose_doc = __commonJS({
|
|
|
12767
12763
|
doc.range = [offset, contentEnd, re.offset];
|
|
12768
12764
|
return doc;
|
|
12769
12765
|
}
|
|
12770
|
-
|
|
12766
|
+
exports2.composeDoc = composeDoc;
|
|
12771
12767
|
}
|
|
12772
12768
|
});
|
|
12773
12769
|
|
|
12774
12770
|
// ../../node_modules/yaml/dist/compose/composer.js
|
|
12775
12771
|
var require_composer = __commonJS({
|
|
12776
|
-
"../../node_modules/yaml/dist/compose/composer.js"(
|
|
12772
|
+
"../../node_modules/yaml/dist/compose/composer.js"(exports2) {
|
|
12777
12773
|
"use strict";
|
|
12778
|
-
var node_process =
|
|
12774
|
+
var node_process = require("process");
|
|
12779
12775
|
var directives = require_directives();
|
|
12780
12776
|
var Document = require_Document();
|
|
12781
12777
|
var errors = require_errors2();
|
|
@@ -12975,13 +12971,13 @@ ${end.comment}` : end.comment;
|
|
|
12975
12971
|
}
|
|
12976
12972
|
}
|
|
12977
12973
|
};
|
|
12978
|
-
|
|
12974
|
+
exports2.Composer = Composer;
|
|
12979
12975
|
}
|
|
12980
12976
|
});
|
|
12981
12977
|
|
|
12982
12978
|
// ../../node_modules/yaml/dist/parse/cst-scalar.js
|
|
12983
12979
|
var require_cst_scalar = __commonJS({
|
|
12984
|
-
"../../node_modules/yaml/dist/parse/cst-scalar.js"(
|
|
12980
|
+
"../../node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
|
|
12985
12981
|
"use strict";
|
|
12986
12982
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
12987
12983
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -13158,15 +13154,15 @@ var require_cst_scalar = __commonJS({
|
|
|
13158
13154
|
}
|
|
13159
13155
|
}
|
|
13160
13156
|
}
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13157
|
+
exports2.createScalarToken = createScalarToken;
|
|
13158
|
+
exports2.resolveAsScalar = resolveAsScalar;
|
|
13159
|
+
exports2.setScalarValue = setScalarValue;
|
|
13164
13160
|
}
|
|
13165
13161
|
});
|
|
13166
13162
|
|
|
13167
13163
|
// ../../node_modules/yaml/dist/parse/cst-stringify.js
|
|
13168
13164
|
var require_cst_stringify = __commonJS({
|
|
13169
|
-
"../../node_modules/yaml/dist/parse/cst-stringify.js"(
|
|
13165
|
+
"../../node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
|
|
13170
13166
|
"use strict";
|
|
13171
13167
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
13172
13168
|
function stringifyToken(token) {
|
|
@@ -13221,13 +13217,13 @@ var require_cst_stringify = __commonJS({
|
|
|
13221
13217
|
res += stringifyToken(value);
|
|
13222
13218
|
return res;
|
|
13223
13219
|
}
|
|
13224
|
-
|
|
13220
|
+
exports2.stringify = stringify;
|
|
13225
13221
|
}
|
|
13226
13222
|
});
|
|
13227
13223
|
|
|
13228
13224
|
// ../../node_modules/yaml/dist/parse/cst-visit.js
|
|
13229
13225
|
var require_cst_visit = __commonJS({
|
|
13230
|
-
"../../node_modules/yaml/dist/parse/cst-visit.js"(
|
|
13226
|
+
"../../node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
|
|
13231
13227
|
"use strict";
|
|
13232
13228
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
13233
13229
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -13283,13 +13279,13 @@ var require_cst_visit = __commonJS({
|
|
|
13283
13279
|
}
|
|
13284
13280
|
return typeof ctrl === "function" ? ctrl(item, path) : ctrl;
|
|
13285
13281
|
}
|
|
13286
|
-
|
|
13282
|
+
exports2.visit = visit2;
|
|
13287
13283
|
}
|
|
13288
13284
|
});
|
|
13289
13285
|
|
|
13290
13286
|
// ../../node_modules/yaml/dist/parse/cst.js
|
|
13291
13287
|
var require_cst = __commonJS({
|
|
13292
|
-
"../../node_modules/yaml/dist/parse/cst.js"(
|
|
13288
|
+
"../../node_modules/yaml/dist/parse/cst.js"(exports2) {
|
|
13293
13289
|
"use strict";
|
|
13294
13290
|
var cstScalar = require_cst_scalar();
|
|
13295
13291
|
var cstStringify = require_cst_stringify();
|
|
@@ -13373,25 +13369,25 @@ var require_cst = __commonJS({
|
|
|
13373
13369
|
}
|
|
13374
13370
|
return null;
|
|
13375
13371
|
}
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13372
|
+
exports2.createScalarToken = cstScalar.createScalarToken;
|
|
13373
|
+
exports2.resolveAsScalar = cstScalar.resolveAsScalar;
|
|
13374
|
+
exports2.setScalarValue = cstScalar.setScalarValue;
|
|
13375
|
+
exports2.stringify = cstStringify.stringify;
|
|
13376
|
+
exports2.visit = cstVisit.visit;
|
|
13377
|
+
exports2.BOM = BOM;
|
|
13378
|
+
exports2.DOCUMENT = DOCUMENT;
|
|
13379
|
+
exports2.FLOW_END = FLOW_END;
|
|
13380
|
+
exports2.SCALAR = SCALAR;
|
|
13381
|
+
exports2.isCollection = isCollection;
|
|
13382
|
+
exports2.isScalar = isScalar;
|
|
13383
|
+
exports2.prettyToken = prettyToken;
|
|
13384
|
+
exports2.tokenType = tokenType;
|
|
13389
13385
|
}
|
|
13390
13386
|
});
|
|
13391
13387
|
|
|
13392
13388
|
// ../../node_modules/yaml/dist/parse/lexer.js
|
|
13393
13389
|
var require_lexer = __commonJS({
|
|
13394
|
-
"../../node_modules/yaml/dist/parse/lexer.js"(
|
|
13390
|
+
"../../node_modules/yaml/dist/parse/lexer.js"(exports2) {
|
|
13395
13391
|
"use strict";
|
|
13396
13392
|
var cst = require_cst();
|
|
13397
13393
|
function isEmpty(ch) {
|
|
@@ -13974,13 +13970,13 @@ var require_lexer = __commonJS({
|
|
|
13974
13970
|
return yield* this.pushToIndex(i, false);
|
|
13975
13971
|
}
|
|
13976
13972
|
};
|
|
13977
|
-
|
|
13973
|
+
exports2.Lexer = Lexer;
|
|
13978
13974
|
}
|
|
13979
13975
|
});
|
|
13980
13976
|
|
|
13981
13977
|
// ../../node_modules/yaml/dist/parse/line-counter.js
|
|
13982
13978
|
var require_line_counter = __commonJS({
|
|
13983
|
-
"../../node_modules/yaml/dist/parse/line-counter.js"(
|
|
13979
|
+
"../../node_modules/yaml/dist/parse/line-counter.js"(exports2) {
|
|
13984
13980
|
"use strict";
|
|
13985
13981
|
var LineCounter = class {
|
|
13986
13982
|
constructor() {
|
|
@@ -14005,15 +14001,15 @@ var require_line_counter = __commonJS({
|
|
|
14005
14001
|
};
|
|
14006
14002
|
}
|
|
14007
14003
|
};
|
|
14008
|
-
|
|
14004
|
+
exports2.LineCounter = LineCounter;
|
|
14009
14005
|
}
|
|
14010
14006
|
});
|
|
14011
14007
|
|
|
14012
14008
|
// ../../node_modules/yaml/dist/parse/parser.js
|
|
14013
14009
|
var require_parser = __commonJS({
|
|
14014
|
-
"../../node_modules/yaml/dist/parse/parser.js"(
|
|
14010
|
+
"../../node_modules/yaml/dist/parse/parser.js"(exports2) {
|
|
14015
14011
|
"use strict";
|
|
14016
|
-
var node_process =
|
|
14012
|
+
var node_process = require("process");
|
|
14017
14013
|
var cst = require_cst();
|
|
14018
14014
|
var lexer = require_lexer();
|
|
14019
14015
|
function includesToken(list, type) {
|
|
@@ -14879,13 +14875,13 @@ var require_parser = __commonJS({
|
|
|
14879
14875
|
}
|
|
14880
14876
|
}
|
|
14881
14877
|
};
|
|
14882
|
-
|
|
14878
|
+
exports2.Parser = Parser;
|
|
14883
14879
|
}
|
|
14884
14880
|
});
|
|
14885
14881
|
|
|
14886
14882
|
// ../../node_modules/yaml/dist/public-api.js
|
|
14887
14883
|
var require_public_api = __commonJS({
|
|
14888
|
-
"../../node_modules/yaml/dist/public-api.js"(
|
|
14884
|
+
"../../node_modules/yaml/dist/public-api.js"(exports2) {
|
|
14889
14885
|
"use strict";
|
|
14890
14886
|
var composer = require_composer();
|
|
14891
14887
|
var Document = require_Document();
|
|
@@ -14973,16 +14969,16 @@ var require_public_api = __commonJS({
|
|
|
14973
14969
|
return value.toString(options);
|
|
14974
14970
|
return new Document.Document(value, _replacer, options).toString(options);
|
|
14975
14971
|
}
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14972
|
+
exports2.parse = parse3;
|
|
14973
|
+
exports2.parseAllDocuments = parseAllDocuments;
|
|
14974
|
+
exports2.parseDocument = parseDocument;
|
|
14975
|
+
exports2.stringify = stringify;
|
|
14980
14976
|
}
|
|
14981
14977
|
});
|
|
14982
14978
|
|
|
14983
14979
|
// ../../node_modules/yaml/dist/index.js
|
|
14984
14980
|
var require_dist2 = __commonJS({
|
|
14985
|
-
"../../node_modules/yaml/dist/index.js"(
|
|
14981
|
+
"../../node_modules/yaml/dist/index.js"(exports2) {
|
|
14986
14982
|
"use strict";
|
|
14987
14983
|
var composer = require_composer();
|
|
14988
14984
|
var Document = require_Document();
|
|
@@ -15000,40 +14996,47 @@ var require_dist2 = __commonJS({
|
|
|
15000
14996
|
var parser = require_parser();
|
|
15001
14997
|
var publicApi = require_public_api();
|
|
15002
14998
|
var visit2 = require_visit();
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
14999
|
+
exports2.Composer = composer.Composer;
|
|
15000
|
+
exports2.Document = Document.Document;
|
|
15001
|
+
exports2.Schema = Schema.Schema;
|
|
15002
|
+
exports2.YAMLError = errors.YAMLError;
|
|
15003
|
+
exports2.YAMLParseError = errors.YAMLParseError;
|
|
15004
|
+
exports2.YAMLWarning = errors.YAMLWarning;
|
|
15005
|
+
exports2.Alias = Alias.Alias;
|
|
15006
|
+
exports2.isAlias = identity.isAlias;
|
|
15007
|
+
exports2.isCollection = identity.isCollection;
|
|
15008
|
+
exports2.isDocument = identity.isDocument;
|
|
15009
|
+
exports2.isMap = identity.isMap;
|
|
15010
|
+
exports2.isNode = identity.isNode;
|
|
15011
|
+
exports2.isPair = identity.isPair;
|
|
15012
|
+
exports2.isScalar = identity.isScalar;
|
|
15013
|
+
exports2.isSeq = identity.isSeq;
|
|
15014
|
+
exports2.Pair = Pair.Pair;
|
|
15015
|
+
exports2.Scalar = Scalar.Scalar;
|
|
15016
|
+
exports2.YAMLMap = YAMLMap.YAMLMap;
|
|
15017
|
+
exports2.YAMLSeq = YAMLSeq.YAMLSeq;
|
|
15018
|
+
exports2.CST = cst;
|
|
15019
|
+
exports2.Lexer = lexer.Lexer;
|
|
15020
|
+
exports2.LineCounter = lineCounter.LineCounter;
|
|
15021
|
+
exports2.Parser = parser.Parser;
|
|
15022
|
+
exports2.parse = publicApi.parse;
|
|
15023
|
+
exports2.parseAllDocuments = publicApi.parseAllDocuments;
|
|
15024
|
+
exports2.parseDocument = publicApi.parseDocument;
|
|
15025
|
+
exports2.stringify = publicApi.stringify;
|
|
15026
|
+
exports2.visit = visit2.visit;
|
|
15027
|
+
exports2.visitAsync = visit2.visitAsync;
|
|
15032
15028
|
}
|
|
15033
15029
|
});
|
|
15034
15030
|
|
|
15031
|
+
// src/cli.ts
|
|
15032
|
+
var cli_exports = {};
|
|
15033
|
+
__export(cli_exports, {
|
|
15034
|
+
credentialFile: () => credentialFile
|
|
15035
|
+
});
|
|
15036
|
+
module.exports = __toCommonJS(cli_exports);
|
|
15037
|
+
|
|
15035
15038
|
// ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
15036
|
-
|
|
15039
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
15037
15040
|
|
|
15038
15041
|
// ../../node_modules/zod/v4/classic/external.js
|
|
15039
15042
|
var external_exports = {};
|
|
@@ -20061,7 +20064,7 @@ var recursive = /* @__PURE__ */ new WeakMap();
|
|
|
20061
20064
|
var NONE = 0;
|
|
20062
20065
|
var ASSUMED = 1;
|
|
20063
20066
|
var PROVEN = 2;
|
|
20064
|
-
function isRecursive(inst, stack,
|
|
20067
|
+
function isRecursive(inst, stack, resolve4) {
|
|
20065
20068
|
const cached2 = recursive.get(inst);
|
|
20066
20069
|
if (cached2 !== void 0)
|
|
20067
20070
|
return cached2 ? PROVEN : NONE;
|
|
@@ -20071,7 +20074,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
20071
20074
|
let result = NONE;
|
|
20072
20075
|
const check2 = (child) => {
|
|
20073
20076
|
if (result !== PROVEN && child?._zod) {
|
|
20074
|
-
const answer = isRecursive(child, stack,
|
|
20077
|
+
const answer = isRecursive(child, stack, resolve4);
|
|
20075
20078
|
if (answer > result)
|
|
20076
20079
|
result = answer;
|
|
20077
20080
|
}
|
|
@@ -20082,7 +20085,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
20082
20085
|
const desc = Object.getOwnPropertyDescriptor(sh, key);
|
|
20083
20086
|
if (spread && !desc.enumerable)
|
|
20084
20087
|
continue;
|
|
20085
|
-
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack,
|
|
20088
|
+
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve4) : NONE;
|
|
20086
20089
|
if (child > answer)
|
|
20087
20090
|
answer = child;
|
|
20088
20091
|
}
|
|
@@ -20146,7 +20149,7 @@ function isRecursive(inst, stack, resolve3) {
|
|
|
20146
20149
|
break;
|
|
20147
20150
|
// `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly
|
|
20148
20151
|
case "lazy": {
|
|
20149
|
-
const inner = def._cachedInner ?? (
|
|
20152
|
+
const inner = def._cachedInner ?? (resolve4 ? inst._zod.innerType : void 0);
|
|
20150
20153
|
merge2(inner ? isRecursive(inner, stack, false) : ASSUMED);
|
|
20151
20154
|
break;
|
|
20152
20155
|
}
|
|
@@ -36273,7 +36276,7 @@ function serializeMessage(message) {
|
|
|
36273
36276
|
|
|
36274
36277
|
// ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
36275
36278
|
var StdioServerTransport = class {
|
|
36276
|
-
constructor(_stdin =
|
|
36279
|
+
constructor(_stdin = import_node_process.default.stdin, _stdout = import_node_process.default.stdout, options) {
|
|
36277
36280
|
this._stdin = _stdin;
|
|
36278
36281
|
this._stdout = _stdout;
|
|
36279
36282
|
this._started = false;
|
|
@@ -36327,12 +36330,12 @@ var StdioServerTransport = class {
|
|
|
36327
36330
|
this.onclose?.();
|
|
36328
36331
|
}
|
|
36329
36332
|
send(message) {
|
|
36330
|
-
return new Promise((
|
|
36333
|
+
return new Promise((resolve4) => {
|
|
36331
36334
|
const json3 = serializeMessage(message);
|
|
36332
36335
|
if (this._stdout.write(json3)) {
|
|
36333
|
-
|
|
36336
|
+
resolve4();
|
|
36334
36337
|
} else {
|
|
36335
|
-
this._stdout.once("drain",
|
|
36338
|
+
this._stdout.once("drain", resolve4);
|
|
36336
36339
|
}
|
|
36337
36340
|
});
|
|
36338
36341
|
}
|
|
@@ -36340,10 +36343,9 @@ var StdioServerTransport = class {
|
|
|
36340
36343
|
|
|
36341
36344
|
// src/cli.ts
|
|
36342
36345
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
36343
|
-
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
import { fileURLToPath } from "node:url";
|
|
36346
|
+
var import_promises3 = require("node:fs/promises");
|
|
36347
|
+
var import_node_os2 = require("node:os");
|
|
36348
|
+
var import_node_path3 = require("node:path");
|
|
36347
36349
|
|
|
36348
36350
|
// ../../apps/server/src/chat-client.ts
|
|
36349
36351
|
var ChatClient = class {
|
|
@@ -42366,7 +42368,7 @@ var Protocol = class {
|
|
|
42366
42368
|
return;
|
|
42367
42369
|
}
|
|
42368
42370
|
const pollInterval = task3.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1e3;
|
|
42369
|
-
await new Promise((
|
|
42371
|
+
await new Promise((resolve4) => setTimeout(resolve4, pollInterval));
|
|
42370
42372
|
options?.signal?.throwIfAborted();
|
|
42371
42373
|
}
|
|
42372
42374
|
} catch (error62) {
|
|
@@ -42383,7 +42385,7 @@ var Protocol = class {
|
|
|
42383
42385
|
*/
|
|
42384
42386
|
request(request, resultSchema, options) {
|
|
42385
42387
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task: task2, relatedTask } = options ?? {};
|
|
42386
|
-
return new Promise((
|
|
42388
|
+
return new Promise((resolve4, reject) => {
|
|
42387
42389
|
const earlyReject = (error62) => {
|
|
42388
42390
|
reject(error62);
|
|
42389
42391
|
};
|
|
@@ -42461,7 +42463,7 @@ var Protocol = class {
|
|
|
42461
42463
|
if (!parseResult.success) {
|
|
42462
42464
|
reject(parseResult.error);
|
|
42463
42465
|
} else {
|
|
42464
|
-
|
|
42466
|
+
resolve4(parseResult.data);
|
|
42465
42467
|
}
|
|
42466
42468
|
} catch (error62) {
|
|
42467
42469
|
reject(error62);
|
|
@@ -42722,12 +42724,12 @@ var Protocol = class {
|
|
|
42722
42724
|
}
|
|
42723
42725
|
} catch {
|
|
42724
42726
|
}
|
|
42725
|
-
return new Promise((
|
|
42727
|
+
return new Promise((resolve4, reject) => {
|
|
42726
42728
|
if (signal.aborted) {
|
|
42727
42729
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
42728
42730
|
return;
|
|
42729
42731
|
}
|
|
42730
|
-
const timeoutId = setTimeout(
|
|
42732
|
+
const timeoutId = setTimeout(resolve4, interval);
|
|
42731
42733
|
signal.addEventListener("abort", () => {
|
|
42732
42734
|
clearTimeout(timeoutId);
|
|
42733
42735
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
@@ -43818,7 +43820,7 @@ var McpServer = class {
|
|
|
43818
43820
|
let task2 = createTaskResult.task;
|
|
43819
43821
|
const pollInterval = task2.pollInterval ?? 5e3;
|
|
43820
43822
|
while (task2.status !== "completed" && task2.status !== "failed" && task2.status !== "cancelled") {
|
|
43821
|
-
await new Promise((
|
|
43823
|
+
await new Promise((resolve4) => setTimeout(resolve4, pollInterval));
|
|
43822
43824
|
const updatedTask = await extra.taskStore.getTask(taskId);
|
|
43823
43825
|
if (!updatedTask) {
|
|
43824
43826
|
throw new McpError(ErrorCode.InternalError, `Task ${taskId} not found during polling`);
|
|
@@ -44608,12 +44610,12 @@ var workspaceStateSchema = external_exports.object({
|
|
|
44608
44610
|
});
|
|
44609
44611
|
|
|
44610
44612
|
// ../../apps/server/src/workspace.ts
|
|
44613
|
+
var import_node_crypto = require("node:crypto");
|
|
44614
|
+
var import_promises = require("node:fs/promises");
|
|
44615
|
+
var import_node_path = require("node:path");
|
|
44616
|
+
var import_node_os = require("node:os");
|
|
44611
44617
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
44612
44618
|
var import_yaml = __toESM(require_dist2(), 1);
|
|
44613
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
44614
|
-
import { mkdir, readFile, realpath, rm, writeFile } from "node:fs/promises";
|
|
44615
|
-
import { dirname, resolve } from "node:path";
|
|
44616
|
-
import { tmpdir } from "node:os";
|
|
44617
44619
|
var outputLimit = 256e3;
|
|
44618
44620
|
var sourceExtensions = /* @__PURE__ */ new Set([
|
|
44619
44621
|
".c",
|
|
@@ -44694,10 +44696,10 @@ async function git(root, args, environment = process.env) {
|
|
|
44694
44696
|
return result.stdout.trim();
|
|
44695
44697
|
}
|
|
44696
44698
|
async function dependencyFingerprint(root) {
|
|
44697
|
-
const hash2 = createHash("sha256");
|
|
44699
|
+
const hash2 = (0, import_node_crypto.createHash)("sha256");
|
|
44698
44700
|
let foundLock = false;
|
|
44699
44701
|
for (const name of ["package.json", "package-lock.json", "npm-shrinkwrap.json"]) {
|
|
44700
|
-
const content = await readFile(resolve(root, name)).catch(() => void 0);
|
|
44702
|
+
const content = await (0, import_promises.readFile)((0, import_node_path.resolve)(root, name)).catch(() => void 0);
|
|
44701
44703
|
if (!content) continue;
|
|
44702
44704
|
if (name !== "package.json") foundLock = true;
|
|
44703
44705
|
hash2.update(name).update(content);
|
|
@@ -44709,7 +44711,7 @@ async function dependencyFingerprint(root) {
|
|
|
44709
44711
|
async function npmInstallCache(root) {
|
|
44710
44712
|
const fingerprint = await dependencyFingerprint(root);
|
|
44711
44713
|
if (!fingerprint) return void 0;
|
|
44712
|
-
const marker = resolve(root, "node_modules", ".sdlc-install-fingerprint");
|
|
44714
|
+
const marker = (0, import_node_path.resolve)(root, "node_modules", ".sdlc-install-fingerprint");
|
|
44713
44715
|
return { fingerprint, marker };
|
|
44714
44716
|
}
|
|
44715
44717
|
function lockfilesMatch(lock, installed) {
|
|
@@ -44723,8 +44725,8 @@ function lockfilesMatch(lock, installed) {
|
|
|
44723
44725
|
}
|
|
44724
44726
|
async function validInstalledNpmTree(root) {
|
|
44725
44727
|
const [lockText, installedText] = await Promise.all([
|
|
44726
|
-
readFile(resolve(root, "package-lock.json"), "utf8").catch(() => ""),
|
|
44727
|
-
readFile(resolve(root, "node_modules", ".package-lock.json"), "utf8").catch(() => "")
|
|
44728
|
+
(0, import_promises.readFile)((0, import_node_path.resolve)(root, "package-lock.json"), "utf8").catch(() => ""),
|
|
44729
|
+
(0, import_promises.readFile)((0, import_node_path.resolve)(root, "node_modules", ".package-lock.json"), "utf8").catch(() => "")
|
|
44728
44730
|
]);
|
|
44729
44731
|
if (!lockText || !installedText) return false;
|
|
44730
44732
|
try {
|
|
@@ -44738,7 +44740,7 @@ async function candidateSources(root) {
|
|
|
44738
44740
|
const files = (await git(root, ["ls-files", "--cached", "--others", "--exclude-standard", "-z"])).split("\0").filter(Boolean).filter((file2) => sourceExtensions.has(file2.slice(file2.lastIndexOf(".")).toLowerCase()));
|
|
44739
44741
|
const sources = [];
|
|
44740
44742
|
for (const file2 of files) {
|
|
44741
|
-
const content = await readFile(resolve(root, file2)).catch(() => void 0);
|
|
44743
|
+
const content = await (0, import_promises.readFile)((0, import_node_path.resolve)(root, file2)).catch(() => void 0);
|
|
44742
44744
|
if (!content || content.length > 2e6 || content.includes(0)) continue;
|
|
44743
44745
|
sources.push({ file: file2.replaceAll("\\", "/"), text: content.toString("utf8") });
|
|
44744
44746
|
}
|
|
@@ -44815,14 +44817,14 @@ function repositoryFromRemote(remote) {
|
|
|
44815
44817
|
return { owner: match[1], repo: match[2] };
|
|
44816
44818
|
}
|
|
44817
44819
|
async function treeDigest(root) {
|
|
44818
|
-
const index = resolve(tmpdir(), `sdlc-index-${randomUUID()}`);
|
|
44820
|
+
const index = (0, import_node_path.resolve)((0, import_node_os.tmpdir)(), `sdlc-index-${(0, import_node_crypto.randomUUID)()}`);
|
|
44819
44821
|
const environment = { ...process.env, GIT_INDEX_FILE: index };
|
|
44820
44822
|
try {
|
|
44821
44823
|
await git(root, ["read-tree", "HEAD"], environment);
|
|
44822
44824
|
await git(root, ["add", "-A", "--", "."], environment);
|
|
44823
44825
|
return await git(root, ["write-tree"], environment);
|
|
44824
44826
|
} finally {
|
|
44825
|
-
await rm(index, { force: true }).catch(() => void 0);
|
|
44827
|
+
await (0, import_promises.rm)(index, { force: true }).catch(() => void 0);
|
|
44826
44828
|
}
|
|
44827
44829
|
}
|
|
44828
44830
|
async function listWorkspaceFiles(root) {
|
|
@@ -44837,8 +44839,8 @@ async function inspectDefaultBranch(root, fallback) {
|
|
|
44837
44839
|
}
|
|
44838
44840
|
}
|
|
44839
44841
|
async function inspectWorkspace(path) {
|
|
44840
|
-
const requested = await realpath(path);
|
|
44841
|
-
const root = await realpath(await git(requested, ["rev-parse", "--show-toplevel"]));
|
|
44842
|
+
const requested = await (0, import_promises.realpath)(path);
|
|
44843
|
+
const root = await (0, import_promises.realpath)(await git(requested, ["rev-parse", "--show-toplevel"]));
|
|
44842
44844
|
const [remote, branch, headSha, status, changed, untracked, digest] = await Promise.all([
|
|
44843
44845
|
git(root, ["remote", "get-url", "origin"]),
|
|
44844
44846
|
git(root, ["branch", "--show-current"]),
|
|
@@ -44862,7 +44864,7 @@ async function inspectWorkspace(path) {
|
|
|
44862
44864
|
};
|
|
44863
44865
|
}
|
|
44864
44866
|
function reportFile(root, path) {
|
|
44865
|
-
const file2 = resolve(root, path);
|
|
44867
|
+
const file2 = (0, import_node_path.resolve)(root, path);
|
|
44866
44868
|
const relative = file2.slice(root.length).replaceAll("\\", "/");
|
|
44867
44869
|
if (!relative.startsWith("/") || relative.includes("/../")) throw new Error("Report path escaped the repository");
|
|
44868
44870
|
return file2;
|
|
@@ -44877,7 +44879,7 @@ async function builtinSetupCheck(root, action, path, expectedJob, expectedTrigge
|
|
|
44877
44879
|
durationMs: Date.now() - started,
|
|
44878
44880
|
files: {}
|
|
44879
44881
|
};
|
|
44880
|
-
const content = await readFile(reportFile(root, path), "utf8").catch(() => "");
|
|
44882
|
+
const content = await (0, import_promises.readFile)(reportFile(root, path), "utf8").catch(() => "");
|
|
44881
44883
|
let problem = content.trim() ? "" : `Required setup file is missing or empty: ${path}`;
|
|
44882
44884
|
if (!problem && action === "github-workflow") {
|
|
44883
44885
|
try {
|
|
@@ -44905,12 +44907,12 @@ async function executeCheck(root, command) {
|
|
|
44905
44907
|
if (executable === "@sdlc/setup") return builtinSetupCheck(root, args[0], args[1], args[2], args[3]);
|
|
44906
44908
|
const installCache = command.kind === "setup" && executable === "npm" && args.length === 1 && args[0] === "ci" ? await npmInstallCache(root) : void 0;
|
|
44907
44909
|
if (installCache) {
|
|
44908
|
-
const stored = await readFile(installCache.marker, "utf8").catch(() => "");
|
|
44910
|
+
const stored = await (0, import_promises.readFile)(installCache.marker, "utf8").catch(() => "");
|
|
44909
44911
|
const valid = stored === installCache.fingerprint || await validInstalledNpmTree(root);
|
|
44910
44912
|
if (valid) {
|
|
44911
44913
|
if (stored !== installCache.fingerprint) {
|
|
44912
|
-
await mkdir(dirname(installCache.marker), { recursive: true });
|
|
44913
|
-
await writeFile(installCache.marker, installCache.fingerprint, "utf8");
|
|
44914
|
+
await (0, import_promises.mkdir)((0, import_node_path.dirname)(installCache.marker), { recursive: true });
|
|
44915
|
+
await (0, import_promises.writeFile)(installCache.marker, installCache.fingerprint, "utf8");
|
|
44914
44916
|
}
|
|
44915
44917
|
return {
|
|
44916
44918
|
exitCode: 0,
|
|
@@ -44926,9 +44928,9 @@ async function executeCheck(root, command) {
|
|
|
44926
44928
|
let previousReport;
|
|
44927
44929
|
if (command.reportPath) {
|
|
44928
44930
|
reportPath = reportFile(root, command.reportPath);
|
|
44929
|
-
previousReport = await readFile(reportPath).catch(() => void 0);
|
|
44930
|
-
await mkdir(dirname(reportPath), { recursive: true });
|
|
44931
|
-
await rm(reportPath, { force: true });
|
|
44931
|
+
previousReport = await (0, import_promises.readFile)(reportPath).catch(() => void 0);
|
|
44932
|
+
await (0, import_promises.mkdir)((0, import_node_path.dirname)(reportPath), { recursive: true });
|
|
44933
|
+
await (0, import_promises.rm)(reportPath, { force: true });
|
|
44932
44934
|
}
|
|
44933
44935
|
const environment = {
|
|
44934
44936
|
...process.env,
|
|
@@ -44938,24 +44940,24 @@ async function executeCheck(root, command) {
|
|
|
44938
44940
|
};
|
|
44939
44941
|
const result = await execute(executable, args, root, command.timeoutSeconds, environment);
|
|
44940
44942
|
if (installCache && result.exitCode === 0) {
|
|
44941
|
-
await mkdir(dirname(installCache.marker), { recursive: true });
|
|
44942
|
-
await writeFile(installCache.marker, installCache.fingerprint, "utf8");
|
|
44943
|
+
await (0, import_promises.mkdir)((0, import_node_path.dirname)(installCache.marker), { recursive: true });
|
|
44944
|
+
await (0, import_promises.writeFile)(installCache.marker, installCache.fingerprint, "utf8");
|
|
44943
44945
|
}
|
|
44944
44946
|
const files = {};
|
|
44945
44947
|
if (command.reportPath) {
|
|
44946
|
-
const content = reportPath ? await readFile(reportPath, "utf8").catch(() => "") : "";
|
|
44948
|
+
const content = reportPath ? await (0, import_promises.readFile)(reportPath, "utf8").catch(() => "") : "";
|
|
44947
44949
|
files[command.reportPath] = (content || result.stdout).slice(-outputLimit);
|
|
44948
44950
|
if (reportPath) {
|
|
44949
|
-
if (previousReport) await writeFile(reportPath, previousReport);
|
|
44950
|
-
else await rm(reportPath, { force: true });
|
|
44951
|
+
if (previousReport) await (0, import_promises.writeFile)(reportPath, previousReport);
|
|
44952
|
+
else await (0, import_promises.rm)(reportPath, { force: true });
|
|
44951
44953
|
}
|
|
44952
44954
|
}
|
|
44953
44955
|
return { ...result, files };
|
|
44954
44956
|
}
|
|
44955
44957
|
|
|
44956
44958
|
// ../../apps/server/src/repository-discovery.ts
|
|
44957
|
-
|
|
44958
|
-
|
|
44959
|
+
var import_promises2 = require("node:fs/promises");
|
|
44960
|
+
var import_node_path2 = require("node:path");
|
|
44959
44961
|
var gate = (id, kind, argv, report = "exit", reportPath = "") => ({
|
|
44960
44962
|
id,
|
|
44961
44963
|
label: id.replaceAll("-", " "),
|
|
@@ -44973,11 +44975,11 @@ var securityGates = () => [
|
|
|
44973
44975
|
gate("sast", "security", ["@sdlc/security", "sast"], "semgrep", ".reports/sast.json")
|
|
44974
44976
|
];
|
|
44975
44977
|
async function text(root, path) {
|
|
44976
|
-
return
|
|
44978
|
+
return (0, import_promises2.readFile)((0, import_node_path2.resolve)(root, path), "utf8").catch(() => "");
|
|
44977
44979
|
}
|
|
44978
44980
|
async function json2(root, path) {
|
|
44979
44981
|
try {
|
|
44980
|
-
return JSON.parse(await
|
|
44982
|
+
return JSON.parse(await (0, import_promises2.readFile)((0, import_node_path2.resolve)(root, path), "utf8"));
|
|
44981
44983
|
} catch {
|
|
44982
44984
|
return void 0;
|
|
44983
44985
|
}
|
|
@@ -45039,8 +45041,8 @@ async function typescriptSetup(root, files) {
|
|
|
45039
45041
|
const pkg = await json2(root, "package.json");
|
|
45040
45042
|
const scripts = pkg?.scripts || {};
|
|
45041
45043
|
const declaredManager = pkg?.packageManager?.split("@")[0];
|
|
45042
|
-
const manager = files.includes("pnpm-lock.yaml") ? "pnpm" : files.includes("yarn.lock") ? "yarn" : files.some((file2) => basename(file2).startsWith("bun.lock")) ? "bun" : declaredManager && ["npm", "pnpm", "yarn", "bun"].includes(declaredManager) ? declaredManager : "npm";
|
|
45043
|
-
const lockfile = manager === "npm" ? files.find((file2) => ["package-lock.json", "npm-shrinkwrap.json"].includes(file2)) : manager === "pnpm" ? files.find((file2) => file2 === "pnpm-lock.yaml") : manager === "yarn" ? files.find((file2) => file2 === "yarn.lock") : files.find((file2) => basename(file2).startsWith("bun.lock"));
|
|
45044
|
+
const manager = files.includes("pnpm-lock.yaml") ? "pnpm" : files.includes("yarn.lock") ? "yarn" : files.some((file2) => (0, import_node_path2.basename)(file2).startsWith("bun.lock")) ? "bun" : declaredManager && ["npm", "pnpm", "yarn", "bun"].includes(declaredManager) ? declaredManager : "npm";
|
|
45045
|
+
const lockfile = manager === "npm" ? files.find((file2) => ["package-lock.json", "npm-shrinkwrap.json"].includes(file2)) : manager === "pnpm" ? files.find((file2) => file2 === "pnpm-lock.yaml") : manager === "yarn" ? files.find((file2) => file2 === "yarn.lock") : files.find((file2) => (0, import_node_path2.basename)(file2).startsWith("bun.lock"));
|
|
45044
45046
|
const checks = [gate("install", "setup", nodeInstall(manager, pkg?.packageManager))];
|
|
45045
45047
|
const capabilities = [];
|
|
45046
45048
|
const tasks = [];
|
|
@@ -45257,7 +45259,7 @@ async function pythonSetup(root, files, directorySet) {
|
|
|
45257
45259
|
}
|
|
45258
45260
|
function workflowEvidence(files) {
|
|
45259
45261
|
const workflows = files.filter((file2) => file2.startsWith(".github/workflows/") && /\.ya?ml$/i.test(file2));
|
|
45260
|
-
const deployment = workflows.find((file2) => /(?:deploy|release)/i.test(basename(file2)));
|
|
45262
|
+
const deployment = workflows.find((file2) => /(?:deploy|release)/i.test((0, import_node_path2.basename)(file2)));
|
|
45261
45263
|
return { workflows, deployment, evidence: workflows.map((file2) => `GitHub workflow: ${file2}`) };
|
|
45262
45264
|
}
|
|
45263
45265
|
function pathPolicy(files, stack) {
|
|
@@ -45506,7 +45508,7 @@ async function discoverRepository(workspace) {
|
|
|
45506
45508
|
enabled: false,
|
|
45507
45509
|
target: "",
|
|
45508
45510
|
environment: "staging",
|
|
45509
|
-
workflow: workflow.deployment ? basename(workflow.deployment) : "deploy.yml",
|
|
45511
|
+
workflow: workflow.deployment ? (0, import_node_path2.basename)(workflow.deployment) : "deploy.yml",
|
|
45510
45512
|
rollbackWorkflow: "rollback.yml",
|
|
45511
45513
|
healthUrl: "",
|
|
45512
45514
|
monitorIntervalSeconds: 300
|
|
@@ -46166,7 +46168,7 @@ function createChatServer(api) {
|
|
|
46166
46168
|
const version2 = afterUpdatedAt || detail.run.updatedAt;
|
|
46167
46169
|
const deadline = Date.now() + waitSeconds * 1e3;
|
|
46168
46170
|
while (active.has(detail.run.status) && detail.run.updatedAt === version2 && Date.now() < deadline) {
|
|
46169
|
-
await new Promise((
|
|
46171
|
+
await new Promise((resolve4) => setTimeout(resolve4, Math.min(1e3, deadline - Date.now())));
|
|
46170
46172
|
detail = await api.request(`/api/runs/${runId}`);
|
|
46171
46173
|
}
|
|
46172
46174
|
return {
|
|
@@ -46181,11 +46183,12 @@ function createChatServer(api) {
|
|
|
46181
46183
|
|
|
46182
46184
|
// src/cli.ts
|
|
46183
46185
|
var DEFAULT_SERVER = "https://sdlc-control-plane.onrender.com";
|
|
46184
|
-
var PACKAGE_SPEC = "@melson/sdlc-mcp@0.1.
|
|
46186
|
+
var PACKAGE_SPEC = "@melson/sdlc-mcp@0.1.2";
|
|
46185
46187
|
var START_MARKER = "<!-- sdlc-chat-integration -->";
|
|
46186
46188
|
var END_MARKER = "<!-- /sdlc-chat-integration -->";
|
|
46189
|
+
var moduleDirectory = (0, import_node_path3.dirname)((0, import_node_path3.resolve)(process.argv[1]));
|
|
46187
46190
|
function credentialFile() {
|
|
46188
|
-
return process.env.SDLC_MCP_CREDENTIAL_FILE || join(homedir(), ".sdlc-control-plane", "credentials.json");
|
|
46191
|
+
return process.env.SDLC_MCP_CREDENTIAL_FILE || (0, import_node_path3.join)((0, import_node_os2.homedir)(), ".sdlc-control-plane", "credentials.json");
|
|
46189
46192
|
}
|
|
46190
46193
|
function serverArgument(args) {
|
|
46191
46194
|
const index = args.indexOf("--server");
|
|
@@ -46212,28 +46215,28 @@ async function jsonRequest(url2, body) {
|
|
|
46212
46215
|
return response.json();
|
|
46213
46216
|
}
|
|
46214
46217
|
function openBrowser(url2) {
|
|
46215
|
-
const command = platform() === "win32" ? ["rundll32", ["url.dll,FileProtocolHandler", url2]] : platform() === "darwin" ? ["open", [url2]] : ["xdg-open", [url2]];
|
|
46218
|
+
const command = (0, import_node_os2.platform)() === "win32" ? ["rundll32", ["url.dll,FileProtocolHandler", url2]] : (0, import_node_os2.platform)() === "darwin" ? ["open", [url2]] : ["xdg-open", [url2]];
|
|
46216
46219
|
const child = (0, import_cross_spawn2.default)(command[0], command[1], { detached: true, stdio: "ignore", windowsHide: true });
|
|
46217
46220
|
child.unref();
|
|
46218
46221
|
}
|
|
46219
46222
|
async function saveCredentials(credentials) {
|
|
46220
46223
|
const path = credentialFile();
|
|
46221
|
-
await
|
|
46222
|
-
await
|
|
46224
|
+
await (0, import_promises3.mkdir)((0, import_node_path3.dirname)(path), { recursive: true });
|
|
46225
|
+
await (0, import_promises3.writeFile)(path, `${JSON.stringify(credentials, null, 2)}
|
|
46223
46226
|
`, { encoding: "utf8", mode: 384 });
|
|
46224
|
-
await chmod(path, 384).catch(() => void 0);
|
|
46227
|
+
await (0, import_promises3.chmod)(path, 384).catch(() => void 0);
|
|
46225
46228
|
}
|
|
46226
46229
|
async function loadCredentials() {
|
|
46227
|
-
const parsed = JSON.parse(await
|
|
46230
|
+
const parsed = JSON.parse(await (0, import_promises3.readFile)(credentialFile(), "utf8"));
|
|
46228
46231
|
if (!parsed.serverUrl || !parsed.accessToken) throw new Error("The saved SDLC credential is incomplete.");
|
|
46229
46232
|
return parsed;
|
|
46230
46233
|
}
|
|
46231
46234
|
async function installInstructions() {
|
|
46232
|
-
const codexHome = process.env.CODEX_HOME || join(homedir(), ".codex");
|
|
46233
|
-
const target = join(codexHome, "AGENTS.md");
|
|
46234
|
-
const source =
|
|
46235
|
-
const instructions = (await
|
|
46236
|
-
let existing = await
|
|
46235
|
+
const codexHome = process.env.CODEX_HOME || (0, import_node_path3.join)((0, import_node_os2.homedir)(), ".codex");
|
|
46236
|
+
const target = (0, import_node_path3.join)(codexHome, "AGENTS.md");
|
|
46237
|
+
const source = (0, import_node_path3.join)(moduleDirectory, "..", "instructions.md");
|
|
46238
|
+
const instructions = (await (0, import_promises3.readFile)(source, "utf8")).trim();
|
|
46239
|
+
let existing = await (0, import_promises3.readFile)(target, "utf8").catch(() => "");
|
|
46237
46240
|
const start = existing.indexOf(START_MARKER);
|
|
46238
46241
|
if (start >= 0) {
|
|
46239
46242
|
const end = existing.indexOf(END_MARKER, start);
|
|
@@ -46245,12 +46248,12 @@ ${instructions}${suffix}`;
|
|
|
46245
46248
|
${instructions}
|
|
46246
46249
|
`;
|
|
46247
46250
|
}
|
|
46248
|
-
await
|
|
46249
|
-
await
|
|
46251
|
+
await (0, import_promises3.mkdir)(codexHome, { recursive: true });
|
|
46252
|
+
await (0, import_promises3.writeFile)(target, existing.trimStart(), "utf8");
|
|
46250
46253
|
}
|
|
46251
46254
|
function configureCodex() {
|
|
46252
46255
|
import_cross_spawn2.default.sync("codex", ["mcp", "remove", "sdlc"], { stdio: "ignore", windowsHide: true });
|
|
46253
|
-
const npxCommand = platform() === "win32" ? "npx.cmd" : "npx";
|
|
46256
|
+
const npxCommand = (0, import_node_os2.platform)() === "win32" ? "npx.cmd" : "npx";
|
|
46254
46257
|
const result = import_cross_spawn2.default.sync("codex", ["mcp", "add", "sdlc", "--", npxCommand, "-y", PACKAGE_SPEC, "run"], {
|
|
46255
46258
|
stdio: "inherit",
|
|
46256
46259
|
windowsHide: true
|
|
@@ -46261,7 +46264,7 @@ function configureCodex() {
|
|
|
46261
46264
|
async function install(args) {
|
|
46262
46265
|
const serverUrl = validateServerUrl(serverArgument(args));
|
|
46263
46266
|
const pairing = await jsonRequest(`${serverUrl}/api/pairing/start`, {
|
|
46264
|
-
clientName: `Codex on ${platform()}`
|
|
46267
|
+
clientName: `Codex on ${(0, import_node_os2.platform)()}`
|
|
46265
46268
|
});
|
|
46266
46269
|
process.stdout.write(`Open ${pairing.verificationUri}
|
|
46267
46270
|
Approve code ${pairing.userCode}
|
|
@@ -46270,7 +46273,7 @@ Approve code ${pairing.userCode}
|
|
|
46270
46273
|
const deadline = Date.now() + pairing.expiresIn * 1e3;
|
|
46271
46274
|
let approved;
|
|
46272
46275
|
while (Date.now() < deadline) {
|
|
46273
|
-
await new Promise((
|
|
46276
|
+
await new Promise((resolve4) => setTimeout(resolve4, pairing.interval * 1e3));
|
|
46274
46277
|
const status = await jsonRequest(`${serverUrl}/api/pairing/poll`, {
|
|
46275
46278
|
deviceCode: pairing.deviceCode
|
|
46276
46279
|
});
|
|
@@ -46309,6 +46312,7 @@ main().catch((cause) => {
|
|
|
46309
46312
|
`);
|
|
46310
46313
|
process.exitCode = 1;
|
|
46311
46314
|
});
|
|
46312
|
-
export
|
|
46315
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46316
|
+
0 && (module.exports = {
|
|
46313
46317
|
credentialFile
|
|
46314
|
-
};
|
|
46318
|
+
});
|