dsh-client-auto-continue 0.21.1 → 0.22.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 +16 -0
- package/README.ja.md +407 -0
- package/README.md +25 -3
- package/README.ru.md +25 -3
- package/README.zh.md +24 -3
- package/docs/banner-ja-dark.svg +38 -0
- package/docs/banner-ja.svg +38 -0
- package/docs/releases/v0.22.0.md +57 -0
- package/lib/client.js +198 -4
- package/lib/client.js.map +2 -2
- package/lib/index.js +112 -10
- package/lib/types/client/locales.d.ts +4 -0
- package/lib/types/client/settings-card.d.ts +1 -0
- package/lib/types/host/engine.d.ts +7 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/shared/core.d.ts +30 -1
- package/locale/ja.json +6 -0
- package/package.json +3 -2
- package/scripts/build-docs-assets.mjs +6 -1
- package/src/client/index.ts +3 -2
- package/src/client/locales.ts +180 -0
- package/src/client/settings-card.tsx +4 -1
- package/src/client/settings-notifications.ts +2 -2
- package/src/host/engine.ts +109 -6
- package/src/index.ts +2 -0
- package/src/shared/core.ts +44 -1
package/README.zh.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p align="center">
|
|
22
|
-
<a href="README.md">English</a> · <b>中文</b> · <a href="README.ru.md">Русский</a> · <a href="CHANGELOG.md">更新日志</a>
|
|
22
|
+
<a href="README.md">English</a> · <b>中文</b> · <a href="README.ru.md">Русский</a> · <a href="README.ja.md">日本語</a> · <a href="CHANGELOG.md">更新日志</a>
|
|
23
23
|
</p>
|
|
24
24
|
|
|
25
25
|
## 目录
|
|
@@ -73,7 +73,7 @@ dsh web
|
|
|
73
73
|
|
|
74
74
|
| DSH 内核 | 插件版本 | 设置入口 |
|
|
75
75
|
| --- | --- | --- |
|
|
76
|
-
| 0.2.2-rc.1、0.2.1-rc.2、0.2.1-alpha.1 | 0.
|
|
76
|
+
| 0.2.2-rc.1、0.2.1-rc.2、0.2.1-alpha.1 | 0.22.0 已验证 | **插件 → dsh-client-auto-continue** |
|
|
77
77
|
| 0.2.0-rc.1 | 0.12.1 及以上 | **插件 → dsh-client-auto-continue** |
|
|
78
78
|
| 0.1.7-rc.2 | 0.11.9 及以上 | **插件 → dsh-client-auto-continue** |
|
|
79
79
|
| 仅有旧版设置 API 的宿主 | 旧版界面 | **设置 → 插件 → 插件配置** |
|
|
@@ -199,6 +199,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
199
199
|
cooldownMs: 45000
|
|
200
200
|
resumeCompletedTurns: true
|
|
201
201
|
loopMaxIterations: 20
|
|
202
|
+
loopStopMarker: '<<<TASK COMPLETE>>>'
|
|
202
203
|
```
|
|
203
204
|
|
|
204
205
|
时间单位均为毫秒。文本类字段留空时使用当前语言的内置文本。
|
|
@@ -214,8 +215,28 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
214
215
|
| 续跑子代理会话 | `resumeSubagentSessions` | `false` | 子代理失败、被截断或无输出时,按主会话的模式续跑。DSH 已经释放子代理时,引擎通过宿主的 subagent 服务从持久化会话冷恢复它;宿主无法恢复时,改为把失败交给主会话 |
|
|
215
216
|
| 默认会话模式 | `resumeCompletedTurns` | `false` | 用于“跟随默认”的会话:`false` 为仅故障恢复,`true` 为自主循环 |
|
|
216
217
|
| 自主循环轮数上限 | `loopMaxIterations` | `0` | 每个会话的循环轮数,`0` 为不限。你发消息或重新开启循环后重新计数 |
|
|
218
|
+
| 自主循环完成标记 | `loopStopMarker` | `''` | 完成回合**单独一行**写出这段文字(代码块之外)时停止循环;`''` 表示从不因文本停止。标记由模型自己写出,需要配合 `continueTextLoop` 告诉它何时写。见 [让已完成的循环停下](#让已完成的循环停下) |
|
|
217
219
|
| 浏览器通知 | `notify` | `false` | 发送、跳过、放弃以及设置保存时通知;首次开启时浏览器会请求权限 |
|
|
218
220
|
|
|
221
|
+
### 让已完成的循环停下
|
|
222
|
+
|
|
223
|
+
自主循环模式会续跑**每一个**完成回合,所以没有停止信号时,任务做完后它会一直自说自话,直到触达 `loopMaxIterations` 或你手动停止。完成标记就是那个信号:完成回合把 `loopStopMarker` **单独写成一行**时,本会话的循环就此结束,不再安排下一轮,并提示你一次(需开启通知)。之后没有可见输出的回合(例如 goal 轮)也不会让它重新转起来。只是被引用的标记——夹在句子里、或写在代码块里——不算数,因此模型读到的内容被复述出来也不会让循环提前结束。只检查模型自己写出的可见文本,工具输出同样不会误停。停止也不持久化:你发消息或重新开启循环即重新武装;回合还没结束就排队的新消息,会让该回合结束时循环继续。回合检查完的文本立即丢弃,空闲会话不会囤积旧转录。
|
|
224
|
+
|
|
225
|
+
模型只会按你的要求写出标记,位置在自主循环的继续文本里:
|
|
226
|
+
|
|
227
|
+
```yaml
|
|
228
|
+
- id: auto-continue
|
|
229
|
+
config:
|
|
230
|
+
resumeCompletedTurns: true
|
|
231
|
+
loopStopMarker: '<<<TASK COMPLETE>>>'
|
|
232
|
+
continueTextLoop: >-
|
|
233
|
+
先核对最初的目标和当前进度。若目标要求的工作仍未完成,直接继续做,
|
|
234
|
+
不要向用户确认。若完成条件已经满足并验证过,单独一行写出
|
|
235
|
+
<<<TASK COMPLETE>>> 然后停止。不要做原始范围之外的功能追加。
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
标记要有辨识度。像 `done`、`完成` 这样的普通词会被正常叙述触发,导致循环提前结束。
|
|
239
|
+
|
|
219
240
|
### 重试策略
|
|
220
241
|
|
|
221
242
|
| 设置项 | 键 | 默认值 | 说明 |
|
|
@@ -257,7 +278,7 @@ dsh plugin --profile web remove dsh-client-auto-continue
|
|
|
257
278
|
|
|
258
279
|
默认值都是 `''`,即使用内置文本。继续文本支持 `{code}`、`{message}`、`{status}`、`{tool}`、`{turn}`、`{errorCount}` 和 `{elapsed}` 占位符,例如 `继续({tool}: {code})` 会变成 `继续(git push: UPSTREAM)`。护栏文本和循环提示文本支持 `{tool}`,`guardDoneText` 还支持 `{result}`(工具输出的简短摘录)。
|
|
259
280
|
|
|
260
|
-
|
|
281
|
+
内置文本有英文、中文、俄文和日文四套,跟随 DSH 的界面语言:`zh` 和 `zh-*` 用中文,`ru` 和 `ru-*` 用俄文,`ja` 和 `ja-*` 用日文,其他语言一律用英文。你自己填写的非空文本不会因切换语言被替换。
|
|
261
282
|
|
|
262
283
|
<details>
|
|
263
284
|
<summary>内置中文文本</summary>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="ja" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">HsiangNianian による DeepSeek Harness プラグイン。中断されたセッションを、あなたのペースで再開します。</desc>
|
|
4
|
+
<style>
|
|
5
|
+
text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
|
|
6
|
+
.wordmark { font-size: 46px; font-weight: 650; letter-spacing: -1.5px; }
|
|
7
|
+
.tagline { font-size: 24px; }
|
|
8
|
+
.compact { display: none; }
|
|
9
|
+
@media (max-width: 520px) {
|
|
10
|
+
.eyebrow { font-size: 23px; letter-spacing: 0; }
|
|
11
|
+
.wordmark { font-size: 49px; }
|
|
12
|
+
.tagline { font-size: 32px; }
|
|
13
|
+
.credit { font-size: 25px; }
|
|
14
|
+
.full { display: none; }
|
|
15
|
+
.compact { display: inline; }
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<rect width="960" height="260" rx="18" fill="#141414"/>
|
|
19
|
+
<rect x="40" y="48" width="112" height="112" rx="28" fill="#23262c"/>
|
|
20
|
+
<g transform="translate(57 64) scale(1.25)">
|
|
21
|
+
<path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round"/>
|
|
22
|
+
<path d="M49 6v12H37" fill="none" stroke="#f4f4f5" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
23
|
+
<path d="M27 22l16 10-16 10Z" fill="#f4f4f5" stroke="#f4f4f5" stroke-width="2" stroke-linejoin="round"/>
|
|
24
|
+
</g>
|
|
25
|
+
<g fill="#f4f4f5">
|
|
26
|
+
<text class="eyebrow" x="188" y="61" fill="#b9bec8" font-size="15" letter-spacing="1.6">DEEPSEEK HARNESS PLUGIN</text>
|
|
27
|
+
<text class="wordmark" x="185" y="118">dsh-auto-continue</text>
|
|
28
|
+
<text class="tagline full" x="188" y="163" fill="#b9bec8">中断されたセッションを、あなたのペースで再開。</text>
|
|
29
|
+
<text class="tagline compact" x="188" y="163" fill="#b9bec8">中断しても、そのまま続けよう。</text>
|
|
30
|
+
</g>
|
|
31
|
+
<path d="M40 200H920" stroke="#37393e"/>
|
|
32
|
+
<text class="credit" x="40" y="236" fill="#b9bec8" font-size="16">by HsiangNianian</text>
|
|
33
|
+
<!-- A broken thread joining back into one line. -->
|
|
34
|
+
<g fill="none" stroke="#b9bec8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
35
|
+
<path d="M700 230h44m12 0h3m12 0h3m12 0h126"/>
|
|
36
|
+
<path d="m902 224 10 6-10 6"/>
|
|
37
|
+
</g>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="260" viewBox="0 0 960 260" role="img" lang="ja" aria-labelledby="title description">
|
|
2
|
+
<title id="title">dsh-auto-continue</title>
|
|
3
|
+
<desc id="description">HsiangNianian による DeepSeek Harness プラグイン。中断されたセッションを、あなたのペースで再開します。</desc>
|
|
4
|
+
<style>
|
|
5
|
+
text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
|
|
6
|
+
.wordmark { font-size: 46px; font-weight: 650; letter-spacing: -1.5px; }
|
|
7
|
+
.tagline { font-size: 24px; }
|
|
8
|
+
.compact { display: none; }
|
|
9
|
+
@media (max-width: 520px) {
|
|
10
|
+
.eyebrow { font-size: 23px; letter-spacing: 0; }
|
|
11
|
+
.wordmark { font-size: 49px; }
|
|
12
|
+
.tagline { font-size: 32px; }
|
|
13
|
+
.credit { font-size: 25px; }
|
|
14
|
+
.full { display: none; }
|
|
15
|
+
.compact { display: inline; }
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<rect width="960" height="260" rx="18" fill="#f4f4f5"/>
|
|
19
|
+
<rect x="40" y="48" width="112" height="112" rx="28" fill="#e4e4e7"/>
|
|
20
|
+
<g transform="translate(57 64) scale(1.25)">
|
|
21
|
+
<path d="M49 17A24 24 0 1 0 56 38" fill="none" stroke="#24262b" stroke-width="5" stroke-linecap="round"/>
|
|
22
|
+
<path d="M49 6v12H37" fill="none" stroke="#24262b" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
23
|
+
<path d="M27 22l16 10-16 10Z" fill="#24262b" stroke="#24262b" stroke-width="2" stroke-linejoin="round"/>
|
|
24
|
+
</g>
|
|
25
|
+
<g fill="#24262b">
|
|
26
|
+
<text class="eyebrow" x="188" y="61" fill="#545961" font-size="15" letter-spacing="1.6">DEEPSEEK HARNESS PLUGIN</text>
|
|
27
|
+
<text class="wordmark" x="185" y="118">dsh-auto-continue</text>
|
|
28
|
+
<text class="tagline full" x="188" y="163" fill="#545961">中断されたセッションを、あなたのペースで再開。</text>
|
|
29
|
+
<text class="tagline compact" x="188" y="163" fill="#545961">中断しても、そのまま続けよう。</text>
|
|
30
|
+
</g>
|
|
31
|
+
<path d="M40 200H920" stroke="#d4d4d8"/>
|
|
32
|
+
<text class="credit" x="40" y="236" fill="#545961" font-size="16">by HsiangNianian</text>
|
|
33
|
+
<!-- A broken thread joining back into one line. -->
|
|
34
|
+
<g fill="none" stroke="#545961" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
35
|
+
<path d="M700 230h44m12 0h3m12 0h3m12 0h126"/>
|
|
36
|
+
<path d="m902 224 10 6-10 6"/>
|
|
37
|
+
</g>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
The autonomous loop can stop on its own when the work is done, and the plugin now speaks Japanese
|
|
2
|
+
|
|
3
|
+
## Stop a finished loop with a marker
|
|
4
|
+
|
|
5
|
+
Autonomous loop mode continues after every completed turn. That's the point, but it also means a task that's actually finished keeps the model talking to itself until it hits **Autonomous loop round limit** or you press Stop. With the limit at its default of 0, that's forever
|
|
6
|
+
|
|
7
|
+
@tonbiattack added **Autonomous loop stop marker** (`loopStopMarker`) in [#98](https://github.com/HsiangNianian/dsh-auto-continue/pull/98). Set it to something distinctive, tell the model in your loop continue text to write it when it's done, and a completed turn that writes it on its own line ends the loop for that session
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
- id: auto-continue
|
|
11
|
+
config:
|
|
12
|
+
resumeCompletedTurns: true
|
|
13
|
+
loopStopMarker: '<<<TASK COMPLETE>>>'
|
|
14
|
+
continueTextLoop: >-
|
|
15
|
+
Review the original goal and the current progress. If work that the goal
|
|
16
|
+
requires is still unfinished, continue it without asking for confirmation.
|
|
17
|
+
If the completion conditions are met and verified, write <<<TASK COMPLETE>>>
|
|
18
|
+
on its own line and stop. Do not add work outside the original scope.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- It's empty by default, so nothing changes until you set it
|
|
22
|
+
- Only the model's own visible text counts. A marker quoted mid-sentence or inside a code block doesn't, and neither do tool output or reasoning, so a file that happens to contain the marker can't end the loop early
|
|
23
|
+
- You get one notification when it stops. A later turn with no visible output, like a goal round, won't start it again
|
|
24
|
+
- Sending a message or switching the loop off and on re-arms it
|
|
25
|
+
- Pick something that won't show up in normal prose. `done` will stop the loop the first time the model says it's done with a step
|
|
26
|
+
|
|
27
|
+
I added two things on top: the silent-turn path now respects the stop too, and the stop sends a notification the same way the round limit does
|
|
28
|
+
|
|
29
|
+
## Japanese
|
|
30
|
+
|
|
31
|
+
The settings card, the mode menu in the composer, notifications and the built-in continue, guard and loop texts are now in Japanese when DSH's language is `ja` or `ja-*`. The built-in continue text is `続けて`. There's a full `README.ja.md` as well. DSH itself has no Japanese UI yet, so pages like **Plugins** stay in English
|
|
32
|
+
|
|
33
|
+
While adding it I noticed the restart wake-up that lists interrupted child sessions only had Chinese and English wording, so Russian sessions got English instructions around Russian causes. That's fixed for every language now ([#100](https://github.com/HsiangNianian/dsh-auto-continue/pull/100))
|
|
34
|
+
|
|
35
|
+
## Upgrade
|
|
36
|
+
|
|
37
|
+
Let current work finish, stop DSH, then update the profile you use
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
dsh plugin --profile web add dsh-client-auto-continue@0.22.0
|
|
41
|
+
dsh web
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Desktop app users should update through the app's Plugins page and restart the app, since it uses its own profile
|
|
45
|
+
|
|
46
|
+
- Reload open browser tabs after restarting
|
|
47
|
+
- The only new setting is **Autonomous loop stop marker**, empty by default. Nothing else changes
|
|
48
|
+
|
|
49
|
+
## Validation
|
|
50
|
+
|
|
51
|
+
- Typecheck, build, the full regression suite and the DSH runtime compatibility tests
|
|
52
|
+
- New `tests/loop-stop-marker.mjs` covers the marker on its own line, quoted in prose and in fenced blocks, reasoning-only text, aborted turns, a message queued mid-turn, re-arming by message and by toggling the loop, and a silent turn after the stop
|
|
53
|
+
- The locale tests now include `ja`: rendering every settings category, the save notification, locale mirroring and the host's built-in prompt. The child wake-up is checked in English, Russian and Japanese
|
|
54
|
+
|
|
55
|
+
Thanks @tonbiattack for the marker and for handling the bot review before anyone asked
|
|
56
|
+
|
|
57
|
+
**Full changes:** https://github.com/HsiangNianian/dsh-auto-continue/compare/v0.21.1...v0.22.0
|
package/lib/client.js
CHANGED
|
@@ -41,6 +41,7 @@ function resolveLocale(locale) {
|
|
|
41
41
|
if (typeof locale !== "string") return "en";
|
|
42
42
|
if (/^zh(?:-|$)/i.test(locale)) return "zh";
|
|
43
43
|
if (/^ru(?:-|$)/i.test(locale)) return "ru";
|
|
44
|
+
if (/^ja(?:-|$)/i.test(locale)) return "ja";
|
|
44
45
|
return "en";
|
|
45
46
|
}
|
|
46
47
|
var isSessionMode = (value) => value === "default" || value === "off" || value === "recover" || value === "loop";
|
|
@@ -80,6 +81,17 @@ var LOCALIZED_TEXT_DEFAULTS = {
|
|
|
80
81
|
guardPendingText: "(Предыдущий инструмент «{tool}», возможно, не завершился. Проверь его состояние перед продолжением и не запускай его повторно.)",
|
|
81
82
|
guardDoneText: "(Предыдущий инструмент «{tool}» завершился успешно. Результат: {result}; не запускай его повторно, продолжай с этого места.)",
|
|
82
83
|
loopText: "(Похоже, ты застрял в цикле. Перестань повторять последнее действие и продолжай другим способом.)"
|
|
84
|
+
},
|
|
85
|
+
ja: {
|
|
86
|
+
continueText: "続けて",
|
|
87
|
+
continueTextMaxTokens: "続けて",
|
|
88
|
+
continueTextSilent: "続けて。前のターンは内部の推論だけで終わり、返信もツール呼び出しもなかったため、ユーザーには何も表示されていません。ターンは必ずツール呼び出しか目に見える返信で終えてください。",
|
|
89
|
+
continueTextLoop: "続けて",
|
|
90
|
+
continueTextInterrupted: "続けて。前のターンの実行中にホストが再起動しました。再起動時に未完了だったツール呼び出しは「結果不明」として記録されています。中断したところから再開し、副作用のある操作をやり直す前に外部の状態を確認してください。",
|
|
91
|
+
continueTextQuestion: "これはホストの再起動後にプラグインが自動で送ったメッセージで、ユーザーの返答ではありません。あなたがユーザーにした質問は再起動で中断され、まだ答えがありません。同じ質問をもう一度して、答えを待ってください。ユーザーの代わりに決めないでください。",
|
|
92
|
+
guardPendingText: "(前のツール「{tool}」は完了していない可能性があります。続ける前に状態を確認し、再実行しないでください)",
|
|
93
|
+
guardDoneText: "(前のツール「{tool}」は正常に完了しました。結果: {result}。再実行せず、そこから続けてください)",
|
|
94
|
+
loopText: "(ループに陥っている可能性があります。直前の動作を繰り返すのをやめ、別の方法で続けてください)"
|
|
83
95
|
}
|
|
84
96
|
};
|
|
85
97
|
var DEFAULT_CONFIG = {
|
|
@@ -117,7 +129,8 @@ var DEFAULT_CONFIG = {
|
|
|
117
129
|
resumePausedGoals: false,
|
|
118
130
|
pauseWhenOffline: true,
|
|
119
131
|
offlineCheckMs: 15e3,
|
|
120
|
-
loopMaxIterations: 0
|
|
132
|
+
loopMaxIterations: 0,
|
|
133
|
+
loopStopMarker: ""
|
|
121
134
|
};
|
|
122
135
|
var RECOVERY_WINDOW_MS = 10 * 60 * 1e3;
|
|
123
136
|
var ECHO_WINDOW_MS = 10 * 60 * 1e3;
|
|
@@ -190,6 +203,8 @@ var zh = {
|
|
|
190
203
|
"field.offlineCheckMsHint": "挂起期间多久重新检测一次网络,最小 1000。",
|
|
191
204
|
"field.loopMaxIterations": "自主循环轮数上限",
|
|
192
205
|
"field.loopMaxIterationsHint": "每个会话自主续跑的最多轮数,0 为不限制。到达上限后停下并提示一次;你发消息或重新开启循环后重新计数。",
|
|
206
|
+
"field.loopStopMarker": "自主循环完成标记",
|
|
207
|
+
"field.loopStopMarkerHint": "完成回合把这段文字单独写成一行时停止自主循环(留空则从不停止)。夹在句子里或代码块中的引用不算;模型按继续文本的要求在完成时原样写出该标记。",
|
|
193
208
|
"field.continueTextLoop": "自主循环的继续文本",
|
|
194
209
|
"field.continueTextLoopHint": "自主循环每次续跑时发送的文本。",
|
|
195
210
|
"default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.zh.continueTextLoop,
|
|
@@ -360,6 +375,8 @@ var en = {
|
|
|
360
375
|
"field.offlineCheckMsHint": "How often a held retry checks the network again. Minimum 1000.",
|
|
361
376
|
"field.loopMaxIterations": "Autonomous loop round limit",
|
|
362
377
|
"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.",
|
|
378
|
+
"field.loopStopMarker": "Autonomous loop stop marker",
|
|
379
|
+
"field.loopStopMarkerHint": "Stop the autonomous loop when a completed turn writes this literal on a line of its own (empty never stops). A marker that is only quoted — mid-sentence or inside a fenced code block — does not count. The model writes the marker verbatim when it considers the task done, as the continue text instructs.",
|
|
363
380
|
"field.continueTextLoop": "Continue text (autonomous loop)",
|
|
364
381
|
"field.continueTextLoopHint": "Text sent on each autonomous-loop continuation.",
|
|
365
382
|
"default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.en.continueTextLoop,
|
|
@@ -631,7 +648,181 @@ var ru = {
|
|
|
631
648
|
"field.offlineCheckMs": "Интервал повторной проверки сети (мс)",
|
|
632
649
|
"field.offlineCheckMsHint": "Как часто отложенный повтор снова проверяет сеть. Минимум 1000.",
|
|
633
650
|
"field.loopMaxIterations": "Лимит раундов автономного цикла",
|
|
634
|
-
"field.loopMaxIterationsHint": "Максимум автономных раундов на сессию; 0 — без лимита. По достижении цикл останавливается и сообщает об этом один раз; отправка сообщения или повторное включение цикла начинают счёт заново."
|
|
651
|
+
"field.loopMaxIterationsHint": "Максимум автономных раундов на сессию; 0 — без лимита. По достижении цикл останавливается и сообщает об этом один раз; отправка сообщения или повторное включение цикла начинают счёт заново.",
|
|
652
|
+
"field.loopStopMarker": "Маркер завершения автономного цикла",
|
|
653
|
+
"field.loopStopMarkerHint": "Останавливает автономный цикл, если завершённый ход написал эту строку отдельной строкой (пусто — не останавливать). Маркер, который только цитируется — внутри предложения или блока кода — не считается. Модель пишет маркер дословно, когда считает задачу выполненной, как требует текст продолжения."
|
|
654
|
+
};
|
|
655
|
+
var ja = {
|
|
656
|
+
"chrome.saved": "すべての変更を保存しました",
|
|
657
|
+
"notification.title": "自動続行の設定",
|
|
658
|
+
"notification.enabled": "設定を保存しました。ブラウザ通知はオンです。",
|
|
659
|
+
"notification.disabled": "設定を保存しました。ブラウザ通知はオフです。",
|
|
660
|
+
"notification.saved": "自動続行の設定を保存しました。",
|
|
661
|
+
"notification.blocked": "設定を保存しましたが、ブラウザ通知が許可されていません。このサイトの権限で通知を許可してください。",
|
|
662
|
+
"notification.unsupported": "設定を保存しました。このブラウザは通知に対応していません。",
|
|
663
|
+
"notification.failed": "設定を保存しましたが、通知を送れませんでした。このサイトとシステムの通知権限を確認してください。",
|
|
664
|
+
"chrome.categories": "設定カテゴリ",
|
|
665
|
+
"repo.star": "役に立ったら Star をお願いします",
|
|
666
|
+
"repo.link": "GitHub リポジトリ",
|
|
667
|
+
"repo.aria": "HsiangNianian/dsh-auto-continue の GitHub を新しいタブで開く",
|
|
668
|
+
"category.general.title": "一般",
|
|
669
|
+
"category.general.description": "自動復旧、表示、通知を設定します。",
|
|
670
|
+
"category.recovery.title": "再試行の方針",
|
|
671
|
+
"category.recovery.description": "待ち時間、再試行の上限、エラーの分類を設定します。",
|
|
672
|
+
"category.startup.title": "起動時の復旧",
|
|
673
|
+
"category.startup.description": "DSH の再起動時に、最近中断されたセッションを探します。",
|
|
674
|
+
"category.prompts.title": "続行テキスト",
|
|
675
|
+
"category.prompts.description": "空欄にすると、現在の DSH の言語の組み込みテキストを使います。",
|
|
676
|
+
"category.safety.title": "安全対策",
|
|
677
|
+
"category.safety.description": "ツール操作の重複を防ぎ、進まないループを断ち切ります。",
|
|
678
|
+
"category.status.title": "状態とログ",
|
|
679
|
+
"category.status.description": "アクティビティと一時停止中のセッションを表示します。",
|
|
680
|
+
"field.paused": "自動続行を全体で有効にする",
|
|
681
|
+
"field.showComposerToggle": "入力欄に自動続行スイッチを表示",
|
|
682
|
+
"field.showComposerToggleHint": "既定で表示されます。非表示にしてもセッションのモードは変わりません。「保存」で反映されます。",
|
|
683
|
+
"field.usePluginSource": "プラグインを送信元として続行メッセージを送る",
|
|
684
|
+
"field.usePluginSourceHint": "既定ではオフで、従来どおりユーザーメッセージとして送ります。オンにすると、このプラグインからのメッセージとして識別されます。「保存」で反映されます。",
|
|
685
|
+
"composer.label": "自動続行",
|
|
686
|
+
"composer.mode": "自動続行モード",
|
|
687
|
+
"composer.scope": "このセッションだけに適用されます。すぐに保存され、タブ間で同期されます。オフにすると、ここではループガードによる中断も止まります。",
|
|
688
|
+
"composer.default": "既定に従う",
|
|
689
|
+
"composer.off": "オフ",
|
|
690
|
+
"composer.recover": "復旧のみ",
|
|
691
|
+
"composer.loop": "自律ループ",
|
|
692
|
+
"composer.paused": "全体で一時停止中",
|
|
693
|
+
"composer.unavailable": "ホストを待機中",
|
|
694
|
+
"composer.reconnecting": "ホストに再接続しています… 最後に確認した設定を表示しています。再接続すると変更できるようになります。",
|
|
695
|
+
"composer.saving": "自動続行の設定を保存しています…",
|
|
696
|
+
"composer.saveFailed": "保存できませんでした。もう一度お試しください。",
|
|
697
|
+
"field.pausedHint": "中断されたセッションを再開します。オフにして保存すると、全体で復旧を止め、待機中の続行を取り消します。ループガードは動き続けるので、自動の中断も止めたい場合は別にオフにしてください。",
|
|
698
|
+
"field.continueText": "続行テキスト",
|
|
699
|
+
"field.continueTextHint": "中断後に自動で送るメッセージです。",
|
|
700
|
+
"default.continueText": LOCALIZED_TEXT_DEFAULTS.ja.continueText,
|
|
701
|
+
"field.continueTextMaxTokens": "続行テキスト(出力上限)",
|
|
702
|
+
"field.continueTextMaxTokensHint": "出力トークンの上限に達したときに送るテキストです。プレースホルダーは続行テキストと同じです。",
|
|
703
|
+
"default.continueTextMaxTokens": LOCALIZED_TEXT_DEFAULTS.ja.continueTextMaxTokens,
|
|
704
|
+
"field.resumeSilentTurns": "無出力のターンを再開",
|
|
705
|
+
"field.resumeSilentTurnsHint": "モデルが動いていたのに目に見える出力がなかったターンを再開します。何もしないターン、画像、拡張ブロックは無出力として扱いません。クールダウンと再試行の上限は引き続き適用されます。",
|
|
706
|
+
"field.resumeSubagentSessions": "サブエージェントのセッションを再開",
|
|
707
|
+
"field.resumeSubagentSessionsHint": "メインの会話で自動続行が有効なとき、中断されたサブエージェントのセッションも自動で続行します。サブエージェントは自律ループを始めず、ループガードによる再起動もされず、起動時のスキャンでも復旧されません。既定ではオフです。DSH がサブエージェントをすでに破棄している場合は、ホストのサブエージェントサービスを通じて保存済みのセッションからコールド再開します。ホストが再開できない場合は失敗をメインの会話に引き渡し、その会話が自分で復旧している間は何もしません。",
|
|
708
|
+
"field.resumeCompletedTurns": "セッションの既定モード",
|
|
709
|
+
"field.resumeCompletedTurnsHint": "個別のモードを持たないセッションに適用されます。「復旧のみ」は中断と無出力のターンだけを再開し、「自律ループ」は正常に完了したターンの後も続けます。無出力や失敗のターンは引き続き連続再試行の上限に数えられます。",
|
|
710
|
+
"field.resumeInterruptedChildren": "再起動後に子セッションを起こす",
|
|
711
|
+
"field.resumeInterruptedChildrenHint": "DSH の再起動後、中断されたサブエージェントやチームメンバーのセッションの一覧をルートセッションに送り、作業を続けるか締めくくれるようにします。既定ではオフです。手動で止めたルートセッションは止まったままです。",
|
|
712
|
+
"field.resumeGoals": "再起動で解除されたゴールを再設定",
|
|
713
|
+
"field.resumeGoalsHint": "セッションを自動続行するとき、ホストが解除した active のゴールを再設定し、続行ラウンドが再び動くようにします。あなたの代わりに許可を出すことになるため、既定ではオフです。",
|
|
714
|
+
"field.resumePausedGoals": "一時停止したゴールを再開",
|
|
715
|
+
"field.resumePausedGoalsHint": "手動で一時停止したゴールも再開します(「再起動で解除されたゴールを再設定」もオンにする必要があります)。一時停止はふつう人が意図して決めたことなので、必要な場合以外はオフのままにしてください。",
|
|
716
|
+
"field.pauseWhenOffline": "オフラインの間は一時停止",
|
|
717
|
+
"field.pauseWhenOfflineHint": "ネットワークエラー(ホストに到達できない、DNS の失敗、通信のタイムアウト)を再試行する前に、ホストがオンラインか確認します。オフラインの間は連続試行の回数を消費せずに待ち、ネットワークが戻ったら続けます。HTTP(S)_PROXY を設定している場合は、ネットワークインターフェースだけを確認します。",
|
|
718
|
+
"field.offlineCheckMs": "オフラインの再確認間隔(ms)",
|
|
719
|
+
"field.offlineCheckMsHint": "保留中の再試行がネットワークを確認し直す間隔です。最小 1000。",
|
|
720
|
+
"field.loopMaxIterations": "自律ループのラウンド上限",
|
|
721
|
+
"field.loopMaxIterationsHint": "セッションごとの自律ラウンドの最大数です。0 は無制限です。上限に達するとループが止まり、一度だけ通知します。メッセージを送るかループをもう一度オンにすると、数え直します。",
|
|
722
|
+
"field.loopStopMarker": "自律ループの完了マーカー",
|
|
723
|
+
"field.loopStopMarkerHint": "完了したターンがこの文字列を単独の行に書いたら、自律ループを止めます(空欄なら止めません)。文中やコードブロック内で引用されただけのマーカーは数えません。モデルは、続行テキストの指示に従って、作業が終わったと判断したときにマーカーをそのまま書きます。",
|
|
724
|
+
"field.continueTextLoop": "続行テキスト(自律ループ)",
|
|
725
|
+
"field.continueTextLoopHint": "自律ループで続行するたびに送るテキストです。",
|
|
726
|
+
"default.continueTextLoop": LOCALIZED_TEXT_DEFAULTS.ja.continueTextLoop,
|
|
727
|
+
"field.continueTextSilent": "続行テキスト(無出力のターン)",
|
|
728
|
+
"field.continueTextSilentHint": "ターンが推論だけで終わったときに送るテキストです。プレースホルダーは続行テキストと同じです。",
|
|
729
|
+
"default.continueTextSilent": LOCALIZED_TEXT_DEFAULTS.ja.continueTextSilent,
|
|
730
|
+
"field.continueTextInterrupted": "続行テキスト(ホスト再起動後)",
|
|
731
|
+
"field.continueTextInterruptedHint": "DSH の再起動後に、中断されたセッションを再開するときに送るテキストです。",
|
|
732
|
+
"default.continueTextInterrupted": LOCALIZED_TEXT_DEFAULTS.ja.continueTextInterrupted,
|
|
733
|
+
"field.continueTextQuestion": "続行テキスト(未回答の質問)",
|
|
734
|
+
"field.continueTextQuestionHint": "中断されたステップがユーザーへのまだ答えのない質問(ask_user_question)だったときに、ガードの注記なしで代わりに送ります。モデルはもう一度質問して答えを待ちます。",
|
|
735
|
+
"default.continueTextQuestion": LOCALIZED_TEXT_DEFAULTS.ja.continueTextQuestion,
|
|
736
|
+
"field.guardTools": "冪等性ガード",
|
|
737
|
+
"field.guardToolsHint": "再開する前に、結果が未確認のツールを確かめるか、すでに成功した操作を飛ばすようモデルに伝えます。",
|
|
738
|
+
"field.guardPendingText": "ガードテキスト(結果未確認)",
|
|
739
|
+
"field.guardPendingTextHint": "最後のツールが途中までしか実行されていない可能性があるときに追加します。{tool} プレースホルダーが使えます。",
|
|
740
|
+
"default.guardPendingText": LOCALIZED_TEXT_DEFAULTS.ja.guardPendingText,
|
|
741
|
+
"field.guardDoneText": "ガードテキスト(ツール成功)",
|
|
742
|
+
"field.guardDoneTextHint": "最後のツールの完了が確認できたときに追加します。{tool} と {result}(結果の抜粋)が使えます。",
|
|
743
|
+
"default.guardDoneText": LOCALIZED_TEXT_DEFAULTS.ja.guardDoneText,
|
|
744
|
+
"field.graceMs": "猶予時間(ms)",
|
|
745
|
+
"field.graceMsHint": "中断の後に待つ時間です。その間にホストが自力で復旧したら取り消します。",
|
|
746
|
+
"field.cooldownMs": "クールダウン(ms)",
|
|
747
|
+
"field.cooldownMsHint": "同じセッションで復旧を試みる最小の間隔です。クールダウン中の失敗は終わるまで待ってから猶予時間に入ります。正常に完了した後の自律ループの続行は対象外です。",
|
|
748
|
+
"field.maxConsecutive": "連続試行の上限",
|
|
749
|
+
"field.maxConsecutiveHint": "復旧を連続で試みる回数の上限です。ユーザーの介入か、目に見える出力のある成功したターンでリセットされます。正常に完了した後の自律ループの続行は数えません。",
|
|
750
|
+
"field.scanOnBoot": "ホスト起動時にスキャン",
|
|
751
|
+
"field.scanOnBootHint": "DSH の起動時に、スキャン範囲内で最近中断されたセッションを探して再開します。いま開いていないセッションも対象です。",
|
|
752
|
+
"field.scanLimit": "スキャン件数の上限",
|
|
753
|
+
"field.scanLimitHint": "1 回のスキャンで復旧する対象セッションの最大数です。最近アクティブだったものから順に処理します。",
|
|
754
|
+
"field.freshMs": "スキャン範囲(ms)",
|
|
755
|
+
"field.freshMsHint": "この時間内に中断されたセッションを再開します。起動時のスキャンもこの時間が過ぎると終わります。",
|
|
756
|
+
"field.verbose": "詳細ログ",
|
|
757
|
+
"field.verboseHint": "自動続行の動作を [auto-continue] の接頭辞付きで DSH のログに記録します。CLI では DSH を実行しているターミナルで確認できます。",
|
|
758
|
+
"field.classify": "エラーを分類",
|
|
759
|
+
"field.classifyHint": "一時的な失敗(ネットワーク、タイムアウト、5xx など)だけを自動で再開します。認証、残高、モデルのエラーは飛ばして通知します。",
|
|
760
|
+
"field.retryableErrorPatterns": "再試行するエラー(カスタム)",
|
|
761
|
+
"field.retryableErrorPatternsHint": "具体的な文字列を 1 行に 1 つ入力します。大文字と小文字は区別しません。エラーコード、HTTP ステータス、メッセージのどれかに一致すると再試行します。範囲の広い文字列だと、ふだん飛ばす認証や残高のエラーまで再試行することがあります。",
|
|
762
|
+
"field.retryableErrorPatternsPlaceholder": "例: Upstream rejected the request as invalid",
|
|
763
|
+
"field.backoffFactor": "バックオフ倍率",
|
|
764
|
+
"field.backoffFactorHint": "連続して失敗するたびにクールダウンに掛ける倍率です(2 なら 20s→40s→80s…)。",
|
|
765
|
+
"field.backoffMaxMs": "バックオフの上限(ms)",
|
|
766
|
+
"field.backoffMaxMsHint": "連続して失敗しても、クールダウンはこの値より長くなりません。",
|
|
767
|
+
"field.notify": "ブラウザ通知",
|
|
768
|
+
"field.notifyHint": "オンにすると、自動続行の動作と設定の保存成功を通知します。オフにして保存したときも確認の通知を送ります。初めてオンにするときはブラウザ通知を許可してください。",
|
|
769
|
+
"stats.title": "今日の統計",
|
|
770
|
+
"stats.sent": "自動続行",
|
|
771
|
+
"stats.skipped": "スキップ(恒久的なエラー)",
|
|
772
|
+
"stats.recovered": "復旧",
|
|
773
|
+
"stats.failed": "続行後に失敗",
|
|
774
|
+
"stats.gaveUp": "断念(上限)",
|
|
775
|
+
"stats.looped": "断ち切ったループ",
|
|
776
|
+
"field.loopGuard": "ループガード",
|
|
777
|
+
"field.loopGuardHint": "ツール呼び出しのない短い文が続く、同じテキストを繰り返す、同じツール呼び出しを繰り返す、のいずれかが下のしきい値に達したらターンを中断し、ループテキストで再開します。",
|
|
778
|
+
"field.loopShortChars": "短い文の最大文字数",
|
|
779
|
+
"field.loopShortCharsHint": "これより短いモデルのメッセージを短い文として数えます。",
|
|
780
|
+
"field.loopWindowMs": "短い文の判定期間(ms)",
|
|
781
|
+
"field.loopWindowMsHint": "この期間内の連続した短い文だけを数えます。",
|
|
782
|
+
"field.loopShortCount": "短い文のしきい値",
|
|
783
|
+
"field.loopShortCountHint": "判定期間内にツール呼び出しなしで短い文がいくつ続いたらループガードを発動するかです。",
|
|
784
|
+
"field.loopRepeatText": "同一メッセージの回数",
|
|
785
|
+
"field.loopRepeatTextHint": "長さに関係なく、同じメッセージがこの回数続いたら中断します。1 つのストリーミングメッセージ内で繰り返される段落にも適用されます。",
|
|
786
|
+
"field.loopToolRepeat": "同一ツールの繰り返し回数",
|
|
787
|
+
"field.loopToolRepeatHint": "ツール、引数、結果がすべて同じ呼び出しがこの回数続いたら中断します。",
|
|
788
|
+
"field.loopText": "ループテキスト",
|
|
789
|
+
"field.loopTextHint": "ループガードがターンを再開した後に送るテキストです。{tool} プレースホルダーが使えます。",
|
|
790
|
+
"default.loopText": LOCALIZED_TEXT_DEFAULTS.ja.loopText,
|
|
791
|
+
"stats.byCode": "エラーコード別",
|
|
792
|
+
"stats.empty": "今日は自動続行の動作がありません。",
|
|
793
|
+
"stats.reset": "リセット",
|
|
794
|
+
"recovery.title": "最近の復旧の試み",
|
|
795
|
+
"recovery.hint": "この DSH インスタンスでの直近 20 回の復旧の試みを、セッションごとにまとめています。プラグインの再起動で消えます。通常の自律ループの続行は含みません。",
|
|
796
|
+
"recovery.empty": "まだ復旧の試みはありません。",
|
|
797
|
+
"recovery.count": "期間内の試行回数",
|
|
798
|
+
"recovery.consecutive": "最後の送信時の連続回数",
|
|
799
|
+
"recovery.latest": "直近の理由",
|
|
800
|
+
"recovery.reason.error": "リクエストエラー",
|
|
801
|
+
"recovery.reason.max-tokens": "出力上限",
|
|
802
|
+
"recovery.reason.silent": "目に見える出力なし",
|
|
803
|
+
"recovery.reason.interrupted": "ホスト再起動による中断",
|
|
804
|
+
"recovery.reason.loop-guard": "ループガード",
|
|
805
|
+
"recovery.reason.manual": "手動で再開",
|
|
806
|
+
"pause.title": "一時停止中のセッション",
|
|
807
|
+
"pause.none": "一時停止中のセッションはありません。",
|
|
808
|
+
"pause.clearAll": "すべて解除",
|
|
809
|
+
"pause.unpause": "再開",
|
|
810
|
+
"pause.minutes": "分",
|
|
811
|
+
"chrome.collapse": "設定を隠す",
|
|
812
|
+
"chrome.expand": "設定を表示",
|
|
813
|
+
"chrome.unsaved": "未保存",
|
|
814
|
+
"chrome.readOnly": "設定は読み取り専用です。",
|
|
815
|
+
"chrome.unavailable": "設定を利用できません。",
|
|
816
|
+
"chrome.saveFailed": "保存できませんでした。編集内容は残っているので、確認してからもう一度お試しください。",
|
|
817
|
+
"chrome.discard": "破棄",
|
|
818
|
+
"chrome.saving": "保存中…",
|
|
819
|
+
"chrome.save": "保存",
|
|
820
|
+
"chrome.overridden": "変更あり",
|
|
821
|
+
"chrome.reset": "既定に戻す",
|
|
822
|
+
"chrome.invalidNumber": "数値を入力するか、空欄にして既定値を使ってください。",
|
|
823
|
+
"chrome.inherit": "継承",
|
|
824
|
+
"chrome.on": "オン",
|
|
825
|
+
"chrome.off": "オフ"
|
|
635
826
|
};
|
|
636
827
|
|
|
637
828
|
// src/client/settings-card.tsx
|
|
@@ -1245,7 +1436,7 @@ function showSettingsNotification(notice, locale, permission) {
|
|
|
1245
1436
|
}
|
|
1246
1437
|
try {
|
|
1247
1438
|
const resolved = resolveLocale(locale);
|
|
1248
|
-
const copy = resolved === "zh" ? zh : resolved === "ru" ? ru : en;
|
|
1439
|
+
const copy = resolved === "zh" ? zh : resolved === "ru" ? ru : resolved === "ja" ? ja : en;
|
|
1249
1440
|
const notification = new Notification(copy["notification.title"], { body: copy[message] });
|
|
1250
1441
|
notification.onclick = () => {
|
|
1251
1442
|
try {
|
|
@@ -1299,6 +1490,7 @@ var AutoContinueSettingsCardController = class {
|
|
|
1299
1490
|
booleanField("pauseWhenOffline"),
|
|
1300
1491
|
numberField("offlineCheckMs", 1e3),
|
|
1301
1492
|
numberField("loopMaxIterations", 0),
|
|
1493
|
+
textField("loopStopMarker"),
|
|
1302
1494
|
textField("continueTextLoop"),
|
|
1303
1495
|
textField("continueTextSilent"),
|
|
1304
1496
|
textField("continueTextInterrupted"),
|
|
@@ -1349,6 +1541,7 @@ var AutoContinueSettingsCardController = class {
|
|
|
1349
1541
|
pauseWhenOffline: this.form.field("pauseWhenOffline"),
|
|
1350
1542
|
offlineCheckMs: this.form.field("offlineCheckMs"),
|
|
1351
1543
|
loopMaxIterations: this.form.field("loopMaxIterations"),
|
|
1544
|
+
loopStopMarker: this.form.field("loopStopMarker"),
|
|
1352
1545
|
continueTextLoop: this.form.field("continueTextLoop"),
|
|
1353
1546
|
continueTextSilent: this.form.field("continueTextSilent"),
|
|
1354
1547
|
continueTextInterrupted: this.form.field("continueTextInterrupted"),
|
|
@@ -1442,7 +1635,7 @@ function AutoContinueSettingsPage(props) {
|
|
|
1442
1635
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutoContinueSettingsCard, { ...props }) });
|
|
1443
1636
|
}
|
|
1444
1637
|
var groups = [
|
|
1445
|
-
{ id: "general", fields: ["paused", "showComposerToggle", "usePluginSource", "resumeSilentTurns", "resumeSubagentSessions", "resumeCompletedTurns", "loopMaxIterations", "notify"] },
|
|
1638
|
+
{ id: "general", fields: ["paused", "showComposerToggle", "usePluginSource", "resumeSilentTurns", "resumeSubagentSessions", "resumeCompletedTurns", "loopMaxIterations", "loopStopMarker", "notify"] },
|
|
1446
1639
|
{ id: "recovery", fields: ["graceMs", "cooldownMs", "maxConsecutive", "classify", "retryableErrorPatterns", "backoffFactor", "backoffMaxMs", "pauseWhenOffline", "offlineCheckMs", "resumeGoals", "resumePausedGoals"] },
|
|
1447
1640
|
{ id: "startup", fields: ["scanOnBoot", "resumeInterruptedChildren", "scanLimit", "freshMs"] },
|
|
1448
1641
|
{ id: "prompts", fields: ["continueText", "continueTextMaxTokens", "continueTextSilent", "continueTextInterrupted", "continueTextQuestion", "continueTextLoop", "guardPendingText", "guardDoneText", "loopText"] },
|
|
@@ -2012,6 +2205,7 @@ var inject = ["slots", "locale"];
|
|
|
2012
2205
|
function apply(ctx) {
|
|
2013
2206
|
ctx.effect(() => ctx.locale.register(NS, { zh, en }), "auto-continue: dictionaries");
|
|
2014
2207
|
ctx.effect(() => ctx.locale.register(NS, "ru", ru), "auto-continue: russian dictionary");
|
|
2208
|
+
ctx.effect(() => ctx.locale.register(NS, "ja", ja), "auto-continue: japanese dictionary");
|
|
2015
2209
|
ctx.effect(() => startBridge(), "auto-continue: host bridge");
|
|
2016
2210
|
ctx.inject(["settingsScope"], (settingsCtx) => {
|
|
2017
2211
|
mountSettings(settingsCtx, settingsCtx.settingsScope.bind({ namespace: SETTINGS_NS }));
|