Skip to content

feat(itui): pretty-print secret lists from AI commands with reveal to…#5

Merged
jakehulberg merged 1 commit into
mainfrom
jake/pretty-print-ai-output
Feb 25, 2026
Merged

feat(itui): pretty-print secret lists from AI commands with reveal to…#5
jakehulberg merged 1 commit into
mainfrom
jake/pretty-print-ai-output

Conversation

@jakehulberg
Copy link
Copy Markdown
Collaborator

…ggle

When AI commands return JSON secret data (e.g. infisical export --format=json), parse and display as a formatted, aligned list with masked values instead of dumping raw JSON. Press 'r' to reveal/hide values, same UX as single secret view.

  • Add DetailModeSecretList mode with SetSecretList() method
  • Add renderSecretList() with aligned key/value columns and masked values
  • Extend ToggleReveal and CopyableContent to cover the new mode
  • Auto-detect JSON secret output in commandExecutedMsg handler

Description 📣

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

# Here's some code block to paste some code snippets

…ggle

When AI commands return JSON secret data (e.g. infisical export --format=json),
parse and display as a formatted, aligned list with masked values instead of
dumping raw JSON. Press 'r' to reveal/hide values, same UX as single secret view.

- Add DetailModeSecretList mode with SetSecretList() method
- Add renderSecretList() with aligned key/value columns and masked values
- Extend ToggleReveal and CopyableContent to cover the new mode
- Auto-detect JSON secret output in commandExecutedMsg handler

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jakehulberg jakehulberg merged commit 34e005f into main Feb 25, 2026
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