@kinetune/cli 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.
package/README.md CHANGED
@@ -45,6 +45,15 @@ kinetune songs list --status ready --sort newest # analyzed songs, late
45
45
  kinetune songs list --artist-id ARTIST_ID --offset 50 # the next page of one artist's songs
46
46
  ```
47
47
 
48
+ ## Looks
49
+
50
+ ```bash
51
+ kinetune looks list --scope official --lyric-style neon # browse
52
+ kinetune looks list --artist-id ARTIST_ID # leave out Looks that show another artist
53
+ ```
54
+
55
+ A New Look leaves the singer out unless you ask: `"feature_artist":"always"` in the look (AI image or AI video, private, with `"cover":false` in display) makes them the subject of the background.
56
+
48
57
  ## For agents and scripts
49
58
 
50
59
  - Path ids are arguments, fields are flags, `--input file.json` (or `-` for stdin) takes the whole request.
package/dist/kinetune.mjs CHANGED
@@ -20396,8 +20396,8 @@ var BACKGROUND_UPLOAD_LIMITS = {
20396
20396
  var isUploadSource = (source) => BACKGROUND_SOURCES2[source].source === "upload";
20397
20397
  var backgroundSourcesFor = (category) => categoryUsesImages(category) ? MEDIA_BACKGROUND_SOURCES : ["designed"];
20398
20398
  var backgroundSourceFor = (category, background) => background.source ?? backgroundSourcesFor(category)[0];
20399
- var FEATURE_ARTIST_MODES = ["auto", "always", "never"];
20400
- var featureArtist = external_exports.enum(FEATURE_ARTIST_MODES).default("auto");
20399
+ var LOOK_FEATURE_ARTIST_MODES = ["never", "always"];
20400
+ var CANVAS_FEATURE_ARTIST_MODES = ["auto", "always", "never"];
20401
20401
  var LookRequestSchema = external_exports.discriminatedUnion("mode", [
20402
20402
  external_exports.object({
20403
20403
  mode: external_exports.literal("new"),
@@ -20405,7 +20405,7 @@ var LookRequestSchema = external_exports.discriminatedUnion("mode", [
20405
20405
  background: BackgroundRequestSchema.default({ quality: "high" }),
20406
20406
  visibility: external_exports.enum(["private", "public"]).default("private"),
20407
20407
  direction: external_exports.string().trim().max(2e3).optional(),
20408
- feature_artist: featureArtist,
20408
+ feature_artist: external_exports.enum(LOOK_FEATURE_ARTIST_MODES).default("never"),
20409
20409
  lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional()
20410
20410
  }).strict(),
20411
20411
  external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional() }).strict()
@@ -20449,6 +20449,7 @@ var LyricVideoRequestSchema = external_exports.object({
20449
20449
  if (value.look.mode === "new" && value.look.feature_artist === "always") {
20450
20450
  if (BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
20451
20451
  ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Only an AI image or AI video background can show the artist" });
20452
+ if (value.display.cover) ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Switch off the cover to show the artist: the cover would hide them" });
20452
20453
  if (value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "A Look that shows the artist stays private" });
20453
20454
  }
20454
20455
  });
@@ -20472,7 +20473,7 @@ var CanvasRequestSchema = external_exports.object({
20472
20473
  resolution: external_exports.enum(CANVAS_RESOLUTIONS).default("1080p"),
20473
20474
  style: external_exports.enum(CANVAS_STYLES).optional(),
20474
20475
  direction: external_exports.string().trim().max(2e3).optional(),
20475
- feature_artist: featureArtist,
20476
+ feature_artist: external_exports.enum(CANVAS_FEATURE_ARTIST_MODES).default("auto"),
20476
20477
  seconds: external_exports.number().int().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).default(CANVAS_MAX_SECONDS),
20477
20478
  /** The Pexels photo or video (GET /stock) for the stock sources; omitted, the director searches and picks. */
20478
20479
  stock_id: StockIdSchema.optional()
@@ -20516,9 +20517,9 @@ var lyricInput = external_exports.object({
20516
20517
  song_id: songId,
20517
20518
  callback_url: CALLBACK,
20518
20519
  metadata: METADATA,
20519
- look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026","feature_artist":"auto"} to have one designed (background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that Pexels item instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first`),
20520
+ look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026"} to have one designed (background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that Pexels item instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first. The singer is left out unless asked: feature_artist "always" (default "never") makes them the subject of the background, recognizable from their artist photos (add_artist_photos); it needs an AI image or AI video background, a private Look and display.cover false (the cover would hide them), and that Look then only serves this artist's songs. A saved Look that shows an artist (featured_artist) only serves that artist's songs, also with display.cover false`),
20520
20521
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20521
- display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes"),
20522
+ display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. cover must be false to show the artist in the background"),
20522
20523
  trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds)"),
