Skip to content

feat: expose proxy_mode via authsome config get/set proxy-mode#375

Closed
manojbajaj95 wants to merge 1 commit into
mainfrom
feature/proxy-mode-cli-config
Closed

feat: expose proxy_mode via authsome config get/set proxy-mode#375
manojbajaj95 wants to merge 1 commit into
mainfrom
feature/proxy-mode-cli-config

Conversation

@manojbajaj95
Copy link
Copy Markdown
Collaborator

Summary

  • Adds authsome config get proxy-mode to read the current proxy mode from ClientConfig
  • Adds authsome config set proxy-mode <mode> to persist a new mode, with validation against the four allowed values
  • Both commands produce JSON output consistent with the rest of the CLI; invalid key or mode yields a structured error
  • Updates ClientConfig docstring to reference the new CLI surface
  • Adds a Proxy Policy section to README.md with a mode reference table

Test plan

  • uv run pytest tests/cli/test_config.py -v — 10 tests covering all 4 valid modes, default-mode get, persist-to-disk, and both error cases (unknown key, invalid mode)
  • uv run ruff check src/ tests/ and uv run ruff format src/ tests/ — no issues
  • uv run ty check src/ — all checks pass
  • pre-commit run --all-files — passes

Closes #368

🤖 Generated with Claude Code

Closes #368. Adds `authsome config get proxy-mode` and `authsome config
set proxy-mode <mode>` commands. Both read/write the caller-local
ClientConfig and produce JSON output consistent with the rest of the
CLI. Invalid keys and invalid mode values produce structured errors with
the list of valid options. Includes 10 unit tests covering all four
modes, the happy-path get, persistence to disk, and both error cases.
README updated with a Proxy Policy section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@manojbajaj95 manojbajaj95 deleted the feature/proxy-mode-cli-config branch June 2, 2026 11:41
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.

feat: expose proxy_mode in ClientConfig via CLI

1 participant