feat(layout): supporte la création de layouts plugins (customPluginLayout)

Étend le flux de création de layout backend (DTO, usecases, store) et le
frontend (sélecteur, adaptateurs, LayoutTabs/LayoutGrid) pour permettre
d'ouvrir un layout déclaré par un plugin installé (ex. Android Health),
sans passer par le message bloquant "extension backend pas encore livrée".

Ticket #141 — QA vert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 18:34:21 +02:00
parent 168f93df78
commit 45617992ef
29 changed files with 907 additions and 99 deletions

View File

@ -26,6 +26,7 @@ import type {
LayoutList,
LayoutOperation,
LayoutTree,
PluginLayoutOrigin,
LocalModelServerConfig,
Memory,
MemoryIndexEntry,
@ -116,8 +117,15 @@ export class HttpLayoutGateway implements LayoutGateway {
listLayouts(projectId: string): Promise<LayoutList> {
return this.http.invoke<LayoutList>("list_layouts", { projectId });
}
createLayout(projectId: string, name: string, kind?: LayoutKind): Promise<{ layoutId: string }> {
return this.http.invoke<{ layoutId: string }>("create_layout", { request: { projectId, name, kind } });
createLayout(
projectId: string,
name: string,
kind?: LayoutKind,
pluginOrigin?: PluginLayoutOrigin,
): Promise<{ layoutId: string }> {
return this.http.invoke<{ layoutId: string }>("create_layout", {
request: { projectId, name, kind, pluginOrigin },
});
}
renameLayout(projectId: string, layoutId: string, name: string): Promise<void> {
return this.http.invoke<void>("rename_layout", { request: { projectId, layoutId, name } });