scorchcrawl-mcp 2.0.0 → 2.0.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/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scorchcrawl-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Open-source Copilot SDK-compliant MCP server for web scraping with stealth bot-detection bypass.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"scorchcrawl-mcp": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"scripts"
|
|
11
12
|
],
|
|
12
13
|
"publishConfig": {
|
|
13
14
|
"access": "public"
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"lint": "eslint src/**/*.ts",
|
|
25
26
|
"lint:fix": "eslint src/**/*.ts --fix",
|
|
26
27
|
"format": "prettier --write .",
|
|
27
|
-
"prepare": "npm run build"
|
|
28
|
+
"prepare": "npm run build",
|
|
29
|
+
"postinstall": "node scripts/patch-copilot-sdk.cjs"
|
|
28
30
|
},
|
|
29
31
|
"license": "AGPL-3.0",
|
|
30
32
|
"dependencies": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
function patchCopilotSdkImport() {
|
|
5
|
+
let sessionPath;
|
|
6
|
+
try {
|
|
7
|
+
sessionPath = require.resolve('@github/copilot-sdk/dist/session.js');
|
|
8
|
+
} catch {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const content = fs.readFileSync(sessionPath, 'utf8');
|
|
13
|
+
const patched = content.replaceAll('"vscode-jsonrpc/node"', '"vscode-jsonrpc/node.js"');
|
|
14
|
+
|
|
15
|
+
if (patched !== content) {
|
|
16
|
+
fs.writeFileSync(sessionPath, patched, 'utf8');
|
|
17
|
+
process.stdout.write(`[postinstall] patched ${path.relative(process.cwd(), sessionPath)}\n`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
patchCopilotSdkImport();
|