The models hook gave each listed model in OpenCode's config shape (modalities, reasoning, tool_call), and replaced the entry it was given with it. The host (magpie's and OpenCode's) reads a listed model by its runtime shape: capabilities.input.image, capabilities.reasoning, capabilities.toolcall. So a model models.dev doesn't know, like deepseek-v4-flash-1017, went as one of no known vision, and its reasoning and tool calls were dropped too. listedModel now merges over the existing entry, keeps the config's fields, and sets capabilities from what the vendor says; what it doesn't say keeps what was known of the model. Run (mica, temp HOME): packages/loomy bun test 33 pass; bun scripts/check.mjs loomy ok. With main's index.mjs the new test fails (32 pass, 1 fail). Not tried against a real Loomy account.
29 lines
707 B
JSON
29 lines
707 B
JSON
{
|
|
"name": "@magpie-community/opencode-loomy-auth",
|
|
"version": "0.1.8",
|
|
"description": "OpenCode & Magpie provider plugin for Loomy (讯飞, loomyad.xunfei.cn): SMS sign-in, chat, models, the two point wallets and the daily first-login grant",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"loomy",
|
|
"xunfei",
|
|
"讯飞"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/loomy"
|
|
}
|
|
}
|