@botharness/im-provider 4.32.0-botharness.15

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.
Files changed (423) hide show
  1. package/LICENSE +21 -0
  2. package/PROVENANCE.json +25 -0
  3. package/README.en.md +445 -0
  4. package/README.md +448 -0
  5. package/THIRD_PARTY_NOTICES.md +93 -0
  6. package/assets/dingtalk-menu-template.json +6 -0
  7. package/assets/logo-dsh-im-chinese-readme-3x2.png +0 -0
  8. package/assets/logo-dsh-im-connecting-readme-3x2.png +0 -0
  9. package/assets/logo-dsh-im-connecting-square-v4.png +0 -0
  10. package/assets/logo-icon.png +0 -0
  11. package/assets/logo-plugin-message-link-gradient.webp +0 -0
  12. package/assets/logo-plugin-phone.png +0 -0
  13. package/assets/logo.png +0 -0
  14. package/assets/logo_cn.png +0 -0
  15. package/assets/screenshot-menu-card.png +0 -0
  16. package/cordis.patch.yml +3 -0
  17. package/lib/client.js +20330 -0
  18. package/lib/index.js +604 -0
  19. package/locale/en.json +5 -0
  20. package/locale/zh.json +5 -0
  21. package/package.json +181 -0
  22. package/plugin-src/client/access-policy-settings.js +362 -0
  23. package/plugin-src/client/agent-preset.js +119 -0
  24. package/plugin-src/client/bot-alias.js +169 -0
  25. package/plugin-src/client/build.mjs +38 -0
  26. package/plugin-src/client/channel-card-meta.js +132 -0
  27. package/plugin-src/client/channel-logos.js +190 -0
  28. package/plugin-src/client/channels/dingtalk/api.js +267 -0
  29. package/plugin-src/client/channels/dingtalk/index.js +954 -0
  30. package/plugin-src/client/channels/dingtalk/styles.js +136 -0
  31. package/plugin-src/client/channels/discord/api.js +11 -0
  32. package/plugin-src/client/channels/discord/index.js +25 -0
  33. package/plugin-src/client/channels/discord/styles.js +19 -0
  34. package/plugin-src/client/channels/email/api.js +52 -0
  35. package/plugin-src/client/channels/email/index.js +728 -0
  36. package/plugin-src/client/channels/email/styles.js +51 -0
  37. package/plugin-src/client/channels/feishu/api.js +405 -0
  38. package/plugin-src/client/channels/feishu/group-settings.js +581 -0
  39. package/plugin-src/client/channels/feishu/index.js +1583 -0
  40. package/plugin-src/client/channels/feishu/slash-panel-settings.js +322 -0
  41. package/plugin-src/client/channels/feishu/styles.js +573 -0
  42. package/plugin-src/client/channels/feishu/voice-editor.js +115 -0
  43. package/plugin-src/client/channels/feishu/voice-settings.js +71 -0
  44. package/plugin-src/client/channels/imessage/api.js +12 -0
  45. package/plugin-src/client/channels/imessage/index.js +46 -0
  46. package/plugin-src/client/channels/imessage/styles.js +19 -0
  47. package/plugin-src/client/channels/matrix/api.js +11 -0
  48. package/plugin-src/client/channels/matrix/index.js +151 -0
  49. package/plugin-src/client/channels/matrix/styles.js +36 -0
  50. package/plugin-src/client/channels/office/api.js +46 -0
  51. package/plugin-src/client/channels/office/index.js +153 -0
  52. package/plugin-src/client/channels/office/styles.js +50 -0
  53. package/plugin-src/client/channels/qq/api.js +171 -0
  54. package/plugin-src/client/channels/qq/index.js +593 -0
  55. package/plugin-src/client/channels/qq/styles.js +19 -0
  56. package/plugin-src/client/channels/shared/collapsible-account.js +103 -0
  57. package/plugin-src/client/channels/shared/token-api.js +124 -0
  58. package/plugin-src/client/channels/shared/token-channel.js +495 -0
  59. package/plugin-src/client/channels/slack/api.js +11 -0
  60. package/plugin-src/client/channels/slack/index.js +131 -0
  61. package/plugin-src/client/channels/slack/styles.js +34 -0
  62. package/plugin-src/client/channels/telegram/api.js +11 -0
  63. package/plugin-src/client/channels/telegram/index.js +28 -0
  64. package/plugin-src/client/channels/telegram/styles.js +31 -0
  65. package/plugin-src/client/channels/telegram/thinking-traces.js +25 -0
  66. package/plugin-src/client/channels/wecom/api.js +160 -0
  67. package/plugin-src/client/channels/wecom/index.js +625 -0
  68. package/plugin-src/client/channels/wecom/styles.js +19 -0
  69. package/plugin-src/client/channels/wecom-app/api.js +132 -0
  70. package/plugin-src/client/channels/wecom-app/index.js +634 -0
  71. package/plugin-src/client/channels/wecom-app/styles.js +25 -0
  72. package/plugin-src/client/channels/weixin/api.js +211 -0
  73. package/plugin-src/client/channels/weixin/connection-error.js +1 -0
  74. package/plugin-src/client/channels/weixin/index.js +801 -0
  75. package/plugin-src/client/channels/weixin/styles.js +115 -0
  76. package/plugin-src/client/channels/whatsapp/api.js +152 -0
  77. package/plugin-src/client/channels/whatsapp/index.js +609 -0
  78. package/plugin-src/client/channels/whatsapp/styles.js +19 -0
  79. package/plugin-src/client/connection-error.js +87 -0
  80. package/plugin-src/client/context-enhancement.js +415 -0
  81. package/plugin-src/client/credential-binding.js +118 -0
  82. package/plugin-src/client/delivery-settings.js +905 -0
  83. package/plugin-src/client/global-settings.js +433 -0
  84. package/plugin-src/client/i18n.js +1314 -0
  85. package/plugin-src/client/index.js +624 -0
  86. package/plugin-src/client/interface-language.js +89 -0
  87. package/plugin-src/client/last-message-error.js +18 -0
  88. package/plugin-src/client/lifecycle.js +86 -0
  89. package/plugin-src/client/loopback-recovery.js +75 -0
  90. package/plugin-src/client/model-setting.js +172 -0
  91. package/plugin-src/client/panel-error-boundary.js +21 -0
  92. package/plugin-src/client/plugin-page.js +51 -0
  93. package/plugin-src/client/session-channel-logos.js +243 -0
  94. package/plugin-src/client/styles.js +770 -0
  95. package/plugin-src/client/update-panel.js +14 -0
  96. package/plugin-src/client/workspace-directory-picker.js +280 -0
  97. package/plugin-src/client/workspace-editor.js +69 -0
  98. package/plugin-src/client/workspace-snapshot-fence.js +28 -0
  99. package/plugin-src/host/build.mjs +52 -0
  100. package/plugin-src/host/channels/dingtalk/connection-supervisor.mjs +130 -0
  101. package/plugin-src/host/channels/dingtalk/index.mjs +35 -0
  102. package/plugin-src/host/channels/dingtalk/production.mjs +193 -0
  103. package/plugin-src/host/channels/dingtalk/rpc.mjs +359 -0
  104. package/plugin-src/host/channels/discord/index.mjs +33 -0
  105. package/plugin-src/host/channels/discord/production.mjs +18 -0
  106. package/plugin-src/host/channels/discord/rpc.mjs +21 -0
  107. package/plugin-src/host/channels/email/availability.mjs +60 -0
  108. package/plugin-src/host/channels/email/index.mjs +36 -0
  109. package/plugin-src/host/channels/email/production.mjs +58 -0
  110. package/plugin-src/host/channels/email/rpc.mjs +163 -0
  111. package/plugin-src/host/channels/feishu/connection-supervisor.mjs +167 -0
  112. package/plugin-src/host/channels/feishu/controller.mjs +172 -0
  113. package/plugin-src/host/channels/feishu/credential-store.mjs +84 -0
  114. package/plugin-src/host/channels/feishu/index.mjs +69 -0
  115. package/plugin-src/host/channels/feishu/production.mjs +319 -0
  116. package/plugin-src/host/channels/feishu/rpc.mjs +863 -0
  117. package/plugin-src/host/channels/imessage/index.mjs +21 -0
  118. package/plugin-src/host/channels/imessage/production.mjs +13 -0
  119. package/plugin-src/host/channels/imessage/rpc.mjs +78 -0
  120. package/plugin-src/host/channels/matrix/index.mjs +31 -0
  121. package/plugin-src/host/channels/matrix/production.mjs +241 -0
  122. package/plugin-src/host/channels/matrix/rpc.mjs +228 -0
  123. package/plugin-src/host/channels/office/index.mjs +14 -0
  124. package/plugin-src/host/channels/office/production.mjs +45 -0
  125. package/plugin-src/host/channels/office/rpc.mjs +51 -0
  126. package/plugin-src/host/channels/qq/connection-supervisor.mjs +124 -0
  127. package/plugin-src/host/channels/qq/index.mjs +28 -0
  128. package/plugin-src/host/channels/qq/production.mjs +181 -0
  129. package/plugin-src/host/channels/qq/rpc.mjs +250 -0
  130. package/plugin-src/host/channels/shared/access-policy-production.mjs +137 -0
  131. package/plugin-src/host/channels/shared/access-policy-rpc.mjs +17 -0
  132. package/plugin-src/host/channels/shared/agent-preset-rpc.mjs +25 -0
  133. package/plugin-src/host/channels/shared/bot-alias-rpc.mjs +15 -0
  134. package/plugin-src/host/channels/shared/connection-supervisor.mjs +133 -0
  135. package/plugin-src/host/channels/shared/context-enhancement-rpc.mjs +17 -0
  136. package/plugin-src/host/channels/shared/model-setting-rpc.mjs +18 -0
  137. package/plugin-src/host/channels/shared/production.mjs +239 -0
  138. package/plugin-src/host/channels/shared/rpc.mjs +226 -0
  139. package/plugin-src/host/channels/shared/startup-error.mjs +55 -0
  140. package/plugin-src/host/channels/shared/startup.mjs +76 -0
  141. package/plugin-src/host/channels/shared/thinking-traces-rpc.mjs +11 -0
  142. package/plugin-src/host/channels/shared/workspace-rpc.mjs +31 -0
  143. package/plugin-src/host/channels/slack/index.mjs +31 -0
  144. package/plugin-src/host/channels/slack/production.mjs +176 -0
  145. package/plugin-src/host/channels/slack/rpc.mjs +221 -0
  146. package/plugin-src/host/channels/telegram/index.mjs +33 -0
  147. package/plugin-src/host/channels/telegram/production.mjs +19 -0
  148. package/plugin-src/host/channels/telegram/rpc.mjs +22 -0
  149. package/plugin-src/host/channels/wecom/connection-supervisor.mjs +124 -0
  150. package/plugin-src/host/channels/wecom/index.mjs +34 -0
  151. package/plugin-src/host/channels/wecom/production.mjs +187 -0
  152. package/plugin-src/host/channels/wecom/rpc.mjs +255 -0
  153. package/plugin-src/host/channels/wecom-app/index.mjs +33 -0
  154. package/plugin-src/host/channels/wecom-app/production.mjs +221 -0
  155. package/plugin-src/host/channels/wecom-app/rpc.mjs +235 -0
  156. package/plugin-src/host/channels/weixin/connection-supervisor.mjs +139 -0
  157. package/plugin-src/host/channels/weixin/index.mjs +44 -0
  158. package/plugin-src/host/channels/weixin/production.mjs +258 -0
  159. package/plugin-src/host/channels/weixin/rpc.mjs +285 -0
  160. package/plugin-src/host/channels/whatsapp/index.mjs +33 -0
  161. package/plugin-src/host/channels/whatsapp/production.mjs +198 -0
  162. package/plugin-src/host/channels/whatsapp/rpc.mjs +242 -0
  163. package/plugin-src/host/delivery-adapter.mjs +411 -0
  164. package/plugin-src/host/delivery-http.mjs +132 -0
  165. package/plugin-src/host/delivery-rpc.mjs +173 -0
  166. package/plugin-src/host/delivery-service.mjs +618 -0
  167. package/plugin-src/host/delivery-suggestions.mjs +198 -0
  168. package/plugin-src/host/harness-command-executor.mjs +48 -0
  169. package/plugin-src/host/harness-connection.mjs +20 -0
  170. package/plugin-src/host/harness-session-coordinator.mjs +183 -0
  171. package/plugin-src/host/host-language-rpc.mjs +71 -0
  172. package/plugin-src/host/host-language.mjs +157 -0
  173. package/plugin-src/host/image-input-rpc.mjs +24 -0
  174. package/plugin-src/host/inbound-ttl-rpc.mjs +86 -0
  175. package/plugin-src/host/inbound-ttl-runtime.mjs +85 -0
  176. package/plugin-src/host/inbound-ttl-service.mjs +179 -0
  177. package/plugin-src/host/index.mjs +229 -0
  178. package/plugin-src/host/injected-context.mjs +104 -0
  179. package/plugin-src/host/lark-sdk-handshake-patch.mjs +181 -0
  180. package/plugin-src/host/modern-harness-api.mjs +738 -0
  181. package/plugin-src/host/rpc-authority.mjs +12 -0
  182. package/plugin-src/host/session-sync-coordinator.mjs +233 -0
  183. package/plugin-src/host/session-title-prefix.mjs +122 -0
  184. package/plugin-src/host/update-policy.mjs +31 -0
  185. package/plugin-src/host/update-rpc.mjs +16 -0
  186. package/plugin-src/host/update-runtime.mjs +339 -0
  187. package/plugin-src/host/update-service.mjs +392 -0
  188. package/plugin-src/management-rpc.mjs +87 -0
  189. package/src/channels/dingtalk/config-store.mjs +284 -0
  190. package/src/channels/dingtalk/connection-error.mjs +292 -0
  191. package/src/channels/dingtalk/device-auth.mjs +240 -0
  192. package/src/channels/dingtalk/dingtalk-api.mjs +1140 -0
  193. package/src/channels/dingtalk/dingtalk-bridge.mjs +1889 -0
  194. package/src/channels/dingtalk/dingtalk-card-stream.mjs +242 -0
  195. package/src/channels/dingtalk/dingtalk-controller.mjs +852 -0
  196. package/src/channels/dingtalk/dingtalk-menu.mjs +95 -0
  197. package/src/channels/dingtalk/dingtalk-runtime.mjs +482 -0
  198. package/src/channels/dingtalk/harness-client.mjs +19 -0
  199. package/src/channels/dingtalk/state-store.mjs +325 -0
  200. package/src/channels/discord/config-store.mjs +28 -0
  201. package/src/channels/discord/discord-api.mjs +423 -0
  202. package/src/channels/discord/discord-bridge.mjs +16 -0
  203. package/src/channels/discord/discord-controller.mjs +29 -0
  204. package/src/channels/discord/discord-runtime.mjs +1091 -0
  205. package/src/channels/discord/external-consumer.mjs +199 -0
  206. package/src/channels/discord/external-files.mjs +97 -0
  207. package/src/channels/discord/harness-client.mjs +11 -0
  208. package/src/channels/discord/history-reader.mjs +142 -0
  209. package/src/channels/discord/nearby-history.mjs +112 -0
  210. package/src/channels/discord/state-store.mjs +3 -0
  211. package/src/channels/email/config-store.mjs +194 -0
  212. package/src/channels/email/email-api.mjs +20 -0
  213. package/src/channels/email/email-bridge.mjs +17 -0
  214. package/src/channels/email/email-controller.mjs +824 -0
  215. package/src/channels/email/email-runtime.mjs +699 -0
  216. package/src/channels/email/harness-client.mjs +7 -0
  217. package/src/channels/email/mail-format.mjs +91 -0
  218. package/src/channels/email/state-store.mjs +176 -0
  219. package/src/channels/email/transport.mjs +64 -0
  220. package/src/channels/email/transports/agent-mail.mjs +604 -0
  221. package/src/channels/email/transports/agently-cli.mjs +288 -0
  222. package/src/channels/email/transports/imap-smtp.mjs +165 -0
  223. package/src/channels/feishu/bridge.mjs +6286 -0
  224. package/src/channels/feishu/config.mjs +71 -0
  225. package/src/channels/feishu/external-cards.mjs +87 -0
  226. package/src/channels/feishu/external-consumer.mjs +89 -0
  227. package/src/channels/feishu/external-files.mjs +115 -0
  228. package/src/channels/feishu/external-images.mjs +50 -0
  229. package/src/channels/feishu/external-names.mjs +99 -0
  230. package/src/channels/feishu/feishu-app.mjs +54 -0
  231. package/src/channels/feishu/feishu-cards.mjs +1285 -0
  232. package/src/channels/feishu/feishu-channel.mjs +651 -0
  233. package/src/channels/feishu/feishu-runtime.mjs +982 -0
  234. package/src/channels/feishu/group-message-permission-manager.mjs +72 -0
  235. package/src/channels/feishu/group-response-mode.mjs +15 -0
  236. package/src/channels/feishu/harness-client.mjs +19 -0
  237. package/src/channels/feishu/history-reader.mjs +77 -0
  238. package/src/channels/feishu/live-cot.mjs +260 -0
  239. package/src/channels/feishu/message-utils.mjs +613 -0
  240. package/src/channels/feishu/multi-bot-controller.mjs +1619 -0
  241. package/src/channels/feishu/nearby-history.mjs +72 -0
  242. package/src/channels/feishu/plugin-config-store.mjs +216 -0
  243. package/src/channels/feishu/plugin-controller.mjs +254 -0
  244. package/src/channels/feishu/registration-manager.mjs +349 -0
  245. package/src/channels/feishu/repair-manager.mjs +138 -0
  246. package/src/channels/feishu/reply-context.mjs +22 -0
  247. package/src/channels/feishu/slash-command-panel.mjs +155 -0
  248. package/src/channels/feishu/slash-command-registry.mjs +495 -0
  249. package/src/channels/feishu/state-store.mjs +214 -0
  250. package/src/channels/feishu/step-push-mode.mjs +25 -0
  251. package/src/channels/feishu/voice-config.mjs +34 -0
  252. package/src/channels/feishu/voice.mjs +134 -0
  253. package/src/channels/imessage/config-store.mjs +24 -0
  254. package/src/channels/imessage/controller.mjs +37 -0
  255. package/src/channels/imessage/harness-client.mjs +7 -0
  256. package/src/channels/imessage/imessage-api.mjs +194 -0
  257. package/src/channels/imessage/imessage-bridge.mjs +16 -0
  258. package/src/channels/imessage/runtime.mjs +102 -0
  259. package/src/channels/imessage/state-store.mjs +3 -0
  260. package/src/channels/matrix/matrix-api.mjs +696 -0
  261. package/src/channels/matrix/matrix-bridge.mjs +20 -0
  262. package/src/channels/matrix/matrix-config-store.mjs +368 -0
  263. package/src/channels/matrix/matrix-controller.mjs +404 -0
  264. package/src/channels/matrix/matrix-crypto-store.mjs +279 -0
  265. package/src/channels/matrix/matrix-crypto.mjs +1014 -0
  266. package/src/channels/matrix/matrix-harness-client.mjs +11 -0
  267. package/src/channels/matrix/matrix-normalize.mjs +357 -0
  268. package/src/channels/matrix/matrix-rich-text.mjs +313 -0
  269. package/src/channels/matrix/matrix-room-history.mjs +316 -0
  270. package/src/channels/matrix/matrix-runtime.mjs +1014 -0
  271. package/src/channels/office/config-store.mjs +107 -0
  272. package/src/channels/office/office-controller.mjs +178 -0
  273. package/src/channels/office/office-job-executor.mjs +391 -0
  274. package/src/channels/office/office-runtime.mjs +175 -0
  275. package/src/channels/office/office-transport.mjs +171 -0
  276. package/src/channels/office/protocol.mjs +43 -0
  277. package/src/channels/qq/config-store.mjs +173 -0
  278. package/src/channels/qq/harness-client.mjs +11 -0
  279. package/src/channels/qq/markdown-reply.mjs +446 -0
  280. package/src/channels/qq/qq-bridge.mjs +1507 -0
  281. package/src/channels/qq/qq-controller.mjs +514 -0
  282. package/src/channels/qq/qq-menu.mjs +208 -0
  283. package/src/channels/qq/qq-runtime.mjs +303 -0
  284. package/src/channels/qq/qr-auth.mjs +24 -0
  285. package/src/channels/qq/state-error.mjs +17 -0
  286. package/src/channels/qq/state-store.mjs +143 -0
  287. package/src/channels/shared/access-policy.mjs +210 -0
  288. package/src/channels/shared/agent-preset.mjs +76 -0
  289. package/src/channels/shared/batch-input.mjs +229 -0
  290. package/src/channels/shared/bot-alias.mjs +29 -0
  291. package/src/channels/shared/bot-workspace-store.mjs +2383 -0
  292. package/src/channels/shared/command-catalog.mjs +107 -0
  293. package/src/channels/shared/command-permission.mjs +32 -0
  294. package/src/channels/shared/compact-command.mjs +109 -0
  295. package/src/channels/shared/config-read-error.mjs +24 -0
  296. package/src/channels/shared/connection-error.mjs +191 -0
  297. package/src/channels/shared/connection-test.mjs +58 -0
  298. package/src/channels/shared/context-enhancement.mjs +372 -0
  299. package/src/channels/shared/control-command.mjs +111 -0
  300. package/src/channels/shared/conversation-state-store.mjs +165 -0
  301. package/src/channels/shared/default-workspace.mjs +31 -0
  302. package/src/channels/shared/deferred-delivery-coordinator.mjs +241 -0
  303. package/src/channels/shared/deferred-delivery.mjs +161 -0
  304. package/src/channels/shared/deferred-state.mjs +53 -0
  305. package/src/channels/shared/diagnostic-details.mjs +95 -0
  306. package/src/channels/shared/editable-message-stream.mjs +100 -0
  307. package/src/channels/shared/exclusive-inbound-consumers.mjs +91 -0
  308. package/src/channels/shared/file-download.mjs +64 -0
  309. package/src/channels/shared/harness-approval.mjs +508 -0
  310. package/src/channels/shared/harness-client.mjs +2143 -0
  311. package/src/channels/shared/harness-mux.mjs +123 -0
  312. package/src/channels/shared/harness-question.mjs +95 -0
  313. package/src/channels/shared/harness-session-binding.mjs +119 -0
  314. package/src/channels/shared/history-command.mjs +193 -0
  315. package/src/channels/shared/i18n-en/diagnostics.mjs +55 -0
  316. package/src/channels/shared/i18n-en/dingtalk.mjs +81 -0
  317. package/src/channels/shared/i18n-en/discord.mjs +10 -0
  318. package/src/channels/shared/i18n-en/email.mjs +25 -0
  319. package/src/channels/shared/i18n-en/feishu.mjs +404 -0
  320. package/src/channels/shared/i18n-en/image-input.mjs +18 -0
  321. package/src/channels/shared/i18n-en/matrix.mjs +85 -0
  322. package/src/channels/shared/i18n-en/office.mjs +23 -0
  323. package/src/channels/shared/i18n-en/qq.mjs +96 -0
  324. package/src/channels/shared/i18n-en/shared-a.mjs +241 -0
  325. package/src/channels/shared/i18n-en/shared-b.mjs +263 -0
  326. package/src/channels/shared/i18n-en/shared-c.mjs +203 -0
  327. package/src/channels/shared/i18n-en/slack.mjs +27 -0
  328. package/src/channels/shared/i18n-en/telegram.mjs +27 -0
  329. package/src/channels/shared/i18n-en/wecom-app.mjs +33 -0
  330. package/src/channels/shared/i18n-en/wecom.mjs +62 -0
  331. package/src/channels/shared/i18n-en/weixin.mjs +88 -0
  332. package/src/channels/shared/i18n-en/whatsapp.mjs +17 -0
  333. package/src/channels/shared/i18n-en.mjs +45 -0
  334. package/src/channels/shared/i18n.mjs +78 -0
  335. package/src/channels/shared/im-source-guidance.mjs +65 -0
  336. package/src/channels/shared/image-input-policy.mjs +35 -0
  337. package/src/channels/shared/image-input-settings-store.mjs +60 -0
  338. package/src/channels/shared/image-input.mjs +124 -0
  339. package/src/channels/shared/image-prompt.mjs +360 -0
  340. package/src/channels/shared/inbound-access.mjs +43 -0
  341. package/src/channels/shared/inbound-file.mjs +323 -0
  342. package/src/channels/shared/inbound-ttl-store.mjs +110 -0
  343. package/src/channels/shared/inbound-ttl.mjs +22 -0
  344. package/src/channels/shared/injected-context.mjs +362 -0
  345. package/src/channels/shared/interface-language-store.mjs +127 -0
  346. package/src/channels/shared/interface-language.mjs +51 -0
  347. package/src/channels/shared/message-failure.mjs +257 -0
  348. package/src/channels/shared/model-command.mjs +741 -0
  349. package/src/channels/shared/model-setting.mjs +145 -0
  350. package/src/channels/shared/preset-command.mjs +308 -0
  351. package/src/channels/shared/semantic/artifact-delivery.mjs +177 -0
  352. package/src/channels/shared/semantic/artifact.mjs +750 -0
  353. package/src/channels/shared/semantic/delivery.mjs +193 -0
  354. package/src/channels/shared/semantic/reply-reference.mjs +148 -0
  355. package/src/channels/shared/session-binding-lock.mjs +40 -0
  356. package/src/channels/shared/session-channel-labels.mjs +28 -0
  357. package/src/channels/shared/session-reply-recovery.mjs +104 -0
  358. package/src/channels/shared/session-sync-registry.mjs +22 -0
  359. package/src/channels/shared/session-title.mjs +74 -0
  360. package/src/channels/shared/status-reaction.mjs +107 -0
  361. package/src/channels/shared/text-harness-bridge.mjs +1623 -0
  362. package/src/channels/shared/token-bot-controller.mjs +529 -0
  363. package/src/channels/shared/token-config-store.mjs +208 -0
  364. package/src/channels/shared/video-media.mjs +9 -0
  365. package/src/channels/shared/workspace-command.mjs +532 -0
  366. package/src/channels/shared/workspace-session.mjs +196 -0
  367. package/src/channels/slack/config-store.mjs +177 -0
  368. package/src/channels/slack/external-consumer.mjs +93 -0
  369. package/src/channels/slack/external-files.mjs +90 -0
  370. package/src/channels/slack/harness-client.mjs +11 -0
  371. package/src/channels/slack/history-reader.mjs +203 -0
  372. package/src/channels/slack/manifest.mjs +37 -0
  373. package/src/channels/slack/slack-api.mjs +644 -0
  374. package/src/channels/slack/slack-bridge.mjs +20 -0
  375. package/src/channels/slack/slack-controller.mjs +468 -0
  376. package/src/channels/slack/slack-runtime.mjs +895 -0
  377. package/src/channels/slack/state-store.mjs +3 -0
  378. package/src/channels/telegram/config-store.mjs +89 -0
  379. package/src/channels/telegram/harness-client.mjs +11 -0
  380. package/src/channels/telegram/state-store.mjs +3 -0
  381. package/src/channels/telegram/telegram-api.mjs +486 -0
  382. package/src/channels/telegram/telegram-bridge.mjs +81 -0
  383. package/src/channels/telegram/telegram-controller.mjs +52 -0
  384. package/src/channels/telegram/telegram-http.mjs +21 -0
  385. package/src/channels/telegram/telegram-rich-message.mjs +149 -0
  386. package/src/channels/telegram/telegram-runtime.mjs +1471 -0
  387. package/src/channels/wecom/config-store.mjs +172 -0
  388. package/src/channels/wecom/harness-client.mjs +11 -0
  389. package/src/channels/wecom/qr-auth.mjs +95 -0
  390. package/src/channels/wecom/send-error.mjs +31 -0
  391. package/src/channels/wecom/state-store.mjs +107 -0
  392. package/src/channels/wecom/wecom-bridge.mjs +1833 -0
  393. package/src/channels/wecom/wecom-cards.mjs +101 -0
  394. package/src/channels/wecom/wecom-controller.mjs +530 -0
  395. package/src/channels/wecom/wecom-runtime.mjs +269 -0
  396. package/src/channels/wecom-app/callback-server.mjs +471 -0
  397. package/src/channels/wecom-app/config-store.mjs +242 -0
  398. package/src/channels/wecom-app/harness-client.mjs +11 -0
  399. package/src/channels/wecom-app/state-store.mjs +107 -0
  400. package/src/channels/wecom-app/wecom-app-api.mjs +432 -0
  401. package/src/channels/wecom-app/wecom-app-bridge.mjs +1072 -0
  402. package/src/channels/wecom-app/wecom-app-controller.mjs +453 -0
  403. package/src/channels/wecom-app/wecom-app-runtime.mjs +222 -0
  404. package/src/channels/weixin/config-store.mjs +194 -0
  405. package/src/channels/weixin/connection-error.en.mjs +137 -0
  406. package/src/channels/weixin/connection-error.mjs +153 -0
  407. package/src/channels/weixin/diagnostic-details.mjs +1 -0
  408. package/src/channels/weixin/external-consumer.mjs +160 -0
  409. package/src/channels/weixin/external-files.mjs +84 -0
  410. package/src/channels/weixin/external-typing.mjs +120 -0
  411. package/src/channels/weixin/harness-client.mjs +19 -0
  412. package/src/channels/weixin/state-store.mjs +316 -0
  413. package/src/channels/weixin/weixin-api.mjs +1009 -0
  414. package/src/channels/weixin/weixin-bridge.mjs +1537 -0
  415. package/src/channels/weixin/weixin-controller.mjs +779 -0
  416. package/src/channels/weixin/weixin-runtime.mjs +507 -0
  417. package/src/channels/whatsapp/config-store.mjs +210 -0
  418. package/src/channels/whatsapp/harness-client.mjs +11 -0
  419. package/src/channels/whatsapp/state-store.mjs +3 -0
  420. package/src/channels/whatsapp/whatsapp-bridge.mjs +18 -0
  421. package/src/channels/whatsapp/whatsapp-controller.mjs +470 -0
  422. package/src/channels/whatsapp/whatsapp-runtime.mjs +917 -0
  423. package/src/channels/whatsapp/whatsapp-web-session.mjs +214 -0
