@kinetune/cli 2.8.0 → 2.9.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 +9 -1
- package/dist/kinetune.mjs +63 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,6 +148,14 @@ kinetune songs set-lyrics SONG_ID --lyrics-file ./midnight-drive.srt # add or
|
|
|
148
148
|
kinetune songs clear-lyrics SONG_ID # back to the transcribed words
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
+
Every director reads the song's brief first: what it is about, its story, how the feeling moves through its sections.
|
|
152
|
+
`songs get` shows it (`brief`). When it reads the song wrong, correct it; your version is kept until you ask for a rewrite:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
kinetune songs edit-brief SONG_ID --theme "A daughter talking to her late father about the life he missed"
|
|
156
|
+
kinetune songs rewrite-brief SONG_ID # drop your correction, read the song again
|
|
157
|
+
```
|
|
158
|
+
|
|
151
159
|
A song without cover art gets one this way too. A new cover goes in use and the one before stays on the song
|
|
152
160
|
(`covers list`); videos already made keep theirs, and everything made next uses it:
|
|
153
161
|
|
|
@@ -164,7 +172,7 @@ the round first and send the same credits; only covers that pass their check are
|
|
|
164
172
|
kinetune covers quote --count 2 # credits for 2 covers, and redraw_credits
|
|
165
173
|
kinetune covers make --song-id SONG_ID --count 2 --credits 190 \
|
|
166
174
|
--style painted --vibes sad --vibes space --artist never \
|
|
167
|
-
--idea "A motel pool at night" --words title # words are
|
|
175
|
+
--idea "A motel pool at night" --words title # words are lettered in, spelled exactly as the song
|
|
168
176
|
kinetune covers get REQUEST_ID # each cover as it is drawn
|
|
169
177
|
kinetune covers redraw REQUEST_ID --cover-id COVER_ID --note "Warmer, the moon bigger" --credits 40
|
|
170
178
|
```
|
package/dist/kinetune.mjs
CHANGED
|
@@ -20990,6 +20990,9 @@ var MusicVideoRequestSchema = external_exports.object({
|
|
|
20990
20990
|
});
|
|
20991
20991
|
var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
|
|
20992
20992
|
|
|
20993
|
+
// ../api-spec/src/song-brief.ts
|
|
20994
|
+
var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
|
|
20995
|
+
|
|
20993
20996
|
// ../api-spec/src/versioning.ts
|
|
20994
20997
|
var API_VERSION = 1;
|
|
20995
20998
|
var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
|
|
@@ -21035,6 +21038,16 @@ var UploadSchema = external_exports.looseObject({
|
|
|
21035
21038
|
file_expires_at: external_exports.string(),
|
|
21036
21039
|
uploads_per_day: external_exports.number().int()
|
|
21037
21040
|
});
|
|
21041
|
+
var SongBriefSchema = external_exports.looseObject({
|
|
21042
|
+
status: external_exports.enum(["writing", "ready"]).describe("writing: being written (the fields are null until ready)"),
|
|
21043
|
+
theme: external_exports.string().nullable().describe("What the song is about, in a sentence"),
|
|
21044
|
+
tone: external_exports.string().nullable().describe("Its register, in a few words"),
|
|
21045
|
+
story: external_exports.string().nullable().describe("The story or situation under the words (null for a mood piece)"),
|
|
21046
|
+
mood_arc: external_exports.array(external_exports.object({ section: external_exports.string(), feeling: external_exports.string() })).describe("How the feeling moves through it, section by section"),
|
|
21047
|
+
setting: external_exports.string().nullable().describe("An era, a place or a scene it evokes (null when none)"),
|
|
21048
|
+
edited: external_exports.boolean().describe("The user corrected it: directors read their version, and nothing replaces it until rewrite_song_brief"),
|
|
21049
|
+
updated_at: external_exports.string().nullable()
|
|
21050
|
+
});
|
|
21038
21051
|
var LYRICS = "The song\u2019s lyrics as text: plain (Suno-style [Verse]/[Chorus] tags and (x2) marks are fine), or the contents of an SRT, WebVTT or LRC file. Every word is still timed from the audio: your text fixes misheard words and sets where lines break in videos, and its section tags set the song\u2019s sections (a chorus sung once is still a chorus). A part sung again (a chorus) can be written once; lyrics that don\u2019t match what\u2019s sung, or cover only part of it, are refused";
|
|
21039
21052
|
var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits, places and props. Each is in one artist\u2019s kit (owner_artist_id, a project in a Creator workspace; an outfit\u2019s is its artist_id) and serves their songs; shared true offers it to every other artist\u2019s songs too (owner_name says whose it is). Each has a name and an @handle unique in the workspace; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
|
|
21040
21053
|
var NEEDS_PLAN = "Needs an active plan (402 plan_required without one; get_account: plan.active) and room in its storage (402 storage_full when it would not fit; get_account: storage).";
|
|
@@ -21326,7 +21339,7 @@ var OPERATIONS = [
|
|
|
21326
21339
|
group: "account",
|
|
21327
21340
|
title: "List the options",
|
|
21328
21341
|
summary: "Video types, Look categories, background sources, formats and the current credit prices",
|
|
21329
|
-
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). Use it to pick a category or source and to explain prices.",
|
|
21342
|
+
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). Use it to pick a category or source and to explain prices.",
|
|
21330
21343
|
method: "GET",
|
|
21331
21344
|
path: "/api/v1/options",
|
|
21332
21345
|
scopes: ["videos:read", "music:read", "library:read"],
|
|
@@ -21890,7 +21903,7 @@ var OPERATIONS = [
|
|
|
21890
21903
|
group: "songs",
|
|
21891
21904
|
title: "Get a song",
|
|
21892
21905
|
summary: "One song and its analysis status",
|
|
21893
|
-
description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used).`,
|
|
21906
|
+
description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used). brief: what the song is about as every director reads it (theme, tone, story, mood_arc by section, setting), null before the analysis; status writing while it is written (a song analysed without one has it started by this call: get it again in half a minute), edited true once the user corrected it (edit_song_brief).`,
|
|
21894
21907
|
method: "GET",
|
|
21895
21908
|
path: "/api/v1/songs/{song_id}",
|
|
21896
21909
|
scopes: ["music:read", "videos:read"],
|
|
@@ -21976,7 +21989,7 @@ var OPERATIONS = [
|
|
|
21976
21989
|
group: "songs",
|
|
21977
21990
|
title: "Make covers",
|
|
21978
21991
|
summary: "Kinetune\u2019s cover art director makes 1 to 4 covers for a song, each a different idea",
|
|
21979
|
-
description: `The director reads the song (its meaning, never a lyric drawn literally), the user's choices and the artist's character, and the image model draws each cover; each is checked (no letters in the picture, reads as a thumbnail) and kept on the song (list_song_covers) as it is drawn, in about a minute. Only covers that pass are charged; the song keeps its cover until the user picks one (use_cover). style: how it is made (auto: the director picks); vibes: up to ${COVER_VIBES_MAX} moods (dark, sad, hood, luxury\u2026); artist: auto (the director decides), always (needs their character), never; idea: the user's own words; words: none, title, or artist_title,
|
|
21992
|
+
description: `The director reads the song (its meaning, never a lyric drawn literally), the user's choices and the artist's character, and the image model draws each cover; each is checked (no letters in the picture, reads as a thumbnail) and kept on the song (list_song_covers) as it is drawn, in about a minute. Only covers that pass are charged; the song keeps its cover until the user picks one (use_cover). style: how it is made (auto: the director picks); vibes: up to ${COVER_VIBES_MAX} moods (dark, sad, hood, luxury\u2026); artist: auto (the director decides), always (needs their character), never; idea: the user's own words; words: none, title, or artist_title, lettered into the cover in the artist's typeface and read back letter by letter, always spelled as the song (the type style needs words); look: overrides the artist's colours and typeface. Ask the user for their choices rather than guessing, and quote first (quote_cover): credits must match. Needs a paid plan (402 plan_required) and an analysed song (409 song_not_ready); one round per song at a time (409 covers_in_progress).`,
|
|
21980
21993
|
method: "POST",
|
|
21981
21994
|
path: "/api/v1/cover-requests",
|
|
21982
21995
|
scopes: ["music:write", "videos:write"],
|
|
@@ -21987,7 +22000,7 @@ var OPERATIONS = [
|
|
|
21987
22000
|
vibes: external_exports.array(external_exports.enum(COVER_VIBE_IDS)).max(COVER_VIBES_MAX).optional().describe("Up to two moods or worlds"),
|
|
21988
22001
|
artist: external_exports.enum(COVER_ARTIST_MODES).optional().describe("Who is on it: auto (the director decides), always (the artist), never"),
|
|
21989
22002
|
idea: external_exports.string().trim().max(COVER_IDEA_MAX).optional().describe("The user's idea, in their words"),
|
|
21990
|
-
words: external_exports.enum(COVER_WORDS).optional().describe("Words on the cover,
|
|
22003
|
+
words: external_exports.enum(COVER_WORDS).optional().describe("Words on the cover, spelled exactly as the song: none (default), title, artist_title"),
|
|
21991
22004
|
look: CoverLookSchema.optional().describe("The artist's colours (hex) and typeface for this round"),
|
|
21992
22005
|
credits: external_exports.number().int().positive().describe("credits from quote_cover for this count, as shown to the user")
|
|
21993
22006
|
}),
|
|
@@ -22148,6 +22161,51 @@ var OPERATIONS = [
|
|
|
22148
22161
|
cli: ["songs", "clear-lyrics"],
|
|
22149
22162
|
mcp: "clear_song_lyrics"
|
|
22150
22163
|
},
|
|
22164
|
+
{
|
|
22165
|
+
id: "songs.edit_brief",
|
|
22166
|
+
group: "songs",
|
|
22167
|
+
title: "Correct a song\u2019s brief",
|
|
22168
|
+
summary: "Rewrite what the song is about, in the user\u2019s words",
|
|
22169
|
+
description: `The brief (get_song: brief) is what every director reads before making anything for the song: its theme, the story under it, how the feeling moves through its sections (mood_arc), the setting it evokes and its tone. When it reads the song wrong ("it\u2019s about my father, not a breakup"), send the fields to change; the others stay. mood_arc replaces the whole list (a section with an empty feeling is dropped); null or "" clears tone, story or setting; theme can\u2019t be emptied. Plain text, on one line each. The correction is the user\u2019s: brief.edited is true, every video, Canvas and cover made from then on reads it, and nothing replaces it (new lyrics or a new analysis keep it) until rewrite_song_brief. 409 while a song without a brief yet is sent no theme.`,
|
|
22170
|
+
method: "PATCH",
|
|
22171
|
+
path: "/api/v1/songs/{song_id}/brief",
|
|
22172
|
+
scopes: ["music:write", "videos:write"],
|
|
22173
|
+
input: external_exports.object({
|
|
22174
|
+
song_id: songId,
|
|
22175
|
+
theme: external_exports.string().max(SONG_BRIEF_LIMITS.theme).optional().describe("What the song is about, in a sentence"),
|
|
22176
|
+
tone: external_exports.string().max(SONG_BRIEF_LIMITS.tone).nullable().optional().describe("Its register, in a few words (tender, comic parody, defiant\u2026)"),
|
|
22177
|
+
story: external_exports.string().max(SONG_BRIEF_LIMITS.story).nullable().optional().describe("The story or situation under the words: who it is about, what happens"),
|
|
22178
|
+
setting: external_exports.string().max(SONG_BRIEF_LIMITS.setting).nullable().optional().describe("An era, a place or a scene it evokes"),
|
|
22179
|
+
mood_arc: external_exports.array(external_exports.object({
|
|
22180
|
+
section: external_exports.string().min(1).max(SONG_BRIEF_LIMITS.section).describe("The section, as the brief names it (Verse 1, Chorus 2\u2026)"),
|
|
22181
|
+
feeling: external_exports.string().max(SONG_BRIEF_LIMITS.feeling).describe("The feeling there, in a few words")
|
|
22182
|
+
})).max(SONG_BRIEF_LIMITS.sections).optional().describe("How the feeling moves through the song, section by section: replaces the whole list")
|
|
22183
|
+
}),
|
|
22184
|
+
readOnly: false,
|
|
22185
|
+
destructive: false,
|
|
22186
|
+
idempotent: true,
|
|
22187
|
+
cli: ["songs", "edit-brief"],
|
|
22188
|
+
mcp: "edit_song_brief",
|
|
22189
|
+
output: { name: "SongBrief", schema: SongBriefSchema },
|
|
22190
|
+
example: { song_id: "song_\u2026", theme: "A daughter talking to her late father about the life he missed" }
|
|
22191
|
+
},
|
|
22192
|
+
{
|
|
22193
|
+
id: "songs.remake_brief",
|
|
22194
|
+
group: "songs",
|
|
22195
|
+
title: "Rewrite a song\u2019s brief from the song",
|
|
22196
|
+
summary: "Drop the user\u2019s correction and read the song again",
|
|
22197
|
+
description: "Writes the brief again from the song as it is now (its lyrics and analysis), in the background: the answer has status writing; poll get_song until brief.status is ready, usually within half a minute. The user\u2019s correction (brief.edited) is dropped, so ask first. Free; a few times a day per song (429 past that). 409 while the song is being analysed.",
|
|
22198
|
+
method: "POST",
|
|
22199
|
+
path: "/api/v1/songs/{song_id}/brief",
|
|
22200
|
+
scopes: ["music:write", "videos:write"],
|
|
22201
|
+
input: external_exports.object({ song_id: songId }),
|
|
22202
|
+
readOnly: false,
|
|
22203
|
+
destructive: true,
|
|
22204
|
+
idempotent: false,
|
|
22205
|
+
cli: ["songs", "rewrite-brief"],
|
|
22206
|
+
mcp: "rewrite_song_brief",
|
|
22207
|
+
output: { name: "SongBrief", schema: SongBriefSchema }
|
|
22208
|
+
},
|
|
22151
22209
|
/* Looks */
|
|
22152
22210
|
{
|
|
22153
22211
|
id: "looks.list",
|
|
@@ -26754,7 +26812,7 @@ async function revoke(config2, auth = config2.auth) {
|
|
|
26754
26812
|
// package.json
|
|
26755
26813
|
var package_default = {
|
|
26756
26814
|
name: "@kinetune/cli",
|
|
26757
|
-
version: "2.
|
|
26815
|
+
version: "2.9.0",
|
|
26758
26816
|
description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
|
|
26759
26817
|
license: "MIT",
|
|
26760
26818
|
homepage: "https://kinetune.com/developers#cli",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinetune/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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",
|