Skip to content

feat(cli): deployment history and version-scoped diff/review#39

Open
Ruari-Phipps wants to merge 11 commits intomainfrom
ruari/feat/poly_versions
Open

feat(cli): deployment history and version-scoped diff/review#39
Ruari-Phipps wants to merge 11 commits intomainfrom
ruari/feat/poly_versions

Conversation

@Ruari-Phipps
Copy link
Copy Markdown
Collaborator

@Ruari-Phipps Ruari-Phipps commented Mar 24, 2026

Summary

Adds poly deployments, extends diff / review with hash and --before / --after / --files, updates.

Motivation

Improves visibility into deployed versions and makes comparing local vs remote or named versions consistent in the CLI.

Changes

  • poly deployments with --env, pagination, --hash, --oneline, --json; Rich output with sandbox / pre-release / live badges.
  • get_deployments (API + project): client_env, list return shape, tuple with active hashes on AgentStudioProject.
  • poly diff / poly review: optional hash, --files, --before / --after; --delete on review; shared diff computation.
  • poly revert / poly format: CLI shape updates to be consistent (--all removed; format uses --files).

Test strategy

  • Added/updated unit tests
  • Manual CLI testing (poly <command>)
  • Tested against a live Agent Studio project
  • N/A (docs, config, or trivial change)

Checklist

  • ruff check . and ruff format --check . pass
  • pytest passes
  • No breaking changes to the poly CLI interface (or migration path documented)
  • Commit messages follow conventional commits

Screenshots / Logs

Screenshot 2026-03-27 at 14 23 31

--details
Screenshot 2026-03-27 at 15 35 14

--env
Screenshot 2026-03-27 at 15 35 27

@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Base (main) PR Change
70.2% 69.3% -0.9% ⚠️

Changed file coverage

File Coverage Change
poly/output/console.py 17.9% -4.4% ⚠️
poly/cli.py 30.8% -0.5% ⚠️
poly/handlers/platform_api.py 38.5% +2.0% ✅
poly/project.py 62.9% -1.1% ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant