@prevalentware/opencode-goal-plugin 0.1.49 → 0.1.51

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,12 +157,28 @@ 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`
161
179
  - `defer_while_tasks_active`: `true`; when enabled, goal auto-continuation waits for active OpenCode Task child sessions and their orchestrator reconciliation before sending the next goal prompt. A deferral re-checks child sessions on a short timer, so a goal deferred by a task never depends on a further idle event to resume.
162
180
  - `max_task_block_seconds`: `900`; wall-clock ceiling on how long a single Task child session may defer goal continuation. A child that stays listed but never reports a terminal state, or a terminal child whose result is never reconciled, stops blocking once the ceiling passes. Set a smaller value for shorter subagents, `0` to remove the ceiling, or disable deferral entirely with `defer_while_tasks_active: false`.
163
- - `max_auto_turns`: `25`
181
+ - `max_auto_turns`: `25`; explicitly resuming a goal with `/goal resume` or `/resume_goal` after it reaches this limit starts a fresh auto-turn window. Token usage and elapsed-time usage are preserved.
164
182
  - `min_continue_interval_seconds`: `3`
165
183
  - Fast V2 executions that finish inside this interval schedule a delayed continuation; they do not require another user message to wake up.
166
184
  - `max_turn_time`: unset by default; set a positive number of seconds to retry one active-goal continuation prompt when a model turn remains busy for that long. Each new busy event resets the watchdog. Idle, built-in retry, session deletion, active Task children, and restricted agents suppress the retry. Watchdog retries are independent of `min_continue_interval_seconds` and never consume auto-turn or no-progress budgets, but recognized transport failures still count toward the `max_prompt_failures` ceiling.
@@ -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.