@kinetune/cli 2.10.0 → 2.11.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
@@ -53,6 +53,22 @@ kinetune videos wait VIDEO_ID # its progress, or why it waits (its p
53
53
  kinetune videos download VIDEO_ID
54
54
  ```
55
55
 
56
+ ## Bring in your released songs
57
+
58
+ Link the artist to their released songs once, then import them by id: Kinetune fetches the audio and uses each release's cover.
59
+
60
+ ```bash
61
+ kinetune artists find --q "Nova Lane" # the catalog profiles that match, with their covers
62
+ kinetune artists link ARTIST_ID --catalog-artist-id 6803333408
63
+ kinetune songs released ARTIST_ID # newest first; song_id when it's already in Kinetune
64
+ kinetune songs import --artist-id ARTIST_ID --track-ids 6817595861 --track-ids 6816549264
65
+ kinetune songs imports # queued, fetching, done (song_id) or failed (why)
66
+ kinetune songs import-audio IMPORT_ID --audio ./master.wav # one we couldn't fetch: give the file
67
+ ```
68
+
69
+ Unreleased songs: `songs create` without `--title` names the song from the file's tags (then its file name), so a folder goes in with
70
+ `for f in ./masters/*.wav; do kinetune songs create --artist-id ARTIST_ID --audio "$f"; done`. The same song twice is refused.
71
+
56
72
  `kinetune create …` never spends credits without asking: pass `--yes`, or `--max-credits N` to refuse anything pricier.
57
73
 
58
74
  ## Music videos
package/dist/kinetune.mjs CHANGED
@@ -920,8 +920,8 @@ var allowsEval = /* @__PURE__ */ cached(() => {
920
920
  return false;
921
921
  }
922
922
  try {
923
- const F = Function;
924
- new F("");
923
+ const F2 = Function;
924
+ new F2("");
925
925
  return true;
926
926
  } catch (_) {
927
927
  return false;
@@ -2638,9 +2638,9 @@ var Doc = class {
2638
2638
  }
2639
2639
  }
2640
2640
  compile() {
2641
- const F = Function;
2641
+ const F2 = Function;
2642
2642
  const content = this?.content ?? [``];
2643
- const factory = new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {
2643
+ const factory = new F2(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {
2644
2644
  ${content.join("\n")}
2645
2645
  };`);
2646
2646
  return factory(...Object.values(this.closed));
@@ -4983,9 +4983,9 @@ var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => {
4983
4983
  return payload;
4984
4984
  };
4985
4985
  inst.input = (...args) => {
4986
- const F = inst.constructor;
4986
+ const F2 = inst.constructor;
4987
4987
  if (Array.isArray(args[0])) {
4988
- return new F({
4988
+ return new F2({
4989
4989
  type: "function",
4990
4990
  input: new $ZodTuple({
4991
4991
  type: "tuple",
@@ -4995,15 +4995,15 @@ var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => {
4995
4995
  output: inst._def.output
4996
4996
  });
4997
4997
  }
4998
- return new F({
4998
+ return new F2({
4999
4999
  type: "function",
5000
5000
  input: args[0],
5001
5001
  output: inst._def.output
5002
5002
  });
5003
5003
  };
5004
5004
  inst.output = (output2) => {
5005
- const F = inst.constructor;
5006
- return new F({
5005
+ const F2 = inst.constructor;
5006
+ return new F2({
5007
5007
  type: "function",
5008
5008
  input: inst._def.input,
5009
5009
  output: output2
@@ -13075,13 +13075,13 @@ function compileFn(schema, options) {
13075
13075
  const code = doc.content.join("\n");
13076
13076
  const fullCode = options?.debug ? constantNames.length > 0 ? `// Constants: ${constantNames.join(", ")}
13077
13077
  ${code}` : code : "";
13078
- const F = Function;
13078
+ const F2 = Function;
13079
13079
  const factoryCode = `return (input) => {
13080
13080
  ${code}
13081
13081
  }`;
13082
13082
  let fn;
13083
13083
  try {
13084
- const factory = new F(...constantNames, factoryCode);
13084
+ const factory = new F2(...constantNames, factoryCode);
13085
13085
  fn = factory(...constantValues);
13086
13086
  } catch (err) {
13087
13087
  throw new ZodCompileUnsupportedError(`this schema (generated code failed to evaluate: ${err.message})`);
@@ -19731,9 +19731,9 @@ function date4(params) {
19731
19731
 
19732
19732
  // ../composition/src/fonts.ts
19733
19733
  var FONTS = {
19734
- inter: { family: "Inter", kind: "sans", weights: [500, 700, 800] },
19734
+ inter: { family: "Inter", kind: "sans", weights: [300, 500, 700, 800] },
19735
19735
  montserrat: { family: "Montserrat", kind: "sans", weights: [500, 700, 800] },
19736
- poppins: { family: "Poppins", kind: "sans", weights: [500, 700, 800] },
19736
+ poppins: { family: "Poppins", kind: "sans", weights: [300, 500, 700, 800] },
19737
19737
  "dm-sans": { family: "DM Sans", kind: "sans", weights: [500, 700] },
19738
19738
  outfit: { family: "Outfit", kind: "sans", weights: [500, 700, 800] },
19739
19739
  sora: { family: "Sora", kind: "sans", weights: [500, 700, 800] },
@@ -19745,7 +19745,7 @@ var FONTS = {
19745
19745
  "bebas-neue": { family: "Bebas Neue", kind: "condensed", weights: [400] },
19746
19746
  anton: { family: "Anton", kind: "condensed", weights: [400] },
19747
19747
  oswald: { family: "Oswald", kind: "condensed", weights: [500, 700] },
19748
- "barlow-condensed": { family: "Barlow Condensed", kind: "condensed", weights: [600, 800] },
19748
+ "barlow-condensed": { family: "Barlow Condensed", kind: "condensed", weights: [500, 600, 800] },
19749
19749
  "big-shoulders-display": { family: "Big Shoulders Display", kind: "condensed", weights: [700, 900] },
19750
19750
  "playfair-display": { family: "Playfair Display", kind: "serif", weights: [600, 800] },
19751
19751
  "dm-serif-display": { family: "DM Serif Display", kind: "serif", weights: [400] },
@@ -19769,7 +19769,14 @@ var FONTS = {
19769
19769
  "rubik-mono-one": { family: "Rubik Mono One", kind: "display", weights: [400] },
19770
19770
  creepster: { family: "Creepster", kind: "display", weights: [400] },
19771
19771
  "mountains-of-christmas": { family: "Mountains of Christmas", kind: "display", weights: [700] },
19772
- "space-mono": { family: "Space Mono", kind: "mono", weights: [400, 700] }
19772
+ "space-mono": { family: "Space Mono", kind: "mono", weights: [400, 700] },
19773
+ arimo: { family: "Arimo", kind: "sans", weights: [400, 700] },
19774
+ kanit: { family: "Kanit", kind: "sans", weights: [700] },
19775
+ "do-hyeon": { family: "Do Hyeon", kind: "sans", weights: [400] },
19776
+ "six-caps": { family: "Six Caps", kind: "condensed", weights: [400] },
19777
+ staatliches: { family: "Staatliches", kind: "display", weights: [400] },
19778
+ "krona-one": { family: "Krona One", kind: "display", weights: [400] },
19779
+ "pirata-one": { family: "Pirata One", kind: "display", weights: [400] }
19773
19780
  };
19774
19781
  var FONT_IDS = Object.keys(FONTS);
19775
19782
  var LYRIC_FONT_IDS = FONT_IDS.filter((id2) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id2].kind) && id2 !== "abril-fatface");
@@ -19796,9 +19803,295 @@ var VIZZ_ENGINE_IDS = [
19796
19803
  var LIQUID_ENGINE = "liquid";
19797
19804
  var VISUALIZER_ENGINE_IDS = [...VIZZ_ENGINE_IDS, LIQUID_ENGINE];
19798
19805
 
19806
+ // ../composition/src/short-styles.ts
19807
+ var S = (x, y, blur, opacity) => ({ x, y, blur, opacity });
19808
+ var F = (font2, weight, more = {}) => ({ font: font2, weight, ...more });
19809
+ var SHORT_SPECS = {
19810
+ // Bold
19811
+ chant: {
19812
+ filter: "bold",
19813
+ mode: "word",
19814
+ effect: "chant",
19815
+ face: F("anton", 400, { italic: true, upper: true }),
19816
+ size: 0.12,
19817
+ fit: 0.7,
19818
+ ink: "text",
19819
+ key: { size: 0.15, fit: 0.62, ink: "accent" },
19820
+ motion: {
19821
+ in: { ms: 220, ease: "out", pose: { rotate: -14, scale: 1.12, blur: 10, opacity: 0 } },
19822
+ out: { ms: 110, ease: "in", pose: { scale: 1.08, blur: 12, opacity: 0 } },
19823
+ handover: true,
19824
+ shadow: S(0, 2, 8, 0.65),
19825
+ lineHeight: 0.91,
19826
+ orbit: { rx: 0.02, ry: 0.015, period: 4 },
19827
+ tilt: { min: -12, max: -2, spin: 2 }
19828
+ },
19829
+ glow: 0.9
19830
+ },
19831
+ doodle: {
19832
+ filter: "bold",
19833
+ mode: "word",
19834
+ effect: "doodle",
19835
+ face: F("bebas-neue", 400, { upper: true }),
19836
+ size: 0.2,
19837
+ fit: 0.86,
19838
+ ink: "text",
19839
+ key: { face: F("anton", 400, { upper: true }), size: 0.3, fit: 0.8, ink: "accent" },
19840
+ motion: { out: { ms: 260, ease: "out", pose: { opacity: 0, blur: 12, scale: 1.05 } }, lineHeight: 0.99 }
19841
+ },
19842
+ highlight: {
19843
+ filter: "bold",
19844
+ mode: "word",
19845
+ effect: "highlight",
19846
+ face: F("arimo", 700),
19847
+ size: 0.16,
19848
+ fit: 0.7,
19849
+ ink: "text",
19850
+ key: { size: 0.19, fit: 0.76 },
19851
+ motion: { shadow: S(0, 2, 8, 0.55) }
19852
+ },
19853
+ smear: {
19854
+ filter: "bold",
19855
+ mode: "word",
19856
+ effect: "smear",
19857
+ face: F("pirata-one", 400),
19858
+ size: 0.075,
19859
+ fit: 0.62,
19860
+ ink: "text",
19861
+ key: { face: F("krona-one", 400), size: 0.09, fit: 0.62, ink: "accent" },
19862
+ motion: { in: { ms: 150, ease: "out", pose: { y: -0.065, scaleY: 3.2, blur: 6, opacity: 0.8 } } },
19863
+ place: "right"
19864
+ },
19865
+ twin: {
19866
+ filter: "bold",
19867
+ mode: "word",
19868
+ effect: "twin",
19869
+ face: F("poppins", 700, { upper: true }),
19870
+ size: 0.21,
19871
+ fit: 0.81,
19872
+ ink: "text",
19873
+ key: { ink: "accent" },
19874
+ motion: {}
19875
+ },
19876
+ marquee: {
19877
+ filter: "bold",
19878
+ mode: "word",
19879
+ effect: "marquee",
19880
+ face: F("archivo-black", 400, { upper: true }),
19881
+ size: 0.13,
19882
+ fit: 0.84,
19883
+ ink: "text",
19884
+ key: { size: 0.15, fit: 0.88, ink: "accent" },
19885
+ motion: { in: { ms: 60, ease: "out", pose: { x: -0.25, scaleX: 1.8, blur: 16, opacity: 0.7 } }, shadow: S(0, 4, 4, 0.85) }
19886
+ },
19887
+ gilded: {
19888
+ filter: "bold",
19889
+ mode: "line",
19890
+ effect: "gilded",
19891
+ face: F("playfair-display", 600, { italic: true }),
19892
+ size: 0.062,
19893
+ fit: 0.86,
19894
+ ink: "text",
19895
+ key: { size: 0.15, fit: 0.8, ink: "accent" },
19896
+ motion: { in: { ms: 420, ease: "out", pose: { y: 0.06, blur: 14, opacity: 0 } }, shadow: S(0, 1, 6, 0.45) }
19897
+ },
19898
+ sparkle: {
19899
+ filter: "bold",
19900
+ mode: "word",
19901
+ effect: "sparkle",
19902
+ face: F("anton", 400, { upper: true }),
19903
+ size: 0.34,
19904
+ fit: 0.8,
19905
+ ink: "accent",
19906
+ key: { size: 0.4, fit: 0.94, ink: "text" },
19907
+ aside: F("instrument-serif", 400, { italic: true }),
19908
+ motion: {},
19909
+ glow: 0.8
19910
+ },
19911
+ flare: {
19912
+ filter: "bold",
19913
+ mode: "word",
19914
+ effect: "flare",
19915
+ face: F("montserrat", 800, { upper: true }),
19916
+ size: 0.075,
19917
+ fit: 0.6,
19918
+ ink: "text",
19919
+ key: { size: 0.09 },
19920
+ motion: {}
19921
+ },
19922
+ circuit: {
19923
+ filter: "bold",
19924
+ mode: "word",
19925
+ effect: "circuit",
19926
+ face: F("bebas-neue", 400, { upper: true, tracking: 0.02 }),
19927
+ size: 0.17,
19928
+ fit: 0.6,
19929
+ ink: "accent",
19930
+ key: { size: 0.2 },
19931
+ motion: {},
19932
+ blend: "difference"
19933
+ },
19934
+ spark: {
19935
+ filter: "bold",
19936
+ mode: "line",
19937
+ effect: "spark",
19938
+ face: F("righteous", 400, { upper: true }),
19939
+ size: 0.108,
19940
+ fit: 0.86,
19941
+ ink: "text",
19942
+ motion: { shadow: S(3, 4, 2, 0.8) },
19943
+ glow: 0.75
19944
+ },
19945
+ loose: {
19946
+ filter: "bold",
19947
+ mode: "grid",
19948
+ effect: "loose",
19949
+ face: F("arimo", 400, { scaleX: 0.8 }),
19950
+ size: 0.13,
19951
+ fit: 0.65,
19952
+ ink: "muted",
19953
+ motion: { shadow: S(0, 2, 8, 0.5) }
19954
+ },
19955
+ // Layered
19956
+ whisper: {
19957
+ filter: "layered",
19958
+ mode: "word",
19959
+ effect: "whisper",
19960
+ face: F("bebas-neue", 400, { upper: true, scaleY: 1.15 }),
19961
+ size: 0.17,
19962
+ fit: 0.5,
19963
+ ink: "text",
19964
+ key: { size: 0.17, fit: 0.5, ink: "accent" },
19965
+ aside: F("instrument-serif", 400, { italic: true }),
19966
+ motion: {}
19967
+ },
19968
+ tiles: {
19969
+ filter: "layered",
19970
+ mode: "word",
19971
+ effect: "tiles",
19972
+ face: F("krona-one", 400, { upper: true }),
19973
+ size: 0.2,
19974
+ fit: 0.7,
19975
+ ink: "text",
19976
+ key: { ink: "accent" },
19977
+ aside: F("anton", 400, { upper: true }),
19978
+ motion: {}
19979
+ },
19980
+ nested: {
19981
+ filter: "layered",
19982
+ mode: "word",
19983
+ effect: "nested",
19984
+ face: F("anton", 400, { upper: true, italic: true }),
19985
+ size: 0.24,
19986
+ fit: 0.5,
19987
+ ink: "text",
19988
+ key: { size: 0.33, fit: 0.52, ink: "accent" },
19989
+ motion: { in: { ms: 240, ease: "out", pose: { x: -0.05, scaleX: 0.75, blur: 12, opacity: 0 } }, out: { ms: 180, ease: "out", pose: { x: 0.05, scaleX: 1.3, blur: 16, opacity: 0 } }, handover: true, shadow: S(0, 2, 10, 0.5) },
19990
+ glow: 0.7
19991
+ },
19992
+ pair: {
19993
+ filter: "layered",
19994
+ mode: "word",
19995
+ effect: "pair",
19996
+ face: F("krona-one", 400),
19997
+ size: 0.15,
19998
+ fit: 0.5,
19999
+ ink: "accent",
20000
+ aside: F("pirata-one", 400),
20001
+ motion: {}
20002
+ },
20003
+ tall: {
20004
+ filter: "layered",
20005
+ mode: "word",
20006
+ effect: "tall",
20007
+ face: F("do-hyeon", 400, { upper: true }),
20008
+ size: 0.2,
20009
+ fit: 0.84,
20010
+ ink: "text",
20011
+ key: { face: F("six-caps", 400, { upper: true }), size: 0.42, fit: 0.6, ink: "accent" },
20012
+ motion: { out: { ms: 220, ease: "in", pose: { x: -0.2, blur: 10, opacity: 0 } } }
20013
+ },
20014
+ baton: {
20015
+ filter: "layered",
20016
+ mode: "line",
20017
+ effect: "baton",
20018
+ face: F("anton", 400, { upper: true }),
20019
+ size: 0.2,
20020
+ fit: 0.8,
20021
+ ink: "text",
20022
+ key: { ink: "text" },
20023
+ aside: F("poppins", 700, { upper: true }),
20024
+ motion: {},
20025
+ dim: 0.65
20026
+ },
20027
+ mixtape: {
20028
+ filter: "layered",
20029
+ mode: "word",
20030
+ effect: "mixtape",
20031
+ face: F("staatliches", 400, { upper: true }),
20032
+ size: 0.29,
20033
+ fit: 0.84,
20034
+ ink: "text",
20035
+ key: { face: F("righteous", 400), ink: "accent" },
20036
+ motion: {}
20037
+ },
20038
+ trail: {
20039
+ filter: "layered",
20040
+ mode: "word",
20041
+ effect: "trail",
20042
+ face: F("kanit", 700, { upper: true }),
20043
+ size: 0.085,
20044
+ fit: 0.5,
20045
+ ink: "accent",
20046
+ key: { face: F("shrikhand", 400, { upper: true }), size: 0.17, fit: 0.72, ink: "text" },
20047
+ motion: { shadow: S(0, 2, 6, 0.45) }
20048
+ },
20049
+ // Minimal
20050
+ caption: { filter: "minimal", mode: "line", effect: "caption", face: F("arimo", 400, { italic: true }), size: 0.082, fit: 0.86, ink: "accent", motion: { shadow: S(1, 2, 6, 0.3) } },
20051
+ focus: {
20052
+ filter: "minimal",
20053
+ mode: "word",
20054
+ effect: "focus",
20055
+ face: F("anton", 400),
20056
+ size: 0.16,
20057
+ fit: 0.4,
20058
+ ink: "text",
20059
+ key: { face: F("monoton", 400, { upper: true }), size: 0.17, fit: 0.66, ink: "accent" },
20060
+ aside: F("archivo-black", 400, { upper: true }),
20061
+ motion: { shadow: S(0, 2, 8, 0.45) },
20062
+ glow: 0.35
20063
+ },
20064
+ hush: { filter: "minimal", mode: "word", effect: "hush", face: F("poppins", 700, { upper: true }), size: 0.09, fit: 0.6, ink: "text", motion: { shadow: S(0, 2, 8, 0.25) } },
20065
+ dusk: { filter: "minimal", mode: "word", effect: "dusk", face: F("inter", 300), size: 0.085, fit: 0.55, ink: "accent", motion: { in: { ms: 70, ease: "linear", pose: { opacity: 0 } }, out: { ms: 70, ease: "linear", pose: { opacity: 0 } }, shadow: S(0, 1, 3, 0.35) } },
20066
+ murmur: {
20067
+ filter: "minimal",
20068
+ mode: "word",
20069
+ effect: "murmur",
20070
+ face: F("libre-baskerville", 400, { italic: true }),
20071
+ size: 0.075,
20072
+ fit: 0.7,
20073
+ ink: "accent",
20074
+ aside: F("libre-baskerville", 400, { italic: true }),
20075
+ motion: { out: { ms: 350, ease: "out", pose: { opacity: 0, blur: 4 } }, shadow: S(0, 2, 8, 0.45) }
20076
+ },
20077
+ steel: { filter: "minimal", mode: "word", effect: "steel", face: F("oswald", 700, { upper: true }), size: 0.17, fit: 0.66, ink: "text", motion: {}, blend: "difference" },
20078
+ sway: { filter: "minimal", mode: "line", effect: "sway", face: F("poppins", 700, { upper: true }), size: 0.075, fit: 0.86, ink: "text", motion: { shadow: S(0, 2, 8, 0.4) }, glow: 0.55 }
20079
+ };
20080
+ var SHORT_STYLE_IDS = Object.keys(SHORT_SPECS);
20081
+ var MIXTAPE_FLICKER = [
20082
+ F("anton", 400),
20083
+ F("playfair-display", 800),
20084
+ F("bungee", 400),
20085
+ F("pacifico", 400),
20086
+ F("archivo-black", 400),
20087
+ F("monoton", 400),
20088
+ F("permanent-marker", 400),
20089
+ F("abril-fatface", 400)
20090
+ ];
20091
+
19799
20092
  // ../composition/src/lyric-styles.ts
19800
20093
  var LYRIC_STAGES = ["showcase", "kinetic"];
19801
- var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat"];
20094
+ var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat", "short"];
19802
20095
  var SHADER_REVEALS = ["burn", "ink", "smoke", "particles", "drip"];
19803
20096
  var LYRIC_REVEALS = ["fade", "rise", "pop", "blur", "slide", "drop", "flip", "glitch", "wipe", "type", ...SHADER_REVEALS];
19804
20097
  var LYRIC_EXITS = ["fade", "blur", "rise", "scale", "glitch", "cut", ...SHADER_REVEALS];
@@ -19879,6 +20172,17 @@ var L = (lyrics) => ({
19879
20172
  var FX = (fx = {}) => ({ shake: 0, zoom: 0, flash: 0, rgb: 0, glitch: 0, ...fx });
19880
20173
  var SP = (style = "none", spectrum = {}) => ({ style, placement: "bottom", size: 1, opacity: 0.8, ...spectrum });
19881
20174
  var FIN = (finish = {}) => ({ grain: 0, vignette: 0.3, leak: 0, dust: 0, droplets: 0, scanlines: false, letterbox: false, ...finish });
20175
+ var short = (id2, label, description, fx) => ({
20176
+ label,
20177
+ description,
20178
+ lyrics: L({ layout: "short", reveal: "pop", exit: "fade", effect: "none" }),
20179
+ fx,
20180
+ spectrum: SP(),
20181
+ finish: FIN({ vignette: 0.25 }),
20182
+ player: "none",
20183
+ fonts: [SHORT_SPECS[id2].face.font],
20184
+ short: SHORT_SPECS[id2].filter
20185
+ });
19882
20186
  var CONDENSED = ["bebas-neue", "anton", "oswald", "barlow-condensed", "big-shoulders-display", "archivo-black", "league-spartan"];
19883
20187
  var LYRIC_STYLES = {
19884
20188
  showcase: {
@@ -20206,9 +20510,38 @@ var LYRIC_STYLES = {
20206
20510
  finish: FIN({ vignette: 0.4 }),
20207
20511
  player: "none",
20208
20512
  fonts: CONDENSED
20209
- }
20513
+ },
20514
+ // The Short family: built for 9:16 edits over footage (short-styles.ts holds each one's type and effect).
20515
+ chant: short("chant", "Chant", "The word stacked three times in glowing italic caps.", FX({ zoom: 0.2 })),
20516
+ doodle: short("doodle", "Doodle", "Huge words; the key ones in red with hand-drawn stars and bolts.", FX({ shake: 0.2, zoom: 0.25 })),
20517
+ highlight: short("highlight", "Highlight", "The sung word on a coloured block, the word before it above.", FX()),
20518
+ smear: short("smear", "Smear", "Key words smear in from above, off to one side.", FX()),
20519
+ twin: short("twin", "Twin", "Bold caps pushing each other up; a held key word grows with the last word laid small on top.", FX({ zoom: 0.15 })),
20520
+ marquee: short("marquee", "Marquee", "Heavy caps with a reflection; held words fill the frame in scrolling rows.", FX({ zoom: 0.2 })),
20521
+ gilded: short("gilded", "Gilded", "Italic serif typing in; key words in a warm gradient over their reflection.", FX()),
20522
+ sparkle: short("sparkle", "Sparkle", "Big caps springing in and growing; key words burst into hand-drawn stickers.", FX({ zoom: 0.15 })),
20523
+ flare: short("flare", "Flare", "Bold caps over a streak of light that flares on the beat.", FX()),
20524
+ circuit: short("circuit", "Circuit", "Neon condensed caps that flicker on like a sign.", FX({ rgb: 0.15 })),
20525
+ spark: short("spark", "Spark", "The line in bold caps; the sung word glows.", FX()),
20526
+ loose: short("loose", "Loose", "The line spread across loose rows, plain and lowercase.", FX()),
20527
+ whisper: short("whisper", "Whisper", "Neighbouring words layered: one huge in cyan, the other whispered on top in italics.", FX()),
20528
+ tiles: short("tiles", "Tiles", "A phrase stacked four times down the frame, folding into a ladder; then wide single words.", FX()),
20529
+ nested: short("nested", "Nested", "Slanted heavy caps; red key words rise in with scattered copies of themselves.", FX()),
20530
+ pair: short("pair", "Pair", "Small blackletter words around a wide key word that types in as it is sung.", FX()),
20531
+ tall: short("tall", "Tall", "One white word at a time with a streak behind it; a tall red word under a line.", FX({ zoom: 0.15 })),
20532
+ baton: short("baton", "Baton", "One line at a time rolling up over dimmed footage, cyan and white in turn.", FX()),
20533
+ mixtape: short("mixtape", "Mixtape", "Big stencil caps; key words in rounded cyan that flicker through typefaces.", FX()),
20534
+ trail: short("trail", "Trail", "Small caps that slide in leaving a trail.", FX()),
20535
+ caption: short("caption", "Caption", "A quiet italic line that fills in as it is sung.", FX()),
20536
+ focus: short("focus", "Focus", "Striped neon key words turning slowly; long lines tilt in 3D and stretch tall.", FX({ glitch: 0.15 })),
20537
+ hush: short("hush", "Hush", "Quiet bold caps in warm white, one word at a time.", FX()),
20538
+ dusk: short("dusk", "Dusk", "One light lowercase word at a time, in a warm tint.", FX()),
20539
+ murmur: short("murmur", "Murmur", "Two italic serif words drifting softly.", FX()),
20540
+ steel: short("steel", "Steel", "Condensed caps in brushed metal.", FX({ glitch: 0.2 })),
20541
+ sway: short("sway", "Sway", "The line in bold caps; the sung word lights up.", FX())
20210
20542
  };
20211
20543
  var LYRIC_STYLE_IDS = Object.keys(LYRIC_STYLES);
20544
+ var SHORT_FAMILY = LYRIC_STYLE_IDS.filter((id2) => LYRIC_STYLES[id2].short);
20212
20545
  function styleParts(id2) {
20213
20546
  const s = LYRIC_STYLES[id2];
20214
20547
  return { style: id2, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
@@ -21039,6 +21372,7 @@ var SCOPE_DESCRIPTIONS = {
21039
21372
  "organizations:read": "See the workspaces you belong to",
21040
21373
  "organizations:write": "Create workspaces you own, and rename or switch the type of one you own or run"
21041
21374
  };
21375
+ var ARTIST_LINK_KINDS = ["apple_music", "spotify", "youtube", "instagram", "tiktok", "website"];
21042
21376
  var id = (what) => external_exports.string().min(1).max(120).describe(`The ${what} id`);
21043
21377
  var songId = id("song");
21044
21378
  var artistId = id("artist");
@@ -21481,18 +21815,59 @@ var OPERATIONS = [
21481
21815
  {
21482
21816
  id: "artists.update",
21483
21817
  group: "artists",
21484
- title: "Rename an artist",
21485
- summary: "Change an artist\u2019s name",
21486
- description: "",
21818
+ title: "Change an artist",
21819
+ summary: "Rename an artist, or set their catalog profile, Spotify id and links",
21820
+ description: "Send only what changes. catalog_artist_id: their profile in the music catalog (find_artist_in_catalog; link_artist does the same), null unlinks. spotify_artist_id: their Spotify artist id or open.spotify.com link. links: their pages, shown on their artist page: apple_music, spotify, youtube, instagram, tiktok (https links to that site) and website (any https link); a link set to null is removed, the others are kept.",
21487
21821
  method: "PATCH",
21488
21822
  path: "/api/v1/artists/{artist_id}",
21489
21823
  scopes: ["music:write", "videos:write"],
21490
- input: external_exports.object({ artist_id: artistId, name: external_exports.string().trim().min(1).max(200).describe("The new name") }),
21824
+ input: external_exports.object({
21825
+ artist_id: artistId,
21826
+ name: external_exports.string().trim().min(1).max(200).optional().describe("The new name"),
21827
+ catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).nullable().optional().describe("Their catalog profile id (find_artist_in_catalog), or null to unlink"),
21828
+ spotify_artist_id: external_exports.string().max(200).nullable().optional().describe("Their Spotify artist id or open.spotify.com/artist link, or null"),
21829
+ links: external_exports.record(external_exports.enum(ARTIST_LINK_KINDS), external_exports.string().max(500).nullable()).optional().describe("Their pages by site: apple_music, spotify, youtube, instagram, tiktok, website (https); null removes one")
21830
+ }),
21491
21831
  readOnly: false,
21492
21832
  destructive: false,
21493
21833
  idempotent: true,
21494
21834
  cli: ["artists", "rename"],
21495
- mcp: "rename_artist"
21835
+ mcp: "rename_artist",
21836
+ example: { artist_id: "artist_\u2026", links: { instagram: "https://www.instagram.com/novalane" } }
21837
+ },
21838
+ {
21839
+ id: "artists.find_in_catalog",
21840
+ group: "artists",
21841
+ title: "Find an artist\u2019s released songs",
21842
+ summary: "Search the music catalog for an artist by name, to link their released songs",
21843
+ description: "The public music catalog (Apple Music\u2019s; no account or login): each match with its id, name, song_count, newest_release and up to five covers of their releases (picture_url, covers), so the user can tell which profile is theirs. Search by the full name they release under (partial names often miss), or pass their Apple Music artist link. Then link_artist with the id the user confirms. Only for the user\u2019s own music: they must own or have the rights to the songs they bring in.",
21844
+ method: "GET",
21845
+ path: "/api/v1/catalog/artists",
21846
+ scopes: ["music:read", "videos:read"],
21847
+ input: external_exports.object({ q: external_exports.string().trim().min(1).max(200).describe("The artist name, or their Apple Music artist link") }),
21848
+ readOnly: true,
21849
+ destructive: false,
21850
+ idempotent: true,
21851
+ cli: ["artists", "find"],
21852
+ mcp: "find_artist_in_catalog",
21853
+ example: { q: "Nina Kazora" }
21854
+ },
21855
+ {
21856
+ id: "artists.link",
21857
+ group: "artists",
21858
+ title: "Link an artist to their released songs",
21859
+ summary: "Set the artist\u2019s catalog profile, once: their released songs are then listed to import",
21860
+ description: "catalog_artist_id from find_artist_in_catalog, confirmed by the user. Also sets their Apple Music link (links.apple_music) unless one is set. Linking again replaces it; unlink with update_artist catalog_artist_id null. Then list_released_songs and import_songs.",
21861
+ method: "POST",
21862
+ path: "/api/v1/artists/{artist_id}/catalog",
21863
+ scopes: ["music:write", "videos:write"],
21864
+ input: external_exports.object({ artist_id: artistId, catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).describe("Their catalog profile id (find_artist_in_catalog)") }),
21865
+ readOnly: false,
21866
+ destructive: false,
21867
+ idempotent: true,
21868
+ cli: ["artists", "link"],
21869
+ mcp: "link_artist",
21870
+ example: { artist_id: "artist_\u2026", catalog_artist_id: "6803333408" }
21496
21871
  },
21497
21872
  {
21498
21873
  id: "artists.archive",
@@ -21896,13 +22271,13 @@ var OPERATIONS = [
21896
22271
  group: "songs",
21897
22272
  title: "Upload a song",
21898
22273
  summary: "Add a song: master audio, and square cover art if it has one",
21899
- description: `Audio: MP3, WAV or M4A up to 250 MB. Cover (optional): a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB; it is kept at 1536, 640 and 160 px, not as uploaded. Without one the song has no cover (cover_art null) and every video still works; set_song_cover adds one later. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute. Pass lyrics (or set them later with set_song_lyrics) to have the videos spell every word right. ${NEEDS_PLAN}`,
22274
+ description: `Audio: MP3, WAV or M4A up to 250 MB. Cover (optional): a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB; it is kept at 1536, 640 and 160 px, not as uploaded. Without one the song has no cover (cover_art null) and every video still works; set_song_cover adds one later. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute. Pass lyrics (or set them later with set_song_lyrics) to have the videos spell every word right. The file\u2019s tags fill what is left out: its title, ISRC, embedded lyrics and embedded cover (a square one, 1000 px or more). The same song already in the workspace (the same audio file, or the same ISRC) is refused with 409, code duplicate, and its song_id. A released song of a linked artist can be imported instead of uploaded (import_songs). ${NEEDS_PLAN}`,
21900
22275
  method: "POST",
21901
22276
  path: "/api/v1/songs",
21902
22277
  scopes: ["music:write", "videos:write"],
21903
22278
  input: external_exports.object({
21904
22279
  artist_id: artistId.optional().describe("The artist id. An artist workspace may leave it out: its songs are its artist's"),
21905
- title: external_exports.string().trim().min(1).max(300).describe("The song title"),
22280
+ title: external_exports.string().trim().min(1).max(300).optional().describe("The song title; left out, the file\u2019s title tag, then its file name"),
21906
22281
  language: external_exports.string().regex(/^[a-z]{2,3}$/).optional().describe('Lyrics language (ISO 639-1, e.g. "en"); detected when omitted'),
21907
22282
  audio_url: httpsUrl("the master audio").optional(),
21908
22283
  cover_art_url: httpsUrl("the square cover art").optional().describe("Optional: a public https URL of the square cover art (a file on your computer: create_upload's file_url, or upload it with the CLI). Leave it out for a song without cover art"),
@@ -21920,6 +22295,104 @@ var OPERATIONS = [
21920
22295
  cli: ["songs", "create"],
21921
22296
  mcp: "create_song"
21922
22297
  },
22298
+ {
22299
+ id: "songs.list_released",
22300
+ group: "songs",
22301
+ title: "List an artist\u2019s released songs",
22302
+ summary: "The linked artist\u2019s songs in the music catalog, each saying whether it is already in Kinetune",
22303
+ description: "Newest release first; an EP or album\u2019s tracks in order. Each has id (the track_id to import), title, release (name, kind single, ep or album, date; a date of null is announced, not out yet), track_number, duration_seconds, cover_url (up to 3000 px), song_id when it is already in the workspace (uploaded or imported) and import while it is being imported (status, error). q narrows them to a title or release. The artist must be linked first (409 artist_not_linked: find_artist_in_catalog, then link_artist).",
22304
+ method: "GET",
22305
+ path: "/api/v1/artists/{artist_id}/releases",
22306
+ scopes: ["music:read", "videos:read"],
22307
+ input: external_exports.object({ artist_id: artistId, q: external_exports.string().max(100).optional().describe("Part of a title or release name") }),
22308
+ readOnly: true,
22309
+ destructive: false,
22310
+ idempotent: true,
22311
+ cli: ["songs", "released"],
22312
+ mcp: "list_released_songs"
22313
+ },
22314
+ {
22315
+ id: "songs.import",
22316
+ group: "songs",
22317
+ title: "Import released songs",
22318
+ summary: "Bring in released songs of a linked artist by their track ids, without uploading",
22319
+ description: `Each track (list_released_songs: id) becomes an import: Kinetune fetches the song\u2019s audio (about half a minute each), then the song is made with the release\u2019s title and cover and analyzed like an upload; poll get_song_import or list_song_imports (status queued, fetching, done with song_id, or failed with why). A song we can\u2019t fetch fails, and the user adds the file to it instead (add_song_import_audio). Songs already in the workspace or being imported are skipped (skipped: track_id and reason). Up to 50 at once, and a daily number per workspace (429 daily_limit). Only the user\u2019s own songs: confirm they own or have the rights to them. ${NEEDS_PLAN} Without a plan, the user\u2019s free song covers one import.`,
22320
+ method: "POST",
22321
+ path: "/api/v1/song-imports",
22322
+ scopes: ["music:write", "videos:write"],
22323
+ input: external_exports.object({ artist_id: artistId, track_ids: external_exports.array(external_exports.string().regex(/^\d{1,15}$/)).min(1).max(50).describe("The released songs\u2019 ids (list_released_songs)") }),
22324
+ readOnly: false,
22325
+ destructive: false,
22326
+ idempotent: false,
22327
+ cli: ["songs", "import"],
22328
+ mcp: "import_songs",
22329
+ example: { artist_id: "artist_\u2026", track_ids: ["6817595861", "6816549264"] }
22330
+ },
22331
+ {
22332
+ id: "imports.list",
22333
+ group: "songs",
22334
+ title: "List song imports",
22335
+ summary: "Released songs being imported, failed ones waiting for a file, and today\u2019s done ones",
22336
+ description: "Newest first. status: queued, fetching, done (song_id: the song made) or failed (error says why; add_song_import_audio with the file, or cancel_song_import).",
22337
+ method: "GET",
22338
+ path: "/api/v1/song-imports",
22339
+ scopes: ["music:read", "videos:read"],
22340
+ input: external_exports.object({ artist_id: artistId.optional().describe("Only this artist\u2019s imports"), status: external_exports.enum(["queued", "fetching", "failed", "done"]).optional().describe("Only imports with this status") }),
22341
+ readOnly: true,
22342
+ destructive: false,
22343
+ idempotent: true,
22344
+ cli: ["songs", "imports"],
22345
+ mcp: "list_song_imports"
22346
+ },
22347
+ {
22348
+ id: "imports.get",
22349
+ group: "songs",
22350
+ title: "Get a song import",
22351
+ summary: "One import: queued, fetching, done (with its song) or failed (and why)",
22352
+ description: "",
22353
+ method: "GET",
22354
+ path: "/api/v1/song-imports/{import_id}",
22355
+ scopes: ["music:read", "videos:read"],
22356
+ input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)") }),
22357
+ readOnly: true,
22358
+ destructive: false,
22359
+ idempotent: true,
22360
+ cli: ["songs", "import-status"],
22361
+ mcp: "get_song_import"
22362
+ },
22363
+ {
22364
+ id: "imports.add_audio",
22365
+ group: "songs",
22366
+ title: "Add the file to a song import",
22367
+ summary: "Give the audio of a released song Kinetune couldn\u2019t fetch",
22368
+ description: "The song is made from the file with the release\u2019s title and cover (MP3, WAV or M4A up to 250 MB), and analyzed. For a failed import (or one still queued).",
22369
+ method: "POST",
22370
+ path: "/api/v1/song-imports/{import_id}/audio",
22371
+ scopes: ["music:write", "videos:write"],
22372
+ input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)"), audio_url: httpsUrl("the song\u2019s audio").optional() }),
22373
+ files: [{ field: "audio", urlField: "audio_url", accept: ["audio/mpeg", "audio/wav", "audio/mp4"], description: "The song\u2019s audio (MP3, WAV or M4A)" }],
22374
+ readOnly: false,
22375
+ destructive: false,
22376
+ idempotent: false,
22377
+ cli: ["songs", "import-audio"],
22378
+ mcp: "add_song_import_audio"
22379
+ },
22380
+ {
22381
+ id: "imports.cancel",
22382
+ group: "songs",
22383
+ title: "Let a song import go",
22384
+ summary: "Remove a failed (or queued) import from the list",
22385
+ description: "Its song isn\u2019t made; it can be imported again later.",
22386
+ method: "DELETE",
22387
+ path: "/api/v1/song-imports/{import_id}",
22388
+ scopes: ["music:write", "videos:write"],
22389
+ input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)") }),
22390
+ readOnly: false,
22391
+ destructive: true,
22392
+ idempotent: true,
22393
+ cli: ["songs", "import-cancel"],
22394
+ mcp: "cancel_song_import"
22395
+ },
21923
22396
  {
21924
22397
  id: "songs.get",
21925
22398
  group: "songs",
@@ -22323,7 +22796,7 @@ var OPERATIONS = [
22323
22796
  group: "looks",
22324
22797
  title: "Upload a background",
22325
22798
  summary: "Upload your own photo or video, or use one of your music videos, to design a New Look around",
22326
- description: `Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Or video_id: one of this workspace's delivered music videos (list_videos with type music-video and the song's song_id), copied in as a video background (no rights_confirmed needed); the answer's music_video names its song and section (trim). A lyric video with it must be of that song: it takes that section (send that trim, or leave trim out), and the music video plays once from its first frame in step with the lyrics, with its own sound. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}. ${NEEDS_PLAN}`,
22799
+ description: `Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Or video_id: one of this workspace's delivered music videos (list_videos with type music-video and the song's song_id), copied in as a video background (no rights_confirmed needed); the answer's music_video names its song and section (trim). preview_url is a still (a photo, or a video's poster) and video_url the video itself (null for a photo), both signed for about a week. A lyric video with it must be of that song: it takes that section (send that trim, or leave trim out), and the music video plays once from its first frame in step with the lyrics, with its own sound. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}. ${NEEDS_PLAN}`,
22327
22800
  method: "POST",
22328
22801
  path: "/api/v1/backgrounds",
22329
22802
  scopes: ["library:write", "videos:write"],
@@ -25883,7 +26356,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
25883
26356
  const negativeNumberArg = (arg) => {
25884
26357
  if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
25885
26358
  return !this._getCommandAndAncestors().some(
25886
- (cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
26359
+ (cmd) => cmd.options.map((opt) => opt.short).some((short2) => /^-\d$/.test(short2))
25887
26360
  );
25888
26361
  };
25889
26362
  let activeVariadicOption = null;
@@ -26834,7 +27307,7 @@ async function revoke(config2, auth = config2.auth) {
26834
27307
  // package.json
26835
27308
  var package_default = {
26836
27309
  name: "@kinetune/cli",
26837
- version: "2.10.0",
27310
+ version: "2.11.0",
26838
27311
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
26839
27312
  license: "MIT",
26840
27313
  homepage: "https://kinetune.com/developers#cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinetune/cli",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://kinetune.com/developers#cli",