Commit Graph

161 Commits

Author SHA1 Message Date
eric
dc9187d422 Include remaining cookie snip used by local ops scripts.
Operator confirmed sensitive ops artifacts may live in this private repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:43:17 -05:00
eric
d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00
eric
c1501f6e16 Extend Douyin/YouTube live badge styling to dashboard, groups, and shorts.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 11:52:00 -05:00
eric
e51df6f35e Differentiate Douyin vs YouTube live badges and highlight YPP pill.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 11:46:16 -05:00
eric
a35088be13 Document Neko CDP gate before FFmpeg in README.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 11:42:10 -05:00
eric
0020559307 Add CDP fallback when Neko extension telemetry is missing.
Detect YouTube Live tab via Chrome DevTools inside the container when ingest heartbeats never arrive; nudge tab focus every 10s. Fixes time-slot relay stuck at starting while Neko UI already shows Live page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 11:41:13 -05:00
eric
b6a66fbddf Block FFmpeg until Neko YouTube Live page is freshly settled.
Remove skip-neko-wait on stale telemetry; require new livestreaming heartbeats for 25s after slot switch. Add youtube_live_confirmed to relay status and unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 11:29:45 -05:00
eric
11394a2a80 Document Pro relay/time-slot ops and harden relay worker stability.
README covers YouTube RTMPS relay, time-slot mode, ops/Netdata, and global SOCKS plan. Relay pipeline keeps FFmpeg alive across probe flicker, stabilizes time-slot source selection, and fixes misleading start-button copy in the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 10:53:29 -05:00
eric
e3d7d7a813 feat: per-channel Neko studio in YouTube assign Pro panel 2026-08-31 02:01:25 -05:00
eric
d60d3e5ac0 fix: replace channel enable buttons with real Switch toggles
Add shared EnableSwitch, confirm before disable, busy state, and card dimming on shorts/yt-long/tiktok/x.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 01:54:22 -05:00
eric
f2b3242e7d feat: per-channel/account enable switches with job purge on disable
Shorts/yt-long use per-channel toggles; TikTok/X use account toggles. Turning off clears queued jobs and blocks sampling, recording, and uploads for that target.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 00:24:03 -05:00
eric
86e330d004 fix: bootstrap waits for S3 instead of aborting the rest of deploy
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 06:05:50 -05:00
eric
ca9e4b6676 feat: add shared-VPS bootstrap script and public_base_url for new deploys
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 05:45:27 -05:00
eric
e4ab15149e fix: include S3 status in /api/health for settings panel
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:31:09 -05:00
eric
c4fcc086be fix: show anchor names on blacklist; redesign settings with tabs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:25:02 -05:00
eric
e959325772 chore: hide dashboard and ops mobile from navigation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:16:39 -05:00
eric
df049bd48d fix: use err toast tone in new ops pages
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:11:17 -05:00
eric
faf576c151 fix: remove fetchJson generic args for JS api helper build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:09:45 -05:00
eric
0109f46cd7 chore: remove Cursor AI agent instructions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:05:10 -05:00
eric
b4e07d792e feat: add dashboard, oauth health, ops alerts, readonly role, and S3 archive replay
New pages and APIs for cross-platform jobs, YouTube OAuth health, mobile ops,
settings audit, optional DB backup, quota/disk alerts, and clip archive replay.
All new behavior defaults off to avoid changing production pipelines.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 08:02:58 -05:00
eric
fd22339bff Send detailed ntfy alerts on all YouTube channel live start and end.
Cover group channels via youtube_monitor and Shorts upload channels via live-map sync with rich message fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 04:08:32 -05:00
eric
5b45fc0aca Add real-time Douyin live status map and badges across card UIs.
Expose /api/douyin/live-map from monitor DB with SSE-triggered client refresh, and show live/offline badges on assign, rooms, anchors, slots, and overview cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:33:46 -05:00
eric
f36bbb80a7 Copy assign lists as URL-only lines without anchor names.
Keep export format unchanged with 主播 labels for file downloads.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:18:19 -05:00
eric
d37b06f9af Remove trailing comma from assign list copy/export format.
Copy and export now output URL,主播: name without a comma at line end.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:16:36 -05:00
eric
91cdcd74b3 Reorder assign panel columns and add featured button on slot list.
Put time-slot list in the middle with featured on the right, and allow promoting slot entries to featured directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:10:10 -05:00
eric
1bd2d299c1 Fix assign auto-fill SQL error and auto-populate slot lists on load.
Remove invalid sessions.platform filter, ensure defaults from Douyin live data when groups load, and make manual fill force-refresh without 500s.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 03:01:43 -05:00
eric
999ce60ea1 Add YouTube assign time-slot rotation and fix channel card layout.
24h Beijing channel rotation with slot list, live-data auto-fill, and compact sidebar cards for /youtube assign.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 02:55:04 -05:00
eric
a9c0af5f36 Fix YPP monetize self-cert to use ANSWER_SKIPPED enum.
Matches youtube-studio library payload so Studio metadata_update accepts altered-content questionnaire.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 02:03:33 -05:00
eric
c9c71948cb Unify YouTube OAuth/YPP card meta and fix YPP monetize payloads.
Seed brand hints on startup, merge Shorts OAuth into yt-long board, and retry Studio monetize with corrected self-cert formats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:59:36 -05:00
eric
3d66fe10eb fix: restore YtChannelMeta import for shorts page build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:43:04 -05:00
eric
d99153175a fix: clear oauth_ok after re-auth, show Google brand hints, reduce false OAuth errors
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:29:05 -05:00
eric
0309bbe0f6 fix: revoke stale OAuth on re-auth and reject tokens missing force-ssl scope
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:17:23 -05:00
eric
6851984983 feat: unified YouTube channel cards with live/YPP/OAuth meta and auto YPP probe on re-auth
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 01:03:20 -05:00
eric
ee1250c724 fix: build login redirects from public host behind Caddy proxy
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:55:21 -05:00
eric
117c981275 fix: use relative login redirects behind reverse proxy
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:52:28 -05:00
eric
01a0ab351f fix: reject OAuth brand mismatches without overwriting channel tokens
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 00:13:15 -05:00
eric
2ee2775bfb fix(youtube): show channel avatar and YouTube nickname on cards for OAuth matching
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 22:39:47 -05:00
eric
b08b66724d fix(yt-long): always enable ads on YPP uploads and show Chinese monetize result
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 22:29:17 -05:00
eric
052c49714f fix(yt-long): reclaim cascade-only jobs into pending so catch-up actually records
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:57:52 -05:00
eric
ada999751e fix(yt-long): show Chinese status and friendly cascade-only copy in job list
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:36:11 -05:00
eric
6a033e6326 fix(yt-long): 5 long videos/channel BJ-day, drop to 4 when YouTube API limited
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 07:26:58 -05:00
eric
82bcd5a26b fix(youtube): cache channel avatars on S3, refresh only on demand
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 03:34:42 -05:00
eric
e943e7873b feat(youtube-assign): dedupe by room_id and blacklist detect/ban/purge
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 01:38:00 -05:00
eric
9b2eef646c feat(youtube-assign): show KEY, parse title/cover, copy/export lists
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 01:22:44 -05:00
eric
42c4a7494e feat(youtube): add Assign tab as default next to OAuth manage
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:38:48 -05:00
eric
c9e29cc6e6 feat: show OAuth channel profile on Shorts/yt-long quota cards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 21:28:45 -05:00
eric
1febe0869e feat(yt-long): auto-enable ad monetization for YPP channels
Detect isChannelMonetizationEnabled and best-effort turn on Monetize with ads after long-form upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:55:25 -05:00
eric
896d8a64b3 fix: harden clip disk/CPU usage on small VPS
Cap long-form concurrency, delete masters after cascade/upload, restore post-upload deletes, shorten retention to 24h, and block recording when free disk is low.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:40:51 -05:00
eric
e0776c9142 feat(yt-long): split source vs upload quota so masters cover all platforms
Auto-size master recording to max(Shorts/TikTok/X/YT upload need) while keeping YouTube long uploads at 14x3; cascade-only masters wait for upload slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:23:52 -05:00
eric
7e4a8b4e70 feat: 9:16 yt-long masters, cascade cuts to TikTok/Shorts/X, 48h clip retention
Keep vertical long-form by default (16:9 opt-in off), reuse masters via ffmpeg segments for other platforms, and rush-or-delete clips older than 48h.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 12:04:42 -05:00