Skip to content

Youwee Operon Edition: port the downloader core to the operon language - #2

Merged
WasewaseX merged 2 commits into
mainfrom
feat/youwee-operon-port
Oct 6, 2026
Merged

WasewaseX merged 2 commits into
mainfrom
feat/youwee-operon-port

Conversation

@WasewaseX

Copy link
Copy Markdown
Owner

What

Adds desktop-operon/: the Youwee downloader core ported to operon — a real native desktop window (egui) whose entire decision logic is an operon program. The Tauri application is untouched; this is a separate lane so upstream syncs stay trivial.

Youwee features ported (all decided in operon, op/app.op)

  • audio extraction (mp3/m4a/opus), subtitles (sidecar + embed), SponsorBlock
  • speed limit via aria2, playlist mode, download library, settings persistence, themes

Contract carried over

  • aria2-only bundle, yt-dlp/ffmpeg from PATH (green/red dots), <30 MB gate
  • host supervises long children; every progress line flows through the operon state machine

Gates

  • local: 6 unit tests + e2e flow regression PASS, clippy 0, fmt clean, --smoke PASS
  • CI (windows-latest): tests + flow + smoke of the actual exe + size gate
  • operon pinned @ c578b04 (main: P4 MapStore + P2 merge sort + P3 lazy range + P5 string builder)

Z User added 2 commits October 6, 2026 20:20
A real native desktop app (egui window) whose entire decision logic is an
operon program embedded via the language's own lib target (VM lane,
capability sandbox). No localhost server, no browser, no Python.

Ported Youwee features, all decided in op/app.op:
- audio extraction with codec choice (mp3/m4a/opus)
- subtitles: sidecar download and/or embed into the file
- SponsorBlock removal (sponsor/intro/outro/selfpromo)
- bandwidth limit via aria2 --max-overall-download-limit
- playlist mode (drops --no-playlist on the download argv)
- download library (history.json), settings persistence (settings.json)
- six-theme accent system (name persisted operon-side)
- deduped resolution-sorted format menu, [download] x% progress parsing

Carried-over contract: aria2 is the ONLY bundled tool (embedded, extracted
on first run); yt-dlp/ffmpeg come from the user's PATH (green/red dots);
30 MB size gate in CI; long children supervised by the host (operon run()
containment caps children at 5 min by design) while every progress line
still flows through the operon state machine.

Gates: 6 unit tests (incl. youwee_options_shape_the_download_argv and
defaults_stay_clean), cross-platform end-to-end flow regression with a
fake yt-dlp, --smoke headless boot of the shipped exe, size gate.
Pins operon-lang-dev @ c578b04 (main: P4 MapStore + P2 merge sort +
P3 lazy range + P5 string-builder waves).
@WasewaseX
WasewaseX merged commit c35a572 into main Oct 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant