feat: rebuild AudioManager around downloadable moods
CI / chart (push) Successful in 3s
CI / test (push) Successful in 2m2s
CI / chart-push (push) Successful in 4s
CI / image (push) Successful in 3m20s

- V8 wipe migration and the shared song store keyed by YouTube video id
- media store, indexer, downloader, recommendation top-up and refcounted GC
- mood songs plus the recommendation lifecycle and mixed radio pools
- new search, song and recommendation API; remove library/longform/seed routes
- chart PVC/media env, docs, Nix, README and an end-to-end smoke test
This commit is contained in:
TapTap committed 2026-11-15 21:37:39 +00:00
1 parent 50d8b6c580
commit 824eb36dd2
59 files changed
+3838 -5276

No files matched your search

+14 -32
View File
@@ -69,44 +69,26 @@ tasks.test {
}
/**
* Prepares a local development checkout: creates the media directories and copies
* the example configs when they are missing. Existing files are never overwritten.
* Prepares a local development checkout: creates the data/media directories and
* copies the example users file when it is missing. Existing files are never
* overwritten.
*/
val setupLocal by tasks.registering {
group = "application"
description = "Create local media folders and copy example configs if missing."
description = "Create local data folders and copy the example users config if missing."
doLast {
project.mkdir("media/music")
project.mkdir("media/longform")
project.mkdir("data/media")
project.mkdir("data/downloads")
listOf("library", "users").forEach { name ->
val target = project.file("config/$name.yaml")
val example = project.file("config/$name.example.yaml")
if (!target.exists()) {
target.parentFile.mkdirs()
example.copyTo(target)
println("Created config/$name.yaml from config/$name.example.yaml")
} else {
println("Keeping existing config/$name.yaml")
}
}
val libraryConfig = project.file("config/library.yaml")
if (libraryConfig.exists()) {
val stale = libraryConfig.readText().lineSequence()
.map { it.trim() }
.filter { it.startsWith("path:") }
.map { it.removePrefix("path:").trim() }
.filter { it.startsWith("/mnt/media/") }
.toList()
if (stale.isNotEmpty()) {
logger.warn(
"config/library.yaml still points at /mnt/media paths that are not available " +
"locally: $stale. Replace it with the local example: " +
"cp config/library.example.yaml config/library.yaml",
)
}
val target = project.file("config/users.yaml")
val example = project.file("config/users.example.yaml")
if (!target.exists()) {
target.parentFile.mkdirs()
example.copyTo(target)
println("Created config/users.yaml from config/users.example.yaml")
} else {
println("Keeping existing config/users.yaml")
}
}
}