Adds @magpie-community/agent-pine 0.1.0: Pine (github.com/pmndre/pine) on magpie's Agents page. connect writes providers.magpie as one object in ~/.pine/models.json (gateway /v1, openai-responses, magpie's catalog); startup writes defaults.model in ~/.pine/pine.json as magpie/<id>; Library skills go to ~/.pine/skills. Same shape as agent-pig. Review (at da80445557bc2de93857e49451587e2ac28aef08): - Harm check: only packages/pine, the README Agents row and registry.json. No dependencies, install scripts, workflow changes, credential reads or new network hosts (the icon is Pine's logo on raw.githubusercontent.com). - Checked against Pine's source (pmndre/pine next, 738013c7): home defaults to $PINE_HOME or ~/.pine (src/cli.ts), models.json and pine.json live in the home, resolveModel splits a reference at the first "/" (src/agents.ts), an agent's own model overrides cfg.defaults.model, and <home>/skills is read for all agents (src/skills.ts). compat.supportsStrictMode is a pi-ai 1.5.2 key for openai-responses. - magpie applies the descriptor's prefix to startup.model (internal/agent/plugged.go), so pine.json gets magpie/<provider>/<model>. Run at the reviewed head on mote, HOME=$(mktemp -d): - packages/pine: bun test, 7 pass, 0 fail. - bun scripts/check.mjs: pass. - PR CI (pr, bumped) green after approving the first-time contributor's runs. Not tried: a real Pine daemon here (the author reports one answered through the gateway).
22 lines
744 B
JSON
22 lines
744 B
JSON
{
|
|
"name": "@magpie-community/agent-pine",
|
|
"version": "0.1.0",
|
|
"description": "Pine (github.com/pmndre/pine) as a magpie agent: magpie's gateway and model catalog in ~/.pine/models.json, and the model Pine starts on in ~/.pine/pine.json",
|
|
"type": "module",
|
|
"files": ["pine.agent.js", "README.md"],
|
|
"keywords": ["magpie", "magpie-agent", "pine", "pmndre", "llm-gateway"],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/pine"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test pine.test.mjs"
|
|
},
|
|
"magpie": {
|
|
"agent": "./pine.agent.js",
|
|
"icon": "https://raw.githubusercontent.com/pmndre/pine/next/docs/images/logo-light.svg"
|
|
}
|
|
}
|