envloop-cli 2.2.0__tar.gz → 2.4.0__tar.gz

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.
Files changed (81) hide show
  1. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/PKG-INFO +11 -6
  2. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/README.pypi.md +9 -4
  3. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/assets.py +4 -3
  4. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/client.py +1 -1
  5. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/execution_content.py +5 -0
  6. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/resource_cli.py +8 -3
  7. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/cli.py +2 -2
  8. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/client.py +3 -3
  9. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/inference.py +2 -2
  10. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/train_runner_cli.py +2 -2
  11. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/pyproject.toml +4 -4
  12. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/.gitignore +0 -0
  13. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/__init__.py +0 -0
  14. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/_optional.py +0 -0
  15. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/auth_cli.py +0 -0
  16. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/auth_login.py +0 -0
  17. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/auth_workspace.py +0 -0
  18. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/cli.py +0 -0
  19. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/cli_errors.py +0 -0
  20. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/cli_output.py +0 -0
  21. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/client.py +0 -0
  22. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/config.py +0 -0
  23. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/downloads.py +0 -0
  24. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/http.py +0 -0
  25. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/lifecycle_cli.py +0 -0
  26. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/navigation_resources.py +0 -0
  27. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/profile_secrets.py +0 -0
  28. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/resource_cli.py +0 -0
  29. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/resources.py +0 -0
  30. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/terminal.py +0 -0
  31. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/utils/__init__.py +0 -0
  32. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/envloop/utils/logging.py +0 -0
  33. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/__init__.py +0 -0
  34. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/checkpoint_download.py +0 -0
  35. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/checkpoint_upload.py +0 -0
  36. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/cli.py +0 -0
  37. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/cli_output.py +0 -0
  38. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/dataset_upload.py +0 -0
  39. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/direct_artifact.py +0 -0
  40. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/direct_checkpoint.py +0 -0
  41. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/direct_publication.py +0 -0
  42. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/direct_storage.py +0 -0
  43. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/direct_worker_artifact.py +0 -0
  44. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/http.py +0 -0
  45. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/navigation_resources.py +0 -0
  46. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/profile_updates.py +0 -0
  47. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/publication_cli.py +0 -0
  48. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/publications.py +0 -0
  49. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/r2_upload.py +0 -0
  50. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/recipe_packages.py +0 -0
  51. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/recipes.py +0 -0
  52. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/runner_packages.py +0 -0
  53. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/tags.py +0 -0
  54. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/transfer.py +0 -0
  55. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/asset/envloop_asset/upload_strategy.py +0 -0
  56. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/chat/envloop_chat/__init__.py +0 -0
  57. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/chat/envloop_chat/cli.py +0 -0
  58. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/chat/envloop_chat/client.py +0 -0
  59. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/__init__.py +0 -0
  60. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/cli_output.py +0 -0
  61. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/decision.py +0 -0
  62. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/http.py +0 -0
  63. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/job_cost.py +0 -0
  64. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/job_logs.py +0 -0
  65. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/job_spec_cli.py +0 -0
  66. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/named_profile.py +0 -0
  67. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/navigation_resources.py +0 -0
  68. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/resource_cli.py +0 -0
  69. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/resources.py +0 -0
  70. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/runtime_params.py +0 -0
  71. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/sandbox.py +0 -0
  72. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/train.py +0 -0
  73. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/train_log_cli.py +0 -0
  74. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/train_metrics_cli.py +0 -0
  75. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/train_progress.py +0 -0
  76. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/experiment/envloop_experiment/training/__init__.py +0 -0
  77. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/rsi-loop/envloop_rsi_loop/__init__.py +0 -0
  78. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/rsi-loop/envloop_rsi_loop/cli.py +0 -0
  79. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/rsi-loop/envloop_rsi_loop/cli_output.py +0 -0
  80. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/rsi-loop/envloop_rsi_loop/loop_cli.py +0 -0
  81. {envloop_cli-2.2.0 → envloop_cli-2.4.0}/packages/rsi-loop/envloop_rsi_loop/loops.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: envloop-cli
3
- Version: 2.2.0
3
+ Version: 2.4.0
4
4
  Summary: EnvLoop CLI and Python SDK for jobs, training, checkpoints and inference
5
5
  Project-URL: Homepage, https://envloop.ai
6
6
  Project-URL: Documentation, https://docs.envloop.ai
@@ -10,7 +10,7 @@ Project-URL: Agent instructions, https://docs.envloop.ai/skill.md
10
10
  Requires-Python: >=3.12
11
11
  Provides-Extra: asset
12
12
  Requires-Dist: boto3==1.44.3; extra == 'asset'
13
- Requires-Dist: envloop-envhub==2.2.0; extra == 'asset'
13
+ Requires-Dist: envloop-envhub==2.4.0; extra == 'asset'
14
14
  Provides-Extra: chat
15
15
  Requires-Dist: openai==3.55.1; extra == 'chat'
16
16
  Provides-Extra: default
@@ -224,8 +224,8 @@ el job list --type sandbox
224
224
  el job log JOB_ID --follow
225
225
  ```
226
226
 
227
- The platform resolves `base` to the registered `envloop/base@main` source ref and
228
- freezes its immutable Revision. The Sandbox image defaults to the registered Runner image;
227
+ The platform resolves `base` to the newest accessible successfully published `envloop/base` Revision and
228
+ freezes its immutable identity. The Sandbox image defaults to the registered Runner image;
229
229
  `--image` accepts an image name, tag or digest. Bench and Sandbox submissions can request a
230
230
  platform-enabled provider by name. In a request file, `provider` is a
231
231
  top-level field alongside `spec` and optional `overrides` in an `envloop.job/v2`
@@ -360,7 +360,9 @@ Availability requires matching platform support and approved content in your pro
360
360
 
361
361
  Datasets, Checkpoints, Recipes and Profiles share `list`, `get`, `create`, `update`, `delete`
362
362
  and `set-visibility`. Every list row is an immutable version. A REF is an opaque resource ID,
363
- a fixed ANS URI supported by that type, or `namespace/name@version`; a bare name is rejected.
363
+ a fixed ANS URI supported by that type, or `namespace/name@version`. Recipe/Profile `get` also accepts
364
+ bare names or `@latest`, resolved by the platform to the newest accessible successful publication.
365
+ Dataset/Checkpoint names require explicit versions; mutation sources remain exact.
364
366
  `get/create/update` return `{ "asset": RECORD_OR_NULL, "operation": OPERATION_OR_NULL }`.
365
367
  Records share `asset_id/type/name/version/owner/visibility/acl_revision/status`; type details,
366
368
  files, model identity and provenance stay in `asset.details`.
@@ -384,7 +386,10 @@ el dataset set-visibility example/eval@1.0 --visibility internal --expected-acl-
384
386
 
385
387
  `--file` supplies a complete declaration; `--patch` is Profile update's explicit patch mode.
386
388
  An update creates a new immutable version owned by the current Project and leaves Profile defaults
387
- and submitted Job references unchanged. Profile default changes use `set-default REF --expected-version V`.
389
+ and submitted Job references unchanged. Profile default metadata changes use `set-default REF --expected-version V` and do not affect latest selection.
390
+ Runner/Recipe references in a Profile may omit the version or use `@latest`; Profile publication retains
391
+ those author references. Each new Job freezes the concrete URI, revision, hashes and owner; retries
392
+ with the same request ID retain the first choice.
388
393
  Profile supports private/public; other user content also supports internal. The returned ACL scope
389
394
  states whether sharing affects a name's versions or one saved record. Every visibility write requires
390
395
  an explicit `--expected-acl-revision`.
@@ -204,8 +204,8 @@ el job list --type sandbox
204
204
  el job log JOB_ID --follow
205
205
  ```
206
206
 
207
- The platform resolves `base` to the registered `envloop/base@main` source ref and
208
- freezes its immutable Revision. The Sandbox image defaults to the registered Runner image;
207
+ The platform resolves `base` to the newest accessible successfully published `envloop/base` Revision and
208
+ freezes its immutable identity. The Sandbox image defaults to the registered Runner image;
209
209
  `--image` accepts an image name, tag or digest. Bench and Sandbox submissions can request a
210
210
  platform-enabled provider by name. In a request file, `provider` is a
211
211
  top-level field alongside `spec` and optional `overrides` in an `envloop.job/v2`
@@ -340,7 +340,9 @@ Availability requires matching platform support and approved content in your pro
340
340
 
341
341
  Datasets, Checkpoints, Recipes and Profiles share `list`, `get`, `create`, `update`, `delete`
342
342
  and `set-visibility`. Every list row is an immutable version. A REF is an opaque resource ID,
343
- a fixed ANS URI supported by that type, or `namespace/name@version`; a bare name is rejected.
343
+ a fixed ANS URI supported by that type, or `namespace/name@version`. Recipe/Profile `get` also accepts
344
+ bare names or `@latest`, resolved by the platform to the newest accessible successful publication.
345
+ Dataset/Checkpoint names require explicit versions; mutation sources remain exact.
344
346
  `get/create/update` return `{ "asset": RECORD_OR_NULL, "operation": OPERATION_OR_NULL }`.
345
347
  Records share `asset_id/type/name/version/owner/visibility/acl_revision/status`; type details,
346
348
  files, model identity and provenance stay in `asset.details`.
@@ -364,7 +366,10 @@ el dataset set-visibility example/eval@1.0 --visibility internal --expected-acl-
364
366
 
365
367
  `--file` supplies a complete declaration; `--patch` is Profile update's explicit patch mode.
366
368
  An update creates a new immutable version owned by the current Project and leaves Profile defaults
367
- and submitted Job references unchanged. Profile default changes use `set-default REF --expected-version V`.
369
+ and submitted Job references unchanged. Profile default metadata changes use `set-default REF --expected-version V` and do not affect latest selection.
370
+ Runner/Recipe references in a Profile may omit the version or use `@latest`; Profile publication retains
371
+ those author references. Each new Job freezes the concrete URI, revision, hashes and owner; retries
372
+ with the same request ID retain the first choice.
368
373
  Profile supports private/public; other user content also supports internal. The returned ACL scope
369
374
  states whether sharing affects a name's versions or one saved record. Every visibility write requires
370
375
  an explicit `--expected-acl-revision`.
@@ -9,9 +9,10 @@ from envloop.http import RemoteError, WaitTimeoutError
9
9
  KINDS = ('dataset', 'checkpoint', 'recipe', 'profile')
10
10
 
11
11
 
12
- def precise_ref(ref: str) -> str:
12
+ def precise_ref(ref: str, *, allow_name: bool = False) -> str:
13
13
  if (not isinstance(ref, str) or not ref or len(ref) > 8192 or any(ord(c) < 32 for c in ref)
14
- or '/' in ref and not ref.startswith('envloop://') and ('@' not in ref or not ref.rpartition('@')[2])):
14
+ or '/' in ref and not ref.startswith('envloop://') and (
15
+ '@' not in ref and not allow_name or '@' in ref and not ref.rpartition('@')[2])):
15
16
  raise ValueError('REF must be an opaque resource ID or a name with an explicit version (NAME@VERSION)')
16
17
  return ref
17
18
 
@@ -89,7 +90,7 @@ class Assets:
89
90
  def get(self, ref: str, *, type: str | None = None) -> dict[str, Any]:
90
91
  if type not in (None, *KINDS):
91
92
  raise ValueError('select a user asset type')
92
- path = scope(self.transport) + '/assets/' + quote(precise_ref(ref), safe='')
93
+ path = scope(self.transport) + '/assets/' + quote(precise_ref(ref, allow_name=type in ('recipe', 'profile')), safe='')
93
94
  value = envelope(self.transport.request('GET', path + ('?' + urlencode({'type': type}) if type else '')))
94
95
  if value['asset'] is None or value['asset'].get('type') not in KINDS or type is not None and value['asset'].get('type') != type:
95
96
  raise RemoteError('INVALID_RESPONSE')
@@ -252,7 +252,7 @@ class Runners:
252
252
  return self._server.list_runners(limit=limit, cursor=cursor)
253
253
 
254
254
  def get(self, asset_id: str):
255
- """Read a Runner Asset resource by ID or immutable ANS URI."""
255
+ """Read a Runner by ID, fixed URI or registered NAME[@REVISION]; the API resolves latest."""
256
256
  from envloop_asset.execution_content import ExecutionContent
257
257
  resource = ExecutionContent(self._server, 'runner').get(asset_id)
258
258
  if resource.get('type') != 'runner':
@@ -16,6 +16,11 @@ class ExecutionContent(AssetTransfer):
16
16
  path = scope(self.transport) + ('/runners' if self.kind == 'runner' else '/trials/artifacts')
17
17
  return path if asset_id is None else path + '/' + quote(precise_ref(asset_id),safe='')
18
18
 
19
+ @override
20
+ def get(self, asset_id: str) -> dict[str, Any]:
21
+ ref = precise_ref(asset_id, allow_name=self.kind == 'runner')
22
+ return self.transport.request('GET', self._path() + '/' + quote(ref, safe=''))
23
+
19
24
  @override
20
25
  def list(self, *, type: Any = None, **filters: Any) -> dict[str, Any]:
21
26
  if type not in (None,self.kind):
@@ -26,8 +26,11 @@ def add_resource_commands(groups: "argparse._SubParsersAction[argparse.ArgumentP
26
26
  if kind == 'checkpoint':
27
27
  command.add_argument('--job-id')
28
28
  command.add_argument('--trial-id')
29
- command = actions.add_parser('get', help='Read one exact version without downloading files')
30
- command.add_argument('ref', metavar='REF', help=DATASET_REF_HELP if kind == 'dataset' else None)
29
+ command = actions.add_parser('get', help='Read a version without downloading files')
30
+ command.add_argument('ref', metavar='REF', help=(DATASET_REF_HELP if kind == 'dataset' else
31
+ 'NAME, NAME@latest, NAME@VERSION, opaque asset ID or fixed ANS URI; '
32
+ 'omitted version selects the newest accessible publication'
33
+ if kind in ('recipe', 'profile') else None))
31
34
  command.add_argument('--json', action='store_true')
32
35
  for action in ('create','update'):
33
36
  command = actions.add_parser(action, help='Create an immutable version' if action == 'create' else 'Publish a new version from an owned exact source')
@@ -141,7 +144,9 @@ def add_runner_commands(groups: "argparse._SubParsersAction[argparse.ArgumentPar
141
144
  command.add_argument('--ref')
142
145
  for action in ('get','delete'):
143
146
  command = actions.add_parser(action)
144
- command.add_argument('asset_id', metavar='RUNNER_REF')
147
+ command.add_argument('asset_id', metavar='RUNNER_REF',
148
+ help=('Runner ID, fixed ANS URI or NAME[@REVISION]; omitted revision and @latest select the newest accessible publication'
149
+ if action == 'get' else 'Runner ID, fixed ANS URI or NAME@REVISION'))
145
150
  if action == 'delete':
146
151
  command.add_argument('--dry-run', action='store_true')
147
152
  command.add_argument('--json', action='store_true')
@@ -67,7 +67,7 @@ def log_page_size(value: str):
67
67
 
68
68
  def runner_arguments(submit: argparse.ArgumentParser):
69
69
  submit.add_argument("--runner", metavar="NAME[@REVISION]",
70
- help="Bench/Train/Inference: namespace/name@REVISION; Sandbox: registered Runner name (for example base)")
70
+ help="Registered Runner NAME or NAME@REVISION; omitted revision and @latest select the newest accessible publication")
71
71
  submit.add_argument("--job-id", help="Bench/Sandbox: caller-selected Job ID")
72
72
  submit.add_argument("--tag", help="Bench/Sandbox: run label")
73
73
  submit.add_argument("--priority", type=int, help="Bench/Sandbox/Train recipe: waiting priority; explicit value overrides spec (server default: 0)")
@@ -148,7 +148,7 @@ def add_commands(groups: "argparse._SubParsersAction[argparse.ArgumentParser]"):
148
148
  job_submit.add_argument("--attempts", type=int)
149
149
  job_submit.add_argument("--request-id", help="idempotency key; overrides request_id in --spec")
150
150
  job_submit.add_argument("--profile", type=profile_reference, metavar="NAME[@VERSION]",
151
- help="named runtime Profile; omitted version prefers default, then newest unarchived creation")
151
+ help="named runtime Profile; omitted version and @latest select the newest accessible unarchived publication")
152
152
  job_submit.add_argument('--input', action='append', default=[], metavar='NAME=URI|NAME=ASSET_ID',
153
153
  help='Bind an ANS input slot of a named Train/Bench/Sandbox Profile; repeatable. '
154
154
  'A Dataset URI alone uses the default config and the train split; a Asset ID (data_…) '
@@ -388,16 +388,16 @@ class Trials:
388
388
 
389
389
 
390
390
  def runner_selector(value: str):
391
- """Require an explicit, portable revision; resolution belongs to the API."""
391
+ """Pass a registered name or portable revision; latest resolution belongs to the API."""
392
392
  if not isinstance(value, str):
393
393
  raise ValueError("runner requires name@revision")
394
394
  name, separator, revision = value.partition("@")
395
- if (not separator or not name or "/" not in name or not revision
395
+ if (not name or "/" not in name or separator and not revision
396
396
  or value != value.strip() or any(char.isspace() for char in value)
397
397
  or revision in {"HEAD", "FETCH_HEAD", "ORIG_HEAD", "MERGE_HEAD", "CHERRY_PICK_HEAD", "REVERT_HEAD"}
398
398
  or revision.startswith("-") or ".." in revision or revision == "@" or "@{" in revision
399
399
  or any(char in revision for char in "~^:{}?*[\\")):
400
- raise ValueError("runner requires name@revision with an explicit commit, tag or branch")
400
+ raise ValueError("runner requires namespace/name with optional latest, commit, tag or branch")
401
401
  return value
402
402
 
403
403
 
@@ -26,8 +26,8 @@ def validate_submission(body: Any):
26
26
  raise ValueError('fixed-input inference cannot mix legacy or runtime fields')
27
27
  runner = spec['runner']
28
28
  if (not isinstance(runner, str)
29
- or not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*@[^\s@]+', runner)):
30
- raise ValueError('runner requires namespace/name@revision')
29
+ or not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*(?:@[^\s@]+)?', runner)):
30
+ raise ValueError('runner requires namespace/name with an optional revision')
31
31
  if not isinstance(spec.get('name'), str) or not spec['name'].strip():
32
32
  raise ValueError('fixed-input inference requires name')
33
33
  profile = spec.get('profile')
@@ -44,8 +44,8 @@ def runner_request(args: argparse.Namespace):
44
44
  from envloop_experiment.client import runner_selector
45
45
  from envloop_experiment.sandbox import validate_image
46
46
 
47
- if not args.runner or not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*@[^\s@]+', args.runner):
48
- raise ValueError('Train Runner requires --runner namespace/name@REVISION')
47
+ if not args.runner or not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*(?:@[^\s@]+)?', args.runner):
48
+ raise ValueError('Train Runner requires --runner namespace/name[@REVISION]')
49
49
  runner = runner_selector(args.runner)
50
50
  if args.docker is not None and args.image is not None:
51
51
  raise ValueError('--docker and --image cannot be combined')
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "envloop-cli"
3
- version = "2.2.0"
3
+ version = "2.4.0"
4
4
  description = "EnvLoop CLI and Python SDK for jobs, training, checkpoints and inference"
5
5
  requires-python = ">=3.12"
6
6
  readme = "README.pypi.md"
@@ -8,7 +8,7 @@ dependencies = []
8
8
 
9
9
  [project.optional-dependencies]
10
10
  default = []
11
- asset = ["envloop-envhub==2.2.0", "boto3==1.44.3"]
11
+ asset = ["envloop-envhub==2.4.0", "boto3==1.44.3"]
12
12
  experiment = []
13
13
  rsi-loop = []
14
14
  chat = ["openai==3.55.1"]
@@ -25,7 +25,7 @@ Issues = "https://github.com/EnvLoop/envloop-cli/issues"
25
25
  "Agent instructions" = "https://docs.envloop.ai/skill.md"
26
26
 
27
27
  [dependency-groups]
28
- dev = ["ruff==0.17.3", "pre-commit>=4.6,<5", "pytest>=8", "envloop-envhub==2.2.0", "pyrefly==1.4.0", "openai==3.55.1"]
28
+ dev = ["ruff==0.17.3", "pre-commit>=4.6,<5", "pytest>=8", "envloop-envhub==2.4.0", "pyrefly==1.4.0", "openai==3.55.1"]
29
29
 
30
30
  [build-system]
31
31
  requires = ["hatchling"]
@@ -66,7 +66,7 @@ combine-as-imports = true
66
66
  known-first-party = ["envloop", "envloop_asset", "envloop_experiment", "envloop_rsi_loop", "envloop_chat"]
67
67
 
68
68
  [tool.uv.sources]
69
- envloop-envhub = { git = "ssh://git@github.com/EnvLoop/EnvHub.git", rev = "535f53ecfb67391a45bc48ae15ccd1b3feb56b49" }
69
+ envloop-envhub = { git = "ssh://git@github.com/EnvLoop/EnvHub.git", rev = "7b931a757fb3d8fecfd64be342ab355219d4dfe6" }
70
70
 
71
71
  [tool.pyrefly]
72
72
  preset = "strict"
File without changes
File without changes
File without changes