codeboarding 0.15.6__tar.gz → 0.16.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.
- {codeboarding-0.15.6 → codeboarding-0.16.0}/PKG-INFO +2 -1
- {codeboarding-0.15.6 → codeboarding-0.16.0}/README.md +2 -1
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/agent_responses.py +0 -23
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/llm_errors.py +35 -4
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/prompts/__init__.py +1 -16
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/prompts/profiles.py +1 -1
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/prompts/shared.py +1 -36
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/PKG-INFO +2 -1
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/SOURCES.txt +3 -2
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/requires.txt +1 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/bootstrap.py +3 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/diagram_generator.py +4 -24
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/constants.py +3 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/install.py +14 -5
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/ignore.py +2 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/__init__.py +1 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/installers.py +2 -2
- codeboarding-0.16.0/infra/tool_registry/kotlin-server-1.json +11 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/manifest.py +7 -5
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/registry.py +37 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/user_config.py +0 -25
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/vscode_constants.py +14 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/pyproject.toml +2 -1
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/__init__.py +1 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/analysis_cache.py +24 -2
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/exceptions.py +0 -14
- codeboarding-0.16.0/static_analyzer/clustering/names/__init__.py +5 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/names/frontier.py +42 -96
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/names/inventory.py +10 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/names/replay.py +15 -20
- codeboarding-0.15.6/static_analyzer/clustering/names/draft.py → codeboarding-0.16.0/static_analyzer/clustering/names/root.py +83 -440
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/names/spec.py +23 -34
- codeboarding-0.16.0/static_analyzer/clustering/names/split.py +499 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/names/tokens.py +5 -5
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/service.py +150 -94
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/config.py +6 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/__init__.py +2 -0
- codeboarding-0.16.0/static_analyzer/engine/adapters/dart_adapter.py +118 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/call_graph_builder.py +37 -30
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/edge_builder.py +9 -2
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/hierarchy_builder.py +8 -5
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/models.py +2 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/result_converter.py +3 -2
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/source_inspector.py +123 -16
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/symbol_table.py +18 -7
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/graph_definitions.py +24 -12
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/incremental_orchestrator.py +25 -13
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/node.py +7 -0
- codeboarding-0.15.6/agents/tree_planner_agent.py +0 -298
- codeboarding-0.15.6/infra/tool_registry/kotlin-server-1.json +0 -11
- codeboarding-0.15.6/static_analyzer/clustering/names/__init__.py +0 -51
- {codeboarding-0.15.6 → codeboarding-0.16.0}/LICENSE +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/PYPI.md +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/change_status.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/component_ownership.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/constants.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/content_hash.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/file_index_models.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/incremental_results.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/llm_config.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/llm_renderers/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/llm_renderers/call_graph.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/llm_renderers/scope.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/model_capabilities.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/planner_agent.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/relation_edges.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/retry.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/scope_analysis_agent.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/scope_ids.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/tools/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/tools/base.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/tools/get_method_calls.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/agents/tools/read_file.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/dependency_links.txt +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/entry_points.txt +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding.egg-info/top_level.txt +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/commands/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/commands/full_analysis.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/commands/incremental_analysis.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/commands/partial_analysis.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/github_action.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/main.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/render.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_cli/view_instructions.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/analysis.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/fingerprint_diff.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/orchestration.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/sources/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/sources/local.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/codeboarding_workflows/sources/remote.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/analysis_json.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/cluster_relations.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/exceptions.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/file_coverage.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/file_index.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/incremental_changes.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/incremental_update.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/io_utils.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/reference_resolver.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/run_context.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/run_mode.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/scope_assembly.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/scope_plan.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/diagram_analysis/tree_shape.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/checks/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/checks/circular_deps.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/checks/function_size.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/checks/unused_code_diagnostics.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/config.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/main.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/models.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/plugins/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/plugins/plugin_loader.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/plugins/protocols.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/plugins/registry.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/health/runner.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/analysis_format.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/clustering_ids.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/logging_config.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/callbacks.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/context.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/mixin.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/paths.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/stats.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/telemetry/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/telemetry/device_id.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/telemetry/events.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/telemetry/schemas.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/telemetry/service.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/monitoring/writers.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/change_detector.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/errors.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/git_ops.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/repo_utils/path_utils.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/grammars.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/java.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/tool_registry/paths.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/infra/utils.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/html.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/html_template.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/markdown.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/mdx.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/rendering.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/output_generators/sphinx.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/setup.cfg +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/analysis_result.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/cfg/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/cfg/call_graph.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/cfg/edge.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/cfg/location_key.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/clustering/models.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/csharp_config_scanner.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/dotnet_sdk.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/dotnet_solution.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/cpp_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/csharp_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/go_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/java_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/kotlin_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/php_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/python_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/rust_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/adapters/typescript_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/cpp_templates.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/edge_build_context.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/language_adapter.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/lsp_client.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/lsp_constants.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/lsp_recycler.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/process_memory.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/progress.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/protocols.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/engine/utils.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/exceptions.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/external_calls.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/internal_references.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/java_config_scanner.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/java_utils.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/language_results.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/lsp_client/__init__.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/lsp_client/diagnostics.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/programming_language.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/scanner.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/typescript_config_scanner.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/typescript_plugin/node_modules/codeboarding-workspace-sources/index.js +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/typescript_plugin/node_modules/codeboarding-workspace-sources/package.json +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/typescript_workspace.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/static_analyzer/workspace_dependencies.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_devcontainer.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_persisted_analysis_artifacts.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_pyproject_packages.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_view_instructions.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_windows_compatibility.py +0 -0
- {codeboarding-0.15.6 → codeboarding-0.16.0}/tests/test_windows_encoding.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codeboarding
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.16.0
|
|
4
4
|
Summary: Interactive Diagrams for Code
|
|
5
5
|
Author: CodeBoarding Team
|
|
6
6
|
License-Expression: MIT
|
|
@@ -52,6 +52,7 @@ Requires-Dist: tree-sitter==0.25.2
|
|
|
52
52
|
Requires-Dist: tree-sitter-c-sharp==0.23.5
|
|
53
53
|
Requires-Dist: tree-sitter-cpp==0.23.4
|
|
54
54
|
Requires-Dist: tree-sitter-cuda==0.21.2
|
|
55
|
+
Requires-Dist: tree-sitter-dart==0.1.0
|
|
55
56
|
Requires-Dist: tree-sitter-go==0.25.0
|
|
56
57
|
Requires-Dist: tree-sitter-java==0.23.5
|
|
57
58
|
Requires-Dist: tree-sitter-javascript==0.25.0
|
|
@@ -248,10 +248,11 @@ for the actual depth. Existing baseline loading behavior is unchanged: prefer
|
|
|
248
248
|
|
|
249
249
|
## Supported stack
|
|
250
250
|
|
|
251
|
-
- Languages: Python, TypeScript, JavaScript, Java, Kotlin, Go, PHP, Rust, C#, C++ and CUDA (preview).
|
|
251
|
+
- Languages: Python, TypeScript, JavaScript, Java, Kotlin, Go, PHP, Rust, C#, Dart (including Flutter apps), C++ and CUDA (preview).
|
|
252
252
|
- Java needs a JDK (21 recommended).
|
|
253
253
|
- Kotlin is analysed with JetBrains' [kotlin-lsp](https://github.com/Kotlin/kotlin-lsp) (about 360 MB with its own Java runtime, under the [JetBrains Free Plugin License](https://github.com/Kotlin/kotlin-lsp/blob/main/kotlin-vscode/LICENSE.txt)) and needs glibc 2.34 or newer on Linux. JetBrains' builds expire after about 30 days, so a run that needs Kotlin reads the current build number and checksums from this repository, and keeps the build it has when it cannot. Kotlin calls into Java are not drawn yet.
|
|
254
254
|
- C++ and CUDA are analysed with [clangd](https://clangd.llvm.org/), bundled on Linux x86-64, macOS and Windows x64; other platforms need clangd 20 or newer on `PATH`. Provide `compile_commands.json`, `compile_flags.txt` or `.clangd` for full coverage, since CodeBoarding does not build the project. Incremental updates, and so PR reviews, can still miss or keep stale relations for out-of-line class members and header templates.
|
|
255
|
+
- Dart and Flutter use a managed Flutter 3.27.4 SDK (Dart 3.6.2) on Linux x86-64, macOS x86-64/arm64 and Windows x64. Because it is 0.7 to 1.4 GB, it is downloaded only when an analysed repository has Dart, or by `codeboarding-setup --language dart`; no preinstalled SDK, emulator or native build is required. Analysis runs `pub get` in each package, which writes `.dart_tool/` and, when the repository commits none, `pubspec.lock` into the checkout; a package whose dependencies fail to resolve is analysed without them, with a warning. Flutter-specific widget and navigation graphs are not included.
|
|
255
256
|
- LLM providers: OpenAI, Anthropic, Google, Vercel AI Gateway, AWS Bedrock, Ollama, OpenRouter, OrcaRouter, Requesty, Opper, LiteLLM proxy, and more.
|
|
256
257
|
|
|
257
258
|
## Examples
|
|
@@ -405,29 +405,6 @@ def index_components_by_id(
|
|
|
405
405
|
return {c.component_id: c for c in iter_components(root_analysis, sub_analyses) if c.component_id}
|
|
406
406
|
|
|
407
407
|
|
|
408
|
-
class PlannedGroup(LLMBaseModel):
|
|
409
|
-
"""One component the planner proposes, as the candidate groups it gathers."""
|
|
410
|
-
|
|
411
|
-
name: str = Field(description="One responsibility; never two joined by 'and' or '&'")
|
|
412
|
-
members: list[str] = Field(description="Labels of the candidate groups this component gathers, e.g. ['G1', 'G4']")
|
|
413
|
-
owns: list[str] = Field(
|
|
414
|
-
default_factory=list, description="Domain words this component owns, as they appear in identifiers"
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
def llm_str(self):
|
|
418
|
-
return f"{self.name}: {', '.join(self.members)}"
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
class TreePlanInsights(LLMBaseModel):
|
|
422
|
-
"""How the candidate groups of one scope fold into components."""
|
|
423
|
-
|
|
424
|
-
groups: list[PlannedGroup] = Field(description="The components, each gathering one or more candidate groups")
|
|
425
|
-
notes: str = Field(default="", description="What the names say about this scope's shape")
|
|
426
|
-
|
|
427
|
-
def llm_str(self):
|
|
428
|
-
return "# Tree plan\n" + "\n".join(f"- {group.llm_str()}" for group in self.groups)
|
|
429
|
-
|
|
430
|
-
|
|
431
408
|
class ScopeOperationAction(StrEnum):
|
|
432
409
|
CREATE_COMPONENT = "create_component"
|
|
433
410
|
UPDATE_COMPONENT = "update_component"
|
|
@@ -7,7 +7,11 @@ import logging
|
|
|
7
7
|
import re
|
|
8
8
|
import time
|
|
9
9
|
|
|
10
|
-
from
|
|
10
|
+
from langchain_openai import ChatOpenAI
|
|
11
|
+
from pydantic import SecretStr
|
|
12
|
+
|
|
13
|
+
from agents.llm_config import CODEBOARDING_KEY_TAIL, LLM_PROVIDERS, current_provider_key_context
|
|
14
|
+
from infra.monitoring.telemetry.events import capture_error
|
|
11
15
|
|
|
12
16
|
logger = logging.getLogger(__name__)
|
|
13
17
|
|
|
@@ -21,7 +25,7 @@ EXIT_AUTH_ERROR = 2
|
|
|
21
25
|
EXIT_QUOTA_EXHAUSTED = 3
|
|
22
26
|
|
|
23
27
|
CODEBOARDING_QUOTA_CODE = "free_credits_exhausted"
|
|
24
|
-
# Response contract: licensing-aws/gha_proxy
|
|
28
|
+
# Response contract: licensing-aws/gha_proxy (caller.py QUOTA_MESSAGE, handler.py _error's type).
|
|
25
29
|
PROXY_ERROR_TYPE = "gha_proxy"
|
|
26
30
|
PROXY_QUOTA_MESSAGE = "Resource exhausted: token limit reached"
|
|
27
31
|
|
|
@@ -111,9 +115,8 @@ class LLMQuotaError(RuntimeError):
|
|
|
111
115
|
|
|
112
116
|
def __init__(self, error: BaseException):
|
|
113
117
|
self.telemetry_properties = llm_failure_properties(error)
|
|
114
|
-
self.is_codeboarding_quota = _is_codeboarding_quota(error)
|
|
115
118
|
_, key_tail = current_provider_key_context()
|
|
116
|
-
if
|
|
119
|
+
if _is_codeboarding_quota(error):
|
|
117
120
|
message = (
|
|
118
121
|
"Your CodeBoarding quota is exhausted. "
|
|
119
122
|
"Buy a CodeBoarding license at https://codeboarding.org/pricing, "
|
|
@@ -132,6 +135,34 @@ class LLMQuotaError(RuntimeError):
|
|
|
132
135
|
super().__init__(message)
|
|
133
136
|
|
|
134
137
|
|
|
138
|
+
def raise_if_codeboarding_quota_spent() -> None:
|
|
139
|
+
"""Raise LLMQuotaError when the hosted proxy says the CodeBoarding quota is spent; any other answer passes.
|
|
140
|
+
|
|
141
|
+
Why: a run spends minutes on static analysis before its first LLM call, and the proxy does not meter GET /models.
|
|
142
|
+
"""
|
|
143
|
+
provider, key_tail = current_provider_key_context()
|
|
144
|
+
if key_tail != CODEBOARDING_KEY_TAIL:
|
|
145
|
+
return
|
|
146
|
+
config = LLM_PROVIDERS[provider]
|
|
147
|
+
try:
|
|
148
|
+
# ChatOpenAI for its OpenAI client: Core does not depend on ``openai`` directly.
|
|
149
|
+
client = ChatOpenAI(
|
|
150
|
+
api_key=SecretStr(config.get_api_key() or ""),
|
|
151
|
+
base_url=config.get_resolved_extra_args().get("base_url"),
|
|
152
|
+
timeout=20, # seconds; on no answer the run goes ahead
|
|
153
|
+
max_retries=0,
|
|
154
|
+
).root_client
|
|
155
|
+
client.models.list()
|
|
156
|
+
except Exception as error:
|
|
157
|
+
if not _is_codeboarding_quota(error):
|
|
158
|
+
logger.exception("Quota check before the run got no usable answer; continuing without it")
|
|
159
|
+
return
|
|
160
|
+
quota = LLMQuotaError(error)
|
|
161
|
+
# Mid-run quota errors reach PostHog through track_analysis; this stop comes before any tracked run.
|
|
162
|
+
capture_error("quota_check", quota)
|
|
163
|
+
raise quota from error
|
|
164
|
+
|
|
165
|
+
|
|
135
166
|
def llm_failure_properties(exc: BaseException) -> dict:
|
|
136
167
|
"""Classify a failed LLM call for exception telemetry."""
|
|
137
168
|
quota = is_quota_exhausted(exc)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Model-adapted prompts for
|
|
1
|
+
"""Model-adapted prompts for deterministic scope analysis."""
|
|
2
2
|
|
|
3
3
|
from agents.prompts.profiles import PromptProfile, resolve_prompt_profile
|
|
4
4
|
from agents.prompts.shared import (
|
|
@@ -6,23 +6,9 @@ from agents.prompts.shared import (
|
|
|
6
6
|
SCOPE_ANALYSIS_SYSTEM_MESSAGE,
|
|
7
7
|
STRICT_SCOPE_ANALYSIS_MESSAGE_SUFFIX,
|
|
8
8
|
STRICT_SCOPE_ANALYSIS_SYSTEM_SUFFIX,
|
|
9
|
-
STRICT_TREE_PLAN_MESSAGE_SUFFIX,
|
|
10
|
-
STRICT_TREE_PLAN_SYSTEM_SUFFIX,
|
|
11
|
-
TREE_PLAN_MESSAGE,
|
|
12
|
-
TREE_PLAN_SYSTEM_MESSAGE,
|
|
13
9
|
)
|
|
14
10
|
|
|
15
11
|
|
|
16
|
-
def get_tree_plan_prompts(profile: PromptProfile) -> tuple[str, str]:
|
|
17
|
-
"""Return tree-planning system and task prompts for a model profile."""
|
|
18
|
-
if profile is PromptProfile.STRICT:
|
|
19
|
-
return (
|
|
20
|
-
TREE_PLAN_SYSTEM_MESSAGE + STRICT_TREE_PLAN_SYSTEM_SUFFIX,
|
|
21
|
-
TREE_PLAN_MESSAGE + STRICT_TREE_PLAN_MESSAGE_SUFFIX,
|
|
22
|
-
)
|
|
23
|
-
return TREE_PLAN_SYSTEM_MESSAGE, TREE_PLAN_MESSAGE
|
|
24
|
-
|
|
25
|
-
|
|
26
12
|
def get_scope_analysis_prompts(profile: PromptProfile) -> tuple[str, str]:
|
|
27
13
|
"""Return scope-analysis system and task prompts for a model profile."""
|
|
28
14
|
if profile is PromptProfile.STRICT:
|
|
@@ -36,6 +22,5 @@ def get_scope_analysis_prompts(profile: PromptProfile) -> tuple[str, str]:
|
|
|
36
22
|
__all__ = [
|
|
37
23
|
"PromptProfile",
|
|
38
24
|
"get_scope_analysis_prompts",
|
|
39
|
-
"get_tree_plan_prompts",
|
|
40
25
|
"resolve_prompt_profile",
|
|
41
26
|
]
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
"""Prompts for
|
|
2
|
-
|
|
3
|
-
TREE_PLAN_SYSTEM_MESSAGE = (
|
|
4
|
-
"You group the candidate groups of one scope of a codebase into the components a maintainer "
|
|
5
|
-
"would draw in an architecture diagram. Answer with JSON only."
|
|
6
|
-
)
|
|
7
|
-
|
|
8
|
-
TREE_PLAN_MESSAGE = """Scope: {scope} ({units} files in {count} candidate groups, listed largest first)
|
|
9
|
-
{groups}
|
|
10
|
-
|
|
11
|
-
Each candidate group has already merged the scopes that share a name. Fold them into at most
|
|
12
|
-
{budget} components, each for one responsibility, for example the web app, the mobile app and the
|
|
13
|
-
hybrid app into "Customer experiences".
|
|
14
|
-
|
|
15
|
-
Rules:
|
|
16
|
-
- Every label appears in exactly one component's members. Never split a candidate group.
|
|
17
|
-
- A component holds at least {floor} files. A group with fewer files joins the component whose
|
|
18
|
-
purpose it serves; it never stands alone.
|
|
19
|
-
- Keep apart what does not belong together: use the budget before lumping unrelated groups.
|
|
20
|
-
- Name each component for its one responsibility. Never join two things with "and" or "&".
|
|
21
|
-
- owns: at most 5 lowercase single words this component claims beyond its group names, taken from
|
|
22
|
-
the identifiers listed under its own groups. Never words naming how software is built (handler,
|
|
23
|
-
service, repository, converter).
|
|
24
|
-
|
|
25
|
-
Answer with JSON only, no prose, in this shape:
|
|
26
|
-
{{"groups": [{{"name": "Customer experiences", "members": ["G1", "G4"], "owns": ["customer"]}}]}}
|
|
27
|
-
"""
|
|
1
|
+
"""Prompts for deterministic scope analysis."""
|
|
28
2
|
|
|
29
3
|
SCOPE_ANALYSIS_SYSTEM_MESSAGE = """You name and describe fixed, deterministic component groups in one code scope.
|
|
30
4
|
|
|
@@ -94,15 +68,6 @@ SCOPE_NAME_RETRY_MESSAGE = """These component names are identifiers or directory
|
|
|
94
68
|
Call `ScopeAnalysisResult` again with the same content, giving each of these groups a natural-language name of
|
|
95
69
|
two to five words separated by spaces that says what it does. Do not call any other tool."""
|
|
96
70
|
|
|
97
|
-
STRICT_TREE_PLAN_SYSTEM_SUFFIX = """
|
|
98
|
-
|
|
99
|
-
Follow every constraint literally. Do not explain your reasoning or emit markdown."""
|
|
100
|
-
|
|
101
|
-
STRICT_TREE_PLAN_MESSAGE_SUFFIX = """
|
|
102
|
-
|
|
103
|
-
Before answering, verify that every supplied G-label appears exactly once, no unknown label appears,
|
|
104
|
-
and the result has no more than {budget} groups. Emit one JSON object and nothing else."""
|
|
105
|
-
|
|
106
71
|
STRICT_SCOPE_ANALYSIS_SYSTEM_SUFFIX = """
|
|
107
72
|
|
|
108
73
|
Mandatory execution order:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codeboarding
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.16.0
|
|
4
4
|
Summary: Interactive Diagrams for Code
|
|
5
5
|
Author: CodeBoarding Team
|
|
6
6
|
License-Expression: MIT
|
|
@@ -52,6 +52,7 @@ Requires-Dist: tree-sitter==0.25.2
|
|
|
52
52
|
Requires-Dist: tree-sitter-c-sharp==0.23.5
|
|
53
53
|
Requires-Dist: tree-sitter-cpp==0.23.4
|
|
54
54
|
Requires-Dist: tree-sitter-cuda==0.21.2
|
|
55
|
+
Requires-Dist: tree-sitter-dart==0.1.0
|
|
55
56
|
Requires-Dist: tree-sitter-go==0.25.0
|
|
56
57
|
Requires-Dist: tree-sitter-java==0.23.5
|
|
57
58
|
Requires-Dist: tree-sitter-javascript==0.25.0
|
|
@@ -18,7 +18,6 @@ agents/relation_edges.py
|
|
|
18
18
|
agents/retry.py
|
|
19
19
|
agents/scope_analysis_agent.py
|
|
20
20
|
agents/scope_ids.py
|
|
21
|
-
agents/tree_planner_agent.py
|
|
22
21
|
agents/llm_renderers/__init__.py
|
|
23
22
|
agents/llm_renderers/call_graph.py
|
|
24
23
|
agents/llm_renderers/scope.py
|
|
@@ -153,11 +152,12 @@ static_analyzer/clustering/exceptions.py
|
|
|
153
152
|
static_analyzer/clustering/models.py
|
|
154
153
|
static_analyzer/clustering/service.py
|
|
155
154
|
static_analyzer/clustering/names/__init__.py
|
|
156
|
-
static_analyzer/clustering/names/draft.py
|
|
157
155
|
static_analyzer/clustering/names/frontier.py
|
|
158
156
|
static_analyzer/clustering/names/inventory.py
|
|
159
157
|
static_analyzer/clustering/names/replay.py
|
|
158
|
+
static_analyzer/clustering/names/root.py
|
|
160
159
|
static_analyzer/clustering/names/spec.py
|
|
160
|
+
static_analyzer/clustering/names/split.py
|
|
161
161
|
static_analyzer/clustering/names/tokens.py
|
|
162
162
|
static_analyzer/engine/__init__.py
|
|
163
163
|
static_analyzer/engine/call_graph_builder.py
|
|
@@ -180,6 +180,7 @@ static_analyzer/engine/utils.py
|
|
|
180
180
|
static_analyzer/engine/adapters/__init__.py
|
|
181
181
|
static_analyzer/engine/adapters/cpp_adapter.py
|
|
182
182
|
static_analyzer/engine/adapters/csharp_adapter.py
|
|
183
|
+
static_analyzer/engine/adapters/dart_adapter.py
|
|
183
184
|
static_analyzer/engine/adapters/go_adapter.py
|
|
184
185
|
static_analyzer/engine/adapters/java_adapter.py
|
|
185
186
|
static_analyzer/engine/adapters/kotlin_adapter.py
|
|
@@ -3,6 +3,7 @@ import logging
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
5
|
from agents.llm_config import configure_models, validate_api_key_provided
|
|
6
|
+
from agents.llm_errors import raise_if_codeboarding_quota_spent
|
|
6
7
|
from health.plugins import get_registries, load_plugins
|
|
7
8
|
from diagram_analysis.run_context import RunPaths
|
|
8
9
|
from infra.install import enable_on_demand_install, ensure_tools
|
|
@@ -27,12 +28,14 @@ def resolve_local_run_paths(args: argparse.Namespace) -> RunPaths:
|
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
def bootstrap_environment(output_dir: Path, binary_location: Path | None) -> None:
|
|
31
|
+
"""Logging, configuration, credentials and tools for one CLI run, checked before any analysis starts."""
|
|
30
32
|
setup_logging(log_dir=output_dir)
|
|
31
33
|
ensure_config_template()
|
|
32
34
|
user_cfg = load_user_config()
|
|
33
35
|
user_cfg.apply_to_env()
|
|
34
36
|
configure_models(agent_model=user_cfg.llm.agent_model)
|
|
35
37
|
validate_api_key_provided()
|
|
38
|
+
raise_if_codeboarding_quota_spent()
|
|
36
39
|
load_plugins(get_registries())
|
|
37
40
|
if binary_location is not None:
|
|
38
41
|
update_config(binary_location)
|
|
@@ -81,13 +81,10 @@ from static_analyzer.clustering import (
|
|
|
81
81
|
ClusterGroup,
|
|
82
82
|
ClusterScopeResult,
|
|
83
83
|
)
|
|
84
|
-
from static_analyzer.clustering.exceptions import IncrementalCacheMissingError
|
|
85
|
-
from static_analyzer.clustering.names import
|
|
86
|
-
from static_analyzer.clustering.names.spec import SPEC_VERSION
|
|
84
|
+
from static_analyzer.clustering.exceptions import IncrementalCacheMissingError
|
|
85
|
+
from static_analyzer.clustering.names.spec import SPEC_VERSION, TreeSpec
|
|
87
86
|
from static_analyzer.clustering.names.tokens import is_natural_name
|
|
88
87
|
from static_analyzer.clustering.service import ClusteringService, hierarchy_differs
|
|
89
|
-
from agents.tree_planner_agent import TreePlannerAgent
|
|
90
|
-
from infra.user_config import GROUPER_ENV, GROUPERS
|
|
91
88
|
from static_analyzer.config import AdapterName
|
|
92
89
|
from static_analyzer.programming_language import ProgrammingLanguage
|
|
93
90
|
from static_analyzer.scanner import ProjectScanner
|
|
@@ -699,7 +696,7 @@ class DiagramGenerator:
|
|
|
699
696
|
if not static_analysis.present_languages():
|
|
700
697
|
scanned = ProjectScanner(self.repo_location).scan()
|
|
701
698
|
raise StaticAnalysisFatalError(_empty_analysis_message(self.repo_name, scanned))
|
|
702
|
-
service = ClusteringService(self.
|
|
699
|
+
service = ClusteringService(self.repo_location)
|
|
703
700
|
self.clustering_hierarchy = service.build_full_hierarchy(static_analysis, depth)
|
|
704
701
|
self.tree_spec = service.spec
|
|
705
702
|
else:
|
|
@@ -752,23 +749,6 @@ class DiagramGenerator:
|
|
|
752
749
|
)
|
|
753
750
|
return TreeSpec.from_dict(stored)
|
|
754
751
|
|
|
755
|
-
def _grouper(self) -> Grouper:
|
|
756
|
-
"""The configured grouper: affinity unless another was asked for; the planner needs an LLM."""
|
|
757
|
-
choice = os.getenv(GROUPER_ENV, GROUPERS[0])
|
|
758
|
-
if choice not in GROUPERS:
|
|
759
|
-
raise ValueError(f"{GROUPER_ENV} must be one of {', '.join(GROUPERS)}, not {choice!r}")
|
|
760
|
-
if choice == "affinity":
|
|
761
|
-
return AffinityGrouper()
|
|
762
|
-
if choice == "kinship":
|
|
763
|
-
return KinshipGrouper()
|
|
764
|
-
if self.static_analysis is None:
|
|
765
|
-
raise PlannerUnavailableError("no LLM was initialised before clustering")
|
|
766
|
-
if self._agent_llm is None:
|
|
767
|
-
self._agent_llm = initialize_agent_llm()
|
|
768
|
-
planner = TreePlannerAgent(self._agent_llm)
|
|
769
|
-
self._monitoring_agents["TreePlannerAgent"] = planner
|
|
770
|
-
return planner
|
|
771
|
-
|
|
772
752
|
def _scope_agent(self) -> ScopeAnalysisAgent:
|
|
773
753
|
"""Initialize the shared semantic agent only when a scope needs analysis."""
|
|
774
754
|
if self.scope_analysis_agent is None:
|
|
@@ -1283,7 +1263,7 @@ class DiagramGenerator:
|
|
|
1283
1263
|
raise ClusteringScopeUnavailableError(component.component_id, "no owned CFG nodes")
|
|
1284
1264
|
remaining_depth = max(1, hierarchy_depth - _component_depth(component.component_id))
|
|
1285
1265
|
assert self.tree_spec is not None
|
|
1286
|
-
service = ClusteringService(self.
|
|
1266
|
+
service = ClusteringService(self.repo_location)
|
|
1287
1267
|
# The service replays the specification from the root down to this component, so the
|
|
1288
1268
|
# scope holds the units a full run placed in it, data-only files included.
|
|
1289
1269
|
scope = service.build_scope_hierarchy(graphs, remaining_depth, component.component_id, self.tree_spec)
|
|
@@ -15,6 +15,7 @@ from pathlib import Path
|
|
|
15
15
|
import requests
|
|
16
16
|
from infra.tool_registry import (
|
|
17
17
|
ALL_LANGUAGE_KEYS,
|
|
18
|
+
DEFAULT_LANGUAGE_KEYS,
|
|
18
19
|
PINNED_NODE_VERSION,
|
|
19
20
|
TOOL_REGISTRY,
|
|
20
21
|
ProgressCallback,
|
|
@@ -299,6 +300,13 @@ def parse_args() -> argparse.Namespace:
|
|
|
299
300
|
action="store_true",
|
|
300
301
|
help="Automatically install Visual C++ Redistributable when binaries need it (Windows only)",
|
|
301
302
|
)
|
|
303
|
+
parser.add_argument(
|
|
304
|
+
"--language",
|
|
305
|
+
action="append",
|
|
306
|
+
default=[],
|
|
307
|
+
choices=sorted(ALL_LANGUAGE_KEYS - DEFAULT_LANGUAGE_KEYS),
|
|
308
|
+
help="Also install a language that is otherwise installed only when an analysed repository uses it",
|
|
309
|
+
)
|
|
302
310
|
return parser.parse_args()
|
|
303
311
|
|
|
304
312
|
|
|
@@ -635,11 +643,12 @@ def ensure_tools(
|
|
|
635
643
|
auto_install_npm: bool = False,
|
|
636
644
|
auto_install_vcpp: bool = False,
|
|
637
645
|
on_progress: ProgressCallback | None = None,
|
|
638
|
-
languages: Collection[str] =
|
|
646
|
+
languages: Collection[str] = DEFAULT_LANGUAGE_KEYS,
|
|
639
647
|
) -> None:
|
|
640
648
|
"""Install tools to ~/.codeboarding/servers/ if needed. No-op if already current.
|
|
641
649
|
|
|
642
|
-
*languages* are ``lsp_servers`` keys. Defaults to all languages; an empty collection installs only
|
|
650
|
+
*languages* are ``lsp_servers`` keys. Defaults to all but on-demand languages; an empty collection installs only
|
|
651
|
+
base tools.
|
|
643
652
|
|
|
644
653
|
Uses a file lock so that concurrent instances (multiple VSCode windows)
|
|
645
654
|
don't corrupt binaries by downloading simultaneously.
|
|
@@ -760,7 +769,7 @@ def run_install(
|
|
|
760
769
|
if any(d.key == "kotlin" for d in selected):
|
|
761
770
|
download_grammars(target)
|
|
762
771
|
install_pre_commit_hooks()
|
|
763
|
-
if {dep.key for dep in TOOL_REGISTRY} <= {dep.key for dep in selected}:
|
|
772
|
+
if {dep.key for dep in TOOL_REGISTRY if not dep.on_demand} <= {dep.key for dep in selected}:
|
|
764
773
|
print_language_support_summary(npm_available, target)
|
|
765
774
|
|
|
766
775
|
|
|
@@ -783,7 +792,7 @@ def main() -> None:
|
|
|
783
792
|
lock_path = servers_dir / ".download.lock"
|
|
784
793
|
with open(lock_path, "w") as lock_fd:
|
|
785
794
|
acquire_lock(lock_fd)
|
|
786
|
-
deps = required_tools()
|
|
795
|
+
deps = required_tools(DEFAULT_LANGUAGE_KEYS | set(args.language))
|
|
787
796
|
run_install(auto_install_npm=args.auto_install_npm, auto_install_vcpp=args.auto_install_vcpp, deps=deps)
|
|
788
797
|
write_manifest(deps)
|
|
789
798
|
|
|
@@ -817,7 +826,7 @@ def _language_checks_from_registry(target_dir: Path) -> list[LanguageSupportChec
|
|
|
817
826
|
lsp_servers = VSCODE_CONFIG.get("lsp_servers", {})
|
|
818
827
|
|
|
819
828
|
for dep in TOOL_REGISTRY:
|
|
820
|
-
if dep.config_section != ConfigSection.LSP_SERVERS:
|
|
829
|
+
if dep.config_section != ConfigSection.LSP_SERVERS or dep.on_demand:
|
|
821
830
|
continue
|
|
822
831
|
config_entry = lsp_servers.get(dep.key)
|
|
823
832
|
if config_entry is None:
|
|
@@ -612,7 +612,7 @@ def install_archive_tool(
|
|
|
612
612
|
dep: ToolDependency,
|
|
613
613
|
on_progress: ProgressCallback | None = None,
|
|
614
614
|
) -> None:
|
|
615
|
-
"""Download and extract
|
|
615
|
+
"""Download and extract a compressed tar or zip (``.zip``, ``.sit``) tool archive."""
|
|
616
616
|
assert dep.source, f"{dep.key}: source required for archive tools"
|
|
617
617
|
assert dep.archive_subdir, f"{dep.key}: archive_subdir required for archive tools"
|
|
618
618
|
|
|
@@ -657,7 +657,7 @@ def install_archive_tool(
|
|
|
657
657
|
if is_zip:
|
|
658
658
|
_extract_zip(archive_path, staging)
|
|
659
659
|
else:
|
|
660
|
-
with tarfile.open(archive_path, "r
|
|
660
|
+
with tarfile.open(archive_path, "r:*") as tar:
|
|
661
661
|
tar.extractall(path=staging, filter="tar")
|
|
662
662
|
archive_path.unlink()
|
|
663
663
|
root = _single_root(staging)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "271.3588.0",
|
|
3
|
+
"sha256": {
|
|
4
|
+
"kotlin-server-271.3588.0.tar.gz": "0232cf959ff59e138c7ce2e8665018ca4622cad1088d63aa727e5b4f6ce73717",
|
|
5
|
+
"kotlin-server-271.3588.0-aarch64.tar.gz": "a31835754904fb6286a974bb415edbde971a19fb81646fd431601f57cf33ff52",
|
|
6
|
+
"kotlin-server-271.3588.0.sit": "75685e727b7bb0adcc9d17d9a955d108e4bf6e6c19a6ec838d97315da50cb85a",
|
|
7
|
+
"kotlin-server-271.3588.0-aarch64.sit": "db72f02b4a70936133d66ffbe7540bbed1da3740ab4822dc6684edd04e51b296",
|
|
8
|
+
"kotlin-server-271.3588.0.win.zip": "ef08ed2c0453e34a99214e6f1185de300c83a11971ad232762cad745f37f46ec",
|
|
9
|
+
"kotlin-server-271.3588.0-aarch64.win.zip": "854479efc0dca4b79812f44259fce14933346f990cb1187e8edc3ed914590fdd"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -30,7 +30,7 @@ from .installers import (
|
|
|
30
30
|
)
|
|
31
31
|
from .paths import exe_suffix, get_servers_dir, native_binary_ok, platform_bin_dir, preferred_node_path
|
|
32
32
|
from .registry import (
|
|
33
|
-
|
|
33
|
+
DEFAULT_LANGUAGE_KEYS,
|
|
34
34
|
BASE_TOOL_KEYS,
|
|
35
35
|
PINNED_NODE_VERSION,
|
|
36
36
|
TOOL_REGISTRY,
|
|
@@ -83,8 +83,8 @@ def tool_fingerprint(dep: ToolDependency) -> str:
|
|
|
83
83
|
return ",".join(parts)
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
def required_tools(languages: Collection[str] =
|
|
87
|
-
"""Select base tools and the requested servers; defaults to all languages,
|
|
86
|
+
def required_tools(languages: Collection[str] = DEFAULT_LANGUAGE_KEYS) -> list[ToolDependency]:
|
|
87
|
+
"""Select base tools and the requested servers; defaults to all but on-demand languages, ``()`` to base tools.
|
|
88
88
|
|
|
89
89
|
kotlin-lsp comes at its current pin, which reads main's pin file, so only a selection with Kotlin reads it.
|
|
90
90
|
"""
|
|
@@ -113,8 +113,8 @@ def write_manifest(deps: Collection[ToolDependency] = TOOL_REGISTRY) -> None:
|
|
|
113
113
|
os.replace(tmp, target)
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
def needs_install(languages: Collection[str] =
|
|
117
|
-
"""Check the selected languages' tools for missing or stale installs; defaults to all languages."""
|
|
116
|
+
def needs_install(languages: Collection[str] = DEFAULT_LANGUAGE_KEYS) -> bool:
|
|
117
|
+
"""Check the selected languages' tools for missing or stale installs; defaults to all but on-demand languages."""
|
|
118
118
|
deps = required_tools(languages)
|
|
119
119
|
manifest = read_manifest()
|
|
120
120
|
if manifest.get("version") != installed_version():
|
|
@@ -256,6 +256,8 @@ def resolve_config_from_path() -> dict[str, Any]:
|
|
|
256
256
|
config = deepcopy(VSCODE_CONFIG)
|
|
257
257
|
|
|
258
258
|
for dep in TOOL_REGISTRY:
|
|
259
|
+
if not dep.path_lookup:
|
|
260
|
+
continue
|
|
259
261
|
path = None
|
|
260
262
|
if dep.kind in (ToolKind.NATIVE, ToolKind.NODE, ToolKind.PACKAGE_MANAGER) or (
|
|
261
263
|
dep.kind is ToolKind.ARCHIVE and dep.archive_entry
|
|
@@ -20,6 +20,8 @@ from enum import StrEnum
|
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
from typing import Any
|
|
22
22
|
|
|
23
|
+
from infra.constants import DART_LANGUAGE_KEY
|
|
24
|
+
|
|
23
25
|
|
|
24
26
|
# -- Public types and constants -----------------------------------------------
|
|
25
27
|
|
|
@@ -172,6 +174,10 @@ class ToolDependency:
|
|
|
172
174
|
license_url: str = ""
|
|
173
175
|
js_entry_file: str = ""
|
|
174
176
|
js_entry_parent: str = ""
|
|
177
|
+
# Installed only for a repository that uses the language, never by the default all-languages setup.
|
|
178
|
+
on_demand: bool = False
|
|
179
|
+
# False when a binary on PATH must not stand in for the managed install.
|
|
180
|
+
path_lookup: bool = True
|
|
175
181
|
|
|
176
182
|
def is_available_on_host(self) -> bool:
|
|
177
183
|
"""True unless this is an arch-aware dep whose override map excludes the running
|
|
@@ -240,6 +246,33 @@ TOOL_REGISTRY: list[ToolDependency] = [
|
|
|
240
246
|
archive_subdir="clangd",
|
|
241
247
|
archive_entry="bin/clangd",
|
|
242
248
|
),
|
|
249
|
+
ToolDependency(
|
|
250
|
+
key=DART_LANGUAGE_KEY,
|
|
251
|
+
binary_name="dart",
|
|
252
|
+
kind=ToolKind.ARCHIVE,
|
|
253
|
+
config_section=ConfigSection.LSP_SERVERS,
|
|
254
|
+
source=UpstreamToolSource(
|
|
255
|
+
tag="3.27.4",
|
|
256
|
+
url_template="https://storage.googleapis.com/flutter_infra_release/releases/{asset}",
|
|
257
|
+
asset_arch_overrides={
|
|
258
|
+
("Linux", "x86_64"): "stable/linux/flutter_linux_3.27.4-stable.tar.xz",
|
|
259
|
+
("Darwin", "x86_64"): "stable/macos/flutter_macos_3.27.4-stable.zip",
|
|
260
|
+
("Darwin", "arm64"): "stable/macos/flutter_macos_arm64_3.27.4-stable.zip",
|
|
261
|
+
("Windows", "AMD64"): "stable/windows/flutter_windows_3.27.4-stable.zip",
|
|
262
|
+
},
|
|
263
|
+
sha256={
|
|
264
|
+
"stable/linux/flutter_linux_3.27.4-stable.tar.xz": "64df4273de625433c7ba41967932b782f5f9abf3199db8330782d64508379344",
|
|
265
|
+
"stable/macos/flutter_macos_3.27.4-stable.zip": "4e10b748a01599a79ce414a6257e6465dc71befa128f3868d659d0fca983a485",
|
|
266
|
+
"stable/macos/flutter_macos_arm64_3.27.4-stable.zip": "cc4d6e6c5b1049e9ca8c7e6444430d916ef08eaf2fd8bca059fa79e424051990",
|
|
267
|
+
"stable/windows/flutter_windows_3.27.4-stable.zip": "1141d3edb64c454273feac88f31f84945a1f3309a72c58aa9a5f2bb2b0fc8db3",
|
|
268
|
+
},
|
|
269
|
+
),
|
|
270
|
+
archive_subdir="flutter",
|
|
271
|
+
archive_entry="bin/cache/dart-sdk/bin/dart",
|
|
272
|
+
# Why: the Flutter SDK is 0.7 to 1.4 GB, and Dart and Flutter must come from the same SDK.
|
|
273
|
+
on_demand=True,
|
|
274
|
+
path_lookup=False,
|
|
275
|
+
),
|
|
243
276
|
ToolDependency(
|
|
244
277
|
key="tokei",
|
|
245
278
|
binary_name="tokei",
|
|
@@ -370,3 +403,7 @@ TOOL_REGISTRY: list[ToolDependency] = [
|
|
|
370
403
|
]
|
|
371
404
|
|
|
372
405
|
ALL_LANGUAGE_KEYS = frozenset(dep.key for dep in TOOL_REGISTRY if dep.config_section is ConfigSection.LSP_SERVERS)
|
|
406
|
+
# What setup installs when no languages are named: on-demand servers wait for a repository that needs them.
|
|
407
|
+
DEFAULT_LANGUAGE_KEYS = frozenset(
|
|
408
|
+
dep.key for dep in TOOL_REGISTRY if dep.config_section is ConfigSection.LSP_SERVERS and not dep.on_demand
|
|
409
|
+
)
|
|
@@ -57,11 +57,6 @@ _PROVIDER_ENDPOINT_OVERRIDES: dict[str, str] = {
|
|
|
57
57
|
|
|
58
58
|
_PROVIDER_KEY_TO_ENV: dict[str, str] = _PROVIDER_SECRETS | _PROVIDER_ENDPOINTS | _PROVIDER_ENDPOINT_OVERRIDES
|
|
59
59
|
|
|
60
|
-
GROUPER_ENV = "CODEBOARDING_GROUPER"
|
|
61
|
-
GROUPERS = ("affinity", "kinship", "planner")
|
|
62
|
-
"""How frontier candidates become components: ``affinity`` merges scopes sharing a word, then
|
|
63
|
-
folds a scope toward nine components along the call graph, with no model; ``kinship`` stops
|
|
64
|
-
after the shared words; ``planner`` lets an LLM group across words toward a 5-9 preference."""
|
|
65
60
|
|
|
66
61
|
# Template written to ~/.codeboarding/config.toml on first install.
|
|
67
62
|
CONFIG_TEMPLATE = """\
|
|
@@ -98,13 +93,6 @@ CONFIG_TEMPLATE = """\
|
|
|
98
93
|
[llm]
|
|
99
94
|
# agent_model = "google/gemini-3.8-flash"
|
|
100
95
|
# context_window = 272000 # override if needed
|
|
101
|
-
|
|
102
|
-
# Optional: how top-level components are grouped from the repository's names.
|
|
103
|
-
# "affinity" (default) merges scopes that share a word, then folds toward 9 components
|
|
104
|
-
# along the call graph, with no model call; "kinship" stops after the shared words;
|
|
105
|
-
# "planner" asks the LLM to group across words toward 5-9 components.
|
|
106
|
-
[clustering]
|
|
107
|
-
# grouper = "affinity"
|
|
108
96
|
"""
|
|
109
97
|
|
|
110
98
|
|
|
@@ -139,16 +127,10 @@ class LLMUserConfig:
|
|
|
139
127
|
context_window: int | None = None
|
|
140
128
|
|
|
141
129
|
|
|
142
|
-
@dataclass
|
|
143
|
-
class ClusteringUserConfig:
|
|
144
|
-
grouper: str | None = None
|
|
145
|
-
|
|
146
|
-
|
|
147
130
|
@dataclass
|
|
148
131
|
class UserConfig:
|
|
149
132
|
provider: ProviderUserConfig = field(default_factory=ProviderUserConfig)
|
|
150
133
|
llm: LLMUserConfig = field(default_factory=LLMUserConfig)
|
|
151
|
-
clustering: ClusteringUserConfig = field(default_factory=ClusteringUserConfig)
|
|
152
134
|
|
|
153
135
|
def apply_to_env(self) -> None:
|
|
154
136
|
"""Inject config values into os.environ, without overriding existing shell vars."""
|
|
@@ -156,8 +138,6 @@ class UserConfig:
|
|
|
156
138
|
value = getattr(self.provider, config_key, None)
|
|
157
139
|
if value and not os.environ.get(env_var):
|
|
158
140
|
os.environ[env_var] = value
|
|
159
|
-
if self.clustering.grouper and not os.environ.get(GROUPER_ENV):
|
|
160
|
-
os.environ[GROUPER_ENV] = self.clustering.grouper
|
|
161
141
|
|
|
162
142
|
|
|
163
143
|
def load_user_config(path: Path = CONFIG_PATH) -> UserConfig:
|
|
@@ -170,10 +150,6 @@ def load_user_config(path: Path = CONFIG_PATH) -> UserConfig:
|
|
|
170
150
|
|
|
171
151
|
provider_data = data.get("provider", {})
|
|
172
152
|
llm_data = data.get("llm", {})
|
|
173
|
-
clustering_data = data.get("clustering", {})
|
|
174
|
-
grouper = clustering_data.get("grouper") or None
|
|
175
|
-
if grouper is not None and grouper not in GROUPERS:
|
|
176
|
-
raise ValueError(f"[clustering] grouper must be one of {', '.join(GROUPERS)}, not {grouper!r}")
|
|
177
153
|
|
|
178
154
|
return UserConfig(
|
|
179
155
|
provider=ProviderUserConfig(
|
|
@@ -201,7 +177,6 @@ def load_user_config(path: Path = CONFIG_PATH) -> UserConfig:
|
|
|
201
177
|
agent_model=llm_data.get("agent_model") or None,
|
|
202
178
|
context_window=llm_data.get("context_window"),
|
|
203
179
|
),
|
|
204
|
-
clustering=ClusteringUserConfig(grouper=grouper),
|
|
205
180
|
)
|
|
206
181
|
|
|
207
182
|
|