makefx 0.1.2 → 0.1.3

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 (3) hide show
  1. package/README.md +1 -1
  2. package/makefx.mjs +37 -18
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -174,4 +174,4 @@ Run `makefx --help` or `makefx help <command>` for command-specific options.
174
174
  - Media generation guide: https://makefx.app/docs/media-playbooks
175
175
  - Source: https://github.com/krasnoperov/inventory
176
176
 
177
- Version: 0.1.2
177
+ Version: 0.1.3
package/makefx.mjs CHANGED
@@ -21297,6 +21297,7 @@ var VIDEO_GENERATION_TIERS = [
21297
21297
  "fast",
21298
21298
  "lite"
21299
21299
  ];
21300
+ var VIDEO_GENERATION_AUDIO_TOGGLE_MODELS = [];
21300
21301
  var VIDEO_GENERATION_RESOLUTIONS_BY_TIER = {
21301
21302
  generate: VIDEO_GENERATION_RESOLUTIONS,
21302
21303
  fast: VIDEO_GENERATION_RESOLUTIONS,
@@ -21306,6 +21307,11 @@ var DEFAULT_VIDEO_GENERATION_TIER = "generate";
21306
21307
  function normalizeVideoGenerationAspectRatio(value) {
21307
21308
  return VIDEO_GENERATION_ASPECT_RATIOS.includes(value) ? value : void 0;
21308
21309
  }
21310
+ var VIDEO_GENERATION_TIER_MODELS = {
21311
+ generate: "veo-3.1-generate-preview",
21312
+ fast: "veo-3.1-fast-generate-preview",
21313
+ lite: "veo-3.1-lite-generate-preview"
21314
+ };
21309
21315
  function normalizeVideoGenerationResolution(value) {
21310
21316
  return VIDEO_GENERATION_RESOLUTIONS.includes(value) ? value : void 0;
21311
21317
  }
@@ -21316,12 +21322,18 @@ function normalizeVideoGenerationDurationSeconds(value) {
21316
21322
  function normalizeVideoGenerationTier(value) {
21317
21323
  return VIDEO_GENERATION_TIERS.includes(value) ? value : void 0;
21318
21324
  }
21325
+ function getVideoGenerationModelForTier(tier = DEFAULT_VIDEO_GENERATION_TIER) {
21326
+ return VIDEO_GENERATION_TIER_MODELS[tier];
21327
+ }
21319
21328
  function getVideoGenerationResolutionsForTier(tier = DEFAULT_VIDEO_GENERATION_TIER) {
21320
21329
  return VIDEO_GENERATION_RESOLUTIONS_BY_TIER[tier];
21321
21330
  }
21322
21331
  function isVideoGenerationResolutionSupportedForTier(resolution, tier = DEFAULT_VIDEO_GENERATION_TIER) {
21323
21332
  return VIDEO_GENERATION_RESOLUTIONS_BY_TIER[tier].includes(resolution);
21324
21333
  }
21334
+ function doesVideoGenerationModelSupportAudioToggle(model) {
21335
+ return VIDEO_GENERATION_AUDIO_TOGGLE_MODELS.includes(model);
21336
+ }
21325
21337
  //#endregion
21326
21338
  //#region src/shared/imageGenerationOptions.ts
21327
21339
  var IMAGE_MODEL_SELECTIONS = ["pro", "flash"];
@@ -22341,6 +22353,13 @@ function validateVideoAudioOptions(parsed, mediaKind) {
22341
22353
  if (!(parsed.options.audio !== void 0 || parsed.options["no-audio"] !== void 0 || parsed.options.noAudio !== void 0)) return;
22342
22354
  if (mediaKind !== "video") throw new Error("--audio and --no-audio are only supported for video generation");
22343
22355
  if (parsed.options.audio !== void 0 && (parsed.options["no-audio"] !== void 0 || parsed.options.noAudio !== void 0)) throw new Error("Pass either --audio or --no-audio, not both");
22356
+ if (parsed.options["no-audio"] !== void 0 || parsed.options.noAudio !== void 0) {
22357
+ const tierValue = readOptionalOption(parsed, "tier", "tier") ?? readOptionalOption(parsed, "video-tier", "videoTier");
22358
+ const videoTier = tierValue === void 0 ? DEFAULT_VIDEO_GENERATION_TIER : normalizeVideoGenerationTier(tierValue);
22359
+ if (!videoTier) throw new Error("--tier must be generate, fast, or lite");
22360
+ const model = getVideoGenerationModelForTier(videoTier);
22361
+ if (!doesVideoGenerationModelSupportAudioToggle(model)) throw new Error(`${model} does not support --no-audio. Use the default audio-enabled output or omit the flag.`);
22362
+ }
22344
22363
  }
22345
22364
  function parseVideoAudioOptions(parsed, mediaKind) {
22346
22365
  if (mediaKind === "video") {
@@ -22698,11 +22717,11 @@ function printUsage$5() {
22698
22717
  const resolutionByTier = VIDEO_GENERATION_TIERS.map((tier) => `${tier}: ${getVideoGenerationResolutionsForTier(tier).join(", ")}`).join("; ");
22699
22718
  console.log(`
22700
22719
  Usage:
22701
- makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio|--no-audio] [--space <id>]
22720
+ makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio] [--space <id>]
22702
22721
  makefx video generate --follow <variant_id> -o <file> [--space <id>]
22703
- makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio|--no-audio] [--space <id>]
22722
+ makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio] [--space <id>]
22704
22723
  makefx video refine --follow <variant_id> -o <file> [--space <id>]
22705
- makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio|--no-audio] [--space <id>]
22724
+ makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${aspectValues}] [--resolution ${resolutionValues}] [--duration ${durationValues}] [--tier ${tierValues}] [--audio] [--space <id>]
22706
22725
  makefx video derive --follow <variant_id> -o <file> [--space <id>]
22707
22726
 
22708
22727
  Video:
@@ -22713,7 +22732,7 @@ Video:
22713
22732
 
22714
22733
  Audio:
22715
22734
  --audio Request native synchronized Veo audio (default)
22716
- --no-audio Request a silent video; MakeFX records this and adds a silent-video instruction.
22735
+ --no-audio Not supported by current Veo models; rejected before a job is created.
22717
22736
 
22718
22737
  Production metadata:
22719
22738
  --scene-label <label> --timeline-start-ms <ms> --duration-ms <ms>
@@ -23607,7 +23626,7 @@ Options:
23607
23626
  }
23608
23627
  //#endregion
23609
23628
  //#region src/cli/index.ts
23610
- var CLI_VERSION = "0.1.2+2907a84228d9";
23629
+ var CLI_VERSION = "0.1.3+21fbf493922f";
23611
23630
  async function main() {
23612
23631
  const argv = process$1.argv.slice(2);
23613
23632
  if (argv[0] === "--") argv.shift();
@@ -23832,10 +23851,10 @@ Audio:
23832
23851
  audio sfx generate "prompt" --name <name> -o <file>
23833
23852
 
23834
23853
  Video:
23835
- video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio]
23854
+ video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio]
23836
23855
  video generate --follow <variant_id> -o <file>
23837
- video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio]
23838
- video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio]
23856
+ video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio]
23857
+ video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio]
23839
23858
 
23840
23859
  Options:
23841
23860
  --env <environment> Target environment (production|stage|local), default: production
@@ -24084,13 +24103,13 @@ function printVideoHelp(positionals) {
24084
24103
  if (subcommand === "generate") {
24085
24104
  console.log(`
24086
24105
  Usage:
24087
- makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24106
+ makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24088
24107
  makefx video generate --follow <variant_id> -o <file> [--space <id>]
24089
24108
 
24090
24109
  ${videoCapabilityHelp()}
24091
24110
 
24092
24111
  Audio:
24093
- Video defaults to generated audio. Use --no-audio to record a silent-video request and add a silent-video instruction.
24112
+ Video defaults to generated audio. Current Veo models do not support --no-audio; the CLI rejects it before creating a job.
24094
24113
 
24095
24114
  Production metadata:
24096
24115
  --scene-label <label> --timeline-start-ms <ms> --duration-ms <ms>
@@ -24101,13 +24120,13 @@ Production metadata:
24101
24120
  if (subcommand === "refine") {
24102
24121
  console.log(`
24103
24122
  Usage:
24104
- makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24123
+ makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24105
24124
  makefx video refine --follow <variant_id> -o <file> [--space <id>]
24106
24125
 
24107
24126
  ${videoCapabilityHelp()}
24108
24127
 
24109
24128
  Audio:
24110
- Video defaults to generated audio. Use --no-audio to record a silent-video request and add a silent-video instruction.
24129
+ Video defaults to generated audio. Current Veo models do not support --no-audio; the CLI rejects it before creating a job.
24111
24130
 
24112
24131
  Production metadata:
24113
24132
  --scene-label <label> --timeline-start-ms <ms> --duration-ms <ms>
@@ -24118,13 +24137,13 @@ Production metadata:
24118
24137
  if (subcommand === "derive") {
24119
24138
  console.log(`
24120
24139
  Usage:
24121
- makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24140
+ makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24122
24141
  makefx video derive --follow <variant_id> -o <file> [--space <id>]
24123
24142
 
24124
24143
  ${videoCapabilityHelp()}
24125
24144
 
24126
24145
  Audio:
24127
- Video defaults to generated audio. Use --no-audio to record a silent-video request and add a silent-video instruction.
24146
+ Video defaults to generated audio. Current Veo models do not support --no-audio; the CLI rejects it before creating a job.
24128
24147
 
24129
24148
  Production metadata:
24130
24149
  --scene-label <label> --timeline-start-ms <ms> --duration-ms <ms>
@@ -24134,15 +24153,15 @@ Production metadata:
24134
24153
  }
24135
24154
  console.log(`
24136
24155
  Usage:
24137
- makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24156
+ makefx video generate "prompt" --name <name> --type <type> -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24138
24157
  makefx video generate --follow <variant_id> -o <file> [--space <id>]
24139
- makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24140
- makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio|--no-audio] [--space <id>]
24158
+ makefx video refine --variant <variant_id> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24159
+ makefx video derive --refs <variant_or_file,variant_or_file> --name <name> --type <type> "prompt" -o <file> [--aspect ${videoAspectValues()}] [--resolution ${videoResolutionValues()}] [--duration ${videoDurationValues()}] [--tier ${videoTierValues()}] [--audio] [--space <id>]
24141
24160
 
24142
24161
  ${videoCapabilityHelp()}
24143
24162
 
24144
24163
  Audio:
24145
- Video defaults to generated audio. Use --no-audio to record a silent-video request and add a silent-video instruction.
24164
+ Video defaults to generated audio. Current Veo models do not support --no-audio; the CLI rejects it before creating a job.
24146
24165
 
24147
24166
  Production metadata:
24148
24167
  --scene-label <label> --timeline-start-ms <ms> --duration-ms <ms>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makefx",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Command-line interface for AI-assisted game asset production with Make Effects.",
5
5
  "license": "MIT",
6
6
  "type": "module",