@vm0/cli 9.111.0 → 9.111.2
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-QX23MVVI.js → chunk-EZQQVFEQ.js} +191 -211
- package/chunk-EZQQVFEQ.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +65 -141
- package/zero.js.map +1 -1
- package/chunk-QX23MVVI.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(c45) {
|
|
4550
|
+
switch (c45) {
|
|
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 c45 >= 33 && c45 <= 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((c45) => c45 !== 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 c45 = statusText.charCodeAt(i);
|
|
7306
|
+
if (!(c45 === 9 || // HTAB
|
|
7307
|
+
c45 >= 32 && c45 <= 126 || // SP / VCHAR
|
|
7308
|
+
c45 >= 128 && c45 <= 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((c45) => c45.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((c45) => c45.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((c45) => c45.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, c45] = ioQueue;
|
|
18117
|
+
if (a === 239 && b === 187 && c45 === 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 c45 = getAliasCount(doc, item, anchors2);
|
|
22597
|
+
if (c45 > count)
|
|
22598
|
+
count = c45;
|
|
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 c45 = 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: c45.red(figures.cross),
|
|
29637
|
+
done: c45.green(figures.tick),
|
|
29638
|
+
exited: c45.yellow(figures.cross),
|
|
29639
|
+
default: c45.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) => c45.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
29643
|
+
var item = (expandable, expanded) => c45.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
|
+
_(c45, 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}${c45}${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
|
+
_(c45, key) {
|
|
30104
|
+
if (c45 === " ") 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
|
+
_(c45, key) {
|
|
30231
|
+
if (c45 === " ") {
|
|
30232
30232
|
this.value = !this.value;
|
|
30233
|
-
} else if (
|
|
30233
|
+
} else if (c45 === "1") {
|
|
30234
30234
|
this.value = true;
|
|
30235
|
-
} else if (
|
|
30235
|
+
} else if (c45 === "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
|
+
_(c45) {
|
|
30744
|
+
if (/\d/.test(c45)) {
|
|
30745
|
+
this.typed += c45;
|
|
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(c45) {
|
|
30855
|
+
return c45 === `-` || c45 === `.` && this.float || isNumber.test(c45);
|
|
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
|
+
_(c45, key) {
|
|
30949
|
+
if (!this.valid(c45)) return this.bell();
|
|
30950
30950
|
const now = Date.now();
|
|
30951
30951
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
30952
|
-
this.typed +=
|
|
30952
|
+
this.typed += c45;
|
|
30953
30953
|
this.lastHit = now;
|
|
30954
30954
|
this.color = `cyan`;
|
|
30955
|
-
if (
|
|
30955
|
+
if (c45 === `.`) 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
|
+
_(c45, key) {
|
|
31120
|
+
if (c45 === " ") {
|
|
31121
31121
|
this.handleSpaceToggle();
|
|
31122
|
-
} else if (
|
|
31122
|
+
} else if (c45 === "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
|
+
_(c45, 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}${c45}${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(c45) {
|
|
31567
|
+
this.inputValue = this.inputValue + c45;
|
|
31568
31568
|
this.updateFilteredOptions();
|
|
31569
31569
|
}
|
|
31570
|
-
_(
|
|
31571
|
-
if (
|
|
31570
|
+
_(c45, key) {
|
|
31571
|
+
if (c45 === " ") {
|
|
31572
31572
|
this.handleSpaceToggle();
|
|
31573
31573
|
} else {
|
|
31574
|
-
this.handleInputChange(
|
|
31574
|
+
this.handleInputChange(c45);
|
|
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
|
+
_(c45, key) {
|
|
31681
|
+
if (c45.toLowerCase() === "y") {
|
|
31682
31682
|
this.value = true;
|
|
31683
31683
|
return this.submit();
|
|
31684
31684
|
}
|
|
31685
|
-
if (
|
|
31685
|
+
if (c45.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 c45 = 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: c45.red(figures.cross),
|
|
32137
|
+
done: c45.green(figures.tick),
|
|
32138
|
+
exited: c45.yellow(figures.cross),
|
|
32139
|
+
default: c45.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) => c45.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
32143
|
+
var item = (expandable, expanded) => c45.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
|
+
_(c45, 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}${c45}${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
|
+
_(c45, key) {
|
|
32554
|
+
if (c45 === " ") 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
|
+
_(c45, key) {
|
|
32679
|
+
if (c45 === " ") {
|
|
32680
32680
|
this.value = !this.value;
|
|
32681
|
-
} else if (
|
|
32681
|
+
} else if (c45 === "1") {
|
|
32682
32682
|
this.value = true;
|
|
32683
|
-
} else if (
|
|
32683
|
+
} else if (c45 === "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
|
+
_(c45) {
|
|
33140
|
+
if (/\d/.test(c45)) {
|
|
33141
|
+
this.typed += c45;
|
|
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(c45) {
|
|
33224
|
+
return c45 === `-` || c45 === `.` && this.float || isNumber.test(c45);
|
|
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
|
+
_(c45, key) {
|
|
33312
|
+
if (!this.valid(c45)) return this.bell();
|
|
33313
33313
|
const now = Date.now();
|
|
33314
33314
|
if (now - this.lastHit > 1e3) this.typed = ``;
|
|
33315
|
-
this.typed +=
|
|
33315
|
+
this.typed += c45;
|
|
33316
33316
|
this.lastHit = now;
|
|
33317
33317
|
this.color = `cyan`;
|
|
33318
|
-
if (
|
|
33318
|
+
if (c45 === `.`) 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
|
+
_(c45, key) {
|
|
33481
|
+
if (c45 === " ") {
|
|
33482
33482
|
this.handleSpaceToggle();
|
|
33483
|
-
} else if (
|
|
33483
|
+
} else if (c45 === "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
|
+
_(c45, 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}${c45}${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(c45) {
|
|
33887
|
+
this.inputValue = this.inputValue + c45;
|
|
33888
33888
|
this.updateFilteredOptions();
|
|
33889
33889
|
}
|
|
33890
|
-
_(
|
|
33891
|
-
if (
|
|
33890
|
+
_(c45, key) {
|
|
33891
|
+
if (c45 === " ") {
|
|
33892
33892
|
this.handleSpaceToggle();
|
|
33893
33893
|
} else {
|
|
33894
|
-
this.handleInputChange(
|
|
33894
|
+
this.handleInputChange(c45);
|
|
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
|
+
_(c45, key) {
|
|
34002
|
+
if (c45.toLowerCase() === "y") {
|
|
34003
34003
|
this.value = true;
|
|
34004
34004
|
return this.submit();
|
|
34005
34005
|
}
|
|
34006
|
-
if (
|
|
34006
|
+
if (c45.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.111.
|
|
34655
|
+
release: "9.111.2",
|
|
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.111.
|
|
34674
|
+
version: "9.111.2",
|
|
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, (c45) => c45 === "-" ? "+" : "/");
|
|
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 c45 = inst._zod.bag;
|
|
49915
|
+
inst.minDate = c45.minimum ? new Date(c45.minimum) : null;
|
|
49916
|
+
inst.maxDate = c45.maximum ? new Date(c45.maximum) : null;
|
|
49917
49917
|
});
|
|
49918
49918
|
function date3(params) {
|
|
49919
49919
|
return _date(ZodDate, params);
|
|
@@ -53351,6 +53351,27 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
53351
53351
|
},
|
|
53352
53352
|
defaultAuthMethod: "api-token"
|
|
53353
53353
|
},
|
|
53354
|
+
plain: {
|
|
53355
|
+
label: "Plain",
|
|
53356
|
+
environmentMapping: {
|
|
53357
|
+
PLAIN_TOKEN: "$secrets.PLAIN_TOKEN"
|
|
53358
|
+
},
|
|
53359
|
+
helpText: "Connect your Plain account to manage customer support threads, customers, and labels via Plain's GraphQL API",
|
|
53360
|
+
authMethods: {
|
|
53361
|
+
"api-token": {
|
|
53362
|
+
label: "API Key",
|
|
53363
|
+
helpText: "1. Log in to [Plain](https://app.plain.com)\n2. Go to **Settings \u2192 Machine Users**\n3. Click **New machine user** and generate an API key\n4. Copy the API key",
|
|
53364
|
+
secrets: {
|
|
53365
|
+
PLAIN_TOKEN: {
|
|
53366
|
+
label: "API Key",
|
|
53367
|
+
required: true,
|
|
53368
|
+
placeholder: "plainApiKey__..."
|
|
53369
|
+
}
|
|
53370
|
+
}
|
|
53371
|
+
}
|
|
53372
|
+
},
|
|
53373
|
+
defaultAuthMethod: "api-token"
|
|
53374
|
+
},
|
|
53354
53375
|
plausible: {
|
|
53355
53376
|
label: "Plausible",
|
|
53356
53377
|
environmentMapping: {
|
|
@@ -59464,6 +59485,27 @@ var perplexityFirewall = {
|
|
|
59464
59485
|
]
|
|
59465
59486
|
};
|
|
59466
59487
|
|
|
59488
|
+
// ../../packages/core/src/firewalls/plain.generated.ts
|
|
59489
|
+
init_esm_shims();
|
|
59490
|
+
var plainFirewall = {
|
|
59491
|
+
name: "plain",
|
|
59492
|
+
description: "Plain",
|
|
59493
|
+
placeholders: {
|
|
59494
|
+
PLAIN_TOKEN: "plainApiKey__CoffeeSafeLocalCoffeeSafeLocalCoffeeSafeLo"
|
|
59495
|
+
},
|
|
59496
|
+
apis: [
|
|
59497
|
+
{
|
|
59498
|
+
base: "https://core-api.uk.plain.com",
|
|
59499
|
+
auth: {
|
|
59500
|
+
headers: {
|
|
59501
|
+
Authorization: "Bearer ${{ secrets.PLAIN_TOKEN }}"
|
|
59502
|
+
}
|
|
59503
|
+
},
|
|
59504
|
+
permissions: []
|
|
59505
|
+
}
|
|
59506
|
+
]
|
|
59507
|
+
};
|
|
59508
|
+
|
|
59467
59509
|
// ../../packages/core/src/firewalls/plausible.generated.ts
|
|
59468
59510
|
init_esm_shims();
|
|
59469
59511
|
var plausibleFirewall = {
|
|
@@ -63545,6 +63587,7 @@ var CONNECTOR_FIREWALLS = {
|
|
|
63545
63587
|
pdfco: pdfcoFirewall,
|
|
63546
63588
|
pdforge: pdforgeFirewall,
|
|
63547
63589
|
perplexity: perplexityFirewall,
|
|
63590
|
+
plain: plainFirewall,
|
|
63548
63591
|
plausible: plausibleFirewall,
|
|
63549
63592
|
podchaser: podchaserFirewall,
|
|
63550
63593
|
posthog: posthogFirewall,
|
|
@@ -63633,27 +63676,31 @@ var DEFAULT_ALLOWED = {
|
|
|
63633
63676
|
};
|
|
63634
63677
|
function getDefaultFirewallPolicies(type) {
|
|
63635
63678
|
const allowed = DEFAULT_ALLOWED[type];
|
|
63636
|
-
|
|
63637
|
-
const allowSet = new Set(allowed);
|
|
63679
|
+
const allowSet = allowed ? new Set(allowed) : null;
|
|
63638
63680
|
const config2 = getConnectorFirewall(type);
|
|
63639
|
-
const
|
|
63681
|
+
const policies = {};
|
|
63640
63682
|
for (const api of config2.apis) {
|
|
63641
63683
|
if (api.permissions) {
|
|
63642
63684
|
for (const p of api.permissions) {
|
|
63643
|
-
|
|
63685
|
+
policies[p.name] = !allowSet || allowSet.has(p.name) ? "allow" : "deny";
|
|
63644
63686
|
}
|
|
63645
63687
|
}
|
|
63646
63688
|
}
|
|
63647
|
-
return
|
|
63689
|
+
return { policies, unknownPolicy: "allow" };
|
|
63648
63690
|
}
|
|
63649
63691
|
function resolveFirewallPolicies(stored, connectors) {
|
|
63650
63692
|
let resolved = stored;
|
|
63651
63693
|
for (const connector of connectors) {
|
|
63652
63694
|
if (!isFirewallConnectorType(connector)) continue;
|
|
63653
|
-
if (resolved?.[connector]) continue;
|
|
63654
63695
|
const defaults = getDefaultFirewallPolicies(connector);
|
|
63655
|
-
|
|
63656
|
-
resolved = {
|
|
63696
|
+
const existing = resolved?.[connector];
|
|
63697
|
+
resolved = {
|
|
63698
|
+
...resolved,
|
|
63699
|
+
[connector]: {
|
|
63700
|
+
policies: { ...defaults.policies, ...existing?.policies },
|
|
63701
|
+
...existing?.unknownPolicy !== void 0 ? { unknownPolicy: existing.unknownPolicy } : { unknownPolicy: defaults.unknownPolicy }
|
|
63702
|
+
}
|
|
63703
|
+
};
|
|
63657
63704
|
}
|
|
63658
63705
|
return resolved;
|
|
63659
63706
|
}
|
|
@@ -68208,10 +68255,21 @@ var firewallConfigSchema = external_exports.object({
|
|
|
68208
68255
|
placeholders: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
68209
68256
|
});
|
|
68210
68257
|
var firewallPolicyValueSchema = external_exports.enum(["allow", "deny", "ask"]);
|
|
68258
|
+
var firewallPolicySchema = external_exports.object({
|
|
68259
|
+
policies: external_exports.record(external_exports.string(), firewallPolicyValueSchema),
|
|
68260
|
+
unknownPolicy: firewallPolicyValueSchema.optional()
|
|
68261
|
+
});
|
|
68211
68262
|
var firewallPoliciesSchema = external_exports.record(
|
|
68212
68263
|
external_exports.string(),
|
|
68213
|
-
|
|
68264
|
+
firewallPolicySchema
|
|
68214
68265
|
);
|
|
68266
|
+
var networkPolicySchema = external_exports.object({
|
|
68267
|
+
allow: external_exports.array(external_exports.string()),
|
|
68268
|
+
deny: external_exports.array(external_exports.string()),
|
|
68269
|
+
ask: external_exports.array(external_exports.string()),
|
|
68270
|
+
unknownPolicy: firewallPolicyValueSchema
|
|
68271
|
+
});
|
|
68272
|
+
var networkPoliciesSchema = external_exports.record(external_exports.string(), networkPolicySchema);
|
|
68215
68273
|
var BASE_URL_VARS_PATTERN = /\$\{\{\s*vars\.([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}/;
|
|
68216
68274
|
var BASE_URL_VARS_PATTERN_G = new RegExp(BASE_URL_VARS_PATTERN.source, "g");
|
|
68217
68275
|
|
|
@@ -70556,8 +70614,10 @@ var storedExecutionContextSchema = external_exports.object({
|
|
|
70556
70614
|
userTimezone: external_exports.string().optional(),
|
|
70557
70615
|
// Memory storage name (for first-run when manifest.memory is null)
|
|
70558
70616
|
memoryName: external_exports.string().optional(),
|
|
70559
|
-
// Firewall for proxy-side token replacement
|
|
70617
|
+
// Firewall for proxy-side token replacement (complete config, all permissions)
|
|
70560
70618
|
firewalls: firewallsSchema.optional(),
|
|
70619
|
+
// Per-firewall network policies: which permissions are granted + unknownPolicy
|
|
70620
|
+
networkPolicies: networkPoliciesSchema.optional(),
|
|
70561
70621
|
// Tools to disable in Claude CLI (passed as --disallowed-tools)
|
|
70562
70622
|
disallowedTools: external_exports.array(external_exports.string()).optional(),
|
|
70563
70623
|
// Tools to make available in Claude CLI (passed as --tools)
|
|
@@ -70596,8 +70656,10 @@ var executionContextSchema = external_exports.object({
|
|
|
70596
70656
|
userTimezone: external_exports.string().optional(),
|
|
70597
70657
|
// Memory storage name (for first-run when manifest.memory is null)
|
|
70598
70658
|
memoryName: external_exports.string().optional(),
|
|
70599
|
-
// Firewall for proxy-side token replacement
|
|
70659
|
+
// Firewall for proxy-side token replacement (complete config, all permissions)
|
|
70600
70660
|
firewalls: firewallsSchema.optional(),
|
|
70661
|
+
// Per-firewall network policies: which permissions are granted + unknownPolicy
|
|
70662
|
+
networkPolicies: networkPoliciesSchema.optional(),
|
|
70601
70663
|
// Tools to disable in Claude CLI (passed as --disallowed-tools)
|
|
70602
70664
|
disallowedTools: external_exports.array(external_exports.string()).optional(),
|
|
70603
70665
|
// Tools to make available in Claude CLI (passed as --tools)
|
|
@@ -72063,6 +72125,7 @@ var runContextResponseSchema = external_exports.object({
|
|
|
72063
72125
|
vars: external_exports.record(external_exports.string(), external_exports.string()).nullable(),
|
|
72064
72126
|
environment: external_exports.record(external_exports.string(), external_exports.string()),
|
|
72065
72127
|
firewalls: external_exports.array(runContextFirewallSchema),
|
|
72128
|
+
networkPolicies: networkPoliciesSchema.nullable().optional(),
|
|
72066
72129
|
volumes: external_exports.array(runContextVolumeSchema),
|
|
72067
72130
|
artifact: runContextArtifactSchema.nullable(),
|
|
72068
72131
|
memory: runContextArtifactSchema.nullable()
|
|
@@ -73006,70 +73069,9 @@ var zeroMemberCreditCapContract = c38.router({
|
|
|
73006
73069
|
}
|
|
73007
73070
|
});
|
|
73008
73071
|
|
|
73009
|
-
// ../../packages/core/src/contracts/zero-ask-user.ts
|
|
73010
|
-
init_esm_shims();
|
|
73011
|
-
var c39 = initContract();
|
|
73012
|
-
var askUserQuestionItemSchema = external_exports.object({
|
|
73013
|
-
question: external_exports.string().min(1),
|
|
73014
|
-
header: external_exports.string().max(12).optional(),
|
|
73015
|
-
options: external_exports.array(
|
|
73016
|
-
external_exports.object({
|
|
73017
|
-
label: external_exports.string(),
|
|
73018
|
-
description: external_exports.string().optional()
|
|
73019
|
-
})
|
|
73020
|
-
).min(1),
|
|
73021
|
-
multiSelect: external_exports.boolean().optional()
|
|
73022
|
-
});
|
|
73023
|
-
var askUserQuestionBodySchema = external_exports.object({
|
|
73024
|
-
questions: external_exports.array(askUserQuestionItemSchema).min(1)
|
|
73025
|
-
});
|
|
73026
|
-
var askUserQuestionResponseSchema = external_exports.object({
|
|
73027
|
-
pendingId: external_exports.string().uuid()
|
|
73028
|
-
});
|
|
73029
|
-
var askUserAnswerStatusSchema = external_exports.enum([
|
|
73030
|
-
"pending",
|
|
73031
|
-
"answered",
|
|
73032
|
-
"expired"
|
|
73033
|
-
]);
|
|
73034
|
-
var askUserAnswerResponseSchema = external_exports.object({
|
|
73035
|
-
status: askUserAnswerStatusSchema,
|
|
73036
|
-
answer: external_exports.string().optional()
|
|
73037
|
-
});
|
|
73038
|
-
var zeroAskUserQuestionContract = c39.router({
|
|
73039
|
-
postQuestion: {
|
|
73040
|
-
method: "POST",
|
|
73041
|
-
path: "/api/zero/ask-user/question",
|
|
73042
|
-
headers: authHeadersSchema,
|
|
73043
|
-
body: askUserQuestionBodySchema,
|
|
73044
|
-
responses: {
|
|
73045
|
-
200: askUserQuestionResponseSchema,
|
|
73046
|
-
400: apiErrorSchema,
|
|
73047
|
-
401: apiErrorSchema
|
|
73048
|
-
},
|
|
73049
|
-
summary: "Submit a question for the user and receive a pending ID for polling"
|
|
73050
|
-
}
|
|
73051
|
-
});
|
|
73052
|
-
var zeroAskUserAnswerContract = c39.router({
|
|
73053
|
-
getAnswer: {
|
|
73054
|
-
method: "GET",
|
|
73055
|
-
path: "/api/zero/ask-user/answer",
|
|
73056
|
-
headers: authHeadersSchema,
|
|
73057
|
-
query: external_exports.object({
|
|
73058
|
-
pendingId: external_exports.string().uuid()
|
|
73059
|
-
}),
|
|
73060
|
-
responses: {
|
|
73061
|
-
200: askUserAnswerResponseSchema,
|
|
73062
|
-
401: apiErrorSchema,
|
|
73063
|
-
403: apiErrorSchema,
|
|
73064
|
-
404: apiErrorSchema
|
|
73065
|
-
},
|
|
73066
|
-
summary: "Poll for the user's answer to a pending question"
|
|
73067
|
-
}
|
|
73068
|
-
});
|
|
73069
|
-
|
|
73070
73072
|
// ../../packages/core/src/contracts/zero-developer-support.ts
|
|
73071
73073
|
init_esm_shims();
|
|
73072
|
-
var
|
|
73074
|
+
var c39 = initContract();
|
|
73073
73075
|
var developerSupportBodySchema = external_exports.object({
|
|
73074
73076
|
title: external_exports.string().min(1, "Title is required"),
|
|
73075
73077
|
description: external_exports.string().min(1, "Description is required"),
|
|
@@ -73081,7 +73083,7 @@ var consentCodeResponseSchema = external_exports.object({
|
|
|
73081
73083
|
var submitResponseSchema = external_exports.object({
|
|
73082
73084
|
reference: external_exports.string()
|
|
73083
73085
|
});
|
|
73084
|
-
var zeroDeveloperSupportContract =
|
|
73086
|
+
var zeroDeveloperSupportContract = c39.router({
|
|
73085
73087
|
submit: {
|
|
73086
73088
|
method: "POST",
|
|
73087
73089
|
path: "/api/zero/developer-support",
|
|
@@ -73099,7 +73101,7 @@ var zeroDeveloperSupportContract = c40.router({
|
|
|
73099
73101
|
|
|
73100
73102
|
// ../../packages/core/src/contracts/zero-report-error.ts
|
|
73101
73103
|
init_esm_shims();
|
|
73102
|
-
var
|
|
73104
|
+
var c40 = initContract();
|
|
73103
73105
|
var reportErrorBodySchema = external_exports.object({
|
|
73104
73106
|
runId: external_exports.string().min(1, "Run ID is required"),
|
|
73105
73107
|
title: external_exports.string().min(1, "Title is required"),
|
|
@@ -73108,7 +73110,7 @@ var reportErrorBodySchema = external_exports.object({
|
|
|
73108
73110
|
var reportErrorResponseSchema = external_exports.object({
|
|
73109
73111
|
reference: external_exports.string()
|
|
73110
73112
|
});
|
|
73111
|
-
var zeroReportErrorContract =
|
|
73113
|
+
var zeroReportErrorContract = c40.router({
|
|
73112
73114
|
submit: {
|
|
73113
73115
|
method: "POST",
|
|
73114
73116
|
path: "/api/zero/report-error",
|
|
@@ -73126,7 +73128,7 @@ var zeroReportErrorContract = c41.router({
|
|
|
73126
73128
|
|
|
73127
73129
|
// ../../packages/core/src/contracts/zero-computer-use.ts
|
|
73128
73130
|
init_esm_shims();
|
|
73129
|
-
var
|
|
73131
|
+
var c41 = initContract();
|
|
73130
73132
|
var registerResponseSchema = external_exports.object({
|
|
73131
73133
|
id: external_exports.string(),
|
|
73132
73134
|
domain: external_exports.string(),
|
|
@@ -73138,12 +73140,12 @@ var hostResponseSchema = external_exports.object({
|
|
|
73138
73140
|
domain: external_exports.string(),
|
|
73139
73141
|
token: external_exports.string()
|
|
73140
73142
|
});
|
|
73141
|
-
var zeroComputerUseRegisterContract =
|
|
73143
|
+
var zeroComputerUseRegisterContract = c41.router({
|
|
73142
73144
|
register: {
|
|
73143
73145
|
method: "POST",
|
|
73144
73146
|
path: "/api/zero/computer-use/register",
|
|
73145
73147
|
headers: authHeadersSchema,
|
|
73146
|
-
body:
|
|
73148
|
+
body: c41.noBody(),
|
|
73147
73149
|
responses: {
|
|
73148
73150
|
200: registerResponseSchema,
|
|
73149
73151
|
401: apiErrorSchema,
|
|
@@ -73153,14 +73155,14 @@ var zeroComputerUseRegisterContract = c42.router({
|
|
|
73153
73155
|
summary: "Register a computer-use host"
|
|
73154
73156
|
}
|
|
73155
73157
|
});
|
|
73156
|
-
var zeroComputerUseUnregisterContract =
|
|
73158
|
+
var zeroComputerUseUnregisterContract = c41.router({
|
|
73157
73159
|
unregister: {
|
|
73158
73160
|
method: "DELETE",
|
|
73159
73161
|
path: "/api/zero/computer-use/unregister",
|
|
73160
73162
|
headers: authHeadersSchema,
|
|
73161
|
-
body:
|
|
73163
|
+
body: c41.noBody(),
|
|
73162
73164
|
responses: {
|
|
73163
|
-
204:
|
|
73165
|
+
204: c41.noBody(),
|
|
73164
73166
|
401: apiErrorSchema,
|
|
73165
73167
|
403: apiErrorSchema,
|
|
73166
73168
|
404: apiErrorSchema
|
|
@@ -73168,7 +73170,7 @@ var zeroComputerUseUnregisterContract = c42.router({
|
|
|
73168
73170
|
summary: "Unregister a computer-use host"
|
|
73169
73171
|
}
|
|
73170
73172
|
});
|
|
73171
|
-
var zeroComputerUseHostContract =
|
|
73173
|
+
var zeroComputerUseHostContract = c41.router({
|
|
73172
73174
|
getHost: {
|
|
73173
73175
|
method: "GET",
|
|
73174
73176
|
path: "/api/zero/computer-use/host",
|
|
@@ -73185,7 +73187,7 @@ var zeroComputerUseHostContract = c42.router({
|
|
|
73185
73187
|
|
|
73186
73188
|
// ../../packages/core/src/contracts/zero-insights.ts
|
|
73187
73189
|
init_esm_shims();
|
|
73188
|
-
var
|
|
73190
|
+
var c42 = initContract();
|
|
73189
73191
|
var insightAgentSchema = external_exports.object({
|
|
73190
73192
|
agentName: external_exports.string(),
|
|
73191
73193
|
agentId: external_exports.string().nullable(),
|
|
@@ -73235,7 +73237,7 @@ var insightsRangeResponseSchema = external_exports.object({
|
|
|
73235
73237
|
maxDate: external_exports.string().nullable(),
|
|
73236
73238
|
totalDays: external_exports.number()
|
|
73237
73239
|
});
|
|
73238
|
-
var zeroInsightsContract =
|
|
73240
|
+
var zeroInsightsContract = c42.router({
|
|
73239
73241
|
get: {
|
|
73240
73242
|
method: "GET",
|
|
73241
73243
|
path: "/api/zero/insights",
|
|
@@ -73250,7 +73252,7 @@ var zeroInsightsContract = c43.router({
|
|
|
73250
73252
|
summary: "Get daily insights for the authenticated org"
|
|
73251
73253
|
}
|
|
73252
73254
|
});
|
|
73253
|
-
var zeroInsightsRangeContract =
|
|
73255
|
+
var zeroInsightsRangeContract = c42.router({
|
|
73254
73256
|
get: {
|
|
73255
73257
|
method: "GET",
|
|
73256
73258
|
path: "/api/zero/insights/range",
|
|
@@ -73265,8 +73267,8 @@ var zeroInsightsRangeContract = c43.router({
|
|
|
73265
73267
|
|
|
73266
73268
|
// ../../packages/core/src/contracts/push-subscriptions.ts
|
|
73267
73269
|
init_esm_shims();
|
|
73268
|
-
var
|
|
73269
|
-
var pushSubscriptionsContract =
|
|
73270
|
+
var c43 = initContract();
|
|
73271
|
+
var pushSubscriptionsContract = c43.router({
|
|
73270
73272
|
register: {
|
|
73271
73273
|
method: "POST",
|
|
73272
73274
|
path: "/api/zero/push-subscriptions",
|
|
@@ -73290,7 +73292,7 @@ var pushSubscriptionsContract = c44.router({
|
|
|
73290
73292
|
|
|
73291
73293
|
// ../../packages/core/src/contracts/zero-voice-chat-context.ts
|
|
73292
73294
|
init_esm_shims();
|
|
73293
|
-
var
|
|
73295
|
+
var c44 = initContract();
|
|
73294
73296
|
var contextEventSchema = external_exports.object({
|
|
73295
73297
|
seq: external_exports.number(),
|
|
73296
73298
|
source: external_exports.string(),
|
|
@@ -73306,7 +73308,7 @@ var appendContextEventBodySchema = external_exports.object({
|
|
|
73306
73308
|
type: external_exports.string(),
|
|
73307
73309
|
content: external_exports.string().optional()
|
|
73308
73310
|
});
|
|
73309
|
-
var zeroVoiceChatContextGetContract =
|
|
73311
|
+
var zeroVoiceChatContextGetContract = c44.router({
|
|
73310
73312
|
getEvents: {
|
|
73311
73313
|
method: "GET",
|
|
73312
73314
|
path: "/api/zero/voice-chat/:id/context",
|
|
@@ -73321,7 +73323,7 @@ var zeroVoiceChatContextGetContract = c45.router({
|
|
|
73321
73323
|
summary: "Get shared context events for a voice-chat session"
|
|
73322
73324
|
}
|
|
73323
73325
|
});
|
|
73324
|
-
var zeroVoiceChatContextAppendContract =
|
|
73326
|
+
var zeroVoiceChatContextAppendContract = c44.router({
|
|
73325
73327
|
appendEvent: {
|
|
73326
73328
|
method: "POST",
|
|
73327
73329
|
path: "/api/zero/voice-chat/:id/context",
|
|
@@ -74733,26 +74735,6 @@ async function searchZeroLogs(options) {
|
|
|
74733
74735
|
handleError(result, "Failed to search zero logs");
|
|
74734
74736
|
}
|
|
74735
74737
|
|
|
74736
|
-
// src/lib/api/domains/zero-ask-user.ts
|
|
74737
|
-
init_esm_shims();
|
|
74738
|
-
async function postAskUserQuestion(body) {
|
|
74739
|
-
const config2 = await getClientConfig();
|
|
74740
|
-
const client = initClient(zeroAskUserQuestionContract, config2);
|
|
74741
|
-
const result = await client.postQuestion({ body, headers: {} });
|
|
74742
|
-
if (result.status === 200) return result.body;
|
|
74743
|
-
handleError(result, "Failed to post question");
|
|
74744
|
-
}
|
|
74745
|
-
async function getAskUserAnswer(pendingId) {
|
|
74746
|
-
const config2 = await getClientConfig();
|
|
74747
|
-
const client = initClient(zeroAskUserAnswerContract, config2);
|
|
74748
|
-
const result = await client.getAnswer({
|
|
74749
|
-
query: { pendingId },
|
|
74750
|
-
headers: {}
|
|
74751
|
-
});
|
|
74752
|
-
if (result.status === 200) return result.body;
|
|
74753
|
-
handleError(result, "Failed to get answer");
|
|
74754
|
-
}
|
|
74755
|
-
|
|
74756
74738
|
// src/lib/api/domains/zero-computer-use.ts
|
|
74757
74739
|
init_esm_shims();
|
|
74758
74740
|
async function registerComputerUseHost() {
|
|
@@ -75585,7 +75567,7 @@ function parsePermissionPolicies(json2) {
|
|
|
75585
75567
|
} catch {
|
|
75586
75568
|
throw new Error(
|
|
75587
75569
|
`Invalid --permission-policies JSON: ${json2}
|
|
75588
|
-
Expected format: '{"ref": {"
|
|
75570
|
+
Expected format: '{"ref": {"permissions": {"perm": "allow|deny|ask"}}}'`
|
|
75589
75571
|
);
|
|
75590
75572
|
}
|
|
75591
75573
|
const result = firewallPoliciesSchema.safeParse(parsed);
|
|
@@ -75951,8 +75933,6 @@ export {
|
|
|
75951
75933
|
getAgentEvents,
|
|
75952
75934
|
getNetworkLogs,
|
|
75953
75935
|
searchLogs,
|
|
75954
|
-
postAskUserQuestion,
|
|
75955
|
-
getAskUserAnswer,
|
|
75956
75936
|
requestDeveloperSupportConsent,
|
|
75957
75937
|
submitDeveloperSupport,
|
|
75958
75938
|
registerComputerUseHost,
|
|
@@ -75994,4 +75974,4 @@ undici/lib/web/fetch/body.js:
|
|
|
75994
75974
|
undici/lib/web/websocket/frame.js:
|
|
75995
75975
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
75996
75976
|
*/
|
|
75997
|
-
//# sourceMappingURL=chunk-
|
|
75977
|
+
//# sourceMappingURL=chunk-EZQQVFEQ.js.map
|