tree-sitter-analyzer 1.7.0__py3-none-any.whl → 1.7.1__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.
- tree_sitter_analyzer/__init__.py +1 -1
- {tree_sitter_analyzer-1.7.0.dist-info → tree_sitter_analyzer-1.7.1.dist-info}/METADATA +188 -233
- {tree_sitter_analyzer-1.7.0.dist-info → tree_sitter_analyzer-1.7.1.dist-info}/RECORD +5 -5
- {tree_sitter_analyzer-1.7.0.dist-info → tree_sitter_analyzer-1.7.1.dist-info}/entry_points.txt +1 -0
- {tree_sitter_analyzer-1.7.0.dist-info → tree_sitter_analyzer-1.7.1.dist-info}/WHEEL +0 -0
tree_sitter_analyzer/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tree-sitter-analyzer
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.1
|
|
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
|
|
@@ -159,7 +159,7 @@ Requires-Dist: tree-sitter-javascript<0.25.0,>=0.23.1; extra == 'web'
|
|
|
159
159
|
Requires-Dist: tree-sitter-typescript<0.25.0,>=0.20.0; extra == 'web'
|
|
160
160
|
Description-Content-Type: text/markdown
|
|
161
161
|
|
|
162
|
-
# Tree-sitter Analyzer
|
|
162
|
+
# 🌳 Tree-sitter Analyzer
|
|
163
163
|
|
|
164
164
|
**English** | **[日本語](README_ja.md)** | **[简体中文](README_zh.md)**
|
|
165
165
|
|
|
@@ -169,71 +169,65 @@ Description-Content-Type: text/markdown
|
|
|
169
169
|
[](#quality-assurance)
|
|
170
170
|
[](#quality-assurance)
|
|
171
171
|
[](https://pypi.org/project/tree-sitter-analyzer/)
|
|
172
|
-
[](https://github.com/aimasteracc/tree-sitter-analyzer/releases)
|
|
173
173
|
[](https://github.com/aimasteracc/tree-sitter-analyzer)
|
|
174
174
|
|
|
175
175
|
## 🚀 Enterprise-Grade Code Analysis Tool for the AI Era
|
|
176
176
|
|
|
177
|
-
> **Deep AI Integration · Powerful File Search ·
|
|
177
|
+
> **Deep AI Integration · Powerful File Search · Multilingual Support · Intelligent Code Analysis**
|
|
178
178
|
|
|
179
179
|
## 📋 Table of Contents
|
|
180
180
|
|
|
181
|
-
- [💡
|
|
182
|
-
- [📋 Prerequisites (Required for All Users)](
|
|
183
|
-
- [🚀 Quick Start](
|
|
184
|
-
- [🤖 AI Users (Claude Desktop, Cursor, etc.)](
|
|
185
|
-
- [💻 CLI Users (Command Line Tools)](
|
|
186
|
-
- [👨💻 Developers (Source Development)](
|
|
187
|
-
- [📖 Usage Workflow & Examples](
|
|
188
|
-
- [🔄 AI Assistant SMART Workflow](
|
|
189
|
-
|
|
190
|
-
- [
|
|
191
|
-
- [
|
|
192
|
-
- [
|
|
193
|
-
- [
|
|
181
|
+
- [1. 💡 Project Features](#1--project-features)
|
|
182
|
+
- [2. 📋 Prerequisites (Required for All Users)](#2--prerequisites-required-for-all-users)
|
|
183
|
+
- [3. 🚀 Quick Start](#3--quick-start)
|
|
184
|
+
- [3.1 🤖 AI Users (Claude Desktop, Cursor, etc.)](#31--ai-users-claude-desktop-cursor-etc)
|
|
185
|
+
- [3.2 💻 CLI Users (Command Line Tools)](#32--cli-users-command-line-tools)
|
|
186
|
+
- [3.3 👨💻 Developers (Source Code Development)](#33--developers-source-code-development)
|
|
187
|
+
- [4. 📖 Usage Workflow & Examples](#4--usage-workflow--examples)
|
|
188
|
+
- [4.1 🔄 AI Assistant SMART Workflow](#41--ai-assistant-smart-workflow)
|
|
189
|
+
- [5. 🤖 Complete MCP Tool List](#5--complete-mcp-tool-list)
|
|
190
|
+
- [6. ⚡ Complete CLI Commands](#6--complete-cli-commands)
|
|
191
|
+
- [7. 🛠️ Core Features](#7-️-core-features)
|
|
192
|
+
- [8. 🏆 Quality Assurance](#8--quality-assurance)
|
|
193
|
+
- [9. 📚 Documentation & Support](#9--documentation--support)
|
|
194
|
+
- [10. 🤝 Contributing & License](#10--contributing--license)
|
|
194
195
|
|
|
195
196
|
---
|
|
196
197
|
|
|
197
|
-
## 💡
|
|
198
|
+
## 1. 💡 Project Features
|
|
198
199
|
|
|
199
200
|
Tree-sitter Analyzer is an enterprise-grade code analysis tool designed for the AI era, providing:
|
|
200
201
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
###
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### 🌍 Enterprise-Grade Multi-Language Support
|
|
220
|
-
- **Java** - Full support (1103 lines of plugin code, 73% coverage), including Spring, JPA frameworks
|
|
221
|
-
- **Python** - Full support (584 lines of plugin code, 63% coverage), including type annotations, decorators
|
|
222
|
-
- **JavaScript** - Enterprise-grade support (1445 lines of plugin code, 68% coverage), including ES6+, React/Vue/Angular, JSX
|
|
223
|
-
- **TypeScript** - **Complete support** (1729 lines of plugin code, 72.82% coverage), including interfaces, types, decorators, TSX/JSX, framework detection
|
|
224
|
-
- **More Languages** - Basic support for C/C++, Rust, Go
|
|
202
|
+
| Feature Category | Key Capabilities | Core Benefits |
|
|
203
|
+
|------------------|------------------|---------------|
|
|
204
|
+
| **🤖 Deep AI Integration** | • MCP Protocol Support<br>• SMART Workflow<br>• Token Limitation Breaking<br>• Natural Language Interaction | Native support for Claude Desktop, Cursor, Roo Code<br>Systematic AI-assisted methodology<br>Handle code files of any size<br>Complex analysis via natural language |
|
|
205
|
+
| **🔍 Powerful Search** | • Intelligent File Discovery<br>• Precise Content Search<br>• Two-Stage Search<br>• Project Boundary Protection | fd-based high-performance search<br>ripgrep regex content search<br>Combined file + content workflow<br>Automatic security boundaries |
|
|
206
|
+
| **📊 Intelligent Analysis** | • Fast Structure Analysis<br>• Precise Code Extraction<br>• Complexity Analysis<br>• Unified Element System | Architecture understanding without full read<br>Line-range code snippet extraction<br>Cyclomatic complexity metrics<br>Revolutionary element management |
|
|
207
|
+
|
|
208
|
+
### 🌍 Enterprise Multi-language Support
|
|
209
|
+
|
|
210
|
+
| Programming Language | Support Level | Key Features |
|
|
211
|
+
|---------------------|---------------|--------------|
|
|
212
|
+
| **Java** | Complete Support | Spring framework, JPA, enterprise features |
|
|
213
|
+
| **Python** | Complete Support | Type annotations, decorators, modern Python features |
|
|
214
|
+
| **JavaScript** | Complete Support | ES6+, React/Vue/Angular, JSX |
|
|
215
|
+
| **TypeScript** | Complete Support | Interfaces, types, decorators, TSX/JSX, framework detection |
|
|
216
|
+
| **C/C++** | Basic Support | Basic syntax parsing |
|
|
217
|
+
| **Rust** | Basic Support | Basic syntax parsing |
|
|
218
|
+
| **Go** | Basic Support | Basic syntax parsing |
|
|
225
219
|
|
|
226
220
|
### 🏆 Production Ready
|
|
227
221
|
- **2,662 Tests** - 100% pass rate, enterprise-grade quality assurance
|
|
228
|
-
- **79.16% Coverage** - Comprehensive test
|
|
229
|
-
- **Cross-
|
|
222
|
+
- **79.16% Coverage** - Comprehensive test coverage
|
|
223
|
+
- **Cross-platform Support** - Compatible with Windows, macOS, Linux
|
|
230
224
|
- **Continuous Maintenance** - Active development and community support
|
|
231
225
|
|
|
232
226
|
---
|
|
233
227
|
|
|
234
|
-
## 📋 Prerequisites (Required for All Users)
|
|
228
|
+
## 2. 📋 Prerequisites (Required for All Users)
|
|
235
229
|
|
|
236
|
-
|
|
230
|
+
Regardless of whether you are an AI user, CLI user, or developer, you need to install the following tools first:
|
|
237
231
|
|
|
238
232
|
### 1️⃣ Install uv (Required - for running tools)
|
|
239
233
|
|
|
@@ -254,14 +248,14 @@ uv --version
|
|
|
254
248
|
|
|
255
249
|
### 2️⃣ Install fd and ripgrep (Required for search functionality)
|
|
256
250
|
|
|
257
|
-
**fd** and **ripgrep** are high-performance file and content search tools used for advanced MCP
|
|
251
|
+
**fd** and **ripgrep** are high-performance file search and content search tools used for advanced MCP functionality.
|
|
258
252
|
|
|
259
253
|
| Operating System | Package Manager | Installation Command | Notes |
|
|
260
|
-
|
|
261
|
-
| **macOS** | Homebrew | `brew install fd ripgrep` | Recommended
|
|
262
|
-
| **Windows** | winget | `winget install sharkdp.fd BurntSushi.ripgrep.MSVC` | Recommended
|
|
263
|
-
| | Chocolatey | `choco install fd ripgrep` | Alternative
|
|
264
|
-
| | Scoop | `scoop install fd ripgrep` | Alternative
|
|
254
|
+
|-----------------|----------------|---------------------|-------|
|
|
255
|
+
| **macOS** | Homebrew | `brew install fd ripgrep` | Recommended |
|
|
256
|
+
| **Windows** | winget | `winget install sharkdp.fd BurntSushi.ripgrep.MSVC` | Recommended |
|
|
257
|
+
| | Chocolatey | `choco install fd ripgrep` | Alternative |
|
|
258
|
+
| | Scoop | `scoop install fd ripgrep` | Alternative |
|
|
265
259
|
| **Ubuntu/Debian** | apt | `sudo apt install fd-find ripgrep` | Official repository |
|
|
266
260
|
| **CentOS/RHEL/Fedora** | dnf | `sudo dnf install fd-find ripgrep` | Official repository |
|
|
267
261
|
| **Arch Linux** | pacman | `sudo pacman -S fd ripgrep` | Official repository |
|
|
@@ -273,15 +267,15 @@ rg --version
|
|
|
273
267
|
```
|
|
274
268
|
|
|
275
269
|
> **⚠️ Important Note:**
|
|
276
|
-
> - **uv** is required for running all
|
|
270
|
+
> - **uv** is required for running all functionality
|
|
277
271
|
> - **fd** and **ripgrep** are required for using advanced file search and content analysis features
|
|
278
|
-
> - If fd and ripgrep are not installed, basic code analysis
|
|
272
|
+
> - If fd and ripgrep are not installed, basic code analysis functionality will still be available, but file search features will not work
|
|
279
273
|
|
|
280
274
|
---
|
|
281
275
|
|
|
282
|
-
## 🚀 Quick Start
|
|
276
|
+
## 3. 🚀 Quick Start
|
|
283
277
|
|
|
284
|
-
### 🤖 AI Users (Claude Desktop, Cursor, etc.)
|
|
278
|
+
### 3.1 🤖 AI Users (Claude Desktop, Cursor, etc.)
|
|
285
279
|
|
|
286
280
|
**For:** Users who use AI assistants (such as Claude Desktop, Cursor) for code analysis
|
|
287
281
|
|
|
@@ -290,13 +284,13 @@ rg --version
|
|
|
290
284
|
**Claude Desktop Configuration:**
|
|
291
285
|
|
|
292
286
|
1. Find the configuration file location:
|
|
293
|
-
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
294
|
-
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
295
|
-
- **Linux**: `~/.config/claude/claude_desktop_config.json`
|
|
287
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
288
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
289
|
+
- **Linux**: `~/.config/claude/claude_desktop_config.json`
|
|
296
290
|
|
|
297
291
|
2. Add the following configuration:
|
|
298
292
|
|
|
299
|
-
**Basic Configuration (Recommended -
|
|
293
|
+
**Basic Configuration (Recommended - auto-detect project path):**
|
|
300
294
|
```json
|
|
301
295
|
{
|
|
302
296
|
"mcpServers": {
|
|
@@ -311,7 +305,7 @@ rg --version
|
|
|
311
305
|
}
|
|
312
306
|
```
|
|
313
307
|
|
|
314
|
-
**Advanced Configuration (
|
|
308
|
+
**Advanced Configuration (manually specify project path):**
|
|
315
309
|
```json
|
|
316
310
|
{
|
|
317
311
|
"mcpServers": {
|
|
@@ -330,7 +324,7 @@ rg --version
|
|
|
330
324
|
}
|
|
331
325
|
```
|
|
332
326
|
|
|
333
|
-
3. Restart
|
|
327
|
+
3. Restart AI client
|
|
334
328
|
|
|
335
329
|
4. Start using! Tell the AI:
|
|
336
330
|
```
|
|
@@ -344,9 +338,9 @@ rg --version
|
|
|
344
338
|
|
|
345
339
|
---
|
|
346
340
|
|
|
347
|
-
### 💻 CLI Users (Command Line Tools)
|
|
341
|
+
### 3.2 💻 CLI Users (Command Line Tools)
|
|
348
342
|
|
|
349
|
-
**For:** Developers who prefer using command
|
|
343
|
+
**For:** Developers who prefer using command line tools
|
|
350
344
|
|
|
351
345
|
#### 📦 Installation
|
|
352
346
|
|
|
@@ -354,10 +348,10 @@ rg --version
|
|
|
354
348
|
# Basic installation
|
|
355
349
|
uv add tree-sitter-analyzer
|
|
356
350
|
|
|
357
|
-
# Popular language
|
|
351
|
+
# Popular language packages (recommended)
|
|
358
352
|
uv add "tree-sitter-analyzer[popular]"
|
|
359
353
|
|
|
360
|
-
#
|
|
354
|
+
# Complete installation (including MCP support)
|
|
361
355
|
uv add "tree-sitter-analyzer[all,mcp]"
|
|
362
356
|
```
|
|
363
357
|
|
|
@@ -367,10 +361,10 @@ uv add "tree-sitter-analyzer[all,mcp]"
|
|
|
367
361
|
# View help
|
|
368
362
|
uv run python -m tree_sitter_analyzer --help
|
|
369
363
|
|
|
370
|
-
# Analyze file
|
|
364
|
+
# Analyze large file scale (1419 lines completed instantly)
|
|
371
365
|
uv run python -m tree_sitter_analyzer examples/BigService.java --advanced --output-format=text
|
|
372
366
|
|
|
373
|
-
# Generate detailed structure table
|
|
367
|
+
# Generate detailed structure table for code files
|
|
374
368
|
uv run python -m tree_sitter_analyzer examples/BigService.java --table=full
|
|
375
369
|
|
|
376
370
|
# Precise code extraction
|
|
@@ -379,9 +373,9 @@ uv run python -m tree_sitter_analyzer examples/BigService.java --partial-read --
|
|
|
379
373
|
|
|
380
374
|
---
|
|
381
375
|
|
|
382
|
-
### 👨💻 Developers (Source Development)
|
|
376
|
+
### 3.3 👨💻 Developers (Source Code Development)
|
|
383
377
|
|
|
384
|
-
**For:** Developers who need to modify source code or contribute
|
|
378
|
+
**For:** Developers who need to modify source code or contribute code
|
|
385
379
|
|
|
386
380
|
#### 🛠️ Development Environment Setup
|
|
387
381
|
|
|
@@ -403,20 +397,20 @@ uv run pytest tests/ --cov=tree_sitter_analyzer --cov-report=html
|
|
|
403
397
|
#### 🔍 Code Quality Checks
|
|
404
398
|
|
|
405
399
|
```bash
|
|
406
|
-
# AI-generated code
|
|
400
|
+
# AI-generated code checks
|
|
407
401
|
uv run python llm_code_checker.py --check-all
|
|
408
402
|
|
|
409
|
-
# Quality
|
|
403
|
+
# Quality checks
|
|
410
404
|
uv run python check_quality.py --new-code-only
|
|
411
405
|
```
|
|
412
406
|
|
|
413
407
|
---
|
|
414
408
|
|
|
415
|
-
## 📖 Usage Workflow & Examples
|
|
409
|
+
## 4. 📖 Usage Workflow & Examples
|
|
416
410
|
|
|
417
|
-
### 🔄 AI Assistant SMART Workflow
|
|
411
|
+
### 4.1 🔄 AI Assistant SMART Workflow
|
|
418
412
|
|
|
419
|
-
The SMART workflow is the recommended process for analyzing code using AI assistants. The following demonstrates the complete
|
|
413
|
+
The SMART workflow is the recommended process for analyzing code using AI assistants. The following demonstrates the complete process using `examples/BigService.java` (a large service class with 1419 lines):
|
|
420
414
|
|
|
421
415
|
- **S** (Set): Set project root directory
|
|
422
416
|
- **M** (Map): Precisely map target files
|
|
@@ -433,9 +427,9 @@ The SMART workflow is the recommended process for analyzing code using AI assist
|
|
|
433
427
|
Please set the project root directory to: C:\git-public\tree-sitter-analyzer
|
|
434
428
|
```
|
|
435
429
|
|
|
436
|
-
**
|
|
430
|
+
**AI will automatically call** the `set_project_path` tool.
|
|
437
431
|
|
|
438
|
-
> 💡 **Tip**: You can also pre-set this through the `TREE_SITTER_PROJECT_ROOT`
|
|
432
|
+
> 💡 **Tip**: You can also pre-set this through the environment variable `TREE_SITTER_PROJECT_ROOT` in MCP configuration.
|
|
439
433
|
|
|
440
434
|
---
|
|
441
435
|
|
|
@@ -447,7 +441,7 @@ Please set the project root directory to: C:\git-public\tree-sitter-analyzer
|
|
|
447
441
|
Find all Java files containing "BigService" in the project
|
|
448
442
|
```
|
|
449
443
|
|
|
450
|
-
**
|
|
444
|
+
**AI will call** the `find_and_grep` tool and return showing 8 matches in BigService.java.
|
|
451
445
|
|
|
452
446
|
**Scenario 2: Known file path, use directly**
|
|
453
447
|
```
|
|
@@ -456,14 +450,14 @@ I want to analyze the file examples/BigService.java
|
|
|
456
450
|
|
|
457
451
|
---
|
|
458
452
|
|
|
459
|
-
#### **A - Analyze Core Structure (Understand file
|
|
453
|
+
#### **A - Analyze Core Structure (Understand file scale and organization)**
|
|
460
454
|
|
|
461
455
|
**Tell the AI:**
|
|
462
456
|
```
|
|
463
|
-
Please analyze the structure of examples/BigService.java, I want to know how
|
|
457
|
+
Please analyze the structure of examples/BigService.java, I want to know how big this file is and what main components it contains
|
|
464
458
|
```
|
|
465
459
|
|
|
466
|
-
**
|
|
460
|
+
**AI will call** the `analyze_code_structure` tool and return:
|
|
467
461
|
```json
|
|
468
462
|
{
|
|
469
463
|
"file_path": "examples/BigService.java",
|
|
@@ -493,18 +487,18 @@ Please analyze the structure of examples/BigService.java, I want to know how lar
|
|
|
493
487
|
**Key Information:**
|
|
494
488
|
|
|
495
489
|
- File has **1419 lines** total
|
|
496
|
-
- Contains **1 class**, **66 methods**, **9 fields**, **1 package**, **total
|
|
490
|
+
- Contains **1 class**, **66 methods**, **9 fields**, **1 package**, **total 85 elements**
|
|
497
491
|
|
|
498
492
|
---
|
|
499
493
|
|
|
500
|
-
#### **R - Retrieve Key Code (Deep
|
|
494
|
+
#### **R - Retrieve Key Code (Deep understanding of specific implementations)**
|
|
501
495
|
|
|
502
496
|
**Scenario 1: View complete structure table**
|
|
503
497
|
```
|
|
504
498
|
Please generate a detailed structure table for examples/BigService.java, I want to see a list of all methods
|
|
505
499
|
```
|
|
506
500
|
|
|
507
|
-
**
|
|
501
|
+
**AI will generate a Markdown table containing:**
|
|
508
502
|
|
|
509
503
|
- Class information: package name, type, visibility, line range
|
|
510
504
|
- Field list: 9 fields (DEFAULT_ENCODING, MAX_RETRY_COUNT, etc.)
|
|
@@ -514,10 +508,10 @@ Please generate a detailed structure table for examples/BigService.java, I want
|
|
|
514
508
|
|
|
515
509
|
**Scenario 2: Extract specific code snippet**
|
|
516
510
|
```
|
|
517
|
-
Please extract lines 93-106
|
|
511
|
+
Please extract lines 93-106 from examples/BigService.java, I want to see the specific implementation of memory checking
|
|
518
512
|
```
|
|
519
513
|
|
|
520
|
-
**
|
|
514
|
+
**AI will call** the `extract_code_section` tool and return the code for the checkMemoryUsage method.
|
|
521
515
|
|
|
522
516
|
---
|
|
523
517
|
|
|
@@ -528,14 +522,14 @@ Please extract lines 93-106 of examples/BigService.java, I want to see the speci
|
|
|
528
522
|
Find all methods related to authentication (auth) in examples/BigService.java
|
|
529
523
|
```
|
|
530
524
|
|
|
531
|
-
**
|
|
525
|
+
**AI will call query filtering** and return the authenticateUser method code (lines 141-172).
|
|
532
526
|
|
|
533
|
-
**Scenario 2: Find entry
|
|
527
|
+
**Scenario 2: Find entry points**
|
|
534
528
|
```
|
|
535
529
|
Where is the main method in this file? What does it do?
|
|
536
530
|
```
|
|
537
531
|
|
|
538
|
-
**
|
|
532
|
+
**AI will locate:**
|
|
539
533
|
|
|
540
534
|
- **Location**: Lines 1385-1418
|
|
541
535
|
- **Function**: Demonstrates various features of BigService (authentication, sessions, customer management, report generation, performance monitoring, security checks)
|
|
@@ -545,7 +539,7 @@ Where is the main method in this file? What does it do?
|
|
|
545
539
|
Which methods call the authenticateUser method?
|
|
546
540
|
```
|
|
547
541
|
|
|
548
|
-
**
|
|
542
|
+
**AI will search the code** and find the call in the `main` method:
|
|
549
543
|
```java
|
|
550
544
|
service.authenticateUser("testuser", "password123");
|
|
551
545
|
```
|
|
@@ -554,35 +548,63 @@ service.authenticateUser("testuser", "password123");
|
|
|
554
548
|
|
|
555
549
|
### 💡 SMART Workflow Best Practices
|
|
556
550
|
|
|
557
|
-
1. **Natural
|
|
558
|
-
2. **
|
|
559
|
-
3. **
|
|
560
|
-
4. **Combined
|
|
551
|
+
1. **Natural language first**: Describe your needs in natural language, and AI will automatically select appropriate tools
|
|
552
|
+
2. **Step-by-step approach**: First understand the overall structure (A), then dive into specific code (R)
|
|
553
|
+
3. **Use tracking when needed**: Only use tracking (T) when you need to understand complex relationships
|
|
554
|
+
4. **Combined usage**: You can combine multiple steps in one conversation
|
|
561
555
|
|
|
562
|
-
**Complete
|
|
556
|
+
**Complete example conversation:**
|
|
563
557
|
```
|
|
564
558
|
I want to understand the large file examples/BigService.java:
|
|
565
|
-
1. How
|
|
559
|
+
1. How big is it? What main features does it contain?
|
|
566
560
|
2. How is the authentication feature implemented?
|
|
567
|
-
3. What public API methods are
|
|
561
|
+
3. What public API methods are available?
|
|
568
562
|
```
|
|
569
563
|
|
|
570
|
-
|
|
564
|
+
AI will automatically:
|
|
571
565
|
1. Analyze file structure (1419 lines, 66 methods)
|
|
572
566
|
2. Locate and extract the `authenticateUser` method (lines 141-172)
|
|
573
|
-
3. Generate
|
|
567
|
+
3. Generate list of public methods (19 public methods)
|
|
568
|
+
|
|
569
|
+
---
|
|
570
|
+
|
|
571
|
+
## 5. 🤖 Complete MCP Tool List
|
|
572
|
+
|
|
573
|
+
Tree-sitter Analyzer provides a rich set of MCP tools designed for AI assistants:
|
|
574
|
+
|
|
575
|
+
| Tool Category | Tool Name | Main Function | Core Features |
|
|
576
|
+
|-------------|---------|---------|---------|
|
|
577
|
+
| **📊 Code Analysis** | `check_code_scale` | Fast code file scale analysis | File size statistics, line count statistics, complexity analysis, performance metrics |
|
|
578
|
+
| | `analyze_code_structure` | Code structure analysis and table generation | 🆕 suppress_output parameter, multiple formats (full/compact/csv/json), automatic language detection |
|
|
579
|
+
| | `extract_code_section` | Precise code section extraction | Specified line range extraction, large file efficient processing, original format preservation |
|
|
580
|
+
| **🔍 Intelligent Search** | `list_files` | High-performance file discovery | fd-based, glob patterns, file type filters, time range control |
|
|
581
|
+
| | `search_content` | Regex content search | ripgrep-based, multiple output formats, context control, encoding handling |
|
|
582
|
+
| | `find_and_grep` | Two-stage search | File discovery → content search, fd+ripgrep combination, intelligent cache optimization |
|
|
583
|
+
| **🔧 Advanced Queries** | `query_code` | tree-sitter queries | Predefined query keys, custom query strings, filter expression support |
|
|
584
|
+
| **⚙️ System Management** | `set_project_path` | Project root path setting | Security boundary control, automatic path validation |
|
|
585
|
+
| **📁 Resource Access** | Code file resources | URI code file access | File content access via URI identification |
|
|
586
|
+
| | Project statistics resources | Project statistics data access | Project analysis data and statistical information |
|
|
587
|
+
|
|
588
|
+
### 🆕 v1.7.0 New Feature: suppress_output Function
|
|
589
|
+
|
|
590
|
+
The newly added `suppress_output` parameter in the `analyze_code_structure` tool is a revolutionary token optimization feature:
|
|
591
|
+
|
|
592
|
+
- **Problem solved**: When analysis results are too large, traditional methods return complete table data, consuming massive tokens
|
|
593
|
+
- **Intelligent optimization**: When `suppress_output=true` and `output_file` specified, only basic metadata is returned
|
|
594
|
+
- **Significant effect**: Response size reduced by up to 99%, dramatically saving AI dialog token consumption
|
|
595
|
+
- **Use cases**: Particularly suitable for large code file structure analysis and batch processing scenarios
|
|
574
596
|
|
|
575
597
|
---
|
|
576
598
|
|
|
577
|
-
|
|
599
|
+
## 6. ⚡ Complete CLI Commands
|
|
578
600
|
|
|
579
601
|
#### 📊 Code Structure Analysis Commands
|
|
580
602
|
|
|
581
603
|
```bash
|
|
582
|
-
# Quick analysis (
|
|
604
|
+
# Quick analysis (show summary information)
|
|
583
605
|
uv run python -m tree_sitter_analyzer examples/BigService.java --summary
|
|
584
606
|
|
|
585
|
-
# Detailed analysis (
|
|
607
|
+
# Detailed analysis (show complete structure)
|
|
586
608
|
uv run python -m tree_sitter_analyzer examples/BigService.java --structure
|
|
587
609
|
|
|
588
610
|
# Advanced analysis (including complexity metrics)
|
|
@@ -610,7 +632,7 @@ uv run python -m tree_sitter_analyzer examples/BigService.java --query-key metho
|
|
|
610
632
|
uv run python -m tree_sitter_analyzer examples/BigService.java --query-key classes
|
|
611
633
|
|
|
612
634
|
# Filter query results
|
|
613
|
-
# Find specific
|
|
635
|
+
# Find specific methods
|
|
614
636
|
uv run python -m tree_sitter_analyzer examples/BigService.java --query-key methods --filter "name=main"
|
|
615
637
|
|
|
616
638
|
# Find authentication-related methods (pattern matching)
|
|
@@ -639,7 +661,7 @@ uv run search-content --roots . --query "class.*extends" --include-globs "*.java
|
|
|
639
661
|
uv run search-content --roots tests --query "TODO|FIXME" --context-before 2 --context-after 2
|
|
640
662
|
uv run search-content --files examples/BigService.java examples/Sample.java --query "public.*method" --case insensitive
|
|
641
663
|
|
|
642
|
-
# Two-stage search (find files
|
|
664
|
+
# Two-stage search (first find files, then search content)
|
|
643
665
|
uv run find-and-grep --roots . --query "@SpringBootApplication" --extensions java
|
|
644
666
|
uv run find-and-grep --roots examples --query "import.*SQLException" --extensions java --file-limit 10 --max-count 5
|
|
645
667
|
uv run find-and-grep --roots . --query "public.*static.*void" --extensions java --types f --size "+1k" --output-format json
|
|
@@ -648,123 +670,56 @@ uv run find-and-grep --roots . --query "public.*static.*void" --extensions java
|
|
|
648
670
|
#### ℹ️ Information Query Commands
|
|
649
671
|
|
|
650
672
|
```bash
|
|
651
|
-
#
|
|
673
|
+
# Show help
|
|
652
674
|
uv run python -m tree_sitter_analyzer --help
|
|
653
675
|
|
|
654
676
|
# List supported query keys
|
|
655
677
|
uv run python -m tree_sitter_analyzer --list-queries
|
|
656
678
|
|
|
657
|
-
#
|
|
679
|
+
# Show supported languages
|
|
658
680
|
uv run python -m tree_sitter_analyzer --show-supported-languages
|
|
659
681
|
|
|
660
|
-
#
|
|
682
|
+
# Show supported extensions
|
|
661
683
|
uv run python -m tree_sitter_analyzer --show-supported-extensions
|
|
662
684
|
|
|
663
|
-
#
|
|
685
|
+
# Show common queries
|
|
664
686
|
uv run python -m tree_sitter_analyzer --show-common-queries
|
|
665
687
|
|
|
666
|
-
#
|
|
688
|
+
# Show query language support
|
|
667
689
|
uv run python -m tree_sitter_analyzer --show-query-languages
|
|
668
690
|
```
|
|
669
691
|
|
|
670
692
|
---
|
|
671
693
|
|
|
672
|
-
##
|
|
673
|
-
|
|
674
|
-
Tree-sitter Analyzer provides a rich set of MCP tools designed for AI assistants:
|
|
675
|
-
|
|
676
|
-
| Tool Category | Tool Name | Primary Function | Core Features |
|
|
677
|
-
|--------------|-----------|------------------|---------------|
|
|
678
|
-
| **📊 Code Analysis** | `analyze_code_structure` | Analyze code structure and generate tables | 🆕 suppress_output parameter, multiple formats (full/compact/csv/json), automatic language detection |
|
|
679
|
-
| | `check_code_scale` | Fast code file scale analysis | File size statistics, line count statistics, complexity analysis, performance metrics |
|
|
680
|
-
| | `extract_code_section` | Precise code section extraction | Specified line range extraction, efficient large file processing, preserve original formatting |
|
|
681
|
-
| **🔍 Intelligent Search** | `list_files` | High-performance file discovery | fd-based, glob patterns, file type filtering, time range control |
|
|
682
|
-
| | `search_content` | Regular expression content search | ripgrep-based, multiple output formats, context control, encoding handling |
|
|
683
|
-
| | `find_and_grep` | Two-stage search | Find files → search content, fd+ripgrep combination, intelligent caching optimization |
|
|
684
|
-
| **🔧 Advanced Query** | `query_code` | tree-sitter queries | Predefined query keys, custom query strings, filter expression support |
|
|
685
|
-
| **⚙️ System Management** | `set_project_path` | Set project root path | Security boundary control, automatic path validation |
|
|
686
|
-
| **📁 Resource Access** | Code File Resources | URI code file access | Access file content through URI identification |
|
|
687
|
-
| | Project Statistics Resources | Project statistics data access | Project analysis data and statistical information |
|
|
688
|
-
|
|
689
|
-
### 🆕 v1.7.0 New Feature: suppress_output Functionality
|
|
690
|
-
|
|
691
|
-
The newly added `suppress_output` parameter in the `analyze_code_structure` tool is a revolutionary token optimization feature:
|
|
692
|
-
|
|
693
|
-
- **Problem Solved**: When analysis results are too large, traditional methods return complete table data, consuming massive tokens
|
|
694
|
-
- **Intelligent Optimization**: When `suppress_output=true` and `output_file` is specified, only basic metadata is returned
|
|
695
|
-
- **Significant Effect**: Can reduce response size by up to 99%, dramatically saving AI dialog token consumption
|
|
696
|
-
- **Use Cases**: Particularly suitable for large code file structure analysis and batch processing scenarios
|
|
697
|
-
|
|
698
|
-
---
|
|
694
|
+
## 7. 🛠️ Core Features
|
|
699
695
|
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
-
|
|
704
|
-
-
|
|
705
|
-
-
|
|
706
|
-
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
- Precise extraction by line range
|
|
710
|
-
- Preserve original formatting and indentation
|
|
711
|
-
- Include position metadata
|
|
712
|
-
- Efficient handling of large files
|
|
713
|
-
|
|
714
|
-
### 🔍 Advanced Query Filtering
|
|
715
|
-
- **Exact Match**: `--filter "name=main"`
|
|
716
|
-
- **Pattern Match**: `--filter "name=~auth*"`
|
|
717
|
-
- **Parameter Filter**: `--filter "params=2"`
|
|
718
|
-
- **Modifier Filter**: `--filter "static=true,public=true"`
|
|
719
|
-
- **Compound Conditions**: Combine multiple conditions for precise queries
|
|
720
|
-
|
|
721
|
-
### 🔗 AI Assistant Integration
|
|
722
|
-
- **Claude Desktop** - Full MCP support
|
|
723
|
-
- **Cursor IDE** - Built-in MCP integration
|
|
724
|
-
- **Roo Code** - MCP protocol support
|
|
725
|
-
- **Other MCP-compatible tools** - Universal MCP server
|
|
726
|
-
|
|
727
|
-
### 🌍 Multi-Language Support
|
|
728
|
-
|
|
729
|
-
| Programming Language | Support Level | Plugin Code Lines | Test Coverage | Key Features |
|
|
730
|
-
|---------------------|---------------|-------------------|---------------|--------------|
|
|
731
|
-
| **Java** | Full Support | 1,103 lines | 73.00% | Spring framework, JPA, enterprise features |
|
|
732
|
-
| **Python** | Full Support | 584 lines | 63.26% | Type annotations, decorators, modern Python features |
|
|
733
|
-
| **JavaScript** | Full Support | 1,445 lines | 68.31% | ES6+, React/Vue/Angular, JSX |
|
|
734
|
-
| **TypeScript** | Full Support | 1,729 lines | 72.82% | Interfaces, types, decorators, TSX/JSX, framework detection |
|
|
735
|
-
| **C/C++** | Basic Support | - | - | Basic syntax parsing |
|
|
736
|
-
| **Rust** | Basic Support | - | - | Basic syntax parsing |
|
|
737
|
-
| **Go** | Basic Support | - | - | Basic syntax parsing |
|
|
738
|
-
|
|
739
|
-
### 📁 Advanced File Search
|
|
740
|
-
Powerful file discovery and content search based on fd and ripgrep:
|
|
741
|
-
- **ListFilesTool** - Intelligent file discovery with multiple filtering conditions
|
|
742
|
-
- **SearchContentTool** - Intelligent content search with regular expressions
|
|
743
|
-
- **FindAndGrepTool** - Combined discovery and search, two-stage workflow
|
|
744
|
-
|
|
745
|
-
### 🏗️ Unified Element System
|
|
746
|
-
- **Single Element List** - Unified management of all code elements (classes, methods, fields, imports, packages)
|
|
747
|
-
- **Consistent Element Types** - Each element has an `element_type` attribute
|
|
748
|
-
- **Simplified API** - Clearer interfaces and reduced complexity
|
|
749
|
-
- **Better Maintainability** - Single source of truth for all code elements
|
|
696
|
+
| Feature Category | Feature Name | Core Capabilities | Technical Advantages |
|
|
697
|
+
|------------------|--------------|-------------------|---------------------|
|
|
698
|
+
| **📊 Code Structure Analysis** | Intelligent Parsing Engine | Class, method, and field statistics<br>Package information and import dependencies<br>Complexity metrics (cyclomatic complexity)<br>Precise line number positioning | Tree-sitter based high-precision parsing<br>Large enterprise codebase support<br>Real-time performance optimization |
|
|
699
|
+
| **✂️ Intelligent Code Extraction** | Precision Extraction Tool | Precise extraction by line range<br>Preserves original formatting and indentation<br>Includes position metadata<br>Efficient processing of large files | Zero-loss format preservation<br>Memory-optimized algorithms<br>Streaming processing support |
|
|
700
|
+
| **🔍 Advanced Query Filtering** | Multi-dimensional Filters | **Exact match**: `--filter "name=main"`<br>**Pattern match**: `--filter "name=~auth*"`<br>**Parameter filter**: `--filter "params=2"`<br>**Modifier filter**: `--filter "static=true,public=true"`<br>**Compound conditions**: Combine multiple conditions for precise queries | Flexible query syntax<br>High-performance indexing<br>Intelligent caching mechanisms |
|
|
701
|
+
| **🔗 AI Assistant Integration** | MCP Protocol Support | **Claude Desktop** - Full MCP support<br>**Cursor IDE** - Built-in MCP integration<br>**Roo Code** - MCP protocol support<br>**Other MCP-compatible tools** - Universal MCP server | Standard MCP protocol<br>Plug-and-play design<br>Cross-platform compatibility |
|
|
702
|
+
| **🌍 Multi-language Support** | Enterprise Language Engine | **Java** - Complete support, including Spring, JPA frameworks<br>**Python** - Complete support, including type annotations, decorators<br>**JavaScript** - Enterprise-grade support, including ES6+, React/Vue/Angular, JSX<br>**TypeScript** - **Complete support**, including interfaces, types, decorators, TSX/JSX, framework detection<br>**C/C++, Rust, Go** - Basic support | Framework-aware parsing<br>Syntax extension support<br>Continuous language updates |
|
|
703
|
+
| **📁 Advanced File Search** | fd+ripgrep Integration | **ListFilesTool** - Intelligent file discovery with multiple filtering conditions<br>**SearchContentTool** - Intelligent content search using regular expressions<br>**FindAndGrepTool** - Combined discovery and search, two-stage workflow | Rust-based high-performance tools<br>Parallel processing capabilities<br>Intelligent cache optimization |
|
|
704
|
+
| **🏗️ Unified Element System** | Revolutionary Architecture Design | **Single element list** - Unified management of all code elements (classes, methods, fields, imports, packages)<br>**Consistent element types** - Each element has an `element_type` attribute<br>**Simplified API** - Clearer interfaces and reduced complexity<br>**Better maintainability** - Single source of truth for all code elements | Unified data model<br>Type safety guarantees<br>Extensible design |
|
|
750
705
|
|
|
751
706
|
---
|
|
752
707
|
|
|
753
|
-
## 🏆 Quality Assurance
|
|
708
|
+
## 8. 🏆 Quality Assurance
|
|
754
709
|
|
|
755
710
|
### 📊 Quality Metrics
|
|
756
|
-
- **2,662
|
|
757
|
-
- **79.16%
|
|
758
|
-
- **Zero
|
|
759
|
-
- **Cross-
|
|
711
|
+
- **2,662 tests** - 100% pass rate ✅
|
|
712
|
+
- **79.16% code coverage** - Comprehensive test suite
|
|
713
|
+
- **Zero test failures** - Production ready
|
|
714
|
+
- **Cross-platform support** - Windows, macOS, Linux
|
|
760
715
|
|
|
761
716
|
### ⚡ Latest Quality Achievements (v1.7.0)
|
|
762
|
-
- ✅ **Token
|
|
763
|
-
- ✅ **Intelligent
|
|
764
|
-
- ✅ **Enterprise-
|
|
765
|
-
- ✅ **MCP
|
|
766
|
-
- ✅ **Cross-
|
|
767
|
-
- ✅ **GitFlow
|
|
717
|
+
- ✅ **Token saving feature** - New suppress_output parameter automatically suppresses table output when file output is specified, saving AI token consumption
|
|
718
|
+
- ✅ **Intelligent output control** - Automatically optimizes response size when output_file is specified and suppress_output=true
|
|
719
|
+
- ✅ **Enterprise-grade test coverage** - Comprehensive test suite including complete validation of suppress_output functionality
|
|
720
|
+
- ✅ **MCP tool enhancement** - Complete MCP server tool set supporting advanced file search and content analysis
|
|
721
|
+
- ✅ **Cross-platform path compatibility** - Fixed differences between Windows short path names and macOS symbolic links
|
|
722
|
+
- ✅ **GitFlow implementation** - Professional development/release branch strategy
|
|
768
723
|
|
|
769
724
|
### ⚙️ Running Tests
|
|
770
725
|
```bash
|
|
@@ -780,62 +735,62 @@ uv run pytest tests/test_mcp_server_initialization.py -v
|
|
|
780
735
|
|
|
781
736
|
### 📈 Test Coverage Details
|
|
782
737
|
|
|
783
|
-
| Module Category |
|
|
784
|
-
|
|
785
|
-
|
|
|
786
|
-
| | CLI Main Entry | 94.36% | Excellent |
|
|
787
|
-
| | Query Filter System | 96.06% | Excellent |
|
|
788
|
-
| | Query Service | 86.25% | Good |
|
|
789
|
-
| | MCP Error Handling | 82.76% | Good |
|
|
790
|
-
|
|
|
791
|
-
| | JavaScript Plugin | 76.74% | Good |
|
|
792
|
-
| | Python Plugin | 82.84% | Excellent |
|
|
793
|
-
|
|
|
794
|
-
| | Content Search Tool | 92.70% | Excellent |
|
|
795
|
-
| | Combined Search Tool | 91.57% | Excellent |
|
|
738
|
+
| Module Category | Module Name | Coverage | Quality Level | Main Features |
|
|
739
|
+
|------------------|-------------|-----------|---------------|---------------|
|
|
740
|
+
| **🔧 Core Modules** | Language Detector | 98.41% | Excellent | Automatic programming language recognition |
|
|
741
|
+
| | CLI Main Entry | 94.36% | Excellent | Command line interface |
|
|
742
|
+
| | Query Filter System | 96.06% | Excellent | Code querying and filtering |
|
|
743
|
+
| | Query Service | 86.25% | Good | Query execution engine |
|
|
744
|
+
| | MCP Error Handling | 82.76% | Good | AI assistant integration error handling |
|
|
745
|
+
| **🌍 Language Plugins** | Java Plugin | 80.30% | Excellent | Complete enterprise-grade support |
|
|
746
|
+
| | JavaScript Plugin | 76.74% | Good | Modern ES6+ feature support |
|
|
747
|
+
| | Python Plugin | 82.84% | Excellent | Complete type annotation support |
|
|
748
|
+
| **🤖 MCP Tools** | File Search Tool | 88.77% | Excellent | fd/ripgrep integration |
|
|
749
|
+
| | Content Search Tool | 92.70% | Excellent | Regular expression search |
|
|
750
|
+
| | Combined Search Tool | 91.57% | Excellent | Two-stage search |
|
|
796
751
|
|
|
797
752
|
### ✅ Documentation Verification Status
|
|
798
753
|
|
|
799
754
|
**All content in this README has been verified:**
|
|
800
|
-
- ✅ **All
|
|
801
|
-
- ✅ **All
|
|
802
|
-
- ✅ **SMART
|
|
803
|
-
- ✅ **Cross-
|
|
755
|
+
- ✅ **All commands tested** - All CLI commands have been executed and verified in real environments
|
|
756
|
+
- ✅ **All data is real** - Data such as coverage rates and test counts are directly obtained from test reports
|
|
757
|
+
- ✅ **SMART flow is real** - Demonstrated based on actual BigService.java (1419 lines)
|
|
758
|
+
- ✅ **Cross-platform verified** - Tested on Windows, macOS, Linux environments
|
|
804
759
|
|
|
805
|
-
**Verification
|
|
806
|
-
- Operating
|
|
807
|
-
- Python
|
|
808
|
-
- Project
|
|
809
|
-
- Test
|
|
760
|
+
**Verification environment:**
|
|
761
|
+
- Operating systems: Windows 10, macOS, Linux
|
|
762
|
+
- Python version: 3.10+
|
|
763
|
+
- Project version: tree-sitter-analyzer v1.7.0
|
|
764
|
+
- Test files: BigService.java (1419 lines), sample.py (256 lines), MultiClass.java (54 lines)
|
|
810
765
|
|
|
811
766
|
---
|
|
812
767
|
|
|
813
|
-
## 📚 Documentation & Support
|
|
768
|
+
## 9. 📚 Documentation & Support
|
|
814
769
|
|
|
815
770
|
### 📖 Complete Documentation
|
|
816
|
-
- **[User MCP Setup Guide](MCP_SETUP_USERS.md)** - Simple
|
|
817
|
-
- **[Developer MCP Setup Guide](MCP_SETUP_DEVELOPERS.md)** - Local development
|
|
771
|
+
- **[User MCP Setup Guide](MCP_SETUP_USERS.md)** - Simple setup guide
|
|
772
|
+
- **[Developer MCP Setup Guide](MCP_SETUP_DEVELOPERS.md)** - Local development setup
|
|
818
773
|
- **[Project Root Configuration](PROJECT_ROOT_CONFIG.md)** - Complete configuration reference
|
|
819
774
|
- **[API Documentation](docs/api.md)** - Detailed API reference
|
|
820
775
|
- **[Contributing Guide](CONTRIBUTING.md)** - How to contribute code
|
|
821
776
|
- **[Onboarding & Training Guide](training/README.md)** - System onboarding materials for new members/maintainers
|
|
822
777
|
|
|
823
778
|
### 🤖 AI Collaboration Support
|
|
824
|
-
This project supports AI-assisted development with
|
|
779
|
+
This project supports AI-assisted development with professional quality control:
|
|
825
780
|
|
|
826
781
|
```bash
|
|
827
|
-
#
|
|
782
|
+
# AI system pre-generation checks
|
|
828
783
|
uv run python check_quality.py --new-code-only
|
|
829
784
|
uv run python llm_code_checker.py --check-all
|
|
830
785
|
```
|
|
831
786
|
|
|
832
|
-
📖 **Detailed
|
|
787
|
+
📖 **Detailed guides**:
|
|
833
788
|
- [AI Collaboration Guide](AI_COLLABORATION_GUIDE.md)
|
|
834
789
|
- [LLM Coding Guidelines](LLM_CODING_GUIDELINES.md)
|
|
835
790
|
|
|
836
791
|
### 💝 Sponsors & Acknowledgments
|
|
837
792
|
|
|
838
|
-
**[@o93](https://github.com/o93)** - *
|
|
793
|
+
**[@o93](https://github.com/o93)** - *Lead Sponsor & Supporter*
|
|
839
794
|
- 🚀 **MCP Tool Enhancement**: Sponsored comprehensive MCP fd/ripgrep tool development
|
|
840
795
|
- 🧪 **Test Infrastructure**: Implemented enterprise-grade test coverage (50+ comprehensive test cases)
|
|
841
796
|
- 🔧 **Quality Assurance**: Supported bug fixes and performance improvements
|
|
@@ -845,22 +800,22 @@ uv run python llm_code_checker.py --check-all
|
|
|
845
800
|
|
|
846
801
|
---
|
|
847
802
|
|
|
848
|
-
## 🤝 Contributing & License
|
|
803
|
+
## 10. 🤝 Contributing & License
|
|
849
804
|
|
|
850
805
|
### 🤝 Contributing Guide
|
|
851
806
|
|
|
852
|
-
We welcome
|
|
807
|
+
We welcome all kinds of contributions! Please check our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
853
808
|
|
|
854
|
-
### ⭐ Give us a
|
|
809
|
+
### ⭐ Give us a star!
|
|
855
810
|
|
|
856
|
-
If this project
|
|
811
|
+
If this project has been helpful to you, please give us a ⭐ on GitHub - that's the biggest support for us!
|
|
857
812
|
|
|
858
813
|
### 📄 License
|
|
859
814
|
|
|
860
|
-
MIT License -
|
|
815
|
+
MIT License - see the [LICENSE](LICENSE) file for details.
|
|
861
816
|
|
|
862
817
|
---
|
|
863
818
|
|
|
864
|
-
**🎯 Built for developers
|
|
819
|
+
**🎯 Built for developers working with large codebases and AI assistants**
|
|
865
820
|
|
|
866
|
-
*
|
|
821
|
+
*Making every line of code understandable to AI, enabling every project to break through token limitations*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tree_sitter_analyzer/__init__.py,sha256=
|
|
1
|
+
tree_sitter_analyzer/__init__.py,sha256=Ef0vV4IRflLl-9sQtumxc31etSQ9V6jofhzbUOHp1zQ,3067
|
|
2
2
|
tree_sitter_analyzer/__main__.py,sha256=Zl79tpe4UaMu-7yeztc06tgP0CVMRnvGgas4ZQP5SCs,228
|
|
3
3
|
tree_sitter_analyzer/api.py,sha256=jzwID6fJNdhQkJP3D0lzBVPhOnGIN4tyyMtmRYdK9zI,22753
|
|
4
4
|
tree_sitter_analyzer/cli_main.py,sha256=BuaM-L-Jx3G49qvAUOQVsw0wEM-X0UzPaRszRZBist4,10374
|
|
@@ -89,7 +89,7 @@ tree_sitter_analyzer/security/__init__.py,sha256=ZTqTt24hsljCpTXAZpJC57L7MU5lJLT
|
|
|
89
89
|
tree_sitter_analyzer/security/boundary_manager.py,sha256=3eeENRKWtz2pyZHzd8DiVaq8fdeC6s1eVOuBylSmQPg,9347
|
|
90
90
|
tree_sitter_analyzer/security/regex_checker.py,sha256=jWK6H8PTPgzbwRPfK_RZ8bBTS6rtEbgjY5vr3YWjQ_U,9616
|
|
91
91
|
tree_sitter_analyzer/security/validator.py,sha256=yR4qTWEcXpR--bSFwtWvSgY0AzqujOFAqlc1Z7dlTdk,9809
|
|
92
|
-
tree_sitter_analyzer-1.7.
|
|
93
|
-
tree_sitter_analyzer-1.7.
|
|
94
|
-
tree_sitter_analyzer-1.7.
|
|
95
|
-
tree_sitter_analyzer-1.7.
|
|
92
|
+
tree_sitter_analyzer-1.7.1.dist-info/METADATA,sha256=AcTmJrBzB1FGvHkyUK9ic-9bR5HVuEZnExYb69aEBt8,36459
|
|
93
|
+
tree_sitter_analyzer-1.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
94
|
+
tree_sitter_analyzer-1.7.1.dist-info/entry_points.txt,sha256=gbMks8mHqDZWyGnawAW2uNU5g-mrD1vLBiIoLvnaJP0,780
|
|
95
|
+
tree_sitter_analyzer-1.7.1.dist-info/RECORD,,
|
{tree_sitter_analyzer-1.7.0.dist-info → tree_sitter_analyzer-1.7.1.dist-info}/entry_points.txt
RENAMED
|
@@ -11,3 +11,4 @@ tree-sitter-analyzer-mcp = tree_sitter_analyzer.mcp.server:main_sync
|
|
|
11
11
|
java = tree_sitter_analyzer.languages.java_plugin:JavaPlugin
|
|
12
12
|
javascript = tree_sitter_analyzer.languages.javascript_plugin:JavaScriptPlugin
|
|
13
13
|
python = tree_sitter_analyzer.languages.python_plugin:PythonPlugin
|
|
14
|
+
typescript = tree_sitter_analyzer.languages.typescript_plugin:TypeScriptPlugin
|
|
File without changes
|