From bcc94e593339539fbe4c074ea666846455b6c167 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 10 Oct 2026 23:19:06 +0800 Subject: [PATCH] aider: Aider's own icon (aider.chat's) on its market card, plugin row and Agents row; 0.1.1 The market card showed the generic agent glyph: neither the registry nor the package gave a picture. package.json's magpie.icon gives it to the market card (magpie reads it from npm), and agent.icon to the agent magpie adds. Ran: bun test packages/aider, bun scripts/check.mjs; the URL answers 200 image/png. --- packages/aider/aider.agent.js | 2 ++ packages/aider/aider.test.mjs | 6 ++++++ packages/aider/package.json | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/aider/aider.agent.js b/packages/aider/aider.agent.js index 29113e2..fb281a4 100644 --- a/packages/aider/aider.agent.js +++ b/packages/aider/aider.agent.js @@ -5,6 +5,8 @@ export const agent = { id: "aider", name: "Aider", + // aider.chat's own icon, on the Agents page and the plugin's row + icon: "https://aider.chat/assets/icons/apple-touch-icon.png", bin: "aider", config: "~/.aider.conf.yml", model: "model", diff --git a/packages/aider/aider.test.mjs b/packages/aider/aider.test.mjs index ac956d7..4d4fce9 100644 --- a/packages/aider/aider.test.mjs +++ b/packages/aider/aider.test.mjs @@ -5,6 +5,12 @@ test("says where Aider keeps its model", () => { expect(agent).toMatchObject({ id: "aider", config: "~/.aider.conf.yml", model: "model", prefix: "openai/" }) }) +test("shows Aider's own icon, as the package gives it", async () => { + const pkg = await Bun.file(new URL("./package.json", import.meta.url)).json() + expect(agent.icon).toBe("https://aider.chat/assets/icons/apple-touch-icon.png") + expect(pkg.magpie.icon).toBe(agent.icon) +}) + test("points Aider at magpie with its own key", () => { const out = connect({ gateway: { url: "http://127.0.0.1:3425", v1: "http://127.0.0.1:3425/v1", key: "magpie-aider" }, diff --git a/packages/aider/package.json b/packages/aider/package.json index 49c3765..711595d 100644 --- a/packages/aider/package.json +++ b/packages/aider/package.json @@ -1,11 +1,11 @@ { "name": "@magpie-community/agent-aider", - "version": "0.1.0", + "version": "0.1.1", "description": "Aider (aider.chat) as a magpie agent: pick one of magpie's models for it on the Agents page", "type": "module", "files": ["aider.agent.js", "README.md"], "keywords": ["magpie", "magpie-agent", "aider", "llm-gateway"], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/aider" }, - "magpie": { "agent": "./aider.agent.js" } + "magpie": { "agent": "./aider.agent.js", "icon": "https://aider.chat/assets/icons/apple-touch-icon.png" } }