jbilcke-hf HF staff commited on
Commit
9433d44
1 Parent(s): fc3fcdf
package-lock.json CHANGED
@@ -8,8 +8,8 @@
8
  "name": "@jbilcke-hf/ai-stories-factory",
9
  "version": "0.0.0",
10
  "dependencies": {
11
- "@aitube/clap": "0.0.14",
12
- "@aitube/client": "0.0.19",
13
  "@radix-ui/react-accordion": "^1.1.2",
14
  "@radix-ui/react-avatar": "^1.0.4",
15
  "@radix-ui/react-checkbox": "^1.0.4",
@@ -66,9 +66,9 @@
66
  }
67
  },
68
  "node_modules/@aitube/clap": {
69
- "version": "0.0.14",
70
- "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.14.tgz",
71
- "integrity": "sha512-i4mq3YFecWVOTS/p5QaSQ0VJfurKXlyRc8FJMqKI6P/7rpf4vE4IL+jBKa4HPsYeNt85/KOt3MJKEFVtgiWGfQ==",
72
  "dependencies": {
73
  "pure-uuid": "^1.8.1",
74
  "yaml": "^2.4.1"
@@ -78,14 +78,14 @@
78
  }
79
  },
80
  "node_modules/@aitube/client": {
81
- "version": "0.0.19",
82
- "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.19.tgz",
83
- "integrity": "sha512-SKsctZEHRmS3Z63jOUnEp7pGNbmDKyGDTgnoS/GCVciLlWknSC6ht9NJasgEuje06kfgF2Uaj/hWC57JHfoe3A==",
84
  "dependencies": {
85
  "query-string": "^9.0.0"
86
  },
87
  "peerDependencies": {
88
- "@aitube/clap": "0.0.14"
89
  }
90
  },
91
  "node_modules/@alloc/quick-lru": {
@@ -130,6 +130,15 @@
130
  "@jridgewell/sourcemap-codec": "^1.4.10"
131
  }
132
  },
 
 
 
 
 
 
 
 
 
133
  "node_modules/@eslint-community/eslint-utils": {
134
  "version": "4.4.0",
135
  "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
@@ -258,7 +267,395 @@
258
  "darwin"
259
  ],
260
  "engines": {
261
- "glibc": ">=2.26",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
263
  "npm": ">=9.6.5",
264
  "pnpm": ">=7.1.0",
@@ -266,24 +663,21 @@
266
  },
267
  "funding": {
268
  "url": "https://opencollective.com/libvips"
269
- },
270
- "optionalDependencies": {
271
- "@img/sharp-libvips-darwin-arm64": "1.0.2"
272
  }
273
  },
274
- "node_modules/@img/sharp-libvips-darwin-arm64": {
275
- "version": "1.0.2",
276
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.2.tgz",
277
- "integrity": "sha512-tcK/41Rq8IKlSaKRCCAuuY3lDJjQnYIW1UXU1kxcEKrfL8WR7N6+rzNoOxoQRJWTAECuKwgAHnPvqXGN8XfkHA==",
278
  "cpu": [
279
- "arm64"
280
  ],
281
  "optional": true,
282
  "os": [
283
- "darwin"
284
  ],
285
  "engines": {
286
- "macos": ">=11",
287
  "npm": ">=9.6.5",
288
  "pnpm": ">=7.1.0",
289
  "yarn": ">=3.2.0"
@@ -797,6 +1191,126 @@
797
  "node": ">= 10"
798
  }
799
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
800
  "node_modules/@nodelib/fs.scandir": {
801
  "version": "2.1.5",
802
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@@ -3234,9 +3748,9 @@
3234
  "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
3235
  },
3236
  "node_modules/electron-to-chromium": {
3237
- "version": "1.4.758",
3238
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.758.tgz",
3239
- "integrity": "sha512-/o9x6TCdrYZBMdGeTifAP3wlF/gVT+TtWJe3BSmtNh92Mw81U9hrYwW9OAGUh+sEOX/yz5e34sksqRruZbjYrw=="
3240
  },
3241
  "node_modules/emoji-regex": {
3242
  "version": "9.2.2",
@@ -7451,126 +7965,6 @@
7451
  "optional": true
7452
  }
7453
  }
7454
- },
7455
- "node_modules/@next/swc-darwin-x64": {
7456
- "version": "14.2.3",
7457
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz",
7458
- "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==",
7459
- "cpu": [
7460
- "x64"
7461
- ],
7462
- "optional": true,
7463
- "os": [
7464
- "darwin"
7465
- ],
7466
- "engines": {
7467
- "node": ">= 10"
7468
- }
7469
- },
7470
- "node_modules/@next/swc-linux-arm64-gnu": {
7471
- "version": "14.2.3",
7472
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz",
7473
- "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==",
7474
- "cpu": [
7475
- "arm64"
7476
- ],
7477
- "optional": true,
7478
- "os": [
7479
- "linux"
7480
- ],
7481
- "engines": {
7482
- "node": ">= 10"
7483
- }
7484
- },
7485
- "node_modules/@next/swc-linux-arm64-musl": {
7486
- "version": "14.2.3",
7487
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz",
7488
- "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==",
7489
- "cpu": [
7490
- "arm64"
7491
- ],
7492
- "optional": true,
7493
- "os": [
7494
- "linux"
7495
- ],
7496
- "engines": {
7497
- "node": ">= 10"
7498
- }
7499
- },
7500
- "node_modules/@next/swc-linux-x64-gnu": {
7501
- "version": "14.2.3",
7502
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz",
7503
- "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==",
7504
- "cpu": [
7505
- "x64"
7506
- ],
7507
- "optional": true,
7508
- "os": [
7509
- "linux"
7510
- ],
7511
- "engines": {
7512
- "node": ">= 10"
7513
- }
7514
- },
7515
- "node_modules/@next/swc-linux-x64-musl": {
7516
- "version": "14.2.3",
7517
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz",
7518
- "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==",
7519
- "cpu": [
7520
- "x64"
7521
- ],
7522
- "optional": true,
7523
- "os": [
7524
- "linux"
7525
- ],
7526
- "engines": {
7527
- "node": ">= 10"
7528
- }
7529
- },
7530
- "node_modules/@next/swc-win32-arm64-msvc": {
7531
- "version": "14.2.3",
7532
- "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz",
7533
- "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==",
7534
- "cpu": [
7535
- "arm64"
7536
- ],
7537
- "optional": true,
7538
- "os": [
7539
- "win32"
7540
- ],
7541
- "engines": {
7542
- "node": ">= 10"
7543
- }
7544
- },
7545
- "node_modules/@next/swc-win32-ia32-msvc": {
7546
- "version": "14.2.3",
7547
- "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz",
7548
- "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==",
7549
- "cpu": [
7550
- "ia32"
7551
- ],
7552
- "optional": true,
7553
- "os": [
7554
- "win32"
7555
- ],
7556
- "engines": {
7557
- "node": ">= 10"
7558
- }
7559
- },
7560
- "node_modules/@next/swc-win32-x64-msvc": {
7561
- "version": "14.2.3",
7562
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz",
7563
- "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==",
7564
- "cpu": [
7565
- "x64"
7566
- ],
7567
- "optional": true,
7568
- "os": [
7569
- "win32"
7570
- ],
7571
- "engines": {
7572
- "node": ">= 10"
7573
- }
7574
  }
7575
  }
7576
  }
 
8
  "name": "@jbilcke-hf/ai-stories-factory",
9
  "version": "0.0.0",
10
  "dependencies": {
11
+ "@aitube/clap": "0.0.16",
12
+ "@aitube/client": "0.0.21",
13
  "@radix-ui/react-accordion": "^1.1.2",
14
  "@radix-ui/react-avatar": "^1.0.4",
15
  "@radix-ui/react-checkbox": "^1.0.4",
 
66
  }
67
  },
68
  "node_modules/@aitube/clap": {
69
+ "version": "0.0.16",
70
+ "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.16.tgz",
71
+ "integrity": "sha512-EcBu4gbc8Kx58rkMmLjh0uyCWVR4cSgWqALlQ50C1GbHRg/r81gDET6faWeos14ZGrtg4B0CJv8WUTIDE54pjg==",
72
  "dependencies": {
73
  "pure-uuid": "^1.8.1",
74
  "yaml": "^2.4.1"
 
78
  }
79
  },
80
  "node_modules/@aitube/client": {
81
+ "version": "0.0.21",
82
+ "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.21.tgz",
83
+ "integrity": "sha512-Nw/K4j024ffYiw1WipLDU7M29L+4cM4cQwrjvSxWW8zF4/1NLrPSKTlF6Gak5Qd/ZFWq/D8GbMiGQ5W3lQb8mA==",
84
  "dependencies": {
85
  "query-string": "^9.0.0"
86
  },
87
  "peerDependencies": {
88
+ "@aitube/clap": "0.0.16"
89
  }
90
  },
91
  "node_modules/@alloc/quick-lru": {
 
130
  "@jridgewell/sourcemap-codec": "^1.4.10"
131
  }
132
  },
133
+ "node_modules/@emnapi/runtime": {
134
+ "version": "1.1.1",
135
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz",
136
+ "integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==",
137
+ "optional": true,
138
+ "dependencies": {
139
+ "tslib": "^2.4.0"
140
+ }
141
+ },
142
  "node_modules/@eslint-community/eslint-utils": {
143
  "version": "4.4.0",
144
  "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
 
267
  "darwin"
268
  ],
