teddy-cli 0.2.4.dev1542__py3-none-any.whl → 0.2.4.dev1544__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.4.dev1542
3
+ Version: 0.2.4.dev1544
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
@@ -197,7 +197,7 @@ To move an existing install onto the latest pre-release:
197
197
  uv tool upgrade teddy-cli --prerelease allow
198
198
  ```
199
199
 
200
- `uv tool upgrade` re-resolves the requirement recorded in the tool receipt, so an install from a fork or a private index keeps its source, whereas a forced reinstall resets it to the default index. When the upgrade applies a new version, uv records `prerelease = "allow"` in the receipt, so later bare `uv tool upgrade teddy-cli` runs keep following pre-releases. Do not install with an exact or bounded version specifier: the recorded specifier governs resolution and blocks the pre-release selection this section relies on.
200
+ `uv tool upgrade` re-resolves the requirement recorded in the tool receipt, so an install from a fork or a private index keeps its source, whereas a forced reinstall resets it to the default index. When the upgrade applies a new version, uv records `prerelease = "allow"` in the receipt, so later bare `uv tool upgrade teddy-cli` runs keep following pre-releases.
201
201
 
202
202
  > [!WARNING]
203
203
  > Experimental versions are published as PEP 440 dev pre-releases on PyPI and may include breaking changes or unstable features.
@@ -1,12 +1,12 @@
1
1
  teddy_executor/__init__.py,sha256=xZ4r3lFwNLQ4C4vOl7Q_-5dh3TlWw3-nXR8O8yjV2o0,58
2
- teddy_executor/__main__.py,sha256=h9kM2ARQqHkF62eW_bEVPCQwdFDfuObeojTcMpUb6wY,22726
2
+ teddy_executor/__main__.py,sha256=ayv3FiuiUPSlwTSKVEmM55UNCOsRVPNdSYBJseihUmA,22896
3
3
  teddy_executor/container.py,sha256=84cvKQJ3Rxg5gqTdTMSYgzehzKtIzS8dItgrpQ3qH14,16366
4
4
  teddy_executor/prompts.py,sha256=GXYGu4RuNhv67fbdREHUvPapi2JH9fKqBe8rhDR6z6U,2150
5
5
  teddy_executor/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  teddy_executor/adapters/inbound/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  teddy_executor/adapters/inbound/cli_formatter.py,sha256=9bWL2S-3vZFBJZPd4RG2xTBYWu1Tim6U0AMGRjcUHB8,3548
8
8
  teddy_executor/adapters/inbound/cli_helpers.py,sha256=yXGJYEPPMCmH2AKBwEhW-CkWmHGf7OgDTOE-qMLR4d0,9377
9
- teddy_executor/adapters/inbound/session_cli_handlers.py,sha256=h0-Glgs2nJo_GhIZM5nNFRJ2_IFE2hBe1mZ0gPao1kU,63246
9
+ teddy_executor/adapters/inbound/session_cli_handlers.py,sha256=u1t8908vn-r2VRdELkPZ7agWv1pu6y-Mmh33pS6SqdQ,63587
10
10
  teddy_executor/adapters/inbound/textual_plan_reviewer.py,sha256=lJHoqaJShuvTVz7SvEdikHN_rMCXPbgolUVlYVkoc4s,3678
11
11
  teddy_executor/adapters/inbound/textual_plan_reviewer_app.py,sha256=ipOw8QLoOfoGcZdo3R4-zaMBQ2RuHilk2dXsMGoYrBc,15209
12
12
  teddy_executor/adapters/inbound/textual_plan_reviewer_editor.py,sha256=LbYlIXSoEc3PQ8o28O4lzybMBig9r0QKYFNKg90iso0,22235
@@ -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=8M8eIs6PKnOaloegH2SaAkU3Mzk-16y3sZb8mIR93UI,6239
162
- teddy_cli-0.2.4.dev1542.dist-info/METADATA,sha256=NaZj44GQOo5JV1N3UC53OnMMqiGyeQjXej8kTVyvSMw,33106
163
- teddy_cli-0.2.4.dev1542.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
- teddy_cli-0.2.4.dev1542.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
- teddy_cli-0.2.4.dev1542.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
- teddy_cli-0.2.4.dev1542.dist-info/RECORD,,
162
+ teddy_cli-0.2.4.dev1544.dist-info/METADATA,sha256=nqO5jV0WTkphwHO0e9Ly78gbIk-U6tEWin2wS9BgyEo,32944
163
+ teddy_cli-0.2.4.dev1544.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
164
+ teddy_cli-0.2.4.dev1544.dist-info/entry_points.txt,sha256=3KaK1-CWsscLZeHduI6Jgime9aw_gfmdQZ7AUkA0QDg,54
165
+ teddy_cli-0.2.4.dev1544.dist-info/licenses/LICENSE,sha256=HBL2C3ynq_mk-EYtJI7aXEc6gXnXgKJ-K6KZ13N0Ojs,35270
166
+ teddy_cli-0.2.4.dev1544.dist-info/RECORD,,
@@ -444,11 +444,15 @@ def update(
444
444
  typer.echo("To apply prompt updates, run: teddy init prompts")
445
445
  else:
446
446
  typer.echo(f"A new version {latest} is available.")
447
- # A pre-release install comes from PyPI with a dev version (--pre).
448
- # `uv tool upgrade` cannot reliably move the tool off --pre back to
449
- # stable, so force a reinstall from the default index instead.
447
+ # A pre-release install follows the pre-release channel recorded in
448
+ # its receipt, so a bare `uv tool upgrade` would overshoot to a newer
449
+ # dev release instead of the announced stable. `--prerelease disallow`
450
+ # lands on the stable and preserves the recorded install source that a
451
+ # forced reinstall discards.
450
452
  if is_prerelease(current):
451
- typer.echo("To upgrade, run: uv tool install teddy-cli --force")
453
+ typer.echo(
454
+ "To upgrade, run: uv tool upgrade teddy-cli --prerelease disallow"
455
+ )
452
456
  else:
453
457
  typer.echo("To upgrade, run: uv tool upgrade teddy-cli")
454
458
  typer.echo("To apply prompt updates, run: teddy init prompts")
@@ -770,7 +770,12 @@ def _display_drift_notification(container: Container) -> list[str]:
770
770
  return fired
771
771
 
772
772
 
773
- def _display_update_notification(container: Container, cache_path: Path) -> list[str]:
773
+ def _display_update_notification(
774
+ container: Container,
775
+ cache_path: Path,
776
+ *,
777
+ current_version: str | None = None,
778
+ ) -> list[str]:
774
779
  """Check the update cache and display a non-blocking notification
775
780
  if a newer version is available. Called on session startup, after
776
781
  the background check thread has been started. Gated by the
@@ -779,7 +784,8 @@ def _display_update_notification(container: Container, cache_path: Path) -> list
779
784
 
780
785
  Returns ``["checks.update"]`` when a newer version is actually
781
786
  displayed, else ``[]`` so the shared disable-footer can name the
782
- fired check."""
787
+ fired check. ``current_version`` overrides the installed version so a
788
+ caller can pin the channel branch without patching module state."""
783
789
  config = container.resolve(IConfigService)
784
790
  if not config.get_setting("checks.update", True):
785
791
  return []
@@ -790,13 +796,15 @@ def _display_update_notification(container: Container, cache_path: Path) -> list
790
796
  latest = cache.get("latest_version", "")
791
797
  if not latest:
792
798
  return []
793
- current = get_current_version()
799
+ current = current_version or get_current_version()
794
800
  if compare_versions(current, latest):
795
- # A pre-release install comes from the PyPI experimental channel (--pre).
796
- # `uv tool upgrade` cannot reliably move the tool off that flag back to
797
- # stable, so force a reinstall from the default index instead.
801
+ # A pre-release install follows the pre-release channel recorded in
802
+ # its receipt, so a bare `uv tool upgrade` would overshoot to a newer
803
+ # dev release instead of the announced stable. `--prerelease disallow`
804
+ # lands on the stable and preserves the recorded install source that a
805
+ # forced reinstall discards.
798
806
  if is_prerelease(current):
799
- command = "uv tool install teddy-cli --force"
807
+ command = "uv tool upgrade teddy-cli --prerelease disallow"
800
808
  else:
801
809
  command = "uv tool upgrade teddy-cli"
802
810
  typer.echo(