Fix AgentInstance schema to match backend API (id not agentId)
Backend AgentInfo record uses 'id' but UI schema had 'agentId', causing undefined property access crash in command palette. Regenerated openapi.json and aligned all UI types with live spec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -91,6 +91,30 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "routeId",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "agentId",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "processorType",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "offset",
|
||||
"in": "query",
|
||||
@@ -633,6 +657,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/search/stats": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Search"
|
||||
],
|
||||
"summary": "Aggregate execution stats (P99 latency, active count)",
|
||||
"operationId": "stats",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"*/*": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ExecutionStats"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/executions/{executionId}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -882,6 +927,15 @@
|
||||
"textInErrors": {
|
||||
"type": "string"
|
||||
},
|
||||
"routeId": {
|
||||
"type": "string"
|
||||
},
|
||||
"agentId": {
|
||||
"type": "string"
|
||||
},
|
||||
"processorType": {
|
||||
"type": "string"
|
||||
},
|
||||
"offset": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
@@ -972,6 +1026,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"ExecutionStats": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"p99LatencyMs": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"activeCount": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ExecutionDetail": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
9
ui/src/api/schema.d.ts
vendored
9
ui/src/api/schema.d.ts
vendored
@@ -198,9 +198,14 @@ export interface ExecutionStats {
|
||||
}
|
||||
|
||||
export interface AgentInstance {
|
||||
agentId: string;
|
||||
id: string;
|
||||
name: string;
|
||||
group: string;
|
||||
version: string;
|
||||
routeIds: string[];
|
||||
capabilities: Record<string, boolean>;
|
||||
state: 'LIVE' | 'STALE' | 'DEAD';
|
||||
lastHeartbeat: string;
|
||||
registeredAt: string;
|
||||
lastHeartbeat: string;
|
||||
staleTransitionTime: string | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user