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.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user