jbilcke-hf HF staff commited on
Commit
9164321
1 Parent(s): 48c7837
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.17",
12
- "@aitube/client": "0.0.25",
13
  "@huggingface/hub": "^0.15.0",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
@@ -70,26 +70,26 @@
70
  }
71
  },
72
  "node_modules/@aitube/clap": {
73
- "version": "0.0.17",
74
- "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.17.tgz",
75
- "integrity": "sha512-g/jjePX2Hz9Eo4hk+rxd6FRwoy2Hx9sadGLgN9yWSm7dGHhr9B/DVv8eLjFabu7jgW0zvZZ1FHvlsNAby4Pr/Q==",
76
  "dependencies": {
77
  "pure-uuid": "^1.8.1",
78
- "yaml": "^2.4.1"
79
  },
80
  "peerDependencies": {
81
  "typescript": "^5.4.5"
82
  }
83
  },
84
  "node_modules/@aitube/client": {
85
- "version": "0.0.25",
86
- "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.25.tgz",
87
- "integrity": "sha512-gX5eJOKiigVY3xK1NcsStruUuWMQbj4o4XHTceZhUyKCgHDldC0Y15mvIWVabCtEW5FFebdmhH0EFeg+PBMCsg==",
88
  "dependencies": {
89
  "query-string": "^9.0.0"
90
  },
91
  "peerDependencies": {
92
- "@aitube/clap": "0.0.17"
93
  }
94
  },
95
  "node_modules/@alloc/quick-lru": {
@@ -135,9 +135,9 @@
135
  }
136
  },
137
  "node_modules/@emnapi/runtime": {
138
- "version": "1.1.1",
139
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz",
140
- "integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==",
141
  "optional": true,
142
  "dependencies": {
143
  "tslib": "^2.4.0"
@@ -196,9 +196,9 @@
196
  }
197
  },
198
  "node_modules/@floating-ui/core": {
199
- "version": "1.6.1",
200
- "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.1.tgz",
201
- "integrity": "sha512-42UH54oPZHPdRHdw6BgoBD6cg/eVTmVrFcgeRDM3jbO7uxSoipVcmcIGFcA5jmOHO5apcyvBhkSKES3fQJnu7A==",
202
  "dependencies": {
203
  "@floating-ui/utils": "^0.2.0"
204
  }
@@ -213,9 +213,9 @@
213
  }
214
  },
215
  "node_modules/@floating-ui/react-dom": {
216
- "version": "2.0.9",
217
- "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.9.tgz",
218
- "integrity": "sha512-q0umO0+LQK4+p6aGyvzASqKbKOJcAHJ7ycE9CuUvfx3s9zTHWmGJTPOIlM/hmSBfUfg/XfY5YhLBLR/LHwShQQ==",
219
  "dependencies": {
220
  "@floating-ui/dom": "^1.0.0"
221
  },
@@ -230,16 +230,22 @@
230
  "integrity": "sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw=="
231
  },
232
  "node_modules/@huggingface/hub": {
233
- "version": "0.15.0",
234
- "resolved": "https://registry.npmjs.org/@huggingface/hub/-/hub-0.15.0.tgz",
235
- "integrity": "sha512-8jV+DjC68FXTNFCJeaKIa2e13rvfE4MBcJSlVtNOoA1cflLNmVBbta7iwKnMbUgdjW6DObztBLFneUcvZ3SHkQ==",
236
  "dependencies": {
 
237
  "hash-wasm": "^4.9.0"
238
  },
239
  "engines": {
240
  "node": ">=18"
241
  }
242
  },
 
 
 
 
 
243
  "node_modules/@humanwhocodes/config-array": {
244
  "version": "0.11.14",
245
  "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
@@ -271,9 +277,9 @@
271
  "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA=="
272
  },
273
  "node_modules/@img/sharp-darwin-arm64": {
274
- "version": "0.33.3",
275
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.3.tgz",
276
- "integrity": "sha512-FaNiGX1MrOuJ3hxuNzWgsT/mg5OHG/Izh59WW2mk1UwYHUwtfbhk5QNKYZgxf0pLOhx9ctGiGa2OykD71vOnSw==",
277
  "cpu": [
278
  "arm64"
279
  ],
@@ -296,9 +302,9 @@
296
  }
