Skip to content

Commit

Permalink
Orchestra; create sealed class CommandOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 16, 2024
1 parent 0f7b418 commit 675db0a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ import java.io.File
import java.lang.Long.max
import java.nio.file.Files

// TODO(bartkepacia): Use this in onCommandGeneratedOutput.
// Caveat: Large files should not be held in memory, instead they should be directly written to disk.
sealed class CommandOutput {
data class Screenshot(val screenshot: Buffer) : CommandOutput()
data class ScreenRecording(val screenRecording: Buffer) : CommandOutput()
data class AIDefects(val defects: List<Defect>, val screenshot: Buffer) : CommandOutput()
}

class Orchestra(
private val maestro: Maestro,
private val stateDir: File? = null,
Expand Down

0 comments on commit 675db0a

Please sign in to comment.