@prevalentware/opencode-goal-plugin 0.1.49 → 0.1.50

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/README.md CHANGED
@@ -124,6 +124,7 @@ In OpenCode 1, server options use the package-and-options tuple in `opencode.jso
124
124
  "max_turn_time": 300,
125
125
  "max_task_block_seconds": 900,
126
126
  "max_prompt_failures": 3,
127
+ "locale": "zh-CN",
127
128
  "default_token_budget": 200000,
128
129
  "max_goal_duration_seconds": 1800,
129
130
  "no_progress_token_threshold": 50,
@@ -147,6 +148,7 @@ In OpenCode 2, use the plugin object form instead:
147
148
  "options": {
148
149
  "auto_continue": true,
149
150
  "max_auto_turns": 25,
151
+ "locale": "zh-CN",
150
152
  "default_token_budget": 200000,
151
153
  "restricted_agents": ["plan"]
152
154
  }
@@ -155,6 +157,22 @@ In OpenCode 2, use the plugin object form instead:
155
157
  }
156
158
  ```
157
159
 
160
+ For OpenCode 1, server and TUI plugins are configured separately. To force the TUI to the same locale, use the same
161
+ option in `tui.json`:
162
+
163
+ ```json
164
+ {
165
+ "plugin": [
166
+ [
167
+ "@prevalentware/opencode-goal-plugin",
168
+ {
169
+ "locale": "zh-CN"
170
+ }
171
+ ]
172
+ ]
173
+ }
174
+ ```
175
+
158
176
  Defaults:
159
177
 
160
178
  - `auto_continue`: `true`
@@ -169,6 +187,8 @@ Defaults:
169
187
  - `max_goal_duration_seconds`: unset by default; when set, new goals inherit this elapsed-time safety limit.
170
188
  - `no_progress_token_threshold`: `50`; output-token floor used to judge whether a goal continuation turn made progress.
171
189
  - `max_no_progress_turns`: `2`; consecutive low-progress goal continuation turns before pausing. Only turns produced by a reserved goal continuation count — ordinary low-output assistant messages (for example short tool-call-only turns from PTY or status checks) never increment this counter.
190
+ - `locale`: `"en"` by default. Set `"zh-CN"` for Simplified Chinese, or `"auto"` to detect `LC_ALL`, then `LANG`, then
191
+ the OS/JavaScript runtime locale. Unsupported explicit locales fall back to English.
172
192
  - `register_command`: `true`; registers `/goal`, `/pause_goal`, and `/resume_goal`.
173
193
  - `command_name`: `"goal"`; renames the main goal command only. The reserved names `pause_goal` and `resume_goal` fall back to `goal` so the standalone controls remain available.
174
194
  - `restricted_agents`: `["plan"]`; agents (matched case-insensitively) treated as planning-only for goal execution.