269
  "engines": {
270
+ "glibc": ">=2.26",
271
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
272
+ "npm": ">=9.6.5",
273
+ "pnpm": ">=7.1.0",
274
+ "yarn": ">=3.2.0"
275
+ },
276
+ "funding": {
277
+ "url": "https://opencollective.com/libvips"
278
+ },
279
+ "optionalDependencies": {
280
+ "@img/sharp-libvips-darwin-arm64": "1.0.2"
281
+ }
282
+ },
283
+ "node_modules/@img/sharp-darwin-x64": {
284
+ "version": "0.33.3",
285
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.3.tgz",
286
+ "integrity": "sha512-2QeSl7QDK9ru//YBT4sQkoq7L0EAJZA3rtV+v9p8xTKl4U1bUqTIaCnoC7Ctx2kCjQgwFXDasOtPTCT8eCTXvw==",
287
+ "cpu": [
288
+ "x64"
289
+ ],
290
+ "optional": true,
291
+ "os": [
292
+ "darwin"
293
+ ],
294
+ "engines": {
295
+ "glibc": ">=2.26",
296
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
297
+ "npm": ">=9.6.5",
298
+ "pnpm": ">=7.1.0",
299
+ "yarn": ">=3.2.0"
300
+ },
301
+ "funding": {
302
+ "url": "https://opencollective.com/libvips"
303
+ },
304
+ "optionalDependencies": {
305
+ "@img/sharp-libvips-darwin-x64": "1.0.2"
306
+ }
307
+ },
308
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
309
+ "version": "1.0.2",
310
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.2.tgz",
311
+ "integrity": "sha512-tcK/41Rq8IKlSaKRCCAuuY3lDJjQnYIW1UXU1kxcEKrfL8WR7N6+rzNoOxoQRJWTAECuKwgAHnPvqXGN8XfkHA==",
312
+ "cpu": [
313
+ "arm64"
314
+ ],
315
+ "optional": true,
316
+ "os": [
317
+ "darwin"
318
+ ],
319
+ "engines": {
320
+ "macos": ">=11",
321
+ "npm": ">=9.6.5",
322
+ "pnpm": ">=7.1.0",
323
+ "yarn": ">=3.2.0"
324
+ },
325
+ "funding": {
326
+ "url": "https://opencollective.com/libvips"
327
+ }
328
+ },
329
+ "node_modules/@img/sharp-libvips-darwin-x64": {
330
+ "version": "1.0.2",
331
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.2.tgz",
332
+ "integrity": "sha512-Ofw+7oaWa0HiiMiKWqqaZbaYV3/UGL2wAPeLuJTx+9cXpCRdvQhCLG0IH8YGwM0yGWGLpsF4Su9vM1o6aer+Fw==",
333
+ "cpu": [
334
+ "x64"
335
+ ],
336
+ "optional": true,
337
+ "os": [
338
+ "darwin"
339
+ ],
340
+ "engines": {
341
+ "macos": ">=10.13",
342
+ "npm": ">=9.6.5",
343
+ "pnpm": ">=7.1.0",
344
+ "yarn": ">=3.2.0"
345
+ },
346
+ "funding": {
347
+ "url": "https://opencollective.com/libvips"
348
+ }
349
+ },
350
+ "node_modules/@img/sharp-libvips-linux-arm": {
351
+ "version": "1.0.2",
352
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.2.tgz",
353
+ "integrity": "sha512-iLWCvrKgeFoglQxdEwzu1eQV04o8YeYGFXtfWU26Zr2wWT3q3MTzC+QTCO3ZQfWd3doKHT4Pm2kRmLbupT+sZw==",
354
+ "cpu": [
355
+ "arm"
356
+ ],
357
+ "optional": true,
358
+ "os": [
359
+ "linux"
360
+ ],
361
+ "engines": {
362
+ "glibc": ">=2.28",
363
+ "npm": ">=9.6.5",
364
+ "pnpm": ">=7.1.0",
365
+ "yarn": ">=3.2.0"
366
+ },
367
+ "funding": {
368
+ "url": "https://opencollective.com/libvips"
369
+ }
370
+ },
371
+ "node_modules/@img/sharp-libvips-linux-arm64": {
372
+ "version": "1.0.2",
373
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.2.tgz",
374
+ "integrity": "sha512-x7kCt3N00ofFmmkkdshwj3vGPCnmiDh7Gwnd4nUwZln2YjqPxV1NlTyZOvoDWdKQVDL911487HOueBvrpflagw==",
375
+ "cpu": [
376
+ "arm64"
377
+ ],
378
+ "optional": true,
379
+ "os": [
380
+ "linux"
381
+ ],
382
+ "engines": {
383
+ "glibc": ">=2.26",
384
+ "npm": ">=9.6.5",
385
+ "pnpm": ">=7.1.0",
386
+ "yarn": ">=3.2.0"
387
+ },
388
+ "funding": {
389
+ "url": "https://opencollective.com/libvips"
390
+ }
391
+ },
392
+ "node_modules/@img/sharp-libvips-linux-s390x": {
393
+ "version": "1.0.2",
394
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.2.tgz",
395
+ "integrity": "sha512-cmhQ1J4qVhfmS6szYW7RT+gLJq9dH2i4maq+qyXayUSn9/3iY2ZeWpbAgSpSVbV2E1JUL2Gg7pwnYQ1h8rQIog==",
396
+ "cpu": [
397
+ "s390x"
398
+ ],
399
+ "optional": true,
400
+ "os": [
401
+ "linux"
402
+ ],
403
+ "engines": {
404
+ "glibc": ">=2.28",
405
+ "npm": ">=9.6.5",
406
+ "pnpm": ">=7.1.0",
407
+ "yarn": ">=3.2.0"
408
+ },
409
+ "funding": {
410
+ "url": "https://opencollective.com/libvips"
411
+ }
412
+ },
413
+ "node_modules/@img/sharp-libvips-linux-x64": {
414
+ "version": "1.0.2",
415
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.2.tgz",
416
+ "integrity": "sha512-E441q4Qdb+7yuyiADVi5J+44x8ctlrqn8XgkDTwr4qPJzWkaHwD489iZ4nGDgcuya4iMN3ULV6NwbhRZJ9Z7SQ==",
417
+ "cpu": [
418
+ "x64"
419
+ ],
420
+ "optional": true,
421
+ "os": [
422
+ "linux"
423
+ ],
424
+ "engines": {
425
+ "glibc": ">=2.26",
426
+ "npm": ">=9.6.5",
427
+ "pnpm": ">=7.1.0",
428
+ "yarn": ">=3.2.0"
429
+ },
430
+ "funding": {
431
+ "url": "https://opencollective.com/libvips"
432
+ }
433
+ },
434
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
435
+ "version": "1.0.2",
436
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.2.tgz",
437
+ "integrity": "sha512-3CAkndNpYUrlDqkCM5qhksfE+qSIREVpyoeHIU6jd48SJZViAmznoQQLAv4hVXF7xyUB9zf+G++e2v1ABjCbEQ==",
438
+ "cpu": [
439
+ "arm64"
440
+ ],
441
+ "optional": true,
442
+ "os": [
443
+ "linux"
444
+ ],
445
+ "engines": {
446
+ "musl": ">=1.2.2",
447
+ "npm": ">=9.6.5",
448
+ "pnpm": ">=7.1.0",
449
+ "yarn": ">=3.2.0"
450
+ },
451
+ "funding": {
452
+ "url": "https://opencollective.com/libvips"
453
+ }
454
+ },
455
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
456
+ "version": "1.0.2",
457
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.2.tgz",
458
+ "integrity": "sha512-VI94Q6khIHqHWNOh6LLdm9s2Ry4zdjWJwH56WoiJU7NTeDwyApdZZ8c+SADC8OH98KWNQXnE01UdJ9CSfZvwZw==",
459
+ "cpu": [
460
+ "x64"
461
+ ],
462
+ "optional": true,
463
+ "os": [
464
+ "linux"
465
+ ],
466
+ "engines": {
467
+ "musl": ">=1.2.2",
468
+ "npm": ">=9.6.5",
469
+ "pnpm": ">=7.1.0",
470
+ "yarn": ">=3.2.0"
471
+ },
472
+ "funding": {
473
+ "url": "https://opencollective.com/libvips"
474
+ }
475
+ },
476
+ "node_modules/@img/sharp-linux-arm": {
477
+ "version": "0.33.3",
478
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.3.tgz",
479
+ "integrity": "sha512-Q7Ee3fFSC9P7vUSqVEF0zccJsZ8GiiCJYGWDdhEjdlOeS9/jdkyJ6sUSPj+bL8VuOYFSbofrW0t/86ceVhx32w==",
480
+ "cpu": [
481
+ "arm"
482
+ ],
483
+ "optional": true,
484
+ "os": [
485
+ "linux"
486
+ ],
487
+ "engines": {
488
+ "glibc": ">=2.28",
489
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
490
+ "npm": ">=9.6.5",
491
+ "pnpm": ">=7.1.0",
492
+ "yarn": ">=3.2.0"
493
+ },
494
+ "funding": {
495
+ "url": "https://opencollective.com/libvips"
496
+ },
497
+ "optionalDependencies": {
498
+ "@img/sharp-libvips-linux-arm": "1.0.2"
499
+ }
500
+ },
501
+ "node_modules/@img/sharp-linux-arm64": {
502
+ "version": "0.33.3",
503
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.3.tgz",
504
+ "integrity": "sha512-Zf+sF1jHZJKA6Gor9hoYG2ljr4wo9cY4twaxgFDvlG0Xz9V7sinsPp8pFd1XtlhTzYo0IhDbl3rK7P6MzHpnYA==",
505
+ "cpu": [
506
+ "arm64"
507
+ ],
508
+ "optional": true,
509
+ "os": [
510
+ "linux"
511
+ ],
512
+ "engines": {
513
+ "glibc": ">=2.26",
514
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
515
+ "npm": ">=9.6.5",
516
+ "pnpm": ">=7.1.0",
517
+ "yarn": ">=3.2.0"
518
+ },
519
+ "funding": {
520
+ "url": "https://opencollective.com/libvips"
521
+ },
522
+ "optionalDependencies": {
523
+ "@img/sharp-libvips-linux-arm64": "1.0.2"
524
+ }
525
+ },
526
+ "node_modules/@img/sharp-linux-s390x": {
527
+ "version": "0.33.3",
528
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.3.tgz",
529
+ "integrity": "sha512-vFk441DKRFepjhTEH20oBlFrHcLjPfI8B0pMIxGm3+yilKyYeHEVvrZhYFdqIseSclIqbQ3SnZMwEMWonY5XFA==",
530
+ "cpu": [
531
+ "s390x"
532
+ ],
533
+ "optional": true,
534
+ "os": [
535
+ "linux"
536
+ ],
537
+ "engines": {
538
+ "glibc": ">=2.28",
539
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
540
+ "npm": ">=9.6.5",
541
+ "pnpm": ">=7.1.0",
542
+ "yarn": ">=3.2.0"
543
+ },
544
+ "funding": {
545
+ "url": "https://opencollective.com/libvips"
546
+ },
547
+ "optionalDependencies": {
548
+ "@img/sharp-libvips-linux-s390x": "1.0.2"
549
+ }
550
+ },
551
+ "node_modules/@img/sharp-linux-x64": {
552
+ "version": "0.33.3",
553
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.3.tgz",
554
+ "integrity": "sha512-Q4I++herIJxJi+qmbySd072oDPRkCg/SClLEIDh5IL9h1zjhqjv82H0Seupd+q2m0yOfD+/fJnjSoDFtKiHu2g==",
555
+ "cpu": [
556
+ "x64"
557
+ ],
558
+ "optional": true,
559
+ "os": [
560
+ "linux"
561
+ ],
562
+ "engines": {
563
+ "glibc": ">=2.26",
564
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
565
+ "npm": ">=9.6.5",
566
+ "pnpm": ">=7.1.0",
567
+ "yarn": ">=3.2.0"
568
+ },
569
+ "funding": {
570
+ "url": "https://opencollective.com/libvips"
571
+ },
572
+ "optionalDependencies": {
573
+ "@img/sharp-libvips-linux-x64": "1.0.2"
574
+ }
575
+ },
576
+ "node_modules/@img/sharp-linuxmusl-arm64": {
577
+ "version": "0.33.3",
578
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.3.tgz",
579
+ "integrity": "sha512-qnDccehRDXadhM9PM5hLvcPRYqyFCBN31kq+ErBSZtZlsAc1U4Z85xf/RXv1qolkdu+ibw64fUDaRdktxTNP9A==",
580
+ "cpu": [
581
+ "arm64"
582
+ ],
583
+ "optional": true,
584
+ "os": [
585
+ "linux"
586
+ ],
587
+ "engines": {
588
+ "musl": ">=1.2.2",
589
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
590
+ "npm": ">=9.6.5",
591
+ "pnpm": ">=7.1.0",
592
+ "yarn": ">=3.2.0"
593
+ },
594
+ "funding": {
595
+ "url": "https://opencollective.com/libvips"
596
+ },
597
+ "optionalDependencies": {
598
+ "@img/sharp-libvips-linuxmusl-arm64": "1.0.2"
599
+ }
600
+ },
601
+ "node_modules/@img/sharp-linuxmusl-x64": {
602
+ "version": "0.33.3",
603
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.3.tgz",
604
+ "integrity": "sha512-Jhchim8kHWIU/GZ+9poHMWRcefeaxFIs9EBqf9KtcC14Ojk6qua7ghKiPs0sbeLbLj/2IGBtDcxHyjCdYWkk2w==",
605
+ "cpu": [
606
+ "x64"
607
+ ],
608
+ "optional": true,
609
+ "os": [
610
+ "linux"
611
+ ],
612
+ "engines": {
613
+ "musl": ">=1.2.2",
614
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
615
+ "npm": ">=9.6.5",
616
+ "pnpm": ">=7.1.0",
617
+ "yarn": ">=3.2.0"
618
+ },
619
+ "funding": {
620
+ "url": "https://opencollective.com/libvips"
621
+ },
622
+ "optionalDependencies": {
623
+ "@img/sharp-libvips-linuxmusl-x64": "1.0.2"
624
+ }
625
+ },
626
+ "node_modules/@img/sharp-wasm32": {
627
+ "version": "0.33.3",
628
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.3.tgz",
629
+ "integrity": "sha512-68zivsdJ0koE96stdUfM+gmyaK/NcoSZK5dV5CAjES0FUXS9lchYt8LAB5rTbM7nlWtxaU/2GON0HVN6/ZYJAQ==",
630
+ "cpu": [
631
+ "wasm32"
632
+ ],
633
+ "optional": true,
634
+ "dependencies": {
635
+ "@emnapi/runtime": "^1.1.0"
636
+ },
637
+ "engines": {
638
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
639
+ "npm": ">=9.6.5",
640
+ "pnpm": ">=7.1.0",
641
+ "yarn": ">=3.2.0"
642
+ },
643
+ "funding": {
644
+ "url": "https://opencollective.com/libvips"
645
+ }
646
+ },
647
+ "node_modules/@img/sharp-win32-ia32": {
648
+ "version": "0.33.3",
649
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.3.tgz",
650
+ "integrity": "sha512-CyimAduT2whQD8ER4Ux7exKrtfoaUiVr7HG0zZvO0XTFn2idUWljjxv58GxNTkFb8/J9Ub9AqITGkJD6ZginxQ==",
651
+ "cpu": [
652
+ "ia32"
653
+ ],
654
+ "optional": true,
655
+ "os": [
656
+ "win32"
657
+ ],
658
+ "engines": {
659
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
660
  "npm": ">=9.6.5",
661
  "pnpm": ">=7.1.0",
 
663
  },
664
  "funding": {
665
  "url": "https://opencollective.com/libvips"
 
 
 
666
  }
667
  },
