@vm0/cli 9.177.15 → 9.177.17
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.
|
@@ -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) && N.length < max; 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";
|
|
@@ -40712,9 +40712,9 @@ var require_Alias = __commonJS({
|
|
|
40712
40712
|
} else if (identity.isCollection(node2)) {
|
|
40713
40713
|
let count = 0;
|
|
40714
40714
|
for (const item of node2.items) {
|
|
40715
|
-
const
|
|
40716
|
-
if (
|
|
40717
|
-
count =
|
|
40715
|
+
const c103 = getAliasCount(doc, item, anchors2);
|
|
40716
|
+
if (c103 > count)
|
|
40717
|
+
count = c103;
|
|
40718
40718
|
}
|
|
40719
40719
|
return count;
|
|
40720
40720
|
} else if (identity.isPair(node2)) {
|
|
@@ -47730,7 +47730,7 @@ var require_style = __commonJS({
|
|
|
47730
47730
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
|
|
47731
47731
|
"use strict";
|
|
47732
47732
|
init_esm_shims();
|
|
47733
|
-
var
|
|
47733
|
+
var c103 = require_kleur();
|
|
47734
47734
|
var figures = require_figures();
|
|
47735
47735
|
var styles3 = Object.freeze({
|
|
47736
47736
|
password: {
|
|
@@ -47752,14 +47752,14 @@ var require_style = __commonJS({
|
|
|
47752
47752
|
});
|
|
47753
47753
|
var render = (type) => styles3[type] || styles3.default;
|
|
47754
47754
|
var symbols = Object.freeze({
|
|
47755
|
-
aborted:
|
|
47756
|
-
done:
|
|
47757
|
-
exited:
|
|
47758
|
-
default:
|
|
47755
|
+
aborted: c103.red(figures.cross),
|
|
47756
|
+
done: c103.green(figures.tick),
|
|
47757
|
+
exited: c103.yellow(figures.cross),
|
|
47758
|
+
default: c103.cyan("?")
|
|
47759
47759
|
});
|
|
47760
47760
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
47761
|
-
var delimiter = (completing) =>
|
|
47762
|
-
var item = (expandable, expanded) =>
|
|
47761
|
+
var delimiter = (completing) => c103.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
47762
|
+
var item = (expandable, expanded) => c103.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
47763
47763
|
module2.exports = {
|
|
47764
47764
|
styles: styles3,
|
|
47765
47765
|
render,
|
|
@@ -48041,10 +48041,10 @@ var require_text = __commonJS({
|
|
|
48041
48041
|
this.cursor = this.cursor + n;
|
|
48042
48042
|
this.cursorOffset += n;
|
|
48043
48043
|
}
|
|
48044
|
-
_(
|
|
48044
|
+
_(c103, key) {
|
|
48045
48045
|
let s1 = this.value.slice(0, this.cursor);
|
|
48046
48046
|
let s2 = this.value.slice(this.cursor);
|
|
48047
|
-
this.value = `${s1}${
|
|
48047
|
+
this.value = `${s1}${c103}${s2}`;
|
|
48048
48048
|
this.red = false;
|
|
48049
48049
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
48050
48050
|
this.render();
|
|
@@ -48219,8 +48219,8 @@ var require_select = __commonJS({
|
|
|
48219
48219
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
48220
48220
|
this.render();
|
|
48221
48221
|
}
|
|
48222
|
-
_(
|
|
48223
|
-
if (
|
|
48222
|
+
_(c103, key) {
|
|
48223
|
+
if (c103 === " ") return this.submit();
|
|
48224
48224
|
}
|
|
48225
48225
|
get selection() {
|
|
48226
48226
|
return this.choices[this.cursor];
|
|
@@ -48346,12 +48346,12 @@ var require_toggle = __commonJS({
|
|
|
48346
48346
|
this.fire();
|
|
48347
48347
|
this.render();
|
|
48348
48348
|
}
|
|
48349
|
-
_(
|
|
48350
|
-
if (
|
|
48349
|
+
_(c103, key) {
|
|
48350
|
+
if (c103 === " ") {
|
|
48351
48351
|
this.value = !this.value;
|
|
48352
|
-
} else if (
|
|
48352
|
+
} else if (c103 === "1") {
|
|
48353
48353
|
this.value = true;
|
|
48354
|
-
} else if (
|
|
48354
|
+
} else if (c103 === "0") {
|
|
48355
48355
|
this.value = false;
|
|
48356
48356
|
} else return this.bell();
|
|
48357
48357
|
this.render();
|
|
@@ -48859,9 +48859,9 @@ var require_date = __commonJS({
|
|
|
48859
48859
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
48860
48860
|
this.render();
|
|
48861
48861
|
}
|
|
48862
|
-
_(
|
|
48863
|
-
if (/\d/.test(
|
|
48864
|
-
this.typed +=
|
|
48862
|
+
_(c103) {
|
|
48863
|
+
if (/\d/.test(c103)) {
|
|
48864
|
+
this.typed += c103;
|
|
48865
48865
|
this.parts[this.cursor].setTo(this.typed);
|
|
48866
48866
|
this.render();
|
|
48867
48867
|
}
|
|
@@ -48970,8 +48970,8 @@ var require_number = __commonJS({
|
|
|
48970
48970
|
parse(x2) {
|
|
48971
48971
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
48972
48972
|
}
|
|
48973
|
-
valid(
|
|
48974
|
-
return
|
|
48973
|
+
valid(c103) {
|
|
48974
|
+
return c103 === `-` || c103 === `.` && this.float || isNumber.test(c103);
|
|
48975
48975
|
}
|
|
48976
48976
|
reset() {
|
|
48977
48977
|
this.typed = ``;
|
|
@@ -49064,14 +49064,14 @@ var require_number = __commonJS({
|
|
|
49064
49064
|
this.fire();
|
|
49065
49065
|
this.render();
|
|
49066
49066
|
}
|
|
49067
|
-
_(
|
|
49068
|
-
if (!this.valid(
|
|
49067
|
+
_(c103, key) {
|
|
49068
|
+
if (!this.valid(c103)) return this.bell();
|
|
49069
49069
|
const now = Date.now();
|
|
49070
49070
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
49071
|
-
this.typed +=
|
|
49071
|
+
this.typed += c103;
|
|
49072
49072
|
this.lastHit = now;
|
|
49073
49073
|
this.color = `cyan`;
|
|
49074
|
-
if (
|
|
49074
|
+
if (c103 === `.`) return this.fire();
|
|
49075
49075
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
49076
49076
|
if (this.value > this.max) this.value = this.max;
|
|
49077
49077
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -49235,10 +49235,10 @@ var require_multiselect = __commonJS({
|
|
|
49235
49235
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
49236
49236
|
this.render();
|
|
49237
49237
|
}
|
|
49238
|
-
_(
|
|
49239
|
-
if (
|
|
49238
|
+
_(c103, key) {
|
|
49239
|
+
if (c103 === " ") {
|
|
49240
49240
|
this.handleSpaceToggle();
|
|
49241
|
-
} else if (
|
|
49241
|
+
} else if (c103 === "a") {
|
|
49242
49242
|
this.toggleAll();
|
|
49243
49243
|
} else {
|
|
49244
49244
|
return this.bell();
|
|
@@ -49479,10 +49479,10 @@ var require_autocomplete = __commonJS({
|
|
|
49479
49479
|
this.out.write("\n");
|
|
49480
49480
|
this.close();
|
|
49481
49481
|
}
|
|
49482
|
-
_(
|
|
49482
|
+
_(c103, key) {
|
|
49483
49483
|
let s1 = this.input.slice(0, this.cursor);
|
|
49484
49484
|
let s2 = this.input.slice(this.cursor);
|
|
49485
|
-
this.input = `${s1}${
|
|
49485
|
+
this.input = `${s1}${c103}${s2}`;
|
|
49486
49486
|
this.cursor = s1.length + 1;
|
|
49487
49487
|
this.complete(this.render);
|
|
49488
49488
|
this.render();
|
|
@@ -49682,15 +49682,15 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
49682
49682
|
this.render();
|
|
49683
49683
|
}
|
|
49684
49684
|
}
|
|
49685
|
-
handleInputChange(
|
|
49686
|
-
this.inputValue = this.inputValue +
|
|
49685
|
+
handleInputChange(c103) {
|
|
49686
|
+
this.inputValue = this.inputValue + c103;
|
|
49687
49687
|
this.updateFilteredOptions();
|
|
49688
49688
|
}
|
|
49689
|
-
_(
|
|
49690
|
-
if (
|
|
49689
|
+
_(c103, key) {
|
|
49690
|
+
if (c103 === " ") {
|
|
49691
49691
|
this.handleSpaceToggle();
|
|
49692
49692
|
} else {
|
|
49693
|
-
this.handleInputChange(
|
|
49693
|
+
this.handleInputChange(c103);
|
|
49694
49694
|
}
|
|
49695
49695
|
}
|
|
49696
49696
|
renderInstructions() {
|
|
@@ -49796,12 +49796,12 @@ var require_confirm = __commonJS({
|
|
|
49796
49796
|
this.out.write("\n");
|
|
49797
49797
|
this.close();
|
|
49798
49798
|
}
|
|
49799
|
-
_(
|
|
49800
|
-
if (
|
|
49799
|
+
_(c103, key) {
|
|
49800
|
+
if (c103.toLowerCase() === "y") {
|
|
49801
49801
|
this.value = true;
|
|
49802
49802
|
return this.submit();
|
|
49803
49803
|
}
|
|
49804
|
-
if (
|
|
49804
|
+
if (c103.toLowerCase() === "n") {
|
|
49805
49805
|
this.value = false;
|
|
49806
49806
|
return this.submit();
|
|
49807
49807
|
}
|
|
@@ -50242,7 +50242,7 @@ var require_style2 = __commonJS({
|
|
|
50242
50242
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
|
|
50243
50243
|
"use strict";
|
|
50244
50244
|
init_esm_shims();
|
|
50245
|
-
var
|
|
50245
|
+
var c103 = require_kleur();
|
|
50246
50246
|
var figures = require_figures2();
|
|
50247
50247
|
var styles3 = Object.freeze({
|
|
50248
50248
|
password: { scale: 1, render: (input) => "*".repeat(input.length) },
|
|
@@ -50252,14 +50252,14 @@ var require_style2 = __commonJS({
|
|
|
50252
50252
|
});
|
|
50253
50253
|
var render = (type) => styles3[type] || styles3.default;
|
|
50254
50254
|
var symbols = Object.freeze({
|
|
50255
|
-
aborted:
|
|
50256
|
-
done:
|
|
50257
|
-
exited:
|
|
50258
|
-
default:
|
|
50255
|
+
aborted: c103.red(figures.cross),
|
|
50256
|
+
done: c103.green(figures.tick),
|
|
50257
|
+
exited: c103.yellow(figures.cross),
|
|
50258
|
+
default: c103.cyan("?")
|
|
50259
50259
|
});
|
|
50260
50260
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
50261
|
-
var delimiter = (completing) =>
|
|
50262
|
-
var item = (expandable, expanded) =>
|
|
50261
|
+
var delimiter = (completing) => c103.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
50262
|
+
var item = (expandable, expanded) => c103.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
50263
50263
|
module2.exports = {
|
|
50264
50264
|
styles: styles3,
|
|
50265
50265
|
render,
|
|
@@ -50492,10 +50492,10 @@ var require_text2 = __commonJS({
|
|
|
50492
50492
|
this.cursor = this.cursor + n;
|
|
50493
50493
|
this.cursorOffset += n;
|
|
50494
50494
|
}
|
|
50495
|
-
_(
|
|
50495
|
+
_(c103, key) {
|
|
50496
50496
|
let s1 = this.value.slice(0, this.cursor);
|
|
50497
50497
|
let s2 = this.value.slice(this.cursor);
|
|
50498
|
-
this.value = `${s1}${
|
|
50498
|
+
this.value = `${s1}${c103}${s2}`;
|
|
50499
50499
|
this.red = false;
|
|
50500
50500
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
50501
50501
|
this.render();
|
|
@@ -50669,8 +50669,8 @@ var require_select2 = __commonJS({
|
|
|
50669
50669
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
50670
50670
|
this.render();
|
|
50671
50671
|
}
|
|
50672
|
-
_(
|
|
50673
|
-
if (
|
|
50672
|
+
_(c103, key) {
|
|
50673
|
+
if (c103 === " ") return this.submit();
|
|
50674
50674
|
}
|
|
50675
50675
|
get selection() {
|
|
50676
50676
|
return this.choices[this.cursor];
|
|
@@ -50794,12 +50794,12 @@ var require_toggle2 = __commonJS({
|
|
|
50794
50794
|
this.fire();
|
|
50795
50795
|
this.render();
|
|
50796
50796
|
}
|
|
50797
|
-
_(
|
|
50798
|
-
if (
|
|
50797
|
+
_(c103, key) {
|
|
50798
|
+
if (c103 === " ") {
|
|
50799
50799
|
this.value = !this.value;
|
|
50800
|
-
} else if (
|
|
50800
|
+
} else if (c103 === "1") {
|
|
50801
50801
|
this.value = true;
|
|
50802
|
-
} else if (
|
|
50802
|
+
} else if (c103 === "0") {
|
|
50803
50803
|
this.value = false;
|
|
50804
50804
|
} else return this.bell();
|
|
50805
50805
|
this.render();
|
|
@@ -51255,9 +51255,9 @@ var require_date2 = __commonJS({
|
|
|
51255
51255
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
51256
51256
|
this.render();
|
|
51257
51257
|
}
|
|
51258
|
-
_(
|
|
51259
|
-
if (/\d/.test(
|
|
51260
|
-
this.typed +=
|
|
51258
|
+
_(c103) {
|
|
51259
|
+
if (/\d/.test(c103)) {
|
|
51260
|
+
this.typed += c103;
|
|
51261
51261
|
this.parts[this.cursor].setTo(this.typed);
|
|
51262
51262
|
this.render();
|
|
51263
51263
|
}
|
|
@@ -51339,8 +51339,8 @@ var require_number2 = __commonJS({
|
|
|
51339
51339
|
parse(x2) {
|
|
51340
51340
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
51341
51341
|
}
|
|
51342
|
-
valid(
|
|
51343
|
-
return
|
|
51342
|
+
valid(c103) {
|
|
51343
|
+
return c103 === `-` || c103 === `.` && this.float || isNumber.test(c103);
|
|
51344
51344
|
}
|
|
51345
51345
|
reset() {
|
|
51346
51346
|
this.typed = ``;
|
|
@@ -51427,14 +51427,14 @@ var require_number2 = __commonJS({
|
|
|
51427
51427
|
this.fire();
|
|
51428
51428
|
this.render();
|
|
51429
51429
|
}
|
|
51430
|
-
_(
|
|
51431
|
-
if (!this.valid(
|
|
51430
|
+
_(c103, key) {
|
|
51431
|
+
if (!this.valid(c103)) return this.bell();
|
|
51432
51432
|
const now = Date.now();
|
|
51433
51433
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
51434
|
-
this.typed +=
|
|
51434
|
+
this.typed += c103;
|
|
51435
51435
|
this.lastHit = now;
|
|
51436
51436
|
this.color = `cyan`;
|
|
51437
|
-
if (
|
|
51437
|
+
if (c103 === `.`) return this.fire();
|
|
51438
51438
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
51439
51439
|
if (this.value > this.max) this.value = this.max;
|
|
51440
51440
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -51596,10 +51596,10 @@ var require_multiselect2 = __commonJS({
|
|
|
51596
51596
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
51597
51597
|
this.render();
|
|
51598
51598
|
}
|
|
51599
|
-
_(
|
|
51600
|
-
if (
|
|
51599
|
+
_(c103, key) {
|
|
51600
|
+
if (c103 === " ") {
|
|
51601
51601
|
this.handleSpaceToggle();
|
|
51602
|
-
} else if (
|
|
51602
|
+
} else if (c103 === "a") {
|
|
51603
51603
|
this.toggleAll();
|
|
51604
51604
|
} else {
|
|
51605
51605
|
return this.bell();
|
|
@@ -51796,10 +51796,10 @@ var require_autocomplete2 = __commonJS({
|
|
|
51796
51796
|
this.out.write("\n");
|
|
51797
51797
|
this.close();
|
|
51798
51798
|
}
|
|
51799
|
-
_(
|
|
51799
|
+
_(c103, key) {
|
|
51800
51800
|
let s1 = this.input.slice(0, this.cursor);
|
|
51801
51801
|
let s2 = this.input.slice(this.cursor);
|
|
51802
|
-
this.input = `${s1}${
|
|
51802
|
+
this.input = `${s1}${c103}${s2}`;
|
|
51803
51803
|
this.cursor = s1.length + 1;
|
|
51804
51804
|
this.complete(this.render);
|
|
51805
51805
|
this.render();
|
|
@@ -52002,15 +52002,15 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
52002
52002
|
this.render();
|
|
52003
52003
|
}
|
|
52004
52004
|
}
|
|
52005
|
-
handleInputChange(
|
|
52006
|
-
this.inputValue = this.inputValue +
|
|
52005
|
+
handleInputChange(c103) {
|
|
52006
|
+
this.inputValue = this.inputValue + c103;
|
|
52007
52007
|
this.updateFilteredOptions();
|
|
52008
52008
|
}
|
|
52009
|
-
_(
|
|
52010
|
-
if (
|
|
52009
|
+
_(c103, key) {
|
|
52010
|
+
if (c103 === " ") {
|
|
52011
52011
|
this.handleSpaceToggle();
|
|
52012
52012
|
} else {
|
|
52013
|
-
this.handleInputChange(
|
|
52013
|
+
this.handleInputChange(c103);
|
|
52014
52014
|
}
|
|
52015
52015
|
}
|
|
52016
52016
|
renderInstructions() {
|
|
@@ -52117,12 +52117,12 @@ var require_confirm2 = __commonJS({
|
|
|
52117
52117
|
this.out.write("\n");
|
|
52118
52118
|
this.close();
|
|
52119
52119
|
}
|
|
52120
|
-
_(
|
|
52121
|
-
if (
|
|
52120
|
+
_(c103, key) {
|
|
52121
|
+
if (c103.toLowerCase() === "y") {
|
|
52122
52122
|
this.value = true;
|
|
52123
52123
|
return this.submit();
|
|
52124
52124
|
}
|
|
52125
|
-
if (
|
|
52125
|
+
if (c103.toLowerCase() === "n") {
|
|
52126
52126
|
this.value = false;
|
|
52127
52127
|
return this.submit();
|
|
52128
52128
|
}
|
|
@@ -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.177.
|
|
74086
|
+
release: "9.177.17",
|
|
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.177.
|
|
74105
|
+
version: "9.177.17",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -77430,7 +77430,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
77430
77430
|
function isValidBase64URL(data) {
|
|
77431
77431
|
if (!base64url.test(data))
|
|
77432
77432
|
return false;
|
|
77433
|
-
const base643 = data.replace(/[-_]/g, (
|
|
77433
|
+
const base643 = data.replace(/[-_]/g, (c103) => c103 === "-" ? "+" : "/");
|
|
77434
77434
|
const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
|
|
77435
77435
|
return isValidBase64(padded);
|
|
77436
77436
|
}
|
|
@@ -87541,9 +87541,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
|
87541
87541
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
87542
87542
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
87543
87543
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
87544
|
-
const
|
|
87545
|
-
inst.minDate =
|
|
87546
|
-
inst.maxDate =
|
|
87544
|
+
const c103 = inst._zod.bag;
|
|
87545
|
+
inst.minDate = c103.minimum ? new Date(c103.minimum) : null;
|
|
87546
|
+
inst.maxDate = c103.maximum ? new Date(c103.maximum) : null;
|
|
87547
87547
|
});
|
|
87548
87548
|
function date3(params) {
|
|
87549
87549
|
return _date(ZodDate, params);
|
|
@@ -88716,10 +88716,18 @@ var ACTIONABLE_RUN_ERROR_SNIPPETS = [
|
|
|
88716
88716
|
"Cannot continue session",
|
|
88717
88717
|
"Invalid signature in thinking block",
|
|
88718
88718
|
"Run cancelled",
|
|
88719
|
+
// Upstream model usage/quota limits are shown verbatim (the CLI already
|
|
88720
|
+
// emits clean, user-friendly copy with reset time and upgrade links).
|
|
88721
|
+
// Codex: "You've hit your usage limit …"
|
|
88719
88722
|
"usage limit",
|
|
88720
88723
|
"usage_limit",
|
|
88721
88724
|
"usage-limit",
|
|
88722
|
-
"UsageLimit"
|
|
88725
|
+
"UsageLimit",
|
|
88726
|
+
// Claude Code subscription limits:
|
|
88727
|
+
// "You've hit your session limit · resets …"
|
|
88728
|
+
// "You've hit your weekly limit · resets …"
|
|
88729
|
+
"session limit",
|
|
88730
|
+
"weekly limit"
|
|
88723
88731
|
];
|
|
88724
88732
|
|
|
88725
88733
|
// src/lib/api/core/client-factory.ts
|
|
@@ -98439,8 +98447,10 @@ var googleAds = {
|
|
|
98439
98447
|
tokenUrl: OAUTH_TOKEN_URL16,
|
|
98440
98448
|
accessToken: "GOOGLE_ADS_ACCESS_TOKEN",
|
|
98441
98449
|
refreshToken: "GOOGLE_ADS_REFRESH_TOKEN",
|
|
98450
|
+
platformSecrets: ["GOOGLE_ADS_DEVELOPER_TOKEN"],
|
|
98442
98451
|
envBindings: {
|
|
98443
|
-
GOOGLE_ADS_TOKEN: "$secrets.GOOGLE_ADS_ACCESS_TOKEN"
|
|
98452
|
+
GOOGLE_ADS_TOKEN: "$secrets.GOOGLE_ADS_ACCESS_TOKEN",
|
|
98453
|
+
GOOGLE_ADS_DEVELOPER_TOKEN: "$secrets.GOOGLE_ADS_DEVELOPER_TOKEN"
|
|
98444
98454
|
}
|
|
98445
98455
|
},
|
|
98446
98456
|
revoke: { kind: "none" }
|
|
@@ -101989,6 +101999,48 @@ var heygen = {
|
|
|
101989
101999
|
}
|
|
101990
102000
|
};
|
|
101991
102001
|
|
|
102002
|
+
// ../../packages/connectors/src/connectors/hitem3d.ts
|
|
102003
|
+
init_esm_shims();
|
|
102004
|
+
var hitem3d = {
|
|
102005
|
+
hitem3d: {
|
|
102006
|
+
label: "Hitem3D",
|
|
102007
|
+
category: "ai-image-video",
|
|
102008
|
+
generation: ["image"],
|
|
102009
|
+
tags: ["hi3d", "sparc3d", "ultra3d", "image-to-3d", "3d"],
|
|
102010
|
+
helpText: "Connect your Hitem3D account to generate 3D models from images through the Hitem3D API",
|
|
102011
|
+
authMethods: {
|
|
102012
|
+
"api-token": {
|
|
102013
|
+
label: "API Credentials",
|
|
102014
|
+
helpText: "1. Sign in to the [Hitem3D Developer Platform](https://platform.hitem3d.ai)\n2. Purchase or enable a resource package\n3. Open the API Key page and create an enabled API key\n4. Copy the client ID and client secret. Paste them here.",
|
|
102015
|
+
grant: {
|
|
102016
|
+
kind: "manual",
|
|
102017
|
+
fields: {
|
|
102018
|
+
HITEM3D_CLIENT_ID: {
|
|
102019
|
+
label: "Client ID",
|
|
102020
|
+
required: true,
|
|
102021
|
+
placeholder: "hitem3d_client_id"
|
|
102022
|
+
},
|
|
102023
|
+
HITEM3D_CLIENT_SECRET: {
|
|
102024
|
+
label: "Client Secret",
|
|
102025
|
+
required: true,
|
|
102026
|
+
placeholder: "hitem3d_client_secret"
|
|
102027
|
+
}
|
|
102028
|
+
}
|
|
102029
|
+
},
|
|
102030
|
+
access: {
|
|
102031
|
+
kind: "static",
|
|
102032
|
+
envBindings: {
|
|
102033
|
+
HITEM3D_CLIENT_ID: "$secrets.HITEM3D_CLIENT_ID",
|
|
102034
|
+
HITEM3D_CLIENT_SECRET: "$secrets.HITEM3D_CLIENT_SECRET"
|
|
102035
|
+
}
|
|
102036
|
+
},
|
|
102037
|
+
revoke: { kind: "none" }
|
|
102038
|
+
}
|
|
102039
|
+
},
|
|
102040
|
+
defaultAuthMethod: "api-token"
|
|
102041
|
+
}
|
|
102042
|
+
};
|
|
102043
|
+
|
|
101992
102044
|
// ../../packages/connectors/src/connectors/htmlcsstoimage.ts
|
|
101993
102045
|
init_esm_shims();
|
|
101994
102046
|
var htmlcsstoimage = {
|
|
@@ -106198,6 +106250,29 @@ var testOauthDevice = {
|
|
|
106198
106250
|
}
|
|
106199
106251
|
},
|
|
106200
106252
|
revoke: { kind: "none" }
|
|
106253
|
+
},
|
|
106254
|
+
api: {
|
|
106255
|
+
featureFlag: "testOauthConnector" /* TestOauthConnector */,
|
|
106256
|
+
label: "API Device Authorization",
|
|
106257
|
+
helpText: "Secondary test-only OAuth device method used to exercise method-aware device authorization sessions.",
|
|
106258
|
+
client: {
|
|
106259
|
+
clientRegistration: "static",
|
|
106260
|
+
clientType: "public",
|
|
106261
|
+
clientId: "test-oauth-device-api-client"
|
|
106262
|
+
},
|
|
106263
|
+
grant: {
|
|
106264
|
+
kind: "device-auth",
|
|
106265
|
+
deviceAuthUrl: "/api/test/oauth-provider/device/code",
|
|
106266
|
+
tokenUrl: "/api/test/oauth-provider/token",
|
|
106267
|
+
scopes: ["read"]
|
|
106268
|
+
},
|
|
106269
|
+
access: {
|
|
106270
|
+
kind: "static",
|
|
106271
|
+
envBindings: {
|
|
106272
|
+
TEST_OAUTH_DEVICE_API_TOKEN: "$secrets.TEST_OAUTH_DEVICE_API_ACCESS_TOKEN"
|
|
106273
|
+
}
|
|
106274
|
+
},
|
|
106275
|
+
revoke: { kind: "none" }
|
|
106201
106276
|
}
|
|
106202
106277
|
},
|
|
106203
106278
|
defaultAuthMethod: "oauth"
|
|
@@ -107212,6 +107287,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
107212
107287
|
...groq,
|
|
107213
107288
|
...helicone,
|
|
107214
107289
|
...heygen,
|
|
107290
|
+
...hitem3d,
|
|
107215
107291
|
...htmlcsstoimage,
|
|
107216
107292
|
...honcho,
|
|
107217
107293
|
...huggingFace,
|
|
@@ -109356,6 +109432,7 @@ init_esm_shims();
|
|
|
109356
109432
|
// ../../packages/api-contracts/src/contracts/chat-threads.ts
|
|
109357
109433
|
init_esm_shims();
|
|
109358
109434
|
var c21 = initContract();
|
|
109435
|
+
var MODEL_FIRST_SELECTION_PROVIDER_ID = "00000000-0000-4000-8000-000000000000";
|
|
109359
109436
|
var attachFileSchema = external_exports.object({
|
|
109360
109437
|
id: external_exports.string(),
|
|
109361
109438
|
filename: external_exports.string(),
|
|
@@ -109517,6 +109594,14 @@ var chatThreadDetailSchema = external_exports.object({
|
|
|
109517
109594
|
var modelSelectionRequestSchema = external_exports.object({
|
|
109518
109595
|
modelProviderId: external_exports.string().uuid(),
|
|
109519
109596
|
selectedModel: external_exports.string().min(1)
|
|
109597
|
+
}).superRefine((value, ctx) => {
|
|
109598
|
+
if (value.modelProviderId === MODEL_FIRST_SELECTION_PROVIDER_ID && !isSupportedRunModel(value.selectedModel)) {
|
|
109599
|
+
ctx.addIssue({
|
|
109600
|
+
code: external_exports.ZodIssueCode.custom,
|
|
109601
|
+
path: ["selectedModel"],
|
|
109602
|
+
message: "Invalid model selection"
|
|
109603
|
+
});
|
|
109604
|
+
}
|
|
109520
109605
|
});
|
|
109521
109606
|
var chatThreadsContract = c21.router({
|
|
109522
109607
|
create: {
|
|
@@ -116028,26 +116113,12 @@ var vercelFirewall = {
|
|
|
116028
116113
|
|
|
116029
116114
|
// ../../packages/connectors/src/connector-utils.ts
|
|
116030
116115
|
init_esm_shims();
|
|
116031
|
-
|
|
116032
|
-
// ../../packages/connectors/src/auth-providers/oauth/google-connectors.ts
|
|
116033
|
-
init_esm_shims();
|
|
116034
|
-
var GOOGLE_OAUTH_CONNECTOR_TYPES = [
|
|
116035
|
-
"gmail",
|
|
116036
|
-
"google-ads",
|
|
116037
|
-
"google-calendar",
|
|
116038
|
-
"google-docs",
|
|
116039
|
-
"google-drive",
|
|
116040
|
-
"google-meet",
|
|
116041
|
-
"google-sheets"
|
|
116042
|
-
];
|
|
116043
|
-
var GOOGLE_OAUTH_CONNECTOR_TYPE_SET = new Set(GOOGLE_OAUTH_CONNECTOR_TYPES);
|
|
116044
|
-
|
|
116045
|
-
// ../../packages/connectors/src/connector-utils.ts
|
|
116046
116116
|
var CONNECTOR_AUTH_METHOD_PRIORITY = {
|
|
116047
116117
|
oauth: 0,
|
|
116048
116118
|
"api-token": 1,
|
|
116049
116119
|
api: 2
|
|
116050
116120
|
};
|
|
116121
|
+
var CONNECTOR_SECRET_REF_PREFIX = "$secrets.";
|
|
116051
116122
|
function connectorAuthMethodPriority(authMethod) {
|
|
116052
116123
|
return CONNECTOR_AUTH_METHOD_PRIORITY[authMethod];
|
|
116053
116124
|
}
|
|
@@ -116084,6 +116155,32 @@ function connectorAccessEnvBindings(access) {
|
|
|
116084
116155
|
return {};
|
|
116085
116156
|
}
|
|
116086
116157
|
}
|
|
116158
|
+
function connectorAccessPlatformSecrets(access) {
|
|
116159
|
+
switch (access.kind) {
|
|
116160
|
+
case "static":
|
|
116161
|
+
case "refresh-token":
|
|
116162
|
+
return access.platformSecrets ?? [];
|
|
116163
|
+
case "none":
|
|
116164
|
+
return [];
|
|
116165
|
+
}
|
|
116166
|
+
}
|
|
116167
|
+
function connectorOwnedAccessSecretBindingEntries(args) {
|
|
116168
|
+
const platformSecretNames = new Set(
|
|
116169
|
+
args.platformSecrets
|
|
116170
|
+
);
|
|
116171
|
+
const entries = [];
|
|
116172
|
+
for (const [envName, valueRef] of Object.entries(args.envBindings)) {
|
|
116173
|
+
if (!valueRef.startsWith(CONNECTOR_SECRET_REF_PREFIX)) {
|
|
116174
|
+
continue;
|
|
116175
|
+
}
|
|
116176
|
+
const secretName = valueRef.slice(CONNECTOR_SECRET_REF_PREFIX.length);
|
|
116177
|
+
if (platformSecretNames.has(secretName)) {
|
|
116178
|
+
continue;
|
|
116179
|
+
}
|
|
116180
|
+
entries.push({ envName, secretName });
|
|
116181
|
+
}
|
|
116182
|
+
return entries;
|
|
116183
|
+
}
|
|
116087
116184
|
function connectorGrantScopes(grant) {
|
|
116088
116185
|
switch (grant?.kind) {
|
|
116089
116186
|
case "auth-code":
|
|
@@ -116104,7 +116201,7 @@ function getConnectorGenerationTypes(type) {
|
|
|
116104
116201
|
const config4 = CONNECTOR_TYPES[type];
|
|
116105
116202
|
return "generation" in config4 ? config4.generation ?? [] : [];
|
|
116106
116203
|
}
|
|
116107
|
-
function
|
|
116204
|
+
function connectorMethodOwnedSecretNames(method) {
|
|
116108
116205
|
if (!method) {
|
|
116109
116206
|
return [];
|
|
116110
116207
|
}
|
|
@@ -116115,17 +116212,22 @@ function connectorMethodSecretNames(method) {
|
|
|
116115
116212
|
names.add(name);
|
|
116116
116213
|
}
|
|
116117
116214
|
}
|
|
116118
|
-
for (const
|
|
116119
|
-
connectorAccessEnvBindings(method.access)
|
|
116120
|
-
|
|
116121
|
-
|
|
116122
|
-
|
|
116123
|
-
}
|
|
116215
|
+
for (const { secretName } of connectorOwnedAccessSecretBindingEntries({
|
|
116216
|
+
envBindings: connectorAccessEnvBindings(method.access),
|
|
116217
|
+
platformSecrets: connectorAccessPlatformSecrets(method.access)
|
|
116218
|
+
})) {
|
|
116219
|
+
names.add(secretName);
|
|
116124
116220
|
}
|
|
116125
116221
|
if (method.access.kind === "refresh-token") {
|
|
116126
116222
|
names.add(method.access.accessToken);
|
|
116127
116223
|
names.add(method.access.refreshToken);
|
|
116128
116224
|
}
|
|
116225
|
+
const platformSecretNames = new Set(
|
|
116226
|
+
connectorAccessPlatformSecrets(method.access)
|
|
116227
|
+
);
|
|
116228
|
+
for (const secretName of platformSecretNames) {
|
|
116229
|
+
names.delete(secretName);
|
|
116230
|
+
}
|
|
116129
116231
|
return [...names];
|
|
116130
116232
|
}
|
|
116131
116233
|
function getConnectorAuthMethodEnvBindings(type, authMethod) {
|
|
@@ -116147,7 +116249,7 @@ function getConnectorEnvNamesForSecret(secretName) {
|
|
|
116147
116249
|
for (const type of allTypes) {
|
|
116148
116250
|
const config4 = CONNECTOR_TYPES[type];
|
|
116149
116251
|
const found = Object.values(config4.authMethods).some((method) => {
|
|
116150
|
-
return
|
|
116252
|
+
return connectorMethodOwnedSecretNames(method).includes(secretName);
|
|
116151
116253
|
});
|
|
116152
116254
|
if (!found) {
|
|
116153
116255
|
continue;
|
|
@@ -116212,7 +116314,7 @@ function getConnectorTypeForSecretName(name) {
|
|
|
116212
116314
|
}
|
|
116213
116315
|
}
|
|
116214
116316
|
for (const method of Object.values(config4.authMethods)) {
|
|
116215
|
-
if (
|
|
116317
|
+
if (connectorMethodOwnedSecretNames(method).includes(name)) {
|
|
116216
116318
|
return type;
|
|
116217
116319
|
}
|
|
116218
116320
|
}
|
|
@@ -121532,6 +121634,43 @@ var heliconeFirewall = {
|
|
|
121532
121634
|
]
|
|
121533
121635
|
};
|
|
121534
121636
|
|
|
121637
|
+
// ../../packages/connectors/src/firewalls/hitem3d.generated.ts
|
|
121638
|
+
init_esm_shims();
|
|
121639
|
+
var hitem3dFirewall = {
|
|
121640
|
+
name: "hitem3d",
|
|
121641
|
+
description: "Hitem3D API",
|
|
121642
|
+
placeholders: {
|
|
121643
|
+
HITEM3D_CLIENT_ID: "hitem3d_client_id_CoffeeSafeLocalCoffeeSafeLocal",
|
|
121644
|
+
HITEM3D_CLIENT_SECRET: "hitem3d_client_secret_CoffeeSafeLocalCoffeeSafeLocal"
|
|
121645
|
+
},
|
|
121646
|
+
apis: [
|
|
121647
|
+
{
|
|
121648
|
+
base: "https://api.hitem3d.ai/open-api/v1/auth/token",
|
|
121649
|
+
auth: {
|
|
121650
|
+
headers: {
|
|
121651
|
+
Authorization: "${{ basic(secrets.HITEM3D_CLIENT_ID, secrets.HITEM3D_CLIENT_SECRET) }}"
|
|
121652
|
+
}
|
|
121653
|
+
},
|
|
121654
|
+
permissions: [
|
|
121655
|
+
{
|
|
121656
|
+
name: "auth-token",
|
|
121657
|
+
description: "Obtain a Hitem3D API access token",
|
|
121658
|
+
rules: ["POST /"]
|
|
121659
|
+
}
|
|
121660
|
+
]
|
|
121661
|
+
},
|
|
121662
|
+
{
|
|
121663
|
+
base: "https://mcp.hitem3d.ai/mcp",
|
|
121664
|
+
auth: {
|
|
121665
|
+
headers: {
|
|
121666
|
+
Authorization: "${{ basic(secrets.HITEM3D_CLIENT_ID, secrets.HITEM3D_CLIENT_SECRET) }}"
|
|
121667
|
+
}
|
|
121668
|
+
},
|
|
121669
|
+
permissions: []
|
|
121670
|
+
}
|
|
121671
|
+
]
|
|
121672
|
+
};
|
|
121673
|
+
|
|
121535
121674
|
// ../../packages/connectors/src/firewalls/htmlcsstoimage.generated.ts
|
|
121536
121675
|
init_esm_shims();
|
|
121537
121676
|
var htmlcsstoimageFirewall = {
|
|
@@ -127436,6 +127575,7 @@ var CONNECTOR_FIREWALLS = {
|
|
|
127436
127575
|
gumroad: gumroadFirewall,
|
|
127437
127576
|
heygen: heygenFirewall,
|
|
127438
127577
|
helicone: heliconeFirewall,
|
|
127578
|
+
hitem3d: hitem3dFirewall,
|
|
127439
127579
|
htmlcsstoimage: htmlcsstoimageFirewall,
|
|
127440
127580
|
honcho: honchoFirewall,
|
|
127441
127581
|
hubspot: hubspotFirewall,
|
|
@@ -130062,9 +130202,72 @@ var skillFrontmatterSchema = external_exports.object({
|
|
|
130062
130202
|
description: external_exports.string().optional()
|
|
130063
130203
|
});
|
|
130064
130204
|
|
|
130065
|
-
// ../../packages/api-contracts/src/contracts/zero-
|
|
130205
|
+
// ../../packages/api-contracts/src/contracts/zero-user-permission-grants.ts
|
|
130066
130206
|
init_esm_shims();
|
|
130067
130207
|
var c61 = initContract();
|
|
130208
|
+
var agentIdSchema = external_exports.string().uuid();
|
|
130209
|
+
var connectorRefSchema = external_exports.string().min(1).max(64);
|
|
130210
|
+
var permissionSchema = external_exports.string().min(1).max(128);
|
|
130211
|
+
var userPermissionGrantActionSchema = external_exports.enum(["allow", "deny"]);
|
|
130212
|
+
var userPermissionGrantTtlSecondsSchema = external_exports.union([
|
|
130213
|
+
external_exports.literal(300),
|
|
130214
|
+
external_exports.literal(900),
|
|
130215
|
+
external_exports.literal(3600),
|
|
130216
|
+
external_exports.literal(86400)
|
|
130217
|
+
]);
|
|
130218
|
+
var userPermissionGrantResponseSchema = external_exports.object({
|
|
130219
|
+
agentId: agentIdSchema,
|
|
130220
|
+
connectorRef: connectorRefSchema,
|
|
130221
|
+
permission: permissionSchema,
|
|
130222
|
+
action: userPermissionGrantActionSchema,
|
|
130223
|
+
expiresAt: external_exports.string().nullable(),
|
|
130224
|
+
createdAt: external_exports.string(),
|
|
130225
|
+
updatedAt: external_exports.string()
|
|
130226
|
+
});
|
|
130227
|
+
var listUserPermissionGrantsQuerySchema = external_exports.object({
|
|
130228
|
+
agentId: agentIdSchema
|
|
130229
|
+
});
|
|
130230
|
+
var upsertUserPermissionGrantRequestSchema = external_exports.object({
|
|
130231
|
+
agentId: agentIdSchema,
|
|
130232
|
+
connectorRef: connectorRefSchema,
|
|
130233
|
+
permission: permissionSchema,
|
|
130234
|
+
action: userPermissionGrantActionSchema,
|
|
130235
|
+
ttlSeconds: userPermissionGrantTtlSecondsSchema
|
|
130236
|
+
});
|
|
130237
|
+
var zeroUserPermissionGrantsContract = c61.router({
|
|
130238
|
+
list: {
|
|
130239
|
+
method: "GET",
|
|
130240
|
+
path: "/api/zero/user-permission-grants",
|
|
130241
|
+
headers: authHeadersSchema,
|
|
130242
|
+
query: listUserPermissionGrantsQuerySchema,
|
|
130243
|
+
responses: {
|
|
130244
|
+
200: external_exports.array(userPermissionGrantResponseSchema),
|
|
130245
|
+
400: apiErrorSchema,
|
|
130246
|
+
401: apiErrorSchema,
|
|
130247
|
+
403: apiErrorSchema,
|
|
130248
|
+
404: apiErrorSchema
|
|
130249
|
+
},
|
|
130250
|
+
summary: "List current user's active permission grants for an agent"
|
|
130251
|
+
},
|
|
130252
|
+
upsert: {
|
|
130253
|
+
method: "PUT",
|
|
130254
|
+
path: "/api/zero/user-permission-grants",
|
|
130255
|
+
headers: authHeadersSchema,
|
|
130256
|
+
body: upsertUserPermissionGrantRequestSchema,
|
|
130257
|
+
responses: {
|
|
130258
|
+
200: userPermissionGrantResponseSchema,
|
|
130259
|
+
400: apiErrorSchema,
|
|
130260
|
+
401: apiErrorSchema,
|
|
130261
|
+
403: apiErrorSchema,
|
|
130262
|
+
404: apiErrorSchema
|
|
130263
|
+
},
|
|
130264
|
+
summary: "Upsert current user's permission grant for an agent"
|
|
130265
|
+
}
|
|
130266
|
+
});
|
|
130267
|
+
|
|
130268
|
+
// ../../packages/api-contracts/src/contracts/zero-codex-device-auth.ts
|
|
130269
|
+
init_esm_shims();
|
|
130270
|
+
var c62 = initContract();
|
|
130068
130271
|
var codexDeviceAuthScopeSchema = external_exports.enum(["org", "personal"]);
|
|
130069
130272
|
var codexDeviceAuthStartResponseSchema = external_exports.object({
|
|
130070
130273
|
sessionToken: external_exports.string(),
|
|
@@ -130090,7 +130293,7 @@ var codexDeviceAuthCompleteResponseSchema = external_exports.discriminatedUnion(
|
|
|
130090
130293
|
var codexDeviceAuthCancelResponseSchema = external_exports.object({
|
|
130091
130294
|
status: external_exports.literal("cancelled")
|
|
130092
130295
|
});
|
|
130093
|
-
var zeroCodexDeviceAuthContract =
|
|
130296
|
+
var zeroCodexDeviceAuthContract = c62.router({
|
|
130094
130297
|
start: {
|
|
130095
130298
|
method: "POST",
|
|
130096
130299
|
path: "/api/zero/model-providers/codex/device-auth/sessions",
|
|
@@ -130138,7 +130341,7 @@ var zeroCodexDeviceAuthContract = c61.router({
|
|
|
130138
130341
|
|
|
130139
130342
|
// ../../packages/api-contracts/src/contracts/zero-claude-code-device-auth.ts
|
|
130140
130343
|
init_esm_shims();
|
|
130141
|
-
var
|
|
130344
|
+
var c63 = initContract();
|
|
130142
130345
|
var claudeCodeDeviceAuthScopeSchema = external_exports.enum(["org", "personal"]);
|
|
130143
130346
|
var claudeCodeDeviceAuthStartResponseSchema = external_exports.object({
|
|
130144
130347
|
sessionToken: external_exports.string(),
|
|
@@ -130156,7 +130359,7 @@ var claudeCodeDeviceAuthCompleteResponseSchema = external_exports.object({
|
|
|
130156
130359
|
var claudeCodeDeviceAuthCancelResponseSchema = external_exports.object({
|
|
130157
130360
|
status: external_exports.literal("cancelled")
|
|
130158
130361
|
});
|
|
130159
|
-
var zeroClaudeCodeDeviceAuthContract =
|
|
130362
|
+
var zeroClaudeCodeDeviceAuthContract = c63.router({
|
|
130160
130363
|
start: {
|
|
130161
130364
|
method: "POST",
|
|
130162
130365
|
path: "/api/zero/model-providers/claude-code/device-auth/sessions",
|
|
@@ -130207,12 +130410,12 @@ var zeroClaudeCodeDeviceAuthContract = c62.router({
|
|
|
130207
130410
|
|
|
130208
130411
|
// ../../packages/api-contracts/src/contracts/zero-org-logo.ts
|
|
130209
130412
|
init_esm_shims();
|
|
130210
|
-
var
|
|
130413
|
+
var c64 = initContract();
|
|
130211
130414
|
var zeroOrgLogoResponseSchema = external_exports.object({
|
|
130212
130415
|
logoUrl: external_exports.string().nullable(),
|
|
130213
130416
|
hasImage: external_exports.boolean()
|
|
130214
130417
|
});
|
|
130215
|
-
var zeroOrgLogoContract =
|
|
130418
|
+
var zeroOrgLogoContract = c64.router({
|
|
130216
130419
|
get: {
|
|
130217
130420
|
method: "GET",
|
|
130218
130421
|
path: "/api/zero/org/logo",
|
|
@@ -130230,7 +130433,7 @@ var zeroOrgLogoContract = c63.router({
|
|
|
130230
130433
|
path: "/api/zero/org/logo",
|
|
130231
130434
|
headers: authHeadersSchema,
|
|
130232
130435
|
contentType: "multipart/form-data",
|
|
130233
|
-
body:
|
|
130436
|
+
body: c64.type(),
|
|
130234
130437
|
responses: {
|
|
130235
130438
|
200: zeroOrgLogoResponseSchema,
|
|
130236
130439
|
400: apiErrorSchema,
|
|
@@ -130257,8 +130460,8 @@ var zeroOrgLogoContract = c63.router({
|
|
|
130257
130460
|
|
|
130258
130461
|
// ../../packages/api-contracts/src/contracts/zero-composes.ts
|
|
130259
130462
|
init_esm_shims();
|
|
130260
|
-
var
|
|
130261
|
-
var zeroComposesMainContract =
|
|
130463
|
+
var c65 = initContract();
|
|
130464
|
+
var zeroComposesMainContract = c65.router({
|
|
130262
130465
|
getByName: {
|
|
130263
130466
|
method: "GET",
|
|
130264
130467
|
path: "/api/zero/composes",
|
|
@@ -130276,7 +130479,7 @@ var zeroComposesMainContract = c64.router({
|
|
|
130276
130479
|
summary: "Get agent compose by name (zero proxy)"
|
|
130277
130480
|
}
|
|
130278
130481
|
});
|
|
130279
|
-
var zeroComposesByIdContract =
|
|
130482
|
+
var zeroComposesByIdContract = c65.router({
|
|
130280
130483
|
getById: {
|
|
130281
130484
|
method: "GET",
|
|
130282
130485
|
path: "/api/zero/composes/:id",
|
|
@@ -130300,9 +130503,9 @@ var zeroComposesByIdContract = c64.router({
|
|
|
130300
130503
|
pathParams: external_exports.object({
|
|
130301
130504
|
id: external_exports.string().uuid("Compose ID is required")
|
|
130302
130505
|
}),
|
|
130303
|
-
body:
|
|
130506
|
+
body: c65.noBody(),
|
|
130304
130507
|
responses: {
|
|
130305
|
-
204:
|
|
130508
|
+
204: c65.noBody(),
|
|
130306
130509
|
401: apiErrorSchema,
|
|
130307
130510
|
403: apiErrorSchema,
|
|
130308
130511
|
404: apiErrorSchema,
|
|
@@ -130311,7 +130514,7 @@ var zeroComposesByIdContract = c64.router({
|
|
|
130311
130514
|
summary: "Delete agent compose (zero proxy)"
|
|
130312
130515
|
}
|
|
130313
130516
|
});
|
|
130314
|
-
var zeroComposesMetadataContract =
|
|
130517
|
+
var zeroComposesMetadataContract = c65.router({
|
|
130315
130518
|
update: {
|
|
130316
130519
|
method: "PATCH",
|
|
130317
130520
|
path: "/api/zero/composes/:id/metadata",
|
|
@@ -130332,7 +130535,7 @@ var zeroComposesMetadataContract = c64.router({
|
|
|
130332
130535
|
summary: "Update agent compose metadata (zero proxy)"
|
|
130333
130536
|
}
|
|
130334
130537
|
});
|
|
130335
|
-
var zeroComposesListContract =
|
|
130538
|
+
var zeroComposesListContract = c65.router({
|
|
130336
130539
|
list: {
|
|
130337
130540
|
method: "GET",
|
|
130338
130541
|
path: "/api/zero/composes/list",
|
|
@@ -130352,8 +130555,8 @@ var zeroComposesListContract = c64.router({
|
|
|
130352
130555
|
|
|
130353
130556
|
// ../../packages/api-contracts/src/contracts/zero-personal-model-providers.ts
|
|
130354
130557
|
init_esm_shims();
|
|
130355
|
-
var
|
|
130356
|
-
var zeroPersonalModelProvidersMainContract =
|
|
130558
|
+
var c66 = initContract();
|
|
130559
|
+
var zeroPersonalModelProvidersMainContract = c66.router({
|
|
130357
130560
|
list: {
|
|
130358
130561
|
method: "GET",
|
|
130359
130562
|
path: "/api/zero/me/model-providers",
|
|
@@ -130382,7 +130585,7 @@ var zeroPersonalModelProvidersMainContract = c65.router({
|
|
|
130382
130585
|
summary: "Create or update a personal model provider for the requesting user"
|
|
130383
130586
|
}
|
|
130384
130587
|
});
|
|
130385
|
-
var zeroPersonalModelProvidersByTypeContract =
|
|
130588
|
+
var zeroPersonalModelProvidersByTypeContract = c66.router({
|
|
130386
130589
|
delete: {
|
|
130387
130590
|
method: "DELETE",
|
|
130388
130591
|
path: "/api/zero/me/model-providers/:type",
|
|
@@ -130391,7 +130594,7 @@ var zeroPersonalModelProvidersByTypeContract = c65.router({
|
|
|
130391
130594
|
type: modelProviderTypeSchema
|
|
130392
130595
|
}),
|
|
130393
130596
|
responses: {
|
|
130394
|
-
204:
|
|
130597
|
+
204: c66.noBody(),
|
|
130395
130598
|
401: apiErrorSchema,
|
|
130396
130599
|
404: apiErrorSchema,
|
|
130397
130600
|
500: apiErrorSchema
|
|
@@ -130402,7 +130605,7 @@ var zeroPersonalModelProvidersByTypeContract = c65.router({
|
|
|
130402
130605
|
|
|
130403
130606
|
// ../../packages/api-contracts/src/contracts/api-keys.ts
|
|
130404
130607
|
init_esm_shims();
|
|
130405
|
-
var
|
|
130608
|
+
var c67 = initContract();
|
|
130406
130609
|
var apiKeyItemSchema = external_exports.object({
|
|
130407
130610
|
id: external_exports.string().uuid(),
|
|
130408
130611
|
name: external_exports.string(),
|
|
@@ -130421,7 +130624,7 @@ var createApiKeyRequestSchema = external_exports.object({
|
|
|
130421
130624
|
var createApiKeyResponseSchema = apiKeyItemSchema.extend({
|
|
130422
130625
|
token: external_exports.string()
|
|
130423
130626
|
});
|
|
130424
|
-
var apiKeysContract =
|
|
130627
|
+
var apiKeysContract = c67.router({
|
|
130425
130628
|
list: {
|
|
130426
130629
|
method: "GET",
|
|
130427
130630
|
path: "/api/zero/api-keys",
|
|
@@ -130447,14 +130650,14 @@ var apiKeysContract = c66.router({
|
|
|
130447
130650
|
summary: "Create a new API key (token returned once)"
|
|
130448
130651
|
}
|
|
130449
130652
|
});
|
|
130450
|
-
var apiKeysByIdContract =
|
|
130653
|
+
var apiKeysByIdContract = c67.router({
|
|
130451
130654
|
delete: {
|
|
130452
130655
|
method: "DELETE",
|
|
130453
130656
|
path: "/api/zero/api-keys/:id",
|
|
130454
130657
|
headers: authHeadersSchema,
|
|
130455
130658
|
pathParams: external_exports.object({ id: external_exports.string().uuid() }),
|
|
130456
130659
|
responses: {
|
|
130457
|
-
204:
|
|
130660
|
+
204: c67.noBody(),
|
|
130458
130661
|
401: apiErrorSchema,
|
|
130459
130662
|
404: apiErrorSchema,
|
|
130460
130663
|
500: apiErrorSchema
|
|
@@ -130465,7 +130668,7 @@ var apiKeysByIdContract = c66.router({
|
|
|
130465
130668
|
|
|
130466
130669
|
// ../../packages/api-contracts/src/contracts/zero-custom-connectors.ts
|
|
130467
130670
|
init_esm_shims();
|
|
130468
|
-
var
|
|
130671
|
+
var c68 = initContract();
|
|
130469
130672
|
var customConnectorResponseSchema = external_exports.object({
|
|
130470
130673
|
id: external_exports.string().uuid(),
|
|
130471
130674
|
slug: external_exports.string(),
|
|
@@ -130504,7 +130707,7 @@ var setCustomConnectorSecretBodySchema = external_exports.object({
|
|
|
130504
130707
|
var patchCustomConnectorBodySchema = external_exports.object({
|
|
130505
130708
|
displayName: external_exports.string().min(1).max(128)
|
|
130506
130709
|
});
|
|
130507
|
-
var zeroCustomConnectorsContract =
|
|
130710
|
+
var zeroCustomConnectorsContract = c68.router({
|
|
130508
130711
|
list: {
|
|
130509
130712
|
method: "GET",
|
|
130510
130713
|
path: "/api/zero/custom-connectors",
|
|
@@ -130531,14 +130734,14 @@ var zeroCustomConnectorsContract = c67.router({
|
|
|
130531
130734
|
summary: "Create an org custom connector"
|
|
130532
130735
|
}
|
|
130533
130736
|
});
|
|
130534
|
-
var zeroCustomConnectorByIdContract =
|
|
130737
|
+
var zeroCustomConnectorByIdContract = c68.router({
|
|
130535
130738
|
delete: {
|
|
130536
130739
|
method: "DELETE",
|
|
130537
130740
|
path: "/api/zero/custom-connectors/:id",
|
|
130538
130741
|
headers: authHeadersSchema,
|
|
130539
130742
|
pathParams: external_exports.object({ id: external_exports.string().uuid() }),
|
|
130540
130743
|
responses: {
|
|
130541
|
-
204:
|
|
130744
|
+
204: c68.noBody(),
|
|
130542
130745
|
401: apiErrorSchema,
|
|
130543
130746
|
403: apiErrorSchema,
|
|
130544
130747
|
404: apiErrorSchema,
|
|
@@ -130563,7 +130766,7 @@ var zeroCustomConnectorByIdContract = c67.router({
|
|
|
130563
130766
|
summary: "Rename an org custom connector"
|
|
130564
130767
|
}
|
|
130565
130768
|
});
|
|
130566
|
-
var zeroCustomConnectorSecretContract =
|
|
130769
|
+
var zeroCustomConnectorSecretContract = c68.router({
|
|
130567
130770
|
set: {
|
|
130568
130771
|
method: "PUT",
|
|
130569
130772
|
path: "/api/zero/custom-connectors/:id/secret",
|
|
@@ -130571,7 +130774,7 @@ var zeroCustomConnectorSecretContract = c67.router({
|
|
|
130571
130774
|
pathParams: external_exports.object({ id: external_exports.string().uuid() }),
|
|
130572
130775
|
body: setCustomConnectorSecretBodySchema,
|
|
130573
130776
|
responses: {
|
|
130574
|
-
204:
|
|
130777
|
+
204: c68.noBody(),
|
|
130575
130778
|
400: apiErrorSchema,
|
|
130576
130779
|
401: apiErrorSchema,
|
|
130577
130780
|
404: apiErrorSchema,
|
|
@@ -130585,7 +130788,7 @@ var zeroCustomConnectorSecretContract = c67.router({
|
|
|
130585
130788
|
headers: authHeadersSchema,
|
|
130586
130789
|
pathParams: external_exports.object({ id: external_exports.string().uuid() }),
|
|
130587
130790
|
responses: {
|
|
130588
|
-
204:
|
|
130791
|
+
204: c68.noBody(),
|
|
130589
130792
|
401: apiErrorSchema,
|
|
130590
130793
|
404: apiErrorSchema,
|
|
130591
130794
|
500: apiErrorSchema
|
|
@@ -130596,11 +130799,11 @@ var zeroCustomConnectorSecretContract = c67.router({
|
|
|
130596
130799
|
|
|
130597
130800
|
// ../../packages/api-contracts/src/contracts/zero-agent-custom-connectors.ts
|
|
130598
130801
|
init_esm_shims();
|
|
130599
|
-
var
|
|
130802
|
+
var c69 = initContract();
|
|
130600
130803
|
var agentCustomConnectorEnabledIdsSchema = external_exports.object({
|
|
130601
130804
|
enabledIds: external_exports.array(external_exports.string().uuid())
|
|
130602
130805
|
});
|
|
130603
|
-
var zeroAgentCustomConnectorsContract =
|
|
130806
|
+
var zeroAgentCustomConnectorsContract = c69.router({
|
|
130604
130807
|
get: {
|
|
130605
130808
|
method: "GET",
|
|
130606
130809
|
path: "/api/zero/agents/:id/custom-connectors",
|
|
@@ -130633,7 +130836,7 @@ var zeroAgentCustomConnectorsContract = c68.router({
|
|
|
130633
130836
|
|
|
130634
130837
|
// ../../packages/api-contracts/src/contracts/github-oauth.ts
|
|
130635
130838
|
init_esm_shims();
|
|
130636
|
-
var
|
|
130839
|
+
var c70 = initContract();
|
|
130637
130840
|
var jsonErrorSchema = external_exports.object({ error: external_exports.string() });
|
|
130638
130841
|
var githubOauthInstallQuerySchema = external_exports.object({
|
|
130639
130842
|
vm0UserId: external_exports.string().optional(),
|
|
@@ -130663,13 +130866,13 @@ var githubAppSetupCallbackQuerySchema = external_exports.object({
|
|
|
130663
130866
|
target_id: external_exports.string().optional(),
|
|
130664
130867
|
target_type: external_exports.string().optional()
|
|
130665
130868
|
});
|
|
130666
|
-
var githubOauthContract =
|
|
130869
|
+
var githubOauthContract = c70.router({
|
|
130667
130870
|
install: {
|
|
130668
130871
|
method: "GET",
|
|
130669
130872
|
path: "/api/github/oauth/install",
|
|
130670
130873
|
query: githubOauthInstallQuerySchema,
|
|
130671
130874
|
responses: {
|
|
130672
|
-
307:
|
|
130875
|
+
307: c70.noBody(),
|
|
130673
130876
|
503: jsonErrorSchema
|
|
130674
130877
|
},
|
|
130675
130878
|
summary: "Start GitHub App OAuth install"
|
|
@@ -130679,7 +130882,7 @@ var githubOauthContract = c69.router({
|
|
|
130679
130882
|
path: "/api/zero/github/oauth/connect",
|
|
130680
130883
|
query: githubOauthConnectQuerySchema,
|
|
130681
130884
|
responses: {
|
|
130682
|
-
307:
|
|
130885
|
+
307: c70.noBody(),
|
|
130683
130886
|
401: apiErrorSchema,
|
|
130684
130887
|
503: jsonErrorSchema
|
|
130685
130888
|
},
|
|
@@ -130690,7 +130893,7 @@ var githubOauthContract = c69.router({
|
|
|
130690
130893
|
path: "/api/zero/github/oauth/connect/callback",
|
|
130691
130894
|
query: githubOauthConnectCallbackQuerySchema,
|
|
130692
130895
|
responses: {
|
|
130693
|
-
307:
|
|
130896
|
+
307: c70.noBody()
|
|
130694
130897
|
},
|
|
130695
130898
|
summary: "Handle GitHub user OAuth for the GitHub integration"
|
|
130696
130899
|
},
|
|
@@ -130699,7 +130902,7 @@ var githubOauthContract = c69.router({
|
|
|
130699
130902
|
path: "/api/github/app/setup/callback",
|
|
130700
130903
|
query: githubAppSetupCallbackQuerySchema,
|
|
130701
130904
|
responses: {
|
|
130702
|
-
307:
|
|
130905
|
+
307: c70.noBody()
|
|
130703
130906
|
},
|
|
130704
130907
|
summary: "Handle GitHub App setup callback"
|
|
130705
130908
|
}
|
|
@@ -130707,7 +130910,7 @@ var githubOauthContract = c69.router({
|
|
|
130707
130910
|
|
|
130708
130911
|
// ../../packages/api-contracts/src/contracts/zero-usage.ts
|
|
130709
130912
|
init_esm_shims();
|
|
130710
|
-
var
|
|
130913
|
+
var c71 = initContract();
|
|
130711
130914
|
var memberUsageSchema = external_exports.object({
|
|
130712
130915
|
userId: external_exports.string(),
|
|
130713
130916
|
email: external_exports.string(),
|
|
@@ -130724,7 +130927,7 @@ var usageMembersResponseSchema = external_exports.object({
|
|
|
130724
130927
|
}).nullable(),
|
|
130725
130928
|
members: external_exports.array(memberUsageSchema)
|
|
130726
130929
|
});
|
|
130727
|
-
var zeroUsageMembersContract =
|
|
130930
|
+
var zeroUsageMembersContract = c71.router({
|
|
130728
130931
|
get: {
|
|
130729
130932
|
method: "GET",
|
|
130730
130933
|
path: "/api/zero/usage/members",
|
|
@@ -130740,7 +130943,7 @@ var zeroUsageMembersContract = c70.router({
|
|
|
130740
130943
|
|
|
130741
130944
|
// ../../packages/api-contracts/src/contracts/zero-usage-daily.ts
|
|
130742
130945
|
init_esm_shims();
|
|
130743
|
-
var
|
|
130946
|
+
var c72 = initContract();
|
|
130744
130947
|
var usageRunSchema = external_exports.object({
|
|
130745
130948
|
runId: external_exports.string(),
|
|
130746
130949
|
agentName: external_exports.string().nullable(),
|
|
@@ -130767,7 +130970,7 @@ var usageRunsResponseSchema = external_exports.object({
|
|
|
130767
130970
|
total: external_exports.number()
|
|
130768
130971
|
})
|
|
130769
130972
|
});
|
|
130770
|
-
var zeroUsageRunsContract =
|
|
130973
|
+
var zeroUsageRunsContract = c72.router({
|
|
130771
130974
|
get: {
|
|
130772
130975
|
method: "GET",
|
|
130773
130976
|
path: "/api/zero/usage/runs",
|
|
@@ -130795,7 +130998,7 @@ var zeroUsageRunsContract = c71.router({
|
|
|
130795
130998
|
|
|
130796
130999
|
// ../../packages/api-contracts/src/contracts/zero-usage-insight.ts
|
|
130797
131000
|
init_esm_shims();
|
|
130798
|
-
var
|
|
131001
|
+
var c73 = initContract();
|
|
130799
131002
|
var usageInsightBucketSchema = external_exports.object({
|
|
130800
131003
|
ts: external_exports.string(),
|
|
130801
131004
|
// ISO string for the bucket start
|
|
@@ -130832,7 +131035,7 @@ var usageInsightResponseSchema = external_exports.object({
|
|
|
130832
131035
|
grandTotalCredits: external_exports.number(),
|
|
130833
131036
|
grandTotalTokens: external_exports.number()
|
|
130834
131037
|
});
|
|
130835
|
-
var zeroUsageInsightContract =
|
|
131038
|
+
var zeroUsageInsightContract = c73.router({
|
|
130836
131039
|
get: {
|
|
130837
131040
|
method: "GET",
|
|
130838
131041
|
path: "/api/zero/usage/insight",
|
|
@@ -130855,7 +131058,7 @@ var zeroUsageInsightContract = c72.router({
|
|
|
130855
131058
|
|
|
130856
131059
|
// ../../packages/api-contracts/src/contracts/usage.ts
|
|
130857
131060
|
init_esm_shims();
|
|
130858
|
-
var
|
|
131061
|
+
var c74 = initContract();
|
|
130859
131062
|
var dailyUsageSchema = external_exports.object({
|
|
130860
131063
|
date: external_exports.string(),
|
|
130861
131064
|
run_count: external_exports.number(),
|
|
@@ -130872,7 +131075,7 @@ var usageResponseSchema = external_exports.object({
|
|
|
130872
131075
|
}),
|
|
130873
131076
|
daily: external_exports.array(dailyUsageSchema)
|
|
130874
131077
|
});
|
|
130875
|
-
var usageContract =
|
|
131078
|
+
var usageContract = c74.router({
|
|
130876
131079
|
get: {
|
|
130877
131080
|
method: "GET",
|
|
130878
131081
|
path: "/api/usage",
|
|
@@ -130893,7 +131096,7 @@ var usageContract = c73.router({
|
|
|
130893
131096
|
|
|
130894
131097
|
// ../../packages/api-contracts/src/contracts/zero-team.ts
|
|
130895
131098
|
init_esm_shims();
|
|
130896
|
-
var
|
|
131099
|
+
var c75 = initContract();
|
|
130897
131100
|
var teamComposeItemSchema = external_exports.object({
|
|
130898
131101
|
id: external_exports.string(),
|
|
130899
131102
|
ownerId: external_exports.string().optional(),
|
|
@@ -130905,7 +131108,7 @@ var teamComposeItemSchema = external_exports.object({
|
|
|
130905
131108
|
headVersionId: external_exports.string().nullable(),
|
|
130906
131109
|
updatedAt: external_exports.string()
|
|
130907
131110
|
});
|
|
130908
|
-
var zeroTeamContract =
|
|
131111
|
+
var zeroTeamContract = c75.router({
|
|
130909
131112
|
list: {
|
|
130910
131113
|
method: "GET",
|
|
130911
131114
|
path: "/api/zero/team",
|
|
@@ -130922,7 +131125,7 @@ var zeroTeamContract = c74.router({
|
|
|
130922
131125
|
|
|
130923
131126
|
// ../../packages/api-contracts/src/contracts/zero-integrations-slack.ts
|
|
130924
131127
|
init_esm_shims();
|
|
130925
|
-
var
|
|
131128
|
+
var c76 = initContract();
|
|
130926
131129
|
var slackEnvironmentSchema = external_exports.object({
|
|
130927
131130
|
requiredSecrets: external_exports.array(external_exports.string()),
|
|
130928
131131
|
requiredVars: external_exports.array(external_exports.string()),
|
|
@@ -130944,7 +131147,7 @@ var slackOrgStatusSchema = external_exports.object({
|
|
|
130944
131147
|
/** OAuth install URL for re-authorization (admin-only, when scopeMismatch). */
|
|
130945
131148
|
reinstallUrl: external_exports.string().nullable().optional()
|
|
130946
131149
|
});
|
|
130947
|
-
var zeroIntegrationsSlackContract =
|
|
131150
|
+
var zeroIntegrationsSlackContract = c76.router({
|
|
130948
131151
|
getStatus: {
|
|
130949
131152
|
method: "GET",
|
|
130950
131153
|
path: "/api/zero/integrations/slack",
|
|
@@ -130959,7 +131162,7 @@ var zeroIntegrationsSlackContract = c75.router({
|
|
|
130959
131162
|
method: "DELETE",
|
|
130960
131163
|
path: "/api/zero/integrations/slack",
|
|
130961
131164
|
headers: authHeadersSchema,
|
|
130962
|
-
body:
|
|
131165
|
+
body: c76.noBody(),
|
|
130963
131166
|
query: external_exports.object({
|
|
130964
131167
|
action: external_exports.string().optional()
|
|
130965
131168
|
}),
|
|
@@ -130975,7 +131178,7 @@ var zeroIntegrationsSlackContract = c75.router({
|
|
|
130975
131178
|
|
|
130976
131179
|
// ../../packages/api-contracts/src/contracts/zero-slack-connect.ts
|
|
130977
131180
|
init_esm_shims();
|
|
130978
|
-
var
|
|
131181
|
+
var c77 = initContract();
|
|
130979
131182
|
var slackConnectStatusSchema = external_exports.object({
|
|
130980
131183
|
isConnected: external_exports.boolean(),
|
|
130981
131184
|
isAdmin: external_exports.boolean(),
|
|
@@ -130987,7 +131190,7 @@ var slackConnectResponseSchema = external_exports.object({
|
|
|
130987
131190
|
connectionId: external_exports.string(),
|
|
130988
131191
|
role: external_exports.string()
|
|
130989
131192
|
});
|
|
130990
|
-
var zeroSlackConnectContract =
|
|
131193
|
+
var zeroSlackConnectContract = c77.router({
|
|
130991
131194
|
getStatus: {
|
|
130992
131195
|
method: "GET",
|
|
130993
131196
|
path: "/api/zero/integrations/slack/connect",
|
|
@@ -131021,12 +131224,12 @@ var zeroSlackConnectContract = c76.router({
|
|
|
131021
131224
|
|
|
131022
131225
|
// ../../packages/api-contracts/src/contracts/zero-slack-commands.ts
|
|
131023
131226
|
init_esm_shims();
|
|
131024
|
-
var
|
|
131025
|
-
var zeroSlackCommandsContract =
|
|
131227
|
+
var c78 = initContract();
|
|
131228
|
+
var zeroSlackCommandsContract = c78.router({
|
|
131026
131229
|
post: {
|
|
131027
131230
|
method: "POST",
|
|
131028
131231
|
path: "/api/zero/slack/commands",
|
|
131029
|
-
body:
|
|
131232
|
+
body: c78.type(),
|
|
131030
131233
|
responses: {
|
|
131031
131234
|
200: external_exports.unknown(),
|
|
131032
131235
|
401: external_exports.object({ error: external_exports.string() }),
|
|
@@ -131038,12 +131241,12 @@ var zeroSlackCommandsContract = c77.router({
|
|
|
131038
131241
|
|
|
131039
131242
|
// ../../packages/api-contracts/src/contracts/zero-slack-events.ts
|
|
131040
131243
|
init_esm_shims();
|
|
131041
|
-
var
|
|
131042
|
-
var zeroSlackEventsContract =
|
|
131244
|
+
var c79 = initContract();
|
|
131245
|
+
var zeroSlackEventsContract = c79.router({
|
|
131043
131246
|
post: {
|
|
131044
131247
|
method: "POST",
|
|
131045
131248
|
path: "/api/zero/slack/events",
|
|
131046
|
-
body:
|
|
131249
|
+
body: c79.type(),
|
|
131047
131250
|
responses: {
|
|
131048
131251
|
200: external_exports.unknown(),
|
|
131049
131252
|
400: external_exports.object({ error: external_exports.string() }),
|
|
@@ -131056,12 +131259,12 @@ var zeroSlackEventsContract = c78.router({
|
|
|
131056
131259
|
|
|
131057
131260
|
// ../../packages/api-contracts/src/contracts/zero-slack-interactive.ts
|
|
131058
131261
|
init_esm_shims();
|
|
131059
|
-
var
|
|
131060
|
-
var zeroSlackInteractiveContract =
|
|
131262
|
+
var c80 = initContract();
|
|
131263
|
+
var zeroSlackInteractiveContract = c80.router({
|
|
131061
131264
|
post: {
|
|
131062
131265
|
method: "POST",
|
|
131063
131266
|
path: "/api/zero/slack/interactive",
|
|
131064
|
-
body:
|
|
131267
|
+
body: c80.type(),
|
|
131065
131268
|
responses: {
|
|
131066
131269
|
200: external_exports.unknown(),
|
|
131067
131270
|
400: external_exports.object({ error: external_exports.string() }),
|
|
@@ -131074,7 +131277,7 @@ var zeroSlackInteractiveContract = c79.router({
|
|
|
131074
131277
|
|
|
131075
131278
|
// ../../packages/api-contracts/src/contracts/zero-slack-browser-connect.ts
|
|
131076
131279
|
init_esm_shims();
|
|
131077
|
-
var
|
|
131280
|
+
var c81 = initContract();
|
|
131078
131281
|
var zeroSlackBrowserConnectQuerySchema = external_exports.object({
|
|
131079
131282
|
w: external_exports.string().optional(),
|
|
131080
131283
|
u: external_exports.string().optional(),
|
|
@@ -131082,13 +131285,13 @@ var zeroSlackBrowserConnectQuerySchema = external_exports.object({
|
|
|
131082
131285
|
t: external_exports.string().optional(),
|
|
131083
131286
|
orgId: external_exports.string().optional()
|
|
131084
131287
|
});
|
|
131085
|
-
var zeroSlackBrowserConnectContract =
|
|
131288
|
+
var zeroSlackBrowserConnectContract = c81.router({
|
|
131086
131289
|
connect: {
|
|
131087
131290
|
method: "GET",
|
|
131088
131291
|
path: "/api/zero/slack/connect",
|
|
131089
131292
|
query: zeroSlackBrowserConnectQuerySchema,
|
|
131090
131293
|
responses: {
|
|
131091
|
-
307:
|
|
131294
|
+
307: c81.noBody(),
|
|
131092
131295
|
500: external_exports.object({ error: external_exports.string() })
|
|
131093
131296
|
},
|
|
131094
131297
|
summary: "Browser Slack connect flow"
|
|
@@ -131097,7 +131300,7 @@ var zeroSlackBrowserConnectContract = c80.router({
|
|
|
131097
131300
|
|
|
131098
131301
|
// ../../packages/api-contracts/src/contracts/zero-slack-oauth.ts
|
|
131099
131302
|
init_esm_shims();
|
|
131100
|
-
var
|
|
131303
|
+
var c82 = initContract();
|
|
131101
131304
|
var jsonErrorSchema2 = external_exports.object({ error: external_exports.string() });
|
|
131102
131305
|
var zeroSlackOauthInstallQuerySchema = external_exports.object({
|
|
131103
131306
|
orgId: external_exports.string().optional(),
|
|
@@ -131115,13 +131318,13 @@ var zeroSlackOauthCallbackQuerySchema = external_exports.object({
|
|
|
131115
131318
|
error: external_exports.string().optional(),
|
|
131116
131319
|
state: external_exports.string().optional()
|
|
131117
131320
|
});
|
|
131118
|
-
var zeroSlackOauthContract =
|
|
131321
|
+
var zeroSlackOauthContract = c82.router({
|
|
131119
131322
|
install: {
|
|
131120
131323
|
method: "GET",
|
|
131121
131324
|
path: "/api/zero/slack/oauth/install",
|
|
131122
131325
|
query: zeroSlackOauthInstallQuerySchema,
|
|
131123
131326
|
responses: {
|
|
131124
|
-
307:
|
|
131327
|
+
307: c82.noBody(),
|
|
131125
131328
|
503: jsonErrorSchema2
|
|
131126
131329
|
},
|
|
131127
131330
|
summary: "Start Slack bot OAuth install"
|
|
@@ -131131,7 +131334,7 @@ var zeroSlackOauthContract = c81.router({
|
|
|
131131
131334
|
path: "/api/zero/slack/oauth/connect",
|
|
131132
131335
|
query: zeroSlackOauthConnectQuerySchema,
|
|
131133
131336
|
responses: {
|
|
131134
|
-
307:
|
|
131337
|
+
307: c82.noBody(),
|
|
131135
131338
|
400: jsonErrorSchema2,
|
|
131136
131339
|
404: jsonErrorSchema2,
|
|
131137
131340
|
503: jsonErrorSchema2
|
|
@@ -131143,7 +131346,7 @@ var zeroSlackOauthContract = c81.router({
|
|
|
131143
131346
|
path: "/api/zero/slack/oauth/callback",
|
|
131144
131347
|
query: zeroSlackOauthCallbackQuerySchema,
|
|
131145
131348
|
responses: {
|
|
131146
|
-
307:
|
|
131349
|
+
307: c82.noBody(),
|
|
131147
131350
|
400: jsonErrorSchema2,
|
|
131148
131351
|
503: jsonErrorSchema2
|
|
131149
131352
|
},
|
|
@@ -131153,12 +131356,12 @@ var zeroSlackOauthContract = c81.router({
|
|
|
131153
131356
|
|
|
131154
131357
|
// ../../packages/api-contracts/src/contracts/zero-slack-channels.ts
|
|
131155
131358
|
init_esm_shims();
|
|
131156
|
-
var
|
|
131359
|
+
var c83 = initContract();
|
|
131157
131360
|
var slackChannelSchema = external_exports.object({
|
|
131158
131361
|
id: external_exports.string(),
|
|
131159
131362
|
name: external_exports.string()
|
|
131160
131363
|
});
|
|
131161
|
-
var zeroSlackChannelsContract =
|
|
131364
|
+
var zeroSlackChannelsContract = c83.router({
|
|
131162
131365
|
list: {
|
|
131163
131366
|
method: "GET",
|
|
131164
131367
|
path: "/api/zero/slack/channels",
|
|
@@ -131174,12 +131377,12 @@ var zeroSlackChannelsContract = c82.router({
|
|
|
131174
131377
|
|
|
131175
131378
|
// ../../packages/api-contracts/src/contracts/zero-queue-position.ts
|
|
131176
131379
|
init_esm_shims();
|
|
131177
|
-
var
|
|
131380
|
+
var c84 = initContract();
|
|
131178
131381
|
var queuePositionResponseSchema = external_exports.object({
|
|
131179
131382
|
position: external_exports.number(),
|
|
131180
131383
|
total: external_exports.number()
|
|
131181
131384
|
});
|
|
131182
|
-
var zeroQueuePositionContract =
|
|
131385
|
+
var zeroQueuePositionContract = c84.router({
|
|
131183
131386
|
getPosition: {
|
|
131184
131387
|
method: "GET",
|
|
131185
131388
|
path: "/api/zero/queue-position",
|
|
@@ -131199,7 +131402,7 @@ var zeroQueuePositionContract = c83.router({
|
|
|
131199
131402
|
|
|
131200
131403
|
// ../../packages/api-contracts/src/contracts/zero-report-error.ts
|
|
131201
131404
|
init_esm_shims();
|
|
131202
|
-
var
|
|
131405
|
+
var c85 = initContract();
|
|
131203
131406
|
var reportErrorBodySchema = external_exports.object({
|
|
131204
131407
|
runId: external_exports.uuid("Run ID must be a valid UUID"),
|
|
131205
131408
|
title: external_exports.string().min(1, "Title is required"),
|
|
@@ -131208,7 +131411,7 @@ var reportErrorBodySchema = external_exports.object({
|
|
|
131208
131411
|
var reportErrorResponseSchema = external_exports.object({
|
|
131209
131412
|
reference: external_exports.string()
|
|
131210
131413
|
});
|
|
131211
|
-
var zeroReportErrorContract =
|
|
131414
|
+
var zeroReportErrorContract = c85.router({
|
|
131212
131415
|
submit: {
|
|
131213
131416
|
method: "POST",
|
|
131214
131417
|
path: "/api/zero/report-error",
|
|
@@ -131227,7 +131430,7 @@ var zeroReportErrorContract = c84.router({
|
|
|
131227
131430
|
|
|
131228
131431
|
// ../../packages/api-contracts/src/contracts/zero-insights.ts
|
|
131229
131432
|
init_esm_shims();
|
|
131230
|
-
var
|
|
131433
|
+
var c86 = initContract();
|
|
131231
131434
|
var insightAgentSchema = external_exports.object({
|
|
131232
131435
|
agentName: external_exports.string(),
|
|
131233
131436
|
agentId: external_exports.string().nullable(),
|
|
@@ -131292,7 +131495,7 @@ var insightsRangeResponseSchema = external_exports.object({
|
|
|
131292
131495
|
maxDate: external_exports.string().nullable(),
|
|
131293
131496
|
totalDays: external_exports.number()
|
|
131294
131497
|
});
|
|
131295
|
-
var zeroInsightsContract =
|
|
131498
|
+
var zeroInsightsContract = c86.router({
|
|
131296
131499
|
get: {
|
|
131297
131500
|
method: "GET",
|
|
131298
131501
|
path: "/api/zero/insights",
|
|
@@ -131307,7 +131510,7 @@ var zeroInsightsContract = c85.router({
|
|
|
131307
131510
|
summary: "Get daily insights for the authenticated org"
|
|
131308
131511
|
}
|
|
131309
131512
|
});
|
|
131310
|
-
var zeroInsightsRangeContract =
|
|
131513
|
+
var zeroInsightsRangeContract = c86.router({
|
|
131311
131514
|
get: {
|
|
131312
131515
|
method: "GET",
|
|
131313
131516
|
path: "/api/zero/insights/range",
|
|
@@ -131322,8 +131525,8 @@ var zeroInsightsRangeContract = c85.router({
|
|
|
131322
131525
|
|
|
131323
131526
|
// ../../packages/api-contracts/src/contracts/push-subscriptions.ts
|
|
131324
131527
|
init_esm_shims();
|
|
131325
|
-
var
|
|
131326
|
-
var pushSubscriptionsContract =
|
|
131528
|
+
var c87 = initContract();
|
|
131529
|
+
var pushSubscriptionsContract = c87.router({
|
|
131327
131530
|
register: {
|
|
131328
131531
|
method: "POST",
|
|
131329
131532
|
path: "/api/zero/push-subscriptions",
|
|
@@ -131350,7 +131553,7 @@ init_esm_shims();
|
|
|
131350
131553
|
|
|
131351
131554
|
// ../../packages/api-contracts/src/contracts/zero-built-in-generation.ts
|
|
131352
131555
|
init_esm_shims();
|
|
131353
|
-
var
|
|
131556
|
+
var c88 = initContract();
|
|
131354
131557
|
var zeroBuiltInGenerationTypeSchema = external_exports.enum([
|
|
131355
131558
|
"image",
|
|
131356
131559
|
"video",
|
|
@@ -131388,7 +131591,7 @@ var zeroBuiltInGenerationResponseSchema = external_exports.object({
|
|
|
131388
131591
|
startedAt: external_exports.string().nullable(),
|
|
131389
131592
|
completedAt: external_exports.string().nullable()
|
|
131390
131593
|
});
|
|
131391
|
-
var zeroBuiltInGenerationContract =
|
|
131594
|
+
var zeroBuiltInGenerationContract = c88.router({
|
|
131392
131595
|
get: {
|
|
131393
131596
|
method: "GET",
|
|
131394
131597
|
path: "/api/zero/built-in-generations/:generationId",
|
|
@@ -131408,7 +131611,7 @@ var zeroBuiltInGenerationContract = c87.router({
|
|
|
131408
131611
|
});
|
|
131409
131612
|
|
|
131410
131613
|
// ../../packages/api-contracts/src/contracts/zero-image-io-generate.ts
|
|
131411
|
-
var
|
|
131614
|
+
var c89 = initContract();
|
|
131412
131615
|
var zeroImageIoGenerateRequestSchema = external_exports.object({
|
|
131413
131616
|
prompt: external_exports.unknown().optional(),
|
|
131414
131617
|
model: external_exports.unknown().optional(),
|
|
@@ -131458,7 +131661,7 @@ var zeroImageIoGenerateResponseSchema = external_exports.object({
|
|
|
131458
131661
|
inputFidelity: external_exports.string().optional(),
|
|
131459
131662
|
imagePromptStrength: external_exports.number().optional()
|
|
131460
131663
|
});
|
|
131461
|
-
var zeroImageIoGenerateContract =
|
|
131664
|
+
var zeroImageIoGenerateContract = c89.router({
|
|
131462
131665
|
post: {
|
|
131463
131666
|
method: "POST",
|
|
131464
131667
|
path: "/api/zero/image-io/generate",
|
|
@@ -131481,7 +131684,7 @@ var zeroImageIoGenerateContract = c88.router({
|
|
|
131481
131684
|
|
|
131482
131685
|
// ../../packages/api-contracts/src/contracts/zero-maps.ts
|
|
131483
131686
|
init_esm_shims();
|
|
131484
|
-
var
|
|
131687
|
+
var c90 = initContract();
|
|
131485
131688
|
var travelModeSchema = external_exports.enum(["driving", "walking", "bicycling", "transit"]);
|
|
131486
131689
|
var placeDetailFieldsetSchema = external_exports.enum(["essentials", "pro"]);
|
|
131487
131690
|
var zeroMapsOperationSchema = external_exports.enum([
|
|
@@ -131533,7 +131736,7 @@ var mapsResponses = {
|
|
|
131533
131736
|
502: apiErrorSchema,
|
|
131534
131737
|
503: apiErrorSchema
|
|
131535
131738
|
};
|
|
131536
|
-
var zeroMapsContract =
|
|
131739
|
+
var zeroMapsContract = c90.router({
|
|
131537
131740
|
geocode: {
|
|
131538
131741
|
method: "POST",
|
|
131539
131742
|
path: "/api/zero/maps/geocode",
|
|
@@ -131578,7 +131781,7 @@ var zeroMapsContract = c89.router({
|
|
|
131578
131781
|
|
|
131579
131782
|
// ../../packages/api-contracts/src/contracts/zero-video-io-generate.ts
|
|
131580
131783
|
init_esm_shims();
|
|
131581
|
-
var
|
|
131784
|
+
var c91 = initContract();
|
|
131582
131785
|
var zeroVideoIoGenerateRequestSchema = external_exports.object({
|
|
131583
131786
|
prompt: external_exports.unknown().optional(),
|
|
131584
131787
|
model: external_exports.unknown().optional(),
|
|
@@ -131615,7 +131818,7 @@ var zeroVideoIoGenerateResponseSchema = external_exports.object({
|
|
|
131615
131818
|
sourceUrl: external_exports.string(),
|
|
131616
131819
|
requestId: external_exports.string().optional()
|
|
131617
131820
|
});
|
|
131618
|
-
var zeroVideoIoGenerateContract =
|
|
131821
|
+
var zeroVideoIoGenerateContract = c91.router({
|
|
131619
131822
|
post: {
|
|
131620
131823
|
method: "POST",
|
|
131621
131824
|
path: "/api/zero/video-io/generate",
|
|
@@ -131639,8 +131842,8 @@ var zeroVideoIoGenerateContract = c90.router({
|
|
|
131639
131842
|
|
|
131640
131843
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-agent.ts
|
|
131641
131844
|
init_esm_shims();
|
|
131642
|
-
var
|
|
131643
|
-
var internalCallbacksAgentContract =
|
|
131845
|
+
var c92 = initContract();
|
|
131846
|
+
var internalCallbacksAgentContract = c92.router({
|
|
131644
131847
|
post: {
|
|
131645
131848
|
method: "POST",
|
|
131646
131849
|
path: "/api/internal/callbacks/agent",
|
|
@@ -131658,7 +131861,7 @@ var internalCallbacksAgentContract = c91.router({
|
|
|
131658
131861
|
|
|
131659
131862
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-github-issues.ts
|
|
131660
131863
|
init_esm_shims();
|
|
131661
|
-
var
|
|
131864
|
+
var c93 = initContract();
|
|
131662
131865
|
var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
131663
131866
|
installationId: external_exports.string(),
|
|
131664
131867
|
repo: external_exports.string(),
|
|
@@ -131670,7 +131873,7 @@ var githubIssuesCallbackPayloadSchema = external_exports.object({
|
|
|
131670
131873
|
triggerReactionId: external_exports.string().optional(),
|
|
131671
131874
|
triggerCommentBody: external_exports.string().optional()
|
|
131672
131875
|
}).passthrough();
|
|
131673
|
-
var internalCallbacksGithubIssuesContract =
|
|
131876
|
+
var internalCallbacksGithubIssuesContract = c93.router({
|
|
131674
131877
|
post: {
|
|
131675
131878
|
method: "POST",
|
|
131676
131879
|
path: "/api/internal/callbacks/github/issues",
|
|
@@ -131691,7 +131894,7 @@ var internalCallbacksGithubIssuesContract = c92.router({
|
|
|
131691
131894
|
|
|
131692
131895
|
// ../../packages/api-contracts/src/contracts/internal-callbacks-schedule.ts
|
|
131693
131896
|
init_esm_shims();
|
|
131694
|
-
var
|
|
131897
|
+
var c94 = initContract();
|
|
131695
131898
|
var scheduleLoopCallbackPayloadSchema = external_exports.object({
|
|
131696
131899
|
scheduleId: external_exports.string()
|
|
131697
131900
|
}).passthrough();
|
|
@@ -131699,7 +131902,7 @@ var scheduleCronCallbackPayloadSchema = scheduleLoopCallbackPayloadSchema.extend
|
|
|
131699
131902
|
timezone: external_exports.string(),
|
|
131700
131903
|
cronExpression: external_exports.string().optional()
|
|
131701
131904
|
}).passthrough();
|
|
131702
|
-
var internalCallbacksScheduleContract =
|
|
131905
|
+
var internalCallbacksScheduleContract = c94.router({
|
|
131703
131906
|
cron: {
|
|
131704
131907
|
method: "POST",
|
|
131705
131908
|
path: "/api/internal/callbacks/schedule/cron",
|
|
@@ -131734,13 +131937,13 @@ var internalCallbacksScheduleContract = c93.router({
|
|
|
131734
131937
|
|
|
131735
131938
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
|
|
131736
131939
|
init_esm_shims();
|
|
131737
|
-
var
|
|
131940
|
+
var c95 = initContract();
|
|
131738
131941
|
var audioInputQuotaResponseSchema = external_exports.object({
|
|
131739
131942
|
allowed: external_exports.boolean(),
|
|
131740
131943
|
count: external_exports.number().int().nonnegative(),
|
|
131741
131944
|
limit: external_exports.number().int().nonnegative().nullable()
|
|
131742
131945
|
});
|
|
131743
|
-
var zeroVoiceIoQuotaContract =
|
|
131946
|
+
var zeroVoiceIoQuotaContract = c95.router({
|
|
131744
131947
|
get: {
|
|
131745
131948
|
method: "GET",
|
|
131746
131949
|
path: "/api/zero/voice-io/quota",
|
|
@@ -131756,7 +131959,7 @@ var zeroVoiceIoQuotaContract = c94.router({
|
|
|
131756
131959
|
|
|
131757
131960
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-speech.ts
|
|
131758
131961
|
init_esm_shims();
|
|
131759
|
-
var
|
|
131962
|
+
var c96 = initContract();
|
|
131760
131963
|
var zeroVoiceIoSpeechRequestSchema = external_exports.object({
|
|
131761
131964
|
text: external_exports.unknown().optional(),
|
|
131762
131965
|
voice: external_exports.unknown().optional(),
|
|
@@ -131773,7 +131976,7 @@ var zeroVoiceIoSpeechResponseSchema = external_exports.object({
|
|
|
131773
131976
|
model: external_exports.string(),
|
|
131774
131977
|
voice: external_exports.string()
|
|
131775
131978
|
});
|
|
131776
|
-
var zeroVoiceIoSpeechContract =
|
|
131979
|
+
var zeroVoiceIoSpeechContract = c96.router({
|
|
131777
131980
|
post: {
|
|
131778
131981
|
method: "POST",
|
|
131779
131982
|
path: "/api/zero/voice-io/speech",
|
|
@@ -131795,7 +131998,7 @@ var zeroVoiceIoSpeechContract = c95.router({
|
|
|
131795
131998
|
|
|
131796
131999
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-stt.ts
|
|
131797
132000
|
init_esm_shims();
|
|
131798
|
-
var
|
|
132001
|
+
var c97 = initContract();
|
|
131799
132002
|
var zeroVoiceIoSttResponseSchema = external_exports.object({
|
|
131800
132003
|
text: external_exports.string()
|
|
131801
132004
|
});
|
|
@@ -131805,13 +132008,13 @@ var zeroVoiceIoSttQuotaErrorSchema = apiErrorSchema.extend({
|
|
|
131805
132008
|
limit: external_exports.number().nullable()
|
|
131806
132009
|
}).optional()
|
|
131807
132010
|
});
|
|
131808
|
-
var zeroVoiceIoSttContract =
|
|
132011
|
+
var zeroVoiceIoSttContract = c97.router({
|
|
131809
132012
|
post: {
|
|
131810
132013
|
method: "POST",
|
|
131811
132014
|
path: "/api/zero/voice-io/stt",
|
|
131812
132015
|
headers: authHeadersSchema,
|
|
131813
132016
|
contentType: "multipart/form-data",
|
|
131814
|
-
body:
|
|
132017
|
+
body: c97.type(),
|
|
131815
132018
|
responses: {
|
|
131816
132019
|
200: zeroVoiceIoSttResponseSchema,
|
|
131817
132020
|
400: apiErrorSchema,
|
|
@@ -131827,18 +132030,18 @@ var zeroVoiceIoSttContract = c96.router({
|
|
|
131827
132030
|
|
|
131828
132031
|
// ../../packages/api-contracts/src/contracts/zero-voice-io-tts.ts
|
|
131829
132032
|
init_esm_shims();
|
|
131830
|
-
var
|
|
132033
|
+
var c98 = initContract();
|
|
131831
132034
|
var zeroVoiceIoTtsRequestSchema = external_exports.object({
|
|
131832
132035
|
text: external_exports.unknown().optional()
|
|
131833
132036
|
}).passthrough();
|
|
131834
|
-
var zeroVoiceIoTtsContract =
|
|
132037
|
+
var zeroVoiceIoTtsContract = c98.router({
|
|
131835
132038
|
post: {
|
|
131836
132039
|
method: "POST",
|
|
131837
132040
|
path: "/api/zero/voice-io/tts",
|
|
131838
132041
|
headers: authHeadersSchema,
|
|
131839
132042
|
body: zeroVoiceIoTtsRequestSchema,
|
|
131840
132043
|
responses: {
|
|
131841
|
-
200:
|
|
132044
|
+
200: c98.otherResponse({
|
|
131842
132045
|
contentType: "application/octet-stream",
|
|
131843
132046
|
body: external_exports.unknown()
|
|
131844
132047
|
}),
|
|
@@ -131853,7 +132056,7 @@ var zeroVoiceIoTtsContract = c97.router({
|
|
|
131853
132056
|
|
|
131854
132057
|
// ../../packages/api-contracts/src/contracts/zero-uploads.ts
|
|
131855
132058
|
init_esm_shims();
|
|
131856
|
-
var
|
|
132059
|
+
var c99 = initContract();
|
|
131857
132060
|
var prepareRequestSchema = external_exports.object({
|
|
131858
132061
|
filename: external_exports.string().min(1).max(255),
|
|
131859
132062
|
contentType: external_exports.string().min(1).max(200),
|
|
@@ -131880,7 +132083,7 @@ var completeResponseSchema = external_exports.object({
|
|
|
131880
132083
|
size: external_exports.number(),
|
|
131881
132084
|
url: external_exports.string().url()
|
|
131882
132085
|
});
|
|
131883
|
-
var zeroUploadsContract =
|
|
132086
|
+
var zeroUploadsContract = c99.router({
|
|
131884
132087
|
prepare: {
|
|
131885
132088
|
method: "POST",
|
|
131886
132089
|
path: "/api/zero/uploads/prepare",
|
|
@@ -131916,7 +132119,7 @@ var zeroUploadsContract = c98.router({
|
|
|
131916
132119
|
|
|
131917
132120
|
// ../../packages/api-contracts/src/contracts/zero-host.ts
|
|
131918
132121
|
init_esm_shims();
|
|
131919
|
-
var
|
|
132122
|
+
var c100 = initContract();
|
|
131920
132123
|
var hostedSiteSlugSchema = external_exports.string().trim().min(3).max(63).regex(
|
|
131921
132124
|
/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,
|
|
131922
132125
|
"Site slug must use lowercase letters, numbers, and hyphens, and must start and end with a letter or number"
|
|
@@ -131951,7 +132154,7 @@ var hostedSiteCompleteResponseSchema = external_exports.object({
|
|
|
131951
132154
|
url: external_exports.string().url(),
|
|
131952
132155
|
status: external_exports.literal("ready")
|
|
131953
132156
|
});
|
|
131954
|
-
var zeroHostContract =
|
|
132157
|
+
var zeroHostContract = c100.router({
|
|
131955
132158
|
prepare: {
|
|
131956
132159
|
method: "POST",
|
|
131957
132160
|
path: "/api/zero/host/deployments/prepare",
|
|
@@ -131992,7 +132195,7 @@ var zeroHostContract = c99.router({
|
|
|
131992
132195
|
|
|
131993
132196
|
// ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
|
|
131994
132197
|
init_esm_shims();
|
|
131995
|
-
var
|
|
132198
|
+
var c101 = initContract();
|
|
131996
132199
|
var telegramEnvironmentSchema = external_exports.object({
|
|
131997
132200
|
requiredSecrets: external_exports.array(external_exports.string()),
|
|
131998
132201
|
requiredVars: external_exports.array(external_exports.string()),
|
|
@@ -132091,7 +132294,7 @@ var telegramSetupStatusSchema = external_exports.object({
|
|
|
132091
132294
|
var telegramWebhookPathParamsSchema = external_exports.object({
|
|
132092
132295
|
telegramBotId: external_exports.string().min(1)
|
|
132093
132296
|
});
|
|
132094
|
-
var zeroIntegrationsTelegramContract =
|
|
132297
|
+
var zeroIntegrationsTelegramContract = c101.router({
|
|
132095
132298
|
list: {
|
|
132096
132299
|
method: "GET",
|
|
132097
132300
|
path: "/api/integrations/telegram",
|
|
@@ -132134,9 +132337,9 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132134
132337
|
path: "/api/integrations/telegram/:botId",
|
|
132135
132338
|
headers: authHeadersSchema,
|
|
132136
132339
|
pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
|
|
132137
|
-
body:
|
|
132340
|
+
body: c101.noBody(),
|
|
132138
132341
|
responses: {
|
|
132139
|
-
204:
|
|
132342
|
+
204: c101.noBody(),
|
|
132140
132343
|
401: apiErrorSchema,
|
|
132141
132344
|
403: apiErrorSchema,
|
|
132142
132345
|
404: apiErrorSchema
|
|
@@ -132147,10 +132350,10 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132147
132350
|
method: "DELETE",
|
|
132148
132351
|
path: "/api/integrations/telegram/link",
|
|
132149
132352
|
headers: authHeadersSchema,
|
|
132150
|
-
body:
|
|
132353
|
+
body: c101.noBody(),
|
|
132151
132354
|
query: external_exports.object({ botId: external_exports.string().optional() }),
|
|
132152
132355
|
responses: {
|
|
132153
|
-
204:
|
|
132356
|
+
204: c101.noBody(),
|
|
132154
132357
|
401: apiErrorSchema,
|
|
132155
132358
|
404: apiErrorSchema
|
|
132156
132359
|
},
|
|
@@ -132181,7 +132384,7 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132181
132384
|
sig: external_exports.string().optional()
|
|
132182
132385
|
}),
|
|
132183
132386
|
responses: {
|
|
132184
|
-
200:
|
|
132387
|
+
200: c101.otherResponse({
|
|
132185
132388
|
contentType: "application/octet-stream",
|
|
132186
132389
|
body: external_exports.unknown()
|
|
132187
132390
|
}),
|
|
@@ -132196,7 +132399,7 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132196
132399
|
method: "GET",
|
|
132197
132400
|
path: "/api/integrations/telegram/auth-callback",
|
|
132198
132401
|
responses: {
|
|
132199
|
-
200:
|
|
132402
|
+
200: c101.otherResponse({
|
|
132200
132403
|
contentType: "text/html",
|
|
132201
132404
|
body: external_exports.unknown()
|
|
132202
132405
|
})
|
|
@@ -132255,19 +132458,19 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132255
132458
|
pathParams: telegramWebhookPathParamsSchema,
|
|
132256
132459
|
body: external_exports.unknown(),
|
|
132257
132460
|
responses: {
|
|
132258
|
-
200:
|
|
132461
|
+
200: c101.otherResponse({
|
|
132259
132462
|
contentType: "text/plain",
|
|
132260
132463
|
body: external_exports.string()
|
|
132261
132464
|
}),
|
|
132262
|
-
400:
|
|
132465
|
+
400: c101.otherResponse({
|
|
132263
132466
|
contentType: "text/plain",
|
|
132264
132467
|
body: external_exports.string()
|
|
132265
132468
|
}),
|
|
132266
|
-
401:
|
|
132469
|
+
401: c101.otherResponse({
|
|
132267
132470
|
contentType: "text/plain",
|
|
132268
132471
|
body: external_exports.string()
|
|
132269
132472
|
}),
|
|
132270
|
-
404:
|
|
132473
|
+
404: c101.otherResponse({
|
|
132271
132474
|
contentType: "text/plain",
|
|
132272
132475
|
body: external_exports.string()
|
|
132273
132476
|
})
|
|
@@ -132278,7 +132481,7 @@ var zeroIntegrationsTelegramContract = c100.router({
|
|
|
132278
132481
|
|
|
132279
132482
|
// ../../packages/api-contracts/src/contracts/zero-integrations-agentphone.ts
|
|
132280
132483
|
init_esm_shims();
|
|
132281
|
-
var
|
|
132484
|
+
var c102 = initContract();
|
|
132282
132485
|
var agentPhoneConnectBodySchema = external_exports.object({
|
|
132283
132486
|
phoneHandle: external_exports.string().min(1),
|
|
132284
132487
|
agentphoneAgentId: external_exports.string().min(1),
|
|
@@ -132315,7 +132518,7 @@ var agentPhoneStartLinkResponseSchema = external_exports.object({
|
|
|
132315
132518
|
phoneHandle: external_exports.string(),
|
|
132316
132519
|
verificationSent: external_exports.literal(true)
|
|
132317
132520
|
});
|
|
132318
|
-
var zeroIntegrationsAgentPhoneContract =
|
|
132521
|
+
var zeroIntegrationsAgentPhoneContract = c102.router({
|
|
132319
132522
|
connectAgentPhone: {
|
|
132320
132523
|
method: "POST",
|
|
132321
132524
|
path: "/api/agentphone/connect",
|
|
@@ -132333,7 +132536,7 @@ var zeroIntegrationsAgentPhoneContract = c101.router({
|
|
|
132333
132536
|
method: "POST",
|
|
132334
132537
|
path: "/api/agentphone/webhook",
|
|
132335
132538
|
headers: agentPhoneWebhookHeadersSchema,
|
|
132336
|
-
body:
|
|
132539
|
+
body: c102.type(),
|
|
132337
132540
|
responses: {
|
|
132338
132541
|
200: external_exports.string(),
|
|
132339
132542
|
400: external_exports.string(),
|
|
@@ -132371,9 +132574,9 @@ var zeroIntegrationsAgentPhoneContract = c101.router({
|
|
|
132371
132574
|
method: "DELETE",
|
|
132372
132575
|
path: "/api/integrations/agentphone/link",
|
|
132373
132576
|
headers: authHeadersSchema,
|
|
132374
|
-
body:
|
|
132577
|
+
body: c102.noBody(),
|
|
132375
132578
|
responses: {
|
|
132376
|
-
204:
|
|
132579
|
+
204: c102.noBody(),
|
|
132377
132580
|
401: apiErrorSchema,
|
|
132378
132581
|
404: apiErrorSchema
|
|
132379
132582
|
},
|
|
@@ -133082,9 +133285,9 @@ var CodexEventParser = class {
|
|
|
133082
133285
|
if (!item.changes || item.changes.length === 0) {
|
|
133083
133286
|
return null;
|
|
133084
133287
|
}
|
|
133085
|
-
const changes = item.changes.map((
|
|
133086
|
-
const action =
|
|
133087
|
-
return `${action}: ${
|
|
133288
|
+
const changes = item.changes.map((c103) => {
|
|
133289
|
+
const action = c103.kind === "add" ? "Created" : c103.kind === "modify" ? "Modified" : "Deleted";
|
|
133290
|
+
return `${action}: ${c103.path}`;
|
|
133088
133291
|
}).join("\n");
|
|
133089
133292
|
return {
|
|
133090
133293
|
type: "text",
|
|
@@ -134278,4 +134481,4 @@ undici/lib/web/fetch/body.js:
|
|
|
134278
134481
|
undici/lib/web/websocket/frame.js:
|
|
134279
134482
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
134280
134483
|
*/
|
|
134281
|
-
//# sourceMappingURL=chunk-
|
|
134484
|
+
//# sourceMappingURL=chunk-R76KWHIG.js.map
|