Skip to content

ENG-3260: Add prime env inspect#500

Open
d42me wants to merge 3 commits intomainfrom
feature/env-inspect
Open

ENG-3260: Add prime env inspect#500
d42me wants to merge 3 commits intomainfrom
feature/env-inspect

Conversation

@d42me
Copy link
Copy Markdown
Contributor

@d42me d42me commented Apr 8, 2026

Summary

  • add prime env inspect owner/name [path] for browsing Hub environment source without pulling locally
  • support directory listings, file inspection, --output json, and --max-bytes
  • preserve literal content rendering in normal and --plain modes, and surface inspect examples in prime env info

Validation

  • python -m ruff check packages/prime/src/prime_cli/commands/env.py packages/prime/tests/test_env_inspect.py
  • pytest packages/prime/tests/test_env_inspect.py -q

Linear

Companion work


Note

Medium Risk
Adds a new CLI subcommand that calls a new hub API endpoint and prints file contents/directories, so failures or formatting/truncation edge cases could impact user workflows but it doesn’t touch auth or data mutation.

Overview
Adds prime env inspect owner/name[@version] [path] to browse an environment’s uploaded source on the Hub without downloading it locally, supporting directory listings or file content output with --output json and size limiting via --max-bytes.

Updates prime env info to always show inspect usage examples (even when no wheel is available), documents the new command in both READMEs, and adds CLI tests covering table/json output, version parsing precedence, and literal (non-markup) file rendering.

Reviewed by Cursor Bugbot for commit ffb6aa1. Bugbot is set up for automated code reviews on this repo. Configure here.

@d42me d42me changed the title Add ENG-3260: Add prime env inspect Apr 8, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40cf7acf03

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/prime/src/prime_cli/commands/env.py
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 40cf7ac. Configure here.

Comment thread packages/prime/src/prime_cli/commands/env.py Outdated
@d42me d42me requested review from JannikSt and burnpiro April 9, 2026 01:58
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