codeboarding 0.15.5__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.5/codeboarding.egg-info → codeboarding-0.16.0}/PKG-INFO +2 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/README.md +2 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/agent_responses.py +1 -60
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/file_index_models.py +0 -14
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/llm_errors.py +35 -4
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/prompts/__init__.py +1 -16
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/prompts/profiles.py +1 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/prompts/shared.py +1 -36
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/relation_edges.py +18 -54
- {codeboarding-0.15.5 → codeboarding-0.16.0/codeboarding.egg-info}/PKG-INFO +2 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding.egg-info/SOURCES.txt +4 -2
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding.egg-info/requires.txt +1 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/bootstrap.py +3 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/github_action.py +7 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/analysis.py +61 -46
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/fingerprint_diff.py +3 -3
- codeboarding-0.16.0/diagram_analysis/analysis_json.py +787 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/cluster_relations.py +23 -9
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/diagram_generator.py +48 -59
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/exceptions.py +38 -6
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/file_index.py +2 -3
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/io_utils.py +73 -152
- codeboarding-0.16.0/infra/analysis_format.py +11 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/constants.py +3 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/install.py +14 -5
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/telemetry/events.py +19 -2
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/telemetry/schemas.py +6 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/ignore.py +2 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/tool_registry/__init__.py +1 -0
- {codeboarding-0.15.5 → 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.5 → codeboarding-0.16.0}/infra/tool_registry/manifest.py +7 -5
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/tool_registry/registry.py +37 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/user_config.py +0 -25
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/vscode_constants.py +14 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/pyproject.toml +2 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/__init__.py +9 -4
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/analysis_cache.py +24 -2
- {codeboarding-0.15.5 → 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.5 → codeboarding-0.16.0}/static_analyzer/clustering/names/frontier.py +42 -96
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/clustering/names/inventory.py +10 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/clustering/names/replay.py +15 -20
- codeboarding-0.15.5/static_analyzer/clustering/names/draft.py → codeboarding-0.16.0/static_analyzer/clustering/names/root.py +83 -440
- {codeboarding-0.15.5 → 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.5 → codeboarding-0.16.0}/static_analyzer/clustering/names/tokens.py +5 -5
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/clustering/service.py +150 -94
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/config.py +6 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/__init__.py +2 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/cpp_adapter.py +1 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/csharp_adapter.py +1 -1
- codeboarding-0.16.0/static_analyzer/engine/adapters/dart_adapter.py +118 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/rust_adapter.py +7 -13
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/call_graph_builder.py +39 -30
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/edge_builder.py +9 -2
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/hierarchy_builder.py +8 -5
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/language_adapter.py +1 -1
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/lsp_client.py +37 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/models.py +4 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/result_converter.py +5 -2
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/source_inspector.py +203 -29
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/symbol_table.py +18 -7
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/graph_definitions.py +24 -12
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/incremental_orchestrator.py +34 -14
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/node.py +7 -0
- codeboarding-0.15.5/agents/tree_planner_agent.py +0 -298
- codeboarding-0.15.5/diagram_analysis/analysis_json.py +0 -671
- codeboarding-0.15.5/infra/tool_registry/kotlin-server-1.json +0 -11
- codeboarding-0.15.5/static_analyzer/clustering/names/__init__.py +0 -51
- {codeboarding-0.15.5 → codeboarding-0.16.0}/LICENSE +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/PYPI.md +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/change_status.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/component_ownership.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/constants.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/content_hash.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/incremental_results.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/llm_config.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/llm_renderers/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/llm_renderers/call_graph.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/llm_renderers/scope.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/model_capabilities.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/planner_agent.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/retry.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/scope_analysis_agent.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/scope_ids.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/tools/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/tools/base.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/tools/get_method_calls.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/agents/tools/read_file.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding.egg-info/dependency_links.txt +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding.egg-info/entry_points.txt +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding.egg-info/top_level.txt +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/commands/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/commands/full_analysis.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/commands/incremental_analysis.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/commands/partial_analysis.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/main.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/render.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_cli/view_instructions.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/orchestration.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/sources/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/sources/local.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/codeboarding_workflows/sources/remote.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/file_coverage.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/incremental_changes.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/incremental_update.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/reference_resolver.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/run_context.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/run_mode.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/scope_assembly.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/scope_plan.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/diagram_analysis/tree_shape.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/checks/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/checks/circular_deps.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/checks/function_size.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/checks/unused_code_diagnostics.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/config.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/main.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/models.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/plugins/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/plugins/plugin_loader.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/plugins/protocols.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/plugins/registry.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/health/runner.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/clustering_ids.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/logging_config.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/callbacks.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/context.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/mixin.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/paths.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/stats.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/telemetry/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/telemetry/device_id.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/telemetry/service.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/monitoring/writers.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/change_detector.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/errors.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/git_ops.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/repo_utils/path_utils.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/tool_registry/grammars.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/tool_registry/java.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/tool_registry/paths.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/infra/utils.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/html.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/html_template.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/markdown.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/mdx.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/rendering.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/output_generators/sphinx.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/setup.cfg +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/analysis_result.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/cfg/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/cfg/call_graph.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/cfg/edge.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/cfg/location_key.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/clustering/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/clustering/models.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/csharp_config_scanner.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/dotnet_sdk.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/dotnet_solution.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/go_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/java_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/kotlin_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/php_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/python_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/adapters/typescript_adapter.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/cpp_templates.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/edge_build_context.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/lsp_constants.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/lsp_recycler.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/process_memory.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/progress.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/protocols.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/engine/utils.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/exceptions.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/external_calls.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/internal_references.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/java_config_scanner.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/java_utils.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/language_results.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/lsp_client/__init__.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/lsp_client/diagnostics.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/programming_language.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/scanner.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/typescript_config_scanner.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/typescript_plugin/node_modules/codeboarding-workspace-sources/index.js +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/typescript_plugin/node_modules/codeboarding-workspace-sources/package.json +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/typescript_workspace.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/static_analyzer/workspace_dependencies.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/tests/test_devcontainer.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/tests/test_persisted_analysis_artifacts.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/tests/test_pyproject_packages.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/tests/test_view_instructions.py +0 -0
- {codeboarding-0.15.5 → codeboarding-0.16.0}/tests/test_windows_compatibility.py +0 -0
- {codeboarding-0.15.5 → 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
|
|
@@ -9,7 +9,7 @@ from enum import StrEnum
|
|
|
9
9
|
from pydantic import BaseModel, Field
|
|
10
10
|
|
|
11
11
|
from infra.clustering_ids import ComponentId
|
|
12
|
-
from agents.file_index_models import FileEntry, FileMethodGroup
|
|
12
|
+
from agents.file_index_models import FileEntry, FileMethodGroup
|
|
13
13
|
from agents.scope_ids import ROOT_SCOPE_ID
|
|
14
14
|
|
|
15
15
|
logger = logging.getLogger(__name__)
|
|
@@ -89,20 +89,6 @@ class RelationEdge(LLMBaseModel):
|
|
|
89
89
|
exclude=True,
|
|
90
90
|
)
|
|
91
91
|
|
|
92
|
-
@classmethod
|
|
93
|
-
def from_dict(cls, edge: dict, methods_index: dict[str, MethodIndexEntry]) -> RelationEdge:
|
|
94
|
-
source_key = edge.get("source")
|
|
95
|
-
target_key = edge.get("target")
|
|
96
|
-
if not isinstance(source_key, str) or not isinstance(target_key, str):
|
|
97
|
-
raise ValueError("Relation edge endpoints must be method-index keys")
|
|
98
|
-
call_sites = edge.get("call_sites") or []
|
|
99
|
-
return cls(
|
|
100
|
-
source=_relation_endpoint_from_key(source_key, methods_index),
|
|
101
|
-
target=_relation_endpoint_from_key(target_key, methods_index),
|
|
102
|
-
description=edge.get("description", ""),
|
|
103
|
-
call_sites=[RelationCallSite.model_validate(site) for site in call_sites],
|
|
104
|
-
)
|
|
105
|
-
|
|
106
92
|
@classmethod
|
|
107
93
|
def from_edge(cls, edge) -> RelationEdge:
|
|
108
94
|
return cls(
|
|
@@ -138,28 +124,6 @@ class RelationEdge(LLMBaseModel):
|
|
|
138
124
|
)
|
|
139
125
|
|
|
140
126
|
|
|
141
|
-
def _relation_endpoint_from_key(
|
|
142
|
-
key: str,
|
|
143
|
-
methods_index: dict[str, MethodIndexEntry],
|
|
144
|
-
) -> SourceCodeReference:
|
|
145
|
-
indexed = methods_index.get(key)
|
|
146
|
-
if indexed is not None:
|
|
147
|
-
return SourceCodeReference(
|
|
148
|
-
qualified_name=indexed.qualified_name,
|
|
149
|
-
reference_file=indexed.file_path or None,
|
|
150
|
-
reference_start_line=indexed.start_line,
|
|
151
|
-
reference_end_line=indexed.end_line,
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
file_path, separator, qualified_name = key.partition("|")
|
|
155
|
-
if not separator or not qualified_name:
|
|
156
|
-
raise ValueError(f"Malformed relation edge endpoint key: {key!r}")
|
|
157
|
-
return SourceCodeReference(
|
|
158
|
-
qualified_name=qualified_name,
|
|
159
|
-
reference_file=file_path or None,
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
|
|
163
127
|
class Relation(LLMBaseModel):
|
|
164
128
|
"""A relationship between two components."""
|
|
165
129
|
|
|
@@ -441,29 +405,6 @@ def index_components_by_id(
|
|
|
441
405
|
return {c.component_id: c for c in iter_components(root_analysis, sub_analyses) if c.component_id}
|
|
442
406
|
|
|
443
407
|
|
|
444
|
-
class PlannedGroup(LLMBaseModel):
|
|
445
|
-
"""One component the planner proposes, as the candidate groups it gathers."""
|
|
446
|
-
|
|
447
|
-
name: str = Field(description="One responsibility; never two joined by 'and' or '&'")
|
|
448
|
-
members: list[str] = Field(description="Labels of the candidate groups this component gathers, e.g. ['G1', 'G4']")
|
|
449
|
-
owns: list[str] = Field(
|
|
450
|
-
default_factory=list, description="Domain words this component owns, as they appear in identifiers"
|
|
451
|
-
)
|
|
452
|
-
|
|
453
|
-
def llm_str(self):
|
|
454
|
-
return f"{self.name}: {', '.join(self.members)}"
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
class TreePlanInsights(LLMBaseModel):
|
|
458
|
-
"""How the candidate groups of one scope fold into components."""
|
|
459
|
-
|
|
460
|
-
groups: list[PlannedGroup] = Field(description="The components, each gathering one or more candidate groups")
|
|
461
|
-
notes: str = Field(default="", description="What the names say about this scope's shape")
|
|
462
|
-
|
|
463
|
-
def llm_str(self):
|
|
464
|
-
return "# Tree plan\n" + "\n".join(f"- {group.llm_str()}" for group in self.groups)
|
|
465
|
-
|
|
466
|
-
|
|
467
408
|
class ScopeOperationAction(StrEnum):
|
|
468
409
|
CREATE_COMPONENT = "create_component"
|
|
469
410
|
UPDATE_COMPONENT = "update_component"
|
|
@@ -42,20 +42,6 @@ class MethodEntry(BaseModel):
|
|
|
42
42
|
)
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
class MethodIndexEntry(BaseModel):
|
|
46
|
-
"""Serialized method metadata referenced by relation edges."""
|
|
47
|
-
|
|
48
|
-
file_path: str = Field(description="Relative path to the source file.")
|
|
49
|
-
qualified_name: str = Field(description="Fully qualified method/function name.")
|
|
50
|
-
start_line: int = Field(description="Starting line number in the file.")
|
|
51
|
-
end_line: int = Field(description="Ending line number in the file.")
|
|
52
|
-
type: str = Field(description="Node type name (METHOD, FUNCTION, CLASS, ...).")
|
|
53
|
-
content_hash: str = Field(
|
|
54
|
-
default="",
|
|
55
|
-
description="Truncated SHA-256 of the method's source lines; '' when unknown.",
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
|
|
59
45
|
class FileMethodGroup(BaseModel):
|
|
60
46
|
"""All methods/functions belonging to a component within a single file."""
|
|
61
47
|
|
|
@@ -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:
|
|
@@ -133,89 +133,53 @@ def edge_crosses_components(
|
|
|
133
133
|
src_id: str,
|
|
134
134
|
dst_id: str,
|
|
135
135
|
) -> bool:
|
|
136
|
-
"""Return whether
|
|
136
|
+
"""Return whether each endpoint has an owner within its side of the declared component pair.
|
|
137
|
+
|
|
138
|
+
Why an unowned endpoint fails: no component holds it, so analysis.json, which cites only
|
|
139
|
+
component members, could not record the edge.
|
|
140
|
+
"""
|
|
137
141
|
for reference, component_id in ((edge.source, src_id), (edge.target, dst_id)):
|
|
138
142
|
owner = owner_of(reference)
|
|
139
|
-
if
|
|
143
|
+
if component_id and not (owner and is_self_or_descendant(owner, component_id)):
|
|
140
144
|
return False
|
|
141
145
|
return True
|
|
142
146
|
|
|
143
147
|
|
|
144
|
-
def drop_misattributed_edges(
|
|
145
|
-
relations: list[Relation],
|
|
146
|
-
owner_of: Callable[[SourceCodeReference], str],
|
|
147
|
-
) -> list[Relation]:
|
|
148
|
-
"""Drop edges whose owning component contradicts the relation's declared pair.
|
|
149
|
-
|
|
150
|
-
Why: the per-scope ownership index sees only that scope's own components, so an
|
|
151
|
-
out-of-scope endpoint resolves to nothing and the edge survives its own gate. A
|
|
152
|
-
frontier-wide owner map resolves it and rejects the mismatch. A relation stripped of
|
|
153
|
-
every edge is kept: it still stands on its evidence prose, the ordinary shape of an
|
|
154
|
-
inferred relation.
|
|
155
|
-
"""
|
|
156
|
-
filtered: list[Relation] = []
|
|
157
|
-
for relation in relations:
|
|
158
|
-
all_edges = [
|
|
159
|
-
edge
|
|
160
|
-
for edge in relation.all_edges
|
|
161
|
-
if edge_crosses_components(edge, owner_of, relation.src_id, relation.dst_id)
|
|
162
|
-
]
|
|
163
|
-
if len(all_edges) == len(relation.all_edges):
|
|
164
|
-
filtered.append(relation)
|
|
165
|
-
continue
|
|
166
|
-
surviving = {edge.identity() for edge in all_edges}
|
|
167
|
-
filtered.append(
|
|
168
|
-
relation.model_copy(
|
|
169
|
-
update={
|
|
170
|
-
"all_edges": all_edges,
|
|
171
|
-
"key_edges": [edge for edge in relation.key_edges if edge.identity() in surviving],
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
)
|
|
175
|
-
return filtered
|
|
176
|
-
|
|
177
|
-
|
|
178
148
|
def prune_ungrounded_edges(
|
|
179
149
|
relations: list[Relation],
|
|
180
150
|
owner_of: Callable[[SourceCodeReference], str],
|
|
181
151
|
keep_edge: Callable[[RelationEdge], bool],
|
|
182
152
|
changed_members: set[str] | None = None,
|
|
183
153
|
) -> list[Relation]:
|
|
184
|
-
"""Re-apply edge filters after baseline preservation, moving misfiled
|
|
154
|
+
"""Re-apply edge filters after baseline preservation, moving each misfiled edge to the pair its owners join.
|
|
155
|
+
|
|
156
|
+
Why never left where it was: analysis.json files an edge under the pair its owners join, so a
|
|
157
|
+
misfiled one cannot be saved; one whose pair no relation holds is dropped.
|
|
158
|
+
"""
|
|
185
159
|
by_pair: dict[tuple[str, str], Relation] = {(relation.src_id, relation.dst_id): relation for relation in relations}
|
|
186
160
|
additions: dict[tuple[str, str], list[RelationEdge]] = {}
|
|
187
161
|
|
|
188
|
-
def find_relation_pair_for_edge(edge: RelationEdge) -> tuple[
|
|
162
|
+
def find_relation_pair_for_edge(edge: RelationEdge) -> tuple[str, str] | None:
|
|
189
163
|
source = owner_of(edge.source)
|
|
190
164
|
target = owner_of(edge.target)
|
|
191
|
-
if not source or not target:
|
|
192
|
-
return None, False
|
|
193
165
|
if is_self_or_descendant(source, target) or is_self_or_descendant(target, source):
|
|
194
|
-
return None
|
|
166
|
+
return None
|
|
195
167
|
for pair in by_pair:
|
|
196
168
|
if is_self_or_descendant(source, pair[0]) and is_self_or_descendant(target, pair[1]):
|
|
197
|
-
return pair
|
|
198
|
-
return None
|
|
169
|
+
return pair
|
|
170
|
+
return None
|
|
199
171
|
|
|
200
172
|
kept: list[Relation] = []
|
|
201
173
|
for relation in relations:
|
|
202
|
-
pair = (relation.src_id, relation.dst_id)
|
|
203
174
|
all_edges: list[RelationEdge] = []
|
|
204
175
|
for edge in relation.all_edges:
|
|
205
|
-
if not keep_edge(edge):
|
|
176
|
+
if not keep_edge(edge) or not (owner_of(edge.source) and owner_of(edge.target)):
|
|
206
177
|
continue
|
|
207
178
|
if edge_crosses_components(edge, owner_of, relation.src_id, relation.dst_id):
|
|
208
179
|
all_edges.append(edge)
|
|
209
180
|
continue
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
continue
|
|
213
|
-
matching_pair, is_internal = find_relation_pair_for_edge(edge)
|
|
214
|
-
if is_internal:
|
|
215
|
-
continue
|
|
216
|
-
if matching_pair is None or matching_pair == pair:
|
|
217
|
-
all_edges.append(edge)
|
|
218
|
-
else:
|
|
181
|
+
matching_pair = find_relation_pair_for_edge(edge)
|
|
182
|
+
if matching_pair is not None:
|
|
219
183
|
additions.setdefault(matching_pair, []).append(edge)
|
|
220
184
|
surviving = {edge.identity() for edge in all_edges}
|
|
221
185
|
key_edges = [edge for edge in relation.key_edges if edge.identity() in surviving]
|
|
@@ -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
|
|
@@ -82,6 +81,7 @@ health/plugins/plugin_loader.py
|
|
|
82
81
|
health/plugins/protocols.py
|
|
83
82
|
health/plugins/registry.py
|
|
84
83
|
infra/__init__.py
|
|
84
|
+
infra/analysis_format.py
|
|
85
85
|
infra/clustering_ids.py
|
|
86
86
|
infra/constants.py
|
|
87
87
|
infra/install.py
|
|
@@ -152,11 +152,12 @@ static_analyzer/clustering/exceptions.py
|
|
|
152
152
|
static_analyzer/clustering/models.py
|
|
153
153
|
static_analyzer/clustering/service.py
|
|
154
154
|
static_analyzer/clustering/names/__init__.py
|
|
155
|
-
static_analyzer/clustering/names/draft.py
|
|
156
155
|
static_analyzer/clustering/names/frontier.py
|
|
157
156
|
static_analyzer/clustering/names/inventory.py
|
|
158
157
|
static_analyzer/clustering/names/replay.py
|
|
158
|
+
static_analyzer/clustering/names/root.py
|
|
159
159
|
static_analyzer/clustering/names/spec.py
|
|
160
|
+
static_analyzer/clustering/names/split.py
|
|
160
161
|
static_analyzer/clustering/names/tokens.py
|
|
161
162
|
static_analyzer/engine/__init__.py
|
|
162
163
|
static_analyzer/engine/call_graph_builder.py
|
|
@@ -179,6 +180,7 @@ static_analyzer/engine/utils.py
|
|
|
179
180
|
static_analyzer/engine/adapters/__init__.py
|
|
180
181
|
static_analyzer/engine/adapters/cpp_adapter.py
|
|
181
182
|
static_analyzer/engine/adapters/csharp_adapter.py
|
|
183
|
+
static_analyzer/engine/adapters/dart_adapter.py
|
|
182
184
|
static_analyzer/engine/adapters/go_adapter.py
|
|
183
185
|
static_analyzer/engine/adapters/java_adapter.py
|
|
184
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)
|
|
@@ -5,6 +5,7 @@ from pathlib import Path
|
|
|
5
5
|
|
|
6
6
|
from codeboarding_workflows.analysis import run_incremental_workflow
|
|
7
7
|
from diagram_analysis import DEFAULT_DEPTH_CAP, DiagramGenerator, RunContext
|
|
8
|
+
from diagram_analysis.exceptions import UnreadableAnalysisError
|
|
8
9
|
from diagram_analysis.io_utils import load_analysis_metadata
|
|
9
10
|
from output_generators.rendering import render_docs
|
|
10
11
|
from infra.repo_utils import checkout_repo, clone_repository
|
|
@@ -92,7 +93,12 @@ def _resolve_depth_cap(temp_repo_folder: Path) -> int:
|
|
|
92
93
|
env_depth = os.getenv("DIAGRAM_DEPTH_CAP")
|
|
93
94
|
if env_depth is not None:
|
|
94
95
|
return int(env_depth)
|
|
95
|
-
|
|
96
|
+
try:
|
|
97
|
+
metadata = load_analysis_metadata(temp_repo_folder)
|
|
98
|
+
except UnreadableAnalysisError:
|
|
99
|
+
# Why: run_incremental_workflow replaces an unreadable baseline with a full run, so it has no cap to carry.
|
|
100
|
+
logger.warning("The seeded analysis.json cannot be read; using the default depth cap.", exc_info=True)
|
|
101
|
+
return DEFAULT_DEPTH_CAP
|
|
96
102
|
if metadata is not None:
|
|
97
103
|
return int(metadata.get("depth_cap", DEFAULT_DEPTH_CAP))
|
|
98
104
|
return DEFAULT_DEPTH_CAP
|