Commit Graph

185 Commits

Author SHA1 Message Date
eric
0eb6218725 Security: bump Next.js to 15.1.11 (post-React2Shell DoS/source fixes).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 22:25:21 -05:00
eric
ca3d0337e0 Security: bump Next.js 15.1.0 to 15.1.9 (CVE-2025-66478 RCE).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 22:19:09 -05:00
eric
f7dc2b6b4e Add VPS static residential IP via isolated douyinweb-singbox.
US VPS can use egress_mode=residential (127.0.0.1:17891) without touching host sing-box.service / v2ray-agent; default remains datacenter direct.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 21:03:34 -05:00
eric
a8255d4bb2 Permanently stabilize dy: orphan-watch timer, web cgroup kill, tighter defer.
Stop Next build usr/node orphans from pinning the 4-core VPS; Cap web CPU and defer clips earlier under load.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 22:50:07 -05:00
eric
bc92cbdd2c Kill orphaned Next build processes after frontend deploy.
npm run build left spinning usr/node orphans that pinned dy CPU at 100%.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 22:44:58 -05:00
eric
c042320ef1 Clarify Shorts/yt-long quota UI: enabled channels only.
Document fleet-cap rule and drop hardcoded「未达 9 条」copy on Shorts ops cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 21:58:53 -05:00
eric
054fc1139d Fix Shorts 北京日配额 card to count enabled channels only.
Same disabled-Account double-count bug as yt-long: cap/uploaded ignored channel switches.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 21:50:26 -05:00
eric
ca7724d3e4 Fix yt-long master quota: enabled channels only, stop Shorts×9 inflation.
Mother-clip daily max now tracks enabled oauth long channels (7×2=14), not Shorts fleet size; UI upload card ignores disabled Account B rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 21:11:23 -05:00
eric
3d417382f0 Point dual git-pull deploy at test2 and both VPS hosts.
Replace obsolete FRP/physical target so dylive + dy.nomadro.live track origin/test2 together.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 20:52:36 -05:00
eric
fbdc3fc0db Harden dual-VPS API against live+encode CPU storms; document and ship YPP revenue.
Keep /api/health instant, isolate ffmpeg cgroups, defer clip encodes while live push runs, and align dy.live systemd with dylive. README covers the hang root cause and /yt-revenue.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 20:50:45 -05:00
eric
c1f3bd3c57 Fix exclusive sticky when Douyin probe says offline (status=4).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 06:03:46 -05:00
eric
fc5361a0cc Ship dual-VPS live/shorts/neko hardening: receiving-first, SIGILL auto-heal, quota UX, stream keys.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 22:10:49 -05:00
eric
c5863c1f74 Document dual-VPS topology and Neko SIGILL/Aw Snap auto-heal.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 22:02:40 -05:00
eric
0dc70fdded Document YouTube YPP revenue API research (Analytics monetary scope).
Clarify AdSense doc is site ads only; channel earnings use yt-analytics-monetary.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 20:50:29 -05:00
eric
1d35f485c6 Update README for global quotas, live receiving-first, and branch notes.
Add AdSense Management API research doc (analysis only, not integrated).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 20:46:15 -05:00
eric
2e64ae4094 Fix yt-long global channel daily max being reset to 5 by reconcile.
Operator-saved defaults and apply-all now persist; API-limited mode only clamps channels above the effective cap.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 10:59:05 -05:00
eric
89e5ecc98b Add global daily min/max quota controls for Shorts, TikTok, yt-long, and X.
Operators can set defaults once and optionally sync all channel cards instead of editing each one.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 05:49:24 -05:00
eric
2e30ff1f03 Harden Neko browser-launch and Studio dismiss provisioning.
Keep Chrome launch/policy/userscript assets aligned for assign and ops-neko live control.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 05:18:16 -05:00
eric
dea036c50d Prefer YouTube receiving/Studio on-air for live-map and sync assign lives to hub.
Tighten http/youtubei live probes, classify Studio encoder_lost vs waiting, and keep dy/dylive public live counts aligned via edge assign_lives.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 22:57:52 -05:00
eric
c06e2b1385 Add timeslot exclude list so manual Douyin lives are not auto-selected.
Prevents time-slot relay and schedule auto-fill from colliding with URLs already used for manual/featured pushes; UI sits beside full-channel fill.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 22:50:25 -05:00
eric
fa403d7b6a Promote Neko to top-level nav; always show remote Neko UX on assign cards.
Ops sub-tab renamed to 综合; /ops/neko redirects to /neko.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 02:42:42 -05:00
eric
d3f17f7477 Add ops Neko tab with hub/edge pairing; keep native assign Neko.
Physical ops-neko binds to VPS assign cards; assign UI switches local vs remote open without removing douyinweb-neko-*.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 02:25:45 -05:00
eric
e82407fceb Fix dual deploy when physical /opt/douyinWEB has no .git (tarball install).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 01:25:19 -05:00
eric
732d93e5d4 Add VPS/physical host profile switch and document nomadro topology.
Header toggle stops app egress+Neko and enables exclusive live on VPS mode; README covers dylive/dy.com/dy.cn roles.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 01:20:53 -05:00
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