@kabxx/dsh-btw 0.1.0 → 0.1.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 +7 -9
- package/dist/client.js +575 -247
- package/locale/en.json +18 -5
- package/locale/zh.json +20 -7
- package/package.json +2 -1
- package/src/host/index.js +332 -102
- package/src/host/session-store.js +125 -24
- package/src/shared/wire.js +70 -14
package/locale/en.json
CHANGED
|
@@ -27,9 +27,20 @@
|
|
|
27
27
|
"missingThread": "Side question not found.",
|
|
28
28
|
"retry": "Retry",
|
|
29
29
|
"waiting": "Waiting for a reply…",
|
|
30
|
-
"interrupted": "Reply interrupted
|
|
31
|
-
"replyFailed": "Failed to generate reply
|
|
32
|
-
"contextOverflow": "Context limit reached
|
|
30
|
+
"interrupted": "Reply interrupted",
|
|
31
|
+
"replyFailed": "Failed to generate reply",
|
|
32
|
+
"contextOverflow": "Context limit reached",
|
|
33
|
+
"contextOverflowHint": "Existing messages are preserved. Start a new side question to continue.",
|
|
34
|
+
"outputLimit": "Output token limit reached",
|
|
35
|
+
"outputLimitHint": "The reply was cut off; earlier output is preserved in the conversation. Send \"continue\" to let the model resume.",
|
|
36
|
+
"outputLimitInlineHint": "The reply was cut off. Open this side question in the sidebar and send \"continue\".",
|
|
37
|
+
"taskStopped": "Task stopped",
|
|
38
|
+
"accountSignedOut": "Stopped because you signed out of DeepSeek.",
|
|
39
|
+
"accountSignInRequired": "Sign in to DeepSeek and ensure the request destination supports account authentication.",
|
|
40
|
+
"invalidApiKey": "API key is invalid",
|
|
41
|
+
"quotaExhausted": "Request quota exhausted.",
|
|
42
|
+
"rateLimited": "Too many requests. Try again later.",
|
|
43
|
+
"contentRefused": "The model declined to answer. Try rephrasing your question.",
|
|
33
44
|
"emptyReply": "No text response.",
|
|
34
45
|
"history": "Side question messages",
|
|
35
46
|
"userMessage": "You",
|
|
@@ -37,7 +48,9 @@
|
|
|
37
48
|
"placeholder": "Ask a follow-up…",
|
|
38
49
|
"input": "Enter a message",
|
|
39
50
|
"send": "Send follow-up",
|
|
40
|
-
"sendFailed": "Failed to send follow-up.",
|
|
51
|
+
"sendFailed": "Failed to send follow-up. Try again.",
|
|
52
|
+
"snapshotUnavailable": "The context for this side question is unavailable. Start a new side question.",
|
|
53
|
+
"stillGenerating": "The previous reply is still generating.",
|
|
41
54
|
"micStart": "Start recording",
|
|
42
55
|
"micStop": "Stop and transcribe",
|
|
43
56
|
"micRequesting": "Allow microphone access…",
|
|
@@ -69,7 +82,7 @@
|
|
|
69
82
|
"copy": "Copy",
|
|
70
83
|
"copied": "Copied",
|
|
71
84
|
"copyFailed": "Copy failed.",
|
|
72
|
-
"archiveWriteFailed": "Failed to save reply
|
|
85
|
+
"archiveWriteFailed": "Failed to save reply",
|
|
73
86
|
"micPermission": "Microphone access is disabled. Allow it in browser or system settings.",
|
|
74
87
|
"micMissing": "Microphone unavailable. Check your input device.",
|
|
75
88
|
"micInterrupted": "Recording interrupted.",
|
package/locale/zh.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"commandSpelling": "侧问",
|
|
12
12
|
"commandDescription": "发起侧问,或查看当前会话的侧问记录",
|
|
13
13
|
"sidebarUnavailable": "当前视图无法打开右侧栏。",
|
|
14
|
-
"sessionNotSaved": "
|
|
14
|
+
"sessionNotSaved": "请先发送一条消息后再发起侧问。",
|
|
15
15
|
"modelUnavailable": "当前会话未配置可用模型。",
|
|
16
16
|
"saveFailed": "保存侧问失败。",
|
|
17
17
|
"textOnly": "侧问不接受附件。",
|
|
@@ -27,9 +27,20 @@
|
|
|
27
27
|
"missingThread": "找不到该侧问记录。",
|
|
28
28
|
"retry": "重试",
|
|
29
29
|
"waiting": "等待回复…",
|
|
30
|
-
"interrupted": "
|
|
31
|
-
"replyFailed": "
|
|
32
|
-
"contextOverflow": "
|
|
30
|
+
"interrupted": "回复已中断",
|
|
31
|
+
"replyFailed": "回复生成失败",
|
|
32
|
+
"contextOverflow": "已达上下文上限",
|
|
33
|
+
"contextOverflowHint": "已有对话记录仍会保留,请发起新的侧问。",
|
|
34
|
+
"outputLimit": "已达到输出 token 上限",
|
|
35
|
+
"outputLimitHint": "回答被截断,已有输出保留在对话中。发送“继续”可让模型接着输出。",
|
|
36
|
+
"outputLimitInlineHint": "回答被截断。可在侧栏打开这条侧问,再发送“继续”。",
|
|
37
|
+
"taskStopped": "任务已停止",
|
|
38
|
+
"accountSignedOut": "任务已因退出 DeepSeek 登录而停止。",
|
|
39
|
+
"accountSignInRequired": "请先登录 DeepSeek,并确认请求地址支持账号认证。",
|
|
40
|
+
"invalidApiKey": "API 密钥无效",
|
|
41
|
+
"quotaExhausted": "当前请求的额度已用尽",
|
|
42
|
+
"rateLimited": "请求受到限流,请稍后重试。",
|
|
43
|
+
"contentRefused": "模型拒绝回答,请调整问题后再试。",
|
|
33
44
|
"emptyReply": "模型未返回文本内容。",
|
|
34
45
|
"history": "侧问对话记录",
|
|
35
46
|
"userMessage": "你",
|
|
@@ -38,6 +49,8 @@
|
|
|
38
49
|
"input": "输入消息",
|
|
39
50
|
"send": "发送追问",
|
|
40
51
|
"sendFailed": "发送失败,请重试。",
|
|
52
|
+
"snapshotUnavailable": "侧问上下文已失效,请发起新的侧问。",
|
|
53
|
+
"stillGenerating": "上一条回复仍在生成。",
|
|
41
54
|
"micStart": "开始录音",
|
|
42
55
|
"micStop": "停止并识别",
|
|
43
56
|
"micRequesting": "请允许使用麦克风…",
|
|
@@ -57,8 +70,8 @@
|
|
|
57
70
|
"auditCacheHit": "缓存命中",
|
|
58
71
|
"auditTotal": "总计",
|
|
59
72
|
"auditInput": "未缓存输入",
|
|
60
|
-
"auditCacheRead": "
|
|
61
|
-
"auditCacheWrite": "
|
|
73
|
+
"auditCacheRead": "缓存读取",
|
|
74
|
+
"auditCacheWrite": "缓存写入",
|
|
62
75
|
"auditOutput": "输出",
|
|
63
76
|
"auditTurn": "本轮用量",
|
|
64
77
|
"auditSpent": "用量 {total}",
|
|
@@ -69,7 +82,7 @@
|
|
|
69
82
|
"copy": "复制",
|
|
70
83
|
"copied": "已复制",
|
|
71
84
|
"copyFailed": "复制失败。",
|
|
72
|
-
"archiveWriteFailed": "
|
|
85
|
+
"archiveWriteFailed": "回复保存失败",
|
|
73
86
|
"micPermission": "麦克风权限未开启,请在浏览器或系统设置中允许访问。",
|
|
74
87
|
"micMissing": "未检测到可用麦克风,请检查输入设备。",
|
|
75
88
|
"micInterrupted": "录音已中断。",
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kabxx/dsh-btw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Inline /btw side questions and sidebar follow-ups for DeepSeek Harness.",
|
|
6
|
+
"publishConfig": { "access": "public" },
|
|
6
7
|
"repository": { "type": "git", "url": "https://github.com/kabxx/dsh-btw.git" },
|
|
7
8
|
"bugs": { "url": "https://github.com/kabxx/dsh-btw/issues" },
|
|
8
9
|
"engines": { "node": ">=24.9.0", "dsh": "0.2.2-rc.5" },
|