Skip to content

Add JetBrains Junie CLI shell plugin - #604

Merged
scottisloud merged 3 commits into
1Password:mainfrom
eddumelendez:jetbrains-junie-cli
Jun 17, 2026
Merged

scottisloud merged 3 commits into
1Password:mainfrom
eddumelendez:jetbrains-junie-cli

Conversation

@eddumelendez

@eddumelendez eddumelendez commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Adds a new JetBrains Junie shell plugin for authenticating the junie CLI with a Junie API key from 1Password.

The plugin provisions and imports JUNIE_API_KEY only. Provider-specific BYOK variables such as JUNIE_OPENAI_API_KEY and JUNIE_ANTHROPIC_API_KEY are intentionally not supported by this plugin.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

N/A

How To Test

For functional testing, initialize the plugin with a Junie API key and run an authenticated Junie command, for example:

junie "Summarize this project"

Changelog

Authenticate JetBrains Junie CLI using Touch ID and other unlock options with 1Password Shell Plugins.

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
Copilot AI review requested due to automatic review settings May 29, 2026 04:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new 1Password shell plugin for JetBrains Junie to provision/import the Junie API key and define the Junie CLI executable metadata.

Changes:

  • Introduces a new junie plugin with platform metadata and wiring for credentials/executables.
  • Adds Junie CLI executable definition (command, docs URL, auth behavior, credential usage).
  • Adds API key credential type with env var provisioning/import and accompanying tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
plugins/junie/plugin.go Defines the junie plugin entrypoint and registers credentials/executables.
plugins/junie/junie.go Declares the Junie CLI executable metadata and credential usage.
plugins/junie/api_key.go Adds Junie API key credential type with env var provision/import mapping.
plugins/junie/api_key_test.go Adds tests for provisioning/importing JUNIE_API_KEY and ignoring unrelated fields/vars.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/junie/plugin.go Resolved
Comment thread plugins/junie/api_key.go Resolved
@scottisloud
scottisloud self-requested a review June 17, 2026 17:52
@scottisloud

Copy link
Copy Markdown
Contributor

Thanks for the contribution!
Overall looks solid: JUNIE_API_KEY provisioning and import path matches Junie's documented auth, and the tests (including the negative cases for BYOK vars) look solid. One blocker before merge:

  • Bare junie auth gating: Junie's quickstart starts interactive mode with bare junie, where users can sign in with a JetBrains Account, enter a Junie API key in the TUI, or configure BYOK. NeedsAuth currently only exempts help and version, so bare junie would ask 1Password for an API key before the TUI can start. Could you update junie.go to combine NotForHelpOrVersion() with NotWithoutArgs() via needsauth.IfAll(...)? plugins/vercel/vercel.go and plugins/ngrok/ngrok.go are close patterns to follow. Should be largely the same fix as in the other PR you submitted recently.

optional: On the BYOK provider env vars — keeping this PR scoped to JUNIE_API_KEY only is reasonable; separate credential types could be a follow-up if there's demand.

I'll take another look once that's in. Thanks again, @eddumelendez.

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
@eddumelendez

Copy link
Copy Markdown
Contributor Author

On the BYOK provider env vars — keeping this PR scoped to JUNIE_API_KEY only is reasonable; separate credential types could be a follow-up if there's demand.

I took a look at #610 and thought we can apply something similar. But, agree this can be a follow-up.

@eddumelendez
eddumelendez requested a review from scottisloud June 17, 2026 19:01

@scottisloud scottisloud left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Keep an eye out for this plugin to be in a future release of the 1Password CLI!

Thanks for the contribution!

@scottisloud
scottisloud merged commit 1d0b5fe into 1Password:main Jun 17, 2026
3 checks passed
@eddumelendez
eddumelendez deleted the jetbrains-junie-cli branch June 17, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants