Adds @magpie-community/agent-type4me: Type4Me (macOS voice input) as a magpie agent. magpie writes the picked model, its /v1 address and Type4Me's key into ~/Library/Application Support/Type4Me/magpie-agent.json, which Type4Me reads before each dictation (joewongjc/type4me#343, merged). The folder is the one Type4Me and Type4Me Dev share (AppDataLocation.sharedProfileName). Run at the reviewed head dc9d19bd: bun test packages/type4me (4 pass), bun scripts/check.mjs (green). Checked every field against magpie's agentplug.Desc and the file path, keys and folder against Type4Me's MagpieAgentFile and AppDataLocation. Not done: the first npm publish of a new package name is manual (the package has no trusted publisher yet), and registry.json is not updated in this PR.
@magpie-community/agent-type4me
Type4Me, a macOS voice input app, as a magpie agent. With this plugin Type4Me is on magpie's Agents page like the agents magpie ships with: pick one of magpie's models for its LLM post-processing in Type4Me's row.
magpie plugin add @magpie-community/agent-type4me
Until it is on npm, install it from GitHub:
magpie plugin add github:kchen0x/magpie-agent-type4me
Then pick one of magpie's models in Type4Me's row, or
magpie type4me magpie/deepseek/deepseek-flash. magpie writes into
~/Library/Application Support/Type4Me/magpie-agent.json:
{
"model": "deepseek/deepseek-flash",
"baseURL": "http://127.0.0.1:3425/v1",
"apiKey": "magpie-…"
}
In Type4Me, choose Magpie (Local Gateway) under Settings › Models and set it as the default. Type4Me reads the file before each dictation, so a new model takes effect on the next one, with no restart.
- Type4Me and Type4Me Dev share that folder: one plugin covers both.
- Picking a model in Type4Me's own settings changes it in magpie too (Type4Me
runs
magpie type4me magpie/<model>). Type4Me never changesbaseURLorapiKey. - Switching Type4Me off in magpie removes the three keys; Type4Me then talks to magpie directly, with the model picked in Type4Me.
Type4Me works with magpie without this plugin too, listing magpie's models itself. The plugin adds Type4Me to magpie's Agents page, menu bar and profiles.
How agent plugins work: usemagpie.ai/docs/plugins#agents.
Develop
The source lives at kchen0x/magpie-agent-type4me
and is copied to packages/type4me in
magpie-community/plugins.
bun test # what connect returns
magpie plugin add ./type4me.agent.js # try it on your own magpie
agent.config must match MagpieAgentFile.defaultURL in Type4Me.