feat: finalise multi-profil Codex/Claude avec catalogue de modèles
- Backend : clone_profile_from_seed généralisé (non OpenCode) - Backend : catalogue static Claude/Codex (3 modèles chacun, 1 recommandé) - Backend : commandes Tauri list_claude_models/list_codex_models - Frontend : ProfilesSettings refonte en onglets Codex/Claude + create/duplicate/edit/delete - Frontend : ModelSelect searchable partagé + fallback saisie manuelle - Frontend : assignation agent nom · modèle - Tests QA : 4 profils modèles distincts (2 Claude, 2 Codex) assignés à agents
This commit is contained in:
@ -42,6 +42,7 @@ import type {
|
||||
ProjectWorkState,
|
||||
ProjectSystemPermissions,
|
||||
ProfileAvailability,
|
||||
ProfileModelCatalogEntry,
|
||||
ResolvedAgentSystemPermissions,
|
||||
SystemPermissionSet,
|
||||
Skill,
|
||||
@ -50,6 +51,7 @@ import type {
|
||||
TurnPage,
|
||||
} from "@/domain";
|
||||
import type {
|
||||
CloneProfileFromSeedInput,
|
||||
CloneOpenCodeProfileFromSeedInput,
|
||||
ConversationGateway,
|
||||
ConversationPageRequest,
|
||||
@ -176,6 +178,17 @@ export class HttpProfileGateway implements ProfileGateway {
|
||||
async deleteProfile(profileId: string): Promise<void> {
|
||||
await this.http.invoke("delete_profile", { profileId });
|
||||
}
|
||||
cloneProfileFromSeed(input: CloneProfileFromSeedInput): Promise<AgentProfile> {
|
||||
return this.http.invoke<AgentProfile>("clone_profile_from_seed", {
|
||||
request: { seedProfileId: input.seedProfileId, name: input.name, model: input.model },
|
||||
});
|
||||
}
|
||||
listClaudeModels(): Promise<ProfileModelCatalogEntry[]> {
|
||||
return this.http.invoke<ProfileModelCatalogEntry[]>("list_claude_models");
|
||||
}
|
||||
listCodexModels(): Promise<ProfileModelCatalogEntry[]> {
|
||||
return this.http.invoke<ProfileModelCatalogEntry[]>("list_codex_models");
|
||||
}
|
||||
configureProfiles(profiles: AgentProfile[]): Promise<AgentProfile[]> {
|
||||
return this.http.invoke<AgentProfile[]>("configure_profiles", { request: { profiles } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user