Server (#4420)
- extension_service gains a Discord pattern (server or channel, jump links,
ptb/canary; not DMs or threads), mirrored in platforms.js and pinned by
the shared artist-url-samples.json.
- probe on a Discord URL matches the source by ids under any artist, reports
a whole-server source as covering the channel, suggests the artist who owns
another source on the same server, and names server/channel via the stored
token (best-effort, bounded, no rate-limit waits).
- quick-add takes artist_id / artist_name; Discord URLs are stored canonical.
Extension (#4421, #4422)
- Content script on discord.com; SPA navigation by URL polling (the old
pushState patch ran in the isolated world and never fired); stale probes
are dropped.
- Discord chip opens an Add panel: this channel or the whole server, and the
suggested artist / a search / a new name.
- Popup: sources show artist, platform and state; a Discord token export is
verified by FC and the result shown. Token capture covers ptb/canary.
- Pure logic in lib/chip.js and lib/popup-format.js, with specs.
CI (#4423)
- extension.yml's lane (web-ext lint, vitest, XPI contents) moves into
build.yml as extension-test and joins the needs of sign-extension,
build-web and build-agent. As a separate workflow it gated nothing: a red
extension suite still signed and shipped the XPI (rule 177).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVjrnpQjRgHdvq95rASoiR
The extension is installed per-instance from the operator's FC host, so Firefox's
static update_url can't apply (each instance has a different host) and updates
were fully manual. Add a self-hosted-friendly update surface that reuses the
existing public GET /api/extension/manifest ({version, latest_url, sha256}):
- lib/api.js: getExtensionManifest().
- background.js: checkForUpdateInfo() compares the instance's latest published
version against runtime.getManifest().version (dotted-numeric compare so
1.0.10 > 1.0.9); CHECK_UPDATE message handler; refreshUpdateBadge() sets a
toolbar badge via browser.action; a daily browser.alarms check plus on
startup/installed. New 'alarms' permission (non-prompting).
- popup: an 'Update available — vX' banner with an Update button that opens the
signed XPI (web root, /api stripped like OPEN_ARTIST_PAGE) → Firefox's native
install prompt. Never blocks the popup on a failed check.
No backend changes (endpoint already exists). Bump 1.0.8→1.0.9 so this ships;
from here on updates surface themselves instead of needing a manual reinstall.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>