feat: integrate learning module
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

This commit is contained in:
inman
2026-08-16 20:52:16 +08:00
parent 26b52d76e3
commit 01bee3188b
107 changed files with 6318 additions and 12063 deletions

View File

@@ -951,22 +951,14 @@ export class WorksSquareDesignWorkspace implements DesignWorkspaceModule {
async confirmGeneration(input: DesignConfirmGenerationInput): Promise<DesignConversation> {
const agentSessionId = await this.getAgentSessionId(input.workspaceId, input.conversationId);
const action = input.finalPrompt === undefined || input.generationParameters === undefined
? {
type: 'confirm_generation' as const,
quote_id: input.quoteId,
}
: {
type: 'confirm_generation' as const,
quote_id: input.quoteId,
final_prompt: input.finalPrompt,
aspect_ratio: input.generationParameters.aspectRatio,
generation_parameters: {
model: input.generationParameters.model,
resolution: input.generationParameters.resolution,
duration_seconds: input.generationParameters.durationSeconds,
},
};
// Prompt and generation parameters are persisted through the quote PATCH
// before confirmation. The Agent Runtime confirmation command only owns
// the immutable quote id and its aspect-ratio consistency check.
const action = {
type: 'confirm_generation' as const,
quote_id: input.quoteId,
aspect_ratio: input.generationParameters?.aspectRatio,
};
return this.executeAgentTurn({
workspaceId: input.workspaceId,
conversationId: input.conversationId,