297
  },
298
  "node_modules/@img/sharp-darwin-x64": {
299
- "version": "0.33.3",
300
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.3.tgz",
301
- "integrity": "sha512-2QeSl7QDK9ru//YBT4sQkoq7L0EAJZA3rtV+v9p8xTKl4U1bUqTIaCnoC7Ctx2kCjQgwFXDasOtPTCT8eCTXvw==",
302
  "cpu": [
303
  "x64"
304
  ],
@@ -489,9 +495,9 @@
489
  }
490
  },
491
  "node_modules/@img/sharp-linux-arm": {
492
- "version": "0.33.3",
493
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.3.tgz",
494
- "integrity": "sha512-Q7Ee3fFSC9P7vUSqVEF0zccJsZ8GiiCJYGWDdhEjdlOeS9/jdkyJ6sUSPj+bL8VuOYFSbofrW0t/86ceVhx32w==",
495
  "cpu": [
496
  "arm"
497
  ],
@@ -514,9 +520,9 @@
514
  }
515
  },
516
  "node_modules/@img/sharp-linux-arm64": {
517
- "version": "0.33.3",
518
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.3.tgz",
519
- "integrity": "sha512-Zf+sF1jHZJKA6Gor9hoYG2ljr4wo9cY4twaxgFDvlG0Xz9V7sinsPp8pFd1XtlhTzYo0IhDbl3rK7P6MzHpnYA==",
520
  "cpu": [
521
  "arm64"
522
  ],
@@ -539,9 +545,9 @@
539
  }
540
  },
541
  "node_modules/@img/sharp-linux-s390x": {
542
- "version": "0.33.3",
543
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.3.tgz",
544
- "integrity": "sha512-vFk441DKRFepjhTEH20oBlFrHcLjPfI8B0pMIxGm3+yilKyYeHEVvrZhYFdqIseSclIqbQ3SnZMwEMWonY5XFA==",
545
  "cpu": [
546
  "s390x"
547
  ],
@@ -550,7 +556,7 @@
550
  "linux"
551
  ],
552
  "engines": {
553
- "glibc": ">=2.28",
554
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
555
  "npm": ">=9.6.5",
556
  "pnpm": ">=7.1.0",
@@ -564,9 +570,9 @@
564
  }
565
  },
566
  "node_modules/@img/sharp-linux-x64": {
567
- "version": "0.33.3",
568
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.3.tgz",
569
- "integrity": "sha512-Q4I++herIJxJi+qmbySd072oDPRkCg/SClLEIDh5IL9h1zjhqjv82H0Seupd+q2m0yOfD+/fJnjSoDFtKiHu2g==",
570
  "cpu": [
571
  "x64"
572
  ],
@@ -589,9 +595,9 @@
589
  }
590
  },
591
  "node_modules/@img/sharp-linuxmusl-arm64": {
592
- "version": "0.33.3",
593
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.3.tgz",
594
- "integrity": "sha512-qnDccehRDXadhM9PM5hLvcPRYqyFCBN31kq+ErBSZtZlsAc1U4Z85xf/RXv1qolkdu+ibw64fUDaRdktxTNP9A==",
595
  "cpu": [
596
  "arm64"
597
  ],
@@ -614,9 +620,9 @@
614
  }
615
  },
616
  "node_modules/@img/sharp-linuxmusl-x64": {
617
- "version": "0.33.3",
618
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.3.tgz",
619
- "integrity": "sha512-Jhchim8kHWIU/GZ+9poHMWRcefeaxFIs9EBqf9KtcC14Ojk6qua7ghKiPs0sbeLbLj/2IGBtDcxHyjCdYWkk2w==",
620
  "cpu": [
621
  "x64"
622
  ],
@@ -639,15 +645,15 @@
639
  }
640
  },
641
  "node_modules/@img/sharp-wasm32": {
642
- "version": "0.33.3",
643
- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.3.tgz",
644
- "integrity": "sha512-68zivsdJ0koE96stdUfM+gmyaK/NcoSZK5dV5CAjES0FUXS9lchYt8LAB5rTbM7nlWtxaU/2GON0HVN6/ZYJAQ==",
645
  "cpu": [
646
  "wasm32"
647
  ],
648
  "optional": true,
649
  "dependencies": {
650
- "@emnapi/runtime": "^1.1.0"
651
  },
652
  "engines": {
653
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
@@ -660,9 +666,9 @@
660
  }
661
  },
