Skip to content

Add --json output to ruflo doctor #3416

Description

@pacphi

ruflo doctor (and ruflo doctor --component <x>) currently emits text-only, ANSI-coloured
output (✓/⚠/✗ rows with a name and free-text detail). Tools that want to check component
health programmatically — CI, editor integrations, or a wrapper CLI like agentic-kit — have to
regex-parse that text, which is brittle across releases (row wording, ANSI codes, and column
layout can all change without notice).

Please add a --json flag that emits the same information as a stable, versioned JSON array,
e.g. [{ "id": "typesafe", "status": "pass"|"warn"|"fail", "name": "...", "detail": "..." }]. A
schema version field would let consumers detect breaking format changes safely.

Context: we currently parse the text form with a tolerant regex per row and degrade to unknown
on anything unreadable, which works but is fragile — see parseDoctor in agentic-kit's src/lib/ruflo-components/evidence.mjs (pacphi/agentic-kit#236) if a reference for the current text shape is useful.

Checked against ruflo 3.44.0: ruflo doctor --help offers --fix, --install, -c/--component, --verbose and --fix-handles, but no machine-readable output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions