vicecut 0.1.0__tar.gz

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.
Files changed (957) hide show
  1. vicecut-0.1.0/.dockerignore +40 -0
  2. vicecut-0.1.0/.editorconfig +21 -0
  3. vicecut-0.1.0/.env.example +15 -0
  4. vicecut-0.1.0/.gitattributes +7 -0
  5. vicecut-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +45 -0
  6. vicecut-0.1.0/.github/ISSUE_TEMPLATE/config.yml +1 -0
  7. vicecut-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
  8. vicecut-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +16 -0
  9. vicecut-0.1.0/.github/dependabot.yml +51 -0
  10. vicecut-0.1.0/.github/workflows/ci.yml +218 -0
  11. vicecut-0.1.0/.github/workflows/release.yml +130 -0
  12. vicecut-0.1.0/.github/workflows/visual-baselines.yml +41 -0
  13. vicecut-0.1.0/.gitignore +56 -0
  14. vicecut-0.1.0/.gitleaks.toml +14 -0
  15. vicecut-0.1.0/.pre-commit-config.yaml +11 -0
  16. vicecut-0.1.0/CHANGELOG.md +119 -0
  17. vicecut-0.1.0/CODE_OF_CONDUCT.md +109 -0
  18. vicecut-0.1.0/CONTRIBUTING.md +74 -0
  19. vicecut-0.1.0/DISCLAIMER.md +11 -0
  20. vicecut-0.1.0/Dockerfile +43 -0
  21. vicecut-0.1.0/LICENSE +21 -0
  22. vicecut-0.1.0/NOTICE.md +19 -0
  23. vicecut-0.1.0/PKG-INFO +323 -0
  24. vicecut-0.1.0/README.md +268 -0
  25. vicecut-0.1.0/README.vi.md +256 -0
  26. vicecut-0.1.0/SECURITY.md +32 -0
  27. vicecut-0.1.0/THIRD_PARTY_NOTICES.md +314 -0
  28. vicecut-0.1.0/assets/fonts/BeVietnamPro-Bold.ttf +0 -0
  29. vicecut-0.1.0/assets/fonts/BeVietnamPro-ExtraBold.ttf +0 -0
  30. vicecut-0.1.0/assets/fonts/OFL.txt +93 -0
  31. vicecut-0.1.0/docker-compose.yml +32 -0
  32. vicecut-0.1.0/docs/adr/0001-hook-writer.md +40 -0
  33. vicecut-0.1.0/docs/adr/0002-composition-root-factories.md +23 -0
  34. vicecut-0.1.0/docs/adr/0003-english-ui.md +25 -0
  35. vicecut-0.1.0/docs/adr/0004-settings-in-db.md +68 -0
  36. vicecut-0.1.0/docs/adr/0005-studio-authentication.md +40 -0
  37. vicecut-0.1.0/docs/adr/0006-multi-stage-job-progress.md +59 -0
  38. vicecut-0.1.0/docs/adr/0007-multi-signal-moment-sources.md +223 -0
  39. vicecut-0.1.0/docs/adr/0008-gta6-video-discovery.md +32 -0
  40. vicecut-0.1.0/docs/adr/0009-looking-at-the-picture.md +82 -0
  41. vicecut-0.1.0/docs/adr/0010-clips-for-fast-scrollers.md +61 -0
  42. vicecut-0.1.0/docs/adr/0011-past-videos-only.md +62 -0
  43. vicecut-0.1.0/docs/adr/0012-reading-the-speech.md +46 -0
  44. vicecut-0.1.0/docs/adr/0013-parallel-ai-work.md +55 -0
  45. vicecut-0.1.0/docs/adr/0014-radix-themes.md +55 -0
  46. vicecut-0.1.0/docs/architecture.md +114 -0
  47. vicecut-0.1.0/docs/brand/logo-readme.png +0 -0
  48. vicecut-0.1.0/docs/brand/logo-source.png +0 -0
  49. vicecut-0.1.0/docs/brand/logo.png +0 -0
  50. vicecut-0.1.0/docs/brand/social-preview.png +0 -0
  51. vicecut-0.1.0/docs/configuration.md +185 -0
  52. vicecut-0.1.0/docs/development.md +120 -0
  53. vicecut-0.1.0/docs/getting-started.md +98 -0
  54. vicecut-0.1.0/docs/images/clip-review-light.png +0 -0
  55. vicecut-0.1.0/docs/images/clip-review.png +0 -0
  56. vicecut-0.1.0/docs/images/clips-table.png +0 -0
  57. vicecut-0.1.0/docs/images/clips.png +0 -0
  58. vicecut-0.1.0/docs/images/dashboard-light.png +0 -0
  59. vicecut-0.1.0/docs/images/dashboard.png +0 -0
  60. vicecut-0.1.0/docs/images/discover.png +0 -0
  61. vicecut-0.1.0/docs/images/jobs.png +0 -0
  62. vicecut-0.1.0/docs/images/keyboard.gif +0 -0
  63. vicecut-0.1.0/docs/images/palette.png +0 -0
  64. vicecut-0.1.0/docs/images/phone.png +0 -0
  65. vicecut-0.1.0/docs/images/publishing.png +0 -0
  66. vicecut-0.1.0/docs/images/review.gif +0 -0
  67. vicecut-0.1.0/docs/images/scan.gif +0 -0
  68. vicecut-0.1.0/docs/images/settings.png +0 -0
  69. vicecut-0.1.0/docs/images/shortcuts.png +0 -0
  70. vicecut-0.1.0/docs/images/storage.png +0 -0
  71. vicecut-0.1.0/docs/images/wizard-models.png +0 -0
  72. vicecut-0.1.0/docs/images/wizard-system.png +0 -0
  73. vicecut-0.1.0/docs/troubleshooting.md +113 -0
  74. vicecut-0.1.0/node_modules/.vite/vitest/CACHEDIR.TAG +3 -0
  75. vicecut-0.1.0/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
  76. vicecut-0.1.0/node_modules/.vitest-cache/068aabfcbbb80ef64c3f0ccfc7449c8374ede95f +152 -0
  77. vicecut-0.1.0/node_modules/.vitest-cache/084087ae240b9e2f377beda49f6d16a0c1a30f61 +24 -0
  78. vicecut-0.1.0/node_modules/.vitest-cache/0de876d56a0d4087b51e57eb16cdc230f6cf0bae +47 -0
  79. vicecut-0.1.0/node_modules/.vitest-cache/132ac30381e5a3d2b98064726047c9bf6080ebb0 +15 -0
  80. vicecut-0.1.0/node_modules/.vitest-cache/15694a026d30461f9d1a70d82ab015fbc686d5ff +99 -0
  81. vicecut-0.1.0/node_modules/.vitest-cache/191e2feb5be076058c2066cdff79195bbd919a91 +65 -0
  82. vicecut-0.1.0/node_modules/.vitest-cache/1b09ac0780f56e333cb5b7cd3f10399ba705be87 +22 -0
  83. vicecut-0.1.0/node_modules/.vitest-cache/1db3d7084699a815fe8b618f06db2345ed56bcab +22 -0
  84. vicecut-0.1.0/node_modules/.vitest-cache/2d768713c8dd09943e883a2eb11a56ea2a526d99 +89 -0
  85. vicecut-0.1.0/node_modules/.vitest-cache/2d971343691cb069fe6f3291f504c6d385f60746 +101 -0
  86. vicecut-0.1.0/node_modules/.vitest-cache/32a1995b08fced8283f900d5971d1910b9eedd21 +86 -0
  87. vicecut-0.1.0/node_modules/.vitest-cache/38dd6c0327ef4825f3328297ff9a3bcd44aaa70f +97 -0
  88. vicecut-0.1.0/node_modules/.vitest-cache/3af6ded798bdb289eab82a87d25aae56ae301f7e +13 -0
  89. vicecut-0.1.0/node_modules/.vitest-cache/422d565a1483f155b2e9d12d27770666d8e55036 +82 -0
  90. vicecut-0.1.0/node_modules/.vitest-cache/441d3a7ed7ddc1ad2cfe17798f84fde0d5d932f6 +60 -0
  91. vicecut-0.1.0/node_modules/.vitest-cache/44679df88e73433b1bf43147ad3a39482f05a2a4 +313 -0
  92. vicecut-0.1.0/node_modules/.vitest-cache/45891b9b646f7c3c72b8311fd7395f2e9cdad788 +65 -0
  93. vicecut-0.1.0/node_modules/.vitest-cache/47716dd54322768e5dab0aa19ec81325da86308f +235 -0
  94. vicecut-0.1.0/node_modules/.vitest-cache/486354d1ab51038e145b38bd4578d84f13bd8d9e +122 -0
  95. vicecut-0.1.0/node_modules/.vitest-cache/488f062f70b5a2b3e0723bf7c85ef5a3af04b34b +17 -0
  96. vicecut-0.1.0/node_modules/.vitest-cache/49bc63d8e33dc8e055c365199fdb67f4707b9871 +301 -0
  97. vicecut-0.1.0/node_modules/.vitest-cache/5444b1be478be5cc8a510507e26097b0351f210e +40 -0
  98. vicecut-0.1.0/node_modules/.vitest-cache/61bffd0b451fa288fa1f6673d18aa681aec86915 +53 -0
  99. vicecut-0.1.0/node_modules/.vitest-cache/6296381bd589df238f0c665d192930f8237914c3 +84 -0
  100. vicecut-0.1.0/node_modules/.vitest-cache/6660d52e9a5419e086da50cea0e44f2228613d6f +118 -0
  101. vicecut-0.1.0/node_modules/.vitest-cache/6aef02d88e458a9ea7e0b304cd965850f543d9fd +119 -0
  102. vicecut-0.1.0/node_modules/.vitest-cache/6c4b4e3b41d63b57f99dbd314452776e61349651 +101 -0
  103. vicecut-0.1.0/node_modules/.vitest-cache/6cb8785516af0bca5cd5dc09b56a52e4ff324728 +102 -0
  104. vicecut-0.1.0/node_modules/.vitest-cache/72555c2ff6ad86a90c5d0609fab23f7c0d838c62 +118 -0
  105. vicecut-0.1.0/node_modules/.vitest-cache/730064342855dab1f552e9fcac7509d1d77f2790 +69 -0
  106. vicecut-0.1.0/node_modules/.vitest-cache/7c4077fbb3019b9735eede8a30e8b198bd02094b +112 -0
  107. vicecut-0.1.0/node_modules/.vitest-cache/85f16643d9b2a6c6f22ffc36690103a3dad6f757 +31 -0
  108. vicecut-0.1.0/node_modules/.vitest-cache/8b9d7e781dc88b4990fb1477f70877266eeef7ca +169 -0
  109. vicecut-0.1.0/node_modules/.vitest-cache/9ac5ee326c01e3afac56b495f92456c84dd0252b +53 -0
  110. vicecut-0.1.0/node_modules/.vitest-cache/9dc2a6bd73e7b977d15e821a1277dc7ee952fe4a +13 -0
  111. vicecut-0.1.0/node_modules/.vitest-cache/CACHEDIR.TAG +3 -0
  112. vicecut-0.1.0/node_modules/.vitest-cache/_manifest-ViceCut-46c9f0c5.json +88 -0
  113. vicecut-0.1.0/node_modules/.vitest-cache/_metadata.json +3 -0
  114. vicecut-0.1.0/node_modules/.vitest-cache/a27445cde57ca81c73d79d68d1ce2f9c57bd7ce0 +63 -0
  115. vicecut-0.1.0/node_modules/.vitest-cache/a3723afa4af1d2022630bc73a20a455951f4dd5b +81 -0
  116. vicecut-0.1.0/node_modules/.vitest-cache/a56350616cc836c1957d2f7759edcdf7e2d1ece6 +53 -0
  117. vicecut-0.1.0/node_modules/.vitest-cache/a6c63587560782b706d43ec91099cd7d3f28ee9a +166 -0
  118. vicecut-0.1.0/node_modules/.vitest-cache/a9379ae759ab7e7dc189cc26f0a8835c0f147f26 +143 -0
  119. vicecut-0.1.0/node_modules/.vitest-cache/aba9dedb2421d4abb62b1de6b71b9067c89643e3 +40 -0
  120. vicecut-0.1.0/node_modules/.vitest-cache/aff00860863f29987e8f6b338c03b91ff3dc3861 +164 -0
  121. vicecut-0.1.0/node_modules/.vitest-cache/b4dabcd54c31ff43a6556069133e4ef6cbd867cf +149 -0
  122. vicecut-0.1.0/node_modules/.vitest-cache/b70047490cecd7dff672a4005d9a11a5632555fa +94 -0
  123. vicecut-0.1.0/node_modules/.vitest-cache/bc73f1665c29610b340a4a7c5fe8e90e9b61d01e +104 -0
  124. vicecut-0.1.0/node_modules/.vitest-cache/c1bd614a67c49aac5ce0792aefd13a6ee3f5394c +31 -0
  125. vicecut-0.1.0/node_modules/.vitest-cache/c4ead27d96544f7dcc9ece41c74f5f537ad06b13 +34 -0
  126. vicecut-0.1.0/node_modules/.vitest-cache/c586b55976932b07aa09ac8413219cabc776d9b9 +38 -0
  127. vicecut-0.1.0/node_modules/.vitest-cache/c6d9ec3e40eb629222b6be7a99d6e8c1436d5c48 +16 -0
  128. vicecut-0.1.0/node_modules/.vitest-cache/c945db8099036a1c5c28ae55b464f5484b42f9e6 +25 -0
  129. vicecut-0.1.0/node_modules/.vitest-cache/ca2fec4ace802da3c4d86f11f58d784691227359 +11 -0
  130. vicecut-0.1.0/node_modules/.vitest-cache/cb7ce5614b1f9560902d76ab0b6a99ff397780c3 +98 -0
  131. vicecut-0.1.0/node_modules/.vitest-cache/d87de89f25f444906fb6c7a301ee4e08fffe373b +146 -0
  132. vicecut-0.1.0/node_modules/.vitest-cache/dc6e29ead9a8a02f2ac2a059a200f864ff022378 +278 -0
  133. vicecut-0.1.0/node_modules/.vitest-cache/dc6fda3f2673a0f263cc1390a546f5d92c3f97f9 +13 -0
  134. vicecut-0.1.0/node_modules/.vitest-cache/ddac07e9f9ef7f2c1618e305f5df9ecb400ecc00 +34 -0
  135. vicecut-0.1.0/node_modules/.vitest-cache/e25fa92c25d8b2d1d524ed99d75c4b40c9aec2aa +94 -0
  136. vicecut-0.1.0/node_modules/.vitest-cache/e9a4af8c9e49854240dcd9773f00439970b8a83c +19 -0
  137. vicecut-0.1.0/node_modules/.vitest-cache/ea3d8ead26c932b087e1385d7f429caa78899056 +52 -0
  138. vicecut-0.1.0/node_modules/.vitest-cache/f5286f59722be21cf41e0cee042726b8aa5f87fe +26 -0
  139. vicecut-0.1.0/node_modules/.vitest-cache/fa15e5177d3b4f22fcfa70584f2cbde1cb9b3898 +152 -0
  140. vicecut-0.1.0/node_modules/.vitest-cache/fce8f53ddcee92a99a5079baf2e6967d83272ce7 +21 -0
  141. vicecut-0.1.0/node_modules/.vitest-cache/fdd90308011fc724ee80654e3d0233cc717f0faa +29 -0
  142. vicecut-0.1.0/node_modules/.vitest-cache/fe570bbdbea3744b022e48c759fe4ad8838f2ef1 +20 -0
  143. vicecut-0.1.0/node_modules/.vitest-cache/ff58a57c22f2d104db839cf65e790c31b5854f2a +25 -0
  144. vicecut-0.1.0/pyproject.toml +122 -0
  145. vicecut-0.1.0/scripts/build_release.py +43 -0
  146. vicecut-0.1.0/scripts/changelog_notes.py +35 -0
  147. vicecut-0.1.0/scripts/docker_smoke.sh +47 -0
  148. vicecut-0.1.0/scripts/env.ps1 +29 -0
  149. vicecut-0.1.0/scripts/generate_config_docs.py +129 -0
  150. vicecut-0.1.0/scripts/make_brand_assets.py +132 -0
  151. vicecut-0.1.0/scripts/make_screenshots.py +324 -0
  152. vicecut-0.1.0/scripts/third_party_notices.py +238 -0
  153. vicecut-0.1.0/src/vicecut/__init__.py +3 -0
  154. vicecut-0.1.0/src/vicecut/__main__.py +3 -0
  155. vicecut-0.1.0/src/vicecut/adapters/__init__.py +1 -0
  156. vicecut-0.1.0/src/vicecut/adapters/auth/__init__.py +1 -0
  157. vicecut-0.1.0/src/vicecut/adapters/auth/credentials.py +84 -0
  158. vicecut-0.1.0/src/vicecut/adapters/deps.py +16 -0
  159. vicecut-0.1.0/src/vicecut/adapters/events/__init__.py +0 -0
  160. vicecut-0.1.0/src/vicecut/adapters/events/in_memory_bus.py +57 -0
  161. vicecut-0.1.0/src/vicecut/adapters/health/__init__.py +1 -0
  162. vicecut-0.1.0/src/vicecut/adapters/health/commands.py +37 -0
  163. vicecut-0.1.0/src/vicecut/adapters/health/hardware.py +78 -0
  164. vicecut-0.1.0/src/vicecut/adapters/health/services.py +196 -0
  165. vicecut-0.1.0/src/vicecut/adapters/health/system.py +213 -0
  166. vicecut-0.1.0/src/vicecut/adapters/http.py +152 -0
  167. vicecut-0.1.0/src/vicecut/adapters/llm/__init__.py +1 -0
  168. vicecut-0.1.0/src/vicecut/adapters/llm/chat.py +68 -0
  169. vicecut-0.1.0/src/vicecut/adapters/llm/hook_writer.py +249 -0
  170. vicecut-0.1.0/src/vicecut/adapters/llm/judge.py +154 -0
  171. vicecut-0.1.0/src/vicecut/adapters/llm/probe.py +60 -0
  172. vicecut-0.1.0/src/vicecut/adapters/llm/prompts/hook_generate.txt +62 -0
  173. vicecut-0.1.0/src/vicecut/adapters/llm/prompts/hook_select.txt +20 -0
  174. vicecut-0.1.0/src/vicecut/adapters/llm/pull.py +58 -0
  175. vicecut-0.1.0/src/vicecut/adapters/llm/scene.py +132 -0
  176. vicecut-0.1.0/src/vicecut/adapters/llm/speech_judge.py +80 -0
  177. vicecut-0.1.0/src/vicecut/adapters/llm/subtitle_editor.py +112 -0
  178. vicecut-0.1.0/src/vicecut/adapters/llm/trimmer.py +105 -0
  179. vicecut-0.1.0/src/vicecut/adapters/media/__init__.py +1 -0
  180. vicecut-0.1.0/src/vicecut/adapters/media/ass.py +271 -0
  181. vicecut-0.1.0/src/vicecut/adapters/media/cuda_libraries.py +52 -0
  182. vicecut-0.1.0/src/vicecut/adapters/media/cutter.py +37 -0
  183. vicecut-0.1.0/src/vicecut/adapters/media/encoders.py +93 -0
  184. vicecut-0.1.0/src/vicecut/adapters/media/face_model/LICENSE.yunet +21 -0
  185. vicecut-0.1.0/src/vicecut/adapters/media/face_model/face_detection_yunet_2023mar.onnx +0 -0
  186. vicecut-0.1.0/src/vicecut/adapters/media/faces.py +44 -0
  187. vicecut-0.1.0/src/vicecut/adapters/media/ffmpeg.py +170 -0
  188. vicecut-0.1.0/src/vicecut/adapters/media/ffmpeg_progress.py +52 -0
  189. vicecut-0.1.0/src/vicecut/adapters/media/frames.py +34 -0
  190. vicecut-0.1.0/src/vicecut/adapters/media/gpu_fault.py +50 -0
  191. vicecut-0.1.0/src/vicecut/adapters/media/layouts.py +150 -0
  192. vicecut-0.1.0/src/vicecut/adapters/media/loudness.py +74 -0
  193. vicecut-0.1.0/src/vicecut/adapters/media/models.py +39 -0
  194. vicecut-0.1.0/src/vicecut/adapters/media/preview.py +76 -0
  195. vicecut-0.1.0/src/vicecut/adapters/media/process.py +115 -0
  196. vicecut-0.1.0/src/vicecut/adapters/media/progress_tail.py +115 -0
  197. vicecut-0.1.0/src/vicecut/adapters/media/renderer.py +174 -0
  198. vicecut-0.1.0/src/vicecut/adapters/media/speech_skim.py +54 -0
  199. vicecut-0.1.0/src/vicecut/adapters/media/steady_face.py +58 -0
  200. vicecut-0.1.0/src/vicecut/adapters/media/thumbnails.py +32 -0
  201. vicecut-0.1.0/src/vicecut/adapters/media/transcriber.py +187 -0
  202. vicecut-0.1.0/src/vicecut/adapters/media/vi_words.py +61 -0
  203. vicecut-0.1.0/src/vicecut/adapters/media/vocals.py +103 -0
  204. vicecut-0.1.0/src/vicecut/adapters/media/webcam.py +85 -0
  205. vicecut-0.1.0/src/vicecut/adapters/media/webcam_overlay.py +77 -0
  206. vicecut-0.1.0/src/vicecut/adapters/notify.py +47 -0
  207. vicecut-0.1.0/src/vicecut/adapters/secrets/__init__.py +0 -0
  208. vicecut-0.1.0/src/vicecut/adapters/secrets/fernet_vault.py +120 -0
  209. vicecut-0.1.0/src/vicecut/adapters/storage/__init__.py +1 -0
  210. vicecut-0.1.0/src/vicecut/adapters/storage/data_folder.py +120 -0
  211. vicecut-0.1.0/src/vicecut/adapters/storage/hook_context.py +105 -0
  212. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/__init__.py +31 -0
  213. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/account_store.py +73 -0
  214. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/app_state_store.py +26 -0
  215. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/channel_store.py +131 -0
  216. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/connection.py +154 -0
  217. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/found_video_store.py +91 -0
  218. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0001_init.sql +21 -0
  219. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0002_production.sql +97 -0
  220. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0003_settings_history.sql +10 -0
  221. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0004_channel_note.sql +2 -0
  222. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0005_app_state.sql +6 -0
  223. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0006_job_progress.sql +10 -0
  224. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0007_found_videos.sql +16 -0
  225. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0008_scanned_videos.sql +8 -0
  226. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0009_found_video_followed.sql +2 -0
  227. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrator.py +170 -0
  228. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/scan_log.py +35 -0
  229. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/settings_store.py +100 -0
  230. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/store.py +230 -0
  231. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/studio_queries.py +195 -0
  232. vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/studio_store.py +151 -0
  233. vicecut-0.1.0/src/vicecut/adapters/system.py +16 -0
  234. vicecut-0.1.0/src/vicecut/adapters/tiktok/__init__.py +1 -0
  235. vicecut-0.1.0/src/vicecut/adapters/tiktok/browser.py +108 -0
  236. vicecut-0.1.0/src/vicecut/adapters/tiktok/clip_file.py +13 -0
  237. vicecut-0.1.0/src/vicecut/adapters/tiktok/dry_run.py +22 -0
  238. vicecut-0.1.0/src/vicecut/adapters/tiktok/oauth_callback.py +55 -0
  239. vicecut-0.1.0/src/vicecut/adapters/tiktok/official.py +262 -0
  240. vicecut-0.1.0/src/vicecut/adapters/tiktok/readiness.py +26 -0
  241. vicecut-0.1.0/src/vicecut/adapters/web/__init__.py +0 -0
  242. vicecut-0.1.0/src/vicecut/adapters/web/app.py +94 -0
  243. vicecut-0.1.0/src/vicecut/adapters/web/deps.py +64 -0
  244. vicecut-0.1.0/src/vicecut/adapters/web/errors.py +82 -0
  245. vicecut-0.1.0/src/vicecut/adapters/web/mappers.py +194 -0
  246. vicecut-0.1.0/src/vicecut/adapters/web/routers/__init__.py +0 -0
  247. vicecut-0.1.0/src/vicecut/adapters/web/routers/accounts.py +36 -0
  248. vicecut-0.1.0/src/vicecut/adapters/web/routers/auth.py +50 -0
  249. vicecut-0.1.0/src/vicecut/adapters/web/routers/channels.py +61 -0
  250. vicecut-0.1.0/src/vicecut/adapters/web/routers/clips.py +121 -0
  251. vicecut-0.1.0/src/vicecut/adapters/web/routers/health.py +77 -0
  252. vicecut-0.1.0/src/vicecut/adapters/web/routers/jobs.py +54 -0
  253. vicecut-0.1.0/src/vicecut/adapters/web/routers/live.py +19 -0
  254. vicecut-0.1.0/src/vicecut/adapters/web/routers/secrets.py +39 -0
  255. vicecut-0.1.0/src/vicecut/adapters/web/routers/settings.py +146 -0
  256. vicecut-0.1.0/src/vicecut/adapters/web/routers/storage.py +23 -0
  257. vicecut-0.1.0/src/vicecut/adapters/web/routers/studio.py +86 -0
  258. vicecut-0.1.0/src/vicecut/adapters/web/routers/videos.py +49 -0
  259. vicecut-0.1.0/src/vicecut/adapters/web/schemas.py +305 -0
  260. vicecut-0.1.0/src/vicecut/adapters/web/security.py +71 -0
  261. vicecut-0.1.0/src/vicecut/adapters/web/settings_mappers.py +105 -0
  262. vicecut-0.1.0/src/vicecut/adapters/web/settings_schemas.py +108 -0
  263. vicecut-0.1.0/src/vicecut/adapters/web/sse.py +53 -0
  264. vicecut-0.1.0/src/vicecut/adapters/web/storage_dtos.py +45 -0
  265. vicecut-0.1.0/src/vicecut/adapters/web/video_dtos.py +47 -0
  266. vicecut-0.1.0/src/vicecut/adapters/youtube/__init__.py +1 -0
  267. vicecut-0.1.0/src/vicecut/adapters/youtube/audio_track.py +39 -0
  268. vicecut-0.1.0/src/vicecut/adapters/youtube/challenge.py +49 -0
  269. vicecut-0.1.0/src/vicecut/adapters/youtube/chat.py +156 -0
  270. vicecut-0.1.0/src/vicecut/adapters/youtube/comments.py +48 -0
  271. vicecut-0.1.0/src/vicecut/adapters/youtube/cookies.py +45 -0
  272. vicecut-0.1.0/src/vicecut/adapters/youtube/dash_sections.py +156 -0
  273. vicecut-0.1.0/src/vicecut/adapters/youtube/footage.py +18 -0
  274. vicecut-0.1.0/src/vicecut/adapters/youtube/inspector.py +69 -0
  275. vicecut-0.1.0/src/vicecut/adapters/youtube/login.py +33 -0
  276. vicecut-0.1.0/src/vicecut/adapters/youtube/progress.py +63 -0
  277. vicecut-0.1.0/src/vicecut/adapters/youtube/recorder.py +209 -0
  278. vicecut-0.1.0/src/vicecut/adapters/youtube/recorder_footage.py +98 -0
  279. vicecut-0.1.0/src/vicecut/adapters/youtube/recorder_runs.py +199 -0
  280. vicecut-0.1.0/src/vicecut/adapters/youtube/video_search.py +105 -0
  281. vicecut-0.1.0/src/vicecut/adapters/youtube/vod_footage.py +244 -0
  282. vicecut-0.1.0/src/vicecut/adapters/youtube/ytdlp.py +204 -0
  283. vicecut-0.1.0/src/vicecut/application/__init__.py +1 -0
  284. vicecut-0.1.0/src/vicecut/application/detect.py +121 -0
  285. vicecut-0.1.0/src/vicecut/application/events.py +65 -0
  286. vicecut-0.1.0/src/vicecut/application/finish_clips.py +162 -0
  287. vicecut-0.1.0/src/vicecut/application/hooks.py +61 -0
  288. vicecut-0.1.0/src/vicecut/application/job_requests.py +119 -0
  289. vicecut-0.1.0/src/vicecut/application/judging.py +41 -0
  290. vicecut-0.1.0/src/vicecut/application/live.py +250 -0
  291. vicecut-0.1.0/src/vicecut/application/live_board.py +102 -0
  292. vicecut-0.1.0/src/vicecut/application/maintenance.py +153 -0
  293. vicecut-0.1.0/src/vicecut/application/moment_plan.py +39 -0
  294. vicecut-0.1.0/src/vicecut/application/moment_sources.py +209 -0
  295. vicecut-0.1.0/src/vicecut/application/parallel.py +92 -0
  296. vicecut-0.1.0/src/vicecut/application/plan_session.py +229 -0
  297. vicecut-0.1.0/src/vicecut/application/ports/__init__.py +299 -0
  298. vicecut-0.1.0/src/vicecut/application/ports/auth.py +25 -0
  299. vicecut-0.1.0/src/vicecut/application/ports/health.py +34 -0
  300. vicecut-0.1.0/src/vicecut/application/ports/moments.py +217 -0
  301. vicecut-0.1.0/src/vicecut/application/ports/screen.py +27 -0
  302. vicecut-0.1.0/src/vicecut/application/ports/settings.py +103 -0
  303. vicecut-0.1.0/src/vicecut/application/ports/setup.py +41 -0
  304. vicecut-0.1.0/src/vicecut/application/ports/studio.py +160 -0
  305. vicecut-0.1.0/src/vicecut/application/ports/videos.py +75 -0
  306. vicecut-0.1.0/src/vicecut/application/produce.py +226 -0
  307. vicecut-0.1.0/src/vicecut/application/produce_kept.py +102 -0
  308. vicecut-0.1.0/src/vicecut/application/produce_region.py +202 -0
  309. vicecut-0.1.0/src/vicecut/application/progress.py +140 -0
  310. vicecut-0.1.0/src/vicecut/application/progress_throttle.py +39 -0
  311. vicecut-0.1.0/src/vicecut/application/progress_tracker.py +238 -0
  312. vicecut-0.1.0/src/vicecut/application/publication_sync.py +75 -0
  313. vicecut-0.1.0/src/vicecut/application/publish.py +180 -0
  314. vicecut-0.1.0/src/vicecut/application/publish_router.py +54 -0
  315. vicecut-0.1.0/src/vicecut/application/queries/__init__.py +116 -0
  316. vicecut-0.1.0/src/vicecut/application/region_analysis.py +157 -0
  317. vicecut-0.1.0/src/vicecut/application/region_candidates.py +54 -0
  318. vicecut-0.1.0/src/vicecut/application/region_media.py +52 -0
  319. vicecut-0.1.0/src/vicecut/application/region_timing.py +30 -0
  320. vicecut-0.1.0/src/vicecut/application/region_trim.py +46 -0
  321. vicecut-0.1.0/src/vicecut/application/rehook.py +119 -0
  322. vicecut-0.1.0/src/vicecut/application/screen_checks.py +65 -0
  323. vicecut-0.1.0/src/vicecut/application/settings_runtime.py +65 -0
  324. vicecut-0.1.0/src/vicecut/application/speech_source.py +103 -0
  325. vicecut-0.1.0/src/vicecut/application/step_times.py +70 -0
  326. vicecut-0.1.0/src/vicecut/application/subtitles.py +41 -0
  327. vicecut-0.1.0/src/vicecut/application/use_cases/__init__.py +1 -0
  328. vicecut-0.1.0/src/vicecut/application/use_cases/accounts.py +64 -0
  329. vicecut-0.1.0/src/vicecut/application/use_cases/auth.py +144 -0
  330. vicecut-0.1.0/src/vicecut/application/use_cases/channels.py +89 -0
  331. vicecut-0.1.0/src/vicecut/application/use_cases/clips.py +102 -0
  332. vicecut-0.1.0/src/vicecut/application/use_cases/engine.py +128 -0
  333. vicecut-0.1.0/src/vicecut/application/use_cases/health.py +88 -0
  334. vicecut-0.1.0/src/vicecut/application/use_cases/job_handlers.py +140 -0
  335. vicecut-0.1.0/src/vicecut/application/use_cases/job_pools.py +27 -0
  336. vicecut-0.1.0/src/vicecut/application/use_cases/jobs.py +269 -0
  337. vicecut-0.1.0/src/vicecut/application/use_cases/publications.py +52 -0
  338. vicecut-0.1.0/src/vicecut/application/use_cases/secrets.py +83 -0
  339. vicecut-0.1.0/src/vicecut/application/use_cases/settings.py +138 -0
  340. vicecut-0.1.0/src/vicecut/application/use_cases/settings_tools.py +92 -0
  341. vicecut-0.1.0/src/vicecut/application/use_cases/setup.py +136 -0
  342. vicecut-0.1.0/src/vicecut/application/use_cases/suggestions.py +59 -0
  343. vicecut-0.1.0/src/vicecut/application/videos.py +213 -0
  344. vicecut-0.1.0/src/vicecut/application/vod.py +153 -0
  345. vicecut-0.1.0/src/vicecut/bootstrap/__init__.py +1 -0
  346. vicecut-0.1.0/src/vicecut/bootstrap/cli.py +226 -0
  347. vicecut-0.1.0/src/vicecut/bootstrap/config.example.toml +138 -0
  348. vicecut-0.1.0/src/vicecut/bootstrap/config.py +224 -0
  349. vicecut-0.1.0/src/vicecut/bootstrap/container.py +285 -0
  350. vicecut-0.1.0/src/vicecut/bootstrap/cuda_path.py +29 -0
  351. vicecut-0.1.0/src/vicecut/bootstrap/engine_runtime.py +95 -0
  352. vicecut-0.1.0/src/vicecut/bootstrap/factories/__init__.py +132 -0
  353. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo.py +249 -0
  354. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_jobs.py +190 -0
  355. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_media.py +197 -0
  356. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_samples.py +79 -0
  357. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_setup.py +156 -0
  358. vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_videos.py +72 -0
  359. vicecut-0.1.0/src/vicecut/bootstrap/factories/live_parts.py +100 -0
  360. vicecut-0.1.0/src/vicecut/bootstrap/factories/pipeline.py +252 -0
  361. vicecut-0.1.0/src/vicecut/bootstrap/factories/publishing.py +95 -0
  362. vicecut-0.1.0/src/vicecut/bootstrap/factories/real.py +232 -0
  363. vicecut-0.1.0/src/vicecut/bootstrap/factories/recording.py +72 -0
  364. vicecut-0.1.0/src/vicecut/bootstrap/factories/rendering.py +88 -0
  365. vicecut-0.1.0/src/vicecut/bootstrap/factories/secret_env.py +20 -0
  366. vicecut-0.1.0/src/vicecut/bootstrap/factories/setup_parts.py +112 -0
  367. vicecut-0.1.0/src/vicecut/bootstrap/factories/speech.py +73 -0
  368. vicecut-0.1.0/src/vicecut/bootstrap/factories/transcription.py +90 -0
  369. vicecut-0.1.0/src/vicecut/bootstrap/factories/watching.py +72 -0
  370. vicecut-0.1.0/src/vicecut/bootstrap/factories/writers.py +63 -0
  371. vicecut-0.1.0/src/vicecut/bootstrap/ffmpeg_path.py +32 -0
  372. vicecut-0.1.0/src/vicecut/bootstrap/hook_eval.py +153 -0
  373. vicecut-0.1.0/src/vicecut/bootstrap/init_config.py +28 -0
  374. vicecut-0.1.0/src/vicecut/bootstrap/model_policy.py +13 -0
  375. vicecut-0.1.0/src/vicecut/bootstrap/periodic.py +52 -0
  376. vicecut-0.1.0/src/vicecut/bootstrap/runtime.py +204 -0
  377. vicecut-0.1.0/src/vicecut/bootstrap/serve.py +97 -0
  378. vicecut-0.1.0/src/vicecut/bootstrap/settings_import.py +96 -0
  379. vicecut-0.1.0/src/vicecut/bootstrap/spa.py +14 -0
  380. vicecut-0.1.0/src/vicecut/bootstrap/studio.py +176 -0
  381. vicecut-0.1.0/src/vicecut/bootstrap/studio_publishing.py +36 -0
  382. vicecut-0.1.0/src/vicecut/bootstrap/studio_setup.py +35 -0
  383. vicecut-0.1.0/src/vicecut/bootstrap/studio_storage.py +30 -0
  384. vicecut-0.1.0/src/vicecut/bootstrap/studio_videos.py +103 -0
  385. vicecut-0.1.0/src/vicecut/domain/__init__.py +1 -0
  386. vicecut-0.1.0/src/vicecut/domain/accounts.py +51 -0
  387. vicecut-0.1.0/src/vicecut/domain/app_settings.py +154 -0
  388. vicecut-0.1.0/src/vicecut/domain/audience_evidence.py +58 -0
  389. vicecut-0.1.0/src/vicecut/domain/cadence.py +28 -0
  390. vicecut-0.1.0/src/vicecut/domain/channels.py +181 -0
  391. vicecut-0.1.0/src/vicecut/domain/clip_appeal.py +22 -0
  392. vicecut-0.1.0/src/vicecut/domain/clip_budget.py +20 -0
  393. vicecut-0.1.0/src/vicecut/domain/clip_publishing.py +47 -0
  394. vicecut-0.1.0/src/vicecut/domain/clip_trim.py +156 -0
  395. vicecut-0.1.0/src/vicecut/domain/clips.py +237 -0
  396. vicecut-0.1.0/src/vicecut/domain/comment_signals.py +88 -0
  397. vicecut-0.1.0/src/vicecut/domain/engine.py +49 -0
  398. vicecut-0.1.0/src/vicecut/domain/errors.py +66 -0
  399. vicecut-0.1.0/src/vicecut/domain/eta.py +60 -0
  400. vicecut-0.1.0/src/vicecut/domain/found_videos.py +119 -0
  401. vicecut-0.1.0/src/vicecut/domain/hardware.py +165 -0
  402. vicecut-0.1.0/src/vicecut/domain/health.py +89 -0
  403. vicecut-0.1.0/src/vicecut/domain/heatmap.py +50 -0
  404. vicecut-0.1.0/src/vicecut/domain/hook_heuristics.py +84 -0
  405. vicecut-0.1.0/src/vicecut/domain/hook_policy.py +174 -0
  406. vicecut-0.1.0/src/vicecut/domain/hooks.py +108 -0
  407. vicecut-0.1.0/src/vicecut/domain/jobs.py +125 -0
  408. vicecut-0.1.0/src/vicecut/domain/language.py +92 -0
  409. vicecut-0.1.0/src/vicecut/domain/loudness.py +90 -0
  410. vicecut-0.1.0/src/vicecut/domain/models.py +195 -0
  411. vicecut-0.1.0/src/vicecut/domain/passwords.py +46 -0
  412. vicecut-0.1.0/src/vicecut/domain/post_text.py +79 -0
  413. vicecut-0.1.0/src/vicecut/domain/profanity.py +80 -0
  414. vicecut-0.1.0/src/vicecut/domain/progress.py +224 -0
  415. vicecut-0.1.0/src/vicecut/domain/progress_codec.py +122 -0
  416. vicecut-0.1.0/src/vicecut/domain/region_merge.py +49 -0
  417. vicecut-0.1.0/src/vicecut/domain/region_model.py +75 -0
  418. vicecut-0.1.0/src/vicecut/domain/regions.py +172 -0
  419. vicecut-0.1.0/src/vicecut/domain/retry.py +85 -0
  420. vicecut-0.1.0/src/vicecut/domain/scanned_videos.py +36 -0
  421. vicecut-0.1.0/src/vicecut/domain/scoring.py +102 -0
  422. vicecut-0.1.0/src/vicecut/domain/screen.py +88 -0
  423. vicecut-0.1.0/src/vicecut/domain/settings_changes.py +75 -0
  424. vicecut-0.1.0/src/vicecut/domain/settings_codec.py +120 -0
  425. vicecut-0.1.0/src/vicecut/domain/settings_fields.py +315 -0
  426. vicecut-0.1.0/src/vicecut/domain/settings_schema.py +59 -0
  427. vicecut-0.1.0/src/vicecut/domain/settings_sections.py +251 -0
  428. vicecut-0.1.0/src/vicecut/domain/settings_validation.py +73 -0
  429. vicecut-0.1.0/src/vicecut/domain/settings_videos.py +47 -0
  430. vicecut-0.1.0/src/vicecut/domain/setup.py +39 -0
  431. vicecut-0.1.0/src/vicecut/domain/signals.py +68 -0
  432. vicecut-0.1.0/src/vicecut/domain/speech_moments.py +63 -0
  433. vicecut-0.1.0/src/vicecut/domain/spike.py +105 -0
  434. vicecut-0.1.0/src/vicecut/domain/storage_policy.py +139 -0
  435. vicecut-0.1.0/src/vicecut/domain/subtitles.py +140 -0
  436. vicecut-0.1.0/src/vicecut/domain/topics.py +34 -0
  437. vicecut-0.1.0/src/vicecut/domain/transcript_lines.py +64 -0
  438. vicecut-0.1.0/src/vicecut/domain/video.py +20 -0
  439. vicecut-0.1.0/src/vicecut/model_catalog.json +27 -0
  440. vicecut-0.1.0/tests/__init__.py +0 -0
  441. vicecut-0.1.0/tests/fakes.py +252 -0
  442. vicecut-0.1.0/tests/fixtures/heatmap_regular_100.json +506 -0
  443. vicecut-0.1.0/tests/fixtures/hooks/01_lo_mom_ban_dong_doi.json +64 -0
  444. vicecut-0.1.0/tests/fixtures/hooks/02_bug_xe_bay.json +60 -0
  445. vicecut-0.1.0/tests/fixtures/hooks/03_thua_ngo_ngan.json +55 -0
  446. vicecut-0.1.0/tests/fixtures/hooks/04_noi_chuyen_voi_chat.json +60 -0
  447. vicecut-0.1.0/tests/fixtures/hooks/05_transcript_rong.json +25 -0
  448. vicecut-0.1.0/tests/fixtures/hooks/06_sai_chinh_ta_nang.json +55 -0
  449. vicecut-0.1.0/tests/fixtures/hooks/07_prompt_injection.json +55 -0
  450. vicecut-0.1.0/tests/fixtures/hooks/08_jump_scare.json +55 -0
  451. vicecut-0.1.0/tests/fixtures/hooks/09_donate_nham.json +55 -0
  452. vicecut-0.1.0/tests/fixtures/hooks/10_tu_trao.json +55 -0
  453. vicecut-0.1.0/tests/fixtures/hooks/11_noi_mot_dang_lam_mot_neo.json +59 -0
  454. vicecut-0.1.0/tests/fixtures/hooks/12_lac_duong.json +59 -0
  455. vicecut-0.1.0/tests/integration/__init__.py +0 -0
  456. vicecut-0.1.0/tests/integration/test_ffmpeg_progress.py +69 -0
  457. vicecut-0.1.0/tests/integration/test_ffmpeg_render.py +176 -0
  458. vicecut-0.1.0/tests/integration/test_moment_media.py +74 -0
  459. vicecut-0.1.0/tests/unit/__init__.py +0 -0
  460. vicecut-0.1.0/tests/unit/domain/__init__.py +0 -0
  461. vicecut-0.1.0/tests/unit/domain/test_app_settings.py +245 -0
  462. vicecut-0.1.0/tests/unit/domain/test_audience_evidence.py +68 -0
  463. vicecut-0.1.0/tests/unit/domain/test_channels.py +218 -0
  464. vicecut-0.1.0/tests/unit/domain/test_clip_appeal.py +24 -0
  465. vicecut-0.1.0/tests/unit/domain/test_clip_budget.py +29 -0
  466. vicecut-0.1.0/tests/unit/domain/test_clip_publishing.py +45 -0
  467. vicecut-0.1.0/tests/unit/domain/test_clips.py +289 -0
  468. vicecut-0.1.0/tests/unit/domain/test_engine.py +59 -0
  469. vicecut-0.1.0/tests/unit/domain/test_found_videos.py +109 -0
  470. vicecut-0.1.0/tests/unit/domain/test_hardware.py +167 -0
  471. vicecut-0.1.0/tests/unit/domain/test_hook_policy_echo.py +31 -0
  472. vicecut-0.1.0/tests/unit/domain/test_hook_policy_style.py +55 -0
  473. vicecut-0.1.0/tests/unit/domain/test_jobs.py +118 -0
  474. vicecut-0.1.0/tests/unit/domain/test_moment_signals.py +349 -0
  475. vicecut-0.1.0/tests/unit/domain/test_moments_settings.py +79 -0
  476. vicecut-0.1.0/tests/unit/domain/test_progress.py +199 -0
  477. vicecut-0.1.0/tests/unit/domain/test_scanned_videos.py +42 -0
  478. vicecut-0.1.0/tests/unit/domain/test_screen.py +53 -0
  479. vicecut-0.1.0/tests/unit/domain/test_speech_moments.py +53 -0
  480. vicecut-0.1.0/tests/unit/domain/test_topics.py +15 -0
  481. vicecut-0.1.0/tests/unit/engine/__init__.py +0 -0
  482. vicecut-0.1.0/tests/unit/engine/recorder_fakes.py +86 -0
  483. vicecut-0.1.0/tests/unit/engine/test_live_backoff.py +162 -0
  484. vicecut-0.1.0/tests/unit/engine/test_maintenance.py +138 -0
  485. vicecut-0.1.0/tests/unit/engine/test_recorder.py +236 -0
  486. vicecut-0.1.0/tests/unit/engine/test_retry.py +99 -0
  487. vicecut-0.1.0/tests/unit/engine/test_ring_buffer.py +92 -0
  488. vicecut-0.1.0/tests/unit/engine/test_runtime.py +183 -0
  489. vicecut-0.1.0/tests/unit/engine/test_storage_policy.py +149 -0
  490. vicecut-0.1.0/tests/unit/health/__init__.py +0 -0
  491. vicecut-0.1.0/tests/unit/health/test_health_checks.py +351 -0
  492. vicecut-0.1.0/tests/unit/storage/__init__.py +0 -0
  493. vicecut-0.1.0/tests/unit/storage/test_channel_store.py +96 -0
  494. vicecut-0.1.0/tests/unit/storage/test_connection.py +135 -0
  495. vicecut-0.1.0/tests/unit/storage/test_data_folder.py +69 -0
  496. vicecut-0.1.0/tests/unit/storage/test_job_progress_store.py +53 -0
  497. vicecut-0.1.0/tests/unit/storage/test_migrations.py +288 -0
  498. vicecut-0.1.0/tests/unit/storage/test_secret_vault.py +53 -0
  499. vicecut-0.1.0/tests/unit/storage/test_source_quality.py +56 -0
  500. vicecut-0.1.0/tests/unit/studio/__init__.py +0 -0
  501. vicecut-0.1.0/tests/unit/studio/test_accounts.py +189 -0
  502. vicecut-0.1.0/tests/unit/studio/test_api.py +275 -0
  503. vicecut-0.1.0/tests/unit/studio/test_auth.py +309 -0
  504. vicecut-0.1.0/tests/unit/studio/test_channels.py +93 -0
  505. vicecut-0.1.0/tests/unit/studio/test_clip_copy.py +112 -0
  506. vicecut-0.1.0/tests/unit/studio/test_job_handlers.py +176 -0
  507. vicecut-0.1.0/tests/unit/studio/test_job_pools.py +40 -0
  508. vicecut-0.1.0/tests/unit/studio/test_live_and_discover.py +169 -0
  509. vicecut-0.1.0/tests/unit/studio/test_progress_runner.py +223 -0
  510. vicecut-0.1.0/tests/unit/studio/test_publishing.py +188 -0
  511. vicecut-0.1.0/tests/unit/studio/test_settings_api.py +158 -0
  512. vicecut-0.1.0/tests/unit/studio/test_settings_service.py +222 -0
  513. vicecut-0.1.0/tests/unit/studio/test_setup_api.py +201 -0
  514. vicecut-0.1.0/tests/unit/studio/test_use_cases.py +225 -0
  515. vicecut-0.1.0/tests/unit/test_adapters.py +613 -0
  516. vicecut-0.1.0/tests/unit/test_audience_flow.py +151 -0
  517. vicecut-0.1.0/tests/unit/test_bootstrap.py +87 -0
  518. vicecut-0.1.0/tests/unit/test_clip_thumbnails.py +36 -0
  519. vicecut-0.1.0/tests/unit/test_dash_sections.py +185 -0
  520. vicecut-0.1.0/tests/unit/test_demo_media.py +57 -0
  521. vicecut-0.1.0/tests/unit/test_domain.py +262 -0
  522. vicecut-0.1.0/tests/unit/test_ffmpeg_lookup.py +15 -0
  523. vicecut-0.1.0/tests/unit/test_followed_videos.py +105 -0
  524. vicecut-0.1.0/tests/unit/test_found_videos_app.py +397 -0
  525. vicecut-0.1.0/tests/unit/test_gpu_libraries.py +93 -0
  526. vicecut-0.1.0/tests/unit/test_hls_url.py +130 -0
  527. vicecut-0.1.0/tests/unit/test_hook_domain.py +227 -0
  528. vicecut-0.1.0/tests/unit/test_hook_fixtures.py +94 -0
  529. vicecut-0.1.0/tests/unit/test_hook_writers.py +306 -0
  530. vicecut-0.1.0/tests/unit/test_hot_apply.py +121 -0
  531. vicecut-0.1.0/tests/unit/test_http_deadline.py +63 -0
  532. vicecut-0.1.0/tests/unit/test_init_config.py +30 -0
  533. vicecut-0.1.0/tests/unit/test_job_requests.py +101 -0
  534. vicecut-0.1.0/tests/unit/test_moment_adapters.py +199 -0
  535. vicecut-0.1.0/tests/unit/test_parallel_reporting.py +64 -0
  536. vicecut-0.1.0/tests/unit/test_plan_session_progress.py +64 -0
  537. vicecut-0.1.0/tests/unit/test_process_tree.py +91 -0
  538. vicecut-0.1.0/tests/unit/test_progress_sources.py +227 -0
  539. vicecut-0.1.0/tests/unit/test_progress_tail.py +87 -0
  540. vicecut-0.1.0/tests/unit/test_region_download.py +346 -0
  541. vicecut-0.1.0/tests/unit/test_release_files.py +66 -0
  542. vicecut-0.1.0/tests/unit/test_replay_chat.py +84 -0
  543. vicecut-0.1.0/tests/unit/test_scan_log.py +22 -0
  544. vicecut-0.1.0/tests/unit/test_scene_inspector.py +79 -0
  545. vicecut-0.1.0/tests/unit/test_screen_checks.py +93 -0
  546. vicecut-0.1.0/tests/unit/test_settings_adapters.py +163 -0
  547. vicecut-0.1.0/tests/unit/test_spa_directory.py +29 -0
  548. vicecut-0.1.0/tests/unit/test_speech_judge.py +39 -0
  549. vicecut-0.1.0/tests/unit/test_speech_source.py +144 -0
  550. vicecut-0.1.0/tests/unit/test_speed_parts.py +245 -0
  551. vicecut-0.1.0/tests/unit/test_steady_face.py +28 -0
  552. vicecut-0.1.0/tests/unit/test_use_cases.py +351 -0
  553. vicecut-0.1.0/tests/unit/test_vod_footage.py +173 -0
  554. vicecut-0.1.0/tests/unit/test_vod_regions.py +433 -0
  555. vicecut-0.1.0/tests/unit/test_webcam_overlay.py +77 -0
  556. vicecut-0.1.0/tests/unit/test_youtube_cookies.py +149 -0
  557. vicecut-0.1.0/web/.dependency-cruiser.cjs +53 -0
  558. vicecut-0.1.0/web/.storybook/main.ts +12 -0
  559. vicecut-0.1.0/web/.storybook/preview.tsx +36 -0
  560. vicecut-0.1.0/web/e2e/appearance.json +23 -0
  561. vicecut-0.1.0/web/e2e/auth.spec.ts +52 -0
  562. vicecut-0.1.0/web/e2e/flows.spec.ts +147 -0
  563. vicecut-0.1.0/web/e2e/jobs.spec.ts +111 -0
  564. vicecut-0.1.0/web/e2e/pages.spec.ts +67 -0
  565. vicecut-0.1.0/web/e2e/screens.spec.ts +25 -0
  566. vicecut-0.1.0/web/e2e/setup.spec.ts +108 -0
  567. vicecut-0.1.0/web/e2e/shell.spec.ts +69 -0
  568. vicecut-0.1.0/web/e2e/stories.spec.ts +37 -0
  569. vicecut-0.1.0/web/e2e/videos.spec.ts +74 -0
  570. vicecut-0.1.0/web/e2e/visual.spec.ts +67 -0
  571. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-dark-visual-linux.png +0 -0
  572. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-dark-visual-win32.png +0 -0
  573. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-light-visual-linux.png +0 -0
  574. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-light-visual-win32.png +0 -0
  575. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-phone-dark-visual-linux.png +0 -0
  576. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-phone-dark-visual-win32.png +0 -0
  577. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-dark-visual-linux.png +0 -0
  578. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-dark-visual-win32.png +0 -0
  579. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-light-visual-linux.png +0 -0
  580. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-light-visual-win32.png +0 -0
  581. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-phone-dark-visual-linux.png +0 -0
  582. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-phone-dark-visual-win32.png +0 -0
  583. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-dark-visual-linux.png +0 -0
  584. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-dark-visual-win32.png +0 -0
  585. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-light-visual-linux.png +0 -0
  586. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-light-visual-win32.png +0 -0
  587. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-phone-dark-visual-linux.png +0 -0
  588. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-phone-dark-visual-win32.png +0 -0
  589. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-dark-visual-linux.png +0 -0
  590. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-dark-visual-win32.png +0 -0
  591. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-light-visual-linux.png +0 -0
  592. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-light-visual-win32.png +0 -0
  593. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-phone-dark-visual-linux.png +0 -0
  594. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-phone-dark-visual-win32.png +0 -0
  595. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-dark-visual-linux.png +0 -0
  596. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-dark-visual-win32.png +0 -0
  597. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-light-visual-linux.png +0 -0
  598. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-light-visual-win32.png +0 -0
  599. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-phone-dark-visual-linux.png +0 -0
  600. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-phone-dark-visual-win32.png +0 -0
  601. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-dark-visual-linux.png +0 -0
  602. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-dark-visual-win32.png +0 -0
  603. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-light-visual-linux.png +0 -0
  604. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-light-visual-win32.png +0 -0
  605. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-phone-dark-visual-linux.png +0 -0
  606. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-phone-dark-visual-win32.png +0 -0
  607. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-dark-visual-linux.png +0 -0
  608. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-dark-visual-win32.png +0 -0
  609. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-light-visual-linux.png +0 -0
  610. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-light-visual-win32.png +0 -0
  611. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-phone-dark-visual-linux.png +0 -0
  612. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-phone-dark-visual-win32.png +0 -0
  613. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-dark-visual-linux.png +0 -0
  614. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-dark-visual-win32.png +0 -0
  615. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-light-visual-linux.png +0 -0
  616. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-light-visual-win32.png +0 -0
  617. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-phone-dark-visual-linux.png +0 -0
  618. vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-phone-dark-visual-win32.png +0 -0
  619. vicecut-0.1.0/web/eslint.config.js +21 -0
  620. vicecut-0.1.0/web/index.html +18 -0
  621. vicecut-0.1.0/web/openapi.json +5060 -0
  622. vicecut-0.1.0/web/package-lock.json +12492 -0
  623. vicecut-0.1.0/web/package.json +70 -0
  624. vicecut-0.1.0/web/playwright.config.ts +60 -0
  625. vicecut-0.1.0/web/postcss.config.js +1 -0
  626. vicecut-0.1.0/web/public/apple-touch-icon.png +0 -0
  627. vicecut-0.1.0/web/public/brand-mark.png +0 -0
  628. vicecut-0.1.0/web/public/favicon-32.png +0 -0
  629. vicecut-0.1.0/web/public/icon-192.png +0 -0
  630. vicecut-0.1.0/web/public/icon-512.png +0 -0
  631. vicecut-0.1.0/web/public/site.webmanifest +13 -0
  632. vicecut-0.1.0/web/src/app/providers.tsx +48 -0
  633. vicecut-0.1.0/web/src/app/realtime.test.ts +28 -0
  634. vicecut-0.1.0/web/src/app/realtime.ts +67 -0
  635. vicecut-0.1.0/web/src/app/router.tsx +92 -0
  636. vicecut-0.1.0/web/src/app/stories/StatusBadges.stories.tsx +36 -0
  637. vicecut-0.1.0/web/src/app/styles.css +35 -0
  638. vicecut-0.1.0/web/src/entities/account/AccountStatusBadge.tsx +9 -0
  639. vicecut-0.1.0/web/src/entities/account/api.ts +14 -0
  640. vicecut-0.1.0/web/src/entities/account/index.ts +4 -0
  641. vicecut-0.1.0/web/src/entities/account/status.test.ts +17 -0
  642. vicecut-0.1.0/web/src/entities/account/status.ts +11 -0
  643. vicecut-0.1.0/web/src/entities/auth/api.ts +23 -0
  644. vicecut-0.1.0/web/src/entities/auth/index.ts +2 -0
  645. vicecut-0.1.0/web/src/entities/channel/ChannelStatusBadge.tsx +9 -0
  646. vicecut-0.1.0/web/src/entities/channel/api.ts +23 -0
  647. vicecut-0.1.0/web/src/entities/channel/index.ts +4 -0
  648. vicecut-0.1.0/web/src/entities/channel/status.test.ts +17 -0
  649. vicecut-0.1.0/web/src/entities/channel/status.ts +16 -0
  650. vicecut-0.1.0/web/src/entities/clip/ClipCard.stories.tsx +35 -0
  651. vicecut-0.1.0/web/src/entities/clip/ClipCard.test.tsx +60 -0
  652. vicecut-0.1.0/web/src/entities/clip/ClipCard.tsx +58 -0
  653. vicecut-0.1.0/web/src/entities/clip/ClipStatusBadge.test.tsx +20 -0
  654. vicecut-0.1.0/web/src/entities/clip/ClipStatusBadge.tsx +9 -0
  655. vicecut-0.1.0/web/src/entities/clip/ClipTable.test.tsx +31 -0
  656. vicecut-0.1.0/web/src/entities/clip/ClipTable.tsx +40 -0
  657. vicecut-0.1.0/web/src/entities/clip/api.ts +44 -0
  658. vicecut-0.1.0/web/src/entities/clip/index.ts +9 -0
  659. vicecut-0.1.0/web/src/entities/clip/navigation.test.ts +42 -0
  660. vicecut-0.1.0/web/src/entities/clip/navigation.ts +28 -0
  661. vicecut-0.1.0/web/src/entities/clip/status.ts +35 -0
  662. vicecut-0.1.0/web/src/entities/found-video/FoundVideoRow.stories.tsx +59 -0
  663. vicecut-0.1.0/web/src/entities/found-video/FoundVideoRow.tsx +53 -0
  664. vicecut-0.1.0/web/src/entities/found-video/age.test.ts +26 -0
  665. vicecut-0.1.0/web/src/entities/found-video/age.ts +15 -0
  666. vicecut-0.1.0/web/src/entities/found-video/api.ts +19 -0
  667. vicecut-0.1.0/web/src/entities/found-video/arrange.test.ts +31 -0
  668. vicecut-0.1.0/web/src/entities/found-video/arrange.ts +32 -0
  669. vicecut-0.1.0/web/src/entities/found-video/index.ts +6 -0
  670. vicecut-0.1.0/web/src/entities/health/api.ts +13 -0
  671. vicecut-0.1.0/web/src/entities/health/index.ts +3 -0
  672. vicecut-0.1.0/web/src/entities/health/status.test.ts +12 -0
  673. vicecut-0.1.0/web/src/entities/health/status.ts +9 -0
  674. vicecut-0.1.0/web/src/entities/job/api.ts +45 -0
  675. vicecut-0.1.0/web/src/entities/job/index.ts +23 -0
  676. vicecut-0.1.0/web/src/entities/job/progress.test.ts +126 -0
  677. vicecut-0.1.0/web/src/entities/job/progress.ts +98 -0
  678. vicecut-0.1.0/web/src/entities/job/status.ts +14 -0
  679. vicecut-0.1.0/web/src/entities/job/subject.test.ts +18 -0
  680. vicecut-0.1.0/web/src/entities/job/subject.ts +12 -0
  681. vicecut-0.1.0/web/src/entities/job/ui/ItemList.tsx +41 -0
  682. vicecut-0.1.0/web/src/entities/job/ui/JobLine.tsx +25 -0
  683. vicecut-0.1.0/web/src/entities/job/ui/JobLink.tsx +13 -0
  684. vicecut-0.1.0/web/src/entities/job/ui/JobProgress.stories.tsx +158 -0
  685. vicecut-0.1.0/web/src/entities/job/ui/JobProgressSummary.tsx +30 -0
  686. vicecut-0.1.0/web/src/entities/job/ui/StageStepper.tsx +99 -0
  687. vicecut-0.1.0/web/src/entities/job/useTrackedJob.test.tsx +67 -0
  688. vicecut-0.1.0/web/src/entities/job/useTrackedJob.ts +51 -0
  689. vicecut-0.1.0/web/src/entities/publication/index.ts +25 -0
  690. vicecut-0.1.0/web/src/entities/session/api.ts +18 -0
  691. vicecut-0.1.0/web/src/entities/session/format.test.ts +30 -0
  692. vicecut-0.1.0/web/src/entities/session/format.ts +13 -0
  693. vicecut-0.1.0/web/src/entities/session/index.ts +3 -0
  694. vicecut-0.1.0/web/src/entities/settings/api.ts +70 -0
  695. vicecut-0.1.0/web/src/entities/settings/index.ts +4 -0
  696. vicecut-0.1.0/web/src/entities/settings/model.test.ts +35 -0
  697. vicecut-0.1.0/web/src/entities/settings/model.ts +44 -0
  698. vicecut-0.1.0/web/src/entities/setup/api.ts +25 -0
  699. vicecut-0.1.0/web/src/entities/setup/index.ts +3 -0
  700. vicecut-0.1.0/web/src/entities/setup/steps.test.ts +19 -0
  701. vicecut-0.1.0/web/src/entities/setup/steps.ts +9 -0
  702. vicecut-0.1.0/web/src/entities/storage/api.test.ts +26 -0
  703. vicecut-0.1.0/web/src/entities/storage/api.ts +32 -0
  704. vicecut-0.1.0/web/src/entities/storage/index.ts +2 -0
  705. vicecut-0.1.0/web/src/entities/system/index.ts +28 -0
  706. vicecut-0.1.0/web/src/features/add-channel/AddChannelDialog.test.tsx +46 -0
  707. vicecut-0.1.0/web/src/features/add-channel/AddChannelDialog.tsx +63 -0
  708. vicecut-0.1.0/web/src/features/add-channel/index.ts +1 -0
  709. vicecut-0.1.0/web/src/features/add-channel/useAddChannel.ts +19 -0
  710. vicecut-0.1.0/web/src/features/cancel-job/CancelJobButton.tsx +21 -0
  711. vicecut-0.1.0/web/src/features/cancel-job/index.ts +1 -0
  712. vicecut-0.1.0/web/src/features/change-password/ChangePasswordCard.test.tsx +68 -0
  713. vicecut-0.1.0/web/src/features/change-password/ChangePasswordCard.tsx +44 -0
  714. vicecut-0.1.0/web/src/features/change-password/index.ts +1 -0
  715. vicecut-0.1.0/web/src/features/change-password/useChangePassword.ts +19 -0
  716. vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyCard.test.tsx +80 -0
  717. vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyCard.tsx +78 -0
  718. vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyForm.tsx +55 -0
  719. vicecut-0.1.0/web/src/features/edit-clip-copy/hashtags.test.ts +16 -0
  720. vicecut-0.1.0/web/src/features/edit-clip-copy/hashtags.ts +17 -0
  721. vicecut-0.1.0/web/src/features/edit-clip-copy/index.ts +1 -0
  722. vicecut-0.1.0/web/src/features/edit-clip-copy/useEditClipCopy.ts +24 -0
  723. vicecut-0.1.0/web/src/features/edit-settings/ApplyBadge.tsx +12 -0
  724. vicecut-0.1.0/web/src/features/edit-settings/ConflictDialog.tsx +50 -0
  725. vicecut-0.1.0/web/src/features/edit-settings/FieldControl.tsx +54 -0
  726. vicecut-0.1.0/web/src/features/edit-settings/HistoryDialog.tsx +50 -0
  727. vicecut-0.1.0/web/src/features/edit-settings/LeaveGuard.tsx +42 -0
  728. vicecut-0.1.0/web/src/features/edit-settings/PresetPicker.tsx +29 -0
  729. vicecut-0.1.0/web/src/features/edit-settings/ResetSectionButton.tsx +37 -0
  730. vicecut-0.1.0/web/src/features/edit-settings/RestartBanner.tsx +33 -0
  731. vicecut-0.1.0/web/src/features/edit-settings/SaveBar.tsx +50 -0
  732. vicecut-0.1.0/web/src/features/edit-settings/SectionForm.tsx +50 -0
  733. vicecut-0.1.0/web/src/features/edit-settings/SettingField.tsx +44 -0
  734. vicecut-0.1.0/web/src/features/edit-settings/controls.test.tsx +131 -0
  735. vicecut-0.1.0/web/src/features/edit-settings/edit-settings.test.tsx +187 -0
  736. vicecut-0.1.0/web/src/features/edit-settings/groups.ts +26 -0
  737. vicecut-0.1.0/web/src/features/edit-settings/index.ts +10 -0
  738. vicecut-0.1.0/web/src/features/edit-settings/useSettingsDraft.ts +104 -0
  739. vicecut-0.1.0/web/src/features/edit-settings/useVersionedAction.ts +15 -0
  740. vicecut-0.1.0/web/src/features/edit-settings/values.ts +16 -0
  741. vicecut-0.1.0/web/src/features/engine-toggle/EngineToggle.test.tsx +32 -0
  742. vicecut-0.1.0/web/src/features/engine-toggle/EngineToggle.tsx +42 -0
  743. vicecut-0.1.0/web/src/features/engine-toggle/index.ts +1 -0
  744. vicecut-0.1.0/web/src/features/manage-accounts/AccountActions.tsx +43 -0
  745. vicecut-0.1.0/web/src/features/manage-accounts/AddAccountDialog.tsx +64 -0
  746. vicecut-0.1.0/web/src/features/manage-accounts/ManageAccounts.test.tsx +79 -0
  747. vicecut-0.1.0/web/src/features/manage-accounts/index.ts +2 -0
  748. vicecut-0.1.0/web/src/features/manage-accounts/useAccountMutations.ts +37 -0
  749. vicecut-0.1.0/web/src/features/manage-channel/ChannelActions.test.tsx +73 -0
  750. vicecut-0.1.0/web/src/features/manage-channel/ChannelActions.tsx +54 -0
  751. vicecut-0.1.0/web/src/features/manage-channel/PrioritySelect.tsx +27 -0
  752. vicecut-0.1.0/web/src/features/manage-channel/index.ts +2 -0
  753. vicecut-0.1.0/web/src/features/manage-channel/useManageChannel.ts +31 -0
  754. vicecut-0.1.0/web/src/features/manage-publication/PublicationActions.test.tsx +65 -0
  755. vicecut-0.1.0/web/src/features/manage-publication/PublicationActions.tsx +16 -0
  756. vicecut-0.1.0/web/src/features/manage-publication/PublicationButtons.stories.tsx +15 -0
  757. vicecut-0.1.0/web/src/features/manage-publication/PublicationButtons.tsx +35 -0
  758. vicecut-0.1.0/web/src/features/manage-publication/index.ts +1 -0
  759. vicecut-0.1.0/web/src/features/manage-publication/usePublicationActions.ts +27 -0
  760. vicecut-0.1.0/web/src/features/manage-secrets/SecretField.test.tsx +64 -0
  761. vicecut-0.1.0/web/src/features/manage-secrets/SecretField.tsx +62 -0
  762. vicecut-0.1.0/web/src/features/manage-secrets/SecretList.test.tsx +32 -0
  763. vicecut-0.1.0/web/src/features/manage-secrets/SecretList.tsx +19 -0
  764. vicecut-0.1.0/web/src/features/manage-secrets/index.ts +1 -0
  765. vicecut-0.1.0/web/src/features/pause-posting/PausePosting.test.tsx +44 -0
  766. vicecut-0.1.0/web/src/features/pause-posting/PausePosting.tsx +19 -0
  767. vicecut-0.1.0/web/src/features/pause-posting/PausePostingView.stories.tsx +14 -0
  768. vicecut-0.1.0/web/src/features/pause-posting/PausePostingView.tsx +31 -0
  769. vicecut-0.1.0/web/src/features/pause-posting/index.ts +1 -0
  770. vicecut-0.1.0/web/src/features/review-clip/ReviewActions.test.tsx +93 -0
  771. vicecut-0.1.0/web/src/features/review-clip/ReviewActions.tsx +72 -0
  772. vicecut-0.1.0/web/src/features/review-clip/index.ts +1 -0
  773. vicecut-0.1.0/web/src/features/review-clip/useReviewClip.ts +38 -0
  774. vicecut-0.1.0/web/src/features/review-found-video/FoundVideoActions.test.tsx +92 -0
  775. vicecut-0.1.0/web/src/features/review-found-video/FoundVideoActions.tsx +35 -0
  776. vicecut-0.1.0/web/src/features/review-found-video/RestoreVideoButton.tsx +24 -0
  777. vicecut-0.1.0/web/src/features/review-found-video/SearchVideosButton.tsx +25 -0
  778. vicecut-0.1.0/web/src/features/review-found-video/index.ts +3 -0
  779. vicecut-0.1.0/web/src/features/review-found-video/useFoundVideoActions.ts +34 -0
  780. vicecut-0.1.0/web/src/features/review-suggestion/FollowButton.tsx +19 -0
  781. vicecut-0.1.0/web/src/features/review-suggestion/SuggestionActions.test.tsx +67 -0
  782. vicecut-0.1.0/web/src/features/review-suggestion/SuggestionActions.tsx +26 -0
  783. vicecut-0.1.0/web/src/features/review-suggestion/index.ts +2 -0
  784. vicecut-0.1.0/web/src/features/review-suggestion/useReviewSuggestion.ts +20 -0
  785. vicecut-0.1.0/web/src/features/run-health/CheckRow.tsx +23 -0
  786. vicecut-0.1.0/web/src/features/run-health/HealthPanel.stories.tsx +32 -0
  787. vicecut-0.1.0/web/src/features/run-health/HealthPanel.tsx +49 -0
  788. vicecut-0.1.0/web/src/features/run-health/HealthSection.tsx +10 -0
  789. vicecut-0.1.0/web/src/features/run-health/index.ts +4 -0
  790. vicecut-0.1.0/web/src/features/run-health/run-health.test.tsx +92 -0
  791. vicecut-0.1.0/web/src/features/run-health/useHealthRun.ts +27 -0
  792. vicecut-0.1.0/web/src/features/scan-vod/ScanVodDialog.test.tsx +73 -0
  793. vicecut-0.1.0/web/src/features/scan-vod/ScanVodDialog.tsx +71 -0
  794. vicecut-0.1.0/web/src/features/scan-vod/index.ts +2 -0
  795. vicecut-0.1.0/web/src/features/scan-vod/useScanVod.ts +19 -0
  796. vicecut-0.1.0/web/src/features/settings-tools/AiTestButton.tsx +29 -0
  797. vicecut-0.1.0/web/src/features/settings-tools/CaptionPreview.tsx +31 -0
  798. vicecut-0.1.0/web/src/features/settings-tools/PreviewFrame.test.tsx +49 -0
  799. vicecut-0.1.0/web/src/features/settings-tools/PreviewFrame.tsx +37 -0
  800. vicecut-0.1.0/web/src/features/settings-tools/TestMessageButton.tsx +23 -0
  801. vicecut-0.1.0/web/src/features/settings-tools/index.ts +5 -0
  802. vicecut-0.1.0/web/src/features/settings-tools/settings-tools.test.tsx +65 -0
  803. vicecut-0.1.0/web/src/features/settings-tools/types.ts +2 -0
  804. vicecut-0.1.0/web/src/features/settings-tools/useDebounced.ts +10 -0
  805. vicecut-0.1.0/web/src/features/setup-models/ModelDownload.stories.tsx +22 -0
  806. vicecut-0.1.0/web/src/features/setup-models/ModelDownload.tsx +46 -0
  807. vicecut-0.1.0/web/src/features/setup-models/ModelsStep.tsx +58 -0
  808. vicecut-0.1.0/web/src/features/setup-models/index.ts +2 -0
  809. vicecut-0.1.0/web/src/features/setup-models/setup-models.test.tsx +116 -0
  810. vicecut-0.1.0/web/src/features/setup-models/useModelChoices.ts +36 -0
  811. vicecut-0.1.0/web/src/features/setup-wizard/WizardStepper.stories.tsx +13 -0
  812. vicecut-0.1.0/web/src/features/setup-wizard/WizardStepper.tsx +24 -0
  813. vicecut-0.1.0/web/src/features/setup-wizard/index.ts +2 -0
  814. vicecut-0.1.0/web/src/features/setup-wizard/useSetupActions.ts +23 -0
  815. vicecut-0.1.0/web/src/features/sign-in/LoginForm.tsx +35 -0
  816. vicecut-0.1.0/web/src/features/sign-in/SignOutButton.tsx +18 -0
  817. vicecut-0.1.0/web/src/features/sign-in/index.ts +2 -0
  818. vicecut-0.1.0/web/src/features/sign-in/sign-in.test.tsx +83 -0
  819. vicecut-0.1.0/web/src/features/sign-in/useSignIn.ts +22 -0
  820. vicecut-0.1.0/web/src/features/storage-usage/StorageTodo.tsx +31 -0
  821. vicecut-0.1.0/web/src/features/storage-usage/StorageUsage.test.tsx +52 -0
  822. vicecut-0.1.0/web/src/features/storage-usage/StorageUsage.tsx +30 -0
  823. vicecut-0.1.0/web/src/features/storage-usage/StorageUsageView.stories.tsx +26 -0
  824. vicecut-0.1.0/web/src/features/storage-usage/StorageUsageView.tsx +44 -0
  825. vicecut-0.1.0/web/src/features/storage-usage/index.ts +2 -0
  826. vicecut-0.1.0/web/src/main.tsx +15 -0
  827. vicecut-0.1.0/web/src/pages/accounts/AccountsPage.tsx +53 -0
  828. vicecut-0.1.0/web/src/pages/accounts/index.ts +1 -0
  829. vicecut-0.1.0/web/src/pages/channels/ChannelsPage.tsx +72 -0
  830. vicecut-0.1.0/web/src/pages/channels/index.ts +1 -0
  831. vicecut-0.1.0/web/src/pages/clip-detail/ClipDetailPage.tsx +80 -0
  832. vicecut-0.1.0/web/src/pages/clip-detail/ClipPlayer.tsx +31 -0
  833. vicecut-0.1.0/web/src/pages/clip-detail/WhyCard.tsx +40 -0
  834. vicecut-0.1.0/web/src/pages/clip-detail/index.ts +1 -0
  835. vicecut-0.1.0/web/src/pages/clip-detail/usePlayerKeys.test.tsx +40 -0
  836. vicecut-0.1.0/web/src/pages/clip-detail/usePlayerKeys.ts +24 -0
  837. vicecut-0.1.0/web/src/pages/clips/ClipsPage.tsx +71 -0
  838. vicecut-0.1.0/web/src/pages/clips/index.ts +1 -0
  839. vicecut-0.1.0/web/src/pages/dashboard/DashboardPage.tsx +121 -0
  840. vicecut-0.1.0/web/src/pages/dashboard/index.ts +1 -0
  841. vicecut-0.1.0/web/src/pages/discover/DiscoverPage.tsx +53 -0
  842. vicecut-0.1.0/web/src/pages/discover/FoundVideosSection.tsx +91 -0
  843. vicecut-0.1.0/web/src/pages/discover/HiddenSection.test.tsx +58 -0
  844. vicecut-0.1.0/web/src/pages/discover/HiddenSection.tsx +57 -0
  845. vicecut-0.1.0/web/src/pages/discover/index.ts +1 -0
  846. vicecut-0.1.0/web/src/pages/error/ErrorPage.test.tsx +25 -0
  847. vicecut-0.1.0/web/src/pages/error/ErrorPage.tsx +27 -0
  848. vicecut-0.1.0/web/src/pages/error/index.ts +1 -0
  849. vicecut-0.1.0/web/src/pages/jobs/JobList.tsx +51 -0
  850. vicecut-0.1.0/web/src/pages/jobs/JobsPage.test.tsx +141 -0
  851. vicecut-0.1.0/web/src/pages/jobs/JobsPage.tsx +75 -0
  852. vicecut-0.1.0/web/src/pages/jobs/index.ts +1 -0
  853. vicecut-0.1.0/web/src/pages/live/LivePage.tsx +96 -0
  854. vicecut-0.1.0/web/src/pages/live/index.ts +1 -0
  855. vicecut-0.1.0/web/src/pages/login/LoginPage.stories.tsx +20 -0
  856. vicecut-0.1.0/web/src/pages/login/LoginPage.tsx +23 -0
  857. vicecut-0.1.0/web/src/pages/login/index.ts +1 -0
  858. vicecut-0.1.0/web/src/pages/not-found/NotFoundPage.tsx +19 -0
  859. vicecut-0.1.0/web/src/pages/not-found/index.ts +1 -0
  860. vicecut-0.1.0/web/src/pages/queue/QueuePage.tsx +54 -0
  861. vicecut-0.1.0/web/src/pages/queue/index.ts +1 -0
  862. vicecut-0.1.0/web/src/pages/screens.test.tsx +125 -0
  863. vicecut-0.1.0/web/src/pages/settings/SettingsEditor.tsx +87 -0
  864. vicecut-0.1.0/web/src/pages/settings/SettingsNav.tsx +27 -0
  865. vicecut-0.1.0/web/src/pages/settings/SettingsPage.tsx +36 -0
  866. vicecut-0.1.0/web/src/pages/settings/SystemSection.tsx +48 -0
  867. vicecut-0.1.0/web/src/pages/settings/index.ts +3 -0
  868. vicecut-0.1.0/web/src/pages/settings/sections.ts +21 -0
  869. vicecut-0.1.0/web/src/pages/setup/SetupPage.test.tsx +114 -0
  870. vicecut-0.1.0/web/src/pages/setup/SetupPage.tsx +92 -0
  871. vicecut-0.1.0/web/src/pages/setup/index.ts +1 -0
  872. vicecut-0.1.0/web/src/pages/setup/steps/PublishingStep.tsx +28 -0
  873. vicecut-0.1.0/web/src/pages/setup/steps/StreamersStep.tsx +43 -0
  874. vicecut-0.1.0/web/src/pages/setup/steps/SystemStep.tsx +12 -0
  875. vicecut-0.1.0/web/src/pages/setup/steps/TestRunStep.tsx +39 -0
  876. vicecut-0.1.0/web/src/pages/setup/steps/WelcomeStep.tsx +17 -0
  877. vicecut-0.1.0/web/src/shared/api/auth.test.ts +52 -0
  878. vicecut-0.1.0/web/src/shared/api/auth.ts +32 -0
  879. vicecut-0.1.0/web/src/shared/api/client.ts +75 -0
  880. vicecut-0.1.0/web/src/shared/api/connection.ts +21 -0
  881. vicecut-0.1.0/web/src/shared/api/events.ts +65 -0
  882. vicecut-0.1.0/web/src/shared/api/index.ts +6 -0
  883. vicecut-0.1.0/web/src/shared/api/schema.d.ts +4247 -0
  884. vicecut-0.1.0/web/src/shared/i18n/en.json +1316 -0
  885. vicecut-0.1.0/web/src/shared/i18n/index.ts +16 -0
  886. vicecut-0.1.0/web/src/shared/i18n/vi.json +217 -0
  887. vicecut-0.1.0/web/src/shared/lib/appearance.test.ts +50 -0
  888. vicecut-0.1.0/web/src/shared/lib/appearance.ts +58 -0
  889. vicecut-0.1.0/web/src/shared/lib/bytes.test.ts +16 -0
  890. vicecut-0.1.0/web/src/shared/lib/bytes.ts +13 -0
  891. vicecut-0.1.0/web/src/shared/lib/format.test.ts +21 -0
  892. vicecut-0.1.0/web/src/shared/lib/format.ts +29 -0
  893. vicecut-0.1.0/web/src/shared/lib/index.ts +7 -0
  894. vicecut-0.1.0/web/src/shared/lib/shortcuts.test.ts +41 -0
  895. vicecut-0.1.0/web/src/shared/lib/shortcuts.ts +13 -0
  896. vicecut-0.1.0/web/src/shared/lib/useNow.ts +13 -0
  897. vicecut-0.1.0/web/src/shared/lib/usePrefersDark.test.ts +44 -0
  898. vicecut-0.1.0/web/src/shared/lib/usePrefersDark.ts +23 -0
  899. vicecut-0.1.0/web/src/shared/ui/Badge.tsx +22 -0
  900. vicecut-0.1.0/web/src/shared/ui/Button.tsx +39 -0
  901. vicecut-0.1.0/web/src/shared/ui/Buttons.stories.tsx +35 -0
  902. vicecut-0.1.0/web/src/shared/ui/Card.tsx +11 -0
  903. vicecut-0.1.0/web/src/shared/ui/CommandPalette.tsx +91 -0
  904. vicecut-0.1.0/web/src/shared/ui/Data.stories.tsx +36 -0
  905. vicecut-0.1.0/web/src/shared/ui/DataTable.tsx +48 -0
  906. vicecut-0.1.0/web/src/shared/ui/DesignSystem.stories.tsx +235 -0
  907. vicecut-0.1.0/web/src/shared/ui/DetailList.tsx +21 -0
  908. vicecut-0.1.0/web/src/shared/ui/Dialog.tsx +27 -0
  909. vicecut-0.1.0/web/src/shared/ui/EmptyState.tsx +15 -0
  910. vicecut-0.1.0/web/src/shared/ui/Feedback.stories.tsx +47 -0
  911. vicecut-0.1.0/web/src/shared/ui/Forms.stories.tsx +85 -0
  912. vicecut-0.1.0/web/src/shared/ui/IconButton.tsx +17 -0
  913. vicecut-0.1.0/web/src/shared/ui/InlineAlert.tsx +18 -0
  914. vicecut-0.1.0/web/src/shared/ui/Kbd.tsx +6 -0
  915. vicecut-0.1.0/web/src/shared/ui/Layout.stories.tsx +62 -0
  916. vicecut-0.1.0/web/src/shared/ui/Menu.tsx +52 -0
  917. vicecut-0.1.0/web/src/shared/ui/NumberField.tsx +37 -0
  918. vicecut-0.1.0/web/src/shared/ui/Overlays.stories.tsx +68 -0
  919. vicecut-0.1.0/web/src/shared/ui/PageHeader.tsx +13 -0
  920. vicecut-0.1.0/web/src/shared/ui/ProblemState.stories.tsx +23 -0
  921. vicecut-0.1.0/web/src/shared/ui/ProblemState.tsx +15 -0
  922. vicecut-0.1.0/web/src/shared/ui/ProgressBar.tsx +15 -0
  923. vicecut-0.1.0/web/src/shared/ui/SegmentedControl.tsx +33 -0
  924. vicecut-0.1.0/web/src/shared/ui/Select.tsx +32 -0
  925. vicecut-0.1.0/web/src/shared/ui/Skeleton.tsx +4 -0
  926. vicecut-0.1.0/web/src/shared/ui/Slider.tsx +30 -0
  927. vicecut-0.1.0/web/src/shared/ui/StatCard.tsx +22 -0
  928. vicecut-0.1.0/web/src/shared/ui/Switch.tsx +14 -0
  929. vicecut-0.1.0/web/src/shared/ui/Tabs.tsx +38 -0
  930. vicecut-0.1.0/web/src/shared/ui/TagInput.tsx +53 -0
  931. vicecut-0.1.0/web/src/shared/ui/TextArea.tsx +21 -0
  932. vicecut-0.1.0/web/src/shared/ui/TextField.tsx +19 -0
  933. vicecut-0.1.0/web/src/shared/ui/ThemeRoot.tsx +20 -0
  934. vicecut-0.1.0/web/src/shared/ui/index.ts +36 -0
  935. vicecut-0.1.0/web/src/shared/ui/tokens.css +73 -0
  936. vicecut-0.1.0/web/src/test/routing.tsx +18 -0
  937. vicecut-0.1.0/web/src/test/setup.ts +35 -0
  938. vicecut-0.1.0/web/src/widgets/app-shell/AppPalette.tsx +69 -0
  939. vicecut-0.1.0/web/src/widgets/app-shell/AppShell.tsx +91 -0
  940. vicecut-0.1.0/web/src/widgets/app-shell/AppearanceMenu.tsx +29 -0
  941. vicecut-0.1.0/web/src/widgets/app-shell/MobileNav.tsx +49 -0
  942. vicecut-0.1.0/web/src/widgets/app-shell/Navigation.stories.tsx +46 -0
  943. vicecut-0.1.0/web/src/widgets/app-shell/RunningJobsToast.test.tsx +73 -0
  944. vicecut-0.1.0/web/src/widgets/app-shell/RunningJobsToast.tsx +33 -0
  945. vicecut-0.1.0/web/src/widgets/app-shell/ShortcutsDialog.tsx +62 -0
  946. vicecut-0.1.0/web/src/widgets/app-shell/Sidebar.tsx +43 -0
  947. vicecut-0.1.0/web/src/widgets/app-shell/index.ts +1 -0
  948. vicecut-0.1.0/web/src/widgets/app-shell/navItems.test.ts +19 -0
  949. vicecut-0.1.0/web/src/widgets/app-shell/navItems.ts +44 -0
  950. vicecut-0.1.0/web/src/widgets/app-shell/useGlobalShortcuts.ts +40 -0
  951. vicecut-0.1.0/web/src/widgets/job-panel/JobLog.tsx +76 -0
  952. vicecut-0.1.0/web/src/widgets/job-panel/JobPanel.test.tsx +234 -0
  953. vicecut-0.1.0/web/src/widgets/job-panel/JobPanel.tsx +73 -0
  954. vicecut-0.1.0/web/src/widgets/job-panel/index.ts +1 -0
  955. vicecut-0.1.0/web/tailwind.config.ts +53 -0
  956. vicecut-0.1.0/web/tsconfig.json +22 -0
  957. vicecut-0.1.0/web/vite.config.ts +29 -0
