Switch View/Modal/Admin/ApiKeyManager.php from Core\Api\Models\ApiKey to Core\Mod\Agentic\Models\AgentApiKey and AgentApiKeyService, bringing the workspace-owner admin UI into consistency with all other services. Changes: - Replace Core\Api\Models\ApiKey import with AgentApiKey + AgentApiKeyService - Use AgentApiKeyService::create() for key generation - Use AgentApiKey::forWorkspace() scoping in revokeKey() and render() - Rename newKeyScopes → newKeyPermissions, toggleScope → togglePermission - Expose availablePermissions() from AgentApiKey for the create form - Update blade template: permissions field, getMaskedKey(), togglePermission, dynamic permission checkboxes from AgentApiKey::availablePermissions() - Add tests/Feature/ApiKeyManagerTest.php with integration coverage - Mark CQ-002 resolved in TODO.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ApiKeyManager.php | ||
| ApiKeys.php | ||
| Dashboard.php | ||
| PlanDetail.php | ||
| Plans.php | ||
| Playground.php | ||
| RequestLog.php | ||
| SessionDetail.php | ||
| Sessions.php | ||
| Templates.php | ||
| ToolAnalytics.php | ||
| ToolCalls.php | ||