opencode-translate 0.3.3 → 0.3.4

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.3",
3
+ "version": "0.3.4",
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",
@@ -22,9 +22,12 @@ export function resolveOptions(options: Record<string, unknown>): ResolvedTransl
22
22
  )
23
23
  }
24
24
 
25
- const trigger = Array.isArray(options.trigger)
26
- ? options.trigger.filter((value): value is string => typeof value === "string" && value.length > 0)
27
- : DEFAULT_TRIGGER
25
+ const rawTrigger = Array.isArray(options.trigger)
26
+ ? options.trigger
27
+ : Array.isArray(options.triggerKeywords)
28
+ ? options.triggerKeywords
29
+ : DEFAULT_TRIGGER
30
+ const trigger = rawTrigger.filter((value): value is string => typeof value === "string" && value.length > 0)
28
31
 
29
32
  return {
30
33
  model,