668
+ "node_modules/@img/sharp-win32-x64": {
669
+ "version": "0.33.3",
670
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.3.tgz",
671
+ "integrity": "sha512-viT4fUIDKnli3IfOephGnolMzhz5VaTvDRkYqtZxOMIoMQ4MrAziO7pT1nVnOt2FAm7qW5aa+CCc13aEY6Le0g==",
672
  "cpu": [
673
+ "x64"
674
  ],
675
  "optional": true,
676
  "os": [
677
+ "win32"
678
  ],
679
  "engines": {
680
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
681
  "npm": ">=9.6.5",
682
  "pnpm": ">=7.1.0",
683
  "yarn": ">=3.2.0"
 
1191
  "node": ">= 10"
1192
  }
1193
  },
1194
+ "node_modules/@next/swc-darwin-x64": {
1195
+ "version": "14.2.3",
1196
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz",
1197
+ "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==",
1198
+ "cpu": [
1199
+ "x64"
1200
+ ],
1201
+ "optional": true,
1202
+ "os": [
1203
+ "darwin"
1204
+ ],
1205
+ "engines": {
1206
+ "node": ">= 10"
1207
+ }
1208
+ },
1209
+ "node_modules/@next/swc-linux-arm64-gnu": {
1210
+ "version": "14.2.3",
1211
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz",
1212
+ "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==",
1213
+ "cpu": [
1214
+ "arm64"
1215
+ ],
1216
+ "optional": true,
1217
+ "os": [
1218
+ "linux"
1219
+ ],
1220
+ "engines": {
1221
+ "node": ">= 10"
1222
+ }
1223
+ },
1224
+ "node_modules/@next/swc-linux-arm64-musl": {
1225
+ "version": "14.2.3",
1226
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz",
1227
+ "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==",
1228
+ "cpu": [
1229
+ "arm64"
1230
+ ],
1231
+ "optional": true,
1232
+ "os": [
1233
+ "linux"
1234
+ ],
1235
+ "engines": {
1236
+ "node": ">= 10"
1237
+ }
1238
+ },
1239
+ "node_modules/@next/swc-linux-x64-gnu": {
1240
+ "version": "14.2.3",
1241
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz",
1242
+ "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==",
1243
+ "cpu": [
1244
+ "x64"
1245
+ ],
1246
+ "optional": true,
1247
+ "os": [
1248
+ "linux"
1249
+ ],
1250
+ "engines": {
1251
+ "node": ">= 10"
1252
+ }
1253
+ },
1254
+ "node_modules/@next/swc-linux-x64-musl": {
1255
+ "version": "14.2.3",
1256
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz",
1257
+ "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==",
1258
+ "cpu": [
1259
+ "x64"
1260
+ ],
1261
+ "optional": true,
1262
+ "os": [
1263
+ "linux"
1264
+ ],
1265
+ "engines": {
1266
+ "node": ">= 10"
1267
+ }
1268
+ },
1269
+ "node_modules/@next/swc-win32-arm64-msvc": {
1270
+ "version": "14.2.3",
1271
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz",
1272
+ "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==",
1273
+ "cpu": [
1274
+ "arm64"
1275
+ ],
1276
+ "optional": true,
1277
+ "os": [
1278
+ "win32"
1279
+ ],
1280
+ "engines": {
1281
+ "node": ">= 10"
1282
+ }
1283
+ },
1284
+ "node_modules/@next/swc-win32-ia32-msvc": {
1285
+ "version": "14.2.3",
1286
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz",
1287
+ "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==",
1288
+ "cpu": [
1289
+ "ia32"
1290
+ ],
1291
+ "optional": true,
1292
+ "os": [
1293
+ "win32"
1294
+ ],
1295
+ "engines": {
1296
+ "node": ">= 10"
1297
+ }
1298
+ },
1299
+ "node_modules/@next/swc-win32-x64-msvc": {
1300
+ "version": "14.2.3",
1301
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz",
1302
+ "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==",
1303
+ "cpu": [
1304
+ "x64"
1305
+ ],
1306
+ "optional": true,
1307
+ "os": [
1308
+ "win32"
1309
+ ],
1310
+ "engines": {
1311
+ "node": ">= 10"
1312
+ }
1313
+ },
1314
  "node_modules/@nodelib/fs.scandir": {
1315
  "version": "2.1.5",
1316
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
 
3748
  "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
3749
  },
