mcp-scraper 0.21.5 → 0.22.0

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.
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var PACKAGE_VERSION = "0.22.0";
3
+
4
+ export {
5
+ PACKAGE_VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-Q6GSQEE4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.22.0'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
@@ -35,7 +35,7 @@ import {
35
35
  sanitizeAttempts,
36
36
  sanitizeHarvestResult,
37
37
  transcribeMediaUrl
38
- } from "./chunk-QO7HX67W.js";
38
+ } from "./chunk-3SQTNNGK.js";
39
39
  import {
40
40
  auditImages,
41
41
  buildLinkReport,
@@ -76,7 +76,7 @@ import {
76
76
  RawMapsOverviewSchema,
77
77
  RawMapsReviewStatsSchema
78
78
  } from "./chunk-XGIPATLV.js";
79
- import "./chunk-YLX3SKJN.js";
79
+ import "./chunk-Q6GSQEE4.js";
80
80
  import {
81
81
  completeExtractJob,
82
82
  countSuccessfulPages,
@@ -23359,6 +23359,21 @@ function providerConfigKeyFrom(value) {
23359
23359
  const key = value.trim();
23360
23360
  return key && key.length <= 200 ? key : null;
23361
23361
  }
23362
+ function calendarAttendeesFrom(value) {
23363
+ if (!Array.isArray(value) || value.length > 100) return null;
23364
+ const attendees = [];
23365
+ for (const item of value) {
23366
+ if (!item || typeof item !== "object" || Array.isArray(item)) return null;
23367
+ const attendee = item;
23368
+ if (typeof attendee.email !== "string" || !attendee.email.trim()) return null;
23369
+ if (attendee.displayName !== void 0 && typeof attendee.displayName !== "string") return null;
23370
+ attendees.push({
23371
+ email: attendee.email.trim(),
23372
+ ...typeof attendee.displayName === "string" && attendee.displayName.trim() ? { displayName: attendee.displayName.trim() } : {}
23373
+ });
23374
+ }
23375
+ return attendees;
23376
+ }
23362
23377
  function bindingsForSchedule(bindings, scheduleActionId) {
23363
23378
  return bindings.filter((binding) => binding.scheduleActionId === scheduleActionId);
23364
23379
  }
@@ -23575,18 +23590,20 @@ app.post("/schedule-connections/actions/google-calendar/create-event", auth2, re
23575
23590
  const user = c.get("user");
23576
23591
  const body = await c.req.json().catch(() => ({}));
23577
23592
  const connectionId = providerConfigKeyFrom(body.connectionId);
23578
- if (!connectionId || typeof body.summary !== "string" || typeof body.startDateTime !== "string" || typeof body.endDateTime !== "string") {
23579
- return c.json({ ok: false, error: "connectionId, summary, startDateTime, and endDateTime are required." }, 400);
23593
+ const attendees = calendarAttendeesFrom(body.attendees);
23594
+ if (!connectionId || typeof body.summary !== "string" || typeof body.description !== "string" || typeof body.startDateTime !== "string" || typeof body.endDateTime !== "string" || !attendees) {
23595
+ return c.json({ ok: false, error: "connectionId, summary, description, startDateTime, endDateTime, and attendees are required." }, 400);
23580
23596
  }
23581
23597
  const timeZone = typeof body.timeZone === "string" ? body.timeZone : void 0;
23582
23598
  try {
23583
23599
  const result = await callScheduleConnectionAction(user.email, connectionId, {
23584
23600
  calendarId: typeof body.calendarId === "string" ? body.calendarId : "primary",
23585
23601
  summary: body.summary,
23586
- description: typeof body.description === "string" ? body.description : void 0,
23602
+ description: body.description,
23587
23603
  location: typeof body.location === "string" ? body.location : void 0,
23588
23604
  start: { dateTime: body.startDateTime, timeZone },
23589
- end: { dateTime: body.endDateTime, timeZone }
23605
+ end: { dateTime: body.endDateTime, timeZone },
23606
+ attendees
23590
23607
  });
23591
23608
  return c.json({ ok: true, result });
23592
23609
  } catch (err) {
@@ -23597,8 +23614,8 @@ app.post("/schedule-connections/actions/zoom/create-meeting", auth2, requireInte
23597
23614
  const user = c.get("user");
23598
23615
  const body = await c.req.json().catch(() => ({}));
23599
23616
  const connectionId = providerConfigKeyFrom(body.connectionId);
23600
- if (!connectionId || typeof body.topic !== "string" || typeof body.startDateTime !== "string") {
23601
- return c.json({ ok: false, error: "connectionId, topic, and startDateTime are required." }, 400);
23617
+ if (!connectionId || typeof body.topic !== "string" || typeof body.startDateTime !== "string" || typeof body.agenda !== "string") {
23618
+ return c.json({ ok: false, error: "connectionId, topic, startDateTime, and agenda are required." }, 400);
23602
23619
  }
23603
23620
  try {
23604
23621
  const result = await callScheduleConnectionAction(user.email, connectionId, {
@@ -23606,7 +23623,7 @@ app.post("/schedule-connections/actions/zoom/create-meeting", auth2, requireInte
23606
23623
  startDateTime: body.startDateTime,
23607
23624
  durationMinutes: typeof body.durationMinutes === "number" ? body.durationMinutes : 30,
23608
23625
  timezone: typeof body.timezone === "string" ? body.timezone : void 0,
23609
- agenda: typeof body.agenda === "string" ? body.agenda : void 0
23626
+ agenda: body.agenda
23610
23627
  });
23611
23628
  return c.json({ ok: true, result });
23612
23629
  } catch (err) {
@@ -25025,4 +25042,4 @@ app.get("/blog/:slug/", (c) => {
25025
25042
  export {
25026
25043
  app
25027
25044
  };
25028
- //# sourceMappingURL=server-POMKHEXJ.js.map
25045
+ //# sourceMappingURL=server-K6C7W7ED.js.map