envloop-cli 2.2.0__tar.gz → 2.3.1__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.
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/PKG-INFO +11 -6
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/README.pypi.md +9 -4
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/assets.py +4 -3
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/client.py +1 -1
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/execution_content.py +5 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/resource_cli.py +8 -3
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/cli.py +2 -2
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/client.py +3 -3
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/inference.py +2 -2
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_runner_cli.py +2 -2
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/pyproject.toml +4 -4
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/.gitignore +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/_optional.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/auth_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/auth_login.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/auth_workspace.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/cli_errors.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/cli_output.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/client.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/config.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/downloads.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/http.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/lifecycle_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/navigation_resources.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/profile_secrets.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/resource_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/resources.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/terminal.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/utils/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/envloop/utils/logging.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/checkpoint_download.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/checkpoint_upload.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/cli_output.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/dataset_upload.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_artifact.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_checkpoint.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_publication.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_storage.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_worker_artifact.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/http.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/navigation_resources.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/profile_updates.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/publication_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/publications.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/r2_upload.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/recipe_packages.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/recipes.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/runner_packages.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/tags.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/transfer.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/upload_strategy.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/chat/envloop_chat/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/chat/envloop_chat/cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/chat/envloop_chat/client.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/cli_output.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/decision.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/http.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/job_cost.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/job_logs.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/job_spec_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/named_profile.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/navigation_resources.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/resource_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/resources.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/runtime_params.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/sandbox.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_log_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_metrics_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_progress.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/training/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/rsi-loop/envloop_rsi_loop/__init__.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/rsi-loop/envloop_rsi_loop/cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/rsi-loop/envloop_rsi_loop/cli_output.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/rsi-loop/envloop_rsi_loop/loop_cli.py +0 -0
- {envloop_cli-2.2.0 → envloop_cli-2.3.1}/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.
|
|
3
|
+
Version: 2.3.1
|
|
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.
|
|
13
|
+
Requires-Dist: envloop-envhub==2.3.1; 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
|
|
228
|
-
freezes its immutable
|
|
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
|
|
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
|
|
208
|
-
freezes its immutable
|
|
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
|
|
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 (
|
|
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
|
|
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
|
|
30
|
-
command.add_argument('ref', metavar='REF', help=DATASET_REF_HELP if kind == 'dataset' else
|
|
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="
|
|
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
|
|
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
|
-
"""
|
|
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
|
|
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
|
|
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._-]
|
|
30
|
-
raise ValueError('runner requires namespace/name
|
|
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')
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_runner_cli.py
RENAMED
|
@@ -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._-]
|
|
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.
|
|
3
|
+
version = "2.3.1"
|
|
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.
|
|
11
|
+
asset = ["envloop-envhub==2.3.1", "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.
|
|
28
|
+
dev = ["ruff==0.17.3", "pre-commit>=4.6,<5", "pytest>=8", "envloop-envhub==2.3.1", "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 = "
|
|
69
|
+
envloop-envhub = { git = "ssh://git@github.com/EnvLoop/EnvHub.git", rev = "6ee0011a5e833edef3bbc6c472760368a0fc1a33" }
|
|
70
70
|
|
|
71
71
|
[tool.pyrefly]
|
|
72
72
|
preset = "strict"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/direct_worker_artifact.py
RENAMED
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/asset/envloop_asset/navigation_resources.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/cli_output.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/job_spec_cli.py
RENAMED
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/named_profile.py
RENAMED
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/resource_cli.py
RENAMED
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/runtime_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_log_cli.py
RENAMED
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_metrics_cli.py
RENAMED
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/train_progress.py
RENAMED
|
File without changes
|
{envloop_cli-2.2.0 → envloop_cli-2.3.1}/packages/experiment/envloop_experiment/training/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|