teddy-cli 0.2.3.dev1537__py3-none-any.whl → 0.2.3.dev1538__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.dev1537
3
+ Version: 0.2.3.dev1538
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
@@ -16,7 +16,7 @@ teddy_executor/adapters/inbound/textual_plan_reviewer_logic.py,sha256=En3jzsr0M_
16
16
  teddy_executor/adapters/inbound/textual_plan_reviewer_previews.py,sha256=lNg0drAVGkQ40fmlK-IcDKh4tLCKzsSsXFq2gdjPBW0,12017
17
17
  teddy_executor/adapters/inbound/textual_plan_reviewer_widgets.py,sha256=_-pfFY_71m0s3tDKzqH_l28fF563V0h3cZXYPKvS2kI,7356
18
18
  teddy_executor/adapters/outbound/__init__.py,sha256=YN-oxkFQlMVrj3YdAJoLKXA_uo91cSU4llc3UHJ1Ckg,157
19
- teddy_executor/adapters/outbound/console_interactor.py,sha256=FLNPEqncbM9WYA1AMQwBIIVTdBROeBf0BGc40L4Saic,8781
19
+ teddy_executor/adapters/outbound/console_interactor.py,sha256=PwIa_bR_NIhe9PC7q0a-9Sl9PB5dfE4yRwEctLiMw2k,9184
20
20
  teddy_executor/adapters/outbound/console_interactor_ask_loop.py,sha256=b5s5jMDJVzFyGJlgNVJlwXxRlqUUTzPmQaEpX69m00w,12921
21
21
  teddy_executor/adapters/outbound/console_interactor_helpers.py,sha256=uQRTp-952xb18vloQHSVLrqOG0L7efFXZsgk29lUxyE,2397
22
22
  teddy_executor/adapters/outbound/console_tooling.py,sha256=iy854Kxh8JI-7rhA4xeFyshnluHoiHzf0xFUn6kYr5U,6366
@@ -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.dev1537.dist-info/METADATA,sha256=SuxqSRgYvkEQYgNhJ9zhLgn_uGoEgiIzZglqr-y18zg,32472
163
- teddy_cli-0.2.3.dev1537.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
- teddy_cli-0.2.3.dev1537.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
- teddy_cli-0.2.3.dev1537.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
- teddy_cli-0.2.3.dev1537.dist-info/RECORD,,
162
+ teddy_cli-0.2.3.dev1538.dist-info/METADATA,sha256=p-jB4REIjQj71js3RJtLbfe7rV3HWxOKft9fFEG8lpw,32472
163
+ teddy_cli-0.2.3.dev1538.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
+ teddy_cli-0.2.3.dev1538.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
+ teddy_cli-0.2.3.dev1538.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
+ teddy_cli-0.2.3.dev1538.dist-info/RECORD,,
@@ -14,6 +14,10 @@ from teddy_executor.core.domain.models.plan import ActionData, Plan
14
14
  from teddy_executor.core.ports.outbound.system_environment import ISystemEnvironment
15
15
  from teddy_executor.core.ports.outbound.config_service import IConfigService
16
16
  from teddy_executor.core.ports.outbound.user_interactor import IUserInteractor
17
+ from teddy_executor.core.utils.message_renderer import (
18
+ inline_code_theme,
19
+ render_message_body,
20
+ )
17
21
  from teddy_executor.core.utils.stdin_ownership import stdin_owned
18
22
  from teddy_executor.adapters.outbound.console_tooling import ConsoleToolingHelper
19
23
  from teddy_executor.adapters.outbound.console_interactor_ask_loop import (
@@ -30,11 +34,20 @@ logger = logging.getLogger(__name__)
30
34
 
31
35
 
32
36
  class ConsoleInteractorAdapter(IUserInteractor):
33
- def __init__(self, system_env: ISystemEnvironment, config_service: IConfigService):
37
+ def __init__(
38
+ self,
39
+ system_env: ISystemEnvironment,
40
+ config_service: IConfigService,
41
+ console: Optional[Console] = None,
42
+ ):
34
43
  self._system_env = system_env
35
44
  self._config_service = config_service
36
45
  self._tooling = ConsoleToolingHelper(system_env, config_service)
37
- self._console = Console(stderr=True)
46
+ self._console = (
47
+ console
48
+ if console is not None
49
+ else Console(theme=inline_code_theme(), stderr=True)
50
+ )
38
51
  self._ask_loop = ConsoleAskLoop(self._system_env, self._tooling)
39
52
 
40
53
  def _restore_terminal(self):
@@ -83,7 +96,10 @@ class ConsoleInteractorAdapter(IUserInteractor):
83
96
  display_name = agent_name if agent_name else "TeDDy"
84
97
  header = f"\n--- MESSAGE from {display_name} ---"
85
98
  typer.secho(header, fg=typer.colors.CYAN, err=True)
86
- typer.echo(prompt, err=True)
99
+ if self._console.is_terminal:
100
+ render_message_body(prompt, self._console)
101
+ else:
102
+ typer.echo(prompt, err=True)
87
103
 
88
104
  if resources:
89
105
  typer.echo("\n▶ Reference Files:", err=True)