Sixteen handlers answered a missing caller with error 50 "Not
authenticated"; the star, unstar and scrobble handlers answered error 0
"Unauthenticated". Middleware stops such a request first, so no app saw
it, but the next handler copied would pick one at random. requireUser
now holds the check, the same shape as /api's, at all 21 sites.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
createPlaylist makes a playlist, or with playlistId replaces its songs;
updatePlaylist renames it, sets its comment and visibility, removes songs
by the index the app was shown and adds songs; deletePlaylist deletes it.
A song index counts only the entries getPlaylist lists, so a hidden
entry ahead of it doesn't shift which song goes.
The playlist service gains ReplaceTracks and RemovePositions; the owner
and system-mix checks that each change repeated are one function.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>