Skip to content

Add inbox-placement run write command - #6

Open
djbriane wants to merge 3 commits into
mainfrom
feature/inbox-placement-run
Open

djbriane wants to merge 3 commits into
mainfrom
feature/inbox-placement-run

Conversation

@djbriane

@djbriane djbriane commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds mailgun inbox-placement run so Optimize inbox placement tests can be created from the CLI.
  • Uses the same non-interactive --dry-run / --yes guard as preview run, then polls GET /v4/inbox/results/{id} until the test settles or the timeout is reached.
  • Supports HTML files, Send templates, optional seed/provider/IP controls, and updates README, architecture, and agent-context.

Test plan

  • npm test
  • mailgun inbox-placement run --from <verified-from> --subject "CLI test" --html ./email.html --dry-run --json
  • mailgun inbox-placement run --from <verified-from> --subject "CLI test" --html ./email.html --yes --json (Optimize-enabled account; consumes quota and sends to seeds)
  • Confirm mailgun agent-context lists inbox-placement run as mode: write
  • Resume a processing result with mailgun inbox-placement result <result_id> --json

Allow creating inbox placement tests from the CLI with the same dry-run/--yes guard as preview run, then poll GET /v4/inbox/results until the test settles.
Poll inbox-placement result with the same timeout defaults as preview, update the human spinner after create, and shorten the README QA sections.
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