@okostream/mcp 0.11.0 → 0.11.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/tools.js CHANGED
@@ -1028,7 +1028,7 @@ function validateEventSetup(eventId, event) {
1028
1028
  }
1029
1029
  const telegram = asRecord(event.telegram);
1030
1030
  const telegramChannels = Array.isArray(telegram.channelIds) ? telegram.channelIds : [];
1031
- if (telegram.enabled === true && telegramChannels.length === 0 && typeof telegram.channelId !== "number") {
1031
+ if (telegram.enabled === true && telegramChannels.length === 0) {
1032
1032
  add(warnings, "telegram_channel_missing", "telegram.channelIds", "Telegram is enabled but no channel is configured.");
1033
1033
  }
1034
1034
  const nextActions = [
@@ -1049,19 +1049,6 @@ function validateEventSetup(eventId, event) {
1049
1049
  links: eventLinks(eventId),
1050
1050
  };
1051
1051
  }
1052
- function initialEventAccess(uid) {
1053
- return {
1054
- accessibleBy: [uid],
1055
- editors: [uid],
1056
- deleters: [uid],
1057
- liveControllers: [uid],
1058
- chatModerators: [uid],
1059
- sessionManagers: [uid],
1060
- analyticsViewers: [uid],
1061
- reportDownloaders: [uid],
1062
- notificationSenders: [uid],
1063
- };
1064
- }
1065
1052
  async function addEventWithRtdbMirror(eventData) {
1066
1053
  const eventRef = await addDoc(collection(firestore, "events"), eventData);
1067
1054
  try {
@@ -1799,10 +1786,11 @@ export function registerTools(server) {
1799
1786
  const workspaceId = args.workspaceId ?? uid;
1800
1787
  await assertCanCreateInWorkspace(uid, workspaceId);
1801
1788
  const video = normalizeVideo(args.videoUrl);
1789
+ // Девять массивов доступа не пишутся (31.08): grants строит CF7 из
1790
+ // владельца и shares рабочего пространства.
1802
1791
  const docRef = await addEventWithRtdbMirror({
1803
1792
  ownerId: uid,
1804
1793
  workspaceId,
1805
- ...initialEventAccess(uid),
1806
1794
  createdAt: serverTimestamp(),
1807
1795
  title: args.title.trim(),
1808
1796
  pinned: false,
@@ -1971,7 +1959,6 @@ export function registerTools(server) {
1971
1959
  if (args.telegramChannelIds !== undefined) {
1972
1960
  patch["telegram.enabled"] = args.telegramChannelIds.length > 0;
1973
1961
  patch["telegram.channelIds"] = args.telegramChannelIds;
1974
- patch["telegram.channelId"] = args.telegramChannelIds[0] ?? null;
1975
1962
  }
1976
1963
  await updateDoc(doc(firestore, "events", args.eventId), patch);
1977
1964
  return textResult({ id: args.eventId, updated: Object.keys(patch) });
@@ -2361,7 +2348,6 @@ export function registerTools(server) {
2361
2348
  const newRef = await addEventWithRtdbMirror({
2362
2349
  ownerId: uid,
2363
2350
  workspaceId,
2364
- ...initialEventAccess(uid),
2365
2351
  createdAt: serverTimestamp(),
2366
2352
  title: safeString(source.title, "Untitled event"),
2367
2353
  pinned: false,
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.0";
2
+ export const OKO_MCP_VERSION = "0.11.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okostream/mcp",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Control OKO Stream webinars from Claude, Codex, and other MCP clients.",
5
5
  "license": "UNLICENSED",
6
6
  "author": {