Skip to content

feat(lib): Enhance CLI with interactive commit options#8

Open
rengarcia wants to merge 3 commits intomainfrom
chore/upgrade-dx-multi-llm-support
Open

feat(lib): Enhance CLI with interactive commit options#8
rengarcia wants to merge 3 commits intomainfrom
chore/upgrade-dx-multi-llm-support

Conversation

@rengarcia
Copy link
Copy Markdown
Collaborator

@rengarcia rengarcia commented Apr 1, 2026

feat(lib): Enhance CLI with interactive commit options

Summary (AI, bounded)

  • Reserved slot (AI may fill this)

Changes by type

Features

  • feat(lib): Enhance CLI with interactive commit options (5fc8521)

Chore

  • chore(cli): Remove unused import from CLI script (aa1bce9)

Other (unknown)

  • commit: Merge branch 'main' into chore/upgrade-dx-multi-llm-support (8cd3d78)

Commits

  • aa1bce9 chore(cli): Remove unused import from CLI script
  • 8cd3d78 Merge branch 'main' into chore/upgrade-dx-multi-llm-support
  • 5fc8521 feat(lib): Enhance CLI with interactive commit options

Files changed

  • M .env.example
  • M bin/cli.js
  • A lib/core/format.js
  • M lib/core/generate.js
  • A lib/core/interactive.js
  • M lib/core/openai.js
  • A lib/providers/anthropic.js
  • A lib/providers/azure-openai.js
  • A lib/providers/base.js
  • A lib/providers/index.js
  • A lib/providers/ollama.js
  • A lib/providers/openai.js
  • M package.json
  • M pnpm-lock.yaml
  • M tools/lib/pr-ai.js
  • M tools/semantic-release-notes.cjs

Diff stats

.env.example                     |  42 +++++++-
 bin/cli.js                       | 210 ++++++++++++++++++++++++++++++++++-----
 lib/core/format.js               | 106 ++++++++++++++++++++
 lib/core/generate.js             |  17 ++--
 lib/core/interactive.js          | 144 +++++++++++++++++++++++++++
 lib/core/openai.js               |  46 +++++----
 lib/providers/anthropic.js       |  35 +++++++
 lib/providers/azure-openai.js    |  37 +++++++
 lib/providers/base.js            |  32 ++++++
 lib/providers/index.js           | 101 +++++++++++++++++++
 lib/providers/ollama.js          |  38 +++++++
 lib/providers/openai.js          |  28 ++++++
 package.json                     |  12 +++
 pnpm-lock.yaml                   |  36 +++++++
 tools/lib/pr-ai.js               |  72 ++++----------
 tools/semantic-release-notes.cjs |  78 ++++-----------
 16 files changed, 878 insertions(+), 156 deletions(-)

Testing

  • Manual smoke test
  • CI green

Risk / Impact

  • Risk level: Low / Medium / High
  • Rollback plan:

Base: main → Head: chore/upgrade-dx-multi-llm-support

This update introduces interactive options for the commit command in the
CLI. Users can now choose to review the generated commit message before
finalizing it. This feature allows for greater flexibility and control
over commit messages, ensuring they accurately reflect the changes made.

Additionally, the command now supports a dry-run option, which enables
users to preview the commit message without actually committing. This
enhancement improves the user experience by providing more transparency
and reducing the likelihood of incorrect commits.

Overall, these changes aim to streamline the commit process and empower
users with better tools for managing their commit messages.
@rengarcia rengarcia requested a review from JFusco April 1, 2026 14:20
This commit removes the unused `cyan` import from the `format.js` module
in the CLI script. The `cyan` variable was not utilized in the code,
which helps to keep the codebase clean and maintainable.

By eliminating unnecessary imports, we reduce potential confusion for
future developers and improve the overall readability of the code. This
change does not affect any functionality or introduce any new features.
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.

2 participants