v2.0.1 feat: web UI, LLM abstraction, TikTok settings#1
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Allow the local web UI to toggle TikTok info rendering and persist TikTok profile settings outside env-only configuration. Tested: npm test Tested: npm run typecheck Tested: npm run build Tested: npm audit --audit-level=moderate
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a web UI dashboard and HTTP server to AutoCreateVideo, enabling browser-based video generation from news URLs. Also adds TikTok settings panel with persistence.
New:
src/server.ts, 572 lines) serving UI atlocalhost:4317LLM_PROVIDERenv varoutput/.ui-settings.jsonChanged:
LLM_PROVIDER,LLM_API_KEY,LLM_MODEL,LLM_ENDPOINTTIKTOK_ENABLEDtoggle — disables TikTok card, avatar fetch, outro hold when offLLM_API_KEYvalidated at client creation time, not config load — existing pipeline/rerender flows don't require LLM configprotobufjsadvisoryValidation
npm test— 55 tests pass (10 files)npm run typechecknpm run buildhttp://127.0.0.1:4317/GET/PUT /api/settings, 403 on hidden pathsTest Coverage
AI-assessed coverage: ~21% on new code paths (user accepted risk). Existing 55 tests pass. 10 test files covering server helpers, config loading, script schema, HTML composer, TTS clients, and SFX selector.
Pre-Landing Review
No critical issues. XSS:
escapeHtmlused consistently. Shell injection:spawnwith arg arrays, noshell:true. LLM output: Zod-validated before disk persistence. Path traversal: blocked in bothsafeOutputPathandserveStatic.Plan Completion
Design doc exists (
hongphuc-codex-deps-ui-refresh-design-20260520-005443.md). 11 eng review tasks (PipelineError, SSE error, progress stages, etc.) deferred — branch code pre-dates planning. Shipping as-is for real-world friend testing.🤖 Generated with Claude Code