teddy-cli 0.2.3.dev1528__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.
Files changed (166) hide show
  1. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/PKG-INFO +1 -1
  2. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/pyproject.toml +1 -1
  3. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_manager.py +5 -0
  4. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/execution_orchestrator.py +20 -0
  5. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_lifecycle_manager.py +132 -1
  6. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/.gitignore +0 -0
  7. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/LICENSE +0 -0
  8. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/README.md +0 -0
  9. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/__init__.py +0 -0
  10. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/__main__.py +0 -0
  11. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/__init__.py +0 -0
  12. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/__init__.py +0 -0
  13. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/cli_formatter.py +0 -0
  14. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/cli_helpers.py +0 -0
  15. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/session_cli_handlers.py +0 -0
  16. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer.py +0 -0
  17. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_app.py +0 -0
  18. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_editor.py +0 -0
  19. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_execution.py +0 -0
  20. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_helpers.py +0 -0
  21. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_logic.py +0 -0
  22. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_previews.py +0 -0
  23. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/inbound/textual_plan_reviewer_widgets.py +0 -0
  24. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/__init__.py +0 -0
  25. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor.py +0 -0
  26. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor_ask_loop.py +0 -0
  27. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_interactor_helpers.py +0 -0
  28. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/console_tooling.py +0 -0
  29. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/filesystem_helpers.py +0 -0
  30. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/litellm_adapter.py +0 -0
  31. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/local_file_system_adapter.py +0 -0
  32. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/local_repo_tree_generator.py +0 -0
  33. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/openrouter_hydrator.py +0 -0
  34. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/shell_adapter.py +0 -0
  35. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/shell_command_builder.py +0 -0
  36. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/suppressed_logging.py +0 -0
  37. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_environment_adapter.py +0 -0
  38. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_environment_inspector.py +0 -0
  39. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/system_time_adapter.py +0 -0
  40. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/terminal_quit_key_listener.py +0 -0
  41. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/web_scraper_adapter.py +0 -0
  42. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/web_searcher_adapter.py +0 -0
  43. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/adapters/outbound/yaml_config_adapter.py +0 -0
  44. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/container.py +0 -0
  45. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/__init__.py +0 -0
  46. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/__init__.py +0 -0
  47. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/__init__.py +0 -0
  48. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/action_ports.py +0 -0
  49. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/change_set.py +0 -0
  50. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/config_schema.py +0 -0
  51. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/drift_report.py +0 -0
  52. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/exceptions.py +0 -0
  53. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/execution_report.py +0 -0
  54. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/orchestrator_ports.py +0 -0
  55. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/plan.py +0 -0
  56. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/planning_ports.py +0 -0
  57. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/project_context.py +0 -0
  58. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/report_assembly_data.py +0 -0
  59. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/session.py +0 -0
  60. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/shell_output.py +0 -0
  61. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/domain/models/web_search_results.py +0 -0
  62. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/__init__.py +0 -0
  63. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/__init__.py +0 -0
  64. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/edit_simulator.py +0 -0
  65. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/get_context_use_case.py +0 -0
  66. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/init.py +0 -0
  67. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_parser.py +0 -0
  68. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_reviewer.py +0 -0
  69. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/plan_validator.py +0 -0
  70. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/planning_use_case.py +0 -0
  71. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/inbound/run_plan_use_case.py +0 -0
  72. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/__init__.py +0 -0
  73. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/config_service.py +0 -0
  74. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/environment_inspector.py +0 -0
  75. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/execution_report_assembler.py +0 -0
  76. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/file_system_manager.py +0 -0
  77. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/llm_client.py +0 -0
  78. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/markdown_report_formatter.py +0 -0
  79. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/prompt_manager.py +0 -0
  80. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/quit_key_listener.py +0 -0
  81. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/repo_tree_generator.py +0 -0
  82. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_loop_guard.py +0 -0
  83. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/session_repository.py +0 -0
  84. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/shell_executor.py +0 -0
  85. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/system_environment.py +0 -0
  86. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/time_service.py +0 -0
  87. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/user_interactor.py +0 -0
  88. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/web_scraper.py +0 -0
  89. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/ports/outbound/web_searcher.py +0 -0
  90. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/__init__.py +0 -0
  91. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_changeset_builder.py +0 -0
  92. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_diff_manager.py +0 -0
  93. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_dispatcher.py +0 -0
  94. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_executor.py +0 -0
  95. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_factory.py +0 -0
  96. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_parser_complex.py +0 -0
  97. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/action_parser_strategies.py +0 -0
  98. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/context_service.py +0 -0
  99. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/edit_simulator.py +0 -0
  100. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/execution_report_assembler.py +0 -0
  101. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/init_service.py +0 -0
  102. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/markdown_plan_parser.py +0 -0
  103. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/markdown_report_formatter.py +0 -0
  104. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_infrastructure.py +0 -0
  105. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_metadata.py +0 -0
  106. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/parser_reporting.py +0 -0
  107. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/plan_validator.py +0 -0
  108. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/planning_service.py +0 -0
  109. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/prompt_manager.py +0 -0
  110. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_loop_guard.py +0 -0
  111. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_orchestrator.py +0 -0
  112. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_planner.py +0 -0
  113. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_pruning_service.py +0 -0
  114. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_replanner.py +0 -0
  115. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_repository.py +0 -0
  116. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/session_service.py +0 -0
  117. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/templates/execution_report.md.j2 +0 -0
  118. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/update_checker.py +0 -0
  119. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/__init__.py +0 -0
  120. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit.py +0 -0
  121. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit_matcher.py +0 -0
  122. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/edit_matcher_heuristics.py +0 -0
  123. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/execute.py +0 -0
  124. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/filesystem.py +0 -0
  125. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/helpers.py +0 -0
  126. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/services/validation_rules/message.py +0 -0
  127. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/__init__.py +0 -0
  128. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/diff.py +0 -0
  129. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/editor_names.py +0 -0
  130. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/interrupt_guard.py +0 -0
  131. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/interruptible_call.py +0 -0
  132. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/io.py +0 -0
  133. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/markdown.py +0 -0
  134. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/message_renderer.py +0 -0
  135. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/paths.py +0 -0
  136. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/serialization.py +0 -0
  137. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/session_notices.py +0 -0
  138. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/stdin_ownership.py +0 -0
  139. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/string.py +0 -0
  140. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/core/utils/terminal.py +0 -0
  141. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/prompts.py +0 -0
  142. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/__init__.py +0 -0
  143. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/infrastructure.py +0 -0
  144. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/reviewer.py +0 -0
  145. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/registries/validators.py +0 -0
  146. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/MRP.md +0 -0
  147. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/__init__.py +0 -0
  148. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/__init__.py +0 -0
  149. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/config.yaml +0 -0
  150. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/init.context +0 -0
  151. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/architect.md +0 -0
  152. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/assistant.md +0 -0
  153. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/debugger.md +0 -0
  154. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/developer.md +0 -0
  155. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/pathfinder.md +0 -0
  156. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/config/prompts/prototyper.md +0 -0
  157. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/ARCHITECTURE.md +0 -0
  158. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/PROJECT.md +0 -0
  159. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/case-file.md +0 -0
  160. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/ci.md +0 -0
  161. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/component-design.md +0 -0
  162. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/makefile.md +0 -0
  163. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/milestone.md +0 -0
  164. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/pre-commit.md +0 -0
  165. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/specification-document.md +0 -0
  166. {teddy_cli-0.2.3.dev1528 → teddy_cli-0.2.3.dev1530}/src/teddy_executor/resources/templates/vertical-slice.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: teddy-cli
3
- Version: 0.2.3.dev1528
3
+ Version: 0.2.3.dev1530
4
4
  Summary: The local-first, test-driven agentic engineering harness. Because you should own the means of development.
5
5
  Author: Raphael Atteritano
6
6
  License: AGPL-3.0-only
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "teddy-cli"
3
- version = "0.2.3.dev1528"
3
+ version = "0.2.3.dev1530"
4
4
  description = "The local-first, test-driven agentic engineering harness. Because you should own the means of development."
5
5
  readme = "README.md"
6
6
  keywords = [
@@ -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 SessionState
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,