662
  "node_modules/@img/sharp-win32-ia32": {
663
- "version": "0.33.3",
664
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.3.tgz",
665
- "integrity": "sha512-CyimAduT2whQD8ER4Ux7exKrtfoaUiVr7HG0zZvO0XTFn2idUWljjxv58GxNTkFb8/J9Ub9AqITGkJD6ZginxQ==",
666
  "cpu": [
667
  "ia32"
668
  ],
@@ -681,9 +687,9 @@
681
  }
682
  },
683
  "node_modules/@img/sharp-win32-x64": {
684
- "version": "0.33.3",
685
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.3.tgz",
686
- "integrity": "sha512-viT4fUIDKnli3IfOephGnolMzhz5VaTvDRkYqtZxOMIoMQ4MrAziO7pT1nVnOt2FAm7qW5aa+CCc13aEY6Le0g==",
687
  "cpu": [
688
  "x64"
689
  ],
@@ -2424,9 +2430,9 @@
2424
  }
2425
  },
2426
  "node_modules/@rushstack/eslint-patch": {
2427
- "version": "1.10.2",
2428
- "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.2.tgz",
2429
- "integrity": "sha512-hw437iINopmQuxWPSUEvqE56NCPsiU8N4AYtfHmJFckclktzK9YQJieD3XkDCDH4OjL+C7zgPUh73R/nrcHrqw=="
2430
  },
2431
  "node_modules/@swc/counter": {
2432
  "version": "0.1.3",
@@ -3171,9 +3177,9 @@
3171
  }
3172
  },
