tree-sitter-analyzer 1.0.0__py3-none-any.whl → 1.1.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.
- tree_sitter_analyzer/__init__.py +132 -132
- tree_sitter_analyzer/api.py +542 -542
- tree_sitter_analyzer/cli/commands/base_command.py +181 -181
- tree_sitter_analyzer/cli/commands/partial_read_command.py +139 -139
- tree_sitter_analyzer/cli/info_commands.py +124 -124
- tree_sitter_analyzer/cli_main.py +327 -327
- tree_sitter_analyzer/core/analysis_engine.py +584 -584
- tree_sitter_analyzer/core/query_service.py +162 -162
- tree_sitter_analyzer/file_handler.py +212 -212
- tree_sitter_analyzer/formatters/base_formatter.py +169 -169
- tree_sitter_analyzer/interfaces/cli.py +535 -535
- tree_sitter_analyzer/mcp/__init__.py +1 -1
- tree_sitter_analyzer/mcp/resources/__init__.py +1 -1
- tree_sitter_analyzer/mcp/resources/project_stats_resource.py +16 -5
- tree_sitter_analyzer/mcp/server.py +655 -655
- tree_sitter_analyzer/mcp/tools/__init__.py +30 -30
- tree_sitter_analyzer/mcp/utils/__init__.py +2 -2
- tree_sitter_analyzer/mcp/utils/error_handler.py +569 -569
- tree_sitter_analyzer/mcp/utils/path_resolver.py +414 -414
- tree_sitter_analyzer/output_manager.py +257 -257
- tree_sitter_analyzer/project_detector.py +330 -330
- tree_sitter_analyzer/security/boundary_manager.py +260 -260
- tree_sitter_analyzer/security/validator.py +257 -257
- tree_sitter_analyzer/table_formatter.py +710 -710
- tree_sitter_analyzer/utils.py +335 -335
- {tree_sitter_analyzer-1.0.0.dist-info → tree_sitter_analyzer-1.1.0.dist-info}/METADATA +11 -11
- {tree_sitter_analyzer-1.0.0.dist-info → tree_sitter_analyzer-1.1.0.dist-info}/RECORD +29 -29
- {tree_sitter_analyzer-1.0.0.dist-info → tree_sitter_analyzer-1.1.0.dist-info}/WHEEL +0 -0
- {tree_sitter_analyzer-1.0.0.dist-info → tree_sitter_analyzer-1.1.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
MCP Tools package for Tree-sitter Analyzer
|
|
4
|
-
|
|
5
|
-
This package contains all MCP tools that provide specific functionality
|
|
6
|
-
through the Model Context Protocol.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
from typing import Any
|
|
10
|
-
|
|
11
|
-
__version__ = "1.
|
|
12
|
-
|
|
13
|
-
# Tool registry for easy access
|
|
14
|
-
AVAILABLE_TOOLS: dict[str, dict[str, Any]] = {
|
|
15
|
-
"analyze_code_scale": {
|
|
16
|
-
"description": "Analyze code scale, complexity, and structure metrics",
|
|
17
|
-
"module": "analyze_scale_tool",
|
|
18
|
-
"class": "AnalyzeScaleTool",
|
|
19
|
-
},
|
|
20
|
-
# Future tools will be added here
|
|
21
|
-
# "read_code_partial": {
|
|
22
|
-
# "description": "Read partial content from code files",
|
|
23
|
-
# "module": "read_partial_tool",
|
|
24
|
-
# "class": "ReadPartialTool",
|
|
25
|
-
# },
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
__all__ = [
|
|
29
|
-
"AVAILABLE_TOOLS",
|
|
30
|
-
]
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
MCP Tools package for Tree-sitter Analyzer
|
|
4
|
+
|
|
5
|
+
This package contains all MCP tools that provide specific functionality
|
|
6
|
+
through the Model Context Protocol.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
__version__ = "1.1.0"
|
|
12
|
+
|
|
13
|
+
# Tool registry for easy access
|
|
14
|
+
AVAILABLE_TOOLS: dict[str, dict[str, Any]] = {
|
|
15
|
+
"analyze_code_scale": {
|
|
16
|
+
"description": "Analyze code scale, complexity, and structure metrics",
|
|
17
|
+
"module": "analyze_scale_tool",
|
|
18
|
+
"class": "AnalyzeScaleTool",
|
|
19
|
+
},
|
|
20
|
+
# Future tools will be added here
|
|
21
|
+
# "read_code_partial": {
|
|
22
|
+
# "description": "Read partial content from code files",
|
|
23
|
+
# "module": "read_partial_tool",
|
|
24
|
+
# "class": "ReadPartialTool",
|
|
25
|
+
# },
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"AVAILABLE_TOOLS",
|
|
30
|
+
]
|
|
@@ -30,12 +30,12 @@ from .error_handler import (
|
|
|
30
30
|
from .path_resolver import PathResolver, resolve_path
|
|
31
31
|
|
|
32
32
|
# Module metadata
|
|
33
|
-
__version__ = "
|
|
33
|
+
__version__ = "1.1.0"
|
|
34
34
|
__author__ = "Tree-Sitter Analyzer Team"
|
|
35
35
|
|
|
36
36
|
# MCP Utils capabilities
|
|
37
37
|
MCP_UTILS_CAPABILITIES = {
|
|
38
|
-
"version": "
|
|
38
|
+
"version": "1.1.0",
|
|
39
39
|
"features": [
|
|
40
40
|
"Comprehensive Error Handling",
|
|
41
41
|
"Unified Core Services Integration",
|