Skip to content

feat: add Junie agent support#195

Merged
pi0 merged 1 commit into
unjs:mainfrom
GauthierPLM:feat/junie
Jul 7, 2026
Merged

feat: add Junie agent support#195
pi0 merged 1 commit into
unjs:mainfrom
GauthierPLM:feat/junie

Conversation

@GauthierPLM

@GauthierPLM GauthierPLM commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

resolve #194

Summary by CodeRabbit

  • New Features

    • Added support for detecting the junie agent.
    • Expanded the documented list of supported agents in the README.
  • Bug Fixes

    • Improved agent detection coverage so junie is recognized when its expected environment variables are present.
  • Tests

    • Added test coverage for the new junie detection cases.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 87121a6d-60f2-409e-aa7b-7d326be62da9

📥 Commits

Reviewing files that changed from the base of the PR and between c59e43f and 0c0ae0f.

📒 Files selected for processing (3)
  • README.md
  • src/agents.ts
  • test/agents.test.ts

📝 Walkthrough

Walkthrough

Adds detection support for the "junie" agent (JetBrains) by extending the AgentName type and internal detection table with checks for JUNIE_DATA and JUNIE_SHIM_PATH environment variables, adding corresponding tests, and updating documentation in README.md and src/agents.ts.

Changes

Junie Agent Support

Layer / File(s) Summary
Junie detection type and logic
src/agents.ts
AgentName gains "junie"; detection table adds a junie entry checking JUNIE_DATA and JUNIE_SHIM_PATH; in-code supported agents doc list updated.
Tests and README updates
test/agents.test.ts, README.md
Test env key reset list and new parameterized test cases cover junie detection via both env vars; README supported agents list updated.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding Junie agent support.
Linked Issues check ✅ Passed The changes implement Junie detection via JUNIE_DATA and JUNIE_SHIM_PATH as requested in issue #194.
Out of Scope Changes check ✅ Passed The README and test updates are directly related to the Junie support feature and stay in scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GauthierPLM GauthierPLM mentioned this pull request Jul 7, 2026
1 task

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank Gauthier, Junie :)

@pi0
pi0 merged commit 56aade8 into unjs:main Jul 7, 2026
3 checks passed
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.00%. Comparing base (5558f03) to head (0c0ae0f).
⚠️ Report is 63 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #195       +/-   ##
===========================================
+ Coverage   82.08%   95.00%   +12.91%     
===========================================
  Files          10        5        -5     
  Lines         374       60      -314     
  Branches       33       20       -13     
===========================================
- Hits          307       57      -250     
+ Misses         61        2       -59     
+ Partials        6        1        -5     

☔ 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.

camc314 added a commit to oxc-project/oxc that referenced this pull request Jul 8, 2026
Closes #24275.

## Summary
- add Junie as an oxlint agent detection result
- detect Junie via `JUNIE_DATA` and `JUNIE_SHIM_PATH`, matching
unjs/std-env#195
- cover both env variables in the existing agent detection unit test

## Verification
- `cargo fmt --all --check`
- `cargo test -p oxlint agent_detection`
- `cargo clippy -p oxlint --all-targets --all-features -- --deny
warnings`

## AI usage disclosure
AI assistance was used to inspect the issue context, apply the small
code change, and run verification. The change was reviewed against the
upstream std-env implementation and validated with the commands above.

Co-authored-by: Cameron <[email protected]>
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.

Support Junie agent

2 participants