@vm0/cli 9.159.1 → 9.160.1
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-VEDS4BO4.js → chunk-IGFASJAN.js} +473 -266
- package/{chunk-VEDS4BO4.js.map → chunk-IGFASJAN.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +320 -10
- 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 c108 = "color: " + this.color;
|
|
4633
|
+
args.splice(1, 0, c108, "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, c108);
|
|
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 c108 = this.color;
|
|
4934
|
+
const colorCode = "\x1B[3" + (c108 < 8 ? c108 : "8;5;" + c108);
|
|
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) && N.length < max; i += incr) {
|
|
8984
|
-
let
|
|
8984
|
+
let c108;
|
|
8985
8985
|
if (isAlphaSequence) {
|
|
8986
|
-
|
|
8987
|
-
if (
|
|
8988
|
-
|
|
8986
|
+
c108 = String.fromCharCode(i);
|
|
8987
|
+
if (c108 === "\\") {
|
|
8988
|
+
c108 = "";
|
|
8989
8989
|
}
|
|
8990
8990
|
} else {
|
|
8991
|
-
|
|
8991
|
+
c108 = String(i);
|
|
8992
8992
|
if (pad) {
|
|
8993
|
-
const need = width -
|
|
8993
|
+
const need = width - c108.length;
|
|
8994
8994
|
if (need > 0) {
|
|
8995
8995
|
const z3 = new Array(need + 1).join("0");
|
|
8996
8996
|
if (i < 0) {
|
|
8997
|
-
|
|
8997
|
+
c108 = "-" + z3 + c108.slice(1);
|
|
8998
8998
|
} else {
|
|
8999
|
-
|
|
8999
|
+
c108 = z3 + c108;
|
|
9000
9000
|
}
|
|
9001
9001
|
}
|
|
9002
9002
|
}
|
|
9003
9003
|
}
|
|
9004
|
-
N.push(
|
|
9004
|
+
N.push(c108);
|
|
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 c108 = glob.charAt(i);
|
|
9088
|
+
if ((c108 === "!" || c108 === "^") && i === pos + 1) {
|
|
9089
9089
|
negate = true;
|
|
9090
9090
|
i++;
|
|
9091
9091
|
continue;
|
|
9092
9092
|
}
|
|
9093
|
-
if (
|
|
9093
|
+
if (c108 === "]" && sawStart && !escaping) {
|
|
9094
9094
|
endPos = i + 1;
|
|
9095
9095
|
break;
|
|
9096
9096
|
}
|
|
9097
9097
|
sawStart = true;
|
|
9098
|
-
if (
|
|
9098
|
+
if (c108 === "\\") {
|
|
9099
9099
|
if (!escaping) {
|
|
9100
9100
|
escaping = true;
|
|
9101
9101
|
i++;
|
|
9102
9102
|
continue;
|
|
9103
9103
|
}
|
|
9104
9104
|
}
|
|
9105
|
-
if (
|
|
9105
|
+
if (c108 === "[" && !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 (c108 > rangeStart) {
|
|
9124
|
+
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c108));
|
|
9125
|
+
} else if (c108 === rangeStart) {
|
|
9126
|
+
ranges.push(braceEscape(c108));
|
|
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(c108 + "-"));
|
|
9134
9134
|
i += 2;
|
|
9135
9135
|
continue;
|
|
9136
9136
|
}
|
|
9137
9137
|
if (glob.startsWith("-", i + 1)) {
|
|
9138
|
-
rangeStart =
|
|
9138
|
+
rangeStart = c108;
|
|
9139
9139
|
i += 2;
|
|
9140
9140
|
continue;
|
|
9141
9141
|
}
|
|
9142
|
-
ranges.push(braceEscape(
|
|
9142
|
+
ranges.push(braceEscape(c108));
|
|
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 = (c108) => types.has(c108);
|
|
9193
|
+
var isExtglobAST = (c108) => isExtglobType(c108.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 c108 = new _a2(this.type, parent);
|
|
9391
9391
|
for (const p of this.#parts) {
|
|
9392
|
-
|
|
9392
|
+
c108.copyIn(p);
|
|
9393
9393
|
}
|
|
9394
|
-
return
|
|
9394
|
+
return c108;
|
|
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 c108 = str.charAt(i2++);
|
|
9407
|
+
if (escaping || c108 === "\\") {
|
|
9408
9408
|
escaping = !escaping;
|
|
9409
|
-
acc2 +=
|
|
9409
|
+
acc2 += c108;
|
|
9410
9410
|
continue;
|
|
9411
9411
|
}
|
|
9412
9412
|
if (inBrace) {
|
|
9413
9413
|
if (i2 === braceStart + 1) {
|
|
9414
|
-
if (
|
|
9414
|
+
if (c108 === "^" || c108 === "!") {
|
|
9415
9415
|
braceNeg = true;
|
|
9416
9416
|
}
|
|
9417
|
-
} else if (
|
|
9417
|
+
} else if (c108 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
9418
9418
|
inBrace = false;
|
|
9419
9419
|
}
|
|
9420
|
-
acc2 +=
|
|
9420
|
+
acc2 += c108;
|
|
9421
9421
|
continue;
|
|
9422
|
-
} else if (
|
|
9422
|
+
} else if (c108 === "[") {
|
|
9423
9423
|
inBrace = true;
|
|
9424
9424
|
braceStart = i2;
|
|
9425
9425
|
braceNeg = false;
|
|
9426
|
-
acc2 +=
|
|
9426
|
+
acc2 += c108;
|
|
9427
9427
|
continue;
|
|
9428
9428
|
}
|
|
9429
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
9429
|
+
const doRecurse = !opt.noext && isExtglobType(c108) && 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(c108, 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 += c108;
|
|
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 c108 = str.charAt(i++);
|
|
9449
|
+
if (escaping || c108 === "\\") {
|
|
9450
9450
|
escaping = !escaping;
|
|
9451
|
-
acc +=
|
|
9451
|
+
acc += c108;
|
|
9452
9452
|
continue;
|
|
9453
9453
|
}
|
|
9454
9454
|
if (inBrace) {
|
|
9455
9455
|
if (i === braceStart + 1) {
|
|
9456
|
-
if (
|
|
9456
|
+
if (c108 === "^" || c108 === "!") {
|
|
9457
9457
|
braceNeg = true;
|
|
9458
9458
|
}
|
|
9459
|
-
} else if (
|
|
9459
|
+
} else if (c108 === "]" && !(i === braceStart + 2 && braceNeg)) {
|
|
9460
9460
|
inBrace = false;
|
|
9461
9461
|
}
|
|
9462
|
-
acc +=
|
|
9462
|
+
acc += c108;
|
|
9463
9463
|
continue;
|
|
9464
|
-
} else if (
|
|
9464
|
+
} else if (c108 === "[") {
|
|
9465
9465
|
inBrace = true;
|
|
9466
9466
|
braceStart = i;
|
|
9467
9467
|
braceNeg = false;
|
|
9468
|
-
acc +=
|
|
9468
|
+
acc += c108;
|
|
9469
9469
|
continue;
|
|
9470
9470
|
}
|
|
9471
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
9472
|
-
(extDepth <= maxDepth || ast && ast.#canAdoptType(
|
|
9471
|
+
const doRecurse = !opt.noext && isExtglobType(c108) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
9472
|
+
(extDepth <= maxDepth || ast && ast.#canAdoptType(c108));
|
|
9473
9473
|
if (doRecurse) {
|
|
9474
|
-
const depthAdd = ast && ast.#canAdoptType(
|
|
9474
|
+
const depthAdd = ast && ast.#canAdoptType(c108) ? 0 : 1;
|
|
9475
9475
|
part.push(acc);
|
|
9476
9476
|
acc = "";
|
|
9477
|
-
const ext = new _a2(
|
|
9477
|
+
const ext = new _a2(c108, 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 (c108 === "|") {
|
|
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 (c108 === ")") {
|
|
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 += c108;
|
|
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(c108, map2 = adoptionAnyMap) {
|
|
9519
|
+
return !!map2.get(this.type)?.includes(c108);
|
|
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(c108) {
|
|
9538
9538
|
const m = usurpMap.get(this.type);
|
|
9539
|
-
return !!m?.has(
|
|
9539
|
+
return !!m?.has(c108);
|
|
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 c108 = this.#parts[i];
|
|
9753
|
+
if (typeof c108 === "object") {
|
|
9754
|
+
c108.#flatten();
|
|
9755
|
+
if (this.#canAdopt(c108)) {
|
|
9756
9756
|
done = false;
|
|
9757
|
-
this.#adopt(
|
|
9758
|
-
} else if (this.#canAdoptWithSpace(
|
|
9757
|
+
this.#adopt(c108, i);
|
|
9758
|
+
} else if (this.#canAdoptWithSpace(c108)) {
|
|
9759
9759
|
done = false;
|
|
9760
|
-
this.#adoptWithSpace(
|
|
9761
|
-
} else if (this.#canUsurp(
|
|
9760
|
+
this.#adoptWithSpace(c108, i);
|
|
9761
|
+
} else if (this.#canUsurp(c108)) {
|
|
9762
9762
|
done = false;
|
|
9763
|
-
this.#usurp(
|
|
9763
|
+
this.#usurp(c108);
|
|
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 c108 = glob.charAt(i);
|
|
9788
9788
|
if (escaping) {
|
|
9789
9789
|
escaping = false;
|
|
9790
|
-
re += (reSpecials.has(
|
|
9790
|
+
re += (reSpecials.has(c108) ? "\\" : "") + c108;
|
|
9791
9791
|
continue;
|
|
9792
9792
|
}
|
|
9793
|
-
if (
|
|
9793
|
+
if (c108 === "*") {
|
|
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 (c108 === "\\") {
|
|
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 (c108 === "[") {
|
|
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 (c108 === "?") {
|
|
9822
9822
|
re += qmark;
|
|
9823
9823
|
hasMagic = true;
|
|
9824
9824
|
continue;
|
|
9825
9825
|
}
|
|
9826
|
-
re += regExpEscape(
|
|
9826
|
+
re += regExpEscape(c108);
|
|
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 c108 = pool.config.connectionConfig;
|
|
13751
13751
|
let poolName = "";
|
|
13752
|
-
poolName +=
|
|
13753
|
-
poolName +=
|
|
13754
|
-
poolName +=
|
|
13755
|
-
poolName +=
|
|
13756
|
-
if (!
|
|
13752
|
+
poolName += c108.host ? `host: '${c108.host}', ` : "";
|
|
13753
|
+
poolName += c108.port ? `port: ${c108.port}, ` : "";
|
|
13754
|
+
poolName += c108.database ? `database: '${c108.database}', ` : "";
|
|
13755
|
+
poolName += c108.user ? `user: '${c108.user}'` : "";
|
|
13756
|
+
if (!c108.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, (c108) => `%${c108.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(c108) {
|
|
22669
|
+
switch (c108) {
|
|
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 c108 >= 33 && c108 <= 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((c108) => c108 !== 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 c108 = statusText.charCodeAt(i);
|
|
25425
|
+
if (!(c108 === 9 || // HTAB
|
|
25426
|
+
c108 >= 32 && c108 <= 126 || // SP / VCHAR
|
|
25427
|
+
c108 >= 128 && c108 <= 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((c108) => c108.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((c108) => c108.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((c108) => c108.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, c108] = ioQueue;
|
|
36236
|
+
if (a === 239 && b === 187 && c108 === 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 c108 = 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: c108.red(figures.cross),
|
|
40382
|
+
done: c108.green(figures.tick),
|
|
40383
|
+
exited: c108.yellow(figures.cross),
|
|
40384
|
+
default: c108.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) => c108.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
40388
|
+
var item = (expandable, expanded) => c108.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
|
+
_(c108, 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}${c108}${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
|
+
_(c108, key) {
|
|
40849
|
+
if (c108 === " ") 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
|
+
_(c108, key) {
|
|
40976
|
+
if (c108 === " ") {
|
|
40977
40977
|
this.value = !this.value;
|
|
40978
|
-
} else if (
|
|
40978
|
+
} else if (c108 === "1") {
|
|
40979
40979
|
this.value = true;
|
|
40980
|
-
} else if (
|
|
40980
|
+
} else if (c108 === "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
|
+
_(c108) {
|
|
41489
|
+
if (/\d/.test(c108)) {
|
|
41490
|
+
this.typed += c108;
|
|
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(c108) {
|
|
41600
|
+
return c108 === `-` || c108 === `.` && this.float || isNumber.test(c108);
|
|
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
|
+
_(c108, key) {
|
|
41694
|
+
if (!this.valid(c108)) return this.bell();
|
|
41695
41695
|
const now = Date.now();
|
|
41696
41696
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
41697
|
-
this.typed +=
|
|
41697
|
+
this.typed += c108;
|
|
41698
41698
|
this.lastHit = now;
|
|
41699
41699
|
this.color = `cyan`;
|
|
41700
|
-
if (
|
|
41700
|
+
if (c108 === `.`) 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
|
+
_(c108, key) {
|
|
41865
|
+
if (c108 === " ") {
|
|
41866
41866
|
this.handleSpaceToggle();
|
|
41867
|
-
} else if (
|
|
41867
|
+
} else if (c108 === "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
|
+
_(c108, 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}${c108}${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(c108) {
|
|
42312
|
+
this.inputValue = this.inputValue + c108;
|
|
42313
42313
|
this.updateFilteredOptions();
|
|
42314
42314
|
}
|
|
42315
|
-
_(
|
|
42316
|
-
if (
|
|
42315
|
+
_(c108, key) {
|
|
42316
|
+
if (c108 === " ") {
|
|
42317
42317
|
this.handleSpaceToggle();
|
|
42318
42318
|
} else {
|
|
42319
|
-
this.handleInputChange(
|
|
42319
|
+
this.handleInputChange(c108);
|
|
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
|
+
_(c108, key) {
|
|
42426
|
+
if (c108.toLowerCase() === "y") {
|
|
42427
42427
|
this.value = true;
|
|
42428
42428
|
return this.submit();
|
|
42429
42429
|
}
|
|
42430
|
-
if (
|
|
42430
|
+
if (c108.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 c108 = 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: c108.red(figures.cross),
|
|
42882
|
+
done: c108.green(figures.tick),
|
|
42883
|
+
exited: c108.yellow(figures.cross),
|
|
42884
|
+
default: c108.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) => c108.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
42888
|
+
var item = (expandable, expanded) => c108.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
|
+
_(c108, 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}${c108}${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
|
+
_(c108, key) {
|
|
43299
|
+
if (c108 === " ") 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
|
+
_(c108, key) {
|
|
43424
|
+
if (c108 === " ") {
|
|
43425
43425
|
this.value = !this.value;
|
|
43426
|
-
} else if (
|
|
43426
|
+
} else if (c108 === "1") {
|
|
43427
43427
|
this.value = true;
|
|
43428
|
-
} else if (
|
|
43428
|
+
} else if (c108 === "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
|
+
_(c108) {
|
|
43885
|
+
if (/\d/.test(c108)) {
|
|
43886
|
+
this.typed += c108;
|
|
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(c108) {
|
|
43969
|
+
return c108 === `-` || c108 === `.` && this.float || isNumber.test(c108);
|
|
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
|
+
_(c108, key) {
|
|
44057
|
+
if (!this.valid(c108)) return this.bell();
|
|
44058
44058
|
const now = Date.now();
|
|
44059
44059
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
44060
|
-
this.typed +=
|
|
44060
|
+
this.typed += c108;
|
|
44061
44061
|
this.lastHit = now;
|
|
44062
44062
|
this.color = `cyan`;
|
|
44063
|
-
if (
|
|
44063
|
+
if (c108 === `.`) 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
|
+
_(c108, key) {
|
|
44226
|
+
if (c108 === " ") {
|
|
44227
44227
|
this.handleSpaceToggle();
|
|
44228
|
-
} else if (
|
|
44228
|
+
} else if (c108 === "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
|
+
_(c108, 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}${c108}${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(c108) {
|
|
44632
|
+
this.inputValue = this.inputValue + c108;
|
|
44633
44633
|
this.updateFilteredOptions();
|
|
44634
44634
|
}
|
|
44635
|
-
_(
|
|
44636
|
-
if (
|
|
44635
|
+
_(c108, key) {
|
|
44636
|
+
if (c108 === " ") {
|
|
44637
44637
|
this.handleSpaceToggle();
|
|
44638
44638
|
} else {
|
|
44639
|
-
this.handleInputChange(
|
|
44639
|
+
this.handleInputChange(c108);
|
|
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
|
+
_(c108, key) {
|
|
44747
|
+
if (c108.toLowerCase() === "y") {
|
|
44748
44748
|
this.value = true;
|
|
44749
44749
|
return this.submit();
|
|
44750
44750
|
}
|
|
44751
|
-
if (
|
|
44751
|
+
if (c108.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 c108 = getAliasCount(doc, item, anchors2);
|
|
45638
|
+
if (c108 > count)
|
|
45639
|
+
count = c108;
|
|
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 c108 of classes) {
|
|
53180
|
+
out.push(`.${c108}`);
|
|
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
|
+
(c108) => (
|
|
53413
53413
|
// eslint-disable-next-line no-bitwise
|
|
53414
|
-
(
|
|
53414
|
+
(c108 ^ (getRandomByte() & 15) >> c108 / 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(c108, next) {
|
|
72472
72472
|
if (!instrumentation.isEnabled()) {
|
|
72473
|
-
return handler.apply(this, [
|
|
72473
|
+
return handler.apply(this, [c108, next]);
|
|
72474
72474
|
}
|
|
72475
|
-
const path3 =
|
|
72475
|
+
const path3 = c108.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, [c108, 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.
|
|
74086
|
+
release: "9.160.1",
|
|
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.
|
|
74105
|
+
version: "9.160.1",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -74316,7 +74316,8 @@ var FEATURE_SWITCHES = {
|
|
|
74316
74316
|
["googleAdsConnector" /* GoogleAdsConnector */]: {
|
|
74317
74317
|
maintainer: "ethan@vm0.ai",
|
|
74318
74318
|
description: "Enable the Google Ads connector",
|
|
74319
|
-
enabled: false
|
|
74319
|
+
enabled: false,
|
|
74320
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74320
74321
|
},
|
|
74321
74322
|
["metaAdsConnector" /* MetaAdsConnector */]: {
|
|
74322
74323
|
maintainer: "ethan@vm0.ai",
|
|
@@ -74485,7 +74486,17 @@ var FEATURE_SWITCHES = {
|
|
|
74485
74486
|
},
|
|
74486
74487
|
["storedSecretKmsWrite" /* StoredSecretKmsWrite */]: {
|
|
74487
74488
|
maintainer: "ethan@vm0.ai",
|
|
74488
|
-
description: "Dual-write stored-secret values to AWS KMS in addition to the legacy AES branch. When OFF, writes stay legacy-only even if SECRETS_KMS_KEY_ID is configured
|
|
74489
|
+
description: "Dual-write stored-secret values to AWS KMS in addition to the legacy AES branch. When OFF, writes stay legacy-only even if SECRETS_KMS_KEY_ID is configured. This gates the KMS GenerateDataKey call so a missing IAM grant does not 500 every secret save.",
|
|
74490
|
+
enabled: true
|
|
74491
|
+
},
|
|
74492
|
+
["persistentSecretKmsRead" /* PersistentSecretKmsRead */]: {
|
|
74493
|
+
maintainer: "ethan@vm0.ai",
|
|
74494
|
+
description: "Prefer AWS KMS material when reading persistent secret envelopes such as bot tokens, callback secrets, OAuth tokens, and queued execution secrets. Legacy AES remains as a fallback while backfills complete.",
|
|
74495
|
+
enabled: false
|
|
74496
|
+
},
|
|
74497
|
+
["persistentSecretKmsWrite" /* PersistentSecretKmsWrite */]: {
|
|
74498
|
+
maintainer: "ethan@vm0.ai",
|
|
74499
|
+
description: "Dual-write persistent secret values to AWS KMS in addition to the legacy AES branch. When OFF, writes stay legacy-only even if SECRETS_KMS_KEY_ID is configured.",
|
|
74489
74500
|
enabled: true
|
|
74490
74501
|
},
|
|
74491
74502
|
["trinity" /* Trinity */]: {
|
|
@@ -74498,11 +74509,6 @@ var FEATURE_SWITCHES = {
|
|
|
74498
74509
|
description: "Enable the Zapier connector. When disabled, Zapier is hidden from the connectors list and cannot be connected.",
|
|
74499
74510
|
enabled: false
|
|
74500
74511
|
},
|
|
74501
|
-
["wereadConnector" /* WereadConnector */]: {
|
|
74502
|
-
maintainer: "ethan@vm0.ai",
|
|
74503
|
-
description: "Enable the WeRead (\u5FAE\u4FE1\u8BFB\u4E66) connector. When disabled, WeRead is hidden from the connectors list and cannot be connected.",
|
|
74504
|
-
enabled: false
|
|
74505
|
-
},
|
|
74506
74512
|
["voiceChatRealtimeBilling" /* VoiceChatRealtimeBilling */]: {
|
|
74507
74513
|
maintainer: "lancy@vm0.ai",
|
|
74508
74514
|
description: "Gate voice-chat realtime billing (Plan D, Epic #12128). When OFF, the token route mints an OpenAI ephemeral token without admission checks and the /session-started, /usage, and /session-ended endpoints are 200 no-ops \u2014 the org gets unmetered voice-chat. When ON, the token route runs credit + pricing admission, /session-started inserts an audit row in voice_chat_realtime_sessions, and the browser self-reports response.done + transcription.completed usage events for billing. Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
|
|
@@ -74520,6 +74526,12 @@ var FEATURE_SWITCHES = {
|
|
|
74520
74526
|
description: "Enable runner-provided disk and network device rate limiters for sandbox VMs.",
|
|
74521
74527
|
enabled: false,
|
|
74522
74528
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74529
|
+
},
|
|
74530
|
+
["zeroMaps" /* ZeroMaps */]: {
|
|
74531
|
+
maintainer: "ethan@vm0.ai",
|
|
74532
|
+
description: "Enable managed Zero Maps CLI access for geocoding, directions, and places. Staff-only during rollout.",
|
|
74533
|
+
enabled: false,
|
|
74534
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74523
74535
|
}
|
|
74524
74536
|
};
|
|
74525
74537
|
function isFeatureEnabled(key, ctx) {
|
|
@@ -77708,7 +77720,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
77708
77720
|
function isValidBase64URL(data) {
|
|
77709
77721
|
if (!base64url.test(data))
|
|
77710
77722
|
return false;
|
|
77711
|
-
const base643 = data.replace(/[-_]/g, (
|
|
77723
|
+
const base643 = data.replace(/[-_]/g, (c108) => c108 === "-" ? "+" : "/");
|
|
77712
77724
|
const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
|
|
77713
77725
|
return isValidBase64(padded);
|
|
77714
77726
|
}
|
|
@@ -87819,9 +87831,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
|
87819
87831
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
87820
87832
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
87821
87833
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
87822
|
-
const
|
|
87823
|
-
inst.minDate =
|
|
87824
|
-
inst.maxDate =
|
|
87834
|
+
const c108 = inst._zod.bag;
|
|
87835
|
+
inst.minDate = c108.minimum ? new Date(c108.minimum) : null;
|
|
87836
|
+
inst.maxDate = c108.maximum ? new Date(c108.maximum) : null;
|
|
87825
87837
|
});
|
|
87826
87838
|
function date3(params) {
|
|
87827
87839
|
return _date(ZodDate, params);
|
|
@@ -98456,6 +98468,7 @@ var googleAds = {
|
|
|
98456
98468
|
authMethods: {
|
|
98457
98469
|
oauth: {
|
|
98458
98470
|
featureFlag: "googleAdsConnector" /* GoogleAdsConnector */,
|
|
98471
|
+
showExperimentalLabel: false,
|
|
98459
98472
|
label: "OAuth (Recommended)",
|
|
98460
98473
|
helpText: "Sign in with Google to grant Google Ads access.",
|
|
98461
98474
|
secrets: {
|
|
@@ -104548,7 +104561,6 @@ var weread = {
|
|
|
104548
104561
|
helpText: "Connect WeChat Reading (\u5FAE\u4FE1\u8BFB\u4E66) to search books, browse your bookshelf, and read your notes, highlights, reviews, and reading statistics",
|
|
104549
104562
|
authMethods: {
|
|
104550
104563
|
"api-token": {
|
|
104551
|
-
featureFlag: "wereadConnector" /* WereadConnector */,
|
|
104552
104564
|
label: "WeRead API Key",
|
|
104553
104565
|
helpText: "1. Open the [WeRead Skill page](https://weread.qq.com/r/weread-skills)\n2. Scan the QR code with WeChat to sign in to your WeChat Reading account\n3. Copy the generated API key (it begins with `wrk-`)\n4. The key authorises every endpoint under `i.weread.qq.com` and is scoped to your own account data",
|
|
104554
104566
|
secrets: {
|
|
@@ -109884,6 +109896,63 @@ async function listLocalBrowserAuditEvents(params) {
|
|
|
109884
109896
|
handleError(result, "Failed to list local-browser audit events");
|
|
109885
109897
|
}
|
|
109886
109898
|
|
|
109899
|
+
// src/lib/api/domains/zero-maps.ts
|
|
109900
|
+
init_esm_shims();
|
|
109901
|
+
function authenticatedJsonHeaders(token) {
|
|
109902
|
+
const headers = {
|
|
109903
|
+
Authorization: `Bearer ${token}`,
|
|
109904
|
+
"Content-Type": "application/json"
|
|
109905
|
+
};
|
|
109906
|
+
const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
|
|
109907
|
+
if (bypassSecret) {
|
|
109908
|
+
headers["x-vercel-protection-bypass"] = bypassSecret;
|
|
109909
|
+
}
|
|
109910
|
+
return headers;
|
|
109911
|
+
}
|
|
109912
|
+
function isRecord(value) {
|
|
109913
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
109914
|
+
}
|
|
109915
|
+
async function parseErrorBody(response) {
|
|
109916
|
+
let message = `Zero Maps request failed (HTTP ${response.status})`;
|
|
109917
|
+
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
109918
|
+
try {
|
|
109919
|
+
const body = await response.json();
|
|
109920
|
+
if (isRecord(body) && isRecord(body.error)) {
|
|
109921
|
+
if (typeof body.error.message === "string") {
|
|
109922
|
+
message = body.error.message;
|
|
109923
|
+
}
|
|
109924
|
+
if (typeof body.error.code === "string") {
|
|
109925
|
+
code = body.error.code;
|
|
109926
|
+
}
|
|
109927
|
+
}
|
|
109928
|
+
} catch {
|
|
109929
|
+
}
|
|
109930
|
+
if (response.status === 404 && code === "NOT_FOUND") {
|
|
109931
|
+
message = "Zero Maps API is not available on this server yet. Try again after the maps backend is deployed.";
|
|
109932
|
+
}
|
|
109933
|
+
return { message, code };
|
|
109934
|
+
}
|
|
109935
|
+
async function callZeroMaps(operation, body) {
|
|
109936
|
+
const baseUrl = await getBaseUrl();
|
|
109937
|
+
const token = await getActiveToken();
|
|
109938
|
+
if (!token) {
|
|
109939
|
+
throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
|
|
109940
|
+
}
|
|
109941
|
+
const response = await fetch(
|
|
109942
|
+
new URL(`/api/zero/maps/${operation}`, baseUrl),
|
|
109943
|
+
{
|
|
109944
|
+
method: "POST",
|
|
109945
|
+
headers: authenticatedJsonHeaders(token),
|
|
109946
|
+
body: JSON.stringify(body)
|
|
109947
|
+
}
|
|
109948
|
+
);
|
|
109949
|
+
if (!response.ok) {
|
|
109950
|
+
const { message, code } = await parseErrorBody(response);
|
|
109951
|
+
throw new ApiRequestError(message, code, response.status);
|
|
109952
|
+
}
|
|
109953
|
+
return await response.json();
|
|
109954
|
+
}
|
|
109955
|
+
|
|
109887
109956
|
// src/lib/api/domains/web.ts
|
|
109888
109957
|
init_esm_shims();
|
|
109889
109958
|
import { createWriteStream as createWriteStream4, readFileSync as readFileSync3, statSync } from "fs";
|
|
@@ -109896,7 +109965,8 @@ var BUILT_IN_GENERATION_POLL_INTERVAL_MS = 2e3;
|
|
|
109896
109965
|
var BUILT_IN_GENERATION_WAIT_TIMEOUT_MS_BY_TYPE = {
|
|
109897
109966
|
image: 15 * 60 * 1e3,
|
|
109898
109967
|
video: 30 * 60 * 1e3,
|
|
109899
|
-
presentation: 60 * 60 * 1e3
|
|
109968
|
+
presentation: 60 * 60 * 1e3,
|
|
109969
|
+
website: 60 * 60 * 1e3
|
|
109900
109970
|
};
|
|
109901
109971
|
var ABLY_CONNECT_TIMEOUT_MS = 1e4;
|
|
109902
109972
|
var MIME_BY_EXTENSION = {
|
|
@@ -110024,7 +110094,7 @@ async function downloadWebFile(fileId, outPath) {
|
|
|
110024
110094
|
const size = contentLengthHeader ? Number(contentLengthHeader) : 0;
|
|
110025
110095
|
return { path: outPath, mimetype, size };
|
|
110026
110096
|
}
|
|
110027
|
-
async function
|
|
110097
|
+
async function parseErrorBody2(response, fallback) {
|
|
110028
110098
|
let message = `${fallback} (HTTP ${response.status})`;
|
|
110029
110099
|
let code = "UNKNOWN";
|
|
110030
110100
|
try {
|
|
@@ -110035,7 +110105,7 @@ async function parseErrorBody(response, fallback) {
|
|
|
110035
110105
|
}
|
|
110036
110106
|
return { message, code };
|
|
110037
110107
|
}
|
|
110038
|
-
function
|
|
110108
|
+
function authenticatedJsonHeaders2(token) {
|
|
110039
110109
|
const headers = {
|
|
110040
110110
|
Authorization: `Bearer ${token}`,
|
|
110041
110111
|
"Content-Type": "application/json"
|
|
@@ -110046,14 +110116,14 @@ function authenticatedJsonHeaders(token) {
|
|
|
110046
110116
|
}
|
|
110047
110117
|
return headers;
|
|
110048
110118
|
}
|
|
110049
|
-
function
|
|
110119
|
+
function isRecord2(value) {
|
|
110050
110120
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
110051
110121
|
}
|
|
110052
110122
|
function isBuiltInGenerationAcceptedResponse(value) {
|
|
110053
|
-
if (!
|
|
110123
|
+
if (!isRecord2(value)) {
|
|
110054
110124
|
return false;
|
|
110055
110125
|
}
|
|
110056
|
-
return typeof value.generationId === "string" && value.status === "queued" && (value.type === "image" || value.type === "video" || value.type === "presentation") &&
|
|
110126
|
+
return typeof value.generationId === "string" && value.status === "queued" && (value.type === "image" || value.type === "video" || value.type === "presentation" || value.type === "website") && isRecord2(value.realtime);
|
|
110057
110127
|
}
|
|
110058
110128
|
function createBuiltInGenerationRealtime(accepted) {
|
|
110059
110129
|
let nextAuthRequest = accepted.realtime.tokenRequest;
|
|
@@ -110151,10 +110221,10 @@ async function createBuiltInGenerationNotifier(accepted) {
|
|
|
110151
110221
|
async function getBuiltInGenerationStatus(baseUrl, token, generationId) {
|
|
110152
110222
|
const response = await fetch(
|
|
110153
110223
|
new URL(`/api/zero/built-in-generations/${generationId}`, baseUrl),
|
|
110154
|
-
{ headers:
|
|
110224
|
+
{ headers: authenticatedJsonHeaders2(token) }
|
|
110155
110225
|
);
|
|
110156
110226
|
if (!response.ok) {
|
|
110157
|
-
const { message, code } = await
|
|
110227
|
+
const { message, code } = await parseErrorBody2(
|
|
110158
110228
|
response,
|
|
110159
110229
|
"Failed to get generation status"
|
|
110160
110230
|
);
|
|
@@ -110289,7 +110359,7 @@ async function uploadWebFile(localPath, options) {
|
|
|
110289
110359
|
body: JSON.stringify({ filename, contentType, size: stats.size })
|
|
110290
110360
|
});
|
|
110291
110361
|
if (!prepareRes.ok) {
|
|
110292
|
-
const { message, code } = await
|
|
110362
|
+
const { message, code } = await parseErrorBody2(
|
|
110293
110363
|
prepareRes,
|
|
110294
110364
|
"Failed to prepare upload"
|
|
110295
110365
|
);
|
|
@@ -110319,7 +110389,7 @@ async function uploadWebFile(localPath, options) {
|
|
|
110319
110389
|
})
|
|
110320
110390
|
});
|
|
110321
110391
|
if (!completeRes.ok) {
|
|
110322
|
-
const { message, code } = await
|
|
110392
|
+
const { message, code } = await parseErrorBody2(
|
|
110323
110393
|
completeRes,
|
|
110324
110394
|
"Failed to complete upload"
|
|
110325
110395
|
);
|
|
@@ -110358,7 +110428,7 @@ async function generateWebVoice(options) {
|
|
|
110358
110428
|
})
|
|
110359
110429
|
});
|
|
110360
110430
|
if (!response.ok) {
|
|
110361
|
-
const { message, code } = await
|
|
110431
|
+
const { message, code } = await parseErrorBody2(
|
|
110362
110432
|
response,
|
|
110363
110433
|
"Failed to generate voice"
|
|
110364
110434
|
);
|
|
@@ -110405,7 +110475,7 @@ async function generateWebImage(options) {
|
|
|
110405
110475
|
}
|
|
110406
110476
|
);
|
|
110407
110477
|
if (!response.ok) {
|
|
110408
|
-
const { message, code } = await
|
|
110478
|
+
const { message, code } = await parseErrorBody2(
|
|
110409
110479
|
response,
|
|
110410
110480
|
"Failed to generate image"
|
|
110411
110481
|
);
|
|
@@ -110452,7 +110522,7 @@ async function generateWebVideo(options) {
|
|
|
110452
110522
|
}
|
|
110453
110523
|
);
|
|
110454
110524
|
if (!response.ok) {
|
|
110455
|
-
const { message, code } = await
|
|
110525
|
+
const { message, code } = await parseErrorBody2(
|
|
110456
110526
|
response,
|
|
110457
110527
|
"Failed to generate video"
|
|
110458
110528
|
);
|
|
@@ -110497,7 +110567,7 @@ async function generateWebPresentation(options) {
|
|
|
110497
110567
|
}
|
|
110498
110568
|
);
|
|
110499
110569
|
if (!response.ok) {
|
|
110500
|
-
const { message, code } = await
|
|
110570
|
+
const { message, code } = await parseErrorBody2(
|
|
110501
110571
|
response,
|
|
110502
110572
|
"Failed to generate presentation"
|
|
110503
110573
|
);
|
|
@@ -110532,19 +110602,26 @@ async function generateWebWebsite(options) {
|
|
|
110532
110602
|
body: JSON.stringify({
|
|
110533
110603
|
prompt: options.prompt,
|
|
110534
110604
|
...options.template ? { template: options.template } : {},
|
|
110605
|
+
...options.imageCount !== void 0 ? { imageCount: options.imageCount } : {},
|
|
110606
|
+
...options.imageModel ? { imageModel: options.imageModel } : {},
|
|
110535
110607
|
...options.title ? { title: options.title } : {},
|
|
110536
110608
|
...options.audience ? { audience: options.audience } : {}
|
|
110537
110609
|
})
|
|
110538
110610
|
}
|
|
110539
110611
|
);
|
|
110540
110612
|
if (!response.ok) {
|
|
110541
|
-
const { message, code } = await
|
|
110613
|
+
const { message, code } = await parseErrorBody2(
|
|
110542
110614
|
response,
|
|
110543
110615
|
"Failed to generate website"
|
|
110544
110616
|
);
|
|
110545
110617
|
throw new ApiRequestError(message, code, response.status);
|
|
110546
110618
|
}
|
|
110547
|
-
return
|
|
110619
|
+
return readBuiltInGenerationResponse({
|
|
110620
|
+
response,
|
|
110621
|
+
baseUrl,
|
|
110622
|
+
token,
|
|
110623
|
+
fallback: "Failed to generate website"
|
|
110624
|
+
});
|
|
110548
110625
|
}
|
|
110549
110626
|
|
|
110550
110627
|
// src/lib/api/domains/zero-host.ts
|
|
@@ -110560,7 +110637,7 @@ function authHeaders(token) {
|
|
|
110560
110637
|
}
|
|
110561
110638
|
return headers;
|
|
110562
110639
|
}
|
|
110563
|
-
async function
|
|
110640
|
+
async function parseErrorBody3(response, fallback) {
|
|
110564
110641
|
let message = `${fallback} (HTTP ${response.status})`;
|
|
110565
110642
|
let code = "UNKNOWN";
|
|
110566
110643
|
try {
|
|
@@ -110590,7 +110667,7 @@ async function prepareHostedSite(body) {
|
|
|
110590
110667
|
}
|
|
110591
110668
|
);
|
|
110592
110669
|
if (!response.ok) {
|
|
110593
|
-
const { message, code } = await
|
|
110670
|
+
const { message, code } = await parseErrorBody3(
|
|
110594
110671
|
response,
|
|
110595
110672
|
"Failed to prepare hosted-site deployment"
|
|
110596
110673
|
);
|
|
@@ -110612,7 +110689,7 @@ async function completeHostedSite(deploymentId) {
|
|
|
110612
110689
|
}
|
|
110613
110690
|
);
|
|
110614
110691
|
if (!response.ok) {
|
|
110615
|
-
const { message, code } = await
|
|
110692
|
+
const { message, code } = await parseErrorBody3(
|
|
110616
110693
|
response,
|
|
110617
110694
|
"Failed to complete hosted-site deployment"
|
|
110618
110695
|
);
|
|
@@ -125983,6 +126060,8 @@ var agentPhoneCallbackPayloadSchema = external_exports.object({
|
|
|
125983
126060
|
messageId: external_exports.string(),
|
|
125984
126061
|
conversationId: external_exports.string().nullable(),
|
|
125985
126062
|
channel: external_exports.string().optional(),
|
|
126063
|
+
isGroup: external_exports.boolean().optional(),
|
|
126064
|
+
rootMessageId: external_exports.string().optional(),
|
|
125986
126065
|
phoneHandle: external_exports.string(),
|
|
125987
126066
|
fromNumber: external_exports.string(),
|
|
125988
126067
|
toNumber: external_exports.string(),
|
|
@@ -129167,7 +129246,8 @@ var c90 = initContract();
|
|
|
129167
129246
|
var zeroBuiltInGenerationTypeSchema = external_exports.enum([
|
|
129168
129247
|
"image",
|
|
129169
129248
|
"video",
|
|
129170
|
-
"presentation"
|
|
129249
|
+
"presentation",
|
|
129250
|
+
"website"
|
|
129171
129251
|
]);
|
|
129172
129252
|
var zeroBuiltInGenerationStatusSchema = external_exports.enum([
|
|
129173
129253
|
"queued",
|
|
@@ -129291,9 +129371,106 @@ var zeroImageIoGenerateContract = c91.router({
|
|
|
129291
129371
|
}
|
|
129292
129372
|
});
|
|
129293
129373
|
|
|
129294
|
-
// ../../packages/api-contracts/src/contracts/zero-
|
|
129374
|
+
// ../../packages/api-contracts/src/contracts/zero-maps.ts
|
|
129295
129375
|
init_esm_shims();
|
|
129296
129376
|
var c92 = initContract();
|
|
129377
|
+
var travelModeSchema = external_exports.enum(["driving", "walking", "bicycling", "transit"]);
|
|
129378
|
+
var placeDetailFieldsetSchema = external_exports.enum(["essentials", "pro"]);
|
|
129379
|
+
var zeroMapsOperationSchema = external_exports.enum([
|
|
129380
|
+
"geocode",
|
|
129381
|
+
"reverse-geocode",
|
|
129382
|
+
"directions",
|
|
129383
|
+
"places.search",
|
|
129384
|
+
"places.details"
|
|
129385
|
+
]);
|
|
129386
|
+
var zeroMapsResponseSchema = external_exports.object({
|
|
129387
|
+
operation: zeroMapsOperationSchema,
|
|
129388
|
+
provider: external_exports.literal("google-maps"),
|
|
129389
|
+
creditsCharged: external_exports.number(),
|
|
129390
|
+
billingCategory: external_exports.string(),
|
|
129391
|
+
billingQuantity: external_exports.number(),
|
|
129392
|
+
result: external_exports.unknown()
|
|
129393
|
+
});
|
|
129394
|
+
var zeroMapsGeocodeRequestSchema = external_exports.object({
|
|
129395
|
+
address: external_exports.string().trim().min(1),
|
|
129396
|
+
region: external_exports.string().trim().min(1).optional()
|
|
129397
|
+
});
|
|
129398
|
+
var zeroMapsReverseGeocodeRequestSchema = external_exports.object({
|
|
129399
|
+
lat: external_exports.number().min(-90).max(90),
|
|
129400
|
+
lng: external_exports.number().min(-180).max(180)
|
|
129401
|
+
});
|
|
129402
|
+
var zeroMapsDirectionsRequestSchema = external_exports.object({
|
|
129403
|
+
origin: external_exports.string().trim().min(1),
|
|
129404
|
+
destination: external_exports.string().trim().min(1),
|
|
129405
|
+
mode: travelModeSchema.default("driving"),
|
|
129406
|
+
departureTime: external_exports.string().trim().min(1).optional()
|
|
129407
|
+
});
|
|
129408
|
+
var zeroMapsPlacesSearchRequestSchema = external_exports.object({
|
|
129409
|
+
query: external_exports.string().trim().min(1),
|
|
129410
|
+
location: external_exports.string().trim().min(1).optional(),
|
|
129411
|
+
radius: external_exports.number().int().positive().optional(),
|
|
129412
|
+
limit: external_exports.number().int().min(1).max(20).default(5),
|
|
129413
|
+
region: external_exports.string().trim().min(1).optional()
|
|
129414
|
+
});
|
|
129415
|
+
var zeroMapsPlacesDetailsRequestSchema = external_exports.object({
|
|
129416
|
+
placeId: external_exports.string().trim().min(1),
|
|
129417
|
+
fields: placeDetailFieldsetSchema.default("essentials")
|
|
129418
|
+
});
|
|
129419
|
+
var mapsResponses = {
|
|
129420
|
+
200: zeroMapsResponseSchema,
|
|
129421
|
+
400: apiErrorSchema,
|
|
129422
|
+
401: apiErrorSchema,
|
|
129423
|
+
402: apiErrorSchema,
|
|
129424
|
+
403: apiErrorSchema,
|
|
129425
|
+
502: apiErrorSchema,
|
|
129426
|
+
503: apiErrorSchema
|
|
129427
|
+
};
|
|
129428
|
+
var zeroMapsContract = c92.router({
|
|
129429
|
+
geocode: {
|
|
129430
|
+
method: "POST",
|
|
129431
|
+
path: "/api/zero/maps/geocode",
|
|
129432
|
+
headers: authHeadersSchema,
|
|
129433
|
+
body: zeroMapsGeocodeRequestSchema,
|
|
129434
|
+
responses: mapsResponses,
|
|
129435
|
+
summary: "Geocode an address through managed Zero Maps"
|
|
129436
|
+
},
|
|
129437
|
+
reverseGeocode: {
|
|
129438
|
+
method: "POST",
|
|
129439
|
+
path: "/api/zero/maps/reverse-geocode",
|
|
129440
|
+
headers: authHeadersSchema,
|
|
129441
|
+
body: zeroMapsReverseGeocodeRequestSchema,
|
|
129442
|
+
responses: mapsResponses,
|
|
129443
|
+
summary: "Reverse geocode coordinates through managed Zero Maps"
|
|
129444
|
+
},
|
|
129445
|
+
directions: {
|
|
129446
|
+
method: "POST",
|
|
129447
|
+
path: "/api/zero/maps/directions",
|
|
129448
|
+
headers: authHeadersSchema,
|
|
129449
|
+
body: zeroMapsDirectionsRequestSchema,
|
|
129450
|
+
responses: mapsResponses,
|
|
129451
|
+
summary: "Compute directions through managed Zero Maps"
|
|
129452
|
+
},
|
|
129453
|
+
placesSearch: {
|
|
129454
|
+
method: "POST",
|
|
129455
|
+
path: "/api/zero/maps/places/search",
|
|
129456
|
+
headers: authHeadersSchema,
|
|
129457
|
+
body: zeroMapsPlacesSearchRequestSchema,
|
|
129458
|
+
responses: mapsResponses,
|
|
129459
|
+
summary: "Search places through managed Zero Maps"
|
|
129460
|
+
},
|
|
129461
|
+
placesDetails: {
|
|
129462
|
+
method: "POST",
|
|
129463
|
+
path: "/api/zero/maps/places/details",
|
|
129464
|
+
headers: authHeadersSchema,
|
|
129465
|
+
body: zeroMapsPlacesDetailsRequestSchema,
|
|
129466
|
+
responses: mapsResponses,
|
|
129467
|
+
summary: "Fetch place details through managed Zero Maps"
|
|
129468
|
+
}
|
|
129469
|
+
});
|
|
129470
|
+
|
|
129471
|
+
// ../../packages/api-contracts/src/contracts/zero-video-io-generate.ts
|
|
129472
|
+
init_esm_shims();
|
|
129473
|
+
var c93 = initContract();
|
|
129297
129474
|
var zeroVideoIoGenerateRequestSchema = external_exports.object({
|
|
129298
129475
|
prompt: external_exports.unknown().optional(),
|
|
129299
129476
|
model: external_exports.unknown().optional(),
|
|
@@ -129322,7 +129499,7 @@ var zeroVideoIoGenerateResponseSchema = external_exports.object({
|
|
|
129322
129499
|
sourceUrl: external_exports.string(),
|
|
129323
129500
|
requestId: external_exports.string().optional()
|
|
129324
129501
|
});
|
|
129325
|
-
var zeroVideoIoGenerateContract =
|
|
129502
|
+
var zeroVideoIoGenerateContract = c93.router({
|
|
129326
129503
|
post: {
|
|
129327
129504
|
method: "POST",
|
|
129328
129505
|
path: "/api/zero/video-io/generate",
|
|
@@ -129346,7 +129523,7 @@ var zeroVideoIoGenerateContract = c92.router({
|
|
|
129346
129523
|
|
|
129347
129524
|
// ../../packages/api-contracts/src/contracts/zero-presentation-io-generate.ts
|
|
129348
129525
|
init_esm_shims();
|
|
129349
|
-
var
|
|
129526
|
+
var c94 = initContract();
|
|
129350
129527
|
var zeroPresentationIoGenerateRequestSchema = external_exports.object({
|
|
129351
129528
|
prompt: external_exports.unknown().optional(),
|
|
129352
129529
|
style: external_exports.unknown().optional(),
|
|
@@ -129382,7 +129559,7 @@ var zeroPresentationIoGenerateResponseSchema = external_exports.object({
|
|
|
129382
129559
|
responseId: external_exports.string().optional(),
|
|
129383
129560
|
usage: zeroPresentationIoUsageSchema
|
|
129384
129561
|
});
|
|
129385
|
-
var zeroPresentationIoGenerateContract =
|
|
129562
|
+
var zeroPresentationIoGenerateContract = c94.router({
|
|
129386
129563
|
post: {
|
|
129387
129564
|
method: "POST",
|
|
129388
129565
|
path: "/api/zero/presentation-io/generate",
|
|
@@ -129405,7 +129582,7 @@ var zeroPresentationIoGenerateContract = c93.router({
|
|
|
129405
129582
|
|
|
129406
129583
|
// ../../packages/api-contracts/src/contracts/zero-website-io-generate.ts
|
|
129407
129584
|
init_esm_shims();
|
|
129408
|
-
var
|
|
129585
|
+
var c95 = initContract();
|
|
129409
129586
|
var zeroWebsiteTemplateIdSchema = external_exports.enum(["launch", "profile"]);
|
|
129410
129587
|
var zeroWebsiteTemplateRequestSchema = external_exports.enum([
|
|
129411
129588
|
"auto",
|
|
@@ -129415,6 +129592,8 @@ var zeroWebsiteTemplateRequestSchema = external_exports.enum([
|
|
|
129415
129592
|
var zeroWebsiteIoGenerateRequestSchema = external_exports.object({
|
|
129416
129593
|
prompt: external_exports.unknown().optional(),
|
|
129417
129594
|
template: external_exports.unknown().optional(),
|
|
129595
|
+
imageCount: external_exports.unknown().optional(),
|
|
129596
|
+
imageModel: external_exports.unknown().optional(),
|
|
129418
129597
|
title: external_exports.unknown().optional(),
|
|
129419
129598
|
audience: external_exports.unknown().optional()
|
|
129420
129599
|
}).passthrough();
|
|
@@ -129450,6 +129629,25 @@ var zeroWebsiteThemeSchema = external_exports.object({
|
|
|
129450
129629
|
accent: external_exports.enum(["cobalt", "green", "coral", "mono"]),
|
|
129451
129630
|
tone: external_exports.enum(["light", "dark"])
|
|
129452
129631
|
});
|
|
129632
|
+
var zeroWebsiteVisualPlacementSchema = external_exports.enum([
|
|
129633
|
+
"hero",
|
|
129634
|
+
"feature",
|
|
129635
|
+
"section"
|
|
129636
|
+
]);
|
|
129637
|
+
var zeroWebsiteVisualSpecSchema = external_exports.object({
|
|
129638
|
+
placement: zeroWebsiteVisualPlacementSchema,
|
|
129639
|
+
prompt: external_exports.string(),
|
|
129640
|
+
alt: external_exports.string()
|
|
129641
|
+
});
|
|
129642
|
+
var zeroWebsiteGeneratedVisualSchema = external_exports.object({
|
|
129643
|
+
placement: zeroWebsiteVisualPlacementSchema,
|
|
129644
|
+
url: external_exports.string(),
|
|
129645
|
+
alt: external_exports.string(),
|
|
129646
|
+
prompt: external_exports.string(),
|
|
129647
|
+
imageId: external_exports.string(),
|
|
129648
|
+
filename: external_exports.string(),
|
|
129649
|
+
creditsCharged: external_exports.number()
|
|
129650
|
+
});
|
|
129453
129651
|
var zeroWebsiteSiteDataSchema = external_exports.object({
|
|
129454
129652
|
siteName: external_exports.string(),
|
|
129455
129653
|
eyebrow: external_exports.string(),
|
|
@@ -129461,7 +129659,8 @@ var zeroWebsiteSiteDataSchema = external_exports.object({
|
|
|
129461
129659
|
sections: external_exports.array(zeroWebsiteSectionSchema),
|
|
129462
129660
|
stats: external_exports.array(zeroWebsiteStatSchema),
|
|
129463
129661
|
footer: zeroWebsiteFooterSchema,
|
|
129464
|
-
theme: zeroWebsiteThemeSchema
|
|
129662
|
+
theme: zeroWebsiteThemeSchema,
|
|
129663
|
+
visuals: external_exports.array(zeroWebsiteVisualSpecSchema)
|
|
129465
129664
|
});
|
|
129466
129665
|
var zeroWebsiteGenerationPayloadSchema = external_exports.object({
|
|
129467
129666
|
templateId: zeroWebsiteTemplateIdSchema,
|
|
@@ -129474,11 +129673,17 @@ var zeroWebsiteIoGenerateResponseSchema = external_exports.object({
|
|
|
129474
129673
|
slugSuggestion: external_exports.string(),
|
|
129475
129674
|
siteData: zeroWebsiteSiteDataSchema,
|
|
129476
129675
|
creditsCharged: external_exports.number(),
|
|
129676
|
+
textCreditsCharged: external_exports.number(),
|
|
129677
|
+
imageCreditsCharged: external_exports.number(),
|
|
129477
129678
|
model: external_exports.string(),
|
|
129679
|
+
imageCount: external_exports.number(),
|
|
129680
|
+
imageModel: external_exports.string(),
|
|
129681
|
+
imageUrls: external_exports.array(external_exports.string()),
|
|
129682
|
+
generatedVisuals: external_exports.array(zeroWebsiteGeneratedVisualSchema),
|
|
129478
129683
|
responseId: external_exports.string().optional(),
|
|
129479
129684
|
usage: zeroWebsiteIoUsageSchema
|
|
129480
129685
|
});
|
|
129481
|
-
var zeroWebsiteIoGenerateContract =
|
|
129686
|
+
var zeroWebsiteIoGenerateContract = c95.router({
|
|
129482
129687
|
post: {
|
|
129483
129688
|
method: "POST",
|
|
129484
129689
|
path: "/api/zero/website-io/generate",
|
|
@@ -129486,6 +129691,7 @@ var zeroWebsiteIoGenerateContract = c94.router({
|
|
|
129486
129691
|
body: zeroWebsiteIoGenerateRequestSchema,
|
|
129487
129692
|
responses: {
|
|
129488
129693
|
200: zeroWebsiteIoGenerateResponseSchema,
|
|
129694
|
+
202: zeroBuiltInGenerationAcceptedResponseSchema,
|
|
129489
129695
|
400: apiErrorSchema,
|
|
129490
129696
|
401: apiErrorSchema,
|
|
129491
129697
|
402: apiErrorSchema,
|
|
@@ -129500,8 +129706,8 @@ var zeroWebsiteIoGenerateContract = c94.router({
|
|
|
129500
129706
|
|
|
129501
129707
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-agent.ts
|
|
129502
129708
|
init_esm_shims();
|
|
129503
|
-
var
|
|
129504
|
-
var internalCallbacksAgentContract =
|
|
129709
|
+
var c96 = initContract();
|
|
129710
|
+
var internalCallbacksAgentContract = c96.router({
|
|
129505
129711
|
post: {
|
|
129506
129712
|
method: "POST",
|
|
129507
129713
|
path: "/api/internal/callbacks/agent",
|
|
@@ -129519,7 +129725,7 @@ var internalCallbacksAgentContract = c95.router({
|
|
|
129519
129725
|
|
|
129520
129726
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-github-issues.ts
|
|
129521
129727
|
init_esm_shims();
|
|
129522
|
-
var
|
|
129728
|
+
var c97 = initContract();
|
|
129523
129729
|
var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
129524
129730
|
installationId: external_exports.string(),
|
|
129525
129731
|
repo: external_exports.string(),
|
|
@@ -129530,7 +129736,7 @@ var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
|
129530
129736
|
triggerReactionId: external_exports.string().optional(),
|
|
129531
129737
|
triggerCommentBody: external_exports.string().optional()
|
|
129532
129738
|
}).passthrough();
|
|
129533
|
-
var internalCallbacksGithubIssuesContract =
|
|
129739
|
+
var internalCallbacksGithubIssuesContract = c97.router({
|
|
129534
129740
|
post: {
|
|
129535
129741
|
method: "POST",
|
|
129536
129742
|
path: "/api/internal/callbacks/github/issues",
|
|
@@ -129551,7 +129757,7 @@ var internalCallbacksGithubIssuesContract = c96.router({
|
|
|
129551
129757
|
|
|
129552
129758
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-schedule.ts
|
|
129553
129759
|
init_esm_shims();
|
|
129554
|
-
var
|
|
129760
|
+
var c98 = initContract();
|
|
129555
129761
|
var scheduleLoopCallbackPayloadSchema = external_exports.object({
|
|
129556
129762
|
scheduleId: external_exports.string()
|
|
129557
129763
|
}).passthrough();
|
|
@@ -129559,7 +129765,7 @@ var scheduleCronCallbackPayloadSchema = scheduleLoopCallbackPayloadSchema.extend
|
|
|
129559
129765
|
timezone: external_exports.string(),
|
|
129560
129766
|
cronExpression: external_exports.string().optional()
|
|
129561
129767
|
}).passthrough();
|
|
129562
|
-
var internalCallbacksScheduleContract =
|
|
129768
|
+
var internalCallbacksScheduleContract = c98.router({
|
|
129563
129769
|
cron: {
|
|
129564
129770
|
method: "POST",
|
|
129565
129771
|
path: "/api/internal/callbacks/schedule/cron",
|
|
@@ -129594,13 +129800,13 @@ var internalCallbacksScheduleContract = c97.router({
|
|
|
129594
129800
|
|
|
129595
129801
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
|
|
129596
129802
|
init_esm_shims();
|
|
129597
|
-
var
|
|
129803
|
+
var c99 = initContract();
|
|
129598
129804
|
var audioInputQuotaResponseSchema = external_exports.object({
|
|
129599
129805
|
allowed: external_exports.boolean(),
|
|
129600
129806
|
count: external_exports.number().int().nonnegative(),
|
|
129601
129807
|
limit: external_exports.number().int().positive().nullable()
|
|
129602
129808
|
});
|
|
129603
|
-
var zeroVoiceIoQuotaContract =
|
|
129809
|
+
var zeroVoiceIoQuotaContract = c99.router({
|
|
129604
129810
|
get: {
|
|
129605
129811
|
method: "GET",
|
|
129606
129812
|
path: "/api/zero/voice-io/quota",
|
|
@@ -129616,7 +129822,7 @@ var zeroVoiceIoQuotaContract = c98.router({
|
|
|
129616
129822
|
|
|
129617
129823
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-speech.ts
|
|
129618
129824
|
init_esm_shims();
|
|
129619
|
-
var
|
|
129825
|
+
var c100 = initContract();
|
|
129620
129826
|
var zeroVoiceIoSpeechRequestSchema = external_exports.object({
|
|
129621
129827
|
text: external_exports.unknown().optional(),
|
|
129622
129828
|
voice: external_exports.unknown().optional(),
|
|
@@ -129633,7 +129839,7 @@ var zeroVoiceIoSpeechResponseSchema = external_exports.object({
|
|
|
129633
129839
|
model: external_exports.string(),
|
|
129634
129840
|
voice: external_exports.string()
|
|
129635
129841
|
});
|
|
129636
|
-
var zeroVoiceIoSpeechContract =
|
|
129842
|
+
var zeroVoiceIoSpeechContract = c100.router({
|
|
129637
129843
|
post: {
|
|
129638
129844
|
method: "POST",
|
|
129639
129845
|
path: "/api/zero/voice-io/speech",
|
|
@@ -129655,7 +129861,7 @@ var zeroVoiceIoSpeechContract = c99.router({
|
|
|
129655
129861
|
|
|
129656
129862
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-stt.ts
|
|
129657
129863
|
init_esm_shims();
|
|
129658
|
-
var
|
|
129864
|
+
var c101 = initContract();
|
|
129659
129865
|
var zeroVoiceIoSttResponseSchema = external_exports.object({
|
|
129660
129866
|
text: external_exports.string()
|
|
129661
129867
|
});
|
|
@@ -129665,13 +129871,13 @@ var zeroVoiceIoSttQuotaErrorSchema = apiErrorSchema.extend({
|
|
|
129665
129871
|
limit: external_exports.number().nullable()
|
|
129666
129872
|
}).optional()
|
|
129667
129873
|
});
|
|
129668
|
-
var zeroVoiceIoSttContract =
|
|
129874
|
+
var zeroVoiceIoSttContract = c101.router({
|
|
129669
129875
|
post: {
|
|
129670
129876
|
method: "POST",
|
|
129671
129877
|
path: "/api/zero/voice-io/stt",
|
|
129672
129878
|
headers: authHeadersSchema,
|
|
129673
129879
|
contentType: "multipart/form-data",
|
|
129674
|
-
body:
|
|
129880
|
+
body: c101.type(),
|
|
129675
129881
|
responses: {
|
|
129676
129882
|
200: zeroVoiceIoSttResponseSchema,
|
|
129677
129883
|
400: apiErrorSchema,
|
|
@@ -129687,18 +129893,18 @@ var zeroVoiceIoSttContract = c100.router({
|
|
|
129687
129893
|
|
|
129688
129894
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-tts.ts
|
|
129689
129895
|
init_esm_shims();
|
|
129690
|
-
var
|
|
129896
|
+
var c102 = initContract();
|
|
129691
129897
|
var zeroVoiceIoTtsRequestSchema = external_exports.object({
|
|
129692
129898
|
text: external_exports.unknown().optional()
|
|
129693
129899
|
}).passthrough();
|
|
129694
|
-
var zeroVoiceIoTtsContract =
|
|
129900
|
+
var zeroVoiceIoTtsContract = c102.router({
|
|
129695
129901
|
post: {
|
|
129696
129902
|
method: "POST",
|
|
129697
129903
|
path: "/api/zero/voice-io/tts",
|
|
129698
129904
|
headers: authHeadersSchema,
|
|
129699
129905
|
body: zeroVoiceIoTtsRequestSchema,
|
|
129700
129906
|
responses: {
|
|
129701
|
-
200:
|
|
129907
|
+
200: c102.otherResponse({
|
|
129702
129908
|
contentType: "application/octet-stream",
|
|
129703
129909
|
body: external_exports.unknown()
|
|
129704
129910
|
}),
|
|
@@ -129713,7 +129919,7 @@ var zeroVoiceIoTtsContract = c101.router({
|
|
|
129713
129919
|
|
|
129714
129920
|
// ../../packages/api-contracts/src/contracts/zero-voice-chat.ts
|
|
129715
129921
|
init_esm_shims();
|
|
129716
|
-
var
|
|
129922
|
+
var c103 = initContract();
|
|
129717
129923
|
var voiceChatItemRoleSchema = external_exports.enum([
|
|
129718
129924
|
"user",
|
|
129719
129925
|
"assistant",
|
|
@@ -129810,7 +130016,7 @@ var sessionEndedBodySchema = external_exports.object({
|
|
|
129810
130016
|
relaySessionId: external_exports.uuid()
|
|
129811
130017
|
});
|
|
129812
130018
|
var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
|
|
129813
|
-
var zeroVoiceChatContract =
|
|
130019
|
+
var zeroVoiceChatContract = c103.router({
|
|
129814
130020
|
createSession: {
|
|
129815
130021
|
method: "POST",
|
|
129816
130022
|
path: "/api/zero/voice-chat",
|
|
@@ -129985,7 +130191,7 @@ var zeroVoiceChatContract = c102.router({
|
|
|
129985
130191
|
|
|
129986
130192
|
// ../../packages/api-contracts/src/contracts/zero-uploads.ts
|
|
129987
130193
|
init_esm_shims();
|
|
129988
|
-
var
|
|
130194
|
+
var c104 = initContract();
|
|
129989
130195
|
var prepareRequestSchema = external_exports.object({
|
|
129990
130196
|
filename: external_exports.string().min(1).max(255),
|
|
129991
130197
|
contentType: external_exports.string().min(1).max(200),
|
|
@@ -130012,7 +130218,7 @@ var completeResponseSchema = external_exports.object({
|
|
|
130012
130218
|
size: external_exports.number(),
|
|
130013
130219
|
url: external_exports.string().url()
|
|
130014
130220
|
});
|
|
130015
|
-
var zeroUploadsContract =
|
|
130221
|
+
var zeroUploadsContract = c104.router({
|
|
130016
130222
|
prepare: {
|
|
130017
130223
|
method: "POST",
|
|
130018
130224
|
path: "/api/zero/uploads/prepare",
|
|
@@ -130046,7 +130252,7 @@ var zeroUploadsContract = c103.router({
|
|
|
130046
130252
|
|
|
130047
130253
|
// ../../packages/api-contracts/src/contracts/zero-host.ts
|
|
130048
130254
|
init_esm_shims();
|
|
130049
|
-
var
|
|
130255
|
+
var c105 = initContract();
|
|
130050
130256
|
var hostedSiteSlugSchema = external_exports.string().trim().min(3).max(63).regex(
|
|
130051
130257
|
/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,
|
|
130052
130258
|
"Site slug must use lowercase letters, numbers, and hyphens, and must start and end with a letter or number"
|
|
@@ -130081,7 +130287,7 @@ var hostedSiteCompleteResponseSchema = external_exports.object({
|
|
|
130081
130287
|
url: external_exports.string().url(),
|
|
130082
130288
|
status: external_exports.literal("ready")
|
|
130083
130289
|
});
|
|
130084
|
-
var zeroHostContract =
|
|
130290
|
+
var zeroHostContract = c105.router({
|
|
130085
130291
|
prepare: {
|
|
130086
130292
|
method: "POST",
|
|
130087
130293
|
path: "/api/zero/host/deployments/prepare",
|
|
@@ -130120,7 +130326,7 @@ var zeroHostContract = c104.router({
|
|
|
130120
130326
|
|
|
130121
130327
|
// ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
|
|
130122
130328
|
init_esm_shims();
|
|
130123
|
-
var
|
|
130329
|
+
var c106 = initContract();
|
|
130124
130330
|
var telegramEnvironmentSchema = external_exports.object({
|
|
130125
130331
|
requiredSecrets: external_exports.array(external_exports.string()),
|
|
130126
130332
|
requiredVars: external_exports.array(external_exports.string()),
|
|
@@ -130219,7 +130425,7 @@ var telegramSetupStatusSchema = external_exports.object({
|
|
|
130219
130425
|
var telegramWebhookPathParamsSchema = external_exports.object({
|
|
130220
130426
|
telegramBotId: external_exports.string().min(1)
|
|
130221
130427
|
});
|
|
130222
|
-
var zeroIntegrationsTelegramContract =
|
|
130428
|
+
var zeroIntegrationsTelegramContract = c106.router({
|
|
130223
130429
|
list: {
|
|
130224
130430
|
method: "GET",
|
|
130225
130431
|
path: "/api/integrations/telegram",
|
|
@@ -130262,9 +130468,9 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130262
130468
|
path: "/api/integrations/telegram/:botId",
|
|
130263
130469
|
headers: authHeadersSchema,
|
|
130264
130470
|
pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
|
|
130265
|
-
body:
|
|
130471
|
+
body: c106.noBody(),
|
|
130266
130472
|
responses: {
|
|
130267
|
-
204:
|
|
130473
|
+
204: c106.noBody(),
|
|
130268
130474
|
401: apiErrorSchema,
|
|
130269
130475
|
403: apiErrorSchema,
|
|
130270
130476
|
404: apiErrorSchema
|
|
@@ -130275,10 +130481,10 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130275
130481
|
method: "DELETE",
|
|
130276
130482
|
path: "/api/integrations/telegram/link",
|
|
130277
130483
|
headers: authHeadersSchema,
|
|
130278
|
-
body:
|
|
130484
|
+
body: c106.noBody(),
|
|
130279
130485
|
query: external_exports.object({ botId: external_exports.string().optional() }),
|
|
130280
130486
|
responses: {
|
|
130281
|
-
204:
|
|
130487
|
+
204: c106.noBody(),
|
|
130282
130488
|
401: apiErrorSchema,
|
|
130283
130489
|
404: apiErrorSchema
|
|
130284
130490
|
},
|
|
@@ -130309,7 +130515,7 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130309
130515
|
sig: external_exports.string().optional()
|
|
130310
130516
|
}),
|
|
130311
130517
|
responses: {
|
|
130312
|
-
200:
|
|
130518
|
+
200: c106.otherResponse({
|
|
130313
130519
|
contentType: "application/octet-stream",
|
|
130314
130520
|
body: external_exports.unknown()
|
|
130315
130521
|
}),
|
|
@@ -130324,7 +130530,7 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130324
130530
|
method: "GET",
|
|
130325
130531
|
path: "/api/integrations/telegram/auth-callback",
|
|
130326
130532
|
responses: {
|
|
130327
|
-
200:
|
|
130533
|
+
200: c106.otherResponse({
|
|
130328
130534
|
contentType: "text/html",
|
|
130329
130535
|
body: external_exports.unknown()
|
|
130330
130536
|
})
|
|
@@ -130383,19 +130589,19 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130383
130589
|
pathParams: telegramWebhookPathParamsSchema,
|
|
130384
130590
|
body: external_exports.unknown(),
|
|
130385
130591
|
responses: {
|
|
130386
|
-
200:
|
|
130592
|
+
200: c106.otherResponse({
|
|
130387
130593
|
contentType: "text/plain",
|
|
130388
130594
|
body: external_exports.string()
|
|
130389
130595
|
}),
|
|
130390
|
-
400:
|
|
130596
|
+
400: c106.otherResponse({
|
|
130391
130597
|
contentType: "text/plain",
|
|
130392
130598
|
body: external_exports.string()
|
|
130393
130599
|
}),
|
|
130394
|
-
401:
|
|
130600
|
+
401: c106.otherResponse({
|
|
130395
130601
|
contentType: "text/plain",
|
|
130396
130602
|
body: external_exports.string()
|
|
130397
130603
|
}),
|
|
130398
|
-
404:
|
|
130604
|
+
404: c106.otherResponse({
|
|
130399
130605
|
contentType: "text/plain",
|
|
130400
130606
|
body: external_exports.string()
|
|
130401
130607
|
})
|
|
@@ -130406,7 +130612,7 @@ var zeroIntegrationsTelegramContract = c105.router({
|
|
|
130406
130612
|
|
|
130407
130613
|
// ../../packages/api-contracts/src/contracts/zero-integrations-agentphone.ts
|
|
130408
130614
|
init_esm_shims();
|
|
130409
|
-
var
|
|
130615
|
+
var c107 = initContract();
|
|
130410
130616
|
var agentPhoneConnectBodySchema = external_exports.object({
|
|
130411
130617
|
phoneHandle: external_exports.string().min(1),
|
|
130412
130618
|
agentphoneAgentId: external_exports.string().min(1),
|
|
@@ -130443,7 +130649,7 @@ var agentPhoneStartLinkResponseSchema = external_exports.object({
|
|
|
130443
130649
|
phoneHandle: external_exports.string(),
|
|
130444
130650
|
verificationSent: external_exports.literal(true)
|
|
130445
130651
|
});
|
|
130446
|
-
var zeroIntegrationsAgentPhoneContract =
|
|
130652
|
+
var zeroIntegrationsAgentPhoneContract = c107.router({
|
|
130447
130653
|
connectAgentPhone: {
|
|
130448
130654
|
method: "POST",
|
|
130449
130655
|
path: "/api/agentphone/connect",
|
|
@@ -130461,7 +130667,7 @@ var zeroIntegrationsAgentPhoneContract = c106.router({
|
|
|
130461
130667
|
method: "POST",
|
|
130462
130668
|
path: "/api/agentphone/webhook",
|
|
130463
130669
|
headers: agentPhoneWebhookHeadersSchema,
|
|
130464
|
-
body:
|
|
130670
|
+
body: c107.type(),
|
|
130465
130671
|
responses: {
|
|
130466
130672
|
200: external_exports.string(),
|
|
130467
130673
|
400: external_exports.string(),
|
|
@@ -130501,9 +130707,9 @@ var zeroIntegrationsAgentPhoneContract = c106.router({
|
|
|
130501
130707
|
method: "DELETE",
|
|
130502
130708
|
path: "/api/integrations/agentphone/link",
|
|
130503
130709
|
headers: authHeadersSchema,
|
|
130504
|
-
body:
|
|
130710
|
+
body: c107.noBody(),
|
|
130505
130711
|
responses: {
|
|
130506
|
-
204:
|
|
130712
|
+
204: c107.noBody(),
|
|
130507
130713
|
401: apiErrorSchema,
|
|
130508
130714
|
403: apiErrorSchema,
|
|
130509
130715
|
404: apiErrorSchema
|
|
@@ -130959,9 +131165,9 @@ var CodexEventParser = class {
|
|
|
130959
131165
|
if (!item.changes || item.changes.length === 0) {
|
|
130960
131166
|
return null;
|
|
130961
131167
|
}
|
|
130962
|
-
const changes = item.changes.map((
|
|
130963
|
-
const action =
|
|
130964
|
-
return `${action}: ${
|
|
131168
|
+
const changes = item.changes.map((c108) => {
|
|
131169
|
+
const action = c108.kind === "add" ? "Created" : c108.kind === "modify" ? "Modified" : "Deleted";
|
|
131170
|
+
return `${action}: ${c108.path}`;
|
|
130965
131171
|
}).join("\n");
|
|
130966
131172
|
return {
|
|
130967
131173
|
type: "text",
|
|
@@ -132096,6 +132302,7 @@ export {
|
|
|
132096
132302
|
listLocalBrowserHosts,
|
|
132097
132303
|
deleteLocalBrowserHost,
|
|
132098
132304
|
listLocalBrowserAuditEvents,
|
|
132305
|
+
callZeroMaps,
|
|
132099
132306
|
downloadWebFile,
|
|
132100
132307
|
uploadWebFile,
|
|
132101
132308
|
generateWebVoice,
|
|
@@ -132153,4 +132360,4 @@ undici/lib/web/fetch/body.js:
|
|
|
132153
132360
|
undici/lib/web/websocket/frame.js:
|
|
132154
132361
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
132155
132362
|
*/
|
|
132156
|
-
//# sourceMappingURL=chunk-
|
|
132363
|
+
//# sourceMappingURL=chunk-IGFASJAN.js.map
|