teddy-cli 0.2.3.dev1536__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.dev1536
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
@@ -196,7 +196,7 @@ uv tool install teddy-cli --pre --force
196
196
 
197
197
  ### Installing From a Fork or Private Index
198
198
 
199
- TeDDy can run from a fork or a private package index, and the update check can follow the same source. Because the version check reads the installed `teddy-cli` distribution metadata, every install shape must keep the distribution name `teddy-cli` — a git install, a local wheel, and a private index all do. Only a public PyPI upload under a different name would need a second knob.
199
+ TeDDy can run from a fork or a private package index, and the update check can follow the same source. Because the version check reads the installed `teddy-cli` distribution metadata, every install shape must keep the distribution name `teddy-cli` (a git install, a local wheel, and a private index all do).
200
200
 
201
201
  Install from a git URL:
202
202
 
@@ -210,18 +210,9 @@ Install from a private index:
210
210
  uv tool install teddy-cli --default-index https://packages.example.com/simple
211
211
  ```
212
212
 
213
- Then point the update check at your own source by setting `update.index_url` in `.teddy/config.yaml`:
213
+ Then point the update check at your own source by setting `update.index_url` in `.teddy/config.yaml`.
214
214
 
215
- ```yaml
216
- update:
217
- index_url: "https://packages.example.com/pypi/teddy-cli/json"
218
- ```
219
-
220
- The source only needs to be PyPI-JSON-shaped. A static `version.json` served from your fork's repository works too, as long as it carries `{"info": {"version": "x.y.z"}}`. That `info.version` fallback ignores `--experimental`, so a static source reports the same version with or without the flag.
221
-
222
- `uv tool upgrade teddy-cli` re-resolves the upgrade from the index recorded in its install receipt, so a fork installed from a private index upgrades in place. A git install upgrades by reinstalling from the same git URL.
223
-
224
- `teddy update` reads `.teddy/config.yaml` from the current directory, so run it from the project root. The `checks.update: false` toggle silences the startup notice only; the background fetch still runs, and `teddy update` always compares against the configured source.
215
+ The source only needs to be PyPI-JSON-shaped. A static `version.json` served from your fork's repository works too, as long as it carries `{"info": {"version": "x.y.z"}}`.
225
216
 
226
217
  ### Initialize
227
218
 
@@ -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.dev1536.dist-info/METADATA,sha256=-AdsGa9cpIJioeLRZ8p6YjJXZcXvEU7RYf_Cik_EXW8,33253
163
- teddy_cli-0.2.3.dev1536.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
- teddy_cli-0.2.3.dev1536.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
- teddy_cli-0.2.3.dev1536.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
- teddy_cli-0.2.3.dev1536.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)