Skip to content

feat(ai-prompt): add ai-prompt list command - #1152

Merged
andrii-bodnar merged 1 commit into
mainfrom
ai-command
Oct 19, 2026
Merged

andrii-bodnar merged 1 commit into
mainfrom
ai-command

Conversation

@bhdnb

@bhdnb bhdnb commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

auto-translate --method ai requires --ai-prompt <id>, but the CLI had no way to find one, so users looked it up in the UI and agents called the REST API with the token from the config.

ai-prompt list lists user prompts on crowdin.com and organization prompts on Enterprise, filtered server-side by --action and --assigned. The missing --ai-prompt error now points to it.

@bhdnb bhdnb self-assigned this Oct 19, 2026
@bhdnb
bhdnb marked this pull request as draft October 19, 2026 10:51
@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.64%. Comparing base (25a49d9) to head (f1f884a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1152      +/-   ##
==========================================
+ Coverage   93.59%   93.64%   +0.06%     
==========================================
  Files         155      159       +4     
  Lines       12857    12960     +103     
==========================================
+ Hits        12032    12135     +103     
  Misses        825      825              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bhdnb
bhdnb requested a review from andrii-bodnar October 19, 2026 12:54
@bhdnb
bhdnb marked this pull request as ready for review October 19, 2026 12:54
@andrii-bodnar
andrii-bodnar requested a lite review from Copilot October 19, 2026 12:55

Copilot AI 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.

🟢 Approval recommended

No unresolved blocking issues were identified.

No open issues 🎉

What changed in this PR

Adds ai-prompt list to help users discover AI prompt IDs for auto-translation.

Changes:

  • Adds prompt service, command, filtering, and output views.
  • Supports user and Enterprise organization prompts.
  • Updates guidance, documentation navigation, and unit tests.
File Description
website/​sidebars.ts Adds AI prompt documentation navigation.
tests/​unit/​cli/​services/​AiService.test.ts Tests prompt service behavior.
tests/​unit/​cli/​services.test.ts Tests service factory caching.
tests/​unit/​cli/​commands/​auto-translate/​AutoTranslateCommand.test.ts Updates prompt guidance assertion.
tests/​unit/​cli/​commands/​ai-prompt/​views.test.ts Tests output formatting.
tests/​unit/​cli/​commands/​ai-prompt/​AiPromptCommand.test.ts Tests command behavior and filtering.
tests/​unit/​cli/​commands.test.ts Tests command registration.
src-next/​cli/​services/​AiService.ts Lists user or organization prompts.
src-next/​cli/​services.ts Adds the AI service factory.
src-next/​cli/​commands/​auto-translate/​AutoTranslateCommand.ts Improves missing-prompt guidance.
src-next/​cli/​commands/​ai-prompt/​views.ts Formats prompt output.
src-next/​cli/​commands/​ai-prompt/​options.ts Defines action filtering.
src-next/​cli/​commands/​ai-prompt/​AiPromptCommand.ts Implements ai-prompt list.
src-next/​cli/​commands.ts Registers the command.

Review effort: Lite

@andrii-bodnar
andrii-bodnar merged commit e57fd37 into main Oct 19, 2026
14 checks passed
@andrii-bodnar
andrii-bodnar deleted the ai-command branch October 19, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants