@openclaw/twitch 2026.7.2-beta.1 → 2026.7.2-beta.2

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-DG2hXX7Z.js";
1
+ import { t as twitchPlugin } from "./plugin-DKq9eX97.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-DG2hXX7Z.js";
1
+ import { t as twitchPlugin } from "./plugin-DKq9eX97.js";
2
2
  export { twitchPlugin };
@@ -1,4 +1,4 @@
1
- import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-DG2hXX7Z.js";
1
+ import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-DKq9eX97.js";
2
2
  import { t as getTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,4 +1,4 @@
1
- import { a as getAccountConfig, c as resolveTwitchAccountContext, d as isAccountConfigured, f as missingTargetError, h as resolveTwitchToken, i as DEFAULT_ACCOUNT_ID, l as resolveTwitchSnapshotAccountId, m as normalizeTwitchChannel, o as listAccountIds, p as normalizeToken, r as twitchSetupWizard, s as resolveDefaultTwitchAccountId, t as twitchSetupAdapter, u as generateMessageId } from "./setup-surface-CSxU-v0y.js";
1
+ import { a as getAccountConfig, c as resolveTwitchAccountContext, d as isAccountConfigured, f as missingTargetError, h as resolveTwitchToken, i as DEFAULT_ACCOUNT_ID, l as resolveTwitchSnapshotAccountId, m as normalizeTwitchChannel, o as listAccountIds, p as normalizeToken, r as twitchSetupWizard, s as resolveDefaultTwitchAccountId, t as twitchSetupAdapter, u as generateMessageId } from "./setup-surface-CxAa0pLj.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";
@@ -374,7 +374,7 @@ async function removeClientManager(accountId) {
374
374
  * @returns Plain text with markdown removed
375
375
  */
376
376
  function stripMarkdownForTwitch(markdown) {
377
- return markdown.replace(/!\[[^\]]*]\([^)]+\)/g, "").replace(/\[([^\]]+)]\([^)]+\)/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/__([^_]+)__/g, "$1").replace(/\*([^*]+)\*/g, "$1").replace(/_([^_]+)_/g, "$1").replace(/~~([^~]+)~~/g, "$1").replace(/```[\s\S]*?```/g, (block) => block.replace(/```[^\n]*\n?/g, "").replace(/```/g, "")).replace(/`([^`]+)`/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(/^\s*[-*+]\s+/gm, "").replace(/^\s*\d+\.\s+/gm, "").replace(/\r/g, "").replace(/[ \t]+\n/g, "\n").replace(/\n/g, " ").replace(/[ \t]{2,}/g, " ").trim();
377
+ return markdown.replace(/!\[[^\]]*]\([^)]+\)/g, "").replace(/\[([^\]]+)]\([^)]+\)/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/__([^_]+)__/g, "$1").replace(/\*([^*]+)\*/g, "$1").replace(/(?<![\p{L}\p{N}\p{M}])_(?!_)([^_]+)_(?![\p{L}\p{N}\p{M}])/gu, "$1").replace(/~~([^~]+)~~/g, "$1").replace(/```[\s\S]*?```/g, (block) => block.replace(/```[^\n]*\n?/g, "").replace(/```/g, "")).replace(/`([^`]+)`/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(/^\s*[-*+]\s+/gm, "").replace(/^\s*\d+\.\s+/gm, "").replace(/\r/g, "").replace(/[ \t]+\n/g, "\n").replace(/\n/g, " ").replace(/[ \t]{2,}/g, " ").trim();
378
378
  }
379
379
  /**
380
380
  * Simple word-boundary chunker for Twitch (500 char limit).
@@ -1403,7 +1403,7 @@ const twitchPlugin = createChatChannelPlugin({
1403
1403
  await runStoppablePassiveMonitor({
1404
1404
  abortSignal: ctx.abortSignal,
1405
1405
  start: async () => {
1406
- const { monitorTwitchProvider } = await import("./monitor-BL82UZIL.js");
1406
+ const { monitorTwitchProvider } = await import("./monitor-MwCp9bY0.js");
1407
1407
  return monitorTwitchProvider({
1408
1408
  account,
1409
1409
  accountId,
@@ -1,2 +1,2 @@
1
- import { n as twitchSetupPlugin } from "./setup-surface-CSxU-v0y.js";
1
+ import { n as twitchSetupPlugin } from "./setup-surface-CxAa0pLj.js";
2
2
  export { twitchSetupPlugin };
@@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto";
3
3
  import { normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
5
5
  import { getChatChannelMeta } from "openclaw/plugin-sdk/core";
6
- import { createSetupTranslator, formatDocsLink, normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/setup";
6
+ import { createSetupTranslator, formatDocsLink, normalizeAccountId as normalizeAccountId$1, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
7
7
  //#region extensions/twitch/src/token.ts
8
8
  /**
9
9
  * Twitch access token resolution with environment variable support.
@@ -480,19 +480,7 @@ const twitchSetupWizard = {
480
480
  },
481
481
  dmPolicy: twitchDmPolicy,
482
482
  groupAccess: twitchGroupAccess,
483
- disable: (cfg) => {
484
- const twitch = cfg.channels?.twitch;
485
- return {
486
- ...cfg,
487
- channels: {
488
- ...cfg.channels,
489
- twitch: {
490
- ...twitch,
491
- enabled: false
492
- }
493
- }
494
- };
495
- }
483
+ disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
496
484
  };
497
485
  const twitchSetupPlugin = {
498
486
  id: channel,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/twitch",
9
- "version": "2026.7.2-beta.1",
9
+ "version": "2026.7.2-beta.2",
10
10
  "dependencies": {
11
11
  "@twurple/api-call": "8.1.4",
12
12
  "@twurple/auth": "8.1.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/twitch",
3
- "version": "2026.7.2-beta.1",
3
+ "version": "2026.7.2-beta.2",
4
4
  "description": "OpenClaw Twitch channel plugin for chat and moderation workflows.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "minHostVersion": ">=2026.4.10"
25
25
  },
26
26
  "compat": {
27
- "pluginApi": ">=2026.7.2-beta.1"
27
+ "pluginApi": ">=2026.7.2-beta.2"
28
28
  },
29
29
  "build": {
30
- "openclawVersion": "2026.7.2-beta.1"
30
+ "openclawVersion": "2026.7.2-beta.2"
31
31
  },
32
32
  "channel": {
33
33
  "id": "twitch",
@@ -55,7 +55,7 @@
55
55
  "README.md"
56
56
  ],
57
57
  "peerDependencies": {
58
- "openclaw": ">=2026.7.2-beta.1"
58
+ "openclaw": ">=2026.7.2-beta.2"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "openclaw": {