thothctl 0.31.0__tar.gz → 0.31.2__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.
- {thothctl-0.31.0 → thothctl-0.31.2}/PKG-INFO +1 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/inventory/commands/iac.py +19 -4
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/commands/register.py +4 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/code_generator.py +50 -13
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/intent_service.py +6 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/plan_runner.py +1 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/prompts.py +89 -53
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/state_resolver.py +2 -3
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/defectdojo_publisher.py +0 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/inventory_service.py +100 -28
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/secobserve_publisher.py +0 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/mcp/stdio_server.py +3 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/opa.py +2 -2
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/version.py +1 -1
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cdk_inventory.py +97 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_generate_iac_codegen.py +2 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_generate_iac_prompts.py +44 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.devcontainer/Dockerfile +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.devcontainer/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.devcontainer/devcontainer.json +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.github/workflows/docs.yml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.github/workflows/python-publish.yml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.gitignore +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.pre-commit-config.yaml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.pydocstyle +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/.readthedocs.yaml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/CHANGELOG.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/CONTRIBUTING.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/Dockerfile +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/LICENSE +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/catalog/catalog-info.yaml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/dashboard/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/ai-review/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/ai-review/agent_specifications.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/ai-review/agentcore.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/blast-radius.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/check_environment.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/check_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/check_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/check_project_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/check_space.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/cost-analysis-quick-reference.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/cost-analysis.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/customizing_rules.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/deps-advanced.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/deps.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/drift-detection.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/check/plan.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/dashboard/dashboard_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/customizing_docs.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/document_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/document_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/mermaid_examples.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/mermaid_quickref.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/document/use_cases.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/generate/generate_components.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/generate/generate_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/generate/generate_stacks.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/init/init.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/init/init_space.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/CHANGELOG.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/frameworks/terraform.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/frameworks/terragrunt.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/inventory_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/inventory/inventory_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/list/list_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/list/list_projects.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/list/list_spaces.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/mcp/mcp.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/project_cleanup.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/project_convert.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/project_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/project_upgrade.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/project/use_cases.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/remove/remove_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/remove/remove_project.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/remove/remove_space.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/scan/iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/scan/scan_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/scan/scan_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/scan/use_cases.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/space/space_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/upgrade/upgrade_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/workflow/workflow_devsecops.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/commands/workflow/workflow_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/concepts.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/cross_platform_support.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/framework_architecture.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/infrastructure_composition.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/policy_as_code.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/roadmap_fdi.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/software_architecture.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/space_configuration.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/specs/phase1.10_plan_validation.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/specs/phase1.9_composition_generation.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/specs/phase1_intent_to_iac.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/specs/phase2.5.1_autonomy_model.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/ai_dlc.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/check_command.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/devsecops_quickstart.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/devsecops_sdlc.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/inventory_command.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/platform_engineering_templates.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/space_management.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/tasks/create_template.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/framework/use_cases/tasks/workflow_implementation_plan.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/how_it_works.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/commnad_init.png +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/framework/thothforge-framework.svg +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/framework/thothfr.png +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/icon-light.png +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/icon.png +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/init_project.gif +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/img/stable/scan_report_example.png +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/includes/abbreviations.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/index.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/installation/devcontainer_setup.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/installation/linux_installation.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/installation/windows_installation.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/javascripts/tablesort.js +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/mcp.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/navigation.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/quick_start.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/requirements.txt +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/stylesheets/extra-enhanced.css +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/stylesheets/extra.css +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/telemetry.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/template_engine/cli_commands_audit.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/template_engine/for_developers.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/template_engine/for_platform_engineers.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/template_engine/github_templates.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/template_engine/template_engine.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/toolkit_overview.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/troubleshooting/linux_troubleshooting.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/troubleshooting/macos_troubleshooting.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/troubleshooting/troubleshooting.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/troubleshooting/windows_troubleshooting.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/docs/whats_new.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/mkdocs.yaml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/pyproject.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/scripts/check_output_consistency.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/scripts/run_mcp_server.sh +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/application/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/autocomplete.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/analyze.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/apply_fix.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/configure.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/configure_decisions.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/decide.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/history.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/improve.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/orchestrate.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/override.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/report.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/ai_review/commands/serve.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/config.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/environment.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/iac.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/project/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/project/iac.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/project.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/check/commands/space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/dashboard/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/dashboard/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/dashboard/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/dashboard/commands/launch.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/document/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/document/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/document/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/document/commands/iac.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/commands/component.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/commands/iac.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/generate/commands/stacks.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/commands/env.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/commands/project.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/commands/space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/init/commands/template.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/inventory/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/inventory/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/inventory/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/inventory/commands/check.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/commands/projects.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/commands/spaces.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/list/commands/templates.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/commands/server.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/commands/status.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/mcp/commands/stop.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/commands/bootstrap.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/commands/cleanup.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/commands/convert.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/project/commands/upgrade.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/quickstart/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/quickstart/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/remove/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/remove/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/remove/project.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/remove/space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/scan/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/scan/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/scan/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/scan/commands/iac.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/activate.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/deactivate.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/export_space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/import_space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/show.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/space/commands/update.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/upgrade/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/workflow/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/workflow/cli.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/workflow/commands/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/workflow/commands/devsecops.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/commands/workflow/commands/run.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/.thothcf.setup.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/.thothcf_home.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/.thothcf_module.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/.thothcf_project.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/.thothcf_template_parameters.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/common.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/common/terragrunt/.thothcf_project.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/constants.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/default_values.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/defaults.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/settings.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/template_config.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/template_configs.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/templates.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/config/validation.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/cli_ui.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/commands.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/config.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/azure_devops/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/azure_devops/get_azure_devops.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/azure_devops/pull_request_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/github/get_github.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/github/pull_request_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/integrate_messages_services/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/integrate_messages_services/microsoft_teams.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/integrate_messages_services/sent_message_teams.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/pattern_names.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/pr_comments/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/integrations/pr_comments/pr_comment_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/logger.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/telemetry.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/core/version_tools.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/domain/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/domain/interfaces/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/domain/models/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/mcp/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/mcp/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/mcp/server.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/agentcore/agentcore.json +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/ai_agent.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/analyzers/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/analyzers/code_reviewer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/analyzers/context_builder.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/analyzers/report_analyzer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/analyzers/risk_assessor.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/bedrock_agent_api.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/config/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/config/ai_settings.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/config/autonomy.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/config/decision_rules.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/decision_engine.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/main.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/memory.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/orchestrator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/pr_decision_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/azure_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/bedrock_agent_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/bedrock_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/kiro_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/ollama_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/providers/openai_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/safety/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/safety/safety_guard.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/strands_agent.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/tracing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/cost_tracker.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/fix_patterns.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/fix_prompts.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/formatters.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/ai_review/utils/prompts.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/environment/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/environment/check_environment.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/org_policy_loader.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/blast_radius_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cfn_blast_radius_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/check_origin_version.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/check_project_structure.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/cost_analyzer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/models/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/models/cloudformation_mapper.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/models/cost_models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/aws_pricing_client.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/base_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/apigateway_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/bedrock_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/cloudwatch_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/dynamodb_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/ebs_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/ec2_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/ecr_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/ecs_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/eip_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/eks_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/elb_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/free_resources_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/kms_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/lambda_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/msk_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/rds_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/s3_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/secrets_manager_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/pricing/providers/vpc_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/cost/unified_cost_report.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/cfn_drift_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/drift_ai.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/drift_history.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/drift_policy.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/drift_report.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/drift_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/drift/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/risk_assessment.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/project/validate_project_structure.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/rule_merger.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/rules_compiler.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/check/stack_optimizer/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/dashboard/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/dashboard/dashboard_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/dashboard/data_loader.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/architecture_renderer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/create_documentation.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/files_content.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/files_scan.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/iac_documentation.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/iac_grunt_graph.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/iac_grunt_info.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/document/topology_generator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/config_generator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/remote_config_generation.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/stack_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/templates/terragrunt.hcl.j2 +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_stacks/terragrunt.hcl +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/config.yaml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/create_code.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/create_component.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/create_component_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/create_stacks.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/create_template.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/files_content.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/github_template_loader.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/create_template/project_templates.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/composition_models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/context_builder.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/generation_history.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/intent_decomposer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/parameter_resolver.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/plan_validator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/project_assembler.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/scaffold_loader.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/generate/intent/validator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/environment/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/environment/install_skills.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/environment/install_tools.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/environment/prerequisite_checker.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/environment/tool_packs.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/project/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/project/project.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/example_space.toml +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/export_import.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/inheritance.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/init/space/terraform_module_cache.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/cdk_parsers.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/cdk_sbom_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/changelog_parser.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/dtrack_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/module_compatibility_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/report_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/schema_compatibility_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/terragrunt_parser.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/update_versions.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/inventory/version_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/mcp/README.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/mcp/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/mcp/simple_http_server.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/bootstrap/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/bootstrap/bootstrap_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/cleanup/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/cleanup/clean_project.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/cleanup/clean_space.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/conversion_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/get_project_data.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/post_init.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/project_converter.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/project_defaults.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/convert/set_project_parameters.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/create_terramate/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/create_terramate/create_terramate_stacks.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/create_terramate/detect_changes_stacks.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/create_terramate/manage_terramate_stacks.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/upgrade/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/project/upgrade/upgrade_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/compliance_review.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/import_reports.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/report_parser.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/sarif_output.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scan_history.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scan_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/checkov.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/kics.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/scan_reports.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/scanners.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/terraform_compliance.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/tfsec.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/scan/scanners/trivy.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/custom_workflow_engine.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/base.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/build.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/deploy.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/develop.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/monitor.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/plan.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/secure.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/phases/test.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/services/workflow/workflow_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/templates/ai_reports/pr_comment.md +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/templates/reports/inventory_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/templates/reports/inventory_report.js +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/templates/unified_report_styles.css +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/banner.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/create_compliance_html_reports.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/create_html_reports.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/delete_directory.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/fix_report_styling.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/render_scan_report.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/report_html_utils.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/dashboard.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/index_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/individual_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/simple_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/unified_report_styles.css +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/unified_scan_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/unified_simple_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/common/templates/xunit_report.html +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/crypto.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/git_changes.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/manage_backend_resources/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/manage_backend_resources/manage_backend_resources.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/modules_ops/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/modules_ops/terraform_module_details.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/modules_ops/terraform_modules_fetcher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/platform_utils.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/analyze_terraform_plan.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/graph_manager.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/graph_terragrunt_dependencies.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/process_terraform_file.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/process_hcl/risk_analyzing_terraform_plan.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/sync_workspaces/__init__.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/sync_workspaces/sync_terraform_workspaces.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/sync_workspaces/sync_terragrunt_workspaces.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/template_loader.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/utils/thoth_colors.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/src/thothctl/wellcome_banner.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/conftest.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_agentcore_entrypoint.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_apply_fix.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_autonomy.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_decision_engine.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_fix_patterns.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_memory.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_orchestrator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_pr_decision.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ai_safety_guard.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_aws_pricing_client.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_azure_devops_pr_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_bedrock_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cdk_language_selection.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cfn_blast_radius.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cfn_drift_detection.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_context_steering.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cost_analyzer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cost_models.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cost_policy_enforcement.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_cost_pr_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_dashboard_loading_fix.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_dashboard_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_defectdojo_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_drift.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_drift_detection.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_dtrack_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_ec2_pricing.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_generate_iac_context.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_generate_iac_service.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_generate_iac_validator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_github_pr_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_iac_cost_integration.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_init_ai_tools.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_init_template_params.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_install_skills.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_intent_quick_wins.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_intent_rules_integration.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_inventory_pr_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_kics_scanner.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_kiro_provider.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_mermaid_edge_labels.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_new_cost_providers.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_opa_data_files.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_parallel_scan.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_plan_validation.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_platform_utils.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_pr_comment_publisher.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_provider_source_url_fix.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_provider_versions.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_rules_compiler.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_scan_cfn_support.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_scan_command.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_scan_pr_comments.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_space_command.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_space_management.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_stack_optimizer.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_template_url_fix.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_terragrunt_parser.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_topology_generator.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tests/test_workflow_integration.py +0 -0
- {thothctl-0.31.0 → thothctl-0.31.2}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: thothctl
|
|
3
|
-
Version: 0.31.
|
|
3
|
+
Version: 0.31.2
|
|
4
4
|
Summary: A CLI for Developer Control Plane. Accelerate your cloud IaC deployments.
|
|
5
5
|
Project-URL: SourceCode, https://github.com/thothforge/thothctl
|
|
6
6
|
Project-URL: HomePage, https://github.com/thothforge/thothctl
|
|
@@ -314,10 +314,25 @@ class IaCInvCommand(ClickCommand):
|
|
|
314
314
|
|
|
315
315
|
def _display_summary(self, inventory: dict) -> None:
|
|
316
316
|
"""Display inventory summary."""
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
317
|
+
# Components are nested: inventory["components"] is a list of stack/group
|
|
318
|
+
# entries, each with an inner "components" list holding the actual
|
|
319
|
+
# packages/modules. Count the leaf items so totals match the detail table
|
|
320
|
+
# and the technical-debt metrics. Fall back to the group level for any
|
|
321
|
+
# entry that has no inner list (keeps legacy/terraform paths working).
|
|
322
|
+
groups = inventory["components"]
|
|
323
|
+
leaf_components = [
|
|
324
|
+
c for grp in groups for c in grp.get("components", [])
|
|
325
|
+
]
|
|
326
|
+
if leaf_components:
|
|
327
|
+
total_components = len(leaf_components)
|
|
328
|
+
outdated_components = sum(
|
|
329
|
+
1 for c in leaf_components if c.get("status") == "Outdated"
|
|
330
|
+
)
|
|
331
|
+
else:
|
|
332
|
+
total_components = len(groups)
|
|
333
|
+
outdated_components = sum(
|
|
334
|
+
1 for comp in groups if comp.get("status") == "Outdated"
|
|
335
|
+
)
|
|
321
336
|
|
|
322
337
|
# Count local modules based on source, not status
|
|
323
338
|
local_modules = 0
|
|
@@ -75,6 +75,8 @@ class MCPRegisterCommand(ClickCommand):
|
|
|
75
75
|
"command": "thothctl",
|
|
76
76
|
"args": ["mcp", "server", "--stdio"],
|
|
77
77
|
"env": {},
|
|
78
|
+
"disabled": False,
|
|
79
|
+
"autoApprove": [],
|
|
78
80
|
}
|
|
79
81
|
else:
|
|
80
82
|
# HTTP mode configuration
|
|
@@ -82,6 +84,8 @@ class MCPRegisterCommand(ClickCommand):
|
|
|
82
84
|
"url": f"http://localhost:{port}/mcp/v1",
|
|
83
85
|
"headers": {},
|
|
84
86
|
"env": {},
|
|
87
|
+
"disabled": False,
|
|
88
|
+
"autoApprove": [],
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
# Add the new server to existing configuration
|
|
@@ -11,7 +11,12 @@ import re
|
|
|
11
11
|
from typing import Any, Dict, Optional
|
|
12
12
|
|
|
13
13
|
from .models import GeneratedFile, GenerationOutput, ValidationResult
|
|
14
|
-
from .prompts import
|
|
14
|
+
from .prompts import (
|
|
15
|
+
build_fix_system_prompt,
|
|
16
|
+
build_fix_user_message,
|
|
17
|
+
build_generation_prompt,
|
|
18
|
+
format_previous_files,
|
|
19
|
+
)
|
|
15
20
|
|
|
16
21
|
logger = logging.getLogger(__name__)
|
|
17
22
|
|
|
@@ -33,6 +38,10 @@ class CodeGenerator:
|
|
|
33
38
|
self.model_name = model
|
|
34
39
|
self._provider = None
|
|
35
40
|
self._ai_call_count = 0
|
|
41
|
+
# Cache the stable system prompt per (project_type, context) so the
|
|
42
|
+
# org context is built once and reused across generate + fix iterations
|
|
43
|
+
# instead of being re-templated (and re-sent) 2-3x per run.
|
|
44
|
+
self._system_prompt_cache: Dict[tuple, str] = {}
|
|
36
45
|
self._init_ai_provider(provider, model)
|
|
37
46
|
|
|
38
47
|
def _init_ai_provider(self, provider_name: str, model: str = None) -> None:
|
|
@@ -88,6 +97,20 @@ class CodeGenerator:
|
|
|
88
97
|
# Public API
|
|
89
98
|
# ------------------------------------------------------------------
|
|
90
99
|
|
|
100
|
+
def _get_system_prompt(self, project_type: str, context: str) -> str:
|
|
101
|
+
"""Return the stable system prompt for (project_type, context), cached.
|
|
102
|
+
|
|
103
|
+
Built once per unique (project_type, context) pair. The same string is
|
|
104
|
+
reused for the initial generation and every fix iteration of the run,
|
|
105
|
+
so the org context is not re-templated or re-sent each time.
|
|
106
|
+
"""
|
|
107
|
+
key = (project_type, context)
|
|
108
|
+
cached = self._system_prompt_cache.get(key)
|
|
109
|
+
if cached is None:
|
|
110
|
+
cached = build_generation_prompt(project_type, context)
|
|
111
|
+
self._system_prompt_cache[key] = cached
|
|
112
|
+
return cached
|
|
113
|
+
|
|
91
114
|
def generate(
|
|
92
115
|
self, intent: str, context: str, project_type: str
|
|
93
116
|
) -> GenerationOutput:
|
|
@@ -101,7 +124,7 @@ class CodeGenerator:
|
|
|
101
124
|
Returns:
|
|
102
125
|
GenerationOutput with generated files and metadata
|
|
103
126
|
"""
|
|
104
|
-
system_prompt =
|
|
127
|
+
system_prompt = self._get_system_prompt(project_type, context)
|
|
105
128
|
|
|
106
129
|
logger.info(f"Generating IaC: intent='{intent[:80]}...', type={project_type}")
|
|
107
130
|
logger.debug(f"System prompt length: {len(system_prompt)} chars")
|
|
@@ -131,35 +154,49 @@ class CodeGenerator:
|
|
|
131
154
|
previous_output: GenerationOutput,
|
|
132
155
|
validation: ValidationResult,
|
|
133
156
|
context: str,
|
|
157
|
+
project_type: str = None,
|
|
134
158
|
) -> GenerationOutput:
|
|
135
159
|
"""Re-generate code with violation fixes (self-correction).
|
|
136
160
|
|
|
161
|
+
Reuses the SAME stable system prompt as generation (org context is not
|
|
162
|
+
re-sent); only the dynamic user message (violations + the violating
|
|
163
|
+
files) changes between iterations.
|
|
164
|
+
|
|
137
165
|
Args:
|
|
138
166
|
previous_output: The previously generated code
|
|
139
167
|
validation: Validation result with violations to fix
|
|
140
168
|
context: Organizational context (same as generation)
|
|
169
|
+
project_type: Target project type (for stable system-prompt reuse).
|
|
170
|
+
When omitted, reuses the single cached system prompt if present.
|
|
141
171
|
|
|
142
172
|
Returns:
|
|
143
173
|
GenerationOutput with corrected files
|
|
144
174
|
"""
|
|
145
175
|
violations_text = validation.format_for_ai()
|
|
146
|
-
previous_files_text = format_previous_files(previous_output.files)
|
|
147
176
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
violations
|
|
151
|
-
|
|
177
|
+
# Send only the files that actually have violations (fall back to all).
|
|
178
|
+
violating_paths = {
|
|
179
|
+
v.file_path for v in validation.violations if getattr(v, "file_path", "")
|
|
180
|
+
}
|
|
181
|
+
previous_files_text = format_previous_files(
|
|
182
|
+
previous_output.files, only_paths=violating_paths or None
|
|
152
183
|
)
|
|
153
184
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
185
|
+
# Reuse the stable system prompt built during generation.
|
|
186
|
+
if project_type is not None:
|
|
187
|
+
system_prompt = self._get_system_prompt(project_type, context)
|
|
188
|
+
elif len(self._system_prompt_cache) == 1:
|
|
189
|
+
system_prompt = next(iter(self._system_prompt_cache.values()))
|
|
190
|
+
else:
|
|
191
|
+
# No unambiguous cached prompt — build the fix system prompt directly.
|
|
192
|
+
system_prompt = build_fix_system_prompt("terraform", context)
|
|
193
|
+
|
|
194
|
+
user_content = build_fix_user_message(violations_text, previous_files_text)
|
|
159
195
|
|
|
160
196
|
logger.info(
|
|
161
197
|
f"Self-correcting: {validation.total_violations} violations "
|
|
162
|
-
f"({validation.critical_count} critical, {validation.high_count} high)"
|
|
198
|
+
f"({validation.critical_count} critical, {validation.high_count} high); "
|
|
199
|
+
f"sending {len(violating_paths) or len(previous_output.files)} file(s)"
|
|
163
200
|
)
|
|
164
201
|
|
|
165
202
|
try:
|
|
@@ -140,6 +140,7 @@ class IntentToIaCService:
|
|
|
140
140
|
max_iterations=max_iterations,
|
|
141
141
|
self_correct=self_correct,
|
|
142
142
|
context_text=context_text,
|
|
143
|
+
project_type=resolved_type,
|
|
143
144
|
)
|
|
144
145
|
else:
|
|
145
146
|
iterations = 0
|
|
@@ -199,6 +200,7 @@ class IntentToIaCService:
|
|
|
199
200
|
self_correct: bool,
|
|
200
201
|
context_text: str,
|
|
201
202
|
label: str = "",
|
|
203
|
+
project_type: str = None,
|
|
202
204
|
):
|
|
203
205
|
"""Run a validate → fix → re-validate loop with stagnation detection.
|
|
204
206
|
|
|
@@ -212,6 +214,8 @@ class IntentToIaCService:
|
|
|
212
214
|
self_correct: If False, validate once and never re-prompt the AI.
|
|
213
215
|
context_text: Compiled org context passed to code_generator.fix().
|
|
214
216
|
label: Optional label for log lines (e.g. a stack path).
|
|
217
|
+
project_type: Target project type, forwarded to fix() so the stable
|
|
218
|
+
cached system prompt is reused across iterations.
|
|
215
219
|
|
|
216
220
|
Returns:
|
|
217
221
|
Tuple of (generation, validation, iterations).
|
|
@@ -253,7 +257,7 @@ class IntentToIaCService:
|
|
|
253
257
|
# Self-correct if enabled and not on the last iteration
|
|
254
258
|
if self_correct and i < max_iterations - 1:
|
|
255
259
|
generation = self.code_generator.fix(
|
|
256
|
-
generation, validation, context_text
|
|
260
|
+
generation, validation, context_text, project_type=project_type
|
|
257
261
|
)
|
|
258
262
|
if not generation.files:
|
|
259
263
|
break # Fix produced nothing — stop
|
|
@@ -875,6 +879,7 @@ class IntentToIaCService:
|
|
|
875
879
|
self_correct=self_correct,
|
|
876
880
|
context_text=context_text,
|
|
877
881
|
label=stack.path,
|
|
882
|
+
project_type="terraform", # matches per-stack generate()
|
|
878
883
|
)
|
|
879
884
|
# Use the final processed files from the loop
|
|
880
885
|
stack_tf_files = self._process_stack_files(
|
|
@@ -2,14 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
These prompts are injected with organizational context to produce governed IaC.
|
|
4
4
|
The AI follows your rules because they're in the prompt — not because of a runtime engine.
|
|
5
|
+
|
|
6
|
+
Token strategy: the SYSTEM prompt is a *stable* block (role + org context +
|
|
7
|
+
project hints + output format) that is byte-identical across the initial
|
|
8
|
+
generation and every self-correction ("fix") iteration of a run. All dynamic,
|
|
9
|
+
per-call content (the intent, validation violations, the code being fixed) goes
|
|
10
|
+
into the USER message. Keeping the system prefix stable means the org context is
|
|
11
|
+
built once per run instead of 2-3x, and lets providers reuse a cached prefix.
|
|
5
12
|
"""
|
|
6
13
|
|
|
7
14
|
# --------------------------------------------------------------------------
|
|
8
|
-
#
|
|
15
|
+
# Stable system prompt — shared by generation AND self-correction
|
|
9
16
|
# --------------------------------------------------------------------------
|
|
10
17
|
|
|
11
|
-
SYSTEM_IAC_GENERATOR = """You are an expert Infrastructure as Code generator.
|
|
18
|
+
SYSTEM_IAC_GENERATOR = """You are an expert Infrastructure as Code generator and fixer.
|
|
12
19
|
Generate complete, deployable {project_type} code following organizational standards.
|
|
20
|
+
When given existing code plus validation violations, correct the violations while
|
|
21
|
+
preserving the architecture.
|
|
13
22
|
|
|
14
23
|
{context}
|
|
15
24
|
|
|
@@ -29,59 +38,32 @@ INSTRUCTIONS:
|
|
|
29
38
|
10. Match the style of the existing patterns shown above
|
|
30
39
|
11. CRITICAL: Each file must contain ONLY its designated content type. Never mix variables/outputs into main.tf.
|
|
31
40
|
|
|
41
|
+
WHEN FIXING VIOLATIONS (a "VIOLATIONS TO FIX" section is present in the user message):
|
|
42
|
+
- Fix ALL listed violations while maintaining the same architecture
|
|
43
|
+
- Do NOT remove functionality — only add missing security configurations
|
|
44
|
+
- Keep all existing resources, tags, and naming intact
|
|
45
|
+
- Ensure the fix doesn't break dependencies between resources
|
|
46
|
+
- Common fixes: CKV_AWS_130/CKV2_AWS_11 (add aws_flow_log for VPC flow logs);
|
|
47
|
+
CKV_AWS_178 (one NAT gateway per AZ); CKV_AWS_260/CKV_AWS_23 (add description to
|
|
48
|
+
security group rules); CKV_AWS_145 (S3 server_side_encryption_configuration);
|
|
49
|
+
CKV_AWS_18 (S3 logging); CKV_AWS_144 (S3 replication if required)
|
|
50
|
+
|
|
32
51
|
OUTPUT FORMAT — respond with ONLY this JSON (no markdown fences, no explanation outside JSON):
|
|
33
52
|
{{
|
|
34
53
|
"files": [
|
|
35
54
|
{{"path": "relative/path/to/file", "content": "full file content here"}},
|
|
36
55
|
...
|
|
37
56
|
],
|
|
38
|
-
"explanation": "brief explanation of architecture decisions
|
|
57
|
+
"explanation": "brief explanation of architecture decisions (or what was fixed)",
|
|
39
58
|
"modules_used": ["source@version", ...],
|
|
40
59
|
"estimated_resources": ["aws_resource_type", ...]
|
|
41
60
|
}}"""
|
|
42
61
|
|
|
43
62
|
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
|
|
48
|
-
SYSTEM_IAC_FIXER = """You are an expert IaC code fixer.
|
|
49
|
-
The previously generated code has security/compliance violations that must be fixed.
|
|
50
|
-
|
|
51
|
-
ORGANIZATIONAL RULES (still apply):
|
|
52
|
-
{context}
|
|
53
|
-
|
|
54
|
-
VIOLATIONS TO FIX:
|
|
55
|
-
{violations}
|
|
56
|
-
|
|
57
|
-
PREVIOUS CODE:
|
|
58
|
-
{previous_files}
|
|
59
|
-
|
|
60
|
-
INSTRUCTIONS:
|
|
61
|
-
1. Fix ALL listed violations while maintaining the same architecture
|
|
62
|
-
2. Do NOT remove functionality — only add missing security configurations
|
|
63
|
-
3. Common fixes:
|
|
64
|
-
- CKV_AWS_130 (VPC flow logs): Add aws_flow_log resource
|
|
65
|
-
- CKV_AWS_178 (NAT HA): Use one NAT gateway per AZ
|
|
66
|
-
- CKV_AWS_260 (SG rules): Add description to security group rules
|
|
67
|
-
- CKV2_AWS_11 (VPC flow logs): Enable flow logs on VPC
|
|
68
|
-
- CKV_AWS_145 (S3 encryption): Add server_side_encryption_configuration
|
|
69
|
-
- CKV_AWS_18 (S3 logging): Add logging configuration
|
|
70
|
-
- CKV_AWS_144 (S3 replication): Add replication_configuration (if required)
|
|
71
|
-
- CKV_AWS_23 (SG description): Add description field to security groups
|
|
72
|
-
4. Keep all existing resources, tags, and naming intact
|
|
73
|
-
5. Ensure the fix doesn't break dependencies between resources
|
|
74
|
-
|
|
75
|
-
OUTPUT FORMAT — respond with ONLY this JSON (no markdown fences):
|
|
76
|
-
{{
|
|
77
|
-
"files": [
|
|
78
|
-
{{"path": "relative/path/to/file", "content": "corrected full file content"}},
|
|
79
|
-
...
|
|
80
|
-
],
|
|
81
|
-
"explanation": "what was fixed and why",
|
|
82
|
-
"modules_used": ["source@version", ...],
|
|
83
|
-
"estimated_resources": ["aws_resource_type", ...]
|
|
84
|
-
}}"""
|
|
63
|
+
# Kept for backward compatibility (older callers / tests may import it).
|
|
64
|
+
# The fixer instructions now live in the shared SYSTEM_IAC_GENERATOR so the
|
|
65
|
+
# system prefix is identical across generation and fix.
|
|
66
|
+
SYSTEM_IAC_FIXER = SYSTEM_IAC_GENERATOR
|
|
85
67
|
|
|
86
68
|
|
|
87
69
|
# --------------------------------------------------------------------------
|
|
@@ -146,7 +128,11 @@ CDK-SPECIFIC RULES:
|
|
|
146
128
|
def build_generation_prompt(
|
|
147
129
|
project_type: str, context: str, language: str = "typescript"
|
|
148
130
|
) -> str:
|
|
149
|
-
"""Assemble the system prompt with project-type hints and context.
|
|
131
|
+
"""Assemble the stable system prompt with project-type hints and context.
|
|
132
|
+
|
|
133
|
+
This is the same static block used for both generation and self-correction,
|
|
134
|
+
so the system prefix stays byte-identical across a run's iterations.
|
|
135
|
+
"""
|
|
150
136
|
hints = _get_project_hints(project_type, language=language)
|
|
151
137
|
full_context = context
|
|
152
138
|
if hints:
|
|
@@ -158,19 +144,69 @@ def build_generation_prompt(
|
|
|
158
144
|
)
|
|
159
145
|
|
|
160
146
|
|
|
147
|
+
def build_fix_system_prompt(
|
|
148
|
+
project_type: str, context: str, language: str = "typescript"
|
|
149
|
+
) -> str:
|
|
150
|
+
"""Return the system prompt for a fix call.
|
|
151
|
+
|
|
152
|
+
Identical to build_generation_prompt — the fixer instructions live in the
|
|
153
|
+
shared static block, so generation and fix send the exact same system
|
|
154
|
+
prompt (org context is not re-templated per iteration).
|
|
155
|
+
"""
|
|
156
|
+
return build_generation_prompt(project_type, context, language=language)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def build_fix_user_message(violations: str, previous_files: str) -> str:
|
|
160
|
+
"""Build the DYNAMIC user message for a self-correction call.
|
|
161
|
+
|
|
162
|
+
Only this changes between iterations — the system prompt stays stable.
|
|
163
|
+
|
|
164
|
+
Args:
|
|
165
|
+
violations: Formatted violation list (ValidationResult.format_for_ai()).
|
|
166
|
+
previous_files: The code to fix (ideally only the violating files).
|
|
167
|
+
"""
|
|
168
|
+
return (
|
|
169
|
+
"The generated code has validation violations that must be fixed.\n\n"
|
|
170
|
+
"VIOLATIONS TO FIX:\n"
|
|
171
|
+
f"{violations}\n\n"
|
|
172
|
+
"CODE TO FIX:\n"
|
|
173
|
+
f"{previous_files}\n\n"
|
|
174
|
+
"Return the corrected files in the JSON format specified in the system prompt."
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
|
|
161
178
|
def build_fix_prompt(context: str, violations: str, previous_files: str) -> str:
|
|
162
|
-
"""
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
179
|
+
"""Deprecated: assemble a combined fix prompt (context + violations + files).
|
|
180
|
+
|
|
181
|
+
Retained for backward compatibility. New callers should use
|
|
182
|
+
build_fix_system_prompt() for the (stable) system prompt and
|
|
183
|
+
build_fix_user_message() for the (dynamic) user content, so the org context
|
|
184
|
+
is not re-sent on every correction iteration.
|
|
185
|
+
"""
|
|
186
|
+
return (
|
|
187
|
+
f"{SYSTEM_IAC_GENERATOR.format(project_type='terraform', context=context)}\n\n"
|
|
188
|
+
f"{build_fix_user_message(violations, previous_files)}"
|
|
167
189
|
)
|
|
168
190
|
|
|
169
191
|
|
|
170
|
-
def format_previous_files(files: list) -> str:
|
|
171
|
-
"""Format previously generated files for the fix prompt (abbreviated).
|
|
192
|
+
def format_previous_files(files: list, only_paths: set = None) -> str:
|
|
193
|
+
"""Format previously generated files for the fix prompt (abbreviated).
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
files: Generated files.
|
|
197
|
+
only_paths: If provided, include only files whose path is in this set
|
|
198
|
+
(the files that actually have violations). Falls back to all files
|
|
199
|
+
when the filter would exclude everything (e.g. violations without
|
|
200
|
+
file paths), so the fixer always has something to work with.
|
|
201
|
+
"""
|
|
202
|
+
selected = files
|
|
203
|
+
if only_paths:
|
|
204
|
+
filtered = [f for f in files if f.path in only_paths]
|
|
205
|
+
if filtered:
|
|
206
|
+
selected = filtered
|
|
207
|
+
|
|
172
208
|
parts = []
|
|
173
|
-
for f in
|
|
209
|
+
for f in selected:
|
|
174
210
|
content = f.content
|
|
175
211
|
# Truncate large files to save tokens
|
|
176
212
|
if len(content) > 1500:
|
|
@@ -13,12 +13,11 @@ For plain terraform/tofu projects:
|
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
import logging
|
|
16
|
-
import os
|
|
17
16
|
import shutil
|
|
18
17
|
from pathlib import Path
|
|
19
|
-
from typing import
|
|
18
|
+
from typing import List, Optional
|
|
20
19
|
|
|
21
|
-
from .models import GeneratedFile, PlanContext, PlanMode
|
|
20
|
+
from .models import GeneratedFile, PlanContext, PlanMode
|
|
22
21
|
|
|
23
22
|
logger = logging.getLogger(__name__)
|
|
24
23
|
|
|
@@ -1203,34 +1203,22 @@ class InventoryService:
|
|
|
1203
1203
|
registry = "npm" if cdk_language == "typescript" else "pypi"
|
|
1204
1204
|
inventory_dict = await self._check_cdk_versions(inventory_dict, registry)
|
|
1205
1205
|
|
|
1206
|
-
# Calculate technical debt
|
|
1207
|
-
total
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
else "medium"
|
|
1223
|
-
if debt_score >= 30
|
|
1224
|
-
else "low"
|
|
1225
|
-
)
|
|
1226
|
-
inventory_dict["technical_debt"] = {
|
|
1227
|
-
"debt_score": debt_score,
|
|
1228
|
-
"risk_level": risk,
|
|
1229
|
-
"outdated_modules": outdated,
|
|
1230
|
-
"total_components": total,
|
|
1231
|
-
"modules_with_breaking_changes": 0,
|
|
1232
|
-
"providers_with_breaking_changes": 0,
|
|
1233
|
-
}
|
|
1206
|
+
# Calculate technical debt.
|
|
1207
|
+
# A flat outdated/total ratio treats a one-patch drift the same as a
|
|
1208
|
+
# multi-major drift, producing misleading "100% CRITICAL" scores when
|
|
1209
|
+
# every dependency is only trivially behind. Weight each outdated
|
|
1210
|
+
# component by the magnitude of its version gap (patch << minor << major)
|
|
1211
|
+
# so the debt score reflects real upgrade risk. See
|
|
1212
|
+
# _calculate_cdk_technical_debt.
|
|
1213
|
+
cdk_comps = [
|
|
1214
|
+
comp
|
|
1215
|
+
for group in inventory_dict.get("components", [])
|
|
1216
|
+
for comp in group.get("components", [])
|
|
1217
|
+
if comp.get("type") in ("cdk_construct", "cdk-construct")
|
|
1218
|
+
]
|
|
1219
|
+
tech_debt = self._calculate_cdk_technical_debt(cdk_comps)
|
|
1220
|
+
if tech_debt is not None:
|
|
1221
|
+
inventory_dict["technical_debt"] = tech_debt
|
|
1234
1222
|
|
|
1235
1223
|
# CDK compatibility analysis
|
|
1236
1224
|
if check_schema_compatibility and check_versions:
|
|
@@ -1527,6 +1515,90 @@ class InventoryService:
|
|
|
1527
1515
|
logger.debug(f"Could not parse {f}: {e}")
|
|
1528
1516
|
return stacks
|
|
1529
1517
|
|
|
1518
|
+
@staticmethod
|
|
1519
|
+
def _semver_gap_weight(current: str, latest: str) -> float:
|
|
1520
|
+
"""Return a technical-debt weight based on the semver gap.
|
|
1521
|
+
|
|
1522
|
+
Weights reflect real upgrade risk rather than a flat outdated/total ratio:
|
|
1523
|
+
- major gap -> 1.0 (likely breaking)
|
|
1524
|
+
- minor gap -> 0.4 (new features / possible deprecations)
|
|
1525
|
+
- patch gap (or equal/behind) -> 0.1 (bug fixes, trivial)
|
|
1526
|
+
Unparseable versions fall back to a minor-level (0.4) unknown gap.
|
|
1527
|
+
"""
|
|
1528
|
+
try:
|
|
1529
|
+
cur = [int(x) for x in str(current).split(".")[:3]]
|
|
1530
|
+
lat = [int(x) for x in str(latest).split(".")[:3]]
|
|
1531
|
+
while len(cur) < 3:
|
|
1532
|
+
cur.append(0)
|
|
1533
|
+
while len(lat) < 3:
|
|
1534
|
+
lat.append(0)
|
|
1535
|
+
except (ValueError, AttributeError):
|
|
1536
|
+
return 0.4
|
|
1537
|
+
if lat[0] > cur[0]:
|
|
1538
|
+
return 1.0
|
|
1539
|
+
if lat[0] == cur[0] and lat[1] > cur[1]:
|
|
1540
|
+
return 0.4
|
|
1541
|
+
return 0.1
|
|
1542
|
+
|
|
1543
|
+
@classmethod
|
|
1544
|
+
def _calculate_cdk_technical_debt(cls, cdk_components: list) -> Optional[dict]:
|
|
1545
|
+
"""Compute severity-weighted technical-debt metrics for CDK components.
|
|
1546
|
+
|
|
1547
|
+
Args:
|
|
1548
|
+
cdk_components: flat list of cdk_construct component dicts, each with
|
|
1549
|
+
``status`` and ``version``/``latest_version`` fields.
|
|
1550
|
+
|
|
1551
|
+
Returns:
|
|
1552
|
+
Technical-debt metrics dict, or None when there are no components.
|
|
1553
|
+
"""
|
|
1554
|
+
total = len(cdk_components)
|
|
1555
|
+
if total == 0:
|
|
1556
|
+
return None
|
|
1557
|
+
|
|
1558
|
+
outdated = 0
|
|
1559
|
+
weighted_debt = 0.0
|
|
1560
|
+
by_severity = {"major": 0, "minor": 0, "patch": 0}
|
|
1561
|
+
for comp in cdk_components:
|
|
1562
|
+
if comp.get("status") != "Outdated":
|
|
1563
|
+
continue
|
|
1564
|
+
outdated += 1
|
|
1565
|
+
current_ver = (
|
|
1566
|
+
comp.get("version", [""])[0]
|
|
1567
|
+
if isinstance(comp.get("version"), list)
|
|
1568
|
+
else comp.get("version", "")
|
|
1569
|
+
)
|
|
1570
|
+
latest_ver = comp.get("latest_version", current_ver)
|
|
1571
|
+
weight = cls._semver_gap_weight(current_ver, latest_ver)
|
|
1572
|
+
weighted_debt += weight
|
|
1573
|
+
if weight >= 1.0:
|
|
1574
|
+
by_severity["major"] += 1
|
|
1575
|
+
elif weight >= 0.4:
|
|
1576
|
+
by_severity["minor"] += 1
|
|
1577
|
+
else:
|
|
1578
|
+
by_severity["patch"] += 1
|
|
1579
|
+
|
|
1580
|
+
debt_score = (weighted_debt / total) * 100
|
|
1581
|
+
risk = (
|
|
1582
|
+
"critical"
|
|
1583
|
+
if debt_score >= 70
|
|
1584
|
+
else "high"
|
|
1585
|
+
if debt_score >= 50
|
|
1586
|
+
else "medium"
|
|
1587
|
+
if debt_score >= 30
|
|
1588
|
+
else "low"
|
|
1589
|
+
)
|
|
1590
|
+
return {
|
|
1591
|
+
"debt_score": debt_score,
|
|
1592
|
+
"risk_level": risk,
|
|
1593
|
+
"outdated_modules": outdated,
|
|
1594
|
+
"total_components": total,
|
|
1595
|
+
"outdated_major": by_severity["major"],
|
|
1596
|
+
"outdated_minor": by_severity["minor"],
|
|
1597
|
+
"outdated_patch": by_severity["patch"],
|
|
1598
|
+
"modules_with_breaking_changes": by_severity["major"],
|
|
1599
|
+
"providers_with_breaking_changes": 0,
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1530
1602
|
async def _check_cdk_versions(
|
|
1531
1603
|
self, inventory_dict: Dict[str, Any], registry: str
|
|
1532
1604
|
) -> Dict[str, Any]:
|
|
@@ -6,6 +6,8 @@ from typing import Optional
|
|
|
6
6
|
|
|
7
7
|
from mcp.server import MCPServer
|
|
8
8
|
|
|
9
|
+
from ...version import __version__
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
def _run_cmd(cmd: list, timeout: int = 180) -> str:
|
|
11
13
|
"""Execute a thothctl command and return output."""
|
|
@@ -15,7 +17,7 @@ def _run_cmd(cmd: list, timeout: int = 180) -> str:
|
|
|
15
17
|
return f"Error (exit {result.returncode}): {result.stderr.strip() or result.stdout.strip()}"
|
|
16
18
|
|
|
17
19
|
|
|
18
|
-
server = MCPServer("thothctl")
|
|
20
|
+
server = MCPServer("thothctl", version=__version__)
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
# --- Version ---
|
|
@@ -607,10 +607,10 @@ code{{background:#f3f4f6;padding:2px 4px;border-radius:3px;font-size:0.8rem}}
|
|
|
607
607
|
# 5. THOTH_ORG_POLICY env → <cached_repo>/policy/
|
|
608
608
|
org_policy_url = os.environ.get("THOTH_ORG_POLICY")
|
|
609
609
|
if org_policy_url:
|
|
610
|
-
from
|
|
610
|
+
from ....services.check.org_policy_loader import (
|
|
611
611
|
get_org_policy_path,
|
|
612
612
|
)
|
|
613
|
-
from
|
|
613
|
+
from ....services.check.org_policy_loader import (
|
|
614
614
|
resolve_policy_dir as _resolve_org_policy,
|
|
615
615
|
)
|
|
616
616
|
|