@openclaw/twitch 2026.10.5-beta.4 → 2026.10.10-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.
@@ -1,9 +1,9 @@
1
- import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-q9M3RXni.mjs";
1
+ import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-Ds8927WG.mjs";
2
2
  import { l as normalizeTwitchChannel } from "./setup-surface-BHuTmMZL.mjs";
3
3
  import { t as getTwitchRuntime } from "./runtime-B5If4b0g.mjs";
4
4
  import { createChannelIngressError, createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
5
5
  import { createChannelInboundEnvelopeBuilderAsync } from "openclaw/plugin-sdk/channel-inbound";
6
- import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
+ import { collectErrorGraphCandidates, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { normalizeLowercaseStringOrEmpty, normalizeNullableString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { HttpStatusCodeError } from "@twurple/api-call";
9
9
  import { resolveOutboundMediaUrls } from "openclaw/plugin-sdk/reply-payload";
@@ -159,11 +159,7 @@ function normalizeClaimedTwitchMessage(event, claimedId) {
159
159
  };
160
160
  }
161
161
  function isTwitchAuthenticationFailure(error) {
162
- let current = error;
163
- for (let depth = 0; depth < 8 && current && typeof current === "object"; depth += 1) {
164
- if (current instanceof HttpStatusCodeError && (current.statusCode === 401 || current.statusCode === 403)) return true;
165
- current = current.cause;
166
- }
162
+ for (const candidate of collectErrorGraphCandidates(error, (current) => [current.cause])) if (candidate instanceof HttpStatusCodeError && (candidate.statusCode === 401 || candidate.statusCode === 403)) return true;
167
163
  return false;
168
164
  }
169
165
  function stoppedError() {
@@ -14,9 +14,9 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
14
14
  import { captureEffectAuthority } from "openclaw/plugin-sdk/fetch-runtime";
15
15
  import { channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
16
16
  import { chunkTextForOutbound, sanitizeAssistantVisibleText, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
17
- import { runChannelProbe, sliceUtf16Safe, withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
18
17
  import { normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
19
18
  import { z } from "zod";
19
+ import { runChannelProbe, withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
20
20
  import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
21
21
  import { HttpStatusCodeError, callTwitchApi } from "@twurple/api-call";
22
22
  //#region extensions/twitch/src/actions.ts
@@ -209,8 +209,7 @@ var TwitchClientManager = class {
209
209
  const handler = this.messageHandlers.get(key)?.handler;
210
210
  if (handler) {
211
211
  const from = `twitch:${msg.userInfo.userName}`;
212
- const preview = sliceUtf16Safe(messageText, 0, 100).replace(/\n/g, "\\n");
213
- this.logger.debug?.(`twitch inbound: channel=${channelName} from=${from} len=${messageText.length} preview="${preview}"`);
212
+ this.logger.debug?.(`twitch inbound: channel=${channelName} from=${from} len=${messageText.length}`);
214
213
  handler({
215
214
  username: msg.userInfo.userName,
216
215
  displayName: msg.userInfo.displayName,
@@ -674,7 +673,7 @@ function collectTwitchStatusIssues(accounts) {
674
673
  accountId,
675
674
  kind: "runtime",
676
675
  message: `Last error: ${entry.lastError}`,
677
- fix: "Check your token validity and network connection. Ensure the bot has the required OAuth scopes."
676
+ fix: "Check your token validity and network connection. Check that the bot has the required OAuth scopes."
678
677
  });
679
678
  if (!entry.running && !entry.lastStartAt && !entry.lastInboundAt && !entry.lastOutboundAt) issues.push({
680
679
  channel: "twitch",
@@ -820,7 +819,7 @@ const twitchPlugin = createChatChannelPlugin({
820
819
  await runPassiveAccountLifecycle({
821
820
  abortSignal: ctx.abortSignal,
822
821
  start: async () => {
823
- const { monitorTwitchProvider } = await import("./monitor-CsdDBmJ4.mjs");
822
+ const { monitorTwitchProvider } = await import("./monitor-DH2GTYQv.mjs");
824
823
  return monitorTwitchProvider({
825
824
  account,
826
825
  accountId,
@@ -0,0 +1,2 @@
1
+ export { t as twitchSetupPlugin } from "./setup-surface-BHuTmMZL.mjs";
2
+ import "../setup-plugin-api.js";
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./.setup/plugin-q9M3RXni.mjs";
1
+ import { t as twitchPlugin } from "./.setup/plugin-Ds8927WG.mjs";
2
2
  import { n as setTwitchRuntime } from "./.setup/runtime-B5If4b0g.mjs";
3
3
  export { setTwitchRuntime, twitchPlugin };
@@ -1,2 +1 @@
1
- import { t as twitchPlugin } from "./.setup/plugin-q9M3RXni.mjs";
2
- export { twitchPlugin };
1
+ export { t as twitchPlugin } from "./.setup/plugin-Ds8927WG.mjs";
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-plugin-api-BC-Kt0o_.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-VbVHO_SG.mjs", import.meta.url).href),
8
8
  exportName: "twitchSetupPlugin"
9
9
  }
10
10
  });
@@ -1,2 +1 @@
1
- import { t as twitchSetupPlugin } from "./.setup/setup-surface-BHuTmMZL.mjs";
2
- export { twitchSetupPlugin };
1
+ export { t as twitchSetupPlugin } from "./.setup/setup-surface-BHuTmMZL.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.10.5-beta.4",
3
+ "version": "2026.10.10-beta.2",
4
4
  "description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,10 +31,10 @@
31
31
  "minHostVersion": ">=2026.4.10"
32
32
  },
33
33
  "compat": {
34
- "pluginApi": ">=2026.10.5-beta.4"
34
+ "pluginApi": ">=2026.10.10-beta.2"
35
35
  },
36
36
  "build": {
37
- "openclawVersion": "2026.10.5-beta.4"
37
+ "openclawVersion": "2026.10.10-beta.2"
38
38
  },
39
39
  "channel": {
40
40
  "id": "twitch",
@@ -74,7 +74,7 @@
74
74
  "assets/activity.svg"
75
75
  ],
76
76
  "peerDependencies": {
77
- "openclaw": ">=2026.10.5-beta.4"
77
+ "openclaw": ">=2026.10.10-beta.2"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "openclaw": {
@@ -1,3 +0,0 @@
1
- import { t as twitchSetupPlugin } from "./setup-surface-BHuTmMZL.mjs";
2
- import "../setup-plugin-api.js";
3
- export { twitchSetupPlugin };