magector 1.5.3 → 1.6.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.
Files changed (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -838,6 +838,41 @@ Copy `.cursorrules` to your Magento project root for optimized AI-assisted devel
838
838
  3. Follow Magento development patterns
839
839
  4. Interpret search results correctly
840
840
 
841
+ ### Excluding Directories (`.magectorignore`)
842
+
843
+ Magector automatically skips common non-project directories during indexing:
844
+
845
+ - `vendor/` — Composer dependencies (100K-500K files)
846
+ - `node_modules/` — npm packages
847
+ - `generated/` — DI-compiled files
848
+ - `var/` — cache, logs, sessions
849
+ - `pub/static/` — deployed static assets
850
+ - `dev/tests/`, `dev/tools/` — Magento development tools
851
+ - `Test/`, `Tests/`, `test/`, `tests/` — test directories
852
+ - `.git/` — version control
853
+
854
+ For project-specific exclusions, create a `.magectorignore` file in your Magento project root:
855
+
856
+ ```gitignore
857
+ # .magectorignore — additional directories to exclude from Magector indexing
858
+ # One pattern per line, gitignore-like syntax
859
+
860
+ # Custom exclusions
861
+ pub/media
862
+ setup
863
+ update
864
+ phpserver
865
+ bin
866
+ lib/internal
867
+ ```
868
+
869
+ **Pattern rules:**
870
+ - Lines starting with `#` are comments
871
+ - Empty lines are ignored
872
+ - Trailing slashes are stripped (`vendor/` → `vendor`)
873
+ - Patterns without `/` match directory names anywhere in the tree
874
+ - Patterns with `/` match relative paths from the project root
875
+
841
876
  ### Model Configuration
842
877
 
843
878
  The ONNX model (`all-MiniLM-L6-v2`) is automatically downloaded on first run to `~/.magector/models/`. To use a different location:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magector",
3
- "version": "1.5.3",
3
+ "version": "1.6.1",
4
4
  "description": "Semantic code search for Magento 2 — index, search, MCP server",
5
5
  "type": "module",
6
6
  "main": "src/mcp-server.js",
@@ -37,10 +37,10 @@
37
37
  "ruvector": "^0.1.96"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@magector/cli-darwin-arm64": "1.5.3",
41
- "@magector/cli-linux-x64": "1.5.3",
42
- "@magector/cli-linux-arm64": "1.5.3",
43
- "@magector/cli-win32-x64": "1.5.3"
40
+ "@magector/cli-darwin-arm64": "1.6.1",
41
+ "@magector/cli-linux-x64": "1.6.1",
42
+ "@magector/cli-linux-arm64": "1.6.1",
43
+ "@magector/cli-win32-x64": "1.6.1"
44
44
  },
45
45
  "keywords": [
46
46
  "magento",