apheris-foundry-cli 1.1.0__tar.gz → 2.1.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 (64) hide show
  1. {apheris_foundry_cli-1.1.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.1.0}/PKG-INFO +46 -18
  2. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/README.md +45 -17
  3. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/pyproject.toml +1 -1
  4. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0/src/apheris_foundry_cli.egg-info}/PKG-INFO +46 -18
  5. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apheris_foundry_cli.egg-info/SOURCES.txt +1 -0
  6. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/foundry.py +33 -96
  7. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/weights.py +15 -15
  8. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/main.py +28 -17
  9. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +63 -45
  10. apheris_foundry_cli-2.1.0/src/apherisfold_cli/version.py +1 -0
  11. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_benchmark_examples.py +1 -0
  12. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_cli.py +196 -17
  13. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_foundry_helpers.py +0 -89
  14. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_input_archive.py +5 -2
  15. apheris_foundry_cli-2.1.0/tests/test_jobs_metadata.py +64 -0
  16. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_msa.py +4 -0
  17. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_weights.py +48 -18
  18. apheris_foundry_cli-1.1.0/src/apherisfold_cli/version.py +0 -1
  19. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/LICENSE +0 -0
  20. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/setup.cfg +0 -0
  21. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
  22. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
  23. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
  24. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
  25. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/__init__.py +0 -0
  26. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/__init__.py +0 -0
  27. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/compounds.py +0 -0
  28. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/login.py +0 -0
  29. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/settings.py +0 -0
  30. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/commands/skills.py +0 -0
  31. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/__init__.py +0 -0
  32. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/auth.py +0 -0
  33. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/config.py +0 -0
  34. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/context.py +0 -0
  35. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/documents.py +0 -0
  36. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/errors.py +0 -0
  37. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/hub_requests.py +0 -0
  38. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/input_archive.py +0 -0
  39. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/io.py +0 -0
  40. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/limits.py +0 -0
  41. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/login_profiles.py +0 -0
  42. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/msa.py +0 -0
  43. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/pubchem.py +0 -0
  44. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/render.py +0 -0
  45. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/result_artifacts.py +0 -0
  46. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/core/transient.py +0 -0
  47. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/src/apherisfold_cli/handlers.py +0 -0
  48. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_auth.py +0 -0
  49. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_auth_lifecycle.py +0 -0
  50. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_config.py +0 -0
  51. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_documents.py +0 -0
  52. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_dry_run_guard.py +0 -0
  53. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_foundry_warnings.py +0 -0
  54. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_handlers.py +0 -0
  55. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_hub_requests.py +0 -0
  56. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_io.py +0 -0
  57. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_jobs_update.py +0 -0
  58. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_login_callback.py +0 -0
  59. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_main.py +0 -0
  60. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_model_discovery.py +0 -0
  61. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_pubchem.py +0 -0
  62. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_render.py +0 -0
  63. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_result_artifacts.py +0 -0
  64. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.1.0}/tests/test_skills.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apheris-foundry-cli
3
- Version: 1.1.0
3
+ Version: 2.1.0
4
4
  Summary: Command-line interface for Apheris Foundry workflows.
5
5
  Author: Apheris
6
6
  License-Expression: LicenseRef-Apheris-Foundry-Software-License
@@ -200,6 +200,19 @@ Submit it using your Hub's default model settings:
200
200
  apheris-foundry workflows run --workflow predict --input request.json
