veogent 1.5.0 → 1.5.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/index.js +42 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1055,6 +1055,48 @@ program
1055
1055
  }
1056
1056
  });
1057
1057
 
1058
+ program
1059
+ .command('request-status')
1060
+ .description('Get status of a specific request by ID')
1061
+ .requiredOption('--id <requestId>', 'Request ID to check')
1062
+ .action(async (options) => {
1063
+ try {
1064
+ const data = await api.get('/app/requests');
1065
+ let items = unwrapData(data);
1066
+ items = Array.isArray(items) ? items : (items?.items || []);
1067
+
1068
+ const found = items.find((r) => r?.id === options.id || r?.requestId === options.id);
1069
+ if (!found) {
1070
+ emitJson({ status: 'error', code: 'REQUEST_NOT_FOUND', message: `No request found with ID: ${options.id}` });
1071
+ return;
1072
+ }
1073
+
1074
+ const status = String(found?.status || '').toUpperCase();
1075
+ const result = {
1076
+ status: 'success',
1077
+ requestId: found?.id || found?.requestId,
1078
+ type: found?.type || null,
1079
+ requestStatus: status,
1080
+ sceneId: found?.sceneId || found?.scene_id || null,
1081
+ chapterId: found?.chapterId || found?.chapter_id || null,
1082
+ projectId: found?.projectId || found?.project_id || null,
1083
+ image: {
1084
+ url: found?.imageVerticalUri || found?.imageHorizontalUri || found?.imageUrl || found?.outputUrl || null,
1085
+ },
1086
+ video: {
1087
+ url: found?.videoVerticalUri || found?.videoHorizontalUri || found?.videoUrl || found?.outputUrl || null,
1088
+ },
1089
+ createdAt: found?.createdAt || found?.created_at || null,
1090
+ completedAt: found?.completedAt || found?.updatedAt || null,
1091
+ raw: found,
1092
+ };
1093
+
1094
+ emitJson(result);
1095
+ } catch (error) {
1096
+ emitJson({ status: 'error', ...formatCliError(error) });
1097
+ }
1098
+ });
1099
+
1058
1100
  program
1059
1101
  .command('queue-status')
1060
1102
  .description('Get current queue/concurrency status for authenticated user')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veogent",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
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": {