@@ -0,0 +1,40 @@
1
+ # Keep personal data, secrets and build debris out of the image's build context.
2
+ .git
3
+ .github
4
+ .env
5
+ .env.*
6
+ config.toml
7
+ data
8
+ workspace
9
+ clips
10
+ out
11
+ dist
12
+ *.db
13
+ *.db-shm
14
+ *.db-wal
15
+ secret.key
16
+ secrets.json
17
+ auth.json
18
+ tokens
19
+ browser-profiles
20
+ cookies.txt
21
+ *cookies*.txt
22
+ *.mp4
23
+ *.mkv
24
+ **/__pycache__
25
+ .venv
26
+ .mypy_cache
27
+ .ruff_cache
28
+ .pytest_cache
29
+ .hypothesis
30
+ .import_linter_cache
31
+ .coverage
32
+ tests
33
+ docs
34
+ web/node_modules
35
+ web/dist
36
+ web/storybook-static
37
+ web/test-results
38
+ web/playwright-report
39
+ web/coverage
40
+ web/e2e
@@ -0,0 +1,21 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ indent_size = 4
10
+
11
+ [*.{ts,tsx,js,jsx,css,json,yml,yaml,html,cjs,mjs}]
12
+ indent_size = 2
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
16
+
17
+ [*.ps1]
18
+ end_of_line = crlf
19
+
20
+ [*.bat]
21
+ end_of_line = crlf
@@ -0,0 +1,15 @@
1
+ # Copy to .env and fill in what you use. Never commit .env.
2
+
3
+ # Only for publish.mode = "official"
4
+ TIKTOK_CLIENT_KEY=
5
+ TIKTOK_CLIENT_SECRET=
6
+
7
+ # Only if [telegram] enabled = true
8
+ TELEGRAM_BOT_TOKEN=
9
+
10
+ # Only if judge.base_url points to a paid OpenAI-compatible API instead of local Ollama
11
+ VICECUT_LLM_API_KEY=
12
+
13
+ # Password for ViceCut Studio. Required when Studio listens beyond this machine (Docker).
14
+ # Leave empty to set it from the web UI (Settings > System) or `vicecut set-password`.
15
+ VICECUT_PASSWORD=
@@ -0,0 +1,7 @@
1
+ * text=auto eol=lf
2
+ *.ps1 text eol=crlf
3
+ *.bat text eol=crlf
4
+ *.png binary
5
+ *.ttf binary
6
+ *.woff binary
7
+ *.woff2 binary
@@ -0,0 +1,45 @@
1
+ name: Bug report
2
+ description: Something does not work as described.
3
+ title: "[Bug] "
4
+ labels: ["bug"]
5
+ body:
6
+ - type: textarea
7
+ id: summary
8
+ attributes:
9
+ label: What happened
10
+ description: What you expected, and what ViceCut did instead.
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: steps
15
+ attributes:
16
+ label: Steps to reproduce
17
+ description: Most UI bugs can be shown with `vicecut serve --demo`. Say whether you used demo mode or a real stream.
18
+ validations:
19
+ required: true
20
+ - type: input
21
+ id: version
22
+ attributes:
23
+ label: ViceCut version
24
+ placeholder: "0.1.0 or a commit"
25
+ validations:
26
+ required: true
27
+ - type: input
28
+ id: environment
29
+ attributes:
30
+ label: Environment
31
+ placeholder: "Windows 11, Python 3.12, Docker or venv, GPU or CPU"
32
+ validations:
33
+ required: true
34
+ - type: textarea
35
+ id: logs
36
+ attributes:
37
+ label: Relevant log lines
38
+ description: From the terminal that runs ViceCut. Remove tokens, cookies, passwords, and account names first.
39
+ - type: checkboxes
40
+ id: checks
41
+ attributes:
42
+ label: Checklist
43
+ options:
44
+ - label: I removed secrets and personal data from the report.
45
+ required: true
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,19 @@
1
+ name: Feature request
2
+ description: A change that would make ViceCut more useful for Vietnamese GTA 6 clips.
3
+ title: "[Feature] "
4
+ labels: ["enhancement"]
5
+ body:
6
+ - type: textarea
7
+ id: problem
8
+ attributes:
9
+ label: Problem
10
+ description: What is hard to do with ViceCut today?
11
+ validations:
12
+ required: true
13
+ - type: textarea
14
+ id: proposal
15
+ attributes:
16
+ label: Proposal
17
+ description: What should the app do, and what should it leave unchanged? Captcha or fingerprint evasion will not be accepted.
18
+ validations:
19
+ required: true
@@ -0,0 +1,16 @@
1
+ ## Summary
2
+
3
+ -
4
+
5
+ ## Test plan
6
+
7
+ - [ ] `ruff check .`, `ruff format --check .`, `mypy`, `lint-imports`, and `pytest` pass
8
+ - [ ] Frontend, if touched: `typecheck`, `lint`, `depcruise`, `test`, and `build` pass
9
+ - [ ] New UI has a Storybook story in light and dark, with no serious accessibility violation
10
+ - [ ] API changed? `vicecut openapi` and `npm run gen:api` were re-run
11
+ - [ ] Web UI text is English and in `en.json`; clip content stays Vietnamese
12
+ - [ ] No secrets, no telemetry, no captcha or fingerprint evasion
13
+
14
+ ## Notes
15
+
16
+ -
@@ -0,0 +1,51 @@
1
+ version: 2
2
+ # One pull request per ecosystem a month, minor and patch updates only. A new major version
3
+ # (React, Tailwind, TypeScript, a base image) is a planned upgrade done by hand, not a bot PR.
4
+ updates:
5
+ - package-ecosystem: pip
6
+ directory: /
7
+ schedule:
8
+ interval: monthly
9
+ groups:
10
+ python-dependencies:
11
+ patterns: ["*"]
12
+ ignore:
13
+ - dependency-name: "*"
14
+ update-types: ["version-update:semver-major"]
15
+ # faster-whisper 1.2.x passes metadata_errors=, which PyAV 16 removed (see pyproject.toml)
16
+ - dependency-name: av
17
+ versions: [">=16"]
18
+ # FaceDetectorYN with the bundled YuNet model is only tested on OpenCV 4
19
+ - dependency-name: opencv-python-headless
20
+ versions: [">=5"]
21
+
22
+ - package-ecosystem: npm
23
+ directory: /web
24
+ schedule:
25
+ interval: monthly
26
+ groups:
27
+ web-dependencies:
28
+ patterns: ["*"]
29
+ ignore:
30
+ - dependency-name: "*"
31
+ update-types: ["version-update:semver-major"]
32
+
33
+ - package-ecosystem: github-actions
34
+ directory: /
35
+ schedule:
36
+ interval: monthly
37
+ groups:
38
+ github-actions:
39
+ patterns: ["*"]
40
+
41
+ - package-ecosystem: docker
42
+ directory: /
43
+ schedule:
44
+ interval: monthly
45
+ ignore:
46
+ # The image follows the supported Python (3.12) and Node LTS lines; moving to a new
47
+ # line is a decision, not a bot update.
48
+ - dependency-name: python
49
+ update-types: ["version-update:semver-major", "version-update:semver-minor"]
50
+ - dependency-name: node
51
+ update-types: ["version-update:semver-major"]
@@ -0,0 +1,218 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ concurrency:
11
+ group: ci-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ env:
15
+ PYTHONUTF8: "1"
16
+
17
+ jobs:
18
+ lint:
19
+ name: lint, types, architecture, docs
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+ - uses: actions/setup-python@v7
24
+ with:
25
+ python-version: "3.12"
26
+ cache: pip
27
+ - run: pip install -e ".[dev]"
28
+ - run: ruff check . && ruff format --check .
29
+ - run: mypy
30
+ - name: Architecture (import-linter)
31
+ run: lint-imports
32
+ - name: docs/configuration.md is generated from the settings schema
33
+ run: python scripts/generate_config_docs.py --check
34
+
35
+ backend:
36
+ name: backend (${{ matrix.os }}, py${{ matrix.python }})
37
+ runs-on: ${{ matrix.os }}
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ os: [ubuntu-latest, windows-latest]
42
+ python: ["3.12", "3.13"]
43
+ steps:
44
+ - uses: actions/checkout@v7
45
+ - uses: actions/setup-python@v7
46
+ with:
47
+ python-version: ${{ matrix.python }}
48
+ cache: pip
49
+ - name: "ffmpeg and fonts (Linux only: the render tests need them)"
50
+ if: runner.os == 'Linux'
51
+ run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core
52
+ - run: pip install -e ".[dev]"
53
+ - name: Tests (all of them on Linux)
54
+ if: runner.os == 'Linux'
55
+ run: pytest
56
+ - name: Tests (without the ffmpeg render tests)
57
+ if: runner.os != 'Linux'
58
+ run: pytest -m "not ffmpeg"
59
+
60
+ backend-macos:
61
+ # macOS runners are often short on GitHub; a job that never gets one must not hold back the rest.
62
+ # One Python version asks for one machine, the check stays visible, and the tests are the same.
63
+ name: backend (macos-latest, py3.13)
64
+ runs-on: macos-latest
65
+ continue-on-error: true
66
+ timeout-minutes: 30
67
+ steps:
68
+ - uses: actions/checkout@v7
69
+ - uses: actions/setup-python@v7
70
+ with:
71
+ python-version: "3.13"
72
+ cache: pip
73
+ - run: pip install -e ".[dev]"
74
+ - name: Tests (without the ffmpeg render tests)
75
+ run: pytest -m "not ffmpeg"
76
+
77
+ frontend:
78
+ runs-on: ubuntu-latest
79
+ defaults:
80
+ run:
81
+ working-directory: web
82
+ steps:
83
+ - uses: actions/checkout@v7
84
+ - uses: actions/setup-node@v7
85
+ with:
86
+ node-version: 22
87
+ cache: npm
88
+ cache-dependency-path: web/package-lock.json
89
+ - run: npm ci
90
+ - run: npm run typecheck
91
+ - run: npm run lint
92
+ - name: Architecture (dependency-cruiser)
93
+ run: npm run depcruise
94
+ - name: "Unit tests (coverage thresholds: features and entities >= 85 %)"
95
+ run: npm run test:coverage
96
+ - run: npm run build
97
+
98
+ contract:
99
+ # The OpenAPI file and the generated TypeScript types must match the backend.
100
+ runs-on: ubuntu-latest
101
+ steps:
102
+ - uses: actions/checkout@v7
103
+ - uses: actions/setup-python@v7
104
+ with:
105
+ python-version: "3.12"
106
+ cache: pip
107
+ - uses: actions/setup-node@v7
108
+ with:
109
+ node-version: 22
110
+ cache: npm
111
+ cache-dependency-path: web/package-lock.json
112
+ - run: pip install -e .
113
+ - run: npm ci
114
+ working-directory: web
115
+ - run: vicecut openapi --out web/openapi.json
116
+ - run: npm run gen:api
117
+ working-directory: web
118
+ - name: Fail when it differs from what is committed
119
+ run: git diff --exit-code web/openapi.json web/src/shared/api/schema.d.ts
120
+
121
+ e2e:
122
+ # Playwright on `vicecut serve --demo` (no YouTube, Ollama or TikTok): every flow, the setup
123
+ # wizard, sign-in, and axe on every page and every Storybook story, light and dark.
124
+ runs-on: ubuntu-latest
125
+ needs: [lint, backend, frontend]
126
+ steps:
127
+ - uses: actions/checkout@v7
128
+ - uses: actions/setup-python@v7
129
+ with:
130
+ python-version: "3.12"
131
+ cache: pip
132
+ - uses: actions/setup-node@v7
133
+ with:
134
+ node-version: 22
135
+ cache: npm
136
+ cache-dependency-path: web/package-lock.json
137
+ - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg
138
+ - run: pip install -e .
139
+ - run: npm ci
140
+ working-directory: web
141
+ - run: npx playwright install --with-deps chromium
142
+ working-directory: web
143
+ - run: npm run build && npm run build-storybook
144
+ working-directory: web
145
+ - run: npm run test:e2e
146
+ working-directory: web
147
+ - uses: actions/upload-artifact@v7
148
+ if: failure()
149
+ with:
150
+ name: playwright-traces
151
+ path: web/test-results
152
+
153
+ security:
154
+ name: secrets, vulnerabilities, licences
155
+ runs-on: ubuntu-latest
156
+ steps:
157
+ - uses: actions/checkout@v7
158
+ with:
159
+ fetch-depth: 0 # gitleaks scans the whole history
160
+ - name: gitleaks (secrets in the tree and in history)
161
+ run: |
162
+ curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz | tar -xz gitleaks
163
+ ./gitleaks git . --no-banner --redact
164
+ - uses: actions/setup-python@v7
165
+ with:
166
+ python-version: "3.12"
167
+ cache: pip
168
+ - uses: actions/setup-node@v7
169
+ with:
170
+ node-version: 22
171
+ cache: npm
172
+ cache-dependency-path: web/package-lock.json
173
+ - run: pip install -e ".[dev]"
174
+ - name: pip-audit (runtime dependencies)
175
+ run: pip-audit --skip-editable --progress-spinner off
176
+ - run: npm ci
177
+ working-directory: web
178
+ - name: npm audit (production dependencies, high and above)
179
+ run: npm audit --omit=dev --audit-level=high
180
+ working-directory: web
181
+ - name: Licence policy (no GPL/AGPL in the wheel's runtime closure or the web bundle)
182
+ run: python scripts/third_party_notices.py --check
183
+
184
+ docker:
185
+ runs-on: ubuntu-latest
186
+ steps:
187
+ - uses: actions/checkout@v7
188
+ - uses: docker/setup-buildx-action@v4
189
+ - uses: docker/build-push-action@v7
190
+ with:
191
+ context: .
192
+ load: true
193
+ tags: vicecut:ci
194
+ cache-from: type=gha
195
+ cache-to: type=gha,mode=max
196
+ - name: Smoke test (serve, /healthz, web UI, sign-in required, non-root, healthy)
197
+ run: bash scripts/docker_smoke.sh vicecut:ci
198
+
199
+ package:
200
+ # The wheel must contain the web UI so `pipx install` users get Studio without Node.js.
201
+ runs-on: ubuntu-latest
202
+ needs: [lint, backend, frontend]
203
+ steps:
204
+ - uses: actions/checkout@v7
205
+ - uses: actions/setup-python@v7
206
+ with:
207
+ python-version: "3.12"
208
+ - uses: actions/setup-node@v7
209
+ with:
210
+ node-version: 22
211
+ - run: pip install build
212
+ - run: python scripts/build_release.py
213
+ - name: The wheel ships the web UI
214
+ run: python -c "import glob, zipfile; names = zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist(); assert 'vicecut/_spa/index.html' in names, 'web UI missing from the wheel'"
215
+ - uses: actions/upload-artifact@v7
216
+ with:
217
+ name: wheel
218
+ path: dist/*.whl
@@ -0,0 +1,130 @@
1
+ name: release
2
+
3
+ # Pushing a tag such as v0.1.0 builds the wheel and sdist (with the web UI inside), publishes them to
4
+ # PyPI through trusted publishing, pushes a multi-architecture image to GHCR and creates the GitHub
5
+ # Release from CHANGELOG.md. Nothing is published until a `v*` tag is pushed. Run by hand (Actions >
6
+ # release > Run workflow) it is a dry run: the checks, the wheel and the image are built, nothing leaves.
7
+
8
+ on:
9
+ push:
10
+ tags: ["v*"]
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ verify:
18
+ # The tag, pyproject.toml, web/package.json and CHANGELOG.md must agree before anything is published.
19
+ runs-on: ubuntu-latest
20
+ outputs:
21
+ version: ${{ steps.version.outputs.version }}
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: actions/setup-python@v7
25
+ with:
26
+ python-version: "3.12"
27
+ - id: version
28
+ run: |
29
+ python - <<'PY' >> "$GITHUB_OUTPUT"
30
+ import json, tomllib
31
+ py = tomllib.load(open("pyproject.toml", "rb"))["project"]["version"]
32
+ web = json.load(open("web/package.json"))["version"]
33
+ assert py == web, f"pyproject.toml ({py}) and web/package.json ({web}) differ"
34
+ print(f"version={py}")
35
+ PY
36
+ - name: The tag matches the version
37
+ if: startsWith(github.ref, 'refs/tags/v')
38
+ run: test "v${{ steps.version.outputs.version }}" = "${GITHUB_REF_NAME}"
39
+ - name: The changelog has notes for it
40
+ run: python scripts/changelog_notes.py "${{ steps.version.outputs.version }}" > /dev/null
41
+
42
+ build:
43
+ needs: verify
44
+ runs-on: ubuntu-latest
45
+ steps:
46
+ - uses: actions/checkout@v7
47
+ - uses: actions/setup-python@v7
48
+ with:
49
+ python-version: "3.12"
50
+ - uses: actions/setup-node@v7
51
+ with:
52
+ node-version: 22
53
+ - run: pip install build
54
+ - run: python scripts/build_release.py
55
+ - run: python -m build --sdist --outdir dist
56
+ - name: The wheel ships the web UI
57
+ run: python -c "import glob, zipfile; assert 'vicecut/_spa/index.html' in zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist()"
58
+ - uses: actions/upload-artifact@v7
59
+ with:
60
+ name: dist
61
+ path: dist/*
62
+
63
+ pypi:
64
+ needs: build
65
+ if: startsWith(github.ref, 'refs/tags/v')
66
+ runs-on: ubuntu-latest
67
+ environment: pypi # configure the trusted publisher for this environment on pypi.org
68
+ permissions:
69
+ id-token: write
70
+ steps:
71
+ - uses: actions/download-artifact@v4
72
+ with:
73
+ name: dist
74
+ path: dist
75
+ - uses: pypa/gh-action-pypi-publish@release/v1
76
+
77
+ docker:
78
+ needs: verify
79
+ runs-on: ubuntu-latest
80
+ permissions:
81
+ contents: read
82
+ packages: write
83
+ steps:
84
+ - uses: actions/checkout@v7
85
+ - uses: docker/setup-qemu-action@v4
86
+ - uses: docker/setup-buildx-action@v4
87
+ - uses: docker/login-action@v4
88
+ if: startsWith(github.ref, 'refs/tags/v')
89
+ with:
90
+ registry: ghcr.io
91
+ username: ${{ github.actor }}
92
+ password: ${{ secrets.GITHUB_TOKEN }}
93
+ - id: meta
94
+ uses: docker/metadata-action@v5
95
+ with:
96
+ images: ghcr.io/${{ github.repository }}
97
+ tags: |
98
+ type=semver,pattern={{version}}
99
+ type=semver,pattern={{major}}.{{minor}}
100
+ type=raw,value=latest
101
+ - uses: docker/build-push-action@v7
102
+ with:
103
+ context: .
104
+ platforms: linux/amd64,linux/arm64
105
+ push: ${{ startsWith(github.ref, 'refs/tags/v') }}
106
+ tags: ${{ steps.meta.outputs.tags }}
107
+ labels: ${{ steps.meta.outputs.labels }}
108
+ cache-from: type=gha
109
+ cache-to: type=gha,mode=max
110
+
111
+ github-release:
112
+ needs: [verify, pypi, docker]
113
+ if: startsWith(github.ref, 'refs/tags/v')
114
+ runs-on: ubuntu-latest
115
+ permissions:
116
+ contents: write
117
+ steps:
118
+ - uses: actions/checkout@v7
119
+ - uses: actions/setup-python@v7
120
+ with:
121
+ python-version: "3.12"
122
+ - run: python scripts/changelog_notes.py "${{ needs.verify.outputs.version }}" > release-notes.md
123
+ - uses: actions/download-artifact@v4
124
+ with:
125
+ name: dist
126
+ path: dist
127
+ - name: Create the GitHub Release
128
+ env:
129
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130
+ run: gh release create "${GITHUB_REF_NAME}" dist/* --title "ViceCut ${GITHUB_REF_NAME}" --notes-file release-notes.md
@@ -0,0 +1,41 @@
1
+ name: visual baselines
2
+
3
+ # Records the screenshots the visual tests compare against, on the same Linux runner CI uses. Fonts
4
+ # render differently on each system, so Linux needs its own recordings. Run it by hand after an
5
+ # intended change to a screen, download the artifact, look at the images, and commit them to
6
+ # web/e2e/visual.spec.ts-snapshots/. It changes nothing in the repository by itself.
7
+
8
+ on:
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ record:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+ - uses: actions/setup-python@v7
20
+ with:
21
+ python-version: "3.12"
22
+ cache: pip
23
+ - uses: actions/setup-node@v7
24
+ with:
25
+ node-version: 22
26
+ cache: npm
27
+ cache-dependency-path: web/package-lock.json
28
+ - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg
29
+ - run: pip install -e .
30
+ - run: npm ci
31
+ working-directory: web
32
+ - run: npx playwright install --with-deps chromium
33
+ working-directory: web
34
+ - run: npm run build
35
+ working-directory: web
36
+ - run: npm run test:visual -- --update-snapshots
37
+ working-directory: web
38
+ - uses: actions/upload-artifact@v7
39
+ with:
40
+ name: visual-baselines-linux
41
+ path: web/e2e/visual.spec.ts-snapshots/*-linux.png
@@ -0,0 +1,56 @@
1
+ # --- personal data, runtime data and secrets: NEVER commit -------------------------------------
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ config.toml
6
+ /data/
7
+ /workspace/
8
+ /clips/
9
+ /out/
10
+ *.db
11
+ *.db-shm
12
+ *.db-wal
13
+ secret.key
14
+ secrets.json
15
+ auth.json
16
+ /tokens/
17
+ /browser-profiles/
18
+ cookies.txt
19
+ *cookies*.txt
20
+ *.mp4
21
+ *.mkv
22
+ *.webm
23
+ *.mov
24
+ # MPEG-TS live recording segments only (this is a TypeScript project: *.ts is source)
25
+ recordings/**/*.ts
26
+
27
+ # --- python -------------------------------------------------------------------------------------
28
+ __pycache__/
29
+ *.py[cod]
30
+ .venv/
31
+ .mypy_cache/
32
+ .ruff_cache/
33
+ .pytest_cache/
34
+ .hypothesis/
35
+ .import_linter_cache/
36
+ .coverage
37
+ htmlcov/
38
+ dist/
39
+ build/
40
+ *.egg-info/
41
+ src/vicecut/_spa/
42
+
43
+ # --- web ----------------------------------------------------------------------------------------
44
+ web/node_modules/
45
+ web/dist/
46
+ web/coverage/
47
+ web/test-results/
48
+ web/playwright-report/
49
+ web/storybook-static/
50
+ web/*.tsbuildinfo
51
+
52
+ # --- editors / OS -------------------------------------------------------------------------------
53
+ .idea/
54
+ .vscode/
55
+ .DS_Store
56
+ Thumbs.db
@@ -0,0 +1,14 @@
1
+ title = "ViceCut gitleaks config"
2
+
3
+ [extend]
4
+ useDefault = true
5
+
6
+ # Test fixtures use obviously fake credentials (a made-up Telegram token, a sample password).
7
+ # Real secrets never belong in the repository: see SECURITY.md.
8
+ [[allowlists]]
9
+ description = "fake credentials used by unit tests"
10
+ paths = [
11
+ '''tests/.*''',
12
+ '''web/src/.*\.test\.tsx?$''',
13
+ '''web/e2e/.*''',
14
+ ]