@openclaw/twitch 2026.5.18 → 2026.5.19-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as twitchPlugin } from "./plugin-
|
|
1
|
+
import { t as twitchPlugin } from "./plugin-DXTLfG2F.js";
|
|
2
2
|
export { twitchPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-
|
|
1
|
+
import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-DXTLfG2F.js";
|
|
2
2
|
import { t as getTwitchRuntime } from "./runtime-C5O5cqdz.js";
|
|
3
3
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -14,6 +14,7 @@ import { MarkdownConfigSchema } from "openclaw/plugin-sdk/channel-config-primiti
|
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { ApiClient } from "@twurple/api";
|
|
16
16
|
//#region extensions/twitch/src/twitch-client.ts
|
|
17
|
+
const TWITCH_CHAT_AUTH_INTENTS = ["chat"];
|
|
17
18
|
/**
|
|
18
19
|
* Manages Twitch chat client connections
|
|
19
20
|
*/
|
|
@@ -38,7 +39,7 @@ var TwitchClientManager = class {
|
|
|
38
39
|
refreshToken: account.refreshToken ?? null,
|
|
39
40
|
expiresIn: account.expiresIn ?? null,
|
|
40
41
|
obtainmentTimestamp: account.obtainmentTimestamp ?? Date.now()
|
|
41
|
-
}).then((userId) => {
|
|
42
|
+
}, TWITCH_CHAT_AUTH_INTENTS).then((userId) => {
|
|
42
43
|
this.logger.info(`Added user ${userId} to RefreshingAuthProvider for ${account.username}`);
|
|
43
44
|
}).catch((err) => {
|
|
44
45
|
this.logger.error(`Failed to add user to RefreshingAuthProvider: ${formatErrorMessage(err)}`);
|
|
@@ -203,7 +204,7 @@ var TwitchClientManager = class {
|
|
|
203
204
|
/**
|
|
204
205
|
* Clear all clients and handlers (for testing)
|
|
205
206
|
*/
|
|
206
|
-
|
|
207
|
+
clearForTest() {
|
|
207
208
|
this.clients.clear();
|
|
208
209
|
this.messageHandlers.clear();
|
|
209
210
|
}
|
|
@@ -1256,7 +1257,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1256
1257
|
await runStoppablePassiveMonitor({
|
|
1257
1258
|
abortSignal: ctx.abortSignal,
|
|
1258
1259
|
start: async () => {
|
|
1259
|
-
const { monitorTwitchProvider } = await import("./monitor-
|
|
1260
|
+
const { monitorTwitchProvider } = await import("./monitor-CChgaNlJ.js");
|
|
1260
1261
|
return monitorTwitchProvider({
|
|
1261
1262
|
account,
|
|
1262
1263
|
accountId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/twitch",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.19-beta.2",
|
|
4
4
|
"description": "OpenClaw Twitch channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"minHostVersion": ">=2026.4.10"
|
|
28
28
|
},
|
|
29
29
|
"compat": {
|
|
30
|
-
"pluginApi": ">=2026.5.
|
|
30
|
+
"pluginApi": ">=2026.5.19-beta.2"
|
|
31
31
|
},
|
|
32
32
|
"build": {
|
|
33
|
-
"openclawVersion": "2026.5.
|
|
33
|
+
"openclawVersion": "2026.5.19-beta.2"
|
|
34
34
|
},
|
|
35
35
|
"channel": {
|
|
36
36
|
"id": "twitch",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"README.md"
|
|
58
58
|
],
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"openclaw": ">=2026.5.
|
|
60
|
+
"openclaw": ">=2026.5.19-beta.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"openclaw": {
|