@vibeframe/mcp-server 0.55.0 → 0.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +82 -81
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7126,9 +7126,9 @@ var init_project_builder = __esm({
|
|
|
7126
7126
|
}
|
|
7127
7127
|
});
|
|
7128
7128
|
|
|
7129
|
-
// ../../node_modules/.pnpm/esbuild@0.
|
|
7129
|
+
// ../../node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/lib/main.js
|
|
7130
7130
|
var require_main = __commonJS({
|
|
7131
|
-
"../../node_modules/.pnpm/esbuild@0.
|
|
7131
|
+
"../../node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/lib/main.js"(exports, module) {
|
|
7132
7132
|
"use strict";
|
|
7133
7133
|
var __defProp3 = Object.defineProperty;
|
|
7134
7134
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -7333,31 +7333,25 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7333
7333
|
var quote = JSON.stringify;
|
|
7334
7334
|
var buildLogLevelDefault = "warning";
|
|
7335
7335
|
var transformLogLevelDefault = "silent";
|
|
7336
|
-
function
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
if (value.indexOf(",") >= 0) throw new Error(`Invalid ${what}: ${value}`);
|
|
7341
|
-
toJoin.push(value);
|
|
7342
|
-
}
|
|
7343
|
-
return toJoin.join(",");
|
|
7336
|
+
function validateTarget(target) {
|
|
7337
|
+
validateStringValue(target, "target");
|
|
7338
|
+
if (target.indexOf(",") >= 0) throw new Error(`Invalid target: ${target}`);
|
|
7339
|
+
return target;
|
|
7344
7340
|
}
|
|
7345
7341
|
var canBeAnything = () => null;
|
|
7346
7342
|
var mustBeBoolean = (value) => typeof value === "boolean" ? null : "a boolean";
|
|
7347
7343
|
var mustBeString = (value) => typeof value === "string" ? null : "a string";
|
|
7348
7344
|
var mustBeRegExp = (value) => value instanceof RegExp ? null : "a RegExp object";
|
|
7349
7345
|
var mustBeInteger = (value) => typeof value === "number" && value === (value | 0) ? null : "an integer";
|
|
7350
|
-
var mustBeValidPortNumber = (value) => typeof value === "number" && value === (value | 0) && value >= 0 && value <= 65535 ? null : "a valid port number";
|
|
7351
7346
|
var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
|
|
7352
7347
|
var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
|
|
7353
|
-
var mustBeArrayOfStrings = (value) => Array.isArray(value) && value.every((x) => typeof x === "string") ? null : "an array of strings";
|
|
7354
7348
|
var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
|
|
7355
7349
|
var mustBeEntryPoints = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
|
|
7356
7350
|
var mustBeWebAssemblyModule = (value) => value instanceof WebAssembly.Module ? null : "a WebAssembly.Module";
|
|
7357
7351
|
var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
|
|
7358
7352
|
var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
|
|
7359
7353
|
var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
|
|
7360
|
-
var
|
|
7354
|
+
var mustBeStringOrArray = (value) => typeof value === "string" || Array.isArray(value) ? null : "a string or an array";
|
|
7361
7355
|
var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
|
|
7362
7356
|
var mustBeStringOrURL = (value) => typeof value === "string" || value instanceof URL ? null : "a string or a URL";
|
|
7363
7357
|
function getFlag3(object, keys2, key2, mustBeFn) {
|
|
@@ -7421,7 +7415,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7421
7415
|
let legalComments = getFlag3(options, keys2, "legalComments", mustBeString);
|
|
7422
7416
|
let sourceRoot = getFlag3(options, keys2, "sourceRoot", mustBeString);
|
|
7423
7417
|
let sourcesContent = getFlag3(options, keys2, "sourcesContent", mustBeBoolean);
|
|
7424
|
-
let target = getFlag3(options, keys2, "target",
|
|
7418
|
+
let target = getFlag3(options, keys2, "target", mustBeStringOrArray);
|
|
7425
7419
|
let format4 = getFlag3(options, keys2, "format", mustBeString);
|
|
7426
7420
|
let globalName = getFlag3(options, keys2, "globalName", mustBeString);
|
|
7427
7421
|
let mangleProps = getFlag3(options, keys2, "mangleProps", mustBeRegExp);
|
|
@@ -7432,8 +7426,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7432
7426
|
let minifyWhitespace = getFlag3(options, keys2, "minifyWhitespace", mustBeBoolean);
|
|
7433
7427
|
let minifyIdentifiers = getFlag3(options, keys2, "minifyIdentifiers", mustBeBoolean);
|
|
7434
7428
|
let lineLimit = getFlag3(options, keys2, "lineLimit", mustBeInteger);
|
|
7435
|
-
let drop = getFlag3(options, keys2, "drop",
|
|
7436
|
-
let dropLabels = getFlag3(options, keys2, "dropLabels",
|
|
7429
|
+
let drop = getFlag3(options, keys2, "drop", mustBeArray);
|
|
7430
|
+
let dropLabels = getFlag3(options, keys2, "dropLabels", mustBeArray);
|
|
7437
7431
|
let charset = getFlag3(options, keys2, "charset", mustBeString);
|
|
7438
7432
|
let treeShaking = getFlag3(options, keys2, "treeShaking", mustBeBoolean);
|
|
7439
7433
|
let ignoreAnnotations = getFlag3(options, keys2, "ignoreAnnotations", mustBeBoolean);
|
|
@@ -7446,15 +7440,17 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7446
7440
|
let define2 = getFlag3(options, keys2, "define", mustBeObject);
|
|
7447
7441
|
let logOverride = getFlag3(options, keys2, "logOverride", mustBeObject);
|
|
7448
7442
|
let supported = getFlag3(options, keys2, "supported", mustBeObject);
|
|
7449
|
-
let pure = getFlag3(options, keys2, "pure",
|
|
7443
|
+
let pure = getFlag3(options, keys2, "pure", mustBeArray);
|
|
7450
7444
|
let keepNames = getFlag3(options, keys2, "keepNames", mustBeBoolean);
|
|
7451
7445
|
let platform = getFlag3(options, keys2, "platform", mustBeString);
|
|
7452
7446
|
let tsconfigRaw = getFlag3(options, keys2, "tsconfigRaw", mustBeStringOrObject);
|
|
7453
|
-
let absPaths = getFlag3(options, keys2, "absPaths", mustBeArrayOfStrings);
|
|
7454
7447
|
if (legalComments) flags.push(`--legal-comments=${legalComments}`);
|
|
7455
7448
|
if (sourceRoot !== void 0) flags.push(`--source-root=${sourceRoot}`);
|
|
7456
7449
|
if (sourcesContent !== void 0) flags.push(`--sources-content=${sourcesContent}`);
|
|
7457
|
-
if (target)
|
|
7450
|
+
if (target) {
|
|
7451
|
+
if (Array.isArray(target)) flags.push(`--target=${Array.from(target).map(validateTarget).join(",")}`);
|
|
7452
|
+
else flags.push(`--target=${validateTarget(target)}`);
|
|
7453
|
+
}
|
|
7458
7454
|
if (format4) flags.push(`--format=${format4}`);
|
|
7459
7455
|
if (globalName) flags.push(`--global-name=${globalName}`);
|
|
7460
7456
|
if (platform) flags.push(`--platform=${platform}`);
|
|
@@ -7468,10 +7464,9 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7468
7464
|
if (treeShaking !== void 0) flags.push(`--tree-shaking=${treeShaking}`);
|
|
7469
7465
|
if (ignoreAnnotations) flags.push(`--ignore-annotations`);
|
|
7470
7466
|
if (drop) for (let what of drop) flags.push(`--drop:${validateStringValue(what, "drop")}`);
|
|
7471
|
-
if (dropLabels) flags.push(`--drop-labels=${
|
|
7472
|
-
if (
|
|
7473
|
-
if (
|
|
7474
|
-
if (reserveProps) flags.push(`--reserve-props=${jsRegExpToGoRegExp(reserveProps)}`);
|
|
7467
|
+
if (dropLabels) flags.push(`--drop-labels=${Array.from(dropLabels).map((what) => validateStringValue(what, "dropLabels")).join(",")}`);
|
|
7468
|
+
if (mangleProps) flags.push(`--mangle-props=${mangleProps.source}`);
|
|
7469
|
+
if (reserveProps) flags.push(`--reserve-props=${reserveProps.source}`);
|
|
7475
7470
|
if (mangleQuoted !== void 0) flags.push(`--mangle-quoted=${mangleQuoted}`);
|
|
7476
7471
|
if (jsx) flags.push(`--jsx=${jsx}`);
|
|
7477
7472
|
if (jsxFactory) flags.push(`--jsx-factory=${jsxFactory}`);
|
|
@@ -7520,11 +7515,11 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7520
7515
|
let outdir = getFlag3(options, keys2, "outdir", mustBeString);
|
|
7521
7516
|
let outbase = getFlag3(options, keys2, "outbase", mustBeString);
|
|
7522
7517
|
let tsconfig = getFlag3(options, keys2, "tsconfig", mustBeString);
|
|
7523
|
-
let resolveExtensions = getFlag3(options, keys2, "resolveExtensions",
|
|
7524
|
-
let nodePathsInput = getFlag3(options, keys2, "nodePaths",
|
|
7525
|
-
let mainFields = getFlag3(options, keys2, "mainFields",
|
|
7526
|
-
let conditions = getFlag3(options, keys2, "conditions",
|
|
7527
|
-
let external = getFlag3(options, keys2, "external",
|
|
7518
|
+
let resolveExtensions = getFlag3(options, keys2, "resolveExtensions", mustBeArray);
|
|
7519
|
+
let nodePathsInput = getFlag3(options, keys2, "nodePaths", mustBeArray);
|
|
7520
|
+
let mainFields = getFlag3(options, keys2, "mainFields", mustBeArray);
|
|
7521
|
+
let conditions = getFlag3(options, keys2, "conditions", mustBeArray);
|
|
7522
|
+
let external = getFlag3(options, keys2, "external", mustBeArray);
|
|
7528
7523
|
let packages = getFlag3(options, keys2, "packages", mustBeString);
|
|
7529
7524
|
let alias = getFlag3(options, keys2, "alias", mustBeObject);
|
|
7530
7525
|
let loader = getFlag3(options, keys2, "loader", mustBeObject);
|
|
@@ -7533,7 +7528,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7533
7528
|
let entryNames = getFlag3(options, keys2, "entryNames", mustBeString);
|
|
7534
7529
|
let chunkNames = getFlag3(options, keys2, "chunkNames", mustBeString);
|
|
7535
7530
|
let assetNames = getFlag3(options, keys2, "assetNames", mustBeString);
|
|
7536
|
-
let inject = getFlag3(options, keys2, "inject",
|
|
7531
|
+
let inject = getFlag3(options, keys2, "inject", mustBeArray);
|
|
7537
7532
|
let banner = getFlag3(options, keys2, "banner", mustBeObject);
|
|
7538
7533
|
let footer = getFlag3(options, keys2, "footer", mustBeObject);
|
|
7539
7534
|
let entryPoints = getFlag3(options, keys2, "entryPoints", mustBeEntryPoints);
|
|
@@ -7555,13 +7550,37 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7555
7550
|
if (outbase) flags.push(`--outbase=${outbase}`);
|
|
7556
7551
|
if (tsconfig) flags.push(`--tsconfig=${tsconfig}`);
|
|
7557
7552
|
if (packages) flags.push(`--packages=${packages}`);
|
|
7558
|
-
if (resolveExtensions)
|
|
7553
|
+
if (resolveExtensions) {
|
|
7554
|
+
let values = [];
|
|
7555
|
+
for (let value of resolveExtensions) {
|
|
7556
|
+
validateStringValue(value, "resolve extension");
|
|
7557
|
+
if (value.indexOf(",") >= 0) throw new Error(`Invalid resolve extension: ${value}`);
|
|
7558
|
+
values.push(value);
|
|
7559
|
+
}
|
|
7560
|
+
flags.push(`--resolve-extensions=${values.join(",")}`);
|
|
7561
|
+
}
|
|
7559
7562
|
if (publicPath) flags.push(`--public-path=${publicPath}`);
|
|
7560
7563
|
if (entryNames) flags.push(`--entry-names=${entryNames}`);
|
|
7561
7564
|
if (chunkNames) flags.push(`--chunk-names=${chunkNames}`);
|
|
7562
7565
|
if (assetNames) flags.push(`--asset-names=${assetNames}`);
|
|
7563
|
-
if (mainFields)
|
|
7564
|
-
|
|
7566
|
+
if (mainFields) {
|
|
7567
|
+
let values = [];
|
|
7568
|
+
for (let value of mainFields) {
|
|
7569
|
+
validateStringValue(value, "main field");
|
|
7570
|
+
if (value.indexOf(",") >= 0) throw new Error(`Invalid main field: ${value}`);
|
|
7571
|
+
values.push(value);
|
|
7572
|
+
}
|
|
7573
|
+
flags.push(`--main-fields=${values.join(",")}`);
|
|
7574
|
+
}
|
|
7575
|
+
if (conditions) {
|
|
7576
|
+
let values = [];
|
|
7577
|
+
for (let value of conditions) {
|
|
7578
|
+
validateStringValue(value, "condition");
|
|
7579
|
+
if (value.indexOf(",") >= 0) throw new Error(`Invalid condition: ${value}`);
|
|
7580
|
+
values.push(value);
|
|
7581
|
+
}
|
|
7582
|
+
flags.push(`--conditions=${values.join(",")}`);
|
|
7583
|
+
}
|
|
7565
7584
|
if (external) for (let name of external) flags.push(`--external:${validateStringValue(name, "external")}`);
|
|
7566
7585
|
if (alias) {
|
|
7567
7586
|
for (let old in alias) {
|
|
@@ -7758,8 +7777,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
7758
7777
|
if (isFirstPacket) {
|
|
7759
7778
|
isFirstPacket = false;
|
|
7760
7779
|
let binaryVersion = String.fromCharCode(...bytes);
|
|
7761
|
-
if (binaryVersion !== "0.
|
|
7762
|
-
throw new Error(`Cannot start service: Host version "${"0.
|
|
7780
|
+
if (binaryVersion !== "0.24.2") {
|
|
7781
|
+
throw new Error(`Cannot start service: Host version "${"0.24.2"}" does not match binary version ${quote(binaryVersion)}`);
|
|
7763
7782
|
}
|
|
7764
7783
|
return;
|
|
7765
7784
|
}
|
|
@@ -8101,13 +8120,11 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8101
8120
|
watch: (options2 = {}) => new Promise((resolve44, reject) => {
|
|
8102
8121
|
if (!streamIn.hasFS) throw new Error(`Cannot use the "watch" API in this environment`);
|
|
8103
8122
|
const keys2 = {};
|
|
8104
|
-
const delay = getFlag3(options2, keys2, "delay", mustBeInteger);
|
|
8105
8123
|
checkForInvalidFlags(options2, keys2, `in watch() call`);
|
|
8106
8124
|
const request22 = {
|
|
8107
8125
|
command: "watch",
|
|
8108
8126
|
key: buildKey
|
|
8109
8127
|
};
|
|
8110
|
-
if (delay) request22.delay = delay;
|
|
8111
8128
|
sendRequest(refs3, request22, (error2) => {
|
|
8112
8129
|
if (error2) reject(new Error(error2));
|
|
8113
8130
|
else resolve44(void 0);
|
|
@@ -8116,13 +8133,12 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8116
8133
|
serve: (options2 = {}) => new Promise((resolve44, reject) => {
|
|
8117
8134
|
if (!streamIn.hasFS) throw new Error(`Cannot use the "serve" API in this environment`);
|
|
8118
8135
|
const keys2 = {};
|
|
8119
|
-
const port = getFlag3(options2, keys2, "port",
|
|
8136
|
+
const port = getFlag3(options2, keys2, "port", mustBeInteger);
|
|
8120
8137
|
const host = getFlag3(options2, keys2, "host", mustBeString);
|
|
8121
8138
|
const servedir = getFlag3(options2, keys2, "servedir", mustBeString);
|
|
8122
8139
|
const keyfile = getFlag3(options2, keys2, "keyfile", mustBeString);
|
|
8123
8140
|
const certfile = getFlag3(options2, keys2, "certfile", mustBeString);
|
|
8124
8141
|
const fallback2 = getFlag3(options2, keys2, "fallback", mustBeString);
|
|
8125
|
-
const cors = getFlag3(options2, keys2, "cors", mustBeObject);
|
|
8126
8142
|
const onRequest = getFlag3(options2, keys2, "onRequest", mustBeFunction);
|
|
8127
8143
|
checkForInvalidFlags(options2, keys2, `in serve() call`);
|
|
8128
8144
|
const request22 = {
|
|
@@ -8136,13 +8152,6 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8136
8152
|
if (keyfile !== void 0) request22.keyfile = keyfile;
|
|
8137
8153
|
if (certfile !== void 0) request22.certfile = certfile;
|
|
8138
8154
|
if (fallback2 !== void 0) request22.fallback = fallback2;
|
|
8139
|
-
if (cors) {
|
|
8140
|
-
const corsKeys = {};
|
|
8141
|
-
const origin = getFlag3(cors, corsKeys, "origin", mustBeStringOrArrayOfStrings);
|
|
8142
|
-
checkForInvalidFlags(cors, corsKeys, `on "cors" object`);
|
|
8143
|
-
if (Array.isArray(origin)) request22.corsOrigin = origin;
|
|
8144
|
-
else if (origin !== void 0) request22.corsOrigin = [origin];
|
|
8145
|
-
}
|
|
8146
8155
|
sendRequest(refs3, request22, (error2, response2) => {
|
|
8147
8156
|
if (error2) return reject(new Error(error2));
|
|
8148
8157
|
if (onRequest) {
|
|
@@ -8278,7 +8287,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8278
8287
|
if (filter4 == null) throw new Error(`onResolve() call is missing a filter`);
|
|
8279
8288
|
let id = nextCallbackID++;
|
|
8280
8289
|
onResolveCallbacks[id] = { name, callback, note: registeredNote };
|
|
8281
|
-
plugin2.onResolve.push({ id, filter:
|
|
8290
|
+
plugin2.onResolve.push({ id, filter: filter4.source, namespace: namespace || "" });
|
|
8282
8291
|
},
|
|
8283
8292
|
onLoad(options, callback) {
|
|
8284
8293
|
let registeredText = `This error came from the "onLoad" callback registered here:`;
|
|
@@ -8290,7 +8299,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8290
8299
|
if (filter4 == null) throw new Error(`onLoad() call is missing a filter`);
|
|
8291
8300
|
let id = nextCallbackID++;
|
|
8292
8301
|
onLoadCallbacks[id] = { name, callback, note: registeredNote };
|
|
8293
|
-
plugin2.onLoad.push({ id, filter:
|
|
8302
|
+
plugin2.onLoad.push({ id, filter: filter4.source, namespace: namespace || "" });
|
|
8294
8303
|
},
|
|
8295
8304
|
onDispose(callback) {
|
|
8296
8305
|
onDisposeCallbacks.push(callback);
|
|
@@ -8350,8 +8359,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8350
8359
|
let pluginData = getFlag3(result, keys2, "pluginData", canBeAnything);
|
|
8351
8360
|
let errors = getFlag3(result, keys2, "errors", mustBeArray);
|
|
8352
8361
|
let warnings = getFlag3(result, keys2, "warnings", mustBeArray);
|
|
8353
|
-
let watchFiles = getFlag3(result, keys2, "watchFiles",
|
|
8354
|
-
let watchDirs = getFlag3(result, keys2, "watchDirs",
|
|
8362
|
+
let watchFiles = getFlag3(result, keys2, "watchFiles", mustBeArray);
|
|
8363
|
+
let watchDirs = getFlag3(result, keys2, "watchDirs", mustBeArray);
|
|
8355
8364
|
checkForInvalidFlags(result, keys2, `from onResolve() callback in plugin ${quote(name)}`);
|
|
8356
8365
|
response.id = id2;
|
|
8357
8366
|
if (pluginName != null) response.pluginName = pluginName;
|
|
@@ -8396,8 +8405,8 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
8396
8405
|
let loader = getFlag3(result, keys2, "loader", mustBeString);
|
|
8397
8406
|
let errors = getFlag3(result, keys2, "errors", mustBeArray);
|
|
8398
8407
|
let warnings = getFlag3(result, keys2, "warnings", mustBeArray);
|
|
8399
|
-
let watchFiles = getFlag3(result, keys2, "watchFiles",
|
|
8400
|
-
let watchDirs = getFlag3(result, keys2, "watchDirs",
|
|
8408
|
+
let watchFiles = getFlag3(result, keys2, "watchFiles", mustBeArray);
|
|
8409
|
+
let watchDirs = getFlag3(result, keys2, "watchDirs", mustBeArray);
|
|
8401
8410
|
checkForInvalidFlags(result, keys2, `from onLoad() callback in plugin ${quote(name)}`);
|
|
8402
8411
|
response.id = id2;
|
|
8403
8412
|
if (pluginName != null) response.pluginName = pluginName;
|
|
@@ -8701,11 +8710,6 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e.text}`;
|
|
|
8701
8710
|
}
|
|
8702
8711
|
};
|
|
8703
8712
|
}
|
|
8704
|
-
function jsRegExpToGoRegExp(regexp) {
|
|
8705
|
-
let result = regexp.source;
|
|
8706
|
-
if (regexp.flags) result = `(?${regexp.flags})${result}`;
|
|
8707
|
-
return result;
|
|
8708
|
-
}
|
|
8709
8713
|
var fs8 = __require("fs");
|
|
8710
8714
|
var os11 = __require("os");
|
|
8711
8715
|
var path14 = __require("path");
|
|
@@ -8742,8 +8746,7 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e.text}`;
|
|
|
8742
8746
|
};
|
|
8743
8747
|
var knownWebAssemblyFallbackPackages = {
|
|
8744
8748
|
"android arm LE": "@esbuild/android-arm",
|
|
8745
|
-
"android x64 LE": "@esbuild/android-x64"
|
|
8746
|
-
"openharmony arm64 LE": "@esbuild/openharmony-arm64"
|
|
8749
|
+
"android x64 LE": "@esbuild/android-x64"
|
|
8747
8750
|
};
|
|
8748
8751
|
function pkgAndSubpathForCurrentPlatform() {
|
|
8749
8752
|
let pkg;
|
|
@@ -8883,7 +8886,7 @@ for your current platform.`);
|
|
|
8883
8886
|
"node_modules",
|
|
8884
8887
|
".cache",
|
|
8885
8888
|
"esbuild",
|
|
8886
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
8889
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.24.2"}-${path14.basename(subpath)}`
|
|
8887
8890
|
);
|
|
8888
8891
|
if (!fs8.existsSync(binTargetPath)) {
|
|
8889
8892
|
fs8.mkdirSync(path14.dirname(binTargetPath), { recursive: true });
|
|
@@ -8916,7 +8919,7 @@ for your current platform.`);
|
|
|
8916
8919
|
}
|
|
8917
8920
|
}
|
|
8918
8921
|
var _a7;
|
|
8919
|
-
var isInternalWorkerThread = ((_a7 = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a7.esbuildVersion) === "0.
|
|
8922
|
+
var isInternalWorkerThread = ((_a7 = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a7.esbuildVersion) === "0.24.2";
|
|
8920
8923
|
var esbuildCommandAndArgs = () => {
|
|
8921
8924
|
if ((!ESBUILD_BINARY_PATH || false) && (path23.basename(__filename) !== "main.js" || path23.basename(__dirname) !== "lib")) {
|
|
8922
8925
|
throw new Error(
|
|
@@ -8983,7 +8986,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
8983
8986
|
}
|
|
8984
8987
|
}
|
|
8985
8988
|
};
|
|
8986
|
-
var version = "0.
|
|
8989
|
+
var version = "0.24.2";
|
|
8987
8990
|
var build = (options) => ensureServiceIsRunning().build(options);
|
|
8988
8991
|
var context3 = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
|
|
8989
8992
|
var transform = (input3, options) => ensureServiceIsRunning().transform(input3, options);
|
|
@@ -9086,7 +9089,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
9086
9089
|
var ensureServiceIsRunning = () => {
|
|
9087
9090
|
if (longLivedService) return longLivedService;
|
|
9088
9091
|
let [command3, args] = esbuildCommandAndArgs();
|
|
9089
|
-
let child = child_process.spawn(command3, args.concat(`--service=${"0.
|
|
9092
|
+
let child = child_process.spawn(command3, args.concat(`--service=${"0.24.2"}`, "--ping"), {
|
|
9090
9093
|
windowsHide: true,
|
|
9091
9094
|
stdio: ["pipe", "pipe", "inherit"],
|
|
9092
9095
|
cwd: defaultWD
|
|
@@ -9190,7 +9193,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
9190
9193
|
esbuild: node_exports
|
|
9191
9194
|
});
|
|
9192
9195
|
callback(service);
|
|
9193
|
-
let stdout = child_process.execFileSync(command3, args.concat(`--service=${"0.
|
|
9196
|
+
let stdout = child_process.execFileSync(command3, args.concat(`--service=${"0.24.2"}`), {
|
|
9194
9197
|
cwd: defaultWD,
|
|
9195
9198
|
windowsHide: true,
|
|
9196
9199
|
input: stdin,
|
|
@@ -9210,7 +9213,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
9210
9213
|
var startWorkerThreadService = (worker_threads2) => {
|
|
9211
9214
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
|
9212
9215
|
let worker = new worker_threads2.Worker(__filename, {
|
|
9213
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.
|
|
9216
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.24.2" },
|
|
9214
9217
|
transferList: [workerPort],
|
|
9215
9218
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
9216
9219
|
//
|
|
@@ -442765,9 +442768,7 @@ async function getApiKey(envVar, providerName, optionValue) {
|
|
|
442765
442768
|
}
|
|
442766
442769
|
function hasApiKey(envVar) {
|
|
442767
442770
|
loadEnv();
|
|
442768
|
-
|
|
442769
|
-
const key2 = getApiKeyFromConfig(envVar);
|
|
442770
|
-
return !!key2;
|
|
442771
|
+
return !!process.env[envVar];
|
|
442771
442772
|
}
|
|
442772
442773
|
async function requireApiKey(envVar, providerName, cliOverride) {
|
|
442773
442774
|
const key2 = await getApiKey(envVar, providerName, cliOverride);
|
|
@@ -443990,7 +443991,7 @@ async function executeSilenceCut(options) {
|
|
|
443990
443991
|
return { success: false, error: `Video not found: ${videoPath}` };
|
|
443991
443992
|
}
|
|
443992
443993
|
if (!commandExists("ffmpeg")) {
|
|
443993
|
-
return { success: false, error: "FFmpeg not found.
|
|
443994
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
443994
443995
|
}
|
|
443995
443996
|
const method = useGemini ? "gemini" : "ffmpeg";
|
|
443996
443997
|
try {
|
|
@@ -444140,7 +444141,7 @@ async function executeJumpCut(options) {
|
|
|
444140
444141
|
return { success: false, error: `Video not found: ${videoPath}` };
|
|
444141
444142
|
}
|
|
444142
444143
|
if (!commandExists("ffmpeg")) {
|
|
444143
|
-
return { success: false, error: "FFmpeg not found.
|
|
444144
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
444144
444145
|
}
|
|
444145
444146
|
const openaiKey = apiKey || process.env.OPENAI_API_KEY;
|
|
444146
444147
|
if (!openaiKey) {
|
|
@@ -444285,7 +444286,7 @@ async function executeCaption(options) {
|
|
|
444285
444286
|
return { success: false, error: `Video not found: ${videoPath}` };
|
|
444286
444287
|
}
|
|
444287
444288
|
if (!commandExists("ffmpeg")) {
|
|
444288
|
-
return { success: false, error: "FFmpeg not found.
|
|
444289
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
444289
444290
|
}
|
|
444290
444291
|
const openaiKey = apiKey || process.env.OPENAI_API_KEY;
|
|
444291
444292
|
if (!openaiKey) {
|
|
@@ -444423,7 +444424,7 @@ async function executeNoiseReduce(options) {
|
|
|
444423
444424
|
return { success: false, error: `File not found: ${inputPath}` };
|
|
444424
444425
|
}
|
|
444425
444426
|
if (!commandExists("ffmpeg")) {
|
|
444426
|
-
return { success: false, error: "FFmpeg not found.
|
|
444427
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
444427
444428
|
}
|
|
444428
444429
|
try {
|
|
444429
444430
|
const inputDuration = await getVideoDuration(inputPath);
|
|
@@ -444477,7 +444478,7 @@ async function executeFade(options) {
|
|
|
444477
444478
|
return { success: false, error: `Video not found: ${videoPath}` };
|
|
444478
444479
|
}
|
|
444479
444480
|
if (!commandExists("ffmpeg")) {
|
|
444480
|
-
return { success: false, error: "FFmpeg not found.
|
|
444481
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
444481
444482
|
}
|
|
444482
444483
|
try {
|
|
444483
444484
|
const totalDuration = await getVideoDuration(videoPath);
|
|
@@ -444703,7 +444704,7 @@ async function applyTextOverlays(options) {
|
|
|
444703
444704
|
return { success: false, error: `Video not found: ${absVideoPath}` };
|
|
444704
444705
|
}
|
|
444705
444706
|
if (!commandExists("ffmpeg")) {
|
|
444706
|
-
return { success: false, error: "FFmpeg not found.
|
|
444707
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
444707
444708
|
}
|
|
444708
444709
|
let hasDrawtext = true;
|
|
444709
444710
|
try {
|
|
@@ -445605,7 +445606,7 @@ function _registerImageCommands(aiCommand) {
|
|
|
445605
445606
|
exitWithError(notFoundError(absVideoPath));
|
|
445606
445607
|
}
|
|
445607
445608
|
if (!commandExists("ffmpeg")) {
|
|
445608
|
-
exitWithError(generalError("FFmpeg not found.
|
|
445609
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
445609
445610
|
}
|
|
445610
445611
|
const apiKey2 = await getApiKey("GOOGLE_API_KEY", "Google", options.apiKey);
|
|
445611
445612
|
if (!apiKey2) {
|
|
@@ -446064,7 +446065,7 @@ async function executeThumbnailBestFrame(options) {
|
|
|
446064
446065
|
return { success: false, error: `Video not found: ${videoPath}` };
|
|
446065
446066
|
}
|
|
446066
446067
|
if (!commandExists("ffmpeg")) {
|
|
446067
|
-
return { success: false, error: "FFmpeg not found.
|
|
446068
|
+
return { success: false, error: "FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details." };
|
|
446068
446069
|
}
|
|
446069
446070
|
const googleKey = apiKey || process.env.GOOGLE_API_KEY;
|
|
446070
446071
|
if (!googleKey) {
|
|
@@ -452443,7 +452444,7 @@ No API key needed (FFmpeg only). Use --use-gemini for smart detection (requires
|
|
|
452443
452444
|
exitWithError(notFoundError(absVideoPath));
|
|
452444
452445
|
}
|
|
452445
452446
|
if (!commandExists("ffmpeg")) {
|
|
452446
|
-
exitWithError(generalError("FFmpeg not found.
|
|
452447
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
452447
452448
|
}
|
|
452448
452449
|
const ext = extname10(videoPath);
|
|
452449
452450
|
const name = basename12(videoPath, ext);
|
|
@@ -452537,7 +452538,7 @@ Requires: OPENAI_API_KEY (Whisper transcription) + FFmpeg`).action(async (videoP
|
|
|
452537
452538
|
exitWithError(notFoundError(absVideoPath));
|
|
452538
452539
|
}
|
|
452539
452540
|
if (!commandExists("ffmpeg")) {
|
|
452540
|
-
exitWithError(generalError("FFmpeg not found.
|
|
452541
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
452541
452542
|
}
|
|
452542
452543
|
if (options.dryRun) {
|
|
452543
452544
|
outputResult({
|
|
@@ -452611,7 +452612,7 @@ Requires: OPENAI_API_KEY (Whisper transcription) + FFmpeg`).action(async (videoP
|
|
|
452611
452612
|
exitWithError(notFoundError(absInputPath));
|
|
452612
452613
|
}
|
|
452613
452614
|
if (!commandExists("ffmpeg")) {
|
|
452614
|
-
exitWithError(generalError("FFmpeg not found.
|
|
452615
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
452615
452616
|
}
|
|
452616
452617
|
if (options.dryRun) {
|
|
452617
452618
|
outputResult({
|
|
@@ -452670,7 +452671,7 @@ Requires: OPENAI_API_KEY (Whisper transcription) + FFmpeg`).action(async (videoP
|
|
|
452670
452671
|
exitWithError(notFoundError(absVideoPath));
|
|
452671
452672
|
}
|
|
452672
452673
|
if (!commandExists("ffmpeg")) {
|
|
452673
|
-
exitWithError(generalError("FFmpeg not found.
|
|
452674
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
452674
452675
|
}
|
|
452675
452676
|
if (options.dryRun) {
|
|
452676
452677
|
outputResult({
|
|
@@ -452807,7 +452808,7 @@ Requires: OPENAI_API_KEY (Whisper transcription) + FFmpeg`).action(async (videoP
|
|
|
452807
452808
|
exitWithError(notFoundError(absVideoPath));
|
|
452808
452809
|
}
|
|
452809
452810
|
if (!commandExists("ffmpeg")) {
|
|
452810
|
-
exitWithError(generalError("FFmpeg not found.
|
|
452811
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
452811
452812
|
}
|
|
452812
452813
|
if (options.dryRun) {
|
|
452813
452814
|
const fillers2 = options.fillers ? options.fillers.split(",").map((f) => f.trim()) : void 0;
|
|
@@ -454815,7 +454816,7 @@ ${segmentTexts}`,
|
|
|
454815
454816
|
return;
|
|
454816
454817
|
}
|
|
454817
454818
|
if (!commandExists("ffmpeg")) {
|
|
454818
|
-
exitWithError(generalError("FFmpeg not found.
|
|
454819
|
+
exitWithError(generalError("FFmpeg not found. Install with: brew install ffmpeg (macOS) or apt install ffmpeg (Linux). Run `vibe doctor` for details."));
|
|
454819
454820
|
}
|
|
454820
454821
|
const spinner2 = ora("Processing audio ducking...").start();
|
|
454821
454822
|
const absMusic = resolve33(process.cwd(), musicPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeframe/mcp-server",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
4
4
|
"description": "VibeFrame MCP Server - AI-native video editing via Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"tsx": "^4.21.0",
|
|
58
58
|
"typescript": "^5.3.3",
|
|
59
59
|
"vitest": "^1.2.2",
|
|
60
|
-
"@vibeframe/
|
|
61
|
-
"@vibeframe/
|
|
60
|
+
"@vibeframe/core": "0.55.2",
|
|
61
|
+
"@vibeframe/cli": "0.55.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=20"
|