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.
- vicecut-0.1.0/.dockerignore +40 -0
- vicecut-0.1.0/.editorconfig +21 -0
- vicecut-0.1.0/.env.example +15 -0
- vicecut-0.1.0/.gitattributes +7 -0
- vicecut-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +45 -0
- vicecut-0.1.0/.github/ISSUE_TEMPLATE/config.yml +1 -0
- vicecut-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
- vicecut-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +16 -0
- vicecut-0.1.0/.github/dependabot.yml +51 -0
- vicecut-0.1.0/.github/workflows/ci.yml +218 -0
- vicecut-0.1.0/.github/workflows/release.yml +130 -0
- vicecut-0.1.0/.github/workflows/visual-baselines.yml +41 -0
- vicecut-0.1.0/.gitignore +56 -0
- vicecut-0.1.0/.gitleaks.toml +14 -0
- vicecut-0.1.0/.pre-commit-config.yaml +11 -0
- vicecut-0.1.0/CHANGELOG.md +119 -0
- vicecut-0.1.0/CODE_OF_CONDUCT.md +109 -0
- vicecut-0.1.0/CONTRIBUTING.md +74 -0
- vicecut-0.1.0/DISCLAIMER.md +11 -0
- vicecut-0.1.0/Dockerfile +43 -0
- vicecut-0.1.0/LICENSE +21 -0
- vicecut-0.1.0/NOTICE.md +19 -0
- vicecut-0.1.0/PKG-INFO +323 -0
- vicecut-0.1.0/README.md +268 -0
- vicecut-0.1.0/README.vi.md +256 -0
- vicecut-0.1.0/SECURITY.md +32 -0
- vicecut-0.1.0/THIRD_PARTY_NOTICES.md +314 -0
- vicecut-0.1.0/assets/fonts/BeVietnamPro-Bold.ttf +0 -0
- vicecut-0.1.0/assets/fonts/BeVietnamPro-ExtraBold.ttf +0 -0
- vicecut-0.1.0/assets/fonts/OFL.txt +93 -0
- vicecut-0.1.0/docker-compose.yml +32 -0
- vicecut-0.1.0/docs/adr/0001-hook-writer.md +40 -0
- vicecut-0.1.0/docs/adr/0002-composition-root-factories.md +23 -0
- vicecut-0.1.0/docs/adr/0003-english-ui.md +25 -0
- vicecut-0.1.0/docs/adr/0004-settings-in-db.md +68 -0
- vicecut-0.1.0/docs/adr/0005-studio-authentication.md +40 -0
- vicecut-0.1.0/docs/adr/0006-multi-stage-job-progress.md +59 -0
- vicecut-0.1.0/docs/adr/0007-multi-signal-moment-sources.md +223 -0
- vicecut-0.1.0/docs/adr/0008-gta6-video-discovery.md +32 -0
- vicecut-0.1.0/docs/adr/0009-looking-at-the-picture.md +82 -0
- vicecut-0.1.0/docs/adr/0010-clips-for-fast-scrollers.md +61 -0
- vicecut-0.1.0/docs/adr/0011-past-videos-only.md +62 -0
- vicecut-0.1.0/docs/adr/0012-reading-the-speech.md +46 -0
- vicecut-0.1.0/docs/adr/0013-parallel-ai-work.md +55 -0
- vicecut-0.1.0/docs/adr/0014-radix-themes.md +55 -0
- vicecut-0.1.0/docs/architecture.md +114 -0
- vicecut-0.1.0/docs/brand/logo-readme.png +0 -0
- vicecut-0.1.0/docs/brand/logo-source.png +0 -0
- vicecut-0.1.0/docs/brand/logo.png +0 -0
- vicecut-0.1.0/docs/brand/social-preview.png +0 -0
- vicecut-0.1.0/docs/configuration.md +185 -0
- vicecut-0.1.0/docs/development.md +120 -0
- vicecut-0.1.0/docs/getting-started.md +98 -0
- vicecut-0.1.0/docs/images/clip-review-light.png +0 -0
- vicecut-0.1.0/docs/images/clip-review.png +0 -0
- vicecut-0.1.0/docs/images/clips-table.png +0 -0
- vicecut-0.1.0/docs/images/clips.png +0 -0
- vicecut-0.1.0/docs/images/dashboard-light.png +0 -0
- vicecut-0.1.0/docs/images/dashboard.png +0 -0
- vicecut-0.1.0/docs/images/discover.png +0 -0
- vicecut-0.1.0/docs/images/jobs.png +0 -0
- vicecut-0.1.0/docs/images/keyboard.gif +0 -0
- vicecut-0.1.0/docs/images/palette.png +0 -0
- vicecut-0.1.0/docs/images/phone.png +0 -0
- vicecut-0.1.0/docs/images/publishing.png +0 -0
- vicecut-0.1.0/docs/images/review.gif +0 -0
- vicecut-0.1.0/docs/images/scan.gif +0 -0
- vicecut-0.1.0/docs/images/settings.png +0 -0
- vicecut-0.1.0/docs/images/shortcuts.png +0 -0
- vicecut-0.1.0/docs/images/storage.png +0 -0
- vicecut-0.1.0/docs/images/wizard-models.png +0 -0
- vicecut-0.1.0/docs/images/wizard-system.png +0 -0
- vicecut-0.1.0/docs/troubleshooting.md +113 -0
- vicecut-0.1.0/node_modules/.vite/vitest/CACHEDIR.TAG +3 -0
- vicecut-0.1.0/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- vicecut-0.1.0/node_modules/.vitest-cache/068aabfcbbb80ef64c3f0ccfc7449c8374ede95f +152 -0
- vicecut-0.1.0/node_modules/.vitest-cache/084087ae240b9e2f377beda49f6d16a0c1a30f61 +24 -0
- vicecut-0.1.0/node_modules/.vitest-cache/0de876d56a0d4087b51e57eb16cdc230f6cf0bae +47 -0
- vicecut-0.1.0/node_modules/.vitest-cache/132ac30381e5a3d2b98064726047c9bf6080ebb0 +15 -0
- vicecut-0.1.0/node_modules/.vitest-cache/15694a026d30461f9d1a70d82ab015fbc686d5ff +99 -0
- vicecut-0.1.0/node_modules/.vitest-cache/191e2feb5be076058c2066cdff79195bbd919a91 +65 -0
- vicecut-0.1.0/node_modules/.vitest-cache/1b09ac0780f56e333cb5b7cd3f10399ba705be87 +22 -0
- vicecut-0.1.0/node_modules/.vitest-cache/1db3d7084699a815fe8b618f06db2345ed56bcab +22 -0
- vicecut-0.1.0/node_modules/.vitest-cache/2d768713c8dd09943e883a2eb11a56ea2a526d99 +89 -0
- vicecut-0.1.0/node_modules/.vitest-cache/2d971343691cb069fe6f3291f504c6d385f60746 +101 -0
- vicecut-0.1.0/node_modules/.vitest-cache/32a1995b08fced8283f900d5971d1910b9eedd21 +86 -0
- vicecut-0.1.0/node_modules/.vitest-cache/38dd6c0327ef4825f3328297ff9a3bcd44aaa70f +97 -0
- vicecut-0.1.0/node_modules/.vitest-cache/3af6ded798bdb289eab82a87d25aae56ae301f7e +13 -0
- vicecut-0.1.0/node_modules/.vitest-cache/422d565a1483f155b2e9d12d27770666d8e55036 +82 -0
- vicecut-0.1.0/node_modules/.vitest-cache/441d3a7ed7ddc1ad2cfe17798f84fde0d5d932f6 +60 -0
- vicecut-0.1.0/node_modules/.vitest-cache/44679df88e73433b1bf43147ad3a39482f05a2a4 +313 -0
- vicecut-0.1.0/node_modules/.vitest-cache/45891b9b646f7c3c72b8311fd7395f2e9cdad788 +65 -0
- vicecut-0.1.0/node_modules/.vitest-cache/47716dd54322768e5dab0aa19ec81325da86308f +235 -0
- vicecut-0.1.0/node_modules/.vitest-cache/486354d1ab51038e145b38bd4578d84f13bd8d9e +122 -0
- vicecut-0.1.0/node_modules/.vitest-cache/488f062f70b5a2b3e0723bf7c85ef5a3af04b34b +17 -0
- vicecut-0.1.0/node_modules/.vitest-cache/49bc63d8e33dc8e055c365199fdb67f4707b9871 +301 -0
- vicecut-0.1.0/node_modules/.vitest-cache/5444b1be478be5cc8a510507e26097b0351f210e +40 -0
- vicecut-0.1.0/node_modules/.vitest-cache/61bffd0b451fa288fa1f6673d18aa681aec86915 +53 -0
- vicecut-0.1.0/node_modules/.vitest-cache/6296381bd589df238f0c665d192930f8237914c3 +84 -0
- vicecut-0.1.0/node_modules/.vitest-cache/6660d52e9a5419e086da50cea0e44f2228613d6f +118 -0
- vicecut-0.1.0/node_modules/.vitest-cache/6aef02d88e458a9ea7e0b304cd965850f543d9fd +119 -0
- vicecut-0.1.0/node_modules/.vitest-cache/6c4b4e3b41d63b57f99dbd314452776e61349651 +101 -0
- vicecut-0.1.0/node_modules/.vitest-cache/6cb8785516af0bca5cd5dc09b56a52e4ff324728 +102 -0
- vicecut-0.1.0/node_modules/.vitest-cache/72555c2ff6ad86a90c5d0609fab23f7c0d838c62 +118 -0
- vicecut-0.1.0/node_modules/.vitest-cache/730064342855dab1f552e9fcac7509d1d77f2790 +69 -0
- vicecut-0.1.0/node_modules/.vitest-cache/7c4077fbb3019b9735eede8a30e8b198bd02094b +112 -0
- vicecut-0.1.0/node_modules/.vitest-cache/85f16643d9b2a6c6f22ffc36690103a3dad6f757 +31 -0
- vicecut-0.1.0/node_modules/.vitest-cache/8b9d7e781dc88b4990fb1477f70877266eeef7ca +169 -0
- vicecut-0.1.0/node_modules/.vitest-cache/9ac5ee326c01e3afac56b495f92456c84dd0252b +53 -0
- vicecut-0.1.0/node_modules/.vitest-cache/9dc2a6bd73e7b977d15e821a1277dc7ee952fe4a +13 -0
- vicecut-0.1.0/node_modules/.vitest-cache/CACHEDIR.TAG +3 -0
- vicecut-0.1.0/node_modules/.vitest-cache/_manifest-ViceCut-46c9f0c5.json +88 -0
- vicecut-0.1.0/node_modules/.vitest-cache/_metadata.json +3 -0
- vicecut-0.1.0/node_modules/.vitest-cache/a27445cde57ca81c73d79d68d1ce2f9c57bd7ce0 +63 -0
- vicecut-0.1.0/node_modules/.vitest-cache/a3723afa4af1d2022630bc73a20a455951f4dd5b +81 -0
- vicecut-0.1.0/node_modules/.vitest-cache/a56350616cc836c1957d2f7759edcdf7e2d1ece6 +53 -0
- vicecut-0.1.0/node_modules/.vitest-cache/a6c63587560782b706d43ec91099cd7d3f28ee9a +166 -0
- vicecut-0.1.0/node_modules/.vitest-cache/a9379ae759ab7e7dc189cc26f0a8835c0f147f26 +143 -0
- vicecut-0.1.0/node_modules/.vitest-cache/aba9dedb2421d4abb62b1de6b71b9067c89643e3 +40 -0
- vicecut-0.1.0/node_modules/.vitest-cache/aff00860863f29987e8f6b338c03b91ff3dc3861 +164 -0
- vicecut-0.1.0/node_modules/.vitest-cache/b4dabcd54c31ff43a6556069133e4ef6cbd867cf +149 -0
- vicecut-0.1.0/node_modules/.vitest-cache/b70047490cecd7dff672a4005d9a11a5632555fa +94 -0
- vicecut-0.1.0/node_modules/.vitest-cache/bc73f1665c29610b340a4a7c5fe8e90e9b61d01e +104 -0
- vicecut-0.1.0/node_modules/.vitest-cache/c1bd614a67c49aac5ce0792aefd13a6ee3f5394c +31 -0
- vicecut-0.1.0/node_modules/.vitest-cache/c4ead27d96544f7dcc9ece41c74f5f537ad06b13 +34 -0
- vicecut-0.1.0/node_modules/.vitest-cache/c586b55976932b07aa09ac8413219cabc776d9b9 +38 -0
- vicecut-0.1.0/node_modules/.vitest-cache/c6d9ec3e40eb629222b6be7a99d6e8c1436d5c48 +16 -0
- vicecut-0.1.0/node_modules/.vitest-cache/c945db8099036a1c5c28ae55b464f5484b42f9e6 +25 -0
- vicecut-0.1.0/node_modules/.vitest-cache/ca2fec4ace802da3c4d86f11f58d784691227359 +11 -0
- vicecut-0.1.0/node_modules/.vitest-cache/cb7ce5614b1f9560902d76ab0b6a99ff397780c3 +98 -0
- vicecut-0.1.0/node_modules/.vitest-cache/d87de89f25f444906fb6c7a301ee4e08fffe373b +146 -0
- vicecut-0.1.0/node_modules/.vitest-cache/dc6e29ead9a8a02f2ac2a059a200f864ff022378 +278 -0
- vicecut-0.1.0/node_modules/.vitest-cache/dc6fda3f2673a0f263cc1390a546f5d92c3f97f9 +13 -0
- vicecut-0.1.0/node_modules/.vitest-cache/ddac07e9f9ef7f2c1618e305f5df9ecb400ecc00 +34 -0
- vicecut-0.1.0/node_modules/.vitest-cache/e25fa92c25d8b2d1d524ed99d75c4b40c9aec2aa +94 -0
- vicecut-0.1.0/node_modules/.vitest-cache/e9a4af8c9e49854240dcd9773f00439970b8a83c +19 -0
- vicecut-0.1.0/node_modules/.vitest-cache/ea3d8ead26c932b087e1385d7f429caa78899056 +52 -0
- vicecut-0.1.0/node_modules/.vitest-cache/f5286f59722be21cf41e0cee042726b8aa5f87fe +26 -0
- vicecut-0.1.0/node_modules/.vitest-cache/fa15e5177d3b4f22fcfa70584f2cbde1cb9b3898 +152 -0
- vicecut-0.1.0/node_modules/.vitest-cache/fce8f53ddcee92a99a5079baf2e6967d83272ce7 +21 -0
- vicecut-0.1.0/node_modules/.vitest-cache/fdd90308011fc724ee80654e3d0233cc717f0faa +29 -0
- vicecut-0.1.0/node_modules/.vitest-cache/fe570bbdbea3744b022e48c759fe4ad8838f2ef1 +20 -0
- vicecut-0.1.0/node_modules/.vitest-cache/ff58a57c22f2d104db839cf65e790c31b5854f2a +25 -0
- vicecut-0.1.0/pyproject.toml +122 -0
- vicecut-0.1.0/scripts/build_release.py +43 -0
- vicecut-0.1.0/scripts/changelog_notes.py +35 -0
- vicecut-0.1.0/scripts/docker_smoke.sh +47 -0
- vicecut-0.1.0/scripts/env.ps1 +29 -0
- vicecut-0.1.0/scripts/generate_config_docs.py +129 -0
- vicecut-0.1.0/scripts/make_brand_assets.py +132 -0
- vicecut-0.1.0/scripts/make_screenshots.py +324 -0
- vicecut-0.1.0/scripts/third_party_notices.py +238 -0
- vicecut-0.1.0/src/vicecut/__init__.py +3 -0
- vicecut-0.1.0/src/vicecut/__main__.py +3 -0
- vicecut-0.1.0/src/vicecut/adapters/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/auth/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/auth/credentials.py +84 -0
- vicecut-0.1.0/src/vicecut/adapters/deps.py +16 -0
- vicecut-0.1.0/src/vicecut/adapters/events/__init__.py +0 -0
- vicecut-0.1.0/src/vicecut/adapters/events/in_memory_bus.py +57 -0
- vicecut-0.1.0/src/vicecut/adapters/health/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/health/commands.py +37 -0
- vicecut-0.1.0/src/vicecut/adapters/health/hardware.py +78 -0
- vicecut-0.1.0/src/vicecut/adapters/health/services.py +196 -0
- vicecut-0.1.0/src/vicecut/adapters/health/system.py +213 -0
- vicecut-0.1.0/src/vicecut/adapters/http.py +152 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/chat.py +68 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/hook_writer.py +249 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/judge.py +154 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/probe.py +60 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/prompts/hook_generate.txt +62 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/prompts/hook_select.txt +20 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/pull.py +58 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/scene.py +132 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/speech_judge.py +80 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/subtitle_editor.py +112 -0
- vicecut-0.1.0/src/vicecut/adapters/llm/trimmer.py +105 -0
- vicecut-0.1.0/src/vicecut/adapters/media/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/media/ass.py +271 -0
- vicecut-0.1.0/src/vicecut/adapters/media/cuda_libraries.py +52 -0
- vicecut-0.1.0/src/vicecut/adapters/media/cutter.py +37 -0
- vicecut-0.1.0/src/vicecut/adapters/media/encoders.py +93 -0
- vicecut-0.1.0/src/vicecut/adapters/media/face_model/LICENSE.yunet +21 -0
- vicecut-0.1.0/src/vicecut/adapters/media/face_model/face_detection_yunet_2023mar.onnx +0 -0
- vicecut-0.1.0/src/vicecut/adapters/media/faces.py +44 -0
- vicecut-0.1.0/src/vicecut/adapters/media/ffmpeg.py +170 -0
- vicecut-0.1.0/src/vicecut/adapters/media/ffmpeg_progress.py +52 -0
- vicecut-0.1.0/src/vicecut/adapters/media/frames.py +34 -0
- vicecut-0.1.0/src/vicecut/adapters/media/gpu_fault.py +50 -0
- vicecut-0.1.0/src/vicecut/adapters/media/layouts.py +150 -0
- vicecut-0.1.0/src/vicecut/adapters/media/loudness.py +74 -0
- vicecut-0.1.0/src/vicecut/adapters/media/models.py +39 -0
- vicecut-0.1.0/src/vicecut/adapters/media/preview.py +76 -0
- vicecut-0.1.0/src/vicecut/adapters/media/process.py +115 -0
- vicecut-0.1.0/src/vicecut/adapters/media/progress_tail.py +115 -0
- vicecut-0.1.0/src/vicecut/adapters/media/renderer.py +174 -0
- vicecut-0.1.0/src/vicecut/adapters/media/speech_skim.py +54 -0
- vicecut-0.1.0/src/vicecut/adapters/media/steady_face.py +58 -0
- vicecut-0.1.0/src/vicecut/adapters/media/thumbnails.py +32 -0
- vicecut-0.1.0/src/vicecut/adapters/media/transcriber.py +187 -0
- vicecut-0.1.0/src/vicecut/adapters/media/vi_words.py +61 -0
- vicecut-0.1.0/src/vicecut/adapters/media/vocals.py +103 -0
- vicecut-0.1.0/src/vicecut/adapters/media/webcam.py +85 -0
- vicecut-0.1.0/src/vicecut/adapters/media/webcam_overlay.py +77 -0
- vicecut-0.1.0/src/vicecut/adapters/notify.py +47 -0
- vicecut-0.1.0/src/vicecut/adapters/secrets/__init__.py +0 -0
- vicecut-0.1.0/src/vicecut/adapters/secrets/fernet_vault.py +120 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/data_folder.py +120 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/hook_context.py +105 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/__init__.py +31 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/account_store.py +73 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/app_state_store.py +26 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/channel_store.py +131 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/connection.py +154 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/found_video_store.py +91 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0001_init.sql +21 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0002_production.sql +97 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0003_settings_history.sql +10 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0004_channel_note.sql +2 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0005_app_state.sql +6 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0006_job_progress.sql +10 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0007_found_videos.sql +16 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0008_scanned_videos.sql +8 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrations/0009_found_video_followed.sql +2 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/migrator.py +170 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/scan_log.py +35 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/settings_store.py +100 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/store.py +230 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/studio_queries.py +195 -0
- vicecut-0.1.0/src/vicecut/adapters/storage/sqlite/studio_store.py +151 -0
- vicecut-0.1.0/src/vicecut/adapters/system.py +16 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/browser.py +108 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/clip_file.py +13 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/dry_run.py +22 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/oauth_callback.py +55 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/official.py +262 -0
- vicecut-0.1.0/src/vicecut/adapters/tiktok/readiness.py +26 -0
- vicecut-0.1.0/src/vicecut/adapters/web/__init__.py +0 -0
- vicecut-0.1.0/src/vicecut/adapters/web/app.py +94 -0
- vicecut-0.1.0/src/vicecut/adapters/web/deps.py +64 -0
- vicecut-0.1.0/src/vicecut/adapters/web/errors.py +82 -0
- vicecut-0.1.0/src/vicecut/adapters/web/mappers.py +194 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/__init__.py +0 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/accounts.py +36 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/auth.py +50 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/channels.py +61 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/clips.py +121 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/health.py +77 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/jobs.py +54 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/live.py +19 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/secrets.py +39 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/settings.py +146 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/storage.py +23 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/studio.py +86 -0
- vicecut-0.1.0/src/vicecut/adapters/web/routers/videos.py +49 -0
- vicecut-0.1.0/src/vicecut/adapters/web/schemas.py +305 -0
- vicecut-0.1.0/src/vicecut/adapters/web/security.py +71 -0
- vicecut-0.1.0/src/vicecut/adapters/web/settings_mappers.py +105 -0
- vicecut-0.1.0/src/vicecut/adapters/web/settings_schemas.py +108 -0
- vicecut-0.1.0/src/vicecut/adapters/web/sse.py +53 -0
- vicecut-0.1.0/src/vicecut/adapters/web/storage_dtos.py +45 -0
- vicecut-0.1.0/src/vicecut/adapters/web/video_dtos.py +47 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/audio_track.py +39 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/challenge.py +49 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/chat.py +156 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/comments.py +48 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/cookies.py +45 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/dash_sections.py +156 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/footage.py +18 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/inspector.py +69 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/login.py +33 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/progress.py +63 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/recorder.py +209 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/recorder_footage.py +98 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/recorder_runs.py +199 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/video_search.py +105 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/vod_footage.py +244 -0
- vicecut-0.1.0/src/vicecut/adapters/youtube/ytdlp.py +204 -0
- vicecut-0.1.0/src/vicecut/application/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/application/detect.py +121 -0
- vicecut-0.1.0/src/vicecut/application/events.py +65 -0
- vicecut-0.1.0/src/vicecut/application/finish_clips.py +162 -0
- vicecut-0.1.0/src/vicecut/application/hooks.py +61 -0
- vicecut-0.1.0/src/vicecut/application/job_requests.py +119 -0
- vicecut-0.1.0/src/vicecut/application/judging.py +41 -0
- vicecut-0.1.0/src/vicecut/application/live.py +250 -0
- vicecut-0.1.0/src/vicecut/application/live_board.py +102 -0
- vicecut-0.1.0/src/vicecut/application/maintenance.py +153 -0
- vicecut-0.1.0/src/vicecut/application/moment_plan.py +39 -0
- vicecut-0.1.0/src/vicecut/application/moment_sources.py +209 -0
- vicecut-0.1.0/src/vicecut/application/parallel.py +92 -0
- vicecut-0.1.0/src/vicecut/application/plan_session.py +229 -0
- vicecut-0.1.0/src/vicecut/application/ports/__init__.py +299 -0
- vicecut-0.1.0/src/vicecut/application/ports/auth.py +25 -0
- vicecut-0.1.0/src/vicecut/application/ports/health.py +34 -0
- vicecut-0.1.0/src/vicecut/application/ports/moments.py +217 -0
- vicecut-0.1.0/src/vicecut/application/ports/screen.py +27 -0
- vicecut-0.1.0/src/vicecut/application/ports/settings.py +103 -0
- vicecut-0.1.0/src/vicecut/application/ports/setup.py +41 -0
- vicecut-0.1.0/src/vicecut/application/ports/studio.py +160 -0
- vicecut-0.1.0/src/vicecut/application/ports/videos.py +75 -0
- vicecut-0.1.0/src/vicecut/application/produce.py +226 -0
- vicecut-0.1.0/src/vicecut/application/produce_kept.py +102 -0
- vicecut-0.1.0/src/vicecut/application/produce_region.py +202 -0
- vicecut-0.1.0/src/vicecut/application/progress.py +140 -0
- vicecut-0.1.0/src/vicecut/application/progress_throttle.py +39 -0
- vicecut-0.1.0/src/vicecut/application/progress_tracker.py +238 -0
- vicecut-0.1.0/src/vicecut/application/publication_sync.py +75 -0
- vicecut-0.1.0/src/vicecut/application/publish.py +180 -0
- vicecut-0.1.0/src/vicecut/application/publish_router.py +54 -0
- vicecut-0.1.0/src/vicecut/application/queries/__init__.py +116 -0
- vicecut-0.1.0/src/vicecut/application/region_analysis.py +157 -0
- vicecut-0.1.0/src/vicecut/application/region_candidates.py +54 -0
- vicecut-0.1.0/src/vicecut/application/region_media.py +52 -0
- vicecut-0.1.0/src/vicecut/application/region_timing.py +30 -0
- vicecut-0.1.0/src/vicecut/application/region_trim.py +46 -0
- vicecut-0.1.0/src/vicecut/application/rehook.py +119 -0
- vicecut-0.1.0/src/vicecut/application/screen_checks.py +65 -0
- vicecut-0.1.0/src/vicecut/application/settings_runtime.py +65 -0
- vicecut-0.1.0/src/vicecut/application/speech_source.py +103 -0
- vicecut-0.1.0/src/vicecut/application/step_times.py +70 -0
- vicecut-0.1.0/src/vicecut/application/subtitles.py +41 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/accounts.py +64 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/auth.py +144 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/channels.py +89 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/clips.py +102 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/engine.py +128 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/health.py +88 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/job_handlers.py +140 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/job_pools.py +27 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/jobs.py +269 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/publications.py +52 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/secrets.py +83 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/settings.py +138 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/settings_tools.py +92 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/setup.py +136 -0
- vicecut-0.1.0/src/vicecut/application/use_cases/suggestions.py +59 -0
- vicecut-0.1.0/src/vicecut/application/videos.py +213 -0
- vicecut-0.1.0/src/vicecut/application/vod.py +153 -0
- vicecut-0.1.0/src/vicecut/bootstrap/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/bootstrap/cli.py +226 -0
- vicecut-0.1.0/src/vicecut/bootstrap/config.example.toml +138 -0
- vicecut-0.1.0/src/vicecut/bootstrap/config.py +224 -0
- vicecut-0.1.0/src/vicecut/bootstrap/container.py +285 -0
- vicecut-0.1.0/src/vicecut/bootstrap/cuda_path.py +29 -0
- vicecut-0.1.0/src/vicecut/bootstrap/engine_runtime.py +95 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/__init__.py +132 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo.py +249 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_jobs.py +190 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_media.py +197 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_samples.py +79 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_setup.py +156 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/demo_videos.py +72 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/live_parts.py +100 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/pipeline.py +252 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/publishing.py +95 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/real.py +232 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/recording.py +72 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/rendering.py +88 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/secret_env.py +20 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/setup_parts.py +112 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/speech.py +73 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/transcription.py +90 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/watching.py +72 -0
- vicecut-0.1.0/src/vicecut/bootstrap/factories/writers.py +63 -0
- vicecut-0.1.0/src/vicecut/bootstrap/ffmpeg_path.py +32 -0
- vicecut-0.1.0/src/vicecut/bootstrap/hook_eval.py +153 -0
- vicecut-0.1.0/src/vicecut/bootstrap/init_config.py +28 -0
- vicecut-0.1.0/src/vicecut/bootstrap/model_policy.py +13 -0
- vicecut-0.1.0/src/vicecut/bootstrap/periodic.py +52 -0
- vicecut-0.1.0/src/vicecut/bootstrap/runtime.py +204 -0
- vicecut-0.1.0/src/vicecut/bootstrap/serve.py +97 -0
- vicecut-0.1.0/src/vicecut/bootstrap/settings_import.py +96 -0
- vicecut-0.1.0/src/vicecut/bootstrap/spa.py +14 -0
- vicecut-0.1.0/src/vicecut/bootstrap/studio.py +176 -0
- vicecut-0.1.0/src/vicecut/bootstrap/studio_publishing.py +36 -0
- vicecut-0.1.0/src/vicecut/bootstrap/studio_setup.py +35 -0
- vicecut-0.1.0/src/vicecut/bootstrap/studio_storage.py +30 -0
- vicecut-0.1.0/src/vicecut/bootstrap/studio_videos.py +103 -0
- vicecut-0.1.0/src/vicecut/domain/__init__.py +1 -0
- vicecut-0.1.0/src/vicecut/domain/accounts.py +51 -0
- vicecut-0.1.0/src/vicecut/domain/app_settings.py +154 -0
- vicecut-0.1.0/src/vicecut/domain/audience_evidence.py +58 -0
- vicecut-0.1.0/src/vicecut/domain/cadence.py +28 -0
- vicecut-0.1.0/src/vicecut/domain/channels.py +181 -0
- vicecut-0.1.0/src/vicecut/domain/clip_appeal.py +22 -0
- vicecut-0.1.0/src/vicecut/domain/clip_budget.py +20 -0
- vicecut-0.1.0/src/vicecut/domain/clip_publishing.py +47 -0
- vicecut-0.1.0/src/vicecut/domain/clip_trim.py +156 -0
- vicecut-0.1.0/src/vicecut/domain/clips.py +237 -0
- vicecut-0.1.0/src/vicecut/domain/comment_signals.py +88 -0
- vicecut-0.1.0/src/vicecut/domain/engine.py +49 -0
- vicecut-0.1.0/src/vicecut/domain/errors.py +66 -0
- vicecut-0.1.0/src/vicecut/domain/eta.py +60 -0
- vicecut-0.1.0/src/vicecut/domain/found_videos.py +119 -0
- vicecut-0.1.0/src/vicecut/domain/hardware.py +165 -0
- vicecut-0.1.0/src/vicecut/domain/health.py +89 -0
- vicecut-0.1.0/src/vicecut/domain/heatmap.py +50 -0
- vicecut-0.1.0/src/vicecut/domain/hook_heuristics.py +84 -0
- vicecut-0.1.0/src/vicecut/domain/hook_policy.py +174 -0
- vicecut-0.1.0/src/vicecut/domain/hooks.py +108 -0
- vicecut-0.1.0/src/vicecut/domain/jobs.py +125 -0
- vicecut-0.1.0/src/vicecut/domain/language.py +92 -0
- vicecut-0.1.0/src/vicecut/domain/loudness.py +90 -0
- vicecut-0.1.0/src/vicecut/domain/models.py +195 -0
- vicecut-0.1.0/src/vicecut/domain/passwords.py +46 -0
- vicecut-0.1.0/src/vicecut/domain/post_text.py +79 -0
- vicecut-0.1.0/src/vicecut/domain/profanity.py +80 -0
- vicecut-0.1.0/src/vicecut/domain/progress.py +224 -0
- vicecut-0.1.0/src/vicecut/domain/progress_codec.py +122 -0
- vicecut-0.1.0/src/vicecut/domain/region_merge.py +49 -0
- vicecut-0.1.0/src/vicecut/domain/region_model.py +75 -0
- vicecut-0.1.0/src/vicecut/domain/regions.py +172 -0
- vicecut-0.1.0/src/vicecut/domain/retry.py +85 -0
- vicecut-0.1.0/src/vicecut/domain/scanned_videos.py +36 -0
- vicecut-0.1.0/src/vicecut/domain/scoring.py +102 -0
- vicecut-0.1.0/src/vicecut/domain/screen.py +88 -0
- vicecut-0.1.0/src/vicecut/domain/settings_changes.py +75 -0
- vicecut-0.1.0/src/vicecut/domain/settings_codec.py +120 -0
- vicecut-0.1.0/src/vicecut/domain/settings_fields.py +315 -0
- vicecut-0.1.0/src/vicecut/domain/settings_schema.py +59 -0
- vicecut-0.1.0/src/vicecut/domain/settings_sections.py +251 -0
- vicecut-0.1.0/src/vicecut/domain/settings_validation.py +73 -0
- vicecut-0.1.0/src/vicecut/domain/settings_videos.py +47 -0
- vicecut-0.1.0/src/vicecut/domain/setup.py +39 -0
- vicecut-0.1.0/src/vicecut/domain/signals.py +68 -0
- vicecut-0.1.0/src/vicecut/domain/speech_moments.py +63 -0
- vicecut-0.1.0/src/vicecut/domain/spike.py +105 -0
- vicecut-0.1.0/src/vicecut/domain/storage_policy.py +139 -0
- vicecut-0.1.0/src/vicecut/domain/subtitles.py +140 -0
- vicecut-0.1.0/src/vicecut/domain/topics.py +34 -0
- vicecut-0.1.0/src/vicecut/domain/transcript_lines.py +64 -0
- vicecut-0.1.0/src/vicecut/domain/video.py +20 -0
- vicecut-0.1.0/src/vicecut/model_catalog.json +27 -0
- vicecut-0.1.0/tests/__init__.py +0 -0
- vicecut-0.1.0/tests/fakes.py +252 -0
- vicecut-0.1.0/tests/fixtures/heatmap_regular_100.json +506 -0
- vicecut-0.1.0/tests/fixtures/hooks/01_lo_mom_ban_dong_doi.json +64 -0
- vicecut-0.1.0/tests/fixtures/hooks/02_bug_xe_bay.json +60 -0
- vicecut-0.1.0/tests/fixtures/hooks/03_thua_ngo_ngan.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/04_noi_chuyen_voi_chat.json +60 -0
- vicecut-0.1.0/tests/fixtures/hooks/05_transcript_rong.json +25 -0
- vicecut-0.1.0/tests/fixtures/hooks/06_sai_chinh_ta_nang.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/07_prompt_injection.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/08_jump_scare.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/09_donate_nham.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/10_tu_trao.json +55 -0
- vicecut-0.1.0/tests/fixtures/hooks/11_noi_mot_dang_lam_mot_neo.json +59 -0
- vicecut-0.1.0/tests/fixtures/hooks/12_lac_duong.json +59 -0
- vicecut-0.1.0/tests/integration/__init__.py +0 -0
- vicecut-0.1.0/tests/integration/test_ffmpeg_progress.py +69 -0
- vicecut-0.1.0/tests/integration/test_ffmpeg_render.py +176 -0
- vicecut-0.1.0/tests/integration/test_moment_media.py +74 -0
- vicecut-0.1.0/tests/unit/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/domain/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/domain/test_app_settings.py +245 -0
- vicecut-0.1.0/tests/unit/domain/test_audience_evidence.py +68 -0
- vicecut-0.1.0/tests/unit/domain/test_channels.py +218 -0
- vicecut-0.1.0/tests/unit/domain/test_clip_appeal.py +24 -0
- vicecut-0.1.0/tests/unit/domain/test_clip_budget.py +29 -0
- vicecut-0.1.0/tests/unit/domain/test_clip_publishing.py +45 -0
- vicecut-0.1.0/tests/unit/domain/test_clips.py +289 -0
- vicecut-0.1.0/tests/unit/domain/test_engine.py +59 -0
- vicecut-0.1.0/tests/unit/domain/test_found_videos.py +109 -0
- vicecut-0.1.0/tests/unit/domain/test_hardware.py +167 -0
- vicecut-0.1.0/tests/unit/domain/test_hook_policy_echo.py +31 -0
- vicecut-0.1.0/tests/unit/domain/test_hook_policy_style.py +55 -0
- vicecut-0.1.0/tests/unit/domain/test_jobs.py +118 -0
- vicecut-0.1.0/tests/unit/domain/test_moment_signals.py +349 -0
- vicecut-0.1.0/tests/unit/domain/test_moments_settings.py +79 -0
- vicecut-0.1.0/tests/unit/domain/test_progress.py +199 -0
- vicecut-0.1.0/tests/unit/domain/test_scanned_videos.py +42 -0
- vicecut-0.1.0/tests/unit/domain/test_screen.py +53 -0
- vicecut-0.1.0/tests/unit/domain/test_speech_moments.py +53 -0
- vicecut-0.1.0/tests/unit/domain/test_topics.py +15 -0
- vicecut-0.1.0/tests/unit/engine/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/engine/recorder_fakes.py +86 -0
- vicecut-0.1.0/tests/unit/engine/test_live_backoff.py +162 -0
- vicecut-0.1.0/tests/unit/engine/test_maintenance.py +138 -0
- vicecut-0.1.0/tests/unit/engine/test_recorder.py +236 -0
- vicecut-0.1.0/tests/unit/engine/test_retry.py +99 -0
- vicecut-0.1.0/tests/unit/engine/test_ring_buffer.py +92 -0
- vicecut-0.1.0/tests/unit/engine/test_runtime.py +183 -0
- vicecut-0.1.0/tests/unit/engine/test_storage_policy.py +149 -0
- vicecut-0.1.0/tests/unit/health/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/health/test_health_checks.py +351 -0
- vicecut-0.1.0/tests/unit/storage/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/storage/test_channel_store.py +96 -0
- vicecut-0.1.0/tests/unit/storage/test_connection.py +135 -0
- vicecut-0.1.0/tests/unit/storage/test_data_folder.py +69 -0
- vicecut-0.1.0/tests/unit/storage/test_job_progress_store.py +53 -0
- vicecut-0.1.0/tests/unit/storage/test_migrations.py +288 -0
- vicecut-0.1.0/tests/unit/storage/test_secret_vault.py +53 -0
- vicecut-0.1.0/tests/unit/storage/test_source_quality.py +56 -0
- vicecut-0.1.0/tests/unit/studio/__init__.py +0 -0
- vicecut-0.1.0/tests/unit/studio/test_accounts.py +189 -0
- vicecut-0.1.0/tests/unit/studio/test_api.py +275 -0
- vicecut-0.1.0/tests/unit/studio/test_auth.py +309 -0
- vicecut-0.1.0/tests/unit/studio/test_channels.py +93 -0
- vicecut-0.1.0/tests/unit/studio/test_clip_copy.py +112 -0
- vicecut-0.1.0/tests/unit/studio/test_job_handlers.py +176 -0
- vicecut-0.1.0/tests/unit/studio/test_job_pools.py +40 -0
- vicecut-0.1.0/tests/unit/studio/test_live_and_discover.py +169 -0
- vicecut-0.1.0/tests/unit/studio/test_progress_runner.py +223 -0
- vicecut-0.1.0/tests/unit/studio/test_publishing.py +188 -0
- vicecut-0.1.0/tests/unit/studio/test_settings_api.py +158 -0
- vicecut-0.1.0/tests/unit/studio/test_settings_service.py +222 -0
- vicecut-0.1.0/tests/unit/studio/test_setup_api.py +201 -0
- vicecut-0.1.0/tests/unit/studio/test_use_cases.py +225 -0
- vicecut-0.1.0/tests/unit/test_adapters.py +613 -0
- vicecut-0.1.0/tests/unit/test_audience_flow.py +151 -0
- vicecut-0.1.0/tests/unit/test_bootstrap.py +87 -0
- vicecut-0.1.0/tests/unit/test_clip_thumbnails.py +36 -0
- vicecut-0.1.0/tests/unit/test_dash_sections.py +185 -0
- vicecut-0.1.0/tests/unit/test_demo_media.py +57 -0
- vicecut-0.1.0/tests/unit/test_domain.py +262 -0
- vicecut-0.1.0/tests/unit/test_ffmpeg_lookup.py +15 -0
- vicecut-0.1.0/tests/unit/test_followed_videos.py +105 -0
- vicecut-0.1.0/tests/unit/test_found_videos_app.py +397 -0
- vicecut-0.1.0/tests/unit/test_gpu_libraries.py +93 -0
- vicecut-0.1.0/tests/unit/test_hls_url.py +130 -0
- vicecut-0.1.0/tests/unit/test_hook_domain.py +227 -0
- vicecut-0.1.0/tests/unit/test_hook_fixtures.py +94 -0
- vicecut-0.1.0/tests/unit/test_hook_writers.py +306 -0
- vicecut-0.1.0/tests/unit/test_hot_apply.py +121 -0
- vicecut-0.1.0/tests/unit/test_http_deadline.py +63 -0
- vicecut-0.1.0/tests/unit/test_init_config.py +30 -0
- vicecut-0.1.0/tests/unit/test_job_requests.py +101 -0
- vicecut-0.1.0/tests/unit/test_moment_adapters.py +199 -0
- vicecut-0.1.0/tests/unit/test_parallel_reporting.py +64 -0
- vicecut-0.1.0/tests/unit/test_plan_session_progress.py +64 -0
- vicecut-0.1.0/tests/unit/test_process_tree.py +91 -0
- vicecut-0.1.0/tests/unit/test_progress_sources.py +227 -0
- vicecut-0.1.0/tests/unit/test_progress_tail.py +87 -0
- vicecut-0.1.0/tests/unit/test_region_download.py +346 -0
- vicecut-0.1.0/tests/unit/test_release_files.py +66 -0
- vicecut-0.1.0/tests/unit/test_replay_chat.py +84 -0
- vicecut-0.1.0/tests/unit/test_scan_log.py +22 -0
- vicecut-0.1.0/tests/unit/test_scene_inspector.py +79 -0
- vicecut-0.1.0/tests/unit/test_screen_checks.py +93 -0
- vicecut-0.1.0/tests/unit/test_settings_adapters.py +163 -0
- vicecut-0.1.0/tests/unit/test_spa_directory.py +29 -0
- vicecut-0.1.0/tests/unit/test_speech_judge.py +39 -0
- vicecut-0.1.0/tests/unit/test_speech_source.py +144 -0
- vicecut-0.1.0/tests/unit/test_speed_parts.py +245 -0
- vicecut-0.1.0/tests/unit/test_steady_face.py +28 -0
- vicecut-0.1.0/tests/unit/test_use_cases.py +351 -0
- vicecut-0.1.0/tests/unit/test_vod_footage.py +173 -0
- vicecut-0.1.0/tests/unit/test_vod_regions.py +433 -0
- vicecut-0.1.0/tests/unit/test_webcam_overlay.py +77 -0
- vicecut-0.1.0/tests/unit/test_youtube_cookies.py +149 -0
- vicecut-0.1.0/web/.dependency-cruiser.cjs +53 -0
- vicecut-0.1.0/web/.storybook/main.ts +12 -0
- vicecut-0.1.0/web/.storybook/preview.tsx +36 -0
- vicecut-0.1.0/web/e2e/appearance.json +23 -0
- vicecut-0.1.0/web/e2e/auth.spec.ts +52 -0
- vicecut-0.1.0/web/e2e/flows.spec.ts +147 -0
- vicecut-0.1.0/web/e2e/jobs.spec.ts +111 -0
- vicecut-0.1.0/web/e2e/pages.spec.ts +67 -0
- vicecut-0.1.0/web/e2e/screens.spec.ts +25 -0
- vicecut-0.1.0/web/e2e/setup.spec.ts +108 -0
- vicecut-0.1.0/web/e2e/shell.spec.ts +69 -0
- vicecut-0.1.0/web/e2e/stories.spec.ts +37 -0
- vicecut-0.1.0/web/e2e/videos.spec.ts +74 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts +67 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clip-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/clips-table-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/dashboard-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/discover-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/not-found-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/publishing-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-light-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-desktop-light-visual-win32.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-phone-dark-visual-linux.png +0 -0
- vicecut-0.1.0/web/e2e/visual.spec.ts-snapshots/settings-phone-dark-visual-win32.png +0 -0
- vicecut-0.1.0/web/eslint.config.js +21 -0
- vicecut-0.1.0/web/index.html +18 -0
- vicecut-0.1.0/web/openapi.json +5060 -0
- vicecut-0.1.0/web/package-lock.json +12492 -0
- vicecut-0.1.0/web/package.json +70 -0
- vicecut-0.1.0/web/playwright.config.ts +60 -0
- vicecut-0.1.0/web/postcss.config.js +1 -0
- vicecut-0.1.0/web/public/apple-touch-icon.png +0 -0
- vicecut-0.1.0/web/public/brand-mark.png +0 -0
- vicecut-0.1.0/web/public/favicon-32.png +0 -0
- vicecut-0.1.0/web/public/icon-192.png +0 -0
- vicecut-0.1.0/web/public/icon-512.png +0 -0
- vicecut-0.1.0/web/public/site.webmanifest +13 -0
- vicecut-0.1.0/web/src/app/providers.tsx +48 -0
- vicecut-0.1.0/web/src/app/realtime.test.ts +28 -0
- vicecut-0.1.0/web/src/app/realtime.ts +67 -0
- vicecut-0.1.0/web/src/app/router.tsx +92 -0
- vicecut-0.1.0/web/src/app/stories/StatusBadges.stories.tsx +36 -0
- vicecut-0.1.0/web/src/app/styles.css +35 -0
- vicecut-0.1.0/web/src/entities/account/AccountStatusBadge.tsx +9 -0
- vicecut-0.1.0/web/src/entities/account/api.ts +14 -0
- vicecut-0.1.0/web/src/entities/account/index.ts +4 -0
- vicecut-0.1.0/web/src/entities/account/status.test.ts +17 -0
- vicecut-0.1.0/web/src/entities/account/status.ts +11 -0
- vicecut-0.1.0/web/src/entities/auth/api.ts +23 -0
- vicecut-0.1.0/web/src/entities/auth/index.ts +2 -0
- vicecut-0.1.0/web/src/entities/channel/ChannelStatusBadge.tsx +9 -0
- vicecut-0.1.0/web/src/entities/channel/api.ts +23 -0
- vicecut-0.1.0/web/src/entities/channel/index.ts +4 -0
- vicecut-0.1.0/web/src/entities/channel/status.test.ts +17 -0
- vicecut-0.1.0/web/src/entities/channel/status.ts +16 -0
- vicecut-0.1.0/web/src/entities/clip/ClipCard.stories.tsx +35 -0
- vicecut-0.1.0/web/src/entities/clip/ClipCard.test.tsx +60 -0
- vicecut-0.1.0/web/src/entities/clip/ClipCard.tsx +58 -0
- vicecut-0.1.0/web/src/entities/clip/ClipStatusBadge.test.tsx +20 -0
- vicecut-0.1.0/web/src/entities/clip/ClipStatusBadge.tsx +9 -0
- vicecut-0.1.0/web/src/entities/clip/ClipTable.test.tsx +31 -0
- vicecut-0.1.0/web/src/entities/clip/ClipTable.tsx +40 -0
- vicecut-0.1.0/web/src/entities/clip/api.ts +44 -0
- vicecut-0.1.0/web/src/entities/clip/index.ts +9 -0
- vicecut-0.1.0/web/src/entities/clip/navigation.test.ts +42 -0
- vicecut-0.1.0/web/src/entities/clip/navigation.ts +28 -0
- vicecut-0.1.0/web/src/entities/clip/status.ts +35 -0
- vicecut-0.1.0/web/src/entities/found-video/FoundVideoRow.stories.tsx +59 -0
- vicecut-0.1.0/web/src/entities/found-video/FoundVideoRow.tsx +53 -0
- vicecut-0.1.0/web/src/entities/found-video/age.test.ts +26 -0
- vicecut-0.1.0/web/src/entities/found-video/age.ts +15 -0
- vicecut-0.1.0/web/src/entities/found-video/api.ts +19 -0
- vicecut-0.1.0/web/src/entities/found-video/arrange.test.ts +31 -0
- vicecut-0.1.0/web/src/entities/found-video/arrange.ts +32 -0
- vicecut-0.1.0/web/src/entities/found-video/index.ts +6 -0
- vicecut-0.1.0/web/src/entities/health/api.ts +13 -0
- vicecut-0.1.0/web/src/entities/health/index.ts +3 -0
- vicecut-0.1.0/web/src/entities/health/status.test.ts +12 -0
- vicecut-0.1.0/web/src/entities/health/status.ts +9 -0
- vicecut-0.1.0/web/src/entities/job/api.ts +45 -0
- vicecut-0.1.0/web/src/entities/job/index.ts +23 -0
- vicecut-0.1.0/web/src/entities/job/progress.test.ts +126 -0
- vicecut-0.1.0/web/src/entities/job/progress.ts +98 -0
- vicecut-0.1.0/web/src/entities/job/status.ts +14 -0
- vicecut-0.1.0/web/src/entities/job/subject.test.ts +18 -0
- vicecut-0.1.0/web/src/entities/job/subject.ts +12 -0
- vicecut-0.1.0/web/src/entities/job/ui/ItemList.tsx +41 -0
- vicecut-0.1.0/web/src/entities/job/ui/JobLine.tsx +25 -0
- vicecut-0.1.0/web/src/entities/job/ui/JobLink.tsx +13 -0
- vicecut-0.1.0/web/src/entities/job/ui/JobProgress.stories.tsx +158 -0
- vicecut-0.1.0/web/src/entities/job/ui/JobProgressSummary.tsx +30 -0
- vicecut-0.1.0/web/src/entities/job/ui/StageStepper.tsx +99 -0
- vicecut-0.1.0/web/src/entities/job/useTrackedJob.test.tsx +67 -0
- vicecut-0.1.0/web/src/entities/job/useTrackedJob.ts +51 -0
- vicecut-0.1.0/web/src/entities/publication/index.ts +25 -0
- vicecut-0.1.0/web/src/entities/session/api.ts +18 -0
- vicecut-0.1.0/web/src/entities/session/format.test.ts +30 -0
- vicecut-0.1.0/web/src/entities/session/format.ts +13 -0
- vicecut-0.1.0/web/src/entities/session/index.ts +3 -0
- vicecut-0.1.0/web/src/entities/settings/api.ts +70 -0
- vicecut-0.1.0/web/src/entities/settings/index.ts +4 -0
- vicecut-0.1.0/web/src/entities/settings/model.test.ts +35 -0
- vicecut-0.1.0/web/src/entities/settings/model.ts +44 -0
- vicecut-0.1.0/web/src/entities/setup/api.ts +25 -0
- vicecut-0.1.0/web/src/entities/setup/index.ts +3 -0
- vicecut-0.1.0/web/src/entities/setup/steps.test.ts +19 -0
- vicecut-0.1.0/web/src/entities/setup/steps.ts +9 -0
- vicecut-0.1.0/web/src/entities/storage/api.test.ts +26 -0
- vicecut-0.1.0/web/src/entities/storage/api.ts +32 -0
- vicecut-0.1.0/web/src/entities/storage/index.ts +2 -0
- vicecut-0.1.0/web/src/entities/system/index.ts +28 -0
- vicecut-0.1.0/web/src/features/add-channel/AddChannelDialog.test.tsx +46 -0
- vicecut-0.1.0/web/src/features/add-channel/AddChannelDialog.tsx +63 -0
- vicecut-0.1.0/web/src/features/add-channel/index.ts +1 -0
- vicecut-0.1.0/web/src/features/add-channel/useAddChannel.ts +19 -0
- vicecut-0.1.0/web/src/features/cancel-job/CancelJobButton.tsx +21 -0
- vicecut-0.1.0/web/src/features/cancel-job/index.ts +1 -0
- vicecut-0.1.0/web/src/features/change-password/ChangePasswordCard.test.tsx +68 -0
- vicecut-0.1.0/web/src/features/change-password/ChangePasswordCard.tsx +44 -0
- vicecut-0.1.0/web/src/features/change-password/index.ts +1 -0
- vicecut-0.1.0/web/src/features/change-password/useChangePassword.ts +19 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyCard.test.tsx +80 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyCard.tsx +78 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/ClipCopyForm.tsx +55 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/hashtags.test.ts +16 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/hashtags.ts +17 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/index.ts +1 -0
- vicecut-0.1.0/web/src/features/edit-clip-copy/useEditClipCopy.ts +24 -0
- vicecut-0.1.0/web/src/features/edit-settings/ApplyBadge.tsx +12 -0
- vicecut-0.1.0/web/src/features/edit-settings/ConflictDialog.tsx +50 -0
- vicecut-0.1.0/web/src/features/edit-settings/FieldControl.tsx +54 -0
- vicecut-0.1.0/web/src/features/edit-settings/HistoryDialog.tsx +50 -0
- vicecut-0.1.0/web/src/features/edit-settings/LeaveGuard.tsx +42 -0
- vicecut-0.1.0/web/src/features/edit-settings/PresetPicker.tsx +29 -0
- vicecut-0.1.0/web/src/features/edit-settings/ResetSectionButton.tsx +37 -0
- vicecut-0.1.0/web/src/features/edit-settings/RestartBanner.tsx +33 -0
- vicecut-0.1.0/web/src/features/edit-settings/SaveBar.tsx +50 -0
- vicecut-0.1.0/web/src/features/edit-settings/SectionForm.tsx +50 -0
- vicecut-0.1.0/web/src/features/edit-settings/SettingField.tsx +44 -0
- vicecut-0.1.0/web/src/features/edit-settings/controls.test.tsx +131 -0
- vicecut-0.1.0/web/src/features/edit-settings/edit-settings.test.tsx +187 -0
- vicecut-0.1.0/web/src/features/edit-settings/groups.ts +26 -0
- vicecut-0.1.0/web/src/features/edit-settings/index.ts +10 -0
- vicecut-0.1.0/web/src/features/edit-settings/useSettingsDraft.ts +104 -0
- vicecut-0.1.0/web/src/features/edit-settings/useVersionedAction.ts +15 -0
- vicecut-0.1.0/web/src/features/edit-settings/values.ts +16 -0
- vicecut-0.1.0/web/src/features/engine-toggle/EngineToggle.test.tsx +32 -0
- vicecut-0.1.0/web/src/features/engine-toggle/EngineToggle.tsx +42 -0
- vicecut-0.1.0/web/src/features/engine-toggle/index.ts +1 -0
- vicecut-0.1.0/web/src/features/manage-accounts/AccountActions.tsx +43 -0
- vicecut-0.1.0/web/src/features/manage-accounts/AddAccountDialog.tsx +64 -0
- vicecut-0.1.0/web/src/features/manage-accounts/ManageAccounts.test.tsx +79 -0
- vicecut-0.1.0/web/src/features/manage-accounts/index.ts +2 -0
- vicecut-0.1.0/web/src/features/manage-accounts/useAccountMutations.ts +37 -0
- vicecut-0.1.0/web/src/features/manage-channel/ChannelActions.test.tsx +73 -0
- vicecut-0.1.0/web/src/features/manage-channel/ChannelActions.tsx +54 -0
- vicecut-0.1.0/web/src/features/manage-channel/PrioritySelect.tsx +27 -0
- vicecut-0.1.0/web/src/features/manage-channel/index.ts +2 -0
- vicecut-0.1.0/web/src/features/manage-channel/useManageChannel.ts +31 -0
- vicecut-0.1.0/web/src/features/manage-publication/PublicationActions.test.tsx +65 -0
- vicecut-0.1.0/web/src/features/manage-publication/PublicationActions.tsx +16 -0
- vicecut-0.1.0/web/src/features/manage-publication/PublicationButtons.stories.tsx +15 -0
- vicecut-0.1.0/web/src/features/manage-publication/PublicationButtons.tsx +35 -0
- vicecut-0.1.0/web/src/features/manage-publication/index.ts +1 -0
- vicecut-0.1.0/web/src/features/manage-publication/usePublicationActions.ts +27 -0
- vicecut-0.1.0/web/src/features/manage-secrets/SecretField.test.tsx +64 -0
- vicecut-0.1.0/web/src/features/manage-secrets/SecretField.tsx +62 -0
- vicecut-0.1.0/web/src/features/manage-secrets/SecretList.test.tsx +32 -0
- vicecut-0.1.0/web/src/features/manage-secrets/SecretList.tsx +19 -0
- vicecut-0.1.0/web/src/features/manage-secrets/index.ts +1 -0
- vicecut-0.1.0/web/src/features/pause-posting/PausePosting.test.tsx +44 -0
- vicecut-0.1.0/web/src/features/pause-posting/PausePosting.tsx +19 -0
- vicecut-0.1.0/web/src/features/pause-posting/PausePostingView.stories.tsx +14 -0
- vicecut-0.1.0/web/src/features/pause-posting/PausePostingView.tsx +31 -0
- vicecut-0.1.0/web/src/features/pause-posting/index.ts +1 -0
- vicecut-0.1.0/web/src/features/review-clip/ReviewActions.test.tsx +93 -0
- vicecut-0.1.0/web/src/features/review-clip/ReviewActions.tsx +72 -0
- vicecut-0.1.0/web/src/features/review-clip/index.ts +1 -0
- vicecut-0.1.0/web/src/features/review-clip/useReviewClip.ts +38 -0
- vicecut-0.1.0/web/src/features/review-found-video/FoundVideoActions.test.tsx +92 -0
- vicecut-0.1.0/web/src/features/review-found-video/FoundVideoActions.tsx +35 -0
- vicecut-0.1.0/web/src/features/review-found-video/RestoreVideoButton.tsx +24 -0
- vicecut-0.1.0/web/src/features/review-found-video/SearchVideosButton.tsx +25 -0
- vicecut-0.1.0/web/src/features/review-found-video/index.ts +3 -0
- vicecut-0.1.0/web/src/features/review-found-video/useFoundVideoActions.ts +34 -0
- vicecut-0.1.0/web/src/features/review-suggestion/FollowButton.tsx +19 -0
- vicecut-0.1.0/web/src/features/review-suggestion/SuggestionActions.test.tsx +67 -0
- vicecut-0.1.0/web/src/features/review-suggestion/SuggestionActions.tsx +26 -0
- vicecut-0.1.0/web/src/features/review-suggestion/index.ts +2 -0
- vicecut-0.1.0/web/src/features/review-suggestion/useReviewSuggestion.ts +20 -0
- vicecut-0.1.0/web/src/features/run-health/CheckRow.tsx +23 -0
- vicecut-0.1.0/web/src/features/run-health/HealthPanel.stories.tsx +32 -0
- vicecut-0.1.0/web/src/features/run-health/HealthPanel.tsx +49 -0
- vicecut-0.1.0/web/src/features/run-health/HealthSection.tsx +10 -0
- vicecut-0.1.0/web/src/features/run-health/index.ts +4 -0
- vicecut-0.1.0/web/src/features/run-health/run-health.test.tsx +92 -0
- vicecut-0.1.0/web/src/features/run-health/useHealthRun.ts +27 -0
- vicecut-0.1.0/web/src/features/scan-vod/ScanVodDialog.test.tsx +73 -0
- vicecut-0.1.0/web/src/features/scan-vod/ScanVodDialog.tsx +71 -0
- vicecut-0.1.0/web/src/features/scan-vod/index.ts +2 -0
- vicecut-0.1.0/web/src/features/scan-vod/useScanVod.ts +19 -0
- vicecut-0.1.0/web/src/features/settings-tools/AiTestButton.tsx +29 -0
- vicecut-0.1.0/web/src/features/settings-tools/CaptionPreview.tsx +31 -0
- vicecut-0.1.0/web/src/features/settings-tools/PreviewFrame.test.tsx +49 -0
- vicecut-0.1.0/web/src/features/settings-tools/PreviewFrame.tsx +37 -0
- vicecut-0.1.0/web/src/features/settings-tools/TestMessageButton.tsx +23 -0
- vicecut-0.1.0/web/src/features/settings-tools/index.ts +5 -0
- vicecut-0.1.0/web/src/features/settings-tools/settings-tools.test.tsx +65 -0
- vicecut-0.1.0/web/src/features/settings-tools/types.ts +2 -0
- vicecut-0.1.0/web/src/features/settings-tools/useDebounced.ts +10 -0
- vicecut-0.1.0/web/src/features/setup-models/ModelDownload.stories.tsx +22 -0
- vicecut-0.1.0/web/src/features/setup-models/ModelDownload.tsx +46 -0
- vicecut-0.1.0/web/src/features/setup-models/ModelsStep.tsx +58 -0
- vicecut-0.1.0/web/src/features/setup-models/index.ts +2 -0
- vicecut-0.1.0/web/src/features/setup-models/setup-models.test.tsx +116 -0
- vicecut-0.1.0/web/src/features/setup-models/useModelChoices.ts +36 -0
- vicecut-0.1.0/web/src/features/setup-wizard/WizardStepper.stories.tsx +13 -0
- vicecut-0.1.0/web/src/features/setup-wizard/WizardStepper.tsx +24 -0
- vicecut-0.1.0/web/src/features/setup-wizard/index.ts +2 -0
- vicecut-0.1.0/web/src/features/setup-wizard/useSetupActions.ts +23 -0
- vicecut-0.1.0/web/src/features/sign-in/LoginForm.tsx +35 -0
- vicecut-0.1.0/web/src/features/sign-in/SignOutButton.tsx +18 -0
- vicecut-0.1.0/web/src/features/sign-in/index.ts +2 -0
- vicecut-0.1.0/web/src/features/sign-in/sign-in.test.tsx +83 -0
- vicecut-0.1.0/web/src/features/sign-in/useSignIn.ts +22 -0
- vicecut-0.1.0/web/src/features/storage-usage/StorageTodo.tsx +31 -0
- vicecut-0.1.0/web/src/features/storage-usage/StorageUsage.test.tsx +52 -0
- vicecut-0.1.0/web/src/features/storage-usage/StorageUsage.tsx +30 -0
- vicecut-0.1.0/web/src/features/storage-usage/StorageUsageView.stories.tsx +26 -0
- vicecut-0.1.0/web/src/features/storage-usage/StorageUsageView.tsx +44 -0
- vicecut-0.1.0/web/src/features/storage-usage/index.ts +2 -0
- vicecut-0.1.0/web/src/main.tsx +15 -0
- vicecut-0.1.0/web/src/pages/accounts/AccountsPage.tsx +53 -0
- vicecut-0.1.0/web/src/pages/accounts/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/channels/ChannelsPage.tsx +72 -0
- vicecut-0.1.0/web/src/pages/channels/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/clip-detail/ClipDetailPage.tsx +80 -0
- vicecut-0.1.0/web/src/pages/clip-detail/ClipPlayer.tsx +31 -0
- vicecut-0.1.0/web/src/pages/clip-detail/WhyCard.tsx +40 -0
- vicecut-0.1.0/web/src/pages/clip-detail/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/clip-detail/usePlayerKeys.test.tsx +40 -0
- vicecut-0.1.0/web/src/pages/clip-detail/usePlayerKeys.ts +24 -0
- vicecut-0.1.0/web/src/pages/clips/ClipsPage.tsx +71 -0
- vicecut-0.1.0/web/src/pages/clips/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/dashboard/DashboardPage.tsx +121 -0
- vicecut-0.1.0/web/src/pages/dashboard/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/discover/DiscoverPage.tsx +53 -0
- vicecut-0.1.0/web/src/pages/discover/FoundVideosSection.tsx +91 -0
- vicecut-0.1.0/web/src/pages/discover/HiddenSection.test.tsx +58 -0
- vicecut-0.1.0/web/src/pages/discover/HiddenSection.tsx +57 -0
- vicecut-0.1.0/web/src/pages/discover/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/error/ErrorPage.test.tsx +25 -0
- vicecut-0.1.0/web/src/pages/error/ErrorPage.tsx +27 -0
- vicecut-0.1.0/web/src/pages/error/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/jobs/JobList.tsx +51 -0
- vicecut-0.1.0/web/src/pages/jobs/JobsPage.test.tsx +141 -0
- vicecut-0.1.0/web/src/pages/jobs/JobsPage.tsx +75 -0
- vicecut-0.1.0/web/src/pages/jobs/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/live/LivePage.tsx +96 -0
- vicecut-0.1.0/web/src/pages/live/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/login/LoginPage.stories.tsx +20 -0
- vicecut-0.1.0/web/src/pages/login/LoginPage.tsx +23 -0
- vicecut-0.1.0/web/src/pages/login/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/not-found/NotFoundPage.tsx +19 -0
- vicecut-0.1.0/web/src/pages/not-found/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/queue/QueuePage.tsx +54 -0
- vicecut-0.1.0/web/src/pages/queue/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/screens.test.tsx +125 -0
- vicecut-0.1.0/web/src/pages/settings/SettingsEditor.tsx +87 -0
- vicecut-0.1.0/web/src/pages/settings/SettingsNav.tsx +27 -0
- vicecut-0.1.0/web/src/pages/settings/SettingsPage.tsx +36 -0
- vicecut-0.1.0/web/src/pages/settings/SystemSection.tsx +48 -0
- vicecut-0.1.0/web/src/pages/settings/index.ts +3 -0
- vicecut-0.1.0/web/src/pages/settings/sections.ts +21 -0
- vicecut-0.1.0/web/src/pages/setup/SetupPage.test.tsx +114 -0
- vicecut-0.1.0/web/src/pages/setup/SetupPage.tsx +92 -0
- vicecut-0.1.0/web/src/pages/setup/index.ts +1 -0
- vicecut-0.1.0/web/src/pages/setup/steps/PublishingStep.tsx +28 -0
- vicecut-0.1.0/web/src/pages/setup/steps/StreamersStep.tsx +43 -0
- vicecut-0.1.0/web/src/pages/setup/steps/SystemStep.tsx +12 -0
- vicecut-0.1.0/web/src/pages/setup/steps/TestRunStep.tsx +39 -0
- vicecut-0.1.0/web/src/pages/setup/steps/WelcomeStep.tsx +17 -0
- vicecut-0.1.0/web/src/shared/api/auth.test.ts +52 -0
- vicecut-0.1.0/web/src/shared/api/auth.ts +32 -0
- vicecut-0.1.0/web/src/shared/api/client.ts +75 -0
- vicecut-0.1.0/web/src/shared/api/connection.ts +21 -0
- vicecut-0.1.0/web/src/shared/api/events.ts +65 -0
- vicecut-0.1.0/web/src/shared/api/index.ts +6 -0
- vicecut-0.1.0/web/src/shared/api/schema.d.ts +4247 -0
- vicecut-0.1.0/web/src/shared/i18n/en.json +1316 -0
- vicecut-0.1.0/web/src/shared/i18n/index.ts +16 -0
- vicecut-0.1.0/web/src/shared/i18n/vi.json +217 -0
- vicecut-0.1.0/web/src/shared/lib/appearance.test.ts +50 -0
- vicecut-0.1.0/web/src/shared/lib/appearance.ts +58 -0
- vicecut-0.1.0/web/src/shared/lib/bytes.test.ts +16 -0
- vicecut-0.1.0/web/src/shared/lib/bytes.ts +13 -0
- vicecut-0.1.0/web/src/shared/lib/format.test.ts +21 -0
- vicecut-0.1.0/web/src/shared/lib/format.ts +29 -0
- vicecut-0.1.0/web/src/shared/lib/index.ts +7 -0
- vicecut-0.1.0/web/src/shared/lib/shortcuts.test.ts +41 -0
- vicecut-0.1.0/web/src/shared/lib/shortcuts.ts +13 -0
- vicecut-0.1.0/web/src/shared/lib/useNow.ts +13 -0
- vicecut-0.1.0/web/src/shared/lib/usePrefersDark.test.ts +44 -0
- vicecut-0.1.0/web/src/shared/lib/usePrefersDark.ts +23 -0
- vicecut-0.1.0/web/src/shared/ui/Badge.tsx +22 -0
- vicecut-0.1.0/web/src/shared/ui/Button.tsx +39 -0
- vicecut-0.1.0/web/src/shared/ui/Buttons.stories.tsx +35 -0
- vicecut-0.1.0/web/src/shared/ui/Card.tsx +11 -0
- vicecut-0.1.0/web/src/shared/ui/CommandPalette.tsx +91 -0
- vicecut-0.1.0/web/src/shared/ui/Data.stories.tsx +36 -0
- vicecut-0.1.0/web/src/shared/ui/DataTable.tsx +48 -0
- vicecut-0.1.0/web/src/shared/ui/DesignSystem.stories.tsx +235 -0
- vicecut-0.1.0/web/src/shared/ui/DetailList.tsx +21 -0
- vicecut-0.1.0/web/src/shared/ui/Dialog.tsx +27 -0
- vicecut-0.1.0/web/src/shared/ui/EmptyState.tsx +15 -0
- vicecut-0.1.0/web/src/shared/ui/Feedback.stories.tsx +47 -0
- vicecut-0.1.0/web/src/shared/ui/Forms.stories.tsx +85 -0
- vicecut-0.1.0/web/src/shared/ui/IconButton.tsx +17 -0
- vicecut-0.1.0/web/src/shared/ui/InlineAlert.tsx +18 -0
- vicecut-0.1.0/web/src/shared/ui/Kbd.tsx +6 -0
- vicecut-0.1.0/web/src/shared/ui/Layout.stories.tsx +62 -0
- vicecut-0.1.0/web/src/shared/ui/Menu.tsx +52 -0
- vicecut-0.1.0/web/src/shared/ui/NumberField.tsx +37 -0
- vicecut-0.1.0/web/src/shared/ui/Overlays.stories.tsx +68 -0
- vicecut-0.1.0/web/src/shared/ui/PageHeader.tsx +13 -0
- vicecut-0.1.0/web/src/shared/ui/ProblemState.stories.tsx +23 -0
- vicecut-0.1.0/web/src/shared/ui/ProblemState.tsx +15 -0
- vicecut-0.1.0/web/src/shared/ui/ProgressBar.tsx +15 -0
- vicecut-0.1.0/web/src/shared/ui/SegmentedControl.tsx +33 -0
- vicecut-0.1.0/web/src/shared/ui/Select.tsx +32 -0
- vicecut-0.1.0/web/src/shared/ui/Skeleton.tsx +4 -0
- vicecut-0.1.0/web/src/shared/ui/Slider.tsx +30 -0
- vicecut-0.1.0/web/src/shared/ui/StatCard.tsx +22 -0
- vicecut-0.1.0/web/src/shared/ui/Switch.tsx +14 -0
- vicecut-0.1.0/web/src/shared/ui/Tabs.tsx +38 -0
- vicecut-0.1.0/web/src/shared/ui/TagInput.tsx +53 -0
- vicecut-0.1.0/web/src/shared/ui/TextArea.tsx +21 -0
- vicecut-0.1.0/web/src/shared/ui/TextField.tsx +19 -0
- vicecut-0.1.0/web/src/shared/ui/ThemeRoot.tsx +20 -0
- vicecut-0.1.0/web/src/shared/ui/index.ts +36 -0
- vicecut-0.1.0/web/src/shared/ui/tokens.css +73 -0
- vicecut-0.1.0/web/src/test/routing.tsx +18 -0
- vicecut-0.1.0/web/src/test/setup.ts +35 -0
- vicecut-0.1.0/web/src/widgets/app-shell/AppPalette.tsx +69 -0
- vicecut-0.1.0/web/src/widgets/app-shell/AppShell.tsx +91 -0
- vicecut-0.1.0/web/src/widgets/app-shell/AppearanceMenu.tsx +29 -0
- vicecut-0.1.0/web/src/widgets/app-shell/MobileNav.tsx +49 -0
- vicecut-0.1.0/web/src/widgets/app-shell/Navigation.stories.tsx +46 -0
- vicecut-0.1.0/web/src/widgets/app-shell/RunningJobsToast.test.tsx +73 -0
- vicecut-0.1.0/web/src/widgets/app-shell/RunningJobsToast.tsx +33 -0
- vicecut-0.1.0/web/src/widgets/app-shell/ShortcutsDialog.tsx +62 -0
- vicecut-0.1.0/web/src/widgets/app-shell/Sidebar.tsx +43 -0
- vicecut-0.1.0/web/src/widgets/app-shell/index.ts +1 -0
- vicecut-0.1.0/web/src/widgets/app-shell/navItems.test.ts +19 -0
- vicecut-0.1.0/web/src/widgets/app-shell/navItems.ts +44 -0
- vicecut-0.1.0/web/src/widgets/app-shell/useGlobalShortcuts.ts +40 -0
- vicecut-0.1.0/web/src/widgets/job-panel/JobLog.tsx +76 -0
- vicecut-0.1.0/web/src/widgets/job-panel/JobPanel.test.tsx +234 -0
- vicecut-0.1.0/web/src/widgets/job-panel/JobPanel.tsx +73 -0
- vicecut-0.1.0/web/src/widgets/job-panel/index.ts +1 -0
- vicecut-0.1.0/web/tailwind.config.ts +53 -0
- vicecut-0.1.0/web/tsconfig.json +22 -0
- 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,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
|
vicecut-0.1.0/.gitignore
ADDED
|
@@ -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
|
+
]
|