@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 CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./plugin-DpUZvxJa.js";
1
+ import { t as twitchPlugin } from "./plugin-BDosyZhO.js";
2
2
  import { n as setTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  export { setTwitchRuntime, twitchPlugin };
@@ -1,2 +1,2 @@
1
- import { t as twitchPlugin } from "./plugin-DpUZvxJa.js";
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-DpUZvxJa.js";
2
- import { d as normalizeTwitchChannel } from "./setup-surface-fSAA11EJ.js";
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-fSAA11EJ.js";
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-BTccCPPI.js");
1191
+ const { monitorTwitchProvider } = await import("./monitor-BvpPvWYO.js");
1192
1192
  return monitorTwitchProvider({
1193
1193
  account,
1194
1194
  accountId,
@@ -1,2 +1,2 @@
1
- import { t as twitchSetupPlugin } from "./setup-surface-fSAA11EJ.js";
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
- ...cfg,
255
- channels: {
256
- ...cfg.channels,
257
- twitch: {
258
- ...cfg.channels?.twitch,
259
- enabled: true,
260
- accounts: {
261
- ...(cfg.channels?.twitch)?.accounts,
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([
@@ -1,5 +1,8 @@
1
1
  {
2
2
  "id": "twitch",
3
+ "categories": [
4
+ "channels"
5
+ ],
3
6
  "name": "Twitch",
4
7
  "description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
5
8
  "activation": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.9.3",
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.3"
33
+ "pluginApi": ">=2026.9.4"
34
34
  },
35
35
  "build": {
36
- "openclawVersion": "2026.9.3"
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.3"
74
+ "openclaw": ">=2026.9.4"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
77
  "openclaw": {