@certivu/cli 2.0.1 → 2.1.0

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 +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -304,10 +304,11 @@ function inferFormat(filePath) {
304
304
  if ([".jpg", ".jpeg", ".png", ".webp"].includes(ext)) return "image";
305
305
  if ([".mp3", ".flac", ".wav", ".ogg", ".aac", ".m4a", ".aiff"].includes(ext)) return "audio";
306
306
  if ([".pdf", ".docx", ".html", ".htm", ".txt", ".md"].includes(ext)) return "text";
307
+ if ([".mp4", ".mov", ".mkv", ".webm"].includes(ext)) return "video";
307
308
  return void 0;
308
309
  }
309
310
  async function signCommand(filePath, flags) {
310
- if (!filePath) die("Usage: certivu sign <file> --model <model> [--format image|audio|text]");
311
+ if (!filePath) die("Usage: certivu sign <file> --model <model> [--format image|audio|text|video]");
311
312
  const config = await loadConfig();
312
313
  const apiKey = flags.apiKey ?? config.apiKey;
313
314
  const generatorId = flags.generatorId ?? config.generatorId;
@@ -445,7 +446,7 @@ ${bold("Commands:")}
445
446
 
446
447
  ${bold("Sign flags:")}
447
448
  --model <name> AI model name, e.g. stable-diffusion-xl ${dim("(required)")}
448
- --format <fmt> Content format: image | audio | text ${dim("(auto-detected if omitted)")}
449
+ --format <fmt> Content format: image | audio | text | video ${dim("(auto-detected if omitted)")}
449
450
  --generator-id <id> Override generator ID
450
451
  --private-key <key> Override ML-DSA private key (base64)
451
452
  --api-key <key> Override API key
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certivu/cli",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Certivu CLI — sign and verify AI-generated content",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://certivu.ai",