reeval-python 0.30.0__py3-none-any.whl → 0.31.0__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.
reeval_python/_wire.py CHANGED
@@ -419,46 +419,6 @@ class AttemptStart(TypedDict):
419
419
  type: Literal["start"]
420
420
 
421
421
 
422
- # The host variable holding a Boat API key, made by `secret.fromEnv`.
423
- BoatApiKey = TypedDict(
424
- "BoatApiKey",
425
- {
426
- "from": "str",
427
- "kind": "Literal[\"secret\"]",
428
- },
429
- )
430
-
431
-
432
- # The host variable with the Boat API key, read on the host only.
433
- BoatSandboxDescriptorApiKey = TypedDict(
434
- "BoatSandboxDescriptorApiKey",
435
- {
436
- "from": "str",
437
- "kind": "Literal[\"secret\"]",
438
- },
439
- )
440
-
441
-
442
- # A boat.dev VM per attempt, made by `boat()` from `reeval/sandbox/boat`.
443
- BoatSandboxDescriptor = TypedDict(
444
- "BoatSandboxDescriptor",
445
- {
446
- "apiKey": "BoatSandboxDescriptorApiKey",
447
- "attemptsPerMachine": "NotRequired[int]",
448
- "dockerfile": "NotRequired[str]",
449
- "from": "NotRequired[str]",
450
- "id": "NotRequired[str]",
451
- "image": "NotRequired[str]",
452
- "install": "NotRequired[list[InstallStep]]",
453
- "kind": "Literal[\"boat\"]",
454
- "maxConcurrent": "NotRequired[float]",
455
- "prefix": "str",
456
- "reuse": "NotRequired[bool]",
457
- "type": "NotRequired[Literal[\"small\", \"default\", \"large\", \"xlarge\"]]",
458
- },
459
- )
460
-
461
-
462
422
  class CaptureConsoleItem(TypedDict):
463
423
  level: Literal["error", "warning", "info", "log", "debug"]
464
424
  source: str
@@ -614,21 +574,27 @@ class ClaudeCodeHarnessDescriptor(TypedDict):
614
574
 
615
575
 
616
576
  # A VM per attempt from reeval's own VM service, made by `cloud()` from `reeval/internal/vm`.
617
- class CloudSandboxDescriptor(TypedDict):
618
- # The attempts one machine runs at once, each as a user of its own, as `boat({
619
- # attemptsPerMachine })` does. Default 1.
620
- attemptsPerMachine: NotRequired[int]
621
- # Cell id; defaults to `cloud`, or `cloud:<size>` with a `size`.
622
- id: NotRequired[str]
623
- kind: Literal["cloud"]
624
- # The most attempts on cloud VMs at once, across the run: machines times
625
- # `attemptsPerMachine`.
626
- maxConcurrent: NotRequired[float]
627
- # A machine takes another of the run's attempts once one ends, instead of being deleted, as
628
- # `boat({ reuse })` does. Default false, one attempt per slot.
629
- reuse: NotRequired[bool]
630
- # The machine size. Default `small`.
631
- size: NotRequired[Literal["small", "medium", "large", "xlarge"]]
577
+ CloudSandboxDescriptor = TypedDict(
578
+ "CloudSandboxDescriptor",
579
+ {
580
+ "attemptsPerMachine": "NotRequired[int]",
581
+ "capabilities": "NotRequired[list[str]]",
582
+ "cpus": "NotRequired[float]",
583
+ "dockerfile": "NotRequired[str]",
584
+ "from": "NotRequired[str]",
585
+ "id": "NotRequired[str]",
586
+ "image": "NotRequired[str]",
587
+ "install": "NotRequired[list[InstallStep]]",
588
+ "kind": "Literal[\"cloud\"]",
589
+ "maxConcurrent": "NotRequired[float]",
590
+ "memory": "NotRequired[str | int]",
591
+ "pids": "NotRequired[int]",
592
+ "reuse": "NotRequired[bool]",
593
+ "root": "NotRequired[bool]",
594
+ "size": "NotRequired[Literal[\"small\", \"medium\", \"large\", \"xlarge\"]]",
595
+ "swap": "NotRequired[str | int]",
596
+ },
597
+ )
632
598
 
633
599
 
634
600
  # OpenAI's Codex CLI through `@reeval/harness-codex` (`codex exec --json`), made by `codex()`.
@@ -699,46 +665,6 @@ class CursorHarnessDescriptor(TypedDict):
699
665
  startTimeout: NotRequired[Duration]
700
666
 
701
667
 
702
- # The host variable holding a Daytona API key, made by `secret.fromEnv`.
703
- DaytonaApiKey = TypedDict(
704
- "DaytonaApiKey",
705
- {
706
- "from": "str",
707
- "kind": "Literal[\"secret\"]",
708
- },
709
- )
710
-
711
-
712
- # The host variable with the Daytona API key, read on the host only.
713
- DaytonaSandboxDescriptorApiKey = TypedDict(
714
- "DaytonaSandboxDescriptorApiKey",
715
- {
716
- "from": "str",
717
- "kind": "Literal[\"secret\"]",
718
- },
719
- )
720
-
721
-
722
- # A Daytona sandbox per attempt, made by `daytona()` from `reeval/sandbox/daytona`.
723
- DaytonaSandboxDescriptor = TypedDict(
724
- "DaytonaSandboxDescriptor",
725
- {
726
- "apiKey": "DaytonaSandboxDescriptorApiKey",
727
- "attemptsPerMachine": "NotRequired[int]",
728
- "dockerfile": "NotRequired[str]",
729
- "from": "NotRequired[str]",
730
- "id": "NotRequired[str]",
731
- "image": "NotRequired[str]",
732
- "install": "NotRequired[list[InstallStep]]",
733
- "kind": "Literal[\"daytona\"]",
734
- "maxConcurrent": "NotRequired[float]",
735
- "prefix": "str",
736
- "reuse": "NotRequired[bool]",
737
- "size": "NotRequired[Literal[\"small\", \"medium\", \"large\"]]",
738
- },
739
- )
740
-
741
-
742
668
  # An eval file's top-level groups, evals and todos, in declaration order.
743
669
  class DeclarationTree(TypedDict):
744
670
  children: list[DeclaredNode]
@@ -788,6 +714,10 @@ DeclaredMode: TypeAlias = "Literal[\"run\", \"skip\", \"only\"]"
788
714
  DeclaredNode: TypeAlias = "DeclaredEval | DeclaredGroup | DeclaredTodo"
789
715
 
790
716
 
717
+ # A sandbox an eval, environment, profile or config sets.
718
+ DeclaredSandbox: TypeAlias = "FakeSandboxDescriptor | DockerSandboxDescriptor | TartSandboxDescriptor | CloudSandboxDescriptor"
719
+
720
+
791
721
  # An eval's own source as the SDK that declared it reads it: sha256 (hex) of its body's source
792
722
  # text, and a case's data as canonical JSON (object keys sorted, no whitespace, non-ASCII
793
723
  # characters as themselves). reeval hashes the case itself, with its secrets masked.
@@ -912,7 +842,7 @@ class EnvironmentSpec(TypedDict):
912
842
  # Where the attempt runs: `docker()` or `fakeSandbox()`. A child's `extend` /
913
843
  # `extendEnvironment` replaces the parent's entirely when it sets one; install is not merged
914
844
  # onto the parent image.
915
- sandbox: NotRequired[SandboxDescriptor]
845
+ sandbox: NotRequired[DeclaredSandbox]
916
846
  # Shell commands run in every attempt before the agent starts; a child's run after its
917
847
  # parent's.
918
848
  setup: NotRequired[list[SetupStep]]
@@ -1000,7 +930,7 @@ class EvalOptionsDataCompare(TypedDict):
1000
930
  runs: NotRequired[float | EvalOptionsDataCompareRunsBestOf]
1001
931
  # The default machine when the resolved environment omits `sandbox`. Cascades like
1002
932
  # `harnesses`. Not an environment: it does not invent skills, files or a name.
