@openclaw/twitch 2026.5.26 → 2026.5.27-beta.1

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 (145) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/channel-plugin-api.js +1 -1
  3. package/dist/{monitor-OQV-HuXr.js → monitor-DtKWUPTM.js} +7 -15
  4. package/dist/{plugin-C_YMBt4q.js → plugin-n6agZBWc.js} +2 -2
  5. package/node_modules/@types/ws/node_modules/@types/node/LICENSE +21 -0
  6. package/node_modules/@types/ws/node_modules/@types/node/README.md +15 -0
  7. package/node_modules/@types/ws/node_modules/@types/node/assert/strict.d.ts +59 -0
  8. package/node_modules/@types/ws/node_modules/@types/node/assert.d.ts +950 -0
  9. package/node_modules/@types/ws/node_modules/@types/node/async_hooks.d.ts +711 -0
  10. package/node_modules/@types/ws/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  11. package/node_modules/@types/ws/node_modules/@types/node/buffer.d.ts +1765 -0
  12. package/node_modules/@types/ws/node_modules/@types/node/child_process.d.ts +1366 -0
  13. package/node_modules/@types/ws/node_modules/@types/node/cluster.d.ts +432 -0
  14. package/node_modules/@types/ws/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  15. package/node_modules/@types/ws/node_modules/@types/node/console.d.ts +93 -0
  16. package/node_modules/@types/ws/node_modules/@types/node/constants.d.ts +14 -0
  17. package/node_modules/@types/ws/node_modules/@types/node/crypto.d.ts +4058 -0
  18. package/node_modules/@types/ws/node_modules/@types/node/dgram.d.ts +537 -0
  19. package/node_modules/@types/ws/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
  20. package/node_modules/@types/ws/node_modules/@types/node/dns/promises.d.ts +497 -0
  21. package/node_modules/@types/ws/node_modules/@types/node/dns.d.ts +876 -0
  22. package/node_modules/@types/ws/node_modules/@types/node/domain.d.ts +150 -0
  23. package/node_modules/@types/ws/node_modules/@types/node/events.d.ts +1008 -0
  24. package/node_modules/@types/ws/node_modules/@types/node/fs/promises.d.ts +1468 -0
  25. package/node_modules/@types/ws/node_modules/@types/node/fs.d.ts +4780 -0
  26. package/node_modules/@types/ws/node_modules/@types/node/globals.d.ts +150 -0
  27. package/node_modules/@types/ws/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  28. package/node_modules/@types/ws/node_modules/@types/node/http.d.ts +2147 -0
  29. package/node_modules/@types/ws/node_modules/@types/node/http2.d.ts +2485 -0
  30. package/node_modules/@types/ws/node_modules/@types/node/https.d.ts +400 -0
  31. package/node_modules/@types/ws/node_modules/@types/node/index.d.ts +117 -0
  32. package/node_modules/@types/ws/node_modules/@types/node/inspector/promises.d.ts +35 -0
  33. package/node_modules/@types/ws/node_modules/@types/node/inspector.d.ts +264 -0
  34. package/node_modules/@types/ws/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  35. package/node_modules/@types/ws/node_modules/@types/node/module.d.ts +755 -0
  36. package/node_modules/@types/ws/node_modules/@types/node/net.d.ts +970 -0
  37. package/node_modules/@types/ws/node_modules/@types/node/os.d.ts +498 -0
  38. package/node_modules/@types/ws/node_modules/@types/node/package.json +155 -0
  39. package/node_modules/@types/ws/node_modules/@types/node/path/posix.d.ts +8 -0
  40. package/node_modules/@types/ws/node_modules/@types/node/path/win32.d.ts +8 -0
  41. package/node_modules/@types/ws/node_modules/@types/node/path.d.ts +178 -0
  42. package/node_modules/@types/ws/node_modules/@types/node/perf_hooks.d.ts +612 -0
  43. package/node_modules/@types/ws/node_modules/@types/node/process.d.ts +2204 -0
  44. package/node_modules/@types/ws/node_modules/@types/node/punycode.d.ts +89 -0
  45. package/node_modules/@types/ws/node_modules/@types/node/querystring.d.ts +139 -0
  46. package/node_modules/@types/ws/node_modules/@types/node/quic.d.ts +897 -0
  47. package/node_modules/@types/ws/node_modules/@types/node/readline/promises.d.ts +158 -0
  48. package/node_modules/@types/ws/node_modules/@types/node/readline.d.ts +507 -0
  49. package/node_modules/@types/ws/node_modules/@types/node/repl.d.ts +420 -0
  50. package/node_modules/@types/ws/node_modules/@types/node/sea.d.ts +47 -0
  51. package/node_modules/@types/ws/node_modules/@types/node/sqlite.d.ts +1068 -0
  52. package/node_modules/@types/ws/node_modules/@types/node/stream/consumers.d.ts +114 -0
  53. package/node_modules/@types/ws/node_modules/@types/node/stream/iter.d.ts +301 -0
  54. package/node_modules/@types/ws/node_modules/@types/node/stream/promises.d.ts +211 -0
  55. package/node_modules/@types/ws/node_modules/@types/node/stream/web.d.ts +300 -0
  56. package/node_modules/@types/ws/node_modules/@types/node/stream.d.ts +1774 -0
  57. package/node_modules/@types/ws/node_modules/@types/node/string_decoder.d.ts +27 -0
  58. package/node_modules/@types/ws/node_modules/@types/node/test/reporters.d.ts +59 -0
  59. package/node_modules/@types/ws/node_modules/@types/node/test.d.ts +2279 -0
  60. package/node_modules/@types/ws/node_modules/@types/node/timers/promises.d.ts +93 -0
  61. package/node_modules/@types/ws/node_modules/@types/node/timers.d.ts +149 -0
  62. package/node_modules/@types/ws/node_modules/@types/node/tls.d.ts +1193 -0
  63. package/node_modules/@types/ws/node_modules/@types/node/trace_events.d.ts +103 -0
  64. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  65. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  66. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  67. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/index.d.ts +119 -0
  68. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  69. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/index.d.ts +119 -0
  70. package/node_modules/@types/ws/node_modules/@types/node/tty.d.ts +225 -0
  71. package/node_modules/@types/ws/node_modules/@types/node/url.d.ts +556 -0
  72. package/node_modules/@types/ws/node_modules/@types/node/util/types.d.ts +558 -0
  73. package/node_modules/@types/ws/node_modules/@types/node/util.d.ts +1677 -0
  74. package/node_modules/@types/ws/node_modules/@types/node/v8.d.ts +980 -0
  75. package/node_modules/@types/ws/node_modules/@types/node/vm.d.ts +1136 -0
  76. package/node_modules/@types/ws/node_modules/@types/node/wasi.d.ts +131 -0
  77. package/node_modules/@types/ws/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  78. package/node_modules/@types/ws/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  79. package/node_modules/@types/ws/node_modules/@types/node/web-globals/console.d.ts +9 -0
  80. package/node_modules/@types/ws/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  81. package/node_modules/@types/ws/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  82. package/node_modules/@types/ws/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  83. package/node_modules/@types/ws/node_modules/@types/node/web-globals/events.d.ts +106 -0
  84. package/node_modules/@types/ws/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  85. package/node_modules/@types/ws/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  86. package/node_modules/@types/ws/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  87. package/node_modules/@types/ws/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  88. package/node_modules/@types/ws/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  89. package/node_modules/@types/ws/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  90. package/node_modules/@types/ws/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  91. package/node_modules/@types/ws/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  92. package/node_modules/@types/ws/node_modules/@types/node/web-globals/url.d.ts +24 -0
  93. package/node_modules/@types/ws/node_modules/@types/node/worker_threads.d.ts +671 -0
  94. package/node_modules/@types/ws/node_modules/@types/node/zlib/iter.d.ts +131 -0
  95. package/node_modules/@types/ws/node_modules/@types/node/zlib.d.ts +589 -0
  96. package/node_modules/@types/ws/node_modules/undici-types/LICENSE +21 -0
  97. package/node_modules/@types/ws/node_modules/undici-types/README.md +6 -0
  98. package/node_modules/@types/ws/node_modules/undici-types/agent.d.ts +32 -0
  99. package/node_modules/@types/ws/node_modules/undici-types/api.d.ts +43 -0
  100. package/node_modules/@types/ws/node_modules/undici-types/balanced-pool.d.ts +30 -0
  101. package/node_modules/@types/ws/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  102. package/node_modules/@types/ws/node_modules/undici-types/cache.d.ts +36 -0
  103. package/node_modules/@types/ws/node_modules/undici-types/client-stats.d.ts +15 -0
  104. package/node_modules/@types/ws/node_modules/undici-types/client.d.ts +123 -0
  105. package/node_modules/@types/ws/node_modules/undici-types/connector.d.ts +36 -0
  106. package/node_modules/@types/ws/node_modules/undici-types/content-type.d.ts +21 -0
  107. package/node_modules/@types/ws/node_modules/undici-types/cookies.d.ts +30 -0
  108. package/node_modules/@types/ws/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  109. package/node_modules/@types/ws/node_modules/undici-types/dispatcher.d.ts +279 -0
  110. package/node_modules/@types/ws/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  111. package/node_modules/@types/ws/node_modules/undici-types/errors.d.ts +177 -0
  112. package/node_modules/@types/ws/node_modules/undici-types/eventsource.d.ts +66 -0
  113. package/node_modules/@types/ws/node_modules/undici-types/fetch.d.ts +211 -0
  114. package/node_modules/@types/ws/node_modules/undici-types/formdata.d.ts +108 -0
  115. package/node_modules/@types/ws/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  116. package/node_modules/@types/ws/node_modules/undici-types/global-origin.d.ts +7 -0
  117. package/node_modules/@types/ws/node_modules/undici-types/h2c-client.d.ts +73 -0
  118. package/node_modules/@types/ws/node_modules/undici-types/handlers.d.ts +15 -0
  119. package/node_modules/@types/ws/node_modules/undici-types/header.d.ts +160 -0
  120. package/node_modules/@types/ws/node_modules/undici-types/index.d.ts +91 -0
  121. package/node_modules/@types/ws/node_modules/undici-types/interceptors.d.ts +80 -0
  122. package/node_modules/@types/ws/node_modules/undici-types/mock-agent.d.ts +68 -0
  123. package/node_modules/@types/ws/node_modules/undici-types/mock-call-history.d.ts +111 -0
  124. package/node_modules/@types/ws/node_modules/undici-types/mock-client.d.ts +27 -0
  125. package/node_modules/@types/ws/node_modules/undici-types/mock-errors.d.ts +12 -0
  126. package/node_modules/@types/ws/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  127. package/node_modules/@types/ws/node_modules/undici-types/mock-pool.d.ts +27 -0
  128. package/node_modules/@types/ws/node_modules/undici-types/package.json +55 -0
  129. package/node_modules/@types/ws/node_modules/undici-types/patch.d.ts +29 -0
  130. package/node_modules/@types/ws/node_modules/undici-types/pool-stats.d.ts +19 -0
  131. package/node_modules/@types/ws/node_modules/undici-types/pool.d.ts +41 -0
  132. package/node_modules/@types/ws/node_modules/undici-types/proxy-agent.d.ts +29 -0
  133. package/node_modules/@types/ws/node_modules/undici-types/readable.d.ts +68 -0
  134. package/node_modules/@types/ws/node_modules/undici-types/retry-agent.d.ts +8 -0
  135. package/node_modules/@types/ws/node_modules/undici-types/retry-handler.d.ts +125 -0
  136. package/node_modules/@types/ws/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  137. package/node_modules/@types/ws/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  138. package/node_modules/@types/ws/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  139. package/node_modules/@types/ws/node_modules/undici-types/util.d.ts +18 -0
  140. package/node_modules/@types/ws/node_modules/undici-types/utility.d.ts +7 -0
  141. package/node_modules/@types/ws/node_modules/undici-types/webidl.d.ts +347 -0
  142. package/node_modules/@types/ws/node_modules/undici-types/websocket.d.ts +188 -0
  143. package/npm-shrinkwrap.json +17 -2
  144. package/openclaw.plugin.json +2 -0
  145. package/package.json +5 -5
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./plugin-C_YMBt4q.js";
1
+ import { t as twitchPlugin } from "./plugin-n6agZBWc.js";
2
2
  import { n as setTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  export { setTwitchRuntime, twitchPlugin };
@@ -1,2 +1,2 @@
1
- import { t as twitchPlugin } from "./plugin-C_YMBt4q.js";
1
+ import { t as twitchPlugin } from "./plugin-n6agZBWc.js";
2
2
  export { twitchPlugin };
@@ -1,4 +1,4 @@
1
- import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-C_YMBt4q.js";
1
+ import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-n6agZBWc.js";
2
2
  import { t as getTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -132,7 +132,7 @@ function mentionsBot(message, botUsername) {
132
132
  async function processTwitchMessage(params) {
133
133
  const { message, account, accountId, config, runtime, core, statusSink } = params;
134
134
  const cfg = config;
135
- await core.channel.turn.run({
135
+ await core.channel.inbound.run({
136
136
  channel: "twitch",
137
137
  accountId,
138
138
  raw: message,
@@ -145,7 +145,7 @@ async function processTwitchMessage(params) {
145
145
  textForCommands: incoming.message,
146
146
  raw: incoming
147
147
  }),
148
- resolveTurn: (input) => {
148
+ resolveTurn: async (input) => {
149
149
  const route = core.channel.routing.resolveAgentRoute({
150
150
  cfg,
151
151
  channel: "twitch",
@@ -164,7 +164,7 @@ async function processTwitchMessage(params) {
164
164
  envelope: core.channel.reply.resolveEnvelopeFormatOptions(cfg),
165
165
  body: input.rawText
166
166
  });
167
- const ctxPayload = core.channel.turn.buildContext({
167
+ const ctxPayload = core.channel.inbound.buildContext({
168
168
  channel: "twitch",
169
169
  accountId,
170
170
  messageId: input.id,
@@ -178,27 +178,19 @@ async function processTwitchMessage(params) {
178
178
  conversation: {
179
179
  kind: "group",
180
180
  id: message.channel,
181
- label: message.channel,
182
- routePeer: {
183
- kind: "group",
184
- id: message.channel
185
- }
181
+ label: message.channel
186
182
  },
187
183
  route: {
188
184
  agentId: route.agentId,
189
185
  accountId: route.accountId,
190
186
  routeSessionKey: route.sessionKey
191
187
  },
192
- reply: {
193
- to: `twitch:channel:${message.channel}`,
194
- originatingTo: `twitch:channel:${message.channel}`
195
- },
188
+ reply: { to: `twitch:channel:${message.channel}` },
196
189
  message: {
197
190
  body,
198
191
  rawBody: input.rawText,
199
192
  bodyForAgent: input.textForAgent,
200
- commandBody: input.textForCommands,
201
- envelopeFrom: fromLabel
193
+ commandBody: input.textForCommands
202
194
  }
203
195
  });
204
196
  const storePath = core.channel.session.resolveStorePath(cfg.session?.store, { agentId: route.agentId });
@@ -7,7 +7,7 @@ import { buildPassiveProbedChannelStatusSummary, runStoppablePassiveMonitor } fr
7
7
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
8
8
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
9
9
  import { normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
- import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-message";
10
+ import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
11
11
  import { RefreshingAuthProvider, StaticAuthProvider } from "@twurple/auth";
12
12
  import { ChatClient, LogLevel } from "@twurple/chat";
13
13
  import { MarkdownConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
@@ -1348,7 +1348,7 @@ const twitchPlugin = createChatChannelPlugin({
1348
1348
  await runStoppablePassiveMonitor({
1349
1349
  abortSignal: ctx.abortSignal,
1350
1350
  start: async () => {
1351
- const { monitorTwitchProvider } = await import("./monitor-OQV-HuXr.js");
1351
+ const { monitorTwitchProvider } = await import("./monitor-DtKWUPTM.js");
1352
1352
  return monitorTwitchProvider({
1353
1353
  account,
1354
1354
  accountId,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,15 @@
1
+ # Installation
2
+ > `npm install --save @types/node`
3
+
4
+ # Summary
5
+ This package contains type definitions for node (https://nodejs.org/).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
+
10
+ ### Additional Details
11
+ * Last updated: Tue, 19 May 2026 17:48:56 GMT
12
+ * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
+
14
+ # Credits
15
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), [Dmitry Semigradsky](https://github.com/Semigradsky), [René](https://github.com/Renegade334), and [Yagiz Nizipli](https://github.com/anonrig).
@@ -0,0 +1,59 @@
1
+ declare module "node:assert/strict" {
2
+ import {
3
+ Assert,
4
+ AssertionError,
5
+ AssertionErrorOptions,
6
+ AssertOptions,
7
+ AssertPredicate,
8
+ AssertStrict,
9
+ deepStrictEqual,
10
+ doesNotMatch,
11
+ doesNotReject,
12
+ doesNotThrow,
13
+ fail,
14
+ ifError,
15
+ match,
16
+ notDeepStrictEqual,
17
+ notStrictEqual,
18
+ ok,
19
+ partialDeepStrictEqual,
20
+ rejects,
21
+ strictEqual,
22
+ throws,
23
+ } from "node:assert";
24
+ function strict(value: unknown, message?: string | Error): asserts value;
25
+ namespace strict {
26
+ export {
27
+ Assert,
28
+ AssertionError,
29
+ AssertionErrorOptions,
30
+ AssertOptions,
31
+ AssertPredicate,
32
+ AssertStrict,
33
+ deepStrictEqual,
34
+ deepStrictEqual as deepEqual,
35
+ doesNotMatch,
36
+ doesNotReject,
37
+ doesNotThrow,
38
+ fail,
39
+ ifError,
40
+ match,
41
+ notDeepStrictEqual,
42
+ notDeepStrictEqual as notDeepEqual,
43
+ notStrictEqual,
44
+ notStrictEqual as notEqual,
45
+ ok,
46
+ partialDeepStrictEqual,
47
+ rejects,
48
+ strict,
49
+ strictEqual,
50
+ strictEqual as equal,
51
+ throws,
52
+ };
53
+ }
54
+ export = strict;
55
+ }
56
+ declare module "assert/strict" {
57
+ import strict = require("node:assert/strict");
58
+ export = strict;
59
+ }