parley-live 0.3.0 → 0.4.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 (3) hide show
  1. package/README.md +2 -1
  2. package/dist/index.js +218 -16
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -18,7 +18,8 @@ parley ugc-ad --product product.jpg --name "Cold Brew Kit" --actor jordan --mark
18
18
  |---|---|
19
19
  | `parley doctor [--require <version>]` | Node, server, session, credits, live engines, the `@last` outputs, whether a newer release exists, and the fix for anything missing. `--require` fails "ready" when this CLI is older than what your skills expect. Run it first; `--json` for agents. |
20
20
  | `parley voice "<text>" \| --file script.txt` | Narration as a hosted WAV. `--voice warm\|energetic\|documentary\|deep\|bright\|storyteller`, `--quality natural\|fish\|studio`, `--no-fallback`, `--out`. Natural voice: 1 credit per 1,000 characters; studio: 1 per 300. Becomes `@last` for `--narration`. `parley voices` lists personas and prices. |
21
- | `parley studio …` | The film pipeline without JSON: `character add\|cast\|list`, `shot add\|list`, `render <shotId> [--wait]`, `assemble`, `reels`. Every subcommand takes `--project proj_…`. |
21
+ | `parley studio …` | The film pipeline without JSON: `character add\|cast\|list`, `location add\|cast\|list`, `shot add\|list`, `render <shotId> [--wait]`, `assemble`, `reels`. Every subcommand takes `--project proj_…`. |
22
+ | `parley deploy <dir> --name <slug>` | Ship a built static site (index.html at the root) to a live URL. Reuse `--project proj_…` to redeploy the same site at the same URL. Free. |
22
23
  | `parley login [--no-browser]` | Device-code sign-in. Prints a link, you sign in once in the browser, the CLI receives a session token. `--no-browser` prints the link instead of opening it (cloud sandboxes, SSH). |
23
24
  | `parley account` | Credit balance. |
24
25
  | `parley engines` | Which video engines this server can run right now, with credit rates. |
package/dist/index.js CHANGED
@@ -14,10 +14,10 @@
14
14
  *
15
15
  * Run `parley help <command>` for the flags of one command.
16
16
  */
17
- import { readFileSync, existsSync, mkdirSync } from 'node:fs';
17
+ import { readFileSync, existsSync, mkdirSync, readdirSync, statSync } from 'node:fs';
18
18
  import path from 'node:path';
19
19
  import { api, authWebUrl, backendUrl, clearCredentials, CliError, downloadTo, fileToDataUri, isUrl, loadCredentials, loadLast, openInBrowser, rememberLast, resolveRef, saveCredentials, sleep, } from './client.js';
20
- const VERSION = '0.3.0';
20
+ const VERSION = '0.4.0';
21
21
  /** Semver-ish compare: 1 if a > b, -1 if a < b, 0 if equal (numeric parts only). */