3173
  "node_modules/caniuse-lite": {
3174
- "version": "1.0.30001617",
3175
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001617.tgz",
3176
- "integrity": "sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==",
3177
  "funding": [
3178
  {
3179
  "type": "opencollective",
@@ -3795,9 +3801,9 @@
3795
  "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
3796
  },
3797
  "node_modules/electron-to-chromium": {
3798
- "version": "1.4.762",
3799
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.762.tgz",
3800
- "integrity": "sha512-rrFvGweLxPwwSwJOjIopy3Vr+J3cIPtZzuc74bmlvmBIgQO3VYJDvVrlj94iKZ3ukXUH64Ex31hSfRTLqvjYJQ=="
3801
  },
3802
  "node_modules/emoji-regex": {
3803
  "version": "9.2.2",
@@ -6072,15 +6078,15 @@
6072
  "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
6073
  },
6074
  "node_modules/path-scurry": {
6075
- "version": "1.11.0",
6076
- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.0.tgz",
6077
- "integrity": "sha512-LNHTaVkzaYaLGlO+0u3rQTz7QrHTFOuKyba9JMTQutkmtNew8dw8wOD7mTU/5fCPZzCWpfW0XnQKzY61P0aTaw==",
6078
  "dependencies": {
6079
  "lru-cache": "^10.2.0",
6080
  "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
6081
  },
6082
  "engines": {
6083
- "node": ">=16 || 14 >=14.17"
6084
  },
6085
  "funding": {
6086
  "url": "https://github.com/sponsors/isaacs"
@@ -6113,9 +6119,9 @@
6113
  "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."
6114
  },
6115
  "node_modules/picocolors": {
6116
- "version": "1.0.0",
6117
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
6118
- "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
6119
  },
6120
  "node_modules/picomatch": {
6121
  "version": "2.3.1",
@@ -6840,9 +6846,9 @@
6840
  }
6841
  },
6842
  "node_modules/sharp": {
6843
- "version": "0.33.3",
6844
- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.3.tgz",
6845
- "integrity": "sha512-vHUeXJU1UvlO/BNwTpT0x/r53WkLUVxrmb5JTgW92fdFCFk0ispLMAeu/jPO2vjkXM1fYUi3K7/qcLF47pwM1A==",
6846
  "hasInstallScript": true,
6847
  "dependencies": {
6848
  "color": "^4.2.3",
@@ -6857,8 +6863,8 @@
6857
  "url": "https://opencollective.com/libvips"
6858
  },
6859
  "optionalDependencies": {
6860
- "@img/sharp-darwin-arm64": "0.33.3",
6861
- "@img/sharp-darwin-x64": "0.33.3",
6862
  "@img/sharp-libvips-darwin-arm64": "1.0.2",
6863
  "@img/sharp-libvips-darwin-x64": "1.0.2",
6864
  "@img/sharp-libvips-linux-arm": "1.0.2",
@@ -6867,15 +6873,15 @@
6867
  "@img/sharp-libvips-linux-x64": "1.0.2",
6868
  "@img/sharp-libvips-linuxmusl-arm64": "1.0.2",
6869
  "@img/sharp-libvips-linuxmusl-x64": "1.0.2",
6870
- "@img/sharp-linux-arm": "0.33.3",
6871
- "@img/sharp-linux-arm64": "0.33.3",
6872
- "@img/sharp-linux-s390x": "0.33.3",
6873
- "@img/sharp-linux-x64": "0.33.3",
6874
- "@img/sharp-linuxmusl-arm64": "0.33.3",
6875
- "@img/sharp-linuxmusl-x64": "0.33.3",
6876
- "@img/sharp-wasm32": "0.33.3",
6877
- "@img/sharp-win32-ia32": "0.33.3",
6878
- "@img/sharp-win32-x64": "0.33.3"
6879
  }
6880
  },
6881
  "node_modules/shebang-command": {
@@ -7571,9 +7577,9 @@
7571
  "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
7572
  },
7573
  "node_modules/update-browserslist-db": {
7574
- "version": "1.0.15",
7575
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz",
7576
- "integrity": "sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA==",
7577
  "funding": [
7578
  {
7579
  "type": "opencollective",
@@ -7590,7 +7596,7 @@
7590
  ],
7591
  "dependencies": {
7592
  "escalade": "^3.1.2",
7593
- "picocolors": "^1.0.0"
7594
  },
7595
  "bin": {
7596
  "update-browserslist-db": "cli.js"
 
8
  "name": "@jbilcke-hf/ai-stories-factory",
9
  "version": "0.0.0",
10
  "dependencies": {
11
+ "@aitube/clap": "0.0.19",
12
+ "@aitube/client": "0.0.28",
13
  "@huggingface/hub": "^0.15.0",
14
  "@radix-ui/react-accordion": "^1.1.2",
15
  "@radix-ui/react-avatar": "^1.0.4",
 
70
  }
71
  },
72
  "node_modules/@aitube/clap": {
73
+ "version": "0.0.19",
74
+ "resolved": "https://registry.npmjs.org/@aitube/clap/-/clap-0.0.19.tgz",
75
+ "integrity": "sha512-2Xe9EDY06a09Pp5/pjbm8IQnFCBD/y48WzQqKo6b/1i7lBxzxJ9g5J8b0TM3Jd3JdEApvJ+62tnT7rFrGGLMRQ==",
76
  "dependencies": {
77
  "pure-uuid": "^1.8.1",
78
+ "yaml": "^2.4.2"
79
  },
80
  "peerDependencies": {
81
  "typescript": "^5.4.5"
82
  }
83
  },
84
  "node_modules/@aitube/client": {
85
+ "version": "0.0.28",
86
+ "resolved": "https://registry.npmjs.org/@aitube/client/-/client-0.0.28.tgz",
87
+ "integrity": "sha512-yFejJ9j4VcYIhOO/wUhbzJ8qU66KuSOXnPLWio4w4E7c0VwtkD46dae4i6Ic7l4nyVe0avjRIKZlzAlTphFSvA==",
88
  "dependencies": {
89
  "query-string": "^9.0.0"
90
  },
91
  "peerDependencies": {
92
+ "@aitube/clap": "0.0.19"
93
  }
94
  },
95
  "node_modules/@alloc/quick-lru": {
 
135
  }
136
  },
137
  "node_modules/@emnapi/runtime": {
138
+ "version": "1.2.0",
139
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.2.0.tgz",
140
+ "integrity": "sha512-bV21/9LQmcQeCPEg3BDFtvwL6cwiTMksYNWQQ4KOxCZikEGalWtenoZ0wCiukJINlGCIi2KXx01g4FoH/LxpzQ==",
141
  "optional": true,
142
  "dependencies": {
143
  "tslib": "^2.4.0"
 
196
  }
197
  },
198
  "node_modules/@floating-ui/core": {
199
+ "version": "1.6.2",
200
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.2.tgz",
201
+ "integrity": "sha512-+2XpQV9LLZeanU4ZevzRnGFg2neDeKHgFLjP6YLW+tly0IvrhqT4u8enLGjLH3qeh85g19xY5rsAusfwTdn5lg==",
202
  "dependencies": {
203
  "@floating-ui/utils": "^0.2.0"
204
  }
 
213
  }
214
  },
215
  "node_modules/@floating-ui/react-dom": {
216
+ "version": "2.1.0",
217
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.0.tgz",
218
+ "integrity": "sha512-lNzj5EQmEKn5FFKc04+zasr09h/uX8RtJRNj5gUXsSQIXHVWTVh+hVAg1vOMCexkX8EgvemMvIFpQfkosnVNyA==",
219
  "dependencies": {
220
  "@floating-ui/dom": "^1.0.0"
221
  },
 
230
  "integrity": "sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw=="
231
  },
232
  "node_modules/@huggingface/hub": {
233
+ "version": "0.15.1",
234
+ "resolved": "https://registry.npmjs.org/@huggingface/hub/-/hub-0.15.1.tgz",
235
+ "integrity": "sha512-uHb4aFkJDoGfLeRHfFTjkI36Z8IV6Z1c+KzhMDqUSC56opyr7Mn1Nsx7Rri/C7KDwROhQfBp/fOOqqjTzn6Cgg==",
236
  "dependencies": {
237
+ "@huggingface/tasks": "^0.10.6",
238
  "hash-wasm": "^4.9.0"
239
  },
240
  "engines": {
241
  "node": ">=18"
242
  }
243
  },
244
+ "node_modules/@huggingface/tasks": {
245
+ "version": "0.10.6",
246
+ "resolved": "https://registry.npmjs.org/@huggingface/tasks/-/tasks-0.10.6.tgz",
247
+ "integrity": "sha512-aGqvPsZZ8JLkAs7IChsEZil/aNLoMsqDryDFqJV7N5u//EaHzHAU6ORwVxEJIWJ9MIqJauJ9f7LYNtKC5Axh3w=="
248
+ },
249
  "node_modules/@humanwhocodes/config-array": {
250
  "version": "0.11.14",
251
  "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
 
277
  "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA=="
278
  },
279
  "node_modules/@img/sharp-darwin-arm64": {
280
+ "version": "0.33.4",
281
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.4.tgz",
282
+ "integrity": "sha512-p0suNqXufJs9t3RqLBO6vvrgr5OhgbWp76s5gTRvdmxmuv9E1rcaqGUsl3l4mKVmXPkTkTErXediAui4x+8PSA==",
283
  "cpu": [
284
  "arm64"
285
  ],
 
302
  }
303
  },
304
  "node_modules/@img/sharp-darwin-x64": {
305
+ "version": "0.33.4",
306
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.4.tgz",
307
+ "integrity": "sha512-0l7yRObwtTi82Z6ebVI2PnHT8EB2NxBgpK2MiKJZJ7cz32R4lxd001ecMhzzsZig3Yv9oclvqqdV93jo9hy+Dw==",
308
  "cpu": [
309
  "x64"
310
  ],
 
495
  }
496
  },
