dsh-client-auto-continue 0.17.4 → 0.19.0

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 (45) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +230 -281
  3. package/README.ru.md +382 -0
  4. package/README.zh.md +229 -279
  5. package/docs/auto-continue-workflow.archify.json +3 -3
  6. package/docs/auto-continue-workflow.en.archify.json +3 -3
  7. package/docs/auto-continue-workflow.en.html +1 -1
  8. package/docs/auto-continue-workflow.html +1 -1
  9. package/docs/auto-continue-workflow.ru.svg +530 -0
  10. package/docs/banner-ru-dark.svg +38 -0
  11. package/docs/banner-ru.svg +38 -0
  12. package/docs/demo-ru-static.svg +115 -0
  13. package/docs/demo-ru.svg +147 -0
  14. package/docs/releases/v0.18.0.md +58 -0
  15. package/docs/releases/v0.19.0.md +62 -0
  16. package/docs/social-preview.png +0 -0
  17. package/docs/social-preview.svg +30 -1
  18. package/lib/client.js +347 -100
  19. package/lib/client.js.map +3 -3
  20. package/lib/index.js +790 -49
  21. package/lib/types/client/auto-continue-icon.d.ts +7 -0
  22. package/lib/types/client/bridge.d.ts +2 -0
  23. package/lib/types/client/composer-toggle.d.ts +2 -0
  24. package/lib/types/client/locales.d.ts +19 -0
  25. package/lib/types/client/settings-card.d.ts +8 -0
  26. package/lib/types/host/connectivity.d.ts +4 -0
  27. package/lib/types/host/engine.d.ts +97 -5
  28. package/lib/types/index.d.ts +64 -0
  29. package/lib/types/shared/core.d.ts +54 -1
  30. package/locale/ru.json +6 -0
  31. package/package.json +6 -4
  32. package/scripts/build-docs-assets.mjs +126 -0
  33. package/src/client/auto-continue-icon.tsx +6 -27
  34. package/src/client/bridge.ts +26 -6
  35. package/src/client/composer-toggle.tsx +22 -11
  36. package/src/client/index.ts +5 -1
  37. package/src/client/locales.ts +241 -38
  38. package/src/client/settings-card.tsx +31 -4
  39. package/src/client/settings-notifications.ts +3 -2
  40. package/src/client/styles.ts +17 -19
  41. package/src/host/connectivity.ts +54 -0
  42. package/src/host/engine.ts +852 -40
  43. package/src/host/settings-migration.ts +1 -1
  44. package/src/index.ts +26 -1
  45. package/src/shared/core.ts +94 -3
package/lib/client.js CHANGED
@@ -38,7 +38,10 @@ module.exports = __toCommonJS(index_exports);
38
38
 
39
39
  // src/shared/core.ts
40
40
  function resolveLocale(locale) {
41
- return typeof locale === "string" && /^zh(?:-|$)/i.test(locale) ? "zh" : "en";
41
+ if (typeof locale !== "string") return "en";
42
+ if (/^zh(?:-|$)/i.test(locale)) return "zh";
43
+ if (/^ru(?:-|$)/i.test(locale)) return "ru";
44
+ return "en";
42
45
  }
43
46
  var isSessionMode = (value) => value === "default" || value === "off" || value === "recover" || value === "loop";
44
47
  function sessionMode(modes, sessionId) {
@@ -64,12 +67,24 @@ var LOCALIZED_TEXT_DEFAULTS = {
64
67
  guardPendingText: '(The previous tool "{tool}" may not have completed. Check its state before continuing and do not run it again.)',
65
68
  guardDoneText: '(The previous tool "{tool}" completed successfully. Result: {result}; do not run it again. Continue from there.)',
66
69
  loopText: "(You may be stuck in a loop. Stop repeating the last action and continue with a different approach.)"
70
+ },
71
+ ru: {
72
+ continueText: "Продолжай",
73
+ continueTextMaxTokens: "Продолжай",
74
+ continueTextSilent: "Продолжай. Предыдущий ход закончился только внутренним рассуждением: ни ответа, ни вызова инструмента, поэтому пользователь ничего не увидел. Каждый ход должен заканчиваться вызовом инструмента или видимым ответом.",
75
+ continueTextLoop: "Продолжай",
76
+ continueTextInterrupted: "Продолжай. Хост перезапустился, пока предыдущий ход ещё выполнялся; вызовы инструментов, незавершённые на момент перезапуска, записаны с неизвестным результатом. Продолжай с места остановки, проверяя внешнее состояние перед повтором действий с возможными побочными эффектами.",
77
+ guardPendingText: "(Предыдущий инструмент «{tool}», возможно, не завершился. Проверь его состояние перед продолжением и не запускай его повторно.)",
78
+ guardDoneText: "(Предыдущий инструмент «{tool}» завершился успешно. Результат: {result}; не запускай его повторно, продолжай с этого места.)",
79
+ loopText: "(Похоже, ты застрял в цикле. Перестань повторять последнее действие и продолжай другим способом.)"
67
80
  }
68
81
  };
