@ycodium-ai/agent-opencode 0.2.2143 → 0.2.2155
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 +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -602,7 +602,10 @@ var OPENCODE_CARD = {
|
|
|
602
602
|
additionalProperties: true
|
|
603
603
|
},
|
|
604
604
|
modelConnectivity: {
|
|
605
|
-
|
|
605
|
+
// 只报绑定送得出去的那一种:下面那段配置把 `npm` 定死成 openai-compatible,后缀是
|
|
606
|
+
// `/chat/completions`,它打本机端点说的永远是 chat。换 `@ai-sdk/anthropic` 能说
|
|
607
|
+
// messages 不算——投递不换这一栏。别家的脑经宿主翻译接上。
|
|
608
|
+
dialects: ["openai-chat-completions"],
|
|
606
609
|
acceptsExternalEndpoints: true,
|
|
607
610
|
supportsNativeSubscription: true,
|
|
608
611
|
// opencode 不认「地址一个变量、凭据一个变量」——它读的是
|
|
@@ -611,7 +614,8 @@ var OPENCODE_CARD = {
|
|
|
611
614
|
// 设这个变量(`cliParse.ts` 的 `resolveOpenCodeConfigContent`),默认 `{}`。
|
|
612
615
|
//
|
|
613
616
|
// `npm: "@ai-sdk/openai-compatible"` 定死它说 chat-completions;换成
|
|
614
|
-
// `@ai-sdk/anthropic` 就是 messages
|
|
617
|
+
// `@ai-sdk/anthropic` 就是 messages——那时后缀与 `dialects` 要跟着一起换:宿主按后缀
|
|
618
|
+
// 认手说的方言,兼容判定据此挑直通还是翻译。
|
|
615
619
|
//
|
|
616
620
|
// **还有三层压在这个变量之上**:org 远程配置、`/etc/opencode/`、macOS MDM。手没走
|
|
617
621
|
// 代理时宿主会 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.2155",
|
|
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.2155"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|