3750
  "node_modules/electron-to-chromium": {
3751
+ "version": "1.4.759",
3752
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.759.tgz",
3753
+ "integrity": "sha512-qZJc+zsuI+/5UjOSFnpkJBwwLMH1AZgyKqJ7LUNnRsB7v/cDjMu9DvXgp9kH6PTTZxjnPXGp2Uhurw+2Ll4Hjg=="
3754
  },
3755
  "node_modules/emoji-regex": {
3756
  "version": "9.2.2",
 
7965
  "optional": true
7966
  }
7967
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7968
  }
7969
  }
7970
  }
package.json CHANGED
@@ -9,8 +9,8 @@
9
  "lint": "next lint"
10
  },
11
  "dependencies": {
12
- "@aitube/clap": "0.0.14",
13
- "@aitube/client": "0.0.19",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
16
  "@radix-ui/react-checkbox": "^1.0.4",
 
9
  "lint": "next lint"
10
  },
11
  "dependencies": {
12
+ "@aitube/clap": "0.0.16",
13
+ "@aitube/client": "0.0.21",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
16
  "@radix-ui/react-checkbox": "^1.0.4",
src/app/main.tsx CHANGED
@@ -2,7 +2,7 @@
2
 
3
  import React, { useEffect, useRef, useTransition } from 'react'
4
  import { IoMdPhonePortrait } from 'react-icons/io'
5
- import { ClapProject, ClapMediaOrientation } from '@aitube/clap'
6
  import Image from 'next/image'
7
  import { useFilePicker } from 'use-file-picker'
8
  import { DeviceFrameset } from 'react-device-frameset'
@@ -63,7 +63,7 @@ export function Main() {
63
  const setImageGenerationStatus = useStore(s => s.setImageGenerationStatus)
64
  const setVideoGenerationStatus = useStore(s => s.setVideoGenerationStatus)
65
  const setCurrentClap = useStore(s => s.setCurrentClap)
66
- const setGeneratedVideo = useStore(s => s.setGeneratedVideo)
67
  const progress = useStore(s => s.progress)
68
  const setProgress = useStore(s => s.setProgress)
69
  const saveClap = useStore(s => s.saveClap)
@@ -88,7 +88,6 @@ export function Main() {
88
  setProgress,
89
  setParseGenerationStatus,
90
  setVideoGenerationStatus,
91
- setGeneratedVideo
92
  } = useStore.getState()
93
 
94
  let clap: ClapProject | undefined = undefined
@@ -163,7 +162,7 @@ export function Main() {
163
 
164
  console.log(`loadClap(): generated a video: ${assetUrl.slice(0, 60)}...`)
165
 
166
- setGeneratedVideo(assetUrl)
167
  setStatus("finished")
168
  setError("")
169
  }
@@ -239,6 +238,13 @@ export function Main() {
239
  return
240
  }
241
 
 
 
 
 
 
 
 
242
 
243
  /*
244
  if (mainCharacterImage) {
@@ -259,11 +265,15 @@ export function Main() {
259
  setImageGenerationStatus("generating")
260
  clap = await editClapStoryboards({
261
  clap,
 
 
 
262
  turbo: true
263
  })
264
 
265
  if (!clap) { throw new Error(`failed to edit the storyboards`) }
266
 
 
267
  console.log(`handleSubmit(): received a clap with images = `, clap)
268
  setCurrentClap(clap)
269
  setImageGenerationStatus("finished")
@@ -277,6 +287,13 @@ export function Main() {
277
  return
278
  }
279
 
 
 
 
 
 
 
 
280
 
281
  try {
282
  setProgress(50)
@@ -298,31 +315,40 @@ export function Main() {
298
  return
299
  }
300
  if (!clap) {
 
301
  return
302
  }
303
 
 
 
 
 
 
 
 
304
  let assetUrl = ""
305
  try {
306
  setProgress(75)
307
  setVideoGenerationStatus("generating")
308
  assetUrl = await exportClapToVideo({
309
  clap,
310
- turbo: true
311
  })
312
 
313
  console.log(`handleSubmit(): received a video: ${assetUrl.slice(0, 60)}...`)
314
-
 
315
  setStatus("finished")
316
  setError("")
317
- setVideoGenerationStatus("finished")
318
- setGeneratedVideo(assetUrl)
319
  } catch (err) {
 
320
  setVideoGenerationStatus("error")
321
  setStatus("error")
322
  setError(`${err}`)
323
- setGeneratedVideo("")
324
- return
325
  }
 
 
326
  })
327
  }
328
 
@@ -350,7 +376,7 @@ export function Main() {
350
  entities: 2000,
351
  images: 1000,
352
  voices: 2000,
353
- video_export: 1000,
354
  idle: 1000
355
  }
356
 
 
2
 
3
  import React, { useEffect, useRef, useTransition } from 'react'
4
  import { IoMdPhonePortrait } from 'react-icons/io'
5
+ import { ClapProject, ClapMediaOrientation, ClapSegmentCategory } from '@aitube/clap'
6
  import Image from 'next/image'
7
  import { useFilePicker } from 'use-file-picker'
8
  import { DeviceFrameset } from 'react-device-frameset'
 
63
  const setImageGenerationStatus = useStore(s => s.setImageGenerationStatus)
64
  const setVideoGenerationStatus = useStore(s => s.setVideoGenerationStatus)
65
  const setCurrentClap = useStore(s => s.setCurrentClap)
66
+ const setCurrentVideo = useStore(s => s.setCurrentVideo)
67
  const progress = useStore(s => s.progress)
68
  const setProgress = useStore(s => s.setProgress)
69
  const saveClap = useStore(s => s.saveClap)
 
88
  setProgress,
89
  setParseGenerationStatus,
90
  setVideoGenerationStatus,
 
91
  } = useStore.getState()
92
 
93
  let clap: ClapProject | undefined = undefined
 
162
 
163
  console.log(`loadClap(): generated a video: ${assetUrl.slice(0, 60)}...`)
164
 
165
+ setCurrentVideo(assetUrl)
166
  setStatus("finished")
167
  setError("")
168
  }
 
238
  return
239
  }
240
 
241
+ console.log("-------- GENERATED ENTITIES --------")
242
+ console.table(clap.entities, [
243
+ 'category',
244
+ 'label',
245
+ 'imagePrompt',
246
+ 'appearance'
247
+ ])
248
 
249
  /*
250
  if (mainCharacterImage) {
 
265
  setImageGenerationStatus("generating")
266
  clap = await editClapStoryboards({
267
  clap,
268
+ // the turbo is mandatory here,
269
+ // since this uses a model with character consistency,
270
+ // which is not the case for the non-turbo one
271
  turbo: true
272
  })
273
 
274
  if (!clap) { throw new Error(`failed to edit the storyboards`) }
275
 
276
+ // const fusion =
277
  console.log(`handleSubmit(): received a clap with images = `, clap)
278
  setCurrentClap(clap)
279
  setImageGenerationStatus("finished")
 
287
  return
288
  }
289
 
290
+ console.log("-------- GENERATED STORYBOARDS --------")
291
+ console.table(clap.segments.filter(s => s.category === ClapSegmentCategory.STORYBOARD), [
292
+ 'endTimeInMs',
293
+ 'prompt',
294
+ 'assetUrl'
295
+ ])
296
+
297
 
298
  try {
299
  setProgress(50)
 
315
  return
316
  }
317
  if (!clap) {
318
+ console.log("aborting prematurely")
319
  return
320
  }
321
 
322
+ console.log("-------- GENERATED DIALOGUES --------")
323
+ console.table(clap.segments.filter(s => s.category === ClapSegmentCategory.DIALOGUE), [
324
+ 'endTimeInMs',
325
+ 'prompt',
326
+ 'entityId',
327
+ ])
328
+
329
  let assetUrl = ""
330
  try {
331
  setProgress(75)
332
  setVideoGenerationStatus("generating")
333
  assetUrl = await exportClapToVideo({
334
  clap,
335
+ // turbo: true
336
  })
337
 
338
  console.log(`handleSubmit(): received a video: ${assetUrl.slice(0, 60)}...`)
339
+ setVideoGenerationStatus("finished")
340
+ setCurrentVideo(assetUrl)
341
  setStatus("finished")
342
  setError("")
 
 
343
  } catch (err) {
344
+ console.error(`error: `, err)
345
  setVideoGenerationStatus("error")
346
  setStatus("error")
347
  setError(`${err}`)
348
+ // setCurrentVideo("")
 
349
  }
350
+
351
+ console.log("-------- GENERATED FINAL VIDEO --------")
352
  })
353
  }
354
 
 
376
  entities: 2000,
377
  images: 1000,
378
  voices: 2000,
379
+ video_export: 1500,
380
  idle: 1000
381
  }
382
 
src/app/server/aitube/editClapDialogues.ts CHANGED
@@ -14,7 +14,7 @@ export async function editClapDialogues({
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapDialogues({
16
  clap,
17
- completionMode: ClapCompletionMode.FULL,
18
  turbo,
19
  token: await getToken()
20
  })
 
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapDialogues({
16
  clap,
17
+ completionMode: ClapCompletionMode.MERGE,
18
  turbo,
19
  token: await getToken()
20
  })
src/app/server/aitube/editClapEntities.ts CHANGED
@@ -17,7 +17,7 @@ export async function editClapEntities({
17
  const newClap: ClapProject = await apiEditClapEntities({
18
  clap,
19
  entityPrompts,
20
- completionMode: ClapCompletionMode.FULL,
21
  turbo,
22
  token: await getToken()
23
  })
 
17
  const newClap: ClapProject = await apiEditClapEntities({
18
  clap,
19
  entityPrompts,
20
+ completionMode: ClapCompletionMode.MERGE,
21
  turbo,
22
  token: await getToken()
23
  })
src/app/server/aitube/editClapStoryboards.ts CHANGED
@@ -14,7 +14,7 @@ export async function editClapStoryboards({
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapStoryboards({
16
  clap,
17
- completionMode: ClapCompletionMode.FULL,
18
  turbo,
19
  token: await getToken()
20
  })
 
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapStoryboards({
16
  clap,
17
+ completionMode: ClapCompletionMode.MERGE,
18
  turbo,
19
  token: await getToken()
20
  })
src/app/server/aitube/editClapVideos.ts CHANGED
@@ -14,7 +14,7 @@ export async function editClapVideos({
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapVideos({
16
  clap,
17
- completionMode: ClapCompletionMode.FULL,
18
  turbo,
19
  token: await getToken()
20
  })
 
14
  }): Promise<ClapProject> {
15
  const newClap: ClapProject = await apiEditClapVideos({
16
  clap,
17
+ completionMode: ClapCompletionMode.MERGE,
18
  turbo,
19
  token: await getToken()
20
  })
src/app/store.ts CHANGED
@@ -54,7 +54,7 @@ export const useStore = create<{
54
  setCurrentClap: (currentClap?: ClapProject) => void
55
 
56
  // note: this will preload the video, and compute the orientation too
57
- setGeneratedVideo: (generatedVideo: string) => Promise<void>
58
 
59
  setProgress: (progress: number) => void
60
  setError: (error: string) => void
@@ -102,7 +102,10 @@ export const useStore = create<{
102
  setMainCharacterVoice: (mainCharacterVoice: string) => { set({ mainCharacterVoice }) },
103
  setStoryPromptDraft: (storyPromptDraft: string) => { set({ storyPromptDraft }) },
104
  setStoryPrompt: (storyPrompt: string) => { set({ storyPrompt }) },
105
- setStatus: (status: GlobalStatus) => { set({ status }) },
 
 
 
106
  setParseGenerationStatus: (parseGenerationStatus: TaskStatus) => {
107
  set({ parseGenerationStatus })
108
  get().syncStatusAndStageState()
@@ -141,25 +144,33 @@ export const useStore = create<{
141
  videoGenerationStatus === "generating" ? "video_export" :
142
  "idle"
143
 
 
144
  // I think we still need the global status
145
  // that is because we can have parallelism
146
  const isBusy = stage !== "idle" || status === "generating"
147
-
148
- console.log("syncStatus:", {
149
- status, storyGenerationStatus, assetGenerationStatus, voiceGenerationStatus, imageGenerationStatus, videoGenerationStatus,
150
- stage, isBusy
151
-
152
- })
153
  set({ isBusy, stage })
154
  },
155
  setCurrentClap: (currentClap?: ClapProject) => { set({ currentClap }) },
156
- setGeneratedVideo: async (currentVideo: string): Promise<void> => {
157
- const currentVideoOrientation = await getVideoOrientation(currentVideo)
158
  set({
159
  currentVideo,
160
- currentVideoOrientation
161
-
162
  })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  },
164
  setProgress: (progress: number) => { set({ progress }) },
165
  setError: (error: string) => { set({ error }) },
@@ -168,6 +179,8 @@ export const useStore = create<{
168
 
169
  if (!currentClap) { throw new Error(`cannot save a clap.. if there is no clap`) }
170
 
 
 
171
  const currentClapBlob: Blob = await serializeClap(currentClap)
172
 
173
  // Create an object URL for the compressed clap blob
 
54
  setCurrentClap: (currentClap?: ClapProject) => void
55
 
56
  // note: this will preload the video, and compute the orientation too
57
+ setCurrentVideo: (currentVideo: string) => Promise<void>
58
 
59
  setProgress: (progress: number) => void
60
  setError: (error: string) => void
 
102
  setMainCharacterVoice: (mainCharacterVoice: string) => { set({ mainCharacterVoice }) },
103
  setStoryPromptDraft: (storyPromptDraft: string) => { set({ storyPromptDraft }) },
104
  setStoryPrompt: (storyPrompt: string) => { set({ storyPrompt }) },
105
+ setStatus: (status: GlobalStatus) => {
106
+ set({ status })
107
+ get().syncStatusAndStageState()
108
+ },
109
  setParseGenerationStatus: (parseGenerationStatus: TaskStatus) => {
110
  set({ parseGenerationStatus })
111
  get().syncStatusAndStageState()
 
144
  videoGenerationStatus === "generating" ? "video_export" :
145
  "idle"
146
 
147
+
148
  // I think we still need the global status
149
  // that is because we can have parallelism
150
  const isBusy = stage !== "idle" || status === "generating"
151
+
 
 
 
 
 
152
  set({ isBusy, stage })
153
  },
154
  setCurrentClap: (currentClap?: ClapProject) => { set({ currentClap }) },
155
+ setCurrentVideo: async (currentVideo: string): Promise<void> => {
 
156
  set({
157
  currentVideo,
 
 
158
  })
159
+ const { currentVideoOrientation } = get()
160
+ let orientation: ClapMediaOrientation = currentVideoOrientation
161
+ try {
162
+ let newOrientation = await getVideoOrientation(currentVideo)
163
+ if (newOrientation) {
164
+ orientation = newOrientation
165
+ }
166
+ } catch (err) {
167
+ console.error(`failed to get the media orientation`)
168
+ }
169
+ set({
170
+ currentVideoOrientation: orientation
171
+ })
172
+
173
+ // get().syncStatusAndStageState()
174
  },
175
  setProgress: (progress: number) => { set({ progress }) },
176
  setError: (error: string) => { set({ error }) },
 
179
 
180
  if (!currentClap) { throw new Error(`cannot save a clap.. if there is no clap`) }
181
 
182
+ currentClap.meta.description = storyPrompt
183
+
184
  const currentClapBlob: Blob = await serializeClap(currentClap)
185
 
186
  // Create an object URL for the compressed clap blob