@nodaro/cli 1.19.0 → 1.20.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.
package/README.md CHANGED
@@ -142,7 +142,6 @@ nodaro voice export --source <url> --tracks-file mix.json --watch # rende
142
142
  nodaro voice design --description "..." --text "..." --watch
143
143
  nodaro voice remix --description "..." --text "..." --watch
144
144
  nodaro voice dub --audio <url> --target-language es --watch
145
- nodaro voice clones create --name Me --file ./sample.wav
146
145
 
147
146
  # Media — social-video import, trim, save, metadata probe
148
147
  nodaro media download <url> [--max-height 720] [--section 30-90] --watch
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { stdout, stdin } from 'process';
5
5
  import pc3 from 'picocolors';
6
6
  import { writeFileSync, readFileSync, existsSync, mkdirSync, chmodSync } from 'fs';
7
7
  import { hostname, platform, homedir } from 'os';
8
- import { extname, basename, join } from 'path';
8
+ import { join } from 'path';
9
9
  import { createServer } from 'http';
10
10
  import { randomBytes } from 'crypto';
11
11
  import { spawn } from 'child_process';
@@ -29,7 +29,7 @@ var require_package = __commonJS({
29
29
  "package.json"(exports$1, module) {
30
30
  module.exports = {
31
31
  name: "@nodaro/cli",
32
- version: "1.19.0",
32
+ version: "1.20.0",
33
33
  description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
34
34
  type: "module",
35
35
  license: "Apache-2.0",
@@ -70,11 +70,11 @@ var require_package = __commonJS({
70
70
  "@inquirer/confirm": "^6.0.12",
71
71
  "@inquirer/input": "^5.0.12",
72
72
  "@inquirer/select": "^5.1.4",
73
- "@nodaro/sdk": "^2.7.0",
74
- "@nodaro/shared": "^3.7.0",
73
+ "@nodaro/sdk": "^2.11.0",
74
+ "@nodaro/shared": "^3.10.0",
75
75
  commander: "^12.1.0",
76
76
  picocolors: "^1.1.1",
77
- "@nodaro/prompts": "^1.17.2"
77
+ "@nodaro/prompts": "^1.20.0"
78
78
  },
79
79
  devDependencies: {
80
80
  tsup: "^8.5.0",
@@ -398,7 +398,7 @@ function saveWorkspace(profileName, workspaceId) {
398
398
  }
399
399
 
400
400
  // src/client.ts
401
- var CLI_VERSION = "1.19.0" ;
401
+ var CLI_VERSION = "1.20.0" ;
402
402
  function buildClient(profileName) {
403
403
  const { name, profile } = getProfile(profileName);
404
404
  if (!profile) {
@@ -1802,15 +1802,6 @@ function promptCommand() {
1802
1802
  return cmd;
1803
1803
  }
1804
1804
  var FX_PRESETS = "room|bathroom|car|hall|concert-hall|church|cave|arena|outdoor|telephone|megaphone|echo|custom";
1805
- var AUDIO_CONTENT_TYPES = {
1806
- ".mp3": "audio/mpeg",
1807
- ".wav": "audio/wav",
1808
- ".m4a": "audio/mp4",
1809
- ".aac": "audio/aac",
1810
- ".ogg": "audio/ogg",
1811
- ".flac": "audio/flac",
1812
- ".webm": "audio/webm"
1813
- };
1814
1805
  function buildVoiceFx(opts) {
1815
1806
  if ((opts.voiceFxMix !== void 0 || opts.voiceFxDelay !== void 0 || opts.voiceFxDecay !== void 0) && !opts.voiceFx) {
1816
1807
  warn("--voice-fx-mix / --voice-fx-delay / --voice-fx-decay require --voice-fx <preset>");
@@ -2251,7 +2242,7 @@ Example:
2251
2242
  handleError(err);
2252
2243
  }
2253
2244
  });
2254
- const clones = new Command("clones").description("manage your voice clones (list / create / delete)");
2245
+ const clones = new Command("clones").description("manage the voice clones you already have (list / delete) \u2014 cloning new voices is no longer offered");
2255
2246
  clones.command("list").description("list your voice clones").option("--profile <name>").option("--json").action(async (opts) => {
2256
2247
  try {
2257
2248
  const client = buildClient(opts.profile);
@@ -2269,37 +2260,6 @@ Example:
2269
2260
  handleError(err);
2270
2261
  }
2271
2262
  });
2272
- clones.command("create").description("clone a voice from a sample \u2014 an already-uploaded URL (--audio) or a local file (--file). Costs credits.").requiredOption("--name <name>", "name for the new clone").option("--audio <url>", "URL of an uploaded audio sample to clone from").option("--file <path>", "local audio file to upload and clone from (mp3/wav/m4a/aac/ogg/flac/webm)").option("--profile <name>").option("--json").addHelpText("after", `
2273
- Examples:
2274
- $ nodaro voice clones create --name "Narrator" --audio https://.../sample.mp3
2275
- $ nodaro voice clones create --name "Narrator" --file ./sample.wav`).action(async (opts) => {
2276
- try {
2277
- if (!opts.audio && !opts.file) {
2278
- warn("Provide --audio <url> or --file <path> (one is required)");
2279
- process.exit(1);
2280
- }
2281
- if (opts.audio && opts.file) {
2282
- warn("--audio and --file are mutually exclusive \u2014 pass one");
2283
- process.exit(1);
2284
- }
2285
- const client = buildClient(opts.profile);
2286
- const clone = opts.file ? await client.voices.createCloneFromFile({
2287
- name: opts.name,
2288
- file: readFileSync(opts.file),
2289
- filename: basename(opts.file),
2290
- contentType: AUDIO_CONTENT_TYPES[extname(opts.file).toLowerCase()] ?? "audio/mpeg"
2291
- }) : await client.voices.createClone({ name: opts.name, audioUrl: opts.audio });
2292
- if (opts.json) {
2293
- emit(clone, opts);
2294
- return;
2295
- }
2296
- success(`created voice clone "${clone.name}"`);
2297
- info(`voice_id: ${clone.elevenlabsVoiceId}`);
2298
- dim(`use it: nodaro voice changer --voice ${clone.elevenlabsVoiceId} --audio <url>`);
2299
- } catch (err) {
2300
- handleError(err);
2301
- }
2302
- });
2303
2263
  clones.command("delete <id>").description("delete one of your voice clones (the clone row id, not the voice_id)").option("--profile <name>").option("--json").action(async (id, opts) => {
2304
2264
  try {
2305
2265
  const client = buildClient(opts.profile);