@openclaw/twitch 2026.5.10-beta.2 → 2026.5.10-beta.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 CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./plugin-BLMSYnzs.js";
1
+ import { t as twitchPlugin } from "./plugin-CxTwdtw4.js";
2
2
  import { n as setTwitchRuntime } from "./runtime-QZ5I3GlI.js";
3
3
  export { setTwitchRuntime, twitchPlugin };
@@ -1,2 +1,2 @@
1
- import { t as twitchPlugin } from "./plugin-BLMSYnzs.js";
1
+ import { t as twitchPlugin } from "./plugin-CxTwdtw4.js";
2
2
  export { twitchPlugin };
@@ -1,4 +1,4 @@
1
- import { i as normalizeToken, o as resolveTwitchToken } from "./twitch-D0A1Bjui.js";
1
+ import { i as normalizeToken, o as resolveTwitchToken } from "./twitch-BsSKTyqW.js";
2
2
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
3
3
  import { RefreshingAuthProvider, StaticAuthProvider } from "@twurple/auth";
4
4
  import { ChatClient, LogLevel } from "@twurple/chat";
@@ -1,7 +1,7 @@
1
- import { i as getOrCreateClientManager, n as stripMarkdownForTwitch } from "./markdown-CLNO0I2v.js";
1
+ import { i as getOrCreateClientManager, n as stripMarkdownForTwitch } from "./markdown-BbzAc3z0.js";
2
2
  import { t as getTwitchRuntime } from "./runtime-QZ5I3GlI.js";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
- import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
4
+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { createChannelIngressResolver, defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
6
6
  //#region extensions/twitch/src/access-control.ts
7
7
  const twitchUserIdentity = defineStableChannelIngressIdentity({
@@ -1,6 +1,6 @@
1
- import { a as normalizeTwitchChannel, i as normalizeToken, n as isAccountConfigured, o as resolveTwitchToken, r as missingTargetError, t as generateMessageId } from "./twitch-D0A1Bjui.js";
2
- import { a as getAccountConfig, c as resolveTwitchAccountContext, i as DEFAULT_ACCOUNT_ID, l as resolveTwitchSnapshotAccountId, o as listAccountIds, r as twitchSetupWizard, s as resolveDefaultTwitchAccountId, t as twitchSetupAdapter } from "./setup-surface-CDhELE-4.js";
3
- import { a as removeClientManager, n as stripMarkdownForTwitch, r as getClientManager, t as chunkTextForTwitch } from "./markdown-CLNO0I2v.js";
1
+ import { a as normalizeTwitchChannel, i as normalizeToken, n as isAccountConfigured, o as resolveTwitchToken, r as missingTargetError, t as generateMessageId } from "./twitch-BsSKTyqW.js";
2
+ import { a as getAccountConfig, c as resolveTwitchAccountContext, i as DEFAULT_ACCOUNT_ID, l as resolveTwitchSnapshotAccountId, o as listAccountIds, r as twitchSetupWizard, s as resolveDefaultTwitchAccountId, t as twitchSetupAdapter } from "./setup-surface-C1-HFfeJ.js";
3
+ import { a as removeClientManager, n as stripMarkdownForTwitch, r as getClientManager, t as chunkTextForTwitch } from "./markdown-BbzAc3z0.js";
4
4
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
5
5
  import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
6
6
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
@@ -8,12 +8,12 @@ import { createLoggedPairingApprovalNotifier, createPairingPrefixStripper } from
8
8
  import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
9
9
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
10
10
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
11
- import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
11
+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
12
12
  import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-message";
13
13
  import { StaticAuthProvider } from "@twurple/auth";
14
14
  import { ChatClient } from "@twurple/chat";
15
15
  import { MarkdownConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
16
- import { z } from "openclaw/plugin-sdk/zod";
16
+ import { z } from "zod";
17
17
  import { ApiClient } from "@twurple/api";
18
18
  //#region extensions/twitch/src/send.ts
19
19
  /**
@@ -653,7 +653,7 @@ function createLogger(logger) {
653
653
  * @param logger - Optional logger
654
654
  * @returns Promise resolving to array of ChannelResolveResult
655
655
  */
656
- async function resolveTwitchTargets(inputs, account, kind, logger) {
656
+ async function resolveTwitchTargets(inputs, account, _kind, logger) {
657
657
  const log = createLogger(logger);
658
658
  if (!account.clientId || !account.accessToken) {
659
659
  log.error("Missing Twitch client ID or accessToken");
@@ -954,7 +954,7 @@ const twitchPlugin = createChatChannelPlugin({
954
954
  lastError: null
955
955
  });
956
956
  ctx.log?.info(`Starting Twitch connection for ${account.username}`);
957
- const { monitorTwitchProvider } = await import("./monitor-DvbgvvL4.js");
957
+ const { monitorTwitchProvider } = await import("./monitor-BQ5mdzvw.js");
958
958
  await monitorTwitchProvider({
959
959
  account,
960
960
  accountId,
@@ -1,2 +1,2 @@
1
- import { n as twitchSetupPlugin } from "./setup-surface-CDhELE-4.js";
1
+ import { n as twitchSetupPlugin } from "./setup-surface-C1-HFfeJ.js";
2
2
  export { twitchSetupPlugin };
@@ -1,4 +1,4 @@
1
- import { n as isAccountConfigured, o as resolveTwitchToken } from "./twitch-D0A1Bjui.js";
1
+ import { n as isAccountConfigured, o as resolveTwitchToken } from "./twitch-BsSKTyqW.js";
2
2
  import { listCombinedAccountIds, normalizeAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution";
3
3
  import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import { getChatChannelMeta } from "openclaw/plugin-sdk/core";
@@ -218,7 +218,7 @@ async function configureWithEnvToken(cfg, prompter, account, envToken, forceAllo
218
218
  const cfgWithAccount = setTwitchAccount(cfg, {
219
219
  username: await promptUsername(prompter, account),
220
220
  clientId: await promptClientId(prompter, account),
221
- accessToken: "",
221
+ accessToken: envToken,
222
222
  enabled: true
223
223
  }, resolvedAccountId);
224
224
  if (forceAllowFrom && dmPolicy.promptAllowFrom) return { cfg: await dmPolicy.promptAllowFrom({
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution";
2
2
  import { randomUUID } from "node:crypto";
3
- import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
3
+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  //#region extensions/twitch/src/token.ts
5
5
  /**
6
6
  * Twitch access token resolution with environment variable support.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.5.10-beta.2",
3
+ "version": "2026.5.10-beta.3",
4
4
  "description": "OpenClaw Twitch channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,8 @@
10
10
  "dependencies": {
11
11
  "@twurple/api": "^8.1.3",
12
12
  "@twurple/auth": "^8.1.3",
13
- "@twurple/chat": "^8.1.3"
13
+ "@twurple/chat": "^8.1.3",
14
+ "zod": "^4.4.3"
14
15
  },
15
16
  "devDependencies": {
16
17
  "@openclaw/plugin-sdk": "workspace:*"
@@ -26,10 +27,10 @@
26
27
  "minHostVersion": ">=2026.4.10"
27
28
  },
28
29
  "compat": {
29
- "pluginApi": ">=2026.5.10-beta.2"
30
+ "pluginApi": ">=2026.5.10-beta.3"
30
31
  },
31
32
  "build": {
32
- "openclawVersion": "2026.5.10-beta.2"
33
+ "openclawVersion": "2026.5.10-beta.3"
33
34
  },
34
35
  "channel": {
35
36
  "id": "twitch",
@@ -56,7 +57,7 @@
56
57
  "README.md"
57
58
  ],
58
59
  "peerDependencies": {
59
- "openclaw": ">=2026.5.10-beta.2"
60
+ "openclaw": ">=2026.5.10-beta.3"
60
61
  },
61
62
  "peerDependenciesMeta": {
62
63
  "openclaw": {