Skip to content

Add rich terminal output and live event view - #6

Merged
codemountains merged 4 commits into
mainfrom
agent/rich-cli-output
Aug 7, 2026
Merged

Add rich terminal output and live event view#6
codemountains merged 4 commits into
mainfrom
agent/rich-cli-output

Conversation

@codemountains

Copy link
Copy Markdown
Contributor

Summary

  • add a TTY-aware human-output renderer with ANSI color, Unicode-aware width calculation, responsive tables, key/value details, status messages, and JSON syntax highlighting
  • preserve plain output for pipes and redirects, honor NO_COLOR, and keep --json and events stream free of terminal decoration
  • add barestash events tail --view, an interactive screen-updating dashboard for recent webhook events
  • apply rich output across auth, endpoint, event, token, and secret workflows
  • document the output contract, dashboard constraints, bundled dependency, and third-party licenses

Why

The existing presentation layer emitted fixed-width strings, so long values broke table alignment and interactive terminal output was difficult to scan. Event monitoring also only supported an append-only display. This change centralizes human rendering while retaining the CLI's existing machine-output and security contracts.

User impact

Interactive terminals now receive width-aware, colored output. Redirected and piped human output remains plain text. The new dashboard is opt-in with events tail --view, requires a TTY, and cannot be combined with --headers or --body.

Sensitive event headers are still redacted before rendering. One-time token and endpoint-secret output remains copyable.

Validation

  • just check — 32 test files, 249 tests passed
  • just package — npm tarball allow-list, install, help/version, and native keyring smoke checks passed
  • pnpm dev events tail --help — verified the documented --view command surface
  • git diff --check — passed

@codemountains
codemountains marked this pull request as ready for review August 7, 2026 21:52

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2dace9e3aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/presentation/output/tail-view.ts
@codemountains

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1483b0dcc8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/infrastructure/terminal-output.ts Outdated
Comment thread src/presentation/output/tail-view.ts
@codemountains

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df5815c576

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/infrastructure/terminal-output.ts Outdated
@codemountains

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 22616d5b27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@codemountains
codemountains merged commit 8217288 into main Aug 7, 2026
5 checks passed
@codemountains
codemountains deleted the agent/rich-cli-output branch August 7, 2026 22:45
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