yetone: 这里的 agent plugin 为什么没有 logo. Aider's card in Discover › Agent
showed the generic agent glyph: the registry entry has no icon, and the
card only read the registry's, which is one of magpie's icon names. A
GitHub-tagged plugin's card already read package.json's magpie.icon; a
listed one didn't.
- plugin: npm's /latest answer carries package.json, so NPM.Icon is its
magpie.icon, an https URL or data:image URI only (ownIcon, now shared
with the GitHub listing's check).
- gui: listings, market and /api/plugins/npm keep that picture as an
installed plugin's is (provider.RepoIcons) and send the page a file:
icon, never the data URI or the remote URL.
- plugins.js: card, plugin page and installed row use l.icon, then
l.npm.icon.
- Registry icons stay names, so older magpies aren't handed a URL they
would draw as a broken mask.
- docs: magpie.icon also shows on the Discover card (en, zh, ja).
agent-aider 0.1.1 (magpie-community/plugins bcc94e5) gives aider.chat's
icon as magpie.icon and agent.icon.
Ran:
- go test ./internal/plugin ./internal/gui; go test ./internal/provider
alone (504s, pass); go test ./... otherwise ok.
- gofmt -l; vet linux/windows ./internal/plugin.
- internal/gui/tests/plugin*.test.cjs in chromium+webkit; plugin-agent's
new check goes red (11 fail) with the card reading l.icon only.
- Sandbox HOME with the real npm package 0.1.1: the Discover card,
Installed row and Agents row all show Aider's icon, in chromium and
webkit at 1100 and 420.