teddy-cli 0.2.3.dev1516__py3-none-any.whl → 0.2.3.dev1517__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: teddy-cli
3
- Version: 0.2.3.dev1516
3
+ Version: 0.2.3.dev1517
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
@@ -102,12 +102,12 @@ teddy_executor/core/services/parser_reporting.py,sha256=shD3UAiFTooQH_AvLk5GR3rZ
102
102
  teddy_executor/core/services/plan_validator.py,sha256=fHCuMo3ETkJgP5Nbcy0JuFGucUyk5Pgo-GoQB7XPiT0,2906
103
103
  teddy_executor/core/services/planning_service.py,sha256=_EF1RK_rWNNFfG4PLcj0TMu51GghtaR_jxROX_6Rx0A,11870
104
104
  teddy_executor/core/services/prompt_manager.py,sha256=NJpgeqxwPaYfrmC5ZrGfmIs-HC4bHoTwu3uaKcfFSxA,10613
105
- teddy_executor/core/services/session_lifecycle_manager.py,sha256=xtCH8xVfvog9M6YvlbTv_RptPuSUykUa_K9oJbxjIqw,30576
105
+ teddy_executor/core/services/session_lifecycle_manager.py,sha256=ujp1-cdZwpk2nqBxc_HNtZqstGpPoA02I8CueAgwur0,30492
106
106
  teddy_executor/core/services/session_loop_guard.py,sha256=_z45KXaF7VQJTXQT18M6QR5Lq6VCzKqrbhugXg7UWVk,4480
107
107
  teddy_executor/core/services/session_orchestrator.py,sha256=sM8IuMpdddpkf699dFA7kk1w6Qo-dYeVcVpIaakCFaA,27647
108
108
  teddy_executor/core/services/session_planner.py,sha256=hrb3EBXzNAfV1qyCKR159oUMRB29Vv02ZmyPwLhcYpc,1695
109
109
  teddy_executor/core/services/session_pruning_service.py,sha256=ZufCk452G3V1iYUbFpGNq6mZZHG6Zwk_6QvXYqx1tgk,16100
110
- teddy_executor/core/services/session_replanner.py,sha256=HzXQz64RtXucB2tH8JbF6HPGGlAIMOnahcnLlAdG8Cs,3651
110
+ teddy_executor/core/services/session_replanner.py,sha256=-6r0wGSz9TMOPZi9rKe2OWMhufQso45yrA93z4FA6Fc,2629
111
111
  teddy_executor/core/services/session_repository.py,sha256=vgcXOrHQ0xoUVvLE-t_QNpxXIDe3vM0eWwbJTcSBbeQ,9356
112
112
  teddy_executor/core/services/session_service.py,sha256=FFfaDvxLrlzzSBRIWdHSoHQ1haI5l5sZ7xE0Q104qvQ,25649
113
113
  teddy_executor/core/services/update_checker.py,sha256=hIUEElic0SCI69omsK7WPzavaGe-7pmkzKJVMyhOMHo,6883
@@ -159,8 +159,8 @@ teddy_executor/resources/templates/milestone.md,sha256=PwHedgzqRQnKQq4M4GILmmv7Y
159
159
  teddy_executor/resources/templates/pre-commit.md,sha256=NqllfAw8Z0yvt51QJ6OBW18dccrJniLGibSylkatvRM,7684
160
160
  teddy_executor/resources/templates/specification-document.md,sha256=skYPZ7E0m2n2STEWOKCHeiuqNtsshYzI49rmsNSKAuA,671
161
161
  teddy_executor/resources/templates/vertical-slice.md,sha256=Cn8Y_rb6BZvy9bKBDNXhGfoSgMpsZbIBfyFQgrdx8Jg,5563
162
- teddy_cli-0.2.3.dev1516.dist-info/METADATA,sha256=yHRQZgxpKX0CZ-M1n39gKehLNJmKtI7RfCRpN8slDWI,30646
163
- teddy_cli-0.2.3.dev1516.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
- teddy_cli-0.2.3.dev1516.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
- teddy_cli-0.2.3.dev1516.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
- teddy_cli-0.2.3.dev1516.dist-info/RECORD,,
162
+ teddy_cli-0.2.3.dev1517.dist-info/METADATA,sha256=pQqkYPeANBj23zzJtXtnPDxEimEzyXwgjLm9G9PbUZQ,30646
163
+ teddy_cli-0.2.3.dev1517.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
+ teddy_cli-0.2.3.dev1517.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
+ teddy_cli-0.2.3.dev1517.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
+ teddy_cli-0.2.3.dev1517.dist-info/RECORD,,
@@ -637,9 +637,7 @@ class SessionLifecycleManager:
637
637
  plan_path, report, is_validation_failure=True, plan=plan
638
638
  )
639
639
 
640
- self._replanner.trigger_replan_turn(
641
- next_turn_dir, errors, original_plan_content, validation_ast=validation_ast
642
- )
640
+ self._replanner.trigger_replan_turn(next_turn_dir)
643
641
  return report
644
642
 
645
643
  def finalize_turn(
@@ -47,39 +47,9 @@ class SessionReplanner:
47
47
  is_session=is_session,
48
48
  )
49
49
 
50
- def trigger_replan_turn(
51
- self,
52
- next_turn_dir: str,
53
- errors: list[str],
54
- original_content: str,
55
- validation_ast: str | None = None,
56
- ) -> None:
57
- """Generates the feedback message and triggers the planning phase."""
58
- feedback = self._build_feedback_message(
59
- errors, original_content, validation_ast
60
- )
61
- self._planning_service.generate_plan(
62
- user_message=feedback, turn_dir=next_turn_dir
63
- )
64
-
65
- def _build_feedback_message(
66
- self, errors: list[str], original_content: str, validation_ast: str | None
67
- ) -> str:
68
- """Constructs the feedback message for the AI."""
69
- error_msgs = [e.strip() for e in errors]
70
- ast_section = f"\n{validation_ast}\n" if validation_ast else ""
71
-
72
- return (
73
- "The previous plan failed validation. Please review the errors and "
74
- "the original plan, then generate a corrected version.\n\n"
75
- "## Validation Errors:\n"
76
- + "\n\n---\n\n".join(error_msgs)
77
- + "\n"
78
- + ast_section
79
- + "\n"
80
- f"## Original Faulty Plan:\n"
81
- f"````````````markdown\n{original_content}\n````````````"
82
- )
50
+ def trigger_replan_turn(self, next_turn_dir: str) -> None:
51
+ """Requests a corrected plan in the next turn directory."""
52
+ self._planning_service.generate_plan(user_message=None, turn_dir=next_turn_dir)
83
53
 
84
54
  def gather_failed_resources(
85
55
  self, errors: list, is_session: bool = False