19 Commits

Author SHA1 Message Date
向阳乔木
7596101882 Add subcast CLI, MCP server, desktop CLI installer, and DB focus sync 2026-11-23 08:14:03 -08:00
向阳乔木
488e311fe3 Extract subcast-core workspace crate with headless AI, vocab, export, and PNG rendering 2026-11-23 02:30:48 -08:00
向阳乔木
7e97642679 dev-app.sh keeps the release entitlements; live check that the HLS master keeps only the original audio
The ignored hlsproxy test (HLS_VIDEO=oFtjKbXKqbg) gets the app's HLS address, serves it through
master_only and plays it with ffprobe: YouTube lists en-US and ru, the proxy leaves en-US, h264+aac play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:32:41 -08:00
向阳乔木
8ead991f25 scripts/dev-app.sh: signed local test build, so the Keychain stops asking on every build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:23:06 -08:00
向阳乔木
3cc3e927cb Drop a compiled Python cache file from the zh-dub scripts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:48:01 -08:00
向阳乔木
4f97243927 Merge exp/zh-dub 2026-11-19 09:47:56 -08:00
向阳乔木
e9ca928d86 ui-release: the first hot update for an app version starts at build 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:33:29 -08:00
向阳乔木
5006f4d022 Chinese dub prototype: Qwen3 local engine, experiment data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:53:51 -08:00
向阳乔木
11cdfe4a8b Chinese dub prototype: sample scripts and design notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:41:15 -08:00
向阳乔木
3be958260d Merge main into fix/dmg-layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:12:04 -08:00
向阳乔木
94daec32cd English learning mode, settings as a page
- 设置 is now a page (was a dialog), with a fifth section 学英语 after 通用.
- Learning mode (off by default): words above the chosen level (四级/六级/考研/雅思) are marked in English
  subtitles; clicking a word opens a card with the offline ECDICT meaning, an AI note on its meaning in the
  sentence, the speaker's own voice and Add to word book.
- Word book page with FSRS review (ts-fsrs): the front plays the sentence with the word blanked, keys 1-4 rate.
- This episode's words, shadowing (pauses after each sentence) and dictation from the subtitle panel's menu.
- Export for Anki / CSV through a new save_file command; older shells fall back to the clipboard.
- public/dict/en.json is built by scripts/build-dict.py from ECDICT (MIT).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 02:58:21 -08:00
Cian Lien
975f7cb0a0 fix(release): lay out the macOS DMG window (app left, Applications right, drag hint)
The DMG was made with a bare `hdiutil create`, so Finder sorted the icons
alphabetically (Applications on the left, SubCast on the right) in a plain
white default window. Build it with create-dmg instead: 660x400 window,
128pt icons, SubCast.app at (170,180), an Applications link at (490,180),
and a background with an arrow and a bilingual drag hint.

The background source is scripts/dmg/background.svg; render.sh rebuilds the
1x/2x PNGs, which release.sh merges into a Retina TIFF with tiffutil.
Signing, notarization and stapling are unchanged.

Fixes #8
2026-11-17 16:03:28 +08:00
向阳乔木
0c252a6c77 0.2.4: translations for new UI, full-screen controls on the video, version bump
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:32:58 -08:00
向阳乔木
14385e628d Translation: episode glossary and summary, salvage, adaptive concurrency, playhead first, 精翻, shared translations
- ai.ts: before translating, a summary, speakers and up to 20 terms are made from title + show notes + opening lines
  (cached per episode in blob ctx, user edits kept) and put in an identical system prompt for every batch (prompt
  caching). New rules: one entry per cue, never merged, glossary renderings exact. Salvage every well-formed line
  from a broken or cut-off answer and re-ask only the missing ids. Optional second polishing pass (精翻).
- jobs.ts: batch size and concurrency by provider; on a rate limit concurrency halves with backoff and grows back
  after 20 successes; the batch nearest the playhead goes first; missing lines re-queued up to 3 times.
- A finished translation is shared with the transcript (share_translation); shared translations are used as the
  episode's Chinese and only the gaps are translated.