201
201
  ```
202
202
 
203
+ Optionally add a name and one or more tags when submitting:
204
+
205
+ ```bash
206
+ apheris-foundry workflows run --workflow predict --input request.json \
207
+ --name "Kinase pilot" --tag kinase --tag pilot
208
+ ```
209
+
210
+ Omit `--name` for an unnamed run and omit `--tag` for an untagged run. Repeat
211
+ `--tag` for multiple tags. Hub validates and normalizes tags, trimming whitespace,
212
+ removing empty tags and deduplicating them. `jobs list` shows the saved name and
213
+ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
214
+ fields in detail. Missing names and tags appear as `—`.
215
+
203
216
  Repeat `--input` to upload several files for one run, as AQCell inference takes
204
217
  compounds, cell lines and a config together (the
205
218
  [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
@@ -280,7 +293,7 @@ apheris-foundry workflows models --workflow predict --weight of3p2
280
293
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
281
294
  apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
282
295
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
283
- apheris-foundry weights deploy --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
296
+ apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
284
297
  # 4. It now appears as a weight in step 1; manage it by ID
285
298
  apheris-foundry weights list
286
299
  apheris-foundry weights delete --id <weight-id> --yes
@@ -330,7 +343,7 @@ the metadata change notification.
330
343
  | `apheris-foundry workflows docs --workflow <id>` | Read the workflow's documentation, as its package ships it (`--json` includes the content digest) |
331
344
  | `apheris-foundry workflows models --workflow <id> [--capability <name>]` | List models, weights and defaults advertised by Hub (`--json` includes full metadata) |
332
345
  | `apheris-foundry workflows graph --workflow <id>` | Show the workflow DAG |
333
- | `apheris-foundry workflows run --workflow <id> [--name <name>] [--model-params <JSON\|@file>]` | Submit a workflow run with Hub-schema-validated model parameters |
346
+ | `apheris-foundry workflows run --workflow <id> [--name <name>] [--tag <tag> ...] [--model-params <JSON\|@file>]` | Submit a workflow run with optional name/tags and Hub-schema-validated model parameters |
334
347
 
335
348
  ### Run instances (`runs`)
336
349
 
@@ -384,13 +397,13 @@ Contact [support@apheris.com](mailto:support@apheris.com) for access and deploym
384
397
 
385
398
  ### Model weights (`weights`)
386
399
 
387
- `weights` manages weights deployed from completed jobs: deploy, list, inspect,
400
+ `weights` manages weights enabled from completed jobs: enable, list, inspect,
388
401
  rename or relabel, share and delete. Every command accepts `--json`, which
389
402
  prints Hub's response unchanged.
390
403
 
391
404
  ```sh
392
- # 1. Deploy a job artifact (private by default)
393
- apheris-foundry weights deploy --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
405
+ # 1. Enable weights from a job artifact (private by default)
406
+ apheris-foundry weights enable --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
394
407
  # 2. Label or rename it; --tag replaces the whole tag set, --clear-tags removes it
395
408
  apheris-foundry weights update --id <weight-id> --tag trial --tag benchmark --name <new-name>
396
409
  # 3. Find and inspect it
@@ -404,6 +417,10 @@ apheris-foundry weights delete --id <weight-id> --yes
404
417
  apheris-foundry weights delete --id <weight-id> --delete-files --yes