@@ -0,0 +1,81 @@
1
+ // English translations (dingtalk area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ // Bot chat replies and card text (dingtalk-bridge.mjs, dingtalk-card-stream.mjs,
4
+ // dingtalk-api.mjs)
5
+ '已连接 DeepSeek Harness,正在思考…': 'Connected to DeepSeek Harness, thinking…',
6
+
7
+ '钉钉机器人已连接 DeepSeek Harness。': 'The DingTalk bot is connected to DeepSeek Harness.',
8
+ '/m 或 /menu 打开下拉操作菜单': '/m or /menu Open the dropdown action menu',
9
+ '会话或工作区已变化,请重新发送 /m。': 'The session or workspace changed. Send /m again.',
10
+ '会话或工作区已变化,菜单已刷新,请重新选择。': 'The session or workspace changed. The menu was refreshed; please select again.',
11
+ '当前任务尚未结束,请先停止任务或等待完成后再操作。': 'A task is still running. Stop it or wait until it finishes before making changes.',
12
+ '操作未完成,请重新发送 /m 后重试。': 'The action did not complete. Send /m again and retry.',
13
+
14
+
15
+
16
+
17
+ '钉钉未能换取图片下载地址,请重新发送;若持续失败,请检查机器人的“企业内机器人发送消息权限”。': 'DingTalk could not provide the image download address. Please resend; if it keeps failing, check the bot\'s "Send messages as an internal robot" permission.',
18
+ '钉钉没有返回图片下载地址,请重新发送。': 'DingTalk did not return an image download address. Please resend.',
19
+ '钉钉未提供引用附件的下载信息,无法读取原附件。请直接重新发送附件后再提问。': 'DingTalk did not provide download information for the quoted attachment, so it cannot be read. Please resend the attachment directly with your question.',
20
+ '钉钉返回的图片临时地址无法读取,请重新发送。': 'The temporary image address returned by DingTalk could not be read. Please resend.',
21
+ '结果文件「{name}」发送结果未能确认,请先检查聊天内是否已收到,不要立即重试。': 'Delivery of the result file "{name}" could not be confirmed. Please check whether it already arrived in the chat before retrying.',
22
+ '结果文件「{name}」已生成,但钉钉应用或机器人缺少文件消息权限。请开通应用 qyapi_base 权限,并确认机器人具备文件消息发送能力。': 'Result file "{name}" was generated, but the DingTalk app or bot lacks file message permission. Enable the app\'s qyapi_base permission and make sure the bot can send file messages.',
23
+ '结果文件「{name}」超过当前钉钉机器人可发送的文件大小,未发送。': 'Result file "{name}" exceeds the file size limit of the current DingTalk bot and was not sent.',
24
+ '结果文件「{name}」暂时被钉钉限流,未能发送,请稍后重试。': 'Result file "{name}" was rate-limited by DingTalk and could not be sent. Please try again later.',
25
+ '结果文件「{name}」已生成,但钉钉拒绝了该文件消息,请检查文件类型和机器人文件消息配置。': 'Result file "{name}" was generated, but DingTalk rejected the file message. Check the file type and the bot\'s file message configuration.',
26
+
27
+ '结果文件「{name}」已生成,但暂时未能通过钉钉发送,请稍后重试。': 'Result file "{name}" was generated but could not be sent via DingTalk right now. Please try again later.',
28
+ '结果文件已生成。': 'The result file has been generated.',
29
+ '钉钉机器人与 DeepSeek Harness 连接正常。': 'The DingTalk bot is connected to DeepSeek Harness normally.',
30
+
31
+
32
+
33
+ // Host-side status and error text (dingtalk-bridge.mjs, dingtalk-runtime.mjs,
34
+ // dingtalk-controller.mjs, config-store.mjs, state-store.mjs)
35
+ '钉钉命令处理失败。': 'Failed to process the DingTalk command.',
36
+ '钉钉消息没有安全的回复地址。': 'The DingTalk message has no safe reply address.',
37
+ '钉钉审批处理失败。': 'Failed to process the DingTalk approval.',
38
+ '钉钉消息处理失败。': 'Failed to process the DingTalk message.',
39
+ '钉钉消息格式无效。': 'Invalid DingTalk message format.',
40
+ '钉钉交互问题发送失败。': 'Failed to send the DingTalk interaction question.',
41
+ '钉钉用户': 'DingTalk user',
42
+ '钉钉机器人': 'DingTalk bot',
43
+ '身份已隐藏': 'Identity hidden',
44
+ '钉钉机器人凭据缺失,请移除后重新扫码。': 'The DingTalk bot credentials are missing. Remove the bot and scan the QR code again.',
45
+ '钉钉连接未就绪,请稍后重试。': 'The DingTalk connection is not ready. Please try again later.',
46
+ '钉钉连接仍未就绪,请稍后重试。': 'The DingTalk connection is still not ready. Please try again later.',
47
+ '钉钉 Stream 连接失败:检测到代理依赖 agent-base 6.0.0。': 'The DingTalk Stream connection failed because proxy dependency agent-base 6.0.0 was detected.',
48
+ '请将 DSH profile 中的 agent-base@6 固定为 6.0.2 后重新安装依赖,或升级 pnpm 后重新解析 lockfile。': 'Pin agent-base@6 to 6.0.2 in the DSH profile and reinstall dependencies, or upgrade pnpm and re-resolve the lockfile.',
49
+ '插件无法连接本机 Harness。': 'The plugin could not connect to the local Harness.',
50
+ '请确认 dsh web 正常运行,并查看 dsh web 日志中相同参考号对应的诊断信息。': 'Make sure dsh web is running, then find the matching reference in the dsh web log.',
51
+ '钉钉 Stream SDK 加载失败。': 'The DingTalk Stream SDK could not be loaded.',
52
+ '请重新安装当前 DSH profile 的插件依赖,并查看 dsh web 日志中相同参考号对应的诊断信息。': 'Reinstall plugin dependencies in the current DSH profile, then find the matching reference in the dsh web log.',
53
+ '钉钉拒绝了当前应用凭据。': 'DingTalk rejected the current app credentials.',
54
+ '请核对 Client ID、Client Secret 和机器人权限后重试。': 'Verify the app credentials and bot permissions, then try again.',
55
+ '连接钉钉 Stream 超时。': 'The DingTalk Stream connection timed out.',
56
+ '请检查网络、代理和防火墙后重试;详细原因可在 dsh web 日志中按参考号查找。': 'Check the network, proxy, and firewall, then try again. Find details in the dsh web log using the reference.',
57
+ '无法解析钉钉服务地址。': 'The DingTalk service address could not be resolved.',
58
+ '请检查 DNS、网络和代理设置;详细原因可在 dsh web 日志中按参考号查找。': 'Check DNS, network, and proxy settings. Find details in the dsh web log using the reference.',
59
+ '钉钉 Stream 的 TLS 连接校验失败。': 'TLS validation failed for the DingTalk Stream connection.',
60
+ '请检查系统证书、代理证书或 HTTPS 中间代理;详细原因可在 dsh web 日志中按参考号查找。': 'Check system certificates, proxy certificates, or the HTTPS interception proxy. Find details in the dsh web log using the reference.',
61
+ '钉钉 Stream 无法通过当前代理建立连接。': 'DingTalk Stream could not connect through the current proxy.',
62
+ '请检查 HTTP_PROXY、HTTPS_PROXY、NO_PROXY 和代理连通性;详细原因可在 dsh web 日志中按参考号查找。': 'Check HTTP_PROXY, HTTPS_PROXY, NO_PROXY, and proxy connectivity. Find details in the dsh web log using the reference.',
63
+ '钉钉 Stream 消息连接建立失败。': 'The DingTalk Stream message connection could not be established.',
64
+ '请检查网络和机器人配置;详细原因可在 dsh web 日志中按参考号查找。': 'Check the network and bot configuration. Find details in the dsh web log using the reference.',
65
+ '钉钉 Stream 消息监听初始化失败。': 'DingTalk Stream message-listener initialization failed.',
66
+ '请确认 dsh-im 与 dingtalk-stream 版本兼容,并按参考号查看 dsh web 日志。': 'Make sure dsh-im and dingtalk-stream are compatible, then inspect the dsh web log using the reference.',
67
+ '钉钉机器人运行环境初始化失败。': 'The DingTalk bot runtime could not be initialized.',
68
+ '请检查 DSH 数据目录、工作区和插件依赖,并按参考号查看 dsh web 日志。': 'Check the DSH data directory, workspace, and plugin dependencies, then inspect the dsh web log using the reference.',
69
+ '请在 dsh web 日志中查找相同参考号,以获取已脱敏的具体错误。': 'Find the matching reference in the dsh web log for the redacted error details.',
70
+ '扫码接入已取消。': 'QR code setup has been cancelled.',
71
+ '无法生成钉钉二维码,请稍后重试。': 'Could not generate the DingTalk QR code. Please try again later.',
72
+ '二维码已过期,请重新生成。': 'The QR code has expired. Generate a new one.',
73
+ '钉钉已接入,但消息连接暂未就绪,请稍后重试。': 'DingTalk is connected, but the message connection is not ready yet. Please try again later.',
74
+ '钉钉未完成机器人授权,请重新扫码。': 'DingTalk did not complete the bot authorization. Please scan the QR code again.',
75
+ '钉钉授权状态暂时不可用,正在重试。': 'The DingTalk authorization status is temporarily unavailable. Retrying.',
76
+ '钉钉已授权,但无法安全保存接入配置。': 'DingTalk authorization succeeded, but the configuration could not be saved safely.',
77
+ '钉钉授权查询暂时失败,正在重试。': 'The DingTalk authorization query failed temporarily. Retrying.',
78
+ '钉钉机器人({clientId})': 'DingTalk bot ({clientId})',
79
+ '钉钉 Stream 消息连接运行正常': 'The DingTalk Stream message connection is running normally',
80
+ '钉钉消息连接当前离线': 'The DingTalk message connection is currently offline',
81
+ };
@@ -0,0 +1,10 @@
1
+ // English translations (discord area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ 'Discord Bot Token 无效,请重新填写。': 'The Discord Bot Token is invalid. Please enter it again.',
4
+ 'Discord Gateway Intents 配置不正确,请检查 Developer Portal 的 Bot 设置。':
5
+ 'The Discord Gateway Intents are misconfigured. Please check the Bot settings in the Developer Portal.',
6
+ 'Discord机器人': 'Discord Bot',
7
+ ' Gateway 长连接': ' Gateway long-lived connection',
8
+ 'Thread 创建结果暂时无法确认。若已创建,请在对应 Thread 中重试;若未创建,请稍后重新 @机器人。':
9
+ 'The Thread creation result cannot be confirmed yet. If the Thread was created, retry inside it; if it was not, mention the bot again shortly.',
10
+ };
@@ -0,0 +1,25 @@
1
+ /** English projections for host-side Email channel text. */
2
+ export default Object.freeze({
3
+ '邮箱': 'Email',
4
+ '邮箱地址格式不正确': 'The email address format is invalid',
5
+ '邮箱地址与应用密码均为必填': 'Both the email address and the app password are required',
6
+ '请选择邮箱服务商或填写 IMAP/SMTP 服务器地址':
7
+ 'Choose a mail provider or fill in the IMAP/SMTP server addresses',
8
+ '必须至少配置一个允许发件人':
9
+ 'At least one allowed sender must be configured',
10
+ '邮箱连接失败,请检查地址、应用密码与服务器设置':
11
+ 'Could not connect to the mailbox; check the address, app password, and server settings',
12
+ '未找到该邮箱配置': 'No mailbox configuration was found',
13
+ '邮箱凭据已丢失,请重新绑定':
14
+ 'The mailbox credential is missing; please bind the mailbox again',
15
+ '邮箱尚未连接': 'The mailbox is not connected yet',
16
+ '邮箱通道连接正常。': 'The Email channel is connected.',
17
+ '邮箱通道运行正常': 'The Email channel is running normally',
18
+ '邮箱通道尚未连接': 'The Email channel is not connected yet',
19
+ '邮箱访问策略同步失败,请重试': 'Failed to sync the mailbox access policy; please retry',
20
+ '当前环境不支持会话绑定': 'Session binding is not supported in this environment',
21
+ '该接入方式不需要扫码授权': 'This access method does not use QR authorization',
22
+ '授权信息缺失,请重新扫码授权': 'The authorization is missing; please scan again',
23
+ '扫码授权尚未开始': 'QR authorization has not been started',
24
+ '扫码授权已超时,请重新发起': 'QR authorization timed out; please start it again',
25
+ });
@@ -0,0 +1,404 @@
1
+ // English translations (feishu area). Keys are exact Chinese literals passed to t().
2
+ export default {
3
+ '已结束本轮提问,将在当前会话中继续处理图片。':
4
+ 'The questions have been closed. Your image will be processed in this conversation.',
5
+ '图片已排队,但暂时无法结束当前提问。请先回答问题或发送 /stop,结束后会继续处理图片。':
6
+ 'Your image is queued, but the current questions could not be closed. Answer them or send /stop; your image will be processed afterward.',
7
+ '⏹ 提问已结束{progress}': '⏹ Questions closed{progress}',
8
+ '内容已合并至后续消息。': 'Content has been consolidated into the following messages.',
9
+ // feishu/bridge.mjs — welcome / help
10
+ '北汇星河 AIOS 已连接 DeepSeek Harness。':
11
+ 'BeiHui XingHe AIOS is connected to DeepSeek Harness.',
12
+ '/repair 补全飞书权限与卡片回调': '/repair Complete Feishu permissions and the card callback',
13
+ '/m(或 /menu) 打开交互卡片菜单': '/m (or /menu) Open the interactive card menu',
14
+ '/watch [Session ID 或序号] 关注会话,任务完成自动推送':
15
+ '/watch [Session ID or index] Watch a session; completion is pushed automatically',
16
+ '/unwatch [Session ID 或序号] 取消关注':
17
+ '/unwatch [Session ID or index] Stop watching',
18
+ '/watchlist 查看关注列表': '/watchlist View the watch list',
19
+ '/archived on|off 会话列表是否包含归档会话':
20
+ '/archived on|off Whether the session list includes archived sessions',
21
+ '工作区必须是绝对路径。': 'The workspace must be an absolute path.',
22
+ '工作区路径不存在。': 'The workspace path does not exist.',
23
+ '工作区路径必须指向一个目录。': 'The workspace path must point to a directory.',
24
+ '机器人正在移除或已重新接入,无法操作原会话的工作区。':
25
+ 'The bot is being removed or has been reconnected; the original session’s workspace cannot be changed.',
26
+ '操作失败,请稍后重试。': 'The operation failed. Please try again later.',
27
+ '结果文件「{name}」已生成,但机器人缺少飞书文件上传权限 im:resource。请私聊机器人执行 /repair 命令,或者在「IM机器人」设置页点击“补全权限”按钮并扫码。完成飞书要求的发布审批后重试。':
28
+ 'The result file "{name}" was generated, but the bot lacks the Feishu file-upload scope im:resource. Run /repair in a direct chat with the bot, or click the “Complete permissions” button on the IM Bot settings page and scan the QR code. Complete any publishing approval Feishu requires, then try again.',
29
+ '结果文件「{name}」超过飞书 30 MB 上限,未发送。':
30
+ 'The result file "{name}" exceeds the Feishu 30 MB limit and was not sent.',
31
+ '结果文件「{name}」为空,飞书不允许发送空文件。':
32
+ 'The result file "{name}" is empty; Feishu does not allow sending empty files.',
33
+ '结果文件「{name}」暂时被飞书限流,未能发送,请稍后重试。':
34
+ 'The result file "{name}" was temporarily rate-limited by Feishu and could not be sent. Please try again later.',
35
+ '结果文件「{name}」已生成,但暂时未能发送,请稍后重试。':
36
+ 'The result file "{name}" was generated but could not be sent right now. Please try again later.',
37
+ '处理失败,请稍后重试。如果问题持续,请在 DeepSeek Harness 的「IM机器人」设置页检查飞书连接状态。':
38
+ 'Message processing failed. Please try again later. If the problem persists, check the Feishu connection status on the IM Bot settings page in DeepSeek Harness.',
39
+ '已开启全新 Harness 会话。': 'A brand-new Harness session has started.',
40
+ '飞书机器人与 DeepSeek Harness 连接正常。':
41
+ 'The Feishu bot is connected to DeepSeek Harness and working normally.',
42
+ '用法:/archived on(包含归档会话)或 /archived off(隐藏归档会话)':
43
+ 'Usage: /archived on (include archived sessions) or /archived off (hide archived sessions)',
44
+ '已开启:会话列表包含归档会话。': 'On: the session list includes archived sessions.',
45
+ '已关闭:会话列表隐藏归档会话。': 'Off: the session list hides archived sessions.',
46
+
47
+ // feishu/bridge.mjs — repair flow
48
+ '为避免授权链接暴露,请私聊机器人发送 /repair。':
49
+ 'To keep the authorization link private, send /repair to the bot in a direct message.',
50
+ '无法识别当前发送者,未发起修复。':
51
+ 'The current sender could not be identified, so repair was not started.',
52
+ '当前 Host 版本暂不支持聊天内修复,请先更新插件。':
53
+ 'The current Host version does not support in-chat repair. Update the plugin first.',
54
+ '用法:/repair、/repair qr、/repair status、/repair cancel 或 /repair verify':
55
+ 'Usage: /repair, /repair qr, /repair status, /repair cancel, or /repair verify',
56
+ '当前 Runtime 没有可恢复的修复任务记录(机器人可能刚完成密钥更新并重启)。本命令不会启动新的授权;请查看机器人发送的验证结果,确认上一次任务已结束后再发送 /repair。':
57
+ 'The current Runtime has no recoverable repair attempt (the bot may have just rotated its secret and restarted). This command starts no new authorization. Check the verification result the bot sent, then send /repair after the previous attempt has finished.',
58
+ '另一位用户正在修复该机器人,本次不会显示其授权信息。':
59
+ 'Another user is repairing this bot; its authorization info will not be shown this time.',
60
+ '暂时无法取消修复任务,请稍后重试。':
61
+ 'Could not cancel the repair task right now. Please try again later.',
62
+ '暂时无法取消旧修复任务,未生成新链接;请稍后重试。':
63
+ 'Could not cancel the previous repair attempt, so no new link was generated. Please try again later.',
64
+ '暂时无法查询修复状态,请稍后重试。':
65
+ 'Could not check the repair status right now. Please try again later.',
66
+ '修复流程暂时失败,现有机器人连接不受影响;请稍后发送 /repair 重试。':
67
+ 'The repair flow failed for now; the existing bot connection is unaffected. Send /repair again later.',
68
+ '飞书返回了无法安全验证的授权链接,已中止本次修复。':
69
+ 'Feishu returned an authorization link that cannot be verified safely. This repair was aborted.',
70
+ '飞书未返回授权链接,已中止本次修复。':
71
+ 'Feishu did not return an authorization link. This repair was aborted.',
72
+ '授权已确认,正在发送并等待测试按钮回调;收到真实回调后才会完成。':
73
+ 'Authorization confirmed. Sending a test button and waiting for its callback; this completes only after a real callback arrives.',
74
+ '修复状态查询中断,现有机器人连接不受影响;发送 /repair status 重试查询。':
75
+ 'The repair status query was interrupted; the existing bot connection is unaffected. Send /repair status to retry.',
76
+ '链接为短期有效': 'The link is valid for a short time.',
77
+ '链接约 {minutes} 分钟后过期': 'The link expires in about {minutes} minutes',
78
+ '旧授权链接已作废,已生成新的修复链接。':
79
+ 'The previous authorization link was invalidated and a new repair link was generated.',
80
+ '🔧 准备补全权限与回调。': '🔧 Preparing to complete permissions and the callback.',
81
+ '本次会增量添加当前缺少项:卡片回调 card.action.trigger;飞书显示为“获取单聊、群组消息”的租户权限 im:message:readonly(用于读取用户消息中的图片或文件);im:resource(用于上传机器人发送的图片或文件);im:message.group_at_msg.include_bot:readonly(用于接收群内其他机器人 @ 当前机器人的消息);以及原生命令面板所需的 application:app_slash_command:read / write。确认页只会显示当前缺少的项;若出现上述范围之外的配置,请取消。':
82
+ 'This incrementally adds the currently missing items: the card callback card.action.trigger; the tenant scope im:message:readonly, shown by Feishu as “Read direct and group messages” and used to read images or files in user messages; im:resource, used to upload images or files sent by the bot; im:message.group_at_msg.include_bot:readonly, used to receive group messages from other bots that mention this bot; and application:app_slash_command:read / write for the native command panel. The confirmation page shows only items the app is currently missing; cancel if anything outside this scope appears.',
83
+ '当前设备直接打开:': 'Open directly on this device:',
84
+ '若要用另一台设备扫码,发送 /repair qr。{expiry}。':
85
+ 'To scan with another device, send /repair qr. {expiry}.',
86
+ '请用另一台设备扫码完成授权{remaining}。':
87
+ 'Complete authorization by scanning with another device{remaining}.',
88
+ '(剩余约 {minutes} 分钟)': ' (about {minutes} minutes left)',
89
+ '二维码暂时无法发送,请直接打开授权链接:\n{url}':
90
+ 'The QR code could not be sent. Open the authorization link directly:\n{url}',
91
+ '授权链接已过期;平台未返回成功结果,无法确认已修复。发送 /repair 生成新链接。':
92
+ 'The authorization link expired; the platform returned no success, so the repair cannot be confirmed. Send /repair for a new link.',
93
+ '已取消本次修复授权,未确认完成修复。':
94
+ 'Repair authorization was cancelled; the repair was not confirmed.',
95
+ '你已取消或拒绝授权,没有确认修复;发送 /repair 可重试。':
96
+ 'You cancelled or declined authorization, so the repair was not confirmed. Send /repair to retry.',
97
+ '授权已提交,但未收到测试按钮回调。可能尚未点击或配置仍在传播;稍后发送 /repair verify 查询,不要盲目重复授权。':
98
+ 'Authorization was submitted, but no test-button callback arrived. It may not have been tapped yet, or the config is still propagating. Send /repair verify later to check; do not authorize blindly again.',
99
+ '修复流程暂时失败,现有机器人连接不受影响;发送 /repair 可重试。':
100
+ 'The repair flow failed for now; the existing bot connection is unaffected. Send /repair to retry.',
101
+ '授权已确认,正在等待专用测试按钮的真实回调;回调到达前不会宣告成功。':
102
+ 'Authorization confirmed. Waiting for the real callback from the dedicated test button; success is not declared until it arrives.',
103
+ '授权尚未完成,暂时不能验证卡片按钮。请先打开授权链接并确认。':
104
+ 'Authorization is not complete, so the card buttons cannot be verified yet. Open the authorization link and confirm first.',
105
+ '修复任务正在等待授权{remaining}。发送 /repair qr 可获取二维码,/repair cancel 可取消。':
106
+ 'The repair task is waiting for authorization{remaining}. Send /repair qr for the QR code, or /repair cancel to cancel.',
107
+ ',剩余约 {minutes} 分钟': ', about {minutes} minutes left',
108
+ '这个菜单已过期,请回复 /m 重新打开。': 'This menu has expired. Send /m to reopen it.',
109
+ '菜单没有这个编号,回复 /m 重新打开。': 'This menu has no such number. Send /m to reopen it.',
110
+ '本页只有 {count} 个会话,回复 /sessionlist 重新查看。':
111
+ 'This page has only {count} sessions. Send /sessionlist to view them again.',
112
+ '只有 {count} 个工作区,回复 /workspacelist 重新查看。':
113
+ 'There are only {count} workspaces. Send /workspacelist to view them again.',
114
+ '关注列表只有 {count} 个会话。': 'The watch list has only {count} sessions.',
115
+
116
+
117
+
118
+
119
+ '已绑定会话「{title}」\nID:{id}': 'Session bound: "{title}"\nID: {id}',
120
+ '绑定失败:{message}': 'Binding failed: {message}',
121
+
122
+ '切换失败:{message}': 'Switch failed: {message}',
123
+ '用法:/watch <Session ID 或当前工作区序号>':
124
+ 'Usage: /watch <Session ID or the current workspace index>',
125
+ '当前机器人没有可用的工作区,无法按序号解析会话。':
126
+ 'This bot has no available workspace, so sessions cannot be resolved by index.',
127
+ '当前工作区只有 {count} 个会话。': 'The current workspace has only {count} sessions.',
128
+ '没有找到这个会话,请用 /sessionlist 查看可用会话。':
129
+ 'Session not found. Use /sessionlist to see the available sessions.',
130
+ '当前状态存储不支持关注。': 'The current state store does not support watching.',
131
+ '无法解析会话:{message}': 'Could not resolve the session: {message}',
132
+ '每个聊天最多关注 {count} 个会话。': 'Each chat can watch at most {count} sessions.',
133
+ '关注列表里没有这个会话,回复 /watchlist 查看。':
134
+ 'This session is not in the watch list. Send /watchlist to view it.',
135
+ '已关注会话「{title}」,任务完成会推送结果。':
136
+ 'Watching session "{title}"; results are pushed when the task completes.',
137
+ '关注失败:{message}': 'Could not watch: {message}',
138
+ '已取消关注「{title}」。': 'Unwatched "{title}".',
139
+ '取消失败:{message}': 'Could not unwatch: {message}',
140
+ '飞书交互问题发送失败。': 'Failed to send the Feishu interaction question.',
141
+ '当前任务仍在运行,请先停止任务或等待任务完成后再开启新会话。':
142
+ 'The current task is still running. Stop it or wait for it to finish before starting a new session.',
143
+ '请输入补充指令后再提交。': 'Enter an instruction before submitting.',
144
+ '操作过于频繁,请稍后再试。': 'Too many card actions are pending. Please try again shortly.',
145
+ '卡片操作失败,请稍后重试。': 'The card action failed. Please try again later.',
146
+ '请先选择至少一个会话。': 'Select at least one session first.',
147
+ '已批量关注 {count} 个会话。': 'Now watching {count} sessions.',
148
+ '已批量关注 {count} 个会话,另有 {failed} 个未成功。':
149
+ 'Now watching {count} sessions; {failed} could not be processed.',
150
+ '已关注(或已达关注上限)。': 'Sessions are already watched, or the watch limit has been reached.',
151
+ '已取消关注 {count} 个会话。': 'Stopped watching {count} sessions.',
152
+ '已取消关注 {count} 个会话,另有 {failed} 个未成功。':
153
+ 'Stopped watching {count} sessions; {failed} could not be processed.',
154
+ '所选会话均未处理成功,请稍后重试。':
155
+ 'None of the selected sessions could be processed. Please try again later.',
156
+ '所选会话已在关注列表中。': 'The selected sessions are already being watched.',
157
+ '所选会话已不在关注列表中。': 'The selected sessions are no longer in the watch list.',
158
+ '未取消任何关注。': 'No watches were removed.',
159
+ '当前没有绑定的会话,请先从会话列表选择。':
160
+ 'No session is currently bound. Select one from the session list first.',
161
+ '已就绪,直接发消息即可继续当前会话。':
162
+ 'Ready. Send a message to continue the current session.',
163
+ '修复需在私聊中验证接入者身份,请直接发送 /repair 开始。':
164
+ 'Repair must verify the owner in a direct chat. Send /repair there to begin.',
165
+ '暂时无法获取预设列表,请稍后重试。':
166
+ 'Could not load the preset list. Please try again later.',
167
+ '暂时无法获取系统状态,请稍后重试。':
168
+ 'Could not load system status. Please try again later.',
169
+ '连接正常': 'Connected',
170
+ '预设:{preset}': 'Preset: {preset}',
171
+ '未知': 'Unknown',
172
+ '/stop 执行完成。': '/stop completed.',
173
+ '停止任务失败,请稍后重试。': 'Could not stop the task. Please try again later.',
174
+ '已提交补充指令。': 'Instruction submitted.',
175
+ '预设重置失败,请稍后重试。': 'Could not reset the preset. Please try again later.',
176
+ '预设切换失败,请稍后重试。': 'Could not switch the preset. Please try again later.',
177
+
178
+ // feishu/feishu-cards.mjs — interactive cards
179
+ '🤖 助手中心': '🤖 Assistant center',
180
+ '**设置**': '**Settings**',
181
+ '切换会话': 'Switch session',
182
+ '选择会话(当前未绑定)': 'Select a session (none currently bound)',
183
+ '跟随默认': 'Follow default',
184
+ '切换预设': 'Switch preset',
185
+ '切换模型': 'Switch model',
186
+ '当前工作区暂无可用会话。': 'There are no available sessions in the current workspace.',
187
+ '🤖 切换预设': '🤖 Switch preset',
188
+ '🧠 切换模型': '🧠 Switch model',
189
+ '🆕 新会话': '🆕 New session',
190
+ '📋 会话/关注': '📋 Sessions / watches',
191
+ '🗂 工作区列表': '🗂 Workspace list',
192
+ '**任务控制**': '**Task controls**',
193
+ '⏹ 停止': '⏹ Stop',
194
+ '📐 压缩': '📐 Compact',
195
+ '**补充指令**': '**Steer task**',
196
+ '选择补充指令': 'Choose an instruction',
197
+ '继续': 'Continue',
198
+ '加速运行': 'Move faster',
199
+ '总结当前进展': 'Summarize current progress',
200
+ '更简洁些': 'Be more concise',
201
+ '更详细些': 'Be more detailed',
202
+ '✏️ 更多 / 自定义…': '✏️ More / custom…',
203
+ '🗄 归档:{state}': '🗄 Archived: {state}',
204
+ '已显示': 'shown',
205
+ '已隐藏': 'hidden',
206
+ '切换归档显示': 'Toggle archived sessions',
207
+ '📊 状态': '📊 Status',
208
+ '📖 帮助': '📖 Help',
209
+ '**数字兜底**\n**1**工作区列表 · **2**新会话 · **3**会话列表 · **4**状态\n**5**🔧补全权限 · **6**帮助':
210
+ '**Number fallback**\n**1** Workspace list · **2** New session · **3** Session list · **4** Status\n**5** 🔧 Complete permissions · **6** Help',
211
+ '跟随 Host 默认{default}': 'Follow Host default{default}',
212
+ '**当前**:{value}': '**Current**: {value}',
213
+ '**Host 默认**:{value}': '**Host default**: {value}',
214
+ '未设置': 'Not set',
215
+ '选择预设': 'Select a preset',
216
+ '🔄 跟随默认': '🔄 Follow default',
217
+ '当前没有可选择的预设。': 'There are no presets to choose from.',
218
+ '🤖 预设列表': '🤖 Preset list',
219
+ '**当前模型**:{model}': '**Current model**: {model}',
220
+ '选择模型': 'Select a model',
221
+ '🧠 模型列表': '🧠 Model list',
222
+ '{icon} 飞书机器人{state}': '{icon} Feishu bot {state}',
223
+ '已连接': 'connected',
224
+ '未连接': 'disconnected',
225
+ '📂 工作区:`{workspace}`': '📂 Workspace: `{workspace}`',
226
+ '🤖 预设:{preset}': '🤖 Preset: {preset}',
227
+ '🧠 模型:{model}': '🧠 Model: {model}',
228
+ '💬 会话:{count} 个': '💬 Sessions: {count}',
229
+ '📊 系统状态': '📊 System status',
230
+ '📋 会话 / 工作区': '📋 Sessions / workspace',
231
+ '/sessionlist 列出工作区会话': '/sessionlist List workspace sessions',
232
+ '/sessionlist 或 /sessions 列出工作区会话':
233
+ '/sessionlist or /sessions List workspace sessions',
234
+ '/session ID 绑定已有会话': '/session ID Bind an existing session',
235
+ '/workspacelist 列出工作区': '/workspacelist List workspaces',
236
+ '/new 开启全新会话': '/new Start a new session',
237
+ '📊 状态 / 压缩': '📊 Status / compact',
238
+ '/status 连接状态': '/status Connection status',
239
+ '`/version` — 查看插件版本': '`/version` — show the plugin version',
240
+ '/compact 压缩当前会话上下文': '/compact Compact the current session context',
241
+ '/archived on/off 会话列表显示/隐藏归档': '/archived on/off Show/hide archived sessions',
242
+ '👁 关注': '👁 Watches',
243
+ '/watch ID 关注会话(完成后推送)': '/watch ID Watch a session (push on completion)',
244
+ '/watchlist 关注列表': '/watchlist List watched sessions',
245
+ '/unwatch ID 取消关注': '/unwatch ID Stop watching a session',
246
+ '📦 批量输入(仅私聊)': '📦 Batch input (direct messages only)',
247
+ '🤖 预设 / 模型': '🤖 Presets / models',
248
+ '/models 列出模型': '/models List models',
249
+ '/presetlist 或 /presets 列出可用 Agent Preset':
250
+ '/presetlist or /presets List available Agent Presets',
251
+ '🎮 任务控制': '🎮 Task controls',
252
+ '/steer 指令 给 Agent 补充指令': '/steer INSTRUCTION Steer the Agent',
253
+ '**📋 卡片功能**\n\n1. 会话下拉 — 切换当前绑定会话\n2. 工作区下拉 — 切换工作区\n3. 🤖 预设下拉 — 切换 Agent 预设\n4. 🧠 模型下拉 — 切换模型\n5. 🆕 新会话 — 开启全新会话\n6. 📋 会话/关注 — 查看/绑定会话,管理关注\n7. ⏹ 停止 — 停止当前任务\n8. 📐 压缩 — 压缩当前会话上下文\n9. 补充指令 — 给 Agent 发送指令\n10. 🗄 归档切换 — 显示/隐藏归档会话\n11. 📊 状态 — 查看系统连接状态\n12. 📖 帮助 — 查看本帮助':
254
+ '**📋 Card features**\n\n1. Session dropdown — switch the bound session\n2. Workspace dropdown — switch workspace\n3. 🤖 Preset dropdown — switch Agent Preset\n4. 🧠 Model dropdown — switch model\n5. 🆕 New session — start fresh\n6. 📋 Sessions/watches — view or bind sessions and manage watches\n7. ⏹ Stop — stop the current task\n8. 📐 Compact — compact the current session context\n9. Steer task — send an instruction to the Agent\n10. 🗄 Archived toggle — show or hide archived sessions\n11. 📊 Status — view connection status\n12. 📖 Help — view this help',
255
+ '**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` 或 `/sessions [工作区]` — 列出会话\n`/sessionlist --limit N` 或 `/sessions --limit N` — 仅列出当前工作区前 N 个会话\n`/workspace 工作区序号或绝对路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` 或 `/presets` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/reasoninglist` 或 `/reasonings` — 按序号列出当前模型可用推理等级\n`/reasoning [序号、等级ID或 --default]` — 查看或切换当前推理等级\n`/model [序号或完整模型ID] [推理等级ID]` — 查看或切换当前会话模型\n`/batch` — 开启批量输入(仅私聊,最多 10 条文字)\n`/send` — 提交当前批次\n`/cancel` — 取消当前批次\n`/repair` — 补全飞书权限与卡片回调':
256
+ '**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` or `/sessions [workspace]` — list sessions\n`/sessionlist --limit N` or `/sessions --limit N` — list only the first N sessions in the current workspace\n`/workspace <workspace index or absolute path>` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` or `/presets` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/reasoninglist` or `/reasonings` — list reasoning efforts for the current model\n`/reasoning [index, effort ID, or --default]` — show or switch reasoning effort\n`/model [index or full model ID] [reasoning effort ID]` — show or switch the current Session model\n`/batch` — start batch input (direct messages only, up to 10 text messages)\n`/send` — submit the current batch\n`/cancel` — cancel the current batch\n`/repair` — complete Feishu permissions and the card callback',
257
+ '**💡 数字兜底**\n回复数字快速操作:\n**1**工作区列表 · **2**新会话 · **3**会话/关注\n**4**状态 · **5**补全权限 · **6**帮助':
258
+ '**💡 Number fallback**\nReply with a number for a quick action:\n**1** Workspace list · **2** New session · **3** Sessions/watches\n**4** Status · **5** Complete permissions · **6** Help',
259
+ '从下方下拉选择补充指令;最后一项可自定义输入。':
260
+ 'Choose an instruction below; the last option lets you enter a custom one.',
261
+ '当前没有绑定会话,请先绑定会话再补充指令。':
262
+ 'No session is bound. Bind one before steering the task.',
263
+ '➕ 补充指令': '➕ Steer task',
264
+ '输入补充指令后点「提交」,发送给当前运行的任务。':
265
+ 'Enter an instruction and press Submit to send it to the running task.',
266
+ '输入你的补充指令': 'Enter your instruction',
267
+ '提交': 'Submit',
268
+ '➕ 自定义指令': '➕ Custom instruction',
269
+ '🤖 助手菜单': '🤖 Assistant menu',
270
+ '**点击按钮或直接回复数字**': '**Tap a button or reply with a number**',
271
+ '1 · 会话列表': '1 · Sessions',
272
+ '2 · 工作区': '2 · Workspace',
273
+ '3 · 新会话': '3 · New session',
274
+ '4 · 状态': '4 · Status',
275
+ '5 · 帮助': '5 · Help',
276
+ '**6 · 补全权限**(请直接回复数字 **6**)':
277
+ '**6 · Complete permissions** (reply with the number **6**)',
278
+ '7 · 关注列表': '7 · Watch list',
279
+ '🧪 验证卡片按钮': '🧪 Verify card buttons',
280
+ '授权已提交。请点击下方按钮;机器人真实收到回调后才会判定修复成功。':
281
+ 'Authorization submitted. Tap the button below; the repair is confirmed only after the bot receives the real callback.',
282
+ '完成验证': 'Finish verification',
283
+ '**工作区**:{workspace}\n共 **{total}** 个会话{paging}':
284
+ '**Workspace**: {workspace}\n**{total}** sessions in total{paging}',
285
+ '(第 {page}/{pageCount} 页)': ' (page {page}/{pageCount})',
286
+ '⭐取关': '⭐ Unwatch',
287
+ '⭐关注': '⭐ Watch',
288
+ '◀ 上一页': '◀ Previous',
289
+ '下一页 ▶': 'Next ▶',
290
+ '回复数字(1~N)绑定本页会话。': 'Reply with a number (1–N) to bind a session on this page.',
291
+ '📂 会话列表': '📂 Session list',
292
+ '当前 Host 上没有已登记的工作区。': 'No workspaces are registered on the current Host.',
293
+ '回复数字切换工作区,或点击按钮:': 'Reply with a number to switch workspaces, or tap a button:',
294
+ '🗂 工作区': '🗂 Workspace',
295
+ '🤖 助手菜单(回复数字即可,无需记命令)':
296
+ '🤖 Assistant menu (reply with a number — no need to memorize commands)',
297
+ '1 · /sessionlist 列出会话(回复数字绑定)':
298
+ '1 · /sessionlist List sessions (reply with a number to bind)',
299
+ '2 · /workspacelist 列出工作区(回复数字切换)':
300
+ '2 · /workspacelist List workspaces (reply with a number to switch)',
301
+ '3 · /new 开启新会话': '3 · /new Start a new session',
302
+ '4 · /status 连接状态': '4 · /status Connection status',
303
+ '5 · /help 本帮助': '5 · /help This help',
304
+ '6 · /repair 补全权限与回调(请回复数字 6)':
305
+ '6 · /repair Complete permissions and callback (reply with the number 6)',
306
+ '7 · /watchlist 关注列表': '7 · /watchlist Watch list',
307
+ '直接发送文字/图片即继续当前会话。':
308
+ 'Send text or an image directly to continue the current session.',
309
+ '/session ID 或序号 绑定已有会话': '/session ID or index Bind an existing session',
310
+ '/watch ID 或序号 关注会话(完成后推送)':
311
+ '/watch ID or index Watch a session (push when done)',
312
+ '/compact 压缩上下文': '/compact Compact the context',
313
+ '/workspace 绝对路径 切换工作区': '/workspace <absolute path> Switch workspace',
314
+ '/presetlist 列出可用 Agent Preset': '/presetlist List available Agent Presets',
315
+ '任务完成会自动推送,回复数字或点按钮取消关注:':
316
+ 'Completion is pushed automatically. Reply with a number or tap a button to unwatch:',
317
+ '👁 关注列表': '👁 Watch list',
318
+ '⭐ 取消关注': '⭐ Unwatch',
319
+ '☆ 关注': '☆ Watch',
320
+ '🔍 关注列表': '🔍 Watch list',
321
+ '勾选要关注的会话': 'Select sessions to watch',
322
+ '勾选要取消关注的会话': 'Select sessions to unwatch',
323
+ '当前没有关注的会话。任务完成会自动推送结果。':
324
+ 'No sessions are being watched. Results are pushed automatically when tasks complete.',
325
+ '当前关注 **{count}** 个会话:': 'Currently watching **{count}** sessions:',
326
+ '**➕ 添加关注**(多选下拉勾选)': '**➕ Add watch** (select from the multi-select dropdown)',
327
+ '**➖ 取消关注**(多选下拉勾选)': '**➖ Remove watch** (select from the multi-select dropdown)',
328
+ '📋 会话列表': '📋 Session list',
329
+ '🔙 返回菜单': '🔙 Back to menu',
330
+ '已完成': 'Completed',
331
+ '已停止': 'Stopped',
332
+ '运行中': 'Running',
333
+ '⚙️ 任务过程': '⚙️ Task progress',
334
+ '📋 过程详情': '📋 Process details',
335
+ '🛠️ 工具摘要({count})': '🛠️ Tool summary ({count})',
336
+ '💭 思考过程({count})': '💭 Thinking ({count})',
337
+ '🛠️ 工具': '🛠️ Tools',
338
+ '💭 思考': '💭 Thinking',
339
+ '📋 过程详情(工具 {tools} · 思考 {notes})': '📋 Process details (tools {tools} · thinking {notes})',
340
+ '已中止': 'Aborted',
341
+ '已取消': 'Cancelled',
342
+ '已结束': 'Ended',
343
+ '✅ 任务完成': '✅ Task complete',
344
+ '**状态**:{reason}': '**Status**: {reason}',
345
+ '打开会话列表': 'Open session list',
346
+ '工作区': 'Workspace',
347
+ '绑定该会话后可继续追问,输入文字即可。':
348
+ 'After binding this session you can keep asking; just type a message.',
349
+ '当前没有关注的会话。\n`/watch <ID|序号>` 关注后,任务完成会自动推送。':
350
+ 'No sessions are being watched.\nWatch one with `/watch <ID|index>` and completion is pushed automatically.',
351
+
352
+ // feishu/feishu-channel.mjs
353
+ '正在生成…': 'Generating…',
354
+ '⤵️ 最终结果见下方': '⤵️ Final result below',
355
+ '回答完成': 'Answer complete',
356
+ '内容较长,生成完成后将分段发送完整回答。':
357
+ 'This response is long. The complete answer will be sent in parts when generation finishes.',
358
+ '飞书机器人': 'Feishu bot',
359
+
360
+ // feishu/message-utils.mjs
361
+ '飞书机器人缺少图片读取权限 im:message:readonly(飞书显示为“获取单聊、群组消息”)。请私聊机器人执行 /repair 命令,或者在「IM机器人」设置页点击“补全权限”按钮并扫码。按飞书提示发布新版本、完成必要审批后,再重新发送图片。':
362
+ 'The Feishu bot is missing the image-read scope im:message:readonly, shown by Feishu as “Read direct and group messages.” Run /repair in a direct chat with the bot, or click the “Complete permissions” button on the IM Bot settings page and scan the QR code. Publish a new version and complete any approval requested by Feishu, then resend the image.',
363
+
364
+ // feishu/feishu-runtime.mjs — callback probe notices
365
+ '✅ 修复完成:已实测收到 card.action.trigger,菜单按钮现在可用。':
366
+ '✅ Repair complete: card.action.trigger was received in a real test; the menu buttons now work.',
367
+ '⚠️ 修复验证超时:未收到测试卡按钮的 card.action.trigger,不能确认按钮已修复。请不要重复授权;先检查飞书开放平台的卡片回调配置,确认后再发送 /repair。':
368
+ '⚠️ Repair verification timed out: no card.action.trigger from the test card button was received, so the buttons cannot be confirmed repaired. Do not authorize again; check the card-callback configuration in Feishu Open Platform first, then send /repair.',
369
+ '⚠️ 修复验证失败:无法发送专用测试卡,不能确认 card.action.trigger 已恢复。请不要重复授权;先检查机器人消息权限和连接状态。':
370
+ '⚠️ Repair verification failed: the dedicated test card could not be sent, so card.action.trigger cannot be confirmed restored. Do not authorize again; check the bot message permission and connection status first.',
371
+ '⚠️ 修复验证中断:Runtime 已停止,未完成 card.action.trigger 实测,不能确认修复成功。请不要重复授权;先等待机器人恢复连接。':
372
+ '⚠️ Repair verification interrupted: the Runtime stopped before the card.action.trigger test completed, so the repair cannot be confirmed. Do not authorize again; wait for the bot to reconnect.',
373
+
374
+ // feishu/bridge.mjs — interaction cards (approve/reject / answer buttons)
375
+ '该审批已处理或不存在,无需重复操作。':
376
+ 'This approval has already been processed or does not exist; no need to repeat the action.',
377
+ // feishu/feishu-cards.mjs — approval card
378
+ '操作参数:\n{operation}': 'Operation parameters:\n{operation}',
379
+ '✅ 批准': '✅ Approve',
380
+ '❌ 拒绝': '❌ Reject',
381
+ '🔐 工具审批': '🔐 Tool approval',
382
+ // feishu/feishu-cards.mjs — question card
383
+ '❓ 请补充信息{progress}': '❓ Please provide more information{progress}',
384
+ // feishu/bridge.mjs — deferred delivery terminal statuses
385
+ '后台任务已结束({reason}),没有可推送的最终结果。':
386
+ 'The background task has finished ({reason}); there is no final result to deliver.',
387
+ '已请求停止后台任务。': 'Requested to stop the background task.',
388
+ '无法安全停止后台任务,请在 Harness 中查看并停止对应任务。': 'Unable to safely stop the background task. Please inspect and stop the matching task in Harness.',
389
+ '任务失败': 'Failed',
390
+ // feishu/bridge.mjs — step push context injection
391
+ '📎 已注入会话上下文': '📎 Context injected',
392
+ // feishu/feishu-cards.mjs — question card answered state + custom entry (issue #162)
393
+ '✏️ 其他答案…': '✏️ Other answer…',
394
+ '✅ 已回答{progress}': '✅ Answered{progress}',
395
+ '✅ 已选择:{label}': '✅ Selected: {label}',
396
+ '回答已提交,对话将继续。': 'Answer submitted. The conversation will continue.',
397
+ // feishu/bridge.mjs — answered interaction notices + custom answer guidance (issue #162)
398
+ '这个问题已经回答过了。': 'This question has already been answered.',
399
+ '想自定义答案?直接发送文字消息即可,将作为本题答案提交。':
400
+ 'Want a custom answer? Just send a text message and it will be submitted as your answer.',
401
+ // feishu/bridge.mjs — thinking status heartbeat
402
+ '⏳ 正在思考中…(已运行 {elapsed})': '⏳ Thinking… (elapsed {elapsed})',
403
+ '⏳ 正在思考中…': '⏳ Thinking…',
404
+ };
@@ -0,0 +1,18 @@
1
+ export default {
2
+ "图片原文件已保存到工作区,文件清单中的图片序号与本条消息一致。图片内容块可能经过缩放或压缩;需要查看细节时可用工具读取原文件。": "Original images are saved in the workspace. Image numbers in the file list match this message. Image blocks may be resized or compressed; use tools to read originals for details.",
3
+ "部分图片未直接提供给模型,图片序号:{indexes}。原文件已保存,请使用可用工具读取或分析;不要假设自己已看到这些图片。": "Some images were not provided directly to the model: {indexes}. Originals are saved; use available tools to read or analyze them. Do not assume you have seen these images.",
4
+ "宿主拒绝了本次图片输入。原图已保存到工作区,请根据文件清单使用可用工具读取或分析,不要假设自己已看到图片。": "The Host rejected the image input. Originals are saved in the workspace; use the file list and available tools to read or analyze them. Do not assume you have seen the images.",
5
+ "图片超过原图接收上限 {maxMb} MB,请压缩后重试,或在通用设置的附件中调整上限。": "The image exceeds the original-image receipt limit of {maxMb} MB. Compress it and retry, or adjust the limit in General settings > Attachments.",
6
+ "图片 {index}(原图文件:{name})": "Image {index} (original file: {name})",
7
+ "图片限制无效:请输入正整数,原图接收上限和总量上限不能小于单图上限。": "Invalid image limits: enter positive integers. The receipt and total limits must be at least the per-image limit.",
8
+ "无法读取或保存图片设置,请稍后重试。": "Could not read or save image settings. Try again later.",
9
+ "原图接收上限 (MB)": "Original-image receipt limit (MB)",
10
+ "模型单图上限 (MB)": "Model per-image limit (MB)",
11
+ "模型图片总量上限 (MB)": "Model total image limit (MB)",
12
+ "每条消息最多图片数": "Maximum images per message",
13
+ "图片输入": "Image input",
14
+ "查看图片输入说明": "View image input details",
15
+ "适用于支持图片的聊天渠道。原图按附件保留时长保存,发送给模型的副本会自动缩放或压缩;无法直接发送时交给模型按文件处理。": "Applies to chat channels that support images. Originals follow attachment retention settings. Model copies are resized or compressed automatically; images that cannot be sent directly are provided as files.",
16
+ "保存图片设置": "Save image settings",
17
+ "正在读取图片设置…": "Loading image settings…"
18
+ };