20523
20524
  variations: lyricShape.variations.describe("1\u20134 different New Looks, one video each (an Existing Look renders one)")
20524
20525
  });
@@ -20533,7 +20534,7 @@ var canvasInput = external_exports.object({
20533
20534
  resolution: canvasShape.resolution.describe("1080p (1080\xD71920) or 720p"),
20534
20535
  style: canvasShape.style.describe("Optional visual style"),
20535
20536
  direction: canvasShape.direction.describe("Optional mood, motifs or references; the concept still comes from the cover"),
20536
- feature_artist: external_exports.enum(FEATURE_ARTIST_MODES).default("auto").describe('Whether the Canvas shows the artist (AI sources; needs artist photos for "always")'),
20537
+ feature_artist: canvasShape.feature_artist.describe('Whether the Canvas shows the artist: auto (the director decides), always or never (AI sources; needs artist photos for "always")'),
20537
20538
  seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
20538
20539
  variations: canvasShape.variations.describe("1\u20134 different Canvases")
20539
20540
  });
@@ -20863,7 +20864,7 @@ var OPERATIONS = [
20863
20864
  group: "looks",
20864
20865
  title: "List Looks",
20865
20866
  summary: "Browse Official, Community and your own Looks",
20866
- description: 'A Look is a complete, reusable lyric-video design. Pass its id as {"mode":"existing","id":\u2026} to reuse it exactly.',
20867
+ description: `A Look is a complete, reusable lyric-video design. Pass its id as {"mode":"existing","id":\u2026} to reuse it exactly. A Look that shows an artist (featured_artist) is private and only serves that artist's songs: choosing for a song, pass its artist_id to leave out Looks that show another artist.`,
20867
20868
  method: "GET",
20868
20869
  path: "/api/v1/looks",
20869
20870
  scopes: ["library:read", "videos:read"],
@@ -20871,6 +20872,7 @@ var OPERATIONS = [
20871
20872
  scope: external_exports.enum(["all", "official", "community", "mine"]).optional().describe("Which library; default all"),
20872
20873
  category: external_exports.string().max(40).optional().describe("A category id from get_options"),
20873
20874
  lyric_style: external_exports.string().max(40).optional().describe("A lyric style id from get_options (how the lyrics move)"),
20875
+ artist_id: artistId.optional().describe("The artist of the song you are choosing for: Looks that show another artist are left out"),
20874
20876
  q: external_exports.string().max(100).optional().describe("Search words"),
20875
20877
  sort: external_exports.enum(["newest", "popular"]).optional(),
20876
20878
  limit: external_exports.number().int().min(1).max(100).optional(),
@@ -24757,7 +24759,7 @@ async function revoke(config2) {
24757
24759
  // package.json
24758
24760
  var package_default = {
24759
24761
  name: "@kinetune/cli",
24760
- version: "0.3.0",
24762
+ version: "0.4.0",
24761
24763
  description: "Command line for Kinetune: lyric videos and Spotify Canvas loops from your songs, for people and AI agents.",
24762
24764
  license: "MIT",
24763
24765
  homepage: "https://kinetune.com/developers#cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinetune/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Command line for Kinetune: lyric videos and Spotify Canvas loops from your songs, for people and AI agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://kinetune.com/developers#cli",