405
418
  ```
406
419
 
420
+ `weights enable` matches the UI’s “Enable weights” action and replaces
421
+ `weights deploy`. Update existing scripts to use `weights enable`; the old
422
+ command is no longer supported. The Hub API endpoint remains `/api/v1/weights/deploy`.
423
+
407
424
  `weights list` lists your weights plus weights other users shared. Filter with
408
425
  `--run-id`, `--model`, `--version`, `--task` or repeated `--tag` (a weight must
409
426
  carry every tag). `--model` and `--version` together also include the model's
@@ -415,7 +432,7 @@ report visibility (`isPublic`) and deletion (`isDeleted`) separately.
415
432
  `weights get --id` shows one weight in full, including its producing job,
416
433
  lineage and who shared it when.
417
434
 
418
- `weights deploy` registers a job artifact through Hub; it does not upload local
435
+ `weights enable` registers a job artifact through Hub; it does not upload local
419
436
  weights or start prediction. `--name` is required: use an instance-wide unique
420
437
  name of 1–255 characters after trimming whitespace, without control characters.
421
438
  Names are case-sensitive and must be unique among active weights; deleting a
@@ -424,14 +441,14 @@ is separate metadata and does not replace the name. Use the path shown by
424
441
  `jobs get`, including the complete directory for AQCell bundles. Optional
425
442
  `--task`, `--description`, `--derived-from`, repeated `--capability` and
426
443
  repeated `--tag` values accompany the request; Hub derives and validates model
427
- identity and ownership. `--dry-run true weights deploy ...` prints the request
444
+ identity and ownership. `--dry-run true weights enable ...` prints the request
428
445
  without submission. Verify selection in the target workflow's model catalog
429
446
  before reuse.
430
447
 
431
- **Sharing.** Deployments are private. `--public` shares a weight with every
448
+ **Sharing.** Enabled weights are private. `--public` shares a weight with every
432
449
  authenticated user of this Hub; they can list, inspect and run with it, but only
433
- the owner can update or delete it. Hub fixes visibility at deployment: to stop
434
- sharing a weight, delete it, and redeploy under a new name if you still need a
450
+ the owner can update or delete it. Hub fixes visibility when enabling: to stop
451
+ sharing a weight, delete it, and enable under a new name if you still need a
435
452
  private copy. Mutating a weight you do not own fails with "Only the owner can
436
453
  update or delete a weight".
437
454
 
@@ -447,8 +464,8 @@ remain; retry after the jobs finish. JSON success reports `cleanup: "removed"`
447
464
  when deleting files and `cleanup: "deferred"` for soft deletion; deferred
448
465
  cleanup requires an explicit `--delete-files` request.
449
466
 
450
- Hub copies deployed checkpoints into independent storage, so deleting the
451
- producing job (`jobs delete`) retains its deployed weights, including shared
467
+ Hub copies enabled checkpoints into independent storage, so deleting the
468
+ producing job (`jobs delete`) retains its enabled weights, including shared
452
469
  ones. These storage semantics and file removal require a Hub containing
453
470
  [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
454
471
  file-removal request; upgrade Hub before using this option.
@@ -456,15 +473,15 @@ file-removal request; upgrade Hub before using this option.
456
473
  record. The delete preview includes `deleteFiles`; it does not check active
457
474
  jobs or remove files.
458
475
 
459
- CLI 0.10.0 has no `weights deploy --name` option and cannot satisfy a Hub that
460
- requires a deployment name. Use a CLI release containing this option; retrying
461
- the same command or adding `--description` will not resolve that incompatibility.
476
+ Use a CLI release that supports `weights enable --name`. Upgrade if this
477
+ command is unavailable; adding `--description` does not replace the required
478
+ weight name.
462
479
 
463
480
  Some workflows accept checkpoint files directly. Read the active workflow's
464
- skill before deploying: `affinity-predict-from-embeddings` documents uploading
481
+ skill before enabling weights: `affinity-predict-from-embeddings` documents uploading
465
482
  the selected affinity-head checkpoint as `checkpoint.ckpt` alongside
466
483
  `test_queries.yaml` (or JSON), referenced MSAs and optional labels. That route
467
- does not require catalog deployment or `--weight`. Its `of3Checkpoint` parameter
484
+ does not require enabling weights in the catalog or `--weight`. Its `of3Checkpoint` parameter
468
485
  selects the separate OpenFold3 trunk, not the affinity head. Report prediction
469
486
  submission/completion separately from weight registration.
470
487
 
@@ -515,3 +532,14 @@ that fewer rows were returned.
515
532
 
516
533
  See [the usage guide](docs/usage.md#find-jobs)
517
534
  for model, date, duration, and sorting options, which are hidden from default help.
535
+
536
+ ### Research previews
537
+
538
+ Workflow and model listings mark early releases as **Research preview**. Workflow
539
+ and model details explain that features may be incomplete or contain bugs and
540
+ results may vary. Running a preview prints the notice to stderr, including with
541
+ `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
542
+ is preserved in workflow/model JSON output; missing or false shows no label.
543
+ CLI-only access and preview status are independent.
544
+ Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
545
+ not fetch preview metadata or print a preview notice.
@@ -174,6 +174,19 @@ Submit it using your Hub's default model settings:
174
174
  apheris-foundry workflows run --workflow predict --input request.json
