feat(blurite): add support for ai model management#87
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds “ai” support to the indev CLI by introducing Blurite-backed AI model/deployment/API key management commands and the corresponding REST client methods/configuration.
Changes:
- Adds a new top-level
indev aicommand with subcommands for models, deployments, and API keys. - Extends the platform REST client with Blurite-specific base URL support and AI endpoints (models, deployments, API keys).
- Updates an existing test mock client to satisfy the expanded
client.Clientinterface.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/rootcommand/rootcommand.go | Registers the new ai command tree in the CLI root command. |
| pkg/commands/cluster/create_test.go | Extends test mock client to implement new AI-related client interface methods. |
| pkg/commands/ai/models_list.go | Adds indev ai model list command and output formatting. |
| pkg/commands/ai/deployment/create.go | Adds indev ai deployment create command and name/model validation. |
| pkg/commands/ai/deployment/list.go | Adds indev ai deployment list command and output formatting. |
| pkg/commands/ai/deployment/delete.go | Adds indev ai deployment delete command. |
| pkg/commands/ai/apikey/create.go | Adds indev ai apikey create command (including TTL validation). |
| pkg/commands/ai/apikey/list.go | Adds indev ai apikey list command and output formatting. |
| pkg/commands/ai/apikey/delete.go | Adds indev ai apikey delete command. |
| pkg/client/client.go | Extends Client interface and RestClient to include AI clients + Blurite base URI. |
| pkg/client/ai.go | Implements Blurite AI REST calls (models, deployments, API keys). |
| internal/build/build.go | Adds Blurite base URI + dev host selection (PlatformAPIHostBlurite). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
closes #86