cua-computer 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -262,11 +262,28 @@ class WinSandboxProvider(BaseVMProvider):
262
262
  self.logger.info(f"Shared directories: {len(folder_mappers)}")
263
263
 
264
264
  # Create the sandbox without logon script
265
- sandbox = winsandbox.new_sandbox(
266
- memory_mb=str(memory_mb),
267
- networking=networking,
268
- folder_mappers=folder_mappers
269
- )
265
+ try:
266
+ # Try with memory_mb parameter (newer pywinsandbox version)
267
+ sandbox = winsandbox.new_sandbox(
268
+ memory_mb=str(memory_mb),
269
+ networking=networking,
270
+ folder_mappers=folder_mappers
271
+ )
272
+ except TypeError as e:
273
+ if "memory_mb" in str(e):
274
+ # Fallback for older pywinsandbox version that doesn't support memory_mb
275
+ self.logger.warning(
276
+ f"Your pywinsandbox version doesn't support memory_mb parameter. "
277
+ f"Using default memory settings. To use custom memory settings, "
278
+ f"please update pywinsandbox: pip install -U git+https://github.com/karkason/pywinsandbox.git"
279
+ )
280
+ sandbox = winsandbox.new_sandbox(
281
+ networking=networking,
282
+ folder_mappers=folder_mappers
283
+ )
284
+ else:
285
+ # Re-raise if it's a different TypeError
286
+ raise
270
287
 
271
288
  # Store the sandbox
272
289
  self._active_sandboxes[name] = sandbox
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-computer
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Computer-Use Interface (CUI) framework powering Cua
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.11
@@ -3,12 +3,13 @@ computer/computer.py,sha256=bHo7pdJoz8p3YSERYvdY7aLYdqYdiXbPVQydirlhwkM,41390
3
3
  computer/diorama_computer.py,sha256=jOP7_eXxxU6SMIoE25ni0YXPK0E7p5sZeLKmkYLh6G8,3871
4
4
  computer/helpers.py,sha256=iHkO2WhuCLc15g67kfMnpQWxfNRlz2YeJNEvYaL9jlM,1826
5
5
  computer/interface/__init__.py,sha256=xQvYjq5PMn9ZJOmRR5mWtONTl_0HVd8ACvW6AQnzDdw,262
6
- computer/interface/base.py,sha256=IsSEr8X7dFhnAQSXm01McKz6NepxTWKZhvCHj86OIgA,8870
6
+ computer/interface/base.py,sha256=-_aZGAWV0em0gaRp4YzqPSmImjBGXRLesQta6AesEiM,9295
7
7
  computer/interface/factory.py,sha256=Eas5u9sOZ8FegwX51dP9M37oZBjy2EiVcmhTPc98L3Y,1639
8
- computer/interface/linux.py,sha256=W0ajYhrgRtqnJA4FOSwt5Q4CXfTwm3JarjyloKyGU80,30601
9
- computer/interface/macos.py,sha256=JIXjyCA8mYRIeAh07F2pHQHlD5F0yCyPP-89L359xoo,30981
8
+ computer/interface/generic.py,sha256=QHF--L9J1npwbjB8PTKWetqR_y-glqNQ58p15ZcEJMk,34506
9
+ computer/interface/linux.py,sha256=fDm2OwqfeeO72HwctboPEE5AwPTo2XBRDyYkwQxMyt0,417
10
+ computer/interface/macos.py,sha256=m1aRn3BCbA95gPoO-WSP9NPwruT4BT5DZzxY10UuBI0,675
10
11
  computer/interface/models.py,sha256=kPpmoO-TSxSr95f5ELuTpobY-SckG1Sn9pE8zz1t008,3605
11
- computer/interface/windows.py,sha256=xg2XvlrVH_a8W9lsIRDsMe7SDZ422dooXhGbBSfovgw,30575
12
+ computer/interface/windows.py,sha256=Ww4YKVzTvI-TeQvmZFY8HnPfau0Og4jBw0TtQvwJL30,423
12
13
  computer/logger.py,sha256=UVvnmZGOWVF9TCsixEbeQnDZ3wBPAJ2anW3Zp-MoJ8Y,2896
13
14
  computer/models.py,sha256=iFNM1QfZArD8uf66XJXb2EDIREsfrxqqA5_liLBMfrE,1188
14
15
  computer/providers/__init__.py,sha256=hS9lLxmmHa1u82XJJ_xuqSKipClsYUEPx-8OK9ogtVg,194
@@ -22,7 +23,7 @@ computer/providers/lume_api.py,sha256=i9dXJGrUhfA49VSY4p6_O6_AzeLNlRppG7jbM3jIJm
22
23
  computer/providers/lumier/__init__.py,sha256=qz8coMA2K5MVoqNC12SDXJe6lI7z2pn6RHssUOMY5Ug,212
23
24
  computer/providers/lumier/provider.py,sha256=BDgnTuik42H9OuCmnd-1TxM8p4vl_ahfrhNbi0FNCMM,46644
24
25
  computer/providers/winsandbox/__init__.py,sha256=WsMVBBa_qFfqVHPQzg6j4PegQwLiIudkzUedpYkrfXU,244
25
- computer/providers/winsandbox/provider.py,sha256=4D5C6VGmxyNdsDqojzO4O9Nn2GCOVmN6BT78euF-OSU,18374
26
+ computer/providers/winsandbox/provider.py,sha256=vduDKUB1OuimvjJdUus9RQY8gv3XQfFgVS8fKOzHVME,19306
26
27
  computer/providers/winsandbox/setup_script.ps1,sha256=8aGwR7PEvqnYzCNyXTDKIwJ6pYrwyWYLRjmNT_jYIwQ,4623
27
28
  computer/telemetry.py,sha256=jHM3LJAgO2ltN3wlQ6mqCPUcmlS8F955KI70no-T3xA,3730
28
29
  computer/ui/__init__.py,sha256=pmo05ek9qiB_x7DPeE6Vf_8RsIOqTD0w1dBLMHfoOnY,45
@@ -30,7 +31,7 @@ computer/ui/__main__.py,sha256=Jwy2oC_mGZLN0fX7WLqpjaQkbXMeM3ISrUc8WSRUG0c,284
30
31
  computer/ui/gradio/__init__.py,sha256=5_KimixM48-X74FCsLw7LbSt39MQfUMEL8-M9amK3Cw,117
31
32
  computer/ui/gradio/app.py,sha256=5_AG2dQR9RtFrGQNonScAw64rlswclKW26tYlFBdXtM,70396
32
33
  computer/utils.py,sha256=zY50NXB7r51GNLQ6l7lhG_qv0_ufpQ8n0-SDhCei8m4,2838
33
- cua_computer-0.3.0.dist-info/METADATA,sha256=Y6DGgGTjcjbwCkYwkUTs5BHxxRBPkiBFCNB43w7mI7I,5802
34
- cua_computer-0.3.0.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
35
- cua_computer-0.3.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
36
- cua_computer-0.3.0.dist-info/RECORD,,
34
+ cua_computer-0.3.1.dist-info/METADATA,sha256=joQe1JWyKUgu2nke_gVm9xsQvMKm3pleZKoxZheMq7I,5802
35
+ cua_computer-0.3.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
36
+ cua_computer-0.3.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
37
+ cua_computer-0.3.1.dist-info/RECORD,,