Skip to content

bulk publish images#779

Open
kcoopermiller wants to merge 4 commits into
mainfrom
feature/bulk-publish
Open

bulk publish images#779
kcoopermiller wants to merge 4 commits into
mainfrom
feature/bulk-publish

Conversation

@kcoopermiller

@kcoopermiller kcoopermiller commented Jul 6, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Bulk and search-driven visibility changes can affect many images in one command; mistaken --search or a large ref list could unintentionally change sharing for numerous tags, though confirmation and partial-failure reporting mitigate some of that.

Overview
prime images publish and prime images unpublish now support batch and search-driven visibility changes instead of only a single image reference.

You can pass multiple plain name:tag references (space- or comma-separated); the CLI calls PATCH /images/visibility in batches of 100, prints per-image success/failure, and exits non-zero if any item fails. A single reference still uses the existing per-image visibility endpoint, including owner-prefixed forms.

--search / -q publishes or unpublishes every image whose name or tag matches a substring (scoped to personal or team context). The CLI previews the match count, prompts for confirmation (skippable with --yes), then uses the same bulk endpoint with a search payload. Owner-prefixed refs cannot be mixed in multi-ref mode; search strings must not include an owner prefix.

Shared helpers centralize parsing, validation (refs vs search are mutually exclusive), and error handling for both commands; no_args_is_help was added so bare publish/unpublish show help.

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

Comment thread packages/prime/src/prime_cli/commands/images.py
Comment thread packages/prime/src/prime_cli/commands/images.py

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

Copy link
Copy Markdown

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: 884ea19fe2

ℹ️ 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/images.py
Comment thread packages/prime/src/prime_cli/commands/images.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 17af5c1. Configure here.

Comment thread packages/prime/src/prime_cli/commands/images.py
@kcoopermiller

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: de99c08f96

ℹ️ 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".

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.

2 participants