497
  "node_modules/@img/sharp-linux-arm": {
498
+ "version": "0.33.4",
499
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.4.tgz",
500
+ "integrity": "sha512-RUgBD1c0+gCYZGCCe6mMdTiOFS0Zc/XrN0fYd6hISIKcDUbAW5NtSQW9g/powkrXYm6Vzwd6y+fqmExDuCdHNQ==",
501
  "cpu": [
502
  "arm"
503
  ],
 
520
  }
521
  },
522
  "node_modules/@img/sharp-linux-arm64": {
523
+ "version": "0.33.4",
524
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.4.tgz",
525
+ "integrity": "sha512-2800clwVg1ZQtxwSoTlHvtm9ObgAax7V6MTAB/hDT945Tfyy3hVkmiHpeLPCKYqYR1Gcmv1uDZ3a4OFwkdBL7Q==",
526
  "cpu": [
527
  "arm64"
528
  ],
 
545
  }
546
  },
547
  "node_modules/@img/sharp-linux-s390x": {
548
+ "version": "0.33.4",
549
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.4.tgz",
550
+ "integrity": "sha512-h3RAL3siQoyzSoH36tUeS0PDmb5wINKGYzcLB5C6DIiAn2F3udeFAum+gj8IbA/82+8RGCTn7XW8WTFnqag4tQ==",
551
  "cpu": [
552
  "s390x"
553
  ],
 
556
  "linux"
557
  ],
