codeplain 0.4.1__tar.gz → 0.4.2.dev52__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.
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/PKG-INFO +1 -1
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_events.py +2 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_utils.py +12 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/render_functional_requirement.py +16 -8
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/render_context.py +9 -1
- codeplain-0.4.2.dev52/tests/test_functionality_position.py +90 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/state_handlers.py +3 -1
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.claude/settings.json +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.flake8 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/dependabot.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/e2e.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/lint-and-test.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/lint-powershell.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/notify-slack-on-main-merge.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/publish-dev-to-pypi.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/publish-install-script.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.github/workflows/publish-to-pypi.yml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.gitignore +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.vscode/launch.json +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/.vscode/settings.json +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/CLAUDE.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/CONTRIBUTING.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/LICENSE +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/README.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/change_detection.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/cli_output/__init__.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/cli_output/dry_run.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/cli_output/render_summary.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/cli_output/status.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/codeplain_REST_api.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/concept_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/config/__init__.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/config/system_config.yaml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/conformance_fix_journal.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/diff_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/docs/generate_cli.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/docs/plain2code_cli.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/docs/starting_a_plain_project_from_scratch.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/event_bus.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_golang/config.yaml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_golang/harness_tests/hello_world_test.go +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_golang/hello_world_golang.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_golang/run.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_golang/tests/hello_world_golang/display-hello-world.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_python/config.yaml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_python/harness_tests/hello_world_display/test_hello_world.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_python/hello_world_python.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_python/run.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_python/tests/hello_world_python/display-hello-world.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/config.yaml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/harness_tests/hello_world_display/cypress/e2e/hello_world.cy.ts +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/harness_tests/hello_world_display/cypress/support/e2e.ts +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/harness_tests/hello_world_display/cypress.config.ts +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/harness_tests/hello_world_display/package.json +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/harness_tests/hello_world_display/tsconfig.json +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/hello_world_react.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/run.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/tests/hello_world_react/display-hello-world.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/tests/typescript-react-app-boilerplate/entry-point.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/run.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/file_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/git_preflight.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/git_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/bash/examples.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/bash/install.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/bash/walkthrough.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/powershell/examples.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/powershell/install.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/install/powershell/walkthrough.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/memory_management.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/metadata_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/module_renderer.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/partial_rendering.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/path_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_arguments.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_cli.md +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_console.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_exceptions.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_logger.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_nodes.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_read_config.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_state.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain2code_telemetry.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain_file.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain_modules.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/plain_spec.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/pyproject.toml +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/pytest.ini +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/__init__.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/analyze_specification_ambiguity.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/base_action.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/commit_conformance_tests_changes.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/commit_implementation_code_changes.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/create_dist.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/distill_conformance_test_memory.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/exit_with_error.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/finish_functional_requirement.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/fix_conformance_test.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/fix_unit_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/prepare_repositories.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/prepare_testing_environment.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/refactor_code.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/render_conformance_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/run_conformance_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/run_unit_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/summarize_conformance_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/agent_tools.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/code_renderer.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/conformance_tests.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/implementation_code_helpers.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/render_types.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/render_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/state_machine_config.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/states.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/triggers.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/requirements.txt +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/resources/codeplain_overview.png +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/resources/plain_example.png +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/standard_template_library/golang-console-app-template.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/standard_template_library/python-console-app-template.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/standard_template_library/typescript-react-app-boilerplate.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/standard_template_library/typescript-react-app-template.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/system_config.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_cypress.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_cypress.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_golang.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_golang.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_python.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_conformance_tests_python.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_flutter.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_flutter.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_golang.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_golang.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_python.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_python.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_react.ps1 +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/test_scripts/run_unittests_react.sh +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/__init__.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/conftest.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/acceptance_tests_warning/main_requiring_acceptance_tests.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/acceptance_tests_warning/required_with_acceptance_tests.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/acceptance_tests_warning/tests/required_with_acceptance_tests/entry-point.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_code_var.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_implement.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_leaf.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_middle.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_root.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/data/partial_rendering/pr_solo.plain +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/e2e/Dockerfile +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/e2e/conftest.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/e2e/test_hello_world_python.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/e2e/test_hello_world_python_windows.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_acceptance_scenario_rendered_once.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_acceptance_scenarios_after_a_code_fix.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_agent_tools.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_arg_provenance.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_change_detection.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_cli_output.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_conformance_fix_journal.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_console_log_styles.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_dependency_pins.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_distill_conformance_test_memory.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_dry_run_link_validation.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_file_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_fix_unit_tests_action.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_fix_unit_tests_conformance_context.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_folder_path_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_frid_arguments.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_functionality_without_scenarios.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_git_preflight.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_git_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_headless_logging.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_log_file_name_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_logging_config_path_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_partial_rendering.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_path_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_plain2code.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_plain2code_state.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_plain2code_utils.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_plain_modules.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_prepare_repositories_layout.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_render_finished_report.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_render_range.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_render_stop_reason.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_resolve_config_file.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_script_path_resolution.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_system_config.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_telemetry.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_terminal_attachment.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_tests_folders.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_traceability_warnings.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_tui_components.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_tui_usage.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_usage_summary.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_user_error_message.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/__init__.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/components.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/models.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/plain2code_tui.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/plain_module_render_choice_tui.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/spinner.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/styles.css +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/tui/widget_helpers.py +0 -0
- {codeplain-0.4.1 → codeplain-0.4.2.dev52}/usage_summary.py +0 -0
|
@@ -22,6 +22,8 @@ class RenderContextSnapshot:
|
|
|
22
22
|
unit_tests_running_context: Optional[UnitTestsRunningContext]
|
|
23
23
|
script_execution_history: Optional[ScriptExecutionHistory]
|
|
24
24
|
module_name: str
|
|
25
|
+
# Where the functionality stands among those of its module, as "3/12". None before one is picked.
|
|
26
|
+
functionality_position: Optional[str] = None
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
@dataclass
|
|
@@ -31,6 +31,18 @@ AMBIGUITY_CAUSES = {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
def functionality_position(frids: list[str], frid: Optional[str]) -> Optional[str]:
|
|
35
|
+
"""Where a functionality stands among the functionalities of its module, as "3/12".
|
|
36
|
+
|
|
37
|
+
The count is over every functionality of the module, not over a render range, so the number
|
|
38
|
+
says where the render is in the specification whatever part of it was asked for.
|
|
39
|
+
"""
|
|
40
|
+
if frid is None or frid not in frids:
|
|
41
|
+
return None
|
|
42
|
+
|
|
43
|
+
return f"{frids.index(frid) + 1}/{len(frids)}"
|
|
44
|
+
|
|
45
|
+
|
|
34
46
|
def qualified_frid(module_name: Optional[str], frid: Optional[str]) -> Optional[str]:
|
|
35
47
|
"""A functionality named as `<module>:<func-id>`.
|
|
36
48
|
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/render_functional_requirement.py
RENAMED
|
@@ -19,6 +19,21 @@ class RenderFunctionalRequirement(BaseAction):
|
|
|
19
19
|
FUNCTIONAL_REQUIREMENT_TOO_COMPLEX_OUTCOME = "functional_requirement_too_complex"
|
|
20
20
|
ITERATION_LIMIT_EXCEEDED_OUTCOME = "frid_iteration_limit_exceeded"
|
|
21
21
|
|
|
22
|
+
@staticmethod
|
|
23
|
+
def functionality_heading(render_context) -> str:
|
|
24
|
+
"""The block logged when a functionality starts: its module, its ID, and where it stands."""
|
|
25
|
+
msg = "-------------------------------------\n"
|
|
26
|
+
msg += f"Module: {render_context.module_name}\n"
|
|
27
|
+
msg += f"Rendering functionality {render_context.frid_context.frid}"
|
|
28
|
+
position = render_context.current_functionality_position()
|
|
29
|
+
if position:
|
|
30
|
+
msg += f" ({position})"
|
|
31
|
+
if render_context.frid_context.functional_requirement_render_attempts > 1:
|
|
32
|
+
msg += f", attempt number {render_context.frid_context.functional_requirement_render_attempts}/{MAX_CODE_GENERATION_RETRIES}"
|
|
33
|
+
msg += f":\n{render_context.frid_context.functional_requirement_text}\n"
|
|
34
|
+
msg += "-------------------------------------"
|
|
35
|
+
return msg
|
|
36
|
+
|
|
22
37
|
def execute(self, render_context: RenderContext, _previous_action_payload: Any | None):
|
|
23
38
|
if render_context.frid_context.functional_requirement_render_attempts >= MAX_CODE_GENERATION_RETRIES:
|
|
24
39
|
# A render attempt is only restarted once its unit tests used up every fix round.
|
|
@@ -49,14 +64,7 @@ class RenderFunctionalRequirement(BaseAction):
|
|
|
49
64
|
)
|
|
50
65
|
_, memory_files_content = MemoryManager.fetch_memory_files(render_context.memory_manager.memory_folder)
|
|
51
66
|
|
|
52
|
-
|
|
53
|
-
msg += f"Module: {render_context.module_name}\n"
|
|
54
|
-
msg += f"Rendering functionality {render_context.frid_context.frid}"
|
|
55
|
-
if render_context.frid_context.functional_requirement_render_attempts > 1:
|
|
56
|
-
msg += f", attempt number {render_context.frid_context.functional_requirement_render_attempts}/{MAX_CODE_GENERATION_RETRIES}"
|
|
57
|
-
msg += f":\n{render_context.frid_context.functional_requirement_text}\n"
|
|
58
|
-
msg += "-------------------------------------"
|
|
59
|
-
console.info(msg)
|
|
67
|
+
console.info(self.functionality_heading(render_context))
|
|
60
68
|
|
|
61
69
|
try:
|
|
62
70
|
render_utils.print_inputs(render_context, existing_files_content, "Files sent as input to code generation:")
|
|
@@ -10,7 +10,7 @@ from event_bus import EventBus
|
|
|
10
10
|
from plain2code_console import RETRY_COLOR, console
|
|
11
11
|
from plain2code_events import RenderContextSnapshot
|
|
12
12
|
from plain2code_state import RunState
|
|
13
|
-
from plain2code_utils import qualified_frid
|
|
13
|
+
from plain2code_utils import functionality_position, qualified_frid
|
|
14
14
|
from plain_modules import PlainModule
|
|
15
15
|
from render_machine import triggers
|
|
16
16
|
from render_machine.conformance_tests import CONFORMANCE_TESTS_DEFINITION_FILE_NAME, ConformanceTests
|
|
@@ -122,6 +122,13 @@ class RenderContext:
|
|
|
122
122
|
self.last_error_message = error_message
|
|
123
123
|
self.machine.dispatch(triggers.HANDLE_ERROR)
|
|
124
124
|
|
|
125
|
+
def current_functionality_position(self) -> Optional[str]:
|
|
126
|
+
"""Where the functionality being implemented stands among those of its module, as "3/12"."""
|
|
127
|
+
return functionality_position(
|
|
128
|
+
list(plain_spec.get_frids(self.plain_source_tree)),
|
|
129
|
+
self.frid_context.frid if self.frid_context else None,
|
|
130
|
+
)
|
|
131
|
+
|
|
125
132
|
def create_snapshot(self) -> RenderContextSnapshot:
|
|
126
133
|
return RenderContextSnapshot(
|
|
127
134
|
frid_context=deepcopy(self.frid_context) if self.frid_context else None,
|
|
@@ -133,6 +140,7 @@ class RenderContext:
|
|
|
133
140
|
),
|
|
134
141
|
script_execution_history=deepcopy(self.script_execution_history),
|
|
135
142
|
module_name=self.module_name,
|
|
143
|
+
functionality_position=self.current_functionality_position(),
|
|
136
144
|
)
|
|
137
145
|
|
|
138
146
|
def get_required_modules_functionalities(self):
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""The TUI names the functionality being implemented and where it stands in its module.
|
|
2
|
+
|
|
3
|
+
The func-id says which functionality it is. It does not say how far the module has come, which the
|
|
4
|
+
number before the renderer took func-ids used to say.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from types import SimpleNamespace
|
|
8
|
+
from unittest.mock import MagicMock, patch
|
|
9
|
+
|
|
10
|
+
import pytest
|
|
11
|
+
|
|
12
|
+
import file_utils # noqa: F401 # imported before plain_modules, which it imports back from
|
|
13
|
+
from plain2code_events import RenderContextSnapshot
|
|
14
|
+
from plain2code_utils import functionality_position
|
|
15
|
+
from render_machine.actions.render_functional_requirement import RenderFunctionalRequirement
|
|
16
|
+
from tui.state_handlers import FridReadyHandler
|
|
17
|
+
|
|
18
|
+
FRIDS = ["add-login-button", "add-logout-button", "remember-the-session"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestFunctionalityPosition:
|
|
22
|
+
def test_the_first_functionality(self):
|
|
23
|
+
assert functionality_position(FRIDS, "add-login-button") == "1/3"
|
|
24
|
+
|
|
25
|
+
def test_the_last_functionality(self):
|
|
26
|
+
assert functionality_position(FRIDS, "remember-the-session") == "3/3"
|
|
27
|
+
|
|
28
|
+
@pytest.mark.parametrize("frid", [None, "no-such-functionality"], ids=["none", "unknown"])
|
|
29
|
+
def test_nothing_to_place(self, frid):
|
|
30
|
+
assert functionality_position(FRIDS, frid) is None
|
|
31
|
+
|
|
32
|
+
def test_a_module_with_one_functionality(self):
|
|
33
|
+
assert functionality_position(["only-one"], "only-one") == "1/1"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _snapshot(position):
|
|
37
|
+
return RenderContextSnapshot(
|
|
38
|
+
frid_context=SimpleNamespace(frid="add-login-button", functional_requirement_text="Add a login button."),
|
|
39
|
+
conformance_tests_running_context=None,
|
|
40
|
+
unit_tests_running_context=None,
|
|
41
|
+
script_execution_history=None,
|
|
42
|
+
module_name="",
|
|
43
|
+
functionality_position=position,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _functionality_line(position):
|
|
48
|
+
handler = FridReadyHandler(MagicMock(), unittests_script=None, conformance_tests_script=None)
|
|
49
|
+
with (
|
|
50
|
+
patch("tui.state_handlers.get_frid_progress") as get_progress,
|
|
51
|
+
patch("tui.state_handlers.update_progress_item_status"),
|
|
52
|
+
):
|
|
53
|
+
handler.handle([], _snapshot(position), [])
|
|
54
|
+
return get_progress.return_value.update_functionality_text.call_args.args[0]
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def test_the_tui_line_carries_the_position():
|
|
58
|
+
assert _functionality_line("3/12") == "Functionality add-login-button (3/12): Add a login button."
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def test_the_tui_line_without_a_position_reads_as_before():
|
|
62
|
+
assert _functionality_line(None) == "Functionality add-login-button: Add a login button."
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def _log_heading(frids, frid, attempts=1):
|
|
66
|
+
"""The heading the renderer logs when it starts a functionality."""
|
|
67
|
+
render_context = SimpleNamespace(
|
|
68
|
+
module_name="shop",
|
|
69
|
+
frid_context=SimpleNamespace(
|
|
70
|
+
frid=frid,
|
|
71
|
+
functional_requirement_text="Add a login button.",
|
|
72
|
+
functional_requirement_render_attempts=attempts,
|
|
73
|
+
),
|
|
74
|
+
current_functionality_position=lambda: functionality_position(frids, frid),
|
|
75
|
+
)
|
|
76
|
+
return RenderFunctionalRequirement.functionality_heading(render_context)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def test_the_log_heading_carries_the_position():
|
|
80
|
+
assert "Rendering functionality add-login-button (1/3):" in _log_heading(FRIDS, "add-login-button")
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def test_the_log_heading_keeps_the_attempt_after_the_position():
|
|
84
|
+
heading = _log_heading(FRIDS, "add-login-button", attempts=2)
|
|
85
|
+
|
|
86
|
+
assert "Rendering functionality add-login-button (1/3), attempt number 2/" in heading
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def test_the_log_heading_without_a_position_reads_as_before():
|
|
90
|
+
assert "Rendering functionality add-login-button:" in _log_heading([], "add-login-button")
|
|
@@ -62,8 +62,10 @@ class FridReadyHandler(StateHandler):
|
|
|
62
62
|
# Update FRID text
|
|
63
63
|
|
|
64
64
|
functionality = qualified_frid(snapshot.module_name, snapshot.frid_context.frid)
|
|
65
|
+
# The position says how far the module has come; the func-id alone does not.
|
|
66
|
+
position = f" ({snapshot.functionality_position})" if snapshot.functionality_position else ""
|
|
65
67
|
rendering_functionality_text = (
|
|
66
|
-
f"{tui_components.FRIDProgress.RENDERING_FUNCTIONALITY_TEXT}{functionality}: "
|
|
68
|
+
f"{tui_components.FRIDProgress.RENDERING_FUNCTIONALITY_TEXT}{functionality}{position}: "
|
|
67
69
|
f"{snapshot.frid_context.functional_requirement_text}"
|
|
68
70
|
)
|
|
69
71
|
get_frid_progress(self.tui).update_functionality_text(rendering_functionality_text)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/examples/example_hello_world_react/hello_world_react.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/analyze_specification_ambiguity.py
RENAMED
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/commit_conformance_tests_changes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/distill_conformance_test_memory.py
RENAMED
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/finish_functional_requirement.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/prepare_testing_environment.py
RENAMED
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/render_conformance_tests.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/render_machine/actions/summarize_conformance_tests.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codeplain-0.4.1 → codeplain-0.4.2.dev52}/tests/test_acceptance_scenarios_after_a_code_fix.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|