22
22
  function compareVersions(a, b) {
23
23
  const pa = a.replace(/^v/, '').split('.').map((x) => parseInt(x, 10) || 0);
@@ -430,6 +430,53 @@ const VOICE_TIERS = ['natural', 'fish', 'studio'];
430
430
  * synthetic fallback voice silently (voiceWarning), and --no-fallback refuses
431
431
  * it outright. The result is @last for --narration.
432
432
  */
433
+ const VOICE_MAX_CHARS = 5000;
434
+ const VOICE_SPLIT_TARGET = 4500;
435
+ /**
436
+ * Split a long narration into sections of at most `max` characters, cutting
437
+ * at paragraph breaks first, then sentence ends, then (last resort) spaces,
438
+ * so a section never ends mid-word and rarely mid-sentence.
439
+ */
440
+ export function splitNarration(text, max = VOICE_SPLIT_TARGET) {
441
+ const clean = text.replace(/\r\n/g, '\n').trim();
442
+ if (clean.length <= max)
443
+ return [clean];
444
+ const sections = [];
445
+ let current = '';
446
+ const push = () => { if (current.trim())
447
+ sections.push(current.trim()); current = ''; };
448
+ const units = clean.split(/\n\s*\n/).flatMap((para) => {
449
+ if (para.length <= max)
450
+ return [para];
451
+ const sentences = para.match(/[^.!?]+[.!?]+["')\]]*\s*|[^.!?]+$/g) || [para];
452
+ return sentences.flatMap((s) => {
453
+ if (s.length <= max)
454
+ return [s];
455
+ const words = s.split(/\s+/);
456
+ const chunks = [];
457
+ let w = '';
458
+ for (const word of words) {
459
+ if ((w + ' ' + word).trim().length > max) {
460
+ chunks.push(w.trim());
461
+ w = word;
462
+ }
463
+ else
464
+ w = (w + ' ' + word).trim();
465
+ }
466
+ if (w)
467
+ chunks.push(w);
468
+ return chunks;
469
+ });
470
+ });
471
+ for (const unit of units) {
472
+ const sep = current && /\n\s*\n/.test(clean.slice(clean.indexOf(unit) - 3, clean.indexOf(unit))) ? '\n\n' : ' ';
473
+ if ((current + sep + unit).trim().length > max)
474
+ push();
475
+ current = current ? `${current}${sep}${unit}` : unit;
476
+ }
477
+ push();
478
+ return sections;
479
+ }
433
480
  async function cmdVoice(p) {
434
481
  const file = str(p.flags.file);
435
482
  let text = p.positionals.join(' ').trim();
@@ -439,24 +486,43 @@ async function cmdVoice(p) {
439
486
  text = readFileSync(file, 'utf8').trim();
440
487
  }
441
488
  if (!text)
442
- throw new CliError(`Usage: parley voice "<text>" | --file script.txt [--voice ${VOICES.join('|')}] [--quality ${VOICE_TIERS.join('|')}] [--no-fallback] [--out narration.wav]`);
443
- if (text.length > 5000)
444
- throw new CliError(`The text is ${text.length} characters; each request takes up to 5,000. Split the script into sections and make one file per section.`);
489
+ throw new CliError(`Usage: parley voice "<text>" | --file script.txt [--voice ${VOICES.join('|')}] [--quality ${VOICE_TIERS.join('|')}] [--split] [--no-fallback] [--out narration.wav]`);
445
490
  const voice = str(p.flags.voice);
446
491
  if (voice && !VOICES.includes(voice))
447
492
  throw new CliError(`--voice must be one of ${VOICES.join(', ')}`);
448
493
  const quality = str(p.flags.quality, 'natural');
449
494
  if (!VOICE_TIERS.includes(quality))
450
495
  throw new CliError(`--quality must be one of ${VOICE_TIERS.join(', ')}`);
451
- const body = { text, quality, ...(voice ? { voice } : {}), ...(p.flags['no-fallback'] === true ? { allowFallback: false } : {}) };
452
- note(`Narrating ${text.length} characters with the ${quality} voice${voice ? ` (${voice})` : ''}…`);
453
- const r = await api('/api/voice/generate', { body });
496
+ const split = p.flags.split === true || text.length > VOICE_MAX_CHARS;
497
+ if (text.length > VOICE_MAX_CHARS && p.flags.split !== true) {
498
+ note(`The text is ${text.length} characters (over one request's ${VOICE_MAX_CHARS}); splitting into sections and joining them into one narration.`);
499
+ }
500
+ const sections = split ? splitNarration(text) : [text];
501
+ const common = { quality, ...(voice ? { voice } : {}), ...(p.flags['no-fallback'] === true ? { allowFallback: false } : {}) };
502
+ const parts = [];
503
+ for (let i = 0; i < sections.length; i++) {
504
+ note(sections.length > 1
505
+ ? `Narrating section ${i + 1}/${sections.length} (${sections[i].length} characters) with the ${quality} voice${voice ? ` (${voice})` : ''}…`
506
+ : `Narrating ${sections[i].length} characters with the ${quality} voice${voice ? ` (${voice})` : ''}…`);
507
+ parts.push(await api('/api/voice/generate', { body: { text: sections[i], ...common } }));
508
+ }
509
+ let finalUrl = parts[0].audioUrl;
510
+ let durationSeconds = parts[0].durationSeconds;
511
+ if (parts.length > 1) {
512
+ note(`Joining ${parts.length} sections into one narration…`);
513
+ const j = await api('/api/voice/join', { body: { urls: parts.map((x) => x.audioUrl) } });
514
+ finalUrl = j.audioUrl;
515
+ durationSeconds = j.durationSeconds;
516
+ }
454
517
  const out = outPathFor(p, `parley-voice-${Date.now()}.wav`);
455
- const bytes = await downloadTo(r.audioUrl, out);
456
- rememberLast('audio', { file: out, url: r.audioUrl });
457
- if (r.voiceWarning)
458
- console.error(`warning: ${r.voiceWarning}`);
459
- emit({ ok: true, file: out, bytes, audioUrl: r.audioUrl, durationSeconds: r.durationSeconds, engine: r.engine, voice: r.voice, creditsCharged: r.creditsCharged, voiceWarning: r.voiceWarning ?? null }, `Saved ${out} (${r.durationSeconds ?? '?'}s, ${r.engine}, ${r.creditsCharged} credits)\nHosted: ${r.audioUrl}`);
518
+ const bytes = await downloadTo(finalUrl, out);
519
+ rememberLast('audio', { file: out, url: finalUrl });
520
+ const warnings = parts.map((x) => x.voiceWarning).filter((w) => !!w);
521
+ if (warnings.length)
522
+ console.error(`warning: ${warnings[0]}${warnings.length > 1 ? ` (${warnings.length} sections)` : ''}`);
523
+ const creditsCharged = parts.reduce((s, x) => s + (x.creditsCharged || 0), 0);
524
+ const engines = [...new Set(parts.map((x) => x.engine))].join('+');
525
+ emit({ ok: true, file: out, bytes, audioUrl: finalUrl, durationSeconds, engine: engines, voice: parts[0].voice, creditsCharged, sections: parts.length, sectionUrls: parts.map((x) => x.audioUrl), voiceWarning: warnings[0] ?? null }, `Saved ${out} (${durationSeconds ?? '?'}s, ${engines}, ${creditsCharged} credits${parts.length > 1 ? `, ${parts.length} sections joined` : ''})\nHosted: ${finalUrl}`);
460
526
  }
461
527
  async function cmdVoices() {
462
528
  const v = await api('/api/voice/voices', { auth: false });
@@ -536,6 +602,32 @@ async function cmdStudio(p) {
536
602
  const items = Array.isArray(r) ? r : r.characters || [];
537
603
  return out({ ok: true, characters: items }, () => items.map((c) => `${c.id} ${c.name} refs=${(c.reference_image_paths || []).length}`).join('\n') || '(no characters yet)');
538
604
  }
605
+ if (group === 'location' && action === 'add') {
606
+ const P = needProject();
607
+ const name = str(p.flags.name);
608
+ const description = str(p.flags.description);
609
+ if (!name || !description)
610
+ throw new CliError('studio location add needs --name and --description (the place, time of day, light, the props that identify it).');
611
+ const l = await api(`/api/studio/projects/${P}/locations`, { body: { name, description } });
612
+ return out({ ok: true, location: l }, () => `Location ${l.name} created: ${l.id}\nNext: parley studio location cast ${l.id}`);
613
+ }
614
+ if (group === 'location' && action === 'cast') {
615
+ if (!target)
616
+ throw new CliError('Usage: parley studio location cast <locationId> [--count 1] [--force]');
617
+ const body = { count: num(p.flags.count, 1) };
618
+ if (p.flags.force === true)
619
+ body.force = true;
620
+ note('Casting the location (renders its reference image)…');
621
+ const r = await api(`/api/studio/locations/${target}/cast`, { body });
622
+ const refs = r.location?.reference_image_paths || r.reference_image_paths || [];
623
+ return out({ ok: true, ...r }, () => `${r.skipped_reason ? r.skipped_reason + '\n' : ''}Reference images: ${refs.length ? refs.join(', ') : '(see JSON)'}`);
624
+ }
625
+ if (group === 'location' && action === 'list') {
626
+ const P = needProject();
627
+ const r = await api(`/api/studio/projects/${P}/locations`);
628
+ const items = Array.isArray(r) ? r : r.locations || [];
629
+ return out({ ok: true, locations: items }, () => items.map((l) => `${l.id} ${l.name} refs=${(l.reference_image_paths || []).length}`).join('\n') || '(no locations yet)');
630
+ }
539
631
  if (group === 'shot' && action === 'add') {
540
632
  const P = needProject();
541
633
  const framing = str(p.flags.framing);
@@ -634,7 +726,113 @@ async function cmdStudio(p) {
634
726
  const items = r.reels || (Array.isArray(r) ? r : []);
635
727
  return out({ ok: true, reels: items }, () => items.map((x) => `${x.id} ${x.public_url || x.video_path}`).join('\n') || '(no reels yet)');
636
728
  }
637
- throw new CliError('Usage: parley studio <character add|cast|list | shot add|list | render <shotId> | assemble | reels> … (see `parley help studio`)');
729
+ throw new CliError('Usage: parley studio <character add|cast|list | location add|cast|list | shot add|list | render <shotId> | assemble | reels> … (see `parley help studio`)');
730
+ }
731
+ const DEPLOY_MAX_FILES = 600;
732
+ const DEPLOY_MAX_TOTAL_BYTES = 40 * 1024 * 1024;
733
+ const DEPLOY_SKIP_DIRS = new Set(['node_modules', '.git', '.svn', '.hg', '.parley', '.cache', '.next', '.nuxt', '.turbo', 'coverage']);
734
+ const TEXT_EXT = new Set(['html', 'htm', 'css', 'js', 'mjs', 'cjs', 'map', 'json', 'txt', 'md', 'svg', 'xml', 'webmanifest', 'txt', 'csv', 'ics', 'rss', 'atom', 'yml', 'yaml', 'toml', 'wasm.txt']);
735
+ const MIME = {
736
+ html: 'text/html', htm: 'text/html', css: 'text/css', js: 'text/javascript', mjs: 'text/javascript', cjs: 'text/javascript', map: 'application/json',
737
+ json: 'application/json', txt: 'text/plain', md: 'text/markdown', svg: 'image/svg+xml', xml: 'application/xml', webmanifest: 'application/manifest+json',
738
+ png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', gif: 'image/gif', webp: 'image/webp', avif: 'image/avif', ico: 'image/x-icon',
739
+ mp4: 'video/mp4', webm: 'video/webm', mp3: 'audio/mpeg', wav: 'audio/wav', ogg: 'audio/ogg',
740
+ woff: 'font/woff', woff2: 'font/woff2', ttf: 'font/ttf', otf: 'font/otf', pdf: 'application/pdf', wasm: 'application/wasm', glb: 'model/gltf-binary',
741
+ };
742
+ function walkDir(root, rel = '') {
743
+ const out = [];
744
+ for (const entry of readdirSync(path.join(root, rel), { withFileTypes: true })) {
745
+ if (entry.name.startsWith('.DS_Store'))
746
+ continue;
747
+ const r = rel ? `${rel}/${entry.name}` : entry.name;
748
+ if (entry.isDirectory()) {
749
+ if (!DEPLOY_SKIP_DIRS.has(entry.name))
750
+ out.push(...walkDir(root, r));
751
+ }
752
+ else if (entry.isFile())
753
+ out.push(r);
754
+ }
755
+ return out;
756
+ }
757
+ /**
758
+ * parley deploy <dir> --name <project> [--project proj_…] [--summary "…"]
759
+ * Ships a built static site (the folder with index.html at its root) to
760
+ * Parley's Cloudflare Pages deploy: every file is written into a fresh
761
+ * workspace (text as text, binaries base64), then deployed. Prints the live
762
+ * URL. Static only: the server's deploy is a direct upload with no build
763
+ * step, so run your build first and point this at its output.
764
+ */
765
+ async function cmdDeploy(p) {
766
+ const dir = p.positionals[0];
767
+ const name = str(p.flags.name);
768
+ if (!dir || !name)
769
+ throw new CliError('Usage: parley deploy <built-site-dir> --name <project-name> [--project proj_…] [--summary "…"]\n The dir must contain index.html at its root (run your build first).');
770
+ const root = path.resolve(dir);
771
+ if (!existsSync(root) || !statSync(root).isDirectory())
772
+ throw new CliError(`Not a directory: ${dir}`);
773
+ if (!existsSync(path.join(root, 'index.html')))
774
+ throw new CliError(`No index.html at the root of ${dir}. Point deploy at the BUILT output (dist/, build/, out/, _site/), not the source.`);
775
+ if (!/[a-z0-9]/i.test(name))
776
+ throw new CliError('--name must contain at least one letter or digit.');
777
+ const files = walkDir(root);
778
+ if (files.length === 0)
779
+ throw new CliError('The directory is empty.');
780
+ if (files.length > DEPLOY_MAX_FILES)
781
+ throw new CliError(`${files.length} files is over the ${DEPLOY_MAX_FILES}-file limit; deploy the built output only.`);
782
+ let total = 0;
783
+ for (const f of files)
784
+ total += statSync(path.join(root, f)).size;
785
+ if (total > DEPLOY_MAX_TOTAL_BYTES)
786
+ throw new CliError(`${Math.round(total / 1048576)} MB is over the ${DEPLOY_MAX_TOTAL_BYTES / 1048576} MB limit. Move large media to Parley-hosted URLs (parley image / video print them) and reference them instead of shipping them.`);
787
+ const project = str(p.flags.project) || `proj_site-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
788
+ if (!/^proj_[A-Za-z0-9_-]{6,}$/.test(project))
789
+ throw new CliError('--project must look like proj_ followed by at least six letters, digits, _ or -.');
790
+ note(`Uploading ${files.length} files (${Math.round(total / 1024)} KB) into workspace ${project}…`);
791
+ let n = 0;
792
+ for (const f of files) {
793
+ const abs = path.join(root, f);
794
+ const ext = path.extname(f).slice(1).toLowerCase();
795
+ const mimeType = MIME[ext] || (TEXT_EXT.has(ext) ? 'text/plain' : 'application/octet-stream');
796
+ const isText = TEXT_EXT.has(ext) || mimeType.startsWith('text/');
797
+ const buf = readFileSync(abs);
798
+ await api(`/api/workspace/${project}/files`, {
799
+ body: { path: f.replace(/\\/g, '/'), content: isText ? buf.toString('utf8') : buf.toString('base64'), mimeType, isBase64: !isText, allowFullRewrite: true },
800
+ });
801
+ n++;
802
+ if (n % 25 === 0)
803
+ note(` ${n}/${files.length}`);
804
+ }
805
+ note('Deploying…');
806
+ const summary = str(p.flags.summary);
807
+ const d = await api('/api/deploy-project', { body: { workspaceId: project, projectName: name, ...(summary ? { summary } : {}) } });
808
+ let url = d.url;
809
+ let deploymentId = d.deploymentId;
810
+ if (!url && d.jobId) {
811
+ // Asynchronous variant: poll the job until it reports a URL.
812
+ const deadline = Date.now() + 20 * 60 * 1000;
813
+ const pollMs = Number(process.env.PARLEY_POLL_MS) || 4000;
814
+ let last = '';
815
+ while (Date.now() < deadline) {
816
+ await sleep(pollMs);
817
+ const j = await api(`/api/deploy-project/jobs/${d.jobId}`);
818
+ const stage = j.progress?.stage || j.stage || j.status;
819
+ if (stage !== last) {
820
+ note(` ${stage}${j.progress?.message ? ` – ${j.progress.message}` : ''}`);
821
+ last = stage;
822
+ }
823
+ if (j.status === 'failed' || j.ok === false)
824
+ throw new CliError(j.error || j.message || 'Deploy failed.');
825
+ url = j.url || j.result?.url;
826
+ deploymentId = j.deploymentId || j.result?.deploymentId;
827
+ if (url && (j.status === 'succeeded' || j.status === 'done' || j.status === 'complete' || j.stage === 'done'))
828
+ break;
829
+ if (url && !j.status)
830
+ break;
831
+ }
832
+ }
833
+ if (!url)
834
+ throw new CliError(`Deploy did not return a URL: ${JSON.stringify(d).slice(0, 200)}`);
835
+ emit({ ok: true, url, projectName: name, workspaceId: project, deploymentId: deploymentId ?? null, files: files.length, bytes: total }, `Live: ${url}\nWorkspace ${project} (${files.length} files). Redeploy the same site with --project ${project}.`);
638
836
  }
639
837
  /**
640
838
  * parley api <GET|POST|PATCH|PUT|DELETE> <path> [--data '<json>' | --data @file.json]
@@ -766,15 +964,16 @@ async function cmdDoctor(p) {
766
964
  function help(topic) {
767
965
  const lines = {
768
966
  doctor: 'parley doctor [--require <version>] [--json]\n Node, server, session, credits, live engines, the @last outputs and whether a newer release exists, with the fix for anything missing. --require fails "ready" when this CLI is older than what your skills expect. Run this first.',
769
- voice: `parley voice "<text>" | --file script.txt [--voice ${VOICES.join('|')}] [--quality ${VOICE_TIERS.join('|')}] [--no-fallback] [--out narration.wav]\n Narration as a hosted WAV (natural voice 1 credit per 1,000 characters; studio 1 per 300). Becomes @last for --narration.`,
967
+ voice: `parley voice "<text>" | --file script.txt [--voice ${VOICES.join('|')}] [--quality ${VOICE_TIERS.join('|')}] [--split] [--no-fallback] [--out narration.wav]\n Narration as a hosted WAV (natural voice 1 credit per 1,000 characters; studio 1 per 300). Text over 5,000 characters is split at paragraph and sentence breaks and joined back into one narration. Becomes @last for --narration.`,
770
968
  voices: 'parley voices\n The narration personas, the tiers and their prices.',
771
- studio: 'parley studio character add|cast|list · shot add|list · render <shotId> [--wait] · assemble · reels\n The film pipeline without JSON: cast characters (identity lock), write shots ("lens look, move" camera), render, assemble a reel. Every subcommand takes --project proj_… and --json.',
969
+ studio: 'parley studio character add|cast|list · location add|cast|list · shot add|list · render <shotId> [--wait] · assemble · reels\n The film pipeline without JSON: cast characters and locations (identity locks), write shots ("lens look, move" camera), render, assemble a reel. Every subcommand takes --project proj_… and --json.',
772
970
  login: 'parley login [--no-browser] [--backend URL]\n Sign in once in your browser. --no-browser prints the link instead of opening it (cloud sandboxes, SSH). Stores a session token under ~/.parley (or $PARLEY_HOME).',
773
971
  image: `parley image "<prompt>" [--ratio ${Object.keys(RATIO_TO_SIZE).join('|')}] [--model gpt-image-2|gemini-3-pro-image-preview] [--quality low|medium|high] [--image-size 1K|2K|4K] [--ref <file|url|@last>]... [--out file]\n Generate an image. --ratio sizes it for the destination; --ref passes reference images (identity / style locks).`,
774
972
  video: `parley video "<motion prompt>" --image <file|url|@last> [--look ${LOOKS.join('|')}] [--move <slug>]... [--duration 5] [--ratio 16:9|9:16|1:1] [--out clip.mp4]\n Animate a still (@last = the image you just made) or --look photoreal for text-to-video. --move adds named camera moves; see \`parley camera-moves\`.`,
775
973
  thumbnail: 'parley thumbnail "<video title>" [--variants 1-3] [--overlay "2-4 WORDS"] [--accent WORD] [--person true|false] [--out dir]',
776
974
  'ugc-ad': `parley ugc-ad --product <image> --name "Product" [--actor maya|jordan|sofia|marcus | --face <image>] [--angle ${ANGLES.join('|')}] [--marketplace ${MARKETPLACES.join('|')}] [--points "a;b;c"] [--seconds 3-16] [--url https://...] [--out ad.mp4]`,
777
975
  youtube: `parley youtube --beat <https still>... [--narration <https audio>] [--music <https audio>] [--tier ${YT_TIERS.join('|')}] [--captions] [--silent] [--project <workspace id>] [--out video.mp4]\n Animate ordered beat stills and cut them to the narration into one finished video.`,
976
+ deploy: 'parley deploy <built-site-dir> --name <project-name> [--project proj_…] [--summary "…"]\n Ship a built static site (index.html at the root) to a live URL on Parley\'s hosting. Reuse --project to redeploy the same site.',
778
977
  api: 'parley api <GET|POST|PATCH|PUT|DELETE> </path> [--data \'{...}\' | --data @file.json]\n Signed raw call to any Parley endpoint (Studio projects, characters, shots, renders, reels).',
779
978
  engines: 'parley engines\n Which video engines this server can run right now and their credit rates.',
780
979
  'camera-moves': 'parley camera-moves\n The named camera-move presets accepted by `parley video --move`.',
@@ -849,6 +1048,9 @@ async function main(argv) {
849
1048
  case 'api':
850
1049
  await cmdApi(p);
851
1050
  break;
1051
+ case 'deploy':
1052
+ await cmdDeploy(p);
1053
+ break;
852
1054
  case 'help':
853
1055
  case '--help':
854
1056
  case '-h':
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "parley-live",
3
- "version": "0.3.0",
4
- "description": "Generate images, video clips with named camera moves, narration, YouTube thumbnails, product ads, complete videos and Studio films from the terminal with Parley. Built for coding agents: every command has a --json mode.",
3
+ "version": "0.4.0",
4
+ "description": "Generate images, video clips with named camera moves, narration, YouTube thumbnails, product ads, complete videos and Studio films, and deploy static sites, from the terminal with Parley. Built for coding agents: every command has a --json mode.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {