thothctl 0.31.1__tar.gz → 0.31.3__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.1 → thothctl-0.31.3}/PKG-INFO +1 -1
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/inventory/commands/iac.py +19 -4
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/scan/commands/iac.py +79 -37
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/code_generator.py +50 -13
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/intent_service.py +6 -1
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/plan_runner.py +1 -1
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/prompts.py +89 -53
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/state_resolver.py +2 -3
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/defectdojo_publisher.py +0 -1
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/inventory_service.py +100 -28
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/secobserve_publisher.py +4 -2
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/opa.py +2 -2
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/version.py +1 -1
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cdk_inventory.py +97 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_generate_iac_codegen.py +2 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_generate_iac_prompts.py +44 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.devcontainer/Dockerfile +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.devcontainer/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.devcontainer/devcontainer.json +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.github/workflows/docs.yml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.github/workflows/python-publish.yml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.gitignore +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.pre-commit-config.yaml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.pydocstyle +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/.readthedocs.yaml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/CHANGELOG.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/CONTRIBUTING.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/Dockerfile +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/LICENSE +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/catalog/catalog-info.yaml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/dashboard/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/ai-review/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/ai-review/agent_specifications.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/ai-review/agentcore.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/blast-radius.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/check_environment.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/check_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/check_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/check_project_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/check_space.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/cost-analysis-quick-reference.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/cost-analysis.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/customizing_rules.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/deps-advanced.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/deps.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/drift-detection.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/check/plan.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/dashboard/dashboard_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/customizing_docs.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/document_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/document_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/mermaid_examples.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/mermaid_quickref.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/document/use_cases.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/generate/generate_components.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/generate/generate_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/generate/generate_stacks.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/init/init.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/init/init_space.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/CHANGELOG.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/frameworks/terraform.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/frameworks/terragrunt.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/inventory_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/inventory/inventory_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/list/list_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/list/list_projects.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/list/list_spaces.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/mcp/mcp.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/project_cleanup.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/project_convert.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/project_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/project_upgrade.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/project/use_cases.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/remove/remove_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/remove/remove_project.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/remove/remove_space.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/scan/iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/scan/scan_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/scan/scan_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/scan/use_cases.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/space/space_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/upgrade/upgrade_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/workflow/workflow_devsecops.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/commands/workflow/workflow_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/concepts.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/cross_platform_support.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/framework_architecture.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/infrastructure_composition.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/policy_as_code.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/roadmap_fdi.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/software_architecture.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/space_configuration.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/specs/phase1.10_plan_validation.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/specs/phase1.9_composition_generation.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/specs/phase1_intent_to_iac.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/specs/phase2.5.1_autonomy_model.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/ai_dlc.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/check_command.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/devsecops_quickstart.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/devsecops_sdlc.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/inventory_command.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/platform_engineering_templates.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/space_management.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/tasks/create_template.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/framework/use_cases/tasks/workflow_implementation_plan.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/how_it_works.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/commnad_init.png +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/framework/thothforge-framework.svg +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/framework/thothfr.png +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/icon-light.png +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/icon.png +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/init_project.gif +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/img/stable/scan_report_example.png +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/includes/abbreviations.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/index.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/installation/devcontainer_setup.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/installation/linux_installation.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/installation/windows_installation.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/javascripts/tablesort.js +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/mcp.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/navigation.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/quick_start.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/requirements.txt +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/stylesheets/extra-enhanced.css +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/stylesheets/extra.css +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/telemetry.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/template_engine/cli_commands_audit.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/template_engine/for_developers.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/template_engine/for_platform_engineers.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/template_engine/github_templates.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/template_engine/template_engine.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/toolkit_overview.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/troubleshooting/linux_troubleshooting.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/troubleshooting/macos_troubleshooting.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/troubleshooting/troubleshooting.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/troubleshooting/windows_troubleshooting.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/docs/whats_new.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/mkdocs.yaml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/pyproject.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/scripts/check_output_consistency.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/scripts/run_mcp_server.sh +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/application/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/autocomplete.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/analyze.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/apply_fix.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/configure.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/configure_decisions.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/decide.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/history.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/improve.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/orchestrate.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/override.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/report.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/ai_review/commands/serve.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/config.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/environment.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/iac.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/project/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/project/iac.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/project.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/check/commands/space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/dashboard/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/dashboard/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/dashboard/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/dashboard/commands/launch.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/document/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/document/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/document/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/document/commands/iac.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/commands/component.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/commands/iac.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/generate/commands/stacks.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/commands/env.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/commands/project.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/commands/space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/init/commands/template.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/inventory/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/inventory/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/inventory/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/inventory/commands/check.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/commands/projects.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/commands/spaces.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/list/commands/templates.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/commands/register.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/commands/server.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/commands/status.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/mcp/commands/stop.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/commands/bootstrap.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/commands/cleanup.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/commands/convert.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/project/commands/upgrade.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/quickstart/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/quickstart/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/remove/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/remove/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/remove/project.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/remove/space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/scan/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/scan/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/scan/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/activate.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/deactivate.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/export_space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/import_space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/show.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/space/commands/update.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/upgrade/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/workflow/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/workflow/cli.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/workflow/commands/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/workflow/commands/devsecops.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/commands/workflow/commands/run.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/.thothcf.setup.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/.thothcf_home.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/.thothcf_module.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/.thothcf_project.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/.thothcf_template_parameters.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/common.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/common/terragrunt/.thothcf_project.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/constants.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/default_values.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/defaults.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/settings.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/template_config.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/template_configs.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/templates.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/config/validation.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/cli_ui.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/commands.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/config.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/azure_devops/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/azure_devops/get_azure_devops.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/azure_devops/pull_request_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/github/get_github.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/github/pull_request_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/integrate_messages_services/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/integrate_messages_services/microsoft_teams.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/integrate_messages_services/sent_message_teams.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/pattern_names.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/pr_comments/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/integrations/pr_comments/pr_comment_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/logger.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/telemetry.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/core/version_tools.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/domain/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/domain/interfaces/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/domain/models/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/mcp/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/mcp/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/mcp/server.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/agentcore/agentcore.json +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/ai_agent.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/analyzers/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/analyzers/code_reviewer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/analyzers/context_builder.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/analyzers/report_analyzer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/analyzers/risk_assessor.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/bedrock_agent_api.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/config/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/config/ai_settings.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/config/autonomy.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/config/decision_rules.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/decision_engine.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/main.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/memory.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/orchestrator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/pr_decision_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/azure_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/bedrock_agent_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/bedrock_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/kiro_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/ollama_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/providers/openai_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/safety/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/safety/safety_guard.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/strands_agent.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/tracing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/cost_tracker.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/fix_patterns.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/fix_prompts.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/formatters.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/ai_review/utils/prompts.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/environment/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/environment/check_environment.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/org_policy_loader.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/blast_radius_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cfn_blast_radius_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/check_origin_version.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/check_project_structure.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/cost_analyzer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/models/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/models/cloudformation_mapper.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/models/cost_models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/aws_pricing_client.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/base_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/apigateway_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/bedrock_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/cloudwatch_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/dynamodb_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/ebs_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/ec2_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/ecr_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/ecs_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/eip_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/eks_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/elb_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/free_resources_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/kms_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/lambda_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/msk_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/rds_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/s3_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/secrets_manager_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/pricing/providers/vpc_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/cost/unified_cost_report.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/cfn_drift_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/drift_ai.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/drift_history.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/drift_policy.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/drift_report.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/drift_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/drift/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/risk_assessment.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/project/validate_project_structure.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/rule_merger.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/rules_compiler.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/check/stack_optimizer/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/dashboard/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/dashboard/dashboard_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/dashboard/data_loader.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/architecture_renderer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/create_documentation.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/files_content.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/files_scan.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/iac_documentation.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/iac_grunt_graph.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/iac_grunt_info.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/document/topology_generator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/config_generator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/remote_config_generation.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/stack_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/templates/terragrunt.hcl.j2 +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_stacks/terragrunt.hcl +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/config.yaml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/create_code.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/create_component.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/create_component_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/create_stacks.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/create_template.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/files_content.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/github_template_loader.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/create_template/project_templates.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/composition_models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/context_builder.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/generation_history.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/intent_decomposer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/parameter_resolver.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/plan_validator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/project_assembler.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/scaffold_loader.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/generate/intent/validator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/environment/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/environment/install_skills.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/environment/install_tools.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/environment/prerequisite_checker.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/environment/tool_packs.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/project/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/project/project.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/example_space.toml +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/export_import.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/inheritance.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/init/space/terraform_module_cache.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/cdk_parsers.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/cdk_sbom_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/changelog_parser.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/dtrack_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/module_compatibility_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/report_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/schema_compatibility_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/terragrunt_parser.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/update_versions.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/inventory/version_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/mcp/README.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/mcp/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/mcp/simple_http_server.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/mcp/stdio_server.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/bootstrap/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/bootstrap/bootstrap_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/cleanup/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/cleanup/clean_project.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/cleanup/clean_space.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/conversion_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/get_project_data.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/post_init.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/project_converter.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/project_defaults.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/convert/set_project_parameters.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/create_terramate/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/create_terramate/create_terramate_stacks.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/create_terramate/detect_changes_stacks.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/create_terramate/manage_terramate_stacks.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/upgrade/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/project/upgrade/upgrade_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/compliance_review.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/import_reports.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/report_parser.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/sarif_output.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scan_history.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scan_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/checkov.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/kics.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/scan_reports.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/scanners.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/terraform_compliance.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/tfsec.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/scan/scanners/trivy.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/custom_workflow_engine.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/base.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/build.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/deploy.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/develop.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/monitor.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/plan.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/secure.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/phases/test.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/services/workflow/workflow_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/templates/ai_reports/pr_comment.md +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/templates/reports/inventory_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/templates/reports/inventory_report.js +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/templates/unified_report_styles.css +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/banner.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/create_compliance_html_reports.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/create_html_reports.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/delete_directory.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/fix_report_styling.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/render_scan_report.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/report_html_utils.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/dashboard.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/index_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/individual_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/simple_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/unified_report_styles.css +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/unified_scan_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/unified_simple_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/common/templates/xunit_report.html +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/crypto.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/git_changes.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/manage_backend_resources/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/manage_backend_resources/manage_backend_resources.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/modules_ops/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/modules_ops/terraform_module_details.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/modules_ops/terraform_modules_fetcher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/platform_utils.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/analyze_terraform_plan.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/graph_manager.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/graph_terragrunt_dependencies.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/process_terraform_file.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/process_hcl/risk_analyzing_terraform_plan.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/sync_workspaces/__init__.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/sync_workspaces/sync_terraform_workspaces.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/sync_workspaces/sync_terragrunt_workspaces.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/template_loader.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/utils/thoth_colors.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/src/thothctl/wellcome_banner.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/conftest.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_agentcore_entrypoint.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_apply_fix.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_autonomy.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_decision_engine.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_fix_patterns.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_memory.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_orchestrator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_pr_decision.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ai_safety_guard.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_aws_pricing_client.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_azure_devops_pr_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_bedrock_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cdk_language_selection.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cfn_blast_radius.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cfn_drift_detection.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_context_steering.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cost_analyzer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cost_models.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cost_policy_enforcement.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_cost_pr_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_dashboard_loading_fix.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_dashboard_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_defectdojo_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_drift.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_drift_detection.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_dtrack_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_ec2_pricing.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_generate_iac_context.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_generate_iac_service.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_generate_iac_validator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_github_pr_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_iac_cost_integration.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_init_ai_tools.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_init_template_params.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_install_skills.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_intent_quick_wins.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_intent_rules_integration.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_inventory_pr_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_kics_scanner.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_kiro_provider.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_mermaid_edge_labels.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_new_cost_providers.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_opa_data_files.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_parallel_scan.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_plan_validation.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_platform_utils.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_pr_comment_publisher.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_provider_source_url_fix.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_provider_versions.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_rules_compiler.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_scan_cfn_support.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_scan_command.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_scan_pr_comments.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_space_command.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_space_management.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_stack_optimizer.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_template_url_fix.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_terragrunt_parser.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_topology_generator.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/tests/test_workflow_integration.py +0 -0
- {thothctl-0.31.1 → thothctl-0.31.3}/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.3
|
|
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
|
|
@@ -20,6 +20,12 @@ logger = logging.getLogger(__name__)
|
|
|
20
20
|
class RestoredIaCScanCommand(ClickCommand):
|
|
21
21
|
"""Restored original IaC scan command with unified HTML styling."""
|
|
22
22
|
|
|
23
|
+
# Combined SARIF written for SecObserve publishing (tools without native SARIF).
|
|
24
|
+
_SECOBSERVE_SARIF_NAME = "thothctl-secobserve.sarif"
|
|
25
|
+
# SARIF files generated by ThothCTL itself (not tool-native); never treated
|
|
26
|
+
# as a tool's native report when publishing.
|
|
27
|
+
_GENERATED_SARIF_NAMES = frozenset({"scan_results.sarif", _SECOBSERVE_SARIF_NAME})
|
|
28
|
+
|
|
23
29
|
def __init__(self):
|
|
24
30
|
super().__init__()
|
|
25
31
|
self.logger = logger
|
|
@@ -758,14 +764,19 @@ class RestoredIaCScanCommand(ClickCommand):
|
|
|
758
764
|
) -> None:
|
|
759
765
|
"""Publish scan results to an external vulnerability management platform.
|
|
760
766
|
|
|
761
|
-
|
|
762
|
-
|
|
767
|
+
- defectdojo: uploads each tool's native report using the scan type
|
|
768
|
+
DefectDojo parses natively (SARIF for OPA).
|
|
769
|
+
- secobserve: uploads SARIF (native per tool, plus one combined file for
|
|
770
|
+
tools without native SARIF). See _publish_scan_to_secobserve.
|
|
771
|
+
|
|
772
|
+
Publishing is best-effort: failures are reported but do not change the
|
|
773
|
+
command's exit code.
|
|
763
774
|
|
|
764
775
|
Args:
|
|
765
|
-
publish_target: Target platform ('defectdojo').
|
|
776
|
+
publish_target: Target platform ('defectdojo' or 'secobserve').
|
|
766
777
|
results: Scan results dict from scan_service.
|
|
767
778
|
reports_dir: Directory containing scan reports.
|
|
768
|
-
project_name: Project name
|
|
779
|
+
project_name: Project/product name on the target platform.
|
|
769
780
|
code_directory: Source directory for .thothcf.toml config.
|
|
770
781
|
"""
|
|
771
782
|
if publish_target != "defectdojo" and publish_target != "secobserve":
|
|
@@ -948,7 +959,9 @@ class RestoredIaCScanCommand(ClickCommand):
|
|
|
948
959
|
"""Publish scan results to SecObserve via SARIF format.
|
|
949
960
|
|
|
950
961
|
SecObserve uses SARIF as the universal import format for scan findings.
|
|
951
|
-
|
|
962
|
+
Native SARIF reports (e.g. KICS) are uploaded as-is for tools that ran in
|
|
963
|
+
this scan; findings from all other tools are merged into one combined
|
|
964
|
+
SARIF so every tool is published exactly once.
|
|
952
965
|
"""
|
|
953
966
|
try:
|
|
954
967
|
from thothctl.services.inventory.secobserve_publisher import (
|
|
@@ -968,15 +981,18 @@ class RestoredIaCScanCommand(ClickCommand):
|
|
|
968
981
|
f" 📤 Publishing scan results to SecObserve ({config.url})..."
|
|
969
982
|
)
|
|
970
983
|
|
|
984
|
+
import json
|
|
971
985
|
from pathlib import Path
|
|
972
986
|
|
|
987
|
+
from thothctl.services.scan.sarif_output import build_sarif
|
|
988
|
+
|
|
973
989
|
reports_path = Path(reports_dir)
|
|
974
990
|
published_count = 0
|
|
991
|
+
attempted_count = 0
|
|
975
992
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
service_name = sarif_file.stem.replace("-results", "")
|
|
993
|
+
def _upload(sarif_file: Path, service_name: str, label: str) -> None:
|
|
994
|
+
nonlocal published_count, attempted_count
|
|
995
|
+
attempted_count += 1
|
|
980
996
|
result = publisher.publish_observations(
|
|
981
997
|
sarif_file,
|
|
982
998
|
product_name=config.product_name,
|
|
@@ -985,40 +1001,57 @@ class RestoredIaCScanCommand(ClickCommand):
|
|
|
985
1001
|
)
|
|
986
1002
|
if result.success:
|
|
987
1003
|
self.console.print(
|
|
988
|
-
f" [green]✅ {
|
|
1004
|
+
f" [green]✅ {label}[/green] → "
|
|
989
1005
|
f"{result.observations_new} new, "
|
|
990
1006
|
f"{result.observations_updated} updated"
|
|
991
1007
|
)
|
|
992
1008
|
published_count += 1
|
|
993
1009
|
else:
|
|
994
|
-
self.console.print(
|
|
995
|
-
f" [red]❌ {sarif_file.name}: {result.error}[/red]"
|
|
996
|
-
)
|
|
1010
|
+
self.console.print(f" [red]❌ {label}: {result.error}[/red]")
|
|
997
1011
|
|
|
998
|
-
#
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1012
|
+
# Tools that actually ran in this scan (ignore the summary entry).
|
|
1013
|
+
ran_tools = {
|
|
1014
|
+
name
|
|
1015
|
+
for name, data in results.items()
|
|
1016
|
+
if name != "summary" and isinstance(data, dict)
|
|
1017
|
+
}
|
|
1002
1018
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1019
|
+
# 1. Upload native SARIF reports (e.g. KICS writes kics-results.sarif).
|
|
1020
|
+
# Only for tools that ran in THIS scan, so stale files from earlier
|
|
1021
|
+
# runs are not re-uploaded. ThothCTL-generated combined files are
|
|
1022
|
+
# skipped here; they are not tool-native.
|
|
1023
|
+
native_tools = set()
|
|
1024
|
+
for sarif_file in sorted(reports_path.rglob("*.sarif")):
|
|
1025
|
+
if sarif_file.name in self._GENERATED_SARIF_NAMES:
|
|
1026
|
+
continue
|
|
1027
|
+
tool_name = sarif_file.stem.replace("-results", "")
|
|
1028
|
+
if tool_name not in ran_tools:
|
|
1029
|
+
continue
|
|
1030
|
+
native_tools.add(tool_name)
|
|
1031
|
+
_upload(sarif_file, tool_name, sarif_file.name)
|
|
1032
|
+
|
|
1033
|
+
# 2. Upload a combined SARIF for every other tool with findings
|
|
1034
|
+
# (checkov, trivy, opa, terraform-compliance have no native SARIF).
|
|
1035
|
+
# Native-SARIF tools are excluded to avoid duplicate observations.
|
|
1036
|
+
remaining = {
|
|
1037
|
+
name: data
|
|
1038
|
+
for name, data in results.items()
|
|
1039
|
+
if name in ran_tools
|
|
1040
|
+
and name not in native_tools
|
|
1041
|
+
and data.get("findings")
|
|
1042
|
+
}
|
|
1043
|
+
if remaining:
|
|
1044
|
+
try:
|
|
1045
|
+
sarif_doc = build_sarif(remaining, code_directory)
|
|
1046
|
+
combined_path = reports_path / self._SECOBSERVE_SARIF_NAME
|
|
1047
|
+
combined_path.parent.mkdir(parents=True, exist_ok=True)
|
|
1048
|
+
with open(combined_path, "w") as f:
|
|
1049
|
+
json.dump(sarif_doc, f, indent=2)
|
|
1050
|
+
_upload(
|
|
1051
|
+
combined_path,
|
|
1052
|
+
"thothctl-scan",
|
|
1053
|
+
f"Combined SARIF ({', '.join(sorted(remaining))})",
|
|
1054
|
+
)
|
|
1022
1055
|
except Exception as e:
|
|
1023
1056
|
self.console.print(
|
|
1024
1057
|
f" [red]❌ SARIF generation failed: {e}[/red]"
|
|
@@ -1026,7 +1059,16 @@ class RestoredIaCScanCommand(ClickCommand):
|
|
|
1026
1059
|
|
|
1027
1060
|
if published_count > 0:
|
|
1028
1061
|
self.console.print(
|
|
1029
|
-
f"\n[green]📊 Published {published_count}
|
|
1062
|
+
f"\n[green]📊 Published {published_count}/{attempted_count} "
|
|
1063
|
+
f"report(s) to SecObserve[/green]"
|
|
1064
|
+
)
|
|
1065
|
+
elif attempted_count > 0:
|
|
1066
|
+
self.console.print(
|
|
1067
|
+
f"\n[yellow]⚠️ All {attempted_count} SecObserve upload(s) failed[/yellow]"
|
|
1068
|
+
)
|
|
1069
|
+
else:
|
|
1070
|
+
self.console.print(
|
|
1071
|
+
"[dim] ⏭️ No findings or SARIF reports to publish to SecObserve[/dim]"
|
|
1030
1072
|
)
|
|
1031
1073
|
|
|
1032
1074
|
except ValueError as e:
|
|
@@ -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
|
|