feat: initialize experimental agent repo

This commit is contained in:
2026-06-30 14:03:49 +08:00
commit e83ac54a9e
75 changed files with 11690 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
import type { ActionManifest, ComponentManifest } from "./types.js";
export const chartGrammar = "echarts-safe-subset" as const;
export const componentRegistry: ComponentManifest[] = [
{
id: "HistoryPanel",
version: "1.0.0",
description: "Open a historical result panel for selected network features.",
supportedSurfaces: ["side_panel", "canvas"],
},
{
id: "ScadaPanel",
version: "1.0.0",
description: "Open a SCADA history panel for selected devices.",
supportedSurfaces: ["side_panel", "canvas"],
},
];
export const actionRegistry: ActionManifest[] = [
{
id: "locate_features",
version: "1.0.0",
description: "Locate and highlight network features on the map.",
supportedSurfaces: ["map_overlay"],
},
{
id: "zoom_to_map",
version: "1.0.0",
description: "Zoom the map to a coordinate.",
supportedSurfaces: ["map_overlay"],
},
{
id: "render_junctions",
version: "1.0.0",
description: "Render junction categories from an authorized render_ref.",
supportedSurfaces: ["map_overlay"],
},
{
id: "apply_layer_style",
version: "1.0.0",
description: "Apply or reset a map layer style.",
supportedSurfaces: ["map_overlay"],
},
];
export const uiRegistryResponse = {
schema_version: "agent-ui-registry@1",
chart_grammars: [chartGrammar],
components: componentRegistry,
actions: actionRegistry,
};