envloop-cli 1.34.0__tar.gz → 2.0.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 (82) hide show
  1. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/PKG-INFO +97 -29
  2. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/README.pypi.md +93 -26
  3. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/__init__.py +4 -1
  4. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/_optional.py +26 -22
  5. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/cli.py +33 -8
  6. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/cli_errors.py +43 -31
  7. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/cli_output.py +8 -6
  8. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/client.py +1 -1
  9. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/downloads.py +5 -3
  10. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/http.py +28 -9
  11. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/lifecycle_cli.py +6 -0
  12. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/profile_secrets.py +9 -5
  13. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/resource_cli.py +1 -6
  14. envloop_cli-2.0.0/packages/asset/envloop_asset/assets.py +537 -0
  15. envloop_cli-2.0.0/packages/asset/envloop_asset/checkpoint_download.py +82 -0
  16. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/checkpoint_upload.py +6 -6
  17. envloop_cli-2.0.0/packages/asset/envloop_asset/cli.py +88 -0
  18. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/cli_output.py +18 -65
  19. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/client.py +58 -33
  20. envloop_cli-1.34.0/packages/data/envloop_data/data_upload.py → envloop_cli-2.0.0/packages/asset/envloop_asset/dataset_upload.py +15 -15
  21. envloop_cli-2.0.0/packages/asset/envloop_asset/direct_artifact.py +212 -0
  22. envloop_cli-2.0.0/packages/asset/envloop_asset/direct_checkpoint.py +132 -0
  23. envloop_cli-2.0.0/packages/asset/envloop_asset/direct_publication.py +46 -0
  24. envloop_cli-2.0.0/packages/asset/envloop_asset/direct_storage.py +242 -0
  25. envloop_cli-2.0.0/packages/asset/envloop_asset/direct_worker_artifact.py +86 -0
  26. envloop_cli-2.0.0/packages/asset/envloop_asset/execution_content.py +23 -0
  27. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/http.py +3 -3
  28. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/navigation_resources.py +5 -5
  29. envloop_cli-2.0.0/packages/asset/envloop_asset/publication_cli.py +83 -0
  30. envloop_cli-1.34.0/packages/data/envloop_data/data_publications.py → envloop_cli-2.0.0/packages/asset/envloop_asset/publications.py +6 -6
  31. envloop_cli-2.0.0/packages/asset/envloop_asset/r2_upload.py +27 -0
  32. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/recipe_packages.py +5 -5
  33. envloop_cli-2.0.0/packages/asset/envloop_asset/resource_cli.py +348 -0
  34. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/runner_packages.py +6 -4
  35. envloop_cli-2.0.0/packages/asset/envloop_asset/tags.py +27 -0
  36. envloop_cli-1.34.0/packages/data/envloop_data/data.py → envloop_cli-2.0.0/packages/asset/envloop_asset/transfer.py +188 -95
  37. envloop_cli-2.0.0/packages/asset/envloop_asset/upload_strategy.py +18 -0
  38. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/cli.py +160 -62
  39. envloop_cli-2.0.0/packages/experiment/envloop_experiment/cli_output.py +91 -0
  40. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/client.py +222 -32
  41. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/http.py +9 -1
  42. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/job_spec_cli.py +23 -15
  43. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/named_profile.py +57 -18
  44. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/navigation_resources.py +1 -2
  45. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/resource_cli.py +1 -3
  46. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/resources.py +0 -3
  47. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/pyproject.toml +7 -7
  48. envloop_cli-1.34.0/packages/data/envloop_data/cli.py +0 -191
  49. envloop_cli-1.34.0/packages/data/envloop_data/data_cli.py +0 -458
  50. envloop_cli-1.34.0/packages/data/envloop_data/resource_cli.py +0 -179
  51. envloop_cli-1.34.0/packages/experiment/envloop_experiment/cli_output.py +0 -50
  52. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/.gitignore +0 -0
  53. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/auth_cli.py +0 -0
  54. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/auth_login.py +0 -0
  55. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/auth_workspace.py +0 -0
  56. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/config.py +0 -0
  57. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/navigation_resources.py +0 -0
  58. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/resources.py +0 -0
  59. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/terminal.py +0 -0
  60. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/utils/__init__.py +0 -0
  61. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/envloop/utils/logging.py +0 -0
  62. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/__init__.py +0 -0
  63. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/profile_updates.py +0 -0
  64. {envloop_cli-1.34.0/packages/data/envloop_data → envloop_cli-2.0.0/packages/asset/envloop_asset}/recipes.py +0 -0
  65. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/__init__.py +0 -0
  66. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/decision.py +0 -0
  67. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/inference.py +0 -0
  68. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/job_cost.py +0 -0
  69. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/job_logs.py +0 -0
  70. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/runtime_params.py +0 -0
  71. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/sandbox.py +0 -0
  72. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/train.py +0 -0
  73. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/train_log_cli.py +0 -0
  74. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/train_metrics_cli.py +0 -0
  75. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/train_progress.py +0 -0
  76. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/train_runner_cli.py +0 -0
  77. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/experiment/envloop_experiment/training/__init__.py +0 -0
  78. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/rsi-loop/envloop_rsi_loop/__init__.py +0 -0
  79. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/rsi-loop/envloop_rsi_loop/cli.py +0 -0
  80. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/rsi-loop/envloop_rsi_loop/cli_output.py +0 -0
  81. {envloop_cli-1.34.0 → envloop_cli-2.0.0}/packages/rsi-loop/envloop_rsi_loop/loop_cli.py +0 -0
  82. {envloop_cli-1.34.0 → envloop_cli-2.0.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: 1.34.0
3
+ Version: 2.0.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
@@ -8,8 +8,9 @@ Project-URL: Repository, https://github.com/EnvLoop/envloop-cli
8
8
  Project-URL: Issues, https://github.com/EnvLoop/envloop-cli/issues
9
9
  Project-URL: Agent instructions, https://docs.envloop.ai/skill.md
10
10
  Requires-Python: >=3.12
11
- Provides-Extra: data
12
- Requires-Dist: envloop-envhub==1.23.0; extra == 'data'
11
+ Provides-Extra: asset
12
+ Requires-Dist: boto3==1.44.3; extra == 'asset'
13
+ Requires-Dist: envloop-envhub==1.23.0; extra == 'asset'
13
14
  Provides-Extra: default
14
15
  Provides-Extra: experiment
15
16
  Provides-Extra: rsi-loop
@@ -33,7 +34,7 @@ unreleased features.
33
34
  | Unreleased source enhancement | Published 1.33.0 |
34
35
  | --- | --- |
35
36
  | Explicit `--json` for `el runner get\|create\|update\|delete` | These commands already output JSON; omit `--json` |
36
- | `el data upload harbor --update-digests` | not available; set `[[tasks]] digest` values by hand |
37
+ | `el dataset create --format harbor --update-digests` | not available; set `[[tasks]] digest` values by hand |
37
38
  | `el trial artifact download TRIAL_ID --output DIRECTORY` | positional `DIRECTORY` only |
38
39
 
39
40
  Execution also requires a matching platform, project permissions and published
@@ -67,7 +68,7 @@ uv pip install --upgrade envloop-cli
67
68
  python3.12 -m pip install --upgrade envloop-cli
68
69
  ```
69
70
 
70
- Every installation includes Jobs, Trials, training, logs, inference calls, Data resources, checkpoints and RSI Loop controls.
71
+ Every installation includes Jobs, Trials, training, logs, inference calls, Assets, checkpoints and RSI Loop controls.
71
72
  Check that the SDK can be imported:
72
73
 
73
74
  ```bash
@@ -86,19 +87,19 @@ One `envloop-cli` wheel and source archive contain all feature code. Extras add
86
87
 
87
88
  ```bash
88
89
  python -m pip install envloop-cli
89
- python -m pip install "envloop-cli[data]"
90
- python -m pip install "envloop-cli[data,experiment,rsi-loop]"
90
+ python -m pip install "envloop-cli[asset]"
91
+ python -m pip install "envloop-cli[asset,experiment,rsi-loop]"
91
92
  ```
92
93
 
93
- Every installation includes the existing Job, Trial, Data and RSI Loop commands, and every `--help` works without extras. The bare installation and `default`, `experiment`, `rsi-loop` groups have no runtime dependencies. `data` adds `envloop-envhub==1.23.0` for ANS parsing, file-manifest publication and verified directory downloads. Other Data API operations use the bundled client implementation. A command that needs the missing ANS dependency stops with `FEATURE_NOT_INSTALLED` and the `envloop-cli[data]` installation instruction.
94
+ Every installation includes the existing Job, Trial, Assets and RSI Loop commands, and every `--help` works without extras. The bare installation and `default`, `experiment`, `rsi-loop` groups have no runtime dependencies. `asset` adds `envloop-envhub==1.23.0` for ANS parsing and verified content, and `boto3==1.44.3` for direct object storage transfers. Other Assets API operations use the bundled client implementation. A command that needs the missing ANS dependency stops with `FEATURE_NOT_INSTALLED` and the `envloop-cli[asset]` installation instruction.
94
95
 
95
96
  Feature modules load lazily. Default imports, help and experiment operations do not require EnvHub or certifi. Only the single `envloop-cli` distribution owns the `el` / `envloop` scripts. The examples below require an authorized matching platform; installation does not grant permissions.
96
97
 
97
- Versions 1.23.0 and 1.24.0 on PyPI depend on feature packages that were never published: their `data` extra cannot be installed and the DATA command group is empty. They also install a separate `envloop-cli-experiment` package that shares files with this release. Remove both before installing; uninstalling `envloop-cli-experiment` after an upgrade deletes files the client needs and leads to `FEATURE_NOT_INSTALLED`, which the same commands repair:
98
+ Versions 1.23.0 and 1.24.0 on PyPI depend on feature packages that were never published: their historical `data` extra cannot be installed and their DATA command group is empty. They also install a separate `envloop-cli-experiment` package that shares files with this release. Remove both before installing; uninstalling `envloop-cli-experiment` after an upgrade deletes files the client needs and leads to `FEATURE_NOT_INSTALLED`, which the same commands repair:
98
99
 
99
100
  ```bash
100
101
  python -m pip uninstall -y envloop-cli envloop-cli-experiment
101
- python -m pip install "envloop-cli[data]"
102
+ python -m pip install "envloop-cli[asset]"
102
103
  ```
103
104
 
104
105
  ## Connect
@@ -204,7 +205,9 @@ el job submit --type train --profile team/sft@3 \
204
205
  --input eval_dataset=envloop://datasets/envloop/pev@1.0.4 --input-split eval_dataset=validation
205
206
  ```
206
207
  `--profile` and `--spec` are mutually exclusive. Named Profile parameter names
207
- retain their case and duplicates are rejected.
208
+ retain their case and duplicates are rejected. Without input overrides, v4/v5
209
+ Profiles use a canonical JobSpec after one public schema lookup; explicit values
210
+ go in `overrides`, while the platform freezes Profile defaults and inputs.
208
211
 
209
212
  With a matching platform and a published `envloop/base` ANS Runner, submit a
210
213
  Sandbox Job without a Dataset:
@@ -223,6 +226,18 @@ by the server. Job logs retain the actual captured output and collection metadat
223
226
  Failures include a code, readable explanation, HTTP status when available, and
224
227
  recovery guidance without echoing arbitrary response bodies or credentials.
225
228
 
229
+ Bench/Sandbox Harbor Recipes accept `--harbor_env docker|process` with a canonical
230
+ JobSpec (`spec.schema = "envloop.job/v1"`) or a named `--profile`:
231
+
232
+ ```bash
233
+ el job submit --type sandbox --spec REQUEST.json --harbor_env process
234
+ ```
235
+
236
+ Omitting the option preserves spec/Profile parameters and the Runner default
237
+ (`docker`). An explicit option overrides the file's `harbor_env` parameter;
238
+ setting the same key with `--params` is rejected. The option selects Harbor's
239
+ task environment; platform execution placement remains server configured.
240
+
226
241
  ## Existing installations
227
242
 
228
243
  This distribution provides both the CLI and the `envloop` import package. Use a
@@ -247,6 +262,7 @@ Prepare a recipe-supported `REQUEST.json` using the [SFT quickstart](https://doc
247
262
  Training uses billable resources. Check your project permissions, balance and data format, then submit once:
248
263
 
249
264
  ```bash
265
+ el job resolve --spec REQUEST.json --json
250
266
  el job submit --type train --spec REQUEST.json
251
267
  el job get JOB_ID
252
268
  el job log JOB_ID --follow
@@ -256,9 +272,19 @@ el checkpoint list --job-id JOB_ID
256
272
 
257
273
  `job submit --spec` reads the complete Job specification JSON file for Train or Inference.
258
274
  The former `job submit --file` option is removed; the JSON payload is unchanged.
275
+ `job resolve --spec FILE --json` previews the resolved specification without creating a Job.
276
+ Artifact downloads transfer directly from object storage and require `envloop-cli[asset]`; without it they stop with `FEATURE_NOT_INSTALLED` and the install command.
259
277
 
260
278
  Replace `JOB_ID` with the receipt's value. Read the training status and logs, then find the registered checkpoint after success.
261
279
  Ctrl-C ends log reading; to stop training, use `el job stop JOB_ID` and check its state and resource cleanup.
280
+ A platform-authorized Train worker publishes its saved checkpoints directly to object storage:
281
+
282
+ ```bash
283
+ el checkpoint create --result /output/train-result.json --directory /output --json
284
+ ```
285
+
286
+ Install `envloop-cli[asset]` for this operation. The saved `envloop.train-result/v1` descriptors locate the checkpoint directories. The platform supplies producer identity from its worker credential; ordinary project keys cannot claim a Job or Trial. Success returns `durable: true`, `upload_actor: "worker"`, and committed checkpoint receipts with real ANS URIs and manifest SHA-256 values. Local save names and directories are preserved; the published save name is `checkpoint-N` for step N.
287
+
262
288
  See [Checkpoints](https://docs.envloop.ai/training/checkpoints) to download or delete saved weights.
263
289
 
264
290
  The built-in SFT recipe does not support custom loss, RL or optimizer-state resume.
@@ -321,28 +347,70 @@ Use the exact model returned by the Job. The SDK forwards the payload to the
321
347
  Job's `/inference/decision` API; the approved plugin validates its business fields.
322
348
  Availability requires matching platform support and approved content in your project.
323
349
 
324
- ## ANS data and verified downloads
350
+ ## User Assets and verified downloads
325
351
 
326
- `client.data.download_directory(uri, destination)` and `el data download DATA_ID|URI --output ./content`
327
- download a complete registered ANS object directory through EnvHub. Datasets require
328
- `split="lite"` / `--split lite` (the error lists the declared splits); the Dataset version and filenames are preserved. After API
329
- authorization the SDK uses GET URLs valid for up to five minutes, verifies file size/SHA-256,
330
- and installs the directory atomically. Matching platform support is required.
331
-
332
- A compatible server is required. Data uses the permission of the resource it touches: read (for example `datasets.read`) to query and download, write to publish and upload, delete to retire; a key from `el auth login` follows your project role. The current login selects the base URL, workspace and project; there is no `--env` flag. After configuring the Key using `el auth config`:
352
+ Datasets, Checkpoints, Recipes and Profiles share `list`, `get`, `create`, `update`, `delete`
353
+ and `set-visibility`. Every list row is an immutable version. A REF is an opaque resource ID,
354
+ a fixed ANS URI supported by that type, or `namespace/name@version`; a bare name is rejected.
355
+ `get/create/update` return `{ "asset": RECORD_OR_NULL, "operation": OPERATION_OR_NULL }`.
356
+ Records share `asset_id/type/name/version/owner/visibility/acl_revision/status`; type details,
357
+ files, model identity and provenance stay in `asset.details`.
333
358
 
334
359
  ```bash
335
- el data list --type dataset --json
336
- el data get DATA_ID --json
337
- el data download DATA_ID --file FILE_ID --output ./dataset.tgz --resume --json
360
+ el dataset list --name example/eval --json
361
+ el dataset create --file dataset.json --directory ./files --tags 'topic:finance' --wait
362
+ el dataset get example/eval@1.0 --json
363
+ el dataset file list example/eval@1.0
364
+ el dataset download example/eval@1.0 --split test --output ./content
365
+ el dataset create --format harbor --directory ./tasks --name example/eval --version 1.0
366
+ el dataset registration create example/eval@1.0 --runner envloop/harbor@FULL_COMMIT --wait
367
+ el recipe create --directory ./recipe --revision FULL_COMMIT --wait
368
+ el checkpoint create --model example/model --revision FULL_MODEL_COMMIT
369
+ el checkpoint create --result train-result.json --checkpoint-name checkpoint-100 --directory ./outputs
370
+ el profile create --name example/train --version 1.0 --file profile.toml --secret HF_TOKEN=env:HF_TOKEN
371
+ el profile update example/train@1.0 --version 2.0 --patch changes.toml
372
+ el profile export example/train@2.0 --output ./profile.toml
373
+ el dataset set-visibility example/eval@1.0 --visibility internal --expected-acl-revision 3
338
374
  ```
339
375
 
340
- Unified ANS CRUD supports Dataset, Runner, Recipe and HF model Checkpoint registrations through `el data` and `client.data`. Dataset/Runner/Recipe creation requires a native `--manifest` and exact `--directory`; a Recipe may instead be built from a directory holding a committed `recipe.toml` (`envloop.recipe/v2`) and `entrypoint.sh` with `el data create --type recipe --directory DIR [--revision REF]` (SDK `client.data.create(type="recipe", directory=DIR)`). For Dataset create/update/upload, `--ref` (SDK `ref`) is optional when `dataset.namespace`, `dataset.name` and `dataset.version` are present in the manifest; EnvHub derives the immutable Dataset URI. Other resource types and manifests without that identity still require an explicit ref. Explicit refs remain supported; the platform validates their consistency with the manifest. HF metadata registration uses `el data create --type checkpoint --model namespace/model --revision FULL_COMMIT`; SDK uses `create(kind="checkpoint", model=..., revision=...)`. HF weights are not downloaded, and artifact imports do not establish Model or Job checkpoint provenance. While native publication runs, `create`/`update` repeat the same idempotent request until ready (`--timeout`, default 3600 s); `--no-wait` / `wait=False` returns the pending `publishing` resource with resume instructions.
341
-
342
- `el data upload harbor DIR --name NAMESPACE/NAME --version VERSION` (SDK `client.data.upload(DIR, dataset=..., version=...)`) checks the directory before uploading and lists every Task whose `[[tasks]] digest` in `dataset.toml` no longer matches its files. After reviewing the Task changes, add `--update-digests` (SDK `update_digests=True`) to rewrite only those digest values, using the same Task fingerprint that registration verifies; nothing is written when the digests already match or the directory fails any other check, and the rewrite is reported on stderr (`updated_digests` in the JSON). A version that was already published stays immutable on the platform: publish changed Tasks under a new version.
376
+ `--file` supplies a complete declaration; `--patch` is Profile update's explicit patch mode.
377
+ An update creates a new immutable version owned by the current Project and leaves Profile defaults
378
+ and submitted Job references unchanged. Profile default changes use `set-default REF --expected-version V`.
379
+ Profile supports private/public; other user content also supports internal. The returned ACL scope
380
+ states whether sharing affects a name's versions or one saved record. Every visibility write requires
381
+ an explicit `--expected-acl-revision`.
382
+
383
+ A create/update establishes a unique publication operation and transfers verified bytes. Without
384
+ `--wait`, pending results preserve the operation ID and may have `asset: null`; an upload or staging
385
+ ID is never substituted for a real asset ID. Use `RESOURCE upload get OPERATION_ID`,
386
+ `upload part UPLOAD_ID --number N --file PART`, `upload complete OPERATION_ID` or
387
+ `upload abort OPERATION_ID` to inspect/resume that operation. Complete is idempotent and is the
388
+ only publication commit; there is no separate upload create command. Failed or timed-out operations
389
+ exit nonzero while preserving their safe receipt. Storage credentials are not printed.
390
+
391
+ Dataset downloads require an explicit split and accept config, content digest and paired task ID/tree
392
+ digest selectors. Downloads verify manifests, sizes, SHA-256, safe paths and executable bits. Use
393
+ `download REF --file-id FILE_ID --output FILE --resume` for a resumable single file. File selection
394
+ is separate from `get`; Profile uses a redacted `export` instead of a content download.
395
+
396
+ Worker checkpoint publication selects exactly one saved descriptor. Multi-save result files require
397
+ `--checkpoint-name`. Producer identity comes only from the platform-issued worker credential;
398
+ ordinary project keys cannot invent Job/Trial provenance. External HF metadata registration does
399
+ not download weights or establish training provenance.
400
+
401
+ The SDK uses `client.datasets/checkpoints/recipes/profiles` for typed operations and
402
+ `client.assets.list/get` for read-only aggregation. Examples:
343
403
 
344
- `el runner create DIRECTORY [--revision FULL_COMMIT|BRANCH|TAG] [--source-ref main]` (default `--revision main`, resolved locally and refused unless the directory matches that commit) publishes a Runner package directory through the same Data API with the manifest built for you, then reads the catalog revision back. `el profile create|update|fork ... --secret NAME[=prompt|stdin|env:VAR|file:PATH]` stores write-only Secret parameters whose names follow the platform's credential rule or `secret_params`; values never come from the command line. `el setting model-access grant NAMESPACE/NAME --protocol anthropic [--revision FULL_COMMIT]` (project Admin) lets a published Runner receive the project's metered model key on Fly Trials; `list` and `revoke GRANT_ID` manage grants.
345
-
346
- Success follows native storage and original catalog readback and returns an `ans_` identity. Update publishes an explicit new revision. Delete checks active and unknown dependencies; Runner deletion covers all revisions. Historical bytes and quota usage remain. Commands default to the current login base URL/workspace/project, with no `--env`. Both Data grants and the corresponding resource capabilities are required.
404
+ ```python
405
+ client.datasets.create(manifest=manifest, files=files, wait=True, tags={"topic": "finance"})
406
+ client.datasets.download("example/eval@1.0", "./content", split="test")
407
+ client.profiles.update("example/train@1.0", version="2.0", patch={"params": {"seed": 2}})
408
+ ```
347
409
 
348
- Read methods include `list/get/files/open/download`; `client.recipes.list/get` queries the original Recipe catalog. Downloads verify size/SHA-256 and refuse existing destinations, symlinks and storage redirects. Large payloads use multipart with stable idempotency keys. Staging `pub_` IDs and failure phases support retry; they are not native success. Matching client/server support is required. See the [Data reference](https://docs.envloop.ai/reference/cli#data-commands).
410
+ Runner is a platform execution capability under Experiment. Its existing package command remains
411
+ `el runner create DIRECTORY --revision FULL_COMMIT`; `runner list --ref REF` and
412
+ `runner download REF --output DIR --content-digest SHA256` use the execution domain.
413
+ Trial Artifact publication is `el trial artifact create --file manifest.json --directory ./outputs`.
414
+ `trial artifact download --ref URI --output DIR --content-digest SHA256` downloads one fixed
415
+ ANS directory; `trial artifact download TRIAL_ID --output DIR` downloads all uploaded Trial files.
416
+ These execution-owned records are excluded from Assets.
@@ -16,7 +16,7 @@ unreleased features.
16
16
  | Unreleased source enhancement | Published 1.33.0 |
17
17
  | --- | --- |
18
18
  | Explicit `--json` for `el runner get\|create\|update\|delete` | These commands already output JSON; omit `--json` |
19
- | `el data upload harbor --update-digests` | not available; set `[[tasks]] digest` values by hand |
19
+ | `el dataset create --format harbor --update-digests` | not available; set `[[tasks]] digest` values by hand |
20
20
  | `el trial artifact download TRIAL_ID --output DIRECTORY` | positional `DIRECTORY` only |
21
21
 
22
22
  Execution also requires a matching platform, project permissions and published
@@ -50,7 +50,7 @@ uv pip install --upgrade envloop-cli
50
50
  python3.12 -m pip install --upgrade envloop-cli
51
51
  ```
52
52
 
53
- Every installation includes Jobs, Trials, training, logs, inference calls, Data resources, checkpoints and RSI Loop controls.
53
+ Every installation includes Jobs, Trials, training, logs, inference calls, Assets, checkpoints and RSI Loop controls.
54
54
  Check that the SDK can be imported:
55
55
 
56
56
  ```bash
@@ -69,19 +69,19 @@ One `envloop-cli` wheel and source archive contain all feature code. Extras add
69
69
 
70
70
  ```bash
71
71
  python -m pip install envloop-cli
72
- python -m pip install "envloop-cli[data]"
73
- python -m pip install "envloop-cli[data,experiment,rsi-loop]"
72
+ python -m pip install "envloop-cli[asset]"
73
+ python -m pip install "envloop-cli[asset,experiment,rsi-loop]"
74
74
  ```
75
75
 
76
- Every installation includes the existing Job, Trial, Data and RSI Loop commands, and every `--help` works without extras. The bare installation and `default`, `experiment`, `rsi-loop` groups have no runtime dependencies. `data` adds `envloop-envhub==1.23.0` for ANS parsing, file-manifest publication and verified directory downloads. Other Data API operations use the bundled client implementation. A command that needs the missing ANS dependency stops with `FEATURE_NOT_INSTALLED` and the `envloop-cli[data]` installation instruction.
76
+ Every installation includes the existing Job, Trial, Assets and RSI Loop commands, and every `--help` works without extras. The bare installation and `default`, `experiment`, `rsi-loop` groups have no runtime dependencies. `asset` adds `envloop-envhub==1.23.0` for ANS parsing and verified content, and `boto3==1.44.3` for direct object storage transfers. Other Assets API operations use the bundled client implementation. A command that needs the missing ANS dependency stops with `FEATURE_NOT_INSTALLED` and the `envloop-cli[asset]` installation instruction.
77
77
 
78
78
  Feature modules load lazily. Default imports, help and experiment operations do not require EnvHub or certifi. Only the single `envloop-cli` distribution owns the `el` / `envloop` scripts. The examples below require an authorized matching platform; installation does not grant permissions.
79
79
 
80
- Versions 1.23.0 and 1.24.0 on PyPI depend on feature packages that were never published: their `data` extra cannot be installed and the DATA command group is empty. They also install a separate `envloop-cli-experiment` package that shares files with this release. Remove both before installing; uninstalling `envloop-cli-experiment` after an upgrade deletes files the client needs and leads to `FEATURE_NOT_INSTALLED`, which the same commands repair:
80
+ Versions 1.23.0 and 1.24.0 on PyPI depend on feature packages that were never published: their historical `data` extra cannot be installed and their DATA command group is empty. They also install a separate `envloop-cli-experiment` package that shares files with this release. Remove both before installing; uninstalling `envloop-cli-experiment` after an upgrade deletes files the client needs and leads to `FEATURE_NOT_INSTALLED`, which the same commands repair:
81
81
 
82
82
  ```bash
83
83
  python -m pip uninstall -y envloop-cli envloop-cli-experiment
84
- python -m pip install "envloop-cli[data]"
84
+ python -m pip install "envloop-cli[asset]"
85
85
  ```
86
86
 
87
87
  ## Connect
@@ -187,7 +187,9 @@ el job submit --type train --profile team/sft@3 \
187
187
  --input eval_dataset=envloop://datasets/envloop/pev@1.0.4 --input-split eval_dataset=validation
188
188
  ```
189
189
  `--profile` and `--spec` are mutually exclusive. Named Profile parameter names
190
- retain their case and duplicates are rejected.
190
+ retain their case and duplicates are rejected. Without input overrides, v4/v5
191
+ Profiles use a canonical JobSpec after one public schema lookup; explicit values
192
+ go in `overrides`, while the platform freezes Profile defaults and inputs.
191
193
 
192
194
  With a matching platform and a published `envloop/base` ANS Runner, submit a
193
195
  Sandbox Job without a Dataset:
@@ -206,6 +208,18 @@ by the server. Job logs retain the actual captured output and collection metadat
206
208
  Failures include a code, readable explanation, HTTP status when available, and
207
209
  recovery guidance without echoing arbitrary response bodies or credentials.
208
210
 
211
+ Bench/Sandbox Harbor Recipes accept `--harbor_env docker|process` with a canonical
212
+ JobSpec (`spec.schema = "envloop.job/v1"`) or a named `--profile`:
213
+
214
+ ```bash
215
+ el job submit --type sandbox --spec REQUEST.json --harbor_env process
216
+ ```
217
+
218
+ Omitting the option preserves spec/Profile parameters and the Runner default
219
+ (`docker`). An explicit option overrides the file's `harbor_env` parameter;
220
+ setting the same key with `--params` is rejected. The option selects Harbor's
221
+ task environment; platform execution placement remains server configured.
222
+
209
223
  ## Existing installations
210
224
 
211
225
  This distribution provides both the CLI and the `envloop` import package. Use a
@@ -230,6 +244,7 @@ Prepare a recipe-supported `REQUEST.json` using the [SFT quickstart](https://doc
230
244
  Training uses billable resources. Check your project permissions, balance and data format, then submit once:
231
245
 
232
246
  ```bash
247
+ el job resolve --spec REQUEST.json --json
233
248
  el job submit --type train --spec REQUEST.json
234
249
  el job get JOB_ID
235
250
  el job log JOB_ID --follow
@@ -239,9 +254,19 @@ el checkpoint list --job-id JOB_ID
239
254
 
240
255
  `job submit --spec` reads the complete Job specification JSON file for Train or Inference.
241
256
  The former `job submit --file` option is removed; the JSON payload is unchanged.
257
+ `job resolve --spec FILE --json` previews the resolved specification without creating a Job.
258
+ Artifact downloads transfer directly from object storage and require `envloop-cli[asset]`; without it they stop with `FEATURE_NOT_INSTALLED` and the install command.
242
259
 
243
260
  Replace `JOB_ID` with the receipt's value. Read the training status and logs, then find the registered checkpoint after success.
244
261
  Ctrl-C ends log reading; to stop training, use `el job stop JOB_ID` and check its state and resource cleanup.
262
+ A platform-authorized Train worker publishes its saved checkpoints directly to object storage:
263
+
264
+ ```bash
265
+ el checkpoint create --result /output/train-result.json --directory /output --json
266
+ ```
267
+
268
+ Install `envloop-cli[asset]` for this operation. The saved `envloop.train-result/v1` descriptors locate the checkpoint directories. The platform supplies producer identity from its worker credential; ordinary project keys cannot claim a Job or Trial. Success returns `durable: true`, `upload_actor: "worker"`, and committed checkpoint receipts with real ANS URIs and manifest SHA-256 values. Local save names and directories are preserved; the published save name is `checkpoint-N` for step N.
269
+
245
270
  See [Checkpoints](https://docs.envloop.ai/training/checkpoints) to download or delete saved weights.
246
271
 
247
272
  The built-in SFT recipe does not support custom loss, RL or optimizer-state resume.
@@ -304,28 +329,70 @@ Use the exact model returned by the Job. The SDK forwards the payload to the
304
329
  Job's `/inference/decision` API; the approved plugin validates its business fields.
305
330
  Availability requires matching platform support and approved content in your project.
306
331
 
307
- ## ANS data and verified downloads
332
+ ## User Assets and verified downloads
308
333
 
309
- `client.data.download_directory(uri, destination)` and `el data download DATA_ID|URI --output ./content`
310
- download a complete registered ANS object directory through EnvHub. Datasets require
311
- `split="lite"` / `--split lite` (the error lists the declared splits); the Dataset version and filenames are preserved. After API
312
- authorization the SDK uses GET URLs valid for up to five minutes, verifies file size/SHA-256,
313
- and installs the directory atomically. Matching platform support is required.
314
-
315
- A compatible server is required. Data uses the permission of the resource it touches: read (for example `datasets.read`) to query and download, write to publish and upload, delete to retire; a key from `el auth login` follows your project role. The current login selects the base URL, workspace and project; there is no `--env` flag. After configuring the Key using `el auth config`:
334
+ Datasets, Checkpoints, Recipes and Profiles share `list`, `get`, `create`, `update`, `delete`
335
+ and `set-visibility`. Every list row is an immutable version. A REF is an opaque resource ID,
336
+ a fixed ANS URI supported by that type, or `namespace/name@version`; a bare name is rejected.
337
+ `get/create/update` return `{ "asset": RECORD_OR_NULL, "operation": OPERATION_OR_NULL }`.
338
+ Records share `asset_id/type/name/version/owner/visibility/acl_revision/status`; type details,
339
+ files, model identity and provenance stay in `asset.details`.
316
340
 
317
341
  ```bash
318
- el data list --type dataset --json
319
- el data get DATA_ID --json
320
- el data download DATA_ID --file FILE_ID --output ./dataset.tgz --resume --json
342
+ el dataset list --name example/eval --json
343
+ el dataset create --file dataset.json --directory ./files --tags 'topic:finance' --wait
344
+ el dataset get example/eval@1.0 --json
345
+ el dataset file list example/eval@1.0
346
+ el dataset download example/eval@1.0 --split test --output ./content
347
+ el dataset create --format harbor --directory ./tasks --name example/eval --version 1.0
348
+ el dataset registration create example/eval@1.0 --runner envloop/harbor@FULL_COMMIT --wait
349
+ el recipe create --directory ./recipe --revision FULL_COMMIT --wait
350
+ el checkpoint create --model example/model --revision FULL_MODEL_COMMIT
351
+ el checkpoint create --result train-result.json --checkpoint-name checkpoint-100 --directory ./outputs
352
+ el profile create --name example/train --version 1.0 --file profile.toml --secret HF_TOKEN=env:HF_TOKEN
353
+ el profile update example/train@1.0 --version 2.0 --patch changes.toml
354
+ el profile export example/train@2.0 --output ./profile.toml
355
+ el dataset set-visibility example/eval@1.0 --visibility internal --expected-acl-revision 3
321
356
  ```
322
357
 
323
- Unified ANS CRUD supports Dataset, Runner, Recipe and HF model Checkpoint registrations through `el data` and `client.data`. Dataset/Runner/Recipe creation requires a native `--manifest` and exact `--directory`; a Recipe may instead be built from a directory holding a committed `recipe.toml` (`envloop.recipe/v2`) and `entrypoint.sh` with `el data create --type recipe --directory DIR [--revision REF]` (SDK `client.data.create(type="recipe", directory=DIR)`). For Dataset create/update/upload, `--ref` (SDK `ref`) is optional when `dataset.namespace`, `dataset.name` and `dataset.version` are present in the manifest; EnvHub derives the immutable Dataset URI. Other resource types and manifests without that identity still require an explicit ref. Explicit refs remain supported; the platform validates their consistency with the manifest. HF metadata registration uses `el data create --type checkpoint --model namespace/model --revision FULL_COMMIT`; SDK uses `create(kind="checkpoint", model=..., revision=...)`. HF weights are not downloaded, and artifact imports do not establish Model or Job checkpoint provenance. While native publication runs, `create`/`update` repeat the same idempotent request until ready (`--timeout`, default 3600 s); `--no-wait` / `wait=False` returns the pending `publishing` resource with resume instructions.
324
-
325
- `el data upload harbor DIR --name NAMESPACE/NAME --version VERSION` (SDK `client.data.upload(DIR, dataset=..., version=...)`) checks the directory before uploading and lists every Task whose `[[tasks]] digest` in `dataset.toml` no longer matches its files. After reviewing the Task changes, add `--update-digests` (SDK `update_digests=True`) to rewrite only those digest values, using the same Task fingerprint that registration verifies; nothing is written when the digests already match or the directory fails any other check, and the rewrite is reported on stderr (`updated_digests` in the JSON). A version that was already published stays immutable on the platform: publish changed Tasks under a new version.
358
+ `--file` supplies a complete declaration; `--patch` is Profile update's explicit patch mode.
359
+ An update creates a new immutable version owned by the current Project and leaves Profile defaults
360
+ and submitted Job references unchanged. Profile default changes use `set-default REF --expected-version V`.
361
+ Profile supports private/public; other user content also supports internal. The returned ACL scope
362
+ states whether sharing affects a name's versions or one saved record. Every visibility write requires
363
+ an explicit `--expected-acl-revision`.
364
+
365
+ A create/update establishes a unique publication operation and transfers verified bytes. Without
366
+ `--wait`, pending results preserve the operation ID and may have `asset: null`; an upload or staging
367
+ ID is never substituted for a real asset ID. Use `RESOURCE upload get OPERATION_ID`,
368
+ `upload part UPLOAD_ID --number N --file PART`, `upload complete OPERATION_ID` or
369
+ `upload abort OPERATION_ID` to inspect/resume that operation. Complete is idempotent and is the
370
+ only publication commit; there is no separate upload create command. Failed or timed-out operations
371
+ exit nonzero while preserving their safe receipt. Storage credentials are not printed.
372
+
373
+ Dataset downloads require an explicit split and accept config, content digest and paired task ID/tree
374
+ digest selectors. Downloads verify manifests, sizes, SHA-256, safe paths and executable bits. Use
375
+ `download REF --file-id FILE_ID --output FILE --resume` for a resumable single file. File selection
376
+ is separate from `get`; Profile uses a redacted `export` instead of a content download.
377
+
378
+ Worker checkpoint publication selects exactly one saved descriptor. Multi-save result files require
379
+ `--checkpoint-name`. Producer identity comes only from the platform-issued worker credential;
380
+ ordinary project keys cannot invent Job/Trial provenance. External HF metadata registration does
381
+ not download weights or establish training provenance.
382
+
383
+ The SDK uses `client.datasets/checkpoints/recipes/profiles` for typed operations and
384
+ `client.assets.list/get` for read-only aggregation. Examples:
326
385
 
327
- `el runner create DIRECTORY [--revision FULL_COMMIT|BRANCH|TAG] [--source-ref main]` (default `--revision main`, resolved locally and refused unless the directory matches that commit) publishes a Runner package directory through the same Data API with the manifest built for you, then reads the catalog revision back. `el profile create|update|fork ... --secret NAME[=prompt|stdin|env:VAR|file:PATH]` stores write-only Secret parameters whose names follow the platform's credential rule or `secret_params`; values never come from the command line. `el setting model-access grant NAMESPACE/NAME --protocol anthropic [--revision FULL_COMMIT]` (project Admin) lets a published Runner receive the project's metered model key on Fly Trials; `list` and `revoke GRANT_ID` manage grants.
328
-
329
- Success follows native storage and original catalog readback and returns an `ans_` identity. Update publishes an explicit new revision. Delete checks active and unknown dependencies; Runner deletion covers all revisions. Historical bytes and quota usage remain. Commands default to the current login base URL/workspace/project, with no `--env`. Both Data grants and the corresponding resource capabilities are required.
386
+ ```python
387
+ client.datasets.create(manifest=manifest, files=files, wait=True, tags={"topic": "finance"})
388
+ client.datasets.download("example/eval@1.0", "./content", split="test")
389
+ client.profiles.update("example/train@1.0", version="2.0", patch={"params": {"seed": 2}})
390
+ ```
330
391
 
331
- Read methods include `list/get/files/open/download`; `client.recipes.list/get` queries the original Recipe catalog. Downloads verify size/SHA-256 and refuse existing destinations, symlinks and storage redirects. Large payloads use multipart with stable idempotency keys. Staging `pub_` IDs and failure phases support retry; they are not native success. Matching client/server support is required. See the [Data reference](https://docs.envloop.ai/reference/cli#data-commands).
392
+ Runner is a platform execution capability under Experiment. Its existing package command remains
393
+ `el runner create DIRECTORY --revision FULL_COMMIT`; `runner list --ref REF` and
394
+ `runner download REF --output DIR --content-digest SHA256` use the execution domain.
395
+ Trial Artifact publication is `el trial artifact create --file manifest.json --directory ./outputs`.
396
+ `trial artifact download --ref URI --output DIR --content-digest SHA256` downloads one fixed
397
+ ANS directory; `trial artifact download TRIAL_ID --output DIR` downloads all uploaded Trial files.
398
+ These execution-owned records are excluded from Assets.
@@ -3,10 +3,13 @@ from ._optional import install_legacy_imports
3
3
  from .client import Client
4
4
 
5
5
  install_legacy_imports()
6
- __all__ = ['Client', 'DecisionClient']
6
+ __all__ = ['Client', 'DecisionClient', 'ByteRange']
7
7
 
8
8
 
9
9
  def __getattr__(name: str):
10
+ if name == 'ByteRange':
11
+ from ._optional import feature_attribute
12
+ return feature_attribute('asset','transfer','ByteRange')
10
13
  if name == 'DecisionClient':
11
14
  from ._optional import feature_attribute
12
15
  return feature_attribute('experiment', 'decision', name)
@@ -13,11 +13,11 @@ from importlib.machinery import ModuleSpec
13
13
  from types import ModuleType
14
14
  from typing import Any, override
15
15
 
16
- FEATURES = {'data': 'envloop_data', 'experiment': 'envloop_experiment', 'rsi-loop': 'envloop_rsi_loop'}
16
+ FEATURES = {'asset': 'envloop_asset', 'experiment': 'envloop_experiment', 'rsi-loop': 'envloop_rsi_loop'}
17
17
  FEATURE_COMMANDS = {
18
- 'data': {
18
+ 'asset': {
19
19
  'dataset': 'Discover Datasets, revisions and tasks',
20
- 'data': 'Manage versioned Data resources and verified file downloads',
20
+ 'recipe': 'Publish and manage immutable Recipes',
21
21
  'runner': 'Discover available Runner revisions',
22
22
  'checkpoint': 'List, share and download saved training Checkpoints',
23
23
  'profile': 'Manage platform runtime Profiles',
@@ -32,16 +32,16 @@ FEATURE_COMMANDS = {
32
32
  }
33
33
 
34
34
  MODULES: dict[str, str] = {
35
- **dict.fromkeys('data data_publications data_upload data_cli profile_updates recipes'.split(), 'data'),
35
+ **dict.fromkeys('profile_updates recipes'.split(), 'asset'),
36
36
  **dict.fromkeys('train train_progress train_metrics_cli train_runner_cli train_log_cli job_logs job_cost inference decision sandbox runtime_params job_spec_cli training'.split(), 'experiment'),
37
37
  **dict.fromkeys('loops'.split(), 'rsi-loop'),
38
38
  }
39
39
  CLIENTS = {
40
- **{name: ('data', 'client') for name in ('ProfileService', 'RunnerService', 'Profiles', 'Runners')},
40
+ **{name: ('asset', 'client') for name in ('ProfileService', 'RunnerService', 'Profiles', 'Runners')},
41
41
  **{name: ('experiment', 'client') for name in ('TrialService', 'RpcService', 'load_task', 'validate_command', 'dataset_selector', 'Trials', 'runner_selector', 'job_budget', 'Jobs')},
42
42
  **{name: ('base', 'downloads') for name in ('ArtifactError', 'artifact_path')},
43
43
  }
44
- DATA_ENDPOINTS = set('open_download resolve_dataset list_runners get_runner_revision register_runner_revision runner_path profile_path put_profile list_profiles get_profile resolve_profile set_default_profile archive_profile set_profile_visibility fork_profile revoke_profile_secret export_profile import_profile open_checkpoint_archive'.split())
44
+ ASSET_ENDPOINTS = set('open_download resolve_dataset list_runners get_runner_revision register_runner_revision runner_path profile_path put_profile list_profiles get_profile resolve_profile set_default_profile archive_profile set_profile_visibility fork_profile revoke_profile_secret export_profile import_profile open_checkpoint_archive'.split())
45
45
  EXPERIMENT_ENDPOINTS = set('submit_job get_job get_job_result get_job_logs list_jobs job_action job_events stop_job list_trials get_task_run get_trial_detail get_trial_training list_trial_metrics list_trial_checkpoints get_task_result get_task_snapshot stop_task list_trial_artifacts open_trial_artifact'.split())
46
46
 
47
47
 
@@ -79,18 +79,18 @@ def available(feature: str):
79
79
  return importlib.util.find_spec(FEATURES[feature]) is not None
80
80
 
81
81
 
82
- def require_data_dependencies():
82
+ def require_asset_dependencies():
83
83
  """Only ANS operations need the public protocol/download dependency."""
84
84
  if importlib.util.find_spec('envhub') is None:
85
- raise MissingFeatureError('data')
85
+ raise MissingFeatureError('asset')
86
86
 
87
87
 
88
88
  def missing_feature(error: BaseException) -> MissingFeatureError | None:
89
- """Treat a deferred import of the public ANS dependency as the missing [data] extra."""
89
+ """Treat a deferred import of the public ANS dependency as the missing [asset] extra."""
90
90
  if isinstance(error, MissingFeatureError):
91
91
  return error
92
92
  if isinstance(error, ModuleNotFoundError) and isinstance(error.name, str) and error.name.partition('.')[0] == 'envhub':
93
- return MissingFeatureError('data')
93
+ return MissingFeatureError('asset')
94
94
  return None
95
95
 
96
96
 
@@ -116,8 +116,8 @@ def client_attribute(name: str):
116
116
 
117
117
 
118
118
  def endpoint(name: str):
119
- if name in DATA_ENDPOINTS:
120
- feature = 'data'
119
+ if name in ASSET_ENDPOINTS:
120
+ feature = 'asset'
121
121
  elif name in EXPERIMENT_ENDPOINTS:
122
122
  feature = 'experiment'
123
123
  else:
@@ -128,7 +128,7 @@ def endpoint(name: str):
128
128
 
129
129
  def navigation(name: str):
130
130
  if name in {'Datasets', 'Checkpoints', '_checkpoint_matches', '_checkpoint_target', '_verified_checkpoint_file'}:
131
- return feature_attribute('data', 'navigation_resources', name)
131
+ return feature_attribute('asset', 'navigation_resources', name)
132
132
  if name in {'Inference', 'InferenceResource'}:
133
133
  return feature_attribute('experiment', 'navigation_resources', name)
134
134
  raise AttributeError(name)
@@ -144,14 +144,18 @@ def client_resource(client: Any, name: str):
144
144
  return feature_attribute('experiment', 'navigation_resources', 'Dashboard')(client.project, client.jobs, client.training_jobs)
145
145
  from .navigation_resources import Dashboard
146
146
  return Dashboard(client.project)
147
- if name in {'profiles', 'runners'}:
148
- return feature_attribute('data', 'client', name.capitalize())(server)
149
- if name in {'data', 'recipes'}:
150
- return feature_attribute('data', name, name.capitalize())(server)
147
+ if name == 'profiles':
148
+ return feature_attribute('asset', 'assets', 'ProfileAssets')(server)
149
+ if name == 'runners':
150
+ return feature_attribute('asset', 'client', name.capitalize())(server)
151
+ if name == 'assets':
152
+ return feature_attribute('asset', 'assets', 'Assets')(server)
153
+ if name == 'recipes':
154
+ return feature_attribute('asset', 'assets', 'ContentResource')(server, 'recipe')
151
155
  if name == 'datasets':
152
- return navigation('Datasets')(server)
156
+ return feature_attribute('asset', 'assets', 'DatasetAssets')(server)
153
157
  if name == 'checkpoints':
154
- return feature_attribute('data', 'navigation_resources', 'Checkpoints')(server)
158
+ return feature_attribute('asset', 'assets', 'ContentResource')(server, 'checkpoint')
155
159
  if name == 'jobs':
156
160
  return feature_attribute('experiment', 'client', 'Jobs')(server)
157
161
  if name == 'trials':
@@ -175,9 +179,9 @@ def execute_command(args: argparse.Namespace, client: Any, cli: Any):
175
179
  if args.group == 'loop':
176
180
  return feature_module('rsi-loop', 'loop_cli').execute(args, client)
177
181
  if args.group == 'profile':
178
- return feature_module('data', 'cli').execute_profile(args, client, cli)
179
- if args.group in {'data', 'dataset', 'runner', 'checkpoint'}:
180
- return feature_module('data', 'resource_cli').execute(args, client)
182
+ return feature_module('asset', 'cli').execute_profile(args, client, cli)
183
+ if args.group in {'recipe', 'dataset', 'runner', 'checkpoint'}:
184
+ return feature_module('asset', 'resource_cli').execute(args, client)
181
185
  from .resource_cli import execute
182
186
  return execute(args, client)
183
187