Merge remote-tracking branch 'origin/main'
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

# Conflicts:
#	.project-docs/20-architecture/module-map.md
#	src/pages/ImageCanvas/DesignConversationPane.tsx
#	tests/unit/image-canvas-page.test.tsx
This commit is contained in:
inman
2026-09-07 18:40:36 +08:00
17 changed files with 2437 additions and 105 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;