@kabxx/dsh-btw 0.0.0-stage → 0.1.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/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,83 @@
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
+ "emptyReply": "No text response.",
34
+ "history": "Side question messages",
35
+ "userMessage": "You",
36
+ "assistantMessage": "Assistant",
37
+ "placeholder": "Ask a follow-up…",
38
+ "input": "Enter a message",
39
+ "send": "Send follow-up",
40
+ "sendFailed": "Failed to send follow-up.",
41
+ "micStart": "Start recording",
42
+ "micStop": "Stop and transcribe",
43
+ "micRequesting": "Allow microphone access…",
44
+ "micRecording": "Recording…",
45
+ "micTranscribing": "Transcribing…",
46
+ "micFailed": "Speech recognition failed.",
47
+ "micEmpty": "No speech recognized.",
48
+ "micSetup": "Voice input not ready",
49
+ "micSettings": "Voice input settings",
50
+ "micUnavailable": "Audio recording is not supported in this browser.",
51
+ "audit": "Usage",
52
+ "auditActivity": "Time and speed",
53
+ "auditRounds": "turns",
54
+ "auditModelTime": "Model time",
55
+ "auditFirstToken": "Avg time to first token (TTFT)",
56
+ "auditRate": "Output speed (TPS)",
57
+ "auditCacheHit": "Cache hit",
58
+ "auditTotal": "Total",
59
+ "auditInput": "Uncached input",
60
+ "auditCacheRead": "Cache read",
61
+ "auditCacheWrite": "Cache write",
62
+ "auditOutput": "Output",
63
+ "auditTurn": "Turn usage",
64
+ "auditSpent": "Usage {total}",
65
+ "auditReasoning": "Reasoning tokens",
66
+ "auditContext": "Context usage",
67
+ "auditContextInput": "Estimated context used",
68
+ "auditContextWindow": "Model context window",
69
+ "copy": "Copy",
70
+ "copied": "Copied",
71
+ "copyFailed": "Copy failed.",
72
+ "archiveWriteFailed": "Failed to save reply.",
73
+ "micPermission": "Microphone access is disabled. Allow it in browser or system settings.",
74
+ "micMissing": "Microphone unavailable. Check your input device.",
75
+ "micInterrupted": "Recording interrupted.",
76
+ "micTooLarge": "Recording exceeds size limit.",
77
+ "auditSeconds": "{seconds}s",
78
+ "auditMinutes": "{minutes}m{seconds}s",
79
+ "micChanged": "Draft changed",
80
+ "micInsert": "Insert text",
81
+ "micCancel": "Cancel recording"
82
+ }
83
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,83 @@
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
+ "emptyReply": "模型未返回文本内容。",
34
+ "history": "侧问对话记录",
35
+ "userMessage": "你",
36
+ "assistantMessage": "模型",
37
+ "placeholder": "继续追问…",
38
+ "input": "输入消息",
39
+ "send": "发送追问",
40
+ "sendFailed": "发送失败,请重试。",
41
+ "micStart": "开始录音",
42
+ "micStop": "停止并识别",
43
+ "micRequesting": "请允许使用麦克风…",
44
+ "micRecording": "录音中…",
45
+ "micTranscribing": "识别中…",
46
+ "micFailed": "语音识别失败。",
47
+ "micEmpty": "未识别到语音。",
48
+ "micSetup": "语音输入尚未就绪",
49
+ "micSettings": "语音输入设置",
50
+ "micUnavailable": "当前浏览器不支持录音。",
51
+ "audit": "用量",
52
+ "auditActivity": "耗时与速度",
53
+ "auditRounds": "轮",
54
+ "auditModelTime": "模型用时",
55
+ "auditFirstToken": "平均首 token 延迟(TTFT)",
56
+ "auditRate": "输出速度(TPS)",
57
+ "auditCacheHit": "缓存命中",
58
+ "auditTotal": "总计",
59
+ "auditInput": "未缓存输入",
60
+ "auditCacheRead": "读取缓存",
61
+ "auditCacheWrite": "写入缓存",
62
+ "auditOutput": "输出",
63
+ "auditTurn": "本轮用量",
64
+ "auditSpent": "用量 {total}",
65
+ "auditReasoning": "推理 token",
66
+ "auditContext": "上下文占用",
67
+ "auditContextInput": "已用上下文估算",
68
+ "auditContextWindow": "模型上下文窗口",
69
+ "copy": "复制",
70
+ "copied": "已复制",
71
+ "copyFailed": "复制失败。",
72
+ "archiveWriteFailed": "回复保存失败。",
73
+ "micPermission": "麦克风权限未开启,请在浏览器或系统设置中允许访问。",
74
+ "micMissing": "未检测到可用麦克风,请检查输入设备。",
75
+ "micInterrupted": "录音已中断。",
76
+ "micTooLarge": "录音超出大小限制。",
77
+ "auditSeconds": "{seconds}秒",
78
+ "auditMinutes": "{minutes}分{seconds}秒",
79
+ "micChanged": "草稿已变更",
80
+ "micInsert": "插入文字",
81
+ "micCancel": "取消录音"
82
+ }
83
+ }
package/package.json CHANGED
@@ -1,6 +1,39 @@
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.0",
4
+ "type": "module",
5
+ "description": "Inline /btw side questions and sidebar follow-ups for DeepSeek Harness.",
6
+ "repository": { "type": "git", "url": "https://github.com/kabxx/dsh-btw.git" },
7
+ "bugs": { "url": "https://github.com/kabxx/dsh-btw/issues" },
8
+ "engines": { "node": ">=24.9.0", "dsh": "0.2.2-rc.5" },
9
+ "scripts": {
10
+ "build": "node scripts/build-client.mjs",
11
+ "test": "node --test test/*.test.mjs",
12
+ "prepack": "npm run build",
13
+ "pack:local": "npm pack --pack-destination dist"
14
+ },
15
+ "exports": {
16
+ ".": "./src/host/index.js",
17
+ "./client": "./dist/client.js",
18
+ "./typert": "./src/host/typert.js",
19
+ "./locale/*.json": "./locale/*.json",
20
+ "./icon": "./icon.svg"
21
+ },
22
+ "files": ["src/host/", "src/shared/", "dist/client.js", "cordis.patch.yml", "locale/*.json", "icon.svg", "NOTICE"],
23
+ "devDependencies": { "esbuild": "0.28.2" },
24
+ "dsh": {
25
+ "bundle": { "patch": "./cordis.patch.yml" },
26
+ "client": {
27
+ "platform": "web",
28
+ "immediately": true,
29
+ "inject": [
30
+ "@deepseek-ai/dsh-api-gateway",
31
+ "@deepseek-ai/dsh-client-locale",
32
+ "@deepseek-ai/dsh-client-ui-conversation",
33
+ "@deepseek-ai/dsh-client-ui-input-trigger",
34
+ "@deepseek-ai/dsh-client-ui-sidebar-right",
35
+ "@deepseek-ai/dsh-client-ui-theme"
36
+ ]
37
+ }
38
+ }
39
+ }