@vm0/cli 9.111.15 → 9.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-77Z5GRTD.js → chunk-5XO4EU32.js} +198 -111
- package/chunk-5XO4EU32.js.map +1 -0
- package/index.js +10 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +32 -3
- package/zero.js.map +1 -1
- package/chunk-77Z5GRTD.js.map +0 -1
|
@@ -4546,8 +4546,8 @@ var require_util = __commonJS({
|
|
|
4546
4546
|
function isUSVString(val) {
|
|
4547
4547
|
return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
|
|
4548
4548
|
}
|
|
4549
|
-
function isTokenCharCode(
|
|
4550
|
-
switch (
|
|
4549
|
+
function isTokenCharCode(c50) {
|
|
4550
|
+
switch (c50) {
|
|
4551
4551
|
case 34:
|
|
4552
4552
|
case 40:
|
|
4553
4553
|
case 41:
|
|
@@ -4567,7 +4567,7 @@ var require_util = __commonJS({
|
|
|
4567
4567
|
case 125:
|
|
4568
4568
|
return false;
|
|
4569
4569
|
default:
|
|
4570
|
-
return
|
|
4570
|
+
return c50 >= 33 && c50 <= 126;
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
function isValidHTTPToken(characters) {
|
|
@@ -6156,7 +6156,7 @@ var require_constants2 = __commonJS({
|
|
|
6156
6156
|
exports.HEADER_CHARS.push(i);
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
6159
|
-
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((
|
|
6159
|
+
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c50) => c50 !== 44);
|
|
6160
6160
|
exports.MAJOR = exports.NUM_MAP;
|
|
6161
6161
|
exports.MINOR = exports.MAJOR;
|
|
6162
6162
|
var HEADER_STATE;
|
|
@@ -7302,10 +7302,10 @@ var require_util2 = __commonJS({
|
|
|
7302
7302
|
}
|
|
7303
7303
|
function isValidReasonPhrase(statusText) {
|
|
7304
7304
|
for (let i = 0; i < statusText.length; ++i) {
|
|
7305
|
-
const
|
|
7306
|
-
if (!(
|
|
7307
|
-
|
|
7308
|
-
|
|
7305
|
+
const c50 = statusText.charCodeAt(i);
|
|
7306
|
+
if (!(c50 === 9 || // HTAB
|
|
7307
|
+
c50 >= 32 && c50 <= 126 || // SP / VCHAR
|
|
7308
|
+
c50 >= 128 && c50 <= 255)) {
|
|
7309
7309
|
return false;
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
@@ -11279,7 +11279,7 @@ var require_pool_base = __commonJS({
|
|
|
11279
11279
|
pool.emit("drain", origin, [pool, ...targets]);
|
|
11280
11280
|
}
|
|
11281
11281
|
if (pool[kClosedResolve] && queue.isEmpty()) {
|
|
11282
|
-
Promise.all(pool[kClients].map((
|
|
11282
|
+
Promise.all(pool[kClients].map((c50) => c50.close())).then(pool[kClosedResolve]);
|
|
11283
11283
|
}
|
|
11284
11284
|
};
|
|
11285
11285
|
this[kOnConnect] = (origin, targets) => {
|
|
@@ -11328,7 +11328,7 @@ var require_pool_base = __commonJS({
|
|
|
11328
11328
|
}
|
|
11329
11329
|
async [kClose]() {
|
|
11330
11330
|
if (this[kQueue].isEmpty()) {
|
|
11331
|
-
await Promise.all(this[kClients].map((
|
|
11331
|
+
await Promise.all(this[kClients].map((c50) => c50.close()));
|
|
11332
11332
|
} else {
|
|
11333
11333
|
await new Promise((resolve) => {
|
|
11334
11334
|
this[kClosedResolve] = resolve;
|
|
@@ -11343,7 +11343,7 @@ var require_pool_base = __commonJS({
|
|
|
11343
11343
|
}
|
|
11344
11344
|
item.handler.onError(err);
|
|
11345
11345
|
}
|
|
11346
|
-
await Promise.all(this[kClients].map((
|
|
11346
|
+
await Promise.all(this[kClients].map((c50) => c50.destroy(err)));
|
|
11347
11347
|
}
|
|
11348
11348
|
[kDispatch](opts, handler) {
|
|
11349
11349
|
const dispatcher = this[kGetDispatcher]();
|
|
@@ -18113,8 +18113,8 @@ var require_util4 = __commonJS({
|
|
|
18113
18113
|
return new TextDecoder(encoding).decode(sliced);
|
|
18114
18114
|
}
|
|
18115
18115
|
function BOMSniffing(ioQueue) {
|
|
18116
|
-
const [a, b,
|
|
18117
|
-
if (a === 239 && b === 187 &&
|
|
18116
|
+
const [a, b, c50] = ioQueue;
|
|
18117
|
+
if (a === 239 && b === 187 && c50 === 191) {
|
|
18118
18118
|
return "UTF-8";
|
|
18119
18119
|
} else if (a === 254 && b === 255) {
|
|
18120
18120
|
return "UTF-16BE";
|
|
@@ -22593,9 +22593,9 @@ var require_Alias = __commonJS({
|
|
|
22593
22593
|
} else if (identity.isCollection(node)) {
|
|
22594
22594
|
let count = 0;
|
|
22595
22595
|
for (const item of node.items) {
|
|
22596
|
-
const
|
|
22597
|
-
if (
|
|
22598
|
-
count =
|
|
22596
|
+
const c50 = getAliasCount(doc, item, anchors2);
|
|
22597
|
+
if (c50 > count)
|
|
22598
|
+
count = c50;
|
|
22599
22599
|
}
|
|
22600
22600
|
return count;
|
|
22601
22601
|
} else if (identity.isPair(node)) {
|
|
@@ -29611,7 +29611,7 @@ var require_style = __commonJS({
|
|
|
29611
29611
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module) {
|
|
29612
29612
|
"use strict";
|
|
29613
29613
|
init_esm_shims();
|
|
29614
|
-
var
|
|
29614
|
+
var c50 = require_kleur();
|
|
29615
29615
|
var figures = require_figures();
|
|
29616
29616
|
var styles3 = Object.freeze({
|
|
29617
29617
|
password: {
|
|
@@ -29633,14 +29633,14 @@ var require_style = __commonJS({
|
|
|
29633
29633
|
});
|
|
29634
29634
|
var render = (type) => styles3[type] || styles3.default;
|
|
29635
29635
|
var symbols = Object.freeze({
|
|
29636
|
-
aborted:
|
|
29637
|
-
done:
|
|
29638
|
-
exited:
|
|
29639
|
-
default:
|
|
29636
|
+
aborted: c50.red(figures.cross),
|
|
29637
|
+
done: c50.green(figures.tick),
|
|
29638
|
+
exited: c50.yellow(figures.cross),
|
|
29639
|
+
default: c50.cyan("?")
|
|
29640
29640
|
});
|
|
29641
29641
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
29642
|
-
var delimiter = (completing) =>
|
|
29643
|
-
var item = (expandable, expanded) =>
|
|
29642
|
+
var delimiter = (completing) => c50.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
29643
|
+
var item = (expandable, expanded) => c50.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
29644
29644
|
module.exports = {
|
|
29645
29645
|
styles: styles3,
|
|
29646
29646
|
render,
|
|
@@ -29922,10 +29922,10 @@ var require_text = __commonJS({
|
|
|
29922
29922
|
this.cursor = this.cursor + n;
|
|
29923
29923
|
this.cursorOffset += n;
|
|
29924
29924
|
}
|
|
29925
|
-
_(
|
|
29925
|
+
_(c50, key) {
|
|
29926
29926
|
let s1 = this.value.slice(0, this.cursor);
|
|
29927
29927
|
let s2 = this.value.slice(this.cursor);
|
|
29928
|
-
this.value = `${s1}${
|
|
29928
|
+
this.value = `${s1}${c50}${s2}`;
|
|
29929
29929
|
this.red = false;
|
|
29930
29930
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
29931
29931
|
this.render();
|
|
@@ -30100,8 +30100,8 @@ var require_select = __commonJS({
|
|
|
30100
30100
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
30101
30101
|
this.render();
|
|
30102
30102
|
}
|
|
30103
|
-
_(
|
|
30104
|
-
if (
|
|
30103
|
+
_(c50, key) {
|
|
30104
|
+
if (c50 === " ") return this.submit();
|
|
30105
30105
|
}
|
|
30106
30106
|
get selection() {
|
|
30107
30107
|
return this.choices[this.cursor];
|
|
@@ -30227,12 +30227,12 @@ var require_toggle = __commonJS({
|
|
|
30227
30227
|
this.fire();
|
|
30228
30228
|
this.render();
|
|
30229
30229
|
}
|
|
30230
|
-
_(
|
|
30231
|
-
if (
|
|
30230
|
+
_(c50, key) {
|
|
30231
|
+
if (c50 === " ") {
|
|
30232
30232
|
this.value = !this.value;
|
|
30233
|
-
} else if (
|
|
30233
|
+
} else if (c50 === "1") {
|
|
30234
30234
|
this.value = true;
|
|
30235
|
-
} else if (
|
|
30235
|
+
} else if (c50 === "0") {
|
|
30236
30236
|
this.value = false;
|
|
30237
30237
|
} else return this.bell();
|
|
30238
30238
|
this.render();
|
|
@@ -30740,9 +30740,9 @@ var require_date = __commonJS({
|
|
|
30740
30740
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
30741
30741
|
this.render();
|
|
30742
30742
|
}
|
|
30743
|
-
_(
|
|
30744
|
-
if (/\d/.test(
|
|
30745
|
-
this.typed +=
|
|
30743
|
+
_(c50) {
|
|
30744
|
+
if (/\d/.test(c50)) {
|
|
30745
|
+
this.typed += c50;
|
|
30746
30746
|
this.parts[this.cursor].setTo(this.typed);
|
|
30747
30747
|
this.render();
|
|
30748
30748
|
}
|
|
@@ -30851,8 +30851,8 @@ var require_number = __commonJS({
|
|
|
30851
30851
|
parse(x) {
|
|
30852
30852
|
return this.float ? parseFloat(x) : parseInt(x);
|
|
30853
30853
|
}
|
|
30854
|
-
valid(
|
|
30855
|
-
return
|
|
30854
|
+
valid(c50) {
|
|
30855
|
+
return c50 === `-` || c50 === `.` && this.float || isNumber.test(c50);
|
|
30856
30856
|
}
|
|
30857
30857
|
reset() {
|
|
30858
30858
|
this.typed = ``;
|
|
@@ -30945,14 +30945,14 @@ var require_number = __commonJS({
|
|
|
30945
30945
|
this.fire();
|
|
30946
30946
|
this.render();
|
|
30947
30947
|
}
|
|
30948
|
-
_(
|
|
30949
|
-
if (!this.valid(
|
|
30948
|
+
_(c50, key) {
|
|
30949
|
+
if (!this.valid(c50)) return this.bell();
|
|
30950
30950
|
const now = Date.now();
|
|
30951
30951
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
30952
|
-
this.typed +=
|
|
30952
|
+
this.typed += c50;
|
|
30953
30953
|
this.lastHit = now;
|
|
30954
30954
|
this.color = `cyan`;
|
|
30955
|
-
if (
|
|
30955
|
+
if (c50 === `.`) return this.fire();
|
|
30956
30956
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
30957
30957
|
if (this.value > this.max) this.value = this.max;
|
|
30958
30958
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -31116,10 +31116,10 @@ var require_multiselect = __commonJS({
|
|
|
31116
31116
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
31117
31117
|
this.render();
|
|
31118
31118
|
}
|
|
31119
|
-
_(
|
|
31120
|
-
if (
|
|
31119
|
+
_(c50, key) {
|
|
31120
|
+
if (c50 === " ") {
|
|
31121
31121
|
this.handleSpaceToggle();
|
|
31122
|
-
} else if (
|
|
31122
|
+
} else if (c50 === "a") {
|
|
31123
31123
|
this.toggleAll();
|
|
31124
31124
|
} else {
|
|
31125
31125
|
return this.bell();
|
|
@@ -31360,10 +31360,10 @@ var require_autocomplete = __commonJS({
|
|
|
31360
31360
|
this.out.write("\n");
|
|
31361
31361
|
this.close();
|
|
31362
31362
|
}
|
|
31363
|
-
_(
|
|
31363
|
+
_(c50, key) {
|
|
31364
31364
|
let s1 = this.input.slice(0, this.cursor);
|
|
31365
31365
|
let s2 = this.input.slice(this.cursor);
|
|
31366
|
-
this.input = `${s1}${
|
|
31366
|
+
this.input = `${s1}${c50}${s2}`;
|
|
31367
31367
|
this.cursor = s1.length + 1;
|
|
31368
31368
|
this.complete(this.render);
|
|
31369
31369
|
this.render();
|
|
@@ -31563,15 +31563,15 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
31563
31563
|
this.render();
|
|
31564
31564
|
}
|
|
31565
31565
|
}
|
|
31566
|
-
handleInputChange(
|
|
31567
|
-
this.inputValue = this.inputValue +
|
|
31566
|
+
handleInputChange(c50) {
|
|
31567
|
+
this.inputValue = this.inputValue + c50;
|
|
31568
31568
|
this.updateFilteredOptions();
|
|
31569
31569
|
}
|
|
31570
|
-
_(
|
|
31571
|
-
if (
|
|
31570
|
+
_(c50, key) {
|
|
31571
|
+
if (c50 === " ") {
|
|
31572
31572
|
this.handleSpaceToggle();
|
|
31573
31573
|
} else {
|
|
31574
|
-
this.handleInputChange(
|
|
31574
|
+
this.handleInputChange(c50);
|
|
31575
31575
|
}
|
|
31576
31576
|
}
|
|
31577
31577
|
renderInstructions() {
|
|
@@ -31677,12 +31677,12 @@ var require_confirm = __commonJS({
|
|
|
31677
31677
|
this.out.write("\n");
|
|
31678
31678
|
this.close();
|
|
31679
31679
|
}
|
|
31680
|
-
_(
|
|
31681
|
-
if (
|
|
31680
|
+
_(c50, key) {
|
|
31681
|
+
if (c50.toLowerCase() === "y") {
|
|
31682
31682
|
this.value = true;
|
|
31683
31683
|
return this.submit();
|
|
31684
31684
|
}
|
|
31685
|
-
if (
|
|
31685
|
+
if (c50.toLowerCase() === "n") {
|
|
31686
31686
|
this.value = false;
|
|
31687
31687
|
return this.submit();
|
|
31688
31688
|
}
|
|
@@ -32123,7 +32123,7 @@ var require_style2 = __commonJS({
|
|
|
32123
32123
|
"../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module) {
|
|
32124
32124
|
"use strict";
|
|
32125
32125
|
init_esm_shims();
|
|
32126
|
-
var
|
|
32126
|
+
var c50 = require_kleur();
|
|
32127
32127
|
var figures = require_figures2();
|
|
32128
32128
|
var styles3 = Object.freeze({
|
|
32129
32129
|
password: { scale: 1, render: (input) => "*".repeat(input.length) },
|
|
@@ -32133,14 +32133,14 @@ var require_style2 = __commonJS({
|
|
|
32133
32133
|
});
|
|
32134
32134
|
var render = (type) => styles3[type] || styles3.default;
|
|
32135
32135
|
var symbols = Object.freeze({
|
|
32136
|
-
aborted:
|
|
32137
|
-
done:
|
|
32138
|
-
exited:
|
|
32139
|
-
default:
|
|
32136
|
+
aborted: c50.red(figures.cross),
|
|
32137
|
+
done: c50.green(figures.tick),
|
|
32138
|
+
exited: c50.yellow(figures.cross),
|
|
32139
|
+
default: c50.cyan("?")
|
|
32140
32140
|
});
|
|
32141
32141
|
var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
32142
|
-
var delimiter = (completing) =>
|
|
32143
|
-
var item = (expandable, expanded) =>
|
|
32142
|
+
var delimiter = (completing) => c50.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
32143
|
+
var item = (expandable, expanded) => c50.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
32144
32144
|
module.exports = {
|
|
32145
32145
|
styles: styles3,
|
|
32146
32146
|
render,
|
|
@@ -32373,10 +32373,10 @@ var require_text2 = __commonJS({
|
|
|
32373
32373
|
this.cursor = this.cursor + n;
|
|
32374
32374
|
this.cursorOffset += n;
|
|
32375
32375
|
}
|
|
32376
|
-
_(
|
|
32376
|
+
_(c50, key) {
|
|
32377
32377
|
let s1 = this.value.slice(0, this.cursor);
|
|
32378
32378
|
let s2 = this.value.slice(this.cursor);
|
|
32379
|
-
this.value = `${s1}${
|
|
32379
|
+
this.value = `${s1}${c50}${s2}`;
|
|
32380
32380
|
this.red = false;
|
|
32381
32381
|
this.cursor = this.placeholder ? 0 : s1.length + 1;
|
|
32382
32382
|
this.render();
|
|
@@ -32550,8 +32550,8 @@ var require_select2 = __commonJS({
|
|
|
32550
32550
|
this.moveCursor((this.cursor + 1) % this.choices.length);
|
|
32551
32551
|
this.render();
|
|
32552
32552
|
}
|
|
32553
|
-
_(
|
|
32554
|
-
if (
|
|
32553
|
+
_(c50, key) {
|
|
32554
|
+
if (c50 === " ") return this.submit();
|
|
32555
32555
|
}
|
|
32556
32556
|
get selection() {
|
|
32557
32557
|
return this.choices[this.cursor];
|
|
@@ -32675,12 +32675,12 @@ var require_toggle2 = __commonJS({
|
|
|
32675
32675
|
this.fire();
|
|
32676
32676
|
this.render();
|
|
32677
32677
|
}
|
|
32678
|
-
_(
|
|
32679
|
-
if (
|
|
32678
|
+
_(c50, key) {
|
|
32679
|
+
if (c50 === " ") {
|
|
32680
32680
|
this.value = !this.value;
|
|
32681
|
-
} else if (
|
|
32681
|
+
} else if (c50 === "1") {
|
|
32682
32682
|
this.value = true;
|
|
32683
|
-
} else if (
|
|
32683
|
+
} else if (c50 === "0") {
|
|
32684
32684
|
this.value = false;
|
|
32685
32685
|
} else return this.bell();
|
|
32686
32686
|
this.render();
|
|
@@ -33136,9 +33136,9 @@ var require_date2 = __commonJS({
|
|
|
33136
33136
|
this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
|
|
33137
33137
|
this.render();
|
|
33138
33138
|
}
|
|
33139
|
-
_(
|
|
33140
|
-
if (/\d/.test(
|
|
33141
|
-
this.typed +=
|
|
33139
|
+
_(c50) {
|
|
33140
|
+
if (/\d/.test(c50)) {
|
|
33141
|
+
this.typed += c50;
|
|
33142
33142
|
this.parts[this.cursor].setTo(this.typed);
|
|
33143
33143
|
this.render();
|
|
33144
33144
|
}
|
|
@@ -33220,8 +33220,8 @@ var require_number2 = __commonJS({
|
|
|
33220
33220
|
parse(x) {
|
|
33221
33221
|
return this.float ? parseFloat(x) : parseInt(x);
|
|
33222
33222
|
}
|
|
33223
|
-
valid(
|
|
33224
|
-
return
|
|
33223
|
+
valid(c50) {
|
|
33224
|
+
return c50 === `-` || c50 === `.` && this.float || isNumber.test(c50);
|
|
33225
33225
|
}
|
|
33226
33226
|
reset() {
|
|
33227
33227
|
this.typed = ``;
|
|
@@ -33308,14 +33308,14 @@ var require_number2 = __commonJS({
|
|
|
33308
33308
|
this.fire();
|
|
33309
33309
|
this.render();
|
|
33310
33310
|
}
|
|
33311
|
-
_(
|
|
33312
|
-
if (!this.valid(
|
|
33311
|
+
_(c50, key) {
|
|
33312
|
+
if (!this.valid(c50)) return this.bell();
|
|
33313
33313
|
const now = Date.now();
|
|
33314
33314
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
33315
|
-
this.typed +=
|
|
33315
|
+
this.typed += c50;
|
|
33316
33316
|
this.lastHit = now;
|
|
33317
33317
|
this.color = `cyan`;
|
|
33318
|
-
if (
|
|
33318
|
+
if (c50 === `.`) return this.fire();
|
|
33319
33319
|
this.value = Math.min(this.parse(this.typed), this.max);
|
|
33320
33320
|
if (this.value > this.max) this.value = this.max;
|
|
33321
33321
|
if (this.value < this.min) this.value = this.min;
|
|
@@ -33477,10 +33477,10 @@ var require_multiselect2 = __commonJS({
|
|
|
33477
33477
|
this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
|
|
33478
33478
|
this.render();
|
|
33479
33479
|
}
|
|
33480
|
-
_(
|
|
33481
|
-
if (
|
|
33480
|
+
_(c50, key) {
|
|
33481
|
+
if (c50 === " ") {
|
|
33482
33482
|
this.handleSpaceToggle();
|
|
33483
|
-
} else if (
|
|
33483
|
+
} else if (c50 === "a") {
|
|
33484
33484
|
this.toggleAll();
|
|
33485
33485
|
} else {
|
|
33486
33486
|
return this.bell();
|
|
@@ -33677,10 +33677,10 @@ var require_autocomplete2 = __commonJS({
|
|
|
33677
33677
|
this.out.write("\n");
|
|
33678
33678
|
this.close();
|
|
33679
33679
|
}
|
|
33680
|
-
_(
|
|
33680
|
+
_(c50, key) {
|
|
33681
33681
|
let s1 = this.input.slice(0, this.cursor);
|
|
33682
33682
|
let s2 = this.input.slice(this.cursor);
|
|
33683
|
-
this.input = `${s1}${
|
|
33683
|
+
this.input = `${s1}${c50}${s2}`;
|
|
33684
33684
|
this.cursor = s1.length + 1;
|
|
33685
33685
|
this.complete(this.render);
|
|
33686
33686
|
this.render();
|
|
@@ -33883,15 +33883,15 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
33883
33883
|
this.render();
|
|
33884
33884
|
}
|
|
33885
33885
|
}
|
|
33886
|
-
handleInputChange(
|
|
33887
|
-
this.inputValue = this.inputValue +
|
|
33886
|
+
handleInputChange(c50) {
|
|
33887
|
+
this.inputValue = this.inputValue + c50;
|
|
33888
33888
|
this.updateFilteredOptions();
|
|
33889
33889
|
}
|
|
33890
|
-
_(
|
|
33891
|
-
if (
|
|
33890
|
+
_(c50, key) {
|
|
33891
|
+
if (c50 === " ") {
|
|
33892
33892
|
this.handleSpaceToggle();
|
|
33893
33893
|
} else {
|
|
33894
|
-
this.handleInputChange(
|
|
33894
|
+
this.handleInputChange(c50);
|
|
33895
33895
|
}
|
|
33896
33896
|
}
|
|
33897
33897
|
renderInstructions() {
|
|
@@ -33998,12 +33998,12 @@ var require_confirm2 = __commonJS({
|
|
|
33998
33998
|
this.out.write("\n");
|
|
33999
33999
|
this.close();
|
|
34000
34000
|
}
|
|
34001
|
-
_(
|
|
34002
|
-
if (
|
|
34001
|
+
_(c50, key) {
|
|
34002
|
+
if (c50.toLowerCase() === "y") {
|
|
34003
34003
|
this.value = true;
|
|
34004
34004
|
return this.submit();
|
|
34005
34005
|
}
|
|
34006
|
-
if (
|
|
34006
|
+
if (c50.toLowerCase() === "n") {
|
|
34007
34007
|
this.value = false;
|
|
34008
34008
|
return this.submit();
|
|
34009
34009
|
}
|
|
@@ -34652,7 +34652,7 @@ if (DSN) {
|
|
|
34652
34652
|
Sentry.init({
|
|
34653
34653
|
dsn: DSN,
|
|
34654
34654
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
34655
|
-
release: "9.
|
|
34655
|
+
release: "9.112.1",
|
|
34656
34656
|
sendDefaultPii: false,
|
|
34657
34657
|
tracesSampleRate: 0,
|
|
34658
34658
|
shutdownTimeout: 500,
|
|
@@ -34671,7 +34671,7 @@ if (DSN) {
|
|
|
34671
34671
|
}
|
|
34672
34672
|
});
|
|
34673
34673
|
Sentry.setContext("cli", {
|
|
34674
|
-
version: "9.
|
|
34674
|
+
version: "9.112.1",
|
|
34675
34675
|
command: process.argv.slice(2).join(" ")
|
|
34676
34676
|
});
|
|
34677
34677
|
Sentry.setContext("runtime", {
|
|
@@ -39800,7 +39800,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
39800
39800
|
function isValidBase64URL(data) {
|
|
39801
39801
|
if (!base64url.test(data))
|
|
39802
39802
|
return false;
|
|
39803
|
-
const base643 = data.replace(/[-_]/g, (
|
|
39803
|
+
const base643 = data.replace(/[-_]/g, (c50) => c50 === "-" ? "+" : "/");
|
|
39804
39804
|
const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
|
|
39805
39805
|
return isValidBase64(padded);
|
|
39806
39806
|
}
|
|
@@ -49911,9 +49911,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
|
49911
49911
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
49912
49912
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
49913
49913
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
49914
|
-
const
|
|
49915
|
-
inst.minDate =
|
|
49916
|
-
inst.maxDate =
|
|
49914
|
+
const c50 = inst._zod.bag;
|
|
49915
|
+
inst.minDate = c50.minimum ? new Date(c50.minimum) : null;
|
|
49916
|
+
inst.maxDate = c50.maximum ? new Date(c50.maximum) : null;
|
|
49917
49917
|
});
|
|
49918
49918
|
function date3(params) {
|
|
49919
49919
|
return _date(ZodDate, params);
|
|
@@ -68365,6 +68365,8 @@ var logEntrySchema = external_exports.object({
|
|
|
68365
68365
|
triggerAgentName: external_exports.string().nullable(),
|
|
68366
68366
|
scheduleId: external_exports.string().nullable(),
|
|
68367
68367
|
status: logStatusSchema,
|
|
68368
|
+
/** Prompt text the run was launched with. Used as a row description. */
|
|
68369
|
+
prompt: external_exports.string(),
|
|
68368
68370
|
createdAt: external_exports.string(),
|
|
68369
68371
|
startedAt: external_exports.string().nullable(),
|
|
68370
68372
|
completedAt: external_exports.string().nullable()
|
|
@@ -70397,7 +70399,15 @@ var chatThreadsContract = c10.router({
|
|
|
70397
70399
|
headers: authHeadersSchema,
|
|
70398
70400
|
body: external_exports.object({
|
|
70399
70401
|
agentId: external_exports.string().min(1),
|
|
70400
|
-
title: external_exports.string().optional()
|
|
70402
|
+
title: external_exports.string().optional(),
|
|
70403
|
+
/**
|
|
70404
|
+
* Optional ID of a previously scheduled agent run this thread is
|
|
70405
|
+
* continuing. When set, the first run created in the thread is seeded
|
|
70406
|
+
* with a system prompt that tells the agent to fetch the original run's
|
|
70407
|
+
* telemetry via `zero logs <id>`. Later runs inherit the session context
|
|
70408
|
+
* and do not get the prompt again.
|
|
70409
|
+
*/
|
|
70410
|
+
sourceScheduleRunId: external_exports.string().uuid().optional()
|
|
70401
70411
|
}),
|
|
70402
70412
|
responses: {
|
|
70403
70413
|
201: external_exports.object({
|
|
@@ -70405,7 +70415,8 @@ var chatThreadsContract = c10.router({
|
|
|
70405
70415
|
title: external_exports.string().nullable(),
|
|
70406
70416
|
createdAt: external_exports.string()
|
|
70407
70417
|
}),
|
|
70408
|
-
401: apiErrorSchema
|
|
70418
|
+
401: apiErrorSchema,
|
|
70419
|
+
404: apiErrorSchema
|
|
70409
70420
|
},
|
|
70410
70421
|
summary: "Create a new chat thread"
|
|
70411
70422
|
},
|
|
@@ -71095,8 +71106,7 @@ var onboardingStatusResponseSchema = external_exports.object({
|
|
|
71095
71106
|
displayName: external_exports.string().optional(),
|
|
71096
71107
|
description: external_exports.string().optional(),
|
|
71097
71108
|
sound: external_exports.string().optional()
|
|
71098
|
-
}).nullable()
|
|
71099
|
-
defaultAgentSkills: external_exports.array(external_exports.string())
|
|
71109
|
+
}).nullable()
|
|
71100
71110
|
});
|
|
71101
71111
|
var onboardingStatusContract = c16.router({
|
|
71102
71112
|
getStatus: {
|
|
@@ -71115,7 +71125,9 @@ var onboardingCompleteContract = c16.router({
|
|
|
71115
71125
|
method: "POST",
|
|
71116
71126
|
path: "/api/zero/onboarding/complete",
|
|
71117
71127
|
headers: authHeadersSchema,
|
|
71118
|
-
body:
|
|
71128
|
+
body: external_exports.object({
|
|
71129
|
+
selectedConnectors: external_exports.array(connectorTypeSchema).optional()
|
|
71130
|
+
}),
|
|
71119
71131
|
responses: {
|
|
71120
71132
|
200: external_exports.object({ ok: external_exports.boolean() }),
|
|
71121
71133
|
401: apiErrorSchema
|
|
@@ -71133,7 +71145,7 @@ var onboardingSetupContract = c16.router({
|
|
|
71133
71145
|
workspaceName: external_exports.string().optional(),
|
|
71134
71146
|
sound: external_exports.string().optional(),
|
|
71135
71147
|
avatarUrl: external_exports.string().optional(),
|
|
71136
|
-
selectedConnectors: external_exports.array(
|
|
71148
|
+
selectedConnectors: external_exports.array(connectorTypeSchema).optional(),
|
|
71137
71149
|
timezone: external_exports.string().optional()
|
|
71138
71150
|
}),
|
|
71139
71151
|
responses: {
|
|
@@ -73525,9 +73537,62 @@ var zeroVoiceChatContextAppendContract = c46.router({
|
|
|
73525
73537
|
}
|
|
73526
73538
|
});
|
|
73527
73539
|
|
|
73528
|
-
// ../../packages/core/src/contracts/
|
|
73540
|
+
// ../../packages/core/src/contracts/zero-voice-chat-prepare.ts
|
|
73529
73541
|
init_esm_shims();
|
|
73530
73542
|
var c47 = initContract();
|
|
73543
|
+
var prepareTriggerBodySchema = external_exports.object({
|
|
73544
|
+
agentId: external_exports.string().min(1),
|
|
73545
|
+
mode: external_exports.enum(["chat", "meeting"]).default("chat"),
|
|
73546
|
+
prompt: external_exports.string().min(1).optional()
|
|
73547
|
+
});
|
|
73548
|
+
var prepareTriggerResponseSchema = external_exports.object({
|
|
73549
|
+
preparation: external_exports.object({
|
|
73550
|
+
id: external_exports.string(),
|
|
73551
|
+
status: external_exports.string(),
|
|
73552
|
+
runId: external_exports.string().optional()
|
|
73553
|
+
})
|
|
73554
|
+
});
|
|
73555
|
+
var zeroVoiceChatPrepareTriggerContract = c47.router({
|
|
73556
|
+
trigger: {
|
|
73557
|
+
method: "POST",
|
|
73558
|
+
path: "/api/zero/voice-chat/prepare",
|
|
73559
|
+
headers: authHeadersSchema,
|
|
73560
|
+
body: prepareTriggerBodySchema,
|
|
73561
|
+
responses: {
|
|
73562
|
+
200: prepareTriggerResponseSchema,
|
|
73563
|
+
400: apiErrorSchema,
|
|
73564
|
+
401: apiErrorSchema,
|
|
73565
|
+
403: apiErrorSchema
|
|
73566
|
+
},
|
|
73567
|
+
summary: "Trigger a voice-chat preparation run (with dedup and cache)"
|
|
73568
|
+
}
|
|
73569
|
+
});
|
|
73570
|
+
var prepareCompleteBodySchema = external_exports.object({
|
|
73571
|
+
content: external_exports.string().min(1)
|
|
73572
|
+
});
|
|
73573
|
+
var prepareCompleteResponseSchema = external_exports.object({
|
|
73574
|
+
id: external_exports.string(),
|
|
73575
|
+
status: external_exports.string()
|
|
73576
|
+
});
|
|
73577
|
+
var zeroVoiceChatPrepareCompleteContract = c47.router({
|
|
73578
|
+
complete: {
|
|
73579
|
+
method: "POST",
|
|
73580
|
+
path: "/api/zero/voice-chat/prepare/complete",
|
|
73581
|
+
headers: authHeadersSchema,
|
|
73582
|
+
body: prepareCompleteBodySchema,
|
|
73583
|
+
responses: {
|
|
73584
|
+
200: prepareCompleteResponseSchema,
|
|
73585
|
+
400: apiErrorSchema,
|
|
73586
|
+
401: apiErrorSchema,
|
|
73587
|
+
404: apiErrorSchema
|
|
73588
|
+
},
|
|
73589
|
+
summary: "Complete a voice-chat preparation run by submitting the directive content"
|
|
73590
|
+
}
|
|
73591
|
+
});
|
|
73592
|
+
|
|
73593
|
+
// ../../packages/core/src/contracts/tasks.ts
|
|
73594
|
+
init_esm_shims();
|
|
73595
|
+
var c48 = initContract();
|
|
73531
73596
|
var taskTypeSchema = external_exports.enum([
|
|
73532
73597
|
"chat",
|
|
73533
73598
|
"schedule",
|
|
@@ -73568,7 +73633,7 @@ var unarchiveTaskBodySchema = external_exports.object({
|
|
|
73568
73633
|
taskId: external_exports.string(),
|
|
73569
73634
|
taskType: taskTypeSchema
|
|
73570
73635
|
});
|
|
73571
|
-
var tasksContract =
|
|
73636
|
+
var tasksContract = c48.router({
|
|
73572
73637
|
list: {
|
|
73573
73638
|
method: "GET",
|
|
73574
73639
|
path: "/api/zero/tasks",
|
|
@@ -73608,7 +73673,7 @@ var tasksContract = c47.router({
|
|
|
73608
73673
|
|
|
73609
73674
|
// ../../packages/core/src/contracts/zero-phone.ts
|
|
73610
73675
|
init_esm_shims();
|
|
73611
|
-
var
|
|
73676
|
+
var c49 = initContract();
|
|
73612
73677
|
var phoneStatusResponseSchema = external_exports.object({
|
|
73613
73678
|
userPhone: external_exports.string().nullable(),
|
|
73614
73679
|
userPhonePending: external_exports.string().nullable(),
|
|
@@ -73627,7 +73692,7 @@ var phoneSetupResponseSchema = external_exports.object({
|
|
|
73627
73692
|
var phoneErrorResponseSchema = external_exports.object({
|
|
73628
73693
|
error: external_exports.string()
|
|
73629
73694
|
});
|
|
73630
|
-
var zeroPhoneStatusContract =
|
|
73695
|
+
var zeroPhoneStatusContract = c49.router({
|
|
73631
73696
|
getStatus: {
|
|
73632
73697
|
method: "GET",
|
|
73633
73698
|
path: "/api/zero/phone/status",
|
|
@@ -73639,7 +73704,7 @@ var zeroPhoneStatusContract = c48.router({
|
|
|
73639
73704
|
summary: "Get the current user's phone link status"
|
|
73640
73705
|
}
|
|
73641
73706
|
});
|
|
73642
|
-
var zeroPhoneLinkContract =
|
|
73707
|
+
var zeroPhoneLinkContract = c49.router({
|
|
73643
73708
|
link: {
|
|
73644
73709
|
method: "POST",
|
|
73645
73710
|
path: "/api/zero/phone/link",
|
|
@@ -73657,7 +73722,7 @@ var zeroPhoneLinkContract = c48.router({
|
|
|
73657
73722
|
method: "DELETE",
|
|
73658
73723
|
path: "/api/zero/phone/link",
|
|
73659
73724
|
headers: authHeadersSchema,
|
|
73660
|
-
body:
|
|
73725
|
+
body: c49.noBody(),
|
|
73661
73726
|
responses: {
|
|
73662
73727
|
200: phoneSuccessResponseSchema,
|
|
73663
73728
|
401: phoneErrorResponseSchema
|
|
@@ -73665,12 +73730,12 @@ var zeroPhoneLinkContract = c48.router({
|
|
|
73665
73730
|
summary: "Remove the current user's phone link"
|
|
73666
73731
|
}
|
|
73667
73732
|
});
|
|
73668
|
-
var zeroPhoneSetupContract =
|
|
73733
|
+
var zeroPhoneSetupContract = c49.router({
|
|
73669
73734
|
setup: {
|
|
73670
73735
|
method: "POST",
|
|
73671
73736
|
path: "/api/zero/phone/setup",
|
|
73672
73737
|
headers: authHeadersSchema,
|
|
73673
|
-
body:
|
|
73738
|
+
body: c49.noBody(),
|
|
73674
73739
|
responses: {
|
|
73675
73740
|
200: phoneSetupResponseSchema,
|
|
73676
73741
|
401: phoneErrorResponseSchema,
|
|
@@ -73956,6 +74021,12 @@ var FEATURE_SWITCHES = {
|
|
|
73956
74021
|
description: "Enable sandbox reuse (keep-alive) across conversation turns",
|
|
73957
74022
|
enabled: false,
|
|
73958
74023
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
74024
|
+
},
|
|
74025
|
+
["scheduleRunHistory" /* ScheduleRunHistory */]: {
|
|
74026
|
+
maintainer: "linghan@vm0.ai",
|
|
74027
|
+
description: "Show Run History tab on schedules page and Chat-from-schedule button on activity detail",
|
|
74028
|
+
enabled: false,
|
|
74029
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
73959
74030
|
}
|
|
73960
74031
|
};
|
|
73961
74032
|
function isFeatureEnabled(key, ctx) {
|
|
@@ -75217,6 +75288,21 @@ async function appendVoiceChatContextEvent(sessionId, body) {
|
|
|
75217
75288
|
handleError(result, "Failed to append voice-chat context event");
|
|
75218
75289
|
}
|
|
75219
75290
|
|
|
75291
|
+
// src/lib/api/domains/zero-voice-chat-prepare.ts
|
|
75292
|
+
init_esm_shims();
|
|
75293
|
+
async function completeVoiceChatPreparation(content) {
|
|
75294
|
+
const config2 = await getClientConfig();
|
|
75295
|
+
const client = initClient(zeroVoiceChatPrepareCompleteContract, config2);
|
|
75296
|
+
const result = await client.complete({
|
|
75297
|
+
body: { content },
|
|
75298
|
+
headers: {}
|
|
75299
|
+
});
|
|
75300
|
+
if (result.status === 200) {
|
|
75301
|
+
return result.body;
|
|
75302
|
+
}
|
|
75303
|
+
handleError(result, "Failed to complete voice-chat preparation");
|
|
75304
|
+
}
|
|
75305
|
+
|
|
75220
75306
|
// src/lib/utils/prompt-utils.ts
|
|
75221
75307
|
init_esm_shims();
|
|
75222
75308
|
var import_prompts = __toESM(require_prompts3(), 1);
|
|
@@ -76317,6 +76403,7 @@ export {
|
|
|
76317
76403
|
getPhoneCallDetail,
|
|
76318
76404
|
getVoiceChatContextEvents,
|
|
76319
76405
|
appendVoiceChatContextEvent,
|
|
76406
|
+
completeVoiceChatPreparation,
|
|
76320
76407
|
require_prompts3 as require_prompts,
|
|
76321
76408
|
isInteractive,
|
|
76322
76409
|
promptText,
|
|
@@ -76348,4 +76435,4 @@ undici/lib/web/fetch/body.js:
|
|
|
76348
76435
|
undici/lib/web/websocket/frame.js:
|
|
76349
76436
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
76350
76437
|
*/
|
|
76351
|
-
//# sourceMappingURL=chunk-
|
|
76438
|
+
//# sourceMappingURL=chunk-5XO4EU32.js.map
|