175
175
  ```
176
176
 
177
+ Optionally add a name and one or more tags when submitting:
178
+
179
+ ```bash
180
+ apheris-foundry workflows run --workflow predict --input request.json \
181
+ --name "Kinase pilot" --tag kinase --tag pilot
182
+ ```
183
+
184
+ Omit `--name` for an unnamed run and omit `--tag` for an untagged run. Repeat
185
+ `--tag` for multiple tags. Hub validates and normalizes tags, trimming whitespace,
186
+ removing empty tags and deduplicating them. `jobs list` shows the saved name and
187
+ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
188
+ fields in detail. Missing names and tags appear as `—`.
189
+
177
190
  Repeat `--input` to upload several files for one run, as AQCell inference takes
178
191
  compounds, cell lines and a config together (the
179
192
  [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
@@ -254,7 +267,7 @@ apheris-foundry workflows models --workflow predict --weight of3p2
254
267
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
255
268
  apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
256
269
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
257
- apheris-foundry weights deploy --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
270
+ apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
258
271
  # 4. It now appears as a weight in step 1; manage it by ID
259
272
  apheris-foundry weights list
260
273
  apheris-foundry weights delete --id <weight-id> --yes
@@ -304,7 +317,7 @@ the metadata change notification.
304
317
  | `apheris-foundry workflows docs --workflow <id>` | Read the workflow's documentation, as its package ships it (`--json` includes the content digest) |
305
318
  | `apheris-foundry workflows models --workflow <id> [--capability <name>]` | List models, weights and defaults advertised by Hub (`--json` includes full metadata) |
306
319
  | `apheris-foundry workflows graph --workflow <id>` | Show the workflow DAG |
307
- | `apheris-foundry workflows run --workflow <id> [--name <name>] [--model-params <JSON\|@file>]` | Submit a workflow run with Hub-schema-validated model parameters |
320
+ | `apheris-foundry workflows run --workflow <id> [--name <name>] [--tag <tag> ...] [--model-params <JSON\|@file>]` | Submit a workflow run with optional name/tags and Hub-schema-validated model parameters |
308
321
 
309
322
  ### Run instances (`runs`)
310
323
 
@@ -358,13 +371,13 @@ Contact [support@apheris.com](mailto:support@apheris.com) for access and deploym
358
371
 
359
372
  ### Model weights (`weights`)
360
373
 
361
- `weights` manages weights deployed from completed jobs: deploy, list, inspect,
374
+ `weights` manages weights enabled from completed jobs: enable, list, inspect,
362
375
  rename or relabel, share and delete. Every command accepts `--json`, which
363
376
  prints Hub's response unchanged.
364
377
 
365
378
  ```sh
366
- # 1. Deploy a job artifact (private by default)
367
- apheris-foundry weights deploy --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
379
+ # 1. Enable weights from a job artifact (private by default)
380
+ apheris-foundry weights enable --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
368
381
  # 2. Label or rename it; --tag replaces the whole tag set, --clear-tags removes it
369
382
  apheris-foundry weights update --id <weight-id> --tag trial --tag benchmark --name <new-name>
370
383
  # 3. Find and inspect it
@@ -378,6 +391,10 @@ apheris-foundry weights delete --id <weight-id> --yes
378
391
  apheris-foundry weights delete --id <weight-id> --delete-files --yes
