@remixhq/claude-plugin 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/dist/{hook-post-collab.js → hook-post-collab.cjs} +191 -46
- package/dist/hook-post-collab.cjs.map +1 -0
- package/dist/{hook-pre-git.js → hook-pre-git.cjs} +41 -16
- package/dist/hook-pre-git.cjs.map +1 -0
- package/dist/{hook-stop-collab.js → hook-stop-collab.cjs} +577 -376
- package/dist/hook-stop-collab.cjs.map +1 -0
- package/dist/{hook-user-prompt.js → hook-user-prompt.cjs} +51 -28
- package/dist/hook-user-prompt.cjs.map +1 -0
- package/dist/index.js +48 -6
- package/dist/index.js.map +1 -1
- package/dist/{mcp-server.js → mcp-server.cjs} +814 -782
- package/dist/mcp-server.cjs.map +1 -0
- package/hooks/hooks.json +5 -5
- package/package.json +2 -2
- package/dist/hook-post-collab.js.map +0 -1
- package/dist/hook-pre-git.js.map +0 -1
- package/dist/hook-stop-collab.js.map +0 -1
- package/dist/hook-user-prompt.js.map +0 -1
- package/dist/mcp-server.js.map +0 -1
- /package/dist/{hook-post-collab.d.ts → hook-post-collab.d.cts} +0 -0
- /package/dist/{hook-pre-git.d.ts → hook-pre-git.d.cts} +0 -0
- /package/dist/{hook-stop-collab.d.ts → hook-stop-collab.d.cts} +0 -0
- /package/dist/{hook-user-prompt.d.ts → hook-user-prompt.d.cts} +0 -0
- /package/dist/{mcp-server.d.ts → mcp-server.d.cts} +0 -0
|
@@ -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: (a2, b) => (typeof require !== "undefined" ? require : a2)[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
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
11
|
};
|
|
17
12
|
var __export = (target, all) => {
|
|
@@ -37,18 +32,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
32
|
|
|
38
33
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
39
34
|
var require_code = __commonJS({
|
|
40
|
-
"node_modules/ajv/dist/compile/codegen/code.js"(
|
|
35
|
+
"node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
|
|
41
36
|
"use strict";
|
|
42
|
-
Object.defineProperty(
|
|
43
|
-
|
|
37
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
38
|
+
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;
|
|
44
39
|
var _CodeOrName = class {
|
|
45
40
|
};
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
exports2._CodeOrName = _CodeOrName;
|
|
42
|
+
exports2.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
48
43
|
var Name = class extends _CodeOrName {
|
|
49
44
|
constructor(s) {
|
|
50
45
|
super();
|
|
51
|
-
if (!
|
|
46
|
+
if (!exports2.IDENTIFIER.test(s))
|
|
52
47
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
53
48
|
this.str = s;
|
|
54
49
|
}
|
|
@@ -62,7 +57,7 @@ var require_code = __commonJS({
|
|
|
62
57
|
return { [this.str]: 1 };
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
|
-
|
|
60
|
+
exports2.Name = Name;
|
|
66
61
|
var _Code = class extends _CodeOrName {
|
|
67
62
|
constructor(code) {
|
|
68
63
|
super();
|
|
@@ -90,8 +85,8 @@ var require_code = __commonJS({
|
|
|
90
85
|
}, {});
|
|
91
86
|
}
|
|
92
87
|
};
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
exports2._Code = _Code;
|
|
89
|
+
exports2.nil = new _Code("");
|
|
95
90
|
function _(strs, ...args) {
|
|
96
91
|
const code = [strs[0]];
|
|
97
92
|
let i2 = 0;
|
|
@@ -101,7 +96,7 @@ var require_code = __commonJS({
|
|
|
101
96
|
}
|
|
102
97
|
return new _Code(code);
|
|
103
98
|
}
|
|
104
|
-
|
|
99
|
+
exports2._ = _;
|
|
105
100
|
var plus = new _Code("+");
|
|
106
101
|
function str(strs, ...args) {
|
|
107
102
|
const expr = [safeStringify(strs[0])];
|
|
@@ -114,7 +109,7 @@ var require_code = __commonJS({
|
|
|
114
109
|
optimize(expr);
|
|
115
110
|
return new _Code(expr);
|
|
116
111
|
}
|
|
117
|
-
|
|
112
|
+
exports2.str = str;
|
|
118
113
|
function addCodeArg(code, arg) {
|
|
119
114
|
if (arg instanceof _Code)
|
|
120
115
|
code.push(...arg._items);
|
|
@@ -123,7 +118,7 @@ var require_code = __commonJS({
|
|
|
123
118
|
else
|
|
124
119
|
code.push(interpolate(arg));
|
|
125
120
|
}
|
|
126
|
-
|
|
121
|
+
exports2.addCodeArg = addCodeArg;
|
|
127
122
|
function optimize(expr) {
|
|
128
123
|
let i2 = 1;
|
|
129
124
|
while (i2 < expr.length - 1) {
|
|
@@ -159,42 +154,42 @@ var require_code = __commonJS({
|
|
|
159
154
|
function strConcat(c1, c22) {
|
|
160
155
|
return c22.emptyStr() ? c1 : c1.emptyStr() ? c22 : str`${c1}${c22}`;
|
|
161
156
|
}
|
|
162
|
-
|
|
157
|
+
exports2.strConcat = strConcat;
|
|
163
158
|
function interpolate(x) {
|
|
164
159
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
165
160
|
}
|
|
166
161
|
function stringify(x) {
|
|
167
162
|
return new _Code(safeStringify(x));
|
|
168
163
|
}
|
|
169
|
-
|
|
164
|
+
exports2.stringify = stringify;
|
|
170
165
|
function safeStringify(x) {
|
|
171
166
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
172
167
|
}
|
|
173
|
-
|
|
168
|
+
exports2.safeStringify = safeStringify;
|
|
174
169
|
function getProperty(key) {
|
|
175
|
-
return typeof key == "string" &&
|
|
170
|
+
return typeof key == "string" && exports2.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
176
171
|
}
|
|
177
|
-
|
|
172
|
+
exports2.getProperty = getProperty;
|
|
178
173
|
function getEsmExportName(key) {
|
|
179
|
-
if (typeof key == "string" &&
|
|
174
|
+
if (typeof key == "string" && exports2.IDENTIFIER.test(key)) {
|
|
180
175
|
return new _Code(`${key}`);
|
|
181
176
|
}
|
|
182
177
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
183
178
|
}
|
|
184
|
-
|
|
179
|
+
exports2.getEsmExportName = getEsmExportName;
|
|
185
180
|
function regexpCode(rx) {
|
|
186
181
|
return new _Code(rx.toString());
|
|
187
182
|
}
|
|
188
|
-
|
|
183
|
+
exports2.regexpCode = regexpCode;
|
|
189
184
|
}
|
|
190
185
|
});
|
|
191
186
|
|
|
192
187
|
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
193
188
|
var require_scope = __commonJS({
|
|
194
|
-
"node_modules/ajv/dist/compile/codegen/scope.js"(
|
|
189
|
+
"node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
|
|
195
190
|
"use strict";
|
|
196
|
-
Object.defineProperty(
|
|
197
|
-
|
|
191
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
192
|
+
exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
|
|
198
193
|
var code_1 = require_code();
|
|
199
194
|
var ValueError = class extends Error {
|
|
200
195
|
constructor(name) {
|
|
@@ -206,8 +201,8 @@ var require_scope = __commonJS({
|
|
|
206
201
|
(function(UsedValueState2) {
|
|
207
202
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
208
203
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
209
|
-
})(UsedValueState || (
|
|
210
|
-
|
|
204
|
+
})(UsedValueState || (exports2.UsedValueState = UsedValueState = {}));
|
|
205
|
+
exports2.varKinds = {
|
|
211
206
|
const: new code_1.Name("const"),
|
|
212
207
|
let: new code_1.Name("let"),
|
|
213
208
|
var: new code_1.Name("var")
|
|
@@ -236,7 +231,7 @@ var require_scope = __commonJS({
|
|
|
236
231
|
return this._names[prefix] = { prefix, index: 0 };
|
|
237
232
|
}
|
|
238
233
|
};
|
|
239
|
-
|
|
234
|
+
exports2.Scope = Scope;
|
|
240
235
|
var ValueScopeName = class extends code_1.Name {
|
|
241
236
|
constructor(prefix, nameStr) {
|
|
242
237
|
super(nameStr);
|
|
@@ -247,7 +242,7 @@ var require_scope = __commonJS({
|
|
|
247
242
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
248
243
|
}
|
|
249
244
|
};
|
|
250
|
-
|
|
245
|
+
exports2.ValueScopeName = ValueScopeName;
|
|
251
246
|
var line = (0, code_1._)`\n`;
|
|
252
247
|
var ValueScope = class extends Scope {
|
|
253
248
|
constructor(opts) {
|
|
@@ -317,7 +312,7 @@ var require_scope = __commonJS({
|
|
|
317
312
|
nameSet.set(name, UsedValueState.Started);
|
|
318
313
|
let c3 = valueCode(name);
|
|
319
314
|
if (c3) {
|
|
320
|
-
const def = this.opts.es5 ?
|
|
315
|
+
const def = this.opts.es5 ? exports2.varKinds.var : exports2.varKinds.const;
|
|
321
316
|
code = (0, code_1._)`${code}${def} ${name} = ${c3};${this.opts._n}`;
|
|
322
317
|
} else if (c3 = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
|
|
323
318
|
code = (0, code_1._)`${code}${c3}${this.opts._n}`;
|
|
@@ -330,57 +325,57 @@ var require_scope = __commonJS({
|
|
|
330
325
|
return code;
|
|
331
326
|
}
|
|
332
327
|
};
|
|
333
|
-
|
|
328
|
+
exports2.ValueScope = ValueScope;
|
|
334
329
|
}
|
|
335
330
|
});
|
|
336
331
|
|
|
337
332
|
// node_modules/ajv/dist/compile/codegen/index.js
|
|
338
333
|
var require_codegen = __commonJS({
|
|
339
|
-
"node_modules/ajv/dist/compile/codegen/index.js"(
|
|
334
|
+
"node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
|
|
340
335
|
"use strict";
|
|
341
|
-
Object.defineProperty(
|
|
342
|
-
|
|
336
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
337
|
+
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;
|
|
343
338
|
var code_1 = require_code();
|
|
344
339
|
var scope_1 = require_scope();
|
|
345
340
|
var code_2 = require_code();
|
|
346
|
-
Object.defineProperty(
|
|
341
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
347
342
|
return code_2._;
|
|
348
343
|
} });
|
|
349
|
-
Object.defineProperty(
|
|
344
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
350
345
|
return code_2.str;
|
|
351
346
|
} });
|
|
352
|
-
Object.defineProperty(
|
|
347
|
+
Object.defineProperty(exports2, "strConcat", { enumerable: true, get: function() {
|
|
353
348
|
return code_2.strConcat;
|
|
354
349
|
} });
|
|
355
|
-
Object.defineProperty(
|
|
350
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
356
351
|
return code_2.nil;
|
|
357
352
|
} });
|
|
358
|
-
Object.defineProperty(
|
|
353
|
+
Object.defineProperty(exports2, "getProperty", { enumerable: true, get: function() {
|
|
359
354
|
return code_2.getProperty;
|
|
360
355
|
} });
|
|
361
|
-
Object.defineProperty(
|
|
356
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
362
357
|
return code_2.stringify;
|
|
363
358
|
} });
|
|
364
|
-
Object.defineProperty(
|
|
359
|
+
Object.defineProperty(exports2, "regexpCode", { enumerable: true, get: function() {
|
|
365
360
|
return code_2.regexpCode;
|
|
366
361
|
} });
|
|
367
|
-
Object.defineProperty(
|
|
362
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
368
363
|
return code_2.Name;
|
|
369
364
|
} });
|
|
370
365
|
var scope_2 = require_scope();
|
|
371
|
-
Object.defineProperty(
|
|
366
|
+
Object.defineProperty(exports2, "Scope", { enumerable: true, get: function() {
|
|
372
367
|
return scope_2.Scope;
|
|
373
368
|
} });
|
|
374
|
-
Object.defineProperty(
|
|
369
|
+
Object.defineProperty(exports2, "ValueScope", { enumerable: true, get: function() {
|
|
375
370
|
return scope_2.ValueScope;
|
|
376
371
|
} });
|
|
377
|
-
Object.defineProperty(
|
|
372
|
+
Object.defineProperty(exports2, "ValueScopeName", { enumerable: true, get: function() {
|
|
378
373
|
return scope_2.ValueScopeName;
|
|
379
374
|
} });
|
|
380
|
-
Object.defineProperty(
|
|
375
|
+
Object.defineProperty(exports2, "varKinds", { enumerable: true, get: function() {
|
|
381
376
|
return scope_2.varKinds;
|
|
382
377
|
} });
|
|
383
|
-
|
|
378
|
+
exports2.operators = {
|
|
384
379
|
GT: new code_1._Code(">"),
|
|
385
380
|
GTE: new code_1._Code(">="),
|
|
386
381
|
LT: new code_1._Code("<"),
|
|
@@ -793,7 +788,7 @@ var require_codegen = __commonJS({
|
|
|
793
788
|
}
|
|
794
789
|
// `+=` code
|
|
795
790
|
add(lhs, rhs) {
|
|
796
|
-
return this._leafNode(new AssignOp(lhs,
|
|
791
|
+
return this._leafNode(new AssignOp(lhs, exports2.operators.ADD, rhs));
|
|
797
792
|
}
|
|
798
793
|
// appends passed SafeExpr to code or executes Block
|
|
799
794
|
code(c3) {
|
|
@@ -993,7 +988,7 @@ var require_codegen = __commonJS({
|
|
|
993
988
|
ns[ns.length - 1] = node;
|
|
994
989
|
}
|
|
995
990
|
};
|
|
996
|
-
|
|
991
|
+
exports2.CodeGen = CodeGen;
|
|
997
992
|
function addNames(names, from) {
|
|
998
993
|
for (const n2 in from)
|
|
999
994
|
names[n2] = (names[n2] || 0) + (from[n2] || 0);
|
|
@@ -1034,17 +1029,17 @@ var require_codegen = __commonJS({
|
|
|
1034
1029
|
function not(x) {
|
|
1035
1030
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1036
1031
|
}
|
|
1037
|
-
|
|
1038
|
-
var andCode = mappend(
|
|
1032
|
+
exports2.not = not;
|
|
1033
|
+
var andCode = mappend(exports2.operators.AND);
|
|
1039
1034
|
function and(...args) {
|
|
1040
1035
|
return args.reduce(andCode);
|
|
1041
1036
|
}
|
|
1042
|
-
|
|
1043
|
-
var orCode = mappend(
|
|
1037
|
+
exports2.and = and;
|
|
1038
|
+
var orCode = mappend(exports2.operators.OR);
|
|
1044
1039
|
function or(...args) {
|
|
1045
1040
|
return args.reduce(orCode);
|
|
1046
1041
|
}
|
|
1047
|
-
|
|
1042
|
+
exports2.or = or;
|
|
1048
1043
|
function mappend(op) {
|
|
1049
1044
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1050
1045
|
}
|
|
@@ -1056,10 +1051,10 @@ var require_codegen = __commonJS({
|
|
|
1056
1051
|
|
|
1057
1052
|
// node_modules/ajv/dist/compile/util.js
|
|
1058
1053
|
var require_util = __commonJS({
|
|
1059
|
-
"node_modules/ajv/dist/compile/util.js"(
|
|
1054
|
+
"node_modules/ajv/dist/compile/util.js"(exports2) {
|
|
1060
1055
|
"use strict";
|
|
1061
|
-
Object.defineProperty(
|
|
1062
|
-
|
|
1056
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1057
|
+
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;
|
|
1063
1058
|
var codegen_1 = require_codegen();
|
|
1064
1059
|
var code_1 = require_code();
|
|
1065
1060
|
function toHash(arr) {
|
|
@@ -1068,7 +1063,7 @@ var require_util = __commonJS({
|
|
|
1068
1063
|
hash[item] = true;
|
|
1069
1064
|
return hash;
|
|
1070
1065
|
}
|
|
1071
|
-
|
|
1066
|
+
exports2.toHash = toHash;
|
|
1072
1067
|
function alwaysValidSchema(it, schema) {
|
|
1073
1068
|
if (typeof schema == "boolean")
|
|
1074
1069
|
return schema;
|
|
@@ -1077,7 +1072,7 @@ var require_util = __commonJS({
|
|
|
1077
1072
|
checkUnknownRules(it, schema);
|
|
1078
1073
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1079
1074
|
}
|
|
1080
|
-
|
|
1075
|
+
exports2.alwaysValidSchema = alwaysValidSchema;
|
|
1081
1076
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1082
1077
|
const { opts, self: self2 } = it;
|
|
1083
1078
|
if (!opts.strictSchema)
|
|
@@ -1090,7 +1085,7 @@ var require_util = __commonJS({
|
|
|
1090
1085
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1091
1086
|
}
|
|
1092
1087
|
}
|
|
1093
|
-
|
|
1088
|
+
exports2.checkUnknownRules = checkUnknownRules;
|
|
1094
1089
|
function schemaHasRules(schema, rules) {
|
|
1095
1090
|
if (typeof schema == "boolean")
|
|
1096
1091
|
return !schema;
|
|
@@ -1099,7 +1094,7 @@ var require_util = __commonJS({
|
|
|
1099
1094
|
return true;
|
|
1100
1095
|
return false;
|
|
1101
1096
|
}
|
|
1102
|
-
|
|
1097
|
+
exports2.schemaHasRules = schemaHasRules;
|
|
1103
1098
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1104
1099
|
if (typeof schema == "boolean")
|
|
1105
1100
|
return !schema;
|
|
@@ -1108,7 +1103,7 @@ var require_util = __commonJS({
|
|
|
1108
1103
|
return true;
|
|
1109
1104
|
return false;
|
|
1110
1105
|
}
|
|
1111
|
-
|
|
1106
|
+
exports2.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1112
1107
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1113
1108
|
if (!$data) {
|
|
1114
1109
|
if (typeof schema == "number" || typeof schema == "boolean")
|
|
@@ -1118,25 +1113,25 @@ var require_util = __commonJS({
|
|
|
1118
1113
|
}
|
|
1119
1114
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1120
1115
|
}
|
|
1121
|
-
|
|
1116
|
+
exports2.schemaRefOrVal = schemaRefOrVal;
|
|
1122
1117
|
function unescapeFragment(str) {
|
|
1123
1118
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1124
1119
|
}
|
|
1125
|
-
|
|
1120
|
+
exports2.unescapeFragment = unescapeFragment;
|
|
1126
1121
|
function escapeFragment(str) {
|
|
1127
1122
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1128
1123
|
}
|
|
1129
|
-
|
|
1124
|
+
exports2.escapeFragment = escapeFragment;
|
|
1130
1125
|
function escapeJsonPointer(str) {
|
|
1131
1126
|
if (typeof str == "number")
|
|
1132
1127
|
return `${str}`;
|
|
1133
1128
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1134
1129
|
}
|
|
1135
|
-
|
|
1130
|
+
exports2.escapeJsonPointer = escapeJsonPointer;
|
|
1136
1131
|
function unescapeJsonPointer(str) {
|
|
1137
1132
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1138
1133
|
}
|
|
1139
|
-
|
|
1134
|
+
exports2.unescapeJsonPointer = unescapeJsonPointer;
|
|
1140
1135
|
function eachItem(xs, f) {
|
|
1141
1136
|
if (Array.isArray(xs)) {
|
|
1142
1137
|
for (const x of xs)
|
|
@@ -1145,14 +1140,14 @@ var require_util = __commonJS({
|
|
|
1145
1140
|
f(xs);
|
|
1146
1141
|
}
|
|
1147
1142
|
}
|
|
1148
|
-
|
|
1143
|
+
exports2.eachItem = eachItem;
|
|
1149
1144
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues3, resultToName }) {
|
|
1150
1145
|
return (gen, from, to, toName) => {
|
|
1151
1146
|
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);
|
|
1152
1147
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1153
1148
|
};
|
|
1154
1149
|
}
|
|
1155
|
-
|
|
1150
|
+
exports2.mergeEvaluated = {
|
|
1156
1151
|
props: makeMergeEvaluated({
|
|
1157
1152
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1158
1153
|
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})`));
|
|
@@ -1183,11 +1178,11 @@ var require_util = __commonJS({
|
|
|
1183
1178
|
setEvaluated(gen, props, ps);
|
|
1184
1179
|
return props;
|
|
1185
1180
|
}
|
|
1186
|
-
|
|
1181
|
+
exports2.evaluatedPropsToName = evaluatedPropsToName;
|
|
1187
1182
|
function setEvaluated(gen, props, ps) {
|
|
1188
1183
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1189
1184
|
}
|
|
1190
|
-
|
|
1185
|
+
exports2.setEvaluated = setEvaluated;
|
|
1191
1186
|
var snippets = {};
|
|
1192
1187
|
function useFunc(gen, f) {
|
|
1193
1188
|
return gen.scopeValue("func", {
|
|
@@ -1195,12 +1190,12 @@ var require_util = __commonJS({
|
|
|
1195
1190
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1196
1191
|
});
|
|
1197
1192
|
}
|
|
1198
|
-
|
|
1193
|
+
exports2.useFunc = useFunc;
|
|
1199
1194
|
var Type;
|
|
1200
1195
|
(function(Type2) {
|
|
1201
1196
|
Type2[Type2["Num"] = 0] = "Num";
|
|
1202
1197
|
Type2[Type2["Str"] = 1] = "Str";
|
|
1203
|
-
})(Type || (
|
|
1198
|
+
})(Type || (exports2.Type = Type = {}));
|
|
1204
1199
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1205
1200
|
if (dataProp instanceof codegen_1.Name) {
|
|
1206
1201
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -1208,7 +1203,7 @@ var require_util = __commonJS({
|
|
|
1208
1203
|
}
|
|
1209
1204
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1210
1205
|
}
|
|
1211
|
-
|
|
1206
|
+
exports2.getErrorPath = getErrorPath;
|
|
1212
1207
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1213
1208
|
if (!mode)
|
|
1214
1209
|
return;
|
|
@@ -1217,15 +1212,15 @@ var require_util = __commonJS({
|
|
|
1217
1212
|
throw new Error(msg);
|
|
1218
1213
|
it.self.logger.warn(msg);
|
|
1219
1214
|
}
|
|
1220
|
-
|
|
1215
|
+
exports2.checkStrictMode = checkStrictMode;
|
|
1221
1216
|
}
|
|
1222
1217
|
});
|
|
1223
1218
|
|
|
1224
1219
|
// node_modules/ajv/dist/compile/names.js
|
|
1225
1220
|
var require_names = __commonJS({
|
|
1226
|
-
"node_modules/ajv/dist/compile/names.js"(
|
|
1221
|
+
"node_modules/ajv/dist/compile/names.js"(exports2) {
|
|
1227
1222
|
"use strict";
|
|
1228
|
-
Object.defineProperty(
|
|
1223
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1229
1224
|
var codegen_1 = require_codegen();
|
|
1230
1225
|
var names = {
|
|
1231
1226
|
// validation function arguments
|
|
@@ -1256,26 +1251,26 @@ var require_names = __commonJS({
|
|
|
1256
1251
|
jsonLen: new codegen_1.Name("jsonLen"),
|
|
1257
1252
|
jsonPart: new codegen_1.Name("jsonPart")
|
|
1258
1253
|
};
|
|
1259
|
-
|
|
1254
|
+
exports2.default = names;
|
|
1260
1255
|
}
|
|
1261
1256
|
});
|
|
1262
1257
|
|
|
1263
1258
|
// node_modules/ajv/dist/compile/errors.js
|
|
1264
1259
|
var require_errors = __commonJS({
|
|
1265
|
-
"node_modules/ajv/dist/compile/errors.js"(
|
|
1260
|
+
"node_modules/ajv/dist/compile/errors.js"(exports2) {
|
|
1266
1261
|
"use strict";
|
|
1267
|
-
Object.defineProperty(
|
|
1268
|
-
|
|
1262
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1263
|
+
exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
|
|
1269
1264
|
var codegen_1 = require_codegen();
|
|
1270
1265
|
var util_1 = require_util();
|
|
1271
1266
|
var names_1 = require_names();
|
|
1272
|
-
|
|
1267
|
+
exports2.keywordError = {
|
|
1273
1268
|
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
|
|
1274
1269
|
};
|
|
1275
|
-
|
|
1270
|
+
exports2.keyword$DataError = {
|
|
1276
1271
|
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
|
|
1277
1272
|
};
|
|
1278
|
-
function reportError(cxt, error2 =
|
|
1273
|
+
function reportError(cxt, error2 = exports2.keywordError, errorPaths, overrideAllErrors) {
|
|
1279
1274
|
const { it } = cxt;
|
|
1280
1275
|
const { gen, compositeRule, allErrors } = it;
|
|
1281
1276
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
@@ -1285,8 +1280,8 @@ var require_errors = __commonJS({
|
|
|
1285
1280
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1286
1281
|
}
|
|
1287
1282
|
}
|
|
1288
|
-
|
|
1289
|
-
function reportExtraError(cxt, error2 =
|
|
1283
|
+
exports2.reportError = reportError;
|
|
1284
|
+
function reportExtraError(cxt, error2 = exports2.keywordError, errorPaths) {
|
|
1290
1285
|
const { it } = cxt;
|
|
1291
1286
|
const { gen, compositeRule, allErrors } = it;
|
|
1292
1287
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
@@ -1295,12 +1290,12 @@ var require_errors = __commonJS({
|
|
|
1295
1290
|
returnErrors(it, names_1.default.vErrors);
|
|
1296
1291
|
}
|
|
1297
1292
|
}
|
|
1298
|
-
|
|
1293
|
+
exports2.reportExtraError = reportExtraError;
|
|
1299
1294
|
function resetErrorsCount(gen, errsCount) {
|
|
1300
1295
|
gen.assign(names_1.default.errors, errsCount);
|
|
1301
1296
|
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)));
|
|
1302
1297
|
}
|
|
1303
|
-
|
|
1298
|
+
exports2.resetErrorsCount = resetErrorsCount;
|
|
1304
1299
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1305
1300
|
if (errsCount === void 0)
|
|
1306
1301
|
throw new Error("ajv implementation error");
|
|
@@ -1315,7 +1310,7 @@ var require_errors = __commonJS({
|
|
|
1315
1310
|
}
|
|
1316
1311
|
});
|
|
1317
1312
|
}
|
|
1318
|
-
|
|
1313
|
+
exports2.extendErrors = extendErrors;
|
|
1319
1314
|
function addError(gen, errObj) {
|
|
1320
1315
|
const err = gen.const("err", errObj);
|
|
1321
1316
|
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})`);
|
|
@@ -1384,10 +1379,10 @@ var require_errors = __commonJS({
|
|
|
1384
1379
|
|
|
1385
1380
|
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1386
1381
|
var require_boolSchema = __commonJS({
|
|
1387
|
-
"node_modules/ajv/dist/compile/validate/boolSchema.js"(
|
|
1382
|
+
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
|
|
1388
1383
|
"use strict";
|
|
1389
|
-
Object.defineProperty(
|
|
1390
|
-
|
|
1384
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1385
|
+
exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
|
|
1391
1386
|
var errors_1 = require_errors();
|
|
1392
1387
|
var codegen_1 = require_codegen();
|
|
1393
1388
|
var names_1 = require_names();
|
|
@@ -1405,7 +1400,7 @@ var require_boolSchema = __commonJS({
|
|
|
1405
1400
|
gen.return(true);
|
|
1406
1401
|
}
|
|
1407
1402
|
}
|
|
1408
|
-
|
|
1403
|
+
exports2.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1409
1404
|
function boolOrEmptySchema(it, valid) {
|
|
1410
1405
|
const { gen, schema } = it;
|
|
1411
1406
|
if (schema === false) {
|
|
@@ -1415,7 +1410,7 @@ var require_boolSchema = __commonJS({
|
|
|
1415
1410
|
gen.var(valid, true);
|
|
1416
1411
|
}
|
|
1417
1412
|
}
|
|
1418
|
-
|
|
1413
|
+
exports2.boolOrEmptySchema = boolOrEmptySchema;
|
|
1419
1414
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1420
1415
|
const { gen, data } = it;
|
|
1421
1416
|
const cxt = {
|
|
@@ -1435,16 +1430,16 @@ var require_boolSchema = __commonJS({
|
|
|
1435
1430
|
|
|
1436
1431
|
// node_modules/ajv/dist/compile/rules.js
|
|
1437
1432
|
var require_rules = __commonJS({
|
|
1438
|
-
"node_modules/ajv/dist/compile/rules.js"(
|
|
1433
|
+
"node_modules/ajv/dist/compile/rules.js"(exports2) {
|
|
1439
1434
|
"use strict";
|
|
1440
|
-
Object.defineProperty(
|
|
1441
|
-
|
|
1435
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1436
|
+
exports2.getRules = exports2.isJSONType = void 0;
|
|
1442
1437
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
1443
1438
|
var jsonTypes = new Set(_jsonTypes);
|
|
1444
1439
|
function isJSONType(x) {
|
|
1445
1440
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1446
1441
|
}
|
|
1447
|
-
|
|
1442
|
+
exports2.isJSONType = isJSONType;
|
|
1448
1443
|
function getRules() {
|
|
1449
1444
|
const groups = {
|
|
1450
1445
|
number: { type: "number", rules: [] },
|
|
@@ -1460,39 +1455,39 @@ var require_rules = __commonJS({
|
|
|
1460
1455
|
keywords: {}
|
|
1461
1456
|
};
|
|
1462
1457
|
}
|
|
1463
|
-
|
|
1458
|
+
exports2.getRules = getRules;
|
|
1464
1459
|
}
|
|
1465
1460
|
});
|
|
1466
1461
|
|
|
1467
1462
|
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1468
1463
|
var require_applicability = __commonJS({
|
|
1469
|
-
"node_modules/ajv/dist/compile/validate/applicability.js"(
|
|
1464
|
+
"node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
|
|
1470
1465
|
"use strict";
|
|
1471
|
-
Object.defineProperty(
|
|
1472
|
-
|
|
1466
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1467
|
+
exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
|
|
1473
1468
|
function schemaHasRulesForType({ schema, self: self2 }, type) {
|
|
1474
1469
|
const group = self2.RULES.types[type];
|
|
1475
1470
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1476
1471
|
}
|
|
1477
|
-
|
|
1472
|
+
exports2.schemaHasRulesForType = schemaHasRulesForType;
|
|
1478
1473
|
function shouldUseGroup(schema, group) {
|
|
1479
1474
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1480
1475
|
}
|
|
1481
|
-
|
|
1476
|
+
exports2.shouldUseGroup = shouldUseGroup;
|
|
1482
1477
|
function shouldUseRule(schema, rule) {
|
|
1483
1478
|
var _a;
|
|
1484
1479
|
return schema[rule.keyword] !== void 0 || ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== void 0));
|
|
1485
1480
|
}
|
|
1486
|
-
|
|
1481
|
+
exports2.shouldUseRule = shouldUseRule;
|
|
1487
1482
|
}
|
|
1488
1483
|
});
|
|
1489
1484
|
|
|
1490
1485
|
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1491
1486
|
var require_dataType = __commonJS({
|
|
1492
|
-
"node_modules/ajv/dist/compile/validate/dataType.js"(
|
|
1487
|
+
"node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
|
|
1493
1488
|
"use strict";
|
|
1494
|
-
Object.defineProperty(
|
|
1495
|
-
|
|
1489
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1490
|
+
exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
|
|
1496
1491
|
var rules_1 = require_rules();
|
|
1497
1492
|
var applicability_1 = require_applicability();
|
|
1498
1493
|
var errors_1 = require_errors();
|
|
@@ -1502,7 +1497,7 @@ var require_dataType = __commonJS({
|
|
|
1502
1497
|
(function(DataType2) {
|
|
1503
1498
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
1504
1499
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
1505
|
-
})(DataType || (
|
|
1500
|
+
})(DataType || (exports2.DataType = DataType = {}));
|
|
1506
1501
|
function getSchemaTypes(schema) {
|
|
1507
1502
|
const types = getJSONTypes(schema.type);
|
|
1508
1503
|
const hasNull = types.includes("null");
|
|
@@ -1518,14 +1513,14 @@ var require_dataType = __commonJS({
|
|
|
1518
1513
|
}
|
|
1519
1514
|
return types;
|
|
1520
1515
|
}
|
|
1521
|
-
|
|
1516
|
+
exports2.getSchemaTypes = getSchemaTypes;
|
|
1522
1517
|
function getJSONTypes(ts) {
|
|
1523
1518
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
1524
1519
|
if (types.every(rules_1.isJSONType))
|
|
1525
1520
|
return types;
|
|
1526
1521
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
1527
1522
|
}
|
|
1528
|
-
|
|
1523
|
+
exports2.getJSONTypes = getJSONTypes;
|
|
1529
1524
|
function coerceAndCheckDataType(it, types) {
|
|
1530
1525
|
const { gen, data, opts } = it;
|
|
1531
1526
|
const coerceTo = coerceToTypes(types, opts.coerceTypes);
|
|
@@ -1541,7 +1536,7 @@ var require_dataType = __commonJS({
|
|
|
1541
1536
|
}
|
|
1542
1537
|
return checkTypes;
|
|
1543
1538
|
}
|
|
1544
|
-
|
|
1539
|
+
exports2.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1545
1540
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1546
1541
|
function coerceToTypes(types, coerceTypes) {
|
|
1547
1542
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
@@ -1621,7 +1616,7 @@ var require_dataType = __commonJS({
|
|
|
1621
1616
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
1622
1617
|
}
|
|
1623
1618
|
}
|
|
1624
|
-
|
|
1619
|
+
exports2.checkDataType = checkDataType;
|
|
1625
1620
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
1626
1621
|
if (dataTypes.length === 1) {
|
|
1627
1622
|
return checkDataType(dataTypes[0], data, strictNums, correct);
|
|
@@ -1643,7 +1638,7 @@ var require_dataType = __commonJS({
|
|
|
1643
1638
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
1644
1639
|
return cond;
|
|
1645
1640
|
}
|
|
1646
|
-
|
|
1641
|
+
exports2.checkDataTypes = checkDataTypes;
|
|
1647
1642
|
var typeError = {
|
|
1648
1643
|
message: ({ schema }) => `must be ${schema}`,
|
|
1649
1644
|
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
|
|
@@ -1652,7 +1647,7 @@ var require_dataType = __commonJS({
|
|
|
1652
1647
|
const cxt = getTypeErrorContext(it);
|
|
1653
1648
|
(0, errors_1.reportError)(cxt, typeError);
|
|
1654
1649
|
}
|
|
1655
|
-
|
|
1650
|
+
exports2.reportTypeError = reportTypeError;
|
|
1656
1651
|
function getTypeErrorContext(it) {
|
|
1657
1652
|
const { gen, data, schema } = it;
|
|
1658
1653
|
const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
|
|
@@ -1673,10 +1668,10 @@ var require_dataType = __commonJS({
|
|
|
1673
1668
|
|
|
1674
1669
|
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1675
1670
|
var require_defaults = __commonJS({
|
|
1676
|
-
"node_modules/ajv/dist/compile/validate/defaults.js"(
|
|
1671
|
+
"node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
|
|
1677
1672
|
"use strict";
|
|
1678
|
-
Object.defineProperty(
|
|
1679
|
-
|
|
1673
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1674
|
+
exports2.assignDefaults = void 0;
|
|
1680
1675
|
var codegen_1 = require_codegen();
|
|
1681
1676
|
var util_1 = require_util();
|
|
1682
1677
|
function assignDefaults(it, ty) {
|
|
@@ -1689,7 +1684,7 @@ var require_defaults = __commonJS({
|
|
|
1689
1684
|
items.forEach((sch, i2) => assignDefault(it, i2, sch.default));
|
|
1690
1685
|
}
|
|
1691
1686
|
}
|
|
1692
|
-
|
|
1687
|
+
exports2.assignDefaults = assignDefaults;
|
|
1693
1688
|
function assignDefault(it, prop, defaultValue) {
|
|
1694
1689
|
const { gen, compositeRule, data, opts } = it;
|
|
1695
1690
|
if (defaultValue === void 0)
|
|
@@ -1710,10 +1705,10 @@ var require_defaults = __commonJS({
|
|
|
1710
1705
|
|
|
1711
1706
|
// node_modules/ajv/dist/vocabularies/code.js
|
|
1712
1707
|
var require_code2 = __commonJS({
|
|
1713
|
-
"node_modules/ajv/dist/vocabularies/code.js"(
|
|
1708
|
+
"node_modules/ajv/dist/vocabularies/code.js"(exports2) {
|
|
1714
1709
|
"use strict";
|
|
1715
|
-
Object.defineProperty(
|
|
1716
|
-
|
|
1710
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1711
|
+
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;
|
|
1717
1712
|
var codegen_1 = require_codegen();
|
|
1718
1713
|
var util_1 = require_util();
|
|
1719
1714
|
var names_1 = require_names();
|
|
@@ -1725,16 +1720,16 @@ var require_code2 = __commonJS({
|
|
|
1725
1720
|
cxt.error();
|
|
1726
1721
|
});
|
|
1727
1722
|
}
|
|
1728
|
-
|
|
1723
|
+
exports2.checkReportMissingProp = checkReportMissingProp;
|
|
1729
1724
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
1730
1725
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
1731
1726
|
}
|
|
1732
|
-
|
|
1727
|
+
exports2.checkMissingProp = checkMissingProp;
|
|
1733
1728
|
function reportMissingProp(cxt, missing) {
|
|
1734
1729
|
cxt.setParams({ missingProperty: missing }, true);
|
|
1735
1730
|
cxt.error();
|
|
1736
1731
|
}
|
|
1737
|
-
|
|
1732
|
+
exports2.reportMissingProp = reportMissingProp;
|
|
1738
1733
|
function hasPropFunc(gen) {
|
|
1739
1734
|
return gen.scopeValue("func", {
|
|
1740
1735
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1742,29 +1737,29 @@ var require_code2 = __commonJS({
|
|
|
1742
1737
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
1743
1738
|
});
|
|
1744
1739
|
}
|
|
1745
|
-
|
|
1740
|
+
exports2.hasPropFunc = hasPropFunc;
|
|
1746
1741
|
function isOwnProperty(gen, data, property) {
|
|
1747
1742
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
1748
1743
|
}
|
|
1749
|
-
|
|
1744
|
+
exports2.isOwnProperty = isOwnProperty;
|
|
1750
1745
|
function propertyInData(gen, data, property, ownProperties) {
|
|
1751
1746
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
1752
1747
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
1753
1748
|
}
|
|
1754
|
-
|
|
1749
|
+
exports2.propertyInData = propertyInData;
|
|
1755
1750
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
1756
1751
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
1757
1752
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
1758
1753
|
}
|
|
1759
|
-
|
|
1754
|
+
exports2.noPropertyInData = noPropertyInData;
|
|
1760
1755
|
function allSchemaProperties(schemaMap) {
|
|
1761
1756
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
1762
1757
|
}
|
|
1763
|
-
|
|
1758
|
+
exports2.allSchemaProperties = allSchemaProperties;
|
|
1764
1759
|
function schemaProperties(it, schemaMap) {
|
|
1765
1760
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
1766
1761
|
}
|
|
1767
|
-
|
|
1762
|
+
exports2.schemaProperties = schemaProperties;
|
|
1768
1763
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
1769
1764
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
1770
1765
|
const valCxt = [
|
|
@@ -1778,7 +1773,7 @@ var require_code2 = __commonJS({
|
|
|
1778
1773
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
1779
1774
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
1780
1775
|
}
|
|
1781
|
-
|
|
1776
|
+
exports2.callValidateCode = callValidateCode;
|
|
1782
1777
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
1783
1778
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
1784
1779
|
const u2 = opts.unicodeRegExp ? "u" : "";
|
|
@@ -1790,7 +1785,7 @@ var require_code2 = __commonJS({
|
|
|
1790
1785
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u2})`
|
|
1791
1786
|
});
|
|
1792
1787
|
}
|
|
1793
|
-
|
|
1788
|
+
exports2.usePattern = usePattern;
|
|
1794
1789
|
function validateArray(cxt) {
|
|
1795
1790
|
const { gen, data, keyword, it } = cxt;
|
|
1796
1791
|
const valid = gen.name("valid");
|
|
@@ -1814,7 +1809,7 @@ var require_code2 = __commonJS({
|
|
|
1814
1809
|
});
|
|
1815
1810
|
}
|
|
1816
1811
|
}
|
|
1817
|
-
|
|
1812
|
+
exports2.validateArray = validateArray;
|
|
1818
1813
|
function validateUnion(cxt) {
|
|
1819
1814
|
const { gen, schema, keyword, it } = cxt;
|
|
1820
1815
|
if (!Array.isArray(schema))
|
|
@@ -1837,16 +1832,16 @@ var require_code2 = __commonJS({
|
|
|
1837
1832
|
}));
|
|
1838
1833
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
1839
1834
|
}
|
|
1840
|
-
|
|
1835
|
+
exports2.validateUnion = validateUnion;
|
|
1841
1836
|
}
|
|
1842
1837
|
});
|
|
1843
1838
|
|
|
1844
1839
|
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1845
1840
|
var require_keyword = __commonJS({
|
|
1846
|
-
"node_modules/ajv/dist/compile/validate/keyword.js"(
|
|
1841
|
+
"node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
|
|
1847
1842
|
"use strict";
|
|
1848
|
-
Object.defineProperty(
|
|
1849
|
-
|
|
1843
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1844
|
+
exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
|
|
1850
1845
|
var codegen_1 = require_codegen();
|
|
1851
1846
|
var names_1 = require_names();
|
|
1852
1847
|
var code_1 = require_code2();
|
|
@@ -1867,7 +1862,7 @@ var require_keyword = __commonJS({
|
|
|
1867
1862
|
}, valid);
|
|
1868
1863
|
cxt.pass(valid, () => cxt.error(true));
|
|
1869
1864
|
}
|
|
1870
|
-
|
|
1865
|
+
exports2.macroKeywordCode = macroKeywordCode;
|
|
1871
1866
|
function funcKeywordCode(cxt, def) {
|
|
1872
1867
|
var _a;
|
|
1873
1868
|
const { gen, keyword, schema, parentSchema, $data, it } = cxt;
|
|
@@ -1911,7 +1906,7 @@ var require_keyword = __commonJS({
|
|
|
1911
1906
|
gen.if((0, codegen_1.not)((_a2 = def.valid) !== null && _a2 !== void 0 ? _a2 : valid), errors);
|
|
1912
1907
|
}
|
|
1913
1908
|
}
|
|
1914
|
-
|
|
1909
|
+
exports2.funcKeywordCode = funcKeywordCode;
|
|
1915
1910
|
function modifyData(cxt) {
|
|
1916
1911
|
const { gen, data, it } = cxt;
|
|
1917
1912
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
@@ -1935,7 +1930,7 @@ var require_keyword = __commonJS({
|
|
|
1935
1930
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
1936
1931
|
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");
|
|
1937
1932
|
}
|
|
1938
|
-
|
|
1933
|
+
exports2.validSchemaType = validSchemaType;
|
|
1939
1934
|
function validateKeywordUsage({ schema, opts, self: self2, errSchemaPath }, def, keyword) {
|
|
1940
1935
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
1941
1936
|
throw new Error("ajv implementation error");
|
|
@@ -1955,16 +1950,16 @@ var require_keyword = __commonJS({
|
|
|
1955
1950
|
}
|
|
1956
1951
|
}
|
|
1957
1952
|
}
|
|
1958
|
-
|
|
1953
|
+
exports2.validateKeywordUsage = validateKeywordUsage;
|
|
1959
1954
|
}
|
|
1960
1955
|
});
|
|
1961
1956
|
|
|
1962
1957
|
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1963
1958
|
var require_subschema = __commonJS({
|
|
1964
|
-
"node_modules/ajv/dist/compile/validate/subschema.js"(
|
|
1959
|
+
"node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
|
|
1965
1960
|
"use strict";
|
|
1966
|
-
Object.defineProperty(
|
|
1967
|
-
|
|
1961
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1962
|
+
exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
|
|
1968
1963
|
var codegen_1 = require_codegen();
|
|
1969
1964
|
var util_1 = require_util();
|
|
1970
1965
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
@@ -1996,7 +1991,7 @@ var require_subschema = __commonJS({
|
|
|
1996
1991
|
}
|
|
1997
1992
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1998
1993
|
}
|
|
1999
|
-
|
|
1994
|
+
exports2.getSubschema = getSubschema;
|
|
2000
1995
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
2001
1996
|
if (data !== void 0 && dataProp !== void 0) {
|
|
2002
1997
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -2027,7 +2022,7 @@ var require_subschema = __commonJS({
|
|
|
2027
2022
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
2028
2023
|
}
|
|
2029
2024
|
}
|
|
2030
|
-
|
|
2025
|
+
exports2.extendSubschemaData = extendSubschemaData;
|
|
2031
2026
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
2032
2027
|
if (compositeRule !== void 0)
|
|
2033
2028
|
subschema.compositeRule = compositeRule;
|
|
@@ -2038,15 +2033,15 @@ var require_subschema = __commonJS({
|
|
|
2038
2033
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
2039
2034
|
subschema.jtdMetadata = jtdMetadata;
|
|
2040
2035
|
}
|
|
2041
|
-
|
|
2036
|
+
exports2.extendSubschemaMode = extendSubschemaMode;
|
|
2042
2037
|
}
|
|
2043
2038
|
});
|
|
2044
2039
|
|
|
2045
2040
|
// node_modules/fast-deep-equal/index.js
|
|
2046
2041
|
var require_fast_deep_equal = __commonJS({
|
|
2047
|
-
"node_modules/fast-deep-equal/index.js"(
|
|
2042
|
+
"node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2048
2043
|
"use strict";
|
|
2049
|
-
|
|
2044
|
+
module2.exports = function equal(a2, b) {
|
|
2050
2045
|
if (a2 === b) return true;
|
|
2051
2046
|
if (a2 && b && typeof a2 == "object" && typeof b == "object") {
|
|
2052
2047
|
if (a2.constructor !== b.constructor) return false;
|
|
@@ -2079,9 +2074,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2079
2074
|
|
|
2080
2075
|
// node_modules/json-schema-traverse/index.js
|
|
2081
2076
|
var require_json_schema_traverse = __commonJS({
|
|
2082
|
-
"node_modules/json-schema-traverse/index.js"(
|
|
2077
|
+
"node_modules/json-schema-traverse/index.js"(exports2, module2) {
|
|
2083
2078
|
"use strict";
|
|
2084
|
-
var traverse =
|
|
2079
|
+
var traverse = module2.exports = function(schema, opts, cb) {
|
|
2085
2080
|
if (typeof opts == "function") {
|
|
2086
2081
|
cb = opts;
|
|
2087
2082
|
opts = {};
|
|
@@ -2167,10 +2162,10 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2167
2162
|
|
|
2168
2163
|
// node_modules/ajv/dist/compile/resolve.js
|
|
2169
2164
|
var require_resolve = __commonJS({
|
|
2170
|
-
"node_modules/ajv/dist/compile/resolve.js"(
|
|
2165
|
+
"node_modules/ajv/dist/compile/resolve.js"(exports2) {
|
|
2171
2166
|
"use strict";
|
|
2172
|
-
Object.defineProperty(
|
|
2173
|
-
|
|
2167
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2168
|
+
exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
|
|
2174
2169
|
var util_1 = require_util();
|
|
2175
2170
|
var equal = require_fast_deep_equal();
|
|
2176
2171
|
var traverse = require_json_schema_traverse();
|
|
@@ -2201,7 +2196,7 @@ var require_resolve = __commonJS({
|
|
|
2201
2196
|
return false;
|
|
2202
2197
|
return countKeys(schema) <= limit;
|
|
2203
2198
|
}
|
|
2204
|
-
|
|
2199
|
+
exports2.inlineRef = inlineRef;
|
|
2205
2200
|
var REF_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2206
2201
|
"$ref",
|
|
2207
2202
|
"$recursiveRef",
|
|
@@ -2243,22 +2238,22 @@ var require_resolve = __commonJS({
|
|
|
2243
2238
|
const p = resolver.parse(id);
|
|
2244
2239
|
return _getFullPath(resolver, p);
|
|
2245
2240
|
}
|
|
2246
|
-
|
|
2241
|
+
exports2.getFullPath = getFullPath;
|
|
2247
2242
|
function _getFullPath(resolver, p) {
|
|
2248
2243
|
const serialized = resolver.serialize(p);
|
|
2249
2244
|
return serialized.split("#")[0] + "#";
|
|
2250
2245
|
}
|
|
2251
|
-
|
|
2246
|
+
exports2._getFullPath = _getFullPath;
|
|
2252
2247
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2253
2248
|
function normalizeId(id) {
|
|
2254
2249
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2255
2250
|
}
|
|
2256
|
-
|
|
2251
|
+
exports2.normalizeId = normalizeId;
|
|
2257
2252
|
function resolveUrl(resolver, baseId, id) {
|
|
2258
2253
|
id = normalizeId(id);
|
|
2259
2254
|
return resolver.resolve(baseId, id);
|
|
2260
2255
|
}
|
|
2261
|
-
|
|
2256
|
+
exports2.resolveUrl = resolveUrl;
|
|
2262
2257
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2263
2258
|
function getSchemaRefs(schema, baseId) {
|
|
2264
2259
|
if (typeof schema == "boolean")
|
|
@@ -2317,16 +2312,16 @@ var require_resolve = __commonJS({
|
|
|
2317
2312
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2318
2313
|
}
|
|
2319
2314
|
}
|
|
2320
|
-
|
|
2315
|
+
exports2.getSchemaRefs = getSchemaRefs;
|
|
2321
2316
|
}
|
|
2322
2317
|
});
|
|
2323
2318
|
|
|
2324
2319
|
// node_modules/ajv/dist/compile/validate/index.js
|
|
2325
2320
|
var require_validate = __commonJS({
|
|
2326
|
-
"node_modules/ajv/dist/compile/validate/index.js"(
|
|
2321
|
+
"node_modules/ajv/dist/compile/validate/index.js"(exports2) {
|
|
2327
2322
|
"use strict";
|
|
2328
|
-
Object.defineProperty(
|
|
2329
|
-
|
|
2323
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2324
|
+
exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
|
|
2330
2325
|
var boolSchema_1 = require_boolSchema();
|
|
2331
2326
|
var dataType_1 = require_dataType();
|
|
2332
2327
|
var applicability_1 = require_applicability();
|
|
@@ -2349,7 +2344,7 @@ var require_validate = __commonJS({
|
|
|
2349
2344
|
}
|
|
2350
2345
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2351
2346
|
}
|
|
2352
|
-
|
|
2347
|
+
exports2.validateFunctionCode = validateFunctionCode;
|
|
2353
2348
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2354
2349
|
if (opts.code.es5) {
|
|
2355
2350
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
|
|
@@ -2770,7 +2765,7 @@ var require_validate = __commonJS({
|
|
|
2770
2765
|
}
|
|
2771
2766
|
}
|
|
2772
2767
|
};
|
|
2773
|
-
|
|
2768
|
+
exports2.KeywordCxt = KeywordCxt;
|
|
2774
2769
|
function keywordCode(it, keyword, def, ruleType) {
|
|
2775
2770
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
2776
2771
|
if ("code" in def) {
|
|
@@ -2825,15 +2820,15 @@ var require_validate = __commonJS({
|
|
|
2825
2820
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
2826
2821
|
}
|
|
2827
2822
|
}
|
|
2828
|
-
|
|
2823
|
+
exports2.getData = getData;
|
|
2829
2824
|
}
|
|
2830
2825
|
});
|
|
2831
2826
|
|
|
2832
2827
|
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2833
2828
|
var require_validation_error = __commonJS({
|
|
2834
|
-
"node_modules/ajv/dist/runtime/validation_error.js"(
|
|
2829
|
+
"node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
|
|
2835
2830
|
"use strict";
|
|
2836
|
-
Object.defineProperty(
|
|
2831
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2837
2832
|
var ValidationError = class extends Error {
|
|
2838
2833
|
constructor(errors) {
|
|
2839
2834
|
super("validation failed");
|
|
@@ -2841,15 +2836,15 @@ var require_validation_error = __commonJS({
|
|
|
2841
2836
|
this.ajv = this.validation = true;
|
|
2842
2837
|
}
|
|
2843
2838
|
};
|
|
2844
|
-
|
|
2839
|
+
exports2.default = ValidationError;
|
|
2845
2840
|
}
|
|
2846
2841
|
});
|
|
2847
2842
|
|
|
2848
2843
|
// node_modules/ajv/dist/compile/ref_error.js
|
|
2849
2844
|
var require_ref_error = __commonJS({
|
|
2850
|
-
"node_modules/ajv/dist/compile/ref_error.js"(
|
|
2845
|
+
"node_modules/ajv/dist/compile/ref_error.js"(exports2) {
|
|
2851
2846
|
"use strict";
|
|
2852
|
-
Object.defineProperty(
|
|
2847
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2853
2848
|
var resolve_1 = require_resolve();
|
|
2854
2849
|
var MissingRefError = class extends Error {
|
|
2855
2850
|
constructor(resolver, baseId, ref, msg) {
|
|
@@ -2858,16 +2853,16 @@ var require_ref_error = __commonJS({
|
|
|
2858
2853
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
2859
2854
|
}
|
|
2860
2855
|
};
|
|
2861
|
-
|
|
2856
|
+
exports2.default = MissingRefError;
|
|
2862
2857
|
}
|
|
2863
2858
|
});
|
|
2864
2859
|
|
|
2865
2860
|
// node_modules/ajv/dist/compile/index.js
|
|
2866
2861
|
var require_compile = __commonJS({
|
|
2867
|
-
"node_modules/ajv/dist/compile/index.js"(
|
|
2862
|
+
"node_modules/ajv/dist/compile/index.js"(exports2) {
|
|
2868
2863
|
"use strict";
|
|
2869
|
-
Object.defineProperty(
|
|
2870
|
-
|
|
2864
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2865
|
+
exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
|
|
2871
2866
|
var codegen_1 = require_codegen();
|
|
2872
2867
|
var validation_error_1 = require_validation_error();
|
|
2873
2868
|
var names_1 = require_names();
|
|
@@ -2893,7 +2888,7 @@ var require_compile = __commonJS({
|
|
|
2893
2888
|
this.refs = {};
|
|
2894
2889
|
}
|
|
2895
2890
|
};
|
|
2896
|
-
|
|
2891
|
+
exports2.SchemaEnv = SchemaEnv;
|
|
2897
2892
|
function compileSchema(sch) {
|
|
2898
2893
|
const _sch = getCompilingSchema.call(this, sch);
|
|
2899
2894
|
if (_sch)
|
|
@@ -2979,7 +2974,7 @@ var require_compile = __commonJS({
|
|
|
2979
2974
|
this._compilations.delete(sch);
|
|
2980
2975
|
}
|
|
2981
2976
|
}
|
|
2982
|
-
|
|
2977
|
+
exports2.compileSchema = compileSchema;
|
|
2983
2978
|
function resolveRef(root, baseId, ref) {
|
|
2984
2979
|
var _a;
|
|
2985
2980
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
@@ -2997,7 +2992,7 @@ var require_compile = __commonJS({
|
|
|
2997
2992
|
return;
|
|
2998
2993
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
2999
2994
|
}
|
|
3000
|
-
|
|
2995
|
+
exports2.resolveRef = resolveRef;
|
|
3001
2996
|
function inlineOrCompile(sch) {
|
|
3002
2997
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
3003
2998
|
return sch.schema;
|
|
@@ -3009,7 +3004,7 @@ var require_compile = __commonJS({
|
|
|
3009
3004
|
return sch;
|
|
3010
3005
|
}
|
|
3011
3006
|
}
|
|
3012
|
-
|
|
3007
|
+
exports2.getCompilingSchema = getCompilingSchema;
|
|
3013
3008
|
function sameSchemaEnv(s1, s2) {
|
|
3014
3009
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
3015
3010
|
}
|
|
@@ -3048,7 +3043,7 @@ var require_compile = __commonJS({
|
|
|
3048
3043
|
}
|
|
3049
3044
|
return getJsonPointer.call(this, p, schOrRef);
|
|
3050
3045
|
}
|
|
3051
|
-
|
|
3046
|
+
exports2.resolveSchema = resolveSchema;
|
|
3052
3047
|
var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
|
|
3053
3048
|
"properties",
|
|
3054
3049
|
"patternProperties",
|
|
@@ -3088,8 +3083,8 @@ var require_compile = __commonJS({
|
|
|
3088
3083
|
|
|
3089
3084
|
// node_modules/ajv/dist/refs/data.json
|
|
3090
3085
|
var require_data = __commonJS({
|
|
3091
|
-
"node_modules/ajv/dist/refs/data.json"(
|
|
3092
|
-
|
|
3086
|
+
"node_modules/ajv/dist/refs/data.json"(exports2, module2) {
|
|
3087
|
+
module2.exports = {
|
|
3093
3088
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3094
3089
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
3095
3090
|
type: "object",
|
|
@@ -3107,7 +3102,7 @@ var require_data = __commonJS({
|
|
|
3107
3102
|
|
|
3108
3103
|
// node_modules/fast-uri/lib/utils.js
|
|
3109
3104
|
var require_utils = __commonJS({
|
|
3110
|
-
"node_modules/fast-uri/lib/utils.js"(
|
|
3105
|
+
"node_modules/fast-uri/lib/utils.js"(exports2, module2) {
|
|
3111
3106
|
"use strict";
|
|
3112
3107
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3113
3108
|
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);
|
|
@@ -3349,7 +3344,7 @@ var require_utils = __commonJS({
|
|
|
3349
3344
|
}
|
|
3350
3345
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3351
3346
|
}
|
|
3352
|
-
|
|
3347
|
+
module2.exports = {
|
|
3353
3348
|
nonSimpleDomain,
|
|
3354
3349
|
recomposeAuthority,
|
|
3355
3350
|
normalizeComponentEncoding,
|
|
@@ -3364,7 +3359,7 @@ var require_utils = __commonJS({
|
|
|
3364
3359
|
|
|
3365
3360
|
// node_modules/fast-uri/lib/schemes.js
|
|
3366
3361
|
var require_schemes = __commonJS({
|
|
3367
|
-
"node_modules/fast-uri/lib/schemes.js"(
|
|
3362
|
+
"node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
|
|
3368
3363
|
"use strict";
|
|
3369
3364
|
var { isUUID } = require_utils();
|
|
3370
3365
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3563,7 +3558,7 @@ var require_schemes = __commonJS({
|
|
|
3563
3558
|
scheme.toLowerCase()
|
|
3564
3559
|
]) || void 0;
|
|
3565
3560
|
}
|
|
3566
|
-
|
|
3561
|
+
module2.exports = {
|
|
3567
3562
|
wsIsSecure,
|
|
3568
3563
|
SCHEMES,
|
|
3569
3564
|
isValidSchemeName,
|
|
@@ -3574,7 +3569,7 @@ var require_schemes = __commonJS({
|
|
|
3574
3569
|
|
|
3575
3570
|
// node_modules/fast-uri/index.js
|
|
3576
3571
|
var require_fast_uri = __commonJS({
|
|
3577
|
-
"node_modules/fast-uri/index.js"(
|
|
3572
|
+
"node_modules/fast-uri/index.js"(exports2, module2) {
|
|
3578
3573
|
"use strict";
|
|
3579
3574
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3580
3575
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3821,50 +3816,50 @@ var require_fast_uri = __commonJS({
|
|
|
3821
3816
|
serialize: serialize2,
|
|
3822
3817
|
parse: parse3
|
|
3823
3818
|
};
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3819
|
+
module2.exports = fastUri;
|
|
3820
|
+
module2.exports.default = fastUri;
|
|
3821
|
+
module2.exports.fastUri = fastUri;
|
|
3827
3822
|
}
|
|
3828
3823
|
});
|
|
3829
3824
|
|
|
3830
3825
|
// node_modules/ajv/dist/runtime/uri.js
|
|
3831
3826
|
var require_uri = __commonJS({
|
|
3832
|
-
"node_modules/ajv/dist/runtime/uri.js"(
|
|
3827
|
+
"node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
3833
3828
|
"use strict";
|
|
3834
|
-
Object.defineProperty(
|
|
3829
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3835
3830
|
var uri = require_fast_uri();
|
|
3836
3831
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
3837
|
-
|
|
3832
|
+
exports2.default = uri;
|
|
3838
3833
|
}
|
|
3839
3834
|
});
|
|
3840
3835
|
|
|
3841
3836
|
// node_modules/ajv/dist/core.js
|
|
3842
3837
|
var require_core = __commonJS({
|
|
3843
|
-
"node_modules/ajv/dist/core.js"(
|
|
3838
|
+
"node_modules/ajv/dist/core.js"(exports2) {
|
|
3844
3839
|
"use strict";
|
|
3845
|
-
Object.defineProperty(
|
|
3846
|
-
|
|
3840
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3841
|
+
exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
3847
3842
|
var validate_1 = require_validate();
|
|
3848
|
-
Object.defineProperty(
|
|
3843
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
3849
3844
|
return validate_1.KeywordCxt;
|
|
3850
3845
|
} });
|
|
3851
3846
|
var codegen_1 = require_codegen();
|
|
3852
|
-
Object.defineProperty(
|
|
3847
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
3853
3848
|
return codegen_1._;
|
|
3854
3849
|
} });
|
|
3855
|
-
Object.defineProperty(
|
|
3850
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
3856
3851
|
return codegen_1.str;
|
|
3857
3852
|
} });
|
|
3858
|
-
Object.defineProperty(
|
|
3853
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
3859
3854
|
return codegen_1.stringify;
|
|
3860
3855
|
} });
|
|
3861
|
-
Object.defineProperty(
|
|
3856
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
3862
3857
|
return codegen_1.nil;
|
|
3863
3858
|
} });
|
|
3864
|
-
Object.defineProperty(
|
|
3859
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
3865
3860
|
return codegen_1.Name;
|
|
3866
3861
|
} });
|
|
3867
|
-
Object.defineProperty(
|
|
3862
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
3868
3863
|
return codegen_1.CodeGen;
|
|
3869
3864
|
} });
|
|
3870
3865
|
var validation_error_1 = require_validation_error();
|
|
@@ -4318,7 +4313,7 @@ var require_core = __commonJS({
|
|
|
4318
4313
|
};
|
|
4319
4314
|
Ajv2.ValidationError = validation_error_1.default;
|
|
4320
4315
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
4321
|
-
|
|
4316
|
+
exports2.default = Ajv2;
|
|
4322
4317
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
4323
4318
|
for (const key in checkOpts) {
|
|
4324
4319
|
const opt = key;
|
|
@@ -4451,25 +4446,25 @@ var require_core = __commonJS({
|
|
|
4451
4446
|
|
|
4452
4447
|
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4453
4448
|
var require_id = __commonJS({
|
|
4454
|
-
"node_modules/ajv/dist/vocabularies/core/id.js"(
|
|
4449
|
+
"node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
|
|
4455
4450
|
"use strict";
|
|
4456
|
-
Object.defineProperty(
|
|
4451
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4457
4452
|
var def = {
|
|
4458
4453
|
keyword: "id",
|
|
4459
4454
|
code() {
|
|
4460
4455
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
4461
4456
|
}
|
|
4462
4457
|
};
|
|
4463
|
-
|
|
4458
|
+
exports2.default = def;
|
|
4464
4459
|
}
|
|
4465
4460
|
});
|
|
4466
4461
|
|
|
4467
4462
|
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4468
4463
|
var require_ref = __commonJS({
|
|
4469
|
-
"node_modules/ajv/dist/vocabularies/core/ref.js"(
|
|
4464
|
+
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
4470
4465
|
"use strict";
|
|
4471
|
-
Object.defineProperty(
|
|
4472
|
-
|
|
4466
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4467
|
+
exports2.callRef = exports2.getValidate = void 0;
|
|
4473
4468
|
var ref_error_1 = require_ref_error();
|
|
4474
4469
|
var code_1 = require_code2();
|
|
4475
4470
|
var codegen_1 = require_codegen();
|
|
@@ -4520,7 +4515,7 @@ var require_ref = __commonJS({
|
|
|
4520
4515
|
const { gen } = cxt;
|
|
4521
4516
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
4522
4517
|
}
|
|
4523
|
-
|
|
4518
|
+
exports2.getValidate = getValidate;
|
|
4524
4519
|
function callRef(cxt, v, sch, $async) {
|
|
4525
4520
|
const { gen, it } = cxt;
|
|
4526
4521
|
const { allErrors, schemaEnv: env, opts } = it;
|
|
@@ -4581,16 +4576,16 @@ var require_ref = __commonJS({
|
|
|
4581
4576
|
}
|
|
4582
4577
|
}
|
|
4583
4578
|
}
|
|
4584
|
-
|
|
4585
|
-
|
|
4579
|
+
exports2.callRef = callRef;
|
|
4580
|
+
exports2.default = def;
|
|
4586
4581
|
}
|
|
4587
4582
|
});
|
|
4588
4583
|
|
|
4589
4584
|
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4590
4585
|
var require_core2 = __commonJS({
|
|
4591
|
-
"node_modules/ajv/dist/vocabularies/core/index.js"(
|
|
4586
|
+
"node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
4592
4587
|
"use strict";
|
|
4593
|
-
Object.defineProperty(
|
|
4588
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4594
4589
|
var id_1 = require_id();
|
|
4595
4590
|
var ref_1 = require_ref();
|
|
4596
4591
|
var core = [
|
|
@@ -4603,15 +4598,15 @@ var require_core2 = __commonJS({
|
|
|
4603
4598
|
id_1.default,
|
|
4604
4599
|
ref_1.default
|
|
4605
4600
|
];
|
|
4606
|
-
|
|
4601
|
+
exports2.default = core;
|
|
4607
4602
|
}
|
|
4608
4603
|
});
|
|
4609
4604
|
|
|
4610
4605
|
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4611
4606
|
var require_limitNumber = __commonJS({
|
|
4612
|
-
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(
|
|
4607
|
+
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
|
|
4613
4608
|
"use strict";
|
|
4614
|
-
Object.defineProperty(
|
|
4609
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4615
4610
|
var codegen_1 = require_codegen();
|
|
4616
4611
|
var ops = codegen_1.operators;
|
|
4617
4612
|
var KWDs = {
|
|
@@ -4635,15 +4630,15 @@ var require_limitNumber = __commonJS({
|
|
|
4635
4630
|
cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
4636
4631
|
}
|
|
4637
4632
|
};
|
|
4638
|
-
|
|
4633
|
+
exports2.default = def;
|
|
4639
4634
|
}
|
|
4640
4635
|
});
|
|
4641
4636
|
|
|
4642
4637
|
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4643
4638
|
var require_multipleOf = __commonJS({
|
|
4644
|
-
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(
|
|
4639
|
+
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
|
|
4645
4640
|
"use strict";
|
|
4646
|
-
Object.defineProperty(
|
|
4641
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4647
4642
|
var codegen_1 = require_codegen();
|
|
4648
4643
|
var error2 = {
|
|
4649
4644
|
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
@@ -4663,15 +4658,15 @@ var require_multipleOf = __commonJS({
|
|
|
4663
4658
|
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
4664
4659
|
}
|
|
4665
4660
|
};
|
|
4666
|
-
|
|
4661
|
+
exports2.default = def;
|
|
4667
4662
|
}
|
|
4668
4663
|
});
|
|
4669
4664
|
|
|
4670
4665
|
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
4671
4666
|
var require_ucs2length = __commonJS({
|
|
4672
|
-
"node_modules/ajv/dist/runtime/ucs2length.js"(
|
|
4667
|
+
"node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
|
|
4673
4668
|
"use strict";
|
|
4674
|
-
Object.defineProperty(
|
|
4669
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4675
4670
|
function ucs2length(str) {
|
|
4676
4671
|
const len = str.length;
|
|
4677
4672
|
let length = 0;
|
|
@@ -4688,16 +4683,16 @@ var require_ucs2length = __commonJS({
|
|
|
4688
4683
|
}
|
|
4689
4684
|
return length;
|
|
4690
4685
|
}
|
|
4691
|
-
|
|
4686
|
+
exports2.default = ucs2length;
|
|
4692
4687
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4693
4688
|
}
|
|
4694
4689
|
});
|
|
4695
4690
|
|
|
4696
4691
|
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4697
4692
|
var require_limitLength = __commonJS({
|
|
4698
|
-
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(
|
|
4693
|
+
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
|
|
4699
4694
|
"use strict";
|
|
4700
|
-
Object.defineProperty(
|
|
4695
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4701
4696
|
var codegen_1 = require_codegen();
|
|
4702
4697
|
var util_1 = require_util();
|
|
4703
4698
|
var ucs2length_1 = require_ucs2length();
|
|
@@ -4721,15 +4716,15 @@ var require_limitLength = __commonJS({
|
|
|
4721
4716
|
cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
|
|
4722
4717
|
}
|
|
4723
4718
|
};
|
|
4724
|
-
|
|
4719
|
+
exports2.default = def;
|
|
4725
4720
|
}
|
|
4726
4721
|
});
|
|
4727
4722
|
|
|
4728
4723
|
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4729
4724
|
var require_pattern = __commonJS({
|
|
4730
|
-
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(
|
|
4725
|
+
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
|
|
4731
4726
|
"use strict";
|
|
4732
|
-
Object.defineProperty(
|
|
4727
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4733
4728
|
var code_1 = require_code2();
|
|
4734
4729
|
var util_1 = require_util();
|
|
4735
4730
|
var codegen_1 = require_codegen();
|
|
@@ -4758,15 +4753,15 @@ var require_pattern = __commonJS({
|
|
|
4758
4753
|
}
|
|
4759
4754
|
}
|
|
4760
4755
|
};
|
|
4761
|
-
|
|
4756
|
+
exports2.default = def;
|
|
4762
4757
|
}
|
|
4763
4758
|
});
|
|
4764
4759
|
|
|
4765
4760
|
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4766
4761
|
var require_limitProperties = __commonJS({
|
|
4767
|
-
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(
|
|
4762
|
+
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
|
|
4768
4763
|
"use strict";
|
|
4769
|
-
Object.defineProperty(
|
|
4764
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4770
4765
|
var codegen_1 = require_codegen();
|
|
4771
4766
|
var error2 = {
|
|
4772
4767
|
message({ keyword, schemaCode }) {
|
|
@@ -4787,15 +4782,15 @@ var require_limitProperties = __commonJS({
|
|
|
4787
4782
|
cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
4788
4783
|
}
|
|
4789
4784
|
};
|
|
4790
|
-
|
|
4785
|
+
exports2.default = def;
|
|
4791
4786
|
}
|
|
4792
4787
|
});
|
|
4793
4788
|
|
|
4794
4789
|
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4795
4790
|
var require_required = __commonJS({
|
|
4796
|
-
"node_modules/ajv/dist/vocabularies/validation/required.js"(
|
|
4791
|
+
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
|
|
4797
4792
|
"use strict";
|
|
4798
|
-
Object.defineProperty(
|
|
4793
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4799
4794
|
var code_1 = require_code2();
|
|
4800
4795
|
var codegen_1 = require_codegen();
|
|
4801
4796
|
var util_1 = require_util();
|
|
@@ -4869,15 +4864,15 @@ var require_required = __commonJS({
|
|
|
4869
4864
|
}
|
|
4870
4865
|
}
|
|
4871
4866
|
};
|
|
4872
|
-
|
|
4867
|
+
exports2.default = def;
|
|
4873
4868
|
}
|
|
4874
4869
|
});
|
|
4875
4870
|
|
|
4876
4871
|
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4877
4872
|
var require_limitItems = __commonJS({
|
|
4878
|
-
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(
|
|
4873
|
+
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
|
|
4879
4874
|
"use strict";
|
|
4880
|
-
Object.defineProperty(
|
|
4875
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4881
4876
|
var codegen_1 = require_codegen();
|
|
4882
4877
|
var error2 = {
|
|
4883
4878
|
message({ keyword, schemaCode }) {
|
|
@@ -4898,26 +4893,26 @@ var require_limitItems = __commonJS({
|
|
|
4898
4893
|
cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
|
|
4899
4894
|
}
|
|
4900
4895
|
};
|
|
4901
|
-
|
|
4896
|
+
exports2.default = def;
|
|
4902
4897
|
}
|
|
4903
4898
|
});
|
|
4904
4899
|
|
|
4905
4900
|
// node_modules/ajv/dist/runtime/equal.js
|
|
4906
4901
|
var require_equal = __commonJS({
|
|
4907
|
-
"node_modules/ajv/dist/runtime/equal.js"(
|
|
4902
|
+
"node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
4908
4903
|
"use strict";
|
|
4909
|
-
Object.defineProperty(
|
|
4904
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4910
4905
|
var equal = require_fast_deep_equal();
|
|
4911
4906
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
4912
|
-
|
|
4907
|
+
exports2.default = equal;
|
|
4913
4908
|
}
|
|
4914
4909
|
});
|
|
4915
4910
|
|
|
4916
4911
|
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4917
4912
|
var require_uniqueItems = __commonJS({
|
|
4918
|
-
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(
|
|
4913
|
+
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
|
|
4919
4914
|
"use strict";
|
|
4920
|
-
Object.defineProperty(
|
|
4915
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4921
4916
|
var dataType_1 = require_dataType();
|
|
4922
4917
|
var codegen_1 = require_codegen();
|
|
4923
4918
|
var util_1 = require_util();
|
|
@@ -4976,15 +4971,15 @@ var require_uniqueItems = __commonJS({
|
|
|
4976
4971
|
}
|
|
4977
4972
|
}
|
|
4978
4973
|
};
|
|
4979
|
-
|
|
4974
|
+
exports2.default = def;
|
|
4980
4975
|
}
|
|
4981
4976
|
});
|
|
4982
4977
|
|
|
4983
4978
|
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4984
4979
|
var require_const = __commonJS({
|
|
4985
|
-
"node_modules/ajv/dist/vocabularies/validation/const.js"(
|
|
4980
|
+
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
|
|
4986
4981
|
"use strict";
|
|
4987
|
-
Object.defineProperty(
|
|
4982
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4988
4983
|
var codegen_1 = require_codegen();
|
|
4989
4984
|
var util_1 = require_util();
|
|
4990
4985
|
var equal_1 = require_equal();
|
|
@@ -5005,15 +5000,15 @@ var require_const = __commonJS({
|
|
|
5005
5000
|
}
|
|
5006
5001
|
}
|
|
5007
5002
|
};
|
|
5008
|
-
|
|
5003
|
+
exports2.default = def;
|
|
5009
5004
|
}
|
|
5010
5005
|
});
|
|
5011
5006
|
|
|
5012
5007
|
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5013
5008
|
var require_enum = __commonJS({
|
|
5014
|
-
"node_modules/ajv/dist/vocabularies/validation/enum.js"(
|
|
5009
|
+
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
|
|
5015
5010
|
"use strict";
|
|
5016
|
-
Object.defineProperty(
|
|
5011
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5017
5012
|
var codegen_1 = require_codegen();
|
|
5018
5013
|
var util_1 = require_util();
|
|
5019
5014
|
var equal_1 = require_equal();
|
|
@@ -5054,15 +5049,15 @@ var require_enum = __commonJS({
|
|
|
5054
5049
|
}
|
|
5055
5050
|
}
|
|
5056
5051
|
};
|
|
5057
|
-
|
|
5052
|
+
exports2.default = def;
|
|
5058
5053
|
}
|
|
5059
5054
|
});
|
|
5060
5055
|
|
|
5061
5056
|
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5062
5057
|
var require_validation = __commonJS({
|
|
5063
|
-
"node_modules/ajv/dist/vocabularies/validation/index.js"(
|
|
5058
|
+
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
|
|
5064
5059
|
"use strict";
|
|
5065
|
-
Object.defineProperty(
|
|
5060
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5066
5061
|
var limitNumber_1 = require_limitNumber();
|
|
5067
5062
|
var multipleOf_1 = require_multipleOf();
|
|
5068
5063
|
var limitLength_1 = require_limitLength();
|
|
@@ -5092,16 +5087,16 @@ var require_validation = __commonJS({
|
|
|
5092
5087
|
const_1.default,
|
|
5093
5088
|
enum_1.default
|
|
5094
5089
|
];
|
|
5095
|
-
|
|
5090
|
+
exports2.default = validation;
|
|
5096
5091
|
}
|
|
5097
5092
|
});
|
|
5098
5093
|
|
|
5099
5094
|
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5100
5095
|
var require_additionalItems = __commonJS({
|
|
5101
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(
|
|
5096
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
|
|
5102
5097
|
"use strict";
|
|
5103
|
-
Object.defineProperty(
|
|
5104
|
-
|
|
5098
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5099
|
+
exports2.validateAdditionalItems = void 0;
|
|
5105
5100
|
var codegen_1 = require_codegen();
|
|
5106
5101
|
var util_1 = require_util();
|
|
5107
5102
|
var error2 = {
|
|
@@ -5144,17 +5139,17 @@ var require_additionalItems = __commonJS({
|
|
|
5144
5139
|
});
|
|
5145
5140
|
}
|
|
5146
5141
|
}
|
|
5147
|
-
|
|
5148
|
-
|
|
5142
|
+
exports2.validateAdditionalItems = validateAdditionalItems;
|
|
5143
|
+
exports2.default = def;
|
|
5149
5144
|
}
|
|
5150
5145
|
});
|
|
5151
5146
|
|
|
5152
5147
|
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5153
5148
|
var require_items = __commonJS({
|
|
5154
|
-
"node_modules/ajv/dist/vocabularies/applicator/items.js"(
|
|
5149
|
+
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
|
|
5155
5150
|
"use strict";
|
|
5156
|
-
Object.defineProperty(
|
|
5157
|
-
|
|
5151
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5152
|
+
exports2.validateTuple = void 0;
|
|
5158
5153
|
var codegen_1 = require_codegen();
|
|
5159
5154
|
var util_1 = require_util();
|
|
5160
5155
|
var code_1 = require_code2();
|
|
@@ -5201,16 +5196,16 @@ var require_items = __commonJS({
|
|
|
5201
5196
|
}
|
|
5202
5197
|
}
|
|
5203
5198
|
}
|
|
5204
|
-
|
|
5205
|
-
|
|
5199
|
+
exports2.validateTuple = validateTuple;
|
|
5200
|
+
exports2.default = def;
|
|
5206
5201
|
}
|
|
5207
5202
|
});
|
|
5208
5203
|
|
|
5209
5204
|
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5210
5205
|
var require_prefixItems = __commonJS({
|
|
5211
|
-
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(
|
|
5206
|
+
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
|
|
5212
5207
|
"use strict";
|
|
5213
|
-
Object.defineProperty(
|
|
5208
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5214
5209
|
var items_1 = require_items();
|
|
5215
5210
|
var def = {
|
|
5216
5211
|
keyword: "prefixItems",
|
|
@@ -5219,15 +5214,15 @@ var require_prefixItems = __commonJS({
|
|
|
5219
5214
|
before: "uniqueItems",
|
|
5220
5215
|
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
5221
5216
|
};
|
|
5222
|
-
|
|
5217
|
+
exports2.default = def;
|
|
5223
5218
|
}
|
|
5224
5219
|
});
|
|
5225
5220
|
|
|
5226
5221
|
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5227
5222
|
var require_items2020 = __commonJS({
|
|
5228
|
-
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(
|
|
5223
|
+
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
|
|
5229
5224
|
"use strict";
|
|
5230
|
-
Object.defineProperty(
|
|
5225
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5231
5226
|
var codegen_1 = require_codegen();
|
|
5232
5227
|
var util_1 = require_util();
|
|
5233
5228
|
var code_1 = require_code2();
|
|
@@ -5254,15 +5249,15 @@ var require_items2020 = __commonJS({
|
|
|
5254
5249
|
cxt.ok((0, code_1.validateArray)(cxt));
|
|
5255
5250
|
}
|
|
5256
5251
|
};
|
|
5257
|
-
|
|
5252
|
+
exports2.default = def;
|
|
5258
5253
|
}
|
|
5259
5254
|
});
|
|
5260
5255
|
|
|
5261
5256
|
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5262
5257
|
var require_contains = __commonJS({
|
|
5263
|
-
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(
|
|
5258
|
+
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
|
|
5264
5259
|
"use strict";
|
|
5265
|
-
Object.defineProperty(
|
|
5260
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5266
5261
|
var codegen_1 = require_codegen();
|
|
5267
5262
|
var util_1 = require_util();
|
|
5268
5263
|
var error2 = {
|
|
@@ -5348,20 +5343,20 @@ var require_contains = __commonJS({
|
|
|
5348
5343
|
}
|
|
5349
5344
|
}
|
|
5350
5345
|
};
|
|
5351
|
-
|
|
5346
|
+
exports2.default = def;
|
|
5352
5347
|
}
|
|
5353
5348
|
});
|
|
5354
5349
|
|
|
5355
5350
|
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5356
5351
|
var require_dependencies = __commonJS({
|
|
5357
|
-
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(
|
|
5352
|
+
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
|
|
5358
5353
|
"use strict";
|
|
5359
|
-
Object.defineProperty(
|
|
5360
|
-
|
|
5354
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5355
|
+
exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
|
|
5361
5356
|
var codegen_1 = require_codegen();
|
|
5362
5357
|
var util_1 = require_util();
|
|
5363
5358
|
var code_1 = require_code2();
|
|
5364
|
-
|
|
5359
|
+
exports2.error = {
|
|
5365
5360
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
5366
5361
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
5367
5362
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -5376,7 +5371,7 @@ var require_dependencies = __commonJS({
|
|
|
5376
5371
|
keyword: "dependencies",
|
|
5377
5372
|
type: "object",
|
|
5378
5373
|
schemaType: "object",
|
|
5379
|
-
error:
|
|
5374
|
+
error: exports2.error,
|
|
5380
5375
|
code(cxt) {
|
|
5381
5376
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
5382
5377
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -5422,7 +5417,7 @@ var require_dependencies = __commonJS({
|
|
|
5422
5417
|
}
|
|
5423
5418
|
}
|
|
5424
5419
|
}
|
|
5425
|
-
|
|
5420
|
+
exports2.validatePropertyDeps = validatePropertyDeps;
|
|
5426
5421
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
5427
5422
|
const { gen, data, keyword, it } = cxt;
|
|
5428
5423
|
const valid = gen.name("valid");
|
|
@@ -5441,16 +5436,16 @@ var require_dependencies = __commonJS({
|
|
|
5441
5436
|
cxt.ok(valid);
|
|
5442
5437
|
}
|
|
5443
5438
|
}
|
|
5444
|
-
|
|
5445
|
-
|
|
5439
|
+
exports2.validateSchemaDeps = validateSchemaDeps;
|
|
5440
|
+
exports2.default = def;
|
|
5446
5441
|
}
|
|
5447
5442
|
});
|
|
5448
5443
|
|
|
5449
5444
|
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5450
5445
|
var require_propertyNames = __commonJS({
|
|
5451
|
-
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(
|
|
5446
|
+
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
|
|
5452
5447
|
"use strict";
|
|
5453
|
-
Object.defineProperty(
|
|
5448
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5454
5449
|
var codegen_1 = require_codegen();
|
|
5455
5450
|
var util_1 = require_util();
|
|
5456
5451
|
var error2 = {
|
|
@@ -5485,15 +5480,15 @@ var require_propertyNames = __commonJS({
|
|
|
5485
5480
|
cxt.ok(valid);
|
|
5486
5481
|
}
|
|
5487
5482
|
};
|
|
5488
|
-
|
|
5483
|
+
exports2.default = def;
|
|
5489
5484
|
}
|
|
5490
5485
|
});
|
|
5491
5486
|
|
|
5492
5487
|
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5493
5488
|
var require_additionalProperties = __commonJS({
|
|
5494
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(
|
|
5489
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
|
|
5495
5490
|
"use strict";
|
|
5496
|
-
Object.defineProperty(
|
|
5491
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5497
5492
|
var code_1 = require_code2();
|
|
5498
5493
|
var codegen_1 = require_codegen();
|
|
5499
5494
|
var names_1 = require_names();
|
|
@@ -5591,15 +5586,15 @@ var require_additionalProperties = __commonJS({
|
|
|
5591
5586
|
}
|
|
5592
5587
|
}
|
|
5593
5588
|
};
|
|
5594
|
-
|
|
5589
|
+
exports2.default = def;
|
|
5595
5590
|
}
|
|
5596
5591
|
});
|
|
5597
5592
|
|
|
5598
5593
|
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5599
5594
|
var require_properties = __commonJS({
|
|
5600
|
-
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(
|
|
5595
|
+
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
|
|
5601
5596
|
"use strict";
|
|
5602
|
-
Object.defineProperty(
|
|
5597
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5603
5598
|
var validate_1 = require_validate();
|
|
5604
5599
|
var code_1 = require_code2();
|
|
5605
5600
|
var util_1 = require_util();
|
|
@@ -5649,15 +5644,15 @@ var require_properties = __commonJS({
|
|
|
5649
5644
|
}
|
|
5650
5645
|
}
|
|
5651
5646
|
};
|
|
5652
|
-
|
|
5647
|
+
exports2.default = def;
|
|
5653
5648
|
}
|
|
5654
5649
|
});
|
|
5655
5650
|
|
|
5656
5651
|
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5657
5652
|
var require_patternProperties = __commonJS({
|
|
5658
|
-
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(
|
|
5653
|
+
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
|
|
5659
5654
|
"use strict";
|
|
5660
|
-
Object.defineProperty(
|
|
5655
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5661
5656
|
var code_1 = require_code2();
|
|
5662
5657
|
var codegen_1 = require_codegen();
|
|
5663
5658
|
var util_1 = require_util();
|
|
@@ -5723,15 +5718,15 @@ var require_patternProperties = __commonJS({
|
|
|
5723
5718
|
}
|
|
5724
5719
|
}
|
|
5725
5720
|
};
|
|
5726
|
-
|
|
5721
|
+
exports2.default = def;
|
|
5727
5722
|
}
|
|
5728
5723
|
});
|
|
5729
5724
|
|
|
5730
5725
|
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5731
5726
|
var require_not = __commonJS({
|
|
5732
|
-
"node_modules/ajv/dist/vocabularies/applicator/not.js"(
|
|
5727
|
+
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
|
|
5733
5728
|
"use strict";
|
|
5734
|
-
Object.defineProperty(
|
|
5729
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5735
5730
|
var util_1 = require_util();
|
|
5736
5731
|
var def = {
|
|
5737
5732
|
keyword: "not",
|
|
@@ -5754,15 +5749,15 @@ var require_not = __commonJS({
|
|
|
5754
5749
|
},
|
|
5755
5750
|
error: { message: "must NOT be valid" }
|
|
5756
5751
|
};
|
|
5757
|
-
|
|
5752
|
+
exports2.default = def;
|
|
5758
5753
|
}
|
|
5759
5754
|
});
|
|
5760
5755
|
|
|
5761
5756
|
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5762
5757
|
var require_anyOf = __commonJS({
|
|
5763
|
-
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(
|
|
5758
|
+
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
|
|
5764
5759
|
"use strict";
|
|
5765
|
-
Object.defineProperty(
|
|
5760
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5766
5761
|
var code_1 = require_code2();
|
|
5767
5762
|
var def = {
|
|
5768
5763
|
keyword: "anyOf",
|
|
@@ -5771,15 +5766,15 @@ var require_anyOf = __commonJS({
|
|
|
5771
5766
|
code: code_1.validateUnion,
|
|
5772
5767
|
error: { message: "must match a schema in anyOf" }
|
|
5773
5768
|
};
|
|
5774
|
-
|
|
5769
|
+
exports2.default = def;
|
|
5775
5770
|
}
|
|
5776
5771
|
});
|
|
5777
5772
|
|
|
5778
5773
|
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5779
5774
|
var require_oneOf = __commonJS({
|
|
5780
|
-
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(
|
|
5775
|
+
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
|
|
5781
5776
|
"use strict";
|
|
5782
|
-
Object.defineProperty(
|
|
5777
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5783
5778
|
var codegen_1 = require_codegen();
|
|
5784
5779
|
var util_1 = require_util();
|
|
5785
5780
|
var error2 = {
|
|
@@ -5829,15 +5824,15 @@ var require_oneOf = __commonJS({
|
|
|
5829
5824
|
}
|
|
5830
5825
|
}
|
|
5831
5826
|
};
|
|
5832
|
-
|
|
5827
|
+
exports2.default = def;
|
|
5833
5828
|
}
|
|
5834
5829
|
});
|
|
5835
5830
|
|
|
5836
5831
|
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5837
5832
|
var require_allOf = __commonJS({
|
|
5838
|
-
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(
|
|
5833
|
+
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
|
|
5839
5834
|
"use strict";
|
|
5840
|
-
Object.defineProperty(
|
|
5835
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5841
5836
|
var util_1 = require_util();
|
|
5842
5837
|
var def = {
|
|
5843
5838
|
keyword: "allOf",
|
|
@@ -5856,15 +5851,15 @@ var require_allOf = __commonJS({
|
|
|
5856
5851
|
});
|
|
5857
5852
|
}
|
|
5858
5853
|
};
|
|
5859
|
-
|
|
5854
|
+
exports2.default = def;
|
|
5860
5855
|
}
|
|
5861
5856
|
});
|
|
5862
5857
|
|
|
5863
5858
|
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5864
5859
|
var require_if = __commonJS({
|
|
5865
|
-
"node_modules/ajv/dist/vocabularies/applicator/if.js"(
|
|
5860
|
+
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
|
|
5866
5861
|
"use strict";
|
|
5867
|
-
Object.defineProperty(
|
|
5862
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5868
5863
|
var codegen_1 = require_codegen();
|
|
5869
5864
|
var util_1 = require_util();
|
|
5870
5865
|
var error2 = {
|
|
@@ -5925,15 +5920,15 @@ var require_if = __commonJS({
|
|
|
5925
5920
|
const schema = it.schema[keyword];
|
|
5926
5921
|
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
5927
5922
|
}
|
|
5928
|
-
|
|
5923
|
+
exports2.default = def;
|
|
5929
5924
|
}
|
|
5930
5925
|
});
|
|
5931
5926
|
|
|
5932
5927
|
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5933
5928
|
var require_thenElse = __commonJS({
|
|
5934
|
-
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(
|
|
5929
|
+
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
|
|
5935
5930
|
"use strict";
|
|
5936
|
-
Object.defineProperty(
|
|
5931
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5937
5932
|
var util_1 = require_util();
|
|
5938
5933
|
var def = {
|
|
5939
5934
|
keyword: ["then", "else"],
|
|
@@ -5943,15 +5938,15 @@ var require_thenElse = __commonJS({
|
|
|
5943
5938
|
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
5944
5939
|
}
|
|
5945
5940
|
};
|
|
5946
|
-
|
|
5941
|
+
exports2.default = def;
|
|
5947
5942
|
}
|
|
5948
5943
|
});
|
|
5949
5944
|
|
|
5950
5945
|
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5951
5946
|
var require_applicator = __commonJS({
|
|
5952
|
-
"node_modules/ajv/dist/vocabularies/applicator/index.js"(
|
|
5947
|
+
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
|
|
5953
5948
|
"use strict";
|
|
5954
|
-
Object.defineProperty(
|
|
5949
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5955
5950
|
var additionalItems_1 = require_additionalItems();
|
|
5956
5951
|
var prefixItems_1 = require_prefixItems();
|
|
5957
5952
|
var items_1 = require_items();
|
|
@@ -5991,15 +5986,15 @@ var require_applicator = __commonJS({
|
|
|
5991
5986
|
applicator.push(contains_1.default);
|
|
5992
5987
|
return applicator;
|
|
5993
5988
|
}
|
|
5994
|
-
|
|
5989
|
+
exports2.default = getApplicator;
|
|
5995
5990
|
}
|
|
5996
5991
|
});
|
|
5997
5992
|
|
|
5998
5993
|
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
5999
5994
|
var require_format = __commonJS({
|
|
6000
|
-
"node_modules/ajv/dist/vocabularies/format/format.js"(
|
|
5995
|
+
"node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
|
|
6001
5996
|
"use strict";
|
|
6002
|
-
Object.defineProperty(
|
|
5997
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6003
5998
|
var codegen_1 = require_codegen();
|
|
6004
5999
|
var error2 = {
|
|
6005
6000
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
@@ -6081,28 +6076,28 @@ var require_format = __commonJS({
|
|
|
6081
6076
|
}
|
|
6082
6077
|
}
|
|
6083
6078
|
};
|
|
6084
|
-
|
|
6079
|
+
exports2.default = def;
|
|
6085
6080
|
}
|
|
6086
6081
|
});
|
|
6087
6082
|
|
|
6088
6083
|
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
6089
6084
|
var require_format2 = __commonJS({
|
|
6090
|
-
"node_modules/ajv/dist/vocabularies/format/index.js"(
|
|
6085
|
+
"node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
|
|
6091
6086
|
"use strict";
|
|
6092
|
-
Object.defineProperty(
|
|
6087
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6093
6088
|
var format_1 = require_format();
|
|
6094
6089
|
var format2 = [format_1.default];
|
|
6095
|
-
|
|
6090
|
+
exports2.default = format2;
|
|
6096
6091
|
}
|
|
6097
6092
|
});
|
|
6098
6093
|
|
|
6099
6094
|
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
6100
6095
|
var require_metadata = __commonJS({
|
|
6101
|
-
"node_modules/ajv/dist/vocabularies/metadata.js"(
|
|
6096
|
+
"node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
|
|
6102
6097
|
"use strict";
|
|
6103
|
-
Object.defineProperty(
|
|
6104
|
-
|
|
6105
|
-
|
|
6098
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6099
|
+
exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
|
|
6100
|
+
exports2.metadataVocabulary = [
|
|
6106
6101
|
"title",
|
|
6107
6102
|
"description",
|
|
6108
6103
|
"default",
|
|
@@ -6111,7 +6106,7 @@ var require_metadata = __commonJS({
|
|
|
6111
6106
|
"writeOnly",
|
|
6112
6107
|
"examples"
|
|
6113
6108
|
];
|
|
6114
|
-
|
|
6109
|
+
exports2.contentVocabulary = [
|
|
6115
6110
|
"contentMediaType",
|
|
6116
6111
|
"contentEncoding",
|
|
6117
6112
|
"contentSchema"
|
|
@@ -6121,9 +6116,9 @@ var require_metadata = __commonJS({
|
|
|
6121
6116
|
|
|
6122
6117
|
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
6123
6118
|
var require_draft7 = __commonJS({
|
|
6124
|
-
"node_modules/ajv/dist/vocabularies/draft7.js"(
|
|
6119
|
+
"node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
|
|
6125
6120
|
"use strict";
|
|
6126
|
-
Object.defineProperty(
|
|
6121
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6127
6122
|
var core_1 = require_core2();
|
|
6128
6123
|
var validation_1 = require_validation();
|
|
6129
6124
|
var applicator_1 = require_applicator();
|
|
@@ -6137,29 +6132,29 @@ var require_draft7 = __commonJS({
|
|
|
6137
6132
|
metadata_1.metadataVocabulary,
|
|
6138
6133
|
metadata_1.contentVocabulary
|
|
6139
6134
|
];
|
|
6140
|
-
|
|
6135
|
+
exports2.default = draft7Vocabularies;
|
|
6141
6136
|
}
|
|
6142
6137
|
});
|
|
6143
6138
|
|
|
6144
6139
|
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6145
6140
|
var require_types = __commonJS({
|
|
6146
|
-
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(
|
|
6141
|
+
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
|
|
6147
6142
|
"use strict";
|
|
6148
|
-
Object.defineProperty(
|
|
6149
|
-
|
|
6143
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6144
|
+
exports2.DiscrError = void 0;
|
|
6150
6145
|
var DiscrError;
|
|
6151
6146
|
(function(DiscrError2) {
|
|
6152
6147
|
DiscrError2["Tag"] = "tag";
|
|
6153
6148
|
DiscrError2["Mapping"] = "mapping";
|
|
6154
|
-
})(DiscrError || (
|
|
6149
|
+
})(DiscrError || (exports2.DiscrError = DiscrError = {}));
|
|
6155
6150
|
}
|
|
6156
6151
|
});
|
|
6157
6152
|
|
|
6158
6153
|
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6159
6154
|
var require_discriminator = __commonJS({
|
|
6160
|
-
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(
|
|
6155
|
+
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
|
|
6161
6156
|
"use strict";
|
|
6162
|
-
Object.defineProperty(
|
|
6157
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6163
6158
|
var codegen_1 = require_codegen();
|
|
6164
6159
|
var types_1 = require_types();
|
|
6165
6160
|
var compile_1 = require_compile();
|
|
@@ -6256,14 +6251,14 @@ var require_discriminator = __commonJS({
|
|
|
6256
6251
|
}
|
|
6257
6252
|
}
|
|
6258
6253
|
};
|
|
6259
|
-
|
|
6254
|
+
exports2.default = def;
|
|
6260
6255
|
}
|
|
6261
6256
|
});
|
|
6262
6257
|
|
|
6263
6258
|
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6264
6259
|
var require_json_schema_draft_07 = __commonJS({
|
|
6265
|
-
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(
|
|
6266
|
-
|
|
6260
|
+
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
|
|
6261
|
+
module2.exports = {
|
|
6267
6262
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6268
6263
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
6269
6264
|
title: "Core schema meta-schema",
|
|
@@ -6419,10 +6414,10 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6419
6414
|
|
|
6420
6415
|
// node_modules/ajv/dist/ajv.js
|
|
6421
6416
|
var require_ajv = __commonJS({
|
|
6422
|
-
"node_modules/ajv/dist/ajv.js"(
|
|
6417
|
+
"node_modules/ajv/dist/ajv.js"(exports2, module2) {
|
|
6423
6418
|
"use strict";
|
|
6424
|
-
Object.defineProperty(
|
|
6425
|
-
|
|
6419
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6420
|
+
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
|
|
6426
6421
|
var core_1 = require_core();
|
|
6427
6422
|
var draft7_1 = require_draft7();
|
|
6428
6423
|
var discriminator_1 = require_discriminator();
|
|
@@ -6448,40 +6443,40 @@ var require_ajv = __commonJS({
|
|
|
6448
6443
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6449
6444
|
}
|
|
6450
6445
|
};
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
Object.defineProperty(
|
|
6455
|
-
|
|
6446
|
+
exports2.Ajv = Ajv2;
|
|
6447
|
+
module2.exports = exports2 = Ajv2;
|
|
6448
|
+
module2.exports.Ajv = Ajv2;
|
|
6449
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6450
|
+
exports2.default = Ajv2;
|
|
6456
6451
|
var validate_1 = require_validate();
|
|
6457
|
-
Object.defineProperty(
|
|
6452
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
6458
6453
|
return validate_1.KeywordCxt;
|
|
6459
6454
|
} });
|
|
6460
6455
|
var codegen_1 = require_codegen();
|
|
6461
|
-
Object.defineProperty(
|
|
6456
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
6462
6457
|
return codegen_1._;
|
|
6463
6458
|
} });
|
|
6464
|
-
Object.defineProperty(
|
|
6459
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
6465
6460
|
return codegen_1.str;
|
|
6466
6461
|
} });
|
|
6467
|
-
Object.defineProperty(
|
|
6462
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
6468
6463
|
return codegen_1.stringify;
|
|
6469
6464
|
} });
|
|
6470
|
-
Object.defineProperty(
|
|
6465
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
6471
6466
|
return codegen_1.nil;
|
|
6472
6467
|
} });
|
|
6473
|
-
Object.defineProperty(
|
|
6468
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
6474
6469
|
return codegen_1.Name;
|
|
6475
6470
|
} });
|
|
6476
|
-
Object.defineProperty(
|
|
6471
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
6477
6472
|
return codegen_1.CodeGen;
|
|
6478
6473
|
} });
|
|
6479
6474
|
var validation_error_1 = require_validation_error();
|
|
6480
|
-
Object.defineProperty(
|
|
6475
|
+
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: function() {
|
|
6481
6476
|
return validation_error_1.default;
|
|
6482
6477
|
} });
|
|
6483
6478
|
var ref_error_1 = require_ref_error();
|
|
6484
|
-
Object.defineProperty(
|
|
6479
|
+
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: function() {
|
|
6485
6480
|
return ref_error_1.default;
|
|
6486
6481
|
} });
|
|
6487
6482
|
}
|
|
@@ -6489,14 +6484,14 @@ var require_ajv = __commonJS({
|
|
|
6489
6484
|
|
|
6490
6485
|
// node_modules/ajv-formats/dist/formats.js
|
|
6491
6486
|
var require_formats = __commonJS({
|
|
6492
|
-
"node_modules/ajv-formats/dist/formats.js"(
|
|
6487
|
+
"node_modules/ajv-formats/dist/formats.js"(exports2) {
|
|
6493
6488
|
"use strict";
|
|
6494
|
-
Object.defineProperty(
|
|
6495
|
-
|
|
6489
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6490
|
+
exports2.formatNames = exports2.fastFormats = exports2.fullFormats = void 0;
|
|
6496
6491
|
function fmtDef(validate, compare) {
|
|
6497
6492
|
return { validate, compare };
|
|
6498
6493
|
}
|
|
6499
|
-
|
|
6494
|
+
exports2.fullFormats = {
|
|
6500
6495
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
6501
6496
|
date: fmtDef(date3, compareDate),
|
|
6502
6497
|
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -6543,8 +6538,8 @@ var require_formats = __commonJS({
|
|
|
6543
6538
|
// unchecked string payload
|
|
6544
6539
|
binary: true
|
|
6545
6540
|
};
|
|
6546
|
-
|
|
6547
|
-
...
|
|
6541
|
+
exports2.fastFormats = {
|
|
6542
|
+
...exports2.fullFormats,
|
|
6548
6543
|
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
6549
6544
|
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
6550
6545
|
"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),
|
|
@@ -6558,7 +6553,7 @@ var require_formats = __commonJS({
|
|
|
6558
6553
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
6559
6554
|
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
|
|
6560
6555
|
};
|
|
6561
|
-
|
|
6556
|
+
exports2.formatNames = Object.keys(exports2.fullFormats);
|
|
6562
6557
|
function isLeapYear(year) {
|
|
6563
6558
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6564
6559
|
}
|
|
@@ -6692,10 +6687,10 @@ var require_formats = __commonJS({
|
|
|
6692
6687
|
|
|
6693
6688
|
// node_modules/ajv-formats/dist/limit.js
|
|
6694
6689
|
var require_limit = __commonJS({
|
|
6695
|
-
"node_modules/ajv-formats/dist/limit.js"(
|
|
6690
|
+
"node_modules/ajv-formats/dist/limit.js"(exports2) {
|
|
6696
6691
|
"use strict";
|
|
6697
|
-
Object.defineProperty(
|
|
6698
|
-
|
|
6692
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6693
|
+
exports2.formatLimitDefinition = void 0;
|
|
6699
6694
|
var ajv_1 = require_ajv();
|
|
6700
6695
|
var codegen_1 = require_codegen();
|
|
6701
6696
|
var ops = codegen_1.operators;
|
|
@@ -6709,7 +6704,7 @@ var require_limit = __commonJS({
|
|
|
6709
6704
|
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
6710
6705
|
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
|
|
6711
6706
|
};
|
|
6712
|
-
|
|
6707
|
+
exports2.formatLimitDefinition = {
|
|
6713
6708
|
keyword: Object.keys(KWDs),
|
|
6714
6709
|
type: "string",
|
|
6715
6710
|
schemaType: "string",
|
|
@@ -6755,18 +6750,18 @@ var require_limit = __commonJS({
|
|
|
6755
6750
|
dependencies: ["format"]
|
|
6756
6751
|
};
|
|
6757
6752
|
var formatLimitPlugin = (ajv) => {
|
|
6758
|
-
ajv.addKeyword(
|
|
6753
|
+
ajv.addKeyword(exports2.formatLimitDefinition);
|
|
6759
6754
|
return ajv;
|
|
6760
6755
|
};
|
|
6761
|
-
|
|
6756
|
+
exports2.default = formatLimitPlugin;
|
|
6762
6757
|
}
|
|
6763
6758
|
});
|
|
6764
6759
|
|
|
6765
6760
|
// node_modules/ajv-formats/dist/index.js
|
|
6766
6761
|
var require_dist = __commonJS({
|
|
6767
|
-
"node_modules/ajv-formats/dist/index.js"(
|
|
6762
|
+
"node_modules/ajv-formats/dist/index.js"(exports2, module2) {
|
|
6768
6763
|
"use strict";
|
|
6769
|
-
Object.defineProperty(
|
|
6764
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6770
6765
|
var formats_1 = require_formats();
|
|
6771
6766
|
var limit_1 = require_limit();
|
|
6772
6767
|
var codegen_1 = require_codegen();
|
|
@@ -6798,19 +6793,19 @@ var require_dist = __commonJS({
|
|
|
6798
6793
|
for (const f of list)
|
|
6799
6794
|
ajv.addFormat(f, fs9[f]);
|
|
6800
6795
|
}
|
|
6801
|
-
|
|
6802
|
-
Object.defineProperty(
|
|
6803
|
-
|
|
6796
|
+
module2.exports = exports2 = formatsPlugin;
|
|
6797
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6798
|
+
exports2.default = formatsPlugin;
|
|
6804
6799
|
}
|
|
6805
6800
|
});
|
|
6806
6801
|
|
|
6807
6802
|
// node_modules/isexe/windows.js
|
|
6808
6803
|
var require_windows = __commonJS({
|
|
6809
|
-
"node_modules/isexe/windows.js"(
|
|
6804
|
+
"node_modules/isexe/windows.js"(exports2, module2) {
|
|
6810
6805
|
"use strict";
|
|
6811
|
-
|
|
6806
|
+
module2.exports = isexe;
|
|
6812
6807
|
isexe.sync = sync;
|
|
6813
|
-
var fs9 =
|
|
6808
|
+
var fs9 = require("fs");
|
|
6814
6809
|
function checkPathExt(path12, options) {
|
|
6815
6810
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
6816
6811
|
if (!pathext) {
|
|
@@ -6847,11 +6842,11 @@ var require_windows = __commonJS({
|
|
|
6847
6842
|
|
|
6848
6843
|
// node_modules/isexe/mode.js
|
|
6849
6844
|
var require_mode = __commonJS({
|
|
6850
|
-
"node_modules/isexe/mode.js"(
|
|
6845
|
+
"node_modules/isexe/mode.js"(exports2, module2) {
|
|
6851
6846
|
"use strict";
|
|
6852
|
-
|
|
6847
|
+
module2.exports = isexe;
|
|
6853
6848
|
isexe.sync = sync;
|
|
6854
|
-
var fs9 =
|
|
6849
|
+
var fs9 = require("fs");
|
|
6855
6850
|
function isexe(path12, options, cb) {
|
|
6856
6851
|
fs9.stat(path12, function(er, stat) {
|
|
6857
6852
|
cb(er, er ? false : checkStat(stat, options));
|
|
@@ -6881,16 +6876,16 @@ var require_mode = __commonJS({
|
|
|
6881
6876
|
|
|
6882
6877
|
// node_modules/isexe/index.js
|
|
6883
6878
|
var require_isexe = __commonJS({
|
|
6884
|
-
"node_modules/isexe/index.js"(
|
|
6879
|
+
"node_modules/isexe/index.js"(exports2, module2) {
|
|
6885
6880
|
"use strict";
|
|
6886
|
-
var fs9 =
|
|
6881
|
+
var fs9 = require("fs");
|
|
6887
6882
|
var core;
|
|
6888
6883
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
6889
6884
|
core = require_windows();
|
|
6890
6885
|
} else {
|
|
6891
6886
|
core = require_mode();
|
|
6892
6887
|
}
|
|
6893
|
-
|
|
6888
|
+
module2.exports = isexe;
|
|
6894
6889
|
isexe.sync = sync;
|
|
6895
6890
|
function isexe(path12, options, cb) {
|
|
6896
6891
|
if (typeof options === "function") {
|
|
@@ -6937,10 +6932,10 @@ var require_isexe = __commonJS({
|
|
|
6937
6932
|
|
|
6938
6933
|
// node_modules/which/which.js
|
|
6939
6934
|
var require_which = __commonJS({
|
|
6940
|
-
"node_modules/which/which.js"(
|
|
6935
|
+
"node_modules/which/which.js"(exports2, module2) {
|
|
6941
6936
|
"use strict";
|
|
6942
6937
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
6943
|
-
var path12 =
|
|
6938
|
+
var path12 = require("path");
|
|
6944
6939
|
var COLON = isWindows ? ";" : ":";
|
|
6945
6940
|
var isexe = require_isexe();
|
|
6946
6941
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -7027,14 +7022,14 @@ var require_which = __commonJS({
|
|
|
7027
7022
|
return null;
|
|
7028
7023
|
throw getNotFoundError(cmd);
|
|
7029
7024
|
};
|
|
7030
|
-
|
|
7025
|
+
module2.exports = which;
|
|
7031
7026
|
which.sync = whichSync;
|
|
7032
7027
|
}
|
|
7033
7028
|
});
|
|
7034
7029
|
|
|
7035
7030
|
// node_modules/path-key/index.js
|
|
7036
7031
|
var require_path_key = __commonJS({
|
|
7037
|
-
"node_modules/path-key/index.js"(
|
|
7032
|
+
"node_modules/path-key/index.js"(exports2, module2) {
|
|
7038
7033
|
"use strict";
|
|
7039
7034
|
var pathKey2 = (options = {}) => {
|
|
7040
7035
|
const environment = options.env || process.env;
|
|
@@ -7044,16 +7039,16 @@ var require_path_key = __commonJS({
|
|
|
7044
7039
|
}
|
|
7045
7040
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
7046
7041
|
};
|
|
7047
|
-
|
|
7048
|
-
|
|
7042
|
+
module2.exports = pathKey2;
|
|
7043
|
+
module2.exports.default = pathKey2;
|
|
7049
7044
|
}
|
|
7050
7045
|
});
|
|
7051
7046
|
|
|
7052
7047
|
// node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
7053
7048
|
var require_resolveCommand = __commonJS({
|
|
7054
|
-
"node_modules/cross-spawn/lib/util/resolveCommand.js"(
|
|
7049
|
+
"node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
7055
7050
|
"use strict";
|
|
7056
|
-
var path12 =
|
|
7051
|
+
var path12 = require("path");
|
|
7057
7052
|
var which = require_which();
|
|
7058
7053
|
var getPathKey = require_path_key();
|
|
7059
7054
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -7087,13 +7082,13 @@ var require_resolveCommand = __commonJS({
|
|
|
7087
7082
|
function resolveCommand(parsed) {
|
|
7088
7083
|
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
7089
7084
|
}
|
|
7090
|
-
|
|
7085
|
+
module2.exports = resolveCommand;
|
|
7091
7086
|
}
|
|
7092
7087
|
});
|
|
7093
7088
|
|
|
7094
7089
|
// node_modules/cross-spawn/lib/util/escape.js
|
|
7095
7090
|
var require_escape = __commonJS({
|
|
7096
|
-
"node_modules/cross-spawn/lib/util/escape.js"(
|
|
7091
|
+
"node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
7097
7092
|
"use strict";
|
|
7098
7093
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
7099
7094
|
function escapeCommand(arg) {
|
|
@@ -7111,25 +7106,25 @@ var require_escape = __commonJS({
|
|
|
7111
7106
|
}
|
|
7112
7107
|
return arg;
|
|
7113
7108
|
}
|
|
7114
|
-
|
|
7115
|
-
|
|
7109
|
+
module2.exports.command = escapeCommand;
|
|
7110
|
+
module2.exports.argument = escapeArgument;
|
|
7116
7111
|
}
|
|
7117
7112
|
});
|
|
7118
7113
|
|
|
7119
7114
|
// node_modules/shebang-regex/index.js
|
|
7120
7115
|
var require_shebang_regex = __commonJS({
|
|
7121
|
-
"node_modules/shebang-regex/index.js"(
|
|
7116
|
+
"node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
7122
7117
|
"use strict";
|
|
7123
|
-
|
|
7118
|
+
module2.exports = /^#!(.*)/;
|
|
7124
7119
|
}
|
|
7125
7120
|
});
|
|
7126
7121
|
|
|
7127
7122
|
// node_modules/shebang-command/index.js
|
|
7128
7123
|
var require_shebang_command = __commonJS({
|
|
7129
|
-
"node_modules/shebang-command/index.js"(
|
|
7124
|
+
"node_modules/shebang-command/index.js"(exports2, module2) {
|
|
7130
7125
|
"use strict";
|
|
7131
7126
|
var shebangRegex = require_shebang_regex();
|
|
7132
|
-
|
|
7127
|
+
module2.exports = (string3 = "") => {
|
|
7133
7128
|
const match = string3.match(shebangRegex);
|
|
7134
7129
|
if (!match) {
|
|
7135
7130
|
return null;
|
|
@@ -7146,9 +7141,9 @@ var require_shebang_command = __commonJS({
|
|
|
7146
7141
|
|
|
7147
7142
|
// node_modules/cross-spawn/lib/util/readShebang.js
|
|
7148
7143
|
var require_readShebang = __commonJS({
|
|
7149
|
-
"node_modules/cross-spawn/lib/util/readShebang.js"(
|
|
7144
|
+
"node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
7150
7145
|
"use strict";
|
|
7151
|
-
var fs9 =
|
|
7146
|
+
var fs9 = require("fs");
|
|
7152
7147
|
var shebangCommand = require_shebang_command();
|
|
7153
7148
|
function readShebang(command) {
|
|
7154
7149
|
const size = 150;
|
|
@@ -7162,15 +7157,15 @@ var require_readShebang = __commonJS({
|
|
|
7162
7157
|
}
|
|
7163
7158
|
return shebangCommand(buffer.toString());
|
|
7164
7159
|
}
|
|
7165
|
-
|
|
7160
|
+
module2.exports = readShebang;
|
|
7166
7161
|
}
|
|
7167
7162
|
});
|
|
7168
7163
|
|
|
7169
7164
|
// node_modules/cross-spawn/lib/parse.js
|
|
7170
7165
|
var require_parse = __commonJS({
|
|
7171
|
-
"node_modules/cross-spawn/lib/parse.js"(
|
|
7166
|
+
"node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
7172
7167
|
"use strict";
|
|
7173
|
-
var path12 =
|
|
7168
|
+
var path12 = require("path");
|
|
7174
7169
|
var resolveCommand = require_resolveCommand();
|
|
7175
7170
|
var escape2 = require_escape();
|
|
7176
7171
|
var readShebang = require_readShebang();
|
|
@@ -7224,13 +7219,13 @@ var require_parse = __commonJS({
|
|
|
7224
7219
|
};
|
|
7225
7220
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
7226
7221
|
}
|
|
7227
|
-
|
|
7222
|
+
module2.exports = parse3;
|
|
7228
7223
|
}
|
|
7229
7224
|
});
|
|
7230
7225
|
|
|
7231
7226
|
// node_modules/cross-spawn/lib/enoent.js
|
|
7232
7227
|
var require_enoent = __commonJS({
|
|
7233
|
-
"node_modules/cross-spawn/lib/enoent.js"(
|
|
7228
|
+
"node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
7234
7229
|
"use strict";
|
|
7235
7230
|
var isWin = process.platform === "win32";
|
|
7236
7231
|
function notFoundError(original, syscall) {
|
|
@@ -7269,7 +7264,7 @@ var require_enoent = __commonJS({
|
|
|
7269
7264
|
}
|
|
7270
7265
|
return null;
|
|
7271
7266
|
}
|
|
7272
|
-
|
|
7267
|
+
module2.exports = {
|
|
7273
7268
|
hookChildProcess,
|
|
7274
7269
|
verifyENOENT,
|
|
7275
7270
|
verifyENOENTSync,
|
|
@@ -7280,9 +7275,9 @@ var require_enoent = __commonJS({
|
|
|
7280
7275
|
|
|
7281
7276
|
// node_modules/cross-spawn/index.js
|
|
7282
7277
|
var require_cross_spawn = __commonJS({
|
|
7283
|
-
"node_modules/cross-spawn/index.js"(
|
|
7278
|
+
"node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
7284
7279
|
"use strict";
|
|
7285
|
-
var cp =
|
|
7280
|
+
var cp = require("child_process");
|
|
7286
7281
|
var parse3 = require_parse();
|
|
7287
7282
|
var enoent = require_enoent();
|
|
7288
7283
|
function spawn2(command, args, options) {
|
|
@@ -7297,11 +7292,11 @@ var require_cross_spawn = __commonJS({
|
|
|
7297
7292
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
7298
7293
|
return result;
|
|
7299
7294
|
}
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7295
|
+
module2.exports = spawn2;
|
|
7296
|
+
module2.exports.spawn = spawn2;
|
|
7297
|
+
module2.exports.sync = spawnSync2;
|
|
7298
|
+
module2.exports._parse = parse3;
|
|
7299
|
+
module2.exports._enoent = enoent;
|
|
7305
7300
|
}
|
|
7306
7301
|
});
|
|
7307
7302
|
|
|
@@ -21413,7 +21408,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
21413
21408
|
};
|
|
21414
21409
|
|
|
21415
21410
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21416
|
-
|
|
21411
|
+
var import_node_process = __toESM(require("process"), 1);
|
|
21417
21412
|
|
|
21418
21413
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
21419
21414
|
var ReadBuffer = class {
|
|
@@ -21445,7 +21440,7 @@ function serializeMessage(message) {
|
|
|
21445
21440
|
|
|
21446
21441
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21447
21442
|
var StdioServerTransport = class {
|
|
21448
|
-
constructor(_stdin =
|
|
21443
|
+
constructor(_stdin = import_node_process.default.stdin, _stdout = import_node_process.default.stdout) {
|
|
21449
21444
|
this._stdin = _stdin;
|
|
21450
21445
|
this._stdout = _stdout;
|
|
21451
21446
|
this._readBuffer = new ReadBuffer();
|
|
@@ -21815,9 +21810,9 @@ function createApiClient(config2, opts) {
|
|
|
21815
21810
|
}
|
|
21816
21811
|
|
|
21817
21812
|
// node_modules/@remixhq/core/dist/chunk-EVWDYCBL.js
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
|
|
21813
|
+
var import_promises = __toESM(require("fs/promises"), 1);
|
|
21814
|
+
var import_os = __toESM(require("os"), 1);
|
|
21815
|
+
var import_path = __toESM(require("path"), 1);
|
|
21821
21816
|
|
|
21822
21817
|
// node_modules/tslib/tslib.es6.mjs
|
|
21823
21818
|
function __rest(s, e) {
|
|
@@ -41476,7 +41471,7 @@ var storedSessionSchema = external_exports.object({
|
|
|
41476
41471
|
function xdgConfigHome() {
|
|
41477
41472
|
const value = process.env.XDG_CONFIG_HOME;
|
|
41478
41473
|
if (typeof value === "string" && value.trim()) return value;
|
|
41479
|
-
return
|
|
41474
|
+
return import_path.default.join(import_os.default.homedir(), ".config");
|
|
41480
41475
|
}
|
|
41481
41476
|
async function maybeLoadKeytar() {
|
|
41482
41477
|
try {
|
|
@@ -41494,22 +41489,22 @@ async function maybeLoadKeytar() {
|
|
|
41494
41489
|
return null;
|
|
41495
41490
|
}
|
|
41496
41491
|
async function ensurePathPermissions(filePath) {
|
|
41497
|
-
const dir =
|
|
41498
|
-
await
|
|
41492
|
+
const dir = import_path.default.dirname(filePath);
|
|
41493
|
+
await import_promises.default.mkdir(dir, { recursive: true });
|
|
41499
41494
|
try {
|
|
41500
|
-
await
|
|
41495
|
+
await import_promises.default.chmod(dir, 448);
|
|
41501
41496
|
} catch {
|
|
41502
41497
|
}
|
|
41503
41498
|
try {
|
|
41504
|
-
await
|
|
41499
|
+
await import_promises.default.chmod(filePath, 384);
|
|
41505
41500
|
} catch {
|
|
41506
41501
|
}
|
|
41507
41502
|
}
|
|
41508
41503
|
async function writeJsonAtomic(filePath, value) {
|
|
41509
|
-
await
|
|
41504
|
+
await import_promises.default.mkdir(import_path.default.dirname(filePath), { recursive: true });
|
|
41510
41505
|
const tmpPath = `${filePath}.tmp-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
41511
|
-
await
|
|
41512
|
-
await
|
|
41506
|
+
await import_promises.default.writeFile(tmpPath, JSON.stringify(value, null, 2) + "\n", "utf8");
|
|
41507
|
+
await import_promises.default.rename(tmpPath, filePath);
|
|
41513
41508
|
}
|
|
41514
41509
|
async function writeSessionFileFallback(filePath, session) {
|
|
41515
41510
|
await writeJsonAtomic(filePath, session);
|
|
@@ -41518,7 +41513,7 @@ async function writeSessionFileFallback(filePath, session) {
|
|
|
41518
41513
|
function createLocalSessionStore(params) {
|
|
41519
41514
|
const service = params?.service?.trim() || "remix-cli";
|
|
41520
41515
|
const account = params?.account?.trim() || "default";
|
|
41521
|
-
const filePath = params?.filePath?.trim() ||
|
|
41516
|
+
const filePath = params?.filePath?.trim() || import_path.default.join(xdgConfigHome(), "remix", "session.json");
|
|
41522
41517
|
return {
|
|
41523
41518
|
async getSession() {
|
|
41524
41519
|
const keytar = await maybeLoadKeytar();
|
|
@@ -41532,7 +41527,7 @@ function createLocalSessionStore(params) {
|
|
|
41532
41527
|
return null;
|
|
41533
41528
|
}
|
|
41534
41529
|
}
|
|
41535
|
-
const raw = await
|
|
41530
|
+
const raw = await import_promises.default.readFile(filePath, "utf8").catch(() => null);
|
|
41536
41531
|
if (!raw) return null;
|
|
41537
41532
|
try {
|
|
41538
41533
|
const parsed = storedSessionSchema.safeParse(JSON.parse(raw));
|
|
@@ -41710,16 +41705,16 @@ var REMIX_ERROR_CODES = {
|
|
|
41710
41705
|
};
|
|
41711
41706
|
|
|
41712
41707
|
// node_modules/@remixhq/mcp/dist/index.js
|
|
41713
|
-
|
|
41708
|
+
var import_path11 = __toESM(require("path"), 1);
|
|
41714
41709
|
|
|
41715
41710
|
// node_modules/@remixhq/core/dist/chunk-FAZUMWBS.js
|
|
41716
|
-
|
|
41717
|
-
|
|
41718
|
-
|
|
41719
|
-
|
|
41711
|
+
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
41712
|
+
var import_path2 = __toESM(require("path"), 1);
|
|
41713
|
+
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
41714
|
+
var import_path3 = __toESM(require("path"), 1);
|
|
41720
41715
|
async function reserveDirectory(targetDir) {
|
|
41721
41716
|
try {
|
|
41722
|
-
await
|
|
41717
|
+
await import_promises3.default.mkdir(targetDir);
|
|
41723
41718
|
return targetDir;
|
|
41724
41719
|
} catch (error2) {
|
|
41725
41720
|
if (error2?.code === "EEXIST") {
|
|
@@ -41732,12 +41727,12 @@ async function reserveDirectory(targetDir) {
|
|
|
41732
41727
|
}
|
|
41733
41728
|
}
|
|
41734
41729
|
async function reserveAvailableDirPath(preferredDir) {
|
|
41735
|
-
const parent =
|
|
41736
|
-
const base =
|
|
41730
|
+
const parent = import_path3.default.dirname(preferredDir);
|
|
41731
|
+
const base = import_path3.default.basename(preferredDir);
|
|
41737
41732
|
for (let i2 = 1; i2 <= 1e3; i2 += 1) {
|
|
41738
|
-
const candidate = i2 === 1 ? preferredDir :
|
|
41733
|
+
const candidate = i2 === 1 ? preferredDir : import_path3.default.join(parent, `${base}-${i2}`);
|
|
41739
41734
|
try {
|
|
41740
|
-
await
|
|
41735
|
+
await import_promises3.default.mkdir(candidate);
|
|
41741
41736
|
return candidate;
|
|
41742
41737
|
} catch (error2) {
|
|
41743
41738
|
if (error2?.code === "EEXIST") continue;
|
|
@@ -41750,19 +41745,19 @@ async function reserveAvailableDirPath(preferredDir) {
|
|
|
41750
41745
|
});
|
|
41751
41746
|
}
|
|
41752
41747
|
async function writeJsonAtomic2(filePath, value) {
|
|
41753
|
-
const dir =
|
|
41754
|
-
await
|
|
41748
|
+
const dir = import_path3.default.dirname(filePath);
|
|
41749
|
+
await import_promises3.default.mkdir(dir, { recursive: true });
|
|
41755
41750
|
const tmp = `${filePath}.tmp-${Date.now()}`;
|
|
41756
|
-
await
|
|
41751
|
+
await import_promises3.default.writeFile(tmp, `${JSON.stringify(value, null, 2)}
|
|
41757
41752
|
`, "utf8");
|
|
41758
|
-
await
|
|
41753
|
+
await import_promises3.default.rename(tmp, filePath);
|
|
41759
41754
|
}
|
|
41760
41755
|
function getCollabBindingPath(repoRoot) {
|
|
41761
|
-
return
|
|
41756
|
+
return import_path2.default.join(repoRoot, ".remix", "config.json");
|
|
41762
41757
|
}
|
|
41763
41758
|
async function readCollabBinding(repoRoot) {
|
|
41764
41759
|
try {
|
|
41765
|
-
const raw = await
|
|
41760
|
+
const raw = await import_promises2.default.readFile(getCollabBindingPath(repoRoot), "utf8");
|
|
41766
41761
|
const parsed = JSON.parse(raw);
|
|
41767
41762
|
if (parsed?.schemaVersion !== 1) return null;
|
|
41768
41763
|
if (!parsed.projectId || !parsed.currentAppId || !parsed.upstreamAppId) return null;
|
|
@@ -41791,10 +41786,10 @@ async function writeCollabBinding(repoRoot, binding) {
|
|
|
41791
41786
|
}
|
|
41792
41787
|
|
|
41793
41788
|
// node_modules/@remixhq/core/dist/chunk-UGKPOCN5.js
|
|
41794
|
-
|
|
41795
|
-
|
|
41796
|
-
|
|
41797
|
-
|
|
41789
|
+
var import_promises15 = __toESM(require("fs/promises"), 1);
|
|
41790
|
+
var import_crypto = require("crypto");
|
|
41791
|
+
var import_os2 = __toESM(require("os"), 1);
|
|
41792
|
+
var import_path4 = __toESM(require("path"), 1);
|
|
41798
41793
|
|
|
41799
41794
|
// node_modules/is-plain-obj/index.js
|
|
41800
41795
|
function isPlainObject4(value) {
|
|
@@ -41806,7 +41801,7 @@ function isPlainObject4(value) {
|
|
|
41806
41801
|
}
|
|
41807
41802
|
|
|
41808
41803
|
// node_modules/execa/lib/arguments/file-url.js
|
|
41809
|
-
|
|
41804
|
+
var import_node_url = require("url");
|
|
41810
41805
|
var safeNormalizeFileUrl = (file, name) => {
|
|
41811
41806
|
const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
|
|
41812
41807
|
if (typeof fileString !== "string") {
|
|
@@ -41816,7 +41811,7 @@ var safeNormalizeFileUrl = (file, name) => {
|
|
|
41816
41811
|
};
|
|
41817
41812
|
var normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
|
|
41818
41813
|
var isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
|
|
41819
|
-
var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
|
|
41814
|
+
var normalizeFileUrl = (file) => file instanceof URL ? (0, import_node_url.fileURLToPath)(file) : file;
|
|
41820
41815
|
|
|
41821
41816
|
// node_modules/execa/lib/methods/parameters.js
|
|
41822
41817
|
var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
@@ -41840,10 +41835,10 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
|
41840
41835
|
};
|
|
41841
41836
|
|
|
41842
41837
|
// node_modules/execa/lib/methods/template.js
|
|
41843
|
-
|
|
41838
|
+
var import_node_child_process = require("child_process");
|
|
41844
41839
|
|
|
41845
41840
|
// node_modules/execa/lib/utils/uint-array.js
|
|
41846
|
-
|
|
41841
|
+
var import_node_string_decoder = require("string_decoder");
|
|
41847
41842
|
var { toString: objectToString } = Object.prototype;
|
|
41848
41843
|
var isArrayBuffer = (value) => objectToString.call(value) === "[object ArrayBuffer]";
|
|
41849
41844
|
var isUint8Array = (value) => objectToString.call(value) === "[object Uint8Array]";
|
|
@@ -41860,7 +41855,7 @@ var uint8ArraysToStrings = (uint8ArraysOrStrings, encoding) => {
|
|
|
41860
41855
|
if (encoding === "utf8" && uint8ArraysOrStrings.every((uint8ArrayOrString) => typeof uint8ArrayOrString === "string")) {
|
|
41861
41856
|
return uint8ArraysOrStrings;
|
|
41862
41857
|
}
|
|
41863
|
-
const decoder = new StringDecoder(encoding);
|
|
41858
|
+
const decoder = new import_node_string_decoder.StringDecoder(encoding);
|
|
41864
41859
|
const strings = uint8ArraysOrStrings.map((uint8ArrayOrString) => typeof uint8ArrayOrString === "string" ? stringToUint8Array2(uint8ArrayOrString) : uint8ArrayOrString).map((uint8Array) => decoder.write(uint8Array));
|
|
41865
41860
|
const finalString = decoder.end();
|
|
41866
41861
|
return finalString === "" ? strings : [...strings, finalString];
|
|
@@ -41971,7 +41966,7 @@ var parseExpression = (expression) => {
|
|
|
41971
41966
|
if (isPlainObject4(expression) && ("stdout" in expression || "isMaxBuffer" in expression)) {
|
|
41972
41967
|
return getSubprocessResult(expression);
|
|
41973
41968
|
}
|
|
41974
|
-
if (expression instanceof ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {
|
|
41969
|
+
if (expression instanceof import_node_child_process.ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {
|
|
41975
41970
|
throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");
|
|
41976
41971
|
}
|
|
41977
41972
|
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
@@ -41990,15 +41985,15 @@ var getSubprocessResult = ({ stdout }) => {
|
|
|
41990
41985
|
};
|
|
41991
41986
|
|
|
41992
41987
|
// node_modules/execa/lib/methods/main-sync.js
|
|
41993
|
-
|
|
41988
|
+
var import_node_child_process3 = require("child_process");
|
|
41994
41989
|
|
|
41995
41990
|
// node_modules/execa/lib/arguments/specific.js
|
|
41996
|
-
|
|
41991
|
+
var import_node_util = require("util");
|
|
41997
41992
|
|
|
41998
41993
|
// node_modules/execa/lib/utils/standard-stream.js
|
|
41999
|
-
|
|
41994
|
+
var import_node_process2 = __toESM(require("process"), 1);
|
|
42000
41995
|
var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
42001
|
-
var STANDARD_STREAMS = [
|
|
41996
|
+
var STANDARD_STREAMS = [import_node_process2.default.stdin, import_node_process2.default.stdout, import_node_process2.default.stderr];
|
|
42002
41997
|
var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
42003
41998
|
var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
42004
41999
|
|
|
@@ -42061,7 +42056,7 @@ var parseFd = (fdName) => {
|
|
|
42061
42056
|
};
|
|
42062
42057
|
var FD_REGEXP = /^fd(\d+)$/;
|
|
42063
42058
|
var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS2[optionName] : optionValue);
|
|
42064
|
-
var verboseDefault = debuglog("execa").enabled ? "full" : "none";
|
|
42059
|
+
var verboseDefault = (0, import_node_util.debuglog)("execa").enabled ? "full" : "none";
|
|
42065
42060
|
var DEFAULT_OPTIONS2 = {
|
|
42066
42061
|
lines: false,
|
|
42067
42062
|
buffer: true,
|
|
@@ -42085,18 +42080,18 @@ var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
|
|
|
42085
42080
|
var VERBOSE_VALUES = ["none", "short", "full"];
|
|
42086
42081
|
|
|
42087
42082
|
// node_modules/execa/lib/verbose/log.js
|
|
42088
|
-
|
|
42083
|
+
var import_node_util3 = require("util");
|
|
42089
42084
|
|
|
42090
42085
|
// node_modules/execa/lib/arguments/escape.js
|
|
42091
|
-
|
|
42092
|
-
|
|
42086
|
+
var import_node_process3 = require("process");
|
|
42087
|
+
var import_node_util2 = require("util");
|
|
42093
42088
|
var joinCommand = (filePath, rawArguments) => {
|
|
42094
42089
|
const fileAndArguments = [filePath, ...rawArguments];
|
|
42095
42090
|
const command = fileAndArguments.join(" ");
|
|
42096
42091
|
const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
|
|
42097
42092
|
return { command, escapedCommand };
|
|
42098
42093
|
};
|
|
42099
|
-
var escapeLines = (lines) => stripVTControlCharacters(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
|
|
42094
|
+
var escapeLines = (lines) => (0, import_node_util2.stripVTControlCharacters)(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
|
|
42100
42095
|
var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
|
|
42101
42096
|
var escapeControlCharacter = (character) => {
|
|
42102
42097
|
const commonEscape = COMMON_ESCAPES[character];
|
|
@@ -42128,16 +42123,16 @@ var quoteString = (escapedArgument) => {
|
|
|
42128
42123
|
if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
|
|
42129
42124
|
return escapedArgument;
|
|
42130
42125
|
}
|
|
42131
|
-
return platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
42126
|
+
return import_node_process3.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
42132
42127
|
};
|
|
42133
42128
|
var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
42134
42129
|
|
|
42135
42130
|
// node_modules/is-unicode-supported/index.js
|
|
42136
|
-
|
|
42131
|
+
var import_node_process4 = __toESM(require("process"), 1);
|
|
42137
42132
|
function isUnicodeSupported() {
|
|
42138
|
-
const { env } =
|
|
42133
|
+
const { env } = import_node_process4.default;
|
|
42139
42134
|
const { TERM, TERM_PROGRAM } = env;
|
|
42140
|
-
if (
|
|
42135
|
+
if (import_node_process4.default.platform !== "win32") {
|
|
42141
42136
|
return TERM !== "linux";
|
|
42142
42137
|
}
|
|
42143
42138
|
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -42420,8 +42415,8 @@ var figures_default = figures;
|
|
|
42420
42415
|
var replacements = Object.entries(specialMainSymbols);
|
|
42421
42416
|
|
|
42422
42417
|
// node_modules/yoctocolors/base.js
|
|
42423
|
-
|
|
42424
|
-
var hasColors =
|
|
42418
|
+
var import_node_tty = __toESM(require("tty"), 1);
|
|
42419
|
+
var hasColors = import_node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
42425
42420
|
var format = (open, close) => {
|
|
42426
42421
|
if (!hasColors) {
|
|
42427
42422
|
return (input) => input;
|
|
@@ -42573,7 +42568,7 @@ var getPrintedLine = (verboseObject) => {
|
|
|
42573
42568
|
return { verboseLine, verboseObject };
|
|
42574
42569
|
};
|
|
42575
42570
|
var serializeVerboseMessage = (message) => {
|
|
42576
|
-
const messageString = typeof message === "string" ? message : inspect(message);
|
|
42571
|
+
const messageString = typeof message === "string" ? message : (0, import_node_util3.inspect)(message);
|
|
42577
42572
|
const escapedMessage = escapeLines(messageString);
|
|
42578
42573
|
return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
42579
42574
|
};
|
|
@@ -42620,9 +42615,9 @@ var validateVerbose = (verbose) => {
|
|
|
42620
42615
|
};
|
|
42621
42616
|
|
|
42622
42617
|
// node_modules/execa/lib/return/duration.js
|
|
42623
|
-
|
|
42624
|
-
var getStartTime = () => hrtime.bigint();
|
|
42625
|
-
var getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
|
|
42618
|
+
var import_node_process5 = require("process");
|
|
42619
|
+
var getStartTime = () => import_node_process5.hrtime.bigint();
|
|
42620
|
+
var getDurationMs = (startTime) => Number(import_node_process5.hrtime.bigint() - startTime) / 1e6;
|
|
42626
42621
|
|
|
42627
42622
|
// node_modules/execa/lib/arguments/command.js
|
|
42628
42623
|
var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
@@ -42640,13 +42635,13 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
42640
42635
|
};
|
|
42641
42636
|
|
|
42642
42637
|
// node_modules/execa/lib/arguments/options.js
|
|
42638
|
+
var import_node_path5 = __toESM(require("path"), 1);
|
|
42639
|
+
var import_node_process9 = __toESM(require("process"), 1);
|
|
42643
42640
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
42644
|
-
import path8 from "path";
|
|
42645
|
-
import process7 from "process";
|
|
42646
42641
|
|
|
42647
42642
|
// node_modules/npm-run-path/index.js
|
|
42648
|
-
|
|
42649
|
-
|
|
42643
|
+
var import_node_process6 = __toESM(require("process"), 1);
|
|
42644
|
+
var import_node_path2 = __toESM(require("path"), 1);
|
|
42650
42645
|
|
|
42651
42646
|
// node_modules/npm-run-path/node_modules/path-key/index.js
|
|
42652
42647
|
function pathKey(options = {}) {
|
|
@@ -42661,23 +42656,23 @@ function pathKey(options = {}) {
|
|
|
42661
42656
|
}
|
|
42662
42657
|
|
|
42663
42658
|
// node_modules/unicorn-magic/node.js
|
|
42664
|
-
|
|
42665
|
-
|
|
42666
|
-
|
|
42667
|
-
|
|
42668
|
-
var execFileOriginal = promisify(
|
|
42659
|
+
var import_node_util4 = require("util");
|
|
42660
|
+
var import_node_child_process2 = require("child_process");
|
|
42661
|
+
var import_node_path = __toESM(require("path"), 1);
|
|
42662
|
+
var import_node_url2 = require("url");
|
|
42663
|
+
var execFileOriginal = (0, import_node_util4.promisify)(import_node_child_process2.execFile);
|
|
42669
42664
|
function toPath(urlOrPath) {
|
|
42670
|
-
return urlOrPath instanceof URL ?
|
|
42665
|
+
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
42671
42666
|
}
|
|
42672
42667
|
function traversePathUp(startPath) {
|
|
42673
42668
|
return {
|
|
42674
42669
|
*[Symbol.iterator]() {
|
|
42675
|
-
let currentPath =
|
|
42670
|
+
let currentPath = import_node_path.default.resolve(toPath(startPath));
|
|
42676
42671
|
let previousPath;
|
|
42677
42672
|
while (previousPath !== currentPath) {
|
|
42678
42673
|
yield currentPath;
|
|
42679
42674
|
previousPath = currentPath;
|
|
42680
|
-
currentPath =
|
|
42675
|
+
currentPath = import_node_path.default.resolve(currentPath, "..");
|
|
42681
42676
|
}
|
|
42682
42677
|
}
|
|
42683
42678
|
};
|
|
@@ -42686,38 +42681,38 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
42686
42681
|
|
|
42687
42682
|
// node_modules/npm-run-path/index.js
|
|
42688
42683
|
var npmRunPath = ({
|
|
42689
|
-
cwd =
|
|
42690
|
-
path: pathOption =
|
|
42684
|
+
cwd = import_node_process6.default.cwd(),
|
|
42685
|
+
path: pathOption = import_node_process6.default.env[pathKey()],
|
|
42691
42686
|
preferLocal = true,
|
|
42692
|
-
execPath: execPath2 =
|
|
42687
|
+
execPath: execPath2 = import_node_process6.default.execPath,
|
|
42693
42688
|
addExecPath = true
|
|
42694
42689
|
} = {}) => {
|
|
42695
|
-
const cwdPath =
|
|
42690
|
+
const cwdPath = import_node_path2.default.resolve(toPath(cwd));
|
|
42696
42691
|
const result = [];
|
|
42697
|
-
const pathParts = pathOption.split(
|
|
42692
|
+
const pathParts = pathOption.split(import_node_path2.default.delimiter);
|
|
42698
42693
|
if (preferLocal) {
|
|
42699
42694
|
applyPreferLocal(result, pathParts, cwdPath);
|
|
42700
42695
|
}
|
|
42701
42696
|
if (addExecPath) {
|
|
42702
42697
|
applyExecPath(result, pathParts, execPath2, cwdPath);
|
|
42703
42698
|
}
|
|
42704
|
-
return pathOption === "" || pathOption ===
|
|
42699
|
+
return pathOption === "" || pathOption === import_node_path2.default.delimiter ? `${result.join(import_node_path2.default.delimiter)}${pathOption}` : [...result, pathOption].join(import_node_path2.default.delimiter);
|
|
42705
42700
|
};
|
|
42706
42701
|
var applyPreferLocal = (result, pathParts, cwdPath) => {
|
|
42707
42702
|
for (const directory of traversePathUp(cwdPath)) {
|
|
42708
|
-
const pathPart =
|
|
42703
|
+
const pathPart = import_node_path2.default.join(directory, "node_modules/.bin");
|
|
42709
42704
|
if (!pathParts.includes(pathPart)) {
|
|
42710
42705
|
result.push(pathPart);
|
|
42711
42706
|
}
|
|
42712
42707
|
}
|
|
42713
42708
|
};
|
|
42714
42709
|
var applyExecPath = (result, pathParts, execPath2, cwdPath) => {
|
|
42715
|
-
const pathPart =
|
|
42710
|
+
const pathPart = import_node_path2.default.resolve(cwdPath, toPath(execPath2), "..");
|
|
42716
42711
|
if (!pathParts.includes(pathPart)) {
|
|
42717
42712
|
result.push(pathPart);
|
|
42718
42713
|
}
|
|
42719
42714
|
};
|
|
42720
|
-
var npmRunPathEnv = ({ env =
|
|
42715
|
+
var npmRunPathEnv = ({ env = import_node_process6.default.env, ...options } = {}) => {
|
|
42721
42716
|
env = { ...env };
|
|
42722
42717
|
const pathName = pathKey({ env });
|
|
42723
42718
|
options.path = env[pathName];
|
|
@@ -42726,7 +42721,7 @@ var npmRunPathEnv = ({ env = process5.env, ...options } = {}) => {
|
|
|
42726
42721
|
};
|
|
42727
42722
|
|
|
42728
42723
|
// node_modules/execa/lib/terminate/kill.js
|
|
42729
|
-
|
|
42724
|
+
var import_promises4 = require("timers/promises");
|
|
42730
42725
|
|
|
42731
42726
|
// node_modules/execa/lib/return/final-error.js
|
|
42732
42727
|
var getFinalError = (originalError, message, isSync) => {
|
|
@@ -42761,10 +42756,10 @@ var ExecaSyncError = class extends Error {
|
|
|
42761
42756
|
setErrorName(ExecaSyncError, ExecaSyncError.name);
|
|
42762
42757
|
|
|
42763
42758
|
// node_modules/execa/lib/terminate/signal.js
|
|
42764
|
-
|
|
42759
|
+
var import_node_os3 = require("os");
|
|
42765
42760
|
|
|
42766
42761
|
// node_modules/human-signals/build/src/main.js
|
|
42767
|
-
|
|
42762
|
+
var import_node_os2 = require("os");
|
|
42768
42763
|
|
|
42769
42764
|
// node_modules/human-signals/build/src/realtime.js
|
|
42770
42765
|
var getRealtimeSignals = () => {
|
|
@@ -42782,7 +42777,7 @@ var SIGRTMIN = 34;
|
|
|
42782
42777
|
var SIGRTMAX = 64;
|
|
42783
42778
|
|
|
42784
42779
|
// node_modules/human-signals/build/src/signals.js
|
|
42785
|
-
|
|
42780
|
+
var import_node_os = require("os");
|
|
42786
42781
|
|
|
42787
42782
|
// node_modules/human-signals/build/src/core.js
|
|
42788
42783
|
var SIGNALS = [
|
|
@@ -43073,7 +43068,7 @@ var normalizeSignal = ({
|
|
|
43073
43068
|
}) => {
|
|
43074
43069
|
const {
|
|
43075
43070
|
signals: { [name]: constantSignal }
|
|
43076
|
-
} = constants;
|
|
43071
|
+
} = import_node_os.constants;
|
|
43077
43072
|
const supported = constantSignal !== void 0;
|
|
43078
43073
|
const number3 = supported ? constantSignal : defaultNumber;
|
|
43079
43074
|
return { name, number: number3, description, supported, action, forced, standard };
|
|
@@ -43122,7 +43117,7 @@ var getSignalByNumber = (number3, signals2) => {
|
|
|
43122
43117
|
};
|
|
43123
43118
|
};
|
|
43124
43119
|
var findSignalByNumber = (number3, signals2) => {
|
|
43125
|
-
const signal = signals2.find(({ name }) =>
|
|
43120
|
+
const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number3);
|
|
43126
43121
|
if (signal !== void 0) {
|
|
43127
43122
|
return signal;
|
|
43128
43123
|
}
|
|
@@ -43156,13 +43151,13 @@ var normalizeSignalInteger = (signalInteger, optionName) => {
|
|
|
43156
43151
|
throw new TypeError(`Invalid ${optionName} ${signalInteger}: this signal integer does not exist.
|
|
43157
43152
|
${getAvailableSignals()}`);
|
|
43158
43153
|
};
|
|
43159
|
-
var getSignalsIntegerToName = () => new Map(Object.entries(
|
|
43154
|
+
var getSignalsIntegerToName = () => new Map(Object.entries(import_node_os3.constants.signals).reverse().map(([signalName, signalInteger]) => [signalInteger, signalName]));
|
|
43160
43155
|
var signalsIntegerToName = getSignalsIntegerToName();
|
|
43161
43156
|
var normalizeSignalName = (signalName, optionName) => {
|
|
43162
|
-
if (signalName in
|
|
43157
|
+
if (signalName in import_node_os3.constants.signals) {
|
|
43163
43158
|
return signalName;
|
|
43164
43159
|
}
|
|
43165
|
-
if (signalName.toUpperCase() in
|
|
43160
|
+
if (signalName.toUpperCase() in import_node_os3.constants.signals) {
|
|
43166
43161
|
throw new TypeError(`Invalid ${optionName} '${signalName}': please rename it to '${signalName.toUpperCase()}'.`);
|
|
43167
43162
|
}
|
|
43168
43163
|
throw new TypeError(`Invalid ${optionName} '${signalName}': this signal name does not exist.
|
|
@@ -43170,8 +43165,8 @@ ${getAvailableSignals()}`);
|
|
|
43170
43165
|
};
|
|
43171
43166
|
var getAvailableSignals = () => `Available signal names: ${getAvailableSignalNames()}.
|
|
43172
43167
|
Available signal numbers: ${getAvailableSignalIntegers()}.`;
|
|
43173
|
-
var getAvailableSignalNames = () => Object.keys(
|
|
43174
|
-
var getAvailableSignalIntegers = () => [...new Set(Object.values(
|
|
43168
|
+
var getAvailableSignalNames = () => Object.keys(import_node_os3.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
|
|
43169
|
+
var getAvailableSignalIntegers = () => [...new Set(Object.values(import_node_os3.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
|
|
43175
43170
|
var getSignalDescription = (signal) => signalsByName[signal].description;
|
|
43176
43171
|
|
|
43177
43172
|
// node_modules/execa/lib/terminate/kill.js
|
|
@@ -43233,7 +43228,7 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
|
|
|
43233
43228
|
return;
|
|
43234
43229
|
}
|
|
43235
43230
|
try {
|
|
43236
|
-
await
|
|
43231
|
+
await (0, import_promises4.setTimeout)(forceKillAfterDelay, void 0, { signal: controllerSignal });
|
|
43237
43232
|
if (kill("SIGKILL")) {
|
|
43238
43233
|
context.isForcefullyTerminated ??= true;
|
|
43239
43234
|
}
|
|
@@ -43242,10 +43237,10 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
|
|
|
43242
43237
|
};
|
|
43243
43238
|
|
|
43244
43239
|
// node_modules/execa/lib/utils/abort-signal.js
|
|
43245
|
-
|
|
43240
|
+
var import_node_events = require("events");
|
|
43246
43241
|
var onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
43247
43242
|
if (!mainSignal.aborted) {
|
|
43248
|
-
await once(mainSignal, "abort", { signal: stopSignal });
|
|
43243
|
+
await (0, import_node_events.once)(mainSignal, "abort", { signal: stopSignal });
|
|
43249
43244
|
}
|
|
43250
43245
|
};
|
|
43251
43246
|
|
|
@@ -43264,10 +43259,10 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
|
|
|
43264
43259
|
};
|
|
43265
43260
|
|
|
43266
43261
|
// node_modules/execa/lib/ipc/graceful.js
|
|
43267
|
-
|
|
43262
|
+
var import_promises6 = require("timers/promises");
|
|
43268
43263
|
|
|
43269
43264
|
// node_modules/execa/lib/ipc/send.js
|
|
43270
|
-
|
|
43265
|
+
var import_node_util5 = require("util");
|
|
43271
43266
|
|
|
43272
43267
|
// node_modules/execa/lib/ipc/validation.js
|
|
43273
43268
|
var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
|
|
@@ -43431,27 +43426,27 @@ var serializeOptionValue = (value) => {
|
|
|
43431
43426
|
};
|
|
43432
43427
|
|
|
43433
43428
|
// node_modules/execa/lib/ipc/strict.js
|
|
43434
|
-
|
|
43429
|
+
var import_node_events5 = require("events");
|
|
43435
43430
|
|
|
43436
43431
|
// node_modules/execa/lib/utils/max-listeners.js
|
|
43437
|
-
|
|
43432
|
+
var import_node_events2 = require("events");
|
|
43438
43433
|
var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
43439
43434
|
const maxListeners = eventEmitter.getMaxListeners();
|
|
43440
43435
|
if (maxListeners === 0 || maxListeners === Number.POSITIVE_INFINITY) {
|
|
43441
43436
|
return;
|
|
43442
43437
|
}
|
|
43443
43438
|
eventEmitter.setMaxListeners(maxListeners + maxListenersIncrement);
|
|
43444
|
-
addAbortListener(signal, () => {
|
|
43439
|
+
(0, import_node_events2.addAbortListener)(signal, () => {
|
|
43445
43440
|
eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
|
|
43446
43441
|
});
|
|
43447
43442
|
};
|
|
43448
43443
|
|
|
43449
43444
|
// node_modules/execa/lib/ipc/forward.js
|
|
43450
|
-
|
|
43445
|
+
var import_node_events4 = require("events");
|
|
43451
43446
|
|
|
43452
43447
|
// node_modules/execa/lib/ipc/incoming.js
|
|
43453
|
-
|
|
43454
|
-
|
|
43448
|
+
var import_node_events3 = require("events");
|
|
43449
|
+
var import_promises5 = require("timers/promises");
|
|
43455
43450
|
|
|
43456
43451
|
// node_modules/execa/lib/ipc/reference.js
|
|
43457
43452
|
var addReference = (channel, reference) => {
|
|
@@ -43498,7 +43493,7 @@ var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappe
|
|
|
43498
43493
|
}
|
|
43499
43494
|
while (incomingMessages.length > 0) {
|
|
43500
43495
|
await waitForOutgoingMessages(anyProcess, ipcEmitter, wrappedMessage);
|
|
43501
|
-
await scheduler.yield();
|
|
43496
|
+
await import_promises5.scheduler.yield();
|
|
43502
43497
|
const message = await handleStrictRequest({
|
|
43503
43498
|
wrappedMessage: incomingMessages[0],
|
|
43504
43499
|
anyProcess,
|
|
@@ -43515,7 +43510,7 @@ var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bound
|
|
|
43515
43510
|
abortOnDisconnect();
|
|
43516
43511
|
const incomingMessages = INCOMING_MESSAGES.get(anyProcess);
|
|
43517
43512
|
while (incomingMessages?.length > 0) {
|
|
43518
|
-
await
|
|
43513
|
+
await (0, import_node_events3.once)(ipcEmitter, "message:done");
|
|
43519
43514
|
}
|
|
43520
43515
|
anyProcess.removeListener("message", boundOnMessage);
|
|
43521
43516
|
redoAddedReferences(channel, isSubprocess);
|
|
@@ -43529,7 +43524,7 @@ var getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
|
43529
43524
|
if (IPC_EMITTERS.has(anyProcess)) {
|
|
43530
43525
|
return IPC_EMITTERS.get(anyProcess);
|
|
43531
43526
|
}
|
|
43532
|
-
const ipcEmitter = new EventEmitter();
|
|
43527
|
+
const ipcEmitter = new import_node_events4.EventEmitter();
|
|
43533
43528
|
ipcEmitter.connected = true;
|
|
43534
43529
|
IPC_EMITTERS.set(anyProcess, ipcEmitter);
|
|
43535
43530
|
forwardEvents({
|
|
@@ -43640,7 +43635,7 @@ var waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) =>
|
|
|
43640
43635
|
var STRICT_RESPONSES = {};
|
|
43641
43636
|
var throwOnDisconnect = async (anyProcess, isSubprocess, { signal }) => {
|
|
43642
43637
|
incrementMaxListeners(anyProcess, 1, signal);
|
|
43643
|
-
await
|
|
43638
|
+
await (0, import_node_events5.once)(anyProcess, "disconnect", { signal });
|
|
43644
43639
|
throwOnStrictDisconnect(isSubprocess);
|
|
43645
43640
|
};
|
|
43646
43641
|
var REQUEST_TYPE = "execa:ipc:request";
|
|
@@ -43737,7 +43732,7 @@ var getSendMethod = (anyProcess) => {
|
|
|
43737
43732
|
if (PROCESS_SEND_METHODS.has(anyProcess)) {
|
|
43738
43733
|
return PROCESS_SEND_METHODS.get(anyProcess);
|
|
43739
43734
|
}
|
|
43740
|
-
const sendMethod =
|
|
43735
|
+
const sendMethod = (0, import_node_util5.promisify)(anyProcess.send.bind(anyProcess));
|
|
43741
43736
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
43742
43737
|
return sendMethod;
|
|
43743
43738
|
};
|
|
@@ -43778,7 +43773,7 @@ var startIpc = async ({ anyProcess, channel, isSubprocess, ipc }) => {
|
|
|
43778
43773
|
return;
|
|
43779
43774
|
}
|
|
43780
43775
|
getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
43781
|
-
await
|
|
43776
|
+
await import_promises6.scheduler.yield();
|
|
43782
43777
|
};
|
|
43783
43778
|
var cancelListening = false;
|
|
43784
43779
|
var handleAbort = (wrappedMessage) => {
|
|
@@ -43851,7 +43846,7 @@ var getReason = ({ reason }) => {
|
|
|
43851
43846
|
};
|
|
43852
43847
|
|
|
43853
43848
|
// node_modules/execa/lib/terminate/timeout.js
|
|
43854
|
-
|
|
43849
|
+
var import_promises7 = require("timers/promises");
|
|
43855
43850
|
var validateTimeout = ({ timeout }) => {
|
|
43856
43851
|
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
43857
43852
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
@@ -43859,15 +43854,15 @@ var validateTimeout = ({ timeout }) => {
|
|
|
43859
43854
|
};
|
|
43860
43855
|
var throwOnTimeout = (subprocess, timeout, context, controller) => timeout === 0 || timeout === void 0 ? [] : [killAfterTimeout(subprocess, timeout, context, controller)];
|
|
43861
43856
|
var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
|
|
43862
|
-
await
|
|
43857
|
+
await (0, import_promises7.setTimeout)(timeout, void 0, { signal });
|
|
43863
43858
|
context.terminationReason ??= "timeout";
|
|
43864
43859
|
subprocess.kill();
|
|
43865
43860
|
throw new DiscardedError();
|
|
43866
43861
|
};
|
|
43867
43862
|
|
|
43868
43863
|
// node_modules/execa/lib/methods/node.js
|
|
43869
|
-
|
|
43870
|
-
|
|
43864
|
+
var import_node_process7 = require("process");
|
|
43865
|
+
var import_node_path3 = __toESM(require("path"), 1);
|
|
43871
43866
|
var mapNode = ({ options }) => {
|
|
43872
43867
|
if (options.node === false) {
|
|
43873
43868
|
throw new TypeError('The "node" option cannot be false with `execaNode()`.');
|
|
@@ -43876,8 +43871,8 @@ var mapNode = ({ options }) => {
|
|
|
43876
43871
|
};
|
|
43877
43872
|
var handleNodeOption = (file, commandArguments, {
|
|
43878
43873
|
node: shouldHandleNode = false,
|
|
43879
|
-
nodePath = execPath,
|
|
43880
|
-
nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
|
|
43874
|
+
nodePath = import_node_process7.execPath,
|
|
43875
|
+
nodeOptions = import_node_process7.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
|
|
43881
43876
|
cwd,
|
|
43882
43877
|
execPath: formerNodePath,
|
|
43883
43878
|
...options
|
|
@@ -43886,7 +43881,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
43886
43881
|
throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');
|
|
43887
43882
|
}
|
|
43888
43883
|
const normalizedNodePath = safeNormalizeFileUrl(nodePath, 'The "nodePath" option');
|
|
43889
|
-
const resolvedNodePath =
|
|
43884
|
+
const resolvedNodePath = import_node_path3.default.resolve(cwd, normalizedNodePath);
|
|
43890
43885
|
const newOptions = {
|
|
43891
43886
|
...options,
|
|
43892
43887
|
nodePath: resolvedNodePath,
|
|
@@ -43896,7 +43891,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
43896
43891
|
if (!shouldHandleNode) {
|
|
43897
43892
|
return [file, commandArguments, newOptions];
|
|
43898
43893
|
}
|
|
43899
|
-
if (
|
|
43894
|
+
if (import_node_path3.default.basename(file, ".exe") === "node") {
|
|
43900
43895
|
throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');
|
|
43901
43896
|
}
|
|
43902
43897
|
return [
|
|
@@ -43907,7 +43902,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
43907
43902
|
};
|
|
43908
43903
|
|
|
43909
43904
|
// node_modules/execa/lib/ipc/ipc-input.js
|
|
43910
|
-
|
|
43905
|
+
var import_node_v8 = require("v8");
|
|
43911
43906
|
var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
43912
43907
|
if (ipcInput === void 0) {
|
|
43913
43908
|
return;
|
|
@@ -43919,7 +43914,7 @@ var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
|
43919
43914
|
};
|
|
43920
43915
|
var validateAdvancedInput = (ipcInput) => {
|
|
43921
43916
|
try {
|
|
43922
|
-
serialize(ipcInput);
|
|
43917
|
+
(0, import_node_v8.serialize)(ipcInput);
|
|
43923
43918
|
} catch (error2) {
|
|
43924
43919
|
throw new Error("The `ipcInput` option is not serializable with a structured clone.", { cause: error2 });
|
|
43925
43920
|
}
|
|
@@ -43985,16 +43980,16 @@ var ENCODING_ALIASES = {
|
|
|
43985
43980
|
var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
|
|
43986
43981
|
|
|
43987
43982
|
// node_modules/execa/lib/arguments/cwd.js
|
|
43988
|
-
|
|
43989
|
-
|
|
43990
|
-
|
|
43983
|
+
var import_node_fs = require("fs");
|
|
43984
|
+
var import_node_path4 = __toESM(require("path"), 1);
|
|
43985
|
+
var import_node_process8 = __toESM(require("process"), 1);
|
|
43991
43986
|
var normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
43992
43987
|
const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
|
|
43993
|
-
return
|
|
43988
|
+
return import_node_path4.default.resolve(cwdString);
|
|
43994
43989
|
};
|
|
43995
43990
|
var getDefaultCwd = () => {
|
|
43996
43991
|
try {
|
|
43997
|
-
return
|
|
43992
|
+
return import_node_process8.default.cwd();
|
|
43998
43993
|
} catch (error2) {
|
|
43999
43994
|
error2.message = `The current directory does not exist.
|
|
44000
43995
|
${error2.message}`;
|
|
@@ -44007,7 +44002,7 @@ var fixCwdError = (originalMessage, cwd) => {
|
|
|
44007
44002
|
}
|
|
44008
44003
|
let cwdStat;
|
|
44009
44004
|
try {
|
|
44010
|
-
cwdStat = statSync(cwd);
|
|
44005
|
+
cwdStat = (0, import_node_fs.statSync)(cwd);
|
|
44011
44006
|
} catch (error2) {
|
|
44012
44007
|
return `The "cwd" option is invalid: ${cwd}.
|
|
44013
44008
|
${error2.message}
|
|
@@ -44037,7 +44032,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
44037
44032
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
44038
44033
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
44039
44034
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
44040
|
-
if (
|
|
44035
|
+
if (import_node_process9.default.platform === "win32" && import_node_path5.default.basename(file, ".exe") === "cmd") {
|
|
44041
44036
|
commandArguments.unshift("/q");
|
|
44042
44037
|
}
|
|
44043
44038
|
return { file, commandArguments, options };
|
|
@@ -44078,7 +44073,7 @@ var addDefaultOptions = ({
|
|
|
44078
44073
|
serialization
|
|
44079
44074
|
});
|
|
44080
44075
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
44081
|
-
const env = extendEnv ? { ...
|
|
44076
|
+
const env = extendEnv ? { ...import_node_process9.default.env, ...envOption } : envOption;
|
|
44082
44077
|
if (preferLocal || node) {
|
|
44083
44078
|
return npmRunPathEnv({
|
|
44084
44079
|
env,
|
|
@@ -44095,7 +44090,7 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
|
|
|
44095
44090
|
var concatenateShell = (file, commandArguments, options) => options.shell && commandArguments.length > 0 ? [[file, ...commandArguments].join(" "), [], options] : [file, commandArguments, options];
|
|
44096
44091
|
|
|
44097
44092
|
// node_modules/execa/lib/return/message.js
|
|
44098
|
-
|
|
44093
|
+
var import_node_util6 = require("util");
|
|
44099
44094
|
|
|
44100
44095
|
// node_modules/strip-final-newline/index.js
|
|
44101
44096
|
function stripFinalNewline(input) {
|
|
@@ -44115,8 +44110,8 @@ var CR = "\r";
|
|
|
44115
44110
|
var CR_BINARY = CR.codePointAt(0);
|
|
44116
44111
|
|
|
44117
44112
|
// node_modules/get-stream/source/index.js
|
|
44118
|
-
|
|
44119
|
-
|
|
44113
|
+
var import_node_events6 = require("events");
|
|
44114
|
+
var import_promises8 = require("stream/promises");
|
|
44120
44115
|
|
|
44121
44116
|
// node_modules/is-stream/index.js
|
|
44122
44117
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
@@ -44482,7 +44477,7 @@ var stringMethods = {
|
|
|
44482
44477
|
};
|
|
44483
44478
|
|
|
44484
44479
|
// node_modules/get-stream/source/index.js
|
|
44485
|
-
Object.assign(nodeImports, { on, finished });
|
|
44480
|
+
Object.assign(nodeImports, { on: import_node_events6.on, finished: import_promises8.finished });
|
|
44486
44481
|
|
|
44487
44482
|
// node_modules/execa/lib/io/max-buffer.js
|
|
44488
44483
|
var handleMaxBuffer = ({ error: error2, stream, readableObjectMode, lines, encoding, fdNumber }) => {
|
|
@@ -44649,7 +44644,7 @@ var getOriginalMessage = (originalError, cwd) => {
|
|
|
44649
44644
|
const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
|
|
44650
44645
|
return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
|
|
44651
44646
|
};
|
|
44652
|
-
var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage :
|
|
44647
|
+
var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : (0, import_node_util6.inspect)(ipcMessage);
|
|
44653
44648
|
var serializeMessagePart = (messagePart) => Array.isArray(messagePart) ? messagePart.map((messageItem) => stripFinalNewline(serializeMessageItem(messageItem))).filter(Boolean).join("\n") : serializeMessageItem(messagePart);
|
|
44654
44649
|
var serializeMessageItem = (messageItem) => {
|
|
44655
44650
|
if (typeof messageItem === "string") {
|
|
@@ -45012,7 +45007,7 @@ var handleResult2 = (result, verboseInfo, { reject }) => {
|
|
|
45012
45007
|
};
|
|
45013
45008
|
|
|
45014
45009
|
// node_modules/execa/lib/stdio/handle-sync.js
|
|
45015
|
-
|
|
45010
|
+
var import_node_fs3 = require("fs");
|
|
45016
45011
|
|
|
45017
45012
|
// node_modules/execa/lib/stdio/type.js
|
|
45018
45013
|
var getStdioItemType = (value, optionName) => {
|
|
@@ -45255,7 +45250,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
|
|
|
45255
45250
|
var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
|
|
45256
45251
|
|
|
45257
45252
|
// node_modules/execa/lib/stdio/direction.js
|
|
45258
|
-
|
|
45253
|
+
var import_node_process10 = __toESM(require("process"), 1);
|
|
45259
45254
|
var getStreamDirection = (stdioItems, fdNumber, optionName) => {
|
|
45260
45255
|
const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
|
|
45261
45256
|
if (directions.includes("input") && directions.includes("output")) {
|
|
@@ -45295,10 +45290,10 @@ var guessStreamDirection = {
|
|
|
45295
45290
|
}
|
|
45296
45291
|
};
|
|
45297
45292
|
var getStandardStreamDirection = (value) => {
|
|
45298
|
-
if ([0,
|
|
45293
|
+
if ([0, import_node_process10.default.stdin].includes(value)) {
|
|
45299
45294
|
return "input";
|
|
45300
45295
|
}
|
|
45301
|
-
if ([1, 2,
|
|
45296
|
+
if ([1, 2, import_node_process10.default.stdout, import_node_process10.default.stderr].includes(value)) {
|
|
45302
45297
|
return "output";
|
|
45303
45298
|
}
|
|
45304
45299
|
};
|
|
@@ -45342,8 +45337,8 @@ var normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((st
|
|
|
45342
45337
|
var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
|
|
45343
45338
|
|
|
45344
45339
|
// node_modules/execa/lib/stdio/native.js
|
|
45345
|
-
|
|
45346
|
-
|
|
45340
|
+
var import_node_fs2 = require("fs");
|
|
45341
|
+
var import_node_tty2 = __toESM(require("tty"), 1);
|
|
45347
45342
|
var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
|
|
45348
45343
|
if (!isStdioArray || type !== "native") {
|
|
45349
45344
|
return stdioItem;
|
|
@@ -45373,10 +45368,10 @@ var getTargetFd = ({ value, optionName, fdNumber, direction }) => {
|
|
|
45373
45368
|
if (direction === "output") {
|
|
45374
45369
|
return { type: "fileNumber", value: targetFdNumber, optionName };
|
|
45375
45370
|
}
|
|
45376
|
-
if (
|
|
45371
|
+
if (import_node_tty2.default.isatty(targetFdNumber)) {
|
|
45377
45372
|
throw new TypeError(`The \`${optionName}: ${serializeOptionValue(value)}\` option is invalid: it cannot be a TTY with synchronous methods.`);
|
|
45378
45373
|
}
|
|
45379
|
-
return { type: "uint8Array", value: bufferToUint8Array(readFileSync(targetFdNumber)), optionName };
|
|
45374
|
+
return { type: "uint8Array", value: bufferToUint8Array((0, import_node_fs2.readFileSync)(targetFdNumber)), optionName };
|
|
45380
45375
|
};
|
|
45381
45376
|
var getTargetFdNumber = (value, fdNumber) => {
|
|
45382
45377
|
if (value === "inherit") {
|
|
@@ -45709,8 +45704,8 @@ var addProperties = {
|
|
|
45709
45704
|
var addPropertiesSync = {
|
|
45710
45705
|
input: {
|
|
45711
45706
|
...addProperties,
|
|
45712
|
-
fileUrl: ({ value }) => ({ contents: [bufferToUint8Array(
|
|
45713
|
-
filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array(
|
|
45707
|
+
fileUrl: ({ value }) => ({ contents: [bufferToUint8Array((0, import_node_fs3.readFileSync)(value))] }),
|
|
45708
|
+
filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array((0, import_node_fs3.readFileSync)(file))] }),
|
|
45714
45709
|
fileNumber: forbiddenIfSync,
|
|
45715
45710
|
iterable: ({ value }) => ({ contents: [...value] }),
|
|
45716
45711
|
string: ({ value }) => ({ contents: [value] }),
|
|
@@ -45732,7 +45727,7 @@ var stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber)
|
|
|
45732
45727
|
var getStripFinalNewline = (stripFinalNewline2, fdNumber) => fdNumber === "all" ? stripFinalNewline2[1] || stripFinalNewline2[2] : stripFinalNewline2[fdNumber];
|
|
45733
45728
|
|
|
45734
45729
|
// node_modules/execa/lib/transform/generator.js
|
|
45735
|
-
|
|
45730
|
+
var import_node_stream = require("stream");
|
|
45736
45731
|
|
|
45737
45732
|
// node_modules/execa/lib/transform/split.js
|
|
45738
45733
|
var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
|
|
@@ -45815,10 +45810,10 @@ var linesUint8ArrayInfo = {
|
|
|
45815
45810
|
};
|
|
45816
45811
|
|
|
45817
45812
|
// node_modules/execa/lib/transform/validate.js
|
|
45818
|
-
|
|
45813
|
+
var import_node_buffer = require("buffer");
|
|
45819
45814
|
var getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
|
|
45820
45815
|
var validateStringTransformInput = function* (optionName, chunk) {
|
|
45821
|
-
if (typeof chunk !== "string" && !isUint8Array(chunk) && !
|
|
45816
|
+
if (typeof chunk !== "string" && !isUint8Array(chunk) && !import_node_buffer.Buffer.isBuffer(chunk)) {
|
|
45822
45817
|
throw new TypeError(`The \`${optionName}\` option's transform must use "objectMode: true" to receive as input: ${typeof chunk}.`);
|
|
45823
45818
|
}
|
|
45824
45819
|
yield chunk;
|
|
@@ -45844,8 +45839,8 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
45844
45839
|
};
|
|
45845
45840
|
|
|
45846
45841
|
// node_modules/execa/lib/transform/encoding-transform.js
|
|
45847
|
-
|
|
45848
|
-
|
|
45842
|
+
var import_node_buffer2 = require("buffer");
|
|
45843
|
+
var import_node_string_decoder2 = require("string_decoder");
|
|
45849
45844
|
var getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
45850
45845
|
if (skipped) {
|
|
45851
45846
|
return;
|
|
@@ -45853,14 +45848,14 @@ var getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
|
45853
45848
|
if (binary) {
|
|
45854
45849
|
return { transform: encodingUint8ArrayGenerator.bind(void 0, new TextEncoder()) };
|
|
45855
45850
|
}
|
|
45856
|
-
const stringDecoder = new
|
|
45851
|
+
const stringDecoder = new import_node_string_decoder2.StringDecoder(encoding);
|
|
45857
45852
|
return {
|
|
45858
45853
|
transform: encodingStringGenerator.bind(void 0, stringDecoder),
|
|
45859
45854
|
final: encodingStringFinal.bind(void 0, stringDecoder)
|
|
45860
45855
|
};
|
|
45861
45856
|
};
|
|
45862
45857
|
var encodingUint8ArrayGenerator = function* (textEncoder3, chunk) {
|
|
45863
|
-
if (
|
|
45858
|
+
if (import_node_buffer2.Buffer.isBuffer(chunk)) {
|
|
45864
45859
|
yield bufferToUint8Array(chunk);
|
|
45865
45860
|
} else if (typeof chunk === "string") {
|
|
45866
45861
|
yield textEncoder3.encode(chunk);
|
|
@@ -45879,8 +45874,8 @@ var encodingStringFinal = function* (stringDecoder) {
|
|
|
45879
45874
|
};
|
|
45880
45875
|
|
|
45881
45876
|
// node_modules/execa/lib/transform/run-async.js
|
|
45882
|
-
|
|
45883
|
-
var pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
45877
|
+
var import_node_util7 = require("util");
|
|
45878
|
+
var pushChunks = (0, import_node_util7.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
45884
45879
|
state.currentIterable = getChunks(...getChunksArguments);
|
|
45885
45880
|
try {
|
|
45886
45881
|
for await (const chunk of state.currentIterable) {
|
|
@@ -45913,7 +45908,7 @@ var generatorFinalChunks = async function* (final, index, generators) {
|
|
|
45913
45908
|
yield* transformChunk(finalChunk, generators, index + 1);
|
|
45914
45909
|
}
|
|
45915
45910
|
};
|
|
45916
|
-
var destroyTransform = callbackify(async ({ currentIterable }, error2) => {
|
|
45911
|
+
var destroyTransform = (0, import_node_util7.callbackify)(async ({ currentIterable }, error2) => {
|
|
45917
45912
|
if (currentIterable !== void 0) {
|
|
45918
45913
|
await (error2 ? currentIterable.throw(error2) : currentIterable.return());
|
|
45919
45914
|
return;
|
|
@@ -45981,11 +45976,11 @@ var generatorToStream = ({
|
|
|
45981
45976
|
const transformMethod = transformAsync ? pushChunks.bind(void 0, transformChunk, state) : pushChunksSync.bind(void 0, transformChunkSync);
|
|
45982
45977
|
const finalMethod = transformAsync || finalAsync ? pushChunks.bind(void 0, finalChunks, state) : pushChunksSync.bind(void 0, finalChunksSync);
|
|
45983
45978
|
const destroyMethod = transformAsync || finalAsync ? destroyTransform.bind(void 0, state) : void 0;
|
|
45984
|
-
const stream = new Transform({
|
|
45979
|
+
const stream = new import_node_stream.Transform({
|
|
45985
45980
|
writableObjectMode,
|
|
45986
|
-
writableHighWaterMark: getDefaultHighWaterMark(writableObjectMode),
|
|
45981
|
+
writableHighWaterMark: (0, import_node_stream.getDefaultHighWaterMark)(writableObjectMode),
|
|
45987
45982
|
readableObjectMode,
|
|
45988
|
-
readableHighWaterMark: getDefaultHighWaterMark(readableObjectMode),
|
|
45983
|
+
readableHighWaterMark: (0, import_node_stream.getDefaultHighWaterMark)(readableObjectMode),
|
|
45989
45984
|
transform(chunk, encoding2, done) {
|
|
45990
45985
|
transformMethod([chunk, generators, 0], this, done);
|
|
45991
45986
|
},
|
|
@@ -46056,7 +46051,7 @@ var validateSerializable = (newContents) => {
|
|
|
46056
46051
|
};
|
|
46057
46052
|
|
|
46058
46053
|
// node_modules/execa/lib/io/output-sync.js
|
|
46059
|
-
|
|
46054
|
+
var import_node_fs4 = require("fs");
|
|
46060
46055
|
|
|
46061
46056
|
// node_modules/execa/lib/verbose/output.js
|
|
46062
46057
|
var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
|
|
@@ -46180,10 +46175,10 @@ var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
|
46180
46175
|
for (const { path: path12, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
46181
46176
|
const pathString = typeof path12 === "string" ? path12 : path12.toString();
|
|
46182
46177
|
if (append || outputFiles.has(pathString)) {
|
|
46183
|
-
appendFileSync(path12, serializedResult);
|
|
46178
|
+
(0, import_node_fs4.appendFileSync)(path12, serializedResult);
|
|
46184
46179
|
} else {
|
|
46185
46180
|
outputFiles.add(pathString);
|
|
46186
|
-
writeFileSync(path12, serializedResult);
|
|
46181
|
+
(0, import_node_fs4.writeFileSync)(path12, serializedResult);
|
|
46187
46182
|
}
|
|
46188
46183
|
}
|
|
46189
46184
|
};
|
|
@@ -46212,7 +46207,7 @@ var getAllSync = ([, stdout, stderr], options) => {
|
|
|
46212
46207
|
};
|
|
46213
46208
|
|
|
46214
46209
|
// node_modules/execa/lib/resolve/exit-async.js
|
|
46215
|
-
|
|
46210
|
+
var import_node_events7 = require("events");
|
|
46216
46211
|
var waitForExit = async (subprocess, context) => {
|
|
46217
46212
|
const [exitCode, signal] = await waitForExitOrError(subprocess);
|
|
46218
46213
|
context.isForcefullyTerminated ??= false;
|
|
@@ -46220,8 +46215,8 @@ var waitForExit = async (subprocess, context) => {
|
|
|
46220
46215
|
};
|
|
46221
46216
|
var waitForExitOrError = async (subprocess) => {
|
|
46222
46217
|
const [spawnPayload, exitPayload] = await Promise.allSettled([
|
|
46223
|
-
|
|
46224
|
-
|
|
46218
|
+
(0, import_node_events7.once)(subprocess, "spawn"),
|
|
46219
|
+
(0, import_node_events7.once)(subprocess, "exit")
|
|
46225
46220
|
]);
|
|
46226
46221
|
if (spawnPayload.status === "rejected") {
|
|
46227
46222
|
return [];
|
|
@@ -46230,7 +46225,7 @@ var waitForExitOrError = async (subprocess) => {
|
|
|
46230
46225
|
};
|
|
46231
46226
|
var waitForSubprocessExit = async (subprocess) => {
|
|
46232
46227
|
try {
|
|
46233
|
-
return await
|
|
46228
|
+
return await (0, import_node_events7.once)(subprocess, "exit");
|
|
46234
46229
|
} catch {
|
|
46235
46230
|
return waitForSubprocessExit(subprocess);
|
|
46236
46231
|
}
|
|
@@ -46356,7 +46351,7 @@ var runSubprocessSync = ({ file, commandArguments, options, command, escapedComm
|
|
|
46356
46351
|
try {
|
|
46357
46352
|
addInputOptionsSync(fileDescriptors, options);
|
|
46358
46353
|
const normalizedOptions = normalizeSpawnSyncOptions(options);
|
|
46359
|
-
return spawnSync(...concatenateShell(file, commandArguments, normalizedOptions));
|
|
46354
|
+
return (0, import_node_child_process3.spawnSync)(...concatenateShell(file, commandArguments, normalizedOptions));
|
|
46360
46355
|
} catch (error2) {
|
|
46361
46356
|
return makeEarlyError({
|
|
46362
46357
|
error: error2,
|
|
@@ -46398,14 +46393,14 @@ var getSyncResult = ({ error: error2, exitCode, signal, timedOut, isMaxBuffer, s
|
|
|
46398
46393
|
});
|
|
46399
46394
|
|
|
46400
46395
|
// node_modules/execa/lib/methods/main-async.js
|
|
46401
|
-
|
|
46402
|
-
|
|
46396
|
+
var import_node_events14 = require("events");
|
|
46397
|
+
var import_node_child_process5 = require("child_process");
|
|
46403
46398
|
|
|
46404
46399
|
// node_modules/execa/lib/ipc/methods.js
|
|
46405
|
-
|
|
46400
|
+
var import_node_process11 = __toESM(require("process"), 1);
|
|
46406
46401
|
|
|
46407
46402
|
// node_modules/execa/lib/ipc/get-one.js
|
|
46408
|
-
|
|
46403
|
+
var import_node_events8 = require("events");
|
|
46409
46404
|
var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
|
|
46410
46405
|
validateIpcMethod({
|
|
46411
46406
|
methodName: "getOneMessage",
|
|
@@ -46441,26 +46436,26 @@ var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, ref
|
|
|
46441
46436
|
};
|
|
46442
46437
|
var getMessage = async (ipcEmitter, filter, { signal }) => {
|
|
46443
46438
|
if (filter === void 0) {
|
|
46444
|
-
const [message] = await
|
|
46439
|
+
const [message] = await (0, import_node_events8.once)(ipcEmitter, "message", { signal });
|
|
46445
46440
|
return message;
|
|
46446
46441
|
}
|
|
46447
|
-
for await (const [message] of
|
|
46442
|
+
for await (const [message] of (0, import_node_events8.on)(ipcEmitter, "message", { signal })) {
|
|
46448
46443
|
if (filter(message)) {
|
|
46449
46444
|
return message;
|
|
46450
46445
|
}
|
|
46451
46446
|
}
|
|
46452
46447
|
};
|
|
46453
46448
|
var throwOnDisconnect2 = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
46454
|
-
await
|
|
46449
|
+
await (0, import_node_events8.once)(ipcEmitter, "disconnect", { signal });
|
|
46455
46450
|
throwOnEarlyDisconnect(isSubprocess);
|
|
46456
46451
|
};
|
|
46457
46452
|
var throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
46458
|
-
const [error2] = await
|
|
46453
|
+
const [error2] = await (0, import_node_events8.once)(ipcEmitter, "strict:error", { signal });
|
|
46459
46454
|
throw getStrictResponseError(error2, isSubprocess);
|
|
46460
46455
|
};
|
|
46461
46456
|
|
|
46462
46457
|
// node_modules/execa/lib/ipc/get-each.js
|
|
46463
|
-
|
|
46458
|
+
var import_node_events9 = require("events");
|
|
46464
46459
|
var getEachMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
|
|
46465
46460
|
anyProcess,
|
|
46466
46461
|
channel,
|
|
@@ -46500,14 +46495,14 @@ var loopOnMessages = ({ anyProcess, channel, isSubprocess, ipc, shouldAwait, ref
|
|
|
46500
46495
|
};
|
|
46501
46496
|
var stopOnDisconnect = async (anyProcess, ipcEmitter, controller) => {
|
|
46502
46497
|
try {
|
|
46503
|
-
await
|
|
46498
|
+
await (0, import_node_events9.once)(ipcEmitter, "disconnect", { signal: controller.signal });
|
|
46504
46499
|
controller.abort();
|
|
46505
46500
|
} catch {
|
|
46506
46501
|
}
|
|
46507
46502
|
};
|
|
46508
46503
|
var abortOnStrictError = async ({ ipcEmitter, isSubprocess, controller, state }) => {
|
|
46509
46504
|
try {
|
|
46510
|
-
const [error2] = await
|
|
46505
|
+
const [error2] = await (0, import_node_events9.once)(ipcEmitter, "strict:error", { signal: controller.signal });
|
|
46511
46506
|
state.error = getStrictResponseError(error2, isSubprocess);
|
|
46512
46507
|
controller.abort();
|
|
46513
46508
|
} catch {
|
|
@@ -46515,7 +46510,7 @@ var abortOnStrictError = async ({ ipcEmitter, isSubprocess, controller, state })
|
|
|
46515
46510
|
};
|
|
46516
46511
|
var iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, isSubprocess, shouldAwait, controller, state, reference }) {
|
|
46517
46512
|
try {
|
|
46518
|
-
for await (const [message] of
|
|
46513
|
+
for await (const [message] of (0, import_node_events9.on)(ipcEmitter, "message", { signal: controller.signal })) {
|
|
46519
46514
|
throwIfStrictError(state);
|
|
46520
46515
|
yield message;
|
|
46521
46516
|
}
|
|
@@ -46543,9 +46538,9 @@ var addIpcMethods = (subprocess, { ipc }) => {
|
|
|
46543
46538
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
46544
46539
|
};
|
|
46545
46540
|
var getIpcExport = () => {
|
|
46546
|
-
const anyProcess =
|
|
46541
|
+
const anyProcess = import_node_process11.default;
|
|
46547
46542
|
const isSubprocess = true;
|
|
46548
|
-
const ipc =
|
|
46543
|
+
const ipc = import_node_process11.default.channel !== void 0;
|
|
46549
46544
|
return {
|
|
46550
46545
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
46551
46546
|
getCancelSignal: getCancelSignal.bind(void 0, {
|
|
@@ -46578,16 +46573,11 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
|
|
|
46578
46573
|
});
|
|
46579
46574
|
|
|
46580
46575
|
// node_modules/execa/lib/return/early-error.js
|
|
46581
|
-
|
|
46582
|
-
|
|
46583
|
-
PassThrough,
|
|
46584
|
-
Readable,
|
|
46585
|
-
Writable,
|
|
46586
|
-
Duplex
|
|
46587
|
-
} from "stream";
|
|
46576
|
+
var import_node_child_process4 = require("child_process");
|
|
46577
|
+
var import_node_stream2 = require("stream");
|
|
46588
46578
|
var handleEarlyError = ({ error: error2, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
|
|
46589
46579
|
cleanupCustomStreams(fileDescriptors);
|
|
46590
|
-
const subprocess = new
|
|
46580
|
+
const subprocess = new import_node_child_process4.ChildProcess();
|
|
46591
46581
|
createDummyStreams(subprocess, fileDescriptors);
|
|
46592
46582
|
Object.assign(subprocess, { readable, writable, duplex });
|
|
46593
46583
|
const earlyError = makeEarlyError({
|
|
@@ -46618,23 +46608,23 @@ var createDummyStreams = (subprocess, fileDescriptors) => {
|
|
|
46618
46608
|
});
|
|
46619
46609
|
};
|
|
46620
46610
|
var createDummyStream = () => {
|
|
46621
|
-
const stream = new PassThrough();
|
|
46611
|
+
const stream = new import_node_stream2.PassThrough();
|
|
46622
46612
|
stream.end();
|
|
46623
46613
|
return stream;
|
|
46624
46614
|
};
|
|
46625
|
-
var readable = () => new Readable({ read() {
|
|
46615
|
+
var readable = () => new import_node_stream2.Readable({ read() {
|
|
46626
46616
|
} });
|
|
46627
|
-
var writable = () => new Writable({ write() {
|
|
46617
|
+
var writable = () => new import_node_stream2.Writable({ write() {
|
|
46628
46618
|
} });
|
|
46629
|
-
var duplex = () => new Duplex({ read() {
|
|
46619
|
+
var duplex = () => new import_node_stream2.Duplex({ read() {
|
|
46630
46620
|
}, write() {
|
|
46631
46621
|
} });
|
|
46632
46622
|
var handleDummyPromise = async (error2, verboseInfo, options) => handleResult2(error2, verboseInfo, options);
|
|
46633
46623
|
|
|
46634
46624
|
// node_modules/execa/lib/stdio/handle-async.js
|
|
46635
|
-
|
|
46636
|
-
|
|
46637
|
-
|
|
46625
|
+
var import_node_fs5 = require("fs");
|
|
46626
|
+
var import_node_buffer3 = require("buffer");
|
|
46627
|
+
var import_node_stream3 = require("stream");
|
|
46638
46628
|
var handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
|
|
46639
46629
|
var forbiddenIfAsync = ({ type, optionName }) => {
|
|
46640
46630
|
throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);
|
|
@@ -46646,7 +46636,7 @@ var addProperties2 = {
|
|
|
46646
46636
|
nodeStream: ({ value }) => ({ stream: value }),
|
|
46647
46637
|
webTransform({ value: { transform: transform2, writableObjectMode, readableObjectMode } }) {
|
|
46648
46638
|
const objectMode = writableObjectMode || readableObjectMode;
|
|
46649
|
-
const stream =
|
|
46639
|
+
const stream = import_node_stream3.Duplex.fromWeb(transform2, { objectMode });
|
|
46650
46640
|
return { stream };
|
|
46651
46641
|
},
|
|
46652
46642
|
duplex: ({ value: { transform: transform2 } }) => ({ stream: transform2 }),
|
|
@@ -46656,19 +46646,19 @@ var addProperties2 = {
|
|
|
46656
46646
|
var addPropertiesAsync = {
|
|
46657
46647
|
input: {
|
|
46658
46648
|
...addProperties2,
|
|
46659
|
-
fileUrl: ({ value }) => ({ stream: createReadStream(value) }),
|
|
46660
|
-
filePath: ({ value: { file } }) => ({ stream: createReadStream(file) }),
|
|
46661
|
-
webStream: ({ value }) => ({ stream:
|
|
46662
|
-
iterable: ({ value }) => ({ stream:
|
|
46663
|
-
asyncIterable: ({ value }) => ({ stream:
|
|
46664
|
-
string: ({ value }) => ({ stream:
|
|
46665
|
-
uint8Array: ({ value }) => ({ stream:
|
|
46649
|
+
fileUrl: ({ value }) => ({ stream: (0, import_node_fs5.createReadStream)(value) }),
|
|
46650
|
+
filePath: ({ value: { file } }) => ({ stream: (0, import_node_fs5.createReadStream)(file) }),
|
|
46651
|
+
webStream: ({ value }) => ({ stream: import_node_stream3.Readable.fromWeb(value) }),
|
|
46652
|
+
iterable: ({ value }) => ({ stream: import_node_stream3.Readable.from(value) }),
|
|
46653
|
+
asyncIterable: ({ value }) => ({ stream: import_node_stream3.Readable.from(value) }),
|
|
46654
|
+
string: ({ value }) => ({ stream: import_node_stream3.Readable.from(value) }),
|
|
46655
|
+
uint8Array: ({ value }) => ({ stream: import_node_stream3.Readable.from(import_node_buffer3.Buffer.from(value)) })
|
|
46666
46656
|
},
|
|
46667
46657
|
output: {
|
|
46668
46658
|
...addProperties2,
|
|
46669
|
-
fileUrl: ({ value }) => ({ stream: createWriteStream(value) }),
|
|
46670
|
-
filePath: ({ value: { file, append } }) => ({ stream: createWriteStream(file, append ? { flags: "a" } : {}) }),
|
|
46671
|
-
webStream: ({ value }) => ({ stream:
|
|
46659
|
+
fileUrl: ({ value }) => ({ stream: (0, import_node_fs5.createWriteStream)(value) }),
|
|
46660
|
+
filePath: ({ value: { file, append } }) => ({ stream: (0, import_node_fs5.createWriteStream)(file, append ? { flags: "a" } : {}) }),
|
|
46661
|
+
webStream: ({ value }) => ({ stream: import_node_stream3.Writable.fromWeb(value) }),
|
|
46672
46662
|
iterable: forbiddenIfAsync,
|
|
46673
46663
|
asyncIterable: forbiddenIfAsync,
|
|
46674
46664
|
string: forbiddenIfAsync,
|
|
@@ -46677,9 +46667,9 @@ var addPropertiesAsync = {
|
|
|
46677
46667
|
};
|
|
46678
46668
|
|
|
46679
46669
|
// node_modules/@sindresorhus/merge-streams/index.js
|
|
46680
|
-
|
|
46681
|
-
|
|
46682
|
-
|
|
46670
|
+
var import_node_events10 = require("events");
|
|
46671
|
+
var import_node_stream4 = require("stream");
|
|
46672
|
+
var import_promises9 = require("stream/promises");
|
|
46683
46673
|
function mergeStreams(streams) {
|
|
46684
46674
|
if (!Array.isArray(streams)) {
|
|
46685
46675
|
throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
|
|
@@ -46701,12 +46691,12 @@ function mergeStreams(streams) {
|
|
|
46701
46691
|
}
|
|
46702
46692
|
var getHighWaterMark = (streams, objectMode) => {
|
|
46703
46693
|
if (streams.length === 0) {
|
|
46704
|
-
return
|
|
46694
|
+
return (0, import_node_stream4.getDefaultHighWaterMark)(objectMode);
|
|
46705
46695
|
}
|
|
46706
46696
|
const highWaterMarks = streams.filter(({ readableObjectMode }) => readableObjectMode === objectMode).map(({ readableHighWaterMark }) => readableHighWaterMark);
|
|
46707
46697
|
return Math.max(...highWaterMarks);
|
|
46708
46698
|
};
|
|
46709
|
-
var MergedStream = class extends
|
|
46699
|
+
var MergedStream = class extends import_node_stream4.PassThrough {
|
|
46710
46700
|
#streams = /* @__PURE__ */ new Set([]);
|
|
46711
46701
|
#ended = /* @__PURE__ */ new Set([]);
|
|
46712
46702
|
#aborted = /* @__PURE__ */ new Set([]);
|
|
@@ -46762,14 +46752,14 @@ var onMergedStreamFinished = async (passThroughStream, streams, unpipeEvent) =>
|
|
|
46762
46752
|
};
|
|
46763
46753
|
var onMergedStreamEnd = async (passThroughStream, { signal }) => {
|
|
46764
46754
|
try {
|
|
46765
|
-
await
|
|
46755
|
+
await (0, import_promises9.finished)(passThroughStream, { signal, cleanup: true });
|
|
46766
46756
|
} catch (error2) {
|
|
46767
46757
|
errorOrAbortStream(passThroughStream, error2);
|
|
46768
46758
|
throw error2;
|
|
46769
46759
|
}
|
|
46770
46760
|
};
|
|
46771
46761
|
var onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { signal }) => {
|
|
46772
|
-
for await (const [unpipedStream] of
|
|
46762
|
+
for await (const [unpipedStream] of (0, import_node_events10.on)(passThroughStream, "unpipe", { signal })) {
|
|
46773
46763
|
if (streams.has(unpipedStream)) {
|
|
46774
46764
|
unpipedStream.emit(unpipeEvent);
|
|
46775
46765
|
}
|
|
@@ -46829,7 +46819,7 @@ var afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
|
|
|
46829
46819
|
};
|
|
46830
46820
|
var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted3, controller: { signal } }) => {
|
|
46831
46821
|
try {
|
|
46832
|
-
await
|
|
46822
|
+
await (0, import_promises9.finished)(stream, {
|
|
46833
46823
|
signal,
|
|
46834
46824
|
cleanup: true,
|
|
46835
46825
|
readable: true,
|
|
@@ -46850,9 +46840,9 @@ var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abort
|
|
|
46850
46840
|
}
|
|
46851
46841
|
};
|
|
46852
46842
|
var onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted3, unpipeEvent, controller: { signal } }) => {
|
|
46853
|
-
await
|
|
46843
|
+
await (0, import_node_events10.once)(stream, unpipeEvent, { signal });
|
|
46854
46844
|
if (!stream.readable) {
|
|
46855
|
-
return
|
|
46845
|
+
return (0, import_node_events10.once)(signal, "abort", { signal });
|
|
46856
46846
|
}
|
|
46857
46847
|
streams.delete(stream);
|
|
46858
46848
|
ended.delete(stream);
|
|
@@ -46894,7 +46884,7 @@ var PASSTHROUGH_LISTENERS_COUNT = 2;
|
|
|
46894
46884
|
var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
|
|
46895
46885
|
|
|
46896
46886
|
// node_modules/execa/lib/io/pipeline.js
|
|
46897
|
-
|
|
46887
|
+
var import_promises10 = require("stream/promises");
|
|
46898
46888
|
var pipeStreams = (source, destination) => {
|
|
46899
46889
|
source.pipe(destination);
|
|
46900
46890
|
onSourceFinish(source, destination);
|
|
@@ -46905,7 +46895,7 @@ var onSourceFinish = async (source, destination) => {
|
|
|
46905
46895
|
return;
|
|
46906
46896
|
}
|
|
46907
46897
|
try {
|
|
46908
|
-
await
|
|
46898
|
+
await (0, import_promises10.finished)(source, { cleanup: true, readable: true, writable: false });
|
|
46909
46899
|
} catch {
|
|
46910
46900
|
}
|
|
46911
46901
|
endDestinationStream(destination);
|
|
@@ -46920,7 +46910,7 @@ var onDestinationFinish = async (source, destination) => {
|
|
|
46920
46910
|
return;
|
|
46921
46911
|
}
|
|
46922
46912
|
try {
|
|
46923
|
-
await
|
|
46913
|
+
await (0, import_promises10.finished)(destination, { cleanup: true, readable: false, writable: true });
|
|
46924
46914
|
} catch {
|
|
46925
46915
|
}
|
|
46926
46916
|
abortSourceStream(source);
|
|
@@ -46984,7 +46974,7 @@ var setStandardStreamMaxListeners = (stream, { signal }) => {
|
|
|
46984
46974
|
var MAX_LISTENERS_INCREMENT = 2;
|
|
46985
46975
|
|
|
46986
46976
|
// node_modules/execa/lib/terminate/cleanup.js
|
|
46987
|
-
|
|
46977
|
+
var import_node_events11 = require("events");
|
|
46988
46978
|
|
|
46989
46979
|
// node_modules/signal-exit/dist/mjs/signals.js
|
|
46990
46980
|
var signals = [];
|
|
@@ -47245,7 +47235,7 @@ var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
|
47245
47235
|
const removeExitHandler = onExit(() => {
|
|
47246
47236
|
subprocess.kill();
|
|
47247
47237
|
});
|
|
47248
|
-
|
|
47238
|
+
(0, import_node_events11.addAbortListener)(signal, () => {
|
|
47249
47239
|
removeExitHandler();
|
|
47250
47240
|
});
|
|
47251
47241
|
};
|
|
@@ -47391,7 +47381,7 @@ var waitForBothSubprocesses = async (subprocessPromises) => {
|
|
|
47391
47381
|
};
|
|
47392
47382
|
|
|
47393
47383
|
// node_modules/execa/lib/pipe/streaming.js
|
|
47394
|
-
|
|
47384
|
+
var import_promises11 = require("stream/promises");
|
|
47395
47385
|
var pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
|
|
47396
47386
|
const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
|
|
47397
47387
|
incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
|
|
@@ -47412,7 +47402,7 @@ var pipeMoreSubprocessStream = (sourceStream, destinationStream) => {
|
|
|
47412
47402
|
};
|
|
47413
47403
|
var cleanupMergedStreamsMap = async (destinationStream) => {
|
|
47414
47404
|
try {
|
|
47415
|
-
await
|
|
47405
|
+
await (0, import_promises11.finished)(destinationStream, { cleanup: true, readable: false, writable: true });
|
|
47416
47406
|
} catch {
|
|
47417
47407
|
}
|
|
47418
47408
|
MERGED_STREAMS.delete(destinationStream);
|
|
@@ -47422,10 +47412,10 @@ var SOURCE_LISTENERS_PER_PIPE = 2;
|
|
|
47422
47412
|
var DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
47423
47413
|
|
|
47424
47414
|
// node_modules/execa/lib/pipe/abort.js
|
|
47425
|
-
|
|
47415
|
+
var import_node_util8 = require("util");
|
|
47426
47416
|
var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
|
|
47427
47417
|
var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
47428
|
-
await
|
|
47418
|
+
await (0, import_node_util8.aborted)(unpipeSignal, sourceStream);
|
|
47429
47419
|
await mergedStream.remove(sourceStream);
|
|
47430
47420
|
const error2 = new Error("Pipe canceled by `unpipeSignal` option.");
|
|
47431
47421
|
throw createNonCommandError({
|
|
@@ -47496,11 +47486,11 @@ var handlePipePromise = async ({
|
|
|
47496
47486
|
var getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
|
|
47497
47487
|
|
|
47498
47488
|
// node_modules/execa/lib/io/contents.js
|
|
47499
|
-
|
|
47489
|
+
var import_promises12 = require("timers/promises");
|
|
47500
47490
|
|
|
47501
47491
|
// node_modules/execa/lib/io/iterate.js
|
|
47502
|
-
|
|
47503
|
-
|
|
47492
|
+
var import_node_events12 = require("events");
|
|
47493
|
+
var import_node_stream5 = require("stream");
|
|
47504
47494
|
var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
|
|
47505
47495
|
const controller = new AbortController();
|
|
47506
47496
|
stopReadingOnExit(subprocess, controller);
|
|
@@ -47546,7 +47536,7 @@ var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
|
|
|
47546
47536
|
}
|
|
47547
47537
|
};
|
|
47548
47538
|
var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
|
|
47549
|
-
const onStdoutChunk =
|
|
47539
|
+
const onStdoutChunk = (0, import_node_events12.on)(stream, "data", {
|
|
47550
47540
|
signal: controller.signal,
|
|
47551
47541
|
highWaterMark: HIGH_WATER_MARK,
|
|
47552
47542
|
// Backward compatibility with older name for this option
|
|
@@ -47564,7 +47554,7 @@ var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, sho
|
|
|
47564
47554
|
preserveNewlines
|
|
47565
47555
|
});
|
|
47566
47556
|
};
|
|
47567
|
-
var DEFAULT_OBJECT_HIGH_WATER_MARK =
|
|
47557
|
+
var DEFAULT_OBJECT_HIGH_WATER_MARK = (0, import_node_stream5.getDefaultHighWaterMark)(true);
|
|
47568
47558
|
var HIGH_WATER_MARK = DEFAULT_OBJECT_HIGH_WATER_MARK;
|
|
47569
47559
|
var iterateOnData = async function* ({ onStdoutChunk, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) {
|
|
47570
47560
|
const generators = getGenerators({
|
|
@@ -47648,7 +47638,7 @@ var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed,
|
|
|
47648
47638
|
await logLines(linesIterable, stream, fdNumber, verboseInfo);
|
|
47649
47639
|
};
|
|
47650
47640
|
var resumeStream = async (stream) => {
|
|
47651
|
-
await setImmediate();
|
|
47641
|
+
await (0, import_promises12.setImmediate)();
|
|
47652
47642
|
if (stream.readableFlowing === null) {
|
|
47653
47643
|
stream.resume();
|
|
47654
47644
|
}
|
|
@@ -47683,14 +47673,14 @@ var getBufferedData = async (streamPromise) => {
|
|
|
47683
47673
|
var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
|
|
47684
47674
|
|
|
47685
47675
|
// node_modules/execa/lib/resolve/wait-stream.js
|
|
47686
|
-
|
|
47676
|
+
var import_promises13 = require("stream/promises");
|
|
47687
47677
|
var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
|
|
47688
47678
|
const state = handleStdinDestroy(stream, streamInfo);
|
|
47689
47679
|
const abortController = new AbortController();
|
|
47690
47680
|
try {
|
|
47691
47681
|
await Promise.race([
|
|
47692
47682
|
...stopOnExit ? [streamInfo.exitPromise] : [],
|
|
47693
|
-
|
|
47683
|
+
(0, import_promises13.finished)(stream, { cleanup: true, signal: abortController.signal })
|
|
47694
47684
|
]);
|
|
47695
47685
|
} catch (error2) {
|
|
47696
47686
|
if (!state.stdinCleanedUp) {
|
|
@@ -47805,7 +47795,7 @@ var getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =>
|
|
|
47805
47795
|
var getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
|
|
47806
47796
|
|
|
47807
47797
|
// node_modules/execa/lib/resolve/wait-subprocess.js
|
|
47808
|
-
|
|
47798
|
+
var import_node_events13 = require("events");
|
|
47809
47799
|
|
|
47810
47800
|
// node_modules/execa/lib/verbose/ipc.js
|
|
47811
47801
|
var shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
@@ -47969,7 +47959,7 @@ var waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors.f
|
|
|
47969
47959
|
stopOnExit: type === "native"
|
|
47970
47960
|
})));
|
|
47971
47961
|
var throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
47972
|
-
const [error2] = await
|
|
47962
|
+
const [error2] = await (0, import_node_events13.once)(subprocess, "error", { signal });
|
|
47973
47963
|
throw error2;
|
|
47974
47964
|
};
|
|
47975
47965
|
|
|
@@ -48000,11 +47990,11 @@ var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
|
|
|
48000
47990
|
};
|
|
48001
47991
|
|
|
48002
47992
|
// node_modules/execa/lib/convert/readable.js
|
|
48003
|
-
|
|
48004
|
-
|
|
47993
|
+
var import_node_stream6 = require("stream");
|
|
47994
|
+
var import_node_util9 = require("util");
|
|
48005
47995
|
|
|
48006
47996
|
// node_modules/execa/lib/convert/shared.js
|
|
48007
|
-
|
|
47997
|
+
var import_promises14 = require("stream/promises");
|
|
48008
47998
|
var safeWaitForSubprocessStdin = async (subprocessStdin) => {
|
|
48009
47999
|
if (subprocessStdin === void 0) {
|
|
48010
48000
|
return;
|
|
@@ -48024,10 +48014,10 @@ var safeWaitForSubprocessStdout = async (subprocessStdout) => {
|
|
|
48024
48014
|
}
|
|
48025
48015
|
};
|
|
48026
48016
|
var waitForSubprocessStdin = async (subprocessStdin) => {
|
|
48027
|
-
await
|
|
48017
|
+
await (0, import_promises14.finished)(subprocessStdin, { cleanup: true, readable: false, writable: true });
|
|
48028
48018
|
};
|
|
48029
48019
|
var waitForSubprocessStdout = async (subprocessStdout) => {
|
|
48030
|
-
await
|
|
48020
|
+
await (0, import_promises14.finished)(subprocessStdout, { cleanup: true, readable: true, writable: false });
|
|
48031
48021
|
};
|
|
48032
48022
|
var waitForSubprocess = async (subprocess, error2) => {
|
|
48033
48023
|
await subprocess;
|
|
@@ -48055,9 +48045,9 @@ var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binar
|
|
|
48055
48045
|
encoding,
|
|
48056
48046
|
preserveNewlines
|
|
48057
48047
|
});
|
|
48058
|
-
const readable2 = new
|
|
48048
|
+
const readable2 = new import_node_stream6.Readable({
|
|
48059
48049
|
read,
|
|
48060
|
-
destroy:
|
|
48050
|
+
destroy: (0, import_node_util9.callbackify)(onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
|
|
48061
48051
|
highWaterMark: readableHighWaterMark,
|
|
48062
48052
|
objectMode: readableObjectMode,
|
|
48063
48053
|
encoding: readableEncoding
|
|
@@ -48129,13 +48119,13 @@ var destroyOtherReadable = (stream, error2) => {
|
|
|
48129
48119
|
};
|
|
48130
48120
|
|
|
48131
48121
|
// node_modules/execa/lib/convert/writable.js
|
|
48132
|
-
|
|
48133
|
-
|
|
48122
|
+
var import_node_stream7 = require("stream");
|
|
48123
|
+
var import_node_util10 = require("util");
|
|
48134
48124
|
var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
48135
48125
|
const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
48136
|
-
const writable2 = new
|
|
48126
|
+
const writable2 = new import_node_stream7.Writable({
|
|
48137
48127
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
48138
|
-
destroy:
|
|
48128
|
+
destroy: (0, import_node_util10.callbackify)(onWritableDestroy.bind(void 0, {
|
|
48139
48129
|
subprocessStdin,
|
|
48140
48130
|
subprocess,
|
|
48141
48131
|
waitWritableFinal,
|
|
@@ -48155,7 +48145,7 @@ var getSubprocessStdin = (subprocess, to, concurrentStreams) => {
|
|
|
48155
48145
|
};
|
|
48156
48146
|
var getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
|
|
48157
48147
|
write: onWrite.bind(void 0, subprocessStdin),
|
|
48158
|
-
final:
|
|
48148
|
+
final: (0, import_node_util10.callbackify)(onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
|
|
48159
48149
|
});
|
|
48160
48150
|
var onWrite = (subprocessStdin, chunk, encoding, done) => {
|
|
48161
48151
|
if (subprocessStdin.write(chunk, encoding)) {
|
|
@@ -48195,8 +48185,8 @@ var destroyOtherWritable = (stream, error2) => {
|
|
|
48195
48185
|
};
|
|
48196
48186
|
|
|
48197
48187
|
// node_modules/execa/lib/convert/duplex.js
|
|
48198
|
-
|
|
48199
|
-
|
|
48188
|
+
var import_node_stream8 = require("stream");
|
|
48189
|
+
var import_node_util11 = require("util");
|
|
48200
48190
|
var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
48201
48191
|
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
48202
48192
|
const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
|
|
@@ -48209,10 +48199,10 @@ var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, bin
|
|
|
48209
48199
|
encoding,
|
|
48210
48200
|
preserveNewlines
|
|
48211
48201
|
});
|
|
48212
|
-
const duplex2 = new
|
|
48202
|
+
const duplex2 = new import_node_stream8.Duplex({
|
|
48213
48203
|
read,
|
|
48214
48204
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
48215
|
-
destroy:
|
|
48205
|
+
destroy: (0, import_node_util11.callbackify)(onDuplexDestroy.bind(void 0, {
|
|
48216
48206
|
subprocessStdout,
|
|
48217
48207
|
subprocessStdin,
|
|
48218
48208
|
subprocess,
|
|
@@ -48349,7 +48339,7 @@ var handleAsyncOptions = ({ timeout, signal, ...options }) => {
|
|
|
48349
48339
|
var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verboseInfo, command, escapedCommand, fileDescriptors }) => {
|
|
48350
48340
|
let subprocess;
|
|
48351
48341
|
try {
|
|
48352
|
-
subprocess = spawn(...concatenateShell(file, commandArguments, options));
|
|
48342
|
+
subprocess = (0, import_node_child_process5.spawn)(...concatenateShell(file, commandArguments, options));
|
|
48353
48343
|
} catch (error2) {
|
|
48354
48344
|
return handleEarlyError({
|
|
48355
48345
|
error: error2,
|
|
@@ -48362,7 +48352,7 @@ var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verbos
|
|
|
48362
48352
|
});
|
|
48363
48353
|
}
|
|
48364
48354
|
const controller = new AbortController();
|
|
48365
|
-
setMaxListeners(Number.POSITIVE_INFINITY, controller.signal);
|
|
48355
|
+
(0, import_node_events14.setMaxListeners)(Number.POSITIVE_INFINITY, controller.signal);
|
|
48366
48356
|
const originalStreams = [...subprocess.stdio];
|
|
48367
48357
|
pipeOutputAsync(subprocess, fileDescriptors, controller);
|
|
48368
48358
|
cleanupOnExit(subprocess, options, controller);
|
|
@@ -48634,8 +48624,8 @@ function sanitizeRefFragment(value) {
|
|
|
48634
48624
|
return value.trim().replace(/[^A-Za-z0-9._/-]+/g, "-").replace(/\/{2,}/g, "/").replace(/^\/+|\/+$/g, "").replace(/^-+|-+$/g, "").slice(0, 120);
|
|
48635
48625
|
}
|
|
48636
48626
|
function normalizeRepoRelativePath(value) {
|
|
48637
|
-
const normalized =
|
|
48638
|
-
if (!normalized || normalized === "." || normalized === ".." || normalized.startsWith("../") ||
|
|
48627
|
+
const normalized = import_path4.default.posix.normalize(value.replace(/\\/g, "/").trim());
|
|
48628
|
+
if (!normalized || normalized === "." || normalized === ".." || normalized.startsWith("../") || import_path4.default.posix.isAbsolute(normalized)) {
|
|
48639
48629
|
throw new RemixError("Git returned an invalid repository-relative path.", {
|
|
48640
48630
|
exitCode: 1,
|
|
48641
48631
|
hint: `Path: ${value}`
|
|
@@ -48644,21 +48634,21 @@ function normalizeRepoRelativePath(value) {
|
|
|
48644
48634
|
return normalized;
|
|
48645
48635
|
}
|
|
48646
48636
|
function resolveRepoRelativePath(repoRoot, relativePath) {
|
|
48647
|
-
return
|
|
48637
|
+
return import_path4.default.resolve(repoRoot, ...relativePath.split("/"));
|
|
48648
48638
|
}
|
|
48649
48639
|
function isWithinRepoRoot(repoRoot, targetPath) {
|
|
48650
|
-
const relative =
|
|
48651
|
-
return relative === "" || !relative.startsWith("..") && !
|
|
48640
|
+
const relative = import_path4.default.relative(repoRoot, targetPath);
|
|
48641
|
+
return relative === "" || !relative.startsWith("..") && !import_path4.default.isAbsolute(relative);
|
|
48652
48642
|
}
|
|
48653
48643
|
function sha256Hex(value) {
|
|
48654
|
-
return createHash("sha256").update(value).digest("hex");
|
|
48644
|
+
return (0, import_crypto.createHash)("sha256").update(value).digest("hex");
|
|
48655
48645
|
}
|
|
48656
48646
|
function resolveGitReportedPath(cwd, reportedPath) {
|
|
48657
48647
|
const value = reportedPath.trim();
|
|
48658
48648
|
if (!value) {
|
|
48659
48649
|
throw new RemixError("Git returned an empty internal path.", { exitCode: 1 });
|
|
48660
48650
|
}
|
|
48661
|
-
return
|
|
48651
|
+
return import_path4.default.isAbsolute(value) ? value : import_path4.default.resolve(cwd, value);
|
|
48662
48652
|
}
|
|
48663
48653
|
function parseGitNameStatusZ(stdout) {
|
|
48664
48654
|
const tokens = stdout.split("\0");
|
|
@@ -48729,12 +48719,12 @@ function classifyGitApplyFailure(detail) {
|
|
|
48729
48719
|
return "unknown";
|
|
48730
48720
|
}
|
|
48731
48721
|
async function pruneEmptyParentDirectories(repoRoot, filePath) {
|
|
48732
|
-
let current =
|
|
48722
|
+
let current = import_path4.default.dirname(filePath);
|
|
48733
48723
|
while (current !== repoRoot && isWithinRepoRoot(repoRoot, current)) {
|
|
48734
|
-
const entries = await
|
|
48724
|
+
const entries = await import_promises15.default.readdir(current).catch(() => null);
|
|
48735
48725
|
if (!entries || entries.length > 0) return;
|
|
48736
|
-
await
|
|
48737
|
-
current =
|
|
48726
|
+
await import_promises15.default.rmdir(current).catch(() => void 0);
|
|
48727
|
+
current = import_path4.default.dirname(current);
|
|
48738
48728
|
}
|
|
48739
48729
|
}
|
|
48740
48730
|
async function findGitRoot(startDir) {
|
|
@@ -48829,8 +48819,8 @@ async function getWorkspaceSnapshot(cwd) {
|
|
|
48829
48819
|
throw new RemixError("Failed to resolve local HEAD commit.", { exitCode: 1 });
|
|
48830
48820
|
}
|
|
48831
48821
|
const includedUntrackedPaths = Array.from(new Set((await listUntrackedFiles(cwd)).map((entry) => normalizeRepoRelativePath(entry))));
|
|
48832
|
-
const tempDir = await
|
|
48833
|
-
const tempIndexPath =
|
|
48822
|
+
const tempDir = await import_promises15.default.mkdtemp(import_path4.default.join(import_os2.default.tmpdir(), "remix-index-"));
|
|
48823
|
+
const tempIndexPath = import_path4.default.join(tempDir, "index");
|
|
48834
48824
|
const env = { ...process.env, GIT_INDEX_FILE: tempIndexPath };
|
|
48835
48825
|
try {
|
|
48836
48826
|
try {
|
|
@@ -48853,14 +48843,14 @@ async function getWorkspaceSnapshot(cwd) {
|
|
|
48853
48843
|
});
|
|
48854
48844
|
}
|
|
48855
48845
|
} finally {
|
|
48856
|
-
await
|
|
48846
|
+
await import_promises15.default.rm(tempDir, { recursive: true, force: true }).catch(() => void 0);
|
|
48857
48847
|
}
|
|
48858
48848
|
}
|
|
48859
48849
|
async function writeTempUnifiedDiffBackup(diff, prefix = "remix-add-backup") {
|
|
48860
48850
|
const safePrefix = prefix.replace(/[^a-zA-Z0-9._-]+/g, "-") || "remix-add-backup";
|
|
48861
|
-
const tmpDir = await
|
|
48862
|
-
const backupPath =
|
|
48863
|
-
await
|
|
48851
|
+
const tmpDir = await import_promises15.default.mkdtemp(import_path4.default.join(import_os2.default.tmpdir(), `${safePrefix}-`));
|
|
48852
|
+
const backupPath = import_path4.default.join(tmpDir, "submitted.diff");
|
|
48853
|
+
await import_promises15.default.writeFile(backupPath, diff, "utf8");
|
|
48864
48854
|
return { backupPath, diffSha256: sha256Hex(diff) };
|
|
48865
48855
|
}
|
|
48866
48856
|
async function validateUnifiedDiff(cwd, diff) {
|
|
@@ -48877,7 +48867,7 @@ async function validateUnifiedDiff(cwd, diff) {
|
|
|
48877
48867
|
detail
|
|
48878
48868
|
};
|
|
48879
48869
|
} finally {
|
|
48880
|
-
await
|
|
48870
|
+
await import_promises15.default.rm(import_path4.default.dirname(backupPath), { recursive: true, force: true }).catch(() => void 0);
|
|
48881
48871
|
}
|
|
48882
48872
|
}
|
|
48883
48873
|
async function preserveWorkspaceChanges(cwd, prefix = "remix-add-preserve") {
|
|
@@ -48897,7 +48887,7 @@ async function preserveWorkspaceChanges(cwd, prefix = "remix-add-preserve") {
|
|
|
48897
48887
|
}
|
|
48898
48888
|
async function reapplyPreservedWorkspaceChanges(cwd, preserved, operation = "`remix collab add`") {
|
|
48899
48889
|
const patchFilePath = preserved.preservedDiffPath;
|
|
48900
|
-
const tempPatchHash = await
|
|
48890
|
+
const tempPatchHash = await import_promises15.default.readFile(patchFilePath, "utf8").then((content) => sha256Hex(content)).catch(() => null);
|
|
48901
48891
|
if (!tempPatchHash) {
|
|
48902
48892
|
return { status: "failed", detail: "Preserved diff artifact is missing." };
|
|
48903
48893
|
}
|
|
@@ -48937,8 +48927,8 @@ async function createGitBundle(cwd, bundleName = "repository.bundle") {
|
|
|
48937
48927
|
throw new RemixError("Failed to resolve local HEAD commit.", { exitCode: 1 });
|
|
48938
48928
|
}
|
|
48939
48929
|
const safeName = bundleName.replace(/[^a-zA-Z0-9._-]+/g, "_");
|
|
48940
|
-
const tmpDir = await
|
|
48941
|
-
const bundlePath =
|
|
48930
|
+
const tmpDir = await import_promises15.default.mkdtemp(import_path4.default.join(import_os2.default.tmpdir(), "remix-bundle-"));
|
|
48931
|
+
const bundlePath = import_path4.default.join(tmpDir, safeName);
|
|
48942
48932
|
const res = await runGitDetailed(["bundle", "create", bundlePath, "--all", "--tags"], cwd);
|
|
48943
48933
|
if (res.exitCode !== 0) {
|
|
48944
48934
|
const detail = [res.stderr.trim(), res.stdout.trim()].filter(Boolean).join("\n\n");
|
|
@@ -49047,7 +49037,7 @@ async function discardCapturedUntrackedChanges(repoRoot, capturedPaths) {
|
|
|
49047
49037
|
hint: `Path: ${relativePath}`
|
|
49048
49038
|
});
|
|
49049
49039
|
}
|
|
49050
|
-
await
|
|
49040
|
+
await import_promises15.default.rm(absolutePath, { recursive: true, force: true }).catch((err) => {
|
|
49051
49041
|
throw new RemixError("Failed to remove a captured untracked path before syncing.", {
|
|
49052
49042
|
exitCode: 1,
|
|
49053
49043
|
hint: err instanceof Error ? `${relativePath}
|
|
@@ -49089,7 +49079,7 @@ async function importGitBundle(cwd, bundlePath, bundleRef) {
|
|
|
49089
49079
|
}
|
|
49090
49080
|
}
|
|
49091
49081
|
async function cloneGitBundleToDirectory(bundlePath, targetDir) {
|
|
49092
|
-
const parentDir =
|
|
49082
|
+
const parentDir = import_path4.default.dirname(targetDir);
|
|
49093
49083
|
const cloneRes = await runGitDetailed(["clone", bundlePath, targetDir], parentDir);
|
|
49094
49084
|
if (cloneRes.exitCode !== 0) {
|
|
49095
49085
|
const detail = [cloneRes.stderr.trim(), cloneRes.stdout.trim()].filter(Boolean).join("\n\n");
|
|
@@ -49109,10 +49099,10 @@ async function cloneGitBundleToDirectory(bundlePath, targetDir) {
|
|
|
49109
49099
|
}
|
|
49110
49100
|
async function ensureGitInfoExcludeEntries(cwd, entries) {
|
|
49111
49101
|
const excludePath = await getGitPath(cwd, "info/exclude");
|
|
49112
|
-
await
|
|
49102
|
+
await import_promises15.default.mkdir(import_path4.default.dirname(excludePath), { recursive: true });
|
|
49113
49103
|
let current = "";
|
|
49114
49104
|
try {
|
|
49115
|
-
current = await
|
|
49105
|
+
current = await import_promises15.default.readFile(excludePath, "utf8");
|
|
49116
49106
|
} catch {
|
|
49117
49107
|
}
|
|
49118
49108
|
const lines = new Set(current.split("\n").map((line) => line.trim()).filter(Boolean));
|
|
@@ -49124,7 +49114,7 @@ async function ensureGitInfoExcludeEntries(cwd, entries) {
|
|
|
49124
49114
|
changed = true;
|
|
49125
49115
|
}
|
|
49126
49116
|
if (!changed) return;
|
|
49127
|
-
await
|
|
49117
|
+
await import_promises15.default.writeFile(excludePath, `${Array.from(lines).join("\n")}
|
|
49128
49118
|
`, "utf8");
|
|
49129
49119
|
}
|
|
49130
49120
|
async function ensureCommitExists(cwd, commitHash) {
|
|
@@ -49185,8 +49175,8 @@ async function hardResetToCommit(cwd, commitHash, operation = "`remix collab rec
|
|
|
49185
49175
|
async function buildRepoFingerprint(params) {
|
|
49186
49176
|
const remote = normalizeGitRemote(params.remoteUrl);
|
|
49187
49177
|
const defaultBranch = params.defaultBranch?.trim().toLowerCase() || "";
|
|
49188
|
-
const payload = remote ? { remote, defaultBranch } : { local:
|
|
49189
|
-
return createHash("sha256").update(JSON.stringify(payload)).digest("hex");
|
|
49178
|
+
const payload = remote ? { remote, defaultBranch } : { local: import_path4.default.resolve(params.gitRoot).toLowerCase(), defaultBranch };
|
|
49179
|
+
return (0, import_crypto.createHash)("sha256").update(JSON.stringify(payload)).digest("hex");
|
|
49190
49180
|
}
|
|
49191
49181
|
function summarizeUnifiedDiff(diff) {
|
|
49192
49182
|
const lines = diff.split("\n");
|
|
@@ -49202,27 +49192,27 @@ function summarizeUnifiedDiff(diff) {
|
|
|
49202
49192
|
}
|
|
49203
49193
|
|
|
49204
49194
|
// node_modules/@remixhq/core/dist/collab.js
|
|
49205
|
-
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49210
|
-
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
|
|
49214
|
-
|
|
49215
|
-
|
|
49216
|
-
|
|
49217
|
-
|
|
49218
|
-
|
|
49219
|
-
|
|
49220
|
-
|
|
49221
|
-
|
|
49222
|
-
|
|
49223
|
-
|
|
49224
|
-
|
|
49225
|
-
|
|
49195
|
+
var import_promises16 = __toESM(require("fs/promises"), 1);
|
|
49196
|
+
var import_path5 = __toESM(require("path"), 1);
|
|
49197
|
+
var import_crypto2 = require("crypto");
|
|
49198
|
+
var import_promises17 = __toESM(require("fs/promises"), 1);
|
|
49199
|
+
var import_os3 = __toESM(require("os"), 1);
|
|
49200
|
+
var import_path6 = __toESM(require("path"), 1);
|
|
49201
|
+
var import_promises18 = __toESM(require("fs/promises"), 1);
|
|
49202
|
+
var import_os4 = __toESM(require("os"), 1);
|
|
49203
|
+
var import_path7 = __toESM(require("path"), 1);
|
|
49204
|
+
var import_promises19 = __toESM(require("fs/promises"), 1);
|
|
49205
|
+
var import_os5 = __toESM(require("os"), 1);
|
|
49206
|
+
var import_path8 = __toESM(require("path"), 1);
|
|
49207
|
+
var import_promises20 = __toESM(require("fs/promises"), 1);
|
|
49208
|
+
var import_path9 = __toESM(require("path"), 1);
|
|
49209
|
+
var import_crypto3 = __toESM(require("crypto"), 1);
|
|
49210
|
+
var import_fs = __toESM(require("fs"), 1);
|
|
49211
|
+
var import_fs2 = __toESM(require("fs"), 1);
|
|
49212
|
+
var import_stream3 = require("stream");
|
|
49213
|
+
var import_promises21 = __toESM(require("fs/promises"), 1);
|
|
49214
|
+
var import_os6 = __toESM(require("os"), 1);
|
|
49215
|
+
var import_path10 = __toESM(require("path"), 1);
|
|
49226
49216
|
function describeBranch(value) {
|
|
49227
49217
|
const normalized = String(value ?? "").trim();
|
|
49228
49218
|
return normalized || "(detached)";
|
|
@@ -49272,7 +49262,7 @@ function sleep2(ms) {
|
|
|
49272
49262
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
49273
49263
|
}
|
|
49274
49264
|
function buildDeterministicIdempotencyKey(parts) {
|
|
49275
|
-
return
|
|
49265
|
+
return (0, import_crypto2.createHash)("sha256").update(JSON.stringify(parts)).digest("hex");
|
|
49276
49266
|
}
|
|
49277
49267
|
function formatCliErrorDetail(err) {
|
|
49278
49268
|
if (err instanceof RemixError) {
|
|
@@ -49638,7 +49628,7 @@ function createOwner(params) {
|
|
|
49638
49628
|
operation: params.operation,
|
|
49639
49629
|
repoRoot: params.repoRoot,
|
|
49640
49630
|
pid: process.pid,
|
|
49641
|
-
hostname:
|
|
49631
|
+
hostname: import_os3.default.hostname(),
|
|
49642
49632
|
startedAt: now,
|
|
49643
49633
|
heartbeatAt: now,
|
|
49644
49634
|
version: process.version,
|
|
@@ -49646,12 +49636,12 @@ function createOwner(params) {
|
|
|
49646
49636
|
};
|
|
49647
49637
|
}
|
|
49648
49638
|
async function writeOwnerMetadata(ownerPath, owner) {
|
|
49649
|
-
await
|
|
49639
|
+
await import_promises17.default.writeFile(ownerPath, `${JSON.stringify(owner, null, 2)}
|
|
49650
49640
|
`, "utf8");
|
|
49651
49641
|
}
|
|
49652
49642
|
async function readOwnerMetadata(ownerPath) {
|
|
49653
49643
|
try {
|
|
49654
|
-
const raw = await
|
|
49644
|
+
const raw = await import_promises17.default.readFile(ownerPath, "utf8");
|
|
49655
49645
|
const parsed = JSON.parse(raw);
|
|
49656
49646
|
if (!parsed || typeof parsed !== "object") return null;
|
|
49657
49647
|
if (!parsed.operation || !parsed.repoRoot || typeof parsed.pid !== "number" || !parsed.startedAt || !parsed.heartbeatAt) {
|
|
@@ -49673,7 +49663,7 @@ async function readOwnerMetadata(ownerPath) {
|
|
|
49673
49663
|
}
|
|
49674
49664
|
async function isProcessAlive(owner) {
|
|
49675
49665
|
if (!owner) return null;
|
|
49676
|
-
if (owner.hostname !==
|
|
49666
|
+
if (owner.hostname !== import_os3.default.hostname()) return null;
|
|
49677
49667
|
try {
|
|
49678
49668
|
process.kill(owner.pid, 0);
|
|
49679
49669
|
return true;
|
|
@@ -49688,23 +49678,23 @@ async function getLastKnownUpdateMs(lockDir, ownerPath, owner) {
|
|
|
49688
49678
|
if (Number.isFinite(heartbeatMs)) return heartbeatMs;
|
|
49689
49679
|
const startedMs = owner ? Date.parse(owner.startedAt) : Number.NaN;
|
|
49690
49680
|
if (Number.isFinite(startedMs)) return startedMs;
|
|
49691
|
-
const stat = await
|
|
49681
|
+
const stat = await import_promises17.default.stat(ownerPath).catch(() => null);
|
|
49692
49682
|
if (stat) return stat.mtimeMs;
|
|
49693
|
-
const dirStat = await
|
|
49683
|
+
const dirStat = await import_promises17.default.stat(lockDir).catch(() => null);
|
|
49694
49684
|
if (dirStat) return dirStat.mtimeMs;
|
|
49695
49685
|
return 0;
|
|
49696
49686
|
}
|
|
49697
49687
|
async function ensureLockDir(lockDir) {
|
|
49698
|
-
await
|
|
49688
|
+
await import_promises17.default.mkdir(import_path6.default.dirname(lockDir), { recursive: true });
|
|
49699
49689
|
}
|
|
49700
49690
|
async function tryAcquireLock(lockDir, ownerPath, owner) {
|
|
49701
49691
|
try {
|
|
49702
49692
|
await ensureLockDir(lockDir);
|
|
49703
|
-
await
|
|
49693
|
+
await import_promises17.default.mkdir(lockDir);
|
|
49704
49694
|
try {
|
|
49705
49695
|
await writeOwnerMetadata(ownerPath, owner);
|
|
49706
49696
|
} catch (error2) {
|
|
49707
|
-
await
|
|
49697
|
+
await import_promises17.default.rm(lockDir, { recursive: true, force: true }).catch(() => void 0);
|
|
49708
49698
|
throw error2;
|
|
49709
49699
|
}
|
|
49710
49700
|
return true;
|
|
@@ -49753,7 +49743,7 @@ async function acquirePhysicalLock(lockDir, ownerPath, owner, options) {
|
|
|
49753
49743
|
const alive = await isProcessAlive(currentOwner2);
|
|
49754
49744
|
if (ageMs >= options.staleMs && alive !== true) {
|
|
49755
49745
|
notices.push(buildStaleRecoveryNotice(currentOwner2));
|
|
49756
|
-
await
|
|
49746
|
+
await import_promises17.default.rm(lockDir, { recursive: true, force: true }).catch(() => void 0);
|
|
49757
49747
|
continue;
|
|
49758
49748
|
}
|
|
49759
49749
|
await sleep22(RETRY_DELAY_MS);
|
|
@@ -49778,7 +49768,7 @@ function startHeartbeat(lockDir, ownerPath, owner, heartbeatMs) {
|
|
|
49778
49768
|
};
|
|
49779
49769
|
owner.heartbeatAt = nextOwner.heartbeatAt;
|
|
49780
49770
|
void writeOwnerMetadata(ownerPath, nextOwner).catch(() => void 0);
|
|
49781
|
-
void
|
|
49771
|
+
void import_promises17.default.utimes(lockDir, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()).catch(() => void 0);
|
|
49782
49772
|
}, heartbeatMs);
|
|
49783
49773
|
}
|
|
49784
49774
|
async function releaseReentrantLock(lockDir) {
|
|
@@ -49788,12 +49778,12 @@ async function releaseReentrantLock(lockDir) {
|
|
|
49788
49778
|
if (held.count > 0) return;
|
|
49789
49779
|
clearInterval(held.heartbeatTimer);
|
|
49790
49780
|
heldLocks.delete(lockDir);
|
|
49791
|
-
await
|
|
49781
|
+
await import_promises17.default.rm(lockDir, { recursive: true, force: true }).catch(() => void 0);
|
|
49792
49782
|
}
|
|
49793
49783
|
async function withRepoMutationLock(options, fn) {
|
|
49794
49784
|
const repoRoot = await findGitRoot(options.cwd);
|
|
49795
49785
|
const gitCommonDir = await getGitCommonDir(repoRoot);
|
|
49796
|
-
const lockDir =
|
|
49786
|
+
const lockDir = import_path6.default.join(gitCommonDir, "remix", "locks", "repo-mutation.lock");
|
|
49797
49787
|
const owner = createOwner({
|
|
49798
49788
|
operation: options.operation,
|
|
49799
49789
|
repoRoot,
|
|
@@ -49805,11 +49795,11 @@ async function withRepoMutationLock(options, fn) {
|
|
|
49805
49795
|
const existing = heldLocks.get(lockDir);
|
|
49806
49796
|
let notices = [];
|
|
49807
49797
|
if (!existing) {
|
|
49808
|
-
notices = await acquirePhysicalLock(lockDir,
|
|
49798
|
+
notices = await acquirePhysicalLock(lockDir, import_path6.default.join(lockDir, "owner.json"), owner, {
|
|
49809
49799
|
acquireTimeoutMs,
|
|
49810
49800
|
staleMs
|
|
49811
49801
|
});
|
|
49812
|
-
const ownerPath =
|
|
49802
|
+
const ownerPath = import_path6.default.join(lockDir, "owner.json");
|
|
49813
49803
|
heldLocks.set(lockDir, {
|
|
49814
49804
|
count: 1,
|
|
49815
49805
|
lockDir,
|
|
@@ -49928,10 +49918,10 @@ async function collabSync(params) {
|
|
|
49928
49918
|
allowBranchMismatch: params.allowBranchMismatch,
|
|
49929
49919
|
operation: "`remix collab sync`"
|
|
49930
49920
|
});
|
|
49931
|
-
const tempDir = await
|
|
49932
|
-
const bundlePath =
|
|
49921
|
+
const tempDir = await import_promises18.default.mkdtemp(import_path7.default.join(import_os4.default.tmpdir(), "remix-sync-"));
|
|
49922
|
+
const bundlePath = import_path7.default.join(tempDir, "sync-local.bundle");
|
|
49933
49923
|
try {
|
|
49934
|
-
await
|
|
49924
|
+
await import_promises18.default.writeFile(bundlePath, Buffer.from(bundleBase64, "base64"));
|
|
49935
49925
|
await importGitBundle(lockedRepoRoot, bundlePath, bundleRef);
|
|
49936
49926
|
await ensureCommitExists(lockedRepoRoot, sync.targetCommitHash);
|
|
49937
49927
|
const localCommitHash = await fastForwardToCommit(lockedRepoRoot, sync.targetCommitHash);
|
|
@@ -49943,7 +49933,7 @@ async function collabSync(params) {
|
|
|
49943
49933
|
...warnings.length > 0 ? { warnings } : {}
|
|
49944
49934
|
};
|
|
49945
49935
|
} finally {
|
|
49946
|
-
await
|
|
49936
|
+
await import_promises18.default.rm(tempDir, { recursive: true, force: true });
|
|
49947
49937
|
}
|
|
49948
49938
|
}
|
|
49949
49939
|
);
|
|
@@ -50093,7 +50083,7 @@ async function collabAdd(params) {
|
|
|
50093
50083
|
const replayResp = await params.api.startChangeStepReplay(binding.currentAppId, {
|
|
50094
50084
|
prompt,
|
|
50095
50085
|
assistantResponse: assistantResponse ?? void 0,
|
|
50096
|
-
diff: await
|
|
50086
|
+
diff: await import_promises16.default.readFile(preserved.preservedDiffPath, "utf8"),
|
|
50097
50087
|
baseCommitHash: preserved.baseHeadCommitHash,
|
|
50098
50088
|
targetHeadCommitHash: headCommitHash,
|
|
50099
50089
|
expectedPaths: preserved.stagePlan.expectedPaths,
|
|
@@ -50225,7 +50215,7 @@ async function collabAdd(params) {
|
|
|
50225
50215
|
dryRun: false,
|
|
50226
50216
|
allowBranchMismatch: params.allowBranchMismatch
|
|
50227
50217
|
});
|
|
50228
|
-
await
|
|
50218
|
+
await import_promises16.default.rm(import_path5.default.dirname(backupPath), { recursive: true, force: true }).catch(() => void 0);
|
|
50229
50219
|
} catch (err) {
|
|
50230
50220
|
const detail = formatCliErrorDetail(err);
|
|
50231
50221
|
const hint = [
|
|
@@ -50434,28 +50424,28 @@ async function collabApprove(params) {
|
|
|
50434
50424
|
}
|
|
50435
50425
|
async function pathExists(targetPath) {
|
|
50436
50426
|
try {
|
|
50437
|
-
await
|
|
50427
|
+
await import_promises19.default.access(targetPath);
|
|
50438
50428
|
return true;
|
|
50439
50429
|
} catch {
|
|
50440
50430
|
return false;
|
|
50441
50431
|
}
|
|
50442
50432
|
}
|
|
50443
50433
|
async function statIsDirectory(targetPath) {
|
|
50444
|
-
const stats = await
|
|
50434
|
+
const stats = await import_promises19.default.stat(targetPath).catch(() => null);
|
|
50445
50435
|
return Boolean(stats?.isDirectory());
|
|
50446
50436
|
}
|
|
50447
50437
|
async function findContainingGitRoot(startPath) {
|
|
50448
|
-
let current =
|
|
50438
|
+
let current = import_path8.default.resolve(startPath);
|
|
50449
50439
|
while (true) {
|
|
50450
|
-
if (await pathExists(
|
|
50451
|
-
const parent =
|
|
50440
|
+
if (await pathExists(import_path8.default.join(current, ".git"))) return current;
|
|
50441
|
+
const parent = import_path8.default.dirname(current);
|
|
50452
50442
|
if (parent === current) return null;
|
|
50453
50443
|
current = parent;
|
|
50454
50444
|
}
|
|
50455
50445
|
}
|
|
50456
50446
|
function isSubpath(parentPath, candidatePath) {
|
|
50457
|
-
const relative =
|
|
50458
|
-
return relative === "" || !relative.startsWith("..") && !
|
|
50447
|
+
const relative = import_path8.default.relative(parentPath, candidatePath);
|
|
50448
|
+
return relative === "" || !relative.startsWith("..") && !import_path8.default.isAbsolute(relative);
|
|
50459
50449
|
}
|
|
50460
50450
|
function buildPreferredCheckoutBranch(appId) {
|
|
50461
50451
|
const normalized = appId.trim().replace(/[^a-zA-Z0-9._-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -50463,8 +50453,8 @@ function buildPreferredCheckoutBranch(appId) {
|
|
|
50463
50453
|
}
|
|
50464
50454
|
async function resolveCheckoutDestination(params) {
|
|
50465
50455
|
if (params.outputDir?.trim()) {
|
|
50466
|
-
const preferredRepoRoot =
|
|
50467
|
-
const parentDir2 =
|
|
50456
|
+
const preferredRepoRoot = import_path8.default.resolve(params.outputDir.trim());
|
|
50457
|
+
const parentDir2 = import_path8.default.dirname(preferredRepoRoot);
|
|
50468
50458
|
if (!await statIsDirectory(parentDir2)) {
|
|
50469
50459
|
throw new RemixError("Remix output parent directory does not exist.", {
|
|
50470
50460
|
exitCode: 2,
|
|
@@ -50477,7 +50467,7 @@ async function resolveCheckoutDestination(params) {
|
|
|
50477
50467
|
explicitOutputDir: true
|
|
50478
50468
|
};
|
|
50479
50469
|
}
|
|
50480
|
-
const parentDir =
|
|
50470
|
+
const parentDir = import_path8.default.resolve(params.cwd);
|
|
50481
50471
|
if (!await statIsDirectory(parentDir)) {
|
|
50482
50472
|
throw new RemixError("Remix output parent directory does not exist.", {
|
|
50483
50473
|
exitCode: 2,
|
|
@@ -50485,7 +50475,7 @@ async function resolveCheckoutDestination(params) {
|
|
|
50485
50475
|
});
|
|
50486
50476
|
}
|
|
50487
50477
|
return {
|
|
50488
|
-
preferredRepoRoot:
|
|
50478
|
+
preferredRepoRoot: import_path8.default.join(parentDir, params.defaultDirName),
|
|
50489
50479
|
parentDir,
|
|
50490
50480
|
explicitOutputDir: false
|
|
50491
50481
|
};
|
|
@@ -50519,20 +50509,20 @@ async function materializeAppCheckout(params) {
|
|
|
50519
50509
|
explicitOutputDir: destination.explicitOutputDir
|
|
50520
50510
|
});
|
|
50521
50511
|
const repoRoot = destination.explicitOutputDir ? await reserveDirectory(destination.preferredRepoRoot) : await reserveAvailableDirPath(destination.preferredRepoRoot);
|
|
50522
|
-
const bundleTempDir = await
|
|
50523
|
-
const bundlePath =
|
|
50512
|
+
const bundleTempDir = await import_promises19.default.mkdtemp(import_path8.default.join(import_os5.default.tmpdir(), "remix-checkout-"));
|
|
50513
|
+
const bundlePath = import_path8.default.join(bundleTempDir, "repository.bundle");
|
|
50524
50514
|
try {
|
|
50525
50515
|
const bundle = await params.api.downloadAppBundle(params.appId);
|
|
50526
|
-
await
|
|
50516
|
+
await import_promises19.default.writeFile(bundlePath, bundle.data);
|
|
50527
50517
|
await cloneGitBundleToDirectory(bundlePath, repoRoot);
|
|
50528
50518
|
await checkoutLocalBranch(repoRoot, buildPreferredCheckoutBranch(params.appId));
|
|
50529
50519
|
await ensureGitInfoExcludeEntries(repoRoot, [".remix/"]);
|
|
50530
50520
|
} catch (err) {
|
|
50531
|
-
await
|
|
50521
|
+
await import_promises19.default.rm(repoRoot, { recursive: true, force: true }).catch(() => {
|
|
50532
50522
|
});
|
|
50533
50523
|
throw err;
|
|
50534
50524
|
} finally {
|
|
50535
|
-
await
|
|
50525
|
+
await import_promises19.default.rm(bundleTempDir, { recursive: true, force: true });
|
|
50536
50526
|
}
|
|
50537
50527
|
const remoteUrl = normalizeGitRemote(await getRemoteOriginUrl(repoRoot));
|
|
50538
50528
|
const defaultBranch = await getDefaultBranch(repoRoot) ?? await getCurrentBranch(repoRoot) ?? null;
|
|
@@ -50686,9 +50676,9 @@ async function collabUpdateMemberRole(params) {
|
|
|
50686
50676
|
};
|
|
50687
50677
|
}
|
|
50688
50678
|
async function sha256FileHex(filePath) {
|
|
50689
|
-
const hash =
|
|
50679
|
+
const hash = import_crypto3.default.createHash("sha256");
|
|
50690
50680
|
await new Promise((resolve, reject) => {
|
|
50691
|
-
const stream =
|
|
50681
|
+
const stream = import_fs.default.createReadStream(filePath);
|
|
50692
50682
|
stream.on("data", (chunk) => hash.update(chunk));
|
|
50693
50683
|
stream.on("error", reject);
|
|
50694
50684
|
stream.on("end", () => resolve());
|
|
@@ -50696,13 +50686,13 @@ async function sha256FileHex(filePath) {
|
|
|
50696
50686
|
return hash.digest("hex");
|
|
50697
50687
|
}
|
|
50698
50688
|
async function uploadPresigned(params) {
|
|
50699
|
-
const stats = await
|
|
50689
|
+
const stats = await import_fs2.default.promises.stat(params.filePath).catch(() => null);
|
|
50700
50690
|
if (!stats || !stats.isFile()) {
|
|
50701
50691
|
throw new RemixError("Upload file not found.", { exitCode: 2 });
|
|
50702
50692
|
}
|
|
50703
50693
|
const totalBytes = stats.size;
|
|
50704
|
-
const fileStream =
|
|
50705
|
-
const pass = new
|
|
50694
|
+
const fileStream = import_fs2.default.createReadStream(params.filePath);
|
|
50695
|
+
const pass = new import_stream3.PassThrough();
|
|
50706
50696
|
let sentBytes = 0;
|
|
50707
50697
|
fileStream.on("data", (chunk) => {
|
|
50708
50698
|
sentBytes += chunk.length;
|
|
@@ -50781,7 +50771,7 @@ async function collabInit(params) {
|
|
|
50781
50771
|
}
|
|
50782
50772
|
const { bundlePath, headCommitHash } = await createGitBundle(repoRoot, "repository.bundle");
|
|
50783
50773
|
const bundleSha = await sha256FileHex(bundlePath);
|
|
50784
|
-
const bundleSize = (await
|
|
50774
|
+
const bundleSize = (await import_promises20.default.stat(bundlePath)).size;
|
|
50785
50775
|
const presignResp = await params.api.presignImportUploadFirstParty({
|
|
50786
50776
|
file: {
|
|
50787
50777
|
name: "repository.bundle",
|
|
@@ -50798,7 +50788,7 @@ async function collabInit(params) {
|
|
|
50798
50788
|
});
|
|
50799
50789
|
const importResp = await params.api.importFromUploadFirstParty({
|
|
50800
50790
|
uploadId: String(presign.uploadId),
|
|
50801
|
-
appName: params.appName?.trim() ||
|
|
50791
|
+
appName: params.appName?.trim() || import_path9.default.basename(repoRoot),
|
|
50802
50792
|
path: params.path?.trim() || void 0,
|
|
50803
50793
|
platform: "generic",
|
|
50804
50794
|
isPublic: false,
|
|
@@ -50930,13 +50920,13 @@ async function collabReconcile(params) {
|
|
|
50930
50920
|
return previewResult;
|
|
50931
50921
|
}
|
|
50932
50922
|
const { bundlePath, headCommitHash: bundledHeadCommitHash } = await createGitBundle(repoRoot, "reconcile-local.bundle");
|
|
50933
|
-
const bundleTempDir =
|
|
50923
|
+
const bundleTempDir = import_path10.default.dirname(bundlePath);
|
|
50934
50924
|
try {
|
|
50935
|
-
const bundleStat = await
|
|
50925
|
+
const bundleStat = await import_promises21.default.stat(bundlePath);
|
|
50936
50926
|
const checksumSha256 = await sha256FileHex(bundlePath);
|
|
50937
50927
|
const presignResp = await params.api.presignImportUploadFirstParty({
|
|
50938
50928
|
file: {
|
|
50939
|
-
name:
|
|
50929
|
+
name: import_path10.default.basename(bundlePath),
|
|
50940
50930
|
mimeType: "application/x-git-bundle",
|
|
50941
50931
|
size: bundleStat.size,
|
|
50942
50932
|
checksumSha256
|
|
@@ -50995,10 +50985,10 @@ async function collabReconcile(params) {
|
|
|
50995
50985
|
});
|
|
50996
50986
|
await hardResetToCommit(lockedRepoRoot, mergeBaseCommitHash, "`remix collab reconcile`");
|
|
50997
50987
|
const bundleResp = await params.api.downloadAppReconcileBundle(binding.currentAppId, reconcile2.id);
|
|
50998
|
-
const resultTempDir = await
|
|
50999
|
-
const resultBundlePath =
|
|
50988
|
+
const resultTempDir = await import_promises21.default.mkdtemp(import_path10.default.join(import_os6.default.tmpdir(), "remix-reconcile-"));
|
|
50989
|
+
const resultBundlePath = import_path10.default.join(resultTempDir, bundleResp.fileName ?? "reconcile-result.bundle");
|
|
51000
50990
|
try {
|
|
51001
|
-
await
|
|
50991
|
+
await import_promises21.default.writeFile(resultBundlePath, bundleResp.data);
|
|
51002
50992
|
await importGitBundle(lockedRepoRoot, resultBundlePath, resultBundleRef);
|
|
51003
50993
|
await ensureCommitExists(lockedRepoRoot, reconciledHeadCommitHash);
|
|
51004
50994
|
const localCommitHash = await fastForwardToCommit(lockedRepoRoot, reconciledHeadCommitHash);
|
|
@@ -51019,12 +51009,12 @@ async function collabReconcile(params) {
|
|
|
51019
51009
|
warnings: Array.from(/* @__PURE__ */ new Set([...previewResult.warnings, ...warnings]))
|
|
51020
51010
|
};
|
|
51021
51011
|
} finally {
|
|
51022
|
-
await
|
|
51012
|
+
await import_promises21.default.rm(resultTempDir, { recursive: true, force: true });
|
|
51023
51013
|
}
|
|
51024
51014
|
}
|
|
51025
51015
|
);
|
|
51026
51016
|
} finally {
|
|
51027
|
-
await
|
|
51017
|
+
await import_promises21.default.rm(bundleTempDir, { recursive: true, force: true });
|
|
51028
51018
|
}
|
|
51029
51019
|
}
|
|
51030
51020
|
async function collabReject(params) {
|
|
@@ -51667,12 +51657,12 @@ function parsePositiveIntEnv(name, fallback) {
|
|
|
51667
51657
|
}
|
|
51668
51658
|
function parseAllowedRoots(raw) {
|
|
51669
51659
|
if (!raw) return null;
|
|
51670
|
-
const roots = raw.split(
|
|
51660
|
+
const roots = raw.split(import_path11.default.delimiter).map((entry) => entry.trim()).filter(Boolean).map((entry) => import_path11.default.resolve(entry));
|
|
51671
51661
|
return roots.length > 0 ? roots : null;
|
|
51672
51662
|
}
|
|
51673
51663
|
function isWithinRoot(root, candidate) {
|
|
51674
|
-
const relative =
|
|
51675
|
-
return relative === "" || !relative.startsWith("..") && !
|
|
51664
|
+
const relative = import_path11.default.relative(root, candidate);
|
|
51665
|
+
return relative === "" || !relative.startsWith("..") && !import_path11.default.isAbsolute(relative);
|
|
51676
51666
|
}
|
|
51677
51667
|
function loadPolicy() {
|
|
51678
51668
|
return {
|
|
@@ -51684,7 +51674,7 @@ function loadPolicy() {
|
|
|
51684
51674
|
};
|
|
51685
51675
|
}
|
|
51686
51676
|
function resolvePolicyCwd(policy, cwd) {
|
|
51687
|
-
const resolved =
|
|
51677
|
+
const resolved = import_path11.default.resolve(cwd?.trim() || process.cwd());
|
|
51688
51678
|
if (!policy.allowedRepoRoots) return resolved;
|
|
51689
51679
|
if (policy.allowedRepoRoots.some((root) => isWithinRoot(root, resolved))) return resolved;
|
|
51690
51680
|
throw createPolicyError("Requested working directory is outside the allowed repository roots.", resolved);
|
|
@@ -53323,14 +53313,56 @@ async function startStdioServer(params) {
|
|
|
53323
53313
|
await server.connect(transport);
|
|
53324
53314
|
}
|
|
53325
53315
|
|
|
53316
|
+
// package.json
|
|
53317
|
+
var package_default = {
|
|
53318
|
+
name: "@remixhq/claude-plugin",
|
|
53319
|
+
version: "0.1.10",
|
|
53320
|
+
description: "Claude Code plugin for Remix collaboration workflows",
|
|
53321
|
+
homepage: "https://github.com/RemixDotOne/remix-claude-plugin",
|
|
53322
|
+
license: "MIT",
|
|
53323
|
+
repository: {
|
|
53324
|
+
type: "git",
|
|
53325
|
+
url: "https://github.com/RemixDotOne/remix-claude-plugin.git"
|
|
53326
|
+
},
|
|
53327
|
+
type: "module",
|
|
53328
|
+
engines: {
|
|
53329
|
+
node: ">=20"
|
|
53330
|
+
},
|
|
53331
|
+
publishConfig: {
|
|
53332
|
+
access: "public"
|
|
53333
|
+
},
|
|
53334
|
+
files: [
|
|
53335
|
+
"dist",
|
|
53336
|
+
".claude-plugin/plugin.json",
|
|
53337
|
+
".mcp.json",
|
|
53338
|
+
"skills",
|
|
53339
|
+
"hooks",
|
|
53340
|
+
"agents"
|
|
53341
|
+
],
|
|
53342
|
+
scripts: {
|
|
53343
|
+
build: "tsup",
|
|
53344
|
+
postbuild: `node -e "const fs=require('node:fs'); for (const p of ['dist/mcp-server.cjs','dist/hook-pre-git.cjs','dist/hook-user-prompt.cjs','dist/hook-post-collab.cjs','dist/hook-stop-collab.cjs']) fs.chmodSync(p, 0o755);"`,
|
|
53345
|
+
dev: "tsx src/mcp-server.ts",
|
|
53346
|
+
typecheck: "tsc -p tsconfig.json --noEmit",
|
|
53347
|
+
prepack: "npm run build"
|
|
53348
|
+
},
|
|
53349
|
+
dependencies: {
|
|
53350
|
+
"@remixhq/core": "^0.1.7",
|
|
53351
|
+
"@remixhq/mcp": "^0.1.7"
|
|
53352
|
+
},
|
|
53353
|
+
devDependencies: {
|
|
53354
|
+
"@types/node": "^25.4.0",
|
|
53355
|
+
tsup: "^8.5.1",
|
|
53356
|
+
tsx: "^4.21.0",
|
|
53357
|
+
typescript: "^5.9.3"
|
|
53358
|
+
}
|
|
53359
|
+
};
|
|
53360
|
+
|
|
53326
53361
|
// src/metadata.ts
|
|
53327
|
-
import { createRequire } from "module";
|
|
53328
|
-
var require2 = createRequire(import.meta.url);
|
|
53329
|
-
var pkg = require2("../package.json");
|
|
53330
53362
|
var pluginMetadata = {
|
|
53331
|
-
name:
|
|
53332
|
-
version:
|
|
53333
|
-
description:
|
|
53363
|
+
name: package_default.name,
|
|
53364
|
+
version: package_default.version,
|
|
53365
|
+
description: package_default.description,
|
|
53334
53366
|
pluginId: "remix",
|
|
53335
53367
|
agentName: "remix-collab"
|
|
53336
53368
|
};
|
|
@@ -53349,4 +53381,4 @@ main().catch((error2) => {
|
|
|
53349
53381
|
`);
|
|
53350
53382
|
process.exitCode = 1;
|
|
53351
53383
|
});
|
|
53352
|
-
//# sourceMappingURL=mcp-server.
|
|
53384
|
+
//# sourceMappingURL=mcp-server.cjs.map
|