- Settings: 快速/精翻 and 用节目简介辅助识别和翻译 in Overview > 字幕翻译; per-episode glossary in the subtitle panel.
- Fault-injected test (drops, cut-off JSON, fenced): old runner 192/300 lines with 5 batches lost; new 300/300.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:53:41 -08:00
向阳乔木
1cc567197d Interface hot updates, signed remote config, release handbook
- ota.rs: the interface (dist/) updates without an app release. Signed manifest (updater key), exact app-version
  match, applies on next launch, staged -> booting -> committed with a 15 s ready check and permanent blacklist of
  failed builds, no downgrades, staged rollout by install, rollback directive. The release build now serves the
  interface itself (replaces tauri-plugin-localhost) so it can serve a hot update.
- scripts/ui-release.sh: builds, signs and publishes a hot update; refuses when src-tauri/ changed since the tag.
- Remote config (signed): YouTube API client versions can be changed without a release.
- docs/RELEASING.md and AGENTS.md: which channel to use and how, for people and agents.
- Verified end to end on the release app: stage, apply, ready; a broken bundle is dropped after 15 s and the last
  good one reloads; rollback returns to the built-in interface; a tampered manifest is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:25:21 -08:00
向阳乔木
703f79c6a6 0.2.1: YouTube playback fallback, Chinese subtitles first, in-show search, Windows runtime
- Video fallback: yt-dlp prepared when a video page opens, progress shown, 3-minute cap, Open on YouTube;
  accurate error wording (only 101/150 mean the owner disallows embedding)
- yt-dlp from our mirror first (SHA-256 checked), GitHub second; server sync script
- Direct stream: HLS where the WebView plays it natively (macOS), progressive MP4 elsewhere
  (YouTube HLS has no CORS header, so hls.js failed on Windows)
- Subtitles: Chinese videos no longer open in English when English subtitles are also uploaded; the
  publisher's Chinese subtitles become the Chinese line; subtitle language picker; translation starts
  whichever tab is open
- Search inside a show: titles and their Chinese, show notes, subtitles; subtitle hits play from that line
- Windows: static C runtime in subcast.exe, app-local VC++ runtime for CrispASR, embedded WebView2
  bootstrapper, CI check of PE imports; Ctrl+ labels instead of ⌘ off macOS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:37:01 -08:00
向阳乔木
8a4bf37939 release.sh: survive notarytool output and the signer's key check; API runs with Docker Compose
- notarize(): capture notarytool output before matching; piping into grep -q killed tee with SIGPIPE
  and set -e aborted after Apple had accepted
- updater signing: drop the exported key env so tauri signer accepts -f
- server/deploy/docker-compose.yml: the API as deployed on myvps (node:22-alpine, data on the host)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:14:27 -08:00
向阳乔木
1505e4d6f7 Release 0.2.0: AGPL-3.0, stable download links, site root fix
- License: AGPL-3.0-only (LICENSE, package.json, Cargo.toml, server, README, About)
- release.sh: aaPanel site root; version-free download names as symlinks on the site
  (/download/latest/…) and copies on the GitHub release (releases/latest/download/…)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:02:46 -08:00
向阳乔木
7c3020c356 i18n, offline downloads, updater, shared subtitles, YouTube promotion, chat actions
- Four interface languages (zh-CN, zh-TW, en, ja) with a strict dictionary check
- Offline downloads with a Storage page in Settings (sizes, open folder, clean up) and a menu on the downloaded tick
- Auto-update: background download by default, restart banner, update dot on the settings button
- Shared subtitles client (lookup before transcribing, upload after) and its API server under server/
- 词元之外: YouTube video version, red subscribe buttons, Discover banner, first-launch pick, About card; episode link opens YouTube at the current time
- Q&A: copy with or without timestamps or as Markdown with YouTube links, retry, edit, delete, new chat with history, follow-only-at-bottom
- Full show notes for rss.qiaomu.ai channels (YouTube description or 小宇宙 shownotes) with clickable chapters and links
- Rewritten guide prompt: specific points, whole-episode coverage, speakers, parts worth hearing first, timestamp self-check
- Middle column keeps a minimum width; player controls adapt and dock to the bottom when scrolled away
- Model settings ordered key, use, test, advanced; OpenCode session header

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:24:40 -08:00