Skip to content

Add account commands and si models - #10

Merged
setoelkahfi merged 1 commit into
cli/sitesfrom
cli/account
Oct 28, 2026
Merged

setoelkahfi merged 1 commit into
cli/sitesfrom
cli/account

Conversation

@setoelkahfi

@setoelkahfi setoelkahfi commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Adds si auth signup, resend, reset-password and delete-account, and si models.

  • signup asks for the password twice. resend fixes the existing "run si auth resend" hint, which pointed at a command that didn't exist.
  • reset-password and resend say "if the address has an account" because the server answers the same either way.
  • delete-account asks you to type your email, or takes --yes, then deletes the account and clears the stored token.
  • si models needs no sign-in.

The client crate gets reset_password and models, plus the Model type (default falls back to false).

Checked with cargo fmt --check, cargo clippy -D warnings, cargo test --workspace and cargo check -p sigit-si-api --no-default-features.

si auth signup creates an account with a confirmed password prompt,
si auth resend sends the confirmation email again (the hint in the
unverified-email message already pointed at it), si auth reset-password
emails reset instructions, and si auth delete-account asks you to type
your email before deleting, or takes --yes. si models lists the models a
session can use.

The client crate gets reset_password and models.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@setoelkahfi
setoelkahfi added this pull request to stack #12 October 28, 2026 09:16
@setoelkahfi setoelkahfi self-assigned this Oct 28, 2026
@setoelkahfi
setoelkahfi requested a review from paydii October 28, 2026 09:16
@setoelkahfi
setoelkahfi marked this pull request as ready for review October 28, 2026 10:57

@sigit-code-review sigit-code-review 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.

This change adds new account management commands to the CLI: signup, resend confirmation, reset password, and delete account, each with appropriate prompts and flows. It also introduces the si models command to list available models, with supporting API and rendering code. The client API gains reset_password and models methods, and a new Model struct is defined. Tests are added for email normalization and model deserialization. The changes are well-structured and integrate with existing patterns. No previous findings are present or reintroduced.


Automated review by siGit Code Review · commit 04c82c5 · see the review dashboard

@setoelkahfi
setoelkahfi merged commit 601450a into development Oct 28, 2026
1 check passed
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