@vm0/cli 9.150.7 → 9.150.9
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/{chunk-VKCZANPE.js → chunk-QVMEP4RI.js} +536 -239
- package/{chunk-VKCZANPE.js.map → chunk-QVMEP4RI.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +124 -9
- package/zero.js.map +1 -1
|
@@ -4629,8 +4629,8 @@ var require_browser = __commonJS({
|
|
|
4629
4629
|
if (!this.useColors) {
|
|
4630
4630
|
return;
|
|
4631
4631
|
}
|
|
4632
|
-
const
|
|
4633
|
-
args.splice(1, 0,
|
|
4632
|
+
const c103 = "color: " + this.color;
|
|
4633
|
+
args.splice(1, 0, c103, "color: inherit");
|
|
4634
4634
|
let index = 0;
|
|
4635
4635
|
let lastC = 0;
|
|
4636
4636
|
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
@@ -4642,7 +4642,7 @@ var require_browser = __commonJS({
|
|
|
4642
4642
|
lastC = index;
|
|
4643
4643
|
}
|
|
4644
4644
|
});
|
|
4645
|
-
args.splice(lastC, 0,
|
|
4645
|
+
args.splice(lastC, 0, c103);
|
|
4646
4646
|
}
|
|
4647
4647
|
exports.log = console.debug || console.log || (() => {
|
|
4648
4648
|
});
|
|
@@ -4930,8 +4930,8 @@ var require_node = __commonJS({
|
|
|
4930
4930
|
function formatArgs(args) {
|
|
4931
4931
|
const { namespace: name, useColors: useColors2 } = this;
|
|
4932
4932
|
if (useColors2) {
|
|
4933
|
-
const
|
|
4934
|
-
const colorCode = "\x1B[3" + (
|
|
4933
|
+
const c103 = this.color;
|
|
4934
|
+
const colorCode = "\x1B[3" + (c103 < 8 ? c103 : "8;5;" + c103);
|
|
4935
4935
|
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
4936
4936
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
4937
4937
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
@@ -8981,27 +8981,27 @@ var require_commonjs2 = __commonJS({
|
|
|
8981
8981
|
const pad = n.some(isPadded);
|
|
8982
8982
|
N = [];
|
|
8983
8983
|
for (let i = x2; test(i, y); i += incr) {
|
|
8984
|
-
let
|
|
8984
|
+
let c103;
|
|
8985
8985
|
if (isAlphaSequence) {
|
|
8986
|
-
|
|
8987
|
-
if (
|
|
8988
|
-
|
|
8986
|
+
c103 = String.fromCharCode(i);
|
|
8987
|
+
if (c103 === "\\") {
|
|
8988
|
+
c103 = "";
|
|
8989
8989
|
}
|
|
8990
8990
|
} else {
|
|
8991
|
-
|
|
8991
|
+
c103 = String(i);
|
|
8992
8992
|
if (pad) {
|
|
8993
|
-
const need = width -
|
|
8993
|
+
const need = width - c103.length;
|
|
8994
8994
|
if (need > 0) {
|
|
8995
8995
|
const z3 = new Array(need + 1).join("0");
|
|
8996
8996
|
if (i < 0) {
|
|
8997
|
-
|
|
8997
|
+
c103 = "-" + z3 + c103.slice(1);
|
|
8998
8998
|
} else {
|
|
8999
|
-
|
|
8999
|
+
c103 = z3 + c103;
|
|
9000
9000
|
}
|
|
9001
9001
|
}
|
|
9002
9002
|
}
|
|
9003
9003
|
}
|
|
9004
|
-
N.push(
|
|
9004
|
+
N.push(c103);
|
|
9005
9005
|
}
|
|
9006
9006
|
} else {
|
|
9007
9007
|
N = [];
|
|
@@ -9084,25 +9084,25 @@ var require_brace_expressions = __commonJS({
|
|
|
9084
9084
|
let endPos = pos;
|
|
9085
9085
|
let rangeStart = "";
|
|
9086
9086
|
WHILE: while (i < glob.length) {
|
|
9087
|
-
const
|
|
9088
|
-
if ((
|
|
9087
|
+
const c103 = glob.charAt(i);
|
|
9088
|
+
if ((c103 === "!" || c103 === "^") && i === pos + 1) {
|
|
9089
9089
|
negate = true;
|
|
9090
9090
|
i++;
|
|
9091
9091
|
continue;
|
|
9092
9092
|
}
|
|
9093
|
-
if (
|
|
9093
|
+
if (c103 === "]" && sawStart && !escaping) {
|
|
9094
9094
|
endPos = i + 1;
|
|
9095
9095
|
break;
|
|
9096
9096
|
}
|
|
9097
9097
|
sawStart = true;
|
|
9098
|
-
if (
|
|
9098
|
+
if (c103 === "\\") {
|
|
9099
9099
|
if (!escaping) {
|
|
9100
9100
|
escaping = true;
|
|
9101
9101
|
i++;
|
|
9102
9102
|
continue;
|
|
9103
9103
|
}
|
|
9104
9104
|
}
|
|
9105
|
-
if (
|
|
9105
|
+
if (c103 === "[" && !escaping) {
|
|
9106
9106
|
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
9107
9107
|
if (glob.startsWith(cls, i)) {
|
|
9108
9108
|
if (rangeStart) {
|
|
@@ -9120,26 +9120,26 @@ var require_brace_expressions = __commonJS({
|
|
|
9120
9120
|
}
|
|
9121
9121
|
escaping = false;
|
|
9122
9122
|
if (rangeStart) {
|
|
9123
|
-
if (
|
|
9124
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(
|
|
9125
|
-
} else if (
|
|
9126
|
-
ranges.push(braceEscape(
|
|
9123
|
+
if (c103 > rangeStart) {
|
|
9124
|
+
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c103));
|
|
9125
|
+
} else if (c103 === rangeStart) {
|
|
9126
|
+
ranges.push(braceEscape(c103));
|
|
9127
9127
|
}
|
|
9128
9128
|
rangeStart = "";
|
|
9129
9129
|
i++;
|
|
9130
9130
|
continue;
|
|
9131
9131
|
}
|
|
9132
9132
|
if (glob.startsWith("-]", i + 1)) {
|
|
9133
|
-
ranges.push(braceEscape(
|
|
9133
|
+
ranges.push(braceEscape(c103 + "-"));
|
|
9134
9134
|
i += 2;
|
|
9135
9135
|
continue;
|
|
9136
9136
|
}
|
|
9137
9137
|
if (glob.startsWith("-", i + 1)) {
|
|
9138
|
-
rangeStart =
|
|
9138
|
+
rangeStart = c103;
|
|
9139
9139
|
i += 2;
|
|
9140
9140
|
continue;
|
|
9141
9141
|
}
|
|
9142
|
-
ranges.push(braceEscape(
|
|
9142
|
+
ranges.push(braceEscape(c103));
|
|
9143
9143
|
i++;
|
|
9144
9144
|
}
|
|
9145
9145
|
if (endPos < i) {
|
|
@@ -9189,8 +9189,8 @@ var require_ast = __commonJS({
|
|
|
9189
9189
|
var brace_expressions_js_1 = require_brace_expressions();
|
|
9190
9190
|
var unescape_js_1 = require_unescape();
|
|
9191
9191
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
9192
|
-
var isExtglobType = (
|
|
9193
|
-
var isExtglobAST = (
|
|
9192
|
+
var isExtglobType = (c103) => types.has(c103);
|
|
9193
|
+
var isExtglobAST = (c103) => isExtglobType(c103.type);
|
|
9194
9194
|
var adoptionMap = /* @__PURE__ */ new Map([
|
|
9195
9195
|
["!", ["@"]],
|
|
9196
9196
|
["?", ["?", "@"]],
|
|
@@ -9387,11 +9387,11 @@ var require_ast = __commonJS({
|
|
|
9387
9387
|
this.push(part.clone(this));
|
|
9388
9388
|
}
|
|
9389
9389
|
clone(parent) {
|
|
9390
|
-
const
|
|
9390
|
+
const c103 = new _a2(this.type, parent);
|
|
9391
9391
|
for (const p of this.#parts) {
|
|
9392
|
-
|
|
9392
|
+
c103.copyIn(p);
|
|
9393
9393
|
}
|
|
9394
|
-
return
|
|
9394
|
+
return c103;
|
|
9395
9395
|
}
|
|
9396
9396
|
static #parseAST(str, ast, pos, opt, extDepth) {
|
|
9397
9397
|
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
@@ -9403,39 +9403,39 @@ var require_ast = __commonJS({
|
|
|
9403
9403
|
let i2 = pos;
|
|
9404
9404
|
let acc2 = "";
|
|
9405
9405
|
while (i2 < str.length) {
|
|
9406
|
-
const
|
|
9407
|
-
if (escaping ||
|
|
9406
|
+
const c103 = str.charAt(i2++);
|
|
9407
|
+
if (escaping || c103 === "\\") {
|
|
9408
9408
|
escaping = !escaping;
|
|
9409
|
-
acc2 +=
|
|
9409
|
+
acc2 += c103;
|
|
9410
9410
|
continue;
|
|
9411
9411
|
}
|
|
9412
9412
|
if (inBrace) {
|
|
9413
9413
|
if (i2 === braceStart + 1) {
|
|
9414
|
-
if (
|
|
9414
|
+
if (c103 === "^" || c103 === "!") {
|
|
9415
9415
|
braceNeg = true;
|
|
9416
9416
|
}
|
|
9417
|
-
} else if (
|
|
9417
|
+
} else if (c103 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
9418
9418
|
inBrace = false;
|
|
9419
9419
|
}
|
|
9420
|
-
acc2 +=
|
|
9420
|
+
acc2 += c103;
|
|
9421
9421
|
continue;
|
|
9422
|
-
} else if (
|
|
9422
|
+
} else if (c103 === "[") {
|
|
9423
9423
|
inBrace = true;
|
|
9424
9424
|
braceStart = i2;
|
|
9425
9425
|
braceNeg = false;
|
|
9426
|
-
acc2 +=
|
|
9426
|
+
acc2 += c103;
|
|
9427
9427
|
continue;
|
|
9428
9428
|
}
|
|
9429
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
9429
|
+
const doRecurse = !opt.noext && isExtglobType(c103) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
9430
9430
|
if (doRecurse) {
|
|
9431
9431
|
ast.push(acc2);
|
|
9432
9432
|
acc2 = "";
|
|
9433
|
-
const ext = new _a2(
|
|
9433
|
+
const ext = new _a2(c103, ast);
|
|
9434
9434
|
i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
|
|
9435
9435
|
ast.push(ext);
|
|
9436
9436
|
continue;
|
|
9437
9437
|
}
|
|
9438
|
-
acc2 +=
|
|
9438
|
+
acc2 += c103;
|
|
9439
9439
|
}
|
|
9440
9440
|
ast.push(acc2);
|
|
9441
9441
|
return i2;
|
|
@@ -9445,48 +9445,48 @@ var require_ast = __commonJS({
|
|
|
9445
9445
|
const parts = [];
|
|
9446
9446
|
let acc = "";
|
|
9447
9447
|
while (i < str.length) {
|
|
9448
|
-
const
|
|
9449
|
-
if (escaping ||
|
|
9448
|
+
const c103 = str.charAt(i++);
|
|
9449
|
+
if (escaping || c103 === "\\") {
|
|
9450
9450
|
escaping = !escaping;
|
|
9451
|
-
acc +=
|
|
9451
|
+
acc += c103;
|
|
9452
9452
|
continue;
|
|
9453
9453
|
}
|
|
9454
9454
|
if (inBrace) {
|
|
9455
9455
|
if (i === braceStart + 1) {
|
|
9456
|
-
if (
|
|
9456
|
+
if (c103 === "^" || c103 === "!") {
|
|
9457
9457
|
braceNeg = true;
|
|
9458
9458
|
}
|
|
9459
|
-
} else if (
|
|
9459
|
+
} else if (c103 === "]" && !(i === braceStart + 2 && braceNeg)) {
|
|
9460
9460
|
inBrace = false;
|
|
9461
9461
|
}
|
|
9462
|
-
acc +=
|
|
9462
|
+
acc += c103;
|
|
9463
9463
|
continue;
|
|
9464
|
-
} else if (
|
|
9464
|
+
} else if (c103 === "[") {
|
|
9465
9465
|
inBrace = true;
|
|
9466
9466
|
braceStart = i;
|
|
9467
9467
|
braceNeg = false;
|
|
9468
|
-
acc +=
|
|
9468
|
+
acc += c103;
|
|
9469
9469
|
continue;
|
|
9470
9470
|
}
|
|
9471
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
9472
|
-
(extDepth <= maxDepth || ast && ast.#canAdoptType(
|
|
9471
|
+
const doRecurse = !opt.noext && isExtglobType(c103) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
9472
|
+
(extDepth <= maxDepth || ast && ast.#canAdoptType(c103));
|
|
9473
9473
|
if (doRecurse) {
|
|
9474
|
-
const depthAdd = ast && ast.#canAdoptType(
|
|
9474
|
+
const depthAdd = ast && ast.#canAdoptType(c103) ? 0 : 1;
|
|
9475
9475
|
part.push(acc);
|
|
9476
9476
|
acc = "";
|
|
9477
|
-
const ext = new _a2(
|
|
9477
|
+
const ext = new _a2(c103, part);
|
|
9478
9478
|
part.push(ext);
|
|
9479
9479
|
i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
|
|
9480
9480
|
continue;
|
|
9481
9481
|
}
|
|
9482
|
-
if (
|
|
9482
|
+
if (c103 === "|") {
|
|
9483
9483
|
part.push(acc);
|
|
9484
9484
|
acc = "";
|
|
9485
9485
|
parts.push(part);
|
|
9486
9486
|
part = new _a2(null, ast);
|
|
9487
9487
|
continue;
|
|
9488
9488
|
}
|
|
9489
|
-
if (
|
|
9489
|
+
if (c103 === ")") {
|
|
9490
9490
|
if (acc === "" && ast.#parts.length === 0) {
|
|
9491
9491
|
ast.#emptyExt = true;
|
|
9492
9492
|
}
|
|
@@ -9495,7 +9495,7 @@ var require_ast = __commonJS({
|
|
|
9495
9495
|
ast.push(...parts, part);
|
|
9496
9496
|
return i;
|
|
9497
9497
|
}
|
|
9498
|
-
acc +=
|
|
9498
|
+
acc += c103;
|
|
9499
9499
|
}
|
|
9500
9500
|
ast.type = null;
|
|
9501
9501
|
ast.#hasMagic = void 0;
|
|
@@ -9515,8 +9515,8 @@ var require_ast = __commonJS({
|
|
|
9515
9515
|
}
|
|
9516
9516
|
return this.#canAdoptType(gc.type, map2);
|
|
9517
9517
|
}
|
|
9518
|
-
#canAdoptType(
|
|
9519
|
-
return !!map2.get(this.type)?.includes(
|
|
9518
|
+
#canAdoptType(c103, map2 = adoptionAnyMap) {
|
|
9519
|
+
return !!map2.get(this.type)?.includes(c103);
|
|
9520
9520
|
}
|
|
9521
9521
|
#adoptWithSpace(child, index) {
|
|
9522
9522
|
const gc = child.#parts[0];
|
|
@@ -9534,9 +9534,9 @@ var require_ast = __commonJS({
|
|
|
9534
9534
|
}
|
|
9535
9535
|
this.#toString = void 0;
|
|
9536
9536
|
}
|
|
9537
|
-
#canUsurpType(
|
|
9537
|
+
#canUsurpType(c103) {
|
|
9538
9538
|
const m = usurpMap.get(this.type);
|
|
9539
|
-
return !!m?.has(
|
|
9539
|
+
return !!m?.has(c103);
|
|
9540
9540
|
}
|
|
9541
9541
|
#canUsurp(child) {
|
|
9542
9542
|
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
|
|
@@ -9749,18 +9749,18 @@ var require_ast = __commonJS({
|
|
|
9749
9749
|
do {
|
|
9750
9750
|
done = true;
|
|
9751
9751
|
for (let i = 0; i < this.#parts.length; i++) {
|
|
9752
|
-
const
|
|
9753
|
-
if (typeof
|
|
9754
|
-
|
|
9755
|
-
if (this.#canAdopt(
|
|
9752
|
+
const c103 = this.#parts[i];
|
|
9753
|
+
if (typeof c103 === "object") {
|
|
9754
|
+
c103.#flatten();
|
|
9755
|
+
if (this.#canAdopt(c103)) {
|
|
9756
9756
|
done = false;
|
|
9757
|
-
this.#adopt(
|
|
9758
|
-
} else if (this.#canAdoptWithSpace(
|
|
9757
|
+
this.#adopt(c103, i);
|
|
9758
|
+
} else if (this.#canAdoptWithSpace(c103)) {
|
|
9759
9759
|
done = false;
|
|
9760
|
-
this.#adoptWithSpace(
|
|
9761
|
-
} else if (this.#canUsurp(
|
|
9760
|
+
this.#adoptWithSpace(c103, i);
|
|
9761
|
+
} else if (this.#canUsurp(c103)) {
|
|
9762
9762
|
done = false;
|
|
9763
|
-
this.#usurp(
|
|
9763
|
+
this.#usurp(c103);
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
9766
9766
|
}
|
|
@@ -9784,13 +9784,13 @@ var require_ast = __commonJS({
|
|
|
9784
9784
|
let uflag = false;
|
|
9785
9785
|
let inStar = false;
|
|
9786
9786
|
for (let i = 0; i < glob.length; i++) {
|
|
9787
|
-
const
|
|
9787
|
+
const c103 = glob.charAt(i);
|
|
9788
9788
|
if (escaping) {
|
|
9789
9789
|
escaping = false;
|
|
9790
|
-
re += (reSpecials.has(
|
|
9790
|
+
re += (reSpecials.has(c103) ? "\\" : "") + c103;
|
|
9791
9791
|
continue;
|
|
9792
9792
|
}
|
|
9793
|
-
if (
|
|
9793
|
+
if (c103 === "*") {
|
|
9794
9794
|
if (inStar)
|
|
9795
9795
|
continue;
|
|
9796
9796
|
inStar = true;
|
|
@@ -9800,7 +9800,7 @@ var require_ast = __commonJS({
|
|
|
9800
9800
|
} else {
|
|
9801
9801
|
inStar = false;
|
|
9802
9802
|
}
|
|
9803
|
-
if (
|
|
9803
|
+
if (c103 === "\\") {
|
|
9804
9804
|
if (i === glob.length - 1) {
|
|
9805
9805
|
re += "\\\\";
|
|
9806
9806
|
} else {
|
|
@@ -9808,7 +9808,7 @@ var require_ast = __commonJS({
|
|
|
9808
9808
|
}
|
|
9809
9809
|
continue;
|
|
9810
9810
|
}
|
|
9811
|
-
if (
|
|
9811
|
+
if (c103 === "[") {
|
|
9812
9812
|
const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
|
|
9813
9813
|
if (consumed) {
|
|
9814
9814
|
re += src;
|
|
@@ -9818,12 +9818,12 @@ var require_ast = __commonJS({
|
|
|
9818
9818
|
continue;
|
|
9819
9819
|
}
|
|
9820
9820
|
}
|
|
9821
|
-
if (
|
|
9821
|
+
if (c103 === "?") {
|
|
9822
9822
|
re += qmark;
|
|
9823
9823
|
hasMagic = true;
|
|
9824
9824
|
continue;
|
|
9825
9825
|
}
|
|
9826
|
-
re += regExpEscape(
|
|
9826
|
+
re += regExpEscape(c103);
|
|
9827
9827
|
}
|
|
9828
9828
|
return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
|
|
9829
9829
|
}
|
|
@@ -13747,13 +13747,13 @@ var require_utils4 = __commonJS({
|
|
|
13747
13747
|
}
|
|
13748
13748
|
exports.arrayStringifyHelper = arrayStringifyHelper;
|
|
13749
13749
|
function getPoolNameOld(pool) {
|
|
13750
|
-
const
|
|
13750
|
+
const c103 = pool.config.connectionConfig;
|
|
13751
13751
|
let poolName = "";
|
|
13752
|
-
poolName +=
|
|
13753
|
-
poolName +=
|
|
13754
|
-
poolName +=
|
|
13755
|
-
poolName +=
|
|
13756
|
-
if (!
|
|
13752
|
+
poolName += c103.host ? `host: '${c103.host}', ` : "";
|
|
13753
|
+
poolName += c103.port ? `port: ${c103.port}, ` : "";
|
|
13754
|
+
poolName += c103.database ? `database: '${c103.database}', ` : "";
|
|
13755
|
+
poolName += c103.user ? `user: '${c103.user}'` : "";
|
|
13756
|
+
if (!c103.user) {
|
|
13757
13757
|
poolName = poolName.substring(0, poolName.length - 2);
|
|
13758
13758
|
}
|
|
13759
13759
|
return poolName.trim();
|
|
@@ -14105,7 +14105,7 @@ var require_src9 = __commonJS({
|
|
|
14105
14105
|
return indexOpeningDashDashComment < indexClosingSlashComment;
|
|
14106
14106
|
}
|
|
14107
14107
|
function fixedEncodeURIComponent(str) {
|
|
14108
|
-
return encodeURIComponent(str).replace(/[!'()*]/g, (
|
|
14108
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, (c103) => `%${c103.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
14109
14109
|
}
|
|
14110
14110
|
function addSqlCommenterComment(span, query) {
|
|
14111
14111
|
if (typeof query !== "string" || query.length === 0) {
|
|
@@ -22665,8 +22665,8 @@ var require_util = __commonJS({
|
|
|
22665
22665
|
function isUSVString(val) {
|
|
22666
22666
|
return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
|
|
22667
22667
|
}
|
|
22668
|
-
function isTokenCharCode(
|
|
22669
|
-
switch (
|
|
22668
|
+
function isTokenCharCode(c103) {
|
|
22669
|
+
switch (c103) {
|
|
22670
22670
|
case 34:
|
|
22671
22671
|
case 40:
|
|
22672
22672
|
case 41:
|
|
@@ -22686,7 +22686,7 @@ var require_util = __commonJS({
|
|
|
22686
22686
|
case 125:
|
|
22687
22687
|
return false;
|
|
22688
22688
|
default:
|
|
22689
|
-
return
|
|
22689
|
+
return c103 >= 33 && c103 <= 126;
|
|
22690
22690
|
}
|
|
22691
22691
|
}
|
|
22692
22692
|
function isValidHTTPToken(characters) {
|
|
@@ -24275,7 +24275,7 @@ var require_constants2 = __commonJS({
|
|
|
24275
24275
|
exports.HEADER_CHARS.push(i);
|
|
24276
24276
|
}
|
|
24277
24277
|
}
|
|
24278
|
-
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((
|
|
24278
|
+
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c103) => c103 !== 44);
|
|
24279
24279
|
exports.MAJOR = exports.NUM_MAP;
|
|
24280
24280
|
exports.MINOR = exports.MAJOR;
|
|
24281
24281
|
var HEADER_STATE;
|
|
@@ -25421,10 +25421,10 @@ var require_util2 = __commonJS({
|
|
|
25421
25421
|
}
|
|
25422
25422
|
function isValidReasonPhrase(statusText) {
|
|
25423
25423
|
for (let i = 0; i < statusText.length; ++i) {
|
|
25424
|
-
const
|
|
25425
|
-
if (!(
|
|
25426
|
-
|
|
25427
|
-
|
|
25424
|
+
const c103 = statusText.charCodeAt(i);
|
|
25425
|
+
if (!(c103 === 9 || // HTAB
|
|
25426
|
+
c103 >= 32 && c103 <= 126 || // SP / VCHAR
|
|
25427
|
+
c103 >= 128 && c103 <= 255)) {
|
|
25428
25428
|
return false;
|
|
25429
25429
|
}
|
|
25430
25430
|
}
|
|
@@ -29398,7 +29398,7 @@ var require_pool_base = __commonJS({
|
|
|
29398
29398
|
pool.emit("drain", origin, [pool, ...targets]);
|
|
29399
29399
|
}
|
|
29400
29400
|
if (pool[kClosedResolve] && queue.isEmpty()) {
|
|
29401
|
-
Promise.all(pool[kClients].map((
|
|
29401
|
+
Promise.all(pool[kClients].map((c103) => c103.close())).then(pool[kClosedResolve]);
|
|
29402
29402
|
}
|
|
29403
29403
|
};
|
|
29404
29404
|
this[kOnConnect] = (origin, targets) => {
|
|
@@ -29447,7 +29447,7 @@ var require_pool_base = __commonJS({
|
|
|
29447
29447
|
}
|
|
29448
29448
|
async [kClose]() {
|
|
29449
29449
|
if (this[kQueue].isEmpty()) {
|
|
29450
|
-
await Promise.all(this[kClients].map((
|
|
29450
|
+
await Promise.all(this[kClients].map((c103) => c103.close()));
|
|
29451
29451
|
} else {
|
|
29452
29452
|
await new Promise((resolve2) => {
|
|
29453
29453
|
this[kClosedResolve] = resolve2;
|
|
@@ -29462,7 +29462,7 @@ var require_pool_base = __commonJS({
|
|
|
29462
29462
|
}
|
|
29463
29463
|
item.handler.onError(err);
|
|
29464
29464
|
}
|
|
29465
|
-
await Promise.all(this[kClients].map((
|
|
29465
|
+
await Promise.all(this[kClients].map((c103) => c103.destroy(err)));
|
|
29466
29466
|
}
|
|
29467
29467
|
[kDispatch](opts, handler) {
|
|
29468
29468
|
const dispatcher = this[kGetDispatcher]();
|
|
@@ -36232,8 +36232,8 @@ var require_util4 = __commonJS({
|
|
|
36232
36232
|
return new TextDecoder(encoding).decode(sliced);
|
|
36233
36233
|
}
|
|
36234
36234
|
function BOMSniffing(ioQueue) {
|
|
36235
|
-
const [a, b,
|
|
36236
|
-
if (a === 239 && b === 187 &&
|
|
36235
|
+
const [a, b, c103] = ioQueue;
|
|
36236
|
+
if (a === 239 && b === 187 && c103 === 191) {
|
|
36237
36237
|
return "UTF-8";
|
|
36238
36238
|
} else if (a === 254 && b === 255) {
|
|
36239
36239
|
return "UTF-16BE";
|
|
@@ -40356,7 +40356,7 @@ var require_style = __commonJS({
|
|
|
40356
40356
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
|
|
40357
40357
|
"use strict";
|
|
40358
40358
|
init_esm_shims();
|
|
40359
|
-
var
|
|
40359
|
+
var c103 = require_kleur();
|
|
40360
40360
|
var figures = require_figures();
|
|
40361
40361
|
var styles3 = Object.freeze({
|
|
40362
40362
|
password: {
|
|
@@ -40378,14 +40378,14 @@ var require_style = __commonJS({
|
|
|
40378
40378
|
});
|
|
40379
40379
|
var render = (type) => styles3[type] || styles3.default;
|
|
40380
40380
|
var symbols = Object.freeze({
|
|
40381
|
-
aborted:
|
|
40382
|
-
done:
|
|
40383
|
-
exited:
|
|
40384
|
-
default:
|
|
40381
|
+
aborted: c103.red(figures.cross),
|
|
40382
|
+
done: c103.green(figures.tick),
|
|
40383
|
+
exited: c103.yellow(figures.cross),
|
|
40384
|
+
default: c103.cyan("?")
|
|
40385
40385
|
});
|
|
40386
40386
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
40387
|
-
var delimiter = (completing) =>
|
|
40388
|
-
var item = (expandable, expanded) =>
|
|
40387
|
+
var delimiter = (completing) => c103.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
40388
|
+
var item = (expandable, expanded) => c103.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
40389
40389
|
module2.exports = {
|
|
40390
40390
|
styles: styles3,
|
|
40391
40391
|
render,
|
|
@@ -40667,10 +40667,10 @@ var require_text = __commonJS({
|
|
|
40667
40667
|
this.cursor = this.cursor + n;
|
|
40668
40668
|
this.cursorOffset += n;
|
|
40669
40669
|
}
|
|
40670
|
-
_(
|
|
40670
|
+
_(c103, key) {
|
|
40671
40671
|
let s1 = this.value.slice(0, this.cursor);
|
|
40672
40672
|
let s2 = this.value.slice(this.cursor);
|
|
40673
|
-
this.value = `${s1}${
|
|
40673
|
+
this.value = `${s1}${c103}${s2}`;
|
|
40674
40674
|
this.red = false;
|
|
40675
40675
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
40676
40676
|
this.render();
|
|
@@ -40845,8 +40845,8 @@ var require_select = __commonJS({
|
|
|
40845
40845
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
40846
40846
|
this.render();
|
|
40847
40847
|
}
|
|
40848
|
-
_(
|
|
40849
|
-
if (
|
|
40848
|
+
_(c103, key) {
|
|
40849
|
+
if (c103 === " ") return this.submit();
|
|
40850
40850
|
}
|
|
40851
40851
|
get selection() {
|
|
40852
40852
|
return this.choices[this.cursor];
|
|
@@ -40972,12 +40972,12 @@ var require_toggle = __commonJS({
|
|
|
40972
40972
|
this.fire();
|
|
40973
40973
|
this.render();
|
|
40974
40974
|
}
|
|
40975
|
-
_(
|
|
40976
|
-
if (
|
|
40975
|
+
_(c103, key) {
|
|
40976
|
+
if (c103 === " ") {
|
|
40977
40977
|
this.value = !this.value;
|
|
40978
|
-
} else if (
|
|
40978
|
+
} else if (c103 === "1") {
|
|
40979
40979
|
this.value = true;
|
|
40980
|
-
} else if (
|
|
40980
|
+
} else if (c103 === "0") {
|
|
40981
40981
|
this.value = false;
|
|
40982
40982
|
} else return this.bell();
|
|
40983
40983
|
this.render();
|
|
@@ -41485,9 +41485,9 @@ var require_date = __commonJS({
|
|
|
41485
41485
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
41486
41486
|
this.render();
|
|
41487
41487
|
}
|
|
41488
|
-
_(
|
|
41489
|
-
if (/\d/.test(
|
|
41490
|
-
this.typed +=
|
|
41488
|
+
_(c103) {
|
|
41489
|
+
if (/\d/.test(c103)) {
|
|
41490
|
+
this.typed += c103;
|
|
41491
41491
|
this.parts[this.cursor].setTo(this.typed);
|
|
41492
41492
|
this.render();
|
|
41493
41493
|
}
|
|
@@ -41596,8 +41596,8 @@ var require_number = __commonJS({
|
|
|
41596
41596
|
parse(x2) {
|
|
41597
41597
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
41598
41598
|
}
|
|
41599
|
-
valid(
|
|
41600
|
-
return
|
|
41599
|
+
valid(c103) {
|
|
41600
|
+
return c103 === `-` || c103 === `.` && this.float || isNumber.test(c103);
|
|
41601
41601
|
}
|
|
41602
41602
|
reset() {
|
|
41603
41603
|
this.typed = ``;
|
|
@@ -41690,14 +41690,14 @@ var require_number = __commonJS({
|
|
|
41690
41690
|
this.fire();
|
|
41691
41691
|
this.render();
|
|
41692
41692
|
}
|
|
41693
|
-
_(
|
|
41694
|
-
if (!this.valid(
|
|
41693
|
+
_(c103, key) {
|
|
41694
|
+
if (!this.valid(c103)) return this.bell();
|
|
41695
41695
|
const now = Date.now();
|
|
41696
41696
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
41697
|
-
this.typed +=
|
|
41697
|
+
this.typed += c103;
|
|
41698
41698
|
this.lastHit = now;
|
|
41699
41699
|
this.color = `cyan`;
|
|
41700
|
-
if (
|
|
41700
|
+
if (c103 === `.`) return this.fire();
|
|
41701
41701
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
41702
41702
|
if (this.value > this.max) this.value = this.max;
|
|
41703
41703
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -41861,10 +41861,10 @@ var require_multiselect = __commonJS({
|
|
|
41861
41861
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
41862
41862
|
this.render();
|
|
41863
41863
|
}
|
|
41864
|
-
_(
|
|
41865
|
-
if (
|
|
41864
|
+
_(c103, key) {
|
|
41865
|
+
if (c103 === " ") {
|
|
41866
41866
|
this.handleSpaceToggle();
|
|
41867
|
-
} else if (
|
|
41867
|
+
} else if (c103 === "a") {
|
|
41868
41868
|
this.toggleAll();
|
|
41869
41869
|
} else {
|
|
41870
41870
|
return this.bell();
|
|
@@ -42105,10 +42105,10 @@ var require_autocomplete = __commonJS({
|
|
|
42105
42105
|
this.out.write("\n");
|
|
42106
42106
|
this.close();
|
|
42107
42107
|
}
|
|
42108
|
-
_(
|
|
42108
|
+
_(c103, key) {
|
|
42109
42109
|
let s1 = this.input.slice(0, this.cursor);
|
|
42110
42110
|
let s2 = this.input.slice(this.cursor);
|
|
42111
|
-
this.input = `${s1}${
|
|
42111
|
+
this.input = `${s1}${c103}${s2}`;
|
|
42112
42112
|
this.cursor = s1.length + 1;
|
|
42113
42113
|
this.complete(this.render);
|
|
42114
42114
|
this.render();
|
|
@@ -42308,15 +42308,15 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
42308
42308
|
this.render();
|
|
42309
42309
|
}
|
|
42310
42310
|
}
|
|
42311
|
-
handleInputChange(
|
|
42312
|
-
this.inputValue = this.inputValue +
|
|
42311
|
+
handleInputChange(c103) {
|
|
42312
|
+
this.inputValue = this.inputValue + c103;
|
|
42313
42313
|
this.updateFilteredOptions();
|
|
42314
42314
|
}
|
|
42315
|
-
_(
|
|
42316
|
-
if (
|
|
42315
|
+
_(c103, key) {
|
|
42316
|
+
if (c103 === " ") {
|
|
42317
42317
|
this.handleSpaceToggle();
|
|
42318
42318
|
} else {
|
|
42319
|
-
this.handleInputChange(
|
|
42319
|
+
this.handleInputChange(c103);
|
|
42320
42320
|
}
|
|
42321
42321
|
}
|
|
42322
42322
|
renderInstructions() {
|
|
@@ -42422,12 +42422,12 @@ var require_confirm = __commonJS({
|
|
|
42422
42422
|
this.out.write("\n");
|
|
42423
42423
|
this.close();
|
|
42424
42424
|
}
|
|
42425
|
-
_(
|
|
42426
|
-
if (
|
|
42425
|
+
_(c103, key) {
|
|
42426
|
+
if (c103.toLowerCase() === "y") {
|
|
42427
42427
|
this.value = true;
|
|
42428
42428
|
return this.submit();
|
|
42429
42429
|
}
|
|
42430
|
-
if (
|
|
42430
|
+
if (c103.toLowerCase() === "n") {
|
|
42431
42431
|
this.value = false;
|
|
42432
42432
|
return this.submit();
|
|
42433
42433
|
}
|
|
@@ -42868,7 +42868,7 @@ var require_style2 = __commonJS({
|
|
|
42868
42868
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
|
|
42869
42869
|
"use strict";
|
|
42870
42870
|
init_esm_shims();
|
|
42871
|
-
var
|
|
42871
|
+
var c103 = require_kleur();
|
|
42872
42872
|
var figures = require_figures2();
|
|
42873
42873
|
var styles3 = Object.freeze({
|
|
42874
42874
|
password: { scale: 1, render: (input) => "*".repeat(input.length) },
|
|
@@ -42878,14 +42878,14 @@ var require_style2 = __commonJS({
|
|
|
42878
42878
|
});
|
|
42879
42879
|
var render = (type) => styles3[type] || styles3.default;
|
|
42880
42880
|
var symbols = Object.freeze({
|
|
42881
|
-
aborted:
|
|
42882
|
-
done:
|
|
42883
|
-
exited:
|
|
42884
|
-
default:
|
|
42881
|
+
aborted: c103.red(figures.cross),
|
|
42882
|
+
done: c103.green(figures.tick),
|
|
42883
|
+
exited: c103.yellow(figures.cross),
|
|
42884
|
+
default: c103.cyan("?")
|
|
42885
42885
|
});
|
|
42886
42886
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
42887
|
-
var delimiter = (completing) =>
|
|
42888
|
-
var item = (expandable, expanded) =>
|
|
42887
|
+
var delimiter = (completing) => c103.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
42888
|
+
var item = (expandable, expanded) => c103.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
42889
42889
|
module2.exports = {
|
|
42890
42890
|
styles: styles3,
|
|
42891
42891
|
render,
|
|
@@ -43118,10 +43118,10 @@ var require_text2 = __commonJS({
|
|
|
43118
43118
|
this.cursor = this.cursor + n;
|
|
43119
43119
|
this.cursorOffset += n;
|
|
43120
43120
|
}
|
|
43121
|
-
_(
|
|
43121
|
+
_(c103, key) {
|
|
43122
43122
|
let s1 = this.value.slice(0, this.cursor);
|
|
43123
43123
|
let s2 = this.value.slice(this.cursor);
|
|
43124
|
-
this.value = `${s1}${
|
|
43124
|
+
this.value = `${s1}${c103}${s2}`;
|
|
43125
43125
|
this.red = false;
|
|
43126
43126
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
43127
43127
|
this.render();
|
|
@@ -43295,8 +43295,8 @@ var require_select2 = __commonJS({
|
|
|
43295
43295
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
43296
43296
|
this.render();
|
|
43297
43297
|
}
|
|
43298
|
-
_(
|
|
43299
|
-
if (
|
|
43298
|
+
_(c103, key) {
|
|
43299
|
+
if (c103 === " ") return this.submit();
|
|
43300
43300
|
}
|
|
43301
43301
|
get selection() {
|
|
43302
43302
|
return this.choices[this.cursor];
|
|
@@ -43420,12 +43420,12 @@ var require_toggle2 = __commonJS({
|
|
|
43420
43420
|
this.fire();
|
|
43421
43421
|
this.render();
|
|
43422
43422
|
}
|
|
43423
|
-
_(
|
|
43424
|
-
if (
|
|
43423
|
+
_(c103, key) {
|
|
43424
|
+
if (c103 === " ") {
|
|
43425
43425
|
this.value = !this.value;
|
|
43426
|
-
} else if (
|
|
43426
|
+
} else if (c103 === "1") {
|
|
43427
43427
|
this.value = true;
|
|
43428
|
-
} else if (
|
|
43428
|
+
} else if (c103 === "0") {
|
|
43429
43429
|
this.value = false;
|
|
43430
43430
|
} else return this.bell();
|
|
43431
43431
|
this.render();
|
|
@@ -43881,9 +43881,9 @@ var require_date2 = __commonJS({
|
|
|
43881
43881
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
43882
43882
|
this.render();
|
|
43883
43883
|
}
|
|
43884
|
-
_(
|
|
43885
|
-
if (/\d/.test(
|
|
43886
|
-
this.typed +=
|
|
43884
|
+
_(c103) {
|
|
43885
|
+
if (/\d/.test(c103)) {
|
|
43886
|
+
this.typed += c103;
|
|
43887
43887
|
this.parts[this.cursor].setTo(this.typed);
|
|
43888
43888
|
this.render();
|
|
43889
43889
|
}
|
|
@@ -43965,8 +43965,8 @@ var require_number2 = __commonJS({
|
|
|
43965
43965
|
parse(x2) {
|
|
43966
43966
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
43967
43967
|
}
|
|
43968
|
-
valid(
|
|
43969
|
-
return
|
|
43968
|
+
valid(c103) {
|
|
43969
|
+
return c103 === `-` || c103 === `.` && this.float || isNumber.test(c103);
|
|
43970
43970
|
}
|
|
43971
43971
|
reset() {
|
|
43972
43972
|
this.typed = ``;
|
|
@@ -44053,14 +44053,14 @@ var require_number2 = __commonJS({
|
|
|
44053
44053
|
this.fire();
|
|
44054
44054
|
this.render();
|
|
44055
44055
|
}
|
|
44056
|
-
_(
|
|
44057
|
-
if (!this.valid(
|
|
44056
|
+
_(c103, key) {
|
|
44057
|
+
if (!this.valid(c103)) return this.bell();
|
|
44058
44058
|
const now = Date.now();
|
|
44059
44059
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
44060
|
-
this.typed +=
|
|
44060
|
+
this.typed += c103;
|
|
44061
44061
|
this.lastHit = now;
|
|
44062
44062
|
this.color = `cyan`;
|
|
44063
|
-
if (
|
|
44063
|
+
if (c103 === `.`) return this.fire();
|
|
44064
44064
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
44065
44065
|
if (this.value > this.max) this.value = this.max;
|
|
44066
44066
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -44222,10 +44222,10 @@ var require_multiselect2 = __commonJS({
|
|
|
44222
44222
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
44223
44223
|
this.render();
|
|
44224
44224
|
}
|
|
44225
|
-
_(
|
|
44226
|
-
if (
|
|
44225
|
+
_(c103, key) {
|
|
44226
|
+
if (c103 === " ") {
|
|
44227
44227
|
this.handleSpaceToggle();
|
|
44228
|
-
} else if (
|
|
44228
|
+
} else if (c103 === "a") {
|
|
44229
44229
|
this.toggleAll();
|
|
44230
44230
|
} else {
|
|
44231
44231
|
return this.bell();
|
|
@@ -44422,10 +44422,10 @@ var require_autocomplete2 = __commonJS({
|
|
|
44422
44422
|
this.out.write("\n");
|
|
44423
44423
|
this.close();
|
|
44424
44424
|
}
|
|
44425
|
-
_(
|
|
44425
|
+
_(c103, key) {
|
|
44426
44426
|
let s1 = this.input.slice(0, this.cursor);
|
|
44427
44427
|
let s2 = this.input.slice(this.cursor);
|
|
44428
|
-
this.input = `${s1}${
|
|
44428
|
+
this.input = `${s1}${c103}${s2}`;
|
|
44429
44429
|
this.cursor = s1.length + 1;
|
|
44430
44430
|
this.complete(this.render);
|
|
44431
44431
|
this.render();
|
|
@@ -44628,15 +44628,15 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
44628
44628
|
this.render();
|
|
44629
44629
|
}
|
|
44630
44630
|
}
|
|
44631
|
-
handleInputChange(
|
|
44632
|
-
this.inputValue = this.inputValue +
|
|
44631
|
+
handleInputChange(c103) {
|
|
44632
|
+
this.inputValue = this.inputValue + c103;
|
|
44633
44633
|
this.updateFilteredOptions();
|
|
44634
44634
|
}
|
|
44635
|
-
_(
|
|
44636
|
-
if (
|
|
44635
|
+
_(c103, key) {
|
|
44636
|
+
if (c103 === " ") {
|
|
44637
44637
|
this.handleSpaceToggle();
|
|
44638
44638
|
} else {
|
|
44639
|
-
this.handleInputChange(
|
|
44639
|
+
this.handleInputChange(c103);
|
|
44640
44640
|
}
|
|
44641
44641
|
}
|
|
44642
44642
|
renderInstructions() {
|
|
@@ -44743,12 +44743,12 @@ var require_confirm2 = __commonJS({
|
|
|
44743
44743
|
this.out.write("\n");
|
|
44744
44744
|
this.close();
|
|
44745
44745
|
}
|
|
44746
|
-
_(
|
|
44747
|
-
if (
|
|
44746
|
+
_(c103, key) {
|
|
44747
|
+
if (c103.toLowerCase() === "y") {
|
|
44748
44748
|
this.value = true;
|
|
44749
44749
|
return this.submit();
|
|
44750
44750
|
}
|
|
44751
|
-
if (
|
|
44751
|
+
if (c103.toLowerCase() === "n") {
|
|
44752
44752
|
this.value = false;
|
|
44753
44753
|
return this.submit();
|
|
44754
44754
|
}
|
|
@@ -45634,9 +45634,9 @@ var require_Alias = __commonJS({
|
|
|
45634
45634
|
} else if (identity.isCollection(node2)) {
|
|
45635
45635
|
let count = 0;
|
|
45636
45636
|
for (const item of node2.items) {
|
|
45637
|
-
const
|
|
45638
|
-
if (
|
|
45639
|
-
count =
|
|
45637
|
+
const c103 = getAliasCount(doc, item, anchors2);
|
|
45638
|
+
if (c103 > count)
|
|
45639
|
+
count = c103;
|
|
45640
45640
|
}
|
|
45641
45641
|
return count;
|
|
45642
45642
|
} else if (identity.isPair(node2)) {
|
|
@@ -53176,8 +53176,8 @@ function _htmlElementAsString(el, keyAttrs) {
|
|
|
53176
53176
|
const className = elem.className;
|
|
53177
53177
|
if (className && isString(className)) {
|
|
53178
53178
|
const classes = className.split(/\s+/);
|
|
53179
|
-
for (const
|
|
53180
|
-
out.push(`.${
|
|
53179
|
+
for (const c103 of classes) {
|
|
53180
|
+
out.push(`.${c103}`);
|
|
53181
53181
|
}
|
|
53182
53182
|
}
|
|
53183
53183
|
}
|
|
@@ -53409,9 +53409,9 @@ function uuid4(crypto = getCrypto()) {
|
|
|
53409
53409
|
}
|
|
53410
53410
|
return emptyUuid.replace(
|
|
53411
53411
|
/[018]/g,
|
|
53412
|
-
(
|
|
53412
|
+
(c103) => (
|
|
53413
53413
|
// eslint-disable-next-line no-bitwise
|
|
53414
|
-
(
|
|
53414
|
+
(c103 ^ (getRandomByte() & 15) >> c103 / 4).toString(16)
|
|
53415
53415
|
)
|
|
53416
53416
|
);
|
|
53417
53417
|
}
|
|
@@ -72468,16 +72468,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
|
|
|
72468
72468
|
*/
|
|
72469
72469
|
_wrapHandler(handler) {
|
|
72470
72470
|
const instrumentation = this;
|
|
72471
|
-
return function(
|
|
72471
|
+
return function(c103, next) {
|
|
72472
72472
|
if (!instrumentation.isEnabled()) {
|
|
72473
|
-
return handler.apply(this, [
|
|
72473
|
+
return handler.apply(this, [c103, next]);
|
|
72474
72474
|
}
|
|
72475
|
-
const path3 =
|
|
72475
|
+
const path3 = c103.req.path;
|
|
72476
72476
|
const span = instrumentation.tracer.startSpan(path3);
|
|
72477
72477
|
return context.with(trace.setSpan(context.active(), span), () => {
|
|
72478
72478
|
return instrumentation._safeExecute(
|
|
72479
72479
|
() => {
|
|
72480
|
-
const result = handler.apply(this, [
|
|
72480
|
+
const result = handler.apply(this, [c103, next]);
|
|
72481
72481
|
if (isThenable(result)) {
|
|
72482
72482
|
return result.then((result2) => {
|
|
72483
72483
|
const type = instrumentation._determineHandlerType(result2);
|
|
@@ -74083,7 +74083,7 @@ if (DSN) {
|
|
|
74083
74083
|
init2({
|
|
74084
74084
|
dsn: DSN,
|
|
74085
74085
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
74086
|
-
release: "9.150.
|
|
74086
|
+
release: "9.150.9",
|
|
74087
74087
|
sendDefaultPii: false,
|
|
74088
74088
|
tracesSampleRate: 0,
|
|
74089
74089
|
shutdownTimeout: 500,
|
|
@@ -74102,7 +74102,7 @@ if (DSN) {
|
|
|
74102
74102
|
}
|
|
74103
74103
|
});
|
|
74104
74104
|
setContext("cli", {
|
|
74105
|
-
version: "9.150.
|
|
74105
|
+
version: "9.150.9",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -77348,7 +77348,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
77348
77348
|
function isValidBase64URL(data) {
|
|
77349
77349
|
if (!base64url.test(data))
|
|
77350
77350
|
return false;
|
|
77351
|
-
const base643 = data.replace(/[-_]/g, (
|
|
77351
|
+
const base643 = data.replace(/[-_]/g, (c103) => c103 === "-" ? "+" : "/");
|
|
77352
77352
|
const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
|
|
77353
77353
|
return isValidBase64(padded);
|
|
77354
77354
|
}
|
|
@@ -87459,9 +87459,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
|
87459
87459
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
87460
87460
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
87461
87461
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
87462
|
-
const
|
|
87463
|
-
inst.minDate =
|
|
87464
|
-
inst.maxDate =
|
|
87462
|
+
const c103 = inst._zod.bag;
|
|
87463
|
+
inst.minDate = c103.minimum ? new Date(c103.minimum) : null;
|
|
87464
|
+
inst.maxDate = c103.maximum ? new Date(c103.maximum) : null;
|
|
87465
87465
|
});
|
|
87466
87466
|
function date3(params) {
|
|
87467
87467
|
return _date(ZodDate, params);
|
|
@@ -107280,6 +107280,45 @@ async function generateWebVideo(options) {
|
|
|
107280
107280
|
}
|
|
107281
107281
|
return await response.json();
|
|
107282
107282
|
}
|
|
107283
|
+
async function generateWebPresentation(options) {
|
|
107284
|
+
const baseUrl = await getBaseUrl();
|
|
107285
|
+
const token = await getActiveToken();
|
|
107286
|
+
if (!token) {
|
|
107287
|
+
throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
|
|
107288
|
+
}
|
|
107289
|
+
const headers = {
|
|
107290
|
+
Authorization: `Bearer ${token}`,
|
|
107291
|
+
"Content-Type": "application/json"
|
|
107292
|
+
};
|
|
107293
|
+
const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
|
|
107294
|
+
if (bypassSecret) {
|
|
107295
|
+
headers["x-vercel-protection-bypass"] = bypassSecret;
|
|
107296
|
+
}
|
|
107297
|
+
const response = await fetch(
|
|
107298
|
+
new URL("/api/zero/presentation-io/generate", baseUrl),
|
|
107299
|
+
{
|
|
107300
|
+
method: "POST",
|
|
107301
|
+
headers,
|
|
107302
|
+
body: JSON.stringify({
|
|
107303
|
+
prompt: options.prompt,
|
|
107304
|
+
...options.style ? { style: options.style } : {},
|
|
107305
|
+
...options.slideCount !== void 0 ? { slideCount: options.slideCount } : {},
|
|
107306
|
+
...options.imageCount !== void 0 ? { imageCount: options.imageCount } : {},
|
|
107307
|
+
...options.theme ? { theme: options.theme } : {},
|
|
107308
|
+
...options.audience ? { audience: options.audience } : {},
|
|
107309
|
+
...options.title ? { title: options.title } : {}
|
|
107310
|
+
})
|
|
107311
|
+
}
|
|
107312
|
+
);
|
|
107313
|
+
if (!response.ok) {
|
|
107314
|
+
const { message, code } = await parseErrorBody(
|
|
107315
|
+
response,
|
|
107316
|
+
"Failed to generate presentation"
|
|
107317
|
+
);
|
|
107318
|
+
throw new ApiRequestError(message, code, response.status);
|
|
107319
|
+
}
|
|
107320
|
+
return await response.json();
|
|
107321
|
+
}
|
|
107283
107322
|
|
|
107284
107323
|
// src/lib/utils/prompt-utils.ts
|
|
107285
107324
|
init_esm_shims();
|
|
@@ -122723,10 +122762,12 @@ var skillFrontmatterSchema = external_exports.object({
|
|
|
122723
122762
|
// ../../packages/api-contracts/src/contracts/zero-connectors-cli-auth-stripe.ts
|
|
122724
122763
|
init_esm_shims();
|
|
122725
122764
|
var c59 = initContract();
|
|
122765
|
+
var cliAuthStripeModeSchema = external_exports.enum(["test", "live"]);
|
|
122726
122766
|
var cliAuthStripeStartResponseSchema = external_exports.object({
|
|
122727
122767
|
sessionToken: external_exports.string(),
|
|
122728
122768
|
type: external_exports.literal("stripe"),
|
|
122729
122769
|
status: external_exports.literal("pending"),
|
|
122770
|
+
mode: cliAuthStripeModeSchema,
|
|
122730
122771
|
browserUrl: external_exports.url(),
|
|
122731
122772
|
verificationCode: external_exports.string().min(1),
|
|
122732
122773
|
expiresIn: external_exports.number().int().positive(),
|
|
@@ -122747,7 +122788,7 @@ var zeroCliAuthStripeContract = c59.router({
|
|
|
122747
122788
|
method: "POST",
|
|
122748
122789
|
path: "/api/zero/connectors/stripe/cli-auth/sessions",
|
|
122749
122790
|
headers: authHeadersSchema,
|
|
122750
|
-
body: external_exports.object({})
|
|
122791
|
+
body: external_exports.object({ mode: cliAuthStripeModeSchema }),
|
|
122751
122792
|
responses: {
|
|
122752
122793
|
200: cliAuthStripeStartResponseSchema,
|
|
122753
122794
|
400: apiErrorSchema,
|
|
@@ -124185,9 +124226,208 @@ var zeroReportErrorContract = c85.router({
|
|
|
124185
124226
|
}
|
|
124186
124227
|
});
|
|
124187
124228
|
|
|
124188
|
-
// ../../packages/api-contracts/src/contracts/zero-
|
|
124229
|
+
// ../../packages/api-contracts/src/contracts/zero-local-browser.ts
|
|
124189
124230
|
init_esm_shims();
|
|
124190
124231
|
var c86 = initContract();
|
|
124232
|
+
var localBrowserHostStatusSchema = external_exports.enum(["online", "offline"]);
|
|
124233
|
+
var hostNameSchema2 = external_exports.string().trim().min(1).max(128);
|
|
124234
|
+
var browserSchema = external_exports.string().trim().min(1).max(64);
|
|
124235
|
+
var extensionVersionSchema = external_exports.string().trim().min(1).max(64);
|
|
124236
|
+
var supportedCapabilitiesSchema = external_exports.array(external_exports.string().trim().min(1).max(128)).max(50);
|
|
124237
|
+
var localBrowserRuntimeBodySchema = external_exports.object({
|
|
124238
|
+
hostName: hostNameSchema2,
|
|
124239
|
+
browser: browserSchema,
|
|
124240
|
+
extensionVersion: extensionVersionSchema,
|
|
124241
|
+
supportedCapabilities: supportedCapabilitiesSchema.default([])
|
|
124242
|
+
});
|
|
124243
|
+
var localBrowserRealtimeSubscriptionSchema = external_exports.object({
|
|
124244
|
+
channelName: external_exports.string(),
|
|
124245
|
+
eventName: external_exports.string(),
|
|
124246
|
+
tokenRequest: ablyTokenRequestSchema
|
|
124247
|
+
});
|
|
124248
|
+
var localBrowserDeviceStartResponseSchema = external_exports.object({
|
|
124249
|
+
deviceCode: external_exports.string(),
|
|
124250
|
+
userCode: external_exports.string(),
|
|
124251
|
+
verificationPath: external_exports.string(),
|
|
124252
|
+
expiresIn: external_exports.number().int().positive(),
|
|
124253
|
+
interval: external_exports.number().int().positive(),
|
|
124254
|
+
pollToken: external_exports.string(),
|
|
124255
|
+
realtime: localBrowserRealtimeSubscriptionSchema.optional()
|
|
124256
|
+
});
|
|
124257
|
+
var localBrowserDevicePollResponseSchema = external_exports.discriminatedUnion(
|
|
124258
|
+
"status",
|
|
124259
|
+
[
|
|
124260
|
+
external_exports.object({ status: external_exports.literal("pending") }),
|
|
124261
|
+
external_exports.object({
|
|
124262
|
+
status: external_exports.literal("linked"),
|
|
124263
|
+
hostId: external_exports.string(),
|
|
124264
|
+
hostToken: external_exports.string().optional()
|
|
124265
|
+
}),
|
|
124266
|
+
external_exports.object({ status: external_exports.literal("expired") })
|
|
124267
|
+
]
|
|
124268
|
+
);
|
|
124269
|
+
var localBrowserDeviceClaimResponseSchema = external_exports.object({
|
|
124270
|
+
status: external_exports.literal("approved")
|
|
124271
|
+
});
|
|
124272
|
+
var localBrowserHeartbeatResponseSchema = external_exports.object({
|
|
124273
|
+
ok: external_exports.literal(true),
|
|
124274
|
+
hostId: external_exports.string()
|
|
124275
|
+
});
|
|
124276
|
+
var localBrowserHostSchema = external_exports.object({
|
|
124277
|
+
id: external_exports.string(),
|
|
124278
|
+
displayName: external_exports.string(),
|
|
124279
|
+
browser: external_exports.string(),
|
|
124280
|
+
extensionVersion: external_exports.string(),
|
|
124281
|
+
supportedCapabilities: external_exports.array(external_exports.string()),
|
|
124282
|
+
status: localBrowserHostStatusSchema,
|
|
124283
|
+
lastSeenAt: external_exports.string(),
|
|
124284
|
+
createdAt: external_exports.string()
|
|
124285
|
+
});
|
|
124286
|
+
var localBrowserHostListResponseSchema = external_exports.object({
|
|
124287
|
+
hosts: external_exports.array(localBrowserHostSchema)
|
|
124288
|
+
});
|
|
124289
|
+
var localBrowserHostStartResponseSchema = external_exports.object({
|
|
124290
|
+
hostId: external_exports.string(),
|
|
124291
|
+
hostToken: external_exports.string()
|
|
124292
|
+
});
|
|
124293
|
+
var localBrowserHostDeleteResponseSchema = external_exports.object({
|
|
124294
|
+
ok: external_exports.literal(true)
|
|
124295
|
+
});
|
|
124296
|
+
var zeroLocalBrowserDeviceStartContract = c86.router({
|
|
124297
|
+
start: {
|
|
124298
|
+
method: "POST",
|
|
124299
|
+
path: "/api/zero/local-browser/device/start",
|
|
124300
|
+
body: localBrowserRuntimeBodySchema,
|
|
124301
|
+
responses: {
|
|
124302
|
+
200: localBrowserDeviceStartResponseSchema,
|
|
124303
|
+
400: apiErrorSchema
|
|
124304
|
+
},
|
|
124305
|
+
summary: "Start a local-browser device pairing flow"
|
|
124306
|
+
}
|
|
124307
|
+
});
|
|
124308
|
+
var zeroLocalBrowserDevicePollContract = c86.router({
|
|
124309
|
+
poll: {
|
|
124310
|
+
method: "POST",
|
|
124311
|
+
path: "/api/zero/local-browser/device/poll",
|
|
124312
|
+
body: external_exports.object({
|
|
124313
|
+
deviceCode: external_exports.string().min(1),
|
|
124314
|
+
pollToken: external_exports.string().min(1)
|
|
124315
|
+
}),
|
|
124316
|
+
responses: {
|
|
124317
|
+
200: localBrowserDevicePollResponseSchema,
|
|
124318
|
+
400: apiErrorSchema
|
|
124319
|
+
},
|
|
124320
|
+
summary: "Poll a local-browser device pairing flow"
|
|
124321
|
+
}
|
|
124322
|
+
});
|
|
124323
|
+
var zeroLocalBrowserDeviceClaimContract = c86.router({
|
|
124324
|
+
claim: {
|
|
124325
|
+
method: "POST",
|
|
124326
|
+
path: "/api/zero/local-browser/device/claim",
|
|
124327
|
+
headers: authHeadersSchema,
|
|
124328
|
+
body: external_exports.object({
|
|
124329
|
+
deviceCode: external_exports.string().min(1)
|
|
124330
|
+
}),
|
|
124331
|
+
responses: {
|
|
124332
|
+
200: localBrowserDeviceClaimResponseSchema,
|
|
124333
|
+
400: apiErrorSchema,
|
|
124334
|
+
401: apiErrorSchema,
|
|
124335
|
+
403: apiErrorSchema,
|
|
124336
|
+
404: apiErrorSchema,
|
|
124337
|
+
409: apiErrorSchema
|
|
124338
|
+
},
|
|
124339
|
+
summary: "Approve a local-browser device pairing flow"
|
|
124340
|
+
}
|
|
124341
|
+
});
|
|
124342
|
+
var zeroLocalBrowserHeartbeatContract = c86.router({
|
|
124343
|
+
heartbeat: {
|
|
124344
|
+
method: "POST",
|
|
124345
|
+
path: "/api/zero/local-browser/heartbeat",
|
|
124346
|
+
headers: authHeadersSchema,
|
|
124347
|
+
body: localBrowserRuntimeBodySchema,
|
|
124348
|
+
responses: {
|
|
124349
|
+
200: localBrowserHeartbeatResponseSchema,
|
|
124350
|
+
400: apiErrorSchema,
|
|
124351
|
+
401: apiErrorSchema
|
|
124352
|
+
},
|
|
124353
|
+
summary: "Refresh a linked local-browser host heartbeat"
|
|
124354
|
+
}
|
|
124355
|
+
});
|
|
124356
|
+
var zeroLocalBrowserHostRealtimeContract = c86.router({
|
|
124357
|
+
create: {
|
|
124358
|
+
method: "POST",
|
|
124359
|
+
path: "/api/zero/local-browser/host/realtime-token",
|
|
124360
|
+
headers: authHeadersSchema,
|
|
124361
|
+
body: external_exports.object({}),
|
|
124362
|
+
responses: {
|
|
124363
|
+
200: localBrowserRealtimeSubscriptionSchema,
|
|
124364
|
+
401: apiErrorSchema
|
|
124365
|
+
},
|
|
124366
|
+
summary: "Get Ably token for local-browser command wakeups"
|
|
124367
|
+
}
|
|
124368
|
+
});
|
|
124369
|
+
var zeroLocalBrowserHostsContract = c86.router({
|
|
124370
|
+
start: {
|
|
124371
|
+
method: "POST",
|
|
124372
|
+
path: "/api/zero/local-browser/hosts/start",
|
|
124373
|
+
headers: authHeadersSchema,
|
|
124374
|
+
body: localBrowserRuntimeBodySchema.extend({
|
|
124375
|
+
hostId: external_exports.string().min(1).optional()
|
|
124376
|
+
}),
|
|
124377
|
+
responses: {
|
|
124378
|
+
200: localBrowserHostStartResponseSchema,
|
|
124379
|
+
400: apiErrorSchema,
|
|
124380
|
+
401: apiErrorSchema,
|
|
124381
|
+
403: apiErrorSchema,
|
|
124382
|
+
404: apiErrorSchema
|
|
124383
|
+
},
|
|
124384
|
+
summary: "Start or reactivate a local-browser host"
|
|
124385
|
+
},
|
|
124386
|
+
list: {
|
|
124387
|
+
method: "GET",
|
|
124388
|
+
path: "/api/zero/local-browser/hosts",
|
|
124389
|
+
headers: authHeadersSchema,
|
|
124390
|
+
responses: {
|
|
124391
|
+
200: localBrowserHostListResponseSchema,
|
|
124392
|
+
401: apiErrorSchema,
|
|
124393
|
+
403: apiErrorSchema
|
|
124394
|
+
},
|
|
124395
|
+
summary: "List linked local-browser hosts"
|
|
124396
|
+
},
|
|
124397
|
+
delete: {
|
|
124398
|
+
method: "DELETE",
|
|
124399
|
+
path: "/api/zero/local-browser/hosts/:hostId",
|
|
124400
|
+
pathParams: external_exports.object({
|
|
124401
|
+
hostId: external_exports.string().min(1)
|
|
124402
|
+
}),
|
|
124403
|
+
headers: authHeadersSchema,
|
|
124404
|
+
body: c86.noBody(),
|
|
124405
|
+
responses: {
|
|
124406
|
+
200: localBrowserHostDeleteResponseSchema,
|
|
124407
|
+
401: apiErrorSchema,
|
|
124408
|
+
403: apiErrorSchema,
|
|
124409
|
+
404: apiErrorSchema
|
|
124410
|
+
},
|
|
124411
|
+
summary: "Delete a local-browser host"
|
|
124412
|
+
}
|
|
124413
|
+
});
|
|
124414
|
+
var zeroLocalBrowserHostSelfContract = c86.router({
|
|
124415
|
+
delete: {
|
|
124416
|
+
method: "DELETE",
|
|
124417
|
+
path: "/api/zero/local-browser/host",
|
|
124418
|
+
headers: authHeadersSchema,
|
|
124419
|
+
body: c86.noBody(),
|
|
124420
|
+
responses: {
|
|
124421
|
+
200: localBrowserHostDeleteResponseSchema,
|
|
124422
|
+
401: apiErrorSchema
|
|
124423
|
+
},
|
|
124424
|
+
summary: "Revoke the current local-browser host token"
|
|
124425
|
+
}
|
|
124426
|
+
});
|
|
124427
|
+
|
|
124428
|
+
// ../../packages/api-contracts/src/contracts/zero-insights.ts
|
|
124429
|
+
init_esm_shims();
|
|
124430
|
+
var c87 = initContract();
|
|
124191
124431
|
var insightAgentSchema = external_exports.object({
|
|
124192
124432
|
agentName: external_exports.string(),
|
|
124193
124433
|
agentId: external_exports.string().nullable(),
|
|
@@ -124252,7 +124492,7 @@ var insightsRangeResponseSchema = external_exports.object({
|
|
|
124252
124492
|
maxDate: external_exports.string().nullable(),
|
|
124253
124493
|
totalDays: external_exports.number()
|
|
124254
124494
|
});
|
|
124255
|
-
var zeroInsightsContract =
|
|
124495
|
+
var zeroInsightsContract = c87.router({
|
|
124256
124496
|
get: {
|
|
124257
124497
|
method: "GET",
|
|
124258
124498
|
path: "/api/zero/insights",
|
|
@@ -124267,7 +124507,7 @@ var zeroInsightsContract = c86.router({
|
|
|
124267
124507
|
summary: "Get daily insights for the authenticated org"
|
|
124268
124508
|
}
|
|
124269
124509
|
});
|
|
124270
|
-
var zeroInsightsRangeContract =
|
|
124510
|
+
var zeroInsightsRangeContract = c87.router({
|
|
124271
124511
|
get: {
|
|
124272
124512
|
method: "GET",
|
|
124273
124513
|
path: "/api/zero/insights/range",
|
|
@@ -124282,8 +124522,8 @@ var zeroInsightsRangeContract = c86.router({
|
|
|
124282
124522
|
|
|
124283
124523
|
// ../../packages/api-contracts/src/contracts/push-subscriptions.ts
|
|
124284
124524
|
init_esm_shims();
|
|
124285
|
-
var
|
|
124286
|
-
var pushSubscriptionsContract =
|
|
124525
|
+
var c88 = initContract();
|
|
124526
|
+
var pushSubscriptionsContract = c88.router({
|
|
124287
124527
|
register: {
|
|
124288
124528
|
method: "POST",
|
|
124289
124529
|
path: "/api/zero/push-subscriptions",
|
|
@@ -124307,7 +124547,7 @@ var pushSubscriptionsContract = c87.router({
|
|
|
124307
124547
|
|
|
124308
124548
|
// ../../packages/api-contracts/src/contracts/zero-image-io-generate.ts
|
|
124309
124549
|
init_esm_shims();
|
|
124310
|
-
var
|
|
124550
|
+
var c89 = initContract();
|
|
124311
124551
|
var zeroImageIoGenerateRequestSchema = external_exports.object({
|
|
124312
124552
|
prompt: external_exports.unknown().optional(),
|
|
124313
124553
|
size: external_exports.unknown().optional(),
|
|
@@ -124340,7 +124580,7 @@ var zeroImageIoGenerateResponseSchema = external_exports.object({
|
|
|
124340
124580
|
revisedPrompt: external_exports.string().optional(),
|
|
124341
124581
|
usage: zeroImageIoUsageSchema
|
|
124342
124582
|
});
|
|
124343
|
-
var zeroImageIoGenerateContract =
|
|
124583
|
+
var zeroImageIoGenerateContract = c89.router({
|
|
124344
124584
|
post: {
|
|
124345
124585
|
method: "POST",
|
|
124346
124586
|
path: "/api/zero/image-io/generate",
|
|
@@ -124362,7 +124602,7 @@ var zeroImageIoGenerateContract = c88.router({
|
|
|
124362
124602
|
|
|
124363
124603
|
// ../../packages/api-contracts/src/contracts/zero-video-io-generate.ts
|
|
124364
124604
|
init_esm_shims();
|
|
124365
|
-
var
|
|
124605
|
+
var c90 = initContract();
|
|
124366
124606
|
var zeroVideoIoGenerateRequestSchema = external_exports.object({
|
|
124367
124607
|
prompt: external_exports.unknown().optional(),
|
|
124368
124608
|
model: external_exports.unknown().optional(),
|
|
@@ -124391,7 +124631,7 @@ var zeroVideoIoGenerateResponseSchema = external_exports.object({
|
|
|
124391
124631
|
sourceUrl: external_exports.string(),
|
|
124392
124632
|
requestId: external_exports.string().optional()
|
|
124393
124633
|
});
|
|
124394
|
-
var zeroVideoIoGenerateContract =
|
|
124634
|
+
var zeroVideoIoGenerateContract = c90.router({
|
|
124395
124635
|
post: {
|
|
124396
124636
|
method: "POST",
|
|
124397
124637
|
path: "/api/zero/video-io/generate",
|
|
@@ -124412,10 +124652,66 @@ var zeroVideoIoGenerateContract = c89.router({
|
|
|
124412
124652
|
}
|
|
124413
124653
|
});
|
|
124414
124654
|
|
|
124655
|
+
// ../../packages/api-contracts/src/contracts/zero-presentation-io-generate.ts
|
|
124656
|
+
init_esm_shims();
|
|
124657
|
+
var c91 = initContract();
|
|
124658
|
+
var zeroPresentationIoGenerateRequestSchema = external_exports.object({
|
|
124659
|
+
prompt: external_exports.unknown().optional(),
|
|
124660
|
+
style: external_exports.unknown().optional(),
|
|
124661
|
+
slideCount: external_exports.unknown().optional(),
|
|
124662
|
+
imageCount: external_exports.unknown().optional(),
|
|
124663
|
+
theme: external_exports.unknown().optional(),
|
|
124664
|
+
audience: external_exports.unknown().optional(),
|
|
124665
|
+
title: external_exports.unknown().optional()
|
|
124666
|
+
}).passthrough();
|
|
124667
|
+
var zeroPresentationIoUsageSchema = external_exports.object({
|
|
124668
|
+
inputTokens: external_exports.number(),
|
|
124669
|
+
outputTokens: external_exports.number(),
|
|
124670
|
+
totalTokens: external_exports.number()
|
|
124671
|
+
});
|
|
124672
|
+
var zeroPresentationIoGenerateResponseSchema = external_exports.object({
|
|
124673
|
+
id: external_exports.string(),
|
|
124674
|
+
filename: external_exports.string(),
|
|
124675
|
+
contentType: external_exports.string(),
|
|
124676
|
+
size: external_exports.number(),
|
|
124677
|
+
url: external_exports.string(),
|
|
124678
|
+
creditsCharged: external_exports.number(),
|
|
124679
|
+
model: external_exports.string(),
|
|
124680
|
+
style: external_exports.string(),
|
|
124681
|
+
theme: external_exports.string(),
|
|
124682
|
+
slideCount: external_exports.number(),
|
|
124683
|
+
imageCount: external_exports.number(),
|
|
124684
|
+
imageUrls: external_exports.array(external_exports.string()),
|
|
124685
|
+
imageCreditsCharged: external_exports.number(),
|
|
124686
|
+
textCreditsCharged: external_exports.number(),
|
|
124687
|
+
title: external_exports.string(),
|
|
124688
|
+
responseId: external_exports.string().optional(),
|
|
124689
|
+
usage: zeroPresentationIoUsageSchema
|
|
124690
|
+
});
|
|
124691
|
+
var zeroPresentationIoGenerateContract = c91.router({
|
|
124692
|
+
post: {
|
|
124693
|
+
method: "POST",
|
|
124694
|
+
path: "/api/zero/presentation-io/generate",
|
|
124695
|
+
headers: authHeadersSchema,
|
|
124696
|
+
body: zeroPresentationIoGenerateRequestSchema,
|
|
124697
|
+
responses: {
|
|
124698
|
+
200: zeroPresentationIoGenerateResponseSchema,
|
|
124699
|
+
400: apiErrorSchema,
|
|
124700
|
+
401: apiErrorSchema,
|
|
124701
|
+
402: apiErrorSchema,
|
|
124702
|
+
403: apiErrorSchema,
|
|
124703
|
+
500: apiErrorSchema,
|
|
124704
|
+
502: apiErrorSchema,
|
|
124705
|
+
503: apiErrorSchema
|
|
124706
|
+
},
|
|
124707
|
+
summary: "Generate and persist an HTML presentation file"
|
|
124708
|
+
}
|
|
124709
|
+
});
|
|
124710
|
+
|
|
124415
124711
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-agent.ts
|
|
124416
124712
|
init_esm_shims();
|
|
124417
|
-
var
|
|
124418
|
-
var internalCallbacksAgentContract =
|
|
124713
|
+
var c92 = initContract();
|
|
124714
|
+
var internalCallbacksAgentContract = c92.router({
|
|
124419
124715
|
post: {
|
|
124420
124716
|
method: "POST",
|
|
124421
124717
|
path: "/api/internal/callbacks/agent",
|
|
@@ -124433,7 +124729,7 @@ var internalCallbacksAgentContract = c90.router({
|
|
|
124433
124729
|
|
|
124434
124730
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-github-issues.ts
|
|
124435
124731
|
init_esm_shims();
|
|
124436
|
-
var
|
|
124732
|
+
var c93 = initContract();
|
|
124437
124733
|
var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
124438
124734
|
installationId: external_exports.string(),
|
|
124439
124735
|
repo: external_exports.string(),
|
|
@@ -124444,7 +124740,7 @@ var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
|
124444
124740
|
triggerReactionId: external_exports.string().optional(),
|
|
124445
124741
|
triggerCommentBody: external_exports.string().optional()
|
|
124446
124742
|
}).passthrough();
|
|
124447
|
-
var internalCallbacksGithubIssuesContract =
|
|
124743
|
+
var internalCallbacksGithubIssuesContract = c93.router({
|
|
124448
124744
|
post: {
|
|
124449
124745
|
method: "POST",
|
|
124450
124746
|
path: "/api/internal/callbacks/github/issues",
|
|
@@ -124465,7 +124761,7 @@ var internalCallbacksGithubIssuesContract = c91.router({
|
|
|
124465
124761
|
|
|
124466
124762
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-schedule.ts
|
|
124467
124763
|
init_esm_shims();
|
|
124468
|
-
var
|
|
124764
|
+
var c94 = initContract();
|
|
124469
124765
|
var scheduleLoopCallbackPayloadSchema = external_exports.object({
|
|
124470
124766
|
scheduleId: external_exports.string()
|
|
124471
124767
|
}).passthrough();
|
|
@@ -124473,7 +124769,7 @@ var scheduleCronCallbackPayloadSchema = scheduleLoopCallbackPayloadSchema.extend
|
|
|
124473
124769
|
timezone: external_exports.string(),
|
|
124474
124770
|
cronExpression: external_exports.string().optional()
|
|
124475
124771
|
}).passthrough();
|
|
124476
|
-
var internalCallbacksScheduleContract =
|
|
124772
|
+
var internalCallbacksScheduleContract = c94.router({
|
|
124477
124773
|
cron: {
|
|
124478
124774
|
method: "POST",
|
|
124479
124775
|
path: "/api/internal/callbacks/schedule/cron",
|
|
@@ -124508,13 +124804,13 @@ var internalCallbacksScheduleContract = c92.router({
|
|
|
124508
124804
|
|
|
124509
124805
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
|
|
124510
124806
|
init_esm_shims();
|
|
124511
|
-
var
|
|
124807
|
+
var c95 = initContract();
|
|
124512
124808
|
var audioInputQuotaResponseSchema = external_exports.object({
|
|
124513
124809
|
allowed: external_exports.boolean(),
|
|
124514
124810
|
count: external_exports.number().int().nonnegative(),
|
|
124515
124811
|
limit: external_exports.number().int().positive().nullable()
|
|
124516
124812
|
});
|
|
124517
|
-
var zeroVoiceIoQuotaContract =
|
|
124813
|
+
var zeroVoiceIoQuotaContract = c95.router({
|
|
124518
124814
|
get: {
|
|
124519
124815
|
method: "GET",
|
|
124520
124816
|
path: "/api/zero/voice-io/quota",
|
|
@@ -124530,7 +124826,7 @@ var zeroVoiceIoQuotaContract = c93.router({
|
|
|
124530
124826
|
|
|
124531
124827
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-speech.ts
|
|
124532
124828
|
init_esm_shims();
|
|
124533
|
-
var
|
|
124829
|
+
var c96 = initContract();
|
|
124534
124830
|
var zeroVoiceIoSpeechRequestSchema = external_exports.object({
|
|
124535
124831
|
text: external_exports.unknown().optional(),
|
|
124536
124832
|
voice: external_exports.unknown().optional(),
|
|
@@ -124547,7 +124843,7 @@ var zeroVoiceIoSpeechResponseSchema = external_exports.object({
|
|
|
124547
124843
|
model: external_exports.string(),
|
|
124548
124844
|
voice: external_exports.string()
|
|
124549
124845
|
});
|
|
124550
|
-
var zeroVoiceIoSpeechContract =
|
|
124846
|
+
var zeroVoiceIoSpeechContract = c96.router({
|
|
124551
124847
|
post: {
|
|
124552
124848
|
method: "POST",
|
|
124553
124849
|
path: "/api/zero/voice-io/speech",
|
|
@@ -124569,7 +124865,7 @@ var zeroVoiceIoSpeechContract = c94.router({
|
|
|
124569
124865
|
|
|
124570
124866
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-stt.ts
|
|
124571
124867
|
init_esm_shims();
|
|
124572
|
-
var
|
|
124868
|
+
var c97 = initContract();
|
|
124573
124869
|
var zeroVoiceIoSttResponseSchema = external_exports.object({
|
|
124574
124870
|
text: external_exports.string()
|
|
124575
124871
|
});
|
|
@@ -124579,13 +124875,13 @@ var zeroVoiceIoSttQuotaErrorSchema = apiErrorSchema.extend({
|
|
|
124579
124875
|
limit: external_exports.number().nullable()
|
|
124580
124876
|
}).optional()
|
|
124581
124877
|
});
|
|
124582
|
-
var zeroVoiceIoSttContract =
|
|
124878
|
+
var zeroVoiceIoSttContract = c97.router({
|
|
124583
124879
|
post: {
|
|
124584
124880
|
method: "POST",
|
|
124585
124881
|
path: "/api/zero/voice-io/stt",
|
|
124586
124882
|
headers: authHeadersSchema,
|
|
124587
124883
|
contentType: "multipart/form-data",
|
|
124588
|
-
body:
|
|
124884
|
+
body: c97.type(),
|
|
124589
124885
|
responses: {
|
|
124590
124886
|
200: zeroVoiceIoSttResponseSchema,
|
|
124591
124887
|
400: apiErrorSchema,
|
|
@@ -124601,18 +124897,18 @@ var zeroVoiceIoSttContract = c95.router({
|
|
|
124601
124897
|
|
|
124602
124898
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-tts.ts
|
|
124603
124899
|
init_esm_shims();
|
|
124604
|
-
var
|
|
124900
|
+
var c98 = initContract();
|
|
124605
124901
|
var zeroVoiceIoTtsRequestSchema = external_exports.object({
|
|
124606
124902
|
text: external_exports.unknown().optional()
|
|
124607
124903
|
}).passthrough();
|
|
124608
|
-
var zeroVoiceIoTtsContract =
|
|
124904
|
+
var zeroVoiceIoTtsContract = c98.router({
|
|
124609
124905
|
post: {
|
|
124610
124906
|
method: "POST",
|
|
124611
124907
|
path: "/api/zero/voice-io/tts",
|
|
124612
124908
|
headers: authHeadersSchema,
|
|
124613
124909
|
body: zeroVoiceIoTtsRequestSchema,
|
|
124614
124910
|
responses: {
|
|
124615
|
-
200:
|
|
124911
|
+
200: c98.otherResponse({
|
|
124616
124912
|
contentType: "application/octet-stream",
|
|
124617
124913
|
body: external_exports.unknown()
|
|
124618
124914
|
}),
|
|
@@ -124627,7 +124923,7 @@ var zeroVoiceIoTtsContract = c96.router({
|
|
|
124627
124923
|
|
|
124628
124924
|
// ../../packages/api-contracts/src/contracts/zero-voice-chat.ts
|
|
124629
124925
|
init_esm_shims();
|
|
124630
|
-
var
|
|
124926
|
+
var c99 = initContract();
|
|
124631
124927
|
var voiceChatItemRoleSchema = external_exports.enum([
|
|
124632
124928
|
"user",
|
|
124633
124929
|
"assistant",
|
|
@@ -124724,7 +125020,7 @@ var sessionEndedBodySchema = external_exports.object({
|
|
|
124724
125020
|
relaySessionId: external_exports.uuid()
|
|
124725
125021
|
});
|
|
124726
125022
|
var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
|
|
124727
|
-
var zeroVoiceChatContract =
|
|
125023
|
+
var zeroVoiceChatContract = c99.router({
|
|
124728
125024
|
createSession: {
|
|
124729
125025
|
method: "POST",
|
|
124730
125026
|
path: "/api/zero/voice-chat",
|
|
@@ -124899,7 +125195,7 @@ var zeroVoiceChatContract = c97.router({
|
|
|
124899
125195
|
|
|
124900
125196
|
// ../../packages/api-contracts/src/contracts/zero-uploads.ts
|
|
124901
125197
|
init_esm_shims();
|
|
124902
|
-
var
|
|
125198
|
+
var c100 = initContract();
|
|
124903
125199
|
var prepareRequestSchema = external_exports.object({
|
|
124904
125200
|
filename: external_exports.string().min(1).max(255),
|
|
124905
125201
|
contentType: external_exports.string().min(1).max(200),
|
|
@@ -124926,7 +125222,7 @@ var completeResponseSchema = external_exports.object({
|
|
|
124926
125222
|
size: external_exports.number(),
|
|
124927
125223
|
url: external_exports.string().url()
|
|
124928
125224
|
});
|
|
124929
|
-
var zeroUploadsContract =
|
|
125225
|
+
var zeroUploadsContract = c100.router({
|
|
124930
125226
|
prepare: {
|
|
124931
125227
|
method: "POST",
|
|
124932
125228
|
path: "/api/zero/uploads/prepare",
|
|
@@ -124960,7 +125256,7 @@ var zeroUploadsContract = c98.router({
|
|
|
124960
125256
|
|
|
124961
125257
|
// ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
|
|
124962
125258
|
init_esm_shims();
|
|
124963
|
-
var
|
|
125259
|
+
var c101 = initContract();
|
|
124964
125260
|
var telegramEnvironmentSchema = external_exports.object({
|
|
124965
125261
|
requiredSecrets: external_exports.array(external_exports.string()),
|
|
124966
125262
|
requiredVars: external_exports.array(external_exports.string()),
|
|
@@ -125059,7 +125355,7 @@ var telegramSetupStatusSchema = external_exports.object({
|
|
|
125059
125355
|
var telegramWebhookPathParamsSchema = external_exports.object({
|
|
125060
125356
|
telegramBotId: external_exports.string().min(1)
|
|
125061
125357
|
});
|
|
125062
|
-
var zeroIntegrationsTelegramContract =
|
|
125358
|
+
var zeroIntegrationsTelegramContract = c101.router({
|
|
125063
125359
|
list: {
|
|
125064
125360
|
method: "GET",
|
|
125065
125361
|
path: "/api/integrations/telegram",
|
|
@@ -125102,9 +125398,9 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125102
125398
|
path: "/api/integrations/telegram/:botId",
|
|
125103
125399
|
headers: authHeadersSchema,
|
|
125104
125400
|
pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
|
|
125105
|
-
body:
|
|
125401
|
+
body: c101.noBody(),
|
|
125106
125402
|
responses: {
|
|
125107
|
-
204:
|
|
125403
|
+
204: c101.noBody(),
|
|
125108
125404
|
401: apiErrorSchema,
|
|
125109
125405
|
403: apiErrorSchema,
|
|
125110
125406
|
404: apiErrorSchema
|
|
@@ -125115,10 +125411,10 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125115
125411
|
method: "DELETE",
|
|
125116
125412
|
path: "/api/integrations/telegram/link",
|
|
125117
125413
|
headers: authHeadersSchema,
|
|
125118
|
-
body:
|
|
125414
|
+
body: c101.noBody(),
|
|
125119
125415
|
query: external_exports.object({ botId: external_exports.string().optional() }),
|
|
125120
125416
|
responses: {
|
|
125121
|
-
204:
|
|
125417
|
+
204: c101.noBody(),
|
|
125122
125418
|
401: apiErrorSchema,
|
|
125123
125419
|
404: apiErrorSchema
|
|
125124
125420
|
},
|
|
@@ -125149,7 +125445,7 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125149
125445
|
sig: external_exports.string().optional()
|
|
125150
125446
|
}),
|
|
125151
125447
|
responses: {
|
|
125152
|
-
200:
|
|
125448
|
+
200: c101.otherResponse({
|
|
125153
125449
|
contentType: "application/octet-stream",
|
|
125154
125450
|
body: external_exports.unknown()
|
|
125155
125451
|
}),
|
|
@@ -125164,7 +125460,7 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125164
125460
|
method: "GET",
|
|
125165
125461
|
path: "/api/integrations/telegram/auth-callback",
|
|
125166
125462
|
responses: {
|
|
125167
|
-
200:
|
|
125463
|
+
200: c101.otherResponse({
|
|
125168
125464
|
contentType: "text/html",
|
|
125169
125465
|
body: external_exports.unknown()
|
|
125170
125466
|
})
|
|
@@ -125223,19 +125519,19 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125223
125519
|
pathParams: telegramWebhookPathParamsSchema,
|
|
125224
125520
|
body: external_exports.unknown(),
|
|
125225
125521
|
responses: {
|
|
125226
|
-
200:
|
|
125522
|
+
200: c101.otherResponse({
|
|
125227
125523
|
contentType: "text/plain",
|
|
125228
125524
|
body: external_exports.string()
|
|
125229
125525
|
}),
|
|
125230
|
-
400:
|
|
125526
|
+
400: c101.otherResponse({
|
|
125231
125527
|
contentType: "text/plain",
|
|
125232
125528
|
body: external_exports.string()
|
|
125233
125529
|
}),
|
|
125234
|
-
401:
|
|
125530
|
+
401: c101.otherResponse({
|
|
125235
125531
|
contentType: "text/plain",
|
|
125236
125532
|
body: external_exports.string()
|
|
125237
125533
|
}),
|
|
125238
|
-
404:
|
|
125534
|
+
404: c101.otherResponse({
|
|
125239
125535
|
contentType: "text/plain",
|
|
125240
125536
|
body: external_exports.string()
|
|
125241
125537
|
})
|
|
@@ -125246,7 +125542,7 @@ var zeroIntegrationsTelegramContract = c99.router({
|
|
|
125246
125542
|
|
|
125247
125543
|
// ../../packages/api-contracts/src/contracts/zero-integrations-agentphone.ts
|
|
125248
125544
|
init_esm_shims();
|
|
125249
|
-
var
|
|
125545
|
+
var c102 = initContract();
|
|
125250
125546
|
var agentPhoneConnectBodySchema = external_exports.object({
|
|
125251
125547
|
phoneHandle: external_exports.string().min(1),
|
|
125252
125548
|
agentphoneAgentId: external_exports.string().min(1),
|
|
@@ -125283,7 +125579,7 @@ var agentPhoneStartLinkResponseSchema = external_exports.object({
|
|
|
125283
125579
|
phoneHandle: external_exports.string(),
|
|
125284
125580
|
verificationSent: external_exports.literal(true)
|
|
125285
125581
|
});
|
|
125286
|
-
var zeroIntegrationsAgentPhoneContract =
|
|
125582
|
+
var zeroIntegrationsAgentPhoneContract = c102.router({
|
|
125287
125583
|
connectAgentPhone: {
|
|
125288
125584
|
method: "POST",
|
|
125289
125585
|
path: "/api/agentphone/connect",
|
|
@@ -125301,7 +125597,7 @@ var zeroIntegrationsAgentPhoneContract = c100.router({
|
|
|
125301
125597
|
method: "POST",
|
|
125302
125598
|
path: "/api/agentphone/webhook",
|
|
125303
125599
|
headers: agentPhoneWebhookHeadersSchema,
|
|
125304
|
-
body:
|
|
125600
|
+
body: c102.type(),
|
|
125305
125601
|
responses: {
|
|
125306
125602
|
200: external_exports.string(),
|
|
125307
125603
|
400: external_exports.string(),
|
|
@@ -125341,9 +125637,9 @@ var zeroIntegrationsAgentPhoneContract = c100.router({
|
|
|
125341
125637
|
method: "DELETE",
|
|
125342
125638
|
path: "/api/integrations/agentphone/link",
|
|
125343
125639
|
headers: authHeadersSchema,
|
|
125344
|
-
body:
|
|
125640
|
+
body: c102.noBody(),
|
|
125345
125641
|
responses: {
|
|
125346
|
-
204:
|
|
125642
|
+
204: c102.noBody(),
|
|
125347
125643
|
401: apiErrorSchema,
|
|
125348
125644
|
403: apiErrorSchema,
|
|
125349
125645
|
404: apiErrorSchema
|
|
@@ -126095,9 +126391,9 @@ var CodexEventParser = class {
|
|
|
126095
126391
|
if (!item.changes || item.changes.length === 0) {
|
|
126096
126392
|
return null;
|
|
126097
126393
|
}
|
|
126098
|
-
const changes = item.changes.map((
|
|
126099
|
-
const action =
|
|
126100
|
-
return `${action}: ${
|
|
126394
|
+
const changes = item.changes.map((c103) => {
|
|
126395
|
+
const action = c103.kind === "add" ? "Created" : c103.kind === "modify" ? "Modified" : "Deleted";
|
|
126396
|
+
return `${action}: ${c103.path}`;
|
|
126101
126397
|
}).join("\n");
|
|
126102
126398
|
return {
|
|
126103
126399
|
type: "text",
|
|
@@ -127225,6 +127521,7 @@ export {
|
|
|
127225
127521
|
generateWebVoice,
|
|
127226
127522
|
generateWebImage,
|
|
127227
127523
|
generateWebVideo,
|
|
127524
|
+
generateWebPresentation,
|
|
127228
127525
|
getInstructionsStorageName,
|
|
127229
127526
|
parseGitHubUrl,
|
|
127230
127527
|
getInstructionsFilename,
|
|
@@ -127273,4 +127570,4 @@ undici/lib/web/fetch/body.js:
|
|
|
127273
127570
|
undici/lib/web/websocket/frame.js:
|
|
127274
127571
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
127275
127572
|
*/
|
|
127276
|
-
//# sourceMappingURL=chunk-
|
|
127573
|
+
//# sourceMappingURL=chunk-QVMEP4RI.js.map
|