tree-sitter-analyzer 1.6.2__tar.gz → 1.7.0__tar.gz
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-1.6.2 → tree_sitter_analyzer-1.7.0}/CHANGELOG.md +41 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/PKG-INFO +74 -53
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/README.md +73 -52
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/README_ja.md +76 -55
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/README_zh.md +78 -163
- tree_sitter_analyzer-1.7.0/coverage.json +1 -0
- tree_sitter_analyzer-1.7.0/examples/suppress_output_demo.py +152 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/pyproject.toml +1 -1
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/pytest.ini +3 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/__init__.py +1 -1
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/javascript_formatter.py +113 -13
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/python_formatter.py +57 -15
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/languages/java_plugin.py +68 -7
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/languages/javascript_plugin.py +43 -1
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/languages/python_plugin.py +157 -49
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/languages/typescript_plugin.py +241 -65
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/resources/project_stats_resource.py +10 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/server.py +73 -18
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/table_format_tool.py +21 -1
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/gitignore_detector.py +36 -17
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/project_detector.py +6 -8
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/utils.py +26 -5
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/uv.lock +1 -1
- tree_sitter_analyzer-1.6.2/coverage.json +0 -1
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.gitattributes +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.gitignore +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.kiro/steering/product.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.kiro/steering/structure.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.kiro/steering/tech.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.pre-commit-config.yaml +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/.pre-commit-hooks.yaml +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/AI_COLLABORATION_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/CODE_STYLE_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/CONTRIBUTING.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/DEPLOYMENT_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/FILE_OUTPUT_FEATURE_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/GITFLOW.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/GITFLOW_ja.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/GITFLOW_zh.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/LANGUAGE_GUIDELINES.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/LLM_CODING_GUIDELINES.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/MCP_SETUP_DEVELOPERS.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/MCP_SETUP_USERS.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/PROJECT_ROOT_CONFIG.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/PYPI_RELEASE_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/PYTHON_SUPPORT_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/REFACTORING_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/build_standalone.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/check_quality.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/docs/GITFLOW_BEST_PRACTICES.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/docs/RELEASE_EXECUTION_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/docs/api.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/docs/mcp_fd_rg_design.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/BigService.java +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/BigService.json +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/BigService.summary.json +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/ComprehensiveTypeScript.ts +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/JavaDocTest.java +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/ModernJavaScript.js +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/MultiClass.java +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/ReactComponent.jsx +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/ReactTypeScriptComponent.tsx +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/Sample.java +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/TypeScriptDeclarations.d.ts +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/cache_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/calculate_token_comparison.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/file_output_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/javascript_analysis_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/project_root_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/sample.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/security_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/security_integration_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/smart_cache_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/examples/total_only_optimization_demo.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/llm_code_checker.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/pypirc_example.txt +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/scripts/README.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/scripts/gitflow_helper.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/scripts/gitflow_release_automation.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/scripts/sync_version.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/scripts/sync_version_minimal.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/start_mcp_server.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/test_python_support.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/01_onboarding.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/02_architecture_map.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/03_cli_cheatsheet.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/04_mcp_cheatsheet.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/05_plugin_tutorial.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/06_quality_workflow.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/07_troubleshooting.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/08_prompt_library.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/09_tasks.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/10_glossary.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/11_takeover_plan.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/CLI_COMMAND_CORRECTIONS.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/IMPROVEMENT_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/training/README.md +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/__main__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/api.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/__main__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/advanced_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/base_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/default_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/find_and_grep_cli.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/list_files_cli.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/partial_read_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/query_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/search_content_cli.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/structure_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/summary_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/commands/table_command.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli/info_commands.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/cli_main.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/constants.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/analysis_engine.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/cache_service.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/engine.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/parser.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/query.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/query_filter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/core/query_service.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/encoding_utils.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/exceptions.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/file_handler.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/base_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/formatter_factory.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/java_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/formatters/typescript_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/interfaces/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/interfaces/cli.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/interfaces/cli_adapter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/interfaces/mcp_adapter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/interfaces/mcp_server.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/language_detector.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/language_loader.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/languages/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/resources/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/resources/code_file_resource.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool_cli_compatible.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/base_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/fd_rg_utils.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/find_and_grep_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/list_files_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/query_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/read_partial_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/search_content_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/tools/universal_analyze_tool.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/error_handler.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/file_output_manager.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/path_resolver.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/mcp/utils/search_cache.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/models.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/output_manager.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/plugins/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/plugins/base.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/plugins/manager.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/queries/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/queries/java.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/queries/javascript.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/queries/python.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/queries/typescript.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/query_loader.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/security/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/security/boundary_manager.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/security/regex_checker.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/security/validator.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/tree_sitter_analyzer/table_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/upload_interactive.py +0 -0
- {tree_sitter_analyzer-1.6.2 → tree_sitter_analyzer-1.7.0}/upload_to_pypi.py +0 -0
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.0] - 2025-10-09
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **🎯 suppress_output Feature**: Revolutionary token optimization feature for `analyze_code_structure` tool
|
|
7
|
+
- **Token Limit Solution**: New `suppress_output` parameter reduces response size by up to 99% when saving to files
|
|
8
|
+
- **Smart Output Control**: When `suppress_output=true` and `output_file` is specified, only essential metadata is returned
|
|
9
|
+
- **Backward Compatibility**: Optional feature that doesn't affect existing functionality
|
|
10
|
+
- **Performance Optimization**: Dramatically reduces context usage for large analysis results
|
|
11
|
+
|
|
12
|
+
- **📊 Enhanced MCP Tools Documentation**: Comprehensive MCP tools reference and usage guide
|
|
13
|
+
- **Complete Tool List**: All 12 MCP tools documented with detailed descriptions
|
|
14
|
+
- **Usage Examples**: Practical examples for each tool with real-world scenarios
|
|
15
|
+
- **Parameter Reference**: Complete parameter documentation for all tools
|
|
16
|
+
- **Integration Guide**: Step-by-step setup instructions for AI assistants
|
|
17
|
+
|
|
18
|
+
- **🌐 Multi-language Documentation Updates**: Synchronized documentation across all language versions
|
|
19
|
+
- **Chinese (README_zh.md)**: Updated with new statistics and MCP tools documentation
|
|
20
|
+
- **Japanese (README_ja.md)**: Complete translation with feature explanations
|
|
21
|
+
- **English (README.md)**: Enhanced with comprehensive MCP tools reference
|
|
22
|
+
|
|
23
|
+
### Improved
|
|
24
|
+
- **📊 Quality Metrics**:
|
|
25
|
+
- Test count increased to 2662 (up from 2046)
|
|
26
|
+
- Code coverage maintained at 79.16%
|
|
27
|
+
- All tests passing with improved system stability
|
|
28
|
+
- **🔧 Code Quality**: Enhanced suppress_output feature implementation and testing
|
|
29
|
+
- **📚 Documentation**: Updated all README versions with new statistics and comprehensive MCP tools documentation
|
|
30
|
+
|
|
31
|
+
### Technical Details
|
|
32
|
+
- **New Files**:
|
|
33
|
+
- `examples/suppress_output_demo.py` - Demonstration of suppress_output feature
|
|
34
|
+
- `tests/test_suppress_output_feature.py` - 356 comprehensive test cases
|
|
35
|
+
- **Enhanced Files**:
|
|
36
|
+
- `tree_sitter_analyzer/mcp/tools/table_format_tool.py` - Added suppress_output functionality
|
|
37
|
+
- All README files updated with v1.7.0 statistics and MCP tools documentation
|
|
38
|
+
- **Test Coverage**: All 2662 tests passing with 79.16% coverage
|
|
39
|
+
- **Quality Metrics**: Enhanced suppress_output feature with comprehensive validation
|
|
40
|
+
- **Breaking Changes**: None - all improvements are backward compatible
|
|
41
|
+
|
|
42
|
+
This minor release introduces the game-changing suppress_output feature that solves token length limitations for large analysis results, along with comprehensive MCP tools documentation across all language versions.
|
|
43
|
+
|
|
3
44
|
## [1.6.2] - 2025-10-07
|
|
4
45
|
|
|
5
46
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tree-sitter-analyzer
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.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
|
|
@@ -165,11 +165,11 @@ Description-Content-Type: text/markdown
|
|
|
165
165
|
|
|
166
166
|
[](https://python.org)
|
|
167
167
|
[](LICENSE)
|
|
168
|
-
[](#quality-assurance)
|
|
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
|
|
@@ -220,12 +220,12 @@ Tree-sitter Analyzer is an enterprise-grade code analysis tool designed for the
|
|
|
220
220
|
- **Java** - Full support (1103 lines of plugin code, 73% coverage), including Spring, JPA frameworks
|
|
221
221
|
- **Python** - Full support (584 lines of plugin code, 63% coverage), including type annotations, decorators
|
|
222
222
|
- **JavaScript** - Enterprise-grade support (1445 lines of plugin code, 68% coverage), including ES6+, React/Vue/Angular, JSX
|
|
223
|
-
- **TypeScript** - **Complete support** (
|
|
223
|
+
- **TypeScript** - **Complete support** (1729 lines of plugin code, 72.82% coverage), including interfaces, types, decorators, TSX/JSX, framework detection
|
|
224
224
|
- **More Languages** - Basic support for C/C++, Rust, Go
|
|
225
225
|
|
|
226
226
|
### 🏆 Production Ready
|
|
227
|
-
- **2,
|
|
228
|
-
- **
|
|
227
|
+
- **2,662 Tests** - 100% pass rate, enterprise-grade quality assurance
|
|
228
|
+
- **79.16% Coverage** - Comprehensive test suite
|
|
229
229
|
- **Cross-Platform Support** - Full compatibility with Windows, macOS, Linux
|
|
230
230
|
- **Continuous Maintenance** - Active development and community support
|
|
231
231
|
|
|
@@ -256,26 +256,15 @@ uv --version
|
|
|
256
256
|
|
|
257
257
|
**fd** and **ripgrep** are high-performance file and content search tools used for advanced MCP features.
|
|
258
258
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
brew install fd ripgrep
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
# scoop install fd ripgrep
|
|
269
|
-
|
|
270
|
-
# Ubuntu/Debian
|
|
271
|
-
sudo apt install fd-find ripgrep
|
|
272
|
-
|
|
273
|
-
# CentOS/RHEL/Fedora
|
|
274
|
-
sudo dnf install fd-find ripgrep
|
|
275
|
-
|
|
276
|
-
# Arch Linux
|
|
277
|
-
sudo pacman -S fd ripgrep
|
|
278
|
-
```
|
|
259
|
+
| Operating System | Package Manager | Installation Command | Notes |
|
|
260
|
+
|-----------------|-----------------|---------------------|-------|
|
|
261
|
+
| **macOS** | Homebrew | `brew install fd ripgrep` | Recommended method |
|
|
262
|
+
| **Windows** | winget | `winget install sharkdp.fd BurntSushi.ripgrep.MSVC` | Recommended method |
|
|
263
|
+
| | Chocolatey | `choco install fd ripgrep` | Alternative method |
|
|
264
|
+
| | Scoop | `scoop install fd ripgrep` | Alternative method |
|
|
265
|
+
| **Ubuntu/Debian** | apt | `sudo apt install fd-find ripgrep` | Official repository |
|
|
266
|
+
| **CentOS/RHEL/Fedora** | dnf | `sudo dnf install fd-find ripgrep` | Official repository |
|
|
267
|
+
| **Arch Linux** | pacman | `sudo pacman -S fd ripgrep` | Official repository |
|
|
279
268
|
|
|
280
269
|
**Verify installation:**
|
|
281
270
|
```bash
|
|
@@ -680,6 +669,34 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
680
669
|
|
|
681
670
|
---
|
|
682
671
|
|
|
672
|
+
## 🤖 Complete MCP Tools List
|
|
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
|
+
---
|
|
699
|
+
|
|
683
700
|
## 🛠️ Core Features
|
|
684
701
|
|
|
685
702
|
### 📊 Code Structure Analysis
|
|
@@ -708,11 +725,16 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
708
725
|
- **Other MCP-compatible tools** - Universal MCP server
|
|
709
726
|
|
|
710
727
|
### 🌍 Multi-Language Support
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
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 |
|
|
716
738
|
|
|
717
739
|
### 📁 Advanced File Search
|
|
718
740
|
Powerful file discovery and content search based on fd and ripgrep:
|
|
@@ -731,16 +753,18 @@ Powerful file discovery and content search based on fd and ripgrep:
|
|
|
731
753
|
## 🏆 Quality Assurance
|
|
732
754
|
|
|
733
755
|
### 📊 Quality Metrics
|
|
734
|
-
- **
|
|
735
|
-
- **
|
|
756
|
+
- **2,662 Tests** - 100% pass rate ✅
|
|
757
|
+
- **79.16% Code Coverage** - Comprehensive test suite
|
|
736
758
|
- **Zero Test Failures** - Production ready
|
|
737
759
|
- **Cross-Platform Support** - Windows, macOS, Linux
|
|
738
760
|
|
|
739
|
-
### ⚡ Latest Quality Achievements (v1.
|
|
761
|
+
### ⚡ Latest Quality Achievements (v1.7.0)
|
|
762
|
+
- ✅ **Token Saving Feature** - New suppress_output parameter automatically suppresses table output when file output is specified, saving AI token consumption
|
|
763
|
+
- ✅ **Intelligent Output Control** - Automatically optimize response size when output_file is specified and suppress_output=true
|
|
764
|
+
- ✅ **Enterprise-Grade Test Coverage** - Added 356 new test cases specifically for suppress_output functionality
|
|
765
|
+
- ✅ **MCP Tools Enhancement** - Complete MCP server toolset supporting advanced file search and content analysis
|
|
740
766
|
- ✅ **Cross-Platform Path Compatibility** - Fixed Windows short path names and macOS symlink differences
|
|
741
|
-
- ✅ **Enterprise-Grade Reliability** - 50+ comprehensive test cases ensure stability
|
|
742
767
|
- ✅ **GitFlow Implementation** - Professional development/release branch strategy
|
|
743
|
-
- ✅ **AI Collaboration Optimization** - Specialized quality control for AI-assisted development
|
|
744
768
|
|
|
745
769
|
### ⚙️ Running Tests
|
|
746
770
|
```bash
|
|
@@ -756,22 +780,19 @@ uv run pytest tests/test_mcp_server_initialization.py -v
|
|
|
756
780
|
|
|
757
781
|
### 📈 Test Coverage Details
|
|
758
782
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
**Language Plugins
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
- **File Search Tool**: 88.77% (Excellent) - fd/ripgrep integration
|
|
773
|
-
- **Content Search Tool**: 92.70% (Excellent) - Regular expression search
|
|
774
|
-
- **Combined Search Tool**: 91.57% (Excellent) - Two-stage search
|
|
783
|
+
| Module Category | Component | Coverage | Quality Level | Code Lines | Features |
|
|
784
|
+
|-----------------|-----------|----------|---------------|------------|----------|
|
|
785
|
+
| **Core Modules** | Language Detector | 98.41% | Excellent | - | Automatic programming language recognition |
|
|
786
|
+
| | CLI Main Entry | 94.36% | Excellent | - | Command-line interface |
|
|
787
|
+
| | Query Filter System | 96.06% | Excellent | - | Code query and filtering |
|
|
788
|
+
| | Query Service | 86.25% | Good | - | Query execution engine |
|
|
789
|
+
| | MCP Error Handling | 82.76% | Good | - | AI assistant integration error handling |
|
|
790
|
+
| **Language Plugins** | Java Plugin | 80.30% | Excellent | 1333 | Full enterprise-grade support |
|
|
791
|
+
| | JavaScript Plugin | 76.74% | Good | 1539 | Modern ES6+ feature support |
|
|
792
|
+
| | Python Plugin | 82.84% | Excellent | 1296 | Full type annotation support |
|
|
793
|
+
| **MCP Tools** | File Search Tool | 88.77% | Excellent | - | fd/ripgrep integration |
|
|
794
|
+
| | Content Search Tool | 92.70% | Excellent | - | Regular expression search |
|
|
795
|
+
| | Combined Search Tool | 91.57% | Excellent | - | Two-stage search |
|
|
775
796
|
|
|
776
797
|
### ✅ Documentation Verification Status
|
|
777
798
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://python.org)
|
|
6
6
|
[](LICENSE)
|
|
7
|
-
[](#quality-assurance)
|
|
8
|
+
[](#quality-assurance)
|
|
9
9
|
[](#quality-assurance)
|
|
10
10
|
[](https://pypi.org/project/tree-sitter-analyzer/)
|
|
11
|
-
[](https://github.com/aimasteracc/tree-sitter-analyzer/releases)
|
|
12
12
|
[](https://github.com/aimasteracc/tree-sitter-analyzer)
|
|
13
13
|
|
|
14
14
|
## 🚀 Enterprise-Grade Code Analysis Tool for the AI Era
|
|
@@ -59,12 +59,12 @@ Tree-sitter Analyzer is an enterprise-grade code analysis tool designed for the
|
|
|
59
59
|
- **Java** - Full support (1103 lines of plugin code, 73% coverage), including Spring, JPA frameworks
|
|
60
60
|
- **Python** - Full support (584 lines of plugin code, 63% coverage), including type annotations, decorators
|
|
61
61
|
- **JavaScript** - Enterprise-grade support (1445 lines of plugin code, 68% coverage), including ES6+, React/Vue/Angular, JSX
|
|
62
|
-
- **TypeScript** - **Complete support** (
|
|
62
|
+
- **TypeScript** - **Complete support** (1729 lines of plugin code, 72.82% coverage), including interfaces, types, decorators, TSX/JSX, framework detection
|
|
63
63
|
- **More Languages** - Basic support for C/C++, Rust, Go
|
|
64
64
|
|
|
65
65
|
### 🏆 Production Ready
|
|
66
|
-
- **2,
|
|
67
|
-
- **
|
|
66
|
+
- **2,662 Tests** - 100% pass rate, enterprise-grade quality assurance
|
|
67
|
+
- **79.16% Coverage** - Comprehensive test suite
|
|
68
68
|
- **Cross-Platform Support** - Full compatibility with Windows, macOS, Linux
|
|
69
69
|
- **Continuous Maintenance** - Active development and community support
|
|
70
70
|
|
|
@@ -95,26 +95,15 @@ uv --version
|
|
|
95
95
|
|
|
96
96
|
**fd** and **ripgrep** are high-performance file and content search tools used for advanced MCP features.
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
brew install fd ripgrep
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
# scoop install fd ripgrep
|
|
108
|
-
|
|
109
|
-
# Ubuntu/Debian
|
|
110
|
-
sudo apt install fd-find ripgrep
|
|
111
|
-
|
|
112
|
-
# CentOS/RHEL/Fedora
|
|
113
|
-
sudo dnf install fd-find ripgrep
|
|
114
|
-
|
|
115
|
-
# Arch Linux
|
|
116
|
-
sudo pacman -S fd ripgrep
|
|
117
|
-
```
|
|
98
|
+
| Operating System | Package Manager | Installation Command | Notes |
|
|
99
|
+
|-----------------|-----------------|---------------------|-------|
|
|
100
|
+
| **macOS** | Homebrew | `brew install fd ripgrep` | Recommended method |
|
|
101
|
+
| **Windows** | winget | `winget install sharkdp.fd BurntSushi.ripgrep.MSVC` | Recommended method |
|
|
102
|
+
| | Chocolatey | `choco install fd ripgrep` | Alternative method |
|
|
103
|
+
| | Scoop | `scoop install fd ripgrep` | Alternative method |
|
|
104
|
+
| **Ubuntu/Debian** | apt | `sudo apt install fd-find ripgrep` | Official repository |
|
|
105
|
+
| **CentOS/RHEL/Fedora** | dnf | `sudo dnf install fd-find ripgrep` | Official repository |
|
|
106
|
+
| **Arch Linux** | pacman | `sudo pacman -S fd ripgrep` | Official repository |
|
|
118
107
|
|
|
119
108
|
**Verify installation:**
|
|
120
109
|
```bash
|
|
@@ -519,6 +508,34 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
519
508
|
|
|
520
509
|
---
|
|
521
510
|
|
|
511
|
+
## 🤖 Complete MCP Tools List
|
|
512
|
+
|
|
513
|
+
Tree-sitter Analyzer provides a rich set of MCP tools designed for AI assistants:
|
|
514
|
+
|
|
515
|
+
| Tool Category | Tool Name | Primary Function | Core Features |
|
|
516
|
+
|--------------|-----------|------------------|---------------|
|
|
517
|
+
| **📊 Code Analysis** | `analyze_code_structure` | Analyze code structure and generate tables | 🆕 suppress_output parameter, multiple formats (full/compact/csv/json), automatic language detection |
|
|
518
|
+
| | `check_code_scale` | Fast code file scale analysis | File size statistics, line count statistics, complexity analysis, performance metrics |
|
|
519
|
+
| | `extract_code_section` | Precise code section extraction | Specified line range extraction, efficient large file processing, preserve original formatting |
|
|
520
|
+
| **🔍 Intelligent Search** | `list_files` | High-performance file discovery | fd-based, glob patterns, file type filtering, time range control |
|
|
521
|
+
| | `search_content` | Regular expression content search | ripgrep-based, multiple output formats, context control, encoding handling |
|
|
522
|
+
| | `find_and_grep` | Two-stage search | Find files → search content, fd+ripgrep combination, intelligent caching optimization |
|
|
523
|
+
| **🔧 Advanced Query** | `query_code` | tree-sitter queries | Predefined query keys, custom query strings, filter expression support |
|
|
524
|
+
| **⚙️ System Management** | `set_project_path` | Set project root path | Security boundary control, automatic path validation |
|
|
525
|
+
| **📁 Resource Access** | Code File Resources | URI code file access | Access file content through URI identification |
|
|
526
|
+
| | Project Statistics Resources | Project statistics data access | Project analysis data and statistical information |
|
|
527
|
+
|
|
528
|
+
### 🆕 v1.7.0 New Feature: suppress_output Functionality
|
|
529
|
+
|
|
530
|
+
The newly added `suppress_output` parameter in the `analyze_code_structure` tool is a revolutionary token optimization feature:
|
|
531
|
+
|
|
532
|
+
- **Problem Solved**: When analysis results are too large, traditional methods return complete table data, consuming massive tokens
|
|
533
|
+
- **Intelligent Optimization**: When `suppress_output=true` and `output_file` is specified, only basic metadata is returned
|
|
534
|
+
- **Significant Effect**: Can reduce response size by up to 99%, dramatically saving AI dialog token consumption
|
|
535
|
+
- **Use Cases**: Particularly suitable for large code file structure analysis and batch processing scenarios
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
522
539
|
## 🛠️ Core Features
|
|
523
540
|
|
|
524
541
|
### 📊 Code Structure Analysis
|
|
@@ -547,11 +564,16 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
547
564
|
- **Other MCP-compatible tools** - Universal MCP server
|
|
548
565
|
|
|
549
566
|
### 🌍 Multi-Language Support
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
567
|
+
|
|
568
|
+
| Programming Language | Support Level | Plugin Code Lines | Test Coverage | Key Features |
|
|
569
|
+
|---------------------|---------------|-------------------|---------------|--------------|
|
|
570
|
+
| **Java** | Full Support | 1,103 lines | 73.00% | Spring framework, JPA, enterprise features |
|
|
571
|
+
| **Python** | Full Support | 584 lines | 63.26% | Type annotations, decorators, modern Python features |
|
|
572
|
+
| **JavaScript** | Full Support | 1,445 lines | 68.31% | ES6+, React/Vue/Angular, JSX |
|
|
573
|
+
| **TypeScript** | Full Support | 1,729 lines | 72.82% | Interfaces, types, decorators, TSX/JSX, framework detection |
|
|
574
|
+
| **C/C++** | Basic Support | - | - | Basic syntax parsing |
|
|
575
|
+
| **Rust** | Basic Support | - | - | Basic syntax parsing |
|
|
576
|
+
| **Go** | Basic Support | - | - | Basic syntax parsing |
|
|
555
577
|
|
|
556
578
|
### 📁 Advanced File Search
|
|
557
579
|
Powerful file discovery and content search based on fd and ripgrep:
|
|
@@ -570,16 +592,18 @@ Powerful file discovery and content search based on fd and ripgrep:
|
|
|
570
592
|
## 🏆 Quality Assurance
|
|
571
593
|
|
|
572
594
|
### 📊 Quality Metrics
|
|
573
|
-
- **
|
|
574
|
-
- **
|
|
595
|
+
- **2,662 Tests** - 100% pass rate ✅
|
|
596
|
+
- **79.16% Code Coverage** - Comprehensive test suite
|
|
575
597
|
- **Zero Test Failures** - Production ready
|
|
576
598
|
- **Cross-Platform Support** - Windows, macOS, Linux
|
|
577
599
|
|
|
578
|
-
### ⚡ Latest Quality Achievements (v1.
|
|
600
|
+
### ⚡ Latest Quality Achievements (v1.7.0)
|
|
601
|
+
- ✅ **Token Saving Feature** - New suppress_output parameter automatically suppresses table output when file output is specified, saving AI token consumption
|
|
602
|
+
- ✅ **Intelligent Output Control** - Automatically optimize response size when output_file is specified and suppress_output=true
|
|
603
|
+
- ✅ **Enterprise-Grade Test Coverage** - Added 356 new test cases specifically for suppress_output functionality
|
|
604
|
+
- ✅ **MCP Tools Enhancement** - Complete MCP server toolset supporting advanced file search and content analysis
|
|
579
605
|
- ✅ **Cross-Platform Path Compatibility** - Fixed Windows short path names and macOS symlink differences
|
|
580
|
-
- ✅ **Enterprise-Grade Reliability** - 50+ comprehensive test cases ensure stability
|
|
581
606
|
- ✅ **GitFlow Implementation** - Professional development/release branch strategy
|
|
582
|
-
- ✅ **AI Collaboration Optimization** - Specialized quality control for AI-assisted development
|
|
583
607
|
|
|
584
608
|
### ⚙️ Running Tests
|
|
585
609
|
```bash
|
|
@@ -595,22 +619,19 @@ uv run pytest tests/test_mcp_server_initialization.py -v
|
|
|
595
619
|
|
|
596
620
|
### 📈 Test Coverage Details
|
|
597
621
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
**Language Plugins
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
- **File Search Tool**: 88.77% (Excellent) - fd/ripgrep integration
|
|
612
|
-
- **Content Search Tool**: 92.70% (Excellent) - Regular expression search
|
|
613
|
-
- **Combined Search Tool**: 91.57% (Excellent) - Two-stage search
|
|
622
|
+
| Module Category | Component | Coverage | Quality Level | Code Lines | Features |
|
|
623
|
+
|-----------------|-----------|----------|---------------|------------|----------|
|
|
624
|
+
| **Core Modules** | Language Detector | 98.41% | Excellent | - | Automatic programming language recognition |
|
|
625
|
+
| | CLI Main Entry | 94.36% | Excellent | - | Command-line interface |
|
|
626
|
+
| | Query Filter System | 96.06% | Excellent | - | Code query and filtering |
|
|
627
|
+
| | Query Service | 86.25% | Good | - | Query execution engine |
|
|
628
|
+
| | MCP Error Handling | 82.76% | Good | - | AI assistant integration error handling |
|
|
629
|
+
| **Language Plugins** | Java Plugin | 80.30% | Excellent | 1333 | Full enterprise-grade support |
|
|
630
|
+
| | JavaScript Plugin | 76.74% | Good | 1539 | Modern ES6+ feature support |
|
|
631
|
+
| | Python Plugin | 82.84% | Excellent | 1296 | Full type annotation support |
|
|
632
|
+
| **MCP Tools** | File Search Tool | 88.77% | Excellent | - | fd/ripgrep integration |
|
|
633
|
+
| | Content Search Tool | 92.70% | Excellent | - | Regular expression search |
|
|
634
|
+
| | Combined Search Tool | 91.57% | Excellent | - | Two-stage search |
|
|
614
635
|
|
|
615
636
|
### ✅ Documentation Verification Status
|
|
616
637
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://python.org)
|
|
6
6
|
[](LICENSE)
|
|
7
|
-
[](#品質保証)
|
|
8
|
+
[](#品質保証)
|
|
9
9
|
[](#品質保証)
|
|
10
10
|
[](https://pypi.org/project/tree-sitter-analyzer/)
|
|
11
|
-
[](https://github.com/aimasteracc/tree-sitter-analyzer/releases)
|
|
12
12
|
[](https://github.com/aimasteracc/tree-sitter-analyzer)
|
|
13
13
|
|
|
14
14
|
## 🚀 AI時代のエンタープライズグレードコード解析ツール
|
|
@@ -56,15 +56,15 @@ Tree-sitter Analyzerは、AI時代のために設計されたエンタープラ
|
|
|
56
56
|
- **統一要素システム** - 革新的な統一コード要素管理アーキテクチャ
|
|
57
57
|
|
|
58
58
|
### 🌍 エンタープライズグレードの多言語サポート
|
|
59
|
-
- **Java** - 完全サポート(
|
|
60
|
-
- **Python** - 完全サポート(
|
|
61
|
-
- **JavaScript** - エンタープライズグレードサポート(
|
|
62
|
-
- **TypeScript** - **完全サポート**(
|
|
59
|
+
- **Java** - 完全サポート(1333行のプラグインコード、80.30%カバレッジ)、Spring、JPAフレームワークを含む
|
|
60
|
+
- **Python** - 完全サポート(1296行のプラグインコード、82.84%カバレッジ)、型アノテーション、デコレータを含む
|
|
61
|
+
- **JavaScript** - エンタープライズグレードサポート(1539行のプラグインコード、76.74%カバレッジ)、ES6+、React/Vue/Angular、JSXを含む
|
|
62
|
+
- **TypeScript** - **完全サポート**(1729行のプラグインコード、72.82%カバレッジ)、インターフェース、型、デコレータ、TSX/JSX、フレームワーク検出を含む
|
|
63
63
|
- **その他の言語** - C/C++、Rust、Goの基本サポート
|
|
64
64
|
|
|
65
65
|
### 🏆 本番環境対応
|
|
66
|
-
- **2,
|
|
67
|
-
- **
|
|
66
|
+
- **2,662のテスト** - 100%合格率、エンタープライズグレードの品質保証
|
|
67
|
+
- **79.16%カバレッジ** - 包括的なテストスイート
|
|
68
68
|
- **クロスプラットフォームサポート** - Windows、macOS、Linuxとの完全な互換性
|
|
69
69
|
- **継続的なメンテナンス** - アクティブな開発とコミュニティサポート
|
|
70
70
|
|
|
@@ -95,26 +95,15 @@ uv --version
|
|
|
95
95
|
|
|
96
96
|
**fd**と**ripgrep**は、高度なMCP機能に使用される高性能なファイルおよびコンテンツ検索ツールです。
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
brew install fd ripgrep
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
# scoop install fd ripgrep
|
|
108
|
-
|
|
109
|
-
# Ubuntu/Debian
|
|
110
|
-
sudo apt install fd-find ripgrep
|
|
111
|
-
|
|
112
|
-
# CentOS/RHEL/Fedora
|
|
113
|
-
sudo dnf install fd-find ripgrep
|
|
114
|
-
|
|
115
|
-
# Arch Linux
|
|
116
|
-
sudo pacman -S fd ripgrep
|
|
117
|
-
```
|
|
98
|
+
| オペレーティングシステム | パッケージマネージャー | インストールコマンド | 備考 |
|
|
99
|
+
|------------------------|---------------------|-------------------|------|
|
|
100
|
+
| **macOS** | Homebrew | `brew install fd ripgrep` | 推奨方法 |
|
|
101
|
+
| **Windows** | winget | `winget install sharkdp.fd BurntSushi.ripgrep.MSVC` | 推奨方法 |
|
|
102
|
+
| | Chocolatey | `choco install fd ripgrep` | 代替方法 |
|
|
103
|
+
| | Scoop | `scoop install fd ripgrep` | 代替方法 |
|
|
104
|
+
| **Ubuntu/Debian** | apt | `sudo apt install fd-find ripgrep` | 公式リポジトリ |
|
|
105
|
+
| **CentOS/RHEL/Fedora** | dnf | `sudo dnf install fd-find ripgrep` | 公式リポジトリ |
|
|
106
|
+
| **Arch Linux** | pacman | `sudo pacman -S fd ripgrep` | 公式リポジトリ |
|
|
118
107
|
|
|
119
108
|
**インストールの確認:**
|
|
120
109
|
```bash
|
|
@@ -519,6 +508,34 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
519
508
|
|
|
520
509
|
---
|
|
521
510
|
|
|
511
|
+
## 🤖 MCP完全ツールリスト
|
|
512
|
+
|
|
513
|
+
Tree-sitter AnalyzerはAIアシスタント向けに設計された豊富なMCPツールセットを提供します:
|
|
514
|
+
|
|
515
|
+
| ツールカテゴリ | ツール名 | 主要機能 | コア特性 |
|
|
516
|
+
|-------------|---------|---------|---------|
|
|
517
|
+
| **📊 コード解析** | `analyze_code_structure` | コード構造解析とテーブル生成 | 🆕 suppress_outputパラメータ、複数フォーマット(full/compact/csv/json)、自動言語検出 |
|
|
518
|
+
| | `check_code_scale` | コードファイル規模の高速解析 | ファイルサイズ統計、行数統計、複雑度解析、パフォーマンス指標 |
|
|
519
|
+
| | `extract_code_section` | 正確なコードセクション抽出 | 指定行範囲抽出、大ファイル効率処理、元フォーマット保持 |
|
|
520
|
+
| **🔍 インテリジェント検索** | `list_files` | 高性能ファイル発見 | fdベース、globパターン、ファイルタイプフィルタ、時間範囲制御 |
|
|
521
|
+
| | `search_content` | 正規表現コンテンツ検索 | ripgrepベース、複数出力フォーマット、コンテキスト制御、エンコーディング処理 |
|
|
522
|
+
| | `find_and_grep` | 2段階検索 | ファイル発見→コンテンツ検索、fd+ripgrep組み合わせ、インテリジェントキャッシュ最適化 |
|
|
523
|
+
| **🔧 高度なクエリ** | `query_code` | tree-sitterクエリ | 事前定義クエリキー、カスタムクエリ文字列、フィルタ式サポート |
|
|
524
|
+
| **⚙️ システム管理** | `set_project_path` | プロジェクトルートパス設定 | セキュリティ境界制御、自動パス検証 |
|
|
525
|
+
| **📁 リソースアクセス** | コードファイルリソース | URIコードファイルアクセス | URI識別によるファイルコンテンツアクセス |
|
|
526
|
+
| | プロジェクト統計リソース | プロジェクト統計データアクセス | プロジェクト解析データと統計情報 |
|
|
527
|
+
|
|
528
|
+
### 🆕 v1.7.0新機能:suppress_output機能
|
|
529
|
+
|
|
530
|
+
`analyze_code_structure`ツールに新しく追加された`suppress_output`パラメータは、革命的なトークン最適化機能です:
|
|
531
|
+
|
|
532
|
+
- **問題解決**:解析結果が大きすぎる場合、従来の方式では完全なテーブルデータを返し、大量のトークンを消費
|
|
533
|
+
- **インテリジェント最適化**:`suppress_output=true`かつ`output_file`指定時、基本メタデータのみを返却
|
|
534
|
+
- **顕著な効果**:レスポンスサイズを最大99%削減、AIダイアログのトークン消費を大幅節約
|
|
535
|
+
- **使用シーン**:大型コードファイルの構造解析やバッチ処理シーンに特に適している
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
522
539
|
## 🛠️ コア機能
|
|
523
540
|
|
|
524
541
|
### 📊 コード構造解析
|
|
@@ -547,11 +564,16 @@ uv run python -m tree_sitter_analyzer --show-query-languages
|
|
|
547
564
|
- **その他のMCP互換ツール** - ユニバーサルMCPサーバー
|
|
548
565
|
|
|
549
566
|
### 🌍 多言語サポート
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
567
|
+
|
|
568
|
+
| プログラミング言語 | サポートレベル | プラグインコード行数 | テストカバレッジ | 主要機能 |
|
|
569
|
+
|------------------|---------------|-------------------|----------------|---------|
|
|
570
|
+
| **Java** | 完全サポート | 1,333行 | 80.30% | Springフレームワーク、JPA、エンタープライズ機能 |
|
|
571
|
+
| **Python** | 完全サポート | 1,296行 | 82.84% | 型アノテーション、デコレータ、モダンPython機能 |
|
|
572
|
+
| **JavaScript** | 完全サポート | 1,539行 | 76.74% | ES6+、React/Vue/Angular、JSX |
|
|
573
|
+
| **TypeScript** | 完全サポート | 1,729行 | 72.82% | インターフェース、型、デコレータ、TSX/JSX、フレームワーク検出 |
|
|
574
|
+
| **C/C++** | 基本サポート | - | - | 基本構文解析 |
|
|
575
|
+
| **Rust** | 基本サポート | - | - | 基本構文解析 |
|
|
576
|
+
| **Go** | 基本サポート | - | - | 基本構文解析 |
|
|
555
577
|
|
|
556
578
|
### 📁 高度なファイル検索
|
|
557
579
|
fdとripgrepに基づく強力なファイル検出とコンテンツ検索:
|
|
@@ -570,16 +592,18 @@ fdとripgrepに基づく強力なファイル検出とコンテンツ検索:
|
|
|
570
592
|
## 🏆 品質保証
|
|
571
593
|
|
|
572
594
|
### 📊 品質メトリクス
|
|
573
|
-
- **
|
|
574
|
-
- **
|
|
595
|
+
- **2,662のテスト** - 100%合格率 ✅
|
|
596
|
+
- **79.16%コードカバレッジ** - 包括的なテストスイート
|
|
575
597
|
- **ゼロテスト失敗** - 本番環境対応
|
|
576
598
|
- **クロスプラットフォームサポート** - Windows、macOS、Linux
|
|
577
599
|
|
|
578
|
-
### ⚡ 最新の品質成果(v1.
|
|
600
|
+
### ⚡ 最新の品質成果(v1.7.0)
|
|
601
|
+
- ✅ **トークン節約機能** - 新しいsuppress_outputパラメータで、ファイル出力時にテーブル出力を自動抑制し、AIトークン消費を節約
|
|
602
|
+
- ✅ **インテリジェント出力制御** - output_file指定時かつsuppress_output=trueの場合、レスポンスサイズを自動最適化
|
|
603
|
+
- ✅ **エンタープライズグレードテストカバレッジ** - suppress_output機能専用の356個の新しいテストケースを追加
|
|
604
|
+
- ✅ **MCPツール強化** - 高度なファイル検索とコンテンツ解析をサポートする完全なMCPサーバーツールセット
|
|
579
605
|
- ✅ **クロスプラットフォームパス互換性** - Windowsの短いパス名とmacOSのシンボリックリンクの違いを修正
|
|
580
|
-
- ✅ **エンタープライズグレードの信頼性** - 50以上の包括的なテストケースで安定性を確保
|
|
581
606
|
- ✅ **GitFlow実装** - プロフェッショナルな開発/リリースブランチ戦略
|
|
582
|
-
- ✅ **AIコラボレーション最適化** - AI支援開発のための専門的な品質管理
|
|
583
607
|
|
|
584
608
|
### ⚙️ テストの実行
|
|
585
609
|
```bash
|
|
@@ -595,22 +619,19 @@ uv run pytest tests/test_mcp_server_initialization.py -v
|
|
|
595
619
|
|
|
596
620
|
### 📈 テストカバレッジの詳細
|
|
597
621
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
- **ファイル検索ツール**: 88.77%(優秀) - fd/ripgrep統合
|
|
612
|
-
- **コンテンツ検索ツール**: 92.70%(優秀) - 正規表現検索
|
|
613
|
-
- **組み合わせ検索ツール**: 91.57%(優秀) - 2段階検索
|
|
622
|
+
| モジュールカテゴリ | モジュール名 | カバレッジ | 品質レベル | 主要機能 |
|
|
623
|
+
|------------------|-------------|-----------|-----------|---------|
|
|
624
|
+
| **🔧 コアモジュール** | 言語検出器 | 98.41% | 優秀 | 自動プログラミング言語認識 |
|
|
625
|
+
| | CLIメインエントリ | 94.36% | 優秀 | コマンドラインインターフェース |
|
|
626
|
+
| | クエリフィルタシステム | 96.06% | 優秀 | コードクエリとフィルタリング |
|
|
627
|
+
| | クエリサービス | 86.25% | 良好 | クエリ実行エンジン |
|
|
628
|
+
| | MCPエラー処理 | 82.76% | 良好 | AIアシスタント統合エラー処理 |
|
|
629
|
+
| **🌍 言語プラグイン** | Javaプラグイン | 73.00% | 良好 | 1103行のコード、完全なエンタープライズグレードサポート |
|
|
630
|
+
| | JavaScriptプラグイン | 68.31% | 良好 | 1445行のコード、モダンなES6+機能サポート |
|
|
631
|
+
| | Pythonプラグイン | 63.26% | 良好 | 584行のコード、完全な型アノテーションサポート |
|
|
632
|
+
| **🤖 MCPツール** | ファイル検索ツール | 88.77% | 優秀 | fd/ripgrep統合 |
|
|
633
|
+
| | コンテンツ検索ツール | 92.70% | 優秀 | 正規表現検索 |
|
|
634
|
+
| | 組み合わせ検索ツール | 91.57% | 優秀 | 2段階検索 |
|
|
614
635
|
|
|
615
636
|
### ✅ ドキュメント検証ステータス
|
|
616
637
|
|