@openclaw/twitch 2026.9.5 → 2026.9.6
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,4 +1,4 @@
|
|
|
1
|
-
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-
|
|
1
|
+
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-CqPt4cYf.mjs";
|
|
2
2
|
import { d as normalizeTwitchChannel } from "./setup-surface-D_5uHrDU.mjs";
|
|
3
3
|
import { t as getTwitchRuntime } from "./runtime-B5If4b0g.mjs";
|
|
4
4
|
import { createChannelIngressError, createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
|
|
@@ -7,7 +7,7 @@ import { normalizeLowercaseStringOrEmpty, normalizeNullableString } from "opencl
|
|
|
7
7
|
import { HttpStatusCodeError } from "@twurple/api-call";
|
|
8
8
|
import { createChannelInboundEnvelopeBuilder } from "openclaw/plugin-sdk/channel-inbound";
|
|
9
9
|
import { resolveOutboundMediaUrls } from "openclaw/plugin-sdk/reply-payload";
|
|
10
|
-
import {
|
|
10
|
+
import { defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
|
|
11
11
|
//#region extensions/twitch/src/access-control.ts
|
|
12
12
|
const twitchUserIdentity = defineStableChannelIngressIdentity({
|
|
13
13
|
key: "sender-id",
|
|
@@ -32,7 +32,7 @@ const twitchRoleIdentity = defineStableChannelIngressIdentity({
|
|
|
32
32
|
async function checkTwitchAccessControl(params) {
|
|
33
33
|
const { message, account, botUsername } = params;
|
|
34
34
|
const policyKind = resolveTwitchPolicyKind(account);
|
|
35
|
-
const resolved = await
|
|
35
|
+
const resolved = await getTwitchRuntime().channel.inbound.ingress.createResolver({
|
|
36
36
|
channelId: "twitch",
|
|
37
37
|
accountId: params.accountId,
|
|
38
38
|
identity: policyKind === "role" ? twitchRoleIdentity : twitchUserIdentity
|
|
@@ -658,9 +658,8 @@ const twitchOutbound = {
|
|
|
658
658
|
sendText: async (params) => {
|
|
659
659
|
const { cfg, to, text, accountId } = params;
|
|
660
660
|
if (params.signal?.aborted) throw new Error("Outbound delivery aborted");
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
if (!account) throw new Error(`Twitch account not found: ${resolvedAccountId}. Available accounts: ${availableAccountIds.join(", ") || "none"}`);
|
|
661
|
+
const { account, accountId: normalizedAccountId, availableAccountIds, configured } = resolveTwitchAccountContext(cfg, accountId);
|
|
662
|
+
if (!account) throw new Error(`Twitch account not found: ${accountId ?? normalizedAccountId}. Available accounts: ${availableAccountIds.join(", ") || "none"}`);
|
|
664
663
|
const channel = to || account.channel;
|
|
665
664
|
if (!channel) throw new Error("No channel specified and no default channel in account config");
|
|
666
665
|
if (!configured) throw new Error(`Account ${normalizedAccountId} is not properly configured. Required: username, clientId, and accessToken (config or env for default account).`);
|
|
@@ -1188,7 +1187,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1188
1187
|
await runPassiveAccountLifecycle({
|
|
1189
1188
|
abortSignal: ctx.abortSignal,
|
|
1190
1189
|
start: async () => {
|
|
1191
|
-
const { monitorTwitchProvider } = await import("./monitor-
|
|
1190
|
+
const { monitorTwitchProvider } = await import("./monitor-qX6EbrLJ.mjs");
|
|
1192
1191
|
return monitorTwitchProvider({
|
|
1193
1192
|
account,
|
|
1194
1193
|
accountId,
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as twitchPlugin } from "./.setup/plugin-
|
|
1
|
+
import { t as twitchPlugin } from "./.setup/plugin-CqPt4cYf.mjs";
|
|
2
2
|
export { twitchPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/twitch",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.6",
|
|
4
4
|
"description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@twurple/api-call": "8.
|
|
12
|
-
"@twurple/auth": "8.
|
|
13
|
-
"@twurple/chat": "8.
|
|
14
|
-
"zod": "4.5
|
|
11
|
+
"@twurple/api-call": "8.2.0",
|
|
12
|
+
"@twurple/auth": "8.2.0",
|
|
13
|
+
"@twurple/chat": "8.2.0",
|
|
14
|
+
"zod": "4.6.5"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"minHostVersion": ">=2026.4.10"
|
|
32
32
|
},
|
|
33
33
|
"compat": {
|
|
34
|
-
"pluginApi": ">=2026.9.
|
|
34
|
+
"pluginApi": ">=2026.9.6"
|
|
35
35
|
},
|
|
36
36
|
"build": {
|
|
37
|
-
"openclawVersion": "2026.9.
|
|
37
|
+
"openclawVersion": "2026.9.6"
|
|
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.9.
|
|
77
|
+
"openclaw": ">=2026.9.6"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"openclaw": {
|