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
fix(cua-bench): restore b7148878 registry metadata (#3549)
Wu Shuwen49677ceeba38
diff --git a/libs/cua-bench/cua_bench/tests/test_dataset_metadata.py b/libs/cua-bench/cua_bench/tests/test_dataset_metadata.pynew file mode 100644index 0000000000..08253ee6b1--- /dev/null+++ b/libs/cua-bench/cua_bench/tests/test_dataset_metadata.py@@ -0,0 +1,17 @@+import tomllib+from pathlib import Path+++DATASETS_DIR = Path(__file__).resolve().parents[2] / "datasets"+++def test_all_dataset_pyprojects_are_valid_toml():+ invalid = []+ for pyproject in sorted(DATASETS_DIR.glob("*/*/pyproject.toml")):+ try:+ with pyproject.open("rb") as file:+ tomllib.load(file)+ except tomllib.TOMLDecodeError as error:+ invalid.append(f"{pyproject.relative_to(DATASETS_DIR)}: {error}")++ assert not invalid, "Invalid dataset metadata:\n" + "\n".join(invalid)diff --git a/libs/cua-bench/datasets/cua-bench-kicad/b7148878/pyproject.toml b/libs/cua-bench/datasets/cua-bench-kicad/b7148878/pyproject.tomlindex a858cc10f0..ecda0b7572 100644--- a/libs/cua-bench/datasets/cua-bench-kicad/b7148878/pyproject.toml+++ b/libs/cua-bench/datasets/cua-bench-kicad/b7148878/pyproject.toml@@ -9,7 +9,7 @@ authors = [requires-python = ">=3.11"[tool.cua-bench]-description = "Design a KiCad-style schematic of a two opamp circuit that converts a bipolar +/- 10 V analog signal to a positive 0 to 5V analog signal that can be delivered to an ADC or microcontroller.\n\n\t• The first opamp (U1) buffers the input signal and is configured as a follower: \n\t\t○ Pin 1 is directly connected to overall circuit input.\n\t\t○ Pin 2 is connected directly to Pin 5\n\t\t○ Pin 3 is connected to a +15 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 4 is connected to a -15 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 5 is also connected to a 100 kOhm resistor (R1).\n\t• The second opamp (U2) is configured to provide voltage division and shifting.\n\t\t○ Pin 1 is connected to the shift voltage. This is generated by connecting a 4.096 Vdc reference to a 10 kOhm resistor (R3) followed by a 162 ohm resistor (R4). The other end of R4 is connected in parallel to a 10 kOhm resistor, 1 uF unpolarized capacitor, and Pin 1.\n\t\t○ Pin 2 is connected to the other side of R1 mentioned above.\n\t\t○ Pin 2 is also connected to a parallel combination of a 23 kOhm resistor (R2) and a 43 pF unpolarized capacitor (C1). The other end of this combination is connected to Pin 5\n\t\t○ Pin 3 is connected to a +5 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 4 is connected to ground.\n\t\t○ Pin 5 is also connected to a 10 kOhm load, which provides a path to ground during startup transients.\n\t\t○ Pin 5 also provides the overall circuit output.\n\t• Reference: This circuit is modified from \"Analog Engineer\"+description = "Design a KiCad-style schematic of a two opamp circuit that converts a bipolar +/- 10 V analog signal to a positive 0 to 5V analog signal that can be delivered to an ADC or microcontroller.\n\n\t• The first opamp (U1) buffers the input signal and is configured as a follower: \n\t\t○ Pin 1 is directly connected to overall circuit input.\n\t\t○ Pin 2 is connected directly to Pin 5\n\t\t○ Pin 3 is connected to a +15 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 4 is connected to a -15 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 5 is also connected to a 100 kOhm resistor (R1).\n\t• The second opamp (U2) is configured to provide voltage division and shifting.\n\t\t○ Pin 1 is connected to the shift voltage. This is generated by connecting a 4.096 Vdc reference to a 10 kOhm resistor (R3) followed by a 162 ohm resistor (R4). The other end of R4 is connected in parallel to a 10 kOhm resistor, 1 uF unpolarized capacitor, and Pin 1.\n\t\t○ Pin 2 is connected to the other side of R1 mentioned above.\n\t\t○ Pin 2 is also connected to a parallel combination of a 23 kOhm resistor (R2) and a 43 pF unpolarized capacitor (C1). The other end of this combination is connected to Pin 5\n\t\t○ Pin 3 is connected to a +5 Vdc power supply and a 0.1 uF decoupling capacitor.\n\t\t○ Pin 4 is connected to ground.\n\t\t○ Pin 5 is also connected to a 10 kOhm load, which provides a path to ground during startup transients.\n\t\t○ Pin 5 also provides the overall circuit output.\n\t• Reference: This circuit is modified from \"Analog Engineer\""difficulty = "medium"category = "eda"tags = ["kicad", "schematic", "eda"]