* refactor: move ShareURL to core/publicurl
The Subsonic sharing endpoint imported the server/public router package only
to build share page URLs. ShareURL now lives in core/publicurl next to
ImageURL and PublicURL, so the two API packages no longer depend on each
other. The generated URLs are unchanged.
* chore(lint): add depguard walls between API packages and persistence
Enable depguard with two kinds of rules for production code:
- subsonic, nativeapi, jellyfin, apiv1 and public must not import each
other. Shared code belongs in a neutral package.
- persistence must not import core, server, scanner, plugins, adapters or
cmd.
Each rule's message names the fix. Test files are excluded because the
end-to-end suites wire several layers together on purpose. A model rule
was left out because the Go compiler already rejects those imports as
cycles.