@ycodium-ai/agent-opencode 0.2.2143 → 0.2.2158
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/dist/index.js +7 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -602,7 +602,11 @@ var OPENCODE_CARD = {
|
|
|
602
602
|
additionalProperties: true
|
|
603
603
|
},
|
|
604
604
|
modelConnectivity: {
|
|
605
|
-
|
|
605
|
+
// 报绑定的默认入口方言:下面那段配置把 `npm` 定死成 openai-compatible,后缀是
|
|
606
|
+
// `/chat/completions`,它的请求打本机端点说 chat。换 `@ai-sdk/anthropic` 能说 messages
|
|
607
|
+
// 不算——投递不换这一栏。别家的脑经宿主翻译接上;打到别的路由的请求,本机端点按那一笔
|
|
608
|
+
// 的路径另挑翻译对。
|
|
609
|
+
dialects: ["openai-chat-completions"],
|
|
606
610
|
acceptsExternalEndpoints: true,
|
|
607
611
|
supportsNativeSubscription: true,
|
|
608
612
|
// opencode 不认「地址一个变量、凭据一个变量」——它读的是
|
|
@@ -611,7 +615,8 @@ var OPENCODE_CARD = {
|
|
|
611
615
|
// 设这个变量(`cliParse.ts` 的 `resolveOpenCodeConfigContent`),默认 `{}`。
|
|
612
616
|
//
|
|
613
617
|
// `npm: "@ai-sdk/openai-compatible"` 定死它说 chat-completions;换成
|
|
614
|
-
// `@ai-sdk/anthropic` 就是 messages
|
|
618
|
+
// `@ai-sdk/anthropic` 就是 messages——那时后缀与 `dialects` 要跟着一起换:宿主按后缀
|
|
619
|
+
// 认手说的方言,兼容判定据此挑直通还是翻译。
|
|
615
620
|
//
|
|
616
621
|
// **还有三层压在这个变量之上**:org 远程配置、`/etc/opencode/`、macOS MDM。手没走
|
|
617
622
|
// 代理时宿主会 logWarning(`provider.proxy.never-reached`)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-opencode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2158",
|
|
4
4
|
"description": "OpenCode executor: OpenCode CLI via @opencode-ai/sdk/v2.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "24.12.4",
|
|
24
24
|
"esbuild": "0.28.1",
|
|
25
25
|
"vite-plus": "0.2.2",
|
|
26
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
26
|
+
"@ycodium-ai/plugin-api": "0.2.2158"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|