From dc0f863fe8dd1620db8f2e3aa99c9bb3b12ad236 Mon Sep 17 00:00:00 2001 From: diviocity Date: Sat, 31 Oct 2026 22:25:40 +0100 Subject: [PATCH] add AGENTS.md AGENTS.md documents the tree for agents. The macOS compile guard in src/main.v already points to it, which was a dangling reference. --- AGENTS.md | 1494 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1494 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..873e8bc --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,1494 @@ +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 `