Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(lume): default macOS disks to 100GB (#2191)
Francesco Bonacci1eaadcd26fa1
diff --git a/libs/lume/src/Commands/Create.swift b/libs/lume/src/Commands/Create.swiftindex e62d228664..5ec08cc59f 100644--- a/libs/lume/src/Commands/Create.swift+++ b/libs/lume/src/Commands/Create.swift@@ -27,9 +27,9 @@ struct Create: AsyncParsableCommand {var memory: UInt64 = 8 * 1024 * 1024 * 1024@Option(- help: "Disk size (e.g., 50, 50GB, or 51200MB). Numbers without units are treated as GB. Defaults to 50GB.",+ help: "Disk size (e.g., 100, 100GB, or 102400MB). Numbers without units are treated as GB. Defaults to 100GB for macOS and 50GB for Linux.",transform: { try parseSize($0) })- var diskSize: UInt64 = 50 * 1024 * 1024 * 1024+ var diskSize: UInt64?@Option(help: "Display resolution in format WIDTHxHEIGHT. Defaults to 1024x768.")var display: VMDisplayResolution = VMDisplayResolution(string: "1024x768")!@@ -93,6 +93,8 @@ struct Create: AsyncParsableCommand {@MainActorfunc run() async throws {+ let diskSize = diskSize ?? Self.defaultDiskSize(for: os)+// Validate unattended is only used with macOSif unattended != nil && os.lowercased() != "macos" {throw ValidationError("--unattended is only supported for macOS VMs")@@ -143,4 +145,9 @@ struct Create: AsyncParsableCommand {networkMode: parsedNetworkMode)}++ static func defaultDiskSize(for os: String) -> UInt64 {+ let sizeInGB: UInt64 = os.lowercased() == "macos" ? 100 : 50+ return sizeInGB * 1024 * 1024 * 1024+ }}diff --git a/libs/lume/src/Server/MCPServer.swift b/libs/lume/src/Server/MCPServer.swiftindex ce9f80e291..310b89817f 100644--- a/libs/lume/src/Server/MCPServer.swift+++ b/libs/lume/src/Server/MCPServer.swift@@ -171,7 +171,7 @@ final class LumeMCPServer {- Avoid spaces and special characters### Resource Allocation- - Default: 4 CPU cores, 8GB RAM, 64GB disk+ - Default: 4 CPU cores, 8GB RAM, 100GB disk- For builds: Consider 8 CPU cores, 16GB RAM- Disk grows dynamically (sparse files)@@ -493,7 +493,7 @@ final class LumeMCPServer {]),"disk_size": .object(["type": .string("string"),- "description": .string("Disk size, e.g., '64GB' (default: 64GB)")+ "description": .string("Disk size, e.g., '100GB' (default: 100GB)")]),"storage": .object(["type": .string("string"),@@ -803,12 +803,12 @@ final class LumeMCPServer {memorySize = 8 * 1024 * 1024 * 1024 // 8GB default}- // Parse disk size (default 64GB)+ // Parse disk size (default 100GB)let diskSize: UInt64if let diskStr = args?["disk_size"]?.stringValue {diskSize = try parseSize(diskStr)} else {- diskSize = 64 * 1024 * 1024 * 1024 // 64GB default+ diskSize = 100 * 1024 * 1024 * 1024 // 100GB default}// Load unattended config if specifieddiff --git a/libs/lume/src/Utils/CommandDocExtractor.swift b/libs/lume/src/Utils/CommandDocExtractor.swiftindex 487d9fa034..66f4f04fb7 100644--- a/libs/lume/src/Utils/CommandDocExtractor.swift+++ b/libs/lume/src/Utils/CommandDocExtractor.swift@@ -128,7 +128,7 @@ enum CommandDocExtractor {OptionDoc(name: "os", shortName: nil, help: "Operating system to install (macOS or linux)", type: "String", defaultValue: "macOS", isOptional: false),OptionDoc(name: "cpu", shortName: nil, help: "Number of CPU cores", type: "Int", defaultValue: "4", isOptional: false),OptionDoc(name: "memory", shortName: nil, help: "Memory size (e.g., 8GB)", type: "String", defaultValue: "8GB", isOptional: false),- OptionDoc(name: "disk-size", shortName: nil, help: "Disk size (e.g., 50GB)", type: "String", defaultValue: "50GB", isOptional: false),+ OptionDoc(name: "disk-size", shortName: nil, help: "Disk size (e.g., 100GB)", type: "String", defaultValue: "100GB for macOS; 50GB for Linux", isOptional: false),OptionDoc(name: "display", shortName: nil, help: "Display resolution (e.g., 1024x768)", type: "String", defaultValue: "1024x768", isOptional: false),OptionDoc(name: "ipsw", shortName: nil, help: "Path to IPSW file or 'latest' for macOS VMs", type: "String", defaultValue: nil, isOptional: true),OptionDoc(name: "storage", shortName: nil, help: "VM storage location to use", type: "String", defaultValue: nil, isOptional: true),diff --git a/libs/lume/tests/CreateCommandTests.swift b/libs/lume/tests/CreateCommandTests.swiftnew file mode 100644index 0000000000..0990bc2775--- /dev/null+++ b/libs/lume/tests/CreateCommandTests.swift@@ -0,0 +1,13 @@+import Testing++@testable import lume++@Test("create uses a 100GB default disk for macOS")+func createUsesMacOSDefaultDiskSize() {+ #expect(Create.defaultDiskSize(for: "macOS") == 100 * 1024 * 1024 * 1024)+}++@Test("create keeps a 50GB default disk for Linux")+func createUsesLinuxDefaultDiskSize() {+ #expect(Create.defaultDiskSize(for: "linux") == 50 * 1024 * 1024 * 1024)+}