scaffold-ca-python 0.4.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/build.yml +31 -0
- scaffold_ca_python-1.0.0/.release-please-manifest.json +3 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/CHANGELOG.md +18 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/PKG-INFO +54 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/README.md +53 -3
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/pyproject.toml +5 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/data-model.md +29 -27
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/research.md +3 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/plan.md +7 -6
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/spec.md +2 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/spec.md +2 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/data-model.md +4 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/research.md +2 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/plan.md +1 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/quickstart.md +3 -3
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/tasks.md +5 -3
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/plan.md +1 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/contracts/gep-mcp.md +3 -8
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/spec.md +2 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/data-model.md +2 -6
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/tasks.md +3 -1
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/checklists/requirements.md +36 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/contracts/generated-routes.md +83 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/data-model.md +31 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/plan.md +106 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/quickstart.md +65 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/research.md +63 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/spec.md +147 -0
- scaffold_ca_python-1.0.0/specs/027-mcp-health-check/tasks.md +220 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/checklists/requirements.md +46 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/contracts/generated-files.md +224 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/contracts/migrate-di.md +7 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/data-model.md +114 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/plan.md +361 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/quickstart.md +236 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/research.md +167 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/spec.md +225 -0
- scaffold_ca_python-1.0.0/specs/028-wireup-di/tasks.md +325 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/cli.py +15 -10
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/_entry_point_rules.py +13 -18
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/commands/_shared.py +205 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/add_mcp_tool.py +56 -63
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/delete_module.py +22 -35
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_driven_adapter.py +51 -32
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_entry_point.py +29 -75
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_helper.py +11 -24
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_model.py +12 -24
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_pipeline.py +25 -39
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/generate_project.py +43 -47
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/commands/generate_use_case.py +154 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/update_project.py +12 -26
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/validate_structure.py +6 -21
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/core/errors.py +5 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/file_writer.py +3 -5
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/mcp_tool_spec.py +16 -21
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/module_builder.py +36 -31
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/module_locator.py +2 -2
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/name_utils.py +22 -17
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/project_detector.py +12 -3
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/core/pyproject_writer.py +126 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/structure_validator.py +1 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/template_renderer.py +3 -7
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/core/version.py +17 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/core/wiring_utils.py +161 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/__init__.py +1 -2
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/dependencies.py +18 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/driven_adapters/base.py +102 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/driven_adapters/da_generic.py +37 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/driven_adapters/da_rest_consumer.py +61 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/driven_adapters/da_secrets.py +21 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/entry_points/base.py +34 -6
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/entry_points/ep_agent.py +65 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/entry_points/ep_generic.py +41 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/entry_points/ep_mcp.py +81 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/entry_points/ep_restapi.py +81 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/pipelines/__init__.py +2 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/pipelines/pipeline_factory.py +4 -3
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/simple/delete_module_factory.py +104 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/simple/helper_factory.py +30 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/simple/model_factory.py +40 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/factory/simple/use_case_factory.py +71 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/context.py +23 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/file_operation.py +1 -2
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/layer.py +4 -4
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/options.py +1 -7
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/generic/adapter.py.jinja2 +34 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/generic/test_adapter.py.jinja2 +1 -1
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/rest_consumer.py.jinja2 +50 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/rest_consumer_config.py.jinja2 +22 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/rest_consumer_settings.py.jinja2 +27 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/test_rest_consumer.py.jinja2 +10 -1
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/secrets/secrets_adapter.py.jinja2 +48 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/secrets/secrets_settings.py.jinja2 +20 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/driven_adapter/wiring_test_stub.py.jinja2 +11 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/__init__.py.jinja2 +1 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/a2a_config.py.jinja2 +53 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/agent_card.py.jinja2 +40 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/agent_executor.py.jinja2 +64 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/agent_settings.py.jinja2 +32 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/app.py.jinja2 +47 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/routes.py.jinja2 +17 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/server.py.jinja2 +17 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/test_agent_card.py.jinja2 +54 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/test_agent_executor.py.jinja2 +75 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/test_app.py.jinja2 +76 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/agent/test_routes.py.jinja2 +23 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/generic/entrypoint_main.py.jinja2 +18 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/generic/generic_app.py.jinja2 +19 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/generic/test_handler.py.jinja2 +1 -2
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/mcp/app.py.jinja2 +50 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/prompts.py.jinja2 +3 -7
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/resources.py.jinja2 +3 -7
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/mcp/routes.py.jinja2 +25 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/server.py.jinja2 +1 -3
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/test_app.py.jinja2 +20 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/mcp/test_routes.py.jinja2 +25 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/entry_point/mcp/tools.py.jinja2 +19 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/app.py.jinja2 +9 -20
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/rest_controller.py.jinja2 +16 -9
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/test_app.py.jinja2 +1 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/test_rest_controller.py.jinja2 +10 -8
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/helper/helper.py.jinja2 +18 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/README.jinja2 +51 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/application/config/config.py.jinja2 +6 -1
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/application/config/usecases/__init__.py.jinja2 +2 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/application/config/wiring.py.jinja2 +16 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/dockerfile.jinja2 +3 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/mypy_ini.jinja2 +1 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/pyproject_toml.jinja2 +6 -2
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/test_config.py.jinja2 +18 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/test_main.py.jinja2 +32 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/project/test_wiring.py.jinja2 +26 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/use_case/test_use_case.py.jinja2 +26 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/use_case/test_use_case_factory.py.jinja2 +22 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/use_case/use_case.py.jinja2 +24 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/use_case/use_case_factory.py.jinja2 +24 -0
- scaffold_ca_python-1.0.0/src/scaffold_ca_python/templates/use_case/wiring_test_stub.py.jinja2 +11 -0
- scaffold_ca_python-1.0.0/tests/commands/test_add_mcp_tool.py +95 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_behavior_contract.py +73 -55
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_cli.py +6 -10
- scaffold_ca_python-1.0.0/tests/commands/test_delete_module.py +191 -0
- scaffold_ca_python-1.0.0/tests/commands/test_dry_run_checksum.py +71 -0
- scaffold_ca_python-1.0.0/tests/commands/test_generate_driven_adapter.py +178 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_generate_entry_point.py +133 -433
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_generate_helper.py +2 -72
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_generate_model.py +3 -62
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_generate_pipeline.py +23 -89
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_generate_project.py +120 -27
- scaffold_ca_python-1.0.0/tests/commands/test_generate_use_case.py +355 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_performance.py +6 -28
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_shared.py +58 -32
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_update_project.py +2 -28
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_validate_structure.py +2 -33
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/test_workflow.py +3 -8
- scaffold_ca_python-1.0.0/tests/conftest.py +71 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_file_writer.py +5 -23
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_mcp_tool_spec.py +7 -15
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_module_locator.py +14 -14
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_name_utils.py +5 -17
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_openapi_routes.py +1 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_project_context.py +52 -18
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_project_detector.py +3 -13
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_pyproject_writer.py +23 -44
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_structure_validator.py +2 -12
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/test_template_renderer.py +3 -12
- scaffold_ca_python-1.0.0/tests/core/test_version.py +26 -0
- scaffold_ca_python-1.0.0/tests/core/test_wiring_utils.py +99 -0
- scaffold_ca_python-1.0.0/tests/e2e/conftest.py +58 -0
- scaffold_ca_python-1.0.0/tests/e2e/test_generated_project_quality.py +156 -0
- scaffold_ca_python-1.0.0/tests/factory/driven_adapters/test_da_generic.py +117 -0
- scaffold_ca_python-1.0.0/tests/factory/driven_adapters/test_da_rest_consumer.py +266 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/driven_adapters/test_da_secrets.py +7 -20
- scaffold_ca_python-1.0.0/tests/factory/entry_points/test_ep_agent.py +105 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/entry_points/test_ep_generic.py +9 -22
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/entry_points/test_ep_mcp.py +50 -35
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/entry_points/test_ep_restapi.py +12 -25
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/fixtures/dry_run_baseline.json +22 -6
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/simple/test_delete_module_factory.py +5 -47
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/simple/test_helper_factory.py +28 -20
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/simple/test_model_factory.py +7 -20
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/simple/test_use_case_factory.py +7 -20
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/test_dry_run_parity.py +4 -20
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/test_extensibility.py +8 -31
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/test_module_builder.py +32 -59
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/factory/test_registry.py +14 -21
- scaffold_ca_python-1.0.0/tests/helpers.py +72 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/models/test_context.py +14 -27
- scaffold_ca_python-1.0.0/tests/models/test_file_operation.py +48 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/models/test_layer.py +5 -14
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/models/test_options.py +5 -16
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/models/test_violation.py +1 -5
- scaffold_ca_python-1.0.0/tests/templates/__init__.py +0 -0
- scaffold_ca_python-1.0.0/tests/templates/test_di_config_templates.py +141 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_docker_templates.py +6 -12
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_driven_adapter_templates.py +14 -18
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_entry_point_templates.py +177 -99
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_entrypoint_main_templates.py +13 -28
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_helper_templates.py +8 -14
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_model_templates.py +4 -12
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_pipeline_templates.py +5 -16
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_project_templates.py +3 -23
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/templates/test_use_case_templates.py +4 -11
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/test_source_hygiene.py +19 -5
- scaffold_ca_python-0.4.0/.release-please-manifest.json +0 -3
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/commands/_shared.py +0 -109
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/commands/generate_use_case.py +0 -93
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/core/pyproject_writer.py +0 -252
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/driven_adapters/base.py +0 -23
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/driven_adapters/da_generic.py +0 -65
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/driven_adapters/da_rest_consumer.py +0 -67
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/driven_adapters/da_secrets.py +0 -65
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/entry_points/ep_agent.py +0 -100
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/entry_points/ep_generic.py +0 -84
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/entry_points/ep_mcp.py +0 -145
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/entry_points/ep_restapi.py +0 -161
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/simple/delete_module_factory.py +0 -50
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/simple/helper_factory.py +0 -67
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/simple/model_factory.py +0 -62
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/factory/simple/use_case_factory.py +0 -59
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/driven_adapter/generic/adapter.py.jinja2 +0 -18
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/rest_consumer.py.jinja2 +0 -27
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/driven_adapter/secrets/secrets_adapter.py.jinja2 +0 -37
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/agent/__init__.py.jinja2 +0 -1
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/agent/agent.py.jinja2 +0 -50
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/agent/card.py.jinja2 +0 -15
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/agent/entrypoint_main.py.jinja2 +0 -13
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/agent/test_agent.py.jinja2 +0 -20
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/generic/entrypoint_main.py.jinja2 +0 -13
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/mcp/app.py.jinja2 +0 -54
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/mcp/tools.py.jinja2 +0 -22
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/entry_point/restapi/health.py.jinja2 +0 -13
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/helper/helper.py.jinja2 +0 -7
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/project/README.jinja2 +0 -30
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/project/application/config/container.py.jinja2 +0 -17
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/project/application/config/driven_adapters_container.py.jinja2 +0 -14
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/project/application/config/resource_container.py.jinja2 +0 -17
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/project/application/config/usecases_container.py.jinja2 +0 -16
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/use_case/test_use_case.py.jinja2 +0 -12
- scaffold_ca_python-0.4.0/src/scaffold_ca_python/templates/use_case/use_case.py.jinja2 +0 -9
- scaffold_ca_python-0.4.0/tests/commands/test_delete_module.py +0 -288
- scaffold_ca_python-0.4.0/tests/commands/test_dry_run_checksum.py +0 -178
- scaffold_ca_python-0.4.0/tests/commands/test_generate_driven_adapter.py +0 -344
- scaffold_ca_python-0.4.0/tests/commands/test_generate_use_case.py +0 -245
- scaffold_ca_python-0.4.0/tests/conftest.py +0 -14
- scaffold_ca_python-0.4.0/tests/factory/driven_adapters/test_da_generic.py +0 -78
- scaffold_ca_python-0.4.0/tests/factory/driven_adapters/test_da_rest_consumer.py +0 -103
- scaffold_ca_python-0.4.0/tests/factory/entry_points/test_ep_agent.py +0 -119
- scaffold_ca_python-0.4.0/tests/models/test_file_operation.py +0 -99
- scaffold_ca_python-0.4.0/tests/templates/test_di_config_templates.py +0 -112
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-analyze/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-checklist/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-clarify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-constitution/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-converge/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-implement/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-plan/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-specify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-tasks/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.claude/skills/speckit-taskstoissues/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-analyze/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-checklist/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-clarify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-constitution/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-converge/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-implement/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-plan/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-specify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-tasks/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.cursor/skills/speckit-taskstoissues/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/copilot-instructions.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/issue_template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/pull_request_template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-analyze/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-checklist/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-clarify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-constitution/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-converge/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-implement/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-plan/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-specify/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-tasks/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/skills/speckit-taskstoissues/SKILL.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/dependency-review.yml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/publish.yml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/release-please.yml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/scorecards-analysis.yml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.github/workflows/secret-scanner.yml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.gitignore +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.pre-commit-config.yaml +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.python-version +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/.gitignore +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/init-options.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/integration.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/integrations/claude.manifest.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/integrations/copilot.manifest.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/integrations/cursor-agent.manifest.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/integrations/speckit.manifest.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/memory/constitution.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/check-prerequisites.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/common.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/create-new-feature.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/resolve-template.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/setup-plan.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/setup-tasks.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/scripts/bash/update-agent-context.sh +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/agent-file-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/checklist-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/constitution-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/plan-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/spec-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/.specify/templates/tasks-template.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/LICENSE +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/SECURITY.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/release-please-config.json +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/ca.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/dm.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/gda.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/gep.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/gh.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/gm.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/gpipe.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/guc.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/up.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/contracts/vs.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/contracts/clean-architecture.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/contracts/gda.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/contracts/gep.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/contracts/gpipe.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/007-cli-usability-enhancements/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/contracts/gep.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/contracts/gep-restapi.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/009-app-factory-split/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/012-fix-restapi-test-templates/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/014-tests-in-src/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/015-factory-builder-refactor/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/contracts/name-validation.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/contracts/readme-outline.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/020-pypi-publish-readme/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/contracts/gep-add-tool.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/021-mcp-add-tool/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/contracts/cli-behavior.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/contracts/factory-extension.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/022-solid-code-cleanup/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/023-error-hints/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/024-typed-template-contexts/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/contracts/dm.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/contracts/gm.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/025-model-gateway-generation/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/checklists/requirements.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/contracts/dm.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/contracts/guc.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/data-model.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/plan.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/quickstart.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/research.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/spec.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/026-usecase-naming-standardization/tasks.md +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/commands/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/core/openapi_routes.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/driven_adapters/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/entry_points/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/factory/simple/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/models/violation.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/generic/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/rest_consumer/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/secrets/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/driven_adapter/secrets/test_secrets_adapter.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/generic/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/generic/handler.py.jinja2 +1 -1
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/test_prompts.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/test_resources.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/test_tool_stub.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/test_tools.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/mcp/tool_stub.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/exception_handler.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/server.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/test_exception_handler.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/entry_point/restapi/test_server.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/helper/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/helper/test_helper.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/gateway.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/gateways_init.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/model.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/test_gateway.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/model/test_model.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/pipeline/azure/azure_pipelines.yml.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/pipeline/github/ci.yml.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/application/config/__init__.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/dockerignore.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/empty.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/gitignore.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/layer_init.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/main.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/package_init.py.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/src/scaffold_ca_python/templates/project/python_version.jinja2 +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/commands/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/tests/core/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/factory → scaffold_ca_python-1.0.0/tests/e2e}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/factory/driven_adapters → scaffold_ca_python-1.0.0/tests/factory}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/factory/entry_points → scaffold_ca_python-1.0.0/tests/factory/driven_adapters}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/factory/simple → scaffold_ca_python-1.0.0/tests/factory/entry_points}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/models → scaffold_ca_python-1.0.0/tests/factory/simple}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0/tests/templates → scaffold_ca_python-1.0.0/tests/models}/__init__.py +0 -0
- {scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/uv.lock +0 -0
|
@@ -102,12 +102,43 @@ jobs:
|
|
|
102
102
|
path: .coverage
|
|
103
103
|
if-no-files-found: ignore
|
|
104
104
|
|
|
105
|
+
e2e:
|
|
106
|
+
name: E2E (generated projects)
|
|
107
|
+
runs-on: ubuntu-latest
|
|
108
|
+
needs:
|
|
109
|
+
- lint
|
|
110
|
+
steps:
|
|
111
|
+
- uses: actions/checkout@v4
|
|
112
|
+
with:
|
|
113
|
+
persist-credentials: false
|
|
114
|
+
|
|
115
|
+
- name: Set up Python
|
|
116
|
+
uses: actions/setup-python@v5
|
|
117
|
+
with:
|
|
118
|
+
python-version-file: ".python-version"
|
|
119
|
+
|
|
120
|
+
- name: Setup uv
|
|
121
|
+
uses: astral-sh/setup-uv@v4
|
|
122
|
+
with:
|
|
123
|
+
enable-cache: true
|
|
124
|
+
cache-dependency-glob: |
|
|
125
|
+
pyproject.toml
|
|
126
|
+
uv.lock
|
|
127
|
+
|
|
128
|
+
- name: Install dependencies
|
|
129
|
+
run: uv sync --locked --group dev
|
|
130
|
+
|
|
131
|
+
# E2E: no coverage — addopts include --cov/--cov-fail-under for the default suite only.
|
|
132
|
+
- name: Run e2e tests
|
|
133
|
+
run: uv run pytest -m e2e --no-cov
|
|
134
|
+
|
|
105
135
|
check:
|
|
106
136
|
name: Check Status
|
|
107
137
|
if: always()
|
|
108
138
|
needs:
|
|
109
139
|
- lint
|
|
110
140
|
- test
|
|
141
|
+
- e2e
|
|
111
142
|
runs-on: ubuntu-latest
|
|
112
143
|
steps:
|
|
113
144
|
- name: Dump GitHub context
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0](https://github.com/bancolombia/scaffold-clean-architecture-py/compare/v0.5.0...v1.0.0) (2026-11-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **scaffold:** gep --type agent now generates infrastructure/entry_points/a2a_server instead of agent/, uses server.py, and no longer accepts --enable-kafka or --enable-mcp-client.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **scaffold:** wireup DI for new projects ([bdbc252](https://github.com/bancolombia/scaffold-clean-architecture-py/commit/bdbc2524e83c7bb5643d565cffbc3f3bf954d80f))
|
|
13
|
+
|
|
14
|
+
## [0.5.0](https://github.com/bancolombia/scaffold-clean-architecture-py/compare/v0.4.0...v0.5.0) (2026-10-27)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **mcp:** generate health check route for MCP entry points ([70a2645](https://github.com/bancolombia/scaffold-clean-architecture-py/commit/70a2645e63957d211761e7535edc675685031d57))
|
|
20
|
+
|
|
3
21
|
## [0.4.0](https://github.com/bancolombia/scaffold-clean-architecture-py/compare/v0.3.0...v0.4.0) (2026-10-26)
|
|
4
22
|
|
|
5
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: scaffold-ca-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: Scaffolder to generate Clean Architecture apps
|
|
5
5
|
Project-URL: Homepage, https://github.com/bancolombia/scaffold-clean-architecture-py
|
|
6
6
|
Project-URL: Repository, https://github.com/bancolombia/scaffold-clean-architecture-py
|
|
@@ -130,10 +130,16 @@ scaffold gm --name order --dry-run
|
|
|
130
130
|
|
|
131
131
|
Scaffold a use case in `domain/usecase/`. The module is always named `<name>_usecase.py` and the class `<Name>UseCase`. Writing `_usecase` in `--name` is optional and the suffix is never duplicated: `create_order`, `create_order_usecase` and `create_order_use_case` all create `create_order_usecase.py` with `CreateOrderUseCase`.
|
|
132
132
|
|
|
133
|
+
Use `--uses` with one or more **domain gateway** names (comma-separated) to generate a typed constructor and a wireup factory under `application/config/usecases/`. Gateway names must match ABCs in `domain/model/*/gateways/`. Helpers and adapters are not valid `--uses` targets.
|
|
134
|
+
|
|
133
135
|
```bash
|
|
134
136
|
scaffold guc --name create_order
|
|
135
137
|
```
|
|
136
138
|
|
|
139
|
+
```bash
|
|
140
|
+
scaffold guc --name create_order --uses order_repository
|
|
141
|
+
```
|
|
142
|
+
|
|
137
143
|
```bash
|
|
138
144
|
scaffold guc --name create_order --dry-run
|
|
139
145
|
```
|
|
@@ -142,10 +148,16 @@ scaffold guc --name create_order --dry-run
|
|
|
142
148
|
|
|
143
149
|
Scaffold a driven adapter such as an HTTP client, secrets adapter, or generic outbound adapter.
|
|
144
150
|
|
|
151
|
+
Use `--gateway` with a domain gateway ABC name so the adapter is registered as `@injectable(as_type=<Gateway>)` and wired to that port.
|
|
152
|
+
|
|
145
153
|
```bash
|
|
146
154
|
scaffold gda --type rest-consumer
|
|
147
155
|
```
|
|
148
156
|
|
|
157
|
+
```bash
|
|
158
|
+
scaffold gda --type generic --name order_repository_adapter --gateway order_repository
|
|
159
|
+
```
|
|
160
|
+
|
|
149
161
|
```bash
|
|
150
162
|
scaffold gda --type generic --name my_adapter --dry-run
|
|
151
163
|
```
|
|
@@ -166,6 +178,18 @@ scaffold gep --type mcp --with-resources --with-prompts --dry-run
|
|
|
166
178
|
scaffold gep --type mcp --add-tool --name create_file --param path:str --param content:str --returns str --description "Creates a file on disk"
|
|
167
179
|
```
|
|
168
180
|
|
|
181
|
+
```bash
|
|
182
|
+
scaffold gep --type agent
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
`--type agent` generates an [A2A](https://a2a-protocol.org) server (a2a-sdk, Starlette, uvicorn) under `infrastructure/entry_points/a2a_server/` and replaces `main.py` with `server.py`. It runs with zero configuration (`uv run <project-script>`):
|
|
186
|
+
|
|
187
|
+
- `GET /api/v1/health` — liveness probe.
|
|
188
|
+
- `GET /.well-known/agent-card.json` — agent card built from `AGENT_NAME`, `AGENT_DESCRIPTION`, `AGENT_VERSION`, and `AGENT_PUBLIC_URL`.
|
|
189
|
+
- `POST /` (JSON-RPC) and `POST /message:send` (REST) — `SendMessage` answers `Hello, World! You said: <text>`. Clients send the `A2A-Version: 1.0` header.
|
|
190
|
+
|
|
191
|
+
`HOST` and `PORT` (default `0.0.0.0:8000`) are added to `application/config/config.py`. To call a use case, uncomment the `some_usecase` hooks in `a2a_config.py` and `agent_executor.py`. Only one entry-point type per project: `agent` conflicts with `restapi` and `mcp`.
|
|
192
|
+
|
|
169
193
|
### scaffold gh
|
|
170
194
|
|
|
171
195
|
Scaffold a helper utility module and its test stub.
|
|
@@ -226,11 +250,23 @@ scaffold up --dry-run
|
|
|
226
250
|
scaffold update-project --dry-run
|
|
227
251
|
```
|
|
228
252
|
|
|
253
|
+
## Dependency injection (wireup)
|
|
254
|
+
|
|
255
|
+
New projects generated with `scaffold ca` use [wireup](https://pypi.org/project/wireup/) for async-first dependency injection:
|
|
256
|
+
|
|
257
|
+
- `application/config/wiring.py` defines `create_container()` and package scan targets (`driven_adapters`, `helpers`, `usecases`).
|
|
258
|
+
- Use cases declare gateway dependencies with `scaffold guc --uses …`; adapters bind to gateways with `scaffold gda --gateway …`.
|
|
259
|
+
- Entry points inject use cases with `Injected[…]` (REST/MCP), through constructor injection in a wireup factory (agent), or resolve types from the container (generic)—without importing `application` from infrastructure.
|
|
260
|
+
- Generated code enables ruff rule `ASYNC` and pytest `asyncio_mode = auto`.
|
|
261
|
+
|
|
262
|
+
**Legacy projects** (generated with scaffold-ca-python ≤ 0.5.0, `dependency-injector`, no `scaffold_version` in `[tool.scaffold-ca-python]`) are not modified by generate commands. Migrate to wireup manually, then set `scaffold_version` in `pyproject.toml` before using newer scaffold commands on that repo.
|
|
263
|
+
|
|
229
264
|
## Technologies
|
|
230
265
|
|
|
231
266
|
| Tool / Library | Version | Role |
|
|
232
267
|
|----------------|---------|------|
|
|
233
268
|
| Python | >=3.13 | Runtime |
|
|
269
|
+
| wireup | 2.13.0 | DI in generated projects |
|
|
234
270
|
| uv | latest | Dependency management, build, and publish |
|
|
235
271
|
| Typer | >=0.27.2 | CLI framework |
|
|
236
272
|
| Rich | >=15.0.0 | Terminal output formatting |
|
|
@@ -246,9 +282,9 @@ scaffold update-project --dry-run
|
|
|
246
282
|
|
|
247
283
|
- Generates full Clean Architecture project skeletons with `scaffold ca`.
|
|
248
284
|
- Generates domain models with `scaffold gm`.
|
|
249
|
-
- Generates domain use cases with `scaffold guc
|
|
250
|
-
- Generates driven adapters with `scaffold gda
|
|
251
|
-
- Generates entry points for REST API, agent, MCP, and generic modes with `scaffold gep`.
|
|
285
|
+
- Generates domain use cases with `scaffold guc` (optional `--uses` for gateway wiring and DI factories).
|
|
286
|
+
- Generates driven adapters with `scaffold gda` (optional `--gateway` for port binding).
|
|
287
|
+
- Generates entry points for REST API, A2A agent, MCP, and generic modes with `scaffold gep`.
|
|
252
288
|
- Generates helper utilities with `scaffold gh`.
|
|
253
289
|
- Generates CI/CD pipeline files with `scaffold gpipe`.
|
|
254
290
|
- Validates import boundaries with `scaffold vs`.
|
|
@@ -289,6 +325,20 @@ git checkout -b your-branch-feature-name
|
|
|
289
325
|
uv run pytest
|
|
290
326
|
```
|
|
291
327
|
|
|
328
|
+
To run end-to-end tests (these generate real projects and run quality checks on them):
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
uv run pytest -m e2e
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
**Troubleshooting E2E tests**: If you see `uv sync failed` errors during e2e tests due to TLS/certificate issues (typically in corporate environments with custom CAs or proxies), set `UV_SYSTEM_CERTS=1` to make `uv` use your system's certificate store:
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
UV_SYSTEM_CERTS=1 uv run pytest -m e2e
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
You can also export this variable in your shell configuration (`.zshrc`, `.bashrc`) to make it permanent for your local environment.
|
|
341
|
+
|
|
292
342
|
6. Check linting.
|
|
293
343
|
|
|
294
344
|
```bash
|
|
@@ -99,10 +99,16 @@ scaffold gm --name order --dry-run
|
|
|
99
99
|
|
|
100
100
|
Scaffold a use case in `domain/usecase/`. The module is always named `<name>_usecase.py` and the class `<Name>UseCase`. Writing `_usecase` in `--name` is optional and the suffix is never duplicated: `create_order`, `create_order_usecase` and `create_order_use_case` all create `create_order_usecase.py` with `CreateOrderUseCase`.
|
|
101
101
|
|
|
102
|
+
Use `--uses` with one or more **domain gateway** names (comma-separated) to generate a typed constructor and a wireup factory under `application/config/usecases/`. Gateway names must match ABCs in `domain/model/*/gateways/`. Helpers and adapters are not valid `--uses` targets.
|
|
103
|
+
|
|
102
104
|
```bash
|
|
103
105
|
scaffold guc --name create_order
|
|
104
106
|
```
|
|
105
107
|
|
|
108
|
+
```bash
|
|
109
|
+
scaffold guc --name create_order --uses order_repository
|
|
110
|
+
```
|
|
111
|
+
|
|
106
112
|
```bash
|
|
107
113
|
scaffold guc --name create_order --dry-run
|
|
108
114
|
```
|
|
@@ -111,10 +117,16 @@ scaffold guc --name create_order --dry-run
|
|
|
111
117
|
|
|
112
118
|
Scaffold a driven adapter such as an HTTP client, secrets adapter, or generic outbound adapter.
|
|
113
119
|
|
|
120
|
+
Use `--gateway` with a domain gateway ABC name so the adapter is registered as `@injectable(as_type=<Gateway>)` and wired to that port.
|
|
121
|
+
|
|
114
122
|
```bash
|
|
115
123
|
scaffold gda --type rest-consumer
|
|
116
124
|
```
|
|
117
125
|
|
|
126
|
+
```bash
|
|
127
|
+
scaffold gda --type generic --name order_repository_adapter --gateway order_repository
|
|
128
|
+
```
|
|
129
|
+
|
|
118
130
|
```bash
|
|
119
131
|
scaffold gda --type generic --name my_adapter --dry-run
|
|
120
132
|
```
|
|
@@ -135,6 +147,18 @@ scaffold gep --type mcp --with-resources --with-prompts --dry-run
|
|
|
135
147
|
scaffold gep --type mcp --add-tool --name create_file --param path:str --param content:str --returns str --description "Creates a file on disk"
|
|
136
148
|
```
|
|
137
149
|
|
|
150
|
+
```bash
|
|
151
|
+
scaffold gep --type agent
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
`--type agent` generates an [A2A](https://a2a-protocol.org) server (a2a-sdk, Starlette, uvicorn) under `infrastructure/entry_points/a2a_server/` and replaces `main.py` with `server.py`. It runs with zero configuration (`uv run <project-script>`):
|
|
155
|
+
|
|
156
|
+
- `GET /api/v1/health` — liveness probe.
|
|
157
|
+
- `GET /.well-known/agent-card.json` — agent card built from `AGENT_NAME`, `AGENT_DESCRIPTION`, `AGENT_VERSION`, and `AGENT_PUBLIC_URL`.
|
|
158
|
+
- `POST /` (JSON-RPC) and `POST /message:send` (REST) — `SendMessage` answers `Hello, World! You said: <text>`. Clients send the `A2A-Version: 1.0` header.
|
|
159
|
+
|
|
160
|
+
`HOST` and `PORT` (default `0.0.0.0:8000`) are added to `application/config/config.py`. To call a use case, uncomment the `some_usecase` hooks in `a2a_config.py` and `agent_executor.py`. Only one entry-point type per project: `agent` conflicts with `restapi` and `mcp`.
|
|
161
|
+
|
|
138
162
|
### scaffold gh
|
|
139
163
|
|
|
140
164
|
Scaffold a helper utility module and its test stub.
|
|
@@ -195,11 +219,23 @@ scaffold up --dry-run
|
|
|
195
219
|
scaffold update-project --dry-run
|
|
196
220
|
```
|
|
197
221
|
|
|
222
|
+
## Dependency injection (wireup)
|
|
223
|
+
|
|
224
|
+
New projects generated with `scaffold ca` use [wireup](https://pypi.org/project/wireup/) for async-first dependency injection:
|
|
225
|
+
|
|
226
|
+
- `application/config/wiring.py` defines `create_container()` and package scan targets (`driven_adapters`, `helpers`, `usecases`).
|
|
227
|
+
- Use cases declare gateway dependencies with `scaffold guc --uses …`; adapters bind to gateways with `scaffold gda --gateway …`.
|
|
228
|
+
- Entry points inject use cases with `Injected[…]` (REST/MCP), through constructor injection in a wireup factory (agent), or resolve types from the container (generic)—without importing `application` from infrastructure.
|
|
229
|
+
- Generated code enables ruff rule `ASYNC` and pytest `asyncio_mode = auto`.
|
|
230
|
+
|
|
231
|
+
**Legacy projects** (generated with scaffold-ca-python ≤ 0.5.0, `dependency-injector`, no `scaffold_version` in `[tool.scaffold-ca-python]`) are not modified by generate commands. Migrate to wireup manually, then set `scaffold_version` in `pyproject.toml` before using newer scaffold commands on that repo.
|
|
232
|
+
|
|
198
233
|
## Technologies
|
|
199
234
|
|
|
200
235
|
| Tool / Library | Version | Role |
|
|
201
236
|
|----------------|---------|------|
|
|
202
237
|
| Python | >=3.13 | Runtime |
|
|
238
|
+
| wireup | 2.13.0 | DI in generated projects |
|
|
203
239
|
| uv | latest | Dependency management, build, and publish |
|
|
204
240
|
| Typer | >=0.27.2 | CLI framework |
|
|
205
241
|
| Rich | >=15.0.0 | Terminal output formatting |
|
|
@@ -215,9 +251,9 @@ scaffold update-project --dry-run
|
|
|
215
251
|
|
|
216
252
|
- Generates full Clean Architecture project skeletons with `scaffold ca`.
|
|
217
253
|
- Generates domain models with `scaffold gm`.
|
|
218
|
-
- Generates domain use cases with `scaffold guc
|
|
219
|
-
- Generates driven adapters with `scaffold gda
|
|
220
|
-
- Generates entry points for REST API, agent, MCP, and generic modes with `scaffold gep`.
|
|
254
|
+
- Generates domain use cases with `scaffold guc` (optional `--uses` for gateway wiring and DI factories).
|
|
255
|
+
- Generates driven adapters with `scaffold gda` (optional `--gateway` for port binding).
|
|
256
|
+
- Generates entry points for REST API, A2A agent, MCP, and generic modes with `scaffold gep`.
|
|
221
257
|
- Generates helper utilities with `scaffold gh`.
|
|
222
258
|
- Generates CI/CD pipeline files with `scaffold gpipe`.
|
|
223
259
|
- Validates import boundaries with `scaffold vs`.
|
|
@@ -258,6 +294,20 @@ git checkout -b your-branch-feature-name
|
|
|
258
294
|
uv run pytest
|
|
259
295
|
```
|
|
260
296
|
|
|
297
|
+
To run end-to-end tests (these generate real projects and run quality checks on them):
|
|
298
|
+
|
|
299
|
+
```bash
|
|
300
|
+
uv run pytest -m e2e
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
**Troubleshooting E2E tests**: If you see `uv sync failed` errors during e2e tests due to TLS/certificate issues (typically in corporate environments with custom CAs or proxies), set `UV_SYSTEM_CERTS=1` to make `uv` use your system's certificate store:
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
UV_SYSTEM_CERTS=1 uv run pytest -m e2e
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
You can also export this variable in your shell configuration (`.zshrc`, `.bashrc`) to make it permanent for your local environment.
|
|
310
|
+
|
|
261
311
|
6. Check linting.
|
|
262
312
|
|
|
263
313
|
```bash
|
|
@@ -88,7 +88,11 @@ strict = true
|
|
|
88
88
|
python_version = "3.13"
|
|
89
89
|
|
|
90
90
|
[tool.pytest.ini_options]
|
|
91
|
-
|
|
91
|
+
markers = [
|
|
92
|
+
"e2e: end-to-end tests that require uv sync on generated projects (slow)",
|
|
93
|
+
"benchmark: performance tests (excluded from default runs)",
|
|
94
|
+
]
|
|
95
|
+
addopts = "-m 'not e2e and not benchmark' --cov=scaffold_ca_python --cov-fail-under=80"
|
|
92
96
|
testpaths = ["tests"]
|
|
93
97
|
|
|
94
98
|
[tool.coverage.run]
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/data-model.md
RENAMED
|
@@ -20,10 +20,10 @@ The rendering context passed to every Jinja2 template when generating a new proj
|
|
|
20
20
|
|
|
21
21
|
```python
|
|
22
22
|
class ProjectContext(BaseModel):
|
|
23
|
-
name: str
|
|
24
|
-
package: str
|
|
25
|
-
python_package: str
|
|
26
|
-
created_at: datetime
|
|
23
|
+
name: str # PascalCase project name, e.g. "MyProject"
|
|
24
|
+
package: str # Dot-notation package identifier, e.g. "com.example"
|
|
25
|
+
python_package: str # Snake-case import root, e.g. "my_project"
|
|
26
|
+
created_at: datetime # ISO 8601 timestamp of project creation
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
**Constraints**:
|
|
@@ -39,12 +39,12 @@ The rendering context for any single module generated inside an existing project
|
|
|
39
39
|
|
|
40
40
|
```python
|
|
41
41
|
class ModuleContext(BaseModel):
|
|
42
|
-
name: str
|
|
43
|
-
class_name: str
|
|
44
|
-
module_name: str
|
|
45
|
-
layer: Layer
|
|
46
|
-
subtype: str | None
|
|
47
|
-
project: ProjectContext
|
|
42
|
+
name: str # User-supplied name, validated and normalised
|
|
43
|
+
class_name: str # PascalCase class name, derived from name
|
|
44
|
+
module_name: str # snake_case file name (no .py), derived from name
|
|
45
|
+
layer: Layer # The layer where this module lives
|
|
46
|
+
subtype: str | None # For typed commands: "rest-consumer", "mcp", etc.
|
|
47
|
+
project: ProjectContext # Parent project context
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
---
|
|
@@ -55,12 +55,12 @@ An enumeration of the six structural positions in a generated Clean Architecture
|
|
|
55
55
|
|
|
56
56
|
```python
|
|
57
57
|
class Layer(str, Enum):
|
|
58
|
-
DOMAIN_MODEL
|
|
59
|
-
DOMAIN_USECASE
|
|
60
|
-
ENTRY_POINTS
|
|
58
|
+
DOMAIN_MODEL = "domain/model"
|
|
59
|
+
DOMAIN_USECASE = "domain/usecase"
|
|
60
|
+
ENTRY_POINTS = "infrastructure/entry-points"
|
|
61
61
|
DRIVEN_ADAPTERS = "infrastructure/driven-adapters"
|
|
62
|
-
HELPERS
|
|
63
|
-
APPLICATION
|
|
62
|
+
HELPERS = "infrastructure/helpers"
|
|
63
|
+
APPLICATION = "application"
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
**Dependency order (inner → outer)**:
|
|
@@ -78,10 +78,10 @@ Represents a single file that the tool intends to create or delete, used by both
|
|
|
78
78
|
|
|
79
79
|
```python
|
|
80
80
|
class GeneratedFile(BaseModel):
|
|
81
|
-
path: Path
|
|
82
|
-
content: str
|
|
83
|
-
is_test: bool = False
|
|
84
|
-
template_name: str
|
|
81
|
+
path: Path # Absolute path on disk
|
|
82
|
+
content: str # Rendered file content (empty string for directories)
|
|
83
|
+
is_test: bool = False # True if this is a test mirror file
|
|
84
|
+
template_name: str # The Jinja2 template that produced this file
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
**Used by**: `FileWriter`, dry-run formatter, rollback manifest.
|
|
@@ -97,10 +97,12 @@ class CreateFile(BaseModel):
|
|
|
97
97
|
kind: Literal["create"] = "create"
|
|
98
98
|
file: GeneratedFile
|
|
99
99
|
|
|
100
|
+
|
|
100
101
|
class DeleteFile(BaseModel):
|
|
101
102
|
kind: Literal["delete"] = "delete"
|
|
102
103
|
path: Path
|
|
103
104
|
|
|
105
|
+
|
|
104
106
|
FileOperation = CreateFile | DeleteFile
|
|
105
107
|
```
|
|
106
108
|
|
|
@@ -112,12 +114,12 @@ Produced by the `StructureValidator` when it finds a dependency-rule breach. Rep
|
|
|
112
114
|
|
|
113
115
|
```python
|
|
114
116
|
class Violation(BaseModel):
|
|
115
|
-
source_file: Path
|
|
116
|
-
line_number: int
|
|
117
|
-
import_statement: str
|
|
118
|
-
source_layer: Layer
|
|
119
|
-
target_layer: Layer
|
|
120
|
-
resolution_hint: str
|
|
117
|
+
source_file: Path # The file containing the offending import
|
|
118
|
+
line_number: int # 1-based line number of the import statement
|
|
119
|
+
import_statement: str # The raw import string, e.g. "from infrastructure.driven_adapters..."
|
|
120
|
+
source_layer: Layer # The layer the importing module belongs to
|
|
121
|
+
target_layer: Layer # The (outer) layer being incorrectly imported
|
|
122
|
+
resolution_hint: str # Human-readable fix suggestion
|
|
121
123
|
```
|
|
122
124
|
|
|
123
125
|
---
|
|
@@ -145,9 +147,9 @@ Metadata about a Jinja2 template file used by the `TemplateRenderer` to locate a
|
|
|
145
147
|
|
|
146
148
|
```python
|
|
147
149
|
class TemplateDescriptor(BaseModel):
|
|
148
|
-
name: str
|
|
150
|
+
name: str # Template file name relative to templates/, e.g. "domain/model.py.jinja2"
|
|
149
151
|
output_path_template: str # Jinja2 expression producing the output path, e.g. "domain/model/{{ module_name }}.py"
|
|
150
|
-
is_test: bool = False
|
|
152
|
+
is_test: bool = False # True if this template produces a test file
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
---
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/004-scaffold-ca-python-cli/research.md
RENAMED
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
```python
|
|
17
17
|
def _generate_project_impl(name: str, package: str) -> None: ...
|
|
18
18
|
|
|
19
|
+
|
|
19
20
|
@app.command("generate-project", help="Scaffold a CA project.")
|
|
20
21
|
def generate_project(name: str, package: str) -> None:
|
|
21
22
|
"""Scaffold a complete Clean Architecture Python project."""
|
|
22
23
|
_generate_project_impl(name, package)
|
|
23
24
|
|
|
25
|
+
|
|
24
26
|
@app.command("ca", hidden=True, help="Alias for generate-project.")
|
|
25
27
|
def ca(name: str, package: str) -> None:
|
|
26
28
|
_generate_project_impl(name, package)
|
|
@@ -107,6 +109,7 @@ with tempfile.TemporaryDirectory() as tmpdir:
|
|
|
107
109
|
```python
|
|
108
110
|
import ast
|
|
109
111
|
|
|
112
|
+
|
|
110
113
|
def extract_imports(source: str) -> list[str]:
|
|
111
114
|
tree = ast.parse(source)
|
|
112
115
|
modules: list[str] = []
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/plan.md
RENAMED
|
@@ -138,16 +138,16 @@ with (project_root / "pyproject.toml").open("wb") as fh:
|
|
|
138
138
|
# generate_entry_point.py
|
|
139
139
|
_DEP_MAP: dict[str, list[str]] = {
|
|
140
140
|
"restapi": ["fastapi>=0.100", "uvicorn[standard]>=0.20"],
|
|
141
|
-
"agent":
|
|
142
|
-
"mcp":
|
|
141
|
+
"agent": ["a2a-sdk>=0.1"],
|
|
142
|
+
"mcp": ["mcp>=1.0"],
|
|
143
143
|
"generic": [],
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
# generate_driven_adapter.py
|
|
147
147
|
_DEP_MAP: dict[str, list[str]] = {
|
|
148
148
|
"rest-consumer": ["httpx>=0.27"],
|
|
149
|
-
"secrets":
|
|
150
|
-
"generic":
|
|
149
|
+
"secrets": ["boto3>=1.34"],
|
|
150
|
+
"generic": [],
|
|
151
151
|
}
|
|
152
152
|
```
|
|
153
153
|
|
|
@@ -179,7 +179,7 @@ _DEP_MAP: dict[str, list[str]] = {
|
|
|
179
179
|
|
|
180
180
|
```python
|
|
181
181
|
class ProjectContext(BaseModel):
|
|
182
|
-
name: str
|
|
182
|
+
name: str # unchanged — validated against _NAME_RE
|
|
183
183
|
# package: str ← REMOVED
|
|
184
184
|
# python_package: computed from name (unchanged)
|
|
185
185
|
# created_at: injected at call site (unchanged)
|
|
@@ -209,7 +209,7 @@ class GeneratedFile(BaseModel):
|
|
|
209
209
|
content: str
|
|
210
210
|
template_name: str
|
|
211
211
|
is_test: bool = False
|
|
212
|
-
overwrite: bool = False
|
|
212
|
+
overwrite: bool = False # NEW — skips atomic-replace guard; for main.py lifecycle
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
### New: `core/pyproject_writer.py`
|
|
@@ -220,6 +220,7 @@ def inject_dependencies(project_root: Path, packages: list[str]) -> list[str]:
|
|
|
220
220
|
Returns the list of actually-added packages (empty if all already present)."""
|
|
221
221
|
...
|
|
222
222
|
|
|
223
|
+
|
|
223
224
|
def dry_run_inject(project_root: Path, packages: list[str]) -> list[str]:
|
|
224
225
|
"""Return packages that *would* be added without writing."""
|
|
225
226
|
...
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/006-ca-scaffold-enhancements/spec.md
RENAMED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
**Created**: 2026-03-27
|
|
5
5
|
**Status**: Ready
|
|
6
6
|
|
|
7
|
+
> **Partial supersession**: [Spec 028 — Wireup DI for new projects](../028-wireup-di/spec.md) replaces the **dependency-injector / container** scaffolding described in User Story 2 and related requirements for projects generated with scaffold-ca-python 0.6.0+. Other enhancements in this spec (Docker, ruff in pyproject, etc.) remain authoritative where not contradicted by 028.
|
|
8
|
+
|
|
7
9
|
## User Scenarios & Testing *(mandatory)*
|
|
8
10
|
|
|
9
11
|
### User Story 1 - Simplified Project Bootstrapping (Priority: P1)
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/008-fastapi-entrypoint-baseline/spec.md
RENAMED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
**Status**: Ready
|
|
6
6
|
**Input**: User description: "Improve FastAPI entry point generation aligned with ms_test baseline"
|
|
7
7
|
|
|
8
|
+
> **Partial supersession**: [Spec 028 — Wireup DI for new projects](../028-wireup-di/spec.md) replaces **DI wiring** in REST entry points (`Injected[…]`, `wireup.integration.fastapi`, no `Container` imports from infrastructure) for projects generated with scaffold-ca-python 0.6.0+. Layout and routing expectations in this spec still apply where compatible.
|
|
9
|
+
|
|
8
10
|
## User Scenarios & Testing *(mandatory)*
|
|
9
11
|
|
|
10
12
|
### User Story 1 — Baseline Structure Alignment (Priority: P1)
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/data-model.md
RENAMED
|
@@ -15,11 +15,11 @@ The relevant slice of the TOML document (typed as Python dict after `tomllib.loa
|
|
|
15
15
|
```python
|
|
16
16
|
{
|
|
17
17
|
"project": {
|
|
18
|
-
"name": str,
|
|
19
|
-
"scripts": {
|
|
20
|
-
"<pkg>": str
|
|
18
|
+
"name": str, # package name
|
|
19
|
+
"scripts": { # dict[str, str] — may be absent before update
|
|
20
|
+
"<pkg>": str # entry point target, e.g. "my_app.server:start_server"
|
|
21
21
|
},
|
|
22
|
-
"dependencies": list[str],
|
|
22
|
+
"dependencies": list[str], # managed by inject_dependencies (existing)
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
```
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/011-fix-restapi-cleanup/research.md
RENAMED
|
@@ -24,6 +24,7 @@ def update_project_scripts(project_root: Path, pkg: str) -> bool:
|
|
|
24
24
|
tomli_w.dump(data, fh)
|
|
25
25
|
return True
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
def dry_run_scripts_update(project_root: Path, pkg: str) -> bool:
|
|
28
29
|
"""Return True if update_project_scripts would change the file."""
|
|
29
30
|
pyproject = project_root / "pyproject.toml"
|
|
@@ -51,7 +52,7 @@ if type_ == "restapi":
|
|
|
51
52
|
if (project_root / "src" / pkg / "main.py").exists():
|
|
52
53
|
console.print("[dim]Would delete: src/{pkg}/main.py[/dim]")
|
|
53
54
|
if dry_run_scripts_update(project_root, pkg):
|
|
54
|
-
console.print(f
|
|
55
|
+
console.print(f'[dim]Would update [project.scripts]: {pkg} = "{pkg}.server:start_server"[/dim]')
|
|
55
56
|
```
|
|
56
57
|
|
|
57
58
|
---
|
|
@@ -140,10 +140,7 @@ Inserted after the existing `if type_ == "restapi":` guard, before `if type_ ==
|
|
|
140
140
|
|
|
141
141
|
```python
|
|
142
142
|
if type_ in ("mcp", "agent"):
|
|
143
|
-
restapi_dir =
|
|
144
|
-
project_root / "src" / project_ctx.python_package
|
|
145
|
-
/ "infrastructure" / "entry_points" / "api"
|
|
146
|
-
)
|
|
143
|
+
restapi_dir = project_root / "src" / project_ctx.python_package / "infrastructure" / "entry_points" / "api"
|
|
147
144
|
if restapi_dir.exists():
|
|
148
145
|
console.print(
|
|
149
146
|
f"[red]Error:[/red] Incompatible entry point '[bold]restapi[/bold]' "
|
|
@@ -43,10 +43,10 @@ from scaffold_ca_python.factory.entry_points.ep_grpc import EntryPointGrpc
|
|
|
43
43
|
|
|
44
44
|
_REGISTRY: dict[str, type[ModuleFactory]] = {
|
|
45
45
|
"restapi": EntryPointRestApi,
|
|
46
|
-
"agent":
|
|
47
|
-
"mcp":
|
|
46
|
+
"agent": EntryPointAgent,
|
|
47
|
+
"mcp": EntryPointMcp,
|
|
48
48
|
"generic": EntryPointGeneric,
|
|
49
|
-
"grpc":
|
|
49
|
+
"grpc": EntryPointGrpc, # ← one line
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/016-dedup-command-aliases/tasks.md
RENAMED
|
@@ -31,13 +31,15 @@
|
|
|
31
31
|
@app.command("generate-model", help="...", epilog="...")
|
|
32
32
|
def generate_model(ctx, name, dry_run): ...
|
|
33
33
|
|
|
34
|
+
|
|
34
35
|
@app.command("gm", hidden=True, help="Alias for generate-model.")
|
|
35
|
-
def gm(ctx, name, dry_run): ...
|
|
36
|
+
def gm(ctx, name, dry_run): ... # ← identical body, DELETE this
|
|
37
|
+
|
|
36
38
|
|
|
37
39
|
# With this:
|
|
38
40
|
@app.command("generate-model", help="...", epilog="...")
|
|
39
|
-
@app.command("gm", hidden=True)
|
|
40
|
-
def generate_model(ctx, name, dry_run): ...
|
|
41
|
+
@app.command("gm", hidden=True) # ← stack alias here
|
|
42
|
+
def generate_model(ctx, name, dry_run): ... # ← single body
|
|
41
43
|
```
|
|
42
44
|
|
|
43
45
|
**Independent Test**: `grep -c "def " <(grep -A100 "def register" <file.py> | head -50)` returns `1` for each module; existing test suite passes with no regressions.
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/017-pep8-naming-validation/plan.md
RENAMED
|
@@ -116,10 +116,7 @@ Also add integration-level assertions to `tests/commands/test_generate_project.p
|
|
|
116
116
|
```
|
|
117
117
|
2. Update `validate_name` error message:
|
|
118
118
|
```python
|
|
119
|
-
raise ScaffoldError(
|
|
120
|
-
f"Invalid name {name!r}. "
|
|
121
|
-
"Use kebab-case (e.g., 'my-project') or snake_case (e.g., 'my_project')."
|
|
122
|
-
)
|
|
119
|
+
raise ScaffoldError(f"Invalid name {name!r}. Use kebab-case (e.g., 'my-project') or snake_case (e.g., 'my_project').")
|
|
123
120
|
```
|
|
124
121
|
3. Prepend hyphen normalisation in `to_snake_case`:
|
|
125
122
|
```python
|
|
@@ -141,8 +141,7 @@ When `--dry-run` is used, the command MUST:
|
|
|
141
141
|
```python
|
|
142
142
|
@inject
|
|
143
143
|
async def bind_tools(
|
|
144
|
-
mcp: FastMCP,
|
|
145
|
-
usecase: SomeUseCase = Provide[Container.usecase_container.some_usecase]
|
|
144
|
+
mcp: FastMCP, usecase: SomeUseCase = Provide[Container.usecase_container.some_usecase]
|
|
146
145
|
) -> None: ...
|
|
147
146
|
```
|
|
148
147
|
|
|
@@ -151,8 +150,7 @@ async def bind_tools(
|
|
|
151
150
|
```python
|
|
152
151
|
@inject
|
|
153
152
|
async def bind_resources(
|
|
154
|
-
mcp: FastMCP,
|
|
155
|
-
usecase: SomeUseCase = Provide[Container.usecase_container.some_usecase]
|
|
153
|
+
mcp: FastMCP, usecase: SomeUseCase = Provide[Container.usecase_container.some_usecase]
|
|
156
154
|
) -> None: ...
|
|
157
155
|
```
|
|
158
156
|
|
|
@@ -160,10 +158,7 @@ async def bind_resources(
|
|
|
160
158
|
|
|
161
159
|
```python
|
|
162
160
|
@inject
|
|
163
|
-
def bind_prompts(
|
|
164
|
-
mcp: FastMCP,
|
|
165
|
-
prompt_usecase: SomeUseCase = Provide[Container.some_usecase]
|
|
166
|
-
) -> None: ...
|
|
161
|
+
def bind_prompts(mcp: FastMCP, prompt_usecase: SomeUseCase = Provide[Container.some_usecase]) -> None: ...
|
|
167
162
|
```
|
|
168
163
|
|
|
169
164
|
### `application/app.py` — public interface
|
{scaffold_ca_python-0.4.0 → scaffold_ca_python-1.0.0}/specs/019-mcp-entry-point-restructure/spec.md
RENAMED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
**Status**: Ready
|
|
6
6
|
**Input**: User description: "Restructure MCP Entry Point — split server.py into tools/resources/prompts primitives, add app.py factory, replace main.py with server.py"
|
|
7
7
|
|
|
8
|
+
> **Partial supersession**: [Spec 028 — Wireup DI for new projects](../028-wireup-di/spec.md) replaces **MCP DI wiring** (`inject_from_container`, `Injected[…]`, async composition root) for projects generated with scaffold-ca-python 0.6.0+. File layout and primitive split from this spec remain authoritative where compatible.
|
|
9
|
+
|
|
8
10
|
## User Scenarios & Testing *(mandatory)*
|
|
9
11
|
|
|
10
12
|
### User Story 1 — Generate MCP primitives as separate files (Priority: P1)
|