fix(ui): surface declarative startup failures

This commit is contained in:
Turtle
2026-07-17 16:44:25 +08:00
parent 1119c537d0
commit 12b7ac67ba
20 changed files with 484 additions and 72 deletions

View File

@@ -71,6 +71,8 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
'register(agent: Agent): () => void',
'enter(agent: Agent): () => void',
'announce(agent: Agent): void',
'reportStartFailure(id: AgentId, error: Error): () => void',
'getStartFailure(id: AgentId): Error | undefined',
'get(id: AgentId): Agent | undefined',
'list(): Agent[]',
],
@@ -317,6 +319,12 @@ export const EVENT_API: readonly EventApiEntry[] = [
signature: '\'agent/session-start\'(this: Scoped<Agent>, agent: Agent, source: SessionStartSource): void',
summary: 'The session lifecycle began, once before the first turn.',
},
{
name: 'agent/start-failed',
mode: 'emit',
signature: '\'agent/start-failed\'(agentId: AgentId, error: Error): void',
summary: 'Declarative startup failed before an agent could be published.',
},
{
name: 'agent/status',
mode: 'emit',