tree-sitter-analyzer 1.3.8__py3-none-any.whl → 1.4.0__py3-none-any.whl

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.

Potentially problematic release.


This version of tree-sitter-analyzer might be problematic. Click here for more details.

@@ -11,7 +11,7 @@ Architecture:
11
11
  - Data Models: Generic and language-specific code element representations
12
12
  """
13
13
 
14
- __version__ = "1.3.8"
14
+ __version__ = "1.4.0"
15
15
  __author__ = "aisheng.yu"
16
16
  __email__ = "aimasteracc@gmail.com"
17
17
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tree-sitter-analyzer
3
- Version: 1.3.8
3
+ Version: 1.4.0
4
4
  Summary: Extensible multi-language code analyzer framework using Tree-sitter with dynamic plugin architecture
5
5
  Project-URL: Homepage, https://github.com/aimasteracc/tree-sitter-analyzer
6
6
  Project-URL: Documentation, https://github.com/aimasteracc/tree-sitter-analyzer#readme
@@ -172,10 +172,10 @@ Description-Content-Type: text/markdown
172
172
  [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://python.org)
173
173
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
174
174
  [![Tests](https://img.shields.io/badge/tests-1797%20passed-brightgreen.svg)](#quality-assurance)
175
- [![Coverage](https://img.shields.io/badge/coverage-74.46%25-green.svg)](#quality-assurance)
175
+ [![Coverage](https://img.shields.io/badge/coverage-74.43%25-green.svg)](#quality-assurance)
176
176
  [![Quality](https://img.shields.io/badge/quality-enterprise%20grade-blue.svg)](#quality-assurance)
177
177
  [![PyPI](https://img.shields.io/pypi/v/tree-sitter-analyzer.svg)](https://pypi.org/project/tree-sitter-analyzer/)
178
- [![Version](https://img.shields.io/badge/version-1.3.8-blue.svg)](https://github.com/aimasteracc/tree-sitter-analyzer/releases)
178
+ [![Version](https://img.shields.io/badge/version-1.4.0-blue.svg)](https://github.com/aimasteracc/tree-sitter-analyzer/releases)
179
179
  [![GitHub Stars](https://img.shields.io/github/stars/aimasteracc/tree-sitter-analyzer.svg?style=social)](https://github.com/aimasteracc/tree-sitter-analyzer)
180
180
 
181
181
  ## 🚀 Break LLM Token Limits, Let AI Understand Code Files of Any Size
@@ -243,43 +243,50 @@ Total Elements: 85 | Complexity: 348 (avg: 5.27, max: 15)
243
243
 
244
244
  Tree-sitter Analyzer now provides dedicated CLI commands that wrap powerful MCP tools for file system operations:
245
245
 
246
+ > **💡 Usage Note**: In development environments, use `uv run` prefix to execute CLI commands:
247
+ > - `uv run list-files` instead of `list-files`
248
+ > - `uv run search-content` instead of `search-content`
249
+ > - `uv run find-and-grep` instead of `find-and-grep`
250
+ >
251
+ > After installing from PyPI, these commands will be available directly in your PATH.
252
+
246
253
  #### 📁 **`list-files`** - File Discovery with fd
247
254
  ```bash
248
255
  # List all Java files in current directory
249
- list-files . --extensions java
256
+ uv run list-files . --extensions java
250
257
 
251
258
  # Find test files with specific naming patterns
252
- list-files src --pattern "test_*" --extensions java --types f
259
+ uv run list-files src --pattern "test_*" --extensions java --types f
253
260
 
254
261
  # Find large files modified in the last week
255
- list-files . --types f --size "+1k" --changed-within "1week"
262
+ uv run list-files . --types f --size "+1k" --changed-within "1week"
256
263
 
257
264
  # Find service classes with specific naming patterns
258
- list-files src --pattern "*Service*" --extensions java --output-format json
265
+ uv run list-files src --pattern "*Service*" --extensions java --output-format json
259
266
  ```
260
267
 
261
268
  #### 🔍 **`search-content`** - Content Search with ripgrep
262
269
  ```bash
263
270
  # Search for class definitions in Java files
264
- search-content --roots . --query "class.*extends" --include-globs "*.java"
271
+ uv run search-content --roots . --query "class.*extends" --include-globs "*.java"
265
272
 
266
273
  # Find TODO comments with context
267
- search-content --roots src --query "TODO|FIXME" --context-before 2 --context-after 2
274
+ uv run search-content --roots src --query "TODO|FIXME" --context-before 2 --context-after 2
268
275
 
269
276
  # Search in specific files with case-insensitive matching
270
- search-content --files file1.java file2.java --query "public.*method" --case insensitive
277
+ uv run search-content --files file1.java file2.java --query "public.*method" --case insensitive
271
278
  ```
272
279
 
273
280
  #### 🎯 **`find-and-grep`** - Two-Stage Search (fd → ripgrep)
274
281
  ```bash
275
282
  # Find Java files first, then search for Spring annotations
276
- find-and-grep --roots . --query "@SpringBootApplication" --extensions java
283
+ uv run find-and-grep --roots . --query "@SpringBootApplication" --extensions java
277
284
 
278
285
  # Combined file filtering and content search with limits
279
- find-and-grep --roots src --query "import.*spring" --extensions java --file-limit 10 --max-count 5
286
+ uv run find-and-grep --roots src --query "import.*spring" --extensions java --file-limit 10 --max-count 5
280
287
 
281
288
  # Advanced search with multiple filters
282
- find-and-grep --roots . --query "public.*static.*void" --extensions java --types f --size "+500" --output-format json
289
+ uv run find-and-grep --roots . --query "public.*static.*void" --extensions java --types f --size "+500" --output-format json
283
290
  ```
284
291
 
285
292
  ### 🛡️ **Security & Safety Features**
@@ -747,22 +754,22 @@ uv run python -m tree_sitter_analyzer --filter-help
747
754
 
748
755
  # 🆕 New CLI Commands (v1.3.8+)
749
756
  # File listing with fd functionality
750
- list-files . --extensions java --output-format json
757
+ uv run list-files . --extensions java --output-format json
751
758
 
752
759
  # Content search with ripgrep functionality
753
- search-content --roots . --query "class.*extends" --include-globs "*.java" --output-format text
760
+ uv run search-content --roots . --query "class.*extends" --include-globs "*.java" --output-format text
754
761
 
755
762
  # Two-stage search: find files first, then search content
756
- find-and-grep --roots . --query "public.*method" --extensions java --output-format json
763
+ uv run find-and-grep --roots . --query "public.*method" --extensions java --output-format json
757
764
 
758
765
  # Advanced file filtering
759
- list-files . --types f --size "+1k" --changed-within "1week" --hidden --output-format text
766
+ uv run list-files . --types f --size "+1k" --changed-within "1week" --hidden --output-format text
760
767
 
761
768
  # Content search with context
762
- search-content --roots src --query "TODO|FIXME" --context-before 2 --context-after 2 --output-format json
769
+ uv run search-content --roots src --query "TODO|FIXME" --context-before 2 --context-after 2 --output-format json
763
770
 
764
771
  # Combined file and content search with limits
765
- find-and-grep --roots . --query "import.*spring" --extensions java --file-limit 10 --max-count 5 --output-format text
772
+ uv run find-and-grep --roots . --query "import.*spring" --extensions java --file-limit 10 --max-count 5 --output-format text
766
773
  ```
767
774
 
768
775
  ---
@@ -1001,15 +1008,15 @@ Tree-sitter Analyzer automatically detects and protects project boundaries:
1001
1008
 
1002
1009
  ### 📊 **Quality Metrics**
1003
1010
  - **1,797 tests** - 100% pass rate ✅
1004
- - **74.46% code coverage** - Industry-leading level
1011
+ - **74.43% code coverage** - Industry-leading level
1005
1012
  - **Zero test failures** - Fully CI/CD ready
1006
1013
  - **Cross-platform compatibility** - Windows, macOS, Linux
1007
1014
 
1008
- ### ⚡ **Latest Quality Achievements (v1.3.8)**
1015
+ ### ⚡ **Latest Quality Achievements (v1.4.0)**
1009
1016
  - ✅ **Cross-platform path compatibility** - Fixed Windows short path names and macOS symbolic link differences
1010
1017
  - ✅ **Windows environment** - Implemented robust path normalization using Windows API
1011
1018
  - ✅ **macOS environment** - Fixed `/var` vs `/private/var` symbolic link differences
1012
- - ✅ **Comprehensive test coverage** - 1797 tests, 74.46% coverage
1019
+ - ✅ **Comprehensive test coverage** - 1797 tests, 74.43% coverage
1013
1020
  - ✅ **GitFlow implementation** - Professional development/release branch strategy. See [GitFlow documentation](GITFLOW.md) for details.
1014
1021
 
1015
1022
  ### ⚙️ **Running Tests**
@@ -1126,9 +1133,9 @@ All AI prompts in this document have been thoroughly tested in real environments
1126
1133
 
1127
1134
  **Test Environment:**
1128
1135
  - Operating System: Windows 10
1129
- - Project: tree-sitter-analyzer v1.3.8
1136
+ - Project: tree-sitter-analyzer v1.4.0
1130
1137
  - Test Files: BigService.java (1419 lines), sample.py (256 lines), MultiClass.java (54 lines)
1131
- - Test Coverage: 1797 tests passed, 74.46% coverage
1138
+ - Test Coverage: 1797 tests passed, 74.43% coverage
1132
1139
  - Test Tools: All MCP tools (check_code_scale, analyze_code_structure, extract_code_section, query_code, list_files, search_content, find_and_grep)
1133
1140
 
1134
1141
  **🚀 Start Now** → [30-Second Quick Start](#-30-second-quick-start)
@@ -1,4 +1,4 @@
1
- tree_sitter_analyzer/__init__.py,sha256=s4LmKCwun46dwmD2Mqr_noyDHo05qjOLtFuPHnYEEyE,3067
1
+ tree_sitter_analyzer/__init__.py,sha256=VvYtMQFUqA-_LwAI9CTyx4IHMzDa3ar7AhcX49oE9o8,3067
2
2
  tree_sitter_analyzer/__main__.py,sha256=Zl79tpe4UaMu-7yeztc06tgP0CVMRnvGgas4ZQP5SCs,228
3
3
  tree_sitter_analyzer/api.py,sha256=N_bcf1pLwzXS3elPn30OySLR6ehsHdWpchXMycjl0PY,17399
4
4
  tree_sitter_analyzer/cli_main.py,sha256=jWjVJ5AgNmtf6Z7CgeK3IF-zi7yIiu9zn4Oyvzl-iNQ,10349
@@ -85,7 +85,7 @@ tree_sitter_analyzer/security/__init__.py,sha256=ZTqTt24hsljCpTXAZpJC57L7MU5lJLT
85
85
  tree_sitter_analyzer/security/boundary_manager.py,sha256=3eeENRKWtz2pyZHzd8DiVaq8fdeC6s1eVOuBylSmQPg,9347
86
86
  tree_sitter_analyzer/security/regex_checker.py,sha256=jWK6H8PTPgzbwRPfK_RZ8bBTS6rtEbgjY5vr3YWjQ_U,9616
87
87
  tree_sitter_analyzer/security/validator.py,sha256=yR4qTWEcXpR--bSFwtWvSgY0AzqujOFAqlc1Z7dlTdk,9809
88
- tree_sitter_analyzer-1.3.8.dist-info/METADATA,sha256=mh0hY4T2e6k-UbamfEHIjJVb9VleVNvU2OtMKLm7zm0,43625
89
- tree_sitter_analyzer-1.3.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
90
- tree_sitter_analyzer-1.3.8.dist-info/entry_points.txt,sha256=dEQkGMGmGGBzssEKlXW9F0-VlO3XJW2fJUv9i7898Ho,701
91
- tree_sitter_analyzer-1.3.8.dist-info/RECORD,,
88
+ tree_sitter_analyzer-1.4.0.dist-info/METADATA,sha256=v8euCTUDbx1Vjj_w21y9wQ3r_e_13v2BzgnlpdXqW14,44081
89
+ tree_sitter_analyzer-1.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
90
+ tree_sitter_analyzer-1.4.0.dist-info/entry_points.txt,sha256=dEQkGMGmGGBzssEKlXW9F0-VlO3XJW2fJUv9i7898Ho,701
91
+ tree_sitter_analyzer-1.4.0.dist-info/RECORD,,