@kabxx/dsh-btw 0.0.0-stage → 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/icon.svg ADDED
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36">
2
+ <!-- Tabler Icons v3.31.0: message-circle-question. MIT; see NOTICE. -->
3
+ <g transform="translate(6 5.5)" fill="none" stroke="#808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
4
+ <path d="M15.02 19.52c-2.341 .736 -5 .606 -7.32 -.52l-4.7 1l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c1.649 1.407 2.575 3.253 2.742 5.152" />
5
+ <path d="M19 22v.01" />
6
+ <path d="M19 19a2.003 2.003 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483" />
7
+ </g>
8
+ </svg>
package/locale/en.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "meta": {
3
+ "title": "dsh-btw",
4
+ "description": "Use /btw to ask side questions above the input, or view history and follow up in the right sidebar."
5
+ },
6
+ "ui": {
7
+ "title": "Side question",
8
+ "listTitle": "Side questions",
9
+ "commandHint": "ask a question, or press Enter for history",
10
+ "commandLabel": "Side question",
11
+ "commandSpelling": "btw",
12
+ "commandDescription": "Ask a side question or view history",
13
+ "sidebarUnavailable": "Sidebar is unavailable in this view.",
14
+ "sessionNotSaved": "Send a message first to ask a side question.",
15
+ "modelUnavailable": "No model is configured for this conversation.",
16
+ "saveFailed": "Failed to save the side question.",
17
+ "textOnly": "/btw does not accept attachments.",
18
+ "collapse": "Collapse reply",
19
+ "expand": "Expand reply",
20
+ "openSidebar": "Open in sidebar",
21
+ "dismiss": "Close",
22
+ "back": "Back to list",
23
+ "emptyList": "No side questions yet",
24
+ "loading": "Loading…",
25
+ "loadFailed": "Failed to load side question.",
26
+ "streamFailed": "Connection lost.",
27
+ "missingThread": "Side question not found.",
28
+ "retry": "Retry",
29
+ "waiting": "Waiting for a reply…",
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.",
44
+ "emptyReply": "No text response.",
45
+ "history": "Side question messages",
46
+ "userMessage": "You",
47
+ "assistantMessage": "Assistant",
48
+ "placeholder": "Ask a follow-up…",
49
+ "input": "Enter a message",
50
+ "send": "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.",
54
+ "micStart": "Start recording",
55
+ "micStop": "Stop and transcribe",
56
+ "micRequesting": "Allow microphone access…",
57
+ "micRecording": "Recording…",
58
+ "micTranscribing": "Transcribing…",
59
+ "micFailed": "Speech recognition failed.",
60
+ "micEmpty": "No speech recognized.",
61
+ "micSetup": "Voice input not ready",
62
+ "micSettings": "Voice input settings",
63
+ "micUnavailable": "Audio recording is not supported in this browser.",
64
+ "audit": "Usage",
65
+ "auditActivity": "Time and speed",
66
+ "auditRounds": "turns",
67
+ "auditModelTime": "Model time",
68
+ "auditFirstToken": "Avg time to first token (TTFT)",
69
+ "auditRate": "Output speed (TPS)",
70
+ "auditCacheHit": "Cache hit",
71
+ "auditTotal": "Total",
72
+ "auditInput": "Uncached input",
73
+ "auditCacheRead": "Cache read",
74
+ "auditCacheWrite": "Cache write",
75
+ "auditOutput": "Output",
76
+ "auditTurn": "Turn usage",
77
+ "auditSpent": "Usage {total}",
78
+ "auditReasoning": "Reasoning tokens",
79
+ "auditContext": "Context usage",
80
+ "auditContextInput": "Estimated context used",
81
+ "auditContextWindow": "Model context window",
82
+ "copy": "Copy",
83
+ "copied": "Copied",
84
+ "copyFailed": "Copy failed.",
85
+ "archiveWriteFailed": "Failed to save reply",
86
+ "micPermission": "Microphone access is disabled. Allow it in browser or system settings.",
87
+ "micMissing": "Microphone unavailable. Check your input device.",
88
+ "micInterrupted": "Recording interrupted.",
89
+ "micTooLarge": "Recording exceeds size limit.",
90
+ "auditSeconds": "{seconds}s",
91
+ "auditMinutes": "{minutes}m{seconds}s",
92
+ "micChanged": "Draft changed",
93
+ "micInsert": "Insert text",
94
+ "micCancel": "Cancel recording"
95
+ }
96
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "meta": {
3
+ "title": "dsh-btw",
4
+ "description": "通过 /侧问 或 /btw 围绕当前对话提问,在输入框上方查看回答,或在右侧栏查看记录并继续追问。"
5
+ },
6
+ "ui": {
7
+ "title": "侧问",
8
+ "listTitle": "侧问记录",
9
+ "commandHint": "输入问题,或按 Enter 查看记录",
10
+ "commandLabel": "侧问",
11
+ "commandSpelling": "侧问",
12
+ "commandDescription": "发起侧问,或查看当前会话的侧问记录",
13
+ "sidebarUnavailable": "当前视图无法打开右侧栏。",
14
+ "sessionNotSaved": "请先发送一条消息后再发起侧问。",
15
+ "modelUnavailable": "当前会话未配置可用模型。",
16
+ "saveFailed": "保存侧问失败。",
17
+ "textOnly": "侧问不接受附件。",
18
+ "collapse": "收起回复",
19
+ "expand": "展开回复",
20
+ "openSidebar": "在侧栏打开",
21
+ "dismiss": "关闭",
22
+ "back": "返回列表",
23
+ "emptyList": "暂无侧问记录",
24
+ "loading": "加载中…",
25
+ "loadFailed": "加载侧问失败。",
26
+ "streamFailed": "连接已断开。",
27
+ "missingThread": "找不到该侧问记录。",
28
+ "retry": "重试",
29
+ "waiting": "等待回复…",
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": "模型拒绝回答,请调整问题后再试。",
44
+ "emptyReply": "模型未返回文本内容。",
45
+ "history": "侧问对话记录",
46
+ "userMessage": "你",
47
+ "assistantMessage": "模型",
48
+ "placeholder": "继续追问…",
49
+ "input": "输入消息",
50
+ "send": "发送追问",
51
+ "sendFailed": "发送失败,请重试。",
52
+ "snapshotUnavailable": "侧问上下文已失效,请发起新的侧问。",
53
+ "stillGenerating": "上一条回复仍在生成。",
54
+ "micStart": "开始录音",
55
+ "micStop": "停止并识别",
56
+ "micRequesting": "请允许使用麦克风…",
57
+ "micRecording": "录音中…",
58
+ "micTranscribing": "识别中…",
59
+ "micFailed": "语音识别失败。",
60
+ "micEmpty": "未识别到语音。",
61
+ "micSetup": "语音输入尚未就绪",
62
+ "micSettings": "语音输入设置",
63
+ "micUnavailable": "当前浏览器不支持录音。",
64
+ "audit": "用量",
65
+ "auditActivity": "耗时与速度",
66
+ "auditRounds": "轮",
67
+ "auditModelTime": "模型用时",
68
+ "auditFirstToken": "平均首 token 延迟(TTFT)",
69
+ "auditRate": "输出速度(TPS)",
70
+ "auditCacheHit": "缓存命中",
71
+ "auditTotal": "总计",
72
+ "auditInput": "未缓存输入",
73
+ "auditCacheRead": "缓存读取",
74
+ "auditCacheWrite": "缓存写入",
75
+ "auditOutput": "输出",
76
+ "auditTurn": "本轮用量",
77
+ "auditSpent": "用量 {total}",
78
+ "auditReasoning": "推理 token",
79
+ "auditContext": "上下文占用",
80
+ "auditContextInput": "已用上下文估算",
81
+ "auditContextWindow": "模型上下文窗口",
82
+ "copy": "复制",
83
+ "copied": "已复制",
84
+ "copyFailed": "复制失败。",
85
+ "archiveWriteFailed": "回复保存失败",
86
+ "micPermission": "麦克风权限未开启,请在浏览器或系统设置中允许访问。",
87
+ "micMissing": "未检测到可用麦克风,请检查输入设备。",
88
+ "micInterrupted": "录音已中断。",
89
+ "micTooLarge": "录音超出大小限制。",
90
+ "auditSeconds": "{seconds}秒",
91
+ "auditMinutes": "{minutes}分{seconds}秒",
92
+ "micChanged": "草稿已变更",
93
+ "micInsert": "插入文字",
94
+ "micCancel": "取消录音"
95
+ }
96
+ }
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@kabxx/dsh-btw",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "description": "Inline /btw side questions and sidebar follow-ups for DeepSeek Harness.",
6
+ "publishConfig": { "access": "public" },
7
+ "repository": { "type": "git", "url": "https://github.com/kabxx/dsh-btw.git" },
8
+ "bugs": { "url": "https://github.com/kabxx/dsh-btw/issues" },
9
+ "engines": { "node": ">=24.9.0", "dsh": "0.2.2-rc.5" },
10
+ "scripts": {
11
+ "build": "node scripts/build-client.mjs",
12
+ "test": "node --test test/*.test.mjs",
13
+ "prepack": "npm run build",
14
+ "pack:local": "npm pack --pack-destination dist"
15
+ },
16
+ "exports": {
17
+ ".": "./src/host/index.js",
18
+ "./client": "./dist/client.js",
19
+ "./typert": "./src/host/typert.js",
20
+ "./locale/*.json": "./locale/*.json",
21
+ "./icon": "./icon.svg"
22
+ },
23
+ "files": ["src/host/", "src/shared/", "dist/client.js", "cordis.patch.yml", "locale/*.json", "icon.svg", "NOTICE"],
24
+ "devDependencies": { "esbuild": "0.28.2" },
25
+ "dsh": {
26
+ "bundle": { "patch": "./cordis.patch.yml" },
27
+ "client": {
28
+ "platform": "web",
29
+ "immediately": true,
30
+ "inject": [
31
+ "@deepseek-ai/dsh-api-gateway",
32
+ "@deepseek-ai/dsh-client-locale",
33
+ "@deepseek-ai/dsh-client-ui-conversation",
34
+ "@deepseek-ai/dsh-client-ui-input-trigger",
35
+ "@deepseek-ai/dsh-client-ui-sidebar-right",
36
+ "@deepseek-ai/dsh-client-ui-theme"
37
+ ]
38
+ }
39
+ }
40
+ }