558
  "engines": {
559
+ "glibc": ">=2.31",
560
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
561
  "npm": ">=9.6.5",
562
  "pnpm": ">=7.1.0",
 
570
  }
571
  },
572
  "node_modules/@img/sharp-linux-x64": {
573
+ "version": "0.33.4",
574
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.4.tgz",
575
+ "integrity": "sha512-GoR++s0XW9DGVi8SUGQ/U4AeIzLdNjHka6jidVwapQ/JebGVQIpi52OdyxCNVRE++n1FCLzjDovJNozif7w/Aw==",
576
  "cpu": [
577
  "x64"
578
  ],
 
595
  }
596
  },
597
  "node_modules/@img/sharp-linuxmusl-arm64": {
598
+ "version": "0.33.4",
599
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.4.tgz",
600
+ "integrity": "sha512-nhr1yC3BlVrKDTl6cO12gTpXMl4ITBUZieehFvMntlCXFzH2bvKG76tBL2Y/OqhupZt81pR7R+Q5YhJxW0rGgQ==",
601
  "cpu": [
602
  "arm64"
603
  ],
 
620
  }
621
  },
622
  "node_modules/@img/sharp-linuxmusl-x64": {
623
+ "version": "0.33.4",
624
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.4.tgz",
625
+ "integrity": "sha512-uCPTku0zwqDmZEOi4ILyGdmW76tH7dm8kKlOIV1XC5cLyJ71ENAAqarOHQh0RLfpIpbV5KOpXzdU6XkJtS0daw==",
626
  "cpu": [
627
  "x64"
628
  ],
 
645
  }
646
  },
647
  "node_modules/@img/sharp-wasm32": {
648
+ "version": "0.33.4",
649
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.4.tgz",
650
+ "integrity": "sha512-Bmmauh4sXUsUqkleQahpdNXKvo+wa1V9KhT2pDA4VJGKwnKMJXiSTGphn0gnJrlooda0QxCtXc6RX1XAU6hMnQ==",
651
  "cpu": [
652
  "wasm32"
653
  ],
654
  "optional": true,
655
  "dependencies": {
656
+ "@emnapi/runtime": "^1.1.1"
657
  },
658
  "engines": {
659
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0",
 
666
  }
667
  },
668
  "node_modules/@img/sharp-win32-ia32": {
669
+ "version": "0.33.4",
670
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.4.tgz",
671
+ "integrity": "sha512-99SJ91XzUhYHbx7uhK3+9Lf7+LjwMGQZMDlO/E/YVJ7Nc3lyDFZPGhjwiYdctoH2BOzW9+TnfqcaMKt0jHLdqw==",
672
  "cpu": [
673
  "ia32"
674
  ],
 
687
  }
688
  },
689
  "node_modules/@img/sharp-win32-x64": {
690
+ "version": "0.33.4",
691
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.4.tgz",
692
+ "integrity": "sha512-3QLocdTRVIrFNye5YocZl+KKpYKP+fksi1QhmOArgx7GyhIbQp/WrJRu176jm8IxromS7RIkzMiMINVdBtC8Aw==",
693
  "cpu": [
694
  "x64"
695
  ],
 
2430
  }
2431
  },
2432
  "node_modules/@rushstack/eslint-patch": {
2433
+ "version": "1.10.3",
2434
+ "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz",
2435
+ "integrity": "sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg=="
2436
  },
2437
  "node_modules/@swc/counter": {
2438
  "version": "0.1.3",
 
3177
  }
3178
  },
