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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user