magector 2.16.4 → 2.16.5
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 +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magector",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.5",
|
|
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.16.
|
|
37
|
-
"@magector/cli-linux-x64": "2.16.
|
|
38
|
-
"@magector/cli-linux-arm64": "2.16.
|
|
39
|
-
"@magector/cli-win32-x64": "2.16.
|
|
36
|
+
"@magector/cli-darwin-arm64": "2.16.5",
|
|
37
|
+
"@magector/cli-linux-x64": "2.16.5",
|
|
38
|
+
"@magector/cli-linux-arm64": "2.16.5",
|
|
39
|
+
"@magector/cli-win32-x64": "2.16.5"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"magento",
|
package/src/mcp-server.js
CHANGED
|
@@ -3638,7 +3638,7 @@ async function astSearch(patternName, searchPath, maxResults) {
|
|
|
3638
3638
|
logToFile('INFO', `ast_search: pattern="${patternName}" path="${safeSp}" limit=${limit}`);
|
|
3639
3639
|
const start = Date.now();
|
|
3640
3640
|
|
|
3641
|
-
const resp = await serveQuery('ast_query', { pattern: patternName, path: safeSp, limit }, 60000);
|
|
3641
|
+
const resp = await serveQuery('ast_query', { magento_root: root, pattern: patternName, path: safeSp, limit }, 60000);
|
|
3642
3642
|
if (!resp.ok) throw new Error(resp.error || 'ast_query failed');
|
|
3643
3643
|
|
|
3644
3644
|
const elapsed = Date.now() - start;
|