@vibeframe/mcp-server 0.112.0 → 0.112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +12 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -471912,6 +471912,9 @@ var init_storyboard_edit = __esm({
471912
471912
  import { existsSync as existsSync33 } from "node:fs";
471913
471913
  import { readFile as readFile17 } from "node:fs/promises";
471914
471914
  import { dirname as dirname17, join as join31, resolve as resolve29 } from "node:path";
471915
+ function backdropCostUsd(quality) {
471916
+ return quality === "hd" ? 0.2 : 0.05;
471917
+ }
471915
471918
  async function createBuildPlan(opts) {
471916
471919
  const projectDir = resolve29(opts.projectDir);
471917
471920
  loadPlanEnv(projectDir);
@@ -472067,7 +472070,7 @@ async function createBuildPlan(opts) {
472067
472070
  reference: backdropReference,
472068
472071
  projectDir,
472069
472072
  force: opts.force,
472070
- cost: BACKDROP_COST_USD,
472073
+ cost: backdropCostUsd(imageQuality),
472071
472074
  active: includeAssets
472072
472075
  }) : null;
472073
472076
  const video = videoCue && !opts.skipVideo ? assetPlan({
@@ -472543,7 +472546,7 @@ function loadPlanEnv(projectDir) {
472543
472546
  dir = dirname17(dir);
472544
472547
  }
472545
472548
  }
472546
- var import_dotenv2, BACKDROP_COST_USD, VIDEO_COST_USD, MUSIC_COST_USD, ELEVENLABS_NARRATION_COST_USD, COMPOSE_COST_USD, SUPPORTED_BUILD_IMAGE_PROVIDERS;
472549
+ var import_dotenv2, VIDEO_COST_USD, MUSIC_COST_USD, ELEVENLABS_NARRATION_COST_USD, COMPOSE_COST_USD, SUPPORTED_BUILD_IMAGE_PROVIDERS;
472547
472550
  var init_build_plan = __esm({
472548
472551
  "../cli/src/commands/_shared/build-plan.ts"() {
472549
472552
  "use strict";
@@ -472558,7 +472561,6 @@ var init_build_plan = __esm({
472558
472561
  init_storyboard_parse();
472559
472562
  init_project_config();
472560
472563
  init_storyboard_edit();
472561
- BACKDROP_COST_USD = 3;
472562
472564
  VIDEO_COST_USD = 5;
472563
472565
  MUSIC_COST_USD = 0.5;
472564
472566
  ELEVENLABS_NARRATION_COST_USD = 0.05;
@@ -473079,7 +473081,10 @@ async function executeSceneBuild(opts) {
473079
473081
  (beat) => beat.narrationStatus === "failed" || beat.backdropStatus === "failed" || beat.videoStatus === "failed" || beat.musicStatus === "failed"
473080
473082
  );
473081
473083
  stageReports.assets.status = assetFailed ? "failed" : pendingJobs.length > 0 ? "pending-jobs" : "done";
473082
- stageReports.assets.costUsd = estimateActualAssetCost(beatOutcomes);
473084
+ stageReports.assets.costUsd = estimateActualAssetCost(
473085
+ beatOutcomes,
473086
+ opts.imageQuality ?? "hd"
473087
+ );
473083
473088
  stageReports.assets.retryWith = pendingJobs.map(
473084
473089
  (job) => `vibe status job ${job.id} --project ${projectDir} --json`
473085
473090
  );
@@ -474262,11 +474267,11 @@ function shouldRunStage(selected, stage) {
474262
474267
  if (selected === "all") return true;
474263
474268
  return selected === stage;
474264
474269
  }
474265
- function estimateActualAssetCost(outcomes) {
474270
+ function estimateActualAssetCost(outcomes, imageQuality) {
474266
474271
  let cost = 0;
474267
474272
  for (const outcome of outcomes) {
474268
474273
  if (outcome.narrationStatus === "generated") cost += 0.05;
474269
- if (outcome.backdropStatus === "generated") cost += 3;
474274
+ if (outcome.backdropStatus === "generated") cost += backdropCostUsd(imageQuality);
474270
474275
  if (outcome.videoStatus === "generated" || outcome.videoStatus === "pending") cost += 5;
474271
474276
  if (outcome.musicStatus === "generated" || outcome.musicStatus === "pending") cost += 0.5;
474272
474277
  }
@@ -498311,7 +498316,7 @@ var server2 = new Server(
498311
498316
  {
498312
498317
  name: "vibeframe",
498313
498318
  // Stamped with the package version by build.js at bundle time.
498314
- version: "0.112.0"
498319
+ version: "0.112.1"
498315
498320
  },
498316
498321
  {
498317
498322
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeframe/mcp-server",
3
- "version": "0.112.0",
3
+ "version": "0.112.1",
4
4
  "description": "VibeFrame MCP Server - AI-native video editing via Model Context Protocol",
5
5
  "type": "module",
6
6
  "bin": {
@@ -60,8 +60,8 @@
60
60
  "tsx": "^4.21.0",
61
61
  "typescript": "^5.3.3",
62
62
  "vitest": "^1.2.2",
63
- "@vibeframe/cli": "0.112.0",
64
- "@vibeframe/core": "0.112.0"
63
+ "@vibeframe/cli": "0.112.1",
64
+ "@vibeframe/core": "0.112.1"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">=20"