feat(FN-2636): add plugin runtime mode support to agent management

- Add plugin runtimes endpoint in dashboard routes and legacy API client support
- Add runtime mode controls to NewAgentDialog with plugin runtime selection UX
- Add runtime mode display and editing support in AgentDetailView with matching styles
- Expand dashboard tests to cover new routes, modal behavior, and mobile agent view flows
This commit is contained in:
Fusion
2026-04-26 23:25:17 -07:00
committed by gsxdsm
parent 1062ba891a
commit e1c7672695
12 changed files with 605 additions and 45 deletions

View File

@@ -6732,11 +6732,25 @@ export interface PluginUiSlotEntry {
slot: PluginUiSlotDefinition;
}
/** Plugin runtime metadata returned by GET /api/plugins/runtimes */
export interface PluginRuntimeInfo {
pluginId: string;
runtimeId: string;
name: string;
description?: string;
version?: string;
}
/** Fetch all UI slot definitions from active plugins */
export async function fetchPluginUiSlots(projectId?: string): Promise<PluginUiSlotEntry[]> {
return api<PluginUiSlotEntry[]>(withProjectId("/plugins/ui-slots", projectId));
}
/** Fetch all plugin runtime metadata from active plugins */
export async function fetchPluginRuntimes(projectId?: string): Promise<PluginRuntimeInfo[]> {
return api<PluginRuntimeInfo[]>(withProjectId("/plugins/runtimes", projectId));
}
// ── Skills Management ─────────────────────────────────────────────────────────
/** Fetch all discovered skills with their enabled state */