@vibeframe/mcp-server 0.94.0 → 0.95.0
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 +15 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -25480,8 +25480,18 @@ async function fileExists(path14) {
|
|
|
25480
25480
|
return false;
|
|
25481
25481
|
}
|
|
25482
25482
|
}
|
|
25483
|
+
async function findProjectConfigPath(cwd = process.cwd()) {
|
|
25484
|
+
let dir = resolve2(cwd);
|
|
25485
|
+
for (; ; ) {
|
|
25486
|
+
const candidate = getProjectConfigPath(dir);
|
|
25487
|
+
if (await fileExists(candidate)) return candidate;
|
|
25488
|
+
const parent = resolve2(dir, "..");
|
|
25489
|
+
if (parent === dir) return null;
|
|
25490
|
+
dir = parent;
|
|
25491
|
+
}
|
|
25492
|
+
}
|
|
25483
25493
|
async function getActiveScope(cwd) {
|
|
25484
|
-
return await
|
|
25494
|
+
return await findProjectConfigPath(cwd) ? "project" : "user";
|
|
25485
25495
|
}
|
|
25486
25496
|
function applyDefaults(parsed) {
|
|
25487
25497
|
const defaults = createDefaultConfig();
|
|
@@ -25513,7 +25523,8 @@ async function loadConfig(options = {}) {
|
|
|
25513
25523
|
const { scope, cwd, merge: merge3 } = options;
|
|
25514
25524
|
if (merge3) {
|
|
25515
25525
|
const user = await readConfigFile(USER_CONFIG_PATH);
|
|
25516
|
-
const
|
|
25526
|
+
const projectPath2 = await findProjectConfigPath(cwd);
|
|
25527
|
+
const project2 = projectPath2 ? await readConfigFile(projectPath2) : null;
|
|
25517
25528
|
if (!user && !project2) return null;
|
|
25518
25529
|
if (!user) return project2;
|
|
25519
25530
|
if (!project2) return user;
|
|
@@ -25534,7 +25545,8 @@ async function loadConfig(options = {}) {
|
|
|
25534
25545
|
if (scope) {
|
|
25535
25546
|
return readConfigFile(getConfigPath(scope, cwd));
|
|
25536
25547
|
}
|
|
25537
|
-
const
|
|
25548
|
+
const projectPath = await findProjectConfigPath(cwd);
|
|
25549
|
+
const project = projectPath ? await readConfigFile(projectPath) : null;
|
|
25538
25550
|
if (project) return project;
|
|
25539
25551
|
return readConfigFile(USER_CONFIG_PATH);
|
|
25540
25552
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeframe/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.95.0",
|
|
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/core": "0.
|
|
61
|
-
"@vibeframe/cli": "0.
|
|
60
|
+
"@vibeframe/core": "0.95.0",
|
|
61
|
+
"@vibeframe/cli": "0.95.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=20"
|