@openclaw/twitch 2026.5.30-beta.1 → 2026.5.31-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.
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./plugin-n6agZBWc.js";
1
+ import { t as twitchPlugin } from "./plugin-CKzmPOuR.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-n6agZBWc.js";
1
+ import { t as twitchPlugin } from "./plugin-CKzmPOuR.js";
2
2
  export { twitchPlugin };
@@ -1,4 +1,4 @@
1
- import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-n6agZBWc.js";
1
+ import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-CKzmPOuR.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";
@@ -144,7 +144,6 @@ var TwitchClientManager = class {
144
144
  let settled = false;
145
145
  let authRetryPending = false;
146
146
  const listeners = [];
147
- let timeout;
148
147
  const finish = (error) => {
149
148
  if (settled) return;
150
149
  settled = true;
@@ -169,7 +168,7 @@ var TwitchClientManager = class {
169
168
  }
170
169
  finish(reason ?? /* @__PURE__ */ new Error(manual ? `Twitch connection cancelled for ${account.username}` : `Twitch disconnected before ready for ${account.username}`));
171
170
  }));
172
- timeout = setTimeout(() => finish(/* @__PURE__ */ new Error(`Timed out connecting to Twitch as ${account.username}`)), connectTimeoutMs);
171
+ const timeout = setTimeout(() => finish(/* @__PURE__ */ new Error(`Timed out connecting to Twitch as ${account.username}`)), connectTimeoutMs);
173
172
  timeout.unref?.();
174
173
  try {
175
174
  client.connect();
@@ -952,9 +951,6 @@ async function probeTwitch(account, timeoutMs) {
952
951
  client = new ChatClient({ authProvider: new StaticAuthProvider(account.clientId ?? "", rawToken) });
953
952
  const connectionPromise = new Promise((resolve, reject) => {
954
953
  let settled = false;
955
- let connectListener;
956
- let disconnectListener;
957
- let authFailListener;
958
954
  const cleanup = () => {
959
955
  if (settled) return;
960
956
  settled = true;
@@ -962,15 +958,15 @@ async function probeTwitch(account, timeoutMs) {
962
958
  disconnectListener?.unbind();
963
959
  authFailListener?.unbind();
964
960
  };
965
- connectListener = client?.onConnect(() => {
961
+ const connectListener = client?.onConnect(() => {
966
962
  cleanup();
967
963
  resolve();
968
964
  });
969
- disconnectListener = client?.onDisconnect((_manually, reason) => {
965
+ const disconnectListener = client?.onDisconnect((_manually, reason) => {
970
966
  cleanup();
971
967
  reject(reason || /* @__PURE__ */ new Error("Disconnected"));
972
968
  });
973
- authFailListener = client?.onAuthenticationFailure(() => {
969
+ const authFailListener = client?.onAuthenticationFailure(() => {
974
970
  cleanup();
975
971
  reject(/* @__PURE__ */ new Error("Authentication failed"));
976
972
  });
@@ -1348,7 +1344,7 @@ const twitchPlugin = createChatChannelPlugin({
1348
1344
  await runStoppablePassiveMonitor({
1349
1345
  abortSignal: ctx.abortSignal,
1350
1346
  start: async () => {
1351
- const { monitorTwitchProvider } = await import("./monitor-DtKWUPTM.js");
1347
+ const { monitorTwitchProvider } = await import("./monitor-BtpH6LRk.js");
1352
1348
  return monitorTwitchProvider({
1353
1349
  account,
1354
1350
  accountId,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.5.30-beta.1",
3
+ "version": "2026.5.31-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/twitch",
9
- "version": "2026.5.30-beta.1",
9
+ "version": "2026.5.31-beta.1",
10
10
  "dependencies": {
11
11
  "@twurple/api": "8.1.4",
12
12
  "@twurple/auth": "8.1.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.5.30-beta.1",
3
+ "version": "2026.5.31-beta.1",
4
4
  "description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "minHostVersion": ">=2026.4.10"
25
25
  },
26
26
  "compat": {
27
- "pluginApi": ">=2026.5.30-beta.1"
27
+ "pluginApi": ">=2026.5.31-beta.1"
28
28
  },
29
29
  "build": {
30
- "openclawVersion": "2026.5.30-beta.1"
30
+ "openclawVersion": "2026.5.31-beta.1"
31
31
  },
32
32
  "channel": {
33
33
  "id": "twitch",
@@ -55,7 +55,7 @@
55
55
  "README.md"
56
56
  ],
57
57
  "peerDependencies": {
58
- "openclaw": ">=2026.5.30-beta.1"
58
+ "openclaw": ">=2026.5.31-beta.1"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "openclaw": {