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.
- package/dist/bin/api-server.cjs +7 -9
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/browser-agent-stdio-server.cjs +1 -1
- package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
- package/dist/bin/browser-agent-stdio-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.cjs +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.js +3 -3
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +1 -1
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-IHXHQL53.js +7 -0
- package/dist/chunk-IHXHQL53.js.map +1 -0
- package/dist/{chunk-WZT3XKES.js → chunk-ROZEDHAA.js} +2 -2
- package/dist/{chunk-CMK5MMEE.js → chunk-TK4D2BZ5.js} +2 -2
- package/dist/{server-BC4Z2L4P.js → server-YSKBD2VX.js} +9 -11
- package/dist/{server-BC4Z2L4P.js.map → server-YSKBD2VX.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-GHBU5SGQ.js +0 -7
- package/dist/chunk-GHBU5SGQ.js.map +0 -1
- /package/dist/{chunk-WZT3XKES.js.map → chunk-ROZEDHAA.js.map} +0 -0
- /package/dist/{chunk-CMK5MMEE.js.map → chunk-TK4D2BZ5.js.map} +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
HttpMcpToolExecutor,
|
|
4
4
|
buildPaaExtractorMcpServer
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ROZEDHAA.js";
|
|
6
6
|
import "../chunk-M2S27J6Z.js";
|
|
7
7
|
import "../chunk-LFATOGDF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-IHXHQL53.js";
|
|
9
9
|
|
|
10
10
|
// bin/mcp-stdio-server.ts
|
|
11
11
|
import { readFileSync } from "fs";
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
1917
|
+
//# sourceMappingURL=chunk-TK4D2BZ5.js.map
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
harvestTimeoutBudget,
|
|
100
100
|
liveWebToolAnnotations,
|
|
101
101
|
outputBaseDir
|
|
102
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
15728
|
+
//# sourceMappingURL=server-YSKBD2VX.js.map
|