mcp-scraper 0.57.0 → 0.57.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.
@@ -13,7 +13,7 @@ import {
13
13
  registerScheduledResultsMcpTools,
14
14
  registerSerpIntelligenceCaptureTools,
15
15
  resolveDeploymentProfile
16
- } from "../chunk-ULAJAZQF.js";
16
+ } from "../chunk-2KL4MSZP.js";
17
17
  import "../chunk-2K74LVV7.js";
18
18
  import "../chunk-4PNMJUSG.js";
19
19
  import "../chunk-AK2NNIYA.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "../chunk-HU4R6BP2.js";
23
23
  import {
24
24
  PACKAGE_VERSION
25
- } from "../chunk-QQ6ZBYZZ.js";
25
+ } from "../chunk-VTBJVKBE.js";
26
26
  import "../chunk-R6CO77BN.js";
27
27
  import "../chunk-NDIAJIKQ.js";
28
28
  import "../chunk-KSAXVGKC.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-AK2NNIYA.js";
22
22
  import {
23
23
  PACKAGE_VERSION
24
- } from "./chunk-QQ6ZBYZZ.js";
24
+ } from "./chunk-VTBJVKBE.js";
25
25
  import {
26
26
  MC_PER_CREDIT,
27
27
  PAA_BASE_CREDITS,
@@ -15972,4 +15972,4 @@ export {
15972
15972
  ScheduledResultsMcpExecutor,
15973
15973
  registerScheduledResultsMcpTools
15974
15974
  };
15975
- //# sourceMappingURL=chunk-ULAJAZQF.js.map
15975
+ //# sourceMappingURL=chunk-2KL4MSZP.js.map
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var PACKAGE_VERSION = "0.57.1";
3
+
4
+ export {
5
+ PACKAGE_VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-VTBJVKBE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.57.1'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
@@ -169,7 +169,7 @@ import {
169
169
  resolveDeploymentProfile,
170
170
  resolveLocalSourcebookSchemaType,
171
171
  transcribeMediaUrl
172
- } from "./chunk-ULAJAZQF.js";
172
+ } from "./chunk-2KL4MSZP.js";
173
173
  import {
174
174
  auditImageUrls,
175
175
  auditImages,
@@ -225,7 +225,7 @@ import {
225
225
  } from "./chunk-FG6LJGJ7.js";
226
226
  import {
227
227
  PACKAGE_VERSION
228
- } from "./chunk-QQ6ZBYZZ.js";
228
+ } from "./chunk-VTBJVKBE.js";
229
229
  import {
230
230
  abandonExtractSettlement,
231
231
  countSuccessfulPages,
@@ -33091,8 +33091,12 @@ function decodeBase64Image(value) {
33091
33091
  }
33092
33092
  return bytes;
33093
33093
  }
33094
+ function commonsImageBlobStore() {
33095
+ const token6 = process.env.COMMONS_IMAGE_READ_WRITE_TOKEN?.trim() || process.env.COMMONS_IMAGE_BLOB_READ_WRITE_TOKEN?.trim() || process.env.BLOB_READ_WRITE_TOKEN?.trim();
33096
+ return token6 ? new VercelBlobStore(token6) : getBlobStore();
33097
+ }
33094
33098
  function isCommonsHostedImageUrl(url) {
33095
- return /^https:\/\/[^/]*(\.public\.blob\.vercel-storage\.com|blob\.vercel-storage\.com)\//i.test(url) || url.startsWith("file://");
33099
+ return /^https:\/\/[^/]*(\.public\.blob\.vercel-storage\.com|blob\.vercel-storage\.com)\//i.test(url);
33096
33100
  }
33097
33101
  var hostOverride = null;
33098
33102
  async function hostCommonsImage(input) {
@@ -33129,7 +33133,15 @@ async function hostCommonsImage(input) {
33129
33133
  }
33130
33134
  const extension = contentType.split("/")[1] === "jpeg" ? "jpg" : contentType.split("/")[1];
33131
33135
  const storageKey = `commons/images/${digest2.slice(0, 2)}/${digest2}.${extension}`;
33132
- const stored = await getBlobStore().put(storageKey, bytes, contentType);
33136
+ const store = commonsImageBlobStore();
33137
+ if (store.kind !== "vercel-blob") {
33138
+ throw new CommonsImageError(
33139
+ "image_storage_unconfigured",
33140
+ "Commons image hosting needs a Vercel Blob token. Refusing to write a local file path into a public wiki entity.",
33141
+ 422
33142
+ );
33143
+ }
33144
+ const stored = await store.put(storageKey, bytes, contentType);
33133
33145
  const id = `TPW-IMG-${digest2.slice(0, 16).toUpperCase()}`;
33134
33146
  await getDb().execute({
33135
33147
  sql: `
@@ -47436,4 +47448,4 @@ app.get("/blog/:slug/", (c) => {
47436
47448
  export {
47437
47449
  app
47438
47450
  };
47439
- //# sourceMappingURL=server-NBGZJX4P.js.map
47451
+ //# sourceMappingURL=server-DSCKFM7K.js.map