@stripe/link-cli 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -1
- package/dist/cli.js +1436 -745
- package/package.json +11 -11
package/dist/cli.js
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
28
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
29
29
|
var require_code = __commonJS({
|
|
30
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
30
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
31
31
|
"use strict";
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -179,9 +179,9 @@ var require_code = __commonJS({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
182
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
183
183
|
var require_scope = __commonJS({
|
|
184
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
184
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
185
185
|
"use strict";
|
|
186
186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
187
187
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -324,9 +324,9 @@ var require_scope = __commonJS({
|
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
|
|
327
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
327
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
328
328
|
var require_codegen = __commonJS({
|
|
329
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
329
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
330
330
|
"use strict";
|
|
331
331
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
332
332
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -402,11 +402,11 @@ var require_codegen = __commonJS({
|
|
|
402
402
|
const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
403
403
|
return `${varKind} ${this.name}${rhs};` + _n;
|
|
404
404
|
}
|
|
405
|
-
optimizeNames(names,
|
|
405
|
+
optimizeNames(names, constants2) {
|
|
406
406
|
if (!names[this.name.str])
|
|
407
407
|
return;
|
|
408
408
|
if (this.rhs)
|
|
409
|
-
this.rhs = optimizeExpr(this.rhs, names,
|
|
409
|
+
this.rhs = optimizeExpr(this.rhs, names, constants2);
|
|
410
410
|
return this;
|
|
411
411
|
}
|
|
412
412
|
get names() {
|
|
@@ -423,10 +423,10 @@ var require_codegen = __commonJS({
|
|
|
423
423
|
render({ _n }) {
|
|
424
424
|
return `${this.lhs} = ${this.rhs};` + _n;
|
|
425
425
|
}
|
|
426
|
-
optimizeNames(names,
|
|
426
|
+
optimizeNames(names, constants2) {
|
|
427
427
|
if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects)
|
|
428
428
|
return;
|
|
429
|
-
this.rhs = optimizeExpr(this.rhs, names,
|
|
429
|
+
this.rhs = optimizeExpr(this.rhs, names, constants2);
|
|
430
430
|
return this;
|
|
431
431
|
}
|
|
432
432
|
get names() {
|
|
@@ -487,8 +487,8 @@ var require_codegen = __commonJS({
|
|
|
487
487
|
optimizeNodes() {
|
|
488
488
|
return `${this.code}` ? this : void 0;
|
|
489
489
|
}
|
|
490
|
-
optimizeNames(names,
|
|
491
|
-
this.code = optimizeExpr(this.code, names,
|
|
490
|
+
optimizeNames(names, constants2) {
|
|
491
|
+
this.code = optimizeExpr(this.code, names, constants2);
|
|
492
492
|
return this;
|
|
493
493
|
}
|
|
494
494
|
get names() {
|
|
@@ -517,12 +517,12 @@ var require_codegen = __commonJS({
|
|
|
517
517
|
}
|
|
518
518
|
return nodes.length > 0 ? this : void 0;
|
|
519
519
|
}
|
|
520
|
-
optimizeNames(names,
|
|
520
|
+
optimizeNames(names, constants2) {
|
|
521
521
|
const { nodes } = this;
|
|
522
522
|
let i = nodes.length;
|
|
523
523
|
while (i--) {
|
|
524
524
|
const n = nodes[i];
|
|
525
|
-
if (n.optimizeNames(names,
|
|
525
|
+
if (n.optimizeNames(names, constants2))
|
|
526
526
|
continue;
|
|
527
527
|
subtractNames(names, n.names);
|
|
528
528
|
nodes.splice(i, 1);
|
|
@@ -575,12 +575,12 @@ var require_codegen = __commonJS({
|
|
|
575
575
|
return void 0;
|
|
576
576
|
return this;
|
|
577
577
|
}
|
|
578
|
-
optimizeNames(names,
|
|
578
|
+
optimizeNames(names, constants2) {
|
|
579
579
|
var _a;
|
|
580
|
-
this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names,
|
|
581
|
-
if (!(super.optimizeNames(names,
|
|
580
|
+
this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants2);
|
|
581
|
+
if (!(super.optimizeNames(names, constants2) || this.else))
|
|
582
582
|
return;
|
|
583
|
-
this.condition = optimizeExpr(this.condition, names,
|
|
583
|
+
this.condition = optimizeExpr(this.condition, names, constants2);
|
|
584
584
|
return this;
|
|
585
585
|
}
|
|
586
586
|
get names() {
|
|
@@ -603,10 +603,10 @@ var require_codegen = __commonJS({
|
|
|
603
603
|
render(opts) {
|
|
604
604
|
return `for(${this.iteration})` + super.render(opts);
|
|
605
605
|
}
|
|
606
|
-
optimizeNames(names,
|
|
607
|
-
if (!super.optimizeNames(names,
|
|
606
|
+
optimizeNames(names, constants2) {
|
|
607
|
+
if (!super.optimizeNames(names, constants2))
|
|
608
608
|
return;
|
|
609
|
-
this.iteration = optimizeExpr(this.iteration, names,
|
|
609
|
+
this.iteration = optimizeExpr(this.iteration, names, constants2);
|
|
610
610
|
return this;
|
|
611
611
|
}
|
|
612
612
|
get names() {
|
|
@@ -642,10 +642,10 @@ var require_codegen = __commonJS({
|
|
|
642
642
|
render(opts) {
|
|
643
643
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
|
|
644
644
|
}
|
|
645
|
-
optimizeNames(names,
|
|
646
|
-
if (!super.optimizeNames(names,
|
|
645
|
+
optimizeNames(names, constants2) {
|
|
646
|
+
if (!super.optimizeNames(names, constants2))
|
|
647
647
|
return;
|
|
648
|
-
this.iterable = optimizeExpr(this.iterable, names,
|
|
648
|
+
this.iterable = optimizeExpr(this.iterable, names, constants2);
|
|
649
649
|
return this;
|
|
650
650
|
}
|
|
651
651
|
get names() {
|
|
@@ -687,11 +687,11 @@ var require_codegen = __commonJS({
|
|
|
687
687
|
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();
|
|
688
688
|
return this;
|
|
689
689
|
}
|
|
690
|
-
optimizeNames(names,
|
|
690
|
+
optimizeNames(names, constants2) {
|
|
691
691
|
var _a, _b;
|
|
692
|
-
super.optimizeNames(names,
|
|
693
|
-
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names,
|
|
694
|
-
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names,
|
|
692
|
+
super.optimizeNames(names, constants2);
|
|
693
|
+
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants2);
|
|
694
|
+
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants2);
|
|
695
695
|
return this;
|
|
696
696
|
}
|
|
697
697
|
get names() {
|
|
@@ -992,7 +992,7 @@ var require_codegen = __commonJS({
|
|
|
992
992
|
function addExprNames(names, from) {
|
|
993
993
|
return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
|
|
994
994
|
}
|
|
995
|
-
function optimizeExpr(expr, names,
|
|
995
|
+
function optimizeExpr(expr, names, constants2) {
|
|
996
996
|
if (expr instanceof code_1.Name)
|
|
997
997
|
return replaceName(expr);
|
|
998
998
|
if (!canOptimize(expr))
|
|
@@ -1007,14 +1007,14 @@ var require_codegen = __commonJS({
|
|
|
1007
1007
|
return items;
|
|
1008
1008
|
}, []));
|
|
1009
1009
|
function replaceName(n) {
|
|
1010
|
-
const c =
|
|
1010
|
+
const c = constants2[n.str];
|
|
1011
1011
|
if (c === void 0 || names[n.str] !== 1)
|
|
1012
1012
|
return n;
|
|
1013
1013
|
delete names[n.str];
|
|
1014
1014
|
return c;
|
|
1015
1015
|
}
|
|
1016
1016
|
function canOptimize(e) {
|
|
1017
|
-
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 &&
|
|
1017
|
+
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants2[c.str] !== void 0);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
function subtractNames(names, from) {
|
|
@@ -1044,9 +1044,9 @@ var require_codegen = __commonJS({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
|
|
1047
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1047
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
1048
1048
|
var require_util = __commonJS({
|
|
1049
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1049
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1050
1050
|
"use strict";
|
|
1051
1051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1052
1052
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -1211,9 +1211,9 @@ var require_util = __commonJS({
|
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
|
|
1214
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1214
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
1215
1215
|
var require_names = __commonJS({
|
|
1216
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1216
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1217
1217
|
"use strict";
|
|
1218
1218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1219
1219
|
var codegen_1 = require_codegen();
|
|
@@ -1250,9 +1250,9 @@ var require_names = __commonJS({
|
|
|
1250
1250
|
}
|
|
1251
1251
|
});
|
|
1252
1252
|
|
|
1253
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1253
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
1254
1254
|
var require_errors = __commonJS({
|
|
1255
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1255
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1256
1256
|
"use strict";
|
|
1257
1257
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1258
1258
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -1372,9 +1372,9 @@ var require_errors = __commonJS({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
});
|
|
1374
1374
|
|
|
1375
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1375
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1376
1376
|
var require_boolSchema = __commonJS({
|
|
1377
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1377
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1378
1378
|
"use strict";
|
|
1379
1379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1380
1380
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -1423,9 +1423,9 @@ var require_boolSchema = __commonJS({
|
|
|
1423
1423
|
}
|
|
1424
1424
|
});
|
|
1425
1425
|
|
|
1426
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1426
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
1427
1427
|
var require_rules = __commonJS({
|
|
1428
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1428
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1429
1429
|
"use strict";
|
|
1430
1430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1431
1431
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -1454,9 +1454,9 @@ var require_rules = __commonJS({
|
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
1456
|
|
|
1457
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1457
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1458
1458
|
var require_applicability = __commonJS({
|
|
1459
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1459
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1460
1460
|
"use strict";
|
|
1461
1461
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1462
1462
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -1477,9 +1477,9 @@ var require_applicability = __commonJS({
|
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
|
|
1480
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1480
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1481
1481
|
var require_dataType = __commonJS({
|
|
1482
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1482
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1483
1483
|
"use strict";
|
|
1484
1484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1485
1485
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -1661,9 +1661,9 @@ var require_dataType = __commonJS({
|
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1664
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1665
1665
|
var require_defaults = __commonJS({
|
|
1666
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1666
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1667
1667
|
"use strict";
|
|
1668
1668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1669
1669
|
exports.assignDefaults = void 0;
|
|
@@ -1698,9 +1698,9 @@ var require_defaults = __commonJS({
|
|
|
1698
1698
|
}
|
|
1699
1699
|
});
|
|
1700
1700
|
|
|
1701
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1701
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1702
1702
|
var require_code2 = __commonJS({
|
|
1703
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1703
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1704
1704
|
"use strict";
|
|
1705
1705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1706
1706
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -1831,9 +1831,9 @@ var require_code2 = __commonJS({
|
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
1833
1833
|
|
|
1834
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1834
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1835
1835
|
var require_keyword = __commonJS({
|
|
1836
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1836
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1837
1837
|
"use strict";
|
|
1838
1838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1839
1839
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -1949,9 +1949,9 @@ var require_keyword = __commonJS({
|
|
|
1949
1949
|
}
|
|
1950
1950
|
});
|
|
1951
1951
|
|
|
1952
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1952
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1953
1953
|
var require_subschema = __commonJS({
|
|
1954
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1954
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1955
1955
|
"use strict";
|
|
1956
1956
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1957
1957
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -2155,9 +2155,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2155
2155
|
}
|
|
2156
2156
|
});
|
|
2157
2157
|
|
|
2158
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2158
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
2159
2159
|
var require_resolve = __commonJS({
|
|
2160
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2160
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2161
2161
|
"use strict";
|
|
2162
2162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2163
2163
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -2311,9 +2311,9 @@ var require_resolve = __commonJS({
|
|
|
2311
2311
|
}
|
|
2312
2312
|
});
|
|
2313
2313
|
|
|
2314
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2314
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2315
2315
|
var require_validate = __commonJS({
|
|
2316
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2316
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2317
2317
|
"use strict";
|
|
2318
2318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2319
2319
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -2819,9 +2819,9 @@ var require_validate = __commonJS({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
|
|
2822
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2822
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2823
2823
|
var require_validation_error = __commonJS({
|
|
2824
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2824
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2825
2825
|
"use strict";
|
|
2826
2826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2827
2827
|
var ValidationError = class extends Error {
|
|
@@ -2835,9 +2835,9 @@ var require_validation_error = __commonJS({
|
|
|
2835
2835
|
}
|
|
2836
2836
|
});
|
|
2837
2837
|
|
|
2838
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2838
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2839
2839
|
var require_ref_error = __commonJS({
|
|
2840
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2840
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2841
2841
|
"use strict";
|
|
2842
2842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2843
2843
|
var resolve_1 = require_resolve();
|
|
@@ -2852,9 +2852,9 @@ var require_ref_error = __commonJS({
|
|
|
2852
2852
|
}
|
|
2853
2853
|
});
|
|
2854
2854
|
|
|
2855
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2855
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
2856
2856
|
var require_compile = __commonJS({
|
|
2857
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2857
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2858
2858
|
"use strict";
|
|
2859
2859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2860
2860
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -3076,9 +3076,9 @@ var require_compile = __commonJS({
|
|
|
3076
3076
|
}
|
|
3077
3077
|
});
|
|
3078
3078
|
|
|
3079
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3079
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
3080
3080
|
var require_data = __commonJS({
|
|
3081
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3081
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3082
3082
|
module.exports = {
|
|
3083
3083
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3084
3084
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3095,12 +3095,15 @@ var require_data = __commonJS({
|
|
|
3095
3095
|
}
|
|
3096
3096
|
});
|
|
3097
3097
|
|
|
3098
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3098
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
|
|
3099
3099
|
var require_utils = __commonJS({
|
|
3100
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3100
|
+
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3101
3101
|
"use strict";
|
|
3102
3102
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3103
3103
|
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);
|
|
3104
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3105
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3106
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
3104
3107
|
function stringArrayToHexStripped(input) {
|
|
3105
3108
|
let acc = "";
|
|
3106
3109
|
let code = 0;
|
|
@@ -3293,27 +3296,77 @@ var require_utils = __commonJS({
|
|
|
3293
3296
|
}
|
|
3294
3297
|
return output.join("");
|
|
3295
3298
|
}
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3299
|
+
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3300
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3301
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
3302
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
3303
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
3304
|
+
re.lastIndex = 0;
|
|
3305
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
3306
|
+
}
|
|
3307
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
3308
|
+
if (input.indexOf("%") === -1) {
|
|
3309
|
+
return input;
|
|
3306
3310
|
}
|
|
3307
|
-
|
|
3308
|
-
|
|
3311
|
+
let output = "";
|
|
3312
|
+
for (let i = 0; i < input.length; i++) {
|
|
3313
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3314
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3315
|
+
if (isHexPair(hex)) {
|
|
3316
|
+
const normalizedHex = hex.toUpperCase();
|
|
3317
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3318
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
3319
|
+
output += decoded;
|
|
3320
|
+
} else {
|
|
3321
|
+
output += "%" + normalizedHex;
|
|
3322
|
+
}
|
|
3323
|
+
i += 2;
|
|
3324
|
+
continue;
|
|
3325
|
+
}
|
|
3326
|
+
}
|
|
3327
|
+
output += input[i];
|
|
3309
3328
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3329
|
+
return output;
|
|
3330
|
+
}
|
|
3331
|
+
function normalizePathEncoding(input) {
|
|
3332
|
+
let output = "";
|
|
3333
|
+
for (let i = 0; i < input.length; i++) {
|
|
3334
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3335
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3336
|
+
if (isHexPair(hex)) {
|
|
3337
|
+
const normalizedHex = hex.toUpperCase();
|
|
3338
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3339
|
+
if (decoded !== "." && isUnreserved(decoded)) {
|
|
3340
|
+
output += decoded;
|
|
3341
|
+
} else {
|
|
3342
|
+
output += "%" + normalizedHex;
|
|
3343
|
+
}
|
|
3344
|
+
i += 2;
|
|
3345
|
+
continue;
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
if (isPathCharacter(input[i])) {
|
|
3349
|
+
output += input[i];
|
|
3350
|
+
} else {
|
|
3351
|
+
output += escape(input[i]);
|
|
3352
|
+
}
|
|
3312
3353
|
}
|
|
3313
|
-
|
|
3314
|
-
|
|
3354
|
+
return output;
|
|
3355
|
+
}
|
|
3356
|
+
function escapePreservingEscapes(input) {
|
|
3357
|
+
let output = "";
|
|
3358
|
+
for (let i = 0; i < input.length; i++) {
|
|
3359
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3360
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3361
|
+
if (isHexPair(hex)) {
|
|
3362
|
+
output += "%" + hex.toUpperCase();
|
|
3363
|
+
i += 2;
|
|
3364
|
+
continue;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
output += escape(input[i]);
|
|
3315
3368
|
}
|
|
3316
|
-
return
|
|
3369
|
+
return output;
|
|
3317
3370
|
}
|
|
3318
3371
|
function recomposeAuthority(component) {
|
|
3319
3372
|
const uriTokens = [];
|
|
@@ -3328,7 +3381,7 @@ var require_utils = __commonJS({
|
|
|
3328
3381
|
if (ipV6res.isIPV6 === true) {
|
|
3329
3382
|
host = `[${ipV6res.escapedHost}]`;
|
|
3330
3383
|
} else {
|
|
3331
|
-
host =
|
|
3384
|
+
host = reescapeHostDelimiters(host, false);
|
|
3332
3385
|
}
|
|
3333
3386
|
}
|
|
3334
3387
|
uriTokens.push(host);
|
|
@@ -3342,7 +3395,10 @@ var require_utils = __commonJS({
|
|
|
3342
3395
|
module.exports = {
|
|
3343
3396
|
nonSimpleDomain,
|
|
3344
3397
|
recomposeAuthority,
|
|
3345
|
-
|
|
3398
|
+
reescapeHostDelimiters,
|
|
3399
|
+
normalizePercentEncoding,
|
|
3400
|
+
normalizePathEncoding,
|
|
3401
|
+
escapePreservingEscapes,
|
|
3346
3402
|
removeDotSegments,
|
|
3347
3403
|
isIPv4,
|
|
3348
3404
|
isUUID,
|
|
@@ -3352,9 +3408,9 @@ var require_utils = __commonJS({
|
|
|
3352
3408
|
}
|
|
3353
3409
|
});
|
|
3354
3410
|
|
|
3355
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3411
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
|
|
3356
3412
|
var require_schemes = __commonJS({
|
|
3357
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3413
|
+
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3358
3414
|
"use strict";
|
|
3359
3415
|
var { isUUID } = require_utils();
|
|
3360
3416
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3562,16 +3618,16 @@ var require_schemes = __commonJS({
|
|
|
3562
3618
|
}
|
|
3563
3619
|
});
|
|
3564
3620
|
|
|
3565
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3621
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
|
|
3566
3622
|
var require_fast_uri = __commonJS({
|
|
3567
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3623
|
+
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(exports, module) {
|
|
3568
3624
|
"use strict";
|
|
3569
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
3625
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3570
3626
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3571
3627
|
function normalize(uri, options) {
|
|
3572
3628
|
if (typeof uri === "string") {
|
|
3573
3629
|
uri = /** @type {T} */
|
|
3574
|
-
|
|
3630
|
+
normalizeString(uri, options);
|
|
3575
3631
|
} else if (typeof uri === "object") {
|
|
3576
3632
|
uri = /** @type {T} */
|
|
3577
3633
|
parse(serialize(uri, options), options);
|
|
@@ -3638,19 +3694,9 @@ var require_fast_uri = __commonJS({
|
|
|
3638
3694
|
return target;
|
|
3639
3695
|
}
|
|
3640
3696
|
function equal(uriA, uriB, options) {
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
} else if (typeof uriA === "object") {
|
|
3645
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
3646
|
-
}
|
|
3647
|
-
if (typeof uriB === "string") {
|
|
3648
|
-
uriB = unescape(uriB);
|
|
3649
|
-
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
|
|
3650
|
-
} else if (typeof uriB === "object") {
|
|
3651
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
3652
|
-
}
|
|
3653
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
3697
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
3698
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
3699
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
3654
3700
|
}
|
|
3655
3701
|
function serialize(cmpts, opts) {
|
|
3656
3702
|
const component = {
|
|
@@ -3675,12 +3721,12 @@ var require_fast_uri = __commonJS({
|
|
|
3675
3721
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3676
3722
|
if (component.path !== void 0) {
|
|
3677
3723
|
if (!options.skipEscape) {
|
|
3678
|
-
component.path =
|
|
3724
|
+
component.path = escapePreservingEscapes(component.path);
|
|
3679
3725
|
if (component.scheme !== void 0) {
|
|
3680
3726
|
component.path = component.path.split("%3A").join(":");
|
|
3681
3727
|
}
|
|
3682
3728
|
} else {
|
|
3683
|
-
component.path =
|
|
3729
|
+
component.path = normalizePercentEncoding(component.path);
|
|
3684
3730
|
}
|
|
3685
3731
|
}
|
|
3686
3732
|
if (options.reference !== "suffix" && component.scheme) {
|
|
@@ -3715,7 +3761,16 @@ var require_fast_uri = __commonJS({
|
|
|
3715
3761
|
return uriTokens.join("");
|
|
3716
3762
|
}
|
|
3717
3763
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
3718
|
-
function
|
|
3764
|
+
function getParseError(parsed, matches) {
|
|
3765
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
3766
|
+
return 'URI path must start with "/" when authority is present.';
|
|
3767
|
+
}
|
|
3768
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
|
|
3769
|
+
return "URI port is malformed.";
|
|
3770
|
+
}
|
|
3771
|
+
return void 0;
|
|
3772
|
+
}
|
|
3773
|
+
function parseWithStatus(uri, opts) {
|
|
3719
3774
|
const options = Object.assign({}, opts);
|
|
3720
3775
|
const parsed = {
|
|
3721
3776
|
scheme: void 0,
|
|
@@ -3726,6 +3781,7 @@ var require_fast_uri = __commonJS({
|
|
|
3726
3781
|
query: void 0,
|
|
3727
3782
|
fragment: void 0
|
|
3728
3783
|
};
|
|
3784
|
+
let malformedAuthorityOrPort = false;
|
|
3729
3785
|
let isIP = false;
|
|
3730
3786
|
if (options.reference === "suffix") {
|
|
3731
3787
|
if (options.scheme) {
|
|
@@ -3746,6 +3802,11 @@ var require_fast_uri = __commonJS({
|
|
|
3746
3802
|
if (isNaN(parsed.port)) {
|
|
3747
3803
|
parsed.port = matches[5];
|
|
3748
3804
|
}
|
|
3805
|
+
const parseError = getParseError(parsed, matches);
|
|
3806
|
+
if (parseError !== void 0) {
|
|
3807
|
+
parsed.error = parsed.error || parseError;
|
|
3808
|
+
malformedAuthorityOrPort = true;
|
|
3809
|
+
}
|
|
3749
3810
|
if (parsed.host) {
|
|
3750
3811
|
const ipv4result = isIPv4(parsed.host);
|
|
3751
3812
|
if (ipv4result === false) {
|
|
@@ -3784,14 +3845,18 @@ var require_fast_uri = __commonJS({
|
|
|
3784
3845
|
parsed.scheme = unescape(parsed.scheme);
|
|
3785
3846
|
}
|
|
3786
3847
|
if (parsed.host !== void 0) {
|
|
3787
|
-
parsed.host = unescape(parsed.host);
|
|
3848
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
3788
3849
|
}
|
|
3789
3850
|
}
|
|
3790
3851
|
if (parsed.path) {
|
|
3791
|
-
parsed.path =
|
|
3852
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
3792
3853
|
}
|
|
3793
3854
|
if (parsed.fragment) {
|
|
3794
|
-
|
|
3855
|
+
try {
|
|
3856
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
3857
|
+
} catch {
|
|
3858
|
+
parsed.error = parsed.error || "URI malformed";
|
|
3859
|
+
}
|
|
3795
3860
|
}
|
|
3796
3861
|
}
|
|
3797
3862
|
if (schemeHandler && schemeHandler.parse) {
|
|
@@ -3800,7 +3865,29 @@ var require_fast_uri = __commonJS({
|
|
|
3800
3865
|
} else {
|
|
3801
3866
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
3802
3867
|
}
|
|
3803
|
-
return parsed;
|
|
3868
|
+
return { parsed, malformedAuthorityOrPort };
|
|
3869
|
+
}
|
|
3870
|
+
function parse(uri, opts) {
|
|
3871
|
+
return parseWithStatus(uri, opts).parsed;
|
|
3872
|
+
}
|
|
3873
|
+
function normalizeString(uri, opts) {
|
|
3874
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
3875
|
+
}
|
|
3876
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
3877
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
3878
|
+
return {
|
|
3879
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
3880
|
+
malformedAuthorityOrPort
|
|
3881
|
+
};
|
|
3882
|
+
}
|
|
3883
|
+
function normalizeComparableURI(uri, opts) {
|
|
3884
|
+
if (typeof uri === "string") {
|
|
3885
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
3886
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
3887
|
+
}
|
|
3888
|
+
if (typeof uri === "object") {
|
|
3889
|
+
return serialize(uri, opts);
|
|
3890
|
+
}
|
|
3804
3891
|
}
|
|
3805
3892
|
var fastUri = {
|
|
3806
3893
|
SCHEMES,
|
|
@@ -3817,9 +3904,9 @@ var require_fast_uri = __commonJS({
|
|
|
3817
3904
|
}
|
|
3818
3905
|
});
|
|
3819
3906
|
|
|
3820
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3907
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
3821
3908
|
var require_uri = __commonJS({
|
|
3822
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3909
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3823
3910
|
"use strict";
|
|
3824
3911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3825
3912
|
var uri = require_fast_uri();
|
|
@@ -3828,9 +3915,9 @@ var require_uri = __commonJS({
|
|
|
3828
3915
|
}
|
|
3829
3916
|
});
|
|
3830
3917
|
|
|
3831
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3918
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
3832
3919
|
var require_core = __commonJS({
|
|
3833
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3920
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports) {
|
|
3834
3921
|
"use strict";
|
|
3835
3922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3836
3923
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -3940,7 +4027,7 @@ var require_core = __commonJS({
|
|
|
3940
4027
|
constructor(opts = {}) {
|
|
3941
4028
|
this.schemas = {};
|
|
3942
4029
|
this.refs = {};
|
|
3943
|
-
this.formats =
|
|
4030
|
+
this.formats = /* @__PURE__ */ Object.create(null);
|
|
3944
4031
|
this._compilations = /* @__PURE__ */ new Set();
|
|
3945
4032
|
this._loading = {};
|
|
3946
4033
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -4439,9 +4526,9 @@ var require_core = __commonJS({
|
|
|
4439
4526
|
}
|
|
4440
4527
|
});
|
|
4441
4528
|
|
|
4442
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4529
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4443
4530
|
var require_id = __commonJS({
|
|
4444
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4531
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4445
4532
|
"use strict";
|
|
4446
4533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4447
4534
|
var def = {
|
|
@@ -4454,9 +4541,9 @@ var require_id = __commonJS({
|
|
|
4454
4541
|
}
|
|
4455
4542
|
});
|
|
4456
4543
|
|
|
4457
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4544
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4458
4545
|
var require_ref = __commonJS({
|
|
4459
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4546
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4460
4547
|
"use strict";
|
|
4461
4548
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4462
4549
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -4576,9 +4663,9 @@ var require_ref = __commonJS({
|
|
|
4576
4663
|
}
|
|
4577
4664
|
});
|
|
4578
4665
|
|
|
4579
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4666
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4580
4667
|
var require_core2 = __commonJS({
|
|
4581
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4668
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4582
4669
|
"use strict";
|
|
4583
4670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4584
4671
|
var id_1 = require_id();
|
|
@@ -4597,9 +4684,9 @@ var require_core2 = __commonJS({
|
|
|
4597
4684
|
}
|
|
4598
4685
|
});
|
|
4599
4686
|
|
|
4600
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4687
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4601
4688
|
var require_limitNumber = __commonJS({
|
|
4602
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4689
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4603
4690
|
"use strict";
|
|
4604
4691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4605
4692
|
var codegen_1 = require_codegen();
|
|
@@ -4629,9 +4716,9 @@ var require_limitNumber = __commonJS({
|
|
|
4629
4716
|
}
|
|
4630
4717
|
});
|
|
4631
4718
|
|
|
4632
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4719
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4633
4720
|
var require_multipleOf = __commonJS({
|
|
4634
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4721
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4635
4722
|
"use strict";
|
|
4636
4723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4637
4724
|
var codegen_1 = require_codegen();
|
|
@@ -4657,9 +4744,9 @@ var require_multipleOf = __commonJS({
|
|
|
4657
4744
|
}
|
|
4658
4745
|
});
|
|
4659
4746
|
|
|
4660
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4747
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4661
4748
|
var require_ucs2length = __commonJS({
|
|
4662
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4749
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4663
4750
|
"use strict";
|
|
4664
4751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4665
4752
|
function ucs2length(str) {
|
|
@@ -4683,9 +4770,9 @@ var require_ucs2length = __commonJS({
|
|
|
4683
4770
|
}
|
|
4684
4771
|
});
|
|
4685
4772
|
|
|
4686
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4773
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4687
4774
|
var require_limitLength = __commonJS({
|
|
4688
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4775
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4689
4776
|
"use strict";
|
|
4690
4777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4691
4778
|
var codegen_1 = require_codegen();
|
|
@@ -4715,9 +4802,9 @@ var require_limitLength = __commonJS({
|
|
|
4715
4802
|
}
|
|
4716
4803
|
});
|
|
4717
4804
|
|
|
4718
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4805
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4719
4806
|
var require_pattern = __commonJS({
|
|
4720
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4807
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4721
4808
|
"use strict";
|
|
4722
4809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4723
4810
|
var code_1 = require_code2();
|
|
@@ -4752,9 +4839,9 @@ var require_pattern = __commonJS({
|
|
|
4752
4839
|
}
|
|
4753
4840
|
});
|
|
4754
4841
|
|
|
4755
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4842
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4756
4843
|
var require_limitProperties = __commonJS({
|
|
4757
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4844
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4758
4845
|
"use strict";
|
|
4759
4846
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4760
4847
|
var codegen_1 = require_codegen();
|
|
@@ -4781,9 +4868,9 @@ var require_limitProperties = __commonJS({
|
|
|
4781
4868
|
}
|
|
4782
4869
|
});
|
|
4783
4870
|
|
|
4784
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4871
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4785
4872
|
var require_required = __commonJS({
|
|
4786
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4873
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4787
4874
|
"use strict";
|
|
4788
4875
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4789
4876
|
var code_1 = require_code2();
|
|
@@ -4863,9 +4950,9 @@ var require_required = __commonJS({
|
|
|
4863
4950
|
}
|
|
4864
4951
|
});
|
|
4865
4952
|
|
|
4866
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4953
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4867
4954
|
var require_limitItems = __commonJS({
|
|
4868
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4955
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
4869
4956
|
"use strict";
|
|
4870
4957
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4871
4958
|
var codegen_1 = require_codegen();
|
|
@@ -4892,9 +4979,9 @@ var require_limitItems = __commonJS({
|
|
|
4892
4979
|
}
|
|
4893
4980
|
});
|
|
4894
4981
|
|
|
4895
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4982
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
4896
4983
|
var require_equal = __commonJS({
|
|
4897
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4984
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
4898
4985
|
"use strict";
|
|
4899
4986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4900
4987
|
var equal = require_fast_deep_equal();
|
|
@@ -4903,9 +4990,9 @@ var require_equal = __commonJS({
|
|
|
4903
4990
|
}
|
|
4904
4991
|
});
|
|
4905
4992
|
|
|
4906
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4993
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4907
4994
|
var require_uniqueItems = __commonJS({
|
|
4908
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4995
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
4909
4996
|
"use strict";
|
|
4910
4997
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4911
4998
|
var dataType_1 = require_dataType();
|
|
@@ -4970,9 +5057,9 @@ var require_uniqueItems = __commonJS({
|
|
|
4970
5057
|
}
|
|
4971
5058
|
});
|
|
4972
5059
|
|
|
4973
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5060
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4974
5061
|
var require_const = __commonJS({
|
|
4975
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5062
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
4976
5063
|
"use strict";
|
|
4977
5064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4978
5065
|
var codegen_1 = require_codegen();
|
|
@@ -4999,9 +5086,9 @@ var require_const = __commonJS({
|
|
|
4999
5086
|
}
|
|
5000
5087
|
});
|
|
5001
5088
|
|
|
5002
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5089
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5003
5090
|
var require_enum = __commonJS({
|
|
5004
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5091
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5005
5092
|
"use strict";
|
|
5006
5093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5007
5094
|
var codegen_1 = require_codegen();
|
|
@@ -5048,9 +5135,9 @@ var require_enum = __commonJS({
|
|
|
5048
5135
|
}
|
|
5049
5136
|
});
|
|
5050
5137
|
|
|
5051
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5138
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5052
5139
|
var require_validation = __commonJS({
|
|
5053
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5140
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5054
5141
|
"use strict";
|
|
5055
5142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5056
5143
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5086,9 +5173,9 @@ var require_validation = __commonJS({
|
|
|
5086
5173
|
}
|
|
5087
5174
|
});
|
|
5088
5175
|
|
|
5089
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5176
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5090
5177
|
var require_additionalItems = __commonJS({
|
|
5091
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5178
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5092
5179
|
"use strict";
|
|
5093
5180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5094
5181
|
exports.validateAdditionalItems = void 0;
|
|
@@ -5139,9 +5226,9 @@ var require_additionalItems = __commonJS({
|
|
|
5139
5226
|
}
|
|
5140
5227
|
});
|
|
5141
5228
|
|
|
5142
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5229
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5143
5230
|
var require_items = __commonJS({
|
|
5144
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5231
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5145
5232
|
"use strict";
|
|
5146
5233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5147
5234
|
exports.validateTuple = void 0;
|
|
@@ -5196,9 +5283,9 @@ var require_items = __commonJS({
|
|
|
5196
5283
|
}
|
|
5197
5284
|
});
|
|
5198
5285
|
|
|
5199
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5286
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5200
5287
|
var require_prefixItems = __commonJS({
|
|
5201
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5288
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5202
5289
|
"use strict";
|
|
5203
5290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5204
5291
|
var items_1 = require_items();
|
|
@@ -5213,9 +5300,9 @@ var require_prefixItems = __commonJS({
|
|
|
5213
5300
|
}
|
|
5214
5301
|
});
|
|
5215
5302
|
|
|
5216
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5303
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5217
5304
|
var require_items2020 = __commonJS({
|
|
5218
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5305
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5219
5306
|
"use strict";
|
|
5220
5307
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5221
5308
|
var codegen_1 = require_codegen();
|
|
@@ -5248,9 +5335,9 @@ var require_items2020 = __commonJS({
|
|
|
5248
5335
|
}
|
|
5249
5336
|
});
|
|
5250
5337
|
|
|
5251
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5338
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5252
5339
|
var require_contains = __commonJS({
|
|
5253
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5340
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5254
5341
|
"use strict";
|
|
5255
5342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5256
5343
|
var codegen_1 = require_codegen();
|
|
@@ -5342,9 +5429,9 @@ var require_contains = __commonJS({
|
|
|
5342
5429
|
}
|
|
5343
5430
|
});
|
|
5344
5431
|
|
|
5345
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5432
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5346
5433
|
var require_dependencies = __commonJS({
|
|
5347
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5434
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5348
5435
|
"use strict";
|
|
5349
5436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5350
5437
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -5436,9 +5523,9 @@ var require_dependencies = __commonJS({
|
|
|
5436
5523
|
}
|
|
5437
5524
|
});
|
|
5438
5525
|
|
|
5439
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5526
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5440
5527
|
var require_propertyNames = __commonJS({
|
|
5441
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5528
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5442
5529
|
"use strict";
|
|
5443
5530
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5444
5531
|
var codegen_1 = require_codegen();
|
|
@@ -5479,9 +5566,9 @@ var require_propertyNames = __commonJS({
|
|
|
5479
5566
|
}
|
|
5480
5567
|
});
|
|
5481
5568
|
|
|
5482
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5569
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5483
5570
|
var require_additionalProperties = __commonJS({
|
|
5484
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5571
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5485
5572
|
"use strict";
|
|
5486
5573
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5487
5574
|
var code_1 = require_code2();
|
|
@@ -5585,9 +5672,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5585
5672
|
}
|
|
5586
5673
|
});
|
|
5587
5674
|
|
|
5588
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5675
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5589
5676
|
var require_properties = __commonJS({
|
|
5590
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5677
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5591
5678
|
"use strict";
|
|
5592
5679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5593
5680
|
var validate_1 = require_validate();
|
|
@@ -5643,9 +5730,9 @@ var require_properties = __commonJS({
|
|
|
5643
5730
|
}
|
|
5644
5731
|
});
|
|
5645
5732
|
|
|
5646
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5733
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5647
5734
|
var require_patternProperties = __commonJS({
|
|
5648
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5735
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5649
5736
|
"use strict";
|
|
5650
5737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5651
5738
|
var code_1 = require_code2();
|
|
@@ -5717,9 +5804,9 @@ var require_patternProperties = __commonJS({
|
|
|
5717
5804
|
}
|
|
5718
5805
|
});
|
|
5719
5806
|
|
|
5720
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5807
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5721
5808
|
var require_not = __commonJS({
|
|
5722
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5809
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5723
5810
|
"use strict";
|
|
5724
5811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5725
5812
|
var util_1 = require_util();
|
|
@@ -5748,9 +5835,9 @@ var require_not = __commonJS({
|
|
|
5748
5835
|
}
|
|
5749
5836
|
});
|
|
5750
5837
|
|
|
5751
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5838
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5752
5839
|
var require_anyOf = __commonJS({
|
|
5753
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5840
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5754
5841
|
"use strict";
|
|
5755
5842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5756
5843
|
var code_1 = require_code2();
|
|
@@ -5765,9 +5852,9 @@ var require_anyOf = __commonJS({
|
|
|
5765
5852
|
}
|
|
5766
5853
|
});
|
|
5767
5854
|
|
|
5768
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5855
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5769
5856
|
var require_oneOf = __commonJS({
|
|
5770
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5857
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5771
5858
|
"use strict";
|
|
5772
5859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5773
5860
|
var codegen_1 = require_codegen();
|
|
@@ -5823,9 +5910,9 @@ var require_oneOf = __commonJS({
|
|
|
5823
5910
|
}
|
|
5824
5911
|
});
|
|
5825
5912
|
|
|
5826
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5913
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5827
5914
|
var require_allOf = __commonJS({
|
|
5828
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5915
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5829
5916
|
"use strict";
|
|
5830
5917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5831
5918
|
var util_1 = require_util();
|
|
@@ -5850,9 +5937,9 @@ var require_allOf = __commonJS({
|
|
|
5850
5937
|
}
|
|
5851
5938
|
});
|
|
5852
5939
|
|
|
5853
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5940
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5854
5941
|
var require_if = __commonJS({
|
|
5855
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5942
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
5856
5943
|
"use strict";
|
|
5857
5944
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5858
5945
|
var codegen_1 = require_codegen();
|
|
@@ -5919,9 +6006,9 @@ var require_if = __commonJS({
|
|
|
5919
6006
|
}
|
|
5920
6007
|
});
|
|
5921
6008
|
|
|
5922
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6009
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5923
6010
|
var require_thenElse = __commonJS({
|
|
5924
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6011
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
5925
6012
|
"use strict";
|
|
5926
6013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5927
6014
|
var util_1 = require_util();
|
|
@@ -5937,9 +6024,9 @@ var require_thenElse = __commonJS({
|
|
|
5937
6024
|
}
|
|
5938
6025
|
});
|
|
5939
6026
|
|
|
5940
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6027
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5941
6028
|
var require_applicator = __commonJS({
|
|
5942
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6029
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
5943
6030
|
"use strict";
|
|
5944
6031
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5945
6032
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -5985,9 +6072,9 @@ var require_applicator = __commonJS({
|
|
|
5985
6072
|
}
|
|
5986
6073
|
});
|
|
5987
6074
|
|
|
5988
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6075
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
5989
6076
|
var require_dynamicAnchor = __commonJS({
|
|
5990
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6077
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports) {
|
|
5991
6078
|
"use strict";
|
|
5992
6079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5993
6080
|
exports.dynamicAnchor = void 0;
|
|
@@ -6020,9 +6107,9 @@ var require_dynamicAnchor = __commonJS({
|
|
|
6020
6107
|
}
|
|
6021
6108
|
});
|
|
6022
6109
|
|
|
6023
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6110
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
6024
6111
|
var require_dynamicRef = __commonJS({
|
|
6025
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6112
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports) {
|
|
6026
6113
|
"use strict";
|
|
6027
6114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6028
6115
|
exports.dynamicRef = void 0;
|
|
@@ -6066,9 +6153,9 @@ var require_dynamicRef = __commonJS({
|
|
|
6066
6153
|
}
|
|
6067
6154
|
});
|
|
6068
6155
|
|
|
6069
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6156
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
6070
6157
|
var require_recursiveAnchor = __commonJS({
|
|
6071
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6158
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports) {
|
|
6072
6159
|
"use strict";
|
|
6073
6160
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6074
6161
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -6087,9 +6174,9 @@ var require_recursiveAnchor = __commonJS({
|
|
|
6087
6174
|
}
|
|
6088
6175
|
});
|
|
6089
6176
|
|
|
6090
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6177
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
6091
6178
|
var require_recursiveRef = __commonJS({
|
|
6092
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6179
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports) {
|
|
6093
6180
|
"use strict";
|
|
6094
6181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6095
6182
|
var dynamicRef_1 = require_dynamicRef();
|
|
@@ -6102,9 +6189,9 @@ var require_recursiveRef = __commonJS({
|
|
|
6102
6189
|
}
|
|
6103
6190
|
});
|
|
6104
6191
|
|
|
6105
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6192
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
6106
6193
|
var require_dynamic = __commonJS({
|
|
6107
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6194
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports) {
|
|
6108
6195
|
"use strict";
|
|
6109
6196
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6110
6197
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -6116,9 +6203,9 @@ var require_dynamic = __commonJS({
|
|
|
6116
6203
|
}
|
|
6117
6204
|
});
|
|
6118
6205
|
|
|
6119
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6206
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
6120
6207
|
var require_dependentRequired = __commonJS({
|
|
6121
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6208
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports) {
|
|
6122
6209
|
"use strict";
|
|
6123
6210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6124
6211
|
var dependencies_1 = require_dependencies();
|
|
@@ -6133,9 +6220,9 @@ var require_dependentRequired = __commonJS({
|
|
|
6133
6220
|
}
|
|
6134
6221
|
});
|
|
6135
6222
|
|
|
6136
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6223
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
6137
6224
|
var require_dependentSchemas = __commonJS({
|
|
6138
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6225
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports) {
|
|
6139
6226
|
"use strict";
|
|
6140
6227
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6141
6228
|
var dependencies_1 = require_dependencies();
|
|
@@ -6149,9 +6236,9 @@ var require_dependentSchemas = __commonJS({
|
|
|
6149
6236
|
}
|
|
6150
6237
|
});
|
|
6151
6238
|
|
|
6152
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6239
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
6153
6240
|
var require_limitContains = __commonJS({
|
|
6154
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6241
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports) {
|
|
6155
6242
|
"use strict";
|
|
6156
6243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6157
6244
|
var util_1 = require_util();
|
|
@@ -6169,9 +6256,9 @@ var require_limitContains = __commonJS({
|
|
|
6169
6256
|
}
|
|
6170
6257
|
});
|
|
6171
6258
|
|
|
6172
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6259
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js
|
|
6173
6260
|
var require_next = __commonJS({
|
|
6174
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6261
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js"(exports) {
|
|
6175
6262
|
"use strict";
|
|
6176
6263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6177
6264
|
var dependentRequired_1 = require_dependentRequired();
|
|
@@ -6182,9 +6269,9 @@ var require_next = __commonJS({
|
|
|
6182
6269
|
}
|
|
6183
6270
|
});
|
|
6184
6271
|
|
|
6185
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6272
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
6186
6273
|
var require_unevaluatedProperties = __commonJS({
|
|
6187
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6274
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports) {
|
|
6188
6275
|
"use strict";
|
|
6189
6276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6190
6277
|
var codegen_1 = require_codegen();
|
|
@@ -6248,9 +6335,9 @@ var require_unevaluatedProperties = __commonJS({
|
|
|
6248
6335
|
}
|
|
6249
6336
|
});
|
|
6250
6337
|
|
|
6251
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6338
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
6252
6339
|
var require_unevaluatedItems = __commonJS({
|
|
6253
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6340
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports) {
|
|
6254
6341
|
"use strict";
|
|
6255
6342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6256
6343
|
var codegen_1 = require_codegen();
|
|
@@ -6292,9 +6379,9 @@ var require_unevaluatedItems = __commonJS({
|
|
|
6292
6379
|
}
|
|
6293
6380
|
});
|
|
6294
6381
|
|
|
6295
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6382
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
6296
6383
|
var require_unevaluated = __commonJS({
|
|
6297
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6384
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports) {
|
|
6298
6385
|
"use strict";
|
|
6299
6386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6300
6387
|
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -6304,9 +6391,9 @@ var require_unevaluated = __commonJS({
|
|
|
6304
6391
|
}
|
|
6305
6392
|
});
|
|
6306
6393
|
|
|
6307
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6394
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
6308
6395
|
var require_format = __commonJS({
|
|
6309
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6396
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6310
6397
|
"use strict";
|
|
6311
6398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6312
6399
|
var codegen_1 = require_codegen();
|
|
@@ -6394,9 +6481,9 @@ var require_format = __commonJS({
|
|
|
6394
6481
|
}
|
|
6395
6482
|
});
|
|
6396
6483
|
|
|
6397
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6484
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6398
6485
|
var require_format2 = __commonJS({
|
|
6399
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6486
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6400
6487
|
"use strict";
|
|
6401
6488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6402
6489
|
var format_1 = require_format();
|
|
@@ -6405,9 +6492,9 @@ var require_format2 = __commonJS({
|
|
|
6405
6492
|
}
|
|
6406
6493
|
});
|
|
6407
6494
|
|
|
6408
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6495
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6409
6496
|
var require_metadata = __commonJS({
|
|
6410
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6497
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6411
6498
|
"use strict";
|
|
6412
6499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6413
6500
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -6428,9 +6515,9 @@ var require_metadata = __commonJS({
|
|
|
6428
6515
|
}
|
|
6429
6516
|
});
|
|
6430
6517
|
|
|
6431
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6518
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
6432
6519
|
var require_draft2020 = __commonJS({
|
|
6433
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6520
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js"(exports) {
|
|
6434
6521
|
"use strict";
|
|
6435
6522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6436
6523
|
var core_1 = require_core2();
|
|
@@ -6456,9 +6543,9 @@ var require_draft2020 = __commonJS({
|
|
|
6456
6543
|
}
|
|
6457
6544
|
});
|
|
6458
6545
|
|
|
6459
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6546
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6460
6547
|
var require_types = __commonJS({
|
|
6461
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6548
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6462
6549
|
"use strict";
|
|
6463
6550
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6464
6551
|
exports.DiscrError = void 0;
|
|
@@ -6470,9 +6557,9 @@ var require_types = __commonJS({
|
|
|
6470
6557
|
}
|
|
6471
6558
|
});
|
|
6472
6559
|
|
|
6473
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6560
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6474
6561
|
var require_discriminator = __commonJS({
|
|
6475
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6562
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6476
6563
|
"use strict";
|
|
6477
6564
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6478
6565
|
var codegen_1 = require_codegen();
|
|
@@ -6575,9 +6662,9 @@ var require_discriminator = __commonJS({
|
|
|
6575
6662
|
}
|
|
6576
6663
|
});
|
|
6577
6664
|
|
|
6578
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6665
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
6579
6666
|
var require_schema = __commonJS({
|
|
6580
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6667
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json"(exports, module) {
|
|
6581
6668
|
module.exports = {
|
|
6582
6669
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6583
6670
|
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -6635,9 +6722,9 @@ var require_schema = __commonJS({
|
|
|
6635
6722
|
}
|
|
6636
6723
|
});
|
|
6637
6724
|
|
|
6638
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6725
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
6639
6726
|
var require_applicator2 = __commonJS({
|
|
6640
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6727
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json"(exports, module) {
|
|
6641
6728
|
module.exports = {
|
|
6642
6729
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6643
6730
|
$id: "https://json-schema.org/draft/2020-12/meta/applicator",
|
|
@@ -6688,9 +6775,9 @@ var require_applicator2 = __commonJS({
|
|
|
6688
6775
|
}
|
|
6689
6776
|
});
|
|
6690
6777
|
|
|
6691
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6778
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
6692
6779
|
var require_unevaluated2 = __commonJS({
|
|
6693
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6780
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json"(exports, module) {
|
|
6694
6781
|
module.exports = {
|
|
6695
6782
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6696
6783
|
$id: "https://json-schema.org/draft/2020-12/meta/unevaluated",
|
|
@@ -6708,9 +6795,9 @@ var require_unevaluated2 = __commonJS({
|
|
|
6708
6795
|
}
|
|
6709
6796
|
});
|
|
6710
6797
|
|
|
6711
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6798
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
6712
6799
|
var require_content = __commonJS({
|
|
6713
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6800
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json"(exports, module) {
|
|
6714
6801
|
module.exports = {
|
|
6715
6802
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6716
6803
|
$id: "https://json-schema.org/draft/2020-12/meta/content",
|
|
@@ -6729,9 +6816,9 @@ var require_content = __commonJS({
|
|
|
6729
6816
|
}
|
|
6730
6817
|
});
|
|
6731
6818
|
|
|
6732
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6819
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
6733
6820
|
var require_core3 = __commonJS({
|
|
6734
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6821
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json"(exports, module) {
|
|
6735
6822
|
module.exports = {
|
|
6736
6823
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6737
6824
|
$id: "https://json-schema.org/draft/2020-12/meta/core",
|
|
@@ -6785,9 +6872,9 @@ var require_core3 = __commonJS({
|
|
|
6785
6872
|
}
|
|
6786
6873
|
});
|
|
6787
6874
|
|
|
6788
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6875
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
6789
6876
|
var require_format_annotation = __commonJS({
|
|
6790
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6877
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json"(exports, module) {
|
|
6791
6878
|
module.exports = {
|
|
6792
6879
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6793
6880
|
$id: "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
@@ -6804,9 +6891,9 @@ var require_format_annotation = __commonJS({
|
|
|
6804
6891
|
}
|
|
6805
6892
|
});
|
|
6806
6893
|
|
|
6807
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6894
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
6808
6895
|
var require_meta_data = __commonJS({
|
|
6809
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6896
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json"(exports, module) {
|
|
6810
6897
|
module.exports = {
|
|
6811
6898
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6812
6899
|
$id: "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
@@ -6845,9 +6932,9 @@ var require_meta_data = __commonJS({
|
|
|
6845
6932
|
}
|
|
6846
6933
|
});
|
|
6847
6934
|
|
|
6848
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6935
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
6849
6936
|
var require_validation2 = __commonJS({
|
|
6850
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6937
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json"(exports, module) {
|
|
6851
6938
|
module.exports = {
|
|
6852
6939
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6853
6940
|
$id: "https://json-schema.org/draft/2020-12/meta/validation",
|
|
@@ -6940,9 +7027,9 @@ var require_validation2 = __commonJS({
|
|
|
6940
7027
|
}
|
|
6941
7028
|
});
|
|
6942
7029
|
|
|
6943
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
7030
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
6944
7031
|
var require_json_schema_2020_12 = __commonJS({
|
|
6945
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
7032
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports) {
|
|
6946
7033
|
"use strict";
|
|
6947
7034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6948
7035
|
var metaSchema = require_schema();
|
|
@@ -6975,9 +7062,9 @@ var require_json_schema_2020_12 = __commonJS({
|
|
|
6975
7062
|
}
|
|
6976
7063
|
});
|
|
6977
7064
|
|
|
6978
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
7065
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js
|
|
6979
7066
|
var require__ = __commonJS({
|
|
6980
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
7067
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js"(exports, module) {
|
|
6981
7068
|
"use strict";
|
|
6982
7069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6983
7070
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|
|
@@ -7052,9 +7139,9 @@ var require__ = __commonJS({
|
|
|
7052
7139
|
}
|
|
7053
7140
|
});
|
|
7054
7141
|
|
|
7055
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7142
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
|
|
7056
7143
|
var require_formats = __commonJS({
|
|
7057
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7144
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
7058
7145
|
"use strict";
|
|
7059
7146
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7060
7147
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -7255,9 +7342,9 @@ var require_formats = __commonJS({
|
|
|
7255
7342
|
}
|
|
7256
7343
|
});
|
|
7257
7344
|
|
|
7258
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
7345
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
7259
7346
|
var require_draft7 = __commonJS({
|
|
7260
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
7347
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
7261
7348
|
"use strict";
|
|
7262
7349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7263
7350
|
var core_1 = require_core2();
|
|
@@ -7277,9 +7364,9 @@ var require_draft7 = __commonJS({
|
|
|
7277
7364
|
}
|
|
7278
7365
|
});
|
|
7279
7366
|
|
|
7280
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
7367
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
7281
7368
|
var require_json_schema_draft_07 = __commonJS({
|
|
7282
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
7369
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
7283
7370
|
module.exports = {
|
|
7284
7371
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
7285
7372
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -7434,9 +7521,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
7434
7521
|
}
|
|
7435
7522
|
});
|
|
7436
7523
|
|
|
7437
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
7524
|
+
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
7438
7525
|
var require_ajv = __commonJS({
|
|
7439
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
7526
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
7440
7527
|
"use strict";
|
|
7441
7528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7442
7529
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -7504,9 +7591,9 @@ var require_ajv = __commonJS({
|
|
|
7504
7591
|
}
|
|
7505
7592
|
});
|
|
7506
7593
|
|
|
7507
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7594
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
|
|
7508
7595
|
var require_limit = __commonJS({
|
|
7509
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7596
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
7510
7597
|
"use strict";
|
|
7511
7598
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7512
7599
|
exports.formatLimitDefinition = void 0;
|
|
@@ -7576,9 +7663,9 @@ var require_limit = __commonJS({
|
|
|
7576
7663
|
}
|
|
7577
7664
|
});
|
|
7578
7665
|
|
|
7579
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7666
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
|
|
7580
7667
|
var require_dist = __commonJS({
|
|
7581
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
7668
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
7582
7669
|
"use strict";
|
|
7583
7670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7584
7671
|
var formats_1 = require_formats();
|
|
@@ -7618,9 +7705,9 @@ var require_dist = __commonJS({
|
|
|
7618
7705
|
}
|
|
7619
7706
|
});
|
|
7620
7707
|
|
|
7621
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7708
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/constants.js
|
|
7622
7709
|
var require_constants = __commonJS({
|
|
7623
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7710
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/constants.js"(exports, module) {
|
|
7624
7711
|
"use strict";
|
|
7625
7712
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
7626
7713
|
var MAX_LENGTH = 256;
|
|
@@ -7650,9 +7737,9 @@ var require_constants = __commonJS({
|
|
|
7650
7737
|
}
|
|
7651
7738
|
});
|
|
7652
7739
|
|
|
7653
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7740
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/debug.js
|
|
7654
7741
|
var require_debug = __commonJS({
|
|
7655
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7742
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/debug.js"(exports, module) {
|
|
7656
7743
|
"use strict";
|
|
7657
7744
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
7658
7745
|
};
|
|
@@ -7660,9 +7747,9 @@ var require_debug = __commonJS({
|
|
|
7660
7747
|
}
|
|
7661
7748
|
});
|
|
7662
7749
|
|
|
7663
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7750
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/re.js
|
|
7664
7751
|
var require_re = __commonJS({
|
|
7665
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7752
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/re.js"(exports, module) {
|
|
7666
7753
|
"use strict";
|
|
7667
7754
|
var {
|
|
7668
7755
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -7748,9 +7835,9 @@ var require_re = __commonJS({
|
|
|
7748
7835
|
}
|
|
7749
7836
|
});
|
|
7750
7837
|
|
|
7751
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7838
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/parse-options.js
|
|
7752
7839
|
var require_parse_options = __commonJS({
|
|
7753
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7840
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
7754
7841
|
"use strict";
|
|
7755
7842
|
var looseOption = Object.freeze({ loose: true });
|
|
7756
7843
|
var emptyOpts = Object.freeze({});
|
|
@@ -7767,9 +7854,9 @@ var require_parse_options = __commonJS({
|
|
|
7767
7854
|
}
|
|
7768
7855
|
});
|
|
7769
7856
|
|
|
7770
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7857
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/identifiers.js
|
|
7771
7858
|
var require_identifiers = __commonJS({
|
|
7772
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7859
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
7773
7860
|
"use strict";
|
|
7774
7861
|
var numeric = /^[0-9]+$/;
|
|
7775
7862
|
var compareIdentifiers = (a, b) => {
|
|
@@ -7792,9 +7879,9 @@ var require_identifiers = __commonJS({
|
|
|
7792
7879
|
}
|
|
7793
7880
|
});
|
|
7794
7881
|
|
|
7795
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
7882
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/semver.js
|
|
7796
7883
|
var require_semver = __commonJS({
|
|
7797
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7884
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/semver.js"(exports, module) {
|
|
7798
7885
|
"use strict";
|
|
7799
7886
|
var debug = require_debug();
|
|
7800
7887
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -8071,9 +8158,9 @@ var require_semver = __commonJS({
|
|
|
8071
8158
|
}
|
|
8072
8159
|
});
|
|
8073
8160
|
|
|
8074
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8161
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/parse.js
|
|
8075
8162
|
var require_parse = __commonJS({
|
|
8076
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8163
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/parse.js"(exports, module) {
|
|
8077
8164
|
"use strict";
|
|
8078
8165
|
var SemVer = require_semver();
|
|
8079
8166
|
var parse = (version, options, throwErrors = false) => {
|
|
@@ -8093,9 +8180,9 @@ var require_parse = __commonJS({
|
|
|
8093
8180
|
}
|
|
8094
8181
|
});
|
|
8095
8182
|
|
|
8096
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8183
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/valid.js
|
|
8097
8184
|
var require_valid = __commonJS({
|
|
8098
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8185
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/valid.js"(exports, module) {
|
|
8099
8186
|
"use strict";
|
|
8100
8187
|
var parse = require_parse();
|
|
8101
8188
|
var valid = (version, options) => {
|
|
@@ -8106,9 +8193,9 @@ var require_valid = __commonJS({
|
|
|
8106
8193
|
}
|
|
8107
8194
|
});
|
|
8108
8195
|
|
|
8109
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8196
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/clean.js
|
|
8110
8197
|
var require_clean = __commonJS({
|
|
8111
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8198
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/clean.js"(exports, module) {
|
|
8112
8199
|
"use strict";
|
|
8113
8200
|
var parse = require_parse();
|
|
8114
8201
|
var clean = (version, options) => {
|
|
@@ -8119,9 +8206,9 @@ var require_clean = __commonJS({
|
|
|
8119
8206
|
}
|
|
8120
8207
|
});
|
|
8121
8208
|
|
|
8122
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8209
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/inc.js
|
|
8123
8210
|
var require_inc = __commonJS({
|
|
8124
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8211
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/inc.js"(exports, module) {
|
|
8125
8212
|
"use strict";
|
|
8126
8213
|
var SemVer = require_semver();
|
|
8127
8214
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -8143,9 +8230,9 @@ var require_inc = __commonJS({
|
|
|
8143
8230
|
}
|
|
8144
8231
|
});
|
|
8145
8232
|
|
|
8146
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8233
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/diff.js
|
|
8147
8234
|
var require_diff = __commonJS({
|
|
8148
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8235
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/diff.js"(exports, module) {
|
|
8149
8236
|
"use strict";
|
|
8150
8237
|
var parse = require_parse();
|
|
8151
8238
|
var diff = (version1, version2) => {
|
|
@@ -8187,9 +8274,9 @@ var require_diff = __commonJS({
|
|
|
8187
8274
|
}
|
|
8188
8275
|
});
|
|
8189
8276
|
|
|
8190
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8277
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/major.js
|
|
8191
8278
|
var require_major = __commonJS({
|
|
8192
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8279
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/major.js"(exports, module) {
|
|
8193
8280
|
"use strict";
|
|
8194
8281
|
var SemVer = require_semver();
|
|
8195
8282
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
@@ -8197,9 +8284,9 @@ var require_major = __commonJS({
|
|
|
8197
8284
|
}
|
|
8198
8285
|
});
|
|
8199
8286
|
|
|
8200
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8287
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/minor.js
|
|
8201
8288
|
var require_minor = __commonJS({
|
|
8202
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8289
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/minor.js"(exports, module) {
|
|
8203
8290
|
"use strict";
|
|
8204
8291
|
var SemVer = require_semver();
|
|
8205
8292
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
@@ -8207,9 +8294,9 @@ var require_minor = __commonJS({
|
|
|
8207
8294
|
}
|
|
8208
8295
|
});
|
|
8209
8296
|
|
|
8210
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8297
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/patch.js
|
|
8211
8298
|
var require_patch = __commonJS({
|
|
8212
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8299
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/patch.js"(exports, module) {
|
|
8213
8300
|
"use strict";
|
|
8214
8301
|
var SemVer = require_semver();
|
|
8215
8302
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
@@ -8217,9 +8304,9 @@ var require_patch = __commonJS({
|
|
|
8217
8304
|
}
|
|
8218
8305
|
});
|
|
8219
8306
|
|
|
8220
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8307
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/prerelease.js
|
|
8221
8308
|
var require_prerelease = __commonJS({
|
|
8222
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8309
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
8223
8310
|
"use strict";
|
|
8224
8311
|
var parse = require_parse();
|
|
8225
8312
|
var prerelease = (version, options) => {
|
|
@@ -8230,9 +8317,9 @@ var require_prerelease = __commonJS({
|
|
|
8230
8317
|
}
|
|
8231
8318
|
});
|
|
8232
8319
|
|
|
8233
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8320
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare.js
|
|
8234
8321
|
var require_compare = __commonJS({
|
|
8235
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8322
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare.js"(exports, module) {
|
|
8236
8323
|
"use strict";
|
|
8237
8324
|
var SemVer = require_semver();
|
|
8238
8325
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
@@ -8240,9 +8327,9 @@ var require_compare = __commonJS({
|
|
|
8240
8327
|
}
|
|
8241
8328
|
});
|
|
8242
8329
|
|
|
8243
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8330
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rcompare.js
|
|
8244
8331
|
var require_rcompare = __commonJS({
|
|
8245
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8332
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
8246
8333
|
"use strict";
|
|
8247
8334
|
var compare = require_compare();
|
|
8248
8335
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
@@ -8250,9 +8337,9 @@ var require_rcompare = __commonJS({
|
|
|
8250
8337
|
}
|
|
8251
8338
|
});
|
|
8252
8339
|
|
|
8253
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8340
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-loose.js
|
|
8254
8341
|
var require_compare_loose = __commonJS({
|
|
8255
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8342
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
8256
8343
|
"use strict";
|
|
8257
8344
|
var compare = require_compare();
|
|
8258
8345
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
@@ -8260,9 +8347,9 @@ var require_compare_loose = __commonJS({
|
|
|
8260
8347
|
}
|
|
8261
8348
|
});
|
|
8262
8349
|
|
|
8263
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8350
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-build.js
|
|
8264
8351
|
var require_compare_build = __commonJS({
|
|
8265
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8352
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
8266
8353
|
"use strict";
|
|
8267
8354
|
var SemVer = require_semver();
|
|
8268
8355
|
var compareBuild = (a, b, loose) => {
|
|
@@ -8274,9 +8361,9 @@ var require_compare_build = __commonJS({
|
|
|
8274
8361
|
}
|
|
8275
8362
|
});
|
|
8276
8363
|
|
|
8277
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8364
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/sort.js
|
|
8278
8365
|
var require_sort = __commonJS({
|
|
8279
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8366
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/sort.js"(exports, module) {
|
|
8280
8367
|
"use strict";
|
|
8281
8368
|
var compareBuild = require_compare_build();
|
|
8282
8369
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
@@ -8284,9 +8371,9 @@ var require_sort = __commonJS({
|
|
|
8284
8371
|
}
|
|
8285
8372
|
});
|
|
8286
8373
|
|
|
8287
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8374
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rsort.js
|
|
8288
8375
|
var require_rsort = __commonJS({
|
|
8289
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8376
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
8290
8377
|
"use strict";
|
|
8291
8378
|
var compareBuild = require_compare_build();
|
|
8292
8379
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
@@ -8294,9 +8381,9 @@ var require_rsort = __commonJS({
|
|
|
8294
8381
|
}
|
|
8295
8382
|
});
|
|
8296
8383
|
|
|
8297
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8384
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gt.js
|
|
8298
8385
|
var require_gt = __commonJS({
|
|
8299
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8386
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gt.js"(exports, module) {
|
|
8300
8387
|
"use strict";
|
|
8301
8388
|
var compare = require_compare();
|
|
8302
8389
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
@@ -8304,9 +8391,9 @@ var require_gt = __commonJS({
|
|
|
8304
8391
|
}
|
|
8305
8392
|
});
|
|
8306
8393
|
|
|
8307
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8394
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lt.js
|
|
8308
8395
|
var require_lt = __commonJS({
|
|
8309
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8396
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lt.js"(exports, module) {
|
|
8310
8397
|
"use strict";
|
|
8311
8398
|
var compare = require_compare();
|
|
8312
8399
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
@@ -8314,9 +8401,9 @@ var require_lt = __commonJS({
|
|
|
8314
8401
|
}
|
|
8315
8402
|
});
|
|
8316
8403
|
|
|
8317
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8404
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/eq.js
|
|
8318
8405
|
var require_eq = __commonJS({
|
|
8319
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8406
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/eq.js"(exports, module) {
|
|
8320
8407
|
"use strict";
|
|
8321
8408
|
var compare = require_compare();
|
|
8322
8409
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
@@ -8324,9 +8411,9 @@ var require_eq = __commonJS({
|
|
|
8324
8411
|
}
|
|
8325
8412
|
});
|
|
8326
8413
|
|
|
8327
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8414
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/neq.js
|
|
8328
8415
|
var require_neq = __commonJS({
|
|
8329
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8416
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/neq.js"(exports, module) {
|
|
8330
8417
|
"use strict";
|
|
8331
8418
|
var compare = require_compare();
|
|
8332
8419
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
@@ -8334,9 +8421,9 @@ var require_neq = __commonJS({
|
|
|
8334
8421
|
}
|
|
8335
8422
|
});
|
|
8336
8423
|
|
|
8337
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8424
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gte.js
|
|
8338
8425
|
var require_gte = __commonJS({
|
|
8339
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8426
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gte.js"(exports, module) {
|
|
8340
8427
|
"use strict";
|
|
8341
8428
|
var compare = require_compare();
|
|
8342
8429
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
@@ -8344,9 +8431,9 @@ var require_gte = __commonJS({
|
|
|
8344
8431
|
}
|
|
8345
8432
|
});
|
|
8346
8433
|
|
|
8347
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8434
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lte.js
|
|
8348
8435
|
var require_lte = __commonJS({
|
|
8349
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8436
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lte.js"(exports, module) {
|
|
8350
8437
|
"use strict";
|
|
8351
8438
|
var compare = require_compare();
|
|
8352
8439
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
@@ -8354,9 +8441,9 @@ var require_lte = __commonJS({
|
|
|
8354
8441
|
}
|
|
8355
8442
|
});
|
|
8356
8443
|
|
|
8357
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8444
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/cmp.js
|
|
8358
8445
|
var require_cmp = __commonJS({
|
|
8359
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8446
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
8360
8447
|
"use strict";
|
|
8361
8448
|
var eq = require_eq();
|
|
8362
8449
|
var neq = require_neq();
|
|
@@ -8404,9 +8491,9 @@ var require_cmp = __commonJS({
|
|
|
8404
8491
|
}
|
|
8405
8492
|
});
|
|
8406
8493
|
|
|
8407
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8494
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/coerce.js
|
|
8408
8495
|
var require_coerce = __commonJS({
|
|
8409
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8496
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
8410
8497
|
"use strict";
|
|
8411
8498
|
var SemVer = require_semver();
|
|
8412
8499
|
var parse = require_parse();
|
|
@@ -8450,9 +8537,50 @@ var require_coerce = __commonJS({
|
|
|
8450
8537
|
}
|
|
8451
8538
|
});
|
|
8452
8539
|
|
|
8453
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8540
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/truncate.js
|
|
8541
|
+
var require_truncate = __commonJS({
|
|
8542
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/truncate.js"(exports, module) {
|
|
8543
|
+
"use strict";
|
|
8544
|
+
var parse = require_parse();
|
|
8545
|
+
var constants2 = require_constants();
|
|
8546
|
+
var SemVer = require_semver();
|
|
8547
|
+
var truncate = (version, truncation, options) => {
|
|
8548
|
+
if (!constants2.RELEASE_TYPES.includes(truncation)) {
|
|
8549
|
+
return null;
|
|
8550
|
+
}
|
|
8551
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
8552
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
8553
|
+
};
|
|
8554
|
+
var cloneInputVersion = (version, options) => {
|
|
8555
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
8556
|
+
return parse(versionStringToParse, options);
|
|
8557
|
+
};
|
|
8558
|
+
var doTruncation = (version, truncation) => {
|
|
8559
|
+
if (isPrerelease(truncation)) {
|
|
8560
|
+
return version.version;
|
|
8561
|
+
}
|
|
8562
|
+
version.prerelease = [];
|
|
8563
|
+
switch (truncation) {
|
|
8564
|
+
case "major":
|
|
8565
|
+
version.minor = 0;
|
|
8566
|
+
version.patch = 0;
|
|
8567
|
+
break;
|
|
8568
|
+
case "minor":
|
|
8569
|
+
version.patch = 0;
|
|
8570
|
+
break;
|
|
8571
|
+
}
|
|
8572
|
+
return version.format();
|
|
8573
|
+
};
|
|
8574
|
+
var isPrerelease = (type) => {
|
|
8575
|
+
return type.startsWith("pre");
|
|
8576
|
+
};
|
|
8577
|
+
module.exports = truncate;
|
|
8578
|
+
}
|
|
8579
|
+
});
|
|
8580
|
+
|
|
8581
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/lrucache.js
|
|
8454
8582
|
var require_lrucache = __commonJS({
|
|
8455
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8583
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
8456
8584
|
"use strict";
|
|
8457
8585
|
var LRUCache = class {
|
|
8458
8586
|
constructor() {
|
|
@@ -8488,9 +8616,9 @@ var require_lrucache = __commonJS({
|
|
|
8488
8616
|
}
|
|
8489
8617
|
});
|
|
8490
8618
|
|
|
8491
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8619
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/range.js
|
|
8492
8620
|
var require_range = __commonJS({
|
|
8493
|
-
"../../node_modules/.pnpm/semver@7.
|
|
8621
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/range.js"(exports, module) {
|
|
8494
8622
|
"use strict";
|
|
8495
8623
|
var SPACE_CHARACTERS = /\s+/g;
|
|
8496
8624
|
var Range = class _Range {
|
|
@@ -8558,6 +8686,7 @@ var require_range = __commonJS({
|
|
|
8558
8686
|
return this.range;
|
|
8559
8687
|
}
|
|
8560
8688
|
parseRange(range) {
|
|
8689
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
8561
8690
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
8562
8691
|
const memoKey = memoOpts + ":" + range;
|
|
8563
8692
|
const cached = cache.get(memoKey);
|
|
@@ -8640,12 +8769,14 @@ var require_range = __commonJS({
|
|
|
8640
8769
|
var SemVer = require_semver();
|
|
8641
8770
|
var {
|
|
8642
8771
|
safeRe: re,
|
|
8772
|
+
src,
|
|
8643
8773
|
t,
|
|
8644
8774
|
comparatorTrimReplace,
|
|
8645
8775
|
tildeTrimReplace,
|
|
8646
8776
|
caretTrimReplace
|
|
8647
8777
|
} = require_re();
|
|
8648
8778
|
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
8779
|
+
var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
8649
8780
|
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
8650
8781
|
var isAny = (c) => c.value === "";
|
|
8651
8782
|
var isSatisfiable = (comparators, options) => {
|
|
@@ -8704,19 +8835,19 @@ var require_range = __commonJS({
|
|
|
8704
8835
|
var replaceCaret = (comp, options) => {
|
|
8705
8836
|
debug("caret", comp, options);
|
|
8706
8837
|
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
8707
|
-
const
|
|
8838
|
+
const z9 = options.includePrerelease ? "-0" : "";
|
|
8708
8839
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
8709
8840
|
debug("caret", comp, _, M, m, p, pr);
|
|
8710
8841
|
let ret;
|
|
8711
8842
|
if (isX(M)) {
|
|
8712
8843
|
ret = "";
|
|
8713
8844
|
} else if (isX(m)) {
|
|
8714
|
-
ret = `>=${M}.0.0${
|
|
8845
|
+
ret = `>=${M}.0.0${z9} <${+M + 1}.0.0-0`;
|
|
8715
8846
|
} else if (isX(p)) {
|
|
8716
8847
|
if (M === "0") {
|
|
8717
|
-
ret = `>=${M}.${m}.0${
|
|
8848
|
+
ret = `>=${M}.${m}.0${z9} <${M}.${+m + 1}.0-0`;
|
|
8718
8849
|
} else {
|
|
8719
|
-
ret = `>=${M}.${m}.0${
|
|
8850
|
+
ret = `>=${M}.${m}.0${z9} <${+M + 1}.0.0-0`;
|
|
8720
8851
|
}
|
|
8721
8852
|
} else if (pr) {
|
|
8722
8853
|
debug("replaceCaret pr", pr);
|
|
@@ -8733,9 +8864,9 @@ var require_range = __commonJS({
|
|
|
8733
8864
|
debug("no pr");
|
|
8734
8865
|
if (M === "0") {
|
|
8735
8866
|
if (m === "0") {
|
|
8736
|
-
ret = `>=${M}.${m}.${p}${
|
|
8867
|
+
ret = `>=${M}.${m}.${p}${z9} <${M}.${m}.${+p + 1}-0`;
|
|
8737
8868
|
} else {
|
|
8738
|
-
ret = `>=${M}.${m}.${p}${
|
|
8869
|
+
ret = `>=${M}.${m}.${p}${z9} <${M}.${+m + 1}.0-0`;
|
|
8739
8870
|
}
|
|
8740
8871
|
} else {
|
|
8741
8872
|
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
@@ -8865,9 +8996,9 @@ var require_range = __commonJS({
|
|
|
8865
8996
|
}
|
|
8866
8997
|
});
|
|
8867
8998
|
|
|
8868
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
8999
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/comparator.js
|
|
8869
9000
|
var require_comparator = __commonJS({
|
|
8870
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9001
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
8871
9002
|
"use strict";
|
|
8872
9003
|
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
8873
9004
|
var Comparator = class _Comparator {
|
|
@@ -8978,9 +9109,9 @@ var require_comparator = __commonJS({
|
|
|
8978
9109
|
}
|
|
8979
9110
|
});
|
|
8980
9111
|
|
|
8981
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9112
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/satisfies.js
|
|
8982
9113
|
var require_satisfies = __commonJS({
|
|
8983
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9114
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
8984
9115
|
"use strict";
|
|
8985
9116
|
var Range = require_range();
|
|
8986
9117
|
var satisfies = (version, range, options) => {
|
|
@@ -8995,9 +9126,9 @@ var require_satisfies = __commonJS({
|
|
|
8995
9126
|
}
|
|
8996
9127
|
});
|
|
8997
9128
|
|
|
8998
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9129
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/to-comparators.js
|
|
8999
9130
|
var require_to_comparators = __commonJS({
|
|
9000
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9131
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
9001
9132
|
"use strict";
|
|
9002
9133
|
var Range = require_range();
|
|
9003
9134
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
@@ -9005,9 +9136,9 @@ var require_to_comparators = __commonJS({
|
|
|
9005
9136
|
}
|
|
9006
9137
|
});
|
|
9007
9138
|
|
|
9008
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9139
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/max-satisfying.js
|
|
9009
9140
|
var require_max_satisfying = __commonJS({
|
|
9010
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9141
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
9011
9142
|
"use strict";
|
|
9012
9143
|
var SemVer = require_semver();
|
|
9013
9144
|
var Range = require_range();
|
|
@@ -9034,9 +9165,9 @@ var require_max_satisfying = __commonJS({
|
|
|
9034
9165
|
}
|
|
9035
9166
|
});
|
|
9036
9167
|
|
|
9037
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9168
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-satisfying.js
|
|
9038
9169
|
var require_min_satisfying = __commonJS({
|
|
9039
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9170
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
9040
9171
|
"use strict";
|
|
9041
9172
|
var SemVer = require_semver();
|
|
9042
9173
|
var Range = require_range();
|
|
@@ -9063,9 +9194,9 @@ var require_min_satisfying = __commonJS({
|
|
|
9063
9194
|
}
|
|
9064
9195
|
});
|
|
9065
9196
|
|
|
9066
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9197
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-version.js
|
|
9067
9198
|
var require_min_version = __commonJS({
|
|
9068
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9199
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
9069
9200
|
"use strict";
|
|
9070
9201
|
var SemVer = require_semver();
|
|
9071
9202
|
var Range = require_range();
|
|
@@ -9122,9 +9253,9 @@ var require_min_version = __commonJS({
|
|
|
9122
9253
|
}
|
|
9123
9254
|
});
|
|
9124
9255
|
|
|
9125
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9256
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/valid.js
|
|
9126
9257
|
var require_valid2 = __commonJS({
|
|
9127
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9258
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
9128
9259
|
"use strict";
|
|
9129
9260
|
var Range = require_range();
|
|
9130
9261
|
var validRange = (range, options) => {
|
|
@@ -9138,9 +9269,9 @@ var require_valid2 = __commonJS({
|
|
|
9138
9269
|
}
|
|
9139
9270
|
});
|
|
9140
9271
|
|
|
9141
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9272
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/outside.js
|
|
9142
9273
|
var require_outside = __commonJS({
|
|
9143
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9274
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
9144
9275
|
"use strict";
|
|
9145
9276
|
var SemVer = require_semver();
|
|
9146
9277
|
var Comparator = require_comparator();
|
|
@@ -9207,9 +9338,9 @@ var require_outside = __commonJS({
|
|
|
9207
9338
|
}
|
|
9208
9339
|
});
|
|
9209
9340
|
|
|
9210
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9341
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/gtr.js
|
|
9211
9342
|
var require_gtr = __commonJS({
|
|
9212
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9343
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
9213
9344
|
"use strict";
|
|
9214
9345
|
var outside = require_outside();
|
|
9215
9346
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
@@ -9217,9 +9348,9 @@ var require_gtr = __commonJS({
|
|
|
9217
9348
|
}
|
|
9218
9349
|
});
|
|
9219
9350
|
|
|
9220
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9351
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/ltr.js
|
|
9221
9352
|
var require_ltr = __commonJS({
|
|
9222
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9353
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
9223
9354
|
"use strict";
|
|
9224
9355
|
var outside = require_outside();
|
|
9225
9356
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
@@ -9227,9 +9358,9 @@ var require_ltr = __commonJS({
|
|
|
9227
9358
|
}
|
|
9228
9359
|
});
|
|
9229
9360
|
|
|
9230
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9361
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/intersects.js
|
|
9231
9362
|
var require_intersects = __commonJS({
|
|
9232
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9363
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
9233
9364
|
"use strict";
|
|
9234
9365
|
var Range = require_range();
|
|
9235
9366
|
var intersects = (r1, r2, options) => {
|
|
@@ -9241,9 +9372,9 @@ var require_intersects = __commonJS({
|
|
|
9241
9372
|
}
|
|
9242
9373
|
});
|
|
9243
9374
|
|
|
9244
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9375
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/simplify.js
|
|
9245
9376
|
var require_simplify = __commonJS({
|
|
9246
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9377
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
9247
9378
|
"use strict";
|
|
9248
9379
|
var satisfies = require_satisfies();
|
|
9249
9380
|
var compare = require_compare();
|
|
@@ -9291,9 +9422,9 @@ var require_simplify = __commonJS({
|
|
|
9291
9422
|
}
|
|
9292
9423
|
});
|
|
9293
9424
|
|
|
9294
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9425
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/subset.js
|
|
9295
9426
|
var require_subset = __commonJS({
|
|
9296
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9427
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
9297
9428
|
"use strict";
|
|
9298
9429
|
var Range = require_range();
|
|
9299
9430
|
var Comparator = require_comparator();
|
|
@@ -9401,7 +9532,7 @@ var require_subset = __commonJS({
|
|
|
9401
9532
|
if (higher === c && higher !== gt) {
|
|
9402
9533
|
return false;
|
|
9403
9534
|
}
|
|
9404
|
-
} else if (gt.operator === ">=" && !
|
|
9535
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) {
|
|
9405
9536
|
return false;
|
|
9406
9537
|
}
|
|
9407
9538
|
}
|
|
@@ -9416,7 +9547,7 @@ var require_subset = __commonJS({
|
|
|
9416
9547
|
if (lower === c && lower !== lt) {
|
|
9417
9548
|
return false;
|
|
9418
9549
|
}
|
|
9419
|
-
} else if (lt.operator === "<=" && !
|
|
9550
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) {
|
|
9420
9551
|
return false;
|
|
9421
9552
|
}
|
|
9422
9553
|
}
|
|
@@ -9453,12 +9584,12 @@ var require_subset = __commonJS({
|
|
|
9453
9584
|
}
|
|
9454
9585
|
});
|
|
9455
9586
|
|
|
9456
|
-
// ../../node_modules/.pnpm/semver@7.
|
|
9587
|
+
// ../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/index.js
|
|
9457
9588
|
var require_semver2 = __commonJS({
|
|
9458
|
-
"../../node_modules/.pnpm/semver@7.
|
|
9589
|
+
"../../node_modules/.pnpm/semver@7.8.1/node_modules/semver/index.js"(exports, module) {
|
|
9459
9590
|
"use strict";
|
|
9460
9591
|
var internalRe = require_re();
|
|
9461
|
-
var
|
|
9592
|
+
var constants2 = require_constants();
|
|
9462
9593
|
var SemVer = require_semver();
|
|
9463
9594
|
var identifiers = require_identifiers();
|
|
9464
9595
|
var parse = require_parse();
|
|
@@ -9484,6 +9615,7 @@ var require_semver2 = __commonJS({
|
|
|
9484
9615
|
var lte = require_lte();
|
|
9485
9616
|
var cmp = require_cmp();
|
|
9486
9617
|
var coerce = require_coerce();
|
|
9618
|
+
var truncate = require_truncate();
|
|
9487
9619
|
var Comparator = require_comparator();
|
|
9488
9620
|
var Range = require_range();
|
|
9489
9621
|
var satisfies = require_satisfies();
|
|
@@ -9522,6 +9654,7 @@ var require_semver2 = __commonJS({
|
|
|
9522
9654
|
lte,
|
|
9523
9655
|
cmp,
|
|
9524
9656
|
coerce,
|
|
9657
|
+
truncate,
|
|
9525
9658
|
Comparator,
|
|
9526
9659
|
Range,
|
|
9527
9660
|
satisfies,
|
|
@@ -9540,8 +9673,8 @@ var require_semver2 = __commonJS({
|
|
|
9540
9673
|
re: internalRe.re,
|
|
9541
9674
|
src: internalRe.src,
|
|
9542
9675
|
tokens: internalRe.t,
|
|
9543
|
-
SEMVER_SPEC_VERSION:
|
|
9544
|
-
RELEASE_TYPES:
|
|
9676
|
+
SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
|
|
9677
|
+
RELEASE_TYPES: constants2.RELEASE_TYPES,
|
|
9545
9678
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
9546
9679
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
9547
9680
|
};
|
|
@@ -11269,6 +11402,24 @@ var SpendRequestResource = class {
|
|
|
11269
11402
|
}
|
|
11270
11403
|
return res;
|
|
11271
11404
|
}
|
|
11405
|
+
list() {
|
|
11406
|
+
return this.listSpendRequests();
|
|
11407
|
+
}
|
|
11408
|
+
async listSpendRequests() {
|
|
11409
|
+
const { status, data, rawBody } = await this.apiFetch({
|
|
11410
|
+
method: "GET",
|
|
11411
|
+
url: this.spendRequestsEndpoint
|
|
11412
|
+
});
|
|
11413
|
+
if (status < 200 || status >= 300) {
|
|
11414
|
+
throw new LinkApiError(
|
|
11415
|
+
`Failed to list spend requests (${status}): ${extractApiError(data, rawBody)}`,
|
|
11416
|
+
{ status, rawBody, details: data }
|
|
11417
|
+
);
|
|
11418
|
+
}
|
|
11419
|
+
const body = data;
|
|
11420
|
+
const items = body?.data ?? [];
|
|
11421
|
+
return items.map(normalizeSpendRequest);
|
|
11422
|
+
}
|
|
11272
11423
|
create(params) {
|
|
11273
11424
|
return this.createSpendRequest(params);
|
|
11274
11425
|
}
|
|
@@ -11450,9 +11601,138 @@ var UserInfoResource = class {
|
|
|
11450
11601
|
};
|
|
11451
11602
|
}
|
|
11452
11603
|
};
|
|
11604
|
+
var EXPIRY_BUFFER_MS = 3e4;
|
|
11605
|
+
var WebBotAuthResource = class {
|
|
11606
|
+
verbose;
|
|
11607
|
+
getAccessToken;
|
|
11608
|
+
fetchImpl;
|
|
11609
|
+
signEndpoint;
|
|
11610
|
+
logger;
|
|
11611
|
+
cache = /* @__PURE__ */ new Map();
|
|
11612
|
+
constructor(options) {
|
|
11613
|
+
const config = resolveLinkSdkConfig(options);
|
|
11614
|
+
this.verbose = config.verbose;
|
|
11615
|
+
this.getAccessToken = config.getAccessToken;
|
|
11616
|
+
this.fetchImpl = requireFetchImplementation(config);
|
|
11617
|
+
this.signEndpoint = `${config.apiBaseUrl}/web_bot_auth/sign`;
|
|
11618
|
+
this.logger = config.logger;
|
|
11619
|
+
}
|
|
11620
|
+
async rawFetch(opts) {
|
|
11621
|
+
if (this.verbose) {
|
|
11622
|
+
const redactedHeaders = { ...opts.headers };
|
|
11623
|
+
if (redactedHeaders.Authorization)
|
|
11624
|
+
redactedHeaders.Authorization = "Bearer <redacted>";
|
|
11625
|
+
this.logger.debug(`> ${opts.method} ${opts.url}`);
|
|
11626
|
+
this.logger.debug(` Headers: ${JSON.stringify(redactedHeaders)}`);
|
|
11627
|
+
if (opts.body) this.logger.debug(opts.body);
|
|
11628
|
+
}
|
|
11629
|
+
const fetchOpts = {
|
|
11630
|
+
method: opts.method,
|
|
11631
|
+
headers: opts.headers
|
|
11632
|
+
};
|
|
11633
|
+
if (opts.body) {
|
|
11634
|
+
fetchOpts.body = opts.body;
|
|
11635
|
+
}
|
|
11636
|
+
let response;
|
|
11637
|
+
try {
|
|
11638
|
+
response = await this.fetchImpl(opts.url, fetchOpts);
|
|
11639
|
+
} catch (error) {
|
|
11640
|
+
throw new LinkTransportError(
|
|
11641
|
+
`Request failed: ${opts.method} ${opts.url}`,
|
|
11642
|
+
{ cause: error }
|
|
11643
|
+
);
|
|
11644
|
+
}
|
|
11645
|
+
const rawBody = await response.text();
|
|
11646
|
+
let data = null;
|
|
11647
|
+
try {
|
|
11648
|
+
data = JSON.parse(rawBody);
|
|
11649
|
+
} catch {
|
|
11650
|
+
}
|
|
11651
|
+
if (this.verbose) {
|
|
11652
|
+
this.logger.debug(`< ${response.status} ${response.statusText}`);
|
|
11653
|
+
response.headers.forEach((value, key) => {
|
|
11654
|
+
this.logger.debug(` ${key}: ${value}`);
|
|
11655
|
+
});
|
|
11656
|
+
this.logger.debug(JSON.stringify(data, null, 2) ?? rawBody);
|
|
11657
|
+
}
|
|
11658
|
+
return { status: response.status, data, rawBody };
|
|
11659
|
+
}
|
|
11660
|
+
async apiFetch(opts) {
|
|
11661
|
+
const token = await this.getAccessToken();
|
|
11662
|
+
const authedOpts = {
|
|
11663
|
+
...opts,
|
|
11664
|
+
headers: { ...opts.headers, Authorization: `Bearer ${token}` }
|
|
11665
|
+
};
|
|
11666
|
+
const res = await this.rawFetch(authedOpts);
|
|
11667
|
+
if (res.status === 401) {
|
|
11668
|
+
const refreshedToken = await this.getAccessToken({ forceRefresh: true });
|
|
11669
|
+
authedOpts.headers.Authorization = `Bearer ${refreshedToken}`;
|
|
11670
|
+
return this.rawFetch(authedOpts);
|
|
11671
|
+
}
|
|
11672
|
+
return res;
|
|
11673
|
+
}
|
|
11674
|
+
/**
|
|
11675
|
+
* Returns Web Bot Auth signature headers for the given URL's authority.
|
|
11676
|
+
*
|
|
11677
|
+
* Pass the full merchant URL (e.g. `https://merchant.com/checkout`). The
|
|
11678
|
+
* authority (hostname) is extracted and used as the cache key — repeated
|
|
11679
|
+
* calls for the same domain within the 10-minute signature window are served
|
|
11680
|
+
* from cache without a network round-trip.
|
|
11681
|
+
*
|
|
11682
|
+
* Attach the returned `signature` and `signature_input` values as the
|
|
11683
|
+
* `Signature` and `Signature-Input` HTTP headers on outbound requests to
|
|
11684
|
+
* the merchant site.
|
|
11685
|
+
*
|
|
11686
|
+
* @throws {LinkSdkError} if `url` is not a valid URL
|
|
11687
|
+
* @throws {LinkSdkError} if the sign response is missing the web_bot_auth block
|
|
11688
|
+
* @throws {LinkApiError} if the sign endpoint returns a non-2xx status
|
|
11689
|
+
* @throws {LinkTransportError} if the network request fails
|
|
11690
|
+
*/
|
|
11691
|
+
async signUrl(url) {
|
|
11692
|
+
let authority;
|
|
11693
|
+
try {
|
|
11694
|
+
authority = new URL(url).hostname;
|
|
11695
|
+
} catch {
|
|
11696
|
+
throw new LinkSdkError(`Invalid URL: ${url}`);
|
|
11697
|
+
}
|
|
11698
|
+
const cached = this.cache.get(authority);
|
|
11699
|
+
if (cached && Date.now() < cached.expiresAt - EXPIRY_BUFFER_MS) {
|
|
11700
|
+
return cached.block;
|
|
11701
|
+
}
|
|
11702
|
+
const { status, data, rawBody } = await this.apiFetch({
|
|
11703
|
+
method: "POST",
|
|
11704
|
+
url: this.signEndpoint,
|
|
11705
|
+
headers: { "Content-Type": "application/json" },
|
|
11706
|
+
body: JSON.stringify({ url })
|
|
11707
|
+
});
|
|
11708
|
+
if (status < 200 || status >= 300) {
|
|
11709
|
+
const body2 = data;
|
|
11710
|
+
const msg = body2?.error ?? body2?.message ?? (rawBody || "unknown error");
|
|
11711
|
+
throw new LinkApiError(
|
|
11712
|
+
`Failed to get web bot auth headers (${status}): ${msg}`,
|
|
11713
|
+
{ status, rawBody, details: data }
|
|
11714
|
+
);
|
|
11715
|
+
}
|
|
11716
|
+
const body = data;
|
|
11717
|
+
const webBotAuth = body?.web_bot_auth;
|
|
11718
|
+
if (!webBotAuth) {
|
|
11719
|
+
throw new LinkSdkError(
|
|
11720
|
+
`Sign response missing web_bot_auth block (status ${status})`
|
|
11721
|
+
);
|
|
11722
|
+
}
|
|
11723
|
+
const expiresAt = Date.parse(webBotAuth.expires_at);
|
|
11724
|
+
if (Number.isNaN(expiresAt)) {
|
|
11725
|
+
throw new LinkSdkError(
|
|
11726
|
+
`Credentials response has invalid expires_at: ${webBotAuth.expires_at}`
|
|
11727
|
+
);
|
|
11728
|
+
}
|
|
11729
|
+
this.cache.set(authority, { block: webBotAuth, expiresAt });
|
|
11730
|
+
return webBotAuth;
|
|
11731
|
+
}
|
|
11732
|
+
};
|
|
11453
11733
|
|
|
11454
11734
|
// src/cli.tsx
|
|
11455
|
-
import { Cli as
|
|
11735
|
+
import { Cli as Cli10 } from "incur";
|
|
11456
11736
|
|
|
11457
11737
|
// src/commands/auth/index.tsx
|
|
11458
11738
|
import { Cli } from "incur";
|
|
@@ -11499,6 +11779,41 @@ async function renderInteractive(element, getResult) {
|
|
|
11499
11779
|
}
|
|
11500
11780
|
}
|
|
11501
11781
|
|
|
11782
|
+
// src/utils/sanitize-text.ts
|
|
11783
|
+
import stripAnsi from "strip-ansi";
|
|
11784
|
+
var CONTROL_CHAR_RE = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\r]/g;
|
|
11785
|
+
var NEEDS_SANITIZE_RE = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\r\x1b]/;
|
|
11786
|
+
function sanitizeText(input) {
|
|
11787
|
+
if (!input) {
|
|
11788
|
+
return "";
|
|
11789
|
+
}
|
|
11790
|
+
if (!NEEDS_SANITIZE_RE.test(input)) {
|
|
11791
|
+
return input;
|
|
11792
|
+
}
|
|
11793
|
+
return stripAnsi(input).replace(CONTROL_CHAR_RE, "");
|
|
11794
|
+
}
|
|
11795
|
+
function sanitizeDeep(value) {
|
|
11796
|
+
if (value === null || value === void 0) {
|
|
11797
|
+
return value;
|
|
11798
|
+
}
|
|
11799
|
+
if (typeof value === "string") {
|
|
11800
|
+
return sanitizeText(value);
|
|
11801
|
+
}
|
|
11802
|
+
if (Array.isArray(value)) {
|
|
11803
|
+
return value.map(sanitizeDeep);
|
|
11804
|
+
}
|
|
11805
|
+
if (typeof value === "object") {
|
|
11806
|
+
const result = {};
|
|
11807
|
+
const keys = Object.keys(value);
|
|
11808
|
+
for (let i = 0; i < keys.length; i++) {
|
|
11809
|
+
const k = keys[i];
|
|
11810
|
+
result[k] = sanitizeDeep(value[k]);
|
|
11811
|
+
}
|
|
11812
|
+
return result;
|
|
11813
|
+
}
|
|
11814
|
+
return value;
|
|
11815
|
+
}
|
|
11816
|
+
|
|
11502
11817
|
// src/commands/auth/login.tsx
|
|
11503
11818
|
import { Box, Text, useInput } from "ink";
|
|
11504
11819
|
import Spinner from "ink-spinner";
|
|
@@ -11723,7 +12038,12 @@ import { z } from "incur";
|
|
|
11723
12038
|
var loginOptions = z.object({
|
|
11724
12039
|
clientName: z.string().default("Link CLI").describe(
|
|
11725
12040
|
"Agent or app name shown in the Link app when approving the device connection"
|
|
11726
|
-
)
|
|
12041
|
+
),
|
|
12042
|
+
interval: z.coerce.number().default(0).describe(
|
|
12043
|
+
"Poll interval in seconds. When > 0, polls until authenticated or timeout is reached, yielding status on each attempt."
|
|
12044
|
+
),
|
|
12045
|
+
maxAttempts: z.coerce.number().default(0).describe("Max poll attempts. 0 = unlimited (use timeout instead)."),
|
|
12046
|
+
timeout: z.coerce.number().default(300).describe("Polling timeout in seconds.")
|
|
11727
12047
|
});
|
|
11728
12048
|
var statusOptions = z.object({
|
|
11729
12049
|
interval: z.coerce.number().default(0).describe(
|
|
@@ -11736,47 +12056,65 @@ var statusOptions = z.object({
|
|
|
11736
12056
|
// src/commands/auth/status.tsx
|
|
11737
12057
|
import { Box as Box3, Text as Text3 } from "ink";
|
|
11738
12058
|
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
12059
|
+
|
|
12060
|
+
// src/commands/auth/utils.ts
|
|
12061
|
+
function resolveAuthInfo(envAccessToken2, authStorage2) {
|
|
12062
|
+
if (envAccessToken2) {
|
|
12063
|
+
return {
|
|
12064
|
+
authenticated: true,
|
|
12065
|
+
source: "env",
|
|
12066
|
+
tokenPreview: `${envAccessToken2.substring(0, 20)}...`,
|
|
12067
|
+
tokenType: "Bearer"
|
|
12068
|
+
};
|
|
12069
|
+
}
|
|
12070
|
+
const auth = authStorage2.getAuth();
|
|
12071
|
+
const credentialsPath = authStorage2.getPath();
|
|
12072
|
+
if (auth) {
|
|
12073
|
+
return {
|
|
12074
|
+
authenticated: true,
|
|
12075
|
+
source: "storage",
|
|
12076
|
+
tokenPreview: `${auth.access_token.substring(0, 20)}...`,
|
|
12077
|
+
tokenType: auth.token_type,
|
|
12078
|
+
credentialsPath
|
|
12079
|
+
};
|
|
12080
|
+
}
|
|
12081
|
+
return { authenticated: false, source: "storage", credentialsPath };
|
|
12082
|
+
}
|
|
12083
|
+
|
|
12084
|
+
// src/commands/auth/status.tsx
|
|
11739
12085
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
11740
12086
|
var AuthStatus = ({
|
|
11741
12087
|
authStorage: authStorage2 = storage,
|
|
12088
|
+
envAccessToken: envAccessToken2,
|
|
11742
12089
|
onComplete
|
|
11743
12090
|
}) => {
|
|
11744
|
-
const storage2 = authStorage2;
|
|
11745
12091
|
const [checked, setChecked] = useState3(false);
|
|
11746
|
-
const [authenticated, setAuthenticated] = useState3(false);
|
|
11747
|
-
const [tokenPreview, setTokenPreview] = useState3("");
|
|
11748
|
-
const [tokenType, setTokenType] = useState3("");
|
|
11749
|
-
const [credentialsPath, setCredentialsPath] = useState3("");
|
|
11750
12092
|
useEffect3(() => {
|
|
11751
|
-
const auth = storage2.getAuth();
|
|
11752
|
-
const credentialsPath2 = storage2.getPath();
|
|
11753
|
-
if (auth) {
|
|
11754
|
-
setAuthenticated(true);
|
|
11755
|
-
setTokenPreview(`${auth.access_token.substring(0, 20)}...`);
|
|
11756
|
-
setTokenType(auth.token_type);
|
|
11757
|
-
}
|
|
11758
|
-
setCredentialsPath(credentialsPath2);
|
|
11759
12093
|
setChecked(true);
|
|
11760
12094
|
setTimeout(onComplete, DISPLAY_DELAY_MS);
|
|
11761
|
-
}, [onComplete
|
|
12095
|
+
}, [onComplete]);
|
|
11762
12096
|
if (!checked) {
|
|
11763
12097
|
return null;
|
|
11764
12098
|
}
|
|
11765
|
-
|
|
12099
|
+
const info = resolveAuthInfo(envAccessToken2, authStorage2);
|
|
12100
|
+
if (info.authenticated) {
|
|
11766
12101
|
return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
|
|
11767
12102
|
/* @__PURE__ */ jsx3(Text3, { color: "green", children: "\u2713 Authenticated" }),
|
|
11768
12103
|
/* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
11769
12104
|
/* @__PURE__ */ jsxs3(Text3, { children: [
|
|
11770
12105
|
"Access token: ",
|
|
11771
|
-
/* @__PURE__ */ jsx3(Text3, { bold: true, children: tokenPreview })
|
|
12106
|
+
/* @__PURE__ */ jsx3(Text3, { bold: true, children: info.tokenPreview })
|
|
11772
12107
|
] }),
|
|
11773
12108
|
/* @__PURE__ */ jsxs3(Text3, { children: [
|
|
11774
12109
|
"Token type: ",
|
|
11775
|
-
/* @__PURE__ */ jsx3(Text3, { bold: true, children: tokenType })
|
|
12110
|
+
/* @__PURE__ */ jsx3(Text3, { bold: true, children: info.tokenType })
|
|
11776
12111
|
] }),
|
|
11777
|
-
/* @__PURE__ */ jsxs3(Text3, { children: [
|
|
12112
|
+
info.source === "env" ? /* @__PURE__ */ jsxs3(Text3, { children: [
|
|
12113
|
+
"Source: ",
|
|
12114
|
+
/* @__PURE__ */ jsx3(Text3, { bold: true, children: "LINK_ACCESS_TOKEN" })
|
|
12115
|
+
] }) : /* @__PURE__ */ jsxs3(Text3, { children: [
|
|
11778
12116
|
"Credentials: ",
|
|
11779
|
-
/* @__PURE__ */ jsx3(Text3, { bold: true, children: credentialsPath })
|
|
12117
|
+
/* @__PURE__ */ jsx3(Text3, { bold: true, children: info.credentialsPath })
|
|
11780
12118
|
] })
|
|
11781
12119
|
] })
|
|
11782
12120
|
] });
|
|
@@ -11786,14 +12124,66 @@ var AuthStatus = ({
|
|
|
11786
12124
|
/* @__PURE__ */ jsx3(Text3, { dimColor: true, children: 'Run "link-cli auth login" to authenticate' }),
|
|
11787
12125
|
/* @__PURE__ */ jsx3(Box3, { marginTop: 1, paddingX: 2, children: /* @__PURE__ */ jsxs3(Text3, { children: [
|
|
11788
12126
|
"Credentials: ",
|
|
11789
|
-
/* @__PURE__ */ jsx3(Text3, { bold: true, children: credentialsPath })
|
|
12127
|
+
/* @__PURE__ */ jsx3(Text3, { bold: true, children: info.credentialsPath })
|
|
11790
12128
|
] }) })
|
|
11791
12129
|
] });
|
|
11792
12130
|
};
|
|
11793
12131
|
|
|
11794
12132
|
// src/commands/auth/index.tsx
|
|
11795
12133
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
11796
|
-
function
|
|
12134
|
+
async function* pollAuthStatus(authResource, storage2, opts, update) {
|
|
12135
|
+
for await (const result of pollUntil({
|
|
12136
|
+
fn: async () => {
|
|
12137
|
+
const pending = storage2.getPendingDeviceAuth();
|
|
12138
|
+
if (pending && !storage2.isAuthenticated()) {
|
|
12139
|
+
const tokens = await authResource.pollDeviceAuth(pending.device_code);
|
|
12140
|
+
if (tokens) {
|
|
12141
|
+
storage2.setAuth(tokens);
|
|
12142
|
+
storage2.clearPendingDeviceAuth();
|
|
12143
|
+
}
|
|
12144
|
+
}
|
|
12145
|
+
const auth = storage2.getAuth();
|
|
12146
|
+
if (auth) {
|
|
12147
|
+
return {
|
|
12148
|
+
authenticated: true,
|
|
12149
|
+
access_token: `${auth.access_token.substring(0, 20)}...`,
|
|
12150
|
+
token_type: auth.token_type,
|
|
12151
|
+
credentials_path: storage2.getPath(),
|
|
12152
|
+
...update && { update }
|
|
12153
|
+
};
|
|
12154
|
+
}
|
|
12155
|
+
const currentPending = storage2.getPendingDeviceAuth();
|
|
12156
|
+
return {
|
|
12157
|
+
authenticated: false,
|
|
12158
|
+
credentials_path: storage2.getPath(),
|
|
12159
|
+
...update && { update },
|
|
12160
|
+
...currentPending ? {
|
|
12161
|
+
pending: true,
|
|
12162
|
+
verification_url: currentPending.verification_url,
|
|
12163
|
+
phrase: currentPending.phrase
|
|
12164
|
+
} : {}
|
|
12165
|
+
};
|
|
12166
|
+
},
|
|
12167
|
+
isTerminal: (status) => status.authenticated,
|
|
12168
|
+
interval: opts.interval,
|
|
12169
|
+
maxAttempts: opts.maxAttempts,
|
|
12170
|
+
timeout: opts.timeout
|
|
12171
|
+
})) {
|
|
12172
|
+
yield result.value;
|
|
12173
|
+
}
|
|
12174
|
+
}
|
|
12175
|
+
async function maybeRevokeAndClearAuth(authResource, storage2) {
|
|
12176
|
+
const auth = storage2.getAuth();
|
|
12177
|
+
if (auth?.refresh_token) {
|
|
12178
|
+
try {
|
|
12179
|
+
await authResource.revokeToken(auth.refresh_token);
|
|
12180
|
+
} catch {
|
|
12181
|
+
}
|
|
12182
|
+
}
|
|
12183
|
+
storage2.clearAuth();
|
|
12184
|
+
storage2.clearPendingDeviceAuth();
|
|
12185
|
+
}
|
|
12186
|
+
function createAuthCli(authResource, getUpdateInfo2, authStorage2, envAccessToken2) {
|
|
11797
12187
|
const storage2 = authStorage2 ?? storage;
|
|
11798
12188
|
const cli2 = Cli.create("auth", {
|
|
11799
12189
|
description: "Authentication commands"
|
|
@@ -11810,6 +12200,7 @@ function createAuthCli(authResource, getUpdateInfo2, authStorage2) {
|
|
|
11810
12200
|
message: "client-name must be a non-empty string"
|
|
11811
12201
|
});
|
|
11812
12202
|
}
|
|
12203
|
+
await maybeRevokeAndClearAuth(authResource, storage2);
|
|
11813
12204
|
if (!c.agent && !c.formatExplicit) {
|
|
11814
12205
|
return renderInteractive(
|
|
11815
12206
|
/* @__PURE__ */ jsx4(
|
|
@@ -11833,31 +12224,37 @@ function createAuthCli(authResource, getUpdateInfo2, authStorage2) {
|
|
|
11833
12224
|
verification_url: authRequest.verification_url_complete,
|
|
11834
12225
|
phrase: authRequest.user_code
|
|
11835
12226
|
});
|
|
11836
|
-
|
|
12227
|
+
const interval = c.options.interval;
|
|
12228
|
+
if (interval <= 0) {
|
|
12229
|
+
yield sanitizeDeep({
|
|
12230
|
+
verification_url: authRequest.verification_url_complete,
|
|
12231
|
+
phrase: authRequest.user_code,
|
|
12232
|
+
instruction: "Present the verification_url to the user and ask them to approve in the Link app. Then call `auth status --interval 5 --max-attempts 60` to poll until authenticated. Do not wait for the user to reply \u2014 start polling immediately.",
|
|
12233
|
+
_next: {
|
|
12234
|
+
command: "auth status --interval 5 --max-attempts 60",
|
|
12235
|
+
poll_interval_seconds: authRequest.interval,
|
|
12236
|
+
until: "authenticated is true"
|
|
12237
|
+
}
|
|
12238
|
+
});
|
|
12239
|
+
return;
|
|
12240
|
+
}
|
|
12241
|
+
yield sanitizeDeep({
|
|
11837
12242
|
verification_url: authRequest.verification_url_complete,
|
|
11838
12243
|
phrase: authRequest.user_code,
|
|
11839
|
-
instruction: "Present the verification_url to the user and ask them to approve in the Link app.
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
};
|
|
12244
|
+
instruction: "Present the verification_url to the user and ask them to approve in the Link app. Polling has started automatically \u2014 no further action needed."
|
|
12245
|
+
});
|
|
12246
|
+
yield* pollAuthStatus(authResource, storage2, {
|
|
12247
|
+
interval,
|
|
12248
|
+
maxAttempts: c.options.maxAttempts,
|
|
12249
|
+
timeout: c.options.timeout
|
|
12250
|
+
});
|
|
11846
12251
|
}
|
|
11847
12252
|
});
|
|
11848
12253
|
cli2.command("logout", {
|
|
11849
12254
|
description: "Log out from Link",
|
|
11850
12255
|
outputPolicy: "agent-only",
|
|
11851
12256
|
async run(c) {
|
|
11852
|
-
|
|
11853
|
-
if (auth?.refresh_token) {
|
|
11854
|
-
try {
|
|
11855
|
-
await authResource.revokeToken(auth.refresh_token);
|
|
11856
|
-
} catch {
|
|
11857
|
-
}
|
|
11858
|
-
}
|
|
11859
|
-
storage2.clearAuth();
|
|
11860
|
-
storage2.clearPendingDeviceAuth();
|
|
12257
|
+
await maybeRevokeAndClearAuth(authResource, storage2);
|
|
11861
12258
|
storage2.deleteConfig();
|
|
11862
12259
|
const result = { authenticated: false };
|
|
11863
12260
|
if (!c.agent && !c.formatExplicit) {
|
|
@@ -11895,63 +12292,55 @@ function createAuthCli(authResource, getUpdateInfo2, authStorage2) {
|
|
|
11895
12292
|
} : void 0;
|
|
11896
12293
|
if (!c.agent && !c.formatExplicit) {
|
|
11897
12294
|
return renderInteractive(
|
|
11898
|
-
/* @__PURE__ */ jsx4(
|
|
11899
|
-
|
|
12295
|
+
/* @__PURE__ */ jsx4(
|
|
12296
|
+
AuthStatus,
|
|
12297
|
+
{
|
|
12298
|
+
authStorage: storage2,
|
|
12299
|
+
envAccessToken: envAccessToken2,
|
|
12300
|
+
onComplete: () => {
|
|
12301
|
+
}
|
|
12302
|
+
}
|
|
12303
|
+
),
|
|
11900
12304
|
() => {
|
|
11901
|
-
const
|
|
12305
|
+
const info = resolveAuthInfo(envAccessToken2, storage2);
|
|
12306
|
+
if (info.authenticated) {
|
|
12307
|
+
return {
|
|
12308
|
+
authenticated: true,
|
|
12309
|
+
access_token: info.tokenPreview,
|
|
12310
|
+
token_type: info.tokenType,
|
|
12311
|
+
...info.source === "storage" && {
|
|
12312
|
+
credentials_path: info.credentialsPath
|
|
12313
|
+
},
|
|
12314
|
+
...update && { update }
|
|
12315
|
+
};
|
|
12316
|
+
}
|
|
11902
12317
|
return {
|
|
11903
|
-
authenticated:
|
|
11904
|
-
|
|
11905
|
-
access_token: `${auth.access_token.substring(0, 20)}...`,
|
|
11906
|
-
token_type: auth.token_type
|
|
11907
|
-
} : {},
|
|
11908
|
-
credentials_path: storage2.getPath(),
|
|
12318
|
+
authenticated: false,
|
|
12319
|
+
credentials_path: info.credentialsPath,
|
|
11909
12320
|
...update && { update }
|
|
11910
12321
|
};
|
|
11911
12322
|
}
|
|
11912
12323
|
);
|
|
11913
12324
|
}
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
storage2.setAuth(tokens);
|
|
11923
|
-
storage2.clearPendingDeviceAuth();
|
|
11924
|
-
}
|
|
11925
|
-
}
|
|
11926
|
-
const auth = storage2.getAuth();
|
|
11927
|
-
if (auth) {
|
|
11928
|
-
return {
|
|
11929
|
-
authenticated: true,
|
|
11930
|
-
access_token: `${auth.access_token.substring(0, 20)}...`,
|
|
11931
|
-
token_type: auth.token_type,
|
|
11932
|
-
credentials_path: storage2.getPath(),
|
|
11933
|
-
...update && { update }
|
|
11934
|
-
};
|
|
11935
|
-
}
|
|
11936
|
-
const currentPending = storage2.getPendingDeviceAuth();
|
|
11937
|
-
return {
|
|
11938
|
-
authenticated: false,
|
|
11939
|
-
credentials_path: storage2.getPath(),
|
|
11940
|
-
...update && { update },
|
|
11941
|
-
...currentPending ? {
|
|
11942
|
-
pending: true,
|
|
11943
|
-
verification_url: currentPending.verification_url,
|
|
11944
|
-
phrase: currentPending.phrase
|
|
11945
|
-
} : {}
|
|
11946
|
-
};
|
|
11947
|
-
},
|
|
11948
|
-
isTerminal: (status) => status.authenticated,
|
|
11949
|
-
interval,
|
|
11950
|
-
maxAttempts,
|
|
11951
|
-
timeout: opts.timeout
|
|
11952
|
-
})) {
|
|
11953
|
-
yield result.value;
|
|
12325
|
+
if (envAccessToken2) {
|
|
12326
|
+
yield {
|
|
12327
|
+
authenticated: true,
|
|
12328
|
+
access_token: `${envAccessToken2.substring(0, 20)}...`,
|
|
12329
|
+
token_type: "Bearer",
|
|
12330
|
+
...update && { update }
|
|
12331
|
+
};
|
|
12332
|
+
return;
|
|
11954
12333
|
}
|
|
12334
|
+
yield* pollAuthStatus(
|
|
12335
|
+
authResource,
|
|
12336
|
+
storage2,
|
|
12337
|
+
{
|
|
12338
|
+
interval,
|
|
12339
|
+
maxAttempts,
|
|
12340
|
+
timeout: opts.timeout
|
|
12341
|
+
},
|
|
12342
|
+
update
|
|
12343
|
+
);
|
|
11955
12344
|
}
|
|
11956
12345
|
});
|
|
11957
12346
|
return cli2;
|
|
@@ -13434,18 +13823,18 @@ var NOT_AUTHENTICATED_ERROR = {
|
|
|
13434
13823
|
commands: [{ command: "auth login", description: "Log in to Link" }]
|
|
13435
13824
|
}
|
|
13436
13825
|
};
|
|
13437
|
-
function requireAuth(authStorage2) {
|
|
13826
|
+
function requireAuth(authStorage2, envAccessToken2) {
|
|
13438
13827
|
const store = authStorage2 ?? storage;
|
|
13439
13828
|
return (c, next) => {
|
|
13440
|
-
if (!store.isAuthenticated()) {
|
|
13829
|
+
if (!envAccessToken2 && !store.isAuthenticated()) {
|
|
13441
13830
|
return c.error(NOT_AUTHENTICATED_ERROR);
|
|
13442
13831
|
}
|
|
13443
13832
|
return next();
|
|
13444
13833
|
};
|
|
13445
13834
|
}
|
|
13446
|
-
function requireAuthGuard(c, authStorage2) {
|
|
13835
|
+
function requireAuthGuard(c, authStorage2, envAccessToken2) {
|
|
13447
13836
|
const store = authStorage2 ?? storage;
|
|
13448
|
-
if (!store.isAuthenticated()) {
|
|
13837
|
+
if (!envAccessToken2 && !store.isAuthenticated()) {
|
|
13449
13838
|
c.error(NOT_AUTHENTICATED_ERROR);
|
|
13450
13839
|
}
|
|
13451
13840
|
}
|
|
@@ -13495,7 +13884,7 @@ var decodeOptions = z3.object({
|
|
|
13495
13884
|
|
|
13496
13885
|
// src/commands/mpp/index.tsx
|
|
13497
13886
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
13498
|
-
function createMppCli(repository, authStorage2) {
|
|
13887
|
+
function createMppCli(repository, authStorage2, envAccessToken2) {
|
|
13499
13888
|
const cli2 = Cli3.create("mpp", {
|
|
13500
13889
|
description: "Machine payment protocol (MPP) commands"
|
|
13501
13890
|
});
|
|
@@ -13507,7 +13896,7 @@ function createMppCli(repository, authStorage2) {
|
|
|
13507
13896
|
options: payOptions,
|
|
13508
13897
|
alias: { method: "X", data: "d", header: "H" },
|
|
13509
13898
|
outputPolicy: "agent-only",
|
|
13510
|
-
middleware: [requireAuth(authStorage2)],
|
|
13899
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
13511
13900
|
async run(c) {
|
|
13512
13901
|
const url = c.args.url;
|
|
13513
13902
|
const opts = c.options;
|
|
@@ -13813,14 +14202,14 @@ var PaymentMethodsList = ({
|
|
|
13813
14202
|
|
|
13814
14203
|
// src/commands/payment-methods/index.tsx
|
|
13815
14204
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
13816
|
-
function createPaymentMethodsCli(createResource, authStorage2) {
|
|
14205
|
+
function createPaymentMethodsCli(createResource, authStorage2, envAccessToken2) {
|
|
13817
14206
|
const cli2 = Cli5.create("payment-methods", {
|
|
13818
14207
|
description: "Payment methods management commands"
|
|
13819
14208
|
});
|
|
13820
14209
|
cli2.command("list", {
|
|
13821
14210
|
description: "List all payment methods on your account",
|
|
13822
14211
|
outputPolicy: "agent-only",
|
|
13823
|
-
middleware: [requireAuth(authStorage2)],
|
|
14212
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
13824
14213
|
async run(c) {
|
|
13825
14214
|
const resource = createResource();
|
|
13826
14215
|
if (!c.agent && !c.formatExplicit) {
|
|
@@ -13836,7 +14225,7 @@ function createPaymentMethodsCli(createResource, authStorage2) {
|
|
|
13836
14225
|
cli2.command("add", {
|
|
13837
14226
|
description: "Open the Link wallet to add a new payment method",
|
|
13838
14227
|
outputPolicy: "agent-only",
|
|
13839
|
-
middleware: [requireAuth(authStorage2)],
|
|
14228
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
13840
14229
|
async run(c) {
|
|
13841
14230
|
if (!c.agent && !c.formatExplicit) {
|
|
13842
14231
|
return renderInteractive(/* @__PURE__ */ jsx18(AddPaymentMethod, {}), () => ({
|
|
@@ -13849,8 +14238,85 @@ function createPaymentMethodsCli(createResource, authStorage2) {
|
|
|
13849
14238
|
return cli2;
|
|
13850
14239
|
}
|
|
13851
14240
|
|
|
14241
|
+
// src/commands/serve/index.ts
|
|
14242
|
+
import {
|
|
14243
|
+
createServer
|
|
14244
|
+
} from "http";
|
|
14245
|
+
import { Cli as Cli6, z as z5 } from "incur";
|
|
14246
|
+
async function nodeRequestToWebRequest(req, port) {
|
|
14247
|
+
const body = await new Promise((resolve) => {
|
|
14248
|
+
const chunks = [];
|
|
14249
|
+
req.on("data", (chunk) => chunks.push(chunk));
|
|
14250
|
+
req.on("end", () => resolve(Buffer.concat(chunks)));
|
|
14251
|
+
});
|
|
14252
|
+
const headers = new Headers();
|
|
14253
|
+
for (const [key, val] of Object.entries(req.headers)) {
|
|
14254
|
+
if (val == null) continue;
|
|
14255
|
+
headers.set(key, Array.isArray(val) ? val.join(", ") : val);
|
|
14256
|
+
}
|
|
14257
|
+
const method = req.method ?? "GET";
|
|
14258
|
+
return new Request(`http://localhost:${port}${req.url ?? "/"}`, {
|
|
14259
|
+
method,
|
|
14260
|
+
headers,
|
|
14261
|
+
body: ["GET", "HEAD"].includes(method) ? void 0 : body.length > 0 ? new Uint8Array(body) : void 0
|
|
14262
|
+
});
|
|
14263
|
+
}
|
|
14264
|
+
async function sendWebResponse(webRes, res) {
|
|
14265
|
+
webRes.headers.forEach((val, key) => res.setHeader(key, val));
|
|
14266
|
+
const buffer = await webRes.arrayBuffer();
|
|
14267
|
+
res.writeHead(webRes.status);
|
|
14268
|
+
res.end(Buffer.from(buffer));
|
|
14269
|
+
}
|
|
14270
|
+
function createServeCli(rootCli) {
|
|
14271
|
+
return Cli6.create("serve", {
|
|
14272
|
+
description: "Start an HTTP server exposing link-cli as an MCP endpoint at /mcp",
|
|
14273
|
+
options: z5.object({
|
|
14274
|
+
port: z5.coerce.number().default(54321).describe("Port to listen on")
|
|
14275
|
+
}),
|
|
14276
|
+
async run(c) {
|
|
14277
|
+
const { port } = c.options;
|
|
14278
|
+
const server = createServer(
|
|
14279
|
+
async (req, res) => {
|
|
14280
|
+
res.setHeader("Access-Control-Allow-Origin", "*");
|
|
14281
|
+
res.setHeader(
|
|
14282
|
+
"Access-Control-Allow-Methods",
|
|
14283
|
+
"GET, POST, DELETE, OPTIONS"
|
|
14284
|
+
);
|
|
14285
|
+
res.setHeader(
|
|
14286
|
+
"Access-Control-Allow-Headers",
|
|
14287
|
+
"Content-Type, Accept, Mcp-Session-Id"
|
|
14288
|
+
);
|
|
14289
|
+
if (req.method === "OPTIONS") {
|
|
14290
|
+
res.writeHead(204);
|
|
14291
|
+
res.end();
|
|
14292
|
+
return;
|
|
14293
|
+
}
|
|
14294
|
+
try {
|
|
14295
|
+
const webReq = await nodeRequestToWebRequest(req, port);
|
|
14296
|
+
const webRes = await rootCli.fetch(webReq);
|
|
14297
|
+
await sendWebResponse(webRes, res);
|
|
14298
|
+
} catch (err) {
|
|
14299
|
+
console.error("Request handling failed:", err);
|
|
14300
|
+
res.writeHead(500, { "Content-Type": "application/json" });
|
|
14301
|
+
res.end(JSON.stringify({ error: "Internal server error" }));
|
|
14302
|
+
}
|
|
14303
|
+
}
|
|
14304
|
+
);
|
|
14305
|
+
await new Promise((resolve, reject) => {
|
|
14306
|
+
server.on("error", reject);
|
|
14307
|
+
server.listen(port, () => {
|
|
14308
|
+
process.stderr.write(
|
|
14309
|
+
`link-cli MCP server listening on http://localhost:${port}/mcp
|
|
14310
|
+
`
|
|
14311
|
+
);
|
|
14312
|
+
});
|
|
14313
|
+
});
|
|
14314
|
+
}
|
|
14315
|
+
});
|
|
14316
|
+
}
|
|
14317
|
+
|
|
13852
14318
|
// src/commands/shipping-address/index.tsx
|
|
13853
|
-
import { Cli as
|
|
14319
|
+
import { Cli as Cli7 } from "incur";
|
|
13854
14320
|
|
|
13855
14321
|
// src/commands/shipping-address/list.tsx
|
|
13856
14322
|
import { Box as Box13, Text as Text14 } from "ink";
|
|
@@ -13943,14 +14409,14 @@ var ShippingAddressList = ({
|
|
|
13943
14409
|
|
|
13944
14410
|
// src/commands/shipping-address/index.tsx
|
|
13945
14411
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
13946
|
-
function createShippingAddressCli(createResource, authStorage2) {
|
|
13947
|
-
const cli2 =
|
|
14412
|
+
function createShippingAddressCli(createResource, authStorage2, envAccessToken2) {
|
|
14413
|
+
const cli2 = Cli7.create("shipping-address", {
|
|
13948
14414
|
description: "Shipping address management commands"
|
|
13949
14415
|
});
|
|
13950
14416
|
cli2.command("list", {
|
|
13951
14417
|
description: "List all shipping addresses on your account",
|
|
13952
14418
|
outputPolicy: "agent-only",
|
|
13953
|
-
middleware: [requireAuth(authStorage2)],
|
|
14419
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
13954
14420
|
async run(c) {
|
|
13955
14421
|
const resource = createResource();
|
|
13956
14422
|
if (!c.agent && !c.formatExplicit) {
|
|
@@ -13967,46 +14433,79 @@ function createShippingAddressCli(createResource, authStorage2) {
|
|
|
13967
14433
|
}
|
|
13968
14434
|
|
|
13969
14435
|
// src/commands/spend-request/index.tsx
|
|
13970
|
-
import { Cli as
|
|
14436
|
+
import { Cli as Cli8, z as z8 } from "incur";
|
|
13971
14437
|
|
|
13972
14438
|
// src/utils/credential-output.ts
|
|
14439
|
+
import { constants } from "fs";
|
|
13973
14440
|
import fs4 from "fs/promises";
|
|
13974
14441
|
import path6 from "path";
|
|
13975
14442
|
async function writeCredentialFile(filePath, data, force) {
|
|
13976
14443
|
const resolved = path6.resolve(filePath);
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
|
|
14444
|
+
let existing;
|
|
14445
|
+
try {
|
|
14446
|
+
existing = await fs4.lstat(resolved);
|
|
14447
|
+
} catch (err) {
|
|
14448
|
+
if (err.code !== "ENOENT") throw err;
|
|
14449
|
+
}
|
|
14450
|
+
if (existing?.isSymbolicLink()) {
|
|
14451
|
+
throw new Error(
|
|
14452
|
+
`OUTPUT_FILE_SYMLINK: ${resolved} is a symbolic link. Refusing to write credentials through it.`
|
|
14453
|
+
);
|
|
14454
|
+
}
|
|
14455
|
+
if (existing) {
|
|
14456
|
+
if (!force) {
|
|
13980
14457
|
throw new Error(
|
|
13981
14458
|
`OUTPUT_FILE_EXISTS: ${resolved} already exists. Use --force to overwrite.`
|
|
13982
14459
|
);
|
|
13983
|
-
} catch (err) {
|
|
13984
|
-
if (err.code !== "ENOENT") throw err;
|
|
13985
14460
|
}
|
|
14461
|
+
await fs4.unlink(resolved);
|
|
14462
|
+
}
|
|
14463
|
+
const noFollowFlag = constants.O_NOFOLLOW ?? 0;
|
|
14464
|
+
let handle;
|
|
14465
|
+
try {
|
|
14466
|
+
handle = await fs4.open(
|
|
14467
|
+
resolved,
|
|
14468
|
+
constants.O_CREAT | constants.O_EXCL | constants.O_WRONLY | noFollowFlag,
|
|
14469
|
+
384
|
|
14470
|
+
);
|
|
14471
|
+
} catch (err) {
|
|
14472
|
+
const code = err.code;
|
|
14473
|
+
if (code === "EEXIST") {
|
|
14474
|
+
throw new Error(
|
|
14475
|
+
`OUTPUT_FILE_EXISTS: ${resolved} already exists. Use --force to overwrite.`
|
|
14476
|
+
);
|
|
14477
|
+
}
|
|
14478
|
+
if (code === "ELOOP") {
|
|
14479
|
+
throw new Error(
|
|
14480
|
+
`OUTPUT_FILE_SYMLINK: ${resolved} is a symbolic link. Refusing to write credentials through it.`
|
|
14481
|
+
);
|
|
14482
|
+
}
|
|
14483
|
+
throw err;
|
|
14484
|
+
}
|
|
14485
|
+
try {
|
|
14486
|
+
await handle.write(JSON.stringify(data, null, 2));
|
|
14487
|
+
} finally {
|
|
14488
|
+
await handle.close();
|
|
13986
14489
|
}
|
|
13987
|
-
await fs4.writeFile(resolved, JSON.stringify(data, null, 2), {
|
|
13988
|
-
mode: 384
|
|
13989
|
-
});
|
|
13990
|
-
await fs4.chmod(resolved, 384);
|
|
13991
14490
|
return resolved;
|
|
13992
14491
|
}
|
|
13993
14492
|
|
|
13994
14493
|
// src/utils/line-item-parser.ts
|
|
13995
|
-
import { z as
|
|
13996
|
-
var LineItemSchema =
|
|
13997
|
-
name:
|
|
13998
|
-
url:
|
|
13999
|
-
image_url:
|
|
14000
|
-
description:
|
|
14001
|
-
sku:
|
|
14002
|
-
quantity:
|
|
14003
|
-
unit_amount:
|
|
14004
|
-
product_url:
|
|
14494
|
+
import { z as z6 } from "zod";
|
|
14495
|
+
var LineItemSchema = z6.object({
|
|
14496
|
+
name: z6.string(),
|
|
14497
|
+
url: z6.string().optional(),
|
|
14498
|
+
image_url: z6.string().optional(),
|
|
14499
|
+
description: z6.string().optional(),
|
|
14500
|
+
sku: z6.string().optional(),
|
|
14501
|
+
quantity: z6.coerce.number().optional(),
|
|
14502
|
+
unit_amount: z6.coerce.number().optional(),
|
|
14503
|
+
product_url: z6.string().optional()
|
|
14005
14504
|
}).strict();
|
|
14006
|
-
var TotalSchema =
|
|
14007
|
-
type:
|
|
14008
|
-
display_text:
|
|
14009
|
-
amount:
|
|
14505
|
+
var TotalSchema = z6.object({
|
|
14506
|
+
type: z6.string(),
|
|
14507
|
+
display_text: z6.string(),
|
|
14508
|
+
amount: z6.coerce.number()
|
|
14010
14509
|
}).strict();
|
|
14011
14510
|
function parseKvString(raw) {
|
|
14012
14511
|
const result = {};
|
|
@@ -14036,7 +14535,7 @@ function parseLineItemFlag(raw) {
|
|
|
14036
14535
|
try {
|
|
14037
14536
|
return LineItemSchema.parse(obj);
|
|
14038
14537
|
} catch (err) {
|
|
14039
|
-
if (err instanceof
|
|
14538
|
+
if (err instanceof z6.ZodError)
|
|
14040
14539
|
throw formatZodError(err, "Line item", LineItemSchema);
|
|
14041
14540
|
throw err;
|
|
14042
14541
|
}
|
|
@@ -14046,7 +14545,7 @@ function parseTotalFlag(raw) {
|
|
|
14046
14545
|
try {
|
|
14047
14546
|
return TotalSchema.parse(obj);
|
|
14048
14547
|
} catch (err) {
|
|
14049
|
-
if (err instanceof
|
|
14548
|
+
if (err instanceof z6.ZodError)
|
|
14050
14549
|
throw formatZodError(err, "Total", TotalSchema);
|
|
14051
14550
|
throw err;
|
|
14052
14551
|
}
|
|
@@ -14360,11 +14859,68 @@ var CreateSpendRequest = ({
|
|
|
14360
14859
|
] });
|
|
14361
14860
|
};
|
|
14362
14861
|
|
|
14363
|
-
// src/commands/spend-request/
|
|
14364
|
-
import { Box as Box17, Text as Text18 } from "ink";
|
|
14862
|
+
// src/commands/spend-request/list.tsx
|
|
14863
|
+
import { Box as Box17, Text as Text18, useApp as useApp4 } from "ink";
|
|
14365
14864
|
import Spinner9 from "ink-spinner";
|
|
14366
|
-
import { useCallback as useCallback7
|
|
14865
|
+
import { useCallback as useCallback7 } from "react";
|
|
14367
14866
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
14867
|
+
var SpendRequestList = ({
|
|
14868
|
+
repository,
|
|
14869
|
+
onComplete
|
|
14870
|
+
}) => {
|
|
14871
|
+
const { exit } = useApp4();
|
|
14872
|
+
const action = useCallback7(
|
|
14873
|
+
() => repository.listSpendRequests(),
|
|
14874
|
+
[repository]
|
|
14875
|
+
);
|
|
14876
|
+
const wrappedOnComplete = useCallback7(
|
|
14877
|
+
(result) => {
|
|
14878
|
+
onComplete(result);
|
|
14879
|
+
exit();
|
|
14880
|
+
},
|
|
14881
|
+
[onComplete, exit]
|
|
14882
|
+
);
|
|
14883
|
+
const {
|
|
14884
|
+
status,
|
|
14885
|
+
data: requests,
|
|
14886
|
+
error
|
|
14887
|
+
} = useAsyncAction(action, wrappedOnComplete);
|
|
14888
|
+
if (status === "loading") {
|
|
14889
|
+
return /* @__PURE__ */ jsx24(Box17, { children: /* @__PURE__ */ jsxs17(Text18, { color: "cyan", children: [
|
|
14890
|
+
/* @__PURE__ */ jsx24(Spinner9, { type: "dots" }),
|
|
14891
|
+
" Loading spend requests..."
|
|
14892
|
+
] }) });
|
|
14893
|
+
}
|
|
14894
|
+
if (status === "error") {
|
|
14895
|
+
return /* @__PURE__ */ jsxs17(Box17, { flexDirection: "column", children: [
|
|
14896
|
+
/* @__PURE__ */ jsx24(Text18, { color: "red", children: "\u2717 Failed to load spend requests" }),
|
|
14897
|
+
/* @__PURE__ */ jsx24(Text18, { color: "red", children: error })
|
|
14898
|
+
] });
|
|
14899
|
+
}
|
|
14900
|
+
if (!requests || requests.length === 0) {
|
|
14901
|
+
return /* @__PURE__ */ jsx24(Box17, { children: /* @__PURE__ */ jsx24(Text18, { dimColor: true, children: "No active spend requests found" }) });
|
|
14902
|
+
}
|
|
14903
|
+
return /* @__PURE__ */ jsxs17(Box17, { flexDirection: "column", children: [
|
|
14904
|
+
/* @__PURE__ */ jsx24(Text18, { bold: true, children: "Active Spend Requests" }),
|
|
14905
|
+
/* @__PURE__ */ jsx24(Box17, { flexDirection: "column", marginTop: 1, children: requests.map((sr) => {
|
|
14906
|
+
const statusColor = sr.status === "approved" ? "green" : sr.status === "pending_approval" ? "yellow" : "white";
|
|
14907
|
+
const amount = sr.amount != null ? `$${(sr.amount / 100).toFixed(2)} ${(sr.currency ?? "usd").toUpperCase()}` : "";
|
|
14908
|
+
return /* @__PURE__ */ jsx24(Box17, { paddingX: 2, children: /* @__PURE__ */ jsxs17(Text18, { children: [
|
|
14909
|
+
/* @__PURE__ */ jsx24(Text18, { dimColor: true, children: sr.id }),
|
|
14910
|
+
" ",
|
|
14911
|
+
/* @__PURE__ */ jsx24(Text18, { color: statusColor, children: sr.status }),
|
|
14912
|
+
sr.merchant_name ? ` ${sr.merchant_name}` : "",
|
|
14913
|
+
amount ? ` ${amount}` : ""
|
|
14914
|
+
] }) }, sr.id);
|
|
14915
|
+
}) })
|
|
14916
|
+
] });
|
|
14917
|
+
};
|
|
14918
|
+
|
|
14919
|
+
// src/commands/spend-request/request-approval.tsx
|
|
14920
|
+
import { Box as Box18, Text as Text19 } from "ink";
|
|
14921
|
+
import Spinner10 from "ink-spinner";
|
|
14922
|
+
import { useCallback as useCallback8, useEffect as useEffect10, useState as useState10 } from "react";
|
|
14923
|
+
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
14368
14924
|
var RequestApproval = ({
|
|
14369
14925
|
repository,
|
|
14370
14926
|
id,
|
|
@@ -14374,8 +14930,8 @@ var RequestApproval = ({
|
|
|
14374
14930
|
const [approvalUrl, setApprovalUrl] = useState10("");
|
|
14375
14931
|
const [result, setResult] = useState10(null);
|
|
14376
14932
|
const [error, setError] = useState10("");
|
|
14377
|
-
const onSuccess =
|
|
14378
|
-
const onError =
|
|
14933
|
+
const onSuccess = useCallback8((r) => setResult(r), []);
|
|
14934
|
+
const onError = useCallback8((msg) => setError(msg), []);
|
|
14379
14935
|
useApprovalPolling({
|
|
14380
14936
|
status,
|
|
14381
14937
|
setStatus,
|
|
@@ -14400,46 +14956,46 @@ var RequestApproval = ({
|
|
|
14400
14956
|
request();
|
|
14401
14957
|
}, [repository, id]);
|
|
14402
14958
|
if (status === "requesting") {
|
|
14403
|
-
return /* @__PURE__ */
|
|
14404
|
-
/* @__PURE__ */
|
|
14959
|
+
return /* @__PURE__ */ jsx25(Box18, { children: /* @__PURE__ */ jsxs18(Text19, { color: "cyan", children: [
|
|
14960
|
+
/* @__PURE__ */ jsx25(Spinner10, { type: "dots" }),
|
|
14405
14961
|
" Requesting approval..."
|
|
14406
14962
|
] }) });
|
|
14407
14963
|
}
|
|
14408
14964
|
if (status === "error") {
|
|
14409
|
-
return /* @__PURE__ */
|
|
14410
|
-
/* @__PURE__ */
|
|
14411
|
-
/* @__PURE__ */
|
|
14965
|
+
return /* @__PURE__ */ jsxs18(Box18, { flexDirection: "column", children: [
|
|
14966
|
+
/* @__PURE__ */ jsx25(Text19, { color: "red", children: "\u2717 Failed to request approval" }),
|
|
14967
|
+
/* @__PURE__ */ jsx25(Text19, { color: "red", children: error })
|
|
14412
14968
|
] });
|
|
14413
14969
|
}
|
|
14414
14970
|
if (status === "success") {
|
|
14415
|
-
return /* @__PURE__ */
|
|
14416
|
-
/* @__PURE__ */
|
|
14417
|
-
/* @__PURE__ */
|
|
14418
|
-
/* @__PURE__ */
|
|
14971
|
+
return /* @__PURE__ */ jsxs18(Box18, { flexDirection: "column", children: [
|
|
14972
|
+
/* @__PURE__ */ jsx25(Text19, { color: "green", children: "\u2713 Approval completed" }),
|
|
14973
|
+
/* @__PURE__ */ jsxs18(Box18, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
14974
|
+
/* @__PURE__ */ jsxs18(Text19, { children: [
|
|
14419
14975
|
"ID: ",
|
|
14420
|
-
/* @__PURE__ */
|
|
14976
|
+
/* @__PURE__ */ jsx25(Text19, { bold: true, children: result?.id })
|
|
14421
14977
|
] }),
|
|
14422
|
-
/* @__PURE__ */
|
|
14978
|
+
/* @__PURE__ */ jsxs18(Text19, { children: [
|
|
14423
14979
|
"Status: ",
|
|
14424
|
-
/* @__PURE__ */
|
|
14980
|
+
/* @__PURE__ */ jsx25(Text19, { bold: true, children: result?.status })
|
|
14425
14981
|
] }),
|
|
14426
|
-
/* @__PURE__ */
|
|
14982
|
+
/* @__PURE__ */ jsxs18(Text19, { children: [
|
|
14427
14983
|
"Amount:",
|
|
14428
14984
|
" ",
|
|
14429
|
-
/* @__PURE__ */
|
|
14985
|
+
/* @__PURE__ */ jsx25(Text19, { bold: true, children: result?.amount != null ? `${result.amount} ${result.currency?.toUpperCase() ?? ""}`.trim() : "N/A" })
|
|
14430
14986
|
] }),
|
|
14431
|
-
/* @__PURE__ */
|
|
14987
|
+
/* @__PURE__ */ jsxs18(Text19, { children: [
|
|
14432
14988
|
"Merchant: ",
|
|
14433
|
-
/* @__PURE__ */
|
|
14989
|
+
/* @__PURE__ */ jsx25(Text19, { bold: true, children: result?.merchant_name })
|
|
14434
14990
|
] }),
|
|
14435
|
-
result?.credential_type === "shared_payment_token" && result.shared_payment_token && /* @__PURE__ */
|
|
14991
|
+
result?.credential_type === "shared_payment_token" && result.shared_payment_token && /* @__PURE__ */ jsxs18(Text19, { children: [
|
|
14436
14992
|
"Token: ",
|
|
14437
|
-
/* @__PURE__ */
|
|
14993
|
+
/* @__PURE__ */ jsx25(Text19, { bold: true, children: result.shared_payment_token.id })
|
|
14438
14994
|
] })
|
|
14439
14995
|
] })
|
|
14440
14996
|
] });
|
|
14441
14997
|
}
|
|
14442
|
-
return /* @__PURE__ */
|
|
14998
|
+
return /* @__PURE__ */ jsx25(
|
|
14443
14999
|
ApprovalWaitingView,
|
|
14444
15000
|
{
|
|
14445
15001
|
status,
|
|
@@ -14449,10 +15005,10 @@ var RequestApproval = ({
|
|
|
14449
15005
|
};
|
|
14450
15006
|
|
|
14451
15007
|
// src/commands/spend-request/retrieve.tsx
|
|
14452
|
-
import { Box as
|
|
14453
|
-
import
|
|
15008
|
+
import { Box as Box19, Text as Text20 } from "ink";
|
|
15009
|
+
import Spinner11 from "ink-spinner";
|
|
14454
15010
|
import { useEffect as useEffect11, useRef as useRef5, useState as useState11 } from "react";
|
|
14455
|
-
import { jsx as
|
|
15011
|
+
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
14456
15012
|
var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
14457
15013
|
"approved",
|
|
14458
15014
|
"denied",
|
|
@@ -14576,181 +15132,266 @@ var RetrieveSpendRequest = ({
|
|
|
14576
15132
|
};
|
|
14577
15133
|
}, [phase, repository, id, include, timeout, onComplete]);
|
|
14578
15134
|
if (phase === "fetching") {
|
|
14579
|
-
return /* @__PURE__ */
|
|
14580
|
-
/* @__PURE__ */
|
|
15135
|
+
return /* @__PURE__ */ jsx26(Box19, { children: /* @__PURE__ */ jsxs19(Text20, { color: "cyan", children: [
|
|
15136
|
+
/* @__PURE__ */ jsx26(Spinner11, { type: "dots" }),
|
|
14581
15137
|
" Retrieving spend request ",
|
|
14582
15138
|
id,
|
|
14583
15139
|
"..."
|
|
14584
15140
|
] }) });
|
|
14585
15141
|
}
|
|
14586
15142
|
if (phase === "error") {
|
|
14587
|
-
return /* @__PURE__ */
|
|
15143
|
+
return /* @__PURE__ */ jsx26(Box19, { flexDirection: "column", children: /* @__PURE__ */ jsxs19(Text20, { color: "red", children: [
|
|
14588
15144
|
"\u2717 ",
|
|
14589
15145
|
error
|
|
14590
15146
|
] }) });
|
|
14591
15147
|
}
|
|
14592
15148
|
if (phase === "timeout") {
|
|
14593
|
-
return /* @__PURE__ */
|
|
14594
|
-
/* @__PURE__ */
|
|
15149
|
+
return /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", children: [
|
|
15150
|
+
/* @__PURE__ */ jsxs19(Text20, { color: "yellow", children: [
|
|
14595
15151
|
"\u2717 Timed out waiting for approval after ",
|
|
14596
15152
|
timeout,
|
|
14597
15153
|
"s"
|
|
14598
15154
|
] }),
|
|
14599
|
-
request && /* @__PURE__ */
|
|
14600
|
-
/* @__PURE__ */
|
|
15155
|
+
request && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15156
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14601
15157
|
"ID: ",
|
|
14602
|
-
/* @__PURE__ */
|
|
15158
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.id })
|
|
14603
15159
|
] }),
|
|
14604
|
-
/* @__PURE__ */
|
|
15160
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14605
15161
|
"Status: ",
|
|
14606
|
-
/* @__PURE__ */
|
|
15162
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.status })
|
|
14607
15163
|
] })
|
|
14608
15164
|
] })
|
|
14609
15165
|
] });
|
|
14610
15166
|
}
|
|
14611
15167
|
if (phase === "polling") {
|
|
14612
|
-
return /* @__PURE__ */
|
|
14613
|
-
/* @__PURE__ */
|
|
14614
|
-
/* @__PURE__ */
|
|
15168
|
+
return /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", children: [
|
|
15169
|
+
/* @__PURE__ */ jsx26(Box19, { children: /* @__PURE__ */ jsxs19(Text20, { color: "cyan", children: [
|
|
15170
|
+
/* @__PURE__ */ jsx26(Spinner11, { type: "dots" }),
|
|
14615
15171
|
" Awaiting approval... (",
|
|
14616
15172
|
elapsed,
|
|
14617
15173
|
"s elapsed)"
|
|
14618
15174
|
] }) }),
|
|
14619
|
-
request?.approval_url && /* @__PURE__ */
|
|
15175
|
+
request?.approval_url && /* @__PURE__ */ jsx26(Box19, { marginTop: 1, paddingX: 2, children: /* @__PURE__ */ jsxs19(Text20, { dimColor: true, children: [
|
|
14620
15176
|
"Approval URL: ",
|
|
14621
|
-
/* @__PURE__ */
|
|
15177
|
+
/* @__PURE__ */ jsx26(Text20, { color: "cyan", children: request.approval_url })
|
|
14622
15178
|
] }) })
|
|
14623
15179
|
] });
|
|
14624
15180
|
}
|
|
14625
15181
|
if (phase === "finalized") {
|
|
14626
|
-
|
|
14627
|
-
|
|
15182
|
+
const psd = request?.payment_status_details;
|
|
15183
|
+
return /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", children: [
|
|
15184
|
+
/* @__PURE__ */ jsxs19(Text20, { color: "yellow", children: [
|
|
14628
15185
|
"Spend request reached terminal status: ",
|
|
14629
15186
|
request?.status
|
|
14630
15187
|
] }),
|
|
14631
|
-
/* @__PURE__ */
|
|
14632
|
-
/* @__PURE__ */
|
|
15188
|
+
/* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15189
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14633
15190
|
"ID: ",
|
|
14634
|
-
/* @__PURE__ */
|
|
15191
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.id })
|
|
14635
15192
|
] }),
|
|
14636
|
-
/* @__PURE__ */
|
|
15193
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14637
15194
|
"Status: ",
|
|
14638
|
-
/* @__PURE__ */
|
|
15195
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.status })
|
|
15196
|
+
] }),
|
|
15197
|
+
psd && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15198
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: "Payment Details:" }),
|
|
15199
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15200
|
+
" ",
|
|
15201
|
+
"Outcome:",
|
|
15202
|
+
" ",
|
|
15203
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, color: psd.outcome === "success" ? "green" : "red", children: psd.outcome })
|
|
15204
|
+
] }),
|
|
15205
|
+
psd.code && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15206
|
+
" ",
|
|
15207
|
+
"Code: ",
|
|
15208
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: psd.code })
|
|
15209
|
+
] }),
|
|
15210
|
+
psd.decline_code && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15211
|
+
" ",
|
|
15212
|
+
"Decline Reason: ",
|
|
15213
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: psd.decline_code })
|
|
15214
|
+
] }),
|
|
15215
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15216
|
+
" ",
|
|
15217
|
+
"Amount:",
|
|
15218
|
+
" ",
|
|
15219
|
+
/* @__PURE__ */ jsxs19(Text20, { bold: true, children: [
|
|
15220
|
+
psd.amount,
|
|
15221
|
+
" ",
|
|
15222
|
+
psd.currency
|
|
15223
|
+
] })
|
|
15224
|
+
] }),
|
|
15225
|
+
psd.created && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15226
|
+
" ",
|
|
15227
|
+
"Charged At:",
|
|
15228
|
+
" ",
|
|
15229
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: new Date(psd.created * 1e3).toISOString() })
|
|
15230
|
+
] }),
|
|
15231
|
+
psd.refund_details && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15232
|
+
/* @__PURE__ */ jsxs19(Text20, { bold: true, children: [
|
|
15233
|
+
" ",
|
|
15234
|
+
"Refund:"
|
|
15235
|
+
] }),
|
|
15236
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15237
|
+
" ",
|
|
15238
|
+
"Amount:",
|
|
15239
|
+
" ",
|
|
15240
|
+
/* @__PURE__ */ jsxs19(Text20, { bold: true, children: [
|
|
15241
|
+
psd.refund_details.amount,
|
|
15242
|
+
" ",
|
|
15243
|
+
psd.refund_details.currency
|
|
15244
|
+
] })
|
|
15245
|
+
] }),
|
|
15246
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15247
|
+
" ",
|
|
15248
|
+
"State: ",
|
|
15249
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: psd.refund_details.state })
|
|
15250
|
+
] })
|
|
15251
|
+
] })
|
|
14639
15252
|
] })
|
|
14640
15253
|
] })
|
|
14641
15254
|
] });
|
|
14642
15255
|
}
|
|
14643
15256
|
if (phase === "declined") {
|
|
14644
|
-
return /* @__PURE__ */
|
|
14645
|
-
/* @__PURE__ */
|
|
14646
|
-
/* @__PURE__ */
|
|
14647
|
-
/* @__PURE__ */
|
|
15257
|
+
return /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", children: [
|
|
15258
|
+
/* @__PURE__ */ jsx26(Text20, { color: "red", children: "\u2717 Spend request declined" }),
|
|
15259
|
+
/* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15260
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14648
15261
|
"ID: ",
|
|
14649
|
-
/* @__PURE__ */
|
|
15262
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.id })
|
|
14650
15263
|
] }),
|
|
14651
|
-
/* @__PURE__ */
|
|
15264
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14652
15265
|
"Status:",
|
|
14653
15266
|
" ",
|
|
14654
|
-
/* @__PURE__ */
|
|
15267
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, color: "red", children: request?.status })
|
|
14655
15268
|
] }),
|
|
14656
|
-
/* @__PURE__ */
|
|
15269
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14657
15270
|
"Amount:",
|
|
14658
15271
|
" ",
|
|
14659
|
-
/* @__PURE__ */
|
|
15272
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.amount != null ? String(request.amount) : "N/A" })
|
|
14660
15273
|
] }),
|
|
14661
|
-
/* @__PURE__ */
|
|
15274
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14662
15275
|
"Merchant: ",
|
|
14663
|
-
/* @__PURE__ */
|
|
15276
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.merchant_name })
|
|
14664
15277
|
] })
|
|
14665
15278
|
] })
|
|
14666
15279
|
] });
|
|
14667
15280
|
}
|
|
14668
|
-
return /* @__PURE__ */
|
|
14669
|
-
/* @__PURE__ */
|
|
14670
|
-
/* @__PURE__ */
|
|
14671
|
-
/* @__PURE__ */
|
|
15281
|
+
return /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", children: [
|
|
15282
|
+
/* @__PURE__ */ jsx26(Text20, { color: "green", children: "\u2713 Spend request approved" }),
|
|
15283
|
+
/* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15284
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14672
15285
|
"ID: ",
|
|
14673
|
-
/* @__PURE__ */
|
|
15286
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.id })
|
|
14674
15287
|
] }),
|
|
14675
|
-
/* @__PURE__ */
|
|
15288
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14676
15289
|
"Status:",
|
|
14677
15290
|
" ",
|
|
14678
|
-
/* @__PURE__ */
|
|
15291
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, color: "green", children: request?.status })
|
|
14679
15292
|
] }),
|
|
14680
|
-
/* @__PURE__ */
|
|
15293
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14681
15294
|
"Amount:",
|
|
14682
15295
|
" ",
|
|
14683
|
-
/* @__PURE__ */
|
|
15296
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.amount != null ? String(request.amount) : "N/A" })
|
|
14684
15297
|
] }),
|
|
14685
|
-
/* @__PURE__ */
|
|
15298
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14686
15299
|
"Merchant: ",
|
|
14687
|
-
/* @__PURE__ */
|
|
15300
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.merchant_name })
|
|
14688
15301
|
] }),
|
|
14689
|
-
/* @__PURE__ */
|
|
15302
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14690
15303
|
"Line Items:",
|
|
14691
15304
|
" ",
|
|
14692
|
-
/* @__PURE__ */
|
|
15305
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.line_items.map((li) => li.name).join(", ") })
|
|
14693
15306
|
] }),
|
|
14694
|
-
request?.
|
|
14695
|
-
/* @__PURE__ */
|
|
15307
|
+
request?.payment_status_details && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15308
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: "Last Payment Attempt:" }),
|
|
15309
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15310
|
+
" ",
|
|
15311
|
+
"Outcome:",
|
|
15312
|
+
" ",
|
|
15313
|
+
/* @__PURE__ */ jsx26(
|
|
15314
|
+
Text20,
|
|
15315
|
+
{
|
|
15316
|
+
bold: true,
|
|
15317
|
+
color: request.payment_status_details.outcome === "success" ? "green" : "red",
|
|
15318
|
+
children: request.payment_status_details.outcome
|
|
15319
|
+
}
|
|
15320
|
+
)
|
|
15321
|
+
] }),
|
|
15322
|
+
request.payment_status_details.code && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15323
|
+
" ",
|
|
15324
|
+
"Code:",
|
|
15325
|
+
" ",
|
|
15326
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.payment_status_details.code })
|
|
15327
|
+
] }),
|
|
15328
|
+
request.payment_status_details.decline_code && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
15329
|
+
" ",
|
|
15330
|
+
"Decline Reason:",
|
|
15331
|
+
" ",
|
|
15332
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.payment_status_details.decline_code })
|
|
15333
|
+
] })
|
|
15334
|
+
] }),
|
|
15335
|
+
request?.shared_payment_token && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15336
|
+
/* @__PURE__ */ jsxs19(Text20, { bold: true, children: [
|
|
14696
15337
|
"\x1B]8;;https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens\x07",
|
|
14697
15338
|
"Shared Payment Token",
|
|
14698
15339
|
"\x1B]8;;\x07",
|
|
14699
15340
|
":"
|
|
14700
15341
|
] }),
|
|
14701
|
-
/* @__PURE__ */
|
|
15342
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14702
15343
|
" ",
|
|
14703
15344
|
"Token: ",
|
|
14704
|
-
/* @__PURE__ */
|
|
15345
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.shared_payment_token.id })
|
|
14705
15346
|
] })
|
|
14706
15347
|
] }),
|
|
14707
|
-
request?.card && !outputFile && /* @__PURE__ */
|
|
14708
|
-
/* @__PURE__ */
|
|
14709
|
-
/* @__PURE__ */
|
|
15348
|
+
request?.card && !outputFile && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15349
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: "Card Details:" }),
|
|
15350
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14710
15351
|
" ",
|
|
14711
15352
|
"Number: ",
|
|
14712
|
-
/* @__PURE__ */
|
|
15353
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.card.number })
|
|
14713
15354
|
] }),
|
|
14714
|
-
/* @__PURE__ */
|
|
15355
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14715
15356
|
" ",
|
|
14716
15357
|
"Brand: ",
|
|
14717
|
-
/* @__PURE__ */
|
|
15358
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request?.card.brand })
|
|
14718
15359
|
] }),
|
|
14719
|
-
/* @__PURE__ */
|
|
15360
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14720
15361
|
" ",
|
|
14721
15362
|
"Expiry:",
|
|
14722
15363
|
" ",
|
|
14723
|
-
/* @__PURE__ */
|
|
15364
|
+
/* @__PURE__ */ jsxs19(Text20, { bold: true, children: [
|
|
14724
15365
|
String(request?.card.exp_month).padStart(2, "0"),
|
|
14725
15366
|
"/",
|
|
14726
15367
|
request?.card.exp_year
|
|
14727
15368
|
] })
|
|
14728
15369
|
] }),
|
|
14729
|
-
request?.card.cvc && /* @__PURE__ */
|
|
15370
|
+
request?.card.cvc && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14730
15371
|
" ",
|
|
14731
15372
|
"CVC: ",
|
|
14732
|
-
/* @__PURE__ */
|
|
15373
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.card.cvc })
|
|
14733
15374
|
] }),
|
|
14734
|
-
request?.card.valid_until && /* @__PURE__ */
|
|
15375
|
+
request?.card.valid_until && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14735
15376
|
" ",
|
|
14736
15377
|
"Valid Until: ",
|
|
14737
|
-
/* @__PURE__ */
|
|
15378
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: request.card.valid_until })
|
|
14738
15379
|
] }),
|
|
14739
|
-
request?.card.billing_address && /* @__PURE__ */
|
|
14740
|
-
/* @__PURE__ */
|
|
14741
|
-
/* @__PURE__ */
|
|
15380
|
+
request?.card.billing_address && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15381
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: " Billing Address:" }),
|
|
15382
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14742
15383
|
" ",
|
|
14743
15384
|
request.card.billing_address.name
|
|
14744
15385
|
] }),
|
|
14745
|
-
/* @__PURE__ */
|
|
15386
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14746
15387
|
" ",
|
|
14747
15388
|
request.card.billing_address.line1
|
|
14748
15389
|
] }),
|
|
14749
|
-
request.card.billing_address.line2 && /* @__PURE__ */
|
|
15390
|
+
request.card.billing_address.line2 && /* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14750
15391
|
" ",
|
|
14751
15392
|
request.card.billing_address.line2
|
|
14752
15393
|
] }),
|
|
14753
|
-
/* @__PURE__ */
|
|
15394
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14754
15395
|
" ",
|
|
14755
15396
|
[
|
|
14756
15397
|
request.card.billing_address.city,
|
|
@@ -14758,18 +15399,18 @@ var RetrieveSpendRequest = ({
|
|
|
14758
15399
|
request.card.billing_address.postal_code
|
|
14759
15400
|
].filter(Boolean).join(", ")
|
|
14760
15401
|
] }),
|
|
14761
|
-
/* @__PURE__ */
|
|
15402
|
+
/* @__PURE__ */ jsxs19(Text20, { children: [
|
|
14762
15403
|
" ",
|
|
14763
15404
|
request.card.billing_address.country
|
|
14764
15405
|
] })
|
|
14765
15406
|
] })
|
|
14766
15407
|
] }),
|
|
14767
|
-
request?.card && outputFile && /* @__PURE__ */
|
|
14768
|
-
outputFilePath && /* @__PURE__ */
|
|
15408
|
+
request?.card && outputFile && /* @__PURE__ */ jsxs19(Box19, { flexDirection: "column", marginTop: 1, children: [
|
|
15409
|
+
outputFilePath && /* @__PURE__ */ jsxs19(Text20, { color: "green", children: [
|
|
14769
15410
|
"Card credentials written to ",
|
|
14770
|
-
/* @__PURE__ */
|
|
15411
|
+
/* @__PURE__ */ jsx26(Text20, { bold: true, children: outputFilePath })
|
|
14771
15412
|
] }),
|
|
14772
|
-
fileError && /* @__PURE__ */
|
|
15413
|
+
fileError && /* @__PURE__ */ jsxs19(Text20, { color: "red", children: [
|
|
14773
15414
|
"Failed to write card file: ",
|
|
14774
15415
|
fileError
|
|
14775
15416
|
] })
|
|
@@ -14779,136 +15420,136 @@ var RetrieveSpendRequest = ({
|
|
|
14779
15420
|
};
|
|
14780
15421
|
|
|
14781
15422
|
// src/commands/spend-request/schema.ts
|
|
14782
|
-
import { z as
|
|
14783
|
-
var createOptions =
|
|
14784
|
-
paymentMethodId:
|
|
14785
|
-
credentialType:
|
|
15423
|
+
import { z as z7 } from "incur";
|
|
15424
|
+
var createOptions = z7.object({
|
|
15425
|
+
paymentMethodId: z7.string().describe("Payment method ID"),
|
|
15426
|
+
credentialType: z7.enum(["shared_payment_token", "card"]).default("card").describe(
|
|
14786
15427
|
'"card" for checkout forms/Stripe Elements; "shared_payment_token" for HTTP 402/machine payment flows'
|
|
14787
15428
|
),
|
|
14788
|
-
networkId:
|
|
15429
|
+
networkId: z7.string().optional().describe(
|
|
14789
15430
|
"Network ID (required for shared_payment_token) \u2014 use `link-cli mpp decode` to extract"
|
|
14790
15431
|
),
|
|
14791
|
-
amount:
|
|
14792
|
-
currency:
|
|
14793
|
-
merchantName:
|
|
15432
|
+
amount: z7.coerce.number().int().positive().max(5e4).describe("Amount in cents, max 50000 ($500.00)"),
|
|
15433
|
+
currency: z7.string().length(3).default("usd").describe("Currency code"),
|
|
15434
|
+
merchantName: z7.string().optional().describe(
|
|
14794
15435
|
"Merchant name (required for card; forbidden for shared_payment_token)"
|
|
14795
15436
|
),
|
|
14796
|
-
merchantUrl:
|
|
15437
|
+
merchantUrl: z7.string().optional().describe(
|
|
14797
15438
|
"Merchant URL (required for card; forbidden for shared_payment_token)"
|
|
14798
15439
|
),
|
|
14799
|
-
context:
|
|
15440
|
+
context: z7.string().min(100).describe(
|
|
14800
15441
|
"Min 100 chars \u2014 describe the purchase and rationale; the user reads this when approving"
|
|
14801
15442
|
),
|
|
14802
|
-
lineItem:
|
|
15443
|
+
lineItem: z7.array(z7.union([z7.string(), z7.record(z7.string(), z7.unknown())])).default([]).describe(
|
|
14803
15444
|
'Line item (repeatable, key:value format). Keys: name (required), quantity, unit_amount, description, sku, url, image_url, product_url. Example: "name:Shoes,unit_amount:5000,quantity:2"'
|
|
14804
15445
|
),
|
|
14805
|
-
total:
|
|
15446
|
+
total: z7.array(z7.union([z7.string(), z7.record(z7.string(), z7.unknown())])).default([]).describe(
|
|
14806
15447
|
'Total (repeatable, key:value format). Keys: type (required; one of: subtotal, tax, total, items_base_amount, items_discount, discount, fulfillment, shipping, fee, gift_wrap, tip, store_credit), display_text (required), amount (required). Example: "type:total,display_text:Total,amount:5000"'
|
|
14807
15448
|
),
|
|
14808
|
-
requestApproval:
|
|
14809
|
-
test:
|
|
15449
|
+
requestApproval: z7.boolean().default(true).describe("Request approval and poll until approved/denied/expired"),
|
|
15450
|
+
test: z7.boolean().default(false).describe(
|
|
14810
15451
|
"Use test mode (creates testmode credentials from test card data)"
|
|
14811
15452
|
),
|
|
14812
|
-
outputFile:
|
|
15453
|
+
outputFile: z7.string().optional().describe(
|
|
14813
15454
|
"Write full card credentials to this file path; stdout shows redacted card data only"
|
|
14814
15455
|
),
|
|
14815
|
-
force:
|
|
15456
|
+
force: z7.boolean().default(false).describe("Overwrite output file if it already exists")
|
|
14816
15457
|
});
|
|
14817
|
-
var retrieveOptions =
|
|
14818
|
-
timeout:
|
|
15458
|
+
var retrieveOptions = z7.object({
|
|
15459
|
+
timeout: z7.coerce.number().default(600).describe(
|
|
14819
15460
|
"Polling timeout in seconds. When reached during active polling, exits non-zero with POLLING_TIMEOUT. Default exceeds the server-side spend-request expiry so polling outlives the request itself."
|
|
14820
15461
|
),
|
|
14821
|
-
interval:
|
|
15462
|
+
interval: z7.coerce.number().default(0).describe(
|
|
14822
15463
|
"Poll interval in seconds. When > 0, polls until status is terminal, timeout is reached, or max attempts are exhausted."
|
|
14823
15464
|
),
|
|
14824
|
-
maxAttempts:
|
|
15465
|
+
maxAttempts: z7.coerce.number().default(0).describe(
|
|
14825
15466
|
"Max poll attempts. 0 = unlimited. Exhaustion during active polling exits non-zero with POLLING_TIMEOUT."
|
|
14826
15467
|
),
|
|
14827
|
-
include:
|
|
14828
|
-
outputFile:
|
|
15468
|
+
include: z7.array(z7.string()).default([]).describe("Include extra data (repeatable, e.g. --include card)"),
|
|
15469
|
+
outputFile: z7.string().optional().describe(
|
|
14829
15470
|
"Write full card credentials to this file path; stdout shows redacted card data only"
|
|
14830
15471
|
),
|
|
14831
|
-
force:
|
|
14832
|
-
});
|
|
14833
|
-
var updateOptions =
|
|
14834
|
-
paymentMethodId:
|
|
14835
|
-
amount:
|
|
14836
|
-
merchantUrl:
|
|
14837
|
-
profileId:
|
|
14838
|
-
merchantId:
|
|
14839
|
-
currency:
|
|
14840
|
-
lineItem:
|
|
15472
|
+
force: z7.boolean().default(false).describe("Overwrite output file if it already exists")
|
|
15473
|
+
});
|
|
15474
|
+
var updateOptions = z7.object({
|
|
15475
|
+
paymentMethodId: z7.string().optional().describe("Payment method ID"),
|
|
15476
|
+
amount: z7.coerce.number().optional().describe("Amount in cents"),
|
|
15477
|
+
merchantUrl: z7.string().optional().describe("Merchant URL"),
|
|
15478
|
+
profileId: z7.string().optional().describe("Profile ID"),
|
|
15479
|
+
merchantId: z7.string().optional().describe("Merchant ID"),
|
|
15480
|
+
currency: z7.string().optional().describe("Currency code"),
|
|
15481
|
+
lineItem: z7.array(z7.union([z7.string(), z7.record(z7.string(), z7.unknown())])).default([]).describe(
|
|
14841
15482
|
'Line item (repeatable, key:value format). Keys: name (required), quantity, unit_amount, description, sku, url, image_url, product_url. Example: "name:Shoes,unit_amount:5000,quantity:2"'
|
|
14842
15483
|
),
|
|
14843
|
-
total:
|
|
15484
|
+
total: z7.array(z7.union([z7.string(), z7.record(z7.string(), z7.unknown())])).default([]).describe(
|
|
14844
15485
|
'Total (repeatable, key:value format). Keys: type (required; one of: subtotal, tax, total, items_base_amount, items_discount, discount, fulfillment, shipping, fee, gift_wrap, tip, store_credit), display_text (required), amount (required). Example: "type:total,display_text:Total,amount:5000"'
|
|
14845
15486
|
)
|
|
14846
15487
|
});
|
|
14847
15488
|
|
|
14848
15489
|
// src/commands/spend-request/update.tsx
|
|
14849
|
-
import { Box as
|
|
14850
|
-
import
|
|
14851
|
-
import { useCallback as
|
|
14852
|
-
import { jsx as
|
|
15490
|
+
import { Box as Box20, Text as Text21 } from "ink";
|
|
15491
|
+
import Spinner12 from "ink-spinner";
|
|
15492
|
+
import { useCallback as useCallback9 } from "react";
|
|
15493
|
+
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
14853
15494
|
var UpdateSpendRequest = ({
|
|
14854
15495
|
repository,
|
|
14855
15496
|
id,
|
|
14856
15497
|
params,
|
|
14857
15498
|
onComplete
|
|
14858
15499
|
}) => {
|
|
14859
|
-
const action =
|
|
15500
|
+
const action = useCallback9(
|
|
14860
15501
|
() => repository.updateSpendRequest(id, params),
|
|
14861
15502
|
[repository, id, params]
|
|
14862
15503
|
);
|
|
14863
15504
|
const { status, data: request, error } = useAsyncAction(action, onComplete);
|
|
14864
15505
|
if (status === "loading") {
|
|
14865
|
-
return /* @__PURE__ */
|
|
14866
|
-
/* @__PURE__ */
|
|
15506
|
+
return /* @__PURE__ */ jsx27(Box20, { children: /* @__PURE__ */ jsxs20(Text21, { color: "cyan", children: [
|
|
15507
|
+
/* @__PURE__ */ jsx27(Spinner12, { type: "dots" }),
|
|
14867
15508
|
" Updating spend request ",
|
|
14868
15509
|
id,
|
|
14869
15510
|
"..."
|
|
14870
15511
|
] }) });
|
|
14871
15512
|
}
|
|
14872
15513
|
if (status === "error") {
|
|
14873
|
-
return /* @__PURE__ */
|
|
14874
|
-
/* @__PURE__ */
|
|
14875
|
-
/* @__PURE__ */
|
|
15514
|
+
return /* @__PURE__ */ jsxs20(Box20, { flexDirection: "column", children: [
|
|
15515
|
+
/* @__PURE__ */ jsx27(Text21, { color: "red", children: "\u2717 Failed to update spend request" }),
|
|
15516
|
+
/* @__PURE__ */ jsx27(Text21, { color: "red", children: error })
|
|
14876
15517
|
] });
|
|
14877
15518
|
}
|
|
14878
|
-
return /* @__PURE__ */
|
|
14879
|
-
/* @__PURE__ */
|
|
14880
|
-
/* @__PURE__ */
|
|
14881
|
-
/* @__PURE__ */
|
|
15519
|
+
return /* @__PURE__ */ jsxs20(Box20, { flexDirection: "column", children: [
|
|
15520
|
+
/* @__PURE__ */ jsx27(Text21, { color: "green", children: "\u2713 Spend request updated" }),
|
|
15521
|
+
/* @__PURE__ */ jsxs20(Box20, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15522
|
+
/* @__PURE__ */ jsxs20(Text21, { children: [
|
|
14882
15523
|
"ID: ",
|
|
14883
|
-
/* @__PURE__ */
|
|
15524
|
+
/* @__PURE__ */ jsx27(Text21, { bold: true, children: request?.id })
|
|
14884
15525
|
] }),
|
|
14885
|
-
/* @__PURE__ */
|
|
15526
|
+
/* @__PURE__ */ jsxs20(Text21, { children: [
|
|
14886
15527
|
"Status: ",
|
|
14887
|
-
/* @__PURE__ */
|
|
15528
|
+
/* @__PURE__ */ jsx27(Text21, { bold: true, children: request?.status })
|
|
14888
15529
|
] }),
|
|
14889
|
-
/* @__PURE__ */
|
|
15530
|
+
/* @__PURE__ */ jsxs20(Text21, { children: [
|
|
14890
15531
|
"Amount:",
|
|
14891
15532
|
" ",
|
|
14892
|
-
/* @__PURE__ */
|
|
15533
|
+
/* @__PURE__ */ jsx27(Text21, { bold: true, children: (() => {
|
|
14893
15534
|
const t = request?.totals.find((t2) => t2.type === "total");
|
|
14894
15535
|
return t ? String(t.amount) : "N/A";
|
|
14895
15536
|
})() })
|
|
14896
15537
|
] }),
|
|
14897
|
-
/* @__PURE__ */
|
|
15538
|
+
/* @__PURE__ */ jsxs20(Text21, { children: [
|
|
14898
15539
|
"Merchant: ",
|
|
14899
|
-
/* @__PURE__ */
|
|
15540
|
+
/* @__PURE__ */ jsx27(Text21, { bold: true, children: request?.merchant_name })
|
|
14900
15541
|
] }),
|
|
14901
|
-
/* @__PURE__ */
|
|
15542
|
+
/* @__PURE__ */ jsxs20(Text21, { children: [
|
|
14902
15543
|
"Line Items:",
|
|
14903
15544
|
" ",
|
|
14904
|
-
/* @__PURE__ */
|
|
15545
|
+
/* @__PURE__ */ jsx27(Text21, { bold: true, children: request?.line_items.map((li) => li.name).join(", ") })
|
|
14905
15546
|
] })
|
|
14906
15547
|
] })
|
|
14907
15548
|
] });
|
|
14908
15549
|
};
|
|
14909
15550
|
|
|
14910
15551
|
// src/commands/spend-request/index.tsx
|
|
14911
|
-
import { jsx as
|
|
15552
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
14912
15553
|
async function applyOutputFile(request, outputFile, force) {
|
|
14913
15554
|
if (!outputFile || !request.card) return request;
|
|
14914
15555
|
const fileData = {
|
|
@@ -14926,17 +15567,32 @@ async function applyOutputFile(request, outputFile, force) {
|
|
|
14926
15567
|
card_output_file: resolvedPath
|
|
14927
15568
|
};
|
|
14928
15569
|
}
|
|
14929
|
-
function createSpendRequestCli(repository, authStorage2) {
|
|
14930
|
-
const cli2 =
|
|
15570
|
+
function createSpendRequestCli(repository, authStorage2, envAccessToken2) {
|
|
15571
|
+
const cli2 = Cli8.create("spend-request", {
|
|
14931
15572
|
description: "Spend request management commands"
|
|
14932
15573
|
});
|
|
15574
|
+
cli2.command("list", {
|
|
15575
|
+
description: "List active spend requests (created, pending_approval, approved)",
|
|
15576
|
+
outputPolicy: "agent-only",
|
|
15577
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
15578
|
+
async run(c) {
|
|
15579
|
+
if (!c.agent && !c.formatExplicit) {
|
|
15580
|
+
return renderInteractive(
|
|
15581
|
+
/* @__PURE__ */ jsx28(SpendRequestList, { repository, onComplete: () => {
|
|
15582
|
+
} }),
|
|
15583
|
+
() => repository.listSpendRequests()
|
|
15584
|
+
);
|
|
15585
|
+
}
|
|
15586
|
+
return repository.listSpendRequests();
|
|
15587
|
+
}
|
|
15588
|
+
});
|
|
14933
15589
|
cli2.command("create", {
|
|
14934
15590
|
description: "Create a new spend request",
|
|
14935
15591
|
options: createOptions,
|
|
14936
15592
|
alias: { merchantName: "m" },
|
|
14937
15593
|
outputPolicy: "agent-only",
|
|
14938
15594
|
async *run(c) {
|
|
14939
|
-
requireAuthGuard(c, authStorage2);
|
|
15595
|
+
requireAuthGuard(c, authStorage2, envAccessToken2);
|
|
14940
15596
|
const opts = c.options;
|
|
14941
15597
|
const requestApproval = !!opts.requestApproval;
|
|
14942
15598
|
const credentialType = opts.credentialType;
|
|
@@ -14998,7 +15654,7 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
14998
15654
|
if (!c.agent && !c.formatExplicit) {
|
|
14999
15655
|
let capturedResult = null;
|
|
15000
15656
|
return renderInteractive(
|
|
15001
|
-
/* @__PURE__ */
|
|
15657
|
+
/* @__PURE__ */ jsx28(
|
|
15002
15658
|
CreateSpendRequest,
|
|
15003
15659
|
{
|
|
15004
15660
|
repository,
|
|
@@ -15043,12 +15699,12 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15043
15699
|
});
|
|
15044
15700
|
cli2.command("update", {
|
|
15045
15701
|
description: "Update a spend request",
|
|
15046
|
-
args:
|
|
15047
|
-
id:
|
|
15702
|
+
args: z8.object({
|
|
15703
|
+
id: z8.string().describe("Spend request ID")
|
|
15048
15704
|
}),
|
|
15049
15705
|
options: updateOptions,
|
|
15050
15706
|
outputPolicy: "agent-only",
|
|
15051
|
-
middleware: [requireAuth(authStorage2)],
|
|
15707
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
15052
15708
|
async run(c) {
|
|
15053
15709
|
const id = c.args.id;
|
|
15054
15710
|
const opts = c.options;
|
|
@@ -15072,7 +15728,7 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15072
15728
|
if (!c.agent && !c.formatExplicit) {
|
|
15073
15729
|
let capturedResult = null;
|
|
15074
15730
|
return renderInteractive(
|
|
15075
|
-
/* @__PURE__ */
|
|
15731
|
+
/* @__PURE__ */ jsx28(
|
|
15076
15732
|
UpdateSpendRequest,
|
|
15077
15733
|
{
|
|
15078
15734
|
repository,
|
|
@@ -15095,17 +15751,17 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15095
15751
|
});
|
|
15096
15752
|
cli2.command("request-approval", {
|
|
15097
15753
|
description: "Request approval for a spend request",
|
|
15098
|
-
args:
|
|
15099
|
-
id:
|
|
15754
|
+
args: z8.object({
|
|
15755
|
+
id: z8.string().describe("Spend request ID")
|
|
15100
15756
|
}),
|
|
15101
15757
|
outputPolicy: "agent-only",
|
|
15102
15758
|
async *run(c) {
|
|
15103
|
-
requireAuthGuard(c, authStorage2);
|
|
15759
|
+
requireAuthGuard(c, authStorage2, envAccessToken2);
|
|
15104
15760
|
const id = c.args.id;
|
|
15105
15761
|
if (!c.agent && !c.formatExplicit) {
|
|
15106
15762
|
let capturedResult = null;
|
|
15107
15763
|
return renderInteractive(
|
|
15108
|
-
/* @__PURE__ */
|
|
15764
|
+
/* @__PURE__ */ jsx28(
|
|
15109
15765
|
RequestApproval,
|
|
15110
15766
|
{
|
|
15111
15767
|
repository,
|
|
@@ -15135,13 +15791,13 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15135
15791
|
});
|
|
15136
15792
|
cli2.command("retrieve", {
|
|
15137
15793
|
description: "Retrieve a spend request",
|
|
15138
|
-
args:
|
|
15139
|
-
id:
|
|
15794
|
+
args: z8.object({
|
|
15795
|
+
id: z8.string().describe("Spend request ID")
|
|
15140
15796
|
}),
|
|
15141
15797
|
options: retrieveOptions,
|
|
15142
15798
|
outputPolicy: "agent-only",
|
|
15143
15799
|
async *run(c) {
|
|
15144
|
-
requireAuthGuard(c, authStorage2);
|
|
15800
|
+
requireAuthGuard(c, authStorage2, envAccessToken2);
|
|
15145
15801
|
const id = c.args.id;
|
|
15146
15802
|
const opts = c.options;
|
|
15147
15803
|
const timeout = opts.timeout;
|
|
@@ -15154,7 +15810,7 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15154
15810
|
if (!c.agent && !c.formatExplicit) {
|
|
15155
15811
|
let capturedResult = null;
|
|
15156
15812
|
return renderInteractive(
|
|
15157
|
-
/* @__PURE__ */
|
|
15813
|
+
/* @__PURE__ */ jsx28(
|
|
15158
15814
|
RetrieveSpendRequest,
|
|
15159
15815
|
{
|
|
15160
15816
|
repository,
|
|
@@ -15226,17 +15882,17 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15226
15882
|
});
|
|
15227
15883
|
cli2.command("cancel", {
|
|
15228
15884
|
description: "Cancel a spend request",
|
|
15229
|
-
args:
|
|
15230
|
-
id:
|
|
15885
|
+
args: z8.object({
|
|
15886
|
+
id: z8.string().describe("Spend request ID")
|
|
15231
15887
|
}),
|
|
15232
15888
|
outputPolicy: "agent-only",
|
|
15233
|
-
middleware: [requireAuth(authStorage2)],
|
|
15889
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
15234
15890
|
async run(c) {
|
|
15235
15891
|
const id = c.args.id;
|
|
15236
15892
|
if (!c.agent && !c.formatExplicit) {
|
|
15237
15893
|
let capturedResult = null;
|
|
15238
15894
|
return renderInteractive(
|
|
15239
|
-
/* @__PURE__ */
|
|
15895
|
+
/* @__PURE__ */ jsx28(
|
|
15240
15896
|
CancelSpendRequest,
|
|
15241
15897
|
{
|
|
15242
15898
|
repository,
|
|
@@ -15260,65 +15916,65 @@ function createSpendRequestCli(repository, authStorage2) {
|
|
|
15260
15916
|
}
|
|
15261
15917
|
|
|
15262
15918
|
// src/commands/user-info/index.tsx
|
|
15263
|
-
import { Cli as
|
|
15919
|
+
import { Cli as Cli9 } from "incur";
|
|
15264
15920
|
|
|
15265
15921
|
// src/commands/user-info/retrieve.tsx
|
|
15266
|
-
import { Box as
|
|
15267
|
-
import
|
|
15268
|
-
import { useCallback as
|
|
15269
|
-
import { jsx as
|
|
15922
|
+
import { Box as Box21, Text as Text22 } from "ink";
|
|
15923
|
+
import Spinner13 from "ink-spinner";
|
|
15924
|
+
import { useCallback as useCallback10 } from "react";
|
|
15925
|
+
import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
15270
15926
|
var UserInfoRetrieve = ({
|
|
15271
15927
|
resource,
|
|
15272
15928
|
onComplete
|
|
15273
15929
|
}) => {
|
|
15274
|
-
const action =
|
|
15930
|
+
const action = useCallback10(() => resource.retrieve(), [resource]);
|
|
15275
15931
|
const { status, data: userInfo, error } = useAsyncAction(action, onComplete);
|
|
15276
15932
|
if (status === "loading") {
|
|
15277
|
-
return /* @__PURE__ */
|
|
15278
|
-
/* @__PURE__ */
|
|
15933
|
+
return /* @__PURE__ */ jsx29(Box21, { children: /* @__PURE__ */ jsxs21(Text22, { color: "cyan", children: [
|
|
15934
|
+
/* @__PURE__ */ jsx29(Spinner13, { type: "dots" }),
|
|
15279
15935
|
" Loading user info..."
|
|
15280
15936
|
] }) });
|
|
15281
15937
|
}
|
|
15282
15938
|
if (status === "error") {
|
|
15283
|
-
return /* @__PURE__ */
|
|
15284
|
-
/* @__PURE__ */
|
|
15285
|
-
/* @__PURE__ */
|
|
15939
|
+
return /* @__PURE__ */ jsxs21(Box21, { flexDirection: "column", children: [
|
|
15940
|
+
/* @__PURE__ */ jsx29(Text22, { color: "red", children: "\u2717 Failed to load user info" }),
|
|
15941
|
+
/* @__PURE__ */ jsx29(Text22, { color: "red", children: error })
|
|
15286
15942
|
] });
|
|
15287
15943
|
}
|
|
15288
|
-
return /* @__PURE__ */
|
|
15289
|
-
/* @__PURE__ */
|
|
15290
|
-
/* @__PURE__ */
|
|
15291
|
-
/* @__PURE__ */
|
|
15292
|
-
/* @__PURE__ */
|
|
15293
|
-
userInfo?.email ?? /* @__PURE__ */
|
|
15944
|
+
return /* @__PURE__ */ jsxs21(Box21, { flexDirection: "column", children: [
|
|
15945
|
+
/* @__PURE__ */ jsx29(Text22, { bold: true, children: "User Info" }),
|
|
15946
|
+
/* @__PURE__ */ jsxs21(Box21, { flexDirection: "column", marginTop: 1, paddingX: 2, children: [
|
|
15947
|
+
/* @__PURE__ */ jsxs21(Text22, { children: [
|
|
15948
|
+
/* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Email: " }),
|
|
15949
|
+
userInfo?.email ?? /* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Not set" })
|
|
15294
15950
|
] }),
|
|
15295
|
-
/* @__PURE__ */
|
|
15296
|
-
/* @__PURE__ */
|
|
15297
|
-
userInfo?.name ?? /* @__PURE__ */
|
|
15951
|
+
/* @__PURE__ */ jsxs21(Text22, { children: [
|
|
15952
|
+
/* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Name: " }),
|
|
15953
|
+
userInfo?.name ?? /* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Not set" })
|
|
15298
15954
|
] }),
|
|
15299
|
-
/* @__PURE__ */
|
|
15300
|
-
/* @__PURE__ */
|
|
15301
|
-
userInfo?.phone ?? /* @__PURE__ */
|
|
15955
|
+
/* @__PURE__ */ jsxs21(Text22, { children: [
|
|
15956
|
+
/* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Phone: " }),
|
|
15957
|
+
userInfo?.phone ?? /* @__PURE__ */ jsx29(Text22, { dimColor: true, children: "Not set" })
|
|
15302
15958
|
] })
|
|
15303
15959
|
] })
|
|
15304
15960
|
] });
|
|
15305
15961
|
};
|
|
15306
15962
|
|
|
15307
15963
|
// src/commands/user-info/index.tsx
|
|
15308
|
-
import { jsx as
|
|
15309
|
-
function createUserInfoCli(createResource, authStorage2) {
|
|
15310
|
-
const cli2 =
|
|
15964
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
15965
|
+
function createUserInfoCli(createResource, authStorage2, envAccessToken2) {
|
|
15966
|
+
const cli2 = Cli9.create("user-info", {
|
|
15311
15967
|
description: "User information commands"
|
|
15312
15968
|
});
|
|
15313
15969
|
cli2.command("retrieve", {
|
|
15314
15970
|
description: "Retrieve user info (email, name, phone)",
|
|
15315
15971
|
outputPolicy: "agent-only",
|
|
15316
|
-
middleware: [requireAuth(authStorage2)],
|
|
15972
|
+
middleware: [requireAuth(authStorage2, envAccessToken2)],
|
|
15317
15973
|
async run(c) {
|
|
15318
15974
|
const resource = createResource();
|
|
15319
15975
|
if (!c.agent && !c.formatExplicit) {
|
|
15320
15976
|
return renderInteractive(
|
|
15321
|
-
/* @__PURE__ */
|
|
15977
|
+
/* @__PURE__ */ jsx30(UserInfoRetrieve, { resource, onComplete: () => {
|
|
15322
15978
|
} }),
|
|
15323
15979
|
() => resource.retrieve()
|
|
15324
15980
|
);
|
|
@@ -15552,8 +16208,8 @@ ${JSON.stringify(redacted, null, 2)}`
|
|
|
15552
16208
|
};
|
|
15553
16209
|
|
|
15554
16210
|
// src/auth/session.ts
|
|
15555
|
-
var
|
|
15556
|
-
function createAccessTokenProvider(authResource, authStorage2 = storage) {
|
|
16211
|
+
var EXPIRY_BUFFER_MS2 = 6e4;
|
|
16212
|
+
function createAccessTokenProvider(authResource, authStorage2 = storage, options = {}) {
|
|
15557
16213
|
return async ({ forceRefresh } = {}) => {
|
|
15558
16214
|
const auth = authStorage2.getAuth();
|
|
15559
16215
|
if (!auth) {
|
|
@@ -15561,51 +16217,21 @@ function createAccessTokenProvider(authResource, authStorage2 = storage) {
|
|
|
15561
16217
|
'Not authenticated. Run "link-cli auth login" first.'
|
|
15562
16218
|
);
|
|
15563
16219
|
}
|
|
15564
|
-
const isExpired = auth.expires_at != null && Date.now() >= auth.expires_at -
|
|
16220
|
+
const isExpired = auth.expires_at != null && Date.now() >= auth.expires_at - EXPIRY_BUFFER_MS2;
|
|
15565
16221
|
if (!forceRefresh && !isExpired) {
|
|
15566
16222
|
return auth.access_token;
|
|
15567
16223
|
}
|
|
16224
|
+
if (options.noRefresh) {
|
|
16225
|
+
throw new LinkAuthenticationError(
|
|
16226
|
+
'Access token expired. Re-authenticate with "link-cli auth login".'
|
|
16227
|
+
);
|
|
16228
|
+
}
|
|
15568
16229
|
const refreshed = await authResource.refreshToken(auth.refresh_token);
|
|
15569
16230
|
authStorage2.setAuth(refreshed);
|
|
15570
16231
|
return refreshed.access_token;
|
|
15571
16232
|
};
|
|
15572
16233
|
}
|
|
15573
16234
|
|
|
15574
|
-
// src/utils/sanitize-text.ts
|
|
15575
|
-
import stripAnsi from "strip-ansi";
|
|
15576
|
-
var CONTROL_CHAR_RE = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\r]/g;
|
|
15577
|
-
var NEEDS_SANITIZE_RE = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\r\x1b]/;
|
|
15578
|
-
function sanitizeText(input) {
|
|
15579
|
-
if (!input) {
|
|
15580
|
-
return "";
|
|
15581
|
-
}
|
|
15582
|
-
if (!NEEDS_SANITIZE_RE.test(input)) {
|
|
15583
|
-
return input;
|
|
15584
|
-
}
|
|
15585
|
-
return stripAnsi(input).replace(CONTROL_CHAR_RE, "");
|
|
15586
|
-
}
|
|
15587
|
-
function sanitizeDeep(value) {
|
|
15588
|
-
if (value === null || value === void 0) {
|
|
15589
|
-
return value;
|
|
15590
|
-
}
|
|
15591
|
-
if (typeof value === "string") {
|
|
15592
|
-
return sanitizeText(value);
|
|
15593
|
-
}
|
|
15594
|
-
if (Array.isArray(value)) {
|
|
15595
|
-
return value.map(sanitizeDeep);
|
|
15596
|
-
}
|
|
15597
|
-
if (typeof value === "object") {
|
|
15598
|
-
const result = {};
|
|
15599
|
-
const keys = Object.keys(value);
|
|
15600
|
-
for (let i = 0; i < keys.length; i++) {
|
|
15601
|
-
const k = keys[i];
|
|
15602
|
-
result[k] = sanitizeDeep(value[k]);
|
|
15603
|
-
}
|
|
15604
|
-
return result;
|
|
15605
|
-
}
|
|
15606
|
-
return value;
|
|
15607
|
-
}
|
|
15608
|
-
|
|
15609
16235
|
// src/utils/resource-factory.ts
|
|
15610
16236
|
function sanitizeResource(resource) {
|
|
15611
16237
|
return new Proxy(resource, {
|
|
@@ -15628,37 +16254,69 @@ var ResourceFactory = class {
|
|
|
15628
16254
|
verbose;
|
|
15629
16255
|
defaultHeaders;
|
|
15630
16256
|
authStorage;
|
|
15631
|
-
|
|
16257
|
+
envAccessToken;
|
|
16258
|
+
envRefreshToken;
|
|
16259
|
+
noRefresh;
|
|
16260
|
+
_authResource;
|
|
15632
16261
|
accessTokenProvider;
|
|
15633
16262
|
spendRequestResource;
|
|
15634
16263
|
paymentMethodsResource;
|
|
15635
16264
|
shippingAddressResource;
|
|
15636
16265
|
userInfoResource;
|
|
16266
|
+
webBotAuthResource;
|
|
15637
16267
|
constructor(options = {}) {
|
|
15638
16268
|
this.verbose = options.verbose ?? false;
|
|
15639
16269
|
this.defaultHeaders = options.defaultHeaders;
|
|
15640
16270
|
this.authStorage = options.authStorage;
|
|
16271
|
+
this.envAccessToken = options.envAccessToken;
|
|
16272
|
+
this.envRefreshToken = options.envRefreshToken;
|
|
16273
|
+
this.noRefresh = options.noRefresh ?? false;
|
|
16274
|
+
this._authResource = options.authResource;
|
|
15641
16275
|
}
|
|
15642
16276
|
createAuthResource() {
|
|
15643
|
-
if (this.
|
|
15644
|
-
return this.
|
|
16277
|
+
if (this._authResource) {
|
|
16278
|
+
return this._authResource;
|
|
15645
16279
|
}
|
|
15646
|
-
this.
|
|
15647
|
-
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
16280
|
+
this._authResource = sanitizeResource(
|
|
16281
|
+
new LinkAuthResource({
|
|
16282
|
+
verbose: this.verbose,
|
|
16283
|
+
defaultHeaders: this.defaultHeaders
|
|
16284
|
+
})
|
|
16285
|
+
);
|
|
16286
|
+
return this._authResource;
|
|
15651
16287
|
}
|
|
15652
16288
|
getAuthStorage() {
|
|
15653
16289
|
return this.authStorage;
|
|
15654
16290
|
}
|
|
16291
|
+
getAccessTokenProvider() {
|
|
16292
|
+
return this.createSdkAccessTokenProvider();
|
|
16293
|
+
}
|
|
15655
16294
|
createSdkAccessTokenProvider() {
|
|
15656
16295
|
if (this.accessTokenProvider) {
|
|
15657
16296
|
return this.accessTokenProvider;
|
|
15658
16297
|
}
|
|
16298
|
+
if (this.envAccessToken) {
|
|
16299
|
+
const envAccessToken2 = this.envAccessToken;
|
|
16300
|
+
const envRefreshToken2 = this.envRefreshToken;
|
|
16301
|
+
const noRefresh2 = this.noRefresh;
|
|
16302
|
+
this.accessTokenProvider = async ({ forceRefresh } = {}) => {
|
|
16303
|
+
if (forceRefresh) {
|
|
16304
|
+
if (noRefresh2 || !envRefreshToken2) {
|
|
16305
|
+
throw new LinkAuthenticationError(
|
|
16306
|
+
"Access token expired. Update LINK_ACCESS_TOKEN and retry."
|
|
16307
|
+
);
|
|
16308
|
+
}
|
|
16309
|
+
const refreshed = await this.createAuthResource().refreshToken(envRefreshToken2);
|
|
16310
|
+
return refreshed.access_token;
|
|
16311
|
+
}
|
|
16312
|
+
return envAccessToken2;
|
|
16313
|
+
};
|
|
16314
|
+
return this.accessTokenProvider;
|
|
16315
|
+
}
|
|
15659
16316
|
this.accessTokenProvider = createAccessTokenProvider(
|
|
15660
16317
|
this.createAuthResource(),
|
|
15661
|
-
this.authStorage
|
|
16318
|
+
this.authStorage,
|
|
16319
|
+
{ noRefresh: this.noRefresh }
|
|
15662
16320
|
);
|
|
15663
16321
|
return this.accessTokenProvider;
|
|
15664
16322
|
}
|
|
@@ -15718,6 +16376,20 @@ var ResourceFactory = class {
|
|
|
15718
16376
|
);
|
|
15719
16377
|
return this.userInfoResource;
|
|
15720
16378
|
}
|
|
16379
|
+
createWebBotAuthResource() {
|
|
16380
|
+
if (this.webBotAuthResource) {
|
|
16381
|
+
return this.webBotAuthResource;
|
|
16382
|
+
}
|
|
16383
|
+
const getAccessToken = this.createSdkAccessTokenProvider();
|
|
16384
|
+
this.webBotAuthResource = sanitizeResource(
|
|
16385
|
+
new WebBotAuthResource({
|
|
16386
|
+
verbose: this.verbose,
|
|
16387
|
+
defaultHeaders: this.defaultHeaders,
|
|
16388
|
+
getAccessToken
|
|
16389
|
+
})
|
|
16390
|
+
);
|
|
16391
|
+
return this.webBotAuthResource;
|
|
16392
|
+
}
|
|
15721
16393
|
};
|
|
15722
16394
|
|
|
15723
16395
|
// src/utils/update-info.ts
|
|
@@ -15791,12 +16463,10 @@ function cacheUpdateInfo(value, ttlMs = UPDATE_CACHE_TTL_MS) {
|
|
|
15791
16463
|
}
|
|
15792
16464
|
|
|
15793
16465
|
// src/cli.tsx
|
|
15794
|
-
var cliVersion = "0.
|
|
15795
|
-
var buildNumber = "1";
|
|
16466
|
+
var cliVersion = "0.7.0";
|
|
15796
16467
|
var cliName = "@stripe/link-cli";
|
|
15797
16468
|
var defaultHeaders = {
|
|
15798
|
-
"User-Agent": `link-cli/${cliVersion}
|
|
15799
|
-
"X-Build-Number": buildNumber
|
|
16469
|
+
"User-Agent": `link-cli/${cliVersion}`
|
|
15800
16470
|
};
|
|
15801
16471
|
var verbose = process.argv.includes("--verbose");
|
|
15802
16472
|
var authFileIndex = process.argv.indexOf("--auth");
|
|
@@ -15805,12 +16475,22 @@ if (authFileIndex !== -1) {
|
|
|
15805
16475
|
process.argv.splice(authFileIndex, 2);
|
|
15806
16476
|
}
|
|
15807
16477
|
var authStorage = credentialFilePath ? new Storage({ configPath: credentialFilePath }) : storage;
|
|
15808
|
-
var
|
|
16478
|
+
var envAccessToken = process.env.LINK_ACCESS_TOKEN;
|
|
16479
|
+
var envRefreshToken = process.env.LINK_REFRESH_TOKEN;
|
|
16480
|
+
var noRefresh = Boolean(process.env.LINK_NO_REFRESH);
|
|
16481
|
+
var factory = new ResourceFactory({
|
|
16482
|
+
verbose,
|
|
16483
|
+
defaultHeaders,
|
|
16484
|
+
authStorage,
|
|
16485
|
+
envAccessToken,
|
|
16486
|
+
envRefreshToken,
|
|
16487
|
+
noRefresh
|
|
16488
|
+
});
|
|
15809
16489
|
var authRepo = factory.createAuthResource();
|
|
15810
16490
|
var spendRequestRepo = factory.createSpendRequestResource();
|
|
15811
|
-
var cli =
|
|
16491
|
+
var cli = Cli10.create("link-cli", {
|
|
15812
16492
|
description: "Create a secure, one-time payment credential from a Link wallet to let agents complete purchases on behalf of users.",
|
|
15813
|
-
version:
|
|
16493
|
+
version: cliVersion
|
|
15814
16494
|
});
|
|
15815
16495
|
var isAgent = process.argv.includes("--format") || process.argv.includes("--mcp");
|
|
15816
16496
|
var agentUpdateInfoProvider = createAgentUpdateInfoProvider(
|
|
@@ -15825,24 +16505,34 @@ if (!isAgent && process.stdout.isTTY) {
|
|
|
15825
16505
|
process.stderr.write(renderInteractiveUpdateNotice(updateInfo));
|
|
15826
16506
|
}
|
|
15827
16507
|
}
|
|
15828
|
-
cli.command(
|
|
15829
|
-
|
|
16508
|
+
cli.command(
|
|
16509
|
+
createAuthCli(authRepo, getUpdateInfo, authStorage, envAccessToken)
|
|
16510
|
+
);
|
|
16511
|
+
cli.command(
|
|
16512
|
+
createSpendRequestCli(spendRequestRepo, authStorage, envAccessToken)
|
|
16513
|
+
);
|
|
15830
16514
|
cli.command(
|
|
15831
16515
|
createPaymentMethodsCli(
|
|
15832
16516
|
() => factory.createPaymentMethodsResource(),
|
|
15833
|
-
authStorage
|
|
16517
|
+
authStorage,
|
|
16518
|
+
envAccessToken
|
|
15834
16519
|
)
|
|
15835
16520
|
);
|
|
15836
16521
|
cli.command(
|
|
15837
16522
|
createShippingAddressCli(
|
|
15838
16523
|
() => factory.createShippingAddressResource(),
|
|
15839
|
-
authStorage
|
|
16524
|
+
authStorage,
|
|
16525
|
+
envAccessToken
|
|
15840
16526
|
)
|
|
15841
16527
|
);
|
|
15842
16528
|
cli.command(
|
|
15843
|
-
createUserInfoCli(
|
|
16529
|
+
createUserInfoCli(
|
|
16530
|
+
() => factory.createUserInfoResource(),
|
|
16531
|
+
authStorage,
|
|
16532
|
+
envAccessToken
|
|
16533
|
+
)
|
|
15844
16534
|
);
|
|
15845
|
-
cli.command(createMppCli(spendRequestRepo, authStorage));
|
|
16535
|
+
cli.command(createMppCli(spendRequestRepo, authStorage, envAccessToken));
|
|
15846
16536
|
cli.command(
|
|
15847
16537
|
createDemoCli(
|
|
15848
16538
|
authRepo,
|
|
@@ -15859,6 +16549,7 @@ cli.command(
|
|
|
15859
16549
|
authStorage
|
|
15860
16550
|
)
|
|
15861
16551
|
);
|
|
16552
|
+
cli.command(createServeCli(cli));
|
|
15862
16553
|
cli.serve();
|
|
15863
16554
|
var cli_default = cli;
|
|
15864
16555
|
export {
|