apheris-foundry-cli 1.1.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 (64) hide show
  1. {apheris_foundry_cli-1.1.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.0.0}/PKG-INFO +35 -18
  2. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/README.md +34 -17
  3. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/pyproject.toml +1 -1
  4. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0/src/apheris_foundry_cli.egg-info}/PKG-INFO +35 -18
  5. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apheris_foundry_cli.egg-info/SOURCES.txt +1 -0
  6. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/foundry.py +17 -93
  7. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/weights.py +15 -15
  8. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/main.py +12 -6
  9. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +48 -45
  10. apheris_foundry_cli-2.0.0/src/apherisfold_cli/version.py +1 -0
  11. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_cli.py +93 -7
  12. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_foundry_helpers.py +0 -89
  13. apheris_foundry_cli-2.0.0/tests/test_jobs_metadata.py +64 -0
  14. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_weights.py +48 -18
  15. apheris_foundry_cli-1.1.0/src/apherisfold_cli/version.py +0 -1
  16. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/LICENSE +0 -0
  17. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/setup.cfg +0 -0
  18. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
  19. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
  20. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
  21. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
  22. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/__init__.py +0 -0
  23. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/__init__.py +0 -0
  24. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/compounds.py +0 -0
  25. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/login.py +0 -0
  26. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/settings.py +0 -0
  27. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/commands/skills.py +0 -0
  28. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/__init__.py +0 -0
  29. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/auth.py +0 -0
  30. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/config.py +0 -0
  31. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/context.py +0 -0
  32. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/documents.py +0 -0
  33. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/errors.py +0 -0
  34. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/hub_requests.py +0 -0
  35. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/input_archive.py +0 -0
  36. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/io.py +0 -0
  37. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/limits.py +0 -0
  38. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/login_profiles.py +0 -0
  39. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/msa.py +0 -0
  40. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/pubchem.py +0 -0
  41. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/render.py +0 -0
  42. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/result_artifacts.py +0 -0
  43. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/core/transient.py +0 -0
  44. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/src/apherisfold_cli/handlers.py +0 -0
  45. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_auth.py +0 -0
  46. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_auth_lifecycle.py +0 -0
  47. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_benchmark_examples.py +0 -0
  48. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_config.py +0 -0
  49. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_documents.py +0 -0
  50. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_dry_run_guard.py +0 -0
  51. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_foundry_warnings.py +0 -0
  52. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_handlers.py +0 -0
  53. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_hub_requests.py +0 -0
  54. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_input_archive.py +0 -0
  55. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_io.py +0 -0
  56. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_jobs_update.py +0 -0
  57. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_login_callback.py +0 -0
  58. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_main.py +0 -0
  59. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_model_discovery.py +0 -0
  60. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_msa.py +0 -0
  61. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_pubchem.py +0 -0
  62. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_render.py +0 -0
  63. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.0}/tests/test_result_artifacts.py +0 -0
  64. {apheris_foundry_cli-1.1.0 → apheris_foundry_cli-2.0.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.0.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
 
@@ -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
 
@@ -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.0.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.0.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
 
@@ -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
@@ -47,7 +47,6 @@ _LOG_KINDS = {"steps", "engine", "run", "debug", "cmd"}
47
47
  _GENERIC_KUBERNETES_ERRORS = {
48
48
  "job has reached the specified backoff limit",
49
49
  }
50
- _GENERIC_INPUT_STEMS = {"input", "request", "data", "query", "queries", "cif", "json"}
51
50
  _TERMINAL_STEP_STATUSES = {"COMPLETED", "CACHED", "FAILED", "ERROR", "ABORTED", "CANCELLED"}
52
51
 
53
52
 
@@ -56,70 +55,26 @@ _TERMINAL_STEP_STATUSES = {"COMPLETED", "CACHED", "FAILED", "ERROR", "ABORTED",
56
55
  # ---------------------------------------------------------------------------
57
56
 
58
57
 
59
- def _run_query_names(run: dict[str, Any]) -> list[str]:
60
- """Extract query names — from metadata outputs when available, input artifact otherwise."""
61
- observability = run.get("observability") if isinstance(run.get("observability"), dict) else {}
62
- outputs = observability.get("outputs") if isinstance(observability.get("outputs"), list) else []
63
- names: list[str] = []
64
- seen: set[str] = set()
65
- for a in outputs:
66
- if not isinstance(a, dict) or str(a.get("type", "")) != "metadata":
67
- continue
68
- stem = Path(str(a.get("path", ""))).stem # e.g. mcl1_lig1_sample_1
69
- query = re.sub(r"_sample_\d+$", "", stem)
70
- if query and query not in seen:
71
- seen.add(query)
72
- names.append(query)
73
- if names:
74
- return names
75
- # Fall back to the staged input artifact name (always present, even on failed runs).
76
- for a in outputs:
77
- if not isinstance(a, dict) or str(a.get("type", "")) != "input":
78
- continue
79
- stem = Path(str(a.get("path", ""))).stem
80
- if stem and stem.lower() not in _GENERIC_INPUT_STEMS:
81
- return [stem]
82
- return _run_query_names_from_params(run)
83
-
84
-
85
- def _run_query_names_from_params(run: dict[str, Any]) -> list[str]:
86
- """Extract query names from run params — works for runs that never produced metadata outputs.
87
-
88
- Foundry input uploads are staged as files. Generic filenames such as
89
- "request.json" and "input.cif" are filtered out; only non-generic names
90
- (e.g. "ubiquitin.cif", "mcl1_lig1.json") yield a useful display name here.
91
- """
92
- params = run.get("params")
93
- if not isinstance(params, dict):
94
- return []
95
- for key in ("cifSubpath", "requestSubpath", "cifName"):
96
- raw = str(params.get(key) or "").strip()
97
- if raw:
98
- stem = Path(raw).stem
99
- if stem and stem.lower() not in _GENERIC_INPUT_STEMS:
100
- return [stem]
101
- return []
102
-
103
-
104
58
  def _run_table(runs: list[dict[str, Any]], *, show_workflow: bool = False) -> Table:
105
59
  table = Table(box=box.SIMPLE_HEAD, show_header=True, padding=(0, 1), expand=True)
106
- table.add_column("ID", no_wrap=True, max_width=16)
107
- table.add_column("NAME / TAG", no_wrap=True, overflow="ellipsis", max_width=30)
60
+ table.add_column("ID", overflow="fold", min_width=8)
61
+ table.add_column("NAME", overflow="fold", min_width=4, max_width=30)
62
+ table.add_column("TAGS", overflow="fold", min_width=4, max_width=30)
108
63
  if show_workflow:
109
- table.add_column("WORKFLOW", no_wrap=True, max_width=18)
110
- table.add_column("MODEL", no_wrap=True, overflow="ellipsis", min_width=8, max_width=16)
111
- table.add_column("WEIGHT", no_wrap=True, overflow="ellipsis", min_width=6, max_width=18)
112
- table.add_column("STATUS", no_wrap=True, max_width=7)
113
- table.add_column("STEP", no_wrap=True, overflow="ellipsis", max_width=16)
114
- table.add_column("DURATION", no_wrap=True, justify="right", max_width=6)
115
- table.add_column("CREATED", no_wrap=True, max_width=10)
64
+ table.add_column("WORKFLOW", max_width=18)
65
+ table.add_column("MODEL", overflow="ellipsis", min_width=4, max_width=16)
66
+ table.add_column("WEIGHT", overflow="ellipsis", min_width=4, max_width=18)
67
+ table.add_column("STATUS", max_width=7)
68
+ table.add_column("STEP", overflow="ellipsis", max_width=16)
69
+ table.add_column("DURATION", justify="right", max_width=6)
70
+ table.add_column("CREATED", max_width=10)
116
71
  for run in runs:
117
72
  status = str(run.get("status", ""))
118
73
  style = "green" if status == "succeeded" else ("red" if status in {"failed", "cancelled"} else "yellow")
119
- input_cell = Text(_run_input_tags_display(run), overflow="ellipsis")
120
74
  row = [
121
75
  Text(str(run.get("id", "")), style="bold cyan"),
122
- input_cell,
76
+ Text(str(run.get("name") or "—")),
77
+ Text(_run_tags_display(run)),
123
78
  ]
124
79
  if show_workflow:
125
80
  row.append(str(run.get("workflow", "")))
@@ -136,42 +91,9 @@ def _run_table(runs: list[dict[str, Any]], *, show_workflow: bool = False) -> Ta
136
91
  return table
137
92
 
138
93
 
139
- def _run_input_tags_display(run: dict[str, Any]) -> str:
94
+ def _run_tags_display(run: dict[str, Any]) -> str:
140
95
  tags = run.get("tags") if isinstance(run.get("tags"), list) else []
141
- tag_names = _dedupe_display_parts(str(tag) for tag in tags if str(tag).strip())
142
- name = str(run.get("name") or "").strip()
143
-
144
- # Once a user has supplied tags, make the list cell useful for identifying
145
- # that run: show the explicit name (when present) and the tags. Query/model
146
- # fallbacks can otherwise consume the narrow column and hide the tags.
147
- if tag_names:
148
- display_parts = [name] if name else []
149
- display_parts.append(", ".join(tag_names))
150
- return " | ".join(display_parts)
151
-
152
- query_names = _run_query_names(run)
153
- params = run.get("params") if isinstance(run.get("params"), dict) else {}
154
- model = str(params.get("model") or "").strip()
155
- parts: list[str] = []
156
- if name:
157
- parts.append(name)
158
- if query_names:
159
- parts.append(", ".join(query_names))
160
- if model:
161
- parts.append(model)
162
- return " | ".join(parts)
163
-
164
-
165
- def _dedupe_display_parts(values: Iterable[str]) -> list[str]:
166
- seen: set[str] = set()
167
- parts: list[str] = []
168
- for value in values:
169
- item = value.strip()
170
- if not item or item in seen:
171
- continue
172
- seen.add(item)
173
- parts.append(item)
174
- return parts
96
+ return ", ".join(str(tag) for tag in tags) or "—"
175
97
 
176
98
 
177
99
  def _workflow_graph_renderable(workflow: dict[str, Any]) -> Group:
@@ -425,7 +347,9 @@ def _run_detail_renderable(
425
347
  detail = Table(box=box.SIMPLE_HEAD, show_header=True, padding=(0, 1), expand=False)
426
348
  detail.add_column("FIELD", style="bold", no_wrap=True)
427
349
  detail.add_column("VALUE", overflow="fold")
428
- detail.add_row("RUN ID", str(run.get("id", "")))
350
+ detail.add_row("RUN ID", Text(str(run.get("id", ""))))
351
+ detail.add_row("NAME", Text(str(run.get("name") or "—")))
352
+ detail.add_row("TAGS", Text(_run_tags_display(run)))
429
353
  detail.add_row("WORKFLOW", str(run.get("workflow", "")))
430
354
  steps = _step_display_names(run)
431
355
  if steps: