@openclaw/twitch 2026.10.5-beta.3 → 2026.10.10-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/.setup/{monitor-CsdDBmJ4.mjs → monitor-DH2GTYQv.mjs} +3 -7
- package/dist/.setup/{plugin-q9M3RXni.mjs → plugin-Ds8927WG.mjs} +4 -5
- package/dist/.setup/setup-plugin-api-VbVHO_SG.mjs +2 -0
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +1 -2
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -2
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-BC-Kt0o_.mjs +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
822
|
+
const { monitorTwitchProvider } = await import("./monitor-DH2GTYQv.mjs");
|
|
824
823
|
return monitorTwitchProvider({
|
|
825
824
|
account,
|
|
826
825
|
accountId,
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { twitchPlugin };
|
|
1
|
+
export { t as twitchPlugin } from "./.setup/plugin-Ds8927WG.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -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-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-VbVHO_SG.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "twitchSetupPlugin"
|
|
9
9
|
}
|
|
10
10
|
});
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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.
|
|
3
|
+
"version": "2026.10.10-beta.1",
|
|
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.
|
|
34
|
+
"pluginApi": ">=2026.10.10-beta.1"
|
|
35
35
|
},
|
|
36
36
|
"build": {
|
|
37
|
-
"openclawVersion": "2026.10.
|
|
37
|
+
"openclawVersion": "2026.10.10-beta.1"
|
|
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.
|
|
77
|
+
"openclaw": ">=2026.10.10-beta.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"openclaw": {
|