@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.
- package/LICENSE +21 -0
- package/PROVENANCE.json +25 -0
- package/README.en.md +445 -0
- package/README.md +448 -0
- package/THIRD_PARTY_NOTICES.md +93 -0
- package/assets/dingtalk-menu-template.json +6 -0
- package/assets/logo-dsh-im-chinese-readme-3x2.png +0 -0
- package/assets/logo-dsh-im-connecting-readme-3x2.png +0 -0
- package/assets/logo-dsh-im-connecting-square-v4.png +0 -0
- package/assets/logo-icon.png +0 -0
- package/assets/logo-plugin-message-link-gradient.webp +0 -0
- package/assets/logo-plugin-phone.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo_cn.png +0 -0
- package/assets/screenshot-menu-card.png +0 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +20330 -0
- package/lib/index.js +604 -0
- package/locale/en.json +5 -0
- package/locale/zh.json +5 -0
- package/package.json +181 -0
- package/plugin-src/client/access-policy-settings.js +362 -0
- package/plugin-src/client/agent-preset.js +119 -0
- package/plugin-src/client/bot-alias.js +169 -0
- package/plugin-src/client/build.mjs +38 -0
- package/plugin-src/client/channel-card-meta.js +132 -0
- package/plugin-src/client/channel-logos.js +190 -0
- package/plugin-src/client/channels/dingtalk/api.js +267 -0
- package/plugin-src/client/channels/dingtalk/index.js +954 -0
- package/plugin-src/client/channels/dingtalk/styles.js +136 -0
- package/plugin-src/client/channels/discord/api.js +11 -0
- package/plugin-src/client/channels/discord/index.js +25 -0
- package/plugin-src/client/channels/discord/styles.js +19 -0
- package/plugin-src/client/channels/email/api.js +52 -0
- package/plugin-src/client/channels/email/index.js +728 -0
- package/plugin-src/client/channels/email/styles.js +51 -0
- package/plugin-src/client/channels/feishu/api.js +405 -0
- package/plugin-src/client/channels/feishu/group-settings.js +581 -0
- package/plugin-src/client/channels/feishu/index.js +1583 -0
- package/plugin-src/client/channels/feishu/slash-panel-settings.js +322 -0
- package/plugin-src/client/channels/feishu/styles.js +573 -0
- package/plugin-src/client/channels/feishu/voice-editor.js +115 -0
- package/plugin-src/client/channels/feishu/voice-settings.js +71 -0
- package/plugin-src/client/channels/imessage/api.js +12 -0
- package/plugin-src/client/channels/imessage/index.js +46 -0
- package/plugin-src/client/channels/imessage/styles.js +19 -0
- package/plugin-src/client/channels/matrix/api.js +11 -0
- package/plugin-src/client/channels/matrix/index.js +151 -0
- package/plugin-src/client/channels/matrix/styles.js +36 -0
- package/plugin-src/client/channels/office/api.js +46 -0
- package/plugin-src/client/channels/office/index.js +153 -0
- package/plugin-src/client/channels/office/styles.js +50 -0
- package/plugin-src/client/channels/qq/api.js +171 -0
- package/plugin-src/client/channels/qq/index.js +593 -0
- package/plugin-src/client/channels/qq/styles.js +19 -0
- package/plugin-src/client/channels/shared/collapsible-account.js +103 -0
- package/plugin-src/client/channels/shared/token-api.js +124 -0
- package/plugin-src/client/channels/shared/token-channel.js +495 -0
- package/plugin-src/client/channels/slack/api.js +11 -0
- package/plugin-src/client/channels/slack/index.js +131 -0
- package/plugin-src/client/channels/slack/styles.js +34 -0
- package/plugin-src/client/channels/telegram/api.js +11 -0
- package/plugin-src/client/channels/telegram/index.js +28 -0
- package/plugin-src/client/channels/telegram/styles.js +31 -0
- package/plugin-src/client/channels/telegram/thinking-traces.js +25 -0
- package/plugin-src/client/channels/wecom/api.js +160 -0
- package/plugin-src/client/channels/wecom/index.js +625 -0
- package/plugin-src/client/channels/wecom/styles.js +19 -0
- package/plugin-src/client/channels/wecom-app/api.js +132 -0
- package/plugin-src/client/channels/wecom-app/index.js +634 -0
- package/plugin-src/client/channels/wecom-app/styles.js +25 -0
- package/plugin-src/client/channels/weixin/api.js +211 -0
- package/plugin-src/client/channels/weixin/connection-error.js +1 -0
- package/plugin-src/client/channels/weixin/index.js +801 -0
- package/plugin-src/client/channels/weixin/styles.js +115 -0
- package/plugin-src/client/channels/whatsapp/api.js +152 -0
- package/plugin-src/client/channels/whatsapp/index.js +609 -0
- package/plugin-src/client/channels/whatsapp/styles.js +19 -0
- package/plugin-src/client/connection-error.js +87 -0
- package/plugin-src/client/context-enhancement.js +415 -0
- package/plugin-src/client/credential-binding.js +118 -0
- package/plugin-src/client/delivery-settings.js +905 -0
- package/plugin-src/client/global-settings.js +433 -0
- package/plugin-src/client/i18n.js +1314 -0
- package/plugin-src/client/index.js +624 -0
- package/plugin-src/client/interface-language.js +89 -0
- package/plugin-src/client/last-message-error.js +18 -0
- package/plugin-src/client/lifecycle.js +86 -0
- package/plugin-src/client/loopback-recovery.js +75 -0
- package/plugin-src/client/model-setting.js +172 -0
- package/plugin-src/client/panel-error-boundary.js +21 -0
- package/plugin-src/client/plugin-page.js +51 -0
- package/plugin-src/client/session-channel-logos.js +243 -0
- package/plugin-src/client/styles.js +770 -0
- package/plugin-src/client/update-panel.js +14 -0
- package/plugin-src/client/workspace-directory-picker.js +280 -0
- package/plugin-src/client/workspace-editor.js +69 -0
- package/plugin-src/client/workspace-snapshot-fence.js +28 -0
- package/plugin-src/host/build.mjs +52 -0
- package/plugin-src/host/channels/dingtalk/connection-supervisor.mjs +130 -0
- package/plugin-src/host/channels/dingtalk/index.mjs +35 -0
- package/plugin-src/host/channels/dingtalk/production.mjs +193 -0
- package/plugin-src/host/channels/dingtalk/rpc.mjs +359 -0
- package/plugin-src/host/channels/discord/index.mjs +33 -0
- package/plugin-src/host/channels/discord/production.mjs +18 -0
- package/plugin-src/host/channels/discord/rpc.mjs +21 -0
- package/plugin-src/host/channels/email/availability.mjs +60 -0
- package/plugin-src/host/channels/email/index.mjs +36 -0
- package/plugin-src/host/channels/email/production.mjs +58 -0
- package/plugin-src/host/channels/email/rpc.mjs +163 -0
- package/plugin-src/host/channels/feishu/connection-supervisor.mjs +167 -0
- package/plugin-src/host/channels/feishu/controller.mjs +172 -0
- package/plugin-src/host/channels/feishu/credential-store.mjs +84 -0
- package/plugin-src/host/channels/feishu/index.mjs +69 -0
- package/plugin-src/host/channels/feishu/production.mjs +319 -0
- package/plugin-src/host/channels/feishu/rpc.mjs +863 -0
- package/plugin-src/host/channels/imessage/index.mjs +21 -0
- package/plugin-src/host/channels/imessage/production.mjs +13 -0
- package/plugin-src/host/channels/imessage/rpc.mjs +78 -0
- package/plugin-src/host/channels/matrix/index.mjs +31 -0
- package/plugin-src/host/channels/matrix/production.mjs +241 -0
- package/plugin-src/host/channels/matrix/rpc.mjs +228 -0
- package/plugin-src/host/channels/office/index.mjs +14 -0
- package/plugin-src/host/channels/office/production.mjs +45 -0
- package/plugin-src/host/channels/office/rpc.mjs +51 -0
- package/plugin-src/host/channels/qq/connection-supervisor.mjs +124 -0
- package/plugin-src/host/channels/qq/index.mjs +28 -0
- package/plugin-src/host/channels/qq/production.mjs +181 -0
- package/plugin-src/host/channels/qq/rpc.mjs +250 -0
- package/plugin-src/host/channels/shared/access-policy-production.mjs +137 -0
- package/plugin-src/host/channels/shared/access-policy-rpc.mjs +17 -0
- package/plugin-src/host/channels/shared/agent-preset-rpc.mjs +25 -0
- package/plugin-src/host/channels/shared/bot-alias-rpc.mjs +15 -0
- package/plugin-src/host/channels/shared/connection-supervisor.mjs +133 -0
- package/plugin-src/host/channels/shared/context-enhancement-rpc.mjs +17 -0
- package/plugin-src/host/channels/shared/model-setting-rpc.mjs +18 -0
- package/plugin-src/host/channels/shared/production.mjs +239 -0
- package/plugin-src/host/channels/shared/rpc.mjs +226 -0
- package/plugin-src/host/channels/shared/startup-error.mjs +55 -0
- package/plugin-src/host/channels/shared/startup.mjs +76 -0
- package/plugin-src/host/channels/shared/thinking-traces-rpc.mjs +11 -0
- package/plugin-src/host/channels/shared/workspace-rpc.mjs +31 -0
- package/plugin-src/host/channels/slack/index.mjs +31 -0
- package/plugin-src/host/channels/slack/production.mjs +176 -0
- package/plugin-src/host/channels/slack/rpc.mjs +221 -0
- package/plugin-src/host/channels/telegram/index.mjs +33 -0
- package/plugin-src/host/channels/telegram/production.mjs +19 -0
- package/plugin-src/host/channels/telegram/rpc.mjs +22 -0
- package/plugin-src/host/channels/wecom/connection-supervisor.mjs +124 -0
- package/plugin-src/host/channels/wecom/index.mjs +34 -0
- package/plugin-src/host/channels/wecom/production.mjs +187 -0
- package/plugin-src/host/channels/wecom/rpc.mjs +255 -0
- package/plugin-src/host/channels/wecom-app/index.mjs +33 -0
- package/plugin-src/host/channels/wecom-app/production.mjs +221 -0
- package/plugin-src/host/channels/wecom-app/rpc.mjs +235 -0
- package/plugin-src/host/channels/weixin/connection-supervisor.mjs +139 -0
- package/plugin-src/host/channels/weixin/index.mjs +44 -0
- package/plugin-src/host/channels/weixin/production.mjs +258 -0
- package/plugin-src/host/channels/weixin/rpc.mjs +285 -0
- package/plugin-src/host/channels/whatsapp/index.mjs +33 -0
- package/plugin-src/host/channels/whatsapp/production.mjs +198 -0
- package/plugin-src/host/channels/whatsapp/rpc.mjs +242 -0
- package/plugin-src/host/delivery-adapter.mjs +411 -0
- package/plugin-src/host/delivery-http.mjs +132 -0
- package/plugin-src/host/delivery-rpc.mjs +173 -0
- package/plugin-src/host/delivery-service.mjs +618 -0
- package/plugin-src/host/delivery-suggestions.mjs +198 -0
- package/plugin-src/host/harness-command-executor.mjs +48 -0
- package/plugin-src/host/harness-connection.mjs +20 -0
- package/plugin-src/host/harness-session-coordinator.mjs +183 -0
- package/plugin-src/host/host-language-rpc.mjs +71 -0
- package/plugin-src/host/host-language.mjs +157 -0
- package/plugin-src/host/image-input-rpc.mjs +24 -0
- package/plugin-src/host/inbound-ttl-rpc.mjs +86 -0
- package/plugin-src/host/inbound-ttl-runtime.mjs +85 -0
- package/plugin-src/host/inbound-ttl-service.mjs +179 -0
- package/plugin-src/host/index.mjs +229 -0
- package/plugin-src/host/injected-context.mjs +104 -0
- package/plugin-src/host/lark-sdk-handshake-patch.mjs +181 -0
- package/plugin-src/host/modern-harness-api.mjs +738 -0
- package/plugin-src/host/rpc-authority.mjs +12 -0
- package/plugin-src/host/session-sync-coordinator.mjs +233 -0
- package/plugin-src/host/session-title-prefix.mjs +122 -0
- package/plugin-src/host/update-policy.mjs +31 -0
- package/plugin-src/host/update-rpc.mjs +16 -0
- package/plugin-src/host/update-runtime.mjs +339 -0
- package/plugin-src/host/update-service.mjs +392 -0
- package/plugin-src/management-rpc.mjs +87 -0
- package/src/channels/dingtalk/config-store.mjs +284 -0
- package/src/channels/dingtalk/connection-error.mjs +292 -0
- package/src/channels/dingtalk/device-auth.mjs +240 -0
- package/src/channels/dingtalk/dingtalk-api.mjs +1140 -0
- package/src/channels/dingtalk/dingtalk-bridge.mjs +1889 -0
- package/src/channels/dingtalk/dingtalk-card-stream.mjs +242 -0
- package/src/channels/dingtalk/dingtalk-controller.mjs +852 -0
- package/src/channels/dingtalk/dingtalk-menu.mjs +95 -0
- package/src/channels/dingtalk/dingtalk-runtime.mjs +482 -0
- package/src/channels/dingtalk/harness-client.mjs +19 -0
- package/src/channels/dingtalk/state-store.mjs +325 -0
- package/src/channels/discord/config-store.mjs +28 -0
- package/src/channels/discord/discord-api.mjs +423 -0
- package/src/channels/discord/discord-bridge.mjs +16 -0
- package/src/channels/discord/discord-controller.mjs +29 -0
- package/src/channels/discord/discord-runtime.mjs +1091 -0
- package/src/channels/discord/external-consumer.mjs +199 -0
- package/src/channels/discord/external-files.mjs +97 -0
- package/src/channels/discord/harness-client.mjs +11 -0
- package/src/channels/discord/history-reader.mjs +142 -0
- package/src/channels/discord/nearby-history.mjs +112 -0
- package/src/channels/discord/state-store.mjs +3 -0
- package/src/channels/email/config-store.mjs +194 -0
- package/src/channels/email/email-api.mjs +20 -0
- package/src/channels/email/email-bridge.mjs +17 -0
- package/src/channels/email/email-controller.mjs +824 -0
- package/src/channels/email/email-runtime.mjs +699 -0
- package/src/channels/email/harness-client.mjs +7 -0
- package/src/channels/email/mail-format.mjs +91 -0
- package/src/channels/email/state-store.mjs +176 -0
- package/src/channels/email/transport.mjs +64 -0
- package/src/channels/email/transports/agent-mail.mjs +604 -0
- package/src/channels/email/transports/agently-cli.mjs +288 -0
- package/src/channels/email/transports/imap-smtp.mjs +165 -0
- package/src/channels/feishu/bridge.mjs +6286 -0
- package/src/channels/feishu/config.mjs +71 -0
- package/src/channels/feishu/external-cards.mjs +87 -0
- package/src/channels/feishu/external-consumer.mjs +89 -0
- package/src/channels/feishu/external-files.mjs +115 -0
- package/src/channels/feishu/external-images.mjs +50 -0
- package/src/channels/feishu/external-names.mjs +99 -0
- package/src/channels/feishu/feishu-app.mjs +54 -0
- package/src/channels/feishu/feishu-cards.mjs +1285 -0
- package/src/channels/feishu/feishu-channel.mjs +651 -0
- package/src/channels/feishu/feishu-runtime.mjs +982 -0
- package/src/channels/feishu/group-message-permission-manager.mjs +72 -0
- package/src/channels/feishu/group-response-mode.mjs +15 -0
- package/src/channels/feishu/harness-client.mjs +19 -0
- package/src/channels/feishu/history-reader.mjs +77 -0
- package/src/channels/feishu/live-cot.mjs +260 -0
- package/src/channels/feishu/message-utils.mjs +613 -0
- package/src/channels/feishu/multi-bot-controller.mjs +1619 -0
- package/src/channels/feishu/nearby-history.mjs +72 -0
- package/src/channels/feishu/plugin-config-store.mjs +216 -0
- package/src/channels/feishu/plugin-controller.mjs +254 -0
- package/src/channels/feishu/registration-manager.mjs +349 -0
- package/src/channels/feishu/repair-manager.mjs +138 -0
- package/src/channels/feishu/reply-context.mjs +22 -0
- package/src/channels/feishu/slash-command-panel.mjs +155 -0
- package/src/channels/feishu/slash-command-registry.mjs +495 -0
- package/src/channels/feishu/state-store.mjs +214 -0
- package/src/channels/feishu/step-push-mode.mjs +25 -0
- package/src/channels/feishu/voice-config.mjs +34 -0
- package/src/channels/feishu/voice.mjs +134 -0
- package/src/channels/imessage/config-store.mjs +24 -0
- package/src/channels/imessage/controller.mjs +37 -0
- package/src/channels/imessage/harness-client.mjs +7 -0
- package/src/channels/imessage/imessage-api.mjs +194 -0
- package/src/channels/imessage/imessage-bridge.mjs +16 -0
- package/src/channels/imessage/runtime.mjs +102 -0
- package/src/channels/imessage/state-store.mjs +3 -0
- package/src/channels/matrix/matrix-api.mjs +696 -0
- package/src/channels/matrix/matrix-bridge.mjs +20 -0
- package/src/channels/matrix/matrix-config-store.mjs +368 -0
- package/src/channels/matrix/matrix-controller.mjs +404 -0
- package/src/channels/matrix/matrix-crypto-store.mjs +279 -0
- package/src/channels/matrix/matrix-crypto.mjs +1014 -0
- package/src/channels/matrix/matrix-harness-client.mjs +11 -0
- package/src/channels/matrix/matrix-normalize.mjs +357 -0
- package/src/channels/matrix/matrix-rich-text.mjs +313 -0
- package/src/channels/matrix/matrix-room-history.mjs +316 -0
- package/src/channels/matrix/matrix-runtime.mjs +1014 -0
- package/src/channels/office/config-store.mjs +107 -0
- package/src/channels/office/office-controller.mjs +178 -0
- package/src/channels/office/office-job-executor.mjs +391 -0
- package/src/channels/office/office-runtime.mjs +175 -0
- package/src/channels/office/office-transport.mjs +171 -0
- package/src/channels/office/protocol.mjs +43 -0
- package/src/channels/qq/config-store.mjs +173 -0
- package/src/channels/qq/harness-client.mjs +11 -0
- package/src/channels/qq/markdown-reply.mjs +446 -0
- package/src/channels/qq/qq-bridge.mjs +1507 -0
- package/src/channels/qq/qq-controller.mjs +514 -0
- package/src/channels/qq/qq-menu.mjs +208 -0
- package/src/channels/qq/qq-runtime.mjs +303 -0
- package/src/channels/qq/qr-auth.mjs +24 -0
- package/src/channels/qq/state-error.mjs +17 -0
- package/src/channels/qq/state-store.mjs +143 -0
- package/src/channels/shared/access-policy.mjs +210 -0
- package/src/channels/shared/agent-preset.mjs +76 -0
- package/src/channels/shared/batch-input.mjs +229 -0
- package/src/channels/shared/bot-alias.mjs +29 -0
- package/src/channels/shared/bot-workspace-store.mjs +2383 -0
- package/src/channels/shared/command-catalog.mjs +107 -0
- package/src/channels/shared/command-permission.mjs +32 -0
- package/src/channels/shared/compact-command.mjs +109 -0
- package/src/channels/shared/config-read-error.mjs +24 -0
- package/src/channels/shared/connection-error.mjs +191 -0
- package/src/channels/shared/connection-test.mjs +58 -0
- package/src/channels/shared/context-enhancement.mjs +372 -0
- package/src/channels/shared/control-command.mjs +111 -0
- package/src/channels/shared/conversation-state-store.mjs +165 -0
- package/src/channels/shared/default-workspace.mjs +31 -0
- package/src/channels/shared/deferred-delivery-coordinator.mjs +241 -0
- package/src/channels/shared/deferred-delivery.mjs +161 -0
- package/src/channels/shared/deferred-state.mjs +53 -0
- package/src/channels/shared/diagnostic-details.mjs +95 -0
- package/src/channels/shared/editable-message-stream.mjs +100 -0
- package/src/channels/shared/exclusive-inbound-consumers.mjs +91 -0
- package/src/channels/shared/file-download.mjs +64 -0
- package/src/channels/shared/harness-approval.mjs +508 -0
- package/src/channels/shared/harness-client.mjs +2143 -0
- package/src/channels/shared/harness-mux.mjs +123 -0
- package/src/channels/shared/harness-question.mjs +95 -0
- package/src/channels/shared/harness-session-binding.mjs +119 -0
- package/src/channels/shared/history-command.mjs +193 -0
- package/src/channels/shared/i18n-en/diagnostics.mjs +55 -0
- package/src/channels/shared/i18n-en/dingtalk.mjs +81 -0
- package/src/channels/shared/i18n-en/discord.mjs +10 -0
- package/src/channels/shared/i18n-en/email.mjs +25 -0
- package/src/channels/shared/i18n-en/feishu.mjs +404 -0
- package/src/channels/shared/i18n-en/image-input.mjs +18 -0
- package/src/channels/shared/i18n-en/matrix.mjs +85 -0
- package/src/channels/shared/i18n-en/office.mjs +23 -0
- package/src/channels/shared/i18n-en/qq.mjs +96 -0
- package/src/channels/shared/i18n-en/shared-a.mjs +241 -0
- package/src/channels/shared/i18n-en/shared-b.mjs +263 -0
- package/src/channels/shared/i18n-en/shared-c.mjs +203 -0
- package/src/channels/shared/i18n-en/slack.mjs +27 -0
- package/src/channels/shared/i18n-en/telegram.mjs +27 -0
- package/src/channels/shared/i18n-en/wecom-app.mjs +33 -0
- package/src/channels/shared/i18n-en/wecom.mjs +62 -0
- package/src/channels/shared/i18n-en/weixin.mjs +88 -0
- package/src/channels/shared/i18n-en/whatsapp.mjs +17 -0
- package/src/channels/shared/i18n-en.mjs +45 -0
- package/src/channels/shared/i18n.mjs +78 -0
- package/src/channels/shared/im-source-guidance.mjs +65 -0
- package/src/channels/shared/image-input-policy.mjs +35 -0
- package/src/channels/shared/image-input-settings-store.mjs +60 -0
- package/src/channels/shared/image-input.mjs +124 -0
- package/src/channels/shared/image-prompt.mjs +360 -0
- package/src/channels/shared/inbound-access.mjs +43 -0
- package/src/channels/shared/inbound-file.mjs +323 -0
- package/src/channels/shared/inbound-ttl-store.mjs +110 -0
- package/src/channels/shared/inbound-ttl.mjs +22 -0
- package/src/channels/shared/injected-context.mjs +362 -0
- package/src/channels/shared/interface-language-store.mjs +127 -0
- package/src/channels/shared/interface-language.mjs +51 -0
- package/src/channels/shared/message-failure.mjs +257 -0
- package/src/channels/shared/model-command.mjs +741 -0
- package/src/channels/shared/model-setting.mjs +145 -0
- package/src/channels/shared/preset-command.mjs +308 -0
- package/src/channels/shared/semantic/artifact-delivery.mjs +177 -0
- package/src/channels/shared/semantic/artifact.mjs +750 -0
- package/src/channels/shared/semantic/delivery.mjs +193 -0
- package/src/channels/shared/semantic/reply-reference.mjs +148 -0
- package/src/channels/shared/session-binding-lock.mjs +40 -0
- package/src/channels/shared/session-channel-labels.mjs +28 -0
- package/src/channels/shared/session-reply-recovery.mjs +104 -0
- package/src/channels/shared/session-sync-registry.mjs +22 -0
- package/src/channels/shared/session-title.mjs +74 -0
- package/src/channels/shared/status-reaction.mjs +107 -0
- package/src/channels/shared/text-harness-bridge.mjs +1623 -0
- package/src/channels/shared/token-bot-controller.mjs +529 -0
- package/src/channels/shared/token-config-store.mjs +208 -0
- package/src/channels/shared/video-media.mjs +9 -0
- package/src/channels/shared/workspace-command.mjs +532 -0
- package/src/channels/shared/workspace-session.mjs +196 -0
- package/src/channels/slack/config-store.mjs +177 -0
- package/src/channels/slack/external-consumer.mjs +93 -0
- package/src/channels/slack/external-files.mjs +90 -0
- package/src/channels/slack/harness-client.mjs +11 -0
- package/src/channels/slack/history-reader.mjs +203 -0
- package/src/channels/slack/manifest.mjs +37 -0
- package/src/channels/slack/slack-api.mjs +644 -0
- package/src/channels/slack/slack-bridge.mjs +20 -0
- package/src/channels/slack/slack-controller.mjs +468 -0
- package/src/channels/slack/slack-runtime.mjs +895 -0
- package/src/channels/slack/state-store.mjs +3 -0
- package/src/channels/telegram/config-store.mjs +89 -0
- package/src/channels/telegram/harness-client.mjs +11 -0
- package/src/channels/telegram/state-store.mjs +3 -0
- package/src/channels/telegram/telegram-api.mjs +486 -0
- package/src/channels/telegram/telegram-bridge.mjs +81 -0
- package/src/channels/telegram/telegram-controller.mjs +52 -0
- package/src/channels/telegram/telegram-http.mjs +21 -0
- package/src/channels/telegram/telegram-rich-message.mjs +149 -0
- package/src/channels/telegram/telegram-runtime.mjs +1471 -0
- package/src/channels/wecom/config-store.mjs +172 -0
- package/src/channels/wecom/harness-client.mjs +11 -0
- package/src/channels/wecom/qr-auth.mjs +95 -0
- package/src/channels/wecom/send-error.mjs +31 -0
- package/src/channels/wecom/state-store.mjs +107 -0
- package/src/channels/wecom/wecom-bridge.mjs +1833 -0
- package/src/channels/wecom/wecom-cards.mjs +101 -0
- package/src/channels/wecom/wecom-controller.mjs +530 -0
- package/src/channels/wecom/wecom-runtime.mjs +269 -0
- package/src/channels/wecom-app/callback-server.mjs +471 -0
- package/src/channels/wecom-app/config-store.mjs +242 -0
- package/src/channels/wecom-app/harness-client.mjs +11 -0
- package/src/channels/wecom-app/state-store.mjs +107 -0
- package/src/channels/wecom-app/wecom-app-api.mjs +432 -0
- package/src/channels/wecom-app/wecom-app-bridge.mjs +1072 -0
- package/src/channels/wecom-app/wecom-app-controller.mjs +453 -0
- package/src/channels/wecom-app/wecom-app-runtime.mjs +222 -0
- package/src/channels/weixin/config-store.mjs +194 -0
- package/src/channels/weixin/connection-error.en.mjs +137 -0
- package/src/channels/weixin/connection-error.mjs +153 -0
- package/src/channels/weixin/diagnostic-details.mjs +1 -0
- package/src/channels/weixin/external-consumer.mjs +160 -0
- package/src/channels/weixin/external-files.mjs +84 -0
- package/src/channels/weixin/external-typing.mjs +120 -0
- package/src/channels/weixin/harness-client.mjs +19 -0
- package/src/channels/weixin/state-store.mjs +316 -0
- package/src/channels/weixin/weixin-api.mjs +1009 -0
- package/src/channels/weixin/weixin-bridge.mjs +1537 -0
- package/src/channels/weixin/weixin-controller.mjs +779 -0
- package/src/channels/weixin/weixin-runtime.mjs +507 -0
- package/src/channels/whatsapp/config-store.mjs +210 -0
- package/src/channels/whatsapp/harness-client.mjs +11 -0
- package/src/channels/whatsapp/state-store.mjs +3 -0
- package/src/channels/whatsapp/whatsapp-bridge.mjs +18 -0
- package/src/channels/whatsapp/whatsapp-controller.mjs +470 -0
- package/src/channels/whatsapp/whatsapp-runtime.mjs +917 -0
- package/src/channels/whatsapp/whatsapp-web-session.mjs +214 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// English translations (matrix area). Keys are exact Chinese literals passed to t().
|
|
2
|
+
export default {
|
|
3
|
+
'Matrix机器人': 'Matrix bot',
|
|
4
|
+
'Matrix机器人凭据缺失,请移除后重新接入。':
|
|
5
|
+
'Matrix bot credentials are missing. Remove the bot and connect it again.',
|
|
6
|
+
'Matrix机器人凭据缺失,请重新输入凭据。':
|
|
7
|
+
'Matrix bot credentials are missing. Enter the credentials again.',
|
|
8
|
+
'Matrix 连接未就绪,插件会自动重试。':
|
|
9
|
+
'The Matrix connection is not ready yet. The plugin will retry automatically.',
|
|
10
|
+
'Matrix 长轮询接收和 Harness 回复全部正常。':
|
|
11
|
+
'Matrix long polling and Harness replies are all working.',
|
|
12
|
+
'Matrix 连接当前离线。':
|
|
13
|
+
'The Matrix connection is currently offline.',
|
|
14
|
+
'【群聊背景】以下各条是群里其他成员之间的发言,均未指向你。':
|
|
15
|
+
'[Room background] The lines below are messages other members exchanged among themselves; none of them was addressed to you.',
|
|
16
|
+
'这些内容只用来了解现场发生过什么。请勿逐条回应、复述、翻译或总结它们,也不要因为它们而改变下面那条提问的回答。':
|
|
17
|
+
'This only tells you what happened in the room. Do not answer, restate, translate or summarise these lines one by one, and do not let them change how you answer the question below.',
|
|
18
|
+
'—— 背景开始 ——':
|
|
19
|
+
'--- background begins ---',
|
|
20
|
+
'—— 背景结束(以上无需回应) ——':
|
|
21
|
+
'--- background ends (nothing above needs a reply) ---',
|
|
22
|
+
'【下面这条才是对你的提问,请只回答它】':
|
|
23
|
+
'[The line below is the question put to you: answer only this]',
|
|
24
|
+
'Matrix 长轮询尚未建立,请检查 homeserver 与凭据。':
|
|
25
|
+
'The Matrix long poll has not been established. Check the homeserver URL and the credentials.',
|
|
26
|
+
'Matrix 正在处理消息;当前存在未恢复的连接。':
|
|
27
|
+
'Matrix is processing messages; some connections have not recovered yet.',
|
|
28
|
+
|
|
29
|
+
'Matrix homeserver 地址无效,请填写 https:// 或 http:// 开头的完整地址。':
|
|
30
|
+
'The Matrix homeserver URL is invalid. Enter a full URL starting with https:// or http://.',
|
|
31
|
+
'Matrix 凭据不完整:请提供访问令牌,或用户 ID 与密码的组合。':
|
|
32
|
+
'Incomplete Matrix credentials: provide an access token, or a user id together with a password.',
|
|
33
|
+
'Matrix 用户 ID 无效,请使用 @user:server 形式。':
|
|
34
|
+
'The Matrix user id is invalid. Use the @user:server form.',
|
|
35
|
+
'Matrix 访问令牌无效或已失效,请在 homeserver 重新签发后重试。':
|
|
36
|
+
'The Matrix access token is invalid or expired. Issue a new one on the homeserver and try again.',
|
|
37
|
+
'Matrix homeserver 暂时无法访问,请确认网络与地址后重试。':
|
|
38
|
+
'The Matrix homeserver is temporarily unreachable. Check the network and the URL, then retry.',
|
|
39
|
+
'Matrix whoami 未返回用户身份,请改用用户 ID 与密码接入。':
|
|
40
|
+
'The Matrix whoami call returned no user identity. Connect with a user id and password instead.',
|
|
41
|
+
'Matrix 用户名或密码不正确,请核对后重试。':
|
|
42
|
+
'The Matrix user id or password is incorrect. Verify it and try again.',
|
|
43
|
+
'Matrix homeserver 暂不支持密码登录,请改用访问令牌接入。':
|
|
44
|
+
'The Matrix homeserver does not support password login. Connect with an access token instead.',
|
|
45
|
+
|
|
46
|
+
'Matrix 配置的 device_id 与服务端实际设备不一致,以服务端设备为准。':
|
|
47
|
+
'The configured Matrix device_id differs from the actual server-side device; the server device wins.',
|
|
48
|
+
'Matrix whoami 返回的用户 {verified} 与配置的用户 {configured} 不一致,以 whoami 结果为准。':
|
|
49
|
+
'The user {verified} returned by Matrix whoami differs from the configured user {configured}; the whoami result wins.',
|
|
50
|
+
'Matrix 配置的 device_id {configured} 与令牌绑定设备 {verified} 不一致,令牌仅能为其设备共享密钥,以令牌设备为准。':
|
|
51
|
+
'The configured device_id {configured} differs from the device {verified} bound to the token. A token can share keys only for its own device; the token device wins.',
|
|
52
|
+
|
|
53
|
+
'端到端加密模式为 required,但未配置加密状态存储,已拒绝建立加密连接。':
|
|
54
|
+
'End-to-end encryption mode is required, but no crypto state storage is configured, so the encrypted connection was refused.',
|
|
55
|
+
'Matrix 端到端加密未配置状态存储,加密房间消息将明确降级跳过。':
|
|
56
|
+
'Matrix end-to-end encryption has no crypto state storage configured; encrypted room messages will be visibly skipped.',
|
|
57
|
+
'端到端加密模式为 required,但加密引擎启动失败,已拒绝建立加密连接:{reason}':
|
|
58
|
+
'End-to-end encryption mode is required, but the crypto engine failed to start, so the encrypted connection was refused: {reason}',
|
|
59
|
+
'Matrix 端到端加密引擎启动失败,加密房间消息将明确降级跳过。':
|
|
60
|
+
'The Matrix crypto engine failed to start; encrypted room messages will be visibly skipped.',
|
|
61
|
+
'Matrix 端到端加密引擎已就绪,设备密钥与一次性密钥已注册。':
|
|
62
|
+
'The Matrix crypto engine is ready; device keys and one-time keys are registered.',
|
|
63
|
+
'端到端加密未启用或不可用,加密房间 {room} 的密文会被明确降级跳过。':
|
|
64
|
+
'End-to-end encryption is off or unavailable; ciphertext from the encrypted room {room} is visibly skipped.',
|
|
65
|
+
'Matrix 加密状态绑定于设备 {stored},与当前令牌设备 {active} 不符;请先修复设备配置,切勿删除加密状态文件后静默重建设备。':
|
|
66
|
+
'The Matrix crypto state is bound to device {stored}, which differs from the current token device {active}; fix the device configuration first. Do not silently rebuild the device by deleting the crypto state file.',
|
|
67
|
+
'Matrix 设备加密身份不完整,无法建立端到端加密会话。':
|
|
68
|
+
'The Matrix device encryption identity is incomplete; an end-to-end encryption session cannot be established.',
|
|
69
|
+
'Matrix 加密引擎尚未就绪。': 'The Matrix crypto engine is not ready yet.',
|
|
70
|
+
'Matrix 收到的时间戳持续远落后于本机时间,检测到本机时钟超前,请校准系统时间后重启机器人。':
|
|
71
|
+
'Matrix event timestamps keep lagging far behind the local clock; the local clock is ahead. Calibrate the system time and restart the bot.',
|
|
72
|
+
|
|
73
|
+
'Matrix 拒绝了来自未授权用户 {inviter} 的入房邀请 {room}。':
|
|
74
|
+
'Matrix declined the room invite {room} from the unauthorized user {inviter}.',
|
|
75
|
+
'Matrix 已按授权邀请加入房间 {room}。': 'Matrix joined room {room} after an authorized invite.',
|
|
76
|
+
'Matrix 已婉拒失效房间的遗留邀请 {room}。': 'Matrix declined the stale invite for the dead room {room}.',
|
|
77
|
+
'Matrix 无法为该用户创建私聊房间。': 'Matrix could not create a private chat room for this user.',
|
|
78
|
+
|
|
79
|
+
'结果文件内容为空或下载失败。': 'The result file is empty or failed to download.',
|
|
80
|
+
'结果文件超过 Matrix 媒体大小上限。': 'The result file exceeds the Matrix media size limit.',
|
|
81
|
+
'Matrix 媒体上传失败。': 'The Matrix media upload failed.',
|
|
82
|
+
'Matrix 文件消息发送失败。': 'The Matrix file message could not be sent.',
|
|
83
|
+
'结果文件「{name}」已生成,但 Matrix homeserver 拒绝了媒体上传,请检查其媒体大小限制与上传权限。':
|
|
84
|
+
'The result file “{name}” was produced, but the Matrix homeserver rejected the media upload. Check its media size limit and upload permissions.',
|
|
85
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// English translations (office area). Keys are exact Chinese literals passed to t().
|
|
2
|
+
export default {
|
|
3
|
+
'AI Office 拒绝了 Device Token。': 'AI Office rejected the Device Token.',
|
|
4
|
+
'AI Office Connector Hook 尚未就绪。': 'The AI Office Connector Hook is not ready yet.',
|
|
5
|
+
'AI Office Connector 协议版本不兼容。': 'The AI Office Connector protocol version is incompatible.',
|
|
6
|
+
'本机暂时无法访问 AI Office。': 'This machine cannot reach AI Office right now.',
|
|
7
|
+
'AI Office 连接已中断。': 'The AI Office connection was interrupted.',
|
|
8
|
+
'本机 Harness 已停止这次执行。': 'The local Harness stopped this run.',
|
|
9
|
+
'Office Job 已被领取、取消或结束。': 'The Office Job has already been claimed, cancelled, or finished.',
|
|
10
|
+
'本机 Harness 未能完成任务;请检查 Harness 会话后重试。': 'The local Harness could not complete the task; check the Harness Session and try again.',
|
|
11
|
+
'Office Job 引用了本机未配置的 Workspace/Preset alias。': 'The Office Job references a Workspace/Preset alias that is not configured locally.',
|
|
12
|
+
'你正在本机 DeepSeek Harness 中继续一个来自 AI Office 的任务。': 'You are continuing an AI Office task inside the local DeepSeek Harness.',
|
|
13
|
+
'只在当前 Workspace 内行动。完成后必须返回:结果摘要、改动文件、验证证据、未解决风险。': 'Act only within the current Workspace. When finished you must return: a result summary, changed files, verification evidence, and unresolved risks.',
|
|
14
|
+
'## 本机 Instruction Preset': '## Local Instruction Preset',
|
|
15
|
+
'## 本轮补充指令': '## Additional Instructions for This Round',
|
|
16
|
+
'## Office 时间线': '## Office Timeline',
|
|
17
|
+
'批准 {tool}': 'Approve {tool}',
|
|
18
|
+
'Harness 工具': 'Harness tool',
|
|
19
|
+
'Harness 需要 {count} 项补充信息': 'Harness needs {count} pieces of additional information',
|
|
20
|
+
'已领取 Job,准备 Workspace alias:{alias}': 'Job claimed; preparing Workspace alias: {alias}',
|
|
21
|
+
'Harness Session 已创建。': 'Harness Session created.',
|
|
22
|
+
'正在使用 {tool}…': 'Using {tool}…',
|
|
23
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// English translations (qq area). Keys are exact Chinese literals passed to t().
|
|
2
|
+
export default {
|
|
3
|
+
'无法读取 QQ 本地状态,请检查数据目录及访问权限。': 'Unable to read local QQ state. Check the data directory and access permissions.',
|
|
4
|
+
'QQ 本地状态已损坏,但无法备份,原文件已保留。': 'Local QQ state is corrupt and could not be backed up. The original file has been preserved.',
|
|
5
|
+
'无法保存 QQ 本地状态,请检查磁盘空间及目录写入权限。': 'Unable to save local QQ state. Check disk space and directory write permissions.',
|
|
6
|
+
'返回主菜单': 'Back to main menu',
|
|
7
|
+
'模式/预设': 'Mode / preset',
|
|
8
|
+
'归档显示': 'Archived sessions',
|
|
9
|
+
'第 {page} / {pages} 页': 'Page {page} / {pages}',
|
|
10
|
+
'当前会话:{session}': 'Current session: {session}',
|
|
11
|
+
'模式/预设:{preset}': 'Mode / preset: {preset}',
|
|
12
|
+
'当前模型:{model}': 'Current model: {model}',
|
|
13
|
+
'暂不可用': 'Unavailable',
|
|
14
|
+
'归档会话:{state}': 'Archived sessions: {state}',
|
|
15
|
+
'显示': 'Shown',
|
|
16
|
+
'隐藏': 'Hidden',
|
|
17
|
+
'任务状态:{state}': 'Task status: {state}',
|
|
18
|
+
'处理中': 'Processing',
|
|
19
|
+
'空闲': 'Idle',
|
|
20
|
+
'部分设置暂未加载,可进入对应列表重试。': 'Some settings could not be loaded. Open the corresponding list to retry.',
|
|
21
|
+
'💬 会话选择': '💬 Select session',
|
|
22
|
+
'📁 工作区': '📁 Workspace',
|
|
23
|
+
'🤖 模式/预设': '🤖 Mode / preset',
|
|
24
|
+
'🧠 模型': '🧠 Model',
|
|
25
|
+
'💬 补充指令': '💬 Steer task',
|
|
26
|
+
'给当前正在运行的任务补充指令。': 'Send an additional instruction to the running task.',
|
|
27
|
+
'自定义指令': 'Custom instruction',
|
|
28
|
+
'请发送 /steer 你的补充指令。': 'Send /steer followed by your instruction.',
|
|
29
|
+
'发送 /m 打开助手中心,点击按钮或回复当前列表的数字选择。': 'Send /m to open the assistant menu. Click a button or reply with a number from the current list.',
|
|
30
|
+
'设置:会话、工作区、模式/预设、模型。': 'Settings: session, workspace, mode / preset, model.',
|
|
31
|
+
'会话:新会话、会话列表、归档显示切换。': 'Sessions: new session, session list, show or hide archived sessions.',
|
|
32
|
+
'任务:停止、压缩、快捷或自定义补充指令。': 'Tasks: stop, compact, quick or custom steering instructions.',
|
|
33
|
+
'信息:状态、帮助。': 'Information: status, help.',
|
|
34
|
+
'菜单有效期为 15 分钟;发送普通消息会退出数字选择。': 'Menus expire after 15 minutes. Sending an ordinary message exits number selection.',
|
|
35
|
+
'回答问题、审批和批量输入时,数字优先用于当前交互。': 'During questions, approvals and batch input, numbers belong to that interaction.',
|
|
36
|
+
'完整命令说明:/help': 'Full command reference: /help',
|
|
37
|
+
'当前无法展示按钮,请回复数字选择。': 'Buttons are unavailable. Reply with a number to select.',
|
|
38
|
+
'点击按钮或回复数字选择,/m 返回主菜单。': 'Click a button or reply with a number. Send /m for the main menu.',
|
|
39
|
+
'回答问题、审批和批量输入时,请先完成当前交互。': 'Finish any pending question, approval or batch input before replying with a menu number.',
|
|
40
|
+
'已选择': 'Selected',
|
|
41
|
+
'请回复数字选择,或发送 /m 重新打开菜单。': 'Reply with a number or send /m to reopen the menu.',
|
|
42
|
+
'当前正在批量输入,请先发送 /send 或 /cancel,再打开菜单。': 'Batch input is active. Send /send or /cancel before opening the menu.',
|
|
43
|
+
'菜单命令无效,请发送 /m 重新打开。': 'Invalid menu command. Send /m to reopen the menu.',
|
|
44
|
+
'当前任务仍在运行,请先停止任务或等待任务完成后再执行此操作。': 'A task is still running. Stop it or wait for it to finish before performing this action.',
|
|
45
|
+
|
|
46
|
+
'QQ 机器人已连接 DeepSeek Harness。':
|
|
47
|
+
'The QQ bot is connected to DeepSeek Harness.',
|
|
48
|
+
'回答较长,后续内容未能通过 QQ 完整发送,请回复“继续”。':
|
|
49
|
+
'The answer is long and the rest could not be sent fully through QQ. Reply “继续” (continue) to receive it.',
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
'结果文件「{name}」已生成,但 QQ 今日文件上传额度已用完,请稍后重试。':
|
|
55
|
+
'The result file "{name}" was generated, but QQ\'s daily file upload quota is used up. Please try again later.',
|
|
56
|
+
|
|
57
|
+
'结果文件「{name}」已生成,但当前 QQ 机器人没有文件消息权限。':
|
|
58
|
+
'The result file "{name}" was generated, but the current QQ bot does not have file message permission.',
|
|
59
|
+
'结果文件「{name}」超过当前 QQ 机器人可发送的文件大小,未发送。':
|
|
60
|
+
'The result file "{name}" exceeds the file size the current QQ bot can send and was not sent.',
|
|
61
|
+
'结果文件「{name}」为空,QQ 不允许发送空文件。':
|
|
62
|
+
'The result file "{name}" is empty, and QQ does not allow sending empty files.',
|
|
63
|
+
|
|
64
|
+
'结果文件「{name}」暂时被 QQ 限流,未能发送,请稍后重试。':
|
|
65
|
+
'The result file "{name}" was temporarily rate-limited by QQ and was not sent. Please try again later.',
|
|
66
|
+
'结果文件「{name}」已生成,但 QQ 拒绝了该文件或文件消息。':
|
|
67
|
+
'The result file "{name}" was generated, but QQ rejected the file or file message.',
|
|
68
|
+
'结果文件「{name}」已生成,但暂时未能通过 QQ 发送,请稍后重试。':
|
|
69
|
+
'The result file "{name}" was generated but could not be sent via QQ right now. Please try again later.',
|
|
70
|
+
'QQ 机器人与 DeepSeek Harness 连接正常。':
|
|
71
|
+
'The QQ bot is connected to DeepSeek Harness normally.',
|
|
72
|
+
'QQ 交互问题发送失败。': 'Failed to send the QQ interaction question.',
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
'QQ 机器人凭据缺失,请移除后重新扫码。':
|
|
76
|
+
'The QQ bot credentials are missing. Remove the bot and scan the QR code again.',
|
|
77
|
+
'QQ 连接未就绪,插件会自动重试。':
|
|
78
|
+
'The QQ connection is not ready; the plugin will retry automatically.',
|
|
79
|
+
'QQ 扫码服务暂时不可用,请重新生成二维码。':
|
|
80
|
+
'The QQ QR service is temporarily unavailable. Please generate a new QR code.',
|
|
81
|
+
'无法生成 QQ 二维码,请稍后重试。':
|
|
82
|
+
'Unable to generate the QQ QR code. Please try again later.',
|
|
83
|
+
'QQ 机器人已绑定,消息连接暂未就绪。':
|
|
84
|
+
'The QQ bot is bound, but the message connection is not ready yet.',
|
|
85
|
+
'QQ 连接仍未就绪,请稍后重试。':
|
|
86
|
+
'The QQ connection is still not ready. Please try again later.',
|
|
87
|
+
QQ机器人尚未连接: 'The QQ bot is not connected yet',
|
|
88
|
+
'QQ 机器人({appId})': 'QQ bot ({appId})',
|
|
89
|
+
QQ机器人: 'QQ bot',
|
|
90
|
+
'QQ WebSocket 长连接运行正常': 'The QQ WebSocket long connection is running normally',
|
|
91
|
+
'QQ 连接未就绪,插件会自动重试':
|
|
92
|
+
'The QQ connection is not ready; the plugin will retry automatically',
|
|
93
|
+
'QQ 连接当前离线': 'The QQ connection is currently offline',
|
|
94
|
+
'QQ 已授权,但无法安全保存接入配置。':
|
|
95
|
+
'QQ authorization succeeded, but the connection configuration could not be saved safely.',
|
|
96
|
+
};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// English translations (shared-a area). Keys are exact Chinese literals passed to t().
|
|
2
|
+
export default {
|
|
3
|
+
'这个问题已在其他客户端处理,无需再次回答。':
|
|
4
|
+
'This question has already been answered from another client; no further reply is needed.',
|
|
5
|
+
'任务已完成。': 'Task completed.',
|
|
6
|
+
'本轮处理已结束,没有文本回复。': 'This turn has ended with no text reply.',
|
|
7
|
+
'结果文件': 'result file',
|
|
8
|
+
'结果文件「{name}」的发送结果未能确认,请先检查聊天内是否已收到,不要立即重试。':
|
|
9
|
+
'The delivery result of the result file "{name}" could not be confirmed. Please check whether it already arrived in the chat before retrying.',
|
|
10
|
+
'结果文件「{name}」已生成,但 Slack 应用缺少 files:write 权限。请更新 Manifest、重新安装应用并重新连接机器人后重试。':
|
|
11
|
+
'The result file "{name}" was generated, but the Slack app is missing the files:write permission. Please update the Manifest, reinstall the app, reconnect the bot, and try again.',
|
|
12
|
+
'结果文件「{name}」已生成,但机器人缺少 Discord 的 Send Messages、Attach Files 或 Read Message History 权限。':
|
|
13
|
+
'The result file "{name}" was generated, but the bot is missing the Discord Send Messages, Attach Files, or Read Message History permission.',
|
|
14
|
+
'结果文件「{name}」已生成,但 Telegram 不允许机器人在当前聊天发送文档,请检查聊天权限。':
|
|
15
|
+
'The result file "{name}" was generated, but Telegram does not allow the bot to send documents in this chat. Please check the chat permissions.',
|
|
16
|
+
'结果文件「{name}」已生成,但当前机器人没有文件发送权限,请检查渠道权限。':
|
|
17
|
+
'The result file "{name}" was generated, but the bot does not have permission to send files. Please check the channel permissions.',
|
|
18
|
+
'结果文件「{name}」超过当前渠道大小上限,未发送。':
|
|
19
|
+
'The result file "{name}" exceeds the size limit of this channel and was not sent.',
|
|
20
|
+
'结果文件「{name}」为空,未发送。':
|
|
21
|
+
'The result file "{name}" is empty and was not sent.',
|
|
22
|
+
'结果文件「{name}」暂时无法读取或准备发送,请确认文件仍可访问后重试。':
|
|
23
|
+
'The result file "{name}" cannot be read or prepared for sending right now. Please make sure the file is still accessible and try again.',
|
|
24
|
+
'结果文件「{name}」暂时被当前渠道限流,未能发送,请稍后重试。':
|
|
25
|
+
'The result file "{name}" was temporarily rate-limited by this channel and could not be sent. Please try again later.',
|
|
26
|
+
'结果文件「{name}」已生成,但当前渠道拒绝了该文件或文件消息。':
|
|
27
|
+
'The result file "{name}" was generated, but this channel rejected the file or file message.',
|
|
28
|
+
'结果文件「{name}」已生成,但当前渠道暂时未能发送,请稍后重试。':
|
|
29
|
+
'The result file "{name}" was generated, but this channel could not send it right now. Please try again later.',
|
|
30
|
+
'消息处理失败,请稍后重试。': 'Failed to process the message. Please try again later.',
|
|
31
|
+
'卡片已结束,请查看后续消息。': 'This card has ended. Please check the next message.',
|
|
32
|
+
'工具调用「{name}」未成功,请检查工具配置或稍后重试。': 'Tool call "{name}" did not succeed. Check the tool configuration or try again later.',
|
|
33
|
+
'无法连接处理服务,消息尚未提交。请确认 DeepSeek Harness 正在运行后重试。':
|
|
34
|
+
'Could not connect to the processing service, so the message was not submitted. Make sure DeepSeek Harness is running, then try again.',
|
|
35
|
+
'处理服务响应超时,消息尚未开始处理。请稍后重试。':
|
|
36
|
+
'The processing service timed out before the message started. Please try again later.',
|
|
37
|
+
'暂时无法确认任务状态,任务可能已经开始。请先等待或发送 /stop,不要立即重复提交。':
|
|
38
|
+
'The task status could not be confirmed and the task may have started. Wait or send /stop before submitting it again.',
|
|
39
|
+
'消息提交结果未能确认,任务可能已经开始。请先等待或发送 /status 查看状态,不要立即重复提交。':
|
|
40
|
+
'The message submission could not be confirmed and the task may have started. Wait or send /status before submitting it again.',
|
|
41
|
+
'暂时无法读取任务进度,任务可能仍在运行。请先等待或发送 /stop,不要立即重复提交。':
|
|
42
|
+
'Task progress is temporarily unavailable and the task may still be running. Wait or send /stop before submitting it again.',
|
|
43
|
+
'处理服务拒绝了机器人连接。请管理员检查 Harness 地址、代理或访问配置后重试。':
|
|
44
|
+
'The processing service rejected the bot connection. Ask an administrator to check the Harness address, proxy, or access settings.',
|
|
45
|
+
'机器人与 DeepSeek Harness 的接口不兼容。请管理员检查 Harness 地址并更新相关版本。':
|
|
46
|
+
'The bot and DeepSeek Harness use incompatible APIs. Ask an administrator to check the Harness address and update the related components.',
|
|
47
|
+
'DeepSeek Harness 暂时无法完成请求,请稍后重试。':
|
|
48
|
+
'DeepSeek Harness could not complete the request. Please try again later.',
|
|
49
|
+
'等待模型回复超时,任务可能仍在运行。请先等待或发送 /stop,不要立即重复提交。':
|
|
50
|
+
'Waiting for the model reply timed out and the task may still be running. Wait or send /stop before submitting it again.',
|
|
51
|
+
'模型凭据缺失或已失效。请管理员检查模型配置后重试。':
|
|
52
|
+
'The model credentials are missing or invalid. Ask an administrator to check the model settings.',
|
|
53
|
+
'模型额度或余额不足,本次任务未完成。请管理员补充额度或切换模型后重试。':
|
|
54
|
+
'The model quota or balance is insufficient. Ask an administrator to add quota or switch models, then try again.',
|
|
55
|
+
'模型服务正在限流,本次任务未完成。请稍后重试。':
|
|
56
|
+
'The model service is rate-limiting requests. Please try again later.',
|
|
57
|
+
'当前会话内容超过模型上下文上限。请发送 /compact 或 /new 后重试。':
|
|
58
|
+
'This conversation exceeds the model context limit. Send /compact or /new, then try again.',
|
|
59
|
+
'当前模型不存在或暂不可用。请发送 /models 查看并使用 /model 切换模型。':
|
|
60
|
+
'The current model does not exist or is unavailable. Send /models and use /model to switch models.',
|
|
61
|
+
'当前模型不存在或不支持所选配置。请发送 /models,再用 /model <序号> 为当前聊天重新选择。若要修改后续新会话的默认模型,请到 DSH 设置 → IM机器人 → 对应机器人卡片修改。':
|
|
62
|
+
'The current model does not exist or does not support the selected settings. Send /models, then use /model <index> to choose a model for the current conversation. To change the default model for new conversations, open DSH Settings → IM Bots → the corresponding bot card.',
|
|
63
|
+
'当前模型不支持这类内容或所选配置。请调整内容、模型或推理等级后重试。':
|
|
64
|
+
'The current model does not support this content or the selected settings. Adjust the content, model, or reasoning effort and try again.',
|
|
65
|
+
'当前模型不支持所选配置。请切换模型或推理等级后重试。':
|
|
66
|
+
'The current model does not support the selected settings. Switch the model or reasoning effort, then try again.',
|
|
67
|
+
'模型服务响应超时,本次任务未完成。请稍后重试。':
|
|
68
|
+
'The model service timed out and the task did not finish. Please try again later.',
|
|
69
|
+
'暂时无法连接模型服务,本次任务未完成。请稍后重试。':
|
|
70
|
+
'The model service is temporarily unreachable and the task did not finish. Please try again later.',
|
|
71
|
+
'模型服务暂时异常,本次任务未完成。请稍后重试。':
|
|
72
|
+
'The model service is temporarily unavailable and the task did not finish. Please try again later.',
|
|
73
|
+
'模型回复中断或格式异常,本次任务未完成。请重试。':
|
|
74
|
+
'The model reply was interrupted or malformed, so the task did not finish. Please try again.',
|
|
75
|
+
'模型没有返回可显示的内容。请重试;若持续发生,请切换模型。':
|
|
76
|
+
'The model returned no displayable content. Try again, or switch models if this keeps happening.',
|
|
77
|
+
'模型拒绝处理当前内容。请调整问题内容后重试。':
|
|
78
|
+
'The model rejected the current content. Revise the request and try again.',
|
|
79
|
+
'模型达到输出长度上限,但没有生成可显示的结果。请缩小任务范围后重试。':
|
|
80
|
+
'The model reached its output limit without producing a displayable result. Reduce the task scope and try again.',
|
|
81
|
+
'任务正在等待无法在当前渠道完成的操作。请在 DeepSeek Harness 中处理后再试。':
|
|
82
|
+
'The task is waiting for an action that cannot be completed in this channel. Handle it in DeepSeek Harness, then try again.',
|
|
83
|
+
'任务被意外中断,本次未完成。请重试。':
|
|
84
|
+
'The task was unexpectedly interrupted and did not finish. Please try again.',
|
|
85
|
+
'当前会话已不存在。请发送 /new 创建新会话后重试。':
|
|
86
|
+
'The current Session no longer exists. Send /new to create one, then try again.',
|
|
87
|
+
'当前会话仍在处理上一项任务。请等待完成,或发送 /stop 后重试。':
|
|
88
|
+
'The current Session is still processing the previous task. Wait for it to finish, or send /stop before trying again.',
|
|
89
|
+
'工作区或会话状态刚刚发生变化。请重新发送这条消息。':
|
|
90
|
+
'The Workspace or Session state just changed. Please send this message again.',
|
|
91
|
+
'当前工作区不存在或暂不可用。请重新选择工作区后重试。':
|
|
92
|
+
'The current Workspace does not exist or is unavailable. Select another Workspace and try again.',
|
|
93
|
+
'当前 Agent Preset 无法使用。请发送 /presetlist 查看可用项,使用 /preset <序号或 ID> 重新选择,再发送 /new 创建新会话后重试。如需继续原会话,请联系管理员恢复原 Preset。':
|
|
94
|
+
'The current Agent Preset is unavailable. Send /presetlist to see available options, select one with /preset <index or ID>, then send /new to create a new Session and try again. To continue the original Session, ask an administrator to restore the original Preset.',
|
|
95
|
+
'回复已经生成,但机器人没有发送权限。请联系管理员检查渠道权限或重新绑定机器人。':
|
|
96
|
+
'The reply was generated, but the bot cannot send it. Ask an administrator to check channel permissions or reconnect the bot.',
|
|
97
|
+
'回复已经生成,但当前渠道正在限流,暂时无法发送。请稍后重试。':
|
|
98
|
+
'The reply was generated, but this channel is rate-limiting messages. Please try again later.',
|
|
99
|
+
'回复发送结果未能确认。请先检查聊天内是否已经收到,不要立即重复提交。':
|
|
100
|
+
'Reply delivery could not be confirmed. Check whether it already arrived before submitting the task again.',
|
|
101
|
+
'回复已经生成,但当前渠道暂时无法发送。请稍后重试。':
|
|
102
|
+
'The reply was generated, but this channel could not send it. Please try again later.',
|
|
103
|
+
'当前消息包含无法处理的图片或文件。请调整后重新发送。':
|
|
104
|
+
'This message contains an image or file that cannot be processed. Adjust it and send it again.',
|
|
105
|
+
'任务未完成,暂时无法确定原因。请重试;若持续发生,请将参考号提供给管理员。':
|
|
106
|
+
'The task did not finish and the cause could not be determined. Try again; if it persists, give the reference ID to an administrator.',
|
|
107
|
+
'错误码:{code};参考号:{referenceId}': 'Error code: {code}; reference: {referenceId}',
|
|
108
|
+
'{label}机器人': '{label} bot',
|
|
109
|
+
'目前支持文字和图片消息。': 'Only text and image messages are supported at the moment.',
|
|
110
|
+
'目前支持文字、图片和文件消息。':
|
|
111
|
+
'Only text, image, and file messages are supported at the moment.',
|
|
112
|
+
'目前支持文字、图片、文件和语音转写消息。':
|
|
113
|
+
'Only text, image, file, and voice-transcription messages are supported at the moment.',
|
|
114
|
+
'目前支持文字、图片、文件,以及微信已转成文字的语音消息。':
|
|
115
|
+
'Only text, image, file, and voice messages already transcribed to text by WeChat are supported at the moment.',
|
|
116
|
+
'直接发送文字或图片即可继续当前会话。': 'Send text or an image directly to continue the current session.',
|
|
117
|
+
'直接发送文字、图片或文件即可继续当前会话。':
|
|
118
|
+
'Send text, an image, or a file directly to continue the current session.',
|
|
119
|
+
'直接发送文字、图片、文件或带文字识别结果的语音即可继续当前会话。':
|
|
120
|
+
'Send text, an image, a file, or a voice message already transcribed to text to continue the current session.',
|
|
121
|
+
'{label}机器人已连接 DeepSeek Harness。': 'The {label} bot is connected to DeepSeek Harness.',
|
|
122
|
+
'查看最近历史消息(仅私聊)': 'Show recent history (private chats only)',
|
|
123
|
+
'按序号列出当前模型可用推理等级': 'List reasoning efforts for the current model by index',
|
|
124
|
+
'查看或切换当前推理等级': 'Show or switch the current reasoning effort',
|
|
125
|
+
'/new 开启一个全新会话': '/new Start a brand-new session',
|
|
126
|
+
'/compact 压缩当前会话的较早上下文': '/compact Compact the earlier context of the current session',
|
|
127
|
+
'/workspace 工作区序号或绝对路径 切换工作区':
|
|
128
|
+
'/workspace <workspace index or absolute path> Switch workspace',
|
|
129
|
+
'设置当前对话专属工作区': 'Set a workspace dedicated to this conversation',
|
|
130
|
+
'/conv 或 /conversation 查看当前对话工作区':
|
|
131
|
+
'/conv or /conversation Show the workspace of this conversation',
|
|
132
|
+
'/conv 工作区绝对路径或序号 设置当前对话专属工作区':
|
|
133
|
+
'/conv <workspace absolute path or index> Set a workspace dedicated to this conversation',
|
|
134
|
+
'/conv clear 清除专属工作区,回到 bot 默认工作区':
|
|
135
|
+
'/conv clear Clear the dedicated workspace and fall back to the bot default',
|
|
136
|
+
'对话专属:/conv 工作区序号或绝对路径(仅影响当前对话)':
|
|
137
|
+
'Dedicated to this conversation: /conv <workspace index or absolute path> (affects this conversation only)',
|
|
138
|
+
'当前对话工作区:{workspace}': 'This conversation uses the workspace: {workspace}',
|
|
139
|
+
'状态:已为该对话显式绑定,之后修改 bot 默认工作区不会影响本对话。':
|
|
140
|
+
'Status: explicitly bound for this conversation; changing the bot default workspace later will not affect it.',
|
|
141
|
+
'状态:未显式绑定,当前跟随 bot 默认工作区。':
|
|
142
|
+
'Status: not explicitly bound; this conversation currently follows the bot default workspace.',
|
|
143
|
+
'当前对话工作区已切换为:{workspace}': 'This conversation now uses the workspace: {workspace}',
|
|
144
|
+
'已清除对话专属工作区,当前使用 bot 默认工作区:{workspace}(之后默认工作区的变化会同步到本对话)':
|
|
145
|
+
'Cleared the dedicated workspace. This conversation now uses the bot default: {workspace} (later changes to that default follow here as well)',
|
|
146
|
+
'可切换的工作区({count}):': 'Available workspaces ({count}):',
|
|
147
|
+
'用法:/conv 工作区序号或绝对路径': 'Usage: /conv <workspace index or absolute path>',
|
|
148
|
+
'清除:/conv clear': 'Clear: /conv clear',
|
|
149
|
+
'{message}\n用法:/conv 工作区绝对路径': '{message}\nUsage: /conv <workspace absolute path>',
|
|
150
|
+
'当前机器人暂不支持按对话设置专属工作区。':
|
|
151
|
+
'This bot does not support per-conversation workspaces yet.',
|
|
152
|
+
'当前机器人暂不支持设置对话工作区。':
|
|
153
|
+
'This bot does not support setting a conversation workspace yet.',
|
|
154
|
+
'当前消息缺少可设置的对话上下文。':
|
|
155
|
+
'This message has no conversation context to bind a workspace to.',
|
|
156
|
+
'暂时无法读取当前对话工作区,请稍后重试。':
|
|
157
|
+
'This conversation workspace is temporarily unavailable. Please try again later.',
|
|
158
|
+
'暂时无法清除对话工作区,请稍后重试。':
|
|
159
|
+
'The conversation workspace could not be cleared right now. Please try again later.',
|
|
160
|
+
'机器人正在移除或已重新接入,无法读取对话工作区。':
|
|
161
|
+
'The bot is being removed or was reconnected, so the conversation workspace cannot be read.',
|
|
162
|
+
'机器人正在移除或已重新接入,无法清除对话工作区。':
|
|
163
|
+
'The bot is being removed or was reconnected, so the conversation workspace cannot be cleared.',
|
|
164
|
+
'机器人正在移除或已重新接入,无法切换对话工作区。':
|
|
165
|
+
'The bot is being removed or was reconnected, so the conversation workspace cannot be switched.',
|
|
166
|
+
'不带工作区参数时,/sessionlist 默认列出当前对话的有效工作区。':
|
|
167
|
+
'Without a workspace argument, /sessionlist lists the workspace this conversation effectively uses.',
|
|
168
|
+
'不带工作区参数时,默认列出当前对话的有效工作区(未设置对话专属工作区时即 bot 默认工作区)。':
|
|
169
|
+
'Without a workspace argument it lists the workspace this conversation effectively uses (the bot default when no conversation workspace is set).',
|
|
170
|
+
'/workspacelist 列出工作区绝对路径': '/workspacelist List absolute workspace paths',
|
|
171
|
+
'/ws、/wsl、/workspaces 工作区命令别名': '/ws, /wsl, /workspaces Workspace command aliases',
|
|
172
|
+
'/sessionlist [工作区序号或绝对路径] 列出会话 ID 和标题':
|
|
173
|
+
'/sessionlist [workspace index or absolute path] List session IDs and titles',
|
|
174
|
+
'/sessionlist 或 /sessions [工作区序号或绝对路径] 列出会话 ID 和标题':
|
|
175
|
+
'/sessionlist or /sessions [workspace index or absolute path] List session IDs and titles',
|
|
176
|
+
'/sessionlist --limit N 仅列出当前工作区前 N 个会话':
|
|
177
|
+
'/sessionlist --limit N List only the first N sessions in the current workspace',
|
|
178
|
+
'/session Session ID 或当前工作区序号 将当前聊天绑定到指定会话':
|
|
179
|
+
'/session <Session ID or workspace index> Bind this chat to the specified session',
|
|
180
|
+
'/models 按序号列出所有可用模型': '/models List all available models by index',
|
|
181
|
+
'/reasoninglist 或 /reasonings 按序号列出当前模型可用推理等级':
|
|
182
|
+
'/reasoninglist or /reasonings List reasoning efforts for the current model by index',
|
|
183
|
+
'/reasoning [序号、等级ID或 --default] 查看或切换当前推理等级':
|
|
184
|
+
'/reasoning [index, effort ID, or --default] Show or switch the current reasoning effort',
|
|
185
|
+
'/model [序号或完整模型ID] 查看或切换当前会话模型':
|
|
186
|
+
'/model [index or full model ID] Show or switch the model of the current session',
|
|
187
|
+
'/model [序号或完整模型ID] [推理等级ID] 查看或切换当前会话模型':
|
|
188
|
+
'/model [index or full model ID] [reasoning effort ID] Show or switch the current Session model',
|
|
189
|
+
'示例:先发 /models,再发 /model 2': 'Example: send /models first, then /model 2',
|
|
190
|
+
'示例:先发 /models,再发 /model 2 [推理等级ID]':
|
|
191
|
+
'Example: send /models first, then /model 2 [reasoning effort ID]',
|
|
192
|
+
'/presetlist 按序号列出可用 Agent Preset': '/presetlist List available Agent Presets by index',
|
|
193
|
+
'/presetlist 或 /presets 按序号列出可用 Agent Preset':
|
|
194
|
+
'/presetlist or /presets List available Agent Presets by index',
|
|
195
|
+
'/preset [序号或完整ID] 查看或设置当前机器人 Agent Preset':
|
|
196
|
+
'/preset [index or full ID] Show or set the Agent Preset of this bot',
|
|
197
|
+
'纯数字 ID:/preset id:<ID>': 'Numeric-only ID: /preset id:<ID>',
|
|
198
|
+
'/preset --default 跟随 Host 默认': '/preset --default Follow the Host default',
|
|
199
|
+
'/stop 停止当前任务': '/stop Stop the current task',
|
|
200
|
+
'/steer 补充指令 纠偏当前任务': '/steer <additional instruction> Steer the current task',
|
|
201
|
+
'/status 检查连接状态': '/status Check the connection status',
|
|
202
|
+
'/version 查看插件版本': '/version Show the plugin version',
|
|
203
|
+
'/help 显示本帮助': '/help Show this help',
|
|
204
|
+
'{label}机器人与 DeepSeek Harness 连接正常。':
|
|
205
|
+
'The {label} bot is connected to DeepSeek Harness and working normally.',
|
|
206
|
+
'{label}机器人凭据缺失,请移除后重新接入。':
|
|
207
|
+
'{label} bot credentials are missing. Remove the bot and connect it again.',
|
|
208
|
+
'{label}连接未就绪,插件会自动重试。':
|
|
209
|
+
'The {label} connection is not ready yet. The plugin will retry automatically.',
|
|
210
|
+
'{label}机器人已接入,消息连接暂未就绪。':
|
|
211
|
+
'The {label} bot is connected, but its message connection is not ready yet.',
|
|
212
|
+
'{label}连接仍未就绪,请稍后重试。':
|
|
213
|
+
'The {label} connection is still not ready. Please try again later.',
|
|
214
|
+
'{label}机器人尚未连接': 'The {label} bot is not connected yet',
|
|
215
|
+
'{name}({id})': '{name} ({id})',
|
|
216
|
+
'{label}{connectionLabel}运行正常': 'The {label}{connectionLabel} is running normally',
|
|
217
|
+
'{label}连接未就绪,插件会自动重试':
|
|
218
|
+
'The {label} connection is not ready. The plugin will retry automatically',
|
|
219
|
+
'{label}连接当前离线': 'The {label} connection is currently offline',
|
|
220
|
+
'已开启新会话。请发送你的问题。': 'A new session has started. Please send your question.',
|
|
221
|
+
'正在使用{name}…': 'Using {name}…',
|
|
222
|
+
'已停止。': 'Stopped.',
|
|
223
|
+
'请用文字回答当前问题。': 'Please answer the current question with text.',
|
|
224
|
+
'{label}交互问题发送失败。': 'Failed to send the {label} interaction question.',
|
|
225
|
+
'回答提交失败。': 'Failed to submit the answer.',
|
|
226
|
+
'回答提交失败,请重新发送当前问题的答案。':
|
|
227
|
+
'Failed to submit the answer. Please resend your answer to the current question.',
|
|
228
|
+
'检测到这个 Session 中遗留的待回答问题,已安全取消并继续处理你刚才的消息。':
|
|
229
|
+
'A pending question left over in this Session was detected. It has been safely cancelled, and your latest message is being processed.',
|
|
230
|
+
// Inline-keyboard question cards (text-harness-bridge.mjs).
|
|
231
|
+
'该问题已处理,无需再次选择。':
|
|
232
|
+
'This question has already been handled; no further choice is needed.',
|
|
233
|
+
'只有发起当前任务的用户可以处理这条问题。':
|
|
234
|
+
'Only the user who started this task can answer this question.',
|
|
235
|
+
'正在提交你的选择,请稍候。': 'Submitting your choice, please wait.',
|
|
236
|
+
'这个选项已失效,请使用最新一条问题。':
|
|
237
|
+
'This option has expired. Please use the most recent question message.',
|
|
238
|
+
'多选问题请直接回复文字。':
|
|
239
|
+
'Please answer a multi-select question by replying with text.',
|
|
240
|
+
'已选择:{label}': 'Selected: {label}',
|
|
241
|
+
};
|