@lynn123411/dsh-chat-translate 3.3.1 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/docs//351/205/215/347/275/256.md +5 -5
- package/lib/client.js +118 -106
- package/lib/client.js.map +3 -3
- package/lib/index.js +5 -5
- package/lib/index.js.map +2 -2
- package/lib/types/client/chat/assistant-step.d.ts +7 -7
- package/lib/types/client/chat/click-guard.d.ts +7 -7
- package/lib/types/client/chat/row-plan.d.ts +24 -19
- package/lib/types/client/chat/styles.d.ts +31 -47
- package/lib/types/client/chat/translate-store.d.ts +9 -6
- package/lib/types/client/locales.d.ts +13 -8
- package/lib/types/server/dispatcher.d.ts +2 -2
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/@deepseek-ai+cosmokit@1.8.6-alpha.
|
|
1
|
+
// node_modules/.pnpm/@deepseek-ai+cosmokit@1.8.6-alpha.2/node_modules/@deepseek-ai/cosmokit/lib/index.js
|
|
2
2
|
function isNullable(value) {
|
|
3
3
|
return value === null || value === void 0;
|
|
4
4
|
}
|
|
@@ -223,7 +223,7 @@ var Time;
|
|
|
223
223
|
Time2.template = template;
|
|
224
224
|
})(Time || (Time = {}));
|
|
225
225
|
|
|
226
|
-
// node_modules/.pnpm/@deepseek-ai+schemastery@3.18.5-alpha.
|
|
226
|
+
// node_modules/.pnpm/@deepseek-ai+schemastery@3.18.5-alpha.2/node_modules/@deepseek-ai/schemastery/lib/index.mjs
|
|
227
227
|
var kSchema = Symbol.for("schemastery");
|
|
228
228
|
var kValidationError = Symbol.for("ValidationError");
|
|
229
229
|
globalThis.__schemastery_index__ ??= 0;
|
|
@@ -977,7 +977,7 @@ var CredentialsReader = class {
|
|
|
977
977
|
import * as fs from "node:fs/promises";
|
|
978
978
|
import * as path from "node:path";
|
|
979
979
|
|
|
980
|
-
// node_modules/.pnpm/@deepseek-ai+dsh-home-paths@0.2.1-alpha.
|
|
980
|
+
// node_modules/.pnpm/@deepseek-ai+dsh-home-paths@0.2.1-alpha.3_@deepseek-ai+cordis@4.0.5-alpha.2/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js
|
|
981
981
|
import { homedir } from "node:os";
|
|
982
982
|
import { basename, dirname, join, resolve as resolve2 } from "node:path";
|
|
983
983
|
var DSH_HOME_DIR_NAME = ".dsh";
|
|
@@ -1582,8 +1582,8 @@ var TranslationDispatcher = class {
|
|
|
1582
1582
|
*
|
|
1583
1583
|
* **形状问题不否决内容**:修不好的片段自动重掷一次;再修不好就照收模型的
|
|
1584
1584
|
* 译文(链接数不等时不回填,其余原样)——原文一键可回,可读的译文优先于
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1585
|
+
* 形状完整。失败只剩通道伤一种:超时、断流、空返回,块保持原文并带一句
|
|
1586
|
+
* detail 供悬停报因,救活由用户的点击发起。
|
|
1587
1587
|
*
|
|
1588
1588
|
* 调用方传进来的每个块要么整块译出、要么整块保持原文:任一片段缺失都让该块
|
|
1589
1589
|
* 作废,避免半中半英的段落;失败块带 `detail` 一句技术细节。每行只跑首跑
|