anewuser6937 (Discord, #590) saw one model in WorkBuddy's editor and took the plugin for broken: they had turned on "Free models only" themselves, but its label and description read in English inside magpie's Chinese window, and nothing by the models said the list was filtered. The switch now gives its label and description in Chinese, Traditional Chinese, Japanese and German (labels, descriptions, by magpie's window language) and says filtersModels: true, so a magpie that knows these fields says under the models that the list is filtered while it is on. Both are magpie's own fields inside auth.options, which OpenCode (AuthHook: provider, loader, methods) never reads; an older magpie's host copies only key/label/description/default/confirm, so it shows the English words as before. Nothing else changes: what the switch does is the same. Run on mote: HOME=$(mktemp -d) bun test packages/workbuddy: 303 pass, 0 fail; bun scripts/check.mjs ok. The new freeonly test ("says its words in magpie's languages, and that it filters the list", both sites) fails 2 of 2 with index.mjs put back. Loaded into magpie's real plugin host (the magpie change beside it), plugin.Providers lists both sites' free_only with all four languages and filtersModels true.
25 lines
612 B
JSON
25 lines
612 B
JSON
{
|
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
"version": "0.2.10",
|
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": [
|
|
"index.mjs",
|
|
"README.md"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"workbuddy",
|
|
"codebuddy"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/workbuddy"
|
|
}
|
|
}
|