@openclaw/twitch 2026.9.1 → 2026.9.3
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 +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{monitor-dCA7_7aW.js → monitor-BTccCPPI.js} +2 -2
- package/dist/{plugin-DwymE1gC.js → plugin-DpUZvxJa.js} +11 -8
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-BZ2FXBoo.js → setup-surface-fSAA11EJ.js} +2 -1
- package/openclaw.plugin.json +0 -1
- package/package.json +4 -4
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as twitchPlugin } from "./plugin-
|
|
1
|
+
import { t as twitchPlugin } from "./plugin-DpUZvxJa.js";
|
|
2
2
|
export { twitchPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-
|
|
2
|
-
import {
|
|
1
|
+
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-DpUZvxJa.js";
|
|
2
|
+
import { d as normalizeTwitchChannel } from "./setup-surface-fSAA11EJ.js";
|
|
3
3
|
import { t as getTwitchRuntime } from "./runtime-B5If4b0g.js";
|
|
4
4
|
import { createChannelIngressError, createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as resolveTwitchAccountContext, c as isAccountConfigured, d as normalizeTwitchChannel, f as resolveTwitchToken, i as resolveDefaultTwitchAccountId, l as missingTargetError, n as DEFAULT_ACCOUNT_ID$1, o as resolveTwitchSnapshotAccountId, r as getAccountConfig, s as twitchConfigAdapter, t as twitchSetupPlugin, u as normalizeToken } from "./setup-surface-fSAA11EJ.js";
|
|
2
2
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
3
3
|
import { MarkdownConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
4
4
|
import { buildChannelOutboundSessionRoute, createChatChannelPlugin, stripChannelTargetPrefix } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -8,6 +8,7 @@ import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/exte
|
|
|
8
8
|
import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
9
9
|
import { RefreshingAuthProvider, StaticAuthProvider } from "@twurple/auth";
|
|
10
10
|
import { ChatClient, LogLevel } from "@twurple/chat";
|
|
11
|
+
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-resolution";
|
|
11
12
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
12
13
|
import { channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
13
14
|
import { chunkTextForOutbound, sanitizeAssistantVisibleText, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
|
|
@@ -162,8 +163,9 @@ var TwitchClientManager = class {
|
|
|
162
163
|
async createConnectedClient(key, account, ownsConnection, cfg, accountId) {
|
|
163
164
|
const tokenResolution = resolveTwitchToken(cfg, { accountId });
|
|
164
165
|
if (!tokenResolution.token) {
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
const resolvedAccountId = accountId ?? DEFAULT_ACCOUNT_ID;
|
|
167
|
+
const tokenConfigPath = cfg?.channels?.twitch?.accounts ? `channels.twitch.accounts.${resolvedAccountId}.accessToken` : "channels.twitch.accessToken";
|
|
168
|
+
throw new Error(`Missing Twitch token for account ${resolvedAccountId} (set ${tokenConfigPath} or OPENCLAW_TWITCH_ACCESS_TOKEN for default)`);
|
|
167
169
|
}
|
|
168
170
|
this.logger.debug?.(`Using ${tokenResolution.source} token source for ${account.username}`);
|
|
169
171
|
if (!account.clientId) {
|
|
@@ -1092,8 +1094,9 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1092
1094
|
blurb: "Twitch chat integration",
|
|
1093
1095
|
aliases: ["twitch-chat"]
|
|
1094
1096
|
},
|
|
1095
|
-
setupContract:
|
|
1096
|
-
setupWizard:
|
|
1097
|
+
setupContract: twitchSetupPlugin.setupContract,
|
|
1098
|
+
setupWizard: twitchSetupPlugin.setupWizard,
|
|
1099
|
+
reload: twitchSetupPlugin.reload,
|
|
1097
1100
|
capabilities: { chatTypes: ["group"] },
|
|
1098
1101
|
messaging: {
|
|
1099
1102
|
normalizeTarget: normalizeTwitchMessagingTarget,
|
|
@@ -1129,7 +1132,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1129
1132
|
account,
|
|
1130
1133
|
configured: isAccountConfigured(account, account.accessToken)
|
|
1131
1134
|
}) : {
|
|
1132
|
-
accountId: DEFAULT_ACCOUNT_ID,
|
|
1135
|
+
accountId: DEFAULT_ACCOUNT_ID$1,
|
|
1133
1136
|
enabled: false,
|
|
1134
1137
|
configured: false
|
|
1135
1138
|
}
|
|
@@ -1150,7 +1153,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1150
1153
|
});
|
|
1151
1154
|
} },
|
|
1152
1155
|
status: createComputedAccountStatusAdapter({
|
|
1153
|
-
defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID),
|
|
1156
|
+
defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID$1),
|
|
1154
1157
|
buildChannelSummary: ({ snapshot }) => buildPassiveProbedChannelStatusSummary(snapshot),
|
|
1155
1158
|
probeAccount: async ({ account, timeoutMs }) => await probeTwitch(account, timeoutMs),
|
|
1156
1159
|
collectStatusIssues: collectTwitchStatusIssues,
|
|
@@ -1185,7 +1188,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1185
1188
|
await runPassiveAccountLifecycle({
|
|
1186
1189
|
abortSignal: ctx.abortSignal,
|
|
1187
1190
|
start: async () => {
|
|
1188
|
-
const { monitorTwitchProvider } = await import("./monitor-
|
|
1191
|
+
const { monitorTwitchProvider } = await import("./monitor-BTccCPPI.js");
|
|
1189
1192
|
return monitorTwitchProvider({
|
|
1190
1193
|
account,
|
|
1191
1194
|
accountId,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as twitchSetupPlugin } from "./setup-surface-fSAA11EJ.js";
|
|
2
2
|
export { twitchSetupPlugin };
|
|
@@ -504,10 +504,11 @@ const twitchSetupWizard = {
|
|
|
504
504
|
const twitchSetupPlugin = {
|
|
505
505
|
id: channel,
|
|
506
506
|
meta: getChatChannelMeta(channel),
|
|
507
|
+
reload: { configPrefixes: ["channels.twitch"] },
|
|
507
508
|
capabilities: { chatTypes: ["group"] },
|
|
508
509
|
config: twitchConfigAdapter,
|
|
509
510
|
setupContract: twitchSetupContract,
|
|
510
511
|
setupWizard: twitchSetupWizard
|
|
511
512
|
};
|
|
512
513
|
//#endregion
|
|
513
|
-
export {
|
|
514
|
+
export { resolveTwitchAccountContext as a, isAccountConfigured as c, normalizeTwitchChannel as d, resolveTwitchToken as f, resolveDefaultTwitchAccountId as i, missingTargetError as l, DEFAULT_ACCOUNT_ID$1 as n, resolveTwitchSnapshotAccountId as o, getAccountConfig as r, twitchConfigAdapter as s, twitchSetupPlugin as t, normalizeToken as u };
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/twitch",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.3",
|
|
4
4
|
"description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"minHostVersion": ">=2026.4.10"
|
|
31
31
|
},
|
|
32
32
|
"compat": {
|
|
33
|
-
"pluginApi": ">=2026.9.
|
|
33
|
+
"pluginApi": ">=2026.9.3"
|
|
34
34
|
},
|
|
35
35
|
"build": {
|
|
36
|
-
"openclawVersion": "2026.9.
|
|
36
|
+
"openclawVersion": "2026.9.3"
|
|
37
37
|
},
|
|
38
38
|
"channel": {
|
|
39
39
|
"id": "twitch",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"README.md"
|
|
72
72
|
],
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"openclaw": ">=2026.9.
|
|
74
|
+
"openclaw": ">=2026.9.3"
|
|
75
75
|
},
|
|
76
76
|
"peerDependenciesMeta": {
|
|
77
77
|
"openclaw": {
|