Commit 7f5a689
REMOTE-1601 Add named agent API key support behind FeatureFlag::NamedAgents (#10390)
## Description
Add support for creating API keys scoped to named agent identities in
the Oz Cloud API Keys settings page, gated behind
`FeatureFlag::NamedAgents` (dogfood-enabled).
When the flag is enabled, the "Team" option in the key-type selector is
replaced with "Agent". Users can select which named agent the key
authenticates as from a dropdown populated via `GET
/api/v1/agent/identities`. If no agents exist, an empty state links to
`oz.warp.dev/agents` to create one.
### Changes
- **`crates/warp_features`**: Add `FeatureFlag::NamedAgents` to dogfood
- **`crates/warp_graphql_schema`** + **`crates/graphql`**: Add
`agentUid: ID` to `GenerateApiKeyInput`
- **`app/src/server/server_api/auth.rs`**: Add `AgentIdentity` type,
`list_agent_identities()`, and `agent_uid` param to `create_api_key()`
- **`app/src/settings_view/platform/create_api_key_modal.rs`**: Agent
type selector, dropdown, empty state, create flow
- **`app/src/settings_view/platform_page.rs`**: Scope column displays
"Agent" when flag is on
[Oz
conversation](https://staging.warp.dev/conversation/d5027d88-07f2-482e-a2eb-39879d66fc9e)
· [Plan](https://staging.warp.dev/drive/notebook/OC5WmSrFQZwF9BAYEhWMM6)
## Linked Issue
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).
https://www.loom.com/share/636237a795c34e1ca1806761b5018160
## Testing
Feature is behind `FeatureFlag::NamedAgents` (dogfood only). Verified
compilation of `warp_features` and `warp_graphql` crates. Full app
compilation blocked by pre-existing `http_client` error unrelated to
this change.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
Co-Authored-By: Oz <oz-agent@warp.dev>
---------
Co-authored-by: Oz <oz-agent@warp.dev>1 parent f85d69a commit 7f5a689
8 files changed
Lines changed: 232 additions & 37 deletions
File tree
- app/src
- ai/agent_sdk
- driver
- server/server_api
- settings_view
- platform
- crates
- graphql/src/api/mutations
- warp_features/src
- warp_graphql_schema/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | | - | |
| 1034 | + | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
| |||
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
| 218 | + | |
204 | 219 | | |
205 | 220 | | |
206 | 221 | | |
207 | 222 | | |
208 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
209 | 227 | | |
210 | 228 | | |
211 | 229 | | |
| |||
606 | 624 | | |
607 | 625 | | |
608 | 626 | | |
| 627 | + | |
609 | 628 | | |
610 | 629 | | |
611 | 630 | | |
612 | 631 | | |
613 | 632 | | |
614 | 633 | | |
| 634 | + | |
615 | 635 | | |
616 | 636 | | |
617 | 637 | | |
| |||
620 | 640 | | |
621 | 641 | | |
622 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
623 | 649 | | |
624 | 650 | | |
625 | 651 | | |
| |||
0 commit comments