@botharness/im-provider 4.32.0-botharness.16 → 4.32.0-botharness.20

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 (45) hide show
  1. package/PROVENANCE.json +8 -8
  2. package/lib/client.js +8 -5
  3. package/lib/index.js +305 -308
  4. package/package.json +6 -5
  5. package/plugin-src/host/app-setup.mjs +244 -0
  6. package/plugin-src/host/build.mjs +3 -2
  7. package/plugin-src/host/channels/qq/production.mjs +6 -1
  8. package/plugin-src/host/channels/shared/startup.mjs +3 -0
  9. package/plugin-src/host/delivery-adapter.mjs +15 -0
  10. package/plugin-src/host/delivery-service.mjs +103 -3
  11. package/plugin-src/host/index.mjs +15 -2
  12. package/plugin-src/host/qq-sdk-observation-patch.mjs +53 -0
  13. package/src/channels/discord/discord-api.mjs +9 -0
  14. package/src/channels/discord/discord-controller.mjs +1 -2
  15. package/src/channels/discord/discord-runtime.mjs +13 -0
  16. package/src/channels/discord/reachable-conversations.mjs +211 -0
  17. package/src/channels/feishu/external-cards.mjs +63 -6
  18. package/src/channels/feishu/external-reactions.mjs +36 -0
  19. package/src/channels/feishu/feishu-runtime.mjs +95 -2
  20. package/src/channels/feishu/multi-bot-controller.mjs +78 -4
  21. package/src/channels/qq/config-store.mjs +1 -0
  22. package/src/channels/qq/external-addressing.mjs +6 -0
  23. package/src/channels/qq/external-consumer.mjs +207 -0
  24. package/src/channels/qq/external-files.mjs +50 -0
  25. package/src/channels/qq/external-images.mjs +109 -0
  26. package/src/channels/qq/external-mentions.mjs +32 -0
  27. package/src/channels/qq/external-post.mjs +51 -0
  28. package/src/channels/qq/external-voice.mjs +32 -0
  29. package/src/channels/qq/native-gateway-diagnostics.mjs +86 -0
  30. package/src/channels/qq/native-reply-observations.mjs +143 -0
  31. package/src/channels/qq/native-transport-diagnostics.mjs +42 -0
  32. package/src/channels/qq/qq-controller.mjs +104 -1
  33. package/src/channels/qq/qq-runtime.mjs +256 -12
  34. package/src/channels/qq/sdk-frame-observation.mjs +31 -0
  35. package/src/channels/qq/voice-attachment.mjs +3 -0
  36. package/src/channels/shared/i18n-en/qq.mjs +4 -0
  37. package/src/channels/shared/i18n-en/weixin.mjs +1 -0
  38. package/src/channels/shared/token-bot-controller.mjs +26 -0
  39. package/src/channels/slack/reachable-conversations.mjs +136 -0
  40. package/src/channels/slack/slack-api.mjs +9 -1
  41. package/src/channels/slack/slack-controller.mjs +25 -2
  42. package/src/channels/slack/slack-runtime.mjs +23 -0
  43. package/src/channels/weixin/connection-error.en.mjs +1 -0
  44. package/src/channels/weixin/connection-error.mjs +1 -0
  45. package/src/channels/weixin/weixin-controller.mjs +23 -2
package/PROVENANCE.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@botharness/im-provider",
3
- "version": "4.32.0-botharness.16",
4
- "source": "36da305c9586335a47d4bab6ee4f0025247a9d8f",
3
+ "version": "4.32.0-botharness.20",
4
+ "source": "0e5b447f45e4a44d4089eac16cc1fa5673dbd66d",
5
5
  "sourceRepository": "https://github.com/DoodleBears/dsh-im",
6
6
  "upstreamRepository": "https://github.com/xmanrui/dsh-im",
7
7
  "dsh": "0.2.0-rc.1",
8
8
  "qualifiedInput": {
9
- "runtimeFiles": 404,
10
- "runtimeSha256": "221c8888098886cfb50f7d33c8703fac154ad8dfaccfab4b4465e49ea973c4a8"
9
+ "runtimeFiles": 421,
10
+ "runtimeSha256": "8ce0cccd66187db4b028c5bb414ea8d1623ea8e4c564ddd5adf02b14a10f2b86"
11
11
  },
12
12
  "compiledOutput": {
13
- "runtimeFiles": 405,
14
- "runtimeSha256": "c8f792a32393b02bf42830dd802d2c2f502e338734f529898a019e0d847ffa3b"
13
+ "runtimeFiles": 422,
14
+ "runtimeSha256": "1bda59905abe9b761ce7c0d113acdc4b4523d96bc0293b212c4708d0c8dbb733"
15
15
  },
16
- "sourceManifestSha256": "501e62d558eceb2b42ad9cd03fc0910e09581fd6531ec68e074fe5a16225ed1e",
17
- "sourceLockSha256": "c7f16baaa5bb1ab3bbb607b59a10327f0af010c61e1ea1ab4a72d7d08af9ffe9",
16
+ "sourceManifestSha256": "3331e8f771a91abf396eb4e7ed5c0acc4c3b504cdccc7d715e37062708384cc2",
17
+ "sourceLockSha256": "3476c34c7d4515000d2617beaf2568b2a794b60de9b350cd8eafb7a2bf21adef",
18
18
  "managedSources": {
19
19
  "update-rpc.mjs": "3bf9f5345309bc47b978ba9997f38a8e89e4012f5c103121042ef95dba465a76",
20
20
  "update-policy.mjs": "f9912eca6a8077792efb72b80d05b26d06d6d1fa76d3c468c723169ef7ee8872",
package/lib/client.js CHANGED
@@ -3,6 +3,7 @@ window.__ModuleLoader__.load({
3
3
  factory: (require) => {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
+ "use strict";
6
7
  var __create = Object.create;
7
8
  var __defProp = Object.defineProperty;
8
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -71,7 +72,7 @@ var React37 = __toESM(require("react"), 1);
71
72
  // package.json
72
73
  var package_default = {
73
74
  name: "@botharness/im-provider",
74
- version: "4.32.0-botharness.16",
75
+ version: "4.32.0-botharness.20",
75
76
  icon: "./assets/logo-plugin-message-link-gradient.webp",
76
77
  description: "BotHarness-qualified IM Provider, maintained from dsh-im",
77
78
  keywords: [
@@ -219,7 +220,7 @@ var package_default = {
219
220
  platform: "web"
220
221
  },
221
222
  compatibility: {
222
- dsh: ">=0.1.7-0",
223
+ dsh: ">=0.2.0-0",
223
224
  profiles: [
224
225
  "web"
225
226
  ]
@@ -227,7 +228,7 @@ var package_default = {
227
228
  },
228
229
  engines: {
229
230
  node: ">=22",
230
- dsh: ">=0.1.7-0"
231
+ dsh: ">=0.2.0-0"
231
232
  },
232
233
  dependencies: {
233
234
  "@matrix-org/olm": "3.2.15",
@@ -239,7 +240,8 @@ var package_default = {
239
240
  mailparser: "^3.9.28",
240
241
  nodemailer: "^10.0.10",
241
242
  qrcode: "1.5.4",
242
- undici: "7.29.1"
243
+ undici: "7.29.1",
244
+ ws: "8.21.3"
243
245
  },
244
246
  optionalDependencies: {
245
247
  "@tencent-qqmail/agently-cli": "^1.0.18",
@@ -248,7 +250,7 @@ var package_default = {
248
250
  peerDependencies: {},
249
251
  botharness: {
250
252
  managedByProduct: true,
251
- upstreamSource: "36da305c9586335a47d4bab6ee4f0025247a9d8f"
253
+ upstreamSource: "0e5b447f45e4a44d4089eac16cc1fa5673dbd66d"
252
254
  }
253
255
  };
254
256
 
@@ -530,6 +532,7 @@ var diagnostics_default = Object.freeze({
530
532
 
531
533
  // src/channels/weixin/connection-error.en.mjs
532
534
  var connection_error_en_default = {
535
+ "\u8BE5\u5FAE\u4FE1\u8D26\u53F7\u5DF2\u5728\u672C\u673A\u914D\u7F6E\uFF0C\u8BF7\u9009\u62E9\u5DF2\u6709\u5E94\u7528\u3002": "This WeChat account is already configured locally. Choose the existing app.",
533
536
  "\u5FAE\u4FE1\u914D\u7F6E\u683C\u5F0F\u9519\u8BEF\uFF1A{file}\u3002\u8BF7\u67E5\u770B\u8BCA\u65AD\u8BE6\u60C5\uFF0C\u4FEE\u590D\u540E\u91CD\u542F DSH\u3002": "The WeChat configuration is invalid: {file}. See the diagnostic details, fix the file, and restart DSH.",
534
537
  "\u914D\u7F6E\u6587\u4EF6": "Configuration file",
535
538
  "\u914D\u7F6E\u5B57\u6BB5": "Configuration field",