@open-cr-agent/runtime-opencode 0.12.0 → 0.14.0

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.
@@ -137,6 +137,9 @@ function providerConfig(custom, temperature) {
137
137
  // Checked here once, whatever declared the provider: a configuration file,
138
138
  // ocra Cloud or another caller of this package.
139
139
  function checkProvider(id, provider) {
140
+ if (provider.api === "anthropic") {
141
+ throw new OcraError("CONFIG_INVALID", `Provider "${id}" speaks Anthropic's Messages protocol, which the opencode runtime does not reach for a declared provider: use "runtime": "direct"`);
142
+ }
140
143
  const fields = [
141
144
  ["id", id],
142
145
  ["baseUrl", provider.baseUrl],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-cr-agent/runtime-opencode",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "OpenCode-based agent runtime for Open-CR-Agent",
5
5
  "keywords": [
6
6
  "code-review",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@modelcontextprotocol/sdk": "^1.32.2",
37
- "@open-cr-agent/core": "0.12.0",
37
+ "@open-cr-agent/core": "0.14.0",
38
38
  "@opencode-ai/sdk": "1.18.32",
39
39
  "opencode-ai": "1.18.32",
40
40
  "undici": "^8.12.4",