Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

367 B
Raw Blame
// docs: test="swift"
import Cua
import Foundation

let guest = try await Cua.embedded().spacesd(url: "http://10.0.0.5:3211", token: "TOKEN")
let proc = try await guest.spawn(command: SpacesdCommand("cat", stdin: true))
try await proc.writeStdin(data: Data("xyz".utf8))
try await proc.closeStdin()
print(String(decoding: try await proc.wait().stdout, as: UTF8.self))