()
| 1441 | // --- Internal --------------------------------------------------------- |
| 1442 | |
| 1443 | protected buildSnapshot(): AIDevtoolsGenerationSnapshotBase<TOutput> { |
| 1444 | const core = this.getCoreState() |
| 1445 | return { |
| 1446 | input: core.input, |
| 1447 | result: core.result, |
| 1448 | preview: this.createPreview(core.result), |
| 1449 | progress: core.progress, |
| 1450 | status: core.status, |
| 1451 | isLoading: core.isLoading, |
| 1452 | activeRunId: this.activeRunId, |
| 1453 | runs: this.devtoolsRuns, |
| 1454 | ...(core.error ? { error: core.error } : {}), |
| 1455 | } |
| 1456 | } |
| 1457 | |
| 1458 | protected updateActiveRun(patch: GenerationRunPatch<TOutput>): void { |
| 1459 | if (!this.activeRunId) return |
no test coverage detected