dsh-team-bots 0.2.289 → 0.2.338
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 +12 -136
- package/docs/README.zh.md +15 -139
- 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 +10 -5
- package/src/services/approvals.js +109 -24
- 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 +99 -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 +119 -7
- 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 +139 -13
- package/src/services/secrets.js +1 -1
- package/src/services/system.js +23 -6
- package/src/services/task-notify.js +49 -7
- package/src/services/task-stage.js +4 -0
- package/src/services/tasks.js +121 -12
- 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 +56 -52
- package/ui/i18n/en/chat.js +140 -0
- package/ui/i18n/en/common.js +189 -0
- package/ui/i18n/en/nav.js +90 -0
- package/ui/i18n/en/settings.js +354 -0
- package/ui/i18n/en/tasks.js +232 -0
- package/ui/i18n/en/usage.js +141 -0
- package/ui/i18n/en/wechat.js +24 -0
- package/ui/i18n/en.js +17 -237
- package/ui/i18n/zh/chat.js +140 -0
- package/ui/i18n/zh/common.js +189 -0
- package/ui/i18n/zh/nav.js +90 -0
- package/ui/i18n/zh/settings.js +354 -0
- package/ui/i18n/zh/tasks.js +232 -0
- package/ui/i18n/zh/usage.js +141 -0
- package/ui/i18n/zh/wechat.js +24 -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 +127 -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 +195 -202
- 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 +168 -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 +59 -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,232 @@
|
|
|
1
|
+
// ui/i18n/en/tasks.ts —— English copy dictionary: tasks domain (DSHBOTS-233)
|
|
2
|
+
export default {
|
|
3
|
+
// Task statuses (STATUS table mapping)
|
|
4
|
+
"status.backlog": "Backlog",
|
|
5
|
+
"status.todo": "To do",
|
|
6
|
+
"status.in_progress": "In progress",
|
|
7
|
+
"status.blocked": "Blocked",
|
|
8
|
+
"status.in_review": "In review",
|
|
9
|
+
"status.done": "Done",
|
|
10
|
+
"status.canceled": "Canceled",
|
|
11
|
+
// Run statuses (RUN_STATUS table mapping)
|
|
12
|
+
"runStatus.queued": "Queued",
|
|
13
|
+
"runStatus.running": "Running",
|
|
14
|
+
"runStatus.succeeded": "Succeeded",
|
|
15
|
+
"runStatus.failed": "Failed",
|
|
16
|
+
"runStatus.canceled": "Canceled",
|
|
17
|
+
// Run kinds (RUN_KIND table mapping)
|
|
18
|
+
"runKind.task_run": "Task run",
|
|
19
|
+
"runKind.owner_task_run": "Owner task",
|
|
20
|
+
"runKind.solo_chat_run": "Solo reply",
|
|
21
|
+
"runKind.chat_run": "Group run",
|
|
22
|
+
"runKind.dm_run": "DM run",
|
|
23
|
+
"runKind.dm_reply": "DM reply",
|
|
24
|
+
"runKind.memory_review": "Memory review",
|
|
25
|
+
// Bot DM collapsible panel
|
|
26
|
+
"dm.title": "Bot DMs",
|
|
27
|
+
"dm.toggle": "Expand / collapse bot DMs",
|
|
28
|
+
"dm.empty": "Direct interactions between bots via <code>team_message_bot</code> show up here.",
|
|
29
|
+
"dm.pending": "Awaiting reply",
|
|
30
|
+
"dm.delivered": "Delivered",
|
|
31
|
+
"dm.replied": "Replied",
|
|
32
|
+
"dm.failed": "Failed",
|
|
33
|
+
"dm.repliedAt": "Replied at ${time}",
|
|
34
|
+
// Task time budget (DSHBOTS-129)
|
|
35
|
+
"taskForm.timeBudgetLabel": "Time budget (minutes)",
|
|
36
|
+
"taskForm.timeBudgetPlaceholder": "Optional; leave blank for none",
|
|
37
|
+
"task.timeBudgetValue": "${minutes} min",
|
|
38
|
+
"task.timeBudgetNote": "Hard limit: the run is aborted on expiry; the shorter of this budget and the global run timeout applies",
|
|
39
|
+
// Task rejection (DSHBOTS-141): terminal tasks back to backlog
|
|
40
|
+
"task.rejectAction": "Reject",
|
|
41
|
+
"task.rejectTitle": "Move a done/canceled task back to the backlog; terminal timestamps are cleared",
|
|
42
|
+
"task.rejectConfirm": "Move \"${title}\" back to the backlog?",
|
|
43
|
+
"task.rejectDone": "Rejected; task moved back to the backlog",
|
|
44
|
+
// Task board
|
|
45
|
+
"task.dragHint": "Drag a task row to change its status; click a group header to collapse it.",
|
|
46
|
+
"task.searchPlaceholder": "Search tasks, IDs, or labels",
|
|
47
|
+
"task.filterAllStatus": "All statuses",
|
|
48
|
+
"task.filterAllMembers": "All members",
|
|
49
|
+
"task.filterTimeLabel": "Filter by terminal time",
|
|
50
|
+
"task.timeToday": "Today",
|
|
51
|
+
"task.time7d": "Last 7 days",
|
|
52
|
+
"task.time30d": "Last 30 days",
|
|
53
|
+
"task.timeAll": "All time",
|
|
54
|
+
"task.sortLabel": "Task sort",
|
|
55
|
+
"task.sortTitle": "Sorts within a group only; does not affect grouping or hierarchy",
|
|
56
|
+
"task.sortCreatedDesc": "Created new → old",
|
|
57
|
+
"task.sortCreatedAsc": "Created old → new",
|
|
58
|
+
"task.sortCompletedDesc": "Completed new → old",
|
|
59
|
+
"task.sortCompletedAsc": "Completed old → new",
|
|
60
|
+
"task.sortPriorityDesc": "Priority high → low",
|
|
61
|
+
"task.sortPriorityAsc": "Priority low → high",
|
|
62
|
+
"task.emptyFiltered": "No matching tasks",
|
|
63
|
+
"task.empty": "The task board is empty",
|
|
64
|
+
"task.collapse": "Collapse",
|
|
65
|
+
"task.expand": "Expand",
|
|
66
|
+
"task.groupSuffix": "group",
|
|
67
|
+
"task.priorityTitle": "Priority: ${label}",
|
|
68
|
+
"task.reviewIdleTitle": "Review idle for over ${minutes} minutes; please close it out",
|
|
69
|
+
"task.reviewVerdictTitle": "Review idle for over ${minutes} minutes; please close it out | Verdict ${verdict}: ${basis}",
|
|
70
|
+
"task.reviewIdle": "Idle",
|
|
71
|
+
"task.reviewOwner": "Director reviewing",
|
|
72
|
+
"task.reviewYou": "Waiting for your review",
|
|
73
|
+
"task.reviewPending": "Verifying",
|
|
74
|
+
"task.reviewUnverified": "Unverified",
|
|
75
|
+
"task.childrenSuffix": "subtasks",
|
|
76
|
+
"task.unassigned": "Unassigned",
|
|
77
|
+
"task.countBadge": "${count} tasks",
|
|
78
|
+
// Task stage copy: the backend taskStageLabel lookup returns Chinese; the UI keys on that text.
|
|
79
|
+
"等待你回答": "Waiting for your answer",
|
|
80
|
+
"等待验收": "Waiting for review",
|
|
81
|
+
"需要你处理": "Needs your attention",
|
|
82
|
+
"等人处理": "Waiting for someone",
|
|
83
|
+
"等外部交付": "Waiting for external delivery",
|
|
84
|
+
"正在执行": "Running",
|
|
85
|
+
"排队中": "Queued",
|
|
86
|
+
"待执行": "To do",
|
|
87
|
+
"后台等待": "Waiting in background",
|
|
88
|
+
"空闲": "Idle",
|
|
89
|
+
// DSHBOTS-220: ui/modules copy
|
|
90
|
+
"${model} 已恢复默认价格": "${model} restored to default price",
|
|
91
|
+
"Bot 已创建": "Bot created",
|
|
92
|
+
"Bot 配置已更新": "Bot settings updated",
|
|
93
|
+
"」:关闭后补全不再列出,Bot 会被明确告知不要调用;技能池本身不变。": "\\\": once disabled, autocomplete no longer lists it and the Bot is explicitly told not to call it; the skill pool itself is unchanged.",
|
|
94
|
+
"三个根扫描发现;同名技能按": "discovered by scanning three roots; same-named skills use",
|
|
95
|
+
"不通过": "Fail",
|
|
96
|
+
"个": " mismatches",
|
|
97
|
+
"个任务阻塞": " tasks",
|
|
98
|
+
"个待审批": " pending approvals",
|
|
99
|
+
"个运行,差异": " runs, ",
|
|
100
|
+
"从项目目录(设了生产目录以生产目录为准,见下方实际路径)的": "from the project directory (if a production directory is set, that takes precedence; see the actual path below)",
|
|
101
|
+
"价格需要是数字": "Price must be a number",
|
|
102
|
+
"任务中": "Working",
|
|
103
|
+
"任务完成后会自动沉淀交付经验。": "Delivery lessons are automatically captured after a task completes.",
|
|
104
|
+
"任务已保存": "Task saved",
|
|
105
|
+
"任务排序": "Task sort",
|
|
106
|
+
"优先取用": "takes precedence",
|
|
107
|
+
"停止": "Stop",
|
|
108
|
+
"全部": "All",
|
|
109
|
+
"全部拒绝": "Reject all",
|
|
110
|
+
"全部通过并应用": "Approve and apply all",
|
|
111
|
+
"共享技能池": "Shared skill pool",
|
|
112
|
+
"决定": "decided",
|
|
113
|
+
"删除记忆": "Delete memory",
|
|
114
|
+
"即可。": "and that's it.",
|
|
115
|
+
"去重。这些技能只在当前项目可用,且优先于同名共享技能。": "deduplication order. These skills are only available in this project and take precedence over same-named shared skills.",
|
|
116
|
+
"变更需经人工审批后生效。": "Changes take effect only after manual approval.",
|
|
117
|
+
"可以提交自我改进建议,但无法自行批准。": "Bots can submit self-improvement suggestions but cannot approve them on their own.",
|
|
118
|
+
"合计": "Total",
|
|
119
|
+
"同名技能也出现在": "Same-named skills also appear in",
|
|
120
|
+
"含子任务": "Incl. subtasks",
|
|
121
|
+
"命令不能为空": "Command cannot be empty",
|
|
122
|
+
"命令历史": "Command history",
|
|
123
|
+
"在技能根目录放置技能文件,或提交一个技能提案并审批。": "Place skill files in the skill root directory, or submit a skill proposal for approval.",
|
|
124
|
+
"在项目目录的 .agents、.claude 或 .codex 下放置": "Place under .agents, .claude, or .codex in the project directory",
|
|
125
|
+
"审批人": "Approver",
|
|
126
|
+
"密钥值至少 8 个字符": "Key value must be at least 8 characters",
|
|
127
|
+
"密钥已保存": "Key saved",
|
|
128
|
+
"密钥请求已批准并物化": "Key request approved and materialized",
|
|
129
|
+
"对账完成:检查": "Reconciliation complete: checked",
|
|
130
|
+
"将": "Remove ",
|
|
131
|
+
"工作流提案尚未支持执行。": "Workflow proposals do not support execution yet.",
|
|
132
|
+
"已创建": "Created",
|
|
133
|
+
"已完成": "Done",
|
|
134
|
+
"已生效": "In effect",
|
|
135
|
+
"已移除追踪,管理数据已清理": "Tracking removed; management data cleaned up",
|
|
136
|
+
"已邀请加入项目": "Invited to the project",
|
|
137
|
+
"开关只作用于当前项目「": "The toggle only applies to the current project \\\"",
|
|
138
|
+
"当前项目技能": "Current project skills",
|
|
139
|
+
"待办": "To-do",
|
|
140
|
+
"待审批技能提案": "Pending skill proposals",
|
|
141
|
+
"待审批提案": "Pending proposals",
|
|
142
|
+
"待评估": "To be evaluated",
|
|
143
|
+
"总览": "Overview",
|
|
144
|
+
"恢复": "Restore",
|
|
145
|
+
"成员状态与用量按本项目口径聚合;移除后该 Bot 不再接收本项目的提及与新任务。": "Member status and usage are aggregated per this project; after removal, the Bot no longer receives mentions or new tasks in this project.",
|
|
146
|
+
"打开该 Bot 的调度页": "Open this Bot's scheduling page",
|
|
147
|
+
"执行": "Run",
|
|
148
|
+
"技能内容不能为空": "Skill content cannot be empty",
|
|
149
|
+
"技能内容为空": "Skill content is empty",
|
|
150
|
+
"技能变更走提案和审批,不直接覆盖。": "Skill changes go through proposals and approval; they are not overwritten directly.",
|
|
151
|
+
"技能名": "Skill name",
|
|
152
|
+
"技能根目录": "Skill root directory",
|
|
153
|
+
"技能池为空": "Skill pool is empty",
|
|
154
|
+
"把 ${model} 的价格恢复为配置默认值?": "Restore ${model}'s price to the configured default?",
|
|
155
|
+
"提案已提交审批": "Proposal submitted for approval",
|
|
156
|
+
"搜索": "Search",
|
|
157
|
+
"搜索结果(": "Search results (",
|
|
158
|
+
"搜索记忆主题或内容": "Search memory topics or content",
|
|
159
|
+
"新建提案": "New proposal",
|
|
160
|
+
"无配置内容": "No configuration content",
|
|
161
|
+
"暂无输出。执行一条命令后,这里显示实时输出(最多保留末尾 200KB)。": "No output yet. After running a command, live output appears here (last 200KB kept).",
|
|
162
|
+
"有任务正在写该项目工作区,终端命令与它并发需自担风险": "A task is writing to this project's workspace; running terminal commands concurrently is at your own risk",
|
|
163
|
+
"有命令正在运行…": "A command is running…",
|
|
164
|
+
"未命名提案": "Untitled proposal",
|
|
165
|
+
"未归属 Bot": "Unassigned Bot",
|
|
166
|
+
"未知": "Unknown",
|
|
167
|
+
"未配置": "Not configured",
|
|
168
|
+
"未配置模型": "No model configured",
|
|
169
|
+
"本卡": "This card",
|
|
170
|
+
"本项目任务:已完成": "This project's tasks: done",
|
|
171
|
+
"本项目关闭": "Disable in this project",
|
|
172
|
+
"本项目已关闭": "Disabled in this project",
|
|
173
|
+
"条待审": " pending",
|
|
174
|
+
"条待审提案": " pending proposals",
|
|
175
|
+
"查看全部 Bot 或新建": "View all Bots or create one",
|
|
176
|
+
"查看差异": "View diff",
|
|
177
|
+
"模型不能为空": "Model cannot be empty",
|
|
178
|
+
"模型价格已保存,新调用将按此计价": "Model price saved; new calls will use it",
|
|
179
|
+
"次": " calls",
|
|
180
|
+
"次成功": " succeeded",
|
|
181
|
+
"没有匹配的记忆。": "No matching memories.",
|
|
182
|
+
"清除": "Clear",
|
|
183
|
+
"灰度": "Canary",
|
|
184
|
+
"点击回填到输入框": "Click to fill the input",
|
|
185
|
+
"父任务不存在或已刷新,请重试": "The parent task no longer exists or has been refreshed. Please try again.",
|
|
186
|
+
"版本历史(": "Version history (",
|
|
187
|
+
"用量": "Usage",
|
|
188
|
+
"由": "By ",
|
|
189
|
+
"移出项目": "from the project",
|
|
190
|
+
"空闲中": "Idle",
|
|
191
|
+
"系统设置已保存": "System settings saved",
|
|
192
|
+
"终端": "Terminal",
|
|
193
|
+
"缓存写": "Cache write",
|
|
194
|
+
"缓存读": "Cache read",
|
|
195
|
+
"缓存读 / 写": "Cache read / write",
|
|
196
|
+
"置信度": "Confidence",
|
|
197
|
+
"至少创建一个 Bot 才能运行项目群聊和任务。": "Create at least one Bot to run project group chat and tasks.",
|
|
198
|
+
"记忆": "Memories",
|
|
199
|
+
"记忆已写入": "Memory written",
|
|
200
|
+
"记忆已更新": "Memory updated",
|
|
201
|
+
"评估": "Evaluation",
|
|
202
|
+
"评估不通过": "Evaluation failed",
|
|
203
|
+
"评估通过": "Evaluation passed",
|
|
204
|
+
"评论已添加": "Comment added",
|
|
205
|
+
"评论已直通执行中的会话": "Comment passed through to the running session",
|
|
206
|
+
"请先创建项目": "Create a project first",
|
|
207
|
+
"请先选择一个 Bot": "Select a Bot first",
|
|
208
|
+
"调度": "Schedule",
|
|
209
|
+
"转正全量": "Promote to full rollout",
|
|
210
|
+
"软移除:数据保留,仅停止展示": "Soft removal: data kept, only hidden from view",
|
|
211
|
+
"输入": "Input",
|
|
212
|
+
"输入命令": "Enter a command",
|
|
213
|
+
"输出": "Output",
|
|
214
|
+
"运行时效已保存": "Run limits saved",
|
|
215
|
+
"还没有": "No",
|
|
216
|
+
"还没有执行过命令。": "No commands run yet.",
|
|
217
|
+
"还没有记忆": "No memories yet",
|
|
218
|
+
"还没有进化提案": "No evolution proposals yet",
|
|
219
|
+
"进入一个项目后可按项目关闭特定技能。": "Once you open a project, you can disable specific skills per project.",
|
|
220
|
+
"通用成员": "General member",
|
|
221
|
+
"通过": "Approve",
|
|
222
|
+
"通过并应用": "Approve and apply",
|
|
223
|
+
"重新扫描": "Rescan",
|
|
224
|
+
"项目内没有技能": "No skills in this project",
|
|
225
|
+
"项目已创建": "Project created",
|
|
226
|
+
"项目级密钥必须选择项目": "Project-level keys require a project",
|
|
227
|
+
"项目设置已保存": "Project settings saved",
|
|
228
|
+
"(": " (",
|
|
229
|
+
// DSHBOTS-246: keys added by the full t() literal audit
|
|
230
|
+
"(待办不含已取消)": " (todo excludes canceled)",
|
|
231
|
+
",按": "; ",
|
|
232
|
+
}
|
|
@@ -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,24 @@
|
|
|
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
|
+
"微信扫码授权 ClawBot;手机上确认后此处会自动变为已连接。": "Scan the QR code with WeChat to authorize ClawBot; after confirming on your phone, this will automatically show as connected.",
|
|
15
|
+
"微信通道未启用": "WeChat channel not enabled",
|
|
16
|
+
"微信验证码": "WeChat verification code",
|
|
17
|
+
"扫码后手机上的验证码": "The verification code shown on your phone after scanning",
|
|
18
|
+
"扫码授权成功后自动把授权者绑定为管理员;任务完成会主动推送。": "After successful QR authorization, the authorizer is automatically bound as an administrator; task completion is pushed proactively.",
|
|
19
|
+
"扫码绑定": "Scan to bind",
|
|
20
|
+
"提交验证码": "Submit code",
|
|
21
|
+
"请输入微信验证码": "Enter the WeChat verification code",
|
|
22
|
+
"退出绑定后需要重新扫码才能恢复推送。确认退出?": "After unbinding, you must scan the QR code again to restore push. Unbind now?",
|
|
23
|
+
"验证码已提交": "Verification code submitted",
|
|
24
|
+
}
|