@vibeframe/mcp-server 0.106.5 → 0.106.7
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/README.md +10 -2
- package/dist/index.js +370 -327
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -15101,7 +15101,7 @@ function errorMessage(error) {
|
|
|
15101
15101
|
return error instanceof Error ? error.message : "Unknown error";
|
|
15102
15102
|
}
|
|
15103
15103
|
function sleep(ms) {
|
|
15104
|
-
return new Promise((
|
|
15104
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
15105
15105
|
}
|
|
15106
15106
|
var ProviderHttpError;
|
|
15107
15107
|
var init_http = __esm({
|
|
@@ -19495,7 +19495,7 @@ var init_RunwayProvider = __esm({
|
|
|
19495
19495
|
* Sleep helper
|
|
19496
19496
|
*/
|
|
19497
19497
|
sleep(ms) {
|
|
19498
|
-
return new Promise((
|
|
19498
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
19499
19499
|
}
|
|
19500
19500
|
};
|
|
19501
19501
|
RunwayProvider.API_VERSION = "2024-11-06";
|
|
@@ -19936,7 +19936,7 @@ var init_KlingProvider = __esm({
|
|
|
19936
19936
|
* Sleep helper
|
|
19937
19937
|
*/
|
|
19938
19938
|
sleep(ms) {
|
|
19939
|
-
return new Promise((
|
|
19939
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
19940
19940
|
}
|
|
19941
19941
|
};
|
|
19942
19942
|
klingProvider = new KlingProvider();
|
|
@@ -20254,7 +20254,7 @@ var init_GrokProvider = __esm({
|
|
|
20254
20254
|
}
|
|
20255
20255
|
}
|
|
20256
20256
|
sleep(ms) {
|
|
20257
|
-
return new Promise((
|
|
20257
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
20258
20258
|
}
|
|
20259
20259
|
};
|
|
20260
20260
|
grokProvider = new GrokProvider();
|
|
@@ -20289,11 +20289,11 @@ var require_middleware = __commonJS({
|
|
|
20289
20289
|
"use strict";
|
|
20290
20290
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20291
20291
|
function adopt(value) {
|
|
20292
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20293
|
-
|
|
20292
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20293
|
+
resolve79(value);
|
|
20294
20294
|
});
|
|
20295
20295
|
}
|
|
20296
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20296
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20297
20297
|
function fulfilled(value) {
|
|
20298
20298
|
try {
|
|
20299
20299
|
step(generator.next(value));
|
|
@@ -20309,7 +20309,7 @@ var require_middleware = __commonJS({
|
|
|
20309
20309
|
}
|
|
20310
20310
|
}
|
|
20311
20311
|
function step(result) {
|
|
20312
|
-
result.done ?
|
|
20312
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
20313
20313
|
}
|
|
20314
20314
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20315
20315
|
});
|
|
@@ -20394,11 +20394,11 @@ var require_response = __commonJS({
|
|
|
20394
20394
|
"use strict";
|
|
20395
20395
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20396
20396
|
function adopt(value) {
|
|
20397
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20398
|
-
|
|
20397
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20398
|
+
resolve79(value);
|
|
20399
20399
|
});
|
|
20400
20400
|
}
|
|
20401
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20401
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20402
20402
|
function fulfilled(value) {
|
|
20403
20403
|
try {
|
|
20404
20404
|
step(generator.next(value));
|
|
@@ -20414,7 +20414,7 @@ var require_response = __commonJS({
|
|
|
20414
20414
|
}
|
|
20415
20415
|
}
|
|
20416
20416
|
function step(result) {
|
|
20417
|
-
result.done ?
|
|
20417
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
20418
20418
|
}
|
|
20419
20419
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20420
20420
|
});
|
|
@@ -20521,11 +20521,11 @@ var require_utils = __commonJS({
|
|
|
20521
20521
|
"use strict";
|
|
20522
20522
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20523
20523
|
function adopt(value) {
|
|
20524
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20525
|
-
|
|
20524
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20525
|
+
resolve79(value);
|
|
20526
20526
|
});
|
|
20527
20527
|
}
|
|
20528
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20528
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20529
20529
|
function fulfilled(value) {
|
|
20530
20530
|
try {
|
|
20531
20531
|
step(generator.next(value));
|
|
@@ -20541,7 +20541,7 @@ var require_utils = __commonJS({
|
|
|
20541
20541
|
}
|
|
20542
20542
|
}
|
|
20543
20543
|
function step(result) {
|
|
20544
|
-
result.done ?
|
|
20544
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
20545
20545
|
}
|
|
20546
20546
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20547
20547
|
});
|
|
@@ -20634,7 +20634,7 @@ var require_utils = __commonJS({
|
|
|
20634
20634
|
}
|
|
20635
20635
|
function sleep6(ms) {
|
|
20636
20636
|
return __awaiter4(this, void 0, void 0, function* () {
|
|
20637
|
-
return new Promise((
|
|
20637
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
20638
20638
|
});
|
|
20639
20639
|
}
|
|
20640
20640
|
}
|
|
@@ -20646,11 +20646,11 @@ var require_retry = __commonJS({
|
|
|
20646
20646
|
"use strict";
|
|
20647
20647
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20648
20648
|
function adopt(value) {
|
|
20649
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20650
|
-
|
|
20649
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20650
|
+
resolve79(value);
|
|
20651
20651
|
});
|
|
20652
20652
|
}
|
|
20653
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20653
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20654
20654
|
function fulfilled(value) {
|
|
20655
20655
|
try {
|
|
20656
20656
|
step(generator.next(value));
|
|
@@ -20666,7 +20666,7 @@ var require_retry = __commonJS({
|
|
|
20666
20666
|
}
|
|
20667
20667
|
}
|
|
20668
20668
|
function step(result) {
|
|
20669
|
-
result.done ?
|
|
20669
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
20670
20670
|
}
|
|
20671
20671
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20672
20672
|
});
|
|
@@ -20873,11 +20873,11 @@ var require_request = __commonJS({
|
|
|
20873
20873
|
"use strict";
|
|
20874
20874
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20875
20875
|
function adopt(value) {
|
|
20876
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20877
|
-
|
|
20876
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20877
|
+
resolve79(value);
|
|
20878
20878
|
});
|
|
20879
20879
|
}
|
|
20880
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20880
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20881
20881
|
function fulfilled(value) {
|
|
20882
20882
|
try {
|
|
20883
20883
|
step(generator.next(value));
|
|
@@ -20893,7 +20893,7 @@ var require_request = __commonJS({
|
|
|
20893
20893
|
}
|
|
20894
20894
|
}
|
|
20895
20895
|
function step(result) {
|
|
20896
|
-
result.done ?
|
|
20896
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
20897
20897
|
}
|
|
20898
20898
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20899
20899
|
});
|
|
@@ -20980,11 +20980,11 @@ var require_storage = __commonJS({
|
|
|
20980
20980
|
"use strict";
|
|
20981
20981
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
20982
20982
|
function adopt(value) {
|
|
20983
|
-
return value instanceof P2 ? value : new P2(function(
|
|
20984
|
-
|
|
20983
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
20984
|
+
resolve79(value);
|
|
20985
20985
|
});
|
|
20986
20986
|
}
|
|
20987
|
-
return new (P2 || (P2 = Promise))(function(
|
|
20987
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
20988
20988
|
function fulfilled(value) {
|
|
20989
20989
|
try {
|
|
20990
20990
|
step(generator.next(value));
|
|
@@ -21000,7 +21000,7 @@ var require_storage = __commonJS({
|
|
|
21000
21000
|
}
|
|
21001
21001
|
}
|
|
21002
21002
|
function step(result) {
|
|
21003
|
-
result.done ?
|
|
21003
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
21004
21004
|
}
|
|
21005
21005
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21006
21006
|
});
|
|
@@ -21328,11 +21328,11 @@ var require_auth = __commonJS({
|
|
|
21328
21328
|
"use strict";
|
|
21329
21329
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
21330
21330
|
function adopt(value) {
|
|
21331
|
-
return value instanceof P2 ? value : new P2(function(
|
|
21332
|
-
|
|
21331
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
21332
|
+
resolve79(value);
|
|
21333
21333
|
});
|
|
21334
21334
|
}
|
|
21335
|
-
return new (P2 || (P2 = Promise))(function(
|
|
21335
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
21336
21336
|
function fulfilled(value) {
|
|
21337
21337
|
try {
|
|
21338
21338
|
step(generator.next(value));
|
|
@@ -21348,7 +21348,7 @@ var require_auth = __commonJS({
|
|
|
21348
21348
|
}
|
|
21349
21349
|
}
|
|
21350
21350
|
function step(result) {
|
|
21351
|
-
result.done ?
|
|
21351
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
21352
21352
|
}
|
|
21353
21353
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21354
21354
|
});
|
|
@@ -21387,11 +21387,11 @@ var require_streaming = __commonJS({
|
|
|
21387
21387
|
"use strict";
|
|
21388
21388
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
21389
21389
|
function adopt(value) {
|
|
21390
|
-
return value instanceof P2 ? value : new P2(function(
|
|
21391
|
-
|
|
21390
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
21391
|
+
resolve79(value);
|
|
21392
21392
|
});
|
|
21393
21393
|
}
|
|
21394
|
-
return new (P2 || (P2 = Promise))(function(
|
|
21394
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
21395
21395
|
function fulfilled(value) {
|
|
21396
21396
|
try {
|
|
21397
21397
|
step(generator.next(value));
|
|
@@ -21407,7 +21407,7 @@ var require_streaming = __commonJS({
|
|
|
21407
21407
|
}
|
|
21408
21408
|
}
|
|
21409
21409
|
function step(result) {
|
|
21410
|
-
result.done ?
|
|
21410
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
21411
21411
|
}
|
|
21412
21412
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21413
21413
|
});
|
|
@@ -21640,7 +21640,7 @@ var require_streaming = __commonJS({
|
|
|
21640
21640
|
query: options.queryParams
|
|
21641
21641
|
});
|
|
21642
21642
|
this.options = options;
|
|
21643
|
-
this.donePromise = new Promise((
|
|
21643
|
+
this.donePromise = new Promise((resolve79, reject) => {
|
|
21644
21644
|
if (this.streamClosed) {
|
|
21645
21645
|
reject(new response_1.ApiError({
|
|
21646
21646
|
message: "Streaming connection is already closed.",
|
|
@@ -21651,11 +21651,11 @@ var require_streaming = __commonJS({
|
|
|
21651
21651
|
}
|
|
21652
21652
|
this.signal.addEventListener("abort", () => {
|
|
21653
21653
|
var _a10;
|
|
21654
|
-
|
|
21654
|
+
resolve79((_a10 = this.currentData) !== null && _a10 !== void 0 ? _a10 : {});
|
|
21655
21655
|
});
|
|
21656
21656
|
this.on("done", (data) => {
|
|
21657
21657
|
this.streamClosed = true;
|
|
21658
|
-
|
|
21658
|
+
resolve79(data);
|
|
21659
21659
|
});
|
|
21660
21660
|
this.on("error", (error) => {
|
|
21661
21661
|
this.streamClosed = true;
|
|
@@ -21680,7 +21680,7 @@ var require_streaming = __commonJS({
|
|
|
21680
21680
|
if (data) {
|
|
21681
21681
|
yield yield __await5(data);
|
|
21682
21682
|
}
|
|
21683
|
-
yield __await5(new Promise((
|
|
21683
|
+
yield __await5(new Promise((resolve79) => setTimeout(resolve79, 16)));
|
|
21684
21684
|
}
|
|
21685
21685
|
});
|
|
21686
21686
|
}
|
|
@@ -21725,11 +21725,11 @@ var require_queue = __commonJS({
|
|
|
21725
21725
|
"use strict";
|
|
21726
21726
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
21727
21727
|
function adopt(value) {
|
|
21728
|
-
return value instanceof P2 ? value : new P2(function(
|
|
21729
|
-
|
|
21728
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
21729
|
+
resolve79(value);
|
|
21730
21730
|
});
|
|
21731
21731
|
}
|
|
21732
|
-
return new (P2 || (P2 = Promise))(function(
|
|
21732
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
21733
21733
|
function fulfilled(value) {
|
|
21734
21734
|
try {
|
|
21735
21735
|
step(generator.next(value));
|
|
@@ -21745,7 +21745,7 @@ var require_queue = __commonJS({
|
|
|
21745
21745
|
}
|
|
21746
21746
|
}
|
|
21747
21747
|
function step(result) {
|
|
21748
|
-
result.done ?
|
|
21748
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
21749
21749
|
}
|
|
21750
21750
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21751
21751
|
});
|
|
@@ -21880,7 +21880,7 @@ var require_queue = __commonJS({
|
|
|
21880
21880
|
}
|
|
21881
21881
|
return doneStatus;
|
|
21882
21882
|
}
|
|
21883
|
-
return new Promise((
|
|
21883
|
+
return new Promise((resolve79, reject) => {
|
|
21884
21884
|
var _a9;
|
|
21885
21885
|
let pollingTimeoutId;
|
|
21886
21886
|
const pollInterval = "pollInterval" in options && typeof options.pollInterval === "number" ? (_a9 = options.pollInterval) !== null && _a9 !== void 0 ? _a9 : DEFAULT_POLL_INTERVAL : DEFAULT_POLL_INTERVAL;
|
|
@@ -21912,7 +21912,7 @@ var require_queue = __commonJS({
|
|
|
21912
21912
|
}
|
|
21913
21913
|
if (requestStatus.status === "COMPLETED") {
|
|
21914
21914
|
clearScheduledTasks();
|
|
21915
|
-
|
|
21915
|
+
resolve79(requestStatus);
|
|
21916
21916
|
return;
|
|
21917
21917
|
}
|
|
21918
21918
|
pollingTimeoutId = setTimeout(poll, pollInterval);
|
|
@@ -23873,11 +23873,11 @@ var require_realtime = __commonJS({
|
|
|
23873
23873
|
"use strict";
|
|
23874
23874
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
23875
23875
|
function adopt(value) {
|
|
23876
|
-
return value instanceof P2 ? value : new P2(function(
|
|
23877
|
-
|
|
23876
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
23877
|
+
resolve79(value);
|
|
23878
23878
|
});
|
|
23879
23879
|
}
|
|
23880
|
-
return new (P2 || (P2 = Promise))(function(
|
|
23880
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
23881
23881
|
function fulfilled(value) {
|
|
23882
23882
|
try {
|
|
23883
23883
|
step(generator.next(value));
|
|
@@ -23893,7 +23893,7 @@ var require_realtime = __commonJS({
|
|
|
23893
23893
|
}
|
|
23894
23894
|
}
|
|
23895
23895
|
function step(result) {
|
|
23896
|
-
result.done ?
|
|
23896
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
23897
23897
|
}
|
|
23898
23898
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23899
23899
|
});
|
|
@@ -24218,11 +24218,11 @@ var require_client = __commonJS({
|
|
|
24218
24218
|
"use strict";
|
|
24219
24219
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
24220
24220
|
function adopt(value) {
|
|
24221
|
-
return value instanceof P2 ? value : new P2(function(
|
|
24222
|
-
|
|
24221
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
24222
|
+
resolve79(value);
|
|
24223
24223
|
});
|
|
24224
24224
|
}
|
|
24225
|
-
return new (P2 || (P2 = Promise))(function(
|
|
24225
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
24226
24226
|
function fulfilled(value) {
|
|
24227
24227
|
try {
|
|
24228
24228
|
step(generator.next(value));
|
|
@@ -24238,7 +24238,7 @@ var require_client = __commonJS({
|
|
|
24238
24238
|
}
|
|
24239
24239
|
}
|
|
24240
24240
|
function step(result) {
|
|
24241
|
-
result.done ?
|
|
24241
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24242
24242
|
}
|
|
24243
24243
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24244
24244
|
});
|
|
@@ -24923,7 +24923,7 @@ var init_ReplicateProvider = __esm({
|
|
|
24923
24923
|
* Sleep helper
|
|
24924
24924
|
*/
|
|
24925
24925
|
sleep(ms) {
|
|
24926
|
-
return new Promise((
|
|
24926
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
24927
24927
|
}
|
|
24928
24928
|
/**
|
|
24929
24929
|
* Generate music from text prompt using MusicGen
|
|
@@ -26100,7 +26100,7 @@ async function prompt(question, hidden = false) {
|
|
|
26100
26100
|
input: process.stdin,
|
|
26101
26101
|
output: process.stdout
|
|
26102
26102
|
});
|
|
26103
|
-
return new Promise((
|
|
26103
|
+
return new Promise((resolve79) => {
|
|
26104
26104
|
if (hidden && process.stdin.isTTY) {
|
|
26105
26105
|
process.stdout.write(question);
|
|
26106
26106
|
let input3 = "";
|
|
@@ -26114,7 +26114,7 @@ async function prompt(question, hidden = false) {
|
|
|
26114
26114
|
process.stdin.removeListener("data", onData);
|
|
26115
26115
|
process.stdout.write("\n");
|
|
26116
26116
|
rl.close();
|
|
26117
|
-
|
|
26117
|
+
resolve79(input3);
|
|
26118
26118
|
} else if (char === "") {
|
|
26119
26119
|
process.exit(1);
|
|
26120
26120
|
} else if (char === "\x7F" || char === "\b") {
|
|
@@ -26129,7 +26129,7 @@ async function prompt(question, hidden = false) {
|
|
|
26129
26129
|
} else {
|
|
26130
26130
|
rl.question(question, (answer) => {
|
|
26131
26131
|
rl.close();
|
|
26132
|
-
|
|
26132
|
+
resolve79(answer);
|
|
26133
26133
|
});
|
|
26134
26134
|
}
|
|
26135
26135
|
});
|
|
@@ -27298,7 +27298,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27298
27298
|
let latestResultPromise;
|
|
27299
27299
|
let provideLatestResult;
|
|
27300
27300
|
if (isContext)
|
|
27301
|
-
requestCallbacks["on-end"] = (id, request22) => new Promise((
|
|
27301
|
+
requestCallbacks["on-end"] = (id, request22) => new Promise((resolve79) => {
|
|
27302
27302
|
buildResponseToResult(request22, (err, result, onEndErrors, onEndWarnings) => {
|
|
27303
27303
|
const response = {
|
|
27304
27304
|
errors: onEndErrors,
|
|
@@ -27308,7 +27308,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27308
27308
|
latestResultPromise = void 0;
|
|
27309
27309
|
provideLatestResult = void 0;
|
|
27310
27310
|
sendResponse(id, response);
|
|
27311
|
-
|
|
27311
|
+
resolve79();
|
|
27312
27312
|
});
|
|
27313
27313
|
});
|
|
27314
27314
|
sendRequest(refs3, request5, (error, response) => {
|
|
@@ -27325,10 +27325,10 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27325
27325
|
let didDispose = false;
|
|
27326
27326
|
const result = {
|
|
27327
27327
|
rebuild: () => {
|
|
27328
|
-
if (!latestResultPromise) latestResultPromise = new Promise((
|
|
27328
|
+
if (!latestResultPromise) latestResultPromise = new Promise((resolve79, reject) => {
|
|
27329
27329
|
let settlePromise;
|
|
27330
27330
|
provideLatestResult = (err, result2) => {
|
|
27331
|
-
if (!settlePromise) settlePromise = () => err ? reject(err) :
|
|
27331
|
+
if (!settlePromise) settlePromise = () => err ? reject(err) : resolve79(result2);
|
|
27332
27332
|
};
|
|
27333
27333
|
const triggerAnotherBuild = () => {
|
|
27334
27334
|
const request22 = {
|
|
@@ -27349,7 +27349,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27349
27349
|
});
|
|
27350
27350
|
return latestResultPromise;
|
|
27351
27351
|
},
|
|
27352
|
-
watch: (options2 = {}) => new Promise((
|
|
27352
|
+
watch: (options2 = {}) => new Promise((resolve79, reject) => {
|
|
27353
27353
|
if (!streamIn.hasFS) throw new Error(`Cannot use the "watch" API in this environment`);
|
|
27354
27354
|
const keys2 = {};
|
|
27355
27355
|
checkForInvalidFlags(options2, keys2, `in watch() call`);
|
|
@@ -27359,10 +27359,10 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27359
27359
|
};
|
|
27360
27360
|
sendRequest(refs3, request22, (error2) => {
|
|
27361
27361
|
if (error2) reject(new Error(error2));
|
|
27362
|
-
else
|
|
27362
|
+
else resolve79(void 0);
|
|
27363
27363
|
});
|
|
27364
27364
|
}),
|
|
27365
|
-
serve: (options2 = {}) => new Promise((
|
|
27365
|
+
serve: (options2 = {}) => new Promise((resolve79, reject) => {
|
|
27366
27366
|
if (!streamIn.hasFS) throw new Error(`Cannot use the "serve" API in this environment`);
|
|
27367
27367
|
const keys2 = {};
|
|
27368
27368
|
const port = getFlag3(options2, keys2, "port", mustBeInteger);
|
|
@@ -27392,28 +27392,28 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27392
27392
|
sendResponse(id, {});
|
|
27393
27393
|
};
|
|
27394
27394
|
}
|
|
27395
|
-
|
|
27395
|
+
resolve79(response2);
|
|
27396
27396
|
});
|
|
27397
27397
|
}),
|
|
27398
|
-
cancel: () => new Promise((
|
|
27399
|
-
if (didDispose) return
|
|
27398
|
+
cancel: () => new Promise((resolve79) => {
|
|
27399
|
+
if (didDispose) return resolve79();
|
|
27400
27400
|
const request22 = {
|
|
27401
27401
|
command: "cancel",
|
|
27402
27402
|
key: buildKey
|
|
27403
27403
|
};
|
|
27404
27404
|
sendRequest(refs3, request22, () => {
|
|
27405
|
-
|
|
27405
|
+
resolve79();
|
|
27406
27406
|
});
|
|
27407
27407
|
}),
|
|
27408
|
-
dispose: () => new Promise((
|
|
27409
|
-
if (didDispose) return
|
|
27408
|
+
dispose: () => new Promise((resolve79) => {
|
|
27409
|
+
if (didDispose) return resolve79();
|
|
27410
27410
|
didDispose = true;
|
|
27411
27411
|
const request22 = {
|
|
27412
27412
|
command: "dispose",
|
|
27413
27413
|
key: buildKey
|
|
27414
27414
|
};
|
|
27415
27415
|
sendRequest(refs3, request22, () => {
|
|
27416
|
-
|
|
27416
|
+
resolve79();
|
|
27417
27417
|
scheduleOnDisposeCallbacks();
|
|
27418
27418
|
refs3.unref();
|
|
27419
27419
|
});
|
|
@@ -27452,7 +27452,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27452
27452
|
onLoad: []
|
|
27453
27453
|
};
|
|
27454
27454
|
i2++;
|
|
27455
|
-
let
|
|
27455
|
+
let resolve79 = (path33, options = {}) => {
|
|
27456
27456
|
if (!isSetupDone) throw new Error('Cannot call "resolve" before plugin setup has completed');
|
|
27457
27457
|
if (typeof path33 !== "string") throw new Error(`The path to resolve must be a string`);
|
|
27458
27458
|
let keys22 = /* @__PURE__ */ Object.create(null);
|
|
@@ -27496,7 +27496,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
27496
27496
|
};
|
|
27497
27497
|
let promise = setup({
|
|
27498
27498
|
initialOptions,
|
|
27499
|
-
resolve:
|
|
27499
|
+
resolve: resolve79,
|
|
27500
27500
|
onStart(callback) {
|
|
27501
27501
|
let registeredText = `This error came from the "onStart" callback registered here:`;
|
|
27502
27502
|
let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onStart");
|
|
@@ -28368,46 +28368,46 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
28368
28368
|
}
|
|
28369
28369
|
};
|
|
28370
28370
|
longLivedService = {
|
|
28371
|
-
build: (options) => new Promise((
|
|
28371
|
+
build: (options) => new Promise((resolve79, reject) => {
|
|
28372
28372
|
service.buildOrContext({
|
|
28373
28373
|
callName: "build",
|
|
28374
28374
|
refs: refs3,
|
|
28375
28375
|
options,
|
|
28376
28376
|
isTTY: isTTY(),
|
|
28377
28377
|
defaultWD,
|
|
28378
|
-
callback: (err, res) => err ? reject(err) :
|
|
28378
|
+
callback: (err, res) => err ? reject(err) : resolve79(res)
|
|
28379
28379
|
});
|
|
28380
28380
|
}),
|
|
28381
|
-
context: (options) => new Promise((
|
|
28381
|
+
context: (options) => new Promise((resolve79, reject) => service.buildOrContext({
|
|
28382
28382
|
callName: "context",
|
|
28383
28383
|
refs: refs3,
|
|
28384
28384
|
options,
|
|
28385
28385
|
isTTY: isTTY(),
|
|
28386
28386
|
defaultWD,
|
|
28387
|
-
callback: (err, res) => err ? reject(err) :
|
|
28387
|
+
callback: (err, res) => err ? reject(err) : resolve79(res)
|
|
28388
28388
|
})),
|
|
28389
|
-
transform: (input3, options) => new Promise((
|
|
28389
|
+
transform: (input3, options) => new Promise((resolve79, reject) => service.transform({
|
|
28390
28390
|
callName: "transform",
|
|
28391
28391
|
refs: refs3,
|
|
28392
28392
|
input: input3,
|
|
28393
28393
|
options: options || {},
|
|
28394
28394
|
isTTY: isTTY(),
|
|
28395
28395
|
fs: fsAsync,
|
|
28396
|
-
callback: (err, res) => err ? reject(err) :
|
|
28396
|
+
callback: (err, res) => err ? reject(err) : resolve79(res)
|
|
28397
28397
|
})),
|
|
28398
|
-
formatMessages: (messages, options) => new Promise((
|
|
28398
|
+
formatMessages: (messages, options) => new Promise((resolve79, reject) => service.formatMessages({
|
|
28399
28399
|
callName: "formatMessages",
|
|
28400
28400
|
refs: refs3,
|
|
28401
28401
|
messages,
|
|
28402
28402
|
options,
|
|
28403
|
-
callback: (err, res) => err ? reject(err) :
|
|
28403
|
+
callback: (err, res) => err ? reject(err) : resolve79(res)
|
|
28404
28404
|
})),
|
|
28405
|
-
analyzeMetafile: (metafile, options) => new Promise((
|
|
28405
|
+
analyzeMetafile: (metafile, options) => new Promise((resolve79, reject) => service.analyzeMetafile({
|
|
28406
28406
|
callName: "analyzeMetafile",
|
|
28407
28407
|
refs: refs3,
|
|
28408
28408
|
metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
|
|
28409
28409
|
options,
|
|
28410
|
-
callback: (err, res) => err ? reject(err) :
|
|
28410
|
+
callback: (err, res) => err ? reject(err) : resolve79(res)
|
|
28411
28411
|
}))
|
|
28412
28412
|
};
|
|
28413
28413
|
return longLivedService;
|
|
@@ -28485,13 +28485,13 @@ error: ${text}`);
|
|
|
28485
28485
|
worker.postMessage(msg);
|
|
28486
28486
|
let status = Atomics.wait(sharedBufferView, 0, 0);
|
|
28487
28487
|
if (status !== "ok" && status !== "not-equal") throw new Error("Internal error: Atomics.wait() failed: " + status);
|
|
28488
|
-
let { message: { id: id2, resolve:
|
|
28488
|
+
let { message: { id: id2, resolve: resolve79, reject, properties } } = worker_threads2.receiveMessageOnPort(mainPort);
|
|
28489
28489
|
if (id !== id2) throw new Error(`Internal error: Expected id ${id} but got id ${id2}`);
|
|
28490
28490
|
if (reject) {
|
|
28491
28491
|
applyProperties(reject, properties);
|
|
28492
28492
|
throw reject;
|
|
28493
28493
|
}
|
|
28494
|
-
return
|
|
28494
|
+
return resolve79;
|
|
28495
28495
|
};
|
|
28496
28496
|
worker.unref();
|
|
28497
28497
|
return {
|
|
@@ -30408,7 +30408,7 @@ var require_util = __commonJS({
|
|
|
30408
30408
|
}
|
|
30409
30409
|
path14 = url.path;
|
|
30410
30410
|
}
|
|
30411
|
-
var
|
|
30411
|
+
var isAbsolute10 = exports.isAbsolute(path14);
|
|
30412
30412
|
var parts = [];
|
|
30413
30413
|
var start = 0;
|
|
30414
30414
|
var i2 = 0;
|
|
@@ -30443,7 +30443,7 @@ var require_util = __commonJS({
|
|
|
30443
30443
|
}
|
|
30444
30444
|
path14 = parts.join("/");
|
|
30445
30445
|
if (path14 === "") {
|
|
30446
|
-
path14 =
|
|
30446
|
+
path14 = isAbsolute10 ? "/" : ".";
|
|
30447
30447
|
}
|
|
30448
30448
|
if (url) {
|
|
30449
30449
|
url.path = path14;
|
|
@@ -32259,7 +32259,7 @@ var require_input = __commonJS({
|
|
|
32259
32259
|
"../../node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/input.js"(exports, module) {
|
|
32260
32260
|
"use strict";
|
|
32261
32261
|
var { nanoid } = require_non_secure();
|
|
32262
|
-
var { isAbsolute:
|
|
32262
|
+
var { isAbsolute: isAbsolute10, resolve: resolve79 } = __require("path");
|
|
32263
32263
|
var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
|
|
32264
32264
|
var { fileURLToPath: fileURLToPath5, pathToFileURL } = __require("url");
|
|
32265
32265
|
var CssSyntaxError2 = require_css_syntax_error();
|
|
@@ -32267,7 +32267,7 @@ var require_input = __commonJS({
|
|
|
32267
32267
|
var terminalHighlight = require_terminal_highlight();
|
|
32268
32268
|
var lineToIndexCache = /* @__PURE__ */ Symbol("lineToIndexCache");
|
|
32269
32269
|
var sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
32270
|
-
var pathAvailable = Boolean(
|
|
32270
|
+
var pathAvailable = Boolean(resolve79 && isAbsolute10);
|
|
32271
32271
|
function getLineToIndex(input3) {
|
|
32272
32272
|
if (input3[lineToIndexCache]) return input3[lineToIndexCache];
|
|
32273
32273
|
let lines = input3.css.split("\n");
|
|
@@ -32298,10 +32298,10 @@ var require_input = __commonJS({
|
|
|
32298
32298
|
this.document = this.css;
|
|
32299
32299
|
if (opts.document) this.document = opts.document.toString();
|
|
32300
32300
|
if (opts.from) {
|
|
32301
|
-
if (!pathAvailable || /^\w+:\/\//.test(opts.from) ||
|
|
32301
|
+
if (!pathAvailable || /^\w+:\/\//.test(opts.from) || isAbsolute10(opts.from)) {
|
|
32302
32302
|
this.file = opts.from;
|
|
32303
32303
|
} else {
|
|
32304
|
-
this.file =
|
|
32304
|
+
this.file = resolve79(opts.from);
|
|
32305
32305
|
}
|
|
32306
32306
|
}
|
|
32307
32307
|
if (pathAvailable && sourceMapAvailable) {
|
|
@@ -32414,7 +32414,7 @@ var require_input = __commonJS({
|
|
|
32414
32414
|
if (/^\w+:\/\//.test(file)) {
|
|
32415
32415
|
return file;
|
|
32416
32416
|
}
|
|
32417
|
-
return
|
|
32417
|
+
return resolve79(this.map.consumer().sourceRoot || this.map.root || ".", file);
|
|
32418
32418
|
}
|
|
32419
32419
|
origin(line, column, endLine, endColumn) {
|
|
32420
32420
|
if (!this.map) return false;
|
|
@@ -32426,7 +32426,7 @@ var require_input = __commonJS({
|
|
|
32426
32426
|
to = consumer.originalPositionFor({ column: endColumn, line: endLine });
|
|
32427
32427
|
}
|
|
32428
32428
|
let fromUrl;
|
|
32429
|
-
if (
|
|
32429
|
+
if (isAbsolute10(from3.source)) {
|
|
32430
32430
|
fromUrl = pathToFileURL(from3.source);
|
|
32431
32431
|
} else {
|
|
32432
32432
|
fromUrl = new URL(
|
|
@@ -32673,12 +32673,12 @@ var require_fromJSON = __commonJS({
|
|
|
32673
32673
|
var require_map_generator = __commonJS({
|
|
32674
32674
|
"../../node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/map-generator.js"(exports, module) {
|
|
32675
32675
|
"use strict";
|
|
32676
|
-
var { dirname: dirname35, relative: relative15, resolve:
|
|
32676
|
+
var { dirname: dirname35, relative: relative15, resolve: resolve79, sep: sep2 } = __require("path");
|
|
32677
32677
|
var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
|
|
32678
32678
|
var { pathToFileURL } = __require("url");
|
|
32679
32679
|
var Input2 = require_input();
|
|
32680
32680
|
var sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
32681
|
-
var pathAvailable = Boolean(dirname35 &&
|
|
32681
|
+
var pathAvailable = Boolean(dirname35 && resolve79 && relative15 && sep2);
|
|
32682
32682
|
var MapGenerator = class {
|
|
32683
32683
|
constructor(stringify6, root2, opts, cssString) {
|
|
32684
32684
|
this.stringify = stringify6;
|
|
@@ -32899,7 +32899,7 @@ var require_map_generator = __commonJS({
|
|
|
32899
32899
|
if (cached) return cached;
|
|
32900
32900
|
let from3 = this.opts.to ? dirname35(this.opts.to) : ".";
|
|
32901
32901
|
if (typeof this.mapOpts.annotation === "string") {
|
|
32902
|
-
from3 = dirname35(
|
|
32902
|
+
from3 = dirname35(resolve79(from3, this.mapOpts.annotation));
|
|
32903
32903
|
}
|
|
32904
32904
|
let path14 = relative15(from3, file);
|
|
32905
32905
|
this.memoizedPaths.set(file, path14);
|
|
@@ -34425,11 +34425,11 @@ function __extends(d2, b2) {
|
|
|
34425
34425
|
}
|
|
34426
34426
|
function __awaiter(thisArg, _arguments, P2, generator) {
|
|
34427
34427
|
function adopt(value) {
|
|
34428
|
-
return value instanceof P2 ? value : new P2(function(
|
|
34429
|
-
|
|
34428
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
34429
|
+
resolve79(value);
|
|
34430
34430
|
});
|
|
34431
34431
|
}
|
|
34432
|
-
return new (P2 || (P2 = Promise))(function(
|
|
34432
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
34433
34433
|
function fulfilled(value) {
|
|
34434
34434
|
try {
|
|
34435
34435
|
step(generator.next(value));
|
|
@@ -34445,7 +34445,7 @@ function __awaiter(thisArg, _arguments, P2, generator) {
|
|
|
34445
34445
|
}
|
|
34446
34446
|
}
|
|
34447
34447
|
function step(result) {
|
|
34448
|
-
result.done ?
|
|
34448
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
34449
34449
|
}
|
|
34450
34450
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34451
34451
|
});
|
|
@@ -34608,14 +34608,14 @@ function __asyncValues(o2) {
|
|
|
34608
34608
|
}, i2);
|
|
34609
34609
|
function verb(n2) {
|
|
34610
34610
|
i2[n2] = o2[n2] && function(v2) {
|
|
34611
|
-
return new Promise(function(
|
|
34612
|
-
v2 = o2[n2](v2), settle(
|
|
34611
|
+
return new Promise(function(resolve79, reject) {
|
|
34612
|
+
v2 = o2[n2](v2), settle(resolve79, reject, v2.done, v2.value);
|
|
34613
34613
|
});
|
|
34614
34614
|
};
|
|
34615
34615
|
}
|
|
34616
|
-
function settle(
|
|
34616
|
+
function settle(resolve79, reject, d2, v2) {
|
|
34617
34617
|
Promise.resolve(v2).then(function(v22) {
|
|
34618
|
-
|
|
34618
|
+
resolve79({ value: v22, done: d2 });
|
|
34619
34619
|
}, reject);
|
|
34620
34620
|
}
|
|
34621
34621
|
}
|
|
@@ -35140,7 +35140,7 @@ function of() {
|
|
|
35140
35140
|
}
|
|
35141
35141
|
function lastValueFrom(source3, config22) {
|
|
35142
35142
|
var hasConfig = typeof config22 === "object";
|
|
35143
|
-
return new Promise(function(
|
|
35143
|
+
return new Promise(function(resolve79, reject) {
|
|
35144
35144
|
var _hasValue = false;
|
|
35145
35145
|
var _value;
|
|
35146
35146
|
source3.subscribe({
|
|
@@ -35151,9 +35151,9 @@ function lastValueFrom(source3, config22) {
|
|
|
35151
35151
|
error: reject,
|
|
35152
35152
|
complete: function() {
|
|
35153
35153
|
if (_hasValue) {
|
|
35154
|
-
|
|
35154
|
+
resolve79(_value);
|
|
35155
35155
|
} else if (hasConfig) {
|
|
35156
|
-
|
|
35156
|
+
resolve79(config22.defaultValue);
|
|
35157
35157
|
} else {
|
|
35158
35158
|
reject(new EmptyError());
|
|
35159
35159
|
}
|
|
@@ -35163,16 +35163,16 @@ function lastValueFrom(source3, config22) {
|
|
|
35163
35163
|
}
|
|
35164
35164
|
function firstValueFrom(source3, config22) {
|
|
35165
35165
|
var hasConfig = typeof config22 === "object";
|
|
35166
|
-
return new Promise(function(
|
|
35166
|
+
return new Promise(function(resolve79, reject) {
|
|
35167
35167
|
var subscriber = new SafeSubscriber({
|
|
35168
35168
|
next: function(value) {
|
|
35169
|
-
|
|
35169
|
+
resolve79(value);
|
|
35170
35170
|
subscriber.unsubscribe();
|
|
35171
35171
|
},
|
|
35172
35172
|
error: reject,
|
|
35173
35173
|
complete: function() {
|
|
35174
35174
|
if (hasConfig) {
|
|
35175
|
-
|
|
35175
|
+
resolve79(config22.defaultValue);
|
|
35176
35176
|
} else {
|
|
35177
35177
|
reject(new EmptyError());
|
|
35178
35178
|
}
|
|
@@ -36211,7 +36211,7 @@ var init_rxjs = __esm({
|
|
|
36211
36211
|
Observable22.prototype.forEach = function(next, promiseCtor) {
|
|
36212
36212
|
var _this = this;
|
|
36213
36213
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
36214
|
-
return new promiseCtor(function(
|
|
36214
|
+
return new promiseCtor(function(resolve79, reject) {
|
|
36215
36215
|
var subscriber = new SafeSubscriber({
|
|
36216
36216
|
next: function(value) {
|
|
36217
36217
|
try {
|
|
@@ -36222,7 +36222,7 @@ var init_rxjs = __esm({
|
|
|
36222
36222
|
}
|
|
36223
36223
|
},
|
|
36224
36224
|
error: reject,
|
|
36225
|
-
complete:
|
|
36225
|
+
complete: resolve79
|
|
36226
36226
|
});
|
|
36227
36227
|
_this.subscribe(subscriber);
|
|
36228
36228
|
});
|
|
@@ -36244,14 +36244,14 @@ var init_rxjs = __esm({
|
|
|
36244
36244
|
Observable22.prototype.toPromise = function(promiseCtor) {
|
|
36245
36245
|
var _this = this;
|
|
36246
36246
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
36247
|
-
return new promiseCtor(function(
|
|
36247
|
+
return new promiseCtor(function(resolve79, reject) {
|
|
36248
36248
|
var value;
|
|
36249
36249
|
_this.subscribe(function(x2) {
|
|
36250
36250
|
return value = x2;
|
|
36251
36251
|
}, function(err) {
|
|
36252
36252
|
return reject(err);
|
|
36253
36253
|
}, function() {
|
|
36254
|
-
return
|
|
36254
|
+
return resolve79(value);
|
|
36255
36255
|
});
|
|
36256
36256
|
});
|
|
36257
36257
|
};
|
|
@@ -38669,8 +38669,8 @@ var init_Deferred = __esm({
|
|
|
38669
38669
|
// SAFETY: This is ensured by #taskPromise.
|
|
38670
38670
|
#resolve;
|
|
38671
38671
|
// TODO: Switch to Promise.withResolvers with Node 22
|
|
38672
|
-
#taskPromise = new Promise((
|
|
38673
|
-
this.#resolve =
|
|
38672
|
+
#taskPromise = new Promise((resolve79) => {
|
|
38673
|
+
this.#resolve = resolve79;
|
|
38674
38674
|
});
|
|
38675
38675
|
#timeoutId;
|
|
38676
38676
|
#timeoutError;
|
|
@@ -38760,12 +38760,12 @@ var init_Mutex = __esm({
|
|
|
38760
38760
|
return new _Mutex.Guard(this, onRelease);
|
|
38761
38761
|
}
|
|
38762
38762
|
release() {
|
|
38763
|
-
const
|
|
38764
|
-
if (!
|
|
38763
|
+
const resolve79 = this.#acquirers.shift();
|
|
38764
|
+
if (!resolve79) {
|
|
38765
38765
|
this.#locked = false;
|
|
38766
38766
|
return;
|
|
38767
38767
|
}
|
|
38768
|
-
|
|
38768
|
+
resolve79();
|
|
38769
38769
|
}
|
|
38770
38770
|
};
|
|
38771
38771
|
}
|
|
@@ -40780,12 +40780,12 @@ var init_locators = __esm({
|
|
|
40780
40780
|
}
|
|
40781
40781
|
return defer(() => {
|
|
40782
40782
|
return from(handle.evaluate((element) => {
|
|
40783
|
-
return new Promise((
|
|
40783
|
+
return new Promise((resolve79) => {
|
|
40784
40784
|
window.requestAnimationFrame(() => {
|
|
40785
40785
|
const rect1 = element.getBoundingClientRect();
|
|
40786
40786
|
window.requestAnimationFrame(() => {
|
|
40787
40787
|
const rect2 = element.getBoundingClientRect();
|
|
40788
|
-
|
|
40788
|
+
resolve79([
|
|
40789
40789
|
{
|
|
40790
40790
|
x: rect1.x,
|
|
40791
40791
|
y: rect1.y,
|
|
@@ -42524,9 +42524,9 @@ var init_ElementHandle = __esm({
|
|
|
42524
42524
|
const handle = await this.#asSVGElementHandle();
|
|
42525
42525
|
const target = __addDisposableResource6(env_5, handle && await handle.#getOwnerSVGElement(), false);
|
|
42526
42526
|
return await (target ?? this).evaluate(async (element, threshold) => {
|
|
42527
|
-
const visibleRatio = await new Promise((
|
|
42527
|
+
const visibleRatio = await new Promise((resolve79) => {
|
|
42528
42528
|
const observer = new IntersectionObserver((entries2) => {
|
|
42529
|
-
|
|
42529
|
+
resolve79(entries2[0].intersectionRatio);
|
|
42530
42530
|
observer.disconnect();
|
|
42531
42531
|
});
|
|
42532
42532
|
observer.observe(element);
|
|
@@ -43219,7 +43219,7 @@ var init_Frame = __esm({
|
|
|
43219
43219
|
}
|
|
43220
43220
|
type = type ?? "text/javascript";
|
|
43221
43221
|
return await this.mainRealm().transferHandle(await this.isolatedRealm().evaluateHandle(async ({ url, id, type: type2, content: content2 }) => {
|
|
43222
|
-
return await new Promise((
|
|
43222
|
+
return await new Promise((resolve79, reject) => {
|
|
43223
43223
|
const script = document.createElement("script");
|
|
43224
43224
|
script.type = type2;
|
|
43225
43225
|
script.text = content2;
|
|
@@ -43232,12 +43232,12 @@ var init_Frame = __esm({
|
|
|
43232
43232
|
if (url) {
|
|
43233
43233
|
script.src = url;
|
|
43234
43234
|
script.addEventListener("load", () => {
|
|
43235
|
-
|
|
43235
|
+
resolve79(script);
|
|
43236
43236
|
}, { once: true });
|
|
43237
43237
|
document.head.appendChild(script);
|
|
43238
43238
|
} else {
|
|
43239
43239
|
document.head.appendChild(script);
|
|
43240
|
-
|
|
43240
|
+
resolve79(script);
|
|
43241
43241
|
}
|
|
43242
43242
|
});
|
|
43243
43243
|
}, { ...options, type, content }));
|
|
@@ -43257,7 +43257,7 @@ var init_Frame = __esm({
|
|
|
43257
43257
|
options.content = content;
|
|
43258
43258
|
}
|
|
43259
43259
|
return await this.mainRealm().transferHandle(await this.isolatedRealm().evaluateHandle(async ({ url, content: content2 }) => {
|
|
43260
|
-
return await new Promise((
|
|
43260
|
+
return await new Promise((resolve79, reject) => {
|
|
43261
43261
|
let element;
|
|
43262
43262
|
if (!url) {
|
|
43263
43263
|
element = document.createElement("style");
|
|
@@ -43269,7 +43269,7 @@ var init_Frame = __esm({
|
|
|
43269
43269
|
element = link;
|
|
43270
43270
|
}
|
|
43271
43271
|
element.addEventListener("load", () => {
|
|
43272
|
-
|
|
43272
|
+
resolve79(element);
|
|
43273
43273
|
}, { once: true });
|
|
43274
43274
|
element.addEventListener("error", (event) => {
|
|
43275
43275
|
reject(new Error(event.message ?? "Could not load style"));
|
|
@@ -45008,9 +45008,9 @@ var init_Page = __esm({
|
|
|
45008
45008
|
++this.#screencastSessionCount;
|
|
45009
45009
|
if (!this.#startScreencastPromise) {
|
|
45010
45010
|
this.#startScreencastPromise = this.mainFrame().client.send("Page.startScreencast", { format: "png" }).then(() => {
|
|
45011
|
-
return new Promise((
|
|
45011
|
+
return new Promise((resolve79) => {
|
|
45012
45012
|
return this.mainFrame().client.once("Page.screencastFrame", () => {
|
|
45013
|
-
return
|
|
45013
|
+
return resolve79();
|
|
45014
45014
|
});
|
|
45015
45015
|
});
|
|
45016
45016
|
});
|
|
@@ -48399,11 +48399,11 @@ function addPageBinding(type, name, prefix) {
|
|
|
48399
48399
|
return value instanceof Node;
|
|
48400
48400
|
})
|
|
48401
48401
|
}));
|
|
48402
|
-
return new Promise((
|
|
48402
|
+
return new Promise((resolve79, reject) => {
|
|
48403
48403
|
callPuppeteer.callbacks.set(seq, {
|
|
48404
48404
|
resolve(value) {
|
|
48405
48405
|
callPuppeteer.args.delete(seq);
|
|
48406
|
-
|
|
48406
|
+
resolve79(value);
|
|
48407
48407
|
},
|
|
48408
48408
|
reject(value) {
|
|
48409
48409
|
callPuppeteer.args.delete(seq);
|
|
@@ -52242,8 +52242,8 @@ var init_Input2 = __esm({
|
|
|
52242
52242
|
if (typeof delay === "number") {
|
|
52243
52243
|
await Promise.all(actions);
|
|
52244
52244
|
actions.length = 0;
|
|
52245
|
-
await new Promise((
|
|
52246
|
-
setTimeout(
|
|
52245
|
+
await new Promise((resolve79) => {
|
|
52246
|
+
setTimeout(resolve79, delay);
|
|
52247
52247
|
});
|
|
52248
52248
|
}
|
|
52249
52249
|
actions.push(this.up({ ...options, clickCount }));
|
|
@@ -52263,9 +52263,9 @@ var init_Input2 = __esm({
|
|
|
52263
52263
|
});
|
|
52264
52264
|
}
|
|
52265
52265
|
async drag(start, target) {
|
|
52266
|
-
const promise = new Promise((
|
|
52266
|
+
const promise = new Promise((resolve79) => {
|
|
52267
52267
|
this.#client.once("Input.dragIntercepted", (event) => {
|
|
52268
|
-
return
|
|
52268
|
+
return resolve79(event.data);
|
|
52269
52269
|
});
|
|
52270
52270
|
});
|
|
52271
52271
|
await this.move(start.x, start.y);
|
|
@@ -52306,8 +52306,8 @@ var init_Input2 = __esm({
|
|
|
52306
52306
|
await this.dragEnter(target, data);
|
|
52307
52307
|
await this.dragOver(target, data);
|
|
52308
52308
|
if (delay) {
|
|
52309
|
-
await new Promise((
|
|
52310
|
-
return setTimeout(
|
|
52309
|
+
await new Promise((resolve79) => {
|
|
52310
|
+
return setTimeout(resolve79, delay);
|
|
52311
52311
|
});
|
|
52312
52312
|
}
|
|
52313
52313
|
await this.drop(target, data);
|
|
@@ -52568,11 +52568,11 @@ var init_WebMCP = __esm({
|
|
|
52568
52568
|
*/
|
|
52569
52569
|
async execute(input3 = {}) {
|
|
52570
52570
|
const { invocationId } = await this.#webmcp.invokeTool(this, input3);
|
|
52571
|
-
return await new Promise((
|
|
52571
|
+
return await new Promise((resolve79) => {
|
|
52572
52572
|
const handler4 = (event) => {
|
|
52573
52573
|
if (event.id === invocationId) {
|
|
52574
52574
|
this.#webmcp.off("toolresponded", handler4);
|
|
52575
|
-
|
|
52575
|
+
resolve79(event);
|
|
52576
52576
|
}
|
|
52577
52577
|
};
|
|
52578
52578
|
this.#webmcp.on("toolresponded", handler4);
|
|
@@ -53380,9 +53380,9 @@ var init_Page2 = __esm({
|
|
|
53380
53380
|
async captureHeapSnapshot(options) {
|
|
53381
53381
|
const { createWriteStream: createWriteStream3 } = environment.value.fs;
|
|
53382
53382
|
const stream = createWriteStream3(options.path);
|
|
53383
|
-
const streamPromise = new Promise((
|
|
53383
|
+
const streamPromise = new Promise((resolve79, reject) => {
|
|
53384
53384
|
stream.on("error", reject);
|
|
53385
|
-
stream.on("finish",
|
|
53385
|
+
stream.on("finish", resolve79);
|
|
53386
53386
|
});
|
|
53387
53387
|
const client = this.#primaryTargetClient;
|
|
53388
53388
|
await client.send("HeapProfiler.enable");
|
|
@@ -54748,12 +54748,12 @@ var init_Browser2 = __esm({
|
|
|
54748
54748
|
for (const [targetId, targetInfo] of this._targetManager().getDiscoveredTargetInfos().entries()) {
|
|
54749
54749
|
if (targetInfo.url.includes(id) && targetInfo.type === "service_worker") {
|
|
54750
54750
|
this._targetManager().addToIgnoreTarget(targetId);
|
|
54751
|
-
targetDestroyedPromises.push(new Promise((
|
|
54751
|
+
targetDestroyedPromises.push(new Promise((resolve79) => {
|
|
54752
54752
|
return setTimeout(() => {
|
|
54753
54753
|
this.#connection.emit("Target.targetDestroyed", {
|
|
54754
54754
|
targetId
|
|
54755
54755
|
});
|
|
54756
|
-
|
|
54756
|
+
resolve79(null);
|
|
54757
54757
|
}, 0);
|
|
54758
54758
|
}));
|
|
54759
54759
|
}
|
|
@@ -55156,10 +55156,10 @@ var init_BrowserWebSocketTransport = __esm({
|
|
|
55156
55156
|
"../../node_modules/.pnpm/puppeteer-core@24.41.0/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js"() {
|
|
55157
55157
|
BrowserWebSocketTransport = class _BrowserWebSocketTransport {
|
|
55158
55158
|
static create(url) {
|
|
55159
|
-
return new Promise((
|
|
55159
|
+
return new Promise((resolve79, reject) => {
|
|
55160
55160
|
const ws = new WebSocket(url);
|
|
55161
55161
|
ws.addEventListener("open", () => {
|
|
55162
|
-
return
|
|
55162
|
+
return resolve79(new _BrowserWebSocketTransport(ws));
|
|
55163
55163
|
});
|
|
55164
55164
|
ws.addEventListener("error", reject);
|
|
55165
55165
|
});
|
|
@@ -58081,11 +58081,11 @@ var require_BrowsingContextProcessor = __commonJS({
|
|
|
58081
58081
|
}
|
|
58082
58082
|
const parentCdpClient = context3.cdpTarget.parentCdpClient;
|
|
58083
58083
|
try {
|
|
58084
|
-
const detachedFromTargetPromise = new Promise((
|
|
58084
|
+
const detachedFromTargetPromise = new Promise((resolve79) => {
|
|
58085
58085
|
const onContextDestroyed = (event) => {
|
|
58086
58086
|
if (event.targetId === params.context) {
|
|
58087
58087
|
parentCdpClient.off("Target.detachedFromTarget", onContextDestroyed);
|
|
58088
|
-
|
|
58088
|
+
resolve79();
|
|
58089
58089
|
}
|
|
58090
58090
|
};
|
|
58091
58091
|
parentCdpClient.on("Target.detachedFromTarget", onContextDestroyed);
|
|
@@ -59448,7 +59448,7 @@ var require_ActionDispatcher = __commonJS({
|
|
|
59448
59448
|
}
|
|
59449
59449
|
}
|
|
59450
59450
|
const promises = [
|
|
59451
|
-
new Promise((
|
|
59451
|
+
new Promise((resolve79) => setTimeout(resolve79, this.#tickDuration))
|
|
59452
59452
|
];
|
|
59453
59453
|
for (const option of options) {
|
|
59454
59454
|
promises.push(this.#dispatchAction(option));
|
|
@@ -60049,8 +60049,8 @@ var require_Mutex = __commonJS({
|
|
|
60049
60049
|
acquire() {
|
|
60050
60050
|
const state = { resolved: false };
|
|
60051
60051
|
if (this.#locked) {
|
|
60052
|
-
return new Promise((
|
|
60053
|
-
this.#acquirers.push(() =>
|
|
60052
|
+
return new Promise((resolve79) => {
|
|
60053
|
+
this.#acquirers.push(() => resolve79(this.#release.bind(this, state)));
|
|
60054
60054
|
});
|
|
60055
60055
|
}
|
|
60056
60056
|
this.#locked = true;
|
|
@@ -60061,12 +60061,12 @@ var require_Mutex = __commonJS({
|
|
|
60061
60061
|
throw new Error("Cannot release more than once.");
|
|
60062
60062
|
}
|
|
60063
60063
|
state.resolved = true;
|
|
60064
|
-
const
|
|
60065
|
-
if (!
|
|
60064
|
+
const resolve79 = this.#acquirers.shift();
|
|
60065
|
+
if (!resolve79) {
|
|
60066
60066
|
this.#locked = false;
|
|
60067
60067
|
return;
|
|
60068
60068
|
}
|
|
60069
|
-
|
|
60069
|
+
resolve79();
|
|
60070
60070
|
}
|
|
60071
60071
|
async run(action) {
|
|
60072
60072
|
const release = await this.acquire();
|
|
@@ -61248,8 +61248,8 @@ var require_ChannelProxy = __commonJS({
|
|
|
61248
61248
|
* in the queue.
|
|
61249
61249
|
*/
|
|
61250
61250
|
async getMessage() {
|
|
61251
|
-
const onMessage = queue.length > 0 ? Promise.resolve() : new Promise((
|
|
61252
|
-
queueNonEmptyResolver =
|
|
61251
|
+
const onMessage = queue.length > 0 ? Promise.resolve() : new Promise((resolve79) => {
|
|
61252
|
+
queueNonEmptyResolver = resolve79;
|
|
61253
61253
|
});
|
|
61254
61254
|
await onMessage;
|
|
61255
61255
|
return queue.shift();
|
|
@@ -61354,7 +61354,7 @@ var require_ChannelProxy = __commonJS({
|
|
|
61354
61354
|
functionDeclaration: String((id) => {
|
|
61355
61355
|
const w2 = window;
|
|
61356
61356
|
if (w2[id] === void 0) {
|
|
61357
|
-
return new Promise((
|
|
61357
|
+
return new Promise((resolve79) => w2[id] = resolve79);
|
|
61358
61358
|
}
|
|
61359
61359
|
const channelProxy = w2[id];
|
|
61360
61360
|
delete w2[id];
|
|
@@ -62855,8 +62855,8 @@ var require_Deferred = __commonJS({
|
|
|
62855
62855
|
return this.#result;
|
|
62856
62856
|
}
|
|
62857
62857
|
constructor() {
|
|
62858
|
-
this.#promise = new Promise((
|
|
62859
|
-
this.#resolve =
|
|
62858
|
+
this.#promise = new Promise((resolve79, reject) => {
|
|
62859
|
+
this.#resolve = resolve79;
|
|
62860
62860
|
this.#reject = reject;
|
|
62861
62861
|
});
|
|
62862
62862
|
this.#promise.catch((_error) => {
|
|
@@ -67700,11 +67700,11 @@ var require_BrowsingContextStorage = __commonJS({
|
|
|
67700
67700
|
if (this.#contexts.has(browsingContextId)) {
|
|
67701
67701
|
return Promise.resolve(this.getContext(browsingContextId));
|
|
67702
67702
|
}
|
|
67703
|
-
return new Promise((
|
|
67703
|
+
return new Promise((resolve79) => {
|
|
67704
67704
|
const listener = (event) => {
|
|
67705
67705
|
if (event.browsingContext.id === browsingContextId) {
|
|
67706
67706
|
this.#eventEmitter.off("added", listener);
|
|
67707
|
-
|
|
67707
|
+
resolve79(event.browsingContext);
|
|
67708
67708
|
}
|
|
67709
67709
|
};
|
|
67710
67710
|
this.#eventEmitter.on("added", listener);
|
|
@@ -71304,8 +71304,8 @@ var init_ExposedFunction = __esm({
|
|
|
71304
71304
|
const functionDeclaration = stringifyFunction(interpolateFunction((callback) => {
|
|
71305
71305
|
Object.assign(globalThis, {
|
|
71306
71306
|
[PLACEHOLDER("name")]: function(...args) {
|
|
71307
|
-
return new Promise((
|
|
71308
|
-
callback([
|
|
71307
|
+
return new Promise((resolve79, reject) => {
|
|
71308
|
+
callback([resolve79, reject, args]);
|
|
71309
71309
|
});
|
|
71310
71310
|
}
|
|
71311
71311
|
});
|
|
@@ -71393,8 +71393,8 @@ var init_ExposedFunction = __esm({
|
|
|
71393
71393
|
return;
|
|
71394
71394
|
}
|
|
71395
71395
|
try {
|
|
71396
|
-
await dataHandle.evaluate(([
|
|
71397
|
-
|
|
71396
|
+
await dataHandle.evaluate(([resolve79], result2) => {
|
|
71397
|
+
resolve79(result2);
|
|
71398
71398
|
}, result);
|
|
71399
71399
|
} catch (error) {
|
|
71400
71400
|
debugError(error);
|
|
@@ -79536,7 +79536,7 @@ var init_NodeWebSocketTransport = __esm({
|
|
|
79536
79536
|
init_version();
|
|
79537
79537
|
NodeWebSocketTransport = class _NodeWebSocketTransport {
|
|
79538
79538
|
static create(url, headers) {
|
|
79539
|
-
return new Promise((
|
|
79539
|
+
return new Promise((resolve79, reject) => {
|
|
79540
79540
|
const ws = new wrapper_default(url, [], {
|
|
79541
79541
|
followRedirects: true,
|
|
79542
79542
|
perMessageDeflate: false,
|
|
@@ -79549,7 +79549,7 @@ var init_NodeWebSocketTransport = __esm({
|
|
|
79549
79549
|
}
|
|
79550
79550
|
});
|
|
79551
79551
|
ws.addEventListener("open", () => {
|
|
79552
|
-
return
|
|
79552
|
+
return resolve79(new _NodeWebSocketTransport(ws));
|
|
79553
79553
|
});
|
|
79554
79554
|
ws.addEventListener("error", reject);
|
|
79555
79555
|
});
|
|
@@ -82610,8 +82610,8 @@ var require_helpers = __commonJS({
|
|
|
82610
82610
|
function req(url, opts = {}) {
|
|
82611
82611
|
const href = typeof url === "string" ? url : url.href;
|
|
82612
82612
|
const req2 = (href.startsWith("https:") ? https3 : http3).request(url, opts);
|
|
82613
|
-
const promise = new Promise((
|
|
82614
|
-
req2.once("response",
|
|
82613
|
+
const promise = new Promise((resolve79, reject) => {
|
|
82614
|
+
req2.once("response", resolve79).once("error", reject).end();
|
|
82615
82615
|
});
|
|
82616
82616
|
req2.then = promise.then.bind(promise);
|
|
82617
82617
|
return req2;
|
|
@@ -82988,7 +82988,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
82988
82988
|
var debug_1 = __importDefault3(require_src2());
|
|
82989
82989
|
var debug9 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
82990
82990
|
function parseProxyResponse(socket) {
|
|
82991
|
-
return new Promise((
|
|
82991
|
+
return new Promise((resolve79, reject) => {
|
|
82992
82992
|
let buffersLength = 0;
|
|
82993
82993
|
const buffers = [];
|
|
82994
82994
|
function read() {
|
|
@@ -83054,7 +83054,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
83054
83054
|
}
|
|
83055
83055
|
debug9("got proxy server response: %o %o", firstLine, headers);
|
|
83056
83056
|
cleanup();
|
|
83057
|
-
|
|
83057
|
+
resolve79({
|
|
83058
83058
|
connect: {
|
|
83059
83059
|
statusCode,
|
|
83060
83060
|
statusText,
|
|
@@ -86312,11 +86312,11 @@ var require_socksclient = __commonJS({
|
|
|
86312
86312
|
"use strict";
|
|
86313
86313
|
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
86314
86314
|
function adopt(value) {
|
|
86315
|
-
return value instanceof P2 ? value : new P2(function(
|
|
86316
|
-
|
|
86315
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
86316
|
+
resolve79(value);
|
|
86317
86317
|
});
|
|
86318
86318
|
}
|
|
86319
|
-
return new (P2 || (P2 = Promise))(function(
|
|
86319
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
86320
86320
|
function fulfilled(value) {
|
|
86321
86321
|
try {
|
|
86322
86322
|
step(generator.next(value));
|
|
@@ -86332,7 +86332,7 @@ var require_socksclient = __commonJS({
|
|
|
86332
86332
|
}
|
|
86333
86333
|
}
|
|
86334
86334
|
function step(result) {
|
|
86335
|
-
result.done ?
|
|
86335
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
86336
86336
|
}
|
|
86337
86337
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
86338
86338
|
});
|
|
@@ -86366,13 +86366,13 @@ var require_socksclient = __commonJS({
|
|
|
86366
86366
|
* @returns { Promise }
|
|
86367
86367
|
*/
|
|
86368
86368
|
static createConnection(options, callback) {
|
|
86369
|
-
return new Promise((
|
|
86369
|
+
return new Promise((resolve79, reject) => {
|
|
86370
86370
|
try {
|
|
86371
86371
|
(0, helpers_1.validateSocksClientOptions)(options, ["connect"]);
|
|
86372
86372
|
} catch (err) {
|
|
86373
86373
|
if (typeof callback === "function") {
|
|
86374
86374
|
callback(err);
|
|
86375
|
-
return
|
|
86375
|
+
return resolve79(err);
|
|
86376
86376
|
} else {
|
|
86377
86377
|
return reject(err);
|
|
86378
86378
|
}
|
|
@@ -86383,16 +86383,16 @@ var require_socksclient = __commonJS({
|
|
|
86383
86383
|
client.removeAllListeners();
|
|
86384
86384
|
if (typeof callback === "function") {
|
|
86385
86385
|
callback(null, info);
|
|
86386
|
-
|
|
86386
|
+
resolve79(info);
|
|
86387
86387
|
} else {
|
|
86388
|
-
|
|
86388
|
+
resolve79(info);
|
|
86389
86389
|
}
|
|
86390
86390
|
});
|
|
86391
86391
|
client.once("error", (err) => {
|
|
86392
86392
|
client.removeAllListeners();
|
|
86393
86393
|
if (typeof callback === "function") {
|
|
86394
86394
|
callback(err);
|
|
86395
|
-
|
|
86395
|
+
resolve79(err);
|
|
86396
86396
|
} else {
|
|
86397
86397
|
reject(err);
|
|
86398
86398
|
}
|
|
@@ -86409,13 +86409,13 @@ var require_socksclient = __commonJS({
|
|
|
86409
86409
|
* @returns { Promise }
|
|
86410
86410
|
*/
|
|
86411
86411
|
static createConnectionChain(options, callback) {
|
|
86412
|
-
return new Promise((
|
|
86412
|
+
return new Promise((resolve79, reject) => __awaiter4(this, void 0, void 0, function* () {
|
|
86413
86413
|
try {
|
|
86414
86414
|
(0, helpers_1.validateSocksClientChainOptions)(options);
|
|
86415
86415
|
} catch (err) {
|
|
86416
86416
|
if (typeof callback === "function") {
|
|
86417
86417
|
callback(err);
|
|
86418
|
-
return
|
|
86418
|
+
return resolve79(err);
|
|
86419
86419
|
} else {
|
|
86420
86420
|
return reject(err);
|
|
86421
86421
|
}
|
|
@@ -86441,14 +86441,14 @@ var require_socksclient = __commonJS({
|
|
|
86441
86441
|
}
|
|
86442
86442
|
if (typeof callback === "function") {
|
|
86443
86443
|
callback(null, { socket: sock });
|
|
86444
|
-
|
|
86444
|
+
resolve79({ socket: sock });
|
|
86445
86445
|
} else {
|
|
86446
|
-
|
|
86446
|
+
resolve79({ socket: sock });
|
|
86447
86447
|
}
|
|
86448
86448
|
} catch (err) {
|
|
86449
86449
|
if (typeof callback === "function") {
|
|
86450
86450
|
callback(err);
|
|
86451
|
-
|
|
86451
|
+
resolve79(err);
|
|
86452
86452
|
} else {
|
|
86453
86453
|
reject(err);
|
|
86454
86454
|
}
|
|
@@ -87132,12 +87132,12 @@ var require_dist7 = __commonJS({
|
|
|
87132
87132
|
let { host } = opts;
|
|
87133
87133
|
const { port, lookup: lookupFn = dns.lookup } = opts;
|
|
87134
87134
|
if (shouldLookup) {
|
|
87135
|
-
host = await new Promise((
|
|
87135
|
+
host = await new Promise((resolve79, reject) => {
|
|
87136
87136
|
lookupFn(host, {}, (err, res) => {
|
|
87137
87137
|
if (err) {
|
|
87138
87138
|
reject(err);
|
|
87139
87139
|
} else {
|
|
87140
|
-
|
|
87140
|
+
resolve79(res);
|
|
87141
87141
|
}
|
|
87142
87142
|
});
|
|
87143
87143
|
});
|
|
@@ -87797,7 +87797,7 @@ var require_netUtils = __commonJS({
|
|
|
87797
87797
|
return `${socket.remoteAddress}:${socket.remotePort}`;
|
|
87798
87798
|
}
|
|
87799
87799
|
function upgradeSocket(socket, options) {
|
|
87800
|
-
return new Promise((
|
|
87800
|
+
return new Promise((resolve79, reject) => {
|
|
87801
87801
|
const tlsOptions = Object.assign({}, options, {
|
|
87802
87802
|
socket
|
|
87803
87803
|
});
|
|
@@ -87807,7 +87807,7 @@ var require_netUtils = __commonJS({
|
|
|
87807
87807
|
reject(tlsSocket.authorizationError);
|
|
87808
87808
|
} else {
|
|
87809
87809
|
tlsSocket.removeAllListeners("error");
|
|
87810
|
-
|
|
87810
|
+
resolve79(tlsSocket);
|
|
87811
87811
|
}
|
|
87812
87812
|
}).once("error", (error) => {
|
|
87813
87813
|
reject(error);
|
|
@@ -88437,7 +88437,7 @@ var require_transfer = __commonJS({
|
|
|
88437
88437
|
};
|
|
88438
88438
|
}
|
|
88439
88439
|
function connectForPassiveTransfer(host, port, ftp) {
|
|
88440
|
-
return new Promise((
|
|
88440
|
+
return new Promise((resolve79, reject) => {
|
|
88441
88441
|
let socket = ftp._newSocket();
|
|
88442
88442
|
const handleConnErr = function(err) {
|
|
88443
88443
|
err.message = "Can't open data connection in passive mode: " + err.message;
|
|
@@ -88465,7 +88465,7 @@ var require_transfer = __commonJS({
|
|
|
88465
88465
|
socket.removeListener("error", handleConnErr);
|
|
88466
88466
|
socket.removeListener("timeout", handleTimeout);
|
|
88467
88467
|
ftp.dataSocket = socket;
|
|
88468
|
-
|
|
88468
|
+
resolve79();
|
|
88469
88469
|
});
|
|
88470
88470
|
});
|
|
88471
88471
|
}
|
|
@@ -90837,7 +90837,7 @@ var require_util3 = __commonJS({
|
|
|
90837
90837
|
}
|
|
90838
90838
|
path14 = url.path;
|
|
90839
90839
|
}
|
|
90840
|
-
var
|
|
90840
|
+
var isAbsolute10 = exports.isAbsolute(path14);
|
|
90841
90841
|
var parts = path14.split(/\/+/);
|
|
90842
90842
|
for (var part, up = 0, i2 = parts.length - 1; i2 >= 0; i2--) {
|
|
90843
90843
|
part = parts[i2];
|
|
@@ -90857,7 +90857,7 @@ var require_util3 = __commonJS({
|
|
|
90857
90857
|
}
|
|
90858
90858
|
path14 = parts.join("/");
|
|
90859
90859
|
if (path14 === "") {
|
|
90860
|
-
path14 =
|
|
90860
|
+
path14 = isAbsolute10 ? "/" : ".";
|
|
90861
90861
|
}
|
|
90862
90862
|
if (url) {
|
|
90863
90863
|
url.path = path14;
|
|
@@ -100937,11 +100937,11 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
100937
100937
|
}
|
|
100938
100938
|
function __awaiter2(thisArg, _arguments, P2, generator) {
|
|
100939
100939
|
function adopt(value) {
|
|
100940
|
-
return value instanceof P2 ? value : new P2(function(
|
|
100941
|
-
|
|
100940
|
+
return value instanceof P2 ? value : new P2(function(resolve79) {
|
|
100941
|
+
resolve79(value);
|
|
100942
100942
|
});
|
|
100943
100943
|
}
|
|
100944
|
-
return new (P2 || (P2 = Promise))(function(
|
|
100944
|
+
return new (P2 || (P2 = Promise))(function(resolve79, reject) {
|
|
100945
100945
|
function fulfilled(value) {
|
|
100946
100946
|
try {
|
|
100947
100947
|
step(generator.next(value));
|
|
@@ -100957,7 +100957,7 @@ function __awaiter2(thisArg, _arguments, P2, generator) {
|
|
|
100957
100957
|
}
|
|
100958
100958
|
}
|
|
100959
100959
|
function step(result) {
|
|
100960
|
-
result.done ?
|
|
100960
|
+
result.done ? resolve79(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
100961
100961
|
}
|
|
100962
100962
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
100963
100963
|
});
|
|
@@ -101148,14 +101148,14 @@ function __asyncValues2(o2) {
|
|
|
101148
101148
|
}, i2);
|
|
101149
101149
|
function verb(n2) {
|
|
101150
101150
|
i2[n2] = o2[n2] && function(v2) {
|
|
101151
|
-
return new Promise(function(
|
|
101152
|
-
v2 = o2[n2](v2), settle(
|
|
101151
|
+
return new Promise(function(resolve79, reject) {
|
|
101152
|
+
v2 = o2[n2](v2), settle(resolve79, reject, v2.done, v2.value);
|
|
101153
101153
|
});
|
|
101154
101154
|
};
|
|
101155
101155
|
}
|
|
101156
|
-
function settle(
|
|
101156
|
+
function settle(resolve79, reject, d2, v2) {
|
|
101157
101157
|
Promise.resolve(v2).then(function(v3) {
|
|
101158
|
-
|
|
101158
|
+
resolve79({ value: v3, done: d2 });
|
|
101159
101159
|
}, reject);
|
|
101160
101160
|
}
|
|
101161
101161
|
}
|
|
@@ -104708,12 +104708,12 @@ var require_util4 = __commonJS({
|
|
|
104708
104708
|
exports.isGMT = exports.dnsLookup = void 0;
|
|
104709
104709
|
var dns_1 = __require("dns");
|
|
104710
104710
|
function dnsLookup(host, opts) {
|
|
104711
|
-
return new Promise((
|
|
104711
|
+
return new Promise((resolve79, reject) => {
|
|
104712
104712
|
(0, dns_1.lookup)(host, opts, (err, res) => {
|
|
104713
104713
|
if (err) {
|
|
104714
104714
|
reject(err);
|
|
104715
104715
|
} else {
|
|
104716
|
-
|
|
104716
|
+
resolve79(res);
|
|
104717
104717
|
}
|
|
104718
104718
|
});
|
|
104719
104719
|
});
|
|
@@ -105318,10 +105318,10 @@ var require_myIpAddress = __commonJS({
|
|
|
105318
105318
|
var ip_1 = require_ip();
|
|
105319
105319
|
var net_1 = __importDefault3(__require("net"));
|
|
105320
105320
|
async function myIpAddress() {
|
|
105321
|
-
return new Promise((
|
|
105321
|
+
return new Promise((resolve79, reject) => {
|
|
105322
105322
|
const socket = net_1.default.connect({ host: "8.8.8.8", port: 53 });
|
|
105323
105323
|
const onError = () => {
|
|
105324
|
-
|
|
105324
|
+
resolve79(ip_1.ip.address());
|
|
105325
105325
|
};
|
|
105326
105326
|
socket.once("error", onError);
|
|
105327
105327
|
socket.once("connect", () => {
|
|
@@ -105329,9 +105329,9 @@ var require_myIpAddress = __commonJS({
|
|
|
105329
105329
|
const addr = socket.address();
|
|
105330
105330
|
socket.destroy();
|
|
105331
105331
|
if (typeof addr === "string") {
|
|
105332
|
-
|
|
105332
|
+
resolve79(addr);
|
|
105333
105333
|
} else if (addr.address) {
|
|
105334
|
-
|
|
105334
|
+
resolve79(addr.address);
|
|
105335
105335
|
} else {
|
|
105336
105336
|
reject(new Error("Expected a `string`"));
|
|
105337
105337
|
}
|
|
@@ -105909,8 +105909,8 @@ var require_deferred_promise = __commonJS({
|
|
|
105909
105909
|
this.context = args.context;
|
|
105910
105910
|
this.owner = args.context.runtime;
|
|
105911
105911
|
this.handle = args.promiseHandle;
|
|
105912
|
-
this.settled = new Promise((
|
|
105913
|
-
this.onSettled =
|
|
105912
|
+
this.settled = new Promise((resolve79) => {
|
|
105913
|
+
this.onSettled = resolve79;
|
|
105914
105914
|
});
|
|
105915
105915
|
this.resolveHandle = args.resolveHandle;
|
|
105916
105916
|
this.rejectHandle = args.rejectHandle;
|
|
@@ -106431,13 +106431,13 @@ var require_context = __commonJS({
|
|
|
106431
106431
|
if (vmResolveResult.error) {
|
|
106432
106432
|
return Promise.resolve(vmResolveResult);
|
|
106433
106433
|
}
|
|
106434
|
-
return new Promise((
|
|
106434
|
+
return new Promise((resolve79) => {
|
|
106435
106435
|
lifetime_1.Scope.withScope((scope) => {
|
|
106436
106436
|
const resolveHandle = scope.manage(this.newFunction("resolve", (value) => {
|
|
106437
|
-
|
|
106437
|
+
resolve79({ value: value && value.dup() });
|
|
106438
106438
|
}));
|
|
106439
106439
|
const rejectHandle = scope.manage(this.newFunction("reject", (error) => {
|
|
106440
|
-
|
|
106440
|
+
resolve79({ error: error && error.dup() });
|
|
106441
106441
|
}));
|
|
106442
106442
|
const promiseHandle = scope.manage(vmResolveResult.value);
|
|
106443
106443
|
const promiseThenHandle = scope.manage(this.getProp(promiseHandle, "then"));
|
|
@@ -108812,13 +108812,13 @@ import * as http from "node:http";
|
|
|
108812
108812
|
import * as https from "node:https";
|
|
108813
108813
|
import { URL as URL2, urlToHttpOptions } from "node:url";
|
|
108814
108814
|
function headHttpRequest(url) {
|
|
108815
|
-
return new Promise((
|
|
108815
|
+
return new Promise((resolve79) => {
|
|
108816
108816
|
const request5 = httpRequest(url, "HEAD", (response) => {
|
|
108817
108817
|
response.resume();
|
|
108818
|
-
|
|
108818
|
+
resolve79(response.statusCode === 200);
|
|
108819
108819
|
}, false);
|
|
108820
108820
|
request5.on("error", () => {
|
|
108821
|
-
|
|
108821
|
+
resolve79(false);
|
|
108822
108822
|
});
|
|
108823
108823
|
});
|
|
108824
108824
|
}
|
|
@@ -108846,7 +108846,7 @@ function httpRequest(url, method, response, keepAlive = true) {
|
|
|
108846
108846
|
return request5;
|
|
108847
108847
|
}
|
|
108848
108848
|
function downloadFile(url, destinationPath, progressCallback) {
|
|
108849
|
-
return new Promise((
|
|
108849
|
+
return new Promise((resolve79, reject) => {
|
|
108850
108850
|
let downloadedBytes = 0;
|
|
108851
108851
|
let totalBytes = 0;
|
|
108852
108852
|
function onData(chunk) {
|
|
@@ -108862,7 +108862,7 @@ function downloadFile(url, destinationPath, progressCallback) {
|
|
|
108862
108862
|
}
|
|
108863
108863
|
const file = createWriteStream(destinationPath);
|
|
108864
108864
|
file.on("close", () => {
|
|
108865
|
-
return
|
|
108865
|
+
return resolve79();
|
|
108866
108866
|
});
|
|
108867
108867
|
file.on("error", (error) => {
|
|
108868
108868
|
return reject(error);
|
|
@@ -108887,7 +108887,7 @@ async function getJSON(url) {
|
|
|
108887
108887
|
}
|
|
108888
108888
|
}
|
|
108889
108889
|
function getText(url) {
|
|
108890
|
-
return new Promise((
|
|
108890
|
+
return new Promise((resolve79, reject) => {
|
|
108891
108891
|
const request5 = httpRequest(url, "GET", (response) => {
|
|
108892
108892
|
let data = "";
|
|
108893
108893
|
if (response.statusCode && response.statusCode >= 400) {
|
|
@@ -108898,7 +108898,7 @@ function getText(url) {
|
|
|
108898
108898
|
});
|
|
108899
108899
|
response.on("end", () => {
|
|
108900
108900
|
try {
|
|
108901
|
-
return
|
|
108901
|
+
return resolve79(String(data));
|
|
108902
108902
|
} catch {
|
|
108903
108903
|
return reject(new Error(`Failed to read text response from ${url}`));
|
|
108904
108904
|
}
|
|
@@ -110290,7 +110290,7 @@ var init_launch = __esm({
|
|
|
110290
110290
|
if (opts.onExit) {
|
|
110291
110291
|
this.#onExitHook = opts.onExit;
|
|
110292
110292
|
}
|
|
110293
|
-
this.#browserProcessExiting = new Promise((
|
|
110293
|
+
this.#browserProcessExiting = new Promise((resolve79, reject) => {
|
|
110294
110294
|
this.#browserProcess.once("exit", async () => {
|
|
110295
110295
|
debugLaunch(`Browser process ${this.#browserProcess.pid} onExit`);
|
|
110296
110296
|
this.#clearListeners();
|
|
@@ -110301,7 +110301,7 @@ var init_launch = __esm({
|
|
|
110301
110301
|
reject(err);
|
|
110302
110302
|
return;
|
|
110303
110303
|
}
|
|
110304
|
-
|
|
110304
|
+
resolve79();
|
|
110305
110305
|
});
|
|
110306
110306
|
});
|
|
110307
110307
|
}
|
|
@@ -110417,7 +110417,7 @@ Error cause: ${isErrorLike2(error) ? error.stack : error}`);
|
|
|
110417
110417
|
return [...this.#logs];
|
|
110418
110418
|
}
|
|
110419
110419
|
waitForLineOutput(regex2, timeout3 = 0) {
|
|
110420
|
-
return new Promise((
|
|
110420
|
+
return new Promise((resolve79, reject) => {
|
|
110421
110421
|
const onClose = (errorOrCode) => {
|
|
110422
110422
|
cleanup();
|
|
110423
110423
|
reject(new Error([
|
|
@@ -110453,7 +110453,7 @@ Error cause: ${isErrorLike2(error) ? error.stack : error}`);
|
|
|
110453
110453
|
return;
|
|
110454
110454
|
}
|
|
110455
110455
|
cleanup();
|
|
110456
|
-
|
|
110456
|
+
resolve79(match2[1]);
|
|
110457
110457
|
}
|
|
110458
110458
|
});
|
|
110459
110459
|
}
|
|
@@ -110922,7 +110922,7 @@ var require_get_stream = __commonJS({
|
|
|
110922
110922
|
};
|
|
110923
110923
|
const { maxBuffer } = options;
|
|
110924
110924
|
let stream;
|
|
110925
|
-
await new Promise((
|
|
110925
|
+
await new Promise((resolve79, reject) => {
|
|
110926
110926
|
const rejectPromise = (error) => {
|
|
110927
110927
|
if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
|
110928
110928
|
error.bufferedData = stream.getBufferedValue();
|
|
@@ -110934,7 +110934,7 @@ var require_get_stream = __commonJS({
|
|
|
110934
110934
|
rejectPromise(error);
|
|
110935
110935
|
return;
|
|
110936
110936
|
}
|
|
110937
|
-
|
|
110937
|
+
resolve79();
|
|
110938
110938
|
});
|
|
110939
110939
|
stream.on("data", () => {
|
|
110940
110940
|
if (stream.getBufferedLength() > maxBuffer) {
|
|
@@ -112223,7 +112223,7 @@ var require_extract_zip = __commonJS({
|
|
|
112223
112223
|
debug9("opening", this.zipPath, "with opts", this.opts);
|
|
112224
112224
|
this.zipfile = await openZip(this.zipPath, { lazyEntries: true });
|
|
112225
112225
|
this.canceled = false;
|
|
112226
|
-
return new Promise((
|
|
112226
|
+
return new Promise((resolve79, reject) => {
|
|
112227
112227
|
this.zipfile.on("error", (err) => {
|
|
112228
112228
|
this.canceled = true;
|
|
112229
112229
|
reject(err);
|
|
@@ -112232,7 +112232,7 @@ var require_extract_zip = __commonJS({
|
|
|
112232
112232
|
this.zipfile.on("close", () => {
|
|
112233
112233
|
if (!this.canceled) {
|
|
112234
112234
|
debug9("zip extraction complete");
|
|
112235
|
-
|
|
112235
|
+
resolve79();
|
|
112236
112236
|
}
|
|
112237
112237
|
});
|
|
112238
112238
|
this.zipfile.on("entry", async (entry) => {
|
|
@@ -113489,8 +113489,8 @@ var require_streamx = __commonJS({
|
|
|
113489
113489
|
return this;
|
|
113490
113490
|
},
|
|
113491
113491
|
next() {
|
|
113492
|
-
return new Promise(function(
|
|
113493
|
-
promiseResolve =
|
|
113492
|
+
return new Promise(function(resolve79, reject) {
|
|
113493
|
+
promiseResolve = resolve79;
|
|
113494
113494
|
promiseReject = reject;
|
|
113495
113495
|
const data = stream.read();
|
|
113496
113496
|
if (data !== null) ondata(data);
|
|
@@ -113520,11 +113520,11 @@ var require_streamx = __commonJS({
|
|
|
113520
113520
|
}
|
|
113521
113521
|
function destroy(err) {
|
|
113522
113522
|
stream.destroy(err);
|
|
113523
|
-
return new Promise((
|
|
113524
|
-
if (stream._duplexState & DESTROYED) return
|
|
113523
|
+
return new Promise((resolve79, reject) => {
|
|
113524
|
+
if (stream._duplexState & DESTROYED) return resolve79({ value: void 0, done: true });
|
|
113525
113525
|
stream.once("close", function() {
|
|
113526
113526
|
if (err) reject(err);
|
|
113527
|
-
else
|
|
113527
|
+
else resolve79({ value: void 0, done: true });
|
|
113528
113528
|
});
|
|
113529
113529
|
});
|
|
113530
113530
|
}
|
|
@@ -113568,8 +113568,8 @@ var require_streamx = __commonJS({
|
|
|
113568
113568
|
const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
|
|
113569
113569
|
if (writes === 0) return Promise.resolve(true);
|
|
113570
113570
|
if (state.drains === null) state.drains = [];
|
|
113571
|
-
return new Promise((
|
|
113572
|
-
state.drains.push({ writes, resolve:
|
|
113571
|
+
return new Promise((resolve79) => {
|
|
113572
|
+
state.drains.push({ writes, resolve: resolve79 });
|
|
113573
113573
|
});
|
|
113574
113574
|
}
|
|
113575
113575
|
write(data) {
|
|
@@ -113674,10 +113674,10 @@ var require_streamx = __commonJS({
|
|
|
113674
113674
|
cb(null);
|
|
113675
113675
|
}
|
|
113676
113676
|
function pipelinePromise(...streams) {
|
|
113677
|
-
return new Promise((
|
|
113677
|
+
return new Promise((resolve79, reject) => {
|
|
113678
113678
|
return pipeline(...streams, (err) => {
|
|
113679
113679
|
if (err) return reject(err);
|
|
113680
|
-
|
|
113680
|
+
resolve79();
|
|
113681
113681
|
});
|
|
113682
113682
|
});
|
|
113683
113683
|
}
|
|
@@ -114332,16 +114332,16 @@ var require_extract = __commonJS({
|
|
|
114332
114332
|
entryCallback = null;
|
|
114333
114333
|
cb(err);
|
|
114334
114334
|
}
|
|
114335
|
-
function onnext(
|
|
114335
|
+
function onnext(resolve79, reject) {
|
|
114336
114336
|
if (error) {
|
|
114337
114337
|
return reject(error);
|
|
114338
114338
|
}
|
|
114339
114339
|
if (entryStream) {
|
|
114340
|
-
|
|
114340
|
+
resolve79({ value: entryStream, done: false });
|
|
114341
114341
|
entryStream = null;
|
|
114342
114342
|
return;
|
|
114343
114343
|
}
|
|
114344
|
-
promiseResolve =
|
|
114344
|
+
promiseResolve = resolve79;
|
|
114345
114345
|
promiseReject = reject;
|
|
114346
114346
|
consumeCallback(null);
|
|
114347
114347
|
if (extract._finished && promiseResolve) {
|
|
@@ -114369,11 +114369,11 @@ var require_extract = __commonJS({
|
|
|
114369
114369
|
function destroy(err) {
|
|
114370
114370
|
extract.destroy(err);
|
|
114371
114371
|
consumeCallback(err);
|
|
114372
|
-
return new Promise((
|
|
114373
|
-
if (extract.destroyed) return
|
|
114372
|
+
return new Promise((resolve79, reject) => {
|
|
114373
|
+
if (extract.destroyed) return resolve79({ value: void 0, done: true });
|
|
114374
114374
|
extract.once("close", function() {
|
|
114375
114375
|
if (err) reject(err);
|
|
114376
|
-
else
|
|
114376
|
+
else resolve79({ value: void 0, done: true });
|
|
114377
114377
|
});
|
|
114378
114378
|
});
|
|
114379
114379
|
}
|
|
@@ -119349,12 +119349,12 @@ var init_yargs_factory = __esm({
|
|
|
119349
119349
|
async getCompletion(args, done) {
|
|
119350
119350
|
argsert("<array> [function]", [args, done], arguments.length);
|
|
119351
119351
|
if (!done) {
|
|
119352
|
-
return new Promise((
|
|
119352
|
+
return new Promise((resolve79, reject) => {
|
|
119353
119353
|
__classPrivateFieldGet2(this, _YargsInstance_completion, "f").getCompletion(args, (err, completions) => {
|
|
119354
119354
|
if (err)
|
|
119355
119355
|
reject(err);
|
|
119356
119356
|
else
|
|
119357
|
-
|
|
119357
|
+
resolve79(completions);
|
|
119358
119358
|
});
|
|
119359
119359
|
});
|
|
119360
119360
|
} else {
|
|
@@ -122156,8 +122156,8 @@ var init_ScreenRecorder = __esm({
|
|
|
122156
122156
|
static {
|
|
122157
122157
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
122158
122158
|
__esDecorate23(this, _private_writeFrame_descriptor = { value: __setFunctionName6(async function(buffer) {
|
|
122159
|
-
const error = await new Promise((
|
|
122160
|
-
this.#process.stdin.write(buffer,
|
|
122159
|
+
const error = await new Promise((resolve79) => {
|
|
122160
|
+
this.#process.stdin.write(buffer, resolve79);
|
|
122161
122161
|
});
|
|
122162
122162
|
if (error) {
|
|
122163
122163
|
console.log(`ffmpeg failed to write: ${error.message}.`);
|
|
@@ -122347,8 +122347,8 @@ var init_ScreenRecorder = __esm({
|
|
|
122347
122347
|
const [buffer, timestamp] = await this.#lastFrame;
|
|
122348
122348
|
await Promise.all(Array(Math.max(1, Math.round(this.#fps * (performance.now() - timestamp) / 1e3))).fill(buffer).map(this.#writeFrame.bind(this)));
|
|
122349
122349
|
this.#process.stdin.end();
|
|
122350
|
-
await new Promise((
|
|
122351
|
-
this.#process.once("close",
|
|
122350
|
+
await new Promise((resolve79) => {
|
|
122351
|
+
this.#process.once("close", resolve79);
|
|
122352
122352
|
});
|
|
122353
122353
|
}
|
|
122354
122354
|
/**
|
|
@@ -249804,7 +249804,7 @@ ${lanes.join("\n")}
|
|
|
249804
249804
|
}
|
|
249805
249805
|
}
|
|
249806
249806
|
function createImportCallExpressionAMD(arg, containsLexicalThis) {
|
|
249807
|
-
const
|
|
249807
|
+
const resolve79 = factory2.createUniqueName("resolve");
|
|
249808
249808
|
const reject = factory2.createUniqueName("reject");
|
|
249809
249809
|
const parameters = [
|
|
249810
249810
|
factory2.createParameterDeclaration(
|
|
@@ -249813,7 +249813,7 @@ ${lanes.join("\n")}
|
|
|
249813
249813
|
/*dotDotDotToken*/
|
|
249814
249814
|
void 0,
|
|
249815
249815
|
/*name*/
|
|
249816
|
-
|
|
249816
|
+
resolve79
|
|
249817
249817
|
),
|
|
249818
249818
|
factory2.createParameterDeclaration(
|
|
249819
249819
|
/*modifiers*/
|
|
@@ -249830,7 +249830,7 @@ ${lanes.join("\n")}
|
|
|
249830
249830
|
factory2.createIdentifier("require"),
|
|
249831
249831
|
/*typeArguments*/
|
|
249832
249832
|
void 0,
|
|
249833
|
-
[factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]),
|
|
249833
|
+
[factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve79, reject]
|
|
249834
249834
|
)
|
|
249835
249835
|
)
|
|
249836
249836
|
]);
|
|
@@ -336548,8 +336548,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
336548
336548
|
installPackage(options) {
|
|
336549
336549
|
this.packageInstallId++;
|
|
336550
336550
|
const request5 = { kind: "installPackage", ...options, id: this.packageInstallId };
|
|
336551
|
-
const promise = new Promise((
|
|
336552
|
-
(this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve:
|
|
336551
|
+
const promise = new Promise((resolve79, reject) => {
|
|
336552
|
+
(this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve: resolve79, reject });
|
|
336553
336553
|
});
|
|
336554
336554
|
this.installer.send(request5);
|
|
336555
336555
|
return promise;
|
|
@@ -451355,7 +451355,7 @@ var require_lib5 = __commonJS({
|
|
|
451355
451355
|
let accum = [];
|
|
451356
451356
|
let accumBytes = 0;
|
|
451357
451357
|
let abort = false;
|
|
451358
|
-
return new Body.Promise(function(
|
|
451358
|
+
return new Body.Promise(function(resolve79, reject) {
|
|
451359
451359
|
let resTimeout;
|
|
451360
451360
|
if (_this4.timeout) {
|
|
451361
451361
|
resTimeout = setTimeout(function() {
|
|
@@ -451389,7 +451389,7 @@ var require_lib5 = __commonJS({
|
|
|
451389
451389
|
}
|
|
451390
451390
|
clearTimeout(resTimeout);
|
|
451391
451391
|
try {
|
|
451392
|
-
|
|
451392
|
+
resolve79(Buffer.concat(accum, accumBytes));
|
|
451393
451393
|
} catch (err) {
|
|
451394
451394
|
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err));
|
|
451395
451395
|
}
|
|
@@ -452064,7 +452064,7 @@ var require_lib5 = __commonJS({
|
|
|
452064
452064
|
throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
|
|
452065
452065
|
}
|
|
452066
452066
|
Body.Promise = fetch5.Promise;
|
|
452067
|
-
return new fetch5.Promise(function(
|
|
452067
|
+
return new fetch5.Promise(function(resolve79, reject) {
|
|
452068
452068
|
const request5 = new Request8(url, opts);
|
|
452069
452069
|
const options = getNodeRequestOptions(request5);
|
|
452070
452070
|
const send = (options.protocol === "https:" ? https3 : http3).request;
|
|
@@ -452197,7 +452197,7 @@ var require_lib5 = __commonJS({
|
|
|
452197
452197
|
requestOpts.body = void 0;
|
|
452198
452198
|
requestOpts.headers.delete("content-length");
|
|
452199
452199
|
}
|
|
452200
|
-
|
|
452200
|
+
resolve79(fetch5(new Request8(locationURL, requestOpts)));
|
|
452201
452201
|
finalize();
|
|
452202
452202
|
return;
|
|
452203
452203
|
}
|
|
@@ -452218,7 +452218,7 @@ var require_lib5 = __commonJS({
|
|
|
452218
452218
|
const codings = headers.get("Content-Encoding");
|
|
452219
452219
|
if (!request5.compress || request5.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
|
452220
452220
|
response = new Response7(body, response_options);
|
|
452221
|
-
|
|
452221
|
+
resolve79(response);
|
|
452222
452222
|
return;
|
|
452223
452223
|
}
|
|
452224
452224
|
const zlibOptions = {
|
|
@@ -452228,7 +452228,7 @@ var require_lib5 = __commonJS({
|
|
|
452228
452228
|
if (codings == "gzip" || codings == "x-gzip") {
|
|
452229
452229
|
body = body.pipe(zlib.createGunzip(zlibOptions));
|
|
452230
452230
|
response = new Response7(body, response_options);
|
|
452231
|
-
|
|
452231
|
+
resolve79(response);
|
|
452232
452232
|
return;
|
|
452233
452233
|
}
|
|
452234
452234
|
if (codings == "deflate" || codings == "x-deflate") {
|
|
@@ -452240,12 +452240,12 @@ var require_lib5 = __commonJS({
|
|
|
452240
452240
|
body = body.pipe(zlib.createInflateRaw());
|
|
452241
452241
|
}
|
|
452242
452242
|
response = new Response7(body, response_options);
|
|
452243
|
-
|
|
452243
|
+
resolve79(response);
|
|
452244
452244
|
});
|
|
452245
452245
|
raw2.on("end", function() {
|
|
452246
452246
|
if (!response) {
|
|
452247
452247
|
response = new Response7(body, response_options);
|
|
452248
|
-
|
|
452248
|
+
resolve79(response);
|
|
452249
452249
|
}
|
|
452250
452250
|
});
|
|
452251
452251
|
return;
|
|
@@ -452253,11 +452253,11 @@ var require_lib5 = __commonJS({
|
|
|
452253
452253
|
if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
|
|
452254
452254
|
body = body.pipe(zlib.createBrotliDecompress());
|
|
452255
452255
|
response = new Response7(body, response_options);
|
|
452256
|
-
|
|
452256
|
+
resolve79(response);
|
|
452257
452257
|
return;
|
|
452258
452258
|
}
|
|
452259
452259
|
response = new Response7(body, response_options);
|
|
452260
|
-
|
|
452260
|
+
resolve79(response);
|
|
452261
452261
|
});
|
|
452262
452262
|
writeToStream(req, request5);
|
|
452263
452263
|
});
|
|
@@ -456736,8 +456736,8 @@ var init_core = __esm({
|
|
|
456736
456736
|
};
|
|
456737
456737
|
APIPromise = class _APIPromise extends Promise {
|
|
456738
456738
|
constructor(responsePromise, parseResponse2 = defaultParseResponse) {
|
|
456739
|
-
super((
|
|
456740
|
-
|
|
456739
|
+
super((resolve79) => {
|
|
456740
|
+
resolve79(null);
|
|
456741
456741
|
});
|
|
456742
456742
|
this.responsePromise = responsePromise;
|
|
456743
456743
|
this.parseResponse = parseResponse2;
|
|
@@ -457305,7 +457305,7 @@ var init_core = __esm({
|
|
|
457305
457305
|
isAbsoluteURL = (url) => {
|
|
457306
457306
|
return startsWithSchemeRegexp.test(url);
|
|
457307
457307
|
};
|
|
457308
|
-
sleep2 = (ms) => new Promise((
|
|
457308
|
+
sleep2 = (ms) => new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
457309
457309
|
validatePositiveInteger = (name, n2) => {
|
|
457310
457310
|
if (typeof n2 !== "number" || !Number.isInteger(n2)) {
|
|
457311
457311
|
throw new AnthropicError(`${name} must be an integer`);
|
|
@@ -457924,12 +457924,12 @@ var init_BetaMessageStream = __esm({
|
|
|
457924
457924
|
}
|
|
457925
457925
|
return this._emit("error", new AnthropicError(String(error)));
|
|
457926
457926
|
});
|
|
457927
|
-
__classPrivateFieldSet10(this, _BetaMessageStream_connectedPromise, new Promise((
|
|
457928
|
-
__classPrivateFieldSet10(this, _BetaMessageStream_resolveConnectedPromise,
|
|
457927
|
+
__classPrivateFieldSet10(this, _BetaMessageStream_connectedPromise, new Promise((resolve79, reject) => {
|
|
457928
|
+
__classPrivateFieldSet10(this, _BetaMessageStream_resolveConnectedPromise, resolve79, "f");
|
|
457929
457929
|
__classPrivateFieldSet10(this, _BetaMessageStream_rejectConnectedPromise, reject, "f");
|
|
457930
457930
|
}), "f");
|
|
457931
|
-
__classPrivateFieldSet10(this, _BetaMessageStream_endPromise, new Promise((
|
|
457932
|
-
__classPrivateFieldSet10(this, _BetaMessageStream_resolveEndPromise,
|
|
457931
|
+
__classPrivateFieldSet10(this, _BetaMessageStream_endPromise, new Promise((resolve79, reject) => {
|
|
457932
|
+
__classPrivateFieldSet10(this, _BetaMessageStream_resolveEndPromise, resolve79, "f");
|
|
457933
457933
|
__classPrivateFieldSet10(this, _BetaMessageStream_rejectEndPromise, reject, "f");
|
|
457934
457934
|
}), "f");
|
|
457935
457935
|
__classPrivateFieldGet11(this, _BetaMessageStream_connectedPromise, "f").catch(() => {
|
|
@@ -458087,11 +458087,11 @@ var init_BetaMessageStream = __esm({
|
|
|
458087
458087
|
* const message = await stream.emitted('message') // rejects if the stream errors
|
|
458088
458088
|
*/
|
|
458089
458089
|
emitted(event) {
|
|
458090
|
-
return new Promise((
|
|
458090
|
+
return new Promise((resolve79, reject) => {
|
|
458091
458091
|
__classPrivateFieldSet10(this, _BetaMessageStream_catchingPromiseCreated, true, "f");
|
|
458092
458092
|
if (event !== "error")
|
|
458093
458093
|
this.once("error", reject);
|
|
458094
|
-
this.once(event,
|
|
458094
|
+
this.once(event, resolve79);
|
|
458095
458095
|
});
|
|
458096
458096
|
}
|
|
458097
458097
|
async done() {
|
|
@@ -458375,7 +458375,7 @@ var init_BetaMessageStream = __esm({
|
|
|
458375
458375
|
if (done) {
|
|
458376
458376
|
return { value: void 0, done: true };
|
|
458377
458377
|
}
|
|
458378
|
-
return new Promise((
|
|
458378
|
+
return new Promise((resolve79, reject) => readQueue.push({ resolve: resolve79, reject })).then((chunk2) => chunk2 ? { value: chunk2, done: false } : { value: void 0, done: true });
|
|
458379
458379
|
}
|
|
458380
458380
|
const chunk = pushQueue.shift();
|
|
458381
458381
|
return { value: chunk, done: false };
|
|
@@ -458670,12 +458670,12 @@ var init_MessageStream = __esm({
|
|
|
458670
458670
|
}
|
|
458671
458671
|
return this._emit("error", new AnthropicError(String(error)));
|
|
458672
458672
|
});
|
|
458673
|
-
__classPrivateFieldSet11(this, _MessageStream_connectedPromise, new Promise((
|
|
458674
|
-
__classPrivateFieldSet11(this, _MessageStream_resolveConnectedPromise,
|
|
458673
|
+
__classPrivateFieldSet11(this, _MessageStream_connectedPromise, new Promise((resolve79, reject) => {
|
|
458674
|
+
__classPrivateFieldSet11(this, _MessageStream_resolveConnectedPromise, resolve79, "f");
|
|
458675
458675
|
__classPrivateFieldSet11(this, _MessageStream_rejectConnectedPromise, reject, "f");
|
|
458676
458676
|
}), "f");
|
|
458677
|
-
__classPrivateFieldSet11(this, _MessageStream_endPromise, new Promise((
|
|
458678
|
-
__classPrivateFieldSet11(this, _MessageStream_resolveEndPromise,
|
|
458677
|
+
__classPrivateFieldSet11(this, _MessageStream_endPromise, new Promise((resolve79, reject) => {
|
|
458678
|
+
__classPrivateFieldSet11(this, _MessageStream_resolveEndPromise, resolve79, "f");
|
|
458679
458679
|
__classPrivateFieldSet11(this, _MessageStream_rejectEndPromise, reject, "f");
|
|
458680
458680
|
}), "f");
|
|
458681
458681
|
__classPrivateFieldGet12(this, _MessageStream_connectedPromise, "f").catch(() => {
|
|
@@ -458833,11 +458833,11 @@ var init_MessageStream = __esm({
|
|
|
458833
458833
|
* const message = await stream.emitted('message') // rejects if the stream errors
|
|
458834
458834
|
*/
|
|
458835
458835
|
emitted(event) {
|
|
458836
|
-
return new Promise((
|
|
458836
|
+
return new Promise((resolve79, reject) => {
|
|
458837
458837
|
__classPrivateFieldSet11(this, _MessageStream_catchingPromiseCreated, true, "f");
|
|
458838
458838
|
if (event !== "error")
|
|
458839
458839
|
this.once("error", reject);
|
|
458840
|
-
this.once(event,
|
|
458840
|
+
this.once(event, resolve79);
|
|
458841
458841
|
});
|
|
458842
458842
|
}
|
|
458843
458843
|
async done() {
|
|
@@ -459121,7 +459121,7 @@ var init_MessageStream = __esm({
|
|
|
459121
459121
|
if (done) {
|
|
459122
459122
|
return { value: void 0, done: true };
|
|
459123
459123
|
}
|
|
459124
|
-
return new Promise((
|
|
459124
|
+
return new Promise((resolve79, reject) => readQueue.push({ resolve: resolve79, reject })).then((chunk2) => chunk2 ? { value: chunk2, done: false } : { value: void 0, done: true });
|
|
459125
459125
|
}
|
|
459126
459126
|
const chunk = pushQueue.shift();
|
|
459127
459127
|
return { value: chunk, done: false };
|
|
@@ -460668,8 +460668,8 @@ var init_core2 = __esm({
|
|
|
460668
460668
|
init();
|
|
460669
460669
|
APIPromise2 = class _APIPromise extends Promise {
|
|
460670
460670
|
constructor(responsePromise, parseResponse2 = defaultParseResponse2) {
|
|
460671
|
-
super((
|
|
460672
|
-
|
|
460671
|
+
super((resolve79) => {
|
|
460672
|
+
resolve79(null);
|
|
460673
460673
|
});
|
|
460674
460674
|
this.responsePromise = responsePromise;
|
|
460675
460675
|
this.parseResponse = parseResponse2;
|
|
@@ -461220,7 +461220,7 @@ var init_core2 = __esm({
|
|
|
461220
461220
|
isAbsoluteURL2 = (url) => {
|
|
461221
461221
|
return startsWithSchemeRegexp2.test(url);
|
|
461222
461222
|
};
|
|
461223
|
-
sleep3 = (ms) => new Promise((
|
|
461223
|
+
sleep3 = (ms) => new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
461224
461224
|
validatePositiveInteger2 = (name, n2) => {
|
|
461225
461225
|
if (typeof n2 !== "number" || !Number.isInteger(n2)) {
|
|
461226
461226
|
throw new OpenAIError(`${name} must be an integer`);
|
|
@@ -461681,12 +461681,12 @@ var init_EventStream = __esm({
|
|
|
461681
461681
|
_EventStream_errored.set(this, false);
|
|
461682
461682
|
_EventStream_aborted.set(this, false);
|
|
461683
461683
|
_EventStream_catchingPromiseCreated.set(this, false);
|
|
461684
|
-
__classPrivateFieldSet14(this, _EventStream_connectedPromise, new Promise((
|
|
461685
|
-
__classPrivateFieldSet14(this, _EventStream_resolveConnectedPromise,
|
|
461684
|
+
__classPrivateFieldSet14(this, _EventStream_connectedPromise, new Promise((resolve79, reject) => {
|
|
461685
|
+
__classPrivateFieldSet14(this, _EventStream_resolveConnectedPromise, resolve79, "f");
|
|
461686
461686
|
__classPrivateFieldSet14(this, _EventStream_rejectConnectedPromise, reject, "f");
|
|
461687
461687
|
}), "f");
|
|
461688
|
-
__classPrivateFieldSet14(this, _EventStream_endPromise, new Promise((
|
|
461689
|
-
__classPrivateFieldSet14(this, _EventStream_resolveEndPromise,
|
|
461688
|
+
__classPrivateFieldSet14(this, _EventStream_endPromise, new Promise((resolve79, reject) => {
|
|
461689
|
+
__classPrivateFieldSet14(this, _EventStream_resolveEndPromise, resolve79, "f");
|
|
461690
461690
|
__classPrivateFieldSet14(this, _EventStream_rejectEndPromise, reject, "f");
|
|
461691
461691
|
}), "f");
|
|
461692
461692
|
__classPrivateFieldGet15(this, _EventStream_connectedPromise, "f").catch(() => {
|
|
@@ -461770,11 +461770,11 @@ var init_EventStream = __esm({
|
|
|
461770
461770
|
* const message = await stream.emitted('message') // rejects if the stream errors
|
|
461771
461771
|
*/
|
|
461772
461772
|
emitted(event) {
|
|
461773
|
-
return new Promise((
|
|
461773
|
+
return new Promise((resolve79, reject) => {
|
|
461774
461774
|
__classPrivateFieldSet14(this, _EventStream_catchingPromiseCreated, true, "f");
|
|
461775
461775
|
if (event !== "error")
|
|
461776
461776
|
this.once("error", reject);
|
|
461777
|
-
this.once(event,
|
|
461777
|
+
this.once(event, resolve79);
|
|
461778
461778
|
});
|
|
461779
461779
|
}
|
|
461780
461780
|
async done() {
|
|
@@ -461916,7 +461916,7 @@ var init_AssistantStream = __esm({
|
|
|
461916
461916
|
if (done) {
|
|
461917
461917
|
return { value: void 0, done: true };
|
|
461918
461918
|
}
|
|
461919
|
-
return new Promise((
|
|
461919
|
+
return new Promise((resolve79, reject) => readQueue.push({ resolve: resolve79, reject })).then((chunk2) => chunk2 ? { value: chunk2, done: false } : { value: void 0, done: true });
|
|
461920
461920
|
}
|
|
461921
461921
|
const chunk = pushQueue.shift();
|
|
461922
461922
|
return { value: chunk, done: false };
|
|
@@ -463659,7 +463659,7 @@ var init_ChatCompletionStream = __esm({
|
|
|
463659
463659
|
if (done) {
|
|
463660
463660
|
return { value: void 0, done: true };
|
|
463661
463661
|
}
|
|
463662
|
-
return new Promise((
|
|
463662
|
+
return new Promise((resolve79, reject) => readQueue.push({ resolve: resolve79, reject })).then((chunk2) => chunk2 ? { value: chunk2, done: false } : { value: void 0, done: true });
|
|
463663
463663
|
}
|
|
463664
463664
|
const chunk = pushQueue.shift();
|
|
463665
463665
|
return { value: chunk, done: false };
|
|
@@ -465512,7 +465512,7 @@ var init_ResponseStream = __esm({
|
|
|
465512
465512
|
if (done) {
|
|
465513
465513
|
return { value: void 0, done: true };
|
|
465514
465514
|
}
|
|
465515
|
-
return new Promise((
|
|
465515
|
+
return new Promise((resolve79, reject) => readQueue.push({ resolve: resolve79, reject })).then((event2) => event2 ? { value: event2, done: false } : { value: void 0, done: true });
|
|
465516
465516
|
}
|
|
465517
465517
|
const event = pushQueue.shift();
|
|
465518
465518
|
return { value: event, done: false };
|
|
@@ -470318,7 +470318,7 @@ var init_ai_helpers = __esm({
|
|
|
470318
470318
|
import { writeFile as writeFile15, unlink as unlink5, rename as rename4 } from "node:fs/promises";
|
|
470319
470319
|
import { resolve as resolve27, basename as basename7 } from "node:path";
|
|
470320
470320
|
function sleep4(ms) {
|
|
470321
|
-
return new Promise((
|
|
470321
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
470322
470322
|
}
|
|
470323
470323
|
async function uploadToImgbb(imageBuffer, apiKey) {
|
|
470324
470324
|
try {
|
|
@@ -472056,7 +472056,7 @@ function unique3(items) {
|
|
|
472056
472056
|
];
|
|
472057
472057
|
}
|
|
472058
472058
|
function sleep5(ms) {
|
|
472059
|
-
return new Promise((
|
|
472059
|
+
return new Promise((resolve79) => setTimeout(resolve79, ms));
|
|
472060
472060
|
}
|
|
472061
472061
|
var init_status_jobs = __esm({
|
|
472062
472062
|
"../cli/src/commands/_shared/status-jobs.ts"() {
|
|
@@ -481255,10 +481255,10 @@ async function prompt2(question) {
|
|
|
481255
481255
|
input: input3,
|
|
481256
481256
|
output: process.stdout
|
|
481257
481257
|
});
|
|
481258
|
-
return new Promise((
|
|
481258
|
+
return new Promise((resolve79) => {
|
|
481259
481259
|
rl.question(question, (answer) => {
|
|
481260
481260
|
rl.close();
|
|
481261
|
-
|
|
481261
|
+
resolve79(answer);
|
|
481262
481262
|
});
|
|
481263
481263
|
});
|
|
481264
481264
|
}
|
|
@@ -487506,6 +487506,8 @@ var SCENE_PRESETS2 = [
|
|
|
487506
487506
|
"kinetic-type",
|
|
487507
487507
|
"product-shot"
|
|
487508
487508
|
];
|
|
487509
|
+
var PROJECT_DIR_DESCRIPTION = "Project directory. Defaults to the surface's cwd; in MCP hosts, relative paths resolve under the configured server workspace.";
|
|
487510
|
+
var INIT_DIR_DESCRIPTION = "Project directory to create. Prefer a project name or workspace-relative path; in MCP hosts, relative paths resolve under the configured server workspace. Do not use /tmp or /home/claude unless the user explicitly asks.";
|
|
487509
487511
|
var sceneStylesSchema = z2.object({
|
|
487510
487512
|
name: z2.string().optional().describe("Style name or slug (e.g. 'Swiss Pulse', 'swiss-pulse'). Omit to list all 8.")
|
|
487511
487513
|
});
|
|
@@ -487565,7 +487567,7 @@ var sceneStylesTool = defineTool({
|
|
|
487565
487567
|
}
|
|
487566
487568
|
});
|
|
487567
487569
|
var sceneInitSchema = z2.object({
|
|
487568
|
-
dir: z2.string().describe(
|
|
487570
|
+
dir: z2.string().describe(INIT_DIR_DESCRIPTION),
|
|
487569
487571
|
name: z2.string().optional().describe("Project name. Defaults to the directory basename."),
|
|
487570
487572
|
aspect: z2.enum(["16:9", "9:16", "1:1", "4:5"]).optional().describe("Aspect ratio. Default 16:9."),
|
|
487571
487573
|
duration: z2.number().optional().describe("Default root composition duration in seconds. Default 10.")
|
|
@@ -487612,7 +487614,7 @@ var sceneAddSchema = z2.object({
|
|
|
487612
487614
|
visuals: z2.string().optional().describe("Image prompt \u2014 generates assets/scene-<id>.png via the configured image provider."),
|
|
487613
487615
|
headline: z2.string().optional().describe("Visible headline text. Defaults to the humanised scene name."),
|
|
487614
487616
|
kicker: z2.string().optional().describe("Small label above the headline (used by 'explainer' and 'product-shot' presets)."),
|
|
487615
|
-
projectDir: z2.string().optional().describe(
|
|
487617
|
+
projectDir: z2.string().optional().describe(PROJECT_DIR_DESCRIPTION),
|
|
487616
487618
|
insertInto: z2.string().optional().describe("Root composition file (relative to projectDir). Default 'index.html'."),
|
|
487617
487619
|
imageProvider: z2.enum(["gemini", "openai"]).optional().describe("Image provider for visuals. Default 'gemini'."),
|
|
487618
487620
|
voice: z2.string().optional().describe("ElevenLabs voice id or name."),
|
|
@@ -487673,7 +487675,7 @@ var sceneAddTool = defineTool({
|
|
|
487673
487675
|
}
|
|
487674
487676
|
});
|
|
487675
487677
|
var sceneLintSchema = z2.object({
|
|
487676
|
-
projectDir: z2.string().optional().describe(
|
|
487678
|
+
projectDir: z2.string().optional().describe(PROJECT_DIR_DESCRIPTION),
|
|
487677
487679
|
root: z2.string().optional().describe("Root composition file relative to projectDir. Default 'index.html'."),
|
|
487678
487680
|
fix: z2.boolean().optional().describe('Apply mechanical auto-fixes (currently: missing class="clip").')
|
|
487679
487681
|
});
|
|
@@ -487731,7 +487733,7 @@ var sceneLintTool = defineTool({
|
|
|
487731
487733
|
}
|
|
487732
487734
|
});
|
|
487733
487735
|
var sceneRepairSchema = z2.object({
|
|
487734
|
-
projectDir: z2.string().optional().describe(
|
|
487736
|
+
projectDir: z2.string().optional().describe(PROJECT_DIR_DESCRIPTION),
|
|
487735
487737
|
root: z2.string().optional().describe("Root composition file relative to projectDir. Default 'index.html'."),
|
|
487736
487738
|
dryRun: z2.boolean().optional().describe("Preview deterministic repairs without writing files.")
|
|
487737
487739
|
});
|
|
@@ -487760,7 +487762,7 @@ var sceneRepairTool = defineTool({
|
|
|
487760
487762
|
}
|
|
487761
487763
|
});
|
|
487762
487764
|
var sceneRenderSchema = z2.object({
|
|
487763
|
-
projectDir: z2.string().optional().describe(
|
|
487765
|
+
projectDir: z2.string().optional().describe(PROJECT_DIR_DESCRIPTION),
|
|
487764
487766
|
root: z2.string().optional().describe("Root composition file relative to projectDir. Default 'index.html'."),
|
|
487765
487767
|
beat: z2.string().optional().describe("Render only one storyboard beat using a temporary root."),
|
|
487766
487768
|
output: z2.string().optional().describe("Output file path (relative paths resolve against projectDir)."),
|
|
@@ -487815,7 +487817,7 @@ var sceneRenderTool = defineTool({
|
|
|
487815
487817
|
});
|
|
487816
487818
|
var sceneBuildSchema = z2.object({
|
|
487817
487819
|
projectDir: z2.string().optional().describe(
|
|
487818
|
-
"Project directory containing STORYBOARD.md, DESIGN.md, index.html. Defaults to the surface's cwd."
|
|
487820
|
+
"Project directory containing STORYBOARD.md, DESIGN.md, index.html. Defaults to the surface's cwd; in MCP hosts, relative paths resolve under the configured server workspace."
|
|
487819
487821
|
),
|
|
487820
487822
|
stage: z2.enum(["assets", "compose", "sync", "render", "all"]).optional().describe("Build stage to run. Default all."),
|
|
487821
487823
|
beat: z2.string().optional().describe("Restrict asset/compose work to one beat id."),
|
|
@@ -487930,7 +487932,7 @@ var sceneBuildTool = defineTool({
|
|
|
487930
487932
|
});
|
|
487931
487933
|
var sceneInstallSkillSchema = z2.object({
|
|
487932
487934
|
projectDir: z2.string().describe(
|
|
487933
|
-
"Project directory containing STORYBOARD.md / DESIGN.md. Required to keep cross-host calls explicit
|
|
487935
|
+
"Project directory containing STORYBOARD.md / DESIGN.md. Required to keep cross-host calls explicit; in MCP hosts, relative paths resolve under the configured server workspace."
|
|
487934
487936
|
),
|
|
487935
487937
|
host: z2.enum(["claude-code", "cursor", "auto", "all"]).optional().describe(
|
|
487936
487938
|
"Host layout target. 'auto' (default) detects installed agent hosts; 'all' writes every layout; 'claude-code' / 'cursor' force a single host. Codex / Aider read the universal SKILL.md via AGENTS.md so don't need a host-specific layout."
|
|
@@ -487980,7 +487982,7 @@ var sceneInstallSkillTool = defineTool({
|
|
|
487980
487982
|
});
|
|
487981
487983
|
var sceneComposePromptsSchema = z2.object({
|
|
487982
487984
|
projectDir: z2.string().describe(
|
|
487983
|
-
"Project directory containing STORYBOARD.md / DESIGN.md. Required to keep cross-host calls explicit."
|
|
487985
|
+
"Project directory containing STORYBOARD.md / DESIGN.md. Required to keep cross-host calls explicit; in MCP hosts, relative paths resolve under the configured server workspace."
|
|
487984
487986
|
),
|
|
487985
487987
|
beat: z2.string().optional().describe(
|
|
487986
487988
|
"Restrict the plan to a single beat by id (e.g. 'hook', '1'). Omit to emit every beat in the storyboard."
|
|
@@ -490284,13 +490286,14 @@ function sanitizeFileSegment2(value) {
|
|
|
490284
490286
|
}
|
|
490285
490287
|
|
|
490286
490288
|
// ../cli/src/tools/manifest/inspect.ts
|
|
490289
|
+
var PROJECT_DIR_DESCRIPTION2 = "Project directory. Defaults to the surface's cwd; in MCP hosts, relative paths resolve under the configured server workspace.";
|
|
490287
490290
|
var inspectProjectTool = defineTool({
|
|
490288
490291
|
name: "inspect_project",
|
|
490289
490292
|
category: "analyze",
|
|
490290
490293
|
cost: "free",
|
|
490291
490294
|
description: "Local project inspection: checks STORYBOARD.md, DESIGN.md, config, build-report, scene lint, composition files, and referenced assets. Writes review-report.json by default.",
|
|
490292
490295
|
schema: z5.object({
|
|
490293
|
-
projectDir: z5.string().optional().describe(
|
|
490296
|
+
projectDir: z5.string().optional().describe(PROJECT_DIR_DESCRIPTION2),
|
|
490294
490297
|
beat: z5.string().optional().describe("Inspect only one storyboard beat where beat-scoped checks apply."),
|
|
490295
490298
|
outputPath: z5.string().optional().describe("Optional review report path. Defaults to <project>/review-report.json."),
|
|
490296
490299
|
report: z5.boolean().optional().describe("Write review-report.json. Default true.")
|
|
@@ -490305,7 +490308,11 @@ var inspectProjectTool = defineTool({
|
|
|
490305
490308
|
});
|
|
490306
490309
|
return {
|
|
490307
490310
|
success: result.status !== "fail",
|
|
490308
|
-
data:
|
|
490311
|
+
data: {
|
|
490312
|
+
...result,
|
|
490313
|
+
workingDirectory: ctx.workingDirectory,
|
|
490314
|
+
projectDir
|
|
490315
|
+
},
|
|
490309
490316
|
error: result.status === "fail" ? `${result.issues.filter((issue) => issue.severity === "error").length} project inspection error(s)` : void 0,
|
|
490310
490317
|
humanLines: [
|
|
490311
490318
|
`${result.status === "pass" ? "\u2705" : result.status === "warn" ? "\u26A0\uFE0F" : "\u274C"} Project inspection ${result.status} \u2014 score ${result.score}/100`,
|
|
@@ -490320,7 +490327,7 @@ var inspectRenderTool = defineTool({
|
|
|
490320
490327
|
cost: "low",
|
|
490321
490328
|
description: "Render inspection: runs cheap local video checks by default, optionally adds Gemini AI review with ai: true, and writes review-report.json by default.",
|
|
490322
490329
|
schema: z5.object({
|
|
490323
|
-
projectDir: z5.string().optional().describe(
|
|
490330
|
+
projectDir: z5.string().optional().describe(PROJECT_DIR_DESCRIPTION2),
|
|
490324
490331
|
beat: z5.string().optional().describe("Inspect a render for one storyboard beat."),
|
|
490325
490332
|
videoPath: z5.string().optional().describe("Rendered video path. Defaults to build-report outputPath or latest renders/* video."),
|
|
490326
490333
|
outputPath: z5.string().optional().describe("Optional review report path. Defaults to <project>/review-report.json."),
|
|
@@ -490343,7 +490350,11 @@ var inspectRenderTool = defineTool({
|
|
|
490343
490350
|
});
|
|
490344
490351
|
return {
|
|
490345
490352
|
success: true,
|
|
490346
|
-
data:
|
|
490353
|
+
data: {
|
|
490354
|
+
...result2,
|
|
490355
|
+
workingDirectory: ctx.workingDirectory,
|
|
490356
|
+
projectDir
|
|
490357
|
+
},
|
|
490347
490358
|
humanLines: [
|
|
490348
490359
|
`Render inspection dry-run \u2014 ${result2.videoPath ? "render found" : "render missing"}`,
|
|
490349
490360
|
...result2.reportPath ? [`report: ${result2.reportPath}`] : []
|
|
@@ -490361,7 +490372,11 @@ var inspectRenderTool = defineTool({
|
|
|
490361
490372
|
});
|
|
490362
490373
|
return {
|
|
490363
490374
|
success: result.status !== "fail",
|
|
490364
|
-
data:
|
|
490375
|
+
data: {
|
|
490376
|
+
...result,
|
|
490377
|
+
workingDirectory: ctx.workingDirectory,
|
|
490378
|
+
projectDir
|
|
490379
|
+
},
|
|
490365
490380
|
error: result.status === "fail" ? `${result.issues.filter((issue) => issue.severity === "error").length} render inspection error(s)` : void 0,
|
|
490366
490381
|
humanLines: [
|
|
490367
490382
|
`${result.status === "pass" ? "\u2705" : result.status === "warn" ? "\u26A0\uFE0F" : "\u274C"} Render inspection ${result.status} \u2014 score ${result.score}/100`,
|
|
@@ -490738,7 +490753,7 @@ var generateBackgroundTool = defineTool({
|
|
|
490738
490753
|
schema: z6.object({
|
|
490739
490754
|
description: z6.string().describe("Background description / image prompt."),
|
|
490740
490755
|
aspect: z6.enum(["16:9", "9:16", "1:1"]).optional().describe("Aspect ratio. Default '16:9'."),
|
|
490741
|
-
output: z6.string().optional().describe("Output PNG path. Relative paths resolve against the surface's cwd.")
|
|
490756
|
+
output: z6.string().optional().describe("Output PNG path. Relative paths resolve against the surface's cwd; in MCP hosts, that is the configured server workspace.")
|
|
490742
490757
|
}),
|
|
490743
490758
|
async execute(args) {
|
|
490744
490759
|
const result = await executeBackground(args);
|
|
@@ -491276,8 +491291,9 @@ function stripUndefined3(value) {
|
|
|
491276
491291
|
|
|
491277
491292
|
// ../cli/src/tools/manifest/storyboard.ts
|
|
491278
491293
|
init_build_plan();
|
|
491294
|
+
var PROJECT_DIR_DESCRIPTION3 = "Project directory. Defaults to the surface's cwd; in MCP hosts, relative paths resolve under the configured server workspace.";
|
|
491279
491295
|
var projectDirSchema = z7.object({
|
|
491280
|
-
projectDir: z7.string().optional().describe(
|
|
491296
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3)
|
|
491281
491297
|
});
|
|
491282
491298
|
async function readStoryboard(projectDir) {
|
|
491283
491299
|
const path14 = resolve65(projectDir, "STORYBOARD.md");
|
|
@@ -491346,7 +491362,7 @@ var storyboardGetTool = defineTool({
|
|
|
491346
491362
|
cost: "free",
|
|
491347
491363
|
description: "Return one STORYBOARD.md beat as structured data.",
|
|
491348
491364
|
schema: z7.object({
|
|
491349
|
-
projectDir: z7.string().optional().describe(
|
|
491365
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3),
|
|
491350
491366
|
beat: z7.string().describe("Beat id to return.")
|
|
491351
491367
|
}),
|
|
491352
491368
|
async execute(args, ctx) {
|
|
@@ -491368,7 +491384,7 @@ var storyboardSetTool = defineTool({
|
|
|
491368
491384
|
cost: "free",
|
|
491369
491385
|
description: "Set or unset one cue on one beat in STORYBOARD.md.",
|
|
491370
491386
|
schema: z7.object({
|
|
491371
|
-
projectDir: z7.string().optional().describe(
|
|
491387
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3),
|
|
491372
491388
|
beat: z7.string().describe("Beat id to mutate."),
|
|
491373
491389
|
key: z7.string().describe("Cue key to set."),
|
|
491374
491390
|
value: z7.string().optional().describe("Cue value. Required unless unset is true."),
|
|
@@ -491404,7 +491420,7 @@ var storyboardMoveTool = defineTool({
|
|
|
491404
491420
|
cost: "free",
|
|
491405
491421
|
description: "Move one beat after another beat in STORYBOARD.md.",
|
|
491406
491422
|
schema: z7.object({
|
|
491407
|
-
projectDir: z7.string().optional().describe(
|
|
491423
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3),
|
|
491408
491424
|
beat: z7.string().describe("Beat id to move."),
|
|
491409
491425
|
after: z7.string().describe("Beat id that should precede the moved beat.")
|
|
491410
491426
|
}),
|
|
@@ -491434,7 +491450,7 @@ var storyboardReviseTool = defineTool({
|
|
|
491434
491450
|
cost: "low",
|
|
491435
491451
|
description: "Revise an existing STORYBOARD.md from a natural-language request. Reads project context, validates the revised storyboard, and writes unless dryRun is true.",
|
|
491436
491452
|
schema: z7.object({
|
|
491437
|
-
projectDir: z7.string().optional().describe(
|
|
491453
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3),
|
|
491438
491454
|
request: z7.string().describe("Revision request, e.g. 'make the hook punchier and shorten to 30 seconds'."),
|
|
491439
491455
|
durationSec: z7.number().optional().describe("Target total duration in seconds."),
|
|
491440
491456
|
composer: z7.enum(["claude", "openai", "gemini"]).optional().describe("Revision LLM provider. Defaults to project config or available API keys."),
|
|
@@ -491465,7 +491481,7 @@ var planTool = defineTool({
|
|
|
491465
491481
|
cost: "free",
|
|
491466
491482
|
description: "Read STORYBOARD.md and return the build plan, missing artifacts, provider needs, and estimated cost.",
|
|
491467
491483
|
schema: z7.object({
|
|
491468
|
-
projectDir: z7.string().optional().describe(
|
|
491484
|
+
projectDir: z7.string().optional().describe(PROJECT_DIR_DESCRIPTION3),
|
|
491469
491485
|
stage: z7.enum(["assets", "compose", "sync", "render", "all"]).optional().describe("Stage to plan. Default all."),
|
|
491470
491486
|
beat: z7.string().optional().describe("Restrict the plan to one beat id."),
|
|
491471
491487
|
mode: z7.enum(["agent", "batch", "auto"]).optional().describe("Build mode. Default auto."),
|
|
@@ -494458,7 +494474,7 @@ function buildFFmpegArgs(clips, sources, presetSettings, outputPath, options, so
|
|
|
494458
494474
|
return args;
|
|
494459
494475
|
}
|
|
494460
494476
|
function runFFmpegProcess(ffmpegPath, args, onProgress) {
|
|
494461
|
-
return new Promise((
|
|
494477
|
+
return new Promise((resolve79, reject) => {
|
|
494462
494478
|
const ffmpeg = spawn9(ffmpegPath, args, {
|
|
494463
494479
|
stdio: ["pipe", "pipe", "pipe"]
|
|
494464
494480
|
});
|
|
@@ -494482,7 +494498,7 @@ function runFFmpegProcess(ffmpegPath, args, onProgress) {
|
|
|
494482
494498
|
});
|
|
494483
494499
|
ffmpeg.on("close", (code) => {
|
|
494484
494500
|
if (code === 0) {
|
|
494485
|
-
|
|
494501
|
+
resolve79();
|
|
494486
494502
|
} else {
|
|
494487
494503
|
const errorMatch = stderr.match(/Error.*$/m);
|
|
494488
494504
|
const errorMsg = errorMatch ? errorMatch[0] : `FFmpeg exited with code ${code}`;
|
|
@@ -494619,7 +494635,7 @@ function getPresetSettings(preset, aspectRatio2) {
|
|
|
494619
494635
|
async function runHyperframesExport(projectPath, options, spinner2, startedAt) {
|
|
494620
494636
|
spinner2.text = "Loading project...";
|
|
494621
494637
|
const { readFile: readFile43 } = await import("node:fs/promises");
|
|
494622
|
-
const { resolve:
|
|
494638
|
+
const { resolve: resolve79 } = await import("node:path");
|
|
494623
494639
|
const { Project: Project2 } = await Promise.resolve().then(() => (init_engine(), engine_exports));
|
|
494624
494640
|
const { createHyperframesBackend: createHyperframesBackend2 } = await Promise.resolve().then(() => (init_hyperframes(), hyperframes_exports));
|
|
494625
494641
|
const { exitWithError: exitWithError2, generalError: generalError2, outputSuccess: outputSuccess2 } = await Promise.resolve().then(() => (init_output(), output_exports));
|
|
@@ -494628,7 +494644,7 @@ async function runHyperframesExport(projectPath, options, spinner2, startedAt) {
|
|
|
494628
494644
|
const content = await readFile43(filePath, "utf-8");
|
|
494629
494645
|
const project = Project2.fromJSON(JSON.parse(content));
|
|
494630
494646
|
const state = project.getState();
|
|
494631
|
-
const outputPath = options.output ?
|
|
494647
|
+
const outputPath = options.output ? resolve79(process.cwd(), options.output) : resolve79(process.cwd(), `${timelineBaseName(projectPath)}.${options.format ?? "mp4"}`);
|
|
494632
494648
|
const quality = ["draft", "standard", "high"].includes(options.preset ?? "") ? options.preset : "standard";
|
|
494633
494649
|
const backend = createHyperframesBackend2();
|
|
494634
494650
|
spinner2.text = "Rendering with Hyperframes...";
|
|
@@ -496035,6 +496051,7 @@ var guideTools = [guideTool];
|
|
|
496035
496051
|
import { z as z15 } from "zod";
|
|
496036
496052
|
import { resolve as resolve76 } from "node:path";
|
|
496037
496053
|
init_status_jobs();
|
|
496054
|
+
var PROJECT_DIR_DESCRIPTION4 = "Project directory. Defaults to the surface's cwd; in MCP hosts, relative paths resolve under the configured server workspace.";
|
|
496038
496055
|
var statusJobTool = defineTool({
|
|
496039
496056
|
name: "status_job",
|
|
496040
496057
|
category: "status",
|
|
@@ -496042,7 +496059,7 @@ var statusJobTool = defineTool({
|
|
|
496042
496059
|
description: "Read one local async job record and optionally refresh supported provider status. Supports Runway/Kling video and Replicate music live checks.",
|
|
496043
496060
|
schema: z15.object({
|
|
496044
496061
|
jobId: z15.string().describe("Local job id returned by a no-wait command."),
|
|
496045
|
-
projectDir: z15.string().optional().describe("Project directory containing .vibeframe/jobs. Defaults to nearest project root."),
|
|
496062
|
+
projectDir: z15.string().optional().describe("Project directory containing .vibeframe/jobs. Defaults to nearest project root; in MCP hosts, relative paths resolve under the configured server workspace."),
|
|
496046
496063
|
refresh: z15.boolean().optional().describe("Call provider status APIs when supported. Default true."),
|
|
496047
496064
|
wait: z15.boolean().optional().describe("Wait for completion when supported."),
|
|
496048
496065
|
output: z15.string().optional().describe("Download result media to this path when complete.")
|
|
@@ -496076,7 +496093,7 @@ var statusProjectTool = defineTool({
|
|
|
496076
496093
|
cost: "free",
|
|
496077
496094
|
description: "Summarize build-report.json, review-report.json, and local async job records for a VibeFrame project.",
|
|
496078
496095
|
schema: z15.object({
|
|
496079
|
-
projectDir: z15.string().optional().describe(
|
|
496096
|
+
projectDir: z15.string().optional().describe(PROJECT_DIR_DESCRIPTION4),
|
|
496080
496097
|
refresh: z15.boolean().optional().describe("Refresh active supported jobs before summarizing. Default false.")
|
|
496081
496098
|
}),
|
|
496082
496099
|
async execute(args, ctx) {
|
|
@@ -496084,7 +496101,11 @@ var statusProjectTool = defineTool({
|
|
|
496084
496101
|
const result = await inspectProjectStatus(projectDir, { refresh: args.refresh === true });
|
|
496085
496102
|
return {
|
|
496086
496103
|
success: true,
|
|
496087
|
-
data:
|
|
496104
|
+
data: {
|
|
496105
|
+
...result,
|
|
496106
|
+
workingDirectory: ctx.workingDirectory,
|
|
496107
|
+
projectDir
|
|
496108
|
+
},
|
|
496088
496109
|
humanLines: [
|
|
496089
496110
|
`Project status: ${result.status} (${result.currentStage}), ${result.jobs.active} active job(s), ${result.jobs.failed} failed job(s)`,
|
|
496090
496111
|
...result.build ? [`build: ${result.build.phase ?? "unknown"}`] : [],
|
|
@@ -496274,7 +496295,11 @@ function buildMcpDispatcher(manifest2) {
|
|
|
496274
496295
|
workingDirectory: process.cwd(),
|
|
496275
496296
|
surface: "mcp"
|
|
496276
496297
|
});
|
|
496277
|
-
const text = result.success ? JSON.stringify({ success: true, ...result.data }) :
|
|
496298
|
+
const text = result.success ? JSON.stringify({ success: true, ...result.data }) : result.data ? JSON.stringify({
|
|
496299
|
+
success: false,
|
|
496300
|
+
error: result.error ?? "unknown error",
|
|
496301
|
+
...result.data
|
|
496302
|
+
}) : `${name} failed: ${result.error ?? "unknown error"}`;
|
|
496278
496303
|
return { content: [{ type: "text", text }] };
|
|
496279
496304
|
} catch (error) {
|
|
496280
496305
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -496720,6 +496745,23 @@ This creates a music video-style edit where cuts happen in rhythm with the music
|
|
|
496720
496745
|
}
|
|
496721
496746
|
}
|
|
496722
496747
|
|
|
496748
|
+
// src/instructions.ts
|
|
496749
|
+
import { isAbsolute as isAbsolute9, resolve as resolve78 } from "node:path";
|
|
496750
|
+
function resolveServerWorkspaceRoot(env4 = process.env, cwd = process.cwd()) {
|
|
496751
|
+
const initCwd = env4.INIT_CWD?.trim();
|
|
496752
|
+
if (!initCwd) return cwd;
|
|
496753
|
+
return isAbsolute9(initCwd) ? initCwd : resolve78(cwd, initCwd);
|
|
496754
|
+
}
|
|
496755
|
+
function buildServerInstructions(cwd = resolveServerWorkspaceRoot()) {
|
|
496756
|
+
return [
|
|
496757
|
+
`VibeFrame MCP workspace root: ${cwd}. Treat this directory as the default workspace for relative paths.`,
|
|
496758
|
+
"For args named dir, projectDir, output, videoPath, or source, prefer workspace-relative paths unless the user explicitly provides an absolute path.",
|
|
496759
|
+
"When creating projects with init, use a project name or workspace-relative path under the workspace root.",
|
|
496760
|
+
"Do not create projects in /tmp, /home/claude, /workspace, or other synthetic roots unless the user explicitly asks.",
|
|
496761
|
+
"Before high or very-high cost provider work, run a dry-run or plan when available and ask the user to confirm provider spend."
|
|
496762
|
+
].join("\n");
|
|
496763
|
+
}
|
|
496764
|
+
|
|
496723
496765
|
// src/index.ts
|
|
496724
496766
|
var server2 = new Server(
|
|
496725
496767
|
{
|
|
@@ -496731,7 +496773,8 @@ var server2 = new Server(
|
|
|
496731
496773
|
tools: {},
|
|
496732
496774
|
resources: {},
|
|
496733
496775
|
prompts: {}
|
|
496734
|
-
}
|
|
496776
|
+
},
|
|
496777
|
+
instructions: buildServerInstructions()
|
|
496735
496778
|
}
|
|
496736
496779
|
);
|
|
496737
496780
|
server2.setRequestHandler(ListToolsRequestSchema, async () => {
|