hivedesk 1.0.0 → 1.0.2
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/CHANGELOG.md +143 -111
- package/README.md +307 -303
- package/desktop/controller.js +85 -7
- package/desktop/native.js +4 -1
- package/desktop/release-notes/1.0.1.json +12 -0
- package/desktop/release-notes/1.0.2.json +12 -0
- package/desktop/scripts/package.mjs +11 -0
- package/desktop/shell.html +5 -2
- package/desktop/workarea.js +440 -0
- package/i18n/README.pt-BR.md +308 -304
- package/i18n/de.json +247 -4
- package/i18n/en.json +247 -4
- package/i18n/es.json +247 -4
- package/i18n/fr.json +247 -4
- package/i18n/it.json +247 -4
- package/i18n/ja.json +247 -4
- package/i18n/ko.json +247 -4
- package/i18n/parts/downloads.de.json +29 -0
- package/i18n/parts/downloads.en.json +29 -0
- package/i18n/parts/downloads.es.json +29 -0
- package/i18n/parts/downloads.fr.json +29 -0
- package/i18n/parts/downloads.it.json +29 -0
- package/i18n/parts/downloads.ja.json +29 -0
- package/i18n/parts/downloads.ko.json +29 -0
- package/i18n/parts/downloads.pt-BR.json +29 -0
- package/i18n/parts/downloads.ru.json +29 -0
- package/i18n/parts/downloads.zh-CN.json +29 -0
- package/i18n/parts/office.de.json +184 -0
- package/i18n/parts/office.en.json +184 -0
- package/i18n/parts/office.es.json +184 -0
- package/i18n/parts/office.fr.json +184 -0
- package/i18n/parts/office.it.json +184 -0
- package/i18n/parts/office.ja.json +184 -0
- package/i18n/parts/office.ko.json +184 -0
- package/i18n/parts/office.pt-BR.json +184 -0
- package/i18n/parts/office.ru.json +184 -0
- package/i18n/parts/office.zh-CN.json +184 -0
- package/i18n/pt-BR.json +247 -4
- package/i18n/ru.json +247 -4
- package/i18n/zh-CN.json +247 -4
- package/package.json +3 -2
- package/src/brain/manager.js +23 -7
- package/src/brain/models.js +146 -30
- package/src/brain/runtime.js +61 -13
- package/src/crew/domains/flow.js +2 -1
- package/src/crew/engine.js +172 -22
- package/src/crew/legacy.js +72 -0
- package/src/crew/planner.js +14 -1
- package/src/crew/talk.js +110 -3
- package/src/crew/taskgraph.js +12 -2
- package/src/crew/worker.js +60 -2
- package/src/index.js +4 -1
- package/src/p2p/doctor.js +4 -1
- package/src/phone/hub.js +15 -3
- package/src/phone/port.js +1 -1
- package/src/replay/reduce.js +1 -0
- package/src/tools/check.js +2 -0
- package/src/voice/index.js +1 -1
- package/src/voice/piper.js +10 -4
- package/src/voice/store.js +2 -1
- package/src/voice/whisper.js +63 -25
- package/ui/city/activity.js +4 -1
- package/ui/city/city.js +5 -5
- package/ui/city/scene.js +2 -1
- package/ui/css/hive.css +20 -0
- package/ui/js/dock.js +2 -2
- package/ui/js/dom.js +23 -18
- package/ui/js/i18n.js +12 -0
- package/ui/js/main.js +43 -3
- package/ui/js/md.js +130 -0
- package/ui/js/net.js +6 -0
- package/ui/js/palette.js +2 -2
- package/ui/js/store.js +20 -2
- package/ui/js/topbar.js +2 -2
- package/ui/js/voice/index.js +3 -2
- package/ui/js/widgets/brief.js +28 -10
- package/ui/js/widgets/chat.js +16 -4
- package/ui/js/widgets/files.js +3 -3
- package/ui/js/widgets/memory.js +3 -3
- package/ui/js/widgets/replay.js +3 -3
- package/ui/js/widgets/settings.js +2 -2
- package/ui/js/widgets/timeline.js +2 -2
- package/ui/js/widgets/worker.js +17 -6
- package/ui/models/index.js +3 -2
- package/ui/models/window.js +2 -2
- package/ui/office/office.js +145 -106
- package/ui/office/popout.js +4 -3
- package/ui/office/scene.js +47 -28
- package/ui/phone/core/client.js +11 -5
- package/ui/phone/desktop.js +2 -1
- package/ui/widget.html +8 -8
- package/ui/widget.js +35 -20
- package/ui/workbench/searchview.js +3 -3
package/i18n/zh-CN.json
CHANGED
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"boot.failed.retry": "重试",
|
|
56
56
|
"boot.failed.text": "桌面的某个部分加载失败。请确认 hivedesk 仍在终端中运行,然后重试。",
|
|
57
57
|
"boot.failed.title": "蜂巢未能打开",
|
|
58
|
+
"boot.offline.text": "此窗口无法连接这台电脑上的 hivedesk({host})。它会自动继续尝试。如果 hivedesk 已关闭,请重新启动,然后点击重试。",
|
|
59
|
+
"boot.offline.title": "hivedesk 没有响应",
|
|
58
60
|
"boot.text": "正在连接这台电脑上的 hivedesk。",
|
|
59
61
|
"boot.title": "正在打开蜂巢",
|
|
60
62
|
"brain.auth.detail": "请打开终端中打印的地址。",
|
|
@@ -1163,8 +1165,20 @@
|
|
|
1163
1165
|
"conn.lost": "与 hivedesk 的连接已断开。{s, plural, other {# 秒}}后重试。",
|
|
1164
1166
|
"conn.reconnecting": "正在重新连接 hivedesk...",
|
|
1165
1167
|
"conn.retry": "立即重试",
|
|
1168
|
+
"crew.legacy.topBar": "明白。在顶部栏输入需求,团队就会开始一项工作。",
|
|
1169
|
+
"crew.role.backend": "后端开发者",
|
|
1170
|
+
"crew.role.data": "数据工程师",
|
|
1171
|
+
"crew.role.designer": "界面和样式",
|
|
1172
|
+
"crew.role.desktop": "桌面应用开发者",
|
|
1173
|
+
"crew.role.dev": "开发者",
|
|
1174
|
+
"crew.role.devops": "DevOps 工程师",
|
|
1175
|
+
"crew.role.mel": "工头和规划",
|
|
1176
|
+
"crew.role.mobile": "移动端开发者",
|
|
1177
|
+
"crew.role.qa": "检查和测试",
|
|
1178
|
+
"crew.role.security": "安全审查员",
|
|
1179
|
+
"crew.role.writer": "README、文案和文档",
|
|
1166
1180
|
"crew.say.briefFailed": "没能写出简报 ({error})。团队会直接按你的原始请求工作。",
|
|
1167
|
-
"crew.say.briefReady": "
|
|
1181
|
+
"crew.say.briefReady": "简报写好了。直接使用、编辑,或保留你原来的需求:点下面的按钮或打开简报窗口。你也可以直接回复\"ok\",团队就会开始。",
|
|
1168
1182
|
"crew.say.cancelled": "任务已取消。目前写好的文件会留在工作区里。",
|
|
1169
1183
|
"crew.say.changelog": "我为这个任务起草了一条更新日志 (建议版本 {version},{bump}:{reason})。请打开更新日志窗口编辑并批准。在你批准之前不会写入任何内容。",
|
|
1170
1184
|
"crew.say.extensionFailed": "没能准备好扩展:{error}",
|
|
@@ -1193,9 +1207,25 @@
|
|
|
1193
1207
|
"crew.say.themeFailed": "没能做出这个主题:{error}",
|
|
1194
1208
|
"crew.say.themeReady": "这是“{name}”。{fixed, select, yes {我调整了 {keys},让文字达到 WCAG AA。} other {对比度本来就达到了 WCAG AA。}}可以批准、编辑,或在主题编辑器里保存。",
|
|
1195
1209
|
"crew.say.themeStart": "正在根据“{prompt}”设计主题。给你看之前我会先检查对比度。",
|
|
1210
|
+
"crew.status.brief": "\"{request}\"在等你:简报已经写好。使用它、保留你的需求或打开编辑(下面的按钮或简报窗口),或者回复\"ok\",团队就开始。",
|
|
1211
|
+
"crew.status.cancelled": "\"{request}\"已取消。再提一次,团队会开始新的工作。",
|
|
1212
|
+
"crew.status.done": "\"{request}\"已完成。文件:{files}。打开实时预览即可查看。",
|
|
1213
|
+
"crew.status.failed": "\"{request}\"失败了:{error}。再提一次,团队会开始新的工作。",
|
|
1214
|
+
"crew.status.noFiles": "暂无",
|
|
1215
|
+
"crew.status.none": "还没有任何工作。告诉我要做什么,团队就开始一项。",
|
|
1216
|
+
"crew.status.planning": "\"{request}\"的简报已批准,我正在规划任务。",
|
|
1217
|
+
"crew.status.refining": "我正在写\"{request}\"的简报。接下来由你确认,然后团队开始做。",
|
|
1218
|
+
"crew.status.running": "\"{request}\":{count} 个任务中已完成 {done} 个。现在:{now}。目前的文件:{files}。",
|
|
1196
1219
|
"crew.talk.ambiguous": "要把这个作为团队的任务开始,还是只是聊聊?",
|
|
1220
|
+
"crew.talk.brief.approve": "好的,\"{request}\"的简报已批准。我现在规划任务,团队马上开始。",
|
|
1221
|
+
"crew.talk.brief.cancel": "已取消\"{request}\"。随时可以再提。",
|
|
1222
|
+
"crew.talk.brief.edit": "明白:你的修改已写进\"{request}\"的简报。我现在规划任务。",
|
|
1223
|
+
"crew.talk.brief.original": "好的,\"{request}\"按你自己的话来做。我现在规划任务。",
|
|
1197
1224
|
"crew.talk.choice.chat": "只是聊聊",
|
|
1225
|
+
"crew.talk.choice.open": "打开简报",
|
|
1226
|
+
"crew.talk.choice.original": "保留我的需求",
|
|
1198
1227
|
"crew.talk.choice.task": "作为任务开始",
|
|
1228
|
+
"crew.talk.choice.use": "使用简报",
|
|
1199
1229
|
"crew.talk.empty": "这个问题我答不好。如果你想做点什么或改点什么,直接说,团队就会开始一个任务。",
|
|
1200
1230
|
"crew.talk.failed": "现在没能回答 ({error})。请稍后再试。",
|
|
1201
1231
|
"crew.talk.hostOnly": "只有主持人能从聊天里开始任务。请找主持人,或者如果你是协作者,就作为请求发送。",
|
|
@@ -1213,6 +1243,29 @@
|
|
|
1213
1243
|
"diff.aria": "更改",
|
|
1214
1244
|
"diff.empty": "没有行更改。",
|
|
1215
1245
|
"diff.truncated": "差异已截断。",
|
|
1246
|
+
"dl.err.aborted": "下载已停止。点击重试可从中断处继续。",
|
|
1247
|
+
"dl.err.checksum": "下载的文件已损坏并已删除。请点击重试重新下载。",
|
|
1248
|
+
"dl.err.forbidden": "服务器拒绝了下载 (HTTP {status})。请稍后重试或换一个模型;网络过滤也可能会拦截。",
|
|
1249
|
+
"dl.err.http": "下载失败 (HTTP {status})。请稍后重试,或换一个模型。",
|
|
1250
|
+
"dl.err.install_failed": "无法解压下载的文件。请点击重试。",
|
|
1251
|
+
"dl.err.io": "无法保存文件。请确认 hivedesk 文件夹可写,然后点击重试。",
|
|
1252
|
+
"dl.err.load_failed": "无法加载模型。请点击重试,或换一个模型。",
|
|
1253
|
+
"dl.err.locked": "另一个程序正在使用该文件,通常是杀毒软件在扫描。请稍等,或在杀毒软件中放行 hivedesk 文件夹,然后点击重试。",
|
|
1254
|
+
"dl.err.needs_consent": "没有你的同意不会下载任何东西。请重新打开下载并同意。",
|
|
1255
|
+
"dl.err.no_disk": "磁盘可用空间不足。请腾出空间或选择更小的模型,然后点击重试。",
|
|
1256
|
+
"dl.err.no_memory": "可用内存不足,无法加载此模型。请关闭其他应用或选择更小的模型。",
|
|
1257
|
+
"dl.err.no_network": "无法连接下载服务器。请检查网络后点击重试,下载会从中断处继续。",
|
|
1258
|
+
"dl.err.not_found": "服务器上已没有这个文件 (HTTP {status})。请换一个模型,或更新 hivedesk。",
|
|
1259
|
+
"dl.err.quarantined": "程序在解压后立即被删除,很可能是杀毒软件所为。请在杀毒软件中放行 hivedesk 文件夹,然后点击重试。",
|
|
1260
|
+
"dl.err.rate_limited": "服务器要求稍等再下载。请稍等片刻后点击重试。",
|
|
1261
|
+
"dl.err.runtime_install_failed": "无法安装本地运行时。请点击重试;原因见下方。",
|
|
1262
|
+
"dl.err.runtime_locked": "有文件正被占用,无法安装本地运行时。请关闭其他 hivedesk 窗口或等待杀毒软件,然后点击重试。",
|
|
1263
|
+
"dl.err.runtime_no_network": "无法下载本地运行时:没有网络连接。请检查网络后点击重试。",
|
|
1264
|
+
"dl.err.runtime_no_npm": "无法安装本地运行时:找不到 npm。请从官网重新安装 hivedesk,或在设置中连接其他模型。",
|
|
1265
|
+
"dl.err.runtime_not_found": "目前无法从 npm 获取本地运行时。请稍后重试,或在设置中连接其他模型。",
|
|
1266
|
+
"dl.err.server": "下载服务器出了问题 (HTTP {status})。请几分钟后重试,下载会从中断处继续。",
|
|
1267
|
+
"dl.err.too_big": "该模型在目录中没有有效的大小。请换一个模型。",
|
|
1268
|
+
"dl.err.unknown": "下载失败。请点击重试。",
|
|
1216
1269
|
"dock.approvals": "审批",
|
|
1217
1270
|
"dock.chat": "#general",
|
|
1218
1271
|
"dock.files": "文件",
|
|
@@ -2022,6 +2075,8 @@
|
|
|
2022
2075
|
"lendwin.lending.failed": "借出界面未能加载",
|
|
2023
2076
|
"lendwin.lending.title": "正在借出你的电脑",
|
|
2024
2077
|
"lendwin.opening": "正在打开...",
|
|
2078
|
+
"md.copied": "代码已复制",
|
|
2079
|
+
"md.copy": "复制",
|
|
2025
2080
|
"menu.arrange": "排列",
|
|
2026
2081
|
"menu.bl": "左下",
|
|
2027
2082
|
"menu.br": "右下",
|
|
@@ -2067,6 +2122,188 @@
|
|
|
2067
2122
|
"notify.dismiss": "关闭",
|
|
2068
2123
|
"notify.empty": "暂无内容。已完成的作业、审批和问题会显示在这里。",
|
|
2069
2124
|
"notify.region": "通知",
|
|
2125
|
+
"office.banner.fallback": "团队完成了这个任务。",
|
|
2126
|
+
"office.banner.preview": "打开预览",
|
|
2127
|
+
"office.banner.title": "任务完成",
|
|
2128
|
+
"office.bee.aria": "{who}。{status}。按 Enter 聊天。",
|
|
2129
|
+
"office.bee.ariaTask": "{who}。{status}。事项:{title}。按 Enter 聊天。",
|
|
2130
|
+
"office.bee.who": "{name},{role}",
|
|
2131
|
+
"office.bee.whoLevel": "{name},{role},等级 {level}",
|
|
2132
|
+
"office.board.doing": "进行中",
|
|
2133
|
+
"office.board.done": "已完成",
|
|
2134
|
+
"office.board.empty": "白板上还没有内容",
|
|
2135
|
+
"office.board.emptyHint": "在上方的输入框里告诉团队",
|
|
2136
|
+
"office.board.tasksDone": "已完成事项",
|
|
2137
|
+
"office.board.todo": "待办",
|
|
2138
|
+
"office.bubble.briefReady": "简报写好了。直接用、修改,还是保留你的原话?",
|
|
2139
|
+
"office.bubble.curious1": "新请求。我先读一下。",
|
|
2140
|
+
"office.bubble.curious2": "新任务。让我看看。",
|
|
2141
|
+
"office.bubble.idleDone1": "白板清空了。下一个是什么?",
|
|
2142
|
+
"office.bubble.idleDone2": "团队可以接下一个任务了。",
|
|
2143
|
+
"office.bubble.idleDone3": "白板上的事都做完了。",
|
|
2144
|
+
"office.bubble.idleNew1": "在上方的输入框里写一个请求。",
|
|
2145
|
+
"office.bubble.idleNew2": "你准备好了,团队就准备好了。",
|
|
2146
|
+
"office.bubble.idleNew3": "一个落地页或一个小应用:直接说就行。",
|
|
2147
|
+
"office.bubble.nod1": "谢谢。马上开始。",
|
|
2148
|
+
"office.bubble.nod2": "已批准。继续干活。",
|
|
2149
|
+
"office.bubble.nod3": "记下了,继续。",
|
|
2150
|
+
"office.bubble.planning": "规划中...",
|
|
2151
|
+
"office.bubble.skip": "好的,这个跳过。",
|
|
2152
|
+
"office.dock.label": "迷你小组件",
|
|
2153
|
+
"office.dock.pip": "画中画",
|
|
2154
|
+
"office.dock.popOut": "在窗口中打开 (360 x 480)",
|
|
2155
|
+
"office.dock.sub": "一个可以常驻的小视图",
|
|
2156
|
+
"office.dock.toDesktop": "回到桌面",
|
|
2157
|
+
"office.dock.toOffice": "打开办公室",
|
|
2158
|
+
"office.empty": "办公室里没有人。",
|
|
2159
|
+
"office.feed.approval": "{name} 在等你批准",
|
|
2160
|
+
"office.feed.briefApproved": "简报已批准,开始规划",
|
|
2161
|
+
"office.feed.briefOriginal": "按你的原话进行",
|
|
2162
|
+
"office.feed.briefProposed": "Mel 写好了简报:使用、修改,或保留你的版本",
|
|
2163
|
+
"office.feed.fileCreate": "{name} 创建了 {path}",
|
|
2164
|
+
"office.feed.fileDelete": "{name} 删除了 {path}",
|
|
2165
|
+
"office.feed.fileEdit": "{name} 修改了 {path}",
|
|
2166
|
+
"office.feed.finished": "{name} 完成了「{title}」",
|
|
2167
|
+
"office.feed.handed": "事项已交给 {name}",
|
|
2168
|
+
"office.feed.jobCreated": "白板上有新任务",
|
|
2169
|
+
"office.feed.jobDone": "任务完成",
|
|
2170
|
+
"office.feed.jobPlanned": "{count, plural, other {Mel 规划了 # 项}}",
|
|
2171
|
+
"office.feed.joined": "{name} 加入了团队",
|
|
2172
|
+
"office.feed.qaIssues": "{count, plural, other {QA 发现了 # 个问题}}",
|
|
2173
|
+
"office.feed.qaPassed": "QA:所有检查都通过了",
|
|
2174
|
+
"office.feed.started": "{name} 开始了「{title}」",
|
|
2175
|
+
"office.feed.stuck": "{name} 卡在了「{title}」",
|
|
2176
|
+
"office.hud.currentJob": "当前任务",
|
|
2177
|
+
"office.hud.done": "已完成 {done}/{total, plural, other {# 项}}",
|
|
2178
|
+
"office.hud.doneNow": "{progress}。正在进行:{what}",
|
|
2179
|
+
"office.hud.feed": "办公室动态",
|
|
2180
|
+
"office.hud.honeyTitle": "此工作区中已完成的事项",
|
|
2181
|
+
"office.hud.line.awaiting_brief": "Mel 写好了简报:直接使用、修改,或保留你的原始请求",
|
|
2182
|
+
"office.hud.line.planning": "Mel 正在白板上写计划",
|
|
2183
|
+
"office.hud.line.refining": "Mel 正在根据你的请求写一份清晰的简报",
|
|
2184
|
+
"office.hud.more": "{what} (另有 {count} 项)",
|
|
2185
|
+
"office.hud.noJob": "还没有任务。在上方的输入框里告诉团队。",
|
|
2186
|
+
"office.hud.noJobHint": "任务中的每一项都是时间线上的一段。",
|
|
2187
|
+
"office.hud.openBrief": "打开简报",
|
|
2188
|
+
"office.hud.pip": "画中画",
|
|
2189
|
+
"office.hud.pipAria": "画中画迷你窗口",
|
|
2190
|
+
"office.hud.popOut": "在窗口中打开迷你小组件",
|
|
2191
|
+
"office.hud.progress": "任务进度",
|
|
2192
|
+
"office.hud.soundOff": "办公室声音已关闭",
|
|
2193
|
+
"office.hud.soundOn": "办公室声音已开启",
|
|
2194
|
+
"office.hud.soundOnTitle": "办公室声音已开启 (柔和的环境声、打字声、振翅声)",
|
|
2195
|
+
"office.hud.tasksDone": "{count, plural, other {项已完成}}",
|
|
2196
|
+
"office.level": "Lv{level}",
|
|
2197
|
+
"office.menu.cancel": "取消事项",
|
|
2198
|
+
"office.menu.chat": "和 {name} 聊天",
|
|
2199
|
+
"office.menu.files": "打开文件",
|
|
2200
|
+
"office.menu.handTo": "交给",
|
|
2201
|
+
"office.menu.handToWho": "{name} ({role})",
|
|
2202
|
+
"office.menu.header": "{name} · {role}",
|
|
2203
|
+
"office.menu.headerLevel": "{name} · {role} · 等级 {level}",
|
|
2204
|
+
"office.menu.pause": "暂停",
|
|
2205
|
+
"office.menu.resume": "继续",
|
|
2206
|
+
"office.menu.retry": "重试",
|
|
2207
|
+
"office.menu.retryNone": "重试 (没有可重试的)",
|
|
2208
|
+
"office.menu.retryTask": "重试「{title}」",
|
|
2209
|
+
"office.mode.celebrate": "庆祝中",
|
|
2210
|
+
"office.mode.error": "出错",
|
|
2211
|
+
"office.mode.fly": "飞过去中",
|
|
2212
|
+
"office.mode.idle": "空闲",
|
|
2213
|
+
"office.mode.paused": "已暂停",
|
|
2214
|
+
"office.mode.plan": "在白板上规划",
|
|
2215
|
+
"office.mode.read": "读取文件中",
|
|
2216
|
+
"office.mode.sleep": "打盹中 (空闲)",
|
|
2217
|
+
"office.mode.stuck": "等你批准",
|
|
2218
|
+
"office.mode.test": "运行检查中",
|
|
2219
|
+
"office.mode.type": "打字中",
|
|
2220
|
+
"office.mode.wait": "排队等模型",
|
|
2221
|
+
"office.note.aria": "事项:{title}。{status}。负责人:{name}。按 Enter 交给另一只蜜蜂。",
|
|
2222
|
+
"office.note.task": "事项",
|
|
2223
|
+
"office.now.queued": "{name} 正在为「{title}」等待模型",
|
|
2224
|
+
"office.now.review": "{name} 正在审查「{title}」",
|
|
2225
|
+
"office.now.thinking": "{name} 正在思考「{title}」",
|
|
2226
|
+
"office.now.tool": "{name} 正在处理「{title}」",
|
|
2227
|
+
"office.now.waiting_approval": "{name} 正在等你批准「{title}」",
|
|
2228
|
+
"office.now.works": "{name} 正在做「{title}」",
|
|
2229
|
+
"office.opening": "正在打开办公室...",
|
|
2230
|
+
"office.pill.brief": "查看简报",
|
|
2231
|
+
"office.pill.ok": "需要你的确认",
|
|
2232
|
+
"office.popout.blocked": "浏览器拦截了弹出窗口",
|
|
2233
|
+
"office.popout.blockedHelp": "允许此页面的弹出窗口,或在新标签页中打开 /widget.html。",
|
|
2234
|
+
"office.popout.pipFailed": "画中画没有打开",
|
|
2235
|
+
"office.queue.brains": "{count, plural, other {已连接 # 个大脑,所以 # 只蜜蜂可以同时思考。}}",
|
|
2236
|
+
"office.queue.free": "模型空闲",
|
|
2237
|
+
"office.queue.hasModel": "{name} 正在使用模型",
|
|
2238
|
+
"office.queue.inQueue": "{name} 正在排队",
|
|
2239
|
+
"office.queue.oneModel": "共用一个模型:蜜蜂们轮流使用,所以一个任务需要几分钟。",
|
|
2240
|
+
"office.queue.thinking": "思考中",
|
|
2241
|
+
"office.queue.title": "轮流使用模型",
|
|
2242
|
+
"office.seg.aria": "视图",
|
|
2243
|
+
"office.seg.desktop": "桌面",
|
|
2244
|
+
"office.seg.desktopTitle": "桌面:窗口和小组件",
|
|
2245
|
+
"office.seg.office": "办公室",
|
|
2246
|
+
"office.seg.officeTitle": "办公室:工作中的团队",
|
|
2247
|
+
"office.shift.afternoon": "午班",
|
|
2248
|
+
"office.shift.day": "白班",
|
|
2249
|
+
"office.shift.evening": "晚班",
|
|
2250
|
+
"office.shift.morning": "早班",
|
|
2251
|
+
"office.shift.night": "夜班",
|
|
2252
|
+
"office.state.awaiting_brief": "等你确认",
|
|
2253
|
+
"office.state.cancelled": "已取消",
|
|
2254
|
+
"office.state.done": "已完成",
|
|
2255
|
+
"office.state.failed": "失败",
|
|
2256
|
+
"office.state.idle": "休息中",
|
|
2257
|
+
"office.state.planning": "规划中",
|
|
2258
|
+
"office.state.refining": "Mel 正在写简报",
|
|
2259
|
+
"office.state.running": "进行中",
|
|
2260
|
+
"office.tip.done": "已完成",
|
|
2261
|
+
"office.tip.doneCount": "{count, plural, other {# 项}}",
|
|
2262
|
+
"office.tip.foot": "点击聊天 · 右键查看更多",
|
|
2263
|
+
"office.tip.none": "目前没有",
|
|
2264
|
+
"office.tip.noteDone": "已完成",
|
|
2265
|
+
"office.tip.noteFoot": "拖到一只蜜蜂上交给它 · 按 Enter 查看选项",
|
|
2266
|
+
"office.tip.noteMeta": "{status} · {name}",
|
|
2267
|
+
"office.tip.status": "状态",
|
|
2268
|
+
"office.tip.task": "事项",
|
|
2269
|
+
"office.view.aria": "办公室。工作中的团队。按 Tab 移到蜜蜂或便签,按 Enter 打开,按 Shift F10 打开菜单。",
|
|
2270
|
+
"office.widget.approvalAria": "批准",
|
|
2271
|
+
"office.widget.approve": "批准",
|
|
2272
|
+
"office.widget.approveFailed": "无法批准:{error}",
|
|
2273
|
+
"office.widget.approveN": "批准 ({count})",
|
|
2274
|
+
"office.widget.aria": "hivedesk 迷你小组件",
|
|
2275
|
+
"office.widget.briefBy": "Mel 写好了简报:",
|
|
2276
|
+
"office.widget.briefHint": "批准会按原样使用。要修改请打开蜂巢。",
|
|
2277
|
+
"office.widget.chatAria": "最新聊天",
|
|
2278
|
+
"office.widget.conn.connecting": "连接中",
|
|
2279
|
+
"office.widget.conn.offline": "离线",
|
|
2280
|
+
"office.widget.conn.open": "在线",
|
|
2281
|
+
"office.widget.conn.unauthorized": "需要秘密链接",
|
|
2282
|
+
"office.widget.connecting": "正在连接...",
|
|
2283
|
+
"office.widget.demo": "演示",
|
|
2284
|
+
"office.widget.demoTitle": "没有模型在运行。团队按脚本行动。",
|
|
2285
|
+
"office.widget.free": "空闲",
|
|
2286
|
+
"office.widget.model": "模型",
|
|
2287
|
+
"office.widget.napping": "团队在打盹",
|
|
2288
|
+
"office.widget.nappingHint": "在蜂巢里开始一个任务,看它们醒来。",
|
|
2289
|
+
"office.widget.needsApproval": "{name} 需要你的批准:",
|
|
2290
|
+
"office.widget.open": "打开完整的蜂巢",
|
|
2291
|
+
"office.widget.pause": "暂停团队",
|
|
2292
|
+
"office.widget.pauseFailed": "无法暂停:{error}",
|
|
2293
|
+
"office.widget.progress": "{done}/{total, plural, other {# 项}}",
|
|
2294
|
+
"office.widget.queue": "队列",
|
|
2295
|
+
"office.widget.queueAria": "模型队列",
|
|
2296
|
+
"office.widget.quiet": "一片安静。第一条聊天会出现在这里。",
|
|
2297
|
+
"office.widget.resume": "继续团队",
|
|
2298
|
+
"office.widget.resumeFailed": "无法继续:{error}",
|
|
2299
|
+
"office.widget.sub.awaiting_brief": "等你查看简报",
|
|
2300
|
+
"office.widget.sub.done": "任务完成",
|
|
2301
|
+
"office.widget.sub.failed": "任务失败",
|
|
2302
|
+
"office.widget.sub.planning": "Mel 正在规划",
|
|
2303
|
+
"office.widget.sub.refining": "Mel 正在写简报",
|
|
2304
|
+
"office.widget.tasksDone": "{count, plural, other {已完成 # 项}}",
|
|
2305
|
+
"office.widget.thinking": "思考中",
|
|
2306
|
+
"office.worker": "成员",
|
|
2070
2307
|
"pal.about": "关于 hivedesk",
|
|
2071
2308
|
"pal.approvalOff": "关闭审批模式",
|
|
2072
2309
|
"pal.approvalOn": "开启审批模式",
|
|
@@ -2328,6 +2565,7 @@
|
|
|
2328
2565
|
"remote.ask.pickFailed": "没有共享屏幕,因此没有允许任何内容。",
|
|
2329
2566
|
"remote.ask.reason": "给出的理由:{reason}",
|
|
2330
2567
|
"remote.ask.reject": "拒绝",
|
|
2568
|
+
"remote.ask.selfChosen": "对方自己选的图片",
|
|
2331
2569
|
"remote.ask.title": "有人想要连接",
|
|
2332
2570
|
"remote.ask.words": "如果你认识 {name},请与对方核对这些词:{words}",
|
|
2333
2571
|
"remote.bar.addScreen": "共享另一块屏幕",
|
|
@@ -2403,6 +2641,7 @@
|
|
|
2403
2641
|
"remote.home.connect": "连接",
|
|
2404
2642
|
"remote.home.copied": "地址已复制",
|
|
2405
2643
|
"remote.home.copy": "复制",
|
|
2644
|
+
"remote.home.keyChanged": "已阻止:此地址上的电脑不是你之前连接过的那台。可能有人在冒充它。如果它确实重装过,请先在对等设备中忘记旧电脑。",
|
|
2406
2645
|
"remote.home.listen": "允许伙伴通过地址找到这台电脑",
|
|
2407
2646
|
"remote.home.listenHelp": "开启期间,输入你地址的伙伴可以请求连接。你总能看到是谁在请求。",
|
|
2408
2647
|
"remote.home.noAddress": "这台电脑还没有地址:点对点身份尚未就绪。",
|
|
@@ -3184,9 +3423,11 @@
|
|
|
3184
3423
|
"top.soundOff": "声音已关闭",
|
|
3185
3424
|
"top.soundOn": "声音已开启",
|
|
3186
3425
|
"top.strip": "当前作业",
|
|
3426
|
+
"top.strip.brief": "简报在等你:打开",
|
|
3187
3427
|
"top.strip.done": "已完成 {done} / {count} 个任务",
|
|
3188
3428
|
"top.strip.ended": "{status, select, done {已完成} failed {失败} other {已取消}}:{request}",
|
|
3189
3429
|
"top.strip.planning": "Mel 正在规划",
|
|
3430
|
+
"top.strip.refining": "Mel 正在写简报",
|
|
3190
3431
|
"top.strip.running": "{done} / {count}:{request}",
|
|
3191
3432
|
"top.tps": "{tps} tok/s",
|
|
3192
3433
|
"top.tpsUnit": "tok/s",
|
|
@@ -3355,6 +3596,10 @@
|
|
|
3355
3596
|
"voice.ui.errNeedsBrowserOk": "使用浏览器的语音识别前需要先征得你的同意。",
|
|
3356
3597
|
"voice.ui.errNeedsModel": "要让你的声音只留在这台电脑上,Mel 需要先有一个小型语音模型。请选择一个下载,或者改用浏览器。",
|
|
3357
3598
|
"voice.ui.errStt": "这台电脑上的语音转文字失败了。请重试,或在设置里换一个模型。",
|
|
3599
|
+
"voice.ui.errSttBlocked": "Windows 或杀毒软件阻止了语音程序。请放行它,或在设置的语音中选择 CPU 版本。",
|
|
3600
|
+
"voice.ui.errSttMissing": "语音程序不见了,很可能被杀毒软件删除。请在杀毒软件中放行 hivedesk 文件夹,并在设置的语音中重新安装。",
|
|
3601
|
+
"voice.ui.errSttModel": "语音模型文件已损坏。请删除后在设置的语音中重新下载。",
|
|
3602
|
+
"voice.ui.errSttStart": "语音程序无法在这台电脑上启动。请安装 Microsoft Visual C++ Redistributable,或在设置的语音中选择 CPU 版本。",
|
|
3358
3603
|
"voice.ui.errTimeout": "用时太久了。请重试。",
|
|
3359
3604
|
"voice.ui.getModel": "选择并下载",
|
|
3360
3605
|
"voice.ui.hintHands": "直接说就行。在 Mel 说话时插话可以让她停下。说就这些即可结束。",
|
|
@@ -3802,7 +4047,5 @@
|
|
|
3802
4047
|
"worker.stream.tps": "{tps} token/s",
|
|
3803
4048
|
"worker.stream.waiting": "正在等待模型输出第一个字",
|
|
3804
4049
|
"worker.taskPrefix": "任务:",
|
|
3805
|
-
"worker.tools.open": "打开"
|
|
3806
|
-
"remote.home.keyChanged": "已阻止:此地址上的电脑不是你之前连接过的那台。可能有人在冒充它。如果它确实重装过,请先在对等设备中忘记旧电脑。",
|
|
3807
|
-
"remote.ask.selfChosen": "对方自己选的图片"
|
|
4050
|
+
"worker.tools.open": "打开"
|
|
3808
4051
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hivedesk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A crew of AI workers that plan, talk and build real files on your machine with a local model.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"e2e:local": "node test/e2e-local.mjs",
|
|
41
41
|
"smoke:desktop": "node desktop/scripts/smoke.mjs",
|
|
42
42
|
"e2e:phone": "node test/phone/e2e-phone.mjs",
|
|
43
|
-
"e2e:two": "node test/e2e-two-engines.mjs"
|
|
43
|
+
"e2e:two": "node test/e2e-two-engines.mjs",
|
|
44
|
+
"e2e:projects": "node test/e2e-projects.mjs"
|
|
44
45
|
},
|
|
45
46
|
"engines": {
|
|
46
47
|
"node": ">=20"
|
package/src/brain/manager.js
CHANGED
|
@@ -21,6 +21,20 @@ export function asPick(m) {
|
|
|
21
21
|
return resolvePick(`${m.id}:Q4_K_M`) || m;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/** The free disk now (it shrinks as models download), never more than the hardware probe saw. */
|
|
25
|
+
function freshFree(dir, probed) {
|
|
26
|
+
const now = diskFree(fs.existsSync(dir) ? dir : path.dirname(dir));
|
|
27
|
+
if (now == null) return probed ?? null;
|
|
28
|
+
return probed == null ? now : Math.min(now, probed);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The numbers a translated download error shows (HTTP status, seconds to wait, space needed and free). */
|
|
32
|
+
function dlFacts(e) {
|
|
33
|
+
const out = {};
|
|
34
|
+
for (const k of ['status', 'retryAfter', 'need', 'free']) if (e?.[k] != null) out[k] = e[k];
|
|
35
|
+
return out;
|
|
36
|
+
}
|
|
37
|
+
|
|
24
38
|
/** What the UI and the log show about a pick before a download. */
|
|
25
39
|
export function pickInfo(m) {
|
|
26
40
|
return {
|
|
@@ -268,8 +282,9 @@ export class BrainManager {
|
|
|
268
282
|
this.bus.emit('brain.runtime', { state: 'ready', package: RUNTIME_PACKAGE, version: r.version, path: r.entry });
|
|
269
283
|
return r;
|
|
270
284
|
} catch (err) {
|
|
271
|
-
|
|
272
|
-
this.
|
|
285
|
+
const code = `runtime_${err.code || 'install_failed'}`;
|
|
286
|
+
this.bus.emit('brain.runtime', { state: 'failed', package: RUNTIME_PACKAGE, message: String(err.message), hint: err.hint, code });
|
|
287
|
+
this.status('error', { backend: 'local', code, detail: String(err.message), hint: err.hint || 'Run hivedesk --doctor, or use --brain ollama or --brain lmstudio.' });
|
|
273
288
|
return null;
|
|
274
289
|
}
|
|
275
290
|
}
|
|
@@ -305,7 +320,7 @@ export class BrainManager {
|
|
|
305
320
|
const out = await downloadModel(model, {
|
|
306
321
|
home: this.home,
|
|
307
322
|
fetchImpl: this.fetch,
|
|
308
|
-
freeBytes: this.hardware?.diskFreeBytes,
|
|
323
|
+
freeBytes: freshFree(modelsDir(this.home), this.hardware?.diskFreeBytes),
|
|
309
324
|
signal: this.downloadCtrl.signal,
|
|
310
325
|
onProgress: ({ received, total, bps, part, parts }) => {
|
|
311
326
|
this.bus.live('brain.download.progress', { model: model.name, id: model.id, received, total, bps, ...(parts ? { part, parts } : {}) });
|
|
@@ -323,8 +338,9 @@ export class BrainManager {
|
|
|
323
338
|
this.log('checksum mismatch, downloading again');
|
|
324
339
|
return this._ensureModel(model, trigger);
|
|
325
340
|
}
|
|
326
|
-
|
|
327
|
-
this.
|
|
341
|
+
const facts = dlFacts(e);
|
|
342
|
+
this.bus.emit('brain.download.failed', { model: model.name, id: model.id, code: e.code, message: e.message, hint: e.hint, ...facts });
|
|
343
|
+
this.status('error', { backend: 'local', model: model.name, code: e.code, detail: e.message, hint: e.hint, ...facts });
|
|
328
344
|
return null;
|
|
329
345
|
} finally {
|
|
330
346
|
this.downloadCtrl = null;
|
|
@@ -344,7 +360,7 @@ export class BrainManager {
|
|
|
344
360
|
return true;
|
|
345
361
|
} catch (err) {
|
|
346
362
|
if (err.code === 'no_memory' || !gpu) {
|
|
347
|
-
this.status('error', { backend: 'local', model: name, detail: `could not load the model: ${err.message}`, hint: err.hint || 'Try a smaller model, close other apps to free memory, or use Ollama or LM Studio.' });
|
|
363
|
+
this.status('error', { backend: 'local', model: name, code: err.code === 'no_memory' ? 'no_memory' : 'load_failed', detail: `could not load the model: ${err.message}`, hint: err.hint || 'Try a smaller model, close other apps to free memory, or use Ollama or LM Studio.' });
|
|
348
364
|
return false;
|
|
349
365
|
}
|
|
350
366
|
// The GPU works but the model does not fit in its VRAM: the next smaller model, still on the GPU.
|
|
@@ -567,7 +583,7 @@ export class BrainManager {
|
|
|
567
583
|
this._installedCache = null;
|
|
568
584
|
this.bus.emit('models.install.finished', { id: p.id, model: p.name, bytes: p.bytes, ms: Date.now() - started });
|
|
569
585
|
} catch (err) {
|
|
570
|
-
this.bus.emit(ctrl.signal.aborted ? 'models.install.cancelled' : 'models.install.failed', { id: p.id, code: err.code || 'io', message: String(err.message || err).slice(0, 300) });
|
|
586
|
+
this.bus.emit(ctrl.signal.aborted ? 'models.install.cancelled' : 'models.install.failed', { id: p.id, model: p.name, code: err.code || 'io', message: String(err.message || err).slice(0, 300), hint: err.hint, ...dlFacts(err) });
|
|
571
587
|
} finally {
|
|
572
588
|
this.installing = null;
|
|
573
589
|
this._pumpInstalls();
|