magector 2.14.1 → 2.14.2
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 +5 -5
- package/src/mcp-server.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magector",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.2",
|
|
4
4
|
"description": "Semantic code search for Magento 2 — index, search, MCP server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/mcp-server.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"ruvector": "^0.1.96"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@magector/cli-darwin-arm64": "2.14.
|
|
37
|
-
"@magector/cli-linux-x64": "2.14.
|
|
38
|
-
"@magector/cli-linux-arm64": "2.14.
|
|
39
|
-
"@magector/cli-win32-x64": "2.14.
|
|
36
|
+
"@magector/cli-darwin-arm64": "2.14.2",
|
|
37
|
+
"@magector/cli-linux-x64": "2.14.2",
|
|
38
|
+
"@magector/cli-linux-arm64": "2.14.2",
|
|
39
|
+
"@magector/cli-win32-x64": "2.14.2"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"magento",
|
package/src/mcp-server.js
CHANGED
|
@@ -3670,16 +3670,16 @@ async function astSearch(pattern, searchPath, lang, maxResults) {
|
|
|
3670
3670
|
logToFile('INFO', `ast_search: pattern="${pattern}" path="${searchPath || '.'}" lang=${semgrepLang} limit=${limit}`);
|
|
3671
3671
|
const astStart = Date.now();
|
|
3672
3672
|
|
|
3673
|
-
// Create a temporary empty .semgrepignore in the target directory if none exists.
|
|
3674
3673
|
// Semgrep's default ignore list includes "vendor/" which is exactly what we need to scan.
|
|
3675
|
-
//
|
|
3676
|
-
|
|
3674
|
+
// Semgrep resolves .semgrepignore from the git repo root, NOT the scan directory.
|
|
3675
|
+
// An empty .semgrepignore at root overrides the defaults: https://semgrep.dev/docs/ignoring-files-folders-code/
|
|
3676
|
+
const semgrepIgnorePath = path.join(root, '.semgrepignore');
|
|
3677
3677
|
let createdSemgrepIgnore = false;
|
|
3678
3678
|
if (!existsSync(semgrepIgnorePath)) {
|
|
3679
3679
|
try {
|
|
3680
3680
|
writeFileSync(semgrepIgnorePath, '# Magector: scan vendor/ and all project files\n');
|
|
3681
3681
|
createdSemgrepIgnore = true;
|
|
3682
|
-
logToFile('INFO', `ast_search: created temporary .semgrepignore at ${
|
|
3682
|
+
logToFile('INFO', `ast_search: created temporary .semgrepignore at ${root}`);
|
|
3683
3683
|
} catch (err) {
|
|
3684
3684
|
logToFile('WARN', `ast_search: failed to create .semgrepignore: ${err.message}`);
|
|
3685
3685
|
}
|