mcp-scraper 0.3.5 → 0.3.6

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.
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  HttpMcpToolExecutor,
4
4
  buildPaaExtractorMcpServer
5
- } from "../chunk-WZT3XKES.js";
5
+ } from "../chunk-ROZEDHAA.js";
6
6
  import "../chunk-M2S27J6Z.js";
7
7
  import "../chunk-LFATOGDF.js";
8
- import "../chunk-GHBU5SGQ.js";
8
+ import "../chunk-IHXHQL53.js";
9
9
 
10
10
  // bin/mcp-stdio-server.ts
11
11
  import { readFileSync } from "fs";
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var PACKAGE_VERSION = "0.3.6";
3
+
4
+ export {
5
+ PACKAGE_VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-IHXHQL53.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.3.6'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-LFATOGDF.js";
8
8
  import {
9
9
  PACKAGE_VERSION
10
- } from "./chunk-GHBU5SGQ.js";
10
+ } from "./chunk-IHXHQL53.js";
11
11
 
12
12
  // src/harvest-timeout.ts
13
13
  var VERCEL_FUNCTION_MAX_MS = 3e5;
@@ -3342,4 +3342,4 @@ export {
3342
3342
  registerPaaExtractorMcpTools,
3343
3343
  HttpMcpToolExecutor
3344
3344
  };
3345
- //# sourceMappingURL=chunk-WZT3XKES.js.map
3345
+ //# sourceMappingURL=chunk-ROZEDHAA.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-DUEW4EOO.js";
16
16
  import {
17
17
  PACKAGE_VERSION
18
- } from "./chunk-GHBU5SGQ.js";
18
+ } from "./chunk-IHXHQL53.js";
19
19
 
20
20
  // src/mcp/browser-agent-mcp-server.ts
21
21
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -1914,4 +1914,4 @@ export {
1914
1914
  buildBrowserAgentMcpServer,
1915
1915
  registerBrowserAgentMcpTools
1916
1916
  };
1917
- //# sourceMappingURL=chunk-CMK5MMEE.js.map
1917
+ //# sourceMappingURL=chunk-TK4D2BZ5.js.map
@@ -99,7 +99,7 @@ import {
99
99
  harvestTimeoutBudget,
100
100
  liveWebToolAnnotations,
101
101
  outputBaseDir
102
- } from "./chunk-WZT3XKES.js";
102
+ } from "./chunk-ROZEDHAA.js";
103
103
  import {
104
104
  CaptchaError,
105
105
  RECAPTCHA_INSTRUCTIONS,
@@ -140,7 +140,7 @@ import {
140
140
  loadImportedBrowserProfile,
141
141
  localBrowserModeEnabled
142
142
  } from "./chunk-DUEW4EOO.js";
143
- import "./chunk-GHBU5SGQ.js";
143
+ import "./chunk-IHXHQL53.js";
144
144
 
145
145
  // src/api/outbound-sanitize.ts
146
146
  var KEY_RENAMES = {
@@ -13560,6 +13560,8 @@ async function listReplayRows(sessionId) {
13560
13560
  // src/services/browser-agent/browser-agent-service.ts
13561
13561
  import Kernel3 from "@onkernel/sdk";
13562
13562
  import { chromium as playwrightChromium } from "playwright";
13563
+ function keepHostedBrowserAlive(_browser) {
13564
+ }
13563
13565
  var DEFAULT_TIMEOUT_SECONDS = 600;
13564
13566
  function client() {
13565
13567
  const apiKey = browserServiceApiKey();
@@ -13662,8 +13664,7 @@ async function goto(cdpWsUrl, url) {
13662
13664
  await page.goto(url, { waitUntil: "domcontentloaded", timeout: 45e3 });
13663
13665
  return { url: page.url(), title: await page.title() };
13664
13666
  } finally {
13665
- await browser.close().catch(() => {
13666
- });
13667
+ keepHostedBrowserAlive(browser);
13667
13668
  }
13668
13669
  }
13669
13670
  async function captureFanout(cdpWsUrl, input) {
@@ -13673,8 +13674,7 @@ async function captureFanout(cdpWsUrl, input) {
13673
13674
  const page = context.pages()[0] ?? await context.newPage();
13674
13675
  return await runFanoutCapture(page, input);
13675
13676
  } finally {
13676
- await browser.close().catch(() => {
13677
- });
13677
+ keepHostedBrowserAlive(browser);
13678
13678
  }
13679
13679
  }
13680
13680
  async function readPage(cdpWsUrl) {
@@ -13729,8 +13729,7 @@ async function readPage(cdpWsUrl) {
13729
13729
  }))
13730
13730
  };
13731
13731
  } finally {
13732
- await browser.close().catch(() => {
13733
- });
13732
+ keepHostedBrowserAlive(browser);
13734
13733
  }
13735
13734
  }
13736
13735
  async function locatePageTargets(cdpWsUrl, targets) {
@@ -13872,8 +13871,7 @@ async function locatePageTargets(cdpWsUrl, targets) {
13872
13871
  }, targets);
13873
13872
  return { url, title, viewport: data.viewport, targets: data.targets };
13874
13873
  } finally {
13875
- await browser.close().catch(() => {
13876
- });
13874
+ keepHostedBrowserAlive(browser);
13877
13875
  }
13878
13876
  }
13879
13877
  async function replayStart(runtimeSessionId) {
@@ -15727,4 +15725,4 @@ app.get("/blog/:slug/", (c) => {
15727
15725
  export {
15728
15726
  app
15729
15727
  };
15730
- //# sourceMappingURL=server-BC4Z2L4P.js.map
15728
+ //# sourceMappingURL=server-YSKBD2VX.js.map