Skip to content

Add --verbose flag to commit-echo suggest #70

@404-Page-Found

Description

@404-Page-Found

Task summary

Add a --verbose\ / -v\ flag to the \commit-echo suggest\ command that prints extra diagnostic info: truncation details (if the diff was truncated), a summary of the style profile used, and the model name from the LLM response.

Why this is a good first issue

Teaches CLI flag handling with Commander.js, conditional output logic, and gives insight into the tool's internals. Touches the suggest command flow and leverages existing data structures (\TruncationInfo, \StyleProfile).

Suggested files or areas

  • \src/index.ts\ — Add the --verbose\ / -v\ option to the \suggest\ command
  • \src/commands/suggest.ts\ — Pass the verbose flag through and print extra info when enabled
  • \src/llm/client.ts\ — Optionally return the model name from the LLM response

Acceptance criteria

  • \commit-echo suggest --verbose\ shows truncation info (when applicable), style profile summary (avg length, imperative rate, common prefixes), and the model name used
  • \commit-echo suggest -v\ works as an alias
  • Without --verbose, output is unchanged (no breaking change)

  • pm run build\ passes with no errors

Extra context

Follow the existing flag pattern in \src/index.ts\ (e.g., --commit, --yes). The \generateSuggestions()\ function in \src/llm/client.ts\ already returns \ runcation\ and \profile\ data — just print them conditionally. Use \pc.dim()\ for less prominent info styling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions