AGENTS.md — vendetta ===================== This file documents how the tree is implemented and what every part of it does. It is the orientation document for agents working in this repository, and two of the macOS compile guards (`src/main.v`, `libvendetta/draw.v`) literally point here, so keep it in sync with the code when the build command or the guard conditions change. Everything below was written by reading the source; nothing here is speculation about intended behaviour — where the source carries a documented decision, the decision and its rationale are reported, and where behaviour is emergent rather than deliberate, that is said too. | file | role | |------------------------------------------|------| | `v.mod` | module manifest | | `README.md` | stub: "upstream mirror of the source code" | | `src/main.v` | CLI, startup order, window wiring | | `src/player.v` | app Player state, event routing, menus, keys | | `src/view.v` | window tree: widget, panels, dialogs, preview | | `src/media.v` | queues, playlists, file dialog, open paths, thumbnail state machine, media worker | | `src/theme.v` | theme struct, TOML themes, live editor, colour pickers | | `src/settings.v` | settings/queue persistence, precedence | | `src/presets.v` | named bundles of mpv options | | `src/surface.v` | the per-frame hook (drains, budget, preview) | | `src/mpris_d_mpris.v` | D-Bus service (only with `-d mpris`) | | `src/mpris_glue_d_mpris.v` | snapshot builder + command executor (only with `-d mpris`) | | `src/mpris_notd_mpris.v` | no-op stand-in for the default build | | `libvendetta/lib.v` | the embeddable widget: state, events, playback | | `libvendetta/draw.v` | GL surface, mpv render pump, control bar | | `libvendetta/wake/wake.v` | cross-thread wake slots | | `libvendetta/mpv/mpv.v` | libmpv C binding | | `examples/embed_host/main.v` | minimal `