dsh-team-bots 0.2.289 → 0.2.347
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 +60 -122
- package/docs/README.zh.md +61 -123
- package/docs/assets/channel-redesign.png +0 -0
- package/docs/assets/global-config-dark.png +0 -0
- package/docs/assets/global-config-light.png +0 -0
- package/docs/assets/global-config-light.zh.png +0 -0
- package/docs/assets/global-config-redesign.png +0 -0
- package/docs/assets/secrets-redesign.png +0 -0
- package/docs/assets/tasks.png +0 -0
- package/docs/assets/tasks.zh.png +0 -0
- package/docs/assets/usage-redesign-global.png +0 -0
- package/docs/assets/usage.png +0 -0
- package/docs/assets/usage.zh.png +0 -0
- package/package.json +17 -5
- package/scripts/doctor.mjs +4 -4
- package/src/api.js +6 -3
- package/src/botmsg.js +1 -1
- package/src/config.js +18 -8
- package/src/db-migrations.js +76 -9
- package/src/db.js +28 -2
- package/src/http.js +22 -3
- package/src/paths.js +32 -1
- package/src/pricing.js +2 -2
- package/src/runtime.js +1 -1
- package/src/secrets.js +4 -4
- package/src/service.js +14 -5
- package/src/services/approvals.js +109 -24
- package/src/services/backoff.js +34 -0
- package/src/services/bot-quota.js +242 -0
- package/src/services/bots.js +35 -6
- package/src/services/chat.js +15 -9
- package/src/services/core.js +33 -5
- package/src/services/hygiene.js +8 -4
- package/src/services/locale.js +17 -0
- package/src/services/memory.js +112 -1
- package/src/services/message-images.js +3 -3
- package/src/services/notify.js +169 -0
- package/src/services/projects.js +119 -10
- package/src/services/proposals.js +2 -3
- package/src/services/questions.js +75 -32
- package/src/services/review-watchdog.js +261 -30
- package/src/services/run-finish.js +186 -17
- package/src/services/runs.js +42 -13
- package/src/services/runtime/lifecycle.js +3 -1
- package/src/services/runtime/model-restore.js +5 -5
- package/src/services/runtime/prompt.js +106 -45
- package/src/services/runtime/session.js +38 -14
- package/src/services/runtime/trajectory.js +1 -1
- package/src/services/scheduler.js +146 -19
- package/src/services/secrets.js +1 -1
- package/src/services/system.js +23 -6
- package/src/services/task-dispatch.js +315 -0
- package/src/services/task-notify.js +55 -11
- package/src/services/task-runs.js +179 -0
- package/src/services/task-stage.js +4 -0
- package/src/services/tasks.js +51 -399
- package/src/services/terminal.js +2 -2
- package/src/services/vision-proxy.js +3 -3
- package/src/services/wechat.js +228 -7
- package/src/services/workspace-groups.js +4 -3
- package/src/skill-parse.js +1 -1
- package/src/skills.js +1 -1
- package/src/tools.js +275 -6
- package/src/updater.js +52 -0
- package/src/usage-reconcile.js +1 -1
- package/src/usage.js +52 -11
- package/src/wechat/channel.js +14 -20
- package/src/wechat/commands.js +129 -81
- package/src/wechat/format.js +247 -0
- package/src/wechat/store.js +30 -2
- package/ui/app.js +57 -53
- package/ui/i18n/en/chat.js +140 -0
- package/ui/i18n/en/common.js +187 -0
- package/ui/i18n/en/nav.js +89 -0
- package/ui/i18n/en/settings.js +352 -0
- package/ui/i18n/en/tasks.js +229 -0
- package/ui/i18n/en/usage.js +141 -0
- package/ui/i18n/en/wechat.js +23 -0
- package/ui/i18n/en.js +17 -237
- package/ui/i18n/zh/chat.js +140 -0
- package/ui/i18n/zh/common.js +187 -0
- package/ui/i18n/zh/nav.js +89 -0
- package/ui/i18n/zh/settings.js +352 -0
- package/ui/i18n/zh/tasks.js +229 -0
- package/ui/i18n/zh/usage.js +141 -0
- package/ui/i18n/zh/wechat.js +23 -0
- package/ui/i18n/zh.js +17 -236
- package/ui/modules/api.js +4 -3
- package/ui/modules/bot-quota.js +27 -0
- package/ui/modules/cards.js +96 -58
- package/ui/modules/chat.js +28 -30
- package/ui/modules/composer.js +41 -37
- package/ui/modules/dom-morph.js +292 -0
- package/ui/modules/events-board.js +22 -22
- package/ui/modules/events-click.js +100 -68
- package/ui/modules/events-misc.js +34 -34
- package/ui/modules/events-submit.js +28 -28
- package/ui/modules/global-pages.js +125 -116
- package/ui/modules/i18n.js +0 -5
- package/ui/modules/icons.js +0 -1
- package/ui/modules/markdown.js +1 -1
- package/ui/modules/modal-forms.js +196 -203
- package/ui/modules/modal-layer.js +6 -9
- package/ui/modules/page-shell.js +62 -0
- package/ui/modules/settings.js +211 -198
- package/ui/modules/solo-archive.js +0 -4
- package/ui/modules/state.js +57 -50
- package/ui/modules/tasks.js +167 -171
- package/ui/modules/typing-linger.js +1 -4
- package/ui/modules/usage.js +65 -78
- package/ui/modules/util.js +92 -25
- package/ui/styles/avatars.css +14 -0
- package/ui/styles/cards.css +49 -0
- package/ui/styles/chat-cards.css +17 -21
- package/ui/styles/global-config.css +56 -2
- package/ui/styles/modal.css +13 -0
- package/ui/styles/usage.css +3 -61
- package/CONTRIBUTING.md +0 -20
- package/docs/assets/usage-dark.png +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// ui/i18n/en/usage.ts —— English copy dictionary: usage domain (DSHBOTS-233)
|
|
2
|
+
export default {
|
|
3
|
+
// Usage page (DSHBOTS-204): source-assertion tests lock some Chinese copy literals, so those entries key on the source text itself; display goes through t() so language switching follows.
|
|
4
|
+
"今日": "Today",
|
|
5
|
+
"7 日": "7 days",
|
|
6
|
+
"30 日": "30 days",
|
|
7
|
+
"至今": "All time",
|
|
8
|
+
"汇总窗口": "Summary window",
|
|
9
|
+
"总 tokens(${scope})": "Total tokens (${scope})",
|
|
10
|
+
"调用次数(${scope})": "Calls (${scope})",
|
|
11
|
+
"总成本(${scope})": "Total cost (${scope})",
|
|
12
|
+
"日均 tokens(${scope})": "Daily tokens (${scope})",
|
|
13
|
+
"tokens 占比": "Token share",
|
|
14
|
+
"tokens": "tokens",
|
|
15
|
+
"调用": "Calls",
|
|
16
|
+
"成本": "Cost",
|
|
17
|
+
"模型": "Model",
|
|
18
|
+
"未命名项目": "Unnamed project",
|
|
19
|
+
"近 14 天": "Last 14 days",
|
|
20
|
+
"分模型": "By model",
|
|
21
|
+
"分 Bot": "By bot",
|
|
22
|
+
"分项目": "By project",
|
|
23
|
+
"本群分模型": "Group by model",
|
|
24
|
+
"本群各 Bot": "Group bots",
|
|
25
|
+
"该 Bot 分模型": "Bot by model",
|
|
26
|
+
"全局用量总览": "Global usage overview",
|
|
27
|
+
"本群用量总览": "Group usage overview",
|
|
28
|
+
"该 Bot 用量总览": "Bot usage overview",
|
|
29
|
+
"未配置价格的调用不计入成本合计;价格按每百万 token 配置。": "Calls without a configured price are excluded from the cost total; prices are per million tokens.",
|
|
30
|
+
"日历图只画最近 14 天,更早的调用计入上方汇总。": "The calendar chart covers the last 14 days; earlier calls are included in the summary above.",
|
|
31
|
+
"下方分组明细暂不可用,上方汇总仍按本群统计。": "Per-group details are unavailable; the summary above still covers this group.",
|
|
32
|
+
"该 Bot 的单聊明细暂不可用。": "This bot's direct-message details are unavailable.",
|
|
33
|
+
"产品时区(Asia/Shanghai)当日 0 点起。": "From 00:00 on the current day in the product timezone (Asia/Shanghai).",
|
|
34
|
+
"按产品时区(Asia/Shanghai)日历日分组。": "Grouped by calendar day in the product timezone (Asia/Shanghai).",
|
|
35
|
+
"汇总全部历史;日历图只画最近 30 天,更早的调用计入上方汇总。": "Summarizes all history; the calendar chart covers the last 30 days, with earlier calls included in the summary above.",
|
|
36
|
+
"次运行的用量记录对不上,数据可能不完整。": "${count} runs have mismatched usage records; the data may be incomplete.",
|
|
37
|
+
// Usage page semantic keys
|
|
38
|
+
"usage.exportCsv": "Export CSV",
|
|
39
|
+
"usage.loading": "Loading…",
|
|
40
|
+
"usage.headDesc": "${scope} · current window ${window}${loading}",
|
|
41
|
+
"usage.overviewGlobalDesc": "Four metrics across every call source, counted in the summary window ${window}.",
|
|
42
|
+
"usage.distTitle": "Breakdown",
|
|
43
|
+
"usage.distGlobalDesc": "All four dimensions stay visible; the daily panel covers ${dayTitle}, the rest share the ${window} window. Bar length = token share, amber = includes unpriced calls, empty = zero usage.",
|
|
44
|
+
"usage.overviewDomainDesc": "Four metrics covering only calls in this group, grouped in the summary window ${window}.",
|
|
45
|
+
"usage.distDomainDesc": "The daily panel covers ${dayTitle}, the rest share the ${window} window; bar length = token share, amber = includes unpriced calls, empty = zero usage.",
|
|
46
|
+
"usage.overviewSoloDesc": "Four metrics covering only this bot’s direct-message calls, grouped in the summary window ${window}.",
|
|
47
|
+
"usage.distSoloDesc": "The daily panel covers ${dayTitle}, the rest share the ${window} window.",
|
|
48
|
+
"usage.priceTitle": "Model price rules",
|
|
49
|
+
"usage.priceDesc": "Cost estimates rely on these price rules, billed per million tokens; adding or editing takes effect immediately.",
|
|
50
|
+
"usage.panelOrder": "Panel order",
|
|
51
|
+
"usage.orderGlobal": "Trend first",
|
|
52
|
+
"usage.orderModel": "Model first",
|
|
53
|
+
"usage.orderBot": "Bot first",
|
|
54
|
+
"usage.orderProject": "Project first",
|
|
55
|
+
"usage.scopeGlobal": "Global",
|
|
56
|
+
"usage.scopeDomain": "Group",
|
|
57
|
+
"usage.scopeSolo": "Bot",
|
|
58
|
+
"usage.unpricedNote": "${count} calls have no configured price; the cost is partial.",
|
|
59
|
+
"usage.dayTitleToday": "Today",
|
|
60
|
+
"usage.dayTitle7d": "Last 7 days",
|
|
61
|
+
"usage.dayTitle30d": "Last 30 days",
|
|
62
|
+
"usage.windowTextFallback": "Last ${days} days",
|
|
63
|
+
"usage.windowTextToday": "Today (from 00:00 in the product timezone)",
|
|
64
|
+
"usage.windowText7d": "Last 7 days (rolling window)",
|
|
65
|
+
"usage.windowText30d": "Last 30 days (rolling window)",
|
|
66
|
+
"usage.windowTextAll": "All time (from the earliest record, no lower bound)",
|
|
67
|
+
"usage.unknownBot": "Unknown bot",
|
|
68
|
+
"usage.unknownModel": "Unknown model",
|
|
69
|
+
"usage.drillTitle": "View this bot's runs in this group",
|
|
70
|
+
"usage.partialCostSuffix": " (includes ${count} unpriced calls; cost is partial)",
|
|
71
|
+
"usage.totalTokensMeta": "In ${input} · Out ${output} · Cache read ${cache}",
|
|
72
|
+
"usage.perCall": "Avg ${value} tokens per call",
|
|
73
|
+
"usage.costUnconfigured": "Not configured",
|
|
74
|
+
"usage.costOther": "Also ${code} ${amount}",
|
|
75
|
+
"usage.priceRules": "${count} price rules",
|
|
76
|
+
"usage.priceMissing": "No model prices configured yet",
|
|
77
|
+
"usage.dailyMeta": "Averaged over the ${days}-day window",
|
|
78
|
+
"usage.dayPeak": "Peak ${value} · ${day}",
|
|
79
|
+
"usage.dayEmpty": "No daily data yet.",
|
|
80
|
+
"usage.exportEmpty": "The export is empty; please try again later.",
|
|
81
|
+
"usage.exported": "CSV exported",
|
|
82
|
+
"usage.count": "${count}",
|
|
83
|
+
"usage.empty": "No call records yet.",
|
|
84
|
+
"usage.legendPriced": "Priced usage",
|
|
85
|
+
"usage.legendPartial": "Includes unpriced calls",
|
|
86
|
+
"usage.legendZero": "Zero usage",
|
|
87
|
+
"usage.colProject": "Project",
|
|
88
|
+
"usage.runDetailTitle": "Run details",
|
|
89
|
+
"usage.runCount": "${count} records",
|
|
90
|
+
"usage.drillRunsTitle": "${name}'s runs in this group",
|
|
91
|
+
"usage.drillRunsDesc": "Pick an entry in the \"Group bots\" list to switch.",
|
|
92
|
+
"usage.drillEmpty": "This bot has no runs in this group yet.",
|
|
93
|
+
"usage.clearDrill": "Clear selection",
|
|
94
|
+
"usage.soloRunsTitle": "This bot's runs",
|
|
95
|
+
"usage.soloRunsDesc": "Same scope as above: only runs outside a project (direct messages).",
|
|
96
|
+
"usage.soloRunsEmpty": "This bot has no runs outside a project yet.",
|
|
97
|
+
"usage.navLabel": "Usage sections",
|
|
98
|
+
"usage.overview": "Overview",
|
|
99
|
+
"usage.drillRunsShort": "Runs",
|
|
100
|
+
// Model price card and price modal
|
|
101
|
+
"price.title": "Model prices",
|
|
102
|
+
"price.rulesCount": "${count} rules",
|
|
103
|
+
"price.add": "Add",
|
|
104
|
+
"price.emptyTitle": "No price rules yet",
|
|
105
|
+
"price.emptyDesc": "Add a model price to make cost estimates work.",
|
|
106
|
+
"price.note": "Prices are per million tokens. Use \"Edit\" to restore the configured default.",
|
|
107
|
+
"price.noteMissing": "Configured but not in effect: ${models}.",
|
|
108
|
+
"price.colCacheRead": "Cache read",
|
|
109
|
+
"price.colInput": "Input",
|
|
110
|
+
"price.colOutput": "Output",
|
|
111
|
+
"price.colCurrency": "Currency",
|
|
112
|
+
"price.colProvider": "Provider",
|
|
113
|
+
"price.builtin": "Built-in",
|
|
114
|
+
"price.custom": "Custom",
|
|
115
|
+
"price.anyProvider": "Any provider",
|
|
116
|
+
"price.edit": "Edit",
|
|
117
|
+
"price.modalAdd": "Set model price",
|
|
118
|
+
"price.modalEdit": "Edit price · ${model}",
|
|
119
|
+
"price.modalSubtitle": "Takes effect only for later calls.",
|
|
120
|
+
"price.providerLabel": "Model provider",
|
|
121
|
+
"price.providerPlaceholder": "Empty = match any provider",
|
|
122
|
+
"price.modelLabel": "Model name",
|
|
123
|
+
"price.inputLabel": "Input",
|
|
124
|
+
"price.outputLabel": "Output",
|
|
125
|
+
"price.cacheReadLabel": "Cache read",
|
|
126
|
+
"price.cacheWriteLabel": "Cache write",
|
|
127
|
+
"price.currencyLabel": "Currency",
|
|
128
|
+
"price.hintDefault": "Configured default: cache read ${cacheRead} / input ${input} / output ${output} ${currency} (per million tokens)",
|
|
129
|
+
"price.hintCustom": "Prices are per million tokens. Leave the provider empty to match any provider.",
|
|
130
|
+
"price.reset": "Restore default price",
|
|
131
|
+
"price.cancel": "Cancel",
|
|
132
|
+
"price.save": "Save price",
|
|
133
|
+
"usage.headGlobalHint": "Global scope, unaffected by the current group or direct-message context",
|
|
134
|
+
"usage.headDomainHint": "Usage within this group only, excluding other groups",
|
|
135
|
+
"usage.headSoloHint": "This bot's usage outside projects (direct messages) only, excluding in-project calls",
|
|
136
|
+
"usage.distTitleDomain": "Group breakdown",
|
|
137
|
+
"usage.distTitleSolo": "Bot breakdown",
|
|
138
|
+
"price.modelSeparator": ", ",
|
|
139
|
+
// DSHBOTS-220: ui/modules copy
|
|
140
|
+
"(${exportLabel})": "(${exportLabel})",
|
|
141
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ui/i18n/en/wechat.ts —— English copy dictionary: wechat domain (DSHBOTS-233)
|
|
2
|
+
export default {
|
|
3
|
+
// High-frequency toasts
|
|
4
|
+
"toast.wechatConnected": "WeChat channel connected",
|
|
5
|
+
// Global configuration page (DSHBOTS-204)
|
|
6
|
+
"channel.sectionWechat": "WeChat channel",
|
|
7
|
+
"channel.sectionWechatDesc": "After scanning to authorize, task updates are pushed to the admin on WeChat.",
|
|
8
|
+
// DSHBOTS-220: ui/modules copy
|
|
9
|
+
"二维码已生成,请用微信扫码": "QR code generated; scan it with WeChat",
|
|
10
|
+
"在服务端启用 wechat 通道后,这里会出现扫码绑定入口。": "Once the wechat channel is enabled on the server, a QR binding entry will appear here.",
|
|
11
|
+
"已退出微信绑定": "WeChat binding removed",
|
|
12
|
+
"待扫码": "Waiting to scan",
|
|
13
|
+
"待输验证码": "Waiting for verification code",
|
|
14
|
+
"微信通道未启用": "WeChat channel not enabled",
|
|
15
|
+
"微信验证码": "WeChat verification code",
|
|
16
|
+
"扫码后手机上的验证码": "The verification code shown on your phone after scanning",
|
|
17
|
+
"微信扫码授权 ClawBot;确认后自动绑定授权者为管理员,任务完成主动推送。": "Scan with WeChat to authorize ClawBot; the authorizer is bound as administrator and task completion is pushed proactively.",
|
|
18
|
+
"扫码绑定": "Scan to bind",
|
|
19
|
+
"提交验证码": "Submit code",
|
|
20
|
+
"请输入微信验证码": "Enter the WeChat verification code",
|
|
21
|
+
"退出绑定后需要重新扫码才能恢复推送。确认退出?": "After unbinding, you must scan the QR code again to restore push. Unbind now?",
|
|
22
|
+
"验证码已提交": "Verification code submitted",
|
|
23
|
+
}
|
package/ui/i18n/en.js
CHANGED
|
@@ -1,239 +1,19 @@
|
|
|
1
|
-
// ui/i18n/en.
|
|
2
|
-
//
|
|
3
|
-
|
|
1
|
+
// ui/i18n/en.ts —— English copy dictionary聚合入口(按域拆分,DSHBOTS-233)
|
|
2
|
+
// 源语言为 zh;en 与 zh 键集一一对应。聚合顺序即域顺序,键不重叠。
|
|
3
|
+
import common from './en/common.js'
|
|
4
|
+
import nav from './en/nav.js'
|
|
5
|
+
import chat from './en/chat.js'
|
|
6
|
+
import tasks from './en/tasks.js'
|
|
7
|
+
import usage from './en/usage.js'
|
|
8
|
+
import settings from './en/settings.js'
|
|
9
|
+
import wechat from './en/wechat.js'
|
|
10
|
+
|
|
4
11
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'nav.chat': 'Chat',
|
|
13
|
-
'nav.soloChat': 'Dispatch',
|
|
14
|
-
'nav.tasks': 'Tasks',
|
|
15
|
-
'nav.members': 'Members',
|
|
16
|
-
'nav.skills': 'Skills',
|
|
17
|
-
'nav.memory': 'Memory',
|
|
18
|
-
'nav.evolution': 'Evolution',
|
|
19
|
-
'nav.usage': 'Usage',
|
|
20
|
-
'nav.terminal': 'Terminal',
|
|
21
|
-
'nav.settings': 'Settings',
|
|
22
|
-
'nav.solo-config': 'Config',
|
|
23
|
-
// View titles (topbar)
|
|
24
|
-
'viewTitle.dispatch': 'Dispatch · ${name}',
|
|
25
|
-
'viewTitle.dispatchPlain': 'Dispatch',
|
|
26
|
-
'viewTitle.config': 'Config · ${name}',
|
|
27
|
-
'viewTitle.botConfig': 'Bot config',
|
|
28
|
-
'viewTitle.workspace': 'Team workspace',
|
|
29
|
-
'viewTitle.tasks': 'Task board',
|
|
30
|
-
'viewTitle.members': 'Project members',
|
|
31
|
-
'viewTitle.botsOverview': 'Bots overview',
|
|
32
|
-
'viewTitle.skills': 'Skill pool',
|
|
33
|
-
'viewTitle.memory': 'Memory',
|
|
34
|
-
'viewTitle.evolution': 'Evolution proposals',
|
|
35
|
-
'viewTitle.usageDomain': 'Usage · ${name}',
|
|
36
|
-
'viewTitle.usageDomainFallback': 'Group usage',
|
|
37
|
-
'viewTitle.usageSolo': 'Usage · ${name}',
|
|
38
|
-
'viewTitle.usageSoloFallback': 'Bot usage',
|
|
39
|
-
'viewTitle.usageGlobal': 'Global usage',
|
|
40
|
-
'viewTitle.terminal': 'Terminal · ${name}',
|
|
41
|
-
'viewTitle.terminalDefault': 'Project terminal',
|
|
42
|
-
'viewTitle.global': 'Global settings',
|
|
43
|
-
'viewTitle.channel': 'Channels',
|
|
44
|
-
'viewTitle.secrets': 'Secrets',
|
|
45
|
-
'viewTitle.projectSettings': 'Project settings',
|
|
46
|
-
// Topbar primary button (VIEW_ACTION labels)
|
|
47
|
-
'viewAction.tasks': 'New task',
|
|
48
|
-
'viewAction.memory': 'Add memory',
|
|
49
|
-
'viewAction.skills': 'New proposal',
|
|
50
|
-
'viewAction.settings': 'Save settings',
|
|
51
|
-
'viewAction.solo-config': 'Save config',
|
|
52
|
-
// Eyebrow
|
|
53
|
-
'eyebrow.botDispatch': 'Bot dispatch',
|
|
54
|
-
'eyebrow.outsideProject': 'Outside projects',
|
|
55
|
-
'eyebrow.active': 'Active',
|
|
56
|
-
'eyebrow.archived': 'Archived',
|
|
57
|
-
'eyebrow.noProject': 'No project selected',
|
|
58
|
-
// Brand
|
|
59
|
-
'brand.backToDsh': 'Back to the native DSH web UI',
|
|
60
|
-
// Sidebar tree: group chats
|
|
61
|
-
'tree.chats': 'Group chats',
|
|
62
|
-
'tree.chatsTitle': 'Group chats / projects',
|
|
63
|
-
'tree.newChat': 'New group chat / project',
|
|
64
|
-
'tree.chatsEmpty': 'No group chats yet.',
|
|
65
|
-
'tree.unreadOne': '1 unread message',
|
|
66
|
-
'tree.unreadMany': '${count} unread messages',
|
|
67
|
-
'tree.reviewPending': 'Tasks awaiting manual review',
|
|
68
|
-
// Sidebar tree: bots
|
|
69
|
-
'tree.botsTitle': 'Team bots',
|
|
70
|
-
'tree.newBot': 'New bot',
|
|
71
|
-
'tree.botsEmpty': 'No bots yet.',
|
|
72
|
-
// Sidebar tree: archive drawer
|
|
73
|
-
'tree.archivedTitle': 'Archived group chats',
|
|
74
|
-
'tree.archived': 'Archived',
|
|
75
|
-
'tree.archivedEmpty': 'No archived projects.',
|
|
76
|
-
'tree.archivedHint': 'Reopen & remove under Project settings · status',
|
|
77
|
-
// Common bits
|
|
78
|
-
'common.member': 'Member',
|
|
79
|
-
'common.modelUnset': 'No model configured',
|
|
80
|
-
'common.archived': 'Archived',
|
|
81
|
-
'common.copyPath': 'Copy path',
|
|
82
|
-
'common.more': '${count} more',
|
|
83
|
-
'common.soloChat': 'Solo chat',
|
|
84
|
-
// Sidebar bottom
|
|
85
|
-
'sidebar.botsOverview': 'Bots overview',
|
|
86
|
-
'sidebar.pendingProposals': 'Proposals awaiting approval',
|
|
87
|
-
'sidebar.usage': 'Usage stats',
|
|
88
|
-
'sidebar.channel': 'Channels',
|
|
89
|
-
'sidebar.secrets': 'Secrets',
|
|
90
|
-
'sidebar.globalConfig': 'Global settings',
|
|
91
|
-
'sidebar.switchToDsh': 'Switch to the native DSH web UI',
|
|
92
|
-
'sidebar.dshNative': 'Native DSH UI',
|
|
93
|
-
'sidebar.tasksActive': '${count} tasks in progress',
|
|
94
|
-
'sidebar.idle': 'Team idle',
|
|
95
|
-
'sidebar.botsCount': '${count} bots',
|
|
96
|
-
'sidebar.pendingReviews': '${count} in review',
|
|
97
|
-
// Topbar stats & actions
|
|
98
|
-
'topbar.taskOne': 'task',
|
|
99
|
-
'topbar.taskMany': 'tasks',
|
|
100
|
-
'topbar.runningOne': 'running',
|
|
101
|
-
'topbar.runningMany': 'running',
|
|
102
|
-
'topbar.refresh': 'Refresh',
|
|
103
|
-
'topbar.mainNav': 'Main navigation',
|
|
104
|
-
'topbar.attention': 'Items awaiting your attention',
|
|
105
|
-
// Key empty states
|
|
106
|
-
'empty.createProjectFirst': 'Create a project workspace first',
|
|
107
|
-
'empty.newProject': 'New project',
|
|
108
|
-
// Group chat view
|
|
109
|
-
'chat.groupTitle': 'Group chat',
|
|
110
|
-
'chat.ownerPrefix': 'Owner',
|
|
111
|
-
'chat.ownerUnset': 'not set',
|
|
112
|
-
'chat.memberOne': '${count} member',
|
|
113
|
-
'chat.memberMany': '${count} members',
|
|
114
|
-
'chat.emptyTitle': 'No messages yet',
|
|
115
|
-
'chat.emptyBody': 'Messages go to the owner bot by default; use <strong>@Bot</strong> to mention a member, or type <strong>/task @Bot title</strong> to create a task directly.',
|
|
116
|
-
'chat.typingQueued': 'Queued for reply…',
|
|
117
|
-
'chat.typingRunning': 'Thinking & replying…',
|
|
118
|
-
'chat.botFallback': 'Bot',
|
|
119
|
-
// Message history pagination
|
|
120
|
-
'chat.loadingOlder': 'Loading…',
|
|
121
|
-
'chat.loadOlder': 'Load ${count} earlier',
|
|
122
|
-
// Group chat side cards
|
|
123
|
-
'card.workspace': 'Workspace',
|
|
124
|
-
'card.projectOwner': 'Project owner',
|
|
125
|
-
'card.ownerRole': 'Owner',
|
|
126
|
-
'card.ownerUnset': 'No owner set',
|
|
127
|
-
'card.activeTasks': 'Active tasks',
|
|
128
|
-
'card.noActiveTasks': 'No tasks in progress.',
|
|
129
|
-
'card.projectMembers': 'Project members',
|
|
130
|
-
'card.noOtherMembers': 'No other members.',
|
|
131
|
-
// Composer (group / solo)
|
|
132
|
-
'composer.replyCancelTitle': 'Cancel quote (Esc)',
|
|
133
|
-
'composer.replyCancel': 'Cancel quote',
|
|
134
|
-
'composer.acLabel': 'Input autocomplete',
|
|
135
|
-
'composer.resizerTitle': 'Drag to resize the composer; double-click to reset height',
|
|
136
|
-
'composer.groupPlaceholder': 'Message the team, or type /task @Bot title',
|
|
137
|
-
'composer.soloPlaceholder': 'Chat with ${name}; /clear resets this session, /remember writes a bot memory',
|
|
138
|
-
'composer.send': 'Send',
|
|
139
|
-
'composer.sendMessage': 'Send message',
|
|
140
|
-
'composer.sendHint': 'to send',
|
|
141
|
-
'composer.attachTitle': 'Add image (PNG / JPEG / GIF / WebP, ≤5MB each, up to 4 per message)',
|
|
142
|
-
'composer.attachLabel': 'Add image',
|
|
143
|
-
'composer.imageAlt': 'Pending image',
|
|
144
|
-
'composer.removeImageTitle': 'Remove this image',
|
|
145
|
-
'composer.removeImageLabel': 'Remove image ${name}',
|
|
146
|
-
// Message actions
|
|
147
|
-
'message.quoteFrom': 'Quoting ${name}',
|
|
148
|
-
'message.quoteTitle': 'Reply with quote',
|
|
149
|
-
'message.quoteLabel': 'Quote this message in a reply',
|
|
150
|
-
'message.copyTitle': 'Copy message',
|
|
151
|
-
'message.copyLabel': 'Copy the original text of this message',
|
|
152
|
-
'message.thinking': 'Thinking',
|
|
153
|
-
// Solo chat view
|
|
154
|
-
'solo.noBotsTitle': 'No bots to dispatch yet',
|
|
155
|
-
'solo.noBotsBody': 'Create a bot to chat with it one-on-one and follow its dispatches.',
|
|
156
|
-
'solo.newBot': 'New bot',
|
|
157
|
-
'solo.roleFallback': 'Team member',
|
|
158
|
-
'solo.runningCount': '${count} running',
|
|
159
|
-
'solo.openConfig': 'Open the centralized config page',
|
|
160
|
-
'solo.configButton': 'Config',
|
|
161
|
-
'solo.emptyTitle': 'Chat privately with ${name}',
|
|
162
|
-
'solo.emptyBody': 'No project context here — good for one-off questions, prompt debugging, or casual chat. File outputs land in its own workspace.',
|
|
163
|
-
'solo.dispatchTarget': 'Dispatch target',
|
|
164
|
-
'solo.activeTasks': 'In-progress tasks',
|
|
165
|
-
'solo.noActive': 'No in-progress tasks.',
|
|
166
|
-
'solo.pendingTasks': 'Pending tasks',
|
|
167
|
-
'solo.noPending': 'No pending tasks.',
|
|
168
|
-
'solo.dispatching': 'Dispatching',
|
|
169
|
-
'solo.noDispatching': 'Nothing is dispatching right now.',
|
|
170
|
-
'solo.subagents': 'Subagents',
|
|
171
|
-
'solo.subagentsBody': 'Bot sessions ship with subagent / subagent_fork / workflow tools and can spawn subagents on the fly to parallelize; no extra orchestration is needed here.',
|
|
172
|
-
'solo.recentRuns': 'Recent dispatch runs',
|
|
173
|
-
'solo.noRuns': 'No dispatch runs yet.',
|
|
174
|
-
'solo.workspace': 'Dedicated workspace',
|
|
175
|
-
// Task statuses (STATUS table mapping)
|
|
176
|
-
'status.backlog': 'Backlog',
|
|
177
|
-
'status.todo': 'To do',
|
|
178
|
-
'status.in_progress': 'In progress',
|
|
179
|
-
'status.blocked': 'Blocked',
|
|
180
|
-
'status.in_review': 'In review',
|
|
181
|
-
'status.done': 'Done',
|
|
182
|
-
'status.canceled': 'Canceled',
|
|
183
|
-
// Run statuses (RUN_STATUS table mapping)
|
|
184
|
-
'runStatus.queued': 'Queued',
|
|
185
|
-
'runStatus.running': 'Running',
|
|
186
|
-
'runStatus.succeeded': 'Succeeded',
|
|
187
|
-
'runStatus.failed': 'Failed',
|
|
188
|
-
'runStatus.canceled': 'Canceled',
|
|
189
|
-
// Run kinds (RUN_KIND table mapping)
|
|
190
|
-
'runKind.task_run': 'Task run',
|
|
191
|
-
'runKind.owner_task_run': 'Owner task',
|
|
192
|
-
'runKind.solo_chat_run': 'Solo reply',
|
|
193
|
-
'runKind.chat_run': 'Group run',
|
|
194
|
-
'runKind.dm_run': 'DM run',
|
|
195
|
-
'runKind.dm_reply': 'DM reply',
|
|
196
|
-
'runKind.memory_review': 'Memory review',
|
|
197
|
-
// Bot DM collapsible panel
|
|
198
|
-
'dm.title': 'Bot DMs',
|
|
199
|
-
'dm.toggle': 'Expand / collapse bot DMs',
|
|
200
|
-
'dm.empty': 'Direct interactions between bots via <code>team_message_bot</code> show up here.',
|
|
201
|
-
'dm.pending': 'Awaiting reply',
|
|
202
|
-
'dm.delivered': 'Delivered',
|
|
203
|
-
'dm.replied': 'Replied',
|
|
204
|
-
'dm.failed': 'Failed',
|
|
205
|
-
'dm.repliedAt': 'Replied at ${time}',
|
|
206
|
-
// Task time budget (DSHBOTS-129)
|
|
207
|
-
'taskForm.timeBudgetLabel': 'Time budget (minutes)',
|
|
208
|
-
'taskForm.timeBudgetPlaceholder': 'Optional; leave blank for none',
|
|
209
|
-
'task.timeBudgetValue': '${minutes} min',
|
|
210
|
-
'task.timeBudgetNote': 'Hard limit: the run is aborted on expiry; the shorter of this budget and the global run timeout applies',
|
|
211
|
-
// Task rejection (DSHBOTS-141): terminal tasks back to backlog
|
|
212
|
-
'task.rejectAction': 'Reject',
|
|
213
|
-
'task.rejectTitle': 'Move a done/canceled task back to the backlog; terminal timestamps are cleared',
|
|
214
|
-
'task.rejectConfirm': 'Move "${title}" back to the backlog?',
|
|
215
|
-
'task.rejectDone': 'Rejected; task moved back to the backlog',
|
|
216
|
-
// Global config: UI language (DSHBOTS-162); auto = follow the DSH host setting
|
|
217
|
-
'settings.uiLanguage': 'UI language',
|
|
218
|
-
'settings.uiLanguageAuto': 'Auto',
|
|
219
|
-
'settings.uiLanguageZh': '中文',
|
|
220
|
-
'settings.uiLanguageEn': 'English',
|
|
221
|
-
'settings.uiLanguageHint': 'Auto = follow the DSH host language setting.',
|
|
222
|
-
'settings.uiLanguageSave': 'Save language',
|
|
223
|
-
// Project config: code hygiene (DSHBOTS-172): per-file line limit
|
|
224
|
-
'settings.codeHygieneTitle': 'Code hygiene',
|
|
225
|
-
'settings.codeHygieneLimit': 'Per-file line limit',
|
|
226
|
-
'settings.codeHygieneHint': 'Agreed maximum lines per source file (default 800, 0 = disable). After every run, the project workspace is scanned; any file exceeding 110% of the limit triggers a system directive in the group chat asking the director to schedule a split task.',
|
|
227
|
-
// High-frequency toasts
|
|
228
|
-
'toast.copied': 'Copied',
|
|
229
|
-
'toast.wechatConnected': 'WeChat channel connected',
|
|
230
|
-
'toast.loadOlderFailed': 'Failed to load history',
|
|
231
|
-
'toast.fileRejected': '${name}: ${reason}',
|
|
232
|
-
'toast.fileReadFailed': '${name}: failed to read',
|
|
233
|
-
'toast.fileFallback': 'file',
|
|
234
|
-
'toast.attachUnsupported': "This command doesn't support images; remove them first",
|
|
235
|
-
'toast.chatCleared': 'Cleared ${count} messages',
|
|
236
|
-
'toast.memorySaved': 'Bot memory saved',
|
|
237
|
-
'toast.languageSwitched': 'UI language switched',
|
|
238
|
-
'toast.uiLanguageSaved': 'UI language saved',
|
|
12
|
+
...common,
|
|
13
|
+
...nav,
|
|
14
|
+
...chat,
|
|
15
|
+
...tasks,
|
|
16
|
+
...usage,
|
|
17
|
+
...settings,
|
|
18
|
+
...wechat,
|
|
239
19
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// ui/i18n/zh/chat.ts —— 中文文案字典:chat 域(DSHBOTS-233)
|
|
2
|
+
export default {
|
|
3
|
+
// 群聊视图
|
|
4
|
+
"chat.groupTitle": "群聊",
|
|
5
|
+
"chat.ownerPrefix": "总监",
|
|
6
|
+
"chat.ownerUnset": "未设置",
|
|
7
|
+
"chat.memberOne": "${count} 个成员",
|
|
8
|
+
"chat.memberMany": "${count} 个成员",
|
|
9
|
+
"chat.emptyTitle": "还没有人说话",
|
|
10
|
+
"chat.emptyBody": "直接发言会交给总监 Bot;用 <strong>@Bot</strong> 点名成员,或输入 <strong>/task @Bot 任务标题</strong> 直接创建任务。",
|
|
11
|
+
"chat.typingQueued": "排队等待回复…",
|
|
12
|
+
"chat.typingRunning": "正在思考与回复…",
|
|
13
|
+
"chat.botFallback": "Bot",
|
|
14
|
+
// 历史消息分页
|
|
15
|
+
"chat.loadingOlder": "加载中…",
|
|
16
|
+
"chat.loadOlder": "加载前 ${count} 条",
|
|
17
|
+
// 群聊侧栏卡片
|
|
18
|
+
"card.workspace": "工作区",
|
|
19
|
+
"card.projectOwner": "项目总监",
|
|
20
|
+
"card.ownerRole": "总监",
|
|
21
|
+
"card.ownerUnset": "未设置总监",
|
|
22
|
+
"card.activeTasks": "活跃任务",
|
|
23
|
+
"card.noActiveTasks": "没有进行中的任务。",
|
|
24
|
+
"card.projectMembers": "项目成员",
|
|
25
|
+
"card.noOtherMembers": "没有其他成员。",
|
|
26
|
+
// composer(群聊 / 单聊共用区)
|
|
27
|
+
"composer.replyCancelTitle": "取消引用(Esc)",
|
|
28
|
+
"composer.replyCancel": "取消引用",
|
|
29
|
+
"composer.acLabel": "输入补全",
|
|
30
|
+
"composer.resizerTitle": "拖动调整输入框高度,双击恢复自动高度",
|
|
31
|
+
"composer.groupPlaceholder": "给团队发消息,或输入 /task @Bot 任务标题",
|
|
32
|
+
"composer.soloPlaceholder": "和 ${name} 对话,/clear 清空本会话,/remember 内容 写入 Bot 记忆",
|
|
33
|
+
"composer.send": "发送",
|
|
34
|
+
"composer.sendMessage": "发送消息",
|
|
35
|
+
"composer.sendHint": "发送",
|
|
36
|
+
"composer.attachTitle": "添加图片(PNG / JPEG / GIF / WebP,单张 ≤5MB,一条最多 4 张)",
|
|
37
|
+
"composer.attachLabel": "添加图片",
|
|
38
|
+
"composer.imageAlt": "待发送图片",
|
|
39
|
+
"composer.removeImageTitle": "移除这张图片",
|
|
40
|
+
"composer.removeImageLabel": "移除图片 ${name}",
|
|
41
|
+
// 消息操作
|
|
42
|
+
"message.quoteFrom": "引用自 ${name}",
|
|
43
|
+
"message.quoteTitle": "引用回复",
|
|
44
|
+
"message.quoteLabel": "引用回复这条消息",
|
|
45
|
+
"message.copyTitle": "复制消息",
|
|
46
|
+
"message.copyLabel": "复制这条消息的原文",
|
|
47
|
+
"message.thinking": "思考过程",
|
|
48
|
+
// 单聊视图
|
|
49
|
+
"solo.noBotsTitle": "还没有可调度的 Bot",
|
|
50
|
+
"solo.noBotsBody": "先创建一个 Bot,就可以和它一对一对话,并查看它的调度。",
|
|
51
|
+
"solo.newBot": "新建 Bot",
|
|
52
|
+
"solo.roleFallback": "团队成员",
|
|
53
|
+
"solo.runningCount": "${count} 个运行中",
|
|
54
|
+
"solo.openConfig": "打开集中配置页",
|
|
55
|
+
"solo.configButton": "配置",
|
|
56
|
+
"solo.emptyTitle": "和 ${name} 单独聊聊",
|
|
57
|
+
"solo.emptyBody": "这里没有项目上下文,适合单独请教、调试指令或闲聊。需要文件产出时会落在它自己的工作区。",
|
|
58
|
+
"solo.dispatchTarget": "调度对象",
|
|
59
|
+
"solo.activeTasks": "在办任务",
|
|
60
|
+
"solo.noActive": "没有在办任务。",
|
|
61
|
+
"solo.pendingTasks": "待办任务",
|
|
62
|
+
"solo.noPending": "没有待办任务。",
|
|
63
|
+
"solo.dispatching": "正在调度",
|
|
64
|
+
"solo.noDispatching": "当前没有运行中的调度。",
|
|
65
|
+
"solo.subagents": "子智能体",
|
|
66
|
+
"solo.subagentsBody": "内置 subagent / subagent_fork / workflow,可在执行中派生并行子智能体。",
|
|
67
|
+
"solo.recentRuns": "最近调度运行",
|
|
68
|
+
"solo.noRuns": "还没有调度运行。",
|
|
69
|
+
"solo.workspace": "专属工作区",
|
|
70
|
+
// DSHBOTS-220: ui/modules 文案(原文即键)
|
|
71
|
+
"${head}:${summary}": "${head}:${summary}",
|
|
72
|
+
"${source}|${head}:${summary}": "${source}|${head}:${summary}",
|
|
73
|
+
"${minutes} 分 ${seconds} 秒后自动拒绝": "${minutes} 分 ${seconds} 秒后自动拒绝",
|
|
74
|
+
"${minutes} 分后自动拒绝": "${minutes} 分后自动拒绝",
|
|
75
|
+
"${seconds} 秒后自动拒绝": "${seconds} 秒后自动拒绝",
|
|
76
|
+
"DSH 审批请求": "DSH 审批请求",
|
|
77
|
+
"一条消息最多 ${MAX_IMAGES_PER_MESSAGE} 张图片": "一条消息最多 ${MAX_IMAGES_PER_MESSAGE} 张图片",
|
|
78
|
+
"专属工作区": "专属工作区",
|
|
79
|
+
"个问题": "个问题",
|
|
80
|
+
"仅支持 PNG / JPEG / GIF / WebP 格式": "仅支持 PNG / JPEG / GIF / WebP 格式",
|
|
81
|
+
"从左侧 Bots 树点一个 Bot 进入调度页,再点「配置」来到这里。": "从左侧 Bots 树点一个 Bot 进入调度页,再点「配置」来到这里。",
|
|
82
|
+
"保存失败,请重试。": "保存失败,请重试。",
|
|
83
|
+
"允许一次": "允许一次",
|
|
84
|
+
"关闭图片预览": "关闭图片预览",
|
|
85
|
+
"写入项目级记忆:/remember 内容": "写入项目级记忆:/remember 内容",
|
|
86
|
+
"写项目记忆": "写项目记忆",
|
|
87
|
+
"创建任务并排队执行:/task @成员 标题": "创建任务并排队执行:/task @成员 标题",
|
|
88
|
+
"剩余 ${minutes} 分 ${seconds} 秒": "剩余 ${minutes} 分 ${seconds} 秒",
|
|
89
|
+
"剩余 ${seconds} 秒": "剩余 ${seconds} 秒",
|
|
90
|
+
"加载中…": "加载中…",
|
|
91
|
+
"单张图片不能超过 5MB": "单张图片不能超过 5MB",
|
|
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
|
+
"请求使用": "请求使用",
|
|
128
|
+
"请求提权": "请求提权",
|
|
129
|
+
"读取失败": "读取失败",
|
|
130
|
+
"运行统计": "运行统计",
|
|
131
|
+
"返回对话": "返回对话",
|
|
132
|
+
"还没有选择": "还没有选择",
|
|
133
|
+
"选择 · Enter 或 Tab 插入 · Esc 关闭": "选择 · Enter 或 Tab 插入 · Esc 关闭",
|
|
134
|
+
"问)": "问)",
|
|
135
|
+
// DSHBOTS-246:全量 t() 实参清点补齐(原文即键)
|
|
136
|
+
"(无说明)": "(无说明)",
|
|
137
|
+
"(未选择)": "(未选择)",
|
|
138
|
+
"(共": "(共",
|
|
139
|
+
"(未命名项目)": "(未命名项目)",
|
|
140
|
+
}
|