Skip to content

REFACTOR: Migrate CLI to use pyrit.modes#1997

Open
rlundeen2 wants to merge 1 commit into
microsoft:mainfrom
rlundeen2:rlundeen2/phase-16-pyrit-models-plan
Open

REFACTOR: Migrate CLI to use pyrit.modes#1997
rlundeen2 wants to merge 1 commit into
microsoft:mainfrom
rlundeen2:rlundeen2/phase-16-pyrit-models-plan

Conversation

@rlundeen2

Copy link
Copy Markdown
Contributor

This PR migrates the CLI to use pyrit.modes (now that it is a lot thinner) instead of dictionaries.

Also, this PR adds pyrit/models/catalog package (target, scenario, initializer) as the canonical typed catalog models - there were previously defined in the backend, but are needed by the API and are not presentation specific.

This is phase 16 of this pyrit.models plan: https://gist.github.com/rlundeen2/3e8daa8e12a11b4b6e52587b3c9b1dca

…hase 16)

Add pyrit/models/catalog package (target, scenario, initializer) as the canonical typed catalog models. Rewrite the CLI api_client and output to consume typed objects instead of dict[str, Any] payloads, and update backend mappers/routes/services plus tests to import the canonical types. Remove backend re-export shims so backend models hold only REST framing types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 force-pushed the rlundeen2/phase-16-pyrit-models-plan branch from ed441d2 to 37b5cfb Compare June 12, 2026 21:23
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