opencode-translate 1.0.7 → 2.0.1

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.
Files changed (4) hide show
  1. package/README.md +94 -6
  2. package/dist/index.js +639 -2026
  3. package/index.d.ts +2 -2
  4. package/package.json +6 -13
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Plugin } from "@opencode-ai/plugin"
1
+ import type { Plugin } from "@opencode/plugin"
2
2
 
3
- export declare const OpencodeTranslate: Plugin
3
+ export declare const OpencodeTranslate: Plugin.Plugin
4
4
 
5
5
  export default OpencodeTranslate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-translate",
3
- "version": "1.0.7",
3
+ "version": "2.0.1",
4
4
  "description": "OpenCode plugin that lets the user chat in a configured language while the main chat loop only sees English.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -43,27 +43,20 @@
43
43
  "test": "bun test",
44
44
  "test:coverage": "bun test --coverage",
45
45
  "test:package": "node scripts/package-smoke.mjs",
46
+ "test:host": "bun run build && node scripts/host-smoke.mjs",
46
47
  "prepare": "bun run build",
47
48
  "prepack": "bun run build"
48
49
  },
49
- "peerDependencies": {
50
- "@opencode-ai/plugin": ">=1.14.0"
51
- },
52
50
  "dependencies": {
53
- "@ai-sdk/amazon-bedrock": "^4.0.96",
54
- "@ai-sdk/anthropic": "^3.0.71",
55
- "@ai-sdk/google": "^3.0.64",
56
- "@ai-sdk/google-vertex": "^4.0.112",
57
- "@ai-sdk/openai": "^3.0.53",
58
- "@ai-sdk/openai-compatible": "^2.0.41",
59
- "ai": "^6.0.168"
51
+ "@opencode/plugin": "2.0.3"
60
52
  },
61
53
  "devDependencies": {
62
54
  "@biomejs/biome": "^2.4.12",
63
- "@opencode-ai/plugin": "^1.14.21",
55
+ "@opencode/ai": "2.0.3",
64
56
  "@types/node": "^25.6.0",
65
57
  "@typescript/native-preview": "beta",
66
58
  "bun-types": "^1.3.13",
67
- "knip": "^6.14.1"
59
+ "knip": "^6.14.1",
60
+ "effect": "4.0.0-rc.112"
68
61
  }
69
62
  }