dsh-think-translate 1.2.13 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +177 -85
- package/README.es.md +177 -85
- package/README.fr.md +177 -85
- package/README.ja.md +177 -85
- package/README.ko.md +177 -85
- package/README.md +217 -127
- package/README.pt.md +217 -0
- package/README.ru.md +177 -85
- package/README.zh-CN.md +229 -125
- package/docs/first-release-evidence.json +25 -0
- package/docs/official-translation-comparison.md +35 -0
- package/lib/client.js +205 -21
- package/lib/index.js +134 -27
- package/lib/local-model.js +89 -0
- package/lib/ollama.js +11 -5
- package/package.json +80 -78
- package/screenshots.json +5 -0
- package/demo/demo.gif +0 -0
- package/demo/demo2.gif +0 -0
package/README.md
CHANGED
|
@@ -1,127 +1,217 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<img src="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/hero.en.png?v=1.2.16" alt="dsh-think-translate — AI thinking, in your language" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<b>Display-layer translation for DeepSeek Harness.</b><br />
|
|
7
|
+
Read the reasoning, follow the tasks, and understand the answers. Originals are preserved; translations stay out of model context.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-mit.en.svg?v=1.2.16" alt="MIT License" />
|
|
12
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-local.en.svg?v=1.2.16" alt="Local Ollama" />
|
|
13
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-original.en.svg?v=1.2.16" alt="Originals preserved" />
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="README.zh-CN.md">中文</a> · <b>English</b> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a> · <a href="README.es.md">Español</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.ru.md">Русский</a> · <a href="README.pt.md">Português</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="#quick-start"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-quick-start.en.svg?v=1.2.16" alt="Quick install" height="24" /></a> · <a href="#demo"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-demo.en.svg?v=1.2.16" alt="Live demos" height="24" /></a> · <a href="#features"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-features.en.svg?v=1.2.16" alt="Features" height="24" /></a> · <a href="#comparison"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-comparison.en.svg?v=1.2.16" alt="Official comparison" height="24" /></a> · <a href="#faq"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-faq.en.svg?v=1.2.16" alt="FAQ" height="24" /></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
<a id="demo"></a>
|
|
27
|
+
## See thinking unfold
|
|
28
|
+
|
|
29
|
+
<table>
|
|
30
|
+
<tr>
|
|
31
|
+
<td width="50%" align="center" valign="bottom">
|
|
32
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/demo/demo.gif?v=1.2.16" alt="Demo 1 · Reasoning and answers" width="100%" />
|
|
33
|
+
</td>
|
|
34
|
+
<td width="50%" align="center" valign="bottom">
|
|
35
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/demo/demo2.gif?v=1.2.16" alt="Demo 2 · More live operations" width="100%" />
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td align="center" valign="top"><sub>Demo 1 · Reasoning and answers</sub></td>
|
|
40
|
+
<td align="center" valign="top"><sub>Demo 2 · More live operations</sub></td>
|
|
41
|
+
</tr>
|
|
42
|
+
</table>
|
|
43
|
+
|
|
44
|
+
<a id="comparison"></a>
|
|
45
|
+
## Comparison with the official translation plugin
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/translation-comparison.en.png?v=1.2.16" alt="Comparison with the official translation plugin" width="100%" />
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
Enable either this plugin or the official reasoning translator. Both take over the reasoning interface.
|
|
52
|
+
|
|
53
|
+
<a id="quick-start"></a>
|
|
54
|
+
## One command to get started
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
dsh plugin --profile web add dsh-think-translate
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
After installation, fully restart DSH Web. Open **Settings → Think Translation**, then choose the target language and providers.
|
|
61
|
+
|
|
62
|
+
<details>
|
|
63
|
+
<summary><b>GitHub installation, updates and other methods</b></summary>
|
|
64
|
+
|
|
65
|
+
Install from GitHub:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
dsh plugin --profile web add github:UncleK/dsh-think-translate
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Update from npm:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
dsh plugin --profile web add dsh-think-translate@latest
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Fully restart DSH after installing or updating. For manual deployment, link the package into the profile and add its entry to `cordis.patch.yml`; the commands above are recommended for everyday use.
|
|
78
|
+
|
|
79
|
+
</details>
|
|
80
|
+
|
|
81
|
+
<a id="features"></a>
|
|
82
|
+
## More than reasoning to understand
|
|
83
|
+
|
|
84
|
+
<table>
|
|
85
|
+
<tr>
|
|
86
|
+
<td width="50%" valign="top">
|
|
87
|
+
<h3>Reasoning, as it happens</h3>
|
|
88
|
+
<p>Pre-translate all, lazy-load history, or translate only when expanded</p>
|
|
89
|
+
</td>
|
|
90
|
+
<td width="50%" valign="top">
|
|
91
|
+
<h3>Tasks and answers, together</h3>
|
|
92
|
+
<p>Reasoning, task cards and composer task lists; optional answers and auto-review denial reasons</p>
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
<tr>
|
|
96
|
+
<td width="50%" valign="top">
|
|
97
|
+
<h3>Understand review decisions</h3>
|
|
98
|
+
<p>When auto-review rejects a tool call, its reason is translated alongside the original. The existing decision buttons remain available.</p>
|
|
99
|
+
</td>
|
|
100
|
+
<td width="50%" valign="top">
|
|
101
|
+
<h3>Preserve originals and code</h3>
|
|
102
|
+
<p>Originals preserved; translations stay out of model context. Reuses Markdown rendering; protects code, paths and commands before translation.</p>
|
|
103
|
+
</td>
|
|
104
|
+
</tr>
|
|
105
|
+
<tr>
|
|
106
|
+
<td width="50%" valign="top">
|
|
107
|
+
<h3>Local models, loaded on demand</h3>
|
|
108
|
+
<p>Manual release, release when unchecked, idle auto-release; reloads on the next translation</p>
|
|
109
|
+
</td>
|
|
110
|
+
<td width="50%" valign="top">
|
|
111
|
+
<h3>Providers in your preferred order</h3>
|
|
112
|
+
<p>Automatic fallback in enabled order; clearly wrong-language output tries the next provider; retry after cooldown</p>
|
|
113
|
+
</td>
|
|
114
|
+
</tr>
|
|
115
|
+
</table>
|
|
116
|
+
|
|
117
|
+
### Connect providers you already use
|
|
118
|
+
|
|
119
|
+
**Ollama · Google · Bing · OpenAI · Anthropic Messages API**
|
|
120
|
+
|
|
121
|
+
Discover providers already configured in DSH without entering endpoints and keys again. Test each provider separately; list order controls the order of attempts.
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Your first choice → next enabled provider → … → originals if all fail
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
<details>
|
|
128
|
+
<summary><b>Custom endpoints, credentials and recovery</b></summary>
|
|
129
|
+
|
|
130
|
+
- Custom endpoints support OpenAI-compatible `/v1/chat/completions` and the native Anthropic Messages API.
|
|
131
|
+
- Discovery reads the current DSH profile and overrides. Rescan and add discovered providers to the translation chain.
|
|
132
|
+
- An `apiKeyEnv` key is resolved at request time; resolved credentials are never written back to plugin configuration.
|
|
133
|
+
- Failures cool down in host memory for 30 seconds, then subsequent translation requests can retry. Clearly wrong-language results try the next provider.
|
|
134
|
+
- Language detection skips text already recognized as the target language; explicit provider tests still make a real request.
|
|
135
|
+
|
|
136
|
+
</details>
|
|
137
|
+
|
|
138
|
+
### Local translation models: load and release on demand
|
|
139
|
+
|
|
140
|
+
| Your action | Plugin behavior |
|
|
141
|
+
|---|---|
|
|
142
|
+
| Translate or test | Start the service and load the selected model on demand |
|
|
143
|
+
| Release model memory | Wait for active translations, then unload; preserve files, switches and order |
|
|
144
|
+
| Uncheck the local provider | Disable it and unload the selected model |
|
|
145
|
+
| Re-enable it or open settings | No preload; load on the next actual translation |
|
|
146
|
+
| Set idle release | 5 minutes by default; choose 1 / 5 / 10 / 30 / 60 minutes or off |
|
|
147
|
+
|
|
148
|
+
Idle timing applies from the next use. Ollama tracks the selected model; global environment variables are unchanged. Missing software or models are installed or downloaded only after you click the preparation button, with progress shown.
|
|
149
|
+
|
|
150
|
+
<a id="languages"></a>
|
|
151
|
+
### Language settings that follow you
|
|
152
|
+
|
|
153
|
+
中文 · English · 日本語 · 한국어 · Español · Français · Deutsch · Русский · Português
|
|
154
|
+
|
|
155
|
+
Nine target languages, settings translations and task labels, including Portuguese. Your selection survives a page refresh.
|
|
156
|
+
|
|
157
|
+
<a id="faq"></a>
|
|
158
|
+
## Answers to common questions
|
|
159
|
+
|
|
160
|
+
<details>
|
|
161
|
+
<summary><b>No translation entry after installing or updating</b></summary>
|
|
162
|
+
|
|
163
|
+
Fully restart `dsh web`. The client module graph is assembled at process start; refreshing the page alone may not load a new plugin. The settings footer shows the installed package version.
|
|
164
|
+
|
|
165
|
+
</details>
|
|
166
|
+
|
|
167
|
+
<details>
|
|
168
|
+
<summary><b>The local model list is empty</b></summary>
|
|
169
|
+
|
|
170
|
+
Check `ollama list` or `/api/tags`, the active model directory, and the service’s `OLLAMA_MODELS`. Existing model files do not need to be downloaded again.
|
|
171
|
+
|
|
172
|
+
</details>
|
|
173
|
+
|
|
174
|
+
<details>
|
|
175
|
+
<summary><b>Source startup reports client bundles not found after a DSH update</b></summary>
|
|
176
|
+
|
|
177
|
+
Run `pnpm run build` in the DeepSeek Harness repository, then restart DSH Web.
|
|
178
|
+
|
|
179
|
+
</details>
|
|
180
|
+
|
|
181
|
+
<details>
|
|
182
|
+
<summary><b>Does a translation failure affect the conversation?</b></summary>
|
|
183
|
+
|
|
184
|
+
When all enabled providers fail, the original remains. Test individual providers and inspect the latest error in settings. Translation requests can retry after cooldown.
|
|
185
|
+
|
|
186
|
+
</details>
|
|
187
|
+
|
|
188
|
+
<details>
|
|
189
|
+
<summary><b>Recent changes and compatibility</b></summary>
|
|
190
|
+
|
|
191
|
+
**1.2.16** adds Portuguese throughout the translation target and UI, refreshes all nine READMEs and localized comparison images, and declares three marketplace images.
|
|
192
|
+
|
|
193
|
+
**1.2.15** adds local model memory management and adapts to DSH `0.2.2-alpha.2` image rendering, grouped reasoning collapse and original text selection.
|
|
194
|
+
|
|
195
|
+
**1.2.13** adds auto-review denial-reason translation. Thanks to [llg1634](https://github.com/llg1634) for the report, initial patch and testing.
|
|
196
|
+
|
|
197
|
+
Earlier versions and details: [GitHub Releases](https://github.com/UncleK/dsh-think-translate/releases).
|
|
198
|
+
|
|
199
|
+
</details>
|
|
200
|
+
|
|
201
|
+
<details>
|
|
202
|
+
<summary><b>Development and internals</b></summary>
|
|
203
|
+
|
|
204
|
+
- `lib/index.js`: host routes, providers, configuration, memory cache and local model lifecycle.
|
|
205
|
+
- `lib/client.js`: settings, display-layer translation, streaming batches and browser cache.
|
|
206
|
+
- `lib/config.json`: runtime configuration, excluded from Git and npm.
|
|
207
|
+
- No extra build step: source files are the deliverable. Restart DSH after changing host code.
|
|
208
|
+
- Run checks with `npm test`. Discovery and credential handling are documented in the [maintenance notes](https://github.com/UncleK/dsh-think-translate/blob/main/docs/maintenance-notes.md).
|
|
209
|
+
|
|
210
|
+
</details>
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
<p align="center">
|
|
215
|
+
<b>dsh-think-translate</b><br />
|
|
216
|
+
<a href="https://github.com/UncleK/dsh-think-translate/issues">Report an issue</a> · <a href="https://github.com/UncleK/dsh-think-translate/releases">Releases</a> · <a href="https://github.com/UncleK/dsh-think-translate/blob/main/LICENSE">MIT License</a>
|
|
217
|
+
</p>
|
package/README.pt.md
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/hero.pt.png?v=1.2.16" alt="dsh-think-translate — O pensamento da IA, no seu idioma" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<b>Tradução da camada de exibição do DeepSeek Harness.</b><br />
|
|
7
|
+
Leia o raciocínio, acompanhe as tarefas e entenda as respostas. Os originais são preservados; as traduções ficam fora do contexto do modelo.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-mit.pt.svg?v=1.2.16" alt="Licença MIT" />
|
|
12
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-local.pt.svg?v=1.2.16" alt="Ollama local" />
|
|
13
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/badge-original.pt.svg?v=1.2.16" alt="Originais preservados" />
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="README.zh-CN.md">中文</a> · <a href="README.md">English</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a> · <a href="README.es.md">Español</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.ru.md">Русский</a> · <b>Português</b>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="#quick-start"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-quick-start.pt.svg?v=1.2.16" alt="Instalação" height="24" /></a> · <a href="#demo"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-demo.pt.svg?v=1.2.16" alt="Demonstrações" height="24" /></a> · <a href="#features"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-features.pt.svg?v=1.2.16" alt="Recursos" height="24" /></a> · <a href="#comparison"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-comparison.pt.svg?v=1.2.16" alt="Comparação" height="24" /></a> · <a href="#faq"><img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/nav-faq.pt.svg?v=1.2.16" alt="Perguntas" height="24" /></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
<a id="demo"></a>
|
|
27
|
+
## Veja o pensamento acontecer
|
|
28
|
+
|
|
29
|
+
<table>
|
|
30
|
+
<tr>
|
|
31
|
+
<td width="50%" align="center" valign="bottom">
|
|
32
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/demo/demo.gif?v=1.2.16" alt="Demo 1 · Raciocínio e respostas" width="100%" />
|
|
33
|
+
</td>
|
|
34
|
+
<td width="50%" align="center" valign="bottom">
|
|
35
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/demo/demo2.gif?v=1.2.16" alt="Demo 2 · Mais operações" width="100%" />
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td align="center" valign="top"><sub>Demo 1 · Raciocínio e respostas</sub></td>
|
|
40
|
+
<td align="center" valign="top"><sub>Demo 2 · Mais operações</sub></td>
|
|
41
|
+
</tr>
|
|
42
|
+
</table>
|
|
43
|
+
|
|
44
|
+
<a id="comparison"></a>
|
|
45
|
+
## Comparação com o plugin oficial de tradução
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<img src="https://raw.githubusercontent.com/UncleK/dsh-think-translate/main/docs/assets/translation-comparison.pt.png?v=1.2.16" alt="Comparação com o plugin oficial de tradução" width="100%" />
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
Ative este plugin ou o tradutor oficial de raciocínio. Ambos controlam a interface de raciocínio.
|
|
52
|
+
|
|
53
|
+
<a id="quick-start"></a>
|
|
54
|
+
## Um comando para começar
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
dsh plugin --profile web add dsh-think-translate
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Após instalar, reinicie completamente o DSH Web. Abra **Configurações → Tradução do pensamento** e escolha o idioma de destino e os provedores.
|
|
61
|
+
|
|
62
|
+
<details>
|
|
63
|
+
<summary><b>Instalação pelo GitHub, atualizações e outros métodos</b></summary>
|
|
64
|
+
|
|
65
|
+
Instalar pelo GitHub:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
dsh plugin --profile web add github:UncleK/dsh-think-translate
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Atualizar pelo npm:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
dsh plugin --profile web add dsh-think-translate@latest
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Reinicie o DSH completamente após instalar ou atualizar. Na implantação manual, vincule o pacote ao perfil e adicione sua entrada em `cordis.patch.yml`. Para uso normal, recomendamos os comandos acima.
|
|
78
|
+
|
|
79
|
+
</details>
|
|
80
|
+
|
|
81
|
+
<a id="features"></a>
|
|
82
|
+
## Há mais que raciocínio para entender
|
|
83
|
+
|
|
84
|
+
<table>
|
|
85
|
+
<tr>
|
|
86
|
+
<td width="50%" valign="top">
|
|
87
|
+
<h3>Raciocínio em tempo real</h3>
|
|
88
|
+
<p>Pré-traduzir tudo, carregar histórico sob demanda ou traduzir apenas ao expandir</p>
|
|
89
|
+
</td>
|
|
90
|
+
<td width="50%" valign="top">
|
|
91
|
+
<h3>Tarefas e respostas juntas</h3>
|
|
92
|
+
<p>Raciocínio, cartões e lista de tarefas da área de entrada; respostas e motivos de recusa da revisão automática opcionais</p>
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
<tr>
|
|
96
|
+
<td width="50%" valign="top">
|
|
97
|
+
<h3>Entenda as decisões de revisão</h3>
|
|
98
|
+
<p>Quando a revisão automática recusa uma chamada de ferramenta, o motivo aparece traduzido ao lado do original. Os botões de decisão existentes continuam disponíveis.</p>
|
|
99
|
+
</td>
|
|
100
|
+
<td width="50%" valign="top">
|
|
101
|
+
<h3>Preserve originais e código</h3>
|
|
102
|
+
<p>Originais preservados; traduções fora do contexto do modelo. Reutiliza componentes Markdown; protege código, caminhos e comandos antes de traduzir.</p>
|
|
103
|
+
</td>
|
|
104
|
+
</tr>
|
|
105
|
+
<tr>
|
|
106
|
+
<td width="50%" valign="top">
|
|
107
|
+
<h3>Modelos locais sob demanda</h3>
|
|
108
|
+
<p>Liberação manual, ao desmarcar ou após inatividade; recarga na próxima tradução</p>
|
|
109
|
+
</td>
|
|
110
|
+
<td width="50%" valign="top">
|
|
111
|
+
<h3>Provedores na sua ordem</h3>
|
|
112
|
+
<p>Alternativa automática na ordem ativada; idioma claramente errado tenta o próximo provedor; nova tentativa após intervalo</p>
|
|
113
|
+
</td>
|
|
114
|
+
</tr>
|
|
115
|
+
</table>
|
|
116
|
+
|
|
117
|
+
### Conecte os provedores que você já usa
|
|
118
|
+
|
|
119
|
+
**Ollama · Google · Bing · OpenAI · Anthropic Messages API**
|
|
120
|
+
|
|
121
|
+
Descubra provedores configurados no DSH sem digitar endpoints e chaves novamente. Teste cada linha separadamente; a ordem da lista define a sequência de tentativas.
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Sua primeira opção → próximo provedor ativado → … → original se todos falharem
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
<details>
|
|
128
|
+
<summary><b>Endpoints personalizados, credenciais e recuperação</b></summary>
|
|
129
|
+
|
|
130
|
+
- Suporta `/v1/chat/completions` compatível com OpenAI e a API nativa Anthropic Messages.
|
|
131
|
+
- A descoberta lê o perfil DSH atual e suas substituições. Verifique novamente e adicione provedores à sequência de tradução.
|
|
132
|
+
- `apiKeyEnv` é resolvido no momento da requisição; as credenciais resolvidas nunca são gravadas na configuração do plugin.
|
|
133
|
+
- Falhas aguardam 30 segundos na memória do host antes de novas tentativas. Um idioma claramente errado aciona o próximo provedor.
|
|
134
|
+
- A detecção ignora textos reconhecidos no idioma de destino; testes de provedor sempre enviam uma requisição real.
|
|
135
|
+
|
|
136
|
+
</details>
|
|
137
|
+
|
|
138
|
+
### Modelos locais de tradução: carregar e liberar sob demanda
|
|
139
|
+
|
|
140
|
+
| Sua ação | Comportamento do plugin |
|
|
141
|
+
|---|---|
|
|
142
|
+
| Traduzir ou testar | Inicia o serviço e carrega o modelo selecionado sob demanda |
|
|
143
|
+
| Liberar memória do modelo | Aguarda traduções ativas e libera; mantém arquivos, opções e ordem |
|
|
144
|
+
| Desmarcar o provedor local | Desativa e libera o modelo selecionado |
|
|
145
|
+
| Reativar ou abrir configurações | Sem pré-carregamento; carrega na próxima tradução real |
|
|
146
|
+
| Configurar liberação por inatividade | 5 minutos por padrão; 1 / 5 / 10 / 30 / 60 minutos ou desativada |
|
|
147
|
+
|
|
148
|
+
O prazo vale a partir do próximo uso. O Ollama acompanha o modelo selecionado sem alterar variáveis globais. Softwares ou modelos ausentes só são instalados ou baixados após clicar em preparar, com progresso visível.
|
|
149
|
+
|
|
150
|
+
<a id="languages"></a>
|
|
151
|
+
### Seu idioma acompanha você
|
|
152
|
+
|
|
153
|
+
中文 · English · 日本語 · 한국어 · Español · Français · Deutsch · Русский · Português
|
|
154
|
+
|
|
155
|
+
Nove idiomas de destino, configurações e tarefas, incluindo português. A seleção é preservada ao atualizar a página.
|
|
156
|
+
|
|
157
|
+
<a id="faq"></a>
|
|
158
|
+
## Respostas às perguntas frequentes
|
|
159
|
+
|
|
160
|
+
<details>
|
|
161
|
+
<summary><b>A opção de tradução não aparece após instalar ou atualizar</b></summary>
|
|
162
|
+
|
|
163
|
+
Reinicie completamente `dsh web`. O grafo de módulos é montado no início do processo; atualizar só a página pode não bastar. O rodapé das configurações mostra a versão instalada.
|
|
164
|
+
|
|
165
|
+
</details>
|
|
166
|
+
|
|
167
|
+
<details>
|
|
168
|
+
<summary><b>A lista de modelos locais está vazia</b></summary>
|
|
169
|
+
|
|
170
|
+
Confira `ollama list` ou `/api/tags`, o diretório ativo e `OLLAMA_MODELS` do serviço. Não é necessário baixar novamente arquivos existentes.
|
|
171
|
+
|
|
172
|
+
</details>
|
|
173
|
+
|
|
174
|
+
<details>
|
|
175
|
+
<summary><b>Client bundles not found após atualizar o DSH</b></summary>
|
|
176
|
+
|
|
177
|
+
Execute `pnpm run build` no repositório DeepSeek Harness e reinicie o DSH Web.
|
|
178
|
+
|
|
179
|
+
</details>
|
|
180
|
+
|
|
181
|
+
<details>
|
|
182
|
+
<summary><b>Uma falha de tradução afeta a conversa?</b></summary>
|
|
183
|
+
|
|
184
|
+
Se todos os provedores ativados falharem, o original permanece. Teste cada provedor e consulte o último erro nas configurações. As próximas requisições podem tentar novamente após o intervalo.
|
|
185
|
+
|
|
186
|
+
</details>
|
|
187
|
+
|
|
188
|
+
<details>
|
|
189
|
+
<summary><b>Atualizações e compatibilidade</b></summary>
|
|
190
|
+
|
|
191
|
+
**1.2.16** adiciona português ao destino e à interface, renova os nove README e imagens localizadas, e declara três imagens para o mercado.
|
|
192
|
+
|
|
193
|
+
**1.2.15** adiciona gestão de memória local e adapta imagens, recolhimento agrupado do raciocínio e seleção do original ao DSH `0.2.2-alpha.2`.
|
|
194
|
+
|
|
195
|
+
**1.2.13** traduz motivos de recusa da revisão automática. Obrigado a [llg1634](https://github.com/llg1634) pelo relato, patch inicial e testes.
|
|
196
|
+
|
|
197
|
+
Versões anteriores: [GitHub Releases](https://github.com/UncleK/dsh-think-translate/releases).
|
|
198
|
+
|
|
199
|
+
</details>
|
|
200
|
+
|
|
201
|
+
<details>
|
|
202
|
+
<summary><b>Desenvolvimento e funcionamento</b></summary>
|
|
203
|
+
|
|
204
|
+
- `lib/index.js`: rotas do host, provedores, configuração, cache e modelos locais.
|
|
205
|
+
- `lib/client.js`: configurações, tradução da exibição, lotes em streaming e cache do navegador.
|
|
206
|
+
- `lib/config.json`: configuração de execução, excluída do Git e npm.
|
|
207
|
+
- Sem compilação extra: os fontes são o produto. Reinicie o DSH após mudar o host.
|
|
208
|
+
- Verifique com `npm test`. Descoberta e credenciais: [notas de manutenção](https://github.com/UncleK/dsh-think-translate/blob/main/docs/maintenance-notes.md).
|
|
209
|
+
|
|
210
|
+
</details>
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
<p align="center">
|
|
215
|
+
<b>dsh-think-translate</b><br />
|
|
216
|
+
<a href="https://github.com/UncleK/dsh-think-translate/issues">Relatar um problema</a> · <a href="https://github.com/UncleK/dsh-think-translate/releases">Versões</a> · <a href="https://github.com/UncleK/dsh-think-translate/blob/main/LICENSE">Licença MIT</a>
|
|
217
|
+
</p>
|