sonda/migrations/postgres
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 23ae396430 feat(naming): names for playlists, with the Claude API as an option
- A pipeline over the facts about a list of songs (up to 5 genres, up to 8 artist names, how many songs, a few words about the rules of a smart playlist, the language). A local namer builds a name from the genres and the artists on this server and is always there; Claude is asked first only when an admin turned the new anthropic provider on with an API key. A failure or a refusal gives the local name. What Claude answers is kept under a hash of the facts, so the same question is not asked or paid twice.
- The anthropic provider: a write-only key (kept as typed, it is case-sensitive), a test that reads one model and sends no text, and a plain statement of what is sent. It uses the official Go SDK with nothing taken from the environment of the server (no key, profile, base URL or extra headers), no redirects, no system headers, and an answer that is cleaned and bounded.
- POST /playlists/{id}/suggest-name, POST /mixes/{id}/suggest-name and POST /smart-playlists/{id}/suggest-name answer with a name, a description and where it came from.
2026-11-13 10:33:48 +01:00
..
0001_init.sql feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
0002_users_listening.sql feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
0003_name_keys.sql fix(library): harden the scanner against special files, stat errors and lossy logging 2026-11-11 12:28:44 +01:00
0004_admin_refresh.sql feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
0005_libraries.sql fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
0006_track_title_key.sql feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
0007_provider_settings.sql feat(providers): provider settings in a table and a careful outbound HTTP client 2026-11-11 16:07:12 +01:00
0008_artist_similar.sql fix(discovery): concurrent writes, adopted artists and a client that leaves 2026-11-11 16:47:33 +01:00
0009_artist_tags.sql feat(discovery): artist tags from Last.fm and MusicBrainz, and ids from my files 2026-11-11 17:01:43 +01:00
0010_track_genres.sql feat(discovery): remove provider data, genres from my files, full rescans 2026-11-11 17:27:29 +01:00
0011_user_settings.sql feat(settings): my own settings, starting with Discover from my listening 2026-11-11 19:16:26 +01:00
0012_artist_feedback.sql feat(feedback): a wishlist and "not interested" 2026-11-11 20:11:18 +01:00
0013_images.sql fix(images): limit parallel builds, no stale saves, safer files 2026-11-11 21:03:26 +01:00
0014_artist_descriptions.sql feat(about): artist descriptions from Wikipedia 2026-11-11 21:36:27 +01:00
0015_image_credit.sql feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
0016_search_keys.sql feat(search): search ignores accents 2026-11-12 10:17:21 +01:00
0017_lidarr_settings.sql feat(lidarr): set up Lidarr as a provider and read what it offers 2026-11-12 11:04:53 +01:00
0018_users_email.sql feat(auth): accounts are identified by an email address 2026-11-12 14:40:33 +01:00
0019_playlists.sql feat(playlists): a user keeps playlists of tracks 2026-11-12 16:55:25 +01:00
0020_smart_playlists.sql feat(smart): smart playlists, playlists made of rules 2026-11-13 09:36:52 +01:00
0021_generated_names.sql feat(naming): names for playlists, with the Claude API as an option 2026-11-13 10:33:48 +01:00