@magpie-community/opencode-workbuddy-auth 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/index.mjs +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -260,7 +260,9 @@ through as it came.
|
|
|
260
260
|
When you are signed in, the models are the ones WorkBuddy's product config
|
|
261
261
|
gives its CLI agent (`GET /v3/config`), with their context, image input and
|
|
262
262
|
reasoning levels. Until then, or if WorkBuddy doesn't answer, the list below
|
|
263
|
-
is used.
|
|
263
|
+
is used. Since 0.2.9 its models take images, as the config says of every
|
|
264
|
+
model, except WorkBuddy AI's GLM models, whose images WorkBuddy AI drops
|
|
265
|
+
(#572).
|
|
264
266
|
|
|
265
267
|
`workbuddy`:
|
|
266
268
|
- Auto
|
package/index.mjs
CHANGED
|
@@ -2949,11 +2949,19 @@ function variants(efforts) {
|
|
|
2949
2949
|
|
|
2950
2950
|
// configModels is the site's own list as a provider's models, each on the
|
|
2951
2951
|
// API it is served on: a Claude model on Messages, the rest on chat.
|
|
2952
|
+
// A model declared here (before an account's list is read, for a key
|
|
2953
|
+
// whose CLI reads no config, or when /v3/config can't be read) takes images
|
|
2954
|
+
// unless textOnly says the site drops them: both sites' configs mark every
|
|
2955
|
+
// model supportsImages (read 2026-11-01), and a chat to WorkBuddy AI's
|
|
2956
|
+
// kimi-k3 with a two-colour PNG named both colours (plugins#572). Declared
|
|
2957
|
+
// text-only, as before, every model read as one that can't see.
|
|
2952
2958
|
function configModels(site) {
|
|
2953
2959
|
return Object.fromEntries(site.models.map(([id, name, context, efforts]) => [id, {
|
|
2954
2960
|
name,
|
|
2955
2961
|
limit: { context, output: 0 },
|
|
2956
2962
|
tool_call: true,
|
|
2963
|
+
attachment: !textOnly(site, id),
|
|
2964
|
+
modalities: { input: textOnly(site, id) ? ["text"] : ["text", "image"], output: ["text"] },
|
|
2957
2965
|
// OpenCode (and magpie's host) read a config model's package and URL
|
|
2958
2966
|
// from provider: { npm, api }, not api
|
|
2959
2967
|
...(nativeOf(site, id) ? { provider: { npm: NPM_MESSAGES, api: apiMessages(site) } } : {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|