3179
  "node_modules/caniuse-lite": {
3180
+ "version": "1.0.30001620",
3181
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz",
3182
+ "integrity": "sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew==",
3183
  "funding": [
3184
  {
3185
  "type": "opencollective",
 
3801
  "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
3802
  },
3803
  "node_modules/electron-to-chromium": {
3804
+ "version": "1.4.774",
3805
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.774.tgz",
3806
+ "integrity": "sha512-132O1XCd7zcTkzS3FgkAzKmnBuNJjK8WjcTtNuoylj7MYbqw5eXehjQ5OK91g0zm7OTKIPeaAG4CPoRfD9M1Mg=="
3807
  },
3808
  "node_modules/emoji-regex": {
3809
  "version": "9.2.2",
 
6078
  "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
6079
  },
6080
  "node_modules/path-scurry": {
6081
+ "version": "1.11.1",
6082
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
6083
+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
6084
  "dependencies": {
6085
  "lru-cache": "^10.2.0",
6086
  "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
6087
  },
6088
  "engines": {
6089
+ "node": ">=16 || 14 >=14.18"
6090
  },
6091
  "funding": {
6092
  "url": "https://github.com/sponsors/isaacs"
 
6119
  "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."
6120
  },
6121
  "node_modules/picocolors": {
6122
+ "version": "1.0.1",
6123
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz",
6124
+ "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew=="
6125
  },
6126
  "node_modules/picomatch": {
6127
  "version": "2.3.1",
 
6846
  }
6847
  },
6848
  "node_modules/sharp": {
6849
+ "version": "0.33.4",
6850
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.4.tgz",
6851
+ "integrity": "sha512-7i/dt5kGl7qR4gwPRD2biwD2/SvBn3O04J77XKFgL2OnZtQw+AG9wnuS/csmu80nPRHLYE9E41fyEiG8nhH6/Q==",
6852
  "hasInstallScript": true,
6853
  "dependencies": {
6854
  "color": "^4.2.3",
 
6863
  "url": "https://opencollective.com/libvips"
6864
  },
6865
  "optionalDependencies": {
6866
+ "@img/sharp-darwin-arm64": "0.33.4",
6867
+ "@img/sharp-darwin-x64": "0.33.4",
6868
  "@img/sharp-libvips-darwin-arm64": "1.0.2",
6869
  "@img/sharp-libvips-darwin-x64": "1.0.2",
6870
  "@img/sharp-libvips-linux-arm": "1.0.2",
 
6873
  "@img/sharp-libvips-linux-x64": "1.0.2",
6874
  "@img/sharp-libvips-linuxmusl-arm64": "1.0.2",
6875
  "@img/sharp-libvips-linuxmusl-x64": "1.0.2",
6876
+ "@img/sharp-linux-arm": "0.33.4",
6877
+ "@img/sharp-linux-arm64": "0.33.4",
6878
+ "@img/sharp-linux-s390x": "0.33.4",
6879
+ "@img/sharp-linux-x64": "0.33.4",
6880
+ "@img/sharp-linuxmusl-arm64": "0.33.4",
6881
+ "@img/sharp-linuxmusl-x64": "0.33.4",
6882
+ "@img/sharp-wasm32": "0.33.4",
6883
+ "@img/sharp-win32-ia32": "0.33.4",
6884
+ "@img/sharp-win32-x64": "0.33.4"
6885
  }
6886
  },
6887
  "node_modules/shebang-command": {
 
7577
  "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
7578
  },
7579
  "node_modules/update-browserslist-db": {
7580
+ "version": "1.0.16",
7581
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz",
7582
+ "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==",
7583
  "funding": [
7584
  {
7585
  "type": "opencollective",
 
7596
  ],
7597
  "dependencies": {
7598
  "escalade": "^3.1.2",
7599
+ "picocolors": "^1.0.1"
7600
  },
7601
  "bin": {
7602
  "update-browserslist-db": "cli.js"
package.json CHANGED
@@ -9,8 +9,8 @@
9
  "lint": "next lint"
10
  },
11
  "dependencies": {
12
- "@aitube/clap": "0.0.17",
13
- "@aitube/client": "0.0.25",
14
  "@huggingface/hub": "^0.15.0",
15
  "@radix-ui/react-accordion": "^1.1.2",
16
  "@radix-ui/react-avatar": "^1.0.4",
 
9
  "lint": "next lint"
10
  },
11
  "dependencies": {
12
+ "@aitube/clap": "0.0.19",
13
+ "@aitube/client": "0.0.28",
14
  "@huggingface/hub": "^0.15.0",
15
  "@radix-ui/react-accordion": "^1.1.2",
16
  "@radix-ui/react-avatar": "^1.0.4",
src/app/server/aitube/editClapStory.ts ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use server"
2
+
3
+ import { ClapProject } from "@aitube/clap"
4
+ import { editClapStory as apiEditClapStory, ClapCompletionMode } from "@aitube/client"
5
+
6
+ import { getToken } from "./getToken"
7
+ import { Workaround } from "./types"
8
+
9
+ export async function editClapStory({
10
+ clap,
11
+ prompt,
12
+ startTimeInMs,
13
+ endTimeInMs,
14
+ turbo = false,
15
+ }: {
16
+ clap: ClapProject
17
+ prompt?: string
18
+ startTimeInMs?: number
19
+ endTimeInMs?: number
20
+ turbo?: boolean
21
+ }): Workaround<ClapProject> {
22
+ async function promise() {
23
+ return await apiEditClapStory({
24
+ clap,
25
+ prompt,
26
+ startTimeInMs,
27
+ endTimeInMs,
28
+ completionMode: ClapCompletionMode.MERGE,
29
+ turbo,
30
+ token: await getToken()
31
+ })
32
+ }
33
+
34
+ return {
35
+ promise: promise()
36
+ }
37
+ }
src/components/interface/character-button.tsx CHANGED
@@ -68,8 +68,7 @@ export function CharacterButton({
68
  </div></TooltipTrigger>
69
  <TooltipContent side="top">
70
  <p className="text-xs font-normal text-stone-100/90 text-center">
71
- Using this experimental<br/>feature may reduce<br/>
72
- the quality of images.
73
  </p>
74
  </TooltipContent>
75
  </Tooltip>
 
68
  </div></TooltipTrigger>
69
  <TooltipContent side="top">
70
  <p className="text-xs font-normal text-stone-100/90 text-center">
71
+ Add a picture of yourself<br/>to be part of the story!
 
72
  </p>
73
  </TooltipContent>
74
  </Tooltip>
src/components/interface/load-clap-button.tsx CHANGED
@@ -29,8 +29,8 @@ export function LoadClapButton() {
29
  storyPromptDraft ? "opacity-100" : "opacity-80"
30
  )}
31
  >
32
- <span className="hidden xl:inline mr-1">Load .clap</span>
33
- <span className="inline xl:hidden mr-1">Load .clap</span>
34
  </Button></TooltipTrigger>
35
  <TooltipContent side="top">
36
  <p className="text-xs font-normal text-stone-100/90 text-center">
 
29
  storyPromptDraft ? "opacity-100" : "opacity-80"
30
  )}
31
  >
32
+ <span className="hidden xl:inline mr-1">Load</span>
33
+ <span className="inline xl:hidden mr-1">Load</span>
34
  </Button></TooltipTrigger>
35
  <TooltipContent side="top">
36
  <p className="text-xs font-normal text-stone-100/90 text-center">
src/components/interface/save-clap-button.tsx CHANGED
@@ -30,8 +30,8 @@ export function SaveClapButton() {
30
  storyPromptDraft ? "opacity-100" : "opacity-80"
31
  )}
32
  >
33
- <span className="hidden xl:inline mr-1">Save .clap</span>
34
- <span className="inline xl:hidden mr-1">Save .clap</span>
35
  </Button></TooltipTrigger>
36
  <TooltipContent side="top">
37
  <p className="text-xs font-normal text-stone-100/90 text-center">
 
30
  storyPromptDraft ? "opacity-100" : "opacity-80"
31
  )}
32
  >
33
+ <span className="hidden xl:inline mr-1">Save</span>
34
+ <span className="inline xl:hidden mr-1">Save</span>
35
  </Button></TooltipTrigger>
36
  <TooltipContent side="top">
37
  <p className="text-xs font-normal text-stone-100/90 text-center">