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.
- package/CHANGELOG.md +47 -0
- package/README.md +230 -281
- package/README.ru.md +382 -0
- package/README.zh.md +229 -279
- package/docs/auto-continue-workflow.archify.json +3 -3
- package/docs/auto-continue-workflow.en.archify.json +3 -3
- package/docs/auto-continue-workflow.en.html +1 -1
- package/docs/auto-continue-workflow.html +1 -1
- package/docs/auto-continue-workflow.ru.svg +530 -0
- package/docs/banner-ru-dark.svg +38 -0
- package/docs/banner-ru.svg +38 -0
- package/docs/demo-ru-static.svg +115 -0
- package/docs/demo-ru.svg +147 -0
- package/docs/releases/v0.18.0.md +58 -0
- package/docs/releases/v0.19.0.md +62 -0
- package/docs/social-preview.png +0 -0
- package/docs/social-preview.svg +30 -1
- package/lib/client.js +347 -100
- package/lib/client.js.map +3 -3
- package/lib/index.js +790 -49
- package/lib/types/client/auto-continue-icon.d.ts +7 -0
- package/lib/types/client/bridge.d.ts +2 -0
- package/lib/types/client/composer-toggle.d.ts +2 -0
- package/lib/types/client/locales.d.ts +19 -0
- package/lib/types/client/settings-card.d.ts +8 -0
- package/lib/types/host/connectivity.d.ts +4 -0
- package/lib/types/host/engine.d.ts +97 -5
- package/lib/types/index.d.ts +64 -0
- package/lib/types/shared/core.d.ts +54 -1
- package/locale/ru.json +6 -0
- package/package.json +6 -4
- package/scripts/build-docs-assets.mjs +126 -0
- package/src/client/auto-continue-icon.tsx +6 -27
- package/src/client/bridge.ts +26 -6
- package/src/client/composer-toggle.tsx +22 -11
- package/src/client/index.ts +5 -1
- package/src/client/locales.ts +241 -38
- package/src/client/settings-card.tsx +31 -4
- package/src/client/settings-notifications.ts +3 -2
- package/src/client/styles.ts +17 -19
- package/src/host/connectivity.ts +54 -0
- package/src/host/engine.ts +852 -40
- package/src/host/settings-migration.ts +1 -1
- package/src/index.ts +26 -1
- package/src/shared/core.ts +94 -3
package/src/client/locales.ts
CHANGED
|
@@ -34,6 +34,8 @@ export const zh = {
|
|
|
34
34
|
'field.paused': '全局启用自动继续',
|
|
35
35
|
'field.showComposerToggle': '在会话区显示自动继续开关',
|
|
36
36
|
'field.showComposerToggleHint': '默认显示。隐藏控件不会改变会话模式;点击保存后生效。',
|
|
37
|
+
'field.usePluginSource': '以插件来源发送继续消息',
|
|
38
|
+
'field.usePluginSourceHint': '默认关闭,沿用旧版用户消息来源;开启后标记为本插件来源。点击保存后生效。',
|
|
37
39
|
'composer.label': '自动继续',
|
|
38
40
|
'composer.mode': '自动继续模式',
|
|
39
41
|
'composer.scope': '只控制当前会话,立即保存并同步到其他标签页。关闭后也不再自动打断循环。',
|
|
@@ -43,6 +45,7 @@ export const zh = {
|
|
|
43
45
|
'composer.loop': '自主循环',
|
|
44
46
|
'composer.paused': '全局已暂停',
|
|
45
47
|
'composer.unavailable': '等待宿主连接',
|
|
48
|
+
'composer.reconnecting': '正在重新连接状态桥…当前显示的是上次的设置,重连后才能修改。',
|
|
46
49
|
'composer.saving': '正在保存自动继续设置…',
|
|
47
50
|
'composer.saveFailed': '保存失败,请重试',
|
|
48
51
|
'field.pausedHint': '恢复意外中断的会话。关闭并保存后,全局暂停恢复并取消已排队的继续。循环守卫独立运行;如需停止自动打断,请同时关闭循环守卫。',
|
|
@@ -54,8 +57,22 @@ export const zh = {
|
|
|
54
57
|
'default.continueTextMaxTokens': LOCALIZED_TEXT_DEFAULTS.zh.continueTextMaxTokens,
|
|
55
58
|
'field.resumeSilentTurns': '续跑无输出回合',
|
|
56
59
|
'field.resumeSilentTurnsHint': '已观察到模型活动但没有可见输出时续跑;不把空回合、图片或扩展内容误判为静默,冷却与连续上限照常生效。',
|
|
60
|
+
'field.resumeSubagentSessions': '续跑子代理会话',
|
|
61
|
+
'field.resumeSubagentSessionsHint': '当子代理所属主会话启用自动继续时,自动续跑其中断的子代理会话。子代理不会进入自主循环、不会被循环守卫重启,也不会由启动扫描恢复。默认关闭。只对仍处于加载状态的子代理生效:DSH 通常会在后台子代理失败后立即关闭它,并把失败结果交给父会话。',
|
|
57
62
|
'field.resumeCompletedTurns': '默认会话模式',
|
|
58
|
-
'field.resumeCompletedTurnsHint': '
|
|
63
|
+
'field.resumeCompletedTurnsHint': '用于未单独设置模式的会话。仅故障恢复继续中断和无输出回合;自主循环还会在正常完成后继续。无输出和失败回合仍计入连续重试次数。',
|
|
64
|
+
'field.resumeInterruptedChildren': '重启后唤醒子代理会话',
|
|
65
|
+
'field.resumeInterruptedChildrenHint': 'DSH 重启后,将中断的子代理或团队成员会话清单发送给根会话,由其决定继续或收尾。默认关闭;你手动停止的根会话保持停止。',
|
|
66
|
+
'field.resumeGoals': '重新武装被重启失活的 goal',
|
|
67
|
+
'field.resumeGoalsHint': '会话被自动续跑时,把被宿主 disarm 的 active goal 重新 arm,让 goal 的自动继续轮能转起来。注意:这等于代替你做了授权,所以默认关闭。',
|
|
68
|
+
'field.resumePausedGoals': '恢复被暂停的 goal',
|
|
69
|
+
'field.resumePausedGoalsHint': '连你手动 pause 的 goal 也一并恢复(需同时开启「重新武装被重启失活的 goal」)。暂停通常是人的明确决定,非必要别开。',
|
|
70
|
+
'field.pauseWhenOffline': '断网时暂停续跑',
|
|
71
|
+
'field.pauseWhenOfflineHint': '网络类错误(连不上、DNS 失败、传输超时)续跑前先检测宿主是否联网;断网时挂起,不消耗连续次数,联网后自动继续。设了 HTTP(S)_PROXY 时只检查网卡。',
|
|
72
|
+
'field.offlineCheckMs': '断网复检间隔 (ms)',
|
|
73
|
+
'field.offlineCheckMsHint': '挂起期间多久重新检测一次网络,最小 1000。',
|
|
74
|
+
'field.loopMaxIterations': '自主循环轮数上限',
|
|
75
|
+
'field.loopMaxIterationsHint': '每个会话自主续跑的最多轮数,0 为不限制。到达上限后停下并提示一次;你发消息或重新开启循环后重新计数。',
|
|
59
76
|
'field.continueTextLoop': '自主循环的继续文本',
|
|
60
77
|
'field.continueTextLoopHint': '自主循环每次续跑时发送的文本。',
|
|
61
78
|
'default.continueTextLoop': LOCALIZED_TEXT_DEFAULTS.zh.continueTextLoop,
|
|
@@ -63,10 +80,10 @@ export const zh = {
|
|
|
63
80
|
'field.continueTextSilentHint': '回合只输出推理就结束时自动发送的文本, 支持与继续文本相同的占位符。',
|
|
64
81
|
'default.continueTextSilent': LOCALIZED_TEXT_DEFAULTS.zh.continueTextSilent,
|
|
65
82
|
'field.continueTextInterrupted': '宿主重启后恢复的继续文本',
|
|
66
|
-
'field.continueTextInterruptedHint': '
|
|
83
|
+
'field.continueTextInterruptedHint': 'DSH 重启后恢复中断会话时发送的文本。',
|
|
67
84
|
'default.continueTextInterrupted': LOCALIZED_TEXT_DEFAULTS.zh.continueTextInterrupted,
|
|
68
85
|
'field.guardTools': '幂等护栏',
|
|
69
|
-
'field.guardToolsHint': '
|
|
86
|
+
'field.guardToolsHint': '继续前,工具结果未确认时提醒模型核实状态,已成功时提醒跳过该操作。',
|
|
70
87
|
'field.guardPendingText': '结果未确认时的护栏文本',
|
|
71
88
|
'field.guardPendingTextHint': '上一步工具可能已部分执行时附加到继续文本之后, 支持 {tool} 占位符。',
|
|
72
89
|
'default.guardPendingText': LOCALIZED_TEXT_DEFAULTS.zh.guardPendingText,
|
|
@@ -76,28 +93,28 @@ export const zh = {
|
|
|
76
93
|
'field.graceMs': '宽限期 (ms)',
|
|
77
94
|
'field.graceMsHint': '检测到中断后等待的时长; 期间宿主自行恢复则取消。',
|
|
78
95
|
'field.cooldownMs': '冷却时间 (ms)',
|
|
79
|
-
'field.cooldownMsHint': '
|
|
96
|
+
'field.cooldownMsHint': '同一会话两次恢复尝试的最小间隔。冷却期间失败会先等待冷却结束,再进入宽限期;正常完成后的自主循环不受此限制。',
|
|
80
97
|
'field.maxConsecutive': '最大连续次数',
|
|
81
|
-
'field.maxConsecutiveHint': '
|
|
98
|
+
'field.maxConsecutiveHint': '连续恢复尝试的上限;用户介入或回合成功且有可见输出后清零。正常完成后的自主循环不计入。',
|
|
82
99
|
'field.scanOnBoot': '启动恢复扫描',
|
|
83
|
-
'field.scanOnBootHint': '
|
|
100
|
+
'field.scanOnBootHint': 'DSH 启动后,在扫描时间窗内查找并恢复近期中断的会话,包括当前未打开的会话。',
|
|
84
101
|
'field.scanLimit': '扫描会话数',
|
|
85
102
|
'field.scanLimitHint': '每次扫描最多恢复多少个符合条件的会话,优先最近活动的会话。',
|
|
86
103
|
'field.freshMs': '扫描时间窗 (ms)',
|
|
87
|
-
'field.freshMsHint': '
|
|
104
|
+
'field.freshMsHint': '恢复此时长内中断的会话;启动扫描也在此时长后结束。',
|
|
88
105
|
'field.verbose': '详细日志',
|
|
89
|
-
'field.verboseHint': '在 DSH
|
|
106
|
+
'field.verboseHint': '在 DSH 日志中记录自动继续活动,前缀为 [auto-continue];使用 CLI 时可在运行 DSH 的终端查看。',
|
|
90
107
|
'field.classify': '错误分类',
|
|
91
108
|
'field.classifyHint': '仅自动恢复临时性错误(网络/超时/5xx 等); 认证/余额/模型不存在等永久性错误跳过并通知。',
|
|
92
109
|
'field.retryableErrorPatterns': '自定义可恢复错误',
|
|
93
|
-
'field.retryableErrorPatternsHint': '
|
|
110
|
+
'field.retryableErrorPatternsHint': '每行填写一个具体文本片段,忽略大小写。匹配错误码、HTTP 状态或消息后允许重试;宽泛片段也会重试认证、余额等原本跳过的错误。',
|
|
94
111
|
'field.retryableErrorPatternsPlaceholder': '例如:Upstream rejected the request as invalid',
|
|
95
112
|
'field.backoffFactor': '退避系数',
|
|
96
113
|
'field.backoffFactorHint': '连续失败时冷却间隔的倍率(如 2 表示 20s→40s→80s 递增)。',
|
|
97
114
|
'field.backoffMaxMs': '最大退避间隔 (ms)',
|
|
98
|
-
'field.backoffMaxMsHint': '
|
|
115
|
+
'field.backoffMaxMsHint': '连续失败时,冷却间隔增长到此值后不再增加。',
|
|
99
116
|
'field.notify': '浏览器通知',
|
|
100
|
-
'field.notifyHint': '
|
|
117
|
+
'field.notifyHint': '开启后,自动继续活动和设置保存成功时会通知;关闭并保存时也会收到确认。首次开启需允许浏览器通知。',
|
|
101
118
|
'stats.title': '今日统计',
|
|
102
119
|
'stats.sent': '自动继续',
|
|
103
120
|
'stats.skipped': '跳过(永久错误)',
|
|
@@ -106,17 +123,17 @@ export const zh = {
|
|
|
106
123
|
'stats.gaveUp': '停止(达上限)',
|
|
107
124
|
'stats.looped': '循环打断',
|
|
108
125
|
'field.loopGuard': '循环守卫',
|
|
109
|
-
'field.loopGuardHint': '
|
|
126
|
+
'field.loopGuardHint': '回合连续输出短句且无工具调用、重复文本或重复相同工具调用时,按以下阈值自动打断,并用循环提示文本重启。',
|
|
110
127
|
'field.loopShortChars': '短句长度上限 (字符)',
|
|
111
|
-
'field.loopShortCharsHint': '
|
|
128
|
+
'field.loopShortCharsHint': '模型消息文本短于此值时计为一条短句。',
|
|
112
129
|
'field.loopWindowMs': '短句时间窗 (ms)',
|
|
113
|
-
'field.loopWindowMsHint': '
|
|
130
|
+
'field.loopWindowMsHint': '仅统计此时间窗内的连续短句。',
|
|
114
131
|
'field.loopShortCount': '连续短句阈值',
|
|
115
132
|
'field.loopShortCountHint': '时间窗内连续多少条短句且期间无工具调用时判定空转循环。',
|
|
116
133
|
'field.loopRepeatText': '相同消息重复次数',
|
|
117
|
-
'field.loopRepeatTextHint': '
|
|
134
|
+
'field.loopRepeatTextHint': '连续输出相同消息达到此次数时打断,不限消息长度;也适用于单条流式消息内的重复段落。',
|
|
118
135
|
'field.loopToolRepeat': '同工具重复次数',
|
|
119
|
-
'field.loopToolRepeatHint': '
|
|
136
|
+
'field.loopToolRepeatHint': '工具、参数和结果均相同的连续调用达到此次数时打断。',
|
|
120
137
|
'field.loopText': '循环提示文本',
|
|
121
138
|
'field.loopTextHint': '打断后重启回合时发送的文本, 支持 {tool} 占位符。',
|
|
122
139
|
'default.loopText': LOCALIZED_TEXT_DEFAULTS.zh.loopText,
|
|
@@ -124,7 +141,7 @@ export const zh = {
|
|
|
124
141
|
'stats.empty': '今天还没有自动继续记录。',
|
|
125
142
|
'stats.reset': '清零',
|
|
126
143
|
'recovery.title': '近期恢复尝试',
|
|
127
|
-
'recovery.hint': '
|
|
144
|
+
'recovery.hint': '按会话汇总当前 DSH 最近 20 次恢复尝试,插件重启后清空,不含正常自主续跑。',
|
|
128
145
|
'recovery.empty': '尚无恢复尝试。',
|
|
129
146
|
'recovery.count': '窗口内尝试',
|
|
130
147
|
'recovery.consecutive': '最近发送时连续次数',
|
|
@@ -143,9 +160,9 @@ export const zh = {
|
|
|
143
160
|
'chrome.collapse': '收起设置',
|
|
144
161
|
'chrome.expand': '展开设置',
|
|
145
162
|
'chrome.unsaved': '未保存',
|
|
146
|
-
'chrome.readOnly': '
|
|
163
|
+
'chrome.readOnly': '设置为只读,无法修改。',
|
|
147
164
|
'chrome.unavailable': '设置暂不可用。',
|
|
148
|
-
'chrome.saveFailed': '
|
|
165
|
+
'chrome.saveFailed': '保存失败,修改已保留。请检查后重试。',
|
|
149
166
|
'chrome.discard': '放弃',
|
|
150
167
|
'chrome.saving': '保存中…',
|
|
151
168
|
'chrome.save': '保存',
|
|
@@ -189,6 +206,8 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
189
206
|
'field.paused': 'Enable auto-continue globally',
|
|
190
207
|
'field.showComposerToggle': 'Show auto-continue switch in the composer',
|
|
191
208
|
'field.showComposerToggleHint': 'Shown by default. Hiding the control does not change session modes. Click Save to apply.',
|
|
209
|
+
'field.usePluginSource': 'Send continue messages with plugin source',
|
|
210
|
+
'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.',
|
|
192
211
|
'composer.label': 'Auto-continue',
|
|
193
212
|
'composer.mode': 'Auto-continue mode',
|
|
194
213
|
'composer.scope': 'Only affects this session. Saved immediately and synced across tabs. Off also disables loop-guard interruptions here.',
|
|
@@ -198,6 +217,7 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
198
217
|
'composer.loop': 'Autonomous loop',
|
|
199
218
|
'composer.paused': 'Globally paused',
|
|
200
219
|
'composer.unavailable': 'Waiting for host',
|
|
220
|
+
'composer.reconnecting': 'Reconnecting to the host… Showing the last known setting; changes are available again once reconnected.',
|
|
201
221
|
'composer.saving': 'Saving auto-continue setting…',
|
|
202
222
|
'composer.saveFailed': 'Could not save. Try again.',
|
|
203
223
|
'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.',
|
|
@@ -209,8 +229,22 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
209
229
|
'default.continueTextMaxTokens': LOCALIZED_TEXT_DEFAULTS.en.continueTextMaxTokens,
|
|
210
230
|
'field.resumeSilentTurns': 'Resume silent turns',
|
|
211
231
|
'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.',
|
|
232
|
+
'field.resumeSubagentSessions': 'Resume subagent sessions',
|
|
233
|
+
'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.',
|
|
212
234
|
'field.resumeCompletedTurns': 'Default session mode',
|
|
213
|
-
'field.resumeCompletedTurnsHint': 'Applies to sessions without their own mode. Recovery only
|
|
235
|
+
'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.',
|
|
236
|
+
'field.resumeInterruptedChildren': 'Wake child sessions after restart',
|
|
237
|
+
'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.',
|
|
238
|
+
'field.resumeGoals': 'Re-arm goals disarmed by a restart',
|
|
239
|
+
'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.',
|
|
240
|
+
'field.resumePausedGoals': 'Resume paused goals',
|
|
241
|
+
'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.',
|
|
242
|
+
'field.pauseWhenOffline': 'Pause while offline',
|
|
243
|
+
'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.',
|
|
244
|
+
'field.offlineCheckMs': 'Offline re-check interval (ms)',
|
|
245
|
+
'field.offlineCheckMsHint': 'How often a held retry checks the network again. Minimum 1000.',
|
|
246
|
+
'field.loopMaxIterations': 'Autonomous loop round limit',
|
|
247
|
+
'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.',
|
|
214
248
|
'field.continueTextLoop': 'Continue text (autonomous loop)',
|
|
215
249
|
'field.continueTextLoopHint': 'Text sent on each autonomous-loop continuation.',
|
|
216
250
|
'default.continueTextLoop': LOCALIZED_TEXT_DEFAULTS.en.continueTextLoop,
|
|
@@ -218,10 +252,10 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
218
252
|
'field.continueTextSilentHint': 'Text sent when a turn ends with reasoning only; same placeholders as the continue text.',
|
|
219
253
|
'default.continueTextSilent': LOCALIZED_TEXT_DEFAULTS.en.continueTextSilent,
|
|
220
254
|
'field.continueTextInterrupted': 'Continue text (after harness restart)',
|
|
221
|
-
'field.continueTextInterruptedHint': 'Text sent when
|
|
255
|
+
'field.continueTextInterruptedHint': 'Text sent when resuming an interrupted session after DSH restarts.',
|
|
222
256
|
'default.continueTextInterrupted': LOCALIZED_TEXT_DEFAULTS.en.continueTextInterrupted,
|
|
223
257
|
'field.guardTools': 'Idempotency guard',
|
|
224
|
-
'field.guardToolsHint': 'Before resuming,
|
|
258
|
+
'field.guardToolsHint': 'Before resuming, remind the model to check unconfirmed tool results or skip an action that already succeeded.',
|
|
225
259
|
'field.guardPendingText': 'Guard text (unconfirmed result)',
|
|
226
260
|
'field.guardPendingTextHint': 'Appended when the last tool may have partially executed; supports the {tool} placeholder.',
|
|
227
261
|
'default.guardPendingText': LOCALIZED_TEXT_DEFAULTS.en.guardPendingText,
|
|
@@ -231,28 +265,28 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
231
265
|
'field.graceMs': 'Grace period (ms)',
|
|
232
266
|
'field.graceMsHint': 'Wait after an interruption; cancelled if the host recovers on its own.',
|
|
233
267
|
'field.cooldownMs': 'Cooldown (ms)',
|
|
234
|
-
'field.cooldownMsHint': 'Minimum interval between recovery attempts
|
|
268
|
+
'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.',
|
|
235
269
|
'field.maxConsecutive': 'Max consecutive',
|
|
236
|
-
'field.maxConsecutiveHint': '
|
|
270
|
+
'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.',
|
|
237
271
|
'field.scanOnBoot': 'Scan on host startup',
|
|
238
|
-
'field.scanOnBootHint': '
|
|
272
|
+
'field.scanOnBootHint': 'When DSH starts, find and resume recently interrupted sessions within the scan window, including sessions that are not currently open.',
|
|
239
273
|
'field.scanLimit': 'Scan limit',
|
|
240
274
|
'field.scanLimitHint': 'Maximum eligible sessions to recover per pass, most recently active first.',
|
|
241
275
|
'field.freshMs': 'Scan window (ms)',
|
|
242
|
-
'field.freshMsHint': '
|
|
276
|
+
'field.freshMsHint': 'Resume sessions interrupted within this duration. The startup scan also ends after this duration.',
|
|
243
277
|
'field.verbose': 'Verbose logs',
|
|
244
|
-
'field.verboseHint': '
|
|
278
|
+
'field.verboseHint': 'Record auto-continue activity in DSH logs with the [auto-continue] prefix. CLI users can view them in the terminal running DSH.',
|
|
245
279
|
'field.classify': 'Classify errors',
|
|
246
280
|
'field.classifyHint': 'Auto-resume transient failures only (network/timeout/5xx…); auth, balance and model errors are skipped and notified.',
|
|
247
281
|
'field.retryableErrorPatterns': 'Custom retryable errors',
|
|
248
|
-
'field.retryableErrorPatternsHint': '
|
|
282
|
+
'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.',
|
|
249
283
|
'field.retryableErrorPatternsPlaceholder': 'For example: Upstream rejected the request as invalid',
|
|
250
284
|
'field.backoffFactor': 'Backoff factor',
|
|
251
285
|
'field.backoffFactorHint': 'Cooldown multiplier per consecutive failure (2 = 20s→40s→80s…).',
|
|
252
286
|
'field.backoffMaxMs': 'Max backoff (ms)',
|
|
253
|
-
'field.backoffMaxMsHint': '
|
|
287
|
+
'field.backoffMaxMsHint': 'Cooldown stops increasing at this value after consecutive failures.',
|
|
254
288
|
'field.notify': 'Browser notifications',
|
|
255
|
-
'field.notifyHint': '
|
|
289
|
+
'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.',
|
|
256
290
|
'stats.title': "Today's stats",
|
|
257
291
|
'stats.sent': 'Auto-continued',
|
|
258
292
|
'stats.skipped': 'Skipped (permanent)',
|
|
@@ -261,17 +295,17 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
261
295
|
'stats.gaveUp': 'Gave up (cap)',
|
|
262
296
|
'stats.looped': 'Loops broken',
|
|
263
297
|
'field.loopGuard': 'Loop guard',
|
|
264
|
-
'field.loopGuardHint': '
|
|
298
|
+
'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.',
|
|
265
299
|
'field.loopShortChars': 'Short-sentence max (chars)',
|
|
266
|
-
'field.loopShortCharsHint': 'A model message shorter than this counts as a short sentence
|
|
300
|
+
'field.loopShortCharsHint': 'A model message shorter than this counts as a short sentence.',
|
|
267
301
|
'field.loopWindowMs': 'Short-sentence window (ms)',
|
|
268
|
-
'field.loopWindowMsHint': '
|
|
302
|
+
'field.loopWindowMsHint': 'Count consecutive short sentences only within this window.',
|
|
269
303
|
'field.loopShortCount': 'Short-sentence threshold',
|
|
270
304
|
'field.loopShortCountHint': 'How many consecutive short sentences inside the window, with no tool call, trip the loop guard.',
|
|
271
305
|
'field.loopRepeatText': 'Identical message count',
|
|
272
|
-
'field.loopRepeatTextHint': '
|
|
306
|
+
'field.loopRepeatTextHint': 'Interrupt after this many consecutive identical messages, regardless of length. Also applies to repeated paragraphs within a single streamed message.',
|
|
273
307
|
'field.loopToolRepeat': 'Same-tool repeat count',
|
|
274
|
-
'field.loopToolRepeatHint': '
|
|
308
|
+
'field.loopToolRepeatHint': 'Interrupt after this many consecutive calls with the same tool, arguments, and results.',
|
|
275
309
|
'field.loopText': 'Loop text',
|
|
276
310
|
'field.loopTextHint': 'Text sent after the loop guard restarts a turn; supports the {tool} placeholder.',
|
|
277
311
|
'default.loopText': LOCALIZED_TEXT_DEFAULTS.en.loopText,
|
|
@@ -279,7 +313,7 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
279
313
|
'stats.empty': 'No auto-continue activity today.',
|
|
280
314
|
'stats.reset': 'Reset',
|
|
281
315
|
'recovery.title': 'Recent recovery attempts',
|
|
282
|
-
'recovery.hint': '
|
|
316
|
+
'recovery.hint': 'The last 20 recovery attempts for this DSH instance, grouped by session. Cleared when the plugin restarts; normal autonomous continuations are excluded.',
|
|
283
317
|
'recovery.empty': 'No recovery attempts yet.',
|
|
284
318
|
'recovery.count': 'Attempts in window',
|
|
285
319
|
'recovery.consecutive': 'Consecutive at last send',
|
|
@@ -298,9 +332,9 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
298
332
|
'chrome.collapse': 'Hide settings',
|
|
299
333
|
'chrome.expand': 'Show settings',
|
|
300
334
|
'chrome.unsaved': 'Unsaved',
|
|
301
|
-
'chrome.readOnly': '
|
|
335
|
+
'chrome.readOnly': 'Settings are read-only.',
|
|
302
336
|
'chrome.unavailable': 'Settings are unavailable.',
|
|
303
|
-
'chrome.saveFailed': '
|
|
337
|
+
'chrome.saveFailed': 'Could not save. Your edits are still here; review them and try again.',
|
|
304
338
|
'chrome.discard': 'Discard',
|
|
305
339
|
'chrome.saving': 'Saving…',
|
|
306
340
|
'chrome.save': 'Save',
|
|
@@ -311,3 +345,172 @@ export const en: Record<SettingsCardKey, string> = {
|
|
|
311
345
|
'chrome.on': 'On',
|
|
312
346
|
'chrome.off': 'Off',
|
|
313
347
|
};
|
|
348
|
+
|
|
349
|
+
/** Russian dictionary, checked complete against the zh key set. */
|
|
350
|
+
export const ru: Record<SettingsCardKey, string> = {
|
|
351
|
+
'chrome.saved': 'Все изменения сохранены',
|
|
352
|
+
'notification.title': 'Настройки авто-продолжения',
|
|
353
|
+
'notification.enabled': 'Настройки сохранены. Уведомления браузера включены.',
|
|
354
|
+
'notification.disabled': 'Настройки сохранены. Уведомления браузера выключены.',
|
|
355
|
+
'notification.saved': 'Настройки авто-продолжения сохранены.',
|
|
356
|
+
'notification.blocked': 'Настройки сохранены, но браузер не разрешает уведомления. Разрешите уведомления в настройках этого сайта.',
|
|
357
|
+
'notification.unsupported': 'Настройки сохранены. Этот браузер не поддерживает уведомления.',
|
|
358
|
+
'notification.failed': 'Настройки сохранены, но уведомление не удалось отправить. Проверьте разрешения на уведомления для сайта и в системе.',
|
|
359
|
+
'chrome.categories': 'Категории настроек',
|
|
360
|
+
'repo.star': 'Понравилось? Поставьте звезду',
|
|
361
|
+
'repo.link': 'Репозиторий GitHub',
|
|
362
|
+
'repo.aria': 'Открыть HsiangNianian/dsh-auto-continue на GitHub в новой вкладке',
|
|
363
|
+
'category.general.title': 'Общие',
|
|
364
|
+
'category.general.description': 'Управление запуском, отображением и уведомлениями авто-продолжения.',
|
|
365
|
+
'category.recovery.title': 'Стратегия повторов',
|
|
366
|
+
'category.recovery.description': 'Время ожидания, лимиты повторов и классификация ошибок.',
|
|
367
|
+
'category.startup.title': 'Восстановление при запуске',
|
|
368
|
+
'category.startup.description': 'Поиск недавно прерванных сессий после перезапуска DSH.',
|
|
369
|
+
'category.prompts.title': 'Текст продолжения',
|
|
370
|
+
'category.prompts.description': 'Оставьте пустым, чтобы использовать встроенный текст на текущем языке DSH.',
|
|
371
|
+
'category.safety.title': 'Защита',
|
|
372
|
+
'category.safety.description': 'Защита от повторного выполнения инструментов и разрыв холостых циклов.',
|
|
373
|
+
'category.status.title': 'Состояние и журнал',
|
|
374
|
+
'category.status.description': 'Активность и приостановленные сессии.',
|
|
375
|
+
'field.paused': 'Включить авто-продолжение глобально',
|
|
376
|
+
'field.showComposerToggle': 'Показывать переключатель авто-продолжения в поле ввода',
|
|
377
|
+
'field.showComposerToggleHint': 'Показывается по умолчанию. Скрытие не меняет режимы сессий. Применится после нажатия «Сохранить».',
|
|
378
|
+
'composer.label': 'Авто-продолжение',
|
|
379
|
+
'composer.mode': 'Режим авто-продолжения',
|
|
380
|
+
'composer.scope': 'Действует только на эту сессию: сохраняется сразу и синхронизируется между вкладками. «Выключено» также отключает здесь прерывания защитой от циклов.',
|
|
381
|
+
'composer.default': 'Как по умолчанию',
|
|
382
|
+
'composer.off': 'Выключено',
|
|
383
|
+
'composer.recover': 'Только восстановление',
|
|
384
|
+
'composer.loop': 'Автономный цикл',
|
|
385
|
+
'composer.paused': 'Приостановлено глобально',
|
|
386
|
+
'composer.unavailable': 'Ожидание хоста',
|
|
387
|
+
'composer.reconnecting': 'Переподключение к хосту… Показана последняя известная настройка; изменить её можно после переподключения.',
|
|
388
|
+
'composer.saving': 'Сохранение авто-продолжения…',
|
|
389
|
+
'composer.saveFailed': 'Не удалось сохранить. Повторите попытку.',
|
|
390
|
+
'field.pausedHint': 'Восстанавливать прерванные сессии. Выключите и сохраните, чтобы приостановить восстановление глобально и отменить запланированные продолжения. Защита от циклов продолжает работать; чтобы остановить автоматические прерывания, отключите её отдельно.',
|
|
391
|
+
'field.continueText': 'Текст продолжения',
|
|
392
|
+
'field.continueTextHint': 'Сообщение, автоматически отправляемое после прерывания.',
|
|
393
|
+
'default.continueText': LOCALIZED_TEXT_DEFAULTS.ru.continueText,
|
|
394
|
+
'field.continueTextMaxTokens': 'Текст продолжения (лимит токенов)',
|
|
395
|
+
'field.continueTextMaxTokensHint': 'Отправляется при достижении лимита выходных токенов; те же подстановки, что и в тексте продолжения.',
|
|
396
|
+
'default.continueTextMaxTokens': LOCALIZED_TEXT_DEFAULTS.ru.continueTextMaxTokens,
|
|
397
|
+
'field.resumeSilentTurns': 'Продолжать ходы без вывода',
|
|
398
|
+
'field.resumeSilentTurnsHint': 'Продолжать при наблюдаемой активности модели без видимого вывода. Пустые ходы, изображения и блоки расширений тихими не считаются; задержка и лимиты повторов действуют.',
|
|
399
|
+
'field.resumeSubagentSessions': 'Продолжать сессии субагентов',
|
|
400
|
+
'field.resumeSubagentSessionsHint': 'Автоматически продолжать прерванные сессии субагентов, если в их основном диалоге включено авто-продолжение. Субагенты не запускают автономный цикл, не перезапускаются защитой от циклов и не восстанавливаются сканированием при запуске. По умолчанию выключено. Работает, только пока субагент ещё загружен: DSH обычно закрывает фоновый субагент сразу после сбоя и сообщает об ошибке родительскому диалогу.',
|
|
401
|
+
'field.resumeCompletedTurns': 'Режим сессии по умолчанию',
|
|
402
|
+
'field.resumeCompletedTurnsHint': 'Для сессий без собственного режима. «Только восстановление» не трогает обычные завершения; «Автономный цикл» продолжает после них. Тихие и неудачные ходы по-прежнему расходуют бюджет повторов.',
|
|
403
|
+
'field.continueTextLoop': 'Текст продолжения (автономный цикл)',
|
|
404
|
+
'field.continueTextLoopHint': 'Текст, отправляемый при каждом продолжении автономного цикла.',
|
|
405
|
+
'default.continueTextLoop': LOCALIZED_TEXT_DEFAULTS.ru.continueTextLoop,
|
|
406
|
+
'field.continueTextSilent': 'Текст продолжения (ход без вывода)',
|
|
407
|
+
'field.continueTextSilentHint': 'Текст, отправляемый, когда ход заканчивается только рассуждениями; те же подстановки, что и в тексте продолжения.',
|
|
408
|
+
'default.continueTextSilent': LOCALIZED_TEXT_DEFAULTS.ru.continueTextSilent,
|
|
409
|
+
'field.continueTextInterrupted': 'Текст продолжения (после перезапуска хоста)',
|
|
410
|
+
'field.continueTextInterruptedHint': 'Текст, отправляемый, когда сканирование при запуске продолжает сессию, прерванную перезапуском; по умолчанию объясняет перезапуск и просит сверять состояние перед повтором.',
|
|
411
|
+
'default.continueTextInterrupted': LOCALIZED_TEXT_DEFAULTS.ru.continueTextInterrupted,
|
|
412
|
+
'field.guardTools': 'Защита от повторного выполнения',
|
|
413
|
+
'field.guardToolsHint': 'Перед продолжением проверяет последний вызов инструмента: если результат не подтверждён, просит сначала проверить состояние; если вызов успешен — не повторять его. Помогает не дублировать коммиты и вызовы API.',
|
|
414
|
+
'field.guardPendingText': 'Текст защиты (результат не подтверждён)',
|
|
415
|
+
'field.guardPendingTextHint': 'Добавляется, если последний инструмент мог выполниться частично; поддерживает подстановку {tool}.',
|
|
416
|
+
'default.guardPendingText': LOCALIZED_TEXT_DEFAULTS.ru.guardPendingText,
|
|
417
|
+
'field.guardDoneText': 'Текст защиты (инструмент выполнен)',
|
|
418
|
+
'field.guardDoneTextHint': 'Добавляется, если последний инструмент подтверждённо выполнен; поддерживает подстановки {tool} и {result} (фрагмент результата).',
|
|
419
|
+
'default.guardDoneText': LOCALIZED_TEXT_DEFAULTS.ru.guardDoneText,
|
|
420
|
+
'field.graceMs': 'Период ожидания (мс)',
|
|
421
|
+
'field.graceMsHint': 'Пауза после прерывания; отменяется, если хост восстановится сам.',
|
|
422
|
+
'field.cooldownMs': 'Задержка перед повтором (мс)',
|
|
423
|
+
'field.cooldownMsHint': 'Минимальный интервал между попытками восстановления; сбои в этот период ждут остаток интервала, затем — период ожидания. Обычные передачи автономного цикла от этого освобождены.',
|
|
424
|
+
'field.maxConsecutive': 'Максимум подряд',
|
|
425
|
+
'field.maxConsecutiveHint': 'Лимит последовательных попыток восстановления; сбрасывается при вмешательстве пользователя или завершении хода с видимым выводом. Обычные передачи автономного цикла не считаются.',
|
|
426
|
+
'field.scanOnBoot': 'Сканирование при запуске хоста',
|
|
427
|
+
'field.scanOnBootHint': 'Ждать поздно загружаемые прерванные сессии в окне сканирования при запуске; сохранённые сессии, которые хост не перезагрузил, тоже материализуются и проверяются; каждая готовая сессия проверяется один раз.',
|
|
428
|
+
'field.scanLimit': 'Лимит сканирования',
|
|
429
|
+
'field.scanLimitHint': 'Сколько подходящих сессий восстанавливать за проход; сначала самые недавно активные.',
|
|
430
|
+
'field.freshMs': 'Окно сканирования (мс)',
|
|
431
|
+
'field.freshMsHint': 'Учитываются только прерывания в этом окне; опрос при запуске тоже прекращается по его истечении.',
|
|
432
|
+
'field.verbose': 'Подробный журнал',
|
|
433
|
+
'field.verboseHint': 'Записывать активность движка в журнал хоста DSH с префиксом [auto-continue]; при работе через CLI эти строки видны в терминале, где запущен DSH.',
|
|
434
|
+
'field.classify': 'Классификация ошибок',
|
|
435
|
+
'field.classifyHint': 'Автоматически восстанавливать только временные сбои (сеть, тайм-аут, 5xx…); ошибки авторизации, баланса и модели пропускаются с уведомлением.',
|
|
436
|
+
'field.retryableErrorPatterns': 'Свои восстанавливаемые ошибки',
|
|
437
|
+
'field.retryableErrorPatternsHint': 'По одному литеральному фрагменту на строку без учёта регистра. Совпадение с кодом ошибки, HTTP-статусом или сообщением переопределяет встроенную классификацию. Указывайте только стабильный текст провайдера; широкие совпадения также запускают повтор для обычно пропускаемых ошибок аутентификации и баланса.',
|
|
438
|
+
'field.retryableErrorPatternsPlaceholder': 'Например: Upstream rejected the request as invalid',
|
|
439
|
+
'field.backoffFactor': 'Коэффициент задержки',
|
|
440
|
+
'field.backoffFactorHint': 'Множитель задержки при повторных сбоях (2 = 20 с → 40 с → 80 с…).',
|
|
441
|
+
'field.backoffMaxMs': 'Максимальная задержка (мс)',
|
|
442
|
+
'field.backoffMaxMsHint': 'Верхняя граница адаптивной задержки.',
|
|
443
|
+
'field.notify': 'Уведомления браузера',
|
|
444
|
+
'field.notifyHint': 'Уведомлять о событиях авто-продолжения и успешном сохранении настроек. Сохранение изменения этого параметра тоже подтверждает его состояние. При первом включении нужно разрешить уведомления в браузере.',
|
|
445
|
+
'stats.title': 'Статистика за сегодня',
|
|
446
|
+
'stats.sent': 'Авто-продолжений',
|
|
447
|
+
'stats.skipped': 'Пропущено (постоянные)',
|
|
448
|
+
'stats.recovered': 'Восстановлено',
|
|
449
|
+
'stats.failed': 'Сбоев после продолжения',
|
|
450
|
+
'stats.gaveUp': 'Остановлено (лимит)',
|
|
451
|
+
'stats.looped': 'Разорвано циклов',
|
|
452
|
+
'field.loopGuard': 'Защита от циклов',
|
|
453
|
+
'field.loopGuardHint': 'Распознаёт холостой ход: много коротких фраз без вызовов инструментов, повторяющиеся абзацы в одном потоковом сообщении или повтор одного инструмента — затем отменяет ход и перезапускает его с текстом цикла.',
|
|
454
|
+
'field.loopShortChars': 'Макс. длина короткой фразы (символов)',
|
|
455
|
+
'field.loopShortCharsHint': 'Сообщение модели короче этого значения считается короткой фразой (признак холостого хода).',
|
|
456
|
+
'field.loopWindowMs': 'Окно коротких фраз (мс)',
|
|
457
|
+
'field.loopWindowMsHint': 'Короткие фразы должны идти подряд внутри этого окна; обычные рассуждения, растянутые во времени, не считаются.',
|
|
458
|
+
'field.loopShortCount': 'Порог коротких фраз',
|
|
459
|
+
'field.loopShortCountHint': 'Сколько коротких фраз подряд в окне без вызова инструмента запускают защиту от циклов.',
|
|
460
|
+
'field.loopRepeatText': 'Порог одинаковых сообщений',
|
|
461
|
+
'field.loopRepeatTextHint': 'Сколько одинаковых сообщений подряд запускают защиту (сильнейший признак, любая длина; также используется для повторяющихся абзацев внутри одного потокового сообщения).',
|
|
462
|
+
'field.loopToolRepeat': 'Порог повторов инструмента',
|
|
463
|
+
'field.loopToolRepeatHint': 'Сколько вызовов одного инструмента с одинаковыми аргументами и результатом подряд запускают защиту; изменение аргументов или результата считается прогрессом.',
|
|
464
|
+
'field.loopText': 'Текст цикла',
|
|
465
|
+
'field.loopTextHint': 'Отправляется после перезапуска хода защитой от циклов; поддерживает подстановку {tool}.',
|
|
466
|
+
'default.loopText': LOCALIZED_TEXT_DEFAULTS.ru.loopText,
|
|
467
|
+
'stats.byCode': 'По коду ошибки',
|
|
468
|
+
'stats.empty': 'Сегодня ещё не было авто-продолжений.',
|
|
469
|
+
'stats.reset': 'Сбросить',
|
|
470
|
+
'recovery.title': 'Недавние попытки восстановления',
|
|
471
|
+
'recovery.hint': 'Счётчики по сессиям для последних 20 подсказок восстановления на этом хосте; очищаются при перезапуске плагина. Обычные автономные продолжения не учитываются. Отправленная подсказка не означает завершения задачи. Если восстановление повторяется, проверьте диалог и подумайте о передаче в новую сессию.',
|
|
472
|
+
'recovery.empty': 'Попыток восстановления пока нет.',
|
|
473
|
+
'recovery.count': 'Попыток в окне',
|
|
474
|
+
'recovery.consecutive': 'Подряд при последней отправке',
|
|
475
|
+
'recovery.latest': 'Последняя причина',
|
|
476
|
+
'recovery.reason.error': 'Ошибка запроса',
|
|
477
|
+
'recovery.reason.max-tokens': 'Лимит вывода',
|
|
478
|
+
'recovery.reason.silent': 'Нет видимого вывода',
|
|
479
|
+
'recovery.reason.interrupted': 'Прерывание при перезапуске хоста',
|
|
480
|
+
'recovery.reason.loop-guard': 'Защита от циклов',
|
|
481
|
+
'recovery.reason.manual': 'Ручное продолжение',
|
|
482
|
+
'pause.title': 'Приостановленные сессии',
|
|
483
|
+
'pause.none': 'Нет приостановленных сессий.',
|
|
484
|
+
'pause.clearAll': 'Снять все',
|
|
485
|
+
'pause.unpause': 'Продолжить',
|
|
486
|
+
'pause.minutes': 'мин',
|
|
487
|
+
'chrome.collapse': 'Скрыть настройки',
|
|
488
|
+
'chrome.expand': 'Показать настройки',
|
|
489
|
+
'chrome.unsaved': 'Не сохранено',
|
|
490
|
+
'chrome.readOnly': 'В этом развёртывании настройки доступны только для чтения.',
|
|
491
|
+
'chrome.unavailable': 'Настройки недоступны.',
|
|
492
|
+
'chrome.saveFailed': 'Развёртывание не приняло эти значения; они оставлены, чтобы вы их исправили.',
|
|
493
|
+
'chrome.discard': 'Отменить',
|
|
494
|
+
'chrome.saving': 'Сохранение…',
|
|
495
|
+
'chrome.save': 'Сохранить',
|
|
496
|
+
'chrome.overridden': 'Изменено',
|
|
497
|
+
'chrome.reset': 'Сбросить',
|
|
498
|
+
'chrome.invalidNumber': 'Введите число или оставьте поле пустым, чтобы использовать значение по умолчанию.',
|
|
499
|
+
'chrome.inherit': 'Наследовать',
|
|
500
|
+
'chrome.on': 'Вкл',
|
|
501
|
+
'chrome.off': 'Выкл',
|
|
502
|
+
'field.usePluginSource': 'Отправлять сообщения автопродолжения с меткой плагина',
|
|
503
|
+
'field.usePluginSourceHint': 'По умолчанию выключено, чтобы сохранить обычный источник «сообщение пользователя». Включите, чтобы помечать сообщения как пришедшие от плагина. Нажмите «Сохранить», чтобы применить.',
|
|
504
|
+
'field.resumeInterruptedChildren': 'Будить дочерние сессии после перезапуска',
|
|
505
|
+
'field.resumeInterruptedChildrenHint': 'Когда стартовый скан находит сессию субагента или участника команды, прерванную перезапуском, родительской сессии отправляется одно сообщение со списком таких детей, чтобы родитель мог продолжить или завершить их. Пропускается, если родитель завершился штатно или был остановлен вручную. По умолчанию выключено.',
|
|
506
|
+
'field.resumeGoals': 'Перевзводить цели, снятые перезапуском',
|
|
507
|
+
'field.resumeGoalsHint': 'Когда сессия автопродолжается, активная цель, снятая хостом при перезапуске, снова взводится, чтобы её раунды продолжения могли выполняться. Это действует от вашего имени, поэтому по умолчанию выключено.',
|
|
508
|
+
'field.resumePausedGoals': 'Возобновлять приостановленные цели',
|
|
509
|
+
'field.resumePausedGoalsHint': 'Также возобновлять цели, приостановленные вами вручную (требует включённого «Перевзводить цели, снятые перезапуском»). Пауза обычно осознанное решение — оставляйте выключенным, если не нужно.',
|
|
510
|
+
'field.pauseWhenOffline': 'Пауза при отсутствии сети',
|
|
511
|
+
'field.pauseWhenOfflineHint': 'Перед повтором сетевой ошибки (недоступный хост, сбой DNS, таймаут транспорта) проверять, что хост в сети. Пока сети нет, повтор ждёт, не расходуя попытки, и продолжается, когда сеть вернулась. При заданном HTTP(S)_PROXY проверяются только сетевые интерфейсы.',
|
|
512
|
+
'field.offlineCheckMs': 'Интервал повторной проверки сети (мс)',
|
|
513
|
+
'field.offlineCheckMsHint': 'Как часто отложенный повтор снова проверяет сеть. Минимум 1000.',
|
|
514
|
+
'field.loopMaxIterations': 'Лимит раундов автономного цикла',
|
|
515
|
+
'field.loopMaxIterationsHint': 'Максимум автономных раундов на сессию; 0 — без лимита. По достижении цикл останавливается и сообщает об этом один раз; отправка сообщения или повторное включение цикла начинают счёт заново.',
|
|
516
|
+
};
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
readTodayStats,
|
|
20
20
|
readRecoveryAttempts,
|
|
21
21
|
readSessionPolicy,
|
|
22
|
+
isBridgeConnected,
|
|
22
23
|
resetTodayStats,
|
|
23
24
|
setSessionMode,
|
|
24
25
|
subscribeBridge,
|
|
@@ -84,10 +85,18 @@ export interface AutoContinueSettingsCardState extends CardShell {
|
|
|
84
85
|
notificationFeedback: SettingsCardKey | undefined;
|
|
85
86
|
paused: CardFieldState;
|
|
86
87
|
showComposerToggle: CardFieldState;
|
|
88
|
+
usePluginSource: CardFieldState;
|
|
87
89
|
continueText: CardFieldState;
|
|
88
90
|
continueTextMaxTokens: CardFieldState;
|
|
89
91
|
resumeSilentTurns: CardFieldState;
|
|
92
|
+
resumeSubagentSessions: CardFieldState;
|
|
90
93
|
resumeCompletedTurns: CardFieldState;
|
|
94
|
+
resumeInterruptedChildren: CardFieldState;
|
|
95
|
+
resumeGoals: CardFieldState;
|
|
96
|
+
resumePausedGoals: CardFieldState;
|
|
97
|
+
pauseWhenOffline: CardFieldState;
|
|
98
|
+
offlineCheckMs: CardFieldState;
|
|
99
|
+
loopMaxIterations: CardFieldState;
|
|
91
100
|
continueTextLoop: CardFieldState;
|
|
92
101
|
continueTextSilent: CardFieldState;
|
|
93
102
|
continueTextInterrupted: CardFieldState;
|
|
@@ -145,10 +154,18 @@ export class AutoContinueSettingsCardController {
|
|
|
145
154
|
this.form = new CardForm(scope, [
|
|
146
155
|
booleanField('paused'),
|
|
147
156
|
booleanField('showComposerToggle'),
|
|
157
|
+
booleanField('usePluginSource'),
|
|
148
158
|
textField('continueText'),
|
|
149
159
|
textField('continueTextMaxTokens'),
|
|
150
160
|
booleanField('resumeSilentTurns'),
|
|
161
|
+
booleanField('resumeSubagentSessions'),
|
|
151
162
|
booleanField('resumeCompletedTurns'),
|
|
163
|
+
booleanField('resumeInterruptedChildren'),
|
|
164
|
+
booleanField('resumeGoals'),
|
|
165
|
+
booleanField('resumePausedGoals'),
|
|
166
|
+
booleanField('pauseWhenOffline'),
|
|
167
|
+
numberField('offlineCheckMs', 1000),
|
|
168
|
+
numberField('loopMaxIterations', 0),
|
|
152
169
|
textField('continueTextLoop'),
|
|
153
170
|
textField('continueTextSilent'),
|
|
154
171
|
textField('continueTextInterrupted'),
|
|
@@ -187,10 +204,18 @@ export class AutoContinueSettingsCardController {
|
|
|
187
204
|
notificationFeedback: this.notificationFeedback,
|
|
188
205
|
paused: this.form.field('paused'),
|
|
189
206
|
showComposerToggle: this.form.field('showComposerToggle'),
|
|
207
|
+
usePluginSource: this.form.field('usePluginSource'),
|
|
190
208
|
continueText: this.form.field('continueText'),
|
|
191
209
|
continueTextMaxTokens: this.form.field('continueTextMaxTokens'),
|
|
192
210
|
resumeSilentTurns: this.form.field('resumeSilentTurns'),
|
|
211
|
+
resumeSubagentSessions: this.form.field('resumeSubagentSessions'),
|
|
193
212
|
resumeCompletedTurns: this.form.field('resumeCompletedTurns'),
|
|
213
|
+
resumeInterruptedChildren: this.form.field('resumeInterruptedChildren'),
|
|
214
|
+
resumeGoals: this.form.field('resumeGoals'),
|
|
215
|
+
resumePausedGoals: this.form.field('resumePausedGoals'),
|
|
216
|
+
pauseWhenOffline: this.form.field('pauseWhenOffline'),
|
|
217
|
+
offlineCheckMs: this.form.field('offlineCheckMs'),
|
|
218
|
+
loopMaxIterations: this.form.field('loopMaxIterations'),
|
|
194
219
|
continueTextLoop: this.form.field('continueTextLoop'),
|
|
195
220
|
continueTextSilent: this.form.field('continueTextSilent'),
|
|
196
221
|
continueTextInterrupted: this.form.field('continueTextInterrupted'),
|
|
@@ -254,10 +279,12 @@ export class AutoContinueSettingsCardController {
|
|
|
254
279
|
private composerProjection(): ComposerToggleState {
|
|
255
280
|
const snapshot = this.scope.getSnapshot();
|
|
256
281
|
const policy = readSessionPolicy();
|
|
282
|
+
const connected = isBridgeConnected();
|
|
257
283
|
return {
|
|
258
284
|
visible: snapshot.status === 'ready' && (snapshot.value?.showComposerToggle ?? DEFAULT_CONFIG.showComposerToggle),
|
|
259
285
|
policy,
|
|
260
|
-
|
|
286
|
+
reconnecting: policy !== undefined && !connected,
|
|
287
|
+
writable: connected && canWriteSettings(snapshot) && policy?.writable === true,
|
|
261
288
|
saving: new Set(this.composerSaving),
|
|
262
289
|
failed: new Set(this.composerFailed),
|
|
263
290
|
};
|
|
@@ -301,9 +328,9 @@ export function AutoContinueSettingsPage(props: AutoContinueSettingsCardProps) {
|
|
|
301
328
|
|
|
302
329
|
type FieldName = Exclude<keyof AutoContinueSettingsCardState, keyof CardShell | 'enabled' | 'notificationFeedback'>;
|
|
303
330
|
const groups = [
|
|
304
|
-
{ id: 'general', fields: ['paused', 'showComposerToggle', 'resumeSilentTurns', 'resumeCompletedTurns', 'notify'] },
|
|
305
|
-
{ id: 'recovery', fields: ['graceMs', 'cooldownMs', 'maxConsecutive', 'classify', 'retryableErrorPatterns', 'backoffFactor', 'backoffMaxMs'] },
|
|
306
|
-
{ id: 'startup', fields: ['scanOnBoot', 'scanLimit', 'freshMs'] },
|
|
331
|
+
{ id: 'general', fields: ['paused', 'showComposerToggle', 'usePluginSource', 'resumeSilentTurns', 'resumeSubagentSessions', 'resumeCompletedTurns', 'loopMaxIterations', 'notify'] },
|
|
332
|
+
{ id: 'recovery', fields: ['graceMs', 'cooldownMs', 'maxConsecutive', 'classify', 'retryableErrorPatterns', 'backoffFactor', 'backoffMaxMs', 'pauseWhenOffline', 'offlineCheckMs', 'resumeGoals', 'resumePausedGoals'] },
|
|
333
|
+
{ id: 'startup', fields: ['scanOnBoot', 'resumeInterruptedChildren', 'scanLimit', 'freshMs'] },
|
|
307
334
|
{ id: 'prompts', fields: ['continueText', 'continueTextMaxTokens', 'continueTextSilent', 'continueTextInterrupted', 'continueTextLoop', 'guardPendingText', 'guardDoneText', 'loopText'] },
|
|
308
335
|
{ id: 'safety', fields: ['guardTools', 'loopGuard', 'loopShortChars', 'loopWindowMs', 'loopShortCount', 'loopRepeatText', 'loopToolRepeat'] },
|
|
309
336
|
{ id: 'status', fields: ['verbose'] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en, zh, type SettingsCardKey } from './locales.ts';
|
|
1
|
+
import { en, ru, zh, type SettingsCardKey } from './locales.ts';
|
|
2
2
|
import { resolveLocale } from '../shared/core.ts';
|
|
3
3
|
|
|
4
4
|
type Permission = NotificationPermission | 'unsupported' | 'failed';
|
|
@@ -31,7 +31,8 @@ export function showSettingsNotification(notice: SettingsNotice, locale: string,
|
|
|
31
31
|
: permission === 'failed' ? 'notification.failed' : 'notification.blocked';
|
|
32
32
|
}
|
|
33
33
|
try {
|
|
34
|
-
const
|
|
34
|
+
const resolved = resolveLocale(locale);
|
|
35
|
+
const copy = resolved === 'zh' ? zh : resolved === 'ru' ? ru : en;
|
|
35
36
|
const notification = new Notification(copy['notification.title'], { body: copy[message] });
|
|
36
37
|
notification.onclick = () => {
|
|
37
38
|
try { globalThis.focus?.(); } catch { /* Focusing is best effort. */ }
|