@justsilver/opencode-providers 0.3.2 → 0.3.3
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.3] - 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- 技能 CLI:`list` / `list --json` 的**顶层共享模型引用方按供应商去重**(同一家多个模型引用同一 canon 时,不再出现 `r4-coder, r4-coder`)。
|
|
15
|
+
- 技能 CLI:`search` 输出给**供应商 id/名称命中**加标记 `〔供应商 id/名称命中〕`,与「仅其名下模型命中」区分。
|
|
16
|
+
- 技能 CLI:`remove-shared-model` 的**拒绝文案**改为**推荐 `remove-model`**,并说明「纯 `base` 引用直接 `--unset base` 会留下无 limit 的非法模型」。
|
|
17
|
+
- 技能:澄清「**精确命中不用问**,直接 `--base`;**模糊命中(多个/相似)**才用 `"multiple"` 的 `question` 二次确认」;「改名」限定为 **id/key(标识)**(**显示名**走 `set-provider --name` / `set-model --model-name`);判定供应商是否存在**用 `show <id>`**(`search` 是宽松召回,同 token 会假阳性);`set-model` / `set-shared-model` **不能补 `variants`**。
|
|
18
|
+
- 技能 CLI:`search` 改为**宽松匹配(召回优先)**——归一化(大小写、`. _ / \` 与 `-` 等价、词序无关、忽略版本数字)+ token,**一次搜索可能召回多个候选**。
|
|
19
|
+
- 技能:命中**分档**——归一化后相等才 `--base`;**召回多个 / 相似但不同**(如 `glm-5` vs `glm-5-air`)→ 用 `"multiple": true` 的 `question` 把候选动态列出让用户**二次确认**(**模糊命中不标「推荐」**);无命中的「家族标签(lab)」题**动态列出已有 lab** 且**支持多选**;并明确**跨步骤不得沿用上一步的 lab**。
|
|
20
|
+
- 插件:模型**输入模态兜底 `["text"]` → `["text","image"]`**,与 opencode 内核 `Model.Info.default()`(`packages/schema/src/model.ts`)一致;注册表未写 `input` 的模型从此默认支持图片,**纯文本模型必须显式写 `input: ["text"]`**(技能 CLI 传 `--input text`),`output` 兜底仍为 `["text"]`。
|
|
21
|
+
|
|
10
22
|
## [0.3.2] - 2026-10-08
|
|
11
23
|
|
|
12
24
|
首个稳定版(并入 `0.3.2-beta.0` / `0.3.2-beta.1` 的全部内容)。
|
|
@@ -207,7 +219,8 @@
|
|
|
207
219
|
- 插件源码从 `.opencode/plugins/opencode-providers/` 移到 `plugin/opencode-providers/`:仓库自身不再是插件发现根,避免在仓库里跑 opencode 时与全局安装的同 id 副本相撞(`Duplicate plugin ID` → 面板里一条 `failed`)
|
|
208
220
|
- 安装后**通常无需重启**(插件目录被文件监视热重载),不再要求 `opencode service restart`
|
|
209
221
|
|
|
210
|
-
[Unreleased]: https://github.com/Just-Silver/opencode-providers/compare/v0.3.
|
|
222
|
+
[Unreleased]: https://github.com/Just-Silver/opencode-providers/compare/v0.3.3...HEAD
|
|
223
|
+
[0.3.3]: https://github.com/Just-Silver/opencode-providers/releases/tag/v0.3.3
|
|
211
224
|
[0.3.2]: https://github.com/Just-Silver/opencode-providers/releases/tag/v0.3.2
|
|
212
225
|
[0.3.1]: https://github.com/Just-Silver/opencode-providers/releases/tag/v0.3.1
|
|
213
226
|
[0.3.0]: https://github.com/Just-Silver/opencode-providers/releases/tag/v0.3.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justsilver/opencode-providers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Register providers missing from the models.dev catalog in OpenCode V2 from a self-hosted registry — no opencode.json needed",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,7 +56,8 @@ export function buildProviderModels(
|
|
|
56
56
|
...(Object.keys(compatibility).length === 0 ? {} : { compatibility }),
|
|
57
57
|
capabilities: {
|
|
58
58
|
tools: resolved.tools ?? true,
|
|
59
|
-
|
|
59
|
+
// 与 opencode 内核 `Model.Info.default()` 一致(packages/schema/src/model.ts):缺省 input = text+image。
|
|
60
|
+
input: resolved.input ?? ["text", "image"],
|
|
60
61
|
output: resolved.output ?? ["text"],
|
|
61
62
|
},
|
|
62
63
|
variants: (resolved.variants ?? []).map((variant) =>
|