Added support for the JetBrains AI Assistant#241
Open
befresh-mweimerskirch wants to merge 3 commits intorobinebers:mainfrom
Open
Added support for the JetBrains AI Assistant#241befresh-mweimerskirch wants to merge 3 commits intorobinebers:mainfrom
befresh-mweimerskirch wants to merge 3 commits intorobinebers:mainfrom
Conversation
8bd336e to
5750ab4
Compare
Contributor
There was a problem hiding this comment.
1 issue found across 9 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="plugins/jetbrains-ai-assistant/plugin.json">
<violation number="1" location="plugins/jetbrains-ai-assistant/plugin.json:7">
P3: plugin.json references icon.svg but there is no icon.svg in the plugin directory (or anywhere under plugins/), so the icon path will not resolve at runtime.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Add one-off context when rerunning by tagging
@cubic-dev-aiwith guidance or docs links (includingllms.txt) - Ask questions if you need clarification on any suggestion
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new provider plugin to surface JetBrains AI Assistant quota by reading the local JetBrains IDE quota cache, and extends the plugin host filesystem API to support directory discovery needed for locating the quota file.
Changes:
- Added
jetbrains-ai-assistantprovider plugin (implementation, manifest, icon) to parseAIAssistantQuotaManager2.xmland emit Quota/Used/Remaining lines. - Extended the plugin Host FS API with
host.fs.listDir()and updated plugin API docs accordingly. - Added unit tests for parsing, selection logic, scaling, duration parsing, and error cases; documented the new provider and linked it from the README.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src-tauri/src/plugin_engine/host_api.rs | Exposes host.fs.listDir() to plugins (with ~ expansion) to support filesystem discovery. |
| plugins/test-helpers.js | Enhances test FS mocks to emulate directory existence and implement listDir() for plugin tests. |
| plugins/jetbrains-ai-assistant/plugin.test.js | Adds Vitest coverage for parsing/selection/scaling/duration/error handling for the new plugin. |
| plugins/jetbrains-ai-assistant/plugin.json | Registers the new provider plugin metadata and declared UI lines. |
| plugins/jetbrains-ai-assistant/plugin.js | Implements JetBrains quota discovery + XML/JSON parsing and line generation. |
| plugins/jetbrains-ai-assistant/icon.svg | Adds provider icon asset referenced by the plugin manifest. |
| docs/providers/jetbrains-ai-assistant.md | Documents data sources, parsed fields, displayed lines, and error messages for the provider. |
| docs/plugins/api.md | Documents the new host.fs.listDir() API and provides a usage example. |
| README.md | Adds JetBrains AI Assistant to the list of supported providers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…system methods as suggested by Copilot.
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.
Description
This PR adds support for displaying the quota from the JetBrains AI Assistant.
Type of Change
Testing
bun run buildand it succeededbun run testand all tests passbun tauri devScreenshots
Checklist
mainbranchSummary by cubic
Added a JetBrains AI Assistant provider plugin that reads the local IDE quota cache and shows quota, used, remaining, and reset timing.
Written for commit f56e13d. Summary will update on new commits.