feat(cli): compact colour-coded inspect by default, add --verbosity - #60
Merged
Conversation
…uniform with orpc-agent
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
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.
Uniforms the CLI with the sibling orpc-agent CLI (Wiseair-srl/orpc-agent#15) and releases @agent-surface/cli 0.21.0 (changeset included; merge publishes).
What changed
inspect: headline (counts, gates, snapshot integrity) + one flat colour-coded table + 2-line caveat. No banner, no provenance block, no declaration grouping; drift sections print only when there is drift (an explicit--basealways gets its answer).--verbosity min|normal|detailon every command;--detailkept as shorthand.minstops at the headline (forcheck: verdict + per-section counts);detailrestores the grouped-by-declaration inventory with descriptions, tags, provenance fields and the full caveat.requiredgreen;—dim. Same scale as orpc-agent. Painted only at a TTY (!CI && !NO_COLOR && TERM!=dumb); piped output stays byte-stable.--formatacceptsmdas a spelling ofmarkdown.checkon failing integrity printsUpdate the snapshot in this change: agent-surface snapshoton stderr, where it survives a piped report.docs/20-cli.md, READMEs incl. stale root-README sample) updated.Canonical
--jsonoutput unchanged. AS-CLI-001 holds (every capability rendered at normal/detail); AS-CLI-003 byte-stability covered by a new colour test.Test plan
pnpm vitest run— 403/403 workspace-wide, incl. new verbosity/colour testspnpm -r typecheckcleanexamples/devices-app: all three levels, Ink + coloured-plain via pty,--detaildiff-identical to--verbosity detail, piped output ANSI-free, failingcheckprints stderr hint