@kinetune/cli 5.0.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 = {
@@ -19814,8 +19859,6 @@ var EditSchema = external_exports.object({
19814
19859
  density: external_exports.enum(CUT_DENSITIES),
19815
19860
  clips: external_exports.array(EditClipSchema).min(1).max(6e3)
19816
19861
  }).strict();
19817
-
19818
- // ../composition/src/fonts.ts
19819
19862
  var FONTS = {
19820
19863
  inter: { family: "Inter", kind: "sans", weights: [300, 500, 700, 800] },
19821
19864
  montserrat: { family: "Montserrat", kind: "sans", weights: [500, 700, 800] },
@@ -19875,8 +19918,6 @@ var SCRIPT_FONTS = [
19875
19918
  ];
19876
19919
  var SCRIPT_FONT_STACK = SCRIPT_FONTS.map((f) => `"${f.family}"`).join(", ");
19877
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");
19878
-
19879
- // ../composition/src/effects.ts
19880
19921
  var EFFECTS = {
19881
19922
  "light-leak": { name: "Light leak", group: "light" },
19882
19923
  "god-rays": { name: "God rays", group: "light" },
@@ -19898,8 +19939,6 @@ var DEFAULT_EFFECT_AMOUNT = 0.6;
19898
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();
19899
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" });
19900
19941
  var TAU = Math.PI * 2;
19901
-
19902
- // ../composition/src/visualizers/engine-ids.ts
19903
19942
  var VIZZ_ENGINE_IDS = [
19904
19943
  "mesh-grid",
19905
19944
  "sphericalShader",
@@ -19915,8 +19954,6 @@ var VIZZ_ENGINE_IDS = [
19915
19954
  ];
19916
19955
  var LIQUID_ENGINE = "liquid";
19917
19956
  var VISUALIZER_ENGINE_IDS = [...VIZZ_ENGINE_IDS, LIQUID_ENGINE];
19918
-
19919
- // ../composition/src/short-styles.ts
19920
19957
  var S = (x, y, blur, opacity) => ({ x, y, blur, opacity });
19921
19958
  var F = (font2, weight, more = {}) => ({ font: font2, weight, ...more });
19922
19959
  var SHORT_SPECS = {
@@ -20206,8 +20243,6 @@ var MIXTAPE_FLICKER = [
20206
20243
  F("permanent-marker", 400),
20207
20244
  F("abril-fatface", 400)
20208
20245
  ];
20209
-
20210
- // ../composition/src/lyric-styles.ts
20211
20246
  var LYRIC_STAGES = ["showcase", "kinetic"];
20212
20247
  var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat", "short"];
20213
20248
  var SHADER_REVEALS = ["burn", "ink", "smoke", "particles", "drip"];
@@ -20666,8 +20701,6 @@ function styleParts(id3) {
20666
20701
  const s = LYRIC_STYLES[id3];
20667
20702
  return { style: id3, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
20668
20703
  }
20669
-
20670
- // ../composition/src/look.ts
20671
20704
  var LOOK_VERSION = 3;
20672
20705
  var ASPECT_RATIOS = ["9:16", "16:9", "1:1"];
20673
20706
  var AspectRatioSchema = external_exports.enum(ASPECT_RATIOS);
@@ -20847,8 +20880,6 @@ var DisplaySchema = external_exports.object({
20847
20880
  // omitted: 1
20848
20881
  }).strict();
20849
20882
  var DEFAULT_DISPLAY = { title: true, artist: true, cover: true, lyrics: true, badges: true };
20850
-
20851
- // ../composition/src/defaults.ts
20852
20883
  var EXAMPLE_LOOK = {
20853
20884
  version: LOOK_VERSION,
20854
20885
  category: "release",
@@ -20887,14 +20918,12 @@ var EXAMPLE_LOOK = {
20887
20918
  },
20888
20919
  motion: { energy: 0.6, intro: "rise" }
20889
20920
  };
20890
-
20891
- // ../composition/src/outro.ts
20892
- var hex4 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
20921
+ var hex22 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
20893
20922
  var font = external_exports.enum(FONT_IDS);
20894
20923
  var OUTRO_BACKDROPS = ["scrim", "darken", "blur"];
20895
20924
  var OUTRO_TRANSITIONS = ["none", "flash", "glitch", "burn"];
20896
20925
  var OutroDesignSchema = external_exports.object({
20897
- 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(),
20898
20927
  title_font: font,
20899
20928
  artist_font: font,
20900
20929
  title_uppercase: external_exports.boolean(),
@@ -20911,8 +20940,6 @@ var OutroDesignSchema = external_exports.object({
20911
20940
  transition: external_exports.enum(OUTRO_TRANSITIONS)
20912
20941
  }).strict();
20913
20942
  var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true, title_card: true });
20914
-
20915
- // ../composition/src/visualizers/choice-schema.ts
20916
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"');
20917
20944
  var VisualChoiceSchema = external_exports.object({
20918
20945
  /** The visual for the whole song, or "none" (no visual at all). */
@@ -20920,8 +20947,6 @@ var VisualChoiceSchema = external_exports.object({
20920
20947
  /** Another visual for some sections (intro, verse, chorus, bridge, drop, outro). */
20921
20948
  sections: external_exports.partialRecord(external_exports.enum(SECTION_TYPES), VisualKeySchema).optional()
20922
20949
  }).strict();
20923
-
20924
- // ../composition/src/background-motion.ts
20925
20950
  var DIRECTIONS = {
20926
20951
  center: [0, 0],
20927
20952
  up: [0, -1],
@@ -20933,8 +20958,6 @@ var DIRECTIONS = {
20933
20958
  "down-left": [-Math.SQRT1_2, Math.SQRT1_2],
20934
20959
  "down-right": [Math.SQRT1_2, Math.SQRT1_2]
20935
20960
  };
20936
-
20937
- // ../composition/src/stock.ts
20938
20961
  var STOCK_PROVIDERS = {
20939
20962
  pexels: { name: "Pexels", url: "https://www.pexels.com", kinds: ["photo", "video"] },
20940
20963
  // Pixabay's API serves photos at most 1280 px: too small for a background, so only its videos are offered.
@@ -20942,13 +20965,9 @@ var STOCK_PROVIDERS = {
20942
20965
  };
20943
20966
  var STOCK_PROVIDER_IDS = Object.keys(STOCK_PROVIDERS);
20944
20967
  var STOCK_ITEM_ID_PATTERN = new RegExp(`^(?:(${STOCK_PROVIDER_IDS.join("|")}):)?\\d{1,20}$`);
20945
-
20946
- // ../composition/src/clips-editor.ts
20947
20968
  var VISUAL_ENERGIES = [{ value: "all", label: "All" }, { value: "calm", label: "Calm" }, { value: "medium", label: "Medium" }, { value: "bold", label: "Bold" }];
20948
20969
  var CLIP_SORTS = [{ value: "best", label: "Best first" }, { value: "newest", label: "Newest" }, { value: "length", label: "Length" }];
20949
20970
  var CLIP_BROWSE_SHAPES = [{ value: "both", label: "Both" }, { value: "tall", label: "Tall" }, { value: "wide", label: "Wide" }];
20950
-
20951
- // ../composition/src/canvas-frame.ts
20952
20971
  var CANVAS_SPEEDS = [0.25, ...CLIP_SPEEDS];
20953
20972
  var CANVAS_CROSSFADE = { min: 0.25, max: 2, default: 0.75, step: 0.05 };
20954
20973
  var CANVAS_CAMERAS = ["still", "push", "pull"];
@@ -20957,8 +20976,6 @@ var CANVAS_ROTATIONS = [0, 90, 180, 270];
20957
20976
  var CANVAS_ZOOM = { min: 1, max: 3 };
20958
20977
  var HEX_COLOUR = /^#[0-9a-fA-F]{6}$/;
20959
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 };
20960
-
20961
- // ../composition/src/canvas-settings.ts
20962
20979
  var CANVAS_SECONDS = { min: 3, max: 8, default: 8 };
20963
20980
  var CANVAS_VISUAL_KEY = /^[A-Za-z0-9-]+\/[a-z0-9-]+$/;
20964
20981
  var CanvasLookSchema = external_exports.object({
@@ -20977,8 +20994,6 @@ var CanvasLookSchema = external_exports.object({
20977
20994
  light: external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)").nullable().default(null),
20978
20995
  atmosphere: external_exports.enum(OVERLAYS).default("none")
20979
20996
  }).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] });
20980
-
20981
- // ../video-types/src/kit.ts
20982
20997
  var KIT_KINDS = ["outfit", "place", "prop"];
20983
20998
  var KIT_ANGLES = ["wide", "three-quarter", "side", "reverse", "corner", "low", "high", "overhead", "detail", "framed"];
20984
20999
  var KIT_ANGLE_LINES = {
@@ -20999,8 +21014,6 @@ var SHOT_ANGLES = ["front", "three-quarter", "side", "low", "high", "over-should
20999
21014
  var SHOT_MOVES = ["push-in", "pull-out", "arc", "tilt", "dolly", "handheld", "locked-off"];
21000
21015
  var CHARACTER_DESCRIPTION_MIN = 10;
21001
21016
  var CHARACTER_DESCRIPTION_MAX = 600;
21002
-
21003
- // ../video-types/src/model-guide.ts
21004
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" };
21005
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" };
21006
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" };
@@ -21056,8 +21069,6 @@ var MUSIC_VIDEO_MODEL_GUIDES = {
21056
21069
  benchmarks: [{ ...DA_MULTI, entry: "Seedance 2.0 Mini", score: 1292, date: READ }]
21057
21070
  }
21058
21071
  };
21059
-
21060
- // ../video-types/src/visual-styles.ts
21061
21072
  var MUSIC_VIDEO_STYLE_IDS = [
21062
21073
  "natural",
21063
21074
  "film",
@@ -21078,8 +21089,6 @@ var MUSIC_VIDEO_STYLE_IDS = [
21078
21089
  "anime",
21079
21090
  "clay"
21080
21091
  ];
21081
-
21082
- // ../video-types/src/cover-art.ts
21083
21092
  var COVER_STYLE_IDS = ["auto", "portrait", "snapshot", "film-still", "object", "place", "painted", "illustrated", "cartoon", "anime", "collage", "3d", "graphic", "type"];
21084
21093
  var COVER_VIBE_IDS = ["dark", "sad", "romantic", "aggressive", "luxury", "aesthetic", "urban", "hood", "space", "surreal", "vintage"];
21085
21094
  var COVER_VIBES_MAX = 2;
@@ -21132,8 +21141,6 @@ var CoverRequestSchema = external_exports.object({
21132
21141
  credits: external_exports.number().int().positive()
21133
21142
  }).strict().refine((r) => r.style !== "type" || r.words !== "none", { message: "The Type style needs words: title, or artist and title", path: ["words"] });
21134
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();
21135
-
21136
- // ../video-types/src/song-models.ts
21137
21144
  var SONG_MODEL_IDS = ["mureka-v9-5", "lyria-3-5", "eleven-music-v2-5", "minimax-music-3"];
21138
21145
  var DEFAULT_SONG_MODEL = "mureka-v9-5";
21139
21146
  var SONG_TAKES = { min: 1, max: 4 };
@@ -21165,8 +21172,6 @@ var SongDraftFormSchema = external_exports.object({
21165
21172
  write_id: external_exports.string().max(80).optional()
21166
21173
  }).strict();
21167
21174
  var SongWritePickSchema = external_exports.object({ style: external_exports.boolean().optional(), voice: external_exports.boolean().optional() }).strict();
21168
-
21169
- // ../video-types/src/index.ts
21170
21175
  var MAX_VARIATIONS = 4;
21171
21176
  var variations = external_exports.number().int().min(1).max(MAX_VARIATIONS).default(1);
21172
21177
  var MIN_TRIM_SECONDS = 8;
@@ -21622,11 +21627,7 @@ var MusicVideoRequestSchema = external_exports.object({
21622
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" });
21623
21628
  });
21624
21629
  var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
21625
-
21626
- // ../api-spec/src/song-brief.ts
21627
21630
  var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
21628
-
21629
- // ../api-spec/src/artist-pages.ts
21630
21631
  var seg = (re) => (url2) => url2.pathname.match(re)?.[1] ?? null;
21631
21632
  var PLATFORMS = [
21632
21633
  { id: "apple_music", name: "Apple Music", category: "listen", icon: "applemusic", color: "#FA243C", hosts: ["music.apple.com", "itunes.apple.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
@@ -21791,7 +21792,7 @@ var PAGE_THEMES = ["stage", "paper", "neon", "studio"];
21791
21792
  var PAGE_FONTS = ["anton", "fraunces", "unbounded", "bebas", "archivo", "playfair"];
21792
21793
  var PAGE_BUTTONS = ["solid", "outline", "pill"];
21793
21794
  var PAGE_LAYOUTS = ["column", "split"];
21794
- 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");
21795
21796
  var id = external_exports.string().min(1).max(80);
21796
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) };
21797
21798
  var PageSectionSchema = external_exports.discriminatedUnion("type", [
@@ -21815,8 +21816,8 @@ var PageSectionSchema = external_exports.discriminatedUnion("type", [
21815
21816
  ]);
21816
21817
  var PageDocSchema = external_exports.object({
21817
21818
  theme: external_exports.enum(PAGE_THEMES).default("stage"),
21818
- accent: hex5.nullable().default(null).describe("null uses the theme's accent"),
21819
- 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),
21820
21821
  font: external_exports.enum(PAGE_FONTS).nullable().default(null),
21821
21822
  buttons: external_exports.enum(PAGE_BUTTONS).nullable().default(null),
21822
21823
  layout: external_exports.enum(PAGE_LAYOUTS).nullable().default(null),
@@ -21833,20 +21834,14 @@ var PageDocSchema = external_exports.object({
21833
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")
21834
21835
  });
21835
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()])));
21836
-
21837
- // ../api-spec/src/versioning.ts
21838
21837
  var API_VERSION = 1;
21839
21838
  var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
21840
-
21841
- // ../api-spec/src/queue.ts
21842
21839
  var minutes = (seconds) => Math.max(1, Math.round(seconds / 60));
21843
21840
  function queueLabel(queue) {
21844
21841
  if (queue.reason === "plan_limit") return queue.position && queue.position > 1 ? `#${queue.position} in line` : "Next in line";
21845
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";
21846
21843
  return queue.estimated_wait_seconds != null ? `Machines busy \xB7 about ${minutes(queue.estimated_wait_seconds)} min` : "Machines busy";
21847
21844
  }
21848
-
21849
- // ../api-spec/src/index.ts
21850
21845
  var SCOPES = ["videos:read", "videos:write", "music:read", "music:write", "library:read", "library:write", "organizations:read", "organizations:write"];
21851
21846
  var SCOPE_DESCRIPTIONS = {
21852
21847
  "videos:read": "See videos, quotes and your credit balance",
@@ -23275,7 +23270,7 @@ var OPERATIONS = [
23275
23270
  credits: external_exports.number().int().min(0).describe("credits from quote_new_song")
23276
23271
  }),
23277
23272
  readOnly: false,
23278
- destructive: false,
23273
+ destructive: true,
23279
23274
  idempotent: false,
23280
23275
  cli: ["songs", "make"],
23281
23276
  mcp: "make_song",
@@ -23354,7 +23349,7 @@ var OPERATIONS = [
23354
23349
  }).describe("The Create a song fields")
23355
23350
  }),
23356
23351
  readOnly: false,
23357
- destructive: false,
23352
+ destructive: true,
23358
23353
  idempotent: true,
23359
23354
  cli: ["songs", "save-new-draft"],
23360
23355
  mcp: "save_song_creation_draft"
@@ -23413,7 +23408,7 @@ var OPERATIONS = [
23413
23408
  credits: external_exports.number().int().min(0).describe("credits from get_artist_voice for this source")
23414
23409
  }),
23415
23410
  readOnly: false,
23416
- destructive: false,
23411
+ destructive: true,
23417
23412
  idempotent: false,
23418
23413
  cli: ["artists", "set-voice"],
23419
23414
  mcp: "set_artist_voice"
@@ -23775,7 +23770,7 @@ var OPERATIONS = [
23775
23770
  scopes: ["videos:write"],
23776
23771
  input: external_exports.object({ song_id: songId, ...VideoDraftEditShape.shape }).superRefine(checkVideoDraftEdit),
23777
23772
  readOnly: false,
23778
- destructive: false,
23773
+ destructive: true,
23779
23774
  idempotent: false,
23780
23775
  cli: ["drafts", "edit"],
23781
23776
  mcp: "edit_video_draft",
@@ -25134,8 +25129,8 @@ function openApiDocument(input2) {
25134
25129
  const variants = ops.map((op) => {
25135
25130
  const schema = inputJsonSchema(op);
25136
25131
  const props2 = schema.properties ?? {};
25137
- const required3 = new Set(schema.required ?? []);
25138
- return { op, props: props2, required: required3 };
25132
+ const required22 = new Set(schema.required ?? []);
25133
+ return { op, props: props2, required: required22 };
25139
25134
  });
25140
25135
  const { props, required: required2 } = variants[0];
25141
25136
  const params = Object.entries(props).filter(([name]) => inPath.has(name) || first.method === "GET" || first.method === "DELETE").map(([name, s]) => ({
@@ -25210,7 +25205,7 @@ function openApiDocument(input2) {
25210
25205
  }
25211
25206
  var ref = (name) => ({ $ref: `#/components/schemas/${name}` });
25212
25207
 
25213
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
25208
+ // node_modules/commander/lib/error.js
25214
25209
  var CommanderError = class extends Error {
25215
25210
  /**
25216
25211
  * Constructs the CommanderError class
@@ -25239,7 +25234,7 @@ var InvalidArgumentError = class extends CommanderError {
25239
25234
  }
25240
25235
  };
25241
25236
 
25242
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js
25237
+ // node_modules/commander/lib/argument.js
25243
25238
  var Argument = class {
25244
25239
  /**
25245
25240
  * Initialize a new command argument with the given name and description.
@@ -25360,7 +25355,7 @@ function humanReadableArgName(arg) {
25360
25355
  return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
25361
25356
  }
25362
25357
 
25363
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
25358
+ // node_modules/commander/lib/command.js
25364
25359
  import { EventEmitter } from "node:events";
25365
25360
  import childProcess from "node:child_process";
25366
25361
  import path from "node:path";
@@ -25368,7 +25363,7 @@ import fs from "node:fs";
25368
25363
  import process2 from "node:process";
25369
25364
  import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
25370
25365
 
25371
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js
25366
+ // node_modules/commander/lib/help.js
25372
25367
  import { stripVTControlCharacters } from "node:util";
25373
25368
  var Help = class {
25374
25369
  constructor() {
@@ -25437,11 +25432,11 @@ var Help = class {
25437
25432
  visibleOptions.push(helpOption);
25438
25433
  } else if (helpOption.long && !removeLong) {
25439
25434
  visibleOptions.push(
25440
- cmd.createOption(helpOption.long, helpOption.description)
25435
+ cmd.createOption(helpOption.long, helpOption.description).helpGroup(helpOption.helpGroupHeading)
25441
25436
  );
25442
25437
  } else if (helpOption.short && !removeShort) {
25443
25438
  visibleOptions.push(
25444
- cmd.createOption(helpOption.short, helpOption.description)
25439
+ cmd.createOption(helpOption.short, helpOption.description).helpGroup(helpOption.helpGroupHeading)
25445
25440
  );
25446
25441
  }
25447
25442
  }
@@ -25960,7 +25955,7 @@ ${itemIndentStr}`);
25960
25955
  }
25961
25956
  };
25962
25957
 
25963
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js
25958
+ // node_modules/commander/lib/option.js
25964
25959
  var Option = class {
25965
25960
  /**
25966
25961
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -25973,7 +25968,7 @@ var Option = class {
25973
25968
  this.description = description || "";
25974
25969
  this.required = flags.includes("<");
25975
25970
  this.optional = flags.includes("[");
25976
- this.variadic = /\w\.\.\.[>\]]$/.test(flags);
25971
+ this.variadic = new RegExp("\\p{ID_Continue}\\.\\.\\.[>\\]]$", "u").test(flags);
25977
25972
  this.mandatory = false;
25978
25973
  const optionFlags = splitOptionFlags(flags);
25979
25974
  this.short = optionFlags.shortFlag;
@@ -26266,7 +26261,7 @@ function splitOptionFlags(flags) {
26266
26261
  return { shortFlag, longFlag };
26267
26262
  }
26268
26263
 
26269
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js
26264
+ // node_modules/commander/lib/suggestSimilar.js
26270
26265
  var maxDistance = 3;
26271
26266
  function editDistance(a, b) {
26272
26267
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -26341,7 +26336,7 @@ function suggestSimilar(word, candidates) {
26341
26336
  return "";
26342
26337
  }
26343
26338
 
26344
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
26339
+ // node_modules/commander/lib/command.js
26345
26340
  var Command = class _Command extends EventEmitter {
26346
26341
  /**
26347
26342
  * Initialize a new `Command`.
@@ -27156,7 +27151,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
27156
27151
  getOptionValueSourceWithGlobals(key) {
27157
27152
  let source;
27158
27153
  this._getCommandAndAncestors().forEach((cmd) => {
27159
- if (cmd.getOptionValueSource(key) !== void 0) {
27154
+ if (Object.hasOwn(cmd._optionValueSources, key)) {
27160
27155
  source = cmd.getOptionValueSource(key);
27161
27156
  }
27162
27157
  });
@@ -27799,7 +27794,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
27799
27794
  return arg.length > 1 && arg[0] === "-";
27800
27795
  }
27801
27796
  const negativeNumberArg = (arg) => {
27802
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
27797
+ if (!/^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(arg)) return false;
27803
27798
  return !this._getCommandAndAncestors().some(
27804
27799
  (cmd) => cmd.options.map((opt) => opt.short).some((short2) => /^-\d$/.test(short2))
27805
27800
  );
@@ -28247,7 +28242,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
28247
28242
  * (This does not override a group set directly on the subcommand using .helpGroup().)
28248
28243
  *
28249
28244
  * @example
28250
- * program.commandsGroup('Development Commands:);
28245
+ * program.commandsGroup('Development Commands:');
28251
28246
  * program.command('watch')...
28252
28247
  * program.command('lint')...
28253
28248
  * ...
@@ -28418,7 +28413,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
28418
28413
  * Pass in false to disable the built-in help option.
28419
28414
  *
28420
28415
  * @example
28421
- * program.helpOption('-?, --help' 'show help'); // customise
28416
+ * program.helpOption('-?, --help', 'show help'); // customise
28422
28417
  * program.helpOption(false); // disable
28423
28418
  *
28424
28419
  * @param {(string | boolean)} flags
@@ -28547,16 +28542,20 @@ function incrementNodeInspectorPort(args) {
28547
28542
  let debugHost = "127.0.0.1";
28548
28543
  let debugPort = "9229";
28549
28544
  let match;
28550
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
28545
+ if ((match = arg.match(/^(--inspect(-brk|-wait)?)$/)) !== null) {
28551
28546
  debugOption = match[1];
28552
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
28547
+ } else if ((match = arg.match(
28548
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/
28549
+ )) !== null) {
28553
28550
  debugOption = match[1];
28554
28551
  if (/^\d+$/.test(match[3])) {
28555
28552
  debugPort = match[3];
28556
28553
  } else {
28557
28554
  debugHost = match[3];
28558
28555
  }
28559
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
28556
+ } else if ((match = arg.match(
28557
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/
28558
+ )) !== null) {
28560
28559
  debugOption = match[1];
28561
28560
  debugHost = match[3];
28562
28561
  debugPort = match[4];
@@ -28575,7 +28574,7 @@ function useColor() {
28575
28574
  return void 0;
28576
28575
  }
28577
28576
 
28578
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
28577
+ // node_modules/commander/index.js
28579
28578
  var program = new Command();
28580
28579
 
28581
28580
  // src/config.ts
@@ -28752,10 +28751,22 @@ async function revoke(config2, auth = config2.auth) {
28752
28751
  // package.json
28753
28752
  var package_default = {
28754
28753
  name: "@kinetune/cli",
28755
- version: "5.0.0",
28754
+ version: "5.0.1",
28756
28755
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
28757
28756
  license: "MIT",
28757
+ author: {
28758
+ name: "Kinetune",
28759
+ email: "support@kinetune.com",
28760
+ url: "https://kinetune.com"
28761
+ },
28758
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
+ },
28759
28770
  keywords: [
28760
28771
  "lyric video",
28761
28772
  "spotify canvas",
@@ -28777,21 +28788,16 @@ var package_default = {
28777
28788
  },
28778
28789
  scripts: {
28779
28790
  build: "node build.mjs",
28780
- typecheck: "tsc --noEmit",
28781
- test: "vitest run",
28782
- prepack: "node build.mjs"
28791
+ prepublishOnly: "node build.mjs"
28783
28792
  },
28784
28793
  devDependencies: {
28785
- "@kinetune/api-spec": "workspace:*",
28786
28794
  commander: "^15.0.0",
28787
28795
  esbuild: "^0.28.2",
28788
- tsx: "^4.23.15",
28789
- typescript: "^5.9.3",
28790
- vitest: "^3.2.7",
28791
- zod: "^4.1.11"
28796
+ zod: "^4.6.5"
28792
28797
  },
28793
28798
  publishConfig: {
28794
- access: "public"
28799
+ access: "public",
28800
+ provenance: true
28795
28801
  }
28796
28802
  };
28797
28803