379
392
  ```
380
393
 
394
+ `weights enable` matches the UI’s “Enable weights” action and replaces
395
+ `weights deploy`. Update existing scripts to use `weights enable`; the old
396
+ command is no longer supported. The Hub API endpoint remains `/api/v1/weights/deploy`.
397
+
381
398
  `weights list` lists your weights plus weights other users shared. Filter with
382
399
  `--run-id`, `--model`, `--version`, `--task` or repeated `--tag` (a weight must
383
400
  carry every tag). `--model` and `--version` together also include the model's
@@ -389,7 +406,7 @@ report visibility (`isPublic`) and deletion (`isDeleted`) separately.
389
406
  `weights get --id` shows one weight in full, including its producing job,
390
407
  lineage and who shared it when.
391
408
 
392
- `weights deploy` registers a job artifact through Hub; it does not upload local
409
+ `weights enable` registers a job artifact through Hub; it does not upload local
393
410
  weights or start prediction. `--name` is required: use an instance-wide unique
394
411
  name of 1–255 characters after trimming whitespace, without control characters.
395
412
  Names are case-sensitive and must be unique among active weights; deleting a
@@ -398,14 +415,14 @@ is separate metadata and does not replace the name. Use the path shown by
398
415
  `jobs get`, including the complete directory for AQCell bundles. Optional
399
416
  `--task`, `--description`, `--derived-from`, repeated `--capability` and
400
417
  repeated `--tag` values accompany the request; Hub derives and validates model
401
- identity and ownership. `--dry-run true weights deploy ...` prints the request
418
+ identity and ownership. `--dry-run true weights enable ...` prints the request
402
419
  without submission. Verify selection in the target workflow's model catalog
403
420
  before reuse.
404
421
 
405
- **Sharing.** Deployments are private. `--public` shares a weight with every
422
+ **Sharing.** Enabled weights are private. `--public` shares a weight with every
406
423
  authenticated user of this Hub; they can list, inspect and run with it, but only
407
- the owner can update or delete it. Hub fixes visibility at deployment: to stop
408
- sharing a weight, delete it, and redeploy under a new name if you still need a
424
+ the owner can update or delete it. Hub fixes visibility when enabling: to stop
425
+ sharing a weight, delete it, and enable under a new name if you still need a
409
426
  private copy. Mutating a weight you do not own fails with "Only the owner can
410
427
  update or delete a weight".
411
428
 
@@ -421,8 +438,8 @@ remain; retry after the jobs finish. JSON success reports `cleanup: "removed"`
421
438
  when deleting files and `cleanup: "deferred"` for soft deletion; deferred
422
439
  cleanup requires an explicit `--delete-files` request.
423
440
 
424
- Hub copies deployed checkpoints into independent storage, so deleting the
425
- producing job (`jobs delete`) retains its deployed weights, including shared
441
+ Hub copies enabled checkpoints into independent storage, so deleting the
442
+ producing job (`jobs delete`) retains its enabled weights, including shared
426
443
  ones. These storage semantics and file removal require a Hub containing
427
444
  [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
428
445
  file-removal request; upgrade Hub before using this option.
@@ -430,15 +447,15 @@ file-removal request; upgrade Hub before using this option.
430
447
  record. The delete preview includes `deleteFiles`; it does not check active
431
448
  jobs or remove files.
432
449
 
433
- CLI 0.10.0 has no `weights deploy --name` option and cannot satisfy a Hub that
434
- requires a deployment name. Use a CLI release containing this option; retrying
435
- the same command or adding `--description` will not resolve that incompatibility.
450
+ Use a CLI release that supports `weights enable --name`. Upgrade if this
451
+ command is unavailable; adding `--description` does not replace the required
452
+ weight name.
436
453
 
437
454
  Some workflows accept checkpoint files directly. Read the active workflow's
438
- skill before deploying: `affinity-predict-from-embeddings` documents uploading
455
+ skill before enabling weights: `affinity-predict-from-embeddings` documents uploading
439
456
  the selected affinity-head checkpoint as `checkpoint.ckpt` alongside
440
457
  `test_queries.yaml` (or JSON), referenced MSAs and optional labels. That route
441
- does not require catalog deployment or `--weight`. Its `of3Checkpoint` parameter
458
+ does not require enabling weights in the catalog or `--weight`. Its `of3Checkpoint` parameter
442
459
  selects the separate OpenFold3 trunk, not the affinity head. Report prediction
443
460
  submission/completion separately from weight registration.
444
461
 
@@ -489,3 +506,14 @@ that fewer rows were returned.
489
506
 
490
507
  See [the usage guide](docs/usage.md#find-jobs)
491
508
  for model, date, duration, and sorting options, which are hidden from default help.
509
+
510
+ ### Research previews
511
+
512
+ Workflow and model listings mark early releases as **Research preview**. Workflow
513
+ and model details explain that features may be incomplete or contain bugs and
514
+ results may vary. Running a preview prints the notice to stderr, including with
515
+ `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
516
+ is preserved in workflow/model JSON output; missing or false shows no label.
517
+ CLI-only access and preview status are independent.
518
+ Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
519
+ not fetch preview metadata or print a preview notice.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "apheris-foundry-cli"
7
- version = "1.1.0"
7
+ version = "2.1.0"
8
8
  description = "Command-line interface for Apheris Foundry workflows."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apheris-foundry-cli
3
- Version: 1.1.0
3
+ Version: 2.1.0
4
4
  Summary: Command-line interface for Apheris Foundry workflows.
5
5
  Author: Apheris
6
6
  License-Expression: LicenseRef-Apheris-Foundry-Software-License
@@ -200,6 +200,19 @@ Submit it using your Hub's default model settings:
200
200
  apheris-foundry workflows run --workflow predict --input request.json
