teddy-cli 0.2.3.dev1529__tar.gz → 0.2.3.dev1530__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.
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/PKG-INFO +1 -1
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/pyproject.toml +1 -1
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_manager.py +5 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/execution_orchestrator.py +20 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_lifecycle_manager.py +132 -1
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/.gitignore +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/LICENSE +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/README.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/__main__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/cli_formatter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/cli_helpers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/session_cli_handlers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_app.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_editor.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_execution.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_helpers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_logic.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_previews.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_widgets.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor_ask_loop.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor_helpers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_tooling.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/filesystem_helpers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/litellm_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/local_file_system_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/local_repo_tree_generator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/openrouter_hydrator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/shell_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/shell_command_builder.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/suppressed_logging.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_environment_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_environment_inspector.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_time_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/terminal_quit_key_listener.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/web_scraper_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/web_searcher_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/yaml_config_adapter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/container.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/action_ports.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/change_set.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/config_schema.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/drift_report.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/exceptions.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/execution_report.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/orchestrator_ports.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/plan.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/planning_ports.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/project_context.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/report_assembly_data.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/session.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/shell_output.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/web_search_results.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/edit_simulator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/get_context_use_case.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/init.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_parser.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_reviewer.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_validator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/planning_use_case.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/run_plan_use_case.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/config_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/environment_inspector.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/execution_report_assembler.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/file_system_manager.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/llm_client.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/markdown_report_formatter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/prompt_manager.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/quit_key_listener.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/repo_tree_generator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_loop_guard.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_repository.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/shell_executor.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/system_environment.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/time_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/user_interactor.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/web_scraper.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/web_searcher.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_changeset_builder.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_diff_manager.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_dispatcher.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_executor.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_factory.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_parser_complex.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_parser_strategies.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/context_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/edit_simulator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/execution_report_assembler.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/init_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/markdown_plan_parser.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/markdown_report_formatter.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_infrastructure.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_metadata.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_reporting.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/plan_validator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/planning_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/prompt_manager.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_loop_guard.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_orchestrator.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_planner.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_pruning_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_replanner.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_repository.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_service.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/templates/execution_report.md.j2 +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/update_checker.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit_matcher.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit_matcher_heuristics.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/execute.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/filesystem.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/helpers.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/message.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/diff.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/editor_names.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/interrupt_guard.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/interruptible_call.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/io.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/markdown.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/message_renderer.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/paths.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/serialization.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/session_notices.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/stdin_ownership.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/string.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/terminal.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/prompts.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/infrastructure.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/reviewer.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/validators.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/MRP.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/__init__.py +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/config.yaml +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/init.context +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/architect.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/assistant.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/debugger.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/developer.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/pathfinder.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/prototyper.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/ARCHITECTURE.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/PROJECT.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/case-file.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/ci.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/component-design.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/makefile.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/milestone.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/pre-commit.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/specification-document.md +0 -0
- {teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/vertical-slice.md +0 -0
|
@@ -5,6 +5,11 @@ from teddy_executor.core.domain.models import ExecutionReport
|
|
|
5
5
|
from teddy_executor.core.domain.models.session import SessionOptions
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
# Marks a session turn that began executing; its presence distinguishes a
|
|
9
|
+
# hard-killed mid-execution turn from a never-dispatched pending turn.
|
|
10
|
+
EXECUTION_STARTED_MARKER = "execution.started"
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
class SessionState(Enum):
|
|
9
14
|
"""Represents the current state of a session based on its latest turn."""
|
|
10
15
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from contextlib import ExitStack
|
|
3
3
|
from datetime import datetime
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
from typing import Any, Optional
|
|
6
7
|
|
|
@@ -14,6 +15,7 @@ from teddy_executor.core.domain.models import (
|
|
|
14
15
|
)
|
|
15
16
|
from teddy_executor.core.ports.inbound.plan_parser import InvalidPlanError
|
|
16
17
|
from teddy_executor.core.ports.inbound.run_plan_use_case import IRunPlanUseCase
|
|
18
|
+
from teddy_executor.core.ports.outbound.session_manager import EXECUTION_STARTED_MARKER
|
|
17
19
|
from teddy_executor.core.domain.models.orchestrator_ports import OrchestratorPorts
|
|
18
20
|
from teddy_executor.core.utils.interrupt_guard import INTERRUPT_REASON
|
|
19
21
|
|
|
@@ -285,6 +287,21 @@ class ExecutionOrchestrator(IRunPlanUseCase):
|
|
|
285
287
|
report, run_summary=replace(report.run_summary, status=RunStatus.ABORTED)
|
|
286
288
|
)
|
|
287
289
|
|
|
290
|
+
def _write_execution_started_marker(
|
|
291
|
+
self, plan: Plan, plan_path: Optional[str]
|
|
292
|
+
) -> None:
|
|
293
|
+
"""Records durably that this session turn began executing.
|
|
294
|
+
|
|
295
|
+
Written after pre-flight validation and plan review but before the first
|
|
296
|
+
dispatch, so a turn killed mid-execution is distinguishable from a
|
|
297
|
+
never-dispatched one. Only session turns are marked: a stateless run
|
|
298
|
+
leaves no turn directory to recover.
|
|
299
|
+
"""
|
|
300
|
+
marker_source = plan.plan_path or plan_path
|
|
301
|
+
assert marker_source, "A session plan must carry a plan path."
|
|
302
|
+
marker_path = (Path(marker_source).parent / EXECUTION_STARTED_MARKER).as_posix()
|
|
303
|
+
self._file_system_manager.write_file(marker_path, "")
|
|
304
|
+
|
|
288
305
|
def execute( # noqa: PLR0913
|
|
289
306
|
self,
|
|
290
307
|
plan: Optional[Plan] = None,
|
|
@@ -319,6 +336,9 @@ class ExecutionOrchestrator(IRunPlanUseCase):
|
|
|
319
336
|
if reviewed_plan is None:
|
|
320
337
|
return self._handle_aborted_execution(plan, start_time, message)
|
|
321
338
|
|
|
339
|
+
if reviewed_plan.is_session:
|
|
340
|
+
self._write_execution_started_marker(reviewed_plan, plan_path)
|
|
341
|
+
|
|
322
342
|
action_logs = self._process_plan_actions(
|
|
323
343
|
reviewed_plan, require_approval, pipeline
|
|
324
344
|
)
|
|
@@ -15,7 +15,10 @@ from typing import Sequence
|
|
|
15
15
|
|
|
16
16
|
from teddy_executor.core.ports.inbound.plan_parser import InvalidPlanError
|
|
17
17
|
from teddy_executor.core.ports.inbound.run_plan_use_case import IRunPlanUseCase
|
|
18
|
-
from teddy_executor.core.ports.outbound.session_manager import
|
|
18
|
+
from teddy_executor.core.ports.outbound.session_manager import (
|
|
19
|
+
EXECUTION_STARTED_MARKER,
|
|
20
|
+
SessionState,
|
|
21
|
+
)
|
|
19
22
|
from teddy_executor.core.utils.io import Tee as _Tee
|
|
20
23
|
from teddy_executor.core.utils.markdown import embed_in_fence
|
|
21
24
|
|
|
@@ -108,6 +111,18 @@ class SessionLifecycleManager:
|
|
|
108
111
|
message=message,
|
|
109
112
|
plan=plan,
|
|
110
113
|
)
|
|
114
|
+
interrupted_plan = self._marked_interrupted_plan(turn_path, plan, plan_path)
|
|
115
|
+
if interrupted_plan is not None:
|
|
116
|
+
return self._recover_interrupted_turn(
|
|
117
|
+
turn_path,
|
|
118
|
+
interrupted_plan,
|
|
119
|
+
plan_path,
|
|
120
|
+
orchestrator,
|
|
121
|
+
require_approval,
|
|
122
|
+
project_context=project_context,
|
|
123
|
+
pipeline=pipeline,
|
|
124
|
+
message=message,
|
|
125
|
+
)
|
|
111
126
|
if plan is not None:
|
|
112
127
|
plan.metadata["user_request"] = message
|
|
113
128
|
report = orchestrator.execute(
|
|
@@ -141,6 +156,41 @@ class SessionLifecycleManager:
|
|
|
141
156
|
|
|
142
157
|
return (session_name, None)
|
|
143
158
|
|
|
159
|
+
def _marked_interrupted_plan(
|
|
160
|
+
self, turn_path: str, plan: Optional["Plan"], plan_path: str
|
|
161
|
+
) -> Optional["Plan"]:
|
|
162
|
+
"""Returns the abandoned plan when a hard-killed turn must be recovered.
|
|
163
|
+
|
|
164
|
+
A turn that began executing (``execution.started`` present) but never
|
|
165
|
+
finalized carries no report, so replaying its plan would re-apply
|
|
166
|
+
already-applied actions. Recovery applies only to a non-communication
|
|
167
|
+
plan: a MESSAGE-only turn keeps today's re-dispatch so the message
|
|
168
|
+
re-collects the reply. The plan is reused when the caller already
|
|
169
|
+
parsed it (``-m`` resume) and parsed here for classification on a bare
|
|
170
|
+
resume; an unparseable plan returns ``None`` so the caller falls
|
|
171
|
+
through to the established ``execute -> InvalidPlanError ->
|
|
172
|
+
trigger_replan`` funnel rather than swallowing the failure.
|
|
173
|
+
"""
|
|
174
|
+
marker_path = (Path(plan_path).parent / EXECUTION_STARTED_MARKER).as_posix()
|
|
175
|
+
if not self._file_system_manager.path_exists(marker_path):
|
|
176
|
+
return None
|
|
177
|
+
interrupted_plan = plan
|
|
178
|
+
if interrupted_plan is None:
|
|
179
|
+
try:
|
|
180
|
+
interrupted_plan = self._parse_awaiting_plan(
|
|
181
|
+
turn_path, plan_path=plan_path
|
|
182
|
+
)
|
|
183
|
+
except InvalidPlanError:
|
|
184
|
+
logger.debug(
|
|
185
|
+
"Marked pending plan at %s is unparseable; falling back to "
|
|
186
|
+
"the re-execute path.",
|
|
187
|
+
plan_path,
|
|
188
|
+
)
|
|
189
|
+
return None
|
|
190
|
+
if interrupted_plan.is_communication_turn():
|
|
191
|
+
return None
|
|
192
|
+
return interrupted_plan
|
|
193
|
+
|
|
144
194
|
def _resume_ready_turn( # noqa: PLR0913 # threads the resume state-machine inputs
|
|
145
195
|
self,
|
|
146
196
|
session_name: str,
|
|
@@ -438,6 +488,38 @@ class SessionLifecycleManager:
|
|
|
438
488
|
message=reply,
|
|
439
489
|
)
|
|
440
490
|
|
|
491
|
+
def _recover_interrupted_turn( # noqa: PLR0913 # resume state-machine inputs
|
|
492
|
+
self,
|
|
493
|
+
turn_path: str,
|
|
494
|
+
plan: "Plan",
|
|
495
|
+
plan_path: str,
|
|
496
|
+
orchestrator: IRunPlanUseCase,
|
|
497
|
+
require_approval: bool,
|
|
498
|
+
project_context: Optional[Any] = None,
|
|
499
|
+
pipeline: bool = False,
|
|
500
|
+
message: Optional[str] = None,
|
|
501
|
+
) -> tuple[str, Optional[ExecutionReport]]:
|
|
502
|
+
"""Finalizes a hard-killed turn as INTERRUPTED, then plans the next turn.
|
|
503
|
+
|
|
504
|
+
The abandoned plan is never re-executed: the synthesized INTERRUPTED
|
|
505
|
+
report finalizes the turn (writing ``report.md`` and creating the
|
|
506
|
+
successor), and planning then runs from scratch against the observed
|
|
507
|
+
workspace so the fresh plan sees the already-mutated files. A reply,
|
|
508
|
+
when present, is carried into the interrupted report's ``## User
|
|
509
|
+
Request`` and seeds the successor's planning -- the same tail shape
|
|
510
|
+
``_consume_awaiting_reply`` uses.
|
|
511
|
+
"""
|
|
512
|
+
report = self._synthesize_interrupted_report(plan, message=message)
|
|
513
|
+
next_turn_dir = self.finalize_turn(plan_path, report, plan=plan)
|
|
514
|
+
return self._handle_planning_and_execution(
|
|
515
|
+
next_turn_dir,
|
|
516
|
+
orchestrator,
|
|
517
|
+
require_approval,
|
|
518
|
+
project_context=project_context,
|
|
519
|
+
pipeline=pipeline,
|
|
520
|
+
message=message,
|
|
521
|
+
)
|
|
522
|
+
|
|
441
523
|
def _parse_awaiting_plan(
|
|
442
524
|
self, turn_path: str, plan_path: Optional[str] = None
|
|
443
525
|
) -> "Plan":
|
|
@@ -524,6 +606,55 @@ class SessionLifecycleManager:
|
|
|
524
606
|
)
|
|
525
607
|
)
|
|
526
608
|
|
|
609
|
+
def _synthesize_interrupted_report(
|
|
610
|
+
self, plan: "Plan", message: Optional[str] = None
|
|
611
|
+
) -> ExecutionReport:
|
|
612
|
+
"""Synthesizes an INTERRUPTED report for a hard-killed session turn.
|
|
613
|
+
|
|
614
|
+
A hard kill runs no drain and writes no report, so the turn's outcome
|
|
615
|
+
is unobservable. Every planned action is therefore recorded as
|
|
616
|
+
INTERRUPTED with an explicit "outcome not recorded" note, so a reader
|
|
617
|
+
(and the preservation decision) can tell the turn was abandoned
|
|
618
|
+
mid-flight rather than completed. The injected ``message`` becomes the
|
|
619
|
+
report's ``## User Request`` so the resume reply is preserved on the
|
|
620
|
+
finalized turn; without one the turn follows normal action-turn
|
|
621
|
+
behavior.
|
|
622
|
+
"""
|
|
623
|
+
assert self._time_service is not None, (
|
|
624
|
+
"SessionPorts.time_service must be injected to synthesize the "
|
|
625
|
+
"interrupted turn's report."
|
|
626
|
+
)
|
|
627
|
+
assert self._report_assembler is not None, (
|
|
628
|
+
"SessionPorts.report_assembler must be injected to synthesize the "
|
|
629
|
+
"interrupted turn's report."
|
|
630
|
+
)
|
|
631
|
+
action_logs = []
|
|
632
|
+
for action in plan.actions:
|
|
633
|
+
params = dict(action.params)
|
|
634
|
+
if action.description:
|
|
635
|
+
params["Description"] = action.description
|
|
636
|
+
action_logs.append(
|
|
637
|
+
ActionLog(
|
|
638
|
+
status=ActionStatus.INTERRUPTED,
|
|
639
|
+
action_type=str(getattr(action.type, "value", action.type)),
|
|
640
|
+
params=params,
|
|
641
|
+
details=(
|
|
642
|
+
"Outcome not recorded: the running process was "
|
|
643
|
+
"terminated ungracefully; this action may or may not "
|
|
644
|
+
"have applied."
|
|
645
|
+
),
|
|
646
|
+
)
|
|
647
|
+
)
|
|
648
|
+
return self._report_assembler.assemble(
|
|
649
|
+
ReportAssemblyData(
|
|
650
|
+
plan=plan,
|
|
651
|
+
action_logs=action_logs,
|
|
652
|
+
start_time=self._time_service.now_utc(),
|
|
653
|
+
message=message,
|
|
654
|
+
is_session=True,
|
|
655
|
+
)
|
|
656
|
+
)
|
|
657
|
+
|
|
527
658
|
def _handle_planning_and_execution( # noqa: PLR0913
|
|
528
659
|
self,
|
|
529
660
|
turn_dir: str,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/__init__.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/__init__.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/__init__.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/plan.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/session.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/init.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/__init__.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/init_service.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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/editor_names.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/interrupt_guard.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/markdown.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/serialization.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/session_notices.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/stdin_ownership.py
RENAMED
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/terminal.py
RENAMED
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/__init__.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/infrastructure.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/reviewer.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/validators.py
RENAMED
|
File without changes
|
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/__init__.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/__init__.py
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/config.yaml
RENAMED
|
File without changes
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/init.context
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
|
{teddy_cli-0.2.3.dev1529 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/ci.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|