@kinetune/cli 4.3.0 → 5.0.1

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/dist/kinetune.mjs CHANGED
@@ -12,32 +12,7 @@ import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2 } from
12
12
  import path3 from "node:path";
13
13
  import { createInterface } from "node:readline/promises";
14
14
 
15
- // ../composition/src/categories.ts
16
- var CATEGORY_IDS = [
17
- "release",
18
- "fall",
19
- "halloween",
20
- "christmas",
21
- "summer",
22
- "valentines",
23
- "mood",
24
- "retro",
25
- "synthwave",
26
- "street",
27
- "nature",
28
- "luxury",
29
- "abstract",
30
- "minimal",
31
- "neon",
32
- "pop-art",
33
- "lo-fi",
34
- "grunge",
35
- "cosmic",
36
- "cyber",
37
- "dreamy"
38
- ];
39
-
40
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
15
+ // node_modules/zod/v4/classic/external.js
41
16
  var external_exports = {};
42
17
  __export(external_exports, {
43
18
  $brand: () => $brand,
@@ -300,7 +275,7 @@ __export(external_exports, {
300
275
  xor: () => xor
301
276
  });
302
277
 
303
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
278
+ // node_modules/zod/v4/core/index.js
304
279
  var core_exports2 = {};
305
280
  __export(core_exports2, {
306
281
  $ZodAny: () => $ZodAny,
@@ -617,7 +592,7 @@ __export(core_exports2, {
617
592
  withParser: () => withParser
618
593
  });
619
594
 
620
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
595
+ // node_modules/zod/v4/core/util.js
621
596
  var util_exports = {};
622
597
  __export(util_exports, {
623
598
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -688,6 +663,7 @@ __export(util_exports, {
688
663
  required: () => required,
689
664
  safeExtend: () => safeExtend,
690
665
  shallowClone: () => shallowClone,
666
+ sizeCaps: () => sizeCaps,
691
667
  slugify: () => slugify,
692
668
  stringifyPrimitive: () => stringifyPrimitive,
693
669
  toZod: () => toZod,
@@ -1207,6 +1183,18 @@ function prefixIssues(path4, issues) {
1207
1183
  function unwrapMessage(message) {
1208
1184
  return typeof message === "string" ? message : message?.message;
1209
1185
  }
1186
+ function sizeCaps(defChecks) {
1187
+ const caps = [];
1188
+ for (const ch of defChecks ?? []) {
1189
+ const d = ch._zod.def;
1190
+ if (!/_(length|size)$|_equals$/.test(d.check))
1191
+ break;
1192
+ const max = d.maximum ?? d.length ?? d.size;
1193
+ if (max >= 0)
1194
+ caps.push([max, ch]);
1195
+ }
1196
+ return caps;
1197
+ }
1210
1198
  function attachSchema(issues, start, inst) {
1211
1199
  var _a3;
1212
1200
  for (let i = start; i < issues.length; i++) {
@@ -1328,8 +1316,8 @@ function base64urlToUint8Array(base64url3) {
1328
1316
  function uint8ArrayToBase64url(bytes) {
1329
1317
  return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
1330
1318
  }
1331
- function hexToUint8Array(hex6) {
1332
- const cleanHex = hex6.replace(/^0x/, "");
1319
+ function hexToUint8Array(hex4) {
1320
+ const cleanHex = hex4.replace(/^0x/, "");
1333
1321
  if (cleanHex.length % 2 !== 0) {
1334
1322
  throw new Error("Invalid hex string length");
1335
1323
  }
@@ -1460,7 +1448,7 @@ function constantCatch(value) {
1460
1448
  return fn;
1461
1449
  }
1462
1450
 
1463
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
1451
+ // node_modules/zod/v4/core/core.js
1464
1452
  var _a;
1465
1453
  var NEVER = /* @__PURE__ */ Object.freeze({
1466
1454
  status: "aborted"
@@ -1582,7 +1570,7 @@ function config(newConfig) {
1582
1570
  return globalConfig;
1583
1571
  }
1584
1572
 
1585
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
1573
+ // node_modules/zod/v4/core/errors.js
1586
1574
  function _getMessage() {
1587
1575
  const internals = this._zod;
1588
1576
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -1774,7 +1762,7 @@ function prettifyError(error62) {
1774
1762
  return lines.join("\n");
1775
1763
  }
1776
1764
 
1777
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
1765
+ // node_modules/zod/v4/core/parse.js
1778
1766
  function finalizeParams(callee, params) {
1779
1767
  return { callee: params?.callee ?? callee, Err: params?.Err };
1780
1768
  }
@@ -1934,7 +1922,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1934
1922
  };
1935
1923
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1936
1924
 
1937
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1925
+ // node_modules/zod/v4/core/regexes.js
1938
1926
  var regexes_exports = {};
1939
1927
  __export(regexes_exports, {
1940
1928
  anyString: () => anyString,
@@ -2106,7 +2094,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
2106
2094
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
2107
2095
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2108
2096
 
2109
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
2097
+ // node_modules/zod/v4/core/checks.js
2110
2098
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2111
2099
  var _a3;
2112
2100
  inst._zod ?? (inst._zod = {});
@@ -2582,7 +2570,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2582
2570
  };
2583
2571
  });
2584
2572
 
2585
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
2573
+ // node_modules/zod/v4/core/doc.js
2586
2574
  var Doc = class {
2587
2575
  constructor(args = [], closed = {}) {
2588
2576
  this.content = [];
@@ -2623,14 +2611,14 @@ ${content.join("\n")}
2623
2611
  }
2624
2612
  };
2625
2613
 
2626
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
2614
+ // node_modules/zod/v4/core/versions.js
2627
2615
  var version = {
2628
2616
  major: 4,
2629
2617
  minor: 6,
2630
- patch: 5
2618
+ patch: 7
2631
2619
  };
2632
2620
 
2633
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
2621
+ // node_modules/zod/v4/core/schemas.js
2634
2622
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2635
2623
  var _a3;
2636
2624
  inst ?? (inst = {});
@@ -3383,6 +3371,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
3383
3371
  return payload;
3384
3372
  };
3385
3373
  });
3374
+ function capSize(inst, size) {
3375
+ const caps = sizeCaps(inst._zod.def.checks);
3376
+ if (!caps.length)
3377
+ return;
3378
+ const cap = Math.min(...caps.map((c) => c[0]));
3379
+ const parse3 = inst._zod.parse;
3380
+ inst._zod.parse = (payload, ctx) => {
3381
+ const n = size(payload.value);
3382
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
3383
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
3384
+ if (n > max && ch._zod.def.when(payload)) {
3385
+ const start = payload.issues.length;
3386
+ ch._zod.check(payload);
3387
+ payload.issues[start].continue = false;
3388
+ attachSchema(payload.issues, start, inst);
3389
+ return payload;
3390
+ }
3391
+ }
3392
+ }
3393
+ return parse3(payload, ctx);
3394
+ };
3395
+ }
3396
+ var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
3397
+ var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
3398
+ var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
3386
3399
  function handleArrayResult(result, final, index) {
3387
3400
  if (result.issues.length) {
3388
3401
  final.issues.push(...prefixIssues(index, result.issues));
@@ -3426,6 +3439,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3426
3439
  }
3427
3440
  return payload;
3428
3441
  };
3442
+ capSize(inst, arraySize);
3429
3443
  });
3430
3444
  function handlePropertyResult(result, final, key, input2, optin, optout) {
3431
3445
  const isPresent = key in input2;
@@ -4382,6 +4396,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
4382
4396
  return Promise.all(proms).then(() => payload);
4383
4397
  return payload;
4384
4398
  };
4399
+ capSize(inst, mapSize);
4385
4400
  });
4386
4401
  function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
4387
4402
  if (keyResult.issues.length) {
@@ -4448,6 +4463,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
4448
4463
  return Promise.all(proms).then(() => payload);
4449
4464
  return payload;
4450
4465
  };
4466
+ capSize(inst, setSize);
4451
4467
  });
4452
4468
  function handleSetResult(result, final) {
4453
4469
  if (result.issues.length) {
@@ -5044,7 +5060,7 @@ function handleRefineResult(result, payload, input2, inst) {
5044
5060
  }
5045
5061
  }
5046
5062
 
5047
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
5063
+ // node_modules/zod/v4/core/memoizer.js
5048
5064
  var $ZodCyclicError = class extends Error {
5049
5065
  constructor() {
5050
5066
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -5321,7 +5337,7 @@ function isBackEdge(ctx, value) {
5321
5337
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
5322
5338
  }
5323
5339
 
5324
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
5340
+ // node_modules/zod/v4/locales/index.js
5325
5341
  var locales_exports = {};
5326
5342
  __export(locales_exports, {
5327
5343
  ar: () => ar_default,
@@ -5389,7 +5405,7 @@ __export(locales_exports, {
5389
5405
  zhTW: () => zh_TW_default
5390
5406
  });
5391
5407
 
5392
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.js
5408
+ // node_modules/zod/v4/locales/ar.js
5393
5409
  var error = () => {
5394
5410
  const Sizable = {
5395
5411
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -5501,7 +5517,7 @@ function ar_default() {
5501
5517
  };
5502
5518
  }
5503
5519
 
5504
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.js
5520
+ // node_modules/zod/v4/locales/az.js
5505
5521
  var error2 = () => {
5506
5522
  const Sizable = {
5507
5523
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -5612,7 +5628,7 @@ function az_default() {
5612
5628
  };
5613
5629
  }
5614
5630
 
5615
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
5631
+ // node_modules/zod/v4/locales/be.js
5616
5632
  function getBelarusianPlural(count, one, few, many) {
5617
5633
  const absCount = Math.abs(count);
5618
5634
  const lastDigit = absCount % 10;
@@ -5781,7 +5797,7 @@ function be_default() {
5781
5797
  };
5782
5798
  }
5783
5799
 
5784
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.js
5800
+ // node_modules/zod/v4/locales/bg.js
5785
5801
  var error4 = () => {
5786
5802
  const Sizable = {
5787
5803
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -5907,7 +5923,7 @@ function bg_default() {
5907
5923
  };
5908
5924
  }
5909
5925
 
5910
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.js
5926
+ // node_modules/zod/v4/locales/bn.js
5911
5927
  var error5 = () => {
5912
5928
  const Sizable = {
5913
5929
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -6021,7 +6037,7 @@ function bn_default() {
6021
6037
  };
6022
6038
  }
6023
6039
 
6024
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.js
6040
+ // node_modules/zod/v4/locales/ca.js
6025
6041
  var error6 = () => {
6026
6042
  const Sizable = {
6027
6043
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -6135,7 +6151,7 @@ function ca_default() {
6135
6151
  };
6136
6152
  }
6137
6153
 
6138
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
6154
+ // node_modules/zod/v4/locales/ckb.js
6139
6155
  var error7 = () => {
6140
6156
  const Sizable = {
6141
6157
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -6268,7 +6284,7 @@ function ckb_default() {
6268
6284
  };
6269
6285
  }
6270
6286
 
6271
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.js
6287
+ // node_modules/zod/v4/locales/cs.js
6272
6288
  var error8 = () => {
6273
6289
  const Sizable = {
6274
6290
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -6385,7 +6401,7 @@ function cs_default() {
6385
6401
  };
6386
6402
  }
6387
6403
 
6388
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.js
6404
+ // node_modules/zod/v4/locales/da.js
6389
6405
  var error9 = () => {
6390
6406
  const Sizable = {
6391
6407
  string: { unit: "tegn", verb: "havde" },
@@ -6506,7 +6522,7 @@ function da_default() {
6506
6522
  };
6507
6523
  }
6508
6524
 
6509
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.js
6525
+ // node_modules/zod/v4/locales/de.js
6510
6526
  var error10 = () => {
6511
6527
  const Sizable = {
6512
6528
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -6620,7 +6636,7 @@ function de_default() {
6620
6636
  };
6621
6637
  }
6622
6638
 
6623
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.js
6639
+ // node_modules/zod/v4/locales/el.js
6624
6640
  var error11 = () => {
6625
6641
  const Sizable = {
6626
6642
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -6733,7 +6749,7 @@ function el_default() {
6733
6749
  };
6734
6750
  }
6735
6751
 
6736
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
6752
+ // node_modules/zod/v4/locales/en.js
6737
6753
  var error12 = () => {
6738
6754
  const Sizable = {
6739
6755
  string: { unit: "characters", verb: "to have" },
@@ -6858,7 +6874,7 @@ function en_default() {
6858
6874
  };
6859
6875
  }
6860
6876
 
6861
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.js
6877
+ // node_modules/zod/v4/locales/eo.js
6862
6878
  var error13 = () => {
6863
6879
  const Sizable = {
6864
6880
  string: { unit: "karaktrojn", verb: "havi" },
@@ -6973,7 +6989,7 @@ function eo_default() {
6973
6989
  };
6974
6990
  }
6975
6991
 
6976
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.js
6992
+ // node_modules/zod/v4/locales/es.js
6977
6993
  var error14 = () => {
6978
6994
  const Sizable = {
6979
6995
  string: { unit: "caracteres", verb: "tener" },
@@ -7110,7 +7126,7 @@ function es_default() {
7110
7126
  };
7111
7127
  }
7112
7128
 
7113
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.js
7129
+ // node_modules/zod/v4/locales/fa.js
7114
7130
  var error15 = () => {
7115
7131
  const Sizable = {
7116
7132
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -7230,7 +7246,7 @@ function fa_default() {
7230
7246
  };
7231
7247
  }
7232
7248
 
7233
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.js
7249
+ // node_modules/zod/v4/locales/fi.js
7234
7250
  var error16 = () => {
7235
7251
  const Sizable = {
7236
7252
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -7348,7 +7364,7 @@ function fi_default() {
7348
7364
  };
7349
7365
  }
7350
7366
 
7351
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.js
7367
+ // node_modules/zod/v4/locales/fr.js
7352
7368
  var error17 = () => {
7353
7369
  const Sizable = {
7354
7370
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -7478,7 +7494,7 @@ function fr_default() {
7478
7494
  };
7479
7495
  }
7480
7496
 
7481
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
7497
+ // node_modules/zod/v4/locales/fr-CA.js
7482
7498
  var error18 = () => {
7483
7499
  const Sizable = {
7484
7500
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -7591,7 +7607,7 @@ function fr_CA_default() {
7591
7607
  };
7592
7608
  }
7593
7609
 
7594
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.js
7610
+ // node_modules/zod/v4/locales/gu.js
7595
7611
  var error19 = () => {
7596
7612
  const Sizable = {
7597
7613
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -7705,7 +7721,7 @@ function gu_default() {
7705
7721
  };
7706
7722
  }
7707
7723
 
7708
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.js
7724
+ // node_modules/zod/v4/locales/he.js
7709
7725
  var error20 = () => {
7710
7726
  const TypeNames = {
7711
7727
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -7907,7 +7923,7 @@ function he_default() {
7907
7923
  };
7908
7924
  }
7909
7925
 
7910
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.js
7926
+ // node_modules/zod/v4/locales/hi.js
7911
7927
  var error21 = () => {
7912
7928
  const Sizable = {
7913
7929
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -8019,7 +8035,7 @@ function hi_default() {
8019
8035
  };
8020
8036
  }
8021
8037
 
8022
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.js
8038
+ // node_modules/zod/v4/locales/hr.js
8023
8039
  var error22 = () => {
8024
8040
  const Sizable = {
8025
8041
  string: { unit: "znakova", verb: "imati" },
@@ -8146,7 +8162,7 @@ function hr_default() {
8146
8162
  };
8147
8163
  }
8148
8164
 
8149
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.js
8165
+ // node_modules/zod/v4/locales/hu.js
8150
8166
  var error23 = () => {
8151
8167
  const Sizable = {
8152
8168
  string: { unit: "karakter", verb: "legyen" },
@@ -8260,7 +8276,7 @@ function hu_default() {
8260
8276
  };
8261
8277
  }
8262
8278
 
8263
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
8279
+ // node_modules/zod/v4/locales/hy.js
8264
8280
  function getArmenianPlural(count, one, many) {
8265
8281
  return Math.abs(count) === 1 ? one : many;
8266
8282
  }
@@ -8419,7 +8435,7 @@ function hy_default() {
8419
8435
  };
8420
8436
  }
8421
8437
 
8422
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.js
8438
+ // node_modules/zod/v4/locales/id.js
8423
8439
  var error25 = () => {
8424
8440
  const Sizable = {
8425
8441
  string: { unit: "karakter", verb: "memiliki" },
@@ -8531,7 +8547,7 @@ function id_default() {
8531
8547
  };
8532
8548
  }
8533
8549
 
8534
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.js
8550
+ // node_modules/zod/v4/locales/is.js
8535
8551
  var error26 = () => {
8536
8552
  const Sizable = {
8537
8553
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -8646,7 +8662,7 @@ function is_default() {
8646
8662
  };
8647
8663
  }
8648
8664
 
8649
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.js
8665
+ // node_modules/zod/v4/locales/it.js
8650
8666
  var error27 = () => {
8651
8667
  const Sizable = {
8652
8668
  string: { unit: "caratteri", verb: "avere" },
@@ -8760,7 +8776,7 @@ function it_default() {
8760
8776
  };
8761
8777
  }
8762
8778
 
8763
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.js
8779
+ // node_modules/zod/v4/locales/ja.js
8764
8780
  var error28 = () => {
8765
8781
  const Sizable = {
8766
8782
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -8873,7 +8889,7 @@ function ja_default() {
8873
8889
  };
8874
8890
  }
8875
8891
 
8876
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.js
8892
+ // node_modules/zod/v4/locales/ka.js
8877
8893
  var error29 = () => {
8878
8894
  const Sizable = {
8879
8895
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -8991,7 +9007,7 @@ function ka_default() {
8991
9007
  };
8992
9008
  }
8993
9009
 
8994
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.js
9010
+ // node_modules/zod/v4/locales/km.js
8995
9011
  var error30 = () => {
8996
9012
  const Sizable = {
8997
9013
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -9107,12 +9123,12 @@ function km_default() {
9107
9123
  };
9108
9124
  }
9109
9125
 
9110
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.js
9126
+ // node_modules/zod/v4/locales/kh.js
9111
9127
  function kh_default() {
9112
9128
  return km_default();
9113
9129
  }
9114
9130
 
9115
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.js
9131
+ // node_modules/zod/v4/locales/kn.js
9116
9132
  var error31 = () => {
9117
9133
  const Sizable = {
9118
9134
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -9228,7 +9244,7 @@ function kn_default() {
9228
9244
  };
9229
9245
  }
9230
9246
 
9231
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.js
9247
+ // node_modules/zod/v4/locales/ko.js
9232
9248
  var error32 = () => {
9233
9249
  const Sizable = {
9234
9250
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -9345,7 +9361,7 @@ function ko_default() {
9345
9361
  };
9346
9362
  }
9347
9363
 
9348
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.js
9364
+ // node_modules/zod/v4/locales/lt.js
9349
9365
  var capitalizeFirstCharacter = (text) => {
9350
9366
  return text.charAt(0).toUpperCase() + text.slice(1);
9351
9367
  };
@@ -9553,7 +9569,7 @@ function lt_default() {
9553
9569
  };
9554
9570
  }
9555
9571
 
9556
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.js
9572
+ // node_modules/zod/v4/locales/mk.js
9557
9573
  var error34 = () => {
9558
9574
  const Sizable = {
9559
9575
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -9668,7 +9684,7 @@ function mk_default() {
9668
9684
  };
9669
9685
  }
9670
9686
 
9671
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.js
9687
+ // node_modules/zod/v4/locales/ms.js
9672
9688
  var error35 = () => {
9673
9689
  const Sizable = {
9674
9690
  string: { unit: "aksara", verb: "mempunyai" },
@@ -9781,7 +9797,7 @@ function ms_default() {
9781
9797
  };
9782
9798
  }
9783
9799
 
9784
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.js
9800
+ // node_modules/zod/v4/locales/ne.js
9785
9801
  var error36 = () => {
9786
9802
  const Sizable = {
9787
9803
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -9893,7 +9909,7 @@ function ne_default() {
9893
9909
  };
9894
9910
  }
9895
9911
 
9896
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.js
9912
+ // node_modules/zod/v4/locales/nl.js
9897
9913
  var error37 = () => {
9898
9914
  const Sizable = {
9899
9915
  string: { unit: "tekens", verb: "heeft" },
@@ -10009,7 +10025,7 @@ function nl_default() {
10009
10025
  };
10010
10026
  }
10011
10027
 
10012
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.js
10028
+ // node_modules/zod/v4/locales/nn.js
10013
10029
  var error38 = () => {
10014
10030
  const Sizable = {
10015
10031
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -10123,7 +10139,7 @@ function nn_default() {
10123
10139
  };
10124
10140
  }
10125
10141
 
10126
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.js
10142
+ // node_modules/zod/v4/locales/no.js
10127
10143
  var error39 = () => {
10128
10144
  const Sizable = {
10129
10145
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -10237,7 +10253,7 @@ function no_default() {
10237
10253
  };
10238
10254
  }
10239
10255
 
10240
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.js
10256
+ // node_modules/zod/v4/locales/ota.js
10241
10257
  var error40 = () => {
10242
10258
  const Sizable = {
10243
10259
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -10352,7 +10368,7 @@ function ota_default() {
10352
10368
  };
10353
10369
  }
10354
10370
 
10355
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.js
10371
+ // node_modules/zod/v4/locales/ps.js
10356
10372
  var error41 = () => {
10357
10373
  const Sizable = {
10358
10374
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -10472,7 +10488,7 @@ function ps_default() {
10472
10488
  };
10473
10489
  }
10474
10490
 
10475
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.js
10491
+ // node_modules/zod/v4/locales/pl.js
10476
10492
  var error42 = () => {
10477
10493
  const Sizable = {
10478
10494
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -10587,7 +10603,7 @@ function pl_default() {
10587
10603
  };
10588
10604
  }
10589
10605
 
10590
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.js
10606
+ // node_modules/zod/v4/locales/pt.js
10591
10607
  var error43 = () => {
10592
10608
  const Sizable = {
10593
10609
  string: { unit: "caracteres" },
@@ -10731,7 +10747,7 @@ function pt_default() {
10731
10747
  };
10732
10748
  }
10733
10749
 
10734
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
10750
+ // node_modules/zod/v4/locales/pt-BR.js
10735
10751
  var error44 = () => {
10736
10752
  const Sizable = {
10737
10753
  string: { unit: "caracteres" },
@@ -10876,7 +10892,7 @@ function pt_BR_default() {
10876
10892
  };
10877
10893
  }
10878
10894
 
10879
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.js
10895
+ // node_modules/zod/v4/locales/ro.js
10880
10896
  var error45 = () => {
10881
10897
  const Sizable = {
10882
10898
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -10999,7 +11015,7 @@ function ro_default() {
10999
11015
  };
11000
11016
  }
11001
11017
 
11002
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
11018
+ // node_modules/zod/v4/locales/ru.js
11003
11019
  function getRussianPlural(count, one, few, many) {
11004
11020
  const absCount = Math.abs(count);
11005
11021
  const lastDigit = absCount % 10;
@@ -11168,7 +11184,7 @@ function ru_default() {
11168
11184
  };
11169
11185
  }
11170
11186
 
11171
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.js
11187
+ // node_modules/zod/v4/locales/sk.js
11172
11188
  var error47 = () => {
11173
11189
  const Sizable = {
11174
11190
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -11285,7 +11301,7 @@ function sk_default() {
11285
11301
  };
11286
11302
  }
11287
11303
 
11288
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.js
11304
+ // node_modules/zod/v4/locales/sl.js
11289
11305
  var error48 = () => {
11290
11306
  const Sizable = {
11291
11307
  string: { unit: "znakov", verb: "imeti" },
@@ -11400,7 +11416,7 @@ function sl_default() {
11400
11416
  };
11401
11417
  }
11402
11418
 
11403
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.js
11419
+ // node_modules/zod/v4/locales/sv.js
11404
11420
  var error49 = () => {
11405
11421
  const Sizable = {
11406
11422
  string: { unit: "tecken", verb: "att ha" },
@@ -11516,7 +11532,7 @@ function sv_default() {
11516
11532
  };
11517
11533
  }
11518
11534
 
11519
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.js
11535
+ // node_modules/zod/v4/locales/ta.js
11520
11536
  var error50 = () => {
11521
11537
  const Sizable = {
11522
11538
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -11632,7 +11648,7 @@ function ta_default() {
11632
11648
  };
11633
11649
  }
11634
11650
 
11635
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.js
11651
+ // node_modules/zod/v4/locales/tg.js
11636
11652
  var error51 = () => {
11637
11653
  const Sizable = {
11638
11654
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -11749,7 +11765,7 @@ function tg_default() {
11749
11765
  };
11750
11766
  }
11751
11767
 
11752
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.js
11768
+ // node_modules/zod/v4/locales/th.js
11753
11769
  var error52 = () => {
11754
11770
  const Sizable = {
11755
11771
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -11865,7 +11881,7 @@ function th_default() {
11865
11881
  };
11866
11882
  }
11867
11883
 
11868
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.js
11884
+ // node_modules/zod/v4/locales/tk.js
11869
11885
  var error53 = () => {
11870
11886
  const Sizable = {
11871
11887
  string: { unit: "simwol", verb: "bolmaly" },
@@ -11973,7 +11989,7 @@ function tk_default() {
11973
11989
  };
11974
11990
  }
11975
11991
 
11976
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.js
11992
+ // node_modules/zod/v4/locales/tr.js
11977
11993
  var error54 = () => {
11978
11994
  const Sizable = {
11979
11995
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -12084,7 +12100,7 @@ function tr_default() {
12084
12100
  };
12085
12101
  }
12086
12102
 
12087
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.js
12103
+ // node_modules/zod/v4/locales/uk.js
12088
12104
  var error55 = () => {
12089
12105
  const Sizable = {
12090
12106
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -12198,12 +12214,12 @@ function uk_default() {
12198
12214
  };
12199
12215
  }
12200
12216
 
12201
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.js
12217
+ // node_modules/zod/v4/locales/ua.js
12202
12218
  function ua_default() {
12203
12219
  return uk_default();
12204
12220
  }
12205
12221
 
12206
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.js
12222
+ // node_modules/zod/v4/locales/ur.js
12207
12223
  var error56 = () => {
12208
12224
  const Sizable = {
12209
12225
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -12319,7 +12335,7 @@ function ur_default() {
12319
12335
  };
12320
12336
  }
12321
12337
 
12322
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.js
12338
+ // node_modules/zod/v4/locales/uz.js
12323
12339
  var error57 = () => {
12324
12340
  const Sizable = {
12325
12341
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -12433,7 +12449,7 @@ function uz_default() {
12433
12449
  };
12434
12450
  }
12435
12451
 
12436
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.js
12452
+ // node_modules/zod/v4/locales/vi.js
12437
12453
  var error58 = () => {
12438
12454
  const Sizable = {
12439
12455
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -12547,7 +12563,7 @@ function vi_default() {
12547
12563
  };
12548
12564
  }
12549
12565
 
12550
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
12566
+ // node_modules/zod/v4/locales/zh-CN.js
12551
12567
  var error59 = () => {
12552
12568
  const Sizable = {
12553
12569
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -12662,7 +12678,7 @@ function zh_CN_default() {
12662
12678
  };
12663
12679
  }
12664
12680
 
12665
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
12681
+ // node_modules/zod/v4/locales/zh-TW.js
12666
12682
  var error60 = () => {
12667
12683
  const Sizable = {
12668
12684
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -12775,7 +12791,7 @@ function zh_TW_default() {
12775
12791
  };
12776
12792
  }
12777
12793
 
12778
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.js
12794
+ // node_modules/zod/v4/locales/yo.js
12779
12795
  var error61 = () => {
12780
12796
  const Sizable = {
12781
12797
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -12888,7 +12904,7 @@ function yo_default() {
12888
12904
  };
12889
12905
  }
12890
12906
 
12891
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
12907
+ // node_modules/zod/v4/core/registries.js
12892
12908
  var _a2;
12893
12909
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
12894
12910
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -12938,7 +12954,7 @@ function registry() {
12938
12954
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
12939
12955
  var globalRegistry = globalThis.__zod_globalRegistry;
12940
12956
 
12941
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
12957
+ // node_modules/zod/v4/core/compile.js
12942
12958
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
12943
12959
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
12944
12960
  var ZodCompileAsyncError = class extends Error {
@@ -13978,9 +13994,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
13978
13994
  doc.write(`}`);
13979
13995
  return outputVar;
13980
13996
  }
13997
+ function generateSizeGate(doc, schema, size) {
13998
+ for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
13999
+ doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
14000
+ }
14001
+ }
13981
14002
  function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
13982
14003
  const def = schema._zod.def;
13983
14004
  doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
14005
+ generateSizeGate(doc, schema, `${accessor}.length`);
13984
14006
  const outputVar = buildsValue ? newVar(ctx) : null;
13985
14007
  const iVar = newVar(ctx);
13986
14008
  const elemVar = newVar(ctx);
@@ -14380,6 +14402,7 @@ function literalPropertyKey(ctx, key) {
14380
14402
  function generateMapCheck(doc, ctx, schema, accessor) {
14381
14403
  const def = schema._zod.def;
14382
14404
  doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
14405
+ generateSizeGate(doc, schema, `${accessor}.size`);
14383
14406
  const outputVar = newVar(ctx);
14384
14407
  const kVar = newVar(ctx);
14385
14408
  const valVar = newVar(ctx);
@@ -14396,6 +14419,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
14396
14419
  function generateSetCheck(doc, ctx, schema, accessor) {
14397
14420
  const def = schema._zod.def;
14398
14421
  doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
14422
+ generateSizeGate(doc, schema, `${accessor}.size`);
14399
14423
  const outputVar = newVar(ctx);
14400
14424
  const valVar = newVar(ctx);
14401
14425
  doc.write(`const ${outputVar} = new Set();`);
@@ -14540,7 +14564,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
14540
14564
  return accessor;
14541
14565
  }
14542
14566
 
14543
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
14567
+ // node_modules/zod/v4/core/api.js
14544
14568
  function snapshotChecks(def) {
14545
14569
  if (def.checks)
14546
14570
  def.checks = [...def.checks];
@@ -15599,7 +15623,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
15599
15623
  return inst;
15600
15624
  }
15601
15625
 
15602
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
15626
+ // node_modules/zod/v4/core/to-json-schema.js
15603
15627
  function assignProps(target, ...sources) {
15604
15628
  for (const source of sources) {
15605
15629
  for (const key of Reflect.ownKeys(source)) {
@@ -16129,7 +16153,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
16129
16153
  return finalize(ctx, schema);
16130
16154
  };
16131
16155
 
16132
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
16156
+ // node_modules/zod/v4/core/json-schema-processors.js
16133
16157
  var narrowMin = (agg, key, value) => {
16134
16158
  if (agg[key] === void 0 || value > agg[key])
16135
16159
  agg[key] = value;
@@ -16877,7 +16901,7 @@ function toJSONSchema(input2, params) {
16877
16901
  return finalize(ctx, input2);
16878
16902
  }
16879
16903
 
16880
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
16904
+ // node_modules/zod/v4/core/json-schema-generator.js
16881
16905
  var JSONSchemaGenerator = class {
16882
16906
  /** @deprecated Access via ctx instead */
16883
16907
  get metadataRegistry() {
@@ -16955,10 +16979,10 @@ var JSONSchemaGenerator = class {
16955
16979
  }
16956
16980
  };
16957
16981
 
16958
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
16982
+ // node_modules/zod/v4/core/json-schema.js
16959
16983
  var json_schema_exports = {};
16960
16984
 
16961
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
16985
+ // node_modules/zod/v4/classic/schemas.js
16962
16986
  var schemas_exports2 = {};
16963
16987
  __export(schemas_exports2, {
16964
16988
  ZodAny: () => ZodAny,
@@ -17139,7 +17163,7 @@ __export(schemas_exports2, {
17139
17163
  xor: () => xor
17140
17164
  });
17141
17165
 
17142
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
17166
+ // node_modules/zod/v4/classic/checks.js
17143
17167
  var checks_exports2 = {};
17144
17168
  __export(checks_exports2, {
17145
17169
  endsWith: () => _endsWith,
@@ -17174,7 +17198,7 @@ __export(checks_exports2, {
17174
17198
  uppercase: () => _uppercase
17175
17199
  });
17176
17200
 
17177
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
17201
+ // node_modules/zod/v4/classic/errors.js
17178
17202
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
17179
17203
  function _lazyMethod(proto, key, make) {
17180
17204
  Object.defineProperty(proto, key, {
@@ -17220,7 +17244,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
17220
17244
  Parent: Error
17221
17245
  });
17222
17246
 
17223
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
17247
+ // node_modules/zod/v4/classic/parse.js
17224
17248
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
17225
17249
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
17226
17250
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -17234,7 +17258,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
17234
17258
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
17235
17259
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
17236
17260
 
17237
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
17261
+ // node_modules/zod/v4/classic/schemas.js
17238
17262
  function _ensureDefaultLocale() {
17239
17263
  if (!globalConfig.localeError)
17240
17264
  config(en_default());
@@ -18699,7 +18723,7 @@ function preprocess(fn, schema) {
18699
18723
  });
18700
18724
  }
18701
18725
 
18702
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
18726
+ // node_modules/zod/v4/classic/compat.js
18703
18727
  var ZodIssueCode = {
18704
18728
  invalid_type: "invalid_type",
18705
18729
  too_big: "too_big",
@@ -18725,7 +18749,7 @@ var ZodFirstPartyTypeKind;
18725
18749
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
18726
18750
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
18727
18751
 
18728
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
18752
+ // node_modules/zod/v4/classic/iso.js
18729
18753
  var iso_exports = {};
18730
18754
  __export(iso_exports, {
18731
18755
  ZodISODate: () => ZodISODate,
@@ -18750,7 +18774,7 @@ function duration2(params) {
18750
18774
  return _isoDuration(ZodISODuration, params);
18751
18775
  }
18752
18776
 
18753
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
18777
+ // node_modules/zod/v4/classic/from-json-schema.js
18754
18778
  var z = {
18755
18779
  ...schemas_exports2,
18756
18780
  ...checks_exports2,
@@ -19483,7 +19507,7 @@ function fromJSONSchema(schema, params) {
19483
19507
  return convertSchema(normalized, ctx);
19484
19508
  }
19485
19509
 
19486
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/visit.js
19510
+ // node_modules/zod/v4/core/visit.js
19487
19511
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
19488
19512
  function visit(schema, fnOrHandlers) {
19489
19513
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -19638,7 +19662,7 @@ function visit(schema, fnOrHandlers) {
19638
19662
  return run(schema);
19639
19663
  }
19640
19664
 
19641
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
19665
+ // node_modules/zod/v4/classic/deep-partial.js
19642
19666
  function deepPartial(schema) {
19643
19667
  return visit(schema, {
19644
19668
  object: (s) => s.partial(),
@@ -19650,7 +19674,7 @@ function deepPartial(schema) {
19650
19674
  });
19651
19675
  }
19652
19676
 
19653
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
19677
+ // node_modules/zod/v4/classic/in-out.js
19654
19678
  function withChecks(side, checks) {
19655
19679
  if (!checks?.length)
19656
19680
  return side;
@@ -19680,7 +19704,7 @@ function output(schema) {
19680
19704
  });
19681
19705
  }
19682
19706
 
19683
- // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
19707
+ // node_modules/zod/v4/classic/coerce.js
19684
19708
  var coerce_exports = {};
19685
19709
  __export(coerce_exports, {
19686
19710
  bigint: () => bigint3,
@@ -19705,12 +19729,33 @@ function date4(params) {
19705
19729
  return _coercedDate(ZodDate, params);
19706
19730
  }
19707
19731
 
19708
- // ../composition/src/song.ts
19732
+ // src/api-spec.js
19733
+ var CATEGORY_IDS = [
19734
+ "release",
19735
+ "fall",
19736
+ "halloween",
19737
+ "christmas",
19738
+ "summer",
19739
+ "valentines",
19740
+ "mood",
19741
+ "retro",
19742
+ "synthwave",
19743
+ "street",
19744
+ "nature",
19745
+ "luxury",
19746
+ "abstract",
19747
+ "minimal",
19748
+ "neon",
19749
+ "pop-art",
19750
+ "lo-fi",
19751
+ "grunge",
19752
+ "cosmic",
19753
+ "cyber",
19754
+ "dreamy"
19755
+ ];
19709
19756
  var SPECTRUM_BANDS = 32;
19710
19757
  var SECTION_TYPES = ["intro", "verse", "chorus", "drop", "bridge", "outro"];
19711
19758
  var FRAME_BYTES = 5 + SPECTRUM_BANDS;
19712
-
19713
- // ../composition/src/clips.ts
19714
19759
  var CUT_DENSITIES = ["one", "fewer", "even", "more"];
19715
19760
  var MAX_CLIP_SOURCES = 50;
19716
19761
  var TRANSITIONS = {
@@ -19784,12 +19829,10 @@ var CLIP_SPEEDS = [0.5, 0.75, 1, 1.5, 2];
19784
19829
  var ClipMoodIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9-]{1,39}$/, "A mood id (lowercase letters, digits and dashes)");
19785
19830
  var ClipFolderIdSchema = external_exports.string().regex(/^folder_[0-9a-f-]{36}$/, "A clip folder id (folder_\u2026)");
19786
19831
  var ClipIdSchema = external_exports.string().regex(/^clip_[0-9a-f-]{36}$/, "A clip id (clip_\u2026)");
19787
- var ClipLookIdSchema = external_exports.string().regex(/^look_[A-Za-z0-9_-]{1,100}$/, "A Look id (look_\u2026)");
19788
19832
  var ClipSourcesSchema = external_exports.object({
19789
19833
  moods: external_exports.array(ClipMoodIdSchema).max(MAX_CLIP_SOURCES).default([]),
19790
- folders: external_exports.array(ClipFolderIdSchema).max(MAX_CLIP_SOURCES).default([]),
19791
- looks: external_exports.array(ClipLookIdSchema).max(MAX_CLIP_SOURCES).optional()
19792
- }).strict().refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) >= 1, { message: "Name at least one mood, folder or Look" }).refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) <= MAX_CLIP_SOURCES, { message: `At most ${MAX_CLIP_SOURCES} moods, folders and Looks together` });
19834
+ folders: external_exports.array(ClipFolderIdSchema).max(MAX_CLIP_SOURCES).default([])
19835
+ }).strict().refine((s) => s.moods.length + s.folders.length >= 1, { message: "Name at least one mood or folder" }).refine((s) => s.moods.length + s.folders.length <= MAX_CLIP_SOURCES, { message: `At most ${MAX_CLIP_SOURCES} moods and folders together` });
19793
19836
  var TransitionsSchema = external_exports.object({
19794
19837
  style: external_exports.enum(TRANSITION_STYLE_IDS).default("auto"),
19795
19838
  amount: external_exports.number().min(0).max(1).default(0.5),
@@ -19816,8 +19859,6 @@ var EditSchema = external_exports.object({
19816
19859
  density: external_exports.enum(CUT_DENSITIES),
19817
19860
  clips: external_exports.array(EditClipSchema).min(1).max(6e3)
19818
19861
  }).strict();
19819
-
19820
- // ../composition/src/fonts.ts
19821
19862
  var FONTS = {
19822
19863
  inter: { family: "Inter", kind: "sans", weights: [300, 500, 700, 800] },
19823
19864
  montserrat: { family: "Montserrat", kind: "sans", weights: [500, 700, 800] },
@@ -19868,8 +19909,15 @@ var FONTS = {
19868
19909
  };
19869
19910
  var FONT_IDS = Object.keys(FONTS);
19870
19911
  var LYRIC_FONT_IDS = FONT_IDS.filter((id3) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id3].kind) && id3 !== "abril-fatface");
19871
-
19872
- // ../composition/src/effects.ts
19912
+ var SCRIPT_FONTS = [
19913
+ { id: "noto-sans-arabic", family: "Noto Sans Arabic", subset: "arabic", weights: [400, 700, 900], range: "U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF" },
19914
+ { id: "noto-sans-hebrew", family: "Noto Sans Hebrew", subset: "hebrew", weights: [400, 700, 900], range: "U+0590-05FF,U+FB1D-FB4F" },
19915
+ { id: "noto-sans-syriac", family: "Noto Sans Syriac", subset: "syriac", weights: [400, 700], range: "U+0700-074F,U+0860-086F" },
19916
+ { id: "noto-sans-thaana", family: "Noto Sans Thaana", subset: "thaana", weights: [400, 700], range: "U+0780-07BF" },
19917
+ { id: "noto-sans-nko", family: "Noto Sans NKo", subset: "nko", weights: [400], range: "U+07C0-07FF" }
19918
+ ];
19919
+ var SCRIPT_FONT_STACK = SCRIPT_FONTS.map((f) => `"${f.family}"`).join(", ");
19920
+ var SCRIPT_CHAR = new RegExp(`[${SCRIPT_FONTS.flatMap((f) => f.range.split(",")).map((r) => r.replace("U+", "").split("-").map((h) => `\\u{${h}}`).join("-")).join("")}]`, "gu");
19873
19921
  var EFFECTS = {
19874
19922
  "light-leak": { name: "Light leak", group: "light" },
19875
19923
  "god-rays": { name: "God rays", group: "light" },
@@ -19891,8 +19939,6 @@ var DEFAULT_EFFECT_AMOUNT = 0.6;
19891
19939
  var EffectSchema = external_exports.object({ id: external_exports.enum(EFFECT_IDS), amount: external_exports.number().min(0).max(1).default(DEFAULT_EFFECT_AMOUNT) }).strict();
19892
19940
  var EffectsSchema = external_exports.array(EffectSchema).max(MAX_EFFECTS).refine((list) => new Set(list.map((e) => e.id)).size === list.length, { message: "Each effect once" });
19893
19941
  var TAU = Math.PI * 2;
19894
-
19895
- // ../composition/src/visualizers/engine-ids.ts
19896
19942
  var VIZZ_ENGINE_IDS = [
19897
19943
  "mesh-grid",
19898
19944
  "sphericalShader",
@@ -19908,8 +19954,6 @@ var VIZZ_ENGINE_IDS = [
19908
19954
  ];
19909
19955
  var LIQUID_ENGINE = "liquid";
19910
19956
  var VISUALIZER_ENGINE_IDS = [...VIZZ_ENGINE_IDS, LIQUID_ENGINE];
19911
-
19912
- // ../composition/src/short-styles.ts
19913
19957
  var S = (x, y, blur, opacity) => ({ x, y, blur, opacity });
19914
19958
  var F = (font2, weight, more = {}) => ({ font: font2, weight, ...more });
19915
19959
  var SHORT_SPECS = {
@@ -20199,8 +20243,6 @@ var MIXTAPE_FLICKER = [
20199
20243
  F("permanent-marker", 400),
20200
20244
  F("abril-fatface", 400)
20201
20245
  ];
20202
-
20203
- // ../composition/src/lyric-styles.ts
20204
20246
  var LYRIC_STAGES = ["showcase", "kinetic"];
20205
20247
  var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat", "short"];
20206
20248
  var SHADER_REVEALS = ["burn", "ink", "smoke", "particles", "drip"];
@@ -20659,8 +20701,6 @@ function styleParts(id3) {
20659
20701
  const s = LYRIC_STYLES[id3];
20660
20702
  return { style: id3, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
20661
20703
  }
20662
-
20663
- // ../composition/src/look.ts
20664
20704
  var LOOK_VERSION = 3;
20665
20705
  var ASPECT_RATIOS = ["9:16", "16:9", "1:1"];
20666
20706
  var AspectRatioSchema = external_exports.enum(ASPECT_RATIOS);
@@ -20840,8 +20880,6 @@ var DisplaySchema = external_exports.object({
20840
20880
  // omitted: 1
20841
20881
  }).strict();
20842
20882
  var DEFAULT_DISPLAY = { title: true, artist: true, cover: true, lyrics: true, badges: true };
20843
-
20844
- // ../composition/src/defaults.ts
20845
20883
  var EXAMPLE_LOOK = {
20846
20884
  version: LOOK_VERSION,
20847
20885
  category: "release",
@@ -20880,14 +20918,12 @@ var EXAMPLE_LOOK = {
20880
20918
  },
20881
20919
  motion: { energy: 0.6, intro: "rise" }
20882
20920
  };
20883
-
20884
- // ../composition/src/outro.ts
20885
- var hex4 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
20921
+ var hex22 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
20886
20922
  var font = external_exports.enum(FONT_IDS);
20887
20923
  var OUTRO_BACKDROPS = ["scrim", "darken", "blur"];
20888
20924
  var OUTRO_TRANSITIONS = ["none", "flash", "glitch", "burn"];
20889
20925
  var OutroDesignSchema = external_exports.object({
20890
- palette: external_exports.object({ text: hex4, muted: hex4, accent: hex4, shade: hex4 }).strict(),
20926
+ palette: external_exports.object({ text: hex22, muted: hex22, accent: hex22, shade: hex22 }).strict(),
20891
20927
  title_font: font,
20892
20928
  artist_font: font,
20893
20929
  title_uppercase: external_exports.boolean(),
@@ -20904,8 +20940,6 @@ var OutroDesignSchema = external_exports.object({
20904
20940
  transition: external_exports.enum(OUTRO_TRANSITIONS)
20905
20941
  }).strict();
20906
20942
  var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true, title_card: true });
20907
-
20908
- // ../composition/src/visualizers/choice-schema.ts
20909
20943
  var VisualKeySchema = external_exports.string().regex(/^[A-Za-z0-9-]+\/[a-z0-9-]+$/, 'A visual key from GET /v1/options (visualizers), like "liquid/amber-aurora"');
20910
20944
  var VisualChoiceSchema = external_exports.object({
20911
20945
  /** The visual for the whole song, or "none" (no visual at all). */
@@ -20913,8 +20947,6 @@ var VisualChoiceSchema = external_exports.object({
20913
20947
  /** Another visual for some sections (intro, verse, chorus, bridge, drop, outro). */
20914
20948
  sections: external_exports.partialRecord(external_exports.enum(SECTION_TYPES), VisualKeySchema).optional()
20915
20949
  }).strict();
20916
-
20917
- // ../composition/src/background-motion.ts
20918
20950
  var DIRECTIONS = {
20919
20951
  center: [0, 0],
20920
20952
  up: [0, -1],
@@ -20926,8 +20958,6 @@ var DIRECTIONS = {
20926
20958
  "down-left": [-Math.SQRT1_2, Math.SQRT1_2],
20927
20959
  "down-right": [Math.SQRT1_2, Math.SQRT1_2]
20928
20960
  };
20929
-
20930
- // ../composition/src/stock.ts
20931
20961
  var STOCK_PROVIDERS = {
20932
20962
  pexels: { name: "Pexels", url: "https://www.pexels.com", kinds: ["photo", "video"] },
20933
20963
  // Pixabay's API serves photos at most 1280 px: too small for a background, so only its videos are offered.
@@ -20935,13 +20965,9 @@ var STOCK_PROVIDERS = {
20935
20965
  };
20936
20966
  var STOCK_PROVIDER_IDS = Object.keys(STOCK_PROVIDERS);
20937
20967
  var STOCK_ITEM_ID_PATTERN = new RegExp(`^(?:(${STOCK_PROVIDER_IDS.join("|")}):)?\\d{1,20}$`);
20938
-
20939
- // ../composition/src/clips-editor.ts
20940
20968
  var VISUAL_ENERGIES = [{ value: "all", label: "All" }, { value: "calm", label: "Calm" }, { value: "medium", label: "Medium" }, { value: "bold", label: "Bold" }];
20941
20969
  var CLIP_SORTS = [{ value: "best", label: "Best first" }, { value: "newest", label: "Newest" }, { value: "length", label: "Length" }];
20942
20970
  var CLIP_BROWSE_SHAPES = [{ value: "both", label: "Both" }, { value: "tall", label: "Tall" }, { value: "wide", label: "Wide" }];
20943
-
20944
- // ../composition/src/canvas-frame.ts
20945
20971
  var CANVAS_SPEEDS = [0.25, ...CLIP_SPEEDS];
20946
20972
  var CANVAS_CROSSFADE = { min: 0.25, max: 2, default: 0.75, step: 0.05 };
20947
20973
  var CANVAS_CAMERAS = ["still", "push", "pull"];
@@ -20950,8 +20976,6 @@ var CANVAS_ROTATIONS = [0, 90, 180, 270];
20950
20976
  var CANVAS_ZOOM = { min: 1, max: 3 };
20951
20977
  var HEX_COLOUR = /^#[0-9a-fA-F]{6}$/;
20952
20978
  var DEFAULT_CANVAS_FRAME = { crossfade: CANVAS_CROSSFADE.default, camera: "still", fade: false, x: 0, y: 0, zoom: 1, rotate: 0, colour: null, steady: false };
20953
-
20954
- // ../composition/src/canvas-settings.ts
20955
20979
  var CANVAS_SECONDS = { min: 3, max: 8, default: 8 };
20956
20980
  var CANVAS_VISUAL_KEY = /^[A-Za-z0-9-]+\/[a-z0-9-]+$/;
20957
20981
  var CanvasLookSchema = external_exports.object({
@@ -20970,8 +20994,6 @@ var CanvasLookSchema = external_exports.object({
20970
20994
  light: external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)").nullable().default(null),
20971
20995
  atmosphere: external_exports.enum(OVERLAYS).default("none")
20972
20996
  }).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] });
20973
-
20974
- // ../video-types/src/kit.ts
20975
20997
  var KIT_KINDS = ["outfit", "place", "prop"];
20976
20998
  var KIT_ANGLES = ["wide", "three-quarter", "side", "reverse", "corner", "low", "high", "overhead", "detail", "framed"];
20977
20999
  var KIT_ANGLE_LINES = {
@@ -20992,8 +21014,6 @@ var SHOT_ANGLES = ["front", "three-quarter", "side", "low", "high", "over-should
20992
21014
  var SHOT_MOVES = ["push-in", "pull-out", "arc", "tilt", "dolly", "handheld", "locked-off"];
20993
21015
  var CHARACTER_DESCRIPTION_MIN = 10;
20994
21016
  var CHARACTER_DESCRIPTION_MAX = 600;
20995
-
20996
- // ../video-types/src/model-guide.ts
20997
21017
  var AA_T2V = { board: "Artificial Analysis \xB7 Text to video with audio", source: "Artificial Analysis Video Arena", url: "https://artificialanalysis.ai/video/leaderboard/text-to-video" };
20998
21018
  var AA_I2V = { board: "Artificial Analysis \xB7 Image to video with audio", source: "Artificial Analysis Video Arena", url: "https://artificialanalysis.ai/video/leaderboard/image-to-video" };
20999
21019
  var DA_MULTI = { board: "DesignArena \xB7 Multi-image to video", source: "DesignArena", url: "https://designarena.ai/leaderboard?tab=video&section=video&board=multi-to-video" };
@@ -21049,8 +21069,6 @@ var MUSIC_VIDEO_MODEL_GUIDES = {
21049
21069
  benchmarks: [{ ...DA_MULTI, entry: "Seedance 2.0 Mini", score: 1292, date: READ }]
21050
21070
  }
21051
21071
  };
21052
-
21053
- // ../video-types/src/visual-styles.ts
21054
21072
  var MUSIC_VIDEO_STYLE_IDS = [
21055
21073
  "natural",
21056
21074
  "film",
@@ -21071,8 +21089,6 @@ var MUSIC_VIDEO_STYLE_IDS = [
21071
21089
  "anime",
21072
21090
  "clay"
21073
21091
  ];
21074
-
21075
- // ../video-types/src/cover-art.ts
21076
21092
  var COVER_STYLE_IDS = ["auto", "portrait", "snapshot", "film-still", "object", "place", "painted", "illustrated", "cartoon", "anime", "collage", "3d", "graphic", "type"];
21077
21093
  var COVER_VIBE_IDS = ["dark", "sad", "romantic", "aggressive", "luxury", "aesthetic", "urban", "hood", "space", "surreal", "vintage"];
21078
21094
  var COVER_VIBES_MAX = 2;
@@ -21125,8 +21141,37 @@ var CoverRequestSchema = external_exports.object({
21125
21141
  credits: external_exports.number().int().positive()
21126
21142
  }).strict().refine((r) => r.style !== "type" || r.words !== "none", { message: "The Type style needs words: title, or artist and title", path: ["words"] });
21127
21143
  var CoverRedrawSchema = external_exports.object({ cover_id: external_exports.string().min(1), note: external_exports.string().trim().min(1).max(COVER_NOTE_MAX), credits: external_exports.number().int().positive() }).strict();
21128
-
21129
- // ../video-types/src/index.ts
21144
+ var SONG_MODEL_IDS = ["mureka-v9-5", "lyria-3-5", "eleven-music-v2-5", "minimax-music-3"];
21145
+ var DEFAULT_SONG_MODEL = "mureka-v9-5";
21146
+ var SONG_TAKES = { min: 1, max: 4 };
21147
+ var SONG_STYLE_MAX = 600;
21148
+ var SONG_IDEA_MAX = 400;
21149
+ var SONG_TITLE_MAX = 120;
21150
+ var SONG_VOICE_GENDERS = ["female", "male", "any"];
21151
+ var SongCreationRequestSchema = external_exports.object({
21152
+ artist_id: external_exports.string().min(1).max(120),
21153
+ model: external_exports.enum(SONG_MODEL_IDS).default(DEFAULT_SONG_MODEL),
21154
+ lyrics: external_exports.object({ source: external_exports.enum(["mine", "written", "none"]), text: external_exports.string().trim().max(5e3).optional() }).strict().refine((l) => l.source === "none" || Boolean(l.text), { message: "Write the lyrics, or choose none for an instrumental" }),
21155
+ title: external_exports.string().trim().min(1).max(SONG_TITLE_MAX).optional(),
21156
+ style: external_exports.string().trim().min(1).max(SONG_STYLE_MAX),
21157
+ voice: external_exports.object({ use: external_exports.enum(["artist", "new"]).default("new"), gender: external_exports.enum(SONG_VOICE_GENDERS).default("any") }).strict().default({ use: "new", gender: "any" }),
21158
+ /** Seconds, one of the model's choices, or auto. */
21159
+ length: external_exports.union([external_exports.literal("auto"), external_exports.number().int().min(30).max(300)]).default("auto"),
21160
+ takes: external_exports.number().int().min(SONG_TAKES.min).max(SONG_TAKES.max).default(2)
21161
+ }).strict();
21162
+ var SongDraftFormSchema = external_exports.object({
21163
+ model: external_exports.enum(SONG_MODEL_IDS).optional(),
21164
+ lyrics_source: external_exports.enum(["mine", "written", "none"]).optional(),
21165
+ idea: external_exports.string().max(SONG_IDEA_MAX).optional(),
21166
+ lyrics: external_exports.string().max(5e3).optional(),
21167
+ title: external_exports.string().max(SONG_TITLE_MAX).optional(),
21168
+ style: external_exports.array(external_exports.string().trim().min(1).max(80)).max(12).optional(),
21169
+ voice: external_exports.object({ use: external_exports.enum(["artist", "new"]).optional(), gender: external_exports.enum(SONG_VOICE_GENDERS).optional() }).strict().optional(),
21170
+ length: external_exports.union([external_exports.literal("auto"), external_exports.number().int().min(30).max(300)]).optional(),
21171
+ takes: external_exports.number().int().min(SONG_TAKES.min).max(SONG_TAKES.max).optional(),
21172
+ write_id: external_exports.string().max(80).optional()
21173
+ }).strict();
21174
+ var SongWritePickSchema = external_exports.object({ style: external_exports.boolean().optional(), voice: external_exports.boolean().optional() }).strict();
21130
21175
  var MAX_VARIATIONS = 4;
21131
21176
  var variations = external_exports.number().int().min(1).max(MAX_VARIATIONS).default(1);
21132
21177
  var MIN_TRIM_SECONDS = 8;
@@ -21161,7 +21206,6 @@ var UploadCreateSchema = external_exports.object({
21161
21206
  size_bytes: external_exports.number().int().min(1).max(UPLOAD_MAX_BYTES)
21162
21207
  }).strict();
21163
21208
  var LookRequestSchema = external_exports.object({
21164
- id: external_exports.string().min(1).max(120).optional(),
21165
21209
  lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
21166
21210
  behind: external_exports.boolean().optional(),
21167
21211
  visual: VisualChoiceSchema.optional(),
@@ -21256,16 +21300,11 @@ var DraftCut = external_exports.number().int().min(1).max(6e3);
21256
21300
  var VideoDraftEditShape = external_exports.object({
21257
21301
  type: external_exports.enum(["lyric-video", "canvas"]).default("lyric-video"),
21258
21302
  reset: external_exports.boolean().optional(),
21259
- look_id: external_exports.string().min(1).max(120).optional(),
21260
21303
  lyric_style: external_exports.enum(LYRIC_STYLE_IDS).nullable().optional(),
21261
21304
  behind: external_exports.boolean().nullable().optional(),
21262
21305
  visual: external_exports.string().min(1).max(120).nullable().optional(),
21263
21306
  picture: external_exports.enum(["clips", "visualizer", "cover"]).optional(),
21264
- sources: external_exports.object({
21265
- moods: external_exports.array(external_exports.string().min(1).max(80)).max(40).optional(),
21266
- folders: external_exports.array(external_exports.string().min(1).max(80)).max(40).optional(),
21267
- looks: external_exports.array(external_exports.string().min(1).max(120)).max(40).optional()
21268
- }).strict().optional(),
21307
+ sources: external_exports.object({ moods: external_exports.array(external_exports.string().min(1).max(80)).max(40).optional(), folders: external_exports.array(external_exports.string().min(1).max(80)).max(40).optional() }).strict().optional(),
21269
21308
  density: external_exports.enum(CUT_DENSITIES).optional(),
21270
21309
  transitions: external_exports.object({ style: TransitionsSchema.shape.style.unwrap().optional(), amount: external_exports.number().min(0).max(1).optional(), feel: external_exports.number().min(0).max(1).optional() }).strict().optional(),
21271
21310
  grade: external_exports.enum(GRADE_IDS).optional(),
@@ -21311,7 +21350,7 @@ function checkVideoDraftEdit(v, ctx) {
21311
21350
  for (const key of ["loop", "seconds", "cut", "motion", "light", "atmosphere", "frame"]) if (v[key] !== void 0) ctx.addIssue({ code: "custom", path: [key], message: `${key} is for a Canvas (type canvas)` });
21312
21351
  if (v.picture === "cover") ctx.addIssue({ code: "custom", path: ["picture"], message: "A lyric video's picture is clips or visualizer" });
21313
21352
  } else {
21314
- for (const key of ["look_id", "lyric_style", "behind", "density", "shape", "joins", "format", "trim", "display"]) if (v[key] !== void 0) ctx.addIssue({ code: "custom", path: [key], message: `${key} is for a lyric video` });
21353
+ for (const key of ["lyric_style", "behind", "density", "shape", "joins", "format", "trim", "display"]) if (v[key] !== void 0) ctx.addIssue({ code: "custom", path: [key], message: `${key} is for a lyric video` });
21315
21354
  }
21316
21355
  }
21317
21356
  var VideoDraftEditSchema = VideoDraftEditShape.superRefine(checkVideoDraftEdit);
@@ -21569,10 +21608,10 @@ var MusicVideoRequestSchema = external_exports.object({
21569
21608
  // Omitted: the model's default quality (MUSIC_VIDEO_MODELS[].defaultQuality), filled in below, so a parsed request always has one:
21570
21609
  // optional when parsed, typed as always there.
21571
21610
  quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).optional(),
21572
- // An outro after the video's last shot (on its last frame, held, the song playing on): the release card (cover, title, artist, streaming badges, as display shows them),
21573
- // designed by the director, or a saved lyric video Look's card as it is (look_id). Omitted: none. Free with the video; not part
21574
- // of the plan.
21575
- outro: external_exports.object({ display: OutroDisplaySchema, look_id: external_exports.string().min(1).max(120).optional() }).strict().optional(),
21611
+ // An outro after the video's last shot (on its last frame, held, the song playing on): a card with the cover, title, artist and
21612
+ // streaming badges (as display shows them), designed by the director, or the release card (kind "release-card": the artist's lyric
21613
+ // style's colours and type, the card their lyric videos end on). Omitted: none. Free with the video; not part of the plan.
21614
+ outro: external_exports.object({ display: OutroDisplaySchema, kind: external_exports.enum(["director", "release-card"]).optional() }).strict().optional(),
21576
21615
  // Finishing a delivered music video again (its kept, un-outro'd master), only its outro changed: no shot is made, no plan.
21577
21616
  refinish: external_exports.object({ video_id: external_exports.string().uuid() }).strict().optional(),
21578
21617
  // A test of a plan before the whole video: only its test shots (the chorus's first, about 20 seconds), at TEST_QUALITY whatever
@@ -21588,11 +21627,7 @@ var MusicVideoRequestSchema = external_exports.object({
21588
21627
  if (value.test && (value.outro || value.refinish || value.variations > 1)) ctx.addIssue({ code: "custom", path: ["test"], message: "A test is one video without an outro: leave outro, refinish and variations out" });
21589
21628
  });
21590
21629
  var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
21591
-
21592
- // ../api-spec/src/song-brief.ts
21593
21630
  var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
21594
-
21595
- // ../api-spec/src/artist-pages.ts
21596
21631
  var seg = (re) => (url2) => url2.pathname.match(re)?.[1] ?? null;
21597
21632
  var PLATFORMS = [
21598
21633
  { id: "apple_music", name: "Apple Music", category: "listen", icon: "applemusic", color: "#FA243C", hosts: ["music.apple.com", "itunes.apple.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
@@ -21757,7 +21792,7 @@ var PAGE_THEMES = ["stage", "paper", "neon", "studio"];
21757
21792
  var PAGE_FONTS = ["anton", "fraunces", "unbounded", "bebas", "archivo", "playfair"];
21758
21793
  var PAGE_BUTTONS = ["solid", "outline", "pill"];
21759
21794
  var PAGE_LAYOUTS = ["column", "split"];
21760
- var hex5 = external_exports.string().regex(/^#[0-9a-f]{6}$/i, "A colour like #f0a845");
21795
+ var hex32 = external_exports.string().regex(/^#[0-9a-f]{6}$/i, "A colour like #f0a845");
21761
21796
  var id = external_exports.string().min(1).max(80);
21762
21797
  var sectionBase = { id: external_exports.string().min(1).max(40), visible: external_exports.boolean().default(true), title: external_exports.string().trim().max(60).nullable().default(null) };
21763
21798
  var PageSectionSchema = external_exports.discriminatedUnion("type", [
@@ -21777,13 +21812,12 @@ var PageSectionSchema = external_exports.discriminatedUnion("type", [
21777
21812
  ])).max(24).default([]), layout: external_exports.enum(["row", "grid", "one"]).default("row") }),
21778
21813
  external_exports.object({ ...sectionBase, type: external_exports.literal("releases"), mode: external_exports.enum(["all", "picked"]).default("all"), picked: external_exports.array(id).max(60).default([]), hidden: external_exports.array(id).max(200).default([]), count: external_exports.union([external_exports.literal(4), external_exports.literal(8), external_exports.literal(0)]).default(8).describe("How many to show; 0 shows all") }),
21779
21814
  external_exports.object({ ...sectionBase, type: external_exports.literal("links"), links: external_exports.array(id).max(30).default([]).describe("Ids of the artist's links, in order"), big: id.nullable().default(null).describe("The one link drawn big") }),
21780
- external_exports.object({ ...sectionBase, type: external_exports.literal("about"), text: external_exports.string().max(4e3).default("") }),
21781
- external_exports.object({ ...sectionBase, type: external_exports.literal("looks") })
21815
+ external_exports.object({ ...sectionBase, type: external_exports.literal("about"), text: external_exports.string().max(4e3).default("") })
21782
21816
  ]);
21783
21817
  var PageDocSchema = external_exports.object({
21784
21818
  theme: external_exports.enum(PAGE_THEMES).default("stage"),
21785
- accent: hex5.nullable().default(null).describe("null uses the theme's accent"),
21786
- background: external_exports.discriminatedUnion("kind", [external_exports.object({ kind: external_exports.literal("color"), color: hex5 }), external_exports.object({ kind: external_exports.literal("photo") })]).nullable().default(null),
21819
+ accent: hex32.nullable().default(null).describe("null uses the theme's accent"),
21820
+ background: external_exports.discriminatedUnion("kind", [external_exports.object({ kind: external_exports.literal("color"), color: hex32 }), external_exports.object({ kind: external_exports.literal("photo") })]).nullable().default(null),
21787
21821
  font: external_exports.enum(PAGE_FONTS).nullable().default(null),
21788
21822
  buttons: external_exports.enum(PAGE_BUTTONS).nullable().default(null),
21789
21823
  layout: external_exports.enum(PAGE_LAYOUTS).nullable().default(null),
@@ -21800,28 +21834,22 @@ var PageDocSchema = external_exports.object({
21800
21834
  }).default({ ga4: null, meta_pixel: null, tiktok_pixel: null }).describe("The artist's own tracking IDs (plans only); pixels load after the fan accepts")
21801
21835
  });
21802
21836
  var PageDocPatchSchema = external_exports.object(Object.fromEntries(Object.entries(PageDocSchema.shape).map(([key, schema]) => [key, (schema instanceof external_exports.ZodDefault ? schema.unwrap() : schema).optional()])));
21803
-
21804
- // ../api-spec/src/versioning.ts
21805
21837
  var API_VERSION = 1;
21806
21838
  var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
21807
-
21808
- // ../api-spec/src/queue.ts
21809
21839
  var minutes = (seconds) => Math.max(1, Math.round(seconds / 60));
21810
21840
  function queueLabel(queue) {
21811
21841
  if (queue.reason === "plan_limit") return queue.position && queue.position > 1 ? `#${queue.position} in line` : "Next in line";
21812
21842
  if (queue.reason === "generator_capacity") return queue.position && queue.position > 1 ? `Generators busy \xB7 #${queue.position} in line` : "Generators busy \xB7 next in line";
21813
21843
  return queue.estimated_wait_seconds != null ? `Machines busy \xB7 about ${minutes(queue.estimated_wait_seconds)} min` : "Machines busy";
21814
21844
  }
21815
-
21816
- // ../api-spec/src/index.ts
21817
21845
  var SCOPES = ["videos:read", "videos:write", "music:read", "music:write", "library:read", "library:write", "organizations:read", "organizations:write"];
21818
21846
  var SCOPE_DESCRIPTIONS = {
21819
21847
  "videos:read": "See videos, quotes and your credit balance",
21820
21848
  "videos:write": "Quote, create, cancel, retry and delete videos (spends credits)",
21821
21849
  "music:read": "See artists, their characters, and songs",
21822
21850
  "music:write": "Add, rename and archive artists and songs, upload songs and make characters",
21823
- "library:read": "Browse Looks",
21824
- "library:write": "Rename, delete and publish your Looks",
21851
+ "library:read": "See your clips and drafts",
21852
+ "library:write": "Change your clips and drafts",
21825
21853
  "organizations:read": "See the workspaces you belong to",
21826
21854
  "organizations:write": "Create workspaces you own, and rename or switch the type of one you own or run"
21827
21855
  };
@@ -21829,7 +21857,6 @@ var ARTIST_LINK_KINDS = ["apple_music", "spotify", "youtube", "instagram", "tikt
21829
21857
  var id2 = (what) => external_exports.string().min(1).max(120).describe(`The ${what} id`);
21830
21858
  var songId = id2("song");
21831
21859
  var artistId = id2("artist");
21832
- var lookId = id2("Look");
21833
21860
  var videoId = id2("video");
21834
21861
  var IDEA_ID = external_exports.string().regex(/^idea_[A-Za-z0-9]{1,40}$/).describe("The idea id (idea_\u2026)");
21835
21862
  var search = (q) => ({
@@ -21877,9 +21904,9 @@ var lyricInput = external_exports.object({
21877
21904
  song_id: songId,
21878
21905
  callback_url: CALLBACK,
21879
21906
  metadata: METADATA,
21880
- look: lyricShape.look.describe(`Which Look and what to change. {"id":"look_\u2026"} uses a saved Look (list_looks); left out, Kinetune picks one for the song by rules (get_song_draft shows which, with its picture). Change any part: "lyric_style" (get_options lyric_styles), "behind" (true: big words go behind the subject of the clips, a person or a solid figure, which stands in front of them; only the lyric styles get_options marks behind: true take it, others keep their words in front; the behind style has it on, false turns it off), "visual" (get_options visualizers), and "background": {"kind":"clips","sources":{"moods":["euphoria"],"folders":["folder_\u2026"]},"density":"even","transitions":{"style":"auto","amount":0.5,"feel":0.5},"grade":"clean","grade_amount":1,"effects":[{"id":"film-grain","amount":0.5}],"shape":"both","fill":"blur","speed":1} for short clips cut on the beat (moods: get_options clip_moods, the Looks collection among them; folders: list_clip_folders; looks: Look ids whose own picture plays as clips, as a Look made before clips does; transitions, grades and densities: get_options; grade_amount: the grade's strength 0\u20131, default 1; effects: up to three from get_options effects, each with an amount 0\u20131, drawn over the clips across the song), or {"kind":"visualizer"} for a visual that fills the frame. Left out, the Look keeps its own picture. No AI designs anything: a lyric video costs its per-video price and render only (quote_lyric_video shows both)`),
21907
+ look: lyricShape.look.describe(`How it looks. Anything left out is the song's draft, picked by rules (get_song_draft shows it). Change any part: "lyric_style" (get_options lyric_styles), "behind" (true: big words go behind the subject of the clips, a person or a solid figure, which stands in front of them; only the lyric styles get_options marks behind: true take it, others keep their words in front; the behind style has it on, false turns it off), "visual" (get_options visualizers), and "background": {"kind":"clips","sources":{"moods":["euphoria"],"folders":["folder_\u2026"]},"density":"even","transitions":{"style":"auto","amount":0.5,"feel":0.5},"grade":"clean","grade_amount":1,"effects":[{"id":"film-grain","amount":0.5}],"shape":"both","fill":"blur","speed":1} for short clips cut on the beat (moods: get_options clip_moods; folders: list_clip_folders; transitions, grades and densities: get_options; grade_amount: the grade's strength 0\u20131, default 1; effects: up to three from get_options effects, each with an amount 0\u20131, drawn over the clips across the song), or {"kind":"visualizer"} for a visual that fills the frame. The lyric style brings its colours and type. No AI designs anything: a lyric video costs its per-video price and render only (quote_lyric_video shows both)`),
21881
21908
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
21882
- display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. title_card: when a kinetic lyric style shows its big title card instead of the small label: ends (before the first line and after the last; the default over clips), breaks (also every break of 3 s or more; the default otherwise) or label (never). censor: true shows swear words with their vowels as * (the song is untouched). A Look whose picture shows an artist needs cover false"),
21909
+ display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. title_card: when a kinetic lyric style shows its big title card instead of the small label: ends (before the first line and after the last; the default over clips), breaks (also every break of 3 s or more; the default otherwise) or label (never). censor: true shows swear words with their vowels as * (the song is untouched)"),
21883
21910
  trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
21884
21911
  variations: lyricShape.variations.describe("1\u20134 videos with a clips picture, each drawing other clips (the next seed); one otherwise"),
21885
21912
  edit: lyricShape.edit.describe(`A clips picture's cut: {"seed":7} draws the clips (same seed, same video; another seed, other clips on the same cuts), or "clips" lists them exactly as a studio previewed them (list_clips and @kinetune/composition planEdit: {clip_id, at, in, duration, transition}, each cut where you want it, each clip from where you want it to start); a clip may also set its own transition's transition_seconds (0.07\u20131), direction (left, right, up, down: whip, stack, wipe, slip, slice) and intensity (0\u20131, 0.5 as designed: hits, zooms, flashes, warps); one variation only`)
@@ -21941,7 +21968,7 @@ var musicVideoInput = external_exports.object({
21941
21968
  plan_id: musicShape.plan_id.describe("Make the video from this plan (plan_music_video): its brief (model, kind, visual style, format, section\u2026) replaces the one sent, so send song_id and plan_id; quality left out is the plan's model's default. Omitted, the director plans it while it is made"),
21942
21969
  quality: musicShape.quality.describe("The resolution it is made at: one of the qualities get_options lists for the model (left out, the model's default_quality: 768p for MiniMax H3 Max, 720p for Seedance; a sharper one is the same video for more credits); not part of the plan, so a plan is made in any quality. get_options lists each model's qualities with about how long each takes; credits.music_video.models has a minute by model and quality"),
21943
21970
  variations: musicShape.variations.describe("1\u20134 different music videos"),
21944
- outro: musicShape.outro.describe("Optional: end on a release card after the last shot, the song playing on under it (the delivered video is up to 5 seconds longer; the director designs it for the video, or look_id: a lyric video Look from list_looks whose card is used as it is). display: title, artist, cover, badges (true/false) and optional cover_scale, text_scale, artist_scale, spacing_scale. Free with the video"),
21971
+ outro: musicShape.outro.describe(`Optional: end on a release card after the last shot, the song playing on under it (the delivered video is up to 5 seconds longer; the director designs it for the video, or kind "release-card": the artist's lyric style's colours and type, the card their lyric videos end on). display: title, artist, cover, badges (true/false) and optional cover_scale, text_scale, artist_scale, spacing_scale. Free with the video`),
21945
21972
  refinish: musicShape.refinish.describe("Finish a delivered music video again with another outro, or none (send song_id, refinish.video_id and outro or not; one variation): no shot is made again (its kept shots are joined again under the song), only setup and delivery are charged. Needs the video's revisable_until ahead"),
21946
21973
  test: musicShape.test.describe("With plan_id: test the plan before the whole video. Only its test shots are made (the first chorus, else the sung section with the most lead words; whole shots, about 20 seconds at most), at 480p whatever quality is sent, with the plan's seeds and pictures, for a fraction of the price. The quote and get_video say which shots and seconds (test). It is an ordinary video marked as a test: no outro, one variation, never revised. Then order the whole video from the same plan_id without test")
21947
21974
  });
@@ -22040,14 +22067,12 @@ var VideoSharingSchema = external_exports.looseObject({
22040
22067
  video_id: external_exports.string(),
22041
22068
  sharing: SharingSchema.describe("Its place in the Community, or null while it is private"),
22042
22069
  look: external_exports.looseObject({
22043
- type: external_exports.enum(["music-video", "lyric-video"]),
22070
+ type: external_exports.literal("music-video"),
22044
22071
  id: external_exports.string(),
22045
22072
  name: external_exports.string(),
22046
22073
  visibility: external_exports.enum(["private", "public"]),
22047
- reward_credits: external_exports.number().describe("Credits the workspace holds while the Look stays public"),
22048
- shows_artist: external_exports.boolean().optional().describe("A lyric video's Look that shows the artist: it stays private"),
22049
- official: external_exports.boolean().optional()
22050
- }).nullable().describe("Its Look as making it public or private leaves it (a music video's concept, or the lyric video's Look); null when it has none")
22074
+ reward_credits: external_exports.number().describe("Credits the workspace holds while the Look stays public")
22075
+ }).nullable().describe("A music video's Look (its concept) as making it public or private leaves it; null for other videos, or one without")
22051
22076
  });
22052
22077
  var SHARE_CONSENT = "Never set rights_confirmed or socials on your own, and never assume them from an earlier answer: only when the user says so for this video.";
22053
22078
  var VideoOutputSchema = external_exports.looseObject({
@@ -22081,8 +22106,8 @@ var VideoSchema = external_exports.looseObject({
22081
22106
  outputs: external_exports.array(VideoOutputSchema).describe("One file per format, once delivered"),
22082
22107
  song: external_exports.object({ id: external_exports.string().nullable(), title: external_exports.string().nullable(), artist_name: external_exports.string().nullable() }),
22083
22108
  request: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What the video was made from, with your metadata"),
22084
- look_id: external_exports.string().nullable(),
22085
- look: external_exports.record(external_exports.string(), external_exports.unknown()).nullable(),
22109
+ look: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().describe("A lyric video's design as it rendered: its lyric style's colours and type, its picture and visual"),
22110
+ edit: external_exports.object({ seed: external_exports.number().int(), clips: external_exports.array(external_exports.record(external_exports.string(), external_exports.unknown())) }).passthrough().nullable().optional().describe("A lyric video's or a Canvas's clips as they were cut ({clip_id, at, in, duration, transition}, times from the video's start): send them back as the request's edit to make the same cut again; null for other pictures, or before it is planned"),
22086
22111
  canvas: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional().describe("A Canvas: what it was made from (picture, loop, seconds) and, for stock, the credit to show"),
22087
22112
  music_video: external_exports.object({
22088
22113
  title: external_exports.string().nullable(),
@@ -22166,7 +22191,7 @@ var OPERATIONS = [
22166
22191
  group: "account",
22167
22192
  title: "List the options",
22168
22193
  summary: "Video types, lyric styles, clip moods, formats and the current credit prices",
22169
- 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). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, as lyric_video, and clips: the same for the parts of a song people post (seconds: 15, 30, 60). clip_moods: Stock, the clip collections Kinetune keeps for everyone (free): each with id, name, group (kinetune or stock) and group_name, the heading people see (Feelings: moods, mostly tall; Places & textures: real footage), clips (how many are ready), tall and wide (how many of each shape) and poster_url; browse_clip_mood looks inside one. Use it to pick a category or source and to explain prices.",
22194
+ 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). credits.song: what a song made costs now: takes, one take of each model everyone is offered at its usual length (model, label, credits; each take is a different song), write_lyrics (lyrics written for you) and voice (setting up the artist's voice, once); the same numbers song.models and quote_new_song give. credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, as lyric_video, and clips: the same for the parts of a song people post (seconds: 15, 30, 60). clip_moods: Stock, the clip collections Kinetune keeps for everyone (free): each with id, name, group (kinetune or stock) and group_name, the heading people see (Feelings: moods, mostly tall; Places & textures: real footage), clips (how many are ready), tall and wide (how many of each shape) and poster_url; browse_clip_mood looks inside one. Use it to pick a category or source and to explain prices.",
22170
22195
  method: "GET",
22171
22196
  path: "/api/v1/options",
22172
22197
  scopes: ["videos:read", "music:read", "library:read"],
@@ -22197,7 +22222,7 @@ var OPERATIONS = [
22197
22222
  id: "organizations.create",
22198
22223
  group: "account",
22199
22224
  title: "Create an organization",
22200
- summary: "A new organization owned by you, with its own music, videos, Looks and credits",
22225
+ summary: "A new organization owned by you, with its own music, videos, clips and credits",
22201
22226
  description: "Creates an empty organization (a workspace, in the app) with the signed-in person as its owner; with an API key, the member who created the key (the key needs organizations:write). type artist is for one artist (add that artist next with create_artist; its songs then need no artist_id), label for a roster. It starts with no plan and no credits, so nothing can be created in it until it has one. These credentials keep acting for their current organization: to work in the new one, sign in again and pick it, or create an API key in it.",
22202
22227
  method: "POST",
22203
22228
  path: "/api/v1/organizations",
@@ -22533,7 +22558,7 @@ var OPERATIONS = [
22533
22558
  group: "artists",
22534
22559
  title: "Edit the artist page",
22535
22560
  summary: "Change the page\u2019s draft: look, photo, genres, sections, featured music and videos",
22536
- description: "Send only the fields that change; sections replaces the whole list (their order is the page\u2019s). Section types: out_now (release newest or pinned; plays video or cover; buttons: service ids), listen (platforms in order), videos (items: kinetune video_id of a finished video of this artist, or embed url on YouTube, Vimeo or TikTok), releases (all or picked; hidden release ids; count 4, 8 or 0 for all), links (profile ids from list_artist_profiles; big: one drawn big), about (text), looks. Fans see changes only after publish_artist_page. tracking (GA4, Meta Pixel, TikTok Pixel ids) needs a plan with the page extras (402).",
22561
+ description: "Send only the fields that change; sections replaces the whole list (their order is the page\u2019s). Section types: out_now (release newest or pinned; plays video or cover; buttons: service ids), listen (platforms in order), videos (items: kinetune video_id of a finished video of this artist, or embed url on YouTube, Vimeo or TikTok), releases (all or picked; hidden release ids; count 4, 8 or 0 for all), links (profile ids from list_artist_profiles; big: one drawn big), about (text). Fans see changes only after publish_artist_page. tracking (GA4, Meta Pixel, TikTok Pixel ids) needs a plan with the page extras (402).",
22537
22562
  method: "PATCH",
22538
22563
  path: "/api/v1/artists/{artist_id}/page",
22539
22564
  scopes: ["music:write", "videos:write"],
@@ -22979,7 +23004,9 @@ var OPERATIONS = [
22979
23004
  ...search("Part of the song title or artist name"),
22980
23005
  status: external_exports.enum(["pending", "processing", "ready", "failed"]).optional().describe("Only songs whose analysis has this status (ready = usable for videos)"),
22981
23006
  sort: external_exports.enum(["title", "newest"]).optional().describe("title (default): by artist then title; newest: latest uploads first"),
22982
- include: external_exports.enum(["videos"]).optional().describe("videos: each song also answers videos, its lyric videos, Canvases and music videos by kind (ready and in_production counts, the newest ready one's latest_video_id and poster_url, and your own draft of that kind or null), to see what a song still needs")
23007
+ include: external_exports.enum(["videos"]).optional().describe("videos: each song also answers videos, its lyric videos, Canvases and music videos by kind (ready and in_production counts, the newest ready one's latest_video_id and poster_url, and your own draft of that kind or null), to see what a song still needs"),
23008
+ source: external_exports.enum(["made", "uploaded"]).optional().describe("made: only songs Kinetune made (make_song); uploaded: only songs uploaded or imported"),
23009
+ counts: external_exports.boolean().optional().describe("true: also answer counts: songs (the artist's when artist_id is given), made, uploaded, and artists")
22983
23010
  }),
22984
23011
  readOnly: true,
22985
23012
  destructive: false,
@@ -23172,6 +23199,236 @@ var OPERATIONS = [
23172
23199
  mcp: "set_song_cover",
23173
23200
  example: { song_id: "song_\u2026", cover_art_url: "https://example.com/cover-3000.jpg" }
23174
23201
  },
23202
+ {
23203
+ id: "song_creations.write_lyrics",
23204
+ group: "songs",
23205
+ title: "Write song lyrics",
23206
+ summary: "Writes a song\u2019s lyrics, title and a style line from the user\u2019s idea, for an artist",
23207
+ description: 'For Create a song: original lyrics in the language asked, with sections in square brackets ([Verse 1], [Chorus]\u2026), sized for the chosen model, in the artist\u2019s world (their analysed songs). Nothing is made yet: show the lyrics, let the user edit them, then make_song with lyrics.source "written". The answer also says who should sing it (gender: female, male or any, from whose story the words tell). pick: what the user wants the director to choose too: style (its style line is meant to replace theirs; style given is then only a reference) and voice (for a new voice, use gender in make_song). Each write is kept in the user\u2019s draft for the artist (get_song_creation_draft), write_id naming it, with what was picked put in the draft too. credits: song.write_lyrics.credits from get_options, as shown to the user (a few credits a write). Needs a plan.',
23208
+ method: "POST",
23209
+ path: "/api/v1/song-lyrics",
23210
+ scopes: ["music:write"],
23211
+ input: external_exports.object({
23212
+ artist_id: external_exports.string().min(1).describe("The artist (or project) the song is for"),
23213
+ idea: external_exports.string().trim().min(3).max(SONG_IDEA_MAX).describe("What the song is about, in the user\u2019s words"),
23214
+ language: external_exports.string().regex(/^[a-z]{2,3}$/).optional().describe("ISO 639-1 code (default: the idea\u2019s language)"),
23215
+ model: external_exports.enum(SONG_MODEL_IDS).optional().describe("The model the song will be made with (sizes the lyrics)"),
23216
+ style: external_exports.string().trim().max(SONG_STYLE_MAX).optional().describe("The style, when the user has one"),
23217
+ pick: external_exports.object({ style: external_exports.boolean().optional().describe("The director picks the style, replacing the user\u2019s"), voice: external_exports.boolean().optional().describe("The director picks female or male, for a new voice") }).strict().optional().describe("What the director also picks"),
23218
+ credits: external_exports.number().int().min(0).describe("song.write_lyrics.credits from get_options")
23219
+ }),
23220
+ readOnly: false,
23221
+ destructive: false,
23222
+ idempotent: false,
23223
+ cli: ["songs", "write-lyrics"],
23224
+ mcp: "write_song_lyrics",
23225
+ example: { artist_id: "artist_\u2026", idea: "Last train missed, dancing on the platform at midnight", language: "fr", pick: { style: true, voice: true }, credits: 3 }
23226
+ },
23227
+ {
23228
+ id: "song_creations.quote",
23229
+ group: "songs",
23230
+ title: "Price a new song",
23231
+ summary: "What making a song costs: its takes from a model",
23232
+ description: "The same body as make_song without credits. credits is for every take (one take: a different song from the same request); tell the user before make_song and send the same credits. Refused (422) when the model can\u2019t do what is asked (its length, lyrics too long, the artist\u2019s voice with a model that can\u2019t sing in it).",
23233
+ method: "POST",
23234
+ path: "/api/v1/song-creations/quote",
23235
+ scopes: ["music:read", "music:write"],
23236
+ input: external_exports.object({
23237
+ artist_id: external_exports.string().min(1).describe("The artist (or project) the song is for"),
23238
+ model: external_exports.enum(SONG_MODEL_IDS).optional().describe("A song model from get_options song.models (default: song.default_model)"),
23239
+ lyrics: external_exports.object({ source: external_exports.enum(["mine", "written", "none"]).describe("mine: the user\u2019s lyrics; written: from write_song_lyrics; none: an instrumental"), text: external_exports.string().max(5e3).optional().describe("The lyrics, sections in square brackets") }).describe("The lyrics, or none for an instrumental"),
23240
+ title: external_exports.string().trim().max(SONG_TITLE_MAX).optional().describe("The song\u2019s title (default: from the lyrics, else Untitled)"),
23241
+ style: external_exports.string().trim().min(1).max(SONG_STYLE_MAX).describe("Genre, mood, tempo, instruments; never another artist\u2019s name"),
23242
+ voice: external_exports.object({ use: external_exports.enum(["artist", "new"]).optional().describe("artist: the artist\u2019s own Voice (get_artist_voice; only models with voice-clone); new: a new voice (default)"), gender: external_exports.enum(SONG_VOICE_GENDERS).optional().describe("A new voice: female, male or any (default)") }).optional().describe("Whose voice sings (ignored for an instrumental)"),
23243
+ length: external_exports.union([external_exports.literal("auto"), external_exports.number().int()]).optional().describe("Seconds, one of the model\u2019s lengths, or auto (default)"),
23244
+ takes: external_exports.number().int().min(SONG_TAKES.min).max(SONG_TAKES.max).optional().describe("How many takes, 1 to 4 (default 2)")
23245
+ }),
23246
+ readOnly: true,
23247
+ destructive: false,
23248
+ idempotent: true,
23249
+ cli: ["songs", "quote-new"],
23250
+ mcp: "quote_new_song"
23251
+ },
23252
+ {
23253
+ id: "song_creations.create",
23254
+ group: "songs",
23255
+ title: "Make a song",
23256
+ summary: "Kinetune makes a new song for an artist with an AI music model: 1 to 4 takes",
23257
+ description: "Each take is a different song from the same request; each that comes back (about a minute) is an ordinary song of the artist (audio_source made, made: what it was made with), analysed like an upload and ready for videos, Canvas and covers. Only takes made are charged. Poll get_song_creation. credits: quote_new_song\u2019s credits, as shown to the user. Needs a plan.",
23258
+ method: "POST",
23259
+ path: "/api/v1/song-creations",
23260
+ scopes: ["music:write"],
23261
+ input: external_exports.object({
23262
+ artist_id: external_exports.string().min(1).describe("The artist (or project) the song is for"),
23263
+ model: external_exports.enum(SONG_MODEL_IDS).optional().describe("A song model from get_options song.models"),
23264
+ lyrics: external_exports.object({ source: external_exports.enum(["mine", "written", "none"]).describe("mine, written (write_song_lyrics) or none (an instrumental)"), text: external_exports.string().max(5e3).optional().describe("The lyrics, sections in square brackets") }).describe("The lyrics, or none"),
23265
+ title: external_exports.string().trim().max(SONG_TITLE_MAX).optional().describe("The song\u2019s title"),
23266
+ style: external_exports.string().trim().min(1).max(SONG_STYLE_MAX).describe("Genre, mood, tempo, instruments; never another artist\u2019s name"),
23267
+ voice: external_exports.object({ use: external_exports.enum(["artist", "new"]).optional().describe("artist (the artist\u2019s Voice) or new (default)"), gender: external_exports.enum(SONG_VOICE_GENDERS).optional().describe("A new voice: female, male or any") }).optional().describe("Whose voice sings"),
23268
+ length: external_exports.union([external_exports.literal("auto"), external_exports.number().int()]).optional().describe("Seconds, one of the model\u2019s lengths, or auto"),
23269
+ takes: external_exports.number().int().min(SONG_TAKES.min).max(SONG_TAKES.max).optional().describe("How many takes, 1 to 4 (default 2)"),
23270
+ credits: external_exports.number().int().min(0).describe("credits from quote_new_song")
23271
+ }),
23272
+ readOnly: false,
23273
+ destructive: true,
23274
+ idempotent: false,
23275
+ cli: ["songs", "make"],
23276
+ mcp: "make_song",
23277
+ example: { artist_id: "artist_\u2026", model: "mureka-v9-5", lyrics: { source: "mine", text: "[Verse]\n\u2026\n[Chorus]\n\u2026" }, style: "French pop, warm synths, 104 BPM", voice: { use: "new", gender: "female" }, takes: 2, credits: 146 }
23278
+ },
23279
+ {
23280
+ id: "song_creations.get",
23281
+ group: "songs",
23282
+ title: "Get a song being made",
23283
+ summary: "A song creation\u2019s status and its takes, each with the song it became",
23284
+ description: "status: queued, making (takes arrive one by one), done (at least one take made) or failed (nothing charged; error says why). takes[].status: making, done (song: the new song) or failed (not charged).",
23285
+ method: "GET",
23286
+ path: "/api/v1/song-creations/{creation_id}",
23287
+ scopes: ["music:read", "videos:read"],
23288
+ input: external_exports.object({ creation_id: external_exports.string().min(1).describe("The creation id (songmake_\u2026)") }),
23289
+ readOnly: true,
23290
+ destructive: false,
23291
+ idempotent: true,
23292
+ cli: ["songs", "creation"],
23293
+ mcp: "get_song_creation"
23294
+ },
23295
+ {
23296
+ id: "song_creations.list",
23297
+ group: "songs",
23298
+ title: "List songs made",
23299
+ summary: "An artist\u2019s song creations, newest first, a page at a time",
23300
+ description: "Each with its request and takes. next_cursor: pass as cursor for the next page.",
23301
+ method: "GET",
23302
+ path: "/api/v1/song-creations",
23303
+ scopes: ["music:read", "videos:read"],
23304
+ input: external_exports.object({ artist_id: external_exports.string().optional().describe("Only this artist\u2019s"), limit: external_exports.number().int().min(1).max(50).optional().describe("How many (default 20)"), cursor: external_exports.string().optional().describe("next_cursor from the page before") }),
23305
+ readOnly: true,
23306
+ destructive: false,
23307
+ idempotent: true,
23308
+ cli: ["songs", "creations"],
23309
+ mcp: "list_song_creations"
23310
+ },
23311
+ {
23312
+ id: "song_drafts.get",
23313
+ group: "songs",
23314
+ title: "Get a song draft",
23315
+ summary: "The user\u2019s Create a song draft for an artist, with every lyrics write kept",
23316
+ description: "One per person and artist, so nothing typed or paid for is lost. form: the fields as they left them (null when there is no draft). writes: every write_song_lyrics kept, newest first (10 at most), each with its idea, title, lyrics, style, language and credits; form.write_id names the one in use. Deleted when a song is made for the artist, on delete_song_creation_draft, or after 30 days.",
23317
+ method: "GET",
23318
+ path: "/api/v1/artists/{artist_id}/song-draft",
23319
+ scopes: ["music:read", "music:write"],
23320
+ input: external_exports.object({ artist_id: external_exports.string().min(1).describe("The artist (or project) the draft is for") }),
23321
+ readOnly: true,
23322
+ destructive: false,
23323
+ idempotent: true,
23324
+ cli: ["songs", "new-draft"],
23325
+ mcp: "get_song_creation_draft"
23326
+ },
23327
+ {
23328
+ id: "song_drafts.save",
23329
+ group: "songs",
23330
+ title: "Save a song draft",
23331
+ summary: "Saves the user\u2019s Create a song fields for an artist, to pick up later",
23332
+ description: "Replaces the form; the kept writes stay. Every field is optional (a draft is unfinished). Nothing is made or charged.",
23333
+ method: "PATCH",
23334
+ path: "/api/v1/artists/{artist_id}/song-draft",
23335
+ scopes: ["music:write"],
23336
+ input: external_exports.object({
23337
+ artist_id: external_exports.string().min(1).describe("The artist (or project) the draft is for"),
23338
+ form: external_exports.object({
23339
+ model: external_exports.enum(SONG_MODEL_IDS).optional().describe("A song model from get_options song.models"),
23340
+ lyrics_source: external_exports.enum(["mine", "written", "none"]).optional().describe("mine, written (write_song_lyrics) or none (an instrumental)"),
23341
+ idea: external_exports.string().max(SONG_IDEA_MAX).optional().describe("What the song is about, for write_song_lyrics"),
23342
+ lyrics: external_exports.string().max(5e3).optional().describe("The lyrics, sections in square brackets"),
23343
+ title: external_exports.string().max(SONG_TITLE_MAX).optional().describe("The song\u2019s title"),
23344
+ style: external_exports.array(external_exports.string().max(80)).max(12).optional().describe("Style words: genre, mood, tempo, instruments"),
23345
+ voice: external_exports.object({ use: external_exports.enum(["artist", "new"]).optional().describe("artist (the artist\u2019s Voice) or new"), gender: external_exports.enum(SONG_VOICE_GENDERS).optional().describe("A new voice: female, male or any") }).optional().describe("Whose voice sings"),
23346
+ length: external_exports.union([external_exports.literal("auto"), external_exports.number().int()]).optional().describe("Seconds, one of the model\u2019s lengths, or auto"),
23347
+ takes: external_exports.number().int().min(SONG_TAKES.min).max(SONG_TAKES.max).optional().describe("How many takes, 1 to 4"),
23348
+ write_id: external_exports.string().optional().describe("The kept write the lyrics came from (get_song_creation_draft writes[].id)")
23349
+ }).describe("The Create a song fields")
23350
+ }),
23351
+ readOnly: false,
23352
+ destructive: true,
23353
+ idempotent: true,
23354
+ cli: ["songs", "save-new-draft"],
23355
+ mcp: "save_song_creation_draft"
23356
+ },
23357
+ {
23358
+ id: "song_drafts.delete",
23359
+ group: "songs",
23360
+ title: "Delete a song draft",
23361
+ summary: "Starts the user\u2019s Create a song for an artist over; its kept lyrics writes go with it",
23362
+ description: "Only when the user asks: the writes kept in it (paid for) are deleted too. Songs already made are never touched. Answers deleted.",
23363
+ method: "DELETE",
23364
+ path: "/api/v1/artists/{artist_id}/song-draft",
23365
+ scopes: ["music:write"],
23366
+ input: external_exports.object({ artist_id: external_exports.string().min(1).describe("The artist (or project) the draft is for") }),
23367
+ readOnly: false,
23368
+ destructive: true,
23369
+ idempotent: true,
23370
+ cli: ["songs", "delete-new-draft"],
23371
+ mcp: "delete_song_creation_draft"
23372
+ },
23373
+ {
23374
+ id: "voices.get",
23375
+ group: "artists",
23376
+ title: "Get an artist\u2019s voice",
23377
+ summary: "The artist\u2019s Voice for songs Kinetune makes, the style their songs suggest, and what setting one up costs",
23378
+ description: 'voice: null when none (many artists never need one: instrumentals, one-off songs). status: preparing, ready (songs can be sung in it with voice.use "artist" on a model with voice-clone) or failed. phrase: what a real singer says aloud when setting up their voice. credits: by source.',
23379
+ method: "GET",
23380
+ path: "/api/v1/artists/{artist_id}/voice",
23381
+ scopes: ["music:read"],
23382
+ input: external_exports.object({ artist_id: external_exports.string().min(1).describe("The artist id") }),
23383
+ readOnly: true,
23384
+ destructive: false,
23385
+ idempotent: true,
23386
+ cli: ["artists", "voice"],
23387
+ mcp: "get_artist_voice"
23388
+ },
23389
+ {
23390
+ id: "voices.create",
23391
+ group: "artists",
23392
+ title: "Set up an artist\u2019s voice",
23393
+ summary: "Keeps 15-30 seconds of the artist\u2019s voice so songs Kinetune makes can be sung in it",
23394
+ description: "source: song (song_id: one of their analysed songs; the lead vocal is separated and the best 25 seconds kept), take (song_id: a made take whose voice they like, for an AI artist) or upload (upload_url: 15 to 30 seconds of the voice alone). ai_made: ask the user whether this is an AI-made voice or a real person's; never guess. A real voice needs consent: confirmed true only when the user says it is their own voice or they have the singer's written permission, and phrase_url, the singer saying the phrase from get_artist_voice. It replaces the voice they had once ready. credits: from get_artist_voice, as shown to the user. Needs a plan.",
23395
+ method: "POST",
23396
+ path: "/api/v1/artists/{artist_id}/voice",
23397
+ scopes: ["music:write"],
23398
+ input: external_exports.object({
23399
+ artist_id: external_exports.string().min(1).describe("The artist id"),
23400
+ source: external_exports.enum(["song", "take", "upload"]).describe("Where the voice comes from"),
23401
+ song_id: external_exports.string().optional().describe("source song or take: the song"),
23402
+ upload_url: external_exports.string().url().optional().describe("source upload: 15-30 s of the voice alone (create_upload\u2019s file_url)"),
23403
+ ai_made: external_exports.boolean().describe("true: an AI-made voice; false: a real person\u2019s (needs consent)"),
23404
+ consent: external_exports.object({
23405
+ confirmed: external_exports.boolean().describe("The user says it is their own voice or they have the singer\u2019s written permission"),
23406
+ phrase_url: external_exports.string().url().optional().describe("The singer saying the phrase from get_artist_voice (create_upload\u2019s file_url)")
23407
+ }).optional().describe("A real voice\u2019s consent"),
23408
+ credits: external_exports.number().int().min(0).describe("credits from get_artist_voice for this source")
23409
+ }),
23410
+ readOnly: false,
23411
+ destructive: true,
23412
+ idempotent: false,
23413
+ cli: ["artists", "set-voice"],
23414
+ mcp: "set_artist_voice"
23415
+ },
23416
+ {
23417
+ id: "voices.delete",
23418
+ group: "artists",
23419
+ title: "Forget an artist\u2019s voice",
23420
+ summary: "Deletes the artist\u2019s Voice; songs already made keep their sound",
23421
+ description: "The sample and the spoken phrase are deleted and every provider\u2019s copy dropped.",
23422
+ method: "DELETE",
23423
+ path: "/api/v1/artists/{artist_id}/voice",
23424
+ scopes: ["music:write"],
23425
+ input: external_exports.object({ artist_id: external_exports.string().min(1).describe("The artist id") }),
23426
+ readOnly: false,
23427
+ destructive: true,
23428
+ idempotent: true,
23429
+ cli: ["artists", "forget-voice"],
23430
+ mcp: "delete_artist_voice"
23431
+ },
23175
23432
  {
23176
23433
  id: "covers.list",
23177
23434
  group: "songs",
@@ -23321,7 +23578,7 @@ var OPERATIONS = [
23321
23578
  group: "songs",
23322
23579
  title: "Get a song\u2019s analysis",
23323
23580
  summary: "Word-timed lyrics, tempo, beats, sections, hook and the parts a video can be cut to",
23324
- description: 'parts lists where a video can start and end without cutting a word: each section (Verse 1, Chorus 1\u2026), clips of about 15 seconds cut between the lines of long sections (kind "clip", parent: its section) and each verse with the chorus after it (kind "pair"); pass a part\u2019s start and end as a video\u2019s trim (start_seconds, end_seconds), picking one at least as long as the video type\u2019s minimum (a lyric video 8 seconds, a music video 15). default_part is the one the app starts on: the sung part nearest 15 seconds. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which). The analysis also listens for who sings: map.voices lists where someone other than the lead artist sings (voice "other": another solo voice; "group": a choir, a crowd or backing singers), and those words carry backing: true (music videos keep them off camera, never lip-synced by the artist); map.instrumental is true when no vocals were heard. A song analyzed before voices were heard has no map.voices until its first music video plan listens to it.',
23581
+ description: 'parts lists where a video can start and end without cutting a word: each section (Verse 1, Chorus 1\u2026), clips of about 15 seconds cut between the lines of long sections (kind "clip", parent: its section) and each verse with the chorus after it (kind "pair"); pass a part\u2019s start and end as a video\u2019s trim (start_seconds, end_seconds), picking one at least as long as the video type\u2019s minimum (a lyric video 8 seconds, a music video 15). default_part is the one the app starts on: the sung part nearest 15 seconds. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which). The analysis also listens for who sings: map.voices lists where someone other than the lead artist sings (voice "other": another solo voice; "group": a choir, a crowd or backing singers), and those words carry backing: true (music videos keep them off camera, never lip-synced by the artist); map.instrumental is true when no vocals were heard. A song analyzed before voices were heard has no map.voices until its first music video plan listens to it. While the analysis runs it answers its status and audio_url, so the song plays before its analysis is in.',
23325
23582
  method: "GET",
23326
23583
  path: "/api/v1/songs/{song_id}/analysis",
23327
23584
  scopes: ["music:read", "videos:read"],
@@ -23484,142 +23741,13 @@ var OPERATIONS = [
23484
23741
  mcp: "rewrite_song_brief",
23485
23742
  output: { name: "SongBrief", schema: SongBriefSchema }
23486
23743
  },
23487
- /* Looks */
23488
- {
23489
- id: "looks.list",
23490
- group: "looks",
23491
- title: "List Looks",
23492
- summary: "Browse Official, Community and your own Looks",
23493
- description: "A Look is a complete, reusable lyric-video design: colours, type, lyric style, layout, visual and its picture. Pass its id as look.id, and change any part in the order. 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.",
23494
- method: "GET",
23495
- path: "/api/v1/looks",
23496
- scopes: ["library:read", "videos:read"],
23497
- input: external_exports.object({
23498
- scope: external_exports.enum(["all", "official", "community", "mine"]).optional().describe("Which library; default all"),
23499
- category: external_exports.string().max(40).optional().describe("A category id from get_options"),
23500
- lyric_style: external_exports.string().max(40).optional().describe("A lyric style id from get_options (how the lyrics move)"),
23501
- artist_id: artistId.optional().describe("The artist of the song you are choosing for: Looks that show another artist are left out"),
23502
- q: external_exports.string().max(100).optional().describe("Search words"),
23503
- sort: external_exports.enum(["newest", "popular"]).optional(),
23504
- limit: external_exports.number().int().min(1).max(100).optional(),
23505
- offset: external_exports.number().int().min(0).optional()
23506
- }),
23507
- readOnly: true,
23508
- destructive: false,
23509
- idempotent: true,
23510
- cli: ["looks", "list"],
23511
- mcp: "list_looks"
23512
- },
23513
- {
23514
- id: "looks.get",
23515
- group: "looks",
23516
- title: "Get a Look",
23517
- summary: "One Look with its design and preview images",
23518
- description: "spec.background is the Look's picture: clips (a Look made before clips plays its own photo or loop as clips: sources.looks, get_look_clips) or the visualizer. backgrounds.portrait and backgrounds.landscape are the pictures such a Look was first made with, kept for its earlier videos; backgrounds.previews has 480 px wide copies of them for thumbnails (null for a Look without one).",
23519
- method: "GET",
23520
- path: "/api/v1/looks/{look_id}",
23521
- scopes: ["library:read", "videos:read"],
23522
- input: external_exports.object({ look_id: lookId }),
23523
- readOnly: true,
23524
- destructive: false,
23525
- idempotent: true,
23526
- cli: ["looks", "get"],
23527
- mcp: "get_look"
23528
- },
23529
- {
23530
- id: "looks.clips",
23531
- group: "looks",
23532
- title: "Get a Look's clips",
23533
- summary: "The clips a clips Look cuts its picture from, to preview it",
23534
- description: "For a Look whose picture is clips: its stock feelings' clips (and its folders' for its own workspace; someone else's Look never shows its owner's footage), each with its length, shape, energy, a light preview copy and what it shows: subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed). Plan a preview cut from them with @kinetune/composition planEdit, as the editor does. Empty for a Look with another kind of picture.",
23535
- method: "GET",
23536
- path: "/api/v1/looks/{look_id}/clips",
23537
- scopes: ["library:read", "videos:read"],
23538
- input: external_exports.object({ look_id: lookId }),
23539
- readOnly: true,
23540
- destructive: false,
23541
- idempotent: true,
23542
- cli: ["looks", "clips"],
23543
- mcp: "get_look_clips"
23544
- },
23545
- {
23546
- id: "looks.rename",
23547
- group: "looks",
23548
- title: "Rename a Look",
23549
- summary: "Rename one of your Looks",
23550
- description: "",
23551
- method: "PATCH",
23552
- path: "/api/v1/looks/{look_id}",
23553
- scopes: ["library:write", "videos:write"],
23554
- input: external_exports.object({ look_id: lookId, name: external_exports.string().trim().min(2).max(60).describe("The new name") }),
23555
- readOnly: false,
23556
- destructive: false,
23557
- idempotent: true,
23558
- cli: ["looks", "rename"],
23559
- mcp: "rename_look"
23560
- },
23561
- {
23562
- id: "looks.delete",
23563
- group: "looks",
23564
- title: "Delete a Look",
23565
- summary: "Remove one of your Looks (videos made with it stay)",
23566
- description: "",
23567
- method: "DELETE",
23568
- path: "/api/v1/looks/{look_id}",
23569
- scopes: ["library:write", "videos:write"],
23570
- input: external_exports.object({ look_id: lookId }),
23571
- readOnly: false,
23572
- destructive: true,
23573
- idempotent: true,
23574
- cli: ["looks", "delete"],
23575
- mcp: "delete_look"
23576
- },
23577
- {
23578
- id: "looks.visibility",
23579
- group: "looks",
23580
- title: "Publish or unpublish a Look",
23581
- summary: "Make one of your Looks public (earns 10 credits) or private",
23582
- description: "Public Looks join the Community library under your @username. A Look that shows your artist stays private (409).",
23583
- method: "POST",
23584
- path: "/api/v1/looks/{look_id}/visibility",
23585
- scopes: ["library:write", "videos:write"],
23586
- input: external_exports.object({ look_id: lookId, visibility: external_exports.enum(["public", "private"]) }),
23587
- readOnly: false,
23588
- destructive: false,
23589
- idempotent: true,
23590
- cli: ["looks", "visibility"],
23591
- mcp: "set_look_visibility"
23592
- },
23593
- {
23594
- id: "looks.save",
23595
- group: "looks",
23596
- title: "Save as Look",
23597
- summary: "Save a Look with your changes as your own Look",
23598
- description: "A private Look made from a saved one (from_id) with the changes you send: lyric_style, behind, visual and background (as in create_lyric_video's look). Keeping the picture of the Look it was made from copies it. Then pass its id as look.id.",
23599
- method: "POST",
23600
- path: "/api/v1/looks",
23601
- scopes: ["library:write", "videos:write"],
23602
- input: external_exports.object({
23603
- name: external_exports.string().trim().min(2).max(60).describe("Its name"),
23604
- from_id: lookId.describe("The Look it starts from"),
23605
- lyric_style: lyricShape.look.unwrap().shape.lyric_style,
23606
- behind: lyricShape.look.unwrap().shape.behind,
23607
- visual: lyricShape.look.unwrap().shape.visual,
23608
- background: lyricShape.look.unwrap().shape.background
23609
- }),
23610
- readOnly: false,
23611
- destructive: false,
23612
- idempotent: false,
23613
- cli: ["looks", "save"],
23614
- mcp: "save_look"
23615
- },
23616
23744
  /* The person's draft: what an agent builds, the card plays and the editor opens */
23617
23745
  {
23618
23746
  id: "songs.video_draft.get",
23619
- group: "looks",
23747
+ group: "clips",
23620
23748
  title: "Open the video draft",
23621
23749
  summary: "The person's lyric video or Canvas draft for a song: its clips, cut and exact request",
23622
- description: "The draft the studio's editor keeps for this song (one per person and kind; when there is none, the one the song's rules make, saved on its first change: id and editor_url are null until then). Answers the Look, lyric style, picture, sources (Stock moods, folders), recipe (density, transitions, grade, effects, shape, fill, speed), seed, format and section, and cuts: every clip of the cut in order (cut 1, 2, \u2026; its time, clip_id, source, poster_url and the transition into it). request is exactly what it makes: pass it to quote_lyric_video or quote_canvas, then create with the quote_id. editor_url opens it in the editor. Change it with edit_video_draft. Free (no AI).",
23750
+ description: "The draft the studio's editor keeps for this song (one per person and kind; when there is none, the one the song's rules make, saved on its first change: id and editor_url are null until then). Answers the lyric style, picture, sources (Stock moods, folders), recipe (density, transitions, grade, effects, shape, fill, speed), seed, format and section, and cuts: every clip of the cut in order (cut 1, 2, \u2026; its time, clip_id, source, poster_url and the transition into it). request is exactly what it makes: pass it to quote_lyric_video or quote_canvas, then create with the quote_id. editor_url opens it in the editor. Change it with edit_video_draft. Free (no AI).",
23623
23751
  method: "GET",
23624
23752
  path: "/api/v1/songs/{song_id}/video-draft",
23625
23753
  scopes: ["videos:read", "videos:write"],
@@ -23633,16 +23761,16 @@ var OPERATIONS = [
23633
23761
  },
23634
23762
  {
23635
23763
  id: "songs.video_draft.edit",
23636
- group: "looks",
23764
+ group: "clips",
23637
23765
  title: "Change the video draft",
23638
- summary: "Change the person's lyric video or Canvas draft: Look, clips, a clip at a cut, transitions, grade, effects, format",
23639
- description: "Changes the draft get_video_draft answers, as the editor would, and saves it: the person sees the same draft in the editor (with no change, it only saves it, for editor_url). Send only what changes. Clips: sources (Stock mood ids from get_options clip_moods or browse_clip_mood; the workspace's folders from list_clip_folders, where the person's own uploads and the clips cut from their links land: import_clips), shuffle (other clips on the same cuts), replace [{cut, clip_id}] (one clip at a cut, e.g. one found with similar_clips or list_clips), joins [{cut, transition, seconds, direction, intensity}] (the transition into a cut: get_options transitions, or cut), starts [{cut, at}] (where in its clip a cut starts). Look: look_id, lyric_style, behind, visual. Recipe: density, transitions {style, amount, feel}, grade, grade_amount, effects, shape, fill, speed. format 9:16 or 16:9, trim (null: the whole song), display. Canvas (type canvas): picture clips|cover|visualizer, loop, seconds, cut, motion, visual, light, atmosphere, frame, effects. reset true starts over from the song's rules draft. A change to sources, density, shape, speed, seed, format or section plans a new cut and lets go of clips put in by hand. Answers the draft (cuts, request) like get_video_draft. Free (no AI); only making the video costs, after a quote and the person's yes.",
23766
+ summary: "Change the person's lyric video or Canvas draft: style, clips, a clip at a cut, transitions, grade, effects, format",
23767
+ description: "Changes the draft get_video_draft answers, as the editor would, and saves it: the person sees the same draft in the editor (with no change, it only saves it, for editor_url). Send only what changes. Clips: sources (Stock mood ids from get_options clip_moods or browse_clip_mood; the workspace's folders from list_clip_folders, where the person's own uploads and the clips cut from their links land: import_clips), shuffle (other clips on the same cuts), replace [{cut, clip_id}] (one clip at a cut, e.g. one found with similar_clips or list_clips), joins [{cut, transition, seconds, direction, intensity}] (the transition into a cut: get_options transitions, or cut), starts [{cut, at}] (where in its clip a cut starts). Style: lyric_style, behind, visual. Recipe: density, transitions {style, amount, feel}, grade, grade_amount, effects, shape, fill, speed. format 9:16 or 16:9, trim (null: the whole song), display. Canvas (type canvas): picture clips|cover|visualizer, loop, seconds, cut, motion, visual, light, atmosphere, frame, effects. reset true starts over from the song's rules draft. A change to sources, density, shape, speed, seed, format or section plans a new cut and lets go of clips put in by hand. Answers the draft (cuts, request) like get_video_draft. Free (no AI); only making the video costs, after a quote and the person's yes.",
23640
23768
  method: "PATCH",
23641
23769
  path: "/api/v1/songs/{song_id}/video-draft",
23642
23770
  scopes: ["videos:write"],
23643
23771
  input: external_exports.object({ song_id: songId, ...VideoDraftEditShape.shape }).superRefine(checkVideoDraftEdit),
23644
23772
  readOnly: false,
23645
- destructive: false,
23773
+ destructive: true,
23646
23774
  idempotent: false,
23647
23775
  cli: ["drafts", "edit"],
23648
23776
  mcp: "edit_video_draft",
@@ -23651,10 +23779,10 @@ var OPERATIONS = [
23651
23779
  /* Clips */
23652
23780
  {
23653
23781
  id: "songs.draft",
23654
- group: "looks",
23782
+ group: "clips",
23655
23783
  title: "Get a song's draft lyric video",
23656
- summary: "The Look and clips picture Kinetune picks for a song, at once and without AI",
23657
- description: "look_id (an Official Look), background (a clips picture: moods, density, transitions, grade, shape, fill, speed) and edit.seed, picked by rules from the song (what it is about, its tempo and loudness). A create_lyric_video without look.id makes exactly this. With type canvas: the song's draft Canvas instead (picture: its clips sources and grade, loop drift, seconds 8, edit.seed), what a create_canvas with a clips picture and no sources makes. Change anything before creating.",
23784
+ summary: "The lyric style and clips picture Kinetune picks for a song, at once and without AI",
23785
+ description: "Everything picked by rules from the song, no AI: lyric_style (as lively as the song, able to keep up with how fast it is sung), background (a clips picture: moods, the feelings of the song's sections from its brief; density from its tempo; transitions from its tempo and loudness; grade and effects from its main feeling; shape, fill, speed) and edit.seed. The lyric style brings the colours and type. The artist's last lyric video brings its lyric_style, behind (words behind the subject) and folders back. Each section of the song's map (get_song_analysis) carries its mood, and the cut draws that section's clips from it. A create_lyric_video that leaves look out makes exactly this. With type canvas: the song's draft Canvas instead (picture: its clips sources and grade, loop drift, seconds 8, edit.seed), what a create_canvas with a clips picture and no sources makes. Change anything before creating.",
23658
23786
  method: "GET",
23659
23787
  path: "/api/v1/songs/{song_id}/draft",
23660
23788
  scopes: ["videos:read", "videos:write"],
@@ -23667,18 +23795,14 @@ var OPERATIONS = [
23667
23795
  },
23668
23796
  {
23669
23797
  id: "clips.list",
23670
- group: "looks",
23798
+ group: "clips",
23671
23799
  title: "List clips",
23672
23800
  summary: "The clips of library moods and your folders, to plan a clips video's cut",
23673
- description: "The ready clips (1\u20135 s each) of as many sources together as your plan allows (get_account limits.clip_sources; more answers 402 plan_required): library moods (get_options clip_moods), your folders (list_clip_folders) and Looks' own pictures (looks: a Look made before clips keeps its picture, its photo or loop, as clips of its own, usable wherever the Look is). Each has id, source, cut_from (the source video it was cut from: pieces sharing one look alike), duration_seconds, width, height, energy (how much it moves, 0\u20131), brightness, preview_url (a light MP4), poster_url, subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed), loop_score (how well it loops as a Canvas drift, 0\u2013100; 60 and up loops well) and strip_url (ten frames along it, side by side); both null until measured, shortly after import. Send edit.seed and Kinetune draws the clips (with words behind the subject, clips with a clear subject under the sung lines), or plan the cut yourself and send edit.clips.",
23801
+ description: "The ready clips (1\u20135 s each) of as many sources together as your plan allows (get_account limits.clip_sources; more answers 402 plan_required): library moods (get_options clip_moods), and your folders (list_clip_folders). Each has id, source, cut_from (the source video it was cut from: pieces sharing one look alike), duration_seconds, width, height, energy (how much it moves, 0\u20131), brightness, color (its main colour, hex), preview_url (a light MP4), poster_url, subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed), loop_score (how well it loops as a Canvas drift, 0\u2013100; 60 and up loops well) and strip_url (ten frames along it, side by side); both null until measured, shortly after import. Send edit.seed and Kinetune draws the clips (with words behind the subject, clips with a clear subject under the sung lines), or plan the cut yourself and send edit.clips.",
23674
23802
  method: "GET",
23675
23803
  path: "/api/v1/clips",
23676
23804
  scopes: ["videos:read", "videos:write", "library:read"],
23677
- input: external_exports.object({
23678
- moods: external_exports.string().trim().max(260).optional().describe('Mood ids, comma-separated, e.g. "city,golden"'),
23679
- folders: external_exports.string().trim().max(300).optional().describe("Folder ids, comma-separated"),
23680
- looks: external_exports.string().trim().max(600).optional().describe("Look ids whose own picture plays as clips (a Look made before clips: its background.sources.looks), comma-separated")
23681
- }),
23805
+ input: external_exports.object({ moods: external_exports.string().trim().max(260).optional().describe('Mood ids, comma-separated, e.g. "city,golden"'), folders: external_exports.string().trim().max(300).optional().describe("Folder ids, comma-separated") }),
23682
23806
  readOnly: true,
23683
23807
  destructive: false,
23684
23808
  idempotent: true,
@@ -23688,10 +23812,10 @@ var OPERATIONS = [
23688
23812
  },
23689
23813
  {
23690
23814
  id: "clip_moods.browse",
23691
- group: "looks",
23815
+ group: "clips",
23692
23816
  title: "Browse a Stock collection",
23693
23817
  summary: "The clips inside one Stock collection, a page at a time",
23694
- description: "Stock is the clip library Kinetune keeps for everyone, free: collections in two groups, Feelings (moods, mostly tall, with Looks: every Official and Community Look's own picture) and Places & textures (real footage). get_options clip_moods lists them. This answers one collection (id, name, group, tall and wide: how many of each shape) and a page of its clips, each with id, width, height, duration_seconds, energy (how much it moves, 0\u20131), brightness, color (its main colour, hex), poster_url, preview_url (a light MP4), credit (who filmed it, where a stock site asks for it), loop_score (how well it loops as a Canvas drift, 0\u2013100, null until measured) and strip_url (frames along it, side by side). shape keeps tall or wide clips only; energy keeps the collection's calmest, middle or liveliest third; sort is best (liveliest first), newest or length. total is how many match, next_offset the next page's offset (null on the last). Pick clips for a video by naming the collection in look.background.sources.moods, or plan the cut with their ids (edit.clips). No credits.",
23818
+ description: "Stock is the clip library Kinetune keeps for everyone, free: collections in three groups, Feelings (moods, mostly tall), Places & textures (real footage) and Seasons & holidays (a song's draft picks one only when the song is about it). get_options clip_moods lists them. This answers one collection (id, name, group, tall and wide: how many of each shape) and a page of its clips, each with id, width, height, duration_seconds, energy (how much it moves, 0\u20131), brightness, color (its main colour, hex), poster_url, preview_url (a light MP4), credit (who filmed it, where a stock site asks for it), loop_score (how well it loops as a Canvas drift, 0\u2013100, null until measured) and strip_url (frames along it, side by side). shape keeps tall or wide clips only; energy keeps the collection's calmest, middle or liveliest third; sort is best (liveliest first), newest or length. total is how many match, next_offset the next page's offset (null on the last). Pick clips for a video by naming the collection in look.background.sources.moods, or plan the cut with their ids (edit.clips). No credits.",
23695
23819
  method: "GET",
23696
23820
  path: "/api/v1/clip-moods/{mood_id}",
23697
23821
  scopes: ["videos:read", "videos:write", "library:read"],
@@ -23712,7 +23836,7 @@ var OPERATIONS = [
23712
23836
  },
23713
23837
  {
23714
23838
  id: "clips.rebound",
23715
- group: "looks",
23839
+ group: "clips",
23716
23840
  title: "A clip as a Rebound",
23717
23841
  summary: "A clip played forward, then backward: the file a Canvas Rebound loops",
23718
23842
  description: "9:16, from at for half seconds at speed, then the same backward. Cached beside the clip (the first call takes a few seconds); the render uses the same file, so a Canvas with loop rebound plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
@@ -23734,7 +23858,7 @@ var OPERATIONS = [
23734
23858
  },
23735
23859
  {
23736
23860
  id: "clips.steady",
23737
- group: "looks",
23861
+ group: "clips",
23738
23862
  title: "A clip, steadied",
23739
23863
  summary: "A clip with handheld shake smoothed out: the file a Canvas with steady on plays",
23740
23864
  description: "The clip stabilised (two passes of ffmpeg vidstab), cached beside the clip (the first call takes a few seconds); the render uses the same file, so a Canvas with steady on plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
@@ -23750,7 +23874,7 @@ var OPERATIONS = [
23750
23874
  },
23751
23875
  {
23752
23876
  id: "clips.loop",
23753
- group: "looks",
23877
+ group: "clips",
23754
23878
  title: "Where a clip loops best",
23755
23879
  summary: "Best spot: where in a clip a Canvas drift window loops best, and its loop score",
23756
23880
  description: "For a window of span seconds that crossfades seam seconds into its start (both in the clip's own time: a drift plays seconds + crossfade of picture at its speed), the start in the clip whose ends look most alike, steady and with no cut inside, and its loop score 0\u2013100. Put the start in the Canvas edit's clips[0].in. Answers {start, score, measured}; a clip not measured yet answers start 0 and score null. Each clip's own score (for a default 8-second drift) is loop_score on list_clips, browse_clip_mood and get_clip_folder. No AI and no credits.",
@@ -23770,7 +23894,7 @@ var OPERATIONS = [
23770
23894
  },
23771
23895
  {
23772
23896
  id: "clips.similar",
23773
- group: "looks",
23897
+ group: "clips",
23774
23898
  title: "More like this",
23775
23899
  summary: "Clips that look and move like one clip, from Stock and your folders",
23776
23900
  description: "Up to limit clips (default 24) from every Stock collection and your own folders that look and move like this one: the same collection or folder counts, then how lively, how bright and the colour, so a clip from another collection can match. Clips cut from the same video show once. Each has the fields of browse_clip_mood plus source (the collection or folder it is in). No AI and no credits. The clip must be in Stock or one of your folders (404 otherwise).",
@@ -23789,7 +23913,7 @@ var OPERATIONS = [
23789
23913
  },
23790
23914
  {
23791
23915
  id: "clips.delete",
23792
- group: "looks",
23916
+ group: "clips",
23793
23917
  title: "Delete a clip",
23794
23918
  summary: "Remove one of your clips",
23795
23919
  description: "Videos already made with it keep it.",
@@ -23805,7 +23929,7 @@ var OPERATIONS = [
23805
23929
  },
23806
23930
  {
23807
23931
  id: "clips.move",
23808
- group: "looks",
23932
+ group: "clips",
23809
23933
  title: "Move clips",
23810
23934
  summary: "Move some of your clips into another of your folders",
23811
23935
  description: "clip_ids: your own clips (from get_clip_folder; library clips belong to no folder and never move), folder_id: one of your folders (list_clip_folders). Answers how many moved. Videos already made keep their clips.",
@@ -23822,7 +23946,7 @@ var OPERATIONS = [
23822
23946
  },
23823
23947
  {
23824
23948
  id: "clips.analyze",
23825
- group: "looks",
23949
+ group: "clips",
23826
23950
  title: "Analyse clips",
23827
23951
  summary: "Find the subject and faces of clips a preview shows",
23828
23952
  description: "For a preview you plan yourself (planEdit): send the clip_ids it shows, and behind: true when its words go behind the subject. Each not yet analysed is analysed in the background, once (a few seconds): its subject and faces, a photo's depth map, and with behind its matte when it has a clear subject. list_clips answers what it found once done; a clip analysed once stays analysed, for everyone. At most daily_limit new clips of your own a day (Stock clips don't count) (limited: true held some back until tomorrow); a video made with clips analyses them anyway, with no limit, so you never need this to make one. Free. Answers pending (the clips still being analysed), limited and daily_limit.",
@@ -23839,7 +23963,7 @@ var OPERATIONS = [
23839
23963
  },
23840
23964
  {
23841
23965
  id: "clips.generate",
23842
- group: "looks",
23966
+ group: "clips",
23843
23967
  title: "Generate clips",
23844
23968
  summary: "New pictures or short video clips into your AI folder, from your words, the song or its cover",
23845
23969
  description: "The only paid part of a lyric video's or a Canvas's picture. Send prompt (or from with song_id: the song's brief, or the cover's world with the cover as the model's reference), kind (image or video), shape (tall or wide), count (1\u20134), and optionally with (the artist, or a cast character's kit id: their character sheet keeps them recognizable), quality (standard or high video) and loop (a video that starts and ends on the same frame, kept whole: a seamless Drift for a Canvas). Without credits it answers the price ({quote: {credits, per_item_credits}}) and the prompt it will use, and with from song three ideas built from the song's brief (ideas: each a title, a line, 2\u20133 tags, a prompt, the first best: true; no extra AI call, none while the song has no brief): offer them, and send the picked idea's prompt as prompt; show it, and with the user's yes send the same with credits: they are held and the clips are made in the background. get_clip_folder on the returned folder_id shows each one on its way (imports: status queued, working or failed; stage drawing, animating or cutting; expected_seconds), and each is charged only once it is a clip (a failed one is given back; retry_clip_import tries it again).",
@@ -23868,7 +23992,7 @@ var OPERATIONS = [
23868
23992
  },
23869
23993
  {
23870
23994
  id: "clip_imports.retry",
23871
- group: "looks",
23995
+ group: "clips",
23872
23996
  title: "Try a clip import again",
23873
23997
  summary: "Try a failed link, upload, stock or generated clip again",
23874
23998
  description: "For an import get_clip_folder lists as failed. A generated one holds its credits again (at today's price) before it is made.",
@@ -23885,7 +24009,7 @@ var OPERATIONS = [
23885
24009
  },
23886
24010
  {
23887
24011
  id: "clip_imports.dismiss",
23888
- group: "looks",
24012
+ group: "clips",
23889
24013
  title: "Dismiss a failed clip import",
23890
24014
  summary: "Take a failed import's tile out of its folder",
23891
24015
  description: "For an import get_clip_folder lists as failed, when it isn't worth trying again (retry_clip_import). Nothing is charged.",
@@ -23901,7 +24025,7 @@ var OPERATIONS = [
23901
24025
  },
23902
24026
  {
23903
24027
  id: "clip_folders.list",
23904
- group: "looks",
24028
+ group: "clips",
23905
24029
  title: "List your clip folders",
23906
24030
  summary: "Your clip folders with how many clips each holds",
23907
24031
  description: "My footage: each folder with id, name, kind (user: yours, where links, uploads, cut videos and stock you found land; ai: what you generate), clips, importing (on their way) and poster_url.",
@@ -23917,7 +24041,7 @@ var OPERATIONS = [
23917
24041
  },
23918
24042
  {
23919
24043
  id: "clip_folders.create",
23920
- group: "looks",
24044
+ group: "clips",
23921
24045
  title: "Make a clip folder",
23922
24046
  summary: "A new folder for your clips",
23923
24047
  description: "A folder in My footage, by name. Anything can be imported into it (import_clips): a link, a file or a stock video found with search_stock.",
@@ -23933,7 +24057,7 @@ var OPERATIONS = [
23933
24057
  },
23934
24058
  {
23935
24059
  id: "clip_folders.get",
23936
- group: "looks",
24060
+ group: "clips",
23937
24061
  title: "Get a clip folder",
23938
24062
  summary: "A folder's clips and the imports still on their way",
23939
24063
  description: "clips (as list_clips) and imports (status queued, working or failed with error; done ones leave the list).",
@@ -23949,7 +24073,7 @@ var OPERATIONS = [
23949
24073
  },
23950
24074
  {
23951
24075
  id: "clip_folders.rename",
23952
- group: "looks",
24076
+ group: "clips",
23953
24077
  title: "Rename a clip folder",
23954
24078
  summary: "Rename one of your clip folders",
23955
24079
  description: "",
@@ -23965,7 +24089,7 @@ var OPERATIONS = [
23965
24089
  },
23966
24090
  {
23967
24091
  id: "clip_folders.delete",
23968
- group: "looks",
24092
+ group: "clips",
23969
24093
  title: "Delete a clip folder",
23970
24094
  summary: "Remove a folder and its clips",
23971
24095
  description: "Videos already made with its clips keep them.",
@@ -23981,7 +24105,7 @@ var OPERATIONS = [
23981
24105
  },
23982
24106
  {
23983
24107
  id: "clip_folders.import",
23984
- group: "looks",
24108
+ group: "clips",
23985
24109
  title: "Import clips",
23986
24110
  summary: "Cut a video into clips in one of your folders: a link, a file or a stock video",
23987
24111
  description: "One of: url (a YouTube, TikTok or Instagram link, up to 20 minutes), file_url (a video or photo sent with create_upload) or stock_id (a stock video from search_stock: it lands in this folder of yours, like any other source). Kinetune cuts it at every scene change into clips of 1\u20135 s, in the background (get_clip_folder shows it on its way). Only use clips you have the rights to. Free with an active plan (402 plan_required without one; get_account: plan.active); counts toward your storage.",
@@ -24002,7 +24126,7 @@ var OPERATIONS = [
24002
24126
  },
24003
24127
  {
24004
24128
  id: "canvas_presets.list",
24005
- group: "looks",
24129
+ group: "clips",
24006
24130
  title: "List your Canvas presets",
24007
24131
  summary: "Your saved Canvas looks, the latest saved first",
24008
24132
  description: "Each with id, name and look: loop, seconds, cut, crossfade, camera, fade, fill (and fill_colour), speed, grade and grade_amount, effects, light and atmosphere. A look holds no clips or song: to use one, send its fields in a Canvas request (picture fields for the clips settings, loop, seconds, light as {preset}, atmosphere and effects at the top).",
@@ -24018,7 +24142,7 @@ var OPERATIONS = [
24018
24142
  },
24019
24143
  {
24020
24144
  id: "canvas_presets.save",
24021
- group: "looks",
24145
+ group: "clips",
24022
24146
  title: "Save a Canvas preset",
24023
24147
  summary: "Keep a Canvas look under a name for the next Canvas",
24024
24148
  description: "name (1\u201360 characters) and look (as list_canvas_presets shows it; fields left out take their defaults). The same name again replaces that preset's look. Up to 50 a workspace. Free.",
@@ -24035,7 +24159,7 @@ var OPERATIONS = [
24035
24159
  },
24036
24160
  {
24037
24161
  id: "canvas_presets.rename",
24038
- group: "looks",
24162
+ group: "clips",
24039
24163
  title: "Rename a Canvas preset",
24040
24164
  summary: "Rename one of your Canvas presets",
24041
24165
  description: "",
@@ -24051,7 +24175,7 @@ var OPERATIONS = [
24051
24175
  },
24052
24176
  {
24053
24177
  id: "canvas_presets.delete",
24054
- group: "looks",
24178
+ group: "clips",
24055
24179
  title: "Delete a Canvas preset",
24056
24180
  summary: "Remove one of your Canvas presets",
24057
24181
  description: "Canvases already made with it keep their look.",
@@ -24067,7 +24191,7 @@ var OPERATIONS = [
24067
24191
  },
24068
24192
  {
24069
24193
  id: "stock.search",
24070
- group: "looks",
24194
+ group: "clips",
24071
24195
  title: "Search stock media",
24072
24196
  summary: "Find stock photos or clips for your clip folders, a Canvas or a kit piece",
24073
24197
  description: `24 results a page. Pass a video's id to import_clips (stock_id) to cut it into your clips, or an item's id as a Canvas's stock_id to use it instead of the director's pick, and credit its creator (credit: author, author_url, source_url and provider, the site it comes from) wherever you show it. Results come from every stock site Kinetune is set up with: ids from the first are digits, others are prefixed ("pixabay:123"); pass them as given. orientation: portrait for 9:16 and 1:1, landscape when 16:9 is among the formats (a Canvas is portrait). Clips too short for the loop are left out: pass seconds for a Canvas. thumbnail_url is a 480 px still, preview_url a 1280 px one (the photo, or the clip's poster), preview_video_url a small MP4 of a clip.`,
@@ -24551,7 +24675,7 @@ var OPERATIONS = [
24551
24675
  group: "videos",
24552
24676
  title: "List videos",
24553
24677
  summary: "Videos, newest first, with status and thumbnails",
24554
- description: "A page at a time (limit, default 50): next_cursor is null on the last page, otherwise pass it as cursor for the next one with the same filters. counts says how many videos match song_id, artist_id, quote_id and q: all, and by type (lyric_video, canvas, music_video). Each video's outputs carry aspect_ratio, poster_url, poster_seconds and web_url (for thumbnails and previews); get_video has the download links. A video that is waiting has queue: why (plan_limit or render_capacity), its place in line or about how long.",
24678
+ description: "A page at a time (limit, default 50): next_cursor is null on the last page, otherwise pass it as cursor for the next one with the same filters. counts says how many videos match song_id, artist_id, quote_id and q: all, and by type (lyric_video, canvas, music_video). Each video's outputs carry aspect_ratio, poster_url, poster_seconds and web_url (for thumbnails and previews); get_video has the download links. A video that is waiting has queue: why (plan_limit or render_capacity), its place in line or about how long. A music video has revisable_until: until when one of its shots can be revised (revise_music_video_shot), or null.",
24555
24679
  method: "GET",
24556
24680
  path: "/api/v1/videos",
24557
24681
  scopes: ["videos:read"],
@@ -24560,7 +24684,7 @@ var OPERATIONS = [
24560
24684
  artist_id: artistId.optional().describe("Only videos of this artist\u2019s songs"),
24561
24685
  type: external_exports.enum(["lyric-video", "canvas", "music-video"]).optional(),
24562
24686
  quote_id: external_exports.string().uuid().optional().describe("Only the videos this quote made (none until it is used)"),
24563
- q: external_exports.string().trim().min(1).max(100).optional().describe("Search the song title, artist name, Look name or video id"),
24687
+ q: external_exports.string().trim().min(1).max(100).optional().describe("Search the song title, artist name or video id"),
24564
24688
  limit: external_exports.number().int().min(1).max(100).optional(),
24565
24689
  cursor: external_exports.string().min(1).max(200).optional().describe("next_cursor from the previous page")
24566
24690
  }),
@@ -24677,7 +24801,7 @@ var OPERATIONS = [
24677
24801
  readOnly: true,
24678
24802
  destructive: false,
24679
24803
  idempotent: true,
24680
- cli: ["looks", "music-video"],
24804
+ cli: ["concepts", "list"],
24681
24805
  mcp: "list_music_video_looks"
24682
24806
  },
24683
24807
  {
@@ -24693,7 +24817,7 @@ var OPERATIONS = [
24693
24817
  readOnly: true,
24694
24818
  destructive: false,
24695
24819
  idempotent: true,
24696
- cli: ["looks", "music-video-get"],
24820
+ cli: ["concepts", "get"],
24697
24821
  mcp: "get_music_video_look"
24698
24822
  },
24699
24823
  {
@@ -24709,7 +24833,7 @@ var OPERATIONS = [
24709
24833
  readOnly: false,
24710
24834
  destructive: true,
24711
24835
  idempotent: true,
24712
- cli: ["looks", "music-video-delete"],
24836
+ cli: ["concepts", "delete"],
24713
24837
  mcp: "delete_music_video_look"
24714
24838
  },
24715
24839
  {
@@ -24717,7 +24841,7 @@ var OPERATIONS = [
24717
24841
  group: "videos",
24718
24842
  title: "Make a video again",
24719
24843
  summary: "Run a finished, failed or cancelled video again (new charge)",
24720
- description: "Reuses the Look it made, with its background media and loops, so nothing already made is paid for again. A video that failed before its Look was saved is designed afresh.",
24844
+ description: "A lyric video keeps its choices (lyric style, picture, visual) and draws its clips again; a Canvas or a music video is directed afresh.",
24721
24845
  method: "POST",
24722
24846
  path: "/api/v1/videos/{video_id}/retry",
24723
24847
  scopes: ["videos:write"],
@@ -24786,8 +24910,8 @@ var OPERATIONS = [
24786
24910
  id: "videos.share",
24787
24911
  group: "videos",
24788
24912
  title: "Make a video public",
24789
- summary: "Show a delivered video in the Community, its Look reusable by anyone",
24790
- description: `Only when the user asks for it, in their own words: ask them first and never make a video public on your own. Public, everyone signed in to Kinetune sees it in the Community, Kinetune may feature it on kinetune.com, and its Look becomes public with it so anyone can reuse it (a music video's concept: its kind, visual style, edit, places and props, never the artist or anyone else in it; a lyric video's Look unless it shows the artist or is Official); the workspace holds the Look's reward credits while it stays public. rights_confirmed (a music video needs it): the user confirms they have the right to show the artist and everyone in it publicly. socials true: the user also lets Kinetune post it on its socials (TikTok, Instagram, YouTube, X), crediting credit_handle. ${SHARE_CONSENT} Sharing again replaces those choices; a video Kinetune's staff hid stays hidden. Only a delivered (completed) video. unshare_video makes it private again; get_video shows sharing.`,
24913
+ summary: "Show a delivered video in the Community, a music video's Look reusable by anyone",
24914
+ description: `Only when the user asks for it, in their own words: ask them first and never make a video public on your own. Public, everyone signed in to Kinetune sees it in the Community, Kinetune may feature it on kinetune.com, and a music video's Look (its concept: its kind, visual style, edit, places and props, never the artist or anyone else in it) becomes public with it so anyone can reuse it; the workspace holds the Look's reward credits while it stays public. rights_confirmed (a music video needs it): the user confirms they have the right to show the artist and everyone in it publicly. socials true: the user also lets Kinetune post it on its socials (TikTok, Instagram, YouTube, X), crediting credit_handle. ${SHARE_CONSENT} Sharing again replaces those choices; a video Kinetune's staff hid stays hidden. Only a delivered (completed) video. unshare_video makes it private again; get_video shows sharing.`,
24791
24915
  method: "POST",
24792
24916
  path: "/api/v1/videos/{video_id}/share",
24793
24917
  scopes: ["videos:write"],
@@ -24809,8 +24933,8 @@ var OPERATIONS = [
24809
24933
  id: "videos.unshare",
24810
24934
  group: "videos",
24811
24935
  title: "Make a video private",
24812
- summary: "Take a video out of the Community, its Look private again",
24813
- description: "It leaves the Community and Kinetune's featured row at once, with the loves it had, and its Look is private again (its reward credits go back). Ask the user first.",
24936
+ summary: "Take a video out of the Community, a music video's Look private again",
24937
+ description: "It leaves the Community and Kinetune's featured row at once, with the loves it had, and a music video's Look is private again (its reward credits go back). Ask the user first.",
24814
24938
  method: "DELETE",
24815
24939
  path: "/api/v1/videos/{video_id}/share",
24816
24940
  scopes: ["videos:write"],
@@ -25005,8 +25129,8 @@ function openApiDocument(input2) {
25005
25129
  const variants = ops.map((op) => {
25006
25130
  const schema = inputJsonSchema(op);
25007
25131
  const props2 = schema.properties ?? {};
25008
- const required3 = new Set(schema.required ?? []);
25009
- return { op, props: props2, required: required3 };
25132
+ const required22 = new Set(schema.required ?? []);
25133
+ return { op, props: props2, required: required22 };
25010
25134
  });
25011
25135
  const { props, required: required2 } = variants[0];
25012
25136
  const params = Object.entries(props).filter(([name]) => inPath.has(name) || first.method === "GET" || first.method === "DELETE").map(([name, s]) => ({
@@ -25081,7 +25205,7 @@ function openApiDocument(input2) {
25081
25205
  }
25082
25206
  var ref = (name) => ({ $ref: `#/components/schemas/${name}` });
25083
25207
 
25084
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
25208
+ // node_modules/commander/lib/error.js
25085
25209
  var CommanderError = class extends Error {
25086
25210
  /**
25087
25211
  * Constructs the CommanderError class
@@ -25110,7 +25234,7 @@ var InvalidArgumentError = class extends CommanderError {
25110
25234
  }
25111
25235
  };
25112
25236
 
25113
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js
25237
+ // node_modules/commander/lib/argument.js
25114
25238
  var Argument = class {
25115
25239
  /**
25116
25240
  * Initialize a new command argument with the given name and description.
@@ -25231,7 +25355,7 @@ function humanReadableArgName(arg) {
25231
25355
  return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
25232
25356
  }
25233
25357
 
25234
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
25358
+ // node_modules/commander/lib/command.js
25235
25359
  import { EventEmitter } from "node:events";
25236
25360
  import childProcess from "node:child_process";
25237
25361
  import path from "node:path";
@@ -25239,7 +25363,7 @@ import fs from "node:fs";
25239
25363
  import process2 from "node:process";
25240
25364
  import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
25241
25365
 
25242
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js
25366
+ // node_modules/commander/lib/help.js
25243
25367
  import { stripVTControlCharacters } from "node:util";
25244
25368
  var Help = class {
25245
25369
  constructor() {
@@ -25308,11 +25432,11 @@ var Help = class {
25308
25432
  visibleOptions.push(helpOption);
25309
25433
  } else if (helpOption.long && !removeLong) {
25310
25434
  visibleOptions.push(
25311
- cmd.createOption(helpOption.long, helpOption.description)
25435
+ cmd.createOption(helpOption.long, helpOption.description).helpGroup(helpOption.helpGroupHeading)
25312
25436
  );
25313
25437
  } else if (helpOption.short && !removeShort) {
25314
25438
  visibleOptions.push(
25315
- cmd.createOption(helpOption.short, helpOption.description)
25439
+ cmd.createOption(helpOption.short, helpOption.description).helpGroup(helpOption.helpGroupHeading)
25316
25440
  );
25317
25441
  }
25318
25442
  }
@@ -25831,7 +25955,7 @@ ${itemIndentStr}`);
25831
25955
  }
25832
25956
  };
25833
25957
 
25834
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js
25958
+ // node_modules/commander/lib/option.js
25835
25959
  var Option = class {
25836
25960
  /**
25837
25961
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -25844,7 +25968,7 @@ var Option = class {
25844
25968
  this.description = description || "";
25845
25969
  this.required = flags.includes("<");
25846
25970
  this.optional = flags.includes("[");
25847
- this.variadic = /\w\.\.\.[>\]]$/.test(flags);
25971
+ this.variadic = new RegExp("\\p{ID_Continue}\\.\\.\\.[>\\]]$", "u").test(flags);
25848
25972
  this.mandatory = false;
25849
25973
  const optionFlags = splitOptionFlags(flags);
25850
25974
  this.short = optionFlags.shortFlag;
@@ -26137,7 +26261,7 @@ function splitOptionFlags(flags) {
26137
26261
  return { shortFlag, longFlag };
26138
26262
  }
26139
26263
 
26140
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js
26264
+ // node_modules/commander/lib/suggestSimilar.js
26141
26265
  var maxDistance = 3;
26142
26266
  function editDistance(a, b) {
26143
26267
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -26212,7 +26336,7 @@ function suggestSimilar(word, candidates) {
26212
26336
  return "";
26213
26337
  }
26214
26338
 
26215
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
26339
+ // node_modules/commander/lib/command.js
26216
26340
  var Command = class _Command extends EventEmitter {
26217
26341
  /**
26218
26342
  * Initialize a new `Command`.
@@ -27027,7 +27151,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
27027
27151
  getOptionValueSourceWithGlobals(key) {
27028
27152
  let source;
27029
27153
  this._getCommandAndAncestors().forEach((cmd) => {
27030
- if (cmd.getOptionValueSource(key) !== void 0) {
27154
+ if (Object.hasOwn(cmd._optionValueSources, key)) {
27031
27155
  source = cmd.getOptionValueSource(key);
27032
27156
  }
27033
27157
  });
@@ -27670,7 +27794,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
27670
27794
  return arg.length > 1 && arg[0] === "-";
27671
27795
  }
27672
27796
  const negativeNumberArg = (arg) => {
27673
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
27797
+ if (!/^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(arg)) return false;
27674
27798
  return !this._getCommandAndAncestors().some(
27675
27799
  (cmd) => cmd.options.map((opt) => opt.short).some((short2) => /^-\d$/.test(short2))
27676
27800
  );
@@ -28118,7 +28242,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
28118
28242
  * (This does not override a group set directly on the subcommand using .helpGroup().)
28119
28243
  *
28120
28244
  * @example
28121
- * program.commandsGroup('Development Commands:);
28245
+ * program.commandsGroup('Development Commands:');
28122
28246
  * program.command('watch')...
28123
28247
  * program.command('lint')...
28124
28248
  * ...
@@ -28289,7 +28413,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
28289
28413
  * Pass in false to disable the built-in help option.
28290
28414
  *
28291
28415
  * @example
28292
- * program.helpOption('-?, --help' 'show help'); // customise
28416
+ * program.helpOption('-?, --help', 'show help'); // customise
28293
28417
  * program.helpOption(false); // disable
28294
28418
  *
28295
28419
  * @param {(string | boolean)} flags
@@ -28418,16 +28542,20 @@ function incrementNodeInspectorPort(args) {
28418
28542
  let debugHost = "127.0.0.1";
28419
28543
  let debugPort = "9229";
28420
28544
  let match;
28421
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
28545
+ if ((match = arg.match(/^(--inspect(-brk|-wait)?)$/)) !== null) {
28422
28546
  debugOption = match[1];
28423
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
28547
+ } else if ((match = arg.match(
28548
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/
28549
+ )) !== null) {
28424
28550
  debugOption = match[1];
28425
28551
  if (/^\d+$/.test(match[3])) {
28426
28552
  debugPort = match[3];
28427
28553
  } else {
28428
28554
  debugHost = match[3];
28429
28555
  }
28430
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
28556
+ } else if ((match = arg.match(
28557
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/
28558
+ )) !== null) {
28431
28559
  debugOption = match[1];
28432
28560
  debugHost = match[3];
28433
28561
  debugPort = match[4];
@@ -28446,7 +28574,7 @@ function useColor() {
28446
28574
  return void 0;
28447
28575
  }
28448
28576
 
28449
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
28577
+ // node_modules/commander/index.js
28450
28578
  var program = new Command();
28451
28579
 
28452
28580
  // src/config.ts
@@ -28623,10 +28751,22 @@ async function revoke(config2, auth = config2.auth) {
28623
28751
  // package.json
28624
28752
  var package_default = {
28625
28753
  name: "@kinetune/cli",
28626
- version: "4.3.0",
28754
+ version: "5.0.1",
28627
28755
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
28628
28756
  license: "MIT",
28757
+ author: {
28758
+ name: "Kinetune",
28759
+ email: "support@kinetune.com",
28760
+ url: "https://kinetune.com"
28761
+ },
28629
28762
  homepage: "https://kinetune.com/developers#cli",
28763
+ repository: {
28764
+ type: "git",
28765
+ url: "git+https://github.com/kinetune/cli.git"
28766
+ },
28767
+ bugs: {
28768
+ url: "https://github.com/kinetune/cli/issues"
28769
+ },
28630
28770
  keywords: [
28631
28771
  "lyric video",
28632
28772
  "spotify canvas",
@@ -28648,21 +28788,16 @@ var package_default = {
28648
28788
  },
28649
28789
  scripts: {
28650
28790
  build: "node build.mjs",
28651
- typecheck: "tsc --noEmit",
28652
- test: "vitest run",
28653
- prepack: "node build.mjs"
28791
+ prepublishOnly: "node build.mjs"
28654
28792
  },
28655
28793
  devDependencies: {
28656
- "@kinetune/api-spec": "workspace:*",
28657
28794
  commander: "^15.0.0",
28658
28795
  esbuild: "^0.28.2",
28659
- tsx: "^4.23.15",
28660
- typescript: "^5.9.3",
28661
- vitest: "^3.2.7",
28662
- zod: "^4.1.11"
28796
+ zod: "^4.6.5"
28663
28797
  },
28664
28798
  publishConfig: {
28665
- access: "public"
28799
+ access: "public",
28800
+ provenance: true
28666
28801
  }
28667
28802
  };
28668
28803
 
@@ -28904,7 +29039,7 @@ function program2() {
28904
29039
  " artists profiles": "The artist's links on other services: list, add, order, change, remove, find again",
28905
29040
  " artists page": "The artist page at kinetune.com/@handle: address, draft, preview, publish, stats",
28906
29041
  " songs": "Songs: upload, list, analysis",
28907
- " looks": "Looks: reusable lyric-video designs",
29042
+ " concepts": "Music video concepts: a delivered music video's direction, kept to reuse on any song",
28908
29043
  " quote": "Exact credits for a lyric video, Canvas or music video, before anything is charged",
28909
29044
  " create": "Create a lyric video, Canvas or music video (quotes first and asks unless --yes)",
28910
29045
  " videos": "Videos: status, wait, download, cancel",