201
201
  ```
202
202
 
203
+ Optionally add a name and one or more tags when submitting:
204
+
205
+ ```bash
206
+ apheris-foundry workflows run --workflow predict --input request.json \
207
+ --name "Kinase pilot" --tag kinase --tag pilot
208
+ ```
209
+
210
+ Omit `--name` for an unnamed run and omit `--tag` for an untagged run. Repeat
211
+ `--tag` for multiple tags. Hub validates and normalizes tags, trimming whitespace,
212
+ removing empty tags and deduplicating them. `jobs list` shows the saved name and
213
+ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
214
+ fields in detail. Missing names and tags appear as `—`.
215
+
203
216
  Repeat `--input` to upload several files for one run, as AQCell inference takes
204
217
  compounds, cell lines and a config together (the
205
218
  [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
@@ -280,7 +293,7 @@ apheris-foundry workflows models --workflow predict --weight of3p2
280
293
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
281
294
  apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
282
295
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
283
- apheris-foundry weights deploy --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
296
+ apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
284
297
  # 4. It now appears as a weight in step 1; manage it by ID
285
298
  apheris-foundry weights list
286
299
  apheris-foundry weights delete --id <weight-id> --yes
@@ -330,7 +343,7 @@ the metadata change notification.
330
343
  | `apheris-foundry workflows docs --workflow <id>` | Read the workflow's documentation, as its package ships it (`--json` includes the content digest) |
331
344
  | `apheris-foundry workflows models --workflow <id> [--capability <name>]` | List models, weights and defaults advertised by Hub (`--json` includes full metadata) |
332
345
  | `apheris-foundry workflows graph --workflow <id>` | Show the workflow DAG |
333
- | `apheris-foundry workflows run --workflow <id> [--name <name>] [--model-params <JSON\|@file>]` | Submit a workflow run with Hub-schema-validated model parameters |
346
+ | `apheris-foundry workflows run --workflow <id> [--name <name>] [--tag <tag> ...] [--model-params <JSON\|@file>]` | Submit a workflow run with optional name/tags and Hub-schema-validated model parameters |
334
347
 
335
348
  ### Run instances (`runs`)
336
349
 
@@ -384,13 +397,13 @@ Contact [support@apheris.com](mailto:support@apheris.com) for access and deploym
384
397
 
385
398
  ### Model weights (`weights`)
386
399
 
387
- `weights` manages weights deployed from completed jobs: deploy, list, inspect,
400
+ `weights` manages weights enabled from completed jobs: enable, list, inspect,
388
401
  rename or relabel, share and delete. Every command accepts `--json`, which
389
402
  prints Hub's response unchanged.
390
403
 
391
404
  ```sh
392
- # 1. Deploy a job artifact (private by default)
393
- apheris-foundry weights deploy --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
405
+ # 1. Enable weights from a job artifact (private by default)
406
+ apheris-foundry weights enable --name <unique-name> --run-id <job-id> --path <run-relative-bundle-directory> --tag trial --json
394
407
  # 2. Label or rename it; --tag replaces the whole tag set, --clear-tags removes it
395
408
  apheris-foundry weights update --id <weight-id> --tag trial --tag benchmark --name <new-name>
396
409
  # 3. Find and inspect it
@@ -404,6 +417,10 @@ apheris-foundry weights delete --id <weight-id> --yes
404
417
  apheris-foundry weights delete --id <weight-id> --delete-files --yes
