Repository navigation
feat(ai-prompt): add ai-prompt list command - #1152
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 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
approved these changes
Oct 19, 2026
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.
auto-translate --method airequires--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 listlists user prompts on crowdin.com and organization prompts on Enterprise, filtered server-side by--actionand--assigned. The missing--ai-prompterror now points to it.