veogent 1.0.2 → 1.0.4

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/index.js +23 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -283,12 +283,12 @@ program
283
283
  // --- Execution Request (Generate Image / Video) ---
284
284
  program
285
285
  .command('request')
286
- .description('Create a job request (GENERATE_IMAGES, GENERATE_VIDEO, CREATE_SCENE_VIDEO)')
286
+ .description('Create a job request (GENERATE_IMAGES, GENERATE_VIDEO)')
287
287
  .requiredOption('-t, --type <type>', 'Request type (e.g., GENERATE_IMAGES, GENERATE_VIDEO)')
288
288
  .requiredOption('-p, --project <project>', 'Project ID')
289
289
  .requiredOption('-c, --chapter <chapter>', 'Chapter ID')
290
290
  .requiredOption('-s, --scene <scene>', 'Scene ID')
291
- .option('-o, --orientation <orientation>', 'Request orientation (HORIZONTAL, VERTICAL)', '')
291
+ .option('-o, --orientation <orientation>', 'Request orientation (HORIZONTAL, VERTICAL)')
292
292
  .option('-i, --imagemodel <imagemodel>', 'Image Model (imagen4, imagen3.5)', 'imagen4')
293
293
  .option('-v, --videomodel <videomodel>', 'Video Model (veo_3_1_fast, veo_3_1_fast_r2v)', 'veo_3_1_fast_r2v')
294
294
  .option('-S, --speed <speed>', 'Video Speed (normal, timelapse, slowmotion)', 'normal')
@@ -302,22 +302,26 @@ program
302
302
  };
303
303
 
304
304
  // Conditionally add fields based on strict DTO validators
305
- if (['CREATE_SCENE_VIDEO', 'CREATE_CHAPTER_VIDEO', 'VIDEO_UPSCALE'].includes(options.type)) {
306
- payload.orientation = options.orientation || 'HORIZONTAL'; // Provide fallback
307
- }
308
305
  if (options.type === 'GENERATE_IMAGES') {
309
306
  payload.imageModel = options.imagemodel;
307
+ payload.orientation = options.orientation || 'HORIZONTAL';
310
308
  }
311
309
  if (options.type === 'GENERATE_VIDEO') {
312
310
  payload.model = options.videomodel;
313
311
  payload.videoSpeedMode = options.speed;
314
- payload.useFlowKey = false;
312
+ payload.useFlowKey = true;
313
+ // Add fallback or provided orientation for video generations
314
+ payload.orientation = options.orientation || 'HORIZONTAL';
315
+ payload.imageModel = options.imagemodel;
316
+ }
317
+ if (['CREATE_SCENE_VIDEO', 'CREATE_CHAPTER_VIDEO', 'VIDEO_UPSCALE'].includes(options.type)) {
318
+ payload.orientation = options.orientation || 'HORIZONTAL'; // Provide fallback
315
319
  }
316
320
 
317
321
  const data = await api.post('/app/request', payload);
318
322
  console.log(JSON.stringify({ status: "success", request: data.data || data }, null, 2));
319
323
  } catch (error) {
320
- console.log(JSON.stringify({ status: "error", message: error.message }));
324
+ console.log(JSON.stringify({ status: "error", message: error.response?.data?.message || error.message }));
321
325
  }
322
326
  });
323
327
 
@@ -333,6 +337,18 @@ program
333
337
  }
334
338
  });
335
339
 
340
+ program
341
+ .command('assets <projectId> <chapterId> <sceneId> <type>')
342
+ .description('Check generated assets history/status for a scene. Types: GENERATE_IMAGES, CREATE_SCENE_VIDEO, GENERATE_VIDEO, EDIT_IMAGE')
343
+ .action(async (projectId, chapterId, sceneId, type) => {
344
+ try {
345
+ const data = await api.get(`/app/request/assets/${projectId}/${chapterId}/${sceneId}?type=${type}`);
346
+ console.log(JSON.stringify(data.data || data, null, 2));
347
+ } catch (error) {
348
+ console.log(JSON.stringify({ status: "error", message: error.message }));
349
+ }
350
+ });
351
+
336
352
  // --- System ---
337
353
  program
338
354
  .command('skill')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veogent",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "The official CLI to interact with the VEOGENT API - AI Video and Image generation platform",
5
5
  "main": "index.js",
6
6
  "bin": {