Skip to content

feat: add CLI bootstrap contract#6

Merged
michiosw merged 1 commit intomainfrom
feat/cli-bootstrap-proto
Apr 14, 2026
Merged

feat: add CLI bootstrap contract#6
michiosw merged 1 commit intomainfrom
feat/cli-bootstrap-proto

Conversation

@michiosw
Copy link
Copy Markdown
Contributor

@michiosw michiosw commented Apr 14, 2026

Summary

  • add the AgentService BootstrapCli RPC for CLI startup bootstrap
  • return managed provider metadata for preset env sync
  • make the proto contract available for the backend and CLI follow-up PRs

Testing

  • buf lint

Open with Devin

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor Author

@michiosw michiosw left a comment

Choose a reason for hiding this comment

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

Internal review pass complete. The proto change is tight and minimal: it adds the CLI bootstrap RPC plus the managed provider payload without widening the surface unnecessarily. I did not find any blocking contract issues after checking the downstream CLI and backend usage.

@michiosw michiosw marked this pull request as ready for review April 14, 2026 20:01
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@michiosw michiosw merged commit ba2b704 into main Apr 14, 2026
3 checks passed
michiosw added a commit to kontext-security/kontext-cli that referenced this pull request Apr 14, 2026
## Summary
- call the new CLI bootstrap RPC before credential resolution
- generate and update local .env.kontext files additively for managed preset providers
- classify exchange failures, open hosted connect only when it can help, and retry with a bounded window

## Dependencies
- requires kontext-security/proto#6
- pairs with the backend bootstrap work in kontext-security/kontext

## Testing
- go test ./internal/... ./cmd/...
<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/kontext-security/kontext-cli/pull/61" target="_blank">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
    <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin">
  </picture>
</a>
<!-- devin-review-badge-end -->
michiosw added a commit to kontext-security/kontext-cli that referenced this pull request Apr 14, 2026
## Summary
- update the README to match generated local .env.kontext behavior
- document hosted connect and best-effort provider resolution on startup
- remove the old guidance that told users to commit .env.kontext

## Dependencies
- stacks on top of feat/cli-managed-env-sync
- indirectly depends on kontext-security/proto#6

## Testing
- documentation only
<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/kontext-security/kontext-cli/pull/60" target="_blank">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
    <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin">
  </picture>
</a>
<!-- devin-review-badge-end -->
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.

1 participant