Files
plugins/packages/pig/package.json
T
yetone 74cdf0de97 pig 0.1.1: the Agents row picks the model PiG starts on (str_)
str_ on Discord: PiG's row only listed models, where Pi's picks the one it
starts on. PiG keeps that in ~/.pig/agent/settings.json as
defaultProvider and defaultModel (PiG's settings reference and
startup_model.go). The descriptor now says `startup: {config:
settings.json, model: "defaultModel", keys: {defaultProvider: "magpie"}}`,
which magpie v0.1.3008 (1fd02d33c) reads: the row gets a model picker,
both keys are kept aside and put back on disconnect. An older magpie
ignores startup and keeps 0.1.0's connect-only row. The READMEs say so,
and that an enabledModels scope leaving the model out starts PiG on the
scope's first model.

Run (mote): bun test pig.test.mjs (11 pass; the new startup test checks
connect writes the provider defaultProvider names), bun scripts/check.mjs
ok. Real PiG 0.5.3 (darwin-arm64 release, SHA256SUMS checked) in a
sandbox HOME with this connect's models.json and the startup keys,
against a fake OpenAI server: `pig -p` sent model deepseek/flash; with
enabledModels ["magpie/deepseek/pro"] it sent deepseek/pro.

Not tried: PiG on Windows or Linux, a real magpie gateway in front of it.
2026-11-05 10:47:30 +08:00

19 lines
651 B
JSON

{
"name": "@magpie-community/agent-pig",
"version": "0.1.1",
"description": "PiG as a Magpie agent: Magpie's endpoint and model catalog in models.json, and the model PiG starts on in settings.json",
"type": "module",
"files": ["pig.agent.js", "README.md"],
"keywords": ["magpie", "magpie-agent", "pig", "pi-in-go", "llm-gateway"],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/pig"
},
"scripts": {
"test": "bun test pig.test.mjs"
},
"magpie": { "agent": "./pig.agent.js", "icon": "https://pi-in-go.dev/pig-favicon.svg" }
}