Add Kiro shell plugin#605
Open
eddumelendez wants to merge 1 commit into
Open
Conversation
Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds initial 1Password shell plugin support for the Kiro CLI, including API key credential wiring and corresponding provision/import coverage.
Changes:
- Introduces new
kiroplugin entrypoint with platform metadata and wiring for credentials/executables. - Adds
KIRO_API_KEYcredential type with env var provisioner and env var importer. - Adds tests covering API key provisioning and importing behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| plugins/kiro/plugin.go | Defines the Kiro plugin metadata and registers credential + executable. |
| plugins/kiro/kiro.go | Declares the Kiro CLI executable schema and its credential usage. |
| plugins/kiro/api_key.go | Implements the API key credential, docs/management links, and env var mapping. |
| plugins/kiro/api_key_test.go | Adds tests for provisioning/importing KIRO_API_KEY. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+22
to
+29
| Composition: &schema.ValueComposition{ | ||
| Prefix: "ksk_", | ||
| Charset: schema.Charset{ | ||
| Uppercase: true, | ||
| Lowercase: true, | ||
| Digits: true, | ||
| }, | ||
| }, |
Comment on lines
+8
to
+22
| func New() schema.Plugin { | ||
| return schema.Plugin{ | ||
| Name: "kiro", | ||
| Platform: schema.PlatformInfo{ | ||
| Name: "Kiro", | ||
| Homepage: sdk.URL("https://kiro.dev"), | ||
| }, | ||
| Credentials: []schema.CredentialType{ | ||
| APIKey(), | ||
| }, | ||
| Executables: []schema.Executable{ | ||
| KiroCLI(), | ||
| }, | ||
| } | ||
| } |
Comment on lines
+10
to
+22
| func KiroCLI() schema.Executable { | ||
| return schema.Executable{ | ||
| Name: "Kiro CLI", | ||
| Runs: []string{"kiro-cli"}, | ||
| DocsURL: sdk.URL("https://kiro.dev/docs/cli/"), | ||
| NeedsAuth: needsauth.NotForHelpOrVersion(), | ||
| Uses: []schema.CredentialUsage{ | ||
| { | ||
| Name: credname.APIKey, | ||
| }, | ||
| }, | ||
| } | ||
| } |
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.
Overview
Adds a new Kiro shell plugin for authenticating the Kiro CLI with a Kiro API key. The plugin provisions and imports the documented
KIRO_API_KEYenvironment variable forkiro-cli.Type of change
Related Issue(s)
N/A
How To Test
To test authentication manually after initializing the plugin:
Changelog
Authenticate the Kiro CLI with API keys using 1Password Shell Plugins.