1003
- sandbox: NotRequired[BoatSandboxDescriptor | CloudSandboxDescriptor | DaytonaSandboxDescriptor | DockerSandboxDescriptor | FakeSandboxDescriptor | TartSandboxDescriptor]
933
+ sandbox: NotRequired[CloudSandboxDescriptor | DockerSandboxDescriptor | FakeSandboxDescriptor | TartSandboxDescriptor]
1004
934
  # When each attempt's workspace is copied into its directory in `.reeval/runs`: `true` after
1005
935
  # the checks, `'turns'` after each `c.send` too, `false` never. Default `true`.
1006
936
  snapshot: NotRequired[SnapshotOptions | Literal["turns"] | bool]
@@ -1076,7 +1006,7 @@ class EvalOptionsData2(TypedDict):
1076
1006
  runs: NotRequired[float | EvalOptionsData2RunsBestOf]
1077
1007
  # The default machine when the resolved environment omits `sandbox`. Cascades like
1078
1008
  # `harnesses`. Not an environment: it does not invent skills, files or a name.
1079
- sandbox: NotRequired[BoatSandboxDescriptor | CloudSandboxDescriptor | DaytonaSandboxDescriptor | DockerSandboxDescriptor | FakeSandboxDescriptor | TartSandboxDescriptor]
1009
+ sandbox: NotRequired[CloudSandboxDescriptor | DockerSandboxDescriptor | FakeSandboxDescriptor | TartSandboxDescriptor]
1080
1010
  # When each attempt's workspace is copied into its directory in `.reeval/runs`: `true` after
1081
1011
  # the checks, `'turns'` after each `c.send` too, `false` never. Default `true`.
1082
1012
  snapshot: NotRequired[SnapshotOptions | Literal["turns"] | bool]
@@ -1808,9 +1738,6 @@ class QuestionOptions(TypedDict):
1808
1738
  model: NotRequired[str]
1809
1739
 
1810
1740
 
1811
- SandboxDescriptor: TypeAlias = "FakeSandboxDescriptor | DockerSandboxDescriptor | TartSandboxDescriptor | BoatSandboxDescriptor | DaytonaSandboxDescriptor | CloudSandboxDescriptor"
1812
-
1813
-
1814
1741
  # A host environment variable, redacted everywhere reeval writes and recorded by name only. Made
1815
1742
  # by the `secret` helper of `defineEnvironment` and `defineConfig` callbacks.
1816
1743
  Secret = TypedDict(
@@ -2248,7 +2175,6 @@ WebEventType: TypeAlias = "Literal[\"web-search\", \"web-fetch\"]"
2248
2175
  # reeval's camelCase keys: the SDK takes each in snake_case too.
2249
2176
  CAMEL_KEYS: frozenset[str] = frozenset(
2250
2177
  {
2251
- "apiKey",
2252
2178
  "atMs",
2253
2179
  "attemptsPerMachine",
2254
2180
  "bestOf",
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "0.30.0",
2
+ "version": "0.31.0",
3
3
  "binaries": {
4
4
  "linux-x64": {
5
- "name": "reeval-0.30.0-linux-x64",
6
- "sha256": "c84136962db27ce64f5ca434652fca4fef1efb7c8d1ce9f4609588b56d10cad7",
7
- "size": 116291760
5
+ "name": "reeval-0.31.0-linux-x64",
6
+ "sha256": "e6185ec29a46cc41159665838bfac4edc185cbae69c1a07e8f7e8edbd7872c97",
7
+ "size": 116316336
8
8
  },
9
9
  "linux-arm64": {
10
- "name": "reeval-0.30.0-linux-arm64",
11
- "sha256": "e57df5de10ccde068f94cf54a89593a60bd74d625b4ca7dbaa0a2e09ef3854a3",
10
+ "name": "reeval-0.31.0-linux-arm64",
11
+ "sha256": "e0968e190f3ffc1fba13aee75b013800efbf5861b8cdb02c24741a103c64ec7a",
12
12
  "size": 116378616
13
13
  },
14
14
  "linux-x64-musl": {
15
- "name": "reeval-0.30.0-linux-x64-musl",
16
- "sha256": "059b5f6d5eb77632a99a136af7302e84ac547e8bdda6b4df9581069566789d1a",
17
- "size": 109880744
15
+ "name": "reeval-0.31.0-linux-x64-musl",
16
+ "sha256": "ddb13d10634d7e929e1804e9469cae5bcfbc13a08138c7114fe9af18abdbb89e",
17
+ "size": 109905320
18
18
  },
19
19
  "linux-arm64-musl": {
20
- "name": "reeval-0.30.0-linux-arm64-musl",
21
- "sha256": "2127c1569b901d4cc5f66a8a6b823876e6f947bda72a649f7f0bd76a308dcb1a",
20
+ "name": "reeval-0.31.0-linux-arm64-musl",
21
+ "sha256": "09239a80a60f77fed0f92992d6d1950574e21035c57aa48a96b7208e46bc2279",
22
22
  "size": 108797032
23
23
  },
24
24
  "darwin-x64": {
25
- "name": "reeval-0.30.0-darwin-x64",
26
- "sha256": "fb78a18e884575500a40e66a2bc276c0dab2aa2b970d7a0bc3350c73811e6182",
27
- "size": 105328096
25
+ "name": "reeval-0.31.0-darwin-x64",
26
+ "sha256": "866fc5fe554d67f044cc315ed57edf4314a25d89a9e07f3e1740b99b6f480f6e",
27
+ "size": 105360864
28
28
  },
29
29
  "darwin-arm64": {
30
- "name": "reeval-0.30.0-darwin-arm64",
31
- "sha256": "78d75e9dd64eafb17b43ce0aecdf83c3c86699335cd4b28009d036e25cde85b5",
32
- "size": 96375650
30
+ "name": "reeval-0.31.0-darwin-arm64",
31
+ "sha256": "9d60ad4c5bb2745a555936543205190a136eab02b17e774033ee34b1c9d20818",
32
+ "size": 96408674
33
33
  },
34
34
  "windows-x64": {
35
- "name": "reeval-0.30.0-windows-x64.exe",
36
- "sha256": "77e3a52b3266a12e60be470c2faa2a4c938cfe27d5105d73b7420a411ac356d1",
37
- "size": 122442240
35
+ "name": "reeval-0.31.0-windows-x64.exe",
36
+ "sha256": "9a69c8d614edf557dd1f825e9c016500b9d5ca42dbc74de82abe9f5e8904bcc0",
37
+ "size": 122467328
38
38
  },
39
39
  "linux-x64-baseline": {
40
- "name": "reeval-0.30.0-linux-x64-baseline",
41
- "sha256": "c43aa6ecdba660d1c16f72583fe461139bd677523cd5b37b3afb8f2b9ba320a2",
42
- "size": 116291760
40
+ "name": "reeval-0.31.0-linux-x64-baseline",
41
+ "sha256": "1709de67f8dae7951e0da8cf93db81eba0aff50c12744d279e10aa2affdd9e42",
42
+ "size": 116316336
43
43
  },
44
44
  "linux-x64-musl-baseline": {
45
- "name": "reeval-0.30.0-linux-x64-musl-baseline",
46
- "sha256": "a88286643db84775a77552b2f4ac4b442eb17a2103ba4a434baa7a3eba871f9c",
47
- "size": 109880744
45
+ "name": "reeval-0.31.0-linux-x64-musl-baseline",
46
+ "sha256": "750f5c1d577cec822ceba9cb30650226f68b6aa080c21e535f87dfa297a37e24",
47
+ "size": 109905320
48
48
  },
49
49
  "windows-x64-baseline": {
50
- "name": "reeval-0.30.0-windows-x64-baseline.exe",
51
- "sha256": "3f20d1d44a62ea5fdaeb0910827d5878e13d4681d4f65cb92635bb30ce47b0e3",
52
- "size": 122442240
50
+ "name": "reeval-0.31.0-windows-x64-baseline.exe",
51
+ "sha256": "1162962ea28af21ebdee329b3a833f5f893a12f481bb1978d7dc89a1c43f741f",
52
+ "size": 122467328
53
53
  }
54
54
  }
55
55
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reeval-python
3
- Version: 0.30.0
3
+ Version: 0.31.0
4
4
  Summary: Python authoring SDK for reeval (*.eval.py eval files)
5
5
  Project-URL: Homepage, https://reeval.ai
6
6
  Project-URL: Repository, https://github.com/reeval-ai/reeval
@@ -1,8 +1,8 @@
1
1
  reeval_python/__init__.py,sha256=R7ALlyTIdakTpdIis7uLcuM2oI21H7lnGUjYB0uRsNY,1435
2
2
  reeval_python/__main__.py,sha256=opVNjZHR3dLJnP_p528E5oz8E-oow6606wwPZ0L0Mto,282
3
- reeval_python/_wire.py,sha256=5wDY8dsKpu9eLBGUx2OOVK0hisJriehaPzSSGR58JgE,97633
3
+ reeval_python/_wire.py,sha256=cHezCgcPGu6oinR5HbOof2sLAQQcHSKGXgxssnbY3Ps,95297
4
4
  reeval_python/aio.py,sha256=yyi09fi_Bt7N704HRcRJLTGmNHcxyD3bFwevPcMa_Z4,421
5
- reeval_python/binaries.json,sha256=yaUIgZVhWfA_AurDqIr0nb8mgO4nIP7wCPaYhIsB7II,1911
5
+ reeval_python/binaries.json,sha256=LYyOf24bJEjbMzgziB2P5aESh2DHlJcyJStGdY3oL2k,1911
6
6
  reeval_python/checks.py,sha256=gYSpLMzMMvZ_neV5siB9cLpUfOwSbax6tj-N8N57NNE,11078
7
7
  reeval_python/cli.py,sha256=J7s5eYCH61laBMzzGIUpIaXpsJ1tKNNcXhc_zQEL10M,18953
8
8
  reeval_python/context.py,sha256=YpZXdBRFCzfOAHIE_B9u7pOEffzWReqUpSRxdo5TMGI,19687
@@ -15,8 +15,8 @@ reeval_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  reeval_python/runner.py,sha256=bNwRfHQdeM0PC113G5d0RzFRtHcFMMLj8bE3cnoZKII,21070
16
16
  reeval_python/types.py,sha256=klDaYvx5Wbe9xvIO26xxDzevDOrYcKS48QV-t6R3A0U,3468
17
17
  reeval_python/wire.py,sha256=-l9FAC7-fo4G1U9rZw47Nw44z-spHcs4Kck5IFNQZFY,7275
18
- reeval_python-0.30.0.dist-info/METADATA,sha256=3q065s23hznw6y_X7kJIcdiL9y-ilr9Pp_7cV0GM2CM,10587
19
- reeval_python-0.30.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
20
- reeval_python-0.30.0.dist-info/entry_points.txt,sha256=174mqsaUhMzSZlbOUgyM8P_YN-VXmrGcU8F3H-6Eu7g,50
21
- reeval_python-0.30.0.dist-info/licenses/LICENSE,sha256=ksfhGdGZnBIw2o77d0o71LHzgK-bRGUx1qS6nzYMjK4,11348
22
- reeval_python-0.30.0.dist-info/RECORD,,
18
+ reeval_python-0.31.0.dist-info/METADATA,sha256=Vv3wOS2SzuMInXb9S3xCdKSEGb7Z9CSUbmIdozLCorw,10587
19
+ reeval_python-0.31.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
20
+ reeval_python-0.31.0.dist-info/entry_points.txt,sha256=174mqsaUhMzSZlbOUgyM8P_YN-VXmrGcU8F3H-6Eu7g,50
21
+ reeval_python-0.31.0.dist-info/licenses/LICENSE,sha256=ksfhGdGZnBIw2o77d0o71LHzgK-bRGUx1qS6nzYMjK4,11348
22
+ reeval_python-0.31.0.dist-info/RECORD,,