tree-sitter-analyzer 0.1.1__py3-none-any.whl → 0.1.2__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.

@@ -12,7 +12,7 @@ Architecture:
12
12
  - Data Models: Generic and language-specific code element representations
13
13
  """
14
14
 
15
- __version__ = "0.0.1"
15
+ __version__ = "0.1.2"
16
16
  __author__ = "aisheng.yu"
17
17
  __email__ = "aimasteracc@gmail.com"
18
18
 
@@ -45,7 +45,6 @@ from ..utils import setup_logger
45
45
  from . import MCP_INFO
46
46
  from .resources import CodeFileResource, ProjectStatsResource
47
47
  from .tools.base_tool import MCPTool
48
- from .tools.get_positions_tool import GetPositionsTool
49
48
  from .tools.read_partial_tool import ReadPartialTool
50
49
  from .tools.table_format_tool import TableFormatTool
51
50
  from .tools.universal_analyze_tool import UniversalAnalyzeTool
@@ -73,7 +72,6 @@ class TreeSitterAnalyzerMCPServer:
73
72
  # Initialize MCP tools
74
73
  self.read_partial_tool: MCPTool = ReadPartialTool()
75
74
  self.universal_analyze_tool: MCPTool = UniversalAnalyzeTool()
76
- self.get_positions_tool: MCPTool = GetPositionsTool()
77
75
  self.table_format_tool: MCPTool = TableFormatTool()
78
76
 
79
77
  # Initialize MCP resources
@@ -145,7 +143,6 @@ class TreeSitterAnalyzerMCPServer:
145
143
  # Add tools from tool classes - FIXED VERSION
146
144
  for tool_instance in [
147
145
  self.read_partial_tool,
148
- self.get_positions_tool,
149
146
  self.table_format_tool,
150
147
  self.universal_analyze_tool,
151
148
  ]:
@@ -181,14 +178,6 @@ class TreeSitterAnalyzerMCPServer:
181
178
  text=json.dumps(result, indent=2, ensure_ascii=False),
182
179
  )
183
180
  ]
184
- elif name == "get_code_positions":
185
- result = await self.get_positions_tool.execute(arguments)
186
- return [
187
- TextContent(
188
- type="text",
189
- text=json.dumps(result, indent=2, ensure_ascii=False),
190
- )
191
- ]
192
181
  elif name == "format_table":
193
182
  result = await self.table_format_tool.execute(arguments)
194
183
  return [
@@ -24,11 +24,6 @@ AVAILABLE_TOOLS: Dict[str, Dict[str, Any]] = {
24
24
  # "module": "read_partial_tool",
25
25
  # "class": "ReadPartialTool",
26
26
  # },
27
- # "get_code_positions": {
28
- # "description": "Get position information for code elements",
29
- # "module": "get_positions_tool",
30
- # "class": "GetPositionsTool",
31
- # },
32
27
  }
33
28
 
34
29
  __all__ = [
@@ -235,7 +235,7 @@ class AnalyzeScaleTool:
235
235
  elif total_lines < 1500:
236
236
  guidance["size_category"] = "large"
237
237
  guidance["analysis_strategy"] = (
238
- "This is a large file. Use targeted analysis with get_code_positions and read_code_partial."
238
+ "This is a large file. Use targeted analysis with read_code_partial."
239
239
  )
240
240
  else:
241
241
  guidance["size_category"] = "very_large"
@@ -245,7 +245,6 @@ class AnalyzeScaleTool:
245
245
 
246
246
  # Recommend tools based on file size and complexity
247
247
  if total_lines > 200:
248
- guidance["recommended_tools"].append("get_code_positions")
249
248
  guidance["recommended_tools"].append("read_code_partial")
250
249
 
251
250
  if len(structural_overview["complexity_hotspots"]) > 0: