@doufunao123/asset-gateway 0.14.0 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ function normalizeError(error2) {
70
70
 
71
71
  // src/meta.ts
72
72
  var CLI_NAME = "asset-gateway";
73
- var CLI_VERSION = "0.13.0";
73
+ var CLI_VERSION = "0.14.1";
74
74
  var CLI_DESCRIPTION = "Universal asset generation gateway CLI";
75
75
  var DEFAULT_GATEWAY_URL = "https://upload.xiaomao.chat";
76
76
 
@@ -472,7 +472,7 @@ var SCHEMAS = {
472
472
  }
473
473
  },
474
474
  sprite: {
475
- description: "Generate character animation using SpriteForge AI",
475
+ description: "Generate character animation (Veo AI video + frame extraction)",
476
476
  params: {
477
477
  "--prompt": { type: "string", required: true, description: "Character description" },
478
478
  "--input": { type: "string", description: "Reference image path or URL" },
@@ -977,7 +977,7 @@ function createGenerateCommand() {
977
977
  ).requiredOption("--prompt <text>", "Text to synthesize").option("--voice <name>", "Qwen voice name or custom voice id", "Cherry").option(
978
978
  "--voice-id <id>",
979
979
  "ElevenLabs voice_id (use with --provider elevenlabs; routes to TTS API)"
980
- ).option("--language <lang>", "Language hint: Auto, Chinese, English, Japanese, etc.", "Auto").option("--model <model>", "Model id (Qwen TTS or ElevenLabs model_id)", "qwen3-tts-flash").option("--instructions <text>", "Natural language speaking instructions (for instruct models)").option("--provider <id>", "qwen_tts | elevenlabs").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
980
+ ).option("--language <lang>", "Language hint: Auto, Chinese, English, Japanese, etc.", "Auto").option("--model <model>", "Model id (default: auto-detect from voice; qwen3-tts-flash for built-in voices)").option("--instructions <text>", "Natural language speaking instructions (for instruct models)").option("--provider <id>", "qwen_tts | elevenlabs").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
981
981
  try {
982
982
  const ctx = createContext(this);
983
983
  const params = {
@@ -989,9 +989,9 @@ function createGenerateCommand() {
989
989
  const body = {
990
990
  asset_type: "tts",
991
991
  prompt: options.prompt,
992
- model: options.model,
993
992
  params
994
993
  };
994
+ if (options.model) body.model = options.model;
995
995
  if (options.provider) body.provider = options.provider;
996
996
  const data = await ctx.client.post("/api/generate", body);
997
997
  const localPath = await saveOutput(data, "tts", options.outputDir);
@@ -1051,7 +1051,7 @@ function createGenerateCommand() {
1051
1051
  })
1052
1052
  );
1053
1053
  command.addCommand(
1054
- new Command3("sprite").description("Generate character animation using SpriteForge AI").requiredOption("--prompt <text>", "Character description").option("--input <path>", "Reference image for character consistency (local path or URL)").option("--animation-type <type>", "Animation type (idle, walk, run, attack, death, jump, cast, dance, or any custom)", "walk").option("--direction <dir>", "Facing direction: right, left, front, back", "right").option("--view <view>", "Camera view angle: auto, side, front, back, three-quarter, none", "auto").option("--framing <framing>", "Framing: full-body, waist-up, close-up, none", "full-body").option("--background <bg>", "Background: auto, white, none, or free text (e.g. 'forest clearing')", "auto").option("--duration <n>", "Video duration in seconds (1-15)", "2").option("--style <style>", "Visual style (e.g. pixel art, hand-drawn, chibi)").option("--output-format <fmt>", "Output format: spritesheet or gif", "spritesheet").option("--fps <n>", "GIF frame rate", "8").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
1054
+ new Command3("sprite").description("Generate character animation (Veo AI video + frame extraction)").requiredOption("--prompt <text>", "Character description").option("--input <path>", "Reference image for character consistency (local path or URL)").option("--animation-type <type>", "Animation type (idle, walk, run, attack, death, jump, cast, dance, or any custom)", "walk").option("--direction <dir>", "Facing direction: front, left, right, back", "front").option("--view <view>", "Camera view angle: auto, side, front, back, three-quarter, none", "auto").option("--framing <framing>", "Framing: full-body, waist-up, close-up, none", "full-body").option("--background <bg>", "Background: auto, white, none, or free text (e.g. 'forest clearing')", "auto").option("--duration <n>", "Video duration in seconds (1-15)", "2").option("--style <style>", "Visual style (e.g. pixel art, hand-drawn, chibi)").option("--output-format <fmt>", "Output format: spritesheet or gif", "spritesheet").option("--fps <n>", "GIF frame rate", "8").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
1055
1055
  try {
1056
1056
  const ctx = createContext(this);
1057
1057
  const params = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doufunao123/asset-gateway",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Universal asset generation gateway CLI",
5
5
  "type": "module",
6
6
  "bin": {