20 Commits

Author SHA1 Message Date
向阳乔木
e48cbc973a fix(shared): upload only start/end/text per line so the server accepts transcripts
Since v0.3.21 segments carry speaker labels and word timings. The upload sent
them as-is and the shared server rejected every such transcript with
400 unknown_field, so local transcriptions never reached other devices.

- Client: serialize a slim UploadSegment (start, end, text).
- Server: accept and drop words/speaker so installed 0.3.21-0.3.23 apps
  upload again once the server is deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 08:20:58 -08:00
向阳乔木
b3df6e038a feat: shared AI config sync, player owner guard, article/chapter sharing, cover drag
- Sync: new ai_sync protocol (ai-config.json / Cloud slot _ai_config). Shared AI
  settings merge last-writer-wins; local-only providers never leave the device;
  API keys travel on every transport when "sync API keys" is on (plaintext on
  iCloud/WebDAV, end-to-end encrypted on Cloud), with 90-day tombstones.
- Players: only the current PlayerHandle writes global playback state, so stale
  callbacks from an unmounted player can no longer move the playhead.
- Shared articles and chapters: server /api/v1/articles and /api/v1/chapters plus
  Tauri commands share_/shared_article and share_/shared_chapters.
- Translation tier and prompt version recorded with shared translations.
- Word timings carry confidence and boundary flags; transcript-wide forced alignment.
- Video cover: drag text slots on the preview, multi-line titles.
- New Popover primitive (portal, viewport-clamped) for menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 21:12:07 -08:00
向阳乔木
b77540ce4f Release v0.3.21: audio, subtitle & video playback reliability 2026-12-01 13:36:14 -08:00
向阳乔木
2953fc9889 Release v0.3.20: clip timeline studio, shadowing UX, E2EE cloud sync & YouTube recovery 2026-12-01 09:30:55 -08:00
向阳乔木
001f5c6608 Release v0.3.16: real-time curated feed sync & language-isolated shared cache 2026-11-29 19:01:29 -08:00
向阳乔木
e037cd3f6e Release 0.3.13: real-time upstream sync for curated channels 2026-11-28 18:45:15 -08:00
向阳乔木
a54e83e79e Run the yt-dlp mirror sync from deploy/, where rsync keeps it
The deploy rsync (--delete) removed the copy at the app folder's root, so the cron
failed every six hours and the mirror stayed on yt-dlp 2026.10.26.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-11-27 08:37:12 -08:00
向阳乔木
9c0291b3a2 fix(curated): filter 1:1 static covers per video and pair adjacent 16:9 real videos (e.g. 张小珺 4K) 2026-11-24 23:51:43 -08:00
向阳乔木
50528b3ef6 fix(windows,curated): bundle subcast-cli.exe in MSI/NSIS with CI MCP check; mark 1:1 static-cover podcasts audio-only 2026-11-24 19:53:59 -08:00
向阳乔木
2fd31b1cdd Shared subtitles remember their audio file and its fingerprint
Uploads may carry the audio the subtitles were made from: its size, ETag, length and chromaprint
fingerprint. Lookups say whether one exists; the fingerprint is fetched separately. A database
from the first release gains the columns on start (user_version 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:08:08 -08:00
向阳乔木
245fd59928 Shared 导读: server stores one guide per episode (first stays, its author may replace it); the app checks the shared library before offering to generate, and shares its own when sharing is on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:07:04 -08:00
向阳乔木
5e6ecfe7ee Home marks shared-library episodes: batch exists endpoint + shared_exists command
Server: POST /api/v1/transcripts/exists takes up to 400 keys and returns the ones
with a visible shared version (own rate bucket, RATE_EXISTS_PER_HOUR=120).
App: shared_exists asks once for the home grid's episodes; hits get the 有字幕
tag and sort first. An older server or no network means no extra marks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:55:33 -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
向阳乔木
0b74fd312c server/deploy: backups through docker exec; English summary matches the deployment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:16:54 -08:00
向阳乔木
7aab0c17dc server/deploy: correct backup command
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:15:10 -08:00
向阳乔木
3039c674ac server/deploy: document the Docker Compose deployment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:14:52 -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