@openclaw/twitch 2026.9.3 → 2026.9.4
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-BTccCPPI.js → monitor-BvpPvWYO.js} +2 -2
- package/dist/{plugin-DpUZvxJa.js → plugin-BDosyZhO.js} +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-fSAA11EJ.js → setup-surface-D_5uHrDU.js} +10 -15
- package/openclaw.plugin.json +3 -0
- 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-BDosyZhO.js";
|
|
2
2
|
export { twitchPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-
|
|
2
|
-
import { d as normalizeTwitchChannel } from "./setup-surface-
|
|
1
|
+
import { n as sendMessageTwitchInternal, r as getOrCreateClientManager } from "./plugin-BDosyZhO.js";
|
|
2
|
+
import { d as normalizeTwitchChannel } from "./setup-surface-D_5uHrDU.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 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-
|
|
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-D_5uHrDU.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";
|
|
@@ -1188,7 +1188,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1188
1188
|
await runPassiveAccountLifecycle({
|
|
1189
1189
|
abortSignal: ctx.abortSignal,
|
|
1190
1190
|
start: async () => {
|
|
1191
|
-
const { monitorTwitchProvider } = await import("./monitor-
|
|
1191
|
+
const { monitorTwitchProvider } = await import("./monitor-BvpPvWYO.js");
|
|
1192
1192
|
return monitorTwitchProvider({
|
|
1193
1193
|
account,
|
|
1194
1194
|
accountId,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as twitchSetupPlugin } from "./setup-surface-
|
|
1
|
+
import { t as twitchSetupPlugin } from "./setup-surface-D_5uHrDU.js";
|
|
2
2
|
export { twitchSetupPlugin };
|
|
@@ -5,7 +5,7 @@ import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
|
5
5
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
6
6
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
7
7
|
import { getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
8
|
-
import { createSetupTranslator, formatDocsLink, normalizeAccountId as normalizeAccountId$1, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
8
|
+
import { createSetupTranslator, formatDocsLink, normalizeAccountId as normalizeAccountId$1, patchTopLevelChannelConfigSection, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
9
9
|
//#region extensions/twitch/src/token.ts
|
|
10
10
|
/**
|
|
11
11
|
* Twitch access token resolution with environment variable support.
|
|
@@ -250,20 +250,15 @@ function setTwitchAccount(cfg, account, accountId = resolveSetupAccountId(cfg))
|
|
|
250
250
|
expiresIn: account.expiresIn ?? existing?.expiresIn,
|
|
251
251
|
obtainmentTimestamp: account.obtainmentTimestamp ?? existing?.obtainmentTimestamp
|
|
252
252
|
};
|
|
253
|
-
return {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
[resolvedAccountId]: merged
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
};
|
|
253
|
+
return patchTopLevelChannelConfigSection({
|
|
254
|
+
cfg,
|
|
255
|
+
channel,
|
|
256
|
+
enabled: true,
|
|
257
|
+
patch: { accounts: {
|
|
258
|
+
...cfg.channels?.twitch?.accounts,
|
|
259
|
+
[resolvedAccountId]: merged
|
|
260
|
+
} }
|
|
261
|
+
});
|
|
267
262
|
}
|
|
268
263
|
async function noteTwitchSetupHelp(prompter) {
|
|
269
264
|
await prompter.note([
|
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.4",
|
|
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.4"
|
|
34
34
|
},
|
|
35
35
|
"build": {
|
|
36
|
-
"openclawVersion": "2026.9.
|
|
36
|
+
"openclawVersion": "2026.9.4"
|
|
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.4"
|
|
75
75
|
},
|
|
76
76
|
"peerDependenciesMeta": {
|
|
77
77
|
"openclaw": {
|