@openclaw/twitch 2026.6.11-beta.2 → 2026.7.1-beta.1
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,2 +1,2 @@
|
|
|
1
|
-
import { t as twitchPlugin } from "./plugin-
|
|
1
|
+
import { t as twitchPlugin } from "./plugin-yFCGGYcm.js";
|
|
2
2
|
export { twitchPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-
|
|
1
|
+
import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-yFCGGYcm.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";
|
|
@@ -10,6 +10,7 @@ import { normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "opencla
|
|
|
10
10
|
import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
|
|
11
11
|
import { RefreshingAuthProvider, StaticAuthProvider } from "@twurple/auth";
|
|
12
12
|
import { ChatClient, LogLevel } from "@twurple/chat";
|
|
13
|
+
import { sliceUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
13
14
|
import { MarkdownConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
|
|
14
15
|
import { z } from "zod";
|
|
15
16
|
import { ApiClient } from "@twurple/api";
|
|
@@ -187,7 +188,7 @@ var TwitchClientManager = class {
|
|
|
187
188
|
if (handler) {
|
|
188
189
|
const normalizedChannel = channelName.startsWith("#") ? channelName.slice(1) : channelName;
|
|
189
190
|
const from = `twitch:${msg.userInfo.userName}`;
|
|
190
|
-
const preview = messageText
|
|
191
|
+
const preview = sliceUtf16Safe(messageText, 0, 100).replace(/\n/g, "\\n");
|
|
191
192
|
this.logger.debug?.(`twitch inbound: channel=${normalizedChannel} from=${from} len=${messageText.length} preview="${preview}"`);
|
|
192
193
|
handler({
|
|
193
194
|
username: msg.userInfo.userName,
|
|
@@ -1345,7 +1346,7 @@ const twitchPlugin = createChatChannelPlugin({
|
|
|
1345
1346
|
await runStoppablePassiveMonitor({
|
|
1346
1347
|
abortSignal: ctx.abortSignal,
|
|
1347
1348
|
start: async () => {
|
|
1348
|
-
const { monitorTwitchProvider } = await import("./monitor-
|
|
1349
|
+
const { monitorTwitchProvider } = await import("./monitor-DJiQpKig.js");
|
|
1349
1350
|
return monitorTwitchProvider({
|
|
1350
1351
|
account,
|
|
1351
1352
|
accountId,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/twitch",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.7.1-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/twitch",
|
|
9
|
-
"version": "2026.
|
|
9
|
+
"version": "2026.7.1-beta.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@twurple/api": "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.
|
|
3
|
+
"version": "2026.7.1-beta.1",
|
|
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.
|
|
27
|
+
"pluginApi": ">=2026.7.1-beta.1"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.
|
|
30
|
+
"openclawVersion": "2026.7.1-beta.1"
|
|
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.
|
|
58
|
+
"openclaw": ">=2026.7.1-beta.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"openclaw": {
|