405
418
  ```
406
419
 
420
+ `weights enable` matches the UI’s “Enable weights” action and replaces
421
+ `weights deploy`. Update existing scripts to use `weights enable`; the old
422
+ command is no longer supported. The Hub API endpoint remains `/api/v1/weights/deploy`.
423
+
407
424
  `weights list` lists your weights plus weights other users shared. Filter with
408
425
  `--run-id`, `--model`, `--version`, `--task` or repeated `--tag` (a weight must
409
426
  carry every tag). `--model` and `--version` together also include the model's
@@ -415,7 +432,7 @@ report visibility (`isPublic`) and deletion (`isDeleted`) separately.
415
432
  `weights get --id` shows one weight in full, including its producing job,
416
433
  lineage and who shared it when.
417
434
 
418
- `weights deploy` registers a job artifact through Hub; it does not upload local
435
+ `weights enable` registers a job artifact through Hub; it does not upload local
419
436
  weights or start prediction. `--name` is required: use an instance-wide unique
420
437
  name of 1–255 characters after trimming whitespace, without control characters.
421
438
  Names are case-sensitive and must be unique among active weights; deleting a
@@ -424,14 +441,14 @@ is separate metadata and does not replace the name. Use the path shown by
424
441
  `jobs get`, including the complete directory for AQCell bundles. Optional
425
442
  `--task`, `--description`, `--derived-from`, repeated `--capability` and
426
443
  repeated `--tag` values accompany the request; Hub derives and validates model
427
- identity and ownership. `--dry-run true weights deploy ...` prints the request
444
+ identity and ownership. `--dry-run true weights enable ...` prints the request
428
445
  without submission. Verify selection in the target workflow's model catalog
429
446
  before reuse.
430
447
 
431
- **Sharing.** Deployments are private. `--public` shares a weight with every
448
+ **Sharing.** Enabled weights are private. `--public` shares a weight with every
432
449
  authenticated user of this Hub; they can list, inspect and run with it, but only
433
- the owner can update or delete it. Hub fixes visibility at deployment: to stop
434
- sharing a weight, delete it, and redeploy under a new name if you still need a
450
+ the owner can update or delete it. Hub fixes visibility when enabling: to stop
451
+ sharing a weight, delete it, and enable under a new name if you still need a
435
452
  private copy. Mutating a weight you do not own fails with "Only the owner can
436
453
  update or delete a weight".
437
454
 
@@ -447,8 +464,8 @@ remain; retry after the jobs finish. JSON success reports `cleanup: "removed"`
447
464
  when deleting files and `cleanup: "deferred"` for soft deletion; deferred
448
465
  cleanup requires an explicit `--delete-files` request.
449
466
 
450
- Hub copies deployed checkpoints into independent storage, so deleting the
451
- producing job (`jobs delete`) retains its deployed weights, including shared
467
+ Hub copies enabled checkpoints into independent storage, so deleting the
468
+ producing job (`jobs delete`) retains its enabled weights, including shared
452
469
  ones. These storage semantics and file removal require a Hub containing
453
470
  [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
454
471
  file-removal request; upgrade Hub before using this option.
@@ -456,15 +473,15 @@ file-removal request; upgrade Hub before using this option.
456
473
  record. The delete preview includes `deleteFiles`; it does not check active
457
474
  jobs or remove files.
458
475
 
459
- CLI 0.10.0 has no `weights deploy --name` option and cannot satisfy a Hub that
460
- requires a deployment name. Use a CLI release containing this option; retrying
461
- the same command or adding `--description` will not resolve that incompatibility.
476
+ Use a CLI release that supports `weights enable --name`. Upgrade if this
477
+ command is unavailable; adding `--description` does not replace the required
478
+ weight name.
462
479
 
463
480
  Some workflows accept checkpoint files directly. Read the active workflow's
464
- skill before deploying: `affinity-predict-from-embeddings` documents uploading
481
+ skill before enabling weights: `affinity-predict-from-embeddings` documents uploading
465
482
  the selected affinity-head checkpoint as `checkpoint.ckpt` alongside
466
483
  `test_queries.yaml` (or JSON), referenced MSAs and optional labels. That route
467
- does not require catalog deployment or `--weight`. Its `of3Checkpoint` parameter
484
+ does not require enabling weights in the catalog or `--weight`. Its `of3Checkpoint` parameter
468
485
  selects the separate OpenFold3 trunk, not the affinity head. Report prediction
469
486
  submission/completion separately from weight registration.
470
487
 
@@ -515,3 +532,14 @@ that fewer rows were returned.
515
532
 
516
533
  See [the usage guide](docs/usage.md#find-jobs)
517
534
  for model, date, duration, and sorting options, which are hidden from default help.
535
+
536
+ ### Research previews
537
+
538
+ Workflow and model listings mark early releases as **Research preview**. Workflow
539
+ and model details explain that features may be incomplete or contain bugs and
540
+ results may vary. Running a preview prints the notice to stderr, including with
541
+ `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
542
+ is preserved in workflow/model JSON output; missing or false shows no label.
543
+ CLI-only access and preview status are independent.
544
+ Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
545
+ not fetch preview metadata or print a preview notice.
@@ -48,6 +48,7 @@ tests/test_handlers.py
48
48
  tests/test_hub_requests.py
49
49
  tests/test_input_archive.py
50
50
  tests/test_io.py
51
+ tests/test_jobs_metadata.py
51
52
  tests/test_jobs_update.py
52
53
  tests/test_login_callback.py
53
54
  tests/test_main.py