@vm0/cli 9.131.1 → 9.131.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-BS3XRRR3.js → chunk-REI7AIMY.js} +221 -646
- package/{chunk-BS3XRRR3.js.map → chunk-REI7AIMY.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +2 -118
- package/zero.js.map +1 -1
|
@@ -4622,8 +4622,8 @@ var require_browser = __commonJS({
|
|
|
4622
4622
|
if (!this.useColors) {
|
|
4623
4623
|
return;
|
|
4624
4624
|
}
|
|
4625
|
-
const
|
|
4626
|
-
args.splice(1, 0,
|
|
4625
|
+
const c54 = "color: " + this.color;
|
|
4626
|
+
args.splice(1, 0, c54, "color: inherit");
|
|
4627
4627
|
let index = 0;
|
|
4628
4628
|
let lastC = 0;
|
|
4629
4629
|
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
@@ -4635,7 +4635,7 @@ var require_browser = __commonJS({
|
|
|
4635
4635
|
lastC = index;
|
|
4636
4636
|
}
|
|
4637
4637
|
});
|
|
4638
|
-
args.splice(lastC, 0,
|
|
4638
|
+
args.splice(lastC, 0, c54);
|
|
4639
4639
|
}
|
|
4640
4640
|
exports.log = console.debug || console.log || (() => {
|
|
4641
4641
|
});
|
|
@@ -4923,8 +4923,8 @@ var require_node = __commonJS({
|
|
|
4923
4923
|
function formatArgs(args) {
|
|
4924
4924
|
const { namespace: name, useColors: useColors2 } = this;
|
|
4925
4925
|
if (useColors2) {
|
|
4926
|
-
const
|
|
4927
|
-
const colorCode = "\x1B[3" + (
|
|
4926
|
+
const c54 = this.color;
|
|
4927
|
+
const colorCode = "\x1B[3" + (c54 < 8 ? c54 : "8;5;" + c54);
|
|
4928
4928
|
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
4929
4929
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
4930
4930
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
@@ -10083,27 +10083,27 @@ var require_commonjs2 = __commonJS({
|
|
|
10083
10083
|
const pad = n.some(isPadded);
|
|
10084
10084
|
N = [];
|
|
10085
10085
|
for (let i = x2; test(i, y); i += incr) {
|
|
10086
|
-
let
|
|
10086
|
+
let c54;
|
|
10087
10087
|
if (isAlphaSequence) {
|
|
10088
|
-
|
|
10089
|
-
if (
|
|
10090
|
-
|
|
10088
|
+
c54 = String.fromCharCode(i);
|
|
10089
|
+
if (c54 === "\\") {
|
|
10090
|
+
c54 = "";
|
|
10091
10091
|
}
|
|
10092
10092
|
} else {
|
|
10093
|
-
|
|
10093
|
+
c54 = String(i);
|
|
10094
10094
|
if (pad) {
|
|
10095
|
-
const need = width -
|
|
10095
|
+
const need = width - c54.length;
|
|
10096
10096
|
if (need > 0) {
|
|
10097
10097
|
const z3 = new Array(need + 1).join("0");
|
|
10098
10098
|
if (i < 0) {
|
|
10099
|
-
|
|
10099
|
+
c54 = "-" + z3 + c54.slice(1);
|
|
10100
10100
|
} else {
|
|
10101
|
-
|
|
10101
|
+
c54 = z3 + c54;
|
|
10102
10102
|
}
|
|
10103
10103
|
}
|
|
10104
10104
|
}
|
|
10105
10105
|
}
|
|
10106
|
-
N.push(
|
|
10106
|
+
N.push(c54);
|
|
10107
10107
|
}
|
|
10108
10108
|
} else {
|
|
10109
10109
|
N = [];
|
|
@@ -10186,25 +10186,25 @@ var require_brace_expressions = __commonJS({
|
|
|
10186
10186
|
let endPos = pos;
|
|
10187
10187
|
let rangeStart = "";
|
|
10188
10188
|
WHILE: while (i < glob.length) {
|
|
10189
|
-
const
|
|
10190
|
-
if ((
|
|
10189
|
+
const c54 = glob.charAt(i);
|
|
10190
|
+
if ((c54 === "!" || c54 === "^") && i === pos + 1) {
|
|
10191
10191
|
negate = true;
|
|
10192
10192
|
i++;
|
|
10193
10193
|
continue;
|
|
10194
10194
|
}
|
|
10195
|
-
if (
|
|
10195
|
+
if (c54 === "]" && sawStart && !escaping) {
|
|
10196
10196
|
endPos = i + 1;
|
|
10197
10197
|
break;
|
|
10198
10198
|
}
|
|
10199
10199
|
sawStart = true;
|
|
10200
|
-
if (
|
|
10200
|
+
if (c54 === "\\") {
|
|
10201
10201
|
if (!escaping) {
|
|
10202
10202
|
escaping = true;
|
|
10203
10203
|
i++;
|
|
10204
10204
|
continue;
|
|
10205
10205
|
}
|
|
10206
10206
|
}
|
|
10207
|
-
if (
|
|
10207
|
+
if (c54 === "[" && !escaping) {
|
|
10208
10208
|
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
10209
10209
|
if (glob.startsWith(cls, i)) {
|
|
10210
10210
|
if (rangeStart) {
|
|
@@ -10222,26 +10222,26 @@ var require_brace_expressions = __commonJS({
|
|
|
10222
10222
|
}
|
|
10223
10223
|
escaping = false;
|
|
10224
10224
|
if (rangeStart) {
|
|
10225
|
-
if (
|
|
10226
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(
|
|
10227
|
-
} else if (
|
|
10228
|
-
ranges.push(braceEscape(
|
|
10225
|
+
if (c54 > rangeStart) {
|
|
10226
|
+
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c54));
|
|
10227
|
+
} else if (c54 === rangeStart) {
|
|
10228
|
+
ranges.push(braceEscape(c54));
|
|
10229
10229
|
}
|
|
10230
10230
|
rangeStart = "";
|
|
10231
10231
|
i++;
|
|
10232
10232
|
continue;
|
|
10233
10233
|
}
|
|
10234
10234
|
if (glob.startsWith("-]", i + 1)) {
|
|
10235
|
-
ranges.push(braceEscape(
|
|
10235
|
+
ranges.push(braceEscape(c54 + "-"));
|
|
10236
10236
|
i += 2;
|
|
10237
10237
|
continue;
|
|
10238
10238
|
}
|
|
10239
10239
|
if (glob.startsWith("-", i + 1)) {
|
|
10240
|
-
rangeStart =
|
|
10240
|
+
rangeStart = c54;
|
|
10241
10241
|
i += 2;
|
|
10242
10242
|
continue;
|
|
10243
10243
|
}
|
|
10244
|
-
ranges.push(braceEscape(
|
|
10244
|
+
ranges.push(braceEscape(c54));
|
|
10245
10245
|
i++;
|
|
10246
10246
|
}
|
|
10247
10247
|
if (endPos < i) {
|
|
@@ -10291,8 +10291,8 @@ var require_ast = __commonJS({
|
|
|
10291
10291
|
var brace_expressions_js_1 = require_brace_expressions();
|
|
10292
10292
|
var unescape_js_1 = require_unescape();
|
|
10293
10293
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
10294
|
-
var isExtglobType = (
|
|
10295
|
-
var isExtglobAST = (
|
|
10294
|
+
var isExtglobType = (c54) => types.has(c54);
|
|
10295
|
+
var isExtglobAST = (c54) => isExtglobType(c54.type);
|
|
10296
10296
|
var adoptionMap = /* @__PURE__ */ new Map([
|
|
10297
10297
|
["!", ["@"]],
|
|
10298
10298
|
["?", ["?", "@"]],
|
|
@@ -10489,11 +10489,11 @@ var require_ast = __commonJS({
|
|
|
10489
10489
|
this.push(part.clone(this));
|
|
10490
10490
|
}
|
|
10491
10491
|
clone(parent) {
|
|
10492
|
-
const
|
|
10492
|
+
const c54 = new _a2(this.type, parent);
|
|
10493
10493
|
for (const p of this.#parts) {
|
|
10494
|
-
|
|
10494
|
+
c54.copyIn(p);
|
|
10495
10495
|
}
|
|
10496
|
-
return
|
|
10496
|
+
return c54;
|
|
10497
10497
|
}
|
|
10498
10498
|
static #parseAST(str, ast, pos, opt, extDepth) {
|
|
10499
10499
|
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
@@ -10505,39 +10505,39 @@ var require_ast = __commonJS({
|
|
|
10505
10505
|
let i2 = pos;
|
|
10506
10506
|
let acc2 = "";
|
|
10507
10507
|
while (i2 < str.length) {
|
|
10508
|
-
const
|
|
10509
|
-
if (escaping ||
|
|
10508
|
+
const c54 = str.charAt(i2++);
|
|
10509
|
+
if (escaping || c54 === "\\") {
|
|
10510
10510
|
escaping = !escaping;
|
|
10511
|
-
acc2 +=
|
|
10511
|
+
acc2 += c54;
|
|
10512
10512
|
continue;
|
|
10513
10513
|
}
|
|
10514
10514
|
if (inBrace) {
|
|
10515
10515
|
if (i2 === braceStart + 1) {
|
|
10516
|
-
if (
|
|
10516
|
+
if (c54 === "^" || c54 === "!") {
|
|
10517
10517
|
braceNeg = true;
|
|
10518
10518
|
}
|
|
10519
|
-
} else if (
|
|
10519
|
+
} else if (c54 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
10520
10520
|
inBrace = false;
|
|
10521
10521
|
}
|
|
10522
|
-
acc2 +=
|
|
10522
|
+
acc2 += c54;
|
|
10523
10523
|
continue;
|
|
10524
|
-
} else if (
|
|
10524
|
+
} else if (c54 === "[") {
|
|
10525
10525
|
inBrace = true;
|
|
10526
10526
|
braceStart = i2;
|
|
10527
10527
|
braceNeg = false;
|
|
10528
|
-
acc2 +=
|
|
10528
|
+
acc2 += c54;
|
|
10529
10529
|
continue;
|
|
10530
10530
|
}
|
|
10531
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
10531
|
+
const doRecurse = !opt.noext && isExtglobType(c54) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
10532
10532
|
if (doRecurse) {
|
|
10533
10533
|
ast.push(acc2);
|
|
10534
10534
|
acc2 = "";
|
|
10535
|
-
const ext = new _a2(
|
|
10535
|
+
const ext = new _a2(c54, ast);
|
|
10536
10536
|
i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
|
|
10537
10537
|
ast.push(ext);
|
|
10538
10538
|
continue;
|
|
10539
10539
|
}
|
|
10540
|
-
acc2 +=
|
|
10540
|
+
acc2 += c54;
|
|
10541
10541
|
}
|
|
10542
10542
|
ast.push(acc2);
|
|
10543
10543
|
return i2;
|
|
@@ -10547,48 +10547,48 @@ var require_ast = __commonJS({
|
|
|
10547
10547
|
const parts = [];
|
|
10548
10548
|
let acc = "";
|
|
10549
10549
|
while (i < str.length) {
|
|
10550
|
-
const
|
|
10551
|
-
if (escaping ||
|
|
10550
|
+
const c54 = str.charAt(i++);
|
|
10551
|
+
if (escaping || c54 === "\\") {
|
|
10552
10552
|
escaping = !escaping;
|
|
10553
|
-
acc +=
|
|
10553
|
+
acc += c54;
|
|
10554
10554
|
continue;
|
|
10555
10555
|
}
|
|
10556
10556
|
if (inBrace) {
|
|
10557
10557
|
if (i === braceStart + 1) {
|
|
10558
|
-
if (
|
|
10558
|
+
if (c54 === "^" || c54 === "!") {
|
|
10559
10559
|
braceNeg = true;
|
|
10560
10560
|
}
|
|
10561
|
-
} else if (
|
|
10561
|
+
} else if (c54 === "]" && !(i === braceStart + 2 && braceNeg)) {
|
|
10562
10562
|
inBrace = false;
|
|
10563
10563
|
}
|
|
10564
|
-
acc +=
|
|
10564
|
+
acc += c54;
|
|
10565
10565
|
continue;
|
|
10566
|
-
} else if (
|
|
10566
|
+
} else if (c54 === "[") {
|
|
10567
10567
|
inBrace = true;
|
|
10568
10568
|
braceStart = i;
|
|
10569
10569
|
braceNeg = false;
|
|
10570
|
-
acc +=
|
|
10570
|
+
acc += c54;
|
|
10571
10571
|
continue;
|
|
10572
10572
|
}
|
|
10573
|
-
const doRecurse = !opt.noext && isExtglobType(
|
|
10574
|
-
(extDepth <= maxDepth || ast && ast.#canAdoptType(
|
|
10573
|
+
const doRecurse = !opt.noext && isExtglobType(c54) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
10574
|
+
(extDepth <= maxDepth || ast && ast.#canAdoptType(c54));
|
|
10575
10575
|
if (doRecurse) {
|
|
10576
|
-
const depthAdd = ast && ast.#canAdoptType(
|
|
10576
|
+
const depthAdd = ast && ast.#canAdoptType(c54) ? 0 : 1;
|
|
10577
10577
|
part.push(acc);
|
|
10578
10578
|
acc = "";
|
|
10579
|
-
const ext = new _a2(
|
|
10579
|
+
const ext = new _a2(c54, part);
|
|
10580
10580
|
part.push(ext);
|
|
10581
10581
|
i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
|
|
10582
10582
|
continue;
|
|
10583
10583
|
}
|
|
10584
|
-
if (
|
|
10584
|
+
if (c54 === "|") {
|
|
10585
10585
|
part.push(acc);
|
|
10586
10586
|
acc = "";
|
|
10587
10587
|
parts.push(part);
|
|
10588
10588
|
part = new _a2(null, ast);
|
|
10589
10589
|
continue;
|
|
10590
10590
|
}
|
|
10591
|
-
if (
|
|
10591
|
+
if (c54 === ")") {
|
|
10592
10592
|
if (acc === "" && ast.#parts.length === 0) {
|
|
10593
10593
|
ast.#emptyExt = true;
|
|
10594
10594
|
}
|
|
@@ -10597,7 +10597,7 @@ var require_ast = __commonJS({
|
|
|
10597
10597
|
ast.push(...parts, part);
|
|
10598
10598
|
return i;
|
|
10599
10599
|
}
|
|
10600
|
-
acc +=
|
|
10600
|
+
acc += c54;
|
|
10601
10601
|
}
|
|
10602
10602
|
ast.type = null;
|
|
10603
10603
|
ast.#hasMagic = void 0;
|
|
@@ -10617,8 +10617,8 @@ var require_ast = __commonJS({
|
|
|
10617
10617
|
}
|
|
10618
10618
|
return this.#canAdoptType(gc.type, map2);
|
|
10619
10619
|
}
|
|
10620
|
-
#canAdoptType(
|
|
10621
|
-
return !!map2.get(this.type)?.includes(
|
|
10620
|
+
#canAdoptType(c54, map2 = adoptionAnyMap) {
|
|
10621
|
+
return !!map2.get(this.type)?.includes(c54);
|
|
10622
10622
|
}
|
|
10623
10623
|
#adoptWithSpace(child, index) {
|
|
10624
10624
|
const gc = child.#parts[0];
|
|
@@ -10636,9 +10636,9 @@ var require_ast = __commonJS({
|
|
|
10636
10636
|
}
|
|
10637
10637
|
this.#toString = void 0;
|
|
10638
10638
|
}
|
|
10639
|
-
#canUsurpType(
|
|
10639
|
+
#canUsurpType(c54) {
|
|
10640
10640
|
const m = usurpMap.get(this.type);
|
|
10641
|
-
return !!m?.has(
|
|
10641
|
+
return !!m?.has(c54);
|
|
10642
10642
|
}
|
|
10643
10643
|
#canUsurp(child) {
|
|
10644
10644
|
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
|
|
@@ -10851,18 +10851,18 @@ var require_ast = __commonJS({
|
|
|
10851
10851
|
do {
|
|
10852
10852
|
done = true;
|
|
10853
10853
|
for (let i = 0; i < this.#parts.length; i++) {
|
|
10854
|
-
const
|
|
10855
|
-
if (typeof
|
|
10856
|
-
|
|
10857
|
-
if (this.#canAdopt(
|
|
10854
|
+
const c54 = this.#parts[i];
|
|
10855
|
+
if (typeof c54 === "object") {
|
|
10856
|
+
c54.#flatten();
|
|
10857
|
+
if (this.#canAdopt(c54)) {
|
|
10858
10858
|
done = false;
|
|
10859
|
-
this.#adopt(
|
|
10860
|
-
} else if (this.#canAdoptWithSpace(
|
|
10859
|
+
this.#adopt(c54, i);
|
|
10860
|
+
} else if (this.#canAdoptWithSpace(c54)) {
|
|
10861
10861
|
done = false;
|
|
10862
|
-
this.#adoptWithSpace(
|
|
10863
|
-
} else if (this.#canUsurp(
|
|
10862
|
+
this.#adoptWithSpace(c54, i);
|
|
10863
|
+
} else if (this.#canUsurp(c54)) {
|
|
10864
10864
|
done = false;
|
|
10865
|
-
this.#usurp(
|
|
10865
|
+
this.#usurp(c54);
|
|
10866
10866
|
}
|
|
10867
10867
|
}
|
|
10868
10868
|
}
|
|
@@ -10886,13 +10886,13 @@ var require_ast = __commonJS({
|
|
|
10886
10886
|
let uflag = false;
|
|
10887
10887
|
let inStar = false;
|
|
10888
10888
|
for (let i = 0; i < glob.length; i++) {
|
|
10889
|
-
const
|
|
10889
|
+
const c54 = glob.charAt(i);
|
|
10890
10890
|
if (escaping) {
|
|
10891
10891
|
escaping = false;
|
|
10892
|
-
re += (reSpecials.has(
|
|
10892
|
+
re += (reSpecials.has(c54) ? "\\" : "") + c54;
|
|
10893
10893
|
continue;
|
|
10894
10894
|
}
|
|
10895
|
-
if (
|
|
10895
|
+
if (c54 === "*") {
|
|
10896
10896
|
if (inStar)
|
|
10897
10897
|
continue;
|
|
10898
10898
|
inStar = true;
|
|
@@ -10902,7 +10902,7 @@ var require_ast = __commonJS({
|
|
|
10902
10902
|
} else {
|
|
10903
10903
|
inStar = false;
|
|
10904
10904
|
}
|
|
10905
|
-
if (
|
|
10905
|
+
if (c54 === "\\") {
|
|
10906
10906
|
if (i === glob.length - 1) {
|
|
10907
10907
|
re += "\\\\";
|
|
10908
10908
|
} else {
|
|
@@ -10910,7 +10910,7 @@ var require_ast = __commonJS({
|
|
|
10910
10910
|
}
|
|
10911
10911
|
continue;
|
|
10912
10912
|
}
|
|
10913
|
-
if (
|
|
10913
|
+
if (c54 === "[") {
|
|
10914
10914
|
const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
|
|
10915
10915
|
if (consumed) {
|
|
10916
10916
|
re += src;
|
|
@@ -10920,12 +10920,12 @@ var require_ast = __commonJS({
|
|
|
10920
10920
|
continue;
|
|
10921
10921
|
}
|
|
10922
10922
|
}
|
|
10923
|
-
if (
|
|
10923
|
+
if (c54 === "?") {
|
|
10924
10924
|
re += qmark;
|
|
10925
10925
|
hasMagic = true;
|
|
10926
10926
|
continue;
|
|
10927
10927
|
}
|
|
10928
|
-
re += regExpEscape(
|
|
10928
|
+
re += regExpEscape(c54);
|
|
10929
10929
|
}
|
|
10930
10930
|
return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
|
|
10931
10931
|
}
|
|
@@ -14842,13 +14842,13 @@ var require_utils5 = __commonJS({
|
|
|
14842
14842
|
}
|
|
14843
14843
|
exports.arrayStringifyHelper = arrayStringifyHelper;
|
|
14844
14844
|
function getPoolNameOld(pool) {
|
|
14845
|
-
const
|
|
14845
|
+
const c54 = pool.config.connectionConfig;
|
|
14846
14846
|
let poolName = "";
|
|
14847
|
-
poolName +=
|
|
14848
|
-
poolName +=
|
|
14849
|
-
poolName +=
|
|
14850
|
-
poolName +=
|
|
14851
|
-
if (!
|
|
14847
|
+
poolName += c54.host ? `host: '${c54.host}', ` : "";
|
|
14848
|
+
poolName += c54.port ? `port: ${c54.port}, ` : "";
|
|
14849
|
+
poolName += c54.database ? `database: '${c54.database}', ` : "";
|
|
14850
|
+
poolName += c54.user ? `user: '${c54.user}'` : "";
|
|
14851
|
+
if (!c54.user) {
|
|
14852
14852
|
poolName = poolName.substring(0, poolName.length - 2);
|
|
14853
14853
|
}
|
|
14854
14854
|
return poolName.trim();
|
|
@@ -15200,7 +15200,7 @@ var require_src12 = __commonJS({
|
|
|
15200
15200
|
return indexOpeningDashDashComment < indexClosingSlashComment;
|
|
15201
15201
|
}
|
|
15202
15202
|
function fixedEncodeURIComponent(str) {
|
|
15203
|
-
return encodeURIComponent(str).replace(/[!'()*]/g, (
|
|
15203
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, (c54) => `%${c54.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
15204
15204
|
}
|
|
15205
15205
|
function addSqlCommenterComment(span, query) {
|
|
15206
15206
|
if (typeof query !== "string" || query.length === 0) {
|
|
@@ -23750,8 +23750,8 @@ var require_util = __commonJS({
|
|
|
23750
23750
|
function isUSVString(val) {
|
|
23751
23751
|
return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
|
|
23752
23752
|
}
|
|
23753
|
-
function isTokenCharCode(
|
|
23754
|
-
switch (
|
|
23753
|
+
function isTokenCharCode(c54) {
|
|
23754
|
+
switch (c54) {
|
|
23755
23755
|
case 34:
|
|
23756
23756
|
case 40:
|
|
23757
23757
|
case 41:
|
|
@@ -23771,7 +23771,7 @@ var require_util = __commonJS({
|
|
|
23771
23771
|
case 125:
|
|
23772
23772
|
return false;
|
|
23773
23773
|
default:
|
|
23774
|
-
return
|
|
23774
|
+
return c54 >= 33 && c54 <= 126;
|
|
23775
23775
|
}
|
|
23776
23776
|
}
|
|
23777
23777
|
function isValidHTTPToken(characters) {
|
|
@@ -25360,7 +25360,7 @@ var require_constants2 = __commonJS({
|
|
|
25360
25360
|
exports.HEADER_CHARS.push(i);
|
|
25361
25361
|
}
|
|
25362
25362
|
}
|
|
25363
|
-
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((
|
|
25363
|
+
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c54) => c54 !== 44);
|
|
25364
25364
|
exports.MAJOR = exports.NUM_MAP;
|
|
25365
25365
|
exports.MINOR = exports.MAJOR;
|
|
25366
25366
|
var HEADER_STATE;
|
|
@@ -26506,10 +26506,10 @@ var require_util2 = __commonJS({
|
|
|
26506
26506
|
}
|
|
26507
26507
|
function isValidReasonPhrase(statusText) {
|
|
26508
26508
|
for (let i = 0; i < statusText.length; ++i) {
|
|
26509
|
-
const
|
|
26510
|
-
if (!(
|
|
26511
|
-
|
|
26512
|
-
|
|
26509
|
+
const c54 = statusText.charCodeAt(i);
|
|
26510
|
+
if (!(c54 === 9 || // HTAB
|
|
26511
|
+
c54 >= 32 && c54 <= 126 || // SP / VCHAR
|
|
26512
|
+
c54 >= 128 && c54 <= 255)) {
|
|
26513
26513
|
return false;
|
|
26514
26514
|
}
|
|
26515
26515
|
}
|
|
@@ -30483,7 +30483,7 @@ var require_pool_base = __commonJS({
|
|
|
30483
30483
|
pool.emit("drain", origin, [pool, ...targets]);
|
|
30484
30484
|
}
|
|
30485
30485
|
if (pool[kClosedResolve] && queue.isEmpty()) {
|
|
30486
|
-
Promise.all(pool[kClients].map((
|
|
30486
|
+
Promise.all(pool[kClients].map((c54) => c54.close())).then(pool[kClosedResolve]);
|
|
30487
30487
|
}
|
|
30488
30488
|
};
|
|
30489
30489
|
this[kOnConnect] = (origin, targets) => {
|
|
@@ -30532,7 +30532,7 @@ var require_pool_base = __commonJS({
|
|
|
30532
30532
|
}
|
|
30533
30533
|
async [kClose]() {
|
|
30534
30534
|
if (this[kQueue].isEmpty()) {
|
|
30535
|
-
await Promise.all(this[kClients].map((
|
|
30535
|
+
await Promise.all(this[kClients].map((c54) => c54.close()));
|
|
30536
30536
|
} else {
|
|
30537
30537
|
await new Promise((resolve2) => {
|
|
30538
30538
|
this[kClosedResolve] = resolve2;
|
|
@@ -30547,7 +30547,7 @@ var require_pool_base = __commonJS({
|
|
|
30547
30547
|
}
|
|
30548
30548
|
item.handler.onError(err);
|
|
30549
30549
|
}
|
|
30550
|
-
await Promise.all(this[kClients].map((
|
|
30550
|
+
await Promise.all(this[kClients].map((c54) => c54.destroy(err)));
|
|
30551
30551
|
}
|
|
30552
30552
|
[kDispatch](opts, handler) {
|
|
30553
30553
|
const dispatcher = this[kGetDispatcher]();
|
|
@@ -37317,8 +37317,8 @@ var require_util4 = __commonJS({
|
|
|
37317
37317
|
return new TextDecoder(encoding).decode(sliced);
|
|
37318
37318
|
}
|
|
37319
37319
|
function BOMSniffing(ioQueue) {
|
|
37320
|
-
const [a, b,
|
|
37321
|
-
if (a === 239 && b === 187 &&
|
|
37320
|
+
const [a, b, c54] = ioQueue;
|
|
37321
|
+
if (a === 239 && b === 187 && c54 === 191) {
|
|
37322
37322
|
return "UTF-8";
|
|
37323
37323
|
} else if (a === 254 && b === 255) {
|
|
37324
37324
|
return "UTF-16BE";
|
|
@@ -41797,9 +41797,9 @@ var require_Alias = __commonJS({
|
|
|
41797
41797
|
} else if (identity.isCollection(node2)) {
|
|
41798
41798
|
let count = 0;
|
|
41799
41799
|
for (const item of node2.items) {
|
|
41800
|
-
const
|
|
41801
|
-
if (
|
|
41802
|
-
count =
|
|
41800
|
+
const c54 = getAliasCount(doc, item, anchors2);
|
|
41801
|
+
if (c54 > count)
|
|
41802
|
+
count = c54;
|
|
41803
41803
|
}
|
|
41804
41804
|
return count;
|
|
41805
41805
|
} else if (identity.isPair(node2)) {
|
|
@@ -48815,7 +48815,7 @@ var require_style = __commonJS({
|
|
|
48815
48815
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
|
|
48816
48816
|
"use strict";
|
|
48817
48817
|
init_esm_shims();
|
|
48818
|
-
var
|
|
48818
|
+
var c54 = require_kleur();
|
|
48819
48819
|
var figures = require_figures();
|
|
48820
48820
|
var styles3 = Object.freeze({
|
|
48821
48821
|
password: {
|
|
@@ -48837,14 +48837,14 @@ var require_style = __commonJS({
|
|
|
48837
48837
|
});
|
|
48838
48838
|
var render = (type) => styles3[type] || styles3.default;
|
|
48839
48839
|
var symbols = Object.freeze({
|
|
48840
|
-
aborted:
|
|
48841
|
-
done:
|
|
48842
|
-
exited:
|
|
48843
|
-
default:
|
|
48840
|
+
aborted: c54.red(figures.cross),
|
|
48841
|
+
done: c54.green(figures.tick),
|
|
48842
|
+
exited: c54.yellow(figures.cross),
|
|
48843
|
+
default: c54.cyan("?")
|
|
48844
48844
|
});
|
|
48845
48845
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
48846
|
-
var delimiter = (completing) =>
|
|
48847
|
-
var item = (expandable, expanded) =>
|
|
48846
|
+
var delimiter = (completing) => c54.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
48847
|
+
var item = (expandable, expanded) => c54.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
48848
48848
|
module2.exports = {
|
|
48849
48849
|
styles: styles3,
|
|
48850
48850
|
render,
|
|
@@ -49126,10 +49126,10 @@ var require_text = __commonJS({
|
|
|
49126
49126
|
this.cursor = this.cursor + n;
|
|
49127
49127
|
this.cursorOffset += n;
|
|
49128
49128
|
}
|
|
49129
|
-
_(
|
|
49129
|
+
_(c54, key) {
|
|
49130
49130
|
let s1 = this.value.slice(0, this.cursor);
|
|
49131
49131
|
let s2 = this.value.slice(this.cursor);
|
|
49132
|
-
this.value = `${s1}${
|
|
49132
|
+
this.value = `${s1}${c54}${s2}`;
|
|
49133
49133
|
this.red = false;
|
|
49134
49134
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
49135
49135
|
this.render();
|
|
@@ -49304,8 +49304,8 @@ var require_select = __commonJS({
|
|
|
49304
49304
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
49305
49305
|
this.render();
|
|
49306
49306
|
}
|
|
49307
|
-
_(
|
|
49308
|
-
if (
|
|
49307
|
+
_(c54, key) {
|
|
49308
|
+
if (c54 === " ") return this.submit();
|
|
49309
49309
|
}
|
|
49310
49310
|
get selection() {
|
|
49311
49311
|
return this.choices[this.cursor];
|
|
@@ -49431,12 +49431,12 @@ var require_toggle = __commonJS({
|
|
|
49431
49431
|
this.fire();
|
|
49432
49432
|
this.render();
|
|
49433
49433
|
}
|
|
49434
|
-
_(
|
|
49435
|
-
if (
|
|
49434
|
+
_(c54, key) {
|
|
49435
|
+
if (c54 === " ") {
|
|
49436
49436
|
this.value = !this.value;
|
|
49437
|
-
} else if (
|
|
49437
|
+
} else if (c54 === "1") {
|
|
49438
49438
|
this.value = true;
|
|
49439
|
-
} else if (
|
|
49439
|
+
} else if (c54 === "0") {
|
|
49440
49440
|
this.value = false;
|
|
49441
49441
|
} else return this.bell();
|
|
49442
49442
|
this.render();
|
|
@@ -49944,9 +49944,9 @@ var require_date = __commonJS({
|
|
|
49944
49944
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
49945
49945
|
this.render();
|
|
49946
49946
|
}
|
|
49947
|
-
_(
|
|
49948
|
-
if (/\d/.test(
|
|
49949
|
-
this.typed +=
|
|
49947
|
+
_(c54) {
|
|
49948
|
+
if (/\d/.test(c54)) {
|
|
49949
|
+
this.typed += c54;
|
|
49950
49950
|
this.parts[this.cursor].setTo(this.typed);
|
|
49951
49951
|
this.render();
|
|
49952
49952
|
}
|
|
@@ -50055,8 +50055,8 @@ var require_number = __commonJS({
|
|
|
50055
50055
|
parse(x2) {
|
|
50056
50056
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
50057
50057
|
}
|
|
50058
|
-
valid(
|
|
50059
|
-
return
|
|
50058
|
+
valid(c54) {
|
|
50059
|
+
return c54 === `-` || c54 === `.` && this.float || isNumber.test(c54);
|
|
50060
50060
|
}
|
|
50061
50061
|
reset() {
|
|
50062
50062
|
this.typed = ``;
|
|
@@ -50149,14 +50149,14 @@ var require_number = __commonJS({
|
|
|
50149
50149
|
this.fire();
|
|
50150
50150
|
this.render();
|
|
50151
50151
|
}
|
|
50152
|
-
_(
|
|
50153
|
-
if (!this.valid(
|
|
50152
|
+
_(c54, key) {
|
|
50153
|
+
if (!this.valid(c54)) return this.bell();
|
|
50154
50154
|
const now = Date.now();
|
|
50155
50155
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
50156
|
-
this.typed +=
|
|
50156
|
+
this.typed += c54;
|
|
50157
50157
|
this.lastHit = now;
|
|
50158
50158
|
this.color = `cyan`;
|
|
50159
|
-
if (
|
|
50159
|
+
if (c54 === `.`) return this.fire();
|
|
50160
50160
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
50161
50161
|
if (this.value > this.max) this.value = this.max;
|
|
50162
50162
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -50320,10 +50320,10 @@ var require_multiselect = __commonJS({
|
|
|
50320
50320
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
50321
50321
|
this.render();
|
|
50322
50322
|
}
|
|
50323
|
-
_(
|
|
50324
|
-
if (
|
|
50323
|
+
_(c54, key) {
|
|
50324
|
+
if (c54 === " ") {
|
|
50325
50325
|
this.handleSpaceToggle();
|
|
50326
|
-
} else if (
|
|
50326
|
+
} else if (c54 === "a") {
|
|
50327
50327
|
this.toggleAll();
|
|
50328
50328
|
} else {
|
|
50329
50329
|
return this.bell();
|
|
@@ -50564,10 +50564,10 @@ var require_autocomplete = __commonJS({
|
|
|
50564
50564
|
this.out.write("\n");
|
|
50565
50565
|
this.close();
|
|
50566
50566
|
}
|
|
50567
|
-
_(
|
|
50567
|
+
_(c54, key) {
|
|
50568
50568
|
let s1 = this.input.slice(0, this.cursor);
|
|
50569
50569
|
let s2 = this.input.slice(this.cursor);
|
|
50570
|
-
this.input = `${s1}${
|
|
50570
|
+
this.input = `${s1}${c54}${s2}`;
|
|
50571
50571
|
this.cursor = s1.length + 1;
|
|
50572
50572
|
this.complete(this.render);
|
|
50573
50573
|
this.render();
|
|
@@ -50767,15 +50767,15 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
50767
50767
|
this.render();
|
|
50768
50768
|
}
|
|
50769
50769
|
}
|
|
50770
|
-
handleInputChange(
|
|
50771
|
-
this.inputValue = this.inputValue +
|
|
50770
|
+
handleInputChange(c54) {
|
|
50771
|
+
this.inputValue = this.inputValue + c54;
|
|
50772
50772
|
this.updateFilteredOptions();
|
|
50773
50773
|
}
|
|
50774
|
-
_(
|
|
50775
|
-
if (
|
|
50774
|
+
_(c54, key) {
|
|
50775
|
+
if (c54 === " ") {
|
|
50776
50776
|
this.handleSpaceToggle();
|
|
50777
50777
|
} else {
|
|
50778
|
-
this.handleInputChange(
|
|
50778
|
+
this.handleInputChange(c54);
|
|
50779
50779
|
}
|
|
50780
50780
|
}
|
|
50781
50781
|
renderInstructions() {
|
|
@@ -50881,12 +50881,12 @@ var require_confirm = __commonJS({
|
|
|
50881
50881
|
this.out.write("\n");
|
|
50882
50882
|
this.close();
|
|
50883
50883
|
}
|
|
50884
|
-
_(
|
|
50885
|
-
if (
|
|
50884
|
+
_(c54, key) {
|
|
50885
|
+
if (c54.toLowerCase() === "y") {
|
|
50886
50886
|
this.value = true;
|
|
50887
50887
|
return this.submit();
|
|
50888
50888
|
}
|
|
50889
|
-
if (
|
|
50889
|
+
if (c54.toLowerCase() === "n") {
|
|
50890
50890
|
this.value = false;
|
|
50891
50891
|
return this.submit();
|
|
50892
50892
|
}
|
|
@@ -51327,7 +51327,7 @@ var require_style2 = __commonJS({
|
|
|
51327
51327
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
|
|
51328
51328
|
"use strict";
|
|
51329
51329
|
init_esm_shims();
|
|
51330
|
-
var
|
|
51330
|
+
var c54 = require_kleur();
|
|
51331
51331
|
var figures = require_figures2();
|
|
51332
51332
|
var styles3 = Object.freeze({
|
|
51333
51333
|
password: { scale: 1, render: (input) => "*".repeat(input.length) },
|
|
@@ -51337,14 +51337,14 @@ var require_style2 = __commonJS({
|
|
|
51337
51337
|
});
|
|
51338
51338
|
var render = (type) => styles3[type] || styles3.default;
|
|
51339
51339
|
var symbols = Object.freeze({
|
|
51340
|
-
aborted:
|
|
51341
|
-
done:
|
|
51342
|
-
exited:
|
|
51343
|
-
default:
|
|
51340
|
+
aborted: c54.red(figures.cross),
|
|
51341
|
+
done: c54.green(figures.tick),
|
|
51342
|
+
exited: c54.yellow(figures.cross),
|
|
51343
|
+
default: c54.cyan("?")
|
|
51344
51344
|
});
|
|
51345
51345
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
51346
|
-
var delimiter = (completing) =>
|
|
51347
|
-
var item = (expandable, expanded) =>
|
|
51346
|
+
var delimiter = (completing) => c54.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
51347
|
+
var item = (expandable, expanded) => c54.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
51348
51348
|
module2.exports = {
|
|
51349
51349
|
styles: styles3,
|
|
51350
51350
|
render,
|
|
@@ -51577,10 +51577,10 @@ var require_text2 = __commonJS({
|
|
|
51577
51577
|
this.cursor = this.cursor + n;
|
|
51578
51578
|
this.cursorOffset += n;
|
|
51579
51579
|
}
|
|
51580
|
-
_(
|
|
51580
|
+
_(c54, key) {
|
|
51581
51581
|
let s1 = this.value.slice(0, this.cursor);
|
|
51582
51582
|
let s2 = this.value.slice(this.cursor);
|
|
51583
|
-
this.value = `${s1}${
|
|
51583
|
+
this.value = `${s1}${c54}${s2}`;
|
|
51584
51584
|
this.red = false;
|
|
51585
51585
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
51586
51586
|
this.render();
|
|
@@ -51754,8 +51754,8 @@ var require_select2 = __commonJS({
|
|
|
51754
51754
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
51755
51755
|
this.render();
|
|
51756
51756
|
}
|
|
51757
|
-
_(
|
|
51758
|
-
if (
|
|
51757
|
+
_(c54, key) {
|
|
51758
|
+
if (c54 === " ") return this.submit();
|
|
51759
51759
|
}
|
|
51760
51760
|
get selection() {
|
|
51761
51761
|
return this.choices[this.cursor];
|
|
@@ -51879,12 +51879,12 @@ var require_toggle2 = __commonJS({
|
|
|
51879
51879
|
this.fire();
|
|
51880
51880
|
this.render();
|
|
51881
51881
|
}
|
|
51882
|
-
_(
|
|
51883
|
-
if (
|
|
51882
|
+
_(c54, key) {
|
|
51883
|
+
if (c54 === " ") {
|
|
51884
51884
|
this.value = !this.value;
|
|
51885
|
-
} else if (
|
|
51885
|
+
} else if (c54 === "1") {
|
|
51886
51886
|
this.value = true;
|
|
51887
|
-
} else if (
|
|
51887
|
+
} else if (c54 === "0") {
|
|
51888
51888
|
this.value = false;
|
|
51889
51889
|
} else return this.bell();
|
|
51890
51890
|
this.render();
|
|
@@ -52340,9 +52340,9 @@ var require_date2 = __commonJS({
|
|
|
52340
52340
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
52341
52341
|
this.render();
|
|
52342
52342
|
}
|
|
52343
|
-
_(
|
|
52344
|
-
if (/\d/.test(
|
|
52345
|
-
this.typed +=
|
|
52343
|
+
_(c54) {
|
|
52344
|
+
if (/\d/.test(c54)) {
|
|
52345
|
+
this.typed += c54;
|
|
52346
52346
|
this.parts[this.cursor].setTo(this.typed);
|
|
52347
52347
|
this.render();
|
|
52348
52348
|
}
|
|
@@ -52424,8 +52424,8 @@ var require_number2 = __commonJS({
|
|
|
52424
52424
|
parse(x2) {
|
|
52425
52425
|
return this.float ? parseFloat(x2) : parseInt(x2);
|
|
52426
52426
|
}
|
|
52427
|
-
valid(
|
|
52428
|
-
return
|
|
52427
|
+
valid(c54) {
|
|
52428
|
+
return c54 === `-` || c54 === `.` && this.float || isNumber.test(c54);
|
|
52429
52429
|
}
|
|
52430
52430
|
reset() {
|
|
52431
52431
|
this.typed = ``;
|
|
@@ -52512,14 +52512,14 @@ var require_number2 = __commonJS({
|
|
|
52512
52512
|
this.fire();
|
|
52513
52513
|
this.render();
|
|
52514
52514
|
}
|
|
52515
|
-
_(
|
|
52516
|
-
if (!this.valid(
|
|
52515
|
+
_(c54, key) {
|
|
52516
|
+
if (!this.valid(c54)) return this.bell();
|
|
52517
52517
|
const now = Date.now();
|
|
52518
52518
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
52519
|
-
this.typed +=
|
|
52519
|
+
this.typed += c54;
|
|
52520
52520
|
this.lastHit = now;
|
|
52521
52521
|
this.color = `cyan`;
|
|
52522
|
-
if (
|
|
52522
|
+
if (c54 === `.`) return this.fire();
|
|
52523
52523
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
52524
52524
|
if (this.value > this.max) this.value = this.max;
|
|
52525
52525
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -52681,10 +52681,10 @@ var require_multiselect2 = __commonJS({
|
|
|
52681
52681
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
52682
52682
|
this.render();
|
|
52683
52683
|
}
|
|
52684
|
-
_(
|
|
52685
|
-
if (
|
|
52684
|
+
_(c54, key) {
|
|
52685
|
+
if (c54 === " ") {
|
|
52686
52686
|
this.handleSpaceToggle();
|
|
52687
|
-
} else if (
|
|
52687
|
+
} else if (c54 === "a") {
|
|
52688
52688
|
this.toggleAll();
|
|
52689
52689
|
} else {
|
|
52690
52690
|
return this.bell();
|
|
@@ -52881,10 +52881,10 @@ var require_autocomplete2 = __commonJS({
|
|
|
52881
52881
|
this.out.write("\n");
|
|
52882
52882
|
this.close();
|
|
52883
52883
|
}
|
|
52884
|
-
_(
|
|
52884
|
+
_(c54, key) {
|
|
52885
52885
|
let s1 = this.input.slice(0, this.cursor);
|
|
52886
52886
|
let s2 = this.input.slice(this.cursor);
|
|
52887
|
-
this.input = `${s1}${
|
|
52887
|
+
this.input = `${s1}${c54}${s2}`;
|
|
52888
52888
|
this.cursor = s1.length + 1;
|
|
52889
52889
|
this.complete(this.render);
|
|
52890
52890
|
this.render();
|
|
@@ -53087,15 +53087,15 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
53087
53087
|
this.render();
|
|
53088
53088
|
}
|
|
53089
53089
|
}
|
|
53090
|
-
handleInputChange(
|
|
53091
|
-
this.inputValue = this.inputValue +
|
|
53090
|
+
handleInputChange(c54) {
|
|
53091
|
+
this.inputValue = this.inputValue + c54;
|
|
53092
53092
|
this.updateFilteredOptions();
|
|
53093
53093
|
}
|
|
53094
|
-
_(
|
|
53095
|
-
if (
|
|
53094
|
+
_(c54, key) {
|
|
53095
|
+
if (c54 === " ") {
|
|
53096
53096
|
this.handleSpaceToggle();
|
|
53097
53097
|
} else {
|
|
53098
|
-
this.handleInputChange(
|
|
53098
|
+
this.handleInputChange(c54);
|
|
53099
53099
|
}
|
|
53100
53100
|
}
|
|
53101
53101
|
renderInstructions() {
|
|
@@ -53202,12 +53202,12 @@ var require_confirm2 = __commonJS({
|
|
|
53202
53202
|
this.out.write("\n");
|
|
53203
53203
|
this.close();
|
|
53204
53204
|
}
|
|
53205
|
-
_(
|
|
53206
|
-
if (
|
|
53205
|
+
_(c54, key) {
|
|
53206
|
+
if (c54.toLowerCase() === "y") {
|
|
53207
53207
|
this.value = true;
|
|
53208
53208
|
return this.submit();
|
|
53209
53209
|
}
|
|
53210
|
-
if (
|
|
53210
|
+
if (c54.toLowerCase() === "n") {
|
|
53211
53211
|
this.value = false;
|
|
53212
53212
|
return this.submit();
|
|
53213
53213
|
}
|
|
@@ -54261,8 +54261,8 @@ function _htmlElementAsString(el, keyAttrs) {
|
|
|
54261
54261
|
const className = elem.className;
|
|
54262
54262
|
if (className && isString(className)) {
|
|
54263
54263
|
const classes = className.split(/\s+/);
|
|
54264
|
-
for (const
|
|
54265
|
-
out.push(`.${
|
|
54264
|
+
for (const c54 of classes) {
|
|
54265
|
+
out.push(`.${c54}`);
|
|
54266
54266
|
}
|
|
54267
54267
|
}
|
|
54268
54268
|
}
|
|
@@ -54475,9 +54475,9 @@ function uuid4(crypto = getCrypto()) {
|
|
|
54475
54475
|
}
|
|
54476
54476
|
return emptyUuid.replace(
|
|
54477
54477
|
/[018]/g,
|
|
54478
|
-
(
|
|
54478
|
+
(c54) => (
|
|
54479
54479
|
// eslint-disable-next-line no-bitwise
|
|
54480
|
-
(
|
|
54480
|
+
(c54 ^ (getRandomByte() & 15) >> c54 / 4).toString(16)
|
|
54481
54481
|
)
|
|
54482
54482
|
);
|
|
54483
54483
|
}
|
|
@@ -72039,16 +72039,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
|
|
|
72039
72039
|
*/
|
|
72040
72040
|
_wrapHandler(handler) {
|
|
72041
72041
|
const instrumentation = this;
|
|
72042
|
-
return function(
|
|
72042
|
+
return function(c54, next) {
|
|
72043
72043
|
if (!instrumentation.isEnabled()) {
|
|
72044
|
-
return handler.apply(this, [
|
|
72044
|
+
return handler.apply(this, [c54, next]);
|
|
72045
72045
|
}
|
|
72046
|
-
const path3 =
|
|
72046
|
+
const path3 = c54.req.path;
|
|
72047
72047
|
const span = instrumentation.tracer.startSpan(path3);
|
|
72048
72048
|
return context.with(trace.setSpan(context.active(), span), () => {
|
|
72049
72049
|
return instrumentation._safeExecute(
|
|
72050
72050
|
() => {
|
|
72051
|
-
const result = handler.apply(this, [
|
|
72051
|
+
const result = handler.apply(this, [c54, next]);
|
|
72052
72052
|
if (isThenable(result)) {
|
|
72053
72053
|
return result.then((result2) => {
|
|
72054
72054
|
const type = instrumentation._determineHandlerType(result2);
|
|
@@ -73642,7 +73642,7 @@ if (DSN) {
|
|
|
73642
73642
|
init2({
|
|
73643
73643
|
dsn: DSN,
|
|
73644
73644
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
73645
|
-
release: "9.131.
|
|
73645
|
+
release: "9.131.3",
|
|
73646
73646
|
sendDefaultPii: false,
|
|
73647
73647
|
tracesSampleRate: 0,
|
|
73648
73648
|
shutdownTimeout: 500,
|
|
@@ -73661,7 +73661,7 @@ if (DSN) {
|
|
|
73661
73661
|
}
|
|
73662
73662
|
});
|
|
73663
73663
|
setContext("cli", {
|
|
73664
|
-
version: "9.131.
|
|
73664
|
+
version: "9.131.3",
|
|
73665
73665
|
command: process.argv.slice(2).join(" ")
|
|
73666
73666
|
});
|
|
73667
73667
|
setContext("runtime", {
|
|
@@ -77046,7 +77046,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
77046
77046
|
function isValidBase64URL(data) {
|
|
77047
77047
|
if (!base64url.test(data))
|
|
77048
77048
|
return false;
|
|
77049
|
-
const base643 = data.replace(/[-_]/g, (
|
|
77049
|
+
const base643 = data.replace(/[-_]/g, (c54) => c54 === "-" ? "+" : "/");
|
|
77050
77050
|
const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
|
|
77051
77051
|
return isValidBase64(padded);
|
|
77052
77052
|
}
|
|
@@ -87157,9 +87157,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
|
87157
87157
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
87158
87158
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
87159
87159
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
87160
|
-
const
|
|
87161
|
-
inst.minDate =
|
|
87162
|
-
inst.maxDate =
|
|
87160
|
+
const c54 = inst._zod.bag;
|
|
87161
|
+
inst.minDate = c54.minimum ? new Date(c54.minimum) : null;
|
|
87162
|
+
inst.maxDate = c54.maximum ? new Date(c54.maximum) : null;
|
|
87163
87163
|
});
|
|
87164
87164
|
function date3(params) {
|
|
87165
87165
|
return _date(ZodDate, params);
|
|
@@ -110862,13 +110862,7 @@ var unifiedRunRequestSchema = external_exports.object({
|
|
|
110862
110862
|
agentComposeId: external_exports.string().optional(),
|
|
110863
110863
|
agentComposeVersionId: external_exports.string().optional(),
|
|
110864
110864
|
conversationId: external_exports.string().optional(),
|
|
110865
|
-
//
|
|
110866
|
-
// compat window. The POST /api/agent/runs handler rewrites them into the
|
|
110867
|
-
// new `artifacts` array before dispatch — prefer `artifacts` in new code.
|
|
110868
|
-
artifactName: external_exports.string().optional(),
|
|
110869
|
-
artifactVersion: external_exports.string().optional(),
|
|
110870
|
-
// Multi-mount artifacts, each with its own mountPath. When provided, the
|
|
110871
|
-
// server ignores artifactName/artifactVersion.
|
|
110865
|
+
// Multi-mount artifacts, each with its own mountPath.
|
|
110872
110866
|
artifacts: external_exports.array(
|
|
110873
110867
|
external_exports.object({
|
|
110874
110868
|
name: external_exports.string(),
|
|
@@ -110905,7 +110899,7 @@ var unifiedRunRequestSchema = external_exports.object({
|
|
|
110905
110899
|
triggerSource: triggerSourceSchema.optional(),
|
|
110906
110900
|
// Per-permission policies (e.g., { "github": { "actions:read": "allow" } })
|
|
110907
110901
|
permissionPolicies: firewallPoliciesSchema.optional()
|
|
110908
|
-
}).
|
|
110902
|
+
}).strict();
|
|
110909
110903
|
var createRunResponseSchema = external_exports.object({
|
|
110910
110904
|
runId: external_exports.string(),
|
|
110911
110905
|
status: runStatusSchema,
|
|
@@ -111599,10 +111593,6 @@ var agentEventSchema = external_exports.object({
|
|
|
111599
111593
|
type: external_exports.string(),
|
|
111600
111594
|
sequenceNumber: external_exports.number().int().nonnegative()
|
|
111601
111595
|
}).passthrough();
|
|
111602
|
-
var artifactSnapshotSchema = external_exports.object({
|
|
111603
|
-
artifactName: external_exports.string(),
|
|
111604
|
-
artifactVersion: external_exports.string()
|
|
111605
|
-
});
|
|
111606
111596
|
var volumeVersionsSnapshotSchema = external_exports.object({
|
|
111607
111597
|
versions: external_exports.record(external_exports.string(), external_exports.string())
|
|
111608
111598
|
});
|
|
@@ -111686,15 +111676,11 @@ var webhookCheckpointsContract = c6.router({
|
|
|
111686
111676
|
64,
|
|
111687
111677
|
"cliAgentSessionHistoryHash must be a 64-character SHA-256 hex string"
|
|
111688
111678
|
),
|
|
111689
|
-
//
|
|
111690
|
-
//
|
|
111691
|
-
// server folds it into artifactSnapshots before persisting.
|
|
111692
|
-
artifactSnapshot: artifactSnapshotSchema.optional(),
|
|
111693
|
-
// Multi-artifact snapshot map: artifact name → version id. Authoritative
|
|
111694
|
-
// payload persisted to checkpoints.artifact_snapshots.
|
|
111679
|
+
// Multi-artifact snapshot map: artifact name → version id.
|
|
111680
|
+
// Authoritative payload persisted to checkpoints.artifact_snapshots.
|
|
111695
111681
|
artifactSnapshots: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
111696
111682
|
volumeVersionsSnapshot: volumeVersionsSnapshotSchema.optional()
|
|
111697
|
-
}),
|
|
111683
|
+
}).strict(),
|
|
111698
111684
|
responses: {
|
|
111699
111685
|
200: external_exports.object({
|
|
111700
111686
|
checkpointId: external_exports.string(),
|
|
@@ -114699,8 +114685,6 @@ var zeroComposesListContract = c25.router({
|
|
|
114699
114685
|
init_esm_shims();
|
|
114700
114686
|
var zeroRunRequestSchema = unifiedRunRequestSchema.omit({
|
|
114701
114687
|
triggerSource: true,
|
|
114702
|
-
artifactName: true,
|
|
114703
|
-
artifactVersion: true,
|
|
114704
114688
|
artifacts: true,
|
|
114705
114689
|
disallowedTools: true,
|
|
114706
114690
|
volumeVersions: true,
|
|
@@ -116408,172 +116392,15 @@ var pushSubscriptionsContract = c48.router({
|
|
|
116408
116392
|
}
|
|
116409
116393
|
});
|
|
116410
116394
|
|
|
116411
|
-
// ../../packages/core/src/contracts/zero-voice-chat-context.ts
|
|
116412
|
-
init_esm_shims();
|
|
116413
|
-
var c49 = initContract();
|
|
116414
|
-
var voiceChatEventTypeSchema = external_exports.enum([
|
|
116415
|
-
"session-start",
|
|
116416
|
-
"session-end",
|
|
116417
|
-
"speech",
|
|
116418
|
-
"request-slow-brain",
|
|
116419
|
-
"response",
|
|
116420
|
-
"directive",
|
|
116421
|
-
"thinking",
|
|
116422
|
-
"observation",
|
|
116423
|
-
"preparation-ready",
|
|
116424
|
-
"meeting-prompt",
|
|
116425
|
-
"task-dispatched",
|
|
116426
|
-
"task-completed"
|
|
116427
|
-
]);
|
|
116428
|
-
var contextEventSchema = external_exports.object({
|
|
116429
|
-
id: external_exports.string(),
|
|
116430
|
-
seq: external_exports.number(),
|
|
116431
|
-
source: external_exports.string(),
|
|
116432
|
-
type: external_exports.string(),
|
|
116433
|
-
content: external_exports.string().nullable(),
|
|
116434
|
-
createdAt: external_exports.string()
|
|
116435
|
-
});
|
|
116436
|
-
var contextEventsResponseSchema = external_exports.object({
|
|
116437
|
-
events: external_exports.array(contextEventSchema)
|
|
116438
|
-
});
|
|
116439
|
-
var appendContextEventBodySchema = external_exports.object({
|
|
116440
|
-
source: external_exports.string(),
|
|
116441
|
-
type: external_exports.string(),
|
|
116442
|
-
content: external_exports.string().optional()
|
|
116443
|
-
});
|
|
116444
|
-
var zeroVoiceChatContextContract = c49.router({
|
|
116445
|
-
getEvents: {
|
|
116446
|
-
method: "GET",
|
|
116447
|
-
path: "/api/zero/voice-chat/:id/context",
|
|
116448
|
-
headers: authHeadersSchema,
|
|
116449
|
-
pathParams: external_exports.object({ id: external_exports.string().min(1) }),
|
|
116450
|
-
query: external_exports.object({ after: external_exports.coerce.number().optional() }),
|
|
116451
|
-
responses: {
|
|
116452
|
-
200: contextEventsResponseSchema,
|
|
116453
|
-
401: apiErrorSchema,
|
|
116454
|
-
404: apiErrorSchema
|
|
116455
|
-
},
|
|
116456
|
-
summary: "Get shared context events for a voice-chat session"
|
|
116457
|
-
},
|
|
116458
|
-
appendEvent: {
|
|
116459
|
-
method: "POST",
|
|
116460
|
-
path: "/api/zero/voice-chat/:id/context",
|
|
116461
|
-
headers: authHeadersSchema,
|
|
116462
|
-
pathParams: external_exports.object({ id: external_exports.string().min(1) }),
|
|
116463
|
-
body: appendContextEventBodySchema,
|
|
116464
|
-
responses: {
|
|
116465
|
-
200: external_exports.object({ event: contextEventSchema }),
|
|
116466
|
-
401: apiErrorSchema,
|
|
116467
|
-
404: apiErrorSchema
|
|
116468
|
-
},
|
|
116469
|
-
summary: "Append an event to voice-chat shared context"
|
|
116470
|
-
}
|
|
116471
|
-
});
|
|
116472
|
-
|
|
116473
|
-
// ../../packages/core/src/contracts/zero-voice-chat-sessions.ts
|
|
116474
|
-
init_esm_shims();
|
|
116475
|
-
var c50 = initContract();
|
|
116476
|
-
var voiceChatSessionBaseSchema = external_exports.object({
|
|
116477
|
-
id: external_exports.string(),
|
|
116478
|
-
status: external_exports.string()
|
|
116479
|
-
});
|
|
116480
|
-
var voiceChatSessionCreatedSchema = voiceChatSessionBaseSchema.extend({
|
|
116481
|
-
runId: external_exports.string(),
|
|
116482
|
-
createdAt: external_exports.string(),
|
|
116483
|
-
prepared: external_exports.boolean()
|
|
116484
|
-
});
|
|
116485
|
-
var createVoiceChatSessionBodySchema = external_exports.object({
|
|
116486
|
-
agentId: external_exports.string().min(1)
|
|
116487
|
-
});
|
|
116488
|
-
var voiceChatTokenBodySchema = external_exports.object({
|
|
116489
|
-
model: external_exports.string().optional()
|
|
116490
|
-
});
|
|
116491
|
-
var voiceChatTokenResponseSchema = external_exports.object({
|
|
116492
|
-
client_secret: external_exports.object({
|
|
116493
|
-
value: external_exports.string(),
|
|
116494
|
-
expires_at: external_exports.number()
|
|
116495
|
-
})
|
|
116496
|
-
});
|
|
116497
|
-
var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
|
|
116498
|
-
var zeroVoiceChatSessionsContract = c50.router({
|
|
116499
|
-
create: {
|
|
116500
|
-
method: "POST",
|
|
116501
|
-
path: "/api/zero/voice-chat",
|
|
116502
|
-
headers: authHeadersSchema,
|
|
116503
|
-
body: createVoiceChatSessionBodySchema,
|
|
116504
|
-
responses: {
|
|
116505
|
-
200: external_exports.object({ session: voiceChatSessionCreatedSchema }),
|
|
116506
|
-
400: apiErrorSchema,
|
|
116507
|
-
401: apiErrorSchema,
|
|
116508
|
-
403: apiErrorSchema,
|
|
116509
|
-
500: apiErrorSchema
|
|
116510
|
-
},
|
|
116511
|
-
summary: "Create a new voice-chat session"
|
|
116512
|
-
},
|
|
116513
|
-
token: {
|
|
116514
|
-
method: "POST",
|
|
116515
|
-
path: "/api/zero/voice-chat/token",
|
|
116516
|
-
headers: authHeadersSchema,
|
|
116517
|
-
body: voiceChatTokenBodySchema,
|
|
116518
|
-
responses: {
|
|
116519
|
-
200: voiceChatTokenResponseSchema,
|
|
116520
|
-
401: apiErrorSchema,
|
|
116521
|
-
403: apiErrorSchema,
|
|
116522
|
-
500: apiErrorSchema,
|
|
116523
|
-
503: apiErrorSchema
|
|
116524
|
-
},
|
|
116525
|
-
summary: "Mint an ephemeral OpenAI realtime token for voice-chat"
|
|
116526
|
-
},
|
|
116527
|
-
heartbeat: {
|
|
116528
|
-
method: "POST",
|
|
116529
|
-
path: "/api/zero/voice-chat/:id/heartbeat",
|
|
116530
|
-
headers: authHeadersSchema,
|
|
116531
|
-
pathParams: external_exports.object({ id: external_exports.string().min(1) }),
|
|
116532
|
-
body: external_exports.object({}),
|
|
116533
|
-
responses: {
|
|
116534
|
-
200: okResponseSchema,
|
|
116535
|
-
401: apiErrorSchema,
|
|
116536
|
-
404: apiErrorSchema
|
|
116537
|
-
},
|
|
116538
|
-
summary: "Keep a voice-chat session alive"
|
|
116539
|
-
},
|
|
116540
|
-
activate: {
|
|
116541
|
-
method: "POST",
|
|
116542
|
-
path: "/api/zero/voice-chat/:id/activate",
|
|
116543
|
-
headers: authHeadersSchema,
|
|
116544
|
-
pathParams: external_exports.object({ id: external_exports.string().min(1) }),
|
|
116545
|
-
body: external_exports.object({}),
|
|
116546
|
-
responses: {
|
|
116547
|
-
200: external_exports.object({ session: voiceChatSessionBaseSchema }),
|
|
116548
|
-
401: apiErrorSchema,
|
|
116549
|
-
404: apiErrorSchema
|
|
116550
|
-
},
|
|
116551
|
-
summary: "Activate a preparing voice-chat session"
|
|
116552
|
-
},
|
|
116553
|
-
end: {
|
|
116554
|
-
method: "POST",
|
|
116555
|
-
path: "/api/zero/voice-chat/:id/end",
|
|
116556
|
-
headers: authHeadersSchema,
|
|
116557
|
-
pathParams: external_exports.object({ id: external_exports.string().min(1) }),
|
|
116558
|
-
body: external_exports.object({}),
|
|
116559
|
-
responses: {
|
|
116560
|
-
200: okResponseSchema,
|
|
116561
|
-
401: apiErrorSchema,
|
|
116562
|
-
404: apiErrorSchema
|
|
116563
|
-
},
|
|
116564
|
-
summary: "End a voice-chat session"
|
|
116565
|
-
}
|
|
116566
|
-
});
|
|
116567
|
-
|
|
116568
116395
|
// ../../packages/core/src/contracts/zero-voice-io-quota.ts
|
|
116569
116396
|
init_esm_shims();
|
|
116570
|
-
var
|
|
116397
|
+
var c49 = initContract();
|
|
116571
116398
|
var audioInputQuotaResponseSchema = external_exports.object({
|
|
116572
116399
|
allowed: external_exports.boolean(),
|
|
116573
116400
|
count: external_exports.number().int().nonnegative(),
|
|
116574
116401
|
limit: external_exports.number().int().positive().nullable()
|
|
116575
116402
|
});
|
|
116576
|
-
var zeroVoiceIoQuotaContract =
|
|
116403
|
+
var zeroVoiceIoQuotaContract = c49.router({
|
|
116577
116404
|
get: {
|
|
116578
116405
|
method: "GET",
|
|
116579
116406
|
path: "/api/zero/voice-io/quota",
|
|
@@ -116589,7 +116416,7 @@ var zeroVoiceIoQuotaContract = c51.router({
|
|
|
116589
116416
|
|
|
116590
116417
|
// ../../packages/core/src/contracts/zero-voice-chat-candidate.ts
|
|
116591
116418
|
init_esm_shims();
|
|
116592
|
-
var
|
|
116419
|
+
var c50 = initContract();
|
|
116593
116420
|
var voiceChatCandidateItemRoleSchema = external_exports.enum([
|
|
116594
116421
|
"user",
|
|
116595
116422
|
"assistant",
|
|
@@ -116667,9 +116494,15 @@ var createTaskBodySchema = external_exports.object({
|
|
|
116667
116494
|
prompt: external_exports.string().min(1),
|
|
116668
116495
|
callId: external_exports.string().min(1)
|
|
116669
116496
|
});
|
|
116670
|
-
var tokenBodySchema = external_exports.object({
|
|
116671
|
-
|
|
116672
|
-
|
|
116497
|
+
var tokenBodySchema = external_exports.object({
|
|
116498
|
+
sessionId: external_exports.uuid(),
|
|
116499
|
+
// Client-resolved hint (see platform `resolveAudioConfig`) for the Realtime
|
|
116500
|
+
// session's input_audio_noise_reduction. Optional — server defaults to
|
|
116501
|
+
// far_field if absent.
|
|
116502
|
+
noiseReduction: external_exports.enum(["near_field", "far_field"]).optional()
|
|
116503
|
+
});
|
|
116504
|
+
var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
|
|
116505
|
+
var zeroVoiceChatCandidateContract = c50.router({
|
|
116673
116506
|
createSession: {
|
|
116674
116507
|
method: "POST",
|
|
116675
116508
|
path: "/api/zero/voice-chat-candidate",
|
|
@@ -116727,7 +116560,7 @@ var zeroVoiceChatCandidateContract = c52.router({
|
|
|
116727
116560
|
pathParams: external_exports.object({ id: external_exports.uuid() }),
|
|
116728
116561
|
body: external_exports.object({}),
|
|
116729
116562
|
responses: {
|
|
116730
|
-
200:
|
|
116563
|
+
200: okResponseSchema,
|
|
116731
116564
|
401: apiErrorSchema,
|
|
116732
116565
|
404: apiErrorSchema
|
|
116733
116566
|
},
|
|
@@ -116747,29 +116580,6 @@ var zeroVoiceChatCandidateContract = c52.router({
|
|
|
116747
116580
|
},
|
|
116748
116581
|
summary: "Append a conversation item to a voice-chat-candidate session"
|
|
116749
116582
|
},
|
|
116750
|
-
/**
|
|
116751
|
-
* task_result items are server-written when a tasker run completes. The
|
|
116752
|
-
* client pulls them incrementally via `sinceSeq` (no cursor = baseline
|
|
116753
|
-
* probe returning at most the latest row) and forwards them to the Talker
|
|
116754
|
-
* so it can narrate slow-brain outcomes. User / assistant transcripts are
|
|
116755
|
-
* NOT exposed via HTTP — the client holds the last utterance locally; the
|
|
116756
|
-
* DB copy is server-side only and feeds the Reasoner's summary pipeline.
|
|
116757
|
-
*/
|
|
116758
|
-
readItems: {
|
|
116759
|
-
method: "GET",
|
|
116760
|
-
path: "/api/zero/voice-chat-candidate/:id/transcript/task-results",
|
|
116761
|
-
headers: authHeadersSchema,
|
|
116762
|
-
pathParams: external_exports.object({ id: external_exports.uuid() }),
|
|
116763
|
-
query: external_exports.object({
|
|
116764
|
-
sinceSeq: external_exports.coerce.number().int().nonnegative().optional()
|
|
116765
|
-
}),
|
|
116766
|
-
responses: {
|
|
116767
|
-
200: external_exports.object({ items: external_exports.array(voiceChatCandidateItemSchema) }),
|
|
116768
|
-
401: apiErrorSchema,
|
|
116769
|
-
404: apiErrorSchema
|
|
116770
|
-
},
|
|
116771
|
-
summary: "Read task_result items with seq cursor (for Talker injection only)"
|
|
116772
|
-
},
|
|
116773
116583
|
createTask: {
|
|
116774
116584
|
method: "POST",
|
|
116775
116585
|
path: "/api/zero/voice-chat-candidate/:id/tasks",
|
|
@@ -116810,8 +116620,10 @@ var zeroVoiceChatCandidateContract = c52.router({
|
|
|
116810
116620
|
body: tokenBodySchema,
|
|
116811
116621
|
responses: {
|
|
116812
116622
|
200: tokenResponseSchema,
|
|
116623
|
+
400: apiErrorSchema,
|
|
116813
116624
|
401: apiErrorSchema,
|
|
116814
116625
|
403: apiErrorSchema,
|
|
116626
|
+
404: apiErrorSchema,
|
|
116815
116627
|
500: apiErrorSchema,
|
|
116816
116628
|
503: apiErrorSchema
|
|
116817
116629
|
},
|
|
@@ -116819,162 +116631,9 @@ var zeroVoiceChatCandidateContract = c52.router({
|
|
|
116819
116631
|
}
|
|
116820
116632
|
});
|
|
116821
116633
|
|
|
116822
|
-
// ../../packages/core/src/contracts/zero-voice-chat-tasks.ts
|
|
116823
|
-
init_esm_shims();
|
|
116824
|
-
var c53 = initContract();
|
|
116825
|
-
var voiceChatTaskStatusSchema = external_exports.enum([
|
|
116826
|
-
"pending",
|
|
116827
|
-
"queued",
|
|
116828
|
-
"running",
|
|
116829
|
-
"done",
|
|
116830
|
-
"failed"
|
|
116831
|
-
]);
|
|
116832
|
-
var voiceChatTaskResultEntrySchema = external_exports.object({
|
|
116833
|
-
type: external_exports.literal("assistant"),
|
|
116834
|
-
content: external_exports.string(),
|
|
116835
|
-
at: external_exports.string()
|
|
116836
|
-
});
|
|
116837
|
-
var voiceChatTaskSchema = external_exports.object({
|
|
116838
|
-
id: external_exports.uuid(),
|
|
116839
|
-
sessionId: external_exports.uuid(),
|
|
116840
|
-
runId: external_exports.uuid().nullable(),
|
|
116841
|
-
prompt: external_exports.string(),
|
|
116842
|
-
status: voiceChatTaskStatusSchema,
|
|
116843
|
-
result: external_exports.string().nullable(),
|
|
116844
|
-
error: external_exports.string().nullable(),
|
|
116845
|
-
assistantMessages: external_exports.array(voiceChatTaskResultEntrySchema),
|
|
116846
|
-
createdAt: external_exports.string(),
|
|
116847
|
-
startedAt: external_exports.string().nullable(),
|
|
116848
|
-
finishedAt: external_exports.string().nullable()
|
|
116849
|
-
});
|
|
116850
|
-
var createTaskBodySchema2 = external_exports.object({
|
|
116851
|
-
prompt: external_exports.string().min(1)
|
|
116852
|
-
});
|
|
116853
|
-
var zeroVoiceChatTasksContract = c53.router({
|
|
116854
|
-
createTask: {
|
|
116855
|
-
method: "POST",
|
|
116856
|
-
path: "/api/zero/voice-chat/:id/tasks",
|
|
116857
|
-
headers: authHeadersSchema,
|
|
116858
|
-
pathParams: external_exports.object({ id: external_exports.uuid() }),
|
|
116859
|
-
body: createTaskBodySchema2,
|
|
116860
|
-
responses: {
|
|
116861
|
-
200: external_exports.object({ task: voiceChatTaskSchema }),
|
|
116862
|
-
400: apiErrorSchema,
|
|
116863
|
-
401: apiErrorSchema,
|
|
116864
|
-
404: apiErrorSchema
|
|
116865
|
-
},
|
|
116866
|
-
summary: "Dispatch a new task from slow-brain to a fresh Zero sandbox run"
|
|
116867
|
-
},
|
|
116868
|
-
listTasks: {
|
|
116869
|
-
method: "GET",
|
|
116870
|
-
path: "/api/zero/voice-chat/:id/tasks",
|
|
116871
|
-
headers: authHeadersSchema,
|
|
116872
|
-
pathParams: external_exports.object({ id: external_exports.uuid() }),
|
|
116873
|
-
responses: {
|
|
116874
|
-
200: external_exports.object({ tasks: external_exports.array(voiceChatTaskSchema) }),
|
|
116875
|
-
401: apiErrorSchema,
|
|
116876
|
-
404: apiErrorSchema
|
|
116877
|
-
},
|
|
116878
|
-
summary: "List voice-chat tasks for a session"
|
|
116879
|
-
},
|
|
116880
|
-
getTask: {
|
|
116881
|
-
method: "GET",
|
|
116882
|
-
path: "/api/zero/voice-chat/:id/tasks/:taskId",
|
|
116883
|
-
headers: authHeadersSchema,
|
|
116884
|
-
pathParams: external_exports.object({ id: external_exports.uuid(), taskId: external_exports.uuid() }),
|
|
116885
|
-
responses: {
|
|
116886
|
-
200: external_exports.object({ task: voiceChatTaskSchema }),
|
|
116887
|
-
401: apiErrorSchema,
|
|
116888
|
-
404: apiErrorSchema
|
|
116889
|
-
},
|
|
116890
|
-
summary: "Get a single voice-chat task"
|
|
116891
|
-
}
|
|
116892
|
-
});
|
|
116893
|
-
|
|
116894
|
-
// ../../packages/core/src/contracts/tasks.ts
|
|
116895
|
-
init_esm_shims();
|
|
116896
|
-
var c54 = initContract();
|
|
116897
|
-
var taskTypeSchema = external_exports.enum([
|
|
116898
|
-
"chat",
|
|
116899
|
-
"schedule",
|
|
116900
|
-
"slack",
|
|
116901
|
-
"email",
|
|
116902
|
-
"voice_chat",
|
|
116903
|
-
"agent"
|
|
116904
|
-
]);
|
|
116905
|
-
var taskAgentSchema = external_exports.object({
|
|
116906
|
-
id: external_exports.string(),
|
|
116907
|
-
name: external_exports.string(),
|
|
116908
|
-
displayName: external_exports.string().nullable(),
|
|
116909
|
-
avatarUrl: external_exports.string().nullable()
|
|
116910
|
-
});
|
|
116911
|
-
var taskItemSchema = external_exports.object({
|
|
116912
|
-
id: external_exports.string(),
|
|
116913
|
-
type: taskTypeSchema,
|
|
116914
|
-
title: external_exports.string().nullable(),
|
|
116915
|
-
summary: external_exports.string().nullable(),
|
|
116916
|
-
agent: taskAgentSchema,
|
|
116917
|
-
latestRunId: external_exports.string().nullable(),
|
|
116918
|
-
status: runStatusSchema.nullable(),
|
|
116919
|
-
chatThreadId: external_exports.string().optional(),
|
|
116920
|
-
scheduleId: external_exports.string().optional(),
|
|
116921
|
-
slackThreadSessionId: external_exports.string().optional(),
|
|
116922
|
-
emailThreadSessionId: external_exports.string().optional(),
|
|
116923
|
-
voiceChatSessionId: external_exports.string().optional(),
|
|
116924
|
-
agentRunId: external_exports.string().optional(),
|
|
116925
|
-
createdAt: external_exports.string(),
|
|
116926
|
-
updatedAt: external_exports.string()
|
|
116927
|
-
});
|
|
116928
|
-
var archiveTaskBodySchema = external_exports.object({
|
|
116929
|
-
taskId: external_exports.string(),
|
|
116930
|
-
taskType: taskTypeSchema,
|
|
116931
|
-
runId: external_exports.string().nullable()
|
|
116932
|
-
});
|
|
116933
|
-
var unarchiveTaskBodySchema = external_exports.object({
|
|
116934
|
-
taskId: external_exports.string(),
|
|
116935
|
-
taskType: taskTypeSchema
|
|
116936
|
-
});
|
|
116937
|
-
var tasksContract = c54.router({
|
|
116938
|
-
list: {
|
|
116939
|
-
method: "GET",
|
|
116940
|
-
path: "/api/zero/tasks",
|
|
116941
|
-
headers: authHeadersSchema,
|
|
116942
|
-
query: external_exports.object({
|
|
116943
|
-
agentId: external_exports.string().optional()
|
|
116944
|
-
}),
|
|
116945
|
-
responses: {
|
|
116946
|
-
200: external_exports.object({ tasks: external_exports.array(taskItemSchema) }),
|
|
116947
|
-
401: apiErrorSchema
|
|
116948
|
-
},
|
|
116949
|
-
summary: "List unified tasks across all sources"
|
|
116950
|
-
},
|
|
116951
|
-
archive: {
|
|
116952
|
-
method: "POST",
|
|
116953
|
-
path: "/api/zero/tasks/archive",
|
|
116954
|
-
headers: authHeadersSchema,
|
|
116955
|
-
body: archiveTaskBodySchema,
|
|
116956
|
-
responses: {
|
|
116957
|
-
200: external_exports.object({ ok: external_exports.literal(true) }),
|
|
116958
|
-
401: apiErrorSchema
|
|
116959
|
-
},
|
|
116960
|
-
summary: "Archive a task (exclude from task list until new run arrives)"
|
|
116961
|
-
},
|
|
116962
|
-
unarchive: {
|
|
116963
|
-
method: "POST",
|
|
116964
|
-
path: "/api/zero/tasks/unarchive",
|
|
116965
|
-
headers: authHeadersSchema,
|
|
116966
|
-
body: unarchiveTaskBodySchema,
|
|
116967
|
-
responses: {
|
|
116968
|
-
200: external_exports.object({ ok: external_exports.literal(true) }),
|
|
116969
|
-
401: apiErrorSchema
|
|
116970
|
-
},
|
|
116971
|
-
summary: "Unarchive a task (restore to task list immediately)"
|
|
116972
|
-
}
|
|
116973
|
-
});
|
|
116974
|
-
|
|
116975
116634
|
// ../../packages/core/src/contracts/zero-phone.ts
|
|
116976
116635
|
init_esm_shims();
|
|
116977
|
-
var
|
|
116636
|
+
var c51 = initContract();
|
|
116978
116637
|
var phoneStatusResponseSchema = external_exports.object({
|
|
116979
116638
|
userPhone: external_exports.string().nullable(),
|
|
116980
116639
|
userPhonePending: external_exports.string().nullable(),
|
|
@@ -116993,7 +116652,7 @@ var phoneSetupResponseSchema = external_exports.object({
|
|
|
116993
116652
|
var phoneErrorResponseSchema = external_exports.object({
|
|
116994
116653
|
error: external_exports.string()
|
|
116995
116654
|
});
|
|
116996
|
-
var zeroPhoneStatusContract =
|
|
116655
|
+
var zeroPhoneStatusContract = c51.router({
|
|
116997
116656
|
getStatus: {
|
|
116998
116657
|
method: "GET",
|
|
116999
116658
|
path: "/api/zero/phone/status",
|
|
@@ -117005,7 +116664,7 @@ var zeroPhoneStatusContract = c55.router({
|
|
|
117005
116664
|
summary: "Get the current user's phone link status"
|
|
117006
116665
|
}
|
|
117007
116666
|
});
|
|
117008
|
-
var zeroPhoneLinkContract =
|
|
116667
|
+
var zeroPhoneLinkContract = c51.router({
|
|
117009
116668
|
link: {
|
|
117010
116669
|
method: "POST",
|
|
117011
116670
|
path: "/api/zero/phone/link",
|
|
@@ -117023,7 +116682,7 @@ var zeroPhoneLinkContract = c55.router({
|
|
|
117023
116682
|
method: "DELETE",
|
|
117024
116683
|
path: "/api/zero/phone/link",
|
|
117025
116684
|
headers: authHeadersSchema,
|
|
117026
|
-
body:
|
|
116685
|
+
body: c51.noBody(),
|
|
117027
116686
|
responses: {
|
|
117028
116687
|
200: phoneSuccessResponseSchema,
|
|
117029
116688
|
401: phoneErrorResponseSchema
|
|
@@ -117031,12 +116690,12 @@ var zeroPhoneLinkContract = c55.router({
|
|
|
117031
116690
|
summary: "Remove the current user's phone link"
|
|
117032
116691
|
}
|
|
117033
116692
|
});
|
|
117034
|
-
var zeroPhoneSetupContract =
|
|
116693
|
+
var zeroPhoneSetupContract = c51.router({
|
|
117035
116694
|
setup: {
|
|
117036
116695
|
method: "POST",
|
|
117037
116696
|
path: "/api/zero/phone/setup",
|
|
117038
116697
|
headers: authHeadersSchema,
|
|
117039
|
-
body:
|
|
116698
|
+
body: c51.noBody(),
|
|
117040
116699
|
responses: {
|
|
117041
116700
|
200: phoneSetupResponseSchema,
|
|
117042
116701
|
401: phoneErrorResponseSchema,
|
|
@@ -117049,7 +116708,7 @@ var zeroPhoneSetupContract = c55.router({
|
|
|
117049
116708
|
|
|
117050
116709
|
// ../../packages/core/src/contracts/zero-uploads.ts
|
|
117051
116710
|
init_esm_shims();
|
|
117052
|
-
var
|
|
116711
|
+
var c52 = initContract();
|
|
117053
116712
|
var prepareRequestSchema = external_exports.object({
|
|
117054
116713
|
filename: external_exports.string().min(1).max(255),
|
|
117055
116714
|
contentType: external_exports.string().min(1).max(200),
|
|
@@ -117065,7 +116724,7 @@ var prepareResponseSchema = external_exports.object({
|
|
|
117065
116724
|
/** Presigned GET URL returned to the app after upload succeeds. */
|
|
117066
116725
|
url: external_exports.string().url()
|
|
117067
116726
|
});
|
|
117068
|
-
var zeroUploadsContract =
|
|
116727
|
+
var zeroUploadsContract = c52.router({
|
|
117069
116728
|
prepare: {
|
|
117070
116729
|
method: "POST",
|
|
117071
116730
|
path: "/api/zero/uploads/prepare",
|
|
@@ -117084,7 +116743,7 @@ var zeroUploadsContract = c56.router({
|
|
|
117084
116743
|
|
|
117085
116744
|
// ../../packages/core/src/contracts/zero-integrations-telegram.ts
|
|
117086
116745
|
init_esm_shims();
|
|
117087
|
-
var
|
|
116746
|
+
var c53 = initContract();
|
|
117088
116747
|
var telegramEnvironmentSchema = external_exports.object({
|
|
117089
116748
|
requiredSecrets: external_exports.array(external_exports.string()),
|
|
117090
116749
|
requiredVars: external_exports.array(external_exports.string()),
|
|
@@ -117121,7 +116780,7 @@ var telegramRegisterResponseSchema = external_exports.object({
|
|
|
117121
116780
|
webhookUrl: external_exports.string(),
|
|
117122
116781
|
domainConfigured: external_exports.boolean()
|
|
117123
116782
|
});
|
|
117124
|
-
var zeroIntegrationsTelegramContract =
|
|
116783
|
+
var zeroIntegrationsTelegramContract = c53.router({
|
|
117125
116784
|
getStatus: {
|
|
117126
116785
|
method: "GET",
|
|
117127
116786
|
path: "/api/integrations/telegram",
|
|
@@ -117151,9 +116810,9 @@ var zeroIntegrationsTelegramContract = c57.router({
|
|
|
117151
116810
|
method: "DELETE",
|
|
117152
116811
|
path: "/api/integrations/telegram",
|
|
117153
116812
|
headers: authHeadersSchema,
|
|
117154
|
-
body:
|
|
116813
|
+
body: c53.noBody(),
|
|
117155
116814
|
responses: {
|
|
117156
|
-
204:
|
|
116815
|
+
204: c53.noBody(),
|
|
117157
116816
|
401: apiErrorSchema,
|
|
117158
116817
|
404: apiErrorSchema
|
|
117159
116818
|
},
|
|
@@ -117422,11 +117081,6 @@ var FEATURE_SWITCHES = {
|
|
|
117422
117081
|
description: "Show the Phone page for voice call integration",
|
|
117423
117082
|
enabled: false
|
|
117424
117083
|
},
|
|
117425
|
-
["voiceChat" /* VoiceChat */]: {
|
|
117426
|
-
maintainer: "lancy@vm0.ai",
|
|
117427
|
-
description: "Enable the Voice Chat feature and API endpoints",
|
|
117428
|
-
enabled: false
|
|
117429
|
-
},
|
|
117430
117084
|
["audioInput" /* AudioInput */]: {
|
|
117431
117085
|
maintainer: "lancy@vm0.ai",
|
|
117432
117086
|
description: "Enable voice input (microphone + STT) in chat \u2014 gates the mic button and the /api/zero/voice-io/stt route",
|
|
@@ -117437,11 +117091,6 @@ var FEATURE_SWITCHES = {
|
|
|
117437
117091
|
description: "Enable audio output in chat (TTS read-aloud + auto-read) \u2014 gates the volume/read buttons and the /api/zero/voice-io/tts route",
|
|
117438
117092
|
enabled: false
|
|
117439
117093
|
},
|
|
117440
|
-
["missionControlSidebar" /* MissionControlSidebar */]: {
|
|
117441
|
-
maintainer: "ethan@vm0.ai",
|
|
117442
|
-
description: "Show the Mission Control page entry in the sidebar",
|
|
117443
|
-
enabled: false
|
|
117444
|
-
},
|
|
117445
117094
|
["autoSkill" /* AutoSkill */]: {
|
|
117446
117095
|
maintainer: "lancy@vm0.ai",
|
|
117447
117096
|
description: "Enable automatic skill creation in agent prompts",
|
|
@@ -118795,75 +118444,6 @@ async function getPhoneCallDetail(callId) {
|
|
|
118795
118444
|
);
|
|
118796
118445
|
}
|
|
118797
118446
|
|
|
118798
|
-
// src/lib/api/domains/zero-voice-chat-context.ts
|
|
118799
|
-
init_esm_shims();
|
|
118800
|
-
async function getVoiceChatContextEvents(sessionId, after) {
|
|
118801
|
-
const config4 = await getClientConfig();
|
|
118802
|
-
const client = initClient(zeroVoiceChatContextContract, config4);
|
|
118803
|
-
const result = await client.getEvents({
|
|
118804
|
-
params: { id: sessionId },
|
|
118805
|
-
query: { after },
|
|
118806
|
-
headers: {}
|
|
118807
|
-
});
|
|
118808
|
-
if (result.status === 200) {
|
|
118809
|
-
return result.body;
|
|
118810
|
-
}
|
|
118811
|
-
handleError(result, "Failed to get voice-chat context events");
|
|
118812
|
-
}
|
|
118813
|
-
async function appendVoiceChatContextEvent(sessionId, body) {
|
|
118814
|
-
const config4 = await getClientConfig();
|
|
118815
|
-
const client = initClient(zeroVoiceChatContextContract, config4);
|
|
118816
|
-
const result = await client.appendEvent({
|
|
118817
|
-
params: { id: sessionId },
|
|
118818
|
-
body,
|
|
118819
|
-
headers: {}
|
|
118820
|
-
});
|
|
118821
|
-
if (result.status === 200) {
|
|
118822
|
-
return result.body.event;
|
|
118823
|
-
}
|
|
118824
|
-
handleError(result, "Failed to append voice-chat context event");
|
|
118825
|
-
}
|
|
118826
|
-
|
|
118827
|
-
// src/lib/api/domains/zero-voice-chat-tasks.ts
|
|
118828
|
-
init_esm_shims();
|
|
118829
|
-
async function createVoiceChatTask(sessionId, body) {
|
|
118830
|
-
const config4 = await getClientConfig();
|
|
118831
|
-
const client = initClient(zeroVoiceChatTasksContract, config4);
|
|
118832
|
-
const result = await client.createTask({
|
|
118833
|
-
params: { id: sessionId },
|
|
118834
|
-
body,
|
|
118835
|
-
headers: {}
|
|
118836
|
-
});
|
|
118837
|
-
if (result.status === 200) {
|
|
118838
|
-
return result.body.task;
|
|
118839
|
-
}
|
|
118840
|
-
handleError(result, "Failed to create voice-chat task");
|
|
118841
|
-
}
|
|
118842
|
-
async function getVoiceChatTask(sessionId, taskId) {
|
|
118843
|
-
const config4 = await getClientConfig();
|
|
118844
|
-
const client = initClient(zeroVoiceChatTasksContract, config4);
|
|
118845
|
-
const result = await client.getTask({
|
|
118846
|
-
params: { id: sessionId, taskId },
|
|
118847
|
-
headers: {}
|
|
118848
|
-
});
|
|
118849
|
-
if (result.status === 200) {
|
|
118850
|
-
return result.body.task;
|
|
118851
|
-
}
|
|
118852
|
-
handleError(result, "Failed to get voice-chat task");
|
|
118853
|
-
}
|
|
118854
|
-
async function listVoiceChatTasks(sessionId) {
|
|
118855
|
-
const config4 = await getClientConfig();
|
|
118856
|
-
const client = initClient(zeroVoiceChatTasksContract, config4);
|
|
118857
|
-
const result = await client.listTasks({
|
|
118858
|
-
params: { id: sessionId },
|
|
118859
|
-
headers: {}
|
|
118860
|
-
});
|
|
118861
|
-
if (result.status === 200) {
|
|
118862
|
-
return result.body.tasks;
|
|
118863
|
-
}
|
|
118864
|
-
handleError(result, "Failed to list voice-chat tasks");
|
|
118865
|
-
}
|
|
118866
|
-
|
|
118867
118447
|
// src/lib/api/domains/web.ts
|
|
118868
118448
|
init_esm_shims();
|
|
118869
118449
|
import { createWriteStream as createWriteStream2, readFileSync as readFileSync3, statSync } from "fs";
|
|
@@ -120132,11 +119712,6 @@ export {
|
|
|
120132
119712
|
createPhoneCall,
|
|
120133
119713
|
listPhoneCalls,
|
|
120134
119714
|
getPhoneCallDetail,
|
|
120135
|
-
getVoiceChatContextEvents,
|
|
120136
|
-
appendVoiceChatContextEvent,
|
|
120137
|
-
createVoiceChatTask,
|
|
120138
|
-
getVoiceChatTask,
|
|
120139
|
-
listVoiceChatTasks,
|
|
120140
119715
|
downloadWebFile,
|
|
120141
119716
|
uploadWebFile,
|
|
120142
119717
|
require_prompts3 as require_prompts,
|
|
@@ -120172,4 +119747,4 @@ undici/lib/web/fetch/body.js:
|
|
|
120172
119747
|
undici/lib/web/websocket/frame.js:
|
|
120173
119748
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
120174
119749
|
*/
|
|
120175
|
-
//# sourceMappingURL=chunk-
|
|
119750
|
+
//# sourceMappingURL=chunk-REI7AIMY.js.map
|