@okostream/mcp 0.11.0 → 0.11.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/onboarding.js +8 -3
- package/dist/server.js +3 -3
- package/dist/tools/account.js +77 -0
- package/dist/tools/audit.js +44 -0
- package/dist/tools/chat.js +206 -0
- package/dist/tools/context.js +40 -0
- package/dist/tools/eventAccess.js +65 -0
- package/dist/tools/eventCreate.js +37 -0
- package/dist/tools/events.js +437 -0
- package/dist/tools/formatting.js +177 -0
- package/dist/tools/imagePipeline.js +541 -0
- package/dist/tools/images.js +205 -0
- package/dist/tools/instrumentation.js +40 -0
- package/dist/tools/leads.js +85 -0
- package/dist/tools/lifecycle.js +161 -0
- package/dist/tools/live.js +190 -0
- package/dist/tools/notifications.js +88 -0
- package/dist/tools/schemas.js +296 -0
- package/dist/tools/sessions.js +298 -0
- package/dist/tools/setupValidation.js +137 -0
- package/dist/tools/telegram.js +279 -0
- package/dist/tools/workspaceAccess.js +55 -0
- package/dist/tools/workspaces.js +292 -0
- package/dist/tools.js +36 -3489
- package/dist/version.js +1 -1
- package/dist/videoUrl.js +8 -4
- package/package.json +2 -1
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generateMcpVersion.mjs from mcp/package.json. Do not edit.
|
|
2
|
-
export const OKO_MCP_VERSION = "0.11.
|
|
2
|
+
export const OKO_MCP_VERSION = "0.11.2";
|
package/dist/videoUrl.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// Домен, которому Twitch разрешает встраивать плеер. Это НЕ ссылка на нашу
|
|
2
|
+
// страницу — параметр встраивания, поэтому он отдельная константа, а не
|
|
3
|
+
// производная от APP_ORIGIN: сменится одно, второе останется прежним.
|
|
4
|
+
const TWITCH_PARENT = "okostream.app";
|
|
1
5
|
export function extractIframeSrc(input) {
|
|
2
6
|
const trimmed = input.trim();
|
|
3
7
|
if (!trimmed.startsWith("<iframe"))
|
|
@@ -94,17 +98,17 @@ function extractTwitchEmbed(url) {
|
|
|
94
98
|
const channel = parsed.searchParams.get("channel");
|
|
95
99
|
const video = parsed.searchParams.get("video");
|
|
96
100
|
if (channel)
|
|
97
|
-
return `https://player.twitch.tv/?channel=${channel}&parent
|
|
101
|
+
return `https://player.twitch.tv/?channel=${channel}&parent=${TWITCH_PARENT}`;
|
|
98
102
|
if (video)
|
|
99
|
-
return `https://player.twitch.tv/?video=${video}&parent
|
|
103
|
+
return `https://player.twitch.tv/?video=${video}&parent=${TWITCH_PARENT}`;
|
|
100
104
|
}
|
|
101
105
|
if (host === "twitch.tv") {
|
|
102
106
|
const vodMatch = parsed.pathname.match(/\/videos\/(\d+)/);
|
|
103
107
|
if (vodMatch?.[1])
|
|
104
|
-
return `https://player.twitch.tv/?video=v${vodMatch[1]}&parent
|
|
108
|
+
return `https://player.twitch.tv/?video=v${vodMatch[1]}&parent=${TWITCH_PARENT}`;
|
|
105
109
|
const channelMatch = parsed.pathname.match(/^\/([a-zA-Z0-9_]+)$/);
|
|
106
110
|
if (channelMatch?.[1])
|
|
107
|
-
return `https://player.twitch.tv/?channel=${channelMatch[1]}&parent
|
|
111
|
+
return `https://player.twitch.tv/?channel=${channelMatch[1]}&parent=${TWITCH_PARENT}`;
|
|
108
112
|
}
|
|
109
113
|
return null;
|
|
110
114
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okostream/mcp",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Control OKO Stream webinars from Claude, Codex, and other MCP clients.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"prebuild": "node ../scripts/generateMcpVersion.mjs && node ../scripts/generateMcpContract.mjs --check",
|
|
35
35
|
"build": "tsc && node -e \"require('node:fs').chmodSync('dist/server.js', 0o755)\"",
|
|
36
36
|
"test": "npm run build && node --test test/*.test.mjs",
|
|
37
|
+
"test:tools": "npm run build && node --test test/tools-logic.test.mjs",
|
|
37
38
|
"smoke:tarball": "node test/tarball-smoke.mjs",
|
|
38
39
|
"eval:contract": "npm run build && node eval/contract-eval.mjs",
|
|
39
40
|
"eval:model": "npm run build && node eval/model-eval.mjs",
|