opencode-translate 0.3.5 → 0.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-translate",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
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": "src/index.ts",
@@ -1,15 +1,8 @@
1
- import {
2
- parseTranslatorModel,
3
- type ResolvedTranslateOptions,
4
- SPEC_VERSION,
5
- type TextPartLike,
6
- type TranslateState,
7
- } from "../constants"
1
+ import { type ResolvedTranslateOptions, SPEC_VERSION, type TextPartLike, type TranslateState } from "../constants"
8
2
  import { createSyntheticPartID } from "../translator"
9
3
 
10
4
  export function createActivationBannerText(options: ResolvedTranslateOptions): string {
11
- const { modelID } = parseTranslatorModel(options.model)
12
- return `✓ Translation mode enabled · model: ${modelID} · language: ${options.lang}`
5
+ return `✓ Translation mode enabled · model: ${options.model} · language: ${options.lang}`
13
6
  }
14
7
 
15
8
  export function createLlmOnlyTextPart(