feat(media-os): integrate real-time status data from video API#1930
feat(media-os): integrate real-time status data from video API#1930whed961114-oss wants to merge 1 commit into
Conversation
- Add fetch calls for video count (list API) and system status - Implement Vite dev proxy with token injection for CORS bypass - Add deriveAiStatus/deriveRenderStatus pure functions with unit tests - Update UI label: 'GPU状态' → '渲染状态' (reflect CPU-only pipeline) - Split App into small focused components (StatCard/PostList/PostCard/ ActionPlanPanel/GenerateVideoButton) + data hooks (useMediaOsData/ useGenerateVideo) to stay under the repo's complexity/size budget - Add "立即生成视频" button wired to action=generate, with loading state, success/error feedback, and auto-refresh of today's video count - Add generateVideo() with injectable fetch for unit testing success/ skip/failure paths - Fix media_os.sqlite, renders/, and storage/logs/*.log permissions (chown www:www) — root-owned files were causing every DB-backed API call to 500 or return HTML warnings mixed into JSON - All tests (11/11), typecheck, and build passing Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Thanks for the submission, but I'm going to close this — it's out of scope for the HyperFrames repo.
If this is sanctioned HeyGen work, it belongs in its own repository. If you'd like to build on top of HyperFrames as a consumer of the package, happy to point you at the docs — but that integration shouldn't live inside this repo. |
Changes
Core Feature
video.kuaibaoguang.cn/api/video-dashboard.php获取实时状态action=list:今日生成视频数量action=system:AI 在线状态 + 渲染状态Implementation Details
fetch调用在App.tsx/video-api)+ token 注入,避免 CORS 和密钥泄露deriveAiStatus/deriveRenderStatus+ 单测(7/7 全绿)Bug Fixes
storage/db/media_os.sqlite和hyperframes-demo/renders/目录由root:root改为www:www,解决 PHP-FPM 无法写入导致的 500 错误Tests & Build
tsc --noEmit✅vite build✅Not Included (Next Phase)