69
82
  var DEFAULT_CONFIG = {
70
83
  locale: "en",
71
84
  ...LOCALIZED_TEXT_DEFAULTS.en,
85
+ usePluginSource: false,
72
86
  resumeSilentTurns: true,
87
+ resumeSubagentSessions: false,
73
88
  resumeCompletedTurns: false,
74
89
  continueTextLoop: "",
75
90
  guardTools: true,
@@ -93,7 +108,13 @@ var DEFAULT_CONFIG = {
93
108
  loopWindowMs: 3e4,
94
109
  loopShortCount: 12,
95
110
  loopRepeatText: 4,
96
- loopToolRepeat: 5
111
+ loopToolRepeat: 5,
112
+ resumeInterruptedChildren: false,
113
+ resumeGoals: false,
114
+ resumePausedGoals: false,
115
+ pauseWhenOffline: true,
116
+ offlineCheckMs: 15e3,
117
+ loopMaxIterations: 0
97
118
  };
98
119
  var RECOVERY_WINDOW_MS = 10 * 60 * 1e3;
99
120
  var ECHO_WINDOW_MS = 10 * 60 * 1e3;
@@ -127,6 +148,8 @@ var zh = {
127
148
  "field.paused": "全局启用自动继续",
128
149
  "field.showComposerToggle": "在会话区显示自动继续开关",
129
150
  "field.showComposerToggleHint": "默认显示。隐藏控件不会改变会话模式;点击保存后生效。",
151
+ "field.usePluginSource": "以插件来源发送继续消息",
152
+ "field.usePluginSourceHint": "默认关闭,沿用旧版用户消息来源;开启后标记为本插件来源。点击保存后生效。",
130
153
  "composer.label": "自动继续",
131
154
  "composer.mode": "自动继续模式",
132
155
  "composer.scope": "只控制当前会话,立即保存并同步到其他标签页。关闭后也不再自动打断循环。",
@@ -136,6 +159,7 @@ var zh = {
136
159
  "composer.loop": "自主循环",
137
160
  "composer.paused": "全局已暂停",
138
161
  "composer.unavailable": "等待宿主连接",
162
+ "composer.reconnecting": "正在重新连接状态桥…当前显示的是上次的设置,重连后才能修改。",
139
163
  "composer.saving": "正在保存自动继续设置…",
140
164
  "composer.saveFailed": "保存失败,请重试",
141
165
  "field.pausedHint": "恢复意外中断的会话。关闭并保存后,全局暂停恢复并取消已排队的继续。循环守卫独立运行;如需停止自动打断,请同时关闭循环守卫。",
@@ -147,8 +171,22 @@ var zh = {
147
171
  "default.continueTextMaxTokens": LOCALIZED_TEXT_DEFAULTS.zh.continueTextMaxTokens,
148
172
  "field.resumeSilentTurns": "续跑无输出回合",
149
173
  "field.resumeSilentTurnsHint": "已观察到模型活动但没有可见输出时续跑;不把空回合、图片或扩展内容误判为静默,冷却与连续上限照常生效。",
174
+ "field.resumeSubagentSessions": "续跑子代理会话",
175
+ "field.resumeSubagentSessionsHint": "当子代理所属主会话启用自动继续时,自动续跑其中断的子代理会话。子代理不会进入自主循环、不会被循环守卫重启,也不会由启动扫描恢复。默认关闭。只对仍处于加载状态的子代理生效:DSH 通常会在后台子代理失败后立即关闭它,并把失败结果交给父会话。",
150
176
  "field.resumeCompletedTurns": "默认会话模式",
151
- "field.resumeCompletedTurnsHint": "用于没有单独设置模式的会话。仅故障恢复不会接力正常完成的回合;自主循环会在正常完成后继续。无输出和失败回合仍受重试预算约束。",
177
+ "field.resumeCompletedTurnsHint": "用于未单独设置模式的会话。仅故障恢复继续中断和无输出回合;自主循环还会在正常完成后继续。无输出和失败回合仍计入连续重试次数。",
178
+ "field.resumeInterruptedChildren": "重启后唤醒子代理会话",
179
+ "field.resumeInterruptedChildrenHint": "DSH 重启后,将中断的子代理或团队成员会话清单发送给根会话,由其决定继续或收尾。默认关闭;你手动停止的根会话保持停止。",
180
+ "field.resumeGoals": "重新武装被重启失活的 goal",
181
+ "field.resumeGoalsHint": "会话被自动续跑时,把被宿主 disarm 的 active goal 重新 arm,让 goal 的自动继续轮能转起来。注意:这等于代替你做了授权,所以默认关闭。",
182
+ "field.resumePausedGoals": "恢复被暂停的 goal",
183
+ "field.resumePausedGoalsHint": "连你手动 pause 的 goal 也一并恢复(需同时开启「重新武装被重启失活的 goal」)。暂停通常是人的明确决定,非必要别开。",
184
+ "field.pauseWhenOffline": "断网时暂停续跑",
185
+ "field.pauseWhenOfflineHint": "网络类错误(连不上、DNS 失败、传输超时)续跑前先检测宿主是否联网;断网时挂起,不消耗连续次数,联网后自动继续。设了 HTTP(S)_PROXY 时只检查网卡。",
186
+ "field.offlineCheckMs": "断网复检间隔 (ms)",
187
+ "field.offlineCheckMsHint": "挂起期间多久重新检测一次网络,最小 1000。",
188
+ "field.loopMaxIterations": "自主循环轮数上限",
189
+ "field.loopMaxIterationsHint": "每个会话自主续跑的最多轮数,0 为不限制。到达上限后停下并提示一次;你发消息或重新开启循环后重新计数。",
152
190
  "field.continueTextLoop": "自主循环的继续文本",
153
191
  "field.continueTextLoopHint": "自主循环每次续跑时发送的文本。",
154
192
  "default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.zh.continueTextLoop,
@@ -156,10 +194,10 @@ var zh = {
156
194
  "field.continueTextSilentHint": "回合只输出推理就结束时自动发送的文本, 支持与继续文本相同的占位符。",
157
195
  "default.continueTextSilent": LOCALIZED_TEXT_DEFAULTS.zh.continueTextSilent,
158
196
  "field.continueTextInterrupted": "宿主重启后恢复的继续文本",
159
- "field.continueTextInterruptedHint": "启动扫描恢复重启中断的会话时发送的文本, 默认说明重启并提醒先核实再重试。",
197
+ "field.continueTextInterruptedHint": "DSH 重启后恢复中断会话时发送的文本。",
160
198
  "default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.zh.continueTextInterrupted,
161
199
  "field.guardTools": "幂等护栏",
162
- "field.guardToolsHint": "续跑前检查上一步工具调用: 结果未确认时提示先确认状态, 已成功时提示不要重复执行, 避免重复 commit/调 API。",
200
+ "field.guardToolsHint": "继续前,工具结果未确认时提醒模型核实状态,已成功时提醒跳过该操作。",
163
201
  "field.guardPendingText": "结果未确认时的护栏文本",
164
202
  "field.guardPendingTextHint": "上一步工具可能已部分执行时附加到继续文本之后, 支持 {tool} 占位符。",
165
203
  "default.guardPendingText": LOCALIZED_TEXT_DEFAULTS.zh.guardPendingText,
@@ -169,28 +207,28 @@ var zh = {
169
207
  "field.graceMs": "宽限期 (ms)",
170
208
  "field.graceMsHint": "检测到中断后等待的时长; 期间宿主自行恢复则取消。",
171
209
  "field.cooldownMs": "冷却时间 (ms)",
172
- "field.cooldownMsHint": "同一会话恢复尝试的最小间隔;期间出现的失败会等待剩余冷却,再进入宽限期。正常完成后的自主循环接力不受此限制。",
210
+ "field.cooldownMsHint": "同一会话两次恢复尝试的最小间隔。冷却期间失败会先等待冷却结束,再进入宽限期;正常完成后的自主循环不受此限制。",
173
211
  "field.maxConsecutive": "最大连续次数",
174
- "field.maxConsecutiveHint": "连续恢复尝试上限;用户介入或观察到有可见输出的成功回合后清零。正常完成后的自主循环接力不计入。",
212
+ "field.maxConsecutiveHint": "连续恢复尝试的上限;用户介入或回合成功且有可见输出后清零。正常完成后的自主循环不计入。",
175
213
  "field.scanOnBoot": "启动恢复扫描",
176
- "field.scanOnBootHint": "宿主启动后在扫描时间窗内等待延迟加载的中断会话,未重新加载的持久化会话也会被物化一并检查,每个已就绪会话只检查一次。",
214
+ "field.scanOnBootHint": "DSH 启动后,在扫描时间窗内查找并恢复近期中断的会话,包括当前未打开的会话。",
177
215
  "field.scanLimit": "扫描会话数",
178
216
  "field.scanLimitHint": "每次扫描最多恢复多少个符合条件的会话,优先最近活动的会话。",
179
217
  "field.freshMs": "扫描时间窗 (ms)",
180
- "field.freshMsHint": "只处理该时间窗内的中断;启动轮询也会在这段时间后结束。",
218
+ "field.freshMsHint": "恢复此时长内中断的会话;启动扫描也在此时长后结束。",
181
219
  "field.verbose": "详细日志",
182
- "field.verboseHint": "在 DSH 宿主日志中输出 [auto-continue] 引擎活动;CLI 用户可在运行 DSH 的终端查看。",
220
+ "field.verboseHint": "在 DSH 日志中记录自动继续活动,前缀为 [auto-continue];使用 CLI 时可在运行 DSH 的终端查看。",
183
221
  "field.classify": "错误分类",
184
222
  "field.classifyHint": "仅自动恢复临时性错误(网络/超时/5xx 等); 认证/余额/模型不存在等永久性错误跳过并通知。",
185
223
  "field.retryableErrorPatterns": "自定义可恢复错误",
186
- "field.retryableErrorPatternsHint": "每行一个大小写不敏感的普通文本片段; 命中错误码、HTTP 状态或消息时覆盖内置分类。请只填 provider 稳定且足够具体的文案, 过宽会重复请求。",
224
+ "field.retryableErrorPatternsHint": "每行填写一个具体文本片段,忽略大小写。匹配错误码、HTTP 状态或消息后允许重试;宽泛片段也会重试认证、余额等原本跳过的错误。",
187
225
  "field.retryableErrorPatternsPlaceholder": "例如:Upstream rejected the request as invalid",
188
226
  "field.backoffFactor": "退避系数",
189
227
  "field.backoffFactorHint": "连续失败时冷却间隔的倍率(如 2 表示 20s→40s→80s 递增)。",
190
228
  "field.backoffMaxMs": "最大退避间隔 (ms)",
191
- "field.backoffMaxMsHint": "自适应退避的上限, 防止等待过久。",
229
+ "field.backoffMaxMsHint": "连续失败时,冷却间隔增长到此值后不再增加。",
192
230
  "field.notify": "浏览器通知",
193
- "field.notifyHint": "开启后,自动继续事件和配置保存成功时会通知。切换此选项并保存后也会确认状态;首次开启需允许浏览器通知。",
231
+ "field.notifyHint": "开启后,自动继续活动和设置保存成功时会通知;关闭并保存时也会收到确认。首次开启需允许浏览器通知。",
194
232
  "stats.title": "今日统计",
195
233
  "stats.sent": "自动继续",
196
234
  "stats.skipped": "跳过(永久错误)",
@@ -199,17 +237,17 @@ var zh = {
199
237
  "stats.gaveUp": "停止(达上限)",
200
238
  "stats.looped": "循环打断",
201
239
  "field.loopGuard": "循环守卫",
202
- "field.loopGuardHint": "检测运行中的回合空转: 连续短句且无工具调用、流式消息内连续复读, 或连续调用相同工具时, 自动取消并用循环提示文本重启回合。",
240
+ "field.loopGuardHint": "回合连续输出短句且无工具调用、重复文本或重复相同工具调用时,按以下阈值自动打断,并用循环提示文本重启。",
203
241
  "field.loopShortChars": "短句长度上限 (字符)",
204
- "field.loopShortCharsHint": "模型消息文本短于该值计为一条短句(空转信号)。",
242
+ "field.loopShortCharsHint": "模型消息文本短于此值时计为一条短句。",
205
243
  "field.loopWindowMs": "短句时间窗 (ms)",
206
- "field.loopWindowMsHint": "连续短句必须落在这个时间窗内; 正常思考的短文本散布在长时间里不会被误判。",
244
+ "field.loopWindowMsHint": "仅统计此时间窗内的连续短句。",
207
245
  "field.loopShortCount": "连续短句阈值",
208
246
  "field.loopShortCountHint": "时间窗内连续多少条短句且期间无工具调用时判定空转循环。",
209
247
  "field.loopRepeatText": "相同消息重复次数",
210
- "field.loopRepeatTextHint": "连续输出多少条完全相同的消息时判定空转(最强信号, 不限长度, 也用于流式消息内连续复读段落)。",
248
+ "field.loopRepeatTextHint": "连续输出相同消息达到此次数时打断,不限消息长度;也适用于单条流式消息内的重复段落。",
211
249
  "field.loopToolRepeat": "同工具重复次数",
212
- "field.loopToolRepeatHint": "同工具+同参数+同结果的连续调用多少次时判定死循环; 参数或结果有变化视为有进展。",
250
+ "field.loopToolRepeatHint": "工具、参数和结果均相同的连续调用达到此次数时打断。",
213
251
  "field.loopText": "循环提示文本",
214
252
  "field.loopTextHint": "打断后重启回合时发送的文本, 支持 {tool} 占位符。",
215
253
  "default.loopText": LOCALIZED_TEXT_DEFAULTS.zh.loopText,
@@ -217,7 +255,7 @@ var zh = {
217
255
  "stats.empty": "今天还没有自动继续记录。",
218
256
  "stats.reset": "清零",
219
257
  "recovery.title": "近期恢复尝试",
220
- "recovery.hint": "按会话汇总宿主最近 20 次恢复提示,重启插件后清空。正常自主续跑不计入。提示已发送不代表任务已完成;若反复恢复,请检查会话并考虑交接到新会话。",
258
+ "recovery.hint": "按会话汇总当前 DSH 最近 20 次恢复尝试,插件重启后清空,不含正常自主续跑。",
221
259
  "recovery.empty": "尚无恢复尝试。",
222
260
  "recovery.count": "窗口内尝试",
223
261
  "recovery.consecutive": "最近发送时连续次数",
@@ -236,9 +274,9 @@ var zh = {
236
274
  "chrome.collapse": "收起设置",
237
275
  "chrome.expand": "展开设置",
238
276
  "chrome.unsaved": "未保存",
239
- "chrome.readOnly": "当前部署的设置只读。",
277
+ "chrome.readOnly": "设置为只读,无法修改。",
240
278
  "chrome.unavailable": "设置暂不可用。",
241
- "chrome.saveFailed": "部署未接受这些值, 已保留供你修改。",
279
+ "chrome.saveFailed": "保存失败,修改已保留。请检查后重试。",
242
280
  "chrome.discard": "放弃",
243
281
  "chrome.saving": "保存中…",
244
282
  "chrome.save": "保存",
@@ -277,6 +315,8 @@ var en = {
277
315
  "field.paused": "Enable auto-continue globally",
278
316
  "field.showComposerToggle": "Show auto-continue switch in the composer",
279
317
  "field.showComposerToggleHint": "Shown by default. Hiding the control does not change session modes. Click Save to apply.",
318
+ "field.usePluginSource": "Send continue messages with plugin source",
319
+ "field.usePluginSourceHint": "Off by default to keep the legacy user-message source. Turn on to identify messages as coming from this plugin. Click Save to apply.",
280
320
  "composer.label": "Auto-continue",
281
321
  "composer.mode": "Auto-continue mode",
282
322
  "composer.scope": "Only affects this session. Saved immediately and synced across tabs. Off also disables loop-guard interruptions here.",
@@ -286,6 +326,7 @@ var en = {
286
326
  "composer.loop": "Autonomous loop",
287
327
  "composer.paused": "Globally paused",
288
328
  "composer.unavailable": "Waiting for host",
329
+ "composer.reconnecting": "Reconnecting to the host… Showing the last known setting; changes are available again once reconnected.",
289
330
  "composer.saving": "Saving auto-continue setting…",
290
331
  "composer.saveFailed": "Could not save. Try again.",
291
332
  "field.pausedHint": "Resume interrupted sessions. Turn off and save to pause recovery globally and cancel queued continuations. The loop guard stays active; turn it off separately to stop automatic interruptions.",
@@ -297,8 +338,22 @@ var en = {
297
338
  "default.continueTextMaxTokens": LOCALIZED_TEXT_DEFAULTS.en.continueTextMaxTokens,
298
339
  "field.resumeSilentTurns": "Resume silent turns",
299
340
  "field.resumeSilentTurnsHint": "Resume observed model activity without visible output. No-op turns, images and extension blocks are not treated as silent; cooldown and retry limits still apply.",
341
+ "field.resumeSubagentSessions": "Resume subagent sessions",
342
+ "field.resumeSubagentSessionsHint": "Auto-continue interrupted subagent sessions when their main conversation has auto-continue enabled. Subagents never start the autonomous loop, are never loop-guard restarted, and are not recovered by the startup scan. Off by default. Only applies while the subagent is still loaded: DSH usually closes a background subagent as soon as it fails and reports the failure to its parent.",
300
343
  "field.resumeCompletedTurns": "Default session mode",
301
- "field.resumeCompletedTurnsHint": "Applies to sessions without their own mode. Recovery only leaves normal completions alone; autonomous loop continues after them. Silent and failed turns still consume the retry budget.",
344
+ "field.resumeCompletedTurnsHint": "Applies to sessions without their own mode. Recovery only resumes interruptions and silent turns; autonomous loop also continues after normal completions. Silent and failed turns still count toward the consecutive retry limit.",
345
+ "field.resumeInterruptedChildren": "Wake child sessions after restart",
346
+ "field.resumeInterruptedChildrenHint": "After DSH restarts, send the root session a list of interrupted subagent or team-member sessions so it can continue or wrap up their work. Off by default; root sessions you stopped manually stay stopped.",
347
+ "field.resumeGoals": "Re-arm goals disarmed by a restart",
348
+ "field.resumeGoalsHint": "When a session is auto-continued, re-arm an active goal that the host disarmed so its continuation rounds can run again. This authorizes on your behalf, so it is off by default.",
349
+ "field.resumePausedGoals": "Resume paused goals",
350
+ "field.resumePausedGoalsHint": "Also resume goals you paused by hand (requires “Re-arm goals disarmed by a restart” to be on as well). Pausing is normally a deliberate human decision; leave this off unless you want it.",
351
+ "field.pauseWhenOffline": "Pause while offline",
352
+ "field.pauseWhenOfflineHint": "Before retrying a network error (unreachable host, DNS failure, transport timeout), check that the host is online. While offline the retry waits without using up consecutive attempts, then continues once the network is back. With HTTP(S)_PROXY set, only network interfaces are checked.",
353
+ "field.offlineCheckMs": "Offline re-check interval (ms)",
354
+ "field.offlineCheckMsHint": "How often a held retry checks the network again. Minimum 1000.",
355
+ "field.loopMaxIterations": "Autonomous loop round limit",
356
+ "field.loopMaxIterationsHint": "Maximum autonomous rounds per session; 0 means no limit. When reached, the loop stops and tells you once; sending a message or turning the loop back on starts the count over.",
302
357
  "field.continueTextLoop": "Continue text (autonomous loop)",
303
358
  "field.continueTextLoopHint": "Text sent on each autonomous-loop continuation.",
304
359
  "default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.en.continueTextLoop,
@@ -306,10 +361,10 @@ var en = {
306
361
  "field.continueTextSilentHint": "Text sent when a turn ends with reasoning only; same placeholders as the continue text.",
307
362
  "default.continueTextSilent": LOCALIZED_TEXT_DEFAULTS.en.continueTextSilent,
308
363
  "field.continueTextInterrupted": "Continue text (after harness restart)",
309
- "field.continueTextInterruptedHint": "Text sent when the boot scan resumes a session interrupted by a restart; the default explains the restart and asks to verify before retrying.",
364
+ "field.continueTextInterruptedHint": "Text sent when resuming an interrupted session after DSH restarts.",
310
365
  "default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.en.continueTextInterrupted,
311
366
  "field.guardTools": "Idempotency guard",
312
- "field.guardToolsHint": "Before resuming, inspect the last tool call: if its result is unconfirmed, tell the model to check state first; if it succeeded, tell it not to rerun — avoids duplicate commits / API calls.",
367
+ "field.guardToolsHint": "Before resuming, remind the model to check unconfirmed tool results or skip an action that already succeeded.",
313
368
  "field.guardPendingText": "Guard text (unconfirmed result)",
314
369
  "field.guardPendingTextHint": "Appended when the last tool may have partially executed; supports the {tool} placeholder.",
315
370
  "default.guardPendingText": LOCALIZED_TEXT_DEFAULTS.en.guardPendingText,
@@ -319,28 +374,28 @@ var en = {
319
374
  "field.graceMs": "Grace period (ms)",
320
375
  "field.graceMsHint": "Wait after an interruption; cancelled if the host recovers on its own.",
321
376
  "field.cooldownMs": "Cooldown (ms)",
322
- "field.cooldownMsHint": "Minimum interval between recovery attempts; failures during cooldown wait for the remaining interval, then grace. Normal autonomous-loop handoffs are exempt.",
377
+ "field.cooldownMsHint": "Minimum interval between recovery attempts in the same session. Failures during cooldown wait until it ends, then enter the grace period. Autonomous continuations after normal completions are exempt.",
323
378
  "field.maxConsecutive": "Max consecutive",
324
- "field.maxConsecutiveHint": "Consecutive recovery-attempt cap; resets on user intervention or an observed completion with visible output. Normal autonomous-loop handoffs are exempt.",
379
+ "field.maxConsecutiveHint": "Limit on consecutive recovery attempts. Resets on user intervention or a successful turn with visible output. Autonomous continuations after normal completions do not count.",
325
380
  "field.scanOnBoot": "Scan on host startup",
326
- "field.scanOnBootHint": "Wait for delayed interrupted sessions during the startup scan window; persisted sessions the host never reloaded are materialized and inspected too; each settled session is inspected once.",
381
+ "field.scanOnBootHint": "When DSH starts, find and resume recently interrupted sessions within the scan window, including sessions that are not currently open.",
327
382
  "field.scanLimit": "Scan limit",
328
383
  "field.scanLimitHint": "Maximum eligible sessions to recover per pass, most recently active first.",
329
384
  "field.freshMs": "Scan window (ms)",
330
- "field.freshMsHint": "Only interruptions inside this window are considered; startup polling also ends after this duration.",
385
+ "field.freshMsHint": "Resume sessions interrupted within this duration. The startup scan also ends after this duration.",
331
386
  "field.verbose": "Verbose logs",
332
- "field.verboseHint": "Write engine activity to DSH host logs with the [auto-continue] prefix; CLI users can read them in the terminal running DSH.",
387
+ "field.verboseHint": "Record auto-continue activity in DSH logs with the [auto-continue] prefix. CLI users can view them in the terminal running DSH.",
333
388
  "field.classify": "Classify errors",
334
389
  "field.classifyHint": "Auto-resume transient failures only (network/timeout/5xx…); auth, balance and model errors are skipped and notified.",
335
390
  "field.retryableErrorPatterns": "Custom retryable errors",
336
- "field.retryableErrorPatternsHint": "One case-insensitive literal per line. A match in the error code, HTTP status, or message overrides built-in classification. Use only stable, provider-specific text; broad matches can repeat requests.",
391
+ "field.retryableErrorPatternsHint": "Enter one specific text fragment per line, ignoring case. A match in the error code, HTTP status, or message allows a retry. Broad fragments can also retry normally skipped authentication or balance errors.",
337
392
  "field.retryableErrorPatternsPlaceholder": "For example: Upstream rejected the request as invalid",
338
393
  "field.backoffFactor": "Backoff factor",
339
394
  "field.backoffFactorHint": "Cooldown multiplier per consecutive failure (2 = 20s→40s→80s…).",
340
395
  "field.backoffMaxMs": "Max backoff (ms)",
341
- "field.backoffMaxMsHint": "Cap on the adaptive backoff interval.",
396
+ "field.backoffMaxMsHint": "Cooldown stops increasing at this value after consecutive failures.",
342
397
  "field.notify": "Browser notifications",
343
- "field.notifyHint": "Notify about auto-continue events and successful settings saves. Saving a change to this option also confirms its state. Allow browser notifications when first enabling it.",
398
+ "field.notifyHint": "When enabled, notify about auto-continue activity and successful settings saves. Turning this off and saving also sends a confirmation. Allow browser notifications when first enabling it.",
344
399
  "stats.title": "Today's stats",
345
400
  "stats.sent": "Auto-continued",
346
401
  "stats.skipped": "Skipped (permanent)",
@@ -349,17 +404,17 @@ var en = {
349
404
  "stats.gaveUp": "Gave up (cap)",
350
405
  "stats.looped": "Loops broken",
351
406
  "field.loopGuard": "Loop guard",
352
- "field.loopGuardHint": "Detects a running turn spinning in place — many short sentences with no tool calls, repeated paragraphs inside one streamed assistant message, or the same tool repeating — then cancels and restarts with the loop text.",
407
+ "field.loopGuardHint": "Interrupt turns that produce consecutive short sentences without tool calls, repeat text, or repeat identical tool calls at the thresholds below. Restart with the loop text.",
353
408
  "field.loopShortChars": "Short-sentence max (chars)",
354
- "field.loopShortCharsHint": "A model message shorter than this counts as a short sentence (spinning signal).",
409
+ "field.loopShortCharsHint": "A model message shorter than this counts as a short sentence.",
355
410
  "field.loopWindowMs": "Short-sentence window (ms)",
356
- "field.loopWindowMsHint": "Consecutive short sentences must land inside this window; normal thinking spread over time is not misjudged.",
411
+ "field.loopWindowMsHint": "Count consecutive short sentences only within this window.",
357
412
  "field.loopShortCount": "Short-sentence threshold",
358
413
  "field.loopShortCountHint": "How many consecutive short sentences inside the window, with no tool call, trip the loop guard.",
359
414
  "field.loopRepeatText": "Identical message count",
360
- "field.loopRepeatTextHint": "How many consecutive identical messages trip the guard (strongest signal, any length; also used for repeated paragraphs inside one streamed assistant message).",
415
+ "field.loopRepeatTextHint": "Interrupt after this many consecutive identical messages, regardless of length. Also applies to repeated paragraphs within a single streamed message.",
361
416
  "field.loopToolRepeat": "Same-tool repeat count",
362
- "field.loopToolRepeatHint": "How many consecutive calls of the same tool with identical arguments and results trip the loop guard; a changed argument or result counts as progress.",
417
+ "field.loopToolRepeatHint": "Interrupt after this many consecutive calls with the same tool, arguments, and results.",
363
418
  "field.loopText": "Loop text",
364
419
  "field.loopTextHint": "Text sent after the loop guard restarts a turn; supports the {tool} placeholder.",
365
420
  "default.loopText": LOCALIZED_TEXT_DEFAULTS.en.loopText,
@@ -367,7 +422,7 @@ var en = {
367
422
  "stats.empty": "No auto-continue activity today.",
368
423
  "stats.reset": "Reset",
369
424
  "recovery.title": "Recent recovery attempts",
370
- "recovery.hint": "Per-session counts from the last 20 recovery prompts across this host, cleared when the plugin restarts. Normal autonomous continuations are excluded. A sent prompt does not mean the task finished. If recovery keeps repeating, review the conversation and consider handing off to a fresh session.",
425
+ "recovery.hint": "The last 20 recovery attempts for this DSH instance, grouped by session. Cleared when the plugin restarts; normal autonomous continuations are excluded.",
371
426
  "recovery.empty": "No recovery attempts yet.",
372
427
  "recovery.count": "Attempts in window",
373
428
  "recovery.consecutive": "Consecutive at last send",
@@ -386,9 +441,9 @@ var en = {
386
441
  "chrome.collapse": "Hide settings",
387
442
  "chrome.expand": "Show settings",
388
443
  "chrome.unsaved": "Unsaved",
389
- "chrome.readOnly": "This deployment stores settings read-only.",
444
+ "chrome.readOnly": "Settings are read-only.",
390
445
  "chrome.unavailable": "Settings are unavailable.",
391
- "chrome.saveFailed": "The deployment did not accept these values; they were left for you to correct.",
446
+ "chrome.saveFailed": "Could not save. Your edits are still here; review them and try again.",
392
447
  "chrome.discard": "Discard",
393
448
  "chrome.saving": "Saving…",
394
449
  "chrome.save": "Save",
@@ -399,6 +454,173 @@ var en = {
399
454
  "chrome.on": "On",
400
455
  "chrome.off": "Off"
401
456
  };
457
+ var ru = {
458
+ "chrome.saved": "Все изменения сохранены",
459
+ "notification.title": "Настройки авто-продолжения",
460
+ "notification.enabled": "Настройки сохранены. Уведомления браузера включены.",
461
+ "notification.disabled": "Настройки сохранены. Уведомления браузера выключены.",
462
+ "notification.saved": "Настройки авто-продолжения сохранены.",
463
+ "notification.blocked": "Настройки сохранены, но браузер не разрешает уведомления. Разрешите уведомления в настройках этого сайта.",
464
+ "notification.unsupported": "Настройки сохранены. Этот браузер не поддерживает уведомления.",
465
+ "notification.failed": "Настройки сохранены, но уведомление не удалось отправить. Проверьте разрешения на уведомления для сайта и в системе.",
466
+ "chrome.categories": "Категории настроек",
467
+ "repo.star": "Понравилось? Поставьте звезду",
468
+ "repo.link": "Репозиторий GitHub",
469
+ "repo.aria": "Открыть HsiangNianian/dsh-auto-continue на GitHub в новой вкладке",
470
+ "category.general.title": "Общие",
471
+ "category.general.description": "Управление запуском, отображением и уведомлениями авто-продолжения.",
472
+ "category.recovery.title": "Стратегия повторов",
473
+ "category.recovery.description": "Время ожидания, лимиты повторов и классификация ошибок.",
474
+ "category.startup.title": "Восстановление при запуске",
475
+ "category.startup.description": "Поиск недавно прерванных сессий после перезапуска DSH.",
476
+ "category.prompts.title": "Текст продолжения",
477
+ "category.prompts.description": "Оставьте пустым, чтобы использовать встроенный текст на текущем языке DSH.",
478
+ "category.safety.title": "Защита",
479
+ "category.safety.description": "Защита от повторного выполнения инструментов и разрыв холостых циклов.",
480
+ "category.status.title": "Состояние и журнал",
481
+ "category.status.description": "Активность и приостановленные сессии.",
482
+ "field.paused": "Включить авто-продолжение глобально",
483
+ "field.showComposerToggle": "Показывать переключатель авто-продолжения в поле ввода",
484
+ "field.showComposerToggleHint": "Показывается по умолчанию. Скрытие не меняет режимы сессий. Применится после нажатия «Сохранить».",
485
+ "composer.label": "Авто-продолжение",
486
+ "composer.mode": "Режим авто-продолжения",
487
+ "composer.scope": "Действует только на эту сессию: сохраняется сразу и синхронизируется между вкладками. «Выключено» также отключает здесь прерывания защитой от циклов.",
488
+ "composer.default": "Как по умолчанию",
489
+ "composer.off": "Выключено",
490
+ "composer.recover": "Только восстановление",
491
+ "composer.loop": "Автономный цикл",
492
+ "composer.paused": "Приостановлено глобально",
493
+ "composer.unavailable": "Ожидание хоста",
494
+ "composer.reconnecting": "Переподключение к хосту… Показана последняя известная настройка; изменить её можно после переподключения.",
495
+ "composer.saving": "Сохранение авто-продолжения…",
496
+ "composer.saveFailed": "Не удалось сохранить. Повторите попытку.",
497
+ "field.pausedHint": "Восстанавливать прерванные сессии. Выключите и сохраните, чтобы приостановить восстановление глобально и отменить запланированные продолжения. Защита от циклов продолжает работать; чтобы остановить автоматические прерывания, отключите её отдельно.",
498
+ "field.continueText": "Текст продолжения",
499
+ "field.continueTextHint": "Сообщение, автоматически отправляемое после прерывания.",
500
+ "default.continueText": LOCALIZED_TEXT_DEFAULTS.ru.continueText,
501
+ "field.continueTextMaxTokens": "Текст продолжения (лимит токенов)",
502
+ "field.continueTextMaxTokensHint": "Отправляется при достижении лимита выходных токенов; те же подстановки, что и в тексте продолжения.",
503
+ "default.continueTextMaxTokens": LOCALIZED_TEXT_DEFAULTS.ru.continueTextMaxTokens,
504
+ "field.resumeSilentTurns": "Продолжать ходы без вывода",
505
+ "field.resumeSilentTurnsHint": "Продолжать при наблюдаемой активности модели без видимого вывода. Пустые ходы, изображения и блоки расширений тихими не считаются; задержка и лимиты повторов действуют.",
506
+ "field.resumeSubagentSessions": "Продолжать сессии субагентов",
507
+ "field.resumeSubagentSessionsHint": "Автоматически продолжать прерванные сессии субагентов, если в их основном диалоге включено авто-продолжение. Субагенты не запускают автономный цикл, не перезапускаются защитой от циклов и не восстанавливаются сканированием при запуске. По умолчанию выключено. Работает, только пока субагент ещё загружен: DSH обычно закрывает фоновый субагент сразу после сбоя и сообщает об ошибке родительскому диалогу.",
508
+ "field.resumeCompletedTurns": "Режим сессии по умолчанию",
509
+ "field.resumeCompletedTurnsHint": "Для сессий без собственного режима. «Только восстановление» не трогает обычные завершения; «Автономный цикл» продолжает после них. Тихие и неудачные ходы по-прежнему расходуют бюджет повторов.",
510
+ "field.continueTextLoop": "Текст продолжения (автономный цикл)",
511
+ "field.continueTextLoopHint": "Текст, отправляемый при каждом продолжении автономного цикла.",
512
+ "default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.ru.continueTextLoop,
513
+ "field.continueTextSilent": "Текст продолжения (ход без вывода)",
514
+ "field.continueTextSilentHint": "Текст, отправляемый, когда ход заканчивается только рассуждениями; те же подстановки, что и в тексте продолжения.",
515
+ "default.continueTextSilent": LOCALIZED_TEXT_DEFAULTS.ru.continueTextSilent,
516
+ "field.continueTextInterrupted": "Текст продолжения (после перезапуска хоста)",
517
+ "field.continueTextInterruptedHint": "Текст, отправляемый, когда сканирование при запуске продолжает сессию, прерванную перезапуском; по умолчанию объясняет перезапуск и просит сверять состояние перед повтором.",
518
+ "default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.ru.continueTextInterrupted,
519
+ "field.guardTools": "Защита от повторного выполнения",
520
+ "field.guardToolsHint": "Перед продолжением проверяет последний вызов инструмента: если результат не подтверждён, просит сначала проверить состояние; если вызов успешен — не повторять его. Помогает не дублировать коммиты и вызовы API.",
521
+ "field.guardPendingText": "Текст защиты (результат не подтверждён)",
522
+ "field.guardPendingTextHint": "Добавляется, если последний инструмент мог выполниться частично; поддерживает подстановку {tool}.",
523
+ "default.guardPendingText": LOCALIZED_TEXT_DEFAULTS.ru.guardPendingText,
524
+ "field.guardDoneText": "Текст защиты (инструмент выполнен)",
525
+ "field.guardDoneTextHint": "Добавляется, если последний инструмент подтверждённо выполнен; поддерживает подстановки {tool} и {result} (фрагмент результата).",
526
+ "default.guardDoneText": LOCALIZED_TEXT_DEFAULTS.ru.guardDoneText,
527
+ "field.graceMs": "Период ожидания (мс)",
528
+ "field.graceMsHint": "Пауза после прерывания; отменяется, если хост восстановится сам.",
529
+ "field.cooldownMs": "Задержка перед повтором (мс)",
530
+ "field.cooldownMsHint": "Минимальный интервал между попытками восстановления; сбои в этот период ждут остаток интервала, затем — период ожидания. Обычные передачи автономного цикла от этого освобождены.",
531
+ "field.maxConsecutive": "Максимум подряд",
532
+ "field.maxConsecutiveHint": "Лимит последовательных попыток восстановления; сбрасывается при вмешательстве пользователя или завершении хода с видимым выводом. Обычные передачи автономного цикла не считаются.",
533
+ "field.scanOnBoot": "Сканирование при запуске хоста",
534
+ "field.scanOnBootHint": "Ждать поздно загружаемые прерванные сессии в окне сканирования при запуске; сохранённые сессии, которые хост не перезагрузил, тоже материализуются и проверяются; каждая готовая сессия проверяется один раз.",
535
+ "field.scanLimit": "Лимит сканирования",
536
+ "field.scanLimitHint": "Сколько подходящих сессий восстанавливать за проход; сначала самые недавно активные.",
537
+ "field.freshMs": "Окно сканирования (мс)",
538
+ "field.freshMsHint": "Учитываются только прерывания в этом окне; опрос при запуске тоже прекращается по его истечении.",
539
+ "field.verbose": "Подробный журнал",
540
+ "field.verboseHint": "Записывать активность движка в журнал хоста DSH с префиксом [auto-continue]; при работе через CLI эти строки видны в терминале, где запущен DSH.",
541
+ "field.classify": "Классификация ошибок",
542
+ "field.classifyHint": "Автоматически восстанавливать только временные сбои (сеть, тайм-аут, 5xx…); ошибки авторизации, баланса и модели пропускаются с уведомлением.",
543
+ "field.retryableErrorPatterns": "Свои восстанавливаемые ошибки",
544
+ "field.retryableErrorPatternsHint": "По одному литеральному фрагменту на строку без учёта регистра. Совпадение с кодом ошибки, HTTP-статусом или сообщением переопределяет встроенную классификацию. Указывайте только стабильный текст провайдера; широкие совпадения также запускают повтор для обычно пропускаемых ошибок аутентификации и баланса.",
545
+ "field.retryableErrorPatternsPlaceholder": "Например: Upstream rejected the request as invalid",
546
+ "field.backoffFactor": "Коэффициент задержки",
547
+ "field.backoffFactorHint": "Множитель задержки при повторных сбоях (2 = 20 с → 40 с → 80 с…).",
548
+ "field.backoffMaxMs": "Максимальная задержка (мс)",
549
+ "field.backoffMaxMsHint": "Верхняя граница адаптивной задержки.",
550
+ "field.notify": "Уведомления браузера",
551
+ "field.notifyHint": "Уведомлять о событиях авто-продолжения и успешном сохранении настроек. Сохранение изменения этого параметра тоже подтверждает его состояние. При первом включении нужно разрешить уведомления в браузере.",
552
+ "stats.title": "Статистика за сегодня",
553
+ "stats.sent": "Авто-продолжений",
554
+ "stats.skipped": "Пропущено (постоянные)",
555
+ "stats.recovered": "Восстановлено",
556
+ "stats.failed": "Сбоев после продолжения",
557
+ "stats.gaveUp": "Остановлено (лимит)",
558
+ "stats.looped": "Разорвано циклов",
559
+ "field.loopGuard": "Защита от циклов",
560
+ "field.loopGuardHint": "Распознаёт холостой ход: много коротких фраз без вызовов инструментов, повторяющиеся абзацы в одном потоковом сообщении или повтор одного инструмента — затем отменяет ход и перезапускает его с текстом цикла.",
561
+ "field.loopShortChars": "Макс. длина короткой фразы (символов)",
562
+ "field.loopShortCharsHint": "Сообщение модели короче этого значения считается короткой фразой (признак холостого хода).",
563
+ "field.loopWindowMs": "Окно коротких фраз (мс)",
564
+ "field.loopWindowMsHint": "Короткие фразы должны идти подряд внутри этого окна; обычные рассуждения, растянутые во времени, не считаются.",
565
+ "field.loopShortCount": "Порог коротких фраз",
566
+ "field.loopShortCountHint": "Сколько коротких фраз подряд в окне без вызова инструмента запускают защиту от циклов.",
567
+ "field.loopRepeatText": "Порог одинаковых сообщений",
568
+ "field.loopRepeatTextHint": "Сколько одинаковых сообщений подряд запускают защиту (сильнейший признак, любая длина; также используется для повторяющихся абзацев внутри одного потокового сообщения).",
569
+ "field.loopToolRepeat": "Порог повторов инструмента",
570
+ "field.loopToolRepeatHint": "Сколько вызовов одного инструмента с одинаковыми аргументами и результатом подряд запускают защиту; изменение аргументов или результата считается прогрессом.",
571
+ "field.loopText": "Текст цикла",
572
+ "field.loopTextHint": "Отправляется после перезапуска хода защитой от циклов; поддерживает подстановку {tool}.",
573
+ "default.loopText": LOCALIZED_TEXT_DEFAULTS.ru.loopText,
574
+ "stats.byCode": "По коду ошибки",
575
+ "stats.empty": "Сегодня ещё не было авто-продолжений.",
576
+ "stats.reset": "Сбросить",
577
+ "recovery.title": "Недавние попытки восстановления",
578
+ "recovery.hint": "Счётчики по сессиям для последних 20 подсказок восстановления на этом хосте; очищаются при перезапуске плагина. Обычные автономные продолжения не учитываются. Отправленная подсказка не означает завершения задачи. Если восстановление повторяется, проверьте диалог и подумайте о передаче в новую сессию.",
579
+ "recovery.empty": "Попыток восстановления пока нет.",
580
+ "recovery.count": "Попыток в окне",
581
+ "recovery.consecutive": "Подряд при последней отправке",
582
+ "recovery.latest": "Последняя причина",
583
+ "recovery.reason.error": "Ошибка запроса",
584
+ "recovery.reason.max-tokens": "Лимит вывода",
585
+ "recovery.reason.silent": "Нет видимого вывода",
586
+ "recovery.reason.interrupted": "Прерывание при перезапуске хоста",
587
+ "recovery.reason.loop-guard": "Защита от циклов",
588
+ "recovery.reason.manual": "Ручное продолжение",
589
+ "pause.title": "Приостановленные сессии",
590
+ "pause.none": "Нет приостановленных сессий.",
591
+ "pause.clearAll": "Снять все",
592
+ "pause.unpause": "Продолжить",
593
+ "pause.minutes": "мин",
594
+ "chrome.collapse": "Скрыть настройки",
595
+ "chrome.expand": "Показать настройки",
596
+ "chrome.unsaved": "Не сохранено",
597
+ "chrome.readOnly": "В этом развёртывании настройки доступны только для чтения.",
598
+ "chrome.unavailable": "Настройки недоступны.",
599
+ "chrome.saveFailed": "Развёртывание не приняло эти значения; они оставлены, чтобы вы их исправили.",
600
+ "chrome.discard": "Отменить",
601
+ "chrome.saving": "Сохранение…",
602
+ "chrome.save": "Сохранить",
603
+ "chrome.overridden": "Изменено",
604
+ "chrome.reset": "Сбросить",
605
+ "chrome.invalidNumber": "Введите число или оставьте поле пустым, чтобы использовать значение по умолчанию.",
606
+ "chrome.inherit": "Наследовать",
607
+ "chrome.on": "Вкл",
608
+ "chrome.off": "Выкл",
609
+ "field.usePluginSource": "Отправлять сообщения автопродолжения с меткой плагина",
610
+ "field.usePluginSourceHint": "По умолчанию выключено, чтобы сохранить обычный источник «сообщение пользователя». Включите, чтобы помечать сообщения как пришедшие от плагина. Нажмите «Сохранить», чтобы применить.",
611
+ "field.resumeInterruptedChildren": "Будить дочерние сессии после перезапуска",
612
+ "field.resumeInterruptedChildrenHint": "Когда стартовый скан находит сессию субагента или участника команды, прерванную перезапуском, родительской сессии отправляется одно сообщение со списком таких детей, чтобы родитель мог продолжить или завершить их. Пропускается, если родитель завершился штатно или был остановлен вручную. По умолчанию выключено.",
613
+ "field.resumeGoals": "Перевзводить цели, снятые перезапуском",
614
+ "field.resumeGoalsHint": "Когда сессия автопродолжается, активная цель, снятая хостом при перезапуске, снова взводится, чтобы её раунды продолжения могли выполняться. Это действует от вашего имени, поэтому по умолчанию выключено.",
615
+ "field.resumePausedGoals": "Возобновлять приостановленные цели",
616
+ "field.resumePausedGoalsHint": "Также возобновлять цели, приостановленные вами вручную (требует включённого «Перевзводить цели, снятые перезапуском»). Пауза обычно осознанное решение — оставляйте выключенным, если не нужно.",
617
+ "field.pauseWhenOffline": "Пауза при отсутствии сети",
618
+ "field.pauseWhenOfflineHint": "Перед повтором сетевой ошибки (недоступный хост, сбой DNS, таймаут транспорта) проверять, что хост в сети. Пока сети нет, повтор ждёт, не расходуя попытки, и продолжается, когда сеть вернулась. При заданном HTTP(S)_PROXY проверяются только сетевые интерфейсы.",
619
+ "field.offlineCheckMs": "Интервал повторной проверки сети (мс)",
620
+ "field.offlineCheckMsHint": "Как часто отложенный повтор снова проверяет сеть. Минимум 1000.",
621
+ "field.loopMaxIterations": "Лимит раундов автономного цикла",
622
+ "field.loopMaxIterationsHint": "Максимум автономных раундов на сессию; 0 — без лимита. По достижении цикл останавливается и сообщает об этом один раз; отправка сообщения или повторное включение цикла начинают счёт заново."
623
+ };
402
624
 
403
625
  // src/client/settings-card.tsx
404
626
  var import_react = require("react");
@@ -454,7 +676,7 @@ var EMPTY_STATS = {
454
676
  looped: 0,
455
677
  byCode: {}
456
678
  };
457
- var state = { stats: EMPTY_STATS, paused: [], recoveryAttempts: [] };
679
+ var state = { stats: EMPTY_STATS, paused: [], recoveryAttempts: [], connected: false };
458
680
  var listeners = /* @__PURE__ */ new Set();
459
681
  function pausedSessions() {
460
682
  return state.paused;
@@ -468,8 +690,11 @@ function readRecoveryAttempts() {
468
690
  function readSessionPolicy() {
469
691
  return state.sessionPolicy;
470
692
  }
693
+ function isBridgeConnected() {
694
+ return state.connected;
695
+ }
471
696
  async function setSessionMode(sessionId, mode) {
472
- if (!state.sessionPolicy?.writable) throw new Error("Session settings are unavailable");
697
+ if (!state.connected || !state.sessionPolicy?.writable) throw new Error("Session settings are unavailable");
473
698
  const response = await fetch("/api/auto-continue-action", {
474
699
  method: "POST",
475
700
  headers: { "content-type": "application/json" },
@@ -509,7 +734,8 @@ function handleEvent(event) {
509
734
  stats: event.stats ?? EMPTY_STATS,
510
735
  paused: event.paused ?? [],
511
736
  recoveryAttempts: event.recoveryAttempts ?? [],
512
- sessionPolicy: policy && typeof policy.modes === "object" && policy.modes !== null && !Array.isArray(policy.modes) && (policy.defaultMode === "recover" || policy.defaultMode === "loop") && typeof policy.paused === "boolean" && typeof policy.writable === "boolean" ? policy : void 0
737
+ sessionPolicy: policy && typeof policy.modes === "object" && policy.modes !== null && !Array.isArray(policy.modes) && (policy.defaultMode === "recover" || policy.defaultMode === "loop") && typeof policy.paused === "boolean" && typeof policy.writable === "boolean" ? policy : void 0,
738
+ connected: true
513
739
  };
514
740
  for (const listener of listeners) listener();
515
741
  } else if (event.type === "notice" && event.notice !== void 0) {
@@ -554,16 +780,23 @@ function startBridge() {
554
780
  let stopped = false;
555
781
  let controller;
556
782
  const disconnected = () => {
557
- state = { ...state, sessionPolicy: void 0 };
783
+ if (!state.connected) return;
784
+ state = { ...state, connected: false };
785
+ for (const listener of listeners) listener();
786
+ };
787
+ const reset = () => {
788
+ state = { ...state, sessionPolicy: void 0, connected: false };
558
789
  for (const listener of listeners) listener();
559
790
  };
560
- disconnected();
791
+ reset();
792
+ let failures = 0;
561
793
  const loop = async () => {
562
794
  while (!stopped) {
563
795
  controller = new AbortController();
564
796
  try {
565
797
  const response = await fetch("/api/auto-continue-bridge", { signal: controller.signal });
566
798
  if (!response.ok || response.body === null) throw new Error(`bridge HTTP ${response.status}`);
799
+ failures = 0;
567
800
  const reader = response.body.getReader();
568
801
  const decoder = new TextDecoder();
569
802
  let buffer = "";
@@ -590,7 +823,9 @@ function startBridge() {
590
823
  }
591
824
  if (!stopped) {
592
825
  disconnected();
593
- await new Promise((resolve) => setTimeout(resolve, 3e3));
826
+ const delay = failures === 0 ? 500 : 3e3;
827
+ failures += 1;
828
+ await new Promise((resolve) => setTimeout(resolve, delay));
594
829
  }
595
830
  }
596
831
  };
@@ -598,7 +833,7 @@ function startBridge() {
598
833
  return () => {
599
834
  stopped = true;
600
835
  controller?.abort();
601
- disconnected();
836
+ reset();
602
837
  };
603
838
  }
604
839
 
@@ -804,7 +1039,7 @@ var CardForm = class {
804
1039
 
805
1040
  // src/client/styles.ts
806
1041
  var css = `
807
- .dshAcComposer { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; min-height: 32px; max-width: 100%; font: inherit; }
1042
+ .dshAcComposer { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; min-height: 28px; max-width: 100%; font: inherit; }
808
1043
  .dshAcComposerCore { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
809
1044
  .dshAcComposerCore > span { min-width: 0; }
810
1045
  .dshAcModeTrigger { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 132px; height: 28px; margin-left: -1px; padding: 0 4px 0 7px; border: 0; border-radius: var(--dsw-radius-sm, 6px); background: none; color: var(--dsw-alias-label-secondary); font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; cursor: pointer; }
@@ -827,13 +1062,24 @@ var css = `
827
1062
  .dshAcCard .dshAcMode:disabled { opacity: .5; }
828
1063
  .dshAcCard .dshAcMode:focus-visible { outline: 2px solid var(--dsh-ac-text); outline-offset: 3px; }
829
1064
  .dshAcComposerLabel { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--dsw-alias-label-secondary); font-size: 12px; white-space: nowrap; }
830
- .dshAcComposerText { display: inline; }
831
- .dshAcComposerIcon { display: inline-flex; flex: none; color: var(--dsw-alias-label-secondary); }
832
- .dshAcComposerIcon > svg { display: block; width: 14px; height: 14px; }
833
- .dshAcComposerIconFallback { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
1065
+ .dshAcIconBtn { position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background-color: transparent; color: var(--dsw-alias-label-secondary, inherit); opacity: .9; cursor: pointer; transition: opacity .15s ease, background-color .15s ease, color .15s ease; }
1066
+ .dshAcIconBtn > svg { display: block; width: 14px; height: 14px; }
1067
+ .dshAcIconBtn[data-state="on"] { color: var(--dsw-alias-brand-primary, #4d8cff); opacity: 1; background-color: rgba(77, 140, 255, .14); background-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4d8cff) 14%, transparent); }
1068
+ .dshAcIconBtn[data-state="on"]:hover:not(:disabled) { background-color: rgba(77, 140, 255, .22); background-color: color-mix(in srgb, var(--dsw-alias-brand-primary, #4d8cff) 22%, transparent); }
1069
+ .dshAcIconBtn[data-state="off"] { opacity: .5; }
1070
+ .dshAcIconBtn[data-state="off"]:hover:not(:disabled) { opacity: .8; background: var(--dsw-alias-interactive-bg-hover); }
1071
+ .dshAcIconBtn:disabled { cursor: default; opacity: .4; }
1072
+ /* Reconnecting keeps the last known state visible, just dimmed. */
1073
+ .dshAcIconBtn[data-stale="true"]:disabled { opacity: .65; }
1074
+ .dshAcIconBtn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary)); }
1075
+ .dshAcGlyph { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
1076
+ .dshAcIconBtn[data-state="on"] > .dshAcGlyph { stroke-width: 1.6; }
1077
+ /* In the composer the mode name moves into the menu and tooltip; only the chevron stays. */
1078
+ .dshAcComposer .dshAcModeTriggerLabel { display: none; }
1079
+ .dshAcComposer .dshAcModeTrigger, .dshAcComposer .dshAcModeMenu { max-width: 28px; margin-left: -4px; padding: 0 2px; }
834
1080
  .dshAcSwitchTarget { display: inline-flex; align-items: center; flex: none; min-height: 32px; }
835
1081
  .dshAcSwitchTarget > button { position: relative; }
836
- .dshAcSwitchTarget > button::before { content: ''; position: absolute; inset: -6px -3px; }
1082
+ .dshAcSwitchTarget > button::before { content: ''; position: absolute; inset: -4px; }
837
1083
  .dshAcComposerError { color: var(--dsw-alias-state-error-primary, var(--dsw-alias-label-secondary)); font-size: 12px; max-width: 160px; }
838
1084
  .dshAcComposerError:empty { display: none; }
839
1085
  .dshAcToastIcon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@@ -946,23 +1192,10 @@ var css = `
946
1192
  .dshAcFooter { align-items: flex-start; flex-direction: column; gap: 10px; }
947
1193
  .dshAcFooter > div { width: 100%; justify-content: flex-end; }
948
1194
  }
949
- /* Match the native picker breakpoints when the composer provides a query container. */
950
- @container (width <= 640px) {
951
- .dshAcComposerCore { gap: 5px; }
952
- .dshAcModeTrigger, .dshAcModeMenu { max-width: 104px; padding: 0 3px 0 6px; }
953
- }
954
- @container (width <= 460px) {
955
- .dshAcComposerText { display: none; }
956
- .dshAcModeTrigger, .dshAcModeMenu { max-width: 28px; padding: 0 2px; }
957
- .dshAcModeTriggerLabel { display: none; }
958
- }
959
1195
  /* DS-Bot can remove the query container with display: contents. */
960
1196
  @media (max-width: 640px) {
961
1197
  .dshAcComposer { flex-direction: column; align-items: flex-start; width: min-content; }
962
1198
  .dshAcComposer > .dshAcComposerLabel { white-space: normal; }
963
- .dshAcComposerCore { gap: 5px; }
964
- .dshAcComposerText, .dshAcModeTriggerLabel { display: none; }
965
- .dshAcModeTrigger, .dshAcModeMenu { max-width: 28px; padding: 0 2px; }
966
1199
  }
967
1200
 
968
1201
  `;
@@ -999,7 +1232,8 @@ function showSettingsNotification(notice, locale, permission) {
999
1232
  return permission === "unsupported" ? "notification.unsupported" : permission === "failed" ? "notification.failed" : "notification.blocked";
1000
1233
  }
1001
1234
  try {
1002
- const copy = resolveLocale(locale) === "zh" ? zh : en;
1235
+ const resolved = resolveLocale(locale);
1236
+ const copy = resolved === "zh" ? zh : resolved === "ru" ? ru : en;
1003
1237
  const notification = new Notification(copy["notification.title"], { body: copy[message] });
1004
1238
  notification.onclick = () => {
1005
1239
  try {
@@ -1041,10 +1275,18 @@ var AutoContinueSettingsCardController = class {
1041
1275
  this.form = new CardForm(scope, [
1042
1276
  booleanField("paused"),
1043
1277
  booleanField("showComposerToggle"),
1278
+ booleanField("usePluginSource"),
1044
1279
  textField("continueText"),
1045
1280
  textField("continueTextMaxTokens"),
1046
1281
  booleanField("resumeSilentTurns"),
1282
+ booleanField("resumeSubagentSessions"),
1047
1283
  booleanField("resumeCompletedTurns"),
1284
+ booleanField("resumeInterruptedChildren"),
1285
+ booleanField("resumeGoals"),
1286
+ booleanField("resumePausedGoals"),
1287
+ booleanField("pauseWhenOffline"),
1288
+ numberField("offlineCheckMs", 1e3),
1289
+ numberField("loopMaxIterations", 0),
1048
1290
  textField("continueTextLoop"),
1049
1291
  textField("continueTextSilent"),
1050
1292
  textField("continueTextInterrupted"),
@@ -1082,10 +1324,18 @@ var AutoContinueSettingsCardController = class {
1082
1324
  notificationFeedback: this.notificationFeedback,
1083
1325
  paused: this.form.field("paused"),
1084
1326
  showComposerToggle: this.form.field("showComposerToggle"),
1327
+ usePluginSource: this.form.field("usePluginSource"),
1085
1328
  continueText: this.form.field("continueText"),
1086
1329
  continueTextMaxTokens: this.form.field("continueTextMaxTokens"),
1087
1330
  resumeSilentTurns: this.form.field("resumeSilentTurns"),
1331
+ resumeSubagentSessions: this.form.field("resumeSubagentSessions"),
1088
1332
  resumeCompletedTurns: this.form.field("resumeCompletedTurns"),
1333
+ resumeInterruptedChildren: this.form.field("resumeInterruptedChildren"),
1334
+ resumeGoals: this.form.field("resumeGoals"),
1335
+ resumePausedGoals: this.form.field("resumePausedGoals"),
1336
+ pauseWhenOffline: this.form.field("pauseWhenOffline"),
1337
+ offlineCheckMs: this.form.field("offlineCheckMs"),
1338
+ loopMaxIterations: this.form.field("loopMaxIterations"),
1089
1339
  continueTextLoop: this.form.field("continueTextLoop"),
1090
1340
  continueTextSilent: this.form.field("continueTextSilent"),
1091
1341
  continueTextInterrupted: this.form.field("continueTextInterrupted"),
@@ -1143,10 +1393,12 @@ var AutoContinueSettingsCardController = class {
1143
1393
  composerProjection() {
1144
1394
  const snapshot = this.scope.getSnapshot();
1145
1395
  const policy = readSessionPolicy();
1396
+ const connected = isBridgeConnected();
1146
1397
  return {
1147
1398
  visible: snapshot.status === "ready" && (snapshot.value?.showComposerToggle ?? DEFAULT_CONFIG.showComposerToggle),
1148
1399
  policy,
1149
- writable: canWriteSettings(snapshot) && policy?.writable === true,
1400
+ reconnecting: policy !== void 0 && !connected,
1401
+ writable: connected && canWriteSettings(snapshot) && policy?.writable === true,
1150
1402
  saving: new Set(this.composerSaving),
1151
1403
  failed: new Set(this.composerFailed)
1152
1404
  };
@@ -1176,9 +1428,9 @@ function AutoContinueSettingsPage(props) {
1176
1428
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutoContinueSettingsCard, { ...props }) });
1177
1429
  }
1178
1430
  var groups = [
1179
- { id: "general", fields: ["paused", "showComposerToggle", "resumeSilentTurns", "resumeCompletedTurns", "notify"] },
1180
- { id: "recovery", fields: ["graceMs", "cooldownMs", "maxConsecutive", "classify", "retryableErrorPatterns", "backoffFactor", "backoffMaxMs"] },
1181
- { id: "startup", fields: ["scanOnBoot", "scanLimit", "freshMs"] },
1431
+ { id: "general", fields: ["paused", "showComposerToggle", "usePluginSource", "resumeSilentTurns", "resumeSubagentSessions", "resumeCompletedTurns", "loopMaxIterations", "notify"] },
1432
+ { id: "recovery", fields: ["graceMs", "cooldownMs", "maxConsecutive", "classify", "retryableErrorPatterns", "backoffFactor", "backoffMaxMs", "pauseWhenOffline", "offlineCheckMs", "resumeGoals", "resumePausedGoals"] },
1433
+ { id: "startup", fields: ["scanOnBoot", "resumeInterruptedChildren", "scanLimit", "freshMs"] },
1182
1434
  { id: "prompts", fields: ["continueText", "continueTextMaxTokens", "continueTextSilent", "continueTextInterrupted", "continueTextLoop", "guardPendingText", "guardDoneText", "loopText"] },
1183
1435
  { id: "safety", fields: ["guardTools", "loopGuard", "loopShortChars", "loopWindowMs", "loopShortCount", "loopRepeatText", "loopToolRepeat"] },
1184
1436
  { id: "status", fields: ["verbose"] }
@@ -1633,35 +1885,23 @@ function ModeMenu(props) {
1633
1885
 
1634
1886
  // src/client/auto-continue-icon.tsx
1635
1887
  var import_jsx_runtime4 = require("react/jsx-runtime");
1636
- var primitives2 = (() => {
1637
- try {
1638
- return require("@deepseek-ai/dsh-client-ui-primitives");
1639
- } catch {
1640
- return {};
1641
- }
1642
- })();
1643
- var HostRefresh = primitives2.IconRefreshOutlineRegular;
1644
1888
  function AutoContinueIcon() {
1645
- if (HostRefresh) return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HostRefresh, {});
1646
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("svg", { className: "dshAcComposerIconFallback", viewBox: "0 0 16 16", "aria-hidden": "true", children: [
1647
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M13.25 8a5.25 5.25 0 1 1-1.54-3.71" }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M13.25 3.1v3.3h-3.3" })
1649
- ] });
1889
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { className: "dshAcGlyph", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 8C7 5.6 6.1 4.6 4.8 4.6C3.1 4.6 2 6.1 2 8C2 9.9 3.1 11.4 4.8 11.4C6.1 11.4 7 10.4 8 8C9 5.6 9.9 4.6 11.2 4.6C12.9 4.6 14 6.1 14 8C14 9.9 12.9 11.4 11.2 11.4C9.9 11.4 9 10.4 8 8Z" }) });
1650
1890
  }
1651
1891
 
1652
1892
  // src/client/native-toast.tsx
1653
1893
  var import_jsx_runtime5 = require("react/jsx-runtime");
1654
- var primitives3 = (() => {
1894
+ var primitives2 = (() => {
1655
1895
  try {
1656
1896
  return require("@deepseek-ai/dsh-client-ui-primitives");
1657
1897
  } catch {
1658
1898
  return {};
1659
1899
  }
1660
1900
  })();
1661
- var NativeToast = primitives3.Toast;
1901
+ var NativeToast = primitives2.Toast;
1662
1902
  var hasNativeToast = typeof NativeToast === "function";
1663
1903
  function WarningIcon() {
1664
- const Icon = primitives3.IconWarningOutlineRegular;
1904
+ const Icon = primitives2.IconWarningOutlineRegular;
1665
1905
  if (Icon) return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, {});
1666
1906
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { className: "dshAcToastIcon", viewBox: "0 0 16 16", "aria-hidden": "true", children: [
1667
1907
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M8 2.3 14.3 13H1.7L8 2.3Z" }),
@@ -1694,9 +1934,10 @@ function AutoContinueComposerToggle(props) {
1694
1934
  const failed = state2.failed.has(props.sessionId);
1695
1935
  const saving = state2.saving.has(props.sessionId);
1696
1936
  const policy = state2.policy;
1697
- const mode = sessionMode(policy?.modes ?? {}, props.sessionId);
1937
+ const ownMode = sessionMode(policy?.modes ?? {}, props.sessionId);
1938
+ const mode = ownMode === "default" ? policy?.inheritedModes?.[props.sessionId] ?? "default" : ownMode;
1698
1939
  const disabled = !policy || !state2.writable || saving;
1699
- const title = props.t(!policy ? "composer.unavailable" : !state2.writable ? "chrome.readOnly" : saving ? "composer.saving" : "composer.scope");
1940
+ const title = props.t(!policy ? "composer.unavailable" : state2.reconnecting ? "composer.reconnecting" : !state2.writable ? "chrome.readOnly" : saving ? "composer.saving" : "composer.scope");
1700
1941
  const modeName = props.t(`composer.${mode}`);
1701
1942
  const defaultName = policy ? `${props.t("composer.default")} (${props.t(`composer.${policy.defaultMode}`)})` : props.t("composer.default");
1702
1943
  const fullModeLabel = mode === "default" ? defaultName : modeName;
@@ -1707,22 +1948,27 @@ function AutoContinueComposerToggle(props) {
1707
1948
  { id: "recover", label: props.t("composer.recover") },
1708
1949
  { id: "loop", label: props.t("composer.loop") }
1709
1950
  ];
1951
+ const enabled = !!policy && mode !== "off";
1952
+ const onMode = policy?.inheritedModes?.[props.sessionId] === "off" ? "recover" : "default";
1710
1953
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "dshAcComposer", title, "aria-busy": saving || void 0, children: [
1711
1954
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dshAcComposerCore", children: [
1712
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dshAcComposerLabel", children: [
1713
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dshAcComposerIcon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AutoContinueIcon, {}) }),
1714
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dshAcComposerText", children: props.t("composer.label") })
1715
- ] }),
1716
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "dshAcSwitchTarget", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1717
- NativeSwitch,
1955
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1956
+ "button",
1718
1957
  {
1719
- checked: !!policy && mode !== "off",
1720
- onChange: (enabled) => props.setMode(enabled ? "default" : "off"),
1958
+ type: "button",
1959
+ role: "switch",
1960
+ className: "dshAcIconBtn",
1961
+ "data-state": enabled ? "on" : "off",
1962
+ "data-stale": state2.reconnecting || void 0,
1963
+ "aria-checked": enabled,
1964
+ "aria-label": `${props.t("composer.label")}: ${fullModeLabel}`,
1965
+ title: `${modeTitle}
1966
+ ${title}`,
1721
1967
  disabled,
1722
- label: props.t("composer.label"),
1723
- title
1968
+ onClick: () => props.setMode(enabled ? "off" : onMode),
1969
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AutoContinueIcon, {})
1724
1970
  }
1725
- ) }),
1971
+ ),
1726
1972
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1727
1973
  ModeMenu,
1728
1974
  {
@@ -1750,6 +1996,7 @@ var SETTINGS_NS = "auto-continue";
1750
1996
  var inject = ["slots", "locale"];
1751
1997
  function apply(ctx) {
1752
1998
  ctx.effect(() => ctx.locale.register(NS, { zh, en }), "auto-continue: dictionaries");
1999
+ ctx.effect(() => ctx.locale.register(NS, "ru", ru), "auto-continue: russian dictionary");
1753
2000
  ctx.effect(() => startBridge(), "auto-continue: host bridge");
1754
2001
  ctx.inject(["settingsScope"], (settingsCtx) => {
1755
2002
  mountSettings(settingsCtx, settingsCtx.settingsScope.bind({ namespace: SETTINGS_NS }));