feat(trust): add clx trust command for auto-allow mode#15
Merged
blackaxgit merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
Add clx trust on/off/status subcommands to manage trust mode: - clx trust on [--duration 30m/1h/2h/8h] [--session] - clx trust off (immediate disable) - clx trust status [--json] Upgrades trust mode from plain file token to JSON token with: - Configurable duration (5m-24h, default 1h) - Session-scoped trust via --session flag - Rich metadata (enabled_at, expires_at, enabled_by) - Backward compatible with old token format Config additions: - trust_mode_max_duration (default 24h) - trust_mode_default_duration (default 1h) Includes 4 CLI integration tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clx trust on/off/statussubcommands for managing auto-allow modetrust_mode_max_durationandtrust_mode_default_durationconfig fieldsUsage
Test plan
clx trust oncreates JSON token and prints confirmationclx trust on --duration 30msets 30-minute expiryclx trust offremoves token immediatelyclx trust statusshows active/inactive with remaining timeclx trust status --jsonoutputs valid structured JSONGenerated with Claude Code