feat(design): render assistant activity progress

This commit is contained in:
2026-09-07 09:57:21 +08:00
parent da29294979
commit 81b524a02c
9 changed files with 2066 additions and 80 deletions

View File

@@ -448,9 +448,35 @@ export type DesignAssistantDeltaEvent = {
delta: string;
};
export type DesignAssistantProgressStage =
| 'understanding'
| 'reviewing_context'
| 'validating'
| 'composing';
export type DesignAssistantProgressEvent = {
id: string;
type: 'design.assistant.progress';
workspaceId: string;
directionId: string;
clientOperationId: string;
stage: DesignAssistantProgressStage;
message: string;
};
export type DesignCommandTerminalEvent = {
id: string;
type: 'command.completed' | 'command.failed' | 'command.cancelled';
workspaceId: string;
clientOperationId: string;
outcome: 'succeeded' | 'failed' | 'cancelled';
errorCode: string | null;
};
export type DesignDirectionUpdatedEvent = {
id: string;
type: 'design.direction.updated';
clientOperationId: string;
replayed: boolean;
operation: DesignInteractionOutcome;
form: DesignForm;
@@ -480,7 +506,9 @@ export type DesignWorkspaceUpdatedEvent = {
export type DesignWorkspaceEvent =
| DesignSessionSnapshotEvent
| DesignAssistantProgressEvent
| DesignAssistantDeltaEvent
| DesignCommandTerminalEvent
| DesignDirectionUpdatedEvent
| DesignQuoteBlockedEvent
